2013 Feb 13 4:12 PM
Hi,
This scenario is in dialog programming.
I have fetched data from database table into an internal table.
I have three entries in internal table now.
for example.,.
progno fromdate todate
1234 12/03/2012 12/04/2012
1235 11/02/2012 14/04/2012
1236 23/03/2012 21/04/2012
Now in the screen if i pass these values
LOOP at itab.
IF wa_au_v_date-bill_dat_from IS NOT INITIAL
and wa_au_v_date-bill_dat_to is not initial.
so_bdr-low = wa_au_v_date-bill_dat_from.
so_bdr-high = wa_au_v_date-bill_dat_to.
APPEND so_bdr to so_bdr.
ENDIF.
ENDLOOP.
Now so_bdr[] has all the three records.
But in the screen only the first record is appearing if i click and check the multiple entries arrow button.
2013 Feb 13 4:49 PM
figured out the issue.
i should use 'BT' in the option as shown in the underlined part below to get all the values into the select option range screen
LOOP at itab.
so_bdr-sign = 'I'.
so_bdr-option = 'BT'.
IF wa_au_v_date-bill_dat_from IS NOT INITIAL
and wa_au_v_date-bill_dat_to is not initial.
so_bdr-low = wa_au_v_date-bill_dat_from.
so_bdr-high = wa_au_v_date-bill_dat_to.
APPEND so_bdr to so_bdr.
ENDIF.
ENDLOOP.
Hi,
This scenario is in dialog programming.
I have fetched data from database table into an internal table.
I have three entries in internal table now.
for example.,.
progno fromdate todate
1234 12/03/2012 12/04/2012
1235 11/02/2012 14/04/2012
1236 23/03/2012 21/04/2012
Now in the screen if i pass these values
LOOP at itab.
IF wa_au_v_date-bill_dat_from IS NOT INITIAL
and wa_au_v_date-bill_dat_to is not initial.
so_bdr-low = wa_au_v_date-bill_dat_from.
so_bdr-high = wa_au_v_date-bill_dat_to.
APPEND so_bdr to so_bdr.
ENDIF.
ENDLOOP.
Now so_bdr[] has all the three records.
But in the screen only the first record is appearing if i click and check the multiple entries arrow button.
2013 Feb 13 4:49 PM
figured out the issue.
i should use 'BT' in the option as shown in the underlined part below to get all the values into the select option range screen
LOOP at itab.
so_bdr-sign = 'I'.
so_bdr-option = 'BT'.
IF wa_au_v_date-bill_dat_from IS NOT INITIAL
and wa_au_v_date-bill_dat_to is not initial.
so_bdr-low = wa_au_v_date-bill_dat_from.
so_bdr-high = wa_au_v_date-bill_dat_to.
APPEND so_bdr to so_bdr.
ENDIF.
ENDLOOP.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |