Entering content frame

Procedure documentation Creating IDoc Object Type: IDOCXAMPLE Locate the document in its SAP Library structure

To create object type IDOCXAMPLE, you can copy object type DOCMATMAS I in the Business Object Builder (transaction SWO1):

 

...

       1.      In the Business Object Builder enter IDOCMATMAS as the object type and choose Copy.

       2.      A dialog box appears: enter the name of your object type (e.g. IDOCXAMPLE) and your report (for example, RXAMPLE1) and select Copy

The naming convention for SAP is IDOC<Message type>, for example, IDOCXAMPLE

The naming convention for customers is ZDOC<Message type> for example, ZDOCXAMPLE

       3.      A dialog box appears. Enter your package.

 

Edit the object type you have created (e.g. IDOCXAMPLE) as follows:

...

       1.      Select Change.

       2.      A dialog box appears: do not choose any of the options, just press Enter.

       3.      Select Basic data and change the object's short text and description to fit your needs

The naming convention for the short text is "IDOC <Message type>", for example , "IDOC XAMPLE".

Select Back.

       4.      Change the description of the event inputFinished as follows: Look at the events by expanding the hierarchical list under the heading Events; double-click on the event inputFinished and now change the description and press Enter

       5.      Appl_Object of the event as follows: Select menu options Goto ® Obj. type components ® Parameters, and then select parameter Appl_Object by double-clicking on it. Change the object type BUS001 to the object type that has been processed by your inbound function module. Also change the short text and the description.

 

Note

If a suitable application object type does not exist for your inbound function module, then delete the parameter Appl_Object rather than changing it. To do this, select the parameter Appl_Object and then select Delete rather than double-clicking on the parameter.

 

·        Select Back and save the object type (Object type ® Save w/o check).

·        To generate the object type select Generate.

·        Release the object type as follows: Return to the initial screen and choose Object Type ®Change Release Status ® Implemented, and then Object Type ® Change Release Status  ® Release.

As an option, you can add a further parameter Application_Variable to the inputFinished event's container. This variable is filled with the contents of the inbound function module's export parameter Application_Variable. To see an example where this parameter is used, look at the object type IDOCORDERS.

 

 

 

 

Leaving content frame