on 01-07-2013 3:26 PM
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
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
ii)Create 2 services
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please refer the following help link:
https://help.sap.com/saphelp_nw04s/helpdata/en/7b/fb57412df8091de10000000a155106/content.htm
Regards,
Rajendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
moved to SAP ERP Human Capital Management (SAP ERP HCM) by moderator
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prajakta,
i tink u must pass a dynamic parameter (pernr) to your WDA.
please have a look here, how you can pass parameters:
Additional check this one, this is nearly the same problem!? http://scn.sap.com/message/10407000
Br,
Fabian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.