Help in Collection in CUIC

Hi Team,
Request all your help on the issue I am facing on the Collection group in CUIC. I am in the process of creating the Collection list for outbound reports where the request is to pull the Campaign Names based on the Campaign Group. I have created the Collection for the Campaign Names using the Wildcard based on the campaign group, but it is not fetching the exact Campaign Names.  For example, if there is a Campaign Group Team then the campaigns S1,S2,S3 should automatically populate by clicking the Collection Group Team. However it is fetching all values in the collection with the string Team1 and Team2.
Request all your help in identifying the correct format for the Collection group
The below is the value list and Campaign Query.
Value List:
select CAMPAIGNID  as id , CAMPAIGNID as Value
from obd_campaign (nolock)
Collection List:
select CAMPAIGNID as id ,CAMPAIGNID as Value
from obd_campaign (nolock)
where CAMPAIGNGROUP = <COLLECTIONIDENTIFIER>
order by CAMPAIGNID
Collection Type: Wildcard
Wildcard:  [Team]
I have tried with [Team] , Team,Te.*,[T][e][a][m] nothing gives the correct information. sometimes less information and sometime it says no data is available.
Note:
Please don't use the Values option in Collection group as the customer will include more campaigns in the future. It should auto update by simple refresh.
Thanks,

Hi Team,
Request all your help on the issue I am facing on the Collection group in CUIC. I am in the process of creating the Collection list for outbound reports where the request is to pull the Campaign Names based on the Campaign Group. I have created the Collection for the Campaign Names using the Wildcard based on the campaign group, but it is not fetching the exact Campaign Names.  For example, if there is a Campaign Group Team then the campaigns S1,S2,S3 should automatically populate by clicking the Collection Group Team. However it is fetching all values in the collection with the string Team1 and Team2.
Request all your help in identifying the correct format for the Collection group
The below is the value list and Campaign Query.
Value List:
select CAMPAIGNID  as id , CAMPAIGNID as Value
from obd_campaign (nolock)
Collection List:
select CAMPAIGNID as id ,CAMPAIGNID as Value
from obd_campaign (nolock)
where CAMPAIGNGROUP = <COLLECTIONIDENTIFIER>
order by CAMPAIGNID
Collection Type: Wildcard
Wildcard:  [Team]
I have tried with [Team] , Team,Te.*,[T][e][a][m] nothing gives the correct information. sometimes less information and sometime it says no data is available.
Note:
Please don't use the Values option in Collection group as the customer will include more campaigns in the future. It should auto update by simple refresh.
Thanks,

