Skip to Content
0
Jan 07, 2012 at 06:59 AM

Copy Function between dates

15 Views

Hi Experts,

I have a requirement to copy data of one date (0CALDAY) to all dates of the month. I have tried below fox code. But the copy is not working. Could you please help me is there any way to solve this issue.

DATA LAST_DAY TYPE 0CALDAY.

DATA FIRST_DAY TYPE 0CALDAY.

DATA VAR_DAY TYPE 0CALDAY.

DATA LAST_PREV_DAY TYPE 0CALDAY.

.

.

.

.

.

IF NOT { KFBA_DLZ,LAST_PREV_DAY} = { KFBA_DLZ,LAST_DAY}.

IF NOT VAR_DAY = LAST_DAY.

KFBA = { KFBA_DLZ,LAST_DAY}.

{ KFBA_DLZ,VAR_DAY} = KFBA.

KFCO = { KFCOUNT,LAST_DAY}.

{ KFCOUNT,VAR_DAY } = KFCO.

BREAK-POINT.

VAR_DAY = TMVL(VAR_DAY,1).

KFBA = 0.

KFCO = 0.

ENDIF.

ENDIF.

Especially offset of calday ()inside IF condition is not working.

Thanks,

Gopi R