Skip to Content
avatar image
Former Member

POSTING KEY IN BAPI - BAPI_ACC_DOCUMENT_POST

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 10 at 01:01 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded