Quantcast
Channel: SCN : Unanswered Discussions - ABAP Testing and Troubleshooting
Viewing all articles
Browse latest Browse all 430

ECATT optional execution

$
0
0

Hello!

 

I have a sapgui command, which selects a key from dropdown list. But this command is optional. This means that in some variants this command receives empty input parameter. This results in error, because empty key has ' ' (space) value and there is no '' (empty) keys in list.

 

Currently Im using this code.

--------------------
if (i_parameter = '').

   v_parameter = ' '.

else.

   v_parameter = i_parameter.

endif.

--------------------

 

Is there any way to do it simpler?

 

Thanks!


Viewing all articles
Browse latest Browse all 430

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>