Fetch Netvalue and Sales order No.

Hi Friends
Kindly help me to Fetch 'Sales Order Number' and 'Net Value of the Sales Order in Document Currency' before Saving the Sales Order since i need to store in custom table.
Thanks in Advance

Hi Senthil Ram Kumar Palanisamy Ganapathi,
  In Include -> MV45AFZZ -> FORM USEREXIT_SAVE_DOCUMENT.
   We will get SO Number and NETWR 'Net Value of the Sales Order in Document Currency'. So, In this Exit let say You Custom Table is ZTAB. Then do as follows in this Exit.
IF SY-TCODE = 'VA01'.
   ZTAB-VBELN = VBAK-VBELN.
   ZTAB-NETWR = VBAK-NETWR.
   UPDATE / Insert ZTAB.
ENDIF.
Regards,
Suneel G

Similar Messages

  • Purchase order and sales order table name

    hi al,
    i want to know purchase order and sales order table name in abap.
    thanks
    varun
    Moderator message: please do some own research, this should not take too long.
    Edited by: Thomas Zloch on Jan 27, 2012

    Hi Sunrag......
    If your PO is linked with SO. Then you can fetch customer name easily by FMS in PO.
    From there you ca gte the Customer Name into your PLD and it wont hang also.....
    Regards,
    Rahul

  • Link between PO and Sales Order?

    Hi,
    I have an issue..I need to send an idoc containing PO with fields (like ebeln, lifnr...etc). Along with this PO, I need to send a field 'customer po number (vbkd-bstkd)' from sales order.
    Could you please help me out to find out the link between purchase order and sales order? how to fetch customer purchase order number from po number?
    Also what is the difference between Purchase order number and Customer purchase order number?

    The customer purchase order number is the number of the purchase order which you get from one of your <b>customers</b>. This number is copied in the sales order, for future reference.
    On the other hand, the purchase order is the order you send to one of your <b>vendors</b>.
    Thus the sales order and the purchase order are two indipendent objects. The customer purchase order number does not reference any document on the ERP. Therefore you can't link a purchase order to a sales order.
    Refer to the SAP Solution forum SAP ERP Sales and Distribution (SAP SD) for this kind of questions.
    Regards, Davide
    Message was edited by:
            Davide Cavallari

  • Link between Accounting Document and Sales Order

    Dear SD Gurus,
    How to find the Sales Order number and Sales Order Item from the accounting document- like document types DZ, DG, ID etc.
    Kindly specify the table links and fields to fetch the above details
    Regards
    Vimal

    Link Between SAP SD, MM & FI
    The link between SD and MM :-
    1. When you create sales order in SD, all the details of the items are copied from Material master of MM.
    2. MRP and availibility check related data is also taken from MM although you control this data in SD also.
    3. While you create inbound/outbound delivery with reference to a sales order,the shipping point determination takes place with the help of the loading group, plant data, shipping conditions etc. This also refers to Material Master.
    4. The material which you are entering in a sales order must be extended to the sales area of your sales order/customer otherwise you cannot transact with this material.
    There are many such links between SD and MM.
    Now the link between SD and FI :-
    1. Whenever you create a delivery with reference to a sales order, goods movement takes place in the bacgground. eg. In case of standard sales order, you create an outbound goods delivery to the customer.
    Here movement 601 takes place. This movement is configured in MM. Also, this movement hits some G/L account in FI. Every such movement of good s hits some G/L account.
    2. The accounts posting in FI is done with reference to the billing documents (invoice, debit note, credit note etc) created in SD. Thus this is a link between SD and FI
    3. Tax determination: In case of a tax determination also, there is a direct link between SD and MM
    SD Integration points with other modules
    SD module is highly integrated with the other modules in SAP.
    Sales Order –
    Integration Points                      Module
    •Availability Check             -       MM
    •Credit Check                   -       FI
    •Costing                        -       CO/ MM
    •Tax Determination              -       FI
    •Transfer of Requirements       -       PP/ MM
    Delivery & Goods Issue –
    Integration Points                      Module
    •Availability Check             -       MM
    •Credit Check                   -       FI
    •Reduces stock                  -       MM
    •Reduces Inventory $            -       FI/ CO
    •Requirement Eliminated         -       PP/ MM
    Billing -
    Integration Points                      Module
    •Debit A/R                      -       FI/ CO
    •Credit Revenue                 -       FI/ CO
    •Updates G/ L                   -       FI/ CO
      (Tax, discounts, surcharges, etc.)
    •Milestone Billing              -       PS
    Return Delivery & Credit Memo -
    Integration Points                      Module
    •Increases Inventory            -       MM
    •Updates G/ L                   -       FI
    •Credit Memo                    -       FI
    •Adjustment to A/R              -       FI
    •Reduces Revenue                -       FI
    SD Transaction Code Flow: 
    Inquiry / Document type IN
    Tcode for creation VA11,VA12,VA13. tables VBAK,VBAP
    Quotation / QT
    Tcode for creation VA21,VA22,VA23. tables VBAK,VBAP
    Purchase Order PO
    Tcode for creation ME21,ME22,ME23. tables EKKO,EKPO.
    Sales Order OR
    Tcode for creation VA01,VA02,VA03. tables VBAK,VBAP
    Delivery LF
    Tcode for creation VL01,VL02,VL03. tables LIKP,LIPS
    Billing F2
    Tcode for creation VF01,VF02,VF03. tables VBRK,VBRP
    <b>The SD & FI link is established through mapping of appropriate G/L accounts through T.Code: VKOA</b>
    Regards,
    Rajesh Banka
    Reward suitable points.
    How to give points: Mark your thread as a question while creating it. In the answers you get, you can assign the points by clicking on the stars to the left. You also get a point yourself for rewarding (one per thread).

  • Link between Delivery and Sales Order Schedule Line

    Hi Gurus,
    I have a requirement in which i need to display quantity and amount at schedule line level and also the delivery and delivery item for each schedule line.
    For example, if there is a sales order O1 and item 10 for which we have 3 schedule lines and 3 deliveries as well say D1, D2 and D3.
    Report should be something like this
    Sales Order    Item   Schedule Line    Delivery    Del Item   Confirmed Order Qty
    O1                 10      1                       D1           10            5
    O1                 10       2                      D2            10            5
    O1                 10       3                      D3            10            4
    How can i determine that a particular delivery corresponds to which schedule line of that saler order-item?
    We have the link between delivery and sales order but is there any way that we can get the link of delivery at schedule line level?
    Please help.
    Regards,
    Gaurav

    Hi,
    I suppose you must check with SD functional consultant and the post should also be in the logistics SD forum and not BI. But I suppose there is know specific link between the schedule line of SO to the Delivery. It is more like a bucket flow for ex.
    Sale order   Item    Schedule line  qty
    SO1            Item1     Sch1            10
    SO2            Item1      Sch2           10
    Delivery Item QTy
    DO1       IT1   15
    DO2       IT1    5
    In this case qty 15 is distributed over both SO1 and SO2, and SO2 ITem1 Sch2 has link to both the DOs
    So I am not sure if you can establish a one to one link, please check with your SD consultants.
    Regards,
    Ashwin G

  • Report for Pegging for  forecast and sales order consumption(pegging)

    Hi ,
    Plaese help to create a report for the below
    Requirement is there to have a showing Forecast (Number) and Sales order (Number) pegging Report
    Means like to which forecast number the sales order number is consumed
    Regards
    Kiran

    I have tested this on ASCP and I am agree with you. I am pasting one para from document...
    "Oracle Master Scheduling/MRP and Supply Chain Planning calculates the ATP quantity of an item for each day of planned production by adding planned production during the period (planned orders and scheduled receipts) to the quantity on hand, and then subtracting all committed demand for the period (sales orders, component demand from planned orders, discrete jobs, and repetitive schedules).
    Note: Committed demand does not include forecasted demand or manually entered master demand schedule entries. Also, the amount available during each period is not cumulative. Oracle Master Scheduling/MRP and Supply Chain Planning does not consider ATP quantities from prior periods as supply in future periods. "
    Thanks and Regards,
    Dipak

  • Purchase orders and Sale Orders in DEV and PRD

    Hi SAP Experts,
    We have a facing some different problem. Unfortunately our clint do some transactions in Development Server. Like Purchase orders and Sales Orders.
    After one month we delivery to clinet exact Production server. But he is asking , What ever the purchase orders and Sales Orders Created in Development with same numbers and Same dates, that data will be present in Production server also. Is it possible to do that. IF possible how to do that...
    Thanks and Regards
    Siri....
    Edited by: Alvaro Tejada Galindo on Apr 14, 2008 5:56 PM

    I think it is possible,as per my knowlwdge our perious client regularly( means every 3-4 months) copied the data from Production server to quality server. by the help of basic person...
    So in your case you want to copied the data from devlopment server to production server....please touch with your basic guy, i think he will help out reagrding this...

  • Deleting deliveries and sales orders using BAPI

    Hello all...I am making some changes to the existing program which uses call transaction to VL02 and VA02 doe deleting deliveries and sales orders. This program is running for ever. So I want to use BAPI BAPI_OUTB_DELIVERY_CHANGE and BAPI_SALESORDER_CHANGE instead of call transaction. I just want to now what values should the input tables contain or please guide where I will find documentation over this. Please give me a little insight how to use these BAPI's in my program.
    Thanks,

    Hello,
    I got the following error when tried to execute my program with the BAPI function module.
    The field "LT_DELIVERY" specified here has a different
    field
    type.        
    I am posting some part of my code here. Please help.
    CONSTANTS: c_X TYPE c VALUE 'X'.
    DATA: lt_header LIKE bapiobdlvhdrchg OCCURS 0 WITH HEADER LINE,
          lt_control LIKE bapiobdlvhdrctrlchg OCCURS 0 WITH HEADER LINE,
          lt_delivery LIKE bapiobdlvhdrchg OCCURS 0 WITH HEADER LINE,
          lt_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    lt_header-deliv_numb = sdel-vbeln.
        lt_delivery-deliv_numb = sdel-vbeln.
        lt_control-dlv_del = c_X.
    CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
      EXPORTING
        HEADER_DATA               = lt_header
        HEADER_CONTROL            = lt_control
        DELIVERY                  = lt_delivery
      TECHN_CONTROL             =
      TABLES
      HEADER_PARTNER            =
      HEADER_PARTNER_ADDR       =
      HEADER_DEADLINES          =
      ITEM_DATA                 =
      ITEM_CONTROL              =
      ITEM_SERIAL_NO            =
      SUPPLIER_CONS_DATA        =
      EXTENSION1                =
      EXTENSION2                =
        RETURN                    = lt_return
      TOKENREFERENCE            =
    IF sy-subrc EQ 0.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
    Please suggest how to proceed.
    Thanks,
    Naren

  • SD-How to find table of link between delivery and sales order?

    Hi Experts,
    I have a requirement as below.
    In LIPS table (SD document: Delivery: Item data), in this table has one kind data.
    One record has maintianed 2 fields PSPNR(Project definition (internal)) and PS_PSP_PNR(Work Breakdown Structure Element (WBS Element)).
    How to find sales order number of the above record? Could you tell me which table link the delivery item data and sales order number?
    Thanks a lot,
    Frank

    Hi frank
    Check the following tables  VBAP , VAPMA , VBUP . It may help you
    Regards
    Srinath

  • Delivery date and sales order creation date

    Dear all
    Can you please explain the relation between delivery date and sales order date. In my case i can create delivery with delivery date as before the sales order date... how it is possible that i can create delivery before the sales order date.??
    Please explain.........
    Warm Regards
    Inder Pal

    Hi,
    Sales order date: Date on which the customer officially places an order to your company.
    All the commitment and product allocation counting starts with reference to this date.
    e.g. customer says that the goods are required from 20 days of placing order, then from this date the calculation starts.
    Delivery date: Date on which after the system goes through material availability date, replenishment time, calculates the date on which physically the goods can be delivered to the customer.
    e.g. customer orders 100 qty of material X in 15 days, you will hve to check this delivery date through availability check which can be done in sales order and also delivery.
    payment date is based on this delivery date.
    regards,
    Siddharth.

  • SD-How to find table link of special delivery and sales order number?

    Hi Experts,
    I have a requirement as below.
    In LIPS table (SD document: Delivery: Item data), in this table has one kind data.
    One record has maintianed 2 fields PSPNR(Project definition (internal)) and PS_PSP_PNR(Work Breakdown Structure Element (WBS Element)).
    How to find sales order number of the above record? Could you tell me which table link the delivery item data and sales order number?
    Thanks a lot,
    Frank

    hi,
    check this.
    [https://forums.sdn.sap.com/click.jspa?searchID=20150250&messageID=3784069]

  • PO and Sales Order

    Hi ,
    I am creating a PO in "A" SAP System which is autocreating a Sales Order in "B"
    SAP System . Now I want to know how its creating the Order .
    Screenshot -> PO was created in A sytem and then it goes on to create SO in B system automatically . I required to know what shall I check /how to find out how its being done today .
    Thanks

    Hi sundar
    Yes I can see the idoc and Sales Order . The Order is being created by idoc .
    The o/p ZNAV by which idoc is getting created has condition record .
    Screenshot given .
    Now the issue is (for which I wanted to know how this is is bein done ) the current scenario is creating Sales Order for plant A , I need to configure same flow (Sales Order )for a new Plant B.How shall I achieve that . What all config I need to do ?

  • How to get COUNT of  Invoice No and  Sales Order No from Multiprovider

    Hello Guys,
    I have a scenario like below. I have 2 info cubes (1) Billing Item Info cube (2) Sales Order Item Infocube which stores Item level data in infocube. I created Multiprovider for these Sales Order Item Cube and Billing Item Info cube.
    Now in My Multiprovider, Invoice No and Sales Order No gets repeated no of times because one Invoice and One order will have no of Materials. I have a requirement to count Total No of Billing Document and Total No of Sales Document for a Day in the BEx Report. I was thinking to use COUNT function but if Sales Document or Billing Document gets repeated then it will count those records which i don't want. correct me if i am wrong. 
    How to get Total no of Billing Document and Total no of Sales Document from a Multiprovider where i have Item level data is stored ?
    Regards,
    Komik Shah
    Edited by: Komik Shah on Aug 20, 2011 5:33 PM

    Hi,
    Count can be achieved as per the following document. Create for Billing Doc and Sales Doc separately.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/009819ab-c96e-2910-bbb2-c85f7bdec04a
    Regards,
    Suman

  • How to identify the emergency orders in STO and Sales Order

    Hi,
    kindly let us know is there any field in header details of STO and Sales Order where we can identify the emergency orders,
    In our STO Process we are creating more STO's from one warehouse to one Store,but in that orders we have some of the orders are emergency order's.
    Note:-if we create new order type then we can deference the orders but as per the business requirement we need to give same order type. 
    Thanks & Regards,
    Murali.M
    +91-9321526563.

    Thanks

  • Want to procure material  with reference to WBS and sales order

    Dear all
    If i have assigned account assignment in PO means then while GR my material value is going to consumption. I dont want to book consumption at GR level i want to do consumption at delivery level. Also i want to procure material for particular WBS and Sales order.
    How to process the same. Kindly give some idea.

    Hi
    If you wanna toprocure the material wrt to WBS element or sales order the you have to make use of the Account assignment category P- projects ( That can be WBS elements /network ) And sales order C or any specific account assignment category created by you.
    Example :
    Sceneraio- When you are creating a slea order in SAP by T.code VA01 then at time of saving the SO the system is creation the WBS automatically ( that has to be mapped in SAP) .The Sales order number and the WBS element are  same .When you are cretating PO for  the Material wrt to  this WBS element then the system at time of the GR will be posting the consumption account which is booked to WBS element that in turn against the particular sales order.
    In SPRO - customizing i for the account assingment category P  in the Consumption Value is V
    Which is posted to consumption at time GR. Please  try create new account assignment category
    Consumption Value is E i.e accounting by sales order .
    Regards

Maybe you are looking for

  • Animated GIF Doesn't Play To The End

    I've created a simple animated GIF in Photoshop CS6, eight seconds long, 30fps. I have several layers that fade out at and then more layers that fade IN at four seconds. It plays perfectly in Photoshop, but a rendered GIF doesn't play entirely to the

  • Oracle 8i Lite - OO4O and other Questions

    1.) Can OO4O (Oracle Objects for OLE) be used with the Oracle 8i Lite database ? 2.) Does Oracle 8i Lite operate as a "client/server" database ? 3.) Is it possible to have multi-user access to Oracle 8i Lite ? 4.) Is there documentation somewhere tha

  • Verizon iPad 2 wants previous owners password and email for 3G. Can't create a new account need help ASAP..

    After a factory reset/ setting it up as a new iPad it still gives me the login screen. went to the genius bar no help, contacted Verizon no luck. I want to make a new Verizon 3G account but it won't get the registration form for me to fill out what C

  • Embed FXG Files in Advanced Datagrid

    We are currently working with Advanced Data grids and having difficulty embeding FXG graphics files for the open and closed folder property.  We have gotten JPG, and PNG files to work.  However, we would prefer to use FXG graphics files if its possib

  • Bid Invitation attributes and weighting function

    Attributes are transferring to Weighting section. This did not haqppen in the past.     During bid invitation creation the dynamic attributes that are used are automatically transferred to the weighting function. Along with this there is a message th