‎2008 Nov 24 7:06 AM
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
‎2008 Nov 24 11:13 AM
hi cant we use the fm dynp_read_values for getting the value in to the screen field?
‎2008 Nov 24 8:37 AM
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....
‎2008 Nov 24 9:41 AM
Hi,
which conversion exit FM did you use for the domin?
Regards,
Chris Gu
‎2008 Nov 24 10:57 AM
‎2008 Nov 24 11:13 AM
hi cant we use the fm dynp_read_values for getting the value in to the screen field?
‎2008 Nov 24 11:43 AM
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.
‎2008 Nov 24 2:28 PM
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
‎2008 Nov 25 2:23 AM
Hi,
Can you put your FM code here to let us see more clearly?
Thanks and regards,
Chris Gu