cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger floor plan tab by user clicking button?

Former Member
0 Kudos

Hi Experts,

I'm using floor plan OIF, I need to change tab the tab by user clicking button Create or Edit:

Please see example like below :

When I click Create button the Member tab will show first like below:

When I click Edit button the Contact Group Data will show first like below:

Thanks,

With regards,

Keu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can try by creating two variants in Component configuration.

In one variant 'Contact Group Data' will be in the 1st tab and

in the 2nd variant 'Members' will be in the 1st tab.

On click of the FPM buttons you can set variant accordingly.

Former Member
0 Kudos

Hi Hitesh,

Could give for more detail about your answer?

Thanks advance.

Former Member
0 Kudos

Hi,

Is the part regarding creating 2 variants clear?

Im explaing about setting variant now.

Implement interface in your wd comp 'IF_FPM_OIF_CONF_EXIT'.

After implementing this method you will find a method 'OVERRIDE_EVENT_OIF' in component controller.

In this method check the value for 'io_oif->mo_event->MV_EVENT_ID'

If it is having the event id associated with create button then call method 'SET_VARIANT' of 'IO_OIF' and pass the value for 'IV_VARIANT_ID' as the 1st variant you created.

If it is having the event id associated with edit button then call method 'SET_VARIANT' of 'IO_OIF' and pass the value for 'IV_VARIANT_ID' as the 2nd variant.

After this go into component configuration of you application and in the 'FloorPlan Settings' select 'Application Controller' and enter the name of WD comp in which you implemented interface 'IF_FPM_OIF_CONF_EXIT'.

Let me know if its not clear.

Drawback in this solution is creating 2 variants.

I was trying if there is any better way out.

Lets see if we get any more solutions from community members,if I get anything will let you know.

Former Member
0 Kudos

Hi Hitesh,

Do you have any document with your answer? I seem not clear about this floor plan too.

Thanks advance.

Former Member
0 Kudos

Hi Keu,

Please check following link, I hope it helpful for you.

http://scn.sap.com/thread/842645

Regards,

Starone.

Former Member
0 Kudos

Thanks for all.

Keu.

Answers (1)

Answers (1)

Former Member
0 Kudos

Use the CHANGE_TAB_NAME event, see the FPM Developer's Guide for details.