2020 Aug 21 5:29 PM
Hi Experts,
I am trying to convert excel to internal table using FM 'TEXT_CONVERT_XLS_TO_SAP'. Facing issues in quantity field conversion.
If user enters '11.5' as quantity in excel, FM 'TEXT_CONVERT_XLS_TO_SAP' is converting it to '11.05.2020'. Tried char, string and kwmeng data types but still facing same issue.
I cannot use FM 'ALSM_EXCEL_TO_INTERNAL_TABLE' as I need this program to run in background as well and we may have huge data.
Please help me in solving this issue
Use abap2xlsx (it also does XLSX to ABAP) as already answered many times in the forum.
2020 Aug 21 6:12 PM
Use abap2xlsx (it also does XLSX to ABAP) as already answered many times in the forum.
2020 Aug 21 6:14 PM
And concerning TEXT_CONVERT_XLS_TO_SAP, it seems that you have defined a Date field in your internal table at a place where you should have a Quantity field.
2020 Aug 22 10:26 AM
sandra.rossi Thanks for your comment. There is no date field in my excel. May I know if there is any alternate FM
2020 Aug 22 3:02 PM
I was not talking about your Excel file, I was talking about the internal table (I said: "it seems that you have defined a Date field in your internal table")
I said: use abap2xlsx (sorry, it's ABAP Objects... My opinion is that function modules are becoming more or less obsolete nowadays...)
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |