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

Divide Header into 2 columns

Former Member
0 Likes
1,340

Hi All,

I want to divide a column into 2 column. I have ALV report.

I want the out only for the header this way.

Header1

Sub- H1 Sub-H2

How to do this?

6 REPLIES 6
Read only

Former Member
0 Likes
921

Hi Kuldeep,

If you want to split header then you need to split it into internal table before filedcat.

Regards,

Vijay

Read only

Former Member
0 Likes
921

Hi,

Use OFFSET command to split the Header to Subheader 1 and sub header 2.

Regards

Thiru

Read only

Former Member
0 Likes
921

Its not possible in normal ALV , u will have to use OO ALV.

In normal ALV if u specify fieldcatalog-row = 2. for a field it will not reflect in standard layout but if u change the layout to print layout

Read only

0 Likes
921

Even I came to know that It is not possible in ALV....

Read only

0 Likes
921

Hi.

For your specified scenario what i feel is, traditional Classical Report will be apt.

It gives the exact fit to your requirement when compared to ALVs.

If you like you can Opt it.

example:

TOP-OF-PAGE. " Event Name
PERFORM top_page. " write a subroutine for headings.

form TOP_PAGE .
FORMAT COLOR COL_HEADING.
  WRITE: /00 sy-uline.
  WRITE:/00 sy-vline,
             450 'SAP Community Network', " Main heading
             622 sy-vline.
WRITE: /00 sy-vline,
            05 'Header 1',
            15 sy-vline.
WRITE: /00 sy-uline.
WRITE: /00 sy-vline,
            02 'Sub H1',
            07 sy-vline,
            08 'Sub H2',
            19 sy-vline,
Endform.

The above may be boring to do, but few customers DO prefer this method for clear clarification.

Regards,

Padma

Read only

Former Member
0 Likes
921

Hi,

This is not possible in ALV Grid. But you can acheive this in ALV LIST in the TOP_OF_LIST event .

Refer to this link ..http://docs.google.com/Doc?id=dfv2hmgs_17fprqd7fs&hl=en