Create new object in Designer using CDAPI

Hi,
I need to create more database objects in every of my applications (issued of a migration). I try to used the CDAPI, CIO_....ins
, but an error occurs , ORA-06512: at "ORACASE.JR_SECONDARY_OBJECT", line 76.
I don't find sample of insert, I have already used the same API for update, with success.
So If someone have a sample for inserting...
Thanks.
Laurent

Code for create a new user based on an existing ...
declare
id number := 9918494455341698066818125528522996;
pl ciodatabase_user.data;
rm_indicators ciodatabase_user.rm_indicators;
begin
rm_indicators.Id := True;
rm_indicators.Name := True;
rm_indicators.irid := True;
rm_indicators.ivid := True;
rm_indicators.changed_by := True;
rm_indicators.created_by := True;
rm_indicators.initial_password := True;
ciodatabase_user.sel(id,pl);
pl.v.Id := NULL;
pl.v.irid := NULL;
pl.v.ivid := NULL;
pl.v.changed_by:= 'Donald Duck';
pl.v.created_by:= USER;
pl.v.initial_password:= 'TINTIN';
pl.v.Name := 'BOB';
dbms_output.put_line('pl.parent_ivid'||pl.v.parent_ivid);
ciodatabase_user.ins(null,pl);
end;

Similar Messages

  • Problem in creating new objects in ABAP workbench

    Hi ,
        I am getting error in a newly installed SAP system when try to create new objects in ABAP workbench. The error is like'No changes for the user allowed'.
    Can you tell me what the error is here? What can be done for this so that I can create new object.
    Thanks,
    Manas

    Hi,
    Run tcode SU01. (Provided if u hav authorization to run this Tcode)
    Enter SAP* as user and click on the Copy button.
    Enter the name for your new user in the dialog box and click Continue
    Enter a password for your new user.
    Goto Profile sheet and adjust the profiles to be SAP_ALL and SAP_NEW.
    Save the user and logon with it.
    Now you'll be able to do your changes.
    Reward Points if useful.
    Regards
    Rose
    Edited by: Rose Preethi on Mar 31, 2008 5:20 PM

  • BUG:  Advanced Actions duplicated when creating NEW PROJECTS FROM TEMPLATE using Adobe Captivate 8.

    Need:  CREATE NEW PROJECTS FROM TEMPLATE using Adobe Captivate 8. 
    Problem:  NEW PROJECT (.cptx) duplicates the Advanced Actions originally configured within TEMPLATE FILE (.cpt.).
    For example: Template file (.cptl) advanced action "_initializeModule" gets duplicated as "_initializeModule1", "_initializeModule2", "_initializeModule3" within NEW PROJECT.  FYI, the original "_initializeModule" advanced action still appears.
    MAJOR BUG, what the heck is going on?!?!!!  Planning to deploy this template file to use for multiple courses with multiple users, this WILL cause epic confusion across the board.

    Similar problem, think they are working on it as well: when dragging a shared action from an external library to a slide or object event, and that action is using a parameter that was already created for another shared action, there will be a new parameter created which really screws up the shared action contrary to this problem. Tip: for the moment do not drag shared actions from an external library immediately to an event, but drag them first to the Library: Reuse Shared Actions in other Projects - Captivate 7 vs. 8 - Captivate blog

  • What is the diffrence between extends and creating new object?

    HI ALL,
    what is the diffrence between extends and creating new object?
    meaning
    class base{
    class derived extends base{
    class base{
    class derived {
    derived(){
    base var = new base();
    can u people tell me diffence from the above examples.
    THANKS.
    ANANDA

    When you create a new object you have to supply the class to which that
    object belongs. A class can extend from another class. If it does so
    explicitly you can define the 'parent' class from which the class extends.
    If you don't explicitly mention anything, the class will implicitly extend
    from the absolute base class named 'Object'.
    Your example is a bit convoluted: when you create a Derived object,
    its constructor creates another object, i.e. an object from the class from
    which the Derived class extends.
    Extending from a class and creating an object don't have much in common.
    kind regards,
    Jos

  • How to create new object key in BDS?

    Hello,
    I need to create custom class in BDS (OT type) and object key for it.
    In this forum (and in the whole Internet) I found information only about custom class. However there's nothing about object key.
    How could I create new object key in BDS class?
    Great thanx in advance!

    Hi Max,
    you can create BOR object in business object repository, Transaction SWO1, SWO2, search documentaion for BOR obkect.
    Regards,
    Clemens

  • Resuse existing object (Sp,tables etc)or create new object if that is possible?

    Hello Everyone,
    Is it a good practice to create new objects (stored procedures, tables etc.) or modify and reuse the existing object if that can be done?
    Regards
    Regards

    If you need simple add a new column to the SELECT statement so there is no need to create a new stored procedure/view for this
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Problem when creating new Objects in ESR

    Hi ,
    When i am trying to create new objects in ESR it is no allowing me to do,i have developed around 80 interfaces as of nowmsuddenly this eeror i getting,anyone experienced this kind of issue.
    *You cannot create new objects since the system is not the original system of the software component version*
    You cannot create new objects since the system is not
    the original system of the software component version (NOT_ORIGINAL_NO_CREATE)
    MESSAGE ID: com.sap.aii.ib.server.oa.rb_all.NOT_ORIGINAL_NO_CREATE
    Regards,
    Raj

    Hi Raja,
    I am new to SAP PI. So i dunno much regarding SAP PI. Hence i am getting same error that not able to create objects in SWCV. I read this discussion but i dunno where to select the 'Modifiable & Original' options, so that i can enable the Objects. Can you please guide me?
    Thanks,
    Amarnath

  • Why r we allowed to create String objects with & without using new operator

    While creating any object, usage of the new operator is a must...but only for the string object we can create it with and also without new operator how is it possible to create an object without using new operator.

    Because Mr. (Dr.?) Gosling is a kindly soul who realizes that programmers have deadlines and, when he designed Java, was not so rigid or unbending as not to realize that from time to time, certain shortcuts are warranted, even in a relatively pure language such as Java. The direct String literal assignments are a shortcut over using the new operator making Java programming (and execution; there's also a performance benefit) more streamlined.
    So look not the gift horse in the mouth, but simply bask in the simplification and ease on the eyes and directly assign your little literals to your heart's content.

  • How to get an mbean to create an object to be used in invoke

    The topic says it all. I am confused.
    Either way, this is what i am trying to do.
    I have two classes i have registered as mbeans and can access from a remote jvm. What i need to do is to invoke a method in one of the mbeans which takes an object of my second mbean as an argument.
    so class A is registered as MBean A and has method createB which takes class B registered as MBean B as an argument.
    A valid usage would be A.createB(B);
    eg:
    server.invoke(objectName_A, "createB", new Object[] {objB}, new String[] {"com.x.y.z.B"});
    I am trying to create objB using the MBean B. Is this possible?
    Please do let me know.
    Regards
    MCR
    Message was edited by:
    MCR

    Rodnebb wrote:
    I've now made a program, it's about to be shipped to the customer and all's finished and well.
    Now all I have to do is to archive the sourcecode for future reference.
    I am however worried that I won't get hold of all the relevant vi's that I've used. Some have come from NI's examples while others from the OpenG package etc. These vi's then use other sub vi's, and are located in the NI directory structure (under Program Files).
    Is there an automated way of collecting all subcode and putting it in one folder, so that I can be sure I will always have it?
    Thx
    Hi,
    VI Package Manager 1.1 Professional solves the problem for the OpenG packages and other libraries installed using VIPM (VI Package Manager).  VIPM can scan your project and identify which OpenG packages your project is using and save the packages into a VIPC (VI Package Configuration) file, which you can save in your project folder.  When you are ready to start working on your project again, you can apply your VIPC file to have VIPM install all the required packages.
    I have written a blog post, here, about the new configuration management capabilities in VIPM 1.1 Professional.  I hope this helps.
    Thanks,
    -Jim Kring

  • Problem in creating new object in this code below

    private Player owner;
    private int armies;
    public Territory(String name, Continent continent)
    owner = new Player(Territory territory, Player owner); <============ ) is expected
    I have an error following that code. It said that ")" is expected

    our main error was territory class requires a continent object not an territory object
    public class Continent
    private String name;
    private Territory territory1;
    private Territory territory2;
    public Continent(String name)
    this.name = name;
    territory1 = new Territory("Territory1", new Continent("Asia") ); // instead of territory1 use new Continent("Asia")
    territory2 = new Territory(); // GIVE IT TWO PARAMETERS LIKE "territory 2" and new Continent("Asia")
    Oh my bad, I means the territory2 = new Territory("Territory2", new Continent("Asia"); // it is same :D
    but when I want to create territoty for Europe, I will do a repeating code like this in class Territory n our lecturer forbid it:
    territory1 = new Territory("Territory1", new Continent("Asia")); //Pass an object as argument
    territory2 = new Territory("Territory2", new Continent("Asia"));
    territory1 = new Territory("Territory1", new Continent("Europe")); //Pass an object as argument
    territory2 = new Territory("Territory2", new Continent("Europe"));
    is there any other way to do it in single code? such as bring the objects in class World together
    private Continent asia;
    private Continent europe;
    Continent asia = new Continent("Asia");
    Continent europe = new Continent("Europe");
    instead using new Continent("Asia") we use the object in class World pass it to class Continent and then from Continent pass them to Territory
    like this:
    territory1 = new Territory("Territory1", new Continent(name)); //Pass an object as argument
    territory2 = new Territory("Territory2", new Continent(name));
    since we has variable called String name, so we can just pass it whatever that is passed from class World
    public class Continent
    private String name;
    private Territory territory1;
    private Territory territory2;
    public Continent(String name)
    Thanks a lot in helping us, have a nice day.

  • How do I create an object (Installation Fact) using a FM?

    Hello all,
    Is it possible to create an object (An Installation Fact to be more precise) using FM  ISU_S_INSTLN_CHANGE ?
    The x_auto structure is populated as follows :
    x_auto~ factsfacts_autoiquant~operand : the new operand
    x_auto~ factsfacts_autoiquant~season : blank
    x_auto~ factsfacts_autoiquant~auto_use : blank
    x_auto~ factsfacts_autoiquant~auto_insert : checked (i.e. X)
    x_auto~ factsfacts_autoiquant~auto_merge : blank
    The structure x_auto~ factsfacts_autoiquant~ivalue is populated as usual.
    “Ok Codes” are correctly filled in : X and SAVE.
    Nothing happens after the run? Any idea please ?
    Your help is much appreciated.
    Message was edited by: GA
            Goharjou ardavan

  • PDR Steps to create new object types

    We set a demo instance of the PDR tool here and it all works well.. I would now like to add purchase info records as an object that can be sequenced with all other master data like materials, material boms, variant class and ecms in a config folder. I know that new function modules would need be created but was wondering there was a document with steps expaining the entire procedure for doing this or if any other company has yet tried this with the tool.. It allows for the creation of new objects for the packet but would like to have some sort of guideline to follow if possible.

    Hello Mr Thorne,
    I knew there are some SAP Consultants that know how to implement a new object type. And there is a project together with the german army that expands the PDR with several object types.
    But you have to pay attention. The PDR consists of two main parts . The FOX - Frame work of Explosion and the UPS - Uniform Packaging Service.
    Creating a new Object type that can be "shipped" has to be in the UPS - BUT - if you are using the transaction CRWBD that new object type will not be found if you are exploding a baseline. That is the task of the FOX.
    And to add a new Object type into the FOX would be harder than add it into the UPS.
    I think the Consulting solution, uses a FOX exit to add that object into the UPS after the FOX-Run.
    I you need further information please contact SAP consulting (PLM).

  • Problems to create new object!

    Hello,
    I have a problem to create a new object in OracleLite 9i.
    I'm using okapi to do this, but the value of the numeric fields isn't the expected.
    In msql the field is number(10,0). I'm trying to insert a ok4B.
    Anybody can help me?

    I found the problem.
    It occurs when I use a number(x,y), where x &gt; 9 or Y &gt; 0.
    I made a workaround to solve this problem. This is simple, I just convert the field number to char in the Snapshot of the Wtgpack

  • Can creating new object without object reference cause OutOfMemoryException

    I am getting OutOfMemoryException in my application. After looking at the logs and doing some analysis I think creating a new object and not attaching it to a reference is causing the issue.
    The simplified code is as below:
    void valuate(int tradeNum){
    new CaptureTrade().process(tradeNum); //1
    Will the above code called n number of times cause OutOfMemoryException?
    Should I use something like this instead:
    void valuate(int tradeNum){
    CaptureTrade ct = new CaptureTrade();
    ct.process(tradeNum); //2
    Can the first program cause OutOfMemoryException which can be rectified using the second piece of code?

    ashay wrote:
    I am getting OutOfMemoryException in my application. After looking at the logs and doing some analysis I think creating a new object and not attaching it to a reference is causing the issue.
    The simplified code is as below:
    void valuate(int tradeNum){
    new CaptureTrade().process(tradeNum); //1
    Will the above code called n number of times cause OutOfMemoryException?
    Should I use something like this instead:
    void valuate(int tradeNum){
    CaptureTrade ct = new CaptureTrade();
    ct.process(tradeNum); //2
    Can the first program cause OutOfMemoryException which can be rectified using the second piece of code?What happened when you tried it?

  • Create new object (measure) with IIF function on BW Olap universe:mdx error

    hello
    i have a universe based on a BEX query
    i want to create a new object (a measure) with the IIF(,,) function
    i created the following select:
    <EXPRESSION>IIF(@Select(Currency Type\CurrencyTypeCode)="10",@Select(Key Figures\RevenueGlobalCurrency),@Select(Key Figures\RevenueLocalCurrency))</EXPRESSION>
    defined as number
    where
    CurrencyTypeCode is a dimension (character format)
    RevenueGlobalCurrency and RevenueLocalCurrency are measure (number format)
    i always have a parse which is OK but
    when i want to  use the object on a webi report i always have an MDX error : ...invalid MDX with .... (WIS 10901)
    and advise ?
    Thanks

    Hi Didier,
    Thanks a lot for your help.
    Now it works : i do not understand why
    i explain:
    the correct syntaxe of my new measure is :
    <EXPRESSION>([Measures].[4FVLHG7OAJMNY9WC06X6JLOZQ], [0CURTYPE].[10])</EXPRESSION>
    it does not works with my "L01 currency type" BO dimension
    ([0CURTYPE].[LEVEL01])
    when i had :
    -my universe is based on a BW BEX query
    -my universe has been automaticaly generated with the assistant
    -the Currency Type Class was define as below:
           - 1 BO dimension object : L01 Currency Type =>
    [0CURTYPE].[LEVEL01]
           - 3 BO detail objects : L01 Currency Type techName =>
    [0CURTYPE].[LEVEL01].[TECH_NAME]
                                              L01 Currency Type Key =>
    [0CURTYPE].[LEVEL01].[[20CURTYPE]].[Value]
                                             L01 Currency Type Long Name =>
    [0CURTYPE].[LEVEL01].[[40CURTYPE]].[Value]
    i always had a wrong mdx syntax error on the webi report
    i updated the class with the follow
         - 1 BO dimension object : L01 Currency Type =>
    [0CURTYPE].[LEVEL01] (idem)
           - 3 BO detail objects : L01 Currency Type techName =>
    [0CURTYPE].[LEVEL01].[TECH_NAME]  (idem)
                                              L01 Currency Type Key =>
    [0CURTYPE].[LEVEL01].[NAME] (updated)
                                             L01 Currency Type Long Name =>
    [0CURTYPE].[LEVEL01].[DESCRIPTION] (updated)
    then it was working
    Then i tried to reproduce from scratch and now it also works with the previous version of the class.
    I do not understand anything
    Is there something like a cache file of the MDX query (in RSRT, cache mode is set to inactive for the bex query) ?
    ps: this is the same if a use webi under infoview (java) or webi rich client...
    Edited by: Frederic Nez on Jan 19, 2010 6:35 PM
    (edit : there is mistake in the post : objects are always between [] even if it is not dispay => change objects to code mode)

Maybe you are looking for