Is it possible to achieve Group By....Having functionality in Discoverer?

Hello All,
I need to print amount due for each customer when it is negative (less than zero). i.e. sum of all transactions against the customer should be less than zero. This is simple through sql if we write "select sum(amount) group by customer having sum(amount) < 0".
But I need to do this in discoverer. Now the issue is I need to pass two parameters at runtime. First one will be Date (<= as_of_date) and another one will be having multiple values (in clause).
If I base my report on underlying report view which uses 'group by... having' sql as described above, I will have to use parameter sheet and use syscontext to pass parameters.
Instead, it will be easier if i pull in all the data in discoverer report and then use parameters to filter it out. But then is there any way to group on customer and having clause to print only those customers where sum(amount) < 0?
Anish

Hi Russ,
I am new to discoverer so pardon me if I am not able to get you quickly.
I am sorry, but I did not get you when you say calc1 = SUM( CASE WHEN amount <0 then amount ELSE 0 END).
May be I was not able to describe you problem. Below is the SQL statement that will give me desired results. I want to achieve same results in Discoverer by getting rid of outer select query with grouping. I will be passing org_id and GL date as parameters.
select customer_number, name, sum(amount_due) Amount_Due, org_id, Business_Segment
from
SELECT hca.account_number customer_number, hp.party_name NAME,
aps.trx_number, aps.gl_date,
aps.amount_due_remaining amount_due, aps.class, aps.org_id org_id
,hca.attribute3
FROM apps.ar_payment_schedules_all aps,
apps.hz_cust_accounts hca,
apps.hz_parties hp
WHERE aps.org_id IN (570, 573)
AND aps.gl_date <= '30-NOV-2008'
AND aps.class in ('CM','INV','DM')
AND aps.customer_id = hca.cust_account_id
AND hca.party_id = hp.party_id
group by customer_number, name,org_id, Business_Segment
having sum(amount_due) < 0
order by 1
Hope I am able to explain you now.
Thanks,
Anish

Similar Messages

  • Is it possible to create group above report between to different data model

    Hi,
    I am having one problem.. I am working on Bi publisher 10...
    I have to create 2 different data models.. which i have done successfully.... its showing xml data perfectly.. but my problem is i want my 2nd data model to be dependent of 1st model...
    when i am designing my template ... i am not able to create a group by report..
    i want my report like this ...
    ------------------------------------------------------------ (fetching data from first data model)
    abc xyz pqrs
    --------------------------------now their it must show the data from second data model... dependent on first model...
    simply i want to know is it possible to create group above report between to different data models..

    Thanks for your response..
    I already tried this.. But its not working ..
    i want parent information from data model 1
    then all detail information related to parent template ...from data model 2..
    but its not working.. its giving me all parent informations first then all details informations..

  • How can I forward a mail to multiple mail accounts that I have in a group without having to add them one by one?

    How can I forward a mail to multiple mail accounts that I have in a group without having to add them one by one?

    I don't think that you can. Yahoo's basic email features do not include mail forwarding.

  • Adobe Muse CC, Is it possible to achieve this effect?

    Hi everyone, it's me again. Now I was browsing through the internet when I come across these two websites:
    Supernova – WordPress Theme (This is a website theme/template)
    http://airnauts.com/ (This is an actual website)
    So, in the first one, the Wordpress theme, as you can see there is this "Fade-In" text effect, now I managed to achieve the same effect via "Composition Widget" following the instructions in this video:
    " Adobe Muse CC 7.0 Tutorial | Auto-Fading Design Elements - YouTube "
    Now, I managed to "synchronize" the time settings, so that my slideshow pictures fade and when there is a new picture the text fades in, the problem is, it happens just once, what I did basically was:
    I set the auto-fading effect using the: "Hide Initially" feature in the "Composition" Widget (like in the video tutorial) and for the first picture/text I set the time, so that when the page loads it automatically fades in, and that works very fine, my point is, that you can't see the effect again unless you reload the page. In the Supernova theme you can clearly see that the texts fade in as the page loads and as the slide changes, so each time it changes slide there's a new text fading in, and if you go back to the previous slide without reloading the page, it still shows it, as if the auto-fading text was somehow "linked" the the picture itself, so that when that particular picture is shown, the effect of the fade-in text comes up, each time that particular picture is shown.
    I made some research and I found out that there's a program called WordPress and that the "Supernova Theme" is actually a "template" for that program (I might be mistaken though). Now, my question here is, is it possible to achieve the same effect with Muse? Like: "when this image appears then the following fade-in text does"
    And, as for the second link, as you will see, there a very cool scrolling effect that makes the rectangle sort of: "turns around" (it's better if you just see what I'm talking about int he second link)
    Is it possible to do the same with Muse?
    Thank you for your time!

    Hi Chuck--
    I haven't seen a specific example of this yet, but I know it's possible to do in Edge Animate. I think shotdang's example is the same concept, but doesn't take it as far.
    It'd be kind of a similar concept to this, too: http://html.adobe.com/edge/animate/showcase/templates/tabviewer/TabViewer.html
    You could start from here: http://www.edgedocks.com/market/organic-menu-edge-animate
    Then, you'd just need to design your project so that the menu items target the frames you want animated.

  • Satellite A100-192: Is it possible to achieve more then stereo sound?

    Hi
    Is it possible to achieve more then stereo with this laptop?
    I have a 5.1 Creative analog speakers, i know there is no way to connect all of them, but as there are 2 jacks i could connect it as 2.1.
    Is there any tool that would allow me to connect subwoofer to mic jack?
    If not then how to make use of the Realtek HD?
    I guess it's a High Definition not High Defeat.
    Best regards
    Krystian

    Hi
    As far as I know the audio line out jack S/PDIF is not available on this unit.
    You can use the headphone jack to connect for example the HiFi to your notebook.
    Additional the notebook has a preinstalled application called Toshiba Virtual Sound.
    This program aworks as a audio filer using SRS TRUsurround XT, SRS WOW HD and SRS Circle Surround Xtract functions.
    The audio filter enables you to enjoy the sound and music of better quality on your notebook.

  • Is it possible to achieve SSO through IDM ??/

    Hello is it possible to achieve SSO through IDM ??? is so how please give me some details regarding this.
    regards
    ravi

    It depends what you mean by this:
    It is possible to have a single password through synchronising the passwords, but I don't think IDM will physically log you on to multiple systems
    --Calum                                                                                                                                                                                                                                                                                                                                                                                           

  • Is it possible to achieve a site like these on muse?

    Hi there,
    Im very new to adobe muse and was wondering if it is possible to achieve sites like either of these? 1 page scrolling sites but with the horizontal scrolling 'slideshows' - and also arrow key navigation?
    the sites also have a sort of 'swing' as you scroll.
    http://onedesigncompany.com/
    http://www.bureaucollective.ch/
    thanks a lot, sorry i havnt been more specific

    Hi
    Please refer to this videos where the similar effect is achieved with horizontal scrolling :
    https://www.youtube.com/watch?v=BDgERSf2a5k
    http://www.lynda.com/Muse-tutorials/basics-horizontal-scrolling-websites/108131/115685-4.h tml
    Thanks,
    Sanjit

  • Where, Group By, Having, Order --- Usage sequence?

    Hi
    Can anyone tell me the sequence in which below clauses can be placed:
    Where, Group By, Having, Order by
    Moreover can we use Having after where and before Group By?
    Thanks!! http://gurunguns.wordpress.com

    Here is a good blog explaining the sequence
    http://pratchev.blogspot.com/2007/05/anatomy-of-query.html
    Premature optimization is the root of all evil in programming. (c) by Donald Knuth
    Naomi Nosonovsky, Sr. Programmer-Analyst
    My blog

  • Is possible to see group currency data in SAP provide report or query ?

    Dear experts:
             Is possible to see group currency data in SAP provide report or query for Assets. When the Depreciation area currency is different with the group currency?
    My SAP version is ECC 6.0.
    Depreciation area currency: USD,
    Company code currency: USD,
    Second local currency: Group currency(TWD)

    You must have defined an additional dep area for group valuation too.
    then only you can get the asset values in TWD curency.

  • No entries in Define conversion group and external function module setting.

    Hi all,
    After active bussiness function SAP Oil & Gas, my system have a problem in SPRO.
    SPRO --> IMG --> Industry solution Oil & Gas (Downstream) --> HPM --> QCI configuration --> Define conversion group and external function module setting.
    Problem appear: Has no entries in there!
    Please, help me! Thank you so much!
    Tks & best regards,
    DatHT

    Dat,
    There are few entries normally delivered by SAP and which are good for a regular implementation. It is possible that those are not copied over from the reference client. Second option is to check the BC set (if) available for this activity and pull those in. Check the SAP reference client first, most likely that has entries which you can copy over to your regular client.
    Regards,

  • Is it possible to call the Print Quote functionality from Custom ADF page

    Hi,
    We are researching if it is possible to call the Print Quote functionality from the Custom ADF application.
    Goal is to pop up the PDF report upon clicking the Print Quote button on the custom page. Is it possible ?
    Atleast advice on the direction to go forward is appreciated.
    Thanks
    Sai

    Hi ,
    Please check following thread on forum -
    Re: ADF: Calling OAF Page from ADF page
    Check this may also be useful-
    https://blogs.oracle.com/shay/entry/to_adf_or_oaf_or
    I have not tried yet but Steven Chan (Sr. Director OATG) suggest following methodolgy for this-
    https://blogs.oracle.com/stevenChan/entry/appsdatasource_jaas_ebs
    Thanks,
    Ashish

  • Is it possible to call custom designed RFC function module, apart from BAPI

    Hi Friends,
    1.     Is it possible to call custom designed RFC function module, apart from BAPI.
    2.     Why we call it Adaptive RFC layer, Since every time the JCO layer updated with SAP, Why can’t be dynamic.
    Thanx for Ur time.
    Cheers,
    Sam

    Also check <a href="http://help.sap.com/saphelp_nw04/helpdata/en/41/38bc8f813719488ddc9d9b21251ec3/frameset.htm">here</a> for more information on aRFC. Here you can find why it is called adaptive.
    Regards,
    Christophe

  • Build a target group by Partner Function

    Hi forum friends
    Please I need a help.
    I want to create a target group by Partner function (BUT100).
    I have tried to use the join:
    BUT100(partner field) + BUT0CC(Partner) + BUT051(Partner1) + BUT000(Partner) but it doenst work.
    How can i do it?
    Thanks in advanced.
    Daniel

    Hi
    I have tried to use this infoset but it bring me only the 000000015 (contact person) function and don't the others.
    Do you know what is happening?
    I want to fiter by Z function.
    Thanks anyway
    Regards,

  • Target Group by partner function (created BP BUT100)

    Hi forum friends
    Please I need a help.
    I want to create a target group by Partner function (BUT100).
    I have tried to use the join:
    BUT100(partner field) + BUT0CC(Partner) + BUT051(Partner1) + BUT000(Partner) but it doenst work.
    How can i do it?
    Thanks in advanced.
    Daniel

    Hi ,
    There are already following standard InfoSets on the Partner Function BUT000 .
    CRM_MKTTG_BP_PRTFUNC
    CRM_MKTTG_BP_PRTFUNC_REL
    Could you please go to SQ02 T.Code to find out more on this .
    Hope this helps you .
    Regards ,
    Nagaraju D.
    Edited by: Nagaraju Dharmavaram on Jul 10, 2009 1:28 PM

  • How to find suitable( existing) function group for a Function Module ?

    How to find suitable( existing) function group for a Function Module to be created?
    This is FM for converting amounts to text.

    Hi,
            If you are not sure into which Function group your FM should go in then its advised to create a Function group of your own. Its not advised to create a function module in any other function group unless its owned by you since your FM can get deleted by others or it can get changed.
    Create your own Function group. But if you want to create in an existing FG then best way is to find out the Function Group by searching for suitable existing Function module then see their function group
    Regards,
    Sesh

