Export Import single table...

Gurus...
I am working on this single table which needs to be exported from prod and import into test.
As I understand I need to follow below steps:
1. Test - export table abc dump as backup
2. Prod - Export single table abc
3. Test - Drop table abc cascade constraints
4. Test - Import abc into test
Export par file:
Directory= dbpump
dumpfile= expdp_abc.dmp
logfile= expdp_abc.log
content= all
tables=user.abc
exclude=statistics,object_grant, tablespace_quota
flashback_time= systimestamp
Import par file:
Directory= dbpump
dumpfile= expdp_abc.dmp
logfile= impdp_abc.log
content= all
tables=user.abc
table_exist_action=replace
transform=segment_attributes:N
my doubts:
1. Is my process flow correct?
2. Export & Import file correct? or missing parameters?
3. What happens to all objects connected to the table, will that also imported?
4. Do I need to lock user during this process?
5. Any script to check whether all objects connected to table does exist in test after import?

Hi,
Process for table export & import.
+1. Create database directory in test as well as production:-+
--> create or replace directory directory_name as 'physical_path';
--> grant acsess on that directory to user.
+2. Backp table in test environment (in case if you need old data in your test env):-+
--> Create table BKP_table_name as select * from table_name; (table_name u want to import)
+3. Take Export backup in Production database:-+
--> expdp dumpfile=file_name.dmp logfile=file_name.log directory=directory_name tables=Owner.table_name
+4. On test server do the following actvity:-+
a. Just check for dependencies on that table using DBA_DEPENDENCIES.
b. Truncate table which u want to import
c. import table-
impdp dumpfile=file_name.dmp tables=owner.table_name logfile=file_name_imp.log directory=directory_name table_exists_action=APPEND
d. Just check for dependencies on that table using DBA_DEPENDENCIES.
And also you can use table_exists_action=replace
This will also import all depedent objects to the table..
Regards,
Edited by: XBOX on Dec 14, 2012 10:15 PM

