11-06-2013 10:52 AM
Hello experts,
I have an issue with the final output of my table. The lines of the table aren't drawn entierely. I highlighted them with red color on the picture.
Here my code:
CLEAR wa_bilan.
ULINE /(120).
FORMAT COLOR 5.
WRITE :/1 sy-vline,30 'Assets' ,
60 sy-vline,80 'Liabilites' ,
120 sy-vline .
FORMAT COLOR OFF.
ULINE /(120).
LOOP AT wt_bilan INTO wa_bilan.
WRITE: /1 sy-vline,10 wa_bilan-actif , sy-vline,35 wa_bilan-mta , 60 sy-vline, 70 wa_bilan-passif, sy-vline,95 wa_bilan-mtp , 120 sy-vline .
AT LAST.
SUM.
ULINE (120).
WRITE: /1 sy-vline , /10 'Overall Sum',
wa_bilan-mta UNDER wa_bilan-mta, 60 sy-vline, wa_bilan-mtp UNDER wa_bilan-mtp, 120 sy-vline .
ULINE /(120).
ENDAT.
ENDLOOP.
Thanks for your support.
Amine
11-06-2013 11:09 AM
Hi amine,
Replace your code with this ,
CLEAR wa_bilan.
ULINE /(120).
FORMAT COLOR 5.
WRITE :/1 sy-vline,30 'Assets' ,
60 sy-vline,80 'Liabilites' ,
120 sy-vline .
FORMAT COLOR OFF.
ULINE /(120).
LOOP AT wt_bilan INTO wa_bilan.
WRITE: /1 sy-vline,10 wa_bilan-actif , sy-vline,35 wa_bilan-mta , 60 sy-vline, 70 wa_bilan-passif, sy-vline,95 wa_bilan-mtp , 120 sy-vline .
AT LAST.
SUM.
ULINE (120).
WRITE: /1 sy-vline , 10 'Overall Sum',
wa_bilan-mta UNDER wa_bilan-mta, 60 sy-vline, wa_bilan-mtp UNDER wa_bilan-mtp, 120 sy-vline .
ULINE /(120).
ENDAT.
ENDLOOP.
Remove that '/' with 10 as the '/' creates a new line.
Regards,
Anoop
11-06-2013 11:09 AM
Hi amine,
Replace your code with this ,
CLEAR wa_bilan.
ULINE /(120).
FORMAT COLOR 5.
WRITE :/1 sy-vline,30 'Assets' ,
60 sy-vline,80 'Liabilites' ,
120 sy-vline .
FORMAT COLOR OFF.
ULINE /(120).
LOOP AT wt_bilan INTO wa_bilan.
WRITE: /1 sy-vline,10 wa_bilan-actif , sy-vline,35 wa_bilan-mta , 60 sy-vline, 70 wa_bilan-passif, sy-vline,95 wa_bilan-mtp , 120 sy-vline .
AT LAST.
SUM.
ULINE (120).
WRITE: /1 sy-vline , 10 'Overall Sum',
wa_bilan-mta UNDER wa_bilan-mta, 60 sy-vline, wa_bilan-mtp UNDER wa_bilan-mtp, 120 sy-vline .
ULINE /(120).
ENDAT.
ENDLOOP.
Remove that '/' with 10 as the '/' creates a new line.
Regards,
Anoop
11-06-2013 11:30 AM
11-06-2013 12:42 PM
As Anoop mentioned, remove / before 10 .
SUM.
ULINE / (120).
WRITE: /1 sy-vline , /10 'Overall Sum', wa_bilan-mta UNDER wa_bilan-mta, 60 sy-vline, wa_bilan-mtp UNDER wa_bilan-mtp, 120 sy-vline .
11-06-2013 1:08 PM