Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

User Exit for restricting Separation action

Former Member
0 Likes
716

Hi Experts,

I have a requirement that i need to restrict the separation action for some positions. I have found the user exit but i am having problem in capturing the current action that is getting trigerred & i also want the position of the person that he holds, so that i can put up a message that this position cannot be deleted.

kindly help on this.

--

Thanks

Prateek

1 ACCEPTED SOLUTION
Read only

GauthamV
Active Contributor
0 Likes
668

Use this badi.

HRPAD00INFTY

Hi Experts,

I have a requirement that i need to restrict the separation action for some positions. I have found the user exit but i am having problem in capturing the current action that is getting trigerred & i also want the position of the person that he holds, so that i can put up a message that this position cannot be deleted.

kindly help on this.

--

Thanks

Prateek

3 REPLIES 3
Read only

GauthamV
Active Contributor
0 Likes
669

Use this badi.

HRPAD00INFTY

Read only

Former Member
0 Likes
668

Hi,

Please implement this BADI HRPAD00INFTY and use method AFTER_INPUT.

Read only

Former Member
0 Likes
668

Hi,

You need to read the postion from the PA0001.. i don't think you will get this data in the user exit. You have to fetch the data from the from pa0001.

User Exit : EXIT_SAPFP50M_002

  • To read the active record of infotype data in the given date range

PERFORM read_infotype(sapfp50p)

USING p_pernr '0001' space space

'4' lv_date lv_date '0'

'NOP' l_0001.