Sales Order Line Times Weight and Volume

Hi All,
Iam creating a sales order
i have given line item and quantity and it give some weight and volume based on that material
if i change the weight or volume than i saved after saving user exit calls
now how can i find the changed weight or volume
all the weight and volumes are in VBAP than how can i write select statement for that
Please Give suggestion
THanks
Surendra

u have to write code in userexit MV45AFZZ FROM SE38
USEREXIT_SAVE_DOCUMENT_PREPARE   
U WILL GET VBAPs data in XVBAP
like u have to read xvbap-VOLUM and xvbap-NTGEW FOR CURRENT VALUE
AND FOR PREVIOUS VALUE U HAVE TO WRITE SELECT QUERY LIKE
SELECT * FROM VBAP INTO WA_VBAP
WHERE VBELN = XVBAP-VBELN
AND POSNR = XVBAP-POSNR.
THEN CHECK
XVBAP-VOLUM = WA_VBAP-VOLUM  .. LIKE THAT U CAN COMPARE VALUES
THANKS

Similar Messages

  • MB51 Sales Order Line Item Misalignment

    Hi All,
    When i execute MB51 transaction for movement types 411E, 412E we fiind there is a misalignement between the sales order and the sales order line item.
    Example: IN MB1b when a 411 E movement is done then the negative item has the sales order line item number and the special stock E. Whereas the Positive item has the sales orderwith no line item number and special stock E. The sales order needs to be there in the negative item whereas it is present in the positive item number.
    Please advice

    Hi,
    After executing MB51you will get list of records.
    Press detail List (CtrlShiftF12) button, you will get each records appearing in one line.
    Try this.
    Regards
    Nilesh

  • Can sales order line item text be replicated into production order

    Hi
    Can sales order line item text be replicated to production order through standard PP configuration? If so how can it be done?
    If that is not possible through standard configuration then can it be possible to read both sales order line item information and production order information using a BAPI or a program?
    Please help me, i have been trying hard for this and also searches sdn for relevant posts but could not find any, I thank all people who can help me with some information on this.
    Regards,
    Jessica

    Sample code:
    DATA:
      wa_order_objects    TYPE bapi_pp_order_objects.
    DATA:
      it_order_header     TYPE STANDARD TABLE OF bapi_order_header1.
    *--Setting Flag to get details of BAPI
      wa_order_objects-header         = c_x.
      CALL FUNCTION 'BAPI_PRODORD_GET_DETAIL'
        EXPORTING
          number           =  "Order number"
          order_objects    = wa_order_objects
        TABLES
          header           = it_order_header.

  • Line id in sales order lines and source_line_id in wsh delivery details are entirely different

    i am trying to get serial number based on sales order line,i am getting no data since   AND WSH.SOURCE_LINE_ID = OOL.LINE_ID is failing,Please help me.Im not getting what wrong im doing
    SELECT OOH.ORDER_NUMBER
         ,OOH.FLOW_STATUS_CODE
         ,OOH.CUST_PO_NUMBER
         ,OOL.ORDERED_ITEM
         ,OOL.LINE_ID
         ,OOL.ORDERED_QUANTITY
         ,OOH.ORDER_TYPE_ID
        ,WSN.FM_SERIAL_NUMBER
    FROM SO_ORDER_TYPES_ALL SOT
         ,OE_ORDER_HEADERS_ALL OOH
         ,OE_ORDER_LINES_ALL OOL
         ,WSH_SERIAL_NUMBERS WSN
         ,WSH_DELIVERY_DETAILS WSH
    WHERE 1=1
      AND WSN.DELIVERY_DETAIL_ID = WSH.DELIVERY_DETAIL_ID
      AND WSH.SOURCE_LINE_ID = OOL.LINE_ID
      AND OOL.SOURCE_TYPE_CODE = 'EXTERNAL'
      AND OOH.HEADER_ID = OOL.HEADER_ID
      AND OOH.ORDER_TYPE_ID = SOT.ORDER_TYPE_ID
      AND SOT.NAME = 'US Distributor Order'

    what is the status of SO and SO line ?
    Have you manually check the line_id and source_line_id from backend using select statement ?

  • Link between OrderDetail and SBO Sales Order Lines

    Hey All,
    can anyone tell me how I can tell which order detail records are linked to which SBO sales order lines? I know I can find the sales order based on the synch id in the ordermaster table. But I don't see  a link between the child orderdetail table and RDR1 in B1.
    Any ideas?

    Hi Curtis,
    This is actually a bug.
    (Fixed in sp1--release date who knows when)
    Way back in the olden days, Webtools (NetPoint) did not allow the same item on multiple lines, so synchid, partno was a unique key.
    When this changed in 5.96, no synchid was added to the orderdetail, resulting in a bug if the following happens:
    1.  order is created in Webtools with the same item on multiple lines
    2.  order is synchronized to B1
    3.  order detail data is editted on the duplicate items
    4.  synch back to Webtools
    The line item data may be incorrect on the duplicate items
    So, the moral of the story is, your best bet is a compound key of ordermaster.synchid/orderdetail.partno-->rdr1.docentry/rdr1.itemcode.  But be warned that there could be synch issues if you end up in the above scenario.

  • VA01 Sales order (line items) and different Cost center assignment

    Hello gurus,
    im searching for solutions how to assign different cost center to sales order line items, but only thing that i found is the substitution (Using Substitution (GGB1) to change Cost Center assigned in (OKB9))
    Trying to do this i was unable to create something that could work, since there was no Logistic.
    Could somebody explain me the Line item in SO assignment to Different cost centers?
    I know alot about OKB9, VKOA and other transactions, but still cant find anything suitable to solve this issue
    Best regards
    Laurynas

    What i mean is that, on the end of every month we are gathering information for Statistical Key Figures (from Controlling) entering as CO document and then distributing the costs using KSV5 TC on Internal Orders according those entered statistical key figures.
    i.e. we got INCOME 1000000 from 10 internal order, which we distribute on even percentage parts like 10 cost center, each getting 10% of the income.
    I tried to create the SO, but the Profit center field, after i entered a number, was changed automatically into another.
    And the posting didnt reach Controlling and the assigned Cost center. I think it is a lack of configuration.
    Regards
    Laurynas

  • SALES ORDER LINE IS CANCELLED BUT DELIVERY DETAIL IS SHOING AS BACKORDERED

    SALES ORDER LINE IS CANCELLED BUT still the DELIVERY DETAIL IS showing as BACKORDERED it should be in cancelled
    status.The Sales order (only one ex:3904854) is cancelled , however order in shipping transactions screen indicates order is on backorder.
    at that time of order cancellation the line level workflow error out due to the Workflow package is inactive .
    I tried to resubmit the error out workflow using retry option from the responsibility “Workflow Administrator” the workflow is completed with forcible option but still the delivery detail is in back order status not changing it to cancel status.
    Error Name :-4068 [Error Process Error: WF Error Message: ORA-04068: existing state of packages has been discarded  
              ORA-04061: existing state of package body "APPS.XRX_SUPPLIES_NEW_WF_PKG" has been invalidated    
              ORA-04065: not executed, altered or dropped package body "APPS.XRX_SUPPLIES_NEW_WF_PKG"                         
              ORA-06508: PL/SQL: could not find program unit being called: "APPS.XRX_SUPPLIES_NEW_WF_PKG" [Error Process           Error: 3114: Activity 'WFERROR/R_ERROR_RETRY' is not a process.]
    Error Stack: Wf_Engine_Util.Function_Call(XRX_SUPPLIES_NEW_WF_PKG.XRX_CLOSE_LINE_DETAILS, OEOL, 55098479, 195982, RUN)
    [Error Process Error:   Wf_Engine.CreateProcess(WFERROR, WF5147218, R_ERROR_RETRY) ]

    Mohan
    You need a simple script to get the status corrected. Log an SR or search metalink for the script. I am sure there is one out there (if you search with the orphan reservations). This script supported, but not exactly targeted at your problem But it will solve it. You can log an SR and confirm.
    Thanks
    Nagamohan

  • Sales order line for Non Stock items progressed to Closed status, need to be Cancelled.

    Hi,
    First time posting to this community, I hope someone can help.
    Currently we have a setup where non stock items are being added to sales order lines (charges, etc.).
    These lines are being progressed through to Closed status automatically.
    Users are reporting that they have entered the line in error and would like to change the status of the line to Cancelled.
    We are unable to return the material (RMA) as it is non stockable/transactable etc.
    Current workaround is to adjust the stock and make finance aware so that the line does not get invoiced.
    However, the system still shows that the line is closed (i.e. provided to customer) which is not correct.
    Is there any way of getting the line to a status of cancelled?
    Your help is very much appreciated.
    Regards
    Tim

    Hi Arif,
    Many thanks for the warm welcome.
    I'm thinking the only course of action I have for future, is to make the items stockable/transactable/returnable such that an RMA can be performed if added in error.
    We can put a large qty into stock at zero value.
    Thanks for your help in any case.
    Tim

  • How to upload sales order line items?

    SAPGurus,
    For years my customer service department has been asking for a way to upload sales order line items into the VA01 sales order-entry screen.
    Many of our customers submit PO's with huge amount of line items, up to 1,000 lines. Our CS reps need to key in the data line by line (or copy/paste
    approx 17 lines at once from Excel into the VA01 screen), and we are looking for a way to make this process leaner. One idea we have is that user creates the order header, and then has a way to upload the material numbers and quantities in a separate (newly created Z-transaction) screen in one go.
    Obviously rules then need to be built that deal with the various pop-up messages related to e.g. ATP, material status, etc.
    Does anyone have any experience or thoughts on how we could achieve this? A way to make the sales order-entry process a bit less time-consuming? Any feedback would be greatly appreciated !
    Thank you,
    RVS

    Take the inputs from this Blog created by  SUNIL PILLAI                   
    Sales Documents upload  using Standard Direct Input Program in LSMW
    G. Lakshmipathi

  • Manual price change on Sales Order line

    Hi everyone,
    Say I have a product A and have entered this in the price list Product A = USD 100 per unit.
    I create the order and process the order, do ship confirm, but at the time of creating the invoice, I want to change the price to 97. or 95 or whatever. This is not fixed and depends probably on various business factors not in anyone's control.
    I tried to manually change the price on the sales order line, but it is not allowing me to change, saying 'no manual discounts available'. My questions are :
    1. How can I manually change the price of a product at the time of invoicing?
    2. I have not defined any modifiers or qualifiers. Is this required, and if yes, what type and how to do it.
    3. At what level can the price be changed? at order booking or even after ship confirm?
    4. If I change the price today, this price change will be applicable to what orders? All orders with booked statuses, or all orders which are not yet ship confirmed, or all orders not interfaced or all future orders entered after this price change is saved?
    5. Do I need to make this price change in the price list also?
    Pls reply asap.
    Thanks a lot in advance.
    Sudhindra Desai

    Hi Sudhindra,
    Check out if this helps:
    1. How can I manually change the price of a product at the time of invoicing?
    You cannot change the price once invoicing is done or when the Order Line Status becomes 'Closed' . Any change at the order entry level can only be effected till the Order Line Status is in 'Entered' Stage.
    2. I have not defined any modifiers or qualifiers. Is this required, and if yes, what type and how to do it.
    We have defined a modifier for our business purpose where by we can manually change the Price at the order entry level. If you require I can send you the screen shots of the setups we have done. I would need your e-mail id for that.
    3. At what level can the price be changed? at order booking or even after ship confirm?
    Price can be changed till the order is in 'Entered Stage'. It cannot be changed once it is 'Booked'
    4. If I change the price today, this price change will be applicable to what orders? All orders with booked statuses, or all orders which are not yet ship confirmed, or all orders not interfaced or all future orders entered after this price change is saved?
    I did'nt understand this question actually. I think the price change is done on an order to order basis, if it is done for a particular order I don't think so it would affect further orders. If i'm changing the price in my price list then surely it would affect future orders.
    5. Do I need to make this price change in the price list also?
    This depends on ur business situation. If the price change is permanent u can make the changes in the price list also. Our business situation demands a base price to be defined in the price list even though the price we enter at the order entry level is always different from what comes from the attached price list.
    Hope this helps you.
    Regards,
    Anil Wadhwa

  • Sales Order line item Partner Function issue.

    Dear Guru's
    I want to assign the (Employee response) partner function ER more than 5 times in Sales Order line partner function tab, but system is not accepting for that.
    Please suggest me how to over come this issue with out assigning the u201CERu201D partner function more than 5 times in sales order line item Partner determination procedure.
    Regards,
    Hari Krishna

    sent this to SD module (Sales and Distribution) Forum
    this is PS module and we do not deal with this object

  • How to update UDF of sales order line of closed sales order header

    Hello experts,
    We are using SAP 8.81.313  PL 05  and we noticed that through SDK using businessobject SAPbobsCOM.BoObjectTypes.oOrders,  we can't update an user defined field on sales order line for a sales order with header closed.
    calling the method  Update()   it returns 0  but actually the table field  was not changed !
    Also we noticed that It's possible to make an update of UDF of delivery line for a delivery with header closed.
    I don't understand why.
    Is it a bug or the expected behavior ?
    Our customer needs to change some UDF of sales order line even when the order header is CLOSED.
    Please help me.
    Many thanks for your time.
    Best regards
    Andrea

    Hi Elio,
    Yes from UI it's the expected behavior but through DI API  I could update an user defined field of sales order line even if the LineStatus is equal to "C" (Closed) but only if the order header is not closed.
    Regards
    Andrea

  • Mass Deletion of Sales order line items

    Dear Gurus..
    There is a transaction VA02 for change and deletion of sales order line items. it takes time to delete line item of sales order one by one.. is there any abap program to do this process..
    if so please let me know
    regards
    Saad Nisar

    Hi,
    You can use trx MASS with object type BUS2032 to change sales order items. Please check this link:
    Re: Mass deletion of  sales orders
    Or try LSMW.
    Regards,
    Csaba
    Edited by: Csaba Szommer on Apr 10, 2009 8:18 AM
    Edited by: Csaba Szommer on Apr 10, 2009 8:21 AM

  • Update a Customise status massage/Qty in Sales Order line at PGI

    Dear Gurus,
    We are new to SD and we are willing to implement a status update or the PGI Qty in the Sales order line level, at a PGI by using a Out bound Delivary or shipment document. We are willing to customise  condition group field  (VBKD-KDKG1) in addtional data A. is there a posibility of doing this or any other solution we can do for this. Your kind replies will be highly appriciated at this time.
    Thank.....
    Pubudu & Jeewana.

    Hi,
    It is possible through user-exit/Badi.
    To update PGI Status you can use user-exit "MB_CF001-Customer Function Exit in the Case of Updating a Mat. Doc." Or you can use BAdi "MB_DOCUMENT_UPDATE".
    To update Shipment document status you can use BAdi "BADI_LE_SHIPMENT-BadI: Shipment Processing".
    But how will you handle the partial delivery cases?

  • Tracking Number Information in B2B sales order line item

    Hello Experts
    Does anyone aware of the settings to be done to get tracking number (e.g tracking number given by DHL, Carrier Company) displayed on sales order line item.
    Following steps has been followed, but we can not see the tracking number at the line item level:
    Tracking the Shipping Status
    You can enable customers to track the shipping status of their Web shop orders using an external shipping provider. If the external shipping agency offers shipping information on the Internet, customers can access the shipping status directly via a hyperlink from the order. This enables customers to track their delivery during the shipping process.
    Prerequisites
    u2022     Your appointed haulage firm offers the shipping status tracking service.
    u2022     The haulage firm has assigned a bill of lading for each order and informed you of it.
    Activities
    1.     Call transaction VL03N in the ERP system.
    2.     Choose Display <-> Change.
    3.     Choose   Goto  Header  Partners  . Enter the data of the corresponding carrier.
    4.     Choose Shipment. In BillOfLad, enter the tracking number.
    Folks, any help will be highly appreciated
    Thanks
    DJ

    Hi DJ,
    Most of the settings that are required to display the tracking number in the web shop are ECC dependent. The function module that gets the tracking related information in the Run Time is CRM_ISA_BASKET_STATUS_ENH.
    In the above function module at line number 383 contains the relevant logic to get the tracking related information from the ECC system. At this line number the function module BAPI_XSI_GET_VTRK_G is called remotely in ECC.
    ABAP Stack in ECC:
    BAPI_XSI_GET_VTRK_G (FUNCTION MODULE)
                XSI_CREATE_TRACK_URLS (FUNCTION MODULE)
                                    TRK_GET_URLS (SUBROUTINE)
                                                    XSI_CREATE_TRACK_URL_MULTI (FUNCTION MODULE)
                                                                    XSI_CREATE_TRACK_URL (FUNCTION MODULE)
    Transaction Codes where the settings need to be done in ECC:
    1.     VTRC - Maintain Express Delivery Company
    2.     0VVT - Set Up : Express Delivery Company
    3.     VTRK - Parcel Tracking
    Database tables relevant for Tracking in ECC:
    1.     VXSITDU u2013 Express Delivery Company : URLs
    2.     VXSITDL u2013 Express Delivery Company Data Field
    3.     VTRKH u2013 Tracking Data Header
    4.     VTRKP u2013 Tracking Data Item
    5.     VLBL u2013 Express Delivery Company Data Field
    6.     TCAVAR u2013 Carrier URL Connection (Substitution of Variables)
    7.     TCAURL u2013 Carrier URL Connection
    8.     EKES u2013 Vendor Confirmations
    Best Regards,
    Chanakya Reddy

Maybe you are looking for

  • HT201272 Some of the songs i purchased were not completely downloaded

    I just purchased an album and some of the songs weren't completely downloaded. Can anybody help me?

  • Is it possible to receive signals from third party WSN nodes?

    For the research on advanced WSN applications it might be beneficial to have a radio gateway being able to communicate with nodes of different manufacturers. For example programmable nodes using ZigBee or the Texas Instruments SimpliciTI protocoll. I

  • VoiceMail Applescript

    Hi, I am trying to write an applescript that works as follows: If Mail.app receives a message from my phone provider that contained a voice mail message (just an email with a WAV attached) it would: 1) Read the body of the message (e.g. "You have a v

  • Addons gone or de-activated suddenly

    Thanks for attenion. I am using a Windows System (Windows 7 prof. SP 1 64-bit system) with autom. updates. D-Data shareware totall protection, newest version, automatic updates for maleware-list. Using firefox version 31.0. Users: Me as admin, me as

  • GNOME screensaver won't start!@!$%

    for some time now I have not been able to launch gnome-screen-saver, either from a gnome-panel or from the command line.  from the command line one sees the following error: ** (gnome-screensaver:2468): WARNING **: Failed to get session presence prox