Org Structure Monitor

Hi Everyone. Please assist with this.
I've created a custom monitor for bpm to monitor our org structure if a bp becomes orphaned. Basically the central person links the User to the BP, without this the Org chart cannot resolve where users are linked on the org chart. Each CP should have a US and a BP.
So I can simplify this by saying that a CP will always have a record where it has a BP and and a record where it has a US. If a CP XXXXXXXXX exists without a record for field (SCLAS) BP or record for field (SCLAS) US it is always an orphan but without a BP it is always an orphan.
I wrote this part of the code to extact any record where there is this scenario.
DATA: lt_1000 TYPE STANDARD TABLE OF hrp1000 INITIAL SIZE 0,
wa1000 TYPE lt_1000.
SELECT * INTO TABLE lt_1000 FROM hrp1000
WHERE otype = 'CP' AND endda > sy-datum.
TYPES: BEGIN OF lt_1001,
otype TYPE hrp1001-otype,
otjid TYPE hrp1001-otjid,
sclas TYPE hrp1001-sclas,
END OF lt_1001.
DATA: lt_1001 TYPE STANDARD TABLE OF hrp1001 INITIAL SIZE 0,
wa1001 TYPE lt_1001.
SELECT * FROM hrp1001
INTO TABLE lt_1001
FOR ALL ENTRIES IN lt_1000
WHERE otype = lt_1000-otype
AND sclas = 'BP' OR sclas = 'US'.
LOOP AT lt_1000 INTO wa1000.
READ TABLE lt_1001 WITH KEY otype = wa1000-otype
sclas = 'BP'
INTO wa1001.
IF sy-subrc = 0.
READ TABLE lt_1001 WITH KEY otype = wa1001-otype
sclas = 'US'
INTO wa1001.
IF sy-subrc = 0.
ELSE.
APPEND ls_otjid TO rt_otjid.
READ TABLE lt_1001 WITH KEY otype = wa1000-otype
sclas = 'US'
INTO wa1001.
IF sy-subrc NE 0.
APPEND ls_otjid TO rt_otjid.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
For some reason though I get alerts showing all the records in HRP1001.
What am i doing wrong here. Any help is greatly appreciated. Thanks in advance.

Hi,
See the solution in the foll threads:
<b>Re: Tracking Chngs made to the SRM Organisation Structure.</b>Log of changes in PPOMA_BBP ?
BR,
Disha.
<b>Pls reward full points for useful answers.</b>

