HI,
i have been getting the following short dump , when im configuring my Search guibb , in the search guibb configuration , when i click on 'Edit Search Attributes' , and transfer the field from 'Available Search criteria' to 'Selected search criteria' i get the following short dump.
Here i click on 'Edit Search Attributes'.
Here when i click 'OK' .. i get the below short dump.
This is my feeder class code.
PUBLIC SECTION.
types: begin of ty_search, id type zstudent-DEPT, end of ty_search . types: BEGIN OF ty_result, name type zstudent-name, marks type zstudent-marks, dept type zstudent-dept, END OF ty_result . data LS_SEARCH type TY_SEARCH . data: lt_search type TABLE OF ty_search . data LS_RESULT type TY_RESULT . data: lt_result type TABLE OF ty_result . data: lt_temp type STANDARD TABLE OF zstudent . data MO_FIELD_CATALOG_ATTR type ref to CL_ABAP_STRUCTDESCR .
METHOD: GET_DEFINITION.
eo_field_catalog_attr ?= cl_abap_structdescr=>describe_by_data( ls_search ). eo_field_catalog_result ?= cl_abap_tabledescr=>describe_by_data( lt_result ). mo_field_catalog_attr = eo_field_catalog_attr. data ls_search_des type fpmgb_s_searchfield_descr. data ls_result_des type fpmgb_s_searchresult_descr. ls_search_des-name = 'ID'. append ls_search_des to et_field_description_attr. ls_result_des-name = 'NAME'. append ls_result_des to et_field_description_result. ls_result_des-name = 'MARKS'. append ls_result_des to et_field_description_result. ls_result_des-name = 'DEPT'. append ls_result_des to et_field_description_result.
METHOD: PROCESS_EVENT
data lt_where type rsds_where_tab. if io_event->mv_event_id = if_fpm_guibb_search=>fpm_execute_search. data ls_temp type zstudent. TRY. CALL METHOD CL_FPM_GUIBB_SEARCH_CONVERSION=>TO_ABAP_SELECT_WHERE_TAB EXPORTING IT_FPM_SEARCH_CRITERIA = it_fpm_search_criteria IV_TABLE_NAME = 'ZSTUDENT' IO_FIELD_CATALOG = mo_field_catalog_attr IMPORTING ET_ABAP_SELECT_TABLE = lt_where . CATCH CX_FPMGB . ENDTRY. select * from zstudent into TABLE lt_temp where (lt_where). loop at lt_temp into ls_temp. MOVE-CORRESPONDING ls_temp to ls_result. APPEND ls_result to lt_result. endloop. endif.
METHOD: GET_DATA
if io_event->mv_event_id = if_fpm_guibb_search=>fpm_execute_search. et_result_list = lt_result.endif.