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

Similar Messages

  • F4 help on Process on Value-Request

    Hi,
    I have disgned a Table Control with 3 fields.  When i press F4 on First field, it displays list of values to be selected. When we select a row, it should pull up the values into all the 3 fields in the table control.
    Can you please help me in Achieving this? and I dont want to create Search help for this.
    Any help will be rewared.
    Thanks
    Shekar

    Search SCN you will find yoiur answer, do not post before search.
    Kuntal

  • 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.

  • 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 Help request and Process on value request events examples

    HI All,
               Can anybody please give me some examples of Process on Help request and Process on value request events.
    Thanks in advance

    HI,
    Check programs
    <b>demo_selection_screen_f1</b>.
    <b>demo_selection_screen_f4.</b>
    Regards,
    Sesh

  • 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>

  • 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

  • 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

  • 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

  • Process on value request for table control

    I have 10 rows in a table control,when a F4 for
    a particular column in a row is called,process on value request is called here i call a customized F4 based on the structure mapped to the row,but unfortunaletly unlike the screen the mapped structure is not populated,so is
    there a way of getting the structure mapped to the row.

    Hi Kaushik
    As I guess solution would be reading the row into the structure which the F4 screen uses.
    <u><b>e.g.</b></u>
    GET CURSOR LINE lv_linno .
    lv_linno = lv_linno + <table_control_name>-top_line - 1 .
    READ TABLE <itab> INTO <screen_structure> INDEX lv_linno.
    If this is not the case, then posting your POV coding will be better to analyze your code.
    *--Serdar

  • Matchcode and process on value request

    hi
    i have a doubt...
    i have created a matchcode object and declared in my report program.
    i am using process on value request event.
    which one will it trigger?
    its urgent ....

    from highest to lowest priority:
    1) PROCESS ON VALUE-REQUEST in your program
    2) MATCHODE OBJECT in your selection-screen
    3) MATCHCODE linked to data domain in DDIC

Maybe you are looking for