Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV TEXT problem

Former Member
0 Likes
586

Hi Abaper ,

In my alv repoer i am doing sum base on the bkpf-month to the field

bseg-DMBTR .

my problem is i want text when summing in every month .

like

Amount in month June is

how can i do ? if any one can face same problem help me .

Regards

Ajay pandey

5 REPLIES 5
Read only

Former Member
0 Likes
547

HI,

u want to display sub-totals right!!

try this..

wa_layout-subtotals_text = 'Amount in month June is:'.

hope this helps,

do reward if it helps,

priya.

Read only

0 Likes
547

remember that the text will appear in the first output column of the ALV. If the first output column is shorter than your text it will NOT appear. If it is shorter then make sure you set the outputlen in the fieldcat for the first column to be long enough(24?). ACtually, you have to allow 2 more than the length of the text as ALV precedes your text with '* '.

Read only

Former Member
0 Likes
547

HI

GOOD

where your r printing the amount,declare a variable with "Amount in month June is " and put it where you r printing the sum.

Thanks

Mrutyun^

Read only

Former Member
0 Likes
547

hi Ajay,

Check this out

Regards,

santosh

Read only

Former Member
0 Likes
547

Hi All,

I want the text display on every subtotal and grand total as well .I am putting in layout but its not display