on 05-02-2018 11:45 PM
Dear Colleagues,
I created a tile that run my transaction which upload an xls or xlsx file.
When I run my transaction in sap gui, all works fine I can access to data contained in my file, I'm using the FM 'ALSM_EXCEL_TO_INTERNAL_TABLE'.
With HTML usage this FM doesn't work.
Could you please help me to find an API to convert my xls to sap internal table?
Many Thanks in advance,
Kalthoum.
Understand that when you're running a web application, there is no SAPGui. SAPGui handles communications between the application server and the presentation server (your PC). Therefore, when there is no SAPGui (as in a background process, or web applications) any function module that communicates with the presentation server won't work.
If you search, you will find solutions for reading XLSX files programmatically and converting them to internal tables. There are blogs concerning this.
XLS is more difficult as it is not an open standard.
You should also search for convering XLS and XLSX to internal table in background - the same solutions apply as to web applications.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try abap2xlsx
check the demo report ZDEMO_EXCEL15. This reads excel files of format .xslx
hope this works 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you need to install aba2xslx on your system....this shows the demo program
Follow the installation instructions
Hi Kalthoum,
Try these Function Modules
1. CALL FUNCTION 'WWW_LIST_TO_HTML'
...
2. CALL FUNCTION 'LIST_DOWNLOAD_HTML'
...
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Roberto,
Thanks a lot for your help.
As importing parameter for this FM LIST_INDEX what shall I put as list_index, I have only the path to my xls file in my program ( my input field to upload the xls file). Could you please clarify to me how I can use this FM on my case?
Many Thanks,
Kalthoum.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.