Types declaration

Hi,
I need to declare a variable in OO envinroment what is a same type like MD5_FIELDS-HASH_RAW8 (RAW 8).
I cannot use "like" reserved word in OO.
Can anybody advice a right type declaration ?
Thanks.
Marian

Hi Marian,
Try this out:
TYPES: type1 TYPE  md5_fields-hash_raw8.
DATA: var1 TYPE type1.
Now you can use var1 of type md5_fields-hash_raw8.
Thanks & Regards,
Kingshuk Dutta.

Similar Messages

  • How to use %Type declaration with table residing in a different database

    How can I use the %TYPE declaration if the table is from a different database.
    E.g
    v_business_unit ps_jrnl.header.business_unit%TYPE;
    In the above declaration statement,the table 'ps_jrnl_header' resides in a different database(Database A) from the one I am currently in( Database B).(This is because data needs to be extracted from Database A into Database B).

    1. Create a database link to the other database (this probably already exists since your proc is interacting with that database)
    2. Create a synonym for the table in the other database
    create synonym foo for ps_jrnl.header@database_a;3. Reference the synonym in your variable declaration:
    v_business_unit  foo.business_unit%TYPE;

  • SAXParser type declaration not found - PLEASE HELP!!

    I am using XML to parse an incoming string of XML. I want to use an SAXParser to do this, but I cannot create an object of this type. I have the jar file jaxp.jar, xalan.jar, and crimson.jar in my classpath.
    Is there anything else that I need to do in order to get the parser to work.
    This is a very urgent need so any help is appreciated. Here is the error:
    Class SAXParser not found in type declaration;

    I have figured out the issue. Thanks for the help. I do have one more issue though. I am trying to parse a string of xml data and I need to pass my parse() method an InputSource object that I guess I will make from my incoming String.
    Any thoughts on how to do this?

  • Wildcards in type declarations or only methods?

    Can you declare wildcards in type declarations such as:
    public class ListManager<List<?>> {
    }When I try this, I get the following compiler errror:
    C:\dev\hcj\tiger\src>c:\j2sdk1.5.0\bin\javac -source 1.5 oreilly/hcj/tiger/*.java
    oreilly/hcj/tiger/ListManager.java:21: > expected
    public class ListManager<List<?>> {
                                 ^
    oreilly/hcj/tiger/ListManager.java:31: '{' expected
    ^
    2 errorsWhat am I doing wrong [if anything]?
    TIA
    -- Kraythe

    public class ListManager<List<?>> {
    }When I try this, I get the following compiler errror:Hmm .. I was thinking about this. .. What i was trying to declare was a class that would use as a parameter any declaration of a List. So what I want is a class that will take List<Integer> and List<String> and so on. So the result would be to use it like this:
    public void someMehtod() {
        ListManager<List<String>> strListMger = ...
        ListManager<List<Integer>> strListMger = ...
    }So if not with the wildcard, how is this accoplished (if it can be accomplished at all).
    I would also like to do something like:
    public class ListManager<Type extends List<?>> {
    }In this manner I would at least have access to the type. Except the extends is a misnomer since i want type to be any List<> type.

  • "Global Type declaration duplicated", cached xsd conflicting in jdeveloper?

    We're having problems recompiling a project after changing a schema in a second project on which it depends:
    Our HR composite app imports a schema from our FaultHandler app. I added 2 new elements to the FaultHandler schema and redeployed to the server - now our HR composite app won't recompile. It errors saying:
    [scac] error: in EmpTransformSynch.bpel(87): query "/ns9:HandleFaultRequest/ns9:TimestampeInit" is invalid, because Global Type declaration/definition of name '{http://mydomain.com/SOA/FaultHandler}HandleFaultRequestType' are duplicated at the following locations:
    [scac] http://mydomain.com:8001/soa-infra/services/default/FaultHandlerProject/xsd/FaultHandler.xsd [line#: 4]
    [scac] http://mydomaincom:8001/soa-infra/services/default/FaultHandlerProject/FaultHandler?XSD=xsd/FaultHandler.xsd [line#: 7]
    [scac] There are at least two of them looking different:
    [scac] http://mydomain.com:8001/soa-infra/services/default/FaultHandlerProject/xsd/FaultHandler.xsd [difference starting at line#:16]
    [scac] http://mydomain.com:8001/soa-infra/services/default/FaultHandlerProject/FaultHandler?XSD=xsd/FaultHandler.xsd [difference starting at line#:19]
    I can view the 2 URIs in my browser, and while they differ slightly in how they reference another schema, the schemas (and imported schema) are semantically equivalent.
    We've taken the following steps to try to resolve it:
    Undeploy the previous revision of Fault handler
    Restart soa server
    Redepoy Fault Handler
    Clean HR app
    Make HR app
    We have the issue in both jdeveloper 11.1.1.3.0 and 11.1.1.4.0
    This is surely something very simple, but it's blockiing us at the moment.
    Any help much appreciated.
    ..Garret
    Edited by: user10714498 on 09-Mar-2011 02:27

    If your schema contains any characters which will be escaped when parsed by a browser, then version present in the actual .xsd and the version referenced via HTTP server will be different causing the issue.
    If you can post the content of your actual schema (as you see it in jDev and not the one opened in the browser) here it will help identifying the issue if any.

  • Adding XML Declaration and Document Type Declaration.

    I'm using Oracle's XML Class Generator C++ version 1.0.2.0.0. I can create classes from a defined external DTD and create my XML document. But the document does not contain the XML Declaration <?xml version='1.0?> nor does it contain the Document Type Declaration <!DOCTYPE root-element-name SYSTEM "system-identifier">. What do I need to do to get these as part of my XML document? Does the class generator have methods to do this? Could someone show me an example?

    If you invoke the print method on the top-level ELEMENT, you get
    just the body of the document with no DTD or XMLDecl. if you invoke
    print on the top level NODE (the DOCUMENT node), then the output
    document will contain the XMLDecl and DTD.
    So please try to print from DOCUMENT node.

  • Source XML data type declaration querry

    Hi all,
    I am very confused in below XML data type declaration.
    I am dealing first time with this type of XML.
    In source XML header items are mentioned in header node(address).
    <address addressline1="6th & Hunt" addressline2="" city="Pryor" state="OK" country="Sun" zip="74361">
    - <phoneinfo>
      <phone type="work">9999999999</phone>
      </phoneinfo>
    - <faxinfo>
      <fax>100000001</fax>
      </faxinfo>
    </address>
    Please Help in the "Data type declaration" of above source XML????
    How can i use this data type in message mapping????
    Thanks & Regards

    Hi Umesh,
    You can use Data types with Attributes in XI.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/3b/d2a3f7a166514abb8cf5635b71974f/frameset.htm
    And you can even try with the External Definition also.
    Hope this helps,
    regards,
    Moorthy

  • Global Type declaration/definition of name duplicated error

    Hi, All,
    We have two EJB exposed as the Webservice , so WS-1 and WS2, When I insert these two WS into the SOA Application to used by BPEL process. I get the compile error from jdev(11.1.1.1.3) like this:
    Global Type declaration/definition of name '{http://mynamespace-here/oracle}SearchParameter' are duplicated at the following locations:
    EJB WS1 xsd line ***
    EJB WS2 xsd line ***
    SearchParameter is bean SearchRequest‘s property, this bean is shared using in two EJB method interfaces.
    Our class design like this:
    @XmlRootElement
    @XmlType(name = "SearchRequest",
    namespace = " http://mynamespace-here/oracle ")
    public class SearchRequest
    implements Serializable
    private SearchInterface searchCriteria;
    @XmlElements(value =
    { @XmlElement(name = "SearchParameter",
    type = SearchParameter.class) })
    public SearchInterface getSearchCriteria()
    return searchCriteria;
    At here SearchInterface is an empty interface and SearchParameter is a class implement this interface.
    I feel @XmlElement in fact cause this duplicated error.
    So in this case, how can we expose this SearchInterface/SearchParameter through the XML properly?
    Thanks .
    wayne
    Edited by: user782942 on Feb 8, 2011 11:37 PM

    If the message type in the external service and the one using in your local are using the same schema, could you check whether the external service has changed the schema in any way? Adding new fields, changing the field name, or changing the namespace? We had faced this issue before, and it was because the schema in our mds is different from the schema from OSB, which they changed it after we get the artifacts and we didn't have the updated schema in our mds.

  • [svn] 3571: Update SWFLoader ASDoc comment to remove &emdash and data type declaration .

    Revision: 3571
    Author: [email protected]
    Date: 2008-10-10 11:07:09 -0700 (Fri, 10 Oct 2008)
    Log Message:
    Update SWFLoader ASDoc comment to remove &emdash and data type declaration. ASDoc adds that automatically.
    Doc the new types in IndexChangedEvent.as
    Checkin Test Passed: Yes
    QA: No
    Bug:
    Doc: No
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/events/IndexChangedEvent.as

    lunke you shoude change svn update http://svn.foo-projects.org/svn/xfce/modules/trunk to svn up $startdir/src/trunk
    hers a PKGBULID for thunar
    pkgname=thunar
    pkgver=0.0.2.r17470
    pkgdesc="Thunar is a file manager designed for Xfce. It is currently under development."
    url="http://thunar.xfce.org/wiki/"
    depends=('exo-svn')
    makedepends=('subversion')
    source=()
    md5sums=()
    build() {
    if [ ! -d $startdir/src/thunar ]; then
    echo "Fetching sources..."
    svn checkout http://svn.foo-projects.org/svn/xfce/thunar/trunk/ /thunar
    else
    echo "Updating sources..."
    svn up $startdir/src/thunar/
    fi
    cd $startdir/src/thunar
    ./autogen.sh --prefix=/opt/xfce4-svn
    make || return 1
    make DESTDIR=$startdir/pkg install
    find $startdir/pkg -name '*.la' -exec rm {} ;
    you will need exo from svn as well
    pkgname=exo-svn
    pkgver=r17470
    pkgdesc="Extensions to Xfce by os-cillation"
    url="http://libexo.os-cillation.com/"
    conflicts=(exo)
    provides=(exo)
    depends=('xfce4-svn')
    makedepends=('subversion')
    source=()
    md5sums=()
    build() {
    if [ ! -d $startdir/src/trunk ]; then
    echo "Fetching sources..."
    svn checkout http://svn.foo-projects.org/svn/xfce/libexo/trunk/
    else
    echo "Updating sources..."
    svn up $startdir/src/trunk
    fi
    cd $startdir/src/trunk
    ./autogen.sh --prefix=/opt/xfce4-svn
    make || return 1
    make DESTDIR=$startdir/pkg install
    find $startdir/pkg -name '*.la' -exec rm {} ;
    "Operation libtool-slay" compliant

  • Global Type declaration/definition are duplicated

    Hi,
    I am migrating my components  from Solution accelerator 111150 to 111181. I have modified the names spaces for task and removed the references of workflow.xsd and replaced it with "oramds:///soa/shared/workflow/WorkflowTask.xsd". I am facing the issue of duplicate declaration/ definition
    Error: Global Type declaration/definition of name '{http://xmlns.oracle.com/bpel/workflow/task}systemAttributesType' are duplicated at the following locations:
    oramds:///soa/shared/workflow/WorkflowTask.xsd [line#: 248]
    http://qaipm.atfoods.com:8001/soa-infra/services/default/ReportData//soa/shared/workflow/WorkflowTask.xsd [line#: 238]
    There are at least two of them looking different:
    oramds:///soa/shared/workflow/WorkflowTask.xsd [difference starting at line#:345]
    http://qaipm.atfoods.com:8001/soa-infra/services/default/ReportData//soa/shared/workflow/WorkflowTask.xsd [difference starting at line#:334]
    and below that there are numerous errors. I believe those are due to this first line. where am i going wrong?
    Regards.

    It looks like your local orsmds store and your server's oramds store are out of sync.
    To be sure, check the differences in WorkflowTask.xsd file at the following locations
    Local machine -->  "jdeveloper\integration\seed\soa\shared\workflow"
    URL --> http://qaipm.atfoods.com:8001/soa-infra/services/default/ReportData//soa/shared/workflow/WorkflowTask.xsd
    I am sure there must be a difference at the location mentioned in your original post.
    Regards,
    Vikrant Korde.

  • Annotation Type Declaration

    Why in anno type declaration some types look like methods ?
    Example:
    public @interface MyAnnotation {
       String doSomething();                   //HERE
       int count; String date();                 // int is fine but , String , why its a method ?
    Usage:
    @MyAnnotation (doSomething="What to do", count=1,
                   date="09-09-2005")
    public void mymethod() {
    }

    ya ..
    it says
    "The annotation type definition looks somewhat like an interface definition where the keyword interface is preceded by the @ character (@ = "AT" as in Annotation Type). Annotation types are, in fact, a form of interface, which will be covered in a later lesson. For the moment, you do not need to understand interfaces.
    +The body of the annotation definition above contains annotation type element declarations, which look a lot like methods. Note that they may define optional default values.+ "
    But does not explain why they are metods , observe in the above example that ,
    primitive int is directly declared , not as a method ,
    Then all should be methods ..

  • How to set Document Type Declaration of xml Document?

    Hi,
    I am referring to "org.w3c.dom.Document".
    How can we set the Document Type Declaration (DTD) of a document?
    Thanks.

    Hi,
    But when we have to create a document(org.w3c.dom.Document) dynamically, and that document has to be validated against a DTD......How can we do it?
    I am using the following code
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    DOMImplementation domi = builder.getDOMImplementation();
    DocumentType docType = domi.createDocumentType("query", null, "c:\\queryDtd.dtd");
    Document doc = domi.createDocument(null, "query", docType);But this code is not working. Resulting document is not having <!DOCTYPE...> tag
    I have to build a Doument object (not xml file) whose content is as below
    <?xml version='1.0' encoding='utf-8'?>
    <!DOCTYPE query SYSTEM "queryDtd.dtd">
    <query id="abc123">
         <data-source-name>EmployeeDB</data-source-name>
         <fields>
                     <field>id</field>
                     <field>name</field>
                     <field>salary</field>
                     <field>joindate</field>
         </fields>
         <fetch-limit>10</fetch-limit>
    </query>

  • Correct use of Type declaration?

    Hello,
    I have a type declaration in a package like so:
    type get_rec_type
    IS
      record
      ( upl_id    table_name.id%TYPE
      , doc_id    table_name.eff_from%TYPE
        );I have refered to this type in my procedure declaration like so:
    PROCEDURE bulk_upload_prc
    ( p_rec OUT get_rec_type
    );Is this correct?
    The reason I ask is because I am getting the following error.
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'BULK_UPLOAD_PRC'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignoredThank You
    Ben
    Edited by: Benton on Nov 3, 2010 12:01 PM

    Hi Toon,
    I am attempting to run it by doing the following:
    EXEC schemName.new_bulk_upload_pkg.bulk_upload_prc;And I am not supplying it any variables, because it should be getting them from the cursor that I have opened.
    and here is the cursor
    CURSOR c_get_rec_type RETURN get_rec_type;This is the package so far, I hope I am not giving you too much information ...
    SPECIFICATION
    CREATE OR REPLACE
    PACKAGE NEW_BULK_UPLOAD_PKG
    AS 
    -- DECLARE TYPES
    type get_fbt_bulk_upload_rec_type
    IS
      record
      ( upl_id    tableName.upl_id%TYPE
      , doc_id    tableName.doc_id%TYPE
      , atr_id    tableName.atr_id%TYPE
      , reference tableName.reference%TYPE
      , filename  tableName.filename%TYPE
      , mime_type tableName.mime_type%TYPE
      , eff_from  tableName.eff_from%TYPE
      , eff_to    tableName.eff_to%TYPE
      , title     tableName.title%TYPE
      , comments  tableName.comments%TYPE
    -- DECLARE CURSORS
    CURSOR c_get_fbt_bulk_upload_rec_type RETURN get_fbt_bulk_upload_rec_type;
    PROCEDURE bulk_upload_prc
    ( p_rec     OUT get_fbt_bulk_upload_rec_type
    , p_blob    OUT BLOB
    , p_srcfile OUT BFILE
    , p_max_rec OUT NUMBER
    END NEW_BULK_UPLOAD_PKG;BODY
    CREATE OR REPLACE
    PACKAGE BODY NEW_BULK_UPLOAD_PKG
    AS
      CURSOR c_get_rec_type
        RETURN get_rec_type
      IS
         SELECT upl_id
              , doc_id
              , atr_id
              , reference
              , filename
              , mime_type
              , eff_from
              , eff_to
              , title
              , comments
           FROM schemaName.tableName
          WHERE status = 'NOT LOADED';    
    -- Bulk upload procedure.
    PROCEDURE bulk_upload_prc
        p_rec     OUT get_rec_type ,
        p_blob    OUT BLOB ,
        p_srcfile OUT BFILE ,
        p_max_rec OUT NUMBER
    IS
    BEGIN
        LOOP
          FETCH c_get_rec_type INTO p_rec;
          EXIT WHEN c_get_rec_type%NOTFOUND;
          DBMS_LOB.CreateTemporary(p_blob, TRUE);
          DBMS_LOB.Open(p_blob, dbms_lob.Lob_ReadWrite);
          p_srcfile := Bfilename('UPLOAD_DIR', p_rec.filename);
          DBMS_LOB.FileOpen (p_srcfile, dbms_lob.File_ReadOnly);
          DBMS_LOB.LoadFromFile(p_blob, p_srcfile, DBMS_LOB.GetLength(p_srcfile));
           INSERT
             INTO dev_fbt_doc
              filename ,
              mime_type,
              blob_content
            VALUES
              p_rec.filename ,
              p_rec.mime_type,
              EMPTY_BLOB()
    -- Remark required
            UPDATE schemaName.TableNameB
               SET blob_content = p_blob
             WHERE filename
              LIKE p_rec.filename;
    -- Get the DOC_ID of the record that was just inserted into TableNameB.
            EXECUTE IMMEDIATE 'SELECT MAX(doc_id) FROM schemaName.TableNameB'
            INTO p_max_rec;
    -- Update the column named STATUS with the text UPLOADED to distinguish it from
    -- those records that have not been uploaded (NOT LOADED).
            UPDATE schemaName.tableName
               SET status = 'UPLOADED'
             WHERE upl_id = p_rec.upl_id;
    -- Update the column named DOC_ID to record the assigned DOC_ID for the record
    -- that was uploaded.
            UPDATE schemaName.tableName
               SET doc_id = p_max_rec
             WHERE upl_id = p_rec.upl_id;
       DBMS_LOB.FileClose(p_srcfile);
       COMMIT;
        END LOOP;
      END bulk_upload_prc;
    END NEW_BULK_UPLOAD_PKG;Thank You
    Ben
    Edited by: Benton on Nov 3, 2010 1:24 PM

  • Document type declaration for root element type "web-app" must end with ' '

    I am attempting to deploy an application (.war file) using the Sun Access Manager Agent installed, (Reference http://docs.sun.com/app/docs/doc/819-3201/6n5eht3k4?a=view -near the bottom) and I get this error:
    Error loading deployment descriptors for ajacs Line 3 Column 19 -- The document type declaration for root element type "web-app" must end with '>'.
    Here is the relavent code:
    <!DOCTYPE web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <web-app>
    <filter>
    <filter-name>Agent</filter-name>
    <filter-class> com.sun.identity.agents.filter.AmAgentFilter </filter-class>
    </filter>
    <filter-mapping>
    <filter-name>Agent</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>ERROR</dispatcher>
    </filter-mapping>
    <display-name>AJACS</display-name>
    <welcome-file-list>
    <welcome-file>frameSet.jsp</welcome-file>
    </welcome-file-list>
    etc...
    Now, when I remove the parts that http://docs.sun.com/app/docs/doc/819-3201/6n5eht3k4?a=view said to add, it deploys just like it used to deploy- just fine with no errors. However, I add that code and it breaks.
    Note: The code was a straight copy/paste, so if there is any error in the code, it is because it's written incorrectly on the Sun doc website.
    Any help would be MUCH appreciated. Thanks!

    Well, if that was pasted on one line, it would be:
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    So it's supposed to be that way. I just tried it with the extra quotes, and no dice...

  • Capturing packages with type declarations

    I have a lot of packages written in ddl files and want capture them with Designer 9i. However it seems not possible because type declarations are put not as Datastructures but as text in Package Specification field and therefore are generated after procedure declarations in package specification. Is there some methods to capture packages correctly?

    Hi,
    Can you send me an example of your problem so I can investigate it further?
    Rgds
    Susan
    Designer Product Management

Maybe you are looking for