‎2006 Jan 09 4:14 AM
Hello,
I don't know what is this change object concept(cdhdr,cdpos).Please can anybody explain clearly.
rgds
p.kp
‎2006 Jan 09 4:25 AM
Hi paluri,
"CHANGE DOCUMENTS" in SAP Terminology
Eg. :
Any change
in the material master will be detected
and a mail will be sent to the concerned
employee.
THIS WILL ALSO DETECT WHICH FILEDS HAVE CHANGED.
IT CAN ALSO GIVE, The Old Value, And The New Value.
2. This Mechanism is called CHANGE DOCUMENTS in
SAP Terminology
3. 2 Fuction Modules are Required.
(They will fetch necessary data from CDHDR,CDPOS)
CHANGEDOCUMENT_READ_HEADERS
CHANGEDOCUMENT_READ_POSITIONS
4. The First FM gives list of all
records ( with change no) which have changed.
5. Loop at the above and the second FM will
provide the details (old-val, new-val) for
each record.
6. While using 1st Fm, give docclass as 'MATERIAL'.
BCOS
the concept of change documents is applicable
to other type of documents also (depends upon
customization)
The tables are
cdhdr (header table)
cdpos (detail table)
HOPE THE ABOVE HELPS.
regards,
amit m .
‎2006 Jan 09 4:28 AM
Hi mittal ,
Thanks for quick response. Suppose i created one my trnasction and from that transaction iam updating
my table. Can get the changes made to this table. How it is possible.
rgds
p.kp
‎2006 Jan 09 4:31 AM
Kp,
You can activate change documents at the document level. So, when the changes hit the table, the change documents get triggered automatically.
regards,
Ravi
‎2006 Jan 09 4:59 AM
Hello,
I heard that we can achieve only this changes when we create the change object in scdo. How to do this.
rgds
p.kp
‎2006 Jan 09 5:12 AM
Hi paluri,
1. SCDO
For material master,
the Document type is 'MATERIAL'.
2. For knowing, what to do,
in SCDO,
Find 'MATERIAL' (from below textbox)
3. A new screen will come.
4. In that, all the TABLES (database tables)
are listed which need to be TRACED/MONITOR
for changes.
5. If u have some Z Table,
in SCDO,
click CREATE
6. It will ask for 'Document'
Give some Name and OK.
7. In the detail screen, give u z table.
8. Also see help
Help --> Application help
for reference purpose. it wil help a lot.
Regards,
amit m.
‎2006 Jan 09 5:48 AM
Hi mittal,
I tried it in same way. But after creating this iam not getting the changes in the cdhdr table.
rgds
p.kp
‎2006 Jan 09 6:00 AM
Hi again,
1. Fields - DATA ELEMENTS in table
Make sure that the respectvive data elements
for the fields of your Z Table
have been marked for Change Documents!
2. In SE11
see the fields - data element.
3. See tab - Further Characteristics
4. There is one check box - CHANGE DOCUMENT
Tick this and activate it.
Only those data elements which have
been marked for this purpose,
will be TRACKED for changes.
regards,
amit m.
‎2006 Jan 09 6:38 AM
Hi,
I assigned u the points. But it is not coming yet.
One more doubt. What is the functin module type update.
rgds
p.kp
‎2006 Jan 09 6:38 AM
Hi paluri,
1. Is your problem solved ?
2. I hope u have taken care of the following thins:
a) in scdo, u have pressed the button
'Generate Update pgm.'
b) data element - check box.
3. To view the change documents info,
in scdo,
select your changedocument code,
place the cursor on it,
and press F7.
(becasue in CDHDR, we also require
to know the object class)
so in sell, cdhdr,
just type your name in username,
and see ALL records,
and find out the one of your Z*.
from that check out the object class.
regards,
amit m .
‎2006 Jan 09 6:43 AM
Hi again,
1. But it is not coming yet
Pls see my previous reply.
2. What is the functin module type update
I suppose u are talking about se37 FM,
radio button 'Update module'.
Well,
This is also nothing but a Function Module,
meant for the purpose of
UPDATING DATABASE TABLES,
in ALL or NOTHING Fashion.
3. Eg.
MIGO Transaction,
Several tables are updated.
They are not updated in the program,
but,
all the SQLS, of these tbles
is PUT / BUNCHED inside a
FM (with update module type).
4. So what happens,
that if there is any error
ALL OR NOTHING happens,
and database integrity is maintained.
5. Moreover, since scren changees
do COMMIT,
it is necessary to BUNCH these
changes in a FM so that everything happesn
in ONE SHOT.
6. Moreover, the UPDATE FM
whenever, it is called,
it LOGS the request and its details,
in a special table.
5. Afterwards, when the main program calls COMMIT,
it carrys out the request of updating
the database tables.
regards,
amit m.