: Error message whendownloading excel file
When we are trying to download report to excel, we are getting following error.
Earlier this functionality was working ok, after application of support pack sp10 on portal and reapplying SSO on SAP HR side, we started getting following error..
Any help on this is appreciated
Thanks
Note
Following error text processed in system:
BSP Exception: Das Objekt 463BD5128FE15B2CE10000000AE4B24F.xls in der URL /sap(bD1lbiZjPTIyNiZkPW1pbiZwPTMyNjI5JnY9NyUyZTAwJmk9MQ==)/bc/bsp/sap/ZHR_EC/463BD5128FE15B2CE10000000AE4B24F.xls ist nicht gültig.
Following is some of the code..
method provide_excel_file .
data: l_cl_comp_select type ref to zcl_hr_ec_comp_select
, l_cl_error_handler type ref to zcl_hr_bc_error_handler
, l_cl_employee type ref to zcl_hr_bc_employee
, l_cl_empl_error type ref to zcx_hr_bc_hraccess
, l_cl_salary_data type ref to zcl_hr_ec_salary_details_data
, l_carea type ecm_carea
, l_orgunit type hrobjid
, l_t_excel type zhrtt_ec_excel
, l_t_ids type zhrtt_ec_ids
, l_s_id type zhrlt_ec_ids
, l_process type zhr_ec_process
, l_cl_orgunit type ref to zcl_hr_bc_orgunit
, l_pernr type pernr_d
field-symbols <l_fs_id> type zhrlt_ec_ids.
Get an instance of the error handler class
l_cl_error_handler = zcl_hr_bc_error_handler=>get_instance( ).
Fill table l_t_ids
if i_id is not initial.
Get an instance of the central employee class
try.
l_cl_employee = zcl_hr_bc_employee=>get_instance_for_pernr_pos( i_id(8) ).
l_orgunit = l_cl_employee->get_orgunit( ).
CATCH cx_hrpa_missing_infty_data .
catch zcx_hr_bc_missing_infty_data . "BROOKSS Y47K900294
endtry.
Read org units and itz pernrs except Chief "Y47K900175 #374 -Start
create object l_cl_orgunit
exporting
i_orgunit = l_orgunit
i_keydt = sy-datum. "ins CSC 2007-04-24 Y47K900264 #394
try.
call method l_cl_orgunit->get_employees_of_mgr
receiving
r_t_employees = l_t_ids.
catch zcx_hr_bc_om_error .
endtry.
*Get position and add to pernr
loop at l_t_ids assigning <l_fs_id>.
l_pernr = <l_fs_id>(8).
try.
call method zcl_hr_bc_employee=>get_instance_for_pernr_pos
exporting
i_pernr = l_pernr
receiving
r_cl_instance = l_cl_employee.
call method l_cl_employee->get_position
receiving
r_plans = <l_fs_id>+8(8).
CATCH cx_hrpa_missing_infty_data .
catch zcx_hr_bc_missing_infty_data . "BROOKSS Y47K900294
endtry.
endloop. "Y47K900175 #374 -End
elseif i_pernr is not initial.
Get an instance of the central employee class
try. "ins CSC 2007-05-02 Y47K900294 #457
l_cl_employee = zcl_hr_bc_employee=>get_instance_for_pernr_pos( i_pernr ).
l_s_id-id(8) = i_pernr.
l_s_id-id+8(8) = l_cl_employee->get_position( ).
append l_s_id to l_t_ids.
catch zcx_hr_bc_missing_infty_data. "ins CSC 2007-05-02 Y47K900294 #457
endtry. "ins CSC 2007-05-02 Y47K900294 #457
endif.
Create an instance of the compensation selection class
create object l_cl_comp_select.
Get selected compensation process
call method l_cl_comp_select->get_current_selection
importing
e_carea = l_carea
e_process = l_process.
if not ( l_carea is initial and
l_process is initial ).
Create an instance of the central class zcl_hr_ec_salary_details_data
create object l_cl_salary_data
exporting
i_carea = l_carea
i_process = l_process.
Fill excel table
try.
call method l_cl_salary_data->get_excel_table
exporting
i_t_ids = l_t_ids
i_currency = i_currency
importing
e_t_excel_table = l_t_excel.
catch zcx_hr_bc_hraccess into l_cl_empl_error.
call method l_cl_error_handler->set_exception_msg
exporting
i_cl_exception = l_cl_empl_error
i_type = 'E'.
return.
endtry.
Get cached URL of the excel file
r_url = me->cache_excel( i_t_excel = l_t_excel
i_runtime_url = i_runtime_url ).
else.
RAISE EXCEPTION TYPE cx_hrpa_invalid_customization
raise exception type zcx_hr_bc_invalid_customizatio "BROOKSS Y47K900292
exporting
textid = text-e01.
endif.
endmethod.
method cache_excel .
data: l_cached_response type ref to if_http_response
, l_cl_abap_type type ref to cl_abap_typedescr
, l_filename type string
, l_guid32 type guid_32
, l_string type string
, l_xstring type xstring
, l_help_field(1024) type c
, l_length type i
, l_s_excel type zhrlt_ec_excel
, l_cl_element type ref to cl_abap_elemdescr
, l_s_dfies type dfies.
field-symbols
: <l_excel> type any.
create 'good' filename with appraisee information
concatenate 'attachment; filename=salary_' sy-datum '_' sy-uzeit '.xls'
into l_filename.
Fill cached HTTP response
create object l_cached_response
type cl_http_response
exporting add_c_msg = 1.
Some Browsers have caching problems when loading PDF format
mime type of page is set to application/pdf
l_cached_response->set_header_field(
name = 'cache-control'
value = 'max-age=0' ).
l_cached_response->set_header_field(
name = 'content-disposition'
value = l_filename ).
l_cached_response->set_header_field(
name = if_http_header_fields=>content_type
value = 'application/msexcel' ).
l_cached_response->set_status(
code = 200
reason = 'OK' ).
expire after 5 minutes
l_cached_response->server_cache_expire_rel(
expires_rel = 300 ).
Convert table type i_t_excel in a string
loop at i_t_excel into l_s_excel.
*Header for excel file
if sy-tabix = 1.
do.
Set all fields of structure l_s_excel
assign component sy-index of structure l_s_excel to <l_excel>.
if sy-subrc <> 0.
exit.
endif.
l_cl_abap_type = cl_abap_typedescr=>describe_by_data( <l_excel> ).
l_cl_element ?= l_cl_abap_type.
if l_cl_abap_type->get_relative_name( ) = 'ZHR_BC_AMNTPCT'
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_SAVED'
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_MARK'
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_MERITA_A'"Y47K900108
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_MERITP_A'"Y47K900108
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_LUMPSUMA'"Y47K900108
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_LUMPSUMP'"Y47K900108
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_MRAAMOUNT'"Y47K900108
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_MRAPERCENT'"Y47K900108
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_PROAMOUNT'"Y47K900108
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_PROPERCENT'"Y47K900108
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_TOTALA_A'"Y47K900108
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_TOTALP_A'"Y47K900108
or l_cl_abap_type->get_relative_name( ) = 'INT4'. "Y47K900108
else.
call method l_cl_element->get_ddic_field
exporting
p_langu = sy-langu
receiving
p_flddescr = l_s_dfies
exceptions
not_found = 1
no_ddic_type = 2
others = 3.
if sy-subrc <> 0.
clear l_s_dfies-scrtext_l.
else.
write:/ l_s_dfies-scrtext_l.
endif.
concatenate l_string l_s_dfies-scrtext_l cl_abap_char_utilities=>horizontal_tab
into l_string.
clear: l_s_dfies.
endif.
enddo.
Set a new line
concatenate l_string cl_abap_char_utilities=>newline
into l_string.
endif.
do.
Set all fields of structure l_s_excel
assign component sy-index of structure l_s_excel to <l_excel>.
if sy-subrc <> 0.
exit.
endif.
l_help_field = <fs_excel>.
write <l_excel> to l_help_field.
condense l_help_field.
l_cl_abap_type = cl_abap_typedescr=>describe_by_data( <l_excel> ).
if l_cl_abap_type->get_relative_name( ) = 'ZHR_BC_AMNTPCT'
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_SAVED'
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_MARK'
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_MERITA_A'"Y47K900108
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_MERITP_A'"Y47K900108
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_LUMPSUMA'"Y47K900108
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_LUMPSUMP'"Y47K900108
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_MRAAMOUNT'"Y47K900108
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_MRAPERCENT'"Y47K900108
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_PROAMOUNT'"Y47K900108
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_PROPERCENT'"Y47K900108
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_TOTALA_A'"Y47K900108
or l_cl_abap_type->get_relative_name( ) = 'ZHR_EC_TOTALP_A'"Y47K900108
or l_cl_abap_type->get_relative_name( ) = 'INT4'."Y47K900108
elseif l_cl_abap_type->get_relative_name( ) = 'ZHR_BC_ID'. " ins Y47K900245 #414 -Start
concatenate l_string l_help_field+0(8) cl_abap_char_utilities=>horizontal_tab
into l_string.
else. " ins Y47K900245 #414 -End
concatenate l_string l_help_field cl_abap_char_utilities=>horizontal_tab
into l_string.
endif.
clear: l_help_field.
enddo.
Set a new line
concatenate l_string cl_abap_char_utilities=>newline
into l_string.
endloop.
Convert string to xstring
call function 'SCMS_STRING_TO_XSTRING'
exporting
text = l_string
importing
buffer = l_xstring
exceptions
failed = 1
others = 2.
if sy-subrc = 0.
Get the length of the xstring
l_length = xstrlen( l_xstring ).
Pump excel data to browser
l_cached_response->set_data( data = l_xstring
length = l_length ).
Create URL
call function 'GUID_CREATE'
importing
ev_guid_32 = l_guid32.
concatenate i_runtime_url '/' l_guid32 '.xls' into r_url.
cl_http_server=>server_cache_upload(
url = r_url
response = l_cached_response ).
endif.
endmethod.
Similar Messages
-
The error message in excel 2003 : "compile error in hidden module AutoExecNew" could be caused by Adobe Acroate add ins, thats waht microsoft told me.I use windows xp service pack3.I have got reader newest version and photoshop 6.0. With this and also with an older reader version I got the error message when opening excel. what can I do?
Best regards RayIf you have Adobe Reader, you (probably) don't have Adobe Acrobat, a
commercial ($$) product. 5.0 is a very old release.
But you can check if the files are there anyway from long ago. See
http://support.microsoft.com/kb/307410
Aandi Inston -
HELP! ERROR MESSAGE: Missing PDFMaker Files
Hello-
My Adobe Acrobat Professional 7.0 has been running perfectly fine for over a year now. However, today I went to create a pdf. and I received the following error message:
Missing PDFMaker Files
Do you want to run the installer in repair mode?
So I said yes, and then restarted my computer. That didn't fix it.
I uninstalled Adobe Acrobat Professional and re-installed it. That didn't fix it.
I really have no idea what to do. It's extremely frustrating because I have CS2 and the phone support people said they couldn't help me because I don't have the newer version. I'm looking for any sort of solution to this problem because it makes this program virtually useless.
Thanks in advance for your help.
Chrisok i just got mine working. you have 7 i have 8, but its still worth a try. here are the steps i took. i hope this helps good luck
i did this in excel, so ill use excel as the application, otherwise its outlook or word or whatever your application name is ok oh i have 07 office
- open excel
- click the office button (the big yellow button at the top left)
- click excel options button (at the bottom)
- click add ins on the left side dialog box
- do one of the following
- if pdfmoutlook or acrobat pdfmaker office COM addin is not listed, choose COM Add ins form the manage pop-up menu (at the bottom) and click go
- if pdfmoutlook or acrobat pdfmaker office COM addin is listed under Disabled Application Addin, select disabled items from the manage pop up menu and click go
- select pdfmoutlook or acrobat pdfmaker office COM addin and click ok
- restart your application (again i was in excel)
i choose acrobat pdfmaker not outlook
i googled
activate PDFMaker in Microsaoft Office and clicked on the one that says
acrobat 9 pro extended convert a file using pdf maker
for some reason (im not very good with these forums) i cant copy the link into this wondow and its extremly long
it begins
help.adobe.com/en_US and so on....so google that and click on that link
let me know if this owrked ok -
I am unable to open a project that I have worked on and saved. I get an error message that the file is damaged and cannot be opened.
Leslie Tanaka
Travel and detours have kept me from following up sooner. If the problem that you wrote about still persists.....
Let us go back over that Adobe document regarding troubleshooting damaged projects.
3. Delete the Application Preferences
Where you able to follow that path and delete the Adobe Premiere Elements Prefs file at the end of the path? And, after you did, did the saved/closed programs still refuse to open? If you could not carry out this procedure, what were the limiting factors that kept you from do
7. Test to see if individual media files are causing the problem.
That is an important one. How far did you get into following the instructions given in the document? If you could not complete the test, what was the major block that prevented you from doing so?
I want to make sure that we have gone through everything in that document and ruled all factors there in or out. If it was a matter of you not understanding the instructions, I am hoping that the above will channel you questions to me so that I can clarify anything that you did not understand in the Adobe document instructions.
I do not recall if I asked previously. Even if you cannot open all your saved/closed projects, can you still open a new project and save/close it? Maybe even reopen it?
Please review and consider.
Thank you.
ATR -
My iTunes won't open on my laptop. Error message says The file "iTunes Library.itl" cannot be read because it was created by a newer version of iTunes. Help Please!
See Empty/corrupt iTunes library after upgrade/crash.
tt2 -
So frustrating! I open the photo. Edit by cropping, adjusting color, etc. It's perfect. I click DONE and move on to the next. When I come back, the first photo is gone. I can see it in the album but cannot open it. When I look at the file information, it shows zero KB. If I move it to the desktop and try to open it, the error message says the file is empty. I can revert to original and there it is. Edit again, and again it disappears. What am I doing wrong? I am using iPhoto 09
You shooting with a Nikon? We've seen a few examples of this bug with Nikons on 09 and 10.6, with no solution except to upgrade.
Regards
TD -
Error in uploading excel file using Java pages
Hello,
We are using oracle ERP (R12.1.1) and we have developed one JSP page to upload an excel.
After selecting the excel and browse button is clicked we are gettign the OLE stream error when the excel file is .csv or .xlsx. There is no issue with .xls excel files. For loading the excel data to custom table we are using the "jxl-2.6.jar".
Can we get higher version of "jxl-2.6.jar to support CSV upload?
Thanks.Are you Registered this jsp upload page to EBS before test?
You have to register the page to EBS first.
Regards,
Dilip -
I have LR 5. When I'm in the book module and select the option to "Send Book to Blurb" i get an error message saying "The file does not have a program associated with it for performing this action. Please install a program, or if one is already installed, create an association in the Default Programs control panel."
How do I fix this?Try the following user tip:
"There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows -
Error message "cannot locate file"
I purchased a new computer and used Detto Intelli Mover to transfer all my music files. When I opened the library, they all appeared to be there, but when I try to plan anything I get an error message "cannot locate file" This happens with all of my 1,200 songs. The error message also says "would you like to look", but I am unable to locate then. Can anyone help with this?
Have you added all the songs to the library? Just by dragging and dropping?
-
can not log into itunes, get the following error message: c:\program files (x86)\itunes\itunes help.exe
R6034
I have uninstalled and reinstalled and still unable to loginApple's advice on this issue can now be found here: TS5376: iTunes 11.1.4 for Windows: Unable to install or open.
The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See the user tip Backup your iTunes for Windows library with SyncToy for a suggested strategy.
If you have difficulty downloading the iTunes setup file try clearing your browser's cache or using an alternate browser.
If content is missing from the library following the repair see Empty/corrupt iTunes library after upgrade/crash.
For device connectivity issues following the repair see TS1538: iOS: Device not recognized in iTunes for Windows, in particular section 5.
MobileMe is a discontinued service and should be removed if present. See HT2992: MobileMe: Uninstalling the MobileMe Control Panel for Windows for details.
tt2 -
I installed iTunes 64 on a Windows 7 (Home) HP Pavilion and received this error message. the file iTunes Library.itl cannot be read because it was created by a newer version of iTunes. Please help!
The file "iTunes Library.itl" cannot be read because it was created by a newer version of iTunes".
Try the following user tip:
Empty/corrupt iTunes library after upgrade/crash -
After years of using iTunes on my G4 suddenly it won't open. Error message says "The file "iTunes Library" cannot be read because it was created by a newer version of iTunes". What do I do? I have been attempting to move my Library to a newer MacBook Pro.
The file "iTunes Library.itl" cannot be read because it was created by a newer version of iTunes".
Try the following user tip:
Empty/corrupt iTunes library after upgrade/crash -
updated iTunes and now get an error message that the file iTunes Library.itl cannot be read because it was created by a newer version of iTunes. ??
hello!
i have a similiar problem:
i upgraded my mac from 10.6.8 to 10.7.something recently, but i did NOT update itunes, still running version 10.4.1. now i wanted to open itunes but it tells me, that my iTunes Library.itl was created by a newer version of iTunes - which i never used!
its annoying since i dont want to be forced to download a 720MB pckage of itunes every month - even more so, if the system start "lying" to me.
or is it another problem? anyone got the same? any solution? maybe an erratic prompt?
thanks, florian -
Download error message - "Cannot Create File"
Recently I developed a problem and am unable to download anything (files, software, etc) from any website. I begin a download, the download manager comes up and it shows an error message "Cannot Create File." I am using the default manager that is incorporated in OS X 10.3.9.
I never had a problem until a week or so ago when I downloaded a software demo. I decided to get the full software package and trashed the demo files per the company's instructions. I got the error message when I tried to download the full program and now get the message no matter what I attempt to download. Might I have trashed a file I wasn't supposed to trash?
I tried installing 10.3.9 again on my main drive but still have the problem. If I use an external hard drive with spare copy of 10.3.9 and make that my start up drive, I can download files successfully.
Any help would be greatly appreciated.
Dave
2002 DP 1GH Quicksilver Mac OS X (10.3.9)Recently I developed a problem and am unable to
download anything (files, software, etc) from any
website. I begin a download, the download manager
comes up and it shows an error message "Cannot Create
File." I am using the default manager that is
incorporated in OS X 10.3.9.
I never had a problem until a week or so ago when I
downloaded a software demo. I decided to get the full
software package and trashed the demo files per the
company's instructions. I got the error message when
I tried to download the full program and now get the
message no matter what I attempt to download. Might I
have trashed a file I wasn't supposed to trash?
I tried installing 10.3.9 again on my main drive but
still have the problem. If I use an external hard
drive with spare copy of 10.3.9 and make that my
start up drive, I can download files successfully.
Any help would be greatly appreciated.
Dave
2002 DP 1GH
Quicksilver Mac OS X (10.3.9)
I have the same problem ! Not being able to download a file from the Adobe site. I need Reader 7 to download some files from exact exams but can't do it. Just keep getting the Cannot Creat File message in the download window. Can anyone help?
eMac 1.25 & G4 800 iBook Mac OS X (10.4.5)
eMac 1.25 & G4 800 iBook Mac OS X (10.4.5) -
Adobe Acrobat gives an error message "The key file is missing, canceled"
Hi,
Adobe Acrobat gives an error message "The key file is missing, canceled" this is a direct translation of the Finnish error message. Acrobat is already re-installed. The operating system is Windows Server 2008 R2, and there is also installed Adobe Reader X.
BR
HeikkiPlease let us know do you see this error on every launch of Acrobat?
Recommended is to have latest version of Acrobat and Reader. i.e. 10.1.8
Try updating application and then see if you still encounter the error.
Maybe you are looking for
-
Profit center is not pickin up in FI document
Hi, Profit centre is stored in Material group master record and through KLOP interface accounting document is being generated in FI side but in credit line item the profit centre is showing as u201CDUMMYu201D, but for other documents the profit centr
-
Column Issue in custom DBI report
Hello all, I created one custom DBI report. In that Start Time filed should shows Date and time (ie. 4/1/2009 5:14:14 PM). But in my custom report it is showing only the date (time is hiding). I tried to update the field, that display type as Date. T
-
My itunes has stoped working it says some files are missing
My Itunes has resently stopped working it says that some fiiles are missing i cannot access it and i do not know what to do
-
How can I purge all Local History?
My Local History has somehow gotten corrupted and nothing I have tried has gotten it working again. (See Re: Local History quit working I've tried turning off Local History and turning it back on, setting "Days to Keep History" to 0 and "Maximum Revi
-
Informatica 9.5 client and 9.6 server
Kids, the answer is extremely simple: Informatica does NOT support any combination of server X and clients Y. Both versions have to match exactly. Yes, there have been times when e.g. a 8.6.1 Hotfix 5 client could be used with a 8.6.1 Hotfix 9 server