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

sm59 & load distribution

Former Member
0 Likes
484

Hi Friends,

I have a question about sm59. Now, I am creating r3 connections from sm59. Lets say the connection name as 'TEST'. In this connection I don't select load distribution. And when I am calling the bapis;


call funciton 'BAPI1'
destination TEST

call function 'BAPI_TRANSACTION_COMMIT'
destinaton 'TEST'

I see that If I don't call BAPI_TRANSACTION_COMMIT BAPI1's change operations is not implemented. And If I call BAPI_TRANSACTION_COMMIT, BAPI1's change operations are done. So, I think that 'different function calls via same destination are using same session !!' Maybe this assumption is wrong, If wrong please correct.

On the other hand, I want to use load distribution in R3 connection. My real question is in this point. As known, in load distriution selection, the balancer distributes the client to different servers. I need to call two function(BAPI1 and its commit). And there is a possibility;

while calling BAPI1, server1 is used

while calling COMMIT BAPI server2 is used.

Like a this possibility, my BAPI1's change operations will be done? I mean that different server will use the same session?

And can you give document information, about load balancing in sm59.

Thanks.

Hi Friends,

I have a question about sm59. Now, I am creating r3 connections from sm59. Lets say the connection name as 'TEST'. In this connection I don't select load distribution. And when I am calling the bapis;


call funciton 'BAPI1'
destination TEST

call function 'BAPI_TRANSACTION_COMMIT'
destinaton 'TEST'

I see that If I don't call BAPI_TRANSACTION_COMMIT BAPI1's change operations is not implemented. And If I call BAPI_TRANSACTION_COMMIT, BAPI1's change operations are done. So, I think that 'different function calls via same destination are using same session !!' Maybe this assumption is wrong, If wrong please correct.

On the other hand, I want to use load distribution in R3 connection. My real question is in this point. As known, in load distriution selection, the balancer distributes the client to different servers. I need to call two function(BAPI1 and its commit). And there is a possibility;

while calling BAPI1, server1 is used

while calling COMMIT BAPI server2 is used.

Like a this possibility, my BAPI1's change operations will be done? I mean that different server will use the same session?

And can you give document information, about load balancing in sm59.

Thanks.

2 REPLIES 2
Read only

Former Member
0 Likes
457

Hi Huseyin,

BAPIs will always post as a single Logical Unit of Work.

Regards

Arun

Read only

0 Likes
457

Hi Arun,

Are you saying that, altough different servers are used to call bapi functions only one Logical Unit of Work will be used? How this operation is handled? Is Logical Unit of Work deal with only the program/function that calls bapis? Can you explain a bit more the logic of Logical Unit of Work? Or can you send document?

Thanks.