Report for sales order

I need to create a report for all sales order that have line items with a Material Tax Class '2' - One time exemption. Tax will require a report that identifies/displays all line items with Tax Classification = '2'.
Report layout specifics:
Bill-To
Ship-To
Order No.
Tax classification
Internal Item Notice Text.
For bill-to, ship-to, order no are all fields of structure KOMK, but I need to know which table it comes from so I retrieve the data by a select statement to display this. Can anyone guide me on this ? Thanks in advance !!!
Nimesh

I dont know where that tab is either. I will have to find out and let you know. For now I just left it out and I have written the following code - please let me know if this looks right according to the requirement.
REPORT ZMAT_TAX_REPORT .
TABLES: VBAK, VBPA, VBAP, MLAN, KOMK.
DATA: begin of jtab occurs 0,
        kunnr like vbak-kunnr,
        vbeln like vbak-vbeln,
        parvw like vbpa-parvw,
      end of jtab,
      wa_vbak like vbak occurs 0 with header line,
      wa_vbpa like vbpa occurs 0 with header line,
      wa_vbap like vbap occurs 0 with header line.
PARAMETERS: TAXM1 like MLAN-TAXM1 default '2'.
select single taxm1 from vbap into vbap-taxm1 where TAXM1 = MLAN-TAXM1.
if sy-subrc eq 0.
  if vbap-taxm1 = '2'.
    select single * from vbak into wa_vbak
                    where kunnr = komk-kunre.
    select single * from vbpa into wa_vbpa
                    where parvw = komk-kunwe.
    select single * from vbap into wa_vbap
                    where taxm1 = mlan-taxm1.
    move wa_vbak-kunnr to jtab-kunnr.
    move wa_vbak-vbeln to jtab-vbeln.
    move wa_vbpa-parvw to jtab-parvw.
  endif.
  if sy-subrc eq 0.
    if not jtab[] is initial.
      write:/(95) sy-uline.
      format color col_heading intensified on.
      write:/1 sy-vline,
             2 'Bill-To',
             21 sy-vline,
             3 'Ship-To',
             21 sy-vline,
             4 'Order No.',
             21 sy-vline.
      write:/(95) sy-uline.
      loop at jtab.
        write:/1 sy-vline,
               2 jtab-kunnr,
               21 sy-vline,
               3 jtab-parvw,
               21 sy-vline,
               4  jtab-vbeln,
               21 sy-vline,
               95 sy-vline.
      endloop.
    endif.
  endif.
endif.

Similar Messages

  • How to create a daily report for sales order

    hi
    how to create a daily report for sales order. what fields it must consists of. what are the tables it need?

    Hi
    You have to use the sales order tables VBAK,VBAP and VBEP
    So keep date field on selection screen
    and treat this date as Order creation data audat field in VBAK.
    based on this fetch the data from VBAK and VBAP  with the following fields like
    VBELN, KUNNR,NETWR,POSNR, MATNR,ARKTX,KWMENG,WAERS  etc and display in the report
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Report for Sales orders with the consumed credit limit value

    Dear Gurus,
    In my company, the credit check is at sales order level. We want a report which shows up the credit value consumed from the credit master by Sales order.
    Going into the details, Say Credit limt is setup for a customer at Credit master for 10000 $.
    I want a report showing Sales order 59235 has consumed 500 $, Sales order 59277 has consumed 1500 $, Sales order 59333 has consumed 2500 $.
    Is their a report in standard SAP for the above functionality. If not, any ideas of how to achieve it?
    Thank you for your responses.
    Regards,

    Hi,
    Try the following transaction codes
    S_ALR_87012218
    FDK43
    F.31
    But if you want to a report like what you explained in thread i think in standard not available we need to develop a customized one.
    Regards

  • Report for Sales Order Change History   CDPOS and CDHDR

    How to take a report of the data for the Sales Order Change history for a particular period of time. It is required to take a report of all the Sales Orders for which the basic price has been changed. Please let me know the procedure. I could not get the data from the table CDPOS and CDHDR
    Helpful answer would be rewarded.
    Regards
    Praveen

    Dear Praveen Kumar
    Have you tried with VBAP where sale order details at item level would be stored.
    Moreover, to my knowledge, there won't be any changes as for as pricing is concerned at sale order level but there is at billing level.  Normally, any price increase / decrease would reflect in billing.  So why dont you to table join through SQVI VBAP (for sale order details) and VBRP (for billing details) so that you can compare the selling price in sale order with billing. 
    Thanks
    G. Lakshmipathi

  • Interactive report for sales order

    how to create an Interactive Report which displays all the sales orders for one particular customer, the materials ordered, quantity ordered, goods issue date of that particular order and contact information about that particular customer.

    http://www.sap-img.com/abap/program-for-sales-order-by-customer-date-sales.htm
    https://forums.sdn.sap.com/click.jspa?searchID=2651341&messageID=1671145.
    Have a look at the demo programs,
    DEMO_LIST_INTERACTIVE_1
    DEMO_LIST_INTERACTIVE_2
    DEMO_LIST_INTERACTIVE_3
    DEMO_LIST_INTERACTIVE_4
    DEMO_LIST_HIDE
    Please give me reward points.
    Regards,
    Murali Poli

  • ECC report for sales order status from order entry to Invoice (OTC rpt)

    Dear All.
    Looking to see if there's a standard report or transaction that we can use to review sales order line item status.
    VA05 provides a good view from sales, and VL06O provides a good view from LE, and VF05 provides a good view from billing.
    But there is there something that would list sales orders and show related quantity, open, delivered, billed all in one report?
    Many thanks!

    Thank you Shiva.
    That's what we were thinking as well.  Just wanted to make sure we didn't miss something in case SAP provided a template or customizable program for this.
    Thanks

  • Purchase items report for sales orders - very important

    Hi Folks,
    Could you please guide me on how to create a report of "items purchased" for a particular "sales order". if i am able to include various fields of items purchased, like....quantity, item description, vendor name, item price, etc., it will be very useful.
    This report is required for a client, who assembles machines in a "make to order" scenario, and most of the BOM child items are "purchase items".

    Hello Krishna,
    Few things to note:
    Is the PO created from the SO.  Is YES, then you could use the base document ref at the POR1 table.
    OR
    Are the BOM components defined with a default vendor in the Item Master and if YES are the components always purchased from the same vendor.
    I am trying to see how to establish the relationship of the items between the PO and SO.
    Please give me the details and I could guide you further
    Thanks
    Suda

  • Material Availability Report for Sales Order

    Hi,
    Is there any report which gives me for a sale order line item which is either pending or not yet picked in delivery, but for which stock is not available. If such report is not available then what to we do for getting the same?
    Regards,
    Ajit

    Hi ajit
    In VA05 itself you can see Ordered  qty, Open order qty and confirmed quantity , Delivered qty , Delivered  date  .Even  Laxmipathi also said same thing and  i also agree with his words.
    Regards
    Srinath

  • Difference between MMBE & MBBS report for sales order stock E

    Hi,
    What is the difference between MMBE & MBBE report bcoz we are getting difference in sales order stock in both reports.
    Thanks in advance.
    Regards
    Basavraj Patil

    Hi,
    MBBS will give the STOCK OVERVIEW  for specific sales order and specific Project
    MMBE will give the stock at PLANT, STORAGE LOCATION, & At Special stock indicator level.
    The sales order stocks will be same at both, You have to count the stock of sales order at all the Plants and Storage location level inorder to get the same stock of MBBS at the sales order level
    Hope it is clear,
    santosh

  • Standard report for sales order

    HI all
    I would like to know whether there is any standard report for sending confiramtion mail to customers once the shipments are planned.
    Or atleast to track the status of sales order (to find out whether the shipment is planned) so that i can club the mail program with this.

    Hi,
    Check the following links:
    http://sap-img.com/abap/make-e-mail-sender-of-po-the-po-creators-name.htm
    http://sap-img.com/abap/sending-mail-when-the-purchase-order-is-released.htm
    Regards,
    Bhaskar

  • Report for Sales Order changes

    We are searching for a report which can list the changes of sales order items for a selected group of materials.
    Thanks for the help.

    Please search the forum before posting.  This has been discussed many times and being an old member, you should be aware of forum rules.  Please try to adhere to forum rules.  Answer to your query is execute AUT10.
    G. Lakshmipathi

  • Standard reports for Sale Order costing

    Hi all
    Can anybody Please tell sale Order costing reports.
    Thanks
    Sandeep

    for doing mass sales order costing use CK55
    or for individually in VA02 -->Extra --> costing.
    & for report use KKAC.
    rgds
    Arpit.
    Edited by: Arpit Shah on Jan 1, 2008 2:34 PM

  • Report for sales orders with abnormal discounts

    Hi
    We have a discount condition type say ZDIS with 10% which is not changeable manually in sales order..But incase if the user has changed the condition master to 12% and created the sales order with 12%disc...Hence i need a report, the list of sales orders with the abnormal discounts..(the sales orders with the discount value more or less than 10%)..
    How do i get this report..Kindly provide me the table names&logic ...
    Reg
    JJ

    We have a discount condition type say ZDIS with 10% which is not changeable manually in sales order..But incase if the user has changed the condition master to 12% and created the sales order with 12%disc...Hence i need a report, the list of sales orders with the abnormal discounts..(the sales orders with the discount value more or less than 10%)..
    How do i get this report..Kindly provide me the table names&logic ...
    Select KNUMH where KONP-KSCHL EQ ZDIS ( Condition record number)
    Select KONV-KNUMV   Where KONV-KNUMH EQ KONP-KNUMH
    Select VBAK-KNUMV where VBAK-KNUMV EQ KONV-KNUMV
    Then with the help of ABAPER hard code the condition amount (KBERT>10%)
    Regards
    Rohit

  • SAP report for Sales Orders

    Hi
    I require a report to show me the following.
    Customer order Number, date order was entered, date of the required delivery  and a Purchase order No
    thanks all

    Hi,
    Try VA05. Further you can goto SAP1 transaction and choose suitable report.
    Regards

  • Query for Sales Order Analysis

    Dear Experts
    I have written a Query for Sales Order Analysis and would like to have help on this.
    The query is used for generating daily report for Sales Order on number of documents (Sales Order), total amount of sales orders and total GP of Sales Order. The query is written as below:
    SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
    FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum] ORDER BY T0.[DocNum]
    where U_Total_GP is a UDF for storing the GP of each order.
    After executing the query, a selection criteria of date appears and after a date is selected, the report shown information required. However, the query does not calculate column total for total amount and total GP. Although I know the total for each column can be displayed by pressing "Ctrl" + Click on the column title, it would have to be done from time to time.
    Therefore, I would like to modify my query in order to calculate the column totals when executed. Are there any suggestions for this?
    Thank you
    Regards
    Elton

    Hi Elton,
    Try this:
    SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
    FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum]
    Union ALL
    SELECT '', SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
    FROM ORDR T0 WHERE T0.[DocDate] =[%0]
    ORDER BY T0.[DocNum]
    Thanks,
    Gordon

Maybe you are looking for

  • Satellite M40 does not read from product Recovery DVD

    Hey all. I have a bit of a problem that I hope someone can help me. My Satellite M40 notebook fell while it was in the bag and the dvd drive stopped working . I had it repaired and it plays cds but I can't get the recovery disk to work. It opens but

  • Reg: Receiver File

    Hi..      I am doing Idoc to File scenario. In the receiver file structure, we have structure like below Header -- 1 Body -- 0 to n Trailer -- 1 In the file adapter, i have used append mode. So if we have triggered 3 idocs, we will get 3 files append

  • Writing papers with an Ipad

    Hello, So I recently crashed my laptop and I need a laptop or tablet for college. I thought about getting a Macbook but don't think that its worth spending the cash because the IPad does everything I need (Internet and papers) and its cheaper. The on

  • The cluster network name is not online

    Our cluster is a four node, Windows Server 2012 failover cluster running Hyper-V role only.  Today it starts throwing the error 'The cluster network name is not online'.  The IP is online (and all the VMs are running) but migrations fail and any scri

  • Question Re Picture & Video Messaging (PIX Place)

    Ok, so I have the LG Accolade (i.e., no micro SD card) on the Prepaid Core plan, and have been trying to access the original picture files I have taken at their maximum 1.3 MP resolution (1280 x 960 pixels). In an earlier thread, it was suggested to