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: 

Cross company code posting through F-43

Former Member
0 Kudos

Hi ,

I am using the BAPI_ACC_DOCUMENT_POST for vendor invoice posting but for cross company code if I use BAPI it is giving FI/Co document interface, can any tell how to post cross company code using BAPI

Thanks,

Ravi.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Ravi,

I have used this BAPI to post for CROSS Company document with no issues kindly let me know more details of the message you are getting while posting this kind of document.

Thanks

Sudharshan

7 REPLIES 7

Former Member
0 Kudos

Hi Ravi,

I have used this BAPI to post for CROSS Company document with no issues kindly let me know more details of the message you are getting while posting this kind of document.

Thanks

Sudharshan

0 Kudos

I am getting the error message like this after running the BAPI

Type- 'E'

ID- F5

Number -808

Field Text is a required field for G/L account C100 250030

Msg1 - Text

Msg2 - Company code C100

Row : 0

this eroor message I am getting

Thanks

Ravi

0 Kudos

Hi Ravi,

Have you passed all the required fields in this BAPI with its correct length for e.g GL Account field SAKNR[length is 10] if you have field of length 6 just pad zeros for the rest and make it 10 [e.g 0000123456] and also check the same for other fields like profit center , cost center ....

Thanks

Sudharshan

0 Kudos

No, that I have handled using conversion routine....

it is working fine for Same Company code Posting , but it is not working for Line items having different Company codes Ex?:

*Document Date Posting Date Fiscal Period Document Type Company Code Currency Reference Document Number Header Text Posting Key Account Amount Tax Code Payment Terms New Company Code Cost Center Profit Center Order Number Line Item Text

9/24/2008 9/24/2008 9 KR C510 USD Cross Company Header Data

31 100110 110 Line ITEM 1 PK 31

40 600120 110 ** C100 82091002 itm 2 PK 40 CC C100

Thanks

Ravi

0 Kudos

Hi Ravi,

See that whenever you have cross company posting the data at the first line item contains company code as header company code and from second line items you can have company code as different.

for e,g

First Line:ZT,10/15/2007,10/15/2007,USD,3700[header company code],TEST_CC_INT05, 100,3700[line item company code],PMTCORPORATE|Control,37001100,,,, ,,, , ,

Second line: ZT,10/15/2007,10/15/2007,USD,3700[header company code],,TEST_CC_INT05,-114308-06122825, ,C,120010,-100,3131[line item company code],PMTCORPORATE|Control,31311100,,,, ,,, , ,

So here if you see company codes in first line item we have two one if header company code and the other is line item company code and both are same in first line which is mandatory if you are posting cross company document where as you can see in second line the line item company code is different from header company code[3131]

You should arrange your data somehow with this fashion for cross company posting.

Thanks

Sudharshan

Former Member
0 Kudos

tHANKS

0 Kudos

Issuse Solved the clearing Company codes has Text field mandatory...........it is not posting........