on 02-20-2006 4:23 AM
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...
hi,
if you are extracting from table/view, it's suggested to simply just create 2 datasource with different generic delta field, one with ERDAT and the other with AEDAT. then assign these 2 datasources to the same infosource in bw.
hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.