selecting data from MVKE
I need to fetch the value of field MVGR3 from table MVKE for some MATNR.
I am using the FM "MVKE_READ_WITH_MATNR" to fetch the value for the field MVGR3 .
I have written something like this :
LOOP AT t_ltap INTO w_ltap.
CALL FUNCTION 'MVKE_READ_WITH_MATNR'
matnr = w_ltap-matnr
mvke_tab = t_mvgr3
not_found = 1
lock_on_mvke = 2
lock_system_error = 3
enqueue_mode_changed = 4
OTHERS = 5.
t_ltap table contains values for material no.So looping at that tableIm fetcing the MVGR3 field for each matnr.
However when i run this FM explicityly in SE37,I can get the values for each material.However When i call the FM through my program ,i get the exception 1 ie. SY-SUBRC = 1.
How is this?Please help.