This tutorial explains flexible event creation from Message Control. You learn how you can create an event in order to respond to business conditions for which SAP has not provided a response mechanism. It is not necessary to make changes to the program code.
The subject is illustrated in a scenario which you set up in the individual units of this tutorial.
The tutorial highlights one aspect of the overall functionality of SAP Business Workflow. It cannot replace the complete documentation. The tutorial is designed for customers and consultants who want to extend the scenarios provided by SAP. The explanations and working methods are consciously covered in great depth; the fact that existing knowledge is repeated has been taken into account in this case.
SAP Business Workflow
In order to be able to work through this tutorial effectively, you should be familiar with the basic terms and concepts used in SAP Business Workflow and should have some practical experience. It is a definite advantage to have worked through the
This tutorial supplements the SAP Business Workflow documentation, which is also available online:
In order to work through this tutorial effectively, you should also be familiar with the basic terms and concepts used in Message Control. You will derive maximum benefit from this tutorial if you use the information described to enhance the Message Control you already have in operation.
The Message Control documentation is available online:
The individual steps of this tutorial are performed automatically. The process is controlled by a workflow, which was defined to simplify Message Control customizing.
Before you work through the tutorial in the way described, make sure that SAP Business Workflow customizing has been completed in your system. The easiest way to do this is by calling the consistency checks for Customizing (transaction SWU3) and executing Automatic Customizing.
The automatic Customizing ensures, among other things, that the single step tasks that are used are marked as "general tasks" which you can consequently edit.
This step can be omitted if you already use SAP Business Workflow or if you have already been through the other tutorials successfully. You can also execute the automatic Customizing repeatedly, as existing settings are not overwritten.
A sales document (standard order) is created via the "normal" application functionality (Logistics® Sales and distribution ® Sales, Order ® Create). The document is blocked in the business header data with the delivery block 02 (political reasons).
The creation of a sales document with the delivery block 02 is to be published by an event system-wide. Since the creation of this event is not provided in the standard version, this event is created via Message Control as a customer-specific enhancement.
The event is therefore available as a triggering event for tasks.
This tutorial only explains the creation of the event. The reaction to the event is not discussed in any greater detail.
Available application functionality
The scenario, as described above, requires that Message Control is used in the application concerned. This is the case in SD.
The following 10 points outline the tutorial and the entries which need to be made. If you are already familiar with SAP Business Workflow and Message Control, you will probably find these points sufficient.
Otherwise refer to the respective chapters. You can make the entries described in your IDES system.
Steps 3-9 are defined in the workflow definition for the workflow template WS00400040. You can therefore "leave it up to" the workflow to call the functionality. You can, of course, also use the transaction codes specified.
(Application -> output type)
(Output type, transmission medium -> processing program)
(Application -> condition table)
(Application -> access sequence -> access to condition tables)
(Application, output type -> access sequence)
Enter the event DeliveryBlockSet and its object type BUS2032 in the communication data.
(Application, output type -> field contents)
(Application, schema (procedure) -> output type)
The procedure described assumes that you are creating the condition components output type, condition table and access sequence from scratch.
However, you do not have to create all condition components from scratch. It may be the case with your own developments that you use condition tables and access sequences which already exist. If that is so, the order of the steps shown above does not need to be adhered to.
If you use an access sequence which already exists, the following steps are not necessary: