Application Development 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: 

downlod excel from alv selection screen through radion button and excel is store in mime repository.

kiranpatil20
Explorer
0 Kudos

i have one requirment in wich user want one button on selection screen of alv report to downlod

excel file which is stored in mime repository ,please help me to out.

3 REPLIES 3

Sandra_Rossi
Active Contributor

Break it down into two separate questions:

  • Download ALV contents to Excel file in memory? (by the way, in which Excel format?)
  • Upload a file from memory to MIME repository?

You have answers for both questions in the forum.

michael_piesche
Active Contributor
0 Kudos

kiran PATIL

What is the exact problem you are dealing with? You mention several keywords that lead me to believe you might have several issues:

  • creating an executable program (SE38) with a selection screen (SELECTION-SCREEN)
  • displaying radio buttons (PARAMETER RADIOBUTTON) and/or action buttons (SELECTION-SCREEN PUSHBUTTON) on a selection screen
  • access an excel file stored in the mime repository (CLASS INTERFACE CL_MIME_REPOSITORY_API) based on an url (INTERFACE Method IF_MR_API=>GET_IO_FOR_URL)
    see also https://answers.sap.com/questions/12217581/reg-displaying-an-excel-file-stored-as-mime-object.html for an implementation example
  • start and populate an ALV (see SAP Example Report SALV_DEMO_TABLE_LAYOUT)
  • download a file on a local machine (CLASS INTERFACE Method CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD, but ALV already supports the download of the table data as an excel file)

michael_piesche
Active Contributor
0 Kudos

kiranpatil20, please follow up on your open question.

  • comment answers or your question if there are still open issues.
  • otherwise mark an answer as accepted if it helped you solve your problem
  • or post an answer of yourself and accept it if you found another useful solution yourself
  • or redirect your question to another question that is related and was useful to solve your problem
  • in the end, close your question