Mandatory in search help

hi i am using the fm
*To Make the KDGRP field mandatory.
  CALL FUNCTION 'F4UT_PARAMETER_REQUIRED'
     EXPORTING
       parameter_required       = 'KDGRP'
      NOT_REQUIRED             = ' '
     TABLES
       shlp_tab                 = shlp_tab
       record_tab               = record_tab
     CHANGING
       shlp                     = shlp
       callcontrol              = callcontrol.
to make the field KDGRP andatory in my search help. I have included this code in the search help exit.
but when the search help is displayed the field has a ? displayed to show it is mandatory.
how can i remove this? and still keep it mandatory!
help me out in resolving this issue

Hi,
check out the following link it might help you
F4 Help
**please reward points if the infromation is helpful to you****

Similar Messages

  • Messages in Search help Pop Up

    Hello Experts,
    I have created a Elementary search help in Data dictionary and have used for Web UI Fields.
    Now the search criteria is appearing as mentioned in elementary search help. I want to throw a error message if the user clicks on search without entering search criteria.
    i tried to add message in global message container, but the message is not displaying on the popup, message gets added to Global message container but will be shown once the pop up closes. I need to show the error message on Search help pop up screen only.
    Please suggest how to make these fields mandatory on search help.
    BR,
    Nikhil Kulkarni

    Hi Nikhil Kulkarni
    use method set_display_mode()
    before open popup as :-
        lo_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).
        lo_popup->set_on_close_event( iv_view = me iv_event_name = 'SRPOPUPCLOSED').
        lo_popup->open(  ).
    it will work.
    reagards, Harish Kumar

  • How to have a mandatory field in a search help

    Hi,
    i have created a search help and one of the field need to be mandatory.
    can anyone tell me how to have a field as mandatory in a search help?
    thanks
    Regards,
    Nitin

    Hi Buantoa  ,
      You can use a search help exit for the same , so when ever a user does not enter the mandatory feild and tries to execute the serach help an error message will be displayed.
    Create a search help exit for your search help and write code to check for your feild.
    I tried to do the same and it works
    Here is the code for my serach help exit
      if callcontrol-step = 'SELONE'.
    data : wa_1 type ddshiface.
    loop at shlp-interface into wa_1.
      if wa_1-shlpfield = 'MATNR'.
        if wa_1-value is initial.
           message e999.
        endif.
      endif.
    endloop.
      endif.
    Do revert back in case of any further queries.
    Regards
    Arun

  • Performance with ADMC Search help

    Hi Everyone.
    Here there is a performance issue when we tried with the standard search help.It is happening in MEAN Transaction and the search help is for Address Number .While we tried it is giving dump for sometimes.
    When I checked into the search help,It is a collective search help and the selection-method is from a View.
    Could anyone face this ,please give some pointer to resolve this Performance issues.
    If there is any way to reolve this ,we can clone the existing report and do the changes in the new ZMEAN Transaction .
    Regards,
    Kranti Yamparala.

    I don't understand the details of your question.
    But anyway, a search help searches on a maybe very large table with very poor selection criteria, this can take
    ages and there is nothing you can do.
    You must take care that the selection critieria make sense,
    + either by defining mandatory inputs
    + or/and by adding some indices which you think are necessary
    Siegfried

  • Need some help in creating Search Help for standard screen/field

    I need some help in adding a search-help to a standard screen-field.
    Transaction Code - PP01,
    Plan Version - Current Plan (PLVAR = '01'),
    Object Type - Position ( OTYPE = 'S'),
    Click on Infotype Name - Object ( Infotype 1000) and Create.
    I need to add search help to fields Object Abbr (P1000-SHORT) / Object Name (P1000-STEXT).
    I want to create one custom table with fields, Position Abb, Position Name, Job. Position Abb should be Primary Key. And when object type is Position (S), I should be able to press F4 for Object Abb/Object Name fields and should return Position Abbr and Position Name.
    I specify again, I have to add a new search help to standard screen/field and not to enhance it.
    This is HR specific transaction. If someone has done similar thing with some other transation, please let me know.
    There is no existing search help for these fields. If sm1 ever tried or has an idea how to add new search help to a standard screen/field.
    It's urgent.
    Thanks in advace. Suitable answers will be rewarded

    Hi Pradeep,
    Please have a look into the below site which might be useful
    Enhancing a Standard Search Help
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/daeda0d7-0701-0010-8caa-
    edc983384237
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee93446011d189700000e8322d00/frameset.htm
    A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.
    This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).
    A search help exit is called at certain timepoints in the input help process.
    Note: The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.
    Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.
    During the input help process, a number of timepoints are defined that each define the beginning of an important operation of the input help process.
    If the input help process is defined with a search help having a search help exit, this search help exit is called at each of these timepoints. If required, the search help exit can also influence the process and even determine that the process should be continued at a different timepoint.
    timepoints
    The following timepoints are defined:
    1. SELONE
    Call before selecting an elementary search help. The possible elementary search helps are already in SHLP_TAB. This timepoint can be used in a search help exit of a collective search help to restrict the selection possibilities for the elementary search helps.
    Entries that are deleted from SHLP_TAB in this step are not offered in the elementary search help selection. If there is only one entry remaining in SHLP_TAB, the dialog box for selecting elementary search helps is skipped. You may not change the next timepoint.
    The timepoint is not accessed again if another elementary search help is to be selected during the dialog.
    2. PRESEL1
    After selecting an elementary search help. Table INTERFACE has not yet been copied to table SELOPT at this timepoint in the definition of the search help (type SHLP_DESCR_T). This means that you can still influence the attachment of the search help to the screen here. (Table INTERFACE contains the information about how the search help parameters are related to the screen fields).
    3. PRESEL
    Before sending the dialog box for restricting values. This timepoint is suitable for predefining the value restriction or for completely suppressing or copying the dialog.
    4. SELECT
    Before selecting the values. If you do not want the default selection, you should copy this timepoint with a search help exit. DISP should be set as the next timepoint.
    5. DISP
    Before displaying the hit list. This timepoint is suitable for restricting the values to be displayed, e.g. depending on authorizations.
    6. RETURN (usually as return value for the next timepoint)
    The RETURN timepoint should be returned as the next step if a single hit was selected in a search help exit.
    It can make sense to change the F4 flow at this timepoint if control of the process sequence of the Transaction should depend on the selected value (typical example: setting SET/GET parameters). However, you should note that the process will then depend on whether a value was entered manually or with an input help.
    7. RETTOP
    You only go to this timepoint if the input help is controlled by a collective search help. It directly follows the timepoint RETURN. The search help exit of the collective search help, however, is called at timepoint RETTOP.
    8. EXIT (only for return as next timepoint)
    The EXIT timepoint should be returned as the next step if the user had the opportunity to terminate the dialog within the search help exit.
    9. CREATE
    The CREATE timepoint is only accessed if the user selects the function "Create new values". This function is only available if field CUSTTAB of the control string CALLCONTROL was given a value not equal to SPACE earlier on.
    The name of the (customizing) table to be maintained is normally entered there. The next step returned after CREATE should be SELECT so that the newly entered value can be selected and then displayed.
    10. APP1, APP2, APP3
    If further pushbuttons are introduced in the hit list with function module F4UT_LIST_EXIT, these timepoints are introduced. They are accessed when the user presses the corresponding pushbutton.
    Note: If the F4 help is controlled by a collective search help, the search help exit of the collective search help is called at timepoints SELONE and RETTOP. (RETTOP only if the user selects a value.) At all other timepoints the search help exit of the selected elementary search help is called.
    If the F4 help is controlled by an elementary search help, timepoint RETTOP is not executed. The search help exit of the elementary search help is called at timepoint SELONE (at the
    F4IF_SHLP_EXIT_EXAMPLE
    This module has been created as an example for the interface and design of Search help exits in Search help.
    All the interface parameters defined here are mandatory for a function module to be used as a search help exit, because the calling program does not know which parameters are actually used internally.
    A search help exit is called repeatedly in connection with several
    events during the F4 process. The relevant step of the process is passed on in the CALLCONTROL step. If the module is intended to perform only a few modifications before the step, CALLCONTROL-STEP should remain unchanged.
    However, if the step is performed completely by the module, the following step must be returned in CALLCONTROL-STEP.
    The module must react with an immediate EXIT to all steps that it does not know or does not want to handle.
    Hope this info will help you.
    ***Reward points if found useful
    Regards,
    Naresh

  • Steps for creation of search help exit for a search help

    Hi,
    I have created a search help. I need to create a search help exit for this search help.
    Please let me know how to create a search help exit as well as how to link it to my search help.

    1)Copy the FM F4IF_SHLP_EXIT_EXAMPLE to write your own FM. (check the documentation and coding of FM F4IF_SHLP_EXIT_EXAMPLE).
    2)write your code depending upon the functionality you want.
    3)attach the FM in search help through SE11 in "search help exit" field.
    A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.
    This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).
    A search help exit is called at certain timepoints in the input help process.
    Note: The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.
    Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.
    This module has been created as an example for the interface and design of Search help exits in Search help.
    All the interface parameters defined here are mandatory for a function module to be used as a search help exit, because the calling program does not know which parameters are actually used internally.
    A search help exit is called repeatedly in connection with several events during the F4 process. The relevant step of the process is passed on in the CALLCONTROL step. If the module is intended to perform only a few modifications before the step, CALLCONTROL-STEP should remain unchanged.
    However, if the step is performed completely by the module, the following step must be returned in CALLCONTROL-STEP.
    For more detailed information please refer to the documentation describing the concept of the search help exit.
    The module must react with an immediate EXIT to all steps that it does not know or does not want to handle.

  • Search Help "PREM"  Restriction on Company Code

    Dear Friends,
    I have modified the screen SAPLKACB 0002. I HAVE APPLIED SEARCH HELP "PREM" ON COBL-PERNR(Personnel No).Now if u go to F-02 Transaction.We have a Company Code entered Say : 2200.
    Now if we fill in the mandatory fields we go 2 next screen there we have personnel no field where i have
    attached F4(Search Help).
    Now i need 2 restrict the search help according to the company code.
    if the Company Code i enter say 2100 and hIt enter.it should give me some king of msg that
    the company code 2100 does not match the (F-02 Transaction Company Code:2200).
    Please Guide as 2 how 2 Accomplish this.
    Regards,
    Essam

    Hi if you need to do any thing to search help u need to create a search help exit for it.
    check my [blog|https://wiki.sdn.sap.com/wiki/x/du0] on this code.

  • Search Help Selection Screen Window Title

    Hi Experts,
    I have created a search help in se11 with import as well as export parameter.
    While I press F4 on the field to which it is assigned then Search Help seelction screen opens up with a Window Tilte 'Sede Tecnica(1)' i.e. some standard text.
    Can I change this F4 window title to user custom label?
    Thanks
    Depesh

    Hi Depesh
    While creating the search help exit following parameters are mandatory.
    Changing
    SHLP           TYPE     SHLP_DESCR
    CALLCONTROL  TYPE     DDSHF4CTRL
    Tables
    SHLP_TAB         TYPE     SHLP_DESCT
    RECORD_TAB  LIKE     SEAHLPRES
    Regards
    Bala

  • 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

  • Search Help Exit - Dependent Search Help

    Hello All
    My question is related to Sarch Help in SE11.
    I have created a Search Help and implemented a Search help Exit.In My search help i have PLANT  and LGORT(storage loc.).
    and i have taken the Search help of PLANT and LGORT from T001L table( H_T001W and H_T001L).
    Now on the SELECTION SCREEN of SEARCH HELP ,based on PLANT selected, the Storage Location should come with filtered records based PLANT.
    A kind of Dependent Seach help.
    I have Checked that in TABLE T001L, when i do F4 on PLANT and then if i do F4 on LGORT it comes with the filtered records.
    Kindly Help.
    Points will be Awarded.

    *Below is the Code:-
    IF callcontrol-step <> gc_selone AND  "SELONE
         callcontrol-step <> gc_select AND  "SELECT
         callcontrol-step <> gc_disp   AND  "DISP
         callcontrol-step <> gc_presel.    "PRESEL
        EXIT.
      ENDIF.
      "Checking Call Control Step is "PRESEL" For doing Validation and
      "changing the field Label before displaying the Scren.
      IF callcontrol-step = gc_presel."'PRESEL'.
        ASSIGN shlp TO <fs_shlp1>  .
        READ TABLE <fs_shlp1>-interface ASSIGNING <fs_shlp2> WITH KEY f4field = gc_x."X
        IF sy-subrc = 0.
          <fs_shlp2>-f4field = gc_space."' '.
        ENDIF.
    *Renaming Internal Characteristic to Characteristics Name
        LOOP AT <fs_shlp1>-fielddescr ASSIGNING <fs_shlp3>.
          IF <fs_shlp3>-fieldname = gc_flag."Renaming "FLAG" to "NO ZERO STOCK BATCH"
            <fs_shlp3>-fieldtext =  text-001.
            <fs_shlp3>-reptext   =  text-001.
            <fs_shlp3>-scrtext_s =  text-002.
            <fs_shlp3>-scrtext_m =  text-001.
            <fs_shlp3>-scrtext_l =  text-001.
          ELSEIF <fs_shlp3>-fieldname = gc_lgort."Renaming "STORAGE LOCATION".
            <fs_shlp3>-fieldtext =  text-005.
            <fs_shlp3>-reptext   =  text-005.
            <fs_shlp3>-scrtext_s =  text-006.
            <fs_shlp3>-scrtext_m =  text-005.
            <fs_shlp3>-scrtext_l =  text-005.
          ENDIF.
        ENDLOOP.*Validation for PLANT
        CALL FUNCTION 'F4UT_PARAMETER_REQUIRED'
          EXPORTING
            parameter_required = gc_werks "Field to be mandatory('WERKS')
          TABLES
            shlp_tab           = shlp_tab
            record_tab         = record_tab
          CHANGING
            shlp               = shlp
            callcontrol        = callcontrol.
      ENDIF.
      IF callcontrol-step = gc_select.   "SELECT*Reading all the Values given at screen.
        PERFORM read_shlp USING shlp.
        IF ( r_atwrt  IS NOT INITIAL  OR r_atinn IS NOT INITIAL ).*If user has only given CHARACTERISTICS and VALUE as selection criteria.
          PERFORM char_value_fetch.
        ELSEIF r_matnr IS NOT INITIAL OR r_werks IS NOT INITIAL OR r_lgort IS NOT INITIAL.*If user has only given any value other than CHARACTERISTICS and VALUE as selection criteria.
          PERFORM fetch_other_details.
          IF gv_flag = gc_x. "'X'
            DELETE gt_final WHERE clabs = gc_labst.
            DELETE gt_final WHERE cinsm = gc_labst.
          ENDIF.
          EXIT. "Don't process STEP DISP additionally in this call.
        ENDIF.*Prepare Final Table
      ENDIF.
      IF callcontrol-step = gc_disp. "DISP*Refreshing the RECORD_TAB and Populating it with values of GT_FINAL
        REFRESH:record_tab.
        callcontrol-maxexceed = gc_x. "X*This Method Fills the RECORD_TAB from GT_FINAL to display.
        CALL FUNCTION 'F4UT_RESULTS_MAP'
          TABLES
            shlp_tab          = shlp_tab
            record_tab        = record_tab
            source_tab        = gt_final
          CHANGING
            shlp              = shlp
            callcontrol       = callcontrol
          EXCEPTIONS
            illegal_structure = 1
            OTHERS            = 2.
        IF sy-subrc <> 0.* Implement suitable error handling here
        ENDIF.*Refreshing GT_FINAL
        REFRESH: gt_final,r_matnr,r_atwrt,r_atinn,r_klart,r_werks,r_lgort,shlp_tab,gt_mchb,gt_mara,gt_makt,gt_ausp,gt_mcha.
        CLEAR:gv_flag.
      ENDIF.

  • Applying search help on the screen fields of a module pool program

    hi all
    i am creating a sales order against a purchase order i am stuck at applying the search helps
    i have header data (only mandatory fields),items data,partner data(all mandatory fields)
    i want to have input search help as if i select sales document type then corresponding sales organizations should appear and when i select all the header data the search help that is on the material number and partners role and number should appear corresponding to that header data
    i found following search helps as:-
    h_vakz and h_mvke
    not able to apply please guide someone
    thanks
    varun

    i want to have input search help as if i select sales document type then corresponding sales organizations should appear
    This would be quite opposite of what h_vakz does. h_vakz gives Sales document based on Sales org..and you want vice versa. Create a simple SH with
    selection method : TVAKZ
    AUART as importing only
    VKORG as exporting only. So when you enter an AUART you get all VKORG it is defined in. I'm not aware of a standard search help which matches the requirement. If anybody does please help me.
    i have header data (only mandatory fields),items data,partner data(all mandatory fields)
    and when i select all the header data the search help that is on the material number and partners role and number should appear corresponding to that header data
    You will have to be more specific sir..
    not able to apply please guide someone
    As for that just mention them in SCREEN->ELEMENT LIST->REFERENCES

  • Making field mndatory & adding search help in MB21.

    Hi experts...
    I want to make two fields mandatory in tcode MB21 & MB22.
    Also want to add search help to one of the field.
    Can any one tell me?..............
    Regards.
    Sunil.

    You can look for the search help exits to make the changes if already a help is available.
    If nothing is available you can check with the screen exit to add the help.
    refer the link,
    Re: Search help enhancement - VA01

  • Search help in RFC

    Hi
    I have five import parameters for search which don't have common tables . I am wondering I will have to write so many combinations to acheive this. Is there any simple way or if I can use search help without pop up and can return results to the external system.
    It's kind of urgent, if anyone can help me would be highly appriciated.
    Regards
    Ria

    Hi,
      Looks like you are trying to get the PO details for the importing parameters..
      I think you should have atleast one mandatory field and rest of them make it as optional.
      For the optional parameters create a ranges and use the IN operator in the SQL..If the record is passed then the records will be filtered based on that otherwise it will bring all the records..
      RANGES: r_matnr FOR mara-matnr.
      if not im_matnr is initial.
       r_matnr-sign = 'I'.
       r_matnr-option = 'EQ'.
       r_matnr-low = im_matnr.
       append r_matnr.
      endif.
      In the SQL..
      Select * from xxx
             where matnr IN r_matnr..
      Is this what you are looking..Otherwise please explain more..
    Please award points for helpful answers.
    Thanks,
    Naren

  • Search Help 'PREM' Related

    Dear Friends,
    I have modified the screen SAPLKACB 0002. I HAVE APPLIED SEARCH HELP "PREM" ON COBL-PERNR(Personnel No).Now if u go to F-02 Transaction.We have a Company Code entered Say : 2200.
    Now if we fill in the mandatory fields we go 2 next screen there we have personnel no field where i have
    attached F4(Search Help).
    Now i need 2 restrict the search help according to the company code.
    if the Company Code i enter say 2100 and hIt enter.it should give me some king of msg that
    the company code 2100 does not match the (F-02 Transaction Company Code:2200).
    Please Guide as 2 how 2 Accomplish this.
    Regards,
    Essam

    You may check the following IMG path from SPRO:
    Personnel Management > Personnel Administration > Basic Settings > Maintain search helps
    And then look into tab 'Included search helps'. Maybe some of the check-boxes have been checked / unchecked here.
    Hope this helps.
    Regards,

  • Assign Search help

    I WANT TO SET SEARCH HELP RESTRICTED TO 4 VALUES..
    Selection parameters for status – search help restricted to only below parameters
    Make it mandatory.
    I20 - hold
    I30 - sucess
    I40 - completed
    I50 - discard.

    Hi,
    You need to do the following steps.
    1). Define a internal table
    2). Create 4 entries with the correct data
    3). Pass the internal table to the FM given below
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                RETFIELD         = 'CONNID'
                DYNPPROG         = PROGNAME
                DYNPNR           = DYNNUM
                DYNPROFIELD      = 'CONNECTION'
                VALUE_ORG        = 'S'
           TABLES
                VALUE_TAB        = <YOUR INTERNAL TABLE>.
    4). Call the FM where you want to display the F4 help.

