cancel
Showing results for 
Search instead for 
Did you mean: 

FPM - moving to specific tab screen

prabhu_s2
Active Contributor
0 Kudos

Hi

In one of my std web dynpro apps (SRM contract) build on FPM there is a icon which on a click navigates to the contract details screen having many tabs. But every time i click on the icon it takes me to the very first tab but instead i want to navigate to the 6th tab....need advise on how it can be achieved efficiently?

i got the tab seq number from the comp config but it seems more of enhancement to be done for achieving this....any ideas on how to do it effectively please?

Accepted Solutions (1)

Accepted Solutions (1)

Aliaksandr
Active Participant
0 Kudos

Hello Prabhu S,

Check this discussion.

Kind regards, Aliaksandr.

prabhu_s2
Active Contributor
0 Kudos

Thanks Aliaksandr , though the link maybe useful i'm bit struck on how go-ahead with it....

I have a 'Z' comp config with 5 main views (tabs - OIF) and the global setting points to the webdynpro comp /SAPSRM/WDC_FPM_OIF_CONF...here i'm unable to see the app config and hence couldn't go any further on it

appreciate if any help can be offered here

prabhu_s2
Active Contributor
0 Kudos

I think i have the APPCC now, looking into the way of enhancing it.....

prabhu_s2
Active Contributor
0 Kudos

hi

please can you advise on how to capture the tab and change the tabs inorder the default main screen is set to the desired one?

I tried to add the interface to teh class /SAPSRM/CL_FPM_OVRIDE_OIF_CTR but none of the corresponding methods are called when running the WDA

IF_FPM_TABBED

IWCI_IF_FPM_TABBED_CONF_EXIT

Aliaksandr
Active Participant
0 Kudos

Hi Prabhu S,

You wrote that you have OIF application. For switch views (or tabs) in OIF application try to use example below.

       lo_fpm = cl_fpm_factory=>get_instance( ).

       CREATE OBJECT lo_parameter type cl_fpm_parameter.

       lo_parameter->set_value(

         iv_key   = cl_fpm_event=>gc_event_param_view_id

         iv_value = 'REQUIRED_VIEW_ID' ).

       lo_fpm->raise_event_by_id(

         iv_event_id   = cl_fpm_event=>gc_event_view_switch

         io_event_data = lo_parameter ).


Just call this code in appropriate place.

Kind regards, Aliaksandr.

prabhu_s2
Active Contributor
0 Kudos

thanks but can u advise on how to use these interface in the class /SAPSRM/CL_FPM_OVRIDE_OIF_CTR

IF_FPM_TABBED

IWCI_IF_FPM_TABBED_CONF_EXIT

though i used and tried a break-point the process is not stopping in the methods....

prabhu_s2
Active Contributor
0 Kudos

Anyone has some inputs to it pls? this is for a standard WDA application....

Aliaksandr
Active Participant
0 Kudos

Hi Prabhu S,

Component controllers can be used in different component configurations. As I understood in your case you have component controller for FPM_OIF_COMPONENT component configuration. But component controller can be added for FPM_TABBED_UIBB component configuration. I think only in this case relevant methods will be triggered.

Kind regards, Aliaksandr.

rohit3611
Contributor
0 Kudos

Hi Prabhu,


In class --->  /SAPSRM/CL_FPM_OVRIDE_OIF_CTR.


I just debugged and found there is method,


/SAPSRM/IF_FPM_OVRIDE_EVT_OIF~OVERRIDE_EVENT_OIF which is called everytime you leave from initial screen for creation and Every time we display the existing Contract.


There is a CASE mo_fpm_oif->mo_event->mv_event_id, where OVERRIDE_LEAVE_INIT_SCREEN and OVERRIDE_EVENT_START the UIBB READ TABLE lt_uibb INTO ls_uibb INDEX 1.is always set 1.


Please update there based on your requirements, it may help.


Best regards,

Rohit

Answers (0)