SAP Connector Guide > Part VI: Data Integration Using IDocs > Mapping and Mapping Configuration Tasks Using IDocs > Configuring an Inbound Mapping to Write IDocs to SAP
  

Configuring an Inbound Mapping to Write IDocs to SAP

    1. To create a mapping, click Design > Mappings, and then click New Mapping.
    The New Mapping dialog box appears.
    2. Enter a name and description for the mapping, and click OK.
    You can use alphanumeric characters and underscores (_) in the mapping name.
    3. To configure a source, on the Transformation palette, click Source.
    4. In the Properties panel, on the General tab, enter a name and description.
    5. Click the Source tab and configure the source details.
    6. To add an IDoc mapplet transformation, on the Transformation palette, click Mapplet.
    1. a. On the General tab, enter a name and description for the mapplet.
    2. b. Draw a link to connect the previous transformation to the transformation.
    3. c. On the Mapplet tab, click Select.
    4. The Select Mapplet dialog box appears.
    5. d. Specify an IDoc mapplet that you imported using the Prepare transformation and click OK.
    6. e. To preview fields, configure the field rules, or rename fields, click Incoming Fields.
    7. Note: You must link the DOCNUM port of the mapplet to the source transformation. The DOCNUM port represents a unique number for each IDoc and the SAP system does not accept inbound IDocs without a unique document number.
    7. To add any other transformation, on the Transformation palette, click the transformation name. Or, drag the transformation onto the mapping canvas.
    1. a. On the General tab, enter a name and description for the transformation.
    2. b. Draw a link to connect the previous transformation to the transformation.
    3. When you link transformations, the downstream transformation inherits the incoming fields from the previous transformation.
      For a Joiner transformation, draw a master link and a detail link.
    4. c. To preview fields, configure the field rules, or rename fields, click Incoming Fields.
    5. d. Configure additional transformation properties, as needed.
    6. The properties that you configure vary based on the type of transformation that you create.
    7. e. To add another transformation, repeat these steps.
    8. To add a Target transformation, on the Transformation palette, click Target.
    1. a. On the General tab, enter a name and description.
    2. b. Draw a link to connect the previous transformation to the Target transformation.
    3. c. Click the Target tab and configure SAP target details.
    4. d. To preview fields, configure the field rules, or rename fields, click Incoming Fields.
    5. e. Click Field Mapping and map the fields that you want to write to the target.
    6. f. To add another Target transformation, repeat these steps.
    9. Save and run the mapping or save and create a Mapping Configuration task.