manish_patel
5th April 2007, 14:54
I need your favor for linking tdpur045/tdpur046 and tfacp200 tables. I had assigned one project to restore Return Purchase Order Data which has been permanently lost during archiving.
Tables to be recovered:
tdpur040 – Purchase Order Header
tdpur041 – Purchase Order Lines
tdpur045 – Receipts
tdpur046 – Purchase Invoices
Available Data:
tdpur050 – Purchase Order History
tdpur051 – Purchase Order Line History
tdinv700 – Inventory Transactions by Item
tfacp200 – Open Items (Purchase Invoices & Payments)
I want to link tfacp200 with tdpur045 for getting below data.
tdpur045.date=tfacp200.recd (Receipt Date)
tdpur045.iamt=tfacp200.amti (Invoiced Amount )
tdpur045.dino=tfacp200.disp (Packing Slip Number)
I tried to link the table as follows:
tfacp200.orno =tdpur045.orno
tfacp200.suno=tdpur045.suno
tfacp200.tpay =tfacp.tpay.invoice
tfacp200.appr=tfacp.matc.pur
but there is no fields like Position, Sequence in tfacp200 (tdpur045.pono, tdpur045.srnb). So it is difficult to link the tables. How this problem can be solve?
Generally we can link tdpur045 by selecting from tfacp200 if there is a matching entry for the purchase order, packing slip and receipt date.
But here we have to resore packing slip and receipt date from tfacp200 itself. Also If Invoice is linked with more than 1 order than purchase order filed of tfacp200 may be empty.
May be following logic to get the required data works:
tfacp200 table contains purchase order number. Equate tdpur045.orno with tfacp200 purchase order and get the transaction type and document number and using this combination make a query on tfgld410 and from tfgld410 get the purchase order, purchase order line#. In case if there are no records available in tfgld410, check in tfgld418.
But when I checked the some test data, the transaction type and document number of tfacp200/tdpur046 does not match with tfgld410/tfgld418.
Could we use tfgld410/tfgld418 tables combination with tfacp200 table since tfgld410 contains Order No and Position number, while tfgld418 contains the sequence number also?
Note: ILC is not implemented.
Tables to be recovered:
tdpur040 – Purchase Order Header
tdpur041 – Purchase Order Lines
tdpur045 – Receipts
tdpur046 – Purchase Invoices
Available Data:
tdpur050 – Purchase Order History
tdpur051 – Purchase Order Line History
tdinv700 – Inventory Transactions by Item
tfacp200 – Open Items (Purchase Invoices & Payments)
I want to link tfacp200 with tdpur045 for getting below data.
tdpur045.date=tfacp200.recd (Receipt Date)
tdpur045.iamt=tfacp200.amti (Invoiced Amount )
tdpur045.dino=tfacp200.disp (Packing Slip Number)
I tried to link the table as follows:
tfacp200.orno =tdpur045.orno
tfacp200.suno=tdpur045.suno
tfacp200.tpay =tfacp.tpay.invoice
tfacp200.appr=tfacp.matc.pur
but there is no fields like Position, Sequence in tfacp200 (tdpur045.pono, tdpur045.srnb). So it is difficult to link the tables. How this problem can be solve?
Generally we can link tdpur045 by selecting from tfacp200 if there is a matching entry for the purchase order, packing slip and receipt date.
But here we have to resore packing slip and receipt date from tfacp200 itself. Also If Invoice is linked with more than 1 order than purchase order filed of tfacp200 may be empty.
May be following logic to get the required data works:
tfacp200 table contains purchase order number. Equate tdpur045.orno with tfacp200 purchase order and get the transaction type and document number and using this combination make a query on tfgld410 and from tfgld410 get the purchase order, purchase order line#. In case if there are no records available in tfgld410, check in tfgld418.
But when I checked the some test data, the transaction type and document number of tfacp200/tdpur046 does not match with tfgld410/tfgld418.
Could we use tfgld410/tfgld418 tables combination with tfacp200 table since tfgld410 contains Order No and Position number, while tfgld418 contains the sequence number also?
Note: ILC is not implemented.