2007 May 02 7:36 PM
Hei
In the ALV Report if two or more records have same Vendor no and same G/L account then i want amount in the amount field and LC field to be added up and display as one record.
how to do this.......
2007 May 02 10:46 PM
2007 May 02 7:39 PM
Hi
Make the field
do_sum = 'X'.
For Field Catalog.
Regards,
Sreeram
2007 May 02 7:39 PM
set the <i>do_sum</i> attribute of the field catalog to 'X'.
~Suresh
2007 May 02 8:00 PM
does it do the grand total or subtotal based on vendor and G/L account?
I want subtotal.
2007 May 02 8:04 PM
2007 May 02 8:04 PM
2007 May 02 8:30 PM
I am getting the Grand total but not the subtotal.
where do i have to set it...plz
2007 May 02 8:48 PM
are you passing the it_sort parameter to your ALV function call.. the sort order you maintain there should give you the break-up of subtotals..
~Suresh
2007 May 02 9:29 PM
can you give the function call name......so that i can check
2007 May 02 9:42 PM
Hi,
1) For the amount field have DO_SUM = 'X' in the field catalog internal table.
2) Prepare a sort internal table with the customer field..
DATA: T_SORT TYPE SLIS_T_SORTINFO_ALV.
DATA: S_SORT LIKE LINE OF T_SORT.
S_SORT-SPOS = '1'.
<b>S_SORT-FIELDNAME = 'FIELD1'. "VENDOR field name</b>.
S_SORT-UP = 'X'.
S_SORT-SUBTOT = 'X'.
APPEND S_SORT TO T_SORT.
S_SORT-SPOS = '1'.
<b>S_SORT-FIELDNAME = 'GL ACCOUNT FIELD NAME'.</b>
S_SORT-UP = 'X'.
S_SORT-SUBTOT = 'X'.
APPEND S_SORT TO T_SORT.
3)
Pass the internal table T_SORT to the parameter IT_SORT when calling the Function module.
Thanks,
Naren
2007 May 02 10:11 PM
is the IT_sort in'REUSE_ALV_FIELDCATALOG_MERGE'
or any other....
2007 May 02 10:13 PM
Hi,
You have to pass the IT_SORT in the ALV FM
REUSE_ALV_LIST_DISPLAY
or
REUSE_ALV_GRID_DISPLAY.
Are you using OO ALV??
Thanks,
Naren
2007 May 02 10:20 PM
actually this program is written by someone else.....
it has 10 includes........some much code.....one field is not getting displayed in offset though its already given in the program.....and this subtotal thing.....
there are heaps of ALV list display and ALV grid display 's in the program...
and i am not so experienced to catch it immediately as go thorugh this code....
getting confused
am trying very hard.......
2007 May 02 10:23 PM
Hi,
Just debug the program to check which one of the FM is getting called..
Thanks,
Naren
2007 May 02 10:29 PM
I have this in one include program
GT_SORT_OFFSET TYPE SLIS_T_SORTINFO_ALV WITH HEADER LINE,
can i email u the code?
2007 May 02 10:46 PM
2007 May 02 10:59 PM
2007 May 02 11:07 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |