cancel
Showing results for 
Search instead for 
Did you mean: 

Search object 'BTQuery1O' Enhancement problem

raj_kumar86
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

raj_kumar86
Participant
0 Kudos

answered self

Nigel_James
Active Contributor
0 Kudos

Hey Raj - really great that you 'answered self' but it would be of benefit to the whole community if you took the same amount of time to describe how you solved this issue as you took describing your question.

Thanks,

Nigel