Skip to Content

Step by Step – Triggering of Events for Workflow from Message Control

Event can be trigger from Message Control also. The step by step procedure is described below.

Suppose you want to trigger an custom event when a Standard Order is created with delivery block ‘Political Reason’.

First Create a Custom Business Object ZZBUS2032 with super type BUS2032 and create an event DeliverySet.


Then delegate your custom Business Object to BUS2032.


Then go to transaction NACE.


Select V1 and click on Output Type. Then click on New entries to create new Output Type.


Select the check boxes Access to Conditions and Partner-indep-output

Then click on Default values tab .


Select Despatch time as Send immediately

Select Transmission Medium as Events(SAP Business Workflow).

Then click on Processing routines . You are on the screen Processing


Put  Program as RSWEMC01 and Form Routine as CREATE_EVENT.

Then go to Condtion Table.


Here you have to create condition table.


Write V1 in application and  510 in Table.   Then click on Create.


Select Delivery block after clicking it. Then click on Generate.

Then back to main screen of NACE.

Click on Access Sequences.

Click on New entries.


Write Z510 in AS, and description .

Click on Accesses.


Write 99 in No. And select table as 510. Save it.

Now back to main screen on NACE.

Now we have to assign the Access Sequence to Output Type.

Go to output type. Select output type WORK. Click on that.


Write Z510 in Access Sequence. Save it.

And return to main screen.

Click on Condition Records.


Click on Work. Then you got selection screen of Delivery block. Click Execute w.


Select  Delivery block 02 , Political reason.

Write  ZZBUS2032 as object type and select DELIVERYSET as Event.

Go to main screen .

Now we have to assign output type to Procedure .

Click on Procedure.


Select V10000 for Standard Order.

Click on Control.

Click on New Entries.


Write some step no like 93. Assign WORK in Condition type.

Save it.

Then switch on the Trace using SWELS.


Then go to transaction VA01 to create sales order.




Put Delivery block as Political reason and other necessary item. And save it.

Then check in SWEL.


You will find your custom event DELIVERYSET will trigger.

To report this post you need to login first.


You must be Logged on to comment or reply to a post.

    1. Anjan Paul Post author


          The event should be triggered whenever needed, not every time. So we should use Custom event so that for some certain condition it is triggered.

              1. Former Member

                No, they both work but only one is correct. You should never reference the subtype anywhere, it could change. The supertype will not.

                1. Kevin Wilson

                  Agreed. Always use the standard BO when delegation has done. If you don’t do this then the associated workflow will not be linked to the associated application object. In this case the GOS (Generic Object Services) for the sales order (BUS2032) will not show linked Workflows unless you raise the event using BUS2032…

  1. Former Member

    Hello Anjan,

    Nice post.

    But I have a question. Instead of doing this from NACE, why can’t we maintain the Sales Order  BO – BUS2032 + your custom event combination in SWE2 so that it triggers your custom event, and your workflow as well.  Let me know if this is also ok.

    1. Anjan Paul Post author


      Right. We can raise event in various way. SAP has given many option to raise event. I try to give example how can we raise event through NACE.


Leave a Reply