cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in webdynpro application while calling from UWL

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182468
Contributor
0 Kudos

Hi akshay,

Check the following links ,

Workitems, UWL and Web Dynpro for ABAP

http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20f4843e-314f-2a10-2a88-8c4afa20d...

another that talks about swfvisu

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a002d1eb-33f0-2b10-f391-e1e0c3057c17&override...

hope this helps.

Thanks,

Sahiba