On-Value Request Event

Hi All,
I have used 'ON VALUE-REQUEST' event for a variable S_CNTRY in the select-options.
SELECT-OPTIONS: S_CNTRY FOR ADRC-REGION OBLIGATORY.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_CNTRY-LOW.
  PERFORM SEARCH_HELP_REGION CHANGING S_CNTRY.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_CNTRY-HIGH.
  PERFORM SEARCH_HELP_REGION CHANGING S_CNTRY.
Is the above declaration Ok ? Can I declare in one statement rather than using two separate as 'LOW' and 'HIGH' reapectively.
Further to this , if I want to write a select statement which will take the values of S_CNTRY from 'S_CNTRY-LOW' to 'S_CNTRY-HIGH' , how shall I do that ??
SELECT X Y Z FROM Z-TAB INTO
ITAB WHERE VAR IN ('S_CNTRY-LOW' TO 'S_CNTRY-HIGH').
Is it fine ?
Kindly help....
Thx...
Paul

Hi Paul,
<b>1</b>.
The way U have done is Excellent.You dont need to declare one .This is right way.
<b>2</b>.
Have a look at the below Sample further to get values into ur S_CNTRY-LOW,S_CNTRY-HIGH.
REPORT zvenkat_head MESSAGE-ID zmsg .
TABLES:ekko.
SELECT-OPTIONS :s_bsart  FOR ekko-bsart.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_bsart-low.
  PERFORM f4_values_restricted USING s_bsart-low.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_bsart-high.
  PERFORM f4_values_restricted USING s_bsart-high.
*&      Form  f4_values_restricted
FORM f4_values_restricted USING bsart.
  DATA: BEGIN OF i_t161 OCCURS 0,
          bstyp TYPE t161-bstyp,
          bsart TYPE t161-bsart,
          batxt TYPE t161t-batxt,
        END OF i_t161.
  CLEAR i_t161[].
  CLEAR i_t161.
  DATA: w_progname LIKE sy-repid,
        w_scr_num LIKE sy-dynnr .
  DATA: return_values LIKE ddshretval OCCURS 0 WITH HEADER LINE.
  DATA: itab_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE,
        t_dynpfields LIKE dynpread.
  DATA: t_dyname LIKE d020s-prog,
        t_dynumb LIKE d020s-dnum.
  SELECT abstyp absart b~batxt
   FROM t161 AS a INNER JOIN t161t AS b ON abstyp = bbstyp
                                      AND  absart = bbsart
   INTO TABLE i_t161
   WHERE a~bstyp = 'F'
     AND b~spras = sy-langu.
  IF sy-subrc = 0.
    CALL FUNCTION <b>'F4IF_INT_TABLE_VALUE_REQUEST'</b>
      EXPORTING
        retfield        = 'BSART'
        dynpprog        = w_progname
        dynpnr          = w_scr_num
        dynprofield     = 'EKPO-BSART'
        value_org       = 'S'
      TABLES
        value_tab       = i_t161
        return_tab      = return_values
      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.
    ELSE .
      bsart = return_values-fieldval.
    ENDIF.
  ENDIF.
ENDFORM.                    " f4_values_restricted
I think that it helps u.
<b>Thanks,
Venkat.O</b>

