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

Similar Messages

  • How to create a sap script for sales order header items?

    Hi friends i am totally new to scripts i have got a task where i have to create a sap script for sales order header items details, the clue that i have got is to create using MEDRUCK but i have got no idea please can any body help me with this task with any sample sap script?
    Points will be rwwared with out fail Thks in advance.

    Hi,
    The Standard Form NAme is RVORDER01
    Regards
    Sandipan

  • How to mark up the price for sales order entry?

    Hi Gurus,
    How to Mark up the price for sales order entry?
    Example: Item Price: $10, Adding 20% Margin
    Selliing price of the item is $12
    we are giving many typs discounts like festival Discount, customerwise, Order value wise etc..
    After giving above discounts, if discount falls below $10 system should not allow to book the order, Trigger should go to respective person or sales person saying that item price falling below cost, system should not allow to book the sales order.
    How to configure this scenarios in Order management Module, appreciate your inputs, advise.
    Regards
    AK

    Thanks for your response,
    can you please guide me step to achieve this requirement.
    Regards
    AK

  • 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

  • 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

  • Create and Change functionality for Sales order

    Hii All,
                Can any one please suggest me any Standard program or BAPI or IDOC for Sales order, it should cover create as well as change fuctionality of Sales order.
    this is very urgent to me.
    Suitable Answer will be Rewarded.
    Thankyou,
    Shobha.

    For change you can use:
    BAPI_SALESORDER_CHANGE         Sales order: Change Sales Order
    For create you have the following choices:
    BAPI_SALESORDER_CREATEFROMDAT1 Sales order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2 Sales order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDATA Create Sales Order, No More Maintenance
    BAPI_SALESDOCU_CREATEFROMDATA with business object 'BUS2032'
    The difference between the create ones is the functionality you get e.g. create_from_data2 is the 'most powerful' but you also have to provide the most data. It just depends on what you want it to do.
    In terms of IDOCS:
    message type:
    SALESORDER_CREATEFROMDAT201 or
    SALESORDER_CREATEFROMDAT202 or
    ORDERS05
    Hope that helps,
    Michael
    Here is an example we use, you might want to populate additional fields or leave fields out in case you want different data to be transferred to the IDOC - however some fields are mandatory.
    create the order header structure
      ls_header-doc_type   = ls_screen-order_type.
      ls_header-sales_org  = gc_vkorg_aa01.
      ls_header-distr_chan = gc_distr_aa.
      ls_header-division   = gc_divis_aa.
      ls_header-purch_no   = ls_screen-po_num.
      ls_header-po_method  = ls_screen-po_source.
      ls_header-ship_cond  = ls_screen-ship_cond.
    create partner input table (sold to)
      ls_partner-partn_role = gc_role_sold.
      ls_partner-partn_numb = ls_screen-sold_to.
      APPEND ls_partner TO lt_partner.
    create partner input table (ship to)
      ls_partner-partn_role = gc_role_ship.
      ls_partner-partn_numb = ls_screen-ship_to.
      APPEND ls_partner TO lt_partner.
    items are added by looping at a table
        ls_item-material = <fs_upload>-matnr.
        ls_item-req_qty  = <fs_upload>-quantity.
      process the quantity, it needs to be three decimals, because it
      will be moved into a string in the BAPI and divided by 1000 before
      it is moved back into a number field (1.500 => 001500 => 1.5)
        ls_item-req_qty = ls_item-req_qty * 1000.
      truncate remaining decimal places if exist (1.2525 => 1252.5 => 1252 => 1.252)
        ls_item-req_qty = trunc( ls_item-req_qty ).
        price is taken from the file
          ls_item-cond_type = gc_cond_so_upld_price.
          ls_item-cond_val1 = <fs_upload>-price.
        condition one (price) is multiplied by 10 in the BAPI
          ls_item-cond_val1 = ls_item-cond_val1 / 10.
        no discount
          ls_item-cd_type2   = gc_cond_so_upld_disc.
          ls_item-cd_value2  = 0.
        ls_item-item_categ = ls_screen-item_cat.
          APPEND ls_item TO lt_item.
    then BAPI is called
      CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA'
        EXPORTING
          order_header_in           = ls_header
          business_object           = gc_bus_obj
        IMPORTING
          SALESDOCUMENT             = lv_vbeln
          RETURN                    = ls_return
        tables
          order_items_in            = lt_item
          order_partners            = lt_partner.
      IF ls_return-type NE gc_msgty_error AND
         ls_return-type NE gc_msgty_abend.
      No errors where found
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      ELSE.
      There was an error or abend
        CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
      ENDIF.

  • How to Create Specific SAP Query for Sales BOM

    Dear All Salute !!
    How I can create a SAP Query which provide information from the Sales Order-Line Item, this specific material is having any BOM or not?
    Suppose, user want Input,
    Sales Order No., Product Category, Duration of Sales Order Release.
    want Output,
    Sales Order No., Customer No., Customer Description, Sales Order Line Item, Material No., Material Description, Delivery Date, Quantity, Sales Order release Date
    Users requirement is, List of All Line Items for which BOM is yet to be Uploaded in the System.
    Please provide complete detail with Table & field by using SAP Query.
    Rgds
    Srivastav
    +91-9973504950

    If I am correct, in table KDST, you can see the details of Sales BOM with sale order.  Since right now, I dont have access to SAP, I am unable to confirm this.  You have to consider this table and develop on your own logic with the help of ABAPer.
    thanks
    G. Lakshmipathi

  • 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

  • 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

  • How to create a multi-level configuration sales order?

    Hi,
        My client use configurable material to sell computers. And the production mode is MTO. One sales order item correspond with a production order
        Now my client also sell array which consist of two computers, two storage, one UPS power etc. That means I must realize multi-level configuration. First, choose the computer type. Second, based on the choosed computer in first step, choose the cpu, disk and so on. And then based on the sales order item, there must be several production order related to the same sales order item.
        Now I have semi-finished product B1,B2--computer. Class type is 300. Many characteristics is allocated to the class. B type material has the BOM which consist of cpu,disk etc.
        Then I created the finished product A--array. Class type is 300. Allocated characteristics is the B1,B2. A has the BOM which consist of B1,B2 etc.
        When I create sales order, I can only config the first level,choose computers for A, can not choose cpu,disk for computers.
        So, how can I find a solution for this scenario?
        Thanks in advance.

    Thanks, Waza
    1.  Does the Sales order BOM explode in the sales order?
    No. Just one top item would be ok for my client.
    2. Why do thy want this in the sales order?  They can explode the BOM in the production order, do they then need pricing at the component level?
    They do not need pricing at the component level. Exploding the BOM in the production order is acceptable. But how can I config the configurable material in components of production order?
    I tried collective order, but the second level of configurable material can not generate production order. I just make use of special procurement 52 in MRP2 of top finished product. Is there something I missed?
    Thanks again.

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

  • How to find out Enhancement details for Sales Order

    Hello,
    Follwing is the scenerio:
    As soon as Third Party Sales Order created, Header Billing block gets triggered (from Sales Doc settings in VOV8).
    In Sales Order there are 4 items of items:
    1. Hardware Material (Price) with Item Category, say A
    2. Hardware Material (Free-of-Charge) with item category, say B
    3. Service Material (Price) with Item Category, say C
    4. Service Material (Free-of-Charge) with item category, say D
    Now there is another billing block, at item level, for Hardware Material (Price) - item cat. A, ONLY.
    I checked item cat. in VOV7, and this block is not configured there.
    Sales Order saved (with pop-up message - Maintain Serial No. for Material, but as it's third party Order, stock is not in Inventory, so no Serial number at this point of time). PR triggered upon saving the Order. from PR, PO gets generated,and then MIRO.
    Now, as vendor Invoice received with Stock details (Manufacturer's Serial No.), we go to VA02 and maintain Serial No. (Extra --> Serial No.) for all 4 types of material (Pls note that Billing block is for Hardware Price Material, but we need to maintain Serial No. for all 4 types of material) and save order.
    As soon as, serial no. maintained, item level billing block gets removed for Hardware (price) material, automatically.
    I need to understand how this functionality has been achieved?
    More precisely how and where i can see the technical details, like What program is being developed, which user-exit is being used etc...
    Thanks.

    Hi Sumitra,
    Since the system exit handler has to call your BADI  go to SE24 and display
    CL_EXITHANDLER
    Chose method get_instance and set a break point.
    And, then press F8, so it will show all the Badi's.
    Regard's,
    Shivesh Ranjan.

  • Creating Billing Plan data for sales order using BAPI

    Hello,
    Someone ones if there is any way to create a sales order (BAPI) and then create a billing plan (by means of another BAPI)?
    Or is there any way to create both at the same time?
    Kind Regards.

    Hi David and Nisha here is the code for creating sales order with bapi
    *& Report  YOBJ_BAPI_SALESORDER
    *& REPORT : CREATING SALES ORDER USING STANDARD BAPI
    *& AUTHOR : S.PAVAN KUMAR INUMARTHY
    REPORT  YOBJ_BAPI_SALESORDER.
    DATA : ORDER_HEADER_IN LIKE STANDARD TABLE OF BAPISDHD1 WITH HEADER LINE.
    DATA : ORDER_ITEMS_IN LIKE STANDARD TABLE OF BAPISDITM WITH HEADER LINE.
    DATA : ORDER_PARTNERS LIKE STANDARD TABLE OF BAPIPARNR WITH HEADER LINE.
    DATA : RETURN TYPE STANDARD TABLE OF BAPIRET2 WITH HEADER LINE.
    DATA : SALESDOCUMENT LIKE BAPIVBELN-VBELN.
    *APPENDING VALUES FOR HEADER.
    ORDER_HEADER_IN-DOC_TYPE = 'TA'.
    ORDER_HEADER_IN-SALES_ORG = '1000'.
    ORDER_HEADER_IN-DISTR_CHAN = '10'.
    ORDER_HEADER_IN-DIVISION = '00'.
    ORDER_HEADER_IN-SALES_GRP = '130'.
    ORDER_HEADER_IN-SALES_OFF = '1030'.
    APPEND ORDER_HEADER_IN.
    *APPENDING VALUES FOR ITEM
    ORDER_ITEMS_IN-MATERIAL = 'M-13'.
    ORDER_ITEMS_IN-PLANT = '1000'.
    ORDER_ITEMS_IN-SALES_UNIT = 'ST'.
    ORDER_ITEMS_IN-DIVISION = '07'.
    ORDER_ITEMS_IN-GROSS_WGHT = '28000'.
    ORDER_ITEMS_IN-NET_WEIGHT = '28000'.
    ORDER_ITEMS_IN-UNTOF_WGHT = 'KG'.
    ORDER_ITEMS_IN-VOLUME = '0.780'.
    ORDER_ITEMS_IN-VOLUNIT = 'M3'.
    APPEND ORDER_ITEMS_IN.
    *APPENDING VALUES FOR PARTNER
    ORDER_PARTNERS-PARTN_ROLE = 'AG'.
    ORDER_PARTNERS-PARTN_NUMB = '0000001000'.
    ORDER_PARTNERS-COUNTRY = 'DE'.
    ORDER_PARTNERS-TRANSPZONE = 'D000080000'.
    APPEND ORDER_PARTNERS.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
    *   SALESDOCUMENTIN               =
        ORDER_HEADER_IN               = ORDER_HEADER_IN
    *   ORDER_HEADER_INX              =
    *   SENDER                        =
    *   BINARY_RELATIONSHIPTYPE       =
    *   INT_NUMBER_ASSIGNMENT         =
    *   BEHAVE_WHEN_ERROR             =
    *   LOGIC_SWITCH                  =
    *   TESTRUN                       =
    *   CONVERT                       = ' '
    IMPORTING
       SALESDOCUMENT                  = SALESDOCUMENT
      TABLES
       RETURN                         = RETURN
       ORDER_ITEMS_IN                 = ORDER_ITEMS_IN
    *   ORDER_ITEMS_INX               =
        ORDER_PARTNERS                = ORDER_PARTNERS
    *   ORDER_SCHEDULES_IN            =
    *   ORDER_SCHEDULES_INX           =
    *   ORDER_CONDITIONS_IN           =
    *   ORDER_CONDITIONS_INX          =
    *   ORDER_CFGS_REF                =
    *   ORDER_CFGS_INST               =
    *   ORDER_CFGS_PART_OF            =
    *   ORDER_CFGS_VALUE              =
    *   ORDER_CFGS_BLOB               =
    *   ORDER_CFGS_VK                 =
    *   ORDER_CFGS_REFINST            =
    *   ORDER_CCARD                   =
    *   ORDER_TEXT                    =
    *   ORDER_KEYS                    =
    *   EXTENSIONIN                   =
    *   PARTNERADDRESSES              =
              IF SY-SUBRC = 0.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    *           EXPORTING
    *             WAIT          =
    *           IMPORTING
    *             RETURN        =
               ENDIF.
    WRITE : 'SALES ORDER IS :', SALESDOCUMENT.
    I have tested and go it.
    please go through it

  • Creating GetList Bapi Wrapper for Sales Order

    Hi All,
    I am not at all into CRM, but there is some problem I have which is related to it.
    In the Sales-TeleSales transactions, I create a sales Order.
    Now there is much data that is there which is linked to this Sales Order like
    1)     Telesales
    2)     Item
    3)     Sold-to-party
    4)     Product
    5)     Quantity
    6)     Req-del-date
    7)     Currency
    8)     Region
    9)     Country
    10)     Net Value
    11)     Discount
    12)     Tax amount
    13)     Gross Value
    14)     Partner
    I need to create a BAPI Wrapper to get all the Header and Detail data.
    I am thinking of finding a BAPI or a Function Module which does this job and calling it in my BAPI Wrapper.
    Now I want you people to tell me the Appropriate BAPIs or FMs which will do this job for me.
    I need almost all these fields to be returned by my Bapi Wrapper.
    Please ask for Clarifications...
    Lookin forward to responses...
    Ankur

    Hi Ankur,
           You can Call the FM : CRM_ORDER_MAINTAIN within your BAPI wrapper.
    For testing purpose there is a Standard Report on this FM , Report name : 'CRM_TEST_ORDER_MAINTAIN'.
    Hope this will be helpful to you
    Regards,
    Anand.

Maybe you are looking for

  • Does the 7.1 update battery issue affect only the 5s?

    I have a 4s, bought in Oct '13, running IOS 7.0.4 with only one third-party app (Twitter). The 7.1 update was pushed down to my phone earlier this month, but I haven't installed it yet because of the widespread battery drainage problems that came wit

  • SQL question in a high volume web app environment

    Hi, We have a high volume website used in a hospital setting. When a doc selects a patient, we have to delete all previous patient history records for the patient from a certain table and insert new records retrieved from a web svc called at runtime

  • Formula automatically populate the date when inventory goes to "zero"

    Hello- I am trying to create a formula that will automatically populate the date when inventory goes to "zero". Date: Row 3 Columns P-AB Inventory: Rows 5-400 Columns P-AB Column J rows 5-400 is where I want the inventory run-out date to auto-pop wit

  • UITableView re-order but not remove?

    Hi!, I'm trying to make a UITableView that will have a re-order functionality but not delete. I've implementer the - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath; AND - (void)tableView:(UITableView *)tableVi

  • GR posting via VL06IG

    Hi , I have got a situation, that when I create PO with account assignment catery as K or A with material short text and material group, create an inbound delivery (VL31N) and then go for posting the GR using VL06IG, I DO NOT get hte material documen