Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC Error message "A company code cannot be determined for LI XXXXXXXXXX"

fisher_li
Participant
0 Kudos

When I tried to post a IDOC invoice by using message type INVOIC, I got an error message

FD006 "A company code cannot be determined for LI XXXXXXXXXX".

I did the required set ups in the "EDI" section under "Accounts Receivable and Accounts payable".

In the detail error message, it also mentioned "Determine the company code for LI XXXXXXXXXX

in Financial Accounting customizing". I clicked on the "Proceed" link in error message to T code OBCA to

add the condition in "EDI: Assign Name in the voice <-> Company code".

It still did not work after re-try.

Where else should I look into to fix my EDI posting problem?

Thank you in advance!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You need to make the settings in OBCA, OBCB, OBCD & OBCE transaction to eliminate that error.

I have made all the above settings in my earlier project and it worked fine for me.

Thanks,

Mahesh.

12 REPLIES 12

Former Member
0 Kudos

This is problem wth either ur idoc data or functionla setting i thnk, pls check

Former Member
0 Kudos

Hi,

You need to make the settings in OBCA, OBCB, OBCD & OBCE transaction to eliminate that error.

I have made all the above settings in my earlier project and it worked fine for me.

Thanks,

Mahesh.

fisher_li
Participant

After I compared the failed IDOC with the others,

my error was that the Partner number value in the field PARTN of segment E1EDKA1 was not populated correctly.

The error message was a kind of misleading.

it has nothing to do with the company code. The error was caused by the wrong vendor ID (Partner number).

Thank you all for answer my question!

I really appreciated!

Fisher

Former Member
0 Kudos

Hi Yu Li,

Would you please tell me what wrong vendor ID you did input? I have the same problem but not sure what data should fill in in E1EDKA1 segment.

Best regards,

Connie

Connie,

We have two E1EDKA1 segments.

First E1EDKA1 segment, Field "PARVW" = "LF" and field "LIFNR" = "The value you defind in the 'Acct w/ vendor' field in R3 T code XK03 correspondence Account screen". If you did not have any value there, you must assign a unique number in that field.

The second E1EDKA1 segment, Field "PARVW" = "RE" and field "PARTN" = "The vendor account number in the initial screen of T code XK03".

Former Member
0 Kudos

Hi,

I tested OK. Thanks

Former Member
0 Kudos

Do you have an example of idoc text file for vendor invoice?

0 Kudos

Connie,

     Here is an example:

<INVOIC01>

<IDOC BEGIN="empty">

<EDI_DC40 SEGMENT="">

<TABNAM
/>

<DIRECT
/>

<IDOCTYP
/>

<MESTYP
/>

<SNDPOR>SAPDXI</SNDPOR>

<SNDPRT>LI</SNDPRT>

<SNDPFC>PI</SNDPFC>

<SNDPRN>
your
vendor number in XK03
</SNDPRN>

<RCVPOR
/>

<RCVPRT
/>

<RCVPRN
/>

</EDI_DC40>

<E1EDK01 SEGMENT="empty">

<CURCY>USD</CURCY>

<BSART>INVO</BSART>

</E1EDK01>

<E1EDKA1 SEGMENT="empty">

<PARVW>LF</PARVW>

<LIFNR> Your
correspondence account number with the vendor
</LIFNR>

</E1EDKA1>

<E1EDKA1 SEGMENT="empty">

<PARVW>RE</PARVW>

<PARTN>
your
vendor number in XK03
</PARTN>

</E1EDKA1>

<E1EDK02 SEGMENT="empty">

<QUALF>009</QUALF>

<BELNR>Invoice
number
</BELNR>

</E1EDK02>

<E1EDK03 SEGMENT="empty">

<IDDAT>012</IDDAT>

<DATUM>20131009</DATUM>

<UZEIT>010647</UZEIT>

</E1EDK03>

<E1EDK03 SEGMENT="empty">

<IDDAT>024</IDDAT>

<DATUM>20131010</DATUM>

<UZEIT>010647</UZEIT>

</E1EDK03>

<E1EDK04 SEGMENT="empty">

<MWSKZ>I0</MWSKZ>

<MSATZ>00</MSATZ>

<MWSBT>0.00</MWSBT>

<TXJCD>TX0000000</TXJCD>

</E1EDK04>

<E1EDK14 SEGMENT="empty">

<QUALF>011</QUALF>

<ORGID>0011</ORGID>

</E1EDK14>

<E1EDP01 SEGMENT="empty">

<ACTION>001</ACTION>

