Howto replace an embedded FPM-Instance within a Web DynPro Application?

Hi,
I have to build a Web DynPro application that displays an Navigation menu on the left side. On the right side within a UIViewContainer an embedded FPM Instance should be displayed depending on which entry I pressed on the Navigation menu. (Similiar to the Cockpit)
For Test purposes I have 2 buttons in the navigation menu. One to add the fpm and one to remove the fpm.
When I start the WD Application I first hit the addfpm button. And a new FPM Application is displayed within the UIViewElementContainer. When I hit the delfpm button the FPM will disappear. When I will the addfpm button again I get
a dump[1]
I have absolutely no idea why I get this dump.
Do I have to reset the FPM application remove removing it? Or is it possible to load a new FPM configuration in the FPM without removing it first?
Here are the Methods that I use to remove/add the FPM-Instance:
method ONACTIONADDFPM .
  DATA: L_VIEW_CONTROLLER_API TYPE REF TO IF_WD_VIEW_CONTROLLER.
  DATA: L_COMPONENT_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
  DATA: lf_conf_key TYPE WDY_CONFIG_KEY.
  L_VIEW_CONTROLLER_API = wd_this->WD_GET_API( ).
  "Wenn die Komponente-Usage noch nicht vorhanden ist dann erstelle Sie:
  L_COMPONENT_USAGE = wd_this->WD_CPUSE_FPM( ).
  IF L_COMPONENT_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
    lf_conf_key-CONFIG_ID = '/PLMU/WDC_MAT_OIF_CFG'.
    L_COMPONENT_USAGE->CREATE_COMPONENT( EXPORTING COMPONENT_NAME = 'FPM_OIF_COMPONENT'
                                                   CONFIGURATION_ID = lf_conf_key ).
    "Komponente mit der View verknüpfen:
    L_VIEW_CONTROLLER_API->PREPARE_DYNAMIC_NAVIGATION(
      SOURCE_WINDOW_NAME = 'WINDOW'
      SOURCE_VUSAGE_NAME = 'MAIN_USAGE_0' "MAIN_USAGE1/UIVIEW_VCA_1'
      SOURCE_PLUG_NAME   = 'TO_FPM'
      TARGET_COMPONENT_NAME = 'FPM_OIF_COMPONENT'
      TARGET_COMPONENT_USAGE = 'FPM'
      TARGET_VIEW_NAME = 'FPM_WINDOW'
      TARGET_PLUG_NAME = 'DEFAULT'
      TARGET_EMBEDDING_POSITION = 'MAIN/FPMVIEW' "'MAIN_USAGE_0/UIVIEW_VCA_1'
    WD_THIS->FIRE_TO_FPM_PLG( ).
  ENDIF.
endmethod.
And then remove the FPM using this button action:
method ONACTIONDELFPM .
  DATA: L_VIEW_CONTROLLER_API TYPE REF TO IF_WD_VIEW_CONTROLLER.
  DATA: L_COMPONENT_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
  L_VIEW_CONTROLLER_API = wd_this->WD_GET_API( ).
  "Wenn die Komponente-Usage vorhanden ist dann lösche sie:
  L_COMPONENT_USAGE = wd_this->WD_CPUSE_FPM( ).
  DATA: lo_event TYPE REF TO cl_fpm_event.
  lo_event = cl_fpm_event=>create_by_id( iv_event_id   = cl_fpm_event=>GC_EVENT_CLOSE  ).
  DATA: iwci_fpm TYPE REF TO IWCI_FPM_OIF_COMPONENT.
  iwci_fpm = wd_this->WD_CPIFC_FPM( ).
  CALL METHOD IWCI_FPM->CLOSE_DIALOG
    EXPORTING
      IO_EVENT        =  lo_event
      IV_EVENT_FAILED =  ABAP_FALSE
  IF L_COMPONENT_USAGE->HAS_ACTIVE_COMPONENT( ) IS NOT INITIAL.
    L_COMPONENT_USAGE->DELETE_COMPONENT( ).
    "FPM Ref holen und Exit-Event schicken:
    DATA: lo_fpm TYPE REF TO IF_FPM.
    lo_fpm = cl_fpm_factory=>get_instance( ).
   CHECK NOT lo_fpm IS INITIAL.
   DATA: lf_event        TYPE FPM_EVENT_ID.
   lf_event = cl_fpm_event=>GC_EVENT_CLOSE.
   lo_fpm->RAISE_EVENT_BY_ID( lf_event ).
  ENDIF.
endmethod.
The dump  says:
Access via 'NULL' object reference not possible.
The ABAP call hierarchy was:
Method: /PLMU/IWCI_WDI_FRW_OIF~OVERRIDE_EVENT of program /1BCWDY/0O2TST5VUWTCOBML1BE7==CP
Method: /PLMU/IF_FRW_CALLBACK_PROXY~OVERRIDE_EVENT of program /PLMU/CL_FRW_F_CALLBACK_PROXY=CP
Method: OVERRIDE_EVENT of program /PLMU/CL_FRW_CALLBACK_PROXY===CP
Method: OVERRIDE_EVENT_OIF of program /PLMU/CL_FRW_APPL_CNTRL_ASSISTCP
Method: OVERRIDE_EVENT_OIF of program /1BCWDY/0O2TST5VUWTCNOS8226Y==CP
Method: IWCI_IF_FPM_OIF_CONF_EXIT~OVERRIDE_EVENT_OIF of program /1BCWDY/0O2TST5VUWTCNOS8226Y==CP
Method: GET_UIBBS_FOR_EVENT of program /1BCWDY/0O2TST5VUWTCNAR83UZE==CP
Method: IWCI_IF_FPM_FLOORPLAN_COMP~GET_UIBBS_FOR_EVENT of program /1BCWDY/0O2TST5VUWTCNAR83UZE==CP
Method: IF_FPM_FLOORPLAN~GET_UIBBS_FOR_EVENT of program CL_FPM_OIF_INTERNAL===========CP
Method: GET_NEXT_UIBBS of program CL_FPM========================CP
Thanks
Sebastian

Chris yes you are right, there is some special logic in the nav app,
that I can't do with NWBC.
If I would use a Portal to display the FPM within an Iframe.
What happends when I replace the FPM in the Iframe with a new
FPM/URl. Will the old FPM in the Iframe just disappear or will
the FPM shutdown and release all the acquired locks?
I already did a simliar thing where I just used URLs
to display an FPM application within an IView/IFrame.
But when I replace the URL of the IView/IFrame with a new URL/FPM,
the old FPM only just disappered but no locks where released.
So displaying the same FPM again, gives me a message that the Object is already
locked.
Thanks
Sebastian

Similar Messages

  • Need info on Accessing portal services within a Web Dynpro application

    Hi,
    I need information on Accessing portal services within a Web Dynpro application.I want to explore this topic.Can anyone give useful links?
    Thanks in advance.
    Rajani N

    Hi
    how to reference  a portal service with web dyn pro ?
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/how%20to/how%20to%20access%20a%20portal%20service%20within%20a%20web%20dynpro%20java%20application.pdf
    http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/portal/WDPortalUtils.html
    Best Regards
    Jakub Krecicki

  • Show web page within abap web dynpro

    Hi,
    I am looking for a way to show a web page (like www.google.com for instance) inside an abap web dynpro application.
    Any suggestions would be very welcome.
    Regards,
    Bert

    I dont think you can open a Web Browser within a Browser.
    But you can call the URL in a new window using the following code;
    data lo_window_manager type ref to if_wd_window_manager.
    data lo_api_component  type ref to if_wd_component.
    data lo_window         type ref to if_wd_window.lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW
      EXPORTING
        URL            = 'http://www.google.co.in/'
        MODAL          = ABAP_FALSE
        HAS_MENUBAR    = ABAP_TRUE
        IS_RESIZABLE   = ABAP_TRUE
        HAS_SCROLLBARS = ABAP_TRUE
        HAS_STATUSBAR  = ABAP_TRUE
        HAS_TOOLBAR    = ABAP_TRUE
        HAS_LOCATION   = ABAP_TRUE
      RECEIVING
        WINDOW         = lo_window.lo_window->open( ).

  • FPM Form Scripting - How to call a web dynpro application as pop up

    Hi All,
    I want to call a web dynpro application as a pop up from FPM form scripting.
    Like click on button -Maintain Approval Routing in a FPM form i want to open a web dynpro pop up..
    Thanks In Advance.

    Refer to the post How to show pop up’s in WDA HCMPF by Yugandhar Reddy - on some hints
    Hope this helps.
    Regards,
    Sahir.

  • Problem with HowTo guide - Use the BI Java SDK in a Web Dynpro Application

    Hello,
    I am following the HowTo guide - Use the BI Java SDK in a Web Dynpro Application
    at <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e49be590-0201-0010-0c83-fc20e5da124f">this link</a>.
    I have configured the connector on the WAS as needed.
    The problem is that when I run the application I receive an Unauthorized error on the connector URL.
    If I open this URL on a browser I receive a pop-up for UID and PWD and when I enter the same UID and PWD I used to configure the connector I am able to login and see the WSDL.
    Any ideas?

    I've never tried using BI in WebDynpro !!!
    But i foond one posting on the connection problem https://forums.sdn.sap.com/click.jspa?searchID=955524&messageID=2133396
    Regards,Anilkumar

  • Web Dynpro Application connecting to incorrect R/3 instance

    Hi,
    We have newly configured EP.
    We are facing strange problem with web dynpro applications.
    They are accessing data from incorrect instance of R/3 system,i.e, if correct system instance is x , they are accessing data from y instance, on the same R/3 server.
    We have checked JCO connections. SID in JCO connection is of the correct instance.
    We have also checked SLD, but are not able to find out the root cause of the problem.
    Are there any other configuration, settings required?Are there any settings required on R/3 side?
    Can we some how track entire process from JCO to R/3?
    What happens after fetching server details from SLD? Is there any other step before connecting to R/3?
    Can anyone help on this?
    Thanks in advance,
    Apurva

    Hi,
    I have checked alias name (System ID) used in JCO connection.It is correct.
    I have also checked System ID in SLD.
    Is there any other configuration check required?
    Thanks,
    Apurva

  • Short dump when trying to open FPM for Web Dynpro Application

    Hi,
    I am receiving a short dump while trying to open a Web Dynpro Application in FPM.  I go to SE80 and open the Web Dynpro component 'FPM_OIF_COMPONENT'.  I then choose the application '/sapsrm/wda_l_fpm_oif'.  I then click Web Dynpro Application -> Test -> Execute in Administration Mode.  A new IE browser is opened and I then receive a short dump.  The name of the short dump runtime error is 'OBJECTS_OBJREF_NOT_ASSIGNED_NO' and the exception is 'CX_SY_REF_IS_INITIAL'.
    I have not used FPM before.  I would like to use it to remove the 'Close' button from this application.  Do I need to initialize FPM before using it?
    Please help.
    Thanks,
    Jeff

    >
    Chinnu wrote:
    > Hello Jeffery Andersen,
    >
    > If I understand correctly, you are trying to preview FPM_OIF_COMPONENT.
    >
    > I think this component can not be executed as it just is a template for creating a FPM applications. In other words, it is an interface that can be used to created a WD ABAP application from work bench.
    >
    > This [Floor Plan Manager - ABAP|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/90f3cfd2-46d0-2b10-b3ab-eabf3452cc50&overridelayout=true] can help you understand better.
    >
    > Best regards,
    > Chinnu
    Hi Chinnu,
    Your understanding is not correct, he is trying to execute the application /sapsrm/wda_l_fpm_oif'.
    Hallo Jeff,
    everyone have suggested lots of possibilities. Nothing works for you. I would suggest the following.
    Go and execute any other FPM application which uses FPM_OIF_COMPONENT,does it work ?
    If it works then you can narrow down that /sapsrm/wda_l_fpm_oif is not working and you can raise a OSS ticket.
    If it is not working then you have to see if you have right BASIS versions to use FPM.
    Edited by: Baskaran Senthivel on Dec 6, 2010 1:09 PM

  • Restart dialog instances after activating web dynpro abap services (SICF)

    Has anyone encountered a problem where you have to restart the ABAP dialog instances after activating a web dynpro abap service in SICF?
    We're implementing some of the HR Admin, ESS, and MSS ABAP Web Dynpro applications.  What is happening is that when we access these web dynpro abap applications the browser would go into an infinite loop.  This happens only when we have an abap central instance and one or more abap dialog instances.  It doesn't happen when we have just an abap central instance.  The way we fixed it is by restarting just the dialog instances (the central instance was left running), but this isn't an acceptable solution for the production environment.  Is there something else we have to do after activating the web dynpro abap service in SICF?  We tried clearing the cache, but that doesn't work.
    The landscape where this is happening is as follows:
    1. SAP Portal is being used to present the ABAP web dynpro app.  Portal is NW 7.0 SP15
    2. There is a web dispatcher for both the SAP Portal
    3. There is a web dispatcher for the ECC ABAP system.  ECC ABAP system is on NW Basis 7.0 SP14.
    Thanks.
    Regards,
    Mel Calucin
    SAP Portal Architect

    I actually found the same note 30 minutes ago.  I gaveyou full credit though. 
    Thanks!

  • Calling a Portal Service from within a Web Dynpro DC

    Hello,
    I am trying to call a Portal Service from within a Web Dynpro development component without sucess.
    Can anyone give me some hints on the necessary steps in order to accomplish this task?
    Thanks
    Diz

    Hi Diz,
    I tried doing the same thing by following the steps as mentioned by you. Just to re iterate,
    1. Created a DC "Portal Application Standalone" project by the name myservice.
    2. Created a portal service inside myservice by the ame AmitsService.
    3. Exposed IAmitsService.class in the public part.
    4 Build and deployed the DC on server and tested it through an abstract portal component and it worked FINE !!
    Now..
    5. Created anoter DC of type WebDynPro
    6. Added SAP_JTECHS -> epbc.prtapi._api as a "Used DC" with dependency build time and runtime
    7. Specified the sharing reference in the properties as PORTAL:sap.com/myservice
    8. Tried to reference the service using the following code..
    IAmitsService portalservice=(IAmitsService)WDPortalUtils.getServiceReference(IAmitsService.KEY);
    9.Build and deployed the DC.
    10. When I run the application I am getting the following error
    Processing HTTP request to servlet [dispatcher] finished with error.
    The error is: com.sap.engine.frame.core.load.SAPNoClassDefFoundError: com/sapportals/portal/prt/service/IService
    Exception id: [000D6008418B005C0000002C00000D200004163CE6719E1D]
    PLEASE ADVISE

  • Access Portal Parameter from within ABAP-Web Dynpro

    Hi all,
    I have an ABAP Web Dynpro which is executed via an Web Dynpro iView in Enterprise Portal.
    How can I read the UserID of the portal user within the web dynpro? (the portal user will not be the user who called the Web Dynpro)
    Any suggestions on this?
    Thanks in advance.
    Kind Regards,
    Martina
    ~~~~~~~~~~~~~~~~
    ABAP Web Dynpro developed within CRM 5.0 system
    Enterprise Portal 6.0

    Hi Diz,
    I tried doing the same thing by following the steps as mentioned by you. Just to re iterate,
    1. Created a DC "Portal Application Standalone" project by the name myservice.
    2. Created a portal service inside myservice by the ame AmitsService.
    3. Exposed IAmitsService.class in the public part.
    4 Build and deployed the DC on server and tested it through an abstract portal component and it worked FINE !!
    Now..
    5. Created anoter DC of type WebDynPro
    6. Added SAP_JTECHS -> epbc.prtapi._api as a "Used DC" with dependency build time and runtime
    7. Specified the sharing reference in the properties as PORTAL:sap.com/myservice
    8. Tried to reference the service using the following code..
    IAmitsService portalservice=(IAmitsService)WDPortalUtils.getServiceReference(IAmitsService.KEY);
    9.Build and deployed the DC.
    10. When I run the application I am getting the following error
    Processing HTTP request to servlet [dispatcher] finished with error.
    The error is: com.sap.engine.frame.core.load.SAPNoClassDefFoundError: com/sapportals/portal/prt/service/IService
    Exception id: [000D6008418B005C0000002C00000D200004163CE6719E1D]
    PLEASE ADVISE

  • Replacing web dynpro application URL

    Hi Experts,
            I have created a web dynpro application with 2 views. view 1 has a button when I click on it it opens view2 in "external window". To do this I am getting absolute URL using cl_wd_utilities=>construct_wd_url and pass this URL into lr_window_manager->create_external_window and everything works great. Now, I integrated my web dynpro into MSS portal iview. When I click the button on view1 it tries to go to different URL (We have single sign on ) instead of actual URL which is "HTTP://<host>.<domain>.<extension>.<port>/sap/bc/webdynpro/sap/mycomponent". In portal the section "HTTP://<host>.<domain>.<extension>.<port>/" is getting replaced by "https://dev.xxxxx.com" and due to this a blank page opens up because this URL is not found.
    Is there any way I can get actual URL of web dynpro application? I have done plenty of reserach but could not resolve this. Please let me know if anyone has any information.
    Thanks.
    Mithun

    Mithun Dha wrote:
    Hi Experts,
    >         I have created a web dynpro application with 2 views. view 1 has a button when I click on it it opens view2 in "external window". To do this I am getting absolute URL using cl_wd_utilities=>construct_wd_url and pass this URL into lr_window_manager->create_external_window and everything works great. Now, I integrated my web dynpro into MSS portal iview. When I click the button on view1 it tries to go to different URL (We have single sign on ) instead of actual URL which is "HTTP://<host>.<domain>.<extension>.<port>/sap/bc/webdynpro/sap/mycomponent". In portal the section "HTTP://<host>.<domain>.<extension>.<port>/" is getting replaced by "https://dev.xxxxx.com" and due to this a blank page opens up because this URL is not found.
    > Is there any way I can get actual URL of web dynpro application? I have done plenty of reserach but could not resolve this. Please let me know if anyone has any information.
    >
    > Thanks.
    > Mithun
    I am not Sure what is going wrong here . How can it be different url ? You may have to check THE sso configuration and the system defintion in the portal. How ever you cannot see the actual url in THE portal url.
    Is That Correct That your wda application with view1 is loding correctly but THE opening external window is not going good? In that case you can try to change THE generated url from cl_wd_utilities=>construct_wd_url  to https protocol.

  • Embedding Java editor within the web page

    Hi,
    I am looking for a Java editor. The editor should easily be embedded in the web page, for the user to test the program and view the result. If syntax error occurs, the line of the error is shown colored as shown as in Eclipse and Netbeans. Is there any package for implementing this?
    Thanks
    Vishnu
    Edited by: vishnugr on Jul 25, 2009 5:26 AM

    Take a look at the code I pasted on this thread, it will work with HTML5 / mobile and fall back to flash compatibility for older browsers. It plays perfectly fine (as apposed to what other people say on the thread). You have the option of looping and doing a bunch of things, has worked very well for me in the past for high trafficed sites (100,000+ unique's a day)
    http://forums.adobe.com/message/5472226#5472226

  • Call ESS FPM CATS Working time application from non FPM web dynpro application on click of button

    Hi,
    My requirement is to launch ESS Working time application HRESS_AC_CATS_1 from custom web dynpro application.
    ESS CATS working time application is configured in LPD_CUST launchpad.
    I tried using method  cl_hr_navigation_services=>navigate in my custom web dynpro but it did not work.
    Regards,
    Ibrahim

    In case you want to use Launchpad, you can use ABAP class CL_APB_LAUNCHPAD_API. If choose not to use Launchpad, you can use method CONSTRUCT_WD_URL of ABAP class CL_WD_UTILITIES to generate the URL. Specify Web Dynpro application and Web Dynpro Configuration as parameter. Finally create an external window using method CREATE_EXTERNAL_WINDOW that points to that URL.

  • Embedding SQL*LOADER within Pro-C

    Hello,
    I have searched this forum, and I cannot find any supporting evidence that embedding SQLLOADER functionality within a Pro-C application to manage a permanent Oracle table is possible. The only similar methodology that I can identify is to define "External" tables using the "Organize External" directive.
    I am using Oracle 9i with Pro-C version 9.2.0.7.0. Unless I have missed something, I will proceed with either a system call-out to SQLLOADER, or create a segment which will mimic the intended actions of "read flatfile data/format data/Insert into Table".
    Any constructive assistance would be appreciated.
    Thank You

    I issued FULL DB EXPORT / IMPORT privilege to the related Oracle user account and it works now.

  • Creating Room Instance from Web Dynpro Development Component

    Hi Experts,
    I would like to instantiate a Room Instance based on a pre-created Room Template from within a Web Dynpro Development Component. I had a look at the <i>Collaboration Rooms API Cookbook</i>, which provides all the code examples I need, but which asks that I import the following classes:
    import com.sap.ip.collaboration.room.api.IRooms;
    import com.sapportals.portal.prt.runtime.PortalRuntime;
    Problem is I don't have and can't find those libraries. I am developing in a track on the DTR and all solutions that I have found to the problems thus far require me to import a local jar file. Surely I should rather import a Software Component with the required library into my project? Does anyone know what the name of this Software Component is or what the correct way is to do this?
    Also, a somewhat related problem. If I want to create a Room Instance from an Application Service, how would I go about doing this. Unlike with a Web Dynpro project, I can't setup the build path or Used DCs, so how will I gain access to that library?
    Thank you,
    JP

    Beevin, thanks for the reply.
    I am aware that adding the jars manually to the build path is a possibility, but isn't this a local only solution? What I mean is, lets say I do this and check the code into the DTR - surely the code won't compile on my co-workers' machines as the paths to the jar files are different for them? Unless you mean to somehow add the jar file from the server, in which case could you please elaborate on how to do this?
    This still doesn't solve the application service problem, does it? How can I access those library from the CAF DC?
    Thanks

Maybe you are looking for