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

Validate Quantity value in excelsheet during upload.

Former Member
0 Likes
370

Dear all ABAP guru,

Can anyone tell me how to validate quantity value from excel during an upload. What is the best option to validate quantity value.

As we know, quantity value can be 3, 000 or 3.000 or 3 all depends on user profile settings

Appreciate if someone can give some idea. Thanks

Thanks

1 REPLY 1
Read only

Former Member
0 Likes
308

Hi,

Always the separator will be , in Excel. When ever there is a value with separator the value will be enclosed in quotes, like "3,000.00" .

So validation can be like this

Upload the Value.

Remove the " if there is one

Remove the separator , if there is one

Do a numberic check If it is numeric, then the quantity is valid else invalid.

Please reward if useful.