on 05-30-2012 4:46 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.