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

BDC_INSERT

Former Member
0 Likes
321

hi,

in bdc session method ,how to handle mutiple transactions.

can we use in one bdc_insert functon module or multiple bdc_inserts needed .

pls help me.

2 REPLIES 2
Read only

Former Member
0 Likes
292

Hi,

Follow this skeleton logic:

open_group for tran1

loop at it_data1.

*Populate bddata structures

bdc_insert. for tran1

endloop.

close_group. for tran 1

open_group for tran2

loop at it_data2.

*Populate bddata structures

bdc_insert. for tran2

endloop.

close_group. for tran 2

reward if it helps..

regards,

Omkar.

Read only

Former Member
0 Likes
292

Hi,

Collect all BDC data in an internal table (t_bdcdata) and call the BDC_INSERT function, just once.

CALL FUNCTION 'BDC_INSERT'

EXPORTING

tcode = tcode

TABLES

dynprotab = t_bdcdata.

A easy way to look at a BDC sample program is to use SHDB and record a transaction, then for the recording use the tool Create Program on SHDB screen - which creates the BDC program.

Look through the program, you can actually use the entire program as it is.

Give points for answers.