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: 

POSTING KEY IN BAPI - BAPI_ACC_DOCUMENT_POST

Former Member
0 Kudos

Hello Experts

i have one small requirement , How can i enter posting key - 21 for Debit and

posting key- 40 for credit if the gross amount ( from excel file ) is Negative .

i have to enter different posting key values is gross amount ( in file ) is positve .

i have read many posts that say i have to pass extension2 parmeters , but how can i enter 2 values that too , how will i know if it is debit or credit because there is no DEBIT / CREDIT indicator in extension2 parameter of

BAPI USED - BAPI_ACC_DOCUMENT_POST

Please give your expert views , if possible the code to refer , i will be very thankfull to you.

1 REPLY 1

former_member348872
Active Contributor
0 Kudos

Hi

Did you try passing negative amount to BAPI and see how SAP standard behaves. Within include LACC9F20, SAP has predefined Posting keys based on Account being posted. I hope this suits your requirement.