Mapping from xsd to DB

Hi
just a small question
I would like to know if it's possible to
directly map on the DB the structure of a database model , departing from a schema defenition (.xsd).
In other words :
If there is a tool that can create tables, relationships, triggers , etc , from a schema defenition.
tx
Miguel

Thank you!
>
Mirza Baig wrote:
> For manipulating dates you will have to write an EJB function and using date formatter and then call it during input or output mapping, on why the date value is getting reduced by 1 day refer to the following sap note:
I've tried that by adding EJB function under Process Modelling->functions.
Building of the product works, but running the application I get the following errors:
Error occurs while the EJB Object Factory trying to resolve JNDI reference Reference Class Name: EJB Reference
Error occurs while the EJB Scheme Context Factory trying to resolve an EJB with scheme ejb:/interfaceName=xxx.com.leaverequestproduct.pr.pm.formatDate.impl.FormatDateImplBeanLocal. Check server's trace files for more details.
I don't know how to solve this.
Maybe you can help me on this...

Similar Messages

  • Mapping from xsd:date to ABAP dates (yyyy-mm-dd)

    Hi there,
    I've an automated activity that calls an ABAP web service in our SAP ERP.
    In my BPM data object I've a date in format xsd:date which should be passed as web service parameter.
    I've tried to use
    (Data_Object/Requestor/FromDate) cast as date
    but this causes an error when calling the web service.
    If I put a fix value like "2011-03-17" it works.
    How can I do the conversion?
    Another general question:
    From a practical point of view, isn't it better to call web services in the WebDynpro itself instead of creating an automated activity?
    An advantage would be the direct response of the web service which then could be handled in the user interface.

    Thank you!
    >
    Mirza Baig wrote:
    > For manipulating dates you will have to write an EJB function and using date formatter and then call it during input or output mapping, on why the date value is getting reduced by 1 day refer to the following sap note:
    I've tried that by adding EJB function under Process Modelling->functions.
    Building of the product works, but running the application I get the following errors:
    Error occurs while the EJB Object Factory trying to resolve JNDI reference Reference Class Name: EJB Reference
    Error occurs while the EJB Scheme Context Factory trying to resolve an EJB with scheme ejb:/interfaceName=xxx.com.leaverequestproduct.pr.pm.formatDate.impl.FormatDateImplBeanLocal. Check server's trace files for more details.
    I don't know how to solve this.
    Maybe you can help me on this...

  • How to map from XML(xsd) to Service

    Hi ,
    when i try to map from generated Xml to Service input i am getting below error like
    Failed to load "" type. 
     Please verify the fully-qualified type name is valid.
     Details: "".
     The type must derive from System.Web.Services.Protocols.SoapHttpClientProtocol.
     The type must have the attribute System.Web.Services.WebServiceBindingAttribute. 
    thanks in advance
    Chinna

    Hi Ram, thanks for ur reply,
    here i am sending multple fields data to <any> element typebecause of source will change every time in source data stucture type is 
    <root xmlns:apl='http://www.xxxx.in' xmlns:atl='http://www.xxxx.in/atl'>
        <product apl:entity='Product' apl:onNew='' apl:match='database.byId(id, Product)'>
            <id>id</id>
            <name>name</name>
            <external-id>externalId</external-id>
            <parent-id>string i:parent=database.byId(i, Product)</parent-id>
            <accounting-symbol>accountingSymbol</accounting-symbol>
            <long-name>alternativeName</long-name>
            <description>description</description>
            <is-closed>isClosed</is-closed>
            <accounting-code-purchase>accountingCodePurchase</accounting-code-purchase>
            <accounting-code-sale>accountingCodeSale</accounting-code-sale>
        </product>
        <apl:reply>
            <ImportAcknowledgement>
                <atl:repeat select="database.updatedItems">
                    <product>
                        <id>{id}</id>
                        <external-id>{item.externalId}</external-id>
                        <success>{successful}</success>
                        <message>{error}</message>
                    </product>
                </atl:repeat>
            </ImportAcknowledgement>
        </apl:reply>
    </root>
    in map i used masscopy functoid to map from Source Document root to destination Document root field.
    the above total data is sent to destination. destination structre is 
    RootNode
    TemplateId
    TemplateName
    Document
    <Any>
    after in logical ports i used to select existing ports and i deployed and in Bts admin i used SOAP adapter for sending the requset to Webservice . 
    here in this process iam getting the above error.
    thanks
    chinna

  • How to create an xml from xsd in abap

    HI Experts,
       i want to create an xml file from xsd and i want to validate an xml file against an xds.is this possible in abap.if it is possible can any one give me an sample code
    for this one.
    how to create an xml file in abap.i have seen so many blogs which parses the xml file but i didn't get blog for creating an xml file.how can we do that one.
    any suggestions will be appriciated
    thanks in advance
    With Regards
    Naidu

    HI
    GOOD
    IT IS POSSIBLE IN ABAP
    Extensible Markup Language (XML) is a simple, very flexible text format derived from SGML (ISO 8879). Originally designed to meet the challenges of large-scale electronic publishing, XML is also playing an increasingly important role in the exchange of a wide variety of data on the Web and elsewhere.
    XSD->
    XML Schemas express shared vocabularies and allow machines to carry out rules made by people. They provide a means for defining the structure, content and semantics of XML documents. in more detail.
    XDS->
    XDS can process data images from CCD-, imaging-plate, and multiwire-detectors in a variety of formats. Detector specific Input file templates greatly simplify the use of XDS; they are provided as part of the documentation.
    XDS runs under Unix or Linux on a single server or a grid of up to 99 machines of the same type managed by the MOSIX system; in addition, by using OpenMP, it can be executed in parallel on up to 32 processors at each node that share the same address space.
    http://www2.stylusstudio.com/SSDN/default.asp?action=9&fid=23&read=2926
    /people/r.eijpe/blog/2006/02/19/xml-dom-processing-in-abap-part-iiia150-xml-dom-within-sap-xi-abap-mapping
    THANKS
    MRUTYUN

  • Mapping from context to VC

    Hi everybody, I´m working in a mapping excercise where I want to map a data object in my context that has three header fields and one table to a Visual Composer view, I have no problems with the header fields because they are typed as xsd:string, the problem comes with the complex field (table) called Positions, for sure the 'Positions' type is not the same for the VC model and it never be, so my question is how do you make an input mapping from a complex field in the context to a VC,...
    As you can see here is my mapping :
    If I delete the 'Positions' mapping the build is ok, but when I map the 'Positions' field the build failed with the following message :
    Ant build finished with ERRORS
    com.sap.glx.paradigmInterface.bpmn.compiler.BPMNCompilerException: Mapping compilation failed!
    [ERROR] Incompatible expression type.
    Expected:Form.WS_Data_Object.Positions
    Found:PositionType
    Build stopped due to an error: com.sap.glx.paradigmInterface.bpmn.compiler.BPMNCompilerException: Mapping compilation failed!
    [ERROR] Incompatible expression type.
    Expected:Form.WS_Data_Object.Positions
    Found:PositionType
    MOIN forced shutdown initiated.
    It says clairly that expect a Form.WS_DATA_Object.Positions (VC) and found a 'PositionType' from my context.
    Do I need to cast every mapping !? How do you achieve that both types are the same !?
    Any help will be appreciated.

    I already change my WSDL (start message) to the Visual Composer start node type, and with that change I´m able to map:
    start message -> process context -> VC,
    all these objects have the VC types, so the question is....
    do I really need to create the VC data and then set my wsdl and process context DO with those types !?
    I was thinking in create a wsdl in my trigger then store the input values to a DO object of the same type and then mapping only the required displayed fields to the VC... but If I can´t modify the VC types to meet the context types all this is pointless and I need to recreate all my context into the VC isn´t !?
    Any comment will be appreciated. !
    thanks !

  • How to create JSF application from xsd files?

    Hi,
    We have many xsd files describing xml's which we are supposed to send to web services. Application which we are creating should allow user to fill xml documents with data and then we should send those xml files to some web service. We want to automatize as much as possible the process of application creation to avoid possible errors and to minimize our efforts (there are plenty of quite complex xsd files).
    Our first approach was: we used Oracle JSXB to generate java classes basing on xsd files (using JDeveloper 10.1.3.2.0.4066). Then we tried to generate DataControls, but this action fails with following error:
    Window title: Error in init bean
    Message: Could not complete initbean because it would result in an invalid document
    Details: oracle.bali.xml.model.XmlInvalidOnCommitException: SEVERE: Wartość atrybutu Name nie jest typu ID (Value of Name attribute is not of ID type)
    Wartość musi być następującego typu: (Value must be of following type)
    Nazwa typu: ID (Type name)
    Typ pierwotny: string (Primitive type)
    Z następującymi więzami: (With following constraints)
    zgodne z wzorcem: [\i-[:]][\c-[:]]* (Compliant with template)
    [ node = Name ]
    <JavaBean version="10.1.3.40.66" id="XSLStylesheet" BeanClass="oracle.xml.xslt.XSLStylesheet" Package="oracle.xml.xslt" isJavaBased="true">
    <Attribute Name="classMethodParams" IsUpdateable="0" Type="java.util.Hashtable" />
    We tried Sun implementation fo JAXB - it generated different java classes (with annotation mechanism). Creation of DataControls using those classes was successful. Then we created simple JSF page and tried to put those DataControls on it in order to let the user fill it with data. The thing is that those controls are read only as there is no row created in those DC. We can't create any row in those DC as there are only 'commit' and 'rollback' operations. When we try to call 'CreateInsert' operation on child elements of those DC we get error in JDeveloper log window:
    2007-05-29 10:08:46 oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
    WARNING: JBO-29000: DataControl:createRowData
    2007-05-29 10:08:46 oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
    WARNING: DataControl:createRowData
    new row is not created and controls are still read-only.
    The question is:
    1. is there another, more efficient way to create JSF application from xsd files?
    2. if this is the best way to do it, what do we do wrong?
    Leszek

    To anyone who might find it useful: our solution to mentioned problem.
    Few tips how to solve described problem:
    1. Do not use JAXB (we checked Oracle and Sun)
    2. Use castor http://www.castor.org/
    a) for each xsd generate java files in separated package
    b) use java 1.5 to let castor generate lists
    c) use mapping of xml namespaces to java packages to have only 1 implementation of each xsd
    3. Create facades - java files for you root-level java objects
    4. Right click those facades and choose 'Create DataControl' in jdev
    5. Now you may drag and drop you DataControls and use them in your JSF (or UIX) application
    I hope it will help someone :)
    Leszek

  • Unable to open Information Map from planning web Help menu

    Unable to open Information Map from planning web Help menu
    The error is :
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.

    Hi,
    It should be accessing :- http://<planning server>:8300/HyperionPlanning/help/en/hp_information_map/hp_information_map.html
    Can you access that address on the machine hosting planning?
    The file structure on the web server depending on which app server you use should be something like \Hyperion\deployments\Tomcat5\HyperionPlanning\webapps\HyperionPlanning\help\en\hp_information_map\hp_information_map.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How do I remove BlackBerry Maps from the OS?

    I have a Z10 running 10.3 it's a great update and so far love the BB Assistant.  There is one big sore point for me and that is your decision to deeply integrate BB Maps with 10.3 and Assistant. 
    Appologize upfront but I have to ask....Why would you integrate a lagging-edge Mapping App with an otherwise leading-edge OS in 10.3? 
    So long story short...BB Maps doesn't work for me.  (No Walking, Mass No Transit, No Satellite or Street View equivilants.)  The bottom line is that enterprise users need more than what BB Maps offers today and for the foresable future.  Just supremely frustrated about this situation and feel bad because 10.3 is great. 
    So the question is How do I remove BB Maps from 10.3 or completely disable it. I just want it gone at this point. Please help....I'm so totally frustrated that you can't easily remove it! 
    Thank you and please let me know as soon as possible how to accomplish this. 
    Solved!
    Go to Solution.

    Good news...Just to let you know I did find a way to remove BB Maps. 
    Even through  it's a core app  by reverting to a previous version  of BB Maps I was able to delete it from the OS.  iBest part is there was no impact to the OS and everything else works as normal.  Please Please ...if your going to make BB Maps a core app please make sure its a world class app and it works for all Enterprise users.  (Not just for drivers)  
    I can truely say my BB OS 10 experence is much better now without BB Maps.  If BB isn't going to invest in Maps then please don't make it a core app and tightly integrated into the OS.  I think at this point BB would be better off outsouring BB Maps to one of the leading Map providers such as Nokia, Mapquest, Bing/MS or even dare I say Google Maps.  I think the BB community would be much happier with any of the first three. 
    Thanks

  • How to remove a font file and its mapping from XML Publisher Administrator

    Hello,
    I am trying to remove a font file and its mapping from the XML Publisher Administrator. If this is not possible, is there a way to disable it?
    The reason why I am asking this is because we just got a new check printer, and I was able to print just fine. However, the MICR font was not coming up properly on the check, so I went ahead and configured the font with the XML Publisher Administrator. Now my check output is coming up blank after running the XML report publisher program. The only change I did was to upload the MICR font and mapped it.
    My template and rdf report file are working fine in another environment we have, so I know that's not the problem.
    Any help is appreciate it.
    Thanks.

    This is how you do it
    Font
    DELETE FROM xdo_lobs
    where lob_code like '<Font_name>';
    Font Mapping Set
    DELETE FROM xdo_font_mapping_sets_TL
    WHERE mapping_code like '<MAPPING_CODE>'

  • Xmlbean Error while creating  jar from XSD

    Hi all,
    I am using xmlbean technology while preparing jar from xsd i am getting the following error
    "error: Could not load resource "http://dataservices.citigroup.net:8080/documentEngine/GMA/technology_area/CMM/Commons/1.0/Core-schema.xsd" (network downloads disabled)."
    Please help me

    Hi All,
    I got the solution.
    we have to add -dl in the script as args

  • Invoking a mapping from another DB in a process flow

    Hi experts, have anyone try to invoke/execute an OWB mapping from another database in a process flow? Is it possible to do that?
    My process flow (in the Staging db) scenario is to execute several OWB mapping in the Staging db, then the final step is to execute an OWB mapping which is created in the warehouse db.
    Is that possible?
    Edited by: wwardana on Apr 5, 2009 9:09 PM

    Look at this thread
    [Calling WB_RT_API_EXEC.RUN_TASK over database link|http://forums.oracle.com/forums/thread.jspa?threadID=775938]
    Regards,
    Oleg

  • Mapping from nested to one table (sales order) XML to IDOC

    Hello,
    I have to map a xml file to the IDOC SALESORDER_CREATEFROMDAT2.SALESORDER_CREATEFROMDAT202.
    How I can map the the longtext from the XML file to the IDOC struktur.
    Part of the XML file, there could be n times BPosition with n times longtext. The longtext must be map with a table. I some case its a mapping from nested to mornal table.
        <BPosition>
             <lpos>1</lpos>
             <bbl_sap_nr/>
             <milvonr/>
             <kurztitel/>
             <anzbest/>
             <anzliefer/>
             <kostenpflichtig/>
             <longtext>
                <line>pos1 zeile1</line>
                <line>pos1 zeile 2</line>
             </longtext>
          </BPosition>
    thanks for your help.

    Hi, I have to map this 1 XML to 1 IDOC
    XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Milver xmlns:ns0="http://ccssap.bfi.admin.ch/milver">
       <bestellung>
          <besteller>
             <bestellnr/>
             <auftragdefit/>
             <wempfdebit/>
             <bestelldat/>
             <lieferdat/>
             <anzpos/>
             <language/>
             <adrzeile1/>
             <adrzeile2/>
             <adrzeile3/>
             <adrzeile4/>
          </besteller>
          <Kopf>
             <Lkopf>Kopf1 zeile1</Lkopf>
             <Lkopf>Kopf1 zeile2</Lkopf>
          </Kopf>
          <BPosition>
             <lpos>1</lpos>
             <matnr/>
             <milvonr/>
             <kurztitel/>
             <anzbest/>
             <anzliefer/>
             <kostenpflichtig/>
             <bemerkung>
                <line>pos1 zeile1</line>
                <line>pos1 zeile 2</line>
             </bemerkung>
          </BPosition>
          <BPosition>
             <lpos>2</lpos>
             <matnr/>
             <milvonr/>
             <kurztitel/>
             <anzbest/>
             <anzliefer/>
             <kostenpflichtig/>
             <bemerkung>
                <line>pos2 zeile1</line>
                <line>pos2 zeile 2</line>
             </bemerkung>
          </BPosition>
       </bestellung>
    </ns0:MT_Milver>
    IDOC:
    The Idoc have a segment for the longtext (table).I have to map, lpos, line into  E1BPSDTEXT from SALESORDER_CREATEFROMDAT2. Its now more clear?

  • Create an XML file from XSD file in JDeveloper

    Hi,
    I am working on XML DTD and XSD to validate xml file using JDeveloper.
    1. How we can create xml file from XSD in JDeveloper.
    2. How to design content model very easily..
    3. where can I learn XSD easily.. any URL
    can anyone help out..
    with regards
    Abu Sufian

    The XML node in the new gallery has an option to create XML document from schema
    See this demo:
    http://www.oracle.com/technology/products/jdev/viewlets/1013/xml_viewlet_swf.html
    There are several places on the Web that teaches XSD
    for example: http://www.w3schools.com/schema/

  • Creating a XML file from XSD file

    Is there a piece of Java code that will convert a file to XML using a XSD without the use of generated Java classes?
    Thanks alot,
    Amy

    I tried the link in asp.net but When I double click the exe it just pops off and goes.....How to use C# application......I am using Visual web developer 2005......please help in creating XML from XSD file

  • Problem by transporting the message mapping from PI 7.0 to PI 7.1

    Hi Everyone,
    by transporting the message mapping from PI 7.0 to PI 7.1 i have got the following problem.
    "Source code has syntax error:
    K:\usr\sap\E71\DVEBMGS00\j2ee\cluster\serve......
    package udfpool does not exist
    import udfpool.*;
    i have used a UDF in my message mapping.
    This UDF calls for a method of a java class, which is imported as a .jar file with this message mapping.
    this message mapping works very well on PI 7.0,
    but doesn't work any more on PI 7.1 because of the problem described above.
    anyone can help me out of this problem?
    thanks!
    zc

    hi,
    but did you import the jar archive to 7.1 first?
    Regards,
    Michal Krawczyk
    http://mypigenie.com XI/PI FAQ

Maybe you are looking for

  • File not visible in Layout Editor, but okay in Source Code Editor & Preview

    I just finished editing this page, and uploaded. It is visible on www, but when I go to edit it in Layout Editor, the cursor is blinking on a white background. Nothing appears to be there. However if I change to Source Code Editor or Preview, all my

  • Plenty of ipod space, but iTunes says I can't update or synchronize

    I can't synchronize my ipod and itunes library. When I select my playlists and apply, I get a "Can't update because there's not enough space on your ipod". There aren't any files on the ipod though.

  • Cannot import photos from iphone to iphoto after ios6 upgrade

    I upgraded to IOS6 a few days ago. Now iphoto does not start up automatically when I attach my phone.  When I open the app, my phone is not recognized and the "import photos" button is no where to be found. I've tried checking off photostream, unchec

  • Solaris 10 installation issue

    Hi, I have tried to install solari 10 many time but it fails. it goes throught the installation process and copies over the files then when i reboot and load solaris 10 from the menu it get to the stage where it asks if it want to override the nfs do

  • Files crashing Motion on MacBook Pro

    I have been using a G5 for a while with great success - I recently got a MacBookPro to use as well, with motion. I have been working on some files that have been causing the MacBook to crash almost every time when using Motion - but the exact same fi