‎2007 Sep 20 5:21 AM
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
‎2007 Sep 20 5:29 AM
Please be more specific i did not understand your problem?????
‎2007 Sep 20 5:29 AM
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
‎2007 Sep 20 5:47 AM
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
‎2007 Sep 20 6:09 AM
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
‎2007 Sep 20 6:16 AM
hi,
Try to refer <b>"demo_sel_screen_parameters_2"</b> program.
thanks
Dharmishta