Similar Messages

  • Qtn: I have 10 standard elementary search helps in collective standard search help, how to deactivate the 10th elementary search help?

    Qtn: I have 10 standard elementary search helps in collective standard search help, how to deactivate the 10th elementary search help?

    Hello,
    this topic is still a problem for me, does anybody have an idea.
    Just to show what's my problem:
    Collective Search help KRED does include a SAP append-search help ASH_KRED which holds the elementary search helps KREDC, KREDE, KREDM, KREDW.
    The search helps KREDE, KREDM, KREDW should not be displayed, so I added another Serach-Help-Append ZKRED_CUST at the end of CSH KRED which holds these 3 SH's with the hidden flag.
    That works, the SH's are not shown anymore.
    I also added some other of the Original SAP SH's (e.g. KREDA) with the hidden flag and added changed copies of these (e.g ZKREDA) there to be shown instead.
    All this can be done modification free by appends.
    The folders of the elementary search helps are shown in the order as they are found included in the KRED SH and the append to this SH.
    This means that the not hidden Sh KREDC from ASH_KRED is shown before all the "custimized" ZKREDx -SH's. But we need this SH not very often, so that I want it to displayed al the right-most position of the folders of SH's or at the most down postition of the drop-down-selection of SH's.
    But I have not found any way to do this modification free.
    The only way to archive this is to modify ASH_KRED by setting the Hidden-Flag for KREDC and add this SH at the end of append-SH ZKRED_CUST again.
    But I want avoid this modification.
    So, is there any way to do this without modifing any of the original SAP SH's ?
    Helmut Fischer

  • Help with collection

    I have posted about this previously and have been working on it and could use some help/advice. I had a charge of from 2011 from JC Penney for $741 and when I contacted JC P to make payment, they sent me to a company called "crown asset management." When I contacted this company they said they weren't handling the collection and sent me to an attorrneys office. When I called them they agreed to a payment plan and at that time nothing was on my credit report for this account except the charge off. I have made 2 payments and suddenly a collection pops up on my account from JC Penney and the collection is listed under Synchrony Bank FKA GEO Capital. I want the collection to note that it is open and being "paid as promised." Crown Assett Management, JC Penney and the Attorney office all say to contact one another. I have called Synchrony Bank and they do not have an account in my name. What can I do? I am pulling my hair out with this one.

    The taking and reporting of the charge-off is totally separate from any issue of subsequent collection on the debt.It is simply a reporting by the creditor that they moved the bad debt in their accounting books from a receivable asset over to an loss as a bad debt.The consumer continues to owe the entire debt, and can continue to collect upon it themselves of via a debt collector.A charged-off debt can also become a collection if referred to or sold to a debt collector. An in-house collection can still qualify as a debt collector under the FDCPA, and thus report a collection.As clearly defined under FDCPA 803(6), "the term includes any creditor who, in the process of collecting his own debts, uses any name other than his own which would indicate that a third person is collecting or attempting to collect such debts."Synchrony is thus considered a debt collector, and subject to all provisions of the FDCPA. As you pay the debt, you can insist that they promptly update the remaining balance under their collection, and notify the credtior of the current balance.FCRA 623(a)(2) requires a party who has reported to a CRA to promplty update their reporting so as to maintain its current accuracy.It is common for creditors and debt collectors not to update the remaining balance  after receipt of each payment, but technically you can insist that they do so. Once the debt is paid, neither the charge-off reported by the OC nor any collection that might also be reported by a debt collector is required to be deleted.They are required to promplty update the balance to show $0 debt (creditor) and $0 remaining under collection (any debt collector).

  • Need some help in collection initiallization

    Hi
    i am facing some problem with collection intiallization.we have 10g db.it is throwing 'ORA-06531: Reference to uninitialized collection' error.i tried out the same procedure with emp table.it is not throwing any error.i am pasting both codes here.
    ----On emp table---following code on emp in 10g is working--
    DECLARE
    TYPE EMP_REC_TYPE IS TABLE OF SCOTT.EMP%ROWTYPE;
    EMP_REC EMP_REC_TYPE;
    cursor c1(p_emp number) is
    select * from scott.emp where empno=p_emp;
    BEGIN
    for i in (select empno from scott.emp where empno=7369) loop
    for j in c1(i.empno) loop
    select j.empno,j.ename,j.job,j.mgr,j.hiredate,j.sal,j.comm,j.deptno
    bulk collect into emp_rec
    from dual;
    end loop;
    end loop;
    FOR I IN emp_rec.first ..EMP_REC.last LOOP
    DBMS_OUTPUT.PUT_LINE(EMP_REC(I).EMPNO);
    END LOOP;
    END;
    ----following throws ORA-06531----
    declare
    type gpds_rec_type is table of BHENPD28.T70101CCD%rowtype;
    gpds_rec gpds_rec_type;
    cursor c_insert(p_bom varchar) is
    select * from BHENPD28.T70101CCD CCD
    where expl_bld_no=p_bom
    and ibmsnap_operation='I'
    AND NOT EXISTS
    (SELECT 1 FROM
    BHENPD28.T70101CCD CCD1
    WHERE CCD1.UPC_CDE=CCD.UPC_CDE
    AND CCD1.FNA_CDe=CCD.FNA_CDE
    AND CCD1.PART_NO=CCD.PART_NO
    AND CcD.PART_PLS=CCD1.PART_PLS
    AND CCD1.PART_DLS=CCD1.PART_DLS
    AND CCD1.PART_USAGE_QTY=CCD.PART_USAGE_QTY
    AND CCD1.IBMSNAP_OPERaTION IN ('D','U')
    AND CCD1.IBMSNAP_LOGMARKER>CCD.IBMSNAP_LOGMARKER); ---TAKE ALL REC WITH 'i' AND DOES NT HAVE AN UPDATE OR DELETE LATER
    BEGIN
    for i in (select distinct expl_bld_no from BHENPD28.T70101CCD where expl_bld_no='RCGN4180') loop
    for j in c_insert(i.expl_bld_no) loop
    SELECT j.EXPL_BLD_NO,j.upc_prefx,j.UPC_CDE,j.fna_cde,j.prod_yr,j.prod_line_cde,j.part_no,j.part_dls,j.part_pls,J.USAGE_ITEM_NO,J.MOS_KEY_CDE,
    J.ENGNG_DIV_CDE,J.BLD_INTNT_DIV_CDE,j.modlr_asm_statn,J.UNIT_MSRE_CDE,J.PAINT_PRC_CDE,j.veh_sys_mgmt_team,j.prod_dev_impl_team,
    j.chrg_no,j.ewo_no,J.SUB1_PART_NO,J.SUB1_PART_DLS,J.SUB1_PART_PLS,J.SUB2_PART_NO,J.SUB2_PART_DLS,j.sub2_part_pls,j.mdl_cde,
    j.fna_mdf_desc,J.HAND_CDE,j.part_usage_qty,J.NO_OF_UNITS_QTY,J.USAGE_QLFN_CDE,J.MAKE_PUR_CDE,j.usage_st_cde,J.LESS_FIN_IND_CDE,
    j.clr_tbl_cde,J.STK_DISP_CDE,j.asm_plt_actn_cde,J.SOURCE_CDE,J.PART_SPCL_ORD_CDE,J.TORQUE1,j.torque2,j.bom_usage_asm_ind,j.bom_usage_det_reqd,
    j.bld_blk_phase,J.BOM_USAGE_ISTL_QTY,J.BOM_USAGE_ISTL_IND,j.usage_trmt_ind_cde,J.USAGE_TRMT_DTE_TME,j.calc_flag,j.insp_wt,j.insp_dte,J.METAL_GAUG,
    J.ASM_CDE,j.expl_id_sak,j.add_dte_tme,j.tran_dte_tme,j.upd_usr_id_cde,J.UPD_PGM_CDE,j.dum_col_cde,j.sys_bom_item_no,j.ibmsnap_intentseq,j.ibmsnap_operation,
    J.IBMSNAP_COMMITSEQ,J.IBMSNAP_LOGMARKER
    bulk collect into gpds_rec
    from dual;
    end loop;
    end loop;
    for i in gpds_rec.first..gpds_rec.last loop
    dbms_output.put_line(gpds_rec(i).expl_bld_no);
    end loop;
    end;
    Basic logic involved in both scripts are same.
    any input/help is highly apprecited
    Regards
    Cklp

    Please consider the following when you post a question.
    1. New features keep coming in every oracle version so please provide your Oracle DB Version to get the best possible answer.
    You can use the following query and do a copy past of the output.
    select * from v$version 2. We dont know your DB structure or How your Data is. So you need to let us know. The best way would be to give some sample data like this.
    I have the following table called sales
    with sales
    as
          select 1 sales_id, 1 prod_id, 1001 inv_num, 120 qty from dual
          union all
          select 2 sales_id, 1 prod_id, 1002 inv_num, 25 qty from dual
    select *
      from sales 3. Rather than telling what you want in words its more easier when you give your expected output.
    For example in the above sales table, I want to know the total quantity and number of invoice for each product.
    The output should look like this
    Prod_id   sum_qty   count_inv
    1         145       2 4. Next thing is a very important thing to remember. Please post only well formatted code. Unformatted code is very hard to read.
    Your code format gets lost when you post it in the Oracle Forum. So in order to preserve it you need to
    use the {noformat}{noformat} tags.
    The usage of the tag is like this.
    <place your code here>\                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • In need of help with Collections.

    Greetings,
    I've been assigned a college work where I have to develop a solution, utilizing Swing and Collections, to the problem below:
    "There is a department store with several products. The store owner doesn't know exactly how many product types there are, so he decided to register all types of products. The registering option consists of the following operations: add, remove, and change product.
    The products have three characteristics (attributes): name, quantity and price. Once all products are registered, the store owned wants to see a list of the products in alphabetical order on the screen.
    The store owner also wants the program to sell the products. The sale is done with the user searching for a product by the name, and the program will show the price of the product on the screen. The user confirms that it's the right product, and the program will reduce the item's quantity by one.
    Obs.: To simplify the problem, work with a reduced number of products. Also the program does not need to store date in the disk."
    So far I've built a class named Product, a visual class for the GUI and the main class. Inside the Product class I have a String for the name, a Float for the price, and Integer for the quantity, as well as the getters and setters for those private variables.
    In the GUI class I've made a Product Array and I also made the text fields so the user can type the data and put it in the array. This part seems to be working fine. The problem begins when using Collections. How can I use this array to make a sorted list of the products (it seemed to work when using Arrays.sort(products, byAlpha [Comparator I've creadted to sort alphabetically]), but I don't know how to work with this, now supposedly sorted, data), maybe put it inside a JList, where the user can see what products he is registering in real time? Can I make it so the user clicks on the product in the JList and he can now delete it or change the values of that product (price, quantity)?
    Any help, suggestions, insight, are greatly appreciated. Thanks in advance!
    Thiago.

    So, for example, on a JButton, I should
    write the code on a different class, and in the GUI
    class, make an instance of that class (or is it the
    other way around?), and call the method that I need
    for that button inside the actionPerformed? (Sorry if
    I sound confusing, I'm not very familiar with Java)Suppose you have a class called Store, that represents the store. Internally, it has a Collection of Products, but the caller doesn't need to know that.
    So, Store might have a method called findProducts:
    public Collection<Product> findProducts(String findThis) {
        Collection<Product> returnThis = new ArrayList<Product>;
        // code here that searches through the internal collection, and
        // adds products whose names match the search string to returnThis
        return returnThis;
    }So then you might have a GUI that looks like this:
    public class StoreGUI {
        private Store theStore;
        public StoreGUI() {
            theStore = new Store();
            // create frame, etc.
            final JTextField searchThis = new JTextField();
            JButton searchButton = new JButton("Search");
            final JList searchResults = new JList();
            searchButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    Collection<Product> result = store.findProducts(searchThis.getText());
                    searchResults.setListData(result.toArray());
            // add text field, button, etc. to frame, etc.
    It may be preferable to get rid of getters and
    setters and instead have operations that are
    specifically meaningful for Products. Not sure if I understand, could you give me an
    example of how I could do that?I mean that if Product now has this:
    private int quantity;
    public int getQuantity() {
        return quantity;
    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }Then arguably that doesn't make sense, because when you run a store you can't just magically create a hundred boxes of cornflakes, which (arguably) is what you'd be doing if you did this:
    cornflakes.setQuantity(100);So it might make more sense to get rid of setQuantity, and provide methods on Product like this:
    private int quantity;
    public int getQuantity() { // this is still OK, you can always look at your inventory
        return quantity;
    public void buy(int quantity) {
        // check to make certain that quantity is no more than this.quantity
        this.quantity -= quantity;
    public void addInventory(int quantity) {
        this.quantity += quantity;
    }This might not be the best example, because the difference isn't huge. But the idea is that you're modelling reality a little more closely, and you're moving the logic that controls the state of the object, directly into the logic. (So you don't have some external object calling getQuantity, changing it, and then calling setQuantity.) This tends to make code easier to maintain.
    The book I'm using as reference gives examples
    of List and ArrayList, but only using String. I'm not
    sure how to use it for my Product class, would it be
    something like this?
    > HashSet<Product> products = new HashSet<Product>();Yes, that's exactly right.
    Also, do you happen to know any
    resource on the web where I can learn more about
    Collections?http://java.sun.com/docs/books/tutorial/collections/index.html

  • Help in Collections (LinkedList) and in Files I/O

    Well, I've two questions, first one:
    I'm trying to do a program which reads and writes (well, I'm only in the reading part :P) from/to Files with a kinda complex Layout (is it the word???) using java.io.*; it has the same limit of number of characters in every row, but it can be lower, and I don't know how to read them and store them in a String Array, specially an overloaded read() from my class where the paramters given are file, length in characters to read, and relative position in the layout... I kinda made a read() which reads ALL the text file... the first method returns a String[], but the last one returns String[][] (because I want to mantain the "layout")... What do you suggest me (well, at first try I was trying to use Data Bases but I really don't like the idea of basing my program in ANOTHER PROGRAM ... yes the one from Mycr0Zoft... I heard about making databases in Java is that true?, or I need that or any other program? Should I stay on the java.io.*???)
    the second question:
    When I Initialized the String[] and the String[][] to return in the read() methods I used an arbitrary (damn if that's not the word... I shouldn't have stopped studying the English language...!) size of [50]
    in the rows, I really find disgusting that thing, and I managed to use LinkedList to store them, BUT ONLY in the String[], because I can add the individual String Objects to de LinkedList, to simulate a String[], but i can't use it on the String[][] case, cuz, as you may now, I can't add an Object[] to that collection...
    Any Suggestions???
    Thnx ...

    Yeah, I have a suggestion. Lay off the reefer.
    Apart from that, perhaps BufferedReader would be helpful...it sounds like your input may be separated by newline into individual records (that is, each line is a logically separate bunch of data, pretty typical).
    Using a List to hold each line seems fine, but if you find that you have a "layout" (and it's not at all clear what you're talking about when you say that) then perhaps you should define a class that encapsulates that layout, and maintain a List of those.
    But don't worry about any of this until you come down. For now, listen to some Allman Brothers, and drink plenty of water. Stay at home; you don't want to be driving or trying to ride a bus right now.

  • Need help on Collecting Objects in Transports

    Hi All,
    I am collecting the Application Component for Transporting.While Collecting , i have given the grouping as "Neccessary Objects". But while executing,it is acting as a "Data Flow Before". It is installing all the below Objec ts.Please help on this Issue.
    Thanks,
    Jelina.

    Hi Jelina,
    After collecting objects, choose option as "Only Necessary objects" and then below the object collected you will find some dependant objects related to it.
    For eg: If you are collecting cube beside that is a check box which will be checked for transport.
    Below that you can find many things where that cube is used example--infoarea or info object.
    Beside that info area or info object you wil find a check box, right click and click on "Donot Transport Any below". So the object on which you clicked and the below objects will not be transported. Do the same thing for all the underlying objects.
    Hope it helps!!!
    Thanks
    Lavanya

  • Need Help With Collection.binarySearch ! Please help me

    * TaxPayerRecord.java
    * Created on December 21, 2006, 11:42 AM
    public class TaxPayerRecord implements Comparable <TaxPayerRecord>
        private String nric;
        private String name;
        private String dateOfBirth;
        private String gender;
        private String blockNo;
        private String unitNo;
        private String streetName;
        private String bldgName;
        private String postalCode;
        private long totalIncome;
        private long totalDonation;
        private long totalPersonalRelief;
         * Creates a new instance of TaxPayerRecord
        public TaxPayerRecord(String nric, String name, String dateOfBirth, String gender,
                                 String blockNo, String unitNo, String streetName, String bldgName,
                                 String postalCode, long totalIncome, long totalDonation,
                                 long totalPersonalRelief)
            this.nric = nric;
            this.name = name;
            this.dateOfBirth = dateOfBirth;
            this.gender = gender;
            this.blockNo = blockNo;
            this.unitNo = unitNo;
            this.streetName = streetName;
            this.bldgName = bldgName;
            this.postalCode = postalCode;
            this.totalIncome = totalIncome;
            this.totalDonation = totalDonation;
            this.totalPersonalRelief = totalPersonalRelief;
        public String toString()
            return nric+"|"+name+"|"+dateOfBirth+"|"+gender+"|"+blockNo+"|"+unitNo+"|"+streetName+"|"+
                   bldgName+"|"+postalCode+"|"+totalIncome+"|"+totalDonation+"|"+
                   totalPersonalRelief;
        public long getTotalIncome()
            return totalIncome;
        public long getTotalDonation()
            return totalDonation;
        public long getTotalPersonalRelief()
            return totalPersonalRelief;
        public String getDateOfBirth()
            return dateOfBirth;
        public String getPostalCode()
            return postalCode;
        public int compareTo (TaxPayerRecord next)
              return this.nric.compareTo(next.nric);
    } //TaxPayerRecord
    import java.io.*;
    import java.util.*;
    public class TaxPayerProgramme
         public TaxPayerProgramme()
                             String menu = "Options: \n"
                                            + "1. Compute And Print List Of Tax Payers (Sorted by NRIC) \n"
                                            + "2. Compute And Summary Of Tax Revenue \n"
                                            + "3. Search for Tax Payer by NRIC \n"
                                            + "Enter option(1-2,0 to quit): ";
                             System.out.print(menu);
                             Scanner input = new Scanner( System.in );
                             int choice = input.nextInt();
                             System.out.println("");
                         // Declaration
                             ArrayList<TaxPayerRecord> list = new ArrayList<TaxPayerRecord>();
                             String inFile ="TaxPayer2005.txt";
                             String line = "";
                             String nric;
                             String name;
                             String dateOfBirth;
                             String gender;
                             String blockNo;
                             String unitNo;
                             String streetName;
                             String bldgName;
                             String postalCode;
                             long totalIncome;
                             long totalDonation;
                             long totalPersonalRelief;
                        try{
                             //Read from file
                             FileReader fr = new FileReader (inFile);
                             BufferedReader inFile1= new BufferedReader (fr);
                             line=inFile1.readLine();
                                       while (line!=null)
                                       StringTokenizer tokenizer = new StringTokenizer(line,"|");
                                       nric=tokenizer.nextToken();
                                       name=tokenizer.nextToken();
                                       dateOfBirth=tokenizer.nextToken();
                                       gender=tokenizer.nextToken();
                                       blockNo=tokenizer.nextToken();
                                       unitNo=tokenizer.nextToken();
                                       streetName=tokenizer.nextToken();
                                       bldgName=tokenizer.nextToken();
                                       postalCode=tokenizer.nextToken();
                                       totalIncome=Long.parseLong(tokenizer.nextToken());
                                       totalDonation=Long.parseLong(tokenizer.nextToken());
                                       totalPersonalRelief=Long.parseLong(tokenizer.nextToken());
                                       TaxPayerRecord person = new TaxPayerRecord(nric,name,dateOfBirth,gender,blockNo,unitNo,
                                                                                              streetName,bldgName,postalCode,totalIncome,
                                                                                              totalDonation,totalPersonalRelief);
                                       list.add(person);
                                       line=inFile1.readLine();
                                       }//end while
                              inFile1.close();
                             }// end try
                        catch (Exception e)
                              e.printStackTrace();
                        }//end catch
                        do{
                                  switch(choice)
                                       case 0:
                                       System.exit(0);
                                       break;
                                       case 1:
                                       // run list
                                       printList(list);
                                       break;
                                       case 2:
                                       printSummary(list);
                                       break;
                                       case 3:
                                       search(list,input);
                                       break;
                                  }//end switch
                             System.out.print(menu);
                             choice = input.nextInt();
                             System.out.println("");
                             }// end do
                             while(choice !=0);
                             Collections.sort(list);
         }//end TaxPayerProgramme()
         private void total(ArrayList<TaxPayerRecord> list)
              // Declaration
              double total=0;
              // calculate total
                   for (int i=0; i<list.size(); i++)
                   total=+ tax(i,list);
              //print msg
              System.out.println("Total revenue collectable for year 2006 (S$): "+total+"\n");
         private double tax(int i,ArrayList<TaxPayerRecord> list)
              // Declaration
              double income;
              double tax;
              // calculate income
              income =list.get(i).getTotalIncome()-list.get(i).getTotalDonation()
                        -list.get(i).getTotalPersonalRelief();
              // calculate tax
                   if (income>320000)
                        tax=(((income-320000)*0.21)+44850);
                   else if (income>160000)
                        tax=(((income-160000)*0.18)+16050);
                   else if (income>80000)
                        tax=(((income-80000)*0.145)+4450);
                   else if (income>40000)
                        tax=(((income-40000)*0.0875)+950);
                   else if (income>30000)
                        tax=(((income-30000)*0.0577)+375);
                   else
                        tax=((income-20000)*0.0577);
              return tax;
         private void totalAge(ArrayList<TaxPayerRecord> list)
                   // Declaration
                   String msg;
                   int i,age;
                   double grp1=0;
                   double grp2=0;
                   double grp3=0;
                   double grp4=0;
                   // calculate revenue by age
                        for (i=0; i<list.size(); i++)
                        age= 2006- Integer.parseInt(list.get(i).getDateOfBirth().substring(6,list.get(i).getDateOfBirth().length()));
                        if (age>55)
                             grp4 =+ tax(i,list);
                        else if (age>35)
                             grp3 =+ tax(i,list);
                        else if (age>17)
                             grp2 =+ tax(i,list);
                        else
                             grp1 =+ tax(i,list);
                   //print msg
                   msg="Total revenue by age range (S$) \n"+
                        "\t"+"(1 to 17)"+"\t"+ grp1 +"\n"     +
                        "\t"+"(18 to 35)"+"\t"+ grp2 +"\n"     +
                        "\t"+"(36 to 55)"+"\t"+ grp3 +"\n"     +
                        "\t"+"(above 55)"+"\t"+ grp4 +"\n";
                   System.out.println(msg);
        private void totalDistrict(ArrayList<TaxPayerRecord> list)
                   int count=1;
                   double temp=0;
                   double [][] array = new double [list.size()][2];
                        for (int i=0; i<list.size(); i++)
                        array[0]=Double.parseDouble(list.get(i).getPostalCode().substring(0,2));
                        array[i][1]=tax(i,list);
                   System.out.println("Total revenue by district (S$) ");
                        do{
                                  for (int a=0; a<list.size(); a++)
                                       if (count == array[a][0] )
                                       temp=array[a][1];
                                  }//end for loop
                             System.out.print("\t"+"(district "+count+")"+"\t"+ temp +"\n");
                             temp=0;
                             count++;
                        }while(count!= 80);// end of do_while loop
              System.out.print("\n");
         private void printList(ArrayList<TaxPayerRecord> list)
              System.out.println("List of Tax Payers fpr Year 2006");
                   for (int i=0; i<list.size(); i++)
                   System.out.println((i+1)+") "+list.get(i)+"|"+tax(i,list)+"\n");
         private void printSummary(ArrayList<TaxPayerRecord> list)
                   total(list);
                   totalAge(list);
                   totalDistrict(list);
         private void search(ArrayList<TaxPayerRecord> list,Scanner input)
                   int value;
                   System.out.print("Enter NRIC Number: ");
                   String nric = input.next();
                   Collections.sort(list);
                   value = Collections.binarySearch(list,nric);
         public static void main(String [] args)
                   new TaxPayerProgramme();
    Can someone help me with this?
    I can't find the error.
    The error msg display:
    C:\Documents and Settings\Xiong\Desktop\TaxPayerProgramme.java:285: cannot find symbol
    symbol : method binarySearch(java.util.ArrayList<TaxPayerRecord>,java.lang.String)
    location: class java.util.Collections
                   value = Collections.binarySearch(list,nric);
                   ^
    1 error
    Tool completed with exit code 1

    Well, this is the error, Java6 gives me on your code:The method binarySearch(List< ? extends Comparable<? super T> >, T) in the type Collections
    is not applicable for the arguments (ArrayList<TaxPayerRecord>, String)     The method expects the first parameter, to be a List whose children are Comparable to the second parameter. Your second parameter is String, so the List should be on String not on TaxPayerRecord, or, your second parameter should be a TaxPayerRecord and not a String.
    �dit: Another thought. From the error code you posted, I would assume, that you might have the wrong JDK libraries in your path.

  • F4 help for Elementary Search Help in collective Search help

    Hi Gurus,
    I have created an elementary search help 'ZXXX' with fields Partner , KDGRP and KTEXT .For this searh help,  I have created a  database view for the selection method with tables BUT000 , KNVV and T151.Finally, added this elemenatry search help'ZXXX' to collective searh help BUPA.
    When I press f4 on BP , I could very well see the newly created seach help 'ZXXX' in transaction BP.However, the F4 on field KDGRP is missing. I thought the SAP internally determines F4 for  KDGRP based on the check table T151 in domain KDGRP but it is not happening. I did try to infulence the values in shlp-interface and shlp-fielddescr using search help exit but it does not work.
    Could you help me how do I acheive the F4 help on field KDGRP which is used in an elementary search help and further more in collective search help BUPA on transaction BP.
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    cheers,
    Amber
    Edited by: Alvaro Tejada Galindo on Jan 4, 2010 3:29 PM

    Hi
    There might be some reasons for not getting the F4 value. One reason could be the complete AUTHORISATION for shopadmin given to the user.
    Please check the SHOPADMIN authorisations of the user.
    Hope this will be helpful
    Regards

  • Add Elementry search help to collective SH for vendor

    Hi friends.
    I am making a search help for blocked vendors..
    -     Name LFA1 - NAME1 
    -     Vendor number LFA1 – LIFNR
    -     Account group LFA1 - KTOKK
    -     Company code LFB1 - BUKRS
    -     Purchasing organization LFM1 - EKORG
    -     Blocking indicators
    o     Central posting block: LFA1 – SPERR
    o     Posting block for company code:  LFB1 - SPERR
    o     Centrally imposed purchasing block LFA1 - SPERM
    o     Purchasing block at purchasing organization level: LFM1 - SPERM
    o     Block Function: LFA1 - SPERQ
    i have made a Database view for LFA1 LFB1 and LFM1
    But when i run the SH , output list contains values against input of vendor (LIFNR) only..not for others fields..
    what should i do..
    regards
    Message was edited by:
            Madan Gopal Sharma

    Hi
    first write a report to fetch the Only blocked Vendors,
    and create a Z table with the required fields for that Blocked vendors and update that Z table with the data fetched in the program.
    The using that Table create a elementary search help for the blocked vendors.
    see the help.
    1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).
    2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.
    3)An elementary search help defines the standard flow of an input help.
    4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.
    5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.
    6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
    pls go through this for search help creation
    http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
    Search Help Exits:
    Re: dynamic values for search help
    Re: Dynamic search  help
    Reward points if useful
    Regards
    Anji

  • Need some help on collections

    I have a table which has a column having a query to retrieve a list of institutions, another record has a query to list the states.
    i want to store these list in a collection how can i do this
    my table can have one more record which has a different list so i don't want to hard code the collection i wanted it to be genereic. so depending on the count of list_query , i can define the number of collection and store each lists of each group (e.g state, institutions ) in each collection. can any one help me on how to solve this?
    thanks

    i am attempting to attach the code. i previous code i attached was not the one i wanted to attach. here is the code and you will notice that i have some wrong declarations.
    package com.dleg.cola.helper;
    import java.sql.*;
    import java.util.*;
    import javax.sql.*;
    import javax.servlet.ServletContext;
    import org.apache.struts.util.LabelValueBean;
    import com.dleg.cola.db.*;
    public class checkListQuery {
         // private final String EDUCATION_PROV_QUERY = "SELECT ENTS.FULL_NAME FROM COLAMGR.COLA_ENTITIES ENTS WHERE ENTS.EDUC_PROV_NBR IS NOT NULL ORDER BY 1";
          private final String COUNT_INPUT_LIST_QUERY="SELECT COUNT(1) FROM COLAMGR.COLA_TEXT_BY_JSP WHERE INPUT_LIST_QUERY != null ";
            private final String INPUT_LIST_QUERY1="SELECT INPUT_LIST_QUERY FROM COLAMGR.COLA_TEXT_BY_JSP WHERE INPUT_LIST_QUERY != null order by sequence ";
          private DataSource ds = null;
          private Connection conn = null;
          private PreparedStatement pstmt,pstmt1,pstmt2 = null;
          private ResultSet rs,rs1,rs2 = null;
          private int count_query = 0,count1 =0;
          ServletContext context = null;
          public checkListQuery(ServletContext context) 
            this.context = context;       
          public Collection educProv() 
             // Collection[] educProv = new ArrayList(20) ;
            int i =0;
                  try
              conn = getDSconn();
              pstmt = conn.prepareStatement(COUNT_INPUT_LIST_QUERY);
              rs = pstmt.executeQuery();
                  if(!rs.next())
                    rs.close();
                    pstmt.close();
                    conn.close();
                    conn = null;
                    ds = null;
                    //strTarget = "failure";
                   else
                     if(Integer.parseInt(rs.getString(1).trim())== 0) 
                      rs.close();
                       pstmt.close();
                       conn.close();
                     else {
                       count_query = Integer.parseInt(rs.getString(1).trim());
                         for (i=1;i<=count_query;i++)
                                educProv[i] = new ArrayList();
                         pstmt1 = conn.prepareStatement(INPUT_LIST_QUERY1);
                         rs1 = pstmt1.executeQuery();
                          while(rs1.next())
                              count1=count1+1;
                              pstmt2 = conn.prepareStatement(rs1.getString(1));
                              rs2 = pstmt2.executeQuery(); 
                              while(rs2.next()) {
                                  educProv[count1].add(new LabelValueBean(rs2.getString(1),rs2.getString(1)));  
                              rs2.close();
                              pstmt2.close();
                              conn.close();  
                         rs1.close();
                         pstmt1.close();
                         conn.close();
            catch ( SQLException e )
              System.err.println("SQL Exception occured while accessing the table" );
              e.printStackTrace();
              return null;           
            catch ( Exception e )
              e.printStackTrace();
              return null;           
            finally
              try
                rs.close();
                pstmt.close();
                conn.close();
              catch(Exception ex){}
            return educProv[];       
          //Return a datasource connection
          private Connection getDSconn() throws java.lang.Exception
            ConnectDB objConnectDB = new ConnectDB(context.getInitParameter("DBURL"));
            return objConnectDB.getConn();
        }

  • Change Default choice of Elimentary search help in Collective Search Help

    Hi All,
    This might be very odd one but i am faced with such a requirement.
    In collective search help for eg in MM02 for material we click on a F4 for material master and it gives the list of various search help.   By default the last selected elimentary search help will be selected.
    My requirement is that by default only the first search help has to be displayed. 
    Any idea on how this can be achieved.
    Regards,
    G

    Hi NabheetMadan,
    I am aware of the concept of search help exit.  What i am looking for is how to influence the choice of default search help in the exit.
    Regards,
    Shankar

  • Please help with Collection

    Hello, I have an assignment on collection and have tried to implement it but facing errors that i am unable to understand.
    Below is what i am supposed to do and below that is my code which is ofcourse not working as always (just kidding)
    Question:
    Design and Implement a class called SimpleEmailManager, in package swd.util, which manages a collection of SimpleEmail instances. The manager�s behaviour is shown in the following sample codes:                         [35%]
    SimpleEmailManager manager = new SimpleEmailManager();
    // Construct a SimpleManager that manages an empty collection of SimpleEmails
    SimpleEmail m1 = new SimpleEmail (�);
    Mail m2 = new Mail (�);
    m1.setCreateDate(new java.util.Date(�Jan 1, 2002�));
    m2.setCreateDate(new java.util.Date(�June 16, 1997�));
    manager.add(m1); // Add Mail m1 to the collection
    manager.add(m2); // Add Mail m2 to the collection
    SimpleEmail m = manager.getNewestMail();
    // Return one of the SimpleEmail in the collection with the most recent creation
    // date. Return null if the collection is empty
    java.util.Iterator iterator1 = manager.getMailMadeBefore("Jan 1, 1998");
    // Return an Iterator of the Simple Mails in the collection created Before
    // the specific date
    java.util.Iterator iterator2 = manager.iterator()
    // Return an Iterator of the collection managed by the manager
    manager.remove(m1)
    // Remove mail m1 from the collection
    My Solution:
    package swd.util;
    import java.util.*;
    import javax.swing.*;
    import swd.util.SimpleEmail;
    import swd.util.Mail;
    * <p>Title: SimpleEmailMsnsger Class</p>
    * <p>Description: Manages a colection of objects of simple email class</p>
    * <p>Copyright: Copyright (c) 2003</p>
    * <p>Company: </p>
    * <p>author Irfan Noor Bukhari ID=12748237</p>
    * <p>version 1.0</p>
    public class SimpleEmailManager
         SimpleEmailManager manager = new Collection();
         public SimpleEmailManager()
              SimpleEmail m1 = new SimpleEmail ("Wag The Dog", "[email protected]", "[email protected]");
              Mail m2 = new Mail ("[email protected]", "[email protected]", "Is this the subject", "Wag The Dog");
              m1.setCreateDate(new Date("Jan 1, 2002"));
              m2.setCreateDate(new Date("June 16, 1997"));
              manager.add(m1);
              manager.add(m2);
              SimpleEmail m = manager.getNewestMail();
              //JOptionPane.showInputDialog("Enter Date")
    //          Collection c;
    //          c.add(m1);
    //          c.add(m2);
    //m1.setCreateDate(new java.util.Date("Jan 1, 2002"));
    //m2.setCreateDate(new java.util.Date("June 16, 1997"));
    //manager.add(m1); // Add Mail m1 to the collection
    //manager.add(m2); // Add Mail m2 to the collection
    //SimpleEmail m = manager.getNewestMail();
    // Return one of the SimpleEmail in the collection with the most recent creation
    // date. Return null if the collection is empty
    //java.util.Iterator iterator1 = manager.getMailMadeBefore("Jan 1, 1998");
    // Return an Iterator of the Simple Mails in the collection created Before
    // the specific date
    //java.util.Iterator iterator2 = manager.iterator()
    // Return an Iterator of the collection managed by the manager
    //manager.remove(m1)
    //     public Collection add(SimpleEmail o)
    //          Collection c;
    //          c.add(o);
    //          return c;
         public SimpleEmailManager getNewestMail()
              Iterator i = manager.iterator();
              if (manager == null)
                   return null;
              else
                   while ( i.hasNext() )
                        System.out.println(i.next().toString());
              return     i.next();
         public static void main(String[] args)
              new SimpleEmailManager();
    please help me

    How much of java do you know? Since you have started working on Collections I take it that you have covered the basics of class, constructors, variables & their types & such like. From your code it is apparent that you still haven't understood these basic concepts. I'd recommend that you read your notes, read a good book on java, read the tutorials on sun's website (the 1st few trails), get a firm grasp of these basic concepts first and then go back to your Collections assignment. Yes, this is a lot of work; yes it will take time; but nothing of value can be learned without expending time & energy.
    Since I'm feeling rather magnanimous at this time, I'll give you a hint. You have class called SimpleEmailManager; you are declaring a variable called manager of type SimpleEmailManager in the constructor; but you are trying to create it as a Collection type. Decide whether the var manager is SimpleEmailManager or Collection.

  • Need help in Collection Report

    Hi,
    I need to know how to know how to viewe the AR collection report (AGE30001) template and each field representation, can someone assist?
    I am trying to build in a page reset by BP change and do not know how to do it.  Please assist.
    Thank you.
    Regards,
    Joan Lim.

    Hi Kumar ,
    While Creating the Key Figures System automatically get the data based on the Cell ( Drop Down list ) , check how sap getting the data .
    Regards
    Prabhu

  • Help in collecting objects for transport into Q

    Hi All,
    We have our Q environment ready and need to transport the data flows into Q. I know that we have to replicate the datasources in Q before doing any transports. I have a flow like below:
    R/3 -> ODS -> Cube. I have generated an export datasource on the ODS and created a datamrt infopackage to load from ODS to Cube. What is the correct way to collect them in transports. I read(in some of the earlier posts) that we need to transport the export datasource before transporting the Cube.
    Please suggest!!!
    Thanks,
    RPK.

    Hi,
    If you are using Version 7 , no need to worry about it. We can combine both ODS and CUBE with Dataflow before and after in a transport requet.
    But If I remember correctly, I had a datasource unavailability problem with both ODS and CUBE with Dataflow before and after in a transport requet in older versions.
    So, in older versions, Take ODS with DFBefore in a request , trnasport and import it first, Then Replicate teh data sources from teh context menu of self source system. And then take Cube in another request with DFB and DFAfter .Import it later.
    With rgds,
    Anil Kumar Sharma .P

Maybe you are looking for

  • Calendar - Week view now only 5 days - how can you see a 7 day view again?

    I like using the Week view in the Calendar, since upgrading to the latest OS a few days ago I can now only see 5 days in the Week view rather than the full 7 days I previously had.  Can I change the settings so I can see the full week again? Thank yo

  • Spark ComboBox new item does not display in textInput?

    I've been playing with s:ComboBox and generally like them a lot. One detail is driving me nuts though - most likely due to my lack of knowledge in the subject - is that if I try to add a new item to my dataprovider in a changeHandler (registered to t

  • Export error - expdp

    Hello gurus... DB v: 11.2.0.3 expdp file estimation: 70GB Excludes: 500 tables Using parfile Target: Schema refresh I am trying to export schema excluding 500 odd tables with expdp estimation of 70GB dump file size.. created temp table listing all ta

  • Is my Hard drive failing ?

    I have a G3 iMac 500Mhz with 192MB RAM, 20 GB hard drive (which has 10GB free) running OSX 10.3.9. The hard drive is running extremely slow and making a loud whirring noise whilst performing the most basic of functions (opening Finder, applications a

  • Can my computer display 'extended desktop' with a second monitor?

    I believe I have a G4 Quicksilver 867 (2001) (bought it used and figuring out which model G4 is not that easy). I recently got a second monitor, but I only seem to have the option to have a mirrored setup (which works well). Is there anything I can d