PLS-00320: the declaration of the type of this expression is incomplete or malformed

hello my friend please help
I have this Error in PL /SQL procedure
ORA-06550: line 6, column 12:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 6, column 12:
PL/SQL: Item ignored
where this is my procedure
CREATE OR REPLACE PROCEDURE MOAMALAT."IO_EMP_REP"
P_FROMDATE IN NUMBER,
P_TODATE IN NUMBER,
P_EMPID IN NUMBER,
RCT1 OUT GLOBALPKG.RCT1
AS
BEGIN
OPEN RCT1 FOR
SELECT COUNT (I.CORRESPONDENCENUMBER) cont,
EMP.FULLNAME empname,
D.DEPARTMENTNAME deptname
FROM MOAMALAT.IO_INCOMING i,
MOAMALAT.IO_EMPLOYEES emp,
MOAMALAT.IO_DEPARTMENTS d
WHERE I.RECEIVEDBY = (SELECT EM.USERID
FROM MOAMALAT.IO_EMPLOYEES em
WHERE EM.EMPLOYEEID = P_EMPID)
AND I.RECEIVEDBY LIKE EMP.USERID
--and EMP.DEPARTMENTID=1900
AND I.RECEIVEDBYDEPARTMENTID = D.DEPARTMENTID
AND I.CORRESPONDENCEDATE BETWEEN P_FROMDATE AND P_TODATE
GROUP BY EMP.FULLNAME, D.DEPARTMENTNAME
UNION ALL
SELECT COUNT (o.CORRESPONDENCENUMBER) cont,
EMP.FULLNAME empname,
D.DEPARTMENTNAME deptname
FROM MOAMALAT.IO_OUTGOING o,
MOAMALAT.IO_EMPLOYEES emp,
MOAMALAT.IO_DEPARTMENTS d
WHERE O.SENTBY = (SELECT EM.USERID
FROM MOAMALAT.IO_EMPLOYEES em
WHERE EM.EMPLOYEEID = P_EMPID)
AND EMP.USERID LIKE EMP.USERID
AND EMP.USERID LIKE O.SENTBY
AND O.SENTBYDEPARTMENTID = D.DEPARTMENTID
AND O.CORRESPONDENCEDATE BETWEEN P_FROMDATE AND P_TODATE
GROUP BY EMP.FULLNAME, D.DEPARTMENTNAME;
END;

aymanhamdan01 wrote:
thanks for replay
sb92075
this line 6:  RCT1 OUT GLOBALPKG.RCT1
does Oracle (& you) know what datatype GLOBALPKG.RCT1 is?

Similar Messages

  • The declaration of the type of this expression is incompleteor malformed

    error 320 at line 22 column 14
    the declaration of the type of this expression is incompleteor malformed
    error 0 at line 22,column 4
    statement ignored
    DECLARE
         v_value VARCHAR2(50);
         v_prod_id varchar2(100);
         v_prod_name VARCHAR2(100);
    BEGIN
         v_value:=:product.SIZE_LONG;
         v_prod_id:=:product.prod_id;
         v_prod_name:=:product.prod_name;
         IF v_value is not null then
         insert into product (prod_id,prod_name,DRESS_COMPOSITION,WASH_LABEL_INSTRUCTION,PRESSING_CHARGE,DYEING_CHARGE,
         EXTRA_CHARGE,FINISHING_CHARGE,ITEM_TYPE,TOTAL_FOB,SEASON_YEAR,INTERSTAT_CODE,RETAIL_EURO,WHOLESALE_EURO,
         RETAIL_USD,WHOLESALE_USD,RETAIL_GBP,WHOLESALE_GBP,CATEGORY)
         values (v_prod_id||'-L',v_prod_name||'-Long',:product.DRESS_COMPOSITION,:product.WASH_LABEL_INSTRUCTION,
         :product.PRESSING_CHARGE,:product.DYEING_CHARGE,:product.EXTRA_CHARGE,:product.FINISHING_CHARGE,:product.ITEM_TYPE,
         :product.TOTAL_FOB,:product.SEASON_YEAR,:product.INTERSTAT_CODE,:product.RETAIL_EURO,
         :product.WHOLESALE_EURO,:product.RETAIL_USD,
         :product.WHOLESALE_USD,:product.RETAIL_GBP,:product.WHOLESALE_GBP,:product.CATEGORY);
         LOOP
              insert into product_detail1(prod_id,item_code,item_name,qty,price,unit,avg_rate)
              values (:product_detail1.prod_id,:product_detail1.item_code,:product_detail1.item_name,
              :product_detail1.qty,:product_detail1.price,:product_detail1.unit,:product_detail1.avg_rate);
                   exit when NO_DATA_FOUND;
              NEXT_RECORD;
         END LOOP;
    elsif
         v_value is  null then
         delete from product where prod_id=(v_prod_id||'-L');
    end if;
    END;Please Guide
    why this errro comes
    Thanks And Regards
    Vikas Singhal

    i did that
         GO_BLOCK('product_detail1');
         FIRST_RECORD;
         LOOP
              insert into product_detail1(prod_id,item_code,item_name,qty,price,unit,avg_rate)
              values (v_prod_id||'-L',:product_detail1.item_code,:product_detail1.item_name,
              :product_detail1.qty,:product_detail1.price,:product_detail1.unit,:product_detail1.avg_rate);
              MESSAGE('KKKKKKKKKKKKK');
                   exit when :system.last_record = 'true';
                   NEXT_RECORD;
              END LOOP;
    AFTER THAT GIVING ERROR
    FRM: 40102 Record Must be Deleted Or enetered First
    the user requirement is
    i) First record is enetered
    master and detail
    after that he want same record for another record the only change is prod_code
    for LARGE,SMALL or SHORT etc.
    so i will create a button on form and a field with name size if the user choose the size and press the button then the one record is to insert in master detail and the prod_code is cahnged
    please guide
    Thanks And Regards
    vikas Singhal
    Edited by: vikas singhal on Aug 20, 2010 5:59 PM

  • The type of this column cannot be changed because it is currently being indexed

    Hi,
    We have a custom library with some columns defined. This library we have saved as a template and then trying to create a library using the template. When we try creating the new library using the template we get the following error:
    The type of this column cannot be changed because it is currently being indexed.
    We are not trying to change any column type just creating a new library using the template. The existing library does have a couple of indexes specified. Removing a index that is applied on a column of choice data type (drop down selection) seems to work.
    However, would like to know why this is an issue with the index?
    Although this is perfectly supported. Checked, this does not happen when I try with a new library with a choice data type and index applied on that library, it creates the template and then a new library correctly. So, what's going wrong with my earlier
    library?

    Hi Croute,
    I had checked that thread earlier and tried the Managed Metadata Service Application solution. However does not help in my case. I still get the error.
    Also, just to cross-check we created a new library from scratch and added choice column and applied index on this column. Saved this as template and created a new library using this template. It works fine without the error. So not sure what is wrong with
    the earlier library and list template that gives the error
    The type of this column cannot be changed because it is currently being indexed.
    Also, note even after giving this error the library is created with all the columns and indexes. But we need to provide a reason for the error above.

  • Relate the types to each expression

    Hi guys,
    What I want to do is to relate the types to each expression in a Java program. I am using Java Tree Builder or JavaCC to create parser for any java program. Then I want to analysis the security of code. So how to relate the types of each expression in program, once I get the parser of program.
    Thanks in advanced. Your help will be greatly appreaciated.

    Hi,
    Please try this:
    /Me/Events?$select=Subject,Start,End,LastModifiedTime&$filter=LastModifiedTime ge '2014-09-18'
    More information:
    Filter REST call on SharePoint with DateTime value
    http://itblog.wolthaus.net/2011/12/rest-filter-datetime/
    SharePoint REST interface with operators and functions
    http://adicodes.com/sharepoint-rest-interface-with-operators-and-functions/
    Best regards
    Dennis Guo
    TechNet Community Support

  • The schedules for this line are incomplete

    Hi,
    I'm attempting to create a PO in the vision EBS 12.1.3 apps instance..Logged in as 'operations'. When I click on the 'Approve' button, I get the following error which I'm not sure what it means and where I should start to debug:
    The schedules for this line are incomplete. I thought I covered all the necessary fields...
    Any ideas?
    Thank you!

    Please see ((Pics) How to Capture Debug / Log / Trace Files During the Purchase Order / Requisition Approval Process? [ID 409155.1]) for the steps you need to follow to debug the issue.
    Thanks,
    Hussein

  • Why Firefox not supported by Web Dynpro , Pls provide the support for this .

    Unable to use some of my office web application as they works on Web Dynpro! which is till now not supported by firefox.

    Can you give a link?
    Or see if upgrading to Firefox 24 (released sometime today) helps
    * [[Update Firefox to the latest version]]

  • Wondering:what 's the result of this expression:

    (byte) oxa2 >>> 2
    very simple, right?

    is a right bit shit isn't it?well, oxa2 = 1010 0010
    bit shift = 0010 1000 || 10 (chopped off)
    result = ox28
    I think. Anyone agree or disagree?
    ...DJVege...

  • PLS-00320

    Hi all,
    when I try to compile a package body I receive following error:
    [Error] PLS-00320 (1466: 5): PLS-00320: the declaration of the type of this expression is incomplete or malformed
    [Error] PLS-00320 (1475: 37): PLS-00320: the declaration of the type of this expression is incomplete or malformed
    [Error] ORA-00904 (1475: 37): PL/SQL: ORA-00904: "LV_ID_LIMIT": invalid identifier
    I have variable declared as you can see below.
    lv_id_limit radis.sif_lim_radis.id_limit%type;
    I have the same code on testing environment where it compiles just fine. Any help would be appreciated.
    Regards,
    Robert

    Seems you dont have enough privilges to access the radis.sif_lim_radis either schema or object.

  • How to change the type of the Warning message BS011 in Error one?!

    Hi all,
    I'm facing the following problem:
    We're working with serial numbers which are generated when the production order is realeased..
    When the order is finally confirmed the finished product is put in the Storage Location with good movement 101: Tcode MIGO1, and the related serial numbers must be selected.
    If the user fails in the selection and insert a serial number that is already been delivered to the final customer the message "bs011" appear as a warning:
    System status ECUS is active (EQU 10011899)
    Message no. BS011
    Diagnosis
    System status ECUS (At customer site) is active for object EQU 10011899. When this status is active, the system issues a warning before executing transaction 'Goods receipts'
    Procedure
    If you want to execute transaction 'Goods receipts' anyway, ignore the alert message.
    Our customer wants it to be an error message: how can I do? where could I manage the type of this message?
    I've also refeared to the link:
    Serial number
    but I don't succeded in doing it..
    Please help me!
    Thanks in advance,
    Valentina

    Hi Valentina,
    1. Transaction: BS22 (System Status maintenance).
    2. Locate the system status:  I0188  - ECUS (click Page down key to scroll the list below).
    3. Put cursor on I0188 and, menu path GOTO -> TRANSACTION CONTROL.
    4. Locate Business status PMS1 - Goods Receipts, click checkbox "Forbidden" (It might be in Warning right now?).
    5. Save and test your scenario.
    Regards, Trino

  • How to retrieve the type of iView?

    Hi Experts,
    I would have a simple question, I have an ivew on my portal, but I am not able to find the type of this iview. I need the name of the iview template like WebDynpro, Transaction, BW, URL, Query ect.
    Thanks,
    Levente

    If you want to find the type of the iView from the code you can use the API which is described in the following document.
    <https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401>
    But I guess, you should be knowing the type of the iView using the Delta Link Tracer. Atleast I am able to see that.
    Sudhir
    Reward with points if useful

  • How to use the types declarations in smartforms

    hai
      already i declared the types in smartfomr global defination, how to call the types to the internal table and workarea, in which please i declare the internal table and work area by using the types structures
    for example
    types: begin of ty_kna1,
              kunnr type kunnr,
              name1 type name1,
              land1 type land1,
             end of ty_kna1.
    how to call the above types to internal table and work area in simartforms , in which place i declare the above types to the internal table and workarea

    Hi,
    Please see below
    **In Types tab
    types: begin of ty_kna1,
    kunnr type kunnr,
    name1 type name1,
    land1 type land1,
    end of ty_kna1.
    Types:ty_t_kna1 type standard table of ty_kna1.
    In Global data tab
    ***Internal table declaration
    data:i_kna1 type ty_t_kna1.
    ***Work area declaration
    data:wa_kna1 type ty_kna1.
    Regards
    Jana

  • Exception: "The type "Collection" as used in the variable/parameter declarations

    I am getting the following exception when I try to run the test code.
    What could be causing it ?
    I am running Kodo 2.4.3 with JDK 1.4.1
    EXCEPTION
    javax.jdo.JDOFatalInternalException: [agencyNames:[AGENCY1, AGENCY2]]
    NestedThrowables:
    javax.jdo.JDOUserException: The type "Collection" as used in the
    variable/parameter declarations could not be found in the imports.
    TEST CODE
    JDOFactory jdoFactory = new JDOFactory();
    PersistenceManager pm = jdoFactory.getPersistenceManager("");
    try
    Class agencyClass = Agency.class;
    Extent agencyExtent = pm.getExtent(agencyClass, false);
    String filter = "agencyNames.contains(agencyName)";
    List agencyNames = Arrays.asList(new String[]{"AGENCY1",
    "AGENCY2"});
    String param = "Collection agencyNames";
    Query q = pm.newQuery(agencyExtent, filter);
    q.declareParameters(param);
    Collection deps = (Collection) q.execute(agencyNames);
    System.out.println("SIZE :" + deps.size());
    catch (Exception ex)
    ex.printStackTrace();
    JDO Mapping and Class
    package test;
    import java.util.*;
    public class Agency
    private String agencyName;
    private String hostCarrierCode;
    //Getter and Setter
    public static class Id
    public String agencyName;
    public String hostCarrierCode;
    //Application ID definition
    ?xml version="1.0"?>
    <jdo>
    <package name="test">
    <class name="Agency" identity-type="application"
    objectid-class="Agency$Id">
    <extension vendor-name="kodo" key="table" value="AGENCIES"/>
    <extension vendor-name="kodo" key="lock-column" value="none"/>
    <extension vendor-name="kodo" key="class-column" value="none"/>
    <field name="agencyName" primary-key="true">
    <extension vendor-name="kodo" key="data-column"
    value="AGENCY_NAME"/>
    </field>
    <field name="hostCarrierCode" primary-key="true" >
    <extension vendor-name="kodo" key="data-column"
    value="CARRIER_CODE"/>
    </field>
    </class>
    </package>
    </jdo>

    Kodo 2.4.3 does not support using collections as parameters.
    Kodo 2.5.0, due to be released shortly, does support this. See
    http://solarmetric.com/Software/beta/2.5.0 to get the latest release
    candidate.
    -Patrick
    On Thu, 05 Jun 2003 22:26:36 +0000, B K Adarsh wrote:
    I am getting the following exception when I try to run the test code.
    What could be causing it ?
    I am running Kodo 2.4.3 with JDK 1.4.1
    EXCEPTION
    javax.jdo.JDOFatalInternalException: [agencyNames:[AGENCY1, AGENCY2]]
    NestedThrowables:
    javax.jdo.JDOUserException: The type "Collection" as used in the
    variable/parameter declarations could not be found in the imports.
    TEST CODE
    JDOFactory jdoFactory = new JDOFactory();
    PersistenceManager pm = jdoFactory.getPersistenceManager("");
    try
    Class agencyClass = Agency.class;
    Extent agencyExtent = pm.getExtent(agencyClass, false);
    String filter = "agencyNames.contains(agencyName)";
    List agencyNames = Arrays.asList(new String[]{"AGENCY1",
    "AGENCY2"});
    String param = "Collection agencyNames";
    Query q = pm.newQuery(agencyExtent, filter);
    q.declareParameters(param);
    Collection deps = (Collection) q.execute(agencyNames);
    System.out.println("SIZE :" + deps.size());
    catch (Exception ex)
    ex.printStackTrace();
    JDO Mapping and Class
    package test;
    import java.util.*;
    public class Agency
    private String agencyName;
    private String hostCarrierCode;
    //Getter and Setter
    public static class Id
    public String agencyName;
    public String hostCarrierCode;
    //Application ID definition
    ?xml version="1.0"?>
    <jdo>
    <package name="test">
    <class name="Agency" identity-type="application"
    objectid-class="Agency$Id">
    <extension vendor-name="kodo" key="table" value="AGENCIES"/>
    <extension vendor-name="kodo" key="lock-column" value="none"/>
    <extension vendor-name="kodo" key="class-column" value="none"/>
    <field name="agencyName" primary-key="true">
    <extension vendor-name="kodo" key="data-column"
    value="AGENCY_NAME"/>
    </field>
    <field name="hostCarrierCode" primary-key="true" >
    <extension vendor-name="kodo" key="data-column"
    value="CARRIER_CODE"/>
    </field>
    </class>
    </package>
    </jdo>--
    Patrick Linskey
    SolarMetric Inc.

  • An exception with the type CX_SY_CONVERSION_CODEPAGE occurred

    Hi Friends,
    i gonna mad by applying all notes related to this error but still i am not getting the abap report as bsp application, the notes i applied manualy are listed below
    834521
    849287
    851753
    853589
    Runtime Error:
    +Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    An exception with the type CX_SY_CONVERSION_CODEPAGE occurred, but was neither handled locally, nor declared in a RAISING clause
    Exception Class CX_SY_CONVERSION_CODEPAGE
    Error Name CONVT_CODEPAGE
    Program SAPLSURL
    Include LSURLF01
    Line 309
    Long text Bei der Zeichensatzkonvertierung wurde entweder ein Zeichen entdeckt, welches in einer der Codepages nicht dargestellt werden kann, oder festgestellt, daß diese Konvertierung nicht unterstützt wird.
    Error type: Exception
    Your SAP Business Server Pages Team+
    i am using
    Component version SRM 4.0 ( SRM Server 5.0 )
    SAP_BASIS 640 ( highest support - SAPKB64011 )
    SAP_ABA 640 ( highest support - SAPKA64011 )
    Unicode system - Yes
    Bsp code used
    On Create
    this handler is called once the page is first created (stateful mode)
    it performs a once-off data initialization or object creation
      data: listobject type table of abaplist. " occurs 10.
      data: report_name type syrepid.
      data: output_str type string.
    submit ZTEST_YOGESH
    using selection-set 'TEST' and return
    exporting list to memory .
    call function 'LIST_FROM_MEMORY'
    tables
    listobject = listobject
    exceptions
    not_found = 1
    others = 2.
    try.
    call function 'WWW_HTML_FROM_LISTOBJECT'
    exporting
    template_name = 'WEBREPORTING_REPORT'
    tables
    html = html
    listobject = listobject.
    CATCH cx_sy_conversion_codepage.
    ENDTRY.
    +
    Layout+
    <%@page language="abap"%>
    <%   data: html_wa type w3html.
    clear:  html_wa . %>
    <% loop at html into html_wa. %>
    <%= html_wa %>
    <% endloop. %>
    could any one give me any light on this, your help would be greatly apreciated.
    Thanks
    Message was edited by: Murugadass Krishnan

    Hi,
    Pls don't forget to reward points and close the question if you find the answers useful.
    Eddy

  • Get the Type of a generic field at runtime, How to?

    Hello,
    As the topic already says, i need to get the Type of a particular field of a class. This field is declared private and generic. In C# there is a method
    Type Object.getTypeIs there any specific way to do this in Java 1.5?
    Please excuse my poor english.
    Thanks in advance.
    Markus

    McNepp wrote:
    endasil wrote:
    McNepp wrote:
    If you want to know the parametrized type (String in the example), I think there is no way of knowing this in Java 1.5 or Java 1.6, since the parametrized type is erased and not available at run time.The type of a parameterized field is not erased.For most intents and purposes, it is. Type erasure refers to the fact that at runtime, there are not actually multiple class binaries depending on the generic arguments to a class. Therefore, an ArrayList<T> is actually just an ArrayList with no generics.
    Frankly, I don't understand why you insist that the information on generic fields that the OP was asking about is lost at runtime.I wasn't trying to insist that. At the time, I was replying more to Saish and trying to reaffirm that most information about generics is lost at run-time. I mistakenly ignored how you qualified it with "field."
    What you write about instances of generic classes losing their type information is of course correct, albeit not to the point of the original question.Nope, you're right. I was just trying to reconcile the fact that many people get confused that there's any information available at run-time, and so start down the path of thinking that type erasure doesn't exist. But it very much does.
    The original question was about how to obtain the type of a generic field.And I did show in my example that even that is fairly limited, given that if the type is provided by the parameter of the class, it doesn't give you anything useful (I'm not trying to say you said it would!).
    The compiler preservers this information in the class file, so it can be obtained at runtime. Frameworks like JPA put this to use extensively, proving that it is of real value.Definitely. However I don't see this having as much to do with generics as basic reflection functionality. If you can get the type of a field at run-time, you should be able to get the parameters as well! That should in no way belittle its value, though. But I would have guessed (knowing little about) that JPA wouldn't put that to use so much as the type parameters of an accessor return type or mutator argument type. Especially since I thought we'd shown that you would need your fields to be non-private for JPA to be able to gain information about their type.
    Edit: getDeclaredField works fine with private members, and returns the expected "java.lang.String" from jschell's example above
    Edited by: endasil on 28-Apr-2009 10:39 AM

  • What are the types of routines

    hi experts
    can some one give me clear idea on what are the types of routine we use in sap bi
    with scenarios?
    what is CMC?
    Please search the forum before posting a thread
    Edited by: Pravender on Apr 7, 2011 12:56 PM

    Hi,
    In BI 7.0 we have the following types of routines.
    1. Start Routine.
    2. End Routine.
    3. Expert Routine.
    This routines can be used in the complex scenarios and to improve the performance of the loading time.
    I am elaborating the routine in details here.
    1. Start Routine : whenever you create a start routine, the system will automatically give you some predefined data declaration like structure of the type of your source. In start routine you can declare a local data declaration and Global data declaration also. I will give one example.
    Suppose you are creating Start routine for transformation from Datasource to DSO. Then when you create start routine the System will provide you a structure of your datasource. By using this structure it will also define an internal table which will be used as changing parameter of a method of a class. It is this changing parameter where you have to do all sorts of manipulation. The changing parameter is both export as well as import parameter. This changing parameter will contain data in the package wise.
    In start routine you can also read some database table and store that data into an internal table and this internal table data can then be read in the field level routine. In this case it acts as a substitute of master data look up in the field level transformation.
    2. End routine : The end routine is also same as start routine, the only difference is that here the system will provide you with a structure of the target not the source. and rest is all same as start routine.
    3. Expert routine : This is the strongest and most complex of all routines. This allows you to design the entire data flow of the transformation. If you create an Expert routine the system will automatically delete all the field level mapping, Start routine and end routine. You also have to take care of the error handling and monitoring
    assign points if it helps
    Thanks & Regards,
    santo

