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

Former Member
0 Likes
581

Hi,

I have a ALV report. I'm trying to use the Excel export std option in ALV to export ALV report to EXCEL spreadsheet.But when i click on the EXCEL icon ,i see no datas in the excel sheet.

Pls help what could be the problem

Ram

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
542

Hello Prabha,

Are U using the Objects for displaying the ALV.If So,

U have to do like this.

DATa: G_R_EXCL TYPE UI_FUNCTIONS,

APPEND CL_GUI_ALV_GRID=>MC_FC_GRAPH TO G_R_EXCL.

APPEND CL_GUI_ALV_GRID=>MC_FC_INFO TO G_R_EXCL.

APPEND CL_GUI_ALV_GRID=>MC_FC_PRINT_BACK TO G_R_EXCL.

CALL METHOD G_R_GRID->SET_TABLE_FOR_FIRST_DISPLAY

EXPORTING

I_BUFFER_ACTIVE = G_C_SET

IS_VARIANT = G_R_VARIANT

IS_LAYOUT = G_R_LAYO

IT_TOOLBAR_EXCLUDING = G_R_EXCL

I_SAVE = G_C_SET

I_DEFAULT = G_C_SET

CHANGING

IT_OUTTAB = G_T_HEADER

IT_FIELDCATALOG = G_T_FIELDCAT_C.

Don't forget to award points.

Regards,

Vasanth

4 REPLIES 4
Read only

Former Member
0 Likes
543

Hello Prabha,

Are U using the Objects for displaying the ALV.If So,

U have to do like this.

DATa: G_R_EXCL TYPE UI_FUNCTIONS,

APPEND CL_GUI_ALV_GRID=>MC_FC_GRAPH TO G_R_EXCL.

APPEND CL_GUI_ALV_GRID=>MC_FC_INFO TO G_R_EXCL.

APPEND CL_GUI_ALV_GRID=>MC_FC_PRINT_BACK TO G_R_EXCL.

CALL METHOD G_R_GRID->SET_TABLE_FOR_FIRST_DISPLAY

EXPORTING

I_BUFFER_ACTIVE = G_C_SET

IS_VARIANT = G_R_VARIANT

IS_LAYOUT = G_R_LAYO

IT_TOOLBAR_EXCLUDING = G_R_EXCL

I_SAVE = G_C_SET

I_DEFAULT = G_C_SET

CHANGING

IT_OUTTAB = G_T_HEADER

IT_FIELDCATALOG = G_T_FIELDCAT_C.

Don't forget to award points.

Regards,

Vasanth

Read only

0 Likes
542

Hi Vasanth,

Thanks fo rth ereply.

Where to use/call this method?

Pls help in detail

Ram

Read only

Former Member
0 Likes
542

Hi Prabha,

Don't use that button, use only this...

try this way..

from Local file option(CtrlSHFTF9) ->Spread Sheet (Radiobutton) and Ok give the file path and enter.

Now see.

Regards

vijay

Read only

Former Member
0 Likes
542

Hi,

Open your Excel and go to menu: Tools -> Macros -> and mark in the second label both checkboxes.

Hope it helps.

Mireia