Question on the retriving the records from Account

Hi all,
I am now trying to retrieve account records using ListOfAccount API in the web service. I would like to retrieve multiple account data using two different condition array but
the execution result is not what I expected.
Suppose, Now I would like to get two account names like "a*" and "b*" and the expected result is 5 records all told, ("a","aa","aaa","b""bb") but all I can retrieve is four records
("a","aa","aaa","b").
The JAVA code I wrote is this,
ListOfAccount conditions = new ListOfAccount();
Account condition1 = new Account();
Account condition2 = new Account();
condition1.setAccountName("LIKE 'a*'");
condition2.setAccountName("LIKE 'b*'");
conditions.setAccount(new Account[]{condition1, condition2});
executeQuery("queryPageTest1", conditions);
Why can't I retrieve all five records? Is it impossible to do so? Setting multiple conditions are not supported in CRM on Demand service?
Thanks and regards,

Hi Kdinesh_CRMIT.
Thank you very much for your response.
I have modified my Java code then run it, it worked fine! Thank you.
And, I am very holding back but dare to ask, how can I set more than two "OR" conditions?
I have set up the following code then tested but Axis error was observed.
condition1.setAccountName("(LIKE 'a*') OR (LIKE 'b*') OR (LIKE'c*')");
Is it possible to set more than two (2) "OR" conditions in the query?
Thanks and best wishes,

