cancel
Showing results for 
Search instead for 
Did you mean: 

Mutual Exclusion with BPM possible? other solution?

Former Member
0 Kudos

hi together,

i have following problem:

i have a bpm which makes an rfc to a database. if a process touch the database i want that the database is locked for other instances of this BPM or other bpms (integrity). after successful working of the process in the bpm the barrier will be lifted by the successful process.

now, is it possible to "close" a barrier that no other process can modify the data (mutual exclusion)? how can i manage this? how can i open this barrier? and how can i manage a aborting of a process within the critical section (within the closed barrier)? how can i open the critical section if the process is canceled?

thanks a lot

alex schramm

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hallo Alexander,

it should be possible. SAP R/3 provides a mechanism to lock/unlock (ABAP: enqueue/dequeue statement) data (entries in DB tables).

Depending on the amount of table entries you could lock all the entries.

A workaround could be to lock a dummy entry.

In this case, your RFC has to look,. if the dummy entriy is locked. When YES: your RFC should inform the sending BPM.

Regards Mario

Hope this hepls.