<?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: Change in field length after using conversion routine in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-field-length-after-using-conversion-routine/m-p/11357935#M1921966</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;how can i create another dynamic internal table of S800 with the length of TPLNR as 40.&lt;/SPAN&gt;&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You can do this and there are MANY tutorials and examples. This one should help:&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.scn.sap.com/wiki/display/Snippets/Example+-+create+a+dynamic+internal+table" title="http://wiki.scn.sap.com/wiki/display/Snippets/Example+-+create+a+dynamic+internal+table"&gt;Example - create a dynamic internal table - Code Gallery - SCN Wiki&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you need that conversion only for download. Maybe you can convert it to some generic field/string table right away. Depeneds on which format you downloading? Some kind of CSV?&lt;/P&gt;&lt;P&gt;What I mean:&lt;/P&gt;&lt;P&gt;1) conversion exit output&lt;/P&gt;&lt;P&gt;2) concatenate fields of one line to string&lt;/P&gt;&lt;P&gt;3) append to string table&lt;/P&gt;&lt;P&gt;4) download...&lt;/P&gt;&lt;P&gt;and no need to create another dynamic table...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Oct 2015 08:30:58 GMT</pubDate>
    <dc:creator>Tomas_Buryanek</dc:creator>
    <dc:date>2015-10-09T08:30:58Z</dc:date>
    <item>
      <title>Change in field length after using conversion routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-field-length-after-using-conversion-routine/m-p/11357932#M1921963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created dynamic internal table based on table name.Fetch the values from the table based on certain condition and then download. Now while downloading the user wants conversion routine for certain fields in that internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For testing purpose i created a dynamic internal table for table S800, fetched the values from table. Now before downloading i need to use conversion routine for field "TPLNR'. The problem is the length of field TPLNR is 30. After using conversion routine the length of data may be 40.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case how to handle. Is it possible to change the length of field TPLNR in dynamic internal table to 40 dynamically or is any other way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 05:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-field-length-after-using-conversion-routine/m-p/11357932#M1921963</guid>
      <dc:creator>former_member192842</dc:creator>
      <dc:date>2015-10-09T05:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Change in field length after using conversion routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-field-length-after-using-conversion-routine/m-p/11357933#M1921964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess your problem is that output length is different than length of data element?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can dynamicaly get output length and create dynamic table with that &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1336/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;go_elemdescr &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;cl_abap_elemdescr&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA: &lt;/SPAN&gt;l_tplnr &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;tplnr&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_length &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;i&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; go_elemdescr ?= cl_abap_elemdescr&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;describe_by_data&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;l_tplnr &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; l_length &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;go_elemdescr&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;output_length&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 06:10:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-field-length-after-using-conversion-routine/m-p/11357933#M1921964</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2015-10-09T06:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Change in field length after using conversion routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-field-length-after-using-conversion-routine/m-p/11357934#M1921965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &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 for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually in need to download the table &amp;lt;fs_table&amp;gt;. But before downloading need to use conversion routine for TPLNR. Here &amp;lt;fs_table&amp;gt; is created dynamically based on table S800&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at &amp;lt;fs_table&amp;gt; into &amp;lt;fs_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT 'TPLNR' OF STRUCTURE &amp;lt;fs_wa&amp;gt; TO &amp;lt;fs_tplnr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_TPLNR_OUTPUT'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &amp;lt;fs_tplnr&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; IMPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output&amp;nbsp;&amp;nbsp;&amp;nbsp; = &amp;lt;fs_tplnr&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While doing this found out that the data in &amp;lt;fs_tplnr&amp;gt;&amp;nbsp; is wrong because the length of &amp;lt;fs_tplnr&amp;gt; is only 30 but the data after conversion is 38.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im only having problem with that TPLNR field in the dynamic internal table. Is it possible only change the length of the TPLNR field. or else how can i create another dynamic internal table of S800 with the length of TPLNR as 40.&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 in advance&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 07:12:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-field-length-after-using-conversion-routine/m-p/11357934#M1921965</guid>
      <dc:creator>former_member192842</dc:creator>
      <dc:date>2015-10-09T07:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change in field length after using conversion routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-field-length-after-using-conversion-routine/m-p/11357935#M1921966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;how can i create another dynamic internal table of S800 with the length of TPLNR as 40.&lt;/SPAN&gt;&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You can do this and there are MANY tutorials and examples. This one should help:&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.scn.sap.com/wiki/display/Snippets/Example+-+create+a+dynamic+internal+table" title="http://wiki.scn.sap.com/wiki/display/Snippets/Example+-+create+a+dynamic+internal+table"&gt;Example - create a dynamic internal table - Code Gallery - SCN Wiki&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you need that conversion only for download. Maybe you can convert it to some generic field/string table right away. Depeneds on which format you downloading? Some kind of CSV?&lt;/P&gt;&lt;P&gt;What I mean:&lt;/P&gt;&lt;P&gt;1) conversion exit output&lt;/P&gt;&lt;P&gt;2) concatenate fields of one line to string&lt;/P&gt;&lt;P&gt;3) append to string table&lt;/P&gt;&lt;P&gt;4) download...&lt;/P&gt;&lt;P&gt;and no need to create another dynamic table...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 08:30:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-field-length-after-using-conversion-routine/m-p/11357935#M1921966</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2015-10-09T08:30:58Z</dc:date>
    </item>
  </channel>
</rss>

