BW Excel file password problem
Hi All
We have a unique problem in BW. We are on version 3.1C. When we open downloaded excel files containing hierarchies, the system asks for a password. However system does not accept any password and it results in a userid lock.
Any idea how we can resolve this?
Rgds
Shobhana.
Hello Praveen
The problem is during file open itself. I am not worried on saving the file.
Pl see these steps:
1. I download a report to excel from BW on my local PC
2. I try to open the file in excel
3. System keeps on prompting for userid/password a number of times (Although I give a correct id and password, it keeps on asking the same).
4. The userid gets locked.
5. Since the file does not open successfully, there is no question of saving the same.
This typically happens for files containing hierarchies.
Rgds
Shobhana.
Similar Messages
-
Excel File Format Problem while downloading in ALV Grid
Hi All,
My program gives an ALV Grid Output which contains the file download button , when I choose spread sheet as the file format , the actual data starts only from 4th line and the lines above it contain date, heading etc and the rest are blank. Is it possible that I can download only the records in the grid output with the column names and not the unnecessary log?
Also the format is not proper excel format, this same file will be used for upload into another program using the Function Module 'TEXT_CONVERT_XLS_TO_SAP'. When I load the file saved in the above format, this Function Module always fails.
Please let me know any solution for this problem
Thanks in Advance.Hi
try this code----
*& Form DOWNLOAD_EXCEL_TEMPLATE
text
--> p1 text
<-- p2 text
FORM download_excel_template .
TYPES: BEGIN OF lt_data,
field1(20),
field2(30),
field3(20),
field4(20),
field5(20),
field6(30),
field7(15),
field8(10),
field9(10),
field10(20),
field11(20),
field12(10),
field13(20),
field14(20),
END OF lt_data.
DATA: lv_file TYPE rlgrap-filename,
li_data TYPE STANDARD TABLE OF lt_data,
wa_data TYPE lt_data,
lv_pathcheck type c,
lv_file1 type string.
wa_data-field1 = ''.
APPEND wa_data TO li_data.
REFRESH gi_header.
wa_header-name = 'Company Code'.
APPEND wa_header TO gi_header.
wa_header-name = 'Main Asset Number'.
APPEND wa_header TO gi_header.
wa_header-name = 'Asset Sub Number'.
APPEND wa_header TO gi_header.
wa_header-name = 'Document Date'.
APPEND wa_header TO gi_header.
wa_header-name = 'Posting Date'.
APPEND wa_header TO gi_header.
wa_header-name = 'Asset Value Date'.
APPEND wa_header TO gi_header.
wa_header-name = 'Item Text'.
APPEND wa_header TO gi_header.
wa_header-name = 'Reference'.
APPEND wa_header TO gi_header.
wa_header-name = 'Allocation'.
APPEND wa_header TO gi_header.
wa_header-name = 'Amount Posted'.
APPEND wa_header TO gi_header.
wa_header-name = 'Percentage Rate'.
APPEND wa_header TO gi_header.
wa_header-name = 'Quantity'.
APPEND wa_header TO gi_header.
wa_header-name = 'Prior-Yr Quantity'.
APPEND wa_header TO gi_header.
wa_header-name = 'Curr-Yr Quantity'.
APPEND wa_header TO gi_header.
lv_file = gv_file.
lv_file1 = gv_file.
CALL METHOD cl_gui_frontend_services=>directory_exist
EXPORTING
directory = lv_file1
RECEIVING
result = lv_pathcheck
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
wrong_parameter = 3
not_supported_by_gui = 4
OTHERS = 5.
FIND '.xls' IN lv_file IGNORING CASE.
IF sy-subrc = 0.
REPLACE '.XLS' IN lv_file WITH ' ' IGNORING CASE.
ENDIF.
FIND '.TXT' IN lv_file IGNORING CASE.
IF sy-subrc = 0.
REPLACE '.TXT' IN lv_file WITH ' ' IGNORING CASE.
ENDIF.
CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
EXPORTING
file_name = lv_file
data_sheet_name = 'DATA'
TABLES
data_tab = li_data
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 -
Looking for advice!
I created an POI HSSFWorkbook object.
When I'm writing in a file the structure shows as correct.
When I create a file and then subsequently attach to mail the file comes arrives as right.
If I do a direct attachment of the HSSFWorkbook object ( spring ) upon saving,
it turns out to be of the wrong structure and illegible after saving.
parameters : name- "file.xls",
dataSource - HSSFWorkbook.getBytes(),
contentType - "application/zip"
ByteArrayResource res = new ByteArrayResource(dataSource) ;
this.helper.addAttachment( fileName, res, contentType ) ;
what's wrong ?O, I'm very sorry. I made a mistake.
It must be there setContentType( "application/vnd.ms-excel" ) .
I want attach workbook.getBytes[] data to mail object,
and does not turn out without the record of file on a disk.
Are there ideas ?
Thank you . -
Problem in writing into the excel file using java code
Hai ,
I will be getting the data as a string and i am writing into the excel file. the problem is .if it has numeric values even now i will writing as a string data ,at this time i am getting the message in the excel file as "Number in the cell is formatted as text".
I need to remove this thru my code..but i can write only as a string .
To write in a excel file ,i used HSSFWorkbook.just check out
http://www.andykhan.com/ -
Xml publisher generate huge size excel file
hi,
we use xml publisher to generate excel file.
the problem is:
when there are over 100,000 rows, the excel file size will be very very huge,and it will take very very long time to open it.
i open the excel file with UltraEdit and find it is filled with html sytax.
When that excel file is opened with excel and saved as .xls file, the size will be dramatically reduced.
anyone can help?Hello
I am getting the same problem, the EXCEL output file size is huge.
What I notice that it is stored as Web Pages *.htm; *.html (Save as Type) in Excel this is the reason it is huge.
If I save as Microsoft Office Excel Workbook *.xls it Reduce the size.
I don't know how to save as *.xls through XML Publlisher.
Any body knows? please Help..
Thanks. -
Dear all ,
We are trying to load data from Excel file into a form using OLE2 . We are able to load the data from Excel File . But after closing the form if we open the excel file in Windows , it says that the file is locked for editing .
The following is the part of the code used for the same
Here we try to read the first row of the excel file and verify for a title to be present
if not present we close the file . we have used the OLE2.Release_OBJ
but still after this when we open the file in windows environment , we get the message locked for editing ....
any one plz help me !
declare
application ole2.obj_type;
workbooks ole2.obj_type;
workbook ole2.obj_type;
worksheet ole2.obj_type;
cell ole2.obj_type;
args ole2.list_type;
Check_file text_io.file_type;
no_file exception;
PRAGMA exception_INIT (no_file, -302000);
cell_value varchar2(2000);
begin
Lv_F_File_Type := Text_Io.Fopen(:Cb_Input.Ti_v_File_name,'R');
application:= ole2.create_obj('Excel.Application');
workbooks := ole2.get_obj_property(application, 'Workbooks');
args:= ole2.create_arglist;
ole2.add_arg(args, :Cb_Input.Ti_v_File_name);
workbook := ole2.invoke_obj(workbooks, 'Open', args);
ole2.destroy_arglist(args);
--Open worksheet Sheet1 of that Workbook
args:= ole2.create_arglist;
ole2.add_arg(args, 'Sheet1');
worksheet := ole2.get_obj_property(workbook, 'Worksheets', args);
ole2.destroy_arglist(args);
args:= ole2.create_arglist;
ole2.add_arg(args, Lv_n_rows);-- lv_n_rows value is 1
ole2.add_arg(args, 1);
cell:= ole2.get_obj_property(worksheet, 'Cells', args);
ole2.destroy_arglist(args);
cell_value :=ole2.get_char_property(cell, 'Value');
Lv_v_Title:=cell_value;
if Upper(Lv_v_Title) <> Upper(Lpk_Var.Lv_v_File_Name_Parameter) then
Lpk_Alert.Lp_Show('File Title Should be '||Lpk_Var.Lv_v_File_Name_Parameter);
ole2.release_obj(application); --sarav
ole2.release_obj(workbook);--sarav
ole2.release_obj(workbooks);--sarav
TEXT_IO.FCLOSE(Lv_F_File_Type);
Raise Form_Trigger_Failure;
end if;HI
Original Data (Excel):
Places
POI
POI Go-About
Photos
Naha (那霸市)
那霸机场(A)
(A) 机场出口,欢迎来到冲绳岛
C:\Users\PeckKeong\Pictures\Okinawa Photos\Day 1 Naha - 07122013\IMG 1 (1).png
Naha (那霸市)
那霸机场(B)
(B) 国际站顺着指示,经内陆站,去单轨电车站
C:\Users\PeckKeong\Pictures\Okinawa Photos\Day 1 Naha - 07122013\IMG 1 (2).png
Naha (那霸市)
那霸机场单轨电车(C)
(C)简单易懂,共有15站。
C:\Users\PeckKeong\Pictures\Okinawa Photos\Day 1 Naha - 07122013\IMG 1 (3).png
Resulting Display after importing (just example):
Places
POI
POI Go-About
Photos
Naha (那霸市)
那霸机场(A)
(B)国际站顺着指示,经内陆站,去单轨电车站
C:\Users\PeckKeong\Pictures\Okinawa Photos\Day 1 Naha - 07122013\IMG 1 (1).png
Naha (那霸市)
那霸机场(B)
(A) 机场出口,欢迎来到冲绳岛
C:\Users\PeckKeong\Pictures\Okinawa Photos\Day 1 Naha - 07122013\IMG 1 (2).png
Naha (那霸市)
那霸机场单轨电车(C)
(C)简单易懂,共有15站。
C:\Users\PeckKeong\Pictures\Okinawa Photos\Day 1 Naha - 07122013\IMG 1 (3).png
You can see that A-A, B-B, C-C in Original Table arrangement becomes disorder after importing: A-B, B-A, C-C
What happened to the EXCEL when imported? I have done several Excel Files without problem, and mostly about 10-15 rows. This apps was written with 90 Rows. Any limitation?
My actual Excel files showed about 50% of POI Column Correctly and 40% of POI Go-About (Photos) ...others either showed a small box, the TEXT (of photo path) or disorder.
Thanks
PK Hong -
How do I open a password protected excel file created on a PC in numbers 09, on a MacBook Air? I get a message that the "file is encrypted and can't be opened"
This is actually not true; I support users who are doing this w/ Excel 2011 (v14.2.2+) for Mac and Windows users w/ Excel 2003 & 2007. Win users are from finance dept, and who have pasword-protected various budget files. The Mac users are (surprise) "creative" users, who enter pw to unlock and edit these budget files.
These files are shared from a Mac server (running 10.6.8 server), and I do have an erratic problem where all users have read-only access to these pw-protected Excel files. The manual work-around has been to copy the troublesome file(s) and confirm users have full access again. I also do a shuffling of filenames, so that the new, working file has original file name.
FYI: the Mac server POSIX and ACL permissions are correct, and don't appear to be source of the problem.
It's easy an SMB file-locking issue or concurrent users trying to edit these files. I keep reminding them that Excel is not a database! -
Share Excel File that is password protected
Hello all
I have published a workbook in our shared area at work. It's massive and also has another workbook linked to it.
Both are password protected so are only available for viewing. But tons of people need to see them particularly the source file which is no problem because they can't change anything so can choose 'read only'.
However the problem is when I need to go in there to make a couple of alteration, I have to wait until they close it or of course as is typical, they will leave their desk and forget to close it!!
I haven't used the sharing workbook option although I've tried it and shown one of our departments to use it basically.
I was wondering if this would be possible on a file that is password protected and is locked on every sheet.
That way I can just go in when I need to even if someone's in there.
This is an extremely important file that
can not go wrong. (I do have a backup)
What are your views on this option and what is the best way to go about it?
ThanksHi,
Would you like to tell me which Excel version are you using? According to your description, I recommend we try the two methods:
Method 1:
Excel has a feature "Protected the sheet", we can assign the different password to each sheet.
For more detail information, please refer to the following link:
http://office.microsoft.com/en-gb/excel-help/password-protect-worksheet-or-workbook-elements-HP010078580.aspx
Method 2:
Share the Excel workbook, and assign the edit range/permission to users. We can allow specific users to edit ranges in Excel. Here is the steps:
Click 'Review', 'Allow Users to Edit Ranges','New'. In 'Title', enter the name. In 'Refers to cells', enter an equal sign (=) and enter the reference. In 'Range password', enter password. Click 'Permissions'. Click 'Add'. Enter the name. Click 'Protect Sheet',
enter password. Click 'OK'.
https://askdrexel.drexel.edu/app/answers/detail/a_id/2498/~/how-to%3A-allow-specific-users-to-edit-ranges-in-excel-2007.
http://office.microsoft.com/en-us/excel-help/use-a-shared-workbook-to-collaborate-HP010096833.aspx
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Regards,
George Zhao
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
How do I save excel file with password for read only access ?
Hi
I am trying to save an excel file with a password to make it read only when opened
using OLE2 . I am having a problem with the parameter list. This is my code that does
work.
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, 'C:\Reports\Excel\File.xls');
ole2.add_arg(args, 0);
ole2.add_arg(args, 0);
ole2.add_arg(args, 'TEST');
ole2.add_arg(args, 0);
ole2.add_arg(args, 0);
ole2.add_arg(args, 1);
I also have the following code at the beginning of the program to suppress dialogs.
OLE2.SET_PROPERTY(application,'DisplayAlerts', 'FALSE');
ole2.set_property(application,'Visible', 'false');Hope it help.
-- Begin : Protect your worksheet
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args,yourpassword); -- choose your password
OLE2.INVOKE(worksheet, 'Protect', args);
OLE2.DESTROY_ARGLIST(args);
-- End : Protect your worksheet
-- Begin : Save and close worksheet
OLE2.INVOKE(workbook, 'Save');
OLE2.INVOKE(workbook, 'Close');
-- END : Save and close worksheet -
Linked excel file problem - Help needed
I have 2 excel files in the same directory in Content Services. The "destination" file has a link in one of its cells to a cell in the "source" file. I want to be able to open the "destination" file and update the data if any changes have been made to the "source" file.
My problem is when I try to do this i get an error that says "This workbook contains one or more links that cannot be updated" and two options.
1) To change the source of links, or attempt to update values again, click Edit Links.
2) To open the workbook as is, click Continue.
If I click Edit Links I am then presented with a screen where I can open the "source" file. When I try to do this though I am given a login screen. Supplying a valid Content Services username and password doesn't work and I cannot open the file.
Can anyone tell me how I can open the "destination" file without having to open every "source" file? I don't want to open the "source" files because there could be dozens of "source" files for one "destination" file.setw is the equivalent of the field width value in printf. In your code, the printf version would look like:
printf("%8s", CURSOR->name.c_str());
I much prefer printf over any I/O formatting in C++. See the printf man page for more information. I recommend using Bwana: http://www.bruji.com/bwana/
I do think it is a good idea to verify your code on the platform it will be tested against. That means Visual Studio. However, you don't want to use Visual Studio. As you have found out, it gets people into too many bad habits. Linux is much the same way. Both development platforms are designed to build anything, whether or not it is syntactically correct. Both GNU and Microsoft have a long history of changing the language standards just to suit themselves.
I don't know what level you are in the class, but I have a few tips for you. I'll phrase them so that they answers are a good exercise for the student
* Look into const-correctness.
* You don't need to compare a bool to 1. You can just use bool. Plus, any integer or pointer type has an implicit cast to bool.
* Don't reuse your CURSOR pointer as a temporary index. Create a new pointer inside the for loop.
* In C++, a struct is the same thing as a class, with all of its members public by default. You can create constructors and member functions in a struct.
* Optimize your function arguments. Pass by const reference instead of by copy. You will need to use pass by copy at a later date, but don't worry about that now.
* Look into initializer lists.
* In C++ NULL and 0 are always the same.
* Return the result of an expression instead of true or false. Technically this isn't officially Return Value Optimization, but it is a good habit.
Of course, get it running first, then make it fancy. -
Download file thru excel with password
Hello ABAPers,
I used the EXCEL_OLE_STANDARD_DAT with password protected...my problem is .once this fm executed...the excel file appeared and sheets are not read only..Id like to do,once the file is downloaded to excel...and FM was executed...the excel file must not appear to the user..how can i done this using this FM ?
please hellllllppppp....
Thanks in advance..
will reward points to good answers
aVaDuDzHello Atish,
Thanks for the reply...If its not possible..is there any FM that i can use to download excel...and much possible protected by password? i tried other FMs...like GUI_DOWNLOAD.WS_EXCEL..but this EXCEL_OLE_STANDARD_DAT fit my requirements..but it automatically open the excel file which is supposed to be hide to the user ..for security purpose.
Thanks in advance..
aVaDuDz -
How to open an excel file with password in Crystal Reports XI Release 2
I have a problem when i try to open an excel 2003 file with password that i know
i recevived an error code 0xc59
How can I open a file in excel 2003 protected by password to create the report?
Thanks in advancedHi Pierluigi,
It looks like you have to open the excel file and use the data.
A few informative links.
http://support.microsoft.com/kb/257819#RetrieveExcel
http://support.microsoft.com/kb/211378/EN-US/
Hope this helps.
Regards,
Abhijeet Taskar. -
Recovery a password protect excel file.
I have a password protected excel file and now it's corrupted and i can't open it. I tried to open_and_repair feature of excel2010 and different other stuffs, without success. I was wondering if there's a way to remove the password without opening the excel
files (i know the password). In this way maybe it'll be easier to repair the file. Is there a way to do this? What other things i could try?Hi,
There are several methods to recover Data in Corrupted Excel Files.
We can use the following methods to troubleshoot problems with opening or using Excel
files:
Use a recovered copy of the document.
Use the
Open and Repair command.
Save the file in HTML format.
Save the file in XML Spreadsheet format.
If a chart is linked to the corrupted file, use a macro to extract the data.
For more information, please refer to the following link:
http://support.microsoft.com/kb/820741
http://office.microsoft.com/en-us/excel-help/repairing-a-corrupted-workbook-HA010342840.aspx?CTT=1#BMothermethods
Jaynet Zhang
TechNet Community Support
A new Office has arrived, try it now.
A beautiful Start. It begins here. Windows 8 and Windows RT.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
Dear All,
I have a problem with an EXCEL file, i'm in a domain with windows server 2003 and all of the computer have windows 7, a user had open 3 weeks ago a fil excel after she gone on holiday so the file remain open (i don't know how) by she.
I've try with all unlocker program to make the file deletable, but not work... it is very strange because if i try to open it with the account of the user that open the file appears always the same error (open read only)...
Could you help me?
thanksHi,
You may end the Excel process first, the “PsTools” have a pskill command that you can use to end a process remotely.
Here’s a simple command:
pskill \\computer –u username -p password excel.exe
For more information, please see the KB below:
http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx
Best Regards -
[URGENT] Is Password protected excel file allowed in SharePoint 2013?
Hi Everyone,
My boss wanted me to upload some sensitive files into the SharePoint. So I want to use the basic password encryption in Excel Option to create passwords for each one.
Due to the unclear rules of SharePoint, it has broken down for several times. So this time, I want to ask professionals first - Can I upload password protected spreadsheets into SharePoint?
Would Sharepoint allow that?
Thanks for your ideas!Yes, I can confirm the protected Excel file, whatever the Workbook protect or Worksheet protect, would be allowed by SharePoint site and upload without problem.
Thanks.
Tony Chen
TechNet Community Support
Maybe you are looking for
-
please help. i was trying to update my iphone to ios 6 thru itunes but there was an error message that my phone is corrupted while downloading and that i make sure that there is a network connection and to retry downloading. no software update availa
-
I cant save high resolution image from google safari 5.0.4
mac os snow lepord macbook 10.6.6 and safari 5.0,4 wont save high resolution images while searching and exploring in google my way is that i search images larger than 2mb or for e.g then right click to image then open in new tab when this opened in
-
The iPad stick in the recovery mode
Hello My iPad stick in the recovery mode, so when i connect it to the PC to restore it, it's keep restarting and the iTunes doesn't start I don't know what to do, It drive me to madness Hope anyone can help me :'(
-
Iviews placed side by side do not fit in page.
Migrating from EP5 to EP6 I have a set of 6 iviews side by side and they fit on the page with no problem. I bring the same iviews over to EP6 and now a scroll bar is on the bottom page. The iviews did not get any bigger. Is there a way to force a
-
I would like to cancel my membership today. Can someone help me do that?
I would like to cancel my membership today. Can someone help me do that?