FM DYNP_VALUES_READ giving dump
I am using Function module DYNP_VALUES_READ as follows, but it is giving dump as invalid screen field parameter.
data: l_dyname type standard table of dynpread,
w_dynam type dynpread.
w_dynpread-fieldname = <screen-fieldname>.
append w_dyname to l_dyname.
CALL FUNCTION 'DYNP_VALUES_READ'
dyname = sy--repid
dynumb = sy-dynnr
dynpfields = l_dyname.
please let me know where am I wrong......it is giving sy-subrc = 2..which is invalid field parameter.....
thanks in advance