Steps For Inbound Idoc
Steps For Inbound Idoc
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.
*
Step 6: SE37: Creationof 'Z' function module (ZFM_ACCRUAL_POST).*
Copy anystandard function module which is running behind any IDOC, here I am copying
'IDOC_INPUT_FIDCC2'to 'ZFM_ACCRUAL_POST'. Comment the standard code and activate the fun mod.