on 08-02-2018 10:15 AM
Hi All
Is there any way to trace all deleted Item Codes from Open or Closed Sales Orders?
Hi,
Try with below query to find deleted item from sales order,
SELECT T0.[DocNum], T1.[ItemCode] FROM ADOC T0 INNER JOIN ADO1 T1 ON T0.[DocEntry] = T1.[DocEntry] left join RDR1 T2 on T2.[DocEntry] = T1.Docentry and T2.[LineNum] = T1.[LineNum] left JOIN ORDR T3 ON T2.[DocEntry] = T3.[DocEntry] WHERE T0.[ObjType] = 17 and T2.[ItemCode] not in ( select T1.Itemcode from ADO1 T1 where T1.Docentry = T2.Docentry ) group by T0.[DocNum], T1.[ItemCode]
Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check the following:
select LogInstanc, * from ADOC where ObjType = '17' and DocNum = 'xxx'
You can refer to the following thread as well:
https://archive.sap.com/discussions/thread/1238760
regards,
Jitin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jitin
Thanks for reply.
Actually we need to trace in which Sales Order a specific item code has been deleted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
7 | |
7 | |
6 | |
6 | |
4 | |
3 | |
3 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.