After Export to excel response handler, control does not restore

I am downloading an excel file from a bsp page using the following code. However, after the download the control does not come back to the page from where the download was done. l_xml_xstring variable has the data in xstring format.
  lv_content_type = 'application/vnd.ms-excel'.            
    -> create response
  runtime->server->response->set_header_field( name  = if_http_header_fields=>content_type "'Content-Type'
                                      value = lv_content_type ).
  runtime->server->response->set_header_field( name  = 'content-disposition'
                                      value = 'attachment; filename=output.xls' ).
  IF NOT l_xml_string IS INITIAL.
    runtime->server->response->set_data( l_xml_xstring ).
  ENDIF.
navigation->response_complete( ).
Is there any additional step so that the control comes back?
Thanks

(sorry i really dontknow, because the same works in my case)
alternate approach.
for your case you dont have to generate cached response.
create a bsp page and set its MIME type to application/vnd.ms-excel (in the properties tab of the page)
within the layout , just have a simple html table with data.
now call this page, you will automatically get the save / open option.
Regards
Raja

Similar Messages

  • Exporting to Excel - How to control Column Heading?

    I'm working in SSRS 2012.  I have one tablix in the report body.  The tablix has both Row and Column Groups.
    When rendering in the web browser the report page breaks on a row group.  The Repeat Column Headers property is set to "True" so it shows the column headings from page to page.
    When rendering in Excel, I want one worksheet and not separate worksheets so the page break is disabled via the Page Break->Disabled property expression "=IIf(Globals!RenderFormat.Name="EXCELOPENXML", True, False)".
    This is all good but the Column Headings only show up once at the very top in the excel worksheet. 
    Is it possible to make the Column Headings repeat with each tablix data region as it is rendered vertically down the worksheet?
    OR is there a way from SSRS to set the Excel property "Rows to Repeat at top" to include Column Heading; by default the SSRS Report's header is repeated in Excel, but can the number of rows be changed to include the Column Heading?
    OR is there some other work around?
    Thanks for your help.
    Mark

    Thanks for the reply Wendy.
    You addressed my second question ... "is there a way from SSRS to set the Excel property "Rows to Repeat at top" to include Column Heading; by default the SSRS Report's header is repeated in Excel, but can it be changed to include the Column Heading? 
    Based on your response, the only way to freeze the column header in excel is to freeze or split panes AFTER export to excel.  well booo but I have to accept that I guess.
    My first question is what I really want to do, which is to physically repeat the Column Heading in the excel rendering. I included two pictures demonstrate what I want ...
    1) the standard SSRS report rendered in Excel ... Column Headings are shown once:
    Standard Export to Excel
                           Year
    Region
    Category
    2011
    2012
    2013
            Total
    East
    Sales
    10
    20
    30
    60
    Expenses
    8
    20
    10
    38
    Profit
    2
    0
    20
    22
    West
    Sales
    8
    16
    24
    48
    Expenses
    6
    16
    8
    30
    Profit
    2
    0
    16
    18
    2) what I'd like to see rendered in Excel ... which is to repeat the headers as you scroll down the page
    Desired Export to Excel
                          Year
    Region
    Category
    2011
    2012
    2013
            Total
    East
    Sales
    10
    20
    30
    60
    Expenses
    8
    20
    10
    38
    Profit
    2
    0
    20
    22
                           Year
    Region
    Category
    2011
    2012
    2013
            Total
    West
    Sales
    8
    16
    24
    48
    Expenses
    6
    16
    8
    30
    Profit
    2
    0
    16
    18
    Thanks again for your help,
    Mark

  • Drill Down is not working after exporting to excel

    Hi,
    I have created a drill down report in SSRS . Its working perfect. But when I export it to excel, it is showing only the expanded nodes. But I want the same functionality which gives user to expand or collapse the nodes in Excel as well. Can any one please
    help me with this?

    Hi sil174sss,
    Per my understanding you are experiencing the issue with the excel report which have add the drill down action, after export to excel only the expanded nodes included and the collapsed nodes is not shown, right?
    Generally, if we expand the nodes before export to excel then the excel will display the expanded details row and keep collapsed the details row which haven't expand, but we have the toggle "+","-" on the left of the Excel to help
    control the expand and collapse, when you click the "+" you can expand the collapsed notes to see the details rows.
    I have tested on my local environment with different version of SSRS and can always see the "+","-" as below:
    On the Top left corner you can find the "1","2", this help to control the "Collapse All" and "Expand All".
    If you can't see the "+","-" in the excel, the issue can be caused by the Excel version you are currently using, and also excel have limit support of this, please provide us the Excel version information and the SSRS version. You
    can reference to this similar thread:
    lost collapsing columns when export to excel
    Please try to export other drill down report to excel and check if they work fine, if they did, the issue can be caused by the drill down action you have added in this report is not correctly, if possible, please try to redesign the report.
    Article below about how to add  Expand/Collapse Action to an Item for your reference:
    http://msdn.microsoft.com/en-us/library/dd220405.aspx
    If your problem still exists, please feel free to ask
    Regards
    Vicky Liu

  • I want to create a document/spreadsheet (whichever) that I can send to agencies to type in information for work projects. Any ideas? I have an Excel file but it does not convert over very well and I am having trouble making changes to it.

    Need to create a new spreadsheet or be able to edit the one I have.
    I use this spreadsheet as a work order form for social service agencies. They enter name address etc., and then there are various work projects that they can select as well.
    The one I have from the organization I work with is an excel file but it does not convert over very well. Instead of being 7 pages it is more like 11 or so because things run off the page.  I am trying to delete certain things and move them over but not working out very well so thought it might be easier to start over fresh.
    Is numbers the program to use? If so, any useful tips?

    If the form is going to be used on an iPad, Numbers is the only game in town.
    Numbers is available for Macs only (and iOS devices). Excel is available for PCs and Macs. If you are in a mixed environment of Windows PCs and Macs and you are using this document as an electronic form, Excel is probably the better choice. Otherwise you will need to export to Excel for the PC users then import from Excel to retrieve their data. The import/export process is not perfect. A file that has been exported then reimported will not be the same as the original file. I would assume social services agencies are almost entirely PC-based. 
    If the form is to be printed or turned into a PDF for distribution and use by the social services agencies, either Excel or Numbers would do the job but right now Excel might be the better choice. I would have recommended Numbers '09 but I cannot recommend Numbers 3 for anything thsat requires printing until they give us the layout and printing functionality we used to have (editing in Print View, ability to set margins, etc).
    If everything else in your department/operation/agency is Windows PC and Microsoft Office based, you would be better off sticking with the standard.
    I hope that helps.

  • After mistakenly clicking a link, my safari does not open automatically and unexpected webs open up.

    I am using MacBook Air with Yosemite OS. After mistakenly clicking a link, my safari does not open automatically and unexpected webs open up. Could you please give me suggestions on how to fix this problem? Thank you

    That's a bit vague, but you may have installed the "VSearch" trojan. Remove it as follows.
    Malware is always changing to get around the defenses against it. These instructions are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data before proceeding.
    Step 1
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot," "Trovi," or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    Reset the home page and default search engine in all the browsers, if it was changed.
    Step 2
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "com.vsearch.agent.plist" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /System/Library/Frameworks/VSearch.framework
    ~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    The problem may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
    This trojan is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Then, still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates
    if it's not already checked.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • After installing acrobat my Microsoft office package does not work properly, word will not open and in my email i can't select anything with the mouse

    After installing acrobat my Microsoft office package does not work properly, word will not open and when I want to write an email in my outlook email i can't select anything with the mouse. so copy past en delete are not an option.@

    Are you using any MS Office third party Add-ins? Test:  Remove third party Add-ins other than PDFMaker.  Test to see if the MS Office apps run afterward.
    Did you attempt to repair MS Office?  Test:  Go to Add/Remove Control Panel run Repair.
    Finally, have you tried testing to see if it's PDFMaker?  Test: Use the Add/Remove Control Panel to modify the Acrobat installation to remove PDFMaker.  See if MS Office applications launch and behave correctly?

  • Mission Control does not work!!!!!!!!

    Hi all,
    I have recently Reformatted my mac and made it into 1 partition of 500gb just to run mac os x. I did it with the discs the laptop came with.
    After OSx install was complete, I ran the os x lion downloaded from the app store and installed it too. After completely updating the system with software updates and my other software like ms office, vlc, flash, iLife etc.
    I have found that the mission control does not work sometimes. It allows you to swipe from screen to screen but when when you swipe up.. It hides the top apple bar but nothing else happens.. Everything else is fine so far.
    When I turn my mac on. If it gets stuck the only way to make it work again is to restart. Which is a bit annoying.. Plz tell me if it's a bug or something.
    If that happens to someone else as well?
    Thanks

    Does it work ok if you create a new user?
    To create a user account:
    Choose Apple menu > System Preferences and click Users & Groups. Click the lock icon to unlock it, and type an administrator name and password.
    Click the Add button below the list of accounts, choosing a type of account Standard is fine) from the New Account pop-up menu.

  • After the OS 6 update my speaker does not work. My music plays but no sound comes out. Can someone help me with this issue? I currently have the 4S.

    After the OS 6 update my speaker does not work. Volume control on the side does not adjust the volume either. My music plays but no sound comes out. Can someone help me with this issue? I've tried rebooting my phone but still no sound comes out. I currently have the 4S.

    try to activate and desactivate the airplne switch a couple of time

  • Control does not stay in case structure while using motion VIs

    Hi,
    I have a motion control card PCI 7344 connected to my PC. I am able to control the motor at the required speed till the required position using an encoder. Now I have put my motion control VIs in a case structure in such a way that, if Case1 is selected then the motor should to position P at speed S, if case 2 is selected then the motor should move to position Q at speed S and if case3 is selected then the motor should to position R at speed S. I am selecting cases 1,2,3 etc. by scanning a set of numbers seperated by spaces which look like this,
    1 2 5 7 3
    This number scanning is done using a while loop. Now, when the first number is scanned in the above set of numbers. The number 1 is obtained and the control is switched to case1. But before the motor reaches position P, the control switches to case2 and before completing the execution, the program scans case5 and so on. That means that the control does not stay till the move in the case 1 is completed. I'm sure there must be a way to retain the control to a case and stop the next number to be scanned before the functions in the particular are completely executed. I thought of one method, i.e. by using the move complete VI provided in LabVIEW, but I could not implement it. Please help me out with this.
    Regards,
    Giridhar Rajan
    Automation Engineer,
    Cruiser Controls,
    Mumbai, India

    Hi,
    Our motion controllers allow you to preemptively start a move in the middle of a current move.  For example if you are moving from point A to B and based on some logic, you determine you need to immediately start moving to point C.  A preemptive move allows you to just load the new target position and call start.  You do NOT have to first stop the current move and then start the new move.
    In your case, you want the first move to complete before the second move starts.  There are two ways to handle this.  First, wait for the move to complete via a Wait For Move Complete function/VI call, or use the Check For Move Complete function/VI in a loop.  Second, use Blend Start instead of the regular start.  A Blend Start (if blend factor is set to 0) waits for the first move to complete before the second move starts. 
    Check out the help topics for Start Motion and Blend Motion to learn more.
    Thanks,
    Rodger S.

  • VS2013 Git & Bitbucket, Detailed message: Response status code does not indicate success: 401

    Hi.
    I am a student trying to use VS2013 git & bitbucket in a virtual windows 7 environment and trying to clone a bitbucket repository via team explorer.
    After entering the repository URL I enter credentials for butbucket and receive the following message  Detailed
    message: Response status code does not indicate success: 401
    Source tree can see the repository using the username and password for bitbucket so it must be something I am missing in
    VS. Please can anyone help me with this issue.
    Thanks.
    Martin

    Hi.
    Thank you for the reply. 
    There is only me a single developer. All I want to do is clone an existing repository, it all seems a bit complicated if it does not work from the get go. Having watched a couple of youtube videos it should not be that hard to make it work. Source tree using
    my bitbucket credentials can see my repository.
    This looks to be a authentication problem.
    "If you want to publish it to Bitbucket, make sure the eamil (sic) account for Bitbucket is a team member of your
    Git team project and has the needed permissions to do the publishing."
    Please could some one tell me where I can find this:-
    1. Setup a GIT team project
    2. Relevant permissions

  • The 3 and 4 finger trackpad control does not work

    After the installation of OS 10.7, everything work well since this week. The 3 & 4 finger control does not work now. I reboot my iMac and chek the Preference of the trackpad.
    What I have to do ?

    Adjust the Volume Control in Control Center, or try a RESET.............

  • The application called VirusScan that comes preloaded on the macbook will no longer open, claiming that it is corrupt and that I must reinstall it.  After looking in the app store it does not appear that said application is available for re-downloading.

    The application called VirusScan that comes preloaded on the macbook will no longer open, claiming that it is corrupt and that I must reinstall it.  After looking in the app store it does not appear that said application is available for re-downloading. Is there a special, non-app store place where I am to go for this?
    Also, I installed MacKeeper about two-three months ago and am questioning its performance. Looking for input as to whether or not this application helps or hinders my system.

    I'll back up Csound on the MacKeeper thing.  In fact, I actually wrote the following about it:
    http://www.reedcorner.net/news.php/?p=245
    Remove is ASAP.  Do not use the provided uninstalled, as there are widespread reports of pop-ups advertising MacKeeper on your system after incompletely removing it.  Try this:
    http://applehelpwriter.com/2011/09/21/how-to-uninstall-mackeeper-malware/
    As for VirusScan, Barney is right on the money that it does not come preinstalled on any Mac shipped new from Apple.  However you have gotten it, your best bet is removing it.  See my Mac Malware Guide for more information that will help you understand and avoid Mac malware without relying on anti-virus software.
    http://www.reedcorner.net/guides/macvirus
    (Note that my pages contain links to other pages that promote my services, and this should not be taken as an endorsement of my services by Apple.)

  • After installing Mountain Lion, iMessages and Facetime does not work. When I try to sign-in I get a message that says: The server encountered an error processing registration. Please try again later. Apple care does not know what is the cause. Please help

    After installing Mountain Lion, iMessages and Facetime does not work. When I try to sign-in I get a message that says: The server encountered an error processing registration. Please try again later. After 4 calls to apple and 8 and a half hours on the phone. The apple people does not how to solve the problem. The last thing they told me is that they will send the problem to their engineers and I will hear from them. unfortunately they have not contact me.
    During the phone calls I tried putting the date and time in automatic, changing the username and password, I even tried using somebody elses username and password. Please help, facetime is my tool to telecomute, and it is hurting my job.

    I had the same problem and found the solution here:
    https://discussions.apple.com/thread/3189272

  • After upgrading to mountain lion my calendar does not print in weekly mode anymore

    after upgrading to mountain lion my calendar does not print in weekly mode anymore

    I'm having the same problem with both my Vivotek wired network camera and Panasonic wireless network cameras. At first I thought this was an issue with the video framework in Mountain Lion, but if Firefox is working (I haven't tried it yet), it sounds like it may be an objective-c video library that has been changed. It's possible Firefox is using an objective-c interface that calls an objective-c function that isn't called by Safari or IP Camera Viewer, etc., (possibly a function that is on its way to be deprecated) or Firefox could use it's own library that directly calls the video framework.
    Could be the Mountain Lion objective-c framework has a buffering issue.
    Since this is occuring in both 3rd party software and Apple software, it sounds like it's an Apple issue. 3rd party applications typically utilize the Apple Developer objective-c frameworks to access video frameworks/libraries (for example, MJPEG). Thus, contacting 3rd party developers may not solve the situation (unless they can figure out a temporary bandaid--possibly figuring out the video framework call that Firefox uses and patching their software to do the same (not a simple task), but could still provide more feedback to Apple via their developer status.
    Has anyone attempted to record from their cameras via iMovie or Final Cut Pro X HD? I will try mine later tonight to see if it records the hanging. If it does, then it's looking more and more like Apple's the culprit.
    My suggestion is for everyone to file a bug report via http://www.apple.com/feedback/macosx.html

  • When i connect my ipod shuffle orange light blinks 4 times.. but after that it wont response.. it is not recognized by my computer and by i tunes as well.. after hours of charging it doesnt charge.. help me please????

    helpwhen i connect my ipod shuffle orange light blinks 4 times.. but after that it wont response.. it is not recognized by my computer and by i tunes as well.. after hours of charging it doesnt charge.. help me please????

    Even i have a same problem...

Maybe you are looking for

  • T41 Wireless connection not active

    Hi, I re-installed XP on my T41 and don't see the wirelles connection anymore. I don't see it in the internet connection and can't activate it using the Fn + F5. Could you help me ? Thanks, FP PS : My model number is 2373-S12 Message Edited by frogpr

  • I accidently reset safari 6, how do I go back?

    I accidently reset safari 6.  I want to go back to before the reset.  I have my hard drive back up on a bootable hard drive.  I want to pull the data off that drive and replace where safari cleared my passwords, etc.  Can I do this?  Where do I look

  • Integarte IBM Gentran with SAP PI7.0

    Hi, What are the ways in which IBM Gentran can share information with SAP PI7.0? what are the type of configurations done in PI system to enable this? Thanks!!

  • Caret disappears in RTL mode

    Hi If i set the ComponentOrientation of a JTextField to RIGHT_TO_LEFT and set its horizontal alignment to RTL and start entering some English text or numbers into it the caret suddenly disappears. How can I solve this issue? I have written a Caret my

  • Plan on getting Instagram for Symbian Belle

    Plan on getting Instagram for Symbian Belle