Internal table export and import in ECC 5.0 version

Hi friends,
I am trying to export and import internal table from one program to other program.
The below… export and import commands are not working when I run the program in background (using SUBMIT zxxxx via JOB name NUMBER number…..)
EXPORT ITAB TO MEMORY id 'ZMATERIAL_CREATE'.
IMPORT ItAB FROM MEMORY ID 'ZMATERIAL_CREATE'.
Normally it should work. Since It’s not working I am trying with another alternative..
i.e EXPORT (ptab) INTERNAL TABLE itab.
My sap version is ECC 5.0….
For your information, here I am forwarding sap help. Pls have a look and explain how to declare ptab internal table.
+Extract from SAP help+
In the dynamic case the parameter list is specified in an index table ptab with two columns. These columns can have any name and have to be of the type "character". In the first column of ptab, you have to specify the names of the parameters and in the second column the data objects. If the second column is initial, then the name of the parameter in the first column has to match the name of a data object. The data object is then stored under its name in the cluster. If the first column of ptab is initial, an uncatchable exception will be raised.
Outside of classes you can also use a single-column internal table for parameter_list for the dynamic form. In doing so, all data objects are implicitly stored under their name in the data cluster.
My internal table having around 45 columns.
pls help me.
Thanks in advance
raghunath

The export/import should work the way you are using it. Just make sure you are using same memory id and make sure its unique - meaning u are using it only for this itab purpose and not overwriting it with other values. Check itab is not initial before you export in program 1 - then import it in prog2 with same memory id...also check case, I am not sure if its case sensitive...
Here is how you use the second variant...
Two fields with two different identifications "P1" and "P2" with the dynamic variant of the cluster definition are written to the ABAP Memory. After execution of the statement IMPORT, the contents of the fields text1 and text2 are interchanged.
TYPES:
  BEGIN OF tab_type,
    para TYPE string,
    dobj TYPE string,
  END OF tab_type.
DATA:
  id    TYPE c LENGTH 10 VALUE 'TEXTS',
  text1 TYPE string VALUE `IKE`,
  text2 TYPE string VALUE `TINA`,
  line  TYPE tab_type,
  itab  TYPE STANDARD TABLE OF tab_type.
line-para = 'P1'.
line-dobj = 'TEXT1'.
APPEND line TO itab.
line-para = 'P2'.
line-dobj = 'TEXT2'.
APPEND line TO itab.
EXPORT (itab)     TO MEMORY ID id.
IMPORT p1 = text2
       p2 = text1 FROM MEMORY ID id.

