<?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: Import/Export dynamic table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-export-dynamic-table/m-p/11798685#M1953879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Yen Shen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to define the export of internal table using Field Symbols?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;FIELD-SYMBOLS &lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&amp;lt;ft_table&amp;gt; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STANDARD &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;any&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Yance&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Sep 2016 06:50:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-09-01T06:50:40Z</dc:date>
    <item>
      <title>Import/Export dynamic table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-export-dynamic-table/m-p/11798682#M1953876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to export an internal table which is having a dynamic structure in A program and import in B program?&lt;/P&gt;&lt;P&gt;The requirement is to copy a standard program to a Z program. Current standard program will having a dynamic output which depends on the selection screen input. So I would need to export the final output table and submit to a custom program. So from the custom program, I can massage the data that I needs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I declare the structure(&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;SPAN class="L0S52"&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;lt_datatable[])&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt; in program B for the imported data so that I can start to manipulate the imported data.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Program A: EXPORT &lt;/SPAN&gt;lt_datatable[] &lt;SPAN class="L0S52"&gt;to &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;memory &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;id &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ABC'&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 10pt;"&gt;&lt;STRONG&gt;Program B: &lt;SPAN class="L0S52"&gt;IMPORT &lt;SPAN style="font-size: 13.3333px;"&gt;lt_datatable[] &lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="L0S52"&gt;from &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;memory &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;id &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ABC'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Ben-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 01:51:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-export-dynamic-table/m-p/11798682#M1953876</guid>
      <dc:creator>benlim</dc:creator>
      <dc:date>2016-09-01T01:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Import/Export dynamic table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-export-dynamic-table/m-p/11798683#M1953877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yen Shen,&lt;/P&gt;&lt;P&gt;Try this class and method, &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;cl_salv_bs_runtime_info&lt;/SPAN&gt;&lt;SPAN class="l0s701"&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;GET_DATA&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Many examples in SCN for this. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/108/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BRs,&lt;/P&gt;&lt;P&gt;Archer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 02:13:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-export-dynamic-table/m-p/11798683#M1953877</guid>
      <dc:creator>ArcherZhang</dc:creator>
      <dc:date>2016-09-01T02:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Import/Export dynamic table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-export-dynamic-table/m-p/11798684#M1953878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Yen Shen, Ben Lim wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The requirement is to copy a standard program to a Z program.&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;No, it isn't. That's a &lt;SPAN style="text-decoration: underline;"&gt;proposed solution&lt;/SPAN&gt; to meet a business requirement. The requirement is what the business need. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've said this many times, and it is born out of years of experience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #ff0000; font-size: 14pt;"&gt;Copying a standard program to a Z program is a very very bad thing to do.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #ff0000; font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;It is the same as writing a program to directly update SAP tables. (If the standard does updating)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;You won't benefit from an OSS notes&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;The standard may change during an upgrade, and you won't know to recopy the original&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;If you keep some of the includes from the original, if they change due to an upgrade or note, they may break your program.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much better is to change the original. You benefit from the modification assistant and have full visibility and control during upgrades and note implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards to your question: what is the standard program? How does the dynamic output vary? What determines the dynamic output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 05:54:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-export-dynamic-table/m-p/11798684#M1953878</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-09-01T05:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Import/Export dynamic table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-export-dynamic-table/m-p/11798685#M1953879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Yen Shen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to define the export of internal table using Field Symbols?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;FIELD-SYMBOLS &lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&amp;lt;ft_table&amp;gt; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STANDARD &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;any&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Yance&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 06:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-export-dynamic-table/m-p/11798685#M1953879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-01T06:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Import/Export dynamic table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-export-dynamic-table/m-p/11798686#M1953880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could export the description of the table with the actual data. Look for adequate RTTI or ALV class (*) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;But what do you do in your custom report that you couldn't managed in the original program with some Enhancements?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;(*) IMHO ALV proper use only if you extract some ALV data with class cl_salv_bs_runtime_info&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 06:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-export-dynamic-table/m-p/11798686#M1953880</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-09-01T06:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Import/Export dynamic table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-export-dynamic-table/m-p/11798687#M1953881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="font-size: 10.8px; color: #333333; background: #ffffff;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="1053" data-externalid="" data-presence="null" data-userid="24079" data-username="matthew.billingham" href="https://answers.sap.com/people/matthew.billingham" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; text-decoration: underline !important; color: #3778c7; background: transparent;"&gt;Matthew Billingham&lt;/A&gt;&lt;/STRONG&gt;, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The standard program may have dynamic output as the output is displayed based on the input from selection screen. I understand that the disadvantages of copying out a standard program. My business requirement is to maintain all the current logic in &lt;SPAN style="font-size: 13.3333px;"&gt;H99CWTR0&lt;/SPAN&gt; report. After getting the final output, I'll need to filter out unique wage type and these wage type will be used as header line for new internal table. The other information from the standard report is used and populate to this new internal table for output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better way to achieve this requirements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Ben-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 07:30:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-export-dynamic-table/m-p/11798687#M1953881</guid>
      <dc:creator>benlim</dc:creator>
      <dc:date>2016-09-01T07:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Import/Export dynamic table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-export-dynamic-table/m-p/11798688#M1953882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="font-size: 10.8px; color: #333333; background: #ffffff;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="73884" data-externalid="" data-presence="null" data-userid="1205898" data-username="yance.ciputra" href="https://answers.sap.com/people/yance.ciputra" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; text-decoration: underline !important; color: #3778c7; background: transparent;"&gt;Yance Ciputra&lt;/A&gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it is possible to define field symbol type any table. But it does not carry any data after import. I've put break point after import and get message the variable is unassigned. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Ben-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 07:32:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-export-dynamic-table/m-p/11798688#M1953882</guid>
      <dc:creator>benlim</dc:creator>
      <dc:date>2016-09-01T07:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Import/Export dynamic table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-export-dynamic-table/m-p/11798689#M1953883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="font-size: 10.8px; color: #333333; background: #ffffff;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="18279" data-externalid="" data-presence="null" data-userid="311021" data-username="raymond.giuseppi" href="https://answers.sap.com/people/raymond.giuseppi" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; text-decoration: underline !important; color: #3778c7; background: transparent;"&gt;Raymond Giuseppi&lt;/A&gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to manipulate the row data of the output and convert it to header line for new internal table. &lt;/P&gt;&lt;P&gt;Thanks for your suggestion and I'll look for the information that you suggested. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Ben-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 07:34:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-export-dynamic-table/m-p/11798689#M1953883</guid>
      <dc:creator>benlim</dc:creator>
      <dc:date>2016-09-01T07:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Import/Export dynamic table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-export-dynamic-table/m-p/11798690#M1953884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, as I said - change the existing standard program to have your new functionality. You can make is switchable if you need the exact original functionality as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to somehow present the structure of the dynamic table. For example, convert it to xml&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL TRANSFORMATION id SOURCE &amp;lt;internal_table&amp;gt; RESULT XML xml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then EXPORT xml (a string) to memory. The problem you now have is in the IMPORT; where you have to define the structure of the internal table to run the transformation in other other direction.&lt;/P&gt;&lt;P&gt;To do this, in the source report, use the RTTS classes to get the structure of the &amp;lt;internal_table&amp;gt;, and EXPORT that information to memory as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Edit: I note Raymond has made pretty much the same suggestion)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 08:06:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-export-dynamic-table/m-p/11798690#M1953884</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-09-01T08:06:35Z</dc:date>
    </item>
  </channel>
</rss>

