Create Wire Model in webdynpro FPM.

Hi Friends,
Please , Help Me How to create Wire Model by Webdynpro FPM. Please Give me Step by Step  process.
i have done Form, list, search and Tree but i am not geting how to do Wire Model. So Please Give me Step by step Review to create Wire Model with FPM.
it's Urgent.
Thanks.
Pappu  Mehta
Edited by: Pappu Kumar Mehta on Nov 18, 2011 3:38 AM

Wire Model
The wire model can be used to create running FPM application by pure configuration or at least with minimal coding effort. The runtime interdependencies between UIBBs are defined by configuration entities called “wires” which are based on reusable “connector” classes implementing the dependency semantics. The primary use cases for the wire model are object models with generic access interfaces (for example, ESF, BOPF, or BOL).
A wire controls the runtime interdependencies between two UIBBs; that is, they determine the data content of the target UIBB depending on user interaction changing the “outport” of the source UIBB. Outports can be of type lead selection, selection or collection. For example, the execution of a search on a Search GUIBB will change its collection outport and may therefore change the data content of a result list displayed in a separate List GUIBB. Similarly, changing the lead selection in a list of sales orders may change the data content of another list displaying the associated sales order items.
In order to be part of a wire model, a UIBB needs to implement a certain Web Dynpro interface which in turn provides a feeder model implementation. The FPM GUIBBs are automatically integrated if their feeder classes implement the feeder model interface.
Application areas or object models define their own namespaces for which their connector classes, feeder model classes can be reused. Moreover, they typically need to provide a transaction handler class which manages transaction events like save, modify or check and global message handling.
Wires are defined on the level of the floorplan configuration. For each model UIBB contained in the floorplan configuration, a source UIBB with specified outport can be defined. Furthermore, a connector class and, potentially, connector parameters must be maintained.
If the floorplan contains composite components (tabbed components), the model UIBBs contained in the tabbed components can also be wired. However, in order to provide better reusability of composite components, it is also possible to define intrinsic wiring for tabbed components. A tabbed component can define a model UIBB as a “wire plug” (this is usually a master UIBB), which serves as an entry point for the wiring of the tabbed component from the enveloping floorplan component. If a wire plug is configured for a tabbed UIBB, only the wire plug UIBB can be wired from outside.
Transaction Handler class
    The transaction interface provides methods for handling global and transactional events. In the FPM configuration editor, one transaction handler implementation can be assigned on the level of the wire model. However, it is not mandatory to specify. But it can be used for wring some specific logic for Application level events.
Interface “IF_FPM_WIRE_MODEL_TRANSACTION” is implemented for creating transaction handle class.
Method
Method description
START
It is called at the starting of FPM application. It provides 3 things “FPM Massage manger instance”, “Property bag of FPM Application”, and “Runtime information of FPM”.  Here, we can also specify application commit capability.
AFTER_FLUSH
This method is called after FLUSH has been called for all current UIBBs. It can be used to flush buffers.
AFTER_PROCESS_EVENT
This method is called after PROCESS_EVENT has been called for all current UIBBs. It can be used for handling transactional events for example SAVE or CHECK. Moreover, it can be used to collect messages which here not handled inside UIBBs and to forward them to the FPM message handler.
AFTER_PROCESS_BEFORE_OUTPUT
This method is called after PBO has been called for all current UIBBs. It can be used to collect messages at the latest possible point in time before screen output.
AFTER_NEEDS_CONFIRMATION
This method is called after NEEDS_CONFIRMATION has been called for all UIBBs. It can be used to analyze and add confirmation requests.
IS_DIRTY
This method can be used to indicate a dirty state for the work protection mode.
Connector Class
    The “IF_FPM_CONNECTOR” connector interface comprises an interface, “IF_FPM_CONNECTOR_DEF”, defining the access by the FPM framework and an interface “IF_FPM_CONNECTOR_RUN” for runtime access by the application feeder model.
The definition interface possesses a static attribute, “SV_NAMESPACE”, which should be filled with the namespace (ex. ‘FPM_DEMO’ or ‘BOL’ or user specific) in the class constructor of a connector implementation (for example in a common superclass).
Method for “IF_FPM_CONNECTOR_DEF”
    Method
