Demo on Workflow using Classes

...Previous

BI_PERSISTENT~LPOR Method:  

BI_PERSISTENT~REFRESH Method:  

If we do not need the method in our class, then we need only to carry out a “dummy” implementation (without further coding) to avoid program errors when the system calls the method.   

 BI_OBJECT~DEFAULT_ATTRIBUTE_VALUE Method:  

 BI_OBJECT~EXECUTE_DEFAULT_METHOD Method:  

 BI_OBJECT~RELEASE Method:  

Now, the attributes need to be developed to implement above methods are as follows:  

To trigger the workflow using event of class, we must also create an event of the class. To do this, go to EVENTS tab, and there create a new event CREATED as shown below :  

Before implementing above methods, a local type needs to be created. To do this, click on LOCAL TYPES as shown below:  

Now write the below code :  

How to use Class in a Workflow  

Here, the workflow needs to be triggered as soon as a material is created. And then a workitem should go to initiator to edit the same material.  

Go to SWDD to create a new workflow.

Click on Basic Data Tab :  

Give an abbreviation and Short Description to workflow as follows :

Now click on START EVENTS tab and specify the following standard event of the standard class :

Now go back and right click in between the WORKFLOW STARTED and WORKFLOW COMPLETED.

Click here to continue...

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image