2016 Aug 18 2:08 PM
Hello gurus,
I have the following question: If I use the "IS SUPPLIED" clause in a condition during Class or Function Module testing, I do not know how to force a variable to not "be supplied" (so then, the 'IF [variable] IS SUPPLIED' clause can become false).
The variable of the input interface, so far for me, is always initial and supplied.
Does anyone know how to solve this issue?
Thanks!,
Eloi
2016 Aug 18 3:32 PM
Hi Eloi,
using the test UI for function modules or classes this is not possible. One option to test would be to write an unit test and not supply the parameter.
Christian
2016 Aug 18 3:32 PM
Hi Eloi,
using the test UI for function modules or classes this is not possible. One option to test would be to write an unit test and not supply the parameter.
Christian
2016 Aug 18 3:36 PM
See the documentation of IS SUPPLED an the example there.
In order to test it (in a module test or so) you have to call the procedure (in a test class of ABAP Unit or so) without supplying an actual parameter to the optional formal parameter.
Horst
PS: B.t.w., I never use the test UI of function or class builder, only ABAP Unit or self written calls