Drop older ( more than 3days of ) partitions in a table

Hi Guru's,
I have created an HOURLY interval partitioning for a table and the management was decide to 3 days of retention policy. So i need to schedule a Cron job for removing older partitions older than 3days, but i am not sure, how to write a shell script or a procedure to do this. Please help me on this and below are the table syntax and the partitions.
CREATE TABLE TRANSACTION
     ID NUMBER(18) NOT NULL ,
     ACCT_ID NUMBER(18) NOT NULL ,
     BANKING_ID NUMBER(18) NOT NULL ,
     CREATED_DATE TIMESTAMP(3) NOT NULL ,
     COMMISSION_AMOUNT NUMBER(15,2) NULL ,
     CONFIRMATION_NO NVARCHAR2(255) NULL ,
     CREATED_BY NVARCHAR2(255) NOT NULL ,
     CREATED_TS TIMESTAMP(3) NOT NULL ,
     MODIFIED_BY NVARCHAR2(255) NOT NULL ,
     MODIFIED_TS TIMESTAMP(3) NOT NULL
PARTITION BY RANGE ("CREATED_TS") INTERVAL( NUMTODSINTERVAL(1, 'HOUR'))
( PARTITION TRANS_DATA VALUES LESS THAN (TO_DATE(' 2011-11-04 20:00:00', 'YYYY-MM-DD HH24:MI:SS') ) TABLESPACE &&TABLE_TS_P,
PARTITION TRANS_DATA1 VALUES LESS THAN (TO_DATE(' 2011-11-04 21:00:00', 'YYYY-MM-DD HH24:MI:SS') ) TABLESPACE &&TABLE_TS_P1,
PARTITION TRANS_DATA2 VALUES LESS THAN (TO_DATE(' 2011-11-04 22:00:00', 'YYYY-MM-DD HH24:MI:SS') ) TABLESPACE &&TABLE_TS_P2,
PARTITION TRANS_DATA3 VALUES LESS THAN (TO_DATE(' 2011-11-04 23:00:00', 'YYYY-MM-DD HH24:MI:SS') ) TABLESPACE &&TABLE_TS_P3,
PARTITION TRANS_DATA4 VALUES LESS THAN (TO_DATE(' 2011-11-05 00:00:00', 'YYYY-MM-DD HH24:MI:SS') ) TABLESPACE &&TABLE_TS_P4,
PARTITION TRANS_DATA5 VALUES LESS THAN (TO_DATE(' 2011-11-05 01:00:00', 'YYYY-MM-DD HH24:MI:SS') ) TABLESPACE &&TABLE_TS_P5
Here Partitioning key is "CREATED_TS".
HERE are the partitions created for this table.
HIGH_VALUE PARTITION_NAME
TIMESTAMP' 2011-11-04 20:00:00' TRANS_DATA
TIMESTAMP' 2011-11-04 21:00:00' TRANS_DATA1
TIMESTAMP' 2011-11-04 22:00:00' TRANS_DATA2
TIMESTAMP' 2011-11-04 23:00:00' TRANS_DATA3
TIMESTAMP' 2011-11-05 00:00:00' TRANS_DATA4
TIMESTAMP' 2011-11-05 01:00:00' TRANS_DATA5
TIMESTAMP' 2011-11-05 02:00:00' SYS_P41
TIMESTAMP' 2011-11-05 03:00:00' SYS_P42
TIMESTAMP' 2011-11-05 04:00:00' SYS_P44
TIMESTAMP' 2011-11-05 05:00:00' SYS_P46
TIMESTAMP' 2011-11-05 06:00:00' SYS_P49
TIMESTAMP' 2011-11-05 07:00:00' SYS_P52
TIMESTAMP' 2011-11-05 08:00:00' SYS_P102
TIMESTAMP' 2011-11-05 09:00:00' SYS_P121
TIMESTAMP' 2011-11-05 10:00:00' SYS_P141
TIMESTAMP' 2011-11-05 11:00:00' SYS_P144
TIMESTAMP' 2011-11-05 12:00:00' SYS_P147
TIMESTAMP' 2011-11-05 13:00:00' SYS_P149
TIMESTAMP' 2011-11-05 14:00:00' SYS_P151
TIMESTAMP' 2011-11-05 15:00:00' SYS_P152
TIMESTAMP' 2011-11-05 16:00:00' SYS_P154
TIMESTAMP' 2011-11-05 17:00:00' SYS_P157
TIMESTAMP' 2011-11-05 18:00:00' SYS_P222
TIMESTAMP' 2011-11-05 19:00:00' SYS_P159
TIMESTAMP' 2011-11-05 20:00:00' SYS_P243
TIMESTAMP' 2011-11-05 21:00:00' SYS_P261
TIMESTAMP' 2011-11-05 22:00:00' SYS_P282
TIMESTAMP' 2011-11-06 01:00:00' SYS_P285
TIMESTAMP' 2011-11-06 02:00:00' SYS_P303
TIMESTAMP' 2011-11-06 03:00:00' SYS_P287
TIMESTAMP' 2011-11-06 04:00:00' SYS_P289
TIMESTAMP' 2011-11-06 05:00:00' SYS_P307
TIMESTAMP' 2011-11-06 06:00:00' SYS_P324
TIMESTAMP' 2011-11-06 07:00:00' SYS_P310
TIMESTAMP' 2011-11-06 08:00:00' SYS_P313
TIMESTAMP' 2011-11-06 09:00:00' SYS_P342
TIMESTAMP' 2011-11-06 10:00:00' SYS_P292
TIMESTAMP' 2011-11-06 11:00:00' SYS_P315
TIMESTAMP' 2011-11-06 12:00:00' SYS_P295
TIMESTAMP' 2011-11-06 13:00:00' SYS_P298
TIMESTAMP' 2011-11-06 14:00:00' SYS_P361
TIMESTAMP' 2011-11-06 15:00:00' SYS_P363
TIMESTAMP' 2011-11-06 16:00:00' SYS_P365
TIMESTAMP' 2011-11-06 17:00:00' SYS_P366
TIMESTAMP' 2011-11-06 18:00:00' SYS_P368
TIMESTAMP' 2011-11-06 19:00:00' SYS_P371
TIMESTAMP' 2011-11-06 20:00:00' SYS_P373
Here the partition names are not in order, so i am not able to figure out, to do the syntax to drop the partitions. Please let me know, how to drop the older partitions.

You can use partition_position from user_tab_partitions to determine how many partitions you want to drop and which ones. These are always in order, regardless of your partition names. This obviously assumes that all your partitions are uniform (hourly in your case).
Milina

Similar Messages

  • Broadband drops 'out' more than 'in' - OpenReach a...

    First, forgive me if a similar problem has been posted; I've had to resort to a 2G O2 dongle & speeds are so bad that I can't search the forum.  For weeks (months?) now I've had terrible broadband connectivity - sometimes going for days without a connection lasting for more than 2 or 3 seconds.  Sometimes we get up to 5 days of great connectivity with speeds of 1mbps and then (as now) days with no useable broadband at all.
    We've had our line changed from the exchange, we've had a new master socket installed, we've tried 3 different routers - and each time it's the same... it works fine while the engineer is here, and then it drops 24-48 hours after he leaves.  When we do get an appointment sod's law says that all is working fine.
    Symptoms are that the DSL light flashes nearly all the time and about once every 5 minutes it goes solid.  The internet light goes green momentarily, or sometimes goes red, or generally goes out again.  If we do get a connection then any attempt to use it sees it drop out almost immediately.
    The phone line works.
    Routers used - Netgear DG834 v4, but we've also tried a BT Voyager and an old 2wire BT Business router.  All are programmed with the correct usernames and passwords - as demonstrated by the fact that we sometimes get days of good connectivity.
    Anyone got any bright ideas?  All appreciated!
    Thanks.
    P.S. OpenReach due back here again Tuesday, by which time it will probably be on its 'good' cycle of working again...

    Thanks. Sure - stats are below. I've tried the quiet line test and all seems quiet:
    Router Status
    Account Name
    Firmware Version V5.01.01
    ADSL Port MAC Address 00:1E:2A:ED:9C:B3
    IP Address ---
    Network Type PPPoA
    IP Subnet Mask ---
    Gateway IP Address ---
    Domain Name Server ---
    LAN Port MAC Address 00:1E:2A:ED:9C:B2
    IP Address 192.168.0.1
    DHCP On
    IP Subnet Mask 255.255.255.0
    Modem ADSL Firmware Version A2pB023b.d20e
    Modem Status Negotiating
    DownStream Connection Speed 0 kbps
    UpStream Connection Speed 0 kbps
    VPI 0 VCI 38
    An example of the log:
    Fri, 2011-08-19 14:08:39 - CHAP authentication success Fri, 2011-08-19 14:10:39 - LCP down. Fri, 2011-08-19 14:10:52 - Initialize LCP. Fri, 2011-08-19 14:10:52 - LCP is allowed to come up. Fri, 2011-08-19 14:11:52 - Initialize LCP. Fri, 2011-08-19 14:11:52 - LCP is allowed to come up. Fri, 2011-08-19 14:12:10 - CHAP authentication success Fri, 2011-08-19 14:14:40 - LCP down. Fri, 2011-08-19 14:14:53 - Initialize LCP. Fri, 2011-08-19 14:14:53 - LCP is allowed to come up. Fri, 2011-08-19 14:14:57 - CHAP authentication success Fri, 2011-08-19 14:19:56 - LCP down. Fri, 2011-08-19 14:20:09 - Initialize LCP. Fri, 2011-08-19 14:20:09 - LCP is allowed to come up. Fri, 2011-08-19 14:21:10 - Initialize LCP. Fri, 2011-08-19 14:21:10 - LCP is allowed to come up. Fri, 2011-08-19 14:21:25 - CHAP authentication success Fri, 2011-08-19 14:25:35 - LCP down. Fri, 2011-08-19 14:25:48 - Initialize LCP. Fri, 2011-08-19 14:25:48 - LCP is allowed to come up. Fri, 2011-08-19 14:25:51 - CHAP authentication success Fri, 2011-08-19 14:28:59 - Initialize LCP. Fri, 2011-08-19 14:28:59 - LCP is allowed to come up. Fri, 2011-08-19 14:29:59 - Initialize LCP. Fri, 2011-08-19 14:29:59 - LCP is allowed to come up. Fri, 2011-08-19 14:30:27 - CHAP authentication success Fri, 2011-08-19 14:39:16 - LCP down.

  • Unable to drag and drop files more than 250 kb into SharePoint Library

    Hi,
    I upgraded a site collection from SharePoint 2010 to SharePoint 2013. The site contains a library. Now the issue is, I am able to drag and drop any file below 250 kb. If I drag and drop a file with size more than 250 kb I get below error. Please help me
    out.
    I have IE 10 , latest chrome and Firefox browsers. 
    Avinash

    Hi Venkata,
    Thank you for your sharing! It will be beneficial to others in this forum who meet the same issue in the future.
    Thanks,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How we can lock No more than one user can use the table  at a single time

    Hi Abapers,
    0)  which  function modules to lock & unlock a table.
    1) When you execute the program, we can check if there is any lock on this table. If yes, the user should be able to only view the table contents and not modify.
    2) If there is no lock, then lock the table and go into change mode.
    3) On exiting from the program, unlock the table using the function module.
    4) more than one user can't modify the table just display.
    Note: If there is any lock, display message saying table is locked.
    Plz help me for this requirement.
    Thanks
    Nani

    Hello Nani
    Have a look at the lock object EMMARAE (<i>Lock MARA and MARM/MAKT exclusively</i>) in transaction SE11.
    Inspect the F1 help for field <b>Lock mode</b>:
    DE ENQMODE
    Short Text
         Lock mode
    Definition
         Defines how to synchronize table record access by several users.
    The following modes exist:
         Exclusive lock
             The locked data can be read or processed by one user only. A request
             for another exclusive lock or for a shared lock is rejected.
         Shared lock
             Several users can read the same data at the same time, but as soon
             as a user edits the data, a second user can no longer access this
             data. Requests for further shared locks are accepted, even if they
             are issued by different users, but exclusive locks are rejected.
         Exclusive but not cumulative lock
             Exclusive locks can be requested by the same transaction more than
             once and handled successively, but an exclusive but not cumulative
             lock can only be requested once by a given transaction. All other
             lock requests are rejected.
    If you want to lock a standard table search whether the table is used in lock objects (<i>Where-Used-List</i>). If it is a customer table you have to create your own lock object (including two function modules: one for enqueuing and the other for dequeuing).
    The lock modules can be found in menu <b>GoTo -> Lock Modules</b>.
    Given these lock modules the logic should be quite clear after starting the program:
    1. Request lock -> if successful, continue in Change mode; -> if failed, continue in Display mode
    2. Before leaving the report remove lock (note: no problem if no lock has been set in the beginning).
    Regards
      Uwe

  • GetSelectedRowKeys() returns more than one on Single Selection Tree Table

    Hi,
    I found that this issue occurring after PS3 (I think.)
    I have a tree table component, which allows single row selection. There is a listener on a column of the tree table as follows:
    public void listenPackageUnit(ValueChangeEvent valueChangeEvent)
    Object oldKey = getTreeComponent().getRowKey();
    try
    * Retrieve index of selected package unit
    * NOTE: Subtract 1 to remove no selection value. This only
    * needs to be done if attached LOV has No Selection option set.
    if (valueChangeEvent.getNewValue() != null)
    Row row = null;
    String selectedPackageUnit = null;
    int packageUnitIndex = (Integer) valueChangeEvent.getNewValue();
    packageUnitIndex--;
    * Due to the no selection item, we need to prevent search of regular
    * iterator if index is < 0. In this case we know the user selected
    * the no selection (blank) value.
    if (packageUnitIndex >= 0)
    * Using index, determine the value of the selected package unit
    DCIteratorBinding packageUnitsIterator =
    (DCIteratorBinding) PasUiADFUtil.resolveExpression("#{bindings.PackageUnitsIterator}");
    Row newRow =
    packageUnitsIterator.getRowAtRangeIndex(packageUnitIndex);
    selectedPackageUnit = (String) newRow.getAttribute("LookupCode");
    RowKeySet selection = this.getTreeComponent().getSelectedRowKeys();
    if (selection != null && selection.getSize() > 0)
    for (Object facesTreeRowKey: selection)
    this.getTreeComponent().setRowKey(facesTreeRowKey);
    JUCtrlHierNodeBinding rowData =
    (JUCtrlHierNodeBinding) this.getTreeComponent().getRowData();
    row = rowData.getRow();
    setSelectedLabel((String) row.getAttribute("Label"));
    setSelectedLabelType((String) row.getAttribute("LabelType"));
    row.setAttribute("PackageUnit", selectedPackageUnit);
    getTreeComponent().setRowKey(oldKey);
    finally
    getTreeComponent().setRowKey(oldKey);
    The issue is that getSelectedRowKeys() returns more than one when the user selects a child row in the tree table.
    It seems to be returning the total number counting from the top parent through the child.
    (For example, if the child is the second generation, it returns 2, and if the third generation, it returns 3.)
    This is causing the issue that the method tries to update the attribute of the parent row with a value for the child row. (And it fails, because the attribute is updateable only while new.)
    I remember getSelectedRowKeys() always returned one, the selected child itself, when I coded this around October, 2010.
    Is this a design change after PS3? Why does it return more than one though the tree table is for single selection?
    How can I get around this issue?
    It would be truly appreciated if we can get any quick help, since we are at final testing phase of our product.
    Thank you,
    Tomo

    Hi Vinod,
    I found the solution. Thank you very much for your suggestions. :)
    Now my listenSelection (custom listener of the tree table) looks like below:
    public void listenSelection(SelectionEvent selectionEvent)
    Row currentRow;
    PasUiADFUtil.invokeEL("#{bindings.TransactionLabelTopLevelVO1.collectionModel.makeCurrent}",
    new Class[] { SelectionEvent.class },
    new Object[] { selectionEvent });
    Object oldKey = getTreeComponent().getRowKey();
    try
    if (this.getTreeComponent() != null)
    RowKeySet rks = this.getTreeComponent().getSelectedRowKeys();
    Iterator keys = rks.iterator();
    while (keys.hasNext())
    List key = (List) keys.next();
    this.getTreeComponent().setRowKey(key);
    JUCtrlHierNodeBinding node =
    (JUCtrlHierNodeBinding) this.getTreeComponent().getRowData();
    if (node != null)
    currentRow = node.getRow();
    if (currentRow != null)
    this.setSelectedRow(currentRow);
    setSelectedLabel((String) currentRow.getAttribute("Label"));
    setSelectedLabelType((String) currentRow.getAttribute("LabelType"));
    String shippedItemFlag =
    (String) currentRow.getAttribute("ShippedItemFlagValue");
    if (shippedItemFlag != null && shippedItemFlag.equals("1"))
    setDisableAdd(true);
    else
    setDisableAdd(false);
    finally
    getTreeComponent().setRowKey(oldKey);
    /* Refresh Action menu and buttons */
    RequestContext.getCurrentInstance().addPartialTarget(this.getActionMenu());
    RequestContext.getCurrentInstance().addPartialTarget(this.getToolbar());
    And my tree table is like below:
    <af:treeTable value="#{bindings.TransactionLabelTopLevelVO1.treeModel}"
    var="node" rowSelection="single" id="tt1"
    contentDelivery="immediate" fetchSize="25"
    emptyText="#{bindings.TransactionLabelTopLevelVO1.viewable ? commonFoundationMsgBundle.NO_DATA_TO_DISPLAY : commonFoundationMsgBundle.ACCESS_DENIED}"
    selectionListener="#{pageFlowScope.MaintainTransactionSerialAssociationBean.listenSelection}"
    binding="#{pageFlowScope.MaintainTransactionSerialAssociationBean.treeComponent}"
    summary="#{maintainAssociationUiBundle.CONTAINER_SERIAL_HIERARCHY}">
    <!-- Row Header -->
    The listener is now always getting the currently selected row only.
    Tomo

  • How to insert more than one row in an Oracle table in one go

    Hi All,
    I am working on a file-XI(BPM)-Oracle scenario.
    I am sending an xml file to XI via a file adapter. On the receiver end i am using a jdbc adapter to insert the row in the database. There is a transformation step within the BPM which is converting the file to a format understood by the JDBC adapter.
    The problem i am facing is that, even if my input xml file contains more than one recordset, only one row is created in the database with the first recordset.
    How can i insert all the other recordsets in the database at the same time.
    Pls guide
    Thanks in advance.
    Regards
    Neetu

    Hi,
    As asked by Bhavesh, i set the occurence of the STATEMENT tab 1 to UB. But still only one row is getting updated in the database at a time.
    As asked by Udo, i even tried the same by changing the occrence of ACCESS tab 1 to UB. But still same thing happened.
    Can there be some other problem.
    The transformation is being dane in the BPM.
    As seen in SXMB_MONI, the input xml to the BPM has two RECORDSET tags but the output generated xml in the format understood by jdbc adapter has a single STATEMENT tag.
    The two formats are given below
    <b>Input:</b>     
            <?xml version="1.0" encoding="utf-8"?>
         <ns:MT_Test_File xmlns:ns="http://namespace-EmpNumberGen">
         <EmpGenRecord>
              <APPLICANT_NO>20</APPLICANT_NO>
              <FIRST_NAME>abc</FIRST_NAME>
              <LAST_NAME>xyz</LAST_NAME>
              <FUNCTION>ADMIN</FUNCTION>
              <DESIGNATION>ZA</DESIGNATION>
              <RESPONSIBILITY_LEVEL>dd</RESPONSIBILITY_LEVEL>
              <RECRUITMENT_TYPE>dd</RECRUITMENT_TYPE>
              <EMPLOYEE_TYPE>p</EMPLOYEE_TYPE>
              <STATUS>A</STATUS>
              <***>M</***>
         </EmpGenRecord>
         <EmpGenRecord>
              <APPLICANT_NO>14</APPLICANT_NO>
              <FIRST_NAME>abc</FIRST_NAME>
              <LAST_NAME>xyz</LAST_NAME>
              <FUNCTION>ADMIN</FUNCTION>
              <DESIGNATION>ZA</DESIGNATION>
              <RESPONSIBILITY_LEVEL>dd</RESPONSIBILITY_LEVEL>
              <RECRUITMENT_TYPE>dd</RECRUITMENT_TYPE>
              <EMPLOYEE_TYPE>p</EMPLOYEE_TYPE>
              <STATUS>A</STATUS>
              <***>M</***>
         </EmpGenRecord>
    </ns:MT_Test_File>
    <b>Output</b>
            <?xml version="1.0" encoding="UTF-8"?>
         <ns0:MT_Emp_No_Generation xmlns:ns0="http://namespace-EmpNumberGen">
         <Statement>
              <SAP_EMPGEN action="INSERT">
                   <access>
                   <APPLICANT_NO>20</APPLICANT_NO>
                   <FIRST_NAME>abc</FIRST_NAME>
                   <LAST_NAME>xyz</LAST_NAME>
                   <FUNCTION>ADMIN</FUNCTION>
                   <DESIGNATION>ZA</DESIGNATION>
                   <RESPONSIBILITY_LEVEL>dd</RESPONSIBILITY_LEVEL>
                   <RECRUITMENT_TYPE>dd</RECRUITMENT_TYPE>
                   <EMPLOYEE_TYPE>p</EMPLOYEE_TYPE>
                   <STATUS>A</STATUS>
                   <***>M</***>
                   </access>
              </SAP_EMPGEN>
         </Statement>
         </ns0:MT_Emp_No_Generation>
    This is a bit urgent.
    Pls help
    Regards
    Neetu

  • Does Boot camp Recognizes more than a 20GB partition?

    I have partitioned my HD to 80GB, and it goes through the whole process, but when in Windows, the hard drive only shows 15GB, I looked into the Disk Management (Windows) and it says that it is an 80GB partition, but cannot access the whole thing, only 15GB. 
    Has any body encounter this issue?  Any way I can fix this so that I can use 80GB instead of only 15?.
    I have a MBP 2.26GHz Intel Core 2 Duo, with 4 GB RAM and 160HD.  Running 10.6.7 with BootCamp 3.2

    I have partitioned my HD to 80GB, and it goes through the whole process, but when in Windows, the hard drive only shows 15GB, I looked into the Disk Management (Windows) and it says that it is an 80GB partition, but cannot access the whole thing, only 15GB.
    Has any body encounter this issue?  Any way I can fix this so that I can use 80GB instead of only 15?.
    I have a MBP 2.26GHz Intel Core 2 Duo, with 4 GB RAM and 160HD.  Running 10.6.7 with BootCamp 3.2
    MacBook Pro, Mac OS X (10.6.7)
    Forgot to add that I formatted the 80GB partition into NTFS..
    Message was edited by: taquechin

  • More than one join condition for 2 tables in obiee

    Hello,
    I am using obiee 11g.
    There are 2 tables tableA and tableB where the join condition is like (tableA.col1=tableB.col1) or (tableA.col1 is null and tableB.col1 is null)
    where should i do these type of joins.
    I tried putting in physcial layer->f(x) but giving error like here only columns an d opertaors are allowed.
    Thanks

    ok here it goes.
    I have a tableA with columns col1(pk),col2 and other columns
    I have tableB with columns col1(pk),col2..Only these 2 columns.
    Now distinct tableA.col2 values are put in tableB.col2. For those distinct values i have put the tableB.col1 values.
    Now tableA.col2 as well as tableB.col2 can be null beacuse there may be null values in tableA.col2.
    Now in tableB i have added one more row which has col1 as value and col2 as null.
    Now when in physical layer when i do tableA.col2=tableB.col2 i dont get the null values.
    What i want is whenever the tableA.col2 and tableB.col2 is null then take tableB.col1 for those vales.
    So when i query i do
    select * from tableA,tableB where
    ((tableA.col2=tableB.col2) or (tableA.col2 is null and tableB.col2 is null))
    What i want is when i do a join i should be able to give this OR condition in rpd thats it.
    because when i do in where clause of content tab it goes like a AND condition and not OR.
    Thanks
    Edited by: user123 on Jul 5, 2011 1:57 PM

  • Send excel attachment with more than 255 characters in the internal table

    Hi,
    I need to send an attachment in the form of spreadsheet.
    But the internal table that is being used for sending attachment in mails can have only 255 characters in one row.
    Whereas my spreadsheet requires a greater width than 255 characters .

    Hi,
    I need to send an attachment in the form of spreadsheet.
    But the internal table that is being used for sending attachment in mails can have only 255 characters in one row.
    Whereas my spreadsheet requires a greater width than 255 characters .

  • How to add more than one graph to a pivot table??

    Hi,
    I have a report containing product,store,offers per store as dimensions and spending,Buying households as measures.My requirement is to show 'Store' in a section and corresponding report(which contains product,offers of that store,spending and Buying HH) and individual graphs for spending and buying households( 2graphs).I mean if I have 3 stores, I should get 3 sections of stores and each section should contain corresponding report and graphs. The main requirement is that "USER" should able to export or print the whole report at a time.
    I used pivot table to achieve this but I could only show one graph per store but I need two graphs for both spending and Buying HH.Please help me how to achieve.
    Your valuable suggestions are well appreciated!!!

    Hi,
    I have a report containing product,store,offers per store as dimensions and spending,Buying households as measures.My requirement is to show 'Store' in a section and corresponding report(which contains product,offers of that store,spending and Buying HH) and individual graphs for spending and buying households( 2graphs).I mean if I have 3 stores, I should get 3 sections of stores and each section should contain corresponding report and graphs. The main requirement is that "USER" should able to export or print the whole report at a time.
    I used pivot table to achieve this but I could only show one graph per store but I need two graphs for both spending and Buying HH.Please help me how to achieve.
    Your valuable suggestions are well appreciated!!!

  • Copying data from excel(more than one row) and pasting into table control

    I have a requirement to copy data from excel and have it pasted it into the corresponding fields table control when the user clicks on an icon.For the first part I used a class to copy it from the clip board.By the previous process,I get the data inside an internal table, but even after  trying to split the data using 'split at cl_abap_char_utilities=>horizontal_tab into table itab.' it's not working.The table and the excel file are of the same structure.
    Does anyone know any cause as to why it might not work?Is there any other way to achieve my objective?
    Bon

    Hi,
    try to get data into internal table as below
    TYPES :     BEGIN     OF             ty_data          ,
                zbukr     TYPE           payr-zbukr       ,
                hbkid     TYPE           payr-hbkid       ,
                hktid     TYPE           payr-hktid       ,
                rzawe     TYPE           payr-rzawe       ,
                chect     TYPE           payr-chect       ,
                laufd     TYPE           reguh-laufd      ,
                laufi     TYPE           reguh-laufi      ,
                lifnr     TYPE           reguh-lifnr      ,
                vblnr     TYPE           reguh-vblnr      ,
                rwbtr     TYPE           reguh-rwbtr      ,    "uncommented
                unique_no TYPE           char13           ,   " Added SAP Doc. No. and current year concate in NEFT,RTGS and Fund Transfer cases
                END       OF             ty_data          .
    DATA :      wa_file   LIKE LINE OF   it_file          ,
                wa_data   TYPE           ty_data          .
    DATA:      it_data1 TYPE              kcde_intern WITH HEADER LINE,
               wa_data1 LIKE LINE OF      it_data1.
    start-of-selection.
    CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
          EXPORTING
            filename                = lv_file1
            i_begin_col             = '1'
            i_begin_row             = '4'
            i_end_col               = '11'
            i_end_row               = '60000'
          TABLES
            intern                  = it_data1
          EXCEPTIONS
            inconsistent_parameters = 1
            upload_ole              = 2
            OTHERS                  = 3.
        IF sy-subrc = 0.
          PERFORM format_data.
        ENDIF.
    FORM format_data.
      DATA : ld_index TYPE i.
      FIELD-SYMBOLS : <fs>.
      DATA it_tab LIKE wa_data OCCURS 0 WITH HEADER LINE.
          LOOP AT it_data1.
            MOVE it_data1-col TO ld_index.
            ASSIGN COMPONENT ld_index OF STRUCTURE
            it_tab TO <fs>.
            MOVE : it_data1-value TO <fs>.
        MOVE it_data1-value TO p_table.
            AT END OF row.
              APPEND it_tab.
              CLEAR it_tab.
            ENDAT.
          ENDLOOP.
           it_data[] = it_tab[] .
        ENDIF.
    endform.                    "format_data

  • More than 5 rows in the detail table for a Master Detail Portlet

    I have a Master Detail Portlet.   I originally had 5 fields in the detail portlet.  I have added a column to the detail portlet and now the last column is wrapped around in the portlet.  I do not see a way to force it to be on the same line as the rest of the columns for the detail table.
    Do I need to just delete it and re-create the portlet?
    Below is the from the browser when executing the portlet.
    function show_context_help(h) {   newWindow = window.open(h,"Help", "menubar=1,toolbar=1,scrollbars=1,resizable=1,width=700, height=500"); }  
    Master action:
    [None]
    Insert
    Update
    Delete
    Carrier
    Carname
    Line Haul Carrier?
    Detail actions
    Warehouse
    Carrier
    Service
    Ship To
    Country Code
    Hold for
    Pickup
    Service?
    Associate LPN
    Required?
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete
    [None]
    Insert
    Update
    Delete

    Easy, The default on the detail field had the Begin on New Line flag set to on.   By unchecking it I got the desired behavior.

  • Help in Inserting more than 5 crores records to  a table

    Hi friends,
    I have a table which has nearly 6 crores records.
    I want to insert those records to my new table.
    Can anyone tell me how to insert it with less time?

    Hi!
    We are trying to insert into a remote database using the forall statement 5000 rows at a time.
    type t_column_id is table of number index by binary_integer;
    v_column_id t_column_id;
    begin
    open my_cur;
    loop
    fetch my_cur bulk collect into v_column_id limit 5000;
    forall i in 1..v_column_id.count
    execute immediate
    'insert into ' || w_table_name || '_bulk' || '@' || in_db_link || ' select * from ' || w_table_name || ' where ' || w_primary_key || ' = :1' using v_column_id(i);
    exit when my_cur%notfound;
    end loop;
    close my_cur;
    commit;
    end;Regards.
    Satyaki De.

  • More than 50 rows in an error table?

    Hello All,
    In OWB 10.2.0.4 we are using the Error Tables (Shadow Table) functionality. This is working fine. However, during set based loading the number of errors that is logged into the error table is determined by the mapping configuration setting "maximum number of errors". You know, the one that has a silly default value of 50. This results in a bulk insert statement that has the following additional clause:
    LOG ERRORS INTO MY_ERR (get_audit_detail_id) REJECT LIMIT 50
    Now, this is what I would really want is:
    LOG ERRORS INTO MY_ERR (get_audit_detail_id) REJECT LIMIT UNLIMITED
    This is valid SQL, but I can't get the mapping configuration property to produce this value. It only accepts (positive) numbers. Any thoughts on how to get this to work?
    Regards,
    Ernst-Jan

    Hi Ernst-Jan
    The best you can do is pick a large number. Noo way to set UNLIMITED from the UI.
    Cheers
    David

  • Speed's more than halved

    For a year or two we have had consistant speeds of around 230kbps download, which isn't exactly amazing, but it has done us fine. But since a few weeks ago the speeds have dropped to more than half of this at between 30-110kbps download.
    We changed router to the home hub about 2 months ago, but after having to deal with it's problems we swapped to an older router, however this broke and so we are back on the home hub. However our speeds have significantly dropped for no reason that we are aware of.
    I thought I should post here before calling BT and telling them. What can I do to bring the speed back up?
    I just did a speedtest on speedtester.bt.com and got this result;
    Download speedachieved during the test was - 803 Kbps
     For your connection, the acceptable range of speedsis 200-1000 Kbps.
     Additional Information:
     Your DSL Connection Rate :1427 Kbps(DOWN-STREAM), 899 Kbps(UP-STREAM)
     IP Profile for your line is - 1000 Kbps

    if you are regularly unplugging the leads or resetting the hub the both have the same effect in that the exchange thinks there is a line problem and increases the noise margin. The more you frequently reset the enchange ups the noise margin.  The optimum noise margin for the Hub is 6.  Without resets the hub will try to return to the optimum of 6 with a resulting increase in down sync.  Connecting to master socket may improve your connection
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

Maybe you are looking for

  • Need Help with complex query for productio database

    Hello again, i need your help again, for an query how Shows me how long every production step takes per Order. See sample data and what i expect. Thank you all for your help. We use Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Pr

  • Why is the print on my computer so HUGE? I've tried to reset pages but nothing works. Please help!?!

    I opened up my computer page and the print is HUGE! I've tried to reset the pages through the control panel icon but it is all normal size. I have even zoomed out using the view button and that doesn't help except for the one page that I'm on. I don'

  • What can be done to reduce page loading time?

    Hi, I've built a site to showcase my photographs and pages load slowly. It has about 70 pages and each page uses the same custom template that contains graphics and type. Hyperlinks navigate from page to page or from section to section. Each page has

  • Is validation always  necessary ?

    What does it mean when your website does not validate? I know what it means but I'm confused because people say your website must pass validation. Even the adobe website does not pass validation. So if your website does not pass validation does that

  • Problem installing v11 client

    Hi, I tried installing v11 of the client on XP. The install brings up a command window and then immediately fails. Is there a log file for the installer? It also broke my MS Oracle provider I was previously using in my application. Now I get a strang