Error while creating document numbering series via SDK add on

Dear Experts,
We receive the following error while creating the document numbering series through the SDK add on
[Microsoft][SQL Server Native Client 10.0][SQL Server]The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Too many parameters were provided in this RPC request. The maximum is 2100.
From the above error message I can suspect the following possibilities
1. The limit for the document numbering must be less or equal to 2100.
2. There is a problem in the coding in SDK where it does not allow more than 2100 lines in the database.
We tried to create manually for the same fiscal year and period indicator disconnecting the add on, the same error occured.
Then we created a seried for a single document with the period indicator for the next fiscal year, it allowed.
After creating the document numbering for the next fiscal year, we were able to create the numbering for the previous year also.
Kindly help us on how to solve the same.
With regards,
Yeshwanth Prakash

Hi
You have, as far as i can determine without seeing the template,defined no Part Appraiser Column (PAPP) in your template. But you have defined a function on the template to automaticly default the part appraisers.
On the Appraisal document persons (appraiser / appraisee) are getting defaulted as part-appraisers although no part appraisal column excist,and therefor 00 Part Appraisers are allowed. This gives the error. Remove the Part Appraisers default functionality from the template and this problem will be solved.
FYI: The reason why this doesn't give a business check error is that the functions to default participants are BAdI's and we have no means of determining wether or not a BAdI implentation will create an inconsistency on the appraisal document.
Also, the reason that it occurs as a S message and not as E or W is because of programming restrictions in combination with messages. All errors on the Appraisal Document will come as 'S' messages.

Similar Messages

  • Error while creating Document Templates

    Hi Experts,
    Am getting an ActiveX error while trying to create a document template designer using a webservice I created in the WST. I have consulted note 1018674 and ensured that the following browser settings are activated but still I keep getting the error.
    - Active Scripting
    - Run Active X Controls and plug-ins
    - Initialize and script ActiveX controls not marked as safe
    Also, since I had been trying to create a microsoft word type of template the system does open an instance of the word doc. Can anyone pls advice?
    How can we ensure that the webservice we have created is working. When I try to test the service in the WST tool, I keep getting the message - URL cannot be retrieved. Does it mean that the service has not been created correctly?

    Check if you done all the following settings...
    .NET Framework-reliant components:
    ○     Run components not signed with Authenticode ® Enable
    ○     Run components signed with Authenticode ® Enable
    ActiveX controls and plug-ins:
    ○     Download signed ActiveX controls ® Enable
    ○     Initialize and script ActiveX controls not marked as safe ® Enable
    ○     Run ActiveX controls and plug-ins ® Enable
    ○     Script ActiveX controls marked safe for scripting ® Enable
    Downloads:
    ○     File download ® Enable
    Miscellaneous:
    ○     Installation of desktop items ® Disable
    Scripting:
    ○     Active scripting ® Enable
    ○     Allow paste operations via script ® Enable
    ○     Scripting of Java applets ® Disable
    ●     To enable groupware integration, adjust the browser settings under Tools ® Internet Optionsu2026 ® Security ® Custom Levelu2026 as follows:
    ActiveX controls and plug-ins:
    ○     Download unsigned ActiveX controls ® Prompt.
    ○     Initialize and script ActiveX controls not marked as safe ® Enable
    ○     Run ActiveX controls and plug-ins ® Enable

  • Getting Error while creating Document object  after  parsing XML String

    Hi All,
    I have been trying to parse an XML string using the StringReader and InputSource interface but when I am trying to create Document Object using Parse() method getting error like
    [Fatal Error] :2:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
    seorg.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
    Please find the code below which i have been experimenting with:
    import java.io.BufferedReader;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.IOException;
    import java.io.StringReader;
    import java.util.List;
    import java.util.*;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    import java.io.*;
    public class TestMain {
         public static void main(String[] args) {
              String file = "";
              file = loadFileContent("C:\\Test.xml");
              System.out.println("contents >> "+file);
              parseQuickLinksFileContent(file);
    public static void parseQuickLinksFileContent(String fileContents) {
    PWMQuickLinksModelVO objPWMQuickLinksModelVO = new PWMQuickLinksModelVO();
         try {
    DocumentBuilderFactory factory =           DocumentBuilderFactory.newInstance();
         DocumentBuilder builder = factory.newDocumentBuilder();
         StringReader objRd = new StringReader(fileContents);
         InputSource objIs = new InputSource(objRd);
         Document document = builder.parse(objIs); // HERE I am getting Error.
         System.out.println(document.toString());
    What is happening while I am using builder.parse() method ???
    Thanks,
    Rajendra.

    Getting following error
    [Fatal Error] :2:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
    seorg.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.

  • Error while creating document with attachment.

    Hi,
    I am getting an error "An error occured while creating the original attribute for PDF"
    I tried with out file attachment, it works as you know it is simple....
    I tried with various types of attachments like .TXT and .WRD (changed both wsapplication and docfile parameters), however i get the same error. I tried both from presentation and application server (by providing   pf_ftp_dest                = 'SAPFTPA'    pf_http_dest               = 'SAPHTTPA' )
    Any idea on how to solve this?
    All i need is create a DMS document with a PDF attachment from application server. Are there any other ways to solve this issue?
    ws_docdata-documenttype = 'ARE'.
    ws_docdata-description = 'BAPI DMS'.
    ws_docdata-statusextern = 'CR'.
    ws_file-storagecategory = 'DMS_C1_ST'.
    ws_file-wsapplication   = 'PDF'.
    ws_file-description = 'Job output'.
    ws_file-docfile = 'C:\CAD Integ BAPIS_46.pdf'.
    append ws_file to it_files.
    CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
      EXPORTING
         documentdata               = ws_docdata
    IMPORTING
         return                     = v_ret
    TABLES
         documentfiles              = it_files   .
    BREAK-POINT.
    IF v_ret-type CA 'EA'.
      ROLLBACK WORK.
      WRITE : v_Ret-message.
    ELSE.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = '5'.
    ENDIF.
    Thanks
    Pavan

    Hi,
    I found that it is due to document type = 'ARE'. I changed hte document type to one of hte standard type 'TST'. It works for presentation server, but does not work for application server. Any ideas? Any help is appreciated with points.
    ws_docdata-documenttype = 'TST'.
    ws_docdata-description = 'BAPI DMS'.
    ws_docdata-statusextern = 'CT'.
    ws_docdata-documentnumber = 'ZNG-10000000017'.
    ws_file-storagecategory = 'DMS_C1_ST'.
    ws_file-wsapplication   = 'PDF'.
    ws_file-description = 'Job output'.
    ws_file-docfile = p_file.
    append ws_file to it_files.
    CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
      EXPORTING
        documentdata               = ws_docdata
       pf_ftp_dest                = 'SAPFTPA'
       pf_http_dest               = 'SAPHTTPA'
    IMPORTING
       documentnumber             = v_docnum
       documentpart               = v_docpart
       documentversion            = v_docver
       return                     = v_ret
    TABLES
       documentfiles              = it_files   .
    IF v_ret-type CA 'EA'.
      ROLLBACK WORK.
      WRITE : v_Ret-message.
    ELSE.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = '5'.
    ENDIF.
    Thanks
    Pavan

  • Error while creating Documents in WPC

    Hi All,
    I am trying to create a form using an article template in Web page composer (NW 7.3). When i save the form keying in the required details I get an error saying "Error while saving the document" . This is what i found in Log files and have not been able to find out what is going wrong.
    I have all the required roles but still the form saving doesn't happen.
    Please help.
    #2.0 #2011 12 30 19:44:04:495#+0530#Error#com.sap.nw.pcc.editor.EditorTool$EditorToolDynPage#
    #EP-PIN-WPC-WCM#sap.com/com.sap.nw.pcc.xmleditor#C000AC10D25D11BE0000000100001CE4#1581950000000004#sap.com/com.sap.nw.pcc.xmleditor#com.sap.nw.pcc.editor.EditorTool$EditorToolDynPage#hussain.s#771##2EBA27FD32F011E1A35300000018237E#84d32d4332f011e18d6700000018237e#84d32d4332f011e18d6700000018237e#0#Thread[HTTP Worker [@1002771266],5,Dedicated_Application_Thread]#Plain##
    PCC exception while saving a document: Unable to authenticate request!XSRF token is not valid.
    [EXCEPTION]
    com.sap.nw.pcc.km.service.editor.EditorException: Unable to authenticate request!XSRF token is not valid.
         at com.sap.nw.pcc.editor.EditorBean.saveDocument(EditorBean.java:468)
         at com.sap.nw.pcc.editor.EditorTool$EditorToolDynPage.onSave(EditorTool.java:523)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:173)
         at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:106)
         at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
         at com.sap.nw.pcc.editor.EditorTool.doContent(EditorTool.java:131)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:205)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:121)
         at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$5.service(RequestDispatcherFactory.java:308)
         at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:270)
         at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.service(RequestDispatcherFactory.java:298)
         at com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:229)
    Thanks
    Hussain

    Hi Andrea,
    Please try below fix and check if this works for you. This solution has worked for us.
    Logon to NWA, and navigate to Configuration->Infrastructure->Java System Properties.
    Open Java System Properties and select the Instance and choose Show advanced properties.
    In the Details Section, switch to services tab and search for web container.
    Select the Web Container and in the properties serach for the string "XSRF".
    choose the property "xsrf.protection.enabled" . This property is set to true by defualt. Change it to false, save and restart portal.
    Then try saving WPC Forms
    Hope this helps.
    Thanks
    Hussain

  • Getting error while creating Customer Invoice Request via Web Service

    Hello,
    I am trying to create customer invoice request via web service.
    But I am getting the error message "No scheme configuration found for scheme '&CIRHP&' " continuously.
    It is working fine in reference tenant. But using the same payload its giving error in another tenant.
    Can you please tell me what is the root cause for this error?
    I have included the payload used in the prototype tenant(Payload.txt) and screen shot of the error.
    Thanks and Regards,
    Sriram

    Hi,
    Check the WSDL file is wellformed or not..You can test it using tools like XML Spy.
    Might be the attribute tag is missing something..If WSDL file is correct then, create proxy by selecting the WSDL file from local machine..
    Regards,
    Sunitha

  • Error while creating vendor master data via ALE

    Dear All
    I am trying to create vendor master data via ALE.
    I am using message type CREMAS.
    I get following error message in inbound system
    No batch input data for screen SAPMF02K 0610
    Message no. 00344
    If i try to manually create vendor , there is no error.  This particular screen belong to withholding tax, however all customizing settings for withholding tax are okay.
    please help.
    Thanks
    Sanjeev

    Try SAP Note # 96312 if that helps.

  • Error while creating document in cv01n

    In cv01n while attaching excel,word etc.file,at the time of saving error massege given is document can not change.Please provide me solution

    I have checked the img setting ,img setting is ok,still it gives program error  as below,can you suggest me whether reccomndations can implemented or not.
    Note 964021 -Update Task Fails When New Version Created
    Note Language: English Version: 2 Validity: Valid from 07.11.2006
    Summary
    Symptom
    Update task fails when a new version of an old document info record is
    created using CV02n transaction.The system throws an update terminate
    error.
    More Terms
    UPDATE TERMINATE, MESSAGE 26 178, CV200_DB_DOC_UPDATE, CV02N
    Cause and Prerequisites
    Program Error
    Solution
    Implement the note
    Header Data
    Release Status: Released for Customer
    Released on: 07.11.2006 12:13:26
    Priority: Correction with medium priority
    Category: Program error
    Main Component CA-DMS Document management
    Valid Releases
    Software Component Release From
    Release
    To Release and Following
    SAP_APPL 500 500 500
    SAP_APPL 600 600 600
    Support Packages
    Support Packages Release Package Name
    SAP_APPL 500 SAPKH50016
    SAP_APPL 600 SAPKH60008
    Attributes
    Attribute Value
    SAP objects CV200_DB_DOC_UPDATE
    Transaction codes CV02N,CV03N
    Transaktionscodes - manuell CV02N,CV03N
    SAP-Objekte - manuell CV200_DB_DOC_UPDATE
    DownPort/UpPort-WF UpPort check done, symptom
    repaired
    Correction Instructions
    19.06.2008 Page 1 of 2
    Note 964021 -Update Task Fails When New Version Created
    Correction
    Instructio
    ns
    Valid
    from
    Valid
    to
    Software
    Component
    Typ
    e
    Reference
    Correction
    Last
    Changed
    518092 500 500 SAP_APPL C P6DK093226 07.11.2006 17:30:29
    807328 600 600 SAP_APPL C P7DK042952 13.07.2006 14:50:41
    *) C Correction, B Pre-Implementation, A Post-Implementation, M Undetermined
    19.06.2008 Page 2 of 2

  • Error while creating Power View Report via BISM connection.

    I am able to create a PowerView Report using Microsoft BI Semantic Model connection without any problem. Everything works from home. But when I try to create Power View report using a BISM connection, I am running into errors. I've verified all permissions
    are all set correctly and SQL Browser service is running as well. Please see below error message. Greatly appreciate any pointers.
    Detailed error message
    Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'TemporaryDataSource'. ---> Microsoft.AnalysisServices.AdomdClient.AdomdConnectionException:
    A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. ---> System.Net.Sockets.SocketException: The requested name is valid, but no data of the requested type was found     at System.Net.Sockets.TcpClient..ctor(String
    hostname, Int32 port)     at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetTcpClient(ConnectionInfo connectionInfo)     --- End of inner exception stack trace ---     at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetTcpClient(ConnectionInfo
    connectionInfo)     at Microsoft.AnalysisServices.AdomdClient.XmlaClient.OpenTcpConnection(ConnectionInfo connectionInfo)     at Microsoft.AnalysisServices.AdomdClient.XmlaClient.OpenConnection(ConnectionInfo connectionInfo, Boolean&
    isSessionTokenNeeded)     at Microsoft.AnalysisServices.AdomdClient.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession)     at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetInstancePort(ConnectionInfo connectionInfo)
        at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetTcpClient(ConnectionInfo connectionInfo)     at Microsoft.AnalysisServices.AdomdClient.XmlaClient.OpenTcpConnection(ConnectionInfo connectionInfo)     at Microsoft.AnalysisServices.AdomdClient.XmlaClient.OpenConnection(ConnectionInfo
    connectionInfo, Boolean& isSessionTokenNeeded)     at Microsoft.AnalysisServices.AdomdClient.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession)     at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.XmlaClientProvider.Connect(Boolean
    toIXMLA)     at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.ConnectToXMLA(Boolean createSession, Boolean isHTTP)     at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.Open()     at Microsoft.ReportingServices.DataExtensions.AdoMdConnectionBase.InternalOpen()
        at Microsoft.ReportingServices.Diagnostics.DataExtensionConnectionBase.OpenConnection(IProcessingDataSource dataSourceObj, DataSourceInfo dataSourceInfo, IDbConnection conn)     --- End of inner exception stack trace ---;

    So , have you actually came to a conclusion about the problem. I have a similar one in my environment.
    <detail><ErrorCode xmlns="http://www.microsoft.com/sql/reportingservices">rsCannotRetrieveModel</ErrorCode><HttpStatus
    xmlns="http://www.microsoft.com/sql/reportingservices">400</HttpStatus><Message xmlns="http://www.microsoft.com/sql/reportingservices">Erro
    ao carregar o modelo para o item ou a fonte de dados 'http://gasmignethml/BICenter/Galeria%20PowerPivot/BIGASMIG.bism'. Verifique se as informações de conexão estão corretas e se você tem permissões para acessar a fonte de dados.</Message><HelpLink
    xmlns="http://www.microsoft.com/sql/reportingservices">http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsCannotRetrieveModel&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.5058.0</HelpLink><ProductName
    xmlns="http://www.microsoft.com/sql/reportingservices">Microsoft SQL Server Reporting Services</ProductName><ProductVersion xmlns="http://www.microsoft.com/sql/reportingservices">11.0.5058.0</ProductVersion><ProductLocaleId
    xmlns="http://www.microsoft.com/sql/reportingservices">127</ProductLocaleId><OperatingSystem xmlns="http://www.microsoft.com/sql/reportingservices">OsIndependent</OperatingSystem><CountryLocaleId
    xmlns="http://www.microsoft.com/sql/reportingservices">1033</CountryLocaleId><MoreInformation xmlns="http://www.microsoft.com/sql/reportingservices"><Source>ReportingServicesLibrary</Source><Message
    msrs:ErrorCode="rsCannotRetrieveModel" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsCannotRetrieveModel&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.5058.0"
    xmlns:msrs="http://www.microsoft.com/sql/reportingservices">Erro ao carregar o modelo para o item ou a fonte de dados 'http://gasmignethml/BICenter/Galeria%20PowerPivot/BIGASMIG.bism'.
    Verifique se as informações de conexão estão corretas e se você tem permissões para acessar a fonte de dados.</Message><MoreInformation><Source>Microsoft.ReportingServices.ProcessingCore</Source><Message msrs:ErrorCode="rsErrorOpeningConnection"
    msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsErrorOpeningConnection&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.5058.0"
    xmlns:msrs="http://www.microsoft.com/sql/reportingservices">Não é possível criar uma conexão com a fonte de dados 'TemporaryDataSource'.</Message><MoreInformation><Source>Microsoft.AnalysisServices.AdomdClient</Source><Message>A
    connection cannot be made to redirector. Ensure that 'SQL Browser' service is running.</Message><MoreInformation><Source>System</Source><Message>The
    requested name is valid, but no data of the requested type was found</Message></MoreInformation></MoreInformation></MoreInformation></MoreInformation><Warnings xmlns="http://www.microsoft.com/sql/reportingservices"
    /></detail>
    Any help will be very welcome.
    Thanks in advance
    abcoura | osmanos.org

  • Configuration error while creating index in KM

    Hi KM Expets,
    I am getting the following error while creating a new index via System Adminstration > System Configuration > Knowledge Management > Index Adminstration.
    Index could not be created; creating index failed: Invalid entry in configuration: section nameserver, key address, value tcpip://<nameserverhost>:<nameserverport> is invalid (Errorcode 7213)
    I guess all the field values filled by me are correct, so not able to get the problem.
    Any suggestions/help ?
    Regards,
    Saurabh

    HI
    check this links:
    https://www.sdn.sap.com/irj/sdn/thread?messageID=551325
    https://forums.sdn.sap.com/thread.jspa?threadID=953575&messageID=5752406#5752406
    Hope this may help you.
    Thanks
    Hussain.

  • Document numbering series for add-ons

    At the start of each year, we want to restart the document numbering series for add-on forms along with SAP forms, starting from '1.' However, we are able to define new series in the document numbering series form for add-ons also, but this does not update the ONNM table and when we go to the form and click add the document the document number does not increment and shows as '0.' Does this have a solution? Pl. help.

    The same number by different series would always be problematic.  If it is not legal requirement, avoid such attempt. 
    Thanks,
    Gordon

  • Error while creating delivary document

    Hi
    i got error while creating delivary document
    "Delevivary documents could not be created"
    Thanks&regards
    kishore kumar

    Hi Kishore,
    Please check the sales order is this relevent for the delivery or not.
    Check the copy control settings between your sales document type and delivery document type in VTLA transaction.
    Check the incompletion log for the sales order.
    I hope it will help you,
    Regards,
    Murali.

  • Heap space error while creating XML document from Resultset

    I am getting Heap space error while creating XML document from Resultset.
    It was working fine from small result set object but when the size of resultset was more than 25,000, heap space error
    I am already using -Xms32m -Xmx1024m
    Is there a way to directly write to xml file from resultset instead of creating the whole document first and then writing it to file? Code examples please?
    here is my code:
    stmt = conn.prepareStatement(sql);
    result = stmt.executeQuery();
    result.setFetchSize(999);
    Document doc = JDBCUtil.toDocument(result, Application.BANK_ID, interfaceType, Application.VERSION);
    JDBCUtil.write(doc, fileName);
    public static Document toDocument(ResultSet rs, String bankId, String interfaceFileType, String version)
        throws ParserConfigurationException, SQLException {
            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
            DocumentBuilder builder = factory.newDocumentBuilder();
            Document doc = builder.newDocument();
            Element results = doc.createElement("sims");
            results.setAttribute("bank", bankId);
            results.setAttribute("record_type", "HEADER");
            results.setAttribute("file_type", interfaceFileType);
            results.setAttribute("version", version);
            doc.appendChild(results);
            ResultSetMetaData rsmd = rs.getMetaData();
            int colCount = rsmd.getColumnCount();
            String columnName="";
            Object value;
            while (rs.next()) {
                Element row = doc.createElement("rec");
                results.appendChild(row);
                for (int i = 1; i <= colCount; i++) {
                    columnName = rsmd.getColumnLabel(i);
                    value = rs.getObject(i);
                    Element node = doc.createElement(columnName);
                    if(value != null)
                        node.appendChild(doc.createTextNode(value.toString()));
                    else
                        node.appendChild(doc.createTextNode(""));
                    row.appendChild(node);
            return doc;
    public static void write(Document document, String filename) {
            //long start = System.currentTimeMillis();
            // lets write to a file
            OutputFormat format = new OutputFormat(document); // Serialize DOM
            format.setIndent(2);
            format.setLineSeparator(System.getProperty("line.separator"));
            format.setLineWidth(80);
            try {
                FileWriter writer = new FileWriter(filename);
                BufferedWriter buf = new BufferedWriter(writer);
                XMLSerializer FileSerial = new XMLSerializer(writer, format);
                FileSerial.asDOMSerializer(); // As a DOM Serializer
                FileSerial.serialize(document);
                writer.close();
            } catch (IOException ioe) {
                ioe.printStackTrace();
            //long end = System.currentTimeMillis();
            //System.err.println("W3C File write time :" + (end - start) + "  " + filename);
        }

    you can increase your heap size..... try setting this as your environment variable.....
    variable: JAVA_OPTS
    value: -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m

  • Error While Creating Sales Document - on a new rollout

    Dear Friends,
            While going for new Plant Creation on a Rollout, i am getting the following error while creating Sales Order,
    Kindly suggest the needy to me,
    " _Template and one-time material processing is not activated                                                                               
    No determination routine is specified for the SD documents for the 
    permitted combinations                                                                               
    The combination of sales organization, document category, and      
    document type or delivery type for the SD document is not permitted_ "
    Thanks & Regards
    T.Arulvanan

    Dear Freind,
    Have you assigned the Sales Area to the Document types
    T-code : OVAZ.
    Also Check the Sales Applications  V/c2
    Can you double click on the error and See what is the datails of the error appearing?
    Regards,
    Amlan Sarkar

  • Error while creating Inter-company billing document

    Hi All,
    Help me to solve below error while creating inter-company billing document with ref to delivery document.
    " 1190984113 000000 Company code is not defined"
    Thanks for your help.

    Hi
    Please check wheather Customer has been extended to both company codes.Also check wheather 1190984113 is a G/L account.If it is a G/L account please check wheather it has been maintained in the company code or not.If it is not maintianed then kindly maintain the G/L account and then create the Intercompany billing document
    Regards
    Srinath

Maybe you are looking for