Application Development 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: 

How to call conversion_exit_xxxx_input FM dynamically

Former Member
0 Kudos

Hi ,

I want to call FM conversion_exit_xxxx_input dynamically.

xxxx will be different for different data elements.

eg : xxxx is ALPHA for LIFNR and CUNIT for KMEIN

if the data element has conversion exit , i would like to call tht FM.

Any pointers , please help.

Regards ,

Laxmi.

1 ACCEPTED SOLUTION

NAeda
Contributor

Hi Laxmi,

Conversion routines are maintained at Domain level.

so get the Conversion Routine(CONVEXIT) from table DD01L and concatenate with

Concatenate 'CONVERSION_EXIT_' CONVEXIT '_INPUT' and call the FM.

Hope this will helps you.

Rgds

Aeda

2 REPLIES 2

NAeda
Contributor

Hi Laxmi,

Conversion routines are maintained at Domain level.

so get the Conversion Routine(CONVEXIT) from table DD01L and concatenate with

Concatenate 'CONVERSION_EXIT_' CONVEXIT '_INPUT' and call the FM.

Hope this will helps you.

Rgds

Aeda

Former Member
0 Kudos

First you need to find the domain name of particular field from table DD03L(Filed DOMNAME) and for this domain name fetch conversion exit name from table DD01L. Now with help you concatenate statement create FM name and call it.

Steps

1 Fetch domain name based on table and field name from DD03l

2 Fetch conversion exit name from DD01l on the basis of domain name fetched in step one

3. CONCATENATE 'CONVERSION_EXIT_' Fetched conversion exit name in step two '_INPUT' INTO lv_data.

CALL FUNCTION lv_data

EXPORTING

input = lv_psphi (For project example)

IMPORTING

output = lv_psphi.

Hope this will help you.