Skip to Content
0
Former Member
Feb 25, 2009 at 10:24 AM

Regarding Dynp_values_read

126 Views

hi all,

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.

APPEND dynpfields.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

dyname = dyname

dynumb = dynumb

TABLES

dynpfields = dynpfields.

READ TABLE dynpfields WITH KEY fieldname = 'PROJECT-LOW'.

IF sy-subrc = 0.

  • dynpfields-fieldvalue = pspnr1(type num 8).

pspnr1 = dynpfields-fieldvalue .

ENDIF.

i want the fieldvalue to be in num8 any help wud be appreciated