Getting org structure details -  RH_PM_GET_STRUCTURE

Hi All,
I am using FM RH_PM_GET_STRUCTURE to retrieve all the personnel numbers within an org unit. This all works fine and the resultant table "objec_tab" contains all the correct enties, but unfortunately the begda and endda fields for each entry are simply the begin date of the persons very first contract to the end date of the very last contract rather than the specific contract where they were in the requested org unit.
i.e. if a personnel number has three contracts
1) orgunit_A - 01.08.2008 to  01.09.2008
2) orgunit_B - 02.09.2008 to 01.12.2008
3) orgunit_C - 02.12.2008 to 01.12.9999
Now if i run my code for orgunit_B i will get the personnel number retrieved into the "object_tab" but the begda would be 01.08.2008 and the endda would be 01.12.9999. I would like it to show 02.08.2008 and 01.12.2008 in the begin and end date fields. Anyone know how i would do this?
ABAP code im using is as follows:
call function 'RH_PM_GET_STRUCTURE'
    EXPORTING
      plvar           = '01'   "p0000-plvar
      otype           = 'O'                                 "0001-otype
      objid           = ld_orgeh
      begda           = '20080428'   "sy-datum
      endda           = sy-datum
      status          = '1'
      wegid           = 'SBESX'
      77aw_int        = ' '
    TABLES
      struc_tab       = t_orgstr
      objec_tab       = objec_tab
    EXCEPTIONS
      not_found       = 1
      ppway_not_found = 2
      others          = 3.
Any help would be much appreciated
Regards
Mart

Oops sorry me being a bit of a tool, the information i needed was in the returned table "struc_tab". Im sure it wasnt when i originally tried it...but hey ho i guess it must have been, its all sorted now anyway!
Regards
Mart

