<?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: Function modules in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2977245#M702850</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;FU &amp;lt;b&amp;gt;CONVERSION_EXIT_ALPHA_INPUT&amp;lt;/b&amp;gt; Conversion exit ALPHA, external-&amp;gt;internal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALPHA conversion is used especially with account numbers. During conversion from the external to the internal format, the system checks to see if input in the INPUT field is purely numeric, that is, if this input consists only of numbers, possibly with spaces before and after them. If this is the case, then the number string is inserted right- justified in the display field OUTPUT and all spaces to the left of the value are filled with zeroes ('0'). If the input is not purely numeric, it is inserted in the display field from left to right and all extra spaces are filled with blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;(Input field and output field are both eight characters in length)&lt;/P&gt;&lt;P&gt;1. '1234    ' --&amp;gt; '00001234'&lt;/P&gt;&lt;P&gt;2. 'ABCD    ' --&amp;gt; 'ABCD    '&lt;/P&gt;&lt;P&gt;3. ' 1234   ' --&amp;gt; '00001234'&lt;/P&gt;&lt;P&gt;Conversion from the internal to the external format (function module CONVERSION_EXIT_ALPHA_OUTPUT) is undertaken in exactly the opposite manner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERT_DATE_TO_EXTERNAL&amp;lt;/b&amp;gt;Conversion: Internal to external date (like screen conversion)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'            &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING                                         &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DATE_INTERNAL                  = SY-DATUM       &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING                                         &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DATE_EXTERNAL                  =                &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS                                        &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DATE_INTERNAL_IS_INVALID       = 1              &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                         = 2              &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           .                                         &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERT_DATE_TO_INTERNAL&amp;lt;/b&amp;gt;Konvertierung: externes in internes Datum (entspricht der Dynprokonvert.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                                        &lt;/P&gt;&lt;P&gt; CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'               &lt;/P&gt;&lt;P&gt;   EXPORTING                                            &lt;/P&gt;&lt;P&gt;     date_external                  = gwa_input-sdate   &lt;/P&gt;&lt;P&gt; ACCEPT_INITIAL_DATE            =                       &lt;/P&gt;&lt;P&gt;  IMPORTING                                             &lt;/P&gt;&lt;P&gt;    date_internal                  = lv_sdate           &lt;/P&gt;&lt;P&gt;  EXCEPTIONS                                            &lt;/P&gt;&lt;P&gt;    date_external_is_invalid       = 1                  &lt;/P&gt;&lt;P&gt;    OTHERS                         = 2.                 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERSION_EXIT_MATN1_INPUT&amp;lt;/b&amp;gt;Function Module for Material Number Conversion (INPUT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'      &lt;/P&gt;&lt;P&gt;  EXPORTING                                      &lt;/P&gt;&lt;P&gt;    input         = NO                           &lt;/P&gt;&lt;P&gt; IMPORTING                                       &lt;/P&gt;&lt;P&gt;   OUTPUT        = matnr.                        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERSION_EXIT_AENNR_INPUT&amp;lt;/b&amp;gt;Conversion exit Engineering Change Mgmt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                             &lt;/P&gt;&lt;P&gt;call function 'CONVERSION_EXIT_AENNR_INPUT'  &lt;/P&gt;&lt;P&gt;     exporting                               &lt;/P&gt;&lt;P&gt;          input   = change_no                &lt;/P&gt;&lt;P&gt;     importing                               &lt;/P&gt;&lt;P&gt;          output  = akt_aennr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2007 04:17:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-13T04:17:36Z</dc:date>
    <item>
      <title>Function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2977242#M702847</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;Could any one telme what the below fms do with an example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_INPUT&lt;/P&gt;&lt;P&gt;CONVERT_DATE_TO_EXTERNAL&lt;/P&gt;&lt;P&gt;CONVERT_DATE_TO_INTERNAL&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_MATN1_INPUT&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_AENNR_INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answers would be rewarded with points if helpful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Vishwanath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 18:40:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2977242#M702847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T18:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2977243#M702848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;used for conversting using field conversion&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_INPUT&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_outPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are used for converting the fields from their internal format to external or vice versa&lt;/P&gt;&lt;P&gt;CONVERT_DATE_TO_EXTERNAL&lt;/P&gt;&lt;P&gt;CONVERT_DATE_TO_INTERNAL&lt;/P&gt;&lt;P&gt;for example data is stored in SAP YYYYMMDD&lt;/P&gt;&lt;P&gt;where as we enter as DD.MM.YYYY so the two are used for that&lt;/P&gt;&lt;P&gt;similarly most of the fields in SAP have conversion routines/exits&lt;/P&gt;&lt;P&gt;like if MATNR is 18 char field if we wants it full 18 char when its value is just 8 char we may use that&lt;/P&gt;&lt;P&gt;similar thing with other fields&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_MATN1_INPUT&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_AENNR_INPUT&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;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 18:44:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2977243#M702848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T18:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2977244#M702849</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;CONVERSION_EXIT_ALPHA_INPUT - Put leading zeroes for the given input. Check the FM documentation for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT_DATE_TO_EXTERNAL - Converts the date from internal format (YYYYMMDD)  to the user settings format. (Like MM/DD/YYYY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT_DATE_TO_INTERNAL - Converts the date from external format (Like MM/DD/YYYY) to the internal format (YYYYMMDD).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_MATN1_INPUT - Converts the material number according to the settings in SPRO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_AENNR_INPUT - Not sure about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 18:46:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2977244#M702849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T18:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2977245#M702850</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;FU &amp;lt;b&amp;gt;CONVERSION_EXIT_ALPHA_INPUT&amp;lt;/b&amp;gt; Conversion exit ALPHA, external-&amp;gt;internal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALPHA conversion is used especially with account numbers. During conversion from the external to the internal format, the system checks to see if input in the INPUT field is purely numeric, that is, if this input consists only of numbers, possibly with spaces before and after them. If this is the case, then the number string is inserted right- justified in the display field OUTPUT and all spaces to the left of the value are filled with zeroes ('0'). If the input is not purely numeric, it is inserted in the display field from left to right and all extra spaces are filled with blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;(Input field and output field are both eight characters in length)&lt;/P&gt;&lt;P&gt;1. '1234    ' --&amp;gt; '00001234'&lt;/P&gt;&lt;P&gt;2. 'ABCD    ' --&amp;gt; 'ABCD    '&lt;/P&gt;&lt;P&gt;3. ' 1234   ' --&amp;gt; '00001234'&lt;/P&gt;&lt;P&gt;Conversion from the internal to the external format (function module CONVERSION_EXIT_ALPHA_OUTPUT) is undertaken in exactly the opposite manner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERT_DATE_TO_EXTERNAL&amp;lt;/b&amp;gt;Conversion: Internal to external date (like screen conversion)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'            &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING                                         &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DATE_INTERNAL                  = SY-DATUM       &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING                                         &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DATE_EXTERNAL                  =                &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS                                        &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DATE_INTERNAL_IS_INVALID       = 1              &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                         = 2              &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           .                                         &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERT_DATE_TO_INTERNAL&amp;lt;/b&amp;gt;Konvertierung: externes in internes Datum (entspricht der Dynprokonvert.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                                        &lt;/P&gt;&lt;P&gt; CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'               &lt;/P&gt;&lt;P&gt;   EXPORTING                                            &lt;/P&gt;&lt;P&gt;     date_external                  = gwa_input-sdate   &lt;/P&gt;&lt;P&gt; ACCEPT_INITIAL_DATE            =                       &lt;/P&gt;&lt;P&gt;  IMPORTING                                             &lt;/P&gt;&lt;P&gt;    date_internal                  = lv_sdate           &lt;/P&gt;&lt;P&gt;  EXCEPTIONS                                            &lt;/P&gt;&lt;P&gt;    date_external_is_invalid       = 1                  &lt;/P&gt;&lt;P&gt;    OTHERS                         = 2.                 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERSION_EXIT_MATN1_INPUT&amp;lt;/b&amp;gt;Function Module for Material Number Conversion (INPUT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'      &lt;/P&gt;&lt;P&gt;  EXPORTING                                      &lt;/P&gt;&lt;P&gt;    input         = NO                           &lt;/P&gt;&lt;P&gt; IMPORTING                                       &lt;/P&gt;&lt;P&gt;   OUTPUT        = matnr.                        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERSION_EXIT_AENNR_INPUT&amp;lt;/b&amp;gt;Conversion exit Engineering Change Mgmt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                             &lt;/P&gt;&lt;P&gt;call function 'CONVERSION_EXIT_AENNR_INPUT'  &lt;/P&gt;&lt;P&gt;     exporting                               &lt;/P&gt;&lt;P&gt;          input   = change_no                &lt;/P&gt;&lt;P&gt;     importing                               &lt;/P&gt;&lt;P&gt;          output  = akt_aennr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 04:17:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2977245#M702850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T04:17:36Z</dc:date>
    </item>
  </channel>
</rss>