Maybe you are looking for

  • Need help on parsing xml file...

    Hi all, I need to collect some data from an Xml file using java. I have the following code with me but I am unable to get the required result. I am unable to get the data from the tags belonging to the header and footer elements. Please find the code

  • IP Address determination based Portal Roles Access

    Dear Experts, Current Scenario - SAP Portal is accessible directly and via Citrix (VPN). Based on the URL alias - we have implemented Desktop Filtering. eg if the URL ends with / internet - You get restricted roles eg if the URL ends with / intranet

  • Adobe on iSeries

    Hello Gurus, i'm right now installing  a NW 7.3 Java with the Adobe Usage type. Does any of you have a "post Configuration/Processing manual" that I can follow to configure Adobe ? One litle more question, in the old Adobe that I've (Double Stack Aba

  • Finder crashes when Preview column is active in list view

    I've created a bootable system backup of OS X 10.10.1 on an external 1TB HD connected via firewire 800 to a 2011 iMac running OS 10.10.1. I have had no problems with Yosemite's Finder on the iMac if I boot from the internal HD. I check to be sure whi

  • Audio files are missing in iMovie HD 6

    I have 10.5 installed and was using iMovie 08. I was having problems exporting a movie, some of the clips were all black. So I downloaded iMovie 06 and all the iLife audio files are missing. They're still there in '08 but not '06. How do I get them i