Error in using plsql record type inside packages

Dear Friends,
Using Ora9iR2 on Windows 2000 Server. I am trying to declare a record type and a nested table of that record type in the package body and the initialise that in the package body then insert records into that. But I receive error msg.
CREATE OR REPLACE PACKAGE sample1 AS
TYPE rcur IS REF CURSOR;
TYPE emp_record IS RECORD
(empname VARCHAR2(20),
job VARCHAR2(10),
salary NUMBER);
TYPE emp_result IS TABLE OF emp_record;
PROCEDURE emp_test ( i_empno emp.empno%TYPE);
END sample1;
-- Package Body
CREATE OR REPLACE PACKAGE BODY sample1 AS
PROCEDURE emp_test ( i_empno IN emp.empno%TYPE)AS
c1 rcur;
eresult emp_result := emp_result();
v_empname VARCHAR2(20);
v_job VARCHAR2(10);
v_sal NUMBER;
BEGIN
OPEN c1 FOR SELECT ename,job,sal FROM emp WHERE empno = i_empno;
LOOP FETCH c1 INTO v_empname,v_job,v_sal;
EXIT WHEN c1%NOTFOUND;
DBMS_OUTPUT.PUT_LINE(v_empname||' , '||v_job||' , '||v_sal);
eresult := emp_result(v_empname,v_job,v_sal); showing error
END LOOP;
CLOSE c1;
END emp_test;
END sample1;
While executing the procedure with out the line eresult := emp_result(v_empname,v_job,v_sal); the procedure executes fine.
SQL> execute sample1.emp_test(7900);
JAMES , CLERK , 950
PL/SQL procedure successfully completed.
With that line, i have error
SQL> execute sample1.emp_test(7900);
BEGIN sample1.emp_test(7900); END;
ERROR at line 1:
ORA-04068: existing state of packages has been discarded
ORA-04063: package body "KUMAR.SAMPLE1" has errors
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at line 1
While executing in PL/SQL Developer, it says the wrong number or types of arguments call to ;EMP_RESULT'.
Please guide me where I am wrong.
Kumar

I got invalide data type error.I think the datatype in the CAST() clause must be a SQL Type i.e. one created with a CREATE TYPE command in the database. emp_result is only a PL/SQL datatype.
But I dont know why it is saying error
eresult(eresult.count) := emp_result(v_empname,v_job,v_sal); eresult is a table of records. It is therefore expecting a record. records don't seem to be created in the same way that user defined types are.
The concept of handling records like this is new to 9i and they are still smoothing out the bumps. Things are a lot better in 9.2 than in 9.0.1 if it's any consolation. There is a particular gap in the documentation, which is what's tripping you up at the moment: the difference between TYPE AS RECORD and other types, also the difference between VARRAY, NESTED TABLE and REF CURSOR. To be honest, it's all kind of hazy for me at the moment: I always need to run some code before I make any pronouncements on this topic.
Good luck, APC

Similar Messages

  • Help:  Error when using LSMW (Recording Object Type)

    Dear all,
       I encountered an error when using "Batch Input Recording" way in LSMW,which is as follows:
    I have recorded the transaction MM01 and the source structure and data mapping.When dealing
    with "Specify Files",the error comes out with message
    --> "File Name 'Converted Data':Max.45 Characters:Remaining saved". 
    and the subsequent steps cannot be maintained due to the error.

    Alex,
    The name of file for Converted data is a system generated combination of your Project subproject and object followed by lsmw.conv  as   Project_Subproject_Object.lsmw.conv
    System has set a limit of a maximum of 45 characters. It the file name exceeds 45 characters, the system will throw the error.
    Just rename the file such that it is with in the 45 charcter limit....you will be fine
    Hope this helps
    Vinodh Balakrishnan

  • Business Transaction Profile - Error when using Z-Transaction Type

    Dear Experts,
    we are using SAP CRM 7.0 (Support Level 0007 - SAPKU70007). I have created a Z-Business Transaction Profile Z_IC_SERVICE.
    SAP Help says:
    Enter the transaction type to be used as a default in your scenario in the IC WebClient. For example, choose the transaction type 0010 (Interaction Record) if an interaction record is to be created automatically. The system creates this interaction record automatically after the interaction has started (for example, after accepting a call). During this, the activity clipboard in the interaction record is filled with the relevant data.
    So when I am using the transaction type 0010 (Interaction Record) in my Business Transaction Profile all is OK that means I can search for accounts and I can confirm them to go on with the process.
    BUT: When I entering here a Z Transaction Type (Z000) the systems shows the errors:
    - Error occurred in class CL_ICCMP_CUCOIREC_IMPL, event InteractionStarted.
    - Error occurred in class CL_ICCMP_CUCOIREC_IMPL, event BPConfirmed.
    Then I have made a copy of the transaction type 0010 (Name of copy: Z010) and tried to use it in my Business Transaction Profile the system says:
    Customizing settings missing. Assign partner functions to Z010
    Anybody know what to do and where to avoid errors? Note 1346892 is obsolete in this case because we already have the highest Support Package Level.
    Best Regards
    Oliver

    Hi yes you were right. In the case of both transaction type I have corrected the customizing parameters in
    SPRO -> Customer Relationship Management -> Interaction Center WebClient -> Business Transaction -> Assign Partner Functions to Business Transactions
    In the case of Transaction Type Z010 I had Z-Partner Functions and and that leaded to the errors:
    - Error occurred in class CL_ICCMP_CUCOIREC_IMPL, event InteractionStarted.
    - Error occurred in class CL_ICCMP_CUCOIREC_IMPL, event BPConfirmed.
    In case of the Transaction TYPE Z000 I forgot to assign the Partner Functions that is why this error appeared:
    Customizing settings missing. Assign partner functions to Z010
    Thread Closed

  • Error handling using fault message type in outbound synchronous ABAP proxy

    Hi,
    We've a scenario, outbound synchronous ABAP proxy to synchronous SOAP receiver. The requirement is to send multiple records in a single rquest and get response for all the records sent (in the same response message).
    Say if I send 10 records from ECC, I should get 10 records as response from SOAP to ECC. But the problem here is, there could be some invalid requests, for which an invalid error status code should be sent as part of response.
    Source Structure
    Req_Proxy
        req (0..unbounded, string)
    Response Structure
    Resp_SOAP
      Resp (0..Unbounded)
           respString (0..1, String) (carries the actaul response message)
          status code (0..1, String) (carries the status of the response, for ex, 001 (successful), 002 (error))
    And now we are planning to make use of Fault Message Type, to track the errors from SOAP (status code 002). But, we are not sure on how to track this for all the requested records. Is it possible to track the errors for all the requested records in a singe call using fault message type? For eg if 8 records are successful and 2 are invalid, then we should get 10 records in response 8 for valid and 2 for invalid accordingly.
    Please calrify.
    Thanks.
    Rohit

    For eg if 8 records are successful and 2 are invalid, then we should get 10 records in response 8
    for valid and 2 for invalid accordingly.
    Check if you can modify the WSDL structure to include an error node that would get populated incase of invalid entries....this would mean that you get the success and failure details in the single message....also at the proxy-end make the necessary change in your DT.....may be then you do not need to use the fault message...
    Regards,
    Abhishek.

  • Unsatisfied Link Error when using Oracle OCI (Type II) driver

    Using Oracle OCI (Type II) driver on HPUX with Oracle 9.2.0.4.
    If when creating a connection pool via the console, using the Oracle OCI (Type
    II) driver, you get the error "Unsatisfied link error with library libocijdbc9.sl
    or format error" then check that the library included in the SHLIB_PATH is pointing
    at the $ORACLE_HOME/lib32 directory and not just the $ORACL_HOME/lib

    We do not offer a JDBC driver for Linux in version 5.1. In version 6.0,we
    do offer a type 4 driver for Linux.
    In version 5.1, I suggest trying the platform independent type 4 JDBC driver
    available for free from Oracle. It is supported (as is any JDBC driver)
    with WebLogic Server. To download it:
    Go to http://www.oracle.com and select the "Download" option.
    From the resulting page, use the "Select Utility or Driver" dropdown to
    select Oracle JDBC drivers
    From the resulting page, scroll down a little (since SQLJ stuff appears at
    the top).
    Or, to go directly there:
    http://technet.oracle.com/software/tech/java/sqlj_jdbc/software_index.htm
    Thanks,
    Michael
    Michael Girdley, BEA Systems Inc
    Learning WebLogic? Buy the book.
    http://www.learnweblogic.com/
    "Michael W. Warren, Sr." <[email protected]> wrote in message
    news:[email protected]..
    I have installed WebLogic 6.0 on Solaris platform and verified that the
    server comes up
    and that I can connect to it via Netscape. Next step was to verify
    installation of WebLogic
    jDriver for Oracle. When I run the following:
    java utils.dbping ORACLE scott tiger
    I get the following error:
    Starting Loading jDriver/Oracle .....
    Error encountered:
    java.sql.SQLException: System.loadLibrary threw
    java.lang.UnsatisfiedLinkError
    with the message
    '/ldatae/bea/wlserver6.0/lib/solaris/oci816_8/libweblogicoci37.so:
    ld.so.1: /ldatae/bea/jdk130/jre/bin/../bin/sparc/native_threads/java:
    fatal: libgen.so.1: open failed: No such file or directory'.
    at
    weblogic.jdbcbase.oci.Driver.loadLibraryIfNeeded(Driver.java:202)
    at weblogic.jdbcbase.oci.Driver.connect(Driver.java:57)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:146)
    at utils.dbping.main(dbping.java:182)
    Anyone seen this? Help!!!
    Thanks in advance
    Mike Warren, Sr.
    [email protected]

  • Error when using 557 movement type to remove stocks from intransit

    Dear All,
    We have some stocks left in intrasit where we use only inventory management to do this stock transfer(ie. we are not using STO),now we want to remove this stock from intransit. When i tried to use movment type 557 I got an error (Deficit of PL Stock in transit 10 DZ : CHS10088 2KUR 0000000867) with message number M7021. I cross this material with mb52 to find the avalability of this intransit stock and found that it  is available at given plant but with out a batch number. When I tried to use this movement type it asks for a batch number so i have given an available batch number. Can you please help me to remove this stock from intransit.
    Thanks & Best Regards,
    Chameendri

    Hi
    the movement types 557 ( and 558 ) can only be used to update intra-company
    transit stock which is saved in MARC-TRAME. IF you are using purchase
    orders  cross-company stock transfers, the transit stock is only a virtual transit stock what is calculated
    based on the purchase order history. So this issue cannot be addressed
    by changing the data in a stock table.
    Are you using intra-company STO ?
    Please check carefully note 392205  that contains the report ZTRAME
    .Please see the following information:
    A report attached to the note 392205 tries to explain the stock in
    transit using the documents existing in the system. First verify the
    current stock in transit situation using the report ZTRAME as per the
    note 392205. This program tries to 're-calculate' the stock in transit
    based on the material documents and the purchase order history.
    Based on the results of the program the movement-types 557 and 558 can
    be used to correct the stock in transit (-> add or book out stock in
    transit).
    I hope this can be of help
    BR
    Nadia Orlandi

  • User defined record types in package header

    hi. is there a way in sql developer to view just the record type names? for example, i have:
    TYPE my_rec_type_1 IS RECORD(...);
    TYPE my_rec_type_2 IS RECORD(...);
    TYPE my_rec_type_3 IS RECORD(...);
    and all i want to see is a list showing my_rec_type_1, my_rec_type_2, and my_rec_type_3 without all the inner details of the user defined record. I'm looking for something like in Eclipse, where you see all the method names in a class without all the gory details of each method's implementation.
    thanks

    No.
    Run a query on user_source for your object, order by line, and look at how it is stored.

  • Error when using RTF as type of web report

    When I use RTF as type of web report ,the program will exceptionly terminate with exceptoin.When I use html,Pdf format,it work well.Who can help,Thanks in advance.

    It seems your browser is not properly configured to handle RTF content. You can try to load a local RTF directly into your browser and see if that works.

  • Errors while using plsql clob document in notification email

    bq. hello
    I am having a problem sending a plsql clob document in a notification email.Basically the procedure retrives some rows of data from the database and formats it as HTML before converting to clob. The email is generated fine when only a couple of rows are generated. however when the rows increase the workflow errors. we are using oracle ERP
    ---------------------------------Error Message-----
    An Error occurred in the following Event Subscription: Event Subscription
    Event Error Name: WFE_DISPATCH_GEN_ERR
    Event Error Message: 3835: Error '-20002 - ORA-20002: 2018: Unable to generate the notification XML. Caused by: 2020: Error when getting notification content. Caused by: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Wf_Notification.NTF_Table(8, H)
    BATCH_INFO.Batch Information(209112, text/html)
    Wf_Notification.GetAttrClob(263883, BATCH_INFO, text/html)
    Wf_Notification.oldGetAttrClob(263883, BATCH_INFO, text/html)
    WF_NOTIFICATION.GetFullBody(nid =&gt; 263883, disptype =&gt; text/html)
    WF_MAIL.GetLOBMessage3(nid =&gt; 263883, ' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'.
    Event Error Stack:
    WF_MAIL.GetLOBMessage3(263883, WFMAIL, 2020: Error when getting notification content. Caused by: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Wf_Notification.NTF_Table(8, H)
    BATCH_INFO.Batch Information(209112, text/html)
    Wf_Notification.GetAttrClob(263883, BATCH_INFO, text/html)
    Wf_Notification.oldGetAttrClob(263883, BATCH_INFO, text/html)
    WF_NOTIFICATION.GetFullBody(nid =&gt; 263883, disptype =&gt; text/html)
    WF_MAIL.GetLOBMessage3(nid =&gt; 263883, r_ntf_pref =&gt; MAILHTML), Step -&gt; Getting text/html body)
    WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 263883)
    WF_XML.Generate(oracle.apps.wf.notification.send, 263883)
    WF_XML.Generate(oracle.apps.wf.notification.send, 263883)
    Wf_Event.setMessage(oracle.apps.wf.notification.send, 263883, WF_XML.Generate)
    Wf_Event.dispatch_internal()
    The Procedure is
    bq. /********************************************************************************* \\ Procedure: BATCH_INFO \\ Purpose: Program displays batch level information. \\ *********************************************************************************/ \\ PROCEDURE batch_info ( \\ document_id IN VARCHAR2, \\ display_type IN VARCHAR2, \\ document IN OUT NOCOPY CLOB, \\ document_type IN OUT NOCOPY VARCHAR2 \\ ) \\ IS \\ table_width VARCHAR2 (8) := '100%'; \\ i PLS_INTEGER; \\ j PLS_INTEGER; \\ l_cells wf_notification.tdtype; \\ l_result VARCHAR2 (32767); \\ l_je_batch_name VARCHAR2 (100); \\ l_period_name VARCHAR2 (15); \\ l_control_total NUMBER; \\ l_running_total_dr NUMBER; \\ l_running_total_cr NUMBER; \\ l_document long; \\ cdoc clob; \\ amount NUMBER; \\ charbuff VARCHAR2(32767); \\ charbuff_size NUMBER; \\ CURSOR c_get_je (batch_id IN NUMBER) \\ IS \\ SELECT (SELECT description \\ FROM gl_lookups \\ WHERE lookup_type = 'BATCH_STATUS' \\ AND lookup_code = batch_status) batch_status, \\ je_source, \\ (SELECT user_je_category_name \\ FROM gl_je_categories \\ WHERE je_category_name = je_category) je_category, \\ period_name, batch_name, header_name, \\ header_running_total_dr_num debit, \\ header_running_total_cr_num credit \\ FROM apps.gl_je_batches_headers_v \\ WHERE je_batch_id = batch_id; \\ BEGIN \\ IF display_type = wf_notification.doc_text \\ THEN \\ document := NULL; \\ ELSE \\ /* ===========Second table Start=============*/ \\ j := 0; \\ i := 0; \\ j := 1; \\ /* Header*/ \\ l_cells (j) := 'S:' || 'Batch Status'; \\ j := j + 1; \\ l_cells (j) := 'S:' || 'Journal Source'; \\ j := j + 1; \\ l_cells (j) := 'S:' || 'Journal Category'; \\ j := j + 1; \\ l_cells (j) := 'S:' || 'Period'; \\ j := j + 1; \\ l_cells (j) := 'S:' || 'Batch Name'; \\ j := j + 1; \\ l_cells (j) := 'S:' || 'Journal Name'; \\ j := j + 1; \\ l_cells (j) := 'S:' || 'Journal Debit'; \\ j := j + 1; \\ l_cells (j) := 'S:' || 'Journal Credit'; \\ j := j + 1; \\ i := 0; \\ /* Body*/ \\ SELECT NAME, default_period_name, control_total, \\ running_total_dr, running_total_cr \\ INTO l_je_batch_name, l_period_name, l_control_total, \\ l_running_total_dr, l_running_total_cr \\ FROM gl.gl_je_batches \\ WHERE je_batch_id = TO_NUMBER (document_id); \\ FOR histr IN c_get_je (TO_NUMBER (document_id)) \\ LOOP \\ l_cells (j) := 'S:' || histr.batch_status; \\ j := j + 1; \\ l_cells (j) := 'S:' || histr.je_source; \\ j := j + 1; \\ l_cells (j) := 'S:' || histr.je_category; \\ j := j + 1; \\ l_cells (j) := 'S:' || histr.period_name; \\ j := j + 1; \\ l_cells (j) := 'S:' || histr.batch_name; \\ j := j + 1; \\ l_cells (j) := 'S:' || histr.header_name; \\ j := j + 1; \\ l_cells (j) := \\ 'S:' \\ || NVL (TO_CHAR (histr.debit, \\ 'L999G999G999G999G999G999G999D99'), \\ '&' || 'nbsp;' \\ ); \\ j := j + 1; \\ l_cells (j) := \\ 'S:' \\ || NVL (TO_CHAR (histr.credit, \\ 'L999G999G999G999G999G999G999D99' \\ ), \\ '&' || 'nbsp;' \\ ); \\ j := j + 1; \\ i := i + 1; \\ END LOOP; \\ table_width := '100%'; \\ wf_notification.ntf_table (l_cells, 8, 'HL', l_result); \\ /* Write data to clob */ \\ -- create temp clob \\ dbms_lob.createTemporary(cdoc,false,dbms_lob.call); \\ charbuff_size:=length(l_result); \\ write html data to temp clob \\ dbms_lob.writeappend(cdoc,charbuff_size,l_result); \\ write temp clob to document \\ amount:=dbms_lob.getlength(cdoc); \\ dbms_lob.copy(document,cdoc,amount,1,1); \\ END IF; \\ document_type := 'text/html'; \\ EXCEPTION \\ WHEN OTHERS \\ THEN \\ wf_core.CONTEXT ('BATCH_INFO', 'Batch Information', document_id,display_type); \\ RAISE; \\ END batch_info;
    Can somebody please guide me
    thank you

    The stack trace below the "ORA-06502: PL/SQL: numeric or value error: character string buffer too small" error suggests that this is being generated by the Wf_Notification.NTF_Table call. Given the way you have described the problem, I would assume that the HTML generated by that call for the data in l_cells is exceeding the length of your l_result variable (32767).
    Have you checked the length of the data generated by this call for a single record and then divided 32767 by that number to work out the maximum number of rows you can support with this call?
    If it is simply that you have too much data for WF_Notification.NTF_Table to produce the table within the 32767 limit, you try generating the HTML in smaller chunks and adding them to the CLOB bit by bit. For example, if 10 records work, then generate the HTML for 10 records, chop off the </table> from the result and add it to the clob. Then do the next 10 records (without the header this time) and chop off the <table> and </table> tags and add that to the clob. When you are done, add the closing </table> tag to the clob and return it.
    I haven't done this with returning a clob, but I have done this with shorter strings to generate a HTML table with the standard look and feel but with headers in different places than could be done by default.
    theFurryOne

  • Deploy Error when using Stateful Session Bean inside Webdynpro

    Hi,
    I'm trying to create a webdynpro project that uses a stateful session bean
    I have created DC's for a EJB Module project, Enterprise Application and Webdynpro component. Created the bean, built it, added it's package to the public part, added the EJB Module to the EAR project. Built the EAR project. Added the EJB Module project and Enterprise Application project as a used DC in the Webdynpro DC.
    In the Webdynpro DC I added com.sap.archive-packaging.default.update-descriptors=true in the build.properties file of the cfg directory. (using the navigator view) That resolved an error while building it.
    Deployed the Enterprise Application DC without problems.
    Tried to deploy the Webdynpro DC but I get the following error:
    Jun 16, 2008 9:40:46 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] WARNING:
    [012]Deployment finished with warning
    Settings
    SDM host : 10.64.36.74
    SDM port : 50018
    URL to deploy : file:/C:/DOCUME~1/JESCHA~1/LOCALS~1/Temp/temp59822company.nl~projempactcmp.ear
    Result
    => deployed with warning : file:/C:/DOCUME~1/JESCHA~1/LOCALS~1/Temp/temp59822company.nl~projempactcmp.ear
    Finished with warnings: development component 'projempactcmp'/'company.nl'/'local'/'20080616094022':Caught exception during application startup from SAP J2EE Engine's deploy service:java.rmi.RemoteException: Error occurred while starting application company.nl/projempactcmp and wait. Reason: Clusterwide execption: server ID 6060950:<--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='com.sap.engine.services.deploy.container.DeploymentException: <--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Failed implicit start for company.nl/projempejb : Unknown state(5)', Arguments: []--> : Can't find resource for bundle java.util.PropertyResourceBundle, key Failed implicit start for company.nl/projempejb : Unknown state(5)', Arguments: []--> : Can't find resource for bundle java.util.PropertyResourceBundle, key com.sap.engine.services.deploy.container.DeploymentException: <--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Failed implicit start for company.nl/projempejb : Unknown state(5)', Arguments: []--> : Can't find resource for bundle java.util.PropertyResourceBundle, key Failed implicit start for company.nl/projempejb : Unknown state(5) (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : Got problems during deployment
    Does anyone know what this error means and how to resolve it. I searched the forum but only found errors that look like this relating to XI not to Webdynpro.......
    Thansk,
    Jeschael
    Edited by: J.V. Lebbink on Jun 17, 2008 6:52 AM

    Default is 30mts.
    This is done as a parameter in orion-ejb-jar.xml. Please look at the EJB Guide at http://otn.oracle.com/docs/products/ias/doc_library/903doc_otn/generic.903/a97677/dtdxml.htm#634197 for details
    regards
    Debu

  • Declare object type inside the package

    Hi,
    How can I declare an object type inside the package?
    CREATE TYPE TempObj AS OBJECT (
    user_id number,
    text varchar2(4000),
    date_created DATE
    This will not work if placed inside this:
    CREATE OR REPLACE PACKAGE SAMPLE_PKG IS
    ---declaration goes here.
    END SAMPLE_PKG;
    I tried using the type RECORD and it worked. But I am just curious how to declare an Object. Or maybe RECORD is the replacement of Object? is this correct?
    thanks,
    Baldwin

    The inside of a PL/SQL package should contain PL/SQL statements.
    CREATE TYPE is not a PL/SQL statement. You can't create a table in package either.
    If data protection is the reason that you would rather create the type inside the package, then consider using a record type as you suggested, or hiding the SQL type in a more protected schema.
    Message was edited by:
    jonjac

  • Error passing in RECORD type into API

    Gurus,
    Getting the following error when I try and pass a RECORD type into an API. Am I passing it in properly?
    Any help is appreciated.
    Thanks,
    -Scott
    Here's my error:
    fnd_descr_flex_col_usage_pkg.load_row
    ERROR at line 21:
    ORA-06550: line 21, column 4:
    PLS-00306: wrong number or types of arguments in call to 'LOAD_ROW'
    ORA-06550: line 21, column 4:
    PL/SQL: Statement ignored
    Here's my anon block:
    declare
    TYPE who_type IS RECORD
    created_by NUMBER,
    creation_date DATE,
    last_updated_by NUMBER,
    last_update_date DATE,
    last_update_login NUMBER
    v_who_type who_type;
    v_sysdate date;
    begin
    select sysdate
    into v_sysdate
    from dual;
    v_who_type.created_by := 0;
    v_who_type.creation_date := v_sysdate;
    v_who_type.last_updated_by := 0;
    v_who_type.last_update_date := v_sysdate;
    v_who_type.last_update_login := 0;
    fnd_descr_flex_col_usage_pkg.load_row
    (x_application_short_name => 'SPL',
    x_descriptive_flexfield_name => 'HR_LOCATIONS' ,
    x_descriptive_flex_context_cod => '441',
    x_application_column_name => 'ATTRIBUTE5',
    x_who                          =>  v_who_type,
    x_end_user_column_name => 'District',
    x_column_seq_num => 10,
    x_enabled_flag => 'Y',
    x_required_flag => 'N',
    x_security_enabled_flag => 'N',
    x_display_flag => 'Y',
    x_display_size => 50,
    x_maximum_description_len => 50,
    x_concatenation_description_le => 25,
    x_flex_value_set_name => '50 Characters',
    x_range_code => '',
    x_default_type => '',
    x_default_value => '',
    x_runtime_property_function => '',
    x_srw_param => '',
    x_form_left_prompt => 'District',
    x_form_above_prompt => 'District',
    x_description => '');
    ...

    I followed Tubby's advice and called the package to which the RECORD type was defined, however, I'm getting a "no data found" error in the called package. The purpose of "internally" definining the record type inside my Anon block was so that I could assign variables locally.
    Help from you gurus would be greatly appreciated!
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at "APPS.FND_DESCR_FLEX_COL_USAGE_PKG", line 508
    ORA-06512: at line 21
    Please do not refer me to any more EBS forums or links.  This is a coding question, not an EBS question.
    For the guy who asked, here is the procedure definition:
    PROCEDURE load_row
    (x_application_short_name IN VARCHAR2,
    x_descriptive_flexfield_name IN VARCHAR2,
    x_descriptive_flex_context_cod IN VARCHAR2,
    x_application_column_name IN VARCHAR2,
    x_who IN fnd_flex_loader_apis.who_type,
    x_end_user_column_name IN VARCHAR2,
    x_column_seq_num IN NUMBER,
    x_enabled_flag IN VARCHAR2,
    x_required_flag IN VARCHAR2,
    x_security_enabled_flag IN VARCHAR2,
    x_display_flag IN VARCHAR2,
    x_display_size IN NUMBER,
    x_maximum_description_len IN NUMBER,
    x_concatenation_description_le IN NUMBER,
    x_flex_value_set_name IN VARCHAR2,
    x_range_code IN VARCHAR2,
    x_default_type IN VARCHAR2,
    x_default_value IN VARCHAR2,
    x_runtime_property_function IN VARCHAR2,
    x_srw_param IN VARCHAR2,
    x_form_left_prompt IN VARCHAR2,
    x_form_above_prompt IN VARCHAR2,
    x_description IN VARCHAR2)

  • Return Record type - Help required

    Hi ,
    I have a package which uses a record type
    TYPE cont_rec IS RECORD
         (cont_id Number
         ,cont_number Number
         ,cont_number_modifier Number
    ,s_l_id Number);
    TYPE cont_tbl IS TABLE OF cont_rec INDEX BY BINARY_INTEGER;
    and then calls a function
    go_cont(p_id In Number,
    x_name in Varchar2,
    x_con out cont_tbl);
    I want to use this function in a procedure and receive the result set of go_cont. how can i do this??

    Here is one example:
    SQL>
    SQL> create or replace package prec is
      2 
      3  type cont_rec is record
      4  (cont_id Number
      5  ,cont_number Number
      6  ,cont_number_modifier Number
      7  ,s_l_id Number);
      8 
      9  type cont_tbl is table of cont_rec index by binary_integer;
    10 
    11  function go_cont(
    12  p_id In Number,
    13  x_name in Varchar2
    14  ) return cont_tbl;
    15 
    16  end;
    17  /
    Package created.
    SQL> show errors
    No errors.
    SQL>
    SQL> create or replace package body prec is
      2 
      3  function go_cont(
      4  p_id In Number,
      5  x_name in Varchar2
      6  ) return cont_tbl
      7  is
      8  v_r cont_rec;
      9  v_t cont_tbl;
    10  begin
    11    v_r.cont_id := 1;
    12    v_r.cont_number := 1;
    13    v_r.cont_number_modifier := 1;
    14    v_t(1) := v_r;
    15    v_r.cont_id := 2;
    16    v_r.cont_number := 2;
    17    v_r.cont_number_modifier := 2;
    18    v_t(2) := v_r;
    19    return v_t;
    20  end;
    21 
    22  end;
    23  /
    Package body created.
    SQL> show errors
    No errors.
    SQL>
    SQL> set serveroutput on
    SQL>
    SQL> declare
      2  tab prec.cont_tbl;
      3  begin
      4  tab:= prec.go_cont(1, NULL);
      5  for i in tab.first..tab.last
      6  loop
      7   dbms_output.put_line(tab(i).cont_id);
      8  end loop;
      9  end;
    10  /
    1                                                                              
    2                                                                              
    PL/SQL procedure successfully completed.
    SQL>
    SQL> exit

  • Run time error while using Class gcl_error

    Hi All,
    I am getting run time error while using class gcl_error
                                          type REF to zsreport_error_handling:
    '' Attempt to access a component using 'NULL' object reference (points to nothing).
    An object reference must point to an object ( an instance of a class) before you can use it to access components ( variable : ''GCL_ERROR'').
    Either the reference point has not yet been set or it has been reset to 'NULL' by a clear statement."
    Can you please suggest any solution for this ?
    Thanks in advance.

    Dear All
    Its Resolved Thanks For your Valuable time Support
    INCLUDE LV03VFB4 inside below code trigger error.
    PERFORM VVBBD_AUFBAUEN USING WA_AVBBD
                                        WA_AVBBD-APOMOBILE
                                        DA_SUBRC
                                        DA_UPDKZ
                                        DA_VVBBD_TABIX
                                        0.
    This Was the Error some how 0 was there we are removed the 0 now it is working fine
    Rgds
    Thomson

  • JoinFieldValue Revenue Record Type

    I have been trying to either create a workflow, or enter a Default Value, on a custom field under Opportunity.
    I am trying the following JoinFieldValue('<Revenue>',[<OpportunityId>], '<Custom_Qty>') <--There are brackets around <OpportunityId>, just not displaying in thread.
    I got the syntax and record type from the online help, but I am getting an error "Field name ‘Revenue’ is invalid(SBL-SBL-00000)".
    We are using Revenue Record Type.
    Can someone please assist?
    Thanks!

    CRMOD has contacted me back and says that Revenue is not available for JoinFieldValue, but the online help file shows otherwise. Anyone else see that they do have Revenue listed under the Record Type?
    https://secure-ausomxdsa.crmondemand.com/docs/1.10.0.1080.0.00/enu/help/index.htm?toc.htm?ebjoinfieldvaluehelp.html
    not sure if you will be able to get to the link above, but that is the documentation that I am looking at.

Maybe you are looking for

  • I cannot delete a file from desktop

    I cannot delete a file on my desktop that I downloaded from the internet.  The error message is 'cannot be moved to trash because it cannot be deleted.' I cannot 'get info' either. 

  • How To Add Apps From Keyboard International

    i was purchase icon animation on itune store for my mms , when i go to keyboard international add option don't see a application show there , how to install it with os 4.2

  • Airplay & Mirroring Question

    I just set up my Apple TV.  Home Sharing is working fine (from my base PC where iTunes is located).  How do I do 'airplay' and 'mirroring' from my iPad, iPod Touch, and iPhone 4S?  And - can I use Airplay and Mirroring on a 1st generation iPad (runni

  • Unable to Download Flash Version 9

    Running Windows XP SP2, all patches up to date. IE version 6. I've been trying to download version 9 and so far have not been successful. After I click the download button, I see the informational message about installing an ActiveX component and I c

  • I want to have my photos on my mac book and ipad

    how can I sync my photos so they are on my new Ipad?