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

Draw table lines

Former Member
0 Likes
1,242

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
Read only

Former Member
0 Likes
1,199

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
Read only

Former Member
0 Likes
1,200

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

Read only

Former Member
0 Likes
1,199

Hi ,

Check with below code .

Out Put :

Regard's

Smruti

Read only

Former Member
0 Likes
1,199

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 . 

Read only

Former Member
0 Likes
1,199

Thanks to all of you.

Amine