Similar Messages

  • Moving the 80 Million records from Conversion database to System Test database (Just for one transaction table) taking too long.

    Hello Friends,
    The background is I am working as conversion manager and we move the data from oracle to SQL Server using SSMA and then we will apply the conversion logic and then move the data to system test ,UAT and Production.
    Scenario:
    Moving the 80 Million records from Conversion database to System Test database (Just for one transaction table) taking too long. Both the databases are in the same server.
    Questions are…
    What is best option?
    IF we use the SSIS it’s very slow and taking 17 hours (some time it use to stuck and won’t allow us to do any process).
    I am using my own script (Stored procedure) and it’s taking only 1 hour 40 Min. I would like know is there any better process to speed up and why the SSIS is taking too long.
    When we move the data using SSIS do they commit inside after particular count? (or) is the Microsoft is committing all the records together after writing into Transaction Log
    Thanks
    Karthikeyan Jothi

    http://www.dfarber.com/computer-consulting-blog.aspx?filterby=Copy%20hundreds%20of%20millions%20records%20in%20ms%20sql
    Processing
    hundreds of millions records can be done in less than an hour.
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Is there a way of "merging" songs in iTunes. Several times, I have downloaded from the Internet, or recorded from CDs, then found the tracks broken up to appear as separate "Albums". I have a 5-movement symphony, which appears as 5 separate songs?

    Is there a way of "merging" songs in iTunes? Several times, I have downloaded recordings from the Internet, or recorded from CDs, then found the tracks broken up to appear as separate "Albums". I have a 5-movement symphony, which appears as 5 separate songs - Irritating!

    Try posting in a more appropriate forum, as this has noting to do with itunes U - the place where University/college/museums post education material.

  • Displaying the selected multiple records from node using onleadselect event

    Hi all,
    How to display the selected multiple records from node to node using onleadselect event.
    i came to know tht to fulfill this requirement i need to use the method get_selected_elements,
    how to use this method in my event??
    sree

    Hi Sree,
    Try below code..
    DATA : lo_nd_it_lips TYPE REF TO if_wd_context_node,             // This is first node
                 lo_el_it_lips TYPE REF TO if_wd_context_element,
                 ls_it_lips TYPE wd_this->Element_it_lips,
                 lt_it_lips TYPE wd_this->Elements_it_lips.
               DATA: wa_temp TYPE REF TO if_wd_context_element,
                lt_temp TYPE wdr_context_element_set.
    * navigate from <CONTEXT> to <IT_LIPS> via lead selection
          lo_nd_it_lips = wd_context->path_get_node( path = `ZRETURN_DEL_CHANGE.CHANGING_3.IT_LIPS` ).
          CALL METHOD lo_nd_it_lips->get_selected_elements
            EXPORTING
                INCLUDING_LEAD_SELECTION = ABAP_true
            RECEIVING
              set = lt_temp.
          DATA lo_nd_pack_mat TYPE REF TO if_wd_context_node.          //Second Node
          DATA lo_el_pack_mat TYPE REF TO if_wd_context_element.
          DATA ls_pack_mat TYPE wd_this->Element_pack_mat.
          DATA lt_pack_mat TYPE wd_this->Elements_pack_mat.
    * navigate from <CONTEXT> to <PACK_MAT> via lead selection
          lo_nd_pack_mat = wd_context->get_child_node( name = wd_this->wdctx_pack_mat ).
          lo_nd_pack_mat->get_static_attributes_table( importing table = lt_pack_mat ).
          LOOP AT lt_temp INTO wa_temp.
            CALL METHOD wa_temp->get_static_attributes
              IMPORTING
                static_attributes = ls_it_lips.
                  ls_pack_mat-vbeln = ls_it_lips-vbeln.
                  ls_pack_mat-material = ls_it_lips-matnr.
                  ls_pack_mat-vgbel = ls_it_lips-vgbel.
                    append ls_it_lips to lt_unpack.
                  CLEAR ls_pack_mat.
           ENDLOOP.
    Cheers,
    Kris.

  • To override the profit centre derived from account assignments

    Hi SAP GURUS
    I had assigned a profit centre in 3KEH in ECC6.0 (New G/L is not activated, hence using 3KEH) for a particular G/L account.
    But when i do a MIRO, the profit centre is derived from the PM order.
    I want the settings in 3KEH to override the Profit centre derived from PM order.
    Kindly guide me to overcome the issue.
    Regards
    R.Karthigayan

    Hi,
    As you need to only change the profit centre , when you have a PM order in MIRO. Then i would suggest you use a Validation & Subsitution Rules.
    Validation should check whether a MIRO has PM order or not, If yes then it should do the PC Change.
    Regards,
    Siddique

  • Getting the un updated records from receiver JDBC

    Hi Friends,
         I am doing the Proxy - jdbc integration. Consider my proxy sends 10 records to JDBC to update. Consider bcoz of some reason the jdbc updates only 8 records i need to get the 2 records back to Proxy which is not updated in the DB.
    Should i need to use the Proxy and JDBC channel as syn or seperate integration should be built. I have seen some documents, that we can get the count of the updated records from jdbc receiver, but i dont need the count i need the record which is not been updated.
    How can i do it. please give ur inputs.
    thanks
    Prem

    Unless  you are using SP on JDBC side and explicitly build a record set to send back the data it might not be possible. I am not sure if a custom record set could be returned in JDBC sync receive adapter. You can realize this by updating some other table on JDBC side and then polling that table to update ecc back.
    VJ

  • Trying to get the top N records from a query.

    Hello,
    Im trying to get the top N records of a random query. I've been looking for a decent solution for a while now and the 2 solutions I've come across are:
    select *
    from (select * from qrs_klantgroepen order by code) a
    where rownum < 10
    ORA-00907: missing right parenthesis
    The query works when I remove the order clause from the subquery, but it's mandatory to get the results I need.
    The next solution:
    select *
    from (select code, row_number() over (order by code) from qrs_klantgroepen) a
    where rownum < 10
    ORA-00923: FROM keyword not found where expected
    Apparently the construct used here isn't supported by my oracle version.
    I'm using oracle Oracle8 Enterprise Edition Release 8.0.5.2.1.
    Is there another way I can achieve the results I want?
    Looking forward to your replies.
    Frederik

    it must be nostalgy, but I would try something like
    SQL> select * from emp e where 5>(select count(*) from emp where ename<e.ename) order by ename;
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
          7876 ADAMS      CLERK           7788 1987-05-23_00:00:00       1100                    20
          7499 ALLEN      SALESMAN        7698 1981-02-20_00:00:00       1600        300         30
          7698 BLAKE      MANAGER         7839 1981-05-01_00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 1981-06-09_00:00:00       2450                    10
          7902 FORD       ANALYST         7566 1981-12-03_00:00:00       3000                    20
    SQL> select * from (select * from emp order by ename) where rownum<6;
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
          7876 ADAMS      CLERK           7788 1987-05-23_00:00:00       1100                    20
          7499 ALLEN      SALESMAN        7698 1981-02-20_00:00:00       1600        300         30
          7698 BLAKE      MANAGER         7839 1981-05-01_00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 1981-06-09_00:00:00       2450                    10
          7902 FORD       ANALYST         7566 1981-12-03_00:00:00       3000                    20Message was edited by:
    Laurent Schneider

  • To get  the number of record from cmp

    how can i get the specific number of record (25 records) from cmp using weblogic8?
    anybody know pls tell.

    http://java.sun.com/j2se/1.4.1/docs/api/java/io/File.html

  • How to remove the duplicate HR record from per_all_people_f table

    Because of some mistake user has created two records for one employee one with start date 4th may 2010 and end date with 1st may 2011 and another with start date with 2nd may 2011 and end date is 31st of dec 2012.
    When I go to enter and maintain employee i found the record which starts with 4th may 2010 and end date with 1st may 2011.
    Please let me know how to remove the end date from this record.
    when I ran the query
    select * from PER_ALL_PEOPLE_F PAPF where upper(first_name)='UDAYA';
    i have first four column for this type.I want to remove the first row from here
    41246     02-MAY-11     31-DEC-12     81     1125
    41246     04-MAY-10     01-MAY-11     81     1125
    Please help.
    Regards,
    Prakash

    Okay, so you wish to just have one person record from the 4th May 2010 through to the 31st December 4712, right?
    In that case, do this:
    1) Query the person in the Enter & Maintain person form
    2) Hit Delete on the toolbar
    3) Select "Delete Next Change" from the date-track mode and save
    4) Re-query
    Now the date-track update from 2nd May is gone.

  • What is the best way to get the end of record from internal table?

    Hi,
    what is the best way to get the latest year and month ?
    the end of record(KD00011001H 1110 2007  11)
    Not KE00012002H, KA00012003H
    any function for MBEWH table ?
    MATNR                 BWKEY      LFGJA LFMON
    ========================================
    KE00012002H        1210             2005  12
    KE00012002H        1210             2006  12
    KA00012003H        1000             2006  12
    KD00011001H        1110             2005  12
    KD00011001H        1110             2006  12
    KD00011001H        1110             2007  05
    KD00011001H        1110             2007  08
    KD00011001H        1110             2007  09
    KD00011001H        1110             2007  10
    KD00011001H        1110             2007  11
    thank you
    dennis
    Edited by: ogawa Dennis on Jan 2, 2008 1:28 AM
    Edited by: ogawa Dennis on Jan 2, 2008 1:33 AM

    Hi dennis,
    you can try this:
    Sort <your internal_table MBEWH> BY lfgja DESCENDING lfmon DESCENDING.
    Thanks
    William Wilstroth

  • How to get the last inserted record from a table ?

    :-) Hiee E'body
    I work on Oracle 8i and need to get the last
    record inserted in a table.
    I have tried using rownum and rowid pseudo-columns
    but that doesn't work.
    Can you please help me out ?
    :-) Have a nice time
    Vivek Kapoor.
    IT, Atul Ltd.,
    India.

    I'm not sure about 8i features.
    I assume here that you don't have 'Date-Time' stamp columns on the table which is the easiest way to determine the last inserted row in the table.
    If not try the following :-
    select address, piece, SQL_TEXT
    from V$SQLTEXT
    where upper(sql_text) like '%INSERT INTO TABLE_NAME%'
    Substiute the TABLE_NAME with the name of the actual table.
    Have fun.
    Regards,
    Shailender
    :-) Hiee E'body
    I work on Oracle 8i and need to get the last
    record inserted in a table.
    I have tried using rownum and rowid pseudo-columns
    but that doesn't work.
    Can you please help me out ?
    :-) Have a nice time
    Vivek Kapoor.
    IT, Atul Ltd.,
    India.

  • How to remove the ALV Statistics option from Accounts user's userids

    Dear Sir/Madam,
    In our Accounts department each time one extra page is comming out. When the ALV Statistics option is make Unchecked, then it funtioninng normally that is, single page is comming out.
    Is there any way to make this option permanently Unchecked ? If possible please advice and also whether there will be any unwanted implications of it ?
    Please advice.
    Thanks and Regards,
    Pranab

    Option 1 - Use SAP Report RSPRIPARADMIN you can set this for all users
    Option 2  - user parameter SP01_FROM   0000000002 - This means print job will start from page 2
    Option 3 - List -> Print -> click to properties button in print window -> expend cover sheets -> double click on ALV statistics , now uncheck the ALV statistics check box . now click on setting button and click on copy setting button
    Edited by: Savo on Jul 1, 2011 4:06 PM

  • Updating the HR master records from Buffer.

    Hi All,
    We have requirement to update the 0008 infotype sub type 1 when 0008 infotype sub type 0 record is updated using the dynamic action. We have created the step in the dynamic action with F step and in the sub routine using the HR_INFOTYPE_OPERATION function module we are updating the 0008 info type for sub type 1.
    But when we click on the save button the FM is getting called and data is stored in the buffer only. When i refresh the transaction PA30 the data is get refreshed and there is no data available for 0008 info type and sub type 1.
    Can you please give me some work around to update the 0008 infotype sub type 1 when 0008 info type sub type 0 is updated or let me know how to update the buffer to the database table.
    Thanks,
    Rajaraman K.

    Thats because of Logical Unit of Work violation, you cannot use BDC in Dynamin Actions or EVEN User Exit. The fm HR_INFOTYPE_OPERATION uses BDC inside it's code. So to overcome this, you have to write a small program use your update logic in that and call that program as SUBMIT and RETURN from inside the Dynamic Actions (subroutine).
    You can search on SUBMIT and RETURN to get the ball rolling.

  • Retreving the selected substring records from existing records.

    Hi all,
    SQL> select * from temp;
    C1 C2
    1 abcdef
    2 efbcda
    3 axyz
    4 abedcd
    I would like to retrieve only the records which have substring 'CD' from the available records..
    Any help.
    Regards,
    ~ sri

    Will the "cd" be fixed - i.e. is it always 'cd' you're looking for?
    If so, a function-based index on INSTR(c2,'cd') might help, then your query could be
    where INSTR(c2,'cd') > 0
    and use the index.

  • How to recover the missing delta records from R/3

    Hi Experts,
    I am Beginner in BI.
    User has created a ticket stating that, he found that there are only three invoice numbers pulled from R/3 (2lis_13_vaitm) to cube for date on 24.05.2010 where has in r/3 there are 372 invoice numbers are available.  
    i was suggested to recover the data for 24th may'10.
    Please tell me detailed steps to recover the data for one day. Invoice data source will feed the data to DSO and then CUBE.
    Thanks in Advance.
    Latha.

    Hi,
      Please search in forum for how to do a repair full load. You have to fill the setup tables for 24th of may and then do a repair full load.Also check is there any restriction which prevented the invoices from loading.
    Regards,
    Raghavendra.
    Edited by: Raghavendra Padmanaban on Sep 23, 2010 1:42 PM
    Edited by: Raghavendra Padmanaban on Sep 23, 2010 1:43 PM

Maybe you are looking for

  • Message Monitor on Unity Connection

    Does anyone know if this feature is coming to Unity connection version 9.0 or anytime soon.  It is available on Unity but not Unity Connection and I have several clients interested in this feature.

  • Relative links to pdf's

    Hi guys I've created a project www.officey.co.uk which works great online but i need to put this on a CD for users with no internet access. I've opened up the fxp in flash Builder and added the pdf folder to "assets" I then changed all links to the p

  • [php+mysql] How to select a column using URL parameter?

    Hi all, I need to select a specific column from a mysql db. I have the column name in a URL parameter. How can I set a query so that it sounds like this: SELECT $_GET['id'] FROM mytable ORDER BY myorder ASC? I tried everything with dreamweaver but I

  • Using Oracle Analytical Workspace With Excel

    Hi i have created an analytical workspace on Oracle Analytical Workspace, Now suppose i want to access this workspace from Excel , is this possible ?? If so How

  • Startup the Mobile Engine via Eclipse

    Dear all, In our company, we are using the MAM for a couple of years. I am doing all the developments via Eclipse. For debugging the MAM or starting up the MAM from my development environment, I've made a small startup class which starts up the Mobil