Skip to Content
author's profile photo Former Member
Former Member

ESS and MSS role assigned to position

Hi,

I have to find out that wheter the ESS Role is assigned to a position .I have to display (Y/N) (Details 'Y' if ESS Role Assigned, 'N' if no ESS role is assigned) To have a 'Y' it must be an active role

Is MSS Role assigned to a position .I have to display (Y/N) (Details 'Y' if MSS Role Assigned, 'N' if no MSS role is assigned) To have a 'Y' it must be an active role.

Kindly let me know how to do it.I am a abap developer and new to HR module.

Thanks !

Sachin Sharma

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on May 03, 2011 at 08:00 AM

    hi

    you can check the user id assigned to the position ,

    the correct procedure would be to use Logical database and HR function modules to retrive the poistion code and user id

    position code can be taken from infotype 1 and user id can be taken from infotype 105 , once u get the user id , then you can check the roles that are there , in your case it might be custom roles , you can hard code the role name for that matter to query the same.

    Hope this gives you a clear idea.

    Regards

    sameer

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 03, 2011 at 01:34 PM

    As you're only interested in positions / roles, just query against table HRP1001 for active positions (OTYPE = 'S', ENDDA >= current date, PLVAR = '01') which have roles assigned to (RSIGN = 'B', RELAT = '007', SCLAS = 'AG'). Loop through this for each position to see if ESS / MSS roles exist and set flag accordingly (SOBID = ess_role / mss_role) .

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 05, 2011 at 09:40 AM

    Thanks for the reply.

    Please let me know how to find that role is active or not and not delimited.?Because i have to display only active roles.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.