Funktionsbaustein DYNP VALUES READ

Aus SAP-Wiki
Zur Navigation springenZur Suche springen

Siehe Sammlung Funktionsbausteine.

Dieser Funktionsbaustein DYNP_VALUES_READ liest die Dynprowerte vor dem Process-After-Input (PAI).

DATA(lt_dynp_values) = VALUE dynpread_t( ( fieldname = iv_field ) ).
CALL FUNCTION 'DYNP_VALUES_READ'
  EXPORTING
    dyname     = 'Z/MM_D_RETURN_REQUEST'
    dynumb     = iv_dynnr
  TABLES
    dynpfields = lt_dynp_values
  EXCEPTIONS
    OTHERS     = 99.
IF sy-subrc <> 0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'DYNP_VALUES_READ'
  EXPORTING
    DYNAME                               =
    DYNUMB                               =
"   TRANSLATE_TO_UPPER                   = ' '
"   REQUEST                              = ' '
"   PERFORM_CONVERSION_EXITS             = ' '
"   PERFORM_INPUT_CONVERSION             = ' '
"   DETERMINE_LOOP_INDEX                 = ' '
"   START_SEARCH_IN_CURRENT_SCREEN       = ' '
"   START_SEARCH_IN_MAIN_SCREEN          = ' '
"   START_SEARCH_IN_STACKED_SCREEN       = ' '
"   START_SEARCH_ON_SCR_STACKPOS         = ' '
"   SEARCH_OWN_SUBSCREENS_FIRST          = ' '
"   SEARCHPATH_OF_SUBSCREEN_AREAS        = ' '
  TABLES
    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.
* Implement suitable error handling here
ENDIF.

Literatur