<?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: Using FM, CONVERSION_EXIT_MATN1_INPUT on a select-option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249297#M1383436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why not try &lt;/P&gt;&lt;P&gt;conversion_exit_alpha_input !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Oct 2009 02:57:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-13T02:57:41Z</dc:date>
    <item>
      <title>Using FM, CONVERSION_EXIT_MATN1_INPUT on a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249296#M1383435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear forumers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my program codes, I have a material number select-option (multiple values are possible) and I will need to make sure that its format is converted to the internal 18 characters number for processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this reason, I am using the FM, CONVERSION_EXIT_MATN1_INPUT. However, I am still struggling to make sure that the output is 18 characters (I can't seem to get this done, especially because material number is a select-option). How may I achieve this properly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for all the help here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example, even this (simpler example) does not work:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
  v_matnr1(9)  TYPE c,
  v_matnr2(18) TYPE c.

  v_matnr1 = '123456789'.

  CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
    EXPORTING
      input        = v_matnr1
    IMPORTING
      output       = v_matnr2
    EXCEPTIONS
      length_error = 1
      OTHERS       = 2. 

" V_MATNR2 is still outputted as '123456789'

  IF sy-subrc NE 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could have gone wrong here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 02:24:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249296#M1383435</guid>
      <dc:creator>former_member367551</dc:creator>
      <dc:date>2009-10-13T02:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using FM, CONVERSION_EXIT_MATN1_INPUT on a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249297#M1383436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why not try &lt;/P&gt;&lt;P&gt;conversion_exit_alpha_input !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 02:57:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249297#M1383436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-13T02:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using FM, CONVERSION_EXIT_MATN1_INPUT on a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249298#M1383437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;My dear friend, 
&lt;PRE&gt;&lt;CODE&gt;TABLES:marc.
SELECT-OPTIONS:s_matnr FOR marc-matnr.&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;When you define  material no as  select-option like above by referring to standard table field, If a screen field refers to a domain with a conversion routine, this conversion routine is executed automatically each time an entry is made in this screen field or when values are displayed with this screen field.
&amp;lt;li&amp;gt;You can go to domain of matnr and check conversion routine is assigned. So automatically it converts the values entered into internal format .
&amp;lt;li&amp;gt;You can check that using like below by putting break point .
&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN.
  LOOP AT s_matnr.
    BREAK-POINT.
    "Check s_matnr-low value.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;It does not show leading zeroes on the screen but you can see that in select-option table s_matnr.

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 03:09:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249298#M1383437</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-10-13T03:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using FM, CONVERSION_EXIT_MATN1_INPUT on a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249299#M1383438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soumyaprakash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried that much earlier too and it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the FM, CONVERSION_EXIT_MATN1_INPUT was already specified by the functional consultant in the Spec requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll have to make sure that this requirement is fulfilled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 03:34:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249299#M1383438</guid>
      <dc:creator>former_member367551</dc:creator>
      <dc:date>2009-10-13T03:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using FM, CONVERSION_EXIT_MATN1_INPUT on a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249300#M1383439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;both will any ways work similar this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 03:36:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249300#M1383439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-13T03:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using FM, CONVERSION_EXIT_MATN1_INPUT on a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249301#M1383440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The other issue that may arise from using the FM, CONVERSION_EXIT_ALPHA_INPUT is that the user is allowed to enter data of the format MARA-MFRPN (40 characters) into the material number select-option on the report's selection screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll have to make sure that the data is converted properly, specifically for the 18 characters material number format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 03:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249301#M1383440</guid>
      <dc:creator>former_member367551</dc:creator>
      <dc:date>2009-10-13T03:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using FM, CONVERSION_EXIT_MATN1_INPUT on a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249302#M1383441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for alpha_input the parameters is CLIKE ..right?&lt;/P&gt;&lt;P&gt;so use any number of chars you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you also can do the same after converting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 03:42:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249302#M1383441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-13T03:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using FM, CONVERSION_EXIT_MATN1_INPUT on a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249303#M1383442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the explanations there. Appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this out. But, I'm still not seeing the leading zeros populated for the material number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's how I did it, with the data inputs as '123456' TO '123460' in the selection screen:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES:
mbew.
...

SELECT-OPTIONS:
s_matnr FOR mbew-matnr.
...

LOOP AT s_matnr.
  break-point.
" Here, s_matnr-low = '123456' and s_matnr-high = '123460'
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other issue is, the user is also allowed to enter data format of MARA-MFRPN (40 char and its domain does not have a conversion routine) into S_MATNR at the selection screen. This is why I'll need to use the FM explicitly also, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help once again. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 03:48:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249303#M1383442</guid>
      <dc:creator>former_member367551</dc:creator>
      <dc:date>2009-10-13T03:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using FM, CONVERSION_EXIT_MATN1_INPUT on a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249304#M1383443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soumyaprakash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yup, that's right - it's CLIKE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try this out as well, but I'm just a lil hesitant because the spec clearly specified to use the other FM - CONVERSION_EXIT_MATN1_INPUT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 03:55:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249304#M1383443</guid>
      <dc:creator>former_member367551</dc:creator>
      <dc:date>2009-10-13T03:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using FM, CONVERSION_EXIT_MATN1_INPUT on a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249305#M1383444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This code works for me&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES:mara.
SELECT-OPTIONS:so_matnr FOR mara-matnr.

DATA:ra_matnr TYPE RANGE OF mara-matnr.
DATA:wa LIKE LINE OF ra_matnr.

START-OF-SELECTION.

  LOOP AT so_matnr.
    PERFORM fm_conversion_exit USING so_matnr-low
                               CHANGING wa-low.
    PERFORM fm_conversion_exit USING so_matnr-high
                               CHANGING wa-high.
    wa-option = so_matnr-option.
    wa-sign = so_matnr-sign.
    APPEND wa TO ra_matnr.
    CLEAR wa.
  ENDLOOP.

  loop at ra_matnr into wa.
    write:/ wa.
  endloop.

FORM fm_conversion_exit  USING    p_so_matnr
                         CHANGING p_wa.

  CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
    EXPORTING
      input  = p_so_matnr
    IMPORTING
      output = p_wa.

ENDFORM. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 04:32:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249305#M1383444</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-10-13T04:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using FM, CONVERSION_EXIT_MATN1_INPUT on a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249306#M1383445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi Tan, 
&amp;lt;li&amp;gt;You need to call &lt;STRONG&gt;CONVERSION_EXIT_MATN1_INPUT&lt;/STRONG&gt; function module explicitly to convert the other values entered in MARA-MFRPN field. 

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 05:27:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249306#M1383445</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-10-13T05:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using FM, CONVERSION_EXIT_MATN1_INPUT on a select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249307#M1383446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi forumers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got this issue resolved and properly tested already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the help. Appreciate the inputs given here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 07:03:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-conversion-exit-matn1-input-on-a-select-option/m-p/6249307#M1383446</guid>
      <dc:creator>former_member367551</dc:creator>
      <dc:date>2009-10-13T07:03:05Z</dc:date>
    </item>
  </channel>
</rss>

