Idoc - Company Code Cannot Be Determined For LI 

A Company Code Cannot be determined for LI 

We are facing an issue with an Incoming Invoice Idoc (Mes type - Invoic). A third party system sends the Invoices which are received by the XI system and then as Idocs into SAP.

The XI system is defined as a Logical system in R/3. We have created Partner Profile, Dist Model with XI as a LS.

The error that we are encountering is -

Customer, vendor <our LS> not known

Message no. FD110

A company code cannot be determined for LS

Message no. FD006

Solution:

Error : A company code cannot be determined for LS

This means that SAP cannot match an appropriate company code with a partner profile :-  and hence, doesn't know where to post the invoice.

Partner Type = "LS" (Logical System) 

Partner Name = "" 

I think what you've got is message FD006 - long text for it can be found via transaction SE91 and sounds like this:

The system cannot determine the relevant company code since the allocation of the data transferred in the invoice is missing in Financial Accounting customizing.

The company code can be determined outside of the system and be put into the intermediate document (for example, from the EDI sub-system). Then the company code must be put into the E1EDK14 segment and ORGID field and the value "011" used as the qualifier. 

Determine the company code for & & & in Financial Accounting customizing. 

LS is your Logical System. So you might want to have a look at transaction OBCA where you can assign a company code name in the invoice for your Logical System.

In the E1EDKA1 segment. there are two fields PARVW (which is the qualifer or Partner function) PARTN (partner number). The information that is sent in the PARTN has to either match the information in SAP or has to be converted.

Notes:

For this issue, check 3 EDI configurations that are required-

Tcode - OBCA (for comp. code), OBCD (for tax) and Program Parameters in SPRO -> Materials Management -> Logistical Invoice Verification -> EDI -> Enter Program Parameters

Addition notes:

Debug the process to see where this error comes from. There is a config table to show what Function Modules are allowed to process certain message types.

You will need to add an entry into this table. I had the same problem myself a while ago.

It could be transaction WE57

SAP BC Tips

See Also
Populate Segment E1EDK02 In Outgoing IDOC

Get help for your Basis problems
Do you have a SAP Basis Question?

SAP Basis Admin Books
SAP System Administration, Security, Authorization, ALE, Performance Tuning Reference Books

SAP Basis Tips
SAP BC Tips and Basis Components Discussion Forum

Administration In SAP - Sapgui, Unix, SAP ITS, Router, Client Copy and IDES 

Main Index
SAP ERP Modules, Basis, ABAP and Other IMG Stuff

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG. 
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk. 
 The content on this site may not be reproduced or redistributed without the express written permission of 
www.erpgreat.com or the content authors.