Use of OR operator in the record criteria

version# crystal report XIR2
Type: cross tab
I wrote the below criteria in REPORT-> SELECTION FORMULAS->RECORD
===============================================================
//Status is CLOSED or CANCELLED                                                                        
{table.status}= ["Closed","Cancelled"]
and
//Manager level
{table.manager_level} ="Phani Thota"
and
{table.cancelleddate} in lastfullmonth//Cancelled date is Lastfullmonth
or
{table.closeddate} in lastfullmonth //closed date is lastfullmonth
=================================================================
When i run the query the cross tab generates only the Cancelled date and ignores the Closed date date
1. The query that I wrote after the OR operator didn't read by the crystal reports.
2. If I remove the red braces then the values are becoming weird
in simple, the crystal takes only the query before the OR operator

hi Phani Thota, can you try the following for the last section of your filter to see if that addresses the issue?
(isnull({table.closeddate}) and {table.cancelleddate} in lastfullmonth)
or
(isnull({table.cancelleddate}) and {table.closeddate} in lastfullmonth)
or
{table.cancelleddate} in lastfullmonth
or
{table.closeddate} in lastfullmonth

Similar Messages

  • Fetching records using a cursor in to the record datatype

    Hii,
    I am trying to declare a cursor and load the fetched rows in to record datatype. but i am getting error about the arguments that have to passed in to output command. plz help
    1 DECLARE
    2 cursor emp_cursor IS
    3 select ename, empno from emp
    4 where deptno =30;
    5 emp_rec1 emp_cursor%rowtype;
    6 BEGIN
    7 open emp_cursor;
    8 loop
    9 fetch emp_cursor into emp_rec1;
    10 exit when emp_cursor %notfound;
    11 dbms_output.put_line(emp_rec1);
    12 end loop;
    13* end;
    SQL> /
    dbms_output.put_line(emp_rec1);
    ERROR at line 11:
    ORA-06550: line 11, column 1:
    PLS-00306: wrong number or types of arguments in call to 'PUT_LINE'
    ORA-06550: line 11, column 1:
    PL/SQL: Statement ignored
    thanks
    sharath

    thanks guys.the issue is resolved.
    1 DECLARE
    2 cursor emp_cursor IS
    3 select ename, empno from emp
    4 where deptno =30;
    5 emp_rec1 emp_cursor%rowtype;
    6 BEGIN
    7 open emp_cursor;
    8 loop
    9 fetch emp_cursor into emp_rec1;
    10 exit when emp_cursor %notfound;
    11 dbms_output.put_line(emp_rec1.ename);
    12 dbms_output.put_line(emp_rec1.empno);
    13 end loop;
    14* end;
    SQL> /
    ALLEN
    7499
    WARD
    7521
    MARTIN
    7654
    BLAKE
    7698
    TURNER
    7844
    JAMES
    7900

  • Advanced level of using OR & NULL operator

    crystal reports XIR2
    to generate cross tab
    Folks,
    thanks for the answer
    Use of OR operator in the record criteria
    to the above above query link, i need to add one more query with OR operator.
    problem# i was unable to generate the combination of
    QUERY1 or QUERY2
    ======================================
    //Status is CLOSED or CANCELLED                        //Query1                                               
    {table.status}= ["Closed","Cancelled"]
    and
    //Manager level
    {table.manager_level} ="Phani Thota"
    OR
    {table.manager_level} ="Phani Thota"                        //Query2
    and
    (isnull({table.closeddate}) and {table.cancelleddate} in lastfullmonth)
    or
    (isnull({table.cancelleddate}) and {table.closeddate} in lastfullmonth)
    or
    {table.cancelleddate} in lastfullmonth
    or
    {table.closeddate} in lastfullmonth
    ==============================================
    1. I was unable to apply ISNULL() in the QUERY1
    2.Query2 is perfect, no need to change

    I wrote the query like this but no change. still the report is generating inaccurate result. Any Suggestions
    =======================================
    //Status is CLOSED or CANCELLED                        //Query1                                              
    (if not isnull({table.status}) then {table.status}= ["Closed","Cancelled"])
    and
    //Manager level
    (if not isnull({table.manager_level}) then {table.manager_level} ="Phani Thota")
    OR
    {table.manager_level} ="Phani Thota"                        //Query2
    and
    (isnull({table.closeddate}) and {table.cancelleddate} in lastfullmonth)
    or
    (isnull({table.cancelleddate}) and {table.closeddate} in lastfullmonth)
    or
    {table.cancelleddate} in lastfullmonth
    or
    {table.closeddate} in lastfullmonth
    ==================================================

  • After installing latest update Realplayer recording no longer works, I think Mozila is using a library file with the same name

    After installing the latest update to Firefox onto Vista operating system the record part of real player no longer works, I think Mozila and Real are using a library file with the same name and the Mozila update is overwriting a Realplayer library file.

    I was giong to say, "Help me, Adobe Joe Kenobi", but it looks like you're growing a beard waiting for an answer, too.
    The same thing happened to me today. I trusted the "update" message since it was from Adobe, and apprently did so at my own peril. Now I get the "failed to load Core dll" message with a secondary reference to a memory address.
    Just an observation, but what good are these forums when there are no answers? I see this problem as "Caused by Adobe Update", and would expect them to troublshoot and offer up a remedy. Since you've been waiting over two months with no response, I suppose it's time to trek off wasting more of my precious time to fix their problem. If I find the solution, I'll post it back to you.
    May the Force be with you.
    Mark

  • Using a shuttle to update the status of a record

    I'm using JHeadstart 10.1.3. What I need to do is allow the users to select a record(s) that need to have it's status updated to show it's been rejected. I would like to acomplish this by using a shuttle, listing all the records that haven't been rejected and then allowing the user to shuttle over the records that require to have the status set to rejected. So essentialy, the two shuttle VO's would be for the same entity. On moving a record over from one shuttle to another all I want to happen is for the status of the record to change. This doesn't really seem to fit the mould of either a parent-shuttle or an intersection-shuttle :(
    Do I have to abandon the idea of using a shuttle and revert to something else ? If not the shuttle, what else would best serve my purpose here ? Can JHeadstart generate a tableSelectMany component ?
    Cheers,
    Brent

    Hi,
    What's the link between Printing the Smartform and Updating the HU status?
    Generally Smartform is used to print the Output of Packing Slip,?
    You mean after packing is over you have to Modify the handling Unit status?
    then you have to find the status of packing and based on that field you have to modify the JU status.
    Regards,
    Anji

  • How to get the count of the records

    Hi all,
    how can we get the record count after the read statement.Means if we write a read statement based on a condition,then how can we know that how many records get effected for this read statement

    You can use loop statement to read the records and write in some internal table and after the end of the loop, you can use describe command to find the number of records.
    For eg. DESCRIBE TABLE tablename LINES lines.
    Here the "Lines" field will give the total number of records present in the table "tablename"

  • Do not load the record?

    Hello Experts,
    Wondering if there is a way to specify (in the transfer rules / routines)not to load the records if it satisfies Infob1='abc' and Infob2='bcd'?
    Thansk
    Sweatha

    Hi Sweatha,
    do you need to get the record out during the extraction or during the upload in the data target?
    In the upload rules you could use a Startroutine to filter the records. "abc" would be a value of the infoObject.
    Data: n type i.
    data: l_tabix like sy-tabix.
    Loop AT DATA_PACKAGE.
    l_tabix = sy-tabix.
    If COMM_STRUCTURE-InfOb1="abc and COMM_STRUCTURE-InfOb2="BCD".
      delete DATA_PACKAGE index l_tabix.
      continue.
      endif.
    Endloop.
    Hope that helped,
    regards,Michael

  • BDC for PP01 ( Delimit the record )

    Hi Genius,
        Am recording The Transaction PP01. in During Recording popup screen does not appear.
    But in program execution POPUP screen appear.. how to skip this popup or how to record this screen.

    Hi,
       I am also working on a similar requirement for prices conditions, i have tried BAPI_PRICES_CONDITIONS,
    i am unable to find the record in KONH table, i even used RV_CONDITION_MAINTENANCE though it creates the record but
    uses gui screen as VK11 we don't want that. Any suggestions will be help ful thankyou.

  • Am running Firefox 3.6.10. Am having problems with Firefox crashing after upgrading to Kaspersky Internet Security 2011. Anyone else having same problem. Oh, BTW am still using Windows XP operating system.

    Am running Firefox 3.6.10. Am having problems with Firefox crashing after upgrading to Kaspersky Internet Security 2011. Anyone else having same problem. Oh, BTW am still using Windows XP operating system.

    The latest flash player release is 11,0,1,152.
    Can you upgrade to this version and see whether the crash stil exists?
    Go to get.adobe.com/flashplayer to download and install flash player.
    In case you need direct link to installer/uninstaller, please go to http://forums.adobe.com/message/3952360#3952360 to find them.
    saranlee wrote:
    My computer crashes repeatedly and I get the message pages are not responding do you want to stop, and/or shockwave is not responding do you want to stop. I have Windows XP Service Pack 3, I am having the same issues whether I use Internet Explorer, Google Chrome, or Mozilla Firefox. My HP Pavilion Desktop has 504 MB of Ram and I am using high speed internet connection. Because it was crashing so much, I used the uninstall program for Flash player to uninstall Flash, I checked my registry and removed anything I saw that was Flash. I then uninstalled Google Chrome and Mozilla Firefox, then I reinstalled the most recent versions from their websites. I did the same for FlashPlayer and Shockwave Flash. I went to the Adobe website and had them check to see if it was working and it shows I have FlashPlayer 10.3.181.36. The page that shows  which version of flash player goes with Windows XP states that I should have 10.3.181.34 (This is what I thought I had before I updated, I was having the same problems). When I went into my computer to see what version I have, it shows 11.5.9.620 Activex and both Flash Player and Flash Player Object is listed as 10.3.181.34. My firewall for Windows is set to medium. I also am running Norton Internet Security. It takes anywhere from 3-6minutes for some of my games to load, and I have to refresh at least 3-4 times in order to play. When I do start to play it freezes frequently and I use escape to free it up. This has been going on for a month. I have no idea what to do. I am not very computer savy and I have been learning as I go.

  • Variable selection criteria in the record selection

    Variable selection criteria in the record selection with Crystal Report with SQL 2005 Server tables.
    In the record selection I would like to use the value of the field u201CsSQL1u201D as part of the selection criteria instead the field name {tblReportAccessAutority.sSQL1}
    The value of the field {tblReportAccessAutority.sSQL1} is {tblSalesReporting.sJEDivisionCode} = 'I'
    I tried with formulas, SQL expressions, but nothing works.
    Record selection of the report:
    {tblReportAccessAutority.sUserID} = CurrentCEUserName
    and {tblSalesReporting.sLegalEntity} = {?Legal Entity}
    and {tblSalesReporting.sJEPeriod} = {?PARAM_PERIOD}
    and {tblSalesReporting.sIG3rd} =  {?PARAM_IG3RD}
    and {tblReportAccessAutority.sSQL1}                           <---this is the problem line
    The field {tblReportAccessAutority.sSQL1} is not converted in the value:
    {tblSalesReporting.sJEDivisionCode} = 'I'     
    The tables tblSalesReporting and tblReportAccessAutority are joined in this report.
    Many thanks for your help.
    Roger

    How is the syntax for the selection criteria in the record selection?
    {tblReportAccessAutority.sUserID} = 'ch1scro2'
    and {tblSalesReporting.sLegalEntity} = {?Legal Entity}
    and {tblSalesReporting.sJEPeriod} = {?PARAM_PERIOD}
    and {tblSalesReporting.sIG3rd} = {?PARAM_IG3RD}
    and SELECT {@sSQL_Condition} ???????? or
    and  {@sSQL_Condition} ??????? or how?
    The expression fir the formula {@sSQL_Condition} is:
    TOTEXT({tblReportAccessAutority.sSQL1})
    The field definition for {tblReportAccessAutority.sSQL1} is nvarchar(50).
    Thanks Roger

  • To search  the records according to certain criteria

    Hello,
    I am a user of jdeveloper using swing/jclient for bc4j.
    How to search the records according to certain specified criteria i.e if user enter c in the textbox then all the names starting with the letter c matches the criteria.
    it is somewhat same as (like c%) in oracle .
    if there is anyone who can help me then please do send reply back to me.
    thank you

    you need to use the setWhereClause method on the BC4J view to set it to your search criteria.
    Do a search for this methos on OTN or google and you'll find several samples.
    Like this one:
    http://otn.oracle.com/products/jdev/htdocs/handson/WebServices/HOS903WS.html

  • Is there any Data Mapping document Between S&OP ( model that uses supply planning operator ) and SAP ECC that I will help the client in Data Mapping activity.

    Hello All,
    Is there any Data Mapping document Between S&OP ( model that uses supply planning operator ) and SAP ECC that I will help in Data Mapping activity.
    Thanks,
    Mownesh

    There are standard templates in HCI data sources.
    e.g. 1) Customer Master data template is SOP_MD_CustomerMaster for extracting master data from SAP ECC and load it to S&OP
    KNVP is the table for customer in ECC from that you can select the fields as required
    KUNNR for customer Number
    ADRNR for Address
    List of a few commonly used table names of ECC:
    Product Related:
    MARA – Material Master (MATNR)
    MARC – Material Master with Plant Data (MATNR, WERKS)
    MARD – Material Master with Storage Location Data (MATNR, LGORT, WERKS)
    MAKT – Material Master Material Descriptions (MATNR, MATKL)
    MBEW – Material Valuation Data (MATNR, BWTAR)
    MVKE – Material Master : Sales related Data
    MDKP, MDTB – MRP related Data( Header, Item)
    MCHA, MCHB – Material Batches (Header, Item) (MATNR, WERKS, LGORT, CHARG)
    Vendor/Supplier related:
    LFA1 – vendor data (LIFNR)
    LFB1 --  Company Code Segment : Vendor Data(LIFNR, BUKRS)
    LFC1 --  FI Related Vendor Data (LIFNR, BELNR)
    LFM1 – Pur. Orgn. Related Vendor Data (LIFNR, EKORG)
    PReq/PO, BOM Related:
    EBAN – Pur. Req. Data( BANFN, BNFPO, BADAT, MATNR)
    EINA – Purchase Info. Record(General Data)(INFNR, MATNR, LIFNR)
    EINE – Purchase Info. Record (pur. Orgn. Data) (INFNR, EKORG)
    ELBK, ELBN, ELBP – Vendor Evaluation Related Data
    EKKO – PO Data (Header) (EBELN, BSTYP, BSART)
    EKPO – PO Data (Item) (EBELN, EBELP, MATNR)
    Pur. Req., RFQ and PO are differentiated by Doc Type (BSTYP) in EKKO table.
    For RFQ it is ‘A’ and for PO it is ‘F’
    MKPF – GRN Data (Header) (EBELN, BLDAT, BUDAT, XBLNR, BKTXT)
    MSEG – GRN Data(Item) MBLNR, BWART, LIFNR, MATNR, EBELN)
    Apart from this there are lot of tables which begin with ‘M’ & ‘E’, but we
    use the following very often.
    EQUK – Quota (Header)(QUNUM, MATNR)
    EQUP – Quota (Item) (QUNUM, QUPOS, LIFNR)
    EKBE – PO History Data (EBELN, EBELP, BELNR, BLDAT, MATNR, VGABE)
    EKBZ – PO History with Delivery Costs(EBELN, BELNR, LIFNR, XBLNR)
    EKET – Schedule lines data of a PO(EBELN, EINDT, SLFDT)
    EKES – Vendor Confirmations Data (EBELN, EBTYP, EINDT, XBLNR)
    T163F – Confirmation Texts (EBTYP, EBTXT)
    T156 – Movement Types (BWARE)
    T024 – Purchasing Groups
    T024E – Purchase Organizations
    T163 – Item Category’s in Purchasing Documents(PSTYP)
    T149D – Valuation Types
    T134 – Material Types
    FVLK – Delivery Types
    STKO, STPO – BOM(Bill Of Material) related Data (Header & Item)
    STPU, STPN, STST, STZU – BOM Related Tables
    RKPF, RBKP, RSEG (Header & Item) – MM – FI Related Data
    KONO, KONH – Pricing data
    T006 – Basic Unit Of Measurements
    Customer/Sales Order Related:
    VBAK : Sales Document(Header Data) (VBELN)
    VBAP : Sales Document(Item Data) (VBELN, POSNR, MATNR, ARKTX, CHARG)
    Enquiry, Quotation, Sales Order are differentiated based on Doc.
    Type(VBTYP Field) in VBAK, VBAP Tables for Enquiry VBTYP = A, for Quotation ‘B’ & for Order it is ‘C’.)
    LIKP : Delivery Table(Header Data) (VBELN, LFART, KUNNR, WADAT, INCOL)
    LIPS : Delivery Table(Item Data)(VBELN, POSNR, WERKS, LGORT, MATNR, VGBEL)
    (LIPS – VBGELN = VBAK- VBELN, LIPS-VGPOS = VBAP-POSNR)
    VTTK : Shipment Table(Header Data) (TKNUM)
    VTTP : Shipment Table (Item Data)(TKNUM, TPNUM, VBELN)
    (VTTP – VBELN = LIKP – VBELN)
    VBRK : Billing Table(Header Data) (VBELN, FKART, BELNF)
    VBRP : Billing Table(Item Data) (VBELN, POSNR, FKIMG, NEWR, VGBEL, VGPOS)
    (VERP – AUBEL = VBAK- VBELN, VBRP – VBEL = LIKP – VBELN)
    Apart from these tables there are lot of other tables which starts with ‘V’, but we use the
    following tables frequently.
    VBUK: All Sales Documents status & Admn. Data(Header) (VBELN, VBTYP)
    VBTYP = ‘C’ (Sales Order) VBTYP = ‘L’(Delivery) VBTYP = ‘M’(Invoice)
    VBUP: Sales Documents status & Admin. Data(Item) (VBELN, POSNR)
    VBEP : Sales Document Schedule Lines Data (VBELN, POSNR, EDATU, WMENG)
    VBKD: To get sales related Business data like Payment terms etc.(VBELN, ZTERM)
    VBFA: Sales Document flow data(VBELV, VBELN, POSNV, VBTYP)
    VBPA: Partner functions Data(VBELN, PARVW, KUNNR, LIFNR)
    TVLKT: Delivery Type: Texts(LFART, VTEXT)
    KNA1, KNB1, KNC1 : Customer Master Data and Other Partner’s Data(KUNNR,
    NAME1,LAND1)
    KNVK: Customer Master Contact Person(PARNR, KUNNR)
    KNVV: Customer Master Sales Data.
    LFA1, LFB1, LFC1: Vendor Master Data(To get Transporter data)(LIFNR, NAME1, ORT01)
    MARA, MARC, MARD : Material Master Data(Basic, Plant, St. Location Views)
    TVKO: Sales Organizations(VKORG)
    TVKOV: Distribution Channels(VTWEG)
    TVTA: Divisions(SPART)
    TVKBZ: Sales Office(VKBUR)
    TVBVK: Sales Group(VKGRP)
    T077D: Customer Account Group(KTOKD)
    T001W: Plants(WERKS)
    T001L: Storage Locations(LGORT)
    TWLAD: To get address of Storage Location and Plant(LGORT, ADRNR)
    TVAU: Sales Document (Order) Types
    KONV: Condition Types (pricing) (KNUMV, KSCHL, KWETR)
    T685T: Condition Types Texts.
    ADRC: To get Addresses of Partners
    VBBE, VBBS: Sales Requirements Data
    VBKA: Sales Activities Data
    VBPV: Sales Document Product Proposal
    Based on the functionality you can search ECC table names and fields
    Hope this information is helpful for you.
    Thanks and Regards,
    Anjali

  • How can i change the record selection criteria via SDK?

    Hi,
    I wanna change the record selection criteria  in rpt file in java program, What API is required?
    Thanks.
    Forest

    Hi,
    You can use RAS API to change record selection formula at runtime. Go to
    https://www.sdn.sap.com/irj/boc/index?rid=/webcontent/uuid/f0aea666-5384-2b10-ffb0-a6facef1d5e5
    and look for Report Application Server Java SDK Feature Samples. It contains the record selection change code.
    Thanks
    Aasavari

  • Error in SQL Query The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query

    hi Experts,
    while running SQL Query i am getting an error as
    The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    T2.LineText
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,T2.LineText
    how to resolve the issue

    Dear Meghanath,
    Please use the following query, Hope your purpose will serve.
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    CAST(T2.LineText as nvarchar (MAX))[LineText]
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry --where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,CAST(T2.LineText as nvarchar (MAX))
    Regards,
    Amit

  • I'm using ezcap.tv 116 ezgamer capture card to record my PS3, this is on a windows laptop, Im then moving the recorded videos in mpg format over to my MacBook Pro to use IMovie to edit them to upload to youtube but it won't let me import them.

    I'm using ezcap.tv 116 ezgamer capture card to record my PS3, this is on a windows laptop, Im then moving the recorded videos in mpg format over to my MacBook Pro to use IMovie to edit them so i can upload them to youtube but it won't let me import them, even after changeing them to MP4 format, it just comes up with the message: "No Importable Files None of the selected files or folders can be imported. Change the selection and try again."
    Ive even tried opening in itunes and copying from thier but they wont open in Itunes, no message or anything they simple just dont open. its strange because it does open in quicktime player.
    please if anyone has any ideas that can help me please let me know XD thanks.

    First problem: You're fine. The hotter it gets, the more the fans spin up. The computer is designed so that at max load, at max fan speed, it won't overheat (unless it's obstructed by something, e.g. sitting on your bed swallowed by a comforter). It's not the best thing to keep it that toasty for days at a time, but a couple hours at a time shouldn't be a problem.
    Second problem: If something in the trash won't delete, just use Secure Empty Trash and it should be fine. Since .torrent files are quite small, it should only take a couple seconds.

Maybe you are looking for