Skip to Content
0
Former Member
Feb 03, 2016 at 08:28 AM

Generic datasource fetching less records than expected.

21 Views

I created a generic datasource based on function module.

The RSA3 dumps with space error. But in BW it fetches the records. The issue is the number of records is less than expected.

The below code (records in i_e_t_data is around 1700000, but finally the BW fetches only 950019 records). l_startindex and l_endindex are STATIC variables, i_e_t_data is static internal table.

-----------------------------------------------------------

LOOP AT i_e_t_data INTO wa_e_t_data FROM l_startindex TO l_endindex. " To send the Data Packets from the Extractor as per the Request MAXSIZE

MOVE-CORRESPONDING wa_e_t_data TO e_t_data.

APPEND e_t_data.

ENDLOOP.

* REFRESH i_e_t_data.

IF sy-subrc <> 0.

RAISE NO_MORE_DATA.

ENDIF.

*

l_startindex = l_endindex + 1.

l_endindex = l_startindex + s_s_if-maxsize.

s_counter_datapakid = s_counter_datapakid + 1.

-------------------------------------------------


there are no warnings or errors in BW and the load completes successfully but somehow the record count are less than expected. Please help


Thanks,

Rahul S