How to not create File without any payload?

Hi XI Experts,
I have the following integration scenario:
1.  One input file
2.  One or more output files (up to four files)
3.  At any given time, I could have one or more files (up to four files) filled with data in the payload.
Question - there are times where only one file will have data in the payload and three files without any data in the payload (by design).  In this case, I do NOT want to create files that does not have any data in the payload.  Is there any way I can do this without BPM?  The output files that does not have any data in the payload is not going to be 0 byte as it will still have blank XML tags.
Again, we do not want to use BPM if there is any way around it.  We are running XI 2004s SP7 (equivalent to 2004 SP16).  Any help would be greatly appreciate it.
Here is the content of the ouput file WITHOUT any data in the payload:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:entity-data xmlns:ns0="urn:dow-com:xi:data:vendavo:10">
</ns0:entity-data>
Here is the content of the ouput file WITH data in the payload:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:entity-data xmlns:ns0="urn:dow-com:xi:data:vendavo:10">
    <com.Dow.customer.DCorporate>
        <VName>DCorporate</VName>
        <VLabel>013-ZZ</VLabel>
    </com.Dow.customer.DCorporate>
</ns0:entity-data>
Thanks,
Jay

Hi Jay..,
You can achieve this without BPM too.Your input is one file,by doing the Multi Mapping (1: N) you can acheive this.If there is no payload for any of the four files means simply put your four message types occurences as 0..Unbounded.
Check / Put an condition on your input file payload which field is determining whether data is containg for all or for some of the files.
So, if your input file containg the data for four files, those files are would be populated otherwise the files are not getting populated.I guess there is no use to create the blank XML structure.
Let me know your feedback.., It would be work for your case ..
Cheers
Tiger woods

