Customer Turnover Report By Month

Hi Experts,
I would be grateful of anyone could give me an idea as to why the attached query would just freeze up my SAP? It is a new query but I can't see why it won't work.
Any help or direction would be appreciated.
Thanks
David
SELECT T0.[CardCode], T0.[CardName], (SUM(T1.Debit) - sum(T1.Credit)) AS 'Jan', (SUM(T2.Debit) - sum(T2.Credit)) AS 'Feb', (SUM(T3.Debit) - sum(T3.Credit)) AS 'March', (SUM(T4.Debit) - sum(T4.Credit)) AS 'April', (SUM(T5.Debit) - sum(T5.Credit)) AS 'May', (SUM(T6.Debit) - sum(T6.Credit)) AS 'June', (SUM(T7.Debit) - sum(T7.Credit)) AS 'July', (SUM(T8.Debit) - sum(T8.Credit)) AS 'Aug', (SUM(T9.Debit) - sum(T9.Credit)) AS 'Sept', (SUM(T10.Debit) - sum(T10.Credit)) AS 'Oct', (SUM(T11.Debit) - sum(T11.Credit)) AS 'Nov', (SUM(T12.Debit) - sum(T12.Credit)) AS 'Dec'
FROM  OCRD T0
LEFT JOIN JDT1 T1 ON T1.ShortName = T0.CardCode AND Month(T1.Duedate) = 1  AND Year(T1.Duedate) = 2011 AND T1.TransType
in ('13','14')
LEFT JOIN JDT1 T2 ON T2.ShortName = T0.CardCode AND Month(T2.Duedate) = 2  AND Year(T2.Duedate) = 2011 AND T2.TransType
in ('13','14')
LEFT JOIN JDT1 T3 ON T3.ShortName = T0.CardCode AND Month(T3.Duedate) = 3  AND Year(T3.Duedate) = 2011 AND T3.TransType
in ('13','14')
LEFT JOIN JDT1 T4 ON T4.ShortName = T0.CardCode AND Month(T4.Du

Hi Gordon,
Thank you for coming back on this so quickly.
The query I posted above is something I edited from the below, which is something I think I took off this site some time ago ...
SELECT T0.[CardCode], T0.[CardName], (SUM(T1.Debit) - sum(T1.Credit)) AS 'July',
(SUM(T2.Debit) - sum(T2.Credit)) AS 'August'
FROM  OCRD T0
LEFT JOIN JDT1 T1 ON T1.ShortName = T0.CardCode AND Month(T1.Duedate) = 7  AND Year(T1.Duedate) = 2010 AND T1.TransType
in ('13','14')
LEFT JOIN JDT1 T2 ON T2.ShortName = T0.CardCode AND Month(T2.Duedate) = 8 AND Year(T2.Duedate) = 2010 AND T2.TransType
in ('13','14')
WHERE T0.CardType = 'C'
Group By T0.[CardCode], T0.[CardName]
This works fine within SAP but only displays sales values for July & August 2010.
Based on what you are saying then is it not possible to create this for a full 12 month calander period?
Thanks
David

Similar Messages

  • Customer payment report

    I have an requirement, user ask me to generate a customer report to them on monthly basis, i would like to know which table can be use? The report need to shown the customer payment date( i think use entry date would be better), and for which invoice and sales order item... thank you very much.
    Moderator Message: First work on it yourself and get back if you have any specific queries.
    Edited by: kishan P on Nov 30, 2010 10:01 AM

    Hi
    i think we can get report from ABAP Query.  we have to write Query using tables and select fields, then we can get customer payment report.

  • SGD Exchange Rate Difference JE appears in Customer Aging Report

    Dear Experts,
    SAP Version: 8.81
    Local Currency: SGD
    We perform Exchange Rate Difference for a USD BP to calculate the unrealized gain/loss during month-end, JE created successfully.
    Next, we go to Customer Aging Report and select this USD BP.
    When i choose to view the Aging Report in Local Currency, the USD Invoice will appear in SGD + Exchange Rate Difference JE in SGD, the total balance can appear in SGD with no problem.
    When i choose to view the Aging Report in BP Currency, the USD Invoice will appear in USD + Exchange Rate Difference JE in SGD, i can't see the total balance as it is appeared as xxxxx.
    Above is the behaviour in 881.
    Last time in SAP 2005, when i choose to view the Aging Report in BP Currency, the Exchange Rate Difference JE in SGD will not appear, therefore i can see the total balance in USD.
    What is your opinion about the behavior in 881? Will you consider it as design or issue?
    Thanks.
    Regards,
    Lay Chin

    Dear all,
    This problem is no longer there when upgrade to 881 Patch 08.
    Regards,
    Lay Chin

  • How to get Daily Customer Balance Report?

    Hi
    I have received a requirement from the user where he has to send the Daily Customer balance report currently he is using the T.Code S_ALR_87012172 Customer Balances in Local Currency for fetching the monthly data.
    I want to know what are the ways to make the report and what is the best way out of them to do it. Can it be done through user Exit, BADI, query or we have to get the Z report made by the apaber.
    Also, if it is possible please tell me the way step by step for user exit, badi or query if that is to be used.
    Please help
    Thanks in advance
    Pankaj

    Thanks for your reply Aleksey...
    We are using the report S_ALR_87012172 - Customer Balances in Local Currency and user want the same report on daily basis like Total Debit/Credit, Balance carryforward and the Accumulated balance. I have checked but unable to find out any such output.
    Please suggest what to do whether to make chnges in report painter or have to write a query. If I write a query then plz suggest me the tables as I am trying to do that but unable to link the Balance carryforward and accumulated balance.
    Regards
    Pankaj

  • Customer Aging Report

    Hi all,
    Our client requires aging report
    for a customer in the following format
    Customer Code,Name,0-30 Days,31-60 days,61-90 days,
    91-120 days,121-150 days,151-180 days,180 + above days,Row Total (all days).
    Condition:  By Aging date
    Thanks
    Jeyakanthan

    Hi Jeyakanthan,
    SAP Business One displays the relevant open receivables in four columns for the time interval for customer aging report.
    The fourth column includes open receivables for the days/months/periods prior to the first three columns. For more information please refer to the explanation for 'Time Intervals' field in Online help.
    Based on the testing in 2007 version, it is improved that there is one more column added there, which means if you set 'Time Intervals' as month, you may get five columns in aging report, the first four columns are for 4 months and the last column shows open receivables for the months prior to the first four columns.
    Regards,
    Van Xue
    SAP Business One Forums Team

  • Customer Service Reports

    Hi Gurus,
    Kindly help me out in Customer Service Reports. As i am new to CS.
    1.All 90 day Customer Service returns for a specific period.
    2.All 90 day Customer Service Returns for a tech during a specific period.
    3.All 90 day Customer Service Returns for each tech during a specific period, separated by tech.
    4.All 90 Day Customer service returns by product group, model during a specific period.
    5.repair Units received in a specific period
    6.Backlog of each product or model
    7.Number of units invoiced in a specific period
    8.Number of units completed (PIOu2019d) in a specific period with a selection of
    a) warranty
    b) non-warranty
    c) service contracts
    d) JOB TYPES
    e) Cal only
    9.Daily Revenue Month to date by
    a) LABOR
    b)  PARTS
    c)  FLAT RATE
    d) SERVICE CONTRACTS
    e)  SPARES
    Entire inventory of units in Service ( REPSTAT)
    Need to run reports for units coming out of warranty u2013 90 days in advance.
    Repair report
    Calibration due report
    Invoice and IR info by model / SN
    View unit tracking/units due for calibration in next 60 days
    View invoiced amount per product per month
    thanks
    Edited by: rkravi928 on Aug 23, 2009 6:18 AM

    Ravi,
    It seems that you have posted your client's all report requirements in one post and expecting Functional spec for each report.
    All these reports requires lot of discussion with Core teams / Technical consultant.
    Eg.
    >
    > 8.Number of units completed (PIOu2019d) in a specific period with a selection of
    > a) warranty
    > b) non-warranty
    > c) service contracts
    > d) JOB TYPES
    > e) Cal only
    >
    Where you maintain warranty information?
    Iis there any master warranty / Measurement document involved? .. is there any extended warranties applicable for your product?
    What is your reference object - Equip / Func loc etc..?
    What do you mean by JOB type and where you are capturing?
    ... lot of queries can be raised on your requirement.
    The functional consultant and the core team members of this module can only be able to answer those queries.
    Better you close this thread, and start separate queries for each report with necessary information so that peers can able to suggest.
    Babu

  • Customer Exit for Calendar Month based on the day (system Date)

    Hello,
    I need help in creating a customer exit for Calendar month without the user input. The logic is as follows:
    For the BEx variable created with customer exit option and no user input:
    If the day on the system date falls in between 1 to 14 take the calendar year/month value as previous month.
    If the day on the system date falls in between 15 through 31 then take the calendar year/month as current month.
    eg if report is run on March 24th2009 the calendar year/month variable should be calculated as 03/2009 (March 2009)
    if the report is run on March 1st2009 the calendar year/month should be calculated as 02/2009 (Feb 2009).
    The code should be effective when run in the first 15 days of Jan when the previous month would contain the previous year as well.
    Thank You
    Srishti

    Thanks Shanthi. I am trying to incorporate the logic when the query is run in beginning of Jan when the year should be the previous year.Following is the code.please let me know if it would work. Is there a way I can test it as well?
    CASE I_VNAM.
    WHEN 'ZCURCALMON'.
    IF i_step = 2.
    data: mm(2),
            dd(2),
            yy(4),
            FM(6).
    if sy-datum+4(2) EQ 1.
    sy-datum(4) = sy-datum(4) - 1.
    else.
    sy-datum(4) = sy-datum(4).
    endif.
    if sy-datum+6(2) LE 15.
      mm = sy-datum+4(2) - 1.
      concatenate sy-datum(4) mm into FM.
    else.
      concatenate sy-datum(4) sy-datum+4(2)  into FM.
    endif.
    l_s_range-low = FM.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    append l_s_range to e_t_range.
    Endif.
    ENDCASE.
    Thanks
    Srishti

  • Turnover reporting in FI

    Hello. I am using version 4.6C of SAP and have found the following turnover reports:
    Customers: S_ALR_87012186    RFDUML00
    Vendors:    S_ALR_87012093    RFKUML00
    The reports are fine except that they give me values including tax (VAT). My requirement is to have turnover data excluding tax. Can anyone tell me how to do this in FI?
    Thanks, Paul

    Thanks Chintan,
    Normally your answer would solve my problem.
    I had already thought of analysing the sales accounts by customer number (and purchase accounts by vendor number) but this field is not filled in BSEG.
    One thing I forgot to mention (my apologies) is that this is not an integrated system. My company is using Stratix for its logistics processes and there is an interface sending purchase and sales invoices to SAP FI.
    The Stratix interface does not populate this field. I have asked them if they can change the interface but they do not want to do that because we are only a few weeks away from going live.
    Thanks for your help anyway.

  • Error  while running custom BI report in R12.1.1

    Hi All,
    We are encountering below error while running custom BI report in R12.1.1...
    Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Enter Password:
    MSG-00001: started report
    REP-1401: '': Fatal PL/SQL error occurred.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-1401: '': Fatal PL/SQL error occurred.
    Report Builder: Release 10.1.2.3.0 - Production on Fri Jun 24 16:47:30 2011
    Please let us know how to fix this error.
    Thanks
    Praveen

    Hi Praveen,
    Seems the issue is with the rdf. Check whether all the parameters are passed correctly.
    REP-1401: '': Fatal PL/SQL error occurred.

  • Project mat. proc. report with monthly breakup and cumulative for year

    Hi All,
    can any body suggest a report for  "Project material procurement report  with monthly breakup and cumulative total for a financial year "
    Thanks in Advance.
    Regards,

    Hi Ahmed,
    Thank you very much for the response.
    I am seeking the std sreport which can give the details for the project material consumption report with monthly breakup with the cumulative month total to year.
    ex. jan 10 units , june -10 units , nov 10 units, total (year) =30
    regards,

  • Problem in making logic for customer balance report

    Hi,
    I am working on a customer balance report in which i am picking the data from BSAD and BSID tables. I am facing a problem that i am able to calculate the opening balance in it but not able to calculate  closing balance. I am comparing the data with tcode FBL5N for opening and closing  balances for a given date range.  Kindly help me out where i am getting wrong:-
    Here the link to the code :-
    http://docs.google.com/View?id=dfxswwff_11fdktr7ct
    Edited by: nav009 on Feb 6, 2010 9:30 AM

    Hi Nikhil,
    Thanks for you response but i had developed the report and  i am able to pick the correct data but i am facing the problem in displaying the NETAMT which is displaying the data using this formula :-
    1.) NETAMT = NETAMT +  W_TAB1-DR + W_TAB1-CR.
    so that the last value matches with the closing balance.
    When i am using this formula i am not able to display the correct data of deducting or addition of the opening balance in it but the value matches with closing balance .
    2.) NETAMT = NETAMT + W_OPBAL-OPBAL +  W_TAB1-DR + W_TAB1-CR.
    When i am using this formula it is showing the first value correctly but not the last one which will be displayed in the closing balance.
    I want to have desired output to display the first value to be displayed as it is showing in the (2) and last value to be displayed as  it is showing in (1) last value.
    How can i achieve this  functionality? i really want to know...
    Edited by: nav009 on Feb 10, 2010 6:29 AM

  • Upgrade from 11i to R12 - Custom Forms,Reports and Workflows

    Dear Community Friends,
    We are planning for upgrade from oracle apps 11.5.10.2 to R12.
    We have custom Forms,Form Libraries,Reports and Workflows.
    Kindly provide me for approach on how to migrate Custom form libraries,reports and Workflows.
    I beleive, this thread will exists as one shot point for custom forms,reports,workflow upgradation from 11i to r12 with detailed steps.
    I know that many links exists here in the forum for all the above objects mentioned,but still from all those i am able to get a clear picture for oracle forms but not for custom form libraries ,reports and workflows.
    Also,this post will provide a low level,practical picture of the steps for those who are in line with this.
    Links i have read for all these in our forum are:
    For Custom Forms,
    Re: Planning to upgrade from 11i to R12
    Re: Custom forms: After upgrading 11i to R12
    ofcourse,'n' number of links exists providing metalink notes also.
    Hussain,Helios and some others also has given many updates regd this.
    For custom workflow upgradation,
    Upgrade Workflow 11i to R12
    Workflow Upgrade
    Workflow Upgrade
    For reports,links mentioned the below metalink notes:
    Do Not Compile EBS R12 Reports Using rwconverter.sh or Reports Builder from IDS 10gR2 [ID 786794.1]
    Using the OracleAS 10.1.2 Forms and Reports Builders with Oracle Applications Release 12 [ID 444248.1]
    Per my understanding, after searching in many threads,i am here by summarising the practical low level steps for custom forms migration
    Please correct me,if i am wrong.
    1) Download the Forms(.fmb's) and all PLL's(all the PLL from resource folder in AU_TOP) into a Local Machine Folder
    2) Open the forms using Forms Developer 10G and connect to DB
    3) Compile by clicking compilein Forms Developer and then save it.
    4) Upload the Saved Forms(.fmb's) into the new R12 server(system) in the respective custom paths(paths similar to 11i Server)
    5) Compile all the forms using the command like below(example command is shown below or f60 gen commands or frmcmp.sh utility) in the respective custom form paths,
    this will generate the .fmx's.
    frmcmp_batch module=FORMNAME.fmb userid=apps/apps output_file=FORMNAME.fmx compile_all=yes
    Link for compiling forms: https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_afrLoop=359210362972527&type=DOCUMENT&id=1085928.1&displayIndex=3&_afrWindowMode=0&_adf.ctrl-state=c348xvwbg_98
    6) Open the form and check in R12 instance
    As per my understanding for custom form libraries,we can just copy paste the PLL's from 11i server to R12 server (Please correct me,if i am wrong)
    Can anyone please help me out in custom reports and custom workflows.Sorry that,i could not get a practical and clear picture for reports and also for workflow even after referring many threads and metalink notes mentioned.
    As for reports,some says that Developer Suite 10g can be used and .rdf can be used in R12.
    Some says that reports should be converted to XML published as reports does not exists in R12.
    So,i am not clear on this.
    Thanks,
    Ganesh
    [email protected]

    Per my understanding, after searching in many threads,i am here by summarising the practical low level steps for custom forms migration
    Please correct me,if i am wrong.
    1) Download the Forms(.fmb's) and all PLL's(all the PLL from resource folder in AU_TOP) into a Local Machine Folder
    2) Open the forms using Forms Developer 10G and connect to DB
    3) Compile by clicking compilein Forms Developer and then save it.
    4) Upload the Saved Forms(.fmb's) into the new R12 server(system) in the respective custom paths(paths similar to 11i Server)
    5) Compile all the forms using the command like below(example command is shown below or f60 gen commands or frmcmp.sh utility) in the respective custom form paths,
    this will generate the .fmx's.
    frmcmp_batch module=FORMNAME.fmb userid=apps/apps output_file=FORMNAME.fmx compile_all=yes
    Link for compiling forms: https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_afrLoop=359210362972527&type=DOCUMENT&id=1085928.1&displayIndex=3&_afrWindowMode=0&_adf.ctrl-state=c348xvwbg_98
    6) Open the form and check in R12 instance
    As per my understanding for custom form libraries,we can just copy paste the PLL's from 11i server to R12 server (Please correct me,if i am wrong)You are right, and the steps mentioned above should be sufficient.
    Can anyone please help me out in custom reports and custom workflows.Sorry that,i could not get a practical and clear picture for reports and also for workflow even after referring many threads and metalink notes mentioned.
    As for reports,some says that Developer Suite 10g can be used and .rdf can be used in R12.
    Some says that reports should be converted to XML published as reports does not exists in R12.
    So,i am not clear on this.You can still use RDF files in R12, and just follow the approach you mentioned above, and you do not have to migrate them to XML publisher (though it is recommended, but this can be done after the upgrade as an enhancement task).
    For custom workflow, you need also to do the same thing, open them using workflow builder and make sure they work in R12 (correct the code if required and save them again in R12 once they work properly).
    Thanks,
    Hussein

  • Report for monthly sales(sales office wise,sales group wise,plant wise)

    Please send the Report for monthly sales(sales office wise,sales group wise,plant wise)  with T.CODE.,

    Hi
    As per my knowledge there is no Standard Report in SAP based on sales office, sales group. and plant.
    You may create your own report using MC18,MC21 and MC24.... Otherwise ask your ABAPer's help...
    Muthu

  • How to create new Custom XML Report without using Form Builder

    Hi,
    What are the steps to create new Custom XML Report without using Report Builder ?
    Thanks and Regards,
    Abhi

    Hi,
    Steps we now follow
    1)Create Data Model in Reports Builder
    2)Create xml
    3)Insert xml in Publisher to build Fomat
    4)FTp rdf
    5)Create Data Definition and Template
    6)Create executable and Concurrent Program
    Is there any way we can build reports without use of Report Builder ? By writing PL SQL Package for Before Report and After Report etc ...
    Thanks and Regards,
    Abhijit Rode

  • Can I use Report Manager to distribute customized oracle reports?

    Hi,
    Can I use Report Manager to distribute customized oracle reports, other than FSG reports?
    If no, is there any function that can be used for distributing reports submitted from concurrent manager in r12.1.2?
    Thanks for any advice!
    HY

    Pl post details of OS and EBS versions.
    >
    Can I use Report Manager to distribute customized oracle reports, other than FSG reports?
    >
    I am not sure - pl ask your friendly Oracle salesperson if this functionality is included in your license.
    >
    If no, is there any function that can be used for distributing reports submitted from concurrent manager in r12.1.2?
    >
    Another option could be to use XML/BI Publisher - again, you will need to check if your license includes distributing custom reports.
    HTH
    Srini

Maybe you are looking for

  • Convert Word doc to PDF

    I need assistance on this issue: "Enter Description of Issue: We are trying to implement a solution to automatically convert Word documents generated by Siebel to PDF's in order to mail them to customers. I see from other support requests you advice

  • Can I log the operations done by the export utility?

    Hi, Is there a way to log the operations done by the export utility? i.e. if someone uses the export tool to export some tables, that info will be stored in a log table and can be viewed later? Thanks!

  • How to produce folio files with 5.5?

    After combing through these forums to understand the differences between 5.5 with and without DPS, I was under the impression that I could produce a folio file using 5.5, but without having to invest in DPS by saving the folio to an acrobat.com accou

  • How to add text to an existing document?

    On my business cards sent to me from my company, they omitted the last digit of my zip code.  I am wanting to correct the zip and then save the file so I can send it to my printer.  How do I edit the last digit to my card and then save it?

  • Ways to output 5.1 audio to an OPPO 105 from the Mac

    I'm downloading high resolution music which is sometimes in a 5.1 surround format.  Once the music is downloaded to the Mac (mid 2011) I want to send it to my OPPO blu ray machine because it has excellent DACs.  The OPPO essentially takes the digital