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
Similar Messages
-
Disable fields in search help restriction window
Hi Experts,
Here is the situation:
I have created the new search help for material number and assigned this search help in my module pool program.
As soon as user press F4 button on material number , it will display search help restrictions window with 4 fields ( material, material type, plant, plant status).
I have set default value for the material type in search help itself. But I would like to disable this field.
I mean .... user should not enter any other values other than my default value. So I should disable the material type field in searh help restrictions window.
Pls help me.
Thanks
RaghuHi Vinod,
In the FM F4IF_INT_TABLE_VALUE_REQUEST, pass exporting parameter callback_form = 'SUB_CALL_BACK'.
Define the sub routine with the SUB_CALL_BACK with below logic
FORM SUB_CALL_BACK TABLES record_tab STRUCTURE seahlpres
CHANGING shlp TYPE shlp_descr
callcontrol TYPE DDSHF4CTRL.
callcontrol-MULTISEL = 'X'.
ENDFORM.
Hope it helps.
Regards
Gangadhar -
CheckBox in search help restriction dialog.
Hi Experts,
I have created one search help with dialog value restrictions. Search help contains 6 fields.
Out of which three fields has length one character(Data Element XFELD).
As soon as user press on F4 on particular field, it will display pop-up window with restrictions and displayed 6 fields.
I would like to show that fields(with Data Element as XFELD) as Check Box in search help restrictions pop-up window.
Pls help... How can we do this.
Thanks
VinodHi,
Kindly check the standard search help "F4TESTCHECKBOX". Copy it and change the dialog type to 'Display with restrictions' . On execution, you will notice that -
i) On the restriction screen the checkbox is displayed as textbox .
ii) In list display , checkbox is displayed correctly .
Follow Raymond's suggestion,
You could define your own selection-screen, and display it in a search-help exit : if step = 'PRESEL', display your screen, modify selected values in table shlp-interface and force next step as 'SELECT' to bypass standard selection-screen.
Regards,
DPM -
How to display check box in the search help restriction pop-up window
Hi Experts,
I have created one searc help with dialog value restrictions. Search help contains 4 fields.
Out of which one field has length one character.
As oon as user press on F4 on particular field, it will display pop-up window with restrictions and displayed 4 fields.
I would like to show that field ( one character length field) as check box in search help restrictions pop-up window.
Pls help me ,... How can we acheive this..
Thanks
RaghuUr Exact Requirement,
Types : begin of itab,
fields type c,
Check type c,(For Check Box)
end of itab.
data it_tab type standard table of itab.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_input-low.(If it is in select-options)
CLEAR v_input.
GET CURSOR FIELD s_input VALUE v_input.
CALL FUNCTION 'AIPC_CONVERT_TO_UPPERCASE'
EXPORTING
i_input = v_input
i_langu = sy-langu
IMPORTING
e_output = v_input.
CLEAR s_input-low.
IF v_input NE '' .
IF v_input NE '?'..
v_input1-sign = 'I'.
v_input1-option = 'CP'.
v_input1-low = v_input.
APPEND v_input1.
ENDIF.
ENDIF.
SELECT DISTINCT Field
FROM Table
INTO TABLE it_tab
WHERE field IN v_input.
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_title = 'Select Colors'
i_selection = 'X'
i_zebra = 'X'
i_screen_start_column = 5
i_screen_start_line = 5
i_screen_end_column = 30
i_screen_end_line = 12
i_checkbox_fieldname = 'CHECK'
i_tabname = 'IT_TAB'
i_scroll_to_sel_line = 'X'
it_fieldcat = it_fieldcat1
i_callback_program = sy-repid
i_callback_user_command = 'USER_COMMAND1'
IMPORTING
es_selfield = selfield
TABLES
t_outtab = it_tab
EXCEPTIONS
program_error = 1.
Cheers,
Naveen -
Search help restricted selection
Dear All,
Can we restrict search help to display only desired value.
for example I have two input fields one each for plant and storage location and I want to display possible values for Storage location based on the input plant.
is it possible?
I am using a search help based on table T001L
Can you guys help me on this.
Thanks
AmitFor plant and storage location, this is handle automatically by the standard search helps. I believe you need to use the memory ids to force this behavior. Please try this as it works good in my system.
report zrich_0001.
tables: mseg.
select-options WERKS for MSEG-WERKS memory id WRK.
select-options LGORT for MSEG-LGORT memory id LAG.
Regards,
Rich Heilman -
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.
-TulasiHi
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 -
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 -
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 PMResolved by myself.
-
Search Help - Restricting entries in standard search helps
Hi, is there any way to restrict entries in an SAP supplied search help? The search help in question is 'SSH_T007A', this search help also has a user exit 'F4_TAXCODE_USER_EXIT'. I'm not sure if the user exit is of any use or how to use it. Ideally what I need to do is to restrict the list of applicable tax codes to only those that we want our users to select. Does anyone have an idea of how to do this with a minimum of customization?
Thanks in advance,
Kevin MayHi Seshatal,
Thanks for the input, but this field does NOT have any ON VALUE REQUEST event associated with it ....
as soon as F4 is hit, it goes to Function help_start ,so I don't think we can make any changes here as it is standard .
I think including a standard search help will help....how to achieve this ?
Thanks, -
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??
thanksHi 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 -
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 criterias. 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 -
Table - search help - restrict user entries .
I have created table with
Field Data element.
WERKS WERKS_D
MTART MTART
MATKL MATKL
created_by SYUNAME
Changed_by SYUNAME
1).I am getting search help for WERKS and MATKL
However I am not getting search help for MTART field.
Can you tell me how to get search help for MTART also
2). In WERKS and MTART fields wild cards (*) should not be permitted.
How/where to code this.
3). I need to make created_by and changed_by fields not editable.
when user create the entry, then user name can appeared in created_by and Changed_by fields.
And wherever another user changes the same record ...his user id should come under changed_by field.
how /where can I do this.
i know there are three questions. but I also suggest me how to give more points...because there are three questions.
YOUR HELP IS APPRECIATED.
Thanks in ADVANCE.Total Posts: 585
Total Questions: 321 (170 unresolved)
Please clean up your old posts....
3) Search!!
Rob -
Hi, search help -- restricted value
hi
there is already a search help for a field in one of the transaction codes in fico. i think this search help is attached in code by writing match code syntax.
but my prob is that this search help for the particular field shows 10 char and out of this 10 char i need to show only 5 char from 3 to 7 when the user press f4.
eg. 1234567890 i need to show 34567 only without changing the se38 code.
when user press f4 he gets lots of records and all records should show 5 char only, now it is showing 10 char.
is it possible, if yes, then how???
pl can anybody help me.
thanx
rockyHi rocky,
You can do like this.
Use the below logic with your table, you will get as desired,
DATA: BEGIN OF gt_matnr OCCURS 0,
matnr TYPE mara-matnr,
END OF gt_matnr,
BEGIN OF gt_list OCCURS 0,
field1(5) TYPE c,
END OF gt_list.
PARAMETERS: p_matnr TYPE mara-matnr.
INITIALIZATION.
SELECT matnr
FROM mara
INTO TABLE gt_matnr.
LOOP AT gt_matnr.
gt_list-field1 = gt_matnr(5).
APPEND gt_list.
ENDLOOP.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.
CALL FUNCTION 'POPUP_WITH_TABLE'
EXPORTING
endpos_col = 30
endpos_row = 20
startpos_col = 10
startpos_row = 10
titletext = 'Select MATNR'
IMPORTING
choice = p_matnr
TABLES
valuetab = gt_list
EXCEPTIONS
break_off = 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. -
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.
Maybe you are looking for
-
How can I clear out the "other" space on my startup disk?
My startup disk is full as well, but I am barely using any space on my computer at all for files. I have also only had this laptop for about 9 months. I have been emptying my trash, clearing my dowloads, deleting anything I can to get more space, but
-
Pacman defer updmap on texlive update
Hello, today I update version of texlive is installed on my Arch. And I noted how much time it lost on updmap (done for every texlive updated package). I stopped the update and make a empty (a sh file with a echo) updmap to be called and run updmap a
-
Command button action not calling when in subview
i have a page that is fine when it's in it's own view... the command button calls a managed bean's method.. <af:commandButton text="Call Method" action="#{backing_myPage.CallMethod}" binding="#{backing_myPage.commandButton1}" id="commandButton1"/> bu
-
Moving an iMovie Project to an External HD
I want to move my iMovie project to a new external HD as I am running out of space on my internal drive. I am currently working with two iMovie projects, one in DV format and one in MPEG4 format. The MPEG4 format project opens and edits fine once tra
-
I have a client that has some data already in a Lotus Notes Database and is unhappy with that situation. What tools are available to get the data out and into an Oracle database. Please send email to [email protected] if you can, it would be apprecia