2023 Jul 10 8:50 PM
Hi all:
I am trying to read an Excel file using the FM FILE_READ_AND_CONVERT_SAP_DATA . Nevertheless, all the cells with long texts get truncated to 128 characters.
I ended up creating a copy of the FM ALSM_EXCEL_TO_INTERNAL_TABLE, changing the structure in order to accept longer columns. Nevertheless, this seems to me, as a solution, a little kludgy. Isn't there a more elegant solution?
Any ideas?
TIA,
Luis
2023 Jul 11 6:08 AM
ALSM_EXCEL_TO_INTERNAL_TABLE is not released by SAP, has many drawbacks. How to read Excel files has been already answered in the forum (may depend on format, CSV, XLSX, XMLSS, etc.): abap2xlsx, XCO, blog posts, etc.
2023 Jul 11 12:54 PM
Sandra,
Thanks for your post. Precisely, searching the forum is where I found the idea about creating my own version of ALSM_EXCEL_TO_INTERNAL_TABLE. I did not know it had not been released by SAP. In this particular case, .CSV wasn't an option (that one for sure it would been a lot easier). Had thought about ABAP2XLSX, but for time constraints, such as having it approved and so on, it wasn't and option either.
Thanks again for your help.
Regards,
Luis