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 Exit for Functional Location

vijayjanoti
Discoverer
0 Likes
11,519

Hi Everyone,

As per Conversion Exit i.e. CONVERSION_EXIT_ALPHA_INPUT can be used to change the format of given field. For this in latest ABAP syntax we can use:

DATA(lv_real) = |{ lv_kunnr ALPHA = IN/OUT } |.

Do we have similar syntax provided by SAP for CONVERSION_EXIT_TPLNR_INPUT or CONVERSION_EXIT_TPLNR_OUTPUT?

3 REPLIES 3
Read only

santhosh_85
Product and Topic Expert
Product and Topic Expert
0 Likes
9,563

As of now ABAP support only for alpha Conversion . not all CONVERSION_EXIT_*. however there are around 18 formatting options available base on ABAP version.

if non are matching the requirement use the conversion exit inside the function method. Example

Method conversion_tplnr
Importing iv_input_TPLNR type kunnr
returning re_output type kunnr .

Method conversion_tplnr
CALL FUNCTION 'CONVERSION_EXIT_TPLNR_OUTPUT'
exporting 
input =  v_input_TPLNR 
importing
output = re_output.


DATA(lv_real) = conversion_tplnr( lv_kunnr ).
Read only

0 Likes
9,563

Thanks for your response.

Let see if future releases have such options. horst.keller Anything on on this thread ?

Read only

RaymondGiuseppi
Active Contributor
9,563