Similar Messages

  • Doubt in  export, import and table para when creating Function Module

    Dear fellow ABAPers,
    I have a doubt in defining export, import and table parameter while creating a function module.
    I am calling a function module inside a user exit. Now in the user exit the SAP fills an internal table called i_lfa1 with all the data user has eneterd.
    Now I want to pass this whole internal table to function module and the perform some checks on the values of internal table.
    After that function module fills an error structure with values depending on some check.
    1)
    How do I pass this internal table to function module ? 
    When I am creating function module in se37 where do I define this iternal table type ? Is it in Import or Table parameter during function module creation?
    2)
    Where do I define error structure type (which is returned by function module to main program)? Is it in Export or table parameter during function module creation?
    Please clear my doubt..
    Relevant points will be awarded.
    Regards,
    Tushar.

    Hi Tushar,
    1. How do I pass this internal table to function module ?
       I assume u are creating your own Y/Z FM.
       Pass it thru TABLES parameter.
    2. When I am creating function module in se37 where do I define this iternal table type
       Define this in TABLES interface.
       What Type ?
       THE SAME TYPE WHICH HAS BEEN DEFINED
        WHILE PASSING IN THE USER-EXIT FUNCTION MODULE.
       IF U SEE THE FM OF THE USER-EXIT,
       U WILL COME TO KNOW.
    3.
    Where do I define error structure type (which is returned by function module to main program)? Is it in Export or table parameter during function module creation?
    Define it in TABLES interace. (not in export, import)
      (Since what u are going to return is an internal table)
      U can take for eg. BDCMSGCOLL.
      OR u can create your own Y/Z structure
    for the same purpose.
      (or u can use the structure type T100)
    I hope it helps.
    Regards,
    Amit M.

  • Exporting a single table from an acrobat created form

    I created a 5 page document InDesign (CS5.5), On one page I created a table that is 4 columns x 25 rows (with the first row being a header), using the table feature. I then exported to pdf and finalized the form in Acrobat 9.2 Pro. After running the Form Field Recognition the table was populated with the appropriate fields. I finalized the form and distributed. When the form is returned to me, I am trying to export JUST the information in this table to a spreadsheet (employee name, title, phone, email, ) and do not seem to be able to do so. Is this possible from a form? It doesn't seem like the pdf recognizes this table as a table any longer. It is a list of attendees, so I want to take this list from each returned form and combine them all into a master list.
    With the selection tool I have tried to select all the text > right click > Open Table in Spreadsheet and only the header rows appear. If I choose just the text and not the headers, then nothing appears. If I export the entire document then each cell of the table is its own column in excel, which makes sense since they all have different field names, but this doesn't make the spreadsheet useful. The only thing I have been able to do is select all the cells, copy into notepad, place a tab between each piece of information > save and open that document in excel. I am hoping there is an easier way. Basically all I am trying to do is have that table appear in excel as it does the pdf. I have searched several websites and have not been able to find anything that specifically deals with exporting a single table from a completed form.
    Perhaps I need to set the table field names differently? Any assistance would be greatly appreciated.

    The "table" idea here is just a design idea, the identity as a table no longer exists in a PDF.  The feature you're trying to use is for tables which are part of the regular PDF, not form fields.
    You can export form data. All fields, but then process to exclude the ones you don't want.

  • How to export & import customer table space from non-unicode to unicode sys

    hello all,
    I have performed a migration of Single code to Unicode system. -
    (ECC 6.0 SR2)
    After completion of export & import i have noticed  there is one customer table space which is missing.
    eg - PSAPABCD
    I have checked in source system & noticed that Table space is created by customer & not maintained properly as required,
    therefore it is not either exported or imported.
    Please advice me how should i manage to export tablespace from Non - unicode system & import in Unicode.
    Is there any work out.
    Thanks & rgds,
    -rahul

    Hi Rahul,
    please have a look at
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0f9f37c-be11-2a10-3baf-d5d7de5fb78d
    point 3) f. and g.
    However in order to keep consistency I would highly recommend to export and import all tables at the same time.
    Best regards,
    Nils Buerckel
    SAP AG

  • Memory Limitation on EXPORT & IMPORT Internal Tables?

    Hi All,
    I have a need to export and import the internal tables to memory. I do not want to export it to any data base tables. is there a limitation on the amount of memroy that is can be used for the EXPORT & IMPORT. I will free the memory once I import it. The maximum I expect would be 13,000,000 lines.
    Thanks,
    Alex (Arthur Samson)

    You don't have limitations, but try to keep your table as small as possible.
    Otherwise, if you are familiar with the ABAP OO context, try use Shared Objects instead of IMPORT/EXPORT.
    <a href="http://help.sap.com/saphelp_erp2004/helpdata/en/13/dc853f11ed0617e10000000a114084/frameset.htm">SAP Help On Shared Objects</a>
    Hope this helps,
    Roby.

  • Export & Import internal table data across the programs

    Hi All,
    I have two different reports,let say ZPRO1 & ZPRO2. I want to export internal table data of ZPRO1  to  ZPRO2 and then I want to do some calculations in ZPRO2 with the imported internal table data(ZPRO1).
    If I use 'SUBMIT' or CALL TRANSACTION syntax ZPRO1 is displaying..but I want to use only internal table data of ZPRO1.
    Pls advise.
    Pranitha.

    Hi,
      Please follow the simple code and try to solve your issue.
    Code in program1
    types: begin of ty_itab,
           matnr type matnr,
           end of ty_itab.
    data: it_itab type table of ty_itab,
          wa_itab type ty_itab,
          it_itab1 type table of ty_itab.
    select matnr from mara into table it_itab.
    export it_itab to shared buffer indx(st) id 'ABC'.
    Code in program2
    types: begin of ty_itab,
           matnr type matnr,
           end of ty_itab.
    data: it_itab type table of ty_itab,
          wa_itab type ty_itab.
    import it_itab from shared buffer indx(st) id 'ABC'.
    loop at it_itab into wa_itab.
    write:/ wa_itab-matnr.
    endloop.
      Please delete shared buffer indx(st) id 'ABC', once we don't need the internal table data.
    Regards
    Dande

  • Export, Import and Table declaration in custom function module

    I am creating a custom function module. Parameters needed are export internal table and one data field from the internal table.
    What do i need to fill for 'associated type' for these export parameters since size of the internal table and type for the data field from the internal table vary.

    Hello Albert
    If the function module need not be RFC-enabled then you have many ways to define such dynamic parameters, e.g.:
    FUNCTION ZUS_SDN_DYNAMIC_PARAMS.
    *"*"Local Interface:
    *"  EXPORTING
    *"     REFERENCE(ET_ITAB) TYPE  TABLE
    *"     REFERENCE(ET_ITAB_1) TYPE  ANY
    *"     REFERENCE(ET_ITAB_2)
    *"     REFERENCE(ED_DATA) TYPE  CLIKE
    *"     REFERENCE(ED_DATA_1) TYPE  ANY
    *"     REFERENCE(ED_DATA_2)
    ENDFUNCTION.
    See also: How to return back a structure of dynamic tables in a Function Module
    Regards
      Uwe

  • Problem with Export using single table with query

    I have a need to export rows from a specified table using the query parameter to filter the rows I need. The example I have is this:
    EXP user/pwd@id tables=(tableA) query=\"where tableA.id = tableB.id and table B.id2 = tableC.id2 and tableC.id3 = 10\"
    When export runs, I get this: ". . exporting table tableA
    EXP-00056: ORACLE error 904 encountered
    ORA-00904: "TABLEC"."ID3": invalid identifier
    Export terminated successfully with warnings."
    When I viewed the contents of the resulting dmp file through IMP, it only has table column information and no rows exported.
    Could somebody tell me what is wrong?
    I have a feeling it is with the QUERY parameter. The doco on the QUERY parameter only shows a very simple example that filters data by only the columns in the specified table (assumed). Are joins to other tables allowed inside the QUERY?? The doco doesn't say that its not allowed.

    <<
    EXP user/pwd@id tables=(tableA) query=\"where tableA.id = tableB.id and table B.id2 = tableC.id2 and tableC.id3 = 10\"
    >>
    table B.id2 = tableC.id2   -- isn't there one blank too much ?                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to Export/Import HANA table data.

    Hello,
    I try EXPORT HANA table.
    I try to export a table by using the HANA Studio on the client PC.
    but does not work.
    the following steps:
    HANA Studio
    <table> > Export > Select tables for export > Next >
    Error message : "Choose a location"
    There is the question
    Export possible? HANA database table by using client PC(HANA Studio).
    Best regards,
    Hosoya

    Hi Hosoya,
    Which version of the HANA server/studio you are using? I checked in Revision 24 and was able to do the table export as follows:
    Quick Launch>Export>SAP HANA Studio>Tables>'Select the server'>'Select the table'>Export table options
    In Export Table options screen we can specify either the Server Location as 'Export Tables on Server' or to the client location
    as 'Export tables to current client'
    Note: The server and studio I use are on different servers.
    Regards, Rahul

  • Export single table from Production

    Dear Experts
    I have to export a single table from Production and import that into Quality. In SCC8 we have a option in expert mode (SingleCopy option tables) will this help me in exporting the data of a single table if yes but which profile do we select?
      or do we have any other method for this.
    Thanks & Regards
    Amit Paithanakr

    The fastest and easiest way is to ask your SAP Basis administrator to perform an export/import via R3trans.
    Kind regards,
    Mark

  • ProgressIndicator for migration (export/import) of db tables

    Hi
    I want to use the "progressIndicator" component of ADF faces for my export-import db tables utility which will be launched by an "Export/Import" button on the UI. For the value of "progressIndicator" component, I am using a bean and extending it to the BoundedRangeModel class where getValue() and getMaximum() methods are being implemented. The problem is, how can I call the export() method "in sync with" my bean getValue() and getMaximum() methods, or will I have to use threads, no workaround? (Here, getValue() should get the value from some log db table which will get updated by the export() method)
    Thanks
    Bhavesh

    Bhavesh,
    I have done this in the past using this general approach:
    1). Class that actually does the exports is a thread. As it progresses, it updates a "percent complete" somewhere, perhaps in a session-scoped managed bean that has been injected upon creation.
    2). Web page has progress indicator and af:poll to update the indicator periodically. progress indicator uses percent complete from the session bean that is updated by the thread.
    3). Upon user clicking "export" - instantiate and run the thread.
    Don't actually have time to post the actual code here, but I know I put this in a post earlier (perhaps last year).
    John

  • Export of Z table

    Hi ,
    Can I take  export of all Z tables thru ABAP  ?
    I want to take bakup of all Z table in SAP db. ?
    Thanks in advance.
    Milind .

    Hi,
    For exporting the Z table check d link,
    How to export an internal table
    Export Import Internal tables across two z programs
    and for backup part have alook on this link,
    Taking backup of records of a Z database table ?
    regards,
    archana
    Edited by: Archana Kumari on Aug 4, 2009 11:14 AM

  • LSMW export/import

    Hi,
    How to export/import single object of a LSMW project and not the entire project.
    Thanks
    Ravi

    hi
    you can copy the required object to some different project first and then Export or import....
    Export and import are done at project level where as you can copy single object from one project to other...
    Santosh

  • Export single table in maxdb 7.4 and import table into maxdb 7.7

    Hello Guru
    Need your help as follows
    how to export single table from 32 Bit MAXDB 7.4 and import same table into another MAXDB 7.7 X64 bit.
    Thanks and Regards
    A P Rao

    Hello,
    the Database Studio Loader features are only available for MaxDB version > 7.5.
    Please have a look at the Loader documentation "Export table" and "Import table" command.
    http://maxdb.sap.com/doc/7_7/14/a08027b665485f8e09eca0c336171d/content.htm
    http://maxdb.sap.com/doc/7_7/24/ff7c8db8ae46f69a5ed3ec7e4c4db6/content.htm
    Best Regards
      Wolfgang

  • How to restore a single table from a DP Export from a different schema?

    Environment:
    Oracle 11.2.0.3 EE on Solaris
    I was looking at the documentation on DP Import trying to find the correct syntax to import a single table from a DP Export of a different schema.
    So, I want to load table USER1.TABLE1 into USER2.TABLE1 from a DP Export.
    Looking at the REMAP_TABLE options:
    REMAP_TABLE=[schema.]old_tablename[.partition]:new_tablename
    OR
    REMAP_TABLE=[schema.]old_tablename[:partition]:new_tablenameI can't see where to specify the target schema name. The examples had the new table name residing in the same schema with just a new name.
    I looked at the REMAP_SCHEMA but the docs say that will import the entire schema into the new schema and I only want one (1) table.
    Any suggestions are most welcome!
    -gary

    I thought I tried that combination and it seemed to me that the REMAP_SCHEMA somehow over-rode the TABLES= parameter >and started loading all the objects.If it does fail (and it should not) then please post the details here and I will try to see what is happening.
    Let me get back into the sandbox and try it again. I admit I was in a bit of a hurry when I did it the first time.We are all in a hurry, no worries. If it fails, please post the details and the log file.
    Does it make any sense that one parameter would override another?No, this should never happen. We have tons of checks to make sure the job can't have multiple meanings. For example, you can't say
    full=y schemas=foo --- Which do you want, a full export or a list of schema exports, etc.
    Your suggestion was the first thing I thought would work.This should work. If not, please post the log file with the command and the results.
    Dean
    Thanks again for the help and stay tuned for my new attempt.
    -gary

Maybe you are looking for