How to Export & Import HANA Table

In this article, we are going to use SAP HANA Studio to export and import HANA database table.

Export HANA Table

1. Launch the SAP HANA Studio and login to the database. We are login through the tenant database and using SAPABAP1 user (considering the authorization and database schema).

2. Right click on the Catalog and choose Export.

HANA_Studio_Catalog_Export

3. Type in the table that you want to export and click on Add. This will add the table to your left panel as selected catalog object. You can have multiple tables to export and for this example, we are exporting table DEVACCESS (SAPABAP1 schema). Click Next.

HANA_Studio_Select_Catalog_Object_Export

4. In the next screen, choose the Column Table Format, either CSV or BINARY. Select both Including data and Including dependencies for Export Catalog Objects. For output location, you can have them in the server or directly in your local computer / laptop directory. Click Next.

HANA_Studio_Catalog_Export_Location

5. The export running now. If you have huge size of table, please run in background.

HANA_Studio_Catalog_Export_Running

6. Go to the output location, you will see something like below,

HANA_Studio_Output_Files

Import HANA Table

1. Right click on the Catalog and click on Import.

HANA_Studio_Catalog_Import

2. Specify the catalog location where you exported earlier. Click Next.

HANA_Import_Catalog_Location

3. Select the catalog object for import. It will automatically collect from the exported location from above step. Click Next.

HANA_Import_Catalog_Object_Selection

4. Define the options for import selections (Including data, dependencies / to replace existing catalog objects). For huge table size, you can specify the number of parallel threads. Click Finish.

HANA_Import_Catalog_Object_Options

5. It’s done. You can confirm the catalog objects using the HANA query or from the transaction code SE16 on SAP application side.

You May Also Like

2 Comments

  1. hello
    thank you very much for the enlightening blog
    i have one question if possible
    if i want to export a table from one Hana db and import it to another Hana
    but merge the data of the tables or leave the current content and adds the new data ?
    what does the “Replace Catalog existing object” means ?
    does it drop table and recreate it or it replaces table data that exists in the target table ?
    an answer will be appreciated
    thank you
    Hilik

Leave a Reply?