Skip to Content
0
Former Member
Jan 27, 2010 at 09:03 AM

getting sy-subrc = 4

4906 Views

hi,

in my select statement giving sy-subrc = 4.

please tell me why? i am fetchind data from a view.

Types:begin of zv_mast_stko,

matnr type zv_mast_stko-matnr,

werks type zv_mast_stko-werks,

stlal type zv_mast_stko-stlal,

end of zv_mast_stko.

data:gt_mast type table of zv_mast_stko,

gs_mast LIKE LINE OF gt_mast.

INITIALIZATION.

gv_repid = sy-repid. "report id

r_lkenz-sign = 'I'.

r_lkenz-option = 'NE'.

r_lkenz-low = 'X'.

APPEND r_lkenz.

clear r_lkenz.

SELECT matnr

werks

STLAL

FROM zv_mast_stko

INTO TABLE gt_mast

WHERE matnr IN so_matnr

AND werks in so_werks

AND stlal EQ po_stlal

AND stlst EQ po_stlst

and lkenz IN r_lkenz.