Error while assigning dates to associative array of date type

Hi All,
I am facing the issue while assigning dates to associative array of date type:
Oracle Version:
SQL> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
PL/SQL Release 10.2.0.1.0 - Production
CORE    10.2.0.1.0      Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
Stored procedure i am trying to write is as following
create or replace procedure jp1 (
p_start_date date default trunc(sysdate,'MM')
, p_end_date date default trunc(sysdate)
is
l_no_of_days number;
type t_date_id is table of date
index by pls_integer;
l_date_id_arr t_date_id;
begin
l_no_of_days := p_end_date - p_start_date;
for i in 0
.. l_no_of_days - 1
loop
    l_date_id_arr := p_start_date + i;
    dbms_output.put_line(p_start_date + i);
end loop;
end;
I am getting error at line 14 while compiling this. and the error message is as following:
Errors for PROCEDURE JP1:
LINE/COL ERROR
14/5     PL/SQL: Statement ignored
14/22    PLS-00382: expression is of wrong type
So while investigating this i tried to output the value of (p_start_date + i) using dbms_output.put_line and the output is date itself.
create or replace procedure jp1 (
p_start_date date default trunc(sysdate,'MM')
, p_end_date date default trunc(sysdate)
is
l_no_of_days number;
type t_date_id is table of date
index by pls_integer;
l_date_id_arr t_date_id;
begin
l_no_of_days := p_end_date - p_start_date;
for i in 0 .. l_no_of_days-1
loop
    --l_date_id_arr := p_start_date + i;
    dbms_output.put_line(p_start_date + i);
end loop;
end;
output of the
exec jp1
is as following:
01-DEC-13
02-DEC-13
03-DEC-13
04-DEC-13
05-DEC-13
06-DEC-13
07-DEC-13
08-DEC-13
09-DEC-13
10-DEC-13
11-DEC-13
12-DEC-13
13-DEC-13
14-DEC-13
15-DEC-13
16-DEC-13
17-DEC-13
18-DEC-13
I see the output as date itself. so why it is throwing error while assigning the same to associative array of date type.
I tried to google also for the same but to no avail.
Any help in this regard is appreciated or any pointer some other thread on internet or in this forum.
Thanks in advance
Jagdeep Sangwan

Read about associative arrays :
create or replace procedure jp1 (
p_start_date date default trunc(sysdate,'MM')
, p_end_date date default trunc(sysdate)
) is
l_no_of_days number;
type t_date_id is table of date
index by pls_integer;
l_date_id_arr t_date_id;
begin
l_no_of_days := p_end_date - p_start_date;
for i in 0..l_no_of_days - 1
loop
    l_date_id_arr(i) := p_start_date + i;
    dbms_output.put_line(p_start_date + i);
end loop;
end;
Ramin Hashimzade

Similar Messages

  • Error while assigning infoobject to the read master data in rule type

    Hi sdns,
    I want to read the zwostd info object data from zemployee master infoobject attribute list. For that i have selected  rule details of zwostd infoobject in transformation of info cube, then i am tring to select the read master data rule type. It is taking more time and then it displayed error like permitted time was  exceeded. Could any one please give me  the solution for this problem.
    thanks
    karun

    Sometimes directly typing the infoobject name in the field helps - otherwise it tries to fetch all the infoobjects available which is possibly why the time out occurs..?
    Enter the Master Data infoobject directly and then you will get the fields assigned.
    However my experience with read master data has been that whenever you change the master data IOBJ by way of adding / removing Nav Attributes / attributes etc - all the transformations using the read master data for the IOBJ that is being changed will get deactivated and it is a pain reactivating and transporting them again - particularly so when you are developing something on them and the changes are stuck across multiple requests ...
    IMHO use a routine instead to do the same - it involves lesser maintenance. SAP is anyway going to run a similar SQL...

  • Error while Assigning database level role (db_datareader) to SQL login (Domain Account)

    Team,
    I got an error while creating a User for Domain Account. Below is the screen shot of the error (error : 15401)
    Database instance is on SQL 2000 SP3. ( I know it is out of support, But the customer is relutanct to upgrade)
    On Google search, i found below article which is best matching for this error
    http://support.microsoft.com/kb/324321
    I have follows each step of troubleshooting. But still the issue persists.
    Step 1. The login does not exist == The login is very much exist in the domain as i am able to add the same domain id to other database instances
    Step 2. Duplicate security identifiers == i have used this query to find duplicate SID
    /*  SELECT name FROM syslogins WHERE sid = SUSER_SID ('YourDomain\YourLogin') */
    But there was only one row returned with create date of today's.
    Error while Assigning database level role (db_datareader) to SQL login (Domain Account) 
    Step 3. Authentication failure == Domain is available. User is able to login on other servers via RDP connection.
    Step 4. Case sensitivity == Database collation is set to Case insensitivity. (CI)
    Other two 5. Local Accounts & 6. Name resolution == is not applicable to me.
    I tried other ways also.
    A. Creating login and providing permission in one go only = User account is not created
    B. Instead of GUI, use query to create login and provide required permission = Same error.
    Does anybody has faced any such situation
    Chetan

    See the below output
    srvid
    sid
    xstatus
    xdate1
    xdate2
    name
    password
    dbid
    language
    isrpcinmap
    ishqoutmap
    selfoutmap
    NULL
    0x010500000000000515000000A1F66E1BFC1DC75D26E72530A2B80400
    14
    20:25.9
    57:33.4
    UKBAA\LHRAPPMuttavarapuS
    NULL
    1
    us_english
    0
    0
    0
    Chetan

  • Error - ATTRIBUTE_IDOC_METADATA - EDI: Error while assigning IDoc number

    Hi,
    I'm attempting to create a simple interface which converts cutomer data from a flat file and loads it into a SAP enterprise system as an DEBMAS06 IDoc type. I am getting the error message Error - ATTRIBUTE_IDOC_METADATA - EDI: Error while assigning IDoc number in the XI message monitor.
    Has anyone come accross this error before and if so, what is the resolution???
    Thanks, in advance,
    Pete

    Hi Peter,
    did you fixed it?
    How did you?
    got the same problem
    Kind regards,
    Michael

  • Error while assign doc type to sale area

    hi,
         while assigning a sale area to a doc type i am getting the following error, " define the sale area(XXXX/YY/zz) as a general sale area?  i have alreadly done "set up sale area" what is general sale area and how to do it? need help.
    regards
    leo

    hi
    The Assignment of Sales Areas to Sales Documents
    There may be a need to assign sales documents to specific sales areas. For example, a different
    sales document is used for all sales orders from a specific sales organization.
    Transaction Code OVAZ
    You may assign reference sales organizations as well as reference distribution channels and divisions. Do not confuse this referencing with the assignment of common distribution channels and common divisions. The referencing done here is only used by the system to determine which sales documents are permitted for which sales areas.
    If all sales document types can be used by all sales areas, leave the assignment fields blank.
    check your sales area in
    Set up sales area - Enterprise Structure  ® Assignment ® Sales and Distribution ® Set up sales area
    T-code: OVXG     
    Also check the following setting
    OVAM - To Combine distribution channels Sales Document Types     -- Sales and Distribution ® Sales ® Sales Documents ® Sales Document Header ®  Assign Sales Area To Sales Document Types -
    choose Combine distribution channels.
    OVAN - To Combine division to Sales Document Types      - Sales and Distribution ® Sales ® Sales Documents ® Sales Document Header ®  Assign Sales Area To Sales Document Types -
    choose Combine divisions
    OVR1 - Define Common Distribution Channels - Sales and Distribution ® Master Data ® Define Common Distribution Channels
    OVR2 - Define Common Divisions - Sales and Distribution ® Master Data ® Define Common Divisions
    Regards
    Vishal
    Edited by: WISH on May 6, 2008 7:57 AM

  • Without loops how can i read data from associative Array??

    Hi all,
    I am facing scenario like...
    i need to read data from associative array  without using loops is it possible,
    CREATE OR REPLACE PACKAGE BODY test_pkg IS
        TYPE t1 IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
       -- in array we can expect more than one row or sometimes no data also.
      FUNCTION test1(vt1 T1 DEFAULT CAST(NULL AS t1)) RETURN NUMBER IS
      BEGIN
        -- basically in array we'll get data of column2
        -- this loop should satisfies table1.colum2 = nvl(NULL, table2.colum2 )if array is null.
        -- if array is not null then only compare with array values
        FOR i IN (SELECT t1.colum1,t1.column2
                         FROM table1 t1, table1 t2
                              WHERE t1.colum1 = t2.column1
                                AND t1.colum2 = nvl(vt1, t2.colum2)
          LOOP
            generateTEXT(i.colum1, i.colum2);
         END LOOP;
      END test1;
    END test_pkg;
    in table1 we have date like...
    colum1          column2
    Jan                  1
    Feb                  2
    Mar                  3
    if i call select test_pkg.test1(1) from dual then output should
    be Jan..
    and
    select test_pkg.test1(null) from dual then it should display all elements from table1.
    Jan                  1
    Feb                  2
    Mar                  3,
    Thanks for your quick replay..

    i need to read data from associative array  without using loops is it possible,
    No - you would need to create a SQL type and then use the TABLE operator to unnest the collection.
    create or replace TYPE my_nums IS TABLE OF INTEGER;
    DECLARE
    --  TYPE my_nums IS TABLE OF PLS_INTEGER INDEX BY PLS_INTEGER;
      v_nums my_nums := my_nums(1, 2, 3);
      v_total number;
    BEGIN
      select sum(column_value) into v_total from table(v_nums);
      DBMS_OUTPUT.PUT_LINE
        ('Sum of the numbers is ' || TO_CHAR(v_total));
    END;
    Sum of the numbers is 6

  • Error while assigning Decimal Attribute to PA

    Hi,
    I am receiving an error while assigning a decimal attribute to the planning area. I am attaching the screen shot below . Can anybody shade some light on this error, what could be the reason ?
    Thanks in advance.
    Regards,
    Chandan

    One cannot have a decimal attribute as the 'attribute' in planning. A decimal attribute can always be marked as a key figure.
    For eg: Price. It cant be a attribute of planning area (like Plant, product).

  • Error: EDI: Error while assigning IDoc number

    Hi Everybody,
    using XI 3.0 on Linux 64 bit SLES9 with Oracle I got some probleme sending messages from mq series to sap:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!-- Call Adapter
    -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30"
    xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
    SOAP:mustUnderstand="">
    <SAP:Category>XIAdapter</SAP:Category>
    <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_METADATA</SAP:Code>
    <SAP:P1>EDI: Error while assigning IDoc number</SAP:P1>
    <SAP:P2 />
    <SAP:P3 />
    <SAP:P4 />
    <SAP:AdditionalText />
    <SAP:ApplicationFaultMessage namespace="" />
    <SAP:Stack>Error: EDI: Error while assigning IDoc number</SAP:Stack>
    <SAP:Retry>M</SAP:Retry>
    </SAP:Error>
    What is missing here?
    Kind regards,
    Michael

    Hi Jayakrishnan,
    thanks a lot for your answer.
    SM59 is working finde. In IDX1 I got the the correct RFC destination entered and a double click works fine also.
    The other way around R3 -> XI -> mq series is working fine. Here we are trying mq -> XI -> R3 and it stops sending from XI to R/3.
    How to check the IDOC type?
    Regards,
    Michael

  • Error while opening the file store file "WLS_DIAGNOSTICS000000.DAT".....

    I have a WL 9.2.1 running on Sun solaris o/s .....it is failing to start thowing the following exception
    <Mar 19, 2009 5:21:17 PM EDT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
    There are 1 nested errors:
    weblogic.diagnostics.lifecycle.DiagnosticComponentLifecycleException: weblogic.store.PersistentStoreException: java.io.IOException: [Store:280021]There was a
    n error while opening the file store file "WLS_DIAGNOSTICS000000.DAT"
    at weblogic.diagnostics.lifecycle.ArchiveLifecycleImpl.initialize(ArchiveLifecycleImpl.java:44)
    at weblogic.diagnostics.lifecycle.DiagnosticFoundationService.start(DiagnosticFoundationService.java:107)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Caused by: weblogic.store.PersistentStoreException: java.io.IOException: [Store:280021]There was an error while opening the file store file "WLS_DIAGNOSTICS0
    00000.DAT"
    at weblogic.store.io.file.Heap.open(Heap.java:166)
    at weblogic.store.io.file.FileStoreIO.open(FileStoreIO.java:85)
    at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:350)
    at weblogic.store.PersistentStoreManager.createFileStore(PersistentStoreManager.java:202)
    at weblogic.diagnostics.archive.DiagnosticStoreRepository.getStore(DiagnosticStoreRepository.java:61)
    at weblogic.diagnostics.lifecycle.ArchiveLifecycleImpl.initialize(ArchiveLifecycleImpl.java:42)
    ... 4 more
    Caused by: java.io.IOException: [Store:280021]There was an error while opening the file store file "WLS_DIAGNOSTICS000000.DAT"
    at weblogic.store.io.file.StoreDir.throwIOException(StoreDir.java:213)
    at weblogic.store.io.file.StoreDir.open(StoreDir.java:103)
    at weblogic.store.io.file.Heap.open(Heap.java:164)
    ... 9 more
    Caused by: java.io.IOException: Error from fcntl() for file locking, Resource temporarily unavailable, errno=11
    at weblogic.store.io.file.direct.DirectIONative.open(Native Method)
    at weblogic.store.io.file.direct.DirectFileChannel.<init>(DirectFileChannel.java:51)
    at weblogic.store.io.file.direct.DirectIOManager.open(DirectIOManager.java:138)
    at weblogic.store.io.file.StoreFile.openInternal(StoreFile.java:112)
    at weblogic.store.io.file.StoreFile.open(StoreFile.java:142)
    at weblogic.store.io.file.StoreDir.open(StoreDir.java:95)
    ... 10 more
    i went ahead and checkd the file and the privs on the file they look correct -rw-r--r-- ...but when i just restart it ..it starts with no errors the next time......What could be the issue.....please help
    Then only reason i could think of is the size of the file is 35MB now...is this the problem....if yes....is there a way to automaticaly rotate this file ....

    The root cause appears to be right in the stack trace:
    Caused by: java.io.IOException: Error from fcntl() for file locking, Resource temporarily unavailable, errno=11I think this indicates that either the file was either locked (because another instance of WebLogic had it opened), or that the file was unavailable for some reason. WebLogic locks files as a safety precaution to prevent misconfigured setups (multiple domains sharing the same directory and store name) from attempting to share the same file.
    I don't think that this message necessarily means there is a file corruption.
    As for rotation, the file store automatically adds new files as needed (I think its 1 file for every 2GB of data). The "diagnostics" file store is generated by the optional diagnostics feature, and I think that this feature has options for controlling the amount of stored data.
    Tom

  • Error while assignment of Paying Co Code in FBZP

    HI friends,
    I am getting the following error while assigning Paying Co Code in FBZP -
    Company code 7144 is not permitted as the paying company code
    Message no. F3063
    Diagnosis
    The paying company code and the company code on whose behalf the payment is being made must be in the same country, have the same local currency, and display the same currencies managed in parallel. The setting regarding extended withholding tax functions (active or not active) must also be identical for both company codes.
    System Response
    The entry is not accepted since these requirements are not met.
    Procedure
    Correct your entry.bold**
    The reason for the same isCompany code 7144 is not permitted as the paying company code
    Message no. F3063
    Diagnosis
    The paying company code and the company code on whose behalf the payment is being made must be in the same country, have the same local currency, and display the same currencies managed in parallel. The setting regarding extended withholding tax functions (active or not active) must also be identical for both company codes.
    System Response
    The entry is not accepted since these requirements are not met.
    Procedure
    Correct your entry.
    The scenario is that one company code is making the payments for the other. However, the 2 companies are based in different countries. Hence, system is not allowing this assignment.
    Has anyone come across this scenario? Is there any other wayaround for this which can result in Intercompany postings.
    If we assign the Paying Company Code in the Variant screen in F110( instead of FBZP), will that work? I have tried the same but it doesnt work that way.
    Any help on this will be highly appreciated.
    Thanks in advance,
    Hrishi

    - i am not sure if its possible; help on FBZP clearly states this
    +++++++++++++++++
    The paying company code and the company code to which payment is made must be in the same country and have the same local currency and parallel currencies. In addition, both company codes must have the same settings for enhanced withholding tax functions (active or not active).
    Only the valid company codes for the paying company code are included in the possible entries.
    +++++++++++++++++
    Rgds.

  • Error while trying to post inbound idoc of message type COND_A

    Hi,
    I am getting error while trying to post inbound idoc of message type COND_A.
    If I left Usage & Condition field of segment E1KOMG then 'Table not available' idoc message is coming
    and if providing value in above fields then dump is coming.
    How to solve ?
    Plz do reply
    Thanks
    Mohit

    I do not see any reason why you would need to use COND_A04  if COND_A01 is working.
    What if you could get COND_A04 to post and you would face the same result as in COND_A01?
    If SAP does not check wrong values, then you have to do it yourself, or you report an incident at SAP (after you have searched for OSS notes that may have fixed this error already)
    For example OSS Note 1169998 - IDoc: KONP-LIFNR values not checked
    fixed a situation where the vendor number was not validated.

  • Error while posting batch managed stock in 107 movement type?

    Hi All,
    Error while posting batch managed stock in 107 movement type in MIGO, like 'Goods movement not possible with mvmt type 107'
    and here in batch tab batch number is not displaying only valuation type is displaying, kindly let me know can it be done by doing any change in field selection with respect to 107 movement type
    regards,
    Sanjana

    Hi,
    spro-inventory management-setting for enjoy transaction-setting for goods mvt--field selection per mvt type
    107     SGTXT
    107     WEMPF
    Check here 107 mvt type there or not if not then put.
    101     CUSTNAME
    101     GRUND
    101     SGTXT
    101     WEMPF
    102     SGTXT
    102     WEMPF
    103     SGTXT
    103     WEMPF
    104     SGTXT
    104     WEMPF
    105     SGTXT
    105     WEMPF
    106     SGTXT
    106     WEMPF
    107     SGTXT
    107     WEMPF
    108     SGTXT
    108     WEMPF
    109     SGTXT
    109     WEMPF
    110     SGTXT
    110     WEMPF
    Regards
    Rakesh

  • Error while assigning external event

    Hi Guys!
    I'm getting error, while trying to assign an external event on table output.
    I've got a button with action POSTPO, that is residing in standalone form. That action should send data form some form and a table to BAPI.
    When I try to configure connector line and assign that *event (from event scope 'any element'), I recieve Internet Explorer's script error " 'length' is null or not an object".
    Here are two screenshots: [1|http://www.dennisk.org/tmp/SAP/event_err.jpg], [2|http://www.dennisk.org/tmp/SAP/event_err_mod.jpg].
    At the same model I can assign that event to different form and table. The only difference is that before that faulty elements there is a chain of two directly connected BAPIs.
    Is there a way to fix it?
    Thanks in advance!
    Regards,
    DK

    anybody?

  • Error while assigning values to Table type

    Hi,
    I am trying to insert some values to a Collection type , while doing that I am facing an error ,
    " PLS-00306: wrong number or types of arguments in call to
    'XXSCP_AVL_CSP_SQR_O_TP' "PFB my collection type declaration and and assignment .
    Object type :
    TYPE XXSCP_AVL_CSP_SQR_O_TP AS                 
    OBJECT  (                                      
                PLAN_ID             NUMBER,        
                SR_INSTANCE_ID      NUMBER,        
                INVENTORY_ITEM_ID   NUMBER,        
                BASE_ITEM_ID        NUMBER,             
                 ITEM_NAME           VARCHAR2(50),      
                 SUPPLIER_ID         NUMBER,            
                SUPPLIER_SITE_ID    NUMBER,        
                NORMAL_BUY_USAGE    VARCHAR2(5),   
                AVAILABLE_QUANTITY  NUMBER ,       
                SPL_PEG_FLAG        VARCHAR2(10),  
                SQR_LINE_ID         VARCHAR2(2000),
                SQR_NUMBER          VARCHAR2(2000),
                SQR_MOQ             NUMBER,        
                BPA_PO_LINE_ID      NUMBER,        
                SUGG_BPA_NUMBER     VARCHAR2(30),  
                BPA_BUY_PRICE_BASIS VARCHAR2(10),  
                BPA_LINE_NUM        NUMBER,        
                BPA_PO_LINE_LOC_ID  NUMBER,        
                BPA_CURRENCY_CODE   VARCHAR2(10),  
                BPA_PRICE           NUMBER,        
                BPA_PO_HEADER_ID    NUMBER,        
                BPA_EXPIRATION_DATE DATE,          
                BPA_QUANTITY        NUMBER,        
                ORIG_AVAILABLE_QTY  NUMBER         
    Table type :
    TYPE XXSCP_AVL_CSP_SQR_C_TP AS TABLE OF XXSCP_AVL_CSP_SQR_O_TP;Declaraion:
    l_tab_avl_csp_sqr   XXSCP_AVL_CSP_SQR_C_TP := XXSCP_AVL_CSP_SQR_C_TP();Assignment in body :
    l_tab_avl_csp_sqr.EXTEND(1);
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT) := XXSCP_AVL_CSP_SQR_O_TP();
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).plan_id           := l_tab_planorders (i).l_num_plan_id;
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).sr_instance_id    := l_tab_planorders (i).l_num_sr_instance_id;
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).inventory_item_id := l_tab_planorders (i).l_num_inventory_item_id;
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).base_item_id      := l_tab_planorders (i).l_num_base_item_id;
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).item_name         := l_tab_planorders (i).l_chr_item_name;
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).supplier_id       := l_tab_planorders (i).l_num_supplier_id;
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).supplier_site_id  := l_tab_planorders (i).l_num_supplier_site_id;
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).available_quantity := l_rec_pegged_list (j).remaining_aval_qty;
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).spl_peg_flag       := 'Y';
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).sqr_line_id        := l_rec_pegged_list (j).sqr_line_id;
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).sqr_number         := l_rec_pegged_list (j).sqr_number;
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).sqr_moq            := l_rec_pegged_list (j).sqr_moq;
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).bpa_po_line_id     := l_rec_pegged_list (j).bpa_po_line_id;
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).sugg_bpa_number    := l_rec_pegged_list (j).bpa_number;
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).bpa_buy_price_basis := l_rec_pegged_list (j).bpb_type;
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).bpa_line_num        := l_rec_pegged_list (j).bpa_line_num;
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).bpa_po_line_loc_id  := l_rec_pegged_list (j).bpa_lloc_id;
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).bpa_currency_code   := l_rec_pegged_list (j).bpa_curr_code;
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).bpa_price           := l_rec_pegged_list (j).bpa_price;
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).bpa_expiration_date := l_rec_pegged_list (j).bpa_expiration_date ;
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).bpa_quantity        := l_rec_pegged_list (j).bpa_quantity ;
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT).orig_available_qty  := l_rec_pegged_list (j).remaining_aval_qty ;Can anyone help in this issue.
    Thanks in advance,
    Rakesh
    Edited by: Venkat Rakesh on Apr 24, 2013 12:18 AM

    you need to add an empty-arg user-defined constructor for your type in order to use, "l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT) := XXSCP_AVL_CSP_SQR_O_TP();"
    create or replace
    TYPE XXSCP_AVL_CSP_SQR_O_TP AS                 
    OBJECT  (                                      
                PLAN_ID             NUMBER,        
                SR_INSTANCE_ID      NUMBER,        
                INVENTORY_ITEM_ID   NUMBER,        
                BASE_ITEM_ID        NUMBER,             
                 ITEM_NAME           VARCHAR2(50),      
                 SUPPLIER_ID         NUMBER,            
                SUPPLIER_SITE_ID    NUMBER,        
                NORMAL_BUY_USAGE    VARCHAR2(5),   
                AVAILABLE_QUANTITY  NUMBER ,       
                SPL_PEG_FLAG        VARCHAR2(10),  
                SQR_LINE_ID         VARCHAR2(2000),
                SQR_NUMBER          VARCHAR2(2000),
                SQR_MOQ             NUMBER,        
                BPA_PO_LINE_ID      NUMBER,        
                SUGG_BPA_NUMBER     VARCHAR2(30),  
                BPA_BUY_PRICE_BASIS VARCHAR2(10),  
                BPA_LINE_NUM        NUMBER,        
                BPA_PO_LINE_LOC_ID  NUMBER,        
                BPA_CURRENCY_CODE   VARCHAR2(10),  
                BPA_PRICE           NUMBER,        
                BPA_PO_HEADER_ID    NUMBER,        
                BPA_EXPIRATION_DATE DATE,          
                BPA_QUANTITY        NUMBER,        
                ORIG_AVAILABLE_QTY  NUMBER,
    Constructor
                constructor function XXSCP_AVL_CSP_SQR_O_TP return self as result
    create or replace
    TYPE body XXSCP_AVL_CSP_SQR_O_TP AS                 
    Constructor
                constructor function XXSCP_AVL_CSP_SQR_O_TP return self as result
                is
                begin
                  return;
                end;
    end;        alternatively, assign your attributes as you construct your instance:
    l_tab_avl_csp_sqr.EXTEND(1);
    l_tab_avl_csp_sqr(l_tab_avl_csp_sqr.COUNT) := new XXSCP_AVL_CSP_SQR_O_TP(
      l_tab_planorders (i).l_num_plan_id,
      l_tab_planorders (i).l_num_sr_instance_id.
      l_tab_planorders (i).l_num_inventory_item_id,
      l_tab_planorders (i).l_num_base_item_id,
      l_tab_planorders (i).l_chr_item_name,
      l_tab_planorders (i).l_num_supplier_id,
      l_tab_planorders (i).l_num_supplier_site_id,
      l_rec_pegged_list (j).remaining_aval_qty,
      'Y',
      l_rec_pegged_list (j).sqr_line_id,
      l_rec_pegged_list (j).sqr_number,
      l_rec_pegged_list (j).sqr_moq,
      l_rec_pegged_list (j).bpa_po_line_id,
      l_rec_pegged_list (j).bpa_number,
      l_rec_pegged_list (j).bpb_type,
      l_rec_pegged_list (j).bpa_line_num,
      l_rec_pegged_list (j).bpa_lloc_id,
      l_rec_pegged_list (j).bpa_curr_code,
      l_rec_pegged_list (j).bpa_price,
      l_rec_pegged_list (j).bpa_expiration_date,
      l_rec_pegged_list (j).bpa_quantity,
      l_rec_pegged_list (j).remaining_aval_qty );Gerard
    Edited by: gaverill on Apr 23, 2013 12:12 PM

  • Error while assigning supervisor to employee

    Hi
    I was trying to assign supervisor to an employee when i got the below error.
    This is a production environment. The multi org setups are done in India Localization. They had attached default Key FFs in the BG and the key FFs had no segments/no valuesets...
    Responsibility: HRMS Super User
    Menu used is :GLB HRMS Navigator
    Request Group used is  : Global HRMS Reports & Process
    I thought , might be the segments are not existing, that is the reason why the error is occuring while attaching supervisor to employee.
    *1st Error : Please choose an existing combination* ( People>Enter and Maintain>Assignment )
    So I attached segments for Job and position FF. I created Job successfully , but while creating position it threw another error.
    *2nd error: You can not use the datetracked window, because HR is not installed, instead use non datetracked position window.*
    Normally when we do in vision instance, we dont assign any job/position but still we could attach the supervisor..then why this issue occuring in production environment. Please Help.
    Edited by: Sangeeta on Aug 20, 2010 3:34 AM

    "Please choose an existing combination". This error comes when you try to create a new KFF value but do not use the values allowed by value sets attached with a segment in the KFF.
    Now in the assignment screen there are two places where you can create new KFF value.
    1. People Group field
    2. Statutory Information tab
    OPen the assignment details for the person and check for these two flex fields. If there is any problem with the data present in any of these fields, you may get the aforementioned error while updating any field value in the assignment screen.
    So check the value in these two fields and try to fix them.

Maybe you are looking for