Hi office control

hi all,
i cannot do using office control..
please call me how about office control(ms_word and ms_excel)???
how is prepared for office control???
Reply me soon......
thanks,
s.suresh

Hi,
for installation prerequisites, see <a href="http://help.sap.com/saphelp_nw70/helpdata/en/43/e86de5008b4d9ae10000000a155369/content.htm">this</a>, and for information on the OfficeControl, see <a href="http://help.sap.com/saphelp_nw70/helpdata/en/d1/af8841349e1909e10000000a155106/frameset.htm">that</a> and the examples in the system in package SIOS.
Regards, Heidi

Similar Messages

  • Import Data from Office Control (Web Dynpro for ABAP) into internal-Table

    Hello,
    I have a question concerning the Office Control UI-Eelement in Web Dynpro for ABAP:
    How can I import spreadsheet data from the Office Control into  a internal-table?
    I have an Excel-sheet (without any data) which is shown initially in the Office Control. First the empty Excel-Sheet will be loaded and in the second step data from an alvxml-transformation will be loaded into the Excel-sheet with the method 'activatexmlsource'. This works so far. When I change the loaded data in the Office Control and save it it will be stored as XLS-File. The problem is that I'm not able to use existing Upload-FM because every function module I tried uses GUI-functions and WebDynpro has no GUI-functionality. I always get the error that data from clipboard cannot be imported.
    So now the question is:
    How can I import changed data from the Office control into a internal-table staying in Web Dynpro application?
    Please give some advice, if you have some useful code or ideas.
    Thanks
    ram
    Edited by: Ramakullay Challa on Sep 24, 2009 9:05 AM
    Edited by: Ramakullay Challa on Sep 24, 2009 9:07 AM

    Hi,
    Once you save to desktop again you have made some changes to that file, this file you want to upload it right.
    Then in that case you need to use the FILEUPLOAD UI element right.
    Regards,
    Lekha.

  • MS office control in WD ABAP

    Hi,
    I want to display the excel with data in webdynpro.
    I have data in XSTRING format in node, that i binded to the datasource of MS Excel UI element, I can able to download the xstring to desktop in excel format. but the same xstring i cant able to display in WD UI.
    Only excel with blank values are displayed, I checked service pack of SAP, IE Active X control all are fine.
    Please help me how to display data in MS office control Excel in WD UI.
    Regards
    Virkly

    Hello,
    Please refer to the following sample:* Excel File Upload And Display Data Using Web DynPro ABAP*
    Link: [http://wiki.sdn.sap.com/wiki/display/WDABAP/ExcelFileUploadAndDisplayDataUsingWebDynPro+ABAP]
    Have a look at the source code given in 14 which converts xstring to string.
    Hope this helps!
    Regards,
    Srilatha

  • Excel import export using Office Control

    Hi,
    We have the requirement to provide a feature like an excel uplaod and download in our UI (WD ABAP).Basically we have some WD table view and we need to collect all the data in each cell and then download the data in an excel file.Similarly we need to get the data in the Excel and fill the table view with this data from the excel.
    Is this possible through the Office Control?I checked out the examples in SIOS but my impression was that it more or less embeds office objects(excel,word etc) in Webdynpro container,but does not really get the data to be filled in an internal table.Also I am not sure whether I can download data from my WD table view to an excel file using this.
    Can anyone please tell me if there is some way to do this through an office control.If not what are the options available for me to achieve this functionality.
    Thanks and Regards
    Sourav

    Hi Sourav,
    If you use WDP ALV table, it has an 'Export' functionality which will export the contents of the table into an Excel.
    Regards,
    Wenonah

  • Problem in Office Control

    Hi all,
            I am trying to work with office control. I had created a value node called "DocumentSourceNode".
    created a supply function with the name fillNode.. Under fillNode i wrote the following code.
    ISimpleTypeModifiable mod = node.getNodeInfo().getAttribute("DocumentContent").getModifiableSimpleType();
    ModifiableBinaryType bin = (ModifiableBinaryType)mod;
    bin.setMimeType(new WebResourceType("doc", "application/msword", false));
    IPrivateOfficeView.IDocumentSourceNodeElement element = wdContext.nodeDocumentSourceNode().createDocumentSourceNodeElement();
    node.addElement(element);
    String filename = "";
         try
                    filename = WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(), "example.doc");
                    byte[] bytes = getBytesFromFile(new File(filename));
                    element.setDocumentContent(bytes);
         catch (WDAliasResolvingException e)
                    throw new WDRuntimeException("No datasource available: " + filename);
         catch (IOException e) {
                //handle exception
    when i am executing, i am getting this exception....
    catch (WDAliasResolvingException e)
                    throw new WDRuntimeException("No datasource available: " + filename);
    I had stored a msword document say example under mime/applications/com.sap..../example... am i stored the document in a right area? Please help me....

    Hi  aarthi,
                 Thanks for ur suggestion. Since i got error in my catch block i added this lines in the catch block
    catch (WDURLException e)
                    throw new WDRuntimeException("No datasource available: " + filename);
    So i m getting this error,
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: No datasource available

  • Import Data from Office Control (Web Dynpro for ABAP) into SAP-Table

    Hello,
    I have a question concerning the Office Control UI-Eelement in Web Dynpro for ABAP:
    How can I import spreadsheet data from the Office Control in a SAP-table?
    I have an Excel-sheet (without any data) which is shown initially in the Office Control. First the empty Excel-Sheet will be loaded and in the second step data from an alvxml-transformation will be loaded into the Excel-sheet with the method 'activatexmlsource'. This works so far. When I change the loaded data in the Office Control and save it it will be stored as XLS-File. The problem is that I'm not able to use existing Upload-FM because every function module I tried uses GUI-functions and WebDynpro has no GUI-functionality. I always get the error that data from clipboard cannot be imported.
    So now the question is:
    How can I import changed data from the Office control into a SAP-table staying in Web Dynpro application?
    Please give some advice, if you have some useful code or ideas.
    Thanks in advance,
    Philipp
    Edited by: Philipp Hiebler on Feb 11, 2008 10:15 AM

    Hi,
    Once you save to desktop again you have made some changes to that file, this file you want to upload it right.
    Then in that case you need to use the FILEUPLOAD UI element right.
    Regards,
    Lekha.

  • Office Control API is it only for Microsoft office

    Office Control API is it only for Microsoft office or can Star office and open office use the same API.
    IF no please let me know the API used for Star office and open office
    Can anybody provide me with a material of integrating open office and star office to webdynpro java.
    Thanks in advance
    Arulbabu

    Hi Prabkaran,
    You are rt, Its only for Microsoft Office. Prequisites are like below :
    Prerequisites
    "You can only use the OfficeControl UI element if one of the following software programs is installed:
    &#9679;     Microsoft Office 2000, Microsoft Office XP or Microsoft Office 2003
    All Office versions are supported that are currently supported by Microsoft. For details, see http://support.microsoft.com
    If you have Microsoft Internet Explorer installed, check your Internet Options to see whether the ActiveX control elements for executing and initializing are enabled. To do this, choose Internet Options ® Security ® Custom level ® ActiveX controls and plug-ins ® Enable. Otherwise, the Microsoft Word or Excel document cannot be displayed."
    You can go learn more at http://help.sap.com/saphelp_nw04/helpdata/en/5d/a0b16a9d2e4e4d8b2322af6728263f/frameset.htm
    Thanks,
    Raags

  • Office Control does not display word document

    HI all,
    I followed the example code to display a word document in the office Control UI, but the display remains blank when I push the button to 'show document'.
    I do not have MS Office installed on the server so I have a wordpad named example.doc on the C drive. Can I read the data from wordpad and display it on the Office Control?
    Thanks
    Jay.

    > Thanks all,
    > I have Office 2003 installed on the client but not on
    > the server. The bytes[] array gets loaded with the
    > string '[B@10e770f', but the display stays empty.
    >
    > Jay
    Hi Jay,
    I need to use this feature as well. Did you get it to work. Can you display and edit a Microsoft Word document from within a browser page. It would be good to know that you have been successful.
    Jesse

  • Office Control: Extract values from Excel sheet

    Hello,
    I would like to extract cell data of the excel office control.
    e.g. I create a excel office control with a plain sheet. The user enters some data (A1=Test).
    How can I extract the data of cell A1?
    the oposite direction (exporting cell data) works in the example IOS_TEST_SPREADSHEET_MS with method
    wd_this->document->activatexmlsource( EXPORTING xml = contentxmlsource
                                                           errorinformation = error_activatexmlsource_stru ).
    but how can I IMPORT the data (after the user has changed it) again?
    Thanks in advance!
    Tobias Horstmann
    Edited by: Tobias Horstmann on Jan 21, 2009 2:12 PM

    Providing you are using a windows based Oracle server and providing the Excel data is formatted as follows:
    Each sheet in the workbook represents a "table"
    The first row on each sheet gives the column names in each column.
    All subsequent rows are the data for those columns.
    You can use Oracle's Heterogeneous Services (HS) to connect to the spreadsheet as external database (via an ODBC datasource).
    1- Go to Control Panel>Administrative Tools>Data Sources (ODBC)>System DSN and create a data source with appropriate driver. Name it EXCL.
    2- In %ORACLE_HOME%\Network\Admin\Tnsnames.ora fie add entry:
    EXCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.12.0.24)(PORT = 1521))
    (CONNECT_DATA =
    (SID = EXCL)
    (HS = OK)
    Here SID is the name of data source that you have just created.
    3- In %ORACLE_HOME%\Network\Admin\Listener.ora file add:
    (SID_DESC =
    (PROGRAM = hsodbc)
    (SID_NAME = <hs_sid>)
    (ORACLE_HOME = <oracle home>)
    under SID_LIST_LISTENER like:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = d:\ORA9DB)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = ORA9DB)
    (ORACLE_HOME = d:\ORA9DB)
    (SID_NAME = ORA9DB)
    (SID_DESC =
    (PROGRAM = hsodbc)
    (SID_NAME = EXCL)
    (ORACLE_HOME = D:\ora9db)
    Dont forget to reload the listener
    c:\> lsnrctl reload
    4- In %ORACLE_HOME%\hs\admin create init<HS_SID>.ora. For our sid EXCL we create file initexcl.ora.
    In this file set following two parameters:
    HS_FDS_CONNECT_INFO = excl
    HS_FDS_TRACE_LEVEL = 0
    5- Now connect to Oracle database and create database link with following command:
    SQL> CREATE DATABASE LINK excl
    2 USING 'excl'
    3 /
    Database link created.
    Now you can perform query against this database like you would for any remote database.
    SQL> SELECT table_name FROM all_tables@excl;
    TABLE_NAME
    DEPT
    EMPOr refer to this Article...
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:4406709207206

  • Office Control Issue

    Dear All,
    I am using Office Control in my WDA. I have created an attribute of type xstring and bound it to the office control element.
    Running the application, I am displayed with a MS word document which is input enabled.
    I have written code corresponding to onSave in which I want to download the contents written in the MS Word document onto my desktop.
    I am unable to do this, and whenever I click on the 'Save' button or do a Ctrl+S, there is some error coming up saying 'CAcfControl: SetControlProperty|Could not find entry for property |HRESULT=-2147467259(Unspecified error)'.
    Please tell me a way around for this.
    Regards,
    Prosenjit.

    Hi,
    Thank you Thomas for your time.
    Before doing that I would like to check the onSave code of mine.
    is it possible to have a sample code for the onSave while using Office_Control.
    Regards,
    Prosenjit.

  • Office control in mobile client 7.1

    Hi all,
    i've included an office control in my mobile application to show a word document. However, when i open my application, i receive following error:
    Fatal HTTP error 500 occured. Connection is closed now.
    The exact error information is logged in
    "C:\Program Files\SAP\SAP Netweaver Mobile
    Client\HTTPError.txt"
    This is the HTTPError.txt file content:
    sessionUrl="//localhost:50080/dispatcher/demo.sap.com~attachorderapp/OrderAttachApp?sessionid=8117667533895423314&amp;sap-wd-cltwndid=6DBFF94EF011DAA000000120E82345C3&amp;sap-wd-appwndid=624B23E69166B08700000120E82345C3&amp;sap-wd-locale=null" xmlns:SAP="SAP"...Localization dateFormat="MM/dd/yyyy" decimalSeparator="." groupingSeparator="," locale="en_BE"/...Client name="SAP-NW-Java" version="7.00" supportBits="6A...Server version="Unknown Version" os="Windows Vista" supportBits="537205"...Exception text="An error has occurred: Failed to process the request. [] " callStack="com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Invalid URL=
    at com.sap.tc.mobile.mwd.runtime.sal.url.URLGenerator.checkURL(URLGenerator.java:340)
    at com.sap.tc.webdynpro.clientserver.uielib.activecomp.impl.AbstractActiveComponent.getArchive(AbstractActiveComponent.java:896)
         at com.sap.tc.webdynpro.clientimpl.scxml.renderer.uielib.activecomp.AbstractActiveComponentRenderer.renderProperties(AbstractActiveComponentRenderer.java:91)
         at com.sap.tc.webdynpro.clientimpl.scxml.renderer.uielib.officecomp.OfficeControlRenderer.renderProperties(OfficeControlRenderer.java:106)
         at com.sap.tc.webdynpro.clientimpl.scxml.renderer.uielib.core.ViewElementRenderer.render(ViewElementRenderer.java:39)
    Do i have to perform certain installations to let the office control work in my mobile client?
    thanks
    Edited by: Peter Vanneste on Apr 27, 2009 5:15 PM
    Edited by: Peter Vanneste on Apr 27, 2009 5:19 PM
    Edited by: Peter Vanneste on Apr 27, 2009 5:23 PM
    Edited by: Peter Vanneste on Apr 27, 2009 5:25 PM

    Hi,
    If you are using the mobile applications for laptops, I am not sure if the JavaGui supports the office control as yet.
    It would be better if you raise an OSS.
    I had tried it a year back I got a UI rendrer problem.
    Thanks and Regards,
    Narayani

  • Webdynpro Abap Office control problem

    Hi Gurus,
    I'am using the office control to display stored word document and I'm facing the following problem :
    when I visualize a word document from my webdynpropage, I got access to the toolbar menu(print save and all the tools displayed on the top of the control) but once I open another page to visualize another word document I loose the access to the toolbar menu in my first page, but I can do so in my second opened page.
    It seems that I can not use the office control toolbar in multipple document. and once I open a page this feature is disabled on the previews pages.
    any idea please?
    Regards,
    Simo

    Hi
    Try to use thid below code I think it will solve your problem.
    Code for File download in action method
      DATA lr_conv   TYPE REF TO cl_abap_conv_out_ce.
      DATA lv_data   TYPE        string.
      DATA lv_xfile  TYPE        xstring.
      lv_data = 'Example text, which will be opened in MS Word.'.
      cl_abap_conv_out_ce=>create( RECEIVING conv = lr_conv ).
      lr_conv->convert( EXPORTING data   = lv_data
                        IMPORTING buffer = lv_xfile ).
      cl_wd_runtime_services=>attach_file_to_response(
                         EXPORTING i_filename  = 'wd4a.doc'
                                   i_content   = lv_xfile
                                   i_mime_type = u2018applicaton/mswordu2019)
    Thanks & Regards,
    Ravi Kiran.

  • Problems in Office control

    Hello Everyone,
       I am stuck with a problem using office control.
    The requirement is to display the excel file contents present in the application server to the office control.
    The problem is with reading the contents of the excel file.
    here is the method i used:
      data:
        mime_repository type ref to if_mr_api,
        content type xstring,
        url type string value '/MIG/D/TEST/TEST.xls'.
      mime_repository = cl_mime_repository_api=>get_api( ).
      call method mime_repository->get
        exporting
          i_url = url
        importing
          e_content = content.
    * DATA is binded to the office control contents
      wd_context->set_attribute( name = 'DATA' value = content ).
    The GET method returns a sy-subrc = 3, which means file not found.
    whereas the same code works for another application server with its path.
    Where am i going wrong?  or is there any alternative method to get the content from the file?
    Regards,
    Kinshuk
    Message was edited by:
            Kinshuk Saxena

    Hi Kinshuk,
    I think you should place your file in the exact folder where WDA can recognize, I mean try placing it @ the folder...
    "/SAP/BC/WebDynpro/SAP/PUblic/BC/ssr/uuielibs/office_integration".
    Regards
    Raja Sekhar

  • Display MS word file in Office control

    Hi all,
    I am using the Office control UI element to display a MS word file in WD application. I have created a Mime object for the word file and get this file data into a Xstring attribute, and bind this attribute with the datasource property of the Office control.
    But at the runtime I am not able to display the Word file, it displays only a White colour container with text SAP IOS. Can anyone suggest me how I can get the word file in WD component using office control.
    I have also checked SOIS pakage, but didn't get any solution from the example given in this package.
    For your reference I am using the below code to get the mime object in Xstring attribute.
    DATA:
      mime_repository TYPE REF TO if_mr_api,
      content TYPE xstring,
      url TYPE string VALUE '/SAP/BC/WEBDYNPRO/SAP/ZTEST_SAN5/TEST.docx'.
      mime_repository = cl_mime_repository_api=>get_api( ).
      CALL METHOD mime_repository->get
        EXPORTING
          i_url     = url
        IMPORTING
          e_content = content.
      DATA lo_nd_office TYPE REF TO if_wd_context_node.
      DATA lo_el_office TYPE REF TO if_wd_context_element.
      DATA ls_office TYPE wd_this->element_office.
      DATA lv_test TYPE wd_this->element_office-test.
    navigate from <CONTEXT> to <OFFICE> via lead selection
      lo_nd_office = wd_context->get_child_node( name = wd_this->wdctx_office ).
    get element via lead selection
      lo_el_office = lo_nd_office->get_element( ).
      lv_test = content.
    Set single attribute
      lo_el_office->set_attribute(
        EXPORTING
          name =  `TEST`
         value = lv_test ).
    This lv_test having the Xstring data after execution but didn't set this data as word file at runtime.
    Please suggest if anyone have any idea on this.
    Thanks
    Sanket

    hi,
    try this in browser..
    tools->internet options->security->custom level
    here you will find Active x controls and plugis..
    enable all of them and try your applications..
    if it is helpful pl give some points buddy:-)
    regards,
    Kranthi.

  • Extract text content from office control - word

    Hi,
    I am using office control for word for entering long text.
    by what way can i extract unformatted text from office control?
    Thanks & Regards,
    -Haresh

    i've tried using GETCONTENT method of IF_IOS_WORDPROCESSING, but I don't know exact way of using it.
    If this is the one which can help me to get text contect, then can anybody tell me how will I be able to use it?

Maybe you are looking for

  • Quantity Split to two vendors in one PR

    Dear Experts, I have a query, during MRP Run following is the scenario. PR Generated for AA material for 1000 nos for xx vendor. Now we want to split quantity 600 to xx vendor and 400 to yy vendor. We have not maintained the quota, as we rarely procu

  • List of Universities in North America in the SAP University Alliance Program

    Hello, Is there a quick link where I can see list of Universities from North America in SAP University Alliance program? Thank you in advance  ! Elias

  • Problem with Help Link in search result screen of PCUI

    Hi,   I am trying to access the pcui applications that came out of box with crm using BAB,everthing is working fine but got a problem with "Help" link in top right (beside personalize link) the search result area of all the PCUI screens. when i click

  • Disappearing content in glyphs panel

    I am using InDesign CS3 and make huge use of the Glyphs panel for accented characters in French, Spanish, etc. Yesterday I opened this panel to convert some French and to my dismay found no glyphs in the display at all, and all the commands blanked o

  • Major differences between BW 2.1C, 3.0B

    Could some one throw some light on the major enhancements in 3.0B compared to 2.1 version of BW? Thanks in advance, Ram