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

How to post Intercompany GL using BAPI

Former Member
0 Likes
3,089

Hello Experts,

We have a requirement for Intercompany GL posting , we are using BAPI_ACC_DOCUMENT_POST for standard posting but looks like it does not work with intercompany posting.

Can anyone let me know how to post Intercompany GL either using BAPI_ACC_DOCUMENT_POST or any other method.

Thanks

Shraman

3 REPLIES 3
Read only

Former Member
0 Likes
1,362

Hi Shraman,

For a requirement for Intercompany GL posting, use BAPI_ACC_DOCUMENT_POST for standard posting with some advanced parameters

In Header of the BAPI, pass the hardcoded values like

DOCUMENTHEADER

OBJ_TYPE = FKKSU

OBJ_KEY = $

OBJ_SYS = System name

BUS_ACT = RFBU

Other parameters you can pass in Header is:

USERNAME

HEADER_TXT

COMP_CODE

DOC_DATE

PSTNG_DATE

TRANS_DATE

FISC_YEAR

FIS_PERIOD

DOC_TYPE

REF_DOC_NO

If you are posting a document in cross-companies 1000 & 1001, you need to pass cost-center with the line item. That is the mandatory field.

Thanks,

Guru

Read only

0 Likes
1,362

May I ask how do you solve a cross company posting.

Let's say we have a document which has 2000 line items,

Two company codes are involved, 1000 and 1001.

1000 - initially has 2000 line items,

but since this is a intercompany/crosscompany postings.

It will generate additional line items from 1000 which doubles up the total line items posted.

1001 will have another 2000 line items.

therefore 1000 - 2000; 1001-2000, total 4000 lines.

using BAPI, can we do this?

p/s: Document Header is the same.

Read only

Former Member
0 Likes
1,362

Hi,

It is possible to post the intercompany document using this BAPI.

Please make sure the header company code matches the first line item company code.

If this is not the case then the BAPI will throw an error.

Thanks,

Manish