cancel
Showing results for 
Search instead for 
Did you mean: 

Coding for Init w/o Data for Generic Extractor on GLPCA

sap_cohort
Active Contributor
0 Kudos

Hi,

I created a Generic Extractor on GLPCA and it seems like I have the code working fine for either a full or an Init/Delta. Now I'd like to know what I might have to do to code for an Init without data? Surely someone must have done this?


**** FULL LOAD
      IF ENDDATE = '00000000'.
        OPEN CURSOR WITH HOLD S_CURSOR FOR
         SELECT * FROM GLPCA
            WHERE RYEAR IN LR_RYEAR
              AND POPER IN LR_POPER.
      ELSE.

**** DELTA LOAD
        OPEN CURSOR WITH HOLD S_CURSOR FOR
         SELECT * FROM GLPCA
            WHERE RYEAR IN LR_RYEAR
              AND POPER IN LR_POPER
              AND ( ( CPUDT = STARTDATE AND CPUTM >= STARTTIME ) OR CPUDT > STARTDATE )
              AND ( ( CPUDT = ENDDATE   AND CPUTM <= ENDTIME )   OR CPUDT < ENDDATE ).

      ENDIF.                             "First data package ?

Accepted Solutions (0)

Answers (2)

Answers (2)

sap_cohort
Active Contributor
0 Kudos

No coding was required for init w/o data. The FM is not called for simulation, but the date stamps are updated...

Former Member
0 Kudos

Hi

Check the SAP standard FM to create generic extractors using FM . Have used it multiple times and it works fine.

rsax_biw_get_data_simple

Thanks,

Monika

sap_cohort
Active Contributor
0 Kudos

I did use that FM as a template. I'm looking into further development of this so that if I have a datasource with many selections I might not have to code the selection for every single characteristic in the SQL Statement.

Anyone?