Professional Documents
Culture Documents
Steps To Create Custom IDOC
Steps To Create Custom IDOC
Scenario: Let's assume we require to create a custom IDOC for posting accrual (FBS1
transaction). For posting accrual we have a BAPI called 'BAPI_ACC_DOCUMENT_POST'. Our first
approach will be to understand the transaction FBS1 and identify the mandatory and minimum
fields require for posting accruals by transaction FBS1.
First we will be making the segments in custom Idoc with same fields require to populate in
BAPI. Our approach for posting accruals from custom Idoc will be, first we will populate the
segments of custom Idoc and then we will pass those fields to our 'Z' function module (which
we will be creating with BAPI functionality). Our 'Z' function module will be doing the whole
functionality for posting accrual.