Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error while calculating totals

Former Member
0 Likes
631

hi all,

i have added a field in standrad report (changed to z report ofcourse) i.e related to watts.(numeric value) type is i.

Field is displaying on the report.But when i am calculating sum,(i.e selected on the column and clicked sigma button.)

I am geting this message only for this added field.all other fields are getting totals.

Desired operation cannot be performed for column

'LABELED WATTAGE'

Can any one help me out plz.

4 REPLIES 4
Read only

Former Member
0 Likes
593

how have you declared field catalog for that field?

and can you please post the declaration of that field in final table too?

Read only

0 Likes
593

MOVE : 'LABELED WATTAGE' TO g_s_fieldcat-seltext_l,

'L' TO g_s_fieldcat-ddictxt,

30 TO g_s_fieldcat-outputlen,

'MEINS' to g_s_fieldcat-qfieldname.

PERFORM fc_s_flat USING 'WATT' ' G_S_TOTALS_FLAT' 'WATT'.

Read only

0 Likes
593

Hi gsudhir,

the declaraion of the field mus be a quantity type - i is not quantity type. Only quantity types can be linked to units (like MEINS).

Check that the data element has a domain with datatype QUAN. Link this to a unit (MEINS) = 'W'. 'W' is a unit configured in table T006 as Dimen. POWER, Measurement unit text W or long Watt with 0 decimals, exactly what you need.

Regards,

Clemens

Read only

Former Member
0 Likes
593

This message was moderated.