Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
anjan_paul
Active Contributor

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.

Enter.

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.





14 Comments
Labels in this area