Use this method to set or change the field type of a field in the pivot table. You can, for example, change the type of a field (row, column, or data field), or its summarization type (sum field, maximum, minimum, count, or average).
You can only use this method with fields that are already in the pivot table. To add or remove fields from the table, use the method
CALL METHOD pivot->set_fieldtype
EXPORTING name = name
type = type
pivot = pivot
consolidation = consolidation
no_flush = no_flush
IMPORTING error = error
retcode = retcode.
Description of parameters
Parameter |
Optional |
Description |
name |
Name of the field in the pivot table | |
type |
New type of the field. Possible values: | |
pivot |
The name of the pivot table in the workbook | |
consolidation |
The summarization type of the field. Possible values: |