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

Change Documents for Infotype Logging

Former Member
0 Likes
1,561

Hi

There are a few questions on change documents. Any help on these questions will be much appreciated.

1. Custom created Change Document Object: I wish to log changes made in PA infotypes using change documents (Not the usual v_T585a, v_T585b and v_T585c way). For the stated purpose, i performed the following steps:

a. Through transaction SCDO, created a custom change document object and added table PA0002

b. Generated the update program - Function Module Z_XX_WRITE_DOCUMENT was created.

However, the changes made in the Infotype0002 (personnel data) are not being logged in the change document. (These changes are reflected in the table logging activated for table PA0002 through SCU3.) Is there any step that i might have missed?

2. Already configured change documents: Change Document object HR_IT1024 is pre-configured and available under transaction SCDO. Changes made in the infotype are visible if i view the change document through RSSCD100 (it is both a transaction and report), BUT they are not visible through SCDO, if for that change document object, i press Goto -> Change document. Why is this and how can it be corrected?

3. Is it possible to view the change documents for a particular object (eg. an Infotype 1024) through the transaction screen of that object, instead of having to run the report RSSCD100?

Any help will be appreciated.

Thanks!

Joy Kaushish

Hi

There are a few questions on change documents. Any help on these questions will be much appreciated.

1. Custom created Change Document Object: I wish to log changes made in PA infotypes using change documents (Not the usual v_T585a, v_T585b and v_T585c way). For the stated purpose, i performed the following steps:

a. Through transaction SCDO, created a custom change document object and added table PA0002

b. Generated the update program - Function Module Z_XX_WRITE_DOCUMENT was created.

However, the changes made in the Infotype0002 (personnel data) are not being logged in the change document. (These changes are reflected in the table logging activated for table PA0002 through SCU3.) Is there any step that i might have missed?

2. Already configured change documents: Change Document object HR_IT1024 is pre-configured and available under transaction SCDO. Changes made in the infotype are visible if i view the change document through RSSCD100 (it is both a transaction and report), BUT they are not visible through SCDO, if for that change document object, i press Goto -> Change document. Why is this and how can it be corrected?

3. Is it possible to view the change documents for a particular object (eg. an Infotype 1024) through the transaction screen of that object, instead of having to run the report RSSCD100?

Any help will be appreciated.

Thanks!

Joy Kaushish

3 REPLIES 3
Read only

Former Member
0 Likes
1,027

Joy,

>

> 1. Custom created Change Document Object: I wish to

> log changes made in PA infotypes using change

> documents (Not the usual v_T585a, v_T585b and v_T585c

> way). For the stated purpose, i performed the

> following steps:

> a. Through transaction SCDO, created a custom change

> e document object and added table PA0002

> b. Generated the update program - Function Module

> e Z_XX_WRITE_DOCUMENT was created.

>

> However, the changes made in the Infotype0002

> (personnel data) are not being logged in the change

> document. (These changes are reflected in the table

> logging activated for table PA0002 through SCU3.) Is

> there any step that i might have missed?

>

<b>To log changes into the change document objects that you have created, you must call the the generated function module and pass the changed variables into it. This will not be possible if you want changes tracked for all the standard SAP transactions which update this table.</b>

> 2. Already configured change documents: Change

> Document object HR_IT1024 is pre-configured and

> available under transaction SCDO. Changes made in the

> infotype are visible if i view the change document

> through RSSCD100 (it is both a transaction and

> report), BUT they are not visible through SCDO, if

> for that change document object, i press Goto ->

> Change document. Why is this and how can it be

> corrected?

<b>The menu item takes you to the change documents created for the change document object (Suppose you change the properties of the object itself, then you can see it here).

</b>

> 3. Is it possible to view the change documents for a

> particular object (eg. an Infotype 1024) through the

> transaction screen of that object, instead of having

> to run the report RSSCD100?

