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: 

passing field "BSCHL" to bapi BAPI_ACC_DOCUMENT_POST.

Former Member
0 Kudos

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

3 REPLIES 3

former_member188685
Active Contributor
0 Kudos

Hi,

Try this Function Module for FB01 .

<b>PRELIMINARY_POSTING_FB01</b>

regards

vijay

former_member188685
Active Contributor
0 Kudos

using The above Fm you can pass BESG-BSCHL.

regards

vijay

Former Member

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