<?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 for conversion exit using field symbols in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-conversion-exit-using-field-symbols/m-p/6604075#M1437698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The output parameter of the fm must not be a field symbol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jan 2010 11:31:00 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2010-01-25T11:31:00Z</dc:date>
    <item>
      <title>Problem for conversion exit using field symbols</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-conversion-exit-using-field-symbols/m-p/6604074#M1437697</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 to create a varible dynamically and i need to pass that varible for conversion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie : in my internal table i have matnr , vbeln , kunnr   like this it can be any field.&lt;/P&gt;&lt;P&gt;now i need to do a conversion for leading zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i pass the &amp;lt;value &amp;gt; to conversion exit it is giving me a runtime error..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example iam using field kunnr and  in the importing parameter if i pass v_kunnr it is giving me result , but if i pass &amp;lt;value&amp;gt; it is giving me runtime error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

PARAMETERS :
     Field_name TYPE fname.
DATA:
wa_ref TYPE REF TO data.

FIELD-SYMBOLS: &amp;lt;level&amp;gt; TYPE ANY.

CREATE DATA wa_ref TYPE (tab_name).

ASSIGN wa_ref-&amp;gt;* TO &amp;lt;level&amp;gt;.

ASSIGN '1000' TO &amp;lt;level&amp;gt; .

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    input  = &amp;lt;level&amp;gt;
  IMPORTING
    output = &amp;lt;level&amp;gt;.
.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i correct it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 11:16:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-conversion-exit-using-field-symbols/m-p/6604074#M1437697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-25T11:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem for conversion exit using field symbols</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-conversion-exit-using-field-symbols/m-p/6604075#M1437698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The output parameter of the fm must not be a field symbol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 11:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-conversion-exit-using-field-symbols/m-p/6604075#M1437698</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-25T11:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem for conversion exit using field symbols</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-conversion-exit-using-field-symbols/m-p/6604076#M1437699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any alternative to work with conversion exits for different data types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 11:34:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-conversion-exit-using-field-symbols/m-p/6604076#M1437699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-25T11:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem for conversion exit using field symbols</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-conversion-exit-using-field-symbols/m-p/6604077#M1437700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The dump appears because the field symbol assignment gets changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : tab_name type fieldname.

DATA:
wa_ref TYPE REF TO data.

data : lv_kunnr type kunnr.

FIELD-SYMBOLS: &amp;lt;level&amp;gt; TYPE ANY.

tab_name = 'KUNNR'.
CREATE DATA wa_ref TYPE (tab_name).

ASSIGN wa_ref-&amp;gt;* TO &amp;lt;level&amp;gt;.

lv_kunnr = '1000'.    "The field which contains the data ( can be customer or vendor or document etc)

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    input  = lv_kunnr
  IMPORTING
    output = &amp;lt;level&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 11:36:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-conversion-exit-using-field-symbols/m-p/6604077#M1437700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-25T11:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem for conversion exit using field symbols</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-conversion-exit-using-field-symbols/m-p/6604078#M1437701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dont assign a constant to field symbol.&lt;/P&gt;&lt;P&gt;You cannot change a constant value.&lt;/P&gt;&lt;P&gt;Instead do it like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:field1 type char10 value '1000'.
FIELD-SYMBOLS: &amp;lt;level&amp;gt; TYPE ANY.
ASSIGN field1 TO &amp;lt;level&amp;gt; .
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    input  = &amp;lt;level&amp;gt;
  IMPORTING
    output = &amp;lt;level&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 11:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-conversion-exit-using-field-symbols/m-p/6604078#M1437701</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-25T11:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem for conversion exit using field symbols</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-conversion-exit-using-field-symbols/m-p/6604079#M1437702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar I have also got the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually in function module conversion_exit_alpha input .. in eporting parameters whatever value you are giving it should be assigned with data element of tabname-fldname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can go ahead with this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;-- Convert Numeric data with zero.&lt;/P&gt;&lt;P&gt;  concatenate i_table '-' i_fldname into lv_dtyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  create data value type (lv_dtyp).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  assign value-&amp;gt;* to &amp;lt;fs&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      input  = i_fld_value&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      output = &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i_table is the table name and in case of you it is KNA1 and i_fieldname is Kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will work for sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any concern.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 11:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-conversion-exit-using-field-symbols/m-p/6604079#M1437702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-25T11:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem for conversion exit using field symbols</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-conversion-exit-using-field-symbols/m-p/6604080#M1437703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved my self&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Mar 2010 20:26:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-conversion-exit-using-field-symbols/m-p/6604080#M1437703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-01T20:26:04Z</dc:date>
    </item>
  </channel>
</rss>

