Skip to Content
avatar image
Former Member

BW Datasource

Hi,

In BW datasource, I have the following code:

FETCH NEXT CURSOR s_cursorINTO CORRESPONDING FIELDS OF TABLE lt_data
PACKAGE SIZE s_s_if-maxsize.
IF sy-subrc = 0.
s_counter_datapakid = s_counter_datapakid + 1.
LOOP AT lt_data INTO ls_data.

e_t_data-werks = ls_data-werks.
e_t_data-matnr = ls_data-matnr.

e_t_data-count = ls_data-count + 1

APPEND e_t_data.

ENDLOOP.

In debug, I can see after ENDLOOP, the e_t_data[] become empty. Program goes back to FETCH NEXT statement above. Then go thru the LOOP again by appending new record to e_t_data.

If e_t_data[] has been empty after the ENDLOOP, where is the record saved? And in RSA3, I still see all record extracted successfully.??? Very confusing.

Please advise.

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers