CL_BSP_UTILITY DOWNLOAD with delta handling

Hi Experts,
I use the method cl_bsp_utility=>download in the do_handle_event of a subcontroller.
For the main controller delta handling is swiched on. (In this download method the navigation->complete is executed)
After the do_handle_event of the subcontroller the method CL_BSP_CTRL_ADAPTER->do_request is executed. In this method some javascript coding will be append to my response data:
parent.bspDH_newDelta("864D5C4A1F20A60FE1000000AC13AA25");
parent.bspDH_newDeltaLoaded();
It cones from the following statement:
Tail part of delta handling
IF delta_handling IS NOT INITIAL.
   mdelta_handler->PAGE_END(  ).
ENDIF.
The outcome is that it's not possible to open my downloaded files. Only txt files can be opened but with the javasript code in it...
Any ideas? or is it in general not possible to use the download function together with delta handling?
Thanks, Markus
Edited by: Markus Doell on Jul 14, 2009 1:42 PM

Hi,
Try the below code in place of the cl_bsp_utility=>download.
DATA:  L_APP_TYPE  TYPE STRING,
         L_FILENAME  TYPE STRING,
         L_XSTRING   TYPE XSTRING,    "needed for HTTP response
         L_XLEN       TYPE I.
* Setting Content Type
  MOVE 'application/msexcel' TO L_APP_TYPE.
  MOVE 'attachment; filename=webforms.xls' TO L_FILENAME.
  CLEAR L_XSTRING.
  L_XSTRING = V_XSTRING. " Here you can directly pass your XSTRING
* Fill HTTP request
  RESPONSE->SET_HEADER_FIELD( NAME  = 'content-type'
                              VALUE = L_APP_TYPE ).
  RESPONSE->DELETE_HEADER_FIELD(
                      NAME = IF_HTTP_HEADER_FIELDS=>CACHE_CONTROL ).
  RESPONSE->DELETE_HEADER_FIELD(
                      NAME = IF_HTTP_HEADER_FIELDS=>EXPIRES ).
  RESPONSE->DELETE_HEADER_FIELD(
                      NAME = IF_HTTP_HEADER_FIELDS=>PRAGMA ).
  RESPONSE->SET_HEADER_FIELD(
                       NAME  = 'content-disposition'
                       VALUE = L_FILENAME ).
* finally display XLS format in Browser
  L_XLEN = XSTRLEN( L_XSTRING ).
  RESPONSE->SET_DATA( DATA   = L_XSTRING
                      LENGTH = L_XLEN ).
  NAVIGATION->RESPONSE_COMPLETE( ).
I have used it one of my program and it worked.
Thanks,
Sreekanth

