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

alv display

CLEAR wa_fieldcat .

wa_fieldcat-fieldname = text-028. wa_fieldcat-seltext_m = text-029.

wa_fieldcat-outputlen = text-030.

APPEND wa_fieldcat TO t_fieldcat.

CLEAR wa_fieldcat .

wa_fieldcat-fieldname = text-031.

wa_fieldcat-seltext_m = text-032.

wa_fieldcat-outputlen = text-033.

APPEND wa_fieldcat TO t_fieldcat.

where text-028 is dmbtr which i have declared as bsik-dmbtr

and text-029 is wrbtr which has been declared as bsik-wrbtr.

now when i want to do summation on these fileds it gives me a run time error

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on May 02, 2008 at 06:42 AM


    Following code will explain how to do summation of fields.

    FORM fill_fields USING    value(tabname) TYPE slis_tabname
                              value(fieldname) TYPE slis_fieldname
                              value(seltext_m) LIKE dd03p-scrtext_m
                              value(do_sum) TYPE c.
      t_fieldcat-tabname = tabname.
      t_fieldcat-fieldname = fieldname.
      t_fieldcat-seltext_m  = seltext_m.
      IF do_sum = 'X'.
        t_fieldcat-datatype = 'CURR'.
      t_fieldcat-do_sum = do_sum.
      APPEND t_fieldcat TO it_fieldcat.
      CLEAR t_fieldcat.
    ENDFORM.                    " fill_fields


    Sankar M

    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.