‎2007 Aug 14 10:15 AM
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.
‎2007 Aug 14 10:18 AM
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.
‎2007 Aug 14 10:20 AM
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.