Processing field on value-request

Hi all
I am working on a module to create a custom input help.This is the code
PROCESS ON VALUE-REQUEST.
  FIELD travel_route-fromcity__d  MODULE f4_fromcity.
" this is the declaration of travel_route-fromcity__d
DATA travel_route-fromcity__d  TYPE zcityname." descr of departure CITY
" zcityname is CHAR 60
My problem is that while processing the module, any value put on the dynpro field is blanked. Is this correct?
If for example, user in field travel_route-fromcity__d put something, I cannot see it in module.
I cannot understand why. I think value present should be passed or anyway present in variable of the report with same name of dynpro element .
Am I missing something?
thanks
Gabriele

The content of field is not automatically passed to program in module pool programming.
Use below or similar code in your module to get value of field on screen.
DATA : lv_VALUE TYPE zcityname ,
       lv_field TYPE char40 VALUE 'TRAVEL_ROUTE-FROMCITY__D' .
  GET CURSOR FIELD lv_field VALUE lv_land1.
Regards,
Pawan.

Similar Messages

  • F4 help Value request

    dear all ,
    i am using the code .
    data : begin of i_bidst OCCURS 0,
           bidstd(10) type c ,   ( DEFINED BY ME)
           bidst like zvesim-bidst,  ( DATA DICTIONARY FIELD)
           end of i_bidst.
    i_bidst-bidst = 'A'.
      i_bidst-bidstd = 'APPROVED'.
      append   i_bidst.
      i_bidst-bidst = 'R'.
      i_bidst-bidstd = 'REJECTED'.
      append i_bidst.
      i_bidst-bidst = 'S'.
      i_bidst-bidstd = 'SUBMITTED'.
      append i_bidst.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_BIDST.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                RETFIELD    = 'BIDST'
                DYNPROFIELD = 'P_BIDST'
                DYNPPROG    = SY-CPROG
                DYNPNR      = SY-DYNNR
                VALUE_ORG   = 'S'
           TABLES
                VALUE_TAB   = I_BIDST.
    the internal table consists of data what i had appended.
    I want to know how display both the fields on value request but the selection field is DICTONARY field only For Description only I am using the user defined field.
    regards,
    balaji.

    parameters: p_bukrs(4) type c,
                p_butxt(50) type c.
    data: dynfields type table of dynpread with header line.
    data: return type table of ddshretval with header line.
    at selection-screen on value-request for p_bukrs.
      call function 'F4IF_FIELD_VALUE_REQUEST'
           exporting
                tabname           = 'T001'
                fieldname         = 'BUKRS'
                dynpprog          = sy-cprog
                dynpnr            = sy-dynnr
                dynprofield       = 'P_BUKRS'
           tables
                return_tab        = return
           exceptions
                field_not_found   = 1
                no_help_for_field = 2
                inconsistent_help = 3
                no_values_found   = 4
                others            = 5.
      read table return with key fieldname = 'P_BUKRS'.
    * Add it back to the dynpro.
      dynfields-fieldname = return-retfield.
      dynfields-fieldvalue =  return-fieldval.
      append dynfields.
    * Get the company code from db and add to dynpro
      dynfields-fieldname = 'P_BUTXT'.
      select single butxt into dynfields-fieldvalue
              from t001
                    where bukrs = return-fieldval.
      append dynfields.
    * Update the dynpro values.
      call function 'DYNP_VALUES_UPDATE'
           exporting
                dyname     = sy-cprog
                dynumb     = sy-dynnr
           tables
                dynpfields = dynfields
           exceptions
                others     = 8.
    start-of-selection.
    Refer this too
    F4IF_INT_TABLE_VALUE_REQUEST
           This FM is used to dsiplay values stored in an internal table as input
    help.This FM is used to program our own custom help if no such input help
    exists in ABAP dictionary for a particular field. The parameter VALUE_TAB is used to pass the internal table containing input values.The parameter RETFIELD
    is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB.
           If DYNPNR,DYNPPROG and DYNPROFIELD are specified than the user selection is passed to the screen field specified in the DYNPROFIELD. If RETURN_TAB is specified the selectionis returned in a table.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                RETFIELD           = field from int table whose value will be returned
                DYNPPROG        = SY-CPROG
                DYNPNR             = SY-DYNNR
                DYNPROFIELD    = 'screen field'
                VALUE_ORG       = 'S'
           TABLES
                VALUE_TAB        = internal table whose values will be shown.
                RETURN_TAB      = internal table of type DDSHRETVAL 
           EXCEPTIONS
                parameter_error    = 1
                no_values_found   = 2
                others                  = 3.            
    Refer if this helsp.
    http://sap.niraj.tripod.com/id27.html

  • Process on value request in Dialog screen based on value of screen field

    Hello Gurus,
    I have a check box on a dialog screen. If the checkbox is checked, based on that I want the other field on the same dialog screen to follow logic for F4 dropdown.
    Now I know if I want to write this, I have to write this in Process on value-request. But how do I get the value of the check box checked or not on the same screen in Process on value-request.
    If it had been a simple selection screen I would have defined the check box as
    Parameter: v_checkbox as checkbox user-command uc1.
    But how do I handle above situation in dialog screen case ?
    Please help.
    Regards,
    Jainam.
    Edited by: Jainam Shah on Sep 29, 2009 6:19 PM

    Hi Shah,
    You have the addition for MODULE statement as ON INPUT.
    Eg :  FIELD <screen field> MODULE <module> ON INPUT.
    You can give the check box field name in the above statement.
    If you want to find as soon as the check box is checked, you can find it here.
    Or else, in the addition ON REQUEST
      you can see for the check box field value whether it is checked or not.
    Thanks,
    Prasad

  • F4 help needed in Process on value-request

    Hi,
    I have two fields on screen: region and its description in a dialog program. I want region description to be populated as soon as I  select F4 help for region. Description field is output only . I want to do it using a module in Process On value-request. Field p_region MODULE GET_REGION_DESCRIPTION.
    Using standard F4 help I can do it. If in my table I assign search help at field level for region. For example :
    Search Help: ZREGION_SHLP.  Selection method: ZREGION. Fields: Region and Description.
    Table name : ZREGION.
    i)   1st Fields:  REGION , Data Element - ZREGN, Domain: ZZREGN ( CHAR2), Value table: ZREGN. Assign Search help at field level instead of data element level.
    ii)   2nd Field: REGION_DESC, Data Element - BEZEI30.
    in program:  DATA: p_region like zregion-region. So if I press F4 help and select one region, description field gets populated.
    I don't want to use standard functionality but want to write code in POV event. If I use F4IF_INT_TABLE_VLUE_REQUEST  function module, I will get all the values associated with the field region. Since I don't know which region user has selected, i  can't populate description. How to get the selected value in POV for that particular field. How can I get the value selected for region and then use DYNP_VALUES_UPDATE function module to update the description field. I tried search help exit event return to return the selected value. How to pass that value in POV module  as you cannot use FORM ENDFORM . inside MODULE ENDMODULE.
    Regards,
    DPM

    1st step is:
    choose screen 2000 for the program using t-code se80.
    at the end of the coding enter the below code:
    process ON VALUE-REQUEST.
    FIELD screen field name module f4_zsearchhelp.
    after typing the code double click on f4_zsearch help.
    it ll ask for includes, Choose as main program.
    then enter the below code after choosing:
    DATA : t_dynpro_value TYPE TABLE OF dynpread,
    v_field_value LIKE LINE OF t_dynpro_value,
    lt_fields TYPE TABLE OF dfies,
    t_return_str TYPE TABLE OF ddshretval,
    w_return_str TYPE ddshretval,
    v_text TYPE char25.
    DATA: t_ty_prov_id TYPE STANDARD TABLE OF ty_prov_id,
    w_ty_prov_id TYPE ty_prov_id.
    CLEAR: t_ty_prov_id], w_ty_prov_id, t_return_str[, w_return_str.
    enter the select query from the description table to get the description for the particular code.
    in this i had mentioned with an example that i m getting description for massg :
    p9001-massg ll have the value and v_text ll have the description.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    DDIC_STRUCTURE = 'TY_TAB'
    retfield = 'MASSG'------>returning field
    PVALKEY = ' '
    dynpprog = sy-repid
    dynpnr = sy-dynnr
    dynprofield = 'P9001-ZMASSG'----
    > pass the screen field name
    STEPL = 0
    WINDOW_TITLE =
    VALUE = ' '
    value_org = 'S'
    MULTIPLE_CHOICE = ' '
    DISPLAY = ''
    CALLBACK_PROGRAM = ' '
    CALLBACK_FORM = ' '
    MARK_TAB =
    IMPORTING
    USER_RESET =
    TABLES
    value_tab = t_ty_prov_id
    field_tab = lt_fields
    return_tab = t_return_str
    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.
    READ TABLE t_return_str INTO w_return_str WITH KEY retfield = 'P9001-ZMASSG'.
    IF sy-subrc IS INITIAL.
    READ TABLE t_ty_prov_id INTO w_ty_prov_id WITH KEY zmassg_desc = w_return_str-fieldval.
    IF sy-subrc eq 0.
    DATA: et_desc(20) TYPE c.
    et_desc = w_ty_agrtx-v_gtext.
    MODIFY SCREEN.
    CLEAR : v_field_value,t_dynpro_value[].
    v_field_value-fieldname = 'P9001-ZMASSG'.
    v_field_value-fieldvalue = w_ty_prov_id-action_resn.
    APPEND v_field_value TO t_dynpro_value .
    CLEAR : v_field_value.
    v_field_value-fieldname = 'V_TEXT'.
    v_field_value-fieldvalue = w_ty_prov_id-zmassg_desc.
    APPEND v_field_value TO t_dynpro_value .
    CLEAR : v_field_value.
    ENDIF .
    ENDIF.
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
    dyname = sy-cprog
    dynumb = sy-dynnr
    TABLES
    dynpfields = t_dynpro_value
    EXCEPTIONS
    invalid_abapworkarea = 1
    invalid_dynprofield = 2
    invalid_dynproname = 3
    invalid_dynpronummer = 4
    invalid_request = 5
    no_fielddescription = 6
    undefind_error = 7
    OTHERS = 8.
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    you can add the v_text in layput .
    hope it ll satisfy your requirement.

  • Process on Value-Request

    hello experts...
    i have a table control that display Item information. I would like to add value-request on vendor text field based on the item.
    Example: Item A have Vendor 1 and Vendor 2 maintain in Source list.
    if i click the value-request for vendor only vendor1 and vendor2 will show, not all the vendor registered in SAP.
    Please help on how can i achieve this
    thank you

    Hi,
    I think you are working with Module-Pool programming....
    So,In Module Pool programing goto the particularScreen Flowlogic tab where u are looping in table control.--> Goto its layout ..In layout -
    >in the Right side u can enter its check table or search help.
    OR
    IN FLOW LOGIC use EVENT PROCESS ON VALUE REQUEST
    Both the solution will work ...
    just try it.
    Affable
    Arbind

  • I want an example for event Process on Value-request in Module Pool

    Hi,
      I need to populate f4 values for a field in module pool program under POV event.
      Can anyone send me the sample code.
      Helpful answers will be rewarded .
      Thanks and Regards
      Aditya

    Hi
    For F4 Values on Screen:
    PROCESS ON VALUE_REQUEST
    using module call starting with FIELD i.e FIELD field MODULE module
    There are number of function modules that can be used for the purpose, but these
    can fullfill the task easily or combination of them.
    DYNP_VALUE_READ
    F4IF_FIELD_VALUE_REQUEST
    F4IF_INT_TABLE_VALUE_REQUEST
    POPUP_WITH_TABLE_DISPLAY
    DYNP_VALUE_READ
    This function module is used to read values in the screen fields. Use of this
    FM causes forced transfer of data from screen fields to ABAP fields.
    There are 3 exporting parameters
    DYNAME = program name = SY-CPROG
    DYNUMB = Screen number = SY-DYNNR
    TRANSLATE_TO_UPPER = 'X'
    and one importing TABLE parameter
    DYNPFIELDS = Table of TYPE DYNPREAD
    The DYNPFIELDS parameter is used to pass internal table of type DYNPREAD
    to this FM and the values read from the screen will be stored in this table.This
    table consists of two fields:
    FIELDNAME : Used to pass the name of screen field for which the value is to
    be read.
    FIELDVALUE : Used to read the value of the field in the screen.
    e.g.
    DATA: SCREEN_VALUES TYPE TABLE OF DYNPREAD ,
    SCREEN_VALUE LIKE LINE OF SCREEN_VALUES.
    SCREEN_VALUE-FIELDNAME = 'KUNNR' . * Field to be read
    APPEND SCREEN_VALUE TO SCREEN_VALUES. * Fill the table
    CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
    DYNAME = SY-CPROG
    DYNUMB = SY-DYNNR
    TRANSLATE_TO_UPPER = 'X'
    TABLES
    DYNPFIELDS = SCREEN_VALUES.
    READ TABLE SCREEN_VALUES INDEX 1 INTO SCREEN_VALUE.Now the screen value for field KUNNR is in the SCREEN_VALUE-FIELDVALUE and can be used for further processing like using it to fill the internal table to be used as parameter in F4IF_INT_TABLE_VALUE_REQUEST ETC.
    F4IF_FIELD_VALUE_REQUEST
    This FM is used to display value help or input from ABAP dictionary.We have to pass the name of the structure or table(TABNAME) along with the field name(FIELDNAME) . The selection can be returned to the specified screen field if three
    parameters DYNPNR,DYNPPROG,DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
    TABNAME = table/structure
    FIELDNAME = 'field name'
    DYNPPROG = SY-CPROG
    DYNPNR = SY-DYNR
    DYNPROFIELD = 'screen field'
    IMPORTING
    RETURN_TAB = table of type DYNPREAD
    F4IF_INT_TABLE_VALUE_REQUEST
    This FM is used to dsiplay values stored in an internal table as input
    help.This FM is used to program our own custom help if no such input help
    exists in ABAP dictionary for a particular field. The parameter VALUE_TAB is used to pass the internal table containing input values.The parameter RETFIELD
    is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB.
    If DYNPNR,DYNPPROG and DYNPROFIELD are specified than the user selection is passed to the screen field specified in the DYNPROFIELD. If RETURN_TAB is specified the selectionis returned in a table.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    RETFIELD = field from int table whose value will be returned
    DYNPPROG = SY-CPROG
    DYNPNR = SY-DYNNR
    DYNPROFIELD = 'screen field'
    VALUE_ORG = 'S'
    TABLES
    VALUE_TAB = internal table whose values will be shown.
    RETURN_TAB = internal table of type DDSHRETVAL
    EXCEPTIONS
    parameter_error = 1
    no_values_found = 2
    others = 3.
    POPUP_WITH_TABLE_DISPLAY
    This FM is used to display the contents of an internal table in a popup window.The user can select a row and the index of that is returned in the CHOISE
    parameter.The VALUETAB is used to pass the internal table.
    A suitable title can be set using TITLETEXT parameter. The starting and end position of the popup can be specified by the parameters STARTPOS_COL / ROW and ENDPOS_ROW / COL .
    CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
    EXPORTING
    ENDPOS_COL =
    ENDPOS_ROW =
    STARTPOS_COL =
    STARTPOS_ROW =
    TITLETEXT = 'title text'
    IMPORTING
    CHOISE =
    TABLES
    VALUETAB =
    EXCEPTIONS
    BREAK_OFF = 1
    OTHERS = 2.
    e.g.
    DATA: w_choice TYPE SY-TABIX.
    DATA: BEGIN OF i_values OCCURS 0 WITH HEADER LINE,
    values TYPE I,
    END OF i_values.
    PARAMETRS : id TYPE I.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR id
    i_values-values = '0001'.
    APPEND i_values.
    i_values-values = '0002'.
    APPEND i_values.
    i_values-values = '0003'.
    APPEND i_values.
    i_values-values = '0004'.
    APPEND i_values.
    CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
    EXPORTING
    ENDPOS_COL = 40
    ENDPOS_ROW = 12
    STARTPOS_COL = 20
    STARTPOS_ROW = 5
    TITLETEXT = 'Select an ID'
    IMPORTING
    CHOISE = w_choice
    TABLES
    VALUETAB = i_values
    EXCEPTIONS
    BREAK_OFF = 1
    OTHERS = 2.
    CHECK w_choice > 0.
    READ TABLE i_values INDEX w_choice....now we can process the selection as it is contained
    ...in the structure i_values.
    Other FM that may be used to provide input help is HELP_START .
    Reward points if useful
    Regards
    Anji

  • Equivalent for 'process on value-request' in WDA ?

    Hello again,
    i have one more requirement in building a wda-gui for an existing transaction.
    In the flow-logic of the SAPGUI-transaction we have an event 'process on value-request', it is triggered when a user pushes the F4-Button or clicks onto the icon belonging to the InputField.
    I need to have an equivalent in WDA.
    Any ideas / workarounds ? Is perhaps OVS a possible way ?
    Thanks a lot !

    Hi Andreas,
    You can achieve this functionality by specifying the Input help mode property of the attribute to which you are binding your input field. You can choose among the various possibilities as Dictionary Search Help/Object Value Selector/User-Defined Programming. You can even just leave it as Automatic to allow the system take care of the search help to be displayed. No matter which option you use among the above quoted ones you would be able to get your search help. You need to go for OVS only when,
    "Say, for example, the value help should take into account or fill multiple input fields of your view composition. However, the different input fields are related to different value nodes, which in turn refer to different ABAP Dictionary structures. ABAP Dictionary search helps are not able to fulfill this task, since the maximum scope of such a search help is the structure to which it is related. "
    The OVS component offers an interface that can:
    1)  Receive information about which input fields should be displayed on the selection screen,
    2)  Receive information about the initial values of these input fields
    3)  Hand back the user's input into these input fields
    4)  Receive the result from the data retrieval in order to display the list
    5)  Hand back the selected data set to the consumer program
    (The above has been quoted from the SAP's standard guide)
    Regards,
    Uday

  • PAI process on value-request.

    Hi
    In PAI of one of the screens I have module that has to be triggered on value request and show table with possible entries for that screen field (lbl_printer) .
    When transaction is executed the module is not called when i hit icon close to input field (lbl_printer)so I cannot get entry help. I set up break point in the module but I didn't get  in to module " request printer". It looks like program do not recognize this module at all.
    Please advice .
    Krsto  
    process after input.
      module user_command_0105.
    process on value-request.
      field lbl_printer module request_printer.

    FIELD dynp_field MODULE mod [ {ON INPUT}
                                | {ON REQUEST}
                                | {ON *-INPUT}
                                | {ON {CHAIN-INPUT|CHAIN-REQUEST}}
                                | {AT CURSOR-SELECTION}.
    [http://help.sap.com/saphelp_nw73/helpdata/en/4a/3bb5668c412baee10000000a421937/frameset.htm]
    BR,
    Robert

  • PROCESS ON VALUE-REQUEST question..

    Hi, can anyone make a suggestion:
    I have an input field (on screen 200) which can be prompted with F4. When this happens the PROCESS ON VALUE-REQUEST calls a module to bring up a choice window (screen 300). Once the choice is made, a selection statement in screen 300 populates the description field on screen 200. However, while screen 200 shows the new <i>value</i> chosen, the <i>description</i> field still holds the old description. This is only refreshed when the user hits ENTER. I would like the description field to be showing the correct description immediately after the choice was made in the F4 prompt. Hope this make sense.
    (I notice even standard SAP programs have this too - just hit F4 on a choice field in say VD02, the description doesn't change until the next ENTER or button click).

    Hi,
    Providing Input Help (F4 Help)
    Use
    Users of an SAP System can use the F4 key to obtain information about the possible input values for a certain field on the screen.
    Information about the possible values for a field should also be available to those users who are working with the data in the SAP System from an external program, via BAPI calls. For example, the user of a Visual Basic program, which incorporates a BAPI to display or modify data in an SAP System, should have transparent access to the functions of the F4 input help.
    Features
    In order to provide input help, a calling program can use the BAPI HelpValues.GetList(). This method is based on the RFC-enabled function module BAPI_HELPVALUES_GET, which obtains the possible input values for a field that is passed in a BAPI call. For detailed information about the structure and use of the HelpValues.GetList() BAPI, see the documentation on the function module BAPI_HELPVALUES_GET, which implements the Helpvalues.GetList method.
    To determine the possible input values for a field in the check table, the BAPI HelpValues.GetList() uses the elementary search help or the domain fixed values linked to the field in the ABAP Dictionary.
    For this reason, you have to create or specify relevant check tables, elementary search helps (matchcodes) or domain fixed values. Only then can the calling program access the relevant input values for your BAPI fields using the BAPI HelpValues.GetList().
    As of Release 4.5A, you have to specify a foreign key, if a check table has been defined in the domain. Otherwise F4 input help cannot be displayed.
    Authorization Check
    In some cases you will only want to allow only those persons with a specific user profile to access information in F4 input help. To do this you can carry out authorization checks within the BAPI using table BAPIF4T.
    Table BAPIF4T is provided for this purpose. This table comprises the following fields, which you have to fill with the values for your BAPI.
    OBJTYPE (object type)
    The technical name of the SAP business object type, for example, BUS1065.
    METHOD (verb)
    The name of a BAPI for the business object type named above, for example, GetList.
    DTEL (data element)
    The name of a data element for which a possible entry is specified. For example, an elementary input help could be specified for the data element PERNR_D and be protected from unauthorized access.
    FNAM (name of the function module)
    The name of the function module that you have to create and that checks authorizations for the data element. This function module must have the following predefined interface:
    ""Local interface:
    *" IMPORTING
    *" VALUE(OBJTYPE) LIKE BAPIF4F-OBJTYPE
    *" VALUE(METHOD) LIKE BAPIF4F-METHOD
    *" VALUE(DTEL) LIKE BAPIF4F-DTEL
    *" VALUE(SHLPNAME) LIKE BAPIF4F-SHLPNAME
    *" VALUE(TABNAME) LIKE BAPIF4F-TABNAME
    *" EXPORTING
    *" VALUE(RETURN) LIKE BAPIF4F-RETURN
    As the template for your function module you can use the function module BF_BAPI_F4_AUTHORITY which provides exactly this interface. Copy this function module and follow the documentation provided with it.
    The additional parameter SHLPNAME contained in the function module interface provides the name of the active input help for the table or for the data element. The parameter TABNAME contains the name of the value table.
    The return code of the parameter RETURN is:
    'X' if the user of the BAPI is not authorized to call up the valid input values for a field.
    ' ' (no value), if the user of the BAPI is authorized to display the input values for a field.
    During runtime the function module is called dynamically by the BAPI HelpValues.GetList().
    An authorization check can be carried out at business object type, method or data element level:
    To check authorizations at this level…
    ... ......the following fields in table BAPIF4T must be filled.
    Business object type
    OBJTYPE, FNAM
    BAPI
    OBJTYPE, METHOD, FNAM
    Data Element
    OBJTYPE, METHOD, DTEL, FNAM
    Thanks,
    Shankar

  • Within FM not possible AT SELECTION-SCREEN or PROCESS ON VALUE-REQUEST

    Hello !
    Within a "User Help Exit" must be called the FM named
    C14F_LOV_WAID. How can I adress this FM
    for a field.
    The goal is if user klicks on F4 the this FM mist be called.
    please notice a user help exit is like a Function Modul.
    e.g.
    FUNCTION zuser_help_exit.
    ENDFUNcTION.
    Within this block FM block above I can't say:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR<FIELD>
    or
    PROCESS ON VALUE-REQUEST.
    FIELD <field-name> MODULE create_dropdown_box.
    Regards
    Ertas Ilhan

    HI
      well I am not sure about this it works or not but we have various function modules which we can call in other function modules to provide F4 help i mean to say that call Function module inside a Function Module
    F4IF_INT_TABLE_VALUE_REQUEST
    F4IF_FIELD_VALUE_REQUEST.
    Try out these Fm calling ..
    I hope it helps you am not sure
    Regards
    Pavan

  • Regarding process on value request

    I am displaying two column help on pressing f4 but i don't know how to assign those to corresponding screen field in the table control.

    Hi,
    execute this program and check for process on value request.
    REPORT  ZKEERTHI_EX1.
    tables:mara,makt,mseg.
    parameters: p_bukrs type t001-bukrs,
                p_butxt type t001-butxt,
                p_ort01 type t001-ort01,
                p_land1 type t001-land1.
    data: dynfields type table of dynpread with header line.
    data: return type table of ddshretval with header line.
    at selection-screen on value-request for p_bukrs.
      call function 'F4IF_FIELD_VALUE_REQUEST'
           exporting
                tabname           = 'T001'
                fieldname         = 'BUKRS'
                dynpprog          = sy-cprog
                dynpnr            = sy-dynnr
                dynprofield       = 'P_BUKRS'
           tables
                return_tab        = return
           exceptions
                field_not_found   = 1
                no_help_for_field = 2
                inconsistent_help = 3
                no_values_found   = 4
                others            = 5.
      refresh dynfields.
      read table return with key fieldname = 'P_BUKRS'.
    Add it back to the dynpro.
      dynfields-fieldname = return-retfield.
      dynfields-fieldvalue =  return-fieldval.
      append dynfields.
    Get the company code from db and add to dynpro
      data: xt001 type t001.
      clear xt001.
      select single * into xt001
             from t001
            where bukrs = return-fieldval.
      dynfields-fieldname = 'P_BUTXT'.
      dynfields-fieldvalue = xt001-butxt.
      append dynfields.
      dynfields-fieldname = 'P_ORT01'.
      dynfields-fieldvalue = xt001-ort01.
      append dynfields.
      dynfields-fieldname = 'P_LAND1'.
      dynfields-fieldvalue = xt001-land1.
      append dynfields.
    Update the dynpro values.
      call function 'DYNP_VALUES_UPDATE'
           exporting
                dyname     = sy-cprog
                dynumb     = sy-dynnr
           tables
                dynpfields = dynfields
           exceptions
                others     = 8.
    regards,
    keerthi

  • How to use F4 help in screens(Process on Value-request) ?

    Hi experts,
      Can someone provide me some code which uses Process on Value-request in dialog programming? I have  a requirement of entering a path on a modal dialog box that i have designed and i need to attach the f4_filename function module to it ?Please help...
    Thanks in advance,
    regards
    Ashwin.

    Hi Ashwin,
    Can use the function module HELP_VALUES_GET_NO_DD_NAME.
    Here is the sample code that can help you using this for F4 help.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_field-low.  
      PERFORM F4_HELP.                                
    *&      Form  F4_HELP
    FORM F4_HELP .
      CLEAR   : I_FIELDS1,I_CONTENTS1.
      REFRESH : I_FIELDS1,I_CONTENTS1.
      I_FIELDS1-TABNAME    = 'YHPA0TPROJ'.
      I_FIELDS1-FIELDNAME  = 'YHPPROJ'.
      I_FIELDS1-SELECTFLAG = 'X'.
      APPEND I_FIELDS1.
      CLEAR  I_FIELDS1.
      I_FIELDS1-TABNAME    = 'YHPA0TPROJ'.
      I_FIELDS1-FIELDNAME  = 'YHPPDES'.
      I_FIELDS1-SELECTFLAG = ' '.
      APPEND I_FIELDS1.
      CLEAR  I_FIELDS1.
      SELECT YHPPROJ
             YHPPDES
             FROM YHPA0TPROJ
             INTO TABLE I_CONTENTS1.
      IF NOT I_CONTENTS1[] IS INITIAL.
        CALL FUNCTION 'HELP_VALUES_GET_NO_DD_NAME'
             EXPORTING
                  SELECTFIELD                  = 'YHPPROJ'
             IMPORTING
                  IND                          = V_IND1
             TABLES
                  FIELDS                       = I_FIELDS1
                  FULL_TABLE                   = I_CONTENTS1
             EXCEPTIONS
                  FULL_TABLE_EMPTY             = 1
                  NO_TABLESTRUCTURE_GIVEN      = 2
                  NO_TABLEFIELDS_IN_DICTIONARY = 3
                  MORE_THEN_ONE_SELECTFIELD    = 4
                  NO_SELECTFIELD               = 5
                  OTHERS                       = 6.
        IF SY-SUBRC EQ 0.
          READ TABLE I_CONTENTS1 INDEX V_IND1.
          P_PROJ   = I_CONTENTS1-YHPPROJ.
         P_YHPDES = I_CONTENTS1-YHPPDES.
        ENDIF.
      ELSE.
       MESSAGE I000(YHPA0K) WITH 'No projects available'.
        MESSAGE I519(YHPA0K). " No projects available
        EXIT.
      ENDIF.
    ENDFORM.                   
    Hope this helps you.
    Regards,
    Saumya

  • Process On Value Request with Search Help Problem

    I have a screen with a field that has a custom search help attached to it.  I am using Process On Value-Request which ultimately uses function module F4IF_FIELD_VALUE_REQUEST to return the selected value from the search help. The value is then moved to the screen field.
    THE PROBLEM: If I enter a value in a field on the screen, then use the search help from a different field the first value I entered gets cleared. Here is a code sample. Any suggestions as to why this is happening?
    NOTE: The values that get cleared are fields on the screen that I do not reference at all in user_command_2501.
    *****SCREEN 2500 FLOW LOGIC*********
    PROCESS BEFORE OUTPUT.
      MODULE status_2500.
    PROCESS AFTER INPUT.
      MODULE user_command_2500.
    PROCESS ON VALUE-REQUEST.
      FIELD makt-matnr MODULE user_command_2501.
    MODULE user_command_2501 INPUT.
      ok_code = sy-ucomm.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
           EXPORTING
                searchhelp      = 'ZWS_ASSETMATR'
                fieldname       = ' '
                tabname         = ' '
           TABLES
                return_tab      = search_itab
           EXCEPTIONS
                no_values_found = 1.
      MOVE search_itab-fieldval TO: makt-matnr.
      REFRESH search_itab.
      SELECT SINGLE maktg FROM makt INTO crea_description
        WHERE matnr = search_itab-fieldval.
      MOVE 'I' TO scrn_attr_sw.
      sy-ucomm = 'ENTER'.
      LEAVE SCREEN.
      CALL SCREEN 2500.
    ENDMODULE.                 " user_command_2501  INPUT
    Message was edited by: Jason DeLuca
    Message was edited by: Jason DeLuca

    Hi Jason
    It seems you should first revise your code since your POV is not implemented so good.
    Regards
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • Help on PROCESS ON VALUE-REQUEST

    Is it possible for getting values into mulitple fields based on the selection made with in a PROCESS ON VALUE-REQUEST  Block.
    In the F4 based on POV  there are 4 fields, when the user select any one is it possible to get the other 3 into respective fields?

    hi saji
    Thats very much possible if you just want to populate any of the possible values in the fields.
    Write a piece of code which selects the other field values apart form the one you enter in the at selection-screen output event.
    for Example if the field entered is matnr for suppose then you can write a select single for other fields say plant and storage location in this event so these fields automatically gets populated once you hit the enter key as this event acts as a PBO for selection screen.
    I hope I have made things clear. if any do ask me, I can answer the same.
    Regards
    Santosh

  • List bos in dialog programming through  process on value-request

    Dear all,
                  i am using FM to get list box but not getting list of values , i am getting blank screen , on which getting header stmt
    Restrict value range (1)    3 entries found.
    TYPES : BEGIN OF F4_VALUES,
          TYPE(5) TYPE C,
          END OF F4_VALUES.
    DATA: F4_VALUE TYPE TABLE OF F4_VALUES WITH HEADER LINE.
    DATA:  PROGNAME LIKE SY-REPID,
           DYNNUM LIKE SY-DYNNR.
    PROCESS ON VALUE-REQUEST.
    FIELD WA_DATA-TYPE MODULE EXP_TYPE.
    MODULE exp_type INPUT.
    CLEAR F4_VALUE.
    REFRESH F4_VALUE.
    F4_VALUE-TYPE = 'Shift'.
    APPEND F4_VALUE.
    F4_VALUE-TYPE = 'Flat'.
    APPEND F4_VALUE.
    F4_VALUE-TYPE = 'Day'.
    APPEND F4_VALUE.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
        RETFIELD               = 'TYPE'
       DYNPPROG               = PROGNAME
       DYNPNR                 = DYNNUM
       DYNPROFIELD            = 'WA_DATA-TYPE'
       VALUE_ORG              = 'S'
       MULTIPLE_CHOICE        = ' '
      TABLES
        VALUE_TAB              = F4_VALUE
      FIELD_TAB              =
      RETURN_TAB             =
      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.
    Thanks in advance.
    Vijay dwivedi

    hii vijay,
    1. There are two important things :
    a)PARAMETERS : a(10) TYPE c AS LISTBOX VISIBLE LENGTH 10.
    b) Fm VRM_SET_VALUES
    2. just copy paste
    3.
    REPORT abc.
    TYPE-POOLS : vrm.
    DATA : v TYPE vrm_values.
    DATA : vw LIKE LINE OF v.
    PARAMETERS : a(10) TYPE c AS LISTBOX VISIBLE LENGTH 10.
    INITIALIZATION.
    vw-key = '1'.
    vw-text = 'Jan'.
    APPEND vw TO v.
    vw-key = '2'.
    vw-text = 'Feb'.
    APPEND vw TO v.
    vw-key = '3'.
    vw-text = 'Mar'.
    APPEND vw TO v.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    id = 'A'
    values = v
    EXCEPTIONS
    id_illegal_name = 1
    OTHERS = 2.
    Check the link -
    How to fill the values in List Box?
    List Box
    rgrds,
    Shweta
    Edited by: Shweta Joon on Aug 24, 2009 1:19 PM

Maybe you are looking for