Skip to Content

Step by Step – Triggering of Events for Workflow from Message Control (NACE)

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.

/wp-content/uploads/2012/04/2_96900.jpg

Then delegate your custom Business Object to BUS2032.

/wp-content/uploads/2012/04/6_96901.jpg

Then go to transaction NACE.

/wp-content/uploads/2012/04/1_96899.jpg

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

/wp-content/uploads/2012/04/10_96902.jpg

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

Then click on Default values tab .

/wp-content/uploads/2012/04/12_96903.jpg

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

/wp-content/uploads/2012/04/13_96904.jpg

Put  Program as RSWEMC01 and Form Routine as CREATE_EVENT.

Then go to Condtion Table.

/wp-content/uploads/2012/04/13a_96906.jpg

Here you have to create condition table.

/wp-content/uploads/2012/04/13i_96908.jpg

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

/wp-content/uploads/2012/04/13k_96911.jpg

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.

/wp-content/uploads/2012/04/15_96913.jpg

Write Z510 in AS, and description .

Click on Accesses.

/wp-content/uploads/2012/04/15a_96919.jpg

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.


/wp-content/uploads/2012/04/16_96920.jpg

Write Z510 in Access Sequence. Save it.

And return to main screen.

Click on Condition Records.

/wp-content/uploads/2012/04/17_96921.jpg

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

/wp-content/uploads/2012/04/19_96922.jpg

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.

/wp-content/uploads/2012/04/20_96924.jpg

Select V10000 for Standard Order.

Click on Control.

Click on New Entries.

/wp-content/uploads/2012/04/22_96925.jpg

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

Save it.

Then switch on the Trace using SWELS.

/wp-content/uploads/2012/04/24_96926.jpg

Then go to transaction VA01 to create sales order.

/wp-content/uploads/2012/04/26_96927.jpg

Enter.

/wp-content/uploads/2012/04/27_96928.jpg

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

Then check in SWEL.

/wp-content/uploads/2012/04/28_96929.jpg

You will find your custom event DELIVERYSET will trigger.





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