on 06-01-2010 1:48 PM
hi all:
I use the following code to sum up values of DMBTR, the code is put in method WDDOINIT,
when alv has no items at the very begining and insert some items to it, but when press
enter, there would be an error says Adapter error in &VIEW_ELEMENT_TYPE& "BUKRS" of view
"SALV_WD_TABLE.VIEW_TABLE": CellVariant ID "TOTAL" does not exist
do you have any idea to solve it ?
thank you very much
*******************************************************************
data: lr_sum_amnt TYPE REF TO CL_SALV_WD_FIELD,
lv_aggr_rule type ref to CL_SALV_WD_AGGR_RULE.
CALL METHOD lr_config->IF_SALV_WD_FIELD_SETTINGS~GET_FIELD
EXPORTING
FIELDNAME = 'DMBTR'
RECEIVING
VALUE = lr_sum_amnt.
CALL METHOD lr_sum_amnt->IF_SALV_WD_AGGR~CREATE_AGGR_RULE
EXPORTING
AGGREGATION_TYPE = IF_SALV_WD_C_AGGREGATION=>AGGRTYPE_TOTAL
RECEIVING
VALUE = lv_aggr_rule.
It doesn't sound like something you can fix. You should probably consider opening a support ticket. I search for notes and the closest was 1359149 - but that seems to be the opposite problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.