2013 Jun 11 10:14 AM
| BELNR(ACCOUNTING DOC NUMBER) | BSCHL(POSTING KEY) |
|---|---|
| 0100000000 | 40 |
| 0100000001 | 50 |
Hi,
i am getting the above output.Now i want to revrese(INTERCHANGE) the posting key for the corresponding BELNR, i.e 40 in place of 50 and vice versa
using ' BAPI_ACC_GL_POSTING_POST'.
Please advice.
Vinit.
2013 Jun 11 10:35 AM
2013 Jun 11 12:56 PM
Hi Raymond,
i am new to this and hence m not getting what u are saying. According to the requirement,
i just want to reverse the values in the posting key fields by using ' BAPI_ACC_GL_POSTING_POST' as mentioned above.Will u please explain me in detail.
Regards,
Vinit.
2013 Jun 11 1:37 PM
2013 Jun 11 1:50 PM
I guess you are not passing the entries in the right way. Can you explain the problem the briefly?
Manu
2013 Jun 13 7:58 AM
Hi Raymond,
the images shown above are of the actual scenario.After clicking on the checkbox 'Overwrite with Accural Posting' in the selection screen following changes are expected in the output.In the posting key field (PK) '40' should get replaced by '50' and vice versa..i.e the posting key should get reversed.
Bapi used here is 'bapi_acc_gl_posting_post'.
Please advice or suggest any other way for getting the output as per the requirement.
Regards,
Vinit.
2013 Jun 11 12:26 PM
Pass the amount as negative value. The bapi takes care of the posting keys. You don't have to specify anything extra.
Regards,
Manu
2013 Jun 12 2:53 PM
hello Vinit,
Please read the relevant data for the BAPI form the tables BKPF and BSEG based on the number BELNR. and passed to 'BAPI_ACC_GL_POSTING_POST' and commit the work using 'BAPI_TRANSACTION_COMMIT'.
Thank and Regards
Sudhakar