cancel
Showing results for 
Search instead for 
Did you mean: 

RVCASK01: Question on subroutine

Former Member
0 Kudos

Hi ,

I have a question about a subroutine in standard print program RVCASK01.

What does the following subroutines do ?

PERFORM CONTACT_ENQUEUE USING VBKA-VBELN.

PERFORM CONTACT_DEQUEUE USING VBKA-VBELN.

Basically, what is enqueue or dequeue of a sales document ?

Your help is appreciated.

Thank you,

Surya.

null

Accepted Solutions (1)

Accepted Solutions (1)

former_member624107
Contributor
0 Kudos

PERFORM CONTACT_ENQUEUE USING VBKA-VBELN.

is used to request lock object EVVBKAE

primary table for lock object EVVBKAE is table VBKA.

PERFORM CONTACT_DEQUEUE USING VBKA-VBELN.

Release lock on object EVVBKAE

Former Member
0 Kudos

Hi Sheeba,

Thanks for your quick response. What is the use of this lock and Unlock of table VBKA ? Please give some more light on this.

Thank you,

Surya

former_member624107
Contributor
0 Kudos

Hi Surya..

Lock objects are used to maintain consistency in database updates..

If u r locking a database table it means that u only can update

tha table not any one else..

so we can avoid the situations in which others are also updating the table at the same time.... which may lead to inconsistency....

its always better ro lock the table before updating the table...

Former Member
0 Kudos

Hi Sheeba,

In fact I am not doing any update on the database. I have used this code in print program for smartform. I copied the standard print program. Is it appropriate to use enqueue and dequeue in the print program ? All I am doing is retrieving data and giving it to smartform.

Please give your advise.

Thank you,

Surya.

former_member624107
Contributor
0 Kudos

Hi..

If u r not doing any database update then no use of locking tables....

Former Member
0 Kudos

Thank you so much. Awarded full points.

Thanks,

Surya

Answers (0)