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

Errors in conversion exit

Former Member
0 Likes
2,396

Hi,

I have the following scenario:-

I have attached a conversion exit to a zdomain . A field ,say fld1 , of one of my ztables , say ztable1 is based on this domain.

Now I have generated a maintenance view for the ztable1.The field is of type char(4). This field has got a related field in another table , say ztable2 ,which gives the language specific description of this field.So in ztable2 the following fields are present:- fld1, description, language_id

The function of the conversion exit is that in the output function module it would search for the description field in the related table and display it in the screen field.

the following query has been used for it in the output conversion exit function module:-

select single description from ztable1 into output where fld1 = input and language_id = sy-langu.

I found that the function module is executed when the screen is called but the value is not being shown in the screen field. I debugged the code and found that the OUTPUT export parameter of the conversion exit is correctly populated. But due to some reason the value is not coming up in the screen field.

Please let me know what is the problem andif I am doing something wrong.

Thanks,

Samrat

1 ACCEPTED SOLUTION
Read only

former_member203501
Active Contributor
0 Likes
1,524

hi cant we use the fm dynp_read_values for getting the value in to the screen field?

7 REPLIES 7
Read only

Former Member
0 Likes
1,524

USE CORRESPONDING FIELDS OF TABLE....LIKE THIS

SELECT A B C FROM DB TABLE INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE......

OR WHILE U R WRITING THE SELECT QUERY U HAV TO COMPARE WITH THE FUNCTIONAL MODULE PARAMETER,,WHICH S PRESENT IN IMPORT PARAMETERS....

Read only

Former Member
0 Likes
1,524

Hi,

which conversion exit FM did you use for the domin?

Regards,

Chris Gu

Read only

0 Likes
1,524

Hi Chris,

I am using a z conversion exit.

Thanks,

Samrat

Read only

former_member203501
Active Contributor
0 Likes
1,525

hi cant we use the fm dynp_read_values for getting the value in to the screen field?

Read only

Former Member
0 Likes
1,524

convertion exit will come into picture after you click on that field & enter some value & press ENTER.

convertion exit is to convert the input & bring field value (output) in proper format. many times to add trailing or leading zero etc. you are using for some diff purpose. never seen this use.

Read only

0 Likes
1,524

Hi All,

Thanks for your replies.

Vivek , let me tell you my understanding about conversion exits.

Conversion exits are for converting the values either before storing them in the database or before showing them in the screen. The CONVERSION_EXIT_XXXXX_INPUT is used to convert the values before they are stored in the database.CONVERSION_EXIT_XXXXX_OUTPUT is used to convert the values before they are displayed in the screen.

Here XXXXX is the conversion exit id .We need to specify the the conversion id at the domain level.

My requirement is to display a field which is actually a 4 char code.However when it will be displayed in the screen the corresponding description will be displayed in the screen.The description is stored in a text table.

I am using a z conversion exit for the same but I am not getting the values at the screen level. Also I have used similar z conversion exit for another field and there it is coming fine.

Please help me to get a solution for this.

Thanks,

Samrat

Read only

Former Member
0 Likes
1,524

Hi,

Can you put your FM code here to let us see more clearly?

Thanks and regards,

Chris Gu