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

combo box

Former Member
0 Likes
653

hi experts

I have a following problem,

mode of receipt (DD/Cash/Cheque)

I need to create a field in a table and store these value accordingly.

And i want to bring the field into dialog programming

for selecting the mode of receipt and store the single value in a field.

How to do this, what concept we need to use, is combox box available or any other method. If it is check table and value table means pls explain me the methods also.

Iam very new to this concept.

Thanks in advance.

Regards

Rajaram

5 REPLIES 5
Read only

Former Member
0 Likes
632

Please be more specific i did not understand your problem?????

Read only

gopi_narendra
Active Contributor
0 Likes
632

You can do it this way

TYPE-POOLS : vrm.
PARAMETER : p_int AS LISTBOX VISIBLE LENGTH 10 OBLIGATORY.

DATA : name  TYPE vrm_id,
       list  TYPE vrm_values,
       value LIKE LINE OF list.


AT SELECTION-SCREEN OUTPUT.
  name = 'P_INT'.
  p_int = '1'.
  value-key = '1'.
  value-text = 'DD'.
  APPEND value TO list.
  value-key = '2'.
  value-text = 'Cash'.
  APPEND value TO list.
  value-key = '3'.
  value-text = 'Cheque'.
  APPEND value TO list.

  CALL FUNCTION 'VRM_SET_VALUES'
       EXPORTING
            id     = name
            values = list.
  CLEAR list.

If its the case of a dailog programming, make sure you write this code in the PBO of the screen module only.

Regards

Gopi

Read only

0 Likes
632

Hi Gopi

You have used parameter na, actually i need to use listbox or combo box in dialog programming not in report program.

How to use in dialog programming and whats about check and value table.

will it not used for this case.

Thanks for your effort.

Regards

Rajaram

Read only

0 Likes
632

In case of module programming, place an input / output field on the screen and double clikc on it, whihc will lead you to the properties window of that element.

now the 3rd option is the Dropdown--> chose it to Listbox.

This will make ur field a list box.

Now use my above code and write it in the PBO of the screen module.

and make sure you pass the correct name for the listbox.

Regards

Gopi

Read only

Former Member
0 Likes
632

hi,

Try to refer <b>"demo_sel_screen_parameters_2"</b> program.

thanks

Dharmishta