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

module pool

Former Member
0 Likes
1,114

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,091

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.

Read only

Former Member
0 Likes
1,091

This message was moderated.

Read only

Former Member
0 Likes
1,091

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.

Read only

gurunathkumar_dadamu
Active Contributor
0 Likes
1,091

Hi srikanthreddy,

please try to explain the scenario clearly.

Regards,

Guru

Read only

Former Member
0 Likes
1,091

This message was moderated.

Read only

Former Member
0 Likes
1,091

Hi ,

        Please check the question before u post. The way you put the question makes no sense , please be clear in mentioning such things.

Read only

Former Member
0 Likes
1,091

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