cancel
Showing results for 
Search instead for 
Did you mean: 

Exit from ABAP FPM application to anothor WD application (W/O FPM)

Former Member
0 Kudos

Hi Experts,

I am working on a custom ABAP FPM application using roadmap pattern. I have anothor WD application w/o FPM application which calls my second FPM application. I do the navigation from my first application to FPM application using an exit plug in the window of first app. This navigation works fine. Now FPM component has following steps.These views are embed from a WD component ZFPM.

EDIT View - WD Comp ZFPM

REVIEW View - WD Comp ZFPM

CONFIRMATION View - WD Comp ZFPM

I want a button on the EDIT screen and confirmation screen which will lead me to first application (ZCOMP1). For this I created an exit plug in the EDIT window and Confirmation window. But when I debug the application i find that even though control goes to respective exit plugs navigation does not happen. I think thats because of FPM. Can anybody please suggest the posible approach for it or is it just that this navigation is not possible?

Thanks in Advance

Umnag

Edited by: Umang Mathur on May 31, 2011 1:36 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You need to approach this with IF_FPM_NAVIGATION api methods.

[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90f3cfd2-46d0-2b10-b3ab-eabf3452cc50?quicklink=index&overridelayout=true|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90f3cfd2-46d0-2b10-b3ab-eabf3452cc50?quicklink=index&overridelayout=true]

Former Member
0 Kudos

Hi Baskaran,

Thanks for a reply. I have done following things. I added a toolbar button in EDIT step and I have given its FPM ID "EMP_PRF_BACK".

Then on the process event method I have coded as following.

if io_event->mv_event_id = 'BACK_EMP_PRF'.

DATA: lv_launch TYPE FPM_S_LAUNCH_URL.

DATA: lo_navigate_to TYPE REF TO if_fpm_navigate_to.

lo_fpm = cl_fpm_factory=>get_instance( ).

lo_navigate_to = lo_fpm->get_navigate_to( ).

lv_launch-HEADER_TEXT = ''.

lv_launch-URL = 'http://www.google.com/'.

*USE_SUSPEND_RESUME = ''.

*PARAMETER

lo_navigate_to->LAUNCH_URL( is_url_fields = lv_launch ).

endif.

for the test purpose I am trying to open google. It open the link but It opens in a separate window. I want it to open in the same window. Please suggest how to do it.

Thanks in advance

Umang

Former Member
0 Kudos

I am not sure if it is possible to bring it in the same window. I have not seen any api parameter to do that.

Former Member
0 Kudos

Hi Baskaran,

Thanks for a reply. However I manage to open the second WD application in the same window when I pass following parameter. In this way FPM uses exit via suspend & Resume.

lv_launch-USE_SUSPEND_RESUME = 'X'.

But now I have another question. In FPM application I have three screen EDIT , REVIEW and CONFIRMATION. EDIT & REVIEW Screens are main steps. So I am able to add new toolbar button with an event id . Then I code the PROCESS EVENT method reading these event ids. But I can not add any new toolbar element in the confirmation page so PROCESS_EVENT can not triggered. Can anybody tell me how to navigate to another WD application from Confirmation Page.

Thanks in advance

Umang

Former Member
0 Kudos

Using this parameter means that the FPM application is put on the suspend mode, it is not destroyed. It is still in the memory in-active. I am not sure it this is good idea. i leave upto you to decide on that.

I am not sure about navigating From confirmation dialog screen. You can try to raise a application event (UIBB - WDA event ) and in the vent handler method fire a FPM event.

Former Member
0 Kudos

Hi All,

As baskaran said it is not a good idea to use the suspended mode. But I am not sure how to open another wd application from an FPM application with out this mode. Can anybody give his/her valuable input on this.

I want to close an FPM application and navigate to another non FPM application from confirmation page without suspended mode.

Thanks

Umang

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi All,

As baskaran said it is not a good idea to use the suspended mode. But I am not sure how to open another wd application from an FPM application with out this mode. Can anybody give his/her valuable input on this.

I want to close an FPM application and navigate to another non FPM application from confirmation page without suspended mode.

Thanks

Umang

Former Member
0 Kudos

Hello experts,

If anybody can please suggest how to exit an FPM application to another WD component without using suspened mode.

Is there any API for this.

Thanks in advance

Umnag

Former Member
0 Kudos

Hello experts,

If anybody can please suggest how to exit an FPM application to another WD component in the same window without using suspened mode.

Is there any API for this.

Thanks in advance

Umnag