2006 Oct 05 5:38 AM
Hello all,
I am M.Ramana Murthy, I got stuct in one issue in Dialog Programming regarding list box. Actually my requirement is like this I have 3 list box. In the first list box i have to get the list of countries from a Database table.And when i select the Country then in the second list box i have to get the states in that particular countries. and in the 3rd list box i have to get the districts in that particular state. So can any one help me out solving this probelm.
Thanks in Advance.
M.Ramana Murthy
Hello all,
I am M.Ramana Murthy, I got stuct in one issue in Dialog Programming regarding list box. Actually my requirement is like this I have 3 list box. In the first list box i have to get the list of countries from a Database table.And when i select the Country then in the second list box i have to get the states in that particular countries. and in the 3rd list box i have to get the districts in that particular state. So can any one help me out solving this probelm.
Thanks in Advance.
M.Ramana Murthy
2006 Oct 05 5:52 AM
hi kishore kari
"on your intenal table for country in the PBO status u can use
where NAME is the name of your list box
set list box property Respond to double click on give the function code to it
DATA: NAME TYPE vrm_id,
OPT11 TYPE vrm_values,
VALUE LIKE LINE OF OPT11.
LOOP AT ITAB_MM_RR_VEN_NR.
value-key = ITAB_MM_RR_VEN_NR.
value-text = ITAB_MM_RR_VEN_NR.
APPEND value TO OPT11.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = OPT11
.
ENDLOOP.
In PAI
check the OK_CODE and load the data using the same concept used above to load the data of region and distict
regards
Pulkit Agarwal
2006 Oct 05 6:33 AM
2006 Oct 07 5:46 AM
Hi Ramana,
you can use the function module <b>VRM_SET_VAL</b>UES to appear the values in list box. please refer the demo program <b>DEMO_DYNPRO_DROPDOWN_LISTBOX</b> to have clear idea.
Reward points if it is helpful
Regards
Alfred
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |