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

PLEASE HELP ME

HI,

I have requirment,

I used fieldcatlog merge concepts with grid display.

so i have to generate default text below or above for requre field(total field)with in the display with out pressing sum push button.

so how can i write code and how to assign with in the merge and grid fm.

urgent with

warm regards

khadar.

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 Jan 08, 2007 at 07:32 AM

    Hi khader,

    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.

    <b>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'.

    ls_fieldcat-do_sum = 'X'.

    endcase.

    modify fieldcat from lsfieldcat.

    endloop.</b>

    endform. " FIELDCATALOG

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 08:03 AM

    if you want only text for sum field

    in your

    ilayout-totals_text = 'Sum of'.

    pass ilayout to the fn module alv list.

    regards

    shiba dutta

    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.