Maybe you are looking for

  • Error after SSL Certificat update

    I updated the SSL certificate on a Win2003 SP2 server with IIS6.0 The initial certificat was a single URL certificate and is replaced by a wildcard one. After installing the certificate (and it's CA chain) using the mmc I changed the certificate in I

  • Changing of Application ToolBar pushbutton  base on the tab.

    Hi, I have a tabstrip with 2 tab. When the user come to the first screen ( 1st tab) the application toolbar will show 3 pushbutton, when the user select 2nd tab, the application toolbar must change to 2 pushbutton.  When the user click back on the 1s

  • Zc706-Read data from DDR, send to FMC card pins

    Hi, There will no direct FMC IP available but you have to make your peripheral(s) in desing to drive the FMC card I/O interfaces. The ZC706 evaluation board supports the FMC of the high pin count (HPC) connector at J37 and low pin count (LPC) version

  • Has anyone ever seen this on a iPhone 4s, the bar is upside down.

    Can someone explain this, it just happened out of knowhere. I turned the iPhone off and on and now its gone, but this is odd. Anyone? Romano

  • Support of multiple transports by OWSM

    Hi, i have IBM WBI (Message broker) as hub and spoke for the web services and I am going to use OWSM as soa governance tool with novell Access manager as LDAP server. I am wondering whether there is any success story with this kind of configuration.