2006 Oct 13 1:20 PM
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..
2006 Oct 13 1:35 PM
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
2006 Oct 13 1:26 PM
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
2006 Oct 13 1:30 PM
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
2006 Oct 13 1:34 PM
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
2006 Oct 13 1:38 PM
2006 Oct 13 1:39 PM
Ya i understood where i did mistake...i solved it...Thanks anyway..ur answers r helpful...
2006 Oct 13 1:35 PM
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
2006 Oct 13 2:18 PM
how do i insert page numbers to a ALV report and also create a print/page preview in terms of the pages.