Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Passing Reason Code by using bapi BAPI_ACC_DOCUMENT_POST

I am using BAPI_ACC_DOCUMENT_POST, i am getting below error

Field Reason code is a required field for G/L account

i googled the same error may time and every on suggest to use BADI ACC_DOCUMENT and  Create and pass the structure

please guide me how can i pass the same using BAPI_ACC_DOCUMENT_POST

I need to pass an additional value REASON CODE (RSTGR) in BSEG.

Please guide me step by step on how I can pass entered value in table EXTENSION2 into BSEG.

Many Thanks.

Former Member
Not what you were looking for? View more on this topic or Ask a question