Web-enabled workitems

Web-enabled workitems

You can have workflow generate workitems that can be executed both in the Web environment as a custom web application, and in a regular R/3 environment as an ABAP application.
This tip is intended for release 4.6C.


Prerequisites:
1. You have developed custom IAC that you want to use as the web front-end for the task.
2. You already have developed a workflow dialog task that you want to "Web-enable"

Procedure:
1. In the WF Builder, create a new Web transaction for the task (Menu: Goto->Web transaction -> Generate)
At this point SAP will generate Web-forms IAC and tcode for it, and assign tcode to the task.
You may delete the generated ABAP module pool since you won't need it anymore.

2. Extend your custom application with additional screen which will be used as an entry point for the web transaction. The screen should have the following fields:
- WI_ID (PID='WID', Char12) - will contain workitem id.
- CALLINGSERVICE (PID = 'CSV', Char20) - name of the calling service/tcode

Develop PAI module which would grab WI_ID from screen, go to the workitem container and retrieve necessary data for the application.

3. Assign the transaction name, created on the step 1, to your application (use the new screen created in step 2 as the initial screen). Make it the easy-web transaction.

4. Create ITS service with EXACTLY the same name as the web transaction created in step 2 & 3, and assign it to

    Requires Free Membership to View

    When you register, you will start receiving targeted emails from my award-winning team of editorial writers. Our goal is to keep you informed on the hottest topics and biggest challenges faced by SAP professionals today.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSAP.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSAP.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

this transaction. Copy or create all necessary HTML templates and resources in the ITS service. Publish it.

5. You're done. When you will start your workitem from the Web - it'll run your custom easy-web transaction. And when executed from R/3, the workitem will run the object method.

This was first published in February 2003

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.