Similar Messages

  • 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

  • ON VALUE REQUEST IN WDA

    Hi,
    I am in the process of converting a regular ABAP report into a Webdynpro ABAP report.
    In the regular report, I have the following code for a parameter:
    PARAMETERS:
      p_temp TYPE hap_template_id OBLIGATORY.
    and I have the following code to get the F4 Value Help for this parameter:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_temp.
      PERFORM get_template USING p_plvar.
    The form get_template contains the following code:
      DATA:lt_templates   TYPE hap_t_templates.
      FIELD-SYMBOLS:<fs_template>    TYPE objec.
      CALL FUNCTION 'HRHAP_POPUP_F4_TEMPLATE'
        EXPORTING
          plan_version = p_pchplvar
        IMPORTING
          t_templates  = lt_templates.
      READ TABLE lt_templates ASSIGNING <fs_template> INDEX 1.
      IF sy-subrc EQ 0.
        p_temp = <fs_template>-objid.
      ENDIF.
    Can someone help me with how I can implement the same functionality in WDA?
    I am not sure if the FM 'HRHAP_POPUP_F4_TEMPLATE' will work fine in WDA?
    Thanks in advance,
    Saleem

    First of all the function module 'HRHAP_POPUP_F4_TEMPLATE' will almost defintely not work in Web Dynpro ABAP. Function Modules within ON VALUE REQUEST surely will have classic dynpro dialogs in them that can't be used in WDA.
    There is no On Value Request event in Web Dynpro ABAP.  Instead we have the concept of Freely Programmed Value Help and OVS - so that you can custom create your own Value Help with a Web Dynpro Component.  To match up to this requirement I would suggest you study these two options.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/9ef8cc9b5e3c5ce10000000a421937/frameset.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/9ef8c99b5e3c5ce10000000a421937/frameset.htm

  • 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

  • How to get parameter value from report in event of value-request?

    Hi everyone,
    The customer want to use particular F4 help on report, but some input value before press enter key are not used in event of "at selection-screen on value-request for xxx", How to get parameter value in this event?
    many thanks!
    Jack

    You probably want to look at function module DYNP_VALUES_READ to allow you to read the values of the other screen fields during the F4 event... below is a simple demo of this - when you press F4 the value from the p_field is read and returned in the p_desc field.
    Jonathan
    report zlocal_jc_sdn_f4_value_read.
    parameters:
      p_field(10)           type c obligatory,  "field with F4
      p_desc(40)            type c lower case.
    at selection-screen output.
      perform lock_p_desc_field.
    at selection-screen on value-request for p_field.
      perform f4_field.
    *&      Form  f4_field
    form f4_field.
    *" Quick demo custom pick list...
      data:
        l_desc             like p_desc,
        l_dyname           like d020s-prog,
        l_dynumb           like d020s-dnum,
        ls_dynpfields      like dynpread,
        lt_dynpfields      like dynpread occurs 10.
      l_dynumb = sy-dynnr.
      l_dyname = sy-repid.
    *" Read screen value of P_FIELD
      ls_dynpfields-fieldname  = 'P_FIELD'.
      append ls_dynpfields to lt_dynpfields.
      call function 'DYNP_VALUES_READ'
        exporting
          dyname     = l_dyname
          dynumb     = l_dynumb
        tables
          dynpfields = lt_dynpfields
        exceptions
          others     = 1.
      check sy-subrc is initial.
    *" See what user typed in P_FIELD:
      read table lt_dynpfields into ls_dynpfields
        with key fieldname = 'P_FIELD'.
    *" normally you would then build your own search list
    *" based on value of P_FIELD and call F4IF_INT_TABLE_VALUE_REQUEST
    *" but this is just a demo of writing back to the screen...
    *" so just put the value from p_field into P_DESC plus some text...
      concatenate 'This is a description for' ls_dynpfields-fieldvalue
        into l_desc separated by space.
    *" Pop a variable value back into screen
      clear: ls_dynpfields.
      ls_dynpfields-fieldname  = 'P_DESC'.
      ls_dynpfields-fieldvalue = l_desc.
      append ls_dynpfields to lt_dynpfields.
      call function 'DYNP_VALUES_UPDATE'
        exporting
          dyname     = l_dyname
          dynumb     = l_dynumb
        tables
          dynpfields = lt_dynpfields
        exceptions
          others     = 0.
    endform.                                                    "f4_field
    *&      Form  lock_p_desc_field
    form lock_p_desc_field.
    *" Make P_DESC into a display field
      loop at screen.
        if screen-name = 'P_DESC'.
          screen-input = '0'.
          modify screen.
          exit.
        endif.
      endloop.
    endform.                    "lock_p_desc_field

  • 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

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

  • Refresh alv grid after user clicks f4( value-request)

    Hello Experts,
    I am currently developing a module pool program wherein after the user selects a value via f4(value request),
    my ALV grid(using custom control) should be refreshed to show the new records selected based
    on the f4 value. How can this be achieved?
    thank you guys and take care!

    Did you try a CALL METHOD [cl_gui_cfw=>set_new_ok_code|http://help.sap.com/saphelp_sm32/helpdata/en/06/3fa1b79f2811d2bd68080009b4534c/frameset.htm] and [=>flush|http://help.sap.com/saphelp_sm32/helpdata/EN/06/3fa1879f2811d2bd68080009b4534c/content.htm] in the POV section or in event onF4 handler method to force execution of PAI (either it works either it dumps)
    Regards,
    Raymond

  • On value request in select-options in a repot URGENT

    Hi all,
       my requirement is to provide on value request in select-options
    in selection screen Gsdpr user one select-option is there
    For GSDPR User field, provide F4 help. Users list can be selected from ZWF_UPI table where WF_UPI_TYPE is ‘HR’. From the table, select UPI Number and employee full name fields
    in ZWF_UPI  table the key fields are UPI and WF_UPI_TYPE
    non key  field is emp_full_name.
    please send me the code .
    regards
    Nagendra

    Hi,
    I do not have sample code , But you have to use the function module
    F4IF_INT_TABLE_VALUE_REQUEST on the AT-SELECTION-SCREEN ON VALUE REUQEST FOR S_OPTION-LOW event
    Select Data as per the requirement into Value table of the Function module
    Return the Data fro the Return table of the function module.
    The good choice will be Go to SE37-> Type this FM F4IF_INT_TABLE_VALUE_REQUEST  and look for Where used list-> Programs . There u will get the list of programs used this FM
    Regards
    Pavan

  • How to populate 2 screen-fields with one [ON VALUE-REQUEST FOR input] evnt?

    I have a selection screen with 2 text inputs - input1, input2.
    For the first one I have an "AT SELECTION-SCREEN ON VALUE-REQUEST FOR input1" event.
    I successfully get a value there and that is set to the screen field. But I also want input2 to be automatically populated with a value corresponding to the selected input1 (eg. input1=ID, input2=Name).
    I'm able to set input2 ABAP variable but not the screen-element.
    (I guess that ON VALUE-REQUEST doesn't fire any events for screen fields update, because if I press ENTER after using my search-help, then input2 is set with the right value)
    How to solve the problem?

    Hi Ramchander,
    Actually I used FM F4IF_FIELD_VALUE_REQUEST which doesn't have mapping parameters.
    But after your advice I looked through F4IF_INT_TABLE_VALUES_REQUEST and found that it's
    DYNP_VALUES_UPDATE FM that solves my task.
    Thanks!

  • Selection Screen - From ...on Value Request  To ... Output (PBO) ?

    Hallo,
    I have the following problem:
    I want to jump after a SelectionScreen On Value-Request Block to the SelectionScreen Output Block. But Abap doesn´t go there afterwards.
    My "trigger" for the value Request is a normal edit field, so unfortunately I can´t give a User-Command with it.
    My intended action is: If I get new information in the value request part, I´d like to set a checkbox initial (remove the check). I can implement this code in the value request block, but it doesn´t work. It only works in the Output Block.
    Does somebody have an idea?
    TIA and Regards

    Hi
    The event AT SELECTION-SCREEN ON VALUE_REQUEST can update the field managed by the event, if you need to update other field in according to the selected value u need to use the fm DYNP_VALUES_UPDATE:
    parameters: p_1,
                p_2.
    at selection-screen on value-request for p_1.
      DATA: DYNAME LIKE  D020S-PROG,
            DYNUMB LIKE  D020S-DNUM,
            DYNPFIELDS TYPE TABLE OF DYNPREAD WITH HEADER LINE.
      DYNAME = sy-repid.
      DYNUMB = sy-dynnr.
      DYNPFIELDS-FIELDNAME  = 'P_2'.
      DYNPFIELDS-FIELDVALUE = 'X'.
      APPEND DYNPFIELDS.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          DYNAME     = DYNAME
          DYNUMB     = DYNUMB
        TABLES
          DYNPFIELDS = DYNPFIELDS.
    Max

  • Implement F4 Value-Request Functionality in Dialog Programming

    Hi. Apologies in advance if this is the wrong forum.
    I'm on R/3 4.6c.
    What is the best way to implement this:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR xxxx-low.
    in a dialog program?
    I have my selection screen defined in my TOP include, but since dialog programs don't support report events I am not sure what to do.
    Thank you for any assistance you could provide.
    Best Regards,
    Brett

    make a new include like
    include progname_screen_1001. at the top of your program.
    goto include.
    write the code below in your include.
    SELECTION-SCREEN BEGIN OF SCREEN 1001.
    write here your selection options and parameters.
    also but here the code you want:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR xxxx-low.
    SELECTION-SCREEN END OF SCREEN 1001.
    call the screen from anywhere:
    call screen 1001.
    if you want the selection-screen as subscreen than write
    SELECTION-SCREEN BEGIN OF SCREEN 1001 as subscreen .
    write here your selection options and parameters.
    also but here the code you want:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR xxxx-low.
    SELECTION-SCREEN END OF SCREEN 1001.
    when calling it
    write it to PBO of your screen in which you but an subscreen area named subsel.
    CALL SUBSCREEN SUBSEL INCLUDING 'PROGRAMNAME' '1001'.

  • 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

  • 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

  • AT SELECTION-SCREEN ON VALUE-REQUEST FOR D

    I have four Select options A,B,C,D
    For A value is entered
    For B value is entered
    For C value is entered
    For D , i need to create a custom search help.i will develop that in the event
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR D.while generating the search help here
    i need to access the values that  are entered in A,B,C.
    Plz any help ?

    Hi,
    You can use the Function module 'F4IF_INT_TABLE_VALUE_REQUEST'  to display your custom values in search help. Refer the below sample code on how to use this function module.
    REPORT ZTAB_SHELP.
    parameters: p_ebeln type ekko-ebeln.
    TYPES: BEGIN OF t_ekko,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      statu TYPE ekpo-statu,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
      menge TYPE ekpo-menge,
      meins TYPE ekpo-meins,
      netpr TYPE ekpo-netpr,
      peinh TYPE ekpo-peinh,
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko TYPE t_ekko,
          it_return type STANDARD TABLE OF DDSHRETVAL,
          wa_return like line of it_return.
    *at selection-screen
    at selection-screen on value-request for p_ebeln.
    select *
      up to 10 rows
      from ekko
      into CORRESPONDING FIELDS OF TABLE it_ekko.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
      DDIC_STRUCTURE         = 'EKKO'
        RETFIELD               = 'EBELN'
      PVALKEY                = ' '
       DYNPPROG               = sy-repid
       DYNPNR                 = sy-dynnr
      DYNPROFIELD            = 'EBELN'
      STEPL                  = 0
        WINDOW_TITLE           = 'Ekko Records'
      VALUE                  = ' '
        VALUE_ORG              = 'S'
       MULTIPLE_CHOICE        = 'X'  "allows you select multiple entries from the popup
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             = ld_ret
      TABLES
        VALUE_TAB              = it_ekko
       FIELD_TAB              = lt_field
        RETURN_TAB             = it_return
      DYNPFLD_MAPPING        =
    EXCEPTIONS
       PARAMETER_ERROR        = 1
       NO_VALUES_FOUND        = 2
       OTHERS                 = 3.
    READ TABLE it_return into wa_return index 1.
    p_ebeln = wa_return-fieldval.
    Regards,
    Murali
    Edited by: murali krishnan Rajendran on Jan 27, 2011 8:03 AM

Maybe you are looking for

  • MacBook Pro with external display sometimes

    I want to use my MacBook Pro with my external display (Apple 23 inch Cinema) when I'm at my office, and to have Spaces set up and optimized for that. When I'm at home or on the road, I want Spaces set up differently, optimized for the MacBook Pro dis

  • Using an Applet as a client

    Hi, I'm have created a .war file that contains an html page and a JApplet. When I deploy the .war file and connect to the server, the html page is found. but, I get an exception that the applet class can not be found. when I use the assembly tool tha

  • Simulation in Bapi/FM for sales order is locking tables

    Hi We want to use bapi BAPI_SALESORDER_CHANGE or FM SD_SALESDOCUMENT_CHANGE to simulate the effect on prices of a sales order. We must do this during the printing of the sales order. This bapi/FM is locking the sales order tables during the simulatio

  • Reinstalling specific software

    i am having some difficulty with my networking/internet software ( continually drops out ) I think that this is not a problem from my dsl modem but from my software and I would like to reinstall the networking software and start with a clean slate.ho

  • Oracle patch 9.2.0.5 and ODP

    It looks like ODP is not included in Oracle patch 9.2.0.5. Does it mean ODP is a step-child? It is kind of painful to set it up for the customers...