Similar Messages

  • Replicate org structure from HR

    Hi,
    I need to replicate org structure from HR to SRM.What are the settings i need to do for replication in R/3 as well as in SRM.Can any body please give me the procedure.

    Hello Rambabu,
    You might find it useful.
    How to get Org structure from backend replicated into SRM
    Thanks
    Ashutosh

  • Plan version and org structure

    Dear all,
    As the company is planing to change/expand it's org structure, they created a new org structure. Someone said that, we can do future planing in by creating a dummy org structure and once it's approved, we can make it as original and will keep the old org structure for reference. And to activate the new org structure, we need to create a new plan version.
    So my question is,
    1. How to assign/link the new org structure to the new plan version? How can we make sure that the new changes (eg. any new joinee) will effect only in the new org structure and not in the old org structure?.
    2. How to transfer the old org structure details to the new org structure?
    Regards
    ET

    Hi Thomas,
    You can copy your active org structure through Tcode (RE_RHCOPL00 - Copy) then in Table T77S0 make the Plogi - Plogi switch as 02 that is your alternate plan version.  Then through PSO0 you can set this plan version.
    Hope this helps.
    Shrikant

  • How to read user details based on org structure

    hi,
    i want to read which user is logon sap crm 7.0 based on org structure is there any functional module or bapi. how to find out which user is logon.
    jemmi.

    Hi Jemmi,
    Login user can be accessed by sy-uname directly. i think you are interested in finding bp's assigned to org unit of login user.
    I am giving few details, check whichever is relevant for you.
    To get the org unit of the login user ..
       s_logon_orgunit = CL_CRM_AUI_SERVICE=>get_logon_orgunit_of_agent( ).
    To get all the bp's under that org unit
      move-corresponding ls_logon_orgunit to ls_orgunit.
      CALL METHOD CL_CRM_AUI_SERVICE=>GET_BP_DATA_FROM_ORG_UNIT
        EXPORTING
          IV_ORGUNIT   = ls_orgunit
        RECEIVING
          RV_HROBJBUPA = ls_bp.
    Get all org units the user is assigned to as BP's
      CALL FUNCTION 'RH_STRUC_GET'
        EXPORTING
          act_otype       = 'US'
          act_objid       = sy-uname
          act_wegid       = gc_sms_wegid-org_4_usr
          authority_check = ' '
        IMPORTING
          act_plvar       = lv_plvar
        TABLES
          result_tab      = lt_result_tab
        EXCEPTIONS
          no_plvar_found  = 1
          no_entry_found  = 2
          OTHERS          = 3.
    Cheers,
    Sumit Mittal

  • How to get PNP Org Structure to reflect the org structure as of key date?

    I created a custom program using the PNP logical database.  I defined a custom report category indicating the selection period = employee selection period and allowing org.structure.  I’m also using the standard SAP PNP_DEFAULT selection view. 
    Inside my ABAP I initialize the pnpbegda and pnpbegps to reflect 20060930.  Upon Execution the key date reflects 09/30/2006.  I click on the org.structure button.  The org.structure displayed reflects the one as of today rather than as of Sept-30. 
    During run debug I see that the RP_PNP_ORGSTRUCTURE  program, LRPPNU11, calls function 'RH_TYPE_STRUC_HELP' to get the org.structure.  The call to this function passes 09/30/2006 for the begda and endda, but it still returns the latest org.structure.  I did some playing with this function and found that if I also pass the ACT_SEARCH_WEGID as ORGEH it works.
    Any idea on how I can get the LRPPNU11 program to pass the ACT_SEARCH_WEGID or the subsequent called functions to process for ORGEH?

    thanks. but maybe I don't describe my problem well.
    I use javascript to get some information such as position, sytle of each elements and then pass these to javafx. So the besides the dom tree, I can get more information about elements.
    I need to pass them back to javafx.
    if node support setUserData, I can associate them to each Node/Element. But webkit don't support this feature.
    BTW, If javascript pass a object to javafx. it can only deal with primary types such as string, numeric. But I need pass back a complicated javascript object like:
    {name:"parent", children:[{name:"child1"},{name:"child2"}]
    I can use (String)JSObject.getMember("name"); and JSObject children=JSObject.getMember("children");
    but I can't cast children to Object[] or JSObject[].
    so I have to use some tricky to convert Javascript Object to json string and then in javafx convert it back to Object tree.
    Edited by: user12956197 on 2013-3-11 上午4:27

  • BP number not getting created while creating org structure in PPOMA_CRM

    Hi,
    we have sol Man 4.0 SP15. I am creating org structure in PPOMA_CRM. After creating the org units, the BP number are NOT getting generated automatically. Please advise on this.
    Regards
    Kumar

    Hi,
    Hav a look at the below post
    [PPOMA_CRM no BP number assigned|PPOMA_CRM no BP number assigned]
    Thx,
    Waseem

  • 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

  • Org Structure not updating in CRM Correctly

    Hi Experts,
    We have an issue with their ALE transfer of the HR Org Structure (from the HR box) to the structure in the CRM box.
    It is (apparently) randomly not updating certain details. Org units and their relationships which are changed in ECC are not getting replicated into CRM. The relations with the parent node are not flowing to CRM in most of the cases.
    e.g. a position change won't come or new org assignment.
    Every time we are pulling using PFAL for missing relations and new assignments but client is not happy with the persistent issue.
    Can anyone give me any assistance on what else I should be looking at to troubleshoot random missing data in the ALE process?
    Many thanks in advance.
    Vijay

    Hi Maggi,
    We are using HRMD_ABA. .. is that what u r asking..?
    Please let me know if you need more details.
    Thank you..
    Vijay

  • Changing name in Org structure - central person

    Hello All,
    I have got request for name change in SRM. So, i have changed the name details in SU01 and it is not reflecting at central person. I even tried to edit but it was of no use.
    Could you please help me on changing the name at central person in Org. structure.
    Thanks,
    Muzamil

    Hi
    best practice
    you must do it via MANAGE USER DATA via admin role.
    in development box try
    Try to change suo1 user name
    and run HRALXSYNC - for only that user and
    i test when i get time today.
    Muthu

  • Asset exclusion is selected though it is excluded in the org. structure.

    Hi SRM gurus,
    We are working on a Standalone scenario (SRM 4.0) where we have assets and asset classes.
    In our org. structure we have excluded two asset classes with the exclusion indicator to the corresponding attributes of the purchasing organisation.( Asset class - ANK). But when we create a SC all the assets are selected in the Item details --> Cost assignment ---> dragdown (asset).
    From our case it seems there is no effect of the exclusion indicator/ we made something wrong somewhere.
    Can we get few suggestions/sap notes from the group that what went wrong?
    Thnx. & Reg.,
    Sridhar.

    Hi Mani,
      Thanks a lot for your reply.
    If the exclusion indicator is maintained at user level also it is not working.( all
    assets are selected from the list and there is no difference between the others)
    May I get any further suggestions on this issue pls.
    Thx. & reg.,
    Sridhar.

  • PNP org structure restriction does not follow dates?

    Hi all,
    I've a PNP report, in which I use the pop up org structure (org unit) restriction in attempt to restrict the Employees retrieved by GET PERNR.
    Running the report, I notice that GET PERNR picks up employees who are no longer in the Org Units that I selected as restrictions). In debug mode I tried manually changnig the dates of pnpbegda, pnpendda, pnpbegps, pnpendps, pn-begda, pn-endda, pn-begps, pn-endps ..... but it was still retrieving employees that were no longer in the selected Org Unit.
    See image link:
    http://img255.imageshack.us/img255/3255/deletemeag9.gif
    1) Is there a pnp date that the Org Unit restrcition follows which I am not aware of?
    2) I cannot rememebr the difference between pnp***** and pn-***** dates, can someone refresh my mind?
    I am currently thinking of using the following code to perform this function manually ( but I'm hoping for to use PNP to achieve the Org Units restriction to dates automatically)
    GET pernr.
      rp-provide-from-last p0001 space PNPBEGDA PNPENDDA.
      CHECK p0001-ORGEH in PNPOBJID.
    (PNPOBJID is similar to type rsrange and contains the Org Units restrictions as selected in the selection screen)
    Regards,
    Kevin

    Hi Kevin
    There is no much difference is the usage. Only difference that i have found so far is PNP* fields are fields coming from the selection screen for PNP LDB ( ... you can get all the selection screen details for PNP from include DBPNPSEL ) ... But the variables PN-* are the one's which are declared and used during the processing.
    This variables i.e. PN-* will hold the dates for Begin Date and End Date when user chooses the option "Today", "Current Month", "Current Year" and so on ... But PNPBEGA and PNPENDDA will hold the date values when user enters some date in screen fields for "Date Selection Period".
    So, it is better to always use PN-* variables as they will have the right dates based on the radio button choosen.
    Hope this helps !
    Cheers
    ~ Ranganath

  • Uploading new Org Structure when old one exists?

    Good day,
    I m faced with the following scenario:
    There is an org unit with the following no assignment:
    O --> 00001 to 09999
    S --> 100001 to 199999
    P --> external number assignment
    Now only S P and O are being used.
    The client wants to correct the current org structure.
    They wanted to reorder the org units numbering.
    It was demonstrated to them in QAS client that this will entail deleting the object and relations to give the object a different number and in OM, the relations are important not the object ID.
    The client is working on Org Units in batches and cannot get all the information ready at one time and cannot wait for the final data upload in PRD.
    Thus, they have instructed us to go with new numbering for Org units from 1001 .... onwards so that upto 100 they are not touched.
    And we have been asked to start uploading ORg Units in batches, firstly in QAS clients and then in PRD.
    What r the consequences of having 2 numberings for the same object in OM?
    Is it possible to have a plan version and an active version of Org Structure in SAP? If so, what are the limitations in terms of object validity?
    Kindly advice.
    Thanks and regards,
    Archana.

    Marisa,
    Looks like your purchasing org has purchaing org and purchaing group assigned together in the function tab.
    Purchaing org details should be maintained one level below your root org. In fucntion tab for ONE COMPRAS maintain your purchasing org details. DONOT MAINTAIN PURCHASING GROUP TOGETHER.
    Maintain purchaing group to the org unit where all your users are. I.e org unit compratoes...something like that !!!
    Also maintain relevant responsibilities for product categories in purchasing group and for purchaing org...in the extended atributes maintain the product categories.
    Your company code looks ok.
    This should fix your problem.
    Assign points if your problem is solved
    Thanks,
    Sundeep

  • Business partner not created when User is intergrated in SRM org Structure

    Hi SRM gurus,
    A new users  in integrated into the SRM org structure thro Z tcode ,business partner is not created.
    the user is not able to create shopping cart.
    When we try to check for t.code:BBP_BP_OM_INTEGRATE we are getting this error"
    Connection of object us XXXXXX to object u2018CPu2019 is not unique"
    how to resolve this error.
    Regards
    G.Ganesh kumar

    Hi  all,
    1) I  have checked the SLG1 -No error log is found
    2) In the basic tab there is no details to enter.
    I am getting this error"Missing Authorisation : info type 1001 ,object type BP,Subtype A207".
    since it is Production system -can we run run PFAL directly
    G.Ganesh Kumar

  • Interface with Peoplesoft for Org structure

    Please let me know if there is way to interface with Peoplesoft to get the org chart (employees and their reporting details along with Org structure) and update the SAP Org hierarchy (PPOME). Any type of interfacing (file, RFCs, real time) options available to achieve this? We have our HR in PeopleSoft but need the Org chart in SAP for workflow and other reasons.
    If any one has done anything similar, please share how it was done. Thank you.

    No one seems to know of a way, so closing it.

  • Org structure and import purchase procedure

    hi,
    Can anybody clarify the scenerio?
    company is importing the raw materials from overseas at Kolkata,Mumbai and Chennai  port .From the port the material will be distributed to different mfg plants across India. The procurement is happening only from Head Office which is in Mumbai.
    How the organisational structure can be configured for this process?
    Also can anyone explain the detail process of Import purchase?
       Thanks in advance,
    abimanyu

    Hi
    You have to define the org structure as ur req with multiple plants
    Now u can do the imports and transfer the material from docks to the desired plant
    while creating the po in ur HO u have to give delivery add of ur plant
    IMPORT PROCESS
    in ur pricing u have to create following
    JCDB IN: Basic Custom Duty
    JCV1 IN : CVD
    JECV IN : Ed Cess on CVD
    J1CV IN : H&SECess on CVD
    JEDB IN : Ed Cess on BCD
    JSDB IN : H&SECess on BCD
    JADC Additional Duty of Custom
    JCV1, JECV, J1CV and JADC will go to Excise MODVAT Accounts and JCDB, JEDB and JSDB will get loaded on inventory.
    In M/06, for all above conditions, keep following controls;
    Cond. class A (Discount or surcharge) Plus/minus A (Positive)
    Calculat.type A (Percentage)
    Cond.category B (Delivery costs)
    Activate "Currency Conversion" and "Accrual"
    now for setoff
    maintain the following conditions in excise default settings.
    JCV1, JECV, JADC
    path: spro>logistic general >tax on goods movements>india >basic settings>determination of excise duty >maintain excise defaults >
    along with ur tax procedure maintain these conditions in the specified fields
    JCV1 in CVD condition field.
    JECV in ECS conditon field.
    JADC in ACD conditon field.
    in case of secess on CVD, no need to maintain.
    it is hardcodded in the standard
    Vendor in GR 2 (Entry always possible)
    Import scenario
    1.Create material master of import goods.
    2.Create vendor master record of import vendor and Customs clearing vendor.
    3.Maintain CIN settings.
    4.Maintain J1id.
    5.Maintain Pricing procedure SAP standard JIMPOR..,maintain required conditions..JCDB,JCV1...
    6.Assign the schema to respective import vendor in Purchasing view of VMR.
    7.Create import PO ,check in conditions of JCDB, JCV1 the customs clearing vendor(Indian vendor) and percentage is assigned..This can be done by In condition tab select condtion then click on display,then enter.
    Save the PO.
    8.MIRO --Capture Bill Of Entry.(Commercial Invoice No.,).Customs clearing first .Here CVD will b converted to BED.
    9.Capture Excisse invoice--j1iex.
    10.MIGO.
    Regards
    ksk
    12.Post Excise Invoice.
    13.MIRO...Payment to vendor(import vendor)

Maybe you are looking for

  • Shift e not working

    My name is Ed so my login has a capital E. Surprise Surprise right? Well, I can't get shift e to work. I have to hit the caps lock to get a capital e. This is my first mac. Am I missing something or is this a mac thing?

  • Will I need to buy a digital tuner if I buy a blu ray player?

    I was looking at the blu ray DVD players and noticed that some came with a digital tuner and some without. Will I have to buy it separate if it does not come with one or will my HDTV provide that?

  • Functions in OAF

    Hi All, I like to know what are all the parameters does below function takes and does in OAF, forwardImmediatelyToCurrentPage() It would be helpfull if you provide and document to get all the details for similar kind of functions which are all used i

  • Safari crashes while starting under 10.5.1

    I just installed Leopard and the 10.5.1 update. Safari doesn't seem to want to start. The icon bounces in the dock for a bit and then the problem report dialog pops up. I tried deleting the preferences file and restarting but the end result i still t

  • ORA-12514 Error, While taking offline Rman backup

    Hi Experts, I have scheduled Rman offline backup job. Scheduled the following commands to run in a batch file(Win 2003 server) I am getting the below error. When we use shut down abort, do we need to restart the Listener? Please help me on this issue