Insert Blank Row after writing record to .csv

J Developer 11.1.1.6.0
Oracle SOA 11g - BPEL
I am currently performing 3 separate transformations in a bpel process.
In the first transformation I extract header level information (only 1 record line) and write this to a csv file together with HEADERS.
In the second transformation I extract Detail level information (1 or more record lines) and APPEND this to the same csv file mentioned above together with HEADERS.
In the third transformation I extract Footer level information (only 1 record line) and APPEND this to the same csv file mentioned above together with HEADERS.
an example of the resulting csv file (opened in Excel)
=========================================
|FILENAME     |DATE          |NUMBEROFRECORDS|     <-------------- 1st Transform HEADER
|Dummy File    |08082013   |3                                     |     <-------------- 1st Transform RECORD DATA
|DOCREF        |VAT            |AMOUNT                       |     <-------------- 2nd Transform HEADER
|1                     |30               |100                                 |     <-------------- 2nd Transform RECORD DATA
|2                     |20               |200                                 |     <-------------- 2nd Transform RECORD DATA
|3                     |10               |300                                 |     <-------------- 2nd Transform RECORD DATA
|TOTALDOCS |TOTALVAT|TOTALAMOUNT            |     <-------------- 3rd Transform HEADER
|3                     |60               |600                                 |     <-------------- 3rd Transform RECORD DATA
========================================
REQUIREMENT : I NEED TO INSERT A BLANK LINE/ROW BEFORE THE DETAIL HEADER AND ANOTHER BLANK LINE/ROW AFTER THE LAST DETAIL RECORD.
i.e. . The resulting file should look as follows :-
=========================================
|FILENAME     |DATE          |NUMBEROFRECORDS|     <-------------- 1st Transform HEADER
|Dummy File    |08082013   |3                                     |     <-------------- 1st Transform RECORD DATA
|                       |                   |                                       | <----------------------------------------------------------------- INSERT FIRST BLANK LINE/ROW
|DOCREF        |VAT            |AMOUNT                       |     <-------------- 2nd Transform HEADER
|1                     |30               |100                                 |     <-------------- 2nd Transform RECORD DATA
|2                     |20               |200                                 |     <-------------- 2nd Transform RECORD DATA
|3                     |10               |300                                 |     <-------------- 2nd Transform RECORD DATA
|                       |                   |                                       |<----------------------------------------------------------------- INSERT SECOND BLANK LINE/ROW
|TOTALDOCS |TOTALVAT|TOTALAMOUNT            |     <-------------- 3rd Transform HEADER
|3                     |60               |600                                 |     <-------------- 3rd Transform RECORD DATA
========================================
This is straight forward to perform in Excel once the file is opened, but my requirement is to have the file opened in the format displayed above without Human intervention.
Is it possible to accomplish this?
Any advise/guidance will be highly appreciated.
Thanking you in advance

Hi Vlad
Sorry for this late response, I will attempt what you have suggested.
Its just that the project that this query is related to was put on the back burner...
I will provide feedback regarding the outcome soon...
Regards

Similar Messages

  • Insert  Blank row  After every Row  in alv report

    How to insert blank  row After every row  in Alv report

    what do you mean by a 'blank row'? ALV displays tabular data with 'any' number of columns. Now if you actually want a blank row (no columns at all, just a row), then that is just not possible. If I'm not mistaken, this question was posted before, so try to do a search on SCN. See what is says.

  • Insertion of a blank row after change of persk field in a HR report

    Hi,
    I want to Insert of a blank row after change of persk field in a HR report.
    Any suggestions??
    rgrds,
    pranjal

    Hi,
    use this....
    INSERT INITIAL LINE INTO <tab> INDEX <idx>.

  • EvDRE Question -- Inserting Blank Rows

    Hi all,
    Here's a good question that we've run into a couple of different times with EvDRE:  Say you are specifying a Memberset to expand on that will consist of a comma-delimited list like:
    bas(Accounts_Receivable), Accounts_Receivable,
    bas(Accounts_Payable), Accounts_Payable,
    bas(Notes_Receivable), Notes,Receivable,
    bas(Fixed_Assets), Fixed_Assets   ...etc.
    This would expand each of the four account groups, and follow each of them with their respective parent.
    Question:  What's the best way to insert a blank row after each parent/subtotal?
    It turns out that if you use the SUPPRESS=Y for that Expansion, that the Blanks get suppressed (since the suppression is .  Also, I'm not sure if there is a good Before/After Range option... But, how about maybe using INSERT ?
    Thanks,
    Garrett

    Garrett,
    You can insert blank lines by adding extra commas with nothing in between.
    So in your example this would mean:
    bas(Accounts_Receivable), Accounts_Receivable,,bas(Accounts_Payable), Accounts_Payable,,bas(Notes_Receivable), Notes,Receivable,bas(Fixed_Assets), Fixed_Assets
    Suppression will also suppress the blank lines, so you cannot use that function in this solution.
    The option 'insert' will give you the possibilitie to manually insert new lines which you have to select with your right mouse button as an enduser, so I think this is useless this situation.
    Hope this helps,
    Alwin

  • Report Painter insert blank line after report header

    Hi Expert,
    I have a problem to insert a blank line (a spacing) after the report header of my customized report painter.
    For example, in standard cost center report, S_ALR_87013611, there is a small box listed information like cost center/group ... and reporting period.
    Right after reporting period, the report header box ends, and there is a space line between it and the cost element data ...
    For my customized report painter, I cannot make this space line.
    I tried edit > row > insert blank line ... but not successful ... kindly advise.
    Thanks and regards,
    -CK

    Hi
    In KKO2 go to output tab, here under layout, tick header and then press pencil symbol and in the editor you write your header. I think this will give you desired result.
    Regards
    Rajneesh Saxena

  • Inserta blank row and column

    Hi
    Gurus
    After the Expansion, I would like to insert a blank column within the columnkey range and a blank row with in the row key range, without using NOEXPAND int he memberset
    please advice
    thanks

    Hi,
    A blank row or column can be inserted using the AFTERRANGE functionality. Please refer to the below link from help.sap:
    http://help.sap.com/saphelp_bpc75/helpdata/en/66/a04d49392d401382d0dc1b099acad0/content.htm
    Hope this helps.

  • Inserting Blank Line after subtotal in ALV

    Hi,
    I am using REUSE_ALV_GRID_DISPLAY for my report output and I am displaying the following fields :
    Company Code Comp Name  Bank Name Amount Data
    I am sorting my output based on the company code and displaying the subtotal for each company code.
    My requirement is that I need to insert a Blank line after every subtotaled value in the report output. like after the subtotaled value of company code say XXX a blank line should be inserted and then I should start displaying data for company code YYY.
    Please let me know if this is possible and if yes how to do that.
    In case I am not clear with my question please let me know.
    Regards,
    Lalit Kabra

    Hi,
    Following is my code ::
      wa_sort-fieldname = 'BUKRS'.
      wa_sort-tabname = 'WT_OUTPUT'.
      wa_sort-spos = '1'.
      wa_sort-up = 'X'.
      wa_sort-subtot = 'X'.
      wa_sort-group = 'UL'.
      APPEND wa_sort TO it_sort.
      CLEAR wa_sort.
      wa_sort-fieldname = 'WRBTR'.
      wa_sort-tabname = 'WT_OUTPUT'.
      wa_sort-spos = '4'.
      wa_sort-up = 'X'.
      wa_sort-group = 'UL'.
      APPEND wa_sort TO it_sort.
      CLEAR wa_sort.
    I have put the wa_sort-Group = 'UL' but could not get the desired results.
    What my need is that say for one company code there are five line items, and I need to sort the output by company code then after displaying the 5 line items, I need to display the subtotal of amount for that company code , then a blank line and then the data for the next company code should start.
    Please suggest how this can be achieved.
    regards,
    Lalit

  • JTable insert a row after the table is displayed.

    I'm using the SunOneStudio and when I define the columns and rows for the table. My problem is that I need to have a ADD button and to be able to insert a Row to this predefined table.
    I know it's pretty basic, but I'm stack in here.
    THANKS A LOT FOR YOUR HELP ..

    This thead should get you started:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=314155

  • How to insert Blank rows while Zero Suppression is Activated?

    I am using BI 2004s and have applied zero suppression to a query I have built, how ever this removes the blank rows I am using to format the report. Any ideas on how I could get the blank rows to remain whilst removing zero value rows?
    Thanks
    Stu

    in zero suppression, select active(All values = 0)
    *reward if helpful*

  • Sap.m.Table generating first two blank rows after adding more rows.

    Hi everyone,
                          I am stucked in a very bad condition the problem is with the table rows and columns. I am generating dynamic table columns and rows based on searched unit so whenever i am searching i created a function for initializing the table rows and columns i am looping the array for whatever the size of rows and columns it will display up to 5. My issue is with the request going is adding more times then the required one. So if anyone can check for the solution. Only problem is my data is generated correct but next time i call this method again it is hiding the first 2 rows.
    function initializeGrid() {
        if (SHOPFLOOR_DCS_UNIT_KEY != null) {
            var dcsComboBox = sap.ui.getCore().byId("selectDCSName");
            var dcsName = dcsComboBox.getValue();
            var viewData = {};
            viewData.EntityName = "DataCollectionSetAttribute";
            viewData.Condition = [{ColumnName : "DcsName",Value :dcsName}];
            viewData.Projection = {AttributeName:true,AttributeType:true,Length:true,Precision:true,LowerLimit:true,
                    UpperLimit:true,DefaultValue:true };
            $
            .ajax({
                type : "POST",
                url : "/demo/xsds/designer/SelectByQueryService.xsjs",
                contentType : "application/json",
                data : JSON.stringify(viewData),
                dataType : "json",
                success : function(data) {
                    /*dcDataTable.unbindItems();
                    dcDataTable.removeAllItems();
                    dcDataTable.removeAllColumns();*/
                    var dcsCols = data;
                    if (data != null
                            && data.length > 0) {
                        var firstColumn = [{
                            "AttributeName": "SerialNumber",
                            "ModifiedAttributeName": "SerialNumber"
                        for (var index = 0; dcsCols.length > index; index++) {
                            var currentRow = dcsCols[index];
                            if (currentRow.AttributeName != null
                                    && currentRow.LowerLimit != null
                                    && currentRow.UpperLimit != null) {
                                dcsCols[index].ModifiedAttributeName = currentRow.AttributeName
                                + "["
                                    + currentRow.LowerLimit
                                    + " - "
                                    + currentRow.UpperLimit
                                    + ","
                                    + "Def:"
                                    + currentRow.DefaultValue
                                    + "]";
                                firstColumn
                                .push(dcsCols[index]);
                            } else if (currentRow.AttributeName != null) {
                                dcsCols[index].ModifiedAttributeName = currentRow.AttributeName
                                + "["
                                    + "Def:"
                                    + currentRow.DefaultValue
                                    + "]";
                                firstColumn
                                .push(dcsCols[index]);
                            if (currentRow.AttributeType != null
                                    && currentRow.AttributeType == "LocalDate")
                                dateAttributes[dateAttributes.length] = currentRow.AttributeName;
                        dcsCols = firstColumn;
                        runtimeDCS = dcsCols;
                        console.log("dcsCols", dcsCols);
                        var viewData = {};
                        viewData.EntityName = dcsName;
                        viewData.Cmd="GET";
                        viewData.UnitKey=SHOPFLOOR_DCS_UNIT_KEY;
                        $.ajax({
                            type : "POST",
                            url : "/demo/xsds/designer/AddOrRemoveDCSDataService.xsjs",
                            contentType : "application/json",
                            data : JSON.stringify(viewData),
                            dataType : "json",
                            success : function(data) {
                                console.log("dcsVals"+
                                        JSON.stringify(data)+data.length);
                                dcDataTable.removeAllColumns();
                                for (var i = 0; i < data.length; i++) {
                                    for (key in data[i]) {
                                        var textValue = data[i][key];
                                        if (typeof textValue !== "object"
                                                && typeof textValue === "string"
                                                && textValue
                                                .indexOf("/Date(") > -1) {
                                            var startIndex = textValue
                                            .indexOf("(");
                                            var endIndex = textValue.indexOf(")");
                                            var tempValue = textValue.substring(startIndex + 1,endIndex);
                                            var tempDate = new Date(parseInt(tempValue));
                                            data[i][key] = tempDate.toDateString();
                                dcsModel.setData({dcsRows : data});
                                sap.ui.getCore().setModel(dcsModel);
                                var columnList = new sap.m.ColumnListItem();
                                dcDataTable.bindItems({
                                    path: "/dcsRows/",
                                    template: columnList,
                                for (var i = 0; i < dcsCols.length && i<5; i++) {
                                    dcDataTable.addColumn(new sap.m.Column({
                                        header : new sap.m.Label({
                                            text : dcsCols[i].ModifiedAttributeName
                                    columnList.addCell(new sap.m.Text({
                                        text : {
                                            path : dcsCols[i].AttributeName
                                clearItems();
                            },error : function(response) {
                                console.log("Request Failed==>",response);
                                if (response.responseText.indexOf('<html>') == -1)
                                    console.log(JSON.stringify(response.responseText));
                                else
                                    console.log("Invalid Service Name");
                },error : function(response) {
                    console.log("Request Failed==>",response);
                    if (response.responseText.indexOf('<html>') == -1)
                        console.log(JSON.stringify(response.responseText));
                    else
                        console.log("Invalid Service Name");
        else {
            console.log("Data not found!!!");

    No, even with the select box gone the table still doesn't show the last two rows, so this seems indeed be irrelevant to the question.
    Best Regards,
    S.
    ***update***
    I tried to create a simple case in which the same strange behavior occurs but I can't seem to reproduce it. The table that produces the two blank rows is part of a complex application and I tried to extract enough of it for a simple test case that behaves the same way but I can't manage to do that. I guess that once I have the behavior I will also know what causes it.
    It seems that the iterator is set to rangesize 10 but the table rests on rangesize 12, when I looked at other tables in the application it seems that if I want to set the rangesize from 57 to 50, it remains on 57.
    Can anyone help me with either this limited info or otherwise instruct me to get more info ?
    Best Regards,
    S.
    Edited by: matdoya on Dec 1, 2008 5:51 AM

  • How to Print Blank row in between the lsit of records/rows

    Hi,
    My Rtf output is 10 rows with 12 columns in each row, which comes form the SQL query of the RDF. Ii want to display a blank row after 9th row and before 10th row. So it would be 11 rows where 10th row should be blank. So how can i get this done through RTF syntax.
    FYI, the o/p should look like below.
    column 1 column 2 column3 ...
    abc ac abc
    abc ac abc
    abc ac abc
    abc ac abc
    abc ac abc
    abc ac abc
    abc ac abc
    abc ac abc
    abc ac abc
    abc ac abc
    Any help is highly appreciated. Thanks much for your time and help.

    Hi,
    As far as I know, if we follow your steps: Page Layout settings > Page Setup > Print title> Sheet>Rows to Repeat at Top,  we can set the row labels to every page, please see the below image:
    We can see the row labels with page layout mode, but it does not display in Print Preview. Please try to save it as PDF or print it to see the row labels with every page.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Blank Row in ALV Grid Display

    In ALV Display I want to have a <u>BLANK row</u> everytime the value of 'Cross Company Code Document Number' (BVORG) changes.
    Is there a way to use the Sort Option of "REUSE_ALV_GRID_DISPLAY" to do this? Or is the only possible way is by modifying the ITAB that is being passed for display?
    If ITAB is the only method to do it then how should I go about making this happen?
    Thanks-
    Rohit.

    if you do again sort then blank rows will come top,so make sure that should not do sort after inserting blank rows.
    please sort it before inserting blank row .
    sort itab by fields..
    loop at itab.
    endloop.
    do not sort here.
    Thanks
    Seshu

  • Error while Insert new Row in Entity Base View Object

    Hi,
    can someone tell me the reason of following problem? :
    There is a Entity Base View object, which is Binded as ADF Table in a JSFX Page.
    I took the standard operations from the Control Panel: CreateInsert, Commit and Rollback.
    Places them a ADF Buttons.
    Whenever i am trying to insert a Row, after commit i am getting the ORA Error: ORA-01410: invalid ROWID.
    By the way: The Entity Object is using the RowID as Primary Key.
    When i press commit a second time, the the Row is inserted in the Database.
    Any Idea, how to workarround this ORA Error?
    Thank You!

    n by default if you had no pkconstrainst in db,
    in jdev default rowid as prim key.
    as john said make the key as proper.
    and do it.
    if you have db constrainst in db.
    it can be achived by dbconstrainstname with ora.
    what am saying dbconstranist name will map it ora.
    http://download.oracle.com/docs/cd/E21764_01/web.1111/b31974/bcadvgen.htm#BABEFGCI

  • Getting extra line after each record when opening a .txt file in excel

    Hi All,
    I have developed a program which downloads a file at application server.
    each record of file is 500 characters long & have CRLF at end.
    the file looks fine when opened in .txt format.
    however when i download it from application server to presentation server (using function "download to my computer"), & at presentation when i try to open it in excel format, it shows a blank line after every record.
    i don't want this blank line to appear if i download it & open it in excel.
    the file record is declared as char500 type.
    Please suggest how to deal with this.
    thanks in advance.
    Regards,
    Puja.

    Hi Puja,
    Check the file in the application server whether it has any gaps between the lines.
    Or else as you said if the file looks ok in .txt format, download the file in .txt and open the same file in excel (i.e. open with excel)
    Hope this sloves your problem.
    Regards,
    SB.

  • Min and Max and insert new rows

    Hello,
    I am really a beginner in Excel (2007). I am not sure if this is the correct forum, anyway.
    I have grouped some rows in a sheet (rows 1, 2 and 3, columns A and B, table below), some of the columns have numeric values in that group and I have a row (inside that group) that shows the maximum and minimum values (row 1):
              A     B 
    +  1   43   12 <- MAX and MIN values for row 2 and 3 columns A and B
    +  2   34   12
    +  3   43   34
    I am using MAX and MIN functions: A1 = MAX($A2:$A$3), B1 = MIN($B$2:$B$3)
    The problem comes when I want to insert more rows after row 3, the formula keeps wrapping to A$2:$A$3 therefore I need to readjust the formula to: MAX($A2:$A$4) manually (for MIN is the same).
              A     B 
    +  1   43   12 <- Are the same, they should be
    "98 and  10"
    +  2   34   12
    +  3   43   34
    +  4   98   10 <- New row, but the maximum and minimum continues to be the same, I want to extend the formula automatically to the 4 row when I insert the new row.
    Question:
    How can I extend the function of the MAX and MIN formula automatically when I insert new rows?
    Please consider that I may insert rows at the beginning, in the middle or the end.
    Thanks,
    Enrique.
    Kikeman Electric Systems Engineer

    Hi Enrique,
    Thanks for posting in MSDN.
    Based on the description, you want to modify the formula for the A1 and B1 cell when you insert a new rows.
    Yes, we can use Worksheet.Change to dermin the change of data on the worksheet then we can modify the formula as we wanted. Here is a sample for your reference:
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Me.Range("A1").Formula = "=MAX($A2:$A" & Me.UsedRange.Rows.Count & ")"
    Me.Range("B1").Formula = "=MIN($B2:$B" & Me.UsedRange.Rows.Count & ")"
    End Sub
    You can more detail about Excel VBA developing from link below:
    Getting Started with VBA in Excel 2010
    Welcome to the Excel 2013 developer reference
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Line saver tariffs - take a second look at the fig...

    Having done the maths on BT's "line saver upfront paying of rental", the deal is not quite what is portrayed, at least not for me.  ! currently pay a line rental of £13.29 pm, but get a paper-free discount of £1.25 pm, effectively reducing the line r

  • Dear All,what are the major issues in implementation in sap hcm

    what are the major issues in implementation in SAP HCM project scope is PA ,OM,TIME, INDIA PAYROLL

  • Table of Contents links not working after conversion to PDF

    I have created links in a MS Word 2007 document, including in a Table of Contents, a List of Tables, as well as internal cross-reference links.  I have converted to a pdf file using Acrobat 9 Pro.  All the links were retained except for the page link

  • FRM-41213 Unable to connect to the report server

    I am converting an app from 6i to 9i. There are many reports, and I am trying, rather unsuccessfully, to get them to work. I have run the report server setup, and have the service started on my laptop. I am trying to use the following code to run a r

  • IPhoto deletion: Seeking Help to fix!

    Okay, so, I tried fixing the whole iPhoto issue where I kept getting a loading bar. Left it for hours, didn't get anywhere. So, I deleted thee entire package figuring I'll just start anew, no problem. No, I have tried redownloading the iphoto softwar