SOAP - XI - RFC - Input parameters

Hi,
I'm trying to develop a SOAP-> XI -> RFC scenario and now i'm facing the following problem: I'm invoking a RFC through XI but for some reason the input parameters are not reaching the RFC. The RFC response indicates that RFC is not receiving any input parameters from XI.
I've already cleared the cache and de-activate and re-activate the rfc receiver communication channel.
Anyone has a hint for this?
Thanks in advance,
Pedro Leal

Pedro,
Few weeks before I also faced the same issue. I'm not sure if it's bug or not.  You are directly sending the RFC structure using SOAP client  is it? I mean your Inbound and Outbound Structure are same.
Do onething, just do the mapping and check, It will work for sure!
raj.

Similar Messages

  • Map XML content to RFC Input parameters

    Hello
    I have a MII Transaction that opens a xml file from a legacy system, this transaction have to handle the content of that XML file and fill out the BAPI_PRODORDCONF_CREATE_TT parameters.
    My transaction is already reading the XML using Reference Document Loader, this feature is working properly.
    The question is... what are the different ways to map my XML to the RFC parameters ?

    This blog might help:
    http://scn.sap.com/people/padmavathi.rao2/blog/2009/03/14/mii-odyssey-how-to-pass-table-structure-to-bapi-using-jco-interface-of-erp-system-interface-in-mii-12
    Regards,
    Christian

  • Java dynpro - bind a table in the input parameters of an RFC

    Hi ,
      JAVA Webdynpro -  I have to bind a table in the input parameters of an RFC.
      The code below is taking in the N num of rows but is repeating the last row N times and
    sending it to the RFC.
    Ztsgt_Pos_Name postionTab = new Ztsgt_Pos_Name();     
    Ztsgt_Pos_Name.Ztsgt_Pos_Name_List positionTabList = new Ztsgt_Pos_Name.Ztsgt_Pos_Name_List();
             int e = wdContext.nodePosition_List_update().size();
             int f = 0;
             for( f = 0; f < e; f = f+1 )
                  wdContext.nodePosition_List_update().setLeadSelection( f );
         postionTab.setPosition_Nm( wdContext.nodePosition_List_update().currentPosition_List_updateElement().getPosition_Nm() );
                   postionTab.setPosition_Dscr( wdContext.nodePosition_List_update().getPosition_List_updateElementAt(f).getPosition_Dscr());
                  positionTabList.addZtsgt_Pos_Name( postionTab );
                   UpdatePosit.setPosition_List( positionTabList );
            try {
                  wdContext.nodeZRFC_3318_UPDATE_VEND_POSITION().nodePosition_List5().invalidate();
                   wdContext.currentZRFC_3318_UPDATE_VEND_POSITIONElement().modelObject().execute();     
                   wdContext.nodeOutput5().invalidate();
              } catch (WDDynamicRFCExecuteException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();

    Hi SMI SAP Project Team,
    Please check the code for loop and lead selection when you setting the values.
    for( f = 0; f < e; f++)
    Refer to below documents:
    initializing AbstractList Model in Custom Controller
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/761eba66-0401-0010-b982-d5f5bd9e8f90?quicklink=index&overridelayout=true
    Hope it will helps
    Regards
    Arun

  • Invoke RFC function without input parameters

    Is it possible to invoke RFC function that doesn't have input parameters? It returns all data from reference.

    Hi Denis,
    pls keep in mind that no reference parameter is allowed in RFC, you have to check that "Pass Value" flag.
    Thanks
    Luis

  • Rfc return values that do not match input parameters

    Hi, all.
    We have File-RFC-File scenario in PI7.1
    Here we have OM with request-response mappings, RFC, where we have request-response structures... Standart.
    We have RFC channel and Receiver Agreement...
    But when we start it.. We can send any request - RFC return the same response. And we found that this response is the same response, that we have when test Functional Module in SE37. When we change input parameters in SE37 we have another response - response when we run it from XI with another request!.
    Why RFC doesn't react on input parameters?
    Thanks!

    Is your RFC receiver pointing to the correct system?
    Yes, it's fine. RFC works and return request from tables that defined in output parameters of Functional Module. But values of these output parameters correspond not for request parameters of RFC, but for parameters that we set in SE37.
    Maybe it is ABAP issue, i don't know.. Maybe problem in Functional Module.
    Request:
      <?xml version="1.0" encoding="UTF-8" ?>
    <ns1:ZO_FM_GTM xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
      <PA_BEGDA>20120201</PA_BEGDA>
      <PA_ENDDA>20120129</PA_ENDDA>
      <PA_VIEW>1</PA_VIEW>
    <PA_WERKS>
      <WERKS>0010</WERKS>
      </PA_WERKS>
      <RB_STATUS>1</RB_STATUS>
      <REPORT_XLS>1</REPORT_XLS>
      <RP_BEGDA>20120201</RP_BEGDA>
      <RP_ENDDA>20120207</RP_ENDDA>
      <ZOT_PM100049_REPORT />
      </ns1:ZO_FM_GTM>
    response:
      <?xml version="1.0" encoding="UTF-8" ?>
    <ns1:MT_Response_Report xmlns:ns1="http:/Reports_GTM_49">
    <PM_HEADER>
      <STARTDATE>2011-01-01</STARTDATE>
      <ENDDATE>2011-01-15</ENDDATE>
      <REPTYPE>2</REPTYPE>
      <PA_JOBT1 />
      <PA_NAME1 />
    <STARTDATE>2011-01-01</STARTDATE>
      <ENDDATE>2011-01-15</ENDDATE>
      <REPTYPE>2</REPTYPE>
    Edited by: ChizzT on Feb 7, 2012 11:11 AM
    Edited by: ChizzT on Feb 7, 2012 11:16 AM

  • SOAP to rfc XMLSPY not conneting with PI 7.1 server

    hiii gurus,
    I am trying soap to rfc scenario. i have completed all the steps.. generated the webservice . now i am testing from XMLSPY
    when im sending the soap request to sender i m getting the following error.
    "<?xml version="1.0"?>
    <!-- see the documentation -->
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP:Body>
    <SOAP:Fault>
         <faultcode>SOAP:Server</faultcode>
         <faultstring>Server Error</faultstring>
         <detail>
         <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
         <context>XIAdapter</context>
         <code>ADAPTER.JAVA_EXCEPTION</code>
         <text><![CDATA["
    "com.sap.aii.af.lib.mp.module.ModuleException: either no channelID specified or no channel found for the specified party, service, and channel name, MessageServlet(Version $Id: //tc/xpi.adapters/NW07_04_REL/src/_soap_application_web_module/webm/api/com/sap/aii/adapter/soap/web/MessageServlet.java#1 $)
    The Channel has been configured correctly.. i dont know what is the problem... In some conversion i saw something like the userid which im giving should have the role as SAP_XI_APPL_SERV_USER. when i checked it not assigned .. so i assigned manually. but still the same problem exits..
    please help me experts.
    Regards,
    Balaji
    Edited by: Balaji Pichaimuthu on Sep 2, 2009 5:20 PM
    Edited by: Balaji Pichaimuthu on Sep 2, 2009 5:21 PM

    <?xml version="1.0" encoding="UTF-8" ?>
    - <wsdl:definitions name="aryan_soap_rfc_mi" targetNamespace="http://aryansoap2rfc" xmlns:p1="http://aryansoap2rfc" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
      <wsdl:documentation />
    - <wsdl:types>
    - <xsd:schema targetNamespace="http://aryansoap2rfc" xmlns="http://aryansoap2rfc" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <xsd:element name="aryan_req_soap_mt" type="file_req_soap_dt" />
      <xsd:element name="aryan_soap_rfc_mt" type="file_res_soap_rfc_dt" />
    - <xsd:complexType name="file_req_soap_dt">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/VersionID">5bf85d84978d11deab10001422b066ca</xsd:appinfo>
      </xsd:annotation>
    - <xsd:sequence>
      <xsd:element name="company_code" type="xsd:string" />
      </xsd:sequence>
      </xsd:complexType>
    - <xsd:complexType name="file_res_soap_rfc_dt">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/VersionID">811a2213978d11dec05a001422b066ca</xsd:appinfo>
      </xsd:annotation>
    - <xsd:sequence>
      <xsd:element name="company_code" type="xsd:string" />
      <xsd:element name="company_name" type="xsd:string" />
      <xsd:element name="city" type="xsd:string" />
      <xsd:element name="Country" type="xsd:string" />
      <xsd:element name="Language" type="xsd:string" />
      </xsd:sequence>
      </xsd:complexType>
      </xsd:schema>
      </wsdl:types>
    - <wsdl:message name="aryan_req_soap_mt">
      <wsdl:documentation />
      <wsdl:part name="aryan_req_soap_mt" element="p1:aryan_req_soap_mt" />
      </wsdl:message>
    - <wsdl:message name="aryan_soap_rfc_mt">
      <wsdl:documentation />
      <wsdl:part name="aryan_soap_rfc_mt" element="p1:aryan_soap_rfc_mt" />
      </wsdl:message>
    - <wsdl:portType name="aryan_soap_rfc_mi">
      <wsdl:documentation />
    - <wsdl:operation name="aryan_soap_rfc_mi">
      <wsdl:input message="p1:aryan_req_soap_mt" />
      <wsdl:output message="p1:aryan_soap_rfc_mt" />
      </wsdl:operation>
      </wsdl:portType>
    - <wsdl:binding name="aryan_soap_rfc_miBinding" type="p1:aryan_soap_rfc_mi">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
    - <wsdl:operation name="aryan_soap_rfc_mi">
      <soap:operation soapAction="http://sap.com/xi/WebService/soap1.1" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
    - <wsdl:input>
      <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
      </wsdl:input>
    - <wsdl:output>
      <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>
    - <wsdl:service name="aryan_soap_rfc_miService">
    - <wsdl:port name="aryan_soap_rfc_miPort" binding="p1:aryan_soap_rfc_miBinding">
      <soap:address location="http://pi71server1.domain.com:50200/XISOAPAdapter/MessageServlet?channel=:aryan_3rdparty_recv_BS:aryam_soap_rfc_sender_cc&version=3.0&Sender.Service=aryan_3rdparty_recv_BS&Interface=http%3A%2F%2Faryansoap2rfc%5Earyan_soap_rfc_sender_cc" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
      </wsdl:port>
      </wsdl:service>
      </wsdl:definitions>
    Hii im trying to post my content of my wsdl file.. but in preview mode its loook like above ... actually thats my wsdl file only.. but when post a message .. it coming like above string.
    Edited by: Balaji Pichaimuthu on Sep 3, 2009 7:02 AM

  • SOAP --XI ---RFC or Java Client  Proxy

    Hello Gurus,
    Need your adivce for a scenario in XI
    Scenario ---  To implement XI with SAP SCEM(Supply Chain Event Management).
    Client is sending data from Web Portal (JSP Page) and wants to integrate with R/3.
    (Request from client and Response from R/3 shown again at browser )
    Web Portal (JSP Page) is on server A and XI on server B
    Queries ---
    1. Can I use Java Client Proxy Approach ---  proxy --- xi -- rfc approach 
    If  Web Portal (JSP page) is working in server A and XI in server B then can I call xi server from jsp page by passing xi server credential (username,password,bus service) and using sync Interface I can show result back to browser.
    2. For SOAP Approach  -- SOAP -- XI --- RFC approach 
    Suppose I need to send two parameters from my Web Portal (JSP page) to xi to R/3 and it will return some result.
    Concept of Webservice --- any application (like BAPI ) exposed.
    a. Pls tell me all the steps required for IR and ID
    b.How can I invoke that generated webservice from my jsp page --- so that my request parameters values go to xi from my jsp page and to R/3 and then result from R/3 to xi and to my jsp page.
    Regards

    I think second approach is more appropriate ie. SOAP>XI>RFC
    Some of the blogs you can refer:
    /people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
    Sender SOAP adapter config: http://help.sap.com/saphelp_nw04s/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm
    Hope this helps,
    Rgds,
    Moorthy

  • SOAP to RFC sync scenario

    Hello members:
    we have a business scenario: SOAP to RFC sync
    an external system (ABC) sends documentrequest thru XI SOAP adapter and makes an RFC call to a BAPI and gets back the resposne to the ABC system.we are handling 4 mappings. 1. request msg to a common msg 2. common msg to BAPI request3.bapi response to common msg 4. common msg to response msg(which is same as the req msg)
    i have the request msg and common msg as external definitions. I did the following steps and wanted to
    know if i am right.
    1. there are no data type & msg type needed for this
    2.  4 msg interfaces
    i)  document o/b sysnc
    ii) document i/b sync
    iii)common o/b sync
    iiii) common i/b sync
    3) 4 mappings
    i) document to common
    ii) common to bapi req
    iii) bapi resp to common
    iiii) common to req/response
    4) 3 intf mappings
    source intf**********               target intf
    i)document o/b               common o/b uses mapping #1
    ii)request :common i/b         bapi i/b  uses mapping #2
       resposne:bapi i/b           common i/b uses mapping #3
    iii) common i/b             document i/b uses mapping # 4
    pls provide your inputs if my approach is rite? do i need to have 4 msg intefaces?has any made mappings where 4 mappings are involved ( without BPM)
    Thanks in advance

    Hi,
    I think you will have only 2 interfaces.
    1. Sync Outbound interface (SOAP Structure)
        Two message types Req and Res
    2. Sync Inbound interface (RFC Structure)
        Two message types Req and Res
    Then two message mapping
    1. SOAP Request  to RFC Request
    2. RFC Response to SOAP Response
    and finally one Interface mapping.
    Thanks,
    Prakash

  • Soap to rfc..dont get a response...

    I have pasted below the complete steps for doing a rfc to soap synchronous scenario...i can send a message and update a custom table in r/3 with the data..however i am not getting any response, i have tested the rfc on r/3 and checked the table ..which is getting updated correctly....any ideas on whats wrong .....More important areas are the items in bold.....which is where i think smthing is not ok.
    Design..part........
    Create data types
    1) testScore_dt
    2) testScoreResponse_dt.
    Create 2 msg types for 1 and 2...
    testScore_MT
    testScoreResponse_MT
    Create Message Interface
    MI_TestScore
    Outbound Message Interface Synchronous
    input Message is testScore_MT
    outputMessage is testScoreResponse_MT
    Import rfc
    ZRfc_testScore
    ZRfc_testScoreResponse
    Create 2 message mappings
    MM_Input_001
    Source is testScore_MT
    Destination is ZRfc_testScore
    MM_Output_001
    Source is ZRfc_testScoreResponse
    Destinatio is testScoreResponse_MT
    Create 1 Interface mapping
    Source is MI_testSource
    Target is ZRfc_testScore
    Request tab...choose mapping as MM_Input_001
    Response tab ...choose mapping as MM_Output_001
    Configuration...
    Create Sender_BService
    Create Reciever_BService
    Create Communication channels
    CC_Sender_Soap
    default namespace
    <b>interface  = MI_TestScore</b>
    CC_Reciever_RFC
    <b>Do Reciever determination
    Sender = Sender_BService
    Interface == ?</b>
    Do Interface determination
    <b>Need Help ?</b>
    Sender Agreement
    Sender CC
    Reciever Agreement
    Reciever CC
    Regards
    Ravi Raman

    Ravi,
    I believe your scenario is SOAP to RFC, coz the title and your explanation misleading to different scenarios.
    >>>>>>>Do Reciever determination
    Sender = Sender_BService
    Interface == ?
    Do Interface determination
    Need Help ?
    <b>Receiver Determinatio</b>
    Sender = Sender_BService
    Interface =MI_TestScore
    Configured receivers = Receiver_BService
    <b>Interface Determinatio</b>
    Sender = Sender_BService
    Outbound Interface =MI_TestScore
    Inbound Interface = RFC
    Mapping = Interface mapping.
    raj.

  • Passing input parameters to the method call in ADF task flow.

    Hi,
    I have the following use case:
    There is a task flow with 2 jspx pages. In the first page I have 2 input search parameters and search button. the search button calls the webservice data control execute (GET_ACCOUNTOperation) method .
    Displaying the search results in the same page is not a problem , but my requirement is that the search results are to be displayed in the second page in tabular form.
    To achieve this, I dragged the execute method as the method call in the task flow and specified the input parameters for the method call (right click and add parameters) . I am getting the following exception :
    javax.el.MethodNotFoundException: Method not found: GET_ACCOUNTOperation.execute(java.lang.String, java.lang.String)
         at com.sun.el.util.ReflectionUtil.getMethod(Unknown Source)
         at com.sun.el.parser.AstValue.getMethodInfo(Unknown Source)
         at com.sun.el.MethodExpressionImpl.getMethodInfo(Unknown Source)
         at oracle.adf.controller.internal.util.ELInterfaceImpl.getReturnType(ELInterfaceImpl.java:214)
         at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(MethodCallActivityLogic.java:135)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:1035)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:921)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:820)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:552)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:148)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:109)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:78)
         at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:43)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:889)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:379)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    even though the execute method is there and the service is up and running. I am not sure whether its the correct way of doing it. Please shed some light on how to solve this use case
    Some additional info:
    Under the data controls pallete, the GET_ACCOUNTOperation method has a parameters section , which has "part" (java.lang.Object) as
    the input parameter.
    Regards,
    Rampal

    Hi,
    thanks for the quick turn-around. Jdev version that i am using is Studio Edition Version 11.1.1.6.0. And i am using SOAP. Isnt there a way without using a backing bean? I am planning to use it as a portlet. Would'nt creating a backing bean cause a problem in that case?? Also i am confused here . The method that i am dragging is GET_ACCOUNTOperation(Object). I tried passing the hashmap . It gave the following exception :
    javax.el.MethodNotFoundException: Method not found: GET_ACCOUNTOperation.execute(java.util.HashMap)
    Rampal

  • SOAP TO RFC . Issue in updating the fields in BAPI

    Hi XI experts ,
    This is SOAP TO RFC scenario .
    THe Source is an dtd (create PO ) schema provided by external partners .
    The Target is : BAPI : BAPI_PO_CREATE1 , a standard BAPI used to craete PO in SAP .
    I need to map the below source fields to the  BAPI Fields:
    1.     ReferenceTypeCodedOther>ACC_STR</ReferenceTypeCodedOther> then <RefNum>1000</RefNum> ->
    2.     <ReferenceTypeCodedOther>G_L_ACCT</ReferenceTypeCodedOther> then RefNum>5423100</RefNum>
    3.     <ReferenceTypeCodedOther>COST_CTR</ReferenceTypeCodedOther> then <RefNum>313</RefNum>
    4.     ReferenceTypeCoded>AccountCategory</ReferenceTypeCoded> then <RefNum>ZNCC</RefNum>
    -I have changed the context of the   "Ref NUm" to -ReferenceTypeCoded ( Main Node)
    2. Lets take an example of 2 :"
    iF <ReferenceTypeCodedOther> = G_L_ACCT , Then RefNum (5423100<)  -> Leading zero function (to make it 10 digits) =GL_ACCOUNT field of BAPI
    here i have used , if ReferenceTypeCodedOther  <> SUBSTRING (0-7)  <Equals text> G_L_ACCT then  <RefNum>  LeadingZero Function with constant 10 -> GL_ACCOUNT (Field of BAPI)
    Similarly this logic should get applied for all the other 3 conditions
    But when i used the substring , it throws an error : Error:
    Exception:[java.lang.StringIndexOutOfBoundsException: String index out of range: 1] in class com.sap.aii.mappingtool.flib3.TextFunctions method substring[,
    I tried creating this Java function: to extract the string, but this throws an error of Java container
    Does anyone hve a simple solution . Appreciate your input.
    Thanks,
    Vara
    public String Extract_String(String a,Container container){
       //write your code here
    // u201Cau201D  is your input that is reference field
    boolean flag=false;
    if ((a.contains("ACC_STR"))|| (a.contains("G_L_ACCT "))||( a.contains("COST_CTR"))||(a.contains("AccountCategory")))
    flag = true;
    return flag;
    with Java.lang.*   --- > imported  , but this throws an error

    Hi Baskar ,
    The Issue got solved , I used a  java function : To exatrct the string comparing the : String value which I provide as Input .
    This function inturn consolidate the value and will pass it one context (PO_ACCOUNT ) of BAPI .
    I used this code by changing the  CONSTANT :(VALUE ) for other 3 conditions  mentioned in my query.
    Java function:
    For Cost Centre(COST_CTR) field of BAPI:
    public void Value(String[] a,String[] b,ResultList result,Container container){
    Java IMport :java.lang.String;java.lang.*;
    //write your code here
    int m= a.length;
    int n= b.length;
    String s="COST_CTR";
    for (int i=0; i<m ;i++)
    if(a<i>.equals(s))
    result.addValue(b<i>);

  • Soap to rfc error when testing through xml spy

    Dear All,
    I have a scenario soap-to-rfc.I have created a WSDL using the url as :
    http://<myhost>:<port>/XISOAPAdapter/MessageServlet?channel=:BS_Legacy:CC_SOAP_Sender
    I am getting an error as mentioned below when i tried to test it throug altova xml spy.
    HTTP error: could not POSt file '/XISOAPAdapter/MessageServlet?channel=:BS_Legacy:CC_SOAP_Sender' on server 'host:port' (407).
    I have gone through all the related threads which are already there in forum but still couldn't find what's going wrong.
    I modified soap:address tag in wsdl
    <soap:address location="http://covmdvpi01.mhril.com:50000/XISOAPAdapter/MessageServlet?channel=:BS_Legacy:CC_SOAP_Sender"
    Please suggest.
    Regards
    Kumar

    Hi ,
    Thanx for quick reply.
    I am using 7.3 and created wsdl in ID>Tools->Disply wsdl
    my sender business system : BS_Legacy
    sender channel : CC_SOAP_Sender
    my url
    http://<host>:50000/XISOAPAdapter/MessageServlet?channel=:BS_Legacy:CC_SOAP_Sender
    i have given my host name in the place of host.
    my scenario is synchronous and given qos as BE.
    Use this URL in soapui and check what you get...do u mean that u want me to test using soap ui?
    if so i have tested it in soapui also
    new soap ui project-->project name and Initial wsdl/wadl(i have selected wsdl file from system location where i saved it) ...created...given input parmeters then i clicked on Submit Request to Endpoint URL button.
    still couln'd see response.
    you can see below response what i've got in soapui
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
      <title>Error Report</title>
      <style>
        td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;}
        A:link
        A:visited
        A:active
      </style>
    </head>
    <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0">
      <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">
        <tr bgcolor="#FFFFFF">
          <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>  401   Unauthorized</b></font></td>
        </tr>
        <tr bgcolor="#3F73A3">
          <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td>
          <td height="23"><img width=1 height=1 border=0 alt=""></td>
          <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP NetWeaver Application Server </b></font></td>
        </tr>
        <tr bgcolor="#9DCDFD">
          <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td>
        </tr>
      </table>
      <br><br><br><br><br><br>
      <p><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>  Error: Unauthorized</b></font></p>
      <p><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><b>  <a href="https://wiki.sdn.sap.com/wiki/x/wIN3Cw">SAP Technology Troubleshooting Guide</a></b></font></p>
      <p><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><table>
        <tr>
          <td valign="top"><b> Details:</b></td>
          <td valign="top"><PRE>No details available.</PRE></td>
        </tr>
      </table></font></p>
    </body>
    </html>
    Thanks
    Kumar

  • Can XMLBeans validate Web Services Input Parameters in Weblogic8.1?

    Hi,
    I am very new to XMLBeans and Web Services. From my understanding, schemas can be used to validate an xml document.
    However, I would like to find out:
    1. Can I validate my web service inputs againest the generated XMLBeans objects/schema, in Weblogic 8.1?
    2. How do I validate my input parameters from the web service? My input parameters include enumerations of valid values and also numeric values.
    Fyi, the XMLBeans objects were generated from the schema which i created, and my web service is using these XMLBeans objects.
    Great Thanks!

    This is crazy! Someone must have come across this problem
    before.
    I've simplified my question and used a much simplier method
    from the web service, here goes!
    ::: Here's my code :::
    <cfscript>
    webservice = CreateObject("webservice","dummy?wsdl");
    webservice.doBuildQuoteForItinerary("123456,"en_US","","1113");
    </cfscript>
    ::: Here's the error :::
    Could not perform web service invocation
    "doBuildQuoteForItinerary".
    Here is the fault returned when invoking the web service
    operation:<br> <pre>AxisFault faultCode: {
    http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode: faultString:
    com.raileurope.web.ngserver.InternalErrorException:
    java.lang.NullPointerException faultActor: faultNode: faultDetail:
    http://xml.apache.org/axis/}hostname:dummy
    </pre>
    There must be something wrong with how I'm passing in the
    parameters. Is it the null string??!?!?
    Any help would be great!

  • Can XMLBeans validate Web Services Input Parameters?

    Hi,
    I am very new to XMLBeans and Web Services. From my understanding, schemas can be used to validate an xml document.
    However, I would like to find out:
    1. Can I validate my web service inputs againest the generated XMLBeans objects/schema?
    2. How do I validate my input parameters from the web service? My input parameters include enumerations of valid values and also numeric values.
    Fyi, the XMLBeans objects were generated from the schema which i created, and my web service is referencing/using these XMLBeans objects to package the results to the calling class/method.
    Great Thanks!

    This is crazy! Someone must have come across this problem
    before.
    I've simplified my question and used a much simplier method
    from the web service, here goes!
    ::: Here's my code :::
    <cfscript>
    webservice = CreateObject("webservice","dummy?wsdl");
    webservice.doBuildQuoteForItinerary("123456,"en_US","","1113");
    </cfscript>
    ::: Here's the error :::
    Could not perform web service invocation
    "doBuildQuoteForItinerary".
    Here is the fault returned when invoking the web service
    operation:<br> <pre>AxisFault faultCode: {
    http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode: faultString:
    com.raileurope.web.ngserver.InternalErrorException:
    java.lang.NullPointerException faultActor: faultNode: faultDetail:
    http://xml.apache.org/axis/}hostname:dummy
    </pre>
    There must be something wrong with how I'm passing in the
    parameters. Is it the null string??!?!?
    Any help would be great!

  • Error while creating a BO Universe (using IDT) on top of SAP HANA Calculation View with Input Parameters

    Hi All..
          We are trying to create a Universe (using IDT-Version4.0) on top of the HANA Calculation view. The Calculation view has 4 input parameters, So
    in Universe side we have created the respective prompts. For the creation of derived table we have used the following code
    SELECT *
    FROM "_SYS_BIC"."<schema_name>.<CV_Calculation_View_test>"
    'PLACEHOLDER'=('$$IP_A$$','@Prompt(A)'),
    'PLACEHOLDER'=('$$IP_B$$','@Prompt(B)'),
    'PLACEHOLDER'=('$$IP_C$$','@Prompt(C)'),
    'PLACEHOLDER'=('$$IP_D$$','@Prompt(D)')
    While validating the above code we are getting an error.
    I have attached the snapshot of that error for your reference. Please find the attachment and help me in resolving it.
    Thanks in advance.

    Hello George,
    I don't have any personalization set on the info space. Also I am using mapped Account in BI to connect to HANA. The confusing part is that it is able to validate the infospace with the input parameters and index it. However query does not return any results. I even tried running the same query which explorer sends to HANA in the SQL editor and there too the same results,the query does not return anything. The model does return data when I do a data preview and if accessed from other tools like AAO.
    Also when I use SSO connection to HANA, indexing of the infospace fails. Where can I see the error log?
    Thanks,

Maybe you are looking for

  • Problem with font-family name

    I have adobe Univers LT Std font purchased and installed on my PC, but there is a problem when I try to use it on the webpage. The font has otf format. I noticed that Chrome and FireFox use different font-family names for this font. FireFox 25.0 seem

  • 10.2.0.1.0A AWM  calculations not  correct

    I use 10.1.0.4 olap database, i have started using 10.2.0.1.0A AWM . Dimensions are created as follows 1) create one level (this is from database table that contains 2 columns a)id b)id_desc ) 2) create hierarchy -->level based and choose the above l

  • Need to Increase the width of the selection screen

    Existing scenario is that the selection screen contains 4 parameters in a row and it has to be increased to 6.When i try to include the 2 parameters on the same row it says that the max width is 79.I can try and reduce the width of each parameter but

  • Downloaded applications won't open

    I recently upgraded my eMac OS X 10.2.8 to 10.3.4 and everything seemed to be working really well like my other 10.3.4... I downloaded some applications, MSN Messenger (6.0.4) and Google Earth, and they seemed to download as normal... but when I trie

  • MacBook pro will not play a commercial video dvd?

    My 17" MacBook Pro will not play a commercial movie DVD.  The computer appears to referance the disc 5 times then ejects the disc.  I have never played any video on this computer before and I have had the computer for 2 year. I can not get the settin