Exporting into Excel Using the Dynpro Binary Cache is not working on NW04s

Hello,
I am using excel data export using the
"Exporting Context Data into Excel Using the Web Dynpro Binary Cache" guide at
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/edc2f3c2-0401-0010-8898-acd5b6a94353">this link</a>.
The tutorial is working on NW04 but when I use it on NW04s I receive errors for the StringBuffer object:
java.lang.NoSuchMethodError: java.lang.StringBuffer.append(Ljava/lang/String;)Ljava/lang/AbstractStringBuilder;
Any ideas?

Hallo Roy,
I have created an updated/enhanced version of this tutorial running on NW 7.0. The new solution allows to open the exported Excel File instantly without opening a popup window befor:
See <a href="https://wiki.sdn.sap.com/wiki/x/0mQ">Exporting Table Data Using On-Demand Streams - SAP NetWeaver 7.0</a>.
<b>NOTE:</b>
Use <b>LinkedHashMap</b> instead of <i>HashMap</i>
  private Map getProductColumnInfos() {
    Map columnInfosMap = new LinkedHashMap();
    columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.QUANTITY, "Quantity");
    columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.ARTICLE, "Article");
    columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.COLOR, "Color");
    columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.PRICE, "Price in EURO");
    columnInfosMap.put(
      IPrivateTableCompBasketView.IProductsElement.TOTAL__PER__ARTICLE,
      "Total Per Article In Euro");
    return columnInfosMap;
This keeps the order of key-displaytext-pairs passed by the client (table component) to the service (excel export component) stable.
Regards, Bertram

