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

Question on conversion exits

Former Member
0 Likes
543

Hi all,

Can we call a conversion exits in a program, like calling a function using CALL FUNCTION?

If yes, how do we do that?

Thank you

Goldie.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
523

Hi,

The calling of Conversion exits is similar to calling FM'S.

In deed Conversion exits are nothing but a Function Modules only.

4 REPLIES 4
Read only

Former Member
0 Likes
524

Hi,

The calling of Conversion exits is similar to calling FM'S.

In deed Conversion exits are nothing but a Function Modules only.

Read only

Sm1tje
Active Contributor
0 Likes
523

In addition to Subas:

Find the conversion exit routine via the domain of the dataelement and double click on exit. This will give you the name of the function module:

General function module CONVERSION_EXIT_APLHA_INPUT / OUTPUT.

Edited by: Micky Oestreich on Apr 10, 2008 4:07 PM

Read only

Former Member
0 Likes
523

Hi Goldie,

Check the below code .

...

DATA : l_matnr type matnr.
l_matnr = '131'.
        CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
          EXPORTING
            input              = l_matnr
          IMPORTING
            OUTPUT             = l_matnr.


Output = 000000000000000131.

The same we can use output for avoiding the leading zeros 

CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT'

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 10, 2008 10:38 AM

Read only

Former Member
0 Likes
523

Thank you Everyone.

~goldie.