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

Similar Messages

  • Urgent Clarification seeking on R12 Account Analysis Report

    Hi Guys
    I have an urgent requirement regarding R12 Account Analysis Report.
    As per Metalink Doc ID : R12 GL Standard Reports Do Not Display Source And Line Item Data [ID 836847.1] ..Account Analysis report in R12 application does not display any value for Source/Line item column as data in gl_je_lines reference columns are not available.
    Do we have any replacement report or any other way to get this info in R12 since it was available in 11i. It is creating lot of problem for reconciling the AP/GL
    It will be good if you can reply ASAP.
    Thanks
    Ajeesh

    Hi
    I believe you can modify the standard account analysis template (RTF using the responsibility "XML Publisher") and include the field for source. This field is available as a standard XML tag in the report. This is a very little effort and can be done quite easily.
    Hope this helps. Let me know if you need any clarity in this respect.
    Vinit

  • Sales Analysis Report Problem

    Hi all.
    I would be glad if I could get a response for this question from someone at SAP. Though all responses are very welcome.
    There seems to be an error on the Sales Analysis report. The report runs fine with selection criteria for Customers and Sales Employees but when you run it with the Items Selection Criteria it returns the correct rows but wrong amounts in the Gross Profit and Gross Profit % columns which also means that the totals are also wrong.
    I have tried to follow the issue but everything seems to be OK.
    My last resolution is that there may be something wrong with the stored proc that B1 runs to produce this report.
    Please help! Urgent.

    Wilfred,
    You should create a message with SAP Support on this issue.
    Eddy

  • Po Quotation analysis report query required

    Hi,
    Please help me with the po quotation analysis report query.its urgent
    Navigation : PO form - > RFQ s and Quotations - > Quotation Analysis form
    Thanks in advance,
    Madhan

    Madhan87 wrote:
    Hi,
    Please help me with the po quotation analysis report query.its urgent
    Navigation : PO form - > RFQ s and Quotations - > Quotation Analysis form
    Thanks in advance,
    Madhan
    How To Find the VIEW or TABLE That Populates a Form So That a 'Custom Report' Can Be Created Using Same VIEW or TABLE (Doc ID 604772.1)
    Thanks,
    Hussein

  • Age wise analysis reports of customers and vendors balances

    Hellow Gurus,
    can any one advise me regarding, Is there any T.Codes for Agewise analysis reports of customer and vendors other than
    1.S_ALR_87012085.-Vendors
    2.S_ALR_87012176-Customers
    I have tried these two reports.
    Reports are very lengthy and gives information of each Customer/Vendor in 15 lines which is not required.
    Can you please advise me, how to get data in given  template as follows:
    Cust.Code|  Name |Total OS| 0 - 30 |  31 -60|60- 90| 91 - 180| above 180
    140333   |  xyz  | 3500   |    500 |        | 3000 |         | 
    140334   |  abc  | 9000   |   3000 |  1000  | 2000 |         | 3000
    Please treat it as urgent,
    I will give points
    Thanks&Regards,
    Kumar.

    Hi Kumar,
    For customer balances use t code f.23
    for vendor balances use t code f.42
    and select from period to to period.
    go to screen layout and select required fields
    regards
    prasad

  • 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

  • Sales Analysis Report - Items -- blank result

    Hi,
    I'm testing a setup and running the sales analysis report. It works for the Customer version but I get no results when running on Items.
    I'm on SBO 2007A SP01 PL07. There are open and closed invoices for inventory items; no credit memos have been posted. All Item type invoices.
    When I run by Customer, I get the correct data - open and closed invoices for that customer.
    When I run by Items, I get no results. The date range is the same for both reports.
    When I run the purchase analysis on Items, I get data for the same items I am trying to see in the sales analysis.
    Any ideas what could be causing this?
    Thank you,
    Heather

    HI Gordon,
    I left the default settings: 
    - Annual Report, Invoices, Individual Display, No Totals
    - Posting Date:  whole fiscal year
    - Main selection:  left blank/default (group = all, no properties)
    I have double/triple/quadruple-check even the Secondary SElection to make sure there's nothing there.
    I have also run it on Due Date instead of Posting Date, still no results (if run on Items).
    As I mentioned, the selection criteria is what I want but for some reason that one version, Items, does not work. The other 2 tabs work with the same selection.
    Heather

  • Issue while opening the web analysis reports

    Hi,
    One of our user is not able to open a web analysis report with an error messages saying
    "Java.Lang.Exception: Unexpected HTTP status code of 500 received from server"
    "Document does not exist or no authorization to open the document"
    Other users with the same level of access are able to open the report fine and also the same user is able to access the report fine with a test id from his machine.
    What could be wrong? Any suggestions please.
    The only thing I see here, something wrong with userd ID or password.
    Thanks
    Prasad

    Hi,
    I had also faced this problem earlier. I was using HFM as data source for WA reports. After searching I found that there was some change at HFM level. Some dimensions/members had been deleted or added in HFM. And I was using those missing members in WA Grid.
    I had to recreate my reports again as I didn't get any other way to deal with this problem.
    Please shared any other alternative option, if you found while working on this issue.
    Thanks & Regards,
    Mohit Jain

  • Issue in Due date analysis report S_ALR_87012168

    Hi Friends,
    We have a strange issue regarding due date analysis report (S_ALR_87012168)...
    When i execute this report it displays different amounts in "Not Due" column under 0-30 bucket. In 0-30 bucket, under not due column it shows 10,000 and under total open items column it shows 15,000. How it is possible?
    Thanks to everyone
    Anifi

    Hi,
    This has been closed due to Local and Document currency prob...
    Thanks

  • Unable to open web analysis reports through workspace

    Hi,
    I am connecting web analysis with MSSQL server 2000 and generating reports. I am using essbase 9.3.1 version.
    But my problem now is that I can just open these reports from web analysis studio and cannot open them from workspace. In workspace, if I right click on the report and open it from web analysis studio it does open. But it does not open by double clicking the report in workspace. It just shows a blank report on just parts of the report.
    The issue is only there for the reports that are getting data from relational db (MSSQL server 2000). The other reports that are using the cube data are fine and opening from everywhere.
    Are there any other configuration settings involved in order to open a web analysis report(that uses relational db) from workspace?
    Thanks in advance,
    John

    Hi Atul,
    Try using the in built config checker:
    http://localhost:16000/WebAnalysis/config
    This has several tests you can perform to see what's running.

  • Stage Analysis Report Issue

    Hi,
    I have run a stage analysis report but it says no data inspite of open opportunities being present in the system. Could anyone kindly let me know what could be the issue?
    Regards
    Sharat

    Hi Sharat,
    Welcome you to the forum. Please close your first thread.
    Regarding your Stage Analysis Report Issue, what selection has been made? This report show closed opportunity only.
    Thanks,
    Gordon

  • Vendor master analysis report

    hi,
    what is vendor master analysis report? and how to create it?

    Hi
    This link may be useful
    http://help.sap.com/saphelp_47x200/helpdata/en/8d/b97fd2414511d188fc0000e8322f96/frameset.htm

  • 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 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

  • With reference to contract Purchase Order Analysis report.

    Hi,
    I need SAP Standard " With reference to contract Purchase Order Analysis report"
    Regards,
    Priya.

    Hi,
    there is no standard report to get the PO list wrf to contracts,
    but you can get through SE16 from the table EKPO, where you have to pass the contract numbers ( get through ME3L,ME3M or ME3C ) in the field KONNR,
    lakshmi reddy

Maybe you are looking for

  • Safari on iOS 7.1.2

    Looking for a solution for Safari on iOS 7.1.2. Safari crashes every time I open it. I have cleared history, data and cookies all to no avail. Also soft rebooted and that didn't help.

  • Sony Vaio

    I have a Sony Vaio and my Wireless Drive has been removed from my laptop? I have no idea how it happened but I also can't connect to the internet using the ethernet cords.  Ive gone into Device Manager and it has disappeared.  Help please

  • Transfer stock from Unrestricted to blocked

    hi gurus, Is there movement type that I can use to transfer material from unrestricted to block? thanks

  • Create shortcut and run BI Frontend tools without Backend installation

    I have new machine, I want to install BI 7.0 frontend only. Is it possible to run BI frontend (Bex Analyser, WAD, Web Analyser) without installing Backend. Using start menu, I am trying to create shortcut for BI front end tools on the desktop. which

  • Pix 501 and H323

    Thank you in advanced. Is video teleconference supported on the PIX 501? I am trying to configure a static router from the inside to the outside using static routers and I can not do it. Please can some one send me config examples if Pix 501 supports