Two column region with control break

Hi there,
I'd like to create a report with multiple columns. There is an excellent thread here:
Two column region, is that possible?
However, it seems to be very hard to implement control breaks based on column value. I had a test of new 3.1 interactive report and it does not seem to have this feature either.
Just wondering if anybody else has done something similar or has similar requirement?
Thanks in advance,
Ben

Hi there,
I'd like to create a report with multiple columns. There is an excellent thread here:
Two column region, is that possible?
However, it seems to be very hard to implement control breaks based on column value. I had a test of new 3.1 interactive report and it does not seem to have this feature either.
Just wondering if anybody else has done something similar or has similar requirement?
Thanks in advance,
Ben

Similar Messages

  • Doubts with control break statements on internal table loops (AT/ENDAT)

    Hi, i've had a couple of doubts for a long while which I hope someone can clarify today:
    1) I know how to use the AT statements, however, i'm not sure I get correctly what this part of help regarding this commands means:
    <i>"The control level structure with internal tables is static. It corresponds exactly to the sequence of columns in the internal table (from left to right). In this context, the criteria according to which you sort the internal table are unimportant."</i>
    I've always sorted the internal table before the control break and it works that way. For example:
    SORT ITAB BY EBELN EBELP.
    LOOP AT ITAB.
      AT NEW EBELN.
    *   Code for the order header
      ENDAT.
    ENDLOOP.
    If I <b>don't</b> sort the internal table, it doesn't work! (i get dupplicated processing). In the example, if i have more than one register with the same EBELN and they're not consecutive, the header gets processed twice. I really don't get that part of the help text.
    2) I know this: <i>"At the start of a new control level (i.e. immediately after AT), the following occurs in the output area of the current LOOP statement:
    All character type fields (on the right) are filled with "*" after the current control level key.
    All other fields (on the right) are set to their initial values after the current control level key."</i>
    My doubt is: WHY is that this way? Because sometimes (most times) I need those fields INSIDE the statement! So when that happened i've solved it in one of three ways:
    LOOP AT ITAB INTO WA_ITAB.
      WA_ITAB_AUX = WA_ITAB.
      AT NEW FIELD.
        WA_ITAB = WA_ITAB_AUX.
    *   ...Rest of the code for the first register
      ENDAT.
    ENDLOOP.
    LOOP AT ITAB INTO WA_ITAB.
      AT NEW FIELD.
        READ TABLE ITAB INDEX SY-TABIX INTO WA_ITAB.
    *   ...Rest of the code for the first register
      ENDAT.
    ENDLOOP.
    * (Without AT)
    LOOP AT ITAB INTO WA_ITAB.
      IF WA_ITAB-FIELD <> FIELD_AUX.
        FIELD_AUX = WA_ITAB_FIELD.
    *   ...Rest of the code for the first register
      ENDIF.
    ENDLOOP.
    Is there any problem with this way of coding? Can be done better?
    Thank you very much in advance.

    Hi..,
    1)
    See if u sort the table on a field on which u r using AT ENDAT .. then all the records which are having the same value for that field will form a group or those reocrds will be at one place.. so when u sort the table for all the records  AT ENDAT  will get executed onli once..
    If u dont sort this table on this field then all these records will be at different places and in between there may be records with different value for this field.. so this AT ENDAT will get executed for each record !!
    2)
    No u cannot use the Right hand fields of the field in the table .. Because these AT events work as Group based operations... So till that field on which AT ENDAT is working it breaks that record into two groups.. One is the left hand fields including that field.. and right hand fields as another group.. and makes the right hand group as stars ****.  Thats y u can observe that even any one field in the left hand group changes the AT ENDAT will get executed  !!!!
    Hope u understood !!!
    regards,
    sai ramesh

  • Interactive report with control break displays no data, until control break is unchecked

    Hello,
    I have an interactive report that is base upon a collection. When one first access the page the report shows no data(no errors are given) and the control break box is red. Once the control break box is unchecked, all the data is shown. Furthermore, navigating to another page causes the same issue.
    Any idea into how I can solve this issue will be appreciated.
    Thank you,
    Apex 4.2
    Oracle 11g 2.0.3
    Apache Tomcat
    Guyenko

    Vincent,
    The aggregates are applied to each control break group, or, if you don't have any, then they're applied to the full report. So, in your case the "count" (= count of non-null values for a column, same as in SQL) should mean there is 1 non-null value in each group.
    Does that description match what you're seeing?
    - Marco

  • How to export interactive reports with control break

    Hi to all,
    I have this interactive report:
    select "Work ID", MA01_WORK_GROUP_ID, "Relco",
    "Data Esecuzione", "Stato"
    from (
    SELECT ma01.ma01_work_id as "Work ID", ma01.ma01_work_type_id, ma01.MA01_WORK_GROUP_ID,
    MA01.MA01_START_DATE as "Data Esecuzione",
    MA01.MA01_END_DATE as "Data Fine Esecuzione",
    (SELECT ma07.ma07_system_id
    FROM mobi_aes.ma07_work_system ma07
    WHERE ma07.ma07_work_id = ma01.ma01_work_id
    --and ma07.ma07_SYSTEM_TYPE_ID = 10
    and ma07.ma07_SYSTEM_TYPE_ID in (10, 70, 90)
    AND ROWNUM < 2) AS "ID Contatore",
    (SELECT ma03_value
    FROM mobi_aes.ma03_work_metadata
    WHERE ma03_work_id = ma01.ma01_work_id
    AND ma03_name = 'FORNITURA') AS "Fornitura",
    (SELECT ma03_value
    FROM mobi_aes.ma03_work_metadata
    WHERE ma03_work_id = ma01.ma01_work_id
    AND ma03_name = 'RELCO') AS "Relco",
    MA93.MA93_DESCRIPTION as "Stato"
    FROM mobi_aes.ma05_work_status ma05, mobi_aes.ma01_work ma01, mobi_aes.MA93_STATUS_TYPE ma93, ma11_planning ma11
    WHERE ma01.ma01_work_id = ma05.ma05_work_id
    and ma11.ma11_WORK_ID = ma01.ma01_WORK_ID
    and ma93.MA93_STATUS_ID = ma05.ma05_STATUS_ID
    and ma05.MA05_STATUS_ID in ('AS','CO','NI')
    AND UPPER (ma01.ma01_work_group_id) = DECODE(:P103_WORK_GROUP_ID,'-1',UPPER (ma01.ma01_work_group_id),:P103_WORK_GROUP_ID)
    and trunc(ma11.ma11_start_date) >= DECODE(:P103_START_DATE,'-1',to_date('01/01/1970','dd/MM/yyyy'),to_date(:P103_START_DATE,'dd/MM/yyyy'))
    and trunc(ma11.ma11_END_DATE) <= DECODE(:P103_END_DATE,'-1',to_date('31/12/9999','dd/MM/yyyy'),to_date(:P103_END_DATE,'dd/MM/yyyy'))
    ), mobi_aes.ma51_work_type ma51
    where ma51.ma51_work_type_id = ma01_work_type_id
    and ma51.ma51_work_type_id in (7,50)
    I set a control break on the "Relco" column, so APEX generates correctly more "sub-report".
    I need to export into csv file every single "sub-report".
    Is it possible ?
    Does another solution exist ?
    Thanks for all
    Francesco

    Hello,
    Getting the breaks in the csv export doesn't work unfortunately.
    You would need to create your own procedure to get the correct csv.
    There are many blog posts for that
    e.g http://spendolini.blogspot.com/2006/04/custom-export-to-csv.html
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.sumneva.com/

  • Proble with control breaks

    Hi,
    When i use control breaks  and write a output i get astreix(*) in the output.
    I even tried with a local vriable but the value is not displayed in the output. i need to output the material description in the output.
    My code is as follows:
    LOOP AT lt_output INTO wa_output.
        AT NEW matnr.
          CLEAR: lv_matdesc.
          MOVE: wa_output-maktx TO lv_matdesc.
          WRITE: / '|',  wa_output-matnr, 30(40) lv_matdesc, 80(5)
                 wa_output-cocode, 86(4) wa_output-valarea, 93  '|'.
        ENDAT.
          AT END OF matnr.
          WRITE: / '|', 2(91) sy-uline, 93 '|'.
          WRITE: / '|', '*', 4(15) wa_output-matnr, 93 '|'.
          WRITE:/'|', 48(10) lv_mat_qty, 59(4) wa_output-bum, 70(15)
                lv_mat_amt, 85 wa_output-curr, 93 '|'.
          WRITE: / '|', 2(91) sy-uline, 93 '|'.
          CLEAR: lv_mat_qty, lv_mat_amt.
        ENDAT.
        AT LAST.
          WRITE: / '|', 2(91) sy-uline , 93 '|'.
          WRITE: / '|', '***', 5(15) 'Total', 93 '|'.
          WRITE:/'|', 48(10) lv_total_qty, 59(4) wa_output-bum, 70(15)
                lv_total_amt, 85 wa_output-curr, 93 '|'.
          WRITE: / '|', 2(91) sy-uline, 93 '|'.
        ENDAT.
      ENDLOOP.
    The output looks like this:
    9M27W8.X9B.0               ****************************************          ****  ****
    WE 4700001289   001  04/10/2002                  1.000  PC              31,667.65 CAD
    WE 4700001454   001  07/29/2002                  1.000  PC              30,074.63 CAD
    WE 4700001455   001  07/29/2002                  1.000  PC              30,074.63 CAD
    WE 4700001457   001  07/29/2002                  1.000  PC              30,513.47 CAD
    *9M27W8.X9B.0
    4.000  ****           122,330.38 *****
    **Total
    1,441.000  ****        38,926,097.05 *****

    Hi,
    LOOP AT lt_output INTO wa_output.
    wa_out = wa_output.    " and use this variable in the events to print the data instead of wa_output.
    AT NEW matnr.
    CLEAR: lv_matdesc.
    MOVE: wa_output-maktx TO lv_matdesc.
    WRITE: / '|', wa_output-matnr, 30(40) lv_matdesc, 80(5)
    wa_output-cocode, 86(4) wa_output-valarea, 93 '|'.
    ENDAT.
    AT END OF matnr.
    WRITE: / '|', 2(91) sy-uline, 93 '|'.
    WRITE: / '|', '*', 4(15) wa_output-matnr, 93 '|'.
    WRITE:/'|', 48(10) lv_mat_qty, 59(4) wa_output-bum, 70(15)
    lv_mat_amt, 85 wa_output-curr, 93 '|'.
    WRITE: / '|', 2(91) sy-uline, 93 '|'.
    CLEAR: lv_mat_qty, lv_mat_amt.
    ENDAT.
    AT LAST.
    WRITE: / '|', 2(91) sy-uline , 93 '|'.
    WRITE: / '|', '***', 5(15) 'Total', 93 '|'.
    WRITE:/'|', 48(10) lv_total_qty, 59(4) wa_output-bum, 70(15)
    lv_total_amt, 85 wa_output-curr, 93 '|'.
    WRITE: / '|', 2(91) sy-uline, 93 '|'.
    ENDAT.
    ENDLOOP.

  • How can I get column totals with group breaks

    We manually generate a report of file groups and their associated data files each day for each of our databases.
    For each database we take data from dbcc showfilestats and assemble it into an Excel spreadsheet (see below).
    I would like to use a SQL job to generate the reports (results do not need to be in Excel format). I can insert the data from the DBCC into a table; but, I'm stuck on how to write a select statement that will break on file group and provide column totals.
    I've been looking at group by; but, I don't see how to make it work.
    Suggestions?
    FileGroup
    FileID
    Volume
    Allocated(MB)
    Used space(MB) 
    Free space(MB)
    Used %
    1
    1
    Data1
    100
    50
    50
    50%
    1
    15
    Data2
    200
    175
    125
    87.50%
    1
    21
    Data3
    300
    200
    100
    6.60%
                600
    425
    275
    70.80%
    FileGroup
    FileID
    Volume
    Allocated(MB)
    Used space(MB) 
    Free space(MB)
    Used %
    2
    1
    index1
    100
    50
    50
    50%
    2
    15
    index2
    200
    175
    125
    87.50%
    2
    21
    index3
    300
    200
    100
    6.60%
    600
    425
    275
    70.80%

    Take a look at the following blog on subtotal, total & grand total:
    http://www.sqlusa.com/bestpractices2005/subtotaltotalgrandtotal/
    It appears that you need only 1 level of totals.
    BOL:
    Summarizing Data Using ROLLUP
    Kalman Toth Database & OLAP Architect
    SELECT Video Tutorials 4 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Comparing two column values with multiple Parameter in VC (Indicator)

    Hello VC experts,
    GM
    I would like to know about how to indicate multiple parameter with different colour in same column and also comparing value with adjucent column.
    Eg.
    Parameters     ,,           Column1      ,,              Column 2       ,,            Indicator (Image)
    Parameter 1    ,,             a1             ,,                     b1          ,,                  RED
    Parameter 2    ,,            a2              ,,                     b2          ,,                  GREEN
    Parameter 3    ,,            a3              ,,                     b3          ,,                 
    Parameter 4    ,,            a4              ,,                     b4          ,,
    In case I  : Parameter -1     Column 1 ( value)  =  more is better compared to Column 2
    In case II : Parameter -2     Column 1 ( value)  =  Less is better compared to Column 2
    How to acheive this  INDICATOR based value comparison.
    Edited by: Sunil  B. Mundhe on Mar 7, 2009 6:30 AM
    Edited by: Sunil  B. Mundhe on Mar 7, 2009 6:38 AM

    Hi
    This is possible in VC. You have to insert 'Image' UI in the required table. Add images of alert through 'Image manager' (Tools tab). Select relevant images of alert in 'Image' UI. In display there is option for 'visibility condition' there you enter condition (like if greater than ,true,false).
    Like wise you can add multiple 'Image' UIs in that table & based on visibility conditions you will get these alert images in table.
    Regards
    Sandeep

  • How to create a form with two column headings

    I have a business request to create a data form to handle multi year data by month. This will require creating a form with two column headings - with the first row be Year and second row be month, and data entry will begin in the third row and down.
    I can do multiple row headings in the layout design, but somehow can not get it to work for multiple column headings.
    Thanks in advance

    If you're in the "Layout" tab, simply pull the "Years" dimension and the "Period" dimension into the Column section. Planning can be a little picky about where you "drop" the dimension as you're dragging and dropping it. Drop it in the cell directly under the letter name of the column. Other than that, there's not much to it.
    Hopefully this helped,
    - Jake

  • Merging two columns with muliple rows in Numbers '09

    I am trying to merge two columns each with 100 rows and related data. Column one is the street address and column two have office numbers. The final result would be one column with 100 rows with address and office numbers.
    Ed Carreon

    sanpanza wrote:
    I am trying to merge two columns each with 100 rows and related data. Column one is the street address and column two have office numbers. The final result would be one column with 100 rows with address and office numbers.
    Ed Carreon
    Hi Ed,
    Use the CONCATENATE() function.
    Street address in column D, Office number in Column E
    100 Smith ST            212
    Formula: =CONCATENATE(E," ",D)
    Result:
    212 100 Smith ST
    Note the formula has three arguments, the reference to column E, a text literal (" ") containing a single space, and a reference to column D.
    Regards,
    Barry

  • Aggragate and Control Break problem

    According to HELP:
    "Aggregates are displayed after each control break and at the end of the report within the column they are defined. "
    I have report with control break by 1 field.. I've added SUM aggregate function to Orders column.
    For now I can see summary by group but no summary at the end of report.
    Is this know problem?
    Thank you,
    alex

    Alex,
    Well, the help text may be misleading. But aggregates are displayed in both places mentioned, just not simultaneously. It should be easy to see the grand totals by toggling off the control break settings.
    If you want to see both at the same time, I'd add that to Carl's Post 3.1 Enhancement Request thread: Enhancement Request Thread : Post 3.1
    Thanks,
    Marco

  • Control break-statement: SUM

    Hi All,
    I am woking with Control break-statmens, SUM.
    LOOP AT IT_SELECT.
    AT NEW PSPNR.
    SUM.
    WRITE:/ IT_SELECT-WERKS,
            IT_SELECT-PSPHI,
            IT_SELECT-PSPNR,
            IT_SELECT-VERNA,
            IT_SELECT-KZWI2,
            IT_SELECT-DMBTR.
    ENDAT.
    ENDLOOP.
    WERKS from EKPO type Char & VERNA from PRPS type Char are displaying as ***************.
    How can I get the actual values instead of ********** for the above Char type fields?
    Thanks in advance,
    Kal Chand

    Hi,
    Go throught his link. This is same for all control break statements.
    Re: output not getting properly
    Hope this helps you
    Raj

  • ALV column header with multiple rows and ALV column header span

    How could I have in an ALV a column header on several lines and/or a column header that spans on multiple columns?
    i.e. I would like to have in an ALV two columns, each with it's own distinct header and additionally another column header for both of the columns, that spans across both columns. How could I program this?

    Hi,
    follow below mentioned code
    SET THE LABEL OF THE COLUMN
    DATA: hr_weeknum TYPE REF TO cl_salv_wd_column_header.
    CALL METHOD lr_weeknum->get_header
    RECEIVING
    value = hr_weeknum.
    CALL METHOD lr_weeknum->set_resizable
    EXPORTING
    value = abap_false.
    hr_weeknum->set_prop_ddic_binding_field(
    property = if_salv_wd_c_ddic_binding=>bind_prop_text
    value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).
    set the text of the column
    CALL METHOD hr_weeknum->set_text
    EXPORTING
    value = 'C Form'.
    Regards,
    Srini.

  • Preserving control break formatting in report downloads with BI Publisher

    Hello,
    I am using APEX 4.0.2 and would like to know if anyone has a step by step process or tutorial for preserving control break formatting in an interactive report that has been downloaded to any or all of the available file formats. I am using BI Publisher, to which I am very new, to do the report printing of the Reports Region to a PDF, RTF, XLS, CSV or HTML file. Currently, when we download the report to any of the file formats, the formatting is stripped out and only standard row/columns are being saved.
    BTW, I have changed my username to something more friendly but it has not yet taken effect.
    Thanks,
    Marcy

    Hi Venkat,
    Thanks for your quick respond.
    1.) Auto Run is enabled. And the report runs automatically as well. But then it ignores the dashboard prompt (as a regular report would do as well). But when I choose some values in the prompt and then press go. Then it says I have to press on view as well.
    2.) no that is not the case. My report is so big that it always need a scroll bar ;) also adjusting the size settings in the dashboard doesn't help. The only occurs when viewing in HTML, when previewing in excel or RTF it all just work fine.
    3.) true, but ow well this is the least importetant one ;) so if this doesn't work, than it doesn't work ;)
    4.) Ok, I will have a look on that.
    5.) I did enabled HTML and EXCEL outputs in my BIP report. But when the first point is working, then I don't want to see the control bar anymore and I want to have the output on the dashboard in HTML and then I want to build a button, or a link or something that exports the request to excel. Is that possible?

  • Control break on column displayed as link in Interactive Report

    Hi,
    If someone can help me, i'd greatly appreciate it!
    I created an interactive report - one of the columns has a link attached to url specified in the Report Attributes/ link section.
    When I use the control break feature in the gear icon, the report seems to be grouped by the url/link and not by the actual column value.
    When I remove the link from the column - all is fine and the break does work.
    This column must get displayed as a link. Is there any workaround for this problem?
    Thanks,
    Hindy
    Edited by: hindyp on Dec 2, 2009 7:33 AM

    Hi,
    I don't know the details of the procedure, but you would have something like:
    CREATE OR REPLACE PROCEDURE "print_model_change"
      v_acctnum NUMBER,
      v_model VARCHAR2,
      v_rrcode NUMBER
    AS
    BEGIN
      .. DO SOMETHING WITH v_acctnum, v_model, v_rrcode
    END;This needs to be updated to something like:
    CREATE OR REPLACE PROCEDURE "print_model_change"
      v_manager_model NUMBER
    AS
    BEGIN
      DECLARE
        v_acctnum NUMBER;
        v_model VARCHAR2;
        v_rrcode NUMBER;
      BEGIN
        SELECT ACCTNUM, MODEL, RRCODE
        INTO v_acctnum, v_model, v_rrcode
        FROM .. your report's FROM statement plus ..
        WHERE MANAGER_MODEL = v_manager_model;
        .. DO SOMETHING WITH v_acctnum, v_model, v_rrcode
      END;
    END;and followed by:
    GRANT EXECUTE ON "print_model_change" TO PUBLICto make it available
    The existing code receives all the data it would need (presumably). The updated code receives the manager_model value and, using the same FROM clause that you have for your report PLUS a WHERE clause (or, if you are using a WHERE clause in your report, change this to AND), finds the data that it needs for v_acctnum etc. After it has that data, the rest of the existing code can be used unchanged.
    Andy

  • Vertical report with two columns

    I have table with picture. I can display common sql report(horizontal or vertical). Is it possible to display this to two columns (eshop).Two vertical columns (for example field of records 10x2).
    Message was edited by:
    user542927

    Hi,
    There are probably a number of ways that you can handle this, but the underlying principle for all of these would be that you need to have 2 reports. The first report would contain the first ten records and the second report would contain the next ten.
    The way to do that would be to get the ROW_NUMBER() value for each line and, in the query defintion for each report, you would have a WHERE clause that restricted the results based on this value. The best way to do this would be to create a view and base the reports on this view. The view definition would include:
    ROW_NUMBER() OVER (ORDER BY xxxx) AS ROW_NUMBER
    where xxxx is the same order definition as the main ORDER BY clause. Each row will then get a ROW_NUMBER value that matches it's position in the query resultset.
    Your first report would then have a WHERE clause of:
    WHERE ROW_NUMBER < 11
    the second report would have:
    WHERE ROW_NUMBER BETWEEN 11 AND 20
    The final step would be styling/positioning the reports. The first would probably be in Column 1 in the region and the second in Column 2. You would almost certainly have to adjust the styling and/or positioning using a style attribute in the region/report definitions.
    Regards
    Andy

Maybe you are looking for

  • How to Empty Trash on External Hard Drive

    I'm using an external hard drive for Time Machine. I used it for my old laptop's backup and have transferred all needed files, app, and such to my new computer.  I want to trash everything from the old backups so I have room for the new ones.  I move

  • Vaue of sy-tcode when executing the report program in the background

    Hello All, To test and find out the value of sy-tcode when the report program is exectued in the background. I have done the below steps. 1. created a report program with the code given below. Select option was just defiend to get the selection scree

  • Best practice for configuring virtual drive on UCS

    Hi, I have two C210 M2 Server with LSI 6G MegaRAID 9261-8i Card with 10 hard drives of each 135GB. When I tried the automatic selection for the RAID configuration, the system has created one virtual drive with RAID 6. My concern is what the best prac

  • Bizarre out of sync issue

    This question is mixed FCP and DVDSP, so it's O/T on both forums, but here goes: I have a 97 minute feature. Shot HDV. Edited ProRes. Exported via Compressor using MPEG 2 and Dolby. Using Mac Octo. On the resulting DVDs the 2 pop is in sync, then it

  • Trackpad + CD issues. Help greatly appreciated.

    Hi. I'm having two major issues with my iBook: 1) The mouse trackpad freezes after a certain time of use. The only thing that helps is restarting the computer, after which the mouse gets progressively worse untill it freezes completely again. This ta