Error On Creating Type

SQL> create or replace type WS_REQUEST as object
  2  (
  3    xml xmltype,
  4    http_request utl_http.req
  5   )
  6  /
Warning: Type created with compilation errors
SQL> show err;
Errors for TYPE SYS.WS_REQUEST:
LINE/COL ERROR
4/16     PLS-00201: identifier 'UTL_HTTP.REQ' must be declared
0/0      PL/SQL: Compilation unit analysis terminated
SQLI logged in sys schema as sysdba. What is the problem?

I think you cannot create types if the attributes' datatypes are based on package records, constants, etc
See:
mmara@pyn> create or replace package val
is
type dummy is record (
pid number,
pname varchar2(15));
end val;
Package created.
mmara@pyn> create or replace type WS_REQUEST as object
xml xmltype,
http_request val.dummy
Warning: Type created with compilation errors.
mmara@pyn> show errors type ws_request;
Errors for TYPE WS_REQUEST:
LINE/COL ERROR
0/0 PL/SQL: Compilation unit analysis terminated
4/18 PLS-00201: identifier 'VAL.DUMMY' must be declared
mmara@pyn>
In that case, why don't you create the same type as seen in utl_http as an object in the schema?:
TYPE req IS RECORD (
url VARCHAR2(32767 byte), -- Requested URL
method VARCHAR2(64), -- Requested method
http_version VARCHAR2(64), -- Requested HTTP version
private_hndl PLS_INTEGER -- For internal use only
);

Similar Messages

  • Getting error while creating the variable of Schema Element type

    Hi everybody,
    For creating a variable of schema element type I am doing the following steps...
    Select 'Variables' after right clicking on bpel process. IN this window, go to 'Create VAriable' then select 'Element' type. Now in Type Choose, I expanded the my imported schema files. And selected a element type, then click ok to create this variable... I am getting the message...
    IN ORDER TO SAVE IMPORTED WSDL/SCHEMA FILES, YOU MUST HAVE A PARTNER LINK LOCATED UNDER THE CURRENT PROJECT DIRECTORY.
    What is mean by that.
    I have imported the schema files in project. AFter that I have imported them into the WSDL also. Now why I am getting error while creating the variable. However I can create variable directly in .BPEL file then everything is fine. And it is working also. But what is mean with the above error? Why I am not able to create variable through GUI?
    Thanks.

    Hi,
    I have this same problem this morning, and I was going crazy, until I found this webpage on the internet:
    [http://technology.amis.nl/blog/1803/problem-importing-xml-schema-in-bpel-process|http://technology.amis.nl/blog/1803/problem-importing-xml-schema-in-bpel-process]
    The idea is that the jdeveloper is not very good working with directories with spaces on the directory name. If you move all your work to a directory without spaces, it will work smoothly. At least, it had worked for me.
    Regards,
    Nacho

  • Error while creating "RETURNS" as ERP Sales transaction type

    Description: We are getting error while creating ERP SLO type "Returns-ZRE". Message prompts as "Creation of ERP Transaction failed". We do not get the message for other order types for example "Standard order".
    Please suggest. Please note that this is an ERP sales order in CRM UI not a CR< sales order.
    Thanks
    Shree

    Is this only for a particular order type?
    As stated above this can be to do with user authorisations or the trusted RFC set up. Some things to check are:
    - ST22 dumps in ECC
    - ST01 authorisation trace for the user in ECC
    - Trusted RFC connection set up

  • Error while creating SC: Internal Error - termination type TH_RES_FREE

    Hi I encountered this error while creating a SC. All attributes for this user are maintained and the "check user" transaction does not give any error.
    Amol Mate
    Error when processing your request
    What has happened?
    The URL http://punhjwsapsrm:8000/sap/bc/gui/sap/its/bbpsc02/! was not called due to an error.
    Note
    The following error text was processed in the system SSS : Internal Error
    The error occurred on the application server PUNHJWSAPSRM_SSS_00 and in the work process 1 .
    The termination type was: TH_RES_FREE
    The ABAP call stack was:
    Function: B40B_READ_TABLE of program SAPLBBP_BD_DRIVER_40B
    Function: META_READ_TABLE of program SAPLBBP_BD_META_BAPIS
    Form: LOCATIONS_READ of program SAPLBBP_ATTR_F4
    Function: BBP_ATTR_F4_SLOC_PPOMA of program SAPLBBP_ATTR_F4
    Form: STG_LOC_GET_FOR_LOCATION of program SAPLBBP_SC_APP
    Form: STG_LOC_GET of program SAPLBBP_SC_APP
    Form: LOCATION_STG_LOC_GET of program SAPLBBP_SC_APP
    Form: USER_ATTRIBUTES_GET of program SAPLBBP_SC_APP
    Form: SC_INIT of program SAPLBBP_SC_APP
    Function: BBP_SC_APP_EVENT_DISPATCHER of program SAPLBBP_SC_APP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system SSS in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server PUNHJWSAPSRM_SSS_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 1 in transaction ST11 on the application server PUNHJWSAPSRM_SSS_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http-c:100-u:PTEST -l:E-s:SSS-i:PUNHJWSAPSRM_SSS_00 -w:1-d:20051121-t:171904-v: TH_RES_FREE-e:Internal Error
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team

    Hi Amol,
    First of all the sicf transaction is to be used only if you use the internal ITS.
    Now you have to put an external breakpoint in the source code of the ABAP Program or FM you want to debug , one of these in your case :
    Function: B40B_READ_TABLE of program SAPLBBP_BD_DRIVER_40B
    Function: META_READ_TABLE of program SAPLBBP_BD_META_BAPIS
    Form: LOCATIONS_READ of program SAPLBBP_ATTR_F4
    Function: BBP_ATTR_F4_SLOC_PPOMA of program SAPLBBP_ATTR_F4
    Form: STG_LOC_GET_FOR_LOCATION of program SAPLBBP_SC_APP
    Form: STG_LOC_GET of program SAPLBBP_SC_APP
    Form: LOCATION_STG_LOC_GET of program SAPLBBP_SC_APP
    Form: USER_ATTRIBUTES_GET of program SAPLBBP_SC_APP
    Then launch the transaction in IE, once the program reaches a breakpoint, you'll get the ABAP debuger in IE.
    Regards.
    PS: if it doesn't work, put the parameter ~generatedynpro in BBPGLOBAL service to have it applied to all BBP transactions
    Vadim

  • Getting error while creating condition type in SPRO

    Hi ,
    can somebdy tell me why i am getting the following error while creating condition type in SPRO
    No valid change license available for message /sapcnd/
    and also while rule determination using condition type we are getting the following error.
    system error:system cannot read the structure for table
    reg
    venkat

    Hi Venkat,
    Do you have the error number code!?
    Regards,
    Michel  Bohn

  • Error while creating the 'LOV' type parameter in Siebel 8.1.1.5

    Hi,
    One of my Customer is facing the below error while creatting the parameter of type 'LOV' in Parameter applet in Siebel 8.1.1.5
    Runtime Error!
    Program: C:\Program Files\Internet Explorer\iexplorer.exe
    This application has requested the Runtime to terminate it in an usual way. Please contact the application’s support team for more information
    Could some please let me know what would be the reason for this issue?
    Thanks in advance for your help.
    Thanks,
    Ravi

    Please close this thread...it appears that the error occurs when the report involves a big set of records. I tried trying to filter only one record and was able to produce the pdf

  • Error while creating an outbound idoc using idoc type delvry02

    hi,
         i getting the following error while creating an outbound idoc(outbound shipping notification) using message type " DESADV" and IDOC TYPE " DELVRY02"
    ERROR:
                " SPECIFY EITHER ADDRESS NO OR ADDRESS HANDLE"
    MESSAGE NO: AM053
    Help would be appreciated.
    regards
    leo

    The message is kind of self-explanatory. It seems that some address (delivery address ?) is required but is missing from the IDoc. If it's a syntax error, then the segment with error will appear in red in WE05 transaction.
    It is also possible that you have filled some field that you should have left blank and now SAP is trying to find an address based on that field.
    Check your IDoc contents. It's really hard to tell from the distance since the requirements and configuration could be very different in different systems. Sometimes the OSS note search by message ID and number is also helpful.

  • Error While Creating Date type condition query

    Hi All,
    I am getting following error while creating a multiple condition query.
    ERROR:java.lang.IllegalArgumentException: Unexpected field type for D: java.lang.String
    I am pasting the scrap of the code for review below.
    pls note after removing the condition cond6; it works fine, and cond6 is for date type field.
    for(int j=1;j<7;j++){                          
    fd[j] =trd.getFieldDescriptor(arrayHeaderFieldNames[j]);
    BasisFieldType bft1 =  fd[j].getFieldType();
    if (bft1 == BasisFieldType.C) {
      filterOperator[j] = RelationalOperatorType.CONTAINS;       }
    else{
      filterOperator[j] = RelationalOperatorType.EQUALS;
    order[j] =queryFactory.createSortOrder(fd[j],true);
    cond1 =queryFactory.createCondition(fd[1], filterOperator[1], values[0]);
    cond2 =queryFactory.createCondition(fd[2], filterOperator[2], values[1]);
    cond3 =queryFactory.createCondition(fd[3], filterOperator[3], values[2]);
    cond4 =queryFactory.createCondition(fd[4], filterOperator[4], values[3]);
    cond5 =queryFactory.createCondition(fd[5], filterOperator[5], values[4]);
    cond6 =queryFactory.createCondition(fd[6], filterOperator[6], values[5]);
    Condition cond = queryFactory.createCondition(new Condition[]{cond1,cond2,cond3,cond4,cond5,cond6},LogicalOperatorType.AND);
    Please Help!
    Thanks n regards,
    Kapoorchand.

    Hi,
    well that problem is a long time back -. I only have in mind that the date I had to transfer to the quesry was in a "strange" format. Have a lock into the documentation for the date field - your date field is not recognised as a date field from the quesry engine and so this fails - but unfortunately I have no idea at the moment how I fixed it last time - how I converted my date field......
    Sorry, thast I can not give you the real point - but I will have a lock into the old code - hopefully I find it soon.
    Regards,
    Oliver

  • Error when creating user defined TYPE

    Hi
    I have an object type created as follows
    create type emp_add is object(empno number(3),street varchar2(50),zipcode number(6));
    when I create a type based on the Object created above using
    create type add_rec is emp_add;
    I am getting compilation error
    SQL> sho err
    Errors for TYPE ADD_REC:
    LINE/COL ERROR
    1/17 PLS-00103: Encountered the symbol "EMP_ADD" when expecting one of
    the following:
    array VARRAY_ table object fixed varying opaque sparse
    How can I get rid of this error.I am a Beginner in Oracle database development.
    Thanks in advance

    Do this ->
    satyaki>
    satyaki>create type emp_add is object(empno number(3),street varchar2(50),zipcode number(6));
      2  /
    Type created.
    Elapsed: 00:00:07.77
    satyaki>
    satyaki>create or replace type add_rec as table of emp_add;
      2  /
    Type created.
    Elapsed: 00:00:00.96
    satyaki>
    satyaki>Regards.
    Satyaki De.

  • Syntax error when creating a user-defined table type in SQL Server 2012

    Why am I getting a syntax error when creating a user-defined table type in SQL Server 2014?
    CREATE TYPE ReportsTableType AS TABLE 
    ( reportId INT
    , questionId INT
    , questionOrder INT );
    Results:
    Msg 156, Level 15, State 1, Line 1
    Incorrect syntax near the keyword 'AS'.

    Hope these posts could help, 
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/37a45a9a-ed8c-4655-be93-f6e6d5ef44be/getting-incorrect-syntax-while-creating-a-table-type-in-sql-server-2008-r2?forum=transactsql
    Regards, Dineshkumar,
    Please Mark as Answer if my post answers your question and
    Vote as Helpful if it helps you

  • Error MSG : Create a partner profile for message type 'MATMAS'

    Getting Error MSG : Create a partner profile for message type 'MATMAS'
    While running LSMW Idoc generation process

    See the below link and it has all screen shots how to configure ALE like partner profile,logical systems,RFC
    http://searchsap.techtarget.com/general/0,295582,sid21_gci1130337,00.html

  • How to resolve create type error?

    Hi all,
    I am duplicating the contents of schema1 to schema2 on the same database.
    So I used expdp schema1/schema1 .... exporting schema1. Then impdp schema2/schema2 remap_schema=schema1:schema2
    These 2 schemas have dba privilege.
    Why do I get this error:
    ORA-39083: Object type TYPE failed to create with error:
    ORA-02304: invalid object identifier literal
    Failing sql is:
    CREATE TYPE "C1DEVADM"."CMQTNQHT"   OID 'AC82C504E18C6A98E044001A4B08907C' AS TABLE OF CMQTNQHF;Thanks a lot,

    Hi;
    I already done exporting the data :(
    I guess it will be ok if I create the object types manually after impdp right?Yes.
    PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Regard
    Helios

  • Error:First create the valuation-type-independent data:BAPI MM

    Hello all,
    I am getting above error (First create the valuation-type-independent data) when i sent the BWTAR field to BAPI_MATERIAL_GET_ALL and material data is not getting fetched.
    Please guide to resolve the issue.
    Thank you.
    Edited by: sanjivrd on Nov 30, 2009 10:08 AM

    Hi all,
    I'm using BAPI_MATERIAL_SAVEDATA for opening all views of material. I I try to open COST and ACCOUNT views, still having same message error "First create the valuation-type-independent data".
    Also If I don't open ACCOUNT and COST views, the creation works fine. After in updating material, I set up the VALUATIONDATA / X structure but the error is the same.
    We use "split valuation on material" and the Valuation Type is a mandatory field.
    Any help?
    Thanks in advance.
    GB

  • Screen Shot Error - Unable to create type string error

    I had this message after I tried to change via Terminal the .png standard file capture into .jpeg format.
    Does anyone has any solution that will reset and make it work again?
    " The attempt to take a screen capture has failed. The error is: 'Unable to create type string."

    Download and use the free TinkerTool.

  • Condtion type error when create SO

    Now I want to do rebate, and I assign condition type BO02 to pricing table ZA0001 through tr-cd V/08. But when I create Sales order it is still give error as condtion type BO02 is not assigned to A V ZA0001. I tried to assign some other condtion type to this pricing table then it works fine.

    Hi Cherry,
    i think you created this pricing procedure copy of RA0001 where for BO02 is having requirment type 24 which is used only in BILLING DOCUMENT.
    and you might be getting this error becouse you might have marked this condition as MANDATORY but becouse of reuqirment type not getting determined in Document.
    it will be great if you can send us ERROR NO

Maybe you are looking for

  • Oracle 11gR2 RAC on Oracle Linux

    Folks, need some help in finding the correct asmlib for this linux box, have already tired one and screwed up one box, now trying on 2nd one. Here is info: Oracle Linux Server release 5.6   x86_64 Please advice, I'm looking at here and tried this one

  • Using the Mic in Windows 7

    I sometimes like to have conversations with my friends on MSN Messenger and other programs (like online games and such), but I noticed that there are no drivers installed for the mic. Is there a place where I can go to download drivers so it will wor

  • Objects to be transported from Windows platform to Unix platform

    Hi experts Our current development is on windows platform. and the production server will be on HP Unix platform. I just wanted to know that is it possible to transport the webdynpro application and the portal contents. Also wanted to know what all c

  • Blackberry Link version okay?

    My BlackBerry Link version shows to be 1.1.1.26 but indicates a software update is available. Is 1.1.1.26 still fine and dandy for my Q10s or is the latest BlackBerry Link update important to install? Is 1.2.2.13 proving to be a good version to updat

  • CDC and Journalizing....!!!

    Hi , What is CDC and Journalizing......... How can I implement in my Data migration ( Source : Oracle , Target : Oracle). Can anyone plz explain me in detail, how to use this ....... Thanks AK