BAdi for Search Criteria in IC
Hi Experts,
I am working on the UI of the IC, i have to implement a BAdi for the search criteria in the Account Identification -> ERP Sales Document , I am trying this badi "CRM_BUPA_IL_SEARCH" but this is not getting triggered.
Can anyone suggest any name of the BAdi for the same ?
Thanks in advance,
regards,
sharad,
Hi sharad,,
if you want to use your badi to search a object you have to use as a search bol object BuilHeaderSearchNew. If you are using BuilHeaderSearch(sap standard) it's not working.
You can define to use the BuilHeaderSearchNew in spro->CRM->INDUSTRY-SPECIFIC Solution->Utility Industries->Setting for User Interfaces->Identification->Define Identification Profiles. Choose your z-profile and in the row Search By BP select the value BuilHeaderSearch. Check if it saves your value, becouse we had a problem with this.
Or you can use table crmc_iu_md_prof to enter the value BuilHeaderSearchNew directly for your z-profile.
Similar Messages
-
Hi,
I have added a search criterion 'IBU' for searching oppurtunities.Now when i select the search criterion IBU i want a dropdown for it to select the value of IBU.The value for search criteria appears in the field VALUE1 of context node search which is in the component BT111S_OPPT/Search .How do i code for getting a dropdown for this?
Thanks in advance:)
Regards
ShilpiHi Shilpi,
This is done in the method GET_DQUERY_VALUEHELPS (redefine) of the context node (in your case: ZL_BT111S_OPPT_SEARCH_CN00)
METHOD get_dquery_valuehelps.
DATA: lt_ddlb TYPE bsp_wd_dropdown_table.
DATA: ls_ddlb LIKE LINE OF lt_ddlb.
DATA: ls_string_ddlb TYPE crms_thtmlb_search_ddlb_nvp.
FIELD-SYMBOLS: <rs_result> LIKE LINE OF rt_result.
CONSTANTS lc_string_empty TYPE crms_thtmlb_search_ddlb_nvp VALUE IS INITIAL.
CALL METHOD super->get_dquery_valuehelps
RECEIVING
rt_result = rt_result.
LOOP AT rt_result ASSIGNING <rs_result>.
CASE <rs_result>-field.
WHEN 'XXX'.
CALL METHOD cl_crm_uiu_bp_cust_get=>get_val_for_xxx
EXPORTING
iv_nofilter = abap_true
RECEIVING
rt_value = lt_ddlb.
CLEAR <rs_result>-ddlb_options.
SORT lt_ddlb BY value ASCENDING.
APPEND lc_string_empty TO <rs_result>-ddlb_options.
LOOP AT lt_ddlb INTO ls_ddlb.
ls_string_ddlb-key = ls_ddlb-key.
ls_string_ddlb-value = ls_ddlb-value.
APPEND ls_string_ddlb TO <rs_result>-ddlb_options .
ENDLOOP.
ENDCASE.
ENDLOOP.
ENDMETHOD.
Important lines:
- WHEN 'XXX'.
=> XXX is the your IBU field name
- cl_crm_uiu_bp_cust_get=>get_val_for_xxx
=> to retrieve possible values
Regards,
Fabian -
ADF 11g - Query Component - How to set default values for search criteria
I have defined a VO with named query (with 2 search criteria). I created a page and drop a query with table. It works just fine until this point. My requirement is to set a default values for the two search criteria. For example, I have release and category criteria where they are set to use a drop down. I would like to default the values for the drop down when the page is shown up the first time and query the result right away. Is there a way declaratively or I have to create a custom query?
Thanks.I figured this out. Thanks.
-
Dependent comboboxes for search criterias
Hi all,
I have to build a web application where special filtered data should be displayed. Therefore BC4J and UIX should be used.
The search criteria should be specified by the user in the header of the form by selecting available items of comboboxes.
There are several comboboxes and the items within the comboboxes depends on the selected value of the previous combobox, means that there is a master-detail relation from one combobox to the other(s).
Example:
Department - Employee - Customer - Order
In comboboxA all departments should be displayed, in comboboxB all employees of the selected department (in comboboxA) should be displayed and in comboboxC all customers of the selected employee should be displayed.
After specifying this search criterias e.g. all orders of the specified Customer should be displayed within a table.
Is it possible to populate the comboboxes with values depending on the selected item of the "master-" combobox respectively, but without rendering the hole page each time a selection in a combobox changes???
Some examples or samplecode of similar problems would help greatly.
Thanks for any hint,
WalterThis is possible, but you will have to write your own javascript to do this; this is not directly supported in uiXML. I think we will support this in JDev 9.0.4
-
Two related selectOneChoice components for search criteria
Hi All,
ADF/BC4J
I have two related selectOneChoice components (master/detail) and I want to use them as search criteria. At startup both selectOneChoice should have <Not selected> option selected AND second (detail) selectOneChoice should contain ALL available options (for all parents). As someone selects any value in master selectOneChoice, detail selectOneChoice should filter detail values.
Under Both selectoneChoice I have View Objects (not entities), so the example from Steve's Muench page isn't applicable.
Can anyone tell me how to make such a page?
kind regards,
krzysiekHi,
you don't need entity objects to implement dependent list boxes. All you need is to create a dependency between the two VO. So either you create a VL between them or you use a bind variable that you populate in a ExecuteWithParams binding (method call in a managed bean upon list value change of the master list).
Frank -
How to pass the ObjectType as input for search Criteria
Hi All,
I have search function that takes the input parameters and returns all the matching rows. this is straight forward only. My problem is having multiple types as a input parameter. that is the reason i am not able to pass the input value for these types.
My Input Type table looks like this.
CREATE OR REPLACE TYPE T_T_PARTY_REQUEST_CRITERIA
AS TABLE OF T_O_PARTY_REQUEST_CRITERIA;
CREATE OR REPLACE TYPE T_O_PARTY_REQUEST_CRITERIA
AS OBJECT
SYSTEM_IDENTIFER VARCHAR2(50),
PROCESS_TYPE VARCHAR2(50),
UPDATED_BY VARCHAR2(50),
STATUS VARCHAR2(50),
CHILD_REQUEST_INDICATOR VARCHAR2(25),
TRACKING_REQUEST_INDICATOR VARCHAR2(25),
REQUEST_TYPE VARCHAR2(50),
REQUEST_TYPE_CLASS_NAME VARCHAR2(50),
PARTY_KEY_IDENTIFIER T_T_PARTY_KEY_IDENTIFIER,
ADDTN_IDENTIFIER_INFO T_T_ADDTN_IDENTIFIER_INFO
Last two inputs are type again.my question here is how to pass the values for these two T_T_PARTY_KEY_IDENTIFIER and T_T_ADDTN_IDENTIFIER_INFO. I have defined the the last two types following.
CREATE OR REPLACE TYPE T_T_PARTY_KEY_IDENTIFIER
AS TABLE OF T_O_PARTY_KEY_IDENTIFIER;
CREATE OR REPLACE TYPE T_T_ADDTN_IDENTIFIER_INFO
AS TABLE OF T_O_ADDTN_IDENTIFIER_INFO;
CREATE OR REPLACE TYPE T_T_ADDTN_IDENTIFIER_VALUES
AS TABLE OF T_O_ADDTN_IDENTIFIER_VALUES;
CREATE OR REPLACE TYPE T_O_PARTY_KEY_IDENTIFIER
AS OBJECT
PARTY_KEY_TYP_NM VARCHAR2(50),
PARTY_KEY_VALUE VARCHAR2(50)
CREATE OR REPLACE TYPE T_O_ADDTN_IDENTIFIER_INFO
AS OBJECT
ADDTN_INFO_KEY_TYP_NM VARCHAR2(50),
ADDTN_IDENTIFIER_VALUES T_T_ADDTN_IDENTIFIER_VALUES
CREATE OR REPLACE TYPE T_O_ADDTN_IDENTIFIER_VALUES
AS OBJECT
ADDTN_RQST_VALUE VARCHAR2(50),
ADDTN_RQST_VAL_DT TIMESTAMP(6),
ADDTN_RQST_VAL_NUM NUMBER(19, 2)
I have pasted the query here from my function. when i pass the null as part of input for these 2 types my query is working. otherwise it is saying invalid Identifier.First I tried with first Type.
I am passing the value as
(PRKYTP.PRTY_KEY_TYP_NM = ITTPRC.PARTY_KEY_IDENTIFIER.PARTY_KEY_TYP_NM OR ITTPRC.PARTY_KEY_IDENTIFIER.PARTY_KEY_TYP_NM = 'ALL' OR ITTPRC.PARTY_KEY_IDENTIFIER.PARTY_KEY_TYP_NM IS NULL);
Error is Error(34,147): PL/SQL: ORA-00904: "ITTPRC"."PARTY_KEY_IDENTIFIER"."PARTY_KEY_TYP_NM": invalid identifier
SELECT DISTINCT T_O_PARTY_REQUEST_IDENTIFIER(PR.PRTY_RQST_ID) BULK COLLECT INTO T_T_P_R_CRITERIA
FROM TABLE(CAST(I_T_T_PARTY_REQUEST_CRITERIA AS T_T_PARTY_REQUEST_CRITERIA)) ITTPRC,
PRTY_RQST PR
JOIN BUSN_APPLC BIAP ON BIAP.BUSN_APPLC_ID = PR.BUSN_APPLC_ID
JOIN INTN_STATS INSTS ON INSTS.INTN_STATS_ID = PR.INTN_STATS_ID
JOIN INTN_PROCES_TYP INTPTY ON INTPTY.INTN_PROCES_TYP_ID = PR.INTN_PROCES_TYP_ID
LEFT JOIN RQST_TYP RQSTYP ON RQSTYP.RQST_TYP_ID = PR.RQST_TYP_ID
JOIN ADDTN_RQST_INFO ADTINF ON PR.PRTY_RQST_ID = ADTINF.PRTY_RQST_ID
JOIN ADDTN_INFO_KEY_TYP ADDKEY ON ADTINF.ADDTN_INFO_KEY_TYP_ID = ADDKEY.ADDTN_INFO_KEY_TYP_ID
JOIN PRTY_KEY PRTKEY ON PR.PRTY_RQST_ID = PRTKEY.PRTY_RQST_ID
JOIN PRTY_KEY_TYP PRKYTP ON PRTKEY.PRTY_KEY_TYP_ID = PRKYTP.PRTY_KEY_TYP_ID
WHERE (BIAP.BUSN_APPLC_NM = ITTPRC.SYSTEM_IDENTIFER OR ITTPRC.SYSTEM_IDENTIFER = 'ALL' OR ITTPRC.SYSTEM_IDENTIFER IS NULL)
AND (INTPTY.INTN_PROCES_TYP_NM = ITTPRC.PROCESS_TYPE OR ITTPRC.PROCESS_TYPE = 'ALL' OR ITTPRC.PROCESS_TYPE IS NULL)
AND (PR.UPDT_BY = ITTPRC.UPDATED_BY OR ITTPRC.UPDATED_BY = 'ALL' OR ITTPRC.UPDATED_BY IS NULL)
AND (INSTS.INTN_STATS_NM = ITTPRC.STATUS OR ITTPRC.STATUS = 'ALL' OR ITTPRC.STATUS IS NULL)
AND (PR.CHLD_RQST_IND = ITTPRC.CHILD_REQUEST_INDICATOR OR ITTPRC.CHILD_REQUEST_INDICATOR = 'ALL' OR ITTPRC.CHILD_REQUEST_INDICATOR IS NULL)
AND (PR.TRACK_RQST_IND = ITTPRC.TRACKING_REQUEST_INDICATOR OR ITTPRC.TRACKING_REQUEST_INDICATOR = 'ALL' OR ITTPRC.TRACKING_REQUEST_INDICATOR IS NULL)
AND (RQSTYP.RQST_TYP_NM = ITTPRC.REQUEST_TYPE OR ITTPRC.REQUEST_TYPE = 'ALL' OR ITTPRC.REQUEST_TYPE IS NULL)
AND (RQSTYP.RQST_CLASS_NM = ITTPRC.REQUEST_TYPE_CLASS_NAME OR ITTPRC.REQUEST_TYPE_CLASS_NAME = 'ALL' OR ITTPRC.REQUEST_TYPE_CLASS_NAME IS NULL)
-- AND (ITTPRC.PARTY_KEY_IDENTIFIER IS NULL);
-- AND (ITTPRC.ADDTN_IDENTIFIER_INFO IS NULL);
AND (PRKYTP.PRTY_KEY_TYP_NM = ITTPRC.PARTY_KEY_IDENTIFIER.PARTY_KEY_TYP_NM OR ITTPRC.PARTY_KEY_IDENTIFIER.PARTY_KEY_TYP_NM = 'ALL' OR ITTPRC.PARTY_KEY_IDENTIFIER.PARTY_KEY_TYP_NM IS NULL);
can some one tell is this approach is correct. if not suggest me.I am passing the value as
(PRKYTP.PRTY_KEY_TYP_NM = ITTPRC.PARTY_KEY_IDENTIFIER.PARTY_KEY_TYP_NM OR Here PART_KEY_IDENTIFIER is a Nested table. So you cant join it like that.
Try like this
prkytp.prty_key_typ_nm in (select party_key_typ_nm from table(ittprc.party_key_identifier)) orHere is a example based on EMP table.
I have created following nested table.
SQL> create or replace type my_emp_list as table of number(10)
2 /
Type created.
SQL> create or replace type my_dept_obj as object(deptno number(10), emp_list my_emp_list)
2 /
Type created.
SQL> create or replace type my_dept_tbl as table of my_dept_obj
2 /
Type created.I am going to use the below nested table data in a query to get value from emp table
my_dept_tbl
my_dept_obj
10, my_emp_list(1,2,3,4,5)
my_dept_obj
20, my_emp_list(6,7,8,9)
)The query would be like this
SQL> select e.*
2 from emp e
3 join table
4 (
5 my_dept_tbl
6 (
7 my_dept_obj
8 (
9 10, my_emp_list(7839,7782)
10 ),
11 my_dept_obj
12 (
13 20, my_emp_list(7566,7369)
14 )
15 )
16 ) t
17 on e.deptno = t.deptno
18 and e.empno in (select column_value from table(t.emp_list))
19 /
EMPNO ENAME JOB MGR HIREDATE SAL COM DEPTNO
7839 KING PRESIDENT 17-NOV-81 5000 0 10
7782 CLARK MANAGER 7839 09-JUN-81 2450 0 10
7566 JONES MANAGER 7839 02-APR-81 2975 0 20
7369 SMITH CLERK 7902 02-APR-81 2975 0 20
SQL> -
Fectching the data for PERNR in HRABAP for search criteria
Hi ,
In my selection screen i have below fields
1) Lastname
2) First Name
3) User name
4) Personal Number
5) Oganizational assignment
and i have one button Search. when ever user entered the data on above 5 fields and clicks on search button it needs to display the name of the person and organization and position.
But user can able to enter * in searches and patterns so i am new to HR ABAP. so can any one guide me how to fetch data for pattern or searchs.
Thanks in advance.Write a inner join on PA0001 and PA0002.. ...
1) Lastname (NACHN)
2) First Name (VORNA)
3) User name (check if it is USRID from PA0105 , or ENAME from PA0001)
4) Personal Number (PERNR)
5) Oganizational assignment (ORGEH)
Select pernr plans orgeh vorna nachn from pa0001
inner join pa0002
on pa0001pernr = pa0002pernr
where pernr in s_pernr
and nachn in s_nachn
and vorna in s_vorna
and user_name<check this field>
and orgeh in s_orgeh. -
SC Monitors_Filters for Search criteria
Hi,
When i am searching for SC's in shoppingcart monitor transaction, i kept the search filters based on "awaiting approval" and based on prod category and 3rd one is based on PurGroup.
However the results displays those sc's which doesn't fall under my PurGroup search filter. only first 2 search filters are working.
This is causing difficulty as most of the resulting sc's belongs to some other purgroup,which i am not interested.
is there any restriction that only this many filter that one can set while using BBP_MON_SC transaction?
Appreciate your inputs.
Thanks
KrishHi Krish,
Please implement the attached note 1154006.
The note desription does not fit to your problem but it corrects
a multiselection bug. After this the selection should work fine in BBP_MON_SC.
Regards,
Matthew -
Browser 'find' isn't working. no popup appears for search criteria.
I often use the 'find' function on the browser to locate a phrase I may be looking for. It now just sits there when I press find on the menu. Nothing appears.
Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
It is possible that the screen is too high and that the find bar and status bar fall off at the bottom.
Open the system menu via Alt+Space and see if you can resize that window.
If that works then close Firefox to save that setting.
See also http://kb.mozillazine.org/Resizing_oversize_window -
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 -
Unable to create Table Bean advanced search criteria
Hi,
I want to create new search criteria for advanced search region. The reason being new search criteria i tried to add by personalization it didnt worked may be guessing construction mode is autocustomization mode. Somewhere i have seen if resultsbased it will work. Can someone confirm on this??
I'm trying to create new bean for search criteria at the specified location under <oa:table akRegionCode="EAM_AD_ASSET_RESULTS_TABLE" but unable to do so:
Here is the part of the page
<?xml version = '1.0' encoding = 'UTF-8'?>
<!-- dbdrv: exec java oracle/jrad/tools/xml/importer XMLImporter.class java &phase=dat+24 checkfile(120.15.12000000.2=120.18)(115.26=120.1):~PROD:~PATH:~FILE &fullpath_~PROD_~PATH_~FILE -username &un_apps -password &pw_apps -dbconnection &jdbc_db_addr -userId "1" -rootPackage /oracle/apps/~PROD -rootdir &fullpath_~PROD_mds_directory -->
<page xmlns="http://xmlns.oracle.com/jrad" xmlns:ui="http://xmlns.oracle.com/uix/ui" xmlns:oa="http://xmlns.oracle.com/oa" xmlns:user="http://xmlns.oracle.com/jrad/user" file-version="$Header: EAM_AD_ADVSEARCH_PAGE.xml 120.18.12010000.3 2009/02/11 09:21:55 smrsharm ship $" version="10.1.3_1147" xml:lang="en-US" xmlns:jrad="http://xmlns.oracle.com/jrad">
<content>
<oa:pageLayout id="EAM_AD_ADVSEARCH_PAGE" akRegionCode="EAM_AD_ADVSEARCH_PAGE" regionName="Asset Search" amDefName="oracle.apps.eam.asset.server.AdvSearchAM" controllerClass="oracle.apps.eam.asset.webui.AdvSearchPageCO" appMenu="EAM_MAIN_SS" amStateRequired="false" helpTarget="EAM_AD_ADVSEARCH_PAGE">
<ui:corporateBranding>
<oa:image id="corporateBranding" source="/OA_MEDIA/FNDSSCORP.gif" shortDesc="Oracle"/>
</ui:corporateBranding>
<ui:productBranding>
<oa:image id="productBranding" source="/OA_MEDIA/EAMBRAND.gif" shortDesc="Asset Management"/>
</ui:productBranding>
<ui:contents>
<oa:query id="EamAssetQueryRegion" mode="autoCustomizationCriteria" dispSimple="true" dispCustomized="true" dispAdvanced="true" defaultPanel="customized" controllerClass="oracle.apps.eam.asset.webui.AdvSearchSearchCO" simpleSearchPanelButtonLabel="Simple Search" viewConfPanelButtonLabel="Views" advSearchPanelButtonLabel="Advanced Search" customizePanelTitle="Views" saveSearchButtonText="Save Search">
<oa:simpleSearchPanel>
<oa:defaultSingleColumn id="AssetSimpleSearchRegion" headerDisabled="false" text="Simple Search">
<ui:contents>
<oa:messageTextInput readOnly="false" columns="25" prompt="Asset Number" rows="1" secret="false" maximumLength="30" shortDesc="Asset Serial Number" id="EamAssetNumber" promptTranslationExpansion="100%" user:akAttributeCode="EAM_ASSET_NUMBER" user:akAttributeApplicationId="426" required="no" selectiveSearchCriteria="true"/>
<oa:messageLovInput externalListOfValues="/oracle/apps/eam/lov/webui/EAM_ASSET_CATEGORY_LOV" readOnly="false" columns="25" prompt="Category" rows="1" secret="false" id="EamAssetCategory" promptTranslationExpansion="100%" user:akAttributeCode="EAM_ASSET_CATEGORY" user:akAttributeApplicationId="426" selectiveSearchCriteria="true" shortDesc="Category">
<lovMappings>
<lovMap criteriaFrom="EamAssetCategory" lovItem="EamAssetCategory" id="lovMap1"/>
<lovMap resultTo="EamAssetCategory" lovItem="EamAssetCategory" id="lovMap2"/>
<lovMap id="lovMap39" lovItem="EamAssetCategoryId" resultTo="EamAssetCategoryId"/>
</lovMappings>
</oa:messageLovInput>
<oa:messageChoice readOnly="false" prompt="Asset Route" pickListViewDef="oracle.apps.eam.asset.server.PicklistYesNoVO" pickListDispAttr="Meaning" pickListValAttr="LookupCode" id="EamNetworkAsset" promptTranslationExpansion="100%" user:akAttributeCode="EAM_NETWORK_ASSET" user:akAttributeApplicationId="426" shortDesc="Asset Route" allowBlankValue="false" defaultValue="N"/>
<oa:formValue id="EamAssetCategoryId" dataType="NUMBER"/>
</ui:contents>
</oa:defaultSingleColumn>
</oa:simpleSearchPanel>
<oa:simpleSearchMappings>
<oa:queryCriteriaMap id="AssetNumberMapSS" criteriaItem="EamAssetNumber" resultsItem="AssetNumber1"/>
<oa:queryCriteriaMap id="AssetCategoryMapSS" criteriaItem="EamAssetCategory" resultsItem="AssetCategory1"/>
<oa:queryCriteriaMap id="AssetRouteMapSS" criteriaItem="EamNetworkAsset" resultsItem="AssetRoute"/>
<oa:queryCriteriaMap id="AssetCategoryIdMapSS" criteriaItem="EamAssetCategoryId" resultsItem="AssetCategoryId"/>
</oa:simpleSearchMappings>
<ui:contents>
<oa:tableLayout akRegionCode="EAM_AD_ADVSEARCH_RESULTS" regionName="Results" controllerClass="oracle.apps.eam.asset.webui.AssetResultsCO" addChildren="true" id="EamResultsNr" user:akAttributeCode="EAM_RESULTS_NR" user:akAttributeApplicationId="426">
<ui:contents>
<oa:tableLayout id="ResultsTableLayout2" width="100%" rendered="true">
<ui:contents>
<oa:rowLayout id="RowLayoutRegion2">
<ui:contents>
<oa:cellFormat id="CellFormatRegion2">
<ui:contents>
<oa:switcher id="MappedTableRegion">
<ui:case name="ShowTable" id="ShowTable">
<oa:table akRegionCode="EAM_AD_ASSET_RESULTS_TABLE" regionName="Asset Search" blockSize="25" standalone="true" height="1" id="MappedTable" user:akAttributeCode="EAM_RESULTS_NR" user:akAttributeApplicationId="426" width="100%" rendered="true" userCustomizable="true" shortDesc="Mapped Table">
<ui:contents>
<oa:messageStyledText id="AssetNumber1" viewName="AdvSearchVO" viewAttr="InstanceNumber" shortDesc="Serial Number" prompt="Asset Number"/>
<oa:messageStyledText id="AssetDescription1" viewName="AdvSearchVO" viewAttr="DescriptiveText" shortDesc="Asset Description" prompt="Asset Description"/>
<oa:messageStyledText id="AssetCategory1" viewName="AdvSearchVO" viewAttr="AssetCategory" shortDesc="Asset Category" prompt="Asset Category"/>
I tried several ways :
OAPageLayoutBean pageLayout = oapagecontext.getPageLayoutBean();
OAQueryBean query=(OAQueryBean)pageLayout.findChildRecursive("EamAssetQueryRegion");
OATableBean oawebbeantb = (OATableBean)query.findChildRecursive("EAM_AD_ASSET_RESULTS_TABLE");
OAMessageLovInputBean ccidbean = (OAMessageLovInputBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext, OAWebBeanConstants.LOV_TEXT, null, "xxValidation");
if (oawebbeantb==null){
throw new OAException("Error this is a test!", OAException.ERROR);
oawebbeantb.addIndexedChild(ccidbean); --here it getting null
OR
OATableBean oawebbeantb = (OATableBean)oawebbean.findIndexedChildRecursive("EAM_AD_ASSET_RESULTS_TABLE");
OAMessageLovInputBean ccidbean = (OAMessageLovInputBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext, OAWebBeanConstants.LOV_TEXT, null, "xxValidation");
oawebbeantb.addIndexedChild(ccidbean); --here it getting null
Please someone help me on this..
thanks,
mallik1) Search panel textinput item should be search allowed true and prompt is need. no other property need to set.
HERE YOU DONT WANT TO SET VIEW INSTANCE AND ATTRIBUTE SINCE WE ARE DOING FOR EXTENDED VO ITEM AS SEARCH ITEM.THAT'S OK. I TRIED WITH YOUR COMMENTS FOR TEXTINPUT ITEM TOO.
Comment--
textinput item created is a simple item without any VO instance , etc.
There is no question of extended VO item, its a simple textinput item.
value in this field is going to compare with the values in result table.
2) Search mapping, only search item id and result item id need to set.
I'M DOING HERE MAPPING FOR ABOVE SEARCH ITEM ID AND RESULT ITEM ID
Comment-- Perfect !!
3) Item created in table , after you extended Vo, view instance and attribute needs to set.
WHERE DO YOU WANT THIS TO BE SET?? CAN YOU ELABORATE THIS MORE PLEASE.MAY BE I'M MISSING HERE SOMETHING.
Comment-- you must have created message styled text item in adv table bean, assign VO instance and attribute to it, right?
4) One more thing Parag, do i need to include where clause for extended VO item in view object??
for ex:
where attribute(this is extended vo item)=:4
Comment-- No need. this will be handled by point#2 above, i.e. criteria and result items.
--Parag Narkhede -
Search criteria on manually created tabular form
Hi All,
Apex v4.0
DB 11g
In a page I have created one manually tabular form using collection .
My requirement is :- Search criteria on the form based on 3 column field of that form.
I tried to use LIKE, EQUAL in the select statement of the query. BUT search option is not working .
When I tried to search ,it doesn't return anything.
But its working on wizard base TF.
I am not sure this one option for search criteria on the manually created TF.
Kindly suggest any other way we can achieve it.
Thanks in Advance !!!
Regards,
AmuRemember that the values on an apex page is only accessible once you submit your page.
And for tabular forms the values needs to be processed to the apex collections after you submit.
For better understanding what happens inside the collections I suggest that you always make a conditional report with
select * from apex_collectionsand Condition
Where Value of item in expression1 = Expression2
Expression1
DEBUGExpression2
YESThis way you can show the content of your collections easily by just enabling debug.
Regards -
Setting Default Values in Search Criteria for COSTCENTER
Hi ALL,
I need Help for setting default values in search criteria for COST CENTER.
Basically the issue is when creating a Shopping Cart, i need to assign a COST CENTER at Item level under COST ASSIGNMENT Tab.
While searching the cost center i need to default the following fields in my search criteria based on the Login User :
1. Controlling Area,
2. Language Key.
Please suggest some solution.
Thanks & Best Regards,
SuryaHi Vani,
Sorry for the delay reply and Thanks a Lot for your timely support......I would like confirm once again is the name of the BADI is <b>bbp_f4_read_on_exit</b> or <b>bbp_f4_read_on_entry</b>. In this BADI i've not found a method to default Controlling Area. Can you please suggest me which method i can use.
Thanks & Regards,
Surya -
New custom search criteria for opportunities
Hi to all,
I want to expand the web gui view for search opportunities.
I have a new custom filed in the heder of the
opportunities named ZZORDERADM_H010, type BOOL, created with transaction EEWB.
The header is correctly update, the table CRMD_ORDERADM_H now contain my custom filed and it works fine
if i set it from web GUI (i've also extend the hedere view with the custom field).
Now want be able to use it as search criteria.
I follow the note nr 1336833.
I have extended the structure CRMST_QUERY_OPP_BTIL (and the struct CRMST_QUERY_OPP_AC_BTIL also )
with my new custom filed (i've made an append).
Then I mantain the table CRMVC_DQ form sm34.
I've made a new insertion under component BTopp like this:
BT BTQOpp ZZORDERADM_H0101 X Indica opzioni che sono disponibili ........................
The custom filed for search is now available, and i've extend the search view of WEB GUI with the new custom filed.
BUT the search DON'T WORK. Is like the the new custom field not influence the search!!!
With all the other search criteria blank, and mine valorized, the search returns all the opportunity entries;
instead it should return 2 records (i've made 2 test case with this custom fileld set at 'X'.)
The same result trying execute the query from transaction GENIL_BOL_BROWSER.
Please Help!
DavideHello Davide,
If you want to use your new field in search, a BADI should be implemented. This is usually done for you by EEWB provided that you checked "PCUI extended search" at some point in the wizard. SAP should have changed this label because it is somehow confusing if your are using CRM5.2 onward versions... as PCUI has nothing to do with it!
So did you mark this checkbox?
If no, you can run the wizard again and everything will be fine.
Kind regards,
Nicolas Busson.
PS: badi name is CRM_RF_SEARCH_EEW -
Add a field in the Search Criteria in POWL for Invoice
Hi,
I am trying to add a field or change Selection Parameters in Search criteria POWL for Invoice. But for SC, PO and Confirmation I can do it from DB Criteria. But for Invoice I implemented these BADI's and its not triggering.
/SAPSRM/BD_POWL_CHNG_CUF_SRCH
/SAPSRM/BD_POWL_CHNG_SELCRIT
Any idea why its not trigeering? Am I missing anything? I appreciate your help.
Thanks,
Carl
Edited by: Shears80 on Sep 28, 2011 9:40 PMHi Cral ,
Add a field in the Search Criteria in POWL for Invoice
append the custom attributes in this structure
/SAPSRM/S_SEARCH_RESULT_INV
goto tcode sm30 /SAPSRM/V_SRC_CR enter the filed for BO/ BUS2121(select the business object based on the requirement)
the creation type must be suitable for the type
criterion name : zzfield
criterion name : parameter
structure : /SAPSRM/S_SEARCH_RESULT_INV
field name : zzfield
this are the feeder class for invoice .
/SAPSRM/CL_CLL_POWLT_INV_PROF
/SAPSRM/CL_CLL_POWLT_INV
/SAPSRM/CL_CLL_POWLT_INV_S
based on the powl query you need to do the enhancement in the feeder class .
Thanks & Regards
Pradeep Kumar Dondeti
Maybe you are looking for
-
New IPod touch not working on Play station / Speaker
I'm having trouble with getting connection from my new ipod (slim) and my docking stations. My old one connects fine but new slim does not...any suggestions?
-
Selection-screen: Input help for VTWEG
Hello! Can anybody help me with the following problem: I have two select-options (VKORG and VTWEG) on my selection screen. Now there should be the possibility to restrict the values shown as input help for VTWEG after having selected a value for VKOR
-
Material Master in different language
Can anyone please tell me how material master can be maintained in fdifferent languages? One material number , I want to create in English as well as in some other language, is it possible? Thanks
-
Hide portlet in between some date of the month
Hi all, I have a requirement to hide a perticular portlet in between some dates in a month. Say I want to show portlet from 1st of month to 15th o the month and hide portlet for rest of the month. How can I achive this. Can I do it through portal adm
-
Premiere Pro CS6 won't play imported files even after changing format, etc?
Camera: Canon Legria HFM41 Video file format: MTS (1920 x 1080) For the past few days I've been trying to understand why my video files won't play in Premiere, I'll import them, and when I press play the audio will work, but the video will play smoot