Skip to Content
0
Former Member
Feb 20, 2006 at 04:23 AM

Two generic delta....Pls help

19 Views

Hi,

I have to extract data depending on two generic delta ..For two gen delta (ERDAT and AEDAT)I have declared 'ERDAT' as generic delta and in the fm I have inculded the logic for the other field 'AEDAT' too

For two generic delta I have written the following code in my function module for the data source...

LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT.

CASE L_S_SELECT-FIELDNM.

WHEN 'ERDAT'. " delta relevant date

MOVE-CORRESPONDING L_S_SELECT TO L_R_DATUM.

CLEAR L_R_DATUM-HIGH.

L_R_DATUM-OPTION = 'GE'.

APPEND L_R_DATUM.

WHEN OTHERS.

ENDCASE.

ENDLOOP.

IF L_R_DATUM IS INITIAL.

L_R_DATUM-LOW = '19000101'.

ENDIF.

IF L_R_DATUM IS INITIAL.

L_R_DATUM-HIGH = '99991231'.

ENDIF.

and for selection:

OPEN CURSOR WITH HOLD S_CURSOR FOR

SELECT * FROM ZIMPTT

WHERE POINT IN L_R_POINT

AND MLANG IN L_R_MLANG

AND MPTYP IN L_R_MPTYP

AND ( ERDAT IN L_R_DATUM

OR AEDAT IN L_R_DATUM ).

ENDIF. "First data package ?

But the problem is that during delta load this function module is only working for 'ERDAT',which I have declared in generic delta field,but its not working for the other field 'AEDAT',though I have included the logic for two delta field..Pls suggest...

Thanks in advance...