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 rutine

Former Member
0 Likes
1,420

Hi,

I want to know what is conversion routine. i also want to use the routine:

CALL FUNCTION 'CONVERSION_EXIT_PARVW_INPUT'

EXPORTING

input = 'PY'

IMPORTING

OUTPUT =

please tell me - if i want to give PY as input parameter, how to get the output for that. please state the syntax.

regards

vivek

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
969

data:

w_parvw type tpar-parvw.

CALL FUNCTION 'CONVERSION_EXIT_PARVW_INPUT'

EXPORTING

input = 'PY'

IMPORTING

OUTPUT = w_parvw.

4 REPLIES 4
Read only

Former Member
0 Likes
970

data:

w_parvw type tpar-parvw.

CALL FUNCTION 'CONVERSION_EXIT_PARVW_INPUT'

EXPORTING

input = 'PY'

IMPORTING

OUTPUT = w_parvw.

Read only

0 Likes
969
Read only

Former Member
0 Likes
969

Hi,

Depending on the data type of the field, there is a conversion when the contents of a screen field are converted from display format to SAP-internal format and vice versa. If this standard conversion is not suitable, it can be overridden by defining a conversion routine in the underlying domain.

Conversion routines are identified by a five-place name and are 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 converts from display format to internal format, and the OUTPUT module converts from internal format to display format.

Regards,

Padmam.

Read only

Former Member
0 Likes
969

HI vivek,

Running the function module 'CONVERSION_EXIT_PARVW_INPUT' with the input as "PY", the output was "RG". Capture the value into a variable.