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: 

Changing Standard SCDO object

former_member194669
Active Contributor
0 Kudos
2,329

We are having SAP change document object PROJ. This contains the following tables. (View thru SCDO). Now i wanted to add field from AFVC-PRKST into the change document for PROJ.

My final requirement is whenever i change the network primary cost from (CN22) and any other network related transaction it should create a change document under object PROJ and after that i can view this using transaction CN60.

Any info how to change. will be appreciated.

Thanks

aRs

1 ACCEPTED SOLUTION

Former Member
0 Kudos
1,020

Hi,

If you change the Change Document PROJ to add another table you will need to regenerate the updated function module PROJ_WRITE_DOCUMENT.  As this will change the function module interface you will need to change the code at any point that it is called.

However, if you do this your bigger problem is that at the point where the change document function module is called, it does not seem to the the contents of table AFVC.

Regards,

Nick

6 REPLIES 6

Former Member
0 Kudos
1,021

Hi,

If you change the Change Document PROJ to add another table you will need to regenerate the updated function module PROJ_WRITE_DOCUMENT.  As this will change the function module interface you will need to change the code at any point that it is called.

However, if you do this your bigger problem is that at the point where the change document function module is called, it does not seem to the the contents of table AFVC.

Regards,

Nick

0 Kudos
1,020

Thanks Nick

Your are look like right. Although i change and regenerate the SCDO object. the data for AFVC will not be coming into this function module. as the data captured programs are only prointing to PROJ related tables.

I think this will not work if i add AFVC table here..

Any other alternative solution please ?

Thanks

aRs

0 Kudos
1,020

Hi,

Well, the change object for the field you are interested in is ORDER, but this is pretty extensive (captures changes across a large number of tables).

You may be better creating you own change document just for this table (the field you're interested in already change the change document flag set).  If you found the point(s) that AFVC is updated in CN22 you could call your new change document function module from there.

Regards,

Nick

Former Member
0 Kudos
1,020

Hello aRs,

Add the table AFVC to the PROJ Change Document Object.

Of course this means that you will get a change docment when any field in AFVC changes for the object key.

To add the table, play t-code SCDO, double-click object PROJ, navigate through the pop-up screens, then at

screen 'Change Document Object: Change', click on new entries and add the table.

Regards,

Kim

guilherme_frisoni
Contributor
0 Kudos
1,020

Hi aRs,

I think that even if you include AFVC table in PROJ object, it will not update automatically.

To do what you want you can use an enhancement point and insert manually the fields you want to log.

Take a look at sapnote 390635, that include change log to AFVC table in Production Orders.

And if you want a simple solution to include a log change, take a look at this link: http://scn.sap.com/docs/DOC-38593

Regards,

Frisoni

raymond_giuseppi
Active Contributor
0 Kudos
1,020

Table AFVC is already managed under ORDER object in SCDO. If you add it to PROJ object, and use enhancement spots or modification so that SAP standard objects fill corresponding tables, will that generate some conflict ?

How many call to PROJ_WRITE_DOCUMENT (actually call of form write_changedocuments in  include LCJDWF0U) in your system, and are you able to find old and new version of AFVC records at this step ?

Regards,
Raymond