Application Development and Automation 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: 
Read only

Suppress initial values Sapscript

Ronnn
Participant
0 Likes
1,402

Hi Gurus,

Normally, it is possible to suppress a text, that is combined with a parameter in Sapscript like this:

&'Label 'VT&

(the text 'Label' will be only printed if parameter &VT& has a value).

But in my case, the text 'Label' is a parameter as well:

&LABEL& &VT&

Is it possible to suppress the line the same as it is suppressed above?

(So, if &VT& has no value, then don't print &LABEL& as well).

Of course, I can put something like: IF &VT& = '     ' .... ENDIF around it, but I have many labels to be suppressed, so this look a bit messy.

thank you,

Ron.

1 ACCEPTED SOLUTION
Read only

Ronnn
Participant
0 Likes
748

Found it!

After playing a while with the & and ' characters; the following line gives the desired output:

&'&LABEL& 'VT&

This will not print parameter &LABEL& if parameter &VT& is empty ..

1 REPLY 1
Read only

Ronnn
Participant
0 Likes
749

Found it!

After playing a while with the & and ' characters; the following line gives the desired output:

&'&LABEL& 'VT&

This will not print parameter &LABEL& if parameter &VT& is empty ..