Step 2: Configuring an inbound mapping with the MATMAS IDoc
Step 2: Configuring an inbound mapping with the MATMAS IDoc
Configure an inbound mapping that uses the IDoc mapplet to write the MATMAS IDoc from SAP.
To create a mapping, click
Data Integration
New
Mappings
. Select
Mapping
and click
Create
.
Enter a name and description for the mapping, and click
OK
.
To configure a flat file source, on the
Transformation
palette, click
Source
.
In the
Properties
panel, on the
General
tab, enter a name and description.
Click the
Source
tab and select an flat file connection.
Add separate flat file sources for the control_input group and segments in the MATMAS IDoc.
To add an IDoc Mapplet transformation, on the
Transformation palette
, click Mapplet.
On the
General
tab, enter a name and description for the mapplet.
On the
Mapplet
tab, click
Select
.
The
Select Mapplet
dialog box appears.
Specify an IDoc mapplet that you imported using the Prepare transformation and click
OK
.
Draw a link to connect the Source transformations to the Mapplet transformation. For example, connect the Control_Input source object to the Control_Input_Group for the MATMAS IDoc.
To preview the incoming fields, click
Incoming Fields
.
The following image shows the incoming fields:
Click
Field Mappings
to map the incoming fields with the mapplet input fields.
The following image shows the field mapping in the mapplet:
To add a Target transformation for writing to SAP, on the
Transformation palette
, click
Target
.
On the
General
tab, enter a name and description.
Click the
Target
tab and configure SAP target details.
You can also parameterize the SAP target details.
To add a flat file Target transformation for the error output, on the
Transformation palette
, click
Target
.
On the
General
tab, enter a name and description.
Click the
Target
tab and configure flat file target details.
Draw a link to connect the
IDoc_Prepare_Output_Group_For_MATMAS03
to the IDocWriter object. Draw another link to connect the
IDoc_Prepare_Error_Output_Group_For_MATMAS03
to the Error_Output flat file object.
The following image shows the mapping for the inbound mapping for the MATMAS IDoc: