‎2007 Sep 25 2:50 PM
Hi everybody,
is it possible to generate a persistent class for a data table and automaticly get the Change document Features when some fields in the database table have Change documents activatet?
So i want to load a persistent object from the database and change a field then save the data and get the Change documents written.
Regards,
Florian
‎2007 Nov 18 8:35 PM
Hi Florian,
there are generated function modules for all Change Document Objects. Have a look in Workbench ... Change Documents.
If you defined a new table, you have to define a Changedocument for this purpose too.
For each table of the ChangeDocumentObject you have fo pass the old and new values.
Classic Abap.
1. Enqueue the Object
2. Get the Object Data from DB into internal tables ..._ old.
3. Copy the old internal tables into ..._new .
4. The User-Action happens on ..._new .
5. Update your tables (Update Module)
6. Call the generated fm of your ChangeDocumentObject
7. Commit .
If you use a persistent class you have to integrate the necessary steps at the right time.
Regards Josef
‎2007 Nov 21 3:14 PM