{"id":7387,"date":"2025-08-05T01:54:13","date_gmt":"2025-08-04T20:24:13","guid":{"rendered":"https:\/\/www.sapewmhelp.com\/?question=purpose-of-a-conversion-routine"},"modified":"2025-08-05T01:54:13","modified_gmt":"2025-08-04T20:24:13","slug":"purpose-of-a-conversion-routine","status":"publish","type":"question","link":"https:\/\/www.sapewmhelp.com\/?question=purpose-of-a-conversion-routine","title":{"rendered":"Purpose of a Conversion Routine"},"content":{"rendered":"<p>It ensures that:<\/p>\n<ul>\n<li>Users see data in a friendly, understandable format (e.g., formatted dates, leading zeros removed).<\/li>\n<li>System stores data in a standardized internal format (for consistency and integrity).<\/li>\n<\/ul>\n<h3 data-start=\"449\" data-end=\"468\">How It Works<\/h3>\n<p>When a domain is assigned a <strong>conversion routine<\/strong>:<\/p>\n<ul>\n<li>At input (user to system): the routine converts external input to internal format.<\/li>\n<li>At output (system to user): the routine converts internal format to user-friendly format.<\/li>\n<\/ul>\n<h3 data-start=\"722\" data-end=\"736\">Example<\/h3>\n<h4>Domain: <code>MATNR<\/code> (Material Number)<\/h4>\n<ul>\n<li>Internally: Stored as 18 characters with leading zeros, e.g., <code>000000000000123456<\/code><\/li>\n<li>Externally: Shown as <code>123456<\/code> to the user<\/li>\n<\/ul>\n<h4>Conversion routine: <code>ALPHA<\/code><\/h4>\n<ul>\n<li>Input: Adds leading zeros to match the length<\/li>\n<li>Output: Strips leading zeros for display<br \/>\n<table>\n<thead>\n<tr>\n<th>Type<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>External<\/td>\n<td><code>123456<\/code><\/td>\n<\/tr>\n<tr>\n<td>Internal<\/td>\n<td><code>000000000000123456<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 data-start=\"1184\" data-end=\"1225\">How to Assign a Conversion Routine<\/h3>\n<ol>\n<li>\n<p>Go to <strong>SE11<\/strong> \u2192 Choose your <strong>domain<\/strong>.<\/p>\n<\/li>\n<li>\n<p>In the <strong>conversion routine field<\/strong>, enter the routine (e.g., <code>ALPHA<\/code>, <code>CONVERSION_EXIT_ALPHA_INPUT\/OUTPUT<\/code>).<\/p>\n<\/li>\n<li>\n<p>Save and activate.<\/p>\n<\/li>\n<\/ol>\n<blockquote data-start=\"1407\" data-end=\"1525\">\n<p>The actual logic resides in function modules:<\/p>\n<ul>\n<li>\n<p><code>CONVERSION_EXIT_YYYY_INPUT<\/code><\/p>\n<\/li>\n<li>\n<p><code>CONVERSION_EXIT_YYYY_OUTPUT<\/code><\/p>\n<\/li>\n<\/ul>\n<\/blockquote>\n<\/li>\n<\/ul>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","question-category":[158],"question_tags":[289,290,177],"class_list":["post-7387","question","type-question","status-publish","hentry","question-category-abap","question_tags-conversion-routine","question_tags-domain","question_tags-sap"],"_links":{"self":[{"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=\/wp\/v2\/question\/7387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=\/wp\/v2\/question"}],"about":[{"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7387"}],"wp:attachment":[{"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7387"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fquestion-category&post=7387"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fquestion_tags&post=7387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}