Skip to Content

Triggering of Events for Workflow  upon Exception raise from LIS

Event can be trigger from LIS Exception also. The step by step procedure is described below.

Scenario: Triggering of events upon  Gross orders Value greater than ZERO and when Sales organisation is 1000.

First go to transaction MCY1                   

/wp-content/uploads/2012/03/1_80763.jpg

Then click on Characteristics -> Choose Characteristics and select ‘Sales Organisation’ to selection criteria. Look at the following  Screen .

 

/wp-content/uploads/2012/03/2_80768.jpg

Then click on  Character value   following screen will appear.

/wp-content/uploads/2012/03/3_80770.jpg

Then copy.

Then click on Requirement-> Choose Key figure. Select Gross Order to selection criteria. Look at the following screen.

/wp-content/uploads/2012/03/4_80771.jpg

Then click  on Define Key Figure

See Gross Value > 0.

/wp-content/uploads/2012/03/6_80772.jpg

Then Continue.

Then click on Follow up Processing. Then check Active for Periodic  Analysis and As ind records.

/wp-content/uploads/2012/03/7_80780.jpg

Then Save and exit from MCY1.

To see the event is triggered you have to switch on the event trace using SWELS.

/wp-content/uploads/2012/03/swels1_81420.jpg

Then close that window.

To raise exception you have to set the Exception ZANJ1 to background job . For this use Transaction MCYB. w

Then go to menu click  Periodic Analysis-> Create

 

/wp-content/uploads/2012/03/9_80785.jpg

Then select  Event Driven. Then click on Create. A variant window will open . Give name z2. Then create.

/wp-content/uploads/2012/03/10_80790.jpg

Select for Individual Selection screen.

/wp-content/uploads/2012/03/11_80794.jpg

Then click on Attributes.

 

/wp-content/uploads/2012/03/12_80795.jpg

Save it.

Back to main screen . Select Periodic Analysis -> Schedule.

/wp-content/uploads/2012/03/15_80798.jpg

Then Click on Schedule.           

/wp-content/uploads/2012/03/16_80800.jpg

Then click on Immediate . Select Periodic Job. Click on Periodic Values. Select Other Values. Set 1 minutes.

/wp-content/uploads/2012/03/18_80801.jpg

Then Save it and back to the main screen.

Then click on Overview. You can see your job is schedule.

/wp-content/uploads/2012/03/19_80803.jpg

And then exit from MCYB.

Then go to AWUW. Click Change. Click on New Entries.

/wp-content/uploads/2012/03/20_80805.jpg

Then Give LIS Exception Name, Your Business Object and Event name. And set Event Linkage Active.

/wp-content/uploads/2012/03/22_80811.jpg

Save it.

Then go to transaction VA01.

Give Sales Organisation = 1000

/wp-content/uploads/2012/03/24_80812.jpg

Press Enter.

Then fill the required entry. And Order Quantity value must be grater than Zero . And save the Sales order. A sales order will be created. w

/wp-content/uploads/2012/03/25_80808.jpg

Then go to SWEL. Click on Execute.

/wp-content/uploads/2012/03/28_80809.jpg

You will see your event trigger automatically.

To report this post you need to login first.

1 Comment

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

Leave a Reply