How to validate a filed in a search help which is created in se11
hi
i got a requirement that validate a search help. i created a ztable with 3 fileds for that one i have to create a search help so help me to how to validate fields in a search help.
regards
krishna
Hello Krishna,
What do you mean by validating a field? Usually you use a search help to display possible values for a certain input field based on values in another table. You can restrict the values that are displayed by certain conditions if you need to.
If you want to allow only values based on complex conditions or authorizations of the user, you can always create a search help exit and in there you have complete control over what the user is allowed to see in the search help and what he is allowed to select.
Function Module F4IF_SHLP_EXIT_EXAMPLE gives you an idea what you can do in a search help exit.
Regards,
Michael
Similar Messages
-
How to add one column in existing search help.
Hi Folks,
My quesion is
How to add one column in existing search help and also Now search help on that field is not an explicit search help. It should be implement using check table.
ShivamHi,
If you want to add a field in Elementary search help, get the search help name for the and go to change mode and add the field in it.
If you want to add a field in collective search help, go to included search helps tab and a new search help name and add the fields to it.
I think this should help you to certain extent.
Regards,
Kranthi
Edited by: Kranthi on Jan 14, 2010 11:15 AM -
How to use Import parameters of a search help
Hi,
Could you please tell me how to use import & export parameters of a search help in the report.Hi,
Import parameters are imported from the selection screen of the report into the search help and then these are used to query in the search help.
For example
case 1.
parameters : p_carrid like sflight-carrid.
parameters : p_connid like sflight-connid.
the search help that is used in the above condition is
SFLIGHT.
And the selection method is SFLIGHT in this search help.
( to check which search help is used go to se11 display the table and put your cursor on the field and in the menu for goto--> search help.)
so when you do an F4 on connid it looks for a field which is declared like SFLIGHT-CARRID ( and the value entered in it) since the SFLIGHT-CARRRID is an import parameter in the search help, and queries the database where the value is equal to the p_carrid which is declared like SFLIGHT-CARRID and gets only data which is equal to carrid
case 2.
parameters : p_carrid like SCARR-carrid.
parameters : p_connid like sflight-connid.
In this case the system will fetch all the data.
since there is no parameter for SFLIGHT-CARRID on the selection screen it would get all the data from SFLIGHT. -
How to delete a field from search help which is delivered
hi
I got a requirement to delete a field from search help which is delivered long back
Regards
krishnaHi
Whether it exists in DEV system or not?
Take the name of that Search Help from PRD/Quality(if it is not there in DEV system) and modify/change it by removing that field from the search help in DEV system and create a Transport request and transport the same request to Quality/PRD systems
Now the New changes (in which the field was removed) will be over written on the old search help in the PRD system, since it is the same Name (search help)
Regards
Anji -
How to process each records in the derived table which i created using cte table using sql server
I want to process each row from the CTE table I created, how can I traverse from first row to second row and so on....
how to process each records in the derived table which i created using cte table using sql serverIdeally you would be doing a set based processing rather than traversing row by row as thats more efficient. To answer it specific to your scenario we may need more info. Can you explain with some sample data your exact requirement?
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
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 -
How to pass the default value to search help selection screen
Hi
I need to push a certain value as a default value based on a condition to the slection screen of search help in web UI.
Could you please let me know how can we do this?
When we try to open the 'F4' help in web ui then it should populate a certain value as a default value to the selection screen of this 'F4' help. We will get this default value based on condition.
Regards
AnilHi Arun
I'm using SE11 search help.I'm giving you my code for your reference here.
DATA:
ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
lt_inmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
lr_qs TYPE REF TO cl_crm_bol_dquery_service,
lr_current TYPE REF TO if_bol_bo_property_access,
lv_category TYPE STRING.
ls_map-context_attr = 'struct.zzattr_i_1'.
ls_map-f4_attr = 'ATTRIBUTE'.
APPEND ls_map TO: lt_inmap,lt_outmap.
CLEAR ls_map.
ls_map-context_attr = 'struct.zzattr_i_1'.
ls_map-f4_attr = 'SERVICE_LINE'.
APPEND ls_map TO: lt_inmap.
CREATE OBJECT rv_valuehelp_descriptor
TYPE
cl_bsp_wd_valuehelp_f4descr
EXPORTING
iv_help_id = 'ZATTR1'
iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
iv_trigger_submit = abap_true
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap.
Here 'ZATTR1' is my search help name in SE11 and the field which is having 'F4' help is 'ATTRIBUTE'.
Now when I press 'F4' on 'ATTRIBUTE' then it will give a popup and this popup is having 3 fields..
1.'ATTRIBUTE'
2.'SERVICE_LINE'
3.Description of 'SERVICE_LINE' and hence by pressing 'F4' i should get a value in the field 'SERVICE_LINE' based on
a condition.
However, if there is a value for ATTRIBUTE on the screen and when we press 'F4' on this then in the popup the value of
ATTRIBUTE which is there on the screen is appearing in the 'ATTRIBUTE' field and the same value is being copied to
'SERVICE_LINE' field in the popup.
Please guide me how do we populate the value to 'SERVICE_LINE' field inside the search help popup of 'ATTRIBUTE'.
Best Regards
Anil -
How to Increase width of heading in search help list?
Hi..all..
I have created a search help exit with 7 fields in the output list.
When I view the search help in the webdynpro screen, iam
not able to view the result fully.,ie. the results are crumbled. the headings and data
are not displayed fully.
For eg:
For DIVISION(Field - SPART) it displays heading as 'DI'.
But, I have maintained 'Short,long and medium text as DIVISION.
The output list, tries to accomodate all the 7 fields, so as result, datas as well as
headings are crumbled together. I am not able to drag the headings, as we do in normal R/3.
This problem does not come, when we try to display limited fields in list output. say, if
I display 3 to 4 fields, it displays full data with headings properly.
So How can i increase the heading length,.
Is there any lenth restriction for field display in F4 help result list?
Need your valuable inputs.
regards,
PadmaSPART field refers to actual division value in SAP r/3. For ex: in a sales area my division is '00' which is of two characters. Try changing your Actual value to some character type and see.
-
How to triger a event when select search help
code like this
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: pa_werks LIKE t001w-werks.
SELECTION-SCREEN COMMENT 20(10) g_werks.
SELECTION-SCREEN END OF LINE.
AT SELECTION-SCREEN ON pa_werks.
g_werks = pa_werks.
I want when select search help ,g_werk changed,but now only press enter g_werks will be change
how can I do ? when select a value from search help g_werks changeHi,
Use something like this:-
PARAMETERS : p_werks TYPE t001w-werks.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_werks.
PERFORM get_f4_help.
*& Form GET_F4_HELP
* -->P_WERKS text
"populate an internal table with all possible values to be displyed
"Use FM F4IF_INT_TABLE_VALUE_REQUEST
Hope this helps you.
Regards,
Tarun -
How do I create a Search Help which selects some rows from a table?
Well, I'm trying to be specific.
I have a parameter with a search help that shows columns BUKRS and BUTXT for ALL rows form the table T001. What I need is restrict the search help to show only three Values: BUKRS = 1000 BUKRS = 2000 BUKRS = 3000. This is like a search help with a SELECT sentence. How do I do it?Hi.,
you can go through thomas sir's suggestion. But my suggestion is If you are working in a custom Report , dont change it at Table level or Domail Level., Instead, use Function Module for Custom F4 help.,
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.
CALL FM F4IF_INT_TABLE_VALUE_REQUEST.
check this help for your reference: http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm.
If you are using Standard Report Check for Exits.
hope this helps u.,
Thanks & Regards,
Kiran -
How to restrict the results in the search help
Hi Friends,
My current assignment calls for a program using search help. The scenario is.. there are different radio buttons for organizational units and if a unit is selected, corresponding users need to be displayed in the screen. Multiple selection should be allowed.
I created the search help and attached it to the screen field userid. I am able to display all the users.
But my problem is , i need to consider the organizational unit before displaying the users... If the radio button for A/R is selected, only the A/R should be displayed.....
Is there any way that we could restrict the entries in the search help? Please help me with your expert advices and
suggestions.
Thanks
PoornimaHi,
Refer this link:
http://help.sap.com/saphelp_45b/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
Regards,
Prashant -
How to put ZEBRA color in F4 Search help
My Requirement:
Suppose I am having a search help with the following data.
MATNR
SLNO
OPERN
PREHT
A
1
A1
X
A
2
A2
A
3
A3
X
A
4
A4
B
1
B1
B
2
B2
B
3
B3
C
1
C1
C
2
C2
Now I want to display the Search help with two colours [ZEBRA]
as shown above. The criteria will be defined by "Group by MATNR"
as shown above.
" What I did till now.
SELECTION-SCREEN:
BEGIN OF BLOCK bl WITH FRAME TITLE text-001.
PARAMETERS:
s_matnr TYPE matnr OBLIGATORY, " Material Number
s_matkl TYPE matkl OBLIGATORY. " Material Group
SELECTION-SCREEN:
END OF BLOCK bl.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_matnr.
PERFORM f4_help_for_material USING 'S_MATNR'. " Search Help Working Fine
*******F4 Help **********
FORM f4_help_for_material USING l_dynprofield.
TYPES: BEGIN OF str_mat_oper,
matnr TYPE zpp_oper_master-matnr,
slno TYPE zpp_oper_master-slno,
opern TYPE zpp_oper_master-opern,
preht TYPE zpp_oper_master-preht,
END OF str_mat_oper.
DATA: it_mat_oper TYPE STANDARD TABLE OF str_mat_oper INITIAL SIZE 0,
wa_mat_oper TYPE str_mat_oper.
SELECT * FROM zpp_oper_master
CLIENT SPECIFIED INTO CORRESPONDING FIELDS OF TABLE it_mat_oper
WHERE mandt = sy-mandt
ORDER BY matnr slno ASCENDING.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MATNR'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = l_dynprofield
value_org = 'S'
TABLES
value_tab = it_mat_oper.
ENDFORM. " F4_HELP_FOR_MATERIAL
Thanks in advance
SatpathyHi Satpathy,
Ok...
Then try some thing like this....
Step1: call a subscreen whenever F4 event triggers: use CALL SCREEN...
Step2: In that subscreen display an ALV (REUSE_ALV_GRID_DISPLAY)and while displaying assign colors to the rows based on the MATNR
Step3: Enable user command event to capture the selected row value and pass back this to the req field.
Srikanth. -
How to include a date range in Search Help
Hi All,
I need to include a range for a date field in a Search help.
That is I have to add From Field and To Field for the same field in the search help.
Please advise.
Regards.If you are going to add an entirely new field (not existing in the SAP standard search), try using EEWB and for the query on that field would be a modification to the Model access class.
Regards,
Shailaja -
How to set column names in OVS search help of ALV EDIT
Hi All,
I have a OVS search help for my ALV EDIT column.This OVS will have two columns,I need to give the names(name1 , name2) to the columns.
I am writing the below codo in phase 0.
ls_text-name = 'Column1'.
ls_text-value = 'name1'.
INSERT ls_text INTO TABLE lt_column_texts.
ls_text-name = 'Column2'.
ls_text-value = 'name2'.
INSERT ls_text INTO TABLE lt_column_texts.
ovs_callback_object->set_configuration(
label_texts = lt_label_texts
column_texts = lt_column_texts
group_header = lv_group_header
window_title = lv_window_title
table_header = lv_table_header
col_count = 2
row_count = 20 ).
Below code in Phase 3.
Assign ovs_callback_object->selection->* to <ls_selection>.
if <ls_selection> is assigned.
ovs_callback_object->context_element->set_attribute(
name = `ATR1`
value = <ls_selection>-Column1 ).
endif.
But,the column names are not getting set.Please provide your inputs.
Regards,
Salmahi,
About your requirement, i don't know why you need to code in "Phase 3" of OVS.
"Phase 3" is used for transporting your selected value to Your ALV.
I think, the reason why you loose the result table including your customized column title, is that you loose the "Phase 2".
Generally, in the past i used OVS as the following code simply.Just one example:
* declare data structures for the fields to be displayed and
* for the table columns of the selection list, if necessary
types:
begin of lty_stru_input,
* add fields for the display of your search input here
carrid type string,
connid type string,
end of lty_stru_input.
types:
begin of lty_stru_list,
* add fields for the selection list here
carrid type string,
connid type string,
text type string,
end of lty_stru_list.
data: ls_search_input type lty_stru_input,
lt_select_list type standard table of lty_stru_list,
ls_text type wdr_name_value,
lt_label_texts type wdr_name_value_list,
lt_column_texts type wdr_name_value_list,
case ovs_callback_object->phase_indicator.
when if_wd_ovs=>co_phase_0. "configuration phase, may be omitted
* in this phase you have the possibility to define the texts,
* if you do not want to use the defaults (DDIC-texts)
ls_text-name = 'CARRID'. "must match a field name of search
ls_text-value = 'Search Field-Carrid'.
insert ls_text into table lt_label_texts.
ls_text-name = 'CONNID'. "must match a field name of search
ls_text-value = 'Search Field-Connid'.
insert ls_text into table lt_label_texts.
ls_text-name = 'CARRID'. "must match a field in list structure
ls_text-value = 'Result-Carrid'.
insert ls_text into table lt_column_texts.
ls_text-name = 'CONNID'. "must match a field in list structure
ls_text-value = 'Result-Connid'.
insert ls_text into table lt_column_texts.
ls_text-name = 'TEXT'. "must match a field in list structure
ls_text-value = 'Result-Text'.
insert ls_text into table lt_column_texts.
lv_group_header = 'Group Header'.
lv_window_title = 'Window Title'.
lv_table_header = 'Table Header'.
ovs_callback_object->set_configuration(
label_texts = lt_label_texts
column_texts = lt_column_texts
group_header = lv_group_header
window_title = lv_window_title
table_header = lv_table_header
col_count = 3
row_count = 8 ).
when if_wd_ovs=>co_phase_2.
* If phase 1 is implemented, use the field input for the
* selection of the table.
* If phase 1 is omitted, use values from your own context.
if ovs_callback_object->query_parameters is not bound.
******** TODO exception handling
endif.
assign ovs_callback_object->query_parameters->*
to <ls_query_params>.
SELECT * INTO CORRESPONDING FIELDS OF TABLE lt_select_list FROM ZTABLE_FLIGHT
WHERE CARRID LIKE lw_carrid
AND CONNID LIKE lw_connid
*ovs_callback_object->set_output_table( output = lt_select_list ).*
Hope it can help.
Best wishes. -
How to include Search Help which has been created using SE11
Hi all,
I have created the custom search help in SE11. What is the way to include it in my code? Thanks in advance.Hi Mil,
There are different ways of using the search help created by SE11 depending on the kind of application you are using.
1. Search help can be attached to a <i><b>DATA ELEMENT</b></i> under the tab <i><b>FURTHER CHARACTERISTICS</b></i>.
Now wherever this data element will be used, automatically the search help will be available on the output screen. e.g. in selection screen using parameters statement etc.
<i>PARAMETERS: P_VAL1 TYPE Z_DATAELE.</i>
2. Search help can be also attached to <i> database table fields</i> directly in the tab <i>Entry help/check</i>. Now wherever this database table field is used e.g. in SELECT-OPTIONS statment, the search help will be automatically available on output selection screen.
3. Also, search helps can be directly used in the programs using function modules and event.
<i><b>PROCESS ON VALUE-REQUEST.
FIELD <f> MODULE <mod>.</b></i>
Here in the module, you can use following function module for fetching the search help on the screen.
<i><b>F4IF_FIELD_VALUE_REQUEST</b></i>
4. Search help can be direclty attached to the selection screen statements like SELECT-OPTIONS using MATCHCODE object extension
<i><b>SELECT-OPTIONS: LP_STATS FOR TJ30-ESTAT MATCHCODE OBJECT ZH_TJ30 NO-EXTENSION NO INTERVALS.</b></i>
Hope this sort out your issue.
PS If the answer solves your query, plz close the thread by rewarding each reply.
Regards
Message was edited by:
Sapna Modi
Maybe you are looking for
-
AAC/MPEG-4 support patch for abcde
I got bored to day and made up this patch for abcde that adds support for AAC using the M4A extension. It uses FAAC as the encoder and also patches abcde to version 2.2.3 I have not tested it yet so bear with me...i'll post my test results later. You
-
I am in Europe with my Ipad mini and was told I dont need a converter. I am trying to charge it and it wont charge. I would like to charge it with using just the adapter but do not want to ruin it Do I just use the adapter or do I need the converter
-
Hi All, Can Any one help me in writing a custom resource adapter for AS/400. Or Else from where can I download the resource adapter for AS/400. Treat this matter as urgent. Thanks and Regards Gajendra Nagapurka
-
Issues with upgrade from os x 10.7.5
hi had 2 attempts in upgrade down load from os x 10.7.5 to os x mountain lion so i can use my apple tv correctly.... however im getting this error An error occurred while running scripts from the package "mzps8185591984996783701.pkg". and then the fi
-
Cannot register radius server in active directory
Hi All What I can't do is to register the RADIUS server to the Active Directory service which is located on the same server and stand alone server same problem (see screenshot). I've tried to do this as both domain administrator and local administra