2006 Sep 07 12:07 PM
when we use the function module BDC_INSERT , in BDC using sessions , why it picks up the first record agagin and again from BDCDATA internal table though there are multiple records.
with regards
varma
when we use the function module BDC_INSERT , in BDC using sessions , why it picks up the first record agagin and again from BDCDATA internal table though there are multiple records.
with regards
varma
2006 Sep 07 12:12 PM
hi Ravi,
Use <b>REFRESH BDCDATA.</b> statement within the loop statement ...
2006 Sep 07 12:13 PM
Hi,
Are you clearing and refreshing the BDCdata after you call this function module?
If not you have to clear and refresh this internal table after each call.
Rgds,
HR
2006 Sep 07 12:16 PM
loop at itab.
REFRESH BDCDATA.
ur logic.
endloop.
PERFORM CLOSE_GROUP.
2006 Sep 07 12:16 PM
2006 Sep 07 12:41 PM
Hi ravi,
perform open_group.
loop at itab.
refresh bdcdata.
perform insert_group.
endloop.
perform close_group.
Regards,
Nagaraj
2006 Sep 07 12:41 PM
Use this logic.
Perfomr OPEN_GROUP.
LOOP AT itab.
clear bdcdata.
populate BDC data table.
perform BDC_INSERT.
endloop.
PERFORM close_group.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |