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 Keys using BAPI : BAPI_ACC_DOCUMENT_POST

JanjanamRamesh
Participant
0 Kudos

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.

1 REPLY 1

Former Member
0 Kudos

Hi,

Posting keys are determined by document type and sign of the amount (but it is possible to change it in code using extentions) .

To fill additional fields you can implement badi BADI_ACC_DOCUMENT (Extension2) or use BTE (check how to implement RWBAPI01).