search help返回所选字段

TYPES  SHLP_DESCR_T TYPE SHLP_DESCR.
*&---------------------------------------------------------------------*
*&      Form  ALRT_HLP
*&---------------------------------------------------------------------*

FORM F4CALLBACK    TABLES P_RECORD_TAB  STRUCTURE SEAHLPRES
                 CHANGING P_SHLP        TYPE SHLP_DESCR_T
                          P_CALLCONTROL LIKE DDSHF4CTRL.
  P_CALLCONTROL-RETALLFLDS = 'X'.
ENDFORM.                                                    "F4CALLBACK
*&---------------------------------------------------------------------*
*&      Form  ALRT_HLP
*&---------------------------------------------------------------------*

FORM ALRT_HELP
  DATA: IT_HELP       TYPE STANDARD TABLE OF T_HELP.
  DATA: IT_RET        TYPE STANDARD TABLE OF DDSHRETVAL.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      RETFIELD         = 'ALRT'
      DYNPPROG         = SY-REPID
      DYNPNR           = SY-DYNNR
      DYNPROFIELD      = 'Plant'
      VALUE_ORG        = 'S'
      CALLBACK_PROGRAM = SY-CPROG
      CALLBACK_FORM    = 'F4CALLBACK'
    TABLES
      VALUE_TAB        = IT_HELP
      RETURN_TAB       = IT_RET
    EXCEPTIONS
      PARAMETER_ERROR  = 1
      NO_VALUES_FOUND  = 2
      OTHERS           = 3.
ENDFORM.
 

你可能感兴趣的:(function,table,search,callback,Types,structure)