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

Intercompany Postings via BAPI

Former Member

c

9 REPLIES 9
Read only

Former Member
0 Likes
2,321

Hi All

I am trying to post an intercompany joiurnal entry using a BAPI - BAPI_ACC_DOCUMENT_POST.

However, I m not aware of how i can generate it.

Can someone please suggest me some guidelines

Thanks much
R

Read only

0 Likes
2,321

Hi Rukshana,

Please see the link:

<link to blocked site removed by moderator>

Regards,

ManuB

Message was edited by: Thomas Zloch

Message was edited by: Manu Bhatnagar

Read only

0 Likes
2,321

Look at field COMP_CODE of table parameters ACCOUNTGL, ACCOUNTRECEIVABLE and ACCOUNTPAYABLE. (also search tool at scn)

Regards,

Raymond

Read only

Former Member
0 Likes
2,321

Hello Raymond, hello Manu

thank you very much for the prompt response; but I have two very basic Qs on this:

1. where do i specify the upload file used by the BAPI? is it in using the FM GUI_UPLOAD?

2. when I execute the FM BAPI_ACC_DOCUMENT_POST - what do i need to do?

these are presumably very basic Qs - but it will be great it you could guide me a bit

Thanks much
R

Read only

0 Likes
2,321

Hi Rukshana,

Why you want to upload file. ?

If you want, you can directly fill the internal table (i.e. ACCOUNTGL, ACCOUNTRECEIVABLE and ACCOUNTPAYABLE) from your available data.

You need to fill BAPI parameters ACCOUNTGL, ACCOUNTRECEIVABLE and ACCOUNTPAYABLE for posting and you will get the posting check.

But it is advised to use FM: BAPI_ACC_DOCUMENT_CHECK before posting

Regards

ManuB

Read only

0 Likes
2,321

- Where are your data coming from ? If that is from PC or network, then use a GUI_UPLOAD to uplad a flat file (txt, csv), if that is an Excel file, there are tools from OLE2 to FM like ALSM_EXCEL_TO_INTERNAL_TABLE. Use search tool at scn, there are plenty of samples in wiki and discussions.

- BAPI_ACC_DOCUMENT_POST : read the FM/BAPI documentation, map your data to structures of parameters, once again use the search tool to find samples at scn. Then call the BAPI, analyze the return parameters, if no errors then call BAPI_TRANSACTION_COMMIT to validate (else call BAPI_TRANSACTION_ROLLBACK)

Regards,

Raymond

Read only

0 Likes
2,321

Hi again

thank you very much for the support. But I m a little slow with this BAPI topic. when you say filling the internal table, what does it actually mean: i want the below postings in the system:

Co Code 1000

Posting 1

Dr - Account 1- 5 USD

Cr - Account 2 - 5 USD

Posting 2

Cr - Vendor 2000 (represents co code 2000) - 5 USD

Dr - Account 2 - 5 USD

Co Code 2000

Posting 1

Dr - Customer 1000 (represents co code 1000) - USD 5

Cr - Account 3 - USD 5

In order to facilitate the above, 3 different manual journal entries are passed usign (FB50, FB60, FB70) How can I achieve this posting using one posting via the BAPI?

what details should I input in the Internal table

thanks again for the support. am really stuck this, any guidance will be greatly appreciated.

R

Read only

0 Likes
2,321

Truly, use the search tool to find samples like Vendor Invoice Posting using BAPI.


Regards,

Raymond

Read only

0 Likes
2,321

Enough hints have been given, now please go and do some own research and development work.

Locked.


Thomas