Application Development 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: 

How to use 2 transactions in BDC?

Former Member
0 Kudos

Hi all,

Can any one tell me how to use 2 Transactions in BDC. Is it possible if yes how?

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

u can use call transaction twice with two different transaction code.

in case of session method :

Have one BDC_OPEN_GROUP, multiple BDC_INSERT s and one BDC_CLOSE_GROUP.

You should have multiple BDC_INSERT s for multiple transactions.

call function BDC_OPENGROUP.

Build BDC data and cal lBDC_INSERT for transaction 1

Build BDC data and cal lBDC_INSERT for transaction 2

Build BDC data and cal lBDC_INSERT for transaction 3

paas the tcodes to bdc_insert.

call function BDC_CLOSE_GROUP.

2 REPLIES 2

Former Member
0 Kudos

u can use call transaction twice with two different transaction code.

in case of session method :

Have one BDC_OPEN_GROUP, multiple BDC_INSERT s and one BDC_CLOSE_GROUP.

You should have multiple BDC_INSERT s for multiple transactions.

call function BDC_OPENGROUP.

Build BDC data and cal lBDC_INSERT for transaction 1

Build BDC data and cal lBDC_INSERT for transaction 2

Build BDC data and cal lBDC_INSERT for transaction 3

paas the tcodes to bdc_insert.

call function BDC_CLOSE_GROUP.

Former Member
0 Kudos

Hi

you can call 2 transactions in BDC for uploading the data.

Here we need to record 2 transactions (shdb).

Once completion of the recording. Populate the data into input internal table .

Loop the internal table and process the 2 transactions

like

1. BDC_OPEN_GROUP

2. LOOP AT ITAB

a. Populate first transaction recording data

and pass transaction to the BDC_INSERT_GROUP.

BDC_INSERT_GROUP.

b. Populate second transaction recording data

and pass transaction to the BDC_INSERT_GROUP.

BDC_INSERT_GROUP.

ENDLOOP.

3. BDC_CLOSE_GROUP