<?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_EXIT_ALPHA_INPUT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exit-alpha-input/m-p/1345418#M174119</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;how did the table get populated?&lt;/P&gt;&lt;P&gt;why dont u use conversion exit during the population of that table? if it is populated from a flat file you have to use conversion exit within the loop, there is no other alternative.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Jun 2006 17:43:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-10T17:43:32Z</dc:date>
    <item>
      <title>CONVERSION_EXIT_ALPHA_INPUT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exit-alpha-input/m-p/1345415#M174116</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 have a field in my internal table which i need to pass to FM  CONVERSION_EXIT_ALPHA_INPUT before processing that internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The simple method is to loop on the table and call FM each time.&lt;/P&gt;&lt;P&gt;But,the number of entries being Huge, this will hit the performance. &lt;/P&gt;&lt;P&gt;Can this Function module be called as a macro? if yes, then how?&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;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jun 2006 10:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exit-alpha-input/m-p/1345415#M174116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-10T10:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERSION_EXIT_ALPHA_INPUT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exit-alpha-input/m-p/1345416#M174117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry .. But i guess there is no alternative .. The conversion exit routines are system calls.It takes only 1 input at a time.Even writing a macro wont help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jun 2006 11:19:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exit-alpha-input/m-p/1345416#M174117</guid>
      <dc:creator>nishanthbhandar</dc:creator>
      <dc:date>2006-06-10T11:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERSION_EXIT_ALPHA_INPUT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exit-alpha-input/m-p/1345417#M174118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use FIELD-SYMBOLS here to do a faster conversion. Use it like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES:
  BEGIN OF ty_input,
    field1(10) TYPE c,
    field2(10) TYPE c,
  END   OF ty_input.
DATA:
  my_index TYPE syindex,
  wa_input TYPE ty_input,
  it_input TYPE ty_input OCCURS 0.
FIELD-SYMBOLS:
  &amp;lt;fields&amp;gt; TYPE ty_input.
* Test fill structure
DO 20 TIMES.
  my_index = 20 - sy-index.
  WRITE:
    sy-index DECIMALS 0 TO wa_input-field1 LEFT-JUSTIFIED,
    my_index DECIMALS 0 TO wa_input-field2 LEFT-JUSTIFIED.
  APPEND wa_input TO it_input.
ENDDO.
* Faster conversion
* Is directly updated in the internal table
LOOP AT it_input ASSIGNING &amp;lt;fields&amp;gt;.
  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      input  = &amp;lt;fields&amp;gt;-field1
    IMPORTING
      output = &amp;lt;fields&amp;gt;-field1.
  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      input  = &amp;lt;fields&amp;gt;-field2
    IMPORTING
      output = &amp;lt;fields&amp;gt;-field2.
ENDLOOP.
* Release symbol
IF &amp;lt;fields&amp;gt; IS ASSIGNED. UNASSIGN &amp;lt;fields&amp;gt;. ENDIF.
* Test output
LOOP AT it_input INTO wa_input.
  WRITE:
    / wa_input-field1,
      wa_input-field2.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Since the FIELD-SYMBOL actually points towards a record, you do not have to add the MODIFY command into the conversion loop. This means a faster way of converting (if no other way is possible).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rob.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jun 2006 13:46:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exit-alpha-input/m-p/1345417#M174118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-10T13:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERSION_EXIT_ALPHA_INPUT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exit-alpha-input/m-p/1345418#M174119</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;how did the table get populated?&lt;/P&gt;&lt;P&gt;why dont u use conversion exit during the population of that table? if it is populated from a flat file you have to use conversion exit within the loop, there is no other alternative.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jun 2006 17:43:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exit-alpha-input/m-p/1345418#M174119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-10T17:43:32Z</dc:date>
    </item>
  </channel>
</rss>

