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

Enqueue

Former Member
0 Likes
717

Hi,

I have one query :

1) In one session I am changing records of SCUSTOM-ID =

'abcd'

2) In another session , I am calling FM in one program

IT_SCUSTOM-ID = 'abcd'.

CALL FUNCTION 'ENQUEUE_EZSUSTOM'

EXPORTING

MODE_YSLS_INVOICE_HEA = 'S'

id = IT_SCUSTOM-ID

EXCEPTIONS

FOREIGN_LOCK = 1

SYSTEM_FAILURE = 2

OTHERS = 3

In this case sy-subrc should be 1 or 0.

Please let me know.

Regards,

Priti

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
688

Sy-subrc will be 1.

4 REPLIES 4
Read only

Former Member
0 Likes
689

Sy-subrc will be 1.

Read only

0 Likes
688

i am getting sy-subrc = 0 .

Please let me know where is it going wrong.

Read only

andreas_mann3
Active Contributor
0 Likes
688

did all your (parallel) transactions/prg. to modify SCUSTOM-ID, use the corresponding ENQUEUE-OBJECT?

check tcode sm12 too!

A.

Edited by: Andreas Mann on May 16, 2008 12:12 PM

Read only

Former Member
0 Likes
688

hi,,

as mode of lock is 'S',

sy-subrc wil be 0.