Selection-Screen F1 Help

HI Abapers,
     My requirement is, in the selection-screen i want to have a push button next to execute button with icon ICON_INFORMATION from table ICON displayed on it. On the click of the Push button a sepeate window has to be opened which displays the Documentation of the program. How to achieve it .Situable answers will be rewarded.
Regards,
Kasi S

hai,
  this is the coding for keeping pushbutton on application toolbar.
TABLES sscrfields.
PARAMETERS: p_carrid TYPE s_carr_id,
            p_cityfr TYPE s_from_cit.
SELECTION-SCREEN: FUNCTION KEY 1,
                  FUNCTION KEY 2.
INITIALIZATION.
  sscrfields-functxt_01 = 'LH'.
  sscrfields-functxt_02 = 'UA'.
AT SELECTION-SCREEN.
  CASE sscrfields-ucomm.
      WHEN'FC01'.
      p_carrid = 'LH'.
      p_cityfr = 'Frankfurt'.
    WHEN 'FC02'.
      p_carrid = 'UA'.
      p_cityfr = 'Chicago'.
  ENDCASE.
START-OF-SELECTION.
  WRITE / 'START-OF-SELECTION'.
Message was edited by:
        tamilarasan kandasamy

Similar Messages

  • At selection-screen value- help

    Hi All,
    I have a requirement that based on a radio button one at selection-screen value-help is triggered and on based on a different radio button another at selection-screen value-help should be triggered.
    can it be achieved.
    Regards,
    Jeetu

    AT SELECTION-SCREEN - selscreen_event
    Syntax
      | { ON {para|selcrit} }
      | { ON END OF selcrit }
      | { ON BLOCK block }
      | { ON RADIOBUTTON GROUP radi }
      | { }
      | { ON {HELP-REQUEST|VALUE-REQUEST}
      |   FOR {para|selcrit-low|selcrit-high} }
      | { ON EXIT-COMMAND }.
    Alternatives:
    1. ... OUTPUT
    2. ... ON {para|selcrit}
    3. ... ON END OF selcrit
    4. ... ON BLOCK block
    5. ... ON RADIOBUTTON GROUP radi
    6. ... { }
    7. ... ON {HELP-REQUEST|VALUE-REQUEST} FOR
          {para|selcrit-low|selcrit-high} }
    8. ... ON EXIT-COMMAND
    Effect
    These additions allow individual evaluation of specific elements of the selection screens of the program. The information as to which selection has triggered the event is contained in the system field sy-dynnr.
    Alternative 1
    ... OUTPUT
    Effect
    This event is triggered at the screen event PBO of a selection screen. In the event block, the selection screen can be prepared through assignments to the data objects of parameters and selection criteria and through dynamic screen modifications.
    Note
    The assignments to input fields in the event block AT SELECTION-SCREEN OUTPUT always affect the selection screen and overwrite the user inputs from previous displays of the same selection screen. Assignments in the event blocks LOAD-OF-PROGRAM oder INITIALIZATION, on the other hand, only have an effect at first program start.
    Alternative 2
    ... ON {para|selcrit}
    Effect
    This event is triggered at the screen event PAI of a selection screen if the content of the input field of a parameter para or a line of a selection criterion selcrit was passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or an error message in the event block makes the fields para and selcrit ready for input again.
    No parameter that is defined as a radio button can be specified. For this purpose, the addition ON RADIOBUTTON GROUP is provided.
    Note
    If a user action takes place in the dialog box for the multiple selection of a selection criterion selcrit, the entries of the selection table are passed to the program, line by line. For each line, the event AT SELECTION-SCREEN ON selcrit is triggered.
    Alternative 3
    ... ON END OF selcrit
    Effect
    This event is triggered after the selection table selcrit has been fully passed to the program after a user action in the dialog box for the multiple selection has taken place. In the event block, the entire selection table can be checked.
    Alternative 4
    ... ON BLOCK block
    Effect
    This event is triggered at the screen event PAI of a selection screen if all the input fields of a block block of the selection screen were passed to the ABAP program. In the event block, the user inputs can be checked. Sending a warning or an error message in the event block makes all the fields of the block block ready for input again.
    Alternative 5
    ... ON RADIOBUTTON GROUP radi
    Effect
    This event is triggered at the screen event PAI of a selection screen if all the fields of a radio button group radi of the selection screen were passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or error message in the event block makes all the radion buttons of the block radi ready for input again.
    Note
    The individual fields of a radio button group are not passed individually and do not trigger the event AT SELECTION-SCREEN ON par.
    Alternative 6
    Effect
    The event AT SELECTION-SCREEN itself is triggered as the last event of selection screen processing if all the input values were passed to the program. In this event block, all the user inputs can be checked. Sending a warning or an error message in the event block makes all the screen fields ready for input once again.
    Alternative 7
    ... ON { HELP-REQUEST | VALUE-REQUEST } FOR
        {para|selcrit-low|selcrit-high} }
    Effect
    The two events ON HELP-REQUEST and ON VALUE-REQUEST are triggered at the screen events POH and POV of a selection screen if - for the input field of a parameter para or one of the input fields of a selection criterion selcrit - the field help F1 or the input help F4 was called. Other selection events are not triggered.
    In the event blocks, a self-defined field or input field can be programmed, which overrides any helps possibly defined in the ABAP Dictionary.
    Notes
    These event blocks can only be implemented for fields of the selection screen that are defined in the same ABAP program and not in a possibly linked logical database.
    With the events for the field and input help, no data is transported between the selection screen and the ABAP program. As with general screens, suitable function modules must be used for these. The parameters and selection criteria changed for the input help are transported to the selection screen.
    Alternative 8
    ... ON EXIT-COMMAND
    Effect
    This event is triggered if the user has called one of the functions Back, Exit or Cancel. In the event block, possible clean-up actions can be executed.
    Example
    In these executable programs, a standard selection screen and a further selection screen are defined. In the event blocks AT SELECTION-SCREEN, the inputs in the selection screens can be specially handled using the name p_carrid and the screen number in sy-dynnr.
    REPORT demo_at_selection_screen.
    Global data
    DATA: sflight_tab TYPE TABLE OF sflight,
          sflight_wa  LIKE LINE  OF sflight_tab.
    Selection screens
    PARAMETERS p_carrid TYPE spfli-carrid.
    SELECTION-SCREEN BEGIN OF SCREEN 500.
      SELECT-OPTIONS s_conn FOR sflight_wa-connid.
      DATA s_conn_wa LIKE LINE OF s_conn.
    SELECTION-SCREEN END OF SCREEN 500.
    Handling selection screen events
    AT SELECTION-SCREEN ON p_carrid.
      IF p_carrid IS INITIAL.
        MESSAGE 'Please enter a value' TYPE 'E'.
      ENDIF.
      AUTHORITY-CHECK OBJECT 'S_CARRID'
                          ID 'CARRID' FIELD p_carrid
                          ID 'ACTVT'  FIELD '03'.
      IF sy-subrc = 4.
        MESSAGE 'No authorization for carrier' TYPE 'E'.
      ELSEIF sy-subrc <> 0.
        MESSAGE 'Error in authority check' TYPE 'A'.
      ELSE.
        IF sy-ucomm = 'ONLI'.
          CALL SELECTION-SCREEN '0500'.
        ENDIF.
      ENDIF.
    AT SELECTION-SCREEN.
      IF sy-dynnr = '0500'.
        IF s_conn IS INITIAL.
          MESSAGE 'Please enter values' TYPE 'W'.
        ELSE.
          SELECT *
                 FROM sflight
                 INTO TABLE sflight_tab
                 WHERE carrid = p_carrid AND
                       connid IN s_conn.
          IF sy-subrc <> 0.
            MESSAGE 'No flights found' TYPE 'E'.
          ENDIF.
        ENDIF.
      ENDIF.
    Main program
    START-OF-SELECTION.

  • Selection-screen F4 help

    suppose in a selection screen, there are 2 parameters. one for storage location & other for material. if one storage location is selected, then by clicking F4 help in material corresponding material related to storage location should come ?

    hi,
    try like this.
    TYPES : BEGIN OF ty_kna1,
              kunnr TYPE kna1-kunnr,                                    "CUstomer Code
              name1 TYPE kna1-name1,                                    "Customer Code
            END OF ty_kna1.
    DATA : wa_value_tab TYPE ty_kna1.
    DATA : value_tab LIKE wa_value_tab OCCURS 0 WITH HEADER LINE.
    DATA : field_tab LIKE dfies  OCCURS 0 WITH HEADER LINE.
    DATA : return_tab LIKE ddshretval OCCURS 0 WITH HEADER LINE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR kunnr-low.
      CHECK NOT bukrs IS INITIAL .
      SELECT kna1kunnr kna1name1
        INTO TABLE i_kna1
        FROM kna1 INNER JOIN vbrk
        ON kna1kunnr = vbrkkunag
        WHERE vbrk~bukrs = bukrs.                   "dyfields-fieldvalue.
      SORT i_kna1 BY kunnr.
      DELETE ADJACENT DUPLICATES FROM i_kna1.
      CLEAR : value_tab,field_tab,return_tab.
      REFRESH : value_tab,field_tab,return_tab.
      field_tab-fieldname = 'KUNNR'.
      field_tab-tabname = 'KNA1'.
      APPEND field_tab.
      field_tab-fieldname = 'NAME1'.
      field_tab-tabname = 'KNA1'.
      APPEND field_tab.
      field_tab-fieldname = 'KUNNR'.
      LOOP AT i_kna1 .
        value_tab-kunnr = i_kna1-kunnr.
        APPEND value_tab.
        CLEAR value_tab.
        value_tab-name1 = i_kna1-name1.
        APPEND value_tab.
      ENDLOOP.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = field_tab-fieldname
        TABLES
          value_tab       = value_tab
          field_tab       = field_tab
          return_tab      = return_tab
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc = 0.
        kunnr-low = return_tab-fieldval.
      ENDIF.
    here i entered BUKRS and according to that i want Customer name.
    hope it will b helpful.

  • Selection-screen: Input help for VTWEG

    Hello!
    Can anybody help me with the following problem:
    I have two select-options (VKORG and VTWEG) on my selection screen. Now there should be the possibility to restrict the values shown as input help for VTWEG after having selected a value for VKORG.
    I've already tried to do this by using a matchcode object but for VKORG and VTWEG I was not able to find suitable search helps.
    In my opinion this should be possible without using the "AT SELECTION-SCREEN ON VALUE-REQUEST FOR ...". If not, it would be interesting to getting to know your approaches to this task.
    Thank you in advance!

    you can refer to the following code
    and you can write the code in the same way as per your requirement
    *& Report  ZRKTEST5                                                    *
    REPORT  ZRKTEST5                                .
    DATA: PROGNAME TYPE SY-REPID,
          DYNNUM   TYPE SY-DYNNR,
          DYNPRO_VALUES TYPE TABLE OF DYNPREAD,
          FIELD_VALUE LIKE LINE OF DYNPRO_VALUES.
    DATA: BEGIN OF T_T001L OCCURS 0,
            WERKS TYPE WERKS_D,
            LGORT TYPE LGORT_D,
          END OF T_T001L.
    DATA: V_WERKS TYPE WERKS_D,
          V_LGORT TYPE LGORT_D.
    SELECTION-SCREEN BEGIN OF BLOCK B1.
      PARAMETERS: P_PLANT LIKE MSEG-WERKS,
                  P_STOLOC LIKE MSEG-LGORT.
    SELECTION-SCREEN END OF BLOCK B1.
    INITIALIZATION.
      PROGNAME = SY-REPID.
      DYNNUM = SY-DYNNR.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_STOLOC.
      CLEAR: FIELD_VALUE, DYNPRO_VALUES. REFRESH DYNPRO_VALUES.
      FIELD_VALUE-FIELDNAME = 'P_PLANT'.
      APPEND FIELD_VALUE TO DYNPRO_VALUES.
      CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                DYNAME             = PROGNAME
                DYNUMB             = DYNNUM
                TRANSLATE_TO_UPPER = 'X'
           TABLES
                DYNPFIELDS         = DYNPRO_VALUES.
      READ TABLE DYNPRO_VALUES INDEX 1 INTO FIELD_VALUE.
      SELECT WERKS LGORT INTO TABLE T_T001L FROM T001L WHERE WERKS = FIELD_Value-fieldvalue.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                RETFIELD    = 'P_STOLOC'
                DYNPPROG    = PROGNAME
                DYNPNR      = DYNNUM
                DYNPROFIELD = 'P_STOLOC'
                VALUE_ORG   = 'S'
           TABLES
                VALUE_TAB   = T_T001L.
    START-OF-SELECTION.
      WRITE:/ 'TEST F4 PROGRAM'.
    END-OF-SELECTION.
    <b></b>
    reward points if helpfull
    Regards
    Vikure

  • Modifying selection screen with help of radio buttons

    Hi,
      In my program am using three parameters to download a three different files and I have to use radiobuttons for that.
    I want to download only one file at a time.
    I have used MODIF ID but it is not working for 3 Parameters but it is working for only two parameters.
    Please help me out!!!!!!!!!

    Hi,
    check with the following code
    * Parameters and Selection Options
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_lifnr FOR  lfm1-lifnr .
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS:
       r_asn RADIOBUTTON GROUP rad1 USER-COMMAND uc1 DEFAULT 'X',
       r_ers RADIOBUTTON GROUP rad1  ,
       r_830 RADIOBUTTON GROUP rad1,
       r_850 RADIOBUTTON GROUP rad1,
       r_862 RADIOBUTTON GROUP rad1,
       r_810 RADIOBUTTON GROUP rad1,
       r_820 RADIOBUTTON GROUP rad1,
       r_824 RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    SELECT-OPTIONS: s_bstae   FOR lfm1-bstae MODIF ID sd1.
    PARAMETERS:
       p_ekorg   TYPE lfm1-ekorg   MODIF ID md1,
       p_evcode  TYPE edp21-evcode MODIF ID md2,
       p_kappl   TYPE nach-kappl   MODIF ID md3,
       p_parvw   TYPE nach-parvw   MODIF ID md4,
       p_kschl   TYPE nach-kschl   MODIF ID md5,
       p_vakey   TYPE nach-vakey   MODIF ID md6,
       p_werks   TYPE werks_d      MODIF ID md7,
       p_bukrs   TYPE lfb1-bukrs   MODIF ID md8.
    SELECTION-SCREEN END OF BLOCK b3.
    *eject
    * Initialization
    INITIALIZATION.
    *  PERFORM check_authorization.
    *eject
    * at selection screen
    *AT SELECTION-SCREEN.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF r_asn EQ 'X'
          AND ( screen-group1 = 'MD3' or screen-group1 = 'MD4'
             or screen-group1 = 'MD5' or screen-group1 = 'MD6'
             or screen-group1 = 'MD7' or screen-group1 = 'MD8').
          screen-active = '0'.
          screen-invisible = '1'.
          screen-input = '0'.
          screen-output = '0'.
        ELSEIF r_ers EQ 'X'
          AND ( screen-group1 = 'SD1' or screen-group1 = 'MD1'
             or screen-group1 = 'MD2' or screen-group1 = 'MD3'
             or screen-group1 = 'MD4' or screen-group1 = 'MD5'
             or screen-group1 = 'MD6' or screen-group1 = 'MD7'
             or screen-group1 = 'MD8').
          screen-active = '0'.
          screen-invisible = '1'.
          screen-input = '0'.
          screen-output = '0'.
        ELSEIF r_830 EQ 'X'
          AND ( screen-group1 = 'SD1' or screen-group1 = 'MD1'
             or screen-group1 = 'MD2' or screen-group1 = 'MD6'
             or screen-group1 = 'MD7' or screen-group1 = 'MD8').
          screen-active = '0'.
          screen-invisible = '1'.
          screen-input = '0'.
          screen-output = '0'.
        ELSEIF r_850 EQ 'X'
          AND ( screen-group1 = 'SD1' or screen-group1 = 'MD1'
             or screen-group1 = 'MD2' or screen-group1 = 'MD6'
             or screen-group1 = 'MD7' or screen-group1 = 'MD8').
          screen-active = '0'.
          screen-invisible = '1'.
          screen-input = '0'.
          screen-output = '0'.
        ELSEIF r_862 EQ 'X'
          AND ( screen-group1 = 'SD1' or screen-group1 = 'MD1'
             or screen-group1 = 'MD2' or screen-group1 = 'MD8').
          screen-active = '0'.
          screen-invisible = '1'.
          screen-input = '0'.
          screen-output = '0'.
        ELSEIF r_810 EQ 'X'
          AND ( screen-group1 = 'MD3' or screen-group1 = 'MD4'
             or screen-group1 = 'MD5' or screen-group1 = 'MD6'
             or screen-group1 = 'MD7' or screen-group1 = 'MD8').
          screen-active = '0'.
          screen-invisible = '1'.
          screen-input = '0'.
          screen-output = '0'.
        ELSEIF r_820 EQ 'X'
          AND ( screen-group1 = 'SD1' or screen-group1 = 'MD1'
             or screen-group1 = 'MD2' or screen-group1 = 'MD3'
             or screen-group1 = 'MD4' or screen-group1 = 'MD5'
             or screen-group1 = 'MD6' or screen-group1 = 'MD7' ).
          screen-active = '0'.
          screen-invisible = '1'.
          screen-input = '0'.
          screen-output = '0'.
        ELSEIF r_824 EQ 'X'
          AND ( screen-group1 = 'SD1' or screen-group1 = 'MD1'
             or screen-group1 = 'MD2' or screen-group1 = 'MD3'
             or screen-group1 = 'MD4' or screen-group1 = 'MD5'
             or screen-group1 = 'MD6' or screen-group1 = 'MD7'
             or screen-group1 = 'MD8').
          screen-active = '0'.
          screen-invisible = '1'.
          screen-input = '0'.
          screen-output = '0'.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    *eject
    * Event top of page
    TOP-OF-PAGE.
    *eject
    * event Start of Selection
    START-OF-SELECTION.
    *eject
    *EVENT End-of selection
    END-OF-SELECTION.
    *eject
    *EVENT  End-of page
    END-OF-PAGE.
    Regards,
    Vikas.
    plz reward if helpful..

  • Selection Screen search help values based on condition

    Hi All,
    I am developing this report for HR.And the requirement is in one of the selection screen field the
    value's should be appeared(when f4) based on some condition,ie not all values should come.
    My field is HRP1001-sobid,here there are many values,they dunt want all that to be shown when user
    tries to input the values(F4).And also i need to show the Text for this field(department name) in
    search help.
    Can anyone please guide...
    Thanks in advance.

    Hi Salz
    You can code your own search help procedure for this. To achieve this, first you should add the block:
    <u>e.g.</u>
    AT SELECTION-SCREEN ON VALUE REQUEST FOR p_sobid.
    Within this block you can use the standard FM "<b>RH_OBJID_REQUEST</b>" to call the standard HR help list for objects conditionally.
    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>

  • How Can i SEt Dynamic Variant For WEEK on SELECTION Screen.pls help me..

    <b>Hi ALL..
    Pls Help Me for this Problem..i am very confused how can i do that...plese tell me proper process..
    i  want set Dynamice Varient for WEEK on Selection screen..
    I have ALrady SET Dynamice Varient for DATE on Selection Screen.ther isd option is D...but in case of WEEK there is a no option...
    Plese help me..
    thaks in advance..
    pls help me..</b>

    Hello,
    Define your select-option in TVARV (assume Z_THISWEEK). And use a program like:
    DATA:
      zlv_week TYPE KWEEK.
    call function 'DATE_GET_WEEK'       
       exporting date = syst-datum
       importing week = zlv_week.
    SELECT SINGLE *
          FROM tvarvc
         WHERE name = 'Z_THISWEEK'
           AND type = 'S'
           AND numb = '0000'.
    tvarvc-low = zlv_week.
    IF syst-subrc <> 0.
        tvarvc-name     = 'Z_THISWEEK'.
        tvarvc-type     = 'S'.
        tvarvc-opti     = 'EQ'.
        tvarvc-sign     = 'I'.
        tvarvc-numb     = '0000'.
        insert tvarvc.
    ELSE.
      update tvarc.
    ENDIF.
    Regards,
    John.

  • Problem with ALV and user defined selection screen. please help!

    Hi Experts,
           I have program which has a user defined selection screen 9001. On executing the selection screen i call a ALV using resuse_alv_grid function module.
    What problem I am facing is that when I press back button from ALV page it goes to the se38 editor instead of selection screen.
    How to resolve this?
    Thanks
    Gopal

    Hi,
    This might be due to LEAVE TO TRANSACTION statement. You might be running the program from SE38. Try to run the program using Z-TCode assigned to it.
    Thanks and Regards,
    Bharat Kumar Reddy.V
    Message was edited by: Bharat Reddy V

  • IPod getting stuck at the Language Select screen. HELP PLEASE!

    I couldn't turn my iPod on after charging it, so I reset factory settings. After that the buttons/clickwheel didn't work, and the only way I could turn my iPod on was with the hold switch, and then I would be stuck at the language select screen. When my friend suggested I do a hard reset (even though I didn't think the buttons worked) I did so and realized that I could also turn it on with that method, but I'm still stuck at the language screen.

    I don't know what a "hard reset" is.
    Have you tried a restore?
    See: How to restore the iPod to factory settings.

  • Selection Screen Validation Help

    HI,
       I have used the function module rrms_message_handling in i_step = 2 to validate user entry...The message pops up correctly.....But when i try to use RAISE AGAIN or RAISE NO_REPLACEMENT the program terminates.....Did any one of you face this issue.....is there a solution for the same
    <b>source code and dump analysis</b>
    IF WA_VAR1-HIGH > p_calmon.
        CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
          EXPORTING
            I_CLASS = 'RSBBS'
            I_TYPE = 'E'
            I_NUMBER = '000'
            I_MSGV1 = ' message'
          EXCEPTIONS
            DUMMY = 0
            OTHERS = 0.
          CALL FUNCTION 'RRMS_MESSAGES_SHOW'.
          CALL FUNCTION 'RRMS_MESSAGES_DELETE'.
    >>>>    RAISE NO_REPLACEMENT.
      endif.
    <b>Error analysis</b>
        A RAISE statement in the program "SAPLZ_SK_BEX_VARIABLES" raised the exception
        condition "NO_REPLACEMENT".
        Since the exception was not intercepted by a superior
        program, processing was terminated.
        Short description of exception condition:
        For detailed documentation of the exception condition, use
        Transaction SE37 (Function Library). You can take the called
        function module from the display of active calls.

    Thak you for all .
    AS per my request the validation issue is resolved, now my client want to filter the data based on app id with company code , date and pay run id.
    Here the the app id is from global constan table, there is no key field, but we fetch the same app id in the form print using the below query, i dont know how to use this for selection.
         SELECT SINGLE high FROM zglobconstants INTO v_app_name
                     WHERE programname = 'ZFI_OK_FILEVALUE'
                     AND  low = v_file_name.
    Once again thanks for all your help.
    Vijay.

  • Selection screen - search help with dynamic sql query

    hey ,
    is it possible to change the search help of the selection field ?
    when i create the range table i put a data element :
    create a range table that consists of this new data element
      LT_RANGE_TABLE = WD_THIS->M_HANDLER->CREATE_RANGE_TABLE( I_TYPENAME = 'S_CARR_ID' ).
    can i control the search help via the the data element or by other methods ?
    i want that when the user press F4 the values that will show is the result of a sql query that i will write .
    is it possible ?
    thanks
    ASA.

    Hi,
    yes it is possible...
    This is my test code for say personal number select options...
    lt_range_table = wd_this->m_handler->create_range_table(
      i_typename = 'PERSNO' ).
    add a new field to the selection
      wd_this->m_handler->add_selection_field(
      i_id = 'PERSNO'
    I_VALUE_HELP_TYPE = if_wd_value_help_handler=>CO_PREFIX_SEARCHHELP
    I_VALUE_HELP_ID = 'ZHELP_WDA_PERNR'   "this is the custom search help we need to create
    I_NO_INTERVALS = abap_true
      it_result = lt_range_table
      i_read_only = read_only ).
    do the following:
    1) copy the std function module: F4IF_SHLP_EXIT....to ZF4IF_SHLP_EXIT_pernr (in my case i am testing for pernr so my fm
    name is like that....obviously it can be anything you want...under the recommended naming convention)
    2) look for "STEP SELECT"
    STEP SELECT    (Select values)
    3)write the code as follows:
    "NOTE: this is my testing code...but you can build your logic on it....
    IF CALLCONTROL-STEP = 'SELECT'.
    types: begin of zpri_listing,
    pernr type PERSNO,
    end of zfund_listing.
    DATA: lo_syuname TYPE sy-uname.
    data itab type standard table of Zpri_LISTING.
    data wa type zpri_listing.
        DATA : t_fields LIKE TABLE OF shlp_tab-fielddescr.
        DATA : w_fields LIKE LINE OF shlp_tab-fielddescr.
        DATA : l_fname TYPE dfies-lfieldname.
        IF lo_syuname <> sy-uname.  "means we were here before and ITAB is filled...fm retains its data values...unless refresh happens
    "this if condition make sure that we do not do this select all the time as long as the same user is logged in...
    "a user can press f4 many times...you might want to enhance this logic a little bit more for performance
          lo_syuname = sy-uname.
    ))))))))))))))HERE DO YOUR SELECT(((((((((((((((((((((
    select pernr from "sometable" into table itab.
        ENDIF.
        LOOP AT shlp_tab.
          LOOP AT shlp_tab-fielddescr INTO w_fields.
            l_fname = w_fields-fieldname.
            CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
              EXPORTING
                parameter               = w_fields-fieldname
              OFF_SOURCE              = 0
              LEN_SOURCE              = 0
              VALUE                   =
               fieldname               = l_fname
              TABLES
                shlp_tab                = shlp_tab
                record_tab              = record_tab
                source_tab              =  itab
              CHANGING
                shlp                    = shlp
                callcontrol             = callcontrol
             EXCEPTIONS
               parameter_unknown       = 1
               OTHERS                  = 2
          ENDLOOP.
        ENDLOOP.
        IF sy-subrc EQ 0.
          callcontrol-step = 'DISP'.
        ELSE.
          callcontrol-step = 'EXIT'.
        ENDIF.
        EXIT. "Don't process STEP DISP additionally in this call.
      ENDIF.
    4) save and activate this function module...
    5) go to se11 and create "Elementary srch hlp"....
    6) fill out all the necessary fields...i am assuming that you already know how to create the search helps...
    look for this field: "Search help exit" and put your function name which you created in the above steps...
    in this example i have: ZF4IF_SHLP_EXIT_pernr....
    7) create and activate the search help....
    hope this helps...i just tested this and it is working for me....
    Thanks..
    AS...

  • Add a button in report selection screen

    Hi Experts,
         I want to add a userdefined button in report selection screen....so far i have written code like this,...
    TABLES : sscrfields.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-010.
    PARAMETERS: P_ID LIKE ZBAPITABLE-ID,
                P_NM LIKE ZBAPITABLE-NAME.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-020.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (11) TEXT-001 FOR FIELD R1.
    PARAMETERS: R1 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (10) TEXT-002 FOR FIELD R1.
    PARAMETERS: R2 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (10) TEXT-003 FOR FIELD R1.
    PARAMETERS: R3 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (10) TEXT-004 FOR FIELD R1.
    PARAMETERS: R4 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B2.
    SELECTION-SCREEN: FUNCTION KEY 1.
    MOVE 'SAVE' TO sscrfields-functxt_01.
    If i use code like this button was added in application tool bar
    but in my selection screen i have  two blocks ....in first block i have input fields, and in second there is set of radio buttons...Just below that i want to put one button ....how it is possible...
    can anyone plz help me?
    Regards,
    veena.

    Here's th docu link:
    [Pushbuttons on the Selection Screen|http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba81635c111d1829f0000e829fbfe/frameset.htm]
    Regards,
    Clemens

  • BOX in selection screen

    My requirement is get the box for my selection screen.Please help me out its urgent for me.
    My requirement is follows.
    BOX – display the 4 following criteria as ENGK transaction (including value help):
    -     Legal regulation VBEX-GEGRU (single value)
    -     License type VBEX-GEART (single value)
    -     Internal License Number VBEX- GENNR
    -     External License Number EMBK-EXGEN
    (end of box)
    Tanx & regards,
    Santosh.

    You mean.... something like this?
    selection-screen begin of block b1 with frame title text-001 .
    parameter: p_gegru type VBEX-GEGRU.
    parameter: p_geart type VBEX-GEART.
    parameter: p_gennr type VBEX-GENNR.
    parameter: p_exgen type EMBK-EXGEN.
    selection-screen end of block b1.
    Regards,
    Rich Heilman

  • Display compounded InfoObject value in BEX selection screen

    Hi people,
    Problem in 7.0
    I have Costcenter compounded with Plant and I am using Costcenter for Selections in the BEx varaible screen.
    After running the report, in the selection screen value help, only the value of Costcenter is displayed, not the compounded value (So it becomes very difficult to identify from which plant  the costcenter is from)
    What should I do so that the User sees as Plant/Costcenter in the Value help?
    Problem in 3.5
    The above issue is not there in 3.5, but.......
    I select COSTCENTER X from PLANT A and execute the report. In the report output, I do not see the records only for COSTCENTER X from PLANT A, but for COSTCENTER X from all Plants
    why is this? Is it how this works or is it a bug?
    Please help. I appreciate your assistance very much.
    Thanks,
    Shameem

    Hey there,
    Please understand the behaviour of compounded keys from the below notes:
    1111632   Problem with text display in BEx Query Designer
    1080863   FAQ: Input helps in Netweaver BI
    541253    Restricting characteristics with compound characteristics
    575563    Selecting filter values for compound characteristics
    Hope this can help,
    Diego Seben

  • Selection screen validation when using PNP LDB

    Hi guys,
    I want to validate my selection screen parameters.Thats is if somebody wants to run the program without giving any input parameters to the selection screen(trying to run the report with a blank screen) I want to pop up an error/information message so that it will return the selection screen.I am using PNP Logical database for my selection screen.Please help.Thanks in advance.
    Thanks,
    Karthik.

    Welcome to SDN.
    If you are using PNP logical data base then validating the fields will be little tricky...
    You canc check all the other fields in START-OF-SELECTION and if they are empty return eroor. Remember all the field s on the scree... so I will suggest you to choose HR report Category accordingly.
    Also,when it comes to date field then you need to check for the start and end dates rather than blank fields as SAP defaulted them to system start and end date.
    Still, I will prefer to create a HE Report Category for the PNP database and use the screen while validating....that will be easy...

Maybe you are looking for