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

PP02

Former Member
0 Likes
951

Hi All,

I want to assign the roles to the position in PP02(Maintain Plant Data)for infotype P100

Can anybody give me the FM to roles to the position.

This is very urgent.

Thanks,

Swapna.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
806

Hi Ranganath,

I need for P1001 infotype i did samething wat u did but for me it s not working roles are not assigninmg to positions.

Can you please tel me solution.

Thanks,

Swapna.

6 REPLIES 6
Read only

Former Member
0 Likes
806

BADI available for PP02:

ARC_BC_HROBJ_CHECK Archiving Object BC_HROBJ: Archivability Checks

ARC_BC_HROBJ_WRITE Archiving Object BC_HROBJ: Additional Table Entries

HRBAS00_RHBAUS00 Business Add-In for RHBAUS00

HRBAS00INFTY Update By

HRBAS00_GET_PROFL Determine user profile from table T77PR

HRBAS00_RELAT HR: Exit for Relationships

HRBAS00_SEARCH HR: Object Search

HRBAS00_STRUAUTH Business Add-In for Structural Authorization

HRBAS00_T77S0 HR: Switch Attributes

Reward points if useful.

Read only

Former Member
0 Likes
806

Hi,

Check this BAPI_USER_ACTGROUPS_ASSIGN.

Regards,

Satish

Read only

Former Member
0 Likes
806

Hi Swapna

Please use the FM RH_INSERT_INFTY_EXP,

FCODE = 'INS'

VTASK = 'D'

INNNN = P1017 " Fill the below mentioned values to this P1017 internal table of type HRP1017

P1017-PLVAR = '01'

P1017-OTYPE = 'S'

P1017-OBJID = <Position ID>

P1017-INFTY = '1017'

P1071-ITXNR = "Keep incrementig this counter for each position

TNNNN = "Pass the internal table of type HRT1017 filled as below

TNNNN-TABNR = P1071-ITXNR

TNNNN-PROFL = "Roles you want to assign to the position

Hope this helps !

Regards

~ Ranganath

Read only

Former Member
0 Likes
807

Hi Ranganath,

I need for P1001 infotype i did samething wat u did but for me it s not working roles are not assigninmg to positions.

Can you please tel me solution.

Thanks,

Swapna.

Read only

0 Likes
806

Hi Swapna

Apologies, i got confused with HRP1017 Role assinment to position. Doing it for HRP1001 is very simple , call the FM

RH_INSERT_INFTY_1001_EXT with the below parameters,

FCODE = 'INS'

VTASK = 'D'

INNNN = i_hri1001 "Declare it as type HRI1001 and populate as below

i_hri1001-PLVAR = '01'

i_hri1001-OTYPE = 'S'

i_hri1001-OBJID = <Position ID>

i_hri1001-INFTY = '1001'

i_hri1001-RSIGN = 'B'

i_hri1001-RELAT = '007'

i_hri1001-BEGDA = <Begin Date>

i_hri1001-ENDDA = <End Date>

i_hri1001-SCLAS = 'AG'

i_hri1001-SOBID = <Role ID to be assigned>.

Hope this helps !

Regards

Ranganath

Edited by: Ranganath Ramesh on Jan 16, 2008 12:11 PM

Read only

Former Member
0 Likes
806

Hi Ranganath,

Thank You so much for your reply I modified some code and it worked for me.Now i want to delete roles assigned to the position i am using the function module RH_DELETE_INFTY_1001_EXT and passing all the parameters but it is giving me error like "ERROR DURING DELETION" .

Can you please tell me is there anything to add and where i am doing the mistake.

Thanks,

Swapna.