Skip to Content
author's profile photo Former Member
Former Member

ALV

Dear All

In ALV Report for the column with quan , curr type the total is not coming even aftet setting do_sum = 'X'.

If I click on 'sum' icon at the report output, system gives the following message.

'Desired operation cannot be perfomed on column ...'

Its a internal table refrring to the Quan field data element('ZAVAIL_CT')

and in the fieldscat i have given ls_fcat-rollname = 'ZAVAIL_CT'.

kindly advice

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 06:46 AM

    HI,

    For quan and prec data type i think it is not possible to do tht..Otherwise u can do it like convert to a integer and put in the same internal table after creating a new fiels od int type..

    So tht u can copy all the quan field contents to it and u can sum it and display..

    Use transporting stmt for this kind of situations..SUrely it will work..If it is not converting directly means first u convert it to char and then to int..

    REWARD IF USEFUL

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 06:54 AM

    hi,

    <b>For getting the total and subtotal, field shuld be a non characteric field.</b>

    after that, decalte the data type in field catlog.

    <b>eg:</b>

    <b>it_fieldcat-datatype = 'CURR', "depends on the type of field</b>

    it_fieldcat-do_sum = 'X',

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.