‎2006 Dec 07 9:30 AM
hi experts,
how can we run 2 transactions in a single session using bdc_insert_group?
‎2006 Dec 07 10:36 AM
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.
‎2006 Dec 07 10:11 AM
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
‎2006 Dec 07 10:36 AM
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.