ALV Excel view missing data on last row
Hi all,
I'm having a bug using ALV report.
I've created a report using "REUSE_ALV_GRID_DISPLAY" FM with the standard user command "USER_COMMAND".
In this menu, there is the bouton "Microsoft Excel" (CtrlShiftF7) that allows to switch the ALV to an excel view.
My report has 21 columns.
If I'm displaying 38 rows, the excel view is fine.
But if I'm displaying 39 rows, the last 5 cells are empty...
Does somebody has any idea of what could be the reason ?
Thanks for your help.
Pierre
Hi Andreas,
I didn't apply the note you mentionned because it was already done on my system.
But I've found another one that was related to "your" note and it fix my issue.
The note is 1115435.
Thanks for your help.
Best regards,
Pierre
Similar Messages
-
ALV -Excel download -header & data comming in Different columns
Hi,
I have an ALV report with FM.When I download it to excel through LIST/EXPORT/LOCALFILE some columns are getting messed up (ex: header is in one column and data is comming in different column).
When i do with LIST/EXPORT/SPREADSHEET option it is working fine.
but users want to use the first option only.
I am use FM's in this report.
Regards
PraveenHi
What is the statement you used to dowload data .Check the field catalog that u are passing to downloaad function module.
or check in the debuging mode..
change these options in excel sheet and checkout if it can help u
1. Go to Tools -> Macro -> Security in Excel
2. Select the Trusted Sources tab and ensure that the checkbox titled Trust access to Visual Basic Project is ticked.
3. With the feature switched on, the data is passed to Excel.
check this sample one
TABLES : MAST , "Material to BOM Link
STKO , "BOM Header
MARA . "General Material Data
* Types Begin with TY_ *
TYPES : BEGIN OF TY_MASTER ,
MATNR TYPE MAST-MATNR , "Material Number
WERKS TYPE MAST-WERKS , "Plant
STLAN TYPE MAST-STLAN , "BOM Usage
STLNR TYPE MAST-STLNR , "Bill of material
STLAL TYPE MAST-STLAL , "Alternative BOM
ANDAT TYPE MAST-ANDAT , "Date record created on
AEDAT TYPE MAST-AEDAT , "Date of Last Change
AENAM TYPE MAST-AENAM , "Name of Person Who Changed Object
STLST TYPE STKO-STLST , "BOM status
ZPLP1 TYPE MBEW-ZPLP1 , "Future Planned Price 1
DWERK TYPE MVKE-DWERK , "Delivering Plant (Own or External)
END OF TY_MASTER .
TYPES : MY_TYPE(20) TYPE C.
* Constants Begin with C_ *
* Internal tables Begin with IT_ *
DATA : IT_MASTER TYPE STANDARD TABLE OF TY_MASTER,
WA_MASTER TYPE TY_MASTER .
DATA : IT_HEADER TYPE TABLE OF MY_TYPE.
* Data Begin with W_ *
DATA : W_PTH TYPE RLGRAP-FILENAME.
DATA : W_FILE TYPE RLGRAP-FILENAME.
* Field Symbols Begin with FS_ *
* Select Options Begin with SO_ *
* Parameter Begin with PR_ *
* I N I T I A L I Z A T I O N *
*--- Add Header Fields to Header Table ---
APPEND 'Material Number' TO IT_HEADER .
APPEND 'Plant' TO IT_HEADER .
APPEND 'BOM Usage' TO IT_HEADER .
APPEND 'Bill Code' TO IT_HEADER .
APPEND 'Alternative BOM' TO IT_HEADER .
APPEND 'Created On' TO IT_HEADER .
APPEND 'Changed On' TO IT_HEADER .
APPEND 'Changed By' TO IT_HEADER .
APPEND 'BOM Status' TO IT_HEADER .
APPEND 'Planned Price' TO IT_HEADER .
APPEND 'Delivery Plant' TO IT_HEADER .
IF SY-MANDT = '700'.
W_PTH = '\lkdb01ISDISSoftware DevelopmentsDevelopmentsData FilesSAP DumpsBOM_Available'.
ELSE.
W_PTH = 'C:'.
ENDIF.
* A T S E L E C T I O N S C R E E N *
* s t a r t o f s e l e c t i o n
START-OF-SELECTION.
*--- Load Data to Internal Table ---
* SELECT MAST~MATNR MAST~WERKS MAST~STLAN MAST~STLNR MAST~STLAL MAST~ANDAT MAST~AEDAT MAST~AENAM STKO~STLST
* INTO TABLE IT_MASTER
* FROM MAST
* INNER JOIN STKO ON STKO~STLNR EQ MAST~STLNR
* AND STKO~STLAL EQ MAST~STLAL
* INNER JOIN MARA ON MARA~MATNR EQ MAST~MATNR
* WHERE MARA~MTART LIKE 'ZFG%'
* AND STKO~LKENZ NE 'X'
* AND STKO~LOEKZ NE 'X'
* AND STKO~STLST EQ '1'.
SELECT MAST~MATNR MAST~WERKS MAST~STLAN MAST~STLNR MAST~STLAL MAST~ANDAT MAST~AEDAT MAST~AENAM STKO~STLST MBEW~ZPLP1 MVKE~DWERK
INTO TABLE IT_MASTER
FROM MAST
INNER JOIN STKO ON STKO~STLNR EQ MAST~STLNR
AND STKO~STLAL EQ MAST~STLAL
INNER JOIN MARA ON MARA~MATNR EQ MAST~MATNR
INNER JOIN MBEW ON MBEW~MATNR EQ MAST~MATNR
AND MBEW~BWKEY EQ MAST~WERKS
INNER JOIN MVKE ON MVKE~MATNR EQ MAST~MATNR
WHERE MARA~MTART LIKE 'ZFG%'
AND STKO~LKENZ NE 'X'
AND STKO~LOEKZ NE 'X'
AND STKO~STLST EQ '1'.
IF SY-SUBRC <> 0.
MESSAGE I014(ZLOAD).
ENDIF.
*--- Set Path to Function Module ---
CONCATENATE W_PTH SY-DATUM ' - ' 'BOM_AVAILABLE_PLANT.XLS' INTO W_FILE.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
FILENAME = W_FILE
FILETYPE = 'DAT'
TABLES
DATA_TAB = IT_MASTER
FIELDNAMES = IT_HEADER
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_EIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
IF SY-SUBRC = 0.
SUBMIT ZI005_MARA_DUMP_SOLIDEAL_N.
MESSAGE I023(ZLOAD) WITH text-001.
ELSE.
MESSAGE I022(ZLOAD) WITH W_FILE. "Errors while downloading.
ENDIF.
END-OF-SELECTION.
SUBMIT ZI005_MARA_DUMP_SOLIDEAL_N.
Reward all helpfull answers
Regards
Pavan
Message was edited by:
Pavan praveen -
Export to spreadsheet - Excel cells missing data
We have an ApEx report that when wildcards are used for 3 parameters the report renders data to the browser as expected, but when the report is exported to spreadsheet the last 3 cells on the worksheet are missing data. However, if the parameters are set with specific data the report exports with all data. Anybody any ideas what might cause this to happen?
We are running Excel 2007, ApEx 3.2 and Oracle 9i
GrantI am not able to reproduce the issue. Make sure you are using SP1:
SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads [original link is broken]
If that does not help, define "displaced". A pic may be worth a 1000 words :).
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports] -
Hi All,
I have a problem with the ALV display problem.
When I click on the 'Microsoft Excel View' button at the top of the ALV display, I can view the data in Excel View.
However, when my user click it on his computer, he saw the excel view is blank without data (even there are data at the initial ALV display screen).
May I know what is the root cause of this problem? I've no idea of how to investigate it or solve it.
Many Thanks.HI try with this code------
*& Report ZTEST_DOWNLOAD1
report ztest_download1.
tables : trdir.
type-pools: slis.
types: begin of gt_output,
progname type progname,
strct_type(14) type c,
strct_name(50) type c,
serial(8) type c,
mainfieldname(50) type c,
offset(17) type c,
leng(8) type c,
decimals(8) type c,
inttype(15) type c,
datatype(9) type c,
scrtext_m type scrtext_m,
tabname type tabname,
fieldname type fieldname,
rollname type rollname,
domname type domname,
default(100) type c,
end of gt_output.
types: begin of gt_header,
name(300) type c,
end of gt_header.
data : gi_output type standard table of gt_output,
wa_output type gt_output,
gi_header type standard table of gt_header.
data: d_filename like ibipparms-path,
gi_fieldcat type slis_t_fieldcat_alv,
wa_fieldcat type slis_fieldcat_alv,
wa_header type gt_header.
selection-screen:
begin of block b1 with frame title text-001.
parameter: program(150) type c default 'ZTOOL_TEST'.
select-options so_incl for trdir-name default 'ztool_test' no intervals .
selection-screen begin of line.
parameters :pa_check as checkbox default 'X'.
selection-screen comment (29) text-t01.
parameters :pa_path type rlgrap-filename default 'D:\TRIAL.XLS'.
selection-screen end of line.
selection-screen end of block b1.
at selection-screen.
perform download_excel_template.
at selection-screen on value-request for pa_path.
perform f4_file_help.
*& Form F4_file_help
text
--> p1 text
<-- p2 text
form f4_file_help .
call function 'KD_GET_FILENAME_ON_F4'
exporting
program_name = sy-repid
dynpro_number = syst-dynnr
field_name = pa_path
changing
file_name = d_filename
exceptions
mask_too_long = 1
others = 2.
if sy-subrc <> 0.
MESSAGE ID gv_msgid TYPE 'I' NUMBER 000.
endif.
endform. "f4_file_help
form download_excel_template .
refresh gi_header.
wa_header-name = text-t01.
append wa_header to gi_header.
wa_header-name = text-t02.
append wa_header to gi_header.
wa_header-name = text-t03.
append wa_header to gi_header.
wa_header-name = text-t04.
append wa_header to gi_header.
wa_header-name = text-t05.
append wa_header to gi_header.
wa_header-name = text-t06.
append wa_header to gi_header.
wa_header-name = text-t07.
append wa_header to gi_header.
wa_header-name = text-t08.
append wa_header to gi_header.
wa_header-name = text-t09.
append wa_header to gi_header.
wa_header-name = text-t10.
append wa_header to gi_header.
wa_header-name = text-t11.
append wa_header to gi_header.
wa_header-name = text-t12.
append wa_header to gi_header.
wa_header-name = text-t13.
append wa_header to gi_header.
wa_header-name = text-t14.
append wa_header to gi_header.
wa_header-name = text-t15.
append wa_header to gi_header.
wa_header-name = text-t16.
append wa_header to gi_header.
wa_output-strct_name = 'abc'.
append wa_output to gi_output.
call function 'MS_EXCEL_OLE_STANDARD_DAT'
exporting
file_name = pa_path
data_sheet_name = 'Structure details'
tables
data_tab = gi_output
fieldnames = gi_header
exceptions
file_not_exist = 1
filename_expected = 2
communication_error = 3
ole_object_method_error = 4
ole_object_property_error = 5
invalid_pivot_fields = 6
download_problem = 7
others = 8.
if sy-subrc <> 0.
MESSAGE ID gv_msgid TYPE 'E' NUMBER 002.
endif.
endform. " DOWNLOAD_EXCEL_TEMPLATE
regards
prashant -
IBM SVC console uses websphere. Screen data that is presented in table form last row appears to overwrite the prior row only. In other similar layouts, the last row is cut in half and cannot be seen. The prior version of Firefox 3 (something) did not have this problem. OS Windows XP Pro SP3
Firefox V3.6.17 worked fineSeeing the same problem using the HMC with FF7 beta.
-
IncidentStatusDurationFactvw view missing data
I wanted to create an acurate measure of time spent on incidents, but to do that I have to subtract the hours an incident spends in status "Pending Supplier" or "Pending User".
I found the view IncidentStatusDurationFactvw which is great for this purpose, however I noticed a lot of missing data...
FinishDateTime is NULL on many statuses, even though the incident has changed status long ago.
(All DW jobs are working fine.)Hi Andreas,
I didn't apply the note you mentionned because it was already done on my system.
But I've found another one that was related to "your" note and it fix my issue.
The note is 1115435.
Thanks for your help.
Best regards,
Pierre -
ALV Excel View - how to save the excel sheet
Hi,
i've a colored ALV, when the user is choosing the excel button from the ALV menu bar the alv is shown as an excel. But: the sace button in the upper left corner has now a mouse-over text named "update" and the file tab is missing.- So how can he save this now as an excel sheet? We are using excel 2010. Saving as spreadsheet is not an option cause all colors are lost.We have had this same issue since we upgraded to EXCEL-10.
Here is what I came up with.
First, open a new EXCEL spreadsheet from the PC (not from within the SAP application)
Select the “Customize Quick Access Toolbar”, then select “More Commands”
Under the “Popular Commands” select “Save As” and press the “Add” button.
Then the “OK” button
You should now see the “Save As” button in the upper left hand corner of the screen (with the Save, Undo and Redo buttons.)
When you display the next SAP report as EXCEL, you should have access to this button. -
Shared Excel spreadsheet "missing data"
We are currently working in a mixed enviornment Excel 2003 and 2007. Files are saved as XLS so all can use the files. The workbooks are shared. Multiple people can be accessing these files at the same time. We will be in this mixed
enviornment for the next 3 weeks than all will be moved to the 2007 platform. My current problem is:
When person A opens shared file X, enters data and saves and closes the file. Person B opens shared file X and there is no data from person A.
Are there settings on either 2003 or 2007 that will keep this from happening?Hi,
Thank you for using Excel IT Pro Discussions forum.
When we share an Excel workbook, click the
Review tab, in the Changes groups, click
Share Workbook. Then, in the Advanced tab, under
update changes, we can choose either of the following:
When file is saved
Automatically every xx minutes
Which one did you choose?
Also, I suggest turn on track changes to better see the changes others made.
For more information about how to share an Excel workbook, you can also refer to this article:
http://office.microsoft.com/en-us/excel-help/use-a-shared-workbook-to-collaborate-HP010096833.aspx
Best Regards,
Sally Tang
TechNet Subscriber Support
in forum
If you have any feedback on our support, please contact
[email protected] -
Get last datas ina timeseries to fill missing data
Hello everybody,
I have to fill missing information in daily timeseries data
and when it is empty
i have to load data from last rows in database
so for example my table is table1
desc table1
CREATE TABLE table1
TICK VARCHAR2(22 BYTE) NOT NULL,
My_TIME TIMESTAMP(3) NOT NULL,
PRICE NUMBER(20,8),
VOLUME NUMBER(20,8),
My_time tick price volume
26/02/2008 14:24 MAC DODOL 50.16 4680926.8
26/02/2008 14:25 MAC DODOL 50.17 4685326.333
26/02/2008 14:26 MAC DODOL 50.17 4688907.389
26/02/2008 14:27 MAC DODOL 50.19 4697578.133
26/02/2008 14:28 MAC DODOL 50.23 4703991.636
26/02/2008 14:29 MAC DODOL 50.25 4707964.25
26/02/2008 14:30 MAC DODOL 50.24 4712001.167
26/02/2008 14:31 MAC DODOL 50.25 4719389.769
26/02/2008 14:32 MAC DODOL 50.25 4727232.033
26/02/2008 14:33 MAC DODOL 50.3 4744975.208
26/02/2008 14:34 MAC DODOL 50.35 4768389.946
26/02/2008 14:35 MAC DODOL 50.33 4780110.957
26/02/2008 14:36 MAC DODOL 50.28 4787568.143
26/02/2008 14:37 MAC DODOL 50.28 4795504.061
26/02/2008 14:38 MAC DODOL 50.28 4803979.947
26/02/2008 14:39 MAC DODOL 50.3 4818803.025
26/02/2008 14:40 MAC DODOL 50.35 4861607.508
26/02/2008 14:41 MAC DODOL 50.35 4894889.552
26/02/2008 14:42 MAC DODOL 50.35 4909506.875
26/02/2008 14:43 MAC DODOL 50.36 4917993
So I have to fill mising datas until 20:00:00
how can i do this
I can create the dates series
with this query
select all_dates.d missing
from (
select to_date('20080227 20:30:00','yyyymmdd HH24:MI:SS')-1+rownum d from dual
connect by level<=15) all_dates, table1 x
where all_Dates.d = x.my_time(+)
and x.my_time is null
So i have to load
26/02/2008 14:43 MAC DODOL 50.36 4917993
for all missing times until 20:00:00
how can I do ?
ThankConsider using a Pipelined Table function to dynamically generate the data instead.
There is a demo here:
http://www.psoug.org/reference/pipelined.html
Look at the "Generate Date List" demo -
ALV grid to excel : last row datas are missing (Ecc6.0-GUI7.1)
Hello,
Some colums are empty in the last row by clicking into the excel icon???
Please note ,I must not use the print preview.
I have specified outputlen and datatype for the fieldcat but it doesn' t resolve the problem.
Thank you very much,
JcNavech.Hello,
any idea about how to sove this problem? I have it as well.
My ALV has 132 rows and 24 columns and when exporting to Excel last 19 coulmns of very last row are empty.
I don't think that Suggested Note 1429136 solve this problem because I have much less that 256 columns and 65536 rows.
Thank you!
Best regards
Guido
PS: I have ECC 6.0 - SAB BASIS SAPKB70014 and SAP GUI 7.10 -
Editable data in excel view of alv grid
hi friends..
now i am displaying the data in alv grid..
my requirement is i want to display the data in excel format.. (not in seperate excel..)
i want to display the excel sheet with data within the screen itself.
for this
i tried this scenario by fallowing steps
in layout->view tab->microsoft excel..
(layout button in the application toolbar i.e pf-status)
it show excel sheet within report and data with excel sheet.
now i got data in excel sheet.
but my requirement is if i made any changes in data in excel means
i want those updated or edited data in the another internal table..
this scenario is work in the case of abap list viewer (instead of microsoft excel)
for this i use one button in the pf-status (UPDATE).
after made changes in grid data i export those modified data to abap memory and download to another internal table..
how can i get the same scenario in micosoft excelHi,
Please make sure that you have made a <b>global</b>
<b>declaration</b> for the ALV Grid control.If not try
with this
Please reward points if this explanation is useful.
Regards,
Siva -
SSRS 2008 R2 - Missing Data when Exporting to Excel or CSV (Row Count is 500)
Hey Folks,
When exporting SSRS 2008 R2 report to an csv or excel file not all the rows are being exported. Any suggestions on why this is occurring. The number of rows is less then 500 and it seems to be a pretty straight forward export. Any help is
greatly appreciated. Inherited this and not sure if this would be configuration issues or something else. It is happening on a number of reports.
Thanks.Hi Humbly,
According to your description, when you export report into CSV or Excel format, some rows are missing.
In your scenario, since you are missing data “rows” in your exported file, we are guessing if you have any visibility setting like toggle which hide those records. It’s possible that you have set toggle or visibility in your report. After exporting
Excel/CSV, some data might not appear properly. In SSRS 2008 R2, it has reported this kind of issue about data missing after exporting. However, those scenarios are not exactly same as your issue. It mostly turns out be conflict between data and “layout render”
and related to DataElementOutput property. DataElementOutput property controls export behavior, it indicates which report item data should appear in Excel/CSV render. For more information, please refer to this article: Reporting Services:
Why aren’t all my report columns exporting to CSV and/or XML?.
As we tested in our environment(SSRS 2008 R2), no matter what we export into CSV or Excel, we get same results as in BIDS . So I would like to know your report design structure. If possible, please provide some screenshots about results in BIDS and Excel/CSV
render extension results. It may help us find out the root cause of your issue. Thank you.
Best regards,
Qiuyun Yu -
ALV - Excel download Date field sits in the last Column
Hi,
I have custom ALV grid report using OOp . From the report i am exporting the results to an EXCEL, but the date columns in the report sits as last column the exported excel.
Any idea ?
Thanks
aRsThat is the default functionality of the ALV grid, it collects all the similar data types together and then donwloads the data.
If you don't want that, you will have write code yourself and download the data
Regards,
Ravi
Note - Please mark all the helpful answers -
hi friends..
now i am displaying the data in alv grid..
my requirement is i want to display the data in excel format.. (not in seperate excel..)
i want to display the excel sheet with data within the screen itself.
for this
i tried this scenario by fallowing steps
in layout->view tab->microsoft excel..
(layout button in the application toolbar i.e pf-status)
it show excel sheet within report but no data with excel sheet.
how can i get the data into that excel sheet.
its very important..can you please tell meSelva,
This is security setting issue in Excel.
Open up MS Excel on your desktop...
From the Excel menu bar, choose: Tools > Macro > Security...
In the pop-up, change to the Security Level to Medium (or Low - if necessary).
And don't forget points for helpful answers!!! -
Hi,
I'm searching anywhere on this forum for a solution but up to now I did only partial progress.
I've already seen dozens of sap notes about this problem.
When I pressed "view in Microsoft Excel" (code &VEXCEL) on an ALV grid list, a popup appeared noticing that no template was found. Looking around on this forum I managed to discover how to load these templates from local (BC_ALVEXCEL_SAP_TEMPL, BCALV_BDS_MAINTENANCE) or from client 000 (BCALV_BDS_IMPORT_SAP_TEMPLATE).
Anyway, I managed to restore the templates on the system, but excel view still doesn't work:
wheh I press the button now I only see a blank screen in place of the excel; if excel was already open (not in sap), then an excel view is actually shown, but the sheet is empty, no data in it.
Any hints?
thank youHi,
Just open Excel, then Goto Menu -> Tools -> Options -> Security Tab -> Macro Security ->Set Medium and in Trusted publisher tab select the checkbox Trust Access to Visual Basic Project Now Press Ok.
This will solve your problem.
Regards
Karthik D
Maybe you are looking for
-
AME takes a long time to start encoding when using GPU Acceleration (OpenCL)
Have had this issue for a while not (current update as well as at least the previous one). I switched to using GPU Hardware Acceleration over Software Only rendering. The speed for the actual encoding on my Mac is much faster that software only rende
-
How to run an application on windows mobile 6 device ?
Hi everybody, How can you run an application on a windows mobile 6 device with the new SDK 3.0 ? Can you launch a MIDLET like any other program ? or running your MIDLET on windows mobile 6 is only for testing while you are developing. When you finish
-
Another Remote DVR "STB Not Responding​" Issue
I've had my FIOS install for a couple weeks now and 3-4 days ago tried to activate the Remote DVR feature. In all other respects my system is working fine. I can login to the FIOS TV Central page, see my STB in the listing, it shows that Remote DVR i
-
Only display first form URL in formsweb.cfg . mutiple URL does not work
Hi Friends, I have 4 form application with 4 URL. app. server as 10g in window 2003. URL like as: http://salerpt.com/forms/frmservlet?config=emis-srmenu fmx file Location as C:\OraMid\forms\salerpt-Forms fmx name as srmenu.fmx in same directory fmb f
-
Hi SAPians, I am executing account assignment model and the model is: 40 476000 10000 40 470000 5000 50 160001 * where 4xxxxx are my expense a/c's and 160001 is my liability a/c but instead of liability a/c if i give my cash a/c 113100 and trying to