Flat File Hierarchy Datasources

We are creating several flat file hierarchy datasources. The datasources will be maintained in an external database.
I am familiar with the creation of flat file datasources for master and transactional data, but don't have good documentation for how the external flat file hierarchy is to be formatted.
We have reviewed the 2004 Netweaver Document "How to Download Hierarchies in BW" and have used the program referenced there, Z_SAP_HIERARCHY_DOWNLOAD, to download our hierarchies to then test the upload.
However, this has not worked.
Does anyone have the record layout that the flat file must be in to upload a simple 2-level hierarchy (for example groupings of 0vendor)?
Thanks, Doug

I think the URL you mention is http://help.sap.com/saphelp_nw04/helpdata/en/fa/e92637c2cbf357e10000009b38f936/content.htm.
This contains the record layout instructions as follows.
  5.      Maintaining the hierarchy:
Choose Hierarchy Maintenance, and specify a technical name and a description of the hierarchy.
PSA Transfer Method: You have the option here to set the Remove Leaf Value and Node InfoObjects indicator. As a result, characteristic values are not transferred into the hierarchy fields NODENAME, LEAFFROM and LEAFTO as is normally the case, but in their own transfer structure fields.  This option allows you to load characteristic values having a length greater than 32 characters.
Characteristic values with a length > 32 can be loaded into the PSA, but they cannot be updated in characteristics that have a length >32.
The node names for pure text nodes remain restricted to 32 characters in the hierarchy (0HIER_NODE characteristic).
The system automatically generates a table with the following hierarchy format (for sorted hierarchies without removed leaf values and node InfoObjects):
Description
Field Name
Length
Type
Node ID
NODEID
8
NUMC
InfoObject name
INFOOBJECT
30
CHAR
Node name
NODENAME
32
CHAR
Catalog ID
LINK
1
CHAR
Parent node
PARENTID
8
NUMC
First subnode
CHILDID
8
NUMC
Next adjacent node
NEXTID
8
NUMC
Language key
LANGU
1
CHAR
Description - short
TXTSH
20
CHAR
Description - medium
TXTMD
40
CHAR
Description- long
TXTLG
60
CHAR

