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

ALV list display

hi,

My program is ALV interactive reporting. I am a problem in o/p list display. There is an amount field in the o/p display and i am passing this through fieldcatalog along with cfieldname and ctabname( reference currency fieldname and tablename). In the o/p list display when i am trying to sum-up the amount field its is showing multiple totals this is because it is summing up according to the currency key ( for example for all USD currency it is adding up all the amont related to USD and showing one summation for IN currency it is showing another total) .

Is there any way so that i can have only one total.

define add_field.

wa_fieldcat-fieldname = &1.

wa_fieldcat-col_pos = &2.

wa_fieldcat-ddictxt = &3.

wa_fieldcat-seltext_l = &3.

wa_fieldcat-seltext_m = &3.

wa_fieldcat-seltext_s = &3.

wa_fieldcat-reptext_ddic = &3.

wa_fieldcat-ddictxt = 'M'.

wa_fieldcat-ref_fieldname = &4.

wa_fieldcat-ref_tabname = &5.

wa_fieldcat-cfieldname = &6.

wa_fieldcat-ctabname = &7.

append wa_fieldcat to i_fieldcat.

add 1 to &2.

end-of-definition.

add_field 'HSL' l_pos 'Amt. Co. Cd. Currency'(022) 'HSL01' 'ZUPI5T'

'RTCUR' 'ZUPI5T'.

plz help me.

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 10, 2008 at 06:27 AM

    could u send u r code...

    Srinivas M

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 06:28 AM

    Hi Ramya,

    i will send a sample code 4 ur probelm check it once..

    *SubTotal on the Field NETWR

    wa_fieldcat-col_pos = '3'. "Column Position

    wa_fieldcat-tabname = 'IT_SALESORDER'. "Internal Table

    wa_fieldcat-fieldname = 'NETWR'. "Field Name

    wa_fieldcat-do_sum = 'X'. "Sum

    wa_fieldcat-seltext_m = 'Net Value'. "Display Text In Screen

    APPEND wa_fieldcat TO gt_fieldcat.

    Award points if helpful.

    Kiran Kumar.G.A

    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.