Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

regarding function module BDC_INSERT

Former Member
0 Likes
646

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

6 REPLIES 6
Read only

Former Member
0 Likes
607

hi Ravi,

Use <b>REFRESH BDCDATA.</b> statement within the loop statement ...

Read only

Former Member
0 Likes
607

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

Read only

0 Likes
607

loop at itab.

REFRESH BDCDATA.

ur logic.

endloop.

PERFORM CLOSE_GROUP.

Read only

Former Member
0 Likes
607

U have to clear.Other wise u will face that problem.

Read only

former_member404244
Active Contributor
0 Likes
607

Hi ravi,

perform open_group.

loop at itab.

refresh bdcdata.

perform insert_group.

endloop.

perform close_group.

Regards,

Nagaraj

Read only

Former Member
0 Likes
607

Use this logic.

Perfomr OPEN_GROUP.

LOOP AT itab.

clear bdcdata.

populate BDC data table.

perform BDC_INSERT.

endloop.

PERFORM close_group.