cancel
Showing results for 
Search instead for 
Did you mean: 

BPM BAPI COMMIT

former_member568822
Active Participant
0 Kudos

Hi,

I try to create a sync connection BPM which soap post data to BPM then inside BPM i have 2 bapi which the first bapi will need to commit by XI before process the second bapi. I have done all this and it work but there was a problem of the commit process time sometime the second bapi will return mat doc not found. I know that BPM have the wait process but the minimum time is 1 minute which is quit long for sync process. Is that any way to make the second bapi process only is the 1st bapi commit successful.

Best Regard,

Gan

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member568822
Active Participant
0 Kudos

solve by looping the rfc until geting return-type 's' or count > 18.

MichalKrawczyk
Active Contributor
0 Kudos

hi,

1. don't create sync BPM flows ! BPMs are slow and with sync it's one of the worse designs ever

2. you can create a Z BAPI that will have those two bapis inside

(so you can commit the first one before calling the second one)

try to rethink the desing of your flow (so as not to use sync BPM)

Regards,

Michal Krawczyk

former_member568822
Active Participant
0 Kudos

Hi,

Thanks for reply. I am also consider about the performance of the BPM but the reason i am using BPM is to let the XI handle the commit for bapi. For example lets said after XI past data to bapi and then the connection between XI and SAP R3 down then the soap client cant get the data but the bapi with commit if i put the commit on z bapi. In order to control this i have to let XI control the commit.

Is that anyway to handle this?

Best Regard,

GAN

Edited by: fcgan on Dec 2, 2008 8:12 AM

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>SAP R3 down then the soap client cant get the data but the bapi with commit if i put the commit on z bapi. In order to control this i have to let XI control the commit.

and what's the difference? XI will commit and connection will go down

you will have the same situation...

and chances that connection will go down in a BPM (in a few seconds)

are much higher then without BPM (less then one sec for example)

Regards,

Michal Krawczyk

former_member568822
Active Participant
0 Kudos

Hi,

The different is the XI will only commit the bapi "after" getting the bapi return message type 'S' which mean the if the connection down on while the bapi process "Not respond" then the bapi not committed but if in zbapi then the bapi will sure get committed.

Thanks.

Former Member
0 Kudos

Hi,

If you are usign BPM and calling the first BAPI synchronously, then you can avoid calling COMMIT BAPI!

Regards,

Jilan