Regarding Search Help

Hi Experts,
We are having one Customised Transaction code for Project management and when i select Sales Employee and enter  the pernr , it will display all the sales order under him, but when i am not searching through Pernr Instead am pressing F4 where i can see Last name and First Name under F4 Help and I am giving some name 'FIRST NAME = LIEW' and press enter it showing an error as 'No values found for the selection' though his record existing in View M_PREMN, here the search help used is PREMN, How can we check wheteher this Entry has been maintained under PREMN?
Please provide your Valuable Suggestions.
Thanks,
Sailaja.

Did you check authorization failures thru [SU53|http://help.sap.com/saphelp_nw70ehp1/Helpdata/EN/52/6716b3439b11d1896f0000e8322d00/frameset.htm] ?
(Be aware there is an exit on this search help for lowercase and authority-checks)
Regards,
Raymond

Similar Messages

  • Regarding Search help on selection-screen field

    Hi there,
    I am working on custom tables.
    I have a requirement to maintain search pattern on a selection-screen field.
    selection-screen parameter: p_name which is company name filed from Z table.
    By giving a string like Holl* and by  pressing F4 on the field p_name it has to popup a dialogbox having list of company names starting with Holl.
    Thanks in advance.
    -Tulasi

    Hi
    Go through the link given below :
    How to create a search help for my own fields in selection screen
    F4 search help on report selection screen
    also try :
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    DDIC_STRUCTURE = ' '
    RETFIELD = 'VKORG'
    PVALKEY = ' '
    DYNPPROG = SY-REPID
    DYNPNR = SY-DYNNR
    DYNPROFIELD = 'P_VKORG'
    STEPL = 0
    WINDOW_TITLE =
    VALUE = ' '
    VALUE_ORG = 'C'
    TABLES
    VALUE_TAB = T_TABLE1
    FIELD_TAB = field_tab
    RETURN_TAB = RET_TAB
    DYNPFLD_MAPPING = DYN_TAB
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3
    With Regards
    Nikunj shah

  • Regarding Search Help Exit

    I am having a problem in Search help exit.
    Currently we have a search help “Z_srchlp”. In the Selection method of this search help we have a Help view “z_view”.
    In this view we have a join on Tables KNA1 and KNVV. But now the requirement is to fetch some fields(STR_SUPPL1 and STR_SUPPL2) from ADRC table also. I have to write a Search help Exit for that.
    The search help is on “SHIP-TO PARTY” in VA01. In the Output I need to Display the fields (STR_SUPPL1 and STR_SUPPL2) from ADRC based on adressnumber i.e., ADDRNUMBER in addition to what we are displaying currently.
    Please let me know How can I achieve it. It will be great help if u can send me the Code as it is very urgent.

    Hi,
    take a look to the search help F4IF_SHLP_EXIT_CUSTOMER with SE37.
    Regards
    Nicole

  • Regarding search help for a attribute

    Hi All,
    I have an ALV, there is a hyperlink for one field, which opens up another Popup for ALV as component usage.
    I have one Search help for a field in this popup.
    When I open this popup for first time in that session, F4 for the SH, the value is not getting populated  in that field.
    When I close the popup and open it again, next time the value which I select is getting populated in that field.
    Don't know why this happens.
    Like OVS, can we have F4 help event custom one for SH so that I can triiger it for first time.
    What is the event that gets triggered upon F4 selection of SH.
    Appreciate your replies.
    My server details are as below -
    EHP 4 for SAP ERP 6.0 /7.0
    WEBCUIF 700 0001 SAPK-70001INWEBCUIF SAP WEBCUIF 700
    SAP_ABA 701 0002 SAPKA70102 Cross-Application Component
    Does Service pack has raised these issues.
    Regards,
    Lekha.
    Edited by: Lekha on Aug 11, 2009 6:06 PM

    Resolved by myself.

  • Regarding search helps

    When search help is executed initially i want to display a screen for selection criteria and values have to be displayed how we can do this one?

    Hi,
    Check for Search Help in the Dictionary objects:
    http://help.sap.com/saphelp_46c/helpdata/en/4f/991f82446d11d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/c9/83eb02be4c11d1950200a0c929b3c3/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee93446011d189700000e8322d00/content.htm
    Elementary search helps defines a search path where we will define the table from which the data has to be read and the selection criteria. Through import and export parameters. Used when we gets the data rom a single table.
    Collective search helps:- Combination of elementary search helps. When we need to fetch data based on multiple selection criteria’s. More than one tables or Selection from multiple tables
    For more help on Search helps , Check this http://help.sap.com/saphelp_erp2005/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
    Regards,
    Manish

  • Help regarding search help

    hi,
    i want to know the functionality with example on "search help".
    how r they useful?....how r they created??...and how to use them in dialog program??
    thanks

    Hi Kunal,
    There are 3 ways:
    1)In the PAI of the screen, add a module Process on value request. For example:
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_100.
    PROCESS ON VALUE-REQUEST.
    FIELD field_name MODULE value_request_for_field_name.
    *field_name is the field for which you require search help.
    In the Module value_request_for_field_name call this function 'F4IF_INT_TABLE_VALUE_REQUEST'.
    2)The above procedure can be used if the field you have defined doesnt have an existing search help.If it already has search help and the field in the screen is taken from the dictionary,then in the attributes,u can check from from dictionary under the dictionary tab.
    3)A manual search help can also be created in the se11 transaction by clicking on the search help radio button and giving the table and field name for which search help is required.
    Creating Elementary Search Helps
    Procedure
    In the initial screen of the ABAP Dictionary, select object class Search help, enter the name of the search help and choose Create.
    A dialog box appears in which you must select the type of search help.
    Select Elementary search help and choose .
    The maintenance screen for elementary search helps appears.
    Enter an explanatory text in the field Short text.
    You can for example find the search help at a later time using this short text.
    In the Definition tab page enter the selection method of the search help.
    You can enter the name of a table or a view (database view, projection view or help view) here. If you enter a table that has a text table, the name of the text table is automatically entered in the corresponding field.
    Using the input help (F4 help), select fields of the selection method as parameter in the Search help parameter area. Select the fields that should be used in the dialog box for value selection or in the hit list.
    If the selection method is a table that has a text table, both the fields of the table and the fields of the text table are offered in the input help.
    The data element of the parameter is automatically copied from the selection method. The data element defines the output attributes and the F1 help of the parameter in the hit list and in the dialog box for value selection.
    You can assign the parameter another data element. To do so, select the Mod flag. The Data element field is now ready for input. Then select a data element with the input help (F4 help). Only data elements whose data type, length and number of decimal places is the same as those of the previous data element can be assigned.
    This removes the link between the data element of the search help parameter and the data element of the selection method field having the same name. If you cancel the Mod flag, the data element of the assigned table field is used again.
    Define the attributes of the search help parameters.
    Select the IMP flag if it is an import parameter. Select the EXP flag if it is an export parameter.
    You can define the dialog for the input help with the fields LPos, SPos and SDis. Enter the parameter position in the hit list in LPos. If you enter nothing or the value 0 here, the parameter is not displayed in the hit list.
    Enter the parameter position in the dialog box for value selection in SPos. If you enter nothing or the value 0 here, the parameter is not displayed in the dialog box for value selection.
    Set the SDis flag if the parameter should be a pure display field in the dialog box for value selection. The user is thus informed that the contents of the parameter restrict the value, but he cannot change this restriction. This makes sense for example when the parameter is an import parameter or if it has a default value.
    You can assign the parameter a default value in the Default value field.
    Select the dialog type of the search help.
    The dialog type defines how the hit list is displayed in the input help.
    Save your entries.
    A dialog box appears in which you have to assign the search help a development class.
    Choose .
    Do not forget to link the search help to a screen field. The search help attachment is not part of the search help definition; it is part of the object definition to which the search help is attached.
    Result
    The search help is activated. You can find information about the activation flow in the activation log, which you can display with Utilities ® Activation log. If errors occurred during activation, the activation log is automatically displayed.
    Please check this link on how to create search help.
    http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_basic.htm
    1) after creation of search help, you can assign this to database field in change mode of table and double clicking of the field name.
    2) in screen field, double click to see the attributes and give your search help there.
    Refer this link
    http://help.sap.com/saphelp_erp2005/helpdata/en/cf/21ee93446011d189700000e8322d00/frameset.htm
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Regarding search help restrictions...

    Hi Experts,
    I have created search help with dialog type C (i.e Dialog with restrictions).  As soon as user hits F4 on particular field , it will give pop-up with restriction count.
    I want to set restrict count by default 10 instead of 500. How can we acheive this.
    Please help me .
    Thanks in advance
    Raghu

    [search help exit|http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm]
    [Search help Help|http://www.sapdevelopment.co.uk/dictionary/shelp/shelphome.htm]
    check my wiki for the code for a search help exit.
    J@Y

  • Error in Search help

    Hi Sap Gurus,
         I have a problem regarding Search help of a field in Selection Screen of one program where the system is giving Short dump & showing the message " SAP Paging Overflow When Storing Data in ABAP/4 Memory ".....
        How can i solve this problem.Thanx in Advance...
    Regards,
    Bipasha..

    Have you done the coding in the following way:
    *& Report  ZTEST_SOURAV15
    REPORT ZTEST_SOURAV15 .
    TABLES: mara, marc.
    PARAMETERS: matnr TYPE mara-matnr.
    PARAMETERS: werks TYPE marc-werks.
    TYPES : BEGIN OF ty_marc ,
    werks TYPE marc-werks ,
    END OF ty_marc.
    DATA : it_marc TYPE STANDARD TABLE OF ty_marc.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR werks.
      DATA: l_i_dynpfields TYPE STANDARD TABLE OF dynpread INITIAL SIZE 0,
            l_wa_dynpfields  TYPE dynpread.
      l_wa_dynpfields-fieldname = 'MATNR'.
      APPEND l_wa_dynpfields TO l_i_dynpfields.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname                         = sy-repid
          dynumb                         = sy-dynnr
    *   TRANSLATE_TO_UPPER             = ' '
    *   REQUEST                        = ' '
    *   PERFORM_CONVERSION_EXITS       = ' '
    *   PERFORM_INPUT_CONVERSION       = ' '
    *   DETERMINE_LOOP_INDEX           = ' '
        TABLES
          dynpfields                     = l_i_dynpfields
       EXCEPTIONS
         invalid_abapworkarea           = 1
         invalid_dynprofield            = 2
         invalid_dynproname             = 3
         invalid_dynpronummer           = 4
         invalid_request                = 5
         no_fielddescription            = 6
         invalid_parameter              = 7
         undefind_error                 = 8
         double_conversion              = 9
         stepl_not_found                = 10
         OTHERS                         = 11
      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 l_i_dynpfields INTO l_wa_dynpfields
      WITH KEY fieldname = 'MATNR'.
      IF sy-subrc = 0.
        DATA l_matnr TYPE matnr.
        l_matnr = l_wa_dynpfields-fieldvalue.
        CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
          EXPORTING
            input        = l_matnr
          IMPORTING
            output       = l_matnr
          EXCEPTIONS
            length_error = 1
            OTHERS       = 2.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        SELECT werks FROM marc INTO TABLE it_marc WHERE matnr EQ l_matnr.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield    = 'WERKS'
            dynpprog    = sy-repid
            dynpnr      = sy-dynnr
            dynprofield = 'P_WERKS'
            value_org   = 'S'
          TABLES
            value_tab   = it_marc.
      ENDIF.
    START-OF-SELECTION.
      WRITE: / ' this is for testing'.

  • Search Help in ECC 5.0

    Hi great minds,
    I am working on a project in which the most of the programs are copied from another system (Version 46C) a new system (ECC 5.0).
    Here I have encountered a issue regarding search helps. In version 46C a Pooled table starting with M (for example M_ZSHLP) is used in the selection method. This table has been generated by system.
    This pooled table is used in a program to select the deliveries based on some conditions.
    But in ECC 5.0 I cannot creat this table since it does not fall in to the customer name space and we cannot create any table pool I assume.
    Can anybody suggest me how to handle this situation.
    Thanks in advance.
    Noorul

    Hi,
      Go to SE37.
    Give the FM name and Press Display.
    Chose from menu
    Utilities->More Utilities->Create Webservice->From Function Module
    Regards,
    Ravi

  • Search help on custom screen

    Hi,
    I have a question regarding search help on screen.
    I have searched, but did not find anything for my requirement.
    Here is my requirement...............
    I have a drop down on one of the field of the custom screen. This dropdown has three items to choose from.
    e.g.
    Dropdown has  PO, Reservation and  Pcard.
    And the other custom field is "Source". I want to put seach help on "Source" field.
    So my requirement is to when user chooses PO in dropdown, they should get search help for PO on "Source" field.
    And when user chooses Reservation in dropdown, they should get search help for Reservation on "Source" field.
    Is it possible to that? If yes, then how should i proceed for that?
    Any help would be appriciatable!!
    Thanks in Advance .

    HI Varam.
    Plesae copy this code and Paste in ABAP Editor and Format properly You will know it as it is appearing in Continuous Lines
    And i dont know how to rectify it. Hopp you understand it
    -->In Screen PVO
    -->PROCESS ON VALUE-REQUEST.
    -->  FIELD Screen-Field MODULE f4_get.
    -->in program
    -->MODULE f4_get INPUT.
      DATA : BEGIN OF f4_tab OCCURS 0,
    define Required Fields here
        END OF f4_tab.
      GET CURSOR FIELD fnam VALUE fval.
      DATA : dynpread TYPE TABLE OF dynpread WITH HEADER LINE.
    refresh dynpread.
      dynpread-fieldname = 'Screen-Field'.
      APPEND dynpread.
      CLEAR dynpread.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname                               = sy-repid
          dynumb                               = sy-dynnr
        TRANSLATE_TO_UPPER                   = ' '
        REQUEST                              = ' '
        PERFORM_CONVERSION_EXITS             = ' '
        PERFORM_INPUT_CONVERSION             = ' '
        DETERMINE_LOOP_INDEX                 = 'X'
        START_SEARCH_IN_CURRENT_SCREEN       = 'X'
        START_SEARCH_IN_MAIN_SCREEN          = 'X'
        START_SEARCH_IN_STACKED_SCREEN       = ' '
        START_SEARCH_ON_SCR_STACKPOS         = ' '
        SEARCH_OWN_SUBSCREENS_FIRST          = ' '
        SEARCHPATH_OF_SUBSCREEN_AREAS        = ' '
        TABLES
          dynpfields                           = dynpread
       EXCEPTIONS
         invalid_abapworkarea                 = 1
         invalid_dynprofield                  = 2
         invalid_dynproname                   = 3
         invalid_dynpronummer                 = 4
         invalid_request                      = 5
         no_fielddescription                  = 6
         invalid_parameter                    = 7
         undefind_error                       = 8
         double_conversion                    = 9
         stepl_not_found                      = 10
         OTHERS                               = 11
      IF sy-subrc IS INITIAL.
        READ TABLE dynpread WITH KEY fieldname = 'Screen-field'.
        IF sy-subrc IS INITIAL.
          SELECT Your Fields FROM Required FIelds
                INTO TABLE f4_tab
                 WHERE Required Condions.
          CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
            EXPORTING
            DDIC_STRUCTURE         = ' '
              retfield               = 'RETURN FIELD' To which the F4 value to be passed on to screen
            PVALKEY                = ' '
             dynpprog               = sy-repid
             dynpnr                 = sy-dynnr
             dynprofield            = 'Screen-Field' --> All single Quote Values to be Capital Letters
            STEPL                  = 0
            WINDOW_TITLE           =
            VALUE                  = ' '
             value_org              = 'S'
            MULTIPLE_CHOICE        = ' '
            DISPLAY                = ' '
            CALLBACK_PROGRAM       = ' '
            CALLBACK_FORM          = ' '
            MARK_TAB               =
          IMPORTING
            USER_RESET             =
            TABLES
              value_tab              = f4_tab
            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.
        ENDIF.
      ENDIF.
    ENDMODULE.                 " f4_get  INPUT
    Edited by: Ramchander Krishnamraju on Oct 31, 2009 4:32 AM

  • Query about Search help exits

    Hi experts,
               I have one query regarding search help. I have created a elementary search help which is having two fields.Now my requirement is that in the selection screen when I will enter any value in one field and i will press F4 in other field the list should contain only the values corresponding to the first field.
    e.g.two fields comp code and name of company. When I will select the company code and press F4 in the second field the companies corresponding to the particular code should appear. Should I write a particular exit for that.
      Experts please help me.
      I will reward points accordingly.
      Thanks in advance,
        Abir.

    hi abir,
    no neeed for that.
    here i am fetching zones under a country.
    so first user enters a country.
    eg india.
    then on the zone field f4 help, only the zones of india shulod come.
    chk how i did it.
    *&      Form  F_GET_ZONE_DESC
          THIS SUB ROUTINE WILL FETCH THE ZONE DESCRIPTION
    -->  p1        F_GET_ZONE_DESC
    <--  p2        F_GET_ZONE_DESC
    FORM f_get_zone_desc .
      CLEAR int_ret.
      IF wf_country_code IS INITIAL.
    *--MESSAGE IS 'Country Not Selected'.
        MESSAGE s016(zm050).
      ELSE.
    *--THIS WILL FETCH THE ZONE CODES INTO THE INTERNAL TABLE'INT_ZONE_CODE'
    *--WITH RESPECT TO A COUNTRY CODE.
        SELECT zonecode zone_desc
          FROM zmpets_zone
            INTO TABLE int_zone_code
              WHERE land1 = wf_country_code
               AND loekz NE 'X'.
        IF sy-subrc NE 0.
    *MESSAGE IS 'No Zone Available In <COUNTRY_NAME>
          MESSAGE s019(zm050) WITH wf_country_desc.
        ELSE.
          CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
            EXPORTING
      DDIC_STRUCTURE         = ' '
              retfield               = 'WF_ZONE_CODE'
      PVALKEY                = ' '
      DYNPPROG               = ' '
      DYNPNR                 = ' '
      DYNPROFIELD            = ' '
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
             value_org              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             =
            TABLES
              value_tab              = int_zone_code
      FIELD_TAB              =
             return_tab             = int_ret
      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 int_ret INDEX 1." INTO INT_RET.
          wf_zone_code = int_ret-fieldval.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.                    " F_GET_ZONE_DESC
    rgds
    anver
    if helped mark points

  • Search help - how to further restrict its values

    Hi,
    I have a question here regarding search helps and I hope you all could provide me with some useful pointers.
    There is a select-option of the type bkpf-blart (document type) in the selection screen. I have a problem with retrieving the data properly from the table bkpf for the search help values bkpf-blart so that it will only return 3 values, kr, re and zb values. How may I achieve this properly using a select statement and then using the function module f4if_int_table_value_request?
    (I am referring to a tutorial from the SAP technical website as a guide to use the function module f4if_int_table_value_request.)
    Appreciate any inputs here, as I am still learning the ropes in abap.
    Many thanks in advance.

    Hi,
    try using this demo program
    MODULE GET_F4_HELP INPUT.
      TYPES : BEGIN OF EMPLOYEE,
              EMPNO TYPE ZTG_EMP-EMPNO,
              END OF EMPLOYEE.
      DATA : EMPTAB TYPE STANDARD TABLE OF EMPLOYEE WITH HEADER LINE,
             TB_DYNPFIELDS LIKE DYNPREAD OCCURS 0 WITH HEADER LINE,
             PLAN_ID TYPE ZTG_HEALTH-PLAN_ID.
      CLEAR:   TB_DYNPFIELDS.
      REFRESH: TB_DYNPFIELDS.
      MOVE 'ZTG_EMP-HLTH_PLAN' TO TB_DYNPFIELDS-FIELDNAME.
      APPEND TB_DYNPFIELDS.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          DYNAME                               = 'SAPMZTG01'
          DYNUMB                               = '1010'
    *   TRANSLATE_TO_UPPER                   = ' '
    *   REQUEST                              = ' '
    *   PERFORM_CONVERSION_EXITS             = ' '
    *   PERFORM_INPUT_CONVERSION             = ' '
    *   DETERMINE_LOOP_INDEX                 = ' '
    *   START_SEARCH_IN_CURRENT_SCREEN       = ' '
    *   START_SEARCH_IN_MAIN_SCREEN          = ' '
    *   START_SEARCH_IN_STACKED_SCREEN       = ' '
    *   START_SEARCH_ON_SCR_STACKPOS         = ' '
    *   SEARCH_OWN_SUBSCREENS_FIRST          = ' '
    *   SEARCHPATH_OF_SUBSCREEN_AREAS        = ' '
        TABLES
          DYNPFIELDS                           = TB_DYNPFIELDS
    * EXCEPTIONS
    *   INVALID_ABAPWORKAREA                 = 1
    *   INVALID_DYNPROFIELD                  = 2
    *   INVALID_DYNPRONAME                   = 3
    *   INVALID_DYNPRONUMMER                 = 4
    *   INVALID_REQUEST                      = 5
    *   NO_FIELDDESCRIPTION                  = 6
    *   INVALID_PARAMETER                    = 7
    *   UNDEFIND_ERROR                       = 8
    *   DOUBLE_CONVERSION                    = 9
    *   STEPL_NOT_FOUND                      = 10
    *   OTHERS                               = 11
      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 TB_DYNPFIELDS INDEX 1.
      IF SY-SUBRC EQ 0.
        PLAN_ID = TB_DYNPFIELDS-FIELDVALUE.
      ENDIF.
      SELECT EMPNO FROM ZTG_EMP
      INTO TABLE EMPTAB
      WHERE HLTH_PLAN = PLAN_ID.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
    *     DDIC_STRUCTURE         = ' '
        RETFIELD               = 'EMPNO'
    *     PVALKEY                = ' '
       DYNPPROG               = 'SAPMZTG01'
       DYNPNR                 = '1010'
       DYNPROFIELD            = 'TB1'
    *     STEPL                  = 0
    *     WINDOW_TITLE           =
    *     VALUE                  = ' '
         VALUE_ORG              = 'S'
    *     MULTIPLE_CHOICE        = ' '
    *     DISPLAY                = ' '
    *     CALLBACK_PROGRAM       = ' '
    *     CALLBACK_FORM          = ' '
    *     MARK_TAB               =
    *   IMPORTING
    *     USER_RESET             =
      TABLES
        VALUE_TAB              = EMPTAB
    *     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.
    ENDMODULE.                 " GET_F4_HELP  INPUT
    Thanks
    Arun Kayal

  • Need a help on Search help

    Hi All,
    I need some regarding search help.
    I have created search help for two Fields.
    in my Selection screen I am giving these two
    for example material type and material Number
    in my first selection I have selected material type 'X'.
    when I press F4 on material number I need to get only the material no, which are related to that material type 'X'
    I need to filter the Second F4 help based on First one.
    Can u guys tell me the solution ASAP.
    Thanks in advance
    Regards
    Venu

    Hi Venu,
    Use AT SELECTION-SCREEN ON VALUE-REQUEST FOR <Material Type>
    here you will get the 'Material Type' which user has selected, so get the Values from the database based on the 'Material Type' which is selected, then pass it to the 'Material Number'  so that if User press the F4 then he will get only those values based on the condition.
    you can use Function module F4IF_FIELD_VALUE_REQUEST to get the values.
    Regards,
    KK

  • Filtering the search help values

    Hi all
      I need some help regarding search help that for a normal search help for a field we will get all the possible values for that but here i need to filter the field values based on the previous field entered value.
    for example :
      two fields are there
        plant and work center,
    for a normal search help work center may get 100 values from a defined table.
    if we enter some value in plant field and then if we press search help for the work center field then the values of the work center should be filtered based on the above entered value.
          Please help me in this issue..tell me whether it is possible or not
    Thanks in advance.
    siva.

    IF not <plant field> is initial
    1. Copy F4IF_SHLP_EXIT_EXAMPLE to Z, call it from your programpass the plant data to it
    2. Use the changing parameters SHLP and CALLCONTROL of that FM
    3. Append your plant values into shlp-selopt[] table () like shown below
    data begin of s_hselopt occurs 0.
            include structure ddshselopt.
    data end of s_hselopt.
      CASE callcontrol-step.
        WHEN  'SELECT'.
      LOOP AT <plant table>
        s_hselopt-shlpname  = <SHelp Name>
        s_hselopt-shlpfield = <Field Name - Wrk Ctr>
        s_hselopt-sign      = <Constant ('I')>
        s_hselopt-option    = <Constant ('EQ')>
        s_hselopt-low = <plant table-plant>
        APPEND s_hselopt.
        CLEAR s_hselopt.
      ENDLOOP.
    shlp-selopt[] = s_hselopt[].
    ENDCASE.

  • Regarding guidance to use standard search help

    I need to add two fields PLANT and STORAGE Location on the item level of the service order.  These fields are not mandatory, and should enable the user to enter a Plant and Storage location.The storage location field editable and using a value help, this field and the plant will be filled in.  The plant field is read-only.  The table which contains the data in SAP is OFIC_PLANT_SRV.  Based upon the search help OFI_SHLP_STORAGE_LOC, I will put both the storage location and plant on the Web UI, when the user uses the search help of field Storage Location.
    I am using SAP CRM 7.0 and new to ABAP and CRM.
    Kindly suggest in detail what should I do step by step ?
    ALready I have done the following :
    1) Enhanced respective components
    2) Added the fields through AET in BTADMINI

    The search help used here is MAT1.
    It is possible to use the same serch help in your custom program. You can either attach with the field in the table by double clicking on the field name in SE11 or in the screen painter. Double click on the field in the screen painter and under the attribute option (Dict tab) you can find option for giving serach help.
    Vinod

Maybe you are looking for

  • Automatic reflection of changes in JSP pages in R12i

    As per note metalink note 458338.1, i have set the main_mode from justrun to recompile in context file and run autoconfig. Also confirmed for the entry in $INST_TOP /ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml file. Still

  • Transfer phots from I Phone to PC?

    Transfer photos from I Phone 4S to PC with Windows 8.1?

  • Opening Blend, I'm met with TWO device choices my Z10 and another that I don't recognize

    Actually, when I first open Bland on Samsung Tab S, I see my Z10.  I enter the Password.  It goes through some process and then I am met with TWO device, the Z10 and Device-xxxx where I guess XXXX is some partial PIN number but I don't recognize it. 

  • Error 105 - while compiling with adt

    I am getting this error "error 105: application.iPhone.InfoAdditions contains an invalid value" while packaging my application with adt for ios. The command I used is this "c:\Program Files\Adobe\Adobe Flash CS5.5\AIR2.6\bin\adt" -package -target ipa

  • Reduce Echo in an Audio Recording within Garageband

    I recorded a podcast interview using Skype/Call Recorder. For some reason, the set-up I used created an audio file that has a very slight echo. Is there any way to reduce this slight echo in the interview track in Garageband?