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

Similar Messages

  • 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.

  • Mapping SOAP response to RFC out parameters

    Hello
    I have RFC to SOAP (sync) scenario.
    The SOAP reponse from webservice is an embedded XML string (Result XML wrapped within Response XML; The result string from web service is an XML itself)
    How to achieve Message Mapping so that the fields in the result XML can be captured directly in to RFC output paramters?
    I have mapped Result XML string to RFC output thru User Defined Function. I have filtered xml tags in UDF but I do not wish to hard code the tags' filtering.
    Is there a better solution?
    Kindly advise.
    cheers
    Alkesh

    Hey Chris
    Here are the structure samples (source & target)
    The intention is to map <Elem1> & <Elem2> of each <Line> to RFC structure fields, 'Item1' & 'Item2'.
    The <Line> items can be multiple and for each Line one RFC strcuture 'Record' has to be created.
    *********source begin**
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
        <WSDLResponse xmlns="namespace123">
          <WSDLResult>xml_string</WSDLResult>
        </WSDLResponse>
      </soap:Body>
    </soap:Envelope>
    ...where the xml_string is as below (whole XML)-
    <?xml version =''1.0'' encoding=''utf-8'' ?>
       <Addr>
         <Result>
             <ErrorCode>0</ErrorCode>
             <ErrorDesc></ErrorDesc>
         </Result>
         <Return>
             <Line>
                 <Elem1>value1</Elem1>
                 <Elem2>value2</Elem2>
             </Line>
             <Line>
                  <Elem1>value3</Elem1>
                  <Elem2>value4</Elem2>
             </Line>
          </Return>
        </Addr>
    source end***
    The target structure is -
    target begin***
    - RFC strcture
        - Record
             - Item1
             - Item2
    source end***
    Apologies for the lengthy text but it is quite confusing
    What is the best way to achieve mapping?
    thx
    Alkesh

  • 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

  • How to map XML file to various of object in the RFC

    hello
    I recieve XML file (not devided to elements, but XML file)'
    and I would like to map it to a RFC that has various object.
    I there a way to do it?
    if it involve a java code, does any one has a written code example?
    THX
    Kfir

    thanks for the reply
    my source XML response will be looking something like this (it will be reponsed in a long string):
    <?xml version='1.0' encoding='UTF-8'?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
    <SOAP-ENV:Header>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <status>
    <retCode>00</retCode>
    <retCodeDesc>OK</retCodeDesc>
    <rRobjectId>09002347802d2981</rRobjectId>
    <rFileSize>7</rFileSize>
    <rTotalPages>1</rTotalPages>
    </status>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    my RFC is:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:sap-com:document:sap:rfc:functions" targetNamespace="urn:sap-com:document:sap:rfc:functions">
    <xsd:element name="ZRFC_SET_DOCUMENT.Response">
    <xsd:complexType>
    <xsd:all>
    <xsd:element name="RETCODE" type="xsd:string" minOccurs="0" />
    <xsd:element name="RETCODEDESC" type="xsd:string" minOccurs="0" />
    <xsd:element name="RFILESIZE" type="xsd:string" minOccurs="0" />
    <xsd:element name="RROJECTID" type="xsd:string" minOccurs="0" />
    <xsd:element name="RTOTALPAGES" type="xsd:string" minOccurs="0" />
    </xsd:all>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>

  • Adf Input Text with formatted xml Content

    Hi,
    I have a requirements where I get an xml content in one line
    as suppose <xml ><a><a1></a1><a2><a2></a><b></b></xml>
    I want this Input text to render it proper fromat like
    <xml >
        <a>
            <a1>
            </a1>
             <a2>
             <a2>
       </a>
       <b>
      </b>
    </xml>I tried to set wrap property to soft
    but it is not affecting
    Please tell me any component that will properly structure the input xml
    How can I do this.

    User, please tell us your jdev version!
    There is no component AFAIK. You may want to try the rich text editor, but if I remember it correct it won't do what you want.
    My solution would be to write a custom converter and format the code in the converter to show it then in the inputText.
    Timo

  • 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

  • Mapping of unkown XML Content

    First of all sorry for my bad English. 
    I have a mapping problem. I call a Biz Talk Web Service and the problem is that the response type is not well-defined. The relevant part of the WSDL is:
                   <xsd:complexType name="SqlXml" mixed="true">
                        <xsd:sequence>
                             <xsd:any/>
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:simpleType name="SqlResultCode">
    I have response messages like that:
      <ns0:P_VISH_MASTERResult>
        <ns1:SqlXml>
          <Value1>1</Value1>
          <Value2>1</Value2>
        </ns1:SqlXml>
        <ns1:SqlResultCode xsi:type="sqltypes:SqlResultCode">0</ns1:SqlResultCode>
      </ns0:P_VISH_MASTERResult>
    My target xsd  for the mapping of these response message is:
         <xsd:complexType name="DT_SAP_BTGINFO">
              <xsd:sequence>
                   <xsd:element name="SqlResultCode" type="xsd:int"/>
                   <xsd:element name="SqlXml" type="xsd:string" minOccurs="0"/>
                   </xsd:element>
              </xsd:sequence>
         </xsd:complexType>
    So I simply map SqlResultCode to SqlResultCode and SqlXml to sqlXml. When I test this mapping with simple Strings all works fine. When I load the example from above the mapping for SqlXml doesn't work. After Loading the example I get sub nodes Value1 and Value2 and there are naturally no mappings for these nodes.
    The question is: How can I map the unknown XML Content of the node SqlXml? Thanks for help!

    > Hi Gil,
    >
    > If the SqlXml always contains the two value nodes,
    > you need to modify your structure to have those two
    > nodes instead of just "Any". ....
    >
    > Hope this helps.
    >
    > Hart
    This was my first Idea because I know all possible fieldnames (value1, value2 …). I have to post a little bit more of my WSDL to explain my problem with this solution.
              <xsd:schema targetNamespace="http://LK-ZEHFGENIF1/VISH/VISH_WS" elementFormDefault="qualified" attributeFormDefault="qualified">
                   <xsd:import namespace="http://www.w3.org/2001/XMLSchema"/>
                   <xsd:import namespace="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types"/>
                   <xsd:import namespace="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types/SqlMessage"/>
                   <xsd:import namespace="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types/SqlResultStream"/>
                   <xsd:element name="P_VISH_MASTERResponse">
                        <xsd:complexType>
                             <xsd:sequence>
                                  <xsd:element minOccurs="1" maxOccurs="1" name="P_VISH_MASTERResult" type="sqlresultstream:SqlResultStream"/>
                             </xsd:sequence>
                        </xsd:complexType>
                   </xsd:element>
              </xsd:schema>
              <xsd:schema targetNamespace="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types/SqlResultStream" elementFormDefault="qualified" attributeFormDefault="qualified">
                   <xsd:import namespace="http://www.w3.org/2001/XMLSchema"/>
                   <xsd:import namespace="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types"/>
                   <xsd:import namespace="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types/SqlMessage"/>
                   <xsd:complexType name="SqlResultStream">
                        <xsd:choice minOccurs="1" maxOccurs="unbounded">
                             <xsd:element name="SqlRowSet" type="sqltypes:SqlRowSet"/>
                             <xsd:element name="SqlXml" type="sqltypes:SqlXml"/>
                             <xsd:element name="SqlMessage" type="sqlmessage:SqlMessage"/>
                             <xsd:element name="SqlResultCode" type="sqltypes:SqlResultCode"/>
                        </xsd:choice>
                   </xsd:complexType>
              </xsd:schema>
              <xsd:schema targetNamespace="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types" elementFormDefault="qualified" attributeFormDefault="qualified">
                   <xsd:import namespace="http://www.w3.org/2001/XMLSchema"/>
                   <xsd:complexType name="SqlXml" mixed="true">
                        <xsd:sequence>
                             <xsd:any/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:schema>
    So I modify the SqlXml definition in that way:
              <xsd:schema targetNamespace="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types" elementFormDefault="qualified" attributeFormDefault="qualified">
                   <xsd:import namespace="http://www.w3.org/2001/XMLSchema"/>
                   <xsd:complexType name="SqlXml" mixed="true">
                        <xsd:sequence>
                                <xsd:element name="Value1" type="xsd:string"/>
                             <xsd:element name="Value2" type="xsd:string"/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:schema>
    After importing this modified WSDL I use the message type P_VISH_MASTERResponse for mapping. When I generate a test message with the mapping tool all works fine. Here is an example for such a generated test message:
    <ns0:P_VISH_MASTERResponse xmlns:ns0="http://LK-ZEHFGENIF1/VISH/VISH_WS">
      <ns0:P_VISH_MASTERResult xmlns:ns1="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types/SqlResultStream">
        <ns1:SqlXml xmlns:ns2="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types">
          <ns2:Value1/>
          <ns2:Value2/>
        </ns1:SqlXml>
        <ns1:SqlResultCode />
      </ns0:P_VISH_MASTERResult>
    </ns0:P_VISH_MASTERResponse>
    But the response of the web service looks like that:
    <tns:P_VISH_MASTERResponse xmlns:tns="http://LK-ZEHFGENIF1/VISH/VISH_WS" xmlns:sqlresultstream="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types/SqlResultStream" xmlns:sqlmessage="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types/SqlMessage" xmlns:sqltypes="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <tns:P_VISH_MASTERResult xsi:type="sqlresultstream:SqlResultStream">
        <sqlresultstream:SqlXml xsi:type="sqltypes:SqlXml">
          <Value1>bla blabla</Value1>
          <Value2>bla blabla</Value2>
        </sqlresultstream:SqlXml>
        <sqlresultstream:SqlResultCode xsi:type="sqltypes:SqlResultCode">0</sqlresultstream:SqlResultCode>  </tns:P_VISH_MASTERResult>
    </tns:P_VISH_MASTERResponse>
    The difference is the namespace specification of Value 1 and Value 2. The response message of the web service hasn't this specification. That's the reason why the mapping of Value1 and Value2 won't work.

  • Oracle Workflow and mapping input parameters

    Hello all,
    I am trying to create a process flow in OWB that will be able to pass input parameters into each of my mappings. Each mapping contains 2 inputs, a start time and an end time.
    Does OWB's process flows allow for this or is there another approach that i should take in creating a workflow for these mappings?
    I am currently using 11gR2(11.2.0.1) and OWF v. 2.6.4.
    Thanks in advanced for any and all help,
    Randy

    Hi Randy,
    Open the process flow editor. In the structure window (menu view->structure), select the mapping activity and expand it to see its parameters. If you select a parameter, you can set its value or bind it to a variable in the property window.
    In the structure window you can also add process flow parameters to the start activity or define process flow variables.
    Regards,
    Carsten.

  • 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

  • Determine output filename based on input filename content with RFC lookup

    Hello Guys,
    I have this sitaution which needs your ideas/sugestion.
    1)  PI system picks up text file from FTP server folders.
    2)  Within PI system,  we need to dynamically determine output filename , logic to determine output filename will be :
              2a)  Read content of the input file particular line number  (Fixed)
              2b)  Pass the value got from step 2a)  to the Remote function module passing value read in step 2a) to get response
              2c)  Use response received from 2b) to construct output filename.
    Please let me know if you have any qeustions on my problem,  appreciate your ideas/suggestions.
    Thanks,
    Krishna

    Hello Priyanka,
    THanks for your response to my post.
    My input  TEXT filename has following contents
    :20:CHASGB2LXXX
    :25:24803501
    :28:11264/01
    :60F:C110921USD85410,88
    :61:110921C12307,00NTR NONREF//5311802
    :86:TR ?
    ?20IV.2000199238 FR.26.08.11 IV.2000198595FR.22.08.11
    ?23AZMAT20091123183
    Now  I would like to read second row of this TEXT file containing   ":25:24803501"   and would like to read only text
    24803501.
    Hope this additional info will provide me more info on my requirement.  Appreciate your response.
    Regards
    Krishna

  • How to map XML File input to VO (eventually to update table) upon fileupld

    Reqirement: I am downloading an XML File (basically name-value pair) from user using OAMessageFileUploadBean. I need to take this file and update to an existing record in the table (cs_incidents_all). XML File schema is well-known in advance.
    Approach: Don't know what is the best, but I'm thinking if there is an OAF way to map the XML File (Blobdomain) to VO and get the rowIMPL.getColumn1Value to fetch all the datavalues then loop thru all the columns (xml-tags) and finally call plsql APIs which will update/insert into table (cs_incidents_all)
    Is this possible in OAF? If so please shed some light as to how to map XML File to VO.
    If this is not possible then please let me know the other way. I have to do this inside the oaf.
    Thank you,

    Can someone please let me know if this is possible in OAF?

  • Creation of XML file from RFC

    Hi Experts,
    Iam getting input parameters to my RFC from JAVA.
    With that data i have to create XML file from my RFC, and i have to send that file to third party.
    Could you please tell me the total procedure.
    I know how to create RFC, i need how to create XML and how to send to third party.
    Thanks and regards,
    Kumar.

    HI,
    Follow the procedure :
    1.Get the schema by using add generated items according to particular RFC.
    2.Then  create the target schema.
    3.Create the map file and mapp both the schemas.
    After deployement follow the below steps
    1.In BizTalk administration console  create the send port to send the resulted XML to particular location.
    2.Then configure the receive port with values(pipeline=xmlreceive;clientid,userid,pwd,sap gateway host;sap gateway service to connect the sap.
    Now  start the application !
    Let me know if u still have a problem ?

  • Mapping Exception Issue with RFC LookUp

    Hi,
    My scenario is Idoc To file, in my idoc user who created a purchase order filed is not there but in xml file i want the user who create that PO, for this i am using RFC LooUp. I want the user who created a purchase order.
    Graphical Mapping looks like below.
    Belnr-->User Defined Function--
    >UserName
    Please find the code bloew:
    String DBTABLE = "EKKO";
    String lookUpField = "ERNAM";
    String WHERE_CLAUSE = " EBELN "" = "" ' "a" ' " ;
    JCO.Repository mRepository;
    JCO.Client mConnection = JCO.createClient(
                   "500",
                    "RFCUSER",
                   "abc1234",
                   "EN",
                   "cxylo06",
                   "05");
    // connect to SAP
    mConnection.connect();
    // create repository
    mRepository = new JCO.Repository( "GenericRFCMappingLookup", mConnection );
    // create function template to select data from any table
    JCO.Function function = null;
    IFunctionTemplate ft = mRepository.getFunctionTemplate("RFC_READ_TABLE");
    function = ft.getFunction();
    // Obtain parameter list for function
    JCO.ParameterList input = function.getImportParameterList();
    // Pass function parameters
    // set import parameters table name and RFC
    input.setValue( DBTABLE, "QUERY_TABLE");
    input.setValue( "," , "DELIMITER");
    //Fill the where clause of the table
    JCO.ParameterList tabInput = function.getTableParameterList();
    JCO.Table inputTable = tabInput.getTable("OPTIONS");
    inputTable.appendRow();
    inputTable.setValue(WHERE_CLAUSE,"TEXT");
    mConnection.execute( function );
    //Find the position of the field that has to be lookedUp
    JCO.Table lookupFieldPos = function.getTableParameterList().getTable("FIELDS");
    int pos = -1;
    for (int i = 0; i < lookupFieldPos.getNumRows(); i++)
              lookupFieldPos.setRow(i);
              if (lookupFieldPos.getString("FIELDNAME").equals(lookUpField))
              pos = i;
    //Get the exact lookupvalue from the position obtained above
    JCO.Table valueSet = function.getTableParameterList().getTable("DATA");
    valueSet.setRow(0);
    String resultSet = valueSet.getString("WA");
    result.addValue(resultSet);
    mConnection.disconnect();
    I am not aware of java coding so kindly make necessary  modifications.
    Kindly suggest what changes i need to do to execute perfectly.
    Your help will be greatly apprecited.
    Regards,
    Venkat

    Hi Venkat,
         If you use the JCO connection to get the value from RFC, it would be a problem in futherly like when you move this interface DEV to Q, then you need to change the connection parameters to establish the JCO connection.Same in Production environment too.It is not advisable to do JCO lookup. Go for RFC lookup as the link given by Farooq.
    Create Reciever RFC communication channel and take the XML signature of u r RFC by importing that RFC under imported objects.Create an UDF, for this see the sample code which is exisitng in document to pass the Export parameter to RFC.
    In this way u r RFC channel establish the connection to R3 and your RFC will execute and return the value.U just need to change the Reciever RFC channel parameters respective of environment.
    Cheers
    Veera

  • Catch all error information while validating xml content with xsd schema

    Hi experts,
    I created a java mapping to validating the input xml content with xsd schema (schema validation). What I want is to catch all error message to the xml not just the first error. I used SAXParser in sapxmltoolkit.jar to do the schema validation. The below is a part of my java mapping.
    XMLReader parser = XMLReaderFactory.createXMLReader("com.sap.engine.lib.xml.parser.SAXParser");
    parser.setFeature( "http://xml.org/sax/features/validation" ,  true);
    parser.setFeature( "http://apache.org/xml/features/validation/schema" , true);
    parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");          parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",this.getClass().getClassLoader().getResourceAsStream(schema)); // schema is my schema name
    parser.setErrorHandler(new ParseErrorHandler()); // ParseErrorHandler is my own ErrorHandler which extends DefaultHandler
    parser.parse(new InputSource(new ByteArrayInputStream(sinput.getBytes())));
    // In error handler, I comment all code so as not to throw any exception
    public class ParseErrorHandler extends DefaultHandler
         public void error(SAXParseException e) throws SAXException
              // sSystem.out.println("Error" + e.getMessage());
              // throw e;
         public void fatalError(SAXParseException e)
              // throw e;
              // System.out.println("SAP Fatal Error" + e.getMessage());
    Unfortunately the program always stopped while catching the first error. Check the below log.
    com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException:
    ERRORS :
    cvc-simple-type : information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' is not valid, because it's value does not satisfy the constraints of facet 'minLength' with value '1'.
    cvc-data : information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' is is not valid with respoct to the corresponding simple type definition.
    cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' is associated with invalid data.
    cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]' is not valid with respect to it's complex type definition..
    cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]' is not valid with respect to it's complex type definition..
    cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]' is not valid with respect to it's complex type definition..
    cvc-element : element information item '/:ShipNotice[1]/:Header[1]' is not valid with respect to it's complex type definition..
    cvc-element : element information item '/:ShipNotice[1]' is not valid with respect to it's complex type definition..
    -> com.sap.engine.lib.xml.parser.ParserException:
    I tried using Xerces and JAXP to do validation, the same error happened. I have no idea on this. Does xi has its own error handler logic? Is there any body can make me get out of this?
    Thanks.

    <h6>Hi experts,
    <h6>
    <h6>I created a java mapping to validating the input xml content with xsd schema (schema validation). What I want is to catch all <h6>error message to the xml not just the first error. I used SAXParser in sapxmltoolkit.jar to do the schema validation. The below <h6>is a part of my java mapping.
    <h6>XMLReader parser = XMLReaderFactory.createXMLReader("com.sap.engine.lib.xml.parser.SAXParser");
    <h6>parser.setFeature( "http://xml.org/sax/features/validation" ,  true);
    <h6>parser.setFeature( "http://apache.org/xml/features/validation/schema" , true);
    <h6>parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");          <h6>parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",this.getClass().getClassLoader().getResourceAsStream(schema)); <h6>// schema is my schema name
    <h6>parser.setErrorHandler(new ParseErrorHandler()); // ParseErrorHandler is my own ErrorHandler which extends Default Handler
    <h6>parser.parse(new InputSource(new ByteArrayInputStream(sinput.getBytes())));
    <h6>
    <h6>// In error handler, I comment all code so as not to throw any exception
    <h6>public class ParseErrorHandler extends DefaultHandler
    <h6>{
    <h6>     public void error(SAXParseException e) throws SAXException
    <h6>     {
    <h6>          // sSystem.out.println("Error" + e.getMessage());
    <h6>          // throw e;
    <h6>     }
    <h6>
    <h6>     public void fatalError(SAXParseException e)
    <h6>     {
    <h6>          // throw e;
    <h6>          // System.out.println("SAP Fatal Error" + e.getMessage());
    <h6>
    <h6>     }
    <h6>
    <h6>}
    <h6>
    <h6>Unfortunately the program always stopped while catching the first error. Check the below log.
    <h6>
    <h6>com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException:
    <h6>ERRORS :
    <h6>cvc-simple-type : information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' <h6>is not valid, because it's value does not satisfy the constraints of facet 'minLength' with value '1'.
    <h6>cvc-data : information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' <h6>is is not valid with respoct to the corresponding simple type definition.
    <h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' <h6>is associated with invalid data.
    <h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]' <h6>is not valid with respect to it's complex type definition..
    <h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]' <h6>is not valid with respect to it's complex type definition..
    <h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]' <h6>is not valid with respect to it's complex type definition..
    <h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]' <h6>is not valid with respect to it's complex type definition..
    <h6>cvc-element : element information item '/:ShipNotice[1]' is not valid with <h6>respect to it's complex type definition..
    <h6> -> com.sap.engine.lib.xml.parser.ParserException:
    <h6>
    <h6>
    <h6>I tried using Xerces and JAXP to do validation, the same error happened. I have no idea on this. Does xi has its own error <h6>handler logic? Is there any body can make me get out of this?
    <h6>Thanks.

