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: 

Deviations with BAPI_ACC_DOCUMENT_POST vs FB60 (Derivation strategy is not getting triggered)

UdayS
Participant
0 Kudos
536

Hello Everyone,

Has anyone has a knowledge base document or a SAP Note where the limitations/deviations of BAPI_ACC_DOCUMENT_POST against the standard postings (FB60) has been documented.

In our project we have observed one such scenario and want to understand if it is limitation or if there is something missing with respect to config.

We have derivation strategy configured in the system which determines fiduciary funds account and offsets P&L account, this works perfectly while posting through FB60 but the same derivation strategy is not getting triggered for the postings happen through custom program as they use BAPI_ACC_DOCUMENT_POST.

For simple Example: When you post FB60 with GL and Vendor Account info, posting will have four lines because of the derivation rule and gets offset into a different account. Where as the same info posted through the BAPI has only 2 line items of GL and Vendor.

When debugged standard FB60, the additional lines (derivation strategy) are being determined from FM: FM_GL_ACC_TRUSTFUND_ADD_LINES and are getting added from SAPMF05A program of FB60 but the same code is not getting triggered with BAPI posting.

Let me know if any of you came across this scenario and how it has been addressed.

Thanks,

Uday S.

2 REPLIES 2

0 Kudos
258

Hi Uday. Derivation strategies apply for both online and batch input. You should trace the rule and watch out its conditions and values

Consider the note

2256783 - FMDERIVE:Trace Display Log Not Availabable in
Batch Input

0 Kudos
258

Hi Emmanuel,

Thank You for your response, unfortunately SAP Note 2256783 is not applicable in our landscape as we are in S/4 HANA system.

Any other means to check ?

Thanks,

Uday S.