<?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: Conversion routine not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-routine-not-working/m-p/11504048#M1933057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Conversion routines only happen automatically where selection screens and writes are involved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The _input function is called when screen fields are passed to the program,&amp;nbsp; and the _output function is called when a variable is written (either to a report or to another field).&amp;nbsp; In all other cases the conversion routines must be called explicitly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So,&amp;nbsp; when you populate your GT_Table you must explicitly call the _input version of the conversion exit with the output going to the relevant ID field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If however,&amp;nbsp; you are already using a parameter to enter your ID value,&amp;nbsp; post the domain definition here and I'll look at it.&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;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Dec 2015 11:13:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-12-31T11:13:33Z</dc:date>
    <item>
      <title>Conversion routine not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-routine-not-working/m-p/11504047#M1933056</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;I created a custom Z table with a field ID attached to a custom Z domain (CHAR10).&lt;/P&gt;&lt;P&gt;I used the conversion routine ALPHA along with the domain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a program I'm inserting data into the table like this:&lt;/P&gt;&lt;P&gt;INSERT ZTABLE FROM GT_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the ID is inserted without being converted (1 and not 0000000001)&lt;/P&gt;&lt;P&gt;I would like to know why il's not being converted and how to solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 11:01:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-routine-not-working/m-p/11504047#M1933056</guid>
      <dc:creator>former_member355261</dc:creator>
      <dc:date>2015-12-31T11:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion routine not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-routine-not-working/m-p/11504048#M1933057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Conversion routines only happen automatically where selection screens and writes are involved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The _input function is called when screen fields are passed to the program,&amp;nbsp; and the _output function is called when a variable is written (either to a report or to another field).&amp;nbsp; In all other cases the conversion routines must be called explicitly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So,&amp;nbsp; when you populate your GT_Table you must explicitly call the _input version of the conversion exit with the output going to the relevant ID field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If however,&amp;nbsp; you are already using a parameter to enter your ID value,&amp;nbsp; post the domain definition here and I'll look at it.&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;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 11:13:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-routine-not-working/m-p/11504048#M1933057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-12-31T11:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion routine not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-routine-not-working/m-p/11504049#M1933058</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;You must convert the value befor appending to GT_TABLE (or loop over GT_TABLE befor the INSERT - but then use a FIELD-SYMBOLS instead a workarea)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg with string expressions&lt;/P&gt;&lt;P&gt;wa_table&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;id &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;|{ &lt;SPAN style="font-size: 13.3333px;"&gt;wa_table&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 13.3333px;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;id&lt;/SPAN&gt; ALPHA &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;} |&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or with FM &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'CONVERSION_EXIT_ALPHA_INPUT'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;input&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;wa_table&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IMPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;output &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;wa_table&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;id&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jan 2016 18:39:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-routine-not-working/m-p/11504049#M1933058</guid>
      <dc:creator>Domi</dc:creator>
      <dc:date>2016-01-03T18:39:53Z</dc:date>
    </item>
  </channel>
</rss>

