Application Development and Automation 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: 
Read only

quantity field conversion error

Former Member
0 Likes
1,992

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

4 REPLIES 4
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,721

Use abap2xlsx (it also does XLSX to ABAP) as already answered many times in the forum.

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,721

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.

Read only

Former Member
0 Likes
1,721

sandra.rossi Thanks for your comment. There is no date field in my excel. May I know if there is any alternate FM

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,721

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...)