Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to write data of a generic table into a specific table in an Excel file

hamida_ashna
Explorer
0 Kudos

I have to make a program that could write data of a generic table into a specific table in an Excel file. I looked through the abap2xlsx project, but I didn't find any good method for writing data into a specific table through the table name.

If somebody could give me some advice, that would be great. Thanks in advance.

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor

Opposite question of this one? How to identify and get data of a specific table from an Excel file into a generic table | SAP Commu...

Do you know there are many demo programs provided with abap2xlsx to write tables?

https://github.com/abap2xlsx/demos

The simplest method is probably BIND_TABLE of ZCL_EXCEL_WORKSHEET.

3 REPLIES 3

Sandra_Rossi
Active Contributor

Opposite question of this one? How to identify and get data of a specific table from an Excel file into a generic table | SAP Commu...

Do you know there are many demo programs provided with abap2xlsx to write tables?

https://github.com/abap2xlsx/demos

The simplest method is probably BIND_TABLE of ZCL_EXCEL_WORKSHEET.

0 Kudos

sandra.rossi, thanks for your reply.

- Yes, this is the opposite question of this one How to identify and get data of a specific table from an Excel file into a generic table | SAP Commu...

- But I think we can not set the table name using BIND_TABLE method. I need to write data to a table, but I also need to set the name of this table.

0 Kudos

sandra.rossi, thanks a lot. Now I solved my problem.