cancel
Showing results for 
Search instead for 
Did you mean: 

sm59 & load distribution

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Huseyin,

Its really weared situation...really speaking if you call two BAPI's separately it cannot be a part of same process...

...Anyway, I think correct solution would be to create another z wrapper function module and inside z-wrapper function module you can call both BAPI's...As we know its is manadatory to call Commit Work after calling BAPI's in order to reflect changes.

One more solution you can call Inbound Proxy and you can call both BAPIs there.

Nilesh

Former Member
0 Kudos

Hi Nilesh,

In fact, I should ask this question without load balancing in sm59. Now, When there is no load balancing, one server is used in r3 connection, I am calling the bapi and its commit function sequentially. And I see that my bapi's operation is successfull, so commit function is successfull.

Now, we know that for all bapi call one LUW(Logical Unit of Work) is used. So, <b> is the LUW created in my program</b> that calls two bapis? Or how this bapis are handled when using sm59? After this, maybe we can find the answer load balancing in sm59 for calling bapi and its commit function.

Thanks.

Huseyin Akturk