Dynamic determination of schema document

Hi:
I attempting to parse an XML file using the SAX parser with SCHEMA_VALIDATION set. I found that I have to explicitly pass the location and name of the *.xsd file and generate a XMLSchema object using XSDBuilder. Is there anyway that I can dynamically build the XMLSchema object witout having to explicitly pass the *.xsd file? In other words, is there a way that the XML document can tell me what *,xsd file to parse against?

You can use xsi:schemaLocation attribute in the instance to indicate the schema. See the sample code.

Similar Messages

  • Dynamic Survey determination in Complaint document

    Hi,
    Is it possible to dynamically determine a survey in a service complaint transaction type? There is the standard determination configuration rules but I'm looking for a dynamic way to select a survey based on for example the user status in a transaction. Is there a BADI or something like that?
    Thanks,
    Patrick

    Hi Patrick,
    have you found a solution for this issue? I'm having the same requirement and am currently looking for a solution.
    Thank you!
    Regards
    Marko

  • Error during material determination for sales document item - RRB

    Hi
    Iam getting following error when trying to create a billing request using DP91.
    Error during material determination for sales document item 40001560/000010
    Message no. AD01155
    Diagnosis
    An error occured during material determination for a dynamic item.
    System Response
    The system cannot perform the function.
    Procedure
    Check in the profile being used whether its characteristic allows the assignment of a material to each dynamic item.
    I have checked my DIP profile using ODP02 there are no errors in it, I have created a Setid and assigned it to costing element in selection criteria and material determination criteria.
    Material origin is checked in costing tab in material master.
    Appreciate help in resolving this.
    thanks,
    Vaishnavi

    Hi Vaishnavi
    The error which you are getting is related to costing.So kindly reach your FI Consultant
    please check the following links which may help you.Also check the link that has been provided my Lakshmipathi
    ERROR AT DP90  TRANSACTION
    Regards
    Srinath

  • Is there a way to dynamically determine the number of out parameters for a server side procedure?

    Hi,
    Below is a helper method used for calling a server-side function which loops through the inbound bindVars parameter to populate the function's IN parameters. Is there a way to dynamically determine the IN/OUT parameters based on the procedure name in the stmt parameter? No members of the CallableStatement class seemed promising, but the getParameterMetaData() method in the PreparedStatement class seemed like it could be helpful lead. However, I have not found any detailed descriptions (yet) of how to use it.
    protected Object callStoredFunction(int sqlReturnType, String stmt,
      Object[] bindVars) {
      CallableStatement st = null;
      try {
      // 1. Create a JDBC CallabledStatement 
      st = getDBTransaction().createCallableStatement(
      "begin ? := "+stmt+";end;",0);
      // 2. Register the first bind variable for the return value
      st.registerOutParameter(1, sqlReturnType);
      if (bindVars != null) {
      // 3. Loop over values for the bind variables passed in, if any
      for (int z = 0; z < bindVars.length; z++) {
      // 4. Set the value of user-supplied bind vars in the stmt
      st.setObject(z + 2, bindVars[z]);
      // 5. Set the value of user-supplied bind vars in the stmt
      st.executeUpdate();
      // 6. Return the value of the first bind variable
      return st.getObject(1);
      catch (SQLException e) {
      throw new JboException(e);
      finally {
      if (st != null) {
      try {
      // 7. Close the statement
      st.close();
      catch (SQLException e) {}
    James

    The PreparedStatement.getParameterMetaData() object is exactly what you need for this task.
    Once you have the ParameterMetaData you can ask it how many parameters are present and which mode they are. The parameters are numbered from 1 to n and you can use ParameterMetaData.getParameterMode(1); to get the mode of the 1st parameter. The modes are defined as static values in the ParameterMetaData object. Check out the doc at http://docs.oracle.com/javase/7/docs/api/java/sql/ParameterMetaData.html
    Timo

  • How to dynamically determine Receivers within BPM

    I’m trying to design a way to determine my receivers within my BPM process during runtime.   My Scenario is as follows:
    SAP IDOC
        V
      XI
                 XI uses JAVA Mapping MT1 to determine vendors and if customer receives PIDX
                             JAVA Mapping MT2 to creates the PIDX output file if required
      V
    SENDs to required Vendor (PIDX if required otherwise email)
    My problem is how to dynamically determine the appropriate receiving vendor for my PIDX.
    I can not use the condition editor on the standard Receiver Determination because the output message (PIDX) doesn't have specific enough information to determine the vendor.
    Other than the customer number there are no other values and we don't want to use customer number because each vendor can have multiple customer numbers (hundreds).
    I've tried various attempts but none seem to work.  This could also be because I have limited knowledge of BPMs and this is my first complex development.  Below are the different attempts I've made at dynamically determining the receiver.  Any input would be appreciated.
    Receiver Scenario 1 
      I developed an interface mapping with MT1 as input and the SAP Receiver Determination as output.  The problem is for me to use this, the interface mapping had to reference the PIDX output (MT2 instead of MT1) which has no data that I can use to determine the receiver.
    Receiver Scenario 2
    I added a receiver step right before my send step and used the receiver list.  This appears to send the PIDX to everyone in the list and there is no way to evaluate or eliminate a name from the list. 
    Receiver Scenario 3
    I created a context object in the Integration Builder and assigned it to a field in MT1.  I then added a switch step with a branch for each vendor.  Within each specific branch there is a Send step that has the context object name I created in the "Send Context" field.  However, on the configuration side I’m unable to access the context object which I created on the design side.  Whenever I open the condition editor and select the radiobutton for "Context Object" the list  does not include the context object I created in the Integration Builder.

    Hi,
    Try using the enhaced receiver determination concept.
    Maybe based on certain field values you can write a UDF which calculates the receiver.
    Try this Blog out
    Link : [
    http://help.sap.com/saphelp_nw70/helpdata/en/43/a5f2066340332de10000000a11466f/frameset.htm]
    Regards,
    Abhishek
    Award if helpful.

  • Customer/vendor could not be determined for intermediate document

    does any one know how to solve this problem, i got this error for an inbound idoc 820 (remmitance advice).

    Hi rob,
    Message no. FD017
    This is the following message:
    Customer/vendor could not be determined for intermediate document 0000000000047039
    Message no. FD017
    Diagnosis
    Several procedures are defined for determining the partner (customer or vendor):
    1. The customer/vendor can send his/her account number (the account
       number in our system) in the address segment.
    2. The customer/vendor can send his/her account number (our number at
       the customer or vendor) in the address segment.
    3. Only the name in the address segment clearly identifies the
       customer/vendor. In this case you can create an allocation within
       intermediate document customizing (IDoc base -> Control -> Forward
       inbound).
    4. The customer/vendor is determined using his/her bank details (only
       for the "INVOIC01" intermediate document type).
    5. The customer/vendor is taken from the control record of the
       intermediate document.
    For 1.-3.: One of the address segments with the partner functions
               "II", "RS", "SU", 'SE' ("INV_ID01"), or "RS" or
               "LF" ("INVOIC01") is used for determining the
               customer/vendor.
    Procedure
    Create the customer or vendor within Financial Accounting or maintain his/her bank details.
    Create customer         - Proceed
    Customer bank details   - Proceed
    Create vendor           - Proceed
    Vendor bank details     - Proceed
    If the customer/vendor can only be determined using his/her name, create a record within intermediate document customizing with
    logical address = name, application = "FI" or "MM" and physical target in the SAP system = customer number/vendor number.
    Proceed

  • Problem with loading images dynamically in a pdf document

    dear,
         I am using live cycle designer and i need to load image from a url dynamically in to the document.For this case i placed an imagefield on my document and i wrote javascript to load image in the form:ready event.
    My script for that was
    imagefield.value.image.href="url".Actually i saw an imagefield in my document but it doesnt carry any image.Please help me to rectify this problem......

    If you save your form as Static PDF, it works.
    But most of the time we need the Dynamic XML form. So, I am also stuggling with this issue.
    Nith

  • Dynamic determination of IDOC

    Hi,
    I have a scenario wherein based on a particular KeyField, I need to dynamically determine the IDOC.  I haven't used BPM before and I don't know whether this scenario is feasible using BPM.
    My approach is creating a data type for the source which will have common fields of both the IDOCs.  This data type will hold the data sent by the sender system.  Thereafter, I would create 2 message interfaces for each IDOC.  Subsequent Message Mapping and Interface Mapping will also be done.  In BPM based on the KeyField, I will determine the Message Interface dynamically and post it to the target system.
    Kindly advice whether the above approach is right.  Is this scenario possible without using BPM.  If so, kindly suggest how to proceed.
    Thanks in advance.
    Bala

    Hi Kumar,
    Is there any possibilites of coming both the idoc data ? If so, you can do as following.
    As you are going to execute 1:N mapping, it is required to have BPM here. (and one more reason is Idoc adapter is not a part of J2EE engine.)
    <i>Is this scenario possible without using BPM</i>
    >>>If it is not of above case, then you can make use of conditional Interface determination , you can try without BPM
    Hope this helps,
    Regards,
    Moorthy

  • Erro in XML validation with schema document.

    Hi Friends,
    I am trying to validate XML file as per the defined schema document through JAXB parser.
    Following is my xml. schema and java class code.
    XML File_
    <?xml version="1.0"?>
    <notify xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="NotificationDetailsSchema.xsd">
    <notification>
    <alertname>Alert1</alertname>
    <deletable>Y</deletable>
    <descurl>Alert1URL</descurl>
    </notification>
    <notification>
    <alertname>Alert2</alertname>
    <deletable>Y</deletable>
    <descurl>Alert2URL</descurl>
    </notification>
    </notify>
    Schema file_
    <?xml version="1.0" encoding="windows-1252"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    <xsd:element name="notify">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="notification" maxOccurs="unbounded">
    <xsd:complexType mixed="true">
    <xsd:sequence>
    <xsd:element name="alertname">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:minLength value="1"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="deletable">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:pattern value="Y|N"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="descurl">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:minLength value="1"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    Java Class_
    SAXSource source = new SAXSource (xmlInputSource);
    SchemaFactory sf = SchemaFactory.newInstance (XMLConstants.W3C_XML_SCHEMA_NS_URI);
    Schema schema = sf.newSchema(schemaFileObj);
    Validator validator = schema.newValidator ();
    validator.setErrorHandler (new ParserErrorHandler());
    validator.validate (source);
    I tried to execute the validation through stand along java class and it worked correctly.
    However when I added this class into my Fusion web application, I am getting following error.
    org.xml.sax.SAXParseException: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'USAVER'.*
    Can you please help me to figure out this problem?

    Ruskin wrote:
    However there needs to be the possibility of a totally random mix of three different types of elements in a parent element. Can you take your example to make it more clear? Does all three elements mutually exclusive?

  • Output Determination for Sales Documents distributed by fax/email

    Hi Experts,
    Can some one guide me regarding what all need to be done to maintain output determination for Sales documents to be distributed by fax/email.
    Thanks in advance...
    Regards
    Vamsi

    Hi Vamsi,
    Please go through this link it will help you about Output process in SAP R/3 for sales documents and billing documents.
    http://help.sap.com/saphelp_47x200/helpdata/en/93/745017546011d1a7020000e829fd11/frameset.htm
    I hope it will help you,
    Regards,
    Murali.

  • User exit for partner determination in delivery document

    Hi,
    Can some one suggest an user exit for partner determination in delivery document.
    We have a scenario of excluding certain plants for few of the partner determinations in delivery document..
    Please suggest
    Regards
    Ravikumar

    Hello Ravikumar,
    Please ceck if these userexits help
    Normally there are 2 userexits available in function kopierte_partner_pruefen:
       - EXIT_SAPLV09A_003
       - EXIT_SAPLV09A_004
    Regards,
    Raghavendra YN

  • Text determination for billing document

    pls tell me text determination for billing document.pls tell me each and every phace for text determination for header billing document;
    when am creting text determination am getting so many problems,
    i saw in text form in header text,but i didnot get it in  out put invoice,
    pl send each and every phace of the text determinations,if possible send screen shots for text determination,
    its urjunt

    hi
    1) T-code VOTXN ,for the text object Customer>Sales and distribution>click the Text types-->create your 4 digit Text ID
    2) Come back to initial screen of this t-code and again selct the text object Customer-->Sales and distribution and click change. Select the text procedure and double click on the Text IDs in text procedure.Here you create a new sequence and select the 4 digit Text ID you have created initialy.
    3)Asign the Text procedure which you have selected in step2 and double click onText procedure assignment .Here you assign the Text ID to the Customer Accout group.
    4) In the customer master,sales area tab>Extras menu>text,Select the text which you have created now and enter text into it. and save.
    The text which you have created now ,can be used for multiple purpose(Ex.sales order,delivery,billing,pricing,inforecords,legal). for example in this case, You just want to display this text during sales order processing,then proceed as follows,
    5)T-code VOTXN ,for the text object Sales document>Header>click the Text types-->create your 4 digit Text ID.
    6) Come back to initial screen of this t-code and again selct the text object Sales document-->Header and click change. Select the access sequence and create new acces sequence(This access sequence is similar to that of in Pricing).Select this acces sequence and double click the access sequence for text ids.Here in the first column this is Serial no.second column is text object(This is the area from which text has to be refer.In our case we have created the customer Text object for sales and distribution area,so i.e.KNVV) and the next column is Text id,This is the id which we have created at customer text object for sales and distribution initialy,at step 1). The next column is partner function,it will identify for which parter this text has defined.Next 2columns are Languages(if you want to define for all langugage or specififed language),next column is for specified languge for partner function.if you have any requirement to be fulfilled you can create those requirements in the next columns or else leave blank,save and come back to text proceudure.id.
    7)Select the text procedure(for ex.01-Sales header) and double click on the Text IDs in text procedure.Create new entries Fill in the sequence and the text id which we have created for sales document-header(in step 5).There is a small check box in the 3rd column which is used whether the text should be refered or copied(this is used if you want to modify the text during the sales order processing or just dispaly the originail text as it is),next column is whether the text should be displayed while creating or it is not obligatory, last column is acces s sequce,this is nothign but the sequence which we have created in step 6) and save.
    8)in the final step assign the text proceudre id to the particualre sales order.

  • Dynamic Determination of Logical System- Transaction Launcher

    Hi Friends,
    Need your suggestions and inputs on how to dynamically determine the logical system for the transaction launcher.
    Our system landscape is like this.
    We have one CRM connected to mulitple back end ECC Boxes. Currently, we have created separate TL's fo VA01 ( One each for each back end application ) and provided the same in logical link and controlled the same via business role.
    For eg: BROLE1 - LLINK1  having (TL VA01) pointing to ECC System1
    BROLE2 - LLINK2  having (TL VA01) pointing to ECC System2
    BROLE3 - LLINK3  having (TL VA01) pointing to ECC System3
    The above procedure is working fine. But what we are trying to do is, when the end user clicks on the TL link in WEB UI, Based on the assigned business role, it should dynamically determine the back end system and open the VA01 Screen in that system.
    I have activated indicator multiple systems in the customizing of mapped logical systems.
    In debugging mode, i have tried changing the LOGSYS value @ run time in the handler class.
    Any pointers on this would be of great help.
    Thanks,
    Madhu

    Hi,
    Try this..
    To maintain RFC destination in each business role, there is one functional profile  "ERP_SALES_ORDER" where in you can maintain respective rfc destination.
    Create z-functional profile's for "ERP_SALES_ORDER" and maintain corresponding rfc destination, later assign these erp sales order function profiles in respective business roles trxn (CRMC_UI_PROFILE).
    you can use the below statement to fetch rfc destination whcih assigned to business role via functional profile.
      If gv_rfc is INITIAL.
        gv_rfc = CL_CRM_IC_ERP_SERVICE=>GS_ERPPROF-RFCDEST.
      ENDIF.
    Hope this helps.
    Cheers,
    Sumit Mittal

  • Customs document type cannot be determined for external document Type F8

    Hello Experts
    Need help
    I am trying to transfer F8 to GTS 10.1 and getting following message in GTS  Transfer log for export:
    Customs document type cannot be determined for external document Type F8
    New implementation
    GTS 10.1 running with SP 12
    ECC side Plug-In settings are fine. BAdi is Active.(There is no document mapping for F8/CUSDEC as it is not required in 10.1)
    GTS side configurations are also fine. Checked several times by 4 sets of eyes!!
    (Include general settings configurations, Customs communication configurations:)
    (Defining technical medium, conditions/output parameters, defining messages for communication process,
    defining determination for activity sequence and control settings for communication process)
    Despite this I am not able to trnasfer F8 successfully
    Can someone throw some light on this issue please?
    Keshav Murthy
    [email protected]

    Hi Dhilipan
    Here we go..
    You asked me to check the following
    Please check following things
    1) Legal regulation is activated. - Yes Activated
    2) Process template assigned to the legal regulation - Yes Assigned
    3) Activity Sequence determination - Yes done
    4) Open the activity sequence in under Control settings for Communication processes and check if there is a document type assigned to it. Table- /SAPSLL/TLEPAF - Yes done.
    It is really puzzling.
    Thanks
    Keshav Murthy

  • Pricing procedure determination for complaint document with reference to billing

    Hello Guys,
    I am configuring complaint process for project purpose and I got stuck. I need to change the pricing procedure which is determined for complaint
    document . Right now the pricing procedure is copied from Billing Document for which complaint refers to.
    I am searching a place in configuration where I could change the pricing procedure determination for complaint document with reference to billing doc.
    Could you please advise where I can find it ?
    Thank you in advance!
    Br,
    Frederic

    Hello Frederic,
    I would check the following in SPRO:
    - CRM
    - Basic Functions
    - Pricing
    - Pricing in the Business Transaction
    - Determine Pricing Procedures
    Here the pricing procedure depends on sales organization, division, distribution channel, document pricing procedure and and customer pricing procdure.
    Best regards,
    Thomas Wagner

