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

List report with multiple column headers

Former Member
0 Likes
2,390

Hi All,

I have to create a list report which has both detail & summary information. Detail list has column header which is differ to the column header of summary. I have to display summary report just after the details report (Not in the new page always).

Details and summary both may be continue to the several pages. w

When it scrolls down, I need to show each column header on the top of the each list until finished the each list.

(On top of the detail list needs to be show detail column header and after scroll down to the summary report needs to be hide details column header and show only summary column header on the top. Same effect should be happen when scroll up also)

This can be done easily when the detail and summary list display in different pages (Using TOP-OF-PAGE). But in my issue I need to show the summary list just after the detail list. Appreciate very much if you could give a solution with a sample code.

Thanks,

Pra

1 ACCEPTED SOLUTION
Read only

bpawanchand
Active Contributor
0 Likes
1,388

Hi

USe TOP-OF-PAGE DURING LINE-SELECTION event

Regards

pavan

8 REPLIES 8
Read only

bpawanchand
Active Contributor
0 Likes
1,389

Hi

USe TOP-OF-PAGE DURING LINE-SELECTION event

Regards

pavan

Read only

Former Member
0 Likes
1,388

Hi,

You can use event TOP-OF-PAGE DURING LINE-SELECTION for the detail list.

Example:-

http://www.sap-img.com/abap/example-code-for-drill-down-report.htm

Best of luck,

Bhumika

Read only

Former Member
0 Likes
1,388

Hi,

define your detail col header in TOP-OF-PAGE DURING LINE-SELECTION.

for detail syntax and explanetion check,

http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba2eb35c111d1829f0000e829fbfe/content.htm

Regards,

Anirban

Read only

Former Member
0 Likes
1,388

hi,

While Creating the Report Goto SE38 -> GOTO>Text Element ---> List Heading ---> Column Heading.

Apply different column for both list.

This might help.

Regards

Sumit Agarwal

Read only

Former Member
Read only

Former Member
0 Likes
1,388

Hello Pradeep,

Use TOP OF PAGE DURING LINE SELECTION.

In this event, you can set the headings accordingly,

e.g.:

TOP OF PAGE DURING LINE SELECTION.

if sy-lsind eq 1.

WRITE: 'PAGE1'.

ELSEIF SY-LSIND EQ 2.

WRITE: 'PAGE 2'.

ELSEIF SY-LSIND EQ 3.

WRITE 'PAGE 3'.

ENDIF.

Regards

Indu.

Read only

Former Member
0 Likes
1,388

Hi All,

This is not a drill down or an interactive report.

Details and summary information should be shown in the same list with two different column headers. Summary information should be started just after the detail information (Summary information may be in the same page)

Column header of detail information should be hidden and column header of summary info should be shown on the top when scroll down to the summary information.

Column header of detail info should be shown on top and column header of summary info should be hidden when scroll up to the detail information.

Regards,

prad

Read only

Former Member
0 Likes
1,388

Hi Pradeep,

If you give anything in the TOP-OF-PAGE event it will be shown at the top of the list and will remain if you scroll your list upwards. This event is restricted to the Basic List itself.

But if you want the headings to appear on the secondary list also, you use the event TOP-OF-PAGE DURING LINE SELECTION. This is same as TOP-OF-PAGE> But is displayed on the Detail Lists only.

There is another option also like if you want some headings on First Detail List give the sy-lsind as 1.

if you want some other headings on Second Detail List give the sy-lsind as 2. and so on...

Regards,

Swapna.