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.
Similar Messages
-
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,
EssamYou 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, -
Hi Guru Search Help with Restriction
Hi guru,
What is my requirment . I created elementry search in se11 and i used this search in dialog program. Its shows all company code and commidity code.
But boss I want restrict this search help only for one Company Code (GB).It should show company code and commidity code only GB comapny Code.
Where I can restrict this search help.
Please give me possible help.
Point will rewards.
Thanks&Regards
RamanaHi Mr. Kumar,
I'll give one examle for which I had done the same scenerio for PP module for version selection...Please find the eg. code. In this scenerio I had restricted only 4 versions....
I'll give you code from select option till at selection-screen on value request...
In this I have also done the validation part...
First create a elementary search help with required fields... As per my scenario I had created two fields VERSB & VBTXT. In my scenario I have given restriction on VERSB....
then the same search help you have to use in the program to pass to the parameters..
****Select Options....
SELECT-OPTIONS: S_VERNUM FOR T459V-VERSB OBLIGATORY NO-EXTENSION NO INTERVALS.
*****At Selection-Screen on value request....
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_VERNUM-LOW.
PERFORM F4HELP.
******Form F4HELP....
FORM F4HELP .
REFRESH IT_DDSHSELOPS.
CLEAR WA_DDSHSELOPT.
WA_DDSHSELOPT-SHLPNAME = 'ZVERSB'.
WA_DDSHSELOPT-SHLPFIELD = 'VERSB'.
WA_DDSHSELOPT-SIGN = 'I'.
WA_DDSHSELOPT-OPTION = 'EQ'.
WA_DDSHSELOPT-LOW = '04'.
APPEND WA_DDSHSELOPT TO IT_DDSHSELOPS.
WA_DDSHSELOPT-LOW = 'TC'.
APPEND WA_DDSHSELOPT TO IT_DDSHSELOPS.
WA_DDSHSELOPT-LOW = 'TE'.
APPEND WA_DDSHSELOPT TO IT_DDSHSELOPS.
WA_DDSHSELOPT-LOW = 'TL'.
APPEND WA_DDSHSELOPT TO IT_DDSHSELOPS.
CALL FUNCTION 'F4_FIELD_ON_VALUE_REQUEST'
EXPORTING
TABNAME = 'T459V'
FIELDNAME = 'VERSB'
SEARCHHELP = 'ZVERSB'
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'VERSB'
SELECTION_SCREEN = 'X'
CALLBACK_SELOPT = IT_DDSHSELOPS.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM.
*******At selection Screen on above select option field...for validation
AT SELECTION-SCREEN ON S_VERNUM.
PERFORM VALIDATEVERSIONS.
*******Form VALIDATEVERSIONS
FORM VALIDATEVERSIONS .
REFRESH R_VERNUM.
CLEAR R_VERNUM.
R_VERNUM-SIGN = 'I'.
R_VERNUM-OPTION = 'EQ'.
R_VERNUM-LOW = '04'.
APPEND R_VERNUM.
R_VERNUM-LOW = 'TC'.
APPEND R_VERNUM.
R_VERNUM-LOW = 'TE'.
APPEND R_VERNUM.
R_VERNUM-LOW = 'TL'.
APPEND R_VERNUM.
IF NOT S_VERNUM-LOW IN R_VERNUM.
CALL FUNCTION 'C14Z_MESSAGES_SHOW_AS_POPUP'
EXPORTING
I_MSGID = 'ZPP'
I_MSGTY = 'E'
I_MSGNO = '015'
I_MSGV1 = 'Please Select'
I_MSGV2 = 'One of these'
I_MSGV3 = 'Versions'
I_MSGV4 = ': 04, TC, TE, TL.'.
CALL SCREEN 1000.
ENDIF.
ENDFORM. " VALIDATEVERSIONS
This code will help you to work on your query...
Please reward a point . I am sure this will help you....
Cheers.....
Sagun Desai.... -
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 -
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.
ThanksHi Naren,
It think You can get rid of the unwanted tabs by implementing the BAdI 'HRPAD00_PREM' itself.
Regards,
Suresh Datti -
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 advanceYou 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, -
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!
ThomasHi,
You might have access to the pernr field by reader memory id 'PER'.
thanks.
JB -
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. -
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 -
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.
THanksI believe that what you have already suggested is the only way to achieve your requirment.
Regards,
RIch Heilman -
Please help me on inter-company code configuration steps
Hi FICO Gurus,
Please can you help me on inter-company code configuration steps and accounting entries for the same.
Thanks for your help!!...
Thanks & Regards,
Kiranguys I still need help on this one...Thanks!
-
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 thomasHi
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 -
Search help value restriction fields
Hi experts,
I have modified the existing search help by using "SEARCH HELP EXIT".
Here is the situation:
As soon as I press F4 button on particular field, it will display search help restrictions window with 4 fields.
suppose if I enter material number on material number field, it should display only particular material not all materials.
Normally it was working fine before I written search help exit.
In search help exit I am selecting values directly from database table with out consider restrictions window parameters.
How to findout the restrictions window parameter names ( I mean screen field name). So that I can add those fields in my select statement where condfition.
Pls help me.
Thanks in advance
RaghuI got the solution. Any how Thanks.
-
Sensitive fields restriction to company code
Hello
we would like to activate sensitive fields for one specific company code. In standard SAP we can only define the sensitive fields for the whole client. Anybody did this before? Or do we need something like enhancement SAPMF02D to do this?
dT123Hello Spotty/Accenture Accenture,
There can be different approaches to achieve the same, for which, I would like to know the following from you:
1. Are you using direct or indirect role assignments?
2. Do you want to restrict the authorization object at the user level or at the role level?
Regards,
Hersh. -
Search help entries restriction
Hi Friends,
I have created an elementary search help. In which I want to display all the possible values with out resticting the entries. I tries with all the dialogue types(A, C, D). But it allways restricting with 500 entries.
Could somebody help please.
regards,
GiriHi J@Y,
Thanks for your reply. But, when the control comes to search help exit, already the selected entries were restricting to 500. So, even I am changing the value to zero or space here, it is not solving the issue. So, could you please tell me how to skip the restriction before control comes to the search help exit.
Many thanks
Regards
Maybe you are looking for
-
My iDVD project won't start from the menu.
When I create a DVD, it will not start from the menu but goes directly to play. I can force it to the menu by clicking the "Disc Menu" button on my remote, This happens on both of my DVD players, one or which is a Bose system. I didn't have this t
-
Safari RSS does not connect to a web site (while Firefox does ..)
I have some kind of a (new) problem here. It recently has become impossible to connect to the following URL : http://www.collishop.be/collishop/hifi/ I get the spinning symbol and a white page. I can't tell when this happened for the first time (afte
-
Drag and drop photos into an event?
Is it possible to drag a photo from the finder into a specific iPhoto event? In my head it makes sense that if you have an event open in iPhoto you should be able to drop new photos into, rather than what currently seems to happen where they are trea
-
How to hide certain items in a Combo Box
I've two Combo Box(CB). First CB contain 4 items(drop-down menus) and the 2nd CB contain 12 items. I want that when I select one of the items from Combo Box1, then only 4 out of 12 items from Combo Box2 should be visible. So actually I want first com
-
XI Realtime scenarios-need help
Hello experts, I am new to XI and I need help with real time XI scenarios. can you please give me 2-3 examples of What kinds of systems involve in data transfer (both sap and non sap) for transfer of what kinds of data (general IDOCs, RFCs and other