on 2016 Aug 04 8:22 AM
Hi all,
In SRM when you are going to create a RFx a popup is displayed to choose the RFx Type you want to create:
Once the RFx type has been choosen then continue to the creation of the document.
Well, in some specific cases I need to skip the popup for choosing the RFx Type. In these cases I need to choose this type dynamically and call the next screen.
I have not much experience working with FPM so I'm a bit lost.
What I've seen in this intermediate popup WD (/SAPSRM/WDC_UI_RFQ_PS) is that once the RFx type has been choosen this type is added to an attribute table in component controller, but I can't see any code to navigate to the next WD...
I've created an overwrite-exit in method WDDOINIT and trying to skip this WD.
I'm trying to fire an outbound plug I've seen in the WD but it's not working, this is my code: (I've copied some code from other methods of this WD to set the rfx process type and so... )
Plug |
---|
ls_all_params-name = /sapsrm/if_ch_wd_url_param_c=>gc_sapsrm_processtype. ls_all_params-value = 'ZG'. * Modify table wd_this->mt_all_url_param from ls_all_params transporting value. APPEND ls_all_params TO wd_comp_controller->mt_all_url_param . wd_comp_controller->ms_nav_param-processtype = 'ZG'. lo_task_factory = /sapsrm/cl_ch_wd_taskcont_fact=>get_instance( ). lo_task_container = lo_task_factory->get_task_container( ). CALL METHOD lo_task_container->set_processtype EXPORTING iv_processtype = 'ZG'. wd_this->fire_o_v_rfx_ps_to_oif_plg( is_nav_param = wd_comp_controller->MS_NAV_PARAM it_all_url_param = wd_comp_controller->mt_all_url_param ). |
I've also tried using this method, but it's not working neither... the popup to select the Rfx Type is always displayed
CALL METHOD /sapsrm/cl_fpm_utility=>do_dynamic_navigation EXPORTING io_view_controller = wd_this->wd_get_api( ) iv_source_vusage_name = 'V_RFQ_PS_USAGE_1' iv_target_embedding_position = 'V_RFQ_PS/DYNVIEW' io_cmp_api = wd_comp_controller->wd_get_api( ). |
Do you know if is possible to do it?
Thanks in advance.
Regards,
Ricardo.
Request clarification before answering.
Solved...
Creating a overwrite-exit in method SKIP_PS_SCREEN of component controller.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ricardo
Can you try as below to code in Webdynpro ?
/SAPSRM/WDC_DODC_QTE_H_PO
View V_PO_POPUP
method WDDOINIT
* Check the Contract Transaction type assigned to Hierarchy
IF lv_hiertempl EQ
/sapsrm/if_pdo_bid_const=>c_ps_hier_templ_mmsrv. "'HIER_SE'.
lt_bo[] = lt_bo_type[].
REFRESH lt_bo_type.
CLEAR lv_hiertempl.
LOOP AT lt_bo INTO ls_bo.
lv_hiertempl =
/sappssrm/cl_ih_cust_prov=>get_template_from_trans_type(
iv_process_type = ls_bo-process_type ).
IF lv_hiertempl EQ
/sapsrm/if_pdo_bid_const=>c_ps_hier_templ_mmsrv. "'HIER_SE'.
APPEND ls_bo TO lt_bo_type.
CLEAR lv_hiertempl.
ENDIF.
ENDLOOP.
===
After the above statement is executed, you can insert your own
enhancement by setting one specific contract type in table lt_bo_type.
Please try putting a breakpoint at a simliar place or you can let me know the webdynpro component name if it it not as above and I can check in my system I do not have the RFx installed currently to be able to check myself.
Regards
Vinita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinita,
Thanks for answer.
I've already managed to set the transaction type I want in WD /SAPSRM/WDC_UI_RFQ_PS.
The problem is I need also to navigate automatically to the next screen for the creation of the RFx and I'm stuck there...
The WD you said for PO is similar... if you managed to navigate to the next screen for the creation of PO without showing this popup for choosing the PO type would be great !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.