Maybe you are looking for

  • Finding of materials in scheduling agreement with more than 150 lines

    Dear Experts, we are in need to find materials in scheduling agreement with more than 150 lines. In standard SAP, materials can be searched only based on item Nos. is there a way we can search by material in ME38. also we noticed that find icon is gr

  • Exchange Server 2010 - OWA, ECP, EWS not working

    Hello, I am evaluating exchange server 2010. I was able to install it, but now the admin websites will not render in IIS.  OWA, ECP, etc. I especially want Outlook Anywhere to work.  I can admin through the windows admin interface so that's not a con

  • Tabbed panels, load on click

    hello! i have a site with tabbed panels which include a bunch of accordions i wanted to know if i could change the js code so the tabbed panels contents would only load on click of the panel, studioormus.com i have seen that there is a way to do this

  • Accessing another computer remotely?

    I have Tiger OS and a friend of mine wants to show me how to use some office software on his Win(probably XP or 7) online/remote. So-can I get a synopsis of how to do this + how difficult it may be? My OS is pretty stock-my wife probably set up any f

  • Unable to print after software installation

    After installation of Adobe Photoshop CS2 and Bridge CS2, I could not print from Photoshop (cannot print file because there is not enough memory (ram)) and all other applications (error during printing). Reinstalling the programs and disinstalling th