Are conversion exits only for CHARACTER fields?

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?
alaniscoolAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

BACRCommented:
Hi!

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!
BACR


0
alaniscoolAuthor Commented:
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?

Thanks!
0
BACRCommented:
Hi.

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!
BACR
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Enterprise Software

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.