Ignoring Optional parameter during OLE method calling

Hi guys,
I got a problem:
Application.Workbooks.OpenXML(Filename, Stylesheets, LoadOption) here's a defination from Microsoft help.
Stylesheets and LoadOption are optional parameters.
ABAP calling:
  CALL METHOD OF workbooks 'OpenXML'
    EXPORTING #1 = filename
                       #2 = '3'
                       #3 = 2 .
How can ignore parameter #2(Stylesheets) in the calling statement? I found no documentation about  calling functions ignoring some optional parameters. Normaly there's posibility to explicitely define passing parameter, for example:
    Application.Workbooks.OpenXML _
        Filename:="customers.xml", _
        LoadOption:=xlXmlLoadImportToList
With kind regards
Long.

UP

Similar Messages

  • Type conflict during dynamic method call.

    While executing the following program I get the error "Type conflict during dynamic method call.":
    DATA: container_r  TYPE REF TO object,
          grid_r       TYPE REF TO object,
          itab_saplane TYPE TABLE OF saplane.
    * IMPORTANT NOTE: class names must be in UPPER CASE
    DATA: str_cnt TYPE seoclsname VALUE 'CL_GUI_CUSTOM_CONTAINER',
          str_gui TYPE seoclsname VALUE 'CL_GUI_ALV_GRID',
          meth_name TYPE STRING VALUE 'SET_TABLE_FOR_FIRST_DISPLAY'.
    TYPE-POOLS abap.
    DATA: ptab    TYPE abap_parmbind_tab,
          wa_ptab LIKE LINE OF ptab,
          ref     TYPE REF TO data.
    CREATE OBJECT container_r TYPE (str_cnt)
      EXPORTING container_name = 'CUSTOM_CONTROL1'. " Name of the custom control area (UC!)
    * Construct parameter itab
    GET REFERENCE OF container_r INTO ref.
    wa_ptab-name  = 'I_PARENT'.  " Must be upper-case
    wa_ptab-value = ref.
    INSERT wa_ptab INTO TABLE ptab.
    *   EXPORTING i_parent = container_r.
    CREATE OBJECT grid_r TYPE (str_gui)
      PARAMETER-TABLE ptab.
    SELECT * FROM saplane INTO CORRESPONDING FIELDS OF TABLE itab_saplane.
    * Cannot call set_table_for_first_display directly...
    CALL METHOD grid_r->(meth_name)
      EXPORTING I_STRUCTURE_NAME = 'SAPLANE'  " Type of the rows in the internal table  (UC!)
      CHANGING  IT_OUTTAB = itab_saplane.     " The internal table itself
    CALL SCREEN 100.
    Any help would be appreciated!

    Hi ...
    Apologies ... for confusion ... actually both are required ...
    the type 'E' as well as CL_GUI_CONTAINER.
    The below code worked for me ...
    check out how I cast it to the parent class type ...
      DATA : lv_container   TYPE seoclsname VALUE 'CL_GUI_CUSTOM_CONTAINER',
             lv_control     TYPE seoclsname VALUE 'CL_GUI_ALV_GRID',
             lv_method      TYPE string VALUE 'SET_TABLE_FOR_FIRST_DISPLAY',
             lt_par_tab     TYPE abap_parmbind_tab,
             ls_param       LIKE LINE OF lt_par_tab,
             lref_cont      TYPE REF TO cl_gui_container,
             lv_data        TYPE REF TO data.
    CREATE OBJECT lref_container
          TYPE
            (lv_container)
          EXPORTING
            container_name = 'ALV_AREA'.
        ls_param-name = 'I_PARENT'.
        ls_param-kind = 'E'.
        lref_cont ?= lref_container.
        GET REFERENCE OF lref_cont INTO lv_data.
        ls_param-value = lv_data.
        INSERT ls_param INTO TABLE lt_par_tab.
    **  Now create ALV Control.
        CREATE OBJECT lref_alv_ctrl
          TYPE
            (lv_control)
          PARAMETER-TABLE
            lt_par_tab.
    **  Set table for 1st display
        DATA : lv.
        lv = lref_alv_ctrl->mc_fc_print.
        CALL METHOD lref_alv_ctrl->(lv_method)
          EXPORTING
            i_structure_name = 'T001'
          CHANGING
            it_outtab        = lt_company.
    Cheers
    Edited by: Varun Verma on Aug 12, 2008 4:19 PM

  • How to refresh table column during button method call ?

    Hi,
    I have one table on my screen in which there are 5 rows.
    One of the column of this table is Status with initial value Not Completed.
    Now when I press submit button my 5 processes are started in for loop one by one.
    After completion of 1st process, I am updating 1st row status with Completed and vise a versa.
    But change is reflected on table after by method call over means if my submit action take 5 minutes to finish all 5 process than after 5 minutes, I can see all rows with status Completed while I want it to reflect as soon as I set its status.
    How can I do this ?
    regards,
    devang

    .. or break up the method in 5 methods (for each process a separate method) and with you button you call the first method. then when at the end of the method you call a javascript which updates the first column to completed and the js calls the second method (with queue of client event and serverListener) ... and so on and so on.
    Really not so cool idea but I think it's achievable:)

  • Heavy load during web method call

    Hello everyone!
    I have a web service with couple web methods. Those methods are calling quite often (average is about one call of each method per 10 seconds) by .NET client application. After few days of working I checked in JBoss Web Console statistics of calling of those methods. One of them has got average time of call equals about *300 milliseconds* but maximum call time is over *70 minutes*! I also noticed that when call of this method is very long my CPU is almost 100% load for all call time.
    Maybe someone has got similar problem? My quest is that maybe garbage collector turn on when call was so long.
    I'm using:
    1) Java 1.5_0_15
    2) JBoss 4.2.3
    3) -XX:+UseConcMarkSweepGC -XX:+UseParNewGC options for garbage colletor
    Regards,
    Piter

    This web method is getting some data from database. Each of call gets from database more or less same amount of data and made some basic processing on this data. So each call should last more or less same long. This 70 minute call is the maximum. Couple times in logs I get call which last couple minutes (3-4 minutes).

  • During asynchronous method call, Firefox doesn't allow to navigate elsewhere

    Hi,
    I am using Jdeveloper 11.1.1.5.0 and my application is based on ADF and Webcenter Portal.
    Here is the scenario: My application has a home page which contains different regions. The page loads all the regions instead of one which is running with separate thread and taking long time. Now during the execution of long running task, if user wants to navigate to another page by clicking on a command link or goLink then it works on google chrome and IE but doesn't work with Firefox. In case of firefox once it seems to redirecting to desired url for a while but then it redirects back to same page. Surprisingly, It works perfectly once the execution of long running task is finished. So it seems problem with firefox's handling of asynchronous requests. I tried FacesContext.getCurrentInstance().getExternalContext().redirect(url) and setting the URL as destination for goLink to navigate. Below is the code for goLink and commandLink:
    <af:goLink id="pt_g22" text="#{node.title}" destination="#{contextroot}/faces/test.jsp" styleClass="#{node.selected ? 'ln_active' : ''}"/>
    <af:commandLink id="pt_c21" text="#{node.title}" action="pprnav" clientComponent="#{node.attributes['Target'] == '_popup' ? true : false}" styleClass="#{node.selected ? 'ln_active' : ''}" actionListener="#{MyBean.navigateToHere}" partialSubmit="true">
    in commandLink's actionListener method i am just having : FacesContext.getCurrentInstance().getExternalContext().redirect(url)
    Also, if i use navigationContext.processAction and action="pprnav" with commandLink then it works in FF as well but i want full page redirection instead of PPR
    Any help or suggestion is appreciated.
    Many Thanks,
    Jeetu

    Jose, your fix to problem 1 allows all access from the outside, assuming you applied the extended list to the outside interface.  Try to be more restrictive than an '...ip any any' rule for outside_in connections.  For instance, this is what I have for incoming VOIP (access list and nat rules):
    access list rule:
    access-list outside_access_in extended permit udp any object server range 9000 9049 log errors
    nat rule:
    nat (inside,outside) source static server interface service voip-range voip-range
    - 'server' is a network object *
    - 'voip-range' is a service group range
    I'd assume you can do something similar here in combination with my earlier comment:
    access-list incoming extended permit tcp any any eq 5900
    Can you explain your forwarding methodology a little more?  I'm by no means an expert on forwarding, but the way I read what you're trying to do is that you have an inbound VNC request coming in on 5900 and you want the firewall to figure out which host the request should go to.  Or is it vice-versa, the inbound VNC request can be on port 6001-6004 ?

  • Odi os call with option parameter from odi procedure

    Hi.
    I am calling a shell script from ODI as below inside an ODI procedure P1. The os command below is in 'Command on Target' side.I have defined v_in_param as an 'option' inside procedure P1
    OdiOSCommand sample.sh v_in_param
    i am getting error as 'OS command returned 1'.
    Is it the right syntax to pass an 'option' parameter to an OS call?
    thanks

    you can try OdiOSCommand sh sample.sh <%=odiRef.getOption("v_in_param")%> or even call OS Command in ODI Package and paste the above code.

  • Error during method call in OLE API

    Hello,
    I am getting an error, 'Error during method call in OLE API', when the QTP script is called from eCATT.
    Does anybody knows the reason for this error?
    Thanks,
    Mahantesh

    Hi Lawrence,
    I have analyzed the condition, and come with the conclusion that, when eCATT calls QTP in integrated mode, and downloads the QTP scripts from server to your local machine,  it requires more memory. So try to free memory on C drive and don't keep running more application on the local machine.
    Thanks,
    Mahantesh

  • How to Pass Select-options Single values as Parameter value to Method ?

    Hi Friends,
    I need to pass select-options values(single values) for s_arbpl to the method "process_percent_planned". Now all single values are in internal table s_arbpl-low field. I need to pass this internal table(s_arbpl-low) values to the method where i will run query based on these single values.In my below code i am passing value through variable w_arbpl. I have defined this parameter in the method.But here only one value is passed to method. I want multiple single values (in s_arbpl-low) should be passed. Please let me know how to correct code.
    Tables: crhd.
    Data: ktext type auftext,
    w_arbpl type arbpl.
    select-options: s_arbpl for crhd-arbpl.
    ktext = 'Test'
    create object obj_plan.
    call method obj_plan->process_percent_planned
    exporting
    ktext = ktext
    w_arbpl = s_arbpl-low.
    Thanks

    hi ,
    when you want to pass  S_ARBPL AS PARAMETER IN SELEC OPTION
    ARBPL SUCH AS  
       WIN002
      WIN003
      WIN004
      WIN005
      WIN006
      WIN007
    IN MULTIPLE SELECTION  S_ARBPL
    THEN
    USE  
    Tables: crhd.
    Data: ktext type auftext,
    w_arbpl type arbpl.
    select-options: s_arbpl for crhd-arbpl.
    ktext = 'Test'
    LOOP AT S_ARBPL .
    create object obj_plan.
    call method obj_plan->process_percent_planned
    exporting
    ktext = ktext
    w_arbpl = s_arbpl-low.
    ENDLOOP.
    REGARDS
    dEEPAK .
       THEN SELECT THAT
    call method obj_plan->process_percent_planned
    exporting
    ktext = ktext
    w_arbpl = s_arbpl-low.

  • Calling OLE methods from TOOL

    Thanks to those that responded to my previous E-Mail on how to get the
    Forte project & class generated. This worked great!! I'm able to start
    Word and create documents, etc.Thanks!
    Now I'm having a problem calling an OLE method that were generated. I
    have a project called Word and a class called Application of type
    CDispatch. The Application class has a method called "Insert" on it. I
    want to be able to start a Word document and then insert some text into
    it from Forte. When I try to call this method I get the following error:
    SYSTEM ERROR: Error during Invoke; status code:
    -2147352565(0x8002000B)
    Class: OLEException
    Last TOOL statement: method CDispatch.Invoke
    Error Time: Wed Mar 12 15:55:09
    Exception occurred (locally) on partition "Forte_cl0_Client",
    (partitionId = 6C32C516-7616-11D0-B5DD-EE36DFEAAA77:0x8ff:0x1,
    taskId
    = [6C32C516-7616-11D0-B5DD-EE36DFEAAA77:0x8ff:0x1.4]) in
    application
    "Forte_cl0", pid 149 on node SCURD01-1 in environment
    CentralEnv.
    Here's my code:
    tWordApplication : Word.Application = new();
    when <wNewDocumentButton>.click do
    <YourDocument>.CreateEmbeddedObjectFromProgId(
    cacheFile = tCacheFileName,
    progId = 'Word.Document');
    tWordApplication.ObjectReference = <YourDocument>.OleObjectReference;
    tWordApplication.Insert( 'This is a test' ); <==== this is the line
    getting the error
    Since I've never worked with OLE & am not that familiar with how it
    works, any suggestions/comments are greatly appreciated.
    Doug Scurr
    Senior Technologist - Application Development
    Piper Jaffray Companies
    612-342-1748
    [email protected]
    Thanks,
    Doug

    I'm afraid we have to make it work for NT, 95 and probably 98 too, so we're
    looking for something a bit more robust than the environment variable.
    Thanks,
    Tim Sawyer
    PanCredit
    Leeds, UK.
    From: Daniel Nguyen[SMTP:[email protected]]
    Reply To: [email protected]
    Sent: 07 May 1999 20:40
    To: Tim Sawyer
    Cc: '[email protected]'; '[email protected]'
    Subject: Re: Calling Windows API from Tool
    Hi,
    If it's only for the UserName on NT you can get the environment variable
    USERNAME.
    Hope this helps,
    Daniel Nguyen
    Freelance Forte Consultant
    Url : http://perso.club-internet.fr/dnguyen/
    Tim Sawyer a &eacute;crit:
    Hi George,
    I think you need to find out which Windows DLL implements the functionand
    then wrapper it, using Fort&eacute;'s C Wrappering technique. I'm going to be
    doing this for the GetUserName() function, so we can login to our
    application automatically, using the username that the user logged intoNT
    with.
    Hope this helps!
    Tim Sawyer
    PanCredit
    Leeds, UK.
    From: Aberdour George <[email protected]>
    Date: Thu, 6 May 1999 09:08:03 +1000
    Subject: Calling Windows API from Tool
    Hi,
    Does anyone know how to call Windows API calls such as WinExec,
    CreateProcess, RegSetValue, etc directly from TOOL ?
    These are just examples calls. I know some Windows API calls can be
    called
    via equivalent OperatingSystem method calls, but I would really like toknow
    if it is possible to call Windows API routines directly.
    Thanks in advance,
    George Aberdour
    TAFE NSW-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Taskflow Method call receiving null parameter.

    Hi all,
    I am using 11.1.1.6. I have created in my application an extra project which is pure Java objects and exposed a master class as a POJO DC. In my application, I have a taskflow where I have dragged and dropped one method from my POJO DC - 2 of the parameters of this methods are coming from an application scope bean. I have debugged the application, and made sure that the object being returned by the getter of my app scope bean is not null. So basically, when the breakpoint is in the return statement of my getter the oject is not null and it has been correctly initialized. Just after that, the next breakpoint is in the class receiving the parameter in my POJO DC class. In there, the object is NULL.
    Does anyone knows wat could be the reason??

    Hi Frank Nimphius-Oracle,
    That is precisely the problem.  The object is being passed as to the taskflow as an input parameter (getting it from my application scope bean). If I access the pageFlowScope inside my taskflow I see it and its there, correctely intialized. However, when I call a method call activity that consumes that object as parameter, all what it gets is null.
    The method that consumes this object is in a separate project, and its exposed in a POJO DC. I don't know if it has to be with the complexity of the object I am passing or what but I don't understand why its not being passed correctly to the DC Method.

  • Ecatt script fails due "Error in OLE API method Call"  error

    Hi ,
    Ecatt scripts fails due to "Error in OLE API method Call" error, this error message occurs once a while.
    We are calling testpartner scripts from Ecatt using REFEXT command. At times this ECATT script fails due to above issue.
    Please help in solving this issue.
    Thanks,
    Asha

    >
    Asha Nagaraj wrote:
    > Hi ,
    >
    > Ecatt scripts fails due to "Error in OLE API method Call" error, this error message occurs once a while.
    >
    > We are calling testpartner scripts from Ecatt using REFEXT command. At times this ECATT script fails due to above issue.
    >
    > Please help in solving this issue.
    >
    > Thanks,
    > Asha
    Hi Asha,
    Are those components are connected and the necessay settings has been done?
    Regards,
    SSN.

  • *ERROR IN OLE CALL - METHOD CALL ERROR...*

    HI ..
    When trying to Upload a file using BDC with Vista OS, we are getting the following error..
    ERROR IN OLE CALL - METHOD CALL ERROR...
    There is no problem with BDC as its working fine with XP & other OS.
    Pls help!!

    Seems that you are working with microsoft files.
    Maybe you are using deprecated functions like WS_EXCEL

  • Error During Method Call in Scripting Host

    Hey all ,
    I am running a webdynpro application , which runs an Ecatt which in turn runs an Underlying SAP GUI recording , and as soon we hit the  SAP GUI command we are getting an Error saying ERROR DURING METHOD CALL IN SCRIPTING HOST.
    As of now we know that this might be a security issue as this was working perfectly fine when we were running on a R3 system.
    If any of you have come across such a situation and was able to find a work around it would be of great help if you respond back as I need this info ASAP.
    Thanks And Kind Regards,
    Nischal

    Hi Lawrence,
    I have analyzed the condition, and come with the conclusion that, when eCATT calls QTP in integrated mode, and downloads the QTP scripts from server to your local machine,  it requires more memory. So try to free memory on C drive and don't keep running more application on the local machine.
    Thanks,
    Mahantesh

  • Create page definition option on a method call

    I have been developing my first application using ADF with JDeveloper 12c.   After reading all of the documentation, it would appear that I should be able to create a page definition for a method call on a task flow, but when I right-click on my method calls, there is no option to do so.  What am I doing wrong?  Any help would be greatly appreciated.  Maybe I have a setting wrong or something.  Thank you all in advance.

    Hi Frank,
         Thanks for the response.  I did try to right click on the method call, the option to Create Page Definition is absent from the context menu.  That was my source of the problem which prompted me to write the thread.  However, your alternate solution of dropping the operation from the data control panel onto the method call worked like a charm.  It created the page def and bound the method to the call.   Thank you for that one.   I am still curious as to why the option on the context menu is missing for me.

  • Passing the OUT parameter in method call after connection

    Hi,
        I have created the rfc connection through SAP.net Connector. Now when i want to show all the data of the particular RFC. i need to provide all the fields name and the tables name in method call.
    In that method call i need to provide one paramet which is of type OUT what is that and what i need to provide in that parameter.
    Can anybody suggest on this.
    I can send the code if u need to understand, what exactly i want.
    Regards,
    +Naren

    Its done i am able to connect.

