cancel
Showing results for 
Search instead for 
Did you mean: 

I have added Agein custom field in service order search page,input filed ,if i click on search based on Ageing input search criteria is not working for this field

former_member198180
Active Participant
0 Kudos

Hi Team,

I have added Ageing in custom field in service order search page,input filed ,if i click on search based on Ageing input search criteria is not working for this field.remaining 3 fields it is working fine ,,could you please help here..

These are the  AET feilds.

Thanks

Kalpana

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member198180
Active Participant
0 Kudos

Hi Team,

Could you please help here..

Thanks

Kalpana

former_member188346
Active Participant
0 Kudos

Hi Kalpana,

1. Put a debugger  on eh_search event.

2. Go to its genil class.

3. See if the parameters table have this parameter value.

4. See if values are getting filtered there in that genil class logic.

You will get some pointers there itself.

Regards,

Bhushan

former_member198180
Active Participant
0 Kudos

Hi Bhusan,

This field i have created on AET,orderadm_h.but iam not saved the data in database..i was just display into result.

ageing =  system date- posting_date.

value = aeging.

value is displayed like 10,20,30 in result list.it is a numeric type.

So how to do search in service order search screen please help.

Thanks

Kalpana

former_member198180
Active Participant
0 Kudos

Hi Bhusan,

My .html code is as like below.

<%@page language="abap" %>

<%@extension name="chtmlb" prefix="chtmlb" %>

<%

  data: lv_xml         type string.

  data: lv_visiblerows type string.

  data: lv_hide_search type crmt_boolean.

  data: lr_parent      type ref to cl_bt116s_s_searchviewset_impl.

  data: lv_dte         type string.

  data: lv_vhm         type crmt_boolean.

  lv_xml    = controller->CONFIGURATION_DESCR->GET_CONFIG_DATA( ).

  lr_parent ?= controller->m_parent.

  lv_hide_search = lr_parent->get_hide_search( ).

  if lv_hide_search eq abap_true.

  lv_visiblerows = 20.

  else.

  lv_visiblerows = 10.

  endif.

  lv_vhm = lr_parent->get_value_help_mode( ).

  if lv_vhm eq abap_true.

  lv_dte = 'FALSE'.

  else.

  lv_dte = 'TRUE'.

  endif.

%>

<chtmlb:configTable xml                   = "<%= lv_xml %>"

                    usage                 = "SEARCHRESULT"

                    id                    = "ResultTable"

                    navigationMode        = "BYPAGE"

                    onRowSelection        = "select"

                    table                 = "//BTQRSrvOrd/Table"

                    actions               = "<%= controller->gt_button %>"

                    actionsMaxInRow       = "5"

                    visibleRowCount       = "<%= lv_visiblerows %>"

                    selectedRowIndex      = "<%= BTQRSrvOrd->SELECTED_INDEX %>"

                    selectedRowIndexTable = "<%= BTQRSrvOrd->SELECTION_TAB %>"

                    selectionMode         = "<%= BTQRSrvOrd->selection_mode %>"

                    visibleFirstRow       = "<%= BTQRSrvOrd->visible_first_row_index %>"

                    downloadToExcel       = "<%= lv_dte %>"

                    showNoMatchText       = "FALSE"/>

Thanks

Kalpana

former_member188346
Active Participant
0 Kudos

Hi kalpana,

AET is used when you want  a link to database and not the way you are using.

In the same eh_onsearch method there will be some code written for get_query_result( ). Filter the result collection based on that search parameter value. Thats it.

Regards,

Bhushan

former_member198180
Active Participant
0 Kudos

Hi Bhusan,

Thanks for your reply.

I am not enhanced the search view.it is working standard.here ageing field will be changed the data based on age ..mean system date-posting date...service order created on yester day and posted today ,so that service order age is like 1 day.and if u see after 1 week that age should be change 7.So for this condition how to save these data on data base..with out saving the data how to search in service order screen..

Please help..and tell me any other solutions or sample code for searching and saving the daata.



Thanks

Kalpana