2008 Sep 12 12:28 PM
Hi Experts,
In a Report Program i am printing text say mail id seventy characters. In some cases if there is no value in that field i am getting blank spaces (70 blank spaces) i don't want this 70 blank spaces to be printed how to i restrict this blank spaces.
2008 Sep 12 12:30 PM
hi,
check if the field has value, before printing:
IF email IS NOT INITIAL.
WRITE email.
ENDIF.hope this helps
ec
Hi Experts,
In a Report Program i am printing text say mail id seventy characters. In some cases if there is no value in that field i am getting blank spaces (70 blank spaces) i don't want this 70 blank spaces to be printed how to i restrict this blank spaces.
2008 Sep 12 12:30 PM
hi,
check if the field has value, before printing:
IF email IS NOT INITIAL.
WRITE email.
ENDIF.hope this helps
ec
2008 Sep 12 12:31 PM
2008 Sep 12 12:31 PM
Use key word CONDENSE...
It is used to remove blank spaces...
Regards,
Kunjal
2008 Sep 12 12:34 PM
Hi Hari,
Suppose the Firld for email in in the internal table is email.
Write-
Delete t_email from wa_email where email = ' '.now print this internal table.
Regards,
Sujit
2008 Sep 12 1:49 PM
Hi,
if you want to print only the the number of the characters and no blank spaces (e.g if mail is mail_id (at) mail-server.com and you want to print only the first 23 characters) use something like this.
DATA: mail(70) TYPE c,
length TYPE i.
mail = 'mail_id (at) mail_server.com'.
length = STRLEN( mail ).
IF length > 0.
WRITE mail(length).
ENDIF.Kostas
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |