Go Premium for a chance to win a PS4. Enter to Win


Are conversion exits only for CHARACTER fields?

Posted on 2003-10-29
Medium Priority
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 1500 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Note: You must have administrative privileges in order to create/edit Sharing Rules. Salesforce.com (http://www.salesforce.com) (SFDC) is a cloud-based customer relationship management (CRM) system. It is a database most commonly used by sales an…
In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

885 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