Method description
GET_PARAMETER_LIST
Connector classes can be parameterized to flexibly control their runtime behavior. The parameter values are maintained for the wires in the FPM configuration editor. A parameter is defined by a name, its data type and a descriptive text.
INITIALIZE
With this method the connector is initialized with the parameter values. This method is called by the FPM runtime upon UIBB instantiation.
GET_PARAMETER_VALUE_SET
With this method, a connector implementation can provide a value set for each parameter. For example, in an object model a parameter may carry the association name. For a wire between specified UIBBs, the method may provide a list of all associations between the source and target business object node.
SET_INPUT
Receives an object reference carrying the actual data of the connected outport. This method is called before the UIBB‟s PBO by the FPM runtime.
Method for “IF_FPM_CONNECTOR_RUN”
    Method
Method description
GET_OUTPUT
Returns an object reference carrying the actual data to be displayed by a UIBB. This method can be called by the UIBB at PBO for example in the GET_DATA method of a feeder class.
IS_CREATE_ALLOWED
Returns a Boolean indicator whether entity creation is allowed. This method can be called by the UIBB at PBO to dynamically control the activation of create buttons for example to maintain the action usage parameter in the GET_DATA method of a feeder class.
CREATE_ENTITY
Creates and returns a data entity which can be arbitrarily typed. This method can be called by an action handler of the UIBB for example in the PROCESS_EVENT method of a feeder class.
There are total seven methods in connector interface “IF_FPM_CONNECTOR” that should be implemented in connector class. We should also create class constructor for setting “Namespace”. “SET_OUTPUT” and “GET_OUTPUT” is bridge between FPM components, so these methods should be implemented properly.
Wire for Free UIBBs
    Wire model is implemented on Web Dynpro component by implementing “IF_FPM_UIBB_MODEL” Web Dynpro interface. It contains only one method “GET_MODEL_API” which is used to set “FPM Feeder Model” for Free GUIBBs. It contains only one parameter “RO_FEEDER_MODEL”. So, we have to create a FPM Feeder Model class and assign to that parameter.
    FPM Feeder Model Class – Interface “IF_FPM_FEEDER_MODEL” is implemented for creating Feeder Model Class.
    Method for “IF_FPM_ FEEDER_MODEL”
    Method
Method description
GET_NAMESPACE
Returns the namespace of the underlying application area. Method is called at design time.
SET_CONNECTOR
Called upon instantiation of a UIBB. It hands over the connector (reference to IF_FPM_CONNECTOR_RUN) which can be accessed for data retrieval at PBO.
GET_INPORT_KEY
Returns a reference to an object key which characterizes the meta data type expected at the import (for example the business object node). Method is called at design time.
GET_OUTPORTS
Provides a table of outports comprising the object key, the port type an identifier and a descriptive text. Method is called at design time.
GET_OUTPORT_DATA
Returns an object reference carrying the actual data identifier for a certain port. Method is called at runtime.
        Assistance class can also be used as Feeder Model Class and reference “WD_ASSIT” can used as Feeder model instance.
Ex:    METHOD get_model_api .
  ro_feeder_model = wd_assist.
ENDMETHOD.
Wire for GUIBBs
    Nothing special we need to do that.  Interface “IF_FPM_FEEDER_MODEL” is also implemented on feeder class for getting port support. We need to set port manually using structure “IF_FPM_FEEDER_MODEL=>CS_PORT_TYPE”. It contains three constants “COLLECTION”, “SELECTION” and “LEAD_SELECTION”. It should be properly configured.
Source Codes:
Code for Transaction handler class:
class ZCL_MY_TRAN_HANDLER definition
  public
  create public .
public section.
*"* public components of class ZCL_MY_TRAN_HANDLER
*"* do not include other source files here!!!
  interfaces IF_FPM_WIRE_MODEL_TRANSACTION .
protected section.
*"* protected components of class ZCL_MY_TRAN_HANDLER
*"* do not include other source files here!!!
private section.
*"* private components of class ZCL_MY_TRAN_HANDLER
*"* do not include other source files here!!!
  data MO_MSG_MAN type ref to IF_FPM_MESSAGE_MANAGER .
