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

session method

Former Member
0 Likes
382

hi experts,

how can we run 2 transactions in a single session using bdc_insert_group?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
359

Hello Santhosh,

Yes, two transactions can be executed in the same session.

1) First a session is opened by calling the function module 'BDC_OPEN_GROUP'.

2) The screen elements of the first transaction are inserted into the t_bdc_tab which is of the type bdcdata.

After all the screen elements are introduced into the table t_bdc_tab, call the FM 'BDC_INSERT', and pass the transaction code and the table t_bdc_tab to the FM.

3) Step 2 has to be followed for the second transaction as well. Similarly, for the thrid, fourth and other successive transactions.

4) After all the transactions have been inserted into the session using bdc_insert FM, the session should be closed by calling the FM 'BDC_CLOSE_GROUP'.

Now, when the session is executed from the transaction SM35, the transactions are executed one after the other in the order they have been introduced.

Hope this helps you,

Regards,

Vijaya.

2 REPLIES 2
Read only

Former Member
0 Likes
359

Hi Santhosh,

Not sure but I think it is <b>possible</b>.

Check out the link for more detail.

http://help.sap.com/saphelp_erp2005/helpdata/en/fa/097119543b11d1898e0000e8322d00/frameset.htm

Reward points if this Helps.

Manish

Read only

Former Member
0 Likes
360

Hello Santhosh,

Yes, two transactions can be executed in the same session.

1) First a session is opened by calling the function module 'BDC_OPEN_GROUP'.

2) The screen elements of the first transaction are inserted into the t_bdc_tab which is of the type bdcdata.

After all the screen elements are introduced into the table t_bdc_tab, call the FM 'BDC_INSERT', and pass the transaction code and the table t_bdc_tab to the FM.

3) Step 2 has to be followed for the second transaction as well. Similarly, for the thrid, fourth and other successive transactions.

4) After all the transactions have been inserted into the session using bdc_insert FM, the session should be closed by calling the FM 'BDC_CLOSE_GROUP'.

Now, when the session is executed from the transaction SM35, the transactions are executed one after the other in the order they have been introduced.

Hope this helps you,

Regards,

Vijaya.