Clearing WebUI Select-Options from incorrect values

Problem: in your report/function, executed from WebUI, Select-Option tables contain incorrect or empty records.

Solution: to avoid this issue you need to clear Select-Options sent from WebUI with standard methods  CHECK_SELECTION_PARAMS and ADJUST_SELECTION_PARAMS.

DATA:
  lt_query_params TYPE genilt_selection_parameter_tab,
  lo_query TYPE REF TO cl_crm_bol_dquery_service.
 
lo_query ?= typed_context->searchquerynode->collection_wrapper->get_current( ).
CHECK lo_query IS BOUND.
 
" get the query parameters from the query
" and fix their values
lo_query->check_selection_params( CHANGING ct_params = lt_query_params ).
lo_query->adjust_selection_params( CHANGING ct_params = lt_query_params ).
DATA:
  lt_query_params TYPE genilt_selection_parameter_tab,
  lo_query TYPE REF TO cl_crm_bol_dquery_service.

lo_query ?= typed_context->searchquerynode->collection_wrapper->get_current( ).
CHECK lo_query IS BOUND.

" get the query parameters from the query
" and fix their values
lo_query->check_selection_params( CHANGING ct_params = lt_query_params ).
lo_query->adjust_selection_params( CHANGING ct_params = lt_query_params ).

Komentowanie jest zakończone.