FM for create Hierarchical HR

Hello Gurus,
I want to create positions and join this positions to people of the company, finally i get the hierarchical order of the company in ppome.
The idea is to have all the information in Excel Sheet, and this file will be read by a program, this is because to do this work one by one in ppome is very tired, so the user wants to use an Excel sheet only for the first load.
Which FM can i use?
Thanks. for your time.

Hello Enrique,
You can use the FM RH_INSERT_INFTY.
Take a look on this example:
DATA: lt_new_p1007 TYPE STANDARD TABLE OF p1007,
       ls_new_p1007 TYPE p1007,     "New IT1007
ls_new_p1007-vacan  = 'X'.
ls_new_p1007-begda  = me->mv_meritdate.
ls_new_p1007-status = '0'.
ls_new_p1007-objid  = is_p0001-plans.
ls_new_p1007-otype  = 'S'.
ls_new_p1007-plvar  = lv_plvar.
ls_new_p1007-istat  = '1'.
ls_new_p1007-endda  = '99991231'.
ls_new_p1007-infty  = '1007'.
APPEND ls_new_p1007 TO lt_new_p1007.
IF iv_test_mode EQ abap_true.
   CALL FUNCTION 'RH_INSERT_INFTY'
  EXPORTING
    vtask               = 'S'
    commit_flg          = 'X'
  TABLES
    innnn               = lt_new_p1007
  EXCEPTIONS
    no_authorization    = 1
    error_during_insert = 2
    repid_form_initial  = 3
    corr_exit           = 4
    begda_greater_endda = 5
    OTHERS              = 6.
   IF sy-subrc <> 0.
  "An error occurred when writing infotype Vacations (1007)
   ENDIF.
ELSE.
   CALL FUNCTION 'RH_INSERT_INFTY'
  EXPORTING
    vtask               = 'S'
    commit_flg          = space
  TABLES
    innnn               = lt_new_p1007
  EXCEPTIONS
    no_authorization    = 1
    error_during_insert = 2
    repid_form_initial  = 3
    corr_exit           = 4
    begda_greater_endda = 5
    OTHERS              = 6.
   IF sy-subrc <> 0.
  "132 An error occurred when writing infotype Vacations (1007)
   ENDIF.
ENDIF.

