How to prepare the Format of Flat file(Excel or Text file) for sales order

Hi All,
My requirement is to prepare the Flat File formats(Excel or Text file) for sales order Conversion using BAPI by COB.
Needed Sample Excel or Text flat file .
Thanks for all.
Regards,
Chowdary
Moderator message : Search for available information. Thread locked. 
Your similiar question [Flat files formats|Flat files formats] has been already locked for similiar reason.  Read forum rules before posting.
Edited by: Vinod Kumar on Jul 8, 2011 9:36 AM

Hi,
You can use something like this:
switch(cell.getCellType()) {
  case Cell.CELL_TYPE_STRING:
    System.out.println(cell.getRichStringCellValue().getString());
    break;
  case Cell.CELL_TYPE_NUMERIC:
    if(DateUtil.isCellDateFormatted(cell)) {
      System.out.println(cell.getDateCellValue());
    else {
      System.out.println(cell.getNumericCellValue());
    break;
    case Cell.CELL_TYPE_BOOLEAN:
      System.out.println(cell.getBooleanCellValue());
      break;
    case Cell.CELL_TYPE_FORMULA:
      System.out.println(cell.getCellFormula());
      break;
    default:
      System.out.println();
Hope it helps,
Daniel

Similar Messages

  • How to save the value in Cedit control into a text file bu using measurement studio c++?

    Im using measurement studio c++ to create a application. How to save a randomly generated value which display in the CNumberEdit Control to a text file? how to do the coding part?

    You can use the CNiFile class to write the value out to a file. For example, create a new Measurement Studio C++ project and follow these steps:
    Add a CNiNumEdit to the dialog.
    Add a member variable for the CNiNumEdit called m_numEdit.
    Add a button to the dialog.
    Double-click the button to add a message handler for the button's BN_CLICKED message.
    Add the following code to the button's BN_CLICKED message handler:
    CNiFile file("C:\\Values.log", CFile::modeCreate | CFile::modeWrite | CFile::typeText);
    file << m_numEdit.Value << endl;
    file.Close();
    Run the application, edit the CNiNumEdit's value, and click the button. The value should be written to the Values.log
    file as specified in the code above.
    Hope this helps.
    - Elton

  • How to test the RFC to Flat File scenario

    Hi,
    How to test the RFC to Flat File scenario
    regards,
    kiran

    Hi,
    After running the RFC it's going Dump.
    this is the error message i got.
    "Error analysis                                                                     
    An error occurred when executing a Remote Function Call.                     
    "CPI-C error CM_RESOURCE_FAILURE_NO_RETRY"                                                
    Status of connection.... "CODE=CM_RESOURCE_FAILURE_NO_RETRY -1 -1 SAPCODE=666
    CONV="                                                                      
    Internal error code.... "RFC_IO5"                                                           
    There is an error in the communication system. To clarify                    
    and resolve the error, contact your system administrator.                     "

  • How to change the format of a picture?

    I've saved a picture that I got from Twitter. The end of the picture file says ".jpg-large".
    This file will not open in Preview, nor in iPhoto which are the two apps where I knew how to change the format.
    Could anybody help me out in another method of changing this picture format?
    Thank you

    Rename it to end in .jpg.
    (77789)

  • How to insert data into the mysql table by giving as a text file

    Hi,
    Any one know's how to insert data into the mysql table by giving as a text file as the input in JSP.Please respond ASAP.
    Thanks:)

    At least you can try StringTokenizer to parse your text files. Or download a text JDBC driver to parse your files, for instance, HXTT Text(www.hxtt.net) or StelsCSV(www.csv-jdbc.com).

  • How to change the format in sap script

    Hi,
    I am working on a report which calls a sap script and i have to modify the script i.e. the values which are displaying in it. i had never worked on SAP SCRIPTS ,plzz provide me guidlines how to change the format of the data displayed in it.

    hi,
    this will give you the whole idea about the scripts in SAP the t-code is SE71.
    refer this link::
    [SAP SCRIPTS|http://help.sap.com/saphelp_40b/helpdata/en/d6/0dc169494511d182b70000e829fbfe/applet.htm]
    [WIKI|https://wiki.sdn.sap.com/wiki/display/ABAP/FormPrinting-SAPscript%2CSmartforms]
    regards
    sarves
    Edited by: Sarves Sombhatla on Feb 20, 2009 1:38 PM

  • How to check the format (PAL or NTSC) of a DVD?

    I wonder if someone can tell me how to check the format (PAL or NTSC) of DVD’s that I receive from my friends around the world. Many of them have no marking as to the format... Is there some software that can do this?

    Hello Peace Freak,
    have a look at myDVDedit (http://www.mydvdedit.com). It's actually designed to do postproduction on a DVD, but will also display a lot of info, such as TV standard, 16:9 vs. 4:3, etc.
    Insert your DVD, then launch myDVDedit and open the VIDEO_TS folder contained in your DVD. Click the IFO tab to find the information you're looking for.
    hope this helps
    mish

  • How to save the contents of a file(not a text file)

    Hi all, I want to save the contents of a file(,png file, not a text file) as a field in a class. Shall I have it as a string or byte array or something?
    I have tried saving a file in a string but there were some problems with loading the file from a different platform. Following is my code.
            String string;
            try {
                StringBuffer sb = new StringBuffer(1024);
                char[] characterArray = new char[1024];
                BufferedReader br = new BufferedReader(new FileReader(file));
                while(br.read(characterArray) != -1){
                    sb.append(String.valueOf(characterArray));
                br.close();
                string= sb.toString();
            } catch (IOException ex) {
                ex.printStackTrace();
            }and I use the following code to recover the string back to a stream, and save that stream back to a time later.
        ByteArrayInputStream bais = new ByteArrayInputStream(map.getBytes());I realized that because this file is not a text file, the string could cause some problems. But anyone could tell me if I should use a byte array or someting? and how?
    Any help would be appreciated!
    Cheers,
    Jing

    You should use a byte array, and the binary streams (InputStream a& OutputStream). Never use Strings and Reader/Writer if you have binary data.
    Kaj

  • How to change the format in shipping point

    Hiii.. When we define shipping point, how to change the format from hours to days for entering loading time & pick pack time.
    Regards,
    Jay

    When you maintain working times in define shipping point, the time is maintained in HRS. This is called precise scheduling.
    If u do not mainatin the workin times field (blank) then the time is maintained in days. This is daily scheduling.
    Vishal

  • How to use the DISPLAY RECORD Setup Command in an etext file?

    Hi All,
    How to use the DISPLAY RECORD Setup Command in an etext file?
    I want to display a <NEW RECORD> conditionally. The condition will be based on the data coming through from the xml file.
    Please help me with an example. The BI User guide also doesnt show any examples.
    Your help is appreciated.
    Rgds,
    Kiran Panditi

    Hi,
    You can use vb coding in BEx Analyser to calculate your unit price. For this you have to first display the attributes of your object "XYZ". Then you can use VB cosing to calculate the value for the unit price field.
    One more thing cna you clarify whether is it display attribute or variable ?
    Regards,
    Balajee

  • How to have the format bar on top in pages

    how to have the format bar on top in pages?

    Do you mean Pages, the Word like application in iWork?  If you do, I can ask the moderator move your thread to the Pages forum.

  • How to set the format mask

    Hi,
    Good Evening,
    How to set the format mask to text fields based on currencies.

    Hi Anil,
    i am taking one method for setting the format mask to front end values
    like this
    public String xxformatmask(String test,String currency,OAPageContext pageContext)
    String currencyFormattedNumber="";
    try {
    java.lang.Double num = new java.lang.Double(test);
    currencyFormattedNumber = pageContext.getOANLSServices().formatCurrency(num,currency);
    catch(Exception e) {
    System.out.println("the exception is"+e);
    return currencyFormattedNumber;
    every time call this method
    for text fields like this,
    OAMessageTextInputBean commval=(OAMessageTextInputBean)webBean.findChildRecursive("commval");
    String lesscomm=commval.getValue(pageContext).toString();
    String lesscommformat=xxformatmask(lesscomm,currency,pageContext);
    float lesscomm1=Float.parseFloat(lesscommformat);
    i got the error at runtimeee
    oracle.apps.fnd.framework.OAException: java.lang.NumberFormatException: For input string: "1,000.00"
         at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##
    java.lang.NumberFormatException: For input string: "1,000.00"
         at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
         at java.lang.Float.parseFloat(Float.java:394)
         at crm.oracle.apps.xxcrm.crmmgmt.quotationmgmt.server.xxcrmQuotationMgmtAMImpl.forserviceformvalsetting(xxcrmQuotationMgmtAMImpl.java:1994)
         at crm.oracle.apps.xxcrm.crmmgmt.quotationmgmt.webui.xxcrmServiceCostSheetCO.processFormRequest(xxcrmServiceCostSheetCO.java:345)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

  • How to write the location of a file in a text file?

    Hello All,
    I am doing a POC with the following scenario:
    Steps:
    1. Move a file from one location in your system to another location, say from C drive to D drive.
    2. After that i want to write the new location of the file in a text file.
    I have succesfully moved the file from C drive to D drive using the File Adapter and also FTP Adapter. However I am unable to copy or write the new location of the file into a text file. Please provide me any suggestions regarding this issue i am facing. Your help and support is highly appreciated. Thanks in advance.

    Hi,
    If want the file directory name to be captured in the BPEL process then add <element name="directory" type="string"/> in the inbound or outbound adapter header wsdl file. Then declare a variable of the header message type and in the 'adapter' tab of the receive or invoke activity select that variable which you previously created.
    Hope this helps.
    Rdgs.

  • How to convert a HTML files into a text file using Java

    Hi guys...!
    I was wondering if there is a way to convert a HTML file into a text file using java programing language. Likewise I would also like to know if there is a way to convert any type of file (excel, power point, and word) into text using java.
    By the way, I really appreciated the help that you guys gave me on my previous topic on how to extract tests from a pdf file.
    Thank you....

    HTML files are already text files. What do you mean you want to convert them?
    I think if you search the web, you can find things for converting those MS Office files to text (or extracting text from them, as I assume you mean).

  • Is it possible to export the out put of Crystal report into text file?

    Hi All,
    Is it possible to export the out put of Crystal report into text file?

    Hi
    Yes, Go to File --> Export --> Export Report --> Under Format select TEXT & select the destination as "Disk file"(defaultly selected)
    Give the proper details as per your requirement for "Characters per inch" & "Number of lines per page" & click on 'OK"
    In "Choose Export file" window, select the destination folder & provide file name. click on "SAVE"
    Regards
    Ashwini

Maybe you are looking for

  • Error 2003000: ODBC Error: Data source name not found or no default driver

    Hi Guys I am running Essbase (9.3.1) Integration server on 64-bit Microsoft Windows server 2003 (SP 2) and I get above error when I am trying create an OLAP metadata catalog using Integration Service Console. Could anybody help me please? Regards Cha

  • Soft returns not importing

    Hi. I recently impoterd a Frame 7.1 Chapter into RoboHelp HTML 8.0 and everything worked okay with the exception of soft returns. For some reason it didn't import these and I was left with large strings of test which I had to fix by hand. Any ideas?

  • Warning applet window

    I have the following config that my applications runs on OAS 4.0.8 with forms 5.0 It is client-server enviornment and in the client side the application is viewed using netscape navigator 4.7 and the user is getting the following message in the windo

  • How to delete runtimely created file?

    Hello, I have created an application which create xml file at runtime. When I immediately delete it, within fraction of seconds..it is not deleting..after some time it deletes. Please tell me how to solve this problem.

  • I bought photoshop elements 13 at Costco for my Mac i cannot find the serial number anywhere on the box

    i bought photoshop elements 13 at Costco for my Mac i cannot find the serial number anywhere on the box