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

data fetched from database needs to be passed to selection screen - multiple entries (range)

Former Member
0 Likes
416

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
392

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.

1 REPLY 1
Read only

Former Member
0 Likes
393

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.