Data miss match when download to Excel
Hi gurus,
I have a Requirement in My Report where i need to show '000' when column value is null,for this I written in column formula like
case when "tablename"."columnname" is null then '000' else "tablename"."columnname" end
in report it showing '000' when value is null but when i Download this report to Excel it is showing single zero(0) instead of 000....plz help me where i am missing and how to get same 000 in Excel also.
Thanks in Advance...
Hi,
The green thing which you see in excel indicates that the cell contains a number which is stored as Text. This is because using mso-number-format:"\@" in custom CSS forces the values in that column to be stored as text in excel. Hence, you are able to retain leading zeroes.
Also, the column which you are displaying in your case statement in the else part, is that a varchar field or numeric one?
Thanks
Similar Messages
-
HI sdn Gurus,can anybody share with me some real time issues related to data miss match in support project.i am in need of it.i just want to know that what are the issue did comes related to data miss match in production & support environment.
Hi
Data mismatch means,The data in BW and data in R/3 are different...
This is due to Some load failures,selection criteria is different from R/3 to BW..
Need to look each and every step of data extraction..need to look at RSA3..How data is extracting..How data is appear at PSA..How data is populated from transfer rules and update rules..How data is loaded into Infoproviders..Some times data is correct in data providers and not correct in report result,because of selection conditions are different..You need to look at all these...
Hope it helps
Thanks
Teja -
Only Current Date showing when downloading to excel
<b>Hi,
I have a query is attached to a template, when I download to excel it only downloads the current date. I have dates ranging from 2001-2006, and it downloads to excel it only downloads the current year of 2006. When I run this query on the SAP template it downloads fine. We are currently using a different excel download the "white paper SAP print strategy approach" that the SAP template does not use. Does anyone experience this same problem? I appreciate your feedback! thanks so much!
</b><b>Hi,
I have a query is attached to a template, when I download to excel it only downloads the current date. I have dates ranging from 2001-2006, and it downloads to excel it only downloads the current year of 2006. When I run this query on the SAP template it downloads fine. We are currently using a different excel download the "white paper SAP print strategy approach" that the SAP template does not use. Does anyone experience this same problem? I appreciate your feedback! thanks so much!
</b> -
Problem with CITY field when downloading to excel
Hi Gurus,
I have CITY field which is of 30 char length.Now Iam downloading the record having other fields also along with city field....Now my requirement is that in the Excel the city field should be right justified and the remaining characters should be space....How can we do that...
Generally I know that when We download to excel the fields adjust according to the data it has rather then with thier field size in SAP.
Regards,
Rohan.Hi,
In case of standard objects, it would be better if you can share the details like report name, the way you tried downloading(From menu, tool bar etc). Also search if there is any OSS notes for that program.
Thanks,
Vinod. -
PO history report when downloaded in excel it truncates last digit of vendo
Hi,
We have a customized report developed for PO history.When executed ,it displays the report.However when we transport that to excel spreadsheet,surprisingly the vendor number gets truncated at the last meaning the last digit of the vendor number doesnot show up.
However in Quality,when downloaded,it looks perfectly okay.
What could be the possibility.
Please suggest
Thanks in advance
MBHI,
Let me share my experience regarding your situation. Last time I like to download reports from SAP to spreadsheet, however, the result not satisfy. What I did, download first using HTML format then from this file, I opened with excel and save it in excel format. As result the perfect report came out, my advice please try what I have done before.
Hope this help
Mahnansa -
Logo seen in report Title is not properly alligned when downloaded to Excel
Hi All,
Iam facing an issue with Download to Excel link on my OBIEE report.
When I download my report to Excel which has a logo in the report title, in the excel sheet the logo occupies all the cells till the end of the report columns and my report title is seen after those columns.
Can you please suggest a solution or a workaround for this.
Many Thanks in adavnce.
Suman
Edited by: Suman B on Sep 20, 2010 4:10 AMhi
Suman
i am also faced same problem. if u got any solution for this post
let me know
Advance Thanks
Satya -
Cuts off leading zeros in a report column when "Download to Excel" function
Hello
When a text column contains leading zeros for example "000250" the download to Excel stores the string as "250" in the spreadsheet. I am using a column which is a string.(varchar)
Can somebody suggest me , how to go ahead with it
Thanks
Edited by: user647228 on Sep 11, 2008 1:40 PM
Edited by: user647228 on Sep 11, 2008 1:42 PM(To Vins) Actually, concatenating a space doesn't do it. When the file is downloaded into Excel, the leading space is ignored and it the leading zeroes are still trimmed.
To user647228: A non-space character needs to be concatenated. Regarding what character to append, I would give the following consideration: If the users are content with seeing an added character to the "number," you can append say an underscore "_" and Excel will download the number properly. It's fairly unobtrusive and can be "visually ignored."
If the end user insists on gettin rid of the extra character once the file is downloaded, I would append a character that is rarely, if not never, used in the report. (This ensures or mitigates replacing other instances of the character.) Then you can do a Replace All in Excel to replace the extra character with a single apostrophe. The single apostrophe will be interpreted by Excel to mean "text" and the appearance will change to exactly what is desired.
Note: Replacing the extraneous character with a space for example, will result in the leading zeroes being again lopped off by Excel... -
NO header detail appears when downloading to excel from web template
When we run our queries via a web template and through the portal we get the results which shows the query title and report details. When we try to download this to excel the header(report title etc. )information doesn't come down but all the rest of the report does. If we go in again and change the variable values for characteristics (query is being changed and run the web template (via portal)again and download to excel the header (report title etc.)the whole report title and report detail now appear. Looking for someone who has resolved this problem.
For anyone who is interested, this was caused by our email client, not BIP.
-
Hyperlink in ALV output and when downloaded to Excel, maintain that hyperli
Hi SAP Friends,
I want to know if this is possible. My requirement is, display a column with Invoice # and hyperlink (or you can call it as Hotspot in SAP language). When clicked on the hyperlink, it should open a webpage, giving details of Invoice. I tried testing BCALV_GRID_VERIFY program. I can see hyperlink in ALV output and when I click, it opens a webpage. However, when I down load data to Excel using Excel inplace, hyperlink is gone. Only data is down loaded. How can we make it happen that hyperlink is maintained even after downloading data from ALV ?
Any ideas ?
NiranjanWaiting for any suggestions from users.
Niranjan -
Short Dump when downloading to EXCEL from ALV
Hi,
I have an ALV grid display program. The data in the grid is displayed correctly. But when trying to download the data to excel it gives a short dump.
Assignment error: Overwriting a protected field.
What happened?
Error in ABAP application program.
The current ABAP program "SAPLKKBL" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
Some times it allows to download the data, but sometimes it gives short dump.
Thanks,
DeepthiThis is my part of the code:
i_fieldcat-key = gc_x.
i_fieldcat-no_zero = gc_x.
i_fieldcat-fix_column = 'X'.
i_fieldcat-hotspot = gc_x.
perform bild_fieldcat using
'' 'AUFNR' 'GT_REPORT ' ' ' 'CAUFV' ' ' 'C' '12' ' '.
perform bild_fieldcat using
'' 'DISGR' 'GT_REPORT ' ' ' 'MARC' ' ' 'C' '4' ' '.
perform bild_fieldcat using
'' 'AUART' 'GT_REPORT ' ' ' 'CAUFV' ' ' 'C' '04' ' '.
perform bild_fieldcat using
'' 'DISPO' 'GT_REPORT ' ' ' 'CAUFV' ' ' 'C' '06' ' '.
i_fieldcat-no_zero = gc_x.
perform bild_fieldcat using
'' 'MATNR' 'GT_REPORT ' ' ' 'MARA' ' ' 'C' '18' ' '.
i_fieldcat-no_zero = gc_x.
perform bild_fieldcat using
'' 'CHARG' 'GT_REPORT ' ' ' 'MDFA' ' ' 'C' '14' ' ' .
*begin insert RCHALASA
i_fieldcat-no_zero = gc_x.
i_fieldcat-fix_column = 'X'.
perform bild_fieldcat using
'' 'FTRMI' 'GT_REPORT ' ' ' 'CAUFV' ' ' 'D' '08' ' '.
*end insert
i_fieldcat-no_zero = gc_x.
i_fieldcat-fix_column = 'X'.
perform bild_fieldcat using
'' 'GLTRP' 'GT_REPORT ' ' ' 'CAUFV' ' ' 'D' '10' ' '.
i_fieldcat-no_zero = gc_x.
perform bild_fieldcat using
'' 'GLTRS' 'GT_REPORT' ' ' 'CAUFV' ' ' 'D' '10' ' '.
perform bild_fieldcat using
'' 'GSTRP' 'GT_REPORT' ' ' 'CAUFV' ' ' 'D' '10' ' '.
perform bild_fieldcat using
'' 'AGE' 'GT_REPORT' ' ' ' ' 'Age' 'C' '08' ' '.
i_fieldcat-no_zero = gc_x.
i_fieldcat-do_sum = gc_x.
i_fieldcat-fix_column = 'X'.
perform assign_alv_qty_format.
perform bild_fieldcat using
'' 'GAMNG' 'GT_REPORT' ' ' ' ' 'Order Qty' 'QUAN' '09' ' '.
perform bild_fieldcat using
'' 'STK_PROD_FLAG' 'GT_REPORT' ' ' ' ' 'Stk/Prod' 'C' '06' ' '.
i_fieldcat-no_zero = gc_x.
i_fieldcat-do_sum = gc_x.
i_fieldcat-fix_column = 'X'.
perform assign_alv_qty_format.
perform bild_fieldcat using
'' 'IGMNG' 'GT_REPORT' ' ' ' ' 'Order Yield Qty' 'QUAN' '11' ' '.
i_fieldcat-no_zero = gc_x.
i_fieldcat-do_sum = gc_x.
i_fieldcat-fix_column = 'X'.
perform assign_alv_qty_format.
perform bild_fieldcat using
'' 'IASMG' 'GT_REPORT' ' ' ' ' 'Order Scrap Qty' 'QUAN' '11' ' '.
**begin insert RCHALASA
perform bild_fieldcat using
'' 'YIELD_PER' 'GT_REPORT' ' ' ' ' 'Yield' 'C' '05' ' '.
**end insert
DATA: col_pos like sy-colno.
col_pos = '17'.
loop at gt_oper.
gv_tabix = sy-tabix.
i_fieldcat-no_zero = gc_x.
i_fieldcat-do_sum = gc_x.
i_fieldcat-fix_column = 'X'.
col_pos = col_pos + 1.
perform assign_alv_qty_format.
gv_yield6(03) = gt_oper-vornr1(03).
*begin insert RCHALASA
move gt_oper-ltxa1 to gv_text.
translate gv_text to upper case.
gv_text = gv_yield.
*end insert
gv_tabixn = gv_tabix.
gv_yield+6(03) = gv_tabixn.
gv_fieldname = gv_yield.
translate gv_fieldname to upper case.
perform bild_fieldcat using
'' gv_fieldname 'GT_REPORT' ' ' ' ' gv_text 'QUAN' '04' ' '.
perform assign_alv_qty_format.
gv_scrap6(03) = gt_oper-vornr1(03).
select single
grdtx
from trugt
into gv_text1
where
grund = gt_oper-vornr
and werks in s_werks.
gv_text = gv_scrap.
i_fieldcat-no_zero = gc_x.
gv_tabixn = gv_tabix.
gv_scrap+6(03) = gv_tabixn.
gv_fieldname = gv_scrap.
translate gv_fieldname to upper case.
perform bild_fieldcat using
gv_fieldname 'GT_REPORT' ' ' gv_text1 'X' 'QUAN' '08' ' '.
clear gv_text1.
endloop. " GT_OPER
DATA: count type c.
DESCRIBE table gt_grund lines count.
loop at gt_grund into gl_grund.
gv_tabix = sy-tabix.
i_fieldcat-no_zero = gc_x.
i_fieldcat-do_sum = gc_x.
i_fieldcat-fix_column = 'X'.
perform assign_alv_qty_format.
if gl_grund-grund is initial.
gl_grund = 'NONE'.
gv_text = gl_grund.
else.
gv_text = gl_grund-grdtx.
endif.
gv_tabixn = gv_tabix.
gv_scrap_code+11(03) = gv_tabixn.
gv_fieldname = gv_scrap_code.
translate gv_fieldname to upper case.
col_pos = col_pos + 1.
perform bild_fieldcat using
'' gv_fieldname 'GT_REPORT' 'XMNGA' 'AFRU' gv_text 'QUAN' '12' ' ' .
endloop. " GT_OPER
gb_layout-zebra = 'X'.
gb_print-no_print_listinfos = 'X'.
gb_variant-variant = p_varia.
perform create_events using gt_events[].
call function 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
text = 'Reading SAP Records.......'(600).
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gv_repid
i_callback_top_of_page = 'TOP_OF_PAGE'
i_callback_pf_status_set = 'SET_STATUS'
i_callback_user_command = 'CALL_UP_SAP_TRANS'
it_fieldcat = i_fieldcat[]
is_layout = gb_layout
i_grid_title = gb_title
i_default = 'X'
i_save = 'X'
is_variant = gb_variant
is_print = gb_print
it_events = gt_events[]
tables
t_outtab = gt_report
exceptions
program_error = 1
others = 2.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
***********ALV SUBROUTINE**************
TYPE-POOLS: slis.
DATA: gv_repid LIKE sy-repid.
DATA: i_fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
DATA: gb_layout TYPE slis_layout_alv.
DATA: gb_selfield TYPE slis_selfield.
DATA: gb_print TYPE slis_print_alv.
DATA: i_sort TYPE slis_t_sortinfo_alv WITH HEADER LINE.
DATA: gv_keyinfo TYPE SLIS_KEYINFO_ALV.
DATA: gb_variant LIKE disvariant,
gb_def_variant LIKE disvariant.
DATA: gb_title(70).
DATA: gt_events TYPE slis_t_event,
gt_sort TYPE SLIS_T_SORTINFO_ALV,
gt_list_top_of_page TYPE slis_t_listheader,
g_status_set TYPE slis_formname VALUE 'PF_STATUS_SET',
g_user_command TYPE slis_formname VALUE 'USER_COMMAND',
g_top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE',
g_end_of_page TYPE slis_formname VALUE 'END_OF_PAGE',
g_top_of_list TYPE slis_formname VALUE 'TOP_OF_LIST',
g_end_of_list TYPE slis_formname VALUE 'END_OF_LIST'.
DATA: it_event_exit TYPE slis_t_event_exit WITH HEADER LINE.
*--- Rotinas ---
FORM alv_init.
CLEAR: gb_variant.
gv_repid = sy-repid.
gb_variant-report = gv_repid.
CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
EXPORTING
i_save = 'A'
CHANGING
cs_variant = gb_variant
EXCEPTIONS
not_found = 2.
IF sy-subrc = 0.
p_varia = gb_variant-variant.
ENDIF.
ENDFORM. " ALV_INIT
FORM alv_f4.
gb_variant-report = gv_repid.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
is_variant = gb_variant
i_save = 'A'
IMPORTING
es_variant = gb_variant
EXCEPTIONS
not_found = 2.
IF sy-subrc = 2.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
p_varia = gb_variant-variant.
ENDIF.
ENDFORM. " ALV_F4
FORM bild_fieldcat USING x_pos x_field x_tab x_reffld x_ref x_text x_type x_tam x_sym.
i_fieldcat-col_pos = x_pos.
i_fieldcat-fieldname = x_field.
i_fieldcat-tabname = x_tab.
i_fieldcat-ref_fieldname = x_reffld.
i_fieldcat-ref_tabname = x_ref.
i_fieldcat-seltext_l = x_text.
i_fieldcat-seltext_m = x_text.
i_fieldcat-seltext_s = x_text.
i_fieldcat-ddictxt = 'M' .
i_fieldcat-inttype = x_type.
i_fieldcat-outputlen = x_tam.
i_fieldcat-symbol = x_sym.
APPEND i_fieldcat.
CLEAR i_fieldcat.
ENDFORM. " BILD_FIELDCAT
FORM create_events USING rt_events TYPE slis_t_event.
DATA: ls_event TYPE slis_alv_event.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = rt_events.
READ TABLE rt_events WITH KEY name = slis_ev_top_of_page
INTO ls_event.
IF sy-subrc = 0.
MOVE g_top_of_page TO ls_event-form.
APPEND ls_event TO rt_events.
ENDIF.
ENDFORM. " -
Delete blank lines when downloading to excel from CL_GUI_ALV_TREE
Hi Experts
I have developed a report using the class CL_GUI_ALV_TREE. If the user wants to download it into local machine in the excel format, he is going to the print preview and downloadn through Syste --> LIst --> Save --> Local File.
But in the excel file there are few blank lines after each node. Now my client wants to excluding of those blank lines while downloading the file into excel. Is there any method to achieve this.
Please advice me if there is any solution.
Thanks in advance
PraveenHi Praveen,
We cannot do any thing if the user download the file by that selection,
Disable the download option from the toolbar and you provide a download button on the toolbar. as the user clicks the button the delete the black entries from the table and download it using CL_GUI_FRONTEND_SERVICES.
Regards,
Kumar M. -
ALV Heading truncated when downloading to excel
Hi,
While downloading the ALV Grid output to Excel, the headings are getting truncated even I have given output length max.
Any one please let me know how to fix this in OO ALV - existing program using CL_SALV_COLUMN class for setting column texts, output length.
One of SCN thread stating to use DDICTXT, but that is in fieldcatalog - FM model. Is there any equal method in OO ALV.
Thanks,
Chandra.Maybe you can declare the Field of your internal table a bit bigger? For example if the field has a length of 15, declare it as 20? This might help for the heading.
-
Missing worksheet when opening in EXCEL 2013
Hi,
I had an output from our existing ERP system with file type as XLS.
Currently, if open in EXCEL 2010, I am able to view the workbook with multiple sheet.
However, now, in EXCEL 2013, I cannot geth the same result. I get only to view 1 sheet with 1 sheet missing from the open workbook.
Why is this happeneing? No problem in EXCEL 2010.
Please assist.
ByeHi,
If this is not a SharePoint related issue, I would suggest you open a thread in the corresponding forum, you will get more help and confirmed answers there.
Thanks
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Change font size when download into Excel spreadsheet
Dear all,
When the users export the Web report into Excel spreadsheet, how can we smaller font size and removal of bold. Use the font size 10 instead of font 19.
Thanks in advance,
Kenpstake reference of this doc: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e02729a3-34bd-2a10-6594-b618617f6d57
-
Dear Gurus a problem in alv report downloading to excel:
on executing the report works fine but when downloading to excel there last digit of bpvno is getting truncated.
ex: actual bpvno:'4000010' but excel o/p shows as '400001'
I have declared a field in final internal table as:
data: bpvno as bseg-belnr,
(in field catalog)
fieldcatalog-fieldname = 'BPVNO'.
fieldcatalog-seltext_m = 'BPV No.'.
fieldcatalog-seltext_L = 'BPV No.'.
fieldcatalog-col_pos = I1.
fieldcatalog-emphasize = 'X'.
append fieldcatalog .
clear fieldcatalog.
I1 = I1 + 1.
but after specifying the REF_TABLENAME & REF_FIELDNAME the downloaded excel o/p is correct.
My questions is:
1) i want to know what all are mandatory fields to be specified in fieldcatalog & is it compulsory to specify REF_TABLENAME & REF_FIELDNAME .
if not complusory why the downloaded excel value is being truncated ???
plz dont send materilas on alv and answer specific to the question....Hi,
I wrote a small program, and for me it worked. My assumption about the seltext was wrong. And I also didn't use output lenght.
Here is the code.
REPORT ZALVTOEXCEL .
type-pools slis.
data : gt_fcat type slis_t_fieldcat_alv.
data fieldcatalog like line of gt_fcat.
types : begin of t_belnr,
bpvno like bseg-belnr.
types end of t_belnr.
data gt_belnr type table of t_belnr.
data gwa_belnr type t_belnr.
gwa_belnr-bpvno = '4000010'.
append gwa_belnr to gt_belnr.
fieldcatalog-fieldname = 'BPVNO'.
fieldcatalog-seltext_m = 'BPV No.'.
fieldcatalog-seltext_L = 'BPV No.'.
fieldcatalog-col_pos = 1.
fieldcatalog-emphasize = 'X'.
append fieldcatalog to gt_fcat.
clear fieldcatalog.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
IT_FIELDCAT = gt_fcat
I_SAVE = 'A'
TABLES
t_outtab = gt_belnr
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
regards,
Advait.
Maybe you are looking for
-
Every time I have to upgrade iTunes it gives me this messege:'The default location for this file is in the "iTunes" folder in the "Music" folder.' the file should be there but I don't understand why it does this every time Apple upgrades the Itunes l
-
I use to be able to open multiple tabs on Firefox by clicking the + (Open A New Tab). Now nothing happens when I click this button.
-
Positive Value only Display or Edit Pattern
Hello, could someone please explain how I can prevent a negative result in a calculation field? i.e., a result less than zero. In other words, how can I ensure that users only enter positive values in a numeric field, and that the subsequent simple "
-
Using a Standby Backup to Recover a Primary
Here's one I've been working on and would like input. We backup our standby database nightly due to resource limitation on our primary server. These backups will be used to recovery the primary in case of failure. I've successfully applied these back
-
Hi guys, After I merge all of my tracks on Garage Band for the iPad, the resulting "Merged" track has absolutely no audio. Not sure what I'm doing wrong...I am selecting all of the tracks before merging.