<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with Simple Transformation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823178#M1589178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charles&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the ref atribute in loops, by pass the info to internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the example showed, all the loops is not working. When the execution is finalized, all the internal tables appear only with the information of the last iteration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I call the ST as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSFORMATION zpltg_simple&lt;/P&gt;&lt;P&gt;              SOURCE XML itab_xml&lt;/P&gt;&lt;P&gt;              RESULT &lt;/P&gt;&lt;P&gt;                     tabla_psm_services         = itab_psm_services&lt;/P&gt;&lt;P&gt;                     tabla_psm_transactions     = itab_psm_transactions&lt;/P&gt;&lt;P&gt;                     tabla_psm_dailycharges     = itab_psm_dailycharges&lt;/P&gt;&lt;P&gt;                     tabla_psm_aggregatecharges = itab_psm_aggregatecharges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab_psm_services, itab_psm_transactions, itab_psm_dailycharges, and itab_psm_aggregatecharges are internal tables with out header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tabla_psm_services, tabla_psm_transactions, tabla_psm_dailycharges and tabla_psm_aggregatecharges, are the reference table of the ST:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Transformacion Simple que sirve como Parser entre XML generado por PLTG y SAP ECC 6.0 --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?sap.transform simple?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tt:transform xmlns:tt="http://www.sap.com/transformation-templates" xmlns:ddic="http://www.sap.com/abapxml/types/dictionary"&lt;/P&gt;&lt;P&gt;xmlns:def="http://www.sap.com/abapxml/types/defined"&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;tt:root name="TABLA_PSM_SERVICES" type="?"/&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;tt:root name="TABLA_PSM_TRANSACTIONS" type="?"/&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;tt:root name="TABLA_PSM_DAILYCHARGES" type="?"/&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;tt:root name="TABLA_PSM_AGGREGATECHARGES" type="?"/&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;tt:root name="TABLA_ODORANTS" type="?"/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks by your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ragards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 May 2011 17:01:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-05-10T17:01:50Z</dc:date>
    <item>
      <title>Problem with Simple Transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823173#M1589173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with ST, and have the following issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a highly nested xml structure, and, when I execute a abap program with a myself ST, only the last one data is passed to internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know: how can I do to get that all the information from xml file to store to internal tables but not only the latest information structure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example I have the following xml file, and only the last occurence of &amp;lt;PSMService&amp;gt; is update in internal tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;
