Function ‘DYNP_VALUES_READ’

Screen에서 변경된 값을 가져올 때 유용한 Function


Source 보기
[#M_펼쳐두기..|접어두기..|DEFINE dynpro_values_read.

  clear: dynpfields, dynpfields[].
  dynpfields-fieldname = &1.
  append dynpfields.

  call function ‘DYNP_VALUES_READ’
    exporting
      dyname               = sy-cprog
      dynumb               = sy-dynnr
    tables
      dynpfields           = dynpfields
    exceptions
      invalid_abapworkarea = 1
      invalid_dynprofield  = 2
      invalid_dynproname   = 3
      invalid_dynpronummer = 4
      invalid_request      = 5
      no_fielddescription  = 6
      invalid_parameter    = 7
      undefind_error       = 8
      double_conversion    = 9
      stepl_not_found      = 10
      others               = 11.

  if sy-subrc = 0.
    read table dynpfields with key fieldname = &1.
    if sy-subrc = 0.
      &2 = dynpfields-fieldvalue.
    endif.
  endif.

ENDOFDEFINITION.  

dynpro_values_read ‘GS_HEADER-BED1’ gs_header-bed1.
_M#]

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments