cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify pernr in HRESS_A_CATS_1

Former Member
0 Kudos

Hi,

I'm trying to call the standard webdynpro "HRESS_A_CATS_1" from a custom webdynpro.

I need to change the pernr, and so I have passed the URL paramenter PERNR_MEM_ID on the url

but it doesn't work.

 

How can I do this?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Before calling the application do the following.

Call method 'SET_PERNR_TO_MEMORY' of class 'CL_HRESS_EMPLOYEE_SERVICES'

Pass employee id to this method and the value which you get in the returning parameter RV_MEM_ID pass this into the parameter 'PERNR_MEM_ID' which launching the application.

Let me know if this helps.

Answers (1)

Answers (1)

ChrisSolomon
Active Contributor
0 Kudos

You need to SET the memory ID "PERNR_MEM_ID" to the PERNR value you want in your custom WDA. The standard will GET that memory value.

This is how older MSS and ESS work (ie. passing PERNR in memory values and not in the URL directly).

Hope this helps.

Former Member
0 Kudos

Hi Christopher,

I tried with the code below, but it doesn't work.

SET PARAMETER ID 'PERNR_MEM_ID' FIELD ls_delegates-pernr.

ChrisSolomon
Active Contributor
0 Kudos

Look at SAP's code where they do it. I will look and see if I can find it. Look in the CATS app and see how they "pull" it. That will give you the hint/tip too.