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

Similar Messages

  • How to extract HR master data into MS outlook2007

    Hi Gurus,
    We want to populate the SAP HR master data(eg: user's  job title, Reporting to, Working hours, EMP ID, etc..)into MicroSoft outlook contact list.( or AD) So, other users can easily find out about the mailed user  or Team Lead..
    Is there any connector available to get the data into MS outlook.
    OR please guide me for any alternatives.
    Environment: ECC 6.0 Windows 2003 server, MS SQL 2005,  MS outlook 2007
    Thanks in advance
    Regards
    Balaji

    Hi,
    I would rather try to update the Exchange Server / Active Directory (behind Outlook) through LDAP connector.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/48/75c2b2bc27055ee10000000a42189b/frameset.htm
    Best regards,
    Guillaume

  • Open hub Services - How to extract the master data related to a object ?

    Hi Gurus,
    I am implementing OpenHub services for our project, it's on BW 3.5, I have the list of required fields with which I am creating an InfoSpoke. Now I am stuck in some the info objects which are having master data associated with it.
    Example : Business partner(BP) data, when I map the 0BP infobjects in infospoke it's extracting the BP ID (ex: CT065316,CT068638 etc) in flat file but I want the BP name, address & telephone number as well, which are coming from master data table. But I am able to map only 0BP infobjects as a part of ODS/Cube.
    Can any one tell me how to get the master data extracted in the flat file with associated info object???
    Answers will be highly appreciated.
    Regards,
    Kironmoy Banerjee
    Edited by: Kironmoy Banerjee on Oct 1, 2009 3:34 PM

    Hi Kironmay
    Please follow the below mentioned procedure to create a transformation. This is applicable for BW 3.5 as well.
    - Enter your infospoke in the edit mode.
    - On the Transformation tab set the indicator for the Infospoke with Transformation with BADI so that the infospoke is activated.
    - This will take you to the Addin implementation/BADI builder.
    - Enter the short text/description for the implementation. The implementation name is always the same as the technical name of the infospoke
    - The implementation of the BADI is always filter dependant.
    - In the properties tab of the infospoke enter your infospoke under the Filter specifications.
    If you do not specify an InfoSpoke under Filter Specifications, then this implementation is valid for all InfoSpokes. This means that this is called up for all InfoSpokes during the extraction.
    - Activate your class
    - From your interface tab page, double click on the Transofrm Method and you will arrive in the class builder page
    - Here you can enter the code
    - To do a look up of the master data you have to write a code similar to the one I've given below. This is just an example for looking up material master.
    IF FLT_VAL = 'Your infospoke'.
        T_DATA_IN[] = I_T_DATA_IN[].
    Select zstd_cost from /bi0/pmaterial into table T_return
    For all entries in T_DATA_IN
    WHERE material = T_DATA_IN-material.
    ...Continue with your code.
    Append output from T_return to your output E_T_DATA_OUT
    - Activate your method. Return to the BAdI builder. Return to your InfoSpoke.
    I hope this helps.
    Thanks.

  • How to downlaod vednor master data into excel sheet in SAP Application serv

    Hi friends
    I want to download SAP vendor master data into excel sheet and the file should be stored in SAP Application server Location with padding zeros.
    Please help me.
    Thanks

    Hi Ramesh,
    It is not possible to download data in Excel file on application server. You can better download the same in tab separated text file and then convert that text file to XLS.
    Please do not open multiple threads for same problem.
    Regards,
    Atish

  • How to downlaod vednor master data into excel sheet in SAP Application ser

    Hi friends
    I want to download SAP vendor master data into excel sheet and the file should be stored in SAP Application server Location with padding zeros.
    Please help me.
    Thanks

    Hi Ramesh,
    You can download the data into application server using the following code. You will have the vendor details in the internal table. Then you will open a file and transfer the data as follows.
    *   Download internal table to Application server file(Unix)
    DATA: e_file like rlgrap-filename value '/usr/sap/tmp/file.txt'.     
      open dataset e_file for output in text mode.
      lOOP AT it_datatab......
        transfer it_datatab to e_file.
      ENDLOOP.
      close dataset e_file.
    In application server you will have only files and not excel sheets.
    Reward points if useful,
    Aleem.

  • How to extract HRM master data from R/3 into LDIF file?

    Recently I have been asked to provide an extract from our R/3 system
    with some Human Resource master data. The extract has to be in the LDIF
    format (LDAP data interchange format). It is needed to import into a
    DirX metahub solution from Siemens.
    How can this be done most easily?
    (does SAP provide tools, can XI do this?) or do we have to write a
    customized abap to do this?
    Thanks in advance
    Kind regards
    Alex Veen

    Hi Satish,
    As per SAP Standard also the best way is to delete whole data from the cube and then load the data from set up tables as you have enhanced the data source.
    After data source enhancement it is supported to load normally because you don't get any historical data for that field.
    Best way is to take down time from the users, normally we do in weekends/non-business hours.
    Then fill the set-up tables; if the data is of huge volume you can adopt parallel mechanism like:
    1. Load set-up tables by yearly basis as a background job.
    2. Load set-up tables by yearly basis with posting periods from jan 1st to 31st dec of any year basis as a background job.
    This can make your self easier and faster for load of set-up tables. After filling up set-up tables. You can unlock all users as there is no worries of postings.
    Then after you can load all the data into BI first into PSA and then into Cube.
    Regards,
    Ravi Kanth.

  • How to extract many procedures data into one procedure.

    Hi all,
    I have about 16 procedures which extracts a csv files every time we run
    Exec package.procedure1;
    Exec package.procedure2;
    Exec package.procedure3;
    I wish to stop doing this tedious operation(-_-)
    How to put all these procedures in an EXTRACT_ALL procedure.
    I tried something like this.But I think i am getting it all wrong.
    PROCEDURE extract_all_states
         IS
          outfile     UTL_FILE.file_type;
             curr_curs1   varchar2(4000);
             curr_curs2   varchar2(4000);
         BEGIN
         extract_Penang (curr_curs1);
                    extract_Selangor (curr_curs2);
         UTL_FILE.fclose (outfile);
       EXCEPTION
          WHEN UTL_FILE.invalid_mode
          THEN
             UTL_FILE.fclose (outfile);
             gv_error_message := 'Invalid Mode Parameter' || '  -  ' || (SQLERRM);
             RAISE gv_exp_generate_error;
          WHEN UTL_FILE.invalid_path
          THEN
             UTL_FILE.fclose (outfile);
             gv_error_message := 'Invalid File Location' || '  -  ' ||(SQLERRM);
             RAISE gv_exp_generate_error;
          WHEN UTL_FILE.invalid_filehandle
          THEN
             UTL_FILE.fclose (outfile);
             gv_error_message := 'Invalid Filehandle' || '  -  ' ||(SQLERRM);
             RAISE gv_exp_generate_error;
          WHEN UTL_FILE.invalid_operation
          THEN
             UTL_FILE.fclose (outfile);
             gv_error_message := 'Invalid Operation' || '  -  ' || (SQLERRM);
             RAISE gv_exp_generate_error;
          WHEN UTL_FILE.read_error
          THEN
             UTL_FILE.fclose (outfile);
             gv_error_message := 'Read Error' || '  -  ' || (SQLERRM);
             RAISE gv_exp_generate_error;
          WHEN UTL_FILE.internal_error
          THEN
             UTL_FILE.fclose (outfile);
             gv_error_message := 'Internal Error' || '  -  ' || (SQLERRM);
             RAISE gv_exp_generate_error;
          WHEN UTL_FILE.charsetmismatch
          THEN
             UTL_FILE.fclose (outfile);
             gv_error_message :=
                   'Opened With FOPEN_NCHAR But Later I/O Inconsistent'
                || '  -  '
                || SQLERRM;
             RAISE gv_exp_generate_error;
          WHEN UTL_FILE.file_open
          THEN
             UTL_FILE.fclose (outfile);
             gv_error_message := 'File Already Opened' || '  -  ' ||(SQLERRM);
             RAISE gv_exp_generate_error;
          WHEN UTL_FILE.invalid_maxlinesize
          THEN
             UTL_FILE.fclose (outfile);
             gv_error_message := 'Line Size Exceeds 32K' || '  -  ' ||(SQLERRM);
             RAISE gv_exp_generate_error;
          WHEN UTL_FILE.invalid_filename
          THEN
             UTL_FILE.fclose (outfile);
             gv_error_message := 'Invalid File Name' || '  -  ' ||(SQLERRM);
             RAISE gv_exp_generate_error;
          WHEN UTL_FILE.access_denied
          THEN
             UTL_FILE.fclose (outfile);
             gv_error_message := 'File Access Denied By' || '  -  ' ||(SQLERRM);
             RAISE gv_exp_generate_error;
          WHEN UTL_FILE.invalid_offset
          THEN
             UTL_FILE.fclose (outfile);
             gv_error_message := 'FSEEK Param Less Than 0' || '  -  ' || (SQLERRM);
             RAISE gv_exp_generate_error;
          WHEN OTHERS
          THEN
             UTL_FILE.fclose (outfile);
             gv_error_message := 'Unknown UTL_FILE Error' || '  -  ' || (SQLERRM);
             RAISE gv_exp_generate_error;     
         END extract_all_states; 
       END states_pkg;Error(321,3): PLS-00306: wrong number or types of arguments in call to 'EXTRACT_PENANG'
    Error(321,3): PLS-00306: wrong number or types of arguments in call to 'EXTRACT_SELANGOR'
    null

    Why is it that your "tedious" manual operation shows no parameters to the procedures while your extract_all procedure has parameters?
    You need to call each of the individual procedures in exactly the same way as you do when you execute them individually at the command line. In your extract_all procedure, you are clearly not doing so, hence the "wrong number or types of arguments in call to"
    John

  • How to extract the historical data from R/3

    hi
    I am extracting data from R/3 through LO Extraction. client asked me to enhance the data source by adding field. i have enhanced the field and wrote exit to populate the data for that field.
    how to extract the historical data into BI for the enhanced field. already delta load is running in BI.
    regards

    Hi Satish,
    As per SAP Standard also the best way is to delete whole data from the cube and then load the data from set up tables as you have enhanced the data source.
    After data source enhancement it is supported to load normally because you don't get any historical data for that field.
    Best way is to take down time from the users, normally we do in weekends/non-business hours.
    Then fill the set-up tables; if the data is of huge volume you can adopt parallel mechanism like:
    1. Load set-up tables by yearly basis as a background job.
    2. Load set-up tables by yearly basis with posting periods from jan 1st to 31st dec of any year basis as a background job.
    This can make your self easier and faster for load of set-up tables. After filling up set-up tables. You can unlock all users as there is no worries of postings.
    Then after you can load all the data into BI first into PSA and then into Cube.
    Regards,
    Ravi Kanth.

  • How to batch upload some data into SAP system?

    Hi All:
    I'm a SAP key user in our company, I want to know how to batch upload master data into SAP system? What t-code we can use for batch input?
    Thanks in advance!

    Hi,
    I think at least there are four methods for batch input which you can use in SAP system:
    Standard mass change t-code: for example, MM17 for mass change of material master data, you can find the mass change t-code under the relevant function module;
    T-code SCAT, you can use to record and generate the simple batch input template, it's easy to use for key user;
    T-code LSMW, it's another transaction to generate batch input template, it's often used at the beginning of SAP rollout;
    ABAP program, of course, ABAP is a universal tool for everything, you can use ABAP to generate a batch input program to upload data into SAP system as well.
    So you had better contact your SAP support department, help you to upload data!
    Good luck
    Tao

  • Loading Master Data into ODS

    Hi,
         Can anyone tell me how to load the master data into the ODS?
    Thanks
    Yadav
    Edited by: yadav on Apr 12, 2008 8:04 PM

    Dear Yadav,,
    U can load the master data to ur ODS..
    The Process is same as loading Transaction Data into ODS but..
    1. U need to do  flexible Update instead of Direct Update...
    2. Maintain all the Attributes in ur DATA part...
    3. The record on which Updation depends should reside in the KEY FIELD section.
    But there is difference in loading master data to info object and ODS..
    If loaded in Info Objects..REusability is there.
    But in ODS no reusability...
    Hope this helps u...
    Assign points if helpful...
    Best Regards,
    VVenkat..

  • How to include the UDF of items master data into PLD (Inventory in Warehouse Report (Detailed))

    Hi,
    Is there a way to include the UDF in the items master data into the <<Inventory In Warehouse Report (Detailed)>> PLD?
    I checked the default layout and found out all the column source type is "free text" and the content is #Item, how do I know the value of the UDF?
    Thanks

    Hi,
    Some of the standard reports are hardcoded in sap. Not possible to add UDF field in PLD.
    Also refer this thread Variables -  Sap business one
    Thanks & Regards,
    Nagarajan

  • How to create generic master data  datasource .

    How to create generic master data  datasource which utilises ALE change pointers for extraction of master data.

    Hi,
    For any master data lets say, Material Master, for this you need to create a view
    based on your requirement by selecting one or more tables into your view and
    keeping all the required fields in the view as viewfields and go to RS02 create
    generic data source, select the view option as source and put the view, save and
    activate, at the same time set the delta pointer as to whether Numericpointer/date/timestamp..this way you can create a generic DS then transfer the stru. and at the BW side replicate the source system..and so on..
    Hope this helps..
    Assign points if useful.
    Need further info revert..
    Cheers,
    Pattan.

  • How to fill the master data in ecc

    Hi,
             0product_attr having zero records i ecc,how to fill the master data in ecc can you pls provide me the setps?
    Regrads,
    devi.

    Hi Devi,
    Loading data is ECC is not the part of BI Activities. Contact your functional consultant to load data. 
    BDC and LSMW both are used for loading data into SAP system.
    Or ask even directly they can create in ECC.  If it is for your testing purpose, it is better to ask them to create master in source system .
    Thanks
    BVR

  • Loading InfoObject master data into Cube

    Hi Guys,
    I have a  question. I created an InfoObject as a data target and loaded data into that data target. I created a cube and I want to include this infoobject in the cube. Now How do I load data into this cube from the InfoObject.Because the InfoObject doesnt have any option to select data targets, since it is master data.
    Data is being loaded into the InfoObejct. But when I check the cube there is no data.
    How do I load this master data into the cube without update rules?
    Thanks in advance.

    Hi,
    i think u need load some value to transaction data so that you can report on it, but how you are going to decide which row will be having which value from master data? in general value for this should come from transactional data, or you could assign some constant value to it.
    Do you want to use any attribute of Inoobject in report? And if you have any key value for that coming from Transaction data, you can use rule type as read from master data
    It depends upon your requirememt.
    Since you want to restrict the values of the cube which are going into the report then you should include this object into the cube.
    In any case if you want to restrict the value of the transactional data in the cube with either the value of the objects ot the attributes of object you will have to add this object into the cube.
    As you said you can load master data and use in report but how you are going to use it..............you will have to include it in the cube to use it.
    Also you can check whether this object is attribute of some other object already in the cube in that case you can make it navigation attribute and then use it for the restrictions in the cube.
    In this case only you do need to add it to the cube,But if it not an attribute of any object then you must add it to the cube.
    You have to get the value of your infoobject into Cube from datasource, even though you want to use attributes only.
    You will have to add it and it wont have any effect the transaction data getting loaded into the cube will be different from the master data only SID's are matched during loading of the data.
    You should load separate master data into the 0recontract infoobject with the master data source and make the respective object contract type and contract category as navigation there.
    Also you should add 0recontract to the cube and update it from the transaction data source as you have said that it can be updated.
    Then just do the normal restrication at the report level
    You can make this display attribute as naviagatioonal first in the master data object and then in the cube make this attribute as navigational.
    then you can use it to restrict in the cube
    You can use Category as InfoObject in your cube, and while loading data for your infoobject in the rule type you can use option as reading from master data. It will take key of infoobject, and will update attribute value in your cube.
    http://help.sap.com/saphelp_nw04s/helpdata/en/e5/f913426908ca7ee10000000a1550b0/content.htm
    You can also restrict with attributes value, Just in the restrcition of your infoobject in query designer, slelect left-botton button of 'Dipaly Other Values', here you can select you attribute and its value for restriction as well
    Regards,
    Hareesh

  • Unable to extract Customer Master data from MDC

    Hello,
    We creating an MDM-XI-ERP2005 Customer scenario. We want to work with all bussiness scenarios (not customizing scenario).
    First I'm trying to extract Customer Master Data from EP 2005 using MDM_CLNT_EXTR.
    I have created a New Variant which properties are:
    Variant: CUSTOMER_TOTAL
    Description: Send all customer data to MDM
    Extraction Object: CUSTOMER_EXTRACT.
    Target System: PI7.
    But, the display jobs shows the following error: Could not determine recipients for message type MDMRECEIPT. Job cancelled after system exception.
    We need to focus the problem. We have done the following ALE configuration.
    SALE transaction:
    In Basic Settings -> Logical Systems -> Define Logical System we have add the following logical systems:
                  EUS100
                  MDM: Master Data Management
                  PI7: Process Integration 7.0
    WE21:
    Transactional RFC -> PI7, IDOC record types SAP Release 4.x
    RFC destination: SAPSLDAPI
    BD64
    New Model -> PFMC
    Add message type: Model iview: PFMC
                                 Sender: EUS100
                                  Receiver: PI7
                                 Message Type: DEBMDM
    WE20 transaction shows:
    Partner profiles -> Partner Type LS (logical system)
                        PI7: Outbound parmtrs. DEBMDM, SYNCH.
    Any idea will be very helpful,
    Thanks in advance
    Marta.
    Edited by: Marta Sánchez on Jul 9, 2008 12:34 PM

    Sorry because I made a mistake in my previous message. ALE seems to be correctly configured. I'll try to update correctly my current situation:
    In WE02 I can see al IDOCs that I'm trying to send to XI. All them have the IDoc Status = 3 (Data Passed to Port OK) instead of 12 Status Dispatch OK :(. So, It seems an tRFC error.
    SM58 shows me more trails: "Basic type 'DEBMDM06' is unknown"
    before that I have done the following steps at SAP ERP:
        1. WE21: I have created a PI7 port with 700PI70CLNT RFC.
        2. SM59: I have checked successfully 700PI70CLNT RFC connection.
        3. WE20: I have created a PI7 Partner Type LS with the following inbound and outbound parameters: DEBMDM and MDMRECEIPT.
        4. BD64: I have created a Distribution Model with DEBMDM and MDMRECEIPT message types.
    and at SAP PI:
         5.IDX: Port: SAPEUS. Client: 111. RFC Destination: PI7.
         6. technical and business system for sender SAP system(System Landscape Directory)...
    - Maybe some of the previous steps is not correct....
    - Is RFC Destination = PI7 is correct in step #5?
    - Is also necessary to configure more steps in PI system like RFC destinations or Transactional port?
    - I have read that is neccessary to check that the option "transfer idoc immediately" in we20. How?
    Please any idea will be very helpful.......
    Thank you!
    Best regards,
    Marta.

Maybe you are looking for

  • Can i put snow leopard on a mac mini server? MORE INFO BELOW

    Hi! I am getting a mac mini server in august (new hdmi type) and i dont want server becuase i am a home user. can i buy and install regular snow leopard (preferably mac box set) and will there be any software isues? questions: [email protected]

  • Putaway strategy problem

    Hi Gurus, I have a requirement  relevant to putaway:, My client is using all pallets  just joining them together in the warehouse and material placed on mixed basis. when ever the material comes they find the empty space through out the warehouse and

  • Counting the files in an image folder

    I have created a target_mc that loads images based on the frame number of the timeline. loadMovie(imageFolder + imageType + _currentFrame) imageFolder and imageType are variables that are set on a navigation menu item roll over. _currentframe pulls t

  • Sub-Contracting third Party

    Hello friends, I have one scenario, One customer sent me a sales order. To make that product I need send sub-components to one of my vendors to make finished product. After making that product my vendor has to send that directly to my customer. How t

  • Blocking the cancellation of customs declaration once process is completed

    Hi All, I 've a requirement that the users should not be able to cancel custom declaration doc. using T.code /SAPSLL/CL_CUS_02(Cancel/Cancel request option) once border crossing for goods is passed and the process completed. Currently it is possible