‎2008 Nov 05 12:46 AM
How could I create a conversion routine for my own data element like MEINS???
‎2008 Nov 05 1:51 AM
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.
‎2008 Nov 05 1:51 AM
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.