Skip to Content
0
Apr 22, 2014 at 05:16 AM

Posting Keys using BAPI : BAPI_ACC_DOCUMENT_POST

317 Views

Hi,

I am using BAPI BAPI_ACC_DOCUMENT_POST to create a JE.

My requirement is, i have change the posting Key based on the Doc type. I think i may have to use Extension 1/Extension 2 for Posting Key.

Can any one suggest me how to use these,

If Document type SA (GL Account Posting)

Debit: 40

Credit: 50

elseif Document type AA (Asset Posting)

Debit: 70

Credit: 75

endif.

Even more, I have to post 3 more Non existing fields in BAPI ( Sinking Fund [ZZSINK], Sinking Fund No [ZZSINKNO], Audit Flag[ZZAUDIT])

Please give some idea, how we can post these...

Thanks in advance.