&amp;lt;InvoicingInformation&amp;gt;
&amp;lt;Services&amp;gt;
&amp;lt;PSMServices&amp;gt;
        &amp;lt;PSMService ContractCode="STF0996" InvoicePeriod="2011-01-31T00:00:00-06:00" ReceiptPointCode="347"&amp;gt;
          &amp;lt;Transactions&amp;gt;
            &amp;lt;Transaction ReceiptPointCode="347" DeliveryPointCode="167" ExitTramoCode="15" SectorCode="SECTP_GNV"&amp;gt;
            &amp;lt;/Transaction&amp;gt;
          &amp;lt;/Transactions&amp;gt;
          &amp;lt;DailyCharges&amp;gt;
            &amp;lt;DailyCharge ChargeCode="CHRGS_FIJO" Date="2011-01-01T00:00:00-06:00" Quantity="93" QuantityUnit="KPC"&amp;gt;
            &amp;lt;/DailyCharge&amp;gt;
            &amp;lt;DailyCharge ChargeCode="CHRGS_FIJO_COP" Date="2011-01-01T00:00:00-06:00" Quantity="93" QuantityUnit="KPC"&amp;gt;
            &amp;lt;/DailyCharge&amp;gt;
          &amp;lt;/DailyCharges&amp;gt;
          &amp;lt;AggregateCharges&amp;gt;
            &amp;lt;AggregateCharge ChargeCode="CHRGS_DESVIO" IsTiered="false" Quantity="0" QuantityUnit="KPC" CurrencyCode="COP"&amp;gt;
            &amp;lt;/AggregateCharge&amp;gt;
            &amp;lt;AggregateCharge ChargeCode="CHRGS_DESVIO_US$" IsTiered="false" Quantity="0" QuantityUnit="KPC" CurrencyCode="USD"&amp;gt;
            &amp;lt;/AggregateCharge&amp;gt;
         &amp;lt;/AggregateCharges&amp;gt;
        &amp;lt;/PSMService&amp;gt;
        &amp;lt;PSMService ContractCode="STF0996" InvoicePeriod="2011-01-31T00:00:00-06:00" ReceiptPointCode="347"&amp;gt;
          &amp;lt;Transactions&amp;gt;
            &amp;lt;Transaction ReceiptPointCode="347" DeliveryPointCode="192A" ExitTramoCode="16" SectorCode="SECTP_GNV"&amp;gt;
            &amp;lt;/Transaction&amp;gt;
          &amp;lt;/Transactions&amp;gt;
          &amp;lt;DailyCharges&amp;gt;
            &amp;lt;DailyCharge ChargeCode="CHRGS_FIJO" Date="2011-01-01T00:00:00-06:00" Quantity="112" QuantityUnit="KPC"&amp;gt;
            &amp;lt;/DailyCharge&amp;gt;
            &amp;lt;DailyCharge ChargeCode="CHRGS_FIJO_COP" Date="2011-01-01T00:00:00-06:00" Quantity="112" QuantityUnit="KPC"&amp;gt;
            &amp;lt;/DailyCharge&amp;gt;
          &amp;lt;/DailyCharges&amp;gt;
          &amp;lt;AggregateCharges&amp;gt;
            &amp;lt;AggregateCharge ChargeCode="CHRGS_FIJO" IsTiered="false" Quantity="560" QuantityUnit="KPC" CurrencyCode="USD"&amp;gt;
            &amp;lt;/AggregateCharge&amp;gt;
            &amp;lt;AggregateCharge ChargeCode="CHRGS_FIJO_COP" IsTiered="false" Quantity="560" QuantityUnit="KPC" CurrencyCode="COP"&amp;gt;
            &amp;lt;/AggregateCharge&amp;gt;
          &amp;lt;/AggregateCharges&amp;gt;
        &amp;lt;/PSMService&amp;gt;
        &amp;lt;PSMService ContractCode="STF0996" InvoicePeriod="2011-01-31T00:00:00-06:00" ReceiptPointCode="360"&amp;gt;
          &amp;lt;Transactions&amp;gt;
            &amp;lt;Transaction ReceiptPointCode="260A" DeliveryPointCode="167" ExitTramoCode="15" SectorCode="SECTP_GNV"&amp;gt;
            &amp;lt;/Transaction&amp;gt;
            &amp;lt;Transaction ReceiptPointCode="260B" DeliveryPointCode="168" ExitTramoCode="15" SectorCode="SECTP_GNV"&amp;gt; 
            &amp;lt;/Transaction&amp;gt;
          &amp;lt;/Transactions&amp;gt;
          &amp;lt;DailyCharges&amp;gt;
            &amp;lt;DailyCharge ChargeCode="CHRGS_DESVIO" Date="2011-01-01T00:00:00-06:00" Quantity="0" QuantityUnit="KPC"&amp;gt;
            &amp;lt;/DailyCharge&amp;gt;
            &amp;lt;DailyCharge ChargeCode="CHRGS_DESVIO_US$" Date="2011-01-01T00:00:00-06:00" Quantity="0" QuantityUnit="KPC"&amp;gt;
            &amp;lt;/DailyCharge&amp;gt;
          &amp;lt;/DailyCharges&amp;gt;
          &amp;lt;AggregateCharges&amp;gt;
            &amp;lt;AggregateCharge ChargeCode="CHRGS_DESVIO" IsTiered="false" Quantity="0" QuantityUnit="KPC" CurrencyCode="COP"&amp;gt;
            &amp;lt;/AggregateCharge&amp;gt;
            &amp;lt;AggregateCharge ChargeCode="CHRGS_DESVIO_US$" IsTiered="false" Quantity="0" QuantityUnit="KPC" CurrencyCode="USD"&amp;gt;
            &amp;lt;/AggregateCharge&amp;gt;
          &amp;lt;/AggregateCharges&amp;gt;
        &amp;lt;/PSMService&amp;gt;
 &amp;lt;/PSMServices&amp;gt;
 &amp;lt;/Services&amp;gt;
