cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the selected query name in runtime in SRM POWL query?

Former Member
0 Kudos

Dear all,

I have three query ID's ( SAPSRM_AL_CONTRACT_02_01, SAPSRM_AL_CONTRACT_02_02, SAPSRM_AL_CONTRACT_02_03 ) under POWL type ID (SAPSRM_FEEDER_E_CTR). I have implemented some logic in the feeder class but this logic should work only for query ID SAPSRM_AL_CONTRACT_02_03. The problem is I am not able to get the selected query name in the runtime. System shows only POWL type and application ID. Please help to achieve this.

Regards,

Muthukannan.M

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear all,

Found the solution while debugging through cl_powl_model. In future if anyone stuck up this please use the below code to get the current query name.

data :  ls_current_query   TYPE powl_query_sty.

*---Get the selected query name

CALL METHOD cl_powl_runtime_services=>get_current_query

   RECEIVING

     rs_query =     ls_current_query." query definition

Regards,

Muthukannan.M

Answers (0)