cancel
Showing results for 
Search instead for 
Did you mean: 

How to limit Benefits adjustment reasons in portals

Former Member
0 Kudos

Hi, any ideas on how to supress benefits adjustment reasons on sap Portal. I want to see only annual enrollment, if for any other adjustment reason user should not see in portals, can only be performed by admins in the backend.

Es: Adjustment Reasons such as Newborn child or new hire should only be visible to admins in the backend but should not be shown to users in the sap portal?

Any ideas on config or a code change in NWDS??

Thanks

Murthy

Accepted Solutions (1)

Accepted Solutions (1)

suresh_datti
Active Contributor
0 Kudos

>

> Any ideas on config or a code change in NWDS??

>> Thanks

> Murthy

Don't go for the java Change(NWDS). You can limit the Adj. Reasons with a simple (implicit enhancment) in the function module HR_BEN_ESS_RFC_ENRO_REASONS.

~Suresh

Former Member
0 Kudos

Suresh,

I tried to create implicit implrementation, but when i tried to debug the code it is not going through the implict implimentation.., it is in active state only.., are there any more inputs you can give me??

What I tried to do is, copy the last two loop statements inside the enhancement at the end, then tried to delete the enrollment reason using sentence like delete * from enrollment_reasons where event not equal "ANNL" like that, butr the code not going into this part at all when I debug.., I dont have much idea of enhancement concept, i would appreciate if you can throw some light on this..,

Thanks

Murthy

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

To view the code underneath the proxy class "CL_BENEFITS_AREAPAGE" which is present in the service key for Benefits Open enrollment.

This class contains three methods.

IF_XSS_SER_PROXY_SERVICE~GET_SERVICES

IF_XSS_SER_PROXY_SERVICE~GET_SERVICE_DATA

IF_XSS_SER_PROXY_SERVICE~SET_CONTEXT_PARAMETERS

GET_SERVICE_DATA method contains FM HRXSS_SER_READTABRE which has a importing parameter. For more details please goto SE24 transaction and check the proxy class.

Former Member
0 Kudos

Vivek/David,

I went to the class-method and is it the place where i can change the code??

  • Read enrollment reasons

if l_servicekey eq 'EMPLOYEE_BENEFITPAY_OPEN_ENROLLMENT' OR

l_servicekey eq 'EMPLOYEE_BENEFITPAY_OPEN_ENROLLMENT05'.

read table enrollment_reasons into enrollment_reason

like after enrollment_reason can i write like where enrollment_reason-event eq ANNL??

any suggestions for me??

Thanks

Murthy

Edited by: Suryanarayana Mollivenkata on Oct 3, 2009 12:00 AM

Former Member
0 Kudos

Vivek/David,

proxy class worked for me.., Thanks for the suggestions.

Thanks

Murthy

Former Member
0 Kudos

Hi Murthy,

You need to modify CL_BENEFITS_AREAPAGE in ABAP (as ZCL_BENEFITS_AREAPAGE) and include it in V_T7XSSSERSRV-PROXYCLASS.

You do not need to use NWDS for this requirement. (Use proxy class as it mentioned above)

Regards,

David