An IDoc mapplet includes a primary key (GPK) and a foreign key (GFK) in each segment. When you configure a mapping, integration template, or
mapping
task, map the primary key field, foreign key field, and any control record fields.
You can enable control record fields when you import the IDoc metadata.
The Prepare transformation in the SAP IDoc Writer mapplet can have primary key and foreign key fields and other input fields, including control record fields.
The Prepare transformation has the following output fields:
IDoc Data. Map this field to an IDoc target.
Error IDoc Data. Map this field to see error messages about IDoc syntax/data conversion.
When you import IDoc metadata, you can add fields to an
IDoc Prepare
transformation. In
Mapplet - SAP IDoc
, on the
Control Record
tab, you can add the control record keys as key-value pairs. For example, you can add the following key-value pairs for the sender partner type and the sender partner number:
Key: SNDPRT and Value: LS for Logical System
Key: SNDPRN and Value ICS
In an inbound mapping, you can pass the sender partner number to SAP. You can pass a value to the CONTROL_SNDPRN port in the control input group of the Prepare transformation. If you do not connect this port to an upstream transformation, the Secure Agent uses the partner number value of SNDPRN key you specify in the