BLOB importing with IMP

Hello,
I am trying to import a database dump to another location. This exercise gives an error when importing the table containing BLOB column.
My original database was in tablespace 'R' and owned by user 'R'. Now I want to load it to tablespace 'M' owned by user 'M'. What I understand is that the loader (IMP) still tries to create table with a BLOB column in 'R' tablespace while I want it to be created in 'M'.
What is the solution to this problem?
Kindly reply asap.
-- Hamid

Well said Tom & Karen,
However, I have extracted a piece of information from the metalink, it might be helpful to you.
What are the errors you get and what type of export/import are you doing and have you tried SQL Loader which also supports loading of LOBs? The Utilities manual has information on how to accomplish export/import and load LOBs. If you are doing a direct path export then suggest running a conventional path export. Are you using any other features like Advanced Queuing and how big is the size of data, is it lesser than 4K? What kind of LOB specially you have and have you changed the database character set? If you are not using commit=y on import, suggest you try.
130814.1 How to move LOB Data to Another Tablespace
119897.1 How to Select a LOB Column over a Database Link
66431.1 LOBS - Storage, Redo and Performance Issues
If you are trying to set up a user/schema for one(on his own tablespace), into which he can import tables (have BLOB and CLOB columns) which are maintained in another schema (and tablespace) then its documented as an restriction described in the Oracle8i Utilities
1. Import with INDEXFILE parameter to generate the script
that can be used to modify the LOB's tablespace clause.
$imp system/manager fromuser=scott tables=\(circul\)
indexfile=create_lob_table
2. Edit the generated script file create_lob_table.sql:
REM CREATE TABLE "SCOTT"."CIRCUL" ("CIRCUL_ID" VARCHAR2(8) NOT NULL
REM ENABLE, "FIC_CIRCUL" BLOB) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS
REM 255 LOGGING STORAGE(INITIAL 10240 NEXT 10240 MINEXTENTS 1 MAXEXTENTS
REM 121 PCTINCREASE 50 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
REM TABLESPACE "USERS" LOB ("FIC_CIRCUL") STORE AS (TABLESPACE "USERS"
REM ENABLE STORAGE IN ROW CHUNK 2048 PCTVERSION 10 NOCACHE LOGGING
REM STORAGE(INITIAL 10240 NEXT 10240 MINEXTENTS 1 MAXEXTENTS 121
REM PCTINCREASE 50 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)) ;
REM ... 0 rows
2.1 Remove the REM comments
2.2 Change the owner SCOTT by the new owner U1
2.2 Change the tablespace USERS by the TOUSER's tablespace NEW_TBS in the whole statement.
3. Run the script create_lob_tabl
4. Import the data only in the created table, ignoring the CREATE TABLE statement failure.
$imp system/manager fromuser=scott tables=\(circul\) ignore=y

Similar Messages

  • How to handle blob data with java and mysql and hibernate

    Dear all,
    I am using java 1.6 and mysql 5.5 and hibernate 3.0 . Some time i use blob data type . Earlier my project's data base was oracle 10g but now i am converting it to Mysql and now i am facing problem to save and fetch blob data to mysql database . Can anybody give me the source code for blob handling with java+Mysql+Hibernate
    now my code is :--
    ==================================================
    *.hbm.xml :--
    <property name="image" column="IMAGE" type="com.shrisure.server.usertype.BinaryBlobType" insert="true" update="true" lazy="false"/>
    ===================================================
    *.java :--
    package com.shrisure.server.usertype;
    import java.io.OutputStream;
    import java.io.Serializable;
    import java.sql.Blob;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Types;
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    import oracle.sql.BLOB;
    import org.hibernate.HibernateException;
    import org.hibernate.usertype.UserType;
    import org.jboss.resource.adapter.jdbc.WrappedConnection;
    import com.google.gwt.user.client.rpc.IsSerializable;
    public class BinaryBlobType implements UserType, java.io.Serializable, IsSerializable {
    private static final long serialVersionUID = 1111222233331231L;
    public int[] sqlTypes() {
    return new int[] { Types.BLOB };
    public Class returnedClass() {
    return byte[].class;
    public boolean equals(Object x, Object y) {
    return (x == y) || (x != null && y != null && java.util.Arrays.equals((byte[]) x, (byte[]) y));
    public void nullSafeSet(PreparedStatement st, Object value, int index) throws HibernateException, SQLException {
    BLOB tempBlob = null;
    WrappedConnection wc = null;
    try {
    if (value != null) {
    Connection oracleConnection = st.getConnection();
    if (oracleConnection instanceof oracle.jdbc.driver.OracleConnection) {
    tempBlob = BLOB.createTemporary(oracleConnection, true, BLOB.DURATION_SESSION);
    if (oracleConnection instanceof org.jboss.resource.adapter.jdbc.WrappedConnection) {
    InitialContext ctx = new InitialContext();
    DataSource dataSource = (DataSource) ctx.lookup("java:/DefaultDS");
    Connection dsConn = dataSource.getConnection();
    wc = (WrappedConnection) dsConn;
    // with getUnderlying connection method , cast it to Oracle
    // Connection
    oracleConnection = wc.getUnderlyingConnection();
    tempBlob = BLOB.createTemporary(oracleConnection, true, BLOB.DURATION_SESSION);
    tempBlob.open(BLOB.MODE_READWRITE);
    OutputStream tempBlobWriter = tempBlob.getBinaryOutputStream();// setBinaryStream(1);
    tempBlobWriter.write((byte[]) value);
    tempBlobWriter.flush();
    tempBlobWriter.close();
    tempBlob.close();
    st.setBlob(index, tempBlob);
    } else {
    st.setBlob(index, BLOB.empty_lob());
    } catch (Exception exp) {
    if (tempBlob != null) {
    tempBlob.freeTemporary();
    exp.printStackTrace();
    st.setBlob(index, BLOB.empty_lob());
    // throw new RuntimeException();
    } finally {
    if (wc != null) {
    wc.close();
    public Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws HibernateException, SQLException {
    final Blob blob = rs.getBlob(names[0]);
    return blob != null ? blob.getBytes(1, (int) blob.length()) : null;
    public Object deepCopy(Object value) {
    if (value == null)
    return null;
    byte[] bytes = (byte[]) value;
    byte[] result = new byte[bytes.length];
    System.arraycopy(bytes, 0, result, 0, bytes.length);
    return result;
    public boolean isMutable() {
    return true;
    public Object assemble(Serializable arg0, Object arg1) throws HibernateException {
    return assemble(arg0, arg1);
    public Serializable disassemble(Object arg0) throws HibernateException {
    return disassemble(arg0);
    public int hashCode(Object arg0) throws HibernateException {
    return hashCode();
    public Object replace(Object arg0, Object arg1, Object arg2) throws HibernateException {
    return replace(arg0, arg1, arg2);
    =================================================================
    can anyone give me the source code for this BinaryBlobType.java according to mysql blob handling ..

    Moderator action: crosspost deleted.

  • Problem with imp

    HI All,
    We are facing some problem with imp. What we are trying to do is to import one table from full exp backup.
    Below is my exp script:
    compress </nhi3/export/epipe > /nhi3/export/exp-nov.dmp.Z &
    exp holland/kangra file=/nhi3/export/epipe full=y compress=n buffer=250000 log=/nhi3/export/exp.log
    Now iam trying to import one table from full exp backup using the below script.
    P6DB NODE>uncompress < /rmanbkp/backup/export0402/export/exp-nov.dmp.Z > /nhi3/export/epipe &
    [1] 3190958
    P6DB NODE>imp holland/kangra file=/nhi3/export/epipe fromuser=baan touser=baan tables='TTIPSL042100' ignore=n log=/rmanbkp/backup/export0402/export/ttipsl042100.log indexes=n full=n
    After firing this command there is no response from the terminal and nothing is showing in the imp logfile.
    Only response i can see is:
    P6DB NODE>imp holland/kangra file=/nhi3/export/epipe fromuser=baan touser=baan tables='TTIPSL042100' ignore=n log=/rmanbkp/backup/export0402/export/ttipsl042100.log indexes=n full=n
    Import: Release 10.2.0.4.0 - Production on Mon Apr 2 12:42:28 2012
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Export file created by EXPORT:V10.02.01 via conventional path
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    Need Help
    Thanks,
    Sandy

    Hi,
    Just to start eliminating potential error sources, what if you do the uncompress to file, and then try to import using that file?
    Also, since you do a full export, it might take a while for the uncompress to reach the schema and table you're trying to import.
    HtH
    Johan

  • Export / Import with FULL=Y

    Hello DBA's,
    after consulting several thread on exp/imp with the option full=y the doubt that I have left is when using imp with full=y ignore=y in a new data base, the data base obtained will be equal to the data base from which export with full=y became. Thanks for its answers.

    export full=y
    will export all the user ,roles,tablespace creation scripts,tables all the datadictionary views
    for example if u connect the databse with single user try to get the privileges from the existing Db and then
    create the database in the new server
    create users and grant privileges before import;
    then import with fromuser= ,touser
    if you issues FULL=y
    it will start creating all the system ,index and all the other tablespaces provided it should have the same directories as it is in current DB
    to avoid create the dataabse ,tablespace users then import with fromuser,touser option
    thanks

  • Importation ;I just started with lightroom 5,6 (french)-I 'd like to import with creation of a second copy apart of the catalog but impossible to activate this option.How should I do to activate this option?

    Importation ;I just started with lightroom 5,6 (french)-I 'd like to import with creation of a second copy apart of the catalog but impossible to activate this option.How should I do to activate this option?

    Importation ;I just started with lightroom 5,6 (french)-I 'd like to import with creation of a second copy apart of the catalog but impossible to activate this option.How should I do to activate this option?

  • Importing with Panasonic PV-GS32

    Over the last few months I've imported hours of video footage from my Panasonic PV-GS32. One day last week I was only able to import for about 10 minutes before it stopped. I tried a few extra times with no luck, then waited a day and tried again and it worked. A week later I only get about 3 seconds of importing before it stops and won't go any further. I've tried the following with no luck: a new account within my iMac; a different fire wire port; a new fire wire cable; shutting down and unplugging my iMac.
    Any other ideas or has anyone had difficulty importing with a Panasonic PV-GS32 lately?
    iMac4,   Mac OS X (10.4.7)   2 GHz Intel Core Duo
    iMac4,   Mac OS X (10.4.7)   2 GHz Intel Core Duo
    Message was edited by: Scott J O

    Welcome to iMovie Discussions.
    I wonder how full your Mac's hard disc is. Digital Video needs about 13GB of space per hour of recording time. So that's about 6.5GB per half hour of tape, or about 2GB of space per 10 minutes.
    If there's not much empty space left on your disc, there may not be room to store much video.
    If your disc is full from "..importing hours of video.." you may need to get an external FireWire disc for storing more material. If you do buy an external disc, you'll need to plug it in, go to Applications>Utilities>Disk Utility, then select your new disc and click the 'Erase' tab in Disk Utility, and format the new external disc as "Mac OS Extended" ..otherwise it won't work correctly with iMovie.

  • Using iMovie 7.1.4 on an iMac w/ Snow Leopard; HD video imported with a Firewire cable transfers fine, but audio arrives with major static; problem persists w/ different cameras

    Using iMovie 7.1.4 on an iMac w/ Snow Leopard; HD video imported with a Firewire cable transfers fine, but audio arrives with major static; problem persists w/ different cameras & Firewire cables; source DV tape has no audfio static.

    I forgot to write down my computer specs:
    iMac 27 Mid 2011
    2.7 GHz Intel Core i5
    4 GB 1333 MHz DDR3
    AMD Radeon HD 6770M 512 MB
    OS X 10.9.2

  • BLOB Column with PDF docs

    I already read a different ways to extract the PDF docs from oracle table and open it through forms. All of them with java classes, webutil integration and dbms_lob.
    But, if I need an other way to show it (select the column and open it) through the forms module, I can do it. Like Developer 6i, we can defined a OLE container field in forms and query the table and show the BLOB data.
    This are my scenerio:
    Oracle DB: EE 9.2.0.6.0
    Developer: 6i Rel 2 & 10g v. 10.1.2.0.2 (for test and eventually for migrate to production environment, with iAS R 9i)
    I already read if I need to use java, dbms_lob or webutil, I need to use it through iAS and in some cases I need to create a DAD.
    But, If have 10g in developer enviroment just for test and I don't want to use a iAS, do I have any other way to select a BLOB column (with a PDF files store in there) from a oracle table and be able to open it with acorbat reader.
    thank you a lot guys and sorry about all this message (related with the same) but I am no a guru oracle developer.
    AM

    Rechecked and was not logged on to user, checked the error view and got
    TEXT_INDEX_FRI 03/30/2001 1: AAAIt+AAFAAAAmDAAJ DRG-11207: user filter command exited with status 137
    searched some of the articles here on this error, checked that listener was running correctly for extproc, added to the listener the ENVS=LD_LIBRARY_PATH line
    added roles, resource, connect, ctxapp
    added to PATH and LD_LIBRARY_PATHs,
    but still get the above error
    does work though for simple text insert case, so seems to be related to documents in a blob field. Any other suggestions or queries that I can do to troubleshoot this? Could it be the way it is loaded?
    ================
    my sql loader control file
    LOAD DATA
    INFILE '/chem20/stuff/Load_docs2.dat'
    INTO TABLE imed.cmgendoc
    APPEND
    FIELDS TERMINATED BY ','
    (Doc_id char,
    author char,
    doc_name FILLER CHAR(255),
    act_doc LOBFILE(doc_name) TERMINATED BY EOF,
    mimetype char(128))
    ==================
    my dat file
    2,ted the frog,/chem20/stuff/snmp.pdf,application/pdf
    3,ted the dog,/chem20/stuff/config.pdf,application/pdf
    4,ted the cat,/chem20/stuff/oemcn.pdf,application/pdf
    5,ted the rat,/chem20/stuff/oemer.pdf,application/pdf
    6,ted the cow,/chem20/stuff/oemug.pdf,application/pdf
    7,ted the bug,/chem20/stuff/servlets.pdf,application/pdf
    8,ted the bird,/chem20/stuff/pg.pdf,application/pdf
    9,ted the sheep,/chem20/stuff/install.pdf,application/pdf
    null

  • 6.0.2 freezes when importing with canon 5d

    Hi, I'm using The latest version of Iphoto 6.0.2 with an intel Mini. The computer locks up every time i try to import photos from my 5d. It always freezes about half way through the import. I've used different memory cards, a card reader, and even hooked it up to the USB port, it doesn't matter, it still freezes. The latest thing i tried was to delete the album.xml file and restart. That didn't do it either. The weird thing is that I have zero problems importing with my 20D. I can get around the problem by copying the photos to my Dell laptop, put them on a USB memory stick and then import them into iphoto with success. Any ideas? I have a feeling it has something to do with the canon software that i installed and then removed because i didn't like it. Could it be a conflict between i photo and the canon software? How do I make sure I remove all the canon crap?

    Foxfile:
    I don't think it's due top the software unless it's operating on the files as you import. Are you shooting RAW and the accompanying jpg? I've had zero experience with RAW but try the following:
    1 - create a new, fresh library and then see if you can import into it. If not then it's an account issue. If the new library works then it's
    2 - log into another account and see if the photos will work there. If so then it's your primary account that is having trouble.
    Also check some of the options in the camera about file types, compatibility, etc. There may be something in there that can be changed so make them work. I'm guessing since I don't have a camera that shoots raw.

  • Importing with a dvcam deck

    So I gave up on trying to import 45 min blocks of video into im08. I am now taking a dvd player, running it through a sony dvcam dsr-11. This allows me to import the 10 seconds I need from many random places. But im08 keeps force quiting. Not that it stops and I have to force quit, the computer quits. What do I need to do to keep it from quiting?

    Ok, so I imported with im06 and then imported im06 into im08 and it worked...or atleast it has so far. only problem is it renamed all of my clips!

  • Behavior of query to blob service with prefix/delimiter parameters with 2009-09-19 REST API

    I'm having trouble properly accessing the blob storage service using raw HTTP requests.  So far, listing raw container contents has worked as expected. Using just a delimiter to simulate directories in the root of the container also works fine. However,
    adding a prefix to the query to try to get the contents of "directories" one level down the hierarchy hasn't been successful - all that's returned is the name of the directory I'm trying to list.
    I have a container "con" with multiple blobs starting with the string "folder/". The result I'm expecting is a list of Blobs with names in the format "folder/filename" and BlobPrefixes with names like "folder/subfolder/".
    Here are the request and response:
    GET http://<account>.blob.core.windows.net/con?comp=list&restype=container&prefix=folder/&delimiter=/ HTTP/1.1
    Content-Length: 0
    x-ms-version: 2009-09-19
    Date: Fri, 25 Feb 2011 17:58:57 GMT
    Authorization: SharedKeyLite <account>:xE5XrRFmqd4z3go0mxyGpA045q8SEjUviAgqpElGA38=
    Host: <account>.blob.core.windows.net
    Connection: Keep-Alive
    Pragma: no-cache
    Cache-Control: no-cache
    User-Agent: blah
    HTTP/1.1 200 OK
    Content-Type: application/xml
    Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
    x-ms-request-id: 44c02b08-0f20-4983-ac0f-cb98ce4d2761
    x-ms-version: 2009-09-19
    Date: Fri, 25 Feb 2011 17:59:05 GMT
    Content-Length: 261
    <?xml version="1.0" encoding="utf-8"?>
    <EnumerationResults ContainerName="http://<account>.blob.core.windows.net/con">
        <Prefix>folder/</Prefix>
        <Delimiter>/</Delimiter>
        <Blobs>
            <BlobPrefix>
                <Name>folder/</Name>
            </BlobPrefix>
        </Blobs>
        <NextMarker />
    </EnumerationResults>
    I only have this problem if I use API version 2009-09-19 - the same query works correctly with the old version:
    GET http://<account>.blob.core.windows.net/con?comp=list&restype=container&prefix=folder/&delimiter=/ HTTP/1.1
    Content-Length: 0
    Date: Fri, 25 Feb 2011 18:22:30 GMT
    Authorization: SharedKey <account>:ybzwdn6bgwhEU4ZSslAYDXr/fnYKRF4M0FGAa2cN1WI=
    Host: <account>.blob.core.windows.net
    Connection: Keep-Alive
    Pragma: no-cache
    Cache-Control: no-cache
    User-Agent: blah
    HTTP/1.1 200 OK
    Content-Type: application/xml
    Server: Blob Service Version 1.0 Microsoft-HTTPAPI/2.0
    x-ms-request-id: 04ac2857-31cb-48d3-8647-3f97ba945749
    Date: Fri, 25 Feb 2011 18:22:38 GMT
    Content-Length: 3750
    <?xml version="1.0" encoding="utf-8"?>
    <EnumerationResults ContainerName="http://<account>.blob.core.windows.net/con">
        <Prefix>folder/</Prefix>
        <Delimiter>/</Delimiter>
        <Blobs>
            <Blob>
                <Name>folder/Copy (10) of notempty</Name>
                <Url>http://<account>.blob.core.windows.net/con/folder/Copy (10) of notempty</Url>
                <LastModified>Thu, 24 Feb 2011 22:58:27 GMT</LastModified>
                <Etag>0x8CDA28D7B734B7C</Etag>
                <Size>11</Size>
                <ContentType>application/octet-stream</ContentType>
                <ContentEncoding />
                <ContentLanguage />
            </Blob>
            <Blob>
                <Name>folder/Copy (2) of notempty</Name>
                <Url>http://<account>.blob.core.windows.net/con/folder/Copy (2) of notempty</Url>
                <LastModified>Thu, 24 Feb 2011 22:58:27 GMT</LastModified>
                <Etag>0x8CDA28D7BA24988</Etag>
                <Size>11</Size>
                <ContentType>application/octet-stream</ContentType>
                <ContentEncoding />
                <ContentLanguage />
            </Blob>
        </Blobs>
        <BlobPrefix>
            <Name>folder/subfolder/</Name>
        </BlobPrefix>
        <NextMarker />
    </EnumerationResults>
    I've tried using other clients (Cloud Storage Studio and the CloudBerry Explorer) and they have the same issue - "folders" show up in the container but are themselves empty when they shouldn't be. So, what am I missing here?

    My apologies upfront if I misread your explanation above, but you should get the entire listing when using prefix "folder/". For example, I get the below response when using the following request: GET /myfolder?restype=container&comp=list&prefix="0/"&delimiter="/"&timeout=90
    HTTP/1.1 with version = 2009-09-19. But looks like you did not get the blobs listed? Is that correct? If yes, can you re-run and provide me with account name and request id (please send it to jharidas at microsoft)? Request and response traces will be
    helpful.
    Thanks,
    jai
    <?xml version="1.0" encoding="utf-8"?>
    <EnumerationResults ContainerName="http://myaccount.blob.core.windows.net/myfolder">
    <Prefix>0/</Prefix>
    <Delimiter>/</Delimiter>
    <Blobs>
    <Blob>
    <Name>0/test0.jpg</Name>
    <Url>http://myaccount.blob.core.windows.net/myfolder/0/test0.jpg</Url>
    <Properties>
    </Properties>
    </Blob>
    <Blob>
    <Name>0/test1.jpg</Name>
    <Url>http://myaccount.blob.core.windows.net/myfolder/0/test1.jpg</Url>
    <Properties>
    </Properties>
    </Blob>
    <BlobPrefix>
    <Name>0/test1/</Name>
    </BlobPrefix>
    <Blob>
    <Name>0/test2.jpg</Name>
    <Url>http://myaccount.blob.core.windows.net/myfolder/0/test2.jpg</Url>
    <Properties>
    </Properties>
    </Blob>
    </Blobs>
    <NextMarker />
    </EnumerationResults>

  • Importing with DATA MANAGER

    While directly importing with the help of data manager it gives me an error.
    It doesnt import data from each and every field, it gives me two kins of error
    1) some fields dont exist
    2) another type of error is unable to find a lookup value.
    And do suggest, even if Import manager exists when can i use this functionality.
    regards
    +
      | Eleana West

    First of all this Functionality can be used whenever u are sure that the data which has to be imported is free of any redundancies then only it is feasible to use this functionality.
    Otherwise u need to use import mgr so that any kind of duplicates records can be eliminated.
    And the errors which u are getting are
    1)  some fields dont exist
         It gives bcoz from the source side the columns names do not match with the names on the destination side i.e.. the field names in the repository structure.
    2)  another type of error is unable to find a lookup value.
         Even if the field names match and if the field on the destination side is a kind of lookup field i.e.. in turn its looking up in some other table then this kind of error arises.
    u can bypass this error while importing thru data mgr by clicking on option button either skip value or skip record.
    Hope dis clears ur doubt.
    If any other queries feel free to ask
    Regards Tejas..............

  • Does Import with impdp.exe just ADD or REPLACE a table content?

    Assume I have I dumpfile which I want to import with the impdp.exe tool.
    Part of the dumpfile is the content of e.g. TABLE testtable123
    Furthermore lets say that after the previous export of the dumpfile
    some more data is added to the table while other data rows were meanwhile deleted.
    So if I execute now the impdp.exe operation is the dumpfile data just ADDED
    to the existing data in the current table testtable123 or does it completely REPLACE
    all data rows in table testtable123?
    Peter

    So if I execute now the impdp.exe operation is the dumpfile data just ADDED
    to the existing data in the current table testtable123 or does it completely REPLACE
    all data rows in table testtable123[http://download.oracle.com/docs/cd/B14117_01/server.101/b10825/dp_import.htm#i1006538]
    Note that if CONTENT=DATA_ONLY is specified, the default is APPEND, not SKIP
    TABLE_EXISTS_ACTION={SKIP | APPEND | TRUNCATE | REPLACE}
    APPEND loads rows from the source and leaves existing rows unchanged
    REPLACE drops the existing table and then creates and loads it from the source. This is not a valid option if the CONTENT parameter is set to DATA_ONLY.
    HTH
    -Anantha

  • Example program for returninng and importing with value addition

    HI ,
    I want few example programs on how to use the abap oops with returning addition and importing with value addition as Im getting syntax error for the Program when Im declaring them with these additions
    Thnaks .

    Hello,
    This statement declares a general instance method meth. Use additions ABSTRACT and FINAL to make the method abstract or final.
    The additions IMPORTING, EXPORTING and CHANGING define the parameter interface of the method. After every addition, the corresponding formal parameters are defined by a specification of the list parameters.
    The other additions determine which exceptions the method can propagate or trigger and determine whether the method is abstract or final.
    Note
    Within a method, you can use the logical expression IS SUPPLIED to check whether an actual parameter was assigned to an optional formal parameter at the call.
    Addition 1
    ... IMPORTING parameters PREFERRED PARAMETER p
    Effect
    IMPORTING defines input parameters. When calling the method, you need not specify an appropriate actual parameter for every non-optional input parameter. During the call, the content of the actual parameter is passed to the input parameter. The content of the input parameter - for which the reference transfer is defined - cannot be changed in the method.
    Use PREFERRED PARAMETER to identify an input parameter p1 p2 ... of list parameters after IMPORTING as a preferred parameter. This specification makes sense only if all input parameters are optional. When calling the method with the syntax
    CALL METHOD meth( a ).
    the actual parameter a is assigned to the preferred parameter if you have appropriate use of a functional method at an operand position.
    Addition 2
    ... EXPORTING parameters
    Effect
    EXPORTING defines output parameters. When calling the method, you can specify an appropriate actual parameter for every output parameter. The content of the output parameter - which is defined for value transfer - is passed to the actual parameter at the call after the method has been completed successfully.
    Note
    An output parameter that is defined for the reference transfer is not initialized when the method is called. Therefore, no read access to it should take place before the first write access.
    Addition 3
    ... CHANGING parameters
    Effect
    CHANGING defines input/output parameters. When calling the method, you must specify an appropriate actual parameter for every non-optional input/output parameter. The content of the actual parameter is passed to the input/output parameter at the call, and after the method has been completed, the content of the input/output parameter is passed to the actual parameter.
    Example
    The method read_spfli_into_table of this example has an input and an output parameter, which are typed fully by reference to the ABAP Dictionary.
    CLASS flights DEFINITION.
      PUBLIC SECTION.
        METHODS read_spfli_into_table
           IMPORTING VALUE(id)  TYPE spfli-carrid
           EXPORTING flight_tab TYPE spfli_tab.
    ENDCLASS.
    Addition 4
    ... RAISING exc1 exc2 ...
    Effect
    Use addition RAISING to declare the class-based exceptions exc1 exc2 ... that can be propagated from the method to the caller.
    For exc1 exc2 ..., you can specify all exception classes that are visible at this position and are subclasses of CX_STATIC_CHECK or CX_DYNAMIC_CHECK. You must specify the exception classes in ascending order corresponding to their inheritance hierarchy.
    Exceptions of the categories CX_STATIC_CHECK and CX_DYNAMIC_CHECK must be declared explicitly, otherwise a propagation results in a violation of the interface. An interface violation results in a treatable exception CX_SY_NO_HANDLER. Exceptions of category CX_NO_CHECK are always implicitly declared.
    Notes
    The declaration of exceptions of category CX_STATIC_CHECK is checked statically at the syntax check. For exceptions of category CX_DYNAMIC_CHECK, the check is executed at runtime.
    In a method in which class-based exceptions are declared with the addition RAISING, you cannot use the statement CATCH SYSTEM-EXCEPTIONS. Instead, handle the relevant treatable exceptions in a TRY control structure.
    Example
    In class math, you can propagate all exceptions represented by class CX_SY_ARITHMETIC_ERROR and its subclasses from within method divide_1_by. If, for example, the input parameter operand is filled at the call with the value 0, then the exception CX_SY_ZERODIVIDE is triggered, propagated, and can, as shown in the example, be handled by the caller in a TRY control structure.
    CLASS math DEFINITION.
      PUBLIC SECTION.
        METHODS divide_1_by
           IMPORTING operand TYPE I
           EXPORTING result  TYPE f
           RAISING   cx_sy_arithmetic_error.
    ENDCLASS.
    CLASS math IMPLEMENTATION.
      METHOD divide_1_by.
        result = 1 / operand.
      ENDMETHOD.
    ENDCLASS.
    START-OF-SELECTION.
    DATA oref TYPE REF TO math.
    DATA exc  TYPE REF TO cx_sy_arithmetic_error.
    DATA res  TYPE f.
    DATA text TYPE string.
    CREATE OBJECT oref.
    TRY.
        oref->divide_1_by( EXPORTING operand = 4
                           IMPORTING result = res ).
        text = res.
      CATCH cx_sy_arithmetic_error INTO exc.
        text = exc->get_text( ).
    ENDTRY.
    MESSAGE text TYPE 'I'.
    Addition 5
    ... EXCEPTIONS exc1 exc2 ...
    Effect
    Use addition EXCEPTIONS to define a list of non-class-based exceptions exc1 exc2..., which can be triggered with the statements RAISE or MESSAGE RAISING in the method. You specify identifiers exc1 exc2 ... for the exceptions to be defined at will and directly. Exceptions defined in this way are bound to the method - similar to formal parameters - and cannot be propagated.
    If such an exception is triggered in a method and no return value has been assigned to it in the addition EXCEPTIONS of the CALL METHOD statement in the method call, then a runtime error occurs.
    Note
    The additions RAISING and EXCEPTIONS cannot be used simultaneously. For new developments starting at release 6.10, we recommend to use class-based exceptions, which are independent of the respective method.
    Example
    In the class math, for method divide_1_by an exception arith_error is defined, which is triggered in the method with the RAISE statement if an arithmetic error occurs. If, for example, the input parameter operand is filled with value 0 at the call, the exception arith_error is triggered in the method-internal handling of exception CX_SY_ZERODIVIDE and handled after the call of the method by evaluating sy-subrc.
    CLASS math DEFINITION.
      PUBLIC SECTION.
        METHODS divide_1_by
           IMPORTING  operand TYPE I
           EXPORTING  result  TYPE f
           EXCEPTIONS arith_error.
    ENDCLASS.
    CLASS math IMPLEMENTATION.
      METHOD divide_1_by.
        TRY.
            result = 1 / operand.
          CATCH cx_sy_arithmetic_error.
            RAISE arith_error.
        ENDTRY.
      ENDMETHOD.
    ENDCLASS.
    START-OF-SELECTION.
    DATA res  TYPE f.
    DATA oref TYPE REF TO math.
    CREATE OBJECT oref.
    oref->divide_1_by( EXPORTING  operand = 4
                       IMPORTING  result  = res
                       EXCEPTIONS arith_error = 4 ).
    IF sy-subrc = 0.
      WRITE res.
    ELSE.
      WRITE 'Arithmetic error!'.
    ENDIF.
    Regards.

  • Frequent/periodic import with Import Server

    Hi everyone,
    I just read that the MDM "Import Server" allows for doing frequent/periodic imports. It was also stated that this frequent/period import only works with importing files. And furthermore, that the reason for this restriction lies in MDM's link to SAP XI.
    So what if I frequently/periodically want to import from an MS SQL server? Could I do this by working with SAP XI? (I haven't worked with XI yet)
    Best regards, Daniel

    hi,
    So what if I frequently/periodically want to import from an MS SQL server? Could I do this by working with SAP XI? (I haven't worked with XI yet)
    yes you can do the frequent/periodic import with import server.
    follow the link:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8973bcaf-0801-0010-b7a7-f6af6b1df00e
    hope this may help you,
    Regards,
    Srinivas

Maybe you are looking for

  • 2 Separate iPod Users, but 1 iTunes account - how to separate downloads?

    New users here. One computer; one iTunes. My daughter has her iPod; I have my iPod. I don't want her music on my iPod, and vice versa. How do we download or sync and get only the music we have each chosen in iTunes? Thanks for any help you can give m

  • 10.2 to 10.3 upgrade gone bad, really bad!

    Ok, here is the situation. My brother was trying to be kind and upgrade my Aunt's G4 17" flat panel iMac (iLamp) from 10.2.X to 10.3.3 using a machine specific install/restore CD from a 14" laptop. He wasn't aware that you cannot do this. The machine

  • Screen resolution problem in Forms 9i.

    I have developed an ERP using Forms 9i. I have kept my development workstation on 1024x768 screen resolution. This works fine on all the clients, which have the same resolution. But, if I change resolution on my development machine to 640x480 or 600x

  • Error in package while deploying in jDev 11g

    Hi, I am following tutorial at http://static.springsource.org/docs/Spring-MVC-step-by-step/part1.html . I am using jDev 11g as IDE and its integrated weblogic as server. I did made index.jsp and web.xml as said in the tutorial. In the step *"1.8. Cre

  • Customize BindingNavigator

    How can I customize Binding Navigator? I add a table from Datasources tab with datagridview and textboxes. I want to use some custom insert, delete functions such as inserting images. How can I customize the BindingNavigator button functions?