2009 Nov 16 5:01 AM
hi,
when i call a function like
CALL FUNCTION 'QC01_BATCH_VALUES_READ'
EXPORTING
i_val_matnr = it_lips-matnr
i_val_charge = it_lips-charg
TABLES
t_val_tab = t_val_tab
EXCEPTIONS
no_class = 1
internal_error = 2
no_values = 3
no_chars = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
when i call same in prog. again for same parameter ( same batch and matnr ) it shows always same value either other user already change the values.
when i close the prog. and re-run it then it shows new values.
mukesh
2009 Nov 16 5:07 AM
Hi,
I guess when you are calling the function module first time then standard program creates a lock on the entry hence when you are trying to call the function module again with same parameters it shows you that message.
when you trying to run the program again till that time the lock from that entry is removed hence you see the new value.
you can check this lock in SM12 transaction.