WEBUTIL - CLIENT_OLE2 : Clientside Word Integration problem

Hi,
I have attached webutil.pll and webutil.olb and configured the necessary files as per the webutil manual in Oracle Forms 10g under Windows 2000. I have compiled the libraries before running the form.
When I run the form, encountering following error message:
WUC-015: Your form must contain the following bean for this function to be available : oracle.forms.webutil.ole.olefunction
Please help me out to trace the error.
Thanks - Mundhir.
[email protected]
In my forms [When-Button-Pressed], I added the following code :
==========================================================
PROCEDURE worddoc IS
BEGIN
DECLARE
-- Declare the OLE object
application CLIENT_OLE2.OBJ_TYPE;
-- Declare handle to the OLE argument list
args CLIENT_OLE2.LIST_TYPE;
BEGIN
-- Start WordBasic and make Word visible
application:=CLIENT_OLE2.CREATE_OBJ('Word.Basic');
CLIENT_OLE2.INVOKE(application, 'AppShow');
-- Create a new Word document
CLIENT_OLE2.INVOKE(application, 'FileNew');
-- Navigate to the bookmark called 'LetterHead'
args:=CLIENT_OLE2.CREATE_ARGLIST;
CLIENT_OLE2.ADD_ARG(args, 'ViewHeader');
CLIENT_OLE2.INVOKE(application, 'EditGoto', args);
CLIENT_OLE2.DESTROY_ARGLIST(args);
args:=CLIENT_OLE2.CREATE_ARGLIST;
CLIENT_OLE2.ADD_ARG(args, :TXT_HEADER);
CLIENT_OLE2.INVOKE(application, 'Insert', args);
CLIENT_OLE2.DESTROY_ARGLIST(args);
-- Insert the text item into the Word document
args:=CLIENT_OLE2.CREATE_ARGLIST;
CLIENT_OLE2.ADD_ARG(args, :TXT_COMMENT);
CLIENT_OLE2.INVOKE(application, 'Insert', args);
CLIENT_OLE2.DESTROY_ARGLIST(args);
-- Save the document to the filesystem
args:=CLIENT_OLE2.CREATE_ARGLIST;
CLIENT_OLE2.ADD_ARG(args, 'c:\temp\EXAMPLE.DOC');
CLIENT_OLE2.INVOKE(application, 'FileSaveAs', args);
CLIENT_OLE2.DESTROY_ARGLIST(args);
-- Release the OLE object
CLIENT_OLE2.RELEASE_OBJ(application);
END;
END;
==========================================================

I used code given below, it gives an error ORA-305501
I am using Microsoft Office-2003.
how can I export contents(modified) of MSWORD back to form?
declare
     app CLIENT_OLE2.OBJ_TYPE;
     docs CLIENT_OLE2.OBJ_TYPE;
     doc CLIENT_OLE2.OBJ_TYPE;
     selection CLIENT_OLE2.OBJ_TYPE;
     args CLIENT_OLE2.LIST_TYPE;
BEGIN
-- create a new document
          app := CLIENT_OLE2.CREATE_OBJ('Word.Application');
          CLIENT_OLE2.SET_PROPERTY(app,'Visible',1);
          docs := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Documents');
          doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
          selection := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Selection');
     -- insert data into new document from long item
          CLIENT_OLE2.SET_PROPERTY(selection, 'Text', :b1.t1);
-- save document as example.doc
     args := OLE2.CREATE_ARGLIST;
     CLIENT_OLE2.ADD_ARG(args, 'c:\temp\example.doc');
          CLIENT_OLE2.INVOKE(doc, 'SaveAs', args);
          CLIENT_OLE2.DESTROY_ARGLIST(args);
-- close example.doc
          args := CLIENT_OLE2.CREATE_ARGLIST;
          CLIENT_OLE2.ADD_ARG(args, 0);
          CLIENT_OLE2.INVOKE(doc, 'Close', args);
          CLIENT_OLE2.DESTROY_ARGLIST(args);
          CLIENT_OLE2.RELEASE_OBJ(selection);
          CLIENT_OLE2.RELEASE_OBJ(doc);
          CLIENT_OLE2.RELEASE_OBJ(docs);
-- exit MSWord
          CLIENT_OLE2.INVOKE(app,'Quit');
END;

Similar Messages

  • Webutil - CLIENT_OLE2 for exporting to MS Word

    I've done a lot of reading about this on the net, and have been unable to find the solution, perhaps someone on here knows. I am attempting to launch a word document and fill it with some text. A very simple small block of code (taken from an example I found on Oracle's website):
    ==========================================================
    DECLARE
    app CLIENT_OLE2.OBJ_TYPE;
    docs CLIENT_OLE2.OBJ_TYPE;
    doc CLIENT_OLE2.OBJ_TYPE;
    selection CLIENT_OLE2.OBJ_TYPE;
    args CLIENT_OLE2.LIST_TYPE;
    BEGIN
    -- create a new document
    app := CLIENT_OLE2.CREATE_OBJ('Word.Application');
    CLIENT_OLE2.SET_PROPERTY(app,'Visible',1);
    docs := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Documents');
    doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
    selection := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Selection');
    -- insert data into new document from long item
    CLIENT_OLE2.SET_PROPERTY(selection, 'Text', 'TEST123');
    CLIENT_OLE2.RELEASE_OBJ(selection);
    CLIENT_OLE2.RELEASE_OBJ(doc);
    CLIENT_OLE2.RELEASE_OBJ(docs);
    END;
    ==========================================================
    This will launch the word application, but no new document is created. I'm inclined to think there is a problem with the way that I've setup webutil, but why would forms have no trouble launching the word application, and be unable to create a new document?
    The error I get in the Java Console is the following:
    2007-Jul-11 09:49:39.699 ERROR>WUO-714 [OleFunctions.setExceptionValues()] Unable to get the last OLE Error details; Exception
    null
    2007-Jul-11 09:49:39.699 ERROR>WUO-708 [OleFunctions.get_obj_property()] Unable to get Property: Documents; Exception
    com.jacob.com.ComFailException: A COM exception has been encountered:
    At Invoke of: Documents
    Description: An unknown COM error has occured.
    I'm using the latest version of Jacob, a recent version of webutil, and Forms 10g. And MS Office 2003.
    Any help with this would be much appreciated.

    I used code given below, it gives an error ORA-305501
    I am using Microsoft Office-2003.
    how can I export contents(modified) of MSWORD back to form?
    declare
         app CLIENT_OLE2.OBJ_TYPE;
         docs CLIENT_OLE2.OBJ_TYPE;
         doc CLIENT_OLE2.OBJ_TYPE;
         selection CLIENT_OLE2.OBJ_TYPE;
         args CLIENT_OLE2.LIST_TYPE;
    BEGIN
    -- create a new document
              app := CLIENT_OLE2.CREATE_OBJ('Word.Application');
              CLIENT_OLE2.SET_PROPERTY(app,'Visible',1);
              docs := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Documents');
              doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
              selection := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Selection');
         -- insert data into new document from long item
              CLIENT_OLE2.SET_PROPERTY(selection, 'Text', :b1.t1);
    -- save document as example.doc
         args := OLE2.CREATE_ARGLIST;
         CLIENT_OLE2.ADD_ARG(args, 'c:\temp\example.doc');
              CLIENT_OLE2.INVOKE(doc, 'SaveAs', args);
              CLIENT_OLE2.DESTROY_ARGLIST(args);
    -- close example.doc
              args := CLIENT_OLE2.CREATE_ARGLIST;
              CLIENT_OLE2.ADD_ARG(args, 0);
              CLIENT_OLE2.INVOKE(doc, 'Close', args);
              CLIENT_OLE2.DESTROY_ARGLIST(args);
              CLIENT_OLE2.RELEASE_OBJ(selection);
              CLIENT_OLE2.RELEASE_OBJ(doc);
              CLIENT_OLE2.RELEASE_OBJ(docs);
    -- exit MSWord
              CLIENT_OLE2.INVOKE(app,'Quit');
    END;

  • Office Integration: Problems with MS Word

    Hi all,
    I have a problem with word integration in SAP CRM 7.0 EhP1 SP04.
    I have created, activated and populated a web service and created a word template. When creating a new document in the WebUI (button "With Template") Microsoft Word not even starts. However, the Word document based on the template was enriched with data via the web service and is available in the assignment block "Documents". When I click on the link and open the document I can make changes, but then I only can save it local and have no possibility to save it at the content server which usually should be done automatically. When I use the button "Edit" in the document details page word will not start.
    All prerequisites mentioned in different sap notes and forum threads (active services in sicf, alias for content management, browser settings, ...) are completed.
    Has anyone had similar experiences or has ideas for a possible solution why word will not start when using the edit button?
    Do I have do make any additional settings concerning content management?
    Thanks in advance!
    Sebastian
    Edited by: Sebastian Lenz on Oct 19, 2011 5:07 PM

    Hi Andrei,
    Thank you very much for your quick response and your suggested SAP notes.
    With the help of note [1566793 'Procedure to create word template in EHP1 & higher versions'|https://service.sap.com/sap/support/notes/1566793] I was able to successfully create a template that is filled with data from our web service. Because we have already installed SP04 the corrections mentioned in note [1459264 'Microsoft Word does not open in CRM Template Designer'|https://service.sap.com/sap/support/notes/1459264] are implemented as well.
    I would be very grateful if you could suggest any more possible solutions.
    Or means "For security reasons, Microsoft Word can no longer open the document and write it back to the CRM server using the save function." it is absolutely impossible to edit a Word document, that alreay exists on the content server, and save it as new version?
    Appreciating your help very much,
    Sebastian
    Edited by: Sebastian Lenz on Oct 20, 2011 8:44 AM

  • Error Handling in WebUtil CLIENT_OLE2.get_obj_property

    Hello,
    we have a problem with the error handling in WebUtil's CLIENT_OLE2.get_obj_property function. The WebUtil version is 1.0.2 and the problem can be reproduced on the 9iAS, 9iDS and 10gAS as well.
    Problem description:
    The get_obj_property function does not throw a PL/SQL exception when it is given an invalid object as first argument (i.e. an object handle to an application that has intermittently been closed by the user). Instead, the function returns a NULL value and the control flow of our application code continues as if the function had succeeded. So the problem is that the get_obj_property function neither throws an exception nor can the failure be caught by calling WEBUTIL_CORE.IsError as this returns that no error occurred.
    Example:
    PACKAGE BODY word IS
    OBJ_HND CLIENT_OLE2.OBJ_TYPE := NULL;
    mydocs CLIENT_ole2.obj_type;
    -- Start Word97
    PROCEDURE wordopen is                         
    BEGIN
    obj_hnd := null;
    obj_hnd := CLIENT_OLE2.create_obj ('Word.Application');
    CLIENT_OLE2.Set_property(obj_hnd,'Visible',1);
    END;
    PROCEDURE test is
    BEGIN
    IF obj_hnd IS NULL THEN
    wordopen;
    END IF;
    BEGIN
    mydocs := CLIENT_OLE2.get_obj_property(obj_hnd,'Documents');
    EXCEPTION WHEN OTHERS THEN
    -- Word has probably been closed by the user
    -- so just start it again and retry...
    wordopen;
    mydocs := CLIENT_OLE2.get_obj_property(obj_hnd,'Documents');
    END;
    END;
    END;
    If the procedure test is called once then the Word application is started and the procedure performs some work. The procedure could be called several times on the same Word instance but fails in case the user closes the Word application because the procedure does not get an exception or error from WebUtil's get_obj_property function. Only a JACOB Java exception is logged in the Java console of the user's computer - the PL/SQL code has no way of knowing that an error has occurred.
    Possible solution / patch for webutil.pll:
    The webutil.pll can be patched to throw an exception if it is given an invalid object handle. In webutil.pll version 1.0.2 in get_object_property, line 1205, just add the condition "(v_javaHandle IS NULL) or " at the beginning of the if-statement in that line so that an OLE_ERROR will be raised if v_javaHandle is NULL:
    if (v_javaHandle IS NULL) or (v_javaHandle = 0) or (v_javaHandle='') or (v_javaHandle=-1) then     
    raise OLE_ERROR;      
    end if;     
    Can you confirm the error and re-release a patched webutil.pll at a later time?
    Regards,
    Andreas Leidner
    infoteam GmbH Berlin

    Hi
    It is mentioned in webutil doc that, you must regenerate webutil.pll before using it; otherwise you’ll encounter error ORA-06508 when running a form with the attached library.
    Hope this helps...
    Regards,
    Amatu Allah

  • XML scheme and Web services enhancement for MS Word integration in CRM 2007

    Hi,
    I am trying to use the Template designer and the web services tool in order to create a MS Word template for the quotation.
    We have created a new web service, using the Web Service Tool
    (transaction BSP_WD_CMPWB, type WS_DESIGN_TOOL). I can use this web service when creating a quotation word template and everything works fine.
    I need to enhance the web service with some custom fields and logic. I found the blog:
    Web-services enhancement for MS Word integration in CRM 2007
    /people/community.user/blog/2008/11/18/web-services-enhancement-for-ms-word-integration-in-crm-2007
    The blog describe how to enhance the web service, extend the output
    structure etc.
    We have done all the steps in the blog, and everything looks fine. When
    we test the web service, using the Web Service Navigator, all the new
    fields we added to the output structure are displayed. The WSDL
    document also looks fine, displayed from the Web Service
    Administration.
    The problem occur when try to create the word template using the
    Template Designer. The XML scheme is not displayed in the word
    document. This only happens if we use an enhanced web service.
    Anyone familiar with this issue?
    Kind regards,
    Johan Wigert

    Hi,
    You may have to upgrade your MS word 2003 to MS Word 2007.
    Before you do that please opening View > toolbars > Task Pane and check if you can get XML Schema from the web service.
    Regards,
    Sandeep Chavan

  • MS Word integration with SAP CRM: can a PDF be created from the MS Word doc

    21/11
    Gurus,
    I know have a better understanding of the topic but still have 2 open questions.
    I now know that StreamServe cannot read .DOC files but can read and work with .PDF files.
    Since we are in a SAP forum and not a StreamServe forum,
    1/ I am wondering if SAP CRM 2007 can convert the MS Word generated and populated documents into .PDF. Possibly immediatly.
    2/ Can the MS Word generated and populated documents be saved by SAP CRM 2007 as .XML files?
    Thanks again.
    Dear All,
    On my project, there is a requirement to generate ad-hoc and amendable letters in CRM (2007).
    We might have +150 letters so I am thinking about using MS Word integration with SAP CRM to deliver this.
    With SAP CRM 2007, I understand that it is indeed possible to generate WebServices that will then be consumed by Word templates through the mail merge functionality. So agents will not have to enter BP name, address and so on. All this can be done by configuration which is great.
    My point of concern is how to integrate this design to StreamServe for printing purpose (we do not want to go into local printing)
    Can StreamServe collects the Word generated document?
    Should this Word document be converted as PDF before or can StreamServe do it?
    Should StreamServe exploits the XML contents within the Word generated document?
    Thanks for your help and insights about this.
    Brice.
    Edited by: Brice Vialle on Nov 21, 2008 9:26 PM
    Edited by: Brice Vialle on Nov 21, 2008 9:34 PM

    Hi Chris,
        Your advice helps me a lot, thank you.
        I upload an XML-Format template Word Doc to server as a MIME Object.
        When OfficeControl is started in Web Dynpro, OfficeControl automatically open the XML-Format template.
       For the first time, I get the XString-type Context attribute bind to the content of the Word Doc,
       then translate it to string, I got the XML-format content, it's great!
       However, after the first time, when I input any new contents in MS Word in Web Dynpro,
       no matter I execute "Ctrl + S" or click the "savedocument" button,
       when I translate the XString Context attribute to String, I got messy code. (but the first time, it is good plain text)
       I use the function module: ECATT_CONV_XSTRING_TO_STRING (good for first time, dump after first time),
       SCMS_XSTRING_TO_BINARY, SCMS_BINARY_TO_STRING (good for first time, messy code after first time).
       My Demo source code is in: (system) SMV --> (local object) zhaode --> (Dynpro Component) ztest_office_control
       core source code is as:
       clear itab.
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER = lv_datas
        IMPORTING
          OUTPUT_LENGTH = lv_length
        TABLES
          binary_tab = itab.
      CALL FUNCTION 'SCMS_BINARY_TO_STRING'
        EXPORTING
          input_length = lv_length
          mimetype = 'text/plain; charset=utf-8'
        IMPORTING
          text_buffer = lv_datas_string
          output_length = lv_data_len
        TABLES
          binary_tab = itab.
        Can you give me some advice?
    Best Regards,
    Derek

  • What command would you use to check for allocation, structural, or logical integrity problems?

    What command would you use to check for allocation, structural, or logical integrity problems?

    Wondering if you are looking for DBCC CHECKDB command? For more information, on that command, try to look at this:
    http://technet.microsoft.com/en-us/library/ms176064.aspx

  • Outlook integration problem

    hello,
         I had configured the outlook properly , but  it does not able to send the main in my configred mail id & within the outlook.
             some times it is work properlly after new installation of outlook addon  but when  i am change  the user that time it is not work and also doen't get that check box of "send mail tho the outllok"
    please help me out of this.

    Check the following threads:
    Re: BO2069: Failed to send e-mail via Microsoft Out look"
    Outlook integration problem
    Do check the following SAP Note:
    Note 1064323 - OI: MS Outlook does not send new mail with OI installed
    Regards
    Satish

  • Portal BW Integration Problem - Role Menu Error

    Hi,  I have a web template with a role menu on it.  The application works fine when I execute it directly on the BW Server.  But, whenever I execute the application through our portal and select a node on the role menu I receive a windows error dialog with the following message:
    A runtime error has occurred.
    Do you wish to Debug?
    Line: 250
    Error: Permission Denied
    [Yes] [No}
    Seems like Portal/BW integration problem.
    Can anyone help?

    Question Closed

  • WebUtil & Client_OLE2 - Urgent!

    Hi!
    I use Oracle9iASR2, Forms9i (Patch 9.2.0.3) and JInitiator 1.3.1.13!
    I was following all webutil_manual.pdf and readme.html steps!
    I have no problem with client_get_file_name or client_host calls, but I have a tedious problem when I'm trying to call Client_OLE2.create_obj('Excel.Application'), for instance.
    Java Console shows:
    Exception occurred during event dispatching:
    java.lang.NoClassDefFoundError
         at oracle.forms.webutil.ole.OleFunctions.create_obj(OleFunctions.java:513)
         at oracle.forms.webutil.ole.OleFunctions.getProperty(OleFunctions.java:218)
         at oracle.forms.handler.UICommon.onGet(Unknown Source)
         at oracle.forms.engine.Runform.onGetHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    This is my classpath parameter in default.env file:
    CLASSPATH=d:\Oracle9iAS2\jlib\importer.jar;d:\Oracle9iAS2\forms90\java;D:\Oracle9iAS2\jlib\debugger.jar;D:\Oracle9iAS2\jlib\ewt3.jar;D:\Oracle9iAS2\jlib\share.jar;D:\Oracle9iAS2\jlib\utj90.jar;d:\webutil\lib\webutil.jar;D:\Oracle9iAS2\jdk\jre\lib\rt.jar
    Could someone help me, please?
    Dejan

    A machine of Oracle9iAS must be powerful, I guess! I have 512MB RAM, only, and a recommendation is 1GB at least. It works slowly, but that's only a test environment. I have strong servers in my company, so the most significant thing at the moment is that webutil concept works. That is the basic reason for migration from 6i, but not the only one. Now I need a library of properties for the word and excel invoking, for a complete settings of any document or worksheet. If someone has something similar, please send me! My address is [email protected] . Thank you in advance!

  • How do I call a SAP RFC from an Oracle Form using webutils CLIENT_OLE2?

    Hi guys,
    Your help on this problem would be greatly appreciated.
    We have an older forms 6i application which we are currently updating to 10g (which is a pain itself... but that's a different story.) which currently uses unssupported c++ routines to connect to the SAP system, we want to do away with this c++.
    What I have so far is the following test code:
    PROCEDURE cmd_summary
    IS
    o_sap_log client_ole2.obj_type;
    o_sap_conn client_ole2.obj_type;
    o_sap_rfcc client_ole2.obj_type;
    -- o_sap_rfcx client_ole2.obj_type;
    -- o_sap_rfc client_ole2.obj_type;
    v_args ole2.list_type;
    v_logon BOOLEAN := FALSE;
    BEGIN
    :block3.txt_result := 'TEST Started!';
    --create logon control object
    o_sap_log := client_ole2.create_obj ('SAP.logoncontrol.1');
    --create the function object
    o_sap_rfcc := client_ole2.create_obj ('SAP.Functions');
    --create a new connection object
    o_sap_conn := client_ole2.invoke_obj (o_sap_log, 'NewConnection');
    --set the connection properties
    client_ole2.set_property (o_sap_conn, 'System', caps$get_sys_param ('SAP_DST'));
    client_ole2.set_property (o_sap_conn, 'MessageServer', caps$get_sys_param ('SAP_HST'));
    client_ole2.set_property (o_sap_conn, 'GroupName', 'DEVELOP');
    client_ole2.set_property (o_sap_conn, 'client', caps$get_sys_param ('SAP_CLT'));
    client_ole2.set_property (o_sap_conn, 'SystemNumber', caps$get_sys_param ('SAP_SYN'));
    client_ole2.set_property (o_sap_conn, 'User', caps$get_sys_param ('SAP_USR'));
    client_ole2.set_property (o_sap_conn, 'Password', caps$get_sys_param ('SAP_PWD'));
    client_ole2.set_property (o_sap_conn, 'language', caps$get_sys_param ('SAP_LNG'));
    --set up the logon arguements
    v_args := client_ole2.create_arglist;
    client_ole2.add_arg (v_args, 1);
    client_ole2.add_arg (v_args, TRUE);
    --run the logon function
    v_logon := client_ole2.get_bool_property (o_sap_conn, 'logon', v_args);
    client_ole2.destroy_arglist (v_args);
    IF v_logon
    THEN
    :block3.txt_result := :block3.txt_result || CHR (10) || 'LOGON Worked!!';
    ELSE
    :block3.txt_result := :block3.txt_result || CHR (10) || 'LOGON Failed!!';
    END IF;
    :block3.txt_result := :block3.txt_result || CHR (10) || 'TEST Ended!';
    EXCEPTION
    WHEN OTHERS
    THEN
    :block3.txt_result := :block3.txt_result || CHR (10) || SQLERRM (SQLCODE);
    END cmd_summary;
    NOTE: the get_sys_param functionis returning text from a table.
    This seems to work okay, the logon command returning a TRUE. All good so far.
    However, when I try to then use this connection for anything then I stumble and fall!
    I've seen an example in VB where the SAP RFC object is "assigned" the connection object by simply stating:
    Set oSAPrfc.Connection = oSAPconn
    Where oSAPconn is setup in a similar way to my o_Sap_conn in the above example.
    I have tried using the CLIENT_OLE2.SET_PROPERTY procedures but I don't think that's quite right.
    I've tried using invoke, to try and "run" the method like:
    v_args := CLIENT_OLE2.CREATE_ARGLIST;
    client_ole2.add_arg_obj(v_args,o_sap_conn);
    client_ole2.invoke(o_sap_rfcc,'Connection',v_args);
    client_ole2.destroy_arglist(v_args);
    but it fails.
    I have also tried using the actual Connection function directly:
    SAP_ISAPFUNCTIONS.connection(o_sap_rfcc, o_sap_conn);
    But that just causes the Forms Server to crash... :?
    Has anyone connected to SAP via Forms? I noticed one post on this forum which an example of some code using a SAPBAPI control but not WEBUTIL (Which I think I'd need to use because we are running 10g)
    As a side note we are also looking into SAP Adapter as a possible "other" route but this too is getting very complicated... And I can't see a way of connecting a form to the Adpater anyway :(
    Any advice would be very much appreciated.

    Can anyone help?
    Mike

  • ABAP Web Dynpro - OfficeControl - Word Integration

    Hi,
    i have a problem concerning the office control of the abap web dynpro.
    I have a textedit box on the view of a web dynpro. Now i want to transfer the data from the textedit box to the word document. I used the "IOS_TEST_WORDPROCESSING" as an example.
    Everything works fine, if there is only one line of text in the textedit box. If i put for example three lines in it, word opens and now i have the choice for a data seperator.
    The word document contains only one field as a "MergeField" like the field of the word document used in the "IOS_TEST_WORDPROCESSING". 
    Could anyone give me a hint how to solve the problem.
    With best regards
    Markus

    I have the same problem. I want to integrate an ABAP Web Dynpro in GP, but there is no way to implement an Interface from GP like it is in JAVA. That means you cannot maintain input , output parameters and give a status back to GP. Seems that in ABAP the WD is not integrated in GP.
    I went to the relevant developement departement an they gave me the following answer.
    In GP you can maintain input parameters for a ABAP Web Dynpro Application manually which will be displayed in the apllication UI URL . Then you need a function module to map the input parameters inside the url to the ABAP Web Dynpro context. Output parameters are not possible in GP with ABAP Web Dynpro. It is also not possible to give back the processing state to GP from your ABAP web Dynpro Application like it is in JAVA. Only the GP framework provides a button to complete this Step manually by the user.
    Regards
    Rainer

  • Active Directory integration problem, Bind AC and OD

    Hi.
    I'm trying to set an Open Directory as "connect to a Directory System" because I have a windows 2000 server with Active Directory. But i have a problem when i click on "open directory Access", Access Directory appear and I select Active Directory.
    xxx.yyy is the server with active directory, with its admin and its password. but i cant Bind it and an error always appear.
    can you help me?
    what's "active directory domain"?is it xxx.yyy?
    and what's "computer ID"?
    Are there others parameters to set for example in DNS or other?
    help help help

    What are you trying to achieve by doing this?
    Got to http://www.afp548.com/ and serach for AD-OD integration.
    http://www.afp548.com/article.php?story=20051202151540574

  • BE 3000 with Jabber (for Mac) and webex connect integration problems

    Hi,
    This is my first question on the forum so please be gentle!
    I have a customer who has a Business Edition 3000 and they have purchased WebEx connect and Jabber integration to go with it.
    My problem is I am having difficulty getting the setup to work and I have a number of questions on how to set this up.  Most of the docs on Cisco's website seem to be related to either CUCME or full CUCM, but not a lot on BE 3000.  My questions are below:
    1.  I have been reading the documentation for WebEx connect and it states to set the IP address of the BE 3000 server in the Configuration>Additional Services>Unified Communications>Voicemail tab.  This is currently on the network with a 192.168.x.x address however.  My predecessor put this IP address in the WebEx configuration page but I'm not sure this will work with a private IP as I don't know how this communicates back.  The documentation isn't very clear on this.  Does this have to be a public IP address / FQDN for it to work?
    2.  Are there any SRNDs for this type of setup that could help?  Again, looking through the website hasn't turned anything up yet.
    Note: 
    we are using the following software:
    Jabber for MAC:
    uc-client-mac-8.6.7.20127.fcs.zip
    MAC OS:
    OSX 10.8.3
    BE 3000:
    MCS7890C1-BE8
    8.6.4.10000-15.
    Thanks in advance for any help.
    Regards,
    Jason

    Hi - I have done this via the admin portal but still cannot get the Jabber client for Mac to register for voice.  The Windows version works fine for the same user and CUCM device.   Are there any other settings that need to be enabled specific to the Mac client?
    Thanks.

  • HELP! Form-Report integration problem!

    Hi all, I have a problem in integrating report in dev10i. I used to use Dev6i and have no problem in using run_report_object in 6i. I have posted this in Report for few days but haven't got response.
    I got the REP-0503 You did not specify the name of the report and FRM-40738 Argument 1 to builtin Report_Object_Status can not be null. The report run OK in report builder and I create the paper only layout. Also, I save the report as *.rdf and create a report object in form that point to this *.rdf file.
    This is my PL/SQL code:
    PROCEDURE P_PRINT_REPORT_OBJ(vc_reportoj Varchar2, vc_reportserver Varchar2, vc_runformat Varchar2) IS
    v_report_id Report_Object;
    vc_ReportServerJob VARCHAR2(100);
    vc_rep_status VARCHAR2(100);
    vjob_id VARCHAR2(100);
    BEGIN
    v_report_id := FIND_REPORT_OBJECT(vc_reportoj);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_COMM_MODE, SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_DESTYPE, CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_DESFORMAT, vc_runformat);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_SERVER, vc_reportserver);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_OTHER, XXX='||:XXX.XXX||' paramform=no');
    vc_ReportServerJob := RUN_REPORT_OBJECT(v_report_id);
    vjob_id := substr(vc_ReportServerJob,length(vc_reportserver)+2,length(vc_ReportServerJob));
    vc_rep_status := REPORT_OBJECT_STATUS(vc_ReportServerJob);
    IF vc_rep_status = 'FINISHED' THEN
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||vjob_id||'?server='||vc_reportserver, '_blank');
    ELSE
    message('Report failed with error message '||vc_rep_status);
    END IF;
    END;
    What gives? Do I miss something here? Do I have to set up other thing??? Also what is the name of report server in Dev10i? I am under impression that this is not needed so I put blank '' when I call this procedure in WHEN-BUTTON-PRESSED trigger like this:
    P_PRINT_REPORT_OBJ('myreportobj','','HTML');

    Hi all, I created simple report from 1 table and save it as *.rdf. I then make a simple form consisting 1 block and a button that have WHEN-BUTTON-PRESSED trigger that call P_PRINT_REPORT_OBJ. I create a report object in the form that point to my *.rdf report file and name the object MYREPORT. This time it gives Rep-0110 Can not open file '%n~<intangible character>' and REP-1170 Error while opening or saving a document. After that other message popup with REP-0110. It seems that FIND_REPORT_OBJECT could not find the file at all/giving the wrong filename as argument. Do I have crooked installation? I have tried it on 2 diff machine running XP2. Is this because of Win XP2? I have admin privilage user account for winXP2. Please help, this is not making a sense at all. I have no problem in Dev6i.
    PROCEDURE P_PRINT_REPORT_OBJ IS
    v_report_id                    Report_Object;
    vc_ReportServerJob               VARCHAR2(100);
    BEGIN
    v_report_id := FIND_REPORT_OBJECT('MYREPORT');
    vc_ReportServerJob := RUN_REPORT_OBJECT(v_report_id);
    END;

