How to create a model access class ???

HI,
      Can somebody tell me how to create a Model Access Class. In the Application Set, i can find the Model Access folder, but it has a list of application sets which is already created and the system asks to select a Application set. I need to create a new application set. Please help.
Regards,
Shiny

Hi Shiny,
I would suggest you not to create a new application set.
If you are enhancing a standard PCUI application, i would suggest you to create new model access classes and assign them to the same application set which is assigned with the standard model access class for that application.
Creating a model access class can be done through the transaction SE24(like any other Z-class).
Go to transaction CRMC_BLUEPRINT_C and you could assign this newly created Model access class to the standard application set. This can be done under Application Element->Application Set->MOdel Access Class.
If you still feel the need to create a new application set altogether, it can be done from Trx CRMC_BLUEPRINT_C->Layout of PCUI-> Application Element->Application set.
I hope it helps.
Cheers,
Gyan.

Similar Messages

  • Create model access class

    Dear experts,
    How do we create a model access class in CRM? I see where we can assign the model access class to an application set but I cannot find how to create a model access class.
    Thanks for your help,
    Stephanie

    Actually its just like normal class.You can directly create it through se24 or u can also create it by se80.I am sending u a link containing a demo example.Probably this should help.
    http://help.sap.com/saphelp_nw04/helpdata/en/e9/bb153aab4a0c0ee10000000a114084/frameset.htm

  • How to create a Model based on an SQL Server?

    Hello,
    Can someone please guide me how can I create a Model which takes it's Data from a table in an SQL Server?
    Can I make such a Model that will connect directly to a Datasource on the Application Server?

    Well Roy,
    I was also facing some similar problem, just now got my service displayed in portal. Thanks a lot that you could solve it urself. Anyway, now for using this service from another portal component do the following
    1. Add SharingReference value in Deployment Descriptor of the portal app from where u want to access this service
    example:
    <application-config>
    <property name="SharingReference"       value="com.customer.training.MyFirstPortalApp">
    </property>
    </application-config>
    2. Add libraries of the Portal Service (xxxapi.jar)
    in your par file u can see one jar file as <servicename>api.jar . extract this to some other location and in the client portal app project add this .jar to its build path.
    3. Write code to access the Portal Service
        a. Import package of the Portal Service
        b. Get instance of the Portal Service
        c. Call methods of the Portal Service
    example:IPortalRuntimeResources runtimeResources =      PortalRuntime.getRuntimeResources();
    IService aService = runtimeResources.getService("com.customer.training.MyFirstPortalApp.MyService");
    // OR
    IService aService = runtimeResources.getService(IMyService.KEY);
    // Cast the Service
    IMyService myService = (IMyService)aService;
    // call methods of the service
    response.write(myService.getWelcomeString(aName));
    thats how it should be...
    regards,
    Shubhadip

  • 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 two different implementation class for a Control

    Hi,
    I am a newbie to beehieve. I want to know that is it possible to create two different 'Impl' classes for a Control. If yes then how do we instantiate them ? How can we chain them (something like calling one 'Impl' from the other one? Thanks in Advance!!!
    Regards,
    Abhishek

    You are sure you are in the right forum?
    This is the JDeveloper and ADF forum...
    Timo

  • How to create a ms-access database at runtime using java

    hi, this is ravi kiran,
    i have a situation where i need to create a new ms-access database with one table in it at runtime(when user clicks on some button).
    i have been searching many sites to know how to do this in java, but i didnot find any thing useful.
    plz tell me how to do this in java.
    plz help me, its urgent
    thanx in advance.

    Here's how I did it. Research does help, but sometimes looking at others code does too... You do have to have a dummy file that you made with access though. You can't just make a file file.mdb (it will be corrupt)
         public void createDatabase(String database) throws SQLException{
              try{
                   // This file needs to have been created with MS Access
                   File dbfile = new File(this.dataBaseDir + "dummy.mdb");
                   // This is the new database file being made
                   File newFile = new File(this.dataBaseDir + database + ".mdb");
                   // Copy all bytes from dummy file to new DB file.
                   FileInputStream instream = new FileInputStream(dbfile);
                   FileOutputStream ostream = new FileOutputStream(newFile);
                   int numBytes = instream.available();
                   byte inBytes[] = new byte[numBytes];
                   instream.read(inBytes, 0, numBytes);
                   ostream.write(inBytes, 0, numBytes);
              catch(FileNotFoundException e) { e.printStackTrace();}
              catch(IOException e) { e.printStackTrace();}
              if(DEBUG) System.out.println("creating the " + database + " database");
         }

  • How to create object by getting class name as input

    hi
    i need to create object for the existing classes by getting class name as input from the user at run time.
    how can i do it.
    for exapmle ExpnEvaluation is a class, i will get this class name as input and store it in a string
    String classname = "ExpnEvaluation";
    now how can i create object for the class ExpnEvaluation by using the string classname in which the class name is storted
    Thanks in advance

    i think we have to cast it, can u help me how to cast
    the obj to the classname that i get as inputThat's exactly the point why you shouldn't be doing this. You can't have a dynamic cast at compile time already. It doesn't make sense. Which is also the reason why class.forName().newInstance() is a very nice but also often very useless tool, unless the classes loaded all share a mutual interface.

  • OracleXe - how to create a database access descriptor (DAD)

    Hi folks,
    I am trying to figure out how to create a DAD (database access descriptor) so I can access my pl/sql server pages which are installed on my oracleXe database.
    I have searched the docs and this forum and OTN but haven't found any information on how to do this.

    You can use DBMS_EPG for that purpose. E.g.:
    DBMS_EPG.CREATE_DAD (
       dad_name  IN  VARCHAR2,
       path      IN  VARCHAR2 DEFAULT NULL);More about DBMS_EPG you can find here:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_epg.htm
    In XML DB HTTP Server a DAD is represented as a servlet.
    Regards!

  • How to Create Data Model

    I have a database of 1000 tables. How can I create ER-Model for that database. I mean figure showing fields and relationships. I am looking for a smart way.
    Regards,
    Amer

    You could try using Oracle Designer to create your diagrams. Also, it may make sense if you group the tables by functional areas
    The Techical Reference Manual for the Oracle 11i HRMS application is good example of this, since the table relationships are shown by functional area (i.e. Person data, Job data, etc.).

  • How to create authorization to access Query Print Layout?

    Hi again..
    i have 10 query print layout, and not every user can view this layout.
    I assume,
    report 1-3 only for user A,
    report 4-7 only for user B, and
    report 8-10 only for user C.
    How to create autorization for Query Print Layout?
    Thankyou for the help

    Dony,
    In order to createthe PL's of customize report (from Query Manager) you will have to go the Tools Tab of the Menu Bar in which you will have to click the Queries tab which will lead to a drop down menu which when clicked will lead to Quaery Print layout. You will have to choose your query based upon whether from the reports tab double click it to open the Query Print Layout Designer.
    Here again in the Menu Bar you will find the under the Tools the first tab is the PLD which when clicked you can do the same process as explined below
    When you go to the document ( Any Document ) in the tool bar you would find the 24th Icon to be the Print Layout Designer Tab when you click this it takes you to the layout designer window.... below there is tab named set as default when you click this the system would ask you 2 choices
    1. Set as default for all users
    2. Set as default for current user
    Which means that you will have to open each and every form?
    for each and every user and set them as default for the user.
    If you feel this answer is helpful then please do remember to reward points
    Regards,
    Nagesh.

  • How to create a guest access to Adobe Viewer?

    Hi,
    My customer and I want to create a new magazin and I want to
    give my customer a feedback of tests and designs.
    Can I create a guest access to Adobe Viewer?
    I want my customers to provide the resulting app to jointly discuss
    the same changes and tests. But do not want the customer generally
    has access to my Adobe ID. Is there a way for this?
    maybe there would be a general solution other 'm open to everything.
    But I would like to remove my customers to provide the resulting app
    to examine and test.
    best regards, Liljana
    Nachricht geändert durch Liljana***

    You can ask your customer to ceate an Adobe ID and then you can share your specific work/folio with that Adobe ID. So this way you need not share your Adobe ID/Password with the Customer and Customer also need not to share their password/other details with you.The best part is whenever you make any changes in your folio the shared user automatically get that change. User just has to take the update.

  • How to create a ms-access table with java?

    hi all
    i've my application and i want to add the capability to creat an access file (.mdb) and then, via SQL , create a table, with many columns of many types, and with a primary key too.
    i know that it's also an SQL problem, but i'm searching for it everywhere
    thanx for your reply
    sandro

    Hi,
    It would have been much better if you had specified your development environment- the database driver class depends on which environment you are working with. Forexample, if you are working with vj++6 you can make use of the com.ms.jdbc.odbc.JdbcOdbcDriver class. If you are using IBM's Visual Age for Java3.5 you can find the sun.jdbc.odbc.JdbcOdbcDriver. Oneway or another you should have the .class for jdbc-odbc(usu they have the form: xxx:jdbc:odbc:JdbcOdbcDriver). Check all the packages that are available in your development environment that have the form xxx.jdbc.odbc.JdbcOdbcDriver.(And not clear what you know and what you don't - so I start from the very elementary steps)
    Anyways, What you have to know is that it is not possible to create databases (e.g. .mdb) directly from a Java application(as far as I know). What is possible is to create new tables inside an already created database and process queries based on those tables.In short what I am saying is : you need to have a DSN before writing applications that create tables.
    Follow the following steps to create DSN(for win2000):
    1)Go to the control panel and click the 'administrative tools'
    2)In the 'administrative tools' click to open ODBC(data sources)
    3)Click the 'add' button and choose 'Microsoft Access driver'
    4)In the DSN text field enter the dsn (e.g., Test)
    5)If you want to create a table in an already existing database choose select and select one. However, if you want to create a new database click 'create' and enter a name for your database(e.g. ExampleDB.mdb). If you do this successfully it will issue a successfull operation message.
    6)Click advanced and enter the login name(e.g. Albert) and password(e.g. mxvdk) for the database
    7)Click 'ok's to finish the operation.
    After the above three operations what you will have is an empty database(with no tables) named "ExampleDB.mdb" in the directory you specified.
    Now, you can write a java application that creates a table inside the database "ExampleDB.mdb".
    Check this out:
    import java.sql.*;
    public class Class1{
    public Class1(){
    String userName = "Albert";
    String password = "mxvdk";
    String dsn = "Test";
    String databaseURL = "jdbc:odbc:"+dsn;
    //This is just an sql table creating statement- have nothing to do with java
    String sqlCreateStmt = "CREATE TABLE StudentTable" +
    "(StudentID varchar(32) PRIMARY KEY," +
    "name varchar(30)," +
    "age int)";
         try{
         Class.forName("com.ms.jdbc.odbc.JdbcOdbcDriver");
         }catch(ClassNotFoundException eCNF){
              System.err.println("ClassNotFoundException:");
              System.err.println(eCNF.getMessage());
         try{
         con = DriverManager.getConnection(databaseURL,userName,password);
         stmt = con.createStatement();
         stmt.executeUpdate(sqlCreateStmt);
         }catch(SQLException e){
    System.err.println("SQLException:");
    e.printStackTrace();
         //insert one sample data
    insertSampleData();
    private void insertSampleData(){
         String sampleStudentID = "scr-342-tch";
         String sampleStudentName = "Tom James";
         int sampleStudentAge = 24;
    //This is just an sql table updating statement- have nothing to do with java
         String sqlUpdateStmt = "INSERT INTO StudentTable VALUES ('"+
                             sampleStudentID+"','"+
                             sampleStudentName+"',"+
                             sampleStudentAge+")";
         try{
              stmt.executeUpdate(sqlUpdateStmt);
              }catch(SQLException e){
              System.err.println("SQLException:");
              e.printStackTrace();
    public static void main(String[] args){
    new Class1();
    private Connection con;
    private Statement stmt;
    //This program runs perfectly in my VJ++6.0 (console application mode) and also in my IBM's
    //visual Age for Java3.5 (with sun.jdbc.odbc.JdbcOdbcDriver as my database driver)
    //If you are developing in another development environment, what you need to change is the
    //"com.ms.jdbc.odbc.JdbcOdbcDriver" in Class.forName("com...") stmt.
    //If you run this program more than once, it will issue 'tableAlreadyExists' message
    If you still experience the problem, pls be specific and repost!

  • How to create unique objects in class and store

    Hi, I have a class that opens a text file and reads in the
    lines. each line holds an ip address. i need to create x amount of
    objects, and each object is assigned a unique ip address from the file.
    and here i am stuck. the class reads in the file, then i think it should create an object for each line read in and assign that object the ip address. i want to store the objects in some sort of array or collection, and i guess each object will need a unique name, but i dont know how many objects until i read in the file and count the number of lines. can anyone give me any pointers as to how i should create/store the objects
    many thanx
    ness

    You could use your own object:
    public class Test {
      public class IPNumber {
        public int ip;
        public IPNumber(int ip) {
          this.ip = ip;
      public Test() {
        int numberOfIPs = 5; // this is your number of lines
        IPNumber[] ips = new IPNumber[numberOfIPs];
        for (int i = 0; i < numberOfIPs; i++) ips[i] = new IPNumber(i); // assign ip address from file
      public static void main(String args[]){
        new Test();
    }or you could store the ips as strings:
    public class Test {
      public Test() {
        final int numberOfIPs = 5; // this is your number of lines
        final java.util.ArrayList al = new java.util.ArrayList(numberOfIPs);
        for (int i = 0; i < numberOfIPs; i++) al.add(""+i); // assign ip address from file   
      public static void main(String args[]){
        new Test();
    }p.s Objects don't have names

  • How to create OO Database from class diagrams?

    I am new to use JDeveloper. I create UML class diagrams (using Entity Object) in JDeveloper, which has inheritances and associations, and then choose Create Database Objects... try to create oo database, but it only create some tables in the database, not any object types ... .
    What do I missed? Or I have to create those oo database objects manually?
    Thanks.

    If the Location of the datafiles is similar to that of source database then you can consider below steps
    Create Oracle Service using oradim
    set ORACLE_SID=NEWDB
    oradim -new -sid NEWDB -intpwd passwordofthesys -startmode M
    Connect to the RMAN
    rman>rman target /
    restore spfile/pfile and control file from backup
    rman>restore spfile to pfile '_localtion of the initNEWDB.ora_' from '_location of the SPFILE Backuppiece_';
    rman>startup nomount pfile='localtion of the initNEWDB.ora';
    rman>restore controlfile from 'file location of the controlfile Backuppiece';
    rman>alter database mount;
    Catalog the RMAN backuppiece of source database
    rman>catalog backuppiece '_location of the rman backuppiece of source database_ ';
    resotore & recover database
    rman>restore database;
    rman>recover database;
    open the database with reset logs
    rman>alter database open resetlogs;
    rman>create spfile from pfile;
    rman>shutdown immediate;
    rman>startup;
    ==================
    If you have access to source database then you can clone using below rman command:
    +rman target _<source database>_ auxiliary _<new database>_+
    rman>duplication target database to _<your new database name>_;
    ==========
    If the location of the datafiles and logfiles are different from source database then you need to add db_file_name_convert and log_file_name_convert to the pfile before starting the recovery process.

  • How to creat odjects with dynamivc class name

    hi i have a problem with class names. i have in my program one father class and a lot of extend classes in the father class. one of this classes is a test class. I want to create an object and the object class must be given dynamic from the keyboard and to be one of the extended classes. how i can do that

    It is possible to create an object of a class whose name is known at runtime (as above, the Class.forName() thing) but it's messy and complete overkill for what you are trying to do.
    These days when I have to distinguish a limited number of words (e.g. car, van,..) I use an enum. You can use MyEnum.valueOf(String name) to find the enum value from an input string, catch IllegalArgumentException to deal with an unmatched input.
    Try something like:
    public enum VehicleType {
        car { public Father create() { return new Car(); }},
        plane { public Father create() { return new Plane();} }.
          .. etc.
      public abstract Father create();
    try {
        Father vehicle = VehicleType.valueOf(vehicleTypeName.toLowerCase()).create();
      } catch(IllegalArgumentException ex) {
         System.out.println("Unknown type " + vehicleTypeName);
    }

Maybe you are looking for