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 Divert the changes to cdhdr table instead of dbtablog?

Former Member
0 Kudos

Hai everybody.

I am new to this forum. i got a job in abap recently. The below is my requirement.I want solution for this one. Anybody plz help me.

I am having ztransaction.

The change logs already were captured in DBTABLOG for table ZWPRFRUND (in transaction ZWPG).

The only report which is currently used to get the change logs is RSVTPROT

Now my requirement is,

we need to display the change logs in the form of ALV.

We should divert the changes to CDHDR table instead of DBTABLOG, then we can use the RSSCD100 to display change logs.

The Important items for the change LOG needed in case of changes to table in “ZWPG” are,DATE ,TIME,USER,FIRST NAME,FILED NAME,OLD VALUE,NEW VALUE

The above fields need to be displayed in the grid. In the above list “FIELD NAME” denotes any field of the table in the transaction in “ZWPG”

Thanks & Regards,

Sujatha.T.

4 REPLIES 4

former_member480923
Active Contributor
0 Kudos

try this FM and enter the required values: S_AUTH_WRITE_CHANGEDOCUMENT. The Values will be entered in CDHDR

Hope That Helps

Anirban M.

0 Kudos

hi mukherjee,

Thanks a lot for u r Reply. I will try using that FM. Nobody has replied for this question.Thanks a lot.

REgards,

Sujatha.

Former Member
0 Kudos

Check out my post in this thread:

You need to define a change document type and generate relevant code for this.

Andrew

0 Kudos

hi Andrew,

Thanks a lot for giving the reply. I will try that one. but my TL has created one object in SCDO.He said that use that object. The name is z_zsutext.

Thanks & Regards,

Sujatha.T