Maybe you are looking for

  • Photo Sharing not showing all photos via Apple TV 3rd Gen

    Hi Have Apple TV, 3rd gen, latest update of the software. Running 10.8.5 on a mid 2009 MacBookPro. When I select a few smart albums from iPhoto 09 (v. 8.1.2) and then select those albums to share/stream to my Apple TV via iTunes (11.1.3) only a few o

  • Won't display images - Its probably something simple!

    Hey , Ive been trying for ages, looked throught the tutorials (i have even tried just using java pasted from the site for one of the simple programs) and looking through old forum questions but can't find out why my GUI wont display images. It compil

  • Excise invoice printing

    Hi All, What are the settings for printing of excise invoice. If I select "print document" tab in J1IV transaction, I am not able to get print out. Pl tell me the settings. Regards,

  • Object link with HR master

    Dear All, Is it possible to object link HR master to DMS? If yes Plz explain me steps.I have requirement of attaching all employee related documents to that employe HR master.If this is not possible through object link, then plz let me know other pos

  • Thai Language problem with informix ODBC

    I have a problem about crystal report connected informix database. It displays Thai language incorrectly such as ºÃÔÉÑ· ˹Öè§ÈÙ¹Âì˹Öè§. Informix ODBC version is IBM Informix 3.82 32 BIT and crystal report version 11. Please help me to solve this pro