Similar Messages

  • Monitoring ORG structure change

    Hi experts,
    I would need to know who has performed change in Org structure and on which objects.
    What is the simplest way to do this?
    Thanks in advance.

    Hello,
    Which changes (tabs) in organizational structure ?
    Regards.
    Laurent.

  • What to do incase of new change in Org Structure while using indirect assig

    Hi all,
    This is my first post in this forum and I hope I will get the right answer.
    We have implemented the indirect role assignement and now we are in the process to set the process incase of any change in the Org Structure.
    Option 1)
    Me as a security engineer I have decied to have the following process:
    HR has moved an employee from position to position > HR will inform the SAP Security Engineer about the new change > SAP Security Engineer lock the user and send the new list of roles for the employee to the mananger and process team lead for approval > mananger and process team lead can either approve the request or suggest new changes > then the SAP Security Engineer will do the changes i(if any) and then unlock the user.
    Option 2)
    One of the Process Team Leads is suggesting that we assign the roles to the positions once, get it approved and then whatever happen we don't care.
    Please let me know what is the best way, and I am sure the first option is the best but a lot of manual work.
    I hope to get good response on this and I hope if there is supported document from SAP.

    >
    Julius Bussche wrote:
    > Option 1 sounds labour intensive. Option 2 requires better planning and testing.
    >
    > If your roles are built with the org structure in mind and the user's authority for anything other than basic common functions is from those position based roles, then you can assign the roles to the positions and let HR move the user's around as their jobs change in the org structure.
    >
    > What you should however be involved in is any changes to the org structure itself and the roles assigned to the positions and the roles themselves anyway.
    >
    > As you would be letting the system do a large part of the boring work for you, you should also monitor the usage of it from time to time.
    >
    > If you have a very large number of users and your org structure is stable and well defined (i.e. not a chaotic project structure...) then go for option 2 because it is more scalable.
    >
    > Cheers,
    > Julius
    In addition to Julius comments, I like to add the following base on our current security design.
    We have something similar to option #2 in place.  We have HR base security by positions.  We made sure the business owners of the security roles are aware of the security role to position mappings.  We have a matrix of security to position mappings that has been approved by the business owners.  Exceptions are address in the form of a Help Desk ticket.
    In this example all managers will get a set of roles.  The clerks will also get a set of roles.  Again these will be pre-approve role to position assignments.
    Position: Manager
    Assign Role: Z-GL-MANAGER & Z-AP-MANAGER
    Position: Clerk
    Assign Role: Z-GL-CLERK & Z-AP-DISPLAY
    Option #1 - It's too much work and you are assuming that all the players involve on the business process will follow through, from notification of move, to approval, and more notification, etc.
    As long as the business owners are aware and understand how position base security works option #2 is the way to go.  Of course we have other procedure in place before handing out security credentials, from submitting an SAP access form to mandatory training, etc.  We currently do not have the man power to have option #1 in place.
    Good Luck!

  • Not able to see hierarchial org structure by clicking on Expand this branch

    Dear experts,
    I am currently using the Online data extraction via sap for Nakisa Integration with SAP Landscape.
    I have completed the configuration of Nakisa with the help of configuration guide and administrator guide - After completing administrator steps the org chart is visible - When i navigate to the org structure i can see the org unit under the org structure root that i configured as an administrator in the general settings section.
    When i click the + sign ie on expand this branch i am not able to see all teh org units under the displayed branch.
    Can you please guide me regarding how one can view the org structure below the selected branch when i click on expand this branch section.
    Manager Personnel Id is not maintained for this org unit - Should the user clicking on the expand this branch be the manager of the org unit to see the org structure.
    Regards
    HKishan

    Dear Luke,
    I am not able to see that navigation icons within an org chart box - The org unit that is displayed on clicking the orgchart does have branches in SAP but i am not able to see these navigation icons that lead me to these branches.
    Is there any specific step that needs to be done to see these branches.
    By the way what is the log file you are refering to is it the "PresentationResources.xml " or is it any other log file.
    Regards
    Hkishan

  • BAPIs / Function Modules to access org. structure data?

    Hi,
    I want to integrate SAP org. structure with external BPM system.
    anybody knows how to access org. structure data via RFC or web services?
    Thanks in advance.

    The purchasing org and purchasing grp can be found in T024E and T024 table.
    Regards
    Anurag

  • Sending mail to a particular positon in org structure via workflow

    hi all
    i have a problem regarding sending mail to particular position in org structure on runtime execution  via workflow so that i neednt hard court the particular position
    to achieve this i am using expressions,first i have created a new container element and then i have used container operation like this:
    (lead.employee responsible.business partner= container element defined by me)
    when i first try to execute the workflow and test it ,in the container  i am getting the value of the container element in which i have the position where i have to send the mail.but inspite of value getting populated ,when i am using that container element to send mail like:
    expression: container element
    the mail is not send,when i checked the log it is mentioned that " you are not the authorised person to stsart the workflow and start failed" but workflow is still triggered and i am able to pass the object but not able to send the mail.
    please tell me is there any feasible way to achieve this,like rule or in my way how is it able to achieve
    detailed possible solution will really be appreciated.on thing we are working on CRM 5.0 standalone system
    full marks will be rewarded
    best regards
    ashish

    Hi,
    Follow this ,
    Goto PFTC -> Choose "Workflow Template" from the drop down -> Enter the workflow template id "123********" in the text box -> now click on "change" button -> Now goto the menu addional data -> agent assignment -> maintain -> select the task text -> and set it as general task.
    I guess you have done the same for the standard task TS*********** but failed to do it for the workflow template (WS123*************). Or have you done it already?
    Also once you make this change "Refresh your buffers" once before checking it out.
    Richard A

  • Error while creating Org structure     Message no. BBP_LOCATION009

    Hi
    Iam trying to build an SRM6.0 with backend as R/3 4.7
    I have replicated the plats from back end with report BBP_LOCATIONS_GET_FROM_SYSTEM
    On errors rectified the same and finally, SLG1 report shows no errors.
    But still noticed that T77S0 table entry with GPID=EBP, SEMID= LMIGR is not set to ‘X’ (Refer note 563180)
    Due to the above problem while creating org structure when I click on ‘Att inheritence’ or “Extended attributes –Locations” tab,
    I get the message:
    Start program BBP_LOCATIONS_GET_ALL first (see Note 563180 and long text)
             Message no. BBP_LOCATION009
    Diagnosis
        You tried to call a program that uses a location. The locations have not
        yet been replicated.
    System Response
        The current program has been terminated.
    Procedure
        Start the program  to replicate the locations. You can find more
        information in SAPNet in Note .
    Procedure for System Administration
    You can disable this message by starting table maintenance (SM30) for
    table T77S0. Change the entry EBP/LMIGR to "X". Note that the system
    cannot supply certain information if the locations are not replicated.
    Locations that do not exist can be deleted during attribute maintenance.

    are you working with multiple backend systems?
    can you retry downloading the plants with the report
    BBP_LOCATIONS_GET_ALL
    and then give the logical sys name as yr present backend?
    BR
    Dinesh

  • SRM HR Org Structure - error in EBP User

    We are on SRM 4.0 (EBP 5.) and have replicated our R/3 org structure.  We run a nightly batch job that updates the org structure in SRM with any changes made in R/3.  Some users are unable to use SRM due to not being replicated properly into SRM. When you view the org structure via PPOMA_BBP - Change Attributes  Check there are two STOP signs - with the following error messages
    STOP   BBP Error in EBP User xxxxx
    STOP   HR/ALE Verteilung ist aktiv. Verteilen Sie die Benutzerdaten neu. 
    When I translated the German error message, it translated to
    HR/ALE Distribution is active.
    Redistribute the user data. 
    How do I redistribute the user data to correct the problem so the users can use SRM again?  
    Also, where can I change the german transaction into English. 
    Any assistance would be greatly appreciated. 
    Thanks 
    Jan Stover

    Hi Jan,
         Follow these steps in R/3
    1. Go To PA20. Check the Personal ID for the user for whom it shoots an error
    2. Go To PFAL. You might have to use a variant for this transaction. Feed the User's Personal # and the target system.
    This will push an IDOC from R/3 to SRM with the org data
         Follow these steps in SRM:
    1. Go to SE38 and execute this report RBDAPP01
    This report will process the incoming IDOC to the Org Structure in SRM
    Regards,
    Anand

  • Goods receipt when PO creator has been removed from org structure ?

    Hello in my organisational structure PPOMA_BBP, i have 2 users, X and Y.
    X has created a PO in the SRM portal.However , X has been removed from the org. structure.
    Is it possible for Y to make the goods recept( that is , Y logs in the portal and makes the goods receipt) ?

    Hi
    Did you try to delete the user ? Did you get any error message?
    Note 1148837 - SRM user cannot be deleted
    When trying to delete an SRM user the system will check if there are still
    related SRM documents in the system. If there are active documents in the
    system the deletion is not possible. This is the correct system behaviour.
    But even if all related SRM documents are archived the deletion is
    sometimes not possible, because there are residual entries in table
    CRMD_PARTNER linked to this user.
    More Terms
    User crmd_partner residual entries deletion active document
    Cause and Prerequisites
    Solution
    The attached report PARTNER_SET_DELETE will display in simulation mode all
    residual entries in table crmd_partner with invalid item or header links
    and in non simulation mode it will delete the corresponding crmd_partner
    entries.
    Header Data
    Release Status: Released for Customer
    Released on: 10.03.2008 11:54:37
    Priority: Correction with low priority
    Category: Help for error analysis
    Main Component SRM-EBP-PD Procurement Document Methods
    Additional Components:
    SRM-EBP-ADM-USR SRM User Administration
    Valid Releases
    Software Component Release From
    Release
    To Release and Following
    SRM_SERVER 500 500 500
    SRM_SERVER 550 550 550
    Support Packages
    Support Packages Release Package Name
    SRM_SERVER 500 SAPKIBKS14
    SRM_SERVER 550 SAPKIBKT12
    Correction Instructions
    Ref note 550071 too..
    regards
    Muthu

  • Display of Person with position in Org Structure

    Dear All,
    We have a display issue, please help us to resolve.
    While uploading the master data with help of BDC, the data is uploaded which has been checked properly showing data has been uploaded. But when we see the org structure through ppom_old we cant see person assignment to the positions.
    chandan maity

    Hi,
    Whenever you run master data upload through BDC the relationships in OM are not created.
    I am sure you have created the necessary positions in OM under Org Units and then used these positions in BDC to upload your IT 0001. But now you are not able to see the position - holder assignment in OM, right?
    If this is your problem then go to SE38 and run program RHINTE00.
    Select one or two persons for whom you have uploaded master data and run the above program for them
    If you have already created OM objects then tick mark CREATE HOLDER RELATIONSHIPS ONLY
    a session will be created with your username which you can process through SM35
    please go through the documentation of the report to understand the use.
    cheers
    Ajay

  • PR to PO conversion - Issue from Org structure

    Dear all
    I have configured following Org Structure in 4.6C.
    Plant: z101 is assigned with company code:xxxx
    another
    Plant: z201 is assigned with Company code:yyyy
    and centralised purchase organisation is used.
    I have created a PR belongs to plant:z101.So its based on company code:xxxx
    when I referring that PR to create PO and but entering the plant as z201........ system is allowing me to create.
    when I display the PO,its shows the plant as z101 for that line item but company code is become yyyy.............
    I really wondering .........how the system is allowing.....
    any suggestions?

    i think you have created your companyes by copying the data from company code 1000. so first conferm that you have assigned them same charts of account like INT.
    now, Goto
    IMG --> Materials Management --> purchasing --> valuation and Account determination --> Account determination --> Group together valuation area
    Here you have to group (cluster your different plants) with the same key like 001.
    Now make a po.
    if not works tell me

  • Org Structure chosen within HR report

    I hope I have this question in the right forum.  Within a HR report built using the Logical database PNP,  you can choose a Report Category that will will allow you to choose 1) Further Selections 2) Search Helps, 3) Sort Order 4) Org Structure. These are buttons at the top of the selection screen.
    My question relates to choosing the Org Structure and if the user selects multiple Org Units when clicking on the Org Structure button.  The PNP logical will take care of selecting the correct employees based on the Org Units selected.
    Is there a way, when the program is executing to determine what the user chose from this Org Structure tree?  It's not the PNPORGEH parameter on the selection screen.
    Thanks
    John

    Nevermind.  I wasn't looking hard enough.

  • Logical Database - PNPCE - Hide 'Org Structure' 'Search Help' etc buttons

    Hi,
    We have created a report by making a z copy of RCATS_APPROVE_ACTIVITIES. In the Z version we need to hide the buttons on the titlebar of the selection screen.
    Buttons are
    - Org Structure
    - Search Help
    - Dynamic Selection
    - Selection Fields.
    Can you please suggest if I can do something from the code ?
    Regards,
    Chiranjeevi.

    Hi,
    Thanks for your suggestion. However, there is no title bar method that we can modify to remove the buttons. I have created a Z report Category by copying the existing one and made the modifications.
    In that we can hide/display UI elements which are displayed by Logical Database.
    Regards,
    Chiranjeevi.

  • LDB  PNP, selection screen, org structure field name ?

    Hi,
    Generally, what are the names of the additional selection-screen fields? There are twenty odds pnp...., the standard ones. But what is the name of the org. structure, the 4th button selection options group fiels? (I need ids of all Org units from org. structure subtree, or the root org id at least)
    Thanks,
    Piotr

    ...this it is with headerline...
    Sergey big spasiba
    Piotr

  • Initialize Org Units on PNPCE Org Structure selection

    Hi All
    In the selection screen of programs where PNP or PNPCE logical database is used, the Org Units can be selected from the Org Structure.
    Can anyone tell me how to initialize Org Units values into the org structure screen

    Hi..
    I hope this may help you...
    select-options: s_orgeh for p0001-orgeh.
    *--  pre-populate top-level org units to process
      s_orgeh-sign = 'I'.
      s_orgeh-option = 'EQ'.
      s_orgeh-low = 'xxxxxxx'.   
      append s_orgeh.
      s_orgeh-low = 'xxxxxxx'.   
      append s_orgeh.
    Thank you

Maybe you are looking for

  • HI .. PROBLEM IN SUBMITTING THE EDITED DATA FROM THE EDIT PAGE

    HI, I am having a Main form consiting of a af:table which is binded .. so when i select the row and click on "edit" button binded with the table.. i am able to get the respective data form in the Edit page. Now when i modify any data in the binded te

  • HT5225 Problem with Mac Mail

    I do not want to access my MAC mail via my browser, I prefer accessing my mail in the Mac Mail application!  How do I do this?

  • TS1589 My amber light keeps blinking on my airport extreme

    The utility tells me there is no internet connection but I know there is because my old router connects. What do I do next?

  • I can not to restore my Itunes music file.

    rergm I have a 4 Gb ipod nano and a music file that I want to keep. I had troubles with my computer (crash) and I needed to format my hard drive. Now I want to restore my original Itunes music file from my ipod, but I can't to copy it back. How can I

  • Profile parameter related to DIA increment

    Hi all, If we increase # of DIA wp using RZ10, the init/max swap requirement is calculated automatically for us. What about the buffer size (listed on the left side of no.of work process area in RZ10, i.e.abap program (abap/buffersize)?  What is the