Skip to Content
avatar image
Former Member

How to use Value-Request on Screen Field

Hi

I m facing a problem .. the scenario is i have to limit search help on Screen 100 field . but the following line is not working

AT SELECTION-SCREEN ON help-REQUEST FOR wa-soffice.

kindly help me out

Regards

Ammad

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 22, 2010 at 09:44 AM

    Hi,

    As per ur requirement u should fetch the relavant data which u want in F4 in the below event

    INITIALIZATION.

    *Get data for F4 help - RFC

    SELECT rfcdest

    INTO TABLE t_rfc FROM rfcdes

    WHERE rfcdest LIKE '%CRM%' AND

    rfctype = 'T'.

    Now use this event to display the same

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_rfc.

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

    EXPORTING

    retfield = 'RFCDEST'

    dynpprog = sy-repid

    dynpnr = '1000'

    dynprofield = 'P_RFC'

    value_org = 'S'

    TABLES

    value_tab = t_rfc

    EXCEPTIONS

    parameter_error = 1

    no_values_found = 2

    OTHERS = 3.

    Hope this helps.

    Regds

    Seema

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 22, 2010 at 08:23 AM

    Hi,

    You have to write Your code on POH(Process on Help-Request) event of Screen 100.

    How to write Code see the following link,

    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbad0435c111d1829f0000e829fbfe/content.htm

    Hope This Resolves your issue.

    Regards,

    Raghava Channooru.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 22, 2010 at 04:06 PM

    Hi,

    What is the problem you are exactly facing ?

    Is it while using fm 'F4IF_INT_TABLE_VALUE_REQUEST'

    or

    to retrieve the values that are to be passed to 'F4IF_INT_TABLE_VALUE_REQUEST'.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 23, 2010 at 05:30 AM
    * Screen flow logic........
    
    PROCESS BEFORE OUTPUT.
    *MODULE PBO_MODULE.
    
    PROCESS AFTER INPUT.
    *MODULE PAI_MODULE.
    
    PROCESS ON VALUE-REQUEST. "F4
      FIELD EKPO-EBELP MODULE help_ekpo.
    
    

    * populate screen field from within PROCESS ON VALUE-REQUEST(F4) call
    *&------------------------------------------------------------------*
    *&      Module  help_responsibility  INPUT
    *&------------------------------------------------------------------*
    *       text
    *-------------------------------------------------------------------*
    MODULE help_ekpo INPUT.
    
    
    **Transport values to table dynpro/screen table control
      DATA: l_stepl LIKE  sy-stepl,
            l_indx  LIKE  sy-stepl.
      DATA: dynpfields        LIKE dynpread OCCURS 5 WITH HEADER LINE.
    
    * Adjust for scroling within table control
      CALL FUNCTION 'DYNP_GET_STEPL'
        IMPORTING
          povstepl        = l_stepl
        EXCEPTIONS
          stepl_not_found = 0
          OTHERS          = 0.
    
      l_indx = tc_ekpotable-top_line + l_stepl - 1.
              "tc_ekpotable should already have been declared
    
      REFRESH dynpfields.
      CLEAR   dynpfields.
      dynpfields-fieldname  = 'EKPO-EBELN'.
      dynpfields-fieldvalue = '00010'   "wa_ekpo-ebeln.
      dynpfields-stepl      = l_stepl.
      APPEND dynpfields.
      dynpfields-fieldname  = 'EKPO-EBELP'.
      dynpfields-fieldvalue = '00020'   "wa_ekpo-ebelp.
      dynpfields-stepl      = l_stepl.
      APPEND dynpfields.
    
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname     = 'SAPLZZ_EKKO'    "Program name
          dynumb     = '0100'           "Screen number
        TABLES
          dynpfields = dynpfields
        EXCEPTIONS
          OTHERS     = 0.
    ENDMODULE.                 " help_ekpo  INPUT
    
    

    Add comment
    10|10000 characters needed characters exceeded