Application Development 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: 

Draw table lines

amine_lamkaissi
Active Contributor
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi ,

Check with below code .

Out Put :

Regard's

Smruti

former_member184569
Active Contributor
0 Kudos

As 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 . 

amine_lamkaissi
Active Contributor
0 Kudos

Thanks to all of you.

Amine