BADI for HR search help PREM

Hello folks,
I have a requirement here. I have appended a search help ZIPPREM to the standard HR search help <b>PREM</b>.
And I had implemented  BADI <b>HRPAD00_PREM</b> in order to get values based on the custom search help.
Here is the code for the same.
METHOD if_ex_hrpad00_prem~get_shlps.
*=======================================================================
* data declaration
*=======================================================================
  DATA: ls_sel_shlp LIKE LINE OF sel_shlp.
*=======================================================================
* set attributes for selection table
*=======================================================================
  ls_sel_shlp-sign   = 'I'.
  ls_sel_shlp-opti   = 'EQ'.
*=======================================================================
* assign search helps dependent on the relevant transaction
*=======================================================================
  CASE sy-tcode.
    WHEN '/IRM/IPSICIP'.
      ls_sel_shlp-low = 'ZIPPREM'.
      APPEND ls_sel_shlp TO sel_shlp.
    WHEN '/IRM/IPSICCP'.
      ls_sel_shlp-low = 'ZIPPREM'.
      APPEND ls_sel_shlp TO sel_shlp.
    WHEN '/IRM/IPSIPA'.
      ls_sel_shlp-low = 'ZIPPREM'.
      APPEND ls_sel_shlp TO sel_shlp.
    WHEN ', /IRM/IPSICPP '.
      ls_sel_shlp-low = 'ZIPPREM'.
      APPEND ls_sel_shlp TO sel_shlp.
  ENDCASE.
*=======================================================================
* run standard coding in addition
*=======================================================================
  standard = 'X'.
ENDMETHOD.
But my requirement is I want to hide or deny access to all other tabs (search helps) except the custom one for PREM.
How can I do that?? Please help.
Thanks

Hi Naren,
It think You can get rid of the unwanted tabs by implementing the BAdI 'HRPAD00_PREM' itself.
Regards,
Suresh Datti

Similar Messages

  • Search help (PREM) for personal no. is not coming in ALV grid table control

    hi experts,
    Search help (PREM) for personal no. is not coming in ALV grid table control.
    i have assigned the srch help (prem) to my 'ZFIEXP_PROJALLOC' table for the emp_id.
    but in output it is now showing the help.
    ls_fcat-fieldname = 'EMPLOYEE CODE'.
      ls_fcat-ref_table = 'ZFIEXP_PROJALLOC'.
      ls_fcat-ref_field = 'EMP_ID'.
      ls_fcat-outputlen = '10'.
      ls_fcat-key = 'X'.
      ls_fcat-edit = 'X'.
      ls_fcat-coltext = 'EMPLOYEE CODE'.
      ls_fcat-seltext = 'EMPLOYEE CODE'.
      append ls_fcat to pt_fieldcat.
      clear ls_fcat.
    Then i tried to solve it using the PA0002 . ie.,
    ls_fcat-fieldname = 'EMPLOYEE CODE'.
      ls_fcat-ref_table = 'PA0002'.
      ls_fcat-ref_field = 'PERNR'.
      ls_fcat-outputlen = '10'.
      ls_fcat-key = 'X'.
      ls_fcat-edit = 'X'.
      ls_fcat-coltext = 'EMPLOYEE CODE'.
      ls_fcat-seltext = 'EMPLOYEE CODE'.
      append ls_fcat to pt_fieldcat.
      clear ls_fcat.
    with this it is showing the help in employee code, but, when i click on an empl number, it is not added to my table control and allowing me to add the number by typing them.
    plz help me.
    thanks.

    Hi 
    In the layout give layout-sel_mode  = 'A'.  and
    pass  'A'    to  i_save  exporting parameter to method  set_table_for_first_display.
    The same thing if you are working with function module
    reuse_alv_grid_display.
    Reward points for useful answer.
    Venkat

  • Add STEXT of object U in the result of search help PREM

    Hi All,
    At a customer (4.7 system) we would like to add a field "company" in the result of the search help PREM in pa30:
    This field "company" is the long text of object U. And object U is linked to object P.
    The problem is that I am not able to define join conditions in the selection method (ZM_PREMN) of the elementary search help (PREMN) to get the column "company" filled. Not possible to link HRP1001, PA0002, and HRP1000 to get stext of the correct object in the field company.
    I tried to define a user-exit for the search help, but the problem is that at the place where HRMC_PREM_EXIT_A is called I have not even the pernr's. (To be able to retrace the U's (company's) that are linked with the P's.)
    Does anyone already solved this kind of problems? Does anyone has the knowledge of BADI's for searchhelps?
    Or does anyone has knowledge of the place where we could repair it?
    Any help would be appreciated!
    Thomas

    Hi,
    You might have access to the pernr field by reader memory id 'PER'.
    thanks.
    JB

  • 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 PREM end parameter

    Dearu2026
    Since few days ago we noticed that search help PREM (for example from transaction PA30) has changed, although we didnu2019t implement any change or system modification. Can someone explain me why this could have happened Is there any other system parameter than MOL influencing the match code Which one Thanks in advance

    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,

  • Pa30 to view only a selected infotype and still use search help prem

    Is it possible to use PA30 to have non-hr users see a custom infotype but none of the other standard infotypes?  I would like for the non-hr users to be able to use the Search Help PREM to find records for the custom infotype.
    Is this type of inquiry better served by creating a custom program?

    These type of requirements are served at the security level but instead going into so much complexity, it is a better idea to write a custom report for the requirement.
    Regards,
    Amit
    Reward all helpful replies.

  • Search help PREM is empty

    We just upgraded to SAP ECC 6.0 and we are no longer able to do mathcode lookups on employees names.  i.e., PA20 and then in the Personnel No field when we enter =n.smith we get the message "No input help available (search help PREM is empty).  PA20 was just one example and it happens on all of our screens. 
    I can see PREM in se12 search helps and it calls the HRMC_PREM_EXIT_A function module which calls the HRMC_PREM_EXIT.  Does anyone have any ideas as to what the problem may be and what I can do to fix it?  thx in advance for any help you can provide.

    The OSS Notes you provided were not my problem in the end.  I have resolved my own problem and here are some of the details.  I certainly appreciate your response though.
    In Previous versions of SAP (pre 6.0), we modified PREM to add our own search helps in PREM - Z_PREMK02 and Z_PREMN02.  In going to 6.0 these additional Z search helps did not exist in PREM and consequently the PREM search help was not functioning Properly.  It came up with an error u201CNo input help available (search help PREM is empty).u201D
    To Resolve this issue I created a new APPEND Search Help ZPREM by doing the following steps:
    - Go into se12
    - Put in PREM for the Search help and click on Display
    - Click on Goto -> Append Search Help and at the prompt type in ZPREM as the Appended Search Help Name
    - Definition Screen should autopopulate
    - In the Search helps for ZPREM add the  two Z Searchps above + the PREMN one
    - Do Parameter Assignments for the 2 Z* ones of PERNR
    - Once you have done all of the above go into both the Z_PREMK02 and the Z_PREMN02 and change the Search help exit to HRMC_PREM_EXIT_A

  • Event handler on search help PREM how to?

    Hello!
    I'm new to webdynpro and did already some basic tutorials.
    One thing which isn't covered there i want to know...
    I have for example to attributes.
    PERSNO and ENAME.
    On Perso i have the basic search help PREM
    In my webdynpro i have these 2 Input fields. Now i need an event which fills the ENAME, after i selected a PERNR via the search help.
    How can i handle these events?
    greets thomas

    Hi
    see standard component WDR_TEST_OVS
    this link will be helpful
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdabap/abap%2bwd%2bobject%2bvalue%2bselector(OVS)
    Abhi

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

  • PA Search Help PREM

    Hi friends,
    I need to reomove one of the fields (GBDAT) from search Help PREMN from collective search help PREM in PA.
    I can just delete that field from object is the simplest one, but thinkign if there is another way around, like controlling through authorizations.
    THanks

    I believe that what you have already suggested is the only way to achieve your requirment.
    Regards,
    RIch Heilman

  • BADI for Claims search in trade promotion management

    Hi Experts,
    I am enhancing the Claims search in trade promotion management with a custom field. I added a custom field in the search screen of claims.
    I want to filter the records based on that custom field. The component is BT311S_CSR and the search query is BTQCSR.
    Is there any BADI for claims so that I can filter the records.
    I tried to put a breakpoint in the badi CRM_BADI_RF_Q1O_SEARCH and searched but it is not stopping.
    Does this badi works for claims? Or first do i have to create a implementation with the filter object as BTQCSR then try to check whether it will stop in the badi while searching the claims.
    Please suggest me.
    Regards,
    Dinesh.

    Hi Dinesh,
    Now this becomes tricky. Since your requirement is very specific there is no way that standard sap can help. You may end up in enhancing n number of classes.
    I can propose a solution though Please put of in front of your business/ functional team and then go ahead..
    Now we will change our approach...Please follow below steps:
    1. Add a altogether new field to your claim transaction using AET for sales office (description as 'Sales Office').
    2. Make this field search and result relevant.
    3. Whenever a sold to party is selected for claim transaction, based on the sold to party you would set value of this field.
    4. Since your field is search relevant it will automatically appear in your search query (control this in view configuration.)
    5. You may or may not display this field to end user in claim detail screen, You can control this by configuration.
    6. Depending on your requirement you can show/hide standard sales office field in search query.
    If you follow this approach then it will serve the purpose.
    Trust this solves your issue. Give points if it helps.
    Regards,
    Bhushan

  • BAdI for Account Search

    Hi All,
    I need a BADI in CRM 5.0 version for Account Search using EEWB fields.
    I found a BADi CRM_ACC_SEARCH and have created a implementation, but the badis is not getting triggered during the search...
    Let me know is there any other way to trigger the BADI or is there any means for using EEWB fields in Acc search.
    Thanx,
    Sivasankar

    Hi Sivasankar,
    There is a generic approach to identify all -classic- BAdIs called during program execution. You may use that approach to search for appropriate BAdI around Account Search:
    trx SE24
    CL_EXITHANDLER=>GET_INSTANCE method
      call method cl_exithandler=>get_class_name_by_interface
        exporting
          instance                      = instance
        importing
          class_name                    = class_name
        changing
          exit_name                     = exit_name
        exceptions
          no_reference                  = 1
          no_interface_reference        = 2
          no_exit_interface             = 3
          data_incons_in_exit_managem   = 4
          class_not_implement_interface = 5
          others                        = 6.
      case sy-subrc.
        when 1.                                "<<<<<<<<<<<<<<<<< your external break-point here: then check EXIT_NAME variable
          raise no_reference.
    Setting a break-point in this method will have program stop each time system checks if an BAdI implementation exists.
    Hope this will help you
    Best regards
    Walter

  • How to set displayed column width for a search help

    I have created an elementary search help for a custom field with a value table behind it.
    The search help functions correctly, but when displayed the column widths are all 10 characters. The user has to adjust the column to view the descriptive text.
    Can anyone tell me how to set default column widths for the help?

    Please  open you Elementary search  help  and see the Column  width   behind the Fields of your ...there  increase the width of the fields
    "Activate it  and refresh
    reward  points if it is usefull .....
    Girish

  • Translation for a search help

    Dear experts:
    My origenal system is Italian system, when I log in with Chinese system and open a search help for a screen field, the pop up screen of the search help can not show the correct characters. So my question is what I should do to show the correct character in the search help screen? Can I use translation function to do it? How to translate it?
    The search help is created in dictionary for the field (PLKOD-PLNNR).

    Try this :
    1-http://help.sap.com/saphelp_nw70/helpdata/EN/cf/21ee52446011d189700000e8322d00/content.htm
    2-Search Help Exit
    or you can achieve it by translating it:
    go to the search help(double click)>Included Search helps(Tab)>double click on the line otems -->goto translation(here you can translate)
    Regards
    Neha
    Edited by: Neha Shukla on Nov 21, 2008 2:01 PM

Maybe you are looking for

  • Samsung HT-Z310 Help

    I am lookiing into getting this system - wondering if anyone has comments or has this system.  I have read a few things not great about wireless surround sound - We don't know anything about it and don't want to make it harder than it has to be just

  • DNS is incredibly slow on Lion 10.7.4 when connected to a .local domain

    Im running Lion 10.7.4 and am connected to a .local domain.    I've googled the problem and cant really work out if there is a fix or not. I am also running VMWare Fusion on the same machine with Windows 7.  neither Lion or Windows 7 are joined to th

  • A software update is required to use Digital Publishing Suite

    Hi when I enter to my folio builder it says "A software update is required to use Digital Publishing Suite. Please go to the Help menu and select Updates to get the required software" But nothing happend !!!! What I should do ?????

  • W7 installation through bootcamp does not see hard drives

    Hi! I  created a partition with bootcamp assistent 4.0.1. After restarting, during installation (windows 7 enviroment), the installation disk selection screen does not have any HD to choose. What can i do? Thanks in advance.

  • Creating Gender option buttons in the Screen ZP000200

    Hi all, I am creating Gender option button (male, female) P0002-GENDR in the customized module pool ZP000200.  Also the Gender field is maintained in the CI include or table P0002.   CHAIN.     FIELD p0002-categ.     FIELD p0002-pstay.     FIELD p000