Quantity Allocation

Hi,
We are in the process of finalizing our blue print,Need more
clarification on the "Procurement Quantity Allocation". It has been
identified as not a standard feature of SAP,would like to know the
possibilities from experts.
Our core business falls in the category of tyres trading,facing a problem in
allcating quantities since supply is less than demand. As a business
practice our procurement department collect the orders from all the
sales man every month,consolidate it as a single order and pass it on
to supplier.Our lead time is normally 90 days from the date of order .
The same practice will be followed every month. Supplier will come back
to us based on the availability and many times the quantities are less
than requested. We need to allocate this quantity to various salesman
based on various factors and make sure that this is the qty available
for him for the 4 th month(if we are ordering in November it is for
march month sales).
If this practice is not followed strictly , many times the person
requested the quantity will not be getting his allotment since the
sames is already booked by the other sales persons.
Either the person who has ordered is not selling it ends up in
increase of stock or the person who has not ordered selling it with out
allotment.
We expect our system will be accessed from more than 15 countries
it is not practially possible to control it manually. Would like to
hear it from you how the same business process can be mapped into SAP
and controlled effectively. The following depicts step wise details
1) Purchase requisition from multiple Sales man
2) Consolidated as a single RFQ and pass it on to supplier
3) Based on qty allocation from supplier allocate it to multiple
sales man
4) Send P.O to supplier and follow up with shipments
5) When the sales people are trying to book Sales order against the
pending P.O control it from allocation
Thanking You
Karuna

Hi,
This is possible in standard SAP via Product Allocation settings.
Regards,
Shailendra

Similar Messages

  • Manual quantity allocation per sales order

    Hi All,
    The requirement is as follows.
    My client want users to allocate quantity for sales order manually so that they can control quantity allocation for sales orders when there is shortage of stock.
    We do not want to use product allocation for this, So can anyone suggest if there is any other way to allocate the stock manually for sales order.
    Thanks in advance,
    JM

    Hi,
    This can be acheived by enhancement.
    You can use userexit MV45AFZB -userexit_source_determination for this.
    You need to maintain the Z-table for all the bottleneck material with confirmation quatity column.
    So everytime when you create a sale order for bottleneck material, system will check this table & irrespective of any order quantity, it will confirm the quantities mentioned in the table.
    This way you can maintain the logic & fullfil the above requirement
    thank you

  • ATP check partial Quantity allocation to Sales Orders

    Hi,
    Our client has three different sales order types for processing sales differently for the same materials.
    While doing ATP check they have a order of priority i.e ZOR1 -> ZOR2 -> ZOR3 with ZOR1 highest priority.
    For sales order type ZOR2 currently they donot have partial quantity allocation to sales orders.i.e if two orders, Order 1 created with 100 Qty and other Order 2 with 50 Qty and if ATP is 50 Qty.
    System is allocating material to Order 2 which has order quantity 50 ( Which equals ATP Qty )
    Now the client requirement is to configure system such that it does partial allocation to Order 1 ( order qty 100, where as ATP Qty is 50 ) i.e system should allocate even partial quantity to sales orders, that too in FIFO ( system should allocate ATP qty to order created first then next and so on )
    Please let me know what changes i need to do to achieve the above functionality in SAP system.
    Thanks
    Venkata Rama Reddy.K

    Dear Venkat,
    Please check the customer master for the customer which you have maintained in the 1st order. If the customer allows partial delivery, them the system will allocate the stock to the order which is created at first.
    At the time of ATP check(In Availability Screen), you do need to choose, One-time or System proposal, which will allocate the stocks partially to the 1st order as you don't have enough stock.
    Check out the settings in the customer master (for the customer in the 1st sale order) under Shipping Tab.
    Partial delivery per item  D/A/B
    Max. partial deliveries    >0
    (And more thing, you mentioned that sales document type is having priority. As of I know - there won't be any setting which will set particular sales document type with high priority. If you are really doing that kind of setting - update the same in this forum - it may help others..)
    Hope it may help you.
    (Venkat: Has your issue solved? Kindly update in the forum - if your question is answered)
    Thanks,
    Venkatesh.S.P.

  • Material Quantity Allocation

    Scenario is like that:
    Currently User allocates the product quantity in legacy system on different levels such as Sales Office, Sales Group etc for the customers. Now the user wants to enter the product quantity in SAP and based upon that user want to perform the analysis on the Product quantity and the billing quantity.
    Example, User allocate the product quantity 100 PC of material A for the month of november 2009. Customer uplifts the material A quantity of 20 PC in the month of november 2009. Based on the exampled scenario user wants to analyze the figures i.e. Allocated quantity of product V/s billed quantity.
    How can I achieve this ????????????????????????????
    Please keep in mind that User allocates the product quantity on different levels such as Sales Office, Sales Group etc. Because in sales, the employee performance or sales office performance is calculated or examined based on the Target Sales V/s Billed Sales. I hope that this will clear my question.
    Regards,

    Sir,
    this is the case with some selected material. for others i am able to create the order properly. some times stock is of only one box but it is allocating for 2 boxes while doing allocation run. how can it be? moreover the material for which am creating the sales order is new material that means not more stock available.
    Thanks

  • Userexit for quantity allocation

    Dear All
    Please suggest a user exit the the below scenario,
    A provision in SAP to be provided for allocating quantity of the product  on a weekly basis on either a customer or a customer group.   User should have an tabular interface for allocating quantity
    While booking the Sales order, after keying in the product, schedule date of delivery and the quantity (after material availability check), the system should: Check the pending quantity against the customer in allocation table. In case the customer is not found check for customer group.
    Scenario 1
    In case the system found a record for customer with pending quantity more than schedule quantity of the sales order. The system should:
    •     Book the order
    •     Reduce the pending qty (Pending qty - schedule qty)
    •     Calculate the expected date of delivery to the customer.
    Scenario 2
    In case the system found a record for customer with pending quantity (more than zero) is less than schedule quantity of the sales order. The system should:
    •     Throw a message to the user, stating the pending quantity available for the customer. And the Week when Rest quantity will be available.
    •     On accepting: Change the schedule quantity
    •     Book the sales order
    •     Reduce the pending qty
    •     Calculate the expected date of delivery to the customer.
    •     On rejecting: Change the schedule quantity to zero
    •     Return to initial screen of booking sales order
    Scenario 3
    In case the system didn't find a record for customer and neither the customer group. The system should:
    •     Throw a message to the user, stating quantity not allocated for the customer.
    •     Return to initial screen of booking sales order
    Thanks
    Goutam

    Hi,
    This is possible in standard SAP via Product Allocation settings.
    Regards,
    Shailendra

  • Overdelivery tolerance- confirm quantity (allocation) not getting updated

    Hi All
        I have a strange problem......could this be a gap with the SAP program
    I am using over and under delivery tolerance (say 10%)  in the customer master - sales - shipping tab. Now i create a order with
    Order qty          1100
    confirmed qty   1100
    delivery qty      1200      (since we have maintained 10 % over delivery tolerance)
    Now i want to update the order to 1200 for two reasons
    1) to keep the order in sync with delivery
    2) to update the allocations (this is because we have Allocation activated and not ATP at schedule line level)
    So when i go into the order and update the line to 1200 the following happens
    Order qty             1200 
    confirmed qty      1100   (not updated)
    delivery qty         1200       
    So my confirm qty is not getting updated to 1200 and hence my allocation tables are not getting updated. The same is getting updated when we have ATP at schedule line level. Could this be a gap with SAP that i dosent update allocations in this scenario.
    The reason it dosent confirm is that it assumes that the delivery is completed and since we have tolerance maintained it assumed to be a good scenario.
    Please help.
    Vikas
    Edited by: Vikas BhumiReddy on Oct 28, 2009 5:27 PM

    I am also facing the same issue. Have you found out any solution regarding this.

  • Quantity allocation to the Purchase and Sales orders

    Hello!
    We are hitting an issue that the stock is being confirmed for Purchase Orders and Sales orders with delivery date in the future. We try to remove ATP quantities and make stock available for orders newly entered, but with short delivery time.
    What system does, it allocates it back after a moment. There is no rescheduling job for this plant.
    I have a funny impression that running CO09 the quantities are confirmed back to the orders- for some reason prioritising PO's...
    Did you have this situation before? is it normal? How to prevent the quantities to be allocated back to the orders with delivery date in 3 months agead for example?
    thanks a lot for help!
    cheers
    bea

    Hi Beata Iglewska ,
    I believe this is the SAP standard behavior if you have defined the Checking Group for Availability Check with cumulative, confirmed quantities assigned as 3. This is defined in transaction code OVZ2
    Hope this will help you.
    Thanks and Regards,
    Atul

  • Schedule quantity allocation based on latest delivery date.

    Hi Friends,
    Could any help me taht hoe can handle the below situation.
    We have gone live recently, we having difficulty on the Available to Promise (ATP) functionality of sales orders. The current process has a sales order with multiple scheduled delivery lines for dates upto 13 weeks in the future. However, they will only manufacture the parts demanded in the sales order a few days before shipping. Therefore, at sales order entry, the parts are never available.
    Now user as changed the customization settings that turn-off ATP for KB order types.
    While I have turned off ATP for KB orders, SAP is still u201Callocatingu201D the available inventory to sales order schedule lines on a FIFO basis as the order is keyed with no apparent consideration to scheduled ship date. All the on-hand inventory appears to be u201Callocatedu201D the first sales order that is keyed. Then when we try to create a delivery for the second sales order entered that wants to ship today, it indicates that you do not have enough to ship.
    Now what are the setting we have to do to reallocate the available quantity for the oders which they wanted to ship today.
    Please give the suggestion to handle this.
    Thanks & Regards,
    Jayalakshmi
    Edited by: Jayalakshmi Yamanapalli on Nov 10, 2009 6:32 AM

    Hi,
    Thanks for all of your response.
    Actually the issue with MTO products. when creating sales order for MTO products, the stock will be posted against sales order stock only irrespective of the schedule dates.
    Now my client requirment is for new order which is creating today, he wants ship the phisical existing quantity (which is already allotted to specific sales orders) against this new order.
    As per my knowledge it is not possible. My view is we can do transfer posting using 413 movement type as special stock indicator as E. I don't know whether it is a suggestable solution or not.
    Could you please let me know for  both MTS and MTO products also can we do this through CO06 backorder processing.
    Thanks & Regards,
    Jayalakshmi

  • PCA - Quantity Allocation structure

    Hi,
    Could u tel me PCA wise quantity allocatation,  if it is possible what are the steps i need to follow. our main requrement is PCA wise balance sheet and client want to see stock as well as values and second point client having a  manufacturing palnts on different location ..single sales point .so any difference / scrap / shortage are found to be allocate pca wise.
    Regards.
    Vinu.

    hi

  • No confirmed quantity allocation in sales order

    Hi friends,
    I have a scenario where a sales order has 5 items to be delivered.Now the problem is that  i recieve confirm quantities for 3 items by going into schedule line tab at the item level and checking the availibility check.
    Iam not getting the confirmed stock for the remaining 2 items
    I have also reserved the stocks for that particular customer.
    Please suggest wat should be done
    ajay

    do u mean to say u have 5 line items in a sales order out of whcih 3 line items  are confirmed and the remaining 2 line item were not confirmed..??
    Check whether  these 2 line items are relevant for delivery or not...check this out at item relevncy indicator at item and schedule line categories.
    Thanks & Regards,
    Shaik Hussain

  • Updating product allocations

    Hi,
    Product allocation is maintained at component. When I create sales order at parent material, allocation check takes place at component level (MATP is used). e,g ,incoming quantity (allocation) is 20 units.
    When I delete the corresponding ATP tree, the allocation quantities from the DP planning book in which allocations of the component are maintained is not getting updated.
    But when I delete sales order, the allocation situation in DP planning book is getting updated i.e. incoming order quantity (which was 20 units earlier) becomes 0.
    Query - so what is the element based on which the allocation quantity in DP planning book is getting updated when sales order is created ?
    Is it not based on ATP tree structure?
    thanks in advance..
    Regards,
    RS

    Hi Michael,
    Thanks for your response,
    So sales order is the element which controls the updation of the allocation table.
    If ECC is already working and allocation functionality is to be started using APO. Are the following steps correct ?
    1. Maintain allocations in APO
    2. Transfer only sales orders (existing) from ECC to APO
    3. Carry out availability check based on sales order priorities, in order to consume allocations. This is for initial consumption of allocations.
    4. Tranfer receipt elements data (e.g. stock, SNP planned orders)
    5. Re-ATP check for the sales orders in order to give the cofirmation dates based on receipt elements.
    The scenario is MTS....
    Insights in this area will be appreciated.
    Regards,
    RS
    Edited by: sap_apo31 on Dec 13, 2011 9:41 AM

  • Material allocation to different Plants

    Hi,
    We have the follg business scenario:
    Plant A supplies to Plant B, C, D etc., Material Requests from Plants B, C, D etc., to Plant A is in the form of STO. We want to allocate Parts from Plant A to these receiving Plants based on customer specific priority / logic (like Date of STO, Lead Time etc.,). Based on the quantity allocated, Goods Issue should be posted to the respective STO at Plant A. Since the volume of transactions are high, we want to carry out allocation through System and then post GI.
    Through which functionality in R/3 can the above process be addressed ? Or is there any workaround ?
    Thanks.
    Raj

    Hi,
    Thanks for your immed response. I have set SPK to enable STO between Plants B, C, D etc., to Plant A. There is no prob in this. Our actual reqmt is as below:
    Let's say MATNR 12345, Stock at Plant A = 5 pcs
    Let's assume the follg STOs from other Plants:
    2 STOs from Plant B each on Day 1 and Day 2 for Qty = 1
    2 STOs from Plant C each on Day 1 and Day 3 for Qty = 1
    2 STOs from Plant D each on Day 2 and Day 3 for Qty = 1
    Based on Stock at Plant A, we want to alloc (an then post GI) as under:
    For Plant B, Alloc = 1 + 1
    For Plant C, Alloc = 1 + 1
    For Plant D, Alloc = 1
    i.e., Plant A decides to send 2 pcs for Plant B, 2 pcs for Plant C and  only 1 pcs to Plant D. This is based on first come first serve basis.
    The allocation priority is what we are looking for.
    Is there any feature to achieve this as the volume of transactions are high ...
    Thanks.
    Raj

  • How to release batch number that's allocated in a "closed' sales order

    Hi,
    Does anyone knows how to release batch number that's allocated in a "closed" sales order? I'm using SAP B1 2005B PL42.
    This batch number 'A' was allocated in the sales order. However, when this sales order is copied to multiple delivery orders, one of the delivery order's batch number is changed to another batch number 'B'. The sales order had changed status to "closed" as full quantity is copied to Delivery orders. But from the batch number trans. report, the remaining quantity of batch number A is still "allocated" (I think due to bug in SAP B1) although the sales order is closed.
    Please help. Thanks!
    regards,
    sianghing

    Hi Suda,
    Thanks for reply. But I realize that batch number allocation in sales order is a hard allocation. We cannot use batch number quantity allocated in that closed sales order into another Sales Order or Delivery Order anymore.
    Thanks,

  • Delivery Notes Generation Via Pick List

    Am trying to generate delivery notes off pick tickets and i can't find any code example. I now came up with the following code but am having issues when items are in multiple Bin Locations.
    Public Sub Sales2Delivery() '(ByVal OrderID As String)
            Dim OrderID As String = ""
            Try
                Using connection As New SqlConnection(StaginConn)
                    'Dim command As New SqlCommand("SELECT DocEntry from ORDR with (nolock) WHERE NumAtCard = '" & OrderID & "'", connection)
                    Dim command As New SqlCommand("SET DATEFORMAT DMY; select distinct top 5 o.DocEntry, o.NumAtCard from ordr O with (nolock) join RDR1 R with (nolock) on R.DocEntry = O.DocEntry join OPKL P with (nolock) on P.AbsEntry = R.PickIdNo where u_shipstate = 'Delivered' and CAST(O.docdate as date) >= '30/04/2014' and P.Status = 'Y';", connection)
                    connection.Open()
                    Dim reader As SqlDataReader = command.ExecuteReader()
                    ' Call Read before accessing data.
                    While reader.Read()
                        Dim BusinessOrders As Documents = DirectCast(vCompany.GetBusinessObject(BoObjectTypes.oOrders), Documents)
                        Dim BusinessDelivery As Documents = DirectCast(vCompany.GetBusinessObject(BoObjectTypes.oDeliveryNotes), Documents)
                        Dim orders As Documents = BusinessOrders
                        orders.GetByKey(Convert.ToInt32(reader(0)))
                        OrderID = Convert.ToString(reader(1))
                        Dim Delivery As Documents = BusinessDelivery
                        Delivery.CardCode = orders.CardCode
                        Delivery.CardName = orders.CardName
                        Delivery.NumAtCard = orders.NumAtCard
                        'Delivery.DocNum = orders.DocNum
                        Delivery.HandWritten = BoYesNoEnum.tNO
                        Delivery.Series = 8
                        Delivery.DocDate = DateTime.Today
                        Delivery.DocDueDate = DateTime.Today
                        Delivery.TaxDate = DateTime.Today
                        Delivery.Address = orders.Address
                        Delivery.Address2 = orders.Address2
                        Delivery.Comments = "Based on Sales Order #" + orders.NumAtCard & "."
                        Delivery.DocCurrency = orders.DocCurrency
                        Delivery.DocDueDate = orders.DocDueDate
                        Delivery.DocObjectCode = SAPbobsCOM.BoObjectTypes.oDeliveryNotes
                        Delivery.ShipToCode = orders.ShipToCode
                        Dim lines As Document_Lines = orders.Lines
                        'If (count > 0) Then
                        '    lines.Add()
                        '    lines.SetCurrentLine((lines.Count - 1))
                        'End If
                        Dim oPickList As PickLists = DirectCast(vCompany.GetBusinessObject(BoObjectTypes.oPickLists), PickLists)
                        oPickList.GetByKey(orders.Lines.PickListIdNumber)
                        For i As Int32 = 0 To (lines.Count - 1)
                            If i > 0 Then
                                Delivery.Lines.Add()
                                Delivery.Lines.SetCurrentLine(i)
                            End If
                            ' Set the Current Lines on the order
                            orders.Lines.SetCurrentLine(i)
                            Try
                                oPickList.Lines.SetCurrentLine(i)
                                Delivery.Lines.BaseEntry = oPickList.Lines.OrderEntry
                                Delivery.Lines.BaseLine = oPickList.Lines.OrderRowID
                                Delivery.Lines.Quantity = oPickList.Lines.PickedQuantity
                                Delivery.Lines.BaseType = DirectCast(SAPbobsCOM.BoObjectTypes.oOrders, Integer)
                                Delivery.Lines.BinAllocations.BinAbsEntry = oPickList.Lines.BinAllocations.BinAbsEntry
                                Dim rs As SAPbobsCOM.Recordset = vCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                                rs.DoQuery("select itemcode, price, dscription from RDR1 R where R.LineNum = " & oPickList.Lines.OrderRowID & " and R.PickIdNo = " & oPickList.Lines.AbsoluteEntry)
                                While (rs.EoF <> True)
                                    Delivery.Lines.ItemCode = rs.Fields.Item(0).Value.ToString 'orders.Lines.ItemCode
                                    Delivery.Lines.UnitPrice = CType(rs.Fields.Item(1).Value.ToString, Double) 'orders.Lines.UnitPrice
                                    Delivery.Lines.ItemDescription = rs.Fields.Item(2).Value.ToString 'orders.Lines.ItemDescription
                                    rs.MoveNext()
                                End While
                                rs = Nothing
                            Catch ex As Exception
                                Continue For
                                My.Computer.FileSystem.WriteAllText(_LogPath, ErrDetails.ToString, True)
                            End Try
                        Next
                        If Delivery.Add() <> 0 Then
                            ErrDetails.AppendLine(" Unable to create Delivery note for Order: " & OrderID & " <br /> " & vCompany.GetLastErrorCode() & ":" & vCompany.GetLastErrorDescription())
                        Else
                            ErrDetails.AppendLine("Successfully created Delivery note for Order:" & OrderID) ' & " as requested by " & UserEmail & ".")
                        End If
                        orders = Nothing
                        Delivery = Nothing
                        BusinessOrders = Nothing
                        BusinessDelivery = Nothing
                        My.Computer.FileSystem.WriteAllText(_LogPath, ErrDetails.ToString, True)
                    End While
                    'orders = Nothing
                    'BusinessOrders = Nothing
                End Using
            Catch ex As Exception
                ErrDetails.AppendLine(" Error generating Delivery note for Order: " & OrderID & " <br /> " & ex.ToString())
                My.Computer.FileSystem.WriteAllText(_LogPath, ErrDetails.ToString, True)
            Finally
                If Not String.IsNullOrWhiteSpace(ErrDetails.ToString) Then
                    My.Computer.FileSystem.WriteAllText(_LogPath, (ChrW(13) & ChrW(10) & ChrW(13) & ChrW(10) & "Errors encountered while registering data on " & System.DateTime.Now.ToString("F") & ".Errors:" & ChrW(13) & ChrW(10) & Me.ErrDetails.ToString), True)
                Else
                    My.Computer.FileSystem.WriteAllText(_LogPath, (ChrW(13) & ChrW(10) & ChrW(13) & ChrW(10) & "Application Ran successfully on " & System.DateTime.Now.ToString("F") & "."), True)
                End If
            End Try
        End Sub
    The Error message am getting is 1470000368 - The quantity allocated to bin locations must be positive.

    Am getting this error now is
    "1470000341 - Fully allocate item "1017494" to bin locations in warehouse "Isolo". Issue is we have items in multiple Bin locations and the items have been picked via the pick ticket. Is it also possible to generate the delivery note off the Pick List.
    The new code am using is
        Public Sub Sales2Delivery() '(ByVal OrderID As String)
            Dim OrderID As String = ""
            Try
                Using connection As New SqlConnection(StaginConn)
                    'Dim command As New SqlCommand("SELECT DocEntry from ORDR with (nolock) WHERE NumAtCard = '" & OrderID & "'", connection)
                    Dim command As New SqlCommand("SET DATEFORMAT DMY; select distinct top 5 o.DocEntry, o.NumAtCard from ordr O with (nolock) join RDR1 R with (nolock) on R.DocEntry = O.DocEntry join OPKL P with (nolock) on P.AbsEntry = R.PickIdNo where u_shipstate = 'Delivered' and CAST(O.docdate as date) >= '30/04/2014' and P.Status = 'Y' and o.DocStatus = 'O';", connection)
                    connection.Open()
                    Dim reader As SqlDataReader = command.ExecuteReader()
                    ' Call Read before accessing data.
                    While reader.Read()
                        Dim BusinessOrders As Documents = DirectCast(vCompany.GetBusinessObject(BoObjectTypes.oOrders), Documents)
                        Dim BusinessDelivery As Documents = DirectCast(vCompany.GetBusinessObject(BoObjectTypes.oDeliveryNotes), Documents)
                        Dim orders As Documents = BusinessOrders
                        orders.GetByKey(Convert.ToInt32(reader(0)))
                        OrderID = Convert.ToString(reader(1))
                        Dim Delivery As Documents = BusinessDelivery
                        Delivery.CardCode = orders.CardCode
                        Delivery.CardName = orders.CardName
                        Delivery.NumAtCard = orders.NumAtCard
                        'Delivery.DocNum = orders.DocNum
                        Delivery.HandWritten = BoYesNoEnum.tNO
                        'Delivery.Series = 8
                        Delivery.DocDate = DateTime.Today
                        Delivery.DocDueDate = DateTime.Today
                        Delivery.TaxDate = DateTime.Today
                        Delivery.Address = orders.Address
                        Delivery.Address2 = orders.Address2
                        Delivery.Comments = "Based on Sales Order #" + orders.NumAtCard & "."
                        Delivery.DocCurrency = orders.DocCurrency
                        Delivery.DocDueDate = orders.DocDueDate
                        Delivery.DocObjectCode = SAPbobsCOM.BoObjectTypes.oDeliveryNotes
                        Delivery.ShipToCode = orders.ShipToCode
                        Dim lines As Document_Lines = orders.Lines
                        'If (count > 0) Then
                        '    lines.Add()
                        '    lines.SetCurrentLine((lines.Count - 1))
                        'End If
                        Dim oPickList As PickLists = DirectCast(vCompany.GetBusinessObject(BoObjectTypes.oPickLists), PickLists)
                        oPickList.GetByKey(orders.Lines.PickListIdNumber)
                        For i As Int32 = 0 To (lines.Count - 1)
                            If i > 0 Then
                                Delivery.Lines.Add()
                                Delivery.Lines.SetCurrentLine(i)
                            End If
                            ' Set the Current Lines on the order
                            orders.Lines.SetCurrentLine(i)
                            Try
                                oPickList.Lines.SetCurrentLine(i)
                                Delivery.Lines.BaseEntry = oPickList.Lines.OrderEntry
                                Delivery.Lines.BaseLine = oPickList.Lines.OrderRowID
                                Delivery.Lines.Quantity = oPickList.Lines.PickedQuantity
                                Delivery.Lines.BaseType = DirectCast(SAPbobsCOM.BoObjectTypes.oOrders, Integer)
                                'Dim rs As SAPbobsCOM.Recordset = vCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                                'rs.DoQuery("select itemcode, price, dscription from RDR1 R where R.LineNum = " & oPickList.Lines.OrderRowID & " and R.PickIdNo = " & oPickList.Lines.AbsoluteEntry)
                                'While (rs.EoF <> True)
                                Delivery.Lines.ItemCode = orders.Lines.ItemCode
                                Delivery.Lines.UnitPrice = orders.Lines.UnitPrice
                                Delivery.Lines.ItemDescription = orders.Lines.ItemDescription
                                '            rs.MoveNext()
                                '            End While
                                'rs = Nothing
                            Catch ex As Exception
                Continue For
                My.Computer.FileSystem.WriteAllText(_LogPath, ErrDetails.ToString, True)
            End Try
                        Next
                        If Delivery.Add() <> 0 Then
                            ErrDetails.AppendLine(" Unable to create Delivery note for Order: " & OrderID & " <br /> " & vCompany.GetLastErrorCode() & ":" & vCompany.GetLastErrorDescription())
                        Else
                            ErrDetails.AppendLine("Successfully created Delivery note for Order:" & OrderID) ' & " as requested by " & UserEmail & ".")
                        End If
                        orders = Nothing
                        Delivery = Nothing
                        BusinessOrders = Nothing
                        BusinessDelivery = Nothing
                        My.Computer.FileSystem.WriteAllText(_LogPath, ErrDetails.ToString, True)
                    End While
                    'orders = Nothing
                    'BusinessOrders = Nothing
                End Using
            Catch ex As Exception
                ErrDetails.AppendLine(" Error generating Delivery note for Order: " & OrderID & " <br /> " & ex.ToString())
                My.Computer.FileSystem.WriteAllText(_LogPath, ErrDetails.ToString, True)
            Finally
                If Not String.IsNullOrWhiteSpace(ErrDetails.ToString) Then
                    My.Computer.FileSystem.WriteAllText(_LogPath, (ChrW(13) & ChrW(10) & ChrW(13) & ChrW(10) & "Errors encountered while registering data on " & System.DateTime.Now.ToString("F") & ".Errors:" & ChrW(13) & ChrW(10) & Me.ErrDetails.ToString), True)
                Else
                    My.Computer.FileSystem.WriteAllText(_LogPath, (ChrW(13) & ChrW(10) & ChrW(13) & ChrW(10) & "Application Ran successfully on " & System.DateTime.Now.ToString("F") & "."), True)
                End If
            End Try
        End Sub

  • User exit in Delivery after the SAVE button is pressed.

    When the Delivery gets picked and Post Goods issued , the Delivery quantity for example instead of 48,000 LBS may be little less say 47,345 LB. We need to update this number in the order quantity which will originally have 48,000 LBS.
    I need to update this quantity in the sales order VA02 after the delivery is saved. Whats the user exit AFTER the save button is pressed?
    Thank you in advance

    Hi,
    Check this User Exits related to Delivery,
    Delivery related exits
    V50PSTAT - Delivery: Item Status Calculation
    V50Q0001 - Delivery Monitor: User Exits for Filling Display Fields
    V50R0001 - Collective processing for delivery creation
    V50R0002 - Collective processing for delivery creation
    V50R0004 - Calculation of Stock for POs for Shipping Due Date List
    V50S0001 - User Exits for Delivery Processing
    V53C0001 - Rough workload calculation in time per item
    V53C0002 - W&S: RWE enhancement - shipping material type/time slot
    V53W0001 - User exits for creating picking waves
    VMDE0001 - Shipping Interface: Error Handling - Inbound IDoc
    VMDE0002 - Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0003 - Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0004 - Shipping Interface: Message SDPACK (Packing, Inbound)
    V02V0001 - Sales area determination for stock transport order
    V02V0002 - User exit for storage location determination
    V02V0003 - User exit for gate + matl staging area determination (headr)
    V02V0004 - User Exit for Staging Area Determination (Item)MV50AFZ1 - User Exits for Delivery Processing
    MV50AFZ2 - User Exit for Batch Quantity Allocation
    MV50AFZ3 - LIPS-KOQUI (Picking is subject to confirmation) determination
    MV50AFZK - The user exits in this include can be used to fill the condition tables for material listing and
    material exclusion (KOMKG and KOMPG) and product selection (KOMKD and KOMPD) with own data.
    MV50AFZL - In delivery creation process for sales orders there is the possibility to restrict the delivery creation to some order items.
    If these order items are member of a delivery group, but not all items of
    this delivery group are includes in the restriction range of the order item nubers, you can specify in this routine what to do.
    MV50AFZP - This user exit can be used to modify change mode of pricing screens in delivery processing.
    MV50AFZZ - Users Exit for Batch Determination; LIPS-LGORT determination
    Thanks & regards,
    Dileep .C

Maybe you are looking for