Maybe you are looking for

  • "Only Part I" for Goods receipt (MIGO) in excise invoice tab

    Dear Gurus, I have configured a material with all CIN configuration setting, while doing goods receipt for that material I want to capture excise invoice through excise invoice tab, for which i need to select " Only Part 1" in the invoice tab. But in

  • Help with a flash html inserting into DW

    Hello, I have created a enquiry section in flash for one of my html DW pages for my site. When I publish the flash doc ti creates a html page (Contact.html). When I open the flash html page in DW or upload it to my server, everything works fine. I re

  • Apple tv freezes for milliseconds when I stream a movie.

    Hi all, I have bought an streaming package from the internet for some turkish football. When I am streaming this from my macbook air to my apple tv 3th generation (also updated to 5.1) it freezes for milliseconds and it keeps going on. Downgraden is

  • Query slow when executing using prepared statement compared to sqlDeveloper

    Oracle version is 10.2.0.1.0. I have got a query which when submitted from java code using prepared statement and parameter substitutions, takes more than 20 seconds to give results. I can see this SELECT sql sitting there when I run Monitor Sessions

  • Problem with 'order by' and comparison operator with varchar2 field

    I have a problem with the following sql query (field1 is varchar2): SELECT field1 FROM tablename WHERE field1 > 'AA10BB' ORDER BY field1 The contents of field1 is: AA10BB AA10-10BB AA10-12BB The sql query without the WHERE clause sorts field1 this wa