cancel
Showing results for 
Search instead for 
Did you mean: 

How to get selection criteria value in method IF_POWL_FEEDER~HANDLE_ACTION

tony_zheng
Explorer
0 Kudos

hi:

As you know, we could get the leading selected POWL result data through parameter c_selected and c_selected in this method.

but moreever, I want to get the selection criterai values in this method too just like the paramter i_selcrit_values in the method IF_POWL_FEEDER~GET_OBJECTS, how to do it?

I have tried to define a attribute in my POWL class and save i_selcrit_values into this attribute in the method IF_POWL_FEEDERGET_OBJECTS, but in method IF_POWL_FEEDERHANDLE_ACTION, this attribute is still empty, so this workaround failed.

thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

tony_zheng
Explorer
0 Kudos

hi guys:

I have founded how to do it:

METHOD get_selcrit.

DATA ls_query TYPE powl_query_sty.

DATA lt_selcrit TYPE rsparams_tt.

FIELD-SYMBOLS <ls_selcrit> LIKE LINE OF lt_selcrit.

CALL METHOD cl_powl_runtime_services=>get_current_query

RECEIVING

rs_query = ls_query.

CALL METHOD cl_powl_query_accessor=>get_cached_selcrit

EXPORTING

i_query = ls_query-query

IMPORTING

e_crit_para = lt_selcrit.

READ TABLE lt_selcrit WITH KEY selname = iv_selname

ASSIGNING <ls_selcrit>.

IF <ls_selcrit> IS ASSIGNED.

ev_selcrit = <ls_selcrit>-low.

ENDIF.

ENDMETHOD.