on 08-28-2007 9:01 AM
Hi there
Hope you guys can help me, so here goes. I have a Web Dynpro application that displays a table with items in the SAP Portal (We are implementing an xRPM solution). When I select one of the items, I want to click a button that then navigates to the specific iView displaying that item's information.
I think I should use l_api_componentcontroller->get_portal_manager( ) to access the portal manager and then the navigate_absolute function to do this
The problem is, I have now idea what parameters to pass to the iView, or to determine what parameters to pass to this iView.
This functionality is already implemented in another part of the portal, where u simply click on an item in the list on another iView, and it then transports you to the item details page
Thanks in advance
Johan Kriek
Hi Johan,
For the absolute address you should code something like:
"ROLES://portal_content/.../../../<webdynpro Iview>'
the "../../.../" is depending on the path used in the PCD.
Probably you want to supply some parameters as well (e.g. Ordernumber) in order to show the details of the specific item.
Regards,
John.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Johan,
Like this:
zls_parameter-key = 'IV_VBELN'.
zls_parameter-value = zls_order-vbeln.
INSERT zls_parameter INTO TABLE zlt_parameters.
zls_parameter-key = 'IV_POSNR'.
zls_parameter-value = zls_order-posnr.
INSERT zls_parameter INTO TABLE zlt_parameters.
zls_parameter-key = 'IV_SOLDTO'.
zls_parameter-value = zls_order-soldto.
INSERT zls_parameter INTO TABLE zlt_parameters.
*-----Start navigation:
CALL METHOD zlo_portal_manager->navigate_absolute
EXPORTING
navigation_target = 'ROLES://portal_content/../../..<iview> '
business_parameters = zlt_parameters.
Regards,
John.
Hi John
Thanks for the response. My code now looks like this
DATA PARAMETERS TYPE WDY_KEY_VALUE_TABLE.
DATA PARAMETER TYPE WDY_KEY_VALUE.
PARAMETER-KEY = 'GUID'.
PARAMETER-VALUE = ls_rpm_item_d-guid.
INSERT PARAMETER INTO TABLE PARAMETERS.
l_api_componentcontroller = lr_componentcontroller->wd_get_api( ).
lr_port_manager = l_api_componentcontroller->get_portal_manager( ).
CALL METHOD lr_port_manager->navigate_absolute
EXPORTING
navigation_target = ROLES://portal_content/com.sap.pct/every_user/com.sap.pct.cprxrpm.ppmdc
/com.sap.pct.cprxrpm.iviews
/com.sap.pct.cprxrpm.port_mgmt/com.sap.pct.cprxrpm.item_det'
context_url = 'http://ssapdep0.ampsap.net:50100/irj/portal'
post_parameters = ABAP_FALSE
use_sap_launcher = ABAP_TRUE
business_parameters = PARAMETERS.
Still no joy though. I get a CX_SY_MOVE_CAST_ERROR error when I try to navigate to that page
Hi Johan,
I guess the cast error comes from the webdynpro? In that case you should be able to use the dump analysis in backend system running the webdynpro to find out which cast causes this error. I presume the parameter you are passing to the target Iview is of a different type than the target iview is expecting?
Regards,
John.
Hi John
Thanks again for the reply. I went to st22 after running the code, but no error information was displayed. I also think the parameters I am passing to the iView are incorrect, but I don't know how to find out what the target iView is expecting.
Do you perhaps know where I can find out, or which other transaction I can use to find the error specifics?
Thanks
Johan
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.