How the entries are made in CDHDR and CDPOS tables?
I have a dbtable ZTEST_DB which has one field (TESTFIELD). Its data element consists of change document enabled and I created a change document namely ZMYCHDOC in SCDO transaction and included this table and generated the function module ZMYCHDOC_WRITE_DOCUMENT .
I have written one report for adding record to dbtable.
DATA: itab TYPE TABLE OF ztest_db,
wa TYPE ztest_db.
PARAMETERS: test TYPE ztest_db-testfield.
wa-testfield = test.
INSERT into ztest_db values wa.
IF sy-subrc EQ 0.
After adding the record I could not find any new entries in CDHDR and CDPOS tables. I dint understand the concept. How the entries are made in those tables when database changes occur?
I have searched many threads. But could not find how the entries are made in those tables. Should I need to use that function module in my code to write the entries?