Skip to Content
avatar image
Former Member


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


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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 10, 2018 at 01:01 AM


    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.

    Add comment
    10|10000 characters needed characters exceeded