<b>I do not know if there is a provision, but just like above there may be a menu item which will serve the purpose.

</b>

Hope it helps.

Regards,

Srihari

Read only

0 Likes
1,027

> Joy,

>

> >

> > 1. Custom created Change Document Object: I wish

> to

> > log changes made in PA infotypes using change

> > documents (Not the usual v_T585a, v_T585b and

> v_T585c

> > way). For the stated purpose, i performed the

> > following steps:

> > a. Through transaction SCDO, created a custom

> change

> > e document object and added table PA0002

> > b. Generated the update program - Function Module

> > e Z_XX_WRITE_DOCUMENT was created.

> >

> > However, the changes made in the Infotype0002

> > (personnel data) are not being logged in the

> change

> > document. (These changes are reflected in the

> table

> > logging activated for table PA0002 through SCU3.)

> Is

> > there any step that i might have missed?

> >

>

> <b>To log changes into the change document objects

> that you have created, you must call the the

> generated function module and pass the changed

> variables into it. This will not be possible if you

> want changes tracked for all the standard SAP

> transactions which update this table.</b>

<b>Do you mean that all change documents need some ABAP code to be written where the changed variables are passed? This would then mean that change documents cannot be created to track changes made in standard SAP tables accessed through standard SAP transactions since modifying the transactions ABAP code will render SAPs support invalid.</b>

> > 2. Already configured change documents: Change

> > Document object HR_IT1024 is pre-configured and

> > available under transaction SCDO. Changes made in

> the

> > infotype are visible if i view the change document

> > through RSSCD100 (it is both a transaction and

> > report), BUT they are not visible through SCDO, if

> > for that change document object, i press Goto ->

> > Change document. Why is this and how can it be

> > corrected?

>

> <b>The menu item takes you to the change documents

> created for the change document object (Suppose you

> change the properties of the object itself, then you

> can see it here).

> </b>

<b>Thats exactly what i was pointing out in the question, that trying to access the change documents for that object through the menu item gives the message "no change documents created". This one is for a preconfigured change document (not custom created). So i guess the question is that for standard change document objects too, does ABAP code need to be added to call the function modules for that object? If not, do we need to activate it?</b>

> > 3. Is it possible to view the change documents for

> a

> > particular object (eg. an Infotype 1024) through

> the

> > transaction screen of that object, instead of

> having

> > to run the report RSSCD100?

>

> <b>I do not know if there is a provision, but just

> like above there may be a menu item which will serve

> the purpose.

> </b>

> Hope it helps.

>

> Regards,

> Srihari

Read only

0 Likes
1,027

<i>Do you mean that all change documents need some ABAP code to be written where the changed variables are passed? This would then mean that change documents cannot be created to track changes made in standard SAP tables accessed through standard SAP transactions since modifying the transactions ABAP code will render SAPs support invalid.</i>

<b>

Yes, we need the ABAP code, and as you have rightly summarized creating change documents for a SAP tables accessed through SAP transactions will either need a modification to the code or find enhancements where you can do it (second option is next to impossible, never know how many places the updates happen). </b>

<i>

Thats exactly what i was pointing out in the question, that trying to access the change documents for that object through the menu item gives the message "no change documents created". This one is for a preconfigured change document (not custom created). So i guess the question is that for standard change document objects too, does ABAP code need to be added to call the function modules for that object? If not, do we need to activate it?</i>

<b>What I meant here is that the change documents displayed are not for the table that you are changing but to a change in the change doc object itself. You mentioned that you have created a custom change object, try making a change in that object (may be add a new table or something) and then choose the change documents menu item. You will see that all the changes that you make to this object is tracked. Since the change doc object you are currently checking is a standard one .. you will not find any change docs created against it.

You do not need any code for standard change docs, SAP would have already written it. There are some cases where you have to enable change docs in the config, for that you must contact your functional consultant</b>

Message was edited by:

Srihari Hebbar