Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

conversion routines

Former Member
0 Likes
1,529

hi experts,

what is the conversion routine ,how to define it.

explain me in brief.

thanks in advance.

6 REPLIES 6
Read only

Former Member
Read only

Former Member
0 Likes
1,004

Hi,

A function module which convert the internal representation of a field into its external representation (Depending upon the user settings) and vice versa.

Please check this sample code.


data : auart like vbak-auart.
 
auart = 'TA'.

CALL FUNCTION 'CONVERSION_EXIT_AUART_INPUT'
  EXPORTING
    input        = auart
 IMPORTING
   OUTPUT        = auart.
 
write:/ auart.

reverse it with 'CONVERSION_EXIT_AUART_OUTPUT'

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
1,004

Please check this PDF

This is coversion routines available in SAP BW. It will help you to understand about conversions.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b9119290-0201-0010-69af-96fe3bf0...

Read only

Former Member
0 Likes
1,004

HI,

A conversion routine conv is represented by two function modules that adhere to the naming convention CONVERSION_EXIT_conv_INPUT|OUTPUT. In these function modules, no statements can be executed that interrupt the program flow or end a SAP LUW. A conversion routine can be assigned to a domain in the ABAP Dictionary. If a screen field refers to a domain with a conversion routine, the system automatically executes the function module ..._INPUT for every input in the relevant screen field and the function module ..._OUTPUT when values are displayed in this screen field and uses the converted content in each case. If a data object refers to such a domain, the function module ..._OUTPUT is executed for the output of the data object in a list and the converted content is displayed.

Regards

Sudheer

Read only

Former Member
0 Likes
1,004

Please check this PDF

This is coversion routines available in SAP BW. It will help you to understand about conversions.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b9119290-0201-0010-69af-96fe3bf0...

Message was edited by:

pradeepvonti kumar

Read only

Former Member
0 Likes
1,004

Conversion routine is used to convert the values from internal to external // external to internal.

This will be maintained at domain level of the field and default conversion routine is ALPHA.

There will 2 conversion routines one ends with _INPUT and the other ends with _OUTPUT.

All conversion routined starts with CONVERSION_EXIT_*

Eg:

CONVERSION_EXIT_ALPHA_INPUT Conversion exit ALPHA, external->internal

CONVERSION_EXIT_ALPHA_OUTPUT Conversion exit ALPHA, internal->external