Question:
Hello,
I'm trying to create a datasource using a Fm. As template I've used the one SAP proposes. The problem now is that in de template:
OPEN CURSOR WITH HOLD S_CURSOR FOR
SELECT (S_S_IF-T_FIELDS) FROM SFLIGHT
WHERE CARRID IN L_R_CARRID AND
CONNID IN L_R_CONNID.
This code is used. In my program the data has to be extracted from several tables and clusters, and I put the result in an internal table.
How can I perform a similar action like OPEN CURSOR? and use this cursor? I've tried it via this code
Move it_werf[] to E_T_DATA[]
Any suggestions?
Thanks a lot
Answer:
in that case I guess you don't use an open cursor statement but the ordinary selects and you fill e_t_data indeed
cheers,
El Belgio
Answer:
Try using fetch statement after Open Cursor. Be sure to close the cursor properly if there are no more records.
_________________
__________________
Trinadha
Back again