Export syntax

Dear experts,
   Hope you had a good weekend.
I'm trying to communicate two programs, in the sense, I'm calling an executable program from an other executable program using 'submit'.
Now my requirement is that, based on the return parameter of the called program the calling program has to behave differently.
So I thought of exporting a variable from the called program and importing the same variable in the calling program and based on that value, I can manipulate the logic.
My only requirement now is can any one provide me with the synatx on how to export a variable(data x type c) from the called program and import the same.
In short syntax for export and import to memory.
Thanks for all.
-Amit

Hi Amith,
<li>In the Called program EXPORT statement has to be used to send the variable value to ABAP memory.
EXPORT <field> TO MEMORY ID 'TOABAP'  "TOABAP is uniq memory id.
<li>In the Calling program IMPORT statement has to be used to to get the value from ABAP memory.
IMPORT <field> FROM MEMORY ID 'TOABAP'  "TOABAP is uniq memory id.
Thanks
Venkat.O

Similar Messages

  • Export t_temp to memory id 'Y2'.

    i used these export and import parameters in my program !!
    this is the export syntax..
    export t_temp to memory id 'Y2'.
    refresh t_temp.
    import t_temp from memory id 'Y2'.
    delete from memory id 'Y2'.
    when I'm not passing any values in the export  the import parameter is still picking the previous value..
    the export parameter is empty but the import parameter is still having one record
    How to delete the memory...

    to export, use the following
    DATA: wa_indx TYPE indx.
    EXPORT tab = itab TO DATABASE indx(xy) FROM wa_indx CLIENT
    SY-MANDT
    ID 'DETAILLIST'.
    to import use this
    imports from database the list sent by the calling program
    IMPORT tab = itab FROM DATABASE indx(xy) TO wa_indx CLIENT sy-mandt
    ID 'DETAILLIST'.
    deletes the data to save wastage of memory
    DELETE FROM DATABASE indx(xy)
    CLIENT sy-mandt
    ID 'DETAILLIST'.

  • Exporting  from Hp-unix and Importing on Solaris

    Hi all,
    Can anyone give me the procedure and constraints that are taken for exporting oracle 8i on HP-unix and importing on oracle 9i Solaris machine, Any docs or metalink notes also helps me .
    And i need steps like how to disable the constraints and triggers and how to take take export. what precautions are taken while exporting and importing.
    what are the parameters that should taken for faster export and import ...
    export is for full database ..
    If anyone can give me a quick response , i would appreciate that. because i have only 2 days in hand...

    Hi,
    I dont think that cross platform with work in exp/imp u can give a try anyway.
    Take export in direct path tat would be faster if you are using 10G then use Datapump (expdp/impdp)
    Before u could use exp or expdp / imp or impdp login as oracle use and export the variable ORACLE_SID to the target database
    do this $ exp help=y (for export) or imp help=y (for import)
    E.g. export syntax
    EXPORT
    exp parfile=exp.par
    parfile (exp.par)
    userid="/ as sysdba"
    file=/path/filename.dmp
    log=/path/filename.log
    direct=y
    constraints=n
    triggers=n
    full=y (for full export)
    owner=user1,user2(for schema level export)
    IMPORT
    imp parfile=imp.par
    parfile (imp.par)
    userid="/ as sysdba"
    file=/path/filename.dmp
    log=/path/impfilename.log
    full=y (for full import)
    fromuser=username (for schema level import)
    touser=username
    Try in google search for syntax of otn site for good documents
    Cheers,
    Kamalesh JK

  • Export with timestamp check?

    Hi all
    i want to export data ( only tables ) by export syntax,
    my requirement is to restrict data accordingly to date range with respect to time stamp date.
    anyone can help if it is possible.
    Waiting............

    Thanks for reply!
    i tried to use like this;
    exp username/password rows=y tables=emp query=\"where rownum<=10\" file=c:\abc.dmp
    but it failed, i m using windows xp.
    plz guide me and tell me how to user timestamp column in it

  • Export/Import problem please help

    Hi All,
    I have a strange problem in Export/Import.. I don't know ,where to fix..
    I'm trying to Export/Import dmp file in new Schema.
    when i'm exporting the tables, it is writing with storage options(Which causing me the problem, I don't have a enough space in the tablespace and i can't increase any more)
    I don't want the table data, i want only table structure without storage option.
    So,i'm looking export syntax without storage options to the table(like inital extents,increment,max extents like that)
    I'm writing like this
    exp system/manager@connectstring file=exp.dmp log=exp.log owner=sys rows=N statistics=none indexes=n compress=N
    Any idea ?
    Thanks
    James.

    Why are you exporting at all? You say you want to place this info into another schema (on the same instance? or an instance on the same network?) Just run this script:
    alter tablespace mytablespace
    default storage (initial 256K next 256K);
    set heading off pages 0 echo off termout off
    spool a.sql
    select 'create table newschema.'||table_name||' tablespace mytablespace as select * from '||table_name||' where 1=2;'
    from all_tables
    where owner='OLDSCHEMA';
    spool off
    @a.sql
    If the new schema is on a different instance or server, you will have to create a db link first.

  • Export fails when table is empty

    Hey Everyone,
    Dumb question. What is the export syntax I need to export just the table structure of an empty table. The example below works when the table has data, but when it's empty I receive an "EXP-00011: <table> does not exist" error.
    Thanks in advance for any help,
    Roger
    C:\>exp nwis/xxx@nwishq file=C:\Loader\testdmp tables=(XSEC_SRVY_STN_54,DBN_DEF) rows=N log=C:\Loader\nwis.log
    Export: Release 11.2.0.1.0 - Production on Tue Feb 1 17:43:21 2011
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    Note: table data (rows) will not be exported
    About to export specified tables via Conventional Path ...
    EXP-00011: NWIS.XSEC_SRVY_STN_54 does not exist
    . . exporting table DBN_DEF
    Export terminated successfully with warnings.
    C:\>sqlplus nwis/xxx@nwishq
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 1 17:44:02 2011
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    GLogin Script Executing...
    Session altered.
    GLogin Script Complete.
    NWISHQ.NWIS>col object_name format a30
    NWISHQ.NWIS>select object_name, object_type, status
    2 from user_objects
    3 where object_type = 'TABLE' and object_name in ('XSEC_SRVY_STN_54','DBN_DEF');
    OBJECT_NAME OBJECT_TYPE STATUS
    DBN_DEF TABLE VALID
    XSEC_SRVY_STN_54 TABLE VALID
    NWISHQ.NWIS>desc XSEC_SRVY_STN_54
    Name Null Type
    SITE_VISIT_ID NOT NULL NUMBER
    XSEC_SRVY_START_DT NOT NULL DATE
    XSEC_SRVY_STN_VA NOT NULL FLOAT(53)
    XSEC_SRVY_STN_SG NOT NULL CHAR(1)
    XSEC_SRVY_STN_RD NOT NULL CHAR(1)
    XSEC_SRVY_STN_DT NOT NULL DATE
    XSEC_SRVY_STN_TD NOT NULL CHAR(6)
    TM_DATUM_RLBLTY_CD NOT NULL CHAR(1)
    XSEC_SRVY_DEPTH_BTTM_VA FLOAT(53)
    XSEC_SRVY_DEPTH_BTTM_SG NOT NULL CHAR(1)
    XSEC_SRVY_DEPTH_BTTM_RD NOT NULL CHAR(1)
    XSEC_SRVY_DEPTH_BTTM_UNC_VA FLOAT(53)
    XSEC_SRVY_DEPTH_BTTM_UNC_CD NOT NULL CHAR(4)
    NWISHQ.NWIS>desc DBN_DEF
    Name Null Type
    DB_NO NOT NULL CHAR(2)
    DB_DS NOT NULL VARCHAR2(255)
    ADAPS_FG NOT NULL CHAR(1)
    GWSI_FG NOT NULL CHAR(1)
    QW_FG NOT NULL CHAR(1)
    SWUDS_FG NOT NULL CHAR(1)
    NWISHQ.NWIS>select count(*) from XSEC_SRVY_STN_54;
    COUNT(*)
    0
    NWISHQ.NWIS>select count(*) from DBN_DEF;
    COUNT(*)
    11
    NWISHQ.NWIS>insert into XSEC_SRVY_STN_54 values (1,to_date('1/1/11','mm/dd/yy'),2,'y','n',to_date('1/2/11','mm/dd/yy'),'abcde
    f','y',3,'y','n',4,'abcd');
    1 row created.
    NWISHQ.NWIS>commit;
    Commit complete.
    NWISHQ.NWIS>exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    C:\>exp nwis/xxx@nwishq file=C:\Loader\testdmp tables=(XSEC_SRVY_STN_54,DBN_DEF) rows=N log=C:\Loader\nwis.log;
    Export: Release 11.2.0.1.0 - Production on Tue Feb 1 17:48:44 2011
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    Note: table data (rows) will not be exported
    About to export specified tables via Conventional Path ...
    . . exporting table XSEC_SRVY_STN_54
    . . exporting table DBN_DEF
    Export terminated successfully without warnings.
    C:\>

    See Oracle Support Doc :
    Original Export Raises EXP-11 Table Does Not Exist or Table is Ignored [ID 960216.1]
    Also see the threads
    Some tables missing while taking dump
    Import the table with 0 rows
    I note that you have discovered one "fix" or "workaround" --- insert 1 row into the table before it is exported.
    Hemant K Chitale
    Edited by: Hemant K Chitale on Feb 2, 2011 9:54 AM

  • ERROR in datapump

    Hi,
    Oracle Version:10.2.0.1(standard edition)
    Operating System:Linux
    I am getting the following error while exporting with datapapump.
    ORA-31693: Table data object "CAPTURE_PROD"."TEST" failed to load/unload and is being skipped due to error:
    ORA-02354: error in exporting/importing data
    ORA-01115: IO error reading block from file 18 (block # 177120)
    ORA-27072: File I/O error
    Additional information: 4
    Additional information: 177120
    Additional information: 102400
    ORA-01115: IO error reading block from file 18 (block # 177120)
    ORA-27072: File I/O error
    Additional information: 4
    Additional information: 177120
    Additional information: 102400
    ORA-31693: Table data object "CAPTURE_PROD"."MAIL_NOTIFICATIONS" failed to load/unload and is being skipped due to error:
    ORA-02354: error in exporting/importing data
    ORA-26061: Concurrent direct unloads is not allowed.Here is my trace file output.
    /u01/app/oracle/admin/capture/bdump/capture_j001_18160.trc
    Oracle Database 10g Release 10.2.0.1.0 - Production
    ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1
    System name:     Linux
    Node name:     vtl3199db
    Release:     2.6.9-5.ELsmp
    Version:     #1 SMP Wed Jan 5 19:30:39 EST 2005
    Machine:     i686
    Instance name: capture
    Redo thread mounted by this instance: 1
    Oracle process number: 46
    Unix process pid: 18160, image: oracle@vtl3199db (J001)
    *** 2010-03-27 06:03:11.659
    *** ACTION NAME:(GATHER_STATS_JOB) 2010-03-27 06:03:11.599
    *** MODULE NAME:(DBMS_SCHEDULER) 2010-03-27 06:03:11.599
    *** SERVICE NAME:(SYS$USERS) 2010-03-27 06:03:11.599
    *** SESSION ID:(116.9765) 2010-03-27 06:03:11.599
    ORA-01115: IO error reading block from file 18 (block # 177135)
    ORA-01110: data file 18: '/u03/oradata/capture.dbf'
    ORA-27091: unable to queue I/O
    ORA-27072: File I/O error
    Additional information: 3
    Additional information: 177119
    Additional information: 110592
    *** 2010-03-27 06:03:11.660
    GATHER_STATS_JOB: GATHER_TABLE_STATS('"CAPTURE_PROD"','"TEST"','""', ...)
    ORA-01115: IO error reading block from file 18 (block # 177135)
    ORA-01110: data file 18: '/u03/oradata/capture.dbf'
    ORA-27091: unable to queue I/O
    ORA-27072: File I/O error
    Additional information: 3
    Additional information: 177119
    Additional information: 110592I also did dbverify also but no errors also
    DBVERIFY - Verification starting : FILE = /u03/oradata/capture.dbf
    DBVERIFY - Verification complete
    Total Pages Examined         : 177131
    Total Pages Processed (Data) : 73046
    Total Pages Failing   (Data) : 0
    Total Pages Processed (Index): 14699
    Total Pages Failing   (Index): 0
    Total Pages Processed (Other): 82798
    Total Pages Processed (Seg)  : 0
    Total Pages Failing   (Seg)  : 0
    Total Pages Empty            : 6588
    Total Pages Marked Corrupt   : 0
    Total Pages Influx           : 0
    Highest block SCN            : 64085147 (0.64085147)Please help me
    But in normal export i was able to take the backup of those tables also.
    Thanks & Regards,
    Poorna Prasad

    Hi,
    No,I didn't mention parallel option in my export script here is my export syntax.
    expdp capture_prod/******* directory=dbdump dumpfile=capture_prod_$DT.dmp EXCLUDE=STATISTICS,grant logfile=capture_prod_$DT.log job_name=capture_prdHere i am taking the backup every day but previously i didn't get that error but for the last couple of day i am getting that error.
    Edited by: SIDDABATHUNI on Mar 29, 2010 12:05 AM

  • Photoshop CC layer title length work around for generator?

    Hi
    I am using generator to export assets at a number of different sizes. I have found that there is a pretty small character limit on the layer title field which means I cannot export all the assets I need from that layer. I have to duplicate the layer a few times and then add the other asset sizes into the new layer titles. I discovered the issue as I constructed my export syntax in notepad and tried to paste it into the layer title field and it was not accepted - was like I could not paste into it at all. It was only when I grokked that there was a character limit (why so short?) in the layer title that I realised what was happening.
    Does anyone know of a work around to this?
    Thanks in advance for any pointers!

    Hi,
    Do you have 14.1.1 or 14.2.1 installed? We increased the layer name limit to 255 characters in 14.2.1, but maybe that's still too low for your needs?
    If you have 14.1.1, and don't want to update to 14.2.1 just yet, you can use the Duplicate Layer command, as the character limit for that input field is 255. See this blog for more info (Blog | Working Around Photoshop’s Layer Name Limit | Uncorked Studios)
    regards,
    steve

  • Syntax Error with EXPORT statement in ECC 6

    Hi All,
    I have one issue with EXPORT statement syntax.
    I have declared data like below:
    DATA: BEGIN OF mem_id,
              mandt LIKE sy-mandt,
              uname LIKE sy-uname,
              modno LIKE sy-modno,
            END OF mem_id.
    export the memory id
        EXPORT E_VBKOK XANZPK TEXTTAB XBOLNR TO MEMORY ID MEM_ID.
    When I am checking the syntax error i am getting like "MEM_ID" must be a character-type field (data type C, N, D or T). by "INTERFACE". by "INTERFACE". "INTERFACE". by "INTERFACE". by "INTERFACE".
    I know this statement would be like IMPORT ITAB TO JTAB FROM MEMORY ID 'table'. So I have written like below
    EXPORT E_VBKOK XANZPK TEXTTAB XBOLNR TO MEMORY ID 'MEM_ID'. But still it is throwing an error.
    Can you please let me know how can I resolve this?
    Regards,
    Jyothi CH.

    Hi Jyothi,
    data: l_var type string.
    concatenate '6' '8' into l_var separated by space.
    export l_var to memory id 'BB'.
    Here we have to declare the type(structure) for l_var not for BB
    and in another program
    data:l_var type string.
    import l_var from memory id 'BB'.
    write : l_var.

  • Syntax for taking export with 'Query' parameter

    Hi all
    Please help me regarding syntax for taking export with query parameter

    Hi
    exp file=d:\exp.dmp log=d:\exp.log tables=scott.emp query='where empno=10'
    exp file=d:\exp.dmp log=d:\exp.log tables=scott.emp query='where ename='''SCOTT''Salman

  • Import/Export tool Command line syntax for R2

    Would anyone please advise the syntax of command line import/export tool for XIR2?
    Read this post below for importing from a biar file but not sure how to export from BO into a biar file.
    How to log BIAR export/import from command line
    We're in fact trying to migrate from R2 into R3. The import wizard provided by BO doesn't work well with favorites and inboxes migration due to the large volume of data we need to migrate, hence looking for alternatives.
    Any advice around this line would be much appreciated.
    Thanks in advance.
    GM

    Denis,
    Thanks for your reply. This at least saved my effort to explore further.
    Would you offer any advice for migrating large volume of personal folders from R2 into R3?
    We're integrating with AD, so everytime listing users for selection taking ages and often times out.
    Even if we managed to export the biar file for a group of users, exporting them into R3 fails quite often as well.
    The whole process is simply very unpredictable and unreliable.
    Thanks.
    GM
    Edited by: Xu Guoming on Apr 21, 2009 4:13 PM

  • Export command syntax for OA page in R12

    Hi,
    Can any one let me know the syntax for export command for an OA page in R12.
    I have tried with the 11i export command, but could not get the page.
    Thanks,
    Divya

    Hi,
    sorry, wrong forum (its about JDeveloper and ADF) - See: OA Framework
    Frank

  • Syntax to export 18 months of data at any given time using variables?

    I have written a calculation script for exporting data from an application using DATAEXPORT. I want to get 18 months of data in my exported text files at any point of time. So, I want to specify the range using variables for Period and Year but I am kind of stuck on how should I be writing it in my script.
    Please let me know the correct syntax using variables or if you could share some link that would help me know that would be a help.
    Can I use @XRANGE Function???
    Thanks !

    Srinivas --> Thanks for clarifying that. After I read your post I did go through the @XRANGE again and noticed that they had use cross dimensional operators so it put me in a confusion. But you cleared it by being more specific this time. Thanks a lot !
    If I follow what Robb suggested then like you mentioned when 3 years will be involved its going to be difficult I guess. Not sure at this point which way would be the best to get this work.
    I agree with CL - 18 months rolling forecast can be annoying seriously.
    Can one of you please suggest me a permanent and most efficient solution for this out of all the ideas that would not require manual work and can be automated completely?
    Thank you all for your inputs. I really appreciate it.
    Edited by: 892254 on Nov 3, 2011 6:30 AM

  • Export query syntax

    Hi,,
    i want export one table with query option.
    my whrere conditions is where v_Customer_code in ('3658','3640','7463','7134','7195','8318','8181')
    please any one help me what is the syntax to export table..
    i am using 10g databse on hp-ux box.
    Regards,
    Mugu

    If you run exp under Windows, try:
    exp <user>/<password> tables=<your table name> query='where v_Customer_code in ('3658','3640','7463','7134','7195','8318','8181')'where <user> is the Oracle account name of the table you want to export.
    Example:
    C:\>sqlplus test/test
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Sep 10 13:20:11 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> select * from t;
             X Y
           258 DUAL
           259 DUAL
           311 SYSTEM_PRIVILEGE_MAP
           313 SYSTEM_PRIVILEGE_MAP
           314 TABLE_PRIVILEGE_MAP
           316 TABLE_PRIVILEGE_MAP
           317 STMT_AUDIT_OPTION_MAP
           319 STMT_AUDIT_OPTION_MAP
           605 MAP_OBJECT
           886 RE$NV_LIST
           887 STANDARD
             X Y
           889 DBMS_STANDARD
           890 DBMS_STANDARD
           901 V$MAP_LIBRARY
           903 V$MAP_FILE
           905 V$MAP_FILE_EXTENT
           907 V$MAP_ELEMENT
           909 V$MAP_EXT_ELEMENT
           911 V$MAP_COMP_LIST
           913 V$MAP_SUBELEMENT
    20 rows selected.
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    C:\>exp test/test tables=t query='where x in (258,259)'
    Export: Release 10.2.0.1.0 - Production on Fri Sep 10 13:20:33 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8MSWIN1252 character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    . . exporting table                              T          2 rows exported
    Export terminated successfully without warnings.
    C:\>

  • Syntax for getting Exporting parameter value

    Hello All,
    This is the syntax i am using for getting the table parameter data.
    dataProvider="{foundationService.
                   lastResult.root.BAPI_FLIGHT_GETLIST.EMPLOYEENUMBER.item}">
    Can you tell me how to get the exporting parameter value in the widget.Is the syntax same for the exporting also or do i need to change anything.Can anybody please help me out.I will reward you with points
    Thanks,
    Karan

    Karan,
    this bapi EMPLOYEENUMBER is export parameter and it can return only one value no need to give item. if it is multiple values then we can use .item. you can find the changes below code.
    dataProvider="{foundationService.
    lastResult.root.BAPI_FLIGHT_GETLIST.EMPLOYEENUMBER}">
    rewards for good answers.
    Thanks,
    Raghava Vakada.

Maybe you are looking for

  • Syncronising address book and Calander between macs

    Hi I have Mini Mac (Tiger), Macbook (Leapord) and Airport express. I want to keep the address book and calander syncronised automatically. I do not have mobile me. I mainly use google mail. Does isync help of howelse do I do it? Badrakumar

  • MIGO BDC is not working in  Scheduled BG Job

    Hello, For Subcontracting Purchase Order Item, we are using the BDC Call Transaction method for the TCode MIGO in the program  'ZMIGO_TEST'. When we are testing the Program 'ZMIGO_TEST' through SE38 it is running successfuly and document is also post

  • Loop in Process Chain never ends?!

    Hello All! I'd created an ABAP program which calls the FM "RSPC_CHAIN_EXECUTE_REMOTE", to start a specific process chain. I'd created a job to run it. Then, I want the same process chain continue in loop. For this I'd created another ABAP program, wh

  • Mac does not sleep after setting Energy Saver settings

    Hi, got a slight problem after installing Leopard. The thing is that my Mac seems to ignore the settings specified in Energy Saver Preference Pane, the screen is put to sleep as it should, that's working fine, but the computer does not go to sleep wh

  • Deploy applications thru autodeploy in production mode in Weblogic 10

    In Weblogic 10, we can deploy applications though autodeploy in development mode. But now I need to deploy my applications in production mode. Iam very much convenient using autodeploy. Can I use this autodeploy in production mode..?..Any alternative