<MENGE>1</MENGE>

<MENEE>CT</MENEE>

<ABGRT>CUP
HOT 10OZ BARE PAPER 0558
</ABGRT>

<E1EDP02 SEGMENT="empty">

<QUALF>001</QUALF>

<BELNR>Your
PO number
</BELNR>

<ZEILE>PO
line item number
</ZEILE>

</E1EDP02>

<E1EDP26 SEGMENT="empty">

<QUALF>003</QUALF>

<BETRG>00049.45</BETRG>

</E1EDP26>

</E1EDP01>

<E1EDS01 SEGMENT="empty">

<SUMID>010</SUMID>

<SUMME>49.45</SUMME>

</E1EDS01>

</IDOC>

</INVOIC01>

0 Kudos

Connie,

     Here is an example:

<INVOIC01>

<IDOC BEGIN="empty">

<EDI_DC40 SEGMENT="">

<TABNAM />

<DIRECT />

<IDOCTYP />

<MESTYP />

<SNDPOR>SAPDXI</SNDPOR>

<SNDPRT>LI</SNDPRT>

<SNDPFC>PI</SNDPFC>

<SNDPRN> your vendor number in XK03</SNDPRN>

<RCVPOR />

<RCVPRT />

<RCVPRN />

</EDI_DC40>

<E1EDK01 SEGMENT="empty">

<CURCY>USD</CURCY>

<BSART>INVO</BSART>

</E1EDK01>

<E1EDKA1 SEGMENT="empty">

<PARVW>LF</PARVW>

<LIFNR> Your correspondence account number with the vendor</LIFNR>

</E1EDKA1>

<E1EDKA1 SEGMENT="empty">

<PARVW>RE</PARVW>

<PARTN> your vendor number in XK03</PARTN>

</E1EDKA1>

<E1EDK02 SEGMENT="empty">

<QUALF>009</QUALF>

<BELNR>Invoice number</BELNR>

</E1EDK02>

<E1EDK03 SEGMENT="empty">

<IDDAT>012</IDDAT>

<DATUM>20131009</DATUM>

<UZEIT>010647</UZEIT>

</E1EDK03>

<E1EDK03 SEGMENT="empty">

<IDDAT>024</IDDAT>

<DATUM>20131010</DATUM>

<UZEIT>010647</UZEIT>

</E1EDK03>

<E1EDK04 SEGMENT="empty">

<MWSKZ>I0</MWSKZ>

<MSATZ>00</MSATZ>

<MWSBT>0.00</MWSBT>

<TXJCD>TX0000000</TXJCD>

</E1EDK04>

<E1EDK14 SEGMENT="empty">

<QUALF>011</QUALF>

<ORGID>0011</ORGID>

</E1EDK14>

<E1EDP01 SEGMENT="empty">

<ACTION>001</ACTION>

<MENGE>1</MENGE>

<MENEE>CT</MENEE>

<ABGRT>CUP HOT 10OZ BARE PAPER 0558</ABGRT>

<E1EDP02 SEGMENT="empty">

<QUALF>001</QUALF>

<BELNR>Your PO number</BELNR>

<ZEILE>PO line item number</ZEILE>

</E1EDP02>

<E1EDP26 SEGMENT="empty">

<QUALF>003</QUALF>

<BETRG>00049.45</BETRG>

</E1EDP26>

</E1EDP01>

<E1EDS01 SEGMENT="empty">

<SUMID>010</SUMID>

<SUMME>49.45</SUMME>

</E1EDS01>

</IDOC>

</INVOIC01>

0 Kudos

Did you have resolved?

brahms86
Active Contributor
0 Kudos

Had the same problem.

OBCE looked as if it was populated correctly regarding the field "PartnerNo".
Still system could not find the assigned company code.

Turned, that field "Company Code Name in the invoice" needed to be filled as well. This description is a bit misleading. What is really expected is the content of field "PARTN" in segment E1EDKA_RE from the INVOIC01 idoc.

roger_reeves1
Participant
0 Kudos

This really helped me ! Thanks fisher.li

Sep 26, 2013 at 04:24 PM

Connie,

We have two E1EDKA1 segments.

First E1EDKA1 segment, Field "PARVW" = "LF" and field "LIFNR" = "The value you defind in the 'Acct w/ vendor' field in R3 T code XK03 correspondence Account screen". If you did not have any value there, you must assign a unique number in that field.

The second E1EDKA1 segment, Field "PARVW" = "RE" and field "PARTN" = "The vendor account number in the initial screen of T code XK03".