Skip to Content
0
Former Member
Apr 20, 2010 at 12:03 PM

program is giving dump now

59 Views

hi ,

i got syntax error like below

passing the formal parameter "SUBRC" to the fields SY-SUBRC is not appropriate since

SY-SUBRC is set by statement

the code is like below,

FORM view_sap_locks.

DATA: l_num_locks LIKE sy-tabix.

CALL FUNCTION 'ENQUEUE_READ'

EXPORTING

gclient = sy-mandt

gname = c_order

guname = space

IMPORTING

number = l_num_locks

subrc = sy-subrc

TABLES

enq = t_saplocks

EXCEPTIONS

communication_failure = 1

system_failure = 2

OTHERS = 3.

please tell me how to proceed