Similar Messages

  • How to create Hierarchies for a Dimension?

    Hi,
    How to create Hierarchies for a Dimension in Multidimensional Models? Could you please suggest some document provides step by step instructions to create Multidimensional Model?
    Thanks
    M Thiyagarajan

    Hi M Thiyagarajan,
    connect dimension to first level and after that connect that level to another one and so on. For level - each additional outgoing connection means additional hierarchy.
    Philip

  • What is the prerequisite for creating two hierarchies from one fact table i

    Hi,
    what is the prerequisite for creating two hierarchies from one a single fact table.
    Rgds,
    Amit

    create global temporary table t1 as select * from trn_ordbase on commit preserve rows;You CANNOT use this syntax.
    http://download-east.oracle.com/docs/cd/B19188_01/doc/B15917/sqcmd.htm
    http://download-east.oracle.com/docs/cd/B19188_01/doc/B15917/glob_tab.gif
    http://download-east.oracle.com/docs/cd/B19188_01/doc/B15917/cre_tabl.gif

  • Best way to create hierarchies tables

    Good morning all,
    I wanted to discuss the best practices of creating hierarchies to be consumed by OBIEE. As far as I understand, OBIEE has been optimized to use flattened hierarchies, such as:
    ROW_WID CITY COUNTRY
    1 NEW YORK CITY USA
    2 MOSCOW RUSSIA
    3 KIEV UKRAINE
    4 SYDNEY AUSTRALIA
    5 ATLANTA USA
    Let's call it option 1. The only problem with this is that it has a potential to grow very wide. Also, There's a chance for confusion when there're duplicate entries, such as "New York" (city) and "New York State". Also, it's not always possible to define hierarchical relationships between data in a flat table - so-called ragged hierarchies. I found two major way of dealing with those (stack and flattening them out). Are there any other ways to deal with those? Specifically, I'm interested in dealing with hierarchies that involve complex positioning (a person might be a manager vertically, but managed horizontally - or - a person can have 2 managers - on different levels).
    Also, in the example above - can I create dimensional outriggers (assign surrogate keys instead of text values to the dim - such as having NEW YORK as 100, MOSCOW as 200)? Sort of snowflaking a dimension. I was asked to do a proof of concept for this - but haven't been successful so far. If yes, could you please provide a simple Dim Outrigger < Dim < Fact diagram.
    Thank you

    Thanks Peter - I've checked that document before (I believe it's based on Kurt Wolffe's document on Siebel Analytics which I checked as well).
    This option is fine if you're not going to do frequent changes - but in my case - it'll be a hell to maintain. We're sort of trying to prototype best solution - and it seems as flattening hierarchies is the best option, of course, given its limitations.
    Also, there's another option of taking a different path and splitting and then building separate hierarchies

  • How do you create hierarchical folders in Forms Central to organize and manage multiple forms?

    How do you create hierarchical folders in Forms Central to organize and manage multiple forms?

    Hi,
    We do not support this feature right now.  Someone else has posted this to our ideas forum, here - http://forums.adobe.com/ideas/1587.  I suggest you vote for it, because we look at the popular ideas to help guide us on what new features work on.
    Thanks,
    Todd

  • How to create hierarchies in Bex queries?

    Hi All,
    I am new to query designer tool,
    can you please help me how to create hierarchies in Bex queries using query designer tool?
    Thanks in advance...

    Hi,
    directly you can't create hierarchy at bex level.
    First you have to maintain hierarchy data source at source or bw side, based on your needs.
    Later you can load data to hierarchy, after that at bex level you can activate hierarchy options to related info object properties.
    To maintain hierarchy we need to enable hierarchy options at related info object(RSD1, hierarchy tab, select with hierarchies) maintenance level.
    For example: info object - 0GL_ACCOUNT and you need hierarchy structure on gl account.
    For that we need to have hierarchy data source and will load data from ecc.
    Later we can develop reports on gl account in hierarchy fashion.
    On what object infoo bject you want create hierarchy report and have loaded hierarchy data?
    Thanks

  • What is the Tcode for WBS Hierarchies in R/3

    Hi All,
    What is the Tcode for WBS Hierarchies in R/3? and more over how can we include WBS element groups in our bw reports.
    and one more does any relation between WBS element Hierarchy and WBS element Group
    Regards,
    Sekhar

    Hi Shekar
    CJE0    Run Hierarchy Report
    CJE1    Create Hierarchy Report
    CJE2    Change Hierarchy Report
    CJE3    Display Hierarchy Report
    In a work breakdown structure (WBS), you describe the individual tasks and activities in the
    project as individual elements in a hierarchy.
    Depending on the phase of your project, you continue to break down the tasks and activities in
    your project, step-by-step, until you reach the level of detail necessary to carry it out.
    The individual elements represent activities within the work breakdown structure. The elements
    are called work breakdown structure elements (WBS elements) in the Project System. WBS
    elements can be:
      Tasks
      Partial tasks which are subdivided further
      Work packages

  • Mapping table for the hierarchies in bw & R3

    Hello,
    We have a requirement of createing a mapping table for the hierarchies of one of the BW-object  and the corresponding R/3-Hierarchies.
    sturucture on table should be as given below,
    BW-Hierarchy Name   |    R/3- Hierarchy Name   |     Frequency of loading |
    please advice.
    Thanks
    NM

    Hi,
    Product Group is master data for material master. It is part of Matreial Clssification data in R/3.
    Please check if you are having the same already loaded as attribute of Material master. I guess it will be there, if it s not there then you should try to load the same in material master object which you are using in all the cubes.
    If the maintinenece in master data is nopt possible then you got to populate the same in cube.
    There will be a combination of keys (materail/plant/prduct family etc.. ( for which Product group will be unique). then load product with the help of these key combinations in all the cubes via update routine.
    There is one more way to have this but which is performance intensive.
    You may create one master data object called Product Group and keep material number as attribute (with compunding all other key fileds to get the unique combination). Then you may create an infoset using cubes and this master data object. Join the materail numbers in all. Display this object in report.
    I hope it will help.
    Thanks,
    S

  • Creating Hierarchical Dimensions - OEID 3.0

    Does anyone have an example of a graph that can be used to create hierarchical dimensions? For example, if I want to create an organizational structure like this:
    Organizational Unit 1..N
    Organizational Division 1..N
    Organizational Department 1..N
    Organizational Section 1..N
    Employee A
    Employee B
    Where each layer is it's own attribute field in the data set:
    Tier1,Tier2,Tier3,Tier4,Tier5
    Organizational Unit 1,Organizational Division 1,Organizational Department 1,Organizational Section 1,Employee A
    Is this possible?
    Thanks

    Hi Patrick,
    Thanks for your response. I did try and follow the Load Managed Values graph as shown in the Integrator User's Guide, however it seemed to create a multi-valued Component attribute instead of a tiered structure as shown above. That's why I wanted to know if there were any other examples around that creates the tiered structure as I've seen it mentioned theoretically in the guides but never implemented.
    Thanks!
    Rachel

  • What are the config steps for contract hierarchies and vendor hierarchies?

    Hi friends
    what are the config steps for contract hierarchies and vendor hierarchies?
    Regards
    Raj Kumar

    Contract hierarchies
    A function that enables users authorized to create a purchasing contract to define relationships between super- and subordinate contracts.
    A contract hierarchy consists of one or multiple contracts and is subject to the following rules:
    The top node of the hierarchy cannot have a superordinate contract
    Every contract except for the top node has exactly one superordinate contract
    Every contract can have none, one, or multiple subordinate contract(s)
    A contract can be part of no hierarchy or exactly one hierarchy
    Note:Contract hierarchies are only available for purchasing contracts. They are not available for global outline agreements.
    You can activate this from SRM Server> Cross application settings>Activate Hierarchies for Product Categories, Vendors, and Contracts.
    Note:
    These hierarchy functions should not be reset once they have been activated.
    Similiarly you can do this for Vendor Hirerachies.
    Please visit link for more details: http://help.sap.com/saphelp_srm50/helpdata/en/43/2022b83fbc2be8e10000000a11466f/content.htm
    Thanks

  • Support for ragged hierarchies?

    Are ragged (i.e. variable depth) hierarchies supported in Universe Designer? Do any of the Business Objects tools provide support for ragged hierarchies or is this considered an ETL/data modeling issue?
    We are embarking on a project using the Data Services, Universe Designer and Xcelsius tools and we are trying to figure out how to handle ragged hierarchies.
    Thanks!

    Hi Didier ,
    I have gone thought the document of Universe design tool :- SAP Business Objects XI 4.0 created on 2010-12-24 on SAP Portal .
    This document dont have any information regarding the Ragged Hierarchy .
    Can you please let me know whether downloads of SAP Business Objects BI 4.0  which are available on SAP Portal Supports ragged Hierarchy or We need to wait for next patch or release?
    Regards ,
    Jeevan

  • How do we create Hierarchical tree??

    Can I get help on creating hirerchical tree with detailed description ?? I tried basing hierarchical item on query but it didn't work.Do i need to specifically give code for populating it ??
    Also I need help on basing it on Record Group ??
    Is there any rule for having specific no of columns for a tree ??

    You can create Hierarchical Tree in two ways.
    One using "connect by prior" and another
    by Adding columns and row to record group at run time.
    If your table has Self reference Key then
    you can create using connect by prior.
    Otherwise you have to go for second one.
    Go and check the navwiz.fmb in oracle demo files.
    Following example is from navwiz.fmb
    (open navwiz.pll and then check refresh_tree)
    In this example they used both.For Emp they used connect by prior.
    PROCEDURE refresh_trees(p_view VARCHAR2) IS
    cursor cursor_dept is
    select dname, deptno
    from dept
    order by dname;
    cursor cursor_emp(p_dno number) is
    select ename, empno
    from emp
    where deptno = p_dno
    order by ename;
    v_i number;
    v_ignore number;
    rg_emps recordgroup;
    rg_depts recordgroup;
    v_init_state groupcolumn;
    v_level groupcolumn;
    v_label groupcolumn;
    v_icon groupcolumn;
    v_value groupcolumn;
    begin
    if p_view = 'EMP' then
    --the emps hierarchy
    rg_emps := find_group('EMPS');
    if not id_null(rg_emps) then
    delete_group(rg_emps);
    end if;
    rg_emps := create_group_from_query('EMPS',
    'select 1, level, ename, NULL, to_char(empno) ' &#0124; &#0124;
    'from emp ' &#0124; &#0124;
    'connect by prior empno = mgr ' &#0124; &#0124;
    'start with mgr IS NULL');
    v_ignore := populate_group(rg_emps);
    ftree.set_tree_property('navigator.nav_display', ftree.record_group, rg_emps);
    else
    --the organization
    rg_depts := find_group('DEPTS');
    if not id_null(rg_depts) then
    delete_group(rg_depts);
    end if;
    rg_depts := create_group('DEPTS');
    v_init_state := add_group_column(rg_depts, 'init_state', number_column);
    v_level := add_group_column(rg_depts, 'level', number_column);
    v_label := add_group_column(rg_depts, 'label', char_column, 40);
    v_icon := add_group_column(rg_depts, 'icon', char_column, 20);
    v_value := add_group_column(rg_depts, 'value', char_column, 5);
    v_i := 1;
    for deptrec in cursor_dept loop
    add_group_row(rg_depts, v_i);
    set_group_number_cell(v_init_state, v_i, 1);
    set_group_number_cell(v_level , v_i, 1);
    set_group_char_cell (v_label , v_i, deptrec.dname);
    set_group_char_cell (v_icon , v_i, NULL);
    set_group_char_cell (v_value , v_i, to_char(deptrec.deptno));
    v_i := v_i + 1;
    for emprec in cursor_emp(deptrec.deptno) loop
    add_group_row(rg_depts, v_i);
    set_group_number_cell(v_init_state, v_i, 1);
    set_group_number_cell(v_level , v_i, 2);
    set_group_char_cell (v_label , v_i, emprec.ename);
    set_group_char_cell (v_icon , v_i, NULL);
    set_group_char_cell (v_value , v_i, to_char(emprec.empno));
    v_i := v_i + 1;
    end loop;
    end loop;
    ftree.set_tree_property('navigator.nav_display', ftree.record_group, rg_depts);
    end if;
    My query******
    procedure refresh1 is
    v_i number;
    v_ignore number;
    Rg_Menus recordgroup;
    rg_depts recordgroup;
    Begin
    Rg_Menus := find_group('MENUS');
    If not id_null(Rg_Menus) then
    delete_group(Rg_Menus);
    End If;
    Rg_Menus := create_group_from_query('MENUS',
    'select 1, level, item_name, NULL, item_id ' &#0124; &#0124;
    'from Item_all '
    &#0124; &#0124;' where Item_id in (select Item_id from Item_access_all where role_id in
    (select role_id from org_access_all where user_id =
    (select gsp_user_id from users_all where upper(user_name) = upper(USER))
    and code = :global.code) )
    and item_id not in (select item_id from item_Exception where Code = :Global.Code)' &#0124; &#0124;
    'connect by prior item_name = main_name ' &#0124; &#0124;
    'start with item_name = ''MAIN''');
    v_ignore := populate_group(Rg_Menus);
    ftree.set_tree_property('tree_blk.tree_menu', ftree.record_group,Rg_Menus);
    Exception
    When Others then
    Bell;
    Message('You cannot Access any menu item...');
    Raise Form_trigger_Failure;
    End;
    viji.
    null

  • Create Hierarchies in BPC

    Hi
    can anyone let me know how to create Hierarchies in SAP BPC in detail.
    Regards
    ark

    Hi Ark,
    Unfortunately, I don't know if any "how to" guides exist for hierarchies. To get a general understanding via BPC 7.0, I recommend going into BPC Administration. Select the ApShell appset, and select Manage Dimensions. Select the P_ACCT dimension. Select "Maintain dimension members". Select "View member report".  This will provide you with an indented (hierarchical) view of the accounts.
    Basically, hierarchies are created using the PARENTH1 (PARENTH2, PARENTH3, etc.) column.  You may have the following IDs in an account dimension:
    _ID_
    Total_Revenue
    Europe_Rev
    German_Rev
    Americas_Rev
    By placing some IDs in the PARENTH1 column, you make those IDs parents and you've created a hierarchy.
    _ID_                _PARENTH1_
    Total_Revenue
    Europe_Rev          Total_Revenue
    German_Rev          Europe_Rev
    Americas_Rev        Total_Revenue
    So in an indented view, you now have the following:
    Total_Revenue
      Europe_Rev
        German_Rev
      Americas_Rev
    So German_Rev roles up to Europe_Rev. Both Europe_Rev and Americas_Rev role up to Total_Revenue.  In this example, all IDs are roll-up IDs except for German_Rev and Americas_Rev, so only German_Rev and Americas_Rev can be used to input data.
    Hopefully that helps.
    Thanks,
    Scott

  • How can i delete my old account, for create a new one?

    i need to delete my old account for create a new one bicouse i arrived to the limiterd creation of ID account apple (5 TIME) with the seme payment card.the proublem is tht i don't now what ID account i have and wat i need to deleted so i need to find it first an the deleted.

    You can access www.appleid.apple.com and open your old account and delete.

  • Error while creating a task for creating an generic task  /app/dac/CustomSQ

    Hi ,
    I have created a sql file in DAC server /app/dac/CustomSQLs/ ,just to fire an update sql in database
    In DAC task tab i have created a task with the following:
    Command for incremental load :/app/dac/CustomSQLs/DBNameBeforeLoad.sql
    Primary source :flatfileconnection
    target source:DBCONNECTION_OLAP
    Execution type:SQL FILE
    Task phase:GENERAL
    I created subject area and assembled ,then created a Execution plan.
    When i try to execute this EP ,it shows the following error in DAC log:
    ANOMALY INFO::: Error while creating a task for creating an generic task /app/dac/CustomSQLs/DBNameBeforeLoad.sql
    MESSAGE:::/app/dac/CustomSQLs/DBNameBeforeLoad.sql - invalide template name!
    EXCEPTION CLASS::: com.siebel.analytics.etl.etltask.TaskInitializationException
    com.siebel.analytics.etl.etltask.SQLFileTask.doInit(SQLFileTask.java:69)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.init(GenericTaskImpl.java:194)
    Does my above configuration is correct ..?

    verify the following settings:
    1. mapping of ECC plant and storage location and logical system number with the appropriate availability group code since this links the stock types in EWM to ECC org elements (SPRO -> EWM -> Interfaces -> ERP Integration -> Goods movement)
    2. ensure the availability group configuration is correct (SPRO -> EWM -> GR Process -> Configure availability group for putaway) - check all applicable nodes in this configuration since the availability group code is assigned in the pertinent storage types

Maybe you are looking for

  • Error in opening Photoshop CS6

    I just installed the trial version of CS6 Premium. I was getting the same error when trying to open the programs. I went into sharing and permissions and updated the privileges. Now everything opens except for Bridges and Photoshop. I get the followi

  • Firmware Problem on my zen touch....PLEASE HELP ME

    Hi, I have had my zen touch for over a year now, works great. Recently I tried to up grade the firmware to ZenTouchP4S_PCFW_LB_2__0.exe While installing it erased the whole music plus the previous firmware. So when installing it froze an now my playe

  • Testing performance of new 10g installation

    We are installing 10g for the first time. The install on a linux cluster is going well. However, we would like to do some load testing on a tested set of data and setup before we start building our warehouse. In other words, we would like to use a se

  • Identifying tracks

    Hi there, is there a program out there that will take unnamed audio files and find the song and then title the song in the mp3 id and also change the file name? Clues please? Cheers

  • ReportPageViewer "Unknown Source" error

    I have a problem with JRC in WebSphere Portal 6.1. It does not work and returns the error below. Crystal Reports 11.8 Java 5.0 Java Server Faces 1.1 regards E. [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R java.lang.NullPointerException [5/27/