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

spreadsheet containing all 4 alvs using oops

Former Member
0 Likes
588

Hi All,

i need help .

i need to download all 4 alvs in one spreadsheet .

i have created 4 alvs using oops using one container splitted into 4 using splitter.

Each splitter has its own spreadsheet option but user wants one spreadsheet option at the toolbar

through which one can download all the 4 alvs.

please suggest.

3 REPLIES 3
Read only

former_member196651
Contributor
0 Likes
527

Hi Pallavi,

What I believe is, you will be able to download the contants of all the 4 ALVs to a single spreadsheet using the OLE method. Using this, you will be able to download the values of each ALV to separate sheet of a single spreadsheet. Please have a look into these threads:

Downloading internal tables to Excel - ABAP Development - SCN Wiki

abap2xlsx - ABAP Development - SCN Wiki

Regards,

Abijith

Read only

Former Member
0 Likes
527

Hi Pallavi,

I'm just sharing a thought.

In this you cannt use standard excel download option so write logic to download the all ALVs data.

1.  Create one button in PF status

2.  Write excel download  logic in PAI. Use CL_GUI_FRONTEND_SERVICE=>GUI_DOWNLOAD to      download ALVs data (final internal table of each) to different excel.

3. It also possible to download 4 ALVs data into different worksheet of same excel using    OLE automation

Please search in SCN regarding OLE automation for more details

One of the thread i found in SCN

Thanks & Regards,

Arun

Read only

Former Member
0 Likes
527

Hi Pallavi,

Your requirement can be fulfilled by moving data to 4 sheets in the Excel workbook.

This can be done using the OLE method or the XML method.

My view is you can go for the XML method as this is faster than the OLE method when bulk data is downloaded and also you have additional options of using it in the background if required along with the formatting options while downloading to Excel which attracts the users .

Regards,

AyyamPerumal