on 07-28-2009 8:14 AM
Hi,
I have stored a line of text in one variable. If the text exceeds more than 50 characters, the remaining characters will be printed in next line.
For this i have given code as :
<I>&S_BOL_SUMMARY-TXT(50)&</>
<I>&S_BOL_SUMMARY-TXT+50&</>
The problem is i have to print the second line only when the text exceeds more than 50 characters. So how can i give the condition for that?
Ezhil
Hi,
Try the following,
data: len type i.
len = strlen (S_BOL_SUMMARY-TXT ).
if len > 50.
&S_BOL_SUMMARY-TXT(50)&
&S_BOL_SUMMARY-TXT+50&
else.
&S_BOL_SUMMARY-TXT(50)&
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.