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 Problem

Former Member
0 Likes
1,150

Moderator message: please use a more meaningful subject in future

Hi Experts,

I have one query in ALV report. In ALV output I am not able to see the option for SUM & subtotal icons are not displayed.

I wanted to display both icons in my ALV output. Any suggestion how I can achieve this requirment.

Also, icons for Microsoft excel & word processing is not working.

Please suggest me.

Regards,

Poonam

Edited by: Matt on Dec 19, 2008 6:55 AM

11 REPLIES 11
Read only

Former Member
0 Likes
1,121

hi,

can i have your code to returen for ALV.

Regards,

Arjun.

Read only

Former Member
0 Likes
1,121

For Sum/Subtotal icon,atleast one summable field should be there in your internal table(Which you are showing in output).I guess all field are type CHAR in your internal table.Check it.

Read only

Former Member
0 Likes
1,121

Hi

Are you usin OO method for ALV?

if you are using then you need to write the code for them

Regards

Shiva

Read only

Former Member
0 Likes
1,121

hi,

You need to create 'Layout' for displaying the Tool bar.

If you are Creating ALV using OOPS method , then declare a work area like this,

Data : ty_lay1 TYPE lvc_s_layo.

ty_lay1-no_toolbar = ''.

Then pass this work area to method 'set_table_for_first_display'

CALL METHOD cl_alv->set_table_for_first_display

EXPORTING

is_layout = ty_lay1

CHANGING

it_outtab = t_output[]

it_fieldcatalog = t_fieldcat.

However If you are using FM REUSE_ALV_LIST_DISPLAY or FM REUSE_ALV_GRID_DISPLAY

then you have to declare above work area like this,

Data : ty_lay1 TYPE SLIS_LAYOUT_ALV.

ty_lay1-no_toolbar = ''.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

is_layout = ty_lay1

CHANGING

it_outtab = t_output[] " Internal table which holds data

it_fieldcatalog = t_fieldcat. " Field catlog

Read only

GauthamV
Active Contributor
0 Likes
1,121

hi,

check this.

[https://forums.sdn.sap.com/click.jspa?searchID=20136253&messageID=5721304]

Read only

Former Member
0 Likes
1,121

Hi,

I have developed ALV using normal FM's. Could you pls suggest me how I can display the icons for Sum & Subtotal options.

Also I wanted to use the option Microsoft work & Microsoft excel icon should work. How I can achieve this requirement.

Read only

Former Member
Read only

Former Member
0 Likes
1,121

Hi Poonam,

Do you have any numeric field in the output of ALV. If not, then i beleve SAP wont enable the Sum & sub total buttons .

Best regards,

Prashant

Read only

0 Likes
1,121

Hi Prashant,

Yes, I have numeric field in my output table. Please tell me how I can go ahead.

Read only

matt
Active Contributor
0 Likes
1,121

Please use a more meaningful subject in future

Read only

Former Member
0 Likes
1,121

This is a issue related to Authorizations.

Try checking your ALV report output for other user having all authorizations.

Also consult Basis guy.

I faced the same issue.