Load hierarchy through flat file

I am trying to load a hierarchy through a flat file and followed the SDN blog mentioned below.
Hierarchy Upload from Flat files
However, I get this runtime error while loading.
Runtime Error          ASSIGN_LENGTH_0
Information on where terminated                                           
     The termination occurred in the ABAP program "SAPLRRSV" in            
      "RRSV_INT_CHA_VAL_SPLIT".                                            
     The main program was "RSABW_START_NEW ".                                                                               
The termination occurred in line 42 of the source code of the (Include)
      program "LRRSVU10"                                                   
     of the source code of program "LRRSVU10" (when calling the editor 420).
                                                                                Source Code Extract                                                                               
Line  SourceCde                                                                               
12 *"     VALUE(E_CHAVL_EXT) TYPE  RSD_CHAVL_EXT                       
    13 *"     VALUE(E_T_DEP) TYPE  RRSV_T_DEP                              
    14 *"  EXCEPTIONS                                                      
    15 *"      UNKNOWN_CHANM                                               
    16 *"      UNKNOWN_INFOCUBE        
   17 *"----
   18                                                                    
   19   DATA: l_s_cob_pro  TYPE rsd_s_cob_pro.                           
   20   DATA: l_t_cob_pro_cmp TYPE rsd_t_cob_pro.                        
   21   DATA: l_subrc      LIKE sy-subrc.                                
   22   DATA: l_offset     TYPE i.                                       
   23   DATA: l_s_dep      TYPE rrsv_s_dep.                              
   24                                                                    
   25   FIELD-SYMBOLS: <chavl>.                                          
   26                                                                    
   27   IF i_very_internal = rs_c_true. "SB                              
   28     i_with_const = rs_c_true.     "SB                              
   29   ENDIF.                          "SB                              
   30                                                                    
   31   PERFORM cob_pro_cmp_get USING i_infocube i_chanm                 
   32                        CHANGING l_t_cob_pro_cmp                    
   33                                 l_subrc.                           
   34   IF NOT l_subrc IS INITIAL.                                       
   35     PERFORM raise USING rs_c_false l_subrc i_chanm space.          
   36   ENDIF.                                                           
   37                                                                    
   38   l_offset = 0.                                                    
   39                                                                    
   40   LOOP AT l_t_cob_pro_cmp INTO l_s_cob_pro.                        
   41     IF i_with_const = rs_c_true OR l_s_cob_pro-chaconst IS INITIAL.
>>>>>       ASSIGN i_chavl_int+l_offset(l_s_cob_pro-intlen) TO <chavl>.  
   43       IF l_s_cob_pro-iobjnm = i_chanm.                             
   44         IF     <chavl> IS INITIAL                                  
   45             OR <chavl> EQ rsd_c_initial.                           
   46           IF i_very_internal = rs_c_true.

Hi,
  This is Thilak. For loading Data To hierarchy from flat file u should follow the below steps.
1. Create info objects as per ur hierarchy structure. i.e., ZH_CNO( for cno), ZH_SRGN (for region) .
2. find the highest node level info object. i.e., ZH_CNO.
3. go to that info object (highest node level info object) and select "with hierarchy" chk box.
4. click on " MAINTAIN HIERARCHY" button and move the external characteristics info objects to rt. side pannel.i.e., ZH_SRGN.
(Hint : other than first and last node level characteristics)
5. Activate the info object.
6. Create the info source (ZH_IS) of " DIrect Update Type".
7. Assign Hierarchy Data source( ZH_CNO_HIER) to that info source.
8. Schedule the info package to load the hierachy data from flat file.
Note: If u have any doubts regarding flat file format and hierarchy structure plz call to +91 9600015640 or mail to thilak.oggn@gmail. bcz i am unable to draw that hier strtr ana table.
Edited by: thilak. neelam on Oct 24, 2008 1:44 PM
Edited by: thilak. neelam on Oct 24, 2008 1:52 PM

