cancel
Showing results for 
Search instead for 
Did you mean: 

Link POWL Query to another POWL Query

Former Member
0 Kudos

Hello experts,

iam working with POWL in SAP APO SPP.

Now i have the task to create a button in the query "Critical Products" where the user will linked at click to the query "Critical Sales Orders".

I have already created the button. It works for navigation to a WebDynpro application or a standard transaction.

Can you tell me if it is possible to navigate from one query into another?

If it is possible could you tell me how?

Best regards,

Philip

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Philip,

POWL internally used on query switch,

What you can do is Please use the class CL_POWL_RUNTIME_SERVICES, set the current query to query you want to set on button click.

Best regards,

Rohit

Former Member
0 Kudos

Hi Rohit,

thanks for your replay.

I have tried out what you told me, but it does not work.

Here my steps:

1. Read visible types with --> CL_POWL_TYPE_ACCESSOR=>GET_VISIBLE_TYPES

2. Auth checks with --> CL_POWL_UTIL=>DO_AUTH_CHECKS

3. Ready querys with --> CL_POWL_TYPE_ACCESSOR=>GET_VISIBLE_QUERIES

4. Took the right query from 3 and called --> CL_POWL_RUNTIME_SERVICES=>SET_CURRENT_QUERY

Nothings happens when i click onto the button.

What iam doing wrong?

Best regards,

Philip

Former Member
0 Kudos

Hello Philip,

There is the way, we are able to get it,

You have  to use lunchpad for that ......

DATA lr_lpd_handle TYPE REF TO if_powl_launchpad.

       DATA lr_lpd_content TYPE REF TO apb_lpd_s_content.

       DATA lt_lpd_content TYPE apb_lpd_t_content.

       DATA ls_appl_param TYPE powl_namevalue_sty.

       DATA lt_appl_param TYPE powl_namevalue_tty.

       CALL METHOD cl_powl_runtime_services=>get_powl_launchpad_handle

         EXPORTING

           iv_role                  = 'ZROLE_POWL'

           iv_instance              = 'ZINSTANCE_POWL'

         RECEIVING

           rr_powl_launchpad_handle = lr_lpd_handle.

       lt_lpd_content = lr_lpd_handle->mt_content.

       READ TABLE lt_lpd_content REFERENCE INTO lr_lpd_content

                                 WITH KEY link_text = 'Test'.

*      ls_appl_param-key = 'APPLID'.

       APPEND ls_appl_param TO lt_appl_param.

       CALL METHOD lr_lpd_handle->launch_application

         EXPORTING

           iv_application_id         = lr_lpd_content->application_id

*         it_application_parameters =

           it_business_parameters    = lt_appl_param.

Best regards,

Rohit