. You can use IDoc mapplets to the inbound or outbound mappings.
In
Data Integration
, click
New
Mapplets
Mapplet - SAP IDoc
, and then click
Create
.
Enter a unique name for the mapplet.
Specify the location where you save the mapplet.
Optionally, enter a description for the mapplet.
Select the transformation type. You can select one of the following options:
Select
IDoc Interpreter
to generate outbound mappings to read IDocs from the SAP system.
Select
IDoc Prepare
to generate inbound mappings to write IDocs to the SAP system.
Select the source by which you fetch the IDoc. You can select one of the following options:
Select
Connection
to fetch the IDoc with an SAP Table Connector connection using the
Saprfc.ini Path
and
Destination
advanced properties.
Ensure that you add the following entries in the
sapnwrfc.ini
file when you create the SAP Table connection:
DEST=PRD
ASHOST=sapr3
SYSNR=01
The SAP Table connection information is available in the SAP Table Connector documentation. For more information about the SAP Table connection, see the
SAP Table Connector
documentation.
Select
Local File
to fetch the IDoc using a file from your local drive.
Select the scope of the transformation. You can select one of the following options:
Select
Transaction
to apply the transformation logic to all rows in a transaction. Select
Transaction
when the results of the transformation depend on all rows in the same transaction, but not on rows in other transactions. When you select
Transaction
, associated mappings can run in real time. For outbound mappings, select
Transaction
.
Select
All Input
to apply the transformation logic to all incoming data, and to drop the incoming transaction boundaries. Select
All Input
when the results of the transformation depend on all rows of data in the source.
Enter the message type and the basic IDoc type, and then click
Fetch IDoc
.
The segment details of the IDoc appears.
On the
IDoc Document
tab, in the
Select IDoc Segments
section, select the segments you want to include in the mapplet.
Optionally, in an inbound mapping, to add a control record field to the mapplet, on the
Control Record
tab, select the checkbox for the field you want to add. This enables you to map the selected control record fields when you configure a mapping, integration template, or