Model implementation

Hi,
I am using CE 7.1. I am trying to use a RFC through model. When i try to write the below ocde, its giving error "the constructor Zbap_get_list_input is undefined".
Zbap_get_list_input objVariant = new Zbap_get_list_input();
Please help me.
Thanks in advance.

Hi Prasanthi,
Please try to re-import the model again and bind with the controllers.
then try sync source and build the DC and then try to create object of the RFC.
Refer to Undefined constructor and model nodes and constructor undefined , while initiating model node in component controller
Hope it wil helps
Regards
Arun

Similar Messages

  • Tree Model Implementation

    Hi All,
    I'm need to create a JATO tree implementation and need some advice. I
    want to modify the JATO sample tree implementation so that:
    1) The model is cached within the user's session.
    2) The model is created on demand. i.e. The data associated with the
    branches are only retrieved when the branches are opened.
    In the sample application E0115TreeView (view) creates a
    SimpleTreeModelImpl (model) each time it is instantiated and
    SimpleTreeModelImpl (model) creates dummy data each time it is
    instantiated.
    1) Is there a standard JATO technique for associating a model with a
    view (unlike the sample)? Does this involve the ModelTypeMapImpl class?
    My tree data is stored in LDAP, so I can't use a standard JATO database
    Model classes.
    2) The comment in the SimpleTreeModelImpl class definition indicates
    that it is normal practice to store the model in the user's session. Is
    there a standard JATO technique for doing this?
    3) What would be the best way to extend the sample so that I can create
    the model on-demand?
    Regards,
    Dennis Parrott.
    [Non-text portions of this message have been removed]

    Thanks Todd,
    That makes perfect sense.
    Regards,
    Dennis parrott.
    Todd Fast wrote:
    Hi Dennis--
    I have now added a SimpleTreeModel interface (which extends TreeModel) andhave added an
    mapping in ModelTypeMapImpl static initializer. i.e. To registerSimpleTreeModelImpl with the
    ModelManager.This is fine, but you can so without the additional interface if you want.
    You don't need to register the model in the ModelTypeMap, and you can
    instead just pass the implementation class to ModelManager.
    In the tree view constructor instead of creating the SimpleTreeModelImpleach time I use the
    ModelManager to retrieve the model, indicating that the model should bestored in the sesssion:
    public Treeview(View parent, String name) {
    super(parent, name);
    RequestContext requestContext = getRequestContext();
    ModelManager modelManager = requestContext.getModelManager();
    Class clazz = SimpleTreeModel.class;
    SimpleTreeModel simpleTreeModel =
    (SimpleTreeModel)modelManager.getModel( clazz,clazz.getName(), true, true );
    setPrimaryModel( simpleTreeModel );
    registerChildren();
    }This looks good, EXCEPT for the fact that you shouldn't be able to get the
    RequestContext at this point via the class's getRequestContext() method (it
    isn't set until after the constructor). However, you can use the static
    method RequestManager.getRequestContext() instead.
    The final bit I need to implement is the model creation on-demand.Currently the entire model
    is constructed on the first access and stored in the session. However,when model is large then
    this has a performance impact on constructing it for the first time.Instead I would like to
    construct peices of the model as the user accesses them. Any ideas?This is really a function of your model implementation. Nodes that are not
    needed in a particular rendering of a TreeModel are never accessed by the
    framework in that rendering, so you need to implement your model to lazily
    fetch sub-trees of the underlying data structure only as needed. Depending
    on the technology you are using, this may or may not be difficult.
    I suspect that right now you are fetching the entire tree data structure
    when the model is created, and this is the root of the problem. You need to
    fetch all nodes that are children of the root on the first request, then
    fetch child nodes of the next node the user expands on the next request, ad
    infinitum. Otherwise, you will have to settle for a one-time performance
    hit per session caused by retrieving the entire tree data structure at once.
    If you are using TreeModelBase as your superclass and just implementing the
    abstract methods therein, then the implementation of the firstChild() method
    is your opportunity to fetch the tree data lazily. This method will be
    called on a node to "step down" one level in the tree, and it will only be
    called for the nodes that are expanded. You should implement this method to
    figure out what node the model is on at the moment, then use that
    information to determine if you've already looked up that node's childre in
    the backend system, or if you need to go and fetch ONLY the current node's
    direct children. As the user descends through the tree, the tree will be
    fleshed out and cached lazily, one level at a time, via this mechanism.
    Does this make any sense?
    Todd
    To download the latest version of S1AF (JATO), please visit one of thefollowing locations:
    >
    Framework + IDE plugin for Sun ONE Studio 4 Update 1, Community Edition:
    http://wwws.sun.com/software/download/products/Appl_Frmwk_2.0_CE.html
    Framework + IDE pluign for Sun ONE Studio 4 Update 1, Enterprise Edition:
    http://wwws.sun.com/software/download/products/Appl_Frmwk_2.0_EE.html
    Previous versions of JATO:
    http://www.sun.com/software/download/developer/5102.html
    [Non-text portions of this message have been removed]

  • Vector Space Model implementation

    Hi,
    Does anybody know where I can find a java implementation of "vector space model"? Or simply a java program to extract keywords from an HTML page?
    Actually I don't know if this is the write forum to pose this question!
    Edited by: Marziye on May 28, 2008 10:55 PM

    You can take a look at the Apache Lucene project. It should be possible to extract keywords from documents with it. Anyway, it is not that hard to implement the vector space model yourself!

  • Creating an ES using the ProComp model, implementation

    Dear,
    I succesfully created my Enterprise Service, at least the definition part, and am now ready to implement it in SPROXY.
    I'll probably just do an RFC to the R/3 system to retrieve some data and send that to the response of my Enterprise Service.
    The synchronous service I have in SPROXY is (I'm presuming) the middle part after my request and before the return.
    How do I go about implementing this, and how do I go about testing this?
    Any guides, tips, help is much appreciated!
    Thanks in advance,
    Frederik-Jan

    Hi,
    I assume your scenario is RFC to Proxy, and you have done the service definition in ESR for both end.
    The next steps to do in ID of PI are:
    1. Create RFC sender adapter
    2. Create Sender Agreement
    3. Create Proxy receiver adapter, if there is none created before
    4. Create Receiver Agreement
    5. Create Interface Determination
    The next steps to do in SPROXY of SAP back end system are:
    1. Generate proxy class
    2. Implement the method of the proxy
    After that, you can start the testing.
    Regards,
    Lim...

  • Questions on the LRS network model.

    On page 6-26 of the "Oracle Spatial Topology and Network Data Models" documentation, the example shows that measures are recorded in the 'roads' table (i.e. the one with the geometry of the feature).
    1. Why in this example is 'null' used for Node 5 ('...automatically calculated and filled...') but not the others?
    2. Why in this example is measure even necessary? There is no link to the underlying route from this table (i.e. measures should only be recorded in the context of a given route).
    3. It seems like this measure is merely the offset from the starting vertex (not true LRS); do we have the wrong interpretation?
    On Page 6-30, the example shows that measures are recorded for each Node and each Link. We had envisioned nodes and links being separate from the route they play a role upon. For example, if the same node was part of two distinct routes, does this mean storing two rows in "road_nodes"? But they're the exact same location and the same node in our network. The same question applies to the 'road_links' table. If the answer is 'duplicate the rows' in nodes and links (once per route), why doesn't 10g Spatial record 'measure' in the "road_paths" table? Note that, on page 6-31, it says that it is '...for possible future use...'...
    This example also implies the rows in the roads table are replicated as the (m)easure of the geometry column would change based on the route involved? If this is not the case why store the measure in the geometry column at all?

    Hi,
    My name is Gary Wong, and the original poster was asking these questions on my behalf. I'd like to continue the thread below in-line....
    A: This is a basic LRS concept. You can have some NULL
    measure values, and LRS can compute the actual measure
    corresponding to a NULL value. This has nothing to do
    with Network modeling, so you can assume a valid
    measure value here for this example.So this was just an example showing both 'manually calculated and entered' and 'let Spatial figure it out'? As this is merely the offset from the starting point, wouldn't a user always use NULL to let Spatial figure it out? It seems like this model will always use whole links in a contiguous fashion, so when would the measure not be the cumulative total?
    2. Why in this example is measure even necessary? There
    is no link to the underlying route from this table
    (i.e. measures should only be recorded in the context
    of a given route).So in this model (and example), the entry in roads is the route itself? Other LRS models allow the re-use of a common route, so multiple entries in the roads table would reference the same route (in another table). A real-life example is a single straight road that has different names, or has different road surface, or road classifications.
    Folowing this example, if I wanted to spatially reference some other business attribution on an existing route, say R1, would I have to create another entry in roads and duplicate the data? Even if it has the same start/end locations and path?
    A: Measure is always an offset from the start vertex
    and this is true for any LRS system. I am not sure what
    you mean by "not true LRS".My mistake in using these words; there is no true LRS, just different models/implementations of it =8^). Other LRS systems can have a measure beginning, say 2.5 metres after the starting node (node, not vertex; I define a vertex as as one of co-ordinates defining the link, and node as a topologically significant vertex such as the start and end vertices).
    Hmmm, does this answer my first question above? If you wished to start a road (as per the example) slightly off of a node, would you enter a non-zero measure as the initial co-ordinate?
    Assuming I'm on the right track (i.e. cannot re-use a route), does anyone know if Oracle plans to implement this kind of LRS in 10g Spatial?
    I see a cryptic ".. for possible future use..." reference on page 6-31 regarding the create_path_table() and create_path_link_table() methods.
    Is this future use to allow multiple uses and references of a route?
    Thanks and sorry for the loooong email..
    gary

  • Can anyone through some light on configuration and implementation

    In SAP BW,
    I Want some useful information on Backend configuration,modelling,implementation of retail balance scorecard / KPI'S / TREND ANALYSIS

    Hi Mirza,
    Refer the best parctices section in SDN:
    https://media.sdn.sap.com/html/submitted_docs/Best_Practices/BW/index.htm
    Also you search for some docs in http://service.sap.com/bi
    Hope this helps.
    Bye
    Dinesh

  • Using Table Model as a Grid?

    Would it be possible to add JButtons(or JPanels) to create cells in a Table Model implementation? How would I go about this? Would I then be able to listen for events from these JButtons using the methods native to table model such as getValueAt(int row, int col) etc.
    What I am trying to do is to implement a grid of 10X10 cells for a battleship game so that the user can click on cells on the grid and that this will trigger an event specifying to user whether it was a hit or miss etc. and change the color of cell (JButton) based on hit/miss etc.
    Any help would be appreciated.
    Thanks.

    Well you need:
    1) a custom cell renderer class that is able to manage the change of background and the contents of the cell by itself
    2) a custom cell event listener that allows you to get and process the messages.
    You can find a full-featured example at the address: http://www.java2s.com/Code/Java/Swing-JFC/TableEditorEditableColorColumn.htm

  • Showing non hierarchical model in a jtree

    Hi all,
    I have the following model:
    - 3 classes:
    * A Day, consists of a number of Events
    * A Project, also consists of a number of Events, a Project has 1 or 0
    parent Projects and 0 or multiple childprojects.
    * An Event is always linked to 1 Day and 1 Project
    I want to create the following tree-structure:
    root
    +-- Day1
    ####+-- Project1
    ####+-- Project2
    ########+-- Project2_1
    ########+-- Project2_2
    ############+-- Event1
    ############+-- Event2
    I have created a custom model to display this. The problem is the following. In the model (which implements the TreeModel), there is a method getChild() to retreive and display the children. Obviously, the events underneath a project (e.g. Project2_2) should only be shown if the following is true:
    - event belongs to Project2_2
    - event belongs to Day1
    The first condition is easy, the last condition is causing the problem. How do I know I am underneath Day1?
    regards,
    Kenneth

    westelinckk,
    Your diagram leaf-indentation seems to indicate that, say, Day1 contains Project1, but you've stipulated only that "* A Day, consists of a number of Events". If Days may contain projects, your custom model needs to reflect that.
    Also, you say:
    Obviously, the events underneath a project (e.g. Project2_2) should only be shown if the following is true:
    - event belongs to Project2_2
    - event belongs to Day1
    I suppose you mean furthermore than both conditions be true. From your post'd title I suspect that an Event may belong to a Day and to a Project, with no implied relationship between the Day and the Project. In that case indenting Project1 under Day1 is misleading.
    Incidentally, when working with trees I suggest you use a custommodel-to-treemodel adapter, rather than making your custom model implement treemodel. That way your custom model remains the same, and you write an adapter per view type.
    --A                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • XML and Tree Model !!!

    I am wanting to implement the tree model from xml data.
    I am new to this so would appreicate any help filling in the gaps. My aim is to reflect this xml file in a JTreeTable format (I have left out the table model implementation.)
    A sample xml file looks like this :
    <?xml version="1.0" ?>
    <exam>
    <Column class="xTableModel">Attribute</Column>
    <Column class="String">Value</Column>
    <Question>
    <Id>1</Id>
    <Type>TF></Type>
    <Text>Napolean was french ?></Text>
    <Answer>True</Answer>
    <Mark>3</Mark>
    </Question>
    </exam>
    How I am Reading the file:
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder parser = factory.newDocumentBuilder();
    doc = parser.parse(xmlfile);
    Tree Model Methods. //Not really sure what i am doing here.
    public Object getChild(Object node, int i)
    Node parent = ((Node) node);
    Object child = parent.getChildNodes().item(i);
    return child;
    public int getChildCount(Object node)
    Node parent = ((Node) node);
    // int child = parent.getChildNodes().getLength();
    return 1;
    public boolean isleaf(Object node)
    Node parent = ((Node)node);
    Node child = parent.getFirstChild();
    return (child == null);
    }

    you can use a adapter pattern to convert the xml element to a TreeModel, this can be used by JTree

  • Maintaing model's search criteria

    What is the best strategy/place to maintain the search criteria of a
    model ?
    My interpretation, in the context of the "RetrievingModel" interface,
    is that the "retrieve" method is responsible for getting the
    information from a datasource (database, EJB, etc.).
    If the above assumption applies, then:
    - the "retrieve" method needs to pass the search criteria to the data
    source.
    - the model is responsible for maintaining search criteria between
    calls (posts/navigation through the model data).
    PS: I use a BeanAdapterModel class as model because I want to be able
    to change the datasource from a database to EJB's.

    My interpretation, in the context of the "RetrievingModel" interface,
    is that the "retrieve" method is responsible for getting the
    information from a datasource (database, EJB, etc.).Yes.
    - the "retrieve" method needs to pass the search criteria to the data
    source.Well, not necessarily, but in general this is the recommended approach.
    (Even our QueryModels don't do this yet.) To do this, you will need to
    derive an execution context subclass that has slots for this information,
    and for which your model can test. See my previous email about the
    execution context.
    Otherwise, you can simply set the search criteria on the model directly, if
    you don't mind using the type of the model directly.
    - the model is responsible for maintaining search criteria between
    calls (posts/navigation through the model data).Generally, this is easiest to do using the RequestCompletionListener
    interface. If your model implements this interface, it will be
    automatically called back at the end of the request, where you can do things
    like add the serach criteria to the session. You can the pull them from the
    session in the setRequestContext() method (assuming you implement
    RequestParticipant).
    A different approach might be to consider the View as the arbiter of the
    seach criteria. This would lend itself to using page session more easily,
    if you needed to be sure to keep search criteria isolated per page
    rendering.
    Todd

  • DC's and Configuration Models

    I wish to define a configuration model with an associated model class within a Distributed Component (DC).  However, when I go to reuse the model in another DC, the behaviour of a configuration model is different than an Adpative RFC or web service model.
    ie. When I make an Adaptive RFC Model a public part, the associated classes beneath this are made available and everything works fine.  But when I do the same with a configuration model, the model class does not come with the model. 
    I can get the model class to appear by manually adding the .wdmodelclass file to the public parts, but that of course doesn't work as the generated java class does not come across with it.
    Has anyone exposed configuration models in DC's before and know how to get around this apparent bug?
    note - I posted this on an old post, but thought it better to raise as a new question.

    Hi Matt,
    i've seen this after my posting to the other thread you mentioned, so forget about my question there.
    Well as i understand (from my own observations, since they are not really documented yet), configuration models are something special and obviously dedicated to be "private" for a component, therefore the implementation classes are not exposed, i guess.
    Since you are also familiar with the ABAP world, as i know from previous postings, you know the possibility to configure the application behaviour for reports for example by creating Variants (i hope this is correct, it's "Varianten" in German). The configuration models seem to be the corresponding part of Web Dynpro components.
    If you list the applications of the WD-tools in the WD content admin, you see an "Editor" entry. If you start this application and select an arbitrary component, you'll see, that only the configuration models are exposed for editing (i didn't get it to work, the Editor seems not to be completely implemented so far).
    Back to your question, if it's possible to expose the Java package tree of the generated common model implementation in the "Entries" editor of your PP definition, does it work then?
    Regards
    Stefan

  • Struts ActionForm and Model Objects design

    I've managed to make a pretty nice model with persistence managed by hibernate logic encapsulated in DAO's.
    But now Ive reached the web layer and I'm with struts, and I'm kind of stuck so I would love to hear some suggestions.
    How should I create ActionForms without duplicating the model state in ActionForm classes?
    Right now, my model implements ActionForm, which is tight coupling .
    But this increases maintenability.
    Other suggestions?

    It is a very bad idea to have your model implement ActionForm, for the reason you mentioned -- tight coupling. When you do that, you are tied to a web application; and, more specifically, Struts. "Best practice" says you need to duplicate a bit of your model in your ActionForm (Jakarta Commons BeanUtils makes this painless). As you probably know, the ActionForm should correspond to the form being displayed in the browser; each HTML form element should have a corresponding property in your ActionForm class. These properties might come from various parts of your domain model, so this gives you a place to muster them all together. I use an initXXXAction to populate the ActionForm, if needed, before display and a completeXXXAction to process the users input after they submit (although I'm thinking about switching to one of the DispatchAction flavors). Also, if the idea of maintaining the ActomForm classes is a hang-up, I'd suggest looking into the DynaXXX classes.
    Just to re-iterate, having your model implement ActionForm is BAD.

  • How to prepare a  Documentation of SAP and DB2 for implementation Project

    Dear Guru's,
    sap ecc6.0 , DB2, windows 2003 and HP Data Protector (third party tool) for an on line backup and i have Hardware & software Specs.....
    anybody send me a model implementation Docu or any body Guide me to prepare Documentation work.
    regards
    sathies kumar.N
    Sap Basis Admin
    Edited by: sathiskumar nagarajan on Apr 13, 2009 2:37 PM

    Hi,
    you can get material from www.esnips.com easily
    Best Regards
    Krishna

  • 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( )

  • Remote object trying to return another remote object and a ClassCastExcepti

    I have a server running with a TreeModel (the tree model implements Remote). I also have the the TreeNodes all linked together on the server. Now, I can get to the TreeModel on the server and the root node of the remote tree model.
    treeModelStub = (treeModelIface)Naming.lookup(url+"remoteTM"); //works
    rootStub = (remoteTreeNodeIface)treeModelStub.getRoot(); //works. The call to getRoot returns Object
    But when I call
    remoteTreeNodeIface aChild = (remoteTreeNodeIface)rootStub.getChildAt(index) //Does not work. "Exception in thread "main" java.lang.ClassCastException
    at remoteTreeNode_Stub.getChildAt(Unknown Source)
    The remote tree node method getChildAt returns TreeNode because the class implements TreeNode:
    public class remoteTreeNode extends UnicastRemoteObject implements rdcaDataIface, Comparable, TreeNode {
    public TreeNode getChildAt(int idx) {
    System.out.println("DEBUG: class is "+this.getClass()); // class is remoteTreeNode
    return (remoteTreeNode)children.get(idx);
    The remote interface is defined as:
    public interface rdcaDataIface extends java.rmi.Remote {
    public TreeNode getChildAt(int idx) throws RemoteException;
    Any ideas why this does not work. Why can a remote object of type Object be returned just fine, but a TreeNode not be returned?
    Thank you for your help,
    Brent

    I have a server running with a TreeModel (the tree
    model implements Remote). I also have the the
    TreeNodes all linked together on the server. Now, I
    can get to the TreeModel on the server and the root
    node of the remote tree model.
    treeModelStub =
    (treeModelIface)Naming.lookup(url+"remoteTM");
    //works
    rootStub =
    (remoteTreeNodeIface)treeModelStub.getRoot();
    //works. The call to getRoot returns Object
    But when I call
    remoteTreeNodeIface aChild =
    (remoteTreeNodeIface)rootStub.getChildAt(index)******************************************
    can only be casted to rdcaDataIface. The returned object is an instanceof the rdcaDataIface_stub, which have nothing to do with TreeNode.
    //Does not work. "Exception in thread "main"
    java.lang.ClassCastException
    at remoteTreeNode_Stub.getChildAt(Unknown
    t(Unknown Source)
    The remote tree node method getChildAt returns
    TreeNode because the class implements TreeNode:
    public class remoteTreeNode extends
    UnicastRemoteObject implements rdcaDataIface,
    Comparable, TreeNode {
    public TreeNode getChildAt(int idx) {
    System.out.println("DEBUG: class is
    lass is "+this.getClass()); // class is
    remoteTreeNode
    return (remoteTreeNode)children.get(idx);
    The remote interface is defined as:
    public interface rdcaDataIface extends java.rmi.Remote
    public TreeNode getChildAt(int idx) throws
    ows RemoteException;
    Any ideas why this does not work. Why can a remote
    object of type Object be returned just fine, but a
    TreeNode not be returned?
    Thank you for your help,
    Brent

Maybe you are looking for