Need to export header created in splitter container in Excel using OO. How?
Hi,
I am using Object-Oriented ALV and have a header created using cl_gui_splitter_container containing the parameter selections from the front screen.
I have got the header to appear differently when printing out using the print_top_of_page event but the user wants the parameters listed to also appear when they export it to a spreadsheet. The toolbar that comes together with ALV grid table only exports the internal table, and not the header. I do not really want to add lines to the report table before output. Is there another way to export the header into Excel using Object-Oriented ALV?
Thanks in advance.
Larissa
Hi Robert,
I don't think it is a good idea to deliver all PivotTable report to end user via E-mail, and SQL Server PowerPivot for Excel doesn't support to deliver PivotTable report to end user without PowerPivot data inside in the data model. For example, I suppose
we create a PivotTable to display the SalesAmount of US in pervious years(eg:2012, 2013, 2014), how can we dynamic show the value based on end user selection without PowerPivot data model data(The PivotTable report don't have data source)?
So, one workaround that we can create a shared folder to store all of PowerPivot report for all of end user in the domain environment, and then inform end users to copy the PowerPivot reports what they want via E-mail.
If the end users aren't in domain environment, we can implement the VPN soltion to achieve this.
Regards,
Elvis Long
TechNet Community Support
Similar Messages
-
Need help in exporting Book(Created in HFR) into to excel
HI,
I have created BOOK in workspace (System 9) using HFR reports.
I have a problem to export the BOOK into excell.
Please provide me the solution for this issue.
Thanks,
Shanti.Hi,
When I am trying to export the HFR report into Excel, getting the below error. Could you please advice me on how can I export the Report into excel.
Version is HFR 9.2.
Thanks alot in advance for your help.
From: Hyperion Reports Export
Subject:
Date: Wed, 15 Sep 2004 14:21:07 -0400
MIME-Version: 1.0
Content-Type: multipart/related;
type="text/html";
boundary="----=_NextPart_4395951"
X-MimeOLE: Produced By Hyperion Reports 7.2
This is a multi-part message in MIME format.
------=_NextPart_4395951
Content-Type: text/html;
charset="utf-8"
Content-Location:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -
Exporting CRM 2011 SSRS 2008 report to excel uses old Excel 1997-2003 version
The Notes field is appearing cut off on the exported excel spreadsheet. I am wondering if it is related to the version of excel when exporting from CRM report. The only option is MS Excel 1997-2003, when in fact we have MS Office 2010 installed. How can
I get the report export to excel to use the 2010 version? Will this clear up the issue of the excel cell from being too small to dispay the entire field? Any help would be appreciated, Thank you, Mark A MHi Mark A M,
In SQL Server 2008 Reporting Services, the Excel rendering extension renders a report that is compatible with Microsoft Excel 1997-2003. This is the unique renderer for Excel renderer in SSRS 2008. Since SSRS 2012, the default Excel renderer is the version
compatible with Microsoft Excel 2007-2010. So we cannot export the report to excel use Microsoft Excel 2007-2010 version in SSRS 2008. This is by design.
As to your issue, please note that the width of the column in Excel which inherit the width in the report. So we need make sure the cell width is sufficient to display the Notes field in report.
Reference:
Exporting to Microsoft Excel (Report Builder 2.0)
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Can i export documents created in pages so that people using word can read them
If I create documents in Pages, Numbers, and Keynote, can I save and export them as Word, Excel, and Powerpoint documents so that my pc using friends can open and read them?
Hi David C-B,
Welcome to the Support Communities!
The article below may be able to help you with this:
Pages '09: Exporting to other file formats
http://support.apple.com/kb/HT3705
Word files can be opened and edited in Microsoft Word on a Mac OS X computer or on a Windows computer.
Cheers,
- Judy -
How splitter container is useful to show multiple lines of heading in ALV
Hi,
I have a requirement to develop an ALV grid with below layout:
Past
Future
| F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 |
I read forum blogs and found that splitter container can be used to develop such layout. Can anybody pleae let me know how to do so? As per my understanding first container will have headings ( Past & Future) and second container will hold headings (F1, F2...) as well as data. Since each container has a grid and for each grid we have to pass a fieldcatlog and an internal table how can we display only headings in First conatiner.
Rgds
SidHi sudhanshu,
solution may exist in theory (only).
I do not know a working solution yet. When ALV was first introduced some 12 or more years ago, the column width was specified as a number of characters ignoring that a proportional font will not match this.
With introduction of the grid, the scaling is free and can be done in the GUI on a (display) pixel base. I tried a lot with dynamic scaling of containers and had to learn that there is still a big optimizing potential for the SAP infrastructure.
Right now it seems as the architects try to get everything working as well on (old-style) SAP GUI, also WEB GUI, also java-based web services. The downside is that looking at it from the distance it is nice, going into the details, most (or much) is missing, undocumented or not working properly.
For the time being you may replace detailed functionality by an impressive background picture
Regards,
Clemens -
Docking and splitter container
Hi,
I need to create 2 containers as per the attached document, that are resizeable in both x and y axis.
I have been able to do this, similar to in transaction DWDM, where I have 2 cl_gui_container's inside a customer container.
But this solution does not allow resizing in the vertical axis, as they are tied inside the "fixed" customer container.
Is there a way to create the docking and splitters that allow both axis resizing?
Thanks
TonyHi Tony,
of course you can create both types of containers (docking and Splitter).
Here is an example to create a splitter container :
Data declarations:
DATA: lo_gui_container_head TYPE REF TO cl_gui_container,
lo_gui_container_costs TYPE REF TO cl_gui_container,
lo_gui_splitter_container TYPE REF TO cl_gui_splitter_container,
lo_event_receiver TYPE REF TO lcl_event_receiver,
lo_event_receiver_head TYPE REF TO lcl_event_receiver_head,
lo_custom_container_head TYPE REF TO cl_gui_custom_container.
part from the source code :
CREATE OBJECT lo_custom_container_head
EXPORTING
container_name = 'ALV_GRID'.
*Create SPLITTER and SPLITTER panes
* here we can define if splitters are horizontal or vertical:
IF rb_hori IS INITIAL.
lv_rows = 2.
lv_columns = 1.
ELSE.
lv_rows = 1.
lv_columns = 2.
ENDIF.
* create splitter:
CREATE OBJECT lo_gui_splitter_container
EXPORTING
parent = lo_custom_container_head
rows = lv_rows
columns = lv_columns.
* Splitter for Header
CALL METHOD lo_gui_splitter_container->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = lo_gui_container_head.
CALL METHOD lo_gui_splitter_container->set_row_height
EXPORTING
id = 1
height = 20.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* 2nd Spiltter for details:
CALL METHOD lo_gui_splitter_container->get_container
EXPORTING
row = lv_rows
column = lv_columns
RECEIVING
container = lo_gui_container_costs.
* splitter for header
CREATE OBJECT alv_head
EXPORTING
i_parent = lo_gui_container_head.
* Objekt ALV grid mit splitter anlegen:
CREATE OBJECT alv_grid
EXPORTING
i_parent = lo_gui_container_costs.
* create handlers for both spitters :
CREATE OBJECT lo_event_receiver_head.
CREATE OBJECT lo_event_receiver.
SET HANDLER lo_event_receiver->handle_hotspot_click FOR alv_grid.
SET HANDLER lo_event_receiver_head->handle_double_click FOR alv_head.
SET HANDLER lo_event_receiver_head->handle_toolbar FOR alv_head.
SET HANDLER lo_event_receiver_head->handle_before_user_command FOR alv_head.
SET HANDLER lo_event_receiver_head->handle_hotspot_click_head FOR alv_head.
* display both tables in the spitters:
CALL METHOD alv_head->set_table_for_first_display
EXPORTING
is_layout = ls_layout
it_toolbar_excluding = lt_toolbar_excluding[]
i_default = lv_default
i_save = lv_save
is_variant = ls_disvarhead
CHANGING
it_outtab = gt_head[]
it_fieldcatalog = gt_cathead.
CALL METHOD alv_grid->set_table_for_first_display
EXPORTING
is_layout = ls_layout
is_variant = ls_disvariant
i_default = lv_default
i_save = lv_save
it_toolbar_excluding = lt_toolbar_excluding[]
CHANGING
it_outtab = gt_details[]
it_fieldcatalog = gt_fieldcatalog[]
it_filter = gt_filter[].
Hope this helps
Regards
Fred -
Dynamically extension of splitter container
Hello,
I want to create a splitter container with 1 column and n rows. After the user klicked a button, I need n + m rows. I don´t want to destroy the actual object and create a new one with n + m rows, I want to extend the actually object.
I used the methods SET_GRID and ADD_CONTROL, but I don´t get the supposed result.
Can anybody help me?Hello,
I had the same Problem and after a long time's reflection I solved it with the Method Add_control. But its a litle Bit tricky.
First you have to create an new Splitter ( wiith the same container as the old one). Then you habe to add the references of the old n grids into the new_splitter. Afterwards create the m new grids and fill them.
Then - very importent free the old splitter. And afterward set the reference of the new one to the old one.
Here ist some of my conding for m = 1.
DATA new_splitter TYPE REF TO cl_gui_splitter_container.
DATA mygrid TYPE REF TO cl_gui_alv_grid.
DATA mycont TYPE REF TO cl_gui_container.
row = row + 1.
CREATE OBJECT new_splitter
EXPORTING
link_dynnr = '0100'
link_repid = sy-cprog
shellstyle = shellstyle
left = left
top = top
width = width
height = height
metric = cntl_metric_dynpro
align = 15
parent = r_container
rows = row
columns = 1.
LOOP AT i_grid INTO mygrid.
new_splitter->add_control( row = sy-tabix
column = 1
control = mygrid ).
ENDLOOP.
mycont = new_splitter->get_container( row = row
column = 1 ).
CREATE OBJECT grid
EXPORTING
i_parent = mycont.
APPEND grid TO i_grid.
r_splitter->free( ).
r_splitter = new_splitter.
Greetings Eugen Schelling -
Splitter-container calling standard transaction
We want to create a splitter-container with two elements:
- Left side displays a control tree (this is OK)
- Right side displays a standard transaction such as VA03 (not sure how to do this bit)
Any help would be greatfully received
PeteAHi,
Here is a sample program which implements a docking container with a splitter.
data: docking_left type ref to cl_gui_docking_container,
dock_sub_cont1 type ref to cl_gui_container,
dock_sub_cont2 type ref to cl_gui_container,
alv_bottom type ref to cl_gui_alv_grid,
splitter type ref to cl_gui_splitter_container,
html_viewer type ref to cl_gui_html_viewer.
parameters: p_check.
at selection-screen output.
data: it001w type table of t001w with header line.
data: repid type sy-repid.
data: url(255).
repid = sy-repid.
if docking_left is initial.
Create the docking and splitter containers
create object:
docking_left
exporting repid = repid
dynnr = sy-dynnr
side = docking_left->dock_at_left
extension = 525,
splitter
exporting parent = docking_left
rows = 2
columns = 1.
Set the splitters.
call method:
splitter->set_border
exporting border = space,
splitter->get_container
exporting row = 1
column = 1
receiving container = dock_sub_cont1,
splitter->set_row_height
exporting id = 1
height = '25',
splitter->get_container
exporting row = 2
column = 1
receiving container = dock_sub_cont2.
HTML control in the first container
create object html_viewer
exporting parent = dock_sub_cont1
exceptions cntl_error = 1
cntl_install_error = 2
dp_install_error = 3
dp_error = 4.
call method:
html_viewer->load_mime_object
exporting
object_id = 'HTMLCNTL_TESTHTM2_SAPLOGO'
object_url = 'SAPLOGO.GIF'
importing
assigned_url = url
exceptions object_not_found = 1
dp_error_general = 2
dp_invalid_parameter = 3,
html_viewer->show_data
exporting url = url
exceptions cntl_error = 1.
ALV grid in second splitter container.
select * into corresponding fields of table it001w
from t001w.
create object alv_bottom
exporting i_parent = dock_sub_cont2.
call method alv_bottom->set_table_for_first_display
exporting
i_structure_name = 'T001W'
changing
it_outtab = it001w[].
endif.
*Reward points
Regards -
Hi Experts,
My requirement is to create a docking container on a subscreen.
How to create such docking container ?
Thanks
Alok VishnoiHi Alok ,
Try to do below
data: docking_container type ref to cl_gui_docking_container,
splitter_container type ref to cl_gui_splitter_container,
top_container type ref to cl_gui_container.
* Create container for alv tree
create object docking_container
exporting
side = cl_gui_docking_container=>dock_at_left
extension = 270
repid = sy-repid
dynnr = '100'.
if not docking_container is initial.
* Creating object for splitter container
create object splitter_container
exporting
link_dynnr = '100'
link_repid = sy-repid
parent = docking_container
rows = 1
columns = 1.
endif. " IF NOT docking_container IS INITIAL
if not splitter_container is initial.
* Method to get the container name of top splitter area of docking container
call method splitter_container->get_container
exporting
row = 1
column = 1
receiving
container = top_container.
endif. " IF NOT splitter_container IS INITIAL
you can check more info on my reply of below thread
https://www.sdn.sap.com/irj/scn/profile?userid=3925441
hope this info is useful to you.
Thanks!
Edited by: Prasanth Maddela on Apr 22, 2009 5:34 PM -
Alright, I've been working on a slide show animation for sometime now, but I need to export it to wordpress and I can't exactly understand how to do it correctly. I've even used the edge wordpress plugin, but it doesn't seem to work at all (I tried on two different sites, first seems to be a projram script error, the other site didn't upload anything). I've done a few of the tutorials floating around but none of them make sense to me, I don't know exaclty which parts of code to edit and in which clients to work them in. If someone could help make these five hours of confusion make sense for me that that would be amazing.
Where should I start on trying to get my animation to wordpress?I've come with the same issue myself. I love Adobe Edge and i find it dead easy to make wonderful stuff there, though making it work in Wordpress has become a challenge. I followed the instructions in this video and in this guide and they seem to work only if you happen to use wordpress with a plain theme with no fancy jquery animations and functionality using these libs. I tried intergrating an Edge animation in my wordpress site, though because i happen to use a theme with a slider which uses jquery, when following the instructions step by step then neither the slider worked neither the edge animation itself. I found somewhere that you need to edit some .js libs using the noconflict mode though that did not work either (it was an example for joomla).
I tried installing the Edge Suite wordpress plugin which is still in developing stage. You need to export your Edge composition using the File > Publish tool found in edge in order to import the .aom files. Unfortunatelly no luck with that. I'm still looking for a solution in order to make animations for my website. I sent a tweet to Adobe Edge and they refered me to the support forums. Uhg!
I'm sure there's a workaorund using the .js libraries. Im not experienced with them so i'll have to wait for a solution to come about. I'm sorry for not helping though be sure to check the links above -
What capture card do i need to export to digi beta recorder dvw-m2000p
hi i have just purchased a Sony dvw m2000p digi beta deck and need to export my movies to the deck. we are using premier pro sc5.5 and want to know what capture card to use. can you help.
regards,I will start by saying that I have never done an export to tape but my Blackmagic Studio card has all the correct outputs for working with tape.
-
How to Export data from a Table to Excel using PL/SQL Code
Hi,
I need to export data from a table to the excel sheet using PL/SQL script.
could you pls provide with custom codes or sample procedures.
Bobbyhttp://asktom.oracle.com/pls/ask/f?p=4950:8:7947129213057862756::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:728625409049
-
Create PDF button gone from Excel worksheet
Recently had to restore computer back to factory. I installed full CS4 WebSuite which includes Acrobat. I used to have a PDF button in Excel that would let me create a PDF from an Excel worksheet. How do I get that back? I used to use Office 2003 and now I use Office 2013.
Thanks so much in advance!The store is at http://www.adobe.com/products/acrobatpro/buying-guide-upgrade-pricing.html. If you click the upgrade option, you will see the option to upgrade to AA XI from the AA X Suite (whatever that is, I assume CS) or from individual products. In your case it is not an individual product, but a suite. If you have questions or want to see if you can get a deal, you will have to call the Adobe sales folks. We can only repeat what we see and have heard from others (except for those folks who have the suite).
You can still print to the Adobe PDF printer from Excel 2013, if you can get AA9 to work on Win8 (an outside chance, but may require some workarounds). You would just not get links or bookmarks. You might see if there is a MS plugin for creating PDFs from Excel. If there is, you might be able to create the PDFs that way and edit in Acrobat 9. -
How to export the data to Multiple sheet in Excel
Hi,
How can I export the data to multiple sheets in excel using Crystal Report XI.
Thanks,
Baski.
Edited by: J_Baskaar on Mar 31, 2010 8:14 AMOne of the 3rd-party Crystal report schedulers listed at http://www.kenhamady.com/bookmarks.html allows you to burst a report so that each group at level 1 becomes a separate worksheet inside a single workbook.
-
How to display 3 alv with top-of-page using splitter container
Hi,
I want to display 3 different alv in a single container corresponding to the 3 check boxes on selection screen.
i.e.
If user selects 1 check box only one alv should be displayed, if 2 checkboxes selected by user 2 alv should be displayed and same for 3.
I cannot use 3 different containers bcoz if second checkbox is not selected then that place remains blank. So I am using single container and using splitter container dividing it into the no of rows corresponding to the no. of checkboxs selected by user.
Now I also want to display top-of-page for each alv. Please guide me how to achieve this.
Thanks & regards,
Harshadacreate with some IF_ELSE conditions as i have done below. in my case the same things are required. if error table is there only then it will be displayed, else only output will be displayed.
* First Main Container
CREATE OBJECT obj_main1
EXPORTING
container_name = 'CC_CONTAINER'
style = cl_gui_custom_container=>ws_maximizebox.
* create top-document
CREATE OBJECT obj_dyndoc_id
EXPORTING
style = 'ALV_GRID'.
IF pr_view EQ c_x OR pr_stat EQ c_x.
* First Splitter Container
CREATE OBJECT obj_splitter1
EXPORTING
parent = obj_main1
rows = 2
columns = 1.
* Place obj_parent_html in First row First column
* for Top_of_page
CALL METHOD obj_splitter1->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = obj_parent_html.
* Place obj_container1 in Second row First column
CALL METHOD obj_splitter1->get_container
EXPORTING
row = 2
column = 1
RECEIVING
container = obj_container1.
* Set the height of Top of page
CALL METHOD obj_splitter1->set_row_height
EXPORTING
id = 1
height = 24.
ELSEIF pr_email EQ c_x.
* First Splitter Container
CREATE OBJECT obj_splitter1
EXPORTING
parent = obj_main1
rows = 3
columns = 1.
* Place obj_parent_html in First row First column
* for Top_of_page
CALL METHOD obj_splitter1->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = obj_parent_html.
* Place obj_container1 in First row First column
CALL METHOD obj_splitter1->get_container
EXPORTING
row = 2
column = 1
RECEIVING
container = obj_container1.
* Place obj_container2 in Second row First column
CALL METHOD obj_splitter1->get_container
EXPORTING
row = 3
column = 1
RECEIVING
container = obj_container2.
* Set the height of Top of page
CALL METHOD obj_splitter1->set_row_height
EXPORTING
id = 1
height = 24.
ENDIF.
Please note there is no need to create a hEADER in the container, but create it for the 1st table only which is always displayed
ags.
Edited by: ags on Nov 4, 2009 4:49 PM
Edited by: ags on Nov 4, 2009 4:50 PM
Maybe you are looking for
-
while updating to the new ios5 softwhere error 1602 appeared now iphone is not responding,
-
Formatting Excel while rendering from Servlet
I am invoking & displaying contents/data from servlet to Excel using following: response.setContentType("application/vnd.ms-excel"); response.setHeader("Content-Disposition"," attachment; filename=\"ClientOperationsReport.csv\""); Before displaying I
-
How do I set file association in PCMANFM?
Sorry, I thought PCMANFM was messing my file associations but it was the upgrade to shared-mime-info 0.4. I'll repost on a different forum. Sorry again. Last edited by benton (2008-06-25 03:42:40)
-
Strange image when trying to boot from os disk??
So I was trying to boot my macbook from the os disk it came with because it was stuck on the gray apple and spinning wheel screen..Then this came up and its been stuck on it since. I can't move the mouse and none of the keys work. What does it mean?
-
Ios 6.1 nessun servizio
Dopo aver aggiornato via OTA il mio iphone 4 ad ios 6.1 mi da nessun servizio ma la navigazione funziona il 3G è abilitato ho eseguito reset impostazioni di rete ma nulla e ho reinserito i parametri dell'APN ma nulla da fare il mio operatore è Wind,