Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

sap script

Former Member
0 Likes
581

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.

5 REPLIES 5
Read only

Former Member
0 Likes
556

CDHDR and CDPOS Tables

Read only

Former Member
0 Likes
556

Hi,

Check the table CDHDR & CDPOS.Pass the PO no. to field OBJECTID & you will get the details.

Read only

Former Member
0 Likes
556

CDHDR fro Header data,CDPOS for changes in Item data.

regards

vijay

Read only

Former Member
0 Likes
556

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.

Read only

Former Member
0 Likes
556

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!