Skip to Content
author's profile photo
Former Member

Creating Custom Models

The WebDynpro projects supports a few standard ways of implementing the Models

namely RFC, Web Services, XMI.

Can someone tell me as to how can i create a custom model based on my own schema to support a different data source for eg. an LDAP Data etc.

Also how do i implement the backend calls . (like for RFC and WebServices based Models, there is an .execute method on the modelObject). How do i implement this kind of an execute mechanism. is there a standard interface ?

.V

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Nov 18, 2003 at 11:50 AM

    Hi Jake,

    You create a model based on the RFC/BAPI function module if you are using SAP as backend, then map the model object node elements(instances) or attributes to the componet. These values are available to you in your custom controller or view contexts. They can be embeded in your view objects.

    Execute method in the model object class executes the RFC and fetces the data.

    Hope this helps.

    Suresh

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Jake,

      You didn't mention if the EJB was hosted in the SAP J2EE server. Assuming it was hosted by the J2EE server, another possibility would be to generated a web service based on the EJB. This process takes about 30 seconds to generate the Web Service. Then, as you know, you can create a model based on the WSDL which can be imported directly from the server and voila, you have a model against which you can start designing. If the EJB is not hosted within our J2EE, there is a good chance that you can still generate the WSDL and do the same thing...

      2 Cents worth...

      ...Scottd

  • author's profile photo
    Former Member
    Nov 18, 2003 at 03:24 PM

    Hi Jake,

    Do you use the "Sneak Preview" Developer Edition of the Web Application Server? Within that version we do not offer the possibility to plug-in user-defined model implementations. For more information please send an e-mail to karin.schattka@sap.com

    Best regards,

    Karin

    Add comment
    10|10000 characters needed characters exceeded