Application Development 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: 

functional recall

Former Member
0 Kudos
113

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

1 REPLY 1

nirajgadre
Active Contributor
0 Kudos
66

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.