on ‎2021 Mar 10 12:36 PM
Hi All,
I am facing a issue of converting iv_filter_string to IT_FILTER_SELECT_OPTIONS.
Tried below standard one which works in some cases and fails in some other cases.. not sure why.
CALL METHOD cl_clb2_tools=>odata_filter2select_option
EXPORTING
iv_filter_string = lv_filter_string
RECEIVING
rt_filter_select_option = lt_filter_select_options.
Tried few other custom conversions from SDN but none gave me luck.
Thanks
Rajesh
Request clarification before answering.
No, you have not.
You have to use the object
h_request_contextthat is passed as a parameter not the deptecated parameters.
Simply try out my code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why aren't you using
lt_filters = io_tech_request_context->get_filter( )->get_filter_select_options( ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andre,
I have tried the same earlier, lt_filter_select_options is empty only iv_filter_string having my filters from UI.
This is happens only when I select multiple combination from UI, if I select only one record than my filters are present in lt_filter_select_options.
Multiple selection will routing to iv_filter_string.

Thanks
Rajesh
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.