&amp;lt;/InvoicingInformation&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on May 10, 2011 12:46 PM - &lt;STRONG&gt;code tags added&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 22:14:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823173#M1589173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-09T22:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Simple Transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823174#M1589174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hernan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Show us the transformation code to help us help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chalres&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 01:01:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823174#M1589174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-10T01:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Simple Transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823175#M1589175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a piece of the simple transformation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Services&amp;gt;
&amp;lt;!--                 PSM Services  --&amp;gt;

 &amp;lt;PSMServices tt:extensible="deep-dynamic"&amp;gt;
 &amp;lt;tt:loop name="PSMService" ref="TABLA_PSM_SERVICES"&amp;gt;
     &amp;lt;PSMService tt:extensible="deep-dynamic"&amp;gt;
        &amp;lt;tt:attribute name="ContractCode" value-ref="$PSMService.ContractCode"/&amp;gt;
        &amp;lt;tt:attribute name="InvoicePeriod" value-ref="$PSMService.InvoicePeriod"/&amp;gt;
        &amp;lt;tt:attribute name="ReceiptPointCode" value-ref="$PSMService.ReceiptPointCode"/&amp;gt;
        &amp;lt;tt:attribute name="DeliveryPointCode" value-ref="$PSMService.DeliveryPointCode"/&amp;gt;
        &amp;lt;tt:attribute name="ExitTramoCode" value-ref="$PSMService.ExitTramoCode"/&amp;gt;
        &amp;lt;tt:attribute name="SectorCode" value-ref="$PSMService.SectorCode"/&amp;gt;
        &amp;lt;tt:attribute name="MarketCode" value-ref="$PSMService.MarketCode"/&amp;gt;
        &amp;lt;tt:attribute name="TransportMarketCode" value-ref="$PSMService.TransportMarketCode"/&amp;gt;
        &amp;lt;tt:attribute name="InvoiceBy" value-ref="$PSMService.InvoiceBy"/&amp;gt;
        &amp;lt;tt:attribute name="MarketCapacity" value-ref="$PSMService.MarketCapacity"/&amp;gt;
        &amp;lt;tt:attribute name="MarketCapacityUnitCode" value-ref="$PSMService.MarketCapacityUnitCode"/&amp;gt;
        &amp;lt;tt:attribute name="SAPMaterialCode" value-ref="$PSMService.SAPMaterialCode"/&amp;gt;
        &amp;lt;Transactions tt:extensible="deep-dynamic"&amp;gt;
           &amp;lt;tt:loop name="Transaction" ref=".TABLA_PSM_TRANSACTIONS"&amp;gt;
             &amp;lt;Transaction tt:extensible="deep-dynamic"&amp;gt;
                &amp;lt;tt:attribute name="ReceiptPointCode" value-ref="$Transaction.ReceiptPointCode"/&amp;gt;
                &amp;lt;tt:attribute name="DeliveryPointCode" value-ref="$Transaction.DeliveryPointCode"/&amp;gt;
                &amp;lt;tt:attribute name="ExitTramoCode" value-ref="$Transaction.ExitTramoCode"/&amp;gt;
                &amp;lt;tt:attribute name="SectorCode" value-ref="$Transaction.SectorCode"/&amp;gt;
                &amp;lt;tt:attribute name="MarketCode" value-ref="$Transaction.MarketCode"/&amp;gt;
                &amp;lt;tt:attribute name="MarketCapacity" value-ref="$Transaction.MarketCapacity"/&amp;gt;
                &amp;lt;tt:attribute name="Firm" value-ref="$Transaction.Firm"/&amp;gt;
                &amp;lt;tt:attribute name="Overrun " value-ref="$Transaction.Overrun "/&amp;gt;
                &amp;lt;tt:attribute name="UnitCode" value-ref="$Transaction.UnitCode"/&amp;gt;
                &amp;lt;tt:attribute name="SAPMaterialCode" value-ref="$Transaction.SAPMaterialCode"/&amp;gt;
             &amp;lt;/Transaction&amp;gt;
           &amp;lt;/tt:loop&amp;gt;
        &amp;lt;/Transactions&amp;gt;
        &amp;lt;DailyCharges tt:extensible="deep-dynamic"&amp;gt;
            &amp;lt;tt:loop name="DailyCharge" ref=".TABLA_PSM_DAILYCHARGES"&amp;gt;
                &amp;lt;DailyCharge tt:extensible="deep-dynamic"&amp;gt;
                    &amp;lt;tt:attribute name="ChargeCode" value-ref="$DailyCharge.ChargeCode"/&amp;gt;
                    &amp;lt;tt:attribute name="Date" value-ref="$DailyCharge.Date"/&amp;gt;
                    &amp;lt;tt:attribute name="Quantity" value-ref="$DailyCharge.Quantity"/&amp;gt;
                    &amp;lt;tt:attribute name="QuantityUnit" value-ref="$DailyCharge.QuantityUnit"/&amp;gt;
                &amp;lt;/DailyCharge&amp;gt;
            &amp;lt;/tt:loop&amp;gt;
        &amp;lt;/DailyCharges&amp;gt;
        &amp;lt;AggregateCharges tt:extensible="deep-dynamic"&amp;gt;
            &amp;lt;tt:loop name="AggregateCharge" ref=".TABLA_PSM_AGGREGATECHARGES"&amp;gt;
                &amp;lt;AggregateCharge tt:extensible="deep-dynamic"&amp;gt;
                    &amp;lt;tt:attribute name="ChargeCode" value-ref="$AggregateCharge.ChargeCode"/&amp;gt;
                    &amp;lt;tt:attribute name="IsTiered" value-ref="$AggregateCharge.IsTiered"/&amp;gt;
                    &amp;lt;tt:attribute name="Quantity" value-ref="$AggregateCharge.Quantity"/&amp;gt;
                    &amp;lt;tt:attribute name="QuantityUnit" value-ref="$AggregateCharge.QuantityUnit"/&amp;gt;
                    &amp;lt;tt:attribute name="CurrencyCode" value-ref="$AggregateCharge.CurrencyCode"/&amp;gt;
                    &amp;lt;tt:attribute name="TariffRate" value-ref="$AggregateCharge.TariffRate"/&amp;gt;
                    &amp;lt;tt:attribute name="TariffRateUnit" value-ref="$AggregateCharge.TariffRateUnit"/&amp;gt;
                &amp;lt;/AggregateCharge&amp;gt;
            &amp;lt;/tt:loop&amp;gt;
          &amp;lt;/AggregateCharges&amp;gt;
        &amp;lt;/PSMService&amp;gt;
       &amp;lt;/tt:loop&amp;gt;
      &amp;lt;/PSMServices&amp;gt;
  &amp;lt;/Services&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on May 10, 2011 12:47 PM - &lt;STRONG&gt;code tags added&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 02:36:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823175#M1589175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-10T02:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Simple Transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823176#M1589176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hernan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't understood why you used the ref atribute in your loops. Can you explain?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;tt:loop name="PSMService" ref="TABLA_PSM_SERVICES"&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also tell me if only the PSMService loop is not working or all your loops are not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP Help for ST Internal Tables is in the following addres:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/EN/48/c21940a65ec442e10000000a1550b0/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/EN/48/c21940a65ec442e10000000a1550b0/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Charles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 15:11:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823176#M1589176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-10T15:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Simple Transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823177#M1589177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just curious, Does your table have a header line? or is it standard table without header line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also post your ABAP statement (code) for call transformation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 15:14:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823177#M1589177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-10T15:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Simple Transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823178#M1589178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charles&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the ref atribute in loops, by pass the info to internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the example showed, all the loops is not working. When the execution is finalized, all the internal tables appear only with the information of the last iteration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I call the ST as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSFORMATION zpltg_simple&lt;/P&gt;&lt;P&gt;              SOURCE XML itab_xml&lt;/P&gt;&lt;P&gt;              RESULT &lt;/P&gt;&lt;P&gt;                     tabla_psm_services         = itab_psm_services&lt;/P&gt;&lt;P&gt;                     tabla_psm_transactions     = itab_psm_transactions&lt;/P&gt;&lt;P&gt;                     tabla_psm_dailycharges     = itab_psm_dailycharges&lt;/P&gt;&lt;P&gt;                     tabla_psm_aggregatecharges = itab_psm_aggregatecharges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab_psm_services, itab_psm_transactions, itab_psm_dailycharges, and itab_psm_aggregatecharges are internal tables with out header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tabla_psm_services, tabla_psm_transactions, tabla_psm_dailycharges and tabla_psm_aggregatecharges, are the reference table of the ST:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Transformacion Simple que sirve como Parser entre XML generado por PLTG y SAP ECC 6.0 --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?sap.transform simple?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tt:transform xmlns:tt="http://www.sap.com/transformation-templates" xmlns:ddic="http://www.sap.com/abapxml/types/dictionary"&lt;/P&gt;&lt;P&gt;xmlns:def="http://www.sap.com/abapxml/types/defined"&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;tt:root name="TABLA_PSM_SERVICES" type="?"/&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;tt:root name="TABLA_PSM_TRANSACTIONS" type="?"/&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;tt:root name="TABLA_PSM_DAILYCHARGES" type="?"/&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;tt:root name="TABLA_PSM_AGGREGATECHARGES" type="?"/&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;tt:root name="TABLA_ODORANTS" type="?"/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks by your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ragards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 17:01:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823178#M1589178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-10T17:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Simple Transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823179#M1589179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I answer the questions in this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you by your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dario.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 17:02:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823179#M1589179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-10T17:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Simple Transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823180#M1589180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you didn't define correctly your variables and your root(s).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shouldn't you define only one root (PSM_SERVICES), and define one matching internal table with the 3 others nested internal tables (transaction, daily charges, aggregate charges) inside?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, what happens is that each time a PSM service is processed, the 3 inner trees are emptied and refilled. (note that you probably get the correct entries in ITAB_PSM_SERVICES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 21:37:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823180#M1589180</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-05-10T21:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Simple Transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823181#M1589181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandra.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK, I understand your point, but, how can I do to reference a field, in a nested internal table between them ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By nested  table DailyCharges, the field ChargeCode, I have to reference like "$PSMServices/DailyCharge.ChargeCode"  ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;DailyCharges&amp;gt;&lt;/P&gt;&lt;P&gt;            &amp;lt;tt:loop name="DailyCharge" ref=".TABLA_PSM_DAILYCHARGES"&amp;gt;&lt;/P&gt;&lt;P&gt;                &amp;lt;DailyCharge tt:extensible="deep-dynamic"&amp;gt;&lt;/P&gt;&lt;P&gt;                    &amp;lt;tt:attribute name="ChargeCode" value-ref="$DailyCharge.ChargeCode"/&amp;gt;&lt;/P&gt;&lt;P&gt;                    &amp;lt;tt:attribute name="Date" value-ref="$DailyCharge.Date"/&amp;gt;&lt;/P&gt;&lt;P&gt;                    &amp;lt;tt:attribute name="Quantity" value-ref="$DailyCharge.Quantity"/&amp;gt;&lt;/P&gt;&lt;P&gt;                    &amp;lt;tt:attribute name="QuantityUnit" value-ref="$DailyCharge.QuantityUnit"/&amp;gt;&lt;/P&gt;&lt;P&gt;                &amp;lt;/DailyCharge&amp;gt;&lt;/P&gt;&lt;P&gt;            &amp;lt;/tt:loop&amp;gt;&lt;/P&gt;&lt;P&gt;        &amp;lt;/DailyCharges&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 03:36:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823181#M1589181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-11T03:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Simple Transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823182#M1589182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should change ref=".TABLA_PSM_DAILYCHARGES" with the name of the nested internal table component (and remember to remove the dot which links to a root node)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;DailyCharges&amp;gt;
&amp;lt;tt:loop name="DailyCharge" ref="itab_daily_charges"&amp;gt;
&amp;lt;DailyCharge tt:extensible="deep-dynamic"&amp;gt;
&amp;lt;tt:attribute name="ChargeCode" value-ref="$DailyCharge.ChargeCode"/&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would work with :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
types: begin of daily_charge,
    charge_code type string,
end of daily_charge.

data: begin of itab_psm_services occurs 0,
    contract_code type string,
    itab_daily_charges TYPE daily_charge occurs 0,
end of itab_psm_services.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(sorry for the obsolete coding (OCCURS, implicit header line))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have an example in transformation SSTDEMO_BOOKINGS, that you can run from program SSTDEMO_FLIGHTS (choose "flight bookings", first run it with option to generate the XML file, then run it with option to transform from the XML file to ABAP nested internal tables)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 07:41:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-simple-transformation/m-p/7823182#M1589182</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-05-11T07:41:31Z</dc:date>
    </item>
  </channel>
</rss>