Similar Messages

  • Export to Excel Problem external DC using Web Dynpro binary cache

    Hallo,
    I want to export from Web Dynpro to Excel. For this I study the Tutorial "Excel Export Using the Web Dynpro Binary Cache".
    The example is running without a problem.
    I have create a new DC only for excel export. The name is ExcelExportWD. In this DC I create a Component and programmed the methods of the example. Also I create the View and the Context for it.
    This DC is used in other DCs. I put the Component to the public part. After than I make the entry in the used DCs in that DC which I want to use the Excel export. I use the DC ExcelExportWD in the DC ContactsWD.
    The ContactsWD is running without a problem.
    If I try now to export to Excel I got the following error.
    <b>com.sap.tc.webdynpro.services.sal.api.WDDispatcherException: Requested deployable object 'mgi.de/portalscmContactsWD' and application 'ResultGetContacts.xls' are not deployed on the server. Please check the used URL.</b>
    In the View of the ExcelExport the name of file is not visible in the URL of the ExcelFileName. The name "ResultGetContacts.xls" is the name of the node which I want to export.
    What is wrong? I have try to set a Sharing reference in the ContactWD without success.
    An idea ?
    Regards
    Gunter

    Hallo,
    I want to export from Web Dynpro to Excel. For this I study the Tutorial "Excel Export Using the Web Dynpro Binary Cache".
    The example is running without a problem.
    I have create a new DC only for excel export. The name is ExcelExportWD. In this DC I create a Component and programmed the methods of the example. Also I create the View and the Context for it.
    This DC is used in other DCs. I put the Component to the public part. After than I make the entry in the used DCs in that DC which I want to use the Excel export. I use the DC ExcelExportWD in the DC ContactsWD.
    The ContactsWD is running without a problem.
    If I try now to export to Excel I got the following error.
    <b>com.sap.tc.webdynpro.services.sal.api.WDDispatcherException: Requested deployable object 'mgi.de/portalscmContactsWD' and application 'ResultGetContacts.xls' are not deployed on the server. Please check the used URL.</b>
    In the View of the ExcelExport the name of file is not visible in the URL of the ExcelFileName. The name "ResultGetContacts.xls" is the name of the node which I want to export.
    What is wrong? I have try to set a Sharing reference in the ContactWD without success.
    An idea ?
    Regards
    Gunter

  • Reading a binary file using the type cast function is not working

    Hello
    I am trying to read a binary file.  Using the Read from binary file and type cast functions I can actually get the information from the file.
    I set an indicator in the “Normal” option in Properties. I can read the header and footer but not the body of the file; For the body of the file all I can see is characters of the type
    “C¾ Ü Qþ  X@ “. One of the other options, Password, seems to provide an output of just the characters that were originally written, but then again, I can not read the characters because it is only asterisks and I can not copy them onto a word processor either.
    I tried setting the indicator in Hexadecimal mode, then creating a local variable that acts as a control and use the type cast function again to see if  could convert the Hexadecimal string to readable ASCII characters; unfortunately, this did not work either.
    I don’t know what else I should try or if there is something that I may not be doing right and for that reason I am not getting the desired results. I hope someone has an idea about this issue.
    Regards,
    Roberto

    Thank you for your reply,
    Well, actually I don’t have any information about this file. I will try to obtain information about it though.
    This is a file that contains velocity information; there are 65 channels that form a velocity profile in a pipe. Also, there are 4096 velocity profiles. I don’t know what is the format of these values.
    The software that creates the file provides a text file. Using this text file the velocity information can be processed and then plotted.
    I want to avoid all these intermediate steps and read, process and plot everything using only LabView. BTW, I am using LabView 8.2
    Roberto

  • Firefox 4 default start page "google" missing. If its missing i cant use the search. Search is not working! (window7 working) Windows xp not working.

    about:home is blank at Win xp, search is working at firefox 4 at win7.

    Hello spidermains,
    Happy to see that I have a friend in that adventure
    Look I have a blog entry here:
    http://www.happytocode.com/post/Can-I-use-the-new-Apple-USB-Aluminium-keyboard-o n-Windows.aspx
    That post describes all the steps I followed to extract the drivers from the dual boot camp CD.
    I'm using a PC, only a PC. I do not have any Apple computer (yet).
    When I mention boot camp, I mean the boot camp CD on one side and the boot camp utilities on the other side. To be more specific the tool I'm talking about is the kbrmgr.exe
    That tool sits in the systray and is handling the special keys of the keyboard.
    If you have other questions... let me know,
    John.

  • Stopping a running application by using the Lomboz Plug-in does not work

    hi newsgroup,
    I am working with BeaWebLogic Server 8.1 and Eclipse 3.0.1 plus Lomboz 3.0.1.
    Problem: The deployment of web applications using the Lomboz plugin works fine but the undeployment fails.
    Undeployment means stopping an aplication. The undeploy command of Lomboz has no effect on the Bea Server. That means the application is still running.
    What is the problem? Should I add something to the build.xml or undeploy.xml ?
    Thanks for your replies.
    Message was edited by Micha80 at Oct 18, 2004 1:27 AM

    Hello,
    Do you get any errors in your log files when you try to undeploy your app?
    What is the actual command being executed by Lomboz?
    Hoos
    www.orbism.com

  • My ipod is corrupted and when I try to reset it it will not let me, I tried using the diagnostics feature but its not working? Help please!!

    I dropped my ipod classic and i tried turning it back on and it asks me to plug it in. I did so and it said the data was corrupted. I tried resetting it and it said something about fire wire? I looked on the internet and tried setting it to "Disk mode" and plugging it in and trying it that way, but it doesnt come up on my itunes. I tried diagnosing the issue on the ipod itself and I get to the "Accessorize test" and it says I dont have a FWPWR. How can I fix this??

    Ok you got to make sure that you are the adiminstrtor on the computer. After you do that right click on my computer and hit properties. Make sure under the general tab that you are running windows (2000) service pack (4) or Windows XP Home or Pro service pack (2). After you have established that type in on the support search box uninstall itunes and quicktime for windows. Then once you have downloaded itunes restore the ipod and see if this fixes your problem.

  • Exporting table data to MS-Excel Sheet(enhanced Web Dynpro Binary Cache)

    Hi experts,
    I am trying to implement the functionality of downloading the contents of a webdynpro screen to excel sheet. In order to implement the functionality of excel download i used the following blog.
    [/people/subramanian.venkateswaran2/blog/2006/08/16/exporting-table-data-to-ms-excel-sheetenhanced-web-dynpro-binary-cache ]
    In this blog they have used javaexcel api to implement the excel functionality. I face some problems
    while implementing it.
    i) The use of "Label label = new Label(0, 2, "A label record");
    sheet.addCell(label); " is not supported. It says that a constructor for label with
    (int, int, str) parameter is not available.
    ii) Then i implemented it with "Label label = new Label("A label record"); " Then i deployed it. I got a runtime exception saying that " java.lang.ClassNotFoundException: jxl.format.CellFormat ".
    This cellFormat is an interface available in the jar. I am using jexcelapi_2_6_9_1.4 version. Do i have to
    download some other versions.
    Please help. Thanks in advance.
    Regards
    Ramanan

    Hi,
    Please check the following steps while creating External Library DC:
    1) creating an Extneral library DC
    2) import the JARs to the libraries folder of the External Library DC project
    3) Right-click on each of the JARs imported to the project and add them to the public part.
    This DC is now ready to be used as a build-time reference that will allow CBS to build the "main" Web Dynpro application that will use the external libraries. Next, we have to create a new Web Dynpro DC to hold the class files here are the steps:
    1) Create a new Web Dynpro DC
    2) Create a new public part, selecting the "Can be packaged into other build results" option
    3) Rename the JARs as Zip files and extrct the full content (folders and class files) to your root folder
    4) Import the folders and files to the src/packages folder
    5) Expand the public part node that was created and select the "Entities" node, right-click it and choose Edit
    6) In the Entity Type list select the "Folder" option then in the selected entities tree pick each of the folders that you imported in step 5 (above)
    7) Now do a DC build and a DC deploy of the project
    Then check-in, activate, and release any activities you have associated with creating these two projects. In the DC perspective, refresh the Active DCs and Inactive DCs to ensure that both new DCs appear in the Active list. Now we have to setup the references to these DCs in our main Web Dynpro application. To do this, follow these steps:
    1) Open the Web Dynpro perspective and right click the Used DCs node then choose "Add Used DC.."
    2) Pick the public part of the External Library DC that we created (first) and set it to have a Build Time dependency
    3) Again, right click the Used DCs node and choose "Add Used DC.." then choose the public part of the Web Dynpro DC that we created and give it a Run Time dependecy (weak) and click finish.
    4) Now, due to what I think is a bug. You must right click on the Web Dynpro "used DC" that you just added in the previous step, and set the run time dependency again (it seems to revert to the default values for some reason)
    5) Now do a DC build and a DC deploy on the "main" web dynpro application.
    6) Check-in, activate, and release any activities associated with adding these references and then others on your team may use the classes in the external libraries within the Web Dynpro project.
    Regards.
    Rajat

  • Regarding Web Dynpro Binary Cache

    Hi All,
    I have a Table in my view and I want to export the data in the table in Excel. I have a pdf Exporting Context Data into Excel Using the Web Dynpro Binary Cache
    It talks about the Sample Application WDExcelExport.zip. I am unable to locate this zip file
    Also for using Web Dynpro Binary Cache do I need to add some other JAR files in the classpath.
    Is it possible that apart from saving the data in excel, can the data be saved in some other formats eg .html, .txt, .pdf
    Regards
    Nikhil Bansal

    Hi Abhijeet,
    When I am trying to download the Sample Application for Excel Export from the foll. link https://wwwn.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/bad3e990-0201-0010-3985-fa0936d901b4 [original link is broken] then I get the foll error
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    The exception was logged. Inform your system administrator..
    See the details for the exception ID in the log file
    I need to take a look at the application.
    Plz help.
    Regards
    Nikhil

  • Problems  with example Web Dynpro Binary Cache service.

    Hi!
    I made the example explained in PDF  Web Dynpro Binary Cache service, everything works fine but i faced a problem when a tried to download the excel file in XP  spanish version , all the columns  names came disorderly. These names are technical names of my nodes, i'm using bapis models to connect with R/3
    Who knows how can i solve this feature, the example works fine in my english XP`s version.
    Thanks!

    Hi Maria,
    which tutorial number do you refer to?
    Regards, Bertram

  • Show Repeated key values in Reports and Export Into Excel

    Hi Experts,
    Currently I am working on the BW3.5 version. Our client requirement to display the repeated key value in web and export same into excel. I have followed the steps in web template which mentioned below to achieve the requirement.
    1) In my web template, add the following line to the Template Properties object tag (the tag at the very top of the web template in HTML mode):<param name="SUPPRESS_REPETITION_TEXTS" value=""/>
    After the change web template change, Myself execute the report in web, Its fine web. But I export into excel, again the key values are suppressed. So I have followed the steps in query. Then its fine. I mean, I can export into excel with repeated key values.
    2) In my query, in Properties and on the Display tab, unchecked "Hide Repeated Key Values".
    But do we have any other option without changing query properties to achieve the requirement.. I am fine with the web template change("SUPPRESS_REPETITION_TEXTS"). But I do not want to change the query properties.
    Please help me to fix the issue. Thanks in advance.
    Thanks,
    RR

    Hi Experts,
    I have come across one of the suggestion in the below location. Could you plz help me to implement it.
    http://www.sapfans.com/forums/viewtopic.php?f=16&t=118185
    Suggestion:
    You can do exactly what you want, but it will take either a button changing the properties of the web item or a javascript function added to the context menu getting the properties of the table item and changing it to "X" or "". These are just two examples, there are other ways to do this. This is the actual code that sets the suppression for the repeated texts. Hope this helps.
    SAP_BW_URL item=âu20ACu2122TABLE_1âu20ACu2122 SUPPRESS_REPETITION_TEXTS=âu20ACu2122Xâu20ACu2122
    Thanks,
    RR

  • Exporting Into Excel from Crystal Reports 8.0.1.0

    Post Author: Manoj
    CA Forum: Exporting
    Hi, I am using Seagate Crystal Reports 8.0.1.0 along with my VB application. System was exporting into Excel on Older Versionsof Windows like 98 and all. But in XP, after exporting if i open the exported file, either i get a message like Cannot Read From Fileor A Blank Sheet in the Excel. I have already tried copying the U2*.dll from the crystal folder to System/System32 folder but it is notexporting. Somebody please help... RgdsManoj

    Sage is an OEM partner. For any database issues please ask Sage for assistance.

  • Portal export into Excel---V HIGH IMP please

    Dear All,
    Very urgent probelm reagdring the portal report.
    Once the report is executed into the portal and then while exporting that report into excel i am getting the report is very nice in producation..
    One of my clinet also doing the same at his end,But while exporting the report into excel is getting problem.No allignments taken place there!!!
    But we are using differnet verions of excel from quite long time and we are getting the reports very fine from couple of months..So version doesn't a matter....even though just we are exporting into excel,so that old veriosn also not a problem for uS...
    Please suggest me how can i solve this issue?

    Finally i got few interesting points in the enduser reports and my report
    My Report:
    Inside the excel it shows sheet1 is as SAP_DOWNLOAD
    My Sheet inside excel is : SAP_DOWNLOAD
    Enduser Report:
    Inside the excel sheet name is differnt....and the first line in the report is some code which includes the my excel sheet1 name same SAP_Download
    Their Sheet inside excel is   :  .xls]SAP4IHV6PV4AXREVZ888UCSR2H83[1]
    So My sheet name looks like in the below text which is the first line in the excel report of enduser's
    2 #FF3333 3 #99FF99 14 #D4D4D4 15 #C0C4C7 21 #F87C7C 23 #E0E5E8 27 #F2F2F2 37 #FFBBBB 42 #60ED84 43 #FFCC33 44 #FFAB1D 45 #FF8800 47 #C0CACF 49 #5BCB77 Test SAPBW_DOWNLOAD False False SAPBEXqueries SAPBEXsysID ="BP1" SAPBEXdnldView ="227KWHOUG9ESCS6U7FE3E64GR" Print_Titles 1 =SAPBWDOWNLOAD!_$A:$C,*SAPBWDOWNLOAD_!*$9:$10
    So can any one can help now?

  • Export to excel using service for office 2007

    Hi All,
    I am using a service to download the opport search result data into excel. Inside the code, it gets all the data and opens one window of excel download and closes automatically after few second. And finally does not download anything.
    It is working for office 2003, not for office 2007.I am following piece of code.Please help me how to achieve the same.
    DATA: l_xstring TYPE xstring,
          app_type type string,
          app_type_c(50) type c.
    app_type = 'APPLICATION/MSEXCEL; charset=utf-16le'.
          app_type_c = app_type.
          CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
            EXPORTING
              text     = output      "my data to be exported into excel
              mimetype = app_type_c
            IMPORTING
              buffer   = l_xstring.
          CONCATENATE  cl_abap_char_utilities=>byte_order_mark_little
                       l_xstring
                       INTO l_xstring IN BYTE MODE.
    server->response->set_header_field( name =  'content-type'
                                        value = app_type ).
    server->response->delete_header_field( name = if_http_header_fields=>cache_control ).
    server->response->delete_header_field( name = if_http_header_fields=>expires ).
    server->response->delete_header_field( name = if_http_header_fields=>pragma ).
    server->response->set_header_field( name = 'Content-Disposition'
                                        value =  'attachment;filename=Opportunity_Result.xls'  ).
    CLEAR lv_length.
    lv_length = XSTRLEN(  l_xstring ).
    server->response->set_data( data =  l_xstring
                                 length = lv_length ).

    Maybe it's possible, but I doubt it.
    Reason is that you're asking the URL to run the report and then once done export out the values and I just don't think the 'i' - or now 'g' versions support this.
    This was why the command line interface with the Desktop version was so popular as this is exactly the kind of thing you can do, plus much more.
    I checked the documentation for Plus and can find nothing about doing this in the URL. Maybe someone will say otherwise, but with Plus I don't think it's possible.
    Russ

  • How do I get PDF forms to export to excel in the desired order?

    How do I get PDF forms to export to excel in the desired order?
    Here is what I have done:
    As taken from another post:
    Choose Forms > Manage Form Data > Merge Data Files Into Spreadsheet.
    In the Export Data From Multiple Forms dialog box, click Add Files.
    In the Select file Containing Form Data dialog box, select a file format option in File Of Type option (Acrobat Form Data Files or All Files). Then locate the form files that you want to merge into the spreadsheet, select them, and click Select.
    Repeat the previous step to add form data files that are in other locations, as needed.
    Click Export. Then select a folder and filename for the spreadsheet, and click Save.
    In the Export Progress dialog box, click either View File Now to open the spreadsheet file or Close Dialog to return to Acrobat."
         The problem now is that Adobe populates Excel in ABC order of the form, based off of the name of each box in the form. For example, if my form has three text boxes, named A, B, and C, then Adobe will export to Excel as such:
    Row 1 =         A                              B                              C
    Row 2 =         data entered             data entered              data entered
    where 'data entered' is whatever the user typed into the form boxes. But what if I want a different order for exporting, and I don't want to rename my text boxes? What if I want:
    Row 1 =         C                              B                              A
    Row 2 =         data entered             data entered              data entered   ?
    Is there a way to do this in acrobat x or xi?
    Thanks

    I don't have time to test right now, but there was a change with Acrobat 10 where it exports according to the tab order, which you may have to set manually, so give that a shot. Otherwise, you'll have to process the file after it's exported if you need the fields in a particular order. This wouldn't be too difficult to do with something like a VBS or JS script in Windows.

  • Export to excel using value set

    Hi all,
    I have an ALV table and in some columns I show the texts defining value_set (set_attribute_value_set). When I export the table to Excel using the standard button in the file I can see the codes, not the defined texts. How can I solve it? I thought about defining additional columns which will contain the texts and will be invisible in the screen and visible in Excel sheet instead of the column with codes, but I would like to know if there is any easier solution.
    Thank you,
    Anna

    Hi
    You can use Filedownload control to download the content you prepare as XML
    reading the context.
    For Ex: if you have product ID, Product Name and price as attributes.
    you can create the XML string as
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <products>
    <product>
       <productID>1234</productID>
       <productName>Sony</productName>
       <price>1234.00</price>
    </product>
    <product>
       <productID>1234</productID>
       <productName>Sony</productName>
       <price>1234.00</price>
    </product>
    </products>
    copy paste this in note pad name the file as products.xls and open it in MSXL.
    similarly you can read the context and form this xstring and just supply to filedownload control.
    Regards
    Abhimanyu L
    Message was edited by:
            Abhimanyu Lagishetti

Maybe you are looking for

  • How to get the open billing documets specific to Plant

    Dear All, I want list of Billing documets which is open i.e. not released to accounting according to plant not payer.VF05 OR VTX3 are not suitable.Please let me know how to get this? Regards, Murali.

  • How to send alert when receiver JMS adapter fails? Please help!

    Hi experts,    I have the following Asynchronous scenario:    SAP R/3 - >IDOC----->XI>JMS--->BizTalk.    I am sending IDOC from a given SAP R/3 system to XI. XI then sends the same to BizTalk via JMS adapter. In SXMB_MONI the message is successfully

  • Error getting data bank info

    When running an OLT Script with a databank in OLT, I received the following error when I clicked on the configure data bank button (under configure parameters of the scenario), The screen pops up for data bank control and shows the script and the rel

  • Padding for a single cell

    Hi I feel awful for asking this but how do I insert padding for a single cell. As far as I know the code should look something like this: cellpadding= "0 10 0 10", but that's probably slightly or completely off the mark and I'm not sure where to put

  • DBID of the cloned database causing issues with Catalog registration

    Oracle Version:10.2.0.4 OS : Solaris Using RMAN DUPLICATE command, we cloned a database. Since the cloned DB retained the same DBID, when i tried to register the newly created DB with RMAN catalog i got an error saying that it is already registered.