on 05-31-2011 7:53 PM
Hello all,
I am working on a custom ABAP FPM application using roadmap pattern. I have another WD application w/o FPM application which calls my second FPM application.
1. EDIT View - WD Comp ZFPM
2. REVIEW View - WD Comp ZFPM
3. CONFIRMATION View - WD Comp ZFPM ( This View Contains a back button to my first WD Application)
Now I am using following code in the process event method. Also I set the target url of WD abap in the variable lv_url
data: lo_fpm type ref to if_fpm.
lo_fpm = cl_fpm_factory=>get_instance( ).
lo_navigate_to = lo_fpm->get_navigate_to( ).
lv_launch-HEADER_TEXT = 'My Profile'.
lv_launch-URL = lv_url.
lv_launch-USE_SUSPEND_RESUME = ' X'.
lo_navigate_to->LAUNCH_URL( is_url_fields = lv_launch ).
Now the problem is when I use LAUNCH_URL with USE_SUSPEND_RESUME as initial FPM opens the second application in a separate window. Then I put USE_SUSPEND_RESUME = 'X' and this time it opens in the same window.
I have a back button on my confirmation page where I navigate to my first application using the code above. But When I again go back to FPM application it directly opens third view i.e confirmation instead of EDIT. Thats beacuse FPM state is suspended when last time I navigated to my first WD Application.
Is there any other way that without using suspend method I open the application in the same window or when I get back to FPM application second time it opens first page (EDIT) instead of last page (Confirmation Page).
Thanks in Advance
Umang
Thanks all,
I did it by placing following code in the process event method.
IF io_event->mv_event_id = 'FPM_RESUME'.
*data lo_fpm type ref to if_fpm.
lo_fpm = cl_fpm_factory=>get_instance( ).
lo_fpm->raise_event_by_id( IF_FPM_CONSTANTS=>GC_EVENT-LEAVE_INITIAL_SCREEN ).
ENDIF.
Umang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.