i have to read ascreen field of type NUM(8) and when i pass it to FM Dynp_values_read
the field FIELDVALUE in DYNPREAD structure is of character type.now after coming out of this FM my fieldvalue is of type character and not of type.NUM8.
DATA: dyname LIKE d020s-prog VALUE 'Z_PREMRP',
dynumb LIKE d020s-dnum VALUE '1000'.
DATA: BEGIN OF dynpfields OCCURS 3.
INCLUDE STRUCTURE dynpread.
DATA: END OF dynpfields.
MOVE 'PROJECT-LOW' TO dynpfields-fieldname.
CALL FUNCTION 'DYNP_VALUES_READ'
dyname = dyname
dynumb = dynumb
dynpfields = dynpfields.
READ TABLE dynpfields WITH KEY fieldname = 'PROJECT-LOW'.
IF sy-subrc = 0.
dynpfields-fieldvalue = pspnr1(type num 8).
pspnr1 = dynpfields-fieldvalue .
i want the fieldvalue to be in num8 any help wud be appreciated