2012 Jun 11 12:17 PM
c
2012 Jun 11 12:21 PM
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
2012 Jun 11 12:32 PM
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
2012 Jun 11 12:52 PM
Look at field COMP_CODE of table parameters ACCOUNTGL, ACCOUNTRECEIVABLE and ACCOUNTPAYABLE. (also search tool at scn)
Regards,
Raymond
2012 Jun 11 1:23 PM
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
2012 Jun 11 1:33 PM
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
2012 Jun 11 1:41 PM
- 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
2012 Jun 11 2:12 PM
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
2012 Jun 11 2:26 PM
2012 Jun 11 3:05 PM
Enough hints have been given, now please go and do some own research and development work.
Locked.
Thomas