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

Reg: passing totals /subtotals of a ALV to a smartform

I have a editable ALV report which has a button to call a smartform . Once the user edits some fields I need to pass the refreshed total to the smartform. I want to know - in what structure the totals/subtotals of the ALV report are stored.

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 07:14 PM

    As of I know the totals and sub-totals will not be stored anywhere, they are dynamically calculated.

    You need to do calculations and send the details to smartform.

    Regds

    Manohar

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 01, 2006 at 10:35 PM

    Read the documentation for method get_subtotals of CL_GUI_ALV_GRID. I haven't tried it but it might be helpful.

    Regards, Gabriel

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 10:43 PM

    Banu,

    Even if you figure out how to get the subtotals / totals from a ALV, I would still suggest you to use the features of SMART Forms to calculate the same again in the form.

    http://help.sap.com/saphelp_nw04/helpdata/en/55/610e2db57911d4b62c006094192fe3/content.htm

    So, that way if your form is triggered even without doing the subtotalling done by the user you are on the safer side as the form will still display what you have designed it for.

    Regards,

    Ravi

    Note :Please mark all the helpful answers

    Add comment
    10|10000 characters needed characters exceeded