Application Development and Automation 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: 
Read only

Idoc Company Code Error

Former Member
0 Likes
1,225

Hi EveryOne,

When Running an INVOIC02 IDOC,i am getting an error u201CA company code cannot be determined for LI 0000001510u201D .

I see the Company code for that vendor in LFB1

I maintained entries in OBCE and OBCA

This Idoc runs for the partner function RS

IDoc calls the Function module u201CIDOC_INPUT_INVOIC_MRMu201D Do u guys think i should activate the user exit "CALL CUSTOMER-FUNCTION '011'u201D to get the company code from E1EDK14 segment???

In that segment QUALF is passed as 011

And orgid as company code??

Or is there any other segment i can pass the company code?

3 REPLIES 3
Read only

Former Member
0 Likes
775

Can anyone Answer this

Read only

Former Member
0 Likes
775

Activate the user exit .

EXIT_SAPLMRMH_011 Logistics Invoice Verification: inboud EDI message, company code

check this code.

TABLES: t076b. Company Code

  • CHECK I_E1EDKA1-PARVW EQ 'RS '.

LOOP AT t_idoc_data WHERE segnam = 'E1EDK14'.

MOVE t_idoc_data-sdata TO e1edk14.

IF e1edk14-qualf = '011'.

EXIT.

ENDIF.

ENDLOOP.

SELECT SINGLE * FROM t076b WHERE parart = i_idoc_contrl-sndprt

AND konto = i_idoc_contrl-sndprn

AND bukrs = e1edk14-orgid.

IF sy-subrc = 0.

e_lifnr = i_lifnr.

e_bukrs = t076b-bukrs.

e_change = 'X'.

ENDIF.

Read only

Former Member
0 Likes
775

swapna,

can u plz share the information for partner function ..