‎2005 Nov 30 3:54 PM
Hi All,
i am working on PO Create and Change Script.
where can i find the changed data whether the item is changed or not?.
Regards,
veeru.
‎2005 Nov 30 3:55 PM
‎2005 Nov 30 3:57 PM
Hi,
Check the table CDHDR & CDPOS.Pass the PO no. to field OBJECTID & you will get the details.
‎2005 Nov 30 3:57 PM
CDHDR fro Header data,CDPOS for changes in Item data.
regards
vijay
‎2005 Nov 30 4:09 PM
use the following code.
Select * from CDHDR into it_cdhdr where mandt = sy-mandt
and objectclas = <classname>.
(eg: <classname> could be ADRESSE3 for customer...same way try to use for PO the corresponding one.
If U want last change then use delete it_cdhdr comparing objectclas and it will leave the last one.
Same way do for CDPOS also.
CDHDR will give u the Object number which needs to be passed to CDPOS to fetch the changed data.
If helpful pl. reward the points.
‎2005 Nov 30 4:14 PM
From the sapscript/printprogram perspective I believe it is worth looking into these tables:
T166A
T166C
T166K
T166P
T166T
T166U
These tables should be populated when the form is called!