Skip to Content

Event Handler for Download to Excel Button

Hi Experts,

I have been trying to debug and find some clue about the Export to Spreadsheet Button present normally in a table view. My requirement is to modify the records before they are downloaded to an excel sheet.

Any quick clues will be highly appreciated.



Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 13, 2011 at 04:43 PM

    Hi Vishal,

    You can try to see the class behind the tag that builds the table to figure out how the download to excel is being done.



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2011 at 08:44 PM

    Hi Vishal,

    I guess you can put your code in one of these methods, GET_TABLE_COMPONENTS or GET_PAGE_CONTEXT of IMPL class.

    Put a break point in IF_BSP_WD_MODEL_TV_EXCEL_EXPRT~GET_CSV, its there in CNXX class of your table view context node and then see call stack.

    Hope that helps.



    Add a comment
    10|10000 characters needed characters exceeded

    • Hi, Vishal.

      One more input regarding your question (may be it will be usefull) is that the service UIF_EXPORT_TAB (in tx. SICF) is responsible for this button. Its handler class CL_CHTMLB_CONFIG_TAB_EXCEL_EXP handles requests from this button. And also it works with template (method gDo) and actual data (method gDa) from the table. It calls mentioned GET_TABLE_COMPONENTS, GET_TEMPLATE_XML, GET_DATA_XML, GET_CSB methods from your table context node class.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.