Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Go to Tx- SU01 & cehck the user WF-BATCH & USER Type as- B System user.
Go to Tx- SM59 and check the logical destination .
Tx- OOW4
Click edit button then click on the Create Icon. Here you can reserve a prefix number for a package.
Same can be done from Tx- SWU3.
Step7. Provide the mail subject and the mail body and then Click on Continue button.
Step8. As send mail is a step in the workflow, provide the step name and description and
save in the related package.
Step11. Usually the email would be sent to the user Tx- SBWP.
Step13. Once executed it shows the below message. To see the log click on the Workflow
Log button.
Step14. Here is the workflow log. Click on the Graphic button to see graphical view.
Step15. The green line indicates that, the wf stared and the EMAIL STEP STATUS UPDATE
has been executed and wf has been completed.
Step16. Go the user Tx- SBWP and in the inbox we can see there is one document. Double
click on that to see its body.
Step17. Here is the mail content that is mentioned in the work flow mail step body.
Triggering wok flow with business object event
Step1. Create a structure with a field which we will use in the creation of key field of a
business object.
Step4. So we have created a business object. Now lets create a key field.
Step5. Put the cursor on the Key Fields and select create button.
Step6. Select no.
Step7. Provide key field name and its text and as technical data type refer to the structure
field that we created in the first step.
Step8. So we are done with the creation of the key field of the BO. Lets create an event in
the business object(BO). Select events and click on create.
Step9. Provide the event name and its text and continue.
Step10. Implement the BO and implement the event and generate the BO.
Step11. Now open the our created work flow in Tx- SWDD. Go to the work flow header.
Step12. Go to the start event tab.
Step15. provide the business object name and the event name which will be triggered to
start the work flow. click on the Active button.
Step18. Go to USER tx- SBWP. Clear the documents so that we can easily identify the mail
once send by the work flow.
Step19. Here is the program which triggers the BO event programatically by calling the
function module. Execute .
Step21. check the User tx- SBWP. So here once mail is arrived.
Step22. See the mail content.
Step23. Here some additional steps the developer might check about the workflow that has
been executed. Go to Tx- SWI1.
Step4. To enable a class to trigger work flow, it has to implement interface IF_WORKFLOW.
When it is implemented it also implements INTERFACE : BI_OBJECT and BI_PERSISTENT.
Step5. In the attribute section define two attribute and one choose as key attribute.
Step6. In the Events section, define an event. Now goto methods section.
Step19. Here initially we triggered by business object event. Now we have to change with
Class event.
Step22. Create a report and call the method to raise the Class event.
Step23. So here report output.
Step1. So here we have the class event that can be used to start the work flow.
Step3. Go to Tx- SWDD. Click on Create and then Select the header button.
Step4. Under basic data section provide the description and then click on the START Event.
Step11. Activate the work flow. In this work flow whether the approved or rejected the
work flow completed.
Step12. So here we have the program that triggers the work flow start event. See the link
to see how the class methods are implemented.
Step15. So here we have two options. Dont select any right now.
Step18. Now the work flow status is in process as we have an work item is pending for
approval or rejection in the user inbox.
Step21. Now go to the Tx- SWI1 and select the work flow. Now the work flow status id
completed. Click on the view graph button.
Step22. As approved by the user the work flow completed in the success path.
Step23. Run the program again.
Step26. in the user inbox- tx- SBWP . So the decision request has arrived.