on 05-12-2006 7:05 PM
Hi,
I have a Z field which should be shown on the user screen as RCO*** where *** is any number which user enters , where as it should be stored into the table as ***CO . Thus i want to create a conversion routine like ALPHA at the domain level.
But how do we create a custom Z conversion routine ?
Kunal
Hi Kunal,
Pls find some description about the conversion routine. It might be helpful to you.
Conversion takes place when converting the contents of a screen field from display format to SAP-internal format and vice versa and when outputting with the ABAP statement WRITE, depending on the data type of the field.
A conversion routine is identified by its five-place name and is stored as a group of two function modules. The function modules have a fixed naming convention. The following function modules are assigned to conversion routine xxxxx:
CONVERSION_EXIT_xxxxx_INPUT
CONVERSION_EXIT_xxxxx_OUTPUT
The INPUT module performs the conversion from display format to internal format. The OUTPUT module performs the conversion from internal format to display format.
If a screen field refers to a domain with a conversion routine, this conversion routine is executed automatically each time an entry is made in this screen field or when values are displayed with this screen field.
Cheers,
Vikram
Pls reward helpful replies!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need first to create FMs CONVERSION_EXIT_ZMINE_OUTPUT and CONVERSION_EXIT_ZMINE_INPUT, then you can create a Z domain in SE11 and assign ZMINE like convertion routine.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kunal,
You can create conversion routine thru SE37 tcode. Your conversion routine is basically a FM and then attach this routine to the domain of the Z Field.
Cheers,
Vikram
Pls reward helpful replies!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.