Skip to Content
0

BW Datasource

Apr 03, 2017 at 12:54 AM

53

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers