Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BADI for HR search help PREM

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

suresh_datti
Active Contributor
0 Kudos

Hi Naren,

It think You can get rid of the unwanted tabs by implementing the BAdI 'HRPAD00_PREM' itself.

Regards,

Suresh Datti

3 REPLIES 3

suresh_datti
Active Contributor
0 Kudos

Hi Naren,

It think You can get rid of the unwanted tabs by implementing the BAdI 'HRPAD00_PREM' itself.

Regards,

Suresh Datti

0 Kudos

Can you please tell me how it can be done??

Thanks,

0 Kudos

Hi Naren,

just change standard = 'X' to standard = space.

Regards,

Suresh Datti