<?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: Conversion Exits in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exits/m-p/3257994#M778215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Conversion routine is a piece of code, which changes the value for display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;scenario is like this the partner function need to stored in SAP as WE and ppl who see cant understand what WE is , so we place a conversion routine to SHOW WE as SOLD-TO-PARTY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;Award points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jan 2008 04:05:39 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2008-01-16T04:05:39Z</dc:date>
    <item>
      <title>Conversion Exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exits/m-p/3257991#M778212</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;What are conversion exits ?? &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;Rathul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 04:01:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exits/m-p/3257991#M778212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-16T04:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion Exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exits/m-p/3257992#M778213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you store data in a table you may want to standardise that data so for example it sorts correctly, or it may be encoded to a shortened form etc, however, in this form it's not easily readable by people.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if you find a numeric material number, and try to find that in a select without the leading zeroes, the database will not find it. However, entering the leading zeroes each time in the input field can be error prone and tedious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP uses this functionality a lot. Whether it's an order number, a WBS element code, or even account assignment codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Conversion exits come in pairs - INPUT for data being entered into SAP from the outside world and OUTPUT for data being displayed by SAP. These conversion exits are implied (ie are automatic) when you declare an input parameter like a ddic object that has a conversion exit, or when you use the WRITE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also call the conversion exit explicitely to provide you with for example a WBS element code that you can use to select from the database on (WBS Elements are not stored in the textual format you see on the screen)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you find out if a variable has a conversion exit ? Look at the domain for the variable by drilling down from the field name to the data element and then to the domain. The field 'Convers. Routine' holds the conversion exit name. To get the full function module just add 'CONVERSION_EXIT_' on the front and the direction '_INPUT' or 'OUTPUT' on the back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: CONVERSION_EXIT_MATN1_INPUT is for material numbers coming into SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vinodh Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 04:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exits/m-p/3257992#M778213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-16T04:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion Exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exits/m-p/3257993#M778214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most conversion exits used in screens by SAP are actually function modules. You can find them by searching for CONVERSION_EXIT_name_INPUT and CONVERSION_EXIT_name_OUTPUT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 04:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exits/m-p/3257993#M778214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-16T04:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion Exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exits/m-p/3257994#M778215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Conversion routine is a piece of code, which changes the value for display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;scenario is like this the partner function need to stored in SAP as WE and ppl who see cant understand what WE is , so we place a conversion routine to SHOW WE as SOLD-TO-PARTY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;Award points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 04:05:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exits/m-p/3257994#M778215</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-01-16T04:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion Exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exits/m-p/3257995#M778216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rathul,&lt;/P&gt;&lt;P&gt;             Generally conversion exits are used for append the leading ZEROS and discard the leading zero.There are two function modules are present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.conversion_exit_alpha_input.&lt;/P&gt;&lt;P&gt;2.conversion_exit_alpha_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.conversion_exit_alpha_input :&lt;/P&gt;&lt;P&gt;EX: &lt;/P&gt;&lt;P&gt;1. '1234    ' --&amp;gt; '00001234'&lt;/P&gt;&lt;P&gt;2. 'ABCD    ' --&amp;gt; '0000ABCD '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.conversion_exit_alpha_output.&lt;/P&gt;&lt;P&gt; EX:&lt;/P&gt;&lt;P&gt; 1.'00001234' -&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;&amp;gt; '1234'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if helpful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; Kiran Kumar.G.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 06:30:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exits/m-p/3257995#M778216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-16T06:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion Exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exits/m-p/3257996#M778217</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 exits are the method by which SAP uses to normalise the data held in the various tables. As a good example, have a look at material numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the material number contains all numeric characters (ie the characters 0-9), then SAP prepends leading zeroes onto the string so that 12345 becomes 000000000000012345.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for this is so that the numbers are sorted correctly by the database. If for example you had the numbers 1,2,3,4,5, 10, 200, 1000 as material numbers and asked SAP to sort them by material number you would end up with the sequence: 1,10,1000, 2, 200, 3, 4 and 5. However by prepending zeroes to the material number to bring it to some standard length, then the material numbers will sort in the order that you think they should be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This also explains why, when you search for a material number, even though the user says it's '1234' and you search the database for '1234' you will not find it. Stick a bunch of zeroes on the front and you will find it!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As another quick example, have a look at WBS elements. I'll defy you to find a WBS element in the database which has a name the same as you type in to access them. SAP converts these names into six (or is it 8 ??) digit numbers prefixed by zeroes. This is then what is used in the tables to identify each WBS element or project:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what is a conversion exit ?&lt;/P&gt;&lt;P&gt;A conversion exit consists of two function modules. One module converts incoming data into the representation that will be used internally. The second is a module that converts internally represented data to that which is displayable and user friendly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Conversion exits are called automatically whenever a variable (who'se domain has a conversion exit defined) is either input via a selection screen or output via a write statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Creating Own Conversion Exits:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write your two conversion exits in the same manner that SAP does - with an input and output parameter only. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that they conform to the naming convention CONVERSION_EXIT_XXXXX_INPUT and CONVERSION_EXIT_XXXXX_OUTPUT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activate and test them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, create a domain that reflects the characteristics of the data you are processing, and in the Conversion exit field enter XXXXX. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You then need to define a data type to be able to use this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if found helpfull...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cheers,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;siva.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 07:28:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exits/m-p/3257996#M778217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-16T07:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion Exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exits/m-p/3257997#M778218</link>
      <description>&lt;P&gt;Amazing explanation. I learnt why there are preceding zeroes before numbers and why i need to remove or add them every time. &lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;Subhobrata&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2023 07:39:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-exits/m-p/3257997#M778218</guid>
      <dc:creator>subhobrata_sarkar</dc:creator>
      <dc:date>2023-10-14T07:39:50Z</dc:date>
    </item>
  </channel>
</rss>

