‎2020 Sep 10 4:13 AM
For example if I try the ROUND function module, when I input the number value somehow it doesn't recognized as a number.
Is There anyway to test it with number value ??
Thanks
‎2020 Sep 10 5:24 AM
Simple answer, you cannot in this specific case.
The reasons are:
So with the SE37 test environment interface, you cannot properly test this FM. You would have to create a specific Test FM with specific numeric types for input that calls the FM ROUND in the way you want to test it.
Just a side note: SAP has done better with classes in the SE24 test environment interface, where you can choose the specific type in case of generic types. However with the SE24 test environment interface, you dont have an option to save test cases. But maybe I am outdated on new SAP standard options for saving test cases for classes (?)
‎2020 Sep 10 4:15 AM
It always shows error "Use a number field for the input value".
‎2020 Sep 10 5:24 AM
Simple answer, you cannot in this specific case.
The reasons are:
So with the SE37 test environment interface, you cannot properly test this FM. You would have to create a specific Test FM with specific numeric types for input that calls the FM ROUND in the way you want to test it.
Just a side note: SAP has done better with classes in the SE24 test environment interface, where you can choose the specific type in case of generic types. However with the SE24 test environment interface, you dont have an option to save test cases. But maybe I am outdated on new SAP standard options for saving test cases for classes (?)
‎2020 Sep 10 6:23 AM
immanuels,
Am afraid if this function Module can be tested via SE37, as an alternative i wrote a sample program to test the FM and it works fine. Below screen shot for your reference.

Regards!