on 08-25-2013 8:57 AM
Hi All,
I have requirement that once my query got executed in BEX analyzer. The value should not be editable.
Can you please how can we achieve this?
TIA
Hi,
Is it a query that you are executing in Analyzer or a workbook that you have created by embedding the query?
1. If you want the contents of the query to be in editable after execution, the I would suggest you to create a workbook with the query and use a simple macro to restrict the access to "read only". Just put the following code in the macros and it will not allow the user to change the values in the sheet:
Public PriorSheet As Worksheet
Const PW = "password"
Sub SetPriorSheet()
Set PriorSheet = ActiveSheet
End Sub
Sub ProtectSheet()
Call SetPriorSheet
On Error Resume Next
ActiveWorkbook.Protect Structure:=True, Password:=PW
ActiveSheet.Cells.Locked = True
ActiveSheet.Protect Password:=PW
On Error GoTo 0
End Sub
Private Sub Worksheet_Activate()
Call ProtectSheet
End Sub
Just right click on the sheet name at the bottom of the workbook and go to "View code" , VBA editor will open up, just paste the code there. This will not allow the user to edit any of the values, if he does so, it'll ask for a password.
You can also protect the VBA code from being edited, open up the editor -> tools-> VBAproject properties-> protection and enable the password.
2. If you want the cells to be read only after you run query without creating workbook: I don't think BEX or analyzer provide this kind access control. Even with the use roles i don't think you can prevent the values in cells to be edited.
Regards,
Saurabh Ojha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
If you want that the user should not be able to change in report output then you can give the user Web Reports by designing WAD Templates if not already available.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If I understand your question correctly, you want the spreadsheet's cells to become locked when the report is executed. In other words, you don't want the users to change the numbers on the report by typing these numbers in the spreadsheet, right?
I think you need to use VB in order to trigger this behaviour in Excel. Otherwise, why use Excel-based tool if you want your report to be delivered in a static mode. Use Crystal or Web Analyzer for example.
Thanks,
MJ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Maintain optional variables in the query exit itself, so that it will never ask for user input. It will be executed for the given values at the query creation itself.
You can follow the procedure from http://help.sap.com/saphelp_nw04/helpdata/en/22/1e9b3c334d8c15e10000000a114084/content.htm
Regards,
kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can authorize your user to display the workbook only, but not change access. Create Role just to display the workbooks and assign this role to the particular users.
Regards,
Suman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.