Are conversion exits only for CHARACTER fields?

Posted on 2003-10-29
Last Modified: 2013-12-08
I've used sapjco for the better part of the past year.  I've noticed that I've only had to use the data conversion BAPI's for converting fields of CHARACTER type.  Furthermore, the data conversion BAPI's (BAPI_CONVERSION_EXT2INT1/BAPI_CONVERSION_INT2EXT1) INT_FORMAT and EXT_FORMAT fields are also both also of CHARACTER type.  I was wondering then, whether conversion exits only exists for fields that are CHARACTER type?
Question by:alaniscool
  • 2

Expert Comment

ID: 9649426

Excerpt from documentation to FM BAPI_CONVERSION_EXT2INT1
This method converts the data in method parameters from the external format into the internal format (domain conversion). This type of conversion is required to prepare data for further processing in the R/3 System.

This FM converts different types of data (table DATA). In SAP world there is only one type of field that can contain ANY type of data and this is character field.
Fields OBJTYPE, METHOD, PARAMETER and FIELD in table DATA are used (FORM GET_CONVERSION_EXIT in LBACVF01) to determine corresponding element in data dictionary (domain) where information about conversion (name of FM) is stored.

There is dynamic FM call "CALL FUNCTION FUNCNAME" (line 129 in BAPI_CONVERSION_EXT2INT1) where corresponding conversion exit is used for conversion of data representation.

I hope this helps. Good luck!


Author Comment

ID: 9683923
Does this mean that there could be conversion exits for a integer or double field?  What would that convert to?

From all of the SAP documentation I've seen they've always been string/character type conversions.  They illustrate the conversion exit concept using Material number where the user would enter 10 in the character field, but the SAP system stores it as "0000000010" string internally, thus requiring a conversion exit.  Another example I've seen is the string representation of unit, which is "PCS" in en_US locale and something else in German locale.

Do you have an example of a conversion exit on a non-character type field?


Accepted Solution

BACR earned 500 total points
ID: 9685717

Conversion exit can be for any type of field. There are some examples:
ACCP Accounting period - POSTPERFR_KK
DATS Birth date - GBDAT
DEC  Currency exchange rate - KURRF
FLTP Multiplied percentage rate of percent. dist. by org. units - IMA_PROZ (???)
INT4 Flight time in minutes - S_DURA
RAW Supplementary Variable Object ID - VARID

I hope this helps. Good luck!

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Supply Chain Event Management Supply chain visibility is the ability of a company to track its products and business processes in supply chain towards building operational excellence. The goal of supply chain visibility is to improve and strength…’s Console is a great tool to view activities, leads, contacts, accounts and opportunities all in one screen. It is particularly effective during call blocks and working numerous activities at a time in a quick, repetitive fashion (suc…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now