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

ALV-Total

Former Member
0 Likes
1,046

Hi

I have a list with Totals..

Down below,i want to display only Totals column based on Working and Resigned employees.

Exam..

I want to display working and resigneed totals earn's and total dedu and net pay ...iam getting that..

below

i want working employyes total earn,total ded and netpay ..same for resigneed employyes also..

This is very urgent and thanks in advance..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,000

Hi,

As per Your request, I understand that You have already one ALV List and You want another List below your first List. To achieve this there are 2 ways.

1) You can display these two ALV Lists using below FMs

REUSE_ALV_BLOCK_LIST_INIT

REUSE_ALV_BLOCK_LIST_APPEND (for First ALV List)

REUSE_ALV_BLOCK_LIST_APPEND (for Second ALV List)

...

...

REUSE_ALV_BLOCK_LIST_DISPLAY (lastly use this FM to see

the output)

2) You can write the required additional logic in a dynamic form for event 'END_OF_LIST' similar to event 'TOP_OF_PAGE'. For example

FORM display_only_totals.

<Write your logic>

ENDFORM.

This form name you have to assign to the event 'END_OF_LIST' in the ALV events internal table.

After Your existing List, Your required additional logic will be shown in the report output.

Thanks,

sksingh

Hi

I have a list with Totals..

Down below,i want to display only Totals column based on Working and Resigned employees.

Exam..

I want to display working and resigneed totals earn's and total dedu and net pay ...iam getting that..

below

i want working employyes total earn,total ded and netpay ..same for resigneed employyes also..

This is very urgent and thanks in advance..

7 REPLIES 7
Read only

Former Member
0 Likes
1,000

Hi,

You can add a column for Working/Resigned employees and sort on that column. The grid will then automatically display the subtotals for Working/Resigned employees.

Manoj

Read only

0 Likes
1,000

Hi manoj

I have a inttable i_final and its displaying all values..

i have declared i_final1 with whatever i want including working and non-working also..

I called FM REUSE_ALV_BLOCK_LIST_APPEND

and passed i_final1 and also i_fcat1..

but still values not coming

Read only

0 Likes
1,000

Do you want to have the totals also in a separate list?

If you have the extra field (Working/nonworking) in your it_final1, you can just pass it to the normal

reuse_alv_list_display function module.

Regards,

ravi

Read only

0 Likes
1,000

yes

Read only

0 Likes
1,000

Ya i understood where i did mistake...i solved it...Thanks anyway..ur answers r helpful...

Read only

Former Member
0 Likes
1,001

Hi,

As per Your request, I understand that You have already one ALV List and You want another List below your first List. To achieve this there are 2 ways.

1) You can display these two ALV Lists using below FMs

REUSE_ALV_BLOCK_LIST_INIT

REUSE_ALV_BLOCK_LIST_APPEND (for First ALV List)

REUSE_ALV_BLOCK_LIST_APPEND (for Second ALV List)

...

...

REUSE_ALV_BLOCK_LIST_DISPLAY (lastly use this FM to see

the output)

2) You can write the required additional logic in a dynamic form for event 'END_OF_LIST' similar to event 'TOP_OF_PAGE'. For example

FORM display_only_totals.

<Write your logic>

ENDFORM.

This form name you have to assign to the event 'END_OF_LIST' in the ALV events internal table.

After Your existing List, Your required additional logic will be shown in the report output.

Thanks,

sksingh

Read only

Former Member
0 Likes
1,000

how do i insert page numbers to a ALV report and also create a print/page preview in terms of the pages.