FM to import a hierarchy selection...?

Gurus,
I need to advice the BW team with a FM.I have to write a routine to call a function module that imports a hierarchy selection and uses that selection as a criteria to filter on transactional data from an BW infocube.  That data will then be converted to a flat file.
Is there a standard SAP function module we can call to use as a selection criteria for a hierarchy.
Please suggest...Kindly help...
Cheers:
Sam
Message was edited by:
        Sam williams

Hi Srinivas,
It is not just one hierarchy...there are number of hierarchy sets that have to be read and included in the selection criteria for the infocube...I will try an explain more....In infocube we can use filter to filter the data...now in that filter there is an option of an routine...I have to write that routine that reads the corresponding hierarchy set and include it in the selection criteria...
Example: Profit center will have a routine that will read the profit center hierarchy set amd include it in the range of the selction criteria...
am i able to explain...I have no knowledge in BW so its hard for me to explain....
How can i read the sets...IS there a FM that i can use...please guide me....
Thanks
Sam

Similar Messages

  • InfoObject Hierarchy selection screen function

    How would I find a function/method for displaying a BW infoobject, like cost center (/BI0/HCOSTCENTER), for a user selection screen in a group/hierarchy format? Similar to BEx hierarchy selection for node level. Are there any example programs for doing this?
    Edited by: A. Berkey on Mar 2, 2011 11:13 AM

    You mention about the 'Documentation' button.
    However, SE38 is a dialog program so this why it is easy to do. You are writing a report program. You could have the pushbutton on the screen itseld instead of the status bar. You should then be able to use LOOP AT SCREEN to hide. Here is some code to put a pushbutton on a screen.
    INCLUDE <list>.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN PUSHBUTTON 01(35) garment
      USER-COMMAND garment.
    SELECTION-SCREEN END OF LINE.
    INITIALIZATION.
      PERFORM f_setup_pushbutton_text USING icon_execute_object text-s01
                                      CHANGING garment.
    FORM f_setup_pushbutton_text USING    p_icon
                                          p_text
                                 CHANGING p_result.
      DATA: l_result(50).
      CALL FUNCTION 'ICON_CREATE'
           EXPORTING
                name                  = p_icon
                text                  = p_text
                add_stdinf            = space
           IMPORTING
                RESULT                = l_result
           EXCEPTIONS
                EXCEPTIONS
                icon_not_found        = 1
                outputfield_too_short = 2
                OTHERS                = 3.
      IF sy-subrc EQ 0. ENDIF.
      p_result = l_result.
    ENDFORM.                               " F_SETUP_PUSHBUTTON_TEXT

  • How to import Vendor Hierarchy

    Hello,
    In R/3 a new Vendor Hierarchy Category has been created using transaction MKH1. How can this hierarchy be imported into BW to be used as a hierarchy for vendor in reports.
    I've tried importing this hierarchy with the standard datasource 0VENDOR_LKLS_HIER but it is not included in the list of available hierarchies. Is there anything to activate in R/3 to add it to the list or is there another datasource to import such a hierarchy?
    Thank you in advance.
    Emmanuel

    Hi....
    Go to RSA5 in your R/3 system and Install this datasource
    SAP-R/3 -> LO -> LO-IO -> 0MATERIAL_LKLS_HIER
    Goto BW Install this Object and its Datasource from the Business Content.
    In RSA1 goto Source systems and select your source system and replicate it by right clicking on it. Then you will find this datasource.
    create the Infosource in the Infosources tab and Assign this datasource and activate it.
    Create the Infopackage for this Datasource and select the Hierarchy datasource and schedule them.
    In this way you can load the vendor Hierarchy from R/3.
    Hope this helps you........
    Thanks==Points as per SDN........;)
    Regards,
    Debjani.........
    Edited by: Debjani  Mukherjee on Sep 30, 2008 8:16 PM

  • Import of hierarchy through XML

    Hi ..
    In one of my scenarios,i need to import the hierarchy through XML structure.Can anybody guide me how to do that..
    Regards
    Biswanath

    Hi Biswanath,
    I could not make out your querry; There can be two questions from it;
    1) Structure of XML for importing into hirearchy :
    A)  This is going to normal structure where in you have a single parent and there on some childs with there heirearchy as you would write an normal xml hirearchy
    2) How to use an XML hirearchy in import manager
    A) If you are calling the hairearchy table in main table where in you have a look up feild. then you can map that look up feild of hirearcy table to the xml feild and then go the bottom pane of value mapping; in case you have this hirearchy already there then just map it. or else you have a option to add this hirearchy to the existing hirearchy. there in you will be asked wether it should be added as sibling or child; select any one of the options and its done..
    Cheers,
    Cherry.

  • Hierarchy selection tab missing in infopackage

    Hi Experts,
    i am looking how to load multiple hierarchies to Bi so inorder to know available hierarchies from OLTP in hierarchy selection tab in infopackage which was not available at all. i had only data selection tab.i am using version Bi 7.0
    how can i found  hierarchy selection tab in infopackage
    Regards,
    narasimha.

    Hierarchy loading is the same for info object which is created under the info object itself.
    loading is uploading the data to the hierarchy, creating hierarchy is you will be maintaing the structure of the hierarchy under that info object
    Are you sure you have Hierarchy maintained for your info object?
    If the hierarchies are maintained you will find the Bell type symbol under the info objects in info providers tab.
    As told by mti - drill down till you find the data source --right click on it and select create info package - here you can find the tab hierarchy selection tab (which is the second tab in that screen).
    Check the below link to know more abt hierarchies
    http://help.sap.com/saphelp_nw04/helpdata/en/0e/fd4e3c97f6bb3ee10000000a114084/frameset.htm

  • How-to Dynamic Hierarchy Selection.

    Hi guys,
    does anyone know how to implement "Dynamic Hierarchy Selection"? I have a main hierarchy but would like to filter it further while loading the hierarchy.
    E.g. I have a financial statement verison with both Balance Sheet and P/L items, i would like to separate the main into two new hierarchies, one BS and P/L hierarchies instead, apparently the infopackage allows you to write small codes to dynamically select which hierarhcy you want.
    Cheers.

    Hi,
    We donot have this type selection at the time of upload. The thing we can do is upload both versions into BIW and in the report we can use Hierarchy variable to have dynamic selection of hierarchy.
    with rgds,
    Anil Kumar Sharma .P

  • CostCenter Hierarchy selection in the Infopackage

    Hi Everyone,
    For CostCenter hierarchy, in the Infopackage Hierarchy Selection tab, I can able to find the Parent Node for loading, but there is no Child node available.
    Can anyone help on how to bring the child node into the Hierarchy selection tab, and also how to check the Hierarchy node in ECC side.
    Thanks in advance,
    Satish.

    Hi,
    You can enter multiple single valus for any field in the infopackage. Just select the row for material type and then click on the insert duplicate button ( + sign ) which is at the bottom letf hand side in the 'Data Selection' tab within the infopackage. You will usually find this 'insert duplicate' icon next to the 'Check' push button.
    You can insert as many rows as you want for material type by select the material type rown and clicking on this icon. You can then enter the three values in the three rows for material type.
    Regards,
    Shilpa

  • Hierarchy upload-InfoPackage-Hierarchy Selection tab

    I have to upload hierarchy for Internal Order. I have InforPackage but on the Hierarchy Selection tab there is no hierarchy that I am supposed to upload (it's called A1). Do I have to extract the missing hierarchy from R/3? Can someone please provide the steps that should be taken?
    It's very urgent as I have to finish it today (well, the deadline is the end of this weekend).
    TIA,
    A.

    Hi Arek,
    Is ur infosource is properly assigned to the Hierarchy Data source or not!!!!
    If not then u need to check the proper data source(From R3) which needs to be used for ur loading.... based on that..
    If the DS is available in R3 then replicate the same and assign to ur Infosource..and maintain the proper TS and TR accordingly with the Idocs transfer method..
    once this is done then u can able to see the required hierarchy for ur purpose..
    make sure that the Hierarchy is available from ur source system.. then only it will be available in the IP selection tab.
    thanks
    Hope this helps

  • 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                                                                                                                                                                                                                                                   

  • Importing a hierarchy field

    Hi,
    Is it possible to import a field that contains hierarchies with no delimiter to a hierarchy table? For example - the field "1015" the first 2 figures (10) represent a father in the hierarchy and the last 2 figures (15) are the child?
    Is it possible to split and import as hierarchy even though there is no delimiter between the 10 and the 15?
    Thanks,
    Tal

    Hi Tal,
    Hierarchies can be imported easily if you have a source file clearly indicating hierarchy levels.
    For your case , you can use excel formulas(LEFT & RIGHT) to prepare a file with three columns as follows:
    (Column1)        ( Parent)           (Children)
    (1015)               (=LEFT(2))         (=RIGHT(2))
    Which will give you result as:
    (Column1)         (Parent)            (Children)
    (1015)                    (10)                    (15)
    Like this you will now have a file clearly indicating hierarchy levels.
    You are now ready to import this file using Import Manager. Use partition tab to prepare hierarchy as you want.
    Edited by: AMOL PATKI on Dec 25, 2007 6:38 PM
    Edited by: AMOL PATKI on Dec 25, 2007 6:40 PM

  • Is it possible to use MDIS to import to hierarchy tables?

    Hello everybody!
    Tell me, please,is it possible to import records into hierarchy tables using MDIS?
    The imported XML-file looks like this:
    <data>
    <row>
      <NAME>Some Name</NAME>
      <DATA_UPD>01.27.2006</DATA_UPD>
      <HIER>03000000000\03408000000\03408553000</HIER>
    </row>
    <row>
    </row>
    </data>
    The field HIER in my XML-file contains delimited values to build hierarchy. I tried to import, but MDIS blocks the port with Value Exception.
    P.S. I set MDIS Unmapped Value Handling option to "Add" to automatically add missing values to hierarchy table.
    Thanks,
    Vika

    Hi!
    Jasbir, Dilmit, thanks for your answers!
    But while configuring mapping of fields of my XML-file to hierarchy table fields in Import Manager I found an option "Set MDIS Unmapped Value Handling" which can be set to Ignore (default), Add, Map or Fail. If I set this option to Add, it offers to "Add Target Node for Unmapped Values in MDIS Mode". So, I expect that selecting some node shows MDIS to which node it should add all new unmapped values.
    The imported XML-file structure looks like this:
    <data>
    <row>
    <NAME>Some Name</NAME>
    <DATA_UPD>01.27.2006</DATA_UPD>
    <HIER>03000000000\03408000000\03408553000</HIER>
    </row>
    <row>
    </row>
    </data>
    1. I splited HIER field into hierarchy using "Split into Hierarchy" command.
    2. Then mapped HIER<Split Hierarchy> field to CODE field of my resulting hierarchy table.
    3. Then for CODE field I set "MDIS Unmapped Value Handling" option to Add and chose the node to which add unmapped values.
    4. Then I tuned matching fields.
    5. Saved the map.
    6. Configured port (of type Automatic).
    7. Added XML-file to the port.
    The result of import (using MDIS) into hierarchy table is that the CODE field is filled with hierarchical values, but all other fields are empty. And MDIS blocks the port with Value Exception.
    So, I embarrassed by this: on the one hand, MDIS imports some values and even builds the hierarchy correctly, but from the other hand, the import doesn't  finish.
    Can anyone explain this to me?
    Thanks in advance,
    Vika

  • Import Parameter as Select Option for a FM in ECC 6.0

    Hi All,
    Can someone help me get the import parameter of a function module to be of the type select-options( the way it is used in reports) in ECC 6.0.
    Thanks for all your help in advance.
    Divya

    What I do is as following....
    I create two parameters...One for <b>START</b> and the other for <b>END</b>....Then, inside my FM I create a RANGE...
      DATA: BEGIN OF r_datum OCCURS 1,
            sign(1),
            option(2),
            low  TYPE vekp-vhilm,
            high TYPE vekp-vhilm,
            END OF r_datum.
    Passing the START to low and END to high....
    P.S: Don't forget to assign points to useful answers.
    Greetings,
    Blag.
    Message was edited by:
            Alvaro Tejada Galindo

  • FDM import script with selectable source file

    Hi All,
    I would like to build an import script attached to an import format that imports a text file with multiple value columns.
    Source file:
    Entity, Detail, Account 1, Account 2
    E_abc, D_abc, 100, 200
    In FDM this needs to be:
    Entity, Detail, Account, Amount
    E_abc, D_abc, Account 1, 100
    E_abc, D_abc, Account 2, 200
    So i need to loop through the file.
    My biggest challenge is that when i attach a script to an import format in the import process i cannot select a file from inbox anymore, it has to be a pre-defined file.
    Has someone an example or solution how to make a script-import format and enable the select file from inbox?
    And if possible has someone an example script of the issue stated above?
    Thanks in advance,
    Marc

    Hi Wayne..
    Thanks for your reply (and sorry for the delay in mine).
    Could you tell me what script to use to open the file in the befImport script, or how to rename the file in memory to a new one?
    So i write a script that rewrites the file to a new file in the inbox but i need to tell FDM that it needs to process this new file.
    Thanks,
    Marc

  • Dynamic Hierarchy Selection

    Ok I read this article and the selection is working. Is it possible to dynamically "Rename Hierarchy After Loading"?
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a03c23b1-1cb4-2d10-f1ae-9f5ed92be246?QuickLink=index&overridelayout=true

    I had to modify RSLDPSEL-NEW_HIENM.

  • Issue with Hierarchy selection in Filter area

    Hi experts,
    We have an issue with BEx query selection.
    Structure of Quey
    1. Filter Area
    => Characteristic Relations : Restriction condition with hierarchy
    2. Rows
    => Display characteristic with hierarchy active
    3.Columns
    => Formula with keyfigure using sign reverse of hierarchy (formula variance).
    <symptom >
    When I use context menu, "Keep filter value", with the displayed hierarchy node,
    and drilldown with other characteristics, the result became wrong. Filter value I kept became inactive.
    Workaround I found was like belows.
    1. Remove sign reverse calculation in Formula.
    2. Keep sign reverse calculation and move restriction condition with hierarchy in filter area TO default values.
    I wonder this symptom was right technically or bug ocurred after version upgrade or something.
    Thanks in advance.
    BEx BI Addon 7.X(based on 710)/SP11 Revision 634

    Hi
    This depends on the logical database that the report is based on. Secondly I have experienced that the report variant overwrites the date selections and therefore it looks like that the dates are not parsed (which I think is your problem).
    For e.g. logical PHP and PHPCE both the period and data dates are filled with the data selection from the portal. (check on the report attributes in SE38 which logical DB used) For e.g. PTRVP (travel) no date are passed at all in the call of the report!!
    To make sure that the report variant isnu2019t overwriting I normally set the variant for the report to u201CSave field without valuesu201D for the date selection periods and then it isnu2019t filled by the variant.
    Data selection period
    Data selection period: Start
    Data selection period: End
    Employee selection period
    Employee selection period: Start
    Employee selection period: End
    Regards,
    Lars

Maybe you are looking for