Desktop Integration (DOI)  Excel password

Hello all,
I am using DOI to download data from SAP to excel.    In the excel file a range of cells are protected with the method protect of the inteface   i_ oi_spreadsheet.
Everything is working fine only unprotected cells are changeable.  But  after the download  the users want  to have possibility to  change the protected cells.     The excel-file is asking for a password.  
In the i_oi_spreadsheet  i can't find  a method with password as parameter.     Is it possible to set  a password  with DOI?
Regards,
Tony

solved on my own.
In DOI  unprotect  the columns that are editable with mehtod 
call method g_handle->protect_range
exporting
name    =  wa_fields-fieldname
protect  = '  '.
After closing the excel file use  OLE  to setup a password ( = sy-uname)
FORM set_password .
  DATA: w_excel     TYPE ole2_object,
        w_workbook  TYPE ole2_object,
        w_worksheet TYPE ole2_object.
  CREATE OBJECT w_excel 'EXCEL.APPLICATION'. "Create object for Excel
  SET PROPERTY OF w_excel  'VISIBLE' = 0. "In background Mode
  CALL METHOD OF w_excel 'WORKBOOKS' = w_workbook.
  CALL METHOD OF w_workbook 'OPEN'
    EXPORTING
    #1 = p_file.
  GET PROPERTY OF w_excel 'ActiveSheet' = w_worksheet.
Protect the first worksheet with a password
  CALL METHOD OF w_worksheet 'PROTECT'
    EXPORTING #1 = sy-uname.
Save the Excel file
  GET PROPERTY OF w_excel 'ActiveWorkbook' = w_workbook.
  CALL METHOD OF w_workbook 'SAVE' NO FLUSH.
  CALL METHOD OF w_workbook 'CLOSE'.
  CALL METHOD OF w_excel 'CLOSE'.
  FREE OBJECT: w_worksheet, w_excel, w_workbook.
ENDFORM.                    " SET_PASSWORD
Edited by: tony pang on Dec 23, 2009 3:18 PM

Similar Messages

  • Desktop Integration with Excel sheet

    Hello Everyone,
                              I have a requirement where in i need to create an excel document with different format and data for each cell.Here i want to use office integration control .Can anyone provide me sample code to  create a spreadsheet and passing the data to it through office integration..?.
    I am also looking for other option where in instead of building document from scratch,i want to use one standard template which i should be able to open and pass the data to a certain cells of this document .Is it possible to implement this functionality through desktop integration controls..? Please do the needful.
        Thank you in advance.
    Regards,
    Venkat.

    Hi,
    By using OLE your code becomes very lengthy and you have to write your own
    reusable subroutines. It is not suitable for complex requirement.
    You can go for Desktop Office Integration (DOI) classes and their methods which serves
    most of the common user requirements.
    Please refer below examples
    1. SAPRDEMO_SPREADSHEET_INTERFACE
    2. SAPRDEMO_FORM_INTERFACE
    Regards,
    Vishal

  • Unable to Install Desktop Integration (Jdev 11.1.1.5) in Windows-7 64 bit

    Hi,
    I am unable to install ADF Desktop Integration Addin for Office 2010 in Windows 7.
    Jdev Version : 11.1.1.5
    Operating System : Windows 7 SP1 64bit
    Microsoft Office Excel 2010
    I have followed the steps given in the developers Guide - Link .
    Error:
    Component Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1 has failed to install with the following error message:
    "A failure occurred attempting to install the Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1."
    The following components failed to install: - Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1
    See the setup log file located at 'C:\Users\cvegesna\AppData\Local\Temp\VSDC0B0.tmp\install.log' for more information.
    Thanks,
    Chaitanya

    I could find any Clue, Attaching the Log File
    Log File :
    The following properties have been set:
    Property: [AdminUser] = true {boolean}
    Property: [ProcessorArchitecture] = AMD64 {string}
    Property: [VersionNT] = 6.1.1 {version}
    Running checks for package 'Windows Installer 3.1', phase BuildList
    The following properties have been set for package 'Windows Installer 3.1':
    Running checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe'
    Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '3.1': true
    Result of checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe' is 'Bypass'
    'Windows Installer 3.1' RunCheck result: No Install Needed
    Running checks for package '.NET Framework 3.5 SP1', phase BuildList
    Reading value 'SP' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5'
    Read integer value 1
    Setting value '1 {int}' for property 'DotNet35SP'
    The following properties have been set for package '.NET Framework 3.5 SP1':
    Property: [DotNet35SP] = 1 {int}
    Running checks for command 'DotNetFX35SP1\dotNetFx35setup.exe'
    Result of running operator 'ValueGreaterThanEqualTo' on property 'DotNet35SP' and value '1': true
    Result of checks for command 'DotNetFX35SP1\dotNetFx35setup.exe' is 'Bypass'
    '.NET Framework 3.5 SP1' RunCheck result: No Install Needed
    Running checks for package 'Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1', phase BuildList
    Reading value 'Install' of registry key 'HKLM\SOFTWARE\Microsoft\VSTO Runtime Setup\v9.0.21022'
    Unable to read registry value
    Not setting value for property 'VSTORuntimeInstalled'
    Reading value 'Update' of registry key 'HKLM\SOFTWARE\Microsoft\VSTO Runtime Setup\v3'
    Unable to read registry value
    Not setting value for property 'VSTORuntimeUpdateInstalled'
    The following properties have been set for package 'Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1':
    Running checks for command 'VSTOR30\vstor30.exe'
    Skipping ByPassIf because Property 'VSTORuntimeInstalled' was not defined
    Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
    Result of checks for command 'VSTOR30\vstor30.exe' is 'Install'
    Running checks for command 'VSTOR30\vstor30sp1-KB949258-x86.exe'
    Skipping ByPassIf because Property 'VSTORuntimeUpdateInstalled' was not defined
    Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
    Result of checks for command 'VSTOR30\vstor30sp1-KB949258-x86.exe' is 'Install'
    'Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1' RunCheck result: Install Needed
    EULA for components 'Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1' was accepted.
    Copying files to temporary directory "C:\Users\cvegesna\AppData\Local\Temp\VSDC0B0.tmp\"
    Downloading files to "C:\Users\cvegesna\AppData\Local\Temp\VSDC0B0.tmp\"
    (9/12/2011 9:37:42 AM) Downloading 'VSTOR30\vstor30.exe' from 'http://go.microsoft.com/fwlink/?LinkId=95146' to 'C:\Users\cvegesna\AppData\Local\Temp\VSDC0B0.tmp\'
    Download completed at 9/12/2011 9:37:44 AM
    Verifying file integrity of C:\Users\cvegesna\AppData\Local\Temp\VSDC0B0.tmp\VSTOR30\vstor30.exe
    WinVerifyTrust returned 0
    File trusted
    (9/12/2011 9:37:44 AM) Downloading 'VSTOR30\vstor30sp1-KB949258-x86.exe' from 'http://go.microsoft.com/fwlink/?LinkId=120187' to 'C:\Users\cvegesna\AppData\Local\Temp\VSDC0B0.tmp\'
    Download completed at 9/12/2011 9:37:45 AM
    Verifying file integrity of C:\Users\cvegesna\AppData\Local\Temp\VSDC0B0.tmp\VSTOR30\vstor30sp1-KB949258-x86.exe
    WinVerifyTrust returned 0
    File trusted
    Running checks for package 'Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1', phase BeforePackage
    Reading value 'Install' of registry key 'HKLM\SOFTWARE\Microsoft\VSTO Runtime Setup\v9.0.21022'
    Unable to read registry value
    Not setting value for property 'VSTORuntimeInstalled'
    Reading value 'Update' of registry key 'HKLM\SOFTWARE\Microsoft\VSTO Runtime Setup\v3'
    Unable to read registry value
    Not setting value for property 'VSTORuntimeUpdateInstalled'
    The following properties have been set for package 'Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1':
    Running checks for command 'VSTOR30\vstor30.exe'
    Skipping ByPassIf because Property 'VSTORuntimeInstalled' was not defined
    Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
    Result of checks for command 'VSTOR30\vstor30.exe' is 'Install'
    Running checks for command 'VSTOR30\vstor30sp1-KB949258-x86.exe'
    Skipping ByPassIf because Property 'VSTORuntimeUpdateInstalled' was not defined
    Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
    Result of checks for command 'VSTOR30\vstor30sp1-KB949258-x86.exe' is 'Install'
    'Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1' RunCheck result: Install Needed
    Verifying file integrity of C:\Users\cvegesna\AppData\Local\Temp\VSDC0B0.tmp\VSTOR30\vstor30.exe
    WinVerifyTrust returned 0
    File trusted
    Installing using command 'C:\Users\cvegesna\AppData\Local\Temp\VSDC0B0.tmp\VSTOR30\vstor30.exe' and parameters ' /q:a /c:"install /q /l"'
    Process exited with code 4097
    Status of package 'Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1' after install is 'InstallFailed'

  • Not getting ADF Desktop Integration option in Jdeveloper 11.1.1.3

    Hi,
    I am following this link:- http://www.oracle.com/webfolder/technetwork/tutorials/obe/jdev/obe11jdev/ps3/tutorial_adfdi/adfdinewtutorial/jdtut_11r1_59_2.html for ADF Desktop Integration.
    When I am opening my Jdeveloper after installing *.NET Programability Support* from Control Panel. The Option in Tools Menu of J Developer i.e ADF Desktop Integration is not coming.
    But When I checked in my machine :- C:\Oracle\Middleware\jdeveloper\adfdi\bin\excel\client. I am able to find set up of ADF Desktop Integration. I ran it and it got installed as per the above link. But still I am not able to see that option in my Tools. When I right click on View_Controller of ADFdi_BC Application as per the Link and went to NEW but I checked in ALL Technology of Client Tier option, ADF Desktop Integration option is not coming.
    Can anyone suggest me what to do for getting that option in my Jdeveloper and I can use this to make my Excel sheet under View Controller.
    Please suggest me something.
    Thanks,
    Ramit Mathur

    The title of your post mentions version 11.1.1.3. The tutorial link mentions version 11.1.1.4. It is probably best to get the matching version. In fact, I recommend getting the most recent version, 11.1.2.x.

  • How to install ADF Desktop Integrator on mac (using jdev 11.1.2.1.0)

    Hi Everyone,
    I got a requirement for my client where they want to use microsoft excel to upload/edit/delete content of one of our ADF application data and we are thinking of using ADF Desktop Integrator option for achieving this. I tried to install ADF Desktop Integrator from my Jdeveloper->Tools->'Install ADF Desktop Integrator' but this option got disabled on my mac. Is there any way to enable it or is it mac not compatible for ADF desktop integrator tool? Also most of my client team members are using mac and hence I cannot ignore mac option and switch to pc.
    Any help or suggestions on this would be very help and appreciated.
    Thanks,
    Ravi N

    Hi.
    ADF Desktop integration relies on Microsoft .NET and Microsoft Internet Explorer; both are available on Windows only. Thus, ADF Desktop Integration is not available on Apple OS X.
    Best Regards,
    Frédéric.

  • Error when trying to install adf-desktop-integration.

    Hi,
    I developed an integrated workbook using the ADF Desktop Integration technology (JDeveloper 11.1.1.4.0, Microsoft Office 2007, Windows 7)
    One of my users encountered an error when is trying to run the setup for the adf-desktop-integration.
    The steps for his error are the following (he is using Windows XP and Microsoft Office Professional Plus 2007):
    - Enable .NET Programmability support from Office installation
    - Run the setup file for adf-desktop-integration. The following error appears in a popup:
    The following solution cannot be loaded because Microsoft Office support for the .Net Framework 3.5 is not installed: adfdi-excel-addin-runtime.vsto.
    For more information, see http://go.microsoft.com/fwlink/?LinkId=135965
    If someone else encountered this error and found a solution please let me know.
    Thank you,
    Alex.

    Hi,
    The problem is that my user already have installed on his computer the .Net Framework 3.5 SP1.
    In the section "3.5 Installing ADF Desktop Integration" from the link http://download.oracle.com/docs/cd/E24382_01/web.1112/e16180/inst_conf_dev_env.htm#CHDHJIIG is specified that when the setup tool is run, the following software are installed:
    1. Windows Installer 3.1
    This software I suppose is already installed or the setup tool managed to install it, otherwise I should have an explicit error.
    2. Microsoft .NET Framework
    This software .Net Framework 3.5 SP1 is already installed.
    3. Microsoft Visual Studio Tools for Microsoft Office
    My user already has Visual Studio Tools for the Office system 3.0 Runtime
    Now lets take a look on the same link at the section "3.2 Required Oracle ADF Modules and Third-Party Software". Because my users are using only the Runtime edition of ADF desktop integration they don't need JDeveloper or an Application server.
    Taken in consideration the section "Installing the Runtime Edition of ADF Desktop Integration" from your link, my users are using the adfdi-excel-runtime-client-installer.zip (this file is provided by me and is taken from my installation of Oracle Middleware-11.1.1.4.0).
    Thank you,
    Darie.

  • ADF Desktop Integration - Can it Support Master Detail Information

    I reviewed the OBE and also the user guide. I could not see any specific details as to whether the ADF Desktop integration can support master detail relationship - either master table with detail table or Master form with detail form, to be linked with the excel sheet.
    Defining both the master and detail table as "tables" I was able to get the data into the excel sheet for the entire master and the child of the first master. The fetch of the child records for the second or third master records is not happening, obviously because I am missing suitable actions.
    Please let us know if:
    - the Master detail can be supported in a view only mode in the integrated excel sheet - with partial page functionality?
    - The master - detail page can be used to upload a header record (master) and many detail records.
    Appreciate any inputs.
    Thanks
    Ram.

    Yes. ADFdi can be configured for "master-detail" type use cases.
    You can create cases with a master form and a detail table. Or, you can create cases with multiple tables.
    ADFdi does not automatically manage the relationship between the form and table, or between the tables. So, the implementation details depend on your specific use case.
    For example, given two tables (one above the other), you might choose to make one column in the "master" table double-clickable. The double-click action set can then invoke the download action of the second, "detail" table.
    For a master form - detail table case, you can configure a "next" button to navigate to the next "master" record and download the details into a table.
    HTH

  • Error when upload data in  ADF Desktop Integration

    Hi,
    I am using ADF Desktop Integration for create 1 application.
    I have 1 ADF Table and 1 upload button for upload data in Integrated Excel file.
    First, when load file, data are loaded into Excel file.
    when I edit data in table and click upload button then Exception raise as follow:
    oracle.adf.desktopintegration.bindingxml.BindingContainerXml writeThrowableXml
    WARNING: reporting throwable to client: JBO-25077: Name element not found in the given object: aa1.
    oracle.jbo.expr.JIEvalException: JBO-25077: Name element not found in the given object: aa1.
    In Action[] Array of Upload button I have uploadData method and TAB1852140547.Upload
    My upload button action do nothing.
    Please help me

    Hi,
    Have you included any settings on your table batch actions? Please see the following tutorial which also does update on data from a table
    http://www.oracle.com/technology/obe/obe11jdev/ps1/adfdi/gettingstartedwithadfdi.htm
    Juan C

  • Desktop Integration in Peoplesoft with Kerberos

    Hi Gurus,
    We are doing the desktop integration in peopletools 8.52 crm9.1 with oracle delivered kereberos functionality.everything we have cnfigured as per the document. its working fne when i put this url
    http://example.com/psp/ps/?cmd=default.but if i put this URL http://example.com/psp/ps/?cmd=login it is redirecting to signon.html page which is asking for credentials.
    so can you please guide me  to solve this issue , because our production url is http://example.com/psp/ps/?cmd=login so we are not planning to change the prod url
    Thanks
    Velu

    That is working as designed.  To bypass the login, you should start users at the URL: http://example.com/psp/ps/?cmd=start .  You need a way to get to the login screen if kerberos fails to work properly.  If you really want to prevent users from ever getting to the login page, you could change your webprofile to point to a customized version of the delivered signon page.  This customized version could do a HTTP-EQUIV='Refresh' that points to the kerberos signon page.

  • Unable to see Desktop Integration Manager Responsibility in 12.0.6

    Hello All,
    I cannot see the BNE Destop integration Manager Responsibility in Oracle EBD Suite 12.0.6
    Please help me, how to add this responsibility in R12.0.6.
    Thanks
    Regards
    Sagb

    Hi;
    Please check below which could be helpful on your issue:
    How To Access Define Parameter Using Desktop Integration Manager [ID 1325820.1]
    NOTE:1363280.1 - GL Budget and GL Journal and FA Addition Integrators Error in Desktop Integration Manager
    Regard
    Helios

  • BAdIs for CAD Desktop Integration

    Hi, I am generally looking for some information on the purpose and use of the BAdIs related to CAD Desktop Integration. The name of the BAdIs are:-
    CDESK_BADI_MAIN
    CDESK_CAD_CHANGE
    CDESK_TBM_ADDIN
    CDESK_BADI_COPY_DLG
    CDESK_BADI_COPY_DOC
    CDESK_MATERIAL
    CDESK_BOM
    Anyone one who has worked on the above BAdIs please provide your valuable inputs. are all these BAdIs related to the CDESK transaction.

    Hi Rudra,
    Maybe SAP note
    600142 DESK: List of all BAdIs/BAdI methods in CAD desktop
    could help you. This note contains a whole list of all CAD Desktop BADIs currently available.
    Best regards,
    Christoph

  • ADF Desktop Integration and IE6

    Hi,
    I create a web project with ADF Desktop Integration, but ADF Desktop Integration must to use IE7. My customer is using IE6.
    Is there way use ADF Desktop Integration with IE6?
    Please help me
    Thanks
    Edited by: fbg on 21:29 12-07-2010

    The point is, nobody here would bother, as it's certified on IE7, implying it needs some features of IE7 to work.
    Your best bet is just to give it a go under IE6 yourself. If it does/doesn't work, voila! ... you have your answer. Otherwise asking for support on this forum, you're going to get the same answer again, it's not certified under IE6.
    CM.

  • Error with Desktop Integration on Macs

    My JWS program runs fine on several Macs (running on 1.4.2-XX and 1.5), however, whenever I try to use the desktop integration, I get an error creating the shortcuts. There are no problems on Windows clients.

    I would suggest you use the clean uninstall link and downloading 4.5. It has proved very stable with XP I use it.
    I would strongly advise against loading the media manager though, It is less that stable software. I take it you know where to download 4.5?
    http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB11320&sliceId=SAL_Pub...
    Let me know how it goes!
    Thanks
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

  • Desktop Integration Suite

    Hi,
    I have installed desktop integration suite.I can access through the window explorer and lotus notes.But I am not getting the Oracle UCM menu in Microsoft Word.

    Did you choose the office applications during the installation?
    What version of Office are you using? The Oracle UCM ribbon is only available in Office 2007 or later. For previous versions the only integration happens when you save the content and either choose to save locally or in UCM.
    Tim

  • Creating LOVs with "Desktop Integration Manager" in EBS 12.1.x

    After some struggling getting the "Desktop Integration Manager" to work (due to some obscure hard-coded security checks) I was able to create an Upload Integrator. The next step is now to add some LOVs on the upload spreadsheet.
    I managed to create a Gender Popup LOV using a table (e.g. FND_LOOKUP_VALUES). Here is how to do that:
    Desktop Integration Manager => Manage Components
    Navigate to your attribute (your interface column) and click Update. Enter the following:
    Val Type      = Table
    Id          = LOOKUP_CODE
    Meaning     = MEANING
    Desc          = DESCRIPTION
    Val. Entity     = FND_LOOKUP_VALUES
    Where clause     = lookup_type = 'IGW_SUBJECT_TYPE' and enabled_flag = 'Y' and meaning <> 'Unknown or not reported' and sysdate between start_date_active and nvl(end_date_active, hr_general.end_of_time)
    Lov Type      = Pop List
    Type your custom Header in the ‘Prompt above’ field if required.
    So far so good. However, I am not able to create a simple date picker or a Java validation. Somehow you need to create (or choose) a ‘Component’ with the ‘Manage Components’ function. But exactly how do you set the Component & Attribute up to make this work? For the date picker I chose:
    Validation Type = Java
    Component Name = Date Picker for From Date
    LOV Type = Blank
    I get a Popup Date Picker in my sheet now, however when I select a date is does not return it to the spreadsheet.
    Can someone provide some screenshots how to create a date picker and/or a Java validation using seeded or custom Components?
    I have read the documentation in the Desktop Integration Framework Developer's Guide Release 12.1 (December 2009) but that didn’t get me much further as there are no examples at all.
    Thx
    Jeroen

    Hi, with 'hard coded security check' I meant that some parts of the "Desktop Integration Manager" only work if you have responsibility "Application Developer" attached to your User.
    You can change a 'seeded' integrator with:
    update BNE_INTEGRATORS_B
    set
    created_by = <your user id>
    ,last_updated_by = <your user id>
    ,display_flag = 'Y'
    ,source = 'C'
    where integrator_code = <your code>
    ;

