To launch Web Dynpro from SBWP Business Workplace
Contents:
1. Requirement
2. Steps
3. Scalability
4. Challenges
Requirement:
Suppose client has a requirement to launch the web dynpro application whenever a
work-item is executed from SBWP link.
For eg : Client has a work-item to be executed in SBWP inbox . He clicks on the
link and a web Dynpro gets launched with two button i.e. Approve and Reject.
He can thus click on approve or reject and the functionality gets executed. No EP
intervention is needed for this. Following are the steps which needs to be followed.
Steps:
Step 1 : Create a web dynpro application
Step 2: Create a workflow
Step 3: Do configuration in T-code WF_HANDCUST( Generate the host and port
automatically)
Step 4: Do configuration in T-code WF_EXTSRV ( Create a service and link the
web dynpro application with the service)
Step 5: Maintain the record in table SWLWPTSSID
(Link the service and the task of the workflow)
Step 6: See the Output
Step 1:
1. Create a web-dynpro component named ZWF_COMP
2. Create two button name approve and reject in layout of MAIN view.
3. Create the Web-dynpro application named ZWF_COMP
Step 2:
1. Create the workflow with one activity as shown in screen shot.
2. Provide BOR as WEBSERVICE and Method as PROCESSDIALOG.
3. Give the terminating event since the task is asynchronous.
4. Make the task as general task
Step 3:
1. Go to transaction WF_HANDCUST
2. Go to change mode and one popup appears saying to generate the
configuration automatically.
3. Once clicked on Yes the configuration is done automatically
Similarly perform the configuration for all the three tabs
Launch Handler
Callback Handler
Callback Dialog
Step 4:
1. Go to transaction WF_EXTSRV
2. Click on New entries.
3. Maintain the service , the name of the SERVICEID can be anything
4. Name of the Host will be the name generated in transaction
WF_HANDCUST
5. Provide the port generated in transaction WF_HANDCUST
6. Provide the path of web Dynpro application. The name can be fetched by
going through t-code SICF and going through the path
/sap/bc/webdynpro/sap/
7. Concatenate the service name i.e zwf_comp with the path
/sap/bc/webdynpro/sap/zwf_comp.
Step 5:
1. Maintain the table SWLWPTSSID. Here provide the task id created above in
workflow.
Step 6:
1. Execute the workflow
2. The link gets displayed in SBWP
3. Double click on link the webdynpro gets launched. Provide the SAP logon
user id and password
So here is the output.
Scalability (More features):
We can have access to the parameter id through which we can work further for eq:
We can get workflow id (WI_ID) in the form of parameter through which we can
read container and get sales order no and can thus display the records for that
particular sales order no . But for this we need to maintain parameter id for the
service id generated. Also we need to create one element (WI_ID) in container.
Challenges:
We need to maintain data in table SWLWPTSSID in each system.