Start of Content Area

Procedure documentation Defining Mapping Objects (IDoc Variant)  Locate the document in its SAP Library structure

Use

You perform the following steps to define the operation mapping BookingOrderCancelation_Agency2AirlineIDoc that has already been created.

Procedure

You implement this operation mapping in a similar way to the operation mapping BookingOrderCancelation_Agency2Airline (see Defining Mapping Objects). Perform the following additional activities:

...

       1.      Execute the steps 1-5 described in Defining Mapping Objects for the operation mapping BookingOrderCancelation_Agency2AirlineIDoc.

       Enter BookingOrderCancelation_Agency2AirlineIDoc as the name of the message mapping.

       Enter the following description: Booking order cancelation (agency to IDoc).

       2.      Open the message mapping BookingOrderCancelation_Agency2AirlineIDoc.

       3.      Use drag & drop to drag the element BookingID to the target element E1SBO_CANC, the element BookingNumber to the element BOOKINGNUMBER, and the element AirlineIDto the element AIRLINEID.

       4.      In the IDoc structure, position the cursor on the obligatory EDI_DC40 field. In the context menu, choose Disable Field.

Note

The EDI_DC40 field is an IDoc-specific technical field. This field is filled during runtime by the IDoc inbound adapter and therefore does not need to be given a value during mapping.

If you do not disable the field, the mapping is syntactically incorrect, because the obligatory field is not filled.

       5.      Assign the constant value 1 to the target elements BEGIN (under IDOC) and SEGMENT (under the elements EDI_DC40 and E1SBO_CANC).  In each case, double-click the element to select it. Select the entry Constants from the function chooser (dropdown list box for Functions). Choose Constant. The element is represented in the graphical mapping editor by a colored rectangle. Connect the element to the target element. Double-click the element and enter the value 1 in the Value field (instead of empty).

       6.      Save and close the message mapping.

Note

To test the message mapping, proceed as described in Defining Mapping Objects.

       7.      Save and close the operation mapping.

 

 

End of Content Area