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

Org unit from managers desktop

Hi All,

I've created a report and it's been attached with the managers desktop.Now when I call this report from managers desktop, I want to read the Organization unit in my report before doing anything. I'm using PNP logical databse.With PCH logical database I could read the org unit but with PNP I can't read until I reach to GET PERNR statement. I can't use PCH logical databse as the requirement is to run the report based on employee number selection within that org unit.

It works fine even with PNP also but the customer wants to have cutomized screen to go back and forth years to see the report and while executing this custom funtionality , it's not picking the correct org unit.So I want to store the org unit the very first time when I'm calling the report and then I'll pass the same stored org unit for further functionality.

If anyone has idea how to grab this org unit , pls let me know. Will award points.

Thanks

Alok

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 07, 2008 at 07:26 PM

    Alok,

    That is how I coded the Org.stru logic in my code ( FYI - I used LDB PNP ) ..

    SELECT-OPTIONS: pnpobjid FOR PERNR-orgeh NO INTERVALS.

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR pnpobjid-LOW . "OUTPUT.

    CALL FUNCTION 'RP_PNP_ORGSTRUCTURE'

    EXPORTING

    begda = SY-DATUM

    endda = SY-DATUM

    plvar = '01'

    TABLES

    pobjid = pnpobjid.

    Loop at P_obj.

    And in HRp1000 OBJID = p_OBJ-LOW

    endloop .

    Hope this will help !

    Good luck !

    Saquib Khan

    .

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Saqib,

      Thanks for replying to my thread. This is not what I want. From the managers desktop we could call the reports. I've attached the report to the managers desktop and it works fine at the org unit level.But I want to use it with the employee within that org unit. My question is where I could get the values from like org unit or pernr when we call the report from managers desktop. Once I get this value then I know how I could use that.

      Hope this clears my question.

      Thanks

      Alok

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2008 at 07:32 PM

    Solved it myself.

    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.