Display Attributes inside nested structure in XML

Hi Experts,
I want to generate a xml file as shown below.
<Profile AppName="Products" SubnodeName="Products">
<Tag concept="SG_CPT1025797"/>
<Tag concept="SG_CPT1026847"/>
<Tag concept="SG_CPT1027620"/>
<Tag concept="SG_CPT1027622"/>
</Profile>
How can i display the xml file like above.
If i use attributes in my Simple Transformation, the xml file generation gives a error stating, duplicate attributes as the output is something like this.
<Profile AppName="Products" SubnodeName="Products">
Tag concept="SG_CPT1025797"
Tag concept="SG_CPT1026847"
Tag concept="SG_CPT1027620"
Tag concept="SG_CPT1027622"
</Profile>
Whereas on using Tags in my Simple Transformation, i get the output as shown below.
<Profile AppName="Products" SubnodeName="Products">
<Tag concept>SG_CPT1025797SG_CPT1026847SG_CPT1027620SG_CPT1027622</Tag>
</Profile> .
How do i resolve this issue.???
Here is my ST program. This gives the output as shown in the second xml file.
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
  <tt:root name="PARA"/>
  <tt:variable name="Tag concept"/>
  <tt:template>
    <DATA>
      <USERS>
        <tt:loop name="tp_xml" ref=".PARA">
           <USER>
            <Username>
              <tt:value ref="$tp_xml.username"/>
            </Username>
            <Password>
              <tt:value ref="$tp_xml.password"/>
            </Password>
            <Firstname>
              <tt:value ref="$tp_xml.contact_person_name_first"/>
            </Firstname>
            <Middlename>
              <tt:value ref="$tp_xml.contact_person_name_middle"/>
            </Middlename>
            <Lastname>
              <tt:value ref="$tp_xml.contact_person_name_last"/>
            </Lastname>
            <Email>
              <tt:value ref="$tp_xml.contact_person_email"/>
            </Email>
            <Country>
              <tt:value ref="$tp_xml.country"/>
            </Country>
            <City>
              <tt:value ref="$tp_xml.customer_number"/>
            </City>
            <Address>
              <tt:value ref="$tp_xml.customer_name"/>
            </Address>
            <PostalCode>
              <tt:value ref="$tp_xml.contact_person_postal_code"/>
            </PostalCode>
            <IMAddress>
            </IMAddress>
            <Title>
              <tt:value ref="$tp_xml.contact_person_title"/>
            </Title>
            <Status>
            </Status>
            <State>
              <tt:value ref="$tp_xml.state"/>
            </State>
            <Editable>
            </Editable>
            <NNTPAlias>
            </NNTPAlias>
            <LastModifiedDate>
              <tt:value ref="$tp_xml.last_modified_date"/>
            </LastModifiedDate>
            <CreatedDate>
              <tt:value ref="$tp_xml.created_date"/>
            </CreatedDate>
            <UserGroups>
              <string>KSS</string>
            </UserGroups>
            <Profiles>
              <Profile AppName="Products" SubnodeName="Products">
                <tt:loop name="knova_id" ref="$tp_xml.knova_product_id">
                  <tt:attribute name="Tag concept">
                    <tt:value/>
                  </tt:attribute>
                </tt:loop>
              </Profile>
            </Profiles>
          </USER>
        </tt:loop>
      </USERS>
    </DATA>
  </tt:template>
</tt:transform>
Please help.
Thanks and Regards
Gaurav raghav

Hi Naimesh,
That solved half pof my problem but it shows the tag <Rows> also which i dont want.
The XML now looks like
<Row Tagconcept="12345">
<Row Tagconcept="56789">
I want to show it like
<Tag concept="12345">
<Tag concept="56789">
Any idea how to resolve this????
Thanks for the help.
Thanks and Regards
Gaurav raghav

