on 04-13-2011 7:26 AM
Hi Experts,
I am having problem with Search object enhancement 'BTQuery1O',
I did class copying to zclass and enhanced search structure, but not getting expected results,
what I am missing?
I did coding in method READ_BUSINESS_TRANSACTIONS like below :
IF is_query_1o-ZZCUST_H12 IS NOT INITIAL.
CALL METHOD me->get_range
EXPORTING
iv_value = is_query_1o-ZZCUST_H12
iv_sign = 'I'
IMPORTING
et_range = lt_icrno_range.
ENDIF.
IF lt_icrno_range IS NOT INITIAL.
CALL METHOD cl_crm_report_qupart=>get_qupart_by_token
EXPORTING
iv_entityname = gc_objectname_reporting-orderadm_h
iv_fieldname = 'ZZCUST_H12'
iv_token = 'RAN'
it_rangetab = lt_icrno_range
it_itemlist =
iv_maxn =
iv_date_type =
iv_from =
iv_to =
iv_status =
iv_status_type =
IMPORTING
ev_qupart = ls_qupart_range-querypart.
IF lv_qupart_lines IS NOT INITIAL.
APPEND ls_qupart_and TO lt_qupart.
ENDIF.
APPEND ls_qupart_range TO lt_qupart.
ADD 1 TO lv_qupart_lines.
ENDIF.
I did maintenance for this search object with zclass in table CRMC_OBJ_BTIL_C.
There is already maintenance of this field against dynamic method is exists in table CRMC_REPDY,
here it is exists like below :
SEL FIELD -> ZZCUST_H12
NAME ON DB -> CRMD_CUSTOMER_H~ZZCUST_H12
DYN METHOD - >DYN_CUSTOMER_H
CALL FOR WHERE -> ' '
Everything is perfect, its entering to Zclass for 'BTQuery1O' object in GENIL_BOL_BROWSER transaction,
after entering selection values as : object Id as 123, ZZCUST_H12 as 123---- then for query with Object id as 123 having 2 entries with ZZCUST_H12 values as 123 & 456
then after entering field ZZCUST_H12 as 123 then it returning zero entries. what can be done?
I also changed
CALL METHOD cl_crm_report_qupart=>get_qupart_by_token
EXPORTING
iv_entityname = gc_objectname_reporting-orderadm_h
to customer_H also, no use in getting desired output.
Please help me.
Thanking you.
Best Regards,
Raj
Hi Raj,
most guides for SAP CRM Web UI Business Transaction Search Enhancement tell you how to implement a BADI or how to hack the search query object even in cases you just want to add some simple fields as search criteria or result list field.
Because I don´t wanted to develop in cases it is not needed, I searched for a better solution. And I found it. I hope my solution will help you too.
http://www.hybrid-eichhoernchen.de/business-transaction-search-enhancement/
Kind regards,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
answered self
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.