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

Detect change in table

Former Member
0 Likes
3,402

Hi All,

How can i detect if a value of particular item in a table has been changed. Is thr any field to achieve tht

1 ACCEPTED SOLUTION
Read only

former_member188829
Active Contributor
0 Likes
2,692

Hi,

Check CDHDR and CDPOS Tables

Hi All,

How can i detect if a value of particular item in a table has been changed. Is thr any field to achieve tht

8 REPLIES 8
Read only

former_member188829
Active Contributor
0 Likes
2,693

Hi,

Check CDHDR and CDPOS Tables

Read only

Former Member
0 Likes
2,692

>

> Hi All,

> How can i detect if a value of particular item in a table has been changed. Is thr any field to achieve tht

if the Change Document Object is associated with that Table and for the field Data element level change document flag is enable then you can track the changes of that field.

Tables realated are CDHDR and CDPOS.

Read only

RahulKeshav
Active Contributor
0 Likes
2,692

hi KT,

try to check table CDHDR, CDPOS for change in any field...

thnx

Rohit

Read only

Former Member
0 Likes
2,692

Check the DATA ELEMENT of the field to determine whethere CHNAGE DOCUMENT check box was selected or not in the 'Further characteristics tab'. If it selected then if any change is made an entry will be made in CDHDR and CDPOS tables otherwise not.

Regards,

Kiran Bobbala

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,692

There are mainly two ways of tracing data change in table.

- Programmaticaly via [Change Documents|http://help.sap.com/erp2005_ehp_03/helpdata/EN/cb/254340a49f6913e10000000a1550b0/frameset.htm] Look at [SCDO documentation|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=scdo&adv=false&sortby=cm_rnd_rankvalue]

- Dictionnary [Database log|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=databaselog&adv=false&sortby=cm_rnd_rankvalue] via activation logging of data element and technical attributes of table.

Regards

Read only

RahulKeshav
Active Contributor
0 Likes
2,692

hi kartik tarla

any update

Read only

Subhankar
Active Contributor
0 Likes
2,692

Hi Kartik ,

To track the changes in any field value for a table.....

1. go to TECHNICAL setting.

2. Check LOG DATA CHANGES check box.

3. To fetch the changes data use the FM

DBLOG_READ_TABLE.

CALL FUNCTION 'DBLOG_READ_TABLE'

EXPORTING

from_day = v_b_date

to_day = v_e_date

to_time = v_e_time

obj_list = i_cust_table

CHANGING

log_list = i_log_list[].

Read only

Former Member
0 Likes
2,692

Hi,

you can have CDHDR, CDPOS tables.

fetch the data from these tables. if there is any change you can directly apply DELETE statement on these tables.

Regards,

venkat