Maybe you are looking for

  • Creation of control file in Oracle 10g

    Hi, I had taken the backup of control file(backup control file to trace) and edited it to change the new location of the datafile.But when i try to create the Control file(Startup nomount,@cntrl.sql) it fails with the following error ERROR at line 1:

  • How I survided Error 1418 after upgrading to itunes 7.0.2

    IT WORKS AGAIN !!!!!!! Problem 5.0 Gen ipod, upgraded to itunes 7.0.2 and got an icon at my ipod with a folder shape. Connecting the ipod gaves a "corrupt ipod" message. Trying to restore ipod gave a 1418 unknown error, tried many things like format

  • Keywords are not showing up on photos

    After going to great length to assign keywords to my entire photo library, I burned all the photos onto iPhoto DVDs in preparation for my computer getting a new hard drive installed. After new hard drive was installed, I reinstalled iPhoto 4.0.3 and

  • Automation of Pre-Caching of Web Templates.

    Hi all, In our project where the BW version is BI7.0 we run cache jobs manually by triggering them through sm37. These jobs cache the web-templates for a set of queries to improve the query performance. The steps we follow are: 1. Delete Cache from r

  • Populating a Table

    How do you populate certain table cells if and when a text box previously within the form has been filled out.  What I'm trying to do is if the user files out say their name and address, the name and address data would automatically transfer to the t