ENDCLASS.
CLASS ZCL_MY_TRAN_HANDLER IMPLEMENTATION.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_MY_TRAN_HANDLER->IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_FLUSH
* +-------------------------------------------------------------------------------------------------+
* +--------------------------------------------------------------------------------------</SIGNATURE>
method IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_FLUSH.
  return.
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_MY_TRAN_HANDLER->IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_NEEDS_CONFIRMATION
* +-------------------------------------------------------------------------------------------------+
* | [--->] IO_EVENT                       TYPE REF TO CL_FPM_EVENT
* | [--->] IT_UIBBS                       TYPE        FPM_T_UIBB_COMPONENTS
* | [<-->] CT_CONFIRMATION_REQUESTS       TYPE        FPM_T_CONFIRMATION_REQUESTS
* +--------------------------------------------------------------------------------------</SIGNATURE>
METHOD if_fpm_wire_model_transaction~after_needs_confirmation.
*----- which event
  CASE io_event->mv_event_id.
*----- start over
    WHEN if_fpm_constants=>gc_event-start_over.
*----- raise confirmation request if state is dirty
      CHECK if_fpm_wire_model_transaction~is_dirty( ) = abap_true.
      APPEND cl_fpm_confirmation_request=>go_data_loss TO ct_confirmation_requests.
  ENDCASE.
ENDMETHOD.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_MY_TRAN_HANDLER->IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_PROCESS_BEFORE_OUTPUT
* +-------------------------------------------------------------------------------------------------+
* +--------------------------------------------------------------------------------------</SIGNATURE>
method IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_PROCESS_BEFORE_OUTPUT.
  RETURN.
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_MY_TRAN_HANDLER->IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_PROCESS_EVENT
* +-------------------------------------------------------------------------------------------------+
* | [--->] IO_EVENT                       TYPE REF TO CL_FPM_EVENT
* | [<-()] RV_RESULT                      TYPE        FPM_EVENT_RESULT
* +--------------------------------------------------------------------------------------</SIGNATURE>
method IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_PROCESS_EVENT.
  CASE io_event->mv_event_id.
    WHEN ''.
    WHEN ''.
    WHEN OTHERS.
  ENDCASE.
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_MY_TRAN_HANDLER->IF_FPM_WIRE_MODEL_TRANSACTION~IS_DIRTY
* +-------------------------------------------------------------------------------------------------+
* | [<-()] RV_IS_DIRTY                    TYPE        BOOLE_D
* +--------------------------------------------------------------------------------------</SIGNATURE>
METHOD if_fpm_wire_model_transaction~is_dirty.
  rv_is_dirty = cl_fpm_wire_model_col_factory=>work_protection_is_dirty( )