Maybe you are looking for

  • Using wildcards in custom find methods with CMP beans

    Hi, I'd like to create a custom find method called findByName which accepts a string. I'd typically want to use the string in a '%<name>%' scenario, where the user needn't type in the whole name. Does anybody know what the partial query should look l

  • ACPI Ethernet driver for Win 7?

    Hello I've no idea if I am even near the correct place to be. Would love to find out from someone who knows where I can find on Microsoft's web-site, the  ethernet driver for acpi. It turns out I haven't one on my computer and how I lost it is anyone

  • Make a subform a read only

    Hi all, I'm new to scripting, a sample code will help. I have a form with three subforms in it. One subform (subform1) contains radio buttons, radiobutton1 & radiobutton2. When radiobutton1 is selected, I need to disable subform 2 and all its element

  • Edge Animate 2014.1 ???

    Edge Animate 2014.1     Hi,  I created a (large/extensive) project/s using Edge Animate CC 2014.1" in Trial mode, now expired.  I have an annual subscription to all of the complete Adobe CC suite.       - as part of this Adobe CC suite subscription,

  • Illustrator CS3 crashes on launch

    I have been using Illustrator CS3 succesfully for more than 1.5 years now on my computer and then suddenly today I went to open it and it wont open - it crashes as I launch it - all the other CS3 software is fine. As far as I know I havent changed an