Similar Messages

  • Error when loading hierarchy through flat file

    Dear All,
    We are facing an issue during hierarchy upload through flat file.
    Below is the message :-
    Error 8 when compiling the upload program: row 658, message: A newer version of data type /BIC/B0000559000 was.
    Message no. RSAR233.
    Nothing else is being displayed.
    Request you to guide on this.
    Thanks & Regards,
    Anup

    Hi,
    I faced the same issue earlier.
    This is what i did. SE38-RS_TRANSTRU_ACTIVATE_ALL run the program and give your sourcesystem name this activates all the structure including new version /BIC structure what you have stated.
    After which you need to refresh the RSA1 Tcode and do the same process again to load the hierarchy.
    It should work fine now.
    Hope this helps.
    Regards,
    Harish
    Edited by: Harish3152 on May 18, 2010 2:23 PM
    Edited by: Harish3152 on May 18, 2010 2:32 PM

  • I am loading hierarachy through flat file but facing problem

    i am loading hierarachy through flat file but facing problem  when creating infopackage  still error coming  please suggest  details what are steps followed

    Hi,
    Follow the steps:
         Hierachy through flat file
    &#61656;     First create a flat file save as in .CSV format. Then close the file.
    &#61656;       Create info area in info object then info object catalog opens then create it then info object screen opens then another screen opens were you will give data type, length then select option hierarchy tab, then select it simply select the check box with hierarchies.
    &#61656;        Select attribute tab in that name, age, address, phone then activate it then come back to the main screen then select characters right click a small screen open then select info object then a small screen opens then create sales region and activate it.
    &#61656;     Then return back to the main screen then click characters right click on it then a small window opens then select info object option & create sales office and activate it.
    &#61656;     Then return to the main screen then select characters then the ID then the double click on it  then the other screen opens select hierarchy tab then select external chars in hierarchies then click on it then other screen opens then select find tab then give the sales region info object name and click continue then it finds the name.
    &#61656;     The name would be scroll on the other screen then the office should be find the same way as region then office would be scroll on the other screen then continue and activate it.
    &#61656;     Then come back to the main screen then go to info source option then it opens then create application component then it opens other screen then click continue it
    &#61656;     Then  create info source for master data then select  direct update option there give the name of the info object of  as ex; YID_AS2 then click  continue.
    &#61656;     Then the YID_AS@ could be seen in the main screen then right click on it. Then a small option opens then click assign data source option then other screen opens there it gives the empty space double click on it then PC file then click continue then another window opens click continue then again screen opens click continue again a pop up screen opens click continue.
    &#61656;     Then another screen opens there the attribute data source then activate it then select hierarchy activate it then the left side data structure/ hierarchy then click on it then it opens another screen then click hire maintenance button .
    &#61656;     Then give the hierarchy name (your wish) then go with continue then yes then save then go back to the main screen.
    &#61656;     Then maintain the flat file as node id, info object, node name, link name, parent no.
    &#61656;     Then info package creation then click on the flat file right clicks on it then a other screen opens then select attribute data source and then continue.
    &#61656;        Then other screen opens then select external data tab in .CSV then click 1 the enter preview then another screen opens then click then it shows the preview then schedule then start then monitor click on it  then it opens other screen then click on the master data then we can see the data then go back to the  main screen.
    &#61656;     Then select the flat file right click on it then it gives other screen then select hierarchy in that then click continue then it opens other screen then select hierarchy selection tab there you can see the file name then select the button of hierarchy.
    &#61656;     Then select External data then the file name in CSV then processing tab only psa option with update subsequently in data targets then the update it schedule start then the monitor then go to the main screen.
    &#61656;     Then go to info object then select the file id which you have given then double click on it then select hierarchy or text file then the contents then execute it.
    &#61656;     Create a transaction table , cube in a normal way. We can see the result in reports we have to give the hierarchy name in the properties of rows where we drag the characteristics id then we can see the records which we have entered man usally after executing the report.
    regards
    ashwin

  • Error while loading data through flat files

    Hi,
    I am laoding data through flat files
    I loaded the data in development & then transported it to Quality  system  for doing Integration testing & loaded the data in Quality  system  & data loading was successful
    But we do the regression testing in one more Quality system where the objects get transported from Quality  system ,here when I try to the load the data to any of the cube in this system  I am getting the following error
    Error 'The argument 'US' cannot be interpreted as a number' on assignment field /BIC/ZIFBCOCTR record 1 value US
    Generally we get this error when there is the data of one field is going to the other field
    But one thing I am unable to understand is it was working fine in the Quality system and all the objects got transported from Quality to Regression testing system
    Could any one help me out
    Thanks
    Maya

    Hi,
    Can you please cross check the file structure and the transfer structure.
    Cheers,
    Malli....

  • Loading Hierarchy  from flat file giving dump

    Hi gurus,
    i am trying to load data from flat file to hierarchy, when i am trying to schedule the infopackage its giving message PLEASE SELECT THE VALID INFOOBJECT and if i proceed even its giving a dump :-ASSIGN LENGTH 0.
    i tired using i-doc method...then i am getting records in to BW in red and the same error
         InfoObject INFOOBJECT is not available.
    i followed the blog
    /people/prakash.bagali/blog/2006/02/07/hierarchy-upload-from-flat-files
    > points will be assigned for inputs.
    Message was edited by:
            ravi a

    hi guys,
    my heirarchy is different from the one in the blog. should i mark all the infoobjects in all nodes as hierarchy relavant or only the bottom one? i also brought the 0hier_node from the business content. i dont know what other valid infoobject is missing ......plz help........
    the following are more details about the dump
    Program error: ASSIGN with length 0 in program "SAPLRRSV".
    Error analysis
    An ASSIGN statement in the program "SAPLRRSV" contained a field symbol with
    length 0. This is not possible.
    length 0.
    This is not possible

  • Errors while loading a hierarchy through flat file

    Hi All,
    I have prepared a flat file to load the data for a characteristic (location) hierarchy and trying to load it.
    its throwing an error again and again though it loaded fine when with less no. of records (25 earlier and 75 now)
    error coming up is
    boldData records for package 1 selected in PSA - 1 error(s)bold
    could any one please suggest the possible errors and troubleshooting points please?
    Thank you
    Tanu

    Hi
    Just check for all lower case character in you file, all characters should ne in upper case.
    You may also choose to edit this single records in PSA and process further.
    Regards
    Sudeep

  • Error when loading hierarchy from Flat-file

    I am trying to get the Fund Group-Fund –Fund Center Hierarchy .
    Ie :  Fund Group
                 Fund 1
                        Fund center 1
                        Fund Center 2
           Fund Group 2
    I am trying to load it from a flat –file.
    I got the Flat –file structure for the hierarchy.
    & I am trying to load it to the Funds Group  master data.
    I am stuck at IPak.
    In the Processing Tab,
    Only the option “ Only PSA” is enabled.
    My Doubt  is :
    Why are the other options disabled: could it be because I might have  missed something in my previous  steps ???
    Or
    if I load till PSA , I don’t know how to load it to the Master data from there –-as when I schedule it : I can see it in PSA but then it stays in Yellow & then turns to Red.

    Hi,
    Go to monitor(RSMO)then verify on detail tab for PSA Load. Hope this help you,
    Thanks
    DST

  • I have to load hierarchy from flat file

    Hi Guys,
                 I build a balance sheet Report,which is showing the report based on financial statement item(0glaccext)hierarchy.
    But previously client is maintaining some third party system,so client wants to load all the GL accounts in to BW.
    When i load the GL accounts in to BW using flat file,in report it is not showing based on hierarchy for the flat file GL accounts.
    So i need to load the hierarchy also for those GL accounts,how to load the GL accounts using flat file to maintain the hierarchy based on Assets,liabilities etc...

    Abdul,
    You might want to take a look here:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0403a990-0201-0010-38b3-e1fc442848cb
    or else see this weblog:
    /people/prakash.bagali/blog/2006/02/07/hierarchy-upload-from-flat-files
    assign points if useful
    kalyan

  • Data Load Error: When loading Hierarchy through a flat file

    Hi Bw experts,
    I am getting the error message:  Info object is not available: Message RSAR210, when trying to  load the Hierarchy through flat file upload with IDOC processing.The info object is active. I am getting this error message only for one hierarchy, other hierarchies for the same inof object are loaded successfully.Can some one help me in this?
    Thanks in Advance.
    Regards,
    Bala

    Hi Bala,
    Can you please share the solution asap..
    As we are also facing the same issue.
    Your quick response will be appreciated a lot
    Regards,
    Sai

  • Upload hierarchy from flat file to BPC

    Hello SAP Guru,
    I have download customer / material  hierarchy in flat flie from BI/BW  and now I want to upload hierarchy from flat file to BPC
    Please can any one give me step by step method to load hierarchy from Flat file to SAP - BPC.
    Thanks in advance.
    With regards,
    Anand Kumar

    Hi Saida Reddy,
    why you resurrect a 5 years old thread? Surely he solved in the meanwhile his issue, see please dr Frankenstein.
    Regards
        Roberto

  • Loading Pipe delmiter flat file with ',' (comma)

    Hi Guys,
    I have a field which contains ',' as its value. The value is 0315A Mgr, Cust Service for a infoobject called ZJOB_TIT.
    Also, I have wrote the following code in field routine since previously this field was throwing hexadecimal errors and the load is through flat file.
    DATA: v_gpurqtrnr TYPE /BIC/OIZJOB_TIT.
    MOVE SOURCE_FIELDS-/BIC/ZJOB_TIT TO v_gpurqtrnr.
    TRANSLATE v_gpurqtrnr TO UPPER CASE.
    IF v_gpurqtrnr CN
    ',<>?/{}[]\|;:"''ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()_-+=123456789~` .'
      RESULT = space.
    ELSE.
      RESULT = v_gpurqtrnr.
    ENDIF.
    After loading the data, in preview of PSA - everything looks fine. Field ZJOB_TIT shows to have the value 0315A Mgr, Cust Service. But when I load to the cube - I get blank for the same field.
    I am not sure what more i can do to eradicate this problem.

    Hi
    PSA is the data before under going your tranformation or field routine. so you are able to see the data in that field . Now as per the code which you have written above it will surely be deleting all the characteristics which you have given under '.......' . Modify your code to eliminate only the comma and not the alpha numberic values.
    Rajesh

  • Loading of master data through flat files

    Hi
    can anybody tell how to load master data through flat files.As for as my knowledge we load characteristic and attributes values first and then we load text and then hierarchy.
    is it right or is there any procedure to load all values at a time.
    sai

    Hi ,
    condition1:The sequence of columns in the transfer structure must correspond to the sequence of columns in your flat file
    chk this help.sap link
    http://help.sap.com/saphelp_nw04s/helpdata/en/c8/e92637c2cbf357e10000009b38f936/frameset.htm
    Hope this helps you!!!!!!!
    cheers,
    Swapna.G

  • Exporting Hierarchy in Flat File Format

    Hi All,
    I exporting hierarchy in local file from transaction code OB58 (Balance sheet Hierarchy and Profit & Loss Hiearchy) , KSH3 (Cost Center Hierarchy), KCH3 (Profit Center Hierarchy). But the hierarchy is commming as it is displayed at the R3 screen.
    I have to load these hierarchies in BW through flat file. Is there any method other that writing an ABAP program by which we can extract these hierarchies in Flat file loadable format.
    Thanks

    Perhap's it can help you
    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0403a990-0201-0010-38b3-e1fc442848cb?overridelayout=true|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0403a990-0201-0010-38b3-e1fc442848cb?overridelayout=true]
    It's an ABAP program but it works well and you can load your flat file easily

  • Data loading mechanism for flat file loads for hierrarchy

    Hi all,
    We have a custom hierarchy which is getting data from a flat file that is stored in the central server and that gets data from MDM through XI. Now if we delete few records in MDM, the data picked in BI will not consist of the records which are deleted. Does it mean that the hierarchy itself deletes the data it consists of already and does a full load or does it mean every time we load the data to the BI, do weu delete the records from the tables in BI and reload?
    Also we have some Web Service(gets loaded from XI) text data sources.
    Is the logic about updating the hierrarchy records different as compared to the existing web service interfaces?
    Can anyone please tell me the mechanism behind these data loads and differentiate the same for above mentioned data loads?

    create the ODS with the correct keys. And load full loads from the flat files. You can have a cube pulling data from the ODS.
    Load data in ODS
    Create the cube.
    Generate export datasource ( rsa1 > rt clk the ods > generate export Datasource )
    Replicate the export ds ( rsa1 > source system > ds overview > search the ds starting with 8 + the ODS name
    press the '+' button activate the transfer rules and comm str
    create the update rules for the cube with the above infource ( same as '8ODSNAME' Datasource )
    create infopackage with intial load (in the update tab)
    Now load data to cube
    Now load new full loads to ODS
    create a new infopackage for delta (in the update tab)
    run in infopackage. (any changes / new records will be loaded to cube)
    Regards,
    BWer
    Assing points if helpful.

  • How to built a hierarchy with flat file?

    Hi Experts,
    for a better representation of the report, i need to built a hierarchy with flat file.
    The Data load is via Flat file.
    Do you have some documentation about that?
    Thanks
    Cheers
    Gilo

    Hi Gilo,
       Check these docs...
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0403a990-0201-0010-38b3-e1fc442848cb">How to… Download a Hierarchy to a Flat File</a>
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/fa/e92637c2cbf357e10000009b38f936/content.htm">Uploading Hierarchies from Flat Files</a>
    <a href="http://sapbwneelam.blogspot.com">More Docs...</a>
    Hope it Helps
    Srini

Maybe you are looking for

  • Transformation with xslt.

    hi, I have a simple problem which I don't remember how to extract the required information from the XML document. for example, <AA> <fish> <brand>catfish</brand> <brand>goldfish</brand> </fish> <blob> <A>a1</A> <B>b1</B> </blob> <AA> how do I write a

  • Capturing SAML attribute in OSB proxy

    Hi, We have a requirement of extracting one of the SAML attributes sent to our proxy service and send it to the business service as one of the SOAP body elements. I have done the following things: - Created the business service based on particular WS

  • Template not updating pages

    My customer wanted me to add some google analytics to some of their pages. So I tried to make an editable area just above the </body> tag so that I could put the specific code on just some of their pages. But when I did this, it put <!-- InstanceEnd

  • Del related and order related billing on the same order - timing problem

    Hi, In our repair process we need to bill out the loaner part (we put the money on the loaner line that gets shipped and create a delivery related billing document)  as well as repaired material when that comes in, goes through the repair and gets sh

  • StageVideo for IOS

    After a lot of searching I've got StageVideo working in my IOS app. See the tutorial posted here: http://01am.co.uk/comment/2 However, I get no audio. The mp4 file itself contains audio (when played in Quicktime) but is silent when played in my IOS a