How to avoid grouping by date with dates as incoming parameters?

Hello, I have the following Query from SAP Business One set as DataSource:
SELECT  T1.SlpName as 'Vendor', convert(varchar(12), T0.[U_ER_PROV])as 'City', T0.[CardCode] as 'Client Code', T3.CardName as 'Client Name', T0.DocDate as 'Date', T2.ItemCode, T4.ItemName as 'Reference Description', sum (T2.Quantity) as 'Toal Units per Reference',
avg (T2.Price)as 'Average Price', sum(T2.LineTotal) as 'Total'
FROM ODLN T0
INNER JOIN OSLP T1
ON T0.SlpCode = T1.SlpCode
INNER JOIN DLN1 T2
ON T0.DocEntry = T2.DocEntry
INNER JOIN OCRD T3
ON T0.CardCode = T3.CardCode
INNER JOIN OITM T4
ON T2.ItemCode = T4.ItemCode
group by  T1.SlpName, convert(varchar(12), T0.[U_ER_PROV]), T0.[CardCode], T4.ItemName, T0.DocDate, T2.ItemCode, T3.CardName
order by  T1.SlpName, convert(varchar(12), T0.[U_ER_PROV]), T0.CardCode, T0.DocDate, T2.ItemCode
What I´d like to do is, grouping in Crystal Reports, the result of this query by Item Code, not by date. The problem I have is that I need users introduce "from date" to "end date" as incoming paramater.
The way I am running it, for example  I have some results like:
date                         Item Code               Total
01/01/2009               4646_R2                  120 u20AC
10/01/2009               4646_R2                  34 u20AC
And I´d like to take something like this:
Item code                       Total
4646_R2                         154 u20AC
Not grouping by date ......
Is there any way to do this using this query in Crystal Reports?
Thanks very much for your time.
Miguel A. Velasco

Hello all, thanks very much to  Raghavendra for his helpfully answer.
I followed your coments and now the report is running fine.
Thanks again for your help without expecting anything in return.
Miguel Velasco

