Skip to Content
0
Mar 20, 2009 at 09:49 AM

search in results of F4 help

13 Views

I have created the following F4 help:

MODULE request_deptmanag INPUT.
  SELECT pernr nachn vorna
  FROM pa0002
  INTO CORRESPONDING FIELDS OF TABLE it_value_tab_manag.

  LOOP AT it_value_tab_manag.
    CONCATENATE it_value_tab_manag-nachn it_value_tab_manag-vorna
    INTO it_value_tab_manag-cname SEPARATED BY space.
    MODIFY it_value_tab_manag.
  ENDLOOP.

* fill F4 value request for P_AUFNR
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
*     DDIC_STRUCTURE         = ' '
      retfield    = 'CNAME'
*     PVALKEY                = ' '
      dynpprog    = sy-cprog
      dynpnr      = sy-dynnr
      dynprofield = 'GV_DEPTMANAG'
*     STEPL                  = 0
*     WINDOW_TITLE           =
*     VALUE                  = ' '
      value_org   = 'S'
*     MULTIPLE_CHOICE        = ' '
*     DISPLAY                = ' '
*     CALLBACK_PROGRAM       = ' '
*     CALLBACK_FORM          = ' '
*     MARK_TAB               =
*   IMPORTING
*     USER_RESET             =
    TABLES
      value_tab   = it_value_tab_manag
*     FIELD_TAB              =
     return_tab   = it_return_tab_manag
*     DYNPFLD_MAPPING        =
*   EXCEPTIONS
*     PARAMETER_ERROR        = 1
*     NO_VALUES_FOUND        = 2
*     OTHERS                 = 3
            .
  IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

  gv_deptmanag = it_return_tab_manag-fieldval.

ENDMODULE.                    "request_deptmanag INPUT

The result of this help is a list with column headers: PersNo, Last name, First name and Full name. When I want to search in this result list then I can only enter a value in the personnel number box, I cannot click in the other fields:

Restrictions

Personnel Number    ...
Last name           ...
First name          ...
Full name           ...

see: [http://picasaweb.google.be/lotteliesje/SAPIssues#5315204434886056050]

Kind regards,

Lieselot