‎2008 May 29 12:37 PM
Hello , I need your help , to access to every date in an interval of the select option , in order to execute a function module that use date in one of its parameters .
select-options : dat for sy-datum .
CALL FUNCTION 'ZPRUEBA''
EXPORTING
offic =
chdsk =
inicio_periodo =
FIM_PERIODO = dat "but i need here every date of the interval
NO_UPDATE =
IMPORTING
NR_COBRANCAS =
.
ENDSELECT.
How can I do that ? , tnhx.
‎2008 May 29 12:39 PM
Hi,
U can write the coding as follows.
APPEND itab FROM date_low.
WHILE date_low LT date_high.
date_low = date_low + 1.
APPEND itab FROM date_low.
ENDWHILE.
Regards,
Jagadish
‎2008 May 29 12:39 PM
Hi,
U can write the coding as follows.
APPEND itab FROM date_low.
WHILE date_low LT date_high.
date_low = date_low + 1.
APPEND itab FROM date_low.
ENDWHILE.
Regards,
Jagadish
‎2008 May 29 1:28 PM
‎2008 May 29 12:41 PM
hi Ali,
you have two dates for the interval (date_low and date_high)
you also need an internal table for the dates day by day (itab)
pls. see this preudo code to get the logic:
APPEND itab FROM date_low.
WHILE date_low LT date_high.
date_low = date_low + 1.
APPEND itab FROM date_low.
ENDWHILE.
hope this helps
ec
‎2008 May 29 12:41 PM
hi
put the function module in the loop.
data : date like sy-datum.
select-options : s_date for date.
while ( s_date-low LE s_date-high ).
CALL FUNCTION 'ZPRUEBA''
EXPORTING
offic =
chdsk =
inicio_periodo =
FIM_PERIODO = s_date-low
NO_UPDATE =
IMPORTING
NR_COBRANCAS =
.
add 1 to s_date-low.
endwhile.
reward if helpful
prasanth