2008 Nov 28 10:48 AM
Hi, Experts,
I am using OLE to pass data to an Excel file and create pivot table.
I wrote the following to add a row in the pivot table:
DATA: L_FIELD TYPE OLE2_OBJECT.
CALL METHOD OF M_TABLE 'PivotFields' = L_FIELD
EXPORTING #1 = 'Country'.
SET PROPERTY OF L_FIELD 'Orientation' = 1.
FREE OBJECT L_FIELD.
However, there is a subtotal for each country in the pivot table, I do not want them.
I know how to do it in Excel, but I cannot do in the ABAP OLE.
Need your advice.
Thanks,
Urchin
Hi, Experts,
I am using OLE to pass data to an Excel file and create pivot table.
I wrote the following to add a row in the pivot table:
DATA: L_FIELD TYPE OLE2_OBJECT.
CALL METHOD OF M_TABLE 'PivotFields' = L_FIELD
EXPORTING #1 = 'Country'.
SET PROPERTY OF L_FIELD 'Orientation' = 1.
FREE OBJECT L_FIELD.
However, there is a subtotal for each country in the pivot table, I do not want them.
I know how to do it in Excel, but I cannot do in the ABAP OLE.
Need your advice.
Thanks,
Urchin
2009 May 19 11:46 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |