2013 Mar 21 2:09 PM
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
2013 Mar 21 2:20 PM
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
2013 Mar 21 2:20 PM
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
2013 Mar 21 2:57 PM
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
2013 Mar 21 3:08 PM
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
2013 Mar 21 2:25 PM
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
2013 Mar 21 3:10 PM
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
2013 Mar 21 3:13 PM
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