<?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: what is conversion routine which is found in data element in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461773#M552379</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;This will convert the data during the runtime as per the conversion used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more info:&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jul 2007 03:47:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-06T03:47:37Z</dc:date>
    <item>
      <title>what is conversion routine which is found in data element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461772#M552378</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;I was just trying to creating a data element assigned to a particular domain in se11. While i am creating i can see a conversion routine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me what is the use of that conversion routine with an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanxs in advance&lt;/P&gt;&lt;P&gt;hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 03:37:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461772#M552378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T03:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: what is conversion routine which is found in data element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461773#M552379</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;This will convert the data during the runtime as per the conversion used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more info:&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 03:47:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461773#M552379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T03:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: what is conversion routine which is found in data element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461774#M552380</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;Can you pls give me an example with a real time scenario. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanxs in advance&lt;/P&gt;&lt;P&gt;hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 03:53:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461774#M552380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T03:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: what is conversion routine which is found in data element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461775#M552381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some of the data stored in SAP Tables will be in different format from the external data that we see. So to convert the external data into internal format we use conversion routines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Conversion Routine:&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt; &lt;/P&gt;&lt;P&gt;--&amp;gt; Example : MATNR (18) characters.&lt;/P&gt;&lt;P&gt;--&amp;gt;Say there is one material number 55&lt;/P&gt;&lt;P&gt;--&amp;gt;On selection screen, we just enter 55 (and not 000000000000000055)&lt;/P&gt;&lt;P&gt;--&amp;gt;But in database it is stored with padded zeros.&lt;/P&gt;&lt;P&gt;--&amp;gt;So when fetching from database, in select query,&lt;/P&gt;&lt;P&gt;AUTOMATIC CONVERSION HAPPENS in the FIELD VALUE 55=======&amp;gt;000000000000000055 so that matching record is found&lt;/P&gt;&lt;P&gt;(other wise if we just search for 55, hardcoded in sql, it won't return any record)&lt;/P&gt;&lt;P&gt;--&amp;gt;The same thing happens, when we want to &lt;/P&gt;&lt;P&gt;show the material ON THE SCREEN. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;000000000000000055=======&amp;gt;55 (The variable contians all zeros and 55, but on screen only 55 is shown)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; THIS KIND OF AUTOMATIC CONVESION,&lt;/P&gt;&lt;P&gt;IS SAP TECHNOLOGY&lt;/P&gt;&lt;P&gt;FOR EASE OF USE PURPOSE ONLY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt;Such conversions (automatic)&lt;/P&gt;&lt;P&gt;are done thru special function modules,&lt;/P&gt;&lt;P&gt;which are called conversion routines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt;We can use this FM just like a normal FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Please Check this link for your reference:&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/cf/21ee19446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/cf/21ee19446011d189700000e8322d00/content.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers !&lt;/P&gt;&lt;P&gt;Moqeeth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 03:54:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461775#M552381</guid>
      <dc:creator>mohammed_moqeeth</dc:creator>
      <dc:date>2007-07-06T03:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: what is conversion routine which is found in data element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461776#M552382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/cf/21ee19446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/cf/21ee19446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aneesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 03:55:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461776#M552382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T03:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: what is conversion routine which is found in data element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461777#M552383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hari,&lt;/P&gt;&lt;P&gt; Let me share some points with you.&lt;/P&gt;&lt;P&gt;Suppose let me take one document number in BSIS table. it was stored in the fomat of 0000001234. If u have document number as a parameter on the selection screen. Suppose user enter like 1234. Then controller will find in the view of 1234 and sy-subrc become zero. If u use conversion routine then even if user enter 1234 automatically it will convert into 0000001234 and give exact result.&lt;/P&gt;&lt;P&gt;Hope this helps you. Reply for queries, shall post the updates. &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>Fri, 06 Jul 2007 04:04:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461777#M552383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T04:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: what is conversion routine which is found in data element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461778#M552384</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;Thanxs a lot for the explanation. Can you pls let me know how to create a conversion routine for the above scenario given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanxs a lot&lt;/P&gt;&lt;P&gt;hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 04:11:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461778#M552384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T04:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: what is conversion routine which is found in data element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461779#M552385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Conversion Routine&lt;/P&gt;&lt;P&gt;Conversion takes place when converting the contents of a screen field from display format to SAP-internal format and vice versa and when outputting with the ABAP statement WRITE, depending on the data type of the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If standard conversion is not suitable, it can be overridden by specifying a conversion routine in the underlying domain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A conversion routine is identified by its five-place name and is stored as a group of two function modules. The function modules have a fixed naming convention. The following function modules are assigned to conversion routine xxxxx:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_xxxxx_INPUT&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_xxxxx_OUTPUT&lt;/P&gt;&lt;P&gt;The INPUT module performs the conversion from display format to internal format. The OUTPUT module performs the conversion from internal format to display format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;rajitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 04:11:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461779#M552385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T04:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: what is conversion routine which is found in data element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461780#M552386</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;Depending on the data type of the field, there is a conversion when the contents of a screen field are converted from display format to SAP-internal format and vice versa. If this standard conversion is not suitable, it can be overridden by defining a conversion routine in the underlying domain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Conversion routines are identified by a five-place name and are stored as a group of two function modules. The function modules have a fixed naming convention. The following function modules are assigned to conversion routine xxxxx:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_xxxxx_INPUT &lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_xxxxx_OUTPUT&lt;/P&gt;&lt;P&gt;The INPUT module converts from display format to internal format, and the OUTPUT module converts from internal format to display format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When is a Conversion Routine Executed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a screen field refers to a domain with a conversion routine, this conversion routine is executed automatically when entries are saved in this screen field or when values are displayed in this screen field. The conversion routine of the domain is also triggered when the field contents are output with the WRITE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table SPFLI in the  flight model contains information about the flights offered by the carriers. The time for each flight is recorded in field FLTIME. Enter and display the time of the flight in input templates in the form HHH:MM (hours:minutes). Store the flight time entered in the database as an integer number (number of minutes of the flight). An entry 3:27 is therefore stored in the database as 207 (3 hours, 27 minutes = 207 minutes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field FLTIME refers to domain S_DURA, to which conversion routine SDURA is assigned. The value is thus converted by the two function modules &amp;lt;b&amp;gt;CONVERSION_EXIT_SDURA_INPUT&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;CONVERSION_EXIT_SDURA_OUTPUT&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A conversion routine can also be triggered by specifying its five-place name in the attributes of a field in the Screen Painter or with the addition &amp;lt;b&amp;gt;USING EDIT MASK &amp;lt;Name of conversion routine&amp;gt;&amp;lt;/b&amp;gt; in the WRITE command in the program. With the USING NO EDIT MASK addition in the WRITE statement, you can skip a conversion routine defined for a domain when outputting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two function modules of a conversion routine must have precisely two parameters with the names INPUT and OUTPUT for the value to be converted and the converted value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The INPUT parameter in the INPUT conversion and the OUTPUT parameter in the OUTPUT conversion should not have any reference fields because the value passed in the call could have a different length than that expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Programming Conversion Routines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP statements that result in an interruption of processing (such as CALL SCREEN, CALL DIALOG, CALL TRANSACTION, SUBMIT, COMMIT WORK, ROLLBACK WORK, MESSAGE I, MESSAGE W) are not allowed in conversion routines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only A messages are meaningful in output conversion, but A, E and S messages can be triggered in input conversion (although S messages are not very meaningful here). E messages result in an error dialog. Exceptions are not intercepted in the call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output conversion is also triggered with WRITE and WRITE TO. The conversion routine may therefore occur very frequently with lists. The output conversion should therefore be programmed as efficiently as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No external performs should be used in conversion routines. Programs that are called externally use the table work areas of the first calling main program. In conversion routines this can result in errors that cannot be easily analyzed since they are sometimes called at unpredictable times in the program flow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Pls refer link which contains code as an example to conversion routine used in abap&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://www.bwexpertonline.com/downloads/source_code.doc"&amp;gt;http://www.bwexpertonline.com/downloads/source_code.doc&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward points.&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;Ameet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 05:09:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461780#M552386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T05:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: what is conversion routine which is found in data element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461781#M552387</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;Thanxs a lot for the quick respone. I have assigned point for all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanxs&lt;/P&gt;&lt;P&gt;hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 05:53:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-conversion-routine-which-is-found-in-data-element/m-p/2461781#M552387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T05:53:36Z</dc:date>
    </item>
  </channel>
</rss>

