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

finding totals in ALV using merge

hi,

i need some information on ALVS regarding the totals using MERGE without using field catalog .

if possible can u please send some related programs.

thanks & regards

praveen

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 06:39 AM

    Hi Praveen,

    data: iline type table of zstock with header line.

    data: gt_fieldcat type slis_t_fieldcat_alv.

    perform setup-fieldcatalog using gt_fieldcat[].

    form setup-fieldcatalog using fieldcat type slist_fieldcat_alv.

    data: ls_fieldcat type slis_fieldcat_alv.

    call function 'REUSE_ALV_FIELDCATALOG_MERGE'

    exporting

    i_internal_tabname = 'ILINE'

    i_structure_name = 'ZSTOCK'

    changing

    ct_fieldcat = _fieldcat.

    loop at fieldcat into lsfieldcat.

    case ls_fieldcat-fieldname.

    when 'DEPT'.

    ls_fieldcat-no_out = 'X'.

    when 'DESCR'.

    ls_fieldcat-no_out = 'X'.

    when 'GOOD_PRD'.

    <b> ls_fieldcat-do_sum = 'X'.</b>

    endcase.

    modify fieldcat from lsfieldcat.

    endloop.

    endform. " FIELDCATALOG

    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.