Extract hierarchies in background

I am using Z_SAP_HIERARCHY_DOWNLOAD to extract hierarchies to use in a third party application. I would like to run this program as part of a process chain (together with running some InfoSpokes), however this program cannot run in the background as it uses the GUI_DOWNLOAD function. Does anyone know of a way to extract a hierarchy in background mode, or a BAPI/RFC that I can use to read a hierarchy? Alternatively, has anyone customized Z_SAP_HIERARCHY_DOWNLOAD to remove all of the GUI and Dialog dependent code and either write the hierarchy data to a db table or a file on the app server?
Many thanks for any help you can provide.

It looks that you are using a customer FB due to the Z_ at the beginning of the name and there is no SAP_HIERARCHY_DOWNLOAD in our BW system (3.5). So if you want to use a Hierarchy download in background, you could copy the FB and replace the GUI_Download by a download to unix (e.g.):
  DATA: lh_fname TYPE localfile.
  CLEAR: lh_fname.
Zusammensetzen von Pfad und Dateiname
  CONCATENATE xp_path sy-datum sy-uzeit '.csv' INTO lh_fname.
  OPEN DATASET lh_fname FOR OUTPUT IN TEXT MODE.
  LOOP AT xt_data.
    TRANSFER xt_data TO lh_fname.
  ENDLOOP.
  CLOSE DATASET lh_fname.
  CASE sy-subrc.
    WHEN '0'.
      WRITE: /1 Transfer of data succesful'.
      PERFORM tabellen_update.
    WHEN '8'.
      WRITE: /1 Error ........ '.
  ENDCASE.
Hope that helps!
Regards
Nicola

Similar Messages

  • Extract Hierarchies in BO 4.1 WEBI using Java Restful Webservice

    Hi ,
    We are using Bo4.1 SP3.
    Whether can we extract hierarchies from web intelligence report?
    Whether there is any URL to extract hierarchies?
    Regards,
    Kavitha S

    Hi Anthony,
    Sorry for late reply.
    Thanks for your reply.
    I got hierarchies by using below URL
    GET <webiURL>/documents/{documentId}/links/{linkId}
    Regards,
    Kavitha S

  • Extracting Hierarchies

    I am new to EBS...
    I need to extract hierarchies from EBS to build an Essbase cube and load GL data.
    I can see the hierarchies in the ' Application Object Library ', FND.
    Is this the best place to go and get the hierarchies? I would have thought they would be in the GL...
    Thank you,
    Jz

    Hi Colin,
    It was here:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1651e790-0201-0010-aba7-dfc4ebc74408
    Unfortunately, after refurbishing the site many links refere to the home page.
    You may ask in sdn moderators forum to fix the link.
    Best regards,
    Eugene

  • How to  Extract Hierarchies from ECC6.00 to BI7.0 ?

    Hi,
    I am using SAP BI7.00 and SAP ECC 6.00 . How to extract Hierarchies from SAP ECC 6.00 server? .
      Regards,
      Krishna.

    Hi Johnson,
    The transfer of P.O from SRM to R/3 happens through function module (RFC) and not IDOC. Only the transfer of GR and invoice happens through IDOC.
    The above scenario happens when you are using Extended Classic.
    In case of classic scenario, you can only have P.O details in SRM that to in Check status of Shopping cart. You can not display or change a P.O in classic scenario.
    IDOCs are not used for the transfer of P.O from R/3 to SRM. And there is no mapping exists for the replication.
    Hope this makes you clear. Clarifications are welcome.
    Rgds,
    Teja

  • How to handle/extract Hierarchies in master data from R3

    Hi Experts!!!
    Iu2019m currently working on HR Implementation project and this is my first project. Implementation is being done in BI 7.0 and ECC 6.0. I have some queries  regarding the extraction of master data from R3 as furnished below.
    1.     By default all the datasources  are in 3.x technology  and Iu2019ve migrated all the datasources with export and successfully performed InfoPackages  and  DTPS  into their respective InfoObjects/Data targets. But when it comes to the masterdata datasources with hierarchies, Iu2019m unable to migrate them as there is no MIGRATE option in the context menu. When I tried to create infopackage, it asked me to create Transfer rules first and perform InfoPackage. Is it mandatory to work in 3.x technology (Transfer rules/ Update rules)  in case of master data hierarchies? In this case how to handle datasources with hierarchies?
    2.     Is it required to have any data staging component  like DSO while extracting master data datasources from SAP R/3  to their respective InfoObjects (Data targets)?? Or can I directly schedule Infopackage and DTP directly into the InfoObject with out any DSOS in between for HR master data??
    Good day!!!

    hello,
    1)
    all DataSource that are created in BI 7.0 are new design, master data attribute, text and transaction DataSource can all be created in the new BI 7.0, but for hierarchy DataSource, it remains as 3.X, if you double click on the Hier DataSource, you will see the title "...Emulated 3.X ...", so the DataSource should be working perfectly fine except it is in "Modified" version, i believe it is just SAP has not or can't a way to upgrade hier DataSource.
    Also,
    RSDS doesnt support hierarchy datasources in BI 7.0. So we cannot use transformations and DTP with hierarchy. So it is very similar to the way we used to load it in 3.x.
    Check below link for step by step procedure to load hierarchy using flat file:
    http://help.sap.com/saphelp_nw04s/helpdata/en/fa/e92637c2cbf357e10000009b38f936/content.htm
    2)
    i dont think you need a DSO in between for laoding master data from R/3 to BI IO.
    Reg,
    Dhanya

  • Extracting Hierarchies from ECC / R3

    Hi all,
    We have some custom reports now recreated in BI based on versions initially developed in R3.
    The R3 reports made extensive use of 'groups' for Cost Center, Cost Element, and Internal Orders, and few if any hierarchies were maintained in R3.
    Fortunately, BI7 has built in functionality to ETL user created 'Groups' on these R3 characteristics into hierarchies in BI.  However, there are a couple restrictions that we are wondering if there is a way to work around:
    1) only Top level nodes in R3 are available for extraction when configuring the InfoPackage - is there a way to select lower level nodes also?
    2) only one hierarchy can be loaded per infopackage - is there a way to select and load multiple (or even all) R3 hierarchies at once?
    Many thanks for any help you can offer!
    Darryl
    Edited by: Darryl Goveas on May 5, 2009 2:54 PM

    Darryl,
    This is the way BI works. You can only select one hierarchy in infopackage at a time. In selection it will show all the hierarchy available not the node name  in source system.
    Regards,
    Kams

  • Extraction hierarchies and fields from the logical layer

    Hello all !
    I build a repository and I would like to ask if it is possible to take an extraction of the names of the hierarchies and fields of the business layer that are mapped to the tables and fields of the physical layer. Because now my model is quite big and I want to create a file that I can follow my logical layer that is mapped to the physical layer.
    Thank you in advance!

    better to go for Repository Documnetation from utilities,it will give you the complete info of ur RPD

  • How to extract Hierarchical Master data into flatfile

    Hello Experts,
    I have a requirement to extract Master data (Texts, Attr, Hierarchies)  of all Info Objects pertaining to a given Infocube ( say BoxA)
    I am aware that I can manually dump the data / use infospoke to get data into flatfile without hassle in case of texts/attributes.
    (1)But I doubt it for hierchical data. In case of hierarchical data I have to create an ABAP code to extract master data.
    Below is the link I got when I am searching SDN.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0403a990-0201-0010-38b3-e1fc442848cb?quicklink=index&overridelayout=true
    But I didnt understand it the mechanism behind the extraction.
    Can anyone please give me a detailed explanation on how to do it or some other reference documents.
    Note: I am going to use that master data and import that again into different box ( say BoxB) and there is no connection between two systems (BoxA and BoxB).
    Thanks.
    Edited by: saptrain on Mar 18, 2010 12:24 AM
    Edited by: saptrain on Mar 18, 2010 12:32 AM
    Edited by: saptrain on Mar 18, 2010 4:18 AM

    Hi,
    You can use the Program Z_SAP_HIERARCHY_DOWNLOAD to download as flat file. Upload this flat file into another system.
    Regards
    Arnab

  • Extract Hierarchies compounding   0co_area /0profit_ctr not filled

    Hello,
    We developed an extractor to extract the hierarchy based on a evaluation path. The problem is that the compounding
    object 0co_area is not filled in BI 7.0. My question is does any one know what I am doing wrong?
    The info objects which
    are used are: 0org_unit and 0profit_ctr. The output is created by transaction rsa6:
    00000001 0HIER_NODE      50091926             01   00000000 00000002 00000000 00.00.0000 00.00.0000
    00000002 0ORGUNIT        50091927             02   00000001 00000011 00000003 00.00.0000 00.00.0000
    00000011 0PROFIT_CTR     5000A00011           03   00000002 00000000 00000012 00.00.0000 00.00.0000
    00000012 0ORGUNIT        50000002             03   00000002 00000053 00000013 00.00.0000 00.00.0000
    00000053 0PROFIT_CTR     5000B00001           04   00000012 00000000 00000054 00.00.0000 00.00.0000
    At this stage there is no problem
    0PROFIT_CTR     5000A00011           the first of  5000A00011 (0co_area/0profitcenter).
    The problem:
    We have loaded the data in   BI 7.0 the compounding info object 0co_area is not filled.
    In tabel roohiecom has the following entries:
    OLTPSOURCE                       OBJVERS FIELDNM                        FIELDCMP                       POSIT DTELNM
    ZPROFIT_CTR_HIER                 A       0PROFIT_CTR                    0PROFIT_CTR                    0002  PRCTR
    ZPROFIT_CTR_HIER                 A       0PROFIT_CTR                    0CO_AREA                        0001  KOKRS
    To create the datasource source I used the program of Luc Boodts.
    I hope someone has the answer to my problem?
    Regards,
    Onno
    Edited by: Onno Spijkstra on Nov 4, 2010 11:27 PM
    Edited by: Onno Spijkstra on Nov 4, 2010 11:30 PM
    Edited by: Onno Spijkstra on Nov 5, 2010 3:53 PM

    Problem is solved. If people have also problems how to fill the compouding attribute in hierarchies in BI I can give  the solution . If there are no reactions than I will put no effort to write it down.
    Regards,
    Edited by: Onno Spijkstra on Nov 7, 2010 11:16 AM
    Edited by: Onno Spijkstra on Nov 7, 2010 11:16 AM

  • How do I extract a theme background and set it as the desktop background?

    Hi
    I want to have the industrial theme background as the desktop background.
    I have tried unpacking the keynote application but end up with Industrial_1920x1080.kth
    How do I convert a kth file into a recognisable graphics file?
    Thanks
    AJ

    If you mean that you want to use the Moroccan background in Pages, yes the same principle applies. the Keynote "package" is simply the Keynote application -- Control-Click on the Keynote icon in the Finder, then choose "Show Package Contents" from the pop-up menu. In the new Finder window that appears, follow the directions as outlined above. Be careful not to move or delete any files in the package.

  • Extracting Hierarchies from ECC to BW

    All,
    We have created a hierarchy on functional area in ECC under funds management. We would like to bring them into BW. We dont see any standard extractors for the same. Any suggestions for how to bring this into BW?
    Cheers
    AN

    Hi,
    Check the following link, for Hierarchy Extractor
    Re: Generic DataSource for Hierarchy
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20a709c1-0a8e-2a10-21b4-f779728c63bf?quicklink=index&overridelayout=true
    Best Regards
    Obaid

  • How do I hide the background when I shape an image in 3D?

    This is a problem that has cropped up before but I'm going to simulate it.
    Say in this instance I want to overlay the picture of a kitten over a ball image. I've already extracted (roughly) the background from the kitten picture. I want to use 3D to warp it to the shape of a sphere but I've still got the ball's default background colour as well. How do I hide the background colour of the ball entirely so only the, warped, image of the kitten is visible to overlay over the ball image?
         When I wrap the kitten image onto a 3D sphere mesh preset I get the default background
         And when I try to overlay it over the 2D ball image the background prevents correct overlaying. I want just the kitten pic
    Thanks

    You apply the texture to the transparency of the material.
    Mylenium

  • Extract tool is gone - what's the best tool to use now ?

    Hello everyone,
    for those who extract subjects from backgrounds on a regular basis, what tool do you now using, seeing the Extract tool is gone in CS4 ?
    Thanks you for tips,
    Dave.

    Quick Select tool works well for many cases. Secret is to use small brush size and mark both the selected areas (with the + tool) and the non-selected areas (with the - tool).
    If you can't find something that satisfies you, you can install Extract from the CS4 Extras. This will be on your PS install disk or in the Extras you downloaded if you purchased and downloaded online.
    If you still can't find it, Russell Brown has the extra files on his site. There are also good tutorials for just about any extract/masking/knockout method you can think of.
    http://www.russellbrown.com/tips_tech.html#CS4Tips
    Here is a link to John Nack's blog that also talks about the "missing" features and how to find most of them if you really miss them.
    http://blogs.adobe.com/jnack/2008/10/where_did_extra.html

  • 0GL_ACCOUNT. hierarchy extraction from R/3

    Dear experts,
    I don't know how to extract hierarchies from R/3 into BW.
    I need to extract the hierarchy for the characteristic Account Number, which represents the insurance Balancesheet structure (VKIA)
    What DataSource may I use? is anything useful within the BC?
    Til now, I created 2 datasources (attr and text), which brought the master data from tables SKA1, SKB1, SKAT into BW's infoobject 0GL_ACCOUNT, but the hierarchies issue still remains, and I don't know how to proceed..
    Could you tell a bit the steps? (i'm a novice...)
    Have a nice day, and thanks in advance.
    jordi

    To find relevant data source for your master data info object, go to RSA1 -- business content-- select data flow before and drag you info object it will show all relevant data source for that.
    Once u know your data sources, go to source system, activate them replicate and so on in BW/BI.
    Do not create unnecessary objects in R/3 or BI just check for business content before you create Z objects.
    Hope this helps,
    Assgn pts if helpful,
    Regards
    Edited by: chintamani deshmukh on Apr 23, 2008 1:35 PM

  • Where is the extract filter feature?

    I used the extract feature frequently with CS2. Then I upgraded to CS5,
    and even though the help menu said it is to be found in the filter drop-down
    menu, it isn't there. Must I extract with CS2, save it, and then reopen it with CS5?
    That certainly seems like a step backward.

    Yes, but the Help Files also said this at the very top of that page:
    To more effectively extract
    objects from backgrounds, use the Refine Edge option for selections.
    (See Refine
    selection edges.) If you prefer the optional, Extract plug-in
    described
    below, download the Windows-only plug-in here.

Maybe you are looking for