Maybe you are looking for

  • I can't clear single item in Location Bar History

    I can't clear single item in Location Bar History. I use Firefox 3.6.13 on Mac 10.6.5. I do select the item in location bar, press Shift and delete keys, but it delete the item only temporary... My Firefox Privacy pref indicate: - Use custom settings

  • Error in generating  Datasource for a view(EKBE)

    Hi All, i require to make a view(ZDS_GRDETAILS) on top the table EKBE(History per Purchasing Document). I have used tables T001(Company Codes) and EKPO(Purchasing Document Item). Now there is no error when i activate the view. But when im trying to m

  • Invalid data status error during the data extraction

    Hi, while extracting capacity data from the SNP Capacity view to BW. i get the "invalid data status error" and the data extraction fails. when debugged the bad requests of the ODS object, i found that for a certain product(which has both positive and

  • Cover Flow shows desktop, or anything it likes when playing......

    Cover flow looks great, and did work, but now shows images of anywhere I've been!. Sometimes just shows white registration lines, and no artwork or images. Any ideas?. Don't understand computers, which is why I've always used a Mac......

  • Label x,y coordinate on plot DIAdem

    How do I select and label the x,y coordinate for a min/max point in DIAdem (version 11.0) in the VIEW tab? Is it possible to select a point and have the coordinate automatically labele the (x,y) values? (What if it isn't a specific max or min point?)