11-25-2005 5:11 PM
Hi developers,
I've just searched the forum, but I can't find the solution to the following problem:
I need to use bapi BAPI_ACC_DOCUMENT_POST to simulate FB01 transaction. I need to pass to the bapi the field "BSEG-BSCHL" for each record I have to process, but I can't find where passing it to the bapi.
Thanks a lot
11-25-2005 5:27 PM
Hi,
Try this Function Module for FB01 .
<b>PRELIMINARY_POSTING_FB01</b>
regards
vijay
11-25-2005 5:27 PM
11-25-2005 6:14 PM
Hi,
The BAPI_ACC_DOCUMENT_POST does not have a BSCHL field. Usually, the documents posted with this FM will automatically have the BSEG-BSCHL as '01 or 11' for Customer documents, and '40 or 50' for G/L Postings. Similar pair exists for Vendor postings, though I can't remember.
Generally, these Posting Keys should be acceptable to most. If you have special requirements for the docs to post in other posting keys, you may have to use custom BDC recordings or standard load programs like RFBIBL00.
If this helps, please remember to award points before closing the thread.
Good luck,
Bhanu