Similar Messages

  • Reg. Particulare table export and import the same table

    Dear Sir
    I am MM consultant, I would like to export only one table and import the same after some request released,how to do this. Please help me.
    I am working in Oracle 10.2.0.2.0 release
    Thanks in advance
    Rajakumar.K

    Hello Raja,
    you want to export some table, perform some changes on the system (releasing a transport) and then reimport the old state of the table? This sounds like a very bad idea. You are inviting desaster and compromise the consistency of your system.
    Go to http://help.sap.com chose your release and enter the search term brspace to find out
    supported ways to reorganize a table.
    Regards,
    Mark

  • Partition table export and import

    i am using Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production. And have a 133 partition in a single table. I want to take dump of each partition separately and restore it in a new schema. How to go about it.

    You can specify the partition you want to export by using the tables= parameter
    expdp user/password tables=your_table:your_partitoin ...
    If you eliminate your_partition, you will export the complete table. Do you want each partition to be a non-partitioned table? So if you have 133 partitions, do you want 133 tables? If so, just export the complete table and then on import use:
    impdp user/password partition_options=departitoin ...
    The result will be 1 table for each partition. The table will be called
    tablename_partitionname
    If it is too long, it gets truncated. The departition support was added in 11.1.0.6.
    Dean

  • FAGLFLEXA table export and import.

    Hello Gurus,
    I want to export FAGLFLEXA table from quality 200 client & import into developement 110 client.
    Want to know different ways to copy it between two different sap system. If anybody knows, help me for it.
    Thanks & Warm Regards,
    Prashant

    Thanks for Reply,
    Actually i have done client copy from qas 200 to dev 110 client, in that all records in FAGLFLEXA tables are not copied, so i wan to copy that apporx. 2,000,000 records from qas to dev. I already tried with r3tans, but it is not exporting records from this table.
    Thanks & Warm Regards,
    Prashant
    Edited by: PrashantCKunjir on Jun 29, 2011 6:11 AM
    Edited by: PrashantCKunjir on Jun 29, 2011 6:12 AM

  • Export and Import  transport request between different version?

    Hi,
    I have tried to Export the transport requests from ECC5 to ECC6 via STMS .Its not throughing any error but no Master datas are transported. Anyone have idea about that?

    Hello,
    From my experience SAP didn't recomneded transporting from 46C -> ECC5.
    The structure of tables and objects are a little bit different between different
    releases.
    Dimitry

  • Database Export and Import.

    Hi,
    I want to export and import database using .dmp file from two schema, Schema names as PRODUCTION and DEVELOPMENT.
    I want to export a script of PRODUCTION schema and clean the DEVELOPMENT schema add the .dmp file in DEVELOPMENT schema.
    Please suggest me the script to do this activity. I tried many ways not able to import successfully
    Thanks
    Sudhir

    Sudhir_Meru wrote:
    Hi,
    I want to export and import database using .dmp file from two schema, Schema names as PRODUCTION and DEVELOPMENT.
    I want to export a script of PRODUCTION schema and clean the DEVELOPMENT schema add the .dmp file in DEVELOPMENT schema.
    Please suggest me the script to do this activity. I tried many ways not able to import successfully
    Thanks
    SudhirThe use of export and import for your un-named version of Oracle are well documented in the Utilities Manual, located at tahiti.oracle.com
    How to script it is dependent on your un-named operating system.
    "not able to import successfully" conveys no useful information. What have you tried? What were the results. Actual commands and actual error messages are most useful. Copy and paste are your friends.

  • Export and import the internal table

    Hi,
    Could you explain the total internal table data how we export and import please give me example.
    Thanks,
    Hari

    Hi,
    Check this thread..
    exporting internal table to memory variable

  • Exporting and importing table using R3trans program between 2 clients

    Hi,
    How to export and import a table between to clients in a same system using R3trans program?
    I need to copy a table from Client 020 in a system to client 040 of the same system using R3 trans. I need to know the procedure.
    Can any one advice
    Regards,
    Suresh

    This is how you do a export and import of table entries.
    Export:
    Open Notepad and type the following,
    export
    client = 020
    file = 'clone.export.<sid>.<client no>.data'
    select * from <client_dependent_tablename1>
    select * from <client_dependent_tablename2>
    select * from <client_dependent_tablenamen>
    Save the file as export.ctl
    Run R3trans export.ctl
    and the data of these files will be stored in a file called clone.export.<sid>.data in the directory from which you have called R3trans
    Import:
    Open Notepad,
    import
    client = 040
    file = clone.export.<sid>.<client no>.data
    buffersync = yes                                               
    Save the file as import.ctl
    Run R3trans import.ctl
    Cheers!
    Bidwan
    Message was edited by:
            Bidwan Baruah

  • Exporting and importing just table definitions

    Hi,
    I have this production database that has a huge amount of data in it. I was asked to set up a test database based on the exact same schema as the live database. When I tried to do an export (from live) and import (to test), with the parameters rows=N and compress=y, the target (test database) data file will still grow enormously, presumably because of the huge number of extents already allocated to the table in the live database. My test database of course, has a limited hard-disk space.
    Is there a way to export and import the table definitions without having the target database experiencing a huge growth in the size of the tablespace?
    Thanks,
    Chris.

    If an export with compress=n is still creating initial extents that a too large, you can still build with the import file but it will take a little work.
    run imp with indexfile=somefile.sql
    when imp is finished, edit somefile.sql by:
    1. remove all the REM statements.
    2. remove all the storage clauses (tables and indexes)
    Make sure your tablespaces have a small (say 1k) default initial extent.
    run imp again with rows=n
    All your tables and indexes will be created with the default tablespace initial extent.

  • How to export and import dependent tables from 2 different schema

    I have a setup where schema1 has table 1 and schema 2 has table2. And table 1 from schema1 depends upon table 2 from schema 2.
    I would like to export and import these tables only and not any other tables from these 2 schemas with all information like grants,constraints.
    Also will there be same method for Oracle 10g R1,R2 and Oracle 11G.
    http://download.oracle.com/docs/cd/B12037_01/server.101/b10825/dp_export.htm#i1007514
    Looking at this For table mode it says
    Also, as in schema exports, cross-schema references are not exported
    Not sure what this means.
    As I am interested in only 2 tables I think I need to use table mode. But if I try to run export with both tables names, it says table mode support only one schema at a time. Not sure then How would the constraints would get exported in that case.
    -Rohit

    worked for my 1st time I tried
    exp file=table2.dmp tables="dbadmin.temp1,scott.emp"
    Export: Release 10.2.0.1.0 - Production on Mon Mar 1 16:32:07 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Username: / as sysdba
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    Current user changed to DBADMIN
    . . exporting table                          TEMP1         10 rows exported
    EXP-00091: Exporting questionable statistics.
    Current user changed to SCOTT
    . . exporting table                            EMP         14 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    Export terminated successfully with warnings.

  • Shell Script For Export And Import Of Table Records

    Hello,
    We have production and test instances and for constant testing we need to copy data from production to test or development environment.
    At the moment what we do is manually doing export and import table records. At times this could be very tedious as we may need
    to do this exercise a couple of times in a day.
    Is it a good idea to do this exercise using shell script? If so how could I do this? If this is not a good idea what are the best alternatives?
    Any input is highly appreciated.
    Thanks

    Ah I see, your company prefers stupidity over efficiency. It would be possible to do it in a controlled environment, wouldn't it? Also the test database would be allowed to select only.
    So the non-allowance is just plain stupid.
    To the second question: do you use hard-coded passwords in shell scripts?
    Don't you think that poses a security risk?
    Don't you think that is a bigger risk than a database link, properly set up?
    In my book it is!
    Sybrand Bakker
    Senior Oracle DBA

  • Export and import of data not table and data ????

    hii brothers and sister
    plz i have a a quetion about Export and import of data in oracle forms
    i have created 02 boutons one for export his trigger like this :
    eclare
    alrt number;
    v_directory varchar2(200) := 'c:\backup'; --- that if the C Drive not the Drive that the windows had installed in it.
    path varchar2(100):='back_up'
    ||to_char(sysdate,'dd_mm_yyyy-hh24_mi_ss');
    v_exp varchar2(200) := 'exp hamada/hamada2013@orcl file = '
    ||v_directory
    ||'\'
    ||path
    ||'.dmp';
    begin
    host(v_exp);
    alrt:=show_alert('MSG');
    end;
    and the bouton import is like this
    declare
    alrt number ;
    v_ixp varchar2(200) := 'imp userid=hamada/hamada2013@orcl file =c:\backup2\back.dmp full=yes';
    begin
    host(v_ixp);
    alrt:=show_alert('MSG');
    ref_list;
    end;
    i have just one table "phone"
    this code is correct he expot not only the data but also the creation of the table ....for exemple i do export and evry thing is good until now and i find the .dmp in the folder backup .. but when i deleted all data from my app and try to import this .dmp iit show me error it tell me thet the table phone is already created ....
    so plz help wanna just export the data of phone not the creation of table and data ???? or how can i import just the data from this .dmp ??

    Pl post OS and database versions.
    You will likely need to use the IGNORE flag - http://docs.oracle.com/cd/E11882_01/server.112/e22490/original_import.htm#sthref2201
    Imp utility (by default) will try and create the table first. Since the table already exists, imp reports an error. Use the IGNORE flag in your imp command to not report such errors.
    HTH
    Srini

  • Export and Import of Access DB tables in Apex

    Hi,
    i need help.
    I wanna export an MSACCESS DB Table into an ORACLE DB 10g2.
    but every time i get an error course my ODBC driver which isnt compatible to my tns service name.
    what could i do?
    i only want to export a table..not the whole database.
    if i want to export and import a Table over a XE Version, there are no errors and i could see the table in APEX.
    ...thx for help :)

    Hi Timo,
    If you open your table in Access, and click the "select all" (the empty grey box at the left of the header row), you can copy the entire table and paste it into Apex as though you were copying from Excel - the structure of the copied data is the same. The only thing is that you will be limited to 32,000 characters.
    Obviously, though, getting hold of, and setting up, the correct ODBC drivers is the more proper solution but the above may solve your immediate problem.
    Regards
    Andy

  • Export and import of 3 Gb table

    Dear ,
    I have table with more than 3 million records, i need to export this table and import into a different database . can you please help me with the export and import options options so that i can speed up the process...
    for you information
    this table hase 3 Fk, 2 Indexs
    i would appreciate your help in this regard
    thanks

    One way to speed up the exp/imp process is to use DIRECT=Y option. Also increase the size of BUFFER parameter.
    While importing large amount of data it is better to drop relational constraints and indexes and recreate them after import.

  • Export and import of an table data

    Hi All,
    I have a situation where i need to append/import  the production table ( X )  data to test table ( X ) which has some data already in it and should not be lost  during the operation. The record count is around 6 million .
    Any expert suggestion or tips with export and import command is highly appriciable.
    Thanks in advance .

    if you are using
    IMPDP --- use table_exist_action=append
    IMP -- ignore=y
    Lets say
    impdp username/pwd directory=<directory_name> dumpfile=<dumpfile_name> tables=X table_exist_action=APPEND.
    This will append the data to existing table

Maybe you are looking for

  • Reload Every is not working, and I can't get it to uninstall to reinstall.

    I had to reinstall FF, which caused many problems (mainly no drop down menus). So I uninstall 4 and reinstall 3.6.17. Solved the dropdown menu problem, but now Reload Every doesn't work. Says it is installed, but no option to turn it on. And if I try

  • Let me know how to get screen size of user..

    Hi. I'm going to change a container size in a screen, dynamically. I want to know that an user's screen is 1024X768 or others.. Let me know how to get screen size of user's computer. Best Regards. Kil - Nam.

  • Cant get printer on network to work

    have a canon mp110 connected to my pc running xp via usb, set my macbook to search for printer which it did ok , using netgear router,when i click print on mac, it says that the document has been printed but it never has.Would be grateful for any hel

  • Lightroom cannot open catalog because it cannot save to this location

    I recently had the logic board replaced by apple yesterday. I assume LR thinks this is a new computer. Light room backups are located at such and such location and I know exactly where they are...(there is a whole string of  backups but I had an issu

  • Can't access External Drive over Sharing

    Since upgrading to Leopard I am struggling to access the external hard drives connected to my iMac, via sharing from my laptop. For some reason only one of the drives appears which happens to be the drive I use for my Time Machine. Things were much b