Similar Messages

  • How can I rename files without creating a duplicate?

    How can I rename files without creating a duplicate?  And secondly, for some reason I can no longer save pdf files [i.e., bank statements] where I want - the Save As function is gone?

    In many new cases, Save As is now called Duplicate in ML. It uses the same command-S keystroke. Older apps still have Save As. When you do a Duplicate operation, you will create an UNTITLED document. You have to save that duplicated document to complete the process.
    So in 10.6.x, you would do ...
    * Save As ...
    * Give the file a new name + Chose the location for the file
    * Click the Save button
    Now in 10.8.x, you do ...
    * Duplicate ...
    * Save ...
    * Give the file a name + Chose the location for the file
    * Click the Save button
    As baltwo mentioned, you have to search the Preferences of your browser to determine what is has set for the default Download folder.
    JJW

  • Is it possible to convert Java to EXE and run this EXE file without any JRE

    hello friends
    I have GCC/GCJ for windows but dont know how to work with it... it creates file with .o extension but i m not able to create .exe from that... i installed mingw for that also .. unsuccessful ...
    tell me the solution for it... i want to generate machine dependent exe from java file...on the web i ve seen that GCC/GCJ is used on linux platform..not cleared properly..
    Again i m writing my question
    Is it possible to convert Java to EXE and run this EXE file without any JRE if yes then how... tell me the procedure to do that...

    Vipul wrote:
    Its software now hardware .... some times u need these things ...anyway do u ve solution for my questionSo what? By creating a native executable you are restricting the program to the OS for which that native executable was made, just like removing the engine from a car restricts driving to downhill only. So like the I said, the principle remains the same, "Why would you want to?"
    I am asking you, truthfully, why do you feel the need to negate the largest advantage of using Java by creating a native executable from it?
    What is your rationale?
    I can pretty much guarantee there is a much better way of achieving your wish without "removing the engine".

  • I was accidentally deleted pictures last week in my ipad mini. How can I restore them without any back up (icloud, itunes, etc)? Please help me.. Thank you

    I was accidentally deleted pictures last week in my ipad mini. How can I restore them without any back up (icloud, itunes, etc)? Please help me.. Thank you

    iPad Photo Recovery: How to Recover Deleted Photos
    http://www.iskysoft.com/iphone-data-recovery-mac/ipad-photo-recovery.html
    How to Restore Lost or Deleted Files from iPad
    http://www.iphone-ipad-recovery.com/recover-ipad-mini-files.html
    How to Recover Deleted Files from iPad
    http://www.kvisoft.com/tutorials/recover-deleted-files-from-ipad.html
    iSkysoft Free iPhone Data Recovery
    http://www.iskysoft.com/iphone-data-recovery/
    Recover iPhone/iPad/iPod touch lost data, Free.
    Free recover iPhone/iPad/iPod touch lost contacts, photos, videos, notes, call logs and more
    Recover data directly from iPhone or from iTunes backup
    Preview and recover lost iOS data with original quality
    Wondershare Dr.Fone for iOS
    http://www.wondershare.net/data-recovery/iphone-data-recovery.html?gclid=CJT7i9e 6gb4CFcvm7AodbUEAJQ
    Recover contacts, messages, photos, videos, notes, call history, calendars, voicemail, voice memos, reminders, bookmarks and other documents.
     Cheers, Tom

  • How to Attach a File Without Embedding It on Mail?

    How to Attach a File Without Embedding It on a Mac?
    Tamer is not working and I prefer not to use TERMINAL (defaults write com.apple.mail DisableInlineAttachmentViewing -bool yes)
    Right click send as icon is not a solution.
    Any other options? Thanks!

    bbp@bcn wrote:
    I always receive the same response, "Can you send it as an attachment?"
    and I think It does something to do with the way I send files.
    Thanks
    It's nothing to do with the way you send them. Every mail client chooses how to cope with attachments: in some there is a preference setting but in many cases it automatically displays embedded images. Even where there is a preference setting it's up to the person receiving the email: you can't control it. Why are they so fussed about your sending as an attachment? The image can be saved easily enough, usually by dragging it to the Desktop, or by a button to save attachments. If they really want this you are going to have to zip it, there isn't any other way round it.

  • Sharepoint 2010 - SPUCWorkerProcess - Could not create file

    I have some type of permission issue that is preventing my User Code Host service from running (it starts then stops).    I am seeing the following in my ULS:
    03/01/2011 09:59:13.42 SPUCWorkerProcess.exe (0x0F78)
    0x1254 SharePoint Foundation
    Unified Logging Service f05l
    High Could not create file C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS\\IH-PORTAL002.ulstest, HRESULT=0x80070005
    03/01/2011 09:59:13.42 SPUCWorkerProcess.exe (0x0F78)
    0x1254 SharePoint Foundation
    Unified Logging Service f05n
    High No permission to write on C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS\
    Followed by:
    03/01/2011 09:59:16.64 SPUCHostService.exe (0x13A8)
    0x0D00 SharePoint Foundation
    General 84yj
    Medium Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
    03/01/2011 09:59:16.77 SPUCHostService.exe (0x13A8)
    0x0D00 SharePoint Foundation
    Sandboxed Code Service ei0p
    Monitorable - Unhandled exception System.ComponentModel.Win32Exception: Unknown error (0xc0000bbc)     at Microsoft.SharePoint.Win32.SPPdh.CheckReturnValue(PDH_STATUS status, Boolean throwOnError)  
      at Microsoft.SharePoint.Utilities.SPPerformanceCounter.NextValue(Int32 retry, Int32 retryInterval)     at Microsoft.SharePoint.UserCode.SPUserCodePerformanceCounterHelper..ctor(String processName, Int32 processInstanceId) thrown while reading
    perf counters for process "SPUCWorkerProcess".
    03/01/2011 09:59:16.77 SPUCHostService.exe (0x13A8)
    0x0D00 SharePoint Foundation
    General 84yj
    Medium Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
    03/01/2011 09:59:16.77 SPUCHostService.exe (0x13A8)
    0x0D00 SharePoint Foundation
    Sandboxed Code Service ei0p
    Monitorable - Unhandled exception System.ComponentModel.Win32Exception: Unknown error (0xc0000bbc)     at Microsoft.SharePoint.Win32.SPPdh.CheckReturnValue(PDH_STATUS status, Boolean throwOnError)  
      at Microsoft.SharePoint.Utilities.SPPerformanceCounter.NextValue(Int32 retry, Int32 retryInterval)     at Microsoft.SharePoint.UserCode.SPUserCodePerformanceCounterHelper..ctor(String processName, Int32 processInstanceId) thrown while reading
    perf counters for process "SPUCWorkerProcess".
    03/01/2011 09:59:16.77 SPUCHostService.exe (0x13A8)
    0x0D00 SharePoint Foundation
    General 84yj
    Medium Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
    03/01/2011 09:59:16.78 SPUCHostService.exe (0x13A8)
    0x0D00 SharePoint Foundation
    Sandboxed Code Service ei0p
    Monitorable - Unhandled exception System.ComponentModel.Win32Exception: Unknown error (0xc0000bbc)     at Microsoft.SharePoint.Win32.SPPdh.CheckReturnValue(PDH_STATUS status, Boolean throwOnError)  
      at Microsoft.SharePoint.Utilities.SPPerformanceCounter.NextValue(Int32 retry, Int32 retryInterval)     at Microsoft.SharePoint.UserCode.SPUserCodePerformanceCounterHelper..ctor(String processName, Int32 processInstanceId) thrown while reading
    perf counters for process "SPUCWorkerProcess".
    I have verified that the service account for the SPUCHostService is a domain account belonging to the the WSS_WPG local group (I also tried adding to the WSS_ADMIN_WPG group with no more success).  The WSS_WPG
    group has read and write access to the log folder mentioned above.
    I started troubleshooting this when I tried to activate and use the CRM 2011 list control.  And found that other sandboxed solutions also fail which lead me to look at the SharePoint 2010 User Code Host, which will not keep running.
    I have a Sharepoint 2010 enterprise farm with one WFE and one seperate database server all on a single domain.   The WFE is running on Windows 2008 sp2 (64 bit).   
    I look forward to your advice / suggestions.
    PS.  I have been working on this for a couple days, and have read many issues that seem to be related, but I have already checked that the Service is now set to automatic, that the service account is a member of the WSS_WPG group and should therefore
    have rights to the Logs folder.  It is also a member of the Local Administrators and the Performance Log Users group.
    Fred Zilz

    After IISReset I don't see the Logs directory issue but I still have the following:
    03/01/2011 14:00:53.35 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    General 84yj
    Medium Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
    03/01/2011 14:00:53.46 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    Sandboxed Code Service ei0p
    Monitorable - Unhandled exception System.ComponentModel.Win32Exception: Unknown error (0xc0000bbc)     at Microsoft.SharePoint.Win32.SPPdh.CheckReturnValue(PDH_STATUS status, Boolean throwOnError)  
      at Microsoft.SharePoint.Utilities.SPPerformanceCounter.NextValue(Int32 retry, Int32 retryInterval)     at Microsoft.SharePoint.UserCode.SPUserCodePerformanceCounterHelper..ctor(String processName, Int32 processInstanceId) thrown while reading
    perf counters for process "SPUCWorkerProcess".
    03/01/2011 14:00:53.46 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    General 84yj
    Medium Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
    03/01/2011 14:00:53.46 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    Sandboxed Code Service ei0p
    Monitorable - Unhandled exception System.ComponentModel.Win32Exception: Unknown error (0xc0000bbc)     at Microsoft.SharePoint.Win32.SPPdh.CheckReturnValue(PDH_STATUS status, Boolean throwOnError)  
      at Microsoft.SharePoint.Utilities.SPPerformanceCounter.NextValue(Int32 retry, Int32 retryInterval)     at Microsoft.SharePoint.UserCode.SPUserCodePerformanceCounterHelper..ctor(String processName, Int32 processInstanceId) thrown while reading
    perf counters for process "SPUCWorkerProcess".
    03/01/2011 14:00:53.46 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    General 84yj
    Medium Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
    03/01/2011 14:00:53.47 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    Sandboxed Code Service ei0p
    Monitorable - Unhandled exception System.ComponentModel.Win32Exception: Unknown error (0xc0000bbc)     at Microsoft.SharePoint.Win32.SPPdh.CheckReturnValue(PDH_STATUS status, Boolean throwOnError)  
      at Microsoft.SharePoint.Utilities.SPPerformanceCounter.NextValue(Int32 retry, Int32 retryInterval)     at Microsoft.SharePoint.UserCode.SPUserCodePerformanceCounterHelper..ctor(String processName, Int32 processInstanceId) thrown while reading
    perf counters for process "SPUCWorkerProcess".
    03/01/2011 14:00:53.47 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    General 84yj
    Medium Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
    03/01/2011 14:00:53.47 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    Sandboxed Code Service ei0p
    Monitorable - Unhandled exception System.ComponentModel.Win32Exception: Unknown error (0xc0000bbc)     at Microsoft.SharePoint.Win32.SPPdh.CheckReturnValue(PDH_STATUS status, Boolean throwOnError)  
      at Microsoft.SharePoint.Utilities.SPPerformanceCounter.NextValue(Int32 retry, Int32 retryInterval)     at Microsoft.SharePoint.UserCode.SPUserCodePerformanceCounterHelper..ctor(String processName, Int32 processInstanceId) thrown while reading
    perf counters for process "SPUCWorkerProcess".
    03/01/2011 14:00:53.47 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    General 84yj
    Medium Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
    03/01/2011 14:00:53.47 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    Sandboxed Code Service ei0p
    Monitorable - Unhandled exception System.ComponentModel.Win32Exception: Unknown error (0xc0000bbc)     at Microsoft.SharePoint.Win32.SPPdh.CheckReturnValue(PDH_STATUS status, Boolean throwOnError)  
      at Microsoft.SharePoint.Utilities.SPPerformanceCounter.NextValue(Int32 retry, Int32 retryInterval)     at Microsoft.SharePoint.UserCode.SPUserCodePerformanceCounterHelper..ctor(String processName, Int32 processInstanceId) thrown while reading
    perf counters for process "SPUCWorkerProcess".
    03/01/2011 14:00:53.47 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    General 84yj
    Medium Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
    03/01/2011 14:00:53.49 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    Sandboxed Code Service 0000
    Unexpected - Process perf counters are disabled. Sandboxed code monitoring cannot continue.
    03/01/2011 14:00:53.52 SPUCHostService.exe (0x15E0)
    0x14AC SharePoint Foundation
    General 84yi
    Unexpected An SPPerformanceCounter was not properly disposed.  This could cause excessive memory use.
    03/01/2011 14:00:53.52 SPUCHostService.exe (0x15E0)
    0x14AC SharePoint Foundation
    General 84yi
    Unexpected An SPPerformanceCounter was not properly disposed.  This could cause excessive memory use.
    Any ideas on what is going on with the Performance Counter?
    Fred Zilz

  • Apex 3.0: export a report as .csv file without any Enclosed By character?

    In Apex "Report Attributes page/Report Export" is possible to define the Enclosed By field.
    The default Enclosed By by characters are a double quotation marks (" ").
    Is there a way to export the report as .csv file without any Enclosed By character?
    Example line format:
    a) using default Enclosed By
    "value1";"value2";"value3"
    b) using ('') as Enclosed By
    'value1';'value2';'value3'
    c) using blank space as Enclosed By
    value1 ; value2 ; value
    d) without any Enclosed By character
    value1;value2;value3
    What can we do in Apex to export a report as .csv file with the line format example d)?
    Thanks for your help.

    Hi,
    There is no Out of the box feature in Apex to achieve this functionality. But what you can do is write a page process to generate the CSV that you want.
    For this what I will do is on the first page where you press the Button it will call a PL/SQL page process which actually generates the csv. You can keep the existing report only for display purposes. Find the below process which generate the csv that you require.
    begin
    -- Set the MIME type
    owa_util.mime_header( 'application/octet', FALSE );
    -- Set the name of the file
    htp.p('Content-Disposition: attachment; filename="filename.csv"');
    -- Close the HTTP Header
    owa_util.http_header_close;
    htp.prn('columnHeader1,ColumnHeader2,ColumnHeader3'||chr(13));
    -- Loop through all rows
    for x in (
    Select column1,column2,column3 from table;
    loop
    -- Print out a portion of a row,
    -- separated by commas and ended by a CR
    htp.prn(x."column1"||','||x."column2"||','||x."column3"||chr(13));
    end loop;
    -- Send an error code so that the
    -- rest of the HTML does not render
    htmldb_application.g_unrecoverable_error := true; --You can leave out this line if you still want to display the existing HTML report.
    end;
    This will show a download box, so you can download the csv file. The page process should be called before header and the condition should be the button press.

  • File Streams *creating Files without those pesky line breaks

    Greetings Java Developers,
    Basicly I would like to write a large block of data out to a file without any line breaks and end of line characters that most JAVA Output Streams include with each call to WRITE(); First I am using BYTE Output Streams in JAVA and two end of line bytes are written also!!!
    It may be possible to use a Buffered File Stream with a Large Buffer about a Megabyte or so and FLUSH() the Stream all at once.
    Any ideas or suggestions will be greatly appreaciated!
    -chibi_neko

    I have not had a problem writing bytes to file. The getStream call returns a FileOutputStream. Also note that the curly braces around 'i' really are square braces but I used them because square braces around I get reformatted in his post.
          * Write bytes to a file.
          @param Data Data to write to a file.
          @param file Destination file.
         public static void write(byte [][] Data, File file)
              try
                   OutputStream out = getStream(file);
                   for(int i = 0 ; i < Data.length ; i++)
                        out.write(Data{i});
                   out.close();
              catch(IOException E)
                   throw new Error(E.getMessage());
              catch(Exception e)
                   throw new Error(e.getMessage());
         }the getStream method
    FileOutputStream fw = new FileOutputStream(file.getPath(),append);

  • How to view pst file without Microsoft Outlook?

    How to view pst file without Microsoft Outlook? Please suggest viewer for content of corrupted PST files.

    Hi,
    If the .pst file is corrupted, I suggest you run Scanpst.exe to repair it:
    http://support.microsoft.com/kb/272227
    If you need to view .pst file without Outlook, we may use some 3rd-party tools, there are a lot on Internet.
    Regards,
    Melon Chen
    TechNet Community Support

  • Can you take the SIM card from an IPad and transfer it to a NEW Ipad (not yet purchased) without any problems? Are there any complicated steps involved? Thanks.

    Can you take the SIM card from an IPad and transfer it to a NEW Ipad (not yet purchased) without any problems? Are there any complicated steps involved? This is for my boss.
    Please let me know. Thanks in advance.

    Simple answer is YES.
    The only caviat is for instance in the UK some iPads are locked to a specific network provider and therefore if the new iPad is locked then it will only work on the specific network it is locked to.

  • Forgot icloud password, how to get it recover without any question and also alternative email becuase someone hacked my alternative email id. need password for using icloud hopefully i will get result from you as your earliest.

    forgot icloud password, how to get it recover without any question and also alternative email because someone hacked my alternative email id. need password for using icloud hopefully i will get result from you as your earliest.

    I'm sorry, but I know nothing about iCloud email. I stayed away from iCloud email and only use iCloud for limited purposes.
    But take a look at this discussion and read the response from randers4. He is one of the iCloud experts in the Apple Support Communities.
    https://discussions.apple.com/message/24358339#24358339
    If that doesn't help, you might be better off posting in here where there are other more knowledgable iCloud users.
    https://discussions.apple.com/community/icloud/icloud_on_my_ios_device

  • UserExit required - Do not Create PO without Release Strategy

    Hi
    My requirement is Do not Create PO without Release Strategy.
    When user try to save PO, it should not allow to save, if it does not have Release Strategy.
    For this scenario, we require which UserExit.
    If UserExit, can you guide me which userexit and the following steps.
    For this scenario, which is the best way to control.
    If you got anyother options other than userexit can also be advised.
    Pls advise me.
    With Regards
    Kamesh

    Hi Shailaja
    Very thanks for your reply.
    Some more doubts,
    I think Release strategy data will be populated in I_EKKO table.
    I can use fields from I_EKKO-FRGSX & FRGKE.
    If these fields are initial (ie) PO without release strategy, I want to exit PO without saving - Creation.
    So here can i put Error message if the fields are initial.
    IF i put Error message then the PO screen will be block ? in that Error message.
    Just want to confirm before testing something with the Exit code.
    Is this the way to proceed.
    Thanks in advance,
    With Regards,
    Kamesh

  • How can I create files in unicode format without "byte order mark"?

    Hello together,
    I have to export files in UTF-8 format and have to send them to another partner system which works with linux as operating system.
    I have tried the different possibities to create files with ABAP. But nothing works 100% how I want.
    Some examples:
    1.)
    OPEN DATASET [filename] FOR OUTPUT IN TEXT MODE ENCODING UTF-8.
    If I create a file in this way and download it from application server to local system the result for file format in a unicode text edior like NotePad is "ANSI AS UTF-8". This means I have no BYTE ORDER MARK inside.
    But it is also possible that the file format is only ANSI if the file contains no "special characters", isn't it?
    In my test cases I create 3 files. 2 of them has format "ANSI AS UTF-8", and one only "ANSII".
    After transfer to Linux I get as result 2 times UTF8 and one time ASCII as file format.
    2.)
    OPEN DATASET [filename] FOR OUTPUT IN TEXT MODE ENCODING UTF-8 WITH BYTE ORDER MARK.
    With this syntax the result in local editor looks like ok. I get as format really "UTF-8".
    But I get problems with the system which receives the files.
    All files has the file format UTF-8 on Linux but the interface / script can not read the file with BYTE ORDER MARK.
    This is a very big problem for me.
    Do anybody of you know if it possible to force creation in UTF-8 without a BYTE ORDER MARK?
    This means more or less the first example but all files should have UTF-8 format!
    Thanks in advance
    Christian

    This means it is not possible to create a pure unicode file without the byte order mark?
    You wouldn't happen to know how a file with byte order mark should read on a Linux system?
    Or if this possible or not?
    Regards
    Christian

  • How to use vector file without adobe illustrator?? please help

    I am using the free trial period of adobe illustrator to creat a logo.  I don't want to buy illustrator b/c I don't plan on using the program for anything else,  I would like to save my logo in some kind of vector format so I can use it for lots of different printing options.  But I can't figure out how to do this b.c my computer won't open the file without illustrator.  Is there anyway to creat a usable print friendly logo without buying illustrator? Thanks for any help!

    I believe if you export it to wmf or emf you will have a Vector file that can be used in word or powerpoint and can be placed in other programs as can ai files which can be placed in word or powerpoint documents as vector files.
    Flash (swf) is another way of saving it and it is also vector.
    However even though you say you will never have use for Illustrator which is what I thought in 1995 when I use it to create a logo, I soon found more use for it and every year since have found a project that has rewarded me many times the cost of the application once I had purchased it. Most of which I never thought I had the need for and probably would not have even made the attempt to make the effort and the profit if I did not own the license.
    And every time I say to myself what do i have this application for the opportunities arises yet again.
    I thought I would share my experience with you.

  • 2004s file download (how to not store files in context?)

    Hi,
    I want to use FileDownload element in my web dynpro application.
    I use the new type resource  and my own input source implementation, which generates files on the fly.
    Each download call should result in a new file. These files can be very large (some MB).
    For obvious reasons I don't want the server to store the byte data in application context (200 users * 2 MB ....)
    How can I do this?
    If I use resource as context element and set debug points on my input stream, I can see the data is read just on time if the user wants to download.
    I create my data in my inputstream and the download starts. So far so good.
    On the second click on the download link the download starts without any read operation. Thats the problem.
    Possible reasons:
    First: the data is read and stored to the context on the first download. this would be bad! context would get very very large. not working for me.
    second: the browser or the server caches the data. how can I avoid this?
    thx in advance
    btw I read a tutorial about up and downloading. this pointed to an additional article called something like "downloading in web dynpro tables". But I can't find it. There the on demand downloading should be explained. any help would be great.

    Hallo Thomas,
    ok, the "default" on-demand streaming solution caches a Web Resource but does not re-calculate it again afterwards.
    I wrote a Wiki Code Tutorial which demonstrates how to download an Excel File from a Web Dynpro table UI element on-demand. In this scenario the resource must also be re-created on every request. The solution is based on re-initializing the context with a new  0-byte resource objects within the calculated context attribute getter method.
    See <a href="https://wiki.sdn.sap.com/wiki/display/Snippets/ExportingTableDatainWebDynproJava-SAPNetWeaver04s">Exporting Table Data in Web Dynpro Java - SAP NetWeaver 04s</a>
    For you the most important line of code in
    //@@begin javadoc:getExcelResourceOnDemStreamCalc(IPrivateExcelExportComp.IExcelElement)
       *  Declared getter method for attribute ResourceOnDemStreamCalc of node ExcelResource
       *  @param element the element requested for the value
       *  @return the calculated value for attribute ResourceOnDemStreamCalc
      //@@end
      public com.sap.tc.webdynpro.progmodel.api.IWDInputStream getExcelResourceOnDemStreamCalc(IPrivateExcelExportComp.IExcelElement element)
        //@@begin getExcelResourceOnDemStreamCalc(IPrivateExcelExportComp.IExcelElement)
        IWDInputStream excelOnDemandStream = null;
        try {
          excelOnDemandStream =
            WDResourceFactory.createInputStream(toExcel(tableDataNode, tableColumnInfos).getBytes("UTF-8"));
        } catch (UnsupportedEncodingException e) {
          wdComponentAPI.getMessageManager().reportException(e.getLocalizedMessage(), true);
        // Reset context attribute 'Excel.Resource' again by creating a new 0-byte resource object.
        // Otherwise the on-demand Excel stream gets calculated only once as the resource object,
        // cached in the Web Dynpro Binary Cache on server-side, keeps the same.
        initializeOnDemandExcelResource();
        // Return excel on-demand input stream
        return excelOnDemandStream;
        //@@end
    is the method <b>call initializedOnDemandExcelResource()</b> re-initializing the context attribute with a new 0-byte resource object.
    //@@begin others
      //======= Private Methods ===========================
       * Create new on-demand resource instance for excel file. This method must be
       * invoked initially and in the calculated context attribute getter method (calculating)
       * the excel resource input stream. Otherwise the resource is streamed to the client only
       * once but not afterwards so that later updates of the table data are not reflected in the
       * streamed Excel file.
       * URL is stored in context so context in client component can map to it.
      private void initializeOnDemandExcelResource() {
        excel0ByteResource =
          WDResourceFactory.createResource(calcAttrPointer, "Table.xls", WDWebResourceType.XLS);
        excelResourceElement.setResource(excel0ByteResource);
        excelResourceElement.setResourceURL(
          excel0ByteResource.getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal()));
    Regards, Bertram

Maybe you are looking for