on 06-11-2009 7:52 PM
Hello,
We are in SRM 7.0. We are trying to navigate to an SRM document in display/change mode when the document number is clicked on a custom screen/webdynpro we are creating from the portal.
Any ideas or suggestions on how we can do this? We are trying to use launch_target method of /sapsrm/if_cg_wd_navi_serv, but have not been able to get this to work yet.
Thanks,
Zack
Hi there,
Try to addap this piece of code:
DATA: li_parameters TYPE wdy_key_value_table,
bus_parameter_struc TYPE wdy_key_value.
bus_parameter_struc-key = 'sapsrm_botype'. "#EC NOTEXT
bus_parameter_struc-value = 'BUS2202'.
INSERT bus_parameter_struc INTO TABLE li_parameters.
bus_parameter_struc-key = 'sapsrm_mode'. "#EC NOTEXT
bus_parameter_struc-value = 'DISPLAY'.
INSERT bus_parameter_struc INTO TABLE li_parameters.
bus_parameter_struc-key = 'sapsrm_boid'. "#EC NOTEXT
bus_parameter_struc-value = '4A6D0B72CBAD2B79E10000000A710316'.
INSERT bus_parameter_struc INTO TABLE li_parameters.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_portal_manager TYPE REF TO if_wd_portal_integration.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_portal_manager = lo_api_component->get_portal_manager( ).
CALL METHOD lo_portal_manager->navigate_to_object
EXPORTING
system = 'SAP_SRM'
object_type = 'qte'
* object_value_name = 'objectValue'
* object_value =
operation = 'display_rfx_resp'
business_parameters = li_parameters
* forward_obn_metadata = ABAP_FALSE
use_forwardparameters_of_al = ABAP_TRUE
resolving_mode = 'SOURCE_ROLE'
.
It opens an RFX Response.
Use debugging in other standard links that you want to emulate in order to get the proper parameters for "navigate_to_object" method...
I hope this helps...
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks. We were able to get the navigation to work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.