Excel ( VB ) to ABAP RFC WEB SERVICE Call - No Errors - Blank Output Table

Trying to get Excel talk to ABAP RFC Web Service.
-  Excel - 2007 ( Since it is Excel 2007, I didn't had to add any Office Web Services Toolkit or any add on )
-  ECC 6.0
Excel (VB) not throwing any error, but is not giving any output ( expecting a table output ).
ABAP RFC WebService with Uid Pwd Authentication.
Activated binding for ABAP RFC via SOAMANAGER for clnt 600.
Using WSDL of WS of Clnt 600 in Excel via VB
Basic ABAP RFC -
1 optional import param ( Input Param )
1 table output  ( Tables Param )
Basic VB Call Code  -
Call projHoursWS.wsm_YProjHours("", arProjHours)
To test if VB and WebService are talking to each other, when i temperorarily change the Authentication method ( uid/pwd ) of Webservice in Sicf it throws "NO MATCHING AUTH" .. So VB and ABAP WS are talking to each other.
Debugged VB in Excel, not throwing any error , but is always returning the output table (arProjHours) Empty.
Missing anything?

Hi,
Try turning on the ICF Recorder in TCode SICF (check SAP Help for usage details) to establish that the request is reaching SAP successfuly.
You'll also be able to catch the response that's being generated by SAP this way. Then turn off the ICF recorder.
Best Regards, Trevor

Similar Messages

  • LCDS web service call throwing error for valid XSD URL

    Hi,
    I am trying to call a web service which is deployed on a J2EE application[ Project name : WebServiceApplication ] through a different LCDS application [ Project name : lcdsTestWebService] But while loading of mxml following error comming into console.
    Can any one explain that why Flex application is looking for DocTypeTestService_schema1.xsd  into lcdsTestWebService application when this xsd is
    present in WebServiceApplication project.
    One intresting point which i found that if i place this xsd into root of lcdsTestWebService application so that it is accessable through
    url = "http://localhost:9080/lcdsTestWebService/DocTypeTestService_schema1.xsd" than there is no issue and web service call sucessfully
    happen.
    [2/14/11 16:23:18:208 IST] 0000002c SystemOut     O [LCDS]Deserializing AMFX/HTTP request
    Version: 3
      (Message #0 targetURI=null, responseURI=null)
        (Typed Object #0 'flex.messaging.messages.HTTPMessage')
    (Object #1)
            body =       clientId = "A568DF0F-A60A-1473-CDAB-707E4A185812"
          contentType = "application/x-www-form-urlencoded"
          destination = "testWebservice"
    (Object #2)
            DSEndpoint = "my-http"
            DSId = "A568DE2A-2809-A1FE-0934-D3ECBC19337C"
            headers =       httpHeaders = null
          messageId = "9F6F7661-8FA1-30CA-3F04-23CD91C1AF90"
          method = "GET"
          recordHeaders = true
          timestamp = 0
          timeToLive = 0
          url = "http://localhost:9080/lcdsTestWebService/DocTypeTestService_schema1.xsd"
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- GET : http://localhost:9080/lcdsTestWebService/DocTypeTestService_schema1.xsd
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Cookie in request: domain = 'localhost', path = '/', client name = 'JSESSIONID', endpoint name = 'JSESSIONID', value = '0000Ii8aRUEKjvhE38Bd_dyW3jw:-1
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: Accept : */*
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: Accept-Language : en-US
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: Referer : http://localhost:9080/lcdsTestWebService/SampleWebService.swf/[[DYNAMIC]]/6
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: x-flash-version : 10,1,102,64
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: Content-Type : application/xml
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: User-Agent : Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 1.1.4322; MS-RTC LM 8; SLCC1; MS-RTC S; USPortal)
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: Cache-Control : no-cache
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Begin GET request --
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- End GET request --
    [2/14/11 16:23:20:191 IST] 0000002d FfdcProvider  I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\IBM\WebSphere\Appserver\profiles\AppSrv04\logs\ffdc\server1_1aaf1aaf_11.02.14_16.23.19 .98114899428566798599.txt com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest 573
    [2/14/11 16:23:20:391 IST] 0000002c SystemOut     O [LCDS]Serializing AMFX/HTTP response
    Version: 3
      (Message #0 targetURI=/onStatus, responseURI=)
        (Typed Object #0 'flex.messaging.messages.ErrorMessage')
          body = null
          messageId = "A568F5E1-EF0D-DCBC-6AB1-912C2FEAACB2"
          extendedData = null
          clientId = "A568DF0F-A60A-1473-CDAB-707E4A185812"
          headers = (Object #1)
            DSStatusCode = 404
          rootCause = null
          destination = "testWebservice"
          faultCode = "Server.Proxy.Request.Failed"
          faultString = "HTTP/1.1 404 Not Found"
          faultDetail = "HTTP/1.1 404 Not Found"
          timeToLive = 0.0
          timestamp = 1.297680800351E12
          correlationId = "9F6F7661-8FA1-30CA-3F04-23CD91C1AF90"

    I received a workaround by an internal message.
    The how to guide is :
    -Download the wsdl file (with bindings, not the one from ESR)
    -Correct it in order that the schema corresponds to the answer (remove minOccurs or other things like this)
    -Deploy the wsdl file on you a server (java web project for exemple). you can deploy on your local
    -Create a new logicial destination that point to the wsdl file modified
    -Change the metadata destination in your web dynpro project for the corresponding model and keep the execution desitnation as before.
    Then the received data is check by the metadata logical destination but the data is retrieved from the correct server.

  • Web Service Call : Java Error

    Hi
    I'm trying to consume a web service with the simple code
    below, but it always gives me an error.
    The code:
    <cfscript>
    ws = CreateObject("webservice", "
    http://ws.neteven.com/NWS");
    </cfscript>
    The error :
    11. public examples.NWS.EchoResponseType
    echo(examples.NWS.EchoRequestType parameters) throws
    java.rmi.RemoteException;
    ^--------------^
    *** Semantic Error: Type "examples.NWS.EchoResponseType" was
    not found.
    11. public examples.NWS.EchoResponseType
    echo(examples.NWS.EchoRequestType parameters) throws
    java.rmi.RemoteException;
    ^-------------^
    *** Semantic Error: Type "examples.NWS.EchoRequestType" was
    not found.
    12. public examples.NWS.InventoryItemsType
    getItems(examples.NWS.GetItemsRequestType parameters) throws
    java.rmi.RemoteException;
    ^----------------^
    *** Semantic Error: Type "examples.NWS.InventoryItemsType"
    was not found.
    12. public examples.NWS.InventoryItemsType
    getItems(examples.NWS.GetItemsRequestType parameters) throws
    java....
    server-error: true
    Content-Language: fr-FR
    Content-Type: text/html; charset=UTF-8
    I'm using CF 8,0,1,195765 (latests hotfixes) and I even tried
    on a CF 7 server, it gives me the same error.
    Do you think that the web service has a problem or is it
    coldfusion related ?
    - I tried with an internet browser (IE, Firefox) the web
    service answers correct XML
    - I tried a call using PHP and it works like a charm.
    Somme suggestions ?

    obouillaud wrote:
    > Hi
    >
    > I'm trying to consume a web service with the simple code
    below, but it always
    > gives me an error.
    I think you have 2 options here:
    - save the wsdl file locally, fix the local wsdl file to make
    it work
    with Axis - the library that is used by ColdFusion (might
    take some time
    and requires some experience with wsdl);
    - use CFHTTP to communicate directly with the web service
    (using XML).
    You can watch the communication of the PHP client to see the
    structure
    of the requests/responses.
    In my opinion no 2 is easier.
    Mack

  • Inbound Web Service calls get error "Reliable Messaging(RM) configured, but no Message ID..."

    We are setting up the Communication System and Communication Arrangement "Business Partner Replication from SAP ERP".
    For protocol, we are using Type 5 - WebServices.  See screenshot below.
    Our error is that when we send webservice calls to our C4C, we get messages:
    1.  Web service response is "Web service processing error; more details in the web service error log on provider side"
    2.  Backend error messages is "SRT: Plain SOAP: Reliable messaging (RM) configured, but no Messaging ID and no WSRM assertion provided"
    We have sent messages from PI and also independently thru soapUI.
    So it seems the C4C in the backend is stuck on the RM messaging protocol setting.
    Appreciate any and all assistance.

    Hi Tim,
    For this error following are the places that needs to be checked.
    1. In C4C the protocol defined in the Communication System should be 5 - Web Services
    2. In C4C Communication Arrangement should have the right protocol selected
    3. In PI make sure the Communication Channel's are created using provided Communication Channel Templates as part of the standard PI content.
    In other words just follow the integration guide available in SMP to avoid such errors.
    Hope this helps.
    Thanks,
    Prakash

  • Populating a dropdown list box from from a RFC/web service call

    Hello All,
      So far all the samples that I have on dropdown listboxes pulls their values from the Simple Type Enumeration table. Howvever, If i will like to populate the dropdown listbox with returned values from an imported model, does anyone have any documentation on how this may be achieved ? Thank you.
    from
    Kwok Wei

    Hi
    If u want to populate the Values in DropDown from RFC call u can use the following code
    IWDAttributeInfo  ainfo = wdContext.node<<NodeName>>().getNodeInfo().getAttribute("<<Value Attrib that is bounfd to the Drop Down>>");
         ISimpleTypeModifiable st = aiinfo.getModifiableSimpleType();
         IModifiableSimpleValueSet vs = st.getSVServices().getModifiableSimpleValueSet();
         for(int i=0;i<wdContext.node<<Ur Table Parameter Name>>().size();i++)
              vs.put(Key,Value}
    The Above code is for Drop Down by Key
    For Drop Down By Index
    for(int i=0;i<wdContext.node<<Table Paramter>>().size();i++)
              IPrivateFinancingPlanView.I<<NodeElement>> prodElement = wdContext.create<<Node Element>>();
              prodElement.set<<Value Attribute Bound to drop Down>>(wdContext.node<<Table Paramter>>().get<<Table Paramter>>(i).getDescription());
              <<Parent Node Element>>.node<<Child Node>>().addElement(<<Child Node Element>>);
    Wishes
    Krishna kanth
    Message was edited by: krishna  kanth

  • Errors when processing web service call

    Hello Experts,
    Based on a requirement, I got a URL based on WSDL, using which I created a Consumer Proxy in SAP.
    I created a Logical Port in SOA Manager with type selected as 'WSDL'.
    When I'm trying to execute the proxy class to call the webservice using the logical port through SE80  it is throwing an error log as stated below.
    1) SOAP:14 Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/
    2)Error when processing Web service call
    3)Error when calling SOAP Runtime functions: Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/
    Kindly help me out.
    Thanks,
    Vamshi

    Hi,
    Check Anton's reply in this thread: External WS Consumption Issue
    Also refer the below doc which may help you: Consume an External Web Service in a Nutshell with Good Old ABAP
    Calling WebServices from ABAP via HTTPS
    Regards,
    Kiran

  • How to call an ABAP based web service from a web page (form)

    Hi,
    I am trying to figure out how I can call my own developed ABAP based web service. I was able to successfully test it in the WS navigator and am now wondering what I need to do to embed the service call in a plain simply web page (form). Basically I'd like to create a web form allowing to specify the parameters and with a 'Submit' button pass the parameters to the web service and launch it.
    Is this possible or do I need some kind of SDK to accomplish this?
    Thanks for any hints and tips.
    Wolfgang

    Hi,
    refer the following link and this is for cosuming the web service form Web dynpro Java
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50d70a19-45a3-2b10-bba0-807d819daf46&overridelayout=true
    and please go throught the following link if you want to cosume it through web dynpro abap and find the answer given by the Moderator Thomas Jung
    regards
    Manohar

  • ABAP source code to connect to third party systems using web service calls?

    Hi all,
              can any one provide an example ABAP source code to connect to third party systems using web service calls? The base system is CRM.

    Do you want to call a web service in a remote system, or do you want to provide a web service?
    If you want to call a web service you should create a proxy object via SE80. Open your development package, right click on the tree entry and choose: Create -> Enterprise Service / Web Service -> Proxy Object and provide the needed information (including the WSDL description file). You may then use the proxy object to call the web service (if the connection and everything else works right).
    See [http://help.sap.com/saphelp_nw04/helpdata/en/9b/dad1ae3908ee44a5caf57e10918be9/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/9b/dad1ae3908ee44a5caf57e10918be9/content.htm]

  • C# Calling SAP RFC/Web Service Failure

    Hi SAP Experts,
    I am facing this problem. When an external system is calling my SAP RFC/Web Service, the external system(which is not SAP) is not getting the correct value. But when I test the RFC in SAP GUI It is working correctly. When I test between SAP server A & SAP Server B it is working correctly which is the recepient server is getting the correct value. What might cause this problem ? Urget help is needed here. Thanks.

    Hi Hadi,
    U need to expose a custom RFC as a Web Service. This is a simple web service that returns Customer Data (from kna1) based on the Customer ID which we provide as input.
    In the RFC, U have to declare an internal table (G_RET) in the tables section of the RFC.
    Now, U have to test the web service, U can see a check box with NULL option beside the G_RET.
    cheers,
    Hema.

  • ABAP proxy web service authentication

    Hi,
    We are trying to develop an ABAP proxy for a web service call on ECC6 (SP14).
    The web service (provided by another SAP system) uses basic authentication. The proxy has been created as has the logical endpoint/service (via SOAMANAGER). In the endpoint I have provided the credentials for authentication.
    Manually testing the proxy via SE80 works fine.
    When I try and call the proxy via a program it prompts for user id/password. If provided the call works.
    DATA: ZPROXY   type REF TO ZMY_PROXY,
              INPUT       type ZMY_PROXY_REQUEST,
              OUTPUT    type ZMY_PROXY_RESPONSE.
      TRY.
         CREATE OBJECT ZPROXY.
         CATCH CX_AI_SYSTEM_FAULT.
      ENDTRY.
      TRY.
         CALL METHOD ZPROXY->LIST_USERS
           EXPORTING
             INPUT  = INPUT
           IMPORTING
             OUTPUT = OUTPUT.
         CATCH CX_AI_SYSTEM_FAULT .
         CATCH CX_AI_APPLICATION_FAULT .
      ENDTRY.
    My expectation is that the proxy would derive the credentials from the logical endpoint.
    Am I missing something?
    Thanks in advance.

    Hi Olivier,
    Yes - the consumer system is ABAP Netweaver 7.0.
    It has SP14. The webservice provider system is running at the same level.
    The webservice provider was created using the wizard to convert an RFC enabled function module. I then used SOAMANAGER to created the provider endpoint. On the consumer side it was the same - wizard to create the proxy & then SOAMANAGER for the endpoint.
    I checked the services on the provider system & the service indicated was activated already - which was expected as the web service call itself works fine.
    /default_host/sap/bc/srt/rfc/sap/<webservice>/<client>/<method>/<binding>
    Any other suggestions?
    Thanks again,
    Tim
    Edited by: Tim Brown on Mar 10, 2009 10:58 PM

  • Connect Java programs to ABAP generated Web Services

    Hi everybody again!
    This time I write looking for code examples about connecting my java programs in Netweaver to Abap generated web services.
    Could anyone send me any example, please?
    Thanks in advance again!
    Alberto.

    Hi,
    I'm also looking for code examples about connecting Java programs to ABAP generated Webservices... could you, please, send it to me ?
    actually, I need to call bapi from a java Web site.
    (as an SOAP request ...)
    is it better to <b>generate webser</b>vices from the Bapi then call it,
    Or shall i keep the Bapi, and call it from a java webservices based on <b>JCO/RFC</b> calls ...
    what's more efficient ?
    java webservices + Jco calls to the bapi ?
    or direct calls to generated abap webservices ?
    thanks
    saber

  • X.509 Web Service Authentication for ABAP AS Web Service Interaction

    We are trying to use X.509 web service authentication with SAP Web AS ABAP between 2 different SAP installations. Company 1 is trying to consume a web service set up by Company 2.
    Company 1 has installed Company 2's public key, generated the client proxy using Company 2's WSDL and created a corresponding lpconfig entry.
    Then company 2 has set up the profile parameter ICM/HTTPS/verify_client to accept certificates and imported Company 1's SLL client certificate and mapped the user in USREXTID.  Note that Company 1 uses self-signed certificates, so it does not have a root certificate, which is what the documentation says should be imported into the PSE instead of the SSL client certificate.
    When Company 1 tries the web service call, it receives a request to authenticate the web service from Company 2. (basic authentication logon screen, even though the web service configuration is set to X.509 Client Certificate.
    Should this work or is there a problem because Company 1 uses self-signed certificates or is there something else we are missing?

    >
    Connie Begovich wrote:
    > We are trying to use X.509 web service authentication with SAP Web AS ABAP between 2 different SAP installations. Company 1 is trying to consume a web service set up by Company 2.
    >
    > Company 1 has installed Company 2's public key, generated the client proxy using Company 2's WSDL and created a corresponding lpconfig entry.
    >
    > Then company 2 has set up the profile parameter ICM/HTTPS/verify_client to accept certificates and imported Company 1's SLL client certificate and mapped the user in USREXTID.  Note that Company 1 uses self-signed certificates, so it does not have a root certificate, which is what the documentation says should be imported into the PSE instead of the SSL client certificate.
    >
    > When Company 1 tries the web service call, it receives a request to authenticate the web service from Company 2. (basic authentication logon screen, even though the web service configuration is set to X.509 Client Certificate.
    >
    > Should this work or is there a problem because Company 1 uses self-signed certificates or is there something else we are missing?
    I think that the problem is in Service Authentication (in transaction sicf). You have to consume web-service, transmitting user-password for access.

  • Occasional SOAP errors when making web service calls from C#

    We have a C# application making web service calls to RFCs (non-NCO, SAP 4.7, WAS 6.40) and occasionally getting the following error:
    The 'SOAP-ENV:Envelope' start tag on line '1' does not match the end tag of 'SOAP-ENV:Envel'. Line 1, position 34560.
    This error happens randomly and can occur, not occur, and occur again for the exact same call (same data, same web service call).  I anticipate that we might have a missing configuration on one of our application servers, but don't know where to tell BASIS to look.  Any ideas or other help would be appreciated.

    That's going to be difficult.  The random nature of the error makes it impossible to reproduce (so far) in our Development and Test environments.  Since the error is coming from the SAP side, I believe I would need a sniffer on each production application server in order to try to catch this and that would result in some very large log files.  Is there any log file or other SAP transaction that might already be capturing these failures?

  • Web-service call from Apache to Glassfish

    I have written static HTML pages which run on Apache server and I give a web-service call which is present on Glassfish server.
    I want to calculate the number of rows present in the selected Excel file. For this, I make a web-service call through Ajax; where I send a file object to it, which then, reads the file and returns the number of rows present in that file.
    But, I could not make an Ajax POST for a file object.
    For Example, I have an HTML form containing a file object (for which I have to calculate the number of rows). I have to send this form to the web-service for processing the file.
    My form is like this:
    <form id="myForm" action="http://www.mydomain.com:8080/myApp/jersey/myClass/calculateRows" method="POST" enctype="multipart/form-data" accept-charset="utf-8" name="submitForm">
            input id ="workbook" name="workbook" type="hidden"/>
    </form>
    For this I used:
        $("#myForm").ajaxSubmit(function(noOfRows)
           alert(noOfRows);
    In the web-service, I gave:
        @Path('myClass')
        public class myClass
          @POST
          @Path("calculateRows")
          public Response calculateNoOfRows(@Context HttpServletRequest request)
            int noOfRows = 0;
            String wbk = request.getParameter("workbook");
            for (Part part : request.getParts())
                 if (!part.getName().equalsIgnoreCase("workbook"))
                      //code to calculate number of rows
                      noOfRows = 100;   (for example)
            ResponseBuilder builder = null;
            builder = Response.ok(String.valueOf(noOfRows));
            builder.header("Access-Control-Allow-Origin", "*");
            builder.header("Access-Control-Allow-Methods","POST");
            builder.header("Allow-Control-Allow-Headers", "Origin,Connection,Keep-Alive,Accept-Encoding,Accept-Charset,Accept,User-Agent,Host,X-Requested-With");
            return builder.build();
    In the Firebug, the above given URL does not appear in the Console tab.
    And, in the Net tab, I see like this:
        OPTIONS http://www.mydomain.com:8080/myApp/jersey/myClass/calculateRows
    I am not able to resolve the problem. Can anyone help?

    Hi,
    I would recommend implementing the web-service callout logic in a custom cachestore/cacheloader (see the CacheLoader.load() method) and configure your rwbm with your cachestore implementation.
    While subclassing RWBM and overriding functionality can be done, the CacheLoader interface is the intended method designed to accomplish this kind of task. RWBM internal implementations may perform other internal bookkeeping and may vary over time.
    See also:
    http://download.oracle.com/otn_hosted_doc/coherence/351/com/tangosol/net/cache/CacheLoader.html
    http://wiki.tangosol.com/display/COH35UG/cachestore-scheme
    http://wiki.tangosol.com/display/COH35UG/Sample+CacheStores
    thanks,
    -Rob

  • Web Service call from VB Macros & web service for logging in

    Hi All,
    Is it possible to call a SAP web services from a Visual Basic macro?
    1) If yes, how to do so?
    2) Is there a standard web service through which we can login to an R/3 system?
    3) Once we are logged in can we call other web services?
    Thanks in advance!!
    Regards,
    Saurabh

    Hi Saurabh,
    ad 1) It is possible. In this Excel to SAP R/3 I posted some examples on how to call webservices from within Office 2003 applications.
    The posts are very detailed, I just didn't create a blog since feedback to scripting languages blogs is so low that I didn't find it worth to carefully author a blog.
    ad 2) Web service calls are stateless so you have to authenticate each time you call a service. Either by single sign on mechanisms or by simply hardcoding the credentials.
    hope it helps,
    anton

Maybe you are looking for

  • Unable to  view the data in infoobject

    Hi all, I am loading the data to info-obj this is the first time i am working on BI 7. everything is successfull. i had created the transformation and dtp successfully n in monitor screen its showing that the data has been loaded sucessfully. the thi

  • How can i run Lion, SL and Bootcamp on the same disk?

    Hi everyone, I have an i7 Imac with Lion preinstalled so first of all i installed windows with bootcamp and then for many reason i had to make a new partition with Snow Leopard using target disk mode from a mbp. Now the problem is that i can't see an

  • EDI ALE Payment advice inbound

    Hi Experts,             Could any body help me how to do edi inbound report . The relation is between company vendors bank. When the bank giveing payments to the vendors the company has to receive conformations that should be updated in sap tables in

  • Help debugging SQL Developer extension

    Folks, JDeveloper 11.1.1.1.0 SQL Developer 2.1.1.64 I am working on enhancing an existing extension and am having problems. I have a Menu.java class that does this: package org.GeoRaptor; public class Menu implements Addin {     public void initializ

  • HP Photosmart 7520 unable to connect to Web Services

    Hi I am having the same Web service error. Could you Pls send me details how to fix. I have tried all that has been suggested. Thanks