Skip to Content
0
Aug 04, 2016 at 07:22 AM

Skip RFx type selection

31 Views

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.

Attachments

1.jpg (131.1 kB)
2.jpg (101.7 kB)