cancel
Showing results for 
Search instead for 
Did you mean: 

how to upload a .xlsx formatted excel file in ABAP webdynpro

Former Member
0 Kudos

Dear Exports

I want to create webdnpro application to upload a Excel file which contains the customer master records for KNA1 table.

when I will upload the file the data will be displayed on the browser as well as store in the corresponding fields of KNA1 table but my excel file is in .xlsx format.

Can anyone kindly give the step by step guides by using which I will do the application successfully. But I have done the same application for .txt file  and .csv file. So now I need to do it for .xlsx formatted file.

Please anyone can help me.

Thanks and regards

Rashmita

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello Rashmita,

You can use cl_fdt_xl_spreadsheet standard class for .xlsx file upload. You can refer to my content for the same through the given link.

http://scn.sap.com/docs/DOC-45719

Please award points if useful.

Thanks and Regards,

Devesh Singh

Former Member
0 Kudos

Hi,

see the below link

http://scn.sap.com/community/web-dynpro-abap/blog/2012/04/05/upload-xlsx-file-in-webdynpro-abap-and-...

or use the FM

  CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'

Former Member
0 Kudos

For xlsx use function modules

'ALSM_EXCEL_TO_INTERNAL_TABLE' or 'KCD_EXCEL_OLE_TO_INT_CONVERT'

Regards,

Fareez

Former Member
0 Kudos

For xlsx use function modules

'ALSM_EXCEL_TO_INTERNAL_TABLE' or 'KCD_EXCEL_OLE_TO_INT_CONVERT'

Regards,

Fareez