cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping of POSTING KEY in BAPI_ACC_DOCUMENT_POST

Former Member
0 Kudos
20,379

Hi,

can anybody help me how can I map / pass the following POSTING KEY in BAPI_ACC_DOCUMENT_POST?

Type Posting Key Positive or Negative

GL 40 +ve (debit)

GL 50 -ve (credit)

AP 21 +ve (debit)

AP 31 -ve (credit)

AR 01 +ve (debit)

AR 11 -ve (credit)

thank you in advance!!!

james evert lising

View Entire Topic
0 Kudos

Hi ,

No need to pass the posting key explicitly, since system will be determined automatically based on debit and credit data entries at item level.

IF ls_post-newbs = '40'.

ls_currency-amt_doccur = ls_post-dmbe2.

ELSEIF ls_post-newbs = '50'.

ls_currency-amt_doccur = ls_post-dmbe2 * -1.

ENDIF.

Thank you.