<?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: how to use conversion routine? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662133#M614172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ekta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just pass the name of your variable in the Import and export parameters, your problem will be solved.&lt;/P&gt;&lt;P&gt;Else paste your code here.&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;Ravish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2007 11:27:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-28T11:27:43Z</dc:date>
    <item>
      <title>how to use conversion routine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662125#M614164</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;in my z-table i have a field called matnr for the material number say.&lt;/P&gt;&lt;P&gt;its domain defines it as 18 char.&lt;/P&gt;&lt;P&gt;say i have created an entry say 200.&lt;/P&gt;&lt;P&gt;so it will be saved may be as 000000000000000200.&lt;/P&gt;&lt;P&gt;i want it should be displayed with as 200.&lt;/P&gt;&lt;P&gt;and if i search for say 200.&lt;/P&gt;&lt;P&gt;so it should not look for the proceeding zero's.&lt;/P&gt;&lt;P&gt;it should not give me an error that record doesn't exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please tell me how to use exaclty conversion routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;ekta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 07:32:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662125#M614164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T07:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to use conversion routine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662126#M614165</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;use the conv routine CONVERSION_EXIT_MATN1_OUTPUT&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT'
      EXPORTING
        input         = matnr
    IMPORTING
             OUTPUT        = matnr
              .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravish Garg&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Reward if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ravish Garg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 07:34:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662126#M614165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T07:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to use conversion routine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662127#M614166</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;use the FM  CONVERSION_EXIT_MATN1_INPUT or UNPACK statement... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the standard domain Matnr...in your Z-table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Krishnan Murthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 07:36:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662127#M614166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T07:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to use conversion routine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662128#M614167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   A conversion routine conv is represented by two function modules that adhere to the naming convention CONVERSION_EXIT_conv_INPUT|OUTPUT. In these function modules, no statements can be executed that interrupt the program flow or end a SAP LUW. A conversion routine can be assigned to a domain in the ABAP Dictionary. If a screen field refers to a domain with a conversion routine, the system automatically executes the function module ..._INPUT for every input in the relevant screen field and the function module ..._OUTPUT when values are displayed in this screen field and uses the converted content in each case. If a data object refers to such a domain, the function module ..._OUTPUT is executed for the output of the data object in a list and the converted content is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 07:38:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662128#M614167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T07:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to use conversion routine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662129#M614168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;still my doubt persists, please help me in this context.&lt;/P&gt;&lt;P&gt;it is not showing the selcted value.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 10:47:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662129#M614168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T10:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to use conversion routine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662130#M614169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ekta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use conversion exit alpha input for the situation described by you. Try below code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZGS_TEST9.
 PARAMETERS P_matnr type matnr.


 CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
   EXPORTING
     input         = P_matnr
  IMPORTING
    OUTPUT        = P_matnr
           .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful,&lt;/P&gt;&lt;P&gt;Aleem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 10:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662130#M614169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T10:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to use conversion routine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662131#M614170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ekta..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Paste Your code and the probelm.. Then it can be solved..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 11:03:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662131#M614170</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-28T11:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to use conversion routine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662132#M614171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;data zmatnr type mara-matnr value '00000000000000020'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    INPUT         = zmatnr&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   OUTPUT        = zmatnr&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          write zmatnr.&lt;/P&gt;&lt;P&gt;output is 20.&lt;/P&gt;&lt;P&gt;rgds.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 11:07:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662132#M614171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T11:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to use conversion routine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662133#M614172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ekta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just pass the name of your variable in the Import and export parameters, your problem will be solved.&lt;/P&gt;&lt;P&gt;Else paste your code here.&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;Ravish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 11:27:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662133#M614172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T11:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to use conversion routine?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662134#M614173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem has been solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_MATN1_OUTPUT   this FM module can only be used where the z-table has matnr of the type MATNR the standard matnr of the table mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in my program it was not working.&lt;/P&gt;&lt;P&gt;my data element was not matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i had used a popup for position finder.&lt;/P&gt;&lt;P&gt;so it could not read the material number which had zeros as prefixes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for all the help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;ekta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below the code is mentioned...................&lt;/P&gt;&lt;P&gt;*******************************&lt;STRONG&gt;C O D E&lt;/STRONG&gt;*******************************************&lt;/P&gt;&lt;P&gt;    WHEN '&amp;amp;POS'.&lt;/P&gt;&lt;P&gt;      popup_title       = 'Choose The Material Number'.&lt;/P&gt;&lt;P&gt;      CLEAR it_fields.&lt;/P&gt;&lt;P&gt;      it_fields-tabname    = 'Z10ET_TAB_MAT01'.&lt;/P&gt;&lt;P&gt;      it_fields-fieldname  = 'MATNR'.&lt;/P&gt;&lt;P&gt;      it_fields-field_attr = ' '.&lt;/P&gt;&lt;P&gt;      it_fields-field_obl  = 'X'.&lt;/P&gt;&lt;P&gt;      APPEND it_fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'POPUP_GET_VALUES'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          no_value_check  = 'X'&lt;/P&gt;&lt;P&gt;          popup_title     = popup_title&lt;/P&gt;&lt;P&gt;          start_column    = '5'&lt;/P&gt;&lt;P&gt;          start_row       = '5'&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          returncode      = returncode&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          fields          = it_fields&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          error_in_fields = 1&lt;/P&gt;&lt;P&gt;          OTHERS          = 2.&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF returncode = ' '.&lt;/P&gt;&lt;P&gt;        MESSAGE i036 WITH it_fields-value.&lt;/P&gt;&lt;P&gt;        SORT it_material_data BY matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        READ TABLE it_material_data INTO wa_material_data&lt;/P&gt;&lt;P&gt;                        WITH KEY matnr = it_fields-value.&lt;/P&gt;&lt;P&gt;        IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;          tab_ctrl1-top_line = sy-tabix.&lt;/P&gt;&lt;P&gt;          REFRESH it_fields.&lt;/P&gt;&lt;P&gt;          CLEAR returncode.&lt;/P&gt;&lt;P&gt;          CLEAR ok_code_0101.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;          CONCATENATE concat it_fields-value INTO v_matnr.&lt;/P&gt;&lt;P&gt;          READ TABLE it_material_data INTO wa_material_data&lt;/P&gt;&lt;P&gt;                          WITH KEY matnr = v_matnr.&lt;/P&gt;&lt;P&gt;          IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;            tab_ctrl1-top_line = sy-tabix.&lt;/P&gt;&lt;P&gt;            REFRESH it_fields.&lt;/P&gt;&lt;P&gt;            CLEAR returncode.&lt;/P&gt;&lt;P&gt;            CLEAR ok_code_0101.&lt;/P&gt;&lt;P&gt;          ELSE.&lt;/P&gt;&lt;P&gt;            MESSAGE i037 WITH it_fields-value.&lt;/P&gt;&lt;P&gt;            REFRESH it_fields.&lt;/P&gt;&lt;P&gt;            CLEAR returncode.&lt;/P&gt;&lt;P&gt;            CLEAR ok_code_0101.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 13:49:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-conversion-routine/m-p/2662134#M614173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T13:49:13Z</dc:date>
    </item>
  </channel>
</rss>

