on 11-17-2009 9:57 AM
Hi All,
I am working on APPRAISAL workflow in HCM module.
In new version of SAP has provided ABAP web dynpro application HAP_MAIN_DOCUMENT (component HAP_MAIN_DOCUMENT)
but it is not integrated with workflow. Earlier insted of this application there was a BSP application and this was integrated with workflow.
Now to integrate ABAP webdynpro application with workflow I have created new web dynpro application and calling HAP_MAIN DOCUMENT application and when I test through SE80 transaction then I am just passing Work Item ID and it is opening HAP_MAIN DOCUMENT application. I have done it as follows.
In swfvisu I am passing Work Item ID and In application I am getting business object details using this I am createing a URL and then using exit plug I am calling HAP_MAIN_DOCUMENT application
*METHOD exit1 .*
* DATA lo_nd_new_url TYPE REF TO if_wd_context_node.
**DATA lo_el_new_url TYPE REF TO if_wd_context_element.**
**DATA ls_new_url TYPE wd_this->element_new_url.**
**DATA lv_url TYPE wd_this->element_new_url-url.**
**DATA: l_cmp_api TYPE REF TO if_wd_component,**
**result TYPE REF TO if_wd_window,**
**l_window1 TYPE REF TO if_wd_window_manager.**
*** navigate from <CONTEXT> to <NEW_URL> via lead selection**
**lo_nd_new_url = wd_context->get_child_node( name = wd_this->wdctx_new_url ).**
*** @TODO handle non existant child**
*** IF lo_nd_new_url IS INITIAL.**
*** ENDIF.**
*** get element via lead selection**
**lo_el_new_url = lo_nd_new_url->get_element( ).**
*** @TODO handle not set lead selection**
**IF lo_el_new_url IS INITIAL.**
**ENDIF.**
*** get single attribute**
**lo_el_new_url->get_attribute(**
**EXPORTING**
**name = `URL`**
**IMPORTING**
**value = lv_url ).**
**wd_this->fire_exit_plg( url = lv_url ). "abap_true**
*** l_cmp_api = wd_this->wd_get_api( ).**
*** l_window1 = l_cmp_api->get_window_manager( ).**
*****
*** result = l_window1->create_external_window(**
***url = lv_url ).**
*****
*** result->open( ).**
**ENDMETHOD.**
In SE80 it is opening application perfectly in same session of new Z webdynpro application.
But when I click on UWL workitem it is not opening.
In dubugging I checked that workitem ID is passed correctly also URL is created correctly for HAP_MAINDOCUMENT but it is not opening.
Please let me know is there any setting in UWL config.
Edited by: Akshay Kale on Nov 17, 2009 11:51 AM
Edited by: Akshay Kale on Nov 23, 2009 10:07 AM
Hi akshay,
Check the following links ,
Workitems, UWL and Web Dynpro for ABAP
another that talks about swfvisu
hope this helps.
Thanks,
Sahiba
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.