‎2008 Aug 06 7:20 AM
Hi,
is there any FM that we can check an amount is valid , supposing that the amount is loaded from a text file
For example : 1233.00 --> OK
1a222.00 ->NO
1 2 3 -NO
thanks
‎2008 Aug 06 7:24 AM
Instead of FM u can build ur own logic like:
For example ur file data is first stored in a char field and then try to move that data in a type p field within try..catch..entry block.
data:l_file_data(20) type c.
data: l_amount type p decimals 2.
l_file_data = '12@3'.
try.
l_amount = l_file_data.
catch cx_root.
Do ur error handling here
endtry.
‎2008 Aug 06 7:24 AM
Instead of FM u can build ur own logic like:
For example ur file data is first stored in a char field and then try to move that data in a type p field within try..catch..entry block.
data:l_file_data(20) type c.
data: l_amount type p decimals 2.
l_file_data = '12@3'.
try.
l_amount = l_file_data.
catch cx_root.
Do ur error handling here
endtry.