How to represent hierarchical data?

I am creating an application to be used to store strategic resources in a hierarchical manner. The program should be able to store and open, for example, word documents, web sites, pdf files etc stored in a tree fashion using directories. My question is whether I should create a single xml file representing the tree, descriptors of each node etc. (basically all the information in one spot) or create an xml file within each directory decribing what resources are available within the current level.
Thanks in advance for any assistance.

You should check out the way a HTTP Server organizes its content.It may help if you could check out the Apache Web server.

Similar Messages

  • How to delete hierarchical data?

    Hello,
    I have a table with hierarchical data. I want to delete data based on a condition, but maybe this condition is only present in the topmost hierarchy.
    In my example I have rows identified by id and a changed_by containing the id of the row that replaced (invalidated) this row. From these I want to delete data where descr in the leaf nodes is 'A'.
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    DROP TABLE test_del;
    CREATE TABLE test_del (
         CONSTRAINT pk_del PRIMARY KEY (id)
        ,id         NUMBER
        ,changed_by NUMBER
         CONSTRAINT fk_del
         REFERENCES test_del (id)
        ,descr      VARCHAR2(10)
    INSERT INTO test_del (id,changed_by,descr)
    VALUES (3,NULL,'A');
    INSERT INTO test_del (id,changed_by,descr)
    VALUES (2,3,'A');
    INSERT INTO test_del (ID,changed_by,descr)
    VALUES (1,2,NULL);
    INSERT INTO test_del (id,changed_by,descr)
    VALUES (6,NULL,'A');
    INSERT INTO test_del (id,changed_by,descr)
    VALUES (5,6,'A');
    INSERT INTO test_del (id,changed_by,descr)
    VALUES (10,NULL,'B');
    INSERT INTO test_del (id,changed_by,descr)
    VALUES (9,10,'B');
    INSERT INTO test_del (id,changed_by,descr)
    VALUES (8,9,'B');
    COMMIT;
    SELECT  *
    FROM    test_del
    CONNECT BY PRIOR id = changed_by
    START WITH descr = 'A' AND changed_by IS NULL;
            ID CHANGED_BY DESCR
             3            A
             2          3 A
             1          2
             6            A
             5          6 A
    DELETE FROM test_del WHERE descr = 'A';
    ORA-02292: integrity constraint (FE.FK_DEL) violated - child record found
    Of course I get ORA-02292 in this case, but how can I write a correct statement that deletes the data shown by the select?
    Regards
    Marcus

    You need to follow the hierarchy:
    DELETE FROM test_del
          WHERE ROWID IN (
              SELECT ROWID
                FROM test_del
             CONNECT BY PRIOR id = changed_by
               START WITH descr = 'A'
                      AND changed_by IS NULL);

  • How to model hierarchical data?

    I need a way to model hierarchical data. I have tried using an object so far, and it hasn't worked. Here is the code for the class I made: http://home.iprimus.com.au/deeps/StatsGroupClass.java. As you can see, there are 4 fields: 1 to store the name of the "group", 2 integer data fields, and 1 Vector field to store all descendants. Unfortunately, this this not seem to be working as the Vector get(int index) method returns an Object. This is the error I get:
    Test.java:23: cannot resolve symbol
    symbol  : method getGroupName  ()
    location: class java.lang.Object
          echo("Primary Structure with index 0: " + data.get(0).getGroupName());
                                                            ^
    1 error I figure I can't use the approach I have been using because of this.
    Can anyone help me out?

    Test.java:23: cannot resolve symbolsymbol  : method getGroupName  ()location: class java.lang.Object      echo("Primary Structure with index 0: " + data.get(0).getGroupName());                                                        ^1 errorYou need to cast the return value from get(0):
    ((YourFunkyClass)data.get(0)).getGroupName();Be aware that you're opening yourself up to the possibility of a runtime ClassCastException. You could consider using generics if you can guarantee that the data Vector will contain only instances of YouFunkyClass.
    Hope this helps

  • How to modify hierarchical data with JavaAPI?

    Hi
    we have a hierarchical structure for "Categories" of products. Its a simple Table of type "Hierarchy".
    Now I need to add new entries to the Tree, or move existing entries to some different parents. But I can neither find a command like ModifyHierarchyTree nor is there a method to set the parent record on a HierNode instance.
    How can I set the parent node of a hierarchy node with JavaAPI 2?
    (Patch level is 5.5.42.65)
    Thanks in advance!

    Hi Roger,
    I think you can modify the Data Groups hierarchy directly from within the Add Objects dialog, by clicking the Edit button to open the Edit Data Groups dialog and then using the context menu as in any editable tree to add siblings and children, and to delete and rename existing nodes
    You can also edit the Data Groups hierarchy by choosing Objects ® Edit Data Groups from the main menu.
    Whereas other trees allow non-unique node names as long as sibling nodes do not have the same name, data group names must be unique across the entire Data Groupshierarchy.
    Hope it helped.
    Regards,
    Krutarth

  • How to represent binary data?

    I have some binary data which I want to assign to a variable. How do I do this?
    To clarify my scenario:
    long longConstant = 1234567890L;Is there something like
    byte[] byteConstant = {1011B, 1000B, 1111B, 1101B, };Thanks in advance!

    Everything in memory is binary, so that clarification didn't clarify anything. Your original post suggests you want to know if you can include integer literals in your program in binary (not octal, decimal, or hexadecimal) representation. The answer to that question is no, but it's easy to translate binary to either octal or hexadecimal by combining groups of 3 or 4 bits.
    A hexadecimal literal starts with "0x":int abc = 0x22ab;and an octal literal just starts with "0" (zero, not oh):int def = 0777;

  • How can represent this data in AS3

    I try declare a ArrayCollection like this
    var arr:ArrayCollection = new ArrayCollection(
    [{group:"Group One", members:["Jonny", "Tommy", "Lucy"]}, etc..]);
    I can't declare that using static sentence.
    So I do it like this:
    var dpArr:ArrayCollection = new ArrayCollection();
    for (var i:int = 1; i < 10; i++)
    var obj:Object = new Object();
    obj.group = "Group One";
    obj.members = innerArr;
    dpArr.addItem(obj);

    Ops, I write wrong code sorry ~ _ ~
    在2009-07-23,"Flex harUI" <[email protected]> 写道:
    >What error do you get?? I'm pretty sure I've gotten this to work.
    >?
    >Alex Harui
    >Flex SDK Developer
    >Adobe Systems Inc.
    >Blog: http://blogs.adobe.com/aharui
    >

  • How to represent XYZ Poincaré Sphere

    Hello, I will present a question I have about representation.
    I'm getting the Stokes parameters to analyze the polarization modes, well, once I get them normalized.
    What I want to know is how to represent the data (S (1,1,0,0), S (1.0, -1.0) for example ...) in a XY Cartesian plot, or even better on XYZ Poincaré sphere.
    I need more information to represent these results? And how?
    Thank you very much (sorry for my English)
    Hola, a continuación voy a exponer una duda que tengo sobre representación.
    Estoy obteniendo los parametros de Stoke para analizar los modos de polarización, pues bien una vez los obtengo los normalizo.
    Lo que me gustaría saber es como representar los datos ( S(1,1,0,0) , S(1,0,-1,0) por ejemplo...), de forma cartesiana XY o mejor aún los datos en XYZ la esfera Poincaré.
    ¿Necesito más datos?
    Un saludo y muchas gracias.

    No one can help me, please?

  • How to retrieve multiple data from table and represent it in jsp page

    Hi
    The below JavaScript code is used to add row in the table when I want to add multiple row data into table for single entry no field.
      <html>  function addRow()
                i++;
                var newRow = document.all("tblGrid").insertRow();
                var oCell = newRow.insertCell();
                oCell.innerHTML = "<input name='srno"+i+"' type='text' id='srno"+i+"' size=10>";
                oCell = newRow.insertCell();
                oCell.innerHTML = "<input name='itmcd"+i+"' type='text' id='itmcd"+i+"' size='10'>";
                oCell = newRow.insertCell();
                oCell.innerHTML = "<input name='itmnm"+i+"' type='text' id='itmnm"+i+"' size='15'>";
                oCell = newRow.insertCell();
                oCell.innerHTML = "<input name='indentqty"+i+"' type='text' id='indentqty"+i+"' size='10'>";
                oCell = newRow.insertCell();
                    oCell.innerHTML = "<input name='uom"+i+"' type='text' id='uom"+i+"' size='10'><input type='hidden' name='mcode"+i+"'id='mcode"+i+"'>";
                oCell = newRow.insertCell();
                oCell.innerHTML = "<input name='packqty"+i+"' type='text' id='packqty"+i+"' size='10'>";
                oCell = newRow.insertCell();
                oCell.innerHTML = "<input name='packuom"+i+"' type='text' id='packuom"+i+"' size='10'><input type='hidden' name='pack"+i+"' id='pack"+i+"'>";
                oCell = newRow.insertCell();
                oCell.innerHTML = "<input name='rate"+i+"' type='text' id='rate"+i+"' size='10'>";
                oCell = newRow.insertCell();
                oCell.innerHTML = "<input name='dor"+i+"' type='text' id='dor"+i+"' size='0' onClick='"+putdate(this.name)+"'>";           
                oCell = newRow.insertCell();
                oCell.innerHTML = "<input name='bccode"+i+"' type='text' id='bccode"+i+"' size='10'></td><input type='hidden' name='bcc"+i+"' id='bcc"+i+"'>";
                oCell = newRow.insertCell();
                oCell.innerHTML = "<input name='cccode"+i+"' type='text' id='cccode"+i+"' size='10'></td><input type='hidden' name='ccc"+i+"' id='ccc"+i+"'>";
                oCell = newRow.insertCell();
                oCell.innerHTML = "<input name='remark2"+i+"' type='text' id='remark2"+i+"' size='20'>";           
                oCell = newRow.insertCell();
                oCell.innerHTML = "<input type='button' value='Delete' onclick='removeRow(this);' />";
               // oCell = newRow.insertCell();
               // oCell.innerHTML = "<input type='button' value='Clear' onclick='clearRow(this);' />";
            }<html>  Then this data are send to the next Servlet for adding into two table.
    My header portion data are added into one table which added only one row in table. while footer section data are added into the no of rows in another table dependent on No. of
    Rows added into jsp page.
    Here is an code for that logic.
    <html>
    ArrayList<String> mucode = new ArrayList<String>();
                                ArrayList<Integer> serials = new ArrayList<Integer>();
                                ArrayList<Integer> apxrate = new ArrayList<Integer>();
                                ArrayList<Integer> srname = new ArrayList<Integer>();
                                ArrayList<String> itcode = new ArrayList<String>();
                                ArrayList<String> itname = new ArrayList<String>();
                                ArrayList<Integer> iqnty = new ArrayList<Integer>();
                                ArrayList<String> iuom = new ArrayList<String>();
                                ArrayList<Integer> pqnty = new ArrayList<Integer>();
                                ArrayList<String> puom1 = new ArrayList<String>();
                               ArrayList<Integer> arate = new ArrayList<Integer>();
                                ArrayList<String> rdate = new ArrayList<String>();
                                ArrayList<String> bcs = new ArrayList<String>();
                                ArrayList<String> ccs = new ArrayList<String>();
                                ArrayList<String> remarkss = new ArrayList<String>();
                                //ArrayList<Integer> qtyrecs = new ArrayList<Integer>();
                                //ArrayList<String> dors = new ArrayList<String>();
                                //ArrayList<String> remarks = new ArrayList<String>();
                     String entryn = request.getParameter("entryno");       
                        String rows = request.getParameter("rows");
                        out.println(rows);  
                        //String Entryno = request.getParameter("entryno");
                       // out.println(Entryno);
                      int entryno = 0,reqqty = 0,srno = 0,deprequest = 0,rowcount = 0;
                                if(!Entryno.equals("")){
                                        entryno = Integer.valueOf(Entryno);
                                if(!rows.equals("")){
                                        rowcount = Integer.valueOf(rows);
                               for(int i=1;i<=rowcount;i++){
                                        if(request.getParameter("srno"+i)!=null){
                                                serials.add(Integer.valueOf(request.getParameter("srno"+i).trim()));
                                                out.println(serials.size());
                                for(int i=1;i<=rowcount;i++){
                                        if(request.getParameter("srno"+i)!=null){
                                                srname.add(Integer.valueOf(request.getParameter("srno"+i).trim()));
                                out.println(srname.get(0));
                                for(int i=1;i<=rowcount;i++){
                                        if(request.getParameter("itmcd"+i)!=null){
                                                itcode.add(request.getParameter("itmcd"+i).trim());
                                        } //out.println(itcode.get(i));
                                for(int i=1;i<=rowcount;i++){
                                        if(request.getParameter("itmnm"+i)!=null){
                                                itname.add(request.getParameter("itmnm"+i).trim());
                                        }//out.println(itname.get(i));
                                for(int i=1;i<=rowcount;i++){
                                        if(request.getParameter("indentqty"+i)!=null){
                                                iqnty.add(Integer.valueOf(request.getParameter("indentqty"+i).trim()));
                                for(int i=1;i<=rowcount;i++){
                                        if(request.getParameter("uom"+i)!=null){
                                                iuom.add(request.getParameter("uom"+i).trim());
                                        }//out.println(iuom.get(i));
                                for(int i=1;i<=rowcount;i++){
                                        if(request.getParameter("mcode"+i)!=null){
                                                mucode.add(request.getParameter("mcode"+i).trim());
                               for(int i=1;i<=rowcount;i++){
                                        if(request.getParameter("packqty"+i).equals("")){
                                          pqnty.add(0);
                                        }else
                                            pqnty.add(Integer.valueOf(request.getParameter("packqty"+i).trim()));
                                for(int i=1;i<=rowcount;i++){
                                        if(request.getParameter("pack"+i)!=null){
                                                puom1.add(request.getParameter("pack"+i).trim());
                                       }else
                                        puom1.add("");
                               for(int i=1;i<=rowcount;i++){
                                        if(request.getParameter("rate"+i).equals("")){                                     
                                            arate.add(0);
                                        }else
                                        arate.add(Integer.valueOf(request.getParameter("rate"+i).trim()));   
                     /* for(int i=1;i<=rowcount;i++){
                                        if(request.getParameter("rate"+i)!=null){
                                                arate.add(Integer.valueOf(request.getParameter("rate"+i).trim()));
                              for(int i=1;i<=rowcount;i++){
                                        if(request.getParameter("dor"+i)!=null){
                                                try{
                                                        rdate.add(dashdate.format(slashdate.parse(request.getParameter("dor"+i).trim())));
                                                }catch(ParseException p){p.printStackTrace();}
                                        }else
                                           { rdate.add("");}
                                   for(int i=1;i<=rowcount;i++){
                                 if(request.getParameter("bcc"+i)!=null){
                                                bcs.add(request.getParameter("bcc"+i).trim());
                                        }out.println(bcs.get(0));
                                for(int i=1;i<=rowcount;i++){
                                        if(request.getParameter("ccc"+i)!=null){
                                                ccs.add(request.getParameter("ccc"+i).trim());
                                        }out.println(ccs.get(0));
                                for(int i=1;i<=rowcount;i++){
                                    out.println("remark2");
                                        if(request.getParameter("remark2"+i)!=null){
                                                remarkss.add(request.getParameter("remark2"+i).trim());
                                        }out.println(remarkss.get(0));
                        ArrayList<String> Idate = new ArrayList<String>();
                        for(int i=1;i<=rowcount;i++){
                                        if(request.getParameter("dateindent"+i)!=null){
                                                try{
                                                        Idate.add(dashdate.format(dashdate.parse(request.getParameter("dateindent"+i).trim())));
                                                }catch(ParseException p){p.printStackTrace();}
                    String Rdate = dashdate.format(new java.util.Date());
                     String tdate = dashdate.format(new java.util.Date());    
                     // String Indentdate = dashdate.format(new java.util.Date());
                   //  String ApprovedT1 = dashdate.format(new java.util.Date());
                   //  String ApprovedT2 = dashdate.format(new java.util.Date());
                       // String ApprovedT1=" ";
                        //String ApprovedT2="";*/
                    String ApprovedT1= dashdate.format(new java.util.Date());
                   out.println (ApprovedT1);
                      String ApprovedT2=dashdate.format(new java.util.Date());
                       out.println(ApprovedT2);
                    String Indentdate=(dashdate.format(slashdate.parse(request.getParameter("dateindent").trim())));
                       out.println(Indentdate);
                        String Cocode ="BML001";  
                        out.println(Cocode);
                        String Deptcode = request.getParameter("dept1");
                        out.println(Deptcode);
                        String Empcode = request.getParameter("emp");
                        out.println(Empcode);
                        String Refno =request.getParameter("rtype"); 
                         out.println(Refno);
                        String Divcode = request.getParameter("todiv1");
                        out.println(Divcode);
                        String Usercode = "CIRIUS";    
                         String Whcode = request.getParameter("stor");
                        out.println(Whcode);
                        // String Itemgroupcode = request.getParameter("");
                         String Itemgroupcode ="120000";
                         out.println(Itemgroupcode);
                        String Supplytypecode = request.getParameter("stype");
                        out.println(Supplytypecode);
                        String Delcode = request.getParameter("deliverycode");
                        out.println(Delcode);
                        String Itemclass="WS";
                        out.println(Itemclass);
                        // String Itemclass = request.getParameter("iclass");
                       // out.println(Itemclass);
                        String unitcode = request.getParameter("uni");
                        out.println(unitcode);
                         String Todivcode = request.getParameter("todiv1");
                        out.println(Todivcode);
                        String Appxrate = request.getParameter("rate");
                        out.println(Appxrate);
                        String Srno = request.getParameter("srno");
                        out.println(Srno);                
                    /*    String Indqty = request.getParameter("indentqty");
                      out.println(Indqty);*/
                  String Itemcode = request.getParameter("itmcd");
                       out.println(Itemcode);
                       String Othersp = request.getParameter("remark1");
                        out.println(Othersp);
                        String Reqdt = request.getParameter("dor");
                        out.println(Reqdt);
                        String Munitcode = request.getParameter("mcode");
                        out.println(Munitcode);
                        String Packqty = request.getParameter("packqty");
                        out.println(Packqty);               
                        String Packuom = request.getParameter("pack");
                        out.println(Packuom);
                        String Remark2 = request.getParameter("remark2");
                        out.println(Remark2);
                        String BC = request.getParameter("bcc");
                        out.println(BC);
                        String CC = request.getParameter("ccc");
                        out.println(CC);
                        try{
                            st=connection.createStatement();
                            connection.setAutoCommit(false);
                            String sql="INSERT INTO PTXNINDHDR(COCODE,DEPTCODE,EMPCODE,APPROVEDT1,APPROVEDT2,INDDT,ENTRYNO,REFNO,REMARKS,DIVCODE,USERCODE,WHCODE,ITEMGROUPCODE,SUPTYPECODE,DELCODE,UNITCODE,TODIVCODE,ITEMCLASS)VALUES('"+Cocode+"','"+Deptcode+"','"+Empcode+"','"+ApprovedT1+"','"+ApprovedT2+"','"+Indentdate+"',"+Entryno+",'"+Refno+"','"+Othersp+"','"+Divcode+"','"+Usercode+"','"+Whcode+"','"+Itemgroupcode+"','"+Supplytypecode+"','"+Delcode+"','"+unitcode+"','"+Todivcode+"','"+Itemclass+"')";
                            out.println(sql);
                            st.addBatch(sql);
                            for(int i=0;i<serials.size();i++){
                                out.println("Inside the Statement");
                                String query3="test query for u";
                                out.println(query3);
                               String queryx="Insert into PTXNINDDTL(APXRATE,ENTRYNO,BRKNO,INDQTY,ITEMCODE,OTHERSPFCS,MUNITCODE,PACKQTY,PACKUOM,REMARKS,DIMSUBGRPCODE,DIMCODE,REQDT)VALUES("+arate.get(i)+","+entryno+","+srname.get(i)+","+iqnty.get(i)+","+itcode.get(i)+",'"+Othersp+"','"+mucode.get(i)+"',"+pqnty.get(i)+",'"+puom1.get(i)+"','"+remarkss.get(i)+"','"+bcs.get(i)+"','"+ccs.get(i)+"','"+rdate.get(i)+"')";
                               out.println(queryx);
                                st.addBatch(queryx);
                           int[] result=st.executeBatch();
                           connection.commit();
                           for(int k=0;k<result.length;k++)
                           out.println("rows updated by "+(k+1)+"insert sta:"+result[k]+"");
                        catch(BatchUpdateException bue)
                        out.println("error1;"+bue+"");
                        catch(SQLException sql)
                        out.println("error2;"+sql+"");
                        catch(Exception l)
                        out.println("error3;"+l+"");
    </html>
       Now I looking for to retrieve this footer section data available in multiple rows from footer table and present it in jsp page .
    I am finding difficulties in how to show this multiple row data for dynamic no of rows .i.e. variable no. of rows.
    I have able to show the data in Header portions of page in this ways
    here i am adding the part of code which shows the data from header part of table i.e from Header table
      <html>
    <h2 align="center"><b>Indent Preparation</b></h2>
        <div align="left">
            <table width="849" border="0" cellspacing="3" cellpadding="3" align="center">
                <tr>
                    <td ><div align="left"><b>Indent No.</b></div></td>
                    <td ><label>
                            <input name="indentno" type="text" id="indentno" size="15" value="" /><input type="hidden" name="no" id="no">
                    </label></td>
                    <td ><div align="center"><strong>Indent Date</strong></div></td>
                    <td ><label>
                            <div align="center">
                                <input name="dateindent" type="text" id="dateindent"value="<%=date1%>"/><input type="hidden" name="no" id="no">
                            </div>
                    </label></td>
                    <td> </td>
                    <td><div align="right"><strong>Entry No.</strong></div></td>
                     <%if(oper!=null && oper.equals("view") && hdrcode!=null && hdrdetails!=null){%>
            <td><input type="text" value="<%=hdrcode.get(3)%>" size="10"></td>
    <%}else{%>
                   <td><input type="text" name="entryno" id="entryno" value="<%=entryNo%>"/></td>
                             <%}%>
                            <div align="right"></div>
                </tr>
                <tr>
                    <td><b>Division</b></td>
                    <%if(oper!=null && oper.equals("view") && hdrcode!=null && hdrdetails!=null){%>
    <td><input type="text" value="<%=hdrdetails.get(9)%>" size="20"</td>
    <td><input type="hidden" name="div1" id="div1" value='<%=hdrcode.get(10)%>'></td>
    <%}else{%>
                   <td><input type="text" name="div" id="div" /></td>
                   <td><input type="hidden" name="div1" id="div1" /> </td>
              <%}%>
                    <td> </td>
                    <td> </td>
                    <td><div align="right"><strong>Unit</strong></div></td>
                   <%if(oper!=null && oper.equals("view") && hdrcode!=null && hdrdetails!=null){%>
    <td><input type="text" value="<%=hdrdetails.get(14)%>" size="20"</td>
    <td><input type="hidden" name="uni" id="uni" value='<%=hdrcode.get(12)%>'></td>
    <%}else{%>
                   <td><input type="text" name="unit" id="unit" /></td>
                   <td><input type="hidden" name="uni" id="uni" /> </td>
              <%}%>
                </tr>
                <tr>
    </html>
      Any suggestion on any above works is highly appreciated.
    Thanks and regards
    harshal

    Too much code. It's also not well intented nor formatted. I don't see a question either or it got lost in that heap of unformatted code.
    I will only answer the question in the thread's subject:
    How to retrieve multiple data from table and represent it in jsp pageTo retrieve, make use of HttpServletRequest#getParameterValues() and/or #getParameter().
    To display, make use of JSTL's c:forEach.

  • How to represent data as PDF?

    Hi Experts,
    I need to show the backend data brought by FM as a PDF in portal.
    The FM return parameter of type XSTRING and in other case SAP Script text line.(TLINE structure)
    How can I represent the data of them as a PDF?
    Regards,

    Hi,
    You can use iText jar file to generate pdf file.
    Read this weblog. Create a PDF file using JAVA
    Thanks,
    Padman

  • How to load master data and hierarchies from R/3 systems

    HI all,
    how to load master data and hierarchies from R/3 systems.
    Please explain the steps.
    Thanks,
    cheta.

    HI,
    Its normally done following: Transferring the master datasources in RSA5 to RSA6 and then replicating the DS into BW and assignment of DS to Infosource and cretaion of Infopackage and load it into the master tables.
    Generally, the control parameters for data transfer from a source system are maintained in extractor
    customizing. In extractor customizing, you can access the corresponding source system in the source
    system tree of the SAP BW Administrator Workbench by using the context menu.
    To display or change the settings for data transfer at source system level, choose Business
    Information Warehouse &#8594; General Settings &#8594; Maintaining Control Parameters for Data Transfer.
    Note: The values for the data transfer are not hard limitations. It depends on the DataSource if these
    limits can be followed.
    In the SAP BW Scheduler, you can determine the control parameters for data transfer for individual
    DataSources. You can determine the size of the data packet, the number of parallel processes for
    data transfer and the frequency with which the status IDocs are sent, for every possible update
    method for a DataSource.
    To do so, choose Scheduler &#8594; DataSource &#8594; Default Settings for Data transfer.
    In this way you can, for example, update transaction data in larger data packets in the PSA. If you
    want to update master data in dialog mode, smaller packets ensure faster processing.
    Hope this info helps.
    Thanks,Ramoji.

  • 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

  • How to represent data in graphical form?

    Hello,
             I am having some data in my table i want to represent that data in graphical form. please help me to achieve this.
    Helpful answers will be rewarded with points.
    Thks

    hi,
    check this sample program.copy paste in se38 and execute.
    *& Report  ZGM_ALV_GRAPH                                               *
    REPORT  ZGM_ALV_GRAPH                           .
    *structure declaration for performance measurement
    TYPES: BEGIN OF ty_performance,
             COMPANY(15) TYPE C,
              Q1 TYPE I,
              Q2 TYPE I,
              Q3 TYPE I,
              Q4 TYPE I,
            END OF TY_PERFORMANCE.
    *STRUCTURE DECLARATION FOR OPTIONS TABLE
    TYPES : BEGIN OF TY_OPTTABLE,
                OPTIONS(30) TYPE C,
            END OF TY_OPTTABLE.
    *INTERNAL TABLE AND WORK AREA DECLARATIONS
    DATA :  IT_PERFORMANCE TYPE STANDARD TABLE OF TY_PERFORMANCE,
           WA_PERFORMANCE TYPE TY_PERFORMANCE.
    DATA : IT_OPTTABLE TYPE STANDARD TABLE OF TY_OPTTABLE,
           WA_OPTTABLE TYPE TY_OPTTABLE.
    *INITIALIZATION EVENT
    INITIALIZATION.
    *START OF SELECTION EVENT
    START-OF-SELECTION.
    *CLEARING THE WORK AREAS
    CLEAR WA_PERFORMANCE.
    CLEAR WA_OPTTABLE.
    *APPENDING VALUES INTO THE PERFORMANCE INTERNAL TABLE
    WA_PERFORMANCE-COMPANY = 'Company A'.
    WA_PERFORMANCE-Q1      = 78.
    WA_PERFORMANCE-Q2      = 68.
    WA_PERFORMANCE-Q3      = 79.
    WA_PERFORMANCE-Q4      = 80.
    APPEND WA_PERFORMANCE TO IT_PERFORMANCE.
    WA_PERFORMANCE-COMPANY = 'Company B'.
    WA_PERFORMANCE-Q1      = 48.
    WA_PERFORMANCE-Q2      = 68.
    WA_PERFORMANCE-Q3      = 69.
    WA_PERFORMANCE-Q4      = 70.
    APPEND WA_PERFORMANCE TO IT_PERFORMANCE.
    WA_PERFORMANCE-COMPANY = 'Company C'.
    WA_PERFORMANCE-Q1      = 78.
    WA_PERFORMANCE-Q2      = 48.
    WA_PERFORMANCE-Q3      = 79.
    WA_PERFORMANCE-Q4      = 85.
    APPEND WA_PERFORMANCE TO IT_PERFORMANCE.
    *APPENDING VALUES INTO THE OPTIONS INTERNAL TABLE
    WA_OPTTABLE-OPTIONS = 'P3TYPE = TO'.
    APPEND WA_OPTTABLE TO IT_OPTTABLE.
    WA_OPTTABLE-OPTIONS = 'P2TYPE = VB'.
    APPEND WA_OPTTABLE TO IT_OPTTABLE.
    WA_OPTTABLE-OPTIONS = 'TISIZE = 1'.
    APPEND WA_OPTTABLE TO IT_OPTTABLE.
    *CALLING THE GRAPH FUNCTION MODULE
    CALL FUNCTION 'GRAPH_MATRIX_3D'
      EXPORTING
        COL1      = 'Quarter 1'
        COL2      = 'Quarter 2'
        COL3      = 'Quarter 3'
        COL4      = 'Quarter 4'
        DIM1      = 'In Percentage%'
        SET_FOCUS = 'X'
        TITL      = 'Company Performances'
      TABLES
        DATA      = IT_PERFORMANCE
        OPTS      = IT_OPTTABLE
      EXCEPTIONS
        OTHERS    = 1.

  • How to represent date infinity

    Hi all,
    I have a persistent class with fields representing a date interval (startDate and endDate). In cases where endDate is not defined (endless interval), the field could be set to null but this would be inconsistent with sorting since null is smaller than any other date. An alternative could be to define a constant DATE_INFINITY set to December 31 9999 but I'm not sure if this is a good idea.
    Any comments or alternatives ?
    JCG

    How about this:
    public class DateWithForever implements Comparable {
      // "Date With Forever" -- sounds like a cheap romance novel
      private Date date;
      private boolean forever_future = false;
      private boolean forever_past = false;
      public createDateWithForever(Date date) {
        return new DateWithForever(date);
      public createDateWithForever(String forever) {
        if ("FUTURE".equals(forever))
          return new DateWithForever(true);
        if ("PAST".equals(forever))
          return new DateWithForever(false);
        return null;
      private DateWithForever(Date date) {
        this.date = date;
      private DateWithForever(boolean future) {
        if (future)
          this.forever_future = true;
        else
          this.forever_past = true;
      public int compareTo(Object o) {
        // compare the forever boolean flags, if both false
        // fall back to comparing the dates
    }

  • Hierarchical data structure

    I am trying to represent the following data structure in hierarchical format ---- but I am not going to use any swing components, so jtree and such are out, and xml is probably out. I was hoping some form of collection would work but I can't seem to get it!
    Example Scenario
    Football League --- Football Team -- Player Name
    West
    ------------------------------Chiefs
    -------------------------------------------------------------xyz
    -------------------------------------------------------------abc
    -------------------------------------------------------------mno
    ------------------------------Broncos
    ------------------------------------------------------------asq
    ------------------------------------------------------------daff
    This hierarchical structure has a couple of layers, so I don't know how I can feasibly do it. I have tried to look at making hashmaps on top of each other so that as I iterate thru the data, I can check for the existence of a key, and if it exists, get the key and add to it.
    Does anyone know a good way to do this? Code samples would be appreciated!!!
    Thank you!

    Hi Jason,
    I guess you wouldn't want to use Swing components or JTree unless your app has some GUI and even then you would want to look for some other structure than say JTree to represent your data.
    You have got plenty options one is that of using nested HashMaps. You could just as well use nested Lists or Arrays or custom objects that represent your data structure.
    I don't know why you should exclude XML. There is the question anyway how you get your data in your application. Is a database the source or a text file? Why not use XML since your data seems to have a tree structure anyway and XML seems to fit the bill.
    An issue to consider in that case is the amount of data. Large XML files have performance problems associated with them.
    In terms of a nice design I would probably do something like this (assuming the structure of your data is fixed):
    public class Leagues {
        private List leagues = new ArrayList();
        public FootballLeague getLeagueByIndex(int index) {
            return (FootballLeague)leagues.get(index);
        public FootballLeague getLeagueByName(String name) {
            // code that runs through the league list picking out the league with the given name
        public void addLeague(FootballLeague l) {
            leagues.add( l );
    }Next you define a class called FootballLeague:
    public class FootballLeague {
        private List teams = new ArrayList();
        private String leagueName;
        public FootballTeam getTeamByIndex(int index) {
            return (FootballTeam)teams.get( index );
        public FootballTeam getTeamByName(String name) {
            // code that runs through the team list picking out the team with the given name
        public void addTeam(FootballTeam t) {
            teams.add( t );
        public void setTeamName(String newName) {
            this.name = newName;
        public String getTeamName() {
            return this.name;
    }Obviously you will continue defining classes for Players next following that pattern. I usually apply that kind of structure for complex hierarchical data. Nested lists would be just as fine, but dealing with nested lists rather than a simple API for you data structures can be a pain (especially if you have many levels in your hierarchy);
    Hope that helps.
    The Dude

  • How to change a date in one format to the other?

    Hi,
    Say I have a String representing a date in the following format:
    dd/MM/yyyy e.g. 12/03/2002
    How can I convert this String to a String representing a date the following format:
    ddMMyyyy e.g. 12032002
    Without using the String class.
    Thanks

    Let's write some code here:
    String f1="dd/MM/yyyy";
    String f2="ddMMyyyy";
    String d1="12/03/2002";
    String d2=null;
    You want d2 of format f2, given d1 with format f1 =>
    SimpleDateFormat formatter1 = new SimpleDateFormat (f1);
    SimpleDateFormat formatter2 = new SimpleDateFormat (f2);
    ParsePosition pos = new ParsePosition(0);
    java.util.Date dateTemp = formatter1.parse(d1, pos);
    d2 = formatter2.format(dateTemp);
    That should work.
    Diego

Maybe you are looking for

  • DIAdem 9.1; Windows2000; right problem; "Configuration-Drive Write Protected" for USER

    Hallo community ! similar to these threads http://forums.ni.com/ni/board/message?board.id=60&message.id=322&requireLogin=False http://forums.ni.com/ni/board/message?board.id=60&message.id=647&requireLogin=False i run into problems working with DIAdem

  • Satellite T110-11U - WiFi works only in one room

    Wifi on my LP used to work perfectly in each room of the house, but since I've installed Norton Antivirus it only works in my bedroom (where the router is) and nowhere else. However, other laptops work ok in the other rooms. I thought is was because

  • Stat. del. dte. past than the document dte of PO

    Dear experts, I have referred many discussions on this but not a constructive solution. We have a situations where the statistical delivery date in the purchase order is past than the Document data as well as the delivery date of PO- see attached.  ?

  • Render Queue error - .gif animation

    i am tryign to render an animation based on few .jpg images. i add it to the render queue, change only one setting - render to .gif and when it start rendering an error comes up "After Effects error: opening file "Advert 1_1.gif" - file is busy (dele

  • Mail sending Blank messages

    At the moment many of my clients are sending me back messages saying: " the last message you sent me was blank" this happened for a while after leopard came out and often seems to happen after an update. Often the message will appear as an attachment