How Calculate TOTALS,SUBTOTALS in ALV Reporting?

Answer Posted / your friend

subtot(1) type c,
subtot_level(2) type n,

Same way we use for Currency conversion.

Means if you want currency in 3 decimal or country
specific, we can use slis structure fields
currency(5) type c,
cfieldname type slis_fieldname,
ctabname type slis_tabname, " and table

For quantity conversion:
quantity(3) type c,
qfieldname type slis_fieldname,
qtabname type slis_tabname, " and table
For justification & leading zeros
just(1) type c,
lzero(1) type c, " leading zero

Please check out SLIS type ... You can find many options.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between ABAP and HR ABAP

3127


How many main windows are allowed in sapscript?

664


What are conditional chain statement?

832


Give an example of interface from your project explaining why you used it?

989


Can we make use of flow logic control key words in abap/4 and vice-versa?

692






How we can retrieve data using secondary index. Explain with simple example?

756


What are the different types of views and their definition?

699


What is a 'z' report?

752


Can you assign a matchcode object to a parameter? If so how?

689


What is the difference between getting and get late?

671


What are the data types of the external layer? : abap data dictionary

892


wat are the process that can be executed & tracked in a workflow?

1757


How do you document abap/4 programs? Do you use program documentation menu option?

798


what is sap scriptview ?

1808


How table control cn be generated using bdc? : abap bdc

658