Similar Messages

  • How to avoid material master data migration of inactive materials to SRM

    We are replicating material master from R3 4.6b to SRM 5.0 system.  Under COMMPR01 , we can see the product status as deleted or locked .
    How we can avoid the master data replication of  materials which are already flagged as inactive (deletion) in R3.
    Pls suggest.
    Regards,
    Avinash

    Hi
    Please try this ->
    1) It is possible to use product_id without needing to replicate material masters from R/3 to SRM. For this to work you have to set the flag "Do not check product" in customizing
    (see SRM Server > Master Data > Define External Web Services).
    We do it like that and it works perfect for us. Only annoyance is, that we have to put leading zeroes in the product_id field.
    "Do not check product" is used to avoid product check in SRM (to avoid replicating products into SRM), so they are not checked against SRM product master.
    But this is not related to R/3 check.
    In a classic or extended classic scenario, SRM will check that this material exists in the backend, especially for the current plant (location), before creating follow on doc.
    As you created your catalog item without zeros, I guess SRM is sending this material to R/3 that does not recognize it.
    Then you have this error message. Adapt your product IDs to be aligned with R/3 material master.
    2) Try to run the report BBP_PRODUCT_SETTINGS_MW, there you select user as SRM instead of CRM and select service product active
    3) Did you already checked OSS note 722600 and 366135 ? Also, Check the SAP OSS Notes -  786345, OSS Note 456753. It talks abt the internal and external representation of product ID in catalog and R3 system.
    Related useful pointers ->
    Product xx does not exist in plant xx or it has been flagged for deletion
    Stock reservation movement (field XWAOK) is not flagged in ECC ??
    Product XXX  does not exist in plant YYY or it has been flagged for delete.
    material deletion flag
    Product XXX does not exist in plant YYY or it has been flagged for deletion
    Hope this will help. Do let me know.
    Regards
    - Atul

  • How to avoid updating the data when ever we refresh the page

    I want to avoid updating the data to the server when ever we refresh the web page.
    Thanks in advance.

    You could potentially do it by using a redirect instead of a forward to the result page.
    That will essentially do it in two requests. 1 to request the save, another to display the result of the save.
    If the user then requests a refresh, it won't incur a save call.
    Of course, that doesn't stop them going back in the browser, and refreshing that page, but it at least makes it a little harder.
    Cheers,
    evnafets

  • Splitting and grouping of data from incoming string

    Hello,
    I have a package of data coming from the serial port and read out as a string.
    The package has the following format, to be short.
    1. opening characters
    2. 2 bytes for Group ID(identify the device# the data comes from).
    3. Sensors data belongs to device# (1 byte each)
    -data of sensor #1
    -data of sensor #2
    -data of sensor #3
    -data of sensor #4
    and loop back to sensor 1,2,3,4 for 20 bytes total.
    I have eliminated the opening characters with the replace substring with empty string. For the Group ID, I used a case structure to identify which device it is. For the sensor data, I need to split them up and group all the data of the sensors together. I tried using substring for each sensor in a for loop that loop 5 times to group the data of each sensor together but it only give me the very last values.
    My goal is to be able to extract and group the 5 bytes of each sensor together everytime the serial package comes in and then save them to a separte files for each sensor. I also want to be able to plot the data of each sensor as they come in with respect to time.
    Any idea on how I can accomplish the grouping of data described above? I really appreciate your prompt response. Thanks,

    Since you already know how to separate the sting containing the sensors data, you just have to use a string to byte function and to decimate the resulting array, as shown in the attached vi.
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Sensor data.vi ‏39 KB

  • How can I group two annotations with JavaScript?

    I create two annotations with JavaScript:
    var annot1 = this.addAnnot({
                      page: 0,
                      type: "Square",
                      rect: [150, 150, 180, 180],
                      name: "OnMarketShare",
                      author: "A. C. Robat",
                      contents: "This section needs revision."});
    var annot2 = this.addAnnot({
                      page: 0,
                      type: "Square",
                      rect: [200, 200, 300, 300],
                      name: "OnMarketShare",
                      author: "A. C. Robat",
                      contents: "This section needs revision."});
    How can I group them with JavaScript?

    Can I select them in JavaScript Code?
    like:
    annot1.selected = true;     //wrong JavaScript code.
    annot2.selected = true;     //wrong JavaScript code.
    annot3.selected = true;     //wrong JavaScript code.
    annot4.selected = true;     //wrong JavaScript code.
    If I can do these, I can group them easily : right-click them, and then, click "group" button.

  • How to Avoid Grouping for some conditions?

    Hi,
    I am facing a problem in Sales_commission Report. In this report I am grouping data Based upon first by
    salesman and then by customer. And also some sorting conditions. I designed all grouping by using report wizard.
    The problem is: If sort_by Parameter =customer then only need to group data based customer.
    Else ie if sort_by= 'order_no' or 'Inv_no' then no need of grouping the data by customer. Display data
    as per sorting condition.
    Is there any solution for this problem?

    Hi,
    I am facing a problem in Sales_commission Report. In this report I am grouping data Based upon first by
    salesman and then by customer. And also some sorting conditions. I designed all grouping by using report wizard.
    The problem is: If sort_by Parameter =customer then only need to group data based customer.
    Else ie if sort_by= 'order_no' or 'Inv_no' then no need of grouping the data by customer. Display data
    as per sorting condition.
    Is there any solution for this problem?There is no way to remove the grouping based on customer, so sorting based on customer will be retained.
    Way to hide the customer group fields in the customer repeating frame is by using format triggers based on sort_by_parameter,
    and place the customer fields in the last group repeating frame also and show or hide this fields depending on sort_by_parameter.
    Hope this helps.
    Best Regards
    Arif Khadas

  • How many ledger groups to create with 4 ledgers?

    Hello
    We are using new GL in ECC 6.0. If I have 4 ledgers/accounting principles say A,B,C,D. How many ledger groups do I need to set up to allow business to select the right number of ledgers to post to?
    4 ledger groups with only 1 ledger assigned: A, B, C, D
    3 ledger groups with only  3 ledgers assigned: ABC, BCD, ACD
    6 ledger groups with 2 ledgers assigned: AB, BC, CD, AD, AC, BD
    1 ledger group with 4 ledgers assigned: ABCD
    In total 14 ledger groups?
    regards
    Arjan

    Hi Arjan,
    I strongly feel it should be 4 with A, B, C & D unless you have any specific requirement to group them.
    Just as a question, do you have specific business requirement to group each of them?
    Thanks and regards,
    Madhu

  • How to avoid starting a page with line breaks?

    Hello. I've just started to refine my Master's thesis and some of the topics moved up and down as I edited their contents. The problem is that in some cases the topic breaks right after the title, and the rest of the contents just move away to another page. Is there any way to avoid starting a page with line breaks or broken topics?

    At the end of your title, you didn't inserted a line break but a paragraph break (carriage return).
    Acivate the mode "Show hidden characters"
    Select the carriage return (paragraph break)
    Delete it
    Press Shift + return to insert a true line break.
    It may be useful to apply that several times if you inserted several carriage returns between the title and the first filled line.
    Yvan KOENIG (VALLAURIS, France) 15 mai 2011 19:40:14

  • How many disk groups for +DATA?

    Hi All,
    Does oracle recommends having one big/shared asm disk group for all of the databases?
    In our case we going to have 11.2 and 10g rac running against 11.2 ask...
    Am I correct in saying that I have to set asm’s compatibility parameter to 10 in order to be able to use the same disk?
    Is this is a good idea? Or should i create another disk group for the 10g db’s?
    I’m assuming there are feature that will not be available when the compatibility is reduced to 10g...

    Oviwan wrote:
    what kind of storage system do you have? nas? what is your protocol between server and storage? tcp/ip (=>nfs)? fc?....
    if you have a storage with serveral disks then you create mostly more than one lun (raid 0, 1, 5 or whatever). if the requirement is, that you need a 1 TB diskgroup, then I would not create 1 1TB lun, I would create 5x200GB lun's for example, just for the case that you have to extend the diskgroup with a same lun size. if its 1 TB then you have to add another 1TB lun, if there are 5x200GB luns then you can simply add 200GB.
    I have nowhere found a document that says: if you have exactly 16 lun's for a diskgroup it's best. it depends on os, storage, etc...
    so if you create a 50gb diskgroup I would create just one 50gb lun for example.
    hthyes its NAS, connectd using Iscsi. it has 5 disks 1TB each and configued with RAID5. I found below requirments on asm ... it indicates 4luns as minimum per diskgroup, but it doesnt clearify whether its for external redundancy or as mredundancy types.
    •A minimum of four LUNs (Oracle ASM disks) of equal size and performance is recommended for each disk group.
    •Ensure that all Oracle ASM disks in a disk group have similar storage performance and availability characteristics. In storage configurations with mixed speed drives, such as 10K and 15K RPM, I/O performance is constrained by the slowest speed drive.
    •Oracle ASM data distribution policy is capacity-based. Ensure that Oracle ASM disks in a disk group have the same capacity to maintain balance.
    •Maximize the number of disks in a disk group for maximum data distribution and higher I/O bandwidth.
    •Create LUNs using the outside half of disk drives for higher performance. If possible, use small disks with the highest RPM.
    •Create large LUNs to reduce LUN management overhead.
    •Minimize I/O contention between ASM disks and other applications by dedicating disks to ASM disk groups for those disks that are not shared with other applications.
    •Choose a hardware RAID stripe size that is a power of 2 and less than or equal to the size of the ASM allocation unit.
    •Avoid using a Logical Volume Manager (LVM) because an LVM would be redundant. However, there are situations where certain multipathing or third party cluster solutions require an LVM. In these situations, use the LVM to represent a single LUN without striping or mirroring to minimize the performance impact.
    •For Linux, when possible, use the Oracle ASMLIB feature to address device naming and permission persistency.
    ASMLIB provides an alternative interface for the ASM-enabled kernel to discover and access block devices. ASMLIB provides storage and operating system vendors the opportunity to supply extended storage-related features. These features provide benefits such as improved performance and greater data integrity.
    one more question about fdisk partitioning. is it correct that we should only create one partition per luns (5x200Gb luns in my case) is it because this way i will have more consistent set of luns( in term of performance)?

  • How to Avoid Printing the data twice when the sub report has drill down?

    Hello,
    I have a sub report that has drill down which is placed in report footer.When i run the report sub report displays the data but when i tried to drill down it displays the same data again.After that i can able to drill down on sub report.Is there any way to avoid
    printing the same data twice.
    Thanks in advance.

    Hi,
    If the subreport you're referring to does not grow in size and it does not span multiple pages and you know the size of it, here's what you can do to stop drilling into subreports :
    1) Create a text object as large as the subreport (perhaps bigger than it) and fill it with spaces or new lines
    2) Place it 'over' the subreport such that it covers the entire area occupied by the subreport
    3) The subreport at all times should be smaller than the text object in all dimensions
    Now, when you hover the mouse over the subreport, there isn't any magnifying glass for you to drill down into.
    If the subreport has further drill-down functionality, then this isn't for you! Because, it just wouldn't allow you click on any objects in the subreport because of the text object eclipsing it. This is the only workaround I know at this point in time and I know a lot of users are looking for this.
    I would suggest that you log this as an Enhancement Request at http://ideas.sap.com for our developers to have a look into this.
    And finally, I also found an old forum post where Jamie has suggested a way to get this working on the Business Objects Environment. Give it a shot, if that's where the reports are eventually run.
    How to disable subreport view
    Hope this helps!
    -Abhilash

  • How to avoid splitting of data in data package

    Gurus
    I am loading the data from DSO to Cube , during that load in end routine I am appending my material by reading Material Master data to have sub materials.
    So for example Material ABC have sub material 01 and 02. So when the data go to cube it will have 3 records instead of one Parent material record due to Append.
    Now the problem is , Parent material can come in different data packet from DSO so It may not get the sub material , I would like to get same Material in one data packet so I can append without any problem, would you please advise how should I proceed or achieve this?

    Hi Kris,
    2 ways to do this among others:
    1. If you use a 7.0 flow, select semantic keys for Material in DTP.  All materials will be sorted and common ones will group together in same package.  This is esp. useful if your logic works in the Start or Expert Routine.
    2.  With End Routine, you can simply sort the Result_Package and get all materials together and append lines for the required combination character set from the workarea.
    Any of these should solve your problem.
    Regards,
    Aby
    Edited by: Abraham Samuel on Mar 22, 2011 4:29 PM

  • How to avoid oracle implicit data type conversion

    Hello,
    i have a query like below..
    SELECT EMP_NUM
    FROM EMPLOYEE
    WHERE EMP_NUM=SOURCE_EMP_NUM;
    1. My SOURCE_EMP_NUM data type is varchar2.
    2. My table EMP_NUM data type is number.
    3. In one case my SOURCE_EMP_NUM value '00000123'
    4. I have an entry in table for EMP_NUM as 123.
    5. In this case my query is success and giving me row for 123, which i don't want it should compare with leading zeros. But due to oracle implicit conversion the comparision getting passed.
    6. I have an index for this column, so i can't use "like" operator...
    Can somebody help me.....
    Thanks in adv....

    HI,
    Just see this :---
    SQL> select * from emp where deptno=00020;---------deptno is number, 00020 is number and its true
    EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
    7369 SMITH CLERK 7902 17-DEC-80 800 20
    7566 JONES MANAGER 7839 02-APR-81 2975 20
    7788 SCOTT ANALYST 7566 19-APR-87 3000 20
    7876 ADAMS CLERK 7788 23-MAY-87 1100 20
    7902 FORD ANALYST 7566 03-DEC-81 3000 20
    SQL> select * from emp where to_char(deptno)=00020;=-------------deptno is character type and 00020 is number so still it is leaving 0000 from 20 as it number and has no impact,
    EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
    7369 SMITH CLERK 7902 17-DEC-80 800 20
    7566 JONES MANAGER 7839 02-APR-81 2975 20
    7788 SCOTT ANALYST 7566 19-APR-87 3000 20
    7876 ADAMS CLERK 7788 23-MAY-87 1100 20
    7902 FORD ANALYST 7566 03-DEC-81 3000 20
    SQL> select * from emp where to_char(deptno)='00020';---now both are character and no row is selected.
    no rows selected
    So you can avoid the implicit conversion according to the requirements and in this case we are usin to_char function to avoid this.
    Regards,
    Navneet

  • How to achieve grouping of data based on one column

    Hello PL/SQL Gurus/experts,
    I am using Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production version
    I have following table -
    DROP TABLE T2;
    create table T2(Manager,Employee) as select
    'Nikki','Ram' from dual union all select
    'Nina', 'Rita' from DUAL union all select
    'Mike', 'Radha' from dual union all select
    'Michael', 'Ratnam' from DUAL union all select
    'Hendi', 'Ratna' from dual union all select
    'Robert', 'Raman' from dual union all select
    'Maria', 'Rolly' from dual union all select
    'Kistrien', 'Rachna' from dual union all select
    'Andrew', 'Ritvik' from dual union all select
    'Emma', 'Ramesh' from dual union all select
    'Andy', 'Ranpal' from dual union all select
    'Brandy', 'Raunak' from dual union all select
    'Nikki','Shyam' from dual union all select
    'Nina', 'Sita' from DUAL union all select
    'Mike', 'Sadhna' from dual union all select
    'Michael', 'Satnam' from DUAL union all select
    'Hendi', 'Satna' from dual union all select
    'Robert', 'Samar' from dual union all select
    'Maria', 'Sameer' from dual union all select
    'Kistrien', 'Samrachna' from dual union all select
    'Andrew', 'Satvik' from dual union all select
    'Emma', 'Somesh' from dual union all select
    'Andy', 'Sonpal' from dual union all select
    'Brandy', 'Samar' from dual union all select
    'Emma', 'Piyush' from dual union all select
    'Andy', 'Pavan' from dual union all select
    'Brandy', 'Paramjeet' from dual;Expected output -
    Manager          Employee
    Nikki
              Ram
              Shyam
    Nina           Rita
              Sita
    Mike           Radha
              Sadhna
    Michael      Ratnam
              Satnam
    Hendi           Ratna
              Satna
    Robert          Raman
              Samar
    Maria          Rolly
              Sameer
    Kistrien     Rachna
              Samrachna
    Andrew          Ritvik
              Satvik
    Emma          Ramesh
              Somesh
              Piyush
    Andy          Ranpal
              Sonpal
              Pavan
    Brandy          Raunak
              Samar
              ParamjeetI thank to all of you in advance for your valuable time and inputs

    In SQL, something like this...
    SQL> ed
    Wrote file afiedt.buf
      1  select case when row_number() over (partition by emp.manager order by employee) = 1 then
      2           mgr.manager
      3         else
      4           null
      5         end as manager
      6        ,emp.employee
      7  from (select distinct manager from t2) mgr
      8       join t2 emp on (mgr.manager = emp.manager)
      9* order by mgr.manager, emp.employee
    SQL> /
    MANAGER  EMPLOYEE
    Andrew   Ritvik
             Satvik
    Andy     Pavan
             Ranpal
             Sonpal
    Brandy   Paramjeet
             Raunak
             Samar
    Emma     Piyush
             Ramesh
             Somesh
    Hendi    Ratna
             Satna
    Kistrien Rachna
             Samrachna
    Maria    Rolly
             Sameer
    Michael  Ratnam
             Satnam
    Mike     Radha
             Sadhna
    Nikki    Ram
             Shyam
    Nina     Rita
             Sita
    Robert   Raman
             Samar
    27 rows selected.If you want the managers on their own row with the employees underneath then you'll have to fudge it.
    SQL> ed
    Wrote file afiedt.buf
      1  select case when row_number() over (partition by emp.manager order by employee nulls first) = 1 then
      2           mgr.manager
      3         else
      4           null
      5         end as manager
      6        ,emp.employee
      7  from (select distinct manager from t2) mgr
      8       join
      9       (select distinct manager, null as employee from t2
    10        union all
    11        select manager, employee from t2
    12       ) emp on (mgr.manager = emp.manager)
    13* order by mgr.manager, emp.employee nulls first
    SQL> /
    MANAGER  EMPLOYEE
    Andrew
             Ritvik
             Satvik
    Andy
             Pavan
             Ranpal
             Sonpal
    Brandy
             Paramjeet
             Raunak
             Samar
    Emma
             Piyush
             Ramesh
             Somesh
    Hendi
             Ratna
             Satna
    Kistrien
             Rachna
             Samrachna
    Maria
             Rolly
             Sameer
    Michael
             Ratnam
             Satnam
    Mike
             Radha
             Sadhna
    Nikki
             Ram
             Shyam
    Nina
             Rita
             Sita
    Robert
             Raman
             Samar
    39 rows selected.

  • How to Avoid Duplicate photo Uploads with Elements 11 on Mac?

    I've searched Help for this and it tells me to select a "Do not show duplicates" box in Preferences that doesn't seem to exist with my Mac version.  How do I force Elements 11 to ignore photos I've already uploaded?  Thanks

    I'll have a look at the help before doing further tests:
    http://helpx.adobe.com/content/help/en/elements-organizer/using/cameras-card-readers.html
    About what is specific for Windows in the preference menu:
    (Windows only) To specify default values for automatic downloads, set any of the following:
       http://helpx.adobe.com/content/help/en/elements-organizer/using/
    Begin Download
    Specifies when a download begins after a device is connected.
       http://helpx.adobe.com/content/help/en/elements-organizer/using/
    Create Subfolder(s) Using
    Specifies if and how to separate and name folders containing media files shot on different dates.
       http://helpx.adobe.com/content/help/en/elements-organizer/using/
    Delete Options
    Specifies if and how to delete the original media files from your camera after copying them to your hard disk.
        http://helpx.adobe.com/content/help/en/elements-organizer/using/
    Copy New Files Only (Ignore Already Imported Files)
    Causes the downloader to ignore files that are already on your hard disk.

  • How to avoid the page timeout with the HP Color LaserJet Enterprise CP4025?

    We are using a DOS application developed with DB4 and running always on the same XP workstation. One month ago we changed our previous HP color printer (was broken) buying a newest CP4025. With the previous HP color printer, and also with another printer we have (HP Color LaserJet CP2025), our application works very well. But using the CP4025 now we have a problem.
    When our application prints in PCL mode, sends the first part of job, then the application perform some calculation tasks with the database and sends the final part after about 30 seconds. We don't know why, but the CP4025 seems to have a timeout after about 15 seconds that cause closing the printing job with a sort of end of page, printing wrongly a half page, and after a new page with the second half of the real single page.
    Why the CP4025 have a so short timeout? Our previous HP and also the CP2025 works well with our application, without perform any kind of short timeout. 
    Anybody knows how is it possible to avoid this timeout with the CP4025?

    In theory PCL5 jobs should only be terminated and forced to finish printing via either an IO timeout, the network connection being closed, or an end of job command in PCL5. 
    You can check/change the default IO timeout value through the front screen. You'll find it by navigating to Configure Device->I/O->I/O Timeout. I would recommend making sure it is set to something around 120 seconds. 
    Do you know whether the application itself is generating the PCL5 job, or whether it is going through a print driver to generate the job? 
    I work for HP

Maybe you are looking for