How to achive this report.

Hi,
Scenario : Some raw materials qty are moving to a series of various machines in work in poress .Here some of materials are rejected Qty by machines and let say xyz reason.
In OBI,If i pull all required columns into report all columns are pulling correct information expect machines.
Machine column diplaying all used machines name.. but my requirement is only rejected machines and rejected qty for particular machine should be display in report.
How to achive this.Kindly let me . Thank you.

867932 wrote:
Hi,
Scenario : Some raw materials qty are moving to a series of various machines in work in poress .Here some of materials are rejected Qty by machines and let say xyz reason.
In OBI,If i pull all required columns into report all columns are pulling correct information expect machines.
Machine column diplaying all used machines name.. but my requirement is only rejected machines and rejected qty for particular machine should be display in report.
How to achive this.Kindly let me . Thank you.Please take the time to explain in more detail - your post is not very precise and you dont describe your data model.
As a guess, I would start with a filter : rejected Qty > 0 so you only get machines which have had a rejection, compared to "Machine column diplaying all used machines name".
Hope this helps!
Alastair

Similar Messages

  • How to achive this in a single iview

    How can i create this iview/How to achive this.
    In Portal I created a Role and 2 different worksets under the role to publish BW Reports (Grouped according to the worksets)
    My requirment is when user Logins into his portal account and clicks the BW Reports Tab (Role) First screen he has to see
    Currently it is my Workset1 of which are assigned to role
    My requirment is to show them
    The screen should be divided into 2 halfs(Columns) and the Left hands side column should display our INTRANET HOME PAGE and Other hald should display a BW Report developed on Daily data Loads in Graphical Version (Web Templete is already developed)
    Please update me how to achive this
    Thanks

    Hi Thruna,
    Thanks for the update....
    few Queries
    Create a page with 2 column layout.
    Is it possible for me to create a page with 2 Columns and the Right hand column is divided in to parts
    Open the page in edit mode and select Intranet Home Page iview, right click then select "Add iview to the page" with Delta.
    If i Right click the iview and select assign to page...how can i make a setting to display that iview(Intranet Home page) on Left Hand side
    Thanks in advance

  • How to achive this using servlet

    hi I am new to this technology... My requirement is , First I have to check whether that rebate_sku_num exists in the database or not.. If exits i need to update the row.. If now I have to insert the new row with values.. How to achive this..
    my screen contains 7 rows... in will increase.. for every submit.. i have to check with the database.. whether the rebate_sku_num exists or not.. help me out.. here is my code.. i am not sure how to format my code.. in future i will do it...
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import javax.servlet.SingleThreadModel;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import java.io.IOException;
    import java.sql.ResultSet;
    import java.io.*;
    import java.util.*;
    import java.util.Date;
    import java.text.*;
    public class AddRebate extends HttpServlet implements SingleThreadModel {
    public void init(ServletConfig servletconfig) throws ServletException {
    super.init(servletconfig);
    public void doPost(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
    throws ServletException, IOException {
    HttpSession session;
    session = httpservletrequest.getSession(true);
    String user_name;
    String divisionCode;
    String rebate_sku_num[];
    String selectedMonth;
    String amount[];
    String message = "";
    String Query="";
    String RebateId="";
    boolean flag = true;
    // from here
    Calendar todaysdate = new GregorianCalendar();
    SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
    SimpleDateFormat sdf1 = new SimpleDateFormat("MM/dd/yyyy HH:MM:SS");
    System.out.println("today's date: " + sdf.format(todaysdate.getTime()));
    String entryDate = sdf.format(todaysdate.getTime());
    String entryDate1 = sdf1.format(todaysdate.getTime());
    System.out.println("entering date is " +entryDate) ;
    System.out.println("entering date is " +entryDate1) ;
    // to here
    user_name = (String) session.getAttribute("user_name");
    divisionCode = (String) session.getAttribute("division_code");
    selectedMonth = httpservletrequest.getParameter("selectedMonth");
    rebate_sku_num = httpservletrequest.getParameterValues("rebateId");
    amount = httpservletrequest.getParameterValues("amount");
    System.out.println("AddRebate : doPost() : selectedMonth = " + selectedMonth);
    System.out.println("AddRebate : doPost() : rebate_sku_num = " + rebate_sku_num);
    System.out.println("AddRebate : doPost() : amount = " + amount);
    // from here
    flag = true;
    for (int z = 0; z < rebate_sku_num.length && flag; z++) {
    try {
    flag=false;
    String s = "select REBATE_SKU_NUM from EASMSA_REBATE_SKU_DETAILS_TB where REBATE_SKU_NUM ='" + rebate_sku_num[z] + "'";
    System.out.println("AdjustmentServlet : doGet() : checking sku validity query = " + s);
    ResultSet resultset = DatabaseConnection.executeQuery(s);
    if (resultset != null) {
    while (resultset.next()) {
    RebateId = resultset.getString("REBATE_SKU_NUM");
    flag = true;
    if ((rebate_sku_num[z] != RebateId)) {
    System.out.println("get the values" +rebate_sku_num);
    System.out.println("get the values" + RebateId);
    Query = "INSERT INTO EASMSA_REBATE_SKU_DETAILS_TB " +
    "( REBATE_SKU_NUM, REBATE_DATE, REBATE_AMT, CREATED_BY," +
    "CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE ) VALUES (" +
    "'" + rebate_sku_num[z] + "', " +
    "TO_Date( '" + "30/" + selectedMonth + "', 'dd/MM/YYYY HH:MI:SS AM'), " +
    "'" + amount[z] + "' , '" + user_name + "'" +
    ", TO_Date( '" + entryDate + "', 'MM/dd/YYYY HH:MI:SS AM')" +
    ", '" + user_name + "'," +
    " TO_Date( '" + entryDate + "', 'MM/dd/YYYY HH:MI:SS AM'))";
    System.out.println("query is executed" +Query);
    }else if ((rebate_sku_num[z] == RebateId )){
    Query = "update EASMSA_REBATE_SKU_DETAILS_TB set REBATE_AMT=" + amount[z] + " where REBATE_SKU_NUM='" + rebate_sku_num[z] + "'";
    System.out.println("query is executed for updation" +Query);
    } else {
    System.out.println("AdjustmentServlet : doGet() : checking for sku validity : resultset null");
    // message = "SKU '" + sku[z] + "' of customer '" + customer[z] + "' and location '" + location[z] + "' is not valid.";
    message = "SKU '" + rebate_sku_num[z] + "' is not valid.";
    flag = false;
    } catch (Exception exception1) {
    System.out.println("AdjustmentServlet : doGet() : exception in checking validity of SKU");
    exception1.printStackTrace();
    // message = "SKU '" + sku[z] + "' of customer '" + customer[z] + "' and location '" + location[z] + "' is not valid.";
    message = "SKU '" + rebate_sku_num[z] + "' is not valid.";
    flag = false;
    try {
    if (DatabaseConnection.executeUpdate(Query) == 0) {
    System.out.println(" AddRebate : doPost() : rollback: error in executing update query= " + Query);
    DatabaseConnection.rollBack();
    message = "Some problem in updating transactions. Please try again later.";
    flag = false;
    // break;
    } else {
    System.out.println("AddRebate : doPost() : update sucessfull");
    message = "Rebate Transactions has been updated.";
    flag = true;
    } catch (Exception ex) {
    System.out.println("AddRebate : doPost() : exception in update query");
    message = "Some problem in updating transactions. Please try again later.";
    flag = false;
    ex.printStackTrace();
    session.setAttribute("message", message);
    httpservletresponse.sendRedirect("Welcome1.jsp?s=y");
    return;

    Oh and you can give me the dukes for helping you here:
    http://forum.java.sun.com/thread.jsp?forum=45&thread=475828&tstart=0&trange=15

  • How to achive this scenario

    Hi,
    We have report which contains many Financial products in product column.Some of product need to calculate by based on end user selection in terms of % in dashboard prompts.
    Example: If end user select or enter 10 in prompt then only Loan items has to calculate and need produce new row as Loan commitment 10%.
    I try by using calculated items but it not allowing to use presentation variable.How achive this.kindly let me know.
    EX:Base Report                                
    Financial Product
    Amount
    Credit Cards
    1300
    Deposit
    3000
    Shareholders' Fund
    2500
    Loans
    1000
    Expected Report:
    Financial Product
    Amount
    Credit Cards
    1300
    Deposit
    3000
    Shareholders' Fund
    2500
    Loans
    1000
    Loan commitment 10 %
    10

    I got answer for this question
    Thanks

  • How to do this report

    the report should display the number of users logged in to the system with there system name
    and the transaction they are doing..
    and these data should be updated for every 5 min in any of the ztable
    that table should hold the data for atleast 15 days
    how to do this report

    hi kalyani,
    you can find the transactions by a particular user from the transaction SM04.
    SM04 gives you the details of the users logged in,terminals,transactions the user is working on, the time he has logged in,no of sessions user has opened, and the memory used by the user's programs... all of that w.r.t to the client we login. but we can't get info like date and number of times the user has logged in.
    U can see tables:
    USR01 User master record (runtime data)
    USR02 Logon data
    USR03 User address data
    USR05 User Master Parameter ID
    USR12 User master authorization values
    You can also use transaction code ST03N.
    1. Go to tx code - ST03N
    2. Under "Workload" you can select your "Instance or Total" so that it expands and shows you Days, Week, Month.
    3. If you want to look at the transactions executed for a particular day, lets say, then double click on any day.
    4. At the bottom left you get "Analysis Views"
    5. Select & expand "User and Settlement Statistics"
    6. Double click on "User Profile"
    7. On the right side of the window you get a list of all the users
    8. Double click on a particular user you want to view the details of.
    9. The new screen will display the "Transactions/Reports Utilized by User XXX"
    If you wanna track which users executed a particular transacation then follow this:
    10. In "Analysis Views" expand "Transaction Profile"
    11. Double click on "Standard"
    You can view the list of Transactions and Reports.
    12. Double click on the Tx Code or Report you wanna check and it will show the Use of it.
    This will help you.
    regards,
    sravanthi

  • How to develop this report/Query that selects records with MAX Value

    Hi,
    My requirment is to develop a report to show all emp whose policy is going to expire ith in the user selected date intreval...
    Emp_ID--App_Date-Policy_Strt_Date--Policy_End_Date--App_Status
    101.01.2007---BlankBlank--
    NEW   (New application for a Medical Insurance policy raised for employee)
    101.01.2007---01.02.200730.05.2007--
    COMPLETE (policy issued for emp with strt & end dates)
    115.05.2007---01.02.200730.05.2007--
    RENEWAL  (a application is raised to renew emp policy)
    115.05.2007---01.06.200731.12.2007--
    COMPLETE  (policy issued for emp with strt & end dates)
    115.12.2007---01.06.200731.12.2007--
    RENEWAL  (a application is raised to renew emp policy)
    115.12.2007---01.01.200831.05.2008--
    COMPLETE  (policy issued for emp with strt & end dates)
    115.05.2008---01.01.200831.05.2008--
    RENEWAL  (a application is raised to renew emp policy)
    115.05.2008---01.06.200831.05.2009--
    COMPLETE  (a application is raised to renew emp policy)
    So EMP 1 got valid policy untill 31.05.2009.
    When a user executes a query to show all employees whose policy expiry date intreval (01.05.2008 to 31.05.2008)
    it shouldn't show Emp 1 as he got  valid policy untill 31.05.2009  but currently it is showing Emp 1....
    How can i achieve this
    Thanks

    Hi
    Thanks for the update
    I created variable on Plc End end
    If user enter show all emps whose policy is expiring in MAY (01.05.2008---31.05.2008) it is displaying EMp 1 as well but emp 1 has a policy which expires in 2009
    Thanks

  • How to design this report ?

    Hi experts,
    How to design the customer total outstanding report as on a particular date ?
    We also want Debit amount and Credit amount in the query output..
    Regards,
    Nishuv V.

    HI,
    if u want the current date u go for the customer exit (that means daily)if he wants aparticular date then u go for the user entry variable in 0calday,in variable screen he sould mention the date for that date only the out standing report will come .0calday and customer u keep in rows and those debit and credit u keep in the columns.
    if daily as on date they want outstanding u go for the customer exit just u create the variable on 0calday with customer exit if variable name is 'zcedate' go to the tcode CMOD and write the below mention code.
    when 'zcedate'.
    clear l_s_range.
    l_s_range-sign = 'i'.
    l_s_range-opt = 'eq'.
    l_s_range-low = sy-datum.
    append l_s_range to e_t_range.
    Thanks  for giving this opportunity.
    Thanks & Regards
    k.sathish

  • How to get this report format out ?

    Hello all experts,
    Sample table creations like the following. Note checkno under xcheck table is not unique. Have tried pivotting the xcheck table then link pivoted xcechk with xcert using certno and invno but this willl end up getting duplicate records. Can u please help ? Basically I am stuck at how to get that vendor name out on the report
    create table xcert(
    certseq number primary key,
    certno varchar2(5) not null,
    vendor varchar2(25));
    create table xcheck(
    checkseq number primary key,
    checkno varchar2(8) not null,
    invno varchar2(100);
    Xcert Data
    certseq certno     vendor
    1     C1001     BP GAS
    2     C1002     BUG PEST CONTROL
    3     C1003     BP GAS
    4     C1004     BP GAS
    5     C1005     WILLIES BESTxcheck Data
    checkseq     checkno          invno
    1          EF500001     C1001,C1003,C1004
    2          EF500002     C1002
    3          EF500002     C1005Looking for a following report format
    checkno          invno               vendor
    EF500001     C1001,C1003,C1004     BP GAS
    EF500002     C1002               BUG PEST CONTROL
    EF500002     C1005               WILLIES BEST      Thank you
    Munshar

    Hi, Munshar,
    MunSharmi wrote:
    Frank,
    "I don't see why you would need another column. What would you need to store, or retrieve, that a table like this wouldn't allow?
    Notice my orignal xcheck table data plus a check date column
    {code}
    checkseq     checkno          invno               checkdate
    1          EF500001     C1001,C1003,C1004     11/01/2010
    2          EF500002     C1002               12/10/2010          
    3          EF500002     C1005               01/01/2011
    {code}Sure, if you have other data that you haven't mentioned yet, then you need other columns, and maybe even other tables, to store that data.
    Talking about this would be a lot easier if you described what you were trying to model in these tables, and what the different entities are.
    after nomalization
    {code}
    seq(PK)     checkseq     checkno          invno               checkdate
    1     1          EF500001     C1001               11/01/2010
    2     1          EF500001     C1003               11/01/2010
    3     1          EF500001     C1004               11/01/2010
    4     2          EF500002     C1002               12/10/2010          
    5     3          EF500002     C1005               01/01/2011
    {code}What do checkseq and checkdate represent? What is the realtionship between them? If there is another row with checkseq=3, will it necessarily have checkdate=01/01/2011? If there is another row with checkdate=01/01/2011, will it necessarily have checkseq=3?
    Shouldn't I need to have the extra seq(PK), then use check seq to group the data report to meet users' target format ? Please adviseIt depends on what your entities are. If you explain that, then perhaps I can give some advice about how to model them.
    In general, every type of entity requires a separate table. It looks like xcert represents one kind of entity, uniquely identified by certno. I assume there is some other kind of entity, uniquely identified by checkno, and that you have a table for that which you haven't needed to show in this thread.
    Are you saying that there's some other entity, that is uniquely identified by checkseq? If so, it probably needs a table of it's own.
    Every table should have a primary key. I had assumed that checkseq only served as the primary key of the xcheck table. If it serves some other purpose, then yes, you would need another column.
    Many-to-many relationships usually require a separate table. I was guessing that xcheck was intended to record a many-to-many realtionship between xcert and some other table. Guessing is not always the best way to solve problems. I think it would be better if you explained what you want to do, rather than have me guess at it.
    So far, what you've shown is analagous to an order entry system. One kind of entity is customer, another is supplier. Say you're running a company that sells products from many suppliers to many customers. There is a many-to-many relationship between customers and suppliers. Any customer may buy from many suppliers; any supllier may sell to many cutomers. You may have an orders table that keeps track of that many-to-many relationship. You may also have another entity, salesman, that also has many-to-many relationships with customers and suppliers. Depending on what exactly you consider an "order", there are lots of different ways to model this. Can a single order involve many customers? Can a single order involve many suppliers? Can a single order involve many salesmen? If an order always involves one customer buying from one supplier using one salesman, then you may only need four tables. If the situation is more complicated, then you may need more tables.

  • How to achive this using analytical function-- please help

    version 10g.
    this code works just fine with my requirement. i am tyring to learn analytical functions and implement that in the below query. i tried using row_number ,
    but i could nt achive the desired results. please give me some ideas.
    SELECT c.tax_idntfctn_nmbr irs_number, c.legal_name irs_name,
           f.prvdr_lctn_iid
      FROM tax_entity_detail c,
           provider_detail e,
           provider_location f,
           provider_location_detail pld
    WHERE c.tax_entity_sid = e.tax_entity_sid
       AND e.prvdr_sid = f.prvdr_sid
       AND pld.prvdr_lctn_iid = f.prvdr_lctn_iid
       AND c.oprtnl_flag = 'A'
       AND c.status_cid = 2
       AND e.oprtnl_flag = 'A'
       AND e.status_cid = 2
       AND (c.from_date) =
              (SELECT MAX (c1.from_date)
                 FROM tax_entity_detail c1
                WHERE c1.tax_entity_sid = c.tax_entity_sid
                  AND c1.oprtnl_flag = 'A'
                  AND c1.status_cid = 2)
       AND (e.from_date) =
              (SELECT MAX (c1.from_date)
                 FROM provider_detail c1
                WHERE c1.prvdr_sid = e.prvdr_sid
                  AND c1.oprtnl_flag = 'A'
                  AND c1.status_cid = 2)
       AND pld.oprtnl_flag = 'A'
       AND pld.status_cid = 2
       AND (pld.from_date) =
              (SELECT MAX (a1.from_date)
                 FROM provider_location_detail a1
                WHERE a1.prvdr_lctn_iid = pld.prvdr_lctn_iid
                  AND a1.oprtnl_flag = 'A'
                  AND a1.status_cid = 2)thanks
    Edited by: new learner on May 24, 2010 7:53 AM
    Edited by: new learner on May 24, 2010 10:50 AM

    May be like this not tested...
    select *
    from
    SELECT c.tax_idntfctn_nmbr irs_number, c.legal_name irs_name,
    f.prvdr_lctn_iid, c.from_date as c_from_date, max(c.from_date) over(partition by c.tax_entity_sid) as max_c_from_date,
    e.from_date as e_from_date, max(e.from_date) over(partition by e.prvdr_sid) as max_e_from_date,
    pld.from_date as pld_from_date, max(pld.from_date) over(partition by pld.prvdr_lctn_iid) as max_pld_from_date
    FROM tax_entity_detail c,
    provider_detail e,
    provider_location f,
    provider_location_detail pld
    WHERE c.tax_entity_sid = e.tax_entity_sid
    AND e.prvdr_sid = f.prvdr_sid
    AND pld.prvdr_lctn_iid = f.prvdr_lctn_iid
    AND c.oprtnl_flag = 'A'
    AND c.status_cid = 2
    AND e.oprtnl_flag = 'A'
    AND e.status_cid = 2
    AND pld.oprtnl_flag = 'A'
    AND pld.status_cid = 2
    )X
    where c_from_date=max_c_from_date AND e_from_date =max_e_from_date AND
    pld_from_date=max_pld_from_date

  • How to achive this in Oracle SQL

    Hi All,
    How to get the below result:
    base table:
    COLA COLB
    112 01-JAN-2012
    113 02-FEB-2012
    114 02-MAR-2013
    115 01-APR-2013
    Result table:
    COLA COLB COLC
    112 01-JAN-2012 01-FEB-2012
    113 02-FEB-2012 01-MAR-2012
    114 02-MAR-2013 31-MAR-2013
    Thanks!

    user505326 wrote:
    Hi All,
    How to get the below result:
    base table:
    COLA COLB
    112 01-JAN-2012
    113 02-FEB-2012
    114 02-MAR-2013
    115 01-APR-2013
    Result table:
    COLA COLB COLC
    112 01-JAN-2012 01-FEB-2012
    113 02-FEB-2012 01-MAR-2012
    114 02-MAR-2013 31-MAR-2013
    Wrong Forum !!! Post at {forum:id=75}. Before posting there close this thread marking as answered.

  • How the achive this using the function module SO_NEW_DOCUMENT_SEND_API1

    I want to format the body of the mail like this.How to maintian proper spacing between the fields.kindly suggest.
    It may contain multiple line items also.
    SC Number                               | SC Item Number                         | SC Item Qty      | PO Number       | PO Item Price
    SC Name                                  | SC Item Text                               | SC Item Price  | PO Item             | Invoice Item Price
    <SC_NUMBER>                           <SC_ITEM>                                  <SC_QTY>          <PO_NUMBER> <PO_PRICE> 
    <SC_NAME>                               <SC_ITEM_TEXT>                         <SC_PR>            <PO_ITEM>         <IV_PRICE>

    Hi,
    You can do with SOFM method select over there Excel Sheet as same format you can select all fields respectively so in the output in an attachment you will get the values as you like that format in the same way multiple line items also you can retrive data in Excel sheet attachement, then using this FM you can send mail with this attachement.
    Thanks and regards,
    Prabhakar Dharmala

  • Ideas on how to populate this report

    Sample Report Looks like this..
    __AC_No      AC_Nm      Bal__         
       123                 www           $40
       __Desc    Val     ValDesc__
            ww         re           nono
            xx         ps           greg
            vu          hg          rpts
    AC_No,AC_Nm,Bal,Desc,Val,ValDesc are all my fields in the report which i have to make use of.
    For that particular AC_Nm, I have to get the Desc,Val and ValDesc as shown above.
    I am creating one more detail tab and and adding Desc,Val and ValDesc and when I am running the report my output is like this
    __AC_No      AC_Nm      * Bal*__   
       123                 www           $40
        __Desc    Val     ValDesc__
            ww         re           nono
    __AC_No      AC_Nm      * Bal*__         
       123                 www           $40
          __Desc    Val     ValDesc__
             xx         ps           greg
    __AC_No      AC_Nm      * Bal*__         
      123                 www           $40
        __Desc    Val     ValDesc__
             vu          hg          rpts
    Instead of as shown in the sample report.
    Can some one help me to get on track and get the report as shown In the sample report above .

    Hi Sai,
    You can create a sub report, link AC_Nm to sub report to retrieve description fields Desc, Val, ValDesc and display it in the detail section below AC_Nm fields.
    Let us know whether this will fulfill your requirement.

  • How to get this report

    write a program to generate a report of the customers in kna1 table who belongs to the range of cust number i.e, kunnr, name, city country given by the user in the selection-screen
    Thanks,

    hi,
    tables : kna1.
    select-options : p_kunnr like kna1-kunnr.
    parametre :p_land1 like kna1-land1.
    parametre :p_name1 like kna1-name1.
    data :t_kna1 like kna1 occurs 0 with header line.
    select * from kna1 into table t_kna1 where kunnr in p_kunnr
                                          and land1 = p_land1
                                          and name1 = p_name1.
    loop at t_kna1.
    write:(display fields wat ever u want)
    end loop.

  • How i achive this data by writing exact query ?

    Dear Exparts,
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    "CORE     10.2.0.3.0     Production"
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - ProductionI have a table Name TB and Column A and B with the following data.
    A       B
    10     02-AUG-2012
    10     04-AUG-2012
    10     01-SEP-2012
    10     10-AUG-2012
    11     04-AUG-2012
    11     01-SEP-2012
    11     01-AUG-2012
    10     12-AUG-2012
    10     15-JUL-2012I need data like
    A                      B
    10            10-AUG-2012
    10            12-AUG-2012
    10            01-SEP-2012
    11            01-SEP-2012How we get this data ?
    We have to count column B group by Column A. then devided the count_value by 2 and trunc it and base on the result out put will come. the data are the maximum data.
    Like when we count group A result will be
    A            B
    10           3
    11           1base on above result my desire outpul will come...
    Here is the script
    CREATE TABLE TB
        "A" VARCHAR2(20 BYTE),
        "B" DATE
    Insert into TB (A,B) values ('10',to_date('02-AUG-2012','DD-MON-RRRR'));
    Insert into TB (A,B) values ('10',to_date('04-AUG-2012','DD-MON-RRRR'));
    Insert into TB (A,B) values ('10',to_date('01-SEP-2012','DD-MON-RRRR'));
    Insert into TB (A,B) values ('10',to_date('10-AUG-2012','DD-MON-RRRR'));
    Insert into TB (A,B) values ('11',to_date('04-AUG-2012','DD-MON-RRRR'));
    Insert into TB (A,B) values ('11',to_date('01-SEP-2012','DD-MON-RRRR'));
    Insert into TB (A,B) values ('11',to_date('01-AUG-2012','DD-MON-RRRR'));
    Insert into TB (A,B) values ('10',to_date('12-AUG-2012','DD-MON-RRRR'));
    Insert into TB (A,B) values ('10',to_date('15-JUL-2012','DD-MON-RRRR'));Thanks in advance...
    Ask2Learn
    Edited by: Asked to Learn on Sep 1, 2012 7:55 AM
    Edited by: Asked to Learn on Sep 1, 2012 8:38 AM (CHANGE DATA TYPE) SORRY

    this ?
    with t as
    select a,b,round(count(*) over(partition by a)/2) cnt,row_number() over(order by null) rn from tb
    ),t1 as
    select a.*,row_number() over(order by null) rn from tb a
    select t1.a,t1.b from t,t1 where t1.rn=t.rn and  t1.b>t.cnt order by a;
    A                    B                     
    10                   4                     
    10                   6                     
    10                   5                     
    11                   3                     
    4 rows selected
    Or
    with t as
    select a,b,round(count(*) over(partition by a)/2) cnt from tb
    select a,b from t where cnt<b;

  • How to achive current date in report

    Hi Expeorts,
    I have below Filter in one of report. how to achive this?
    Ship Date = Current Date
    What is the meaning of this? and how to do this?
    Thanks in advance
    David
    Edited by: david Rathod on Jan 10, 2012 7:50 AM

    Hi ,
    You can achieve the same using Customer exit variable .You can use the following code .
    FORM do_user_exit       USING    i_vnam        LIKE rszglobv-vnam
                                     i_vartyp      LIKE rszglobv-vartyp
                                     i_iobjnm      LIKE rszglobv-iobjnm
                                     i_s_cob_pro   LIKE rsd_s_cob_pro
                                     i_s_rkb1d     LIKE rsr_s_rkb1d
                                     i_periv       TYPE rro01_s_rkb1f-periv
                                     i_t_var_range TYPE rrs0_t_var_range
                                     i_step        TYPE i
                            CHANGING e_t_range     TYPE rsr_t_rangesid.
      if i_step = 1.
         clear l_s_range.
         l_s_range-low = sy-datum.
         l_s_range-sign = 'I'.
         l_s_range-opt  = 'EQ'.
         append l_s_range TO e_t_range.
      endif.
    ENDFORM.   
    Hope it helps .
    Thanks
    Kamal

Maybe you are looking for

  • How can i install adobe flash player on my i mac OSX lion

    I just bought an I mac that runs on OSX 10.7.2 lion and cannot install Adobe flash player 10,0. I need it for looking to Youtube videos Can anybody help me? Charles

  • Binary Format of an Image..

    Hi All I had a training in ABAP, but dont have practical experience in it as I have not worked in any of the projects in ABAP. Now I have a requirement in ABAP and hope you people will solve my problem. Iam picking an image from a third party server

  • Oracle Client 10.2.0.5 32 bits for windows 7 64bits

    Hi I do not have access to oracle support, but I really need to download this patch in order to install it on Windows 7 64 bits and 2008 R2... Please somebody can put me this patch on a share/ftp or other ? Because I really need this.. Thanks a lot.

  • Publishing iCal on the .Mac

    I want to publish my iCal to the .Mac and know how to do this, but I have different categories like school, work, sports, appointments, and other things and when I publish them to the iCal I have a different web sites for each category. I want to pub

  • Connect_by_root in 9i

    Hi, I'm using Oracle 9i db and I'm wondering what would be the best (fast, simple..) way to get the connect_by_root hierarchical function functionality from the 10g. Tnx, Mario