Search: standard field as search criteria
Hello,
I have problem because of a search component within the webclient ui framework (background SAP Solution Manager).
Background:
There is a ui search component to search for change documents (which are plain entries within the table crmd_orderadm_h). I successfully have redefined the corresponding ui component. Now there is, let me say, a challenge.
The change document among other things consists of an assignment block for approval management. But dont think about approval management so long. It could be any other assignment block. I have to integrate one standard field of that assignment block as a search criteria to the search component, to search for change documents.
1. At first I navigated to the ui component of that assignment block and searched for the attribute structure of the right context node, where the attribute is placed.
2. Second, I navigated to the ui component of the search and opened the attribute structure of the search context node.
3. To that attribute structure I have appended the attribute with the corresponding data element from step 1.
Now the attribute is available as a search criteria within the search component. But there are two open problems.
First problem:
The attribute has a special value range, that is not available at the moment. The search criteria currently only is a plain text field. Do I have to implement the getter- and setter-methods (respectively the v-getter) to Show up the possible search values in an drop-down list?
Second problem:
The name of the attribute is included within the search, but the search ignores it and I get an query error ("there is a problem with the query"). I have seen the attribute name at a breakpoint in CL_AI_CRM_IM_SAPDATA_SEARCH=>IF_CRM_RF_Q1O_SEARCH~SEARCH. But deeper within the code there is an query error raising up. Did I forget some customizing?
Can anyone help me?
best regards,
raoul
Hi Eli,
Please go to the web ui configuration and search reason feild is available for the config view. If it is available please move from hidden to visible. If it is not available you can add using development or AET to add that feild in the view.
Regards,
karthik J
Similar Messages
-
How To add a field in search criteria in SAP standard report
Hi AlL,
I have a requirement where i need to add a field in search criteria of selection screen and display in output of Standard SAP report.
I have read in threads that to obtain Access key and modify the code in std report , if i am not able to get an Access key and not allowed to copy the report as Z.
Could you please let me know how to solve this kind of requirement.
thanks
CharyWell - it's a report so there won't be a user exit. I think your options are what the others (and you) have suggested - change the standard program or make a copy.
There are different opinions on the forum about which to do.
Rob
PS - you're not bothering anyone. We like problems.
Message was edited by: Rob Burbank -
Search criteria for standard field
Hi All,
we have a requirement in loyalty management employee search screen we couldn't find a custom field called occupation, But in create employee screen it's come. please suggest solution for add this standard field in search criteria.
Regards
Praveen.Hi praveen,
I am providing some screen shots
click on new entries after that will get below screen some times check box checked so only i told to check if it is unchecked is not an issue so u need to check in structure level. -
How to add a standard field to the Product search criteria ?
Hello all,
despite my searches on google and sdn, i'm still confused on how to add a standard field in the search criteria of the Product seach screens (component/view PRD01QR/Search for example) , I mean a standard Product field that is not included in the available fields list in the UI configuration tool.
I found some explanations for adding a specific Z-Field, this is ok , but I'd like to add a standard field as a search criterion, namely the item category group.
Could someone give me the needed detailed steps for this?
thanks
LudovicHi
Chk ths link out :
http://wiki.sdn.sap.com/wiki/display/CRM/Howtoaddanexistingfieldtoasearchpageofadifferent+component
Rgds,
Swati -
search criteria is not working in Responsible Group field in sap crm could you please help me this how to achieve.I have writen code on EH_ONSEARCH .as per below...what changess i need to do..and through partner function and adding the selection params please send the sample .
code. partner funtction - ZRG DATA :
DATA : lv_partner_fct type .
types: begin of ty_resp,
partner type but000-partner,
name_last type but000-name_last,
name_first type but000-name_first,
mc_name1 type but000-mc_name1,
mc_name2 type but000-mc_name2,
end of ty_resp.
DATA: lv_resp_bp type STANDARD TABLE OF ty_resp INITIAL SIZE 0,
lw_resp_bp type ty_resp.
IF lv_attr_name = 'Rgroup'.
lr_entity->get_property_as_value( EXPORTING iv_attr_name = if_crm_srqm_uiu_const=>gc_attr_low
IMPORTING ev_result = lv_low ).
IF lv_low IS INITIAL.
SELECT partner
name_last
name_first
mc_name1
mc_name2
FROM but000 INTO table lv_resp_bp
WHERE mc_name2 = lv_low and bu_group = '0010'.
loop at lv_resp_bp into lw_resp_bp.
lv_low = lw_resp_bp-mc_name2.
lr_query_service2->add_selection_param( iv_attr_name = 'Rgroup'
iv_sign = lv_sign
iv_option = lv_option
iv_low = lv_low
iv_high = lv_high ).
ENDLOOP.
if lv_partner_fct = 'ZRG'.
lr_entity = lr_iterator->get_next( ).
CONTINUE.
ENDIF.
lv_attr_name = 'BU_PARTNER'.
ENDIF.<b>You can acheive this .... first by creating the search help exit ... by creating the maintaince view then using it in the Creation of the search help </b> ...
see the link for attaching the view to the serach help .
<a href="http://">http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_elementary.htm</a>
reward points if it is usefull...
Girish -
How to include a field in the search criteria.
Hi,
In B2B, there is a requirement In Account Details.jsp , to add a new field "Your reference". this field should haev the value same as from the order creation page:Your referene field. This field should not be included in the result list. This should be used as a search criteria. I have added that YOUR Reference Field in Account Details.JSP,.Now i need use it for search criteria.C
Could you kindly suggest me how this field can be included in the search critertia in Funciton Module "Zb2b_Account_Details.
Thanks & Regards,
Sujitha. S
Edited by: Sujisruthy on Jun 16, 2010 1:23 PMHi,
Please see documentation of enhancement MM06E005 (transaction SMOD).
Userexit EXIT_SAPMM06E_016 is a component of enhancement MM06E005.
With that enhancement, you can
- Maintain/supply your own customer fields
- Update your own customer-specific tables
You cannot:
- Change standard fields
- Change data that depends on the document header in the items
- Change data that depends on an item in the document header
Please have a look at Business Add-In (BAdI) ME_PROCESS_PO_CUST.
Regards,
Edit -
Issue with clearing a grayed out search criteria field
Hi,
I have grayed out a field ABC for its default value XYZ in the search criteria of lead search...
But when I click the CLEAR button, it clears the XYZ value of field ABC..
I don't want the value of ABC to be cleared...
Do I need to redefine the CLEAR method?
How do I achieve this purpose?
Thanks
MadhukarHi Madhukar,
go to your eh_onclear event place the break point check the code where exactly parameters values are clearing. copy the standard code redefine the method eh_onclear past the code in your redefine method and change the logic where exactly the parameters are clearing as a standard.
ex as the above code:
WHILE lr_param IS BOUND.
lr_param->get_properties( IMPORTING es_attributes = ls_param ).
in ls_param you will get ATTR_NAME as ur field and low,high sign option values
check this ls_param-ATTR_NAME ne 'urfield'. clear the content else check the low and high value of the remaining field values.
IF ( ls_param-low IS NOT INITIAL ) OR
( ls_param-high IS NOT INITIAL ).
CLEAR: ls_param-low, ls_param-high.
lr_param->set_properties( EXPORTING is_attributes = ls_param ).
ENDIF.
lr_param = lr_iterator->get_next( ).
ENDWHILE.
if you want more info share me your component and view name.
Thanks & Regards,
Srinivas. -
Clearing only a few search criteria fields
Hi,
I am defaulting the business partner and start date fields of the search criteria of the dealer portal lead search..
But when I click on clear button , now it clears the result set and not the search criteria because I commented the below code in EH_ONCLEAR method
* clear search criteria
* lt_adjustments = me->get_adjustments( ).
* lr_qs->clear_selection_param_values( lt_adjustments ).
But now I want all the search criteria fields to be cleared when I click clear button except for business partner...
If I am able to manipulate the code of clear_selection_param_values( lt_adjustments ) method, I will be able to achieve it..
But the clear_selection_params_values is a standard method...How do I manipulate to not clear the business partner??
What is the procedure to achieve it?
Thanks
MadhukarHi,
Check this code.
data: lv_viewname type string,
lr_view_ctrl type ref to cl_crm_srqm_common_sr_cntrl,
lr_search_cn type ref to CL_BSP_WD_CONTEXT_NODE_ASP.
lv_viewname = me->get_viewarea_content( if_crm_srqm_uiu_const=>gc_viewarea_search ).
ASSERT lv_viewname IS NOT INITIAL.
lr_view_ctrl ?= me->get_subcontroller_by_viewname( lv_viewname ).
lr_search_cn ?= lr_view_ctrl->get_search_context_node( ).
lr_query_service ?= lr_search_cn->collection_wrapper->get_current( ).
lr_coll ?= lr_query_service->get_selection_params( ).
CHECK lr_coll IS BOUND.
lr_iterator ?= lr_coll->get_iterator( ).
CHECK lr_iterator IS BOUND.
lr_entity ?= lr_iterator->get_first( ).
WHILE lr_entity IS BOUND.
lr_entity->get_property_as_value( EXPORTING iv_attr_name = 'ATTR_NAME'
IMPORTING ev_result = lv_attr_name ).
CASE lv_attr_name.
WHEN 'PARTNER'.
lr_entity->get_property_as_value( EXPORTING iv_attr_name = 'LOW'
IMPORTING ev_result = lv_partner ).
EXIT.
ENDCASE.
lr_entity ?= lr_iterator->get_next( ).
ENDWHILE.
lr_search_cn->if_bsp_model~reset_errors( ).
lr_view_ctrl->clear_search( ).
lr_query_service-->ADD_SELECTION_PARAM( iv_attr_name = 'PARTNER'
iv_sign = 'I'
iv_option = 'EQ'
iv_low = LV_PARTNER ).
Regards,
Deepika -
New search criteria for old (standard) node?
Is it possible to create script, which adds new search criteria for old (standard) node?
CustomSearchExtensionHandler.jsx gives example of custom search criteria for custom node. But it is not clear for me, how to add new search criteria over standard XMP fields.Hi,
First you create your own table (with fields like Vendor No and Name), in which you wants to store your Value range for that Vendor and fill this table with all the values for that vendor(your own set of values).
Using this table create an Elementary search Help from SE11 and you can use that search help for the Vendor field where ever you use.
This works fine.
Regards,
Anji -
Restrict No: of input Search Criteria to 1 dropdown field
Dear Experts,
We have a custom BP_Search AB where we have 4 fields. We added these 4 fields in the UI Configuration.
Now on the search screen, these appear as 4 lines. However, our requirement is:
We just need to show 1 search criteria as dropdown box with the 4 available fields i.e we do not want the "Copy Line" and "Remove Line" functionality as in Standard Account Search.
Similar requirement was posted in thread :Removing + and - icons from AdvancedSearchHelp pages but the solution suggested does not serve our purpose and modification of suggested standard classes would affect searches everywhere but we want the + and - to be removed only for our custom AB.
How do we go about achieving this?
Regards
NishaHi Hariharan,
Please use the Mark_tab parameter of the FM F4IF_INT_TABLE_VALUE_REQUEST as below.
data: MARK_TAB TYPE DDSHMARKS.
data: mark like line of mark_tab.
mark = '2'.
append mark to MARK_TAB.
*-- Call fucntion for search help
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = l_retfld
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = l_dynfld
MULTIPLE_CHOICE = 'X'
callback_program = sy-repid
MARK_TAB = mark_tab
TABLES
value_tab = l_i_value
field_tab = l_i_fields
return_tab = l_i_return
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc 0.
MESSAGE i000
WITH 'No search help found'(090) .
ENDIF.
Regards,
Amit. -
Add search help/drop down list to a standard field in MIR7
Hi All,
I have a requirement to add a search help on one of the strandard field in MIR7. This field has no search help in dictionary (SE11). Do you have any idea on how to do this? Is there any exit that i can use to?
Please help!
Thanks in advance.Hi Akira,
Please check the below threads.
[how to create F4 for the standard transaction]
[F4 HELP for standard field..;
[http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/daeda0d7-0701-0010-8caa-edc983384237]
[Re: Adding a field in standard search help;
Edited by: Prasath Arivazhagan on Apr 13, 2010 5:38 AM -
Adding a Field in search Criteria in Web UI
Hello All ,
I am working on SAP CRM 7.0 Webui Marketing module (Business Role : Marketingpro) . Here when I select the "Account&Product" Work Center and go to search Contact . Here we will move to the Search Contact View here we will get a list box where we can select any search criteria to search a Contanct . Here in this List box in need to add a new Field Called "Archiving Flag" . The component of the Search Contact is :: "BP_CONT_SEARCH" And the View is "BP_CONT_SEARCH/Search " Here in the View Structure Tab under Context->Context Node ->Search i just needd to a new Field called "Archiving Flag" in this context node "Search". Can any Tell me the procedure to add a field to the lsit box of Search Criteria.
Thanks in Advace
Regards,
Kiran Posanapalli.Hi Vinutha,
U can add fields in the search view using AET in one way.
The other way is identify the component for that search.Press F2 on the web ui screen of ur account search page and see the component name as well the view name for the search fields.
Go to that search view in the component identified.
In case of sales pro role, account search component is BP_CONT_SEARCH ,go to the view search and in that if we go to context node search an attribute named 'telephone' is present already.We can add that to visible fields in configuration tab.
If not found under that context node then right click on context node and create a context node.Before that go to genil_model_browser and observe the relation level in which the field(mobile number) we need to add is present and copy the dependent object name.
For example for phone number the dependent object is BuilAdressPhone. Now pass this value in create context node. Make the adjustments in configuration tab.
*Give points if found useful.
Regards
HCL SPARKS -
Error while trying to add a new field in search criteria by VO extension
Hi,
I am trying to add a new field by using the VO extension to a seeded OAF page used to search Repository contracts.
I get the following error on opening the page after I have compiled my code on server and bounced apache.
Message not found. Application: FND, Message Name: FND_VIEWOBJECT_NOT_FOUND. Tokens: VONAME =SSPN_AdvancedSearchAttributesPVO; APPLICATION_MODULE = oracle.apps.okc.repository.search.server.ContractsAdvSearchAM;
I extended the AM also after this to include the extended VO but still the error comes.
This page is a dynamic search page where the results change based on the different search criteria.
Cheers
SwatiHi,
I extended the AM also after this to include the extended VO but still the error comes.There is no need to extend the AM for extending a VO. Hopefully the VO which u extending already attached to the AM oracle.apps.okc.repository.search.server.ContractsAdvSearchAM.
Regards,
Gyan -
New custom field in the POWL search criteria
Hi experts,
My requirement is to add a new custom field in the search criteria (Parameters)
In my Easy shopping card POWL. I need to add custom fields in search criteria.
I tried appending my custom fields in structure /SAPSRM/S_SEARCHFIELDS
And customized the POWL type DB criteria SAPSRM_FEEDER_SC by adding the custom field
But still the newly added search criteria is not displaying in the
Query SAPSRM_E_CHECKSTATUS_01 in powl_query transaction.
Kindly help me to solve this issue
Regards
Chinnaiya PHello Konstantin,
thanks for the reply...
I tried to add an extra Field(Company code) in POWL Search. the problem is the Field Company code doesnt get updated in BBP_PDHSC and BBP_PDISC with the value used in while creating SC.
I only get the Company code value in table BBP_PDBEI for SC.
So when i give any value in POWL search for company code no data is shown even though the SC was created in the inputted Company code.
so how to go about adding CC as search criteria in POWL so that the resultant output is filtered on the basis of CC value.
Thanks
Rajat -
Custom field in the search criteria of contract management in SRM - POWL
Hi,
I have to add a custom field in the search criteria of the POWL query for Contract Management. I have done adjusting of the POWL by adding the custom field in the /SAPSRM/S_POWL_RESULT_CTR and /SAPSRM/S_SEARCH_RESULT_CTR. I have created entries in TREX and Field cat but still the field is not visible in the query.
Please let me know how can i get the visibility of custom field on the POWL query for contract.
Regards,
GeetaHi,
Try to delete powl query cache using report POWL_D01.
Regards,
Marcin
Maybe you are looking for
-
i have a new i pod shuffle, and downladed music from both my i tunes and computer library but it keeps saying use i tunes to download, it doesnt seem to want to work is there something im doing wrong? Thanks.
-
Cannot connect 2nd lap top to the internet
Hello, I have the Linksys BEFW11S4 router. The 2nd lap top in my home cannot get connected to the internet for some reason. Any suggestions? Thanks
-
So i'm working on rebuilding my credit after getting my chapter 7 discharge in february. I was planning on opening a second secured card next week, but decided to go ahead and try the capital one pre qualifier just for the hell of it. To my surprise
-
Country chart of account to comp code
hi experts pls tell me wher we can assign country chart of account to comp code..pl thanks Hima
-
Where do the information regarding, checkboc checked in alv stored
hi all, when ever i tick a check box in alv report, then how did it know that we have checked at specific row, which variable holds that in formation