Steps to create a Repository

hi there,
Can you guide me the steps to create a repository?
thanks

HI,
An Oracle-by-example tutorial might be of interest for you.
http://st-curriculum.oracle.com/obe/fmw/bi/biee/r1013/bi_admin/biadmin.html
It explains how to create a repository using a sample database schema.
Assuming some basic SQL and database knowledge this should be sufficient to introduce you.
kind
regards

Similar Messages

  • What are the basic steps for creating a content repository?

    I am trying to create a document store on a file system (fsdb) that will hold files that are ftp's to that location. Is this possible using KM? If so, what are the basic steps for creating a file system repository and using it through KM? I have found stuff on help.sap.com but that only tells you what each component does not what actual steps need to be taken to setup KM, such as user rights , creating an entry point, so that all of KM is not visible, etc...
    If anyone knows of any guides that show a step by step process that would be great too.
    Thanks
    Paul

    Hi Paul
    First of all you need to create a new repository
    Suppose you want to add all the documents under folder Paul under C: Drive
    (Even you can put whole documents of C: drive into Paul)
    Navigate to System Admin -> System Configuration -> Knowledge management -> Content Management -> Repository Manager -> File System Repository
    There you can create a new directory by clicking on button New
    Give the parameters as follows :-
    Name               :           Anything you like
    Description       :           Anything you want
    Prefix (must start with /)  :  Probably same as your repository name like \Paul
    Lookup mode : caseless
    Root Directory   :  C:\Paul
    NOTE:  This is the trick. You need to give the proper path means folder path which you want use as repository)
    Repository Services  :  Any services you want
    Property Search : Managercom.sapportals.wcm.repository.manager.generic.search.SimplePropertySearchManager
    Security Manager         :           AclSecurityManager
    ACL Manager Cache   :           ca_cm_rep_acl
    The save it
    Now see whether the same repository is coming under KM Content or not, if not may be after restart it will come.
    I think the above information will help you. If still you have problem, please feel free to contect me.
    Regards,
    Chamkaur

  • How to create a repository(not just custom) using your hard drive

    I don't know if many people know about this, so I am giving this a shot. There are three major articles on wiki.archlinux.org: Custom local repository,
    Using a CD-ROM as a repository, and Offline Installation of Packages. These are available online through the WIKIs at archlinux.org.
    I was first confused because when I was reading "Offline installation of packages", I didn't know what these ".db.tar.gz" files where. I came mainly from a Debian / Ubuntu
    background (I actually tried many distros before this), so getting used to the way the repository works and no graphical install manager for it. However, I enjoyed a challenge and
    I found out that these are database packages that contain descriptions and locations on where these files are located. The ones on the ftp server are already compiled. I don't know if,
    however they are compiled with the most recent versions.
       With all that said, I thought you had to have it all in one directory in order for this to work, but as it turns out, location is not really an issue. I decided to have a directory reside on the root.
    I chose root because it's only for the install of my own packages. I could have done it as a seperate user account, such as "repos" in PCLinuxOS (another distro I tried). I didn't want to have a seperate account for this. Therefore, I created "/root/repository". Within this directory I created directories for all repository archives. I basically did a "cd /mnt/dvd" and migrated to the particular repository directories. I would copy all the "pkg.tar.gz" files into their respective directories with "cp * ~/repository/<name-of-dir>". For intance, I started with the "core" directory, because there was some things I didn't install in the core directory during installation and if the packages needed it, it was there. This follows for the rest of the directories, such as "community", "testing", and "unstable", etc.You can go to the ftp mirrors to find out what directories are available. The main point is that your files should be in the format ".pkg.tar.gz". These are package files that get converted into a sort of database format that as I mentioned, informs the system the description and where the files are located, and so on.
       The command to perform this, is "tar -xvf /root/repository/core/core.db.tar.gz *.pkg.tar.gz". You can replace core with whatever repository you are adding. So, for example, "extra.db.tar.gz" would be in the "extra" directory. This information is located in the "Offline installation of packages".  The command to create this database is called, "repo-add".
    The format for this command is "repo-add /path/to/dir.db.tar.gz *.pkg.tar.gz". So, if it's the core packages you would "cd ~/repository/core" and "repo-add core.db.tar.gz *.pkg.tar.gz".
      Then, you need to edit the "/etc/pacman.conf" configuration file for pacman. I basically would comment all out except for the repositories I need. So, for example "[core]" and "/etc/pacman.d/core" would tell where normally the servers are located for these files. This information is located int the "Custom local repository" article.using the "repo-add" command.
       Furthermore, I edited each server file located in "/etc/pacman.d/<repository>" where repository is core, extra, etc. I would perform,  "nano /etc/pacman.d/core" for example and comment out all servers. I then add a "local repository" by typing in "file:///root/repository/core", saved it, and then did a "pacman -Sy" to update the repository database. Now, I can do "pacman -S <package-name>" where package-name is whatever I wanted to install. Voila! Please let me know of any suggestions, questions, insights, or comments. I hope I'm not missing anything in this article. I do remember using "rm -rf * in the "/var/lib/pacman/<repository>"directories and using "tar xvf <repository>.db.tar.gz". I don't if that something to do with it, though. Be careful with the "rm -rf *" command, because you can erase your hard drive if you are not careful, for those who aren't informed.
    P.S. Please note all these are done with the root user.

    pressh wrote:
    gradgrind wrote:
    smitty wrote:pressh, I understand and appreciate your point of view... well taken! Are you implying that I should have written in steps, such as 1, 2, and 3? Also, should I have got ridden of the redundant information if it is contained in the Wiki article and / or  taken out the commands on how to apply them and left only with the explanation? Is this what you imply? Sorry if I seem redundant with these questions, but I'm curious so I can improve for the future. I am new to this and open to any suggestion and comments.
    Maybe you could either edit the existing wiki pages where they were not clear to you, or else add a new wiki page, or both. Certainly give the whole a clearer (visual) structure, and (if they don't already exist) add links between the connected wiki pages.
    Yes that is partly what I mean. Further you could get rid of the information that is not really needed to follow the guide (for example what the command 'repo-add' does. People could if they are interested look it up in the script itself, or you could add it here and link to it).
    And yes a bit of structure would be nice. You don't have to nessesarily call it 1,2,3, as long as it has some kind of structure in it (the visual point is very important here). You could take a look at existing wiki pages on the web and see how most of them (not all of them are good of course) are structured.
    That's a good point, too. How do I found out what articles are more effective? I am doing research on this particular matter at the moment and came across articles that have tips on technical writing. Could this help in the long run? Or, is it better to get feedback from other users and improve that way? In other words, do first, and ask later, as one user point out?

  • Help! how to create a repository correctly of owb?

    I have installed oracle11 in the directory c:\app\***\product\11.1.0\db_1 and installed owb in the directory c:\app\***\product\11.1.0\owb11gr1. When i tried to Create a Repository Using the Repository Assistant, the system gives out an error message:OWBSYS is not granted access to owb home/owb/bin/admin/rtrepos.properties:Please run UnifiedRepos/reset_owbcc_home.sql specifiying the path of the Oracle Home from which the Control Center Service is being run.
    Then I run the script reset_owbcc_home.sql and put in "C:/app/***/product/11.1.0/owb11gr1" according to the prompt.
    But it still can not work, it gives out another error,"there is no table or views"
    Can anyone tell me how to create a repository correctly?
    Thanks!

    With your database 11g install OWB is already installed under the ORACLE_HOME's owb directory. You should/could have just used it.
    I'd suggest a cleanout and start again, here are the steps:
    1. Close any open OWB
    2. from db home,
    Stop runtime service - cd owb/rtp/sql sqlplus OWBSYS/OWBSYS @stop_service
    3. drop your target user, design user
    4. cleanout OWBSYS, recreate:
    cd owb/UnifiedRepos
    sqlplus using your sysdba
    @clean_owbsys
    @cat_owb <tablespace_of_your_choice)
    Now run reposinst.bat from your database Oracle home
    Cheers
    David

  • Steps to create a Scenario in XI.

    Hi All,
    Can someone send me Step by step procedure to create a Scenario in XI. What all steps are involved in Repository and Directory.
    Thanks,
    Shridhar.

    Hi,
    Here is some of scenarios link, hope this will help.
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters - IDoc to File
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy - ABAP Proxy to File
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 - File to JDBC
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy - File to ABAP Proxy
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1 - File to File Part 1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2 - File to File Part 2
    /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping - Any flat file to any Idoc
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] [original link is broken] - File to Mail
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i - Dynamic File Name Part 1
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii - Dynamic File Name Part 2
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm - Collection of IDoc to Single File
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address - Dynamic Mail Address
    /people/siva.maranani/blog/2005/05/25/understanding-message-flow-in-xi - Message Flow in XI
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm - Walk through BPM
    Thanks,
    Prateek

  • Created Migration Repository by accident as Apps User! Can I undo it?

    I am a very stupid fool, and I am scared that I might have done something to one of our clones on PROD via something I just did in SQL Developer. I am too much of a coward to mention it to one of our DBAs as violence may result from my admission!
    I was following this guide:
    http://www.oracle.com/technology/obe/11gr1_db/appdev/msamigrate/msamigrate.htm
    In case you need it, this is the result from "select * from v$version":
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE     10.2.0.4.0     Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
    NLSRTL Version 10.2.0.4.0 - Production
    Anyway, I got to this bit, while connected to the DB as apps user (yes, stupid I know).
    On the web guide, I got to this step:
    Creating the Migration Repository > 3 > Now you can create the repository in this users connection. Right click on the omwbrep_orcl connection and select Associate Migration Repository
    As soon as I clicked it, and it started churning away, I realised I was way, way, way out of my depth, creating stuff on the DB as an apps user (aaaaah, I am a fool).
    I cancelled the operation, and was told that something had been created.
    I am now really worried I've done something really bad on the database, but I have no idea what I just did, how to check what I did, and if possible, how to undo it.
    Any advice much appreciated, and my apologies for being so stupid, and doing stuff as an Apps user without knowing what I was doing.
    Thanks

    Aaah. I just read this in the JDeveloper help doc:
    Delete or Truncate Repository
    The Delete Repository dialog box is displayed if you click Migration, then Repository Management, then Delete Repository; the Truncate Repository dialog box is displayed if you click Migration, then Repository Management, then Truncate Repository.
    Deleting a repository removes all schema objects that are used for the migration repository. Truncating a repository deletes all data from schema objects that are used for the migration repository, but does not delete the schema objects themselves, effectively leaving you with an empty repository.
    Repository: Name of the database connection in which to delete or truncate the migration repository.
    I therefore went to Migration Repository > Delete Migration Repository, thinking I would be able to confirm / view anything first, but it just went ahead and deleted a load of stuff.
    Can anyone advise please if I have just done something even more stupid than creating a repository in the first place, and then cancelling the operating part way through?
    Good grief, I am so stupid :(

  • Steps to create JCO to call R3 Function module in ISA CRM b2b webshop

    Hi experts,
    Can u help me in creating a JCo connection to R3 from CRM isa b2b webshop.
    See i am working on CRM 5.0 isa . I have a default jco connection calling to CRM.
    But i wanted an another JCO to call FM of R3.
    Can u pls give me the steps in creating this jco (XCM, Xml, changes etc )?
    Hope you have understood my question.
    Pls reply,
    thanks in advance,
    Niraja.

    Hi Niraja,
    The second option would be easy to do, as the connection is already made you can just use the connection pool.
    I feel maintaining/creating two connections would lead to performance issues.
    So its better to go with FM in CRM to FM in R/3
    If you want to go for a different connection or connection pool then follow this example
    In the world of database connectivity, creating individual connections to a database system is technically expensive and often incurs unwanted overhead in both client and server-side applications. Connection pools allow your application to check connections out from a pool and release a connection once the transaction has completed. This tip briefly explores the value and implementation of using connection pools in JCo.
    The following code presents two classes that demonstrate the use of a connection pool and its restrictions. You should be able to pull code from this example when adding pooling to your own Java/JCo application.
    The first JCo application does not use pooling:
    import com.sap.mw.jco.*;
    public class JcoTest {
    private static JCO.Client theConnection;
    private static IRepository theRepository;
    public static void main(String[] args) {
      createConnection();
      retrieveRepository();
      try {
      JCO.Function function = getFunction("RFC_READ_TABLE");
      JCO.ParameterList listParams = function.getImportParameterList();
      listParams.setValue("BSAUTHORS", "QUERY_TABLE");
      theConnection.execute(function);
      JCO.Table tableList = function.getTableParameterList().getTable("DATA");
      if (tableList.getNumRows() > 0) {
       do {
        for (JCO.FieldIterator fI = tableList.fields();
          fI.hasMoreElements();)
          JCO.Field tabField = fI.nextField();
          System.out.println(tabField.getName()
               + ":t" +
               tabField.getString());
         System.out.println("n");
       while (tableList.nextRow() == true);
      catch (Exception ex) {
       ex.printStackTrace();
    private static void createConnection() {
      try {
       theConnection = JCO.createClient("000", "DDIC", "minisap", "en", "sincgo", "00");
       theConnection.connect();
      catch (Exception ex) {
       System.out.println("Failed to connect to SAP system");
    private static void retrieveRepository() {
      try {
       theRepository = new JCO.Repository("saprep", theConnection);
      catch (Exception ex)
       System.out.println("failed to retrieve repository");
      public static JCO.Function getFunction(String name) {
        try {
             return theRepository.getFunctionTemplate(name.toUpperCase()).getFunction();
        catch (Exception ex) {
         ex.printStackTrace();
          return null;
    To add connection pooling you simply add this code to the beginning of the main method:
        if (connPool == null) {
          JCO.addClientPool(POOL_NAME,
                            5,
                            "000",
                            "bcuser",
                            "minisap",
                            "EN",
                            "sincgo",
                            "00");
    And replace the call to the createConnection() method with this:
             theConnection = JCO.getClient(POOL_NAME);
    The code should now look like this:
    import com.sap.mw.jco.*;
    public class JcoTest {
    private static JCO.Client theConnection;
    private static IRepository theRepository;
        private static final String POOL_NAME = "myPool";
    public static void main(String[] args) {
        JCO.Pool connPool = JCO.getClientPoolManager().getPool(POOL_NAME);
        if (connPool == null) {
          JCO.addClientPool(POOL_NAME,
                            5,      //number of connections in the pool
                            "client",
                            "username",
                            "paswword",
                            "EN",
                            "hostname",
                            "00");
            theConnection = JCO.getClient(POOL_NAME);
      retrieveRepository();
      try {
      JCO.Function function = getFunction("RFC_READ_TABLE");
      JCO.ParameterList listParams = function.getImportParameterList();
      listParams.setValue("BSAUTHORS", "QUERY_TABLE");
      theConnection.execute(function);
      JCO.Table tableList = function.getTableParameterList().getTable("DATA");
      if (tableList.getNumRows() > 0) {
       do {
        for (JCO.FieldIterator fI = tableList.fields();
          fI.hasMoreElements();)
          JCO.Field tabField = fI.nextField();
          System.out.println(tabField.getName()
               + ":t" +
               tabField.getString());
         System.out.println("n");
       while (tableList.nextRow() == true);
      catch (Exception ex) {
       ex.printStackTrace();
      JCO.releaseClient(theConnection);
    private static void retrieveRepository() {
      try {
       theRepository = new JCO.Repository("saprep", theConnection);
      catch (Exception ex)
       System.out.println("failed to retrieve repository");
      public static JCO.Function getFunction(String name) {
        try {
             return theRepository.getFunctionTemplate(name.toUpperCase()).getFunction();
        catch (Exception ex) {
         ex.printStackTrace();
          return null;
    Now, when this class executes, it will create a pool of 5 SAP connections. Once created, a single connection is retrieved and executed against. After the call to SAP has finished, the connections are released with:
    JCO.releaseClient(theConnection);
    You can easily integrate this code in any application that acts as a server or requires multiple users to access SAP via the Web.
    Regards,
    Sateesh Chandra

  • Creating a repository

    Dears ,
    i want to create repository in order to can upload an employee pic ... but i dont know the settings or what configurations shall i select ... could u plz help creating the repository ?
    1- i want to know which storage type shall i use , i have the following :
              - sap system database
              - http content server
              - logical repository
              - rfc archive
              - structure storage system

    Yes, but it is a multi-step process. First, you have to do a design capture of the table definitions into your repository. Start the Design Editor. If you haven't set up a database definition under the DB Admin tab, you'll need to do that first. Then, choose the Generate menu, Capture Design of ... and choose Server Model. The Source of Design Capture will be DDL Files - in other words, your table scripts. Follow the wizard.
    Once you have your table definitions in your repository, you can create a Database Diagram, which is quite similar to an Entity Relationship Diagram. Just drag your table definitions from the navigation tree into the gray diagram area to the right
    Or you can reverse engineer your table definitions into Entity definitions and do real ER Diagrams. You can't do that in the Design Editor, so close it, and open the ER diagrammer. Use the Table to Entity Retrofit utility, found on the Utilities menu, and follow the wizard. This will transform your Table Definitions into Entity definitions. Then you can start a new ER diagram, drop down the Edit menu, and Include your new Entities on the diagram.

  • Create new repository fails in 3.1.1

    I have created a repository and presented it successfully to my server pool. However, I have just created some smaller iSCSI disks, I can see them in /dev/mapper/* and in the output of multipath -ll on the server.
    When I try to create a new repository with any of these disks, I get the following errors:
    Job Construction Phase
    begin()
    Appended operation 'File System Construct' to object '0004fb0000090000d3719cda71809253 (Local FS ovs1-ec)'.
    Appended operation 'Cluster File System Present' to object '4d78ff97a1c4ff0a'.
    Appended operation 'Repository Construct' to object '0004fb0000030000df48b31e261ce8f2 (EMC (4))'.
    commit()
    Completed Step: COMMIT
    Objects and Operations
    Object (IN_USE): [LocalFileServer] 0004fb0000090000d3719cda71809253 (Local FS ovs1-ec)
    Operation: File System Construct
    Object (CREATED): [Repository] 0004fb0000030000df48b31e261ce8f2 (REPOS_02)
    Operation: Repository Construct
    Object (IN_USE): [Cluster] 4d78ff97a1c4ff0a
    Operation: Cluster File System Present
    Object (IN_USE): [StorageElement] 0004fb0000180000311481f0da38f742 (EMC (4))
    Object (CREATED): [LocalFileSystem] 0004fb0000050000723de9e923b8a32e (fs_REPOS_02)
    Job Running Phase at 12:49 on Fri, Jun 8, 2012
    Job Participants: [44:45:4c:4c:39:00:10:37:80:4c:b8:c0:4f:57:34:4a (ovs1-ec)]
    Actioner
    Starting operation 'File System Construct' on object '0004fb0000050000723de9e923b8a32e (fs_REPOS_02)'
    Job: 1339152552728, aborted post-commit by user: admin
    Write Methods Invoked
    Class=InternalJobDbImpl vessel_id=8334 method=addTransactionIdentifier accessLevel=6
    Class=LocalFileServerDbImpl vessel_id=761 method=createFileSystem accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setName accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setFoundryContext accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=onPersistableCreate accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setLifecycleState accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setRollbackLifecycleState accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setRefreshed accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setBackingDevices accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setUuid accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setPath accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setSimpleName accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=addFileServer accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setStorageDevice accessLevel=6
    Class=StorageElementDbImpl vessel_id=8074 method=addLayeredFileSystem accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setSimpleName accessLevel=6
    Class=ClusterDbImpl vessel_id=1109 method=addLocalFileSystem accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setCluster accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setAsset accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=createRepository accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setName accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setFoundryContext accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=onPersistableCreate accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setLifecycleState accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setRollbackLifecycleState accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setRefreshed accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setDom0Uuid accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setSharePath accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setSimpleName accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setFileSystem accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=addRepository accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setManagerUuid accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setVersion accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=addJobOperation accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setSimpleName accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setDescription accessLevel=6
    Class=InternalJobDbImpl vessel_id=8334 method=setCompletedStep accessLevel=6
    Class=InternalJobDbImpl vessel_id=8334 method=setAssociatedHandles accessLevel=6
    Job Internal Error (Operation)com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_B000E Storage plugin command [storage_plugin_createFileSystem] failed for storage server [0004fb0000090000d3719cda71809253] failed with [com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: dispatch to server: ovs1-ec failed. OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/2 storage_plugin_createFileSystem oracle.ocfs2.OCFS2.OCFS2Plugin 0004fb0000050000723de9e923b8a32e /dev/mapper/35000144f72319419 0, Status: java.lang.InterruptedException
    Fri Jun 08 12:51:14 CEST 2012
    Fri Jun 08 12:51:14 CEST 2012] OVMAPI_4010E Attempt to send command: dispatch to server: ovs1-ec failed. OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/2 storage_plugin_createFileSystem oracle.ocfs2.OCFS2.OCFS2Plugin 0004fb0000050000723de9e923b8a32e /dev/mapper/35000144f72319419 0, Status: java.lang.InterruptedException
    Fri Jun 08 12:51:14 CEST 2012
    Fri Jun 08 12:51:14 CEST 2012
    Fri Jun 08 12:51:14 CEST 2012
    at com.oracle.ovm.mgr.action.StoragePluginAction.processException(StoragePluginAction.java:1371)
    at com.oracle.ovm.mgr.action.StoragePluginAction.createFileSystem(StoragePluginAction.java:894)
    at com.oracle.ovm.mgr.op.physical.storage.FileSystemConstruct.createFileSystem(FileSystemConstruct.java:57)
    at com.oracle.ovm.mgr.op.physical.storage.FileSystemConstruct.action(FileSystemConstruct.java:49)
    at com.oracle.ovm.mgr.api.collectable.ManagedObjectDbImpl.executeCurrentJobOperationAction(ManagedObjectDbImpl.java:1009)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:330)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:290)
    at com.oracle.odof.core.storage.Transaction.invokeMethod(Transaction.java:822)
    at com.oracle.odof.core.Exchange.invokeMethod(Exchange.java:245)
    at com.oracle.ovm.mgr.api.physical.storage.LocalFileServerProxy.executeCurrentJobOperationAction(Unknown Source)
    at com.oracle.ovm.mgr.api.job.JobEngine.operationActioner(JobEngine.java:218)
    at com.oracle.ovm.mgr.api.job.JobEngine.objectActioner(JobEngine.java:309)
    at com.oracle.ovm.mgr.api.job.InternalJobDbImpl.objectCommitter(InternalJobDbImpl.java:1140)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:330)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:290)
    at com.oracle.odof.core.BasicWork.invokeMethod(BasicWork.java:136)
    at com.oracle.odof.command.InvokeMethodCommand.process(InvokeMethodCommand.java:100)
    at com.oracle.odof.core.BasicWork.processCommand(BasicWork.java:81)
    at com.oracle.odof.core.TransactionManager.processCommand(TransactionManager.java:773)
    at com.oracle.odof.core.WorkflowManager.processCommand(WorkflowManager.java:401)
    at com.oracle.odof.core.WorkflowManager.processWork(WorkflowManager.java:459)
    at com.oracle.odof.io.AbstractClient.run(AbstractClient.java:42)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: dispatch to server: ovs1-ec failed. OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/2 storage_plugin_createFileSystem oracle.ocfs2.OCFS2.OCFS2Plugin 0004fb0000050000723de9e923b8a32e /dev/mapper/35000144f72319419 0, Status: java.lang.InterruptedException
    Fri Jun 08 12:51:14 CEST 2012
    Fri Jun 08 12:51:14 CEST 2012
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:507)
    at com.oracle.ovm.mgr.action.ActionEngine.sendDispatchedServerCommand(ActionEngine.java:444)
    at com.oracle.ovm.mgr.action.ActionEngine.sendServerCommand(ActionEngine.java:378)
    at com.oracle.ovm.mgr.action.StoragePluginAction.createFileSystem(StoragePluginAction.java:890)
    ... 27 more
    Caused by: com.oracle.ovm.mgr.api.exception.IllegalOperationException: OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/2 storage_plugin_createFileSystem oracle.ocfs2.OCFS2.OCFS2Plugin 0004fb0000050000723de9e923b8a32e /dev/mapper/35000144f72319419 0, Status: java.lang.InterruptedException
    Fri Jun 08 12:51:14 CEST 2012
    at com.oracle.ovm.mgr.action.ActionEngine.sendAction(ActionEngine.java:798)
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:503)
    ... 30 more
    FailedOperationCleanup
    Starting failed operation 'File System Construct' cleanup on object 'fs_REPOS_02'
    Complete rollback operation 'File System Construct' completed with direction=fs_REPOS_02
    Rollbacker
    Executing rollback operation 'File System Construct' on object '0004fb0000050000723de9e923b8a32e (fs_REPOS_02)'
    Complete rollback operation 'File System Construct' completed with direction=DONE
    Objects To Be Rolled Back
    Object (IN_USE): [LocalFileServer] 0004fb0000090000d3719cda71809253 (Local FS ovs1-ec)
    Object (CREATED): [Repository] 0004fb0000030000df48b31e261ce8f2 (REPOS_02)
    Object (IN_USE): [Cluster] 4d78ff97a1c4ff0a
    Object (IN_USE): [StorageElement] 0004fb0000180000311481f0da38f742 (EMC (4))
    Object (CREATED): [LocalFileSystem] 0004fb0000050000723de9e923b8a32e (fs_REPOS_02)
    Write Methods Invoked
    Class=InternalJobDbImpl vessel_id=8334 method=addTransactionIdentifier accessLevel=6
    Class=LocalFileServerDbImpl vessel_id=761 method=createFileSystem accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setName accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setFoundryContext accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=onPersistableCreate accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setLifecycleState accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setRollbackLifecycleState accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setRefreshed accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setBackingDevices accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setUuid accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setPath accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setSimpleName accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=addFileServer accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setStorageDevice accessLevel=6
    Class=StorageElementDbImpl vessel_id=8074 method=addLayeredFileSystem accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setSimpleName accessLevel=6
    Class=ClusterDbImpl vessel_id=1109 method=addLocalFileSystem accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setCluster accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=setAsset accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=createRepository accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setName accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setFoundryContext accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=onPersistableCreate accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setLifecycleState accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setRollbackLifecycleState accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setRefreshed accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setDom0Uuid accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setSharePath accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setSimpleName accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setFileSystem accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=addRepository accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setManagerUuid accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setVersion accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=addJobOperation accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setSimpleName accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=setDescription accessLevel=6
    Class=InternalJobDbImpl vessel_id=8334 method=setCompletedStep accessLevel=6
    Class=InternalJobDbImpl vessel_id=8334 method=setAssociatedHandles accessLevel=6
    Class=LocalFileServerDbImpl vessel_id=761 method=nextJobOperation accessLevel=6
    Class=InternalJobDbImpl vessel_id=8334 method=setFailedOperation accessLevel=6
    Class=LocalFileServerDbImpl vessel_id=761 method=nextJobOperation accessLevel=6
    Class=RepositoryDbImpl vessel_id=8348 method=nextJobOperation accessLevel=6
    Class=ClusterDbImpl vessel_id=1109 method=nextJobOperation accessLevel=6
    Class=StorageElementDbImpl vessel_id=8074 method=nextJobOperation accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=8343 method=nextJobOperation accessLevel=6
    Class=LocalFileServerDbImpl vessel_id=761 method=nextJobOperation accessLevel=6
    Completed Step: ROLLBACK
    Job failed commit (internal) due to OVMAPI_B000E Storage plugin command [storage_plugin_createFileSystem] failed for storage server [0004fb0000090000d3719cda71809253] failed with [com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: dispatch to server: ovs1-ec failed. OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/2 storage_plugin_createFileSystem oracle.ocfs2.OCFS2.OCFS2Plugin 0004fb0000050000723de9e923b8a32e /dev/mapper/35000144f72319419 0, Status: java.lang.InterruptedException
    Fri Jun 08 12:51:14 CEST 2012
    Fri Jun 08 12:51:14 CEST 2012] OVMAPI_4010E Attempt to send command: dispatch to server: ovs1-ec failed. OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/2 storage_plugin_createFileSystem oracle.ocfs2.OCFS2.OCFS2Plugin 0004fb0000050000723de9e923b8a32e /dev/mapper/35000144f72319419 0, Status: java.lang.InterruptedException
    Fri Jun 08 12:51:14 CEST 2012
    Fri Jun 08 12:51:14 CEST 2012
    Fri Jun 08 12:51:14 CEST 2012
    com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_B000E Storage plugin command [storage_plugin_createFileSystem] failed for storage server [0004fb0000090000d3719cda71809253] failed with [com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: dispatch to server: ovs1-ec failed. OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/2 storage_plugin_createFileSystem oracle.ocfs2.OCFS2.OCFS2Plugin 0004fb0000050000723de9e923b8a32e /dev/mapper/35000144f72319419 0, Status: java.lang.InterruptedException
    Fri Jun 08 12:51:14 CEST 2012
    Fri Jun 08 12:51:14 CEST 2012] OVMAPI_4010E Attempt to send command: dispatch to server: ovs1-ec failed. OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/2 storage_plugin_createFileSystem oracle.ocfs2.OCFS2.OCFS2Plugin 0004fb0000050000723de9e923b8a32e /dev/mapper/35000144f72319419 0, Status: java.lang.InterruptedException
    Fri Jun 08 12:51:14 CEST 2012
    Fri Jun 08 12:51:14 CEST 2012
    Fri Jun 08 12:51:14 CEST 2012
    at com.oracle.ovm.mgr.action.StoragePluginAction.processException(StoragePluginAction.java:1371)
    at com.oracle.ovm.mgr.action.StoragePluginAction.createFileSystem(StoragePluginAction.java:894)
    at com.oracle.ovm.mgr.op.physical.storage.FileSystemConstruct.createFileSystem(FileSystemConstruct.java:57)
    at com.oracle.ovm.mgr.op.physical.storage.FileSystemConstruct.action(FileSystemConstruct.java:49)
    at com.oracle.ovm.mgr.api.collectable.ManagedObjectDbImpl.executeCurrentJobOperationAction(ManagedObjectDbImpl.java:1009)
    at sun.reflect.GeneratedMethodAccessor3334.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:330)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:290)
    at com.oracle.odof.core.storage.Transaction.invokeMethod(Transaction.java:822)
    at com.oracle.odof.core.Exchange.invokeMethod(Exchange.java:245)
    at com.oracle.ovm.mgr.api.physical.storage.LocalFileServerProxy.executeCurrentJobOperationAction(Unknown Source)
    at com.oracle.ovm.mgr.api.job.JobEngine.operationActioner(JobEngine.java:218)
    at com.oracle.ovm.mgr.api.job.JobEngine.objectActioner(JobEngine.java:309)
    at com.oracle.ovm.mgr.api.job.InternalJobDbImpl.objectCommitter(InternalJobDbImpl.java:1140)
    at sun.reflect.GeneratedMethodAccessor1528.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:330)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:290)
    at com.oracle.odof.core.BasicWork.invokeMethod(BasicWork.java:136)
    at com.oracle.odof.command.InvokeMethodCommand.process(InvokeMethodCommand.java:100)
    at com.oracle.odof.core.BasicWork.processCommand(BasicWork.java:81)
    at com.oracle.odof.core.TransactionManager.processCommand(TransactionManager.java:773)
    at com.oracle.odof.core.WorkflowManager.processCommand(WorkflowManager.java:401)
    at com.oracle.odof.core.WorkflowManager.processWork(WorkflowManager.java:459)
    at com.oracle.odof.io.AbstractClient.run(AbstractClient.java:42)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: dispatch to server: ovs1-ec failed. OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/2 storage_plugin_createFileSystem oracle.ocfs2.OCFS2.OCFS2Plugin 0004fb0000050000723de9e923b8a32e /dev/mapper/35000144f72319419 0, Status: java.lang.InterruptedException
    Fri Jun 08 12:51:14 CEST 2012
    Fri Jun 08 12:51:14 CEST 2012
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:507)
    at com.oracle.ovm.mgr.action.ActionEngine.sendDispatchedServerCommand(ActionEngine.java:444)
    at com.oracle.ovm.mgr.action.ActionEngine.sendServerCommand(ActionEngine.java:378)
    at com.oracle.ovm.mgr.action.StoragePluginAction.createFileSystem(StoragePluginAction.java:890)
    ... 27 more
    Caused by: com.oracle.ovm.mgr.api.exception.IllegalOperationException: OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/2 storage_plugin_createFileSystem oracle.ocfs2.OCFS2.OCFS2Plugin 0004fb0000050000723de9e923b8a32e /dev/mapper/35000144f72319419 0, Status: java.lang.InterruptedException
    Fri Jun 08 12:51:14 CEST 2012
    at com.oracle.ovm.mgr.action.ActionEngine.sendAction(ActionEngine.java:798)
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:503)
    ... 30 more
    End of Job
    ANy ideas of what may be wrong here? How to get past this issue? I´ve mounded the disk in order to see that it has already been formatted as OCFS2, but it doesn´t have the folders that a repository should have.
    Thanks!

    Oracle VM 3.1.1 - PROBLEMS

  • Steps to create BAPI

    could anyone tell me the exact steps to create a custom BAPI?
    (any example will be appreciated).
    thanks in advance
    nikhil

    Hi,
    BAPI stands for Business Application Programming Interface.
    There are 5 different steps in BAPI.
    Create BAPI Structure
    Create BAPI Function Module or API Method.
    Create BAPI object
    Release BAPI Function Module.
    Release BAPI object.
    Step1. Creating BAPI Structure:
    Go to <SE11>.
    Select Data Type & Enter a name.
    Click on Create.
    Note: Always BAPI should be in a development class with request number (Not Local Object).
    Select Structure & hit ENTER.
    Enter the fields from your database. Make sure that the first field is the Primary Key Field.
    Then SAVE & ACTIVATE.
    Step 2. Creating BAPI module:
    Enter TR.CODE <SE37>.
    Before entering any thing, from the present screen that you are in, select the menu
    Goto -> Function Groups -> Create Group.
    Enter a name (Note: This name Must start with ZBAPI)
    Let this screen be as it is and open another window and there, enter TR.CODE <SE80).
    Click on the Third ICON that says Inactive Objects.
    Select the group that you just created and click on Activate.
    Notice that the group you created will disappear from the list of inactive objects.
    Go back to ><SE37> screen and enter a name and hit <ENTER>. Then enter the group name that you just created and activated.
    NOTE: When you release a function module the respective group will be attached to that particular application. It cannot be used for any other application. NEVER include an already existing group that is attached to another module.
    Now click on the first Tab that says ATTRIBUTES and select the radio button that says remote-enabled module since we will be accessing this from any external system.
    Then click on the second tab that says IMPORT.
    Enter a PARAMETER NAME, TYPE and the structure you created in the first step. Also select the check box ‘Pa’. All remotely enabled functional modules MUST be Pa enabled, where Pa means ‘Passed by Value’ and if you don’t select ‘Pa’, then that means it will be passed by reference..
    Then click on tab that says EXPORT.
    Enter the following as is in the first three fields
    RETURN TYPE BAPIRETURN (These 3 field values are always same)
    Here also select ‘Pa’ meaning Pass by value.
    Note: BAPIRETURN contains structure with message fields.
    Then SAVE and ACTIVATE.
    Step 3. Creating BAPI object:
    Enter Tr.Code <SWO1> (Note. It is letter ‘O’ and not Zero).
    Enter a name and then click on create. Enter details.
    NOTE: Make sure that that Object Type and Program name are SAME.
    Enter Application ‘M’, if you are using standard table Mara. If you are using your own database then select ‘Z’ at the bottom.
    Then hit <ENTER>.
    Now we have to add ‘Methods’. High light METHODS and then select the following from the menu:
    Goto Utilities -> API Methods -> Add Methods.
    Enter function Module name and hit <ENTER>.
    Select the second FORWARD ARROW button (>)to go to next step.
    Check if every thing looks ok and again click on FORWARD ARROW button (>).
    Then select ‘YES’ and click on <SAVE>.
    Now on a different screen goto TR.CODE <SE37>. Enter Function Module name and select from the top menu Function Module -> Release -> Release.
    Goback to TR.CODE <SWO1>.
    Here select the menu combination shown below in the same order.
    Edit -> Change Release Status -> Object Type Component -> To Implemented.
    Edit -> Change Release Status -> Object Type Component -> To Released.
    Edit -> Change Release Status -> Object Type -> To Implemented.
    Edit -> Change Release Status -> Object Type -> To Released.
    Then click on <SAVE>.
    Then click on Generate Button (4th button from left hand side looks like spinning wheel).
    Then Click on the button that says ‘PROGRAM’ to see the source code.
    To check if this is present in work flow goto TR.CODE <BAPI>.
    Here it shows business object repository.
    First click on the middle button and then select “ALL” and hit ENTER.
    Goto tab ALPHABETICAL and look for the object that you created. This shows that the BAPI object has been created successfully.
                or
    1. Go to transaction SWO1. Enter object interface type. Eg.(ZOBJ)
    2.Change the object type release status to implemented and save the object type.
    3. Using Z_BAPI (created from SE37) create an API method in the new object type.
    4. In the created BOR object ZOBJ, create a new method using the function module template.
    5. Input as function module name Z_BAPI.
    6.Check the Instance Independent checkbox and click on the next button to continue.
    7. On the parameters screen validate whether all the needed parameters are present and click on next.
    8. Click Yes on the Extend program dialog to generate the call in the new method.
    9. Change the release status of the object type to “To released”
    10. Change also the release status of the method type to “To released”
    11. Double-click on the new method ZBAPI and go to the tab ABAP and change the ABAP type from Function Module to API method.
    12. Finally click on Generate button to generate the object interface and save the object type.
    Hope it somehow gets you an idea how to implement a BAPI based on a FM created in SE37.
    Check the below link..
    http://www.sap-img.com/abap/bapi-step-by-step-guidance.htm
    http://www.erpgenie.com/abap/bapi/example.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    http://www.allsaplinks.com/bapi_example.html
    Reward if helpful.
    Regards,
    Harini.S

  • Steps to create User ID and assigne roles.

    Hi,
    What are the steps to create User ID using BAPI_USER_CREATE1.
    How can I assign an User the role ECC/PORTAL/BI?
    Thanks in Advance
    Roy

    Am not sure what type of BI server installation you have...
    But here's one way you could create your users.
    From the BI Administration Tool --> Open your repository either offline or online --> From the menu click on Manage --> Security--> Here's where you could create your users, groups etc., set what subject areas each user/group should have access to --> After creating your users/groups you could double-click on the user or group and set permissions.
    Hope this helps,
    -Esther

  • Steps too create connection between OBIEE and Datamart on UNIX box..

    Hi experts..
    I have created one repository on my windows machine. Now i need to transfer this repositry on UNIX BOX.. So
    1. Please tell me the steps to make a connection between OBIEE and datamart.
    2. which files i need to transfer from windows machine to UNIX Box..

    Are you asking how to connect to an Oracle database from OBIEE in Unix? (Your question is too vague as datamart could mean anything) If so, read this thread:
    Re: How to connect Linux OBIEE repository to database?

  • Creating work repository

    Hi,
    Can anyone provide me steps for creating second work repository. I tried to do this in ODI Studio but there are only options for reattach or override existing repository.
    Thanks

    Hi Adam,
    In ODI Studio in Topology, you have a Repositories section.
    Right click on Work repositories and you can add a new one.
    http://st-curriculum.oracle.com/obe/fmw/odi/odi_11g/ODImaster_work_repos/ODImaster_work_repos.htm#t2
    Kr,
    Jerome

  • Steps for creating a new BAPI function module

    Hello experts,
    Can any one send me steps for creating a new BAPI function module , I got a requirement to do like this,but I dont have any clue about how to create.
    Please help !!!

    BAPI stands for Business Application Programming Interface.
    There are 5 different steps in BAPI.
    - Create BAPI Structure  
    - Create BAPI Function Module or API Method.  
    - Create BAPI object  
    - Release BAPI Function Module.  
    - Release BAPI object.
    Step1. Creating BAPI Structure:  
    - Go to <SE11>. 
    - Select Data Type & Enter a name. 
    - Click on Create.
    - Note: Always BAPI should be in a development class with request number (Not Local Object).
    - Select Structure & hit ENTER.
    - Enter the fields from your database. Make sure that the first field is the Primary Key Field.
    - Then SAVE & ACTIVATE.
    Step 2. Creating BAPI module: 
    - Enter TR.CODE <SE37>.
    - Before entering any thing, from the present screen that you are in, select the menu
       Goto -> Function Groups -> Create Group.
       Enter a name (Note: This name Must start with ZBAPI)
       Let this screen be as it is and open another window and there, enter TR.CODE <SE80).
       Click on the Third ICON that says Inactive Objects. 
       Select the group that you just created and click on Activate. 
       Notice that the group you created will disappear from the list of inactive objects.
    - Go back to <SE37> screen and enter a name and hit <ENTER>. Then enter the group name that you just created and activated.
    NOTE: When you release a function module the respective group will be attached to that particular application. It cannot be used for any other application. NEVER include an already existing group that is attached to another module.
    Now click on the first Tab that says [ATTRIBUTES] and select the radio button that says remote-enabled module since we will be accessing this from any external system.
    Then click on the second tab that says [IMPORT].
    Enter a PARAMETER NAME, TYPE and the structure you created in the first step. Also select the check box ‘Pa’. All remotely enabled functional modules MUST be Pa enabled, where Pa means ‘Passed by Value’ and if you don’t select ‘Pa’, then that means it will be passed by reference..
    Then click on tab that says [EXPORT].
    Enter the following as is in the first three fields 
      RETURN        TYPE        BAPIRETURN (These 3 field values are always same)
      Here also select ‘Pa’ meaning Pass by value.
    Note: BAPIRETURN contains structure with message fields.
    Then SAVE and ACTIVATE.
    Step 3. Creating BAPI object: 
    - Enter Tr.Code <SWO1>   (Note. It is letter ‘O’ and not Zero).
    - Enter a name and then click on create. Enter details. 
    NOTE: Make sure that that Object Type and Program name are SAME.   
    - Enter Application ‘M’, if you are using standard table Mara. If you are using your own database then select ‘Z’ at the bottom. 
    - Then hit <ENTER>. 
    - Now we have to add ‘Methods’. High light METHODS and then select the following from the menu: 
    Goto Utilities -> API Methods -> Add Methods.
    - Enter function Module name and hit <ENTER>.
    - Select the second FORWARD ARROW button (>)to go to next step. 
    - Check if every thing looks ok and again click on FORWARD ARROW button (>).
    - Then select ‘YES’ and click on <SAVE>.
    -  Now on a different screen goto TR.CODE <SE37>.  Enter Function Module name and select from the top menu  Function Module -> Release -> Release.
    - Goback to TR.CODE <SWO1>.
    Here select the menu combination shown below in the same order.
    - Edit -> Change Release Status -> Object Type Component -> To Implemented.
    - Edit -> Change Release Status -> Object Type Component -> To Released.
    - Edit -> Change Release Status -> Object Type -> To Implemented.
    - Edit -> Change Release Status -> Object Type -> To Released.
    - Then click on <SAVE>.
    - Then click on Generate Button (4th button from left hand side looks like spinning wheel).
    - Then Click on the button that says ‘PROGRAM’ to see the source code.
    To check if this is present in work flow goto TR.CODE <BAPI>. 
    Here it shows business object repository.
    - First click on the middle button and then select “ALL” and hit ENTER.
    - Goto tab [ALPHABETICAL] and look for the object that you created. This shows that the BAPI object has been created successfully.
    regards,
    aswin

  • Steps to create LOGICAL DATABASE in sap

    hi guys,
    i have gone through many documents about LDB. But, i didnt get the steps to create a LDB.
    plz provide me with the steps to be followed to create a LDB.
    thnx,
    shivaa.

    Hi Shiva,
    This might help you!
    Logical database structures
    There are three defining entities in an SAP logical database. You must be clear on all three in order to create and use one.
    Table structure: Your logical database includes data from specified tables in SAP. There is a hierarchy among these tables defined by their foreign keys (all known to SAP), and you are going to define a customized relationship between select tables. This structure is unique and must be defined and saved.
    Data selection: You may not want or need every item in the referenced tables that contributes to your customized database. There is a selection screen that permits you to pick and choose.
    Database access programming: Once youu2019ve defined your logical database, SAP will generate the access subroutines needed to pull the data in the way you want it pulled.
    Creating your own logical database
    ABAP/4 (Advanced Business Application Programming language, version 4) is the language created by SAP for implementation and customization of its R/3 system. ABAP/4 comes loaded with many predefined logical databases that can construct and table just about any conventional business objects you might need in any canned SAP application. However, you can also create your own logical databases to construct any custom objects you care to define, as your application requires in ABAP/4. Hereu2019s a step-by-step guide:
    1. Call up transaction SLDB (or transaction SE36). The path you want is Tools | ABAP Workbench | Development | Programming Environment | Logical Databases. This screen is called Logical Database Builder.
    2. Enter an appropriate name in the logical database name field. You have three options on this screen: Create, Display, and Change. Choose Create.
    3. Youu2019ll be prompted for a short text description of your new logical database. Enter one. Youu2019ll then be prompted to specify a development class.
    4. Now comes the fun part! You must specify a root node, or a parent table, as the basis of your logical database structure. You can now place subsequent tables under the root table as needed to assemble the data object you want. You can access this tree from this point forward, to add additional tables, by selecting that root node and following the path Edit | Node | Create. Once youu2019ve saved the structure you define in this step, the system will generate the programming necessary to access your logical database. The best part is you donu2019t have to write a single line of code.
    Watch out!
    The use of very large tables will degrade the performance of a logical database, so be aware of that trade-off. Remember that some tables in SAP are very complex, so they will be problematic in any user-defined logical database.
    Declaring a logical database
    Hereu2019s another surprising feature of logical databases: You do not assign them in your ABAP/4 Code. Instead, the system requires that you specify logical databases as attributes. So when you are creating a report, have your logical database identifier (the name you gave it) on hand when you are defining its attributes on the Program Attributes screen. The Attributes section of the screen (the lower half) will include a Logical database field, where you can declare your logical database.
    Logical databases for increasing efficiency
    Why else would you want to create a logical database? Consider that the logical databases already available to you begin with a root node and proceed downward from there. If the data object you wish to construct consists of items that are all below the root node, you can use an existing logical database program to extract the data, then trim away what you donu2019t want using SELECT statementsu2014or you can increase the speed of the logical database program considerably by redefining the logical database for your object and starting with a table down in the chain. Either way, youu2019ll eliminate a great deal of overhead.
    Reward if useful.
    Thankyou,
    Regards.

Maybe you are looking for

  • Two users on new Mac Pro?

    Hello, I am considering a new Mac Pro.  My wife and I both have separate Mac's now.  My question is with the new Mac Pro, can I have two user accounts (hers and mine) on the same machine that we can use at the same time?  More specifically, this woul

  • After installing Version 5 I get an error message about incompatibility and min and max versions.

    I shutdown Zone Alarm, and deleted the contents of the file, which contained the "exe" file, then reinstalled Firefox version 5.0. I still get the XUL Runner error message about incompatibility of Version 5.0 with min and max 5.0.1. What next?

  • Physical blocking in wcm sap

    dear masters In maintain operation data of WCM there is one option physical bloking, can any one tell me in simple own language whats the meaning of this and in which situation and where we can used it thanx

  • How to get selection screen details of any report dynamically

    Hi We have a requirement where we need to submit different reports based upon  certain conditions. I need to know FM or other way around to fetch the details of selection screen (name of selection screen parameters or select option and whether its a

  • Owa_util.listprint error

    Hi, I need a drop down list and am using this: owa_util.listprint('SELECT mc_id FROM or_menlo_clients','p_clientid',1,FALSE); but I'm getting this error: ERROR at line 1: ORA-01007: variable not in select list ORA-06512: at "SYS.DBMS_SYS_SQL", line 1