Similar Messages

  • Java.exe Error while creating the Model in Webdynpro

    Hi,
    I am creating the Model in Webdynpro Project. I have given the SAP r3 user id Passord details. after giving these details and clicking on next, it is giving an Error as " *Javaw.exe has  got  some problem needs to close. sorry for the inconvenence*". NWDS is getting closed if I click on Ok in the Pop-up window message.
    I did re install the  NWDS as well. but still the  problem is persisting. and not able to proceed further.appreciate the quick resolution .
    Rajyalakshmi
    09739066796

    hi
    This error occurs mainly due to the reason that particular plugin is not there in the NWDS.
    So please try to reinstall the NWDS or try tracing out whether that particular plugin is there or not.
    Thank,
    kris

  • Getting the following error while creating the model for webdynpro app.

    Plugin Name: Web Dynpro Model Editor Services
    Plugin ID  : com.sap.ide.webdynpro.service.modeleditor
    Class      :ap.ide.webdynpro.modeleditor.wizards.model.              creation.ModelDialog
    Method     : nextPressed
    Exception  : org.eclipse.swt.SWTException: Failed to  execute runnable (java.lang.NoClassDefFoundError)
    This is the error i am getting while creating the model for the webdynpro application. Can some one help ?
    Thanks & Regards
    Lalith

    hi
    This error occurs mainly due to the reason that particular plugin is not there in the NWDS.
    So please try to reinstall the NWDS or try tracing out whether that particular plugin is there or not.
    Thank,
    kris

  • Create a model for WebDynpro

    Hello everybody:
    I have created the navigation view for an application, with all the fields and stuff. However, I do need Database access (it's some kind of a school management system) for normal things such as login, etc.
    I've learned that for linking a WebDynpro app and database (model) EJB are the way to go. However I find it way to "square", after reading the "Car Rental" tutorial. I doesn't leave much room for changes and it requires the web service to be perfect and then be imported for my model... is there another way to link or to create a model?.... I don't want to "Import" the model, but create it.
    Thanks everyone in advance
    Alejandro

    hi
    if you are creating your table and other data stuffs in the abap side. you can connect to the R3 side and get data. try this link for help in doing that
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/creating a web dynpro application accessing abap functions.pdf
    and if you are using oracle you can use ejb and  you can connect to it using the code below
    InitialContext ic = new InitialContext();
    Object obj = ic.lookup("localejbs/<Name of EJB project>/<Bean name>");
    UrlEjbLocalHome home = (UrlEjbLocalHome)javax.rmi.PortableRemoteObject.narrow                                                                               
    (obj,UrlEjbLocalHome.class);
    UrlEjbLocal ejbs = home.create();
    //Write the following code as a function in your EJB and call it after the above given code using the object of type 'UrlEjbLocal' named 'ejbs'
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@<IPAdd>:<Port>:<DBName>",
                             <LoginId>,
                             <PassWd>);
    hope this might help you.

  • Create webservice model

    Hi all
    I am able to create a webservice model in webdynpro when my WSDL url starts with http.
    But now i want to create the model using same webservice running on https.
    The service is there running on https but i am not able to create model.
    I am not even getting any error while creating a model,
    the only thing is that i am not able to see my model if it is created.
    Is there any other procedure for creating such model in webdynpro
    Thanks,
    Archana

    Thanks Shridir for the reply,
    I created a new application and when i was trying to create a secured webservice model,I am not getting any error while creating it but i am not able to see that model any where in the explorer window and not even in my workspace.......
    No package nothing as if it has not been created  at all
    Archana

  • Built Error In Creating Web Service Model In WebDynpro

    Hi All,
    Every time I create a webservice model in webdynpro I get the following error log in PDE Runtime ---> Error Log.
    com.sap.cms.util.exception.client.CMSClientVersionConflictException: Version conflict: to call method "readSystemMessages" the minimum server version is "Release6.40 SP16 Patch level 00" but the used server has only version "Release 6.40 SP15 Patch level 00"
         at com.sap.cms.client.organizerAPI.CMSTransportOrganizerAPI.versionCheck(CMSTransportOrganizerAPI.java:1232)
         at com.sap.cms.client.organizerAPI.CMSTransportOrganizerAPI.readSystemMessages(CMSTransportOrganizerAPI.java:1164)
         at com.sap.cms.client.ideAPI.CmsConfiguration.readSystemMessagesMap(CmsConfiguration.java:445)
         at com.sap.ide.eclipse.component.devconf.DevConfManager.getSystemMessages(DevConfManager.java:744)
         at com.sap.ide.eclipse.component.provider.listener.DevConfLoginListener.showSystemMessages(DevConfLoginListener.java:97)
         at com.sap.ide.eclipse.component.provider.listener.DevConfLoginListener.loginPerformed(DevConfLoginListener.java:91)
         at com.sap.ide.login.UserValidator$1.run(UserValidator.java:161)
         at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
         at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:98)
         at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1999)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1733)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:136)
         at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:261)
         at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:357)
         at com.sap.ide.login.UserValidator.getData(UserValidator.java:411)
         at com.sap.ide.login.UserValidator.getDefaultServerData(UserValidator.java:131)
         at com.sap.ide.login.UserValidator.getDefaultServerData(UserValidator.java:116)
         at com.sap.ide.login.actions.LoginActionDelegate.run(LoginActionDelegate.java:79)
         at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
         at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:207)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:456)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:403)
         at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:397)
         at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:72)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
         at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
         at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
         at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:286)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:795)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:602)
    com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Proxy Generator Error. Problem with WSDL file parsing. See nested message.
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:179)
         at com.sap.ide.ws.proxygenerator.InternalHelperFunctions.generateInterfaces(InternalHelperFunctions.java:343)
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateProxy(ProxyGeneratorWrapper.java:340)
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateStandAlone(ProxyGeneratorWrapper.java:271)
         at com.sap.ide.metamodel.importers.webservice.GenerateWS.doGenerate(GenerateWS.java:92)
         at com.sap.ide.metamodel.importers.webservice.WebServiceModelImporter.doImport(WebServiceModelImporter.java:116)
         at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard$9.run(ModelWizard.java:1133)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    Caused by: com.sap.engine.lib.xml.util.NestedException:  Element passed is not WSDLD Document !
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDefinitions(WSDLDOMLoader.java:797)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadWSDLDocument(WSDLDOMLoader.java:1116)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:175)
         ... 7 more
    Kindly suggest me something as I can over come this problem, It is not happening only to one single node,but across all the nodes which are connected to the NetWeaver server.
    Thanks and Regards
    Yajush Mishra

    Hi
    It seems that version problem becouse used server has only version Release 6.40 SP15 Patch, ask you basis guy to update the Patch SP16  from SP15.
    Thanks

  • Getting errors while creating model in webdynpro(using JAVA)

    hii ,
    am using EJBs ....n while creating model in webdynpro, while trying to include jars of wrapper class and command bean in model its giving an error that the jars already exist in model classes....
    plz help out....

    hi,
    if you r importing the bean for second or nth time , delete your previous imports from model  in your application and also delete the previous mappings in the component controller and corresponding view controllers and recreate it.(importing the JARs of both EJB and Bean in WD Library and recraete the java build paths,references) .
    revert back if issue persists..
    Thank you
    Shravan.

  • Can't create a model

    Hi,
    I have an usable SLD server.
    Now, I have to configure NDS on my local workstation.
    I have changed the windows hosts and services files and inscribed the SLD server as group in my SAP Gui Frontend.
    Now, if I want to Create a model in my Webdynpro application, I don't see the message server in the combobox "System" of the register card "Load Balancing".
    I know that the SLD is working correctly, but I can't use him.
    Can it be a problem, that I have installed the NDS before I have installed the SAP Frontend Gui?
    regards,
    Dennis

    hi,
    the NDS doesn't use the SLD for these settings.
    you have to enter your message server manually.
    kr, achim

  • How to create a model and JCO connection

    Hi all,
             The Userid and Password given while creating new model at Singleserver/Load balancing tab should be same as the userid and password given while creating JCO connection. i.e in JCO creation  while mapping modeldata to Application data and Metadata to metadata we will give some userid and password.
    will those 2 userids and passwords should be same.
    the error which i am getting is
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Error connecting using JCO.Client: null
    Regards
    Padma N

    2 userids and passwords need not be same
    i got similar problem and this is how i resolved
    this is because jco connections are Using SSO and the user who is accessing that webdynpro application is not present in the backend system.
    please make sure user is there in the backend system from which you are getting data
    xxxxxxxxxxxxxxxxxxxxx
    Edited by: Armin Reichert on Feb 18, 2008 7:26 PM

  • How to create popup in ABAP webdynpro.

    Hi,
    I found lot of examples to create a popup/ model window for java webdynpro.
    Could anyone give a pointer to an example which explains how to create popup in ABAP webdynpro??
    Kind Regards
    Shahul

    Hi Thomas:
    It worked fine the 1st time. Second time when the user clicks on the button to open up the popup it dumps.
    Here is the code in the action for popup:
    data: l_cmp_api type ref to if_wd_Component,
            l_window_manager type ref to if_wd_window_manager,
            l_api type ref to if_wd_View_controller,
            l_text type string_table.
      l_cmp_api = wd_comp_controller->wd_get_api( ).
      l_window_manager = l_cmp_api->get_window_manager( ).
      if wd_this->m_popup is initial.
        wd_this->m_popup = l_window_manager->create_window(
                 window_name = 'DOCQSOW'
                 button_kind = if_wd_window=>co_buttons_ok
                 message_type = if_wd_window=>co_msg_type_none ).
               component_usage_name = 'DOCQUERY_USAGE_1'
        l_api = wd_this->wd_get_api( ).
        wd_this->m_popup->subscribe_to_button_event(
              button = if_wd_window=>co_button_ok
              button_text = 'Transfer'
              action_name = 'POPUP_CLOSED'
              action_view = l_api  ) .
        wd_this->m_popup->SET_REMOVE_ON_CLOSE( abap_true ).
       endif.
      wd_this->m_popup->open( ).
    Second time when the popup tries to open, I get the following error:
    Method: RENDER_WINDOW of program CL_WDR_WINDOW_RENDERER========CP
    Method: RENDER_WINDOW of program CL_WDR_CLIENT_SSR=============CP
    Method: RENDER_POPUP_WINDOWS of program CL_WDR_CLIENT_SSR=============CP
    Method: RENDER_WINDOWS of program CL_WDR_CLIENT_SSR=============CP
    Method: IF_WDR_RESPONSE_RENDERER~RENDER_VIEWS of program CL_WDR_CLIENT_SSR=============CP
    Method: IF_WDR_RESPONSE_RENDERER~RENDER_USER_INTERFACE_UPDATES of program CL_WDR_CLIENT_SSR=============CP
    Method: IF_WDR_CLIENT~SEND_RESPONSE of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_WDR_CLIENT~SEND_RESPONSE of program CL_WDR_CLIENT_SSR=============CP
    Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Is there a way to destroy the instance of the m_popup?
    Any help is appreciated!
    Thanks

  • Importing Java Bean Model in Webdynpro Development Component

    Hi All,
    Is there any simple tutorial, example  to import java bean model in webdynpro development component.
    I am using NWDS 7.0 SP14 and WAS 7.0.
    it really helps if you can  provide simple EJB as a development component with details how to create a public part and using this bean as java bean model in Webdynpro development component.
    what are the steps to be followed with precautions
    Thanks in Advance,
    Murali

    Hi,
    [Using the Java Bean Model in Web Dynpro|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4072c0d0-c21e-2b10-ab84-e2c183d355de]
    [Using EJBs in Web Dynpro|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c]
    you will get more if you search in the forum.
    more help on EJB's
    Re: Help needed in EJB
    http://help.sap.com/saphelp_nw70/helpdata/EN/19/f9bc3d8af79633e10000000a11405a/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c
    PradeeP

  • Importing Complex JavaBean model into WebDynpro

    Hi,
    I am trying to get Data from the EJB, in my Case, Command Bean to WebDynpro.
    So i followed this thread:
    <a href="/people/balaramnaidu.bankuru/blog/2006/04/23/importing-complex-javabean-model-into-webdynpro-by-creating-relationships-for-the-model-classes in WebDynpro</a>
    But one thing does't work here:
    I can't import the Complex type java.util.Collection.
    But i need to get Data from a DB-View into my WebDynpro.
    Is there any other chance to do that?
    Here a CodeSnippet from my Command Bean Class:
    public BusinessDelegate() throws CreateException
              try
                   Context ctx = new InitialContext();
                   OracleSessionLocalHome home = (OracleSessionLocalHome)ctx.lookup("localejbs/OracleSessionBean");     
                   session = home.create();
              } catch (Exception e)
                   e.printStackTrace();
         public void getAllOracleDetails()
              try
                   OracleDTO helper[] = session.getOracleData();
                   oracleDetailsList = new ArrayList();
                   for (int i = 0; i < helper.length; i++)
                        oracleDetailsList.add(helper(i));
              } catch (Exception e)
                   e.printStackTrace();
    OracleDTO is my HelperClass, where i made all Variable-Declarations I need in the View.
    Any ideas?
    Would appreciate that!
    Bernd

    You are not unable to import collection type means u are not able to see that variable in attribute list while importing the model?
    This may be due to you have not added getter and setter function for that collection type.

  • Create a Model

    Good Day All,
    when I tried to create a model in SAP Netweaver Studio and I got the following error message:
    An internal error has ocurred, see error log for more details.
    Plugin name: Web Dynpro Model Editor
    Plugin ID: com.sap.ide.webdynpro.modeleditor
    class: com.sap.ide.webdynpro.modeleditor.ModelEditorCallback
    Method: createModel
    Message: An error ocurred, see error log for more details.
    Exception: java.lang.NullPointerException: null
    anyone have any idea what cause that error message?
    thanks,

    Hi Rami,
    It looks like this NPE is coming from the Web Dynpro model plug-in code.
    If 'Create Model' was working earlier, then this might be due to metadata corruption. Close the NWDS.
    1) Either delete the contents of the metadata folder of your workspace & restart NWDS.
    2) Or you can restart NWDS in a fresh workspace.
    Please verify that you are providing all the required parameters in the model creation wizard.
    If the NWDS installation has gone fine & still the problem persists, this seems to be a bug & you can raise a customer ticket (CSS message on Web Dynpro component)
    Kind Regards,
    Nitin
    PS: If you are using quite old version of NWDS, I would advise you to upgrade to a later version as these very basic things should be working fine.
    Edited by: Nitin Jain on Apr 5, 2009 6:55 PM

  • Create RFC Model in ESS

    four logical JCo connections are used by the Self-Service applications:
    ·        SAP_R3_SelfServiceGenerics
    ·        SAP_R3_SelfServiceGenerics_MetaData
    ·        SAP_R3_HumanResources
    ·        SAP_R3_HumanResources_MetaData
    i have create a model in R3 and using the webdynpro RFC Model to connect it, it requires to established a JCO connection.
    which 2 should i use to connect the Adaptive RFC Model ?
    the default is :WD_RFC_METADATA_DEST WD_MODELDATA_DEST

    Hi yzme,
    You can use any of the JCO connection sets to create new Model.
    If all of these JCO connection are configured in your Message Server
    1>     WD_RFC_METADATA_DEST
           WD_MODELDATA_DEST
    2> SAP_R3_SelfServiceGenerics
        SAP_R3_SelfServiceGenerics_MetaData
    3> SAP_R3_HumanResources
         SAP_R3_HumanResources_MetaData
    Regards,
    Mithu

  • Webdynpro FPM Table Control Toolbar Buttons

    Dear Experts,
    In Webdynpro FPM Configuration, Table control tool bar to be enhanced with custom buttons and it should call the custom web dynpro applications.
    After adding the buttons, where we have to configure the FPM Event ID's and corresponding actions.
    Please check and let me know.
    Thanks & Regards,
    Sunil KS

    Hi Sunil,
    You have to create enhancement implementation for your application configuration. Then you have  to follow the below procedure for enhanceing the feeder class.
    1. Create explicit enhancement for your feeder class by choosing spiral button in the class object toolbar, then it will provide pre,post and override method for your methods.
    2. As per your requirement you need to add some action in your table control toolbar, for that you need to implement post exit for the GET_DEFINITION method.
    3. Enhance your FPM application for adding the table control button and assign the created action in your feeder class and process the events in the post exit implementation of your PROCESS_EVENT method.
    THanks & Regards
    Praveen Gupta

Maybe you are looking for

  • I cant download apps on my new ipad air

    i dont recognise my security questions when trying to download apps on my new ipad air.

  • Transferring iPhoto collection from eMac to new iMac

    I'm stumped here. I tried burning CDR back-ups of my iPhoto collection (with Tiger installed) on the old eMac and then inserting the CDRs into the new iMac which has Leopard installed. That doesn't seem to work. Many of the photos are only a few kbs

  • Stability of pdf bookmark structure from InDesign

    I have been struggling in InDesign and Acrobat with a fairly complex pdf. I use CS2 Suite. I have built 6 books in ID each with TOC and bookmarks. I have created a TOC nav document to go to any book. Individually the pdf works fine in Acrobat. Clicki

  • Cost center not updated when posting in non leading ledger

    Hello FI Experts I have two ledgers - Leading and Non Leading Ledger. When I posted expense entry it updated both the ledgers and updated cost center value. This updated value i checked in cost center report KSB1. For Ex: Rs. 1,00,000 Now I posted an

  • JApplet class key methods

    JApplet class has following key methods: public void init() public void start() public void paint( Graphics g ) public void stop() public void destroy() I have an applet that only uses the key method init() and I don't have multithreaded logic and it