Problem in downloading top-of-page to excel
Hi All,
I have developed a report using OOALV. Im using split containers to display the data of Docking container.
The problem is when I'm downloading the report to excel, its only printing the main data from bottom container. Its not displaying the top-of-page data, which is printing in top container.
Here is the sample code, which Im using to print the top-of-page.
CALL METHOD o_document->new_line. (SAMPLE CODE)
***Fiscal Year
CLEAR:v_string.
CONCATENATE 'Run Date:'(143) v_print_date INTO v_string SEPARATED BY space.
CONDENSE v_string.
* Adding Text
CALL METHOD o_document->add_text
EXPORTING
text = v_string.
* Display the data
CALL METHOD o_document->display_document
EXPORTING
parent = o_top_container.
* Calling the method of ALV to process top of page
CALL METHOD alv_grid->list_processing_events
EXPORTING
i_event_name = 'TOP_OF_PAGE'
i_dyndoc_id = o_document.
Please advise me how to download the data along with the top of page from OOALV output.
Thanks,
Priya
Hi Priya,
Sorry for the delay.. here
Simple explanation...
ABAP - OLE Automation using MS-Excel - Code Gallery - SCN Wiki
You can find a detail doc here
http://www.heyiamonline.com/abap/pdf/ABAPOLEAUTOMATION.pdf
Regards
Similar Messages
-
Reg: Download alv grid data with top of page into excel sheet
Hi All,
I have a selection screen with radio button for download .
If that radio button was selected then the data will download into excel sheet (like if we execute normal ALV grid display from there we can download top-of-page and body as it is).
AOO : 2009P
Fiscal year : 2009
Posting period : 00
Local Currency : USD
CO Area Currency :
Accounting standard:
Sector : 23
BB code Period Value LC Periodic Quantity
AHDKGKAJ 200 0Did not get your question
-
Problem while displaying top of page in list display
Hi,
M facing problem in displaying top of page in list .
M using following methods:-
lr_outer_grid TYPE REF TO cl_salv_form_layout_grid,
lr_inner_grid TYPE REF TO cl_salv_form_layout_grid,
lr_label TYPE REF TO cl_salv_form_label,
lr_text TYPE REF TO cl_salv_form_text.
For displaying the top of page m using event TOP_OF_PAGE.
CREATE OBJECT lr_outer_grid.
*Outer grid
lr_inner_grid = lr_outer_grid->create_grid(
row = 1
column = 1 ).
*... create lable information in inner_grid
User ID
lr_label = lr_inner_grid->create_label(
row = 1
column = 1
text = text-h03 ).
*... create text information in inner_grid
lr_text = lr_inner_grid->create_text(
row = 1
column = 2
text = sy-uname ).
*... set label for text
lr_label->set_label_for( lr_text ).
But while m going to do same coding for second parameter its not intializing length so adding extra spaces while displaying second row.
e.g
USERID abcdefghjik
PLANT jhk to hjk
I want that output should look like
USERID abcdefghjik
PLANT jhk to hjk
Please tell me the solution what should i do for avoiding extra spaceHi Neelema,
You could try this sample code.
[http://sap-img.com/fu037.htm]
[http://sap-img.com/abap/sample-alv-heading-in-alv.htm]
Regards,
Amit. -
Problem in downloading an html page that contains images
Hi,
This is surekha
I am facing a problem in downloading an html page that contains images
The file is downloading , but when I access the the downloaded file it displays X marks in the place where images r present....
How can i download a html file along the images it contains
Please help me ...........Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
http://forums.mozillazine.org/viewforum.php?f=25 <br />
You'll need to register and login to be able to post in that forum. -
Facing problem while downloading ALV grid Output into Excel
Hi Guys,
I am facing problem while downloading ALV grid Output into Excel.
It is downloading into excel, but all character columns first and next all quantity columns it is displaying. But I need columns order as it is in the grid.
If I take all columns as characters it works fine. But it will be problem for calculating total, subtotals of quantity columns
Can someone help me regarding this
thanks for your helpHi,
Open up Excel on your desktop. Goto Tools > Macro > Security.
Make sure that your security is set to Medium (or less). SAP uses OLE automation to run the Excel instance and in Office 2003 (for example), Microsoft has increased their default security setting to High. With the High setting, the output to Excel fails.
Was this your problem? Don't forget those points, either.
check with this wetther it is solved or not.
Regards,
sana. -
Hi All,
I am having a ALV report .Once i execute the report there will be ALV output once i click on the Material no((Hot spot)) in the output it ll take to the another ALV report.The problem is how to get the top of page in the second alv...The top of page in the second ALV should be different..
Is it possible to do this?Pls reply asap.
Thanks
Raj.Hi Arun,
It is not working in the way you have given.
Hi All,
Is there any way to do this ???
Thanks
Raj. -
Problem while downloading Chinese chatracters into an excel file
Hi All ,
While downloading Chinese characters into an excel file , using GUI_DOWNLOAD function module , im getting JUNK Characters instead of chinese characters.
But if im downloading the same chinese data into an text file or unix file , there is no such problem.
Thanks in advance and points will be rewarded for helpful answer.
Regards,
K.S.RHi, I have the same problem. Anyone has solution now?
Wu Hao
2008/08/21 -
Download entire dashboard page to excel or powerpoint
Hi all,
I have a requirement to download entire Dashboard page in obiee 10g version ...not report by report but the entire page. Please let us know if its possible and how?
Thank you
Edited by: 991740 on May 13, 2013 9:07 AMThank you Srini, but I check it before and found that i get a line instead of entire graph and it is def not wanted
"a class="NQWMenuItem" name="pdf" href="javascript:void(null)" onclick="return PortalPrint('saw.dll?Dashboard&_scid=KLMwSV8VpLQ&PortalPath=/shared/WDI\x2520Reports/_portal/Continuous\x2520Improvement&Page=Well\x2520Overview\x2520-\x2520Tier\x25201&Action=Print&Format=excel',true);">Excel "
Do I have to change anything to make the above code work?
Edited by: 991740 on May 13, 2013 9:45 AM
Edited by: 991740 on May 13, 2013 9:46 AM
Edited by: 991740 on May 13, 2013 9:47 AM -
Problem in ALV top of page event
Hi,
Have created a report in ALV and used top of page event to display the header details, where i am doing some calculations and the value is appearing in top of page, but when i take print out (or see print preview), the top of page contents are not visible, is there any way so that i can print the top of page also.
Thanks in Advance
SantoshHi this might help u.
*& Form BUILD_LAYOUT
Build layout for ALV grid report
form build_layout.
gd_layout-no_input = 'X'.
gd_layout-colwidth_optimize = 'X'.
gd_layout-totals_text = 'Totals'(201).
gd_layout-totals_only = 'X'.
gd_layout-f2code = 'DISP'. "Sets fcode for when double
"click(press f2)
gd_layout-zebra = 'X'.
gd_layout-group_change_edit = 'X'.
gd_layout-header_text = 'helllllo'.
endform. " BUILD_LAYOUT
with regards,
Hema Sundara.
pls give points if u find it helpful. -
Formatting problem when downloading classical report output to excel sheet.
Dear Experts,
My classical report o/p looks like:
SI Name ID
1 xyz 11
2 abc 22
3 eet 33
4 jnc 44
When I download the same to a excel sheet from List->Save->file->Spreadsheet and save it.
The formatting looks like this:
SI Name ID
1 xyz 11
2 abc 22
3 eet 33
4 inc 44
That is the heading and column entries are in different columns.
There is no GUI_Download used.
Kindly help what may be the issue.Hi,
In the report output the formatting looks fine. It is exactly below the heading. But only when I save it to excel, this alignment issue is coming. Even the columns after this column are are properly aligned and there is no issue at all. Only this column in the middle has issue. -
Problem in download ALV o/p in excel??
Dear expert,
I have one ALV program.It has 62 Column.When data is more at that time I download o/p of this program to excel then one blank line is coming after every row.But if data is not more than this problem is not occured.
I want to know what is the max length or width of ALV o/p. (Total of all column length).
When data is high at that time in print previw last column is automaticaly comes in next line.So I think it may be length or width problem.
Plz tell me the solution as soon as possible.Hi,
There is no limit on number of columns.
Try increasing the line-width of the report.
On the first line enter the line-width:
REPORT ZPROGRAM
NO STANDARD PAGE HEADING
LINE-WIDTH 350.
This would solve your problem.
Regards,
Subramanian
Edited by: Subramanian PL on Jun 24, 2008 9:44 PM -
Problem while downloading a ALV report to excel
Hi experts,
I have an ALV report which took long time to extract records from various table. So while there is some restriction the report can be executed well in foreground. And the report can be extracted well to excel sheet. But while there is hudge records, i have to execute the report in backgroung. And then from spool i generally prefers to download the report to excel.
There is a field UOM where it contains value ' " ' for some records. And also there may be possiblity that other fields can also contain the same.
Now my problem is: while download to excel... When ever there is a value ' " ' from this point to the next value ' " '. It is treating as one record. and keep that in a same position in the excel sheet.
But i want to keep all the values in there respective fields. Can you please how can i do that? Please give me some solution...
regards,
charles.If anybody have any solution please send me....
-
Problem while downloading the alv output to excel file.
Hii,
While downloading the alv output to an excel file i am facing a problem. Either the output comes as 1.23456E+11 or the values get cut .
Cant put in txt file as the users require to calculate directy and i have even tried to increase the output length .But both doesnt help.
So what are the other ways to do so.
Edited by: mansi_v27 on Mar 24, 2010 12:35 PMHi,
Welcome to SCN!!!.
Please go through the forum rules. This has been discussed many times. You can search in the forum for this.
Infact there is no problem. Just expand that excel cell. You can see the full value. This is standard excel property.
Thanks,
Vinod. -
Weird problem when downloading the output to an excel sheet
Hi to all,
when i download the list, output by an alv grid, i observe a weird problem..in the excel sheet the last digit (10th digit) of the first col. which is delivery no., is getting truncated...0001802563 is getting downloaded as 000180256..couldn't understand why...when i use conversion_exit fm, the values are not getting truncated and downloading correctly...curious to know what's gone wrong in this funcationality? thanks all
cheers,
Shankar. M.actually the problem is in the field catalog.if u can send me the code, i shall bug fix it for u.
-
OS is Windows 2000. Problem is with websites in general. Pictures are frequently missing or are blank unless download is attempted more than once. Ads are frequently downloaded as blank.areas. No problems downloading text only sites. PDF file downloads are sometimes stopped.
When web pages are printed using HP software, sometimes the printing is "padded" before and after with blank pages, or the range of pages is incomplete both in the printing review and the printed results. This does not happen when printing from the IE browsers supported by the OS.It is possible that your security software (firewall, anti-virus) blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full, unrestricted, access to internet for Firefox and the plugin-container process and the updater process.
See:
*https://support.mozilla.org/kb/Server+not+found
*https://support.mozilla.org/kb/Firewalls
*https://support.mozilla.org/kb/fix-problems-connecting-websites-after-updating
Do a malware check with several malware scanning programs on the Windows computer.<br>
Please scan with all programs because each program detects different malware.<br>
All these programs have free versions.
Make sure that you update each program to get the latest version of their databases before doing a scan.
*Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
*AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
*SuperAntispyware:<br>http://www.superantispyware.com/
*Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
*Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
*Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
*Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
You can also do a check for a rootkit infection with TDSSKiller.
*Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
See also:
*"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
Maybe you are looking for
-
How do I create a new backup with my iphone?
I lost my harddrive with my backup, I now have a new computer but I can't create a backup of my iPhone... Is there a way to reset my backup computer to be my new one?
-
Is there a plug-in for the split screen effect?
I have a whole bunch of these to do - putting two clips side-by-side simultaneously on the screen. I was just wondering, is there a plug-in that automates this, or makes it a little easier, or do I still have to do each one manually, using the Motion
-
Hi all. A request for a change in the toolbar. Every time I do something the toolbar always changes to the last tool used. Maybe an option to have the toolbar always in the "normal" view, i.e., display all the tools? It gets annoying to keep having t
-
Starting WebLogic Commerce as an NT Service
Hi. I have tried running the WebLogicCommerce Server as an NT service, using the wlservice from the weblogic/bin directory, and setting correctly the environment properties needed for running the commerce. It seems to start.... When I run the portal
-
Error message uploading 0material text and attributes.
Dear all, i have received an error message when uploading 0material text and attributes. Error message is as follows: RSDMD 194 Data record 512 & with the key '000000000000000081T &' is invalid in value '000000000000000081 &' of the attribute/charact