Badi's documents

Hi Sdns,
i am new to Badi's , can any one provide  me documents or any material related to badi's from starting onwards.
Advance Thanks
karun

google it, SAP BADI.
google has an answer for u
bye bye

Similar Messages

  • Mapping of CRM  Billing Document to GTS within Service Parts Management

    Hello,
    We are currently implementing Service Parts Management with GTS.
    We would like to map certain fields coming from CRM Billing to the GTS Customs Document.
    Does anyone know which BADI/user exit can be used to complete this mapping.
    We have seen that to be able to transfer billing documents to GTS we need to activate Service Parts Management.
    Further, how can we get the values for these fields into the customs documents , once these are mapped.
    Which BADI, structures, tables are used for this?
    Does anyone have a sort of data structuring model for the different fields in the customs document , on header and item level.
    How fields are triggered. This could be very useful to have this kind of documentation for doing enhancements etc...
    Now we are struggling with structures.
    Thanks in advance
    Regrds
    Frank

    Frank,
    The key tables for the customs document are:
    /SAPSLL/CUHD (header)
    /SAPSLL/CUIT (item)
    /SAPSLL/CORPAR (partners)
    You can find additional tables in SE16 by search for table names that start with /SAPSLL/CU* or /SAPSLL/COR*
    Unfortunately, I am not sure about the BAdi for document transfer from CRM but the available BAdi's should be listed in the IMG in CRM similar to ECC.
    Sascha

  • When I compare 2 documents Acrobat 9 crashes

    When I compare 2 documents the progress bar will come up and will not disappear.  Eventually the following error will appear
    Acrobat.exe - application error
    The instruction at "0x0000195a" referenced memory at "0x0000195a".  The memory could not be "written".
    The above error also comes up if I click on the Progress bar for Document Compare.
    Acrobat then crashes.  We are running Acrobat Pro 9.5, and have this happening on multiple machines
    Thanks

    Hi, I have had a similar problem in Acrobat 10.1.9.22 for *specific files*, and talking to the Adobe tech support, they were also able to reproduce the crash with Acrobat 11 with these files, so it sounds like this bug is definitively not fixed yet.
    The bug:
    - When comparing 2 documents (View | Compare documents...), after some progress, Acrobat crashes (on my Windows 7 machine, it says "the application stopped working", the exception reported for me is c0000005 which is according to Google a memory access violation code). This will happen only on some *specific* .pdf documents (though it will be systematic for these). I am able to compare other .pdf documents fine without any issue.
    ** Current workaround** (thanks to tech support about this): You basically 'clean up' these bad .pdf documents by converting them to postscript and then back to pdf:
    Instructions for Acrobat X:
    For each document, do:
    1) File | Save as | More options | PostScript
    2) Then (in Windows at least), right click on the .ps file and choose "Convert to Adobe PDF" to convert it back to .pdf.
    Now the convert the two documents should work fine with these 'refreshed' documents (hopefully).

  • User name field in Document Information Record

    Based on our process design, we would like to use the user field to define the owner of the document (owner is the person in the organization, who initiates the creation of the document and owns it throughout the life-cycle of the document). An example would be the development of a new SOP (Standard Operating Procedure).
    The advantage of this setup would allow us to use standard role 155 for sending workflow notifications back to the owner during the review and approval process of the document.
    We would like to deactivate the automatic change of the user field, when a original stored in a secure storage area is checked out in edit mode. In this scenario, the user name that has been entered during the initial creation of the DIR will be changed to the active user (sy-user) that has opened the document for editing.
    Has anybody come across this requirement? Is there a BADI for document management that could be activated when the document is checked out in edit mode to deactivate the change of the user field? If not, where would we have to apply a mod. to disable the update of the user field with the active user during editing of the document original.
    Also, any other idea to make this work would be welcome.

    Hi Fredrich
    You would definitely be able to do this, I'm sure you could use the standard BADI on save to default this back to the original value, however, I see some issues with this, namely from a system audit perspective. Personally, I would rather change the original workflow and use a classification field (link it to table USR02 or USR01 to enable username searching) for the author to prevent it being changed.
    By changing the value you effectively lose your search functionality in CV04N because if a user is searching for a document he/she just changed, this will not appear for user based searches because he/she is not the user listed in the DIR.
    Regards,
    Athol

  • MIRO - User exit or BADI

    Hi frnds,
    i need to pass default values in MIRO transaction.
    i have found MRM_HEADER_DEFAULT Badi and LMR1M001 user exit, for this. but i am not able to pass the values here. can u help on this? or can u give any userexist for this?
    Badi Code:
    I_RBKPV-WAERS = 'INR'.
    I_RBKPV-BUPLA = '1000'.
    I_RBKPV-SECCO = '1000'.
    User Exit Code:
    the same above code i have used in EXIT_SAPLMR1M_003.
    Thanks in advance.
    Points will be rewarded for helpful answers.
    Regards,
    Balu

    Hi,
    Have you passed the values that you want to set to the export parameters in the BAdI:
    E_BLART        Document Type
    E_BKTXT         Document Header Text
    E_XBLNR        Reference Document Number
    E_BLDAT        Document Date in Document
    E_REINDAT    Invoice Receipt Date
    E_XBNK         Planned Delivery Costs Indicator
    E_XWARE      Goods Invoice/Service Indicator
    In the BAdI source code you must pass values to these parameters that you want to set.If you have done this and still you are not getting the desired result then can you send the source code.
    Hope this helps.
    Pravat
    <i>*Reward points if helpful</i>

  • BDAI for document number range

    Gurus,
    Whether there is a badi for document number range entry view.
    Regards
    Sachin Patil

    This may happen when you try to create a purchase requisition but then abandon it half way through before saving. In this scenario, the number range is incremented but the document is not saved.  The next time you will see a gap of 1 number.
    Thanks,
    Puneet

  • Is it possible to Recover a document after InDesign crash?

    Is it possible to Recover a document after InDesign crash?
    I was creating a long document in InDesign and after placing some bad Word
    document, Indesign crashed..
    The bad thing is that I didn't save file before a crash, and after reopening
    file after crash I realized that 60 pages are missing..
    Can I recover this information somehow?
    Does InDesign makes AutoSave files (and how can I open them?)
    Thank you in advance,
    R.

    Does InDesign makes AutoSave files (and how can I open them?)
    Isn't it what it does actually ? When it offers recovery, I guess it opens what it can. The other datas may be missing or truncated.
    So basically, I would say that your 60pages datas are lost for ever.
    You could try to open the document directly and see if it makes any differencies.
    Another way, but never understood how to process on my own, should be to fix the information opening the indd file in a txt editor (like notepad). But I am afraid it's more a fantasy than a real opportunity. Anyway, trying so will be more time consuming than doing the things again.
    The more scriptable thing I see right now would be a permanent script that would save a copy every minute for example. But I don't know if it's a real good way of thinking.
    Another great script is activated by a shortkey " Ctrl + S" ;-)
    This is a script you really learn with experience and that become a reflex. I know it could sound like a mockery, buit it's not.
    It's just that sometimes this is the best way to avoid problems.
    Anyway, I hope someone gives you a better answer.
    Loic

  • Determine type of subsequent document during SC creation?

    Hi experts,
    I want to implement some checks in SC items with BBP_ITEM_CHECK_BADI. But checks must be different when ordering direct materials to a vendor than when asking for a reservation in backend (stockable materials) against a storage location. The product is the same in both cases but not the way the SC is created (first case normal, second using 'direct material' option).
    Do you know a way to determine wheter i'm making a reservation or a PO when creating the SC?
    (using SRM server 5.5 as add-on)
    Cheers,
    Ruben.

    Hi
    <u>Yes it is quite easily possible to detremine the type of Objects created from SRM into R/3 backend ?</u>
    Have you checked the <b>BBP_TARGET_OBJECTS</b> / <b>BBP_TARGET_OBJTYPE</b> BADI using <u>SE18</u> Transaction ? Please read the relevant standard SAP documentation in this case before doing any coding.
    <u>You can use  either of the BADIs for Document checking
    <b>BBP_DOC_CHECK_BADI  / BBP_ITEM_CHECK_BADI</b></u>
    Document checks can be classified in three categories:
    Checks that
    1. relate to the document header,
    2. relate to a single item and
    3. relate to the entire document.
    For performance reasons, checks of the second category (item checks) should only be carried out when:
    a) a new item is created,
    b) an item is changed or
    c) the entire document is to be checked for consistency (triggered, for example, by choosing the pushbutton Check).
    The BAdI (s. Business Add-In) BBP_DOC_CHECK_BADI is suitable for checks of categories 1 and 3. In BAdI BBP_DOC_CHECK_BADI all the items exist but you cannot yet recognize which items have been newly created or changed. For this reason, all items must always be checked in this BAdI. For performance reasons, we therefore recommend that you use BAdI BBP_ITEM_CHECK_BADI for checks of category 2 (purely itemchecks).
    Using BAdI BBP_DOC_CHECK_BADI, you can carry out your own checks for the document data after you have entered the user and before you save the document to the database. You cannot change any data.
    Do let me know.
    Regards
    - Atul

  • Badi Implementation Step by Step Needed.

    Hi Experts,
    Need some good Documentation for Badi creation and also for using any existing
    Badi.Good Documents with snapshots will be helpful instead just some links  which doesn't work at last steps according to version changes.If you can send some points will be awarded accordingly.
    Thanks,
    Sudha

    BADI
    http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    www.sapgenie.com/publications/saptips/022006%20-%20Zaidi%20BADI.pdf
    http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/eab541c5b63031e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/63ee7f486cc143a560799d8803ce29/content.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/srm/badi-general+information&
    http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    www.sapgenie.com/publications/saptips/022006%20-%20Zaidi%20BADI.pdf
    http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/eab541c5b63031e10000000a155106/frameset.htm
    The specified item was not found.
    http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://members.aol.com/_ht_a/skarkada/sap/
    http://www.ct-software.com/reportpool_frame.htm
    http://www.saphelp.com/SAP_Technical.htm
    http://www.kabai.com/abaps/q.htm
    http://www.guidancetech.com/people/holland/sap/abap/
    http://www.planetsap.com/download_abap_programs.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    http://www.allsaplinks.com/badi.html
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-serieshttps [original link is broken]:///people/alwin.vandeput2/blog/2006/04/13/how-to-search-for-badis-trace-it
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework /people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
    http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    http://www.esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40921dd7-d5cf-2910-1894-bb62316afbd1
    http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://members.aol.com/_ht_a/skarkada/sap/
    http://www.ct-software.com/reportpool_frame.htm
    http://www.saphelp.com/SAP_Technical.htm
    http://www.kabai.com/abaps/q.htm
    http://www.guidancetech.com/people/holland/sap/abap/
    http://www.planetsap.com/download_abap_programs.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    http://esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    http://esnips.com/doc/365d4c4d-9fcb-4189-85fd-866b7bf25257/customer-exits--badi.zip
    http://esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
    http://help.sap.com//saphelp_470/helpdata/EN/eb/3e7cee940e11d295df0000e82de14a/frameset.htm
    Rewards if useful.........
    Minal

  • How to send form feed to printer ?

    Hi All
    I'm sending a bad formated document to a printer (working in windows) with my java application and then I'm parsing the document and need to send a formfeed to inform the printer to change page when I found a determinated char in the document.
    I know how to do everything except which is the recognized formfeed char in windows...
    Any help ?
    Thanks
    <xl>

    useful link.
    http://www.asciitable.com/

  • Merge Fields in Word Templates are still showing after replaceing procedure

    Hi all,
    we are using CRM 7.0 and we are using the BAdI CRM_OFFICE_TEMPLATE_BADI to replace the Merge Fields which are placed in Word  Template!
    Normaly it works very fine, but in some cases if there is no value to fill into the merge field, the merge field is shown like it is created in the template.
    In most of the other cases the not replaced merge field is not shown in the created document.
    Does anybody has got the same issue? If yes, how do you solve it?
    Every answer is very welcome!
    Best regards
    Michael

    Hi Michael / Carsten,
    I have some problems in implementing CRM_OFFICE_TEMPLATE_BADI. I have redefine method for get_attributes :
    method IF_EX_CRM_OFFICE_TEMP_BADI~GET_ATTRIBUTES.
      DATA: ls_attr TYPE CRM_KW_TEMP_ATTR,
            lt_attr TYPE CRM_KW_TEMP_ATTR_TAB.
    *  IF iv_wsname = 'ZTESTQUO001'.
        ls_attr-NAME = 'CustomAddr'.
        ls_attr-DESCRIPTION = 'Custom Address'.
        INSERT ls_attr INTO TABLE lt_attr.
        ct_attributes = lt_attr.
    *  ENDIF.
    endmethod.
    and redefined method get_values also:
      DATA: ls_val TYPE CRM_KW_TEMP_VALUE,
            lt_val TYPE CRM_KW_TEMP_VALUE_TAB.
    *  IF iv_wsname = 'ZTESTQUO001'.
        ls_val-NAME = 'CustomAddr'.
        ls_val-VALUE = 'Sudirman Street 20' .
        INSERT ls_val INTO TABLE lt_val.
        ct_values = lt_val .
    *  ENDIF.
    The field has shown when I click "Call BADI" on Document templates, but I couldn't click CustomAddr field (no hyperlink in it). could you explain to me what steps are wrong ? How to make this field shown in the schema structure in Microsoft Word 2007 ?
    Your help is greatly appreciated.
    Thank you.
    Agus

  • Indesign cannot open "old files" CS6.

    I was supposed to do a few adjustments in a project, i have opened it before and been working in it alot.. (2 months since last time i was working with this project) When i was supposed to do some minor fixes etc on this project yesterday i cannot open the file. The project it self are only on 8900 kB. What to do???? I can open my recently "newly" made and used projects.... Ive tryed some other projects that was also old, all between 2-6 months.. And it is just randomly witch i can open and witch i "Cannot open"..
                             This is the error for CS6.
                             This is the error for CS 5.5.
    If you got some suggestions scream out! Will try it all that have worked before.. (If someone have had this same problem atleast!)
    Sincerely,
    David

    First, a tip: Try manually breaking the links to the file by moving that document you want to open to your desktop or another directory or such and then try opening them... (corrupt image previews and/or images can then be largely elminated as a potential cause)
    As @Peter mentioned, we (Markzware - link here to how that works) can likely fix this file. Interesting notes from @jongware above. Without having seen this file, our research shows there are various reasons an InDesign file can head south and corrupt or crash on you. Just like a doctor can not always say what caused the problem, there are some basic steps we all should take. For instance, OS up to date, InDesign using the latest update available, enough disk space and scartch disk space for heavy Adobe design operations. Here is a list of some of the most common issues with bad INDD documents:
    * Corrupt Font(s) (or corrupt font caches - see below)
    * Corrupt Image(s)
    * Power Failure
    * Placing images via drag-and-drop from an Internet page
    * Working on an InDesign file over a network or on a remote server
    Here is a video on how to tackle the font caches of InDesign, which is good to do once and a while anyway:
    http://www.youtube.com/watch?v=Nf5ZuiaYgus
    For checking individual font files (fonts are like mini apps really), we recommend either FontExplorer XPro or Extensis Suitcase Fusion 4, with the later perhaps the more popular of the two.
    You can contact me on [email protected] if you need assistance with us trying to recover your bad InDesign CS file further. We also have a PDF to InDesign conversion tool called PDF2DTP if you have a PDF.
    Friendly Regards,
    David Dilling of Markzware

  • Convert PDF with  Arabic  content to word /Excel .

    I have problem , I plan to buy Adobe acrobat  pro  for my ORG , The main target to buy it , to convert PDF a Arabic  content to word or Excel , I download trial version from Adobe acrobat pro  , and when i convert PDF English content  it's fine , but when i  convert PDF with Arabic content  , the result is bad the  word become letters and  the documents become not readable , Pleas  help me cause the main  target is convert Arabic PDF to Word .
    " the mean problem is  when i convert PDF with Arabic content to word the result is bad the   document become unreadable .
    thanks , wait for replay.

    HI,
    Adobe Acrobat is a special PDF viewer which is technically develop for the whole world to read any PDF file which a user wants to read. It's basic languages are:
    English (US)
    English (UK)
    Arabic
    Italian
    Japanese
    Spanish
    German
    But when you going to export the PDF file the arabic language will not support.
    Regards,
    Florence

  • How do I convert an Arabic PDF to an Arabic Word doc?

    How can I convert a pdf written in arabic to a word doc that types in arabic?

    Hi Sara
    I am really sorry for being late .
    I have problem , I plan to buy Adobe acrobat  pro  for my ORG , The main target to buy it , to convert PDF a Arabic  content to word or Excel , I download trial version from Adobe acrobat pro  , and when i convert PDF English content  it's fine , but when i  convert PDF with Arabic content  , the result is bad the  word become letters and  not readable , pleas help me cause the main  target is convert Arabic PDF to Word .
    " the mean problem is  when i convert PDF with Arabic content to word the result is bad the   document become unreadable .
    thanks , wait for replay.

  • SAXParseException Language

    new babie question...
    i have a stupid problem, but cant resolve this. Moreover, SAX exceptions traces are in Spanish. I want them in English, so I can find easily some topic about that.
    any idea of how to change this?
    heres is the .java and the .xml and the error trace..
    <?xml version="1.0"?>
    < !DOCTYPE Recipe>
    <Recipe>
    <Name>Lime Jello Marshmallow Cottage Cheese Surprise</Name>
    <Description>My grandma's favorite (may she rest in peace).</Description>
    <Ingredients>
    <Ingredient>
    <Qty unit="box">1</Qty>
    <Item>lime gelatin</Item>
    </Ingredient>
    <Ingredient>
    <Qty unit="g">500</Qty>
    <Item>multicolored tiny marshmallows</Item>
    </Ingredient>
    <Ingredient>
    <Qty unit="ml">500</Qty>
    <Item>Cottage cheese</Item>
    </Ingredient>
    <Ingredient>
    <Qty unit="dash"/>
    <Item optional="1">Tabasco sauce</Item>
    </Ingredient>
    </Ingredients>
    <Instructions>
    <Step>Prepare lime gelatin according to package instructions</Step>
    <!-- And so on... -->
    </Instructions>
    </Recipe>
    ?xml version='1.0' encoding='UTF-8'?>org.xml.sax.SAXParseException: Falta elemento de ra�z de documento.
         at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
         at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3170)
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:501)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:281)
         at com.sofrecom.reportes.Main.main(Main.java:33)
    import java.io.Writer;
    import java.io.OutputStreamWriter;
    import java.io.IOException;
    import java.io.File;
    import org.xml.sax.SAXException;
    import org.xml.sax.Attributes;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    public class Main extends DefaultHandler
    static private Writer out;
    public static void main(String argv[])
    // Use an instance of ourselves as the SAX event handler
    DefaultHandler handler = new Main();
    // Use the default (non-validating) parser
    SAXParserFactory factory = SAXParserFactory.newInstance();
    try {
    // Set up output stream
    out = new OutputStreamWriter(System.out, "UTF8");
    // Parse the input
    SAXParser saxParser = factory.newSAXParser();
    saxParser.parse( new File("C:\\Documents and Settings\\dbuzzalino\\JDW\\TestsVarios\\FOPTest\\public_html\\prueba.xml"), handler);
    } catch (Throwable t) {
    t.printStackTrace();
    System.exit(0);
    //===========================================================
    // SAX DocumentHandler methods
    //===========================================================
    public void startDocument()
    throws SAXException
    emit("<?xml version='1.0' encoding='UTF-8'?>");
    nl();
    public void endDocument()
    throws SAXException
    try {
    nl();
    out.flush();
    } catch (IOException e) {
    throw new SAXException("I/O error", e);
    public void startElement(String namespaceURI,
    String lName, // local name
    String qName, // qualified name
    Attributes attrs)
    throws SAXException
    String eName = lName; // element name
    if ("".equals(eName)) eName = qName; // namespaceAware = false
    emit("<"+eName);
    if (attrs != null) {
    for (int i = 0; i < attrs.getLength(); i++) {
    String aName = attrs.getLocalName(i); // Attr name
    if ("".equals(aName)) aName = attrs.getQName(i);
    emit(" ");
    emit(aName+"=\""+attrs.getValue(i)+"\"");
    emit(">");
    public void endElement(String namespaceURI,
    String sName, // simple name
    String qName // qualified name
    throws SAXException
    emit("</"+sName+">");
    public void characters(char buf[], int offset, int len)
    throws SAXException
    String s = new String(buf, offset, len);
    emit(s);
    //===========================================================
    // Utility Methods ...
    //===========================================================
    // Wrap I/O exceptions in SAX exceptions, to
    // suit handler signature requirements
    private void emit(String s)
    throws SAXException
    try {
    out.write(s);
    out.flush();
    } catch (IOException e) {
    throw new SAXException("I/O error", e);
    // Start a new line
    private void nl()
    throws SAXException
    String lineEnd = System.getProperty("line.separator");
    try {
    out.write(lineEnd);
    } catch (IOException e) {
    throw new SAXException("I/O error", e);

    And your message says that your document needs a root element. This seems to mean that the parser is seeing a badly-formed document, but in practice means that the parser couldn't find the document at all.

Maybe you are looking for

  • Is it possible to make links in PS  Photo Gallery point to original images?

    I want to be able to make links in Photoshop Photo Gallery point to the original tif image for download, rather than to the large jpg. Is this doable? CS 4 Macintosh G5 OS 10.4.11

  • How do I get iPhoto to work after downloading Yosemite?

    I downloaded Yosemite and ow my iPhoto won't open.  The popup message tells me to open my library with this version of iPhoto it first needs to be prepared.  Then it tells me to download iPhoto upgrader to be used with versions of iPhoto 7 or earlier

  • FI Substitution for line item

    Hi Is it possible to substitute the Profit center value in line item 02 to line item 01. If it possible please guide me in populating profit center in line item 01. Thanks and Regards Sahil

  • [solved] zsh, compinit and colors

    Hi all, I've just updated my zsh package to version 4.3.11-1 and now I can't run two of its built-in functions, namely compinit and colors. My .zshrc contains the following code: # rest of ~/.zshrc ... zstyle :compinstall filename '/home/andre/.local

  • ODI smart Import using sdk

    I am trying smart import using below code SmartImportServiceImpl impl = new SmartImportServiceImpl(odiInstance); String xmlfile = "C:/Users/608600862/Desktop/xml/SmartExport"; impl.importFromXml(xmlfile); giving me following error I Googled lot but n