Hierarchial Table Display

Hi all.
A user has requested a hierarchial table display, consisting of header rows and detail rows, both with multiple but different columns.
Something like the old FM REUSE_ALV_HIERSEQ_LIST_DISPLAY.
For example:
Purch. Order   Vendor   Name
   Item   Description        Material    Quantity   UoM
3800000001     123456   Widgets R Us
   20     Blue Widget        WID001            2    EA
   20     Red Widget         WID002            5    EA
   30     Green Widget       WID003            4    EA
3800000002     654321   Widget Warehouse
   20     Blue Widget        WID001            3    EA
I have had a look at Table with Tree (DEMO_TABLE_WITH_TREE), but from what I can see this UI only allows a single column for the hierarchy structure.
Does anyone know how to achieve a multi-column hierarchial display in a table ?  Any suggestions or comments appreciated.
Thanks & regards,
Grogan

Hi,
Refer this article: [ALV and Standard Table as Hierarchy in Web Dynpro ABAP|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c060fcb4-2c62-2b10-d2b2-f32407a5cc6f].
I hope it helps.
Regards
Arjun

Similar Messages

  • Event Handling with Java API.: Adding to a hierarchy table throws 2events

    I´m having some problems with the event handling. I´ve registered a Class with extends AbstractDataListener as EventListener. When there are changes in the product hierarchy table, some extra work should be done. However if i add a new record into the hierarchy, two events are fired.
    DEBUG DataEventListener.java:123 - Added:Development;PRODUCT_HIERARCHY;R17;Getra?nke, SEW
    DEBUG DataEventListener.java:123 - Added:Development;PRODUCT_HIERARCHY;R17;32 Zoll, B&R
    DEBUG DataEventListener.java:123 - Added:Development;PRODUCT_HIERARCHY;R18;56 Zoll, Lenze
    DEBUG DataEventListener.java:123 - Added:Development;PRODUCT_HIERARCHY;R18;20 Zoll, allgemein
    In this case, i added the records "32 Zoll, B&R" and then "20 Zoll, allgemein". As you can see in both cases two events are fired and the first event seems to come with wrong data. The reported id for the newly created record is R17. For the logging, i did lookup the entry in the hierarchy table by id and use the displayvalue of the record. But the first event always shows the displayvalue from some already existing entry.
    How can i avoid duplicate events or if this is not possible, how i can recognize that the display value of the first event is not valid.

    I have not tetsted it yet, because I'm waiting for my server to be updated, but SAP told me that the API version 5.5.42.67 should fix the problem.
    Thanks for your post.

  • Workflow notification on importing to hierarchy table

    Hi!
    I came on the following problem:
    I use MDM Import Server to load some records from XML-files to flat and hierarchy tables. And I also want to receive e-mail notification with the list of imported records when import is finished.
    So for each of the table (flat and hierarchy) I created a workflow, an import map and a port. Every workflow consists of the following steps:
    Start-> Notify->Stop.
    In the Body property of the Notify step I used variable %Records% to display the list of imported records in the text of e-mail notification.
    But when I imported to flat table everything worked fine and I got e-mail notification with the list of records, but when I tried to import to the hierarchy table, the records from the file were imported to the table, the workflow was triggered, but I didn't receive any notification.
    But when I used in the Body property of the Notify step simple text without variable %Records%, the notification came. But I need to receive the list of imported records.
    How to solve this problem? Can MDM send notifications with the list of records imported to hierarchy table?
    Thanks,
    Vika

    Different levels of personalization
    1. site
    2. Location
    3. organization
    4. Responsiblity
    5. function
    --Prasanna                                                                                                                                                                                                                                                   

  • Editing Tree UI for MDM Hierarchy tables ina WDJ application

    Hi ,
    We have a requirement where MDM hierarchy tables are displayed using a tree UI in WDJ application.
    However, tree UI is used only for the display purpose. Is there anyway or any other UI available
    using which we can achive edit option in the tree as well?
    Not only this, we are supposed to provide functionality to support moves across the nodes of hierarchy.
    Like PC move or SBU move from one hierarchy to another.
    First of all, can we achive this in WDJ or MDM WebDynpro COnfigurator? If we can, then how? Any links or pointers for this?
    Thank You,
    Apoorva Dave

    You could use a Tree UI element together with a detail view for editing the selected tree node. Or you could use a "TreeTable" which is a Web Dynpro Table with a TreeByNestingTableColumn.

  • Editing tree ui for MDM hierarchy tables in a WDJ aplication

    Hi ,
    We have a requirement where MDM hierarchy tables are displayed using a tree UI in WDJ application.
    However, tree UI is used only for the display purpose. Is there anyway or any other UI available
    using which we can achive edit option in the tree as well?
    Not only this, we are supposed to provide functionality to support moves across the nodes of hierarchy.
    Like PC move or SBU move from one hierarchy to another.
    First of all, can we achive this in WDJ or MDM WebDynpro COnfigurator? If we can, then how? Any links or pointers for this?
    Thank You,
    Apoorva Dave

    i think u can use the method addNodeType (IWDAbstractTreeNodeType nodeType, int index) to add/edit an element at a particular index in the tree.
    but drag drop features i think are not supported in standard WD and u need to use a java script in the view to achieve this ?
    thanks
    -Adrivit

  • Importing Hierarchy table in hierarcy struture, How?

    hi friends
    i am trying to import soure file(Acces), which contains three fields which contain data as shown below
    they are
        field1                                     field2                                   field3
                                                     10                                    Products
           10                                     1001                              Bateries,Power & Surge
          1001                                 100101                             Alkaline Batteries
          1001                                  100102                          Battery Backups
            10                                      1002                             Calculators & POS
          1002                                100201                        Basic-Display Calculators
          1002                                  100202                               Cash Registers
            20                                     20                                        Services
             20                                    2001                               Access & Security
            2001                           200101             Acccess Request-Application or Site
            2001                             200102                        Access Request-Chat/IM
    Now i want to convert this fields in to hierarch struture and i want to import this into hierarchy table which contain two fields(i.e.field1 and field2), in the data manager
    My problem is
    1) i want to import the data in the corresponding fields
    2) at the same time after importing, i want the data of the this fields should appear as a parent child relationship in the data manager.
    if any one know the solution for this , please explain in step by step process.
    if you have any PDF's on every Import operation in the MDM please provide to me.
    It  will be greatful for me.
    Thanks in Advance.......
    bharat.chinthapatla

    Hi bharat,
    if your source data is like this ex:
    1. Consumables & Maintenance Solutions;Cleaning, Freshening &  Softening;Cleaners;Cleaner Compounds
    2. Hand, Power, Machine, & Measuring Tools;Assembly & Fastening;Wrenches;Manual Wrenches;Manual Wrench Parts & Accessories
    you can follow this process:
    1. select the category and right click, in the context menu set the split delimeter, in that choose split hierarchy.
    2. select the category and right click, from the context menu select split into hierarchy.
    3. In Map fields/values tab, in source fields you will see new split hierachy field, map this field to corresponding destination cateory field.
    4. in values pane, you can see the source values in a hierarchy.
    5. Map these values to the corresponding destination values, other wise you can add to the destination in a new category, ( select the source values node and click on add button and you can selcect Add branch as child Or Add branch as sibling)
    6. Once value mapping is over, do the importing and you can see these results in Data manager Taxonomy mode.
    as you said: you have data like field1 field 2 field 3
    You have to select all the fields in Import Manager which u need to hierarchies and select the option “ Create Hierarchy field ”. You will see a new popup window in which you have to fill  the fields like ( parent field/ child filed and node) and your hierarchy will be created.
    hope this may help You,
    Regards,
    srinivas

  • Re : Hierarchy Table

    Dear Gurus
      How can i see the information to check the Hierachy data in Hierachy table.Is there any T.code to check the particular End User having the authorization or not to see the data.
    Thanks & Regards
    ram

    Tcode RSD1  --> Give your Infoobject.
    Go to Hierarchy TAB.
    Double click on Hierarchy table : /BI0/HInforobjectName
    Display data.
    You can see the hierarchy data. But I am not sure how it will help you. Instead of that Click on Maintain hierarchy. This will show you all the data in hierarchy structure. This may help you!
    Regards
    Aman

  • Hierarchial list display

    hi all,
    please send me some programs for hierarchial list display in ALVs.
    thanks in advance,
    hema.

    hi,
    this is used to specify that according to which field u want hierarchy....
    means i want that according to material number i want hierarchical display than i have to pass matnr in this
    and
    key_info-header01 = 'MAT'.
    key_info-item01 = 'MAT'.
    In this we passing field name of header table and item table....
    Now see this example..
    In this i want hierarchy depend on Material and palnt both..
    so my code will be
    TYPE-POOLS : slis.
    TABLES : mseg.
    DATA : BEGIN OF itab_head OCCURS 0,
    mat LIKE mseg-matnr,
    matnr LIKE mseg-matnr,
    werks LIKE mseg-werks,
    END OF itab_head.
    DATA : BEGIN OF itab_item OCCURS 0,
    mat LIKE mseg-matnr,
    matnr LIKE mseg-matnr,
    werks LIKE mseg-werks,
    mblnr LIKE mseg-mblnr,
    menge LIKE mseg-menge,
    END OF itab_item.
    DATA : t_fcat TYPE slis_t_fieldcat_alv,
    key_info TYPE slis_keyinfo_alv,
    t_eve TYPE slis_t_event,
    gt_subtot TYPE slis_t_sortinfo_alv,
    subtot LIKE LINE OF gt_subtot,
    t_listhead TYPE slis_t_listheader,
    st_line TYPE slis_listheader.
    DATA : t_mtdoc LIKE mseg-mblnr.
    SELECT-OPTIONS : mat FOR mseg-matnr.
    INITIALIZATION.
    PERFORM build_cat USING t_fcat.
    PERFORM build_eve.
    START-OF-SELECTION.
    PERFORM get_data.
    PERFORM dis_data.
    *& Form build_cat
    text
    -->TEMP_FCAT text
    FORM build_cat USING temp_fcat TYPE slis_t_fieldcat_alv.
    DATA : wa_fcat TYPE slis_fieldcat_alv.
    wa_fcat-tabname = 'ITAB_HEAD'.
    wa_fcat-fieldname = 'MAT'.
    wa_fcat-seltext_m = 'Material'.
    APPEND wa_fcat TO temp_fcat.
    CLEAR wa_fcat.
    wa_fcat-tabname = 'ITAB_HEAD'.
    wa_fcat-fieldname = 'WERKS'.
    wa_fcat-seltext_m = 'Plant'.
    APPEND wa_fcat TO temp_fcat.
    CLEAR wa_fcat.
    wa_fcat-tabname = 'ITAB_ITEM'.
    wa_fcat-fieldname = 'MBLNR'.
    wa_fcat-seltext_m = 'Material Doc.'.
    APPEND wa_fcat TO temp_fcat.
    CLEAR wa_fcat.
    wa_fcat-tabname = 'ITAB_ITEM'.
    wa_fcat-fieldname = 'MENGE'.
    wa_fcat-seltext_m = 'Quantity'.
    wa_fcat-do_sum = 'Y'.
    APPEND wa_fcat TO temp_fcat.
    CLEAR wa_fcat.
    subtot-spos = 1.
    subtot-fieldname = 'MAT'.
    subtot-tabname = 'ITAB_HEAD'.
    subtot-up = 'X'.
    subtot-group = 'X'.
    subtot-subtot = 'X'.
    subtot-expa = 'X'.
    APPEND subtot TO gt_subtot.
    ENDFORM. "build_cat
    *& Form build_eve
    text
    FORM build_eve.
    DATA : wa_eve TYPE slis_alv_event.
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
    i_list_type = 0
    IMPORTING
    et_events = t_eve
    EXCEPTIONS
    LIST_TYPE_WRONG = 1
    OTHERS = 2
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. "build_eve
    *& Form get_data
    text
    FORM get_data.
    SELECT matnr AS mat werks mblnr menge FROM mseg INTO CORRESPONDING FIELDS OF TABLE itab_item
    WHERE matnr IN mat.
    ENDFORM. "get_data
    *& Form dis_data
    text
    FORM dis_data.
    key_info-header01 = 'MAT'.
    key_info-item01 = 'MAT'.
    key_info-header02 = 'WERKS'.
    key_info-item02 = 'WERKS'.
    REFRESH itab_head.
    LOOP AT itab_item.
    ON CHANGE OF itab_item-mat OR itab_item-werks.
    MOVE-CORRESPONDING itab_item TO itab_head.
    APPEND itab_head.
    ENDON.
    ENDLOOP.
    CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
    EXPORTING
    i_callback_program = 'ZALV_PRDS'
    it_fieldcat = t_fcat
    it_sort = gt_subtot
    it_events = t_eve[]
    i_tabname_header = 'ITAB_HEAD'
    i_tabname_item = 'ITAB_ITEM'
    is_keyinfo = key_info
    TABLES
    t_outtab_header = itab_head
    t_outtab_item = itab_item
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. "dis_data
    cheers,
    madhavi.

  • Hierarchy Table not shown

    Hi MDMTechies,
    I am facing a very absurd problem.
    The XSD that I have created is showing me the hierarchy table.
    But when I connect it to the syndicator through the destination properties, it is not showing me any of the hierarchy tables in the destination items.Rest all tables - flats as well as qualified are there.
    Has anybody come across the same problem??
    Thanks,
    Minaz

    Hi Aishwarya,
    The blackberry doesnt support a table with property "Grouped column" for its columns.
    Please try the following to display table in BlackBerry.
    1. Insert a table child ui element to your view.
    2. In the context menu of your table ui element, choose "Insert Column". Add as many columns to the table as you need.
    3. Now in the context menu of each column element, choose "Insert TableCellEditor - Text View".
    4. Now for each column element, do the context binding.
    Hope this solves your problem.
    Regards,
    Sunil

  • Mixing Key Figures and Characteristics in 2004s Table Display

    In a 3.x query definition using table display, I could put a key figure in the middle of the characteristics.  The results would be columns Char1, Char2, KF1, Char3, for example.  The same query upgraded to 2004s insists on displaying the key figure at the end of the characteristics, even with the Query Properties / Data Formatting set to Tabular View (in BEx Analyzer).
    Any ideas on how to keep the key figure in the middle of the characteristics?
    Thanks.

    Hi,
    New QD wont support table display. You need to use Report designer for this.
    Thanks & Best Regards,
    Rajani

  • How can i  change the column label text in a alv table display

    how can i change the column label text in a alv table display??
    A similar kinda of question was posted previuosly where the requirement was the label text was needed and following below code was given as solution :
    <i>*  declare column, settings, header object
    DATA: lr_column TYPE REF TO cl_salv_wd_column.
    DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    DATA: lr_column_header type ref to CL_SALV_WD_COLUMN_HEADER.
    get column by specifying column name.
    lr_column = lr_column_settings->get_column( 'COLUMN_NAME1' ).
    set Header Text as null
    lr_column_header = lr_column->get_header( ).
    lr_column_header->set_text( ' ' ).</i>
    My specific requirement is i have an input field on the screen and i want reflect that value as the column label for one of the column in the alv table. I have used he above code with slight modification in the MODIFYVIEW method of the view since it is a process after input. The component gets activated without any errors but while run time i get an error stating
    <i>"The following error text was processed in the system CDV : Access via 'NULL' object reference not possible."</i>
    i have checked in debugging and the error occured at the statement :
    <i>lr_column = lr_column_settings->get_column( 'CURRENT_YEAR' ).</i>Please can you provide me an alternative for my requirement or correct me if i have done it wrong.
    Thanks,
    Suri

    I found it myself how to do it. The error says that it is not able to find the reference object i.e  it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
      DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
             lr_if_controller  TYPE REF TO iwci_salv_wd_table,
             lr_cmdl   TYPE REF TO cl_salv_wd_config_table,
             lr_col    TYPE REF TO cl_salv_wd_column.
      DATA : node_year  TYPE REF TO if_wd_context_node,
             elem_year  TYPE REF TO if_wd_context_element,
             stru_year  TYPE if_alv_layout=>element_importing,
             item_year  LIKE stru_year-i_current_year,
             lf_string    TYPE char(x),
      DATA: lr_column TYPE REF TO cl_salv_wd_column.
      DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    Get the entered value from the input field of the screen
    node_year  = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
    elem_year  = node_year->get_element( ).
      elem_year->get_attribute(
       EXPORTING
        name = 'IMPORT_NODE-PARAMETER'
       IMPORTING
        value = L_IMPORT_PARAM ).
      WRITE L_IMPORT_PARAM TO lf_string.
    Get the reference of the table
      lr_cmp_usage  =  wd_this->wd_cpuse_alv( ).
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      lr_if_controller  = wd_this->wd_cpifc_alv( ).
      lr_column_settings = lr_if_controller->get_model( ).
    get column by specifying column name.
      IF lr_column_settings IS BOUND.
        lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
    set Header Text as null
        lr_column_header = lr_column->get_header( ).
        lr_column_header->set_text( lf_string ).
    endif.

  • How to delete entire data in the hierarchy table,?

    hi friends
    i need to delete entire data in the hierarchy table which contains parent child relationship,when i am selecting entire records and choose the option delete from the context menu, it is not deleting, and i have to delete one by one or i have delete first the child items and later parents items, it is time consuming process.
    Is there any other option to delete entire records in the hierachy table , irrespective of parent and child relationship?
    if any one have solution for my issue, please provide to me
    thanks in advance
    bharat.chinthapatla

    Hi Bharat,
      Unload the Repository and Delete the Table and fields in Hierarchy table and Recreate and reload the data.OIther wise you have to lot of manual work.
    Thanks
    Ganesh Kotti

  • Duplicate rows in Hierarchy Table created when running incremental load

    I copied an out of the box dimension and hierarchy mapping to my custom folders (task hierarchy) this should create the same wids from dimension to hierarchy table and on full load does this using the sequence generator. The problem I am getting is whenever I run a incremental load instead of updating, a new record is created. What would be the best place to start looking at this and testing. A full load runs with no issues. I have also checked the DAC and run the SDE trunc always and SIL trunc for full load only.
    Help appreciated

    Provide the query used for populating the child records. Issue might be due to caching.
    Thanks
    Shree

  • How to retrieve the data from MDM hierarchy table using MDM Java API

    Hi,
    I had a hierarchy table in MDM. This table had some column say x. I want to retrieve the values of this x column and need to show them in a drop down using MDM Java API.
    Can anyone help me to solve this?
    Regards
    Vallabhaneni

    Hi,
    Here is your code...
    TableId Hier_TId = repository_schema.getTableId(<hierarchy table id>);
    java.util.List list = new ArrayList();
    ResultDefinition Supporting_result_dfn = null;
    FieldProperties[] Hier_Field_props =rep_schema.getTableSchema(Hier_TId).getFields();
    LookupFieldProperties lookup_field = null;
    TableSchema lookupTableSchema = null;
    FieldId[] lookupFieldIDs = null;
    for (int i = 0, j = Hier_Field_props.length; i < j; i++) {
    if (Hier_Field_props<i>.isLookup()) {     
                                  lookup_field = (LookupFieldProperties) Hier_Field_props<i>;
         lookupTableSchema =repository_schema.getTableSchema(lookup_field.getLookupTableId());
                                  lookupFieldIDs = lookupTableSchema.getFieldIds();
         Supporting_result_dfn = new ResultDefinition(lookup_field.getLookupTableId());
         Supporting_result_dfn.setSelectFields(lookupFieldIDs);
         list.add(Supporting_result_dfn);
    com.sap.mdm.search.Search hier_search =new com.sap.mdm.search.Search(Hier_TId);
    ResultDefinition Hier_Resultdfn =     new ResultDefinition(Hier_TId);
    Hier_Resultdfn.setSelectFields(rep_schema.getTableSchema(Hier_TId).getDisplayFieldIds());
    ResultDefinition[] supportingResultDefinitions =
    (ResultDefinition[])list.toArray(new ResultDefinition [ list.size() ]);
    RetrieveLimitedHierTreeCommand retrieve_Hier_tree_cmd =
    new RetrieveLimitedHierTreeCommand(conn_acc);
    retrieve_Hier_tree_cmd.setResultDefinition(Hier_Resultdfn);
    retrieve_Hier_tree_cmd.setSession(Auth_User_session_cmd.getSession());
    retrieve_Hier_tree_cmd.setSearch(hier_search);
    retrieve_Hier_tree_cmd.setSupportingResultDefinitions(supportingResultDefinitions);
    try {
         retrieve_Hier_tree_cmd.execute();
    } catch (CommandException e5) {
              // TODO Auto-generated catch block
              e5.printStackTrace();
    HierNode Hier_Node = retrieve_Hier_tree_cmd.getTree();
    print(Hier_Node,1);
    //method print()
    static private void print(HierNode node, int level) {
    if (!node.isRoot()) {
         for (int i = 0, j = level; i < j; i++) {
              System.out.print("\t");
         System.out.println(node.getDisplayValue());
    HierNode[] children = node.getChildren();
    if (children != null) {
              level++;
    for (int i = 0, j = children.length; i < j; i++) {
    print(children<i>, level);
    //end method print()
    Best regards,
    Arun prabhu S
    Edited by: Arun Prabhu Sivakumar on Jul 7, 2008 12:19 PM

  • Key Mapping in Hierarchy Table

    Hi,
         I have enabled the Key Mapping = Yes  for Hierarchy table. But when I imported the records to the Hierarchy table, I am not seeing any key mapping info for the Hierarchy table records. Any thoughts?. Key mapping does not work for Hierarchy tables?.
    Thanks
    Job.

    Hi Job
    Key mappings work fine with hierarchy table as well.What was the means of import for hierarchy table. If you have used a excel file and while connecting to Import manager which remote system you selected. If you have used MDM as remote system key mapping will be blank. we need to add the record key mappings. Select all the records in record mode for hierarchy table and edit key mappings.
    Also which mode you are ssing the records. This will not come in hierarchy mode, select record mode and check the edit key mapping functionality.
    Please award if useful.
    Regards
    Ravi

Maybe you are looking for