Entering content frame

Procedure documentation Creating a Standard Task Locate the document in its SAP Library structure

To create a new standard task copy an existing task. The standard task 7947 "MATMAS_TASK" is used as an example.

In the SAP menu choose Tools ® SAP Business Workflow ®Development.

...

       1.      To create a standard task, choose Definition tools ® Tasks/Task groups ® Copy

       2.      In the Task type field enter TS and in the Task field enter 7947. Then choose Task ® Copy.

       3.      In the window Task:Copy enter the Abbreviation (XAMPLE_Error) and Name (XAMPLE input error) of your object and then select Copy.

       4.      A Create object catalog entry window appears: enter your package and select Save.

       5.      Note the number of the task you have created (99900000).

Edit the new task as follows:

...

       1.      Choose Definition tools ® Tasks/Task groups ®  Change

       2.      Delete the triggering events:

         Select Triggering events

         Select the event inputErrorOccurred and choose Edit ® Delete event.

         Select Back.

       3.      Delete the terminating events:

         Select Terminating events

         Select the event inputFinished and choose Edit ® Delete event.

         Select Back.

       4.      Replace the application component HLA0006031 with the application component applicable for your inbound processing.

Note

This is used for documentation and for finding the tasks appropriate to a given application component.

       5.      Replace the object type IDOCMATMAS with your newly created object type (IDOCXAMPLE).

       6.      Add the triggering event applicable to your object type:

         Select Triggering events

         Select Insert event

         A dialog box appears: type in your object type (IDOCXAMPLE), and use F4 in the event field to choose the event inputErrorOccurred

         Select Binding definition

         Enter &_EVT_OBJECT& in the field _WI_Object_Id.

         Enter &EXCEPTION& in the field Exception.

         Save your entries.

         Choose Goto ®Event Linkage, then Activate.

         Select Back twice.

       7.      Add the terminating event applicable to your object type:

         Select Terminating events

         Select Insert event

         A dialog box appears. enter your object type (IDOCXAMPLE) and use F4 in the Event field for the event inputFinished. Use F4 on the event field and choose the element _WI_OBJECT_ID

         Select Back. Note: You do not need to maintain the binding definition for this event.

       8.      To save your changes select Save.

         Select Save.

All the tasks should now be correctly copied. To be sure, check the following three settings:

...

       1.      Check the binding to the object:

         Select Binding OM

         &EXCEPTION& should be assigned to the field Exception.

         Select Back.

       2.      Check the default role:

         Select Default roles.

         The standard role for the agent should be 134. The standard role for the agent should be 134.

         Select Binding editor. &_WI_OBJECT_ID& should be assigned to the parameter IDocNumber.

         Select Back twice.

       3.      Check the work item text:

           Select Work item text

         A dialog box appears containing the work item text, which should contain two entries:

         &_WI_Object_Id.ShortMessage& This entry ensures that the first 50 characters in the work item text contain the IDoc's attribute "ShortMessage", which is the first 50 characters of the IDoc's error short text.

         &_WI_Object_Id.ApplicationObjectID&: This entry ensures that the remaining work item text contains the IDoc's attribute ApplicationObjectID, which is the ID of the application object contained in the IDoc. In the case of MATMAS it is the material number. The attribute is determined using the ALE link object.

         Select Back.

Note

An agent is assigned to a work item via Customizing for SAP Business Workflow. You can find these functions in transaction PPOMW (Change Organization and Staffing (WF)).

 

 

 

 

Leaving content frame