‎2013 Jun 25 7:38 AM
hai,
I have write a code for drop down list and I got it, the problem is what ever we select the drop down field print in ztable (zcust_master-ANRED)
please give me solution.
DATA: text TYPE vrm_id,
list TYPE vrm_values,
value LIKE LINE OF list.
IF list IS INITIAL.
SELECT * FROM tsad3t INTO CORRESPONDING FIELDS OF TABLE it_title WHERE langu EQ 'EN'.
LOOP AT it_title.
value-key = it_title-title.
value-text = it_title-title_medi.
APPEND value TO list.
ENDLOOP.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'WA_MASTER-ANRED'
values = list.
ENDIF.
Regards,
Srikanth
‎2013 Jun 25 7:48 AM
Hi Srikanth,
can u explain in a better way about yr problem.
Let me know if any clarification/help required.
Thanks & Best Regards.
Pavan Neerukonda.
‎2013 Jun 25 7:50 AM
‎2013 Jun 25 10:14 AM
Hi srikanthreddy,
In layout, for that drop down field assign the function code.
So when ever you select the value in the dropdown,, that function code will get trigger in PAI,
you will have the selected value in the screen field name itself so directly you can make you requirement fulfill.
‎2013 Jun 25 10:31 AM
Hi srikanthreddy,
please try to explain the scenario clearly.
Regards,
Guru
‎2013 Jun 25 12:47 PM
‎2013 Jun 26 11:13 AM
Hi ,
Please check the question before u post. The way you put the question makes no sense , please be clear in mentioning such things.
‎2013 Jun 26 1:15 PM
Hi Sreekanthreddy,
Create an Input-Output Box in the screen.
Double click on it and select the Listbox Option from the DropDown Option available there.
Declare the field as the type of our custom field.
Example : zname-name.
When you select the option from the drop down and do the operations in PAI it automatically stores in the custom table.
Hope this will help you resolving your problem.
Regards,
Vinay Mutt