Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

Most elegant way to check if select-option has a single value.

$
0
0

Hiya,

 

I need to check if a select option (sl_vbeln) holds a single document.

I've come up with the following code but I wanted to know if there was a more elegant way to code this:

 

select-options: sl_vbeln   for g_vbeln.

 

count = lines( sl_vbeln ).                                               

if count = 1 and sl_vbeln-low is not initial and sl_vbeln-high is initial and sl_vbeln-sign = 'I' and sl_vbeln-option = 'EQ'.

*Do logic processing

endif.

 

Thanks in advance for any help.


Viewing all articles
Browse latest Browse all 3523

Trending Articles



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