Nested structure when using FM XXL_SIMPLE_API

I use this logic to fill in the headings before calling the FM xxl_simple_api in one of my programs. Is it possible to have nested structure(for <b>i_tab</b> in my code) and still use same kind of logic to fill in the headings? Not sure if this Fm would display data correctly when there is a component of strucutre type. I tried it, the field was blank with no contents in excel.
  DATA : nlines TYPE i,
         tempfile LIKE gxxlt_f-file,
         descr_ref TYPE REF TO cl_abap_structdescr,
         header LIKE gxxlt_v OCCURS 0 WITH HEADER LINE,
         it_print LIKE gxxlt_p OCCURS 0 WITH HEADER LINE.
*data:               keycol type i.
  FIELD-SYMBOLS:
  <comp_wa> TYPE abap_compdescr,
  tempfile = file_name.
  REFRESH header.
  CLEAR header.
  descr_ref ?= cl_abap_typedescr=>describe_by_data( i_tab ).
  DESCRIBE TABLE descr_ref->components LINES nlines.
  nlines = nlines + 1.
  LOOP AT descr_ref->components ASSIGNING <comp_wa>.
    IF sy-tabix = nlines.
      EXIT.
    ELSE.
      header-col_no = sy-tabix.
      header-col_name = <comp_wa>-name.
      APPEND header.
    ENDIF.
  ENDLOOP.
  CALL FUNCTION 'XXL_SIMPLE_API'
  EXPORTING
    filename = tempfile
N_KEY_COLS = keycol
  TABLES
   col_text = header[]
I appreciate your help. Thanks

Hi,
It's better to use another FM 'SAP_CONVERT_TO_XLS_FORMAT'
  call function 'SAP_CONVERT_TO_XLS_FORMAT'
             exporting
              I_FIELD_SEPERATOR = seper
              I_LINE_HEADER = 'X'
                 I_FILENAME = P_FILE
              tables
                  I_TAB_SAP_DATA = itab
              exceptions
                  CONVERSION_FAILED = 1.
Svetlin

