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: 

How to check for mapping in Inbound IDoc?

Former Member
0 Kudos

Hi,

I need to know how the mapping is done in a Standard Inbound IDoc. I know the Message Type and one already processed IDoc.

The Message type, 'ACC_DOCUMENT', and an IDoc no. is informed and in that IDoc for one of the Segment:

it's required that whatever be the entry in the field 'PYMT_METH' in the Segment should get updated in the field 'Assignment' in the Tcode FB03. Payment Method is the field ZLSCH in the table BSEG and the Assignment field in FB03 is the field ZUONR in BSEG_ALV structure.

I did the debugging in the corresponding FM i.e. BAPI_IDOC_INPUTP of that Message type (by specifying the relevant data) and was able to find-out that it's calling the FM BAPI_ACC_DOCUMENT_POST which in turn is used to update the Customer Item of type BAPIACAR09 (as per me), but not able to understand the exact mapping which is done. I was informed the Doc. no. 5425534, Company code as ID11 and Fiscal year as 2014. Kindly assist.

2 REPLIES 2

atul_mohanty
Active Contributor
0 Kudos

Hi

If you know the IDoc no then go to WE02 transaction and check the control segment of the Idoc.

You will get the basic type of the Idoc.

In WE02, check the data segments and can understand how each value on the Data segments are mapped to FB03.

Now populating the IDoc, how this Idoc is populated ? Do you have scope of populating the Idoc segment OR you want to write enhancement to update the details while Idoc is being processed ? Please let us know.

If you want to populate the segment you can check each segment in WE31 . Hope in segement E1BPACGL09, the field ALLOC_NMBR is the Assignment field.  Please check this field if you can post through WE19.

If you want enhancement, the check for substitution ( transaction OBBH & GGB1)  / BTE ( transaction FIBF) as per your requirement.

Former Member
0 Kudos

Issue is resolved. I used the BAdi ACC_DOCUMENT; created an implementation for it and passed the value of 'Assignment Number' (ZUONR) to 'Payment Method' (ZLSCH) in it.