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: 

How to draw Horizontal line in main window under table header?

Former Member
0 Kudos

Dear experts,

I have requirement like i need to draw horizontal line under main window of Table Header, Only for table header, i know how to draw horizotanl and vertical lines in tabkle this Question for table under header to draw horizontal line? please reply this ?

i know for table we need go for template or box shading , my requirement this options are not working?

Thanks

Ravilla

11 REPLIES 11

Former Member
0 Kudos

I am not sure what you wanted to do, may be you share screen shots of layout/Form, what you want to achive.

You also have CHARACTER PHORMAT, under line (UL).

0 Kudos

Hi

I just need one horizontal line under table header it self.

blow example like this

-----------------------------------------

srno     name                                         =====> this is header

------------------------------------------

1    lakshman                                             

                                                           ======> this is item

2    ravilla

from the above table i just horizontal lines as above same to same how do i get? I know if we use patterns we get rows and columns but i need rows for only header in table?

Thanks

Ravilla

0 Kudos

If it's a simple report:

* Header

WRITE:    sy-uline(20),

        / 'snro', 10 'name',

        / sy-uline(20).

* Item

* Loop at item

WRITE: / '1', 10 'lakshman', "Change it to internal table values

       / '2', 10 'ravilla'.  "Change it to internal table values

arthur_alvesteixeira
Active Participant
0 Kudos

Ravilla,

if you are using write check this example:  WRITE: sy-uline(20).

If you are using sapscript, check this BOX command.

Former Member
0 Kudos

Hello,

Try to create a paragraph format and check Underline

After creating the PF assigne it to the Header Text in table.

Thanks

Sam

Former Member
0 Kudos

create text in table header and insert parameter.

&sy-uline(50)& "draws horizonal line with 50 dashes

Private_Member_7726
Active Contributor
0 Kudos

Hi,

In where: report list, Sapscript, Smartform, something else...?

cheers

Janis

0 Kudos

smartform

0 Kudos

Hello Ravilla,

Try like as suggested in my early replay.

Thanks

Sam

0 Kudos

Hi,

I'd create another line type in the table node and use a line line type with borders/shading for header and a second one (without borders and shading) for the table body. Anything else (outputing extra lines using bitmap, or underline characters) is asking for unnecessary trouble (in maintenance of the form), I feel.

cheers

Janis

Former Member
0 Kudos

Something inovative... Try this as well...

Create a variable in Samrtform, gv_line type string.

gv_line = '_______________________________________'.

OR

gv_line = sy-uline(20).

Print gv_line just below header.