Solved

Are conversion exits only for CHARACTER fields?

Posted on 2003-10-29
3
785 Views
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?
0
Comment
Question by:alaniscool
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 2

Expert Comment

by:BACR
ID: 9649426
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
 

Author Comment

by:alaniscool
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?

Thanks!
0
 
LVL 2

Accepted Solution

by:
BACR earned 500 total points
ID: 9685717
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

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

When CRM stops functioning propperly or mysteriously disappears then this is something you should always check. This can be useful when looking at an end users machine or your own machine if you are the end user. It may be fairly obvious to some but…
Note: You must have administrative privileges in order to create/edit Roles. 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 and marke…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 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