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 for multiple applications

Former Member
0 Likes
431

hi all

how session method can handle multiple applications?

please tell me by some example and some program

3 REPLIES 3
Read only

Former Member
0 Likes
411

we can use multiple transactions in session method.

Suppose we have created recordings for the transactions 'MM01' 'XD01' and 'VA01'.

then we have to follow the steps.

bdc_open_group.

after this we have to fill the bdcdata structure for one transaction.here 'MM01'.

bdc_insert.

refresh bdcdata.

after this we have to fill the bdcdata structure for one transaction.here 'XD01'.

bdc_insert .

refresh bdcdata.

after this we have to fill the bdcdata structure for one transaction.here 'VA01'.

bdc_insert.

bdc_close_group.

Read only

Former Member
0 Likes
411

hi,

suppose you are using two transactions xk01 and mm01.

first open the bdc_open_group.

populate the bdcdata for transaction 'xk01'.

then use bdc_insert for xk01.

refresh bdcdata.

populate the bdcdata for the transaction 'mm01'.

then use bdc_insert for mm01.

use close_group.

Read only

Former Member
0 Likes
411

Hi,

session method handles multiple transaction at a time.

because when we go for call transaction,it will open a seperate (new) logical unit of work.Where as in case of session method parallel logical unit of work will takes place so that we will go for more than one application without interuppting the existing application,

if it is call transaction method then once we execute a new call transaction the seperate LUW will create and the existing application terminate with new application.

so it is not possible to handle more than one application with call transaction.

each and every online program has some time out, so call transaction only executes in foreground so the time out will also takes place.

so its better to use session method when we upload large amount of data.

regards,

swami.