Similar Messages

  • Attribute "action" missing or wrong XML structure

    Does anyone know what's the problem of below XML format ?   I want to triggle a stored procedure in AS/400 from SAPXI after receiving records.  But the message "No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure)" is found
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_t1 xmlns:ns0="http://cxx.xxx.hk/zxxxpxx/jdbc">
       <storedProcedurename>
          <action>EXECUTE</action>
          <table>LIBRARY.PROCNAME</table>
          <TRNX_TYPE IsInput="true" TYPE="CHAR">content 1</TRNX_TYPE>
          <TRNX_NO IsInput="true" TYPE="CHAR">content 2</TRNX_NO>
       </storedProcedurename>
    </ns0:MT_t1>

    Dear all,
    Thanks for your help and now I can submit a stored procedure via SAP XI by using below XML format.  I try to define two output parameters at the end of this XML. How to get the return value ? Should I define a response message type ? and what is the XML format ?
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_SYN_t1 xmlns:ns0="http://xxx.xxu.hk/zxxxpgs/jdbc">
       <update>
          <storedProcedurename action="EXECUTE">
             <table>LIBRARY.PANSYTEST</table>
             <TRNX_TYPE IsInput="TRUE" TYPE="CHAR">4</TRNX_TYPE>
             <TRNX_NO IsInput="TRUE" TYPE="CHAR">2</TRNX_NO>
             <ACTIN IsInput="TRUE" TYPE="CHAR">23</ACTIN>
             <RCRT_DATM IsInput="TRUE" TYPE="CHAR">3</RCRT_DATM>
             <RCRT_USER IsInput="TRUE" TYPE="CHAR">8</RCRT_USER>
             <STUD_ID IsInput="TRUE" TYPE="CHAR">8</STUD_ID>
             <AWD_SEQ IsInput="TRUE" TYPE="CHAR">6899</AWD_SEQ>
             <AW_PSDATE IsInput="TRUE" TYPE="CHAR">89</AW_PSDATE>
             <AW_PEDATE IsInput="TRUE" TYPE="CHAR">99</AW_PEDATE>
             <OUT_TRNX_TYPE IsOutput="TRUE" TYPE="CHAR">4</OUT_TRNX_TYPE>
             <OUT_TRNX_NO IsOutput="TRUE" TYPE="CHAR">2</OUT_TRNX_NO>
          </storedProcedurename>
       </update>
    </ns0:MT_SYN_t1>

  • Message Mapping Nested Structure to key node in JDBC XML SQL Structure

    Hello everybody,
    I'm facing the next problem, I have the following nested structure
    <ns0:MT_Irdoc_ArchivoNested xmlns:ns0="http://ref.pemex.com/PI/FI/ArchivoIrdoc">
       <Header id_consecutivo="">
          <Transaction/>
          <Header2/>
          <Header3/>
          <Header4/>
          <Header5/>
          <Detail>
             <Transaction/>
             <Detail2/>
             <Detail3/>
             <Detail4/>
             <Detail5/>
          </Detail>
       </Header>
       <NombreArchivo/>
    </ns0:MT_Irdoc_ArchivoNested>
    as you can see, Detail is a nested Node from Header Node, and Detail is with occurrence 0...unbounded, I need to generate a SELECT XML SQL Structure as follows
       <StatementName>
              <dbTableName action=u201DSELECTu201D>
                  <table>realDbTableName</table>
                  <access>
                     <col1/>
                     <col2/>
                     <col3/>
                  </access>
                  <key1>
                     <col4>val4</col4>
                     <col5>val5</col5>
                     <col6>val6</col6>
                  </key1>
              </dbTableName> 
       </StatementName>
    now my problem is that col4 and col6 are values mapped from Header fields values, and col5 mus be mapped from Detail2 field of Detail Nested Structure, and Detail is 0...unbounded so it can contain any number of values and must included in the key structure, I tried by mapping the Detail Node to the key1 node, so it will generate n numbers of key1 nodes to include in the query, and the Detail number of nodes are not constant so I can't generate key2, key3, keyn...., so what I need is to create n numbers of instances of key1 node, but the problem is that when the mapping try to generate the second instance of key1 node it gives an error in the fields that comes from Header structure, maybe I'm trying to solve my problem wrong, could anyone give some advices or direction?, thanks in advance.
    Regards,
    Julio Cesar

    Julio,
    After placing the below logic in the mapping editor
    Details2 > SplitByValue> col5
    Right click on the Details2 node and choose Context. By Default you will see Details, because Details2 is the child of Details node. I want you to choose the Parent of Details node, I believe that would be HeaderID, am I right?
    If you don't want to do that then,
    Details2 ---> Remove Context > SplitByvalue> col5 will do the trick!
    raj.

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

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

  • 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

  • Why is there increased overhead(performance) in NAV than DISPLAY attribute?

    Hi,
    I understand that navigational attibutes lead to increased overhead because of the additional joins: The join between Fact table and dimension table ( I guess on DIM ID) and then the additional join between the Dimension and the Master Data tables (I guess on the SID).
    1.
    What happens in the case where the attribute is NOT a Nav but DISPLAY? Can you modify the above paragraph for me if it were a DISPLAY attribute? Isn't the display attribute also in the Master Data table and won't there also be an additional join?
    2.
    So when a query runs, which of the joins takes place first? I am trying to get the order whether it is from inside to the outside or outside to the inside? When you execute a query does the join between the master table and dimension table take place first then the join between the dimension and fact table next? Or the reverse?
    Explanation with examples will be very help.
    Thanks
    Edited by: Amanda Baah on May 10, 2011 10:42 AM

    hi,
    I understand that navigational attibutes lead to increased overhead because of the additional joins: The join between Fact table and dimension table ( I guess on DIM ID) and then the additional join between the Dimension and the Master Data tables (I guess on the SID).
    The above understanding is correct
    1.
    What happens in the case where the attribute is NOT a Nav but DISPLAY? Can you modify the above paragraph for me if it were a DISPLAY attribute? Isn't the display attribute also in the Master Data table and won't there also be an additional join?
    In both the cases the joins formed will be as per the above statement, however in case of navigational attribute the query fetching the data stores the data independent of master data such that you are able to do navigation/drill down independently on the values.
    2.
    So when a query runs, which of the joins takes place first? I am trying to get the order whether it is from inside to the outside or outside to the inside? When you execute a query does the join between the master table and dimension table take place first then the join between the dimension and fact table next? Or the reverse?
    the schema structure is fact table at center then the dimension tables and then the SID tables. when query is executed it first fetches data from Fact table then retrieves entries corresponding to those in DIM tables and after that SID tables.
    regards,
    Arvind.

  • 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

  • Display attributes from "global" and other entities in a single screen

    As far as I know, in OPM attributes of only one type of entity can be added to any given screen.
    As per of functional requirements of my current project Ihave to display attributes from more than one type of entity in some of the screens.
    I found a workaround for entities which has only one instance (singleton entity in version 10.1), but couldn’t figure out how to display attributes of entities which has multiple instances.
    For example:
    We have an entity called <b>“the child”</b> which has many attributes. There can be more than one child instances defined in a given assessment session.
    This particular screen should have attributes which belong to the <b>"global"</b> and <b>"the child"</b> instances.
    (The names of all the children should be displayed on the screen as <b>check boxes</b> so the user can select the children who are affected by the global attributes displayed on the screen.)
    Is this achievble in OPM 10.1?
    SP1D3R MAN

    Displaying Global attributes and nested entity level attributes on the same question screen cannot be done in OPM 10.1 with out-of-the-box functionality. It would have to be a custom screen. (FYI, I'm not a programmer so I can't advise on how to build such a custom screen.)
    Before building customisations, you should also consider whether you really need to use an old version of the product. OPA 10.1 was released early last year; the current version is 10.3.

  • Nested Structure handling in XML2Plain module of receiver SFTP aadaptor

    Dear Experts,
    Greeting for the day...
    I am working on Receiver SFTP Adaptor scenario where I have to generate CSV file at receiver end. I am using XML2Plain module for the same. But I have a nested structure at receiver end. Receiver structure is given below.
    General Header
       Packet1
          Node1
               Field1, Field2...
          Node2
               Field1, Field2..
          Node3
               Field1, Field2..
          Node4
               Field1, Field2..
       Packet2
          Node1
               Field1, Field2...
          Node2
               Field1,Field2...
          Node3
               Field1, Field2...
          Node4
               Field1, Field2..
    File structure is as given below
    General Header
    Node1-field1,Field2..
    Node2-Field1,Field2..
    Node3-field1,Field2..
    Node4-Field1,Field2..
    Node1-field1,Field2..
    Node2-Field1,Field2..
    Node3-field1,Field2..
    Node4-Field1,Field2..
    I tried regular XML2Plain configuration but it is giving error "Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'Node1'".
    Kindly suggest..
    Thanks in advance.
    Vinit.

    hi Vinit,
    You can add another message mapping next to the original one such that Node1 can be treated as a field in new target and concat fields of Node1 with comma.
    this way u can bring down the levels.
    and finally the output mapping will look something like this
    [General Header]
    [Node1-field1,Field2..] [Node2-Field1,Field2..] [Node3-field1,Field2..] [Node4-Field1,Field2.]
    [Node1-field1,Field2..] [Node2-Field1,Field2..] [Node3-field1,Field2..] [Node4-Field1,Field2.]
    [Node1-field1,Field2..] [Node2-Field1,Field2..] [Node3-field1,Field2..] [Node4-Field1,Field2.]
    [Node1-field1,Field2..] [Node2-Field1,Field2..] [Node3-field1,Field2..] [Node4-Field1,Field2.]
    then in the channel u can give
    field separator  for the node fields as 'nl' which will bring your output as below.
    General Header
    Node1-field1,Field2..
    Node2-Field1,Field2..
    Node3-field1,Field2..
    Node4-Field1,Field2..
    Node1-field1,Field2..
    Node2-Field1,Field2..
    Node3-field1,Field2..
    Node4-Field1,Field2..
    hope this helps
    thanks and regards,
    Praveen T

  • Displaying more than one display attribute in a tree component problem

    Hi,
    I have a parent table and child table, I want to display a parent table's display attribute and below that i want to display child tables two display attributes (while defining the rule for a tree compoment).
    What i'm getting is :
    I can able to display more than one "display attributes" for my parent table, but when i'm trying to implement that for my child table under my parent table. I am only geting the blank folder structure without names.
    For example:
    Parent table: Deparetment(id, name)
    child table: Employee(id, firstName, lastName)
    What i want is:
    In a Tree:-
    (Department name): software below that i want display both (firstName and LastName) stephen Fleming
    for that employee.

    Hi,
    do you use ADF ? If yes, have a look at "master table with inline detail" option when dragging the master View
    Frank

  • Fetch attribute value of structure node

    Dear All,
    Please let me know is it possible to get the attribute name and attribute value of a structure node of a record model inside the program?
    Can I give any name as the attribute name?
    Regards,
    Biju K George

    Hi,
    could you provide an example ?
    I think you speak about using field-symbol.
    --> get the attributes of a structure or a table --> same has field catalog for ALV
    --> get the value of the attributes :
    concatenante structure_mane attribute_name into w_field separated by '-'.
    assign (w_field) to <field>
    check <field> is assigned.
    and <field> is the value of the attribute attribute_name of the structure structure_name.
    regards
    Fred

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

  • How to see the IDOC structure in XML format

    Hi, I am ver new to MII. I configured connection between SAPand SAP MII and IDOC is triggering in SAP MII. I can see the idoc triggered in Message monitor.
    Now my query is how to see the IDOC structure in XML format? I written a transaction where I am assigning transaction.xml to my Local.xml and trying to display with message action block. When I display the message I am getting message as below
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    There is no data in the xml, but in SAP side i seen data and segment which sent to MII as a IDOC. Please help me how to resolve this issue.

    Hi, Thanks for quick response.
    In Message monitor I seen the IDOC list after executing POIT transaction code in SAP.
    But the display button is disabled always in message monitor screen. I want to take this IDOC and save it in my SQL database. So I want to see this IDOC structure in XML format. Where i can see this structure?

  • Nested structure and FCC problem (Header Problem)

    Hi all,
    I have a target structure like this:
    MT
    -Recordset (0..unbounded)
    --field1 (1)
    --field2 (1)
    Record (0..unbounded)
    field6 (0..1)
    field7 (0..1)
    After mapping:
    MT
    -Recordset (0..unbounded)
    --field1 (1)
    --field2 (1)
    Record (0..unbounded)
    field6 (0..1)
    field7 (0..1)
    -Recordset (0..unbounded)
    --field1 (1)
    --field2 (1)
    Record (0..unbounded)
    field6 (0..1)
    field7 (0..1)
    -Recordset (0..unbounded)
    --field1 (1)
    --field2 (1)
    Record (0..unbounded)
    field6 (0..1)
    field7 (0..1)
    I need header like this after FCC:
    field1,field2, field6,field7
    But Iu2019m getting something like this:
    field1,field2,Record (Because of the nested structure, I can't change the structure)
    I have used xml.addHeaderLine = 1 it didnu2019t work it gives something like the above structure.
    I have also used xml.HeaderLine = field1,field2,field6,field7  and xml.addHeaderLine =3
    Nothing is working is there any option.
    Thanks,
    Srinivas
    Edited by: Srinivas Davuluri on Jul 17, 2008 10:13 PM

    Hi,
    one option could be
    RecordSet.addHeaderLine = 3
    Recordset.headerLine = field1<ur seperator>field2<ur seperator> field6<ur seperator> field7
    Edited by: Progirl Progirl on Jul 18, 2008 9:50 AM

Maybe you are looking for

  • Import  XSD to create Data type in Design

    hi,   I know that we can import XSD in Design and create data type,my question is: 1.  Can i import an XSD thats been created in message mapping and use that to create my data type in design. (or) 2.Should i have to write an XSD on my own and then im

  • IPhoto changes the original creation date to 12/31/1969

    Hi folks, this is a problem I have been trying to resolve for a very long time. I have a large collection of pictures that I took with a Palm Zire 71 and Zire 72 going back to 2003. Every time I import the files with iPhoto (File > Import to Library)

  • IPad, component video, and movies in HD?

    I have an iPad 2 that I connect to my TV with a component video breakout--I know that an HDMI breakout is available, but I originally bought the component breakout to use with an iPod Classic and, well, it works with the iPad 2. When I connect the iP

  • Drop Saved Slideshows to Photo or Movie Section?

    I have 2 saved slideshows I created in iPhoto. What is the best way to use iDVD to get both of them onto one dvd? I have tried using Magic iDVD and dropped both slideshows into the photo section. I named the dvd, but I cannot see a way to name the tw

  • Download CS6 for Mac OS on Windows?

    ENGLISH (EN): Hi. I want to download the trial of Adobe Creative Suite CS6 for Mac OS X Lion. The problem is that I need my MacBook for my work, so I can't download all the time. I have a second computer at home, a Windows Notebook, but it seems like