Similar Messages

  • Issue with OM relationship structure when using report RHSTRU00

    In HR, one Person (P) is attached to only one Central Person (CP). So, when we run the report with date period as of Today, we expect a Tree structure in the output with P-CP relationships displayed. However, we see that the report displays one Person attached to many CPs.
    The program fetches the 1 P to 1 CP combination. However, it deletes all Persons who are not Active as of today but does not delete the CP. It then attaches all CPs to the first Active Person it can find.
    This is a serious bug since it shows data which is different from what exists in the system. In our systems as would be in any HR system in the world, One person can be attached to only one CP and the program shows that the Person is attached to many CPs.
    I opened a OSS message but SAP refused to correct this bug.
    Has anybody else ever encountered the same issue and do you have a solution to this?

    I checked the report, and it certainly returns incorrect data, I found exactly what you say regarding active/inactive persons.
    What is SAP's reason for not looking into this? It would be interesting to hear their argumentation for this not being a bug. 
    It may be that SAP expects RHSTRU00 to be called only for active persons? This would require running another report first to get the input for RHSTRU00. This seems like a strange prerequisite for the program, and I do not understand why SAP don't see this as a bug. The error seems rather obvious and reproducable.
    I often find that I have to push to get passed first line of support to have SAP see the problem. It is tiring, but I have found this to be the fact far too often. 
    PS - we never use the program like this, so we do not face the problem ourselves.
    /Kirsten

  • Exploded vs. Archived EAR structure (when using split development)

    Using the split development structure suggested in Weblogic 8.1 with wlpackage
    ant task, I noticed that the exploded ear and the archived ear generation creates
    a "flat" deployment structure. i.e. all the files inside the ear hierarchy are
    bundled without any intermediate respective jars.
    Is there a provision to package the ejb modules in one or more jar files when
    building a qa and/or production ear ? Is this possible to accomplish or do I need
    to write separate ant "targets" in the ant script that would manually jar up the
    necessary ejbs. If so, how would this work in conjunction when I have a "ant ear"
    target ?
    I also noticed that the medrec example app has application specific value/dto
    classes bundled in a separate jar file using a build.xml file. My question, when
    running wlcompile at a higher level how does it know NOT to put the value classes
    separately under APP-INF/classes, i.e. why does the build not build/see these
    common value classes twice.
    Thanks for your help!

    DP wrote:
    Using the split development structure suggested in Weblogic 8.1 with wlpackage
    ant task, I noticed that the exploded ear and the archived ear generation creates
    a "flat" deployment structure. i.e. all the files inside the ear hierarchy are
    bundled without any intermediate respective jars.
    Is there a provision to package the ejb modules in one or more jar files when
    building a qa and/or production ear ? Is this possible to accomplish or do I need
    to write separate ant "targets" in the ant script that would manually jar up the
    necessary ejbs. If so, how would this work in conjunction when I have a "ant ear"
    target ? You would have to do this manually. Typically wlpackage would have to
    modify your application.xml to archive the modules. For instance, your
    application.xml probably has uris like myweb, myejb in it now because
    that's how you named your directories. If we archived those, they'd
    become myweb.war and myejb.jar, and the application.xml would need to be
    modified to reflect the new uris.
    It's all possible for us to do, but we ran out of time during 8.1 to get
    this one in.
    >
    I also noticed that the medrec example app has application specific value/dto
    classes bundled in a separate jar file using a build.xml file. My question, when
    running wlcompile at a higher level how does it know NOT to put the value classes
    separately under APP-INF/classes, i.e. why does the build not build/see these
    common value classes twice. I'm not sure I exactly understand your question, but let me explain how
    wlcompile works and see if that answers your question.
    wlcompile looks at each directory under the srcdir and decides whether
    it's an EJB, a webapp, or a java module. It supports an
    includes/excludes list to let you filter those directories.
    Anything that's not recognized as an EJB or webapp is compiled into
    APP-INF/classes.
    -- Rob
    >
    Thanks for your help!

  • When can I use my WSABUF and overlapped structures when using WSASendTo on an overlapped socket

    When calling WSASendto on a UDP socket that is overlapped it is difficult to get the right understanding from the documentation provided in MSDN.
    The question is, will WSASento copy the content of my WSABUF's so I can use them again? (Even before the complete routine and the event is signalled)
    According to http://windowssdk.msdn.microsoft.com/en-us/library/ms741693.aspx this is the case:
    "The array of WSABUF structures indicated by the lpBuffers parameter is transient. If this operation is completed in an overlapped manner, it is the service provider must capture these WSABUF structures before returning from this call. This enables applications to build stack-based WSABUF arrays."
    But reading a Microsoft book in chapter 6 conserning Winsock and QOS:
    "On the sending side, applications use WSASend or WSASendTO to supply pointers to filled buffers and then agree not to disturb the buffers in any way until the network has consumed the buffer's contents"
    Can I call WSASendTo again before completion of the last WSASenTo is indicated ?
    Do I have to give a new WSABUF every time ? Or can I reuse it ?
    Can I reuse the Overlapped structur as well ? Or do I need to wait for the completion for the last WSASendTo ?
    Background information:
    I am doing an application that is quite time critical. I use one sending UDP socket and a receiving UDP socket. Both of them are asyncron. The receiving socket is working fine. The reason for chosing asyncron (overlapped) for the sending socket is because sometimes a WSAsendto can last 3,5 second if the ip that I wish to send to is unknown to to PC. But I need to send the next UDP packet in around 1msek. In normal conditions it only takes around 50usek to calls WSASendto.
    I hope somebody can help me
    Best regards
    Flemming

     Flemming BT wrote:
    Thanks for the answer. But I will like to dig a little bit in it to be absolutely sure.
    The chapter 6 of the Microsoft book can be found at http://www.thaifast.com/Microsoft_Books/Sample/02783006.pdf
    This chapter is dealing with Winsock 2 and the quote is from page 12 (or 74 according to print) is about overlapped I/O.
    I am considering code like this (note that the overlapped is a menber and initiated once in the constructor, the menber function this is called in can be called before the actual send is finished(that is before the event on the overlapped structure is signalled), can the system handle this ?). Actually if the UDP message is send or not is not interesting for me, because timeouts on the respons on the message are handled somewhere else in my program, the reason for this is that I use UDP and the packets could get lost somewhere in the network anyway:
                    WSABUF wsaBuffer;
                    LPWSABUF lpBuffers;
                    lpBuffers = &wsaBuffer ;
                    wsaBuffer.len = nBufLen;
                    char *pTempBuf = new char[nBufLen];
                    for (int i = 0; i < nBufLen;i++)
                            pTempBuf = lpBuf;
                    wsaBuffer.buf = pTempBuf; 
                    DWORD noOfBytesSend = 0xffffffff;
                    int socketSize = sizeof(sockAddr);
                    nResult = WSASendTo(m_hSocket,lpBuffers,1,&noOfBytesSend,0,(SOCKADDR*)&sockAddr,socketSize,&m_overLappedSend,,NULL);
                    if (nResult != 0)
                            int error = WSAGetLastError(); 
                if (error == WSA_IO_PENDING)
                                    TRACE("Output is pending\n");
                            TRACE("SendTo returned %d error %d\n",nResult,error);
                    delete [] pTempBuf;
                    pTempBuf = NULL;
    I'd put my money on the MSDN documentation over a single book.  The documentation for WSASendTo has been around, scrutinized, and edit for years.  If it says you can use stack memory in a call to WSASendTo that would mean that you're free to do whatever you want with the memory given to WSASentTo as soon as WSASendTo returns.
    I'll see if I can dig up an exact (rather than inferring from the documentation) what's really going on with WSASendTo.

  • Getting Compilation error when used SET or MULTISET operator on nested tabl

    Dear All,
    I am getting Compilation error when used SET or MULTISET operator on nested tables inside a procedure.
    This is working fine in other DB installations of 10g but does not work in another 10g DB.
    it says "wrong number of parameter or datatype used in SET"
    Can any one suggest what went wrong here?
    Thanks in advance.

    Can any one suggest what went wrong here?Only if you would post the query and Oracle versions on both databases.
    Besides, this forum deals with issues in Oracle product installation. So post this query in SQL PL/SQL forum for better response.

  • Compilation error when used SET or MULTISET operator on nested tables

    Dear All,
    I am getting Compilation error when used SET or MULTISET operator on nested tables inside a procedure.
    This is working fine in other DB installations of 10g but does not work in another 10g DB.
    it says "wrong number of parameter or datatype used in SET"
    Can any one suggest what went wrong here?
    Thanks in advance.

    Hi,
    Thanks for ur reply...
    Since MULTISET and SET operators are the new additions in base 10g release for manipulation of nested tables data, I am surprised that same is working in similar 5 DBs installations with 10.2.0.1.0 version, but does not work in the sixth.
    SET and MULTISET operators are used inside the PL/SQL procedure which is getting compiled in the above mentioned 5 DBs but not in sixth DB.
    it gives
    On line: 3112
    PLS-00306: wrong number or types of arguments in call to 'SET'
    Hope this clarifies the issue...

  • File sender adapter: Content conversion for very deep nested structure

    Hi all
    I have a file which looks like this
    HDOCKET    9800000660980000061911062009AA123456bbWM100012349800000619
    DDOCKET_TEST001 4012YAG1 
    WZOA00000000010000000001
    WZOA00000000020000000002
    WZOB00000000030000000003
    IAAXX000001
    IAAXX000002
    C0000000000000000000100000000000000000001000000000000000000020000000000000000000300000000000000000004
    T2
    and my structure is
    Header  - 1
    Detail     - 0....Unbounded
            Bag     - 0.....Unbounded   (sub node of detail)
            Track  - 0.....Unbounded    (sub node of detail)
            Customer - 0.....Unbounded    (sub node of detail)
    Trailer    - 1
    and in the file sender adapter i mentioned the following content conversion setting
    HEADER,1,DETAIL,*,Bag,*,Track,*,Customer,*,TRAILER,*
    But when i go and see in the monitoring i received the following conversion
    <?xml version="1.0" encoding="utf-8" ?>
    <ns:MT_REQ xmlns:ns="http://royalmail.com/dd_c">
    <HEADER>
      <ID>H</ID>
      <INT>DD</INT>
      <CAR>9899999660</CAR>
      <CUS>9899999619</CUS>
      <POST>11062009</POST>
      <NUMBER>AA123456bbWM10001234</NUMBER>
      <ACC>9899999619</ACC>
      </HEADER>
    <DETAIL>
      <ID>D</ID>
      <Bag>DOCKET_TEST001</Bag>
      <S>4012</S>
      <Code>YAG</Code>
      <mat>1</mat>
      <count/>
      <Mixed />
      </DETAIL>
    <Bag>
      <ID>W</ID>
      <Zone>ZOA</Zone>
      <Item>0000000001</Item>
      <Number>0000000001</Number>
      </Bag>
    <Bag>
      <ID>W</ID>
      <Zone>ZOA</Zone>
      <Item>0000000001</Item>
      <Number>0000000001</Number>
      </Bag>
    <Bag>
      <ID>W</ID>
      <Zone>ZOA</Zone>
      <Item>0000000001</Item>
      <Number>0000000001</Number>
      </Bag>
      </Bag>
    <Track>
      <ID>I</ID>
      <Item>AAXX000001</Item>
      </Track>
    <Track>
      <ID>I</ID>
      <Item>AAXX000001</Item>
      </Tracked>
    <Customer>
      <ID>C</ID>
      <OrigCustomer>00000000000000000001</OrigCustomer>
      <Field1>00000000000000000001</Field1>
      <Field2>00000000000000000002</Field2>
      <Field3>00000000000000000003</Field3>
      <Field4>00000000000000000004</Field4>
      </Customer>
    <TRAILER>
      <ID>T</ID>
      <Count>2</Count>
      </TRAILER>
      </ns:MT_REQ>
    whereas i wanted it like:
    <?xml version="1.0" encoding="utf-8" ?>
    <ns:MT_REQ xmlns:ns="http://royalmail.com/dd_c">
    <HEADER>
      <ID>H</ID>
      <INT>DD</INT>
      <CAR>9899999660</CAR>
      <CUS>9899999619</CUS>
      <POST>11062009</POST>
      <NUMBER>AA123456bbWM10001234</NUMBER>
      <ACC>9899999619</ACC>
      </HEADER>
    <DETAIL>
      <ID>D</ID>
      <Bag>DD_TEST001</Bag>
      <S>4012</S>
      <Code>egg</Code>
      <mat>1</mat>
      <count/>
      <Mixed />
    <Bag>
      <ID>W</ID>
      <Zone>zzz</Zone>
      <Item>0000000001</Item>
      <Number>0000000001</Number>
      </Bag>
    <Bag>
      <ID>W</ID>
      <Zone>zzz</Zone>
      <Item>0000000001</Item>
      <Number>0000000001</Number>
      </Bag>
    <Bag>
      <ID>W</ID>
      <Zone>zzz</Zone>
      <Item>0000000001</Item>
      <Number>0000000001</Number>
      </Bag>
      </Bag>
    <Track>
      <ID>I</ID>
      <Item>AAXX000001</Item>
      </Track>
    <Track>
      <ID>I</ID>
      <Item>AAXX000001</Item>
      </Tracked>
    <Customer>
      <ID>C</ID>
      <OrigCustomer>00000000000000000001</OrigCustomer>
      <Field1>00000000000000000001</Field1>
      <Field2>00000000000000000002</Field2>
      <Field3>00000000000000000003</Field3>
      <Field4>00000000000000000004</Field4>
      </Customer>
    </DETAIL>
    <DETAIL>
      <ID>D</ID>
      <Bag>DD_TEST002</Bag>
      <S>4012</S>
      <Code>egg</Code>
      <mat>1</mat>
      <count/>
      <Mixed />
    <Bag>
      <ID>W</ID>
      <Zone>zzzzzz</Zone>
      <Item>0000000001</Item>
      <Number>0000000001</Number>
      </Bag>
    <Bag>
      <ID>W</ID>
      <Zone>ZOA</Zone>
      <Item>0000000001</Item>
      <Number>0000000001</Number>
      </Bag>
    <Bag>
      <ID>W</ID>
      <Zone>zzz</Zone>
      <Item>0000000001</Item>
      <Number>0000000001</Number>
      </Bag>
      </Bag>
    <Track>
      <ID>I</ID>
      <Item>AAXX000001</Item>
      </Track>
    <Track>
      <ID>I</ID>
      <Item>AAXX000001</Item>
      </Tracked>
    <Customer>
      <ID>C</ID>
      <OrigCustomer>00000000000000000001</OrigCustomer>
      <Field1>00000000000000000001</Field1>
      <Field2>00000000000000000002</Field2>
      <Field3>00000000000000000003</Field3>
      <Field4>00000000000000000004</Field4>
      </Customer>
    </DETAIL>
    <TRAILER>
      <ID>T</ID>
      <Count>2</Count>
      </TRAILER>
      </ns:MT_REQ>
    i.e. i need all Bag ,Track and Customer inside detail tag.
    could anyone help me in this..i've already searched SDN and got some link as useful but none of them were totally related.
    Regards
    Naina

    Naina
    Pls. check my forum link, i had the single level hierarchy XML file which I converted into nested structure & then into flat file.
    File Conversion in Rec File Adapter with subnodes
    This can give you an idea how to go ahead. Let me know in case you need any more info about this.

  • Nested Structure

    I would like to know how to use nested structure in a ABAP program.
    Thanks in Advance!

    A <b>nested structure</b> is a structure that contains one or more other structures as components.
    Flat structures contain only elementary data types with a fixed length
    (no internal tables, reference types, or strings).
    The term deep structure can apply regardless of whether the structure is nested or not.
    Nested structures are flat so long as none of the above types is contained in any nesting level.
    Any structure that contains at least one internal table, reference type, or string as a component
    (regardless of nesting) is a deep structure.
    Accordingly, internal tables, references, and strings are also known as deep data types.
    The technical difference between deep structures and all others is as follows:
    When you create a deep structure, the system creates a pointer in memory that points to the
    real field contents or other administrative information.
    When you create a flat data type, the actual field contents are stored with the type in memory.
    Since the field contents are not stored with the field descriptions in the case of deep structures,
    assignments, offset and length specifications and other operations are handled differently from flat structures.
    Kindly check the following link for more information on Nested structures:
    http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb2fcc358411d1829f0000e829fbfe/frameset.htm
    <b>Examples:</b>
    DATA: BEGIN OF itab.
            include structure vbak.  
    DATA: END OF itab.
    DATA: BEGIN OF itab OCCURS 0,
            itab1 LIKE mara,
            itab2 LIKE vbak,
          END OF itab.
    Kindly reward points if it helps!
    best regards,
    Thangesh

  • Help!! - File to Idoc Mapping with Nested structure

    Scenario:
    I have an inbound file that has three nested records.
    eg. A00, B00 and C00. C00 is nested structure of B00 and B00 nested structure of A00. All these structure can repeat N number of times in a file.
    How do I map this to IDoc structure that have one segment each for the three structures in the file and nested in the same way.
    Question: How is the parent child relationship established?
         Suppose I have a file
         A00 1234 Sam 29
              B00 london LE3 XYZ
              B00 US 123456
                    C00 2 XYZ
               A00 5678 Joe 22
            B00 US 23456
         If I make a nested structure and then say in the file conversion properties that A00 go to segA and then B00 go to segB, but then when I come back to A00, how do I move the data to the A00?
    Thanks in Advance
    Rgds

    From what you have layed out, you can create a data type with 3 children, all 1..unbounded cardinality, each containing their own elements.  You say they are nested, but the example you gave isn't nested... it's just A's followed by B's followed by C's.  If that is the case, you can then use a data type w/ 3 subelements (A, B & C) and each of those is actually a container with the real attributes of that line in your file.  (I can email you a schema quickly if you need it)
    If you are saying they can occur like this:
    A00 1234 Sam 29
    B00 london LE3 XYZ
    B00 US 123456
    C00 2 XYZ
    B00 US 23456
    C00 2 XYZ
    THEN they are nested - ie B's & C's repeat under any A.  Then you must create segment B as a subelement of segment A instead of on the same level, then bury C under B. (I find this easiest w/ a text tool rather than inside XI, as I can cut/paste segments where I want them to belong...)
    Good luck with setting up content conversion on that file adapter... We have done this a few times, and it can be quite interesting.
    If you have trouble with the schema, you can post your email & I can give you a quick example.
    Message was edited by: Amanda Derringer

  • How To fetch the Value of nested structure returned by RFC in c# application.

    Hello ,
    i am new to C#,i have rfc that return data from SAP system as Nested structure but when i fetching that data using
    IrfcTable table = rfc.getTable("exporting_parameter");       // et_customer
    it return's only first inner structure only .
    for example my exporting internal table for rfc is
    "et_customer" that contain sub structure as follow
              gen_data
               bank data
               tax data
    it return only value inside gen_data only.
    how to get entire data

    Hi,
    I am using Java JCO but I can see in the java doc that JCoTable have a Method
    getTable
    Check and see if you have it in .net
    Regards.

  • BAdI - AC_DOCUMENT / data passing for nested structures

    Hi all.
    I need your help for this scenario:  
    I used this to pass value of MM field to FI field from transaction MIGO.
    Our company placed field in EKKN-WEMPF to BSEG-ZUONR.
    For this one option was:  BAdI AC_DOCUMENT
    Questions: 
    1.  Nested structures - passing of data:
    First problem encountered was with the reading of data from nested structures and passing them to nested structures as well.  How to do this?  I have used a certain declaration but any input will be much appreciated. 
    2.  When I activated my BAdI, it says error on FI Interface,
    specifically on AWREF and AWORG fields. 
    It is currently blank.  Can I use the values in IM_DOCUMENT to pass to EX_DOCUMENT? 
    (What is a good way to do it since simple syntax does not allow for passing of data bec. structures are incompatible, and added complexity, it has nested structures.)
    If you have sample code for this, it would truly be helpful. 
    Thanks and God bless!

    Hi,
    Check that for which condition the message is triggering.
    Try to check the condition.
    Regards
    Sandipan

  • Sending nested structure in PostLVUserEvent

    Hi All,
    I getting an exception when calling a c++ dll which has PostLVUserEvent to trigger the LabVIEW event structure.
    This dll has typedef stuct as described below (nested structure type), the same data structure is sent using PostLVUserEvent to the LabVIEW event.
    typedef struct abc
    utf8_t *name;
    uint32_t numChildren;
    struct abc *children;
    abc;
     Please help me to create a nested structure cluster in LabVIEW. I am creating a cluster as shown below:
    Sorry if this post is repeated.
    Thank in advance

    This is not the datatype of a LabVIEW structure as you depict it!
    The data structure would be something like this in C syntax:
    typedef struct abc
    LStrHandle name;
    uint32_t numChildren;
    struct children
       LStrHandle name;
       uint32_t numChildren;
    } children;
    } abc;
    So the name is a LabVIEW string handle and has to be allocated, resized and deallocated using LabVIEW memory manager functions and the struct is not an array pointer but simply embedded. If it was an array in the LabVIEW cluster it would be really a LabVIEW array handle too.
    Simplified it would really be equal in memory layout to this:
    typedef struct abc
    LStrHandle name;
    uint32_t numChildren1;
    LStrHandle name;
    uint32_t numChildren2;
    } abc;
    Generally what you seem to want to do is a pretty bad idea. Managing LabVIEW arrays and strings on C level is quite a hassle, combining it with a recursively defined data structure is simply going to be a major pita. In fact you can't define fully recursive data structures in LabVIEW. The data type graph would end up being an infinite type description and that will blow up every memory immediately.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Exracting Nested Structure as raw String

    Hi all, I think this is a unique problem, and was wondering if anyone else has encountered this, or has clean suggestion.
    lets say the xml is as follows:
    <foo>
       <bar>
       </bar>
       <stuff>
          <sometag>
           </sometag>
       </stuff>
    </foo>I'm using a DOM parser, and when ever I hit the tag bar, the code will nest down parse/extract all the nested structures there in (pretty standard stuff).
    But when I hit the tag called stuff (I do not want to 'parse' it per say), I just want to retrieve the entire payload as one string (including all nested nodes), (i.e. i don't care about the underlaying node details)..I just need to shove the entire contents of "<sturff>" into a database..as 1 string.
    any suggestions on how to do this with a DOM parser cleanly, or will I be forced to walk the structure to obtain it.
    Thanx in advance

    grab the stuff node and serialize it to a string.

  • XML Nested Structure

    Hello,
    I am building menu menu from the xml file using Spry Widget.
    My XML structure is
    main id="002">
    <title>Payment Reports</title>
    <link>#</link>
    <submenu id="21">
    <linkinner>/lckbx/main/payment_default</linkinner>
    <titleinner>Check Payment Report</titleinner>
    </submenu>
    <submenu id="22">
    <linkinner>/lckbx/main/postedpayment_default</linkinner>
    <titleinner>Posted Payment Report</titleinner>
    </submenu>
    </main>
    My nested xml calls are
    var dsItems = new
    Spry.Data.XMLDataSet("/menu/lockbox_menu.xml", "/buildmenu/main");
    // Setup a couple of nested data sets:
    var subItems = new Spry.Data.NestedXMLDataSet(dsItems,
    "submenu/titleinner", "submenu/linkinner");
    My problem is I am not be able to access the value of
    "submenu/linkinner" from the xml file.
    <li spry:repeat="subItems"
    title="{subItems::titleinner}"><a
    href="{subItems::linkinner}">{subItems::titleinner}</a></li>
    I can not either create and use the thrid dataset as nested
    data regions are not allowed if I create a third data set then they
    over laps.
    I can only fetch the value from the first element of the
    nested structure. Please help me out how to fetch value from the
    second sub value from nested tag.
    Thank you,
    Kamal.

    Kamal,
    The problem lies in your constructor for the
    nestedXMLDataSet. That constructor should have only two arguments
    (it can have optional arguements as well, but it's not necessary to
    go into those to solve your issue). The two arguments for the
    nestedXMLDataSet constructor should be, the previously defined
    DataSet and the xPath for the nested data.
    You could solve this a couple ways. This would be a way to do
    it without changing your XML file (or much else) -- change your
    nestedXMLDataSet constructor to provide only one xPath argument at
    the "submenu" level of your XML doc:
    <script type="text/javascript">
    <!--//
    var dsItems = new
    Spry.Data.XMLDataSet("/menu/lockbox_menu.xml", "/buildmenu/main");
    var subItems = new Spry.Data.NestedXMLDataSet(dsItems,
    "submenu");
    //-->
    </script>
    For your nestedXMLDataSet, you need only go one level further
    (beyond the level indicated in the dsItems dataSet) to get to the
    data you want. The <linkinner> and <titleinner> tags
    are both child nodes nested at the same level below the
    <submenu> node of your XML doc, so you can access them then
    (when your nested set is simply "submenu") by the tag names, as in:
    {subItems::linkinner}
    Accessing them in your page body would look like this:
    <div spry:region="dsItems subItems">
    <ul>
    <li spry:repeat="subItems"
    title="{subItems::titleinner}"><a
    href="{subItems::linkinner}">{subItems::titleinner}</a></li>
    </ul>
    </div>
    For the spry:region, reference the primary dataSet (dsItems)
    as well as the nested set (subItems), and then the rest of it for
    the list item is the same as what you already listed in your post.
    -dustin-

  • Map flat to nested structure by creating a collection

    Hi All,
    I've got a problem by mapping a flat to a nested structure.
    The source structure looks like that:
    <b>ISIN</b> = DE00000123450
    <b>WKN</b>  = 012345
    The target structure is build as a collection of identifers:
    <i><b>IDENTIFIER (1..unbounded)</b></i>
    <b>ID</b>    = 01
    <b>TYPE</b>  = Isin
    <b>VALUE</b> = DE00000123450
    <b>ID</b>    = 02
    <b>TYPE</b>  = Wkn
    <b>VALUE</b> = 012345
    Now, it's impossible for me to append a new record to this identifier collection by using the plain mapping functionality without java functions.
    Did anybody face and solve this problem?

    Hi Bhavesh, Marcus,
    I'd like to refine the above problem somewhat ..
    The main problem here is not to map an element name of a source document to an element value of a destination document, but to construct a collection from a list of source element values (Isin->Value, Wkn->Value):
    ("." are just for prettyprinting)
    Source_1:
    <PRICES>
    ....<Price>
    ........<Isin>DE0123456</Isin>
    ........<Wkn>123456</Wkn>
    ........<Currency>USD</Currency>
    ........<Amount>123.45</Amount>
    ....</Price>
    ....<Price>
    ........<Isin>DE0123457</Isin>
    ........<Wkn>123457</Wkn>
    ........<Currency>EUR</Currency>
    ........<Amount>987.65</Amount>
    ....</Price>
    </PRICES>
    Destination_1:
    <PRICES>
    ....<Price>
    ........<IDENTIFIERS>
    ............<Identifier>
    ................<Key>ISIN</Key>
    ................<Value>DE0123456</Value>
    ............</Identifier>
    ............<Identifier>
    ................<Key>WKN</Key>
    ................<Value>123456</Value>
    ............</Identifier>
    ........</IDENTIFIERS>
    ........<Currency>USD</Currency>
    ........<Amount>123.45</Amount>
    ....</Price>
    ....<Price>
    ........<IDENTIFIERS>
    ............<Identifier>
    ................<Key>ISIN</Key>
    ................<Value>DE0123457</Value>
    ............</Identifier>
    ............<Identifier>
    ................<Key>WKN</Key>
    ................<Value>123457</Value>
    ............</Identifier>
    ........</IDENTIFIERS>
    ........<Currency>EUR</Currency>
    ........<Amount>987.65</Amount>
    ....</Price>
    </PRICES>
    So the main question for me seems to be: How to do the transpose of Isin and Wkn to the Value elements:
    Source_2:
    <Price>
    ....<Isin>DE0123456</Isin>
    ....<Wkn>123456</Wkn>
    ....<Currency>USD</Currency>
    ....<Amount>123.45</Amount>
    </Price>
    Destination_2:
    <Price>
    ....<IDENTIFIERS>
    ........<Value>DE0123457</Value>
    ........<Value>123457</Value>
    ....</IDENTIFIERS>
    ....<Currency>EUR</Currency>
    ....<Amount>987.65</Amount>
    </Price>
    Since the length of the source list has very few items (comparable to columns in a database table), they could easily be set as constant Key's in the destination. The problem is: how to map element values of different source elements  (Isin, Wkn) into a collection of destination elements (comparable to rows in a database table). The mapping from Destination_2 to Destination_1 could be done by a SplitByValue.
    I couldn't find a mapping in the GUI which allows to do the latter mapping. More precisely to sort-of reference the destination elements by an index or to simply add more elements to the collection without overwriting the first one.
    A Java Mapping doesn't seem to be appropriate, since it seems, that only 1 result value can be returned (or is it possible to modify the destination DOM/XML with a Java Mapping ? Or to return a list of values ?).
    An XSLT Mapping seems to be possible, but unfortunately it imposes bigger efforts when additionally conversions or value-mappings are needed.
    In the case that XSLT mapping is the only solution to the problem: is it possible, to do a XSLT mapping pipelined with a GUI mapping, such that the structural mapping can be done by XSLT and the conversions / value-mappings can be done via the GUI ?
    Best regards,
    Marc

Maybe you are looking for

  • How to acquire data and send via tcp/ip

    well guys i'm having a problem here i will have a client and a server.... the client will stay at my home doing some kind of monitoring and i want that my client send this informations to me here in my work the informations are 6 variables 3 voltages

  • Problem in copying the territory id to the follow-up document

    Hi, I have sales order with all the partners determined with all the territories attached to them. Now I am trying to create a follow-up document from it. I am facing the following two issues: 1. It is copying the partners to the follow-up document w

  • PDF files will not open in Mozilla, they do in Safari.

    I am unable to open PDF files when working in Firefox. A message comes up indicating failure. I am able to open a PDF file is I am working in Safari. I have an Apple Macbook.

  • Error while extending material for new plant

    Dear All, We have created new plant  through  copying old plant. But when I try to extend the material to the newly created plat system giving error message Tables TCURM and T001w inconsistent : notify your system administrator Msg no M3820 Diagnosis

  • Problem in Database Replication in Oracle 9i

    i am trying to do database replication but am facing problems in 9i.i have two machines on network and both have a database created.i also have a common schema in both the database (testuser is the name of schema). i have created database links betwe