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
Similar Messages
-
Export data to excel using DOI(desktop Office integration) technique
Hi Experts,
I have the requirement to export data to excel file, I have some idea using OLE but no idea of exporting to excel using DOI, Please help me by providing sample code for it.
My requirement also include merging of cells and coloring of cells.
Thanks
RohitFor merging of cells you can refer following code!
[Merging of cells.|https://www.sdn.sap.com/irj/scn/wiki?path=/display/community/oleconceptfordownloadingthereportoutputintoexcel]
Regards,
Lalit Mohan Gupta. -
Over the years I have had many ISP and email addresses - but now we have finally gone almost fully virtual...
I have a live login and MS ID 4 my SkyDrive account but I only use my MS touch with 8.1, SkyDrive and office 365 for mobility.
And I still like to backup to my own server!!!
What would be good is if I can put all the software licenses and product keys of the software and keep a record of my mac addresses for hardware and even static IP's in a file or a secure location within the MS online store.
That's where MS wants me to get my computing needs from in future and I will always be able to retrieve it in future but what about the $$$$$ I have spent on software, hardware and applications prior to now???
I know u guys love 2 collect data 4 marketing analysis,
4 example I have an old PC that is still running a server from last century - if you knew about it a simple script would allow you to offer upgrades or at least relevant MS products - UNLIKE the rubbish adds I just turn off or tune out
now...
Why cant I add products previous online email purchases into the 1 MS live ID account where I can keep it together? If you make that available I don't have to have separate steam accounts, EA game accounts, ASUS and adobe accounts etc
etc.
What has brought me 2 this is I was looking for my office pro 2007 disks to rebuild a HOME USE ONLY windows 7 laptop (NO touch screen so 8.1 is no benefit at all)
I HAVE 4 Genuine PRODUCT KEYs for Office 2007 BUT EVERY TIME I WENT TO DOWNLOAD the software - regardless of the key I used - I got the error message: We are sorry, but we are unable to complete your request.•The Office 2007 Product Key
provided is already associated with another user on this site. Please log in with the user information originally used with this Office 2007 Product Key.
That's crap - This is a clean brand spanker install of Win7 and there was nothing b4 I put the oem drivers from Toshiba back on.
I looked at dozens of support pages and forum blogs and tried for hours to get a copy to download - including incognito and other logins but because my default PC name is also my MS Windows live ID the same error was repeated.
I keep away from the non MS sites for these things and with good reason - there were heaps of similar users with the same issue or very close to it that had downloaded from a supposed MS copy from eValue or digital river etc and the next
thing was total corruption of the OS.
EVENTUALLY I found a LIVE MS chat on a support site in the US and she gave me a link to a slightly older version which will need updating and some reg edit changes but so far, so good.
The point is - what a crock !
I should be able to just keep all my software, drivers, updates, service packs, and versions that I have upgraded in the MS store.
If Microsoft aren't going to support XP or Office 2003 and eventually 2007, vista & Windows7 not far behind??? then that's still no excuse for them to put these restrictions and limits when I OWN my copy of the software!!
Unlike office 365 and SkyDrive space which is described in the T&C (that we all read before ticking that radial button to agree of course) as ONLY under a leased licence.
IF Microsoft can support AND develop software that supports SQL2000 Servers, why is it so hard to archive and keep the same info for everyone???Over the years I have had many ISP and email addresses - but now we have finally gone almost fully virtual...
I have a live login and MS ID 4 my SkyDrive account but I only use my MS touch with 8.1, SkyDrive and office 365 for mobility.
And I still like to backup to my own server!!!
What would be good is if I can put all the software licenses and product keys of the software and keep a record of my mac addresses for hardware and even static IP's in a file or a secure location within the MS online store.
That's where MS wants me to get my computing needs from in future and I will always be able to retrieve it in future but what about the $$$$$ I have spent on software, hardware and applications prior to now???
I know u guys love 2 collect data 4 marketing analysis,
4 example I have an old PC that is still running a server from last century - if you knew about it a simple script would allow you to offer upgrades or at least relevant MS products - UNLIKE the rubbish adds I just turn off or tune out
now...
Why cant I add products previous online email purchases into the 1 MS live ID account where I can keep it together? If you make that available I don't have to have separate steam accounts, EA game accounts, ASUS and adobe accounts etc
etc.
What has brought me 2 this is I was looking for my office pro 2007 disks to rebuild a HOME USE ONLY windows 7 laptop (NO touch screen so 8.1 is no benefit at all)
I HAVE 4 Genuine PRODUCT KEYs for Office 2007 BUT EVERY TIME I WENT TO DOWNLOAD the software - regardless of the key I used - I got the error message: We are sorry, but we are unable to complete your request.•The Office 2007 Product Key
provided is already associated with another user on this site. Please log in with the user information originally used with this Office 2007 Product Key.
That's crap - This is a clean brand spanker install of Win7 and there was nothing b4 I put the oem drivers from Toshiba back on.
I looked at dozens of support pages and forum blogs and tried for hours to get a copy to download - including incognito and other logins but because my default PC name is also my MS Windows live ID the same error was repeated.
I keep away from the non MS sites for these things and with good reason - there were heaps of similar users with the same issue or very close to it that had downloaded from a supposed MS copy from eValue or digital river etc and the next
thing was total corruption of the OS.
EVENTUALLY I found a LIVE MS chat on a support site in the US and she gave me a link to a slightly older version which will need updating and some reg edit changes but so far, so good.
The point is - what a crock !
I should be able to just keep all my software, drivers, updates, service packs, and versions that I have upgraded in the MS store.
If Microsoft aren't going to support XP or Office 2003 and eventually 2007, vista & Windows7 not far behind??? then that's still no excuse for them to put these restrictions and limits when I OWN my copy of the software!!
Unlike office 365 and SkyDrive space which is described in the T&C (that we all read before ticking that radial button to agree of course) as ONLY under a leased licence.
IF Microsoft can support AND develop software that supports SQL2000 Servers, why is it so hard to archive and keep the same info for everyone??? -
IFilter 9 not searching OCR .PDFs post SP2 for Office 2007 Servers
Prior to the installation of Service Pack 2 for Office 2007 Servers, .PDF files that were scanned in and then ran against Optical Character Recognition software could be searched with the iFliter 9 for Windows MOSS, x64. Now, those specific files no longer are searchable however; files that were converted directly from another application, such as MS Word or Excel, that were converted directly into .PDF files work fine. Has anyone ever seen anything like this or can give me a direction to go to get this resolved? Adobe's support for this product is non-existant and I am sure Microsoft will not be a help since it is not their product.
See if this discussion helps:
http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.sha repoint.general&tid=d11d3de7-8344-4dad-9f09-bd84c39e9817&mid=d11d3de7-8344-4dad-9f09-bd84c 39e9817&cat=en_US_2BE0F7C1-F80B-C480-EA27-790E679D7E1B&lang=en&cr=US&sloc=&p=1
or
http://www.adobe.com/special/acrobat/configuring_pdf_ifilter_for_ms_sharepoint_2007.pdf -
How to move an email from user mailbox to shared mailbox using apps for office mail app
How can I move an email from a users main mailbox to a shared mailbox using apps for office. I know I can do this manually but i am creating an for owa/outlook that would be a button to move the item. I have tried using ews but can only find
the commands to move emails inside the users mailbox
for example :
'<?xml version="1.0" encoding="utf-8"?>' +
'<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' +
' xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"' +
' xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"' +
' xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">' +
' <soap:Header>' +
' <t:RequestServerVersion Version="Exchange2013" />' +
' </soap:Header>' +
' <soap:Body>' +
' <m:MoveItem>' +
' <m:ToFolderId>' +
' <t:DistinguishedFolderId Id="junkemail" />' +
' </m:ToFolderId>' +
' <m:ItemIds>' +
' <t:ItemId Id="' + id + '" ' +
' ChangeKey="' + changeKey + '" />' +
' </m:ItemIds>' +
' </m:MoveItem>' +
' </soap:Body>' +
'</soap:Envelope>';
Can I create a xml that would would do this? Is there a way to do it using the EWS service reference. I do not want to use import/export to do this.yes I was able to make it work using Microsoft.Exchange.WebServices.Data and writing it as a web API, however i am unable to to authenticate the user if it is hosted on another server (without them retyping their password. I assume that
their is a matching java script version of what i am doing on the api side. I am just stuck trying to figure it out. the below code works as a Web Api if i could authenticate the user.
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013);
service.Url = new Uri("Ews url");
service.Credentials = CredentialCache.DefaultCredentials;
//service.UseDefaultCredentials = true;
// Create a new folder view, and pass in the maximum number of folders to return.
FolderView view = new FolderView(5);
// Create an extended property definition for the PR_REPLICA_LIST property.
ExtendedPropertyDefinition PR_REPLICA_LIST = new ExtendedPropertyDefinition(0x6698, MapiPropertyType.Binary);
view.PropertySet = new PropertySet(BasePropertySet.IdOnly, FolderSchema.DisplayName, PR_REPLICA_LIST);
// get to the inbox folder of spam mailbox
Mailbox SpamMailbox = new Mailbox("Smtp of other mailbox");
FolderId SpamInbox = new FolderId(WellKnownFolderName.Inbox, SpamMailbox);
Folder SpamFolder = Folder.Bind(service, SpamInbox);
FindItemsResults<Item> findItems = service.FindItems(WellKnownFolderName.JunkEmail, new ItemView(10));
foreach (Item item in findItems)
item.Load();
ItemId ItemToMoveId = new ItemId(item.Id.UniqueId.ToString());
Item ItemToMove = Item.Bind(service, ItemToMoveId);
ItemToMove.Move(SpamFolder.Id);
//item.Move(SpamFolder.Id); -
Presenter Plug in for Office 2007
hi! We were using Breeze for Office 2003, Power point 03 in
particular. Now, we are upgrading to Office 2007. Is the new
Presenter plug available for free just like the older version of
Breeze plugin? If the Presenter plug in is available for free
download. Please let me know where can i get it. Thanks.Presenter has never been a "free" download. If you are a
member of the Authors group in Connect then you can get your plugin
from the "Getting Started" link on your homepage. The current build
is Presenter 6.2 and it does work in Office 2007.
Jorma@RealEyes -
I am unable to use services for objects while creating a PO
Hi All,
I am unable to use services for objects while creating a PO ie in me21n / Me22n .
Our client wants to attach some doucument along with the PO, we want to use services for object for this. I use this services for objects in admin level , but unable to use this at user level.
System gives the following message
No service available
Message no. SGOS_MSG002
Regards
GsgHi,
Refer the following OSS notes 552127, 598073
For getting Object for services icon in ME21N and ME51N refer OSS note 913251 -
Problem with uploading data from excel using BDC for tcode f-02
Hi All,
I am uploading data from excel using BDC for tcode f-02. The problem here is, while recording, the values of some fields are recording twice. I dont know why it's happening so. But if I run my abap program, I have to give those fields twice in my excel sheet. Otherwise data does not upload. But it is not the feasible way. We must give those fields once in excel. Please tell me, how I can solve the issue.
With regards,
Rosaline.Hi,
in BDC each and every action is recording. If your press enter in same screen that also recorded once aging may be this is your case repeating field values will appear. we can solve the problem for repeat fields like below.
suppose in your excel having repeated field X1 X2 X3 the X2 contains repeated field X3 means delete the X3 field.
Now In your itab having X1 and X2 fields. While in the LOOP the ITAB pass the X2 field to repeated the fields.
LOOP at ITAB to WA.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_CURSOR'.
bdcdata_wa-fval = 'RM08M-EBELN'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'INVFO-BLDAT'.
bdcdata_wa-fval = wa-X2." 1st time pass the X2 fields
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'INVFO-BLDAT'.
bdcdata_wa-fval = wa-X2." pass the same value to repeated field
APPEND bdcdata_wa TO bdcdata_tab.
Endloop.
Hope you can understand.
Regards,
Dhina.. -
Mass upload Create External doc URLs using Services for object-Inspmethod
Hi All,
Services for object is not active during SHDB recording or ECATT recording in order to mass update Create External doc URLs using Services for object.
Any body know how to Upload this for any master data 9Insp plan/Material master etc..)Developing the program
-
Mass upload Create External doc URLs using Services for object-Materialmast
Hi All,
Services for object is not active during SHDB recording or ECATT recording in order to mass update Create External doc URLs using Services for object.
Any body know how to Upload this for any master data ex.Material master.ok
-
Zen V Plus support for Office 2007 Supp
Hi All?Anybody heard when the Zen V PLus will have support for Office 2007 to be able to synchronize contacts, etc.Message Edited by stevenvj on 06-20-200703:20 AM
well, I got a very very quick response from Creative. I don;t know if what they said to do will solve my problem but they sent a very detailed list of things to do so we are now off to copy the info from our zen v pluses in case we lose what we put on them and will post an update to let you all know if we solved this and how. While I am not impressed with the product at this moment if this works? then I will be very impressed with how this has been handled so far....
-
I am currently using Quicken for Mac 2007. Can I upgrade my os from 10.6.8 to Mavericks 10.9?
Eric Root wrote:
Or wait for the new version of Quicken for Mac which is scheduled to be released 1st quarter 2014 according to a response to a post I read on the Intuit site.
Eric:
You are more trusting of "waiting" for Intuit to live up to their promises than I am!
From Baltwo's quoted article:
This happened when Lion released and Apple decided to remove Rosetta which was a software tool to allow old software to run on the new Intel based Macs. It took a bunch of developers 8 months to get 2007 working again on Lion even though they didn’t add any new features.
Intuit had six years notice that Rosetta was a temporary solution to its PPC versions of Quicken, yet waited until Apple finally removed Rosetta from Lion before instituting its programming for an Intel version!?!
This is very consistent with their history of how they treat their Mac customers relative to their Windows customers...
Morale of the story... don't wait! For $15, start using Quicken now. -
How do I keep formatting while importing/exporting from/to excel using Numbers for Ipad
I have an excel file that I export to Numbers on my Ipad. The problem is I lose all of my formatting. I use a lot of linking cells in the excel version of the file. And even when I work on the Numbers version of the file and put in the pop up menus, I lose those when I export to excel. Is there any way to keep this formatting when exporting/importing?
Thanks for the help.Migintosh, I hadn't thought of that, but turns out that is my problem. I seems when I place the file, indesign in automatically changing those values. Is there a way to force indesign keep those at 0 (or whatever value I want) as I place the text? Right now, what happens is I place the text and then have to select all and manually set the before and after to 0 since indesign decides to change the after spacing to 0.1389.
-
Web Location URLs for Office 2007 documents (pptx, xlsx, docx) not working
In our current Content Server solution implemented, each content has a Web Location URL and a Native File associated with it. The Web Location URL(for a content in Public security group) is of the following format:
http://ucmurl/groups/public/intranetcontent/CONTENT_ID.doc
So far when a user clicks on this link, they are just presented with an 'Open' 'Save' dialog box, which clearly shows that UCM identifies this file format. So for a Word 2003 document called test.doc, the Open-Save dialog box says:
Name: test.doc
Type: Microsoft Word document..etc.
The behaviour is the same for all Office 2003 documents, pdfs and images. However, it seems like UCM does not identify Office 2007 documents. When I check-in a content - test.pptx, and click on the Web Location URL, it prompts me to Open/Save a 'ZIP' file, which is what UCM does for any unidentified file formats.
Any suggestions on how to fix this?
The file formats under configuration manager have been updated to include the following formats with PASSTHRU conversion (since we dont need any conversion on these):
pptx: application/vnd.openxmlformats-officedocument.presentationml.presentation
docx: application/vnd.openxmlformats-officedocument.wordprocessingml.document
xlsx: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
The desired functionality is that when the user clicks on web location url, UCM should identify these file formats, and NOT consider them as ZIP files. Any help would be greatly appreciated.Try these - if you're using IIS. If not, them something similar should fix.
Update IIS to include additional MIME types
Also, if you want to add all of the Microsoft Office 2007 mime-types to IIS in one step you can do this:
1. Stop IIS
2. Edit the metabase XML file (C:\WINDOWS\system32\inetsrv\MetaBase.xml) using a text editor.
3. Search for the <IIsMimeMap Location="/LM/MimeMap" …> element and append the lines below to the MimeMap attribute
.docm,application/vnd.ms-word.document.macroEnabled.12
.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document
.dotm,application/vnd.ms-word.template.macroEnabled.12
.dotx,application/vnd.openxmlformats-officedocument.wordprocessingml.template
.potm,application/vnd.ms-powerpoint.template.macroEnabled.12
.potx,application/vnd.openxmlformats-officedocument.presentationml.template
.ppam,application/vnd.ms-powerpoint.addin.macroEnabled.12
.ppsm,application/vnd.ms-powerpoint.slideshow.macroEnabled.12
.ppsx,application/vnd.openxmlformats-officedocument.presentationml.slideshow
.pptm,application/vnd.ms-powerpoint.presentation.macroEnabled.12
.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation
.xlam,application/vnd.ms-excel.addin.macroEnabled.12
.xlsb,application/vnd.ms-excel.sheet.binary.macroEnabled.12
.xlsm,application/vnd.ms-excel.sheet.macroEnabled.12
.xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xltm,application/vnd.ms-excel.template.macroEnabled.12
.xltx,application/vnd.openxmlformats-officedocument.spreadsheetml.template
4. Save the C:\WINDOWS\system32\inetsrv\MetaBase.xml file
5. Start IIS
6. Perform Collection Rebuild on Content Server -
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
Maybe you are looking for
-
Hp laserjet 1000 series for windows 7
friend, I had a question for you, I have an HP LaserJet 1000 printer series but now I get a new computer with Windows 7, but do I not found hp 1000 printer drivers, pls send me the link or drivers ready
-
Hi. Been trying to download ios5 to my iPad. Can't progress at all. Can anyone help.? Thanks, Shaun
-
I want all passwords, browsing history, everything to clear when I shut down. Currently, it maintains my logins for certain sites. Due the confidentiality of my work, I do not want this to happen. I went to options and set it to clear upon closing, b
-
Hi, When a Recuitment Administrator is trying to access Support Groups under User Maintenance he is getting an error, "No authorization for Support Groups". Our HR and basis team have confirmed that all the necessary roles have been assigned. Please
-
Can't open iphoto library after software update
Hello, I recently updated to iPhoto 2.0.1 and now can't open my photo library. Here's the error msg i receive when i open the app: "You can't open your current photo library using this version of iPhoto. You have made changes to your photo library us