Sunteți pe pagina 1din 6

Getting Started New sletters

Store

Welcome, Guest

Login

Register

Solutions Industries Lines of Business

Services & Support Training & Education University Alliances

About SCN Partnership Events & Webinars

Downloads Developer Center Innovation

My Home > Web Dynpro ABAP > Integrating WebDynpro ABAP applications with UWL for workflow in Portal

Browse

Search Tools

Integrating WebDynpro ABAP applications with UWL for workflow in Portal


5 Added by Veena, last edited by Craig Cmehil on Dec 28, 2009 (view change)

This blog w ill help you understand how the SAP Enterprise Portal w orkflow integrates w ith WebDynpro for ABAP applications. Prerequisites You have access to Portal Universal Worklist iView You have access to the Universal Worklist Administration iView . You have implemented an alternative w ork item visualization and execution (for example, through a custom iView ). Portal UWL Adm inistration Each UWL iView can retrieve w ork items from multiple business w orkflow back-end systems. 1. On the portal, choose System Administration->System Configuration->UWL Administration 2. Choose UWL Systems Configuration Universal Worklist Systems To add a new entry, choose New . 3. Here you can define connectors and systems as item providers for the Universal Worklist. 4. Choose Register Item Types for All Systems to perform the registration for all configured systems. The w ork item registration process involves identifying each system by its alias, and then generating the XML description of how to process the w ork item types to be received by UWL from each system.

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

WebDynpro Launch System is the Portal System for w hich the system object is created as show n below w ith the system alias of 'Sap_WebDynpro_XSS'

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Task Launch Custom ization - tcode SWFVISU Use transaction SWFVISU to prepare standard setting for your Workitem in the UWL. It defines how a task is executed, once you select the task subject line on the w orklist. The UWL connects to the registered system and generates item types from the Business Workflow task definitions. Each system defines a new WebFlow configuration namespace. When you successfully register a w ork item type, the XML text that defines the execution of the task is made available. The item type links the task definition w ith the item execution by UWL 1.Start Transaction SWFVISU, Choose New Entries 2.Enter your Task ID ex. TS90000033 and define the visualization type as ABAP WebDynpro for the task

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

3. Application Name = Your ABAP WebDynpro application name 4. Dynamic parameter is the w ork item id that it receives from UWL. 5. Namespace = sap 6. System_alias = Alias name of the system w here the application is deployed. Note also, that specifying the SYSTEM_ALIAS (optional parameter) overrides the WebDynpro launch system alias defined w hile configuring the UWL in portal. If it is left blank it w ill give a 'Resource not found' exception as it w ill not find the WDA application in the Portal WAS. Register your system in UWL Administration after any changes in the above parameters Integrating the WDA Application w ith the Workflow 1. Create a Web Dynpro ABAP Component using Transaction SE80. 2. In the Web Dynpro ABAP application parameters define the parameter WI_ID1

3. Go to the Main Window , sw itch to the tab Inbound Plugs, double click on the Default Plug, w hich w ill take you to the HANDLEDEFAULT method. Add a Parameter to this method called WI_ID1 of type String.

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

The above method is called w hen the WDA Application is launched w hich in turn calls the interface view and the WI_ID1 is passed to it as parameter. 4. Get the value of WI_ID1 in the HANDLEDEFAULT method of the w indow of your application and store it in component controller so as to use it in view s to process the w ork item. *&Fetch the w ork item id of the current w ork item or child w ork item * navigate from <CONTEXT> to <WORKFLOWDATA> via lead selection lo_nd_w orkflow data = w d_context->get_child_node( name = w d_this->w dctx_w orkflow data ). lo_nd_w orkflow data->set_attribute( value = w i_id1 name = 'WI_ID'). lw _ch_w iid = w i_id1. 5. In Web Dynpro ABAP w e can use the RFC FM's for retrieving the Work Item ID, to change and read the Task Container Elements, to complete or cancel the Work Item etc. The follow ing FM's are used to process the w orkitems according to the user decision. *Fetch the w ork item id of parent of the current w ork item SWP_TOP_LEVEL_WORKFLOW_GET *To read w ork item ID and to read container values of the w orkflow header for current w ork item SAP_WAPI_READ_CONTAINER *Change Task Container SAP_WAPI_WRITE_CONTAINER *Trigger Event on user submit or approve

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

SAP_WAPI_CREATE_EVENT *To complete the decision SAP_WAPI_DECISION_COMPLETE *To cancel the w ork item SAP_WAPI_ADM_WORKFLOW_CANCEL

Labels
uwl webdynpro abap workflow portal

Contact Us Privacy

SAP Help Portal Terms of Use

Legal Disclosure

Copyright

Follow SCN

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

S-ar putea să vă placă și