How to parse XSD in ABAP and convert into models

Hello Experts,
I have a scenario where XSD is available in ABAP and want to parse it and convert into object such as XSD Schema, XSD Complext Type, XSD Simple Type etc... (that is create a DOM model of XSD)
Are there some standard APIs which can provide this feature?
Thanks & Regards,
Arpit

Hi Arpit,
If my understanding of your requirement is correct then the class - CL_FP_XSD_FOR_ABAPTYPES, should help you out.
Let me know how this works out, or i am completely off your requirement.
Regards,
Chen

Similar Messages

  • How to parse a delimited string and insert into different columns?

    Hi Experts,
    I need to parse a delimited string ':level1_value:level2_value:level3_value:...' to 'level1_value', 'level2_value', etc., and insert them into different columns of one table as one row:
    Table_Level (Level1, Level2, Level3, ...)
    I know I can use substr and instr to get level value one by one and insert into Table, but I'm wondering if there's better ways to do it?
    Thanks!

    user9954260 wrote:
    However, there is one tiny problem - the delimiter from the source system is a '|' When I replace your test query with | as delimiter instead of the : it fails. Interestingly, if I use ; it works. See below:
    with t as (
    select 'str1|str2|str3||str5|str6' x from dual union all
    select '|str2|str3|str4|str5|str6' from dual union all
    select 'str1|str2|str3|str4|str5|' from dual union all
    select 'str1|str2|||str5|str6' from dual)
    select x,
    regexp_replace(x,'^([^|]*).*$','\1') y1,
    regexp_replace(x,'^[^|]*|([^|]*).*$','\1') y2,
    regexp_replace(x,'^([^|]*|){2}([^|]*).*$','\2') y3,
    regexp_replace(x,'^([^|]*|){3}([^|]*).*$','\2') y4,
    regexp_replace(x,'^([^|]*|){4}([^|]*).*$','\2') y5,
    regexp_replace(x,'^([^|]*|){5}([^|]*).*$','\2') y6
    from t;
    The "bar" or "pipe" symbol is a special character, also called a metacharacter.
    If you want to use it as a literal in a regular expression, you will need to escape it with a backslash character (\).
    Here's the solution -
    test@ORA11G>
    test@ORA11G> --
    test@ORA11G> with t as (
      2    select 'str1|str2|str3||str5|str6' x from dual union all
      3    select '|str2|str3|str4|str5|str6' from dual union all
      4    select 'str1|str2|str3|str4|str5|' from dual union all
      5    select 'str1|str2|||str5|str6' from dual)
      6  --
      7  select x,
      8         regexp_replace(x,'^([^|]*).*$','\1') y1,
      9         regexp_replace(x,'^[^|]*\|([^|]*).*$','\1') y2,
    10         regexp_replace(x,'^([^|]*\|){2}([^|]*).*$','\2') y3,
    11         regexp_replace(x,'^([^|]*\|){3}([^|]*).*$','\2') y4,
    12         regexp_replace(x,'^([^|]*\|){4}([^|]*).*$','\2') y5,
    13         regexp_replace(x,'^([^|]*\|){5}([^|]*).*$','\2') y6
    14  from t;
    X                         Y1      Y2      Y3      Y4      Y5      Y6
    str1|str2|str3||str5|str6 str1    str2    str3            str5    str6
    |str2|str3|str4|str5|str6         str2    str3    str4    str5    str6
    str1|str2|str3|str4|str5| str1    str2    str3    str4    str5
    str1|str2|||str5|str6     str1    str2                    str5    str6
    4 rows selected.
    test@ORA11G>
    test@ORA11G>isotope
    PS - it works for semi-colon character ";" because it is not a metacharacter. So its literal value is considered by the regex engine for matching.
    Edited by: isotope on Feb 26, 2010 11:09 AM

  • How to retrieve data from catsdb table and convert into xml using BAPI

    How to retrieve data from catsdb table and convert into xml using BAPI
    Points will be rewarded,
    Thank you,
    Regards,
    Jagrut BharatKumar Shukla

    Hi,
    This is not your requirment but u can try this :
    CREATE OR REPLACE DIRECTORY text_file AS 'D:\TEXT_FILE\';
    GRANT READ ON DIRECTORY text_file TO fah;
    GRANT WRITE ON DIRECTORY text_file TO fah;
    DROP TABLE load_a;
    CREATE TABLE load_a
    (a1 varchar2(20),
    a2 varchar2(200))
    ORGANIZATION EXTERNAL
    (TYPE ORACLE_LOADER
    DEFAULT DIRECTORY text_file
    ACCESS PARAMETERS
    (FIELDS TERMINATED BY ','
    LOCATION ('data.txt')
    select * from load_a;
    CREATE TABLE A AS select * from load_a;
    SELECT * FROM A
    Regards
    Faheem Latif

  • Clone Production Database and Convert into Read Write Mode

    Hi,
    Please help me for below question...
    How to Create Test Database from Production Database without transporting backup of Production Database to Test Database and the Test Database should be in different directory structure and converting into read write mode?
    Please find me a solution as early as possible...
    Thanks & Regards
    Akhil

    if you don't need to move backup from prod to dev you need to create rman catalog and have access on it from dev server , after that you will be able to duplicate your prod to dev without moving backup and database will be in Read write by default .

  • HT201365 How do I download Whatsaap, Facebook and Skype into my home screen. When I try it gives me an erros message saying that this is not available in a Panamanian store and I live in the US. HELP????

    How do I download Whatsaap, Facebook and Skype into my home screen. When I try it gives me an erros message saying that this is not available in a Panamanian store and I live in the US. HELP????

    Change your country on iPhone, iPad, or iPod touch
    Tap iTunes Store, App Store, or iBooks Store.
    At the bottom of the Featured page, tap Sign In.
    If you're already signed in, skip to step 5.
    Tap Use Existing Apple ID.
    Enter your Apple ID and password and tap OK.
    Tap your Apple ID.
    Tap View Apple ID or View Account.
    Tap Country/Region.
    Tap Change Country or Region.
    Tap the Store menu and tap your country.
    Tap Next.
    Review the Terms and Conditions and Apple Privacy Policy.
    Tap Agree if you agree to the terms and conditions.
    In the prompt that appears, tap Agree.
    Select a payment method and enter your payment information.
    Enter your billing address and tap Next.

  • It is possible to ckeck-out a drawing and converting into bitmap

    HI,
    it is possible to
    check out a drawing from dms and convert into bitmap image
    and upload the image in se78

    Hi Rani,
    from DMS point of view it is possible to convert an original to BMP format. Therefore you have to set up a conversion routine in customizing and link a converter to your system, which is able to convert the original in the desired format.
    First of all the converter has to be linked to the R/3 System by RFC connection in SM59. Please see
    the attached document which contains all necessary information about setting up the converter and conversion.
    Further customizing settings can be found in transaction SPRO under:
    Cross-Application Components
      > Document Management
          > Conversion of Original Application Files
    The conversion could be defined to be started in transaction CONV02, with status change or by using workflows. For using the conversion within workflows please see SAP note 687199 for further information.
    Best regards,
    Christoph
    P.S.: Please reward points for usefull information.

  • How to parse XSD using XDK?

    Hi all,
    I'd appreciate to know how to parse a XML schema file. I realize that Oracle provides API as defined in:
    http://www.oracle.com/technology/tech/xml/xdk/doc/production/java/doc/java/javadoc/oracle/xml/parser/schema/XSDBuilder.html
    Are there any place I can get sample code or tutorial?
    Thanks!
    jason

    Hi Jason!
    I already used Oracle XML parser for parsing XML schema files, but I wouldn't recommend it!
    The classloader loads Oracle XDK classes first, so you can't use other XDK version then Application Server own XDK version.
    (This is a not yet solved classloader issue in application server.)
    I reallized, that Oracle sometimes change APIs in XDK, so sometimes it is no longer compatible with the old version API.
    If you develope a code that works in your Jdeveloper, perhaps it won't work on the application server and you won't have the option to use the appropriate XDK version.
    I recomend to use Xerces or other XML parser to parse XML schema files!
    http://xerces.apache.org/
    This way you can use any version of the XML parser in your application.

  • How to upload a PDF file and convert it to OTF format

    We have come across rquirements like converting OTF to PDF but my requirement is to read a PDF file in SAP and convert it to OTF format for printing.
    Can anyone please help me with the Function Modules to do so.

    Hello,
    Try the following FM:
    CONVERT_OTF Convert SAP documents (SAPScript) to other types.
    Example:
    CALL FUNCTION "CONVERT_OTF"
    EXPORTING FORMAT = "PDF"
    IMPORTING BIN_FILESIZE = FILE_LEN
    TABLES OTF = OTFDATA
    LINES = PDFDATA
    EXCEPTIONS ERR_MAX_LINEWIDTH = 1
    ERR_FORMAT = 2
    ERR_CONV_NOT_POSSIBLE = 3
    OTHERS = 4.
    Hope this helps.
    Reward if helpful.
    Regards,
    Vasanth

  • SonicStage/Atrac3 files--How do I import these files and convert them??

    This is my problem.
    I used to have SonicStage, I no longer do, but I found some of my old CDs that I made using that program, but the atrac3 files(I believe that's what they're called) aren't compatible with Mac, so now what do I do? I've never converted anything in my life, are there any apps I could download that will rip the unreadable files from my old CDs and convert them into usable mp3 (or whatever) files?
    This is all very foreign to me and any advice would be greatly appreciated.

    Re: SonicStage for Mac

  • How do I download a video and convert it into an flv file? In previous versions, all I had to do was pick the resolution and it was done automaticlly. I use DVDFLICK to burn my downloaded videos to DVD.

    In previous versions of Firefox, I was able to easily download and convert videos into .flv files. I was then able to burn DVDs of theses downloaded videos using DVDFLICK. I'm now unable to do this using Firefox6.0.2?

    Hello,
    There is a process by which you can produce a BluRay encode on a red laser DVD. See link below
    from Ken Stone site.
    http://www.kenstone.net/fcphomepage/burn_br_mac_superdrivestone.html
    Also this can be done in Toast 10 with the BluRay plugin, somewhat easier.
    Good Luck, Tom

  • How to block changes of PR after convert into PO

    how to block change/deletion of purchase requisition after convert into purchase order without changing/deleting PO.

    Hi
    Goto customizatin of rellease procedure of p.req, in that select setup procedure with classification  and select release indicator,and select details in that changeability indicator is there in that you will select based on your requirement
       changeble,new release in case of release strategy
    1-cannot be changed
    2-changeble,no new determination of strategy
    3-changeble,new release in case of release strategy
    4-changeble,new release in case of release strategy or value change
    select in the list and save and check your scenario.
    Thanks

  • How do I copy multiple clips and sequences into a new project

    Hi Folks,
    I've spent a while on the net trying to find an answer to my problem - so far without success. I have successful finished a documentary project (on climbing Mt Kilimanjaro) and now I want to lift the most dramatic sequence (the summit) so I can advertize the thing on my website and elsewhere. I have two audio tracks and two video tracks with multiple still photos in one of the video tracks.
    There must be a way to do this but I can't find it.
    Any ideas - and if this is a simplistic question I apologize - I've been learning as I go on this project.
    Cheers,
    Paddy Ryan

    Okay everyone - thanks for your help - new problem.
    I successfully "built" my 4 minutes clip from the original project. But I couldn't find a way to delet the material past rthe point at which I wanted it to end. So I went in and manually deleted everything. Inow have a 4 minute clip but when I try and convert it to a Youtube friendly file format it tells me the clip is 26 minutes long. I checked it out and it just kepy playing black with no sound. I dug around alittle and founf a sort of mini-compressed timelione of all that material and deleted it. tried again. It now stops playing after 4 minutes but once again tells me the clip is 26 minutes long when I try and convert the file. Are there pixies living among the pixels?

  • Reading files and converting into xml structure

    Hi,
    In my application a client requests for the folder structure information to a server through RMI. The server needs to read files and folders on local machine and convert it into some structure (I am thinking of using xml) and send it back. For eg: I am planning to have Server send back something like:
    <directory name = "parentdirectory">
    <file name = "abc.jpg"/>
    <file name = "def.bmp"/>
    <directory" name = "subdirectory">
    <file name = "hij.jpg"/>
    <file name = "klm.bmp"/>
    </directory>
    </directory>
    It is just the names of the files I am interested in and not the contents. Is this a good approach of sending back the data as a string containg xml definition. Is there any better appproach in terms of performance, memory etc? I am currently planning on using DOM for construction of this structure. Is there a source code for reading and converting the folder structure into xml. Just for your information, the clients gets this information and shows it as a tree structure on the GUI.
    Thanks!!!!

    Is this a good approach of sending back the data as a string containg xml definition. It'll work.
    An alternative, more direct approach is to build a memory representation and send this as argument/return value of an RMI call. You'd need to write classes MyDirectory and MyFile; MyFile has just a name; MyDirectory has a name and a collection of MyDirectory and one of MyFile. Make these classes implement Serializable and you can send them over RMI.
    The effort to write those trivial classes would be less than to implement XML encoding/decoding, and also in terms of runtime performance and memory it will be hard to beat Java's serialization with anything XML-based. In this case I doubt performance/memory are relevant considerations though.
    If for some reason I'd go for sending XML Strings anyway, I wouldn't do the encoding/decoding myself; I'd use XStream to convert Java classes to/from XML and still end up writing the above two classes and be done.
    Sorry if you wanted a simple yes or no :-)

  • How to read from one file and write into another file?

    Hi,
    I am trying to read a File and write into another file.This is the code that i am using.But what happens is last line is only getting written..How to resolve this.the code is as follows,
    public String get() {
         FileReader fr;
         try {
              fr = new FileReader(f);
              String str;
              BufferedReader br = new BufferedReader(fr);
              try {
                   while((str= br.readLine())!=null){
                   generate=str;     
              } catch (IOException e1) {
                   e1.printStackTrace();
              } }catch (FileNotFoundException e) {
                   e.printStackTrace();
         return generate;
    where generate is a string declared globally.
    how to go about it?
    Thanks for your reply in advance

    If you want to copy files as fast as possible, without processing them (as the DOS "copy" or the Unix "cp" command), you can try the java.nio.channels package.
    import java.nio.*;
    import java.nio.channels.*;
    import java.io.*;
    import java.util.*;
    import java.text.*;
    class Kopy {
         * @param args [0] = source filename
         *        args [1] = destination filename
        public static void main(String[] args) throws Exception {
            if (args.length != 2) {
                System.err.println ("Syntax: java -cp . Kopy source destination");
                System.exit(1);
            File in = new File(args[0]);
            long fileLength = in.length();
            long t = System.currentTimeMillis();
            FileInputStream fis = new FileInputStream (in);
            FileOutputStream fos = new FileOutputStream (args[1]);
            FileChannel fci = fis.getChannel();
            FileChannel fco = fos.getChannel();
            fco.transferFrom(fci, 0, fileLength);
            fis.close();
            fos.close();
            t = System.currentTimeMillis() - t;
            NumberFormat nf = new DecimalFormat("#,##0.00");
            System.out.print (nf.format(fileLength/1024.0) + "kB copied");
            if (t > 0) {
                System.out.println (" in " + t + "ms: " + nf.format(fileLength / 1.024 / t) + " kB/s");
    }

  • How do I stop Numbers formulas from converting (/) into (÷) for hyperlinks. Ref Ver. 3.5.2

    How do I stop Numbers formulas from converting ( / ) forward slash into (÷) divide for hyperlinks. Ref Ver. 3.5.2
    I am trying to hyperlink to a dropbox url, but the numbers formula is automatically converting / into ÷, preventing the links from working.
    Thank you.

    Hi Merritt.B,
    If you are using HYPERLINK() everything goes inside quotes:
    HYPERLINK("https://discussions.apple.com/thread/6772428","This question")
    quinn

Maybe you are looking for

  • The computer my iTunes account was locked to no longer works

    As the title says my computer that has all my tv shows and that on no longer works. I was reading when I bought the tv series and that, that its locked to one computer only. So what happens now that its broken? Do I have to rebuy everything when I ge

  • After updating to maverick, Illustrator CS6 will not open. How can I fix this.

    Illustrator boots up then crashes. I have tried the font fixes and I tried a java fix and nothing has worked for me. I also can not install the Adobe Updates. Found the problem solution was found on this thred: https://discussions.apple.com/message/2

  • Locking items

    Hi, I'm adding pages to a document but I want to keep some items on de master page (I don't want them to be put on the real pages). The "V-lijn" is a vertical line and the footer is a group of objects that form a footer on each page. Sometime I need

  • Screen Shot appears as Link when sent to someone (...

    Hello -  Just updated to 7.0 (653). When I send a screen shot (png) via Skype, it appears as a link stating: "to view this shared photo, goto: xxx/xxx/xxxxx/asdfjewn78034h". What is the reason otheres are having this issue? I can accept and see thier

  • I can not find out how to copy and paste firefox does not allow it

    Firefox does not allow me to highlight html documents when on line and then copy and paste When I left click to highlight it just moves a ghost copy of the whole document away from where you begin. I can not find out how to copy and paste firefox doe