cancel
Showing results for 
Search instead for 
Did you mean: 

How to include a WDA page in MSS relavtive activites

Former Member
0 Kudos

Hello Experts,
I have a WDA application named (ztravel_req) i want to include this WDA application under relative activities in MSS>General Info>Relative Activities.
As per now i just have created a WDA iview for the application and in R/3 done the spro settings now i am able to see the Link .

But on click of it  now i need to pass the pernr to the WDA application.
Please tell how to achive it.

i read many threads but not able to find how to create a application using service id of abap.

Quick help is appreciable...

Regards,,
Prajakta

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,
here is the solution
1)From Portal End:

1)Create 2 iviews i)Abap Component application 2)For Launching that application

i)A simple WDA or WDJ iview

ii)Create a WDJ iview using (local)Webdynpro Iview as per selected application and corresponding page for launching this relative activity iview

2)After this iview is created you need to do" SPRO " configuration

i)Create 2 resources

  • One for Abap Application :Give the iview PCD

  • Other for Relative Activity Launcher : Give the page PCD containing the Launcher ivew

ii)Create 2 services

  • One for Abap Application

  • Other for Relative Activity Launcher

3)Now copy the service id for the ABAP application and copy it to the portal iview property  "Self-Service "of Relative activity Launcher

Now How your Abap application will pick this Pernr:

Just copy this code to the Abap Component.

In the inbound plug:

method HANDLEDEFAULT .

* The personnel number is stored in the memory space, put there by JAVA, retrievable only in this method.

* Get the personnel number and put it into the componentcontroller

  DATA: lv_id       TYPE TEXT5,

        lv_pernr    TYPE pernr_d,

        lo_nd_p0006 TYPE REF TO if_wd_context_node,

        lo_el_p0006 TYPE REF TO if_wd_context_element.

* Retrieve the personnel number from the memory space

  CALL FUNCTION 'HR_ASR_WDA_GET_EMPLOYEE'

   EXPORTING

     ID            = 'MSS01'

   IMPORTING

     PERNR         = lv_pernr.

* Set personnel number to context componentcontroller

  lo_nd_p0006 = wd_context->path_get_node( path = 'P0006' ).

  lo_el_p0006 = lo_nd_p0006->get_element(  ).

  lo_el_p0006->set_attribute( name = 'PERNR' value = lv_pernr ).

         

   endmethod.

Thanks & regards,

Prajakta k

in case of any doubt u can reply

Former Member
0 Kudos

WDJ Iview:Relative Activity Launcher

Answers (3)

Answers (3)

former_member184059
Contributor
0 Kudos
anja_engelhardt2
Active Contributor
0 Kudos
fabianl
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Prajakta,

i tink u must pass a dynamic parameter (pernr) to your WDA.

please have a look here, how you can pass parameters:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/008fc414-997f-2e10-3899-fd895ec8e...

Additional check this one, this is nearly the same problem!? http://scn.sap.com/message/10407000

Br,

Fabian

Former Member
0 Kudos

Hey,
i dont want to pick up the logged in user id i want to pick up the user selected by the Manager in MSS>Team> general information page>relative activity subarea .

regards,
Prajakta

Former Member
0 Kudos

Hey,
i dont want to pick up the logged in user id i want to pick up the user selected by the Manager in MSS>Team> general information page>relative activity subarea .

regards,
Prajakta