Similar Messages

  • Delta handling

    Hi,
        How do i handle delta records in BI7.0?

    hi ravi,
    go thru the following link....
    Delta Mechanism?
    Help with Delta Init and then Delta (how to)
    Which delta mechanism?
    ajay
    Edited by: Ajay Chauhan on Dec 21, 2007 11:53 PM
    Edited by: Ajay Chauhan on Dec 21, 2007 11:54 PM

  • Delta Handling of "How-to... Load a File into"

    Hello,
    i have to load several files into an transactional InfoCube. The structure of the files is always the same.
    The Problem is it can occur that i have to upload the files serveral times with different data. Following changes within a file can appear.
    1. exactly same data again
    2. same data again, but the value of a key figure has been changed
    3. same data again, but the value of a characteristic has been changed
    4. file contains more/less data records than the original file
    How does the Cube handle these different versions of data?
    If the upload by BPS function allows no delta handling what kind of conventional method (Upload to ODS or Cube) do to recommend for flat file upload?
    Thanks for advise.

    Hi Sam
    follow the link
    How-to... Load a File into SAP NetWeaver BI Integrated Planning
    Regards,
    Gregor

  • Using Transformations with Delta enabled Datasources

    Hi,
    I have a delta enables datasource which uses incremental update to my infoCube.
    In order to populate some fields in the cube I used a transformation routine for a couple of these fields to do some lookups from some tables.
    The problem that I am encountering is that when the delta update runs its only updates the directly assigned fields it does not also update the routine delivered fields.
    Is there a way to get this to work or is it impossible?
    Thanks

    HI,
    The routines work fine for full load as the data is replaced with new data each time.
    What I need to happen is I am using a SAP standard content datasource with delta enabled on the datasource and when loading from datasource to Cube all the 0 fields are updating correctly but my Z fields which i update with routines do not seem to be replaced.
    Please advise of anyway to get this to work
    Thanks

  • I will give my laptop to someone else, how do I unlink my apple id? Do I need to remove the apps I downloaded with my id?

    I will give my laptop to someone else, how do I unlink my apple id? Is it just the app store unlink? Do I need to remove the apps I downloaded with my id? Will they get removed when I unlink my apple id?
    Are there any other procedures I need to take into account?
    Thanks

    You need to remove all software that you acquired from the Mac App Store, including newer versions of OS X. These are all registered to you and encoded with your Apple ID in the licensed copy. You cannot legally pass any of the software to the new owner, which is why Apple states to erase the Mac and return it to the version of OS X that shipped from the factory on the Mac. You must also remove any older Apple software that you installed by DVD or pass the DVD to the new owner with the Mac.

  • HT203433 I downloaded apps with one appleid on my iphone.  When my account was disabled I set up a new appleid & account.  Now I cannot update apps on my iphone that were downloaded with original appleid when I login with my new apple id.  What do I need

    I downloaded apps with one appleid on my iphone.  When my account was disabled I set up a new appleid & account.  Now I cannot update apps on my iphone that were downloaded with original appleid when I login with my new apple id.  What do I need to do?

    You can write into support and ask for help reenabling the account through this link here:
    http://www.apple.com/support/itunes/contact/
    Since the applications were purchased on the older account, you will need to log into that account to update them. The newer account will not recognize the purchases because they are not a part of the purchase history for the specific account.

  • Problem with event handling

    Hello all,
    I have a problem with event handling. I have two buttons in my GUI application with the same name.They are instance variables of two different objects of the same class and are put together in the one GUI.And their actionlisteners are registered with the same GUI. How can I differentiate between these two buttons?
    To be more eloborate here is a basic definition of my classes
    class SystemPanel{
             SystemPanel(FTP ftp){ app = ftp};
             FTP app;
             private JButton b = new JButton("ChgDir");
            b.addActionListener(app);
    class FTP extends JFrame implements ActionListener{
               SystemPanel rem = new SystemPanel(this);
               SystemPanel loc = new SystemPanel(this);
               FTP(){
                       add(rem);
                       add(loc);
                       pack();
                       show();
           void actionPerformed(ActionEvent evt){
            /*HOW WILL I BE ABLE TO KNOW WHICH BUTTON WAS PRESSED AS THEY
               BOTH HAVE SAME ID AND getSouce() ?
               In this case..it if was from rem or loc ?
    }  It would be really helpful if anyone could help me in this regard..
    Thanks
    Hari Vigensh

    Hi levi,
    Thankx..
    I solved the problem ..using same concept but in a different way..
    One thing i wanted to make clear is that the two buttons are in the SAME CLASS and i am forming 2 different objects of the SAME class and then putting them in a GUI.THERE IS NO b and C. there is just two instances of b which belong to the SAME CLASS..
    So the code
    private JButton b = new JButton("ChgDir");
    b.setActionCommand ("1");
    wont work as both the instances would have the label "ChgDir" and have setActionCommand set to 1!!!!
    Actually I have an array of buttons..So I solved the prob by writting a function caled setActionCmdRemote that would just set the action commands of one object of the class differently ..here is the code
    public void setActionCommandsRemote()
         for(int i = 0 ; i <cmdButtons.length ; i++)
         cmdButtons.setActionCommand((cmdButtons[i].getText())+"Rem");
    This just adds "rem" to the existing Actioncommand and i check it as folows in my actionperformed method
         if(button.getActionCommand().equals("DeleteRem") )          
                        deleteFileRemote();
          else if(button.getActionCommand().equals("Delete") )
                     deleteFileLocal();Anyway thanx a milion for your help..this was my first posting and I was glad to get a prompt reply!!!

  • I have a an iMac 27" and am trying to import some videos of a friends wedding into iMovie however one of the movies won't import. It doesn't say why or give any error message or codes. All of the other movies on the card download with out a problem.

    I have an iMac 27" and am trying to import some videos of a friends wedding into iMovie however one of the movies won't import. It doesn't say why or give any error message or codes.
    All of the other movies on the card download with out a problem. The movie in question is not 'corrupt' as you can watch it in iMovie direct from the SD card but as soon as you try to import it, it  just says 'error'. iIve tried moving the file to an external drive ( and other variations on this theme) then importing but have had no luck.
    Can anyone please help me.

    The mystery remains....
    Thanks for the pointers. The file type is .mts (a proprietry sony one).
    I have now found some video converter software (Wondershare and iSkysoft) at a cost. Either will convert this file for me into .mp4. This I can then import into iMovie without any problems. I've checked this on the trial versions and it worked well but without paying am left with a giant watermark in the video
    The mystery (which I still havent solved) is why did 20 other .mts files import fine and then this one not?
    If you could point me in the direction of some free .mts converter software that would be the cherry on the cake.
    Thanks

  • How to make a jar file downloadable with IE

    hello,
    I just bought a website:
    http://www.frozenfountain.net/
    and I put a jar file on it called Logo.jar
    Using Mozilla, the jar file downloads as expected, but with Internet Explorer, it tries to download it as .zip file.
    How do I get it to download as a .jar file with IE?
    thanks

    Just post a link to the Jar. Mozilla will download
    it as a jar. Windows will download it as a zip.
    Only one link. No problem, really. ;-)There is a problem. People who arent as good with computers as you are won't know how to run the jar file after downloading with IE.
    At school, I told someone to download the file, which they did with IE. It downloaded to desktop as a zip. They extracted and were left with a bunch of .class files.
    On a sidenote, how do you draw text with a gradient?

  • How do I turn off "your recent download with your apple id" emails? Annoyingly often and they fill up my inbox.

    How do I turn off "your recent download with your apple id" emails? Annoyingly often and they fill up my inbox.  Is there a way to unsubscribe from these?

    It is in Settings>iTunes & App Stores to change automatic downloads. But it isn't your device that needs to be changed if you are the one that made the download. He needs to turn off the setting for automatic downloads on his phone. I'm guessing here, but you are all sharing the same Apple ID?

  • I want to update my IWorks which I have downloaded with another Apple ID in this same computer. What I have to do?

    I want to update my IWorks which I have downloaded with another Apple ID in this same computer. What I have to do?

    Update it from the original Apple ID or delete and redownload the applications when signed into another one; the second option may require repurchasing them.
    (111224)

  • Cannot update apps downloaded with old Apple ID after changing ID

    My wife and I used to share my Apple ID on all mobile devices (iPhone 4S, iPad 2) and Mac so we could share contacts, calendar, purchases (apps & music).  My Apple ID was an inactive email address.  When I bought my iPhone 6 I decided to change Apple ID to a current email address and she created her own Apple ID for her iPhone 4S and iPad 2.  Figured we could still share data through Family Share.  Changed Apple IDs on all devices to the current ones.
    Now, she cannot update apps on her devices as she gets message that her apps were downloaded with another Apple ID.  It asks for password for that Apple ID (my old ID), and the passwords for my previous Apple ID and my new password don't work.  I tried deleting the apps off her devices and then installing again from the Mac we backup to, but that did not work.
    Also, is there a way to share contacts and calendar through Family Share or some other way.  We don't seem to be sharing any longer since making all these changes.  Why did I make the changes?  Because using the same Apple ID on all devices was causing me to get her text messages and vice versa, and other strange things after updating to iOS 8.
    I have iPhone 6, she has 4S and iPad 2.  Have a MacBook Pro circa mid-2010 running Yosemite, version 10.10.2.  Mobile devices run iOS 8.1.3
    obdoc54

    It is a good thing you made 2 separate Apple ID.
    I tried deleting the apps off her devices and then installing again from the Mac we backup to, but that did not work
    It's normal it didn't work because you are reinstalling apps (that are on the Mac) that were purchased/obtained from your Apple ID. She needs to reinstall them through the App Store on her device, using her Apple ID.
    share contacts and calendar through Family Share or some other way
    Calendars can be shared through iCloud (A)(without Family Sharing), or using the following method (B) used for the contacts.
    Contacts can neither be shared through iCloud or through Family Sharing.
    To get them synced: Get all of your wife's contact on your iOS device. (you can send them to your iOS device through iMessage)
    then go to your wife's iOS device: Settings --> Mail, Contacts, Calendar.
    From there, disable her iCloud contacts, then add YOUR iCloud account, and select only contacts (and calendar if you want the method (B)).
    This should answer all your questions.
    Cheers

  • Is there a way to "Save As" when downloading with Firefox?

    I want to be able to "Save As" when downloading with Firefox. The only options I am given is to Save or Open. All the previous questions I have seen deal with being able to save to a certain location, and that I can easily set in Firefox. What I want is to be able to change the filename, so if it goes to download "abc123.pdf" I can rename it to "123abc.pdf" when it downloads.
    We use a web based application that I have to pull down pdf charts multiple times every day, but the problem is when you go to download a chart, every one is the same name. I can't just save it to the default directory since it will overwrite the previous one or just append a (1) or something. What I have to do now is use the Open option and have a pdf reader open it, then save from the pdf reader giving it a unique filename, which is extra steps that I do not have to do when using IE, Opera, etc. since I can do a Save As from those and rename it before it downloads.

    See:
    *Options > General : Downloads : "Always ask me where to save every file"
    *https://support.mozilla.org/kb/Downloads+window

  • I have 2 apple ID one for Egypt and other for USA , now I try to update the software but I get a message said that this software download with other ID, then I logout and sign with second ID but i got the same message again ... Now I can not sign in more

    I have 2 apple ID one for Egypt and other for USA , now I try to update the software but I get a message said that this software download with other ID, then I logout and sign with second ID but i got the same message again ... Now I can not sign in more
    Any solution ?
    I'm using iOS 6.1.2 IPad 3
    Regards

    I have also noticed the same "problem".  I do not fully understand the impact of using the same ID on multiple computers and devices if I want to keep them all in sync.

  • IS THERE A WAY OF INCREASING THE VOLUME ON A USB DOWNLOADED WITH I TUNES? WHEN I PLAY MUSIC FROM IT IN MY BMW IT IS NOT VERY LOUD.

    IS THERE A WAY OF INCREASING THE VOLUME ON A THUMB DRIVE DOWNLOADED WITH ITUNES MUSIC? WHEN PLAYBACK ON BMW RADIO, EVEN WITH THE RADIO VOLUME AT MAX, MUSIC IS NOT VERY LOUD.

    Can't answer the query, since I don't use thumb drives and my volume's very responsive. That said, please don't post using ALL CAPS. That's considered shouting and is very disconcerting.

Maybe you are looking for

  • Change form in report painter KE80

    Hi, Easy question maybe but I can't find the solution... How is that possible to change the report of the form I have created in KE85 ? I have used a standard report and I would like to use another one for my form. Thanks in advance for your help, Ro

  • Netbeans applet

    the applet i've created isnt working in console mode.... giving error dat-"package org.jdesktop.layout" does not exist... can ne1 help me ? is it becoz dat this class is not included in java folder in progam files ?

  • HT204406 itunes match in itunes 11 gets error 4002

    While attempting to upload my library for the first time to Apple Cloud using iTunes (v11)  match from Win 7 PC, I get an error 4002 after looking at the screen for about 20 minutes stating: Step 1: iTunes Match Sending your information to Apple.....

  • Making Word Default To Open RTF files

    Is there any way to make Word the default opener to open rtf files instead of text edit? Thanks!

  • "Unkown error" when trying to sign into itunes store

    When I try to sign into the itunes store it says "unkown error" when I try to sign in. If I try again it prompts me to reset my password, which I did twice because I thought maybe I was just an idiot and forgot my password 3x, but that's not it. I ca