Application Development 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: 

fill select options field

Former Member
0 Kudos

Hi friends,

I'm trying to fill the select option field.

I get wrong values.

s_date. lt_wd_date contains many date.
data: lt_wd_date TYPE TABLE OF sy-datum,
         lw_wd_date TYPE sy-datum.

SELECT-OPTIONS   s_date    FOR    ccihs_ialhiot-evdat.

    PERFORM weekday_to_date TABLES lt_wd_date
                            USING  p_week
                                   s_date-low
                                   s_date-high.

    LOOP AT lt_wd_date INTO lw_wd_date.
     s_date-low = lw_wd_date.
     s_date-sign = 'I'.
     s_date-option = 'EQ'.
     APPEND lw_wd_date TO s_date.
    ENDLOOP.

Regards

sas erdem

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Instead of

APPEND lw_wd_date TO s_date.

Try:

APPEND s_date.

3 REPLIES 3

Former Member
0 Kudos

Instead of

APPEND lw_wd_date TO s_date.

Try:

APPEND s_date.

Former Member
0 Kudos

Hi u can't append same time work area and variable.

Former Member
0 Kudos

the problem is that you are appending the wrong work area.

check the code in " "

data: lt_wd_date TYPE TABLE OF sy-datum,

lw_wd_date TYPE sy-datum.

SELECT-OPTIONS s_date FOR ccihs_ialhiot-evdat.

PERFORM weekday_to_date TABLES lt_wd_date

USING p_week

s_date-low

s_date-high.

LOOP AT lt_wd_date INTO lw_wd_date.

s_date-low = lw_wd_date.

s_date-sign = 'I'.

s_date-option = 'EQ'.

" APPEND S_DATE."

ENDLOOP.