Application Development 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: 

Alv problem (no sums)

Former Member
0 Kudos

I made an Alv report that uses data from HR .

My internal table that is displayed to alv is :

DATA: BEGIN OF LIST OCCURS 0,

BUKRS LIKE PA0001-BUKRS,

WERKS LIKE PA0001-WERKS,

BTRTL LIKE PA0001-BTRTL,

NACHN LIKE PA0002-NACHN,

VORNA LIKE PA0002-VORNA,

PERNR LIKE PA0001-PERNR,

PERSK LIKE PA0001-PERSK,

ORGEH LIKE PA0001-ORGEH,

PLANS LIKE PA0001-PLANS,

LDATE LIKE PDCPT-LDATE,

BEGTM LIKE PDCPT-BEGTM,

ENDTM LIKE PDCPT-ENDTM,

N_DAY TYPE P DECIMALS 2, "LIKE PC2BF-ANZHL,

N_NIGHT LIKE PC2BF-ANZHL,

N_DAY_ARGIA LIKE PC2BF-ANZHL,

N_NIGHT_ARGIA LIKE PC2BF-ANZHL,

I_DAY LIKE PC2BF-ANZHL,

I_NIGHT LIKE PC2BF-ANZHL,

I_DAY_ARGIA LIKE PC2BF-ANZHL,

I_NIGHT_ARGIA LIKE PC2BF-ANZHL,

Y_DAY LIKE PC2BF-ANZHL,

Y_NIGHT LIKE PC2BF-ANZHL,

Y_DAY_ARGIA LIKE PC2BF-ANZHL,

Y_NIGHT_ARGIA LIKE PC2BF-ANZHL,

ATEXT LIKE T554T-ATEXT,

SYNOLO_WRWN LIKE PC2BF-ANZHL,

DAYNAME LIKE HRVSCHED-DAYTXT,

KOSTL LIKE PA0001-KOSTL,

ENAME LIKE PA0001-ENAME,

CELLCOLOR TYPE LVC_T_SCOL,

SEL,

END OF LIST,

The error that the system says is:

Desired operation cannot be performed for column 'ÇÌÅÑ (Êáí.)'

Message no. 0K003

Do you have any idea ?

2 REPLIES 2

Former Member
0 Kudos

Make sure dat ur summing Numeric column

Former Member
0 Kudos

Try to assign the inttype of the field you need to sum to 'P' at fieldcat.

Example you need to sum for column N_DAY.

In your fieldcat,

if fieldname = 'N_DAY'.

fieldcat-inttype = 'P'.

endif.