Open all | Close all

Getting the LATEST information!

To ensure you are getting the latest information please vist this page on the new domain for SAP Development


Return dynpro values



The following code shows the syntax of the FM 'DYNP_VALUES_UPDATE'.
*Internal table to store dy dynpro fields and values

DATA: dynpfields  LIKE dynpread OCCURS 5 WITH HEADER LINE.
DATA: l_stepl     LIKE  sy-stepl.


REFRESH dynpfields.
CLEAR   dynpfields.
dynpfields-fieldname  = 'SCREENFIELD1-COL1'. "Screen field name
dynpfields-fieldvalue = 10.                  "New value
dynpfields-stepl      = l_stepl.             "Step loop for table controls
APPEND dynpfields.

CALL FUNCTION 'DYNP_VALUES_UPDATE'
  EXPORTING
    dyname     = 'SAPLBDT_GMGR'   "Program name
    dynumb     = '0270'           "Screen number
  TABLES
    dynpfields = dynpfields
  EXCEPTIONS
    OTHERS     = 0.