Similar Messages

  • Using Proposed Fields  - Flat File to DataSource rather than InfoObjects

    Hi Experts,
    We are doing one test project in which our source data is Flat Files. We want to load into DSO and InfoCube. Then our next step will be MultiProvider and produce reports on MultiProvider. Can you please clarify?
    From Flat File to DataSource(PSA) we are using Proposed Fields rather than InfoObjects to Transfer Data.
    From DataSource to InfoProvider we are using InfoObjects to Transfer Data.
    My question to you is, is it correct to use Proposed Fields rather than InfoObjects from Flat File to DataSource Transfer?
    Thank you,
    Srini.

    Hi, check in Proposal tab, you need to check if the field
    types and lengths are correct (If they match the file you have or will receive).In some cases, the proposal will not be accurate, and you will need to adjustthe fields type and length on the fields tab. This is the case with the field length and type.
    Thanks
    Reddy

  • Hierarchy flat file extraction

    Hi experts--
    Can anyone could guide me in Flat file Hierchy extraction.Step by step.
    if possible with screen shots.
    can send it to [email protected]
    regards,
    Rambo.

    Hi,
    Flat file hierarchy extraction is similar to the normal flat file extraction procedures. But the file structure itself can be complex and is different than normal flat files.
    Take a look at the threads below for more details :
    Hierarchy Flat file
    Hierarchy from flat file
    Program to load a flat file in a Hierarchy
    Cheers,
    Kedar

  • Hierarchy Flat File loadable format

    Hi,
    We need to load flat file hierarchy into infoobject.
    We have the hierarchy in an excel file, in a sequential format.
    How to convert this file into BW loadable format ie how to make it as hiearchy format?
    Can you please throw some light.
    Thanks,
    Sri Arun Prian

    Hi,
    Thanks for your immense responses.
    I have a flat file with huge records. To load it, we need the flat file data to be presented in nodes and sub nodes format.
    As I have huge data, it will be tedious to do them manually.
    So kindly throw some points in acheiving this.
    Thanks,
    Sri Arun Prian

  • Flat file Hirarchies

    Hai..
    i have created a Flat file Hierarchy in BI...Now i want create a Bex query on this ..i would like to know how to load transactional data into this Hierarchy.so, that i can view the data  in my query.....kindly revert
    Mahi...

    hierarchy- we can't load the transaction data. It consists of of Master data .
    Can you be more clear on your requirement? Load transaction data in the DSo/IC where this hierarchy info object is used.
    and while creating a query you can make use of this hierarchy in your report.
    Regards
    KP
    Edited by: prashanthk on Dec 1, 2010 12:26 PM

  • Hierachy format in Flat file

    Dear All,
    We are in the process of creating the flat file interfaces for hierarchies to load into BW. We have few hierarchies for customer, product and few hierarchies for custom time dimensions. I would like to know the format in which we can request the master data management team to give hierarchy data in that format. Can any body guide in creating the format for flat file hierarchy to load. Meanwhile can any body tell me whether any restrictions are there in BI7 for hierarchy load from flat file. I heard as part of BI7 hierarchy load from flat file is not yet introduced, is it true.
    Regards
    Vijay

    Hi Chandra,
    Did you check this blog? Its a step by step example
    /people/prakash.bagali/blog/2006/02/07/hierarchy-upload-from-flat-files
    hope this can be useful too.
    http://help.sap.com/saphelp_nw04/helpdata/en/fa/e92637c2cbf357e10000009b38f936/frameset.htm
    Regards,
    R.Ravi

  • Loading data from flat file to ODS

    Hi Experts,
    I have a developed a report, in which Flat file is the datasource and data target as DSO. 
    Here I have one requriment to Increatment the counter value in TVARVC table after every load compleate.
    Can this be done thru Process chain?  I belive this can be done thru process chain by creating variable.
    If this can be done thru Process chains can  any experts send me sample examples code.
    Thanks In Advance.
    Sreedhar.M

    Hi sridhar,
         We have a similar scenario in which we will load data from flat file to datasource the file name (x_20081010.dat) of such format  being fetched from the low value of the TVARVC table ... once successfully executed we had program to increment the value of low which increments by one day adn the next day the file with that will be placed in the application server...
        U can create a abap program varaint and attribute for that and u can achieve that.... this is sample code which searches for the string and after some coding i.e once ur file has been loaded successful code u can write similar code to increment or counter values which u are asking for...
    search s_tvarvc-low for '20'.
            if sy-subrc ne 0.
              sy-msgty = 'E'.
              sy-msgid = 'ZWM1'.
              sy-msgno = '000'.
              sy-msgv1 = 'Unable to find DATE to increment'.
              raise unable_increment.
            else.
              w_date = s_tvarvc-low+sy-fdpos(08).
              w_nextdate = w_date + 1.
              replace w_date with w_nextdate into s_tvarvc-low.
              modify tvarvc from s_tvarvc.
            endif.
    Regards
    vamsi

  • Hierarchy format in Flat file

    Hi gurus,
          please tellme  the Hierarchy format in Flat file.
               ThanQ.
       Regards,
       Ramesh.

    Hi
    1.Defining the source system from which you want to load data:
    Create For a flat file, choose: File System, Manual Metadata; Data via File Interface.
    2.Defining the InfoSource for which you want to load data:
    Create Application Component.
    Create InfoSource , Direct Update
    Choose an InfoObject from the proposal list, and specify a name and a description.
    3.Assigning the source system to the InfoSource
    Assign Source System. You are taken automatically to the transfer structure maintenance.
    The system automatically generates DataSources for the three different data types to which you can load data.
    Attributes, Texts,Hierarchies (if the InfoObject has access to hierarchies)
    The system automatically generates the transfer structure, the transfer rules, and the communication structure (for attributes and texts).
      4.      Maintaining the transfer structure / transfer rules
    Choose the DataSource to be able to upload hierarchies.
    Idoc transfer method: The system automatically generates a proposal for the DataSource and the transfer structure. This consists of an entry for the InfoObject, for which hierarchies are loaded. With this transfer method, during loading, the structure is converted to the structure of the PSA, which affects performance.
    PSA transfer method: The transfer methods and the communication structure are also generated here. 
    5.      Maintaining the hierarchy:
    Choose Hierarchy Maintenance, and specify a technical name and a description of the hierarchy.
    PSA Transfer Method: You have the option here to set the Remove Leaf Value and Node InfoObjects indicator. As a result, characteristic values are not transferred into the hierarchy fields NODENAME, LEAFFROM and LEAFTO as is normally the case, but in their own transfer structure fields.  This option allows you to load characteristic values having a length greater than 32 characters.
    Characteristic values with a length > 32 can be loaded into the PSA, but they cannot be updated in characteristics that have a length >32.
    The node names for pure text nodes remain restricted to 32 characters in the hierarchy (0HIER_NODE characteristic).
    The system automatically generates a table with the following hierarchy format (for sorted hierarchies without removed leaf values and node InfoObjects):
    The system transfers the settings for the intervals and for time-dependency from the InfoObject maintenance. Depending on which settings you have defined in the InfoObject maintenance, further table fields can be generated from the system.
    The valid from and valid to field is filled if you select Total Hierarchy Time-dependent in the InfoObject maintenance. The time-dependent indicator is activated if you select the Hierarchy Nodes Time-dependent option in the InfoObject maintenance.
    6.      Save your entries.
    Depending on which settings you defined in the InfoObject maintenance, additional fields can be generated from the system. Also note the detailed description for Structure of a Flat Hierarchy File for Loading via an IDoc and for Structure of a Flat Hierarchy File for Loading via a PSA.
    Further Steps:
    Maintaining InfoPackages
    Result
    You have uploaded the hierarchy data for the corresponding characteristic.

  • How to Create Hierarchy From Flat file Structure

    Hi Gurus,
    There is a scenario for me regarding the Hierarchy.
    Required Hierarchy structure - Region>Director>Manager-->Sales id
    I have flat file which gives the info like user id , sales id , manager id, director id.
    But the transaction data Flat file has structure with sales id, region id, sales amt, sales qty.
    Note : Region id is another Master Data.
    How i can create hierarchy from the first flat file which doesnot have region info in that but it is available in the transaction data Flat file.
    Is there anyway we can create hierarchy based on the first Flat file structure which contains more that 1,00,000 records.
    Try to Suggest me in this regard .
    This is urgent.
    Regards,
    Mano

    Hi Mano,
                    Defining the source system from which to load data
    Choose the source system tree File  ® Create.
           2.      Defining the InfoSource for which you want to load data
    Optional: choose InfoSource Tree ® Root (InfoSources) ® Create Application Components.
    Choose InfoSource Tree ® Your Application Component ® Other Functions  ® Create InfoSource 3.x ® Direct Update.
    Choose an InfoObject from the proposal list, and specify a name and a description.
           3.      Assigning the source system to the InfoSource
    Choose InfoSource Tree ® Your Application Component ® Your InfoSource ® Assign Source System. The transfer structure maintenance screen appears.
    The system automatically generates DataSources for the three different data types to which you can load data.
    ○       Attributes
    ○       Texts
    ○       Hierarchies (if the InfoObject has access to hierarchies)
    The system automatically generates the transfer structure, the transfer rules, and the communication structure (for attributes and texts).
           4.      Maintaining the transfer structure / transfer rules
    Select the DataSource for uploading hierarchies.
    IDoc transfer method: The system automatically generates a proposal for the DataSource and the transfer structure. This consists of an entry for the InfoObject for which hierarchies are loaded. With this transfer method, the structure is converted to the structure of the PSA during loading, which affects performance.
    PSA transfer method: The transfer methods and the communication structure are also generated here.
           5.      Maintaining the hierarchy
    Choose Hierarchy Maintenance, and specify a technical name and a description of the hierarchy
    Hope this helps
    Regards
    Karthik
    Assign points if Helpful

  • Hierarchy using a flat file for a master data load.

    Can anyone please tell me the steps involved in creating a hierarchy in BI 7.0.  and loading the data using a flat file into the created hierarchy? I have seen some posts and weblogs but they were not helpful and i have been getting some errors which i dont know how to resolve.
    Can someone please give a clear steps and procedure for this?
    Thanks a lot in advance.
    Naveen

    Hi,
    The flat file is generated in application server by executing an ABAP program in SE38.
    This ABAP program contains the logic to generate hierarchy.
    In our case we used a DSO to store employee & supervisors.
    This program generated a flat file in tmp folder in application server
    In our case, To load this flat file we  created an Infosource on our master data using direct update using RSA1old Tcode
    after Infosource is created right click on the InfoSource and click on Assign DataSource.
    Give the Source System name
    When you open this Info source you can select data source as YHIEROBJ_HIER and then activate the InfoSource.
    create an Info Package to load the Hierarchy. Right click on the PC Files (Source System) and click on u201CCreate InfoPackage".
    Under Extraction tab give the flat file name which is generated by the ABAP program in AL11.
    Select the hierarchy which you want to load. Also, you can rename the Hierarchy after loading it. The update method is selected as u201CFull Updateu201D.
    Logic for Generation of flat file & ABAP Program:
    Flat file structure:
    Node ID     InfoObject     NodeName     Parent ID     Date To      Date From     Language
    u2022     u201CNode IDu201D indicates the unique number which defines the Node.
    u2022     u201CInfoObject u201Cgives the name of the InfoObject which is assigned to this Node ID.
    u2022     u201CNodeNameu201D is the name you specify to that Node.
    u2022     u201CParent IDu201D is the Node ID to which the Current Node ID reports to.
    u2022     u201CDate Tou201D and u201CDate Fromu201D are taken for time references (You can set them constant).
    u2022      u201CLanguageu201C is set to English (E).
    The program Logic can be :
    Declare the hierarchy structure
    Get the data from DSO into internal table
    Read all the EMP values into NodeName Field of the table
    Build lookup table for Parent Node ID
    Fill Parent Node ID field
    Append this data to work area & then to another internal table
    You need to declare the selection parameter as SSFILE1
    & use following code to write back the file
      OPEN DATASET SSFILE1 FOR OUTPUT IN TEXT MODE ENCODING DEFAULT
         MESSAGE MSG.
      IF SY-SUBRC NE 0.
        MESSAGE E008(ZBW1) WITH MSG.
      ENDIF
    Populate the output from that internal table into final work area.
    Transfer this final work area to the ssfile1 which is the desired output file.
    and   CLOSE DATASET SSFILE1.
    When this program is executed, selection screen asks for the name of file
    Enter the desired file name & execute
    flat file would be generated in the Application server now.
    To view the File, Go to Transaction AL11. Search the directory /tmp. Double click on this directory.
    This opens the list of flat files under this directory. Double click on the file name.
    Hope this helps.
    Thanks,
    Rashmi.

  • Short dump while loading Hierarchy flat file

    Hi gurus,
    i am trying to load data from flat file to hierarchy, when i am trying to schedule the InfoPackage its giving message  a dump :-
    "ASSIGN_LENGTH_0" C     
    "SAPLRRSV" or "LRRSVU10"
    "RRSV_INT_CHA_VAL_SPLIT"
    These are the steps i followed.
    1 created a ZINREGION
    2. enabled hierarchy of ZINREGION and included ZINCOUNTRY as external characteristics.
    3.and then created infosource and assigned DataSource and created hierarchy and created InfoPackage.
    4. selected the hierarchy in InfoPackage, which was created by clicking the hierarchy structure in DataSource and transfer structure.
    5.when i scheduled the load in InfoPackage i got above short dump message.
    I FOLLOWED THIS BLOG
    /people/prakash.bagali/blog/2006/02/07/hierarchy-upload-from-flat-files
    thanks
    Sathya Pathapati

    Hi Philippe,
    The processing step, as I could see in the status tab of the monitor, is ".Service API" I am not sure if this is what you are asking for. If not, please let me know what you want me to check for. Below is the description I have in the Status Tab.
    InfoIdocs missing; file system
    Diagnosis
    InfoIDocs are missing. With the file system as source system, the IDocs are created in BW. As this did not happen there was probably a short dump in BW.
    System response
    No end-confirmation arrived in the Warehouse from
    Procedure
    Check the short dumps in BW.
    Check the data in the InfoCube.
    Error Correction:
    If the data was correctly updated in the InfoCube, then it is possible that no InfoIDocs were generated.
    Set the data request status manually to "OK" (green traffic light).
    This error has occured in a standard SAP Program.
    Hi Ravi,
    I am not loading the data to the cube but only to the ODS. I have plans to load the data later from ODS to Cube.
    I am not using the process chains to load the data and anyway, as I am not loading to the cube, I auume the index will not come into picture. Please correct me if I am wrong.
    And, what do you mean by "Split the file". Can you please elaborate?
    Thanks,
    RPK.

  • Hierarchy flat file maintainence

    Hi BW experts,
    I am trying to load a material hiearchy from a flat file. The question is I have to maintain a flat file and I understand that if the number of materials are more there is some abap program to maintain the parent child relationships.Could somebody help with the abap program to maintain a flat file and I can upload that to the BW.
    My hierarchy looks like
    text node
      text node
          materials
    Textnode
      textnode
        materials
    Textnode
      textnode
        materials
    and so until 10 text nodes. I have the relationship between text nodes and materials.Please help me to accomplish that task. I appreciate quick replies.
    I understand the maintenace of flat file if the number of entries are limited but if the entries are say 10000 we have to come up with a logic which will take care of this format. I hope I explained the requirement and if you need further details ask me.
    Thanks,
    Pavan.

    If you can use the ABAP program to download the hierarchy, I don't understand your need for accessing the H table.  (I'm sure the ABAP program accesses this table.)
    I understand your issue with different materials between the other BW environments.  You can create multiple hierarchies in BW for a given info object.  You can create one hierarchy to be used for reporting in BW DEV, and create/copy another one to be downloaded and uploaded into your QA/PRD environments.
    What is your source system?  I have presumed it is not R/3, because you could simply use the material hierarchy datasource available with R/3.  And when the source system is non-SAP, production master data values are typically loaded into all of the BW environments (because customers do not usually want to create multiple flat files (DEV, QA, PRD) for master data loads.

  • Error while uploading data from a flat file to the hierarchy

    Hi guys,
    after i upload data from a flat file to the hierarchy, i get a error message "Please select a valid info object" am loading data using PSA, having activated all external chars still get the problem..some help on this please..
    regards
    Sri

    there is o relation of infoobject name in flat file and infoobjet name at BW side.
    please check with the object in the BW and their lengths and type of the object and check your flat file weather u have the same type there,
    now check the sequence of the objects in the transfer rules  and activate them.
    there u go.

  • Extracting data directly from a datasource to a flat file

    My requirements are to extract data from a SAP standard profit center accounting data extractor 0EC_PCA_1 directly to a flat file. Can this be done in a standard way or is custom ABAP development required ?
    I have tried the RSA3 based extractor, but as the result is displayed in packets, I would have to export the content of each extracted packet to separate flat file which is not very feasible.
    Br,
    HR

    Hi,
    1st option: create a dummy ods as well as a dummy infosource and dummy update rules. Assign the datasource to the dummy infosource. In the start routine of the transfer rules take each datapackage and download it to a file. Delete the datapackage. So you need almost no coding and you can also use a possible delta mechanism.
    2nd option: create your own abap and call the extraction module. Take care about the way it works like init mode, building packages... Possibly you need to find a way to remodel the delta capability.
    kind regards
    Siggi

  • What are the settings for datasource and infopackage for flat file loading

    hI
    Im trying to load the data from flat file to DSO . can anyone tel me what are the settings for datasource and infopackage for flat file loading .
    pls let me know
    regards
    kumar

    Loading of transaction data in BI 7.0:step by step guide on how to load data from a flatfile into the BI 7 system
    Uploading of Transaction data
    Log on to your SAP
    Transaction code RSA1—LEAD YOU TO MODELLING
    1. Creation of Info Objects
    • In left panel select info object
    • Create info area
    • Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
    • Create new characteristics and key figures under respective catalogs according to the project requirement
    • Create required info objects and Activate.
    2. Creation of Data Source
    • In the left panel select data sources
    • Create application component(AC)
    • Right click AC and create datasource
    • Specify data source name, source system, and data type ( Transaction data )
    • In general tab give short, medium, and long description.
    • In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
    • In proposal tab load example data and verify it.
    • In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
    • Activate data source and read preview data under preview tab.
    • Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
    3. Creation of data targets
    • In left panel select info provider
    • Select created info area and right click to create ODS( Data store object ) or Cube.
    • Specify name fro the ODS or cube and click create
    • From the template window select the required characteristics and key figures and drag and drop it into the DATA FIELD and KEY FIELDS
    • Click Activate.
    • Right click on ODS or Cube and select create transformation.
    • In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
    • Activate created transformation
    • Create Data transfer process (DTP) by right clicking the master data attributes
    • In extraction tab specify extraction mode ( full)
    • In update tab specify error handling ( request green)
    • Activate DTP and in execute tab click execute button to load data in data targets.
    4. Monitor
    Right Click data targets and select manage and in contents tab select contents to view the loaded data. There are two tables in ODS new table and active table to load data from new table to active table you have to activate after selecting the loaded data . Alternatively monitor icon can be used.
    Loading of master data in BI 7.0:
    For Uploading of master data in BI 7.0
    Log on to your SAP
    Transaction code RSA1—LEAD YOU TO MODELLING
    1. Creation of Info Objects
    • In left panel select info object
    • Create info area
    • Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
    • Create new characteristics and key figures under respective catalogs according to the project requirement
    • Create required info objects and Activate.
    2. Creation of Data Source
    • In the left panel select data sources
    • Create application component(AC)
    • Right click AC and create datasource
    • Specify data source name, source system, and data type ( master data attributes, text, hierarchies)
    • In general tab give short, medium, and long description.
    • In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
    • In proposal tab load example data and verify it.
    • In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
    • Activate data source and read preview data under preview tab.
    • Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
    3. Creation of data targets
    • In left panel select info provider
    • Select created info area and right click to select Insert Characteristics as info provider
    • Select required info object ( Ex : Employee ID)
    • Under that info object select attributes
    • Right click on attributes and select create transformation.
    • In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
    • Activate created transformation
    • Create Data transfer process (DTP) by right clicking the master data attributes
    • In extraction tab specify extraction mode ( full)
    • In update tab specify error handling ( request green)
    • Activate DTP and in execute tab click execute button to load data in data targets.

Maybe you are looking for

  • How to disable the print icon on check status screen of shopping cart inSRM

    Hi Experts, I have a requirment in which I need to disable print Icon on the status screen of the shopping cart. Can anybody please let me know how to achive this requirement. Thanks, Arun K Singarapu

  • 407 proxy error occured while checking certificate revocation

    Hello, A 407 proxy auth error occured while checking the server certificate revocation. source code:   var loader:URLLoader = new URLLoader();   loader.load(new URLRequest("https://www.example.com/")); It works fine on Windows XP you know, but does n

  • Urgent: array on jsp

    hi can you please help me. i want to create an array, i get my data which is stored on the array on mysql database. here is my code: <% String[] subjects = {rsstudents.getObject("subj1"), rsstudents.getObject("subj2"), rsstudents.getObject("subj3"),

  • Adobe Form showing previous records data

    Dear All, I have created a wd component consisting of 2 views. In the first view i am displaying an ALV. When i select a record and click on the alv button, the second view gets called which contains an Adobe Form showing the data. The problem i am f

  • Problems exporting and playback the MPEG2-DVD videos, from .MP4 file!

    I have PremiereProCS4 v.4.2.1 installed on this PC: OS:WindowsXPProx64Bit; CPU:IntelCore2Quad Q9650; RAM:4GB DDR2 PC2-6400 Kingston; HDD:3x500GB WestrnDigital Caviar Green; VGA: Sparkle GeForce 9400GT 512MB. I have downloaded an AVCHD file .MTS 1920x