Application Development 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: 

IS SUPPLIED optional parameter

Former Member
0 Kudos
1,847

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

1 ACCEPTED SOLUTION

ceedee666
Active Contributor
0 Kudos
444

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

2 REPLIES 2

ceedee666
Active Contributor
0 Kudos
445

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

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos
444

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