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

Regarding BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
323

Hi,

How can I insert the posting key in the BAPI_ACC_DOCUMENT_POST?

thank you!!!

james evert lising

1 REPLY 1
Read only

Former Member
0 Likes
280

hi

hope it will help you.

Pls reward if help.

Hi,

The posting key is decided automatically by the BAPI, it depends on the sign you have assigned to the amounts.

In this case I suppose the BAPI'll use the postig key 40/50:

40 if the amount is greater than 0,

50 if the amount is less than 0,

So you can have some problem only if you need to use some keys different from 40/50.

In this case I believe you have to use the BAPI BAPI_ACC_DOCUMENT_POST, here you can choose which posting keys to be used in order to transaction key (KOTSL).

See the table T030B

If I could make a suggestion why dont you use LSMW for the same

The standard object is 0100.

It uses the standard program RFBIBL00 itself. But you should be able to format it easily

Here is a document on how you can use the tool.

http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf

Or you can Do BDC

Look at the below threads, these threads have the sameple code also

Suggest you to Search in SDN with key - FB01

Will get few more useful related Posts.