Sale/Purchase Analysis Report

Hi All,
I want to create purchase analysis and sale analysis in crystal report.
Does anyone have a standard format for these?  If yes, please help me out?

Hi Sadhan,
wht kind of report u need ?
i have sme format regarding this :-
SELECT T0.[DocNum], T0.[DocDate], T0.NumAtCard As 'Bill No.', T0.[CardName], T1.[Dscription], T1.[Quantity], T1.Price As 'Rate', T1.[LineTotal] As 'Value', T0.[DocTotal] As 'Total Value', (ISNULL((SELECT SUM(T2.QUANTITY) FROM rpc1 T2 WHERE T2.DocEntry=T0.DocEntry),0)) RetQTY, (ISNULL((SELECT SUM(T2.LineTotal) FROM RPC1 T2 WHERE T2.DocEntry=T0.DocEntry),0)) RetValue, (isnull((SELECT SUM((case when upper(t4.STACode) like 'BED%' then T4.TaxSum else 0 end))
      FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) ExciseDuty,
     (isnull((SELECT SUM((case when upper(t4.STACode) like 'eCess%' then T4.TaxSum else 0 end))
      FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) ECess,
     (isnull((SELECT SUM((case when upper(t4.STACode) like 'hes%' then T4.TaxSum else 0 end))
      FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) HEdCess, (isnull((SELECT SUM((case when upper(t4.STACode) like 'VAT%' and t4.TaxRate=12.5 then T4.TaxSum else 0 end))
FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'VAT12.5',
(isnull((SELECT SUM((case when upper(t4.STACode) like 'VAT%' and t4.TaxRate=4 then T4.TaxSum else 0 end))
FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0))VAT4, (isnull((SELECT SUM((case when upper(t4.STACode) like 'VAT%' and t4.TaxRate=2 then T4.TaxSum else 0 end))
FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0))VAT2, (isnull((SELECT SUM((case when upper(t4.STACode) like 'CST%' and t4.TaxRate=2 then T4.TaxSum else 0 end))
FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'CST2',
(isnull((SELECT SUM((case when upper(t4.STACode) like 'CST%' and t4.TaxRate=4 then T4.TaxSum else 0 end))
FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'CST4', T2.TransCat As 'Form No.'  FROM OPCH T0  INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN PCH12 T2 ON T0.DocEntry = T2.DocEntry WHERE (T0.[DocDate]>='[%0]' and T0.[DocDate]<='[%1]')
may this help u if yes then send ur mail id i will send u sme more !!!!
Thanks,
JRAJPUT

Similar Messages

  • Sales and Purchase Analysis reports by Item

    The current functionality of these reports is more like an open items list rather than an analysis report.
    If you Run a Purchase Analysis report by Item with a secondary selection of Supplier, and choose GRPO - the scenario is to find out how many of which products you have received in the date range from a specific supplier. This type on data is useful to use for negotiations on pricing etc.
    Currently, the report will only display values for GRPO that have not been drawn to AP Invoice. This is supposedly system functionality, but, the report is called analysis, so should provide data for that purpose?

    Hi,
    You may double click the column header to change the sort.
    Thanks,
    Gordon

  • How can I see Foreign Currency FC balance in Purchase Analysis Report??

    Dear Experts,
    Right now in the Purchase Analysis Report, I can only see Local Currency and System Currency balances. How can I see Foreign Currency balances??
    Much Thanks!
    Warmest Regards,
    Chinho

    Hi!
    I belive its not there in Purchase\Sales Analysis Reports. You need to build a Customized report for that.

  • SBO 2005 A PL 31 Annual Purchase analysis report missing result

    My client runs on SBO2005A ( 6.80.319) SP 01 PL31. When running standard Annual Purchase Analysis report, all data is missing, any ideas which patch could resolve this. Can successfully run Annual Sales Analysis report

    Hi,
    Welcome you post on the forum.
    2005 version had out of support for such a long time. They need to upgrade to new version to fight the problem. Even 2007 version will be out of main stream support soon. Better ask them to 8.8 directly.
    Thanks,
    Gordon

  • Purchase Analysis Report not shown.

    Hi,
        Iam using SAP B1-2005B,PL-40.but it do not show Purchase Analysis report(System report) so tell me what are the possible reasons for not showing report.please help me out.
    Regards
    Sudhir.
    Edited by: Philip Eller on Jun 27, 2008 9:49 AM

    Suda,
           I had already done Form settings for Purchasing A/P>Purchase Report.still the purchase analysis report not showing in Supplier- A/P Invoice,Purchase order,GRPO of any period and the fact is it shows reports of Purchase Analysis>Items or Sales empolyees.so please help me.
    Regards
    Sudhir Pawar.

  • Purchase Analysis Report

    Hi Experts
    When I Run Purchase analysis report in SAP Business One 8.8 under individual vendor view the Open A/P Invoice (not done Payment) sowing 0.00 in the Applied amount and the purchase amount is showing negative value bacuse it is a credit memo - which is correct.
    But when I run the same report in my customer site who are running SAP B1 2005 PL 43, they are not seeing 0.00 in the applied amount instead they are seeing the same negative amount which is displayed in the purchase amount.which is not correct.
    Please assist me
    Thanks and regards,
    Vinodh
    Edited by: Paul Finneran on Oct 15, 2009 12:36 PM

    Hi Vinodh,
    You may check these threads to see if they have anything related to your question:
    Re: Purchase Analysis Report
    Purchase Analysis Report not shown.
    cant see Purchase analysis report of standard SAP B1
    Thanks,
    Gordon

  • Zero Quantity in Purchase Analysis Report

    I have create Item AP invoice on today date,  raise AP credit note for that full AP invoice on today date. Then run  purchase analysis report. (Quantity column will show zero) How can I get rid of these zero quantities.

    hi,
    Check in the Inventory tab of item master data for those items.  What is the value for in stock and available.
    If you have done a/p credit memo for those items then by default the system will show zero quantity as the system considers it as the items which are returned
    Hope its helpful
      Regards
    Darshan Desai

  • Strange figures in Purchase Analysis report

    Hello,
    I am running a purchase analysis report and am a little confused by the results. I am running the reports using goods receipts. What I am finding is that there are a vast amount of zero quantity items shown in the results. When I drill down into the good receipt I can see that there are quantities there but they are not shown in the results. The quantities that are shown are where the goods receipt is open. Where the quantities are zero the goods receipts are closed.
    Is this normal?
    Regards,
    Juan

    Hi Juan,
    This is system behavior. When you select the report to be run on basis on GRPO, it wud display all the GRPO's but when you see a qty as zero in the report, it means that the target document is created for that GRPO. As suggested by Ms. Julie, you would have to make query report to get desired data.
    Thanks,
    Joseph

  • Cant see Purchase analysis report of standard SAP B1

    Hi friends,
    I am using SAP B1 2005 B , PL 36 facing Prob. that-
    ->though i make AP invoices , but cant able to see its report in Purchase analysis
    , it does not show any data .just empty report comes without data.
    But if i see Sales Sales Analysis report it shows perfect data in report.
    pls. guide me.
    regards,
    mahesh

    Hi Mahesh
    Sridharan is not entirely right, the purchase analysis will include all valid A/P Invoices, even if they are paid. The only ones excluded are canceled documents, and since an A/P Invoice cannot be canceled, it is not a problem. If it is credited by a credit note in full, then it will not be displayed as the nett effect is zero. The purchase analysis will look at A/P Invoice less A/P Credit Notes, or GRPO less Returns, depending on what you select.
    My suggestion is that you check all the options like from date and to date are correctly specified. Make sure you don't have properties selected that are not in use, etc.
    If you still can't get data, please give us the exact options you are selecting so we can test and help you resolve. We need to know if it is Annual/Quarterly/Monthly, AP Invoices/Purchase Order/GRPO, Individual/Group, Posting Date/Due Date/Document Date, etc.
    Kind regards
    Peter Juby

  • Centralised Report for Sales/Purchase

    Hi guys,
    One of my client needs a Centralised report for Sales & Purchase for a particular period .
    Like we are mainting multiple taxcodes  like
    BED,eCess,HeCEss,
    VAT 4,VAT 2,VAT12.5,
    VAT10.3,TAXEXEMPTED,ETC...
    So every month they need to know total sales and purchase value in a single report to be displayed respective of each tax code
    lie
    Taxcode 1 = tax Value1,total value
    Taxcode 2 = tax value 2,total value
    Total Sales value = Sum of all tax values, sum of total values
    Total Purchase value = Sum of all tax values, sum of total values
    And  needs Item Wise Sales For Each customer.
    I tried in system defined Sales and Purchase analysis report but our client needs the above type of report..
    Pls give us some solution for this..
    Regards,
    Vams

    Hi VamSam......
    Try the below query for purchase details alongwith tax amt.....
    SELECT T0.[DocNum], T0.[DocDate], T0.NumAtCard As 'Bill No.', T0.[CardName], T1.[Dscription], T1.[Quantity], T1.Price As 'Rate', T1.[LineTotal] As 'Value', T0.[DocTotal] As 'Total Value', (ISNULL((SELECT SUM(T2.QUANTITY) FROM rpc1 T2 WHERE T2.DocEntry=T0.DocEntry),0)) RetQTY, (ISNULL((SELECT SUM(T2.LineTotal) FROM RPC1 T2 WHERE T2.DocEntry=T0.DocEntry),0)) RetValue, (isnull((SELECT SUM((case when upper(t4.STACode) like 'BED%' then T4.TaxSum else 0 end))
          FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) ExciseDuty,
         (isnull((SELECT SUM((case when upper(t4.STACode) like 'eCess%' then T4.TaxSum else 0 end))
          FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) ECess,
         (isnull((SELECT SUM((case when upper(t4.STACode) like 'hes%' then T4.TaxSum else 0 end))
          FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) HEdCess, (isnull((SELECT SUM((case when upper(t4.STACode) like 'VAT%' and t4.TaxRate=12.5 then T4.TaxSum else 0 end))
    FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'VAT12.5',
    (isnull((SELECT SUM((case when upper(t4.STACode) like 'VAT%' and t4.TaxRate=4 then T4.TaxSum else 0 end))
    FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0))VAT4, (isnull((SELECT SUM((case when upper(t4.STACode) like 'VAT%' and t4.TaxRate=2 then T4.TaxSum else 0 end))
    FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0))VAT2, (isnull((SELECT SUM((case when upper(t4.STACode) like 'CST%' and t4.TaxRate=2 then T4.TaxSum else 0 end))
    FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'CST2',
    (isnull((SELECT SUM((case when upper(t4.STACode) like 'CST%' and t4.TaxRate=4 then T4.TaxSum else 0 end))
    FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'CST4', T2.TransCat As 'Form No.'  FROM OPCH T0  INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN PCH12 T2 ON T0.DocEntry = T2.DocEntry WHERE (T0.[DocDate]>='[%0]' and T0.[DocDate]<='[%1]')
    Regards,
    Rahul

  • Sales Analysis Report service warehouse wise

    Dear Experts,
    I've configured 4 service warehouses to an item  in SAP B1 8.8 PL:16.  And now I want to see sales analysis report of that particular item against each service warehouse. But from the Sales Analysis or purchase analysis report I can't able to see service warehouse wise sales quantity & amount.
    N.B.-Those items are created as Sales & Expense item only, no inventory.
    Plz help.
    Subrata

    Hi Subrata,
    in this case you need a customized report trough Query or through Crystal Report.
    regards,
    Fidel

  • Sales and Purchase analysis, sort by date default

    Hello,
    Is there a way to default the sales and purchase analysis reports to show the most recent orders first vs. the oldest orders first in the list?  I am refering to the reports that appear when you are in Item Master Data, and then click on the graphs in the Sales Data and Purchasing data tabs.
    Thank you

    Hi,
    You may double click the column header to change the sort.
    Thanks,
    Gordon

  • Purchase Analysis Excluding Freight Charges

    Dear Expert,
    Our purchase analysis report by ap invoice is exclusive freight charges, is it the norm?  Is there anyway to include freight in the purchase analysis so that we can reconcile it against our purchase report?
    Regards,
    Ng

    Hi
    In purchase analysis report you got Accessable value only.  I think there is no way to add frieght charges in that report.
    With Regards
    Balaji Sampath

  • Analysis report  urgent

    can any get me code
    interactive sales performance analysis report, comparing performance of sales in a sales organization over a user specified date range.

    hi,
    check weather upto what extent it is useful for you,
    Shipping Location - Plant VBAP-WERKS
    Order Number VBAK-VBELN
    Order Amount VBAP-NETWR
    Order Base quantity VBEP-LMENG
    Scheduled Ship Date VBEP-EDATU
    Customer Name KNA1-NAME1
    Customer City KNA1-ORT01
    Customer State KNA1-REGIO
    Customer Country KNA1-LAND1
    Material VBAP-MATNR
    Material Description VBAP-ARKTX
    REPORT ZDOR1 .
    Tables declaration ****************************
    tables : vbak,
    vbap,
    vbep,
    vbfa,
    kna1,
    vbpa.
    variable Declaration ********************
    data : int type f,
    int1 type f,
    s type f value '0.574'.
    data : x type i,
    y type i.
    Internal table declaration ***************
    data : begin of itab occurs 0,
    vbeln like vbak-vbeln,
    kunnr like vbak-kunnr,
    werks like vbap-werks,
    netwr like vbap-netwr,
    matnr like vbap-matnr,
    arktx like vbap-arktx,
    lmeng like vbep-lmeng,
    edatu like vbep-edatu,
    name1 like kna1-name1,
    ort01 like kna1-ort01,
    regio like kna1-regio,
    land1 like kna1-land1,
    erdat like vbfa-erdat,
    avg type f,
    end of itab.
    Selection Screen **************************
    selection-screen : begin of block blk1 with frame title text-001.
    select-options :
    s_vbeln for vbak-vbeln,
    s_vkorg for vbak-vkorg,
    s_kunnr for vbak-kunnr,
    s_werks for vbap-werks,
    s_auart for vbak-auart.
    parameters :
    fdate like sy-datum obligatory,
    tdate like sy-datum default sy-datum obligatory.
    selection-screen : end of block blk1.
    selection-screen : begin of block blk2 with frame no intervals.
    parameters : p_excel as checkbox,
    p_title as checkbox.
    selection-screen : end of block blk2.
    Event Processing **********************
    initialization.
    fdate = tdate - 365.
    s_vkorg-sign = 'I'.
    s_vkorg-option = 'EQ'.
    s_vkorg-low = '2022'.
    append s_vkorg.
    s_vkorg-low = '2024'.
    append s_vkorg.
    s_vkorg-low = '2114'.y
    append s_vkorg.
    s_auart-sign = 'I'.
    s_auart-option = 'EQ'.
    s_auart-low = 'OR'.
    append s_auart.
    s_auart-low = 'TA'.
    append s_auart.
    s_auart-low = 'ZXD'.
    append s_auart.
    s_auart-low = 'KB'.
    append s_auart.
    s_auart-low = 'KE'.
    append s_auart.
    disply the report header *************************
    top-of-page.
    if p_title = ' '.
    write : /001 ' report:', sy-repid,
    115 ' Date :', sy-datum.
    write : /001 ' System :',sy-sysid(3),sy-mandt,
    115 'page :',sy-pagno.
    skip.
    write :/ 'From date :', fdate, 'To Date :', tdate.
    Uline.
    skip.
    endif.
    if p_excel = ' '.
    write : /1 text-002,
    10 text-003,
    20 text-004,
    40 text-005,
    60 text-006,
    80 text-007,
    115 text-008,
    130 text-009,
    140 text-010,
    145 text-011,
    160 text-012,
    200 text-013,
    220 text-014.
    Uline.
    else.
    write : /1 text-002,
    10 text-003,
    20 text-004,
    40 text-005,
    60 text-006,
    80 text-007,
    115 text-008,
    130 text-009,
    140 text-010,
    145 text-011,
    160 text-012,
    200 text-013,
    220 text-014.
    Uline.
    endif.
    Start-of-selection **********************
    start-of-selection.
    if p_excel = ' '.
    new-page line-size 132 line-count 65.
    else.
    new-page line-size 260 line-count 999999.
    endif.
    perform get_sales_data.
    perform get_output_data.
    get_sales_data *************************
    form get_sales_data.
    select vbak~vbeln
    vbak~kunnr
    vbap~werks
    vbap~netwr
    vbap~matnr
    vbap~arktx
    into table itab
    from vbak as vbak inner join vbap as vbap
    on vbak~vbeln = vbap~vbeln
    where vbak~vbeln in s_vbeln
    and vbak~vkorg in s_vkorg
    and vbak~kunnr in s_kunnr
    and vbak~auart in s_auart
    and vbap~werks in s_werks
    and vbak~erdat between fdate and tdate.
    loop at itab.
    select single edatu lmeng from vbep into (itab-edatu,itab-lmeng)
    where vbeln = itab-vbeln.
    select single name1 ort01 regio land1 from kna1 into
    (itab-name1,itab-ort01,itab-regio,itab-land1)
    where kunnr = itab-kunnr.
    select single erdat from vbfa into itab-erdat
    where vbeln = itab-vbeln
    and vbtyp_n = 'R'
    and vbtyp_v = 'C'.
    modify itab.
    endloop.
    loop at itab.
    move itab-netwr to x.
    move itab-lmeng to y.
    if ( y 0 ).
    int = x / y.
    int1 = int * s.
    move int1 to itab-avg.
    else.
    move 0 to itab-avg.
    endif.
    move x to itab-netwr.
    move y to itab-lmeng.
    modify itab.
    endloop.
    endform. "get_sales_data
    get_output_data ***********************
    form get_output_data.
    loop at itab.
    if P_excel = ''.
    write : /(4) itab-werks under text-002,
    itab-vbeln under text-003,
    itab-netwr under text-004,
    itab-lmeng under text-005,
    itab-edatu under text-006,
    itab-name1 under text-007,
    itab-ort01 under text-008,
    itab-regio under text-009,
    itab-land1 under text-010,
    itab-arktx under text-011,
    itab-matnr under text-012,
    itab-avg under text-013,
    itab-erdat under text-014.
    else.
    write : / itab-werks under text-002,
    itab-vbeln under text-003,
    itab-netwr under text-004,
    itab-lmeng under text-005,
    itab-edatu under text-006,
    itab-name1 under text-007,
    itab-ort01 under text-008,
    itab-regio under text-009,
    itab-land1 under text-010,
    itab-arktx under text-011,
    itab-matnr under text-012,
    itab-avg under text-013,
    itab-erdat under text-014.
    endif.
    at end of vbeln.
    sum.
    write : / itab-werks under text-002,
    itab-netwr under text-004,
    itab-lmeng under text-005.
    skip.
    endat.
    endloop.
    endform. "get_output_data
    Regards

  • KE30-COPA Group Sales Margin Analysis

    HI All,
    We have an issue with COPA Group Sales Margin analysis report, (KE30) .We are not able to see the journal entries for revenue from GL,the journals created thru FB50 and these entries are showing up in KE24-Dispaly actual line item report,That means PA documents are being created as well.Do we need to do any additional assignment while crearting journal entry.Currently we have assigned profit center in PA segment field.Thanks
    Regards
    Shaun

    Cant we repost journals with assignment of Sales org, Dist.Division to make the data available in KE30 report.That would be good option .I am not sure about KEDU,how to run it or rebuild it.Thanks for your reply.
    Regards\
    Shaun

Maybe you are looking for

  • Before or After Triggers

    Hi, I have a doubt on functioning of Before or After Triggers. Here is an example of it: I created a trigger on EMP table create or replace trigger tri11 before insert or update or delete on emp for each row begin if to_char(sysdate,'dy')='fri' then

  • Java process server 0 is stopped

    Hi exports, After restart java derver process is not commoning up. Please find logs form /DVEBMGS00/j2ee/cluster/server0/log #1.#00187178B238001B0000006900001E5600048B6FFCE767FB#1279213007497#com.sap.security.core.persistence##com.sap.security.core.p

  • Says my address is wrong on my credit card and it is not!!!!!

    SAYS MY ADDRESS IS WRONG ON MY CREDIT CARD, SO IT WONT ACCEPT IT!

  • In Cl_exithandler does not have exit_name parameter

    Hello Expart ,                      I am working with 4.7 system in which For BAdi ,the METHOD 'GET_INTANCE' of class 'CL_EXITHANDLER' does not have parameter 'EXIT_NAME ''. instead it have to parameter call "ACT_IMP_EXISTING" .When i pass the exit n

  • Notifications in ML is a Total Mess !

    After what seems an age on the phone with 1stnd and 2nd level Apple support and hours of testing, I'm getting close to demanding a refund and a return to LION. Notifications was one of the big selling points in ML (and for me), hoping to unify all my