Application Development 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: 

How to get Long Text change log

0 Kudos
2,217

Hello

I have a requirement to get all the changes that were made to a long text object. I found that there is a program S_AUT10_REP that shows you these changes in ALV but I need to get these changes in my code to display it differently. Is there any way to extract this data?

All I know is that the data is somehow stored in the database tables STXH, STXL and dbtablog.

Thank you.

3 REPLIES 3

Sandra_Rossi
Active Contributor
1,362

STXH is the header table of Long Texts.

STXL contains the Long Texts themselves.

DBTABLOG is the table which stores the changes to all journalized tables.

By default, STXH and STXL are not journalized, probably because the volume of data would become huge. You can change this setting in SE11 > Technical settings > Log data changes. Be careful to ask administrators to purge this table from time to time.

You can find the code to read table DBTABLOG in Raymond answer to the question Get old and new values from DBTABLOG table | SAP Community + see additional comments.

0 Kudos
1,362

Thank you for your answer.

STXH and STXL are journalized in our system but I can't make Raymond's code to work, am I missing something?

Some data declarations are missing there and I have no idea what types should I give to some of the variables.

Thanks

0 Kudos
1,362

Did you look at the comments too?