How to initialize a value to an instance of tabletype which is to create the object

Hello
I created an object

create or replace TYPE SAPE_SCO_INFO_REC
AS AN OBJECT
(Assignment_Id NUMBER,
project number,
sco_id number,
Role_START_DATE DATE
Role_END_DATE DATE
avg_hrs_per_day number,
current_sco_start_date DATE,
current_sco_end_date DATE,
DATE OF NEW_SCO_START_DATE,
DATE OF NEW_SCO_END_DATE,
sco_role_mode VARCHAR2 (250).
sco_hrs_per_day number,
Active_Flag VARCHAR2 (10),
RET_CODE VARCHAR2 (5).
MSG_ERREUR VARCHAR2 (255));


then I create an array on this object type

create or replace IS TABLE OF SAPE_SCO_INFO_REC of TYPE SAPE_SCO_INFO_TBL

now I m trying to call a procedure in which has a table type in the parameter but when I initilizae the tabletype it shows this error. so please take a look at this problem and help me



DECLARE
l_Return_Status VARCHAR2 (30): = NULL;
l_Msg_Count NUMBER: = 0;
l_Msg_Data VARCHAR2 (2000): = NULL;
v_Sape_Sco_info_Tbl SAPE_SCO_INFO_TBL;
-v_Sape_Sco_info_rec SAPE_SCO_INFO_REC;

V_POSITION number: = 0;
BEGIN
v_Sape_Sco_info_Tbl (V_POSITION). Assignment_Id: = 165321;
v_Sape_Sco_info_Tbl (v_position) .project_id: = 74538;
v_Sape_Sco_info_Tbl (v_position) .sco_id: = 10430;
v_Sape_Sco_info_Tbl (V_POSITION). "Role_START_DATE: = October 15, 2009;
v_Sape_Sco_info_Tbl (V_POSITION). "Role_END_DATE: = January 1, 2010;
v_Sape_Sco_info_Tbl (v_position) .avg_hrs_per_day: = 8;
"v_Sape_Sco_info_Tbl (v_position) .current_sco_start_date: = October 15, 2009;
"v_Sape_Sco_info_Tbl (v_position) .current_sco_end_date: = 10 January 2010;
v_Sape_Sco_info_Tbl (V_POSITION). "NEW_SCO_START_DATE: = October 15, 2009;
v_Sape_Sco_info_Tbl (V_POSITION). "NEW_SCO_END_DATE: = 10 January 2010;
v_Sape_Sco_info_Tbl (v_position) .sco_role_mode: = "EXTEND_RESOURCES";
v_Sape_Sco_info_Tbl (v_position) .sco_hrs_per_day: = 6;
v_Sape_Sco_info_Tbl (V_POSITION). Active_Flag: = 'Y ';
v_Sape_Sco_info_Tbl (V_POSITION). RET_CODE: = NULL;
v_Sape_Sco_info_Tbl (V_POSITION). MSG_ERREUR: = NULL;

/ * SAPE_UPDATE_SCO_DETAILS_PKG. () SCO_ROLE_EXTENSION
x_project_id = > 74538,
x_Assignment_Id = > 165321,
x_Sape_Sco_info_Tbl = > v_Sape_Sco_info_Tbl,
x_called_function = > 'EXTEND_RESOURCES ',.
x_Return_Status = > l_Return_Status,
x_Msg_Count = > l_Msg_Count,
x_Msg_Data = > l_Msg_Data
);*/
END;



Error is
Error report:
ORA-06531: Reference to an uninitialized collection
ORA-06512: at line 10
06531 00000 - 'refers to an uninitialized collection.
* Cause: An element or member function of a nested table or varray
has been referenced (where an initialized collection is necessary)
without the collection has been initialized.
* Action: Initialize the collection with an appropriate constructor
or the assignment of the whole object.

Uncomment the line first (initialization of collection) after BEGIN.

Kind regards
Vijay

Tags: Database

Similar Questions

  • How to create the object rectangular box with a pure action script.

    How to create the object rectangular box with a pure action script?

    I think, it can be done through the clip library, but I'm not sure. Please, I want to take the suggestion to create a rectangular box as a script through

    Take a new file and write about the first image the code below, it works fine:

    var rect = new Shape();
    rect.graphics.beginFill (0xFF0000);
    rect.graphics.drawRect (0, 0, 100,50);
    rect.graphics.endFill ();

    var MC = new MovieClip();
    mc.addChild (rect);
    addChild (mc);

    If this doesn't solve your problem then paste the error you get

  • create the object without the instance name

    Hello

    This is the problem, I have hero shoot bullets and because of that I can't give the objects an instance names and I want to check if the object on the stage or not and it's easy when

    I do var ball: BALL = new BULLET

    If {(bullet.stage)

    addChild (bullet)

    ...

    }

    but the problem only when I love it

    addChild (new BULLET())

    I know that flash to give a name, but how do I check their names?

    if(???. stade)

    Thank you

    Using a table simply to instantiate, then you can add to what you need.

    var balls: Array = new Array();

    Then, when you add a new bullet you can push in the table.

    Bullets.push (new BULLET());

    and if you need to go through them to test if they hit their target or if they should be deleted or whatever, you can loop through them, testing each during his turn in the loop.  If you would like to be removed it is usually better to go back across the table so that you do not skip any.  When you go forward through a table and remove items, the rest all shift down an index to fill the empty space, which means that it is possible to pass on a right after the one you deleted.

  • Create the object based on the Instance of TestStand

    Hello

    I currently have TestStand code that creates an ActiveX to a StationGlobal object reference...

    Currently, the created ActiveX object reference is always the same... I am looking for a way to create a different ActiveX object reference depending on which instance of TestStand open...

    So I guess I'm wondering if there is an easy way to do this? Is there a variable that I could use to distinguish the various teststand and somehow that integrate Options create?

    Thanks for any response.

    I can imagine that this Engine class property can help you:

  • HI someone I don't know is sent all the email that comes to my TB account, how to stop this? I have probably made a typo when I created the account.

    Hello

    a person receives copies of all mail sent to [email protected], so I wonder if I've made a typo when I originally created the account of TB?

    Is there a way to change the backup of the e-mail I provided TB when I set this up? I do not know if providing TB with an email was part of the process to create an account.

    all mail is copied to benech@gmail and it has to be copied to benecha@gmail. I have omitted the "a" in [email protected], which is my exact address. Nothing should be sent to [email protected]

    Thanks for any help, sorry that the situation is quite difficult for me to explain.

    All the best,
    Ben

    Thunderbird does not email without put you up somewhere. Where did you try to send your email address?

    Check your email providers web page mail and see if you did it here.

    By default when configure you Thunderbird it just connects to your server to suppliers and receiving your mail.

  • How can I fix: internet Explorer script error "automation server cannot create the object.

    Execution of search help Quicken 2011 this error always comes up.  The file or program associated with the error message is \awApi5.dll/awLocalize.js Answerworks 5.0.

    Hi kadialcamara,

    1. did you of recent changes on the computer?

    2. When you receive the message of internet script explorer?

    Check out the link below on the forums of intuit and check if it helps.

    Help with Script error-res: / / C:\Program Files\Common Files\AnswerWorks 5.0\awApi5.dll/awLocalize.js

    For additional support post your query in the forums of intuit.

    https://qlc.Intuit.com/

  • How is this remove you an email and all forward which is made by the beneficiary with her?

    I sent a mail that I have to remove the disorder is, the person has redirected already.

    I need help fast!

    Your only hope is the person who you sent it to a juno email, because they think that the referral is like a chain letter and do not support transmit it to all.

    Once you send it, it's out of your control.

  • How can I add a new corresponding mobile page after I have already created the sites Office & mobile?

    I have a site very large desk and a smaller mobile version. Now, I need to add pages to version more mobiles that are linked and redirected the parent office. I don't see a way to get where you will consider 'related pages '. Note: I is NOT need to create a mobile version of my site. I already have a mobile version. Now, I need to add new mobile pages that are matched with the office pages. Thanks for any help!

    Unfortunately, there is no way where desktop content page could get copied to the mobile pages, you must do it manually by dragging the content of mobile pages and resize them.

    Thank you

    Sanjit

  • Please someone told me how to Center justify text boxes in a window created in Javascript for Illustrator.  Think it must be done when creating the objects, but I'm new to scripting and do not know the syntax.

    function getCutterID() {}

    var CWindow is new window ('dialog', "ID layout");.

    var CInputGroup is CWindow.add ('group');.

    var CText = CInputGroup.add ('edittext', undefined, ' ');

    CText.characters = 7;

    CText.active = true;

    var CButtonGroup is CWindow.add ('group');.

    CButtonGroup.alignment = 'right '; CButtonGroup.add ('button', undefined, 'OK'); CButtonGroup.add ('button', undefined, 'Cancel');

    CButtonGroup.active = true

    CWindow.show ();

    return CText.text

    CWindow.close ();

    };

    ScriptUI for Dummies | Peter Kahrel

    See page 60.

    It may be useful

  • Passing a value to an instance of the class

    I'm trying to pass a single value to an instance of a class, but eventually send the same value to each instance. The class creates a button. When you press the button I want to retrieve the value sent to the instance. myVar is a public variable declared in the class. I pass the value using the class:

    public var myClass:SomeClass = new SomeClass();

    .

    .

    counter ++

    myClass.myVar = counter

    When I press a button that exists in the class, I want to be able to recover myVar, but the value that comes out is always equal to the value that was generated for the last instance. So if I generate 5 cases, the value of myVar is 5 for each button I press. How can I make the unique value of myVar stay with the instance?

    If you are writing a class with an instance var such as

    public class mybox.

    {

    public var int value;

    }

    then in one method of another class, you can write

    var myBox:MyBox = new MyBox();

    myBox.value = 17;

    and the value 17 is stored in this one instance of MyBox.

    You could also make it possible to set the value of the box in the constructor:

    public class mybox.

    {

    public void MyBox(value:int)

    {

    Super();

    This.value = value;

    }

    public var value: int

    }

    var myBox:MyBox = new MyBox (17);

    Gordon Smith

    Adobe Flex SDK team

  • How to create an instance of AM which is fixed to junit.

    Hello

    While writing the unit test for the JUnit, we observed that there is no way that we can provide the user name and password to our am.createApplicationModule ().
    My juice are working well, when I'm using the safety out of the adf switch - config.Xml. But once I turn it on it is bound to fail with the error Application module is not able to
    Check.

    Is there a way by which I can create the instance of the application module in javacode, which is a guarantee of AM.

    Any suggestions please...


    Thank you
    Vipin

    -Think beyond the restrictions... all have 24 hours only :-).

    You can try this: http://adfspecialists.blogspot.ch/2012/09/adf-application-programmatic-login-for.html#! /2012/09/ADF-application-programmatic-login-for.html
    "or check out ' customize the test set-up to run as an authenticated user to 24.8.5.1" to http://sqltech.cl/doc/oas10gR31/web.1013/b25947/web_testdebug008.htm

    Timo

  • create the cookie using pl sql and retrieve values

    Hello
    I am currently in an urgent need to create cookies to BE oracle and also read the values of the. I tried to use code below. his display error
    code
    DECLARE
    ourcookie owa_cookie.cookie;
    BEGIN
    ourCookie: = owa_cookie.get('SESSION2');
    END;
    /

    BEGIN

    owa_util.mime_header ("text/html", FALSE ");

    -Create a cookie
    (owa_cookie). Send
    name = > 'SESSION. "
    value = > '344444',.
    expires = > sysdate + 2,.
    path = > ' / ');


    owa_util.http_header_close;

    EXCEPTION
    WHEN OTHER THEN NULL;

    END;


    But when I'm reading the cookie that I created, I am unable to exercise

    -It's for reading cookies
    DECLARE
    ourcookie owa_cookie.cookie;
    BEGIN
    ourCookie: = owa_cookie.get('SESSION2');
    END;
    /

    error:
    ORA-06502: PL/SQL: digital error or value
    ORA-06512: at "SYS." OWA_UTIL", line 325
    ORA-06512: at "SYS." OWA_COOKIE', line 36
    ORA-06512: at "SYS." OWA_COOKIE', line 140
    ORA-06512: at line 4 level

    842106 wrote:

    Now according to the guidelines of your comment, I created a simple OWA environment and run the code below. Now I get not found error of data

    ORA-01403: no data found
    ORA-06512: at line 23

    The error is caused the cookie is not found.

    The following is not valid - as there is no browser to receive the cookie:

    (owa_cookie). Send
    name-online "SESSION1"
    value-online '344433',
    expires => it sysdate + 2,.
    => path ' / '.
    );

    The following code must set the CGI environment - and add the cookie to the environment for the following code to read (as shown in the code example that I posted in the 2nd thread I talked to you):

    / * Initialization * /.
    OWA.cgi_var_name (1): = 'something ';
    OWA.cgi_var_val (1): = "other";
    OWA.init_cgi_env (1, owa.cgi_var_name, owa.cgi_var_val);
    / * End initialization * /.

    Of course, the following code will fail with a NO_DATA_FOUND there is no cookie.

    ourCookie: = owa_cookie.get('SESSION1');
    v_session: = ourCookie.vals (1);

    So it is not possible to create a true cookie and retrieve the value of CGI environment or apex not?

    Yes. But the web browser is non-existent. Then, you need create the CGI environment, which would have created the web server, before you call your allowed web code PL/SQL.

    In other words, if your initialization code of CGI should pretend that it is the web server, he received the call from web browser, it received the cookie (s) from the web browser - and now she needs to create the CGI (including cookies) environment for this web browser, and then call the procedure PL/SQL referenced by the browser in the URL, he argued.

  • create the missing icon against the section of the form of the application instance

    Hi all

    I use OIM 11 g R2 PS2, and I see that create icon missing against the section of the form of the application instance. I am trying to create an instance of the application, and when I try to load the form, I don't see the icon 'create' at all.

    Is this a known problem. ?

    Thanks in advance.

    This changed in OIM 11 g R2 PS2 version. To create resources for the instance of the application, you must follow the steps below:

    1. connect the console to sysadmin

    2. create a sandbox

    3. go in Configuration--> Form Designer--> select the resource type--> click on the button create

    From there, you can create the form. Once the form is created, it will be visible in the Instance, application from which you can modify the same.

    HTH

  • How to pass multiple values of payload through the contextual event - jdev 11.1.2.3

    Hello:

    How to configure contextual events publish several values of payload?

    On click of a button, I'm declaritively publish a contextual event, which works very well when a single value is passed to the event handler.

    My event handler method has the signature of:
    eventHandler (String)

    But now I also have an oracle.jbo.domain.Number, so my new eventHandler looks like this:
    eventHandler (Number, String)

    How to pass two values during editing of the event and how to place the payload with multiple values for the new eventHandler?

    All article or code would be greatly appreciated.

    Thanks for the help.

    You define a bean holding your values and pass an instance of the bean as a payload...

    Timo

  • How to initialize VVO for dynamic LOV?

    I'm new to ADF.

    I'm going to have 'create a button' on the 'search page', which will turn the control to "create the page".

    Create page has LOV for sex based on lookupVVO.

    I need to define where clause for lookupVVO to get only the search sex values in LOV of creation page.
    I am creating where clause and its parameters in the initGender() of the AMImpl method.

    I changed my workflow as below to initialize VVO

    Search page-method call to initGender()-> page > create
    But always LOV shows all the search values.

    I also tried to be Binder create this method in the page initGender(), LOV has still no effect.

    Now how?

    Please guide me.

    Thanks in advance.

    I'm using Oracle JDeveloper 11 g (11.1.1.6.0)

    Published by: mimi on April 3, 2013 22:30

    Published by: mimi on April 3, 2013 22:30

    Published by: mimi on April 4, 2013 03:08

    Published by: mimi on April 4, 2013 03:10

    I have build a sample on how to do it here: http://tompeez.wordpress.com/2013/04/05/using-one-viewobject-for-global-lookup-data/

    Timo

Maybe you are looking for

  • Applications for registration of data is not juggling

    I have an application that is reading data of a ring memory reflective and then written to a RAID (NI 826 x) in a PXI chassis.  The application must read and write 5 separate data streams, 3-1at 20 Hz and 1 to 10 Hz 100 Hz.  LV 8.61 using on a regula

  • How to restore bios brick 4-1015dx envy

    I have it bricked with a bios now it shows a white screen no video. How can I restore it.

  • actuation of the valves

    Hello I used before Labview but I don't consider myself as an expert. I am trying to operate two solenoid valves with the acquisition of data USB 6525. The valves need 12Vdc for 20-30ms to operate, once spent no extra power is needed to maintain the

  • What's an update? "Updating the functionality of Autorun in Windows"

    I have an update that claims to be from MS that says it will update the AutoPlay feature, but it seems it downgrade to the 1990s, by removing support for devices other than optical disc and add multi-step manual required to use some of the features c

  • built in power supply

    I need to know this that built in power supply power and brand are for the HP Pavilion p6214y I bought two years ago at Best Buy. DxDiag: ------------------Information System------------------Time of this report: 27/11/2011, 21:16:26Computer name: TO