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

How create a conversion routine

Former Member
0 Likes
4,982

How could I create a conversion routine for my own data element like MEINS???

1 ACCEPTED SOLUTION
Read only

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
2,920

It's simple... I suppose you'll have your own Z domain for your data element.

You can create the function modules CONVERSION_EXIT_xxxxx_INPUT and CONVERSION_EXIT_xxxxx_OUTPUT, assigning them to your own function group. When creating the new function modules, the system will display a warining saying that the name is reserved for SAP, but you can ignore it. Take a look at any existing conversion exit, such as CONVERSION_EXIT_ALPHA_INPUT to see how to define the interface and code your conversion logic.

In the domain definition, you can enter any 5-character name which will be the xxxxx above. Activate the domain and you can use the data element in screen field definitions - the screen will call your conversion routines as necessary.

1 REPLY 1
Read only

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
2,921

It's simple... I suppose you'll have your own Z domain for your data element.

You can create the function modules CONVERSION_EXIT_xxxxx_INPUT and CONVERSION_EXIT_xxxxx_OUTPUT, assigning them to your own function group. When creating the new function modules, the system will display a warining saying that the name is reserved for SAP, but you can ignore it. Take a look at any existing conversion exit, such as CONVERSION_EXIT_ALPHA_INPUT to see how to define the interface and code your conversion logic.

In the domain definition, you can enter any 5-character name which will be the xxxxx above. Activate the domain and you can use the data element in screen field definitions - the screen will call your conversion routines as necessary.