Hierarchy of files

I want to create a program that searches the hard drive for a file, and for this i need to set up a hierarchy that i can manage of files and folders... so that i know when im done searching through a folder, go back one level and go on to the next... Help please?

I'm going to stop making such strong statements.
Here's my understanding.
Tail recursion is fine. Compilers reduce it to iteration, it looks nicer, and it runs just as fast and doesn't use a lot of memory.
The reason I would be wary of using recursion for a file system is that it seems hard (impossible?) to use tail recursion in that case. Now, I just did a test and didn't get a StackOverflowError until there were about 3500 method calls on the stack, so practically it's not a problem. So, now I'm all for recursion for file systems (possibly).
But it still seems like if you're dealing with any large problem, recursion should be avoided. A WWW spider comes to mind.

Similar Messages

  • 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

    Hello Gurus
    Can anyone plz send the format for Flatfile for hierarchy or any hierarchy flat file...i want to know how to create a flat file for hierarchy.
    Plz send to
    [email protected]
    Regards
    Srikanth

    hi,
    check the format here (with sample)
    http://help.sap.com/saphelp_bw33/helpdata/en/b0/ab8e3cb4340b14e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_bw33/helpdata/en/fa/e92637c2cbf357e10000009b38f936/frameset.htm
    http://help.sap.com/saphelp_bw33/helpdata/en/1f/0e3237e5875249e10000009b38f936/frameset.htm
    hope this helps.

  • Hierarchy on file content conversion for receiver?

    Y'all,
    I'm stuck in this problem and I haven't find a solution to solved it... so, all your clues and reply's are really appreciate...
    The basic problem is a File content conversion for a receiver C.C. that is not working and it's raising some errors in the RWB, I have gone thru some blogs but I still having a lot of doubts...
    I want to produce a flat TXT file that will have a line for every node or subnode, it doesn't matter if it's not represented as hierarchical structure like this one... but the records must be produced or written in the same order...
    Man_Del_Header as main node with Man_Header, Delete_Detail and Trailer as subnodes...
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:MT_DISTRIBUTOR_DELETE xmlns:ns1="http://xxx.com/xi/POSout">
       <Man_Del_Header>
          <MD_Header>|HM|1|</MD_Header>
          <MD_StoreNumber>051</MD_StoreNumber>
          <MD_filler1>|2|0000|3|</MD_filler1>
          <MD_EffDate>09/17/07</MD_EffDate>
          <MD_filler2>|4|005|5|dsdvnd|7|</MD_filler2>
          <MD_BatchNumber>500</MD_BatchNumber>
          <MD_fiiller3>|8|</MD_fiiller3>
          <MD_BatchDescr>DELETE PREV CST BTCH</MD_BatchDescr>
          <MD_filler4>|10|D|</MD_filler4>
          <MD_linef>1</MD_linef>
          <Man_Header>
             <Man_Header>|HM|1|</Man_Header>
             <Man_StoreNumber>051</Man_StoreNumber>
             <Man_filler1>|2|0000|3|</Man_filler1>
             <Man_EffDate>09/17/07</Man_EffDate>
             <Man_filler2>|4|005|5|dsdvnd|7|</Man_filler2>
             <Man_BatchNumber>500</Man_BatchNumber>
             <Man_filler3>|8|</Man_filler3>
             <Man_BatchDescription>Delete Distributor</Man_BatchDescription>
             <Man_filler4>|</Man_filler4>
             <Man_linef>Constant</Man_linef>
          </Man_Header>
          <Delete_Detail>
             <Delete_Detail>|D|901|170|</Delete_Detail>
             <Delete_DistribNumber>0000005010</Delete_DistribNumber>
             <filler9>|</filler9>
             <delete_linef>1</delete_linef>
          </Delete_Detail>
          <Delete_Detail>
             <Delete_Detail>|D|901|170|</Delete_Detail>
             <Delete_DistribNumber>0000005011</Delete_DistribNumber>
             <filler9>|</filler9>
             <delete_linef>1</delete_linef>
          </Delete_Detail>
          <Trailer>
             <Trailer>|T|1|</Trailer>
             <TotalRecCnt>00005</TotalRecCnt>
             <filler1>|2|</filler1>
             <NoOfHeaders>00002</NoOfHeaders>
             <filler2>|3|</filler2>
             <NoOfAdds>00000</NoOfAdds>
             <filler3>|4|</filler3>
             <NoOfChanges>00000</NoOfChanges>
             <filler4>|5|</filler4>
             <NoOfDeletes>00002</NoOfDeletes>
             <filler5>|13|</filler5>
             <NoOfSubstitution>00000</NoOfSubstitution>
             <filler6>|</filler6>
             <linef>1</linef>
          </Trailer>
       </Man_Del_Header>
       <Man_Del_Header>
          <MD_Header>|HM|1|</MD_Header>
          <MD_StoreNumber>061</MD_StoreNumber>
          <MD_filler1>|2|0000|3|</MD_filler1>
          <MD_EffDate>09/17/07</MD_EffDate>
          <MD_filler2>|4|005|5|dsdvnd|7|</MD_filler2>
          <MD_BatchNumber>500</MD_BatchNumber>
          <MD_fiiller3>|8|</MD_fiiller3>
          <MD_BatchDescr>DELETE PREV CST BTCH</MD_BatchDescr>
          <MD_filler4>|10|D|</MD_filler4>
          <MD_linef>1</MD_linef>
          <Man_Header>
             <Man_Header>|HM|1|</Man_Header>
             <Man_StoreNumber>061</Man_StoreNumber>
             <Man_filler1>|2|0000|3|</Man_filler1>
             <Man_EffDate>09/17/07</Man_EffDate>
             <Man_filler2>|4|005|5|dsdvnd|7|</Man_filler2>
             <Man_BatchNumber>500</Man_BatchNumber>
             <Man_filler3>|8|</Man_filler3>
             <Man_BatchDescription>Delete Distributor</Man_BatchDescription>
             <Man_filler4>|</Man_filler4>
             <Man_linef>Constant</Man_linef>
          </Man_Header>
          <Delete_Detail>
             <Delete_Detail>|D|901|170|</Delete_Detail>
             <Delete_DistribNumber>0000005012</Delete_DistribNumber>
             <filler9>|</filler9>
             <delete_linef>1</delete_linef>
          </Delete_Detail>
          <Delete_Detail>
             <Delete_Detail>|D|901|170|</Delete_Detail>
             <Delete_DistribNumber>0000005013</Delete_DistribNumber>
             <filler9>|</filler9>
             <delete_linef>1</delete_linef>
          </Delete_Detail>
          <Delete_Detail>
             <Delete_Detail>|D|901|170|</Delete_Detail>
             <Delete_DistribNumber>0000005014</Delete_DistribNumber>
             <filler9>|</filler9>
             <delete_linef>1</delete_linef>
          </Delete_Detail>
          <Trailer>
             <Trailer>|T|1|</Trailer>
             <TotalRecCnt>00006</TotalRecCnt>
             <filler1>|2|</filler1>
             <NoOfHeaders>00002</NoOfHeaders>
             <filler2>|3|</filler2>
             <NoOfAdds>00000</NoOfAdds>
             <filler3>|4|</filler3>
             <NoOfChanges>00000</NoOfChanges>
             <filler4>|5|</filler4>
             <NoOfDeletes>00003</NoOfDeletes>
             <filler5>|13|</filler5>
             <NoOfSubstitution>00000</NoOfSubstitution>
             <filler6>|</filler6>
             <linef>1</linef>
          </Trailer>
       </Man_Del_Header>
    </ns1:MT_DISTRIBUTOR_DELETE>
    |HM|1|051|2|0000|3|09/17/07|4|005|5|dsdvnd|7|500|8|DELETE PREV CST BTCH|10|D|1
    |HM|1|051|2|0000|3|09/17/07|4|005|5|dsdvnd|7|500|8|Delete Distributor|Constant
    |D|901|170|0000005010|1
    |D|901|170|0000005011|1
    |T|1|00005|2|00002|3|00000|4|00000|5|00002|13|00000|1
    |HM|1|061|2|0000|3|09/17/07|4|005|5|dsdvnd|7|500|8|DELETE PREV CST BTCH|10|D|1
    |HM|1|061|2|0000|3|09/17/07|4|005|5|dsdvnd|7|500|8|Delete Distributor|Constant
    |D|901|170|0000005012|1
    |D|901|170|0000005013|1
    |D|901|170|0000005014|1
    |T|1|00006|2|00002|3|00000|4|00000|5|00003|13|00000|1
    So as you can see, i wanna produce a flat file that will have line or record for each node, it doesn't matter that it has a hierarchy or a deeper level, it should be a simple flat file...
    The thing is that i have been trying to setup the receiver comm. channel and it's raising some errors like Could not process due to error:
    <i>java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value 'XXXX')', probably configuration error in file adapter (XML parser error)'</i>
    I have checked this blog:
    /people/karthiknarayan.kesavan2/blog/2007/08/22/file-content-conversion-for-multi-hierarchical-structure
    Unfortunately i don't know if there's another way to achieve this...

    Jerry,
    it easy if you go with multi mapping concept and without BPM if you are above >XI3.0 SP14.and use Append mode in the receiver file adapter.
    just create the target structure like root under that Man_Del_Header,Man_Header,Detail,Trailer at the same level but got be careful with occurences.
    <b>Source:</b>
    I think from your structure you have
    Man_Del_Header  (1-unb)
    Man_Header   (1-1)
    detail   (0-unb ) may be (1-unb)
    trailer (1-1)
    create <b>target DT</b> like:
    ROOT
    ..Man_Del_Header  (1-1)
    ..Man_Header   (1-1)
    ..detail   (0-unb ) may be (1-unb)
    ..trailer (1-1)
    all are at same level under ROOT.
    create MT,MI,MM,IM.
    in MM just map correspoding fields and if you have any unbounded onces map the nodes too. and map Man_Del_Header in the source to MT_XYZ (important)
    and in the MM go to MESSAGES tab and change the occurences of the target Message to 0-unbounded same way in the interface mapping 0-unbounded.
    here it create anothe extra node in the mapping something like Message1,this is ok.
    and in ID just create all other objects like as usual except  creating Interface determination ,in that select the extended radio button.
    in reciever File CC use FCC ,would be very simple in the recordsetstrcture give
    your four nodes Man_Del_Header,Man_Header,Detail,Trailer.
    and use either fixed or field seperator.use append mode in recv File CC otherwise it will generate files as many occurences your source "Man_Del_Header" has ,cos we are mapping it to the MT--xyz .
    thats it you are ready to go...
    if any error post back here again.
    you can make use of this thread
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible  (here there are two target DT ,but you just create one DT,remaining are similar)
    good luck.
    Babu

  • How to load hierarchy from file into InfoObject with compounding Attr & LN

    Hi,
    I have created an InfoObject called YCOSTC0 which has a compounding attribute 0CO_AREA. and Text is Lanugage dependent, hence the key is YCOSTC0, 0CO_AREA and LANGUAGE, now when i load hierarchy from flat file as mentioned below, it creates duplicate blank rows in master data table, becuase the flat file contains only the YCOSTC0 Info Object and this data gets loaded into 0CO_AREA column in master data table which is the first column. how can i load hierarchies from flat file into an InfoObject that has a compounding attribute and Language dependent. please provide me a sample file structure with data.
    NodeID     InfoObject     Node Name     Link Name     Parent ID     Language     Short Text     Medium Text     Long Text
    1     0HIER_NODE     CC_HIER               EN     Cost Center Heirarchy     Cost Center Heirarchy     Cost Center Heirarchy
    2     YCOSTC0     C001          1     EN     CC 1     Cost Center 1     Cost Center 1
    3     YCOSTC0     C002          2     EN     CC 2     Cost Center 2     Cost Center 2
    4     YCOSTC0     C003          2     EN     CC 3     Cost Center 3     Cost Center 3
    5     YCOSTC0     C004          3     EN     CC 4     Cost Center 4     Cost Center 4
    6     YCOSTC0     C005          3     EN     CC 7     Cost Center 7     Cost Center 7
    7     YCOSTC0     C006          4     EN     CC 5     Cost Center 5     Cost Center 5
    8     YCOSTC0     C007          4     EN     CC 8     Cost Center 8     Cost Center 8
    9     YCOSTC0     C008          4     EN     CC 10     Cost Center 10     Cost Center 10
    10     YCOSTC0     C009          7     EN     CC 6     Cost Center 6     Cost Center 6
    11     YCOSTC0     C010          6     EN     CC 9     Cost Center 9     Cost Center 9
    Thanks
    Akila R

    Hi -
        Check the following link.
    Hierarchy Upload from Flat files
    Anesh B

  • 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.

  • Timedependent hierarchy flat file upload

    Hello All,
    I am trying uploading timedependent hierarchy through a flat file.There was no error when i ran infopkg but when i go and check in hierarchy maintanance, i dont find any hierarchy there.I also verified in PSA, wherein i found four segments properly loaded with data.
    I am wondering what can be the possible reason, please provide your valuable suggestions.
    Regards,
    Jay

    Actually speaking there was a error which i didn't noticed. I have to go to scheduler monitor --> details tab --> Transfer (IDocs and TRFC): Errors occured --> Data Package 1 : arrived in BW ; Processing : 2nd processing step not yet finished ,  on the context menu i clicked manual update, hierarchy got loaded.
    But still why one has to go for manual update, Can't it be automated ?
    Infopkg --> processing tab --> check -- update subsequently in data target will solved the problem.
    Edited by: Mr. JK on Mar 14, 2008 7:28 AM

  • Link Column in Hierarchy Flat file

    Hi Gurus,
          Good Evening.
    Can anyone please let me know the significance of the Link column (in between Node name and Parent ID) while doing the flat file extraction for Hierarchy.
    Warm regards,
    Warnie.

    Hi
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/4dae0795-0501-0010-cc96-fe3a9e8959dc
    A customer (a global retailer) wishes to create a master data repository to store information about the locations it is active at. The data includes information about states, regions, counties, and cities (for example, the state capital, county population) and specific outlets. Each outlet is associated with a geographical hierarchy (state, region, etc.) Itu2019s expected that it will be easy to search and maintain information using the MDM Data Manager, and that the repository will be designed in a way that will ensure data integrity.
    The information to store includes the following objects and hierarchy:
    1. States u2013 each state holds a name, postal, traditional name and capital.
    2. Regions u2013 a region is associated to one state. It holds the name of the region.
    3. Counties u2013 a county is associated to one region. It holds the county name, population, FIPS code, and the county code.
    4. Cities u2013 a city is associated to one county. It holds the city name.
    5. Outlet u2013 an outlet is associated to one city. It holds a unique identifier, a name, outlet manager name, and contact information (address and phone number.)
    Hope it is clear and helpful

  • 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

  • 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.

  • Update Hierarchy from file flat

    Hi,
    We have transferred the hierarchy of infoobjet 0IM_REPOBJ  from OLPT, and a new hierarchy is created in SAP BW.
    Now we want to add new characteristic (node)  to this hierarchy, from upload file flat.
    I have followed all steps of documentation from sdn but I can't do it.
    After that, I think that from uploading file flat, only is possible created a new hierarchy or update a hierarchy created before for this way.
    It's correct or exist any way for update by uploading file flat, of a hierarchy downloaded from OLPT?,
    Best Regard,
    Mario.

    Hi Abhishek,
    When I try to upload the new characteristic from file flat, the follow error appear:
    RSAR 204: Error when you calculate the node level in ahierarchy.
    There is two sap notes, but it not apply for our case.
    When I create the infopackage of datasource from file, in tab "Hierarchy Selection" I can't select the herarchies available from OLPT, I have to create a new hierarchy. Although I create a new hierarchy with the same technical name of OLPT hierarchy, the system assign a new internal ID.
    And I think that, when I execute the infopackage from file flat, try calculate the node level in the new hierarchy created and not of the hierarchy existing in a infoobject.
    For this reason I guess that it isn't possible update by file flat of  a hierarchy downloaded from OLPT.
    Regarding your proposal of download the OLPT hierarchy, update it and upload to BW from file flat (deleting the existing hierarchy). I think that would be the more aproximate option, but we'll have to analyze the process, because the hierarchy will be updated both from OLPT as file flat.
    Have I to assume that my guesses are right?.
    Best Regard,
    Mario.

  • Changing the Hierarchy of File organisation in iTunes Media.

    Hi All,
    Am sure many are facing this issue that i have, from what posts I've seen so far.
    It's the issue of having sorted or organised your music with iTunes, and when you need to move songs to your phone or back up external HArd Disk, we need to move it in the EXACT Same structure in which iTunes has them organised.
    Let me explain:-
    My Current Itunes Media Folder list is sorted by the Artist > Album > *.mp3
    I have a huge collection of Music across 4 Languages, and there are possibilities that the same Artist could have sung a sung in 2 different Languages.
    So at times when I open an Artist's Folder i can see two sub folders for Language.
    If say, I wanted to have a Folder with only songs belonging to a particular Language, How do i achieve that? (I have my Library Categorised with ALBUM as Lang1, Lang2, Lang3) etc, that was meaningful to me than having the Album or Movie Name.
    Ideally i would want ALL songs in a Particular language to be under ONE Folder, currently iTunes doesnt do that, it creates multiple folders with Artist Name and stores the song under that particular Folder name of the Artist. Again another headache, If lets say i have a song sung by Artist1 and Artist2 together, then again thats a new folder!
    Reason Im asking this is because I migrated ALL my music from Windows to a Mac and spent considerable time, organising them by language (using the Album Tag), and now if i need to do a back up or Re Sync my Back up and my itunes library im having a tough time.
    I would want an option where in, I can have on SINGLE FOLDER which will be my master DUMP of all my music not categorised by Folders or yes maybe folders at Language Level.
    Music>Language(Or Genre) > *.mp3 - This is the structure I'm wanting to achieve, given the fact that my current most upto date Library is the itunes library, how do I do that, please help.
    Thanks in advance.

    Let's get backup sorted to start with. If you use the scheme outlined in this user tip then, as long as all the media is inside the iTunes Media folder which in turn is inside the main iTunes folder, the backup copy can act as a fully functioning library ready to sync with any of your devices. Backup is easy because the software scans and adds any new or updated files. Restoring is either everything following a complete disaster, or replacing the album/artist folder deleted in error to the matching path, so again not too tricky.
    The scheme above works whether you let iTunes organize the media or not, but it should all be inside the iTunes Media folder if your library is to be portable and work from any path. If you're using iTunes for managing media it really doesn't matter where the files are as long as it can find them and you can back up. If, however, you really want to impose some other structure on your files you can take my script ConsolidateByMoving and modify it so that it moves files to your personal preference instead of where iTunes would normally put them. You could also use the Auto-Organize from Tag features in MediaMonkey, or some other third party tool, but then you would need to fix broken links or remove and reimport the media, losing ratings, playlists, play counts etc.
    tt2

  • Hierarchy: Postable node (or not) in Flat file

    Hello Experts,
    I have read several times, the links you provided on this subject and they were very helpful but I am still stuck here:
    If I am loading a hierarchy through a flat file, how do I specify which of these nodes are postable and which are not?
    I know the Leave notes are postable, but my issue is with the various interval nodes
    For example, in this Customer profit center hierarchy ....
    NodeID|InfoObject Name| Node Name----- |--Link-|-ParentID|Child-|----Next ID
    0001----|0Hier_Node|--Customer--||---0|2---|--0---
    0002----|-0Country--|-China||| -|----
    0003----|-???--|50000||| -|----
    0004----|-oRegion--|RegB||| -|----
    0005----|-???--|60000||| -|----
    0005----|-???--|70000||| -|----
    What I want to achieve in the flat file, is to place region and the profit center 5000 under country, and make the profit center 5000 postable but Region is not postable.
    Also, under Region is RegB which is supposed to be NOT postable, but it has 2 profit centers under it, 6000 and 7000 which should be postable.
    Root
    Country---5000
    Region
    RegB---6000 / 7000
    Any help on this flat file will be appreciated. Where I have ???, I only meant I have doubts but I think it should be 0ProfitCtr.

    Hi,
    I don't know if this is what you mean...
    NodeID|InfoObject Name| Node Name----- |--Link-|-ParentID|Child-|----Next ID
    0001----|0Hier_Node|--Customer--||---0|2---|--0---
    0002----|-0Country--|-China||---1| -|----
    0003----|-???--|50000||-2| -|----
    0004----|-oRegion--|RegB||--2| -|----
    0005----|-???--|60000||4--| -|----
    0005----|-???--|70000||--4| -|----
    (hope it is readable)
    In the hierarchy flat file you only need to specify the parent node of a row. That way your hierarchy will get linked. That is how we load our flat file hierarchies and it works perfectly.
    Regards,
    David.
    Message was edited by: David Sirvent

  • Syntax error while loading hierarchy from an external file

    Dear Expert:
    I am new to BW and I met a problem today while loading hierarchy from an external file. Actually I am following below article to load the hierarchy:
    /people/prakash.bagali/blog/2006/02/07/hierarchy-upload-from-flat-files
    When I schedule the infopackage, the error message says: "Syntax error in template RSTMPL9C, ROW 76". Actually there is only around 20 lines of records.
    Since I am not familiar with hierarchy load, so:
    1. while loading from external file, do I need to create one hierarchy in advance  through "Maintain Hierarchies" in the infoobject? My understanding is since I can load that hierarchy from file, so I do not need to create one in advance, once the load completed, the hierarchy should automatically generated there. Is my understanding correct?
    2. Before loading the hierarchy, do I need to load the master data of external characteristics in the hierarchy first? Here in my example, the sales hierarchy has 2 external characteritics (Country and region) in the hierarchy. Do I need to load some data first?
    3. My 'Preview' function in the infopackage is gray so that I can not test the data loading. Why is it gray?
    Information like file name, file dir, file type(csv), seperator should be correct there.
    Can anybody help me take a look into that? Many thanks for your time in advance!
    Tim

    Hi ctsiszidane:
    There are some other SAP Notes that can help you solve the problem.  Depending on your Support Package level check which of them is applicable.
    Note 659461 - RSAR 682: Syntax error in template RSTMPL9A, row 246
    Note 605690 - Escape characters are not processed correctly
    Note 620152 - Syntax error in RSTMPL9A during data loading from a file
    Regards,
    Francisco Milán.

  • Project files hierarchy

    Hi all;
    i was not faithfull for java files hierachy and my projects was based on simple jsp files.
    &#304; want to create my own java class files and use in my project now.But how can i make the hierarchy on files.
    for example: com.java.myproject.mail , com.java.myproject.sql etc...
    how i must write this and how i must set the folder's index.
    i dont exactly know what i must call this situation so i couldnt search it somewhere.please let me know about any article and please give me link to learn on this more..
    Thank you
    Burak

    http://java.sun.com/docs/books/tutorial/reallybigindex.html#getStarted

Maybe you are looking for

  • How to change data type and col. width of text item

    hi, how will we change the datatype and width of a text item in runtime. set_item_property(itemname,fixed_length,20);--- it is for width. please help me. Regards

  • How can I jump to a named destination?

    I have separate Framemaker files for sections for which I specified a named destination at title. These sections are imported by reference into chapters of a number of books. Within the book I want to jump for example from chapter 2 to a section in c

  • Problem with Sidebar

    My sidebar (in any finder window) shows two sets of icons for everything listed. I have even seen on some occasions it have as many as three sets. I have tried to drag them out and then replace them, but it doubles up after a restart. I also trashed

  • Usb 2.0 cable

    Is there some technical reason why I cannot find a two-headed USB cable (flat insert at both ends)? I just want to connect the flat USB on extreme (where a printer would have plugged in) to my USB hub and can only find the A/B cables. I will check th

  • Photo Downloader Freezes Up

    Hi to all Bridge Macintosh users, I've posted this same thing to the Adobe:Camera Raw forum, but it is probably more relevant to Bridge Macintosh forum users. That is the photo downloader freeze-up problem when you click "choose" to select a folder.