To delete delivery related to WM picking
Hi
I have a case.
The user created outbound delivery, picked the stock (WM picking) and moved the stock to shipping interim storage type.
Instead of using LT0G to cancel/revserse the confirmed TO, the user moved the stock by creating manual TO and moved the stock from interim shipping area to actual bin.
Now system does not allow to delete the delivery bcos the WM status is completed.
And even if the stock is moved back to interim storage area, system does not allow to delete the delivery bcos the Quant is not present linked to outbound delivery.
Can anyone suggest the solution?
Thanks in advance.
Pratap
Hi Pratap,
1)
I could not cancel / reverse TO by creating a dynamic bin, bcos they are using a bin ISSUE for outbound process.
As I understand you are using fixed storage bin in your interim storage type. Please try to move the stock to this fix (not dynamic) bin and try to reverse the picking.
2) Did you try to solve it by debugging? This does not mean the modification of data table manually, it means you influence the program run to achieve your goal. This is exceptional of course.
Regards,
Csaba
Similar Messages
-
Proforma Invoice program ---delivery related with billing block on SO
Hi,
I need some help on Profoma Invoice--delivery related.
I have created a Sales order with Billing block, then created delivery and picking,handling but no PGI.
Now I am trying to create a Proforma invoice for delivery (before PGI ),
I can create the Proforma invoice manually using VF01 by selecting the document type and by delivery number input in the docs selected.
But I want to create the proforma for the above mentioned scenario using batch job, I have tried both RV60SBAT and SDBILLDL but both of them are not working.
Both the program are fetching delivery for proforma creation if PGI is done (Even though the billing block is set on Sales order)
or Billing block is not there on Sales order if PGI is not done.
Thanks and Regards,
AnandaHi,
The programs below are for the specified transactions below.
"SDBILLDL" program is for the transaction "VF04" which is for creating the Final invoice(Original Invoice) i.e. Billing due list.
Where as "RV60SBAT" is for the T.Code "VF06" which is for creating the invoice in background.
So these two programs will not create proforma invoices.
Incase if you have only proforma invoice not final invoice,then maintain this proforma invoice type in "VOV8" T.Code under order/delivery-related billing.thwn you can create Proforma invoice by using Vf04/VF06(By using these programs).
Regards,
Krishna. -
Deleted Delivery Unable to do the Goods receipt reversal
Hello Experts,
Instead of deleting the particular delivery line items, user has deleted the STO delivery completely by using VL02N transaction code. Now in the purchase order history we have only GR and invoice document related to STO. (We already reversed the billing and deleted the delivery)
Now we are unable to reverse the GR and getting the error "Delivery cannot be updated". This error because of the deleted delivery.
Please advice how to proceed further. Now the overall from accounts it is showing imbalance.
Please note, we are doing STO between company code to company code.
Regards
Rifaie MSatish,
From you, i understood that for cancelling the GR i have to give delivery number reference.
But in my case the delivery number itself deleted. I do not have delivery number in purchase order history. This has been deleted by the end user by mistakenly.
Please advice
Regards
Rifaie M -
Deleted delivery and inspection lot tracking
dear all,
i have an issue please guide me
the senario is
At my client , there is a delivery happening in vl01n i will pick the required quanity and send the lot to the QM for final doc audit then after the QC is passed it will released from the QM then i will do the Post Goods Issue .
the problem is here in the client i have created a delivery document and i have picked the quantity and issued for the final doc audit report , during that time the goods which have been picked will be in the Scheduled for delivery .
Now if the quality check fails for( final doc auidit ( ie for pallletization ) or some nails and packing is not done properaly ) it has to go for rework for the final doc auidit .
If the quantity is rejected and gone for rework. i will have to delete the delivery document and create a fresh delivery doccument .
because only if i delete the delivery document what ever the quanity is there in the Scheduled for delivery will be moved backed to the Bonded store .
and then only it is possible for the goods to be picked and send for QC and after QC pass PGI will be done
My problem is is there any connection can be done from the deleted delivery document and the fresh delivery document
so that
i can able to track the inspection lot generated in the both the deliveries i.e ( the deleted one and the fresh delivery document for which the PGI is done )
Based on this i can create a zreport for the QCheck , becasue the client wants to have a link between the inspection lots generated between the two delivery documents and based on that they wanted to track the inspection lotHi
regarding the link between two delivery documents , as you are deleting the delivery the delivery document is not there in any table so you wont get the link even in the document flow table. or delivery table .
So its not feasible to generate link.
I would suggest a different approach ,pl investigate more before you go ahead,
You can have seperate storage locations one with internal QC ,Other FG store and third final dispatch or BSR store.
When material is transferred from production to quallity store a inspection lot is generated .once it is cleared QM will have stocks in FG store .Materials in FG store should be availble for final audit and only material which is approved in all respects in transferred to BSR store from where it is immediately dispatched. so QM and other departments can always access the stock in QM for internal inspection , rework an dfinal dispatch through store location instead of delivery tracking.
I hope this helps
regards
Mandar -
Hello All,
I have a sales order for which the delivery is deleted.I want to see the delivery details.I have the delivery number but am unable to find it either in vl03n or Likp table.
I am also not able to find it in the document flow of the sales order.Is there any transaction or table where i can see the details for the deleted delivery.
Thanks in advance.Hello,
I solved this problem this way. Because the delivery is realy deleted from SAP you can use only a data paralely created with your delivery.
VL22 - Change report - no all information are there
MB51 - Material document list
- Reference field of the selection screen is your deleted delivery number - insert with * before and after for exampel 80011313. You will get info about material movements related to your delivery. When you double-click material document there detail about article number, batches, partner/customer etc.
I hope this help although this is a litle late after your question. -
Finding deleted Delivery Reference
Great gurus
Delivery is Sales Order Related. Once Delivery PGI is made . and afterword we Reverse the PGI, Delete the delivery. is there any way we can finde out the Delivery & Sales Order reference ( After deleting delivery ).
Regards\AdnanDear Babu,
No we can't find the Delivery & Sales Order reference After deleting delivery .
I hope this will help you,
Regards,
Murali. -
Downpayment For Delivery Related Item.
Hi SAP experts,
I have basically configured the downpayment settings for both SD and FI. As of this point I am able to process a down payment request and able to clear the down payment request which eventually shows the down payment request cleared in the document flow.
After performing the picking and post goods issue on the delivery, and when it comes to perfroming billing on the balance of the order i encounter an error message 'Order ZXX and Item category TAO cannot be billed'.
I would like to know has enyone encounter such an error before in a scenario of a delivery related billing.
Hope to hear from someone.
Regards
KenHi Ken
As you are facing the error Order ZXX and Item category TAO cannot be billed' check the Billing relevance of item category TAO in VOV7. Also check with what billing document type you have done down payment request.
I think you have done delivery related billing where as it should be order related billing .that is the reason you were facing the problem
Check the link which has down payment configuration
[https://forums.sdn.sap.com/post!reply.jspa?messageID=5084683&useDraft=true]
Regards
Srinath -
Find ref.doc.of a deleted delivery
Hello Experts,
I would like to ask how can I find the reference documents of an already deleted delivery?
I mean how can I find for ex.the sales order document number which was related to an already deleted delivery?
I would like to mention that I know the deleted delivery number & I want to know for ex.with which sales order number was related at the flow before deletion.
If you could please be so kind and inform me also about the relevant tables & fields which gives this information.
Great thanks in advance.!!!
Kind Regards
GeorgeHi,
As far as my knowledge goes, you will not be able to find out the sales order number by using a deleted delivery document number. The reason is, when you delete the delivery, the reference will be deleted from VBFA table which stores the details of document flow. As there is no reference maintained, you will not be able to retrive the data.
However, you can try to get the sales order number if you know
a. Customer PO number for which the sales order is created (VA02 / 03)
b. Sold to party + Material combination (VA05)
Hope this helps.
Thanks
Mukund S -
OSS notes for a Deleted Delivery
Hi Experts,
We have a strange issue. One of the users deleted the deliveries for an order. We now want to delete the Order too. But we are unable to track the order.
Since delivery is deleted, it is not possible to identify the related Sales order number or the materials attached to the delivery.
do we have any OSS note for this ?
Thanks,
ArthyDear Lakshmipathi,
Thank you for your valuable suggestion. But we actually are trying to create a shadow table or a backup table to record the deleted delivery details in future. Could you suggest what this table should be like,how and what details should we capture and how the new table should work in order to capture the deleted delivery details?
Please let me knowif you have any possible suggestions for creating this shadow table.
Thanks in Advance,
Regards,
Arthy -
Auto generate IDOC Changed/Deleted Delivery
I'm able to manually send delivery information via EDI port when VL02N --> extras --> delivery output but i'm unable to create a new IDOC when changing a delivery or deleting a delivery and hitting save. Can someone help me understand what has been missed? I would like an IDOC to generate anytime the document is changed or deleted.
Config:
message type: LAVA
We20:
I'm using LS with DESADV. Message Control setup with V2, LAVA, SD05
VV21:
Setup output based on document type and set for EDI.hi Philip,
>>>Can someone help me understand what has been missed? I would like an IDOC to generate anytime the document is changed or deleted.
you're on the right forum for this:)
for deletion you have two choices:
a) write your own code
b) turn on DWMS (decentralized warehouse management system) which will output any changes to the delivery on a particulat storage location - I've used this functionality on a few project and it was always the best choice for any delivery related outputs especially with relation to external WMS
so I'd rather go for DWMS if you have any MM knowledge
BTW
there are a few DWMS config documents on the internet so you should be able to do it easily
Regards,
Michal Krawczyk -
Call on delivery related and order related billing.
Dear Friends,
I have a sales order with Service item and also a finished item, here service item is order relevant billing and materiel is delivery related items.
But my call is, to do combined billing for both service and material. When going to vf01 it should be automatically pick both
service item and material item.
Regards
Siva.Hello,
This is very much possible in SAP Standard. There are two ways to do it:
1. T-Code: VF01 - Enter the Order Number & Delivery Number, select both items & execute, system will combine necessary items from Order & Delivery into Single Billing Document.
2. T-Code: VF04 - Here Enter necessary details & select check boxes - Order-Related & Delivery Related & system will do the needful.
Hope this helps,
Thanks,
Jignesh Mehta -
Get the item storage loaction of deleted delivery(DO)
Hi All,
Is there anyway to find the storage location for items of deleted delievry order ?
Thanks in advance.
Regards,
TNRHi
I think, you can NOT retrive the deleted Delivery document to see the storage location of the item.
One way to find is , check whether storage location specified for the item in the Sales order (if you have not deleted the Sales order yet. In standard, storage location is not determined in the Sales order).
Another way is to see the assignment of storage location determination (Assign picking location) in IMG.
Find out the Shipping point for the item, Plant and Storage condition from the material master data from the "Storage 1" view.
See the assignment , what is the Storage location to be determined for this combination of Plant , Shipping point and Storage condition.
Edited by: pradyumna on Sep 19, 2009 12:04 PM -
Possible to delete delivery even though Transfer Order exists
Dear Experts
I am able to delete deliveries even though Transfer order exists and confirmed. How can I restrict this as in this Transfer Order remains open without delivery in Place.
Regards,
Neeraj SrivatavaHi Frenchy
Many thanks for your valuable inputs.
What is the reason I can delete delivery even after Transfer Order is confirmed. This will leave the Picked stock stranded in Dispatch area which cannot be linked with any delivery.
Regards,
Edited by: NEERAJ SRIVASTAVA on Aug 13, 2008 2:42 PM -
Delivery document not being picked while creating shipment document
Dear All,
Issue is regarding creation of shipment document.
As i am creating shipment document in VT01N, am unable to get the delivery doc . ie., delivery document is not picked in shipment creation.
I have created a sales order, picking is completed n saved, PGI not yet been done.
Am unable to create a shipment document due to delivery document not being picked.
i/p's will be of great help.
with regards,
VijayashreeDear all,
The issue is solved.
As the Route was not picking in Sales Order so the delivery was not picked in shipment creation.
Route determination setting was not correct.
Regards,
Vijayashree -
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
Maybe you are looking for
-
How do i update an iphone 3gs to iOs 7
-
Hi All, I have added 2 custom fields in the additional tab of the BP transaction using BDT. I have enhanced the table BUT000 with the above two fields using append structure. But now i got following few issues during saving the BP. 1) Not able to sav
-
Pdf for missing files ?????
ok , I'll have to rephrase my question. after transferring my music using i pod as a hard disk i am trying to put my files back on my i-pod sinching from i tunes.I got an error message for 100 files with which there was a problem. is there a way to p
-
Can anyone tell me what is a database cursor I have come accross a statement that " WAIT must not be used between Open SQL statements that open or close a database cursor." Can some one explain me this?
-
Injecting DTMF event in the midst of RTP media streaming?
Hi all, I am attempting to implement a mechanism that allows me to inject DTMF RTP events in an RTP media stream. This is useful in telephony applications where the users are prompted to enter digits while being served by automated voice services suc