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

Persistence Classes and Changedocuments

FloPi
Explorer
0 Likes
828

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

2 REPLIES 2
Read only

Former Member
0 Likes
740

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

Read only

FloPi
Explorer
0 Likes
740

I hoped that the logic could be generated...