Blank lines in Export files

Hello,                                                                               
When we export in BPC version 7 there are blank lines in the file. This gets in the way when we automate the export and import into another system since it picks up blank lines as the end of file. Do you know why this is happening and how we can remove them on the export automatically so they do not show up? 
Many thanks in advance.
Regards,
Poonam

Hi All,
While extracting data from any application or making any selections to extract, the same thing is happening while exporting. This is happening with multiheader excel format.
Yes, i am trying to extract data using the transformation file and running the export package.
Would request you guide me further.
Regards,
Poonam

Similar Messages

  • Blank line in text file after download

    Hi  all,
    i am using the below code to get the 254 blank spaces at the end of the text file & it's comming correctly.
    generally i am downloading 2 lines in the original program  & i am getting one blank line in between these two lines.
    The main thing is that i am getting this blank line when i run this program in my office computer. But i am not getting this blank line when i run this same program in my home laptop. Please suggest why this blank line is appearing & any solution ?
    DATA: BEGIN OF OUTTAB OCCURS 100,
            PROD_CODE(3),
            LINE_DETL(2043),
          END OF OUTTAB.
    DATA:V_OUTPUT(2043).
    DATA: space_character type c.
    space_character  = CL_ABAP_CHAR_UTILITIES=>MINCHAR.
            DO 254 times.
               CONCATENATE V_OUTPUT space_character INTO V_OUTPUT.
               ENDDO.
               OUTTAB-LINE_DETL = V_OUTPUT.APPEND OUTTAB.
    call function 'GUI_DOWNLOAD'
       EXPORTING
          filename = OUTFILE1
          filetype = 'ASC'
          TABLES
          data_tab = OUTTAB

    I don't think this is issue of ABAP. Any way just to check download the file on laptop and open same file and office computer
    if file looks ok then it is OS or text editor issue.
    Thanks,
    AK.

  • Skipping Blank Lines in text File

    I am working on an assignment in which i have to read from a text file and store the strings individually. The problem i have is that the text file has blank line between each set of strings. So i figured to use "fin.nextLine();" to skip that blank line and continue with storing the values. but i get
    "Exception in thread "main" java.util.NoSuchElementException: No line found
         at java.util.Scanner.nextLine(Unknown Source)
         at processmsg.ProcessMessages.choice1(ProcessMessages.java:68)
         at processmsg.ProcessMessages.main(ProcessMessages.java:25)"
    which is where the fin.nexLine() is at. How can i just skip that blank line?
    System.out.println("Please enter the file location");
              Scanner stdin = new Scanner(System.in);
              String fileName = stdin.nextLine();
              // read the information from the file
              try {
                   Scanner fin = new Scanner(new File(fileName));
                   String tSendName = fin.nextLine();
                   while(tSendName != null)
                        String tRecieveName = fin.nextLine();
                        String tPhoneNumber = fin.nextLine();
                        String tDate = fin.nextLine();
                        String tTime = fin.nextLine();
                        String tStatus = fin.nextLine();
                        String tMessage = fin.nextLine();
                        PhoneMessage phonemessage = new PhoneMessage(tSendName, tRecieveName,
                                  tPhoneNumber, tDate, tTime, tStatus, tMessage);
                        fin.nextLine();
                        tSendName = fin.nextLine();

    don't know if you want the whole code, the whole code is kind of large and spread out over 3 different classes. and yes the text file is standard
    sender
    reciever
    phone number
    date
    time
    status
    message
    sender
    reciever
    phone number
    date
    time
    status
    message
    sender
    reciever
    phone number
    date
    time
    status
    message
    private static void choice()
              // scan the file location from the user
              System.out.println("Please enter the file location");
              Scanner stdin = new Scanner(System.in);
              String fileName = stdin.nextLine();
              // read the information from the file
              try {
                   Scanner fin = new Scanner(new File(fileName));
                   String tSendName = fin.nextLine();
                   while(tSendName != null)
                        String tRecieveName = fin.next();
                        String tPhoneNumber = fin.next();
                        String tDate = fin.nextLine();
                        String tTime = fin.nextLine();
                        String tStatus = fin.nextLine();
                        String tMessage = fin.nextLine();
                        PhoneMessage phonemessage = new PhoneMessage(tSendName, tRecieveName,
                                  tPhoneNumber, tDate, tTime, tStatus, tMessage);
                        // skip blank line between entries
                        fin.nextLine();
                        // test date string for correct format
                        int month = Integer.parseInt(tDate.substring(0,2));
                        int day = Integer.parseInt(tDate.substring(3,5));
                        int year = Integer.parseInt(tDate.substring(6,10));
                        // test time string for correct format
                        int hour = Integer.parseInt(tTime.substring(0,2));
                        int minute = Integer.parseInt(tTime.substring(3,5));
                        int second = Integer.parseInt(tTime.substring(6,8));
                        tSendName = fin.nextLine();
                        msgList.add(phonemessage);
                   fin.close();
              } catch (FileNotFoundException e) {
                   System.out.println("The file " + fileName + " was not found!");
              } catch (java.lang.NumberFormatException e) {
                   System.out.println("The date and/or time is not of the correct format");
         }

  • Blank line in receiver file adapter content conversion

    Hi,
    I am using a receiver file adapter. Everything is working fine. Except that a blank line is put by the file adapter between each records. It is a flat file format.
    I have used the stting below. How do we remove the blank line?
    Recordset : ACCTHDR,BATCHDR,TRANSREC,BATCHTLR,FILETLR
    ACCTHDR.fieldFixedLengths 1,7,4,9,8,665
    ACCTHDR.absoluteRowWidth  694
    ACCTHDR.addHeaderLine 0
    Thanks
    Sachin K

    Hi,
    .endSeparator
    The default value is a line break (no explicit separator after the last column; instead the structures are arranged line-by-line).
    If you enter a character string here, the system adds it to the last column as a closing character. You can also make this specification in addition to NameA.fieldFixedLengths. To include a line break following the closing character, you must explicitly define it by attaching ´nl´ (including the quotation marks) to the string.
    Regards
    Agasthuri Doss

  • Ignore blank lines in text file using number format exception.

    hi.. does anyone know how to ignore a blank line and move on to the next line? the text file contains:
    2
    bla bla bla
    112.4
    222.5
    ble ble vle
    115.5
    123.2

    The problem with trim() is that it only trims spaces (0x20). In a source code file, "blank" lines are as likely to contain TABs as spaces. I would recommend something like   if (line.length() == 0 || line.matches("\\s+")) If the inefficiency of matches() becomes a problem, you can use a pre-compiled Pattern object, or roll your own isItWhitespace() method.

  • Blank Line in output file

    Hi,
    I have a requirement for a blank line in between the Static data and dynamic values part as shown below
    Flag='Yes'
    Ready='No'
    Column1     Column2      Column3
    a                 b                 c
    d                 e                  f
    g                 h                  i
    Here after  "Ready='No'" there is a  blank line before the starting of Column1. I want to achieve that through xsd. I have tried with the nillable='true' , its not working.I am using SOA 11.1.1.7.0. Please help.
    Thanks,
    Abhishek

    Hi !
    Why are you using File.endSeparator '0'. ?
    Are you sure your input data doesn't have those 3 blank records in the end? Check the message payload in the sxmb_moni transaction.
    Regards,
    Matias.

  • Finding the number of Non-Blank Line in a File

    Does anyone know the command or how to find the number of non-blank lines in a text file? I have the program already reading characters, words, and total lines.
              BufferedReader FileIn = new BufferedReader( new FileReader( selectedFile ) );
                   Scanner scanWords = new Scanner (selectedFile);
                             String thisToken = "";
                             int numWords = 0;
                             while (scanWords.hasNext())
                             thisToken = scanWords.next();
                             numWords++;
         System.out.println("Total number of words: " + numWords);
         Scanner scanLines = new Scanner (selectedFile).useDelimiter("\n");
                             String thisToken2 = "";
                             int numLines = 0;
                             while (scanLines.hasNext())
                             thisToken2 = scanLines.next();
                             numLines++;
         System.out.println("Total number of lines: " + numLines);
         Scanner scanChars = new Scanner (selectedFile).useDelimiter("");
                             String thisToken3 = "";
                             int numChars = 0;
                             while (scanChars.hasNext())
                             thisToken2 = scanChars.next();
                             numChars++;
         System.out.println("Total number of characters: " + numChars);
                   FileIn.close();
              }

    Use BufferedReader#readLine() instead. Read the file once and process each line once.

  • How can i Insert a blank line an output file from my code

    I hav a problem in printing the charecters at th partyicular positon by getting the getFilePointer SO p-lz do help

    It's not so simple as you might have in mind.
    The following may serve to give some idea for your purpose..
    import java.io.*;
    public class RandAcc {
    public static void main(String[] args) throws Exception{
    try{
    long filePointer=0L;
    java.io.RandomAccessFile rf = new java.io.RandomAccessFile("in.txt","rw");//arbitrary input text file
    System.out.println(String.valueOf(rf.getFilePointer()));
    int q=0;
    while((q=rf.read())!=-1){
        filePointer=rf.getFilePointer();
        System.out.print(String.valueOf(q)); 
        System.out.print(": file pointer is at ");     
        System.out.println(String.valueOf(filePointer));
    rf.seek(0L);//reset the filepointer
    System.out.println(String.valueOf((char)rf.read()));//initial position
    rf.close();    
    catch (Exception e){
        throw e;
    }

  • How to handle blank line in File adapter

    Hi,
    I am using a file adapter with CSV as input file. If I have a blank line in CSV file, BPEL is failing read it, no instance is created and file is archieved.
    Please let me know how to handle this issue.
    Thanks

    Hi Yatan,
    I am already using rejectedMessageHandlers, I am on 10.1.3.3.
    Here's my bpel.xml
    ============
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BPELSuitcase>
    <BPELProcess id="EmpAddressUpdABCSImpl" src="EmpAddressUpdABCSImpl.bpel">
    <partnerLinkBindings>
    <partnerLinkBinding name="ReadFile">
    <property name="wsdlLocation">ReadFile.wsdl</property>
    <property name="rejectedMessageHandlers">file://E:/HRARCHIVE/BadData</property>
    </partnerLinkBinding>
    <partnerLinkBinding name="InsertAddressUpd">
    <property name="wsdlLocation">InsertAddressUpd.wsdl</property>
    <property name="retryInterval">60</property>
    </partnerLinkBinding>
    </partnerLinkBindings>
    <configurations>
    <property name="sensorLocation">sensor.xml</property>
    <property name="sensorActionLocation">sensorAction.xml</property>
    </configurations>
    <activationAgents>
    <activationAgent className="oracle.tip.adapter.fw.agent.jca.JCAActivationAgent" partnerLink="ReadFile">
    <property name="portType">Read_ptt</property>
    <property name="rejectedMessageHandlers">file://E:/HRARCHIVE/BadData</property>
    </activationAgent>
    </activationAgents>
    </BPELProcess>
    </BPELSuitcase>
    Someone told me that this can be achieved by changing the native schema, I tried many options but no result. Please suggest me.
    -- Shirish

  • How to skip blank line in FCC

    Hi,
    How to deal with blank rows in FCC for fixed width file?
    I want to ignore these records as they will fail the message in mapping.
    thanks,
    Anirudh.

    Hi
    Look this thread might help u
    Blank line in receiver file adapter content conversion

  • Extra blank lines in source code

    I have built a website in Dreamweaver CS4 and have a client editing pages in Contribute CS5. Both of us are working on Windows 7, and the site is hosted on Linux. When she makes edits to the page, something is introducing a GAZILLION blank lines in the source code. A typical page for this site is about 380 lines of code. The problem page is now more than 310,000 lines code with 100-200 blank lines between every "real" line of code. What the...?!
    I need to know how to stop this and how to remove the blank lines from the source code using Dreamweaver.
    The page in question lives here: http://www.alexandercitychamber.com/member-category.html
    HELP!!!
    Jeff

    Hello, Diane -
    We've got two separate issues here, but I think we have the solution to both.
    1. How to stop Contribute from adding blank lines in the code, and
    2. How to clean up a GAZILLION lines of blank code in a document.
    First, Number 1. I assume you're working in Dreamweaver. If not, I'm not sure how to guide you. But, when you define a Contribute Site, there is an area to specify administrative roles and permissions. Under each Role, at the bottom, you will see a popup for what kind of server the site is hosted on. The default is Windows. I had to change this to Unix (Linux) to match the hosting of our problem site. Find out what platform your host is using. You will have to specify this under each admistrative Role. After doing this, I had the client make some edits, then I opened the files in Dreamweaver. No new blank lines. I admit, I still have my fingers crossed somewhat.
    Okay, now how to clean up your source code and remove blank lines. A developer friend found this on some forum I had not seen. I don't know where, but I am grateful to the person who wrote it. It didn't get all the blank lines in my files, but I think some of the others, which I removed manually, were probably from the client pasting content in from Word. Here's what to do:
    1. Open the file in Dreamweaver
    2. Click CTRL + F, or go to EDIT > FIND AND REPLACE
    3. Select "Current document" in "Find In" (You can also select the folder if you have multiple files.
    4. Search in "Source Code"
    5. Check the box labeled "Use regular expression"
    6. Type "[\r\n]{2,}" (without quotes) in "Find"
    7. Type "\n" (without quotes) in "Replace"
    8. Press "Replace All"
    The operation chugged for a few minutes with my 301,000-line document. Yours may a take a little longer, but it did work. Good luck!
    Jeff
    [email protected]

  • Export file: EXPDAT.DMP

    Hi all, need urgent assistance
    am doing a full export..started since friday ...normally this should take 2 days. that is for whatever reason on monday morning it should have been done. The last line is
    Export file: EXPDAT.DMP >
    and from my last experience it can be like this for days without any progress(6 days or more)...and if enter key is pressed. it will give export terminated unsuccessful message
    does it mean the export is completed?
    all my folder destinations are already populated with copies of the exported files.
    i await your responses
    thanks

    Please see below....that was the full export command that was used
    USERID=user/password@H_172.7.303.72
    LOG=E:\history\02Nov2007history.log
    FULL=Y
    DIRECT=Y
    FILE=(
    E:\HISTORY\hist_01.dmp,
    D:\DUMPS\history\hist_02.dmp,
    D:\DUMPS\history\hist_03.dmp,
    D:\DUMPS\history\hist_04.dmp
    E:\HISTORY\hist_05.dmp,
    E:\HISTORY\hist_06.dmp,
    E:\HISTORY\hist_07.dmp,
    E:\HISTORY\hist_08.dmp,
    E:\HISTORY\hist_09.dmp,
    E:\HISTORY\hist_10.dmp,
    E:\HISTORY\hist_11.dmp,
    E:\HISTORY\hist_12.dmp,
    E:\HISTORY\hist_13.dmp,
    E:\HISTORY\hist_14.dmp,
    C:\HISTORY\hist_15.dmp)
    FILESIZE=30000M
    your kind response please

  • Sharepoint Designer 2010 inserting blank lines

    Sharepoint Designer (SP1) is intermittently inserting hundreds of thousands of rows as I am working with an .aspx document. This bug, which was first present in 2007, has been reported by many people over the years; it seems to remain in 2010.
    Does anyone have a solution for this issue? Is there something in my page, which contains a bunch of xsltlistviews, that could be blowing up this file?
    Thanks.

    All -- 
    FYI, here is a decent workaround to the problem of SPD 2013 (SharePoint Designer 2013) inserting blank lines into pages.
    Here are the steps.
    - Get CodeMaid (free) or similar coding-tool plugin/extension for Visual Studio 2013 (VS 2013) that can remove blank lines.
    - Check out the file in SPD.
    - From SPD, right click the file and choose open with, then choose VS.
    - Run CodeMaid clean processing in VS, which will remove multiple consecutive blank lines.
    - Save file in VS.
    - Close file in VS.
    - Check in file with SPD.
    - Done.
    It may seem like a lot of steps, and it is, and it odd the MS does not simply use the same code editor base for both VS and SPD, but using this workaround is actually pretty quick and easy, and easier still if you use the VS editor to code the files (instead
    of the SPD editor) because the VS has way better code-folding and code-completion and code-digging anyway.
    Just thought I would mention a (fairly) quick and easy way to workaround this SPD shortcoming.
    HTH.
    Thanks.
    -- Mark Kamoski

  • CRXI Export to text - suppressed section creates blank lines

    I'm using CRXI Proffesional - full version 11.5.11.1470
    I have a report that uses the typical "stealth" subreport to obtain and pass info to the container, but remains invisible in preview mode. The fields in the subreport are all suppressed, the sections in the subreport are suppressed if blank and the subreport itself is suppressed when blank, the section that contains the subreport is also suppressed if blank.
    This has always worked fine to get info into the container from the subreport while not creating any "white space" on the report.
    Print preview and export to pdf both function just fine, omitting the blank lines.
    It seems that exporting this to a text file is now creating blank lines for each occurence of the subreport.
    I have seen this problem in a couple of forums but have not seen a resolution yet.
    Does anybody have any idea how I can stop the exporting of suppressed blank sections ?

    Good morning.
    We've got something to get straight first
    When you say "...from the Report Viewer. The report printed as expected on HP printer...", do you mean the viewer of the .NET app, or the viewer of the CR designer?
    And version 12.0.0.683, is very old (well as far as CR is concerned anyhow   ). That version is SP 1, we are now on SP 2. So that will be the place to start. Get to SP 2 which can be downloaded from here;
    https://smpdl.sap-ag.de/~sapidp/012002523100009038092009E/cr2008win_sp2.exe
    Ludek

  • Blank line is appearing in the file in GUI_DOWNLOAD

    Hi all,
    i am downloading two lines into the text file. i am getting one blank line in between this two line if i use the 'GUI_DOWNLOAD' FM. This blank line is not appearing if i use 'WS_DOWNLOAD' FM.  Please advise why the blank line is comming between this two downloaded line. Thanks
    DATA: BEGIN OF OUTTAB OCCURS 100,
    PROD_CODE(3),
    LINE_DETL(2043),
    END OF OUTTAB.
    DATA:V_OUTPUT(2043).
    DATA: space_character type c.
    space_character = CL_ABAP_CHAR_UTILITIES=>MINCHAR.
    DO 254 times.
    CONCATENATE V_OUTPUT space_character INTO V_OUTPUT.
    ENDDO.
    OUTTAB-LINE_DETL = V_OUTPUT.APPEND OUTTAB.
    call function 'GUI_DOWNLOAD'
    EXPORTING
    filename = OUTFILE1
    filetype = 'ASC'
    TABLES
    data_tab = OUTTAB

    Hi Pabitra,
         My unerstanding of your requirement is " you are trying to download a file to local drive using GUI_DOWNLOAD and it give a blank line between 2 data and the same using WS_DOWNLOAD is not giving any line in between the data".
       I have tried the code piece you have provide with both the FM's and both downloaded the similar file i mean both downloaded the data similarly. Please see the code below
    DATA: BEGIN OF OUTTAB OCCURS 100,
    PROD_CODE(3),
    LINE_DETL(2043),
    END OF OUTTAB.
    DATA:V_OUTPUT(2043).
    DATA: space_character type c.
    space_character = CL_ABAP_CHAR_UTILITIES=>MINCHAR.
    V_OUTPUT = 'Please print it'.
    DO 254 times.
    CONCATENATE V_OUTPUT space_character INTO V_OUTPUT.
    ENDDO.
    CONCATENATE V_OUTPUT 'testing' INTO V_OUTPUT.
    OUTTAB-LINE_DETL = V_OUTPUT.APPEND OUTTAB.
    CLEAR OUTTAB.
    OUTTAB-LINE_DETL = V_OUTPUT.APPEND OUTTAB.
    CLEAR OUTTAB.
    *call function 'GUI_DOWNLOAD'
    *EXPORTING
    *filename = 'C:\test2.txt'
    *filetype = 'ASC'
    *TABLES
    *data_tab = OUTTAB.
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
       FILENAME                      = 'C:\test1.txt'
       FILETYPE                      = 'ASC'
      TABLES
        data_tab                      = OUTTAB.
    I think the Blank line which you got would be a result of Word wrap property of the notepad.
    If i did not get your question correctly can you please elaborate me.
    Thanks & Regards!
    Praveenkumar T.

Maybe you are looking for

  • Saving multiple scanned pages as single document with 8620

    I need to scan multiple pages and save as a single document. I am scanning using the AiO remote app and my iPad Air. I see the "Add Pages" icon and use it, but when I save, it saves as individual documents. I need multiple pages to be a single docume

  • Adobe air Won't install apps; won't even install

    I tried installing the new seesmic desktop app and kept claiming the package was damaged, so I used perfect uninstaller to uninstall adobe air and tried a reinstall, it now says I need admin rights which is odd because I'm logged into an admin accoun

  • Performance issue on calling the API queryFolders to retrive the subfolders

    Hi, We are using 10.3.0 collaboration server.When we make an API call to get the folders under a parent folder, the API is taking more than 2 minutes to return. When we did research, found out that the query collaboration server is executing taking t

  • How to Delete Excess Fonts

    InDesign Cs5 came with many fonts that I will never use. Can I winnow these out without damage to the program? How? And will this improve speed of the program?

  • Housebank field should come as default in invoice by substitution

    Dear Gurus, I want to make the house bank field to be defaulted at Invoice. I am trying with substitution.  But I am not able to get the housebank field as the substitutable field. Anybody can help me out in this issue. I am able to get the account I