Regarding change document generation
Hi,
In t-code SCDO, for one object class STUE_V I have added one new table MAST and generated the same. But while I execute my t-code CS01, the same is not appearing in exporting parameters in the standard program where it is calling my generated fucntion module.
Hence it is giving dump. This is part of BOMMAT idoc change pointer creation.
Could someone shed some light on this as I am really stuck here.
Hi
Have you tried generating after adding the table in the class ? This is more a generation issue. Might be the include LCSVBF30 has not got properly generated.
What I feel is if you are adding a table to a standard class then you must also change the code yourself and SAP is not changing the where used list of the update function calls.
Refer
http://www.scribd.com/doc/12627676/Logging-Using-Change-Document
http://help.sap.com/saphelp_nw04/helpdata/en/2a/fa015b493111d182b70000e829fbfe/frameset.htm
http://wiki.sdn.sap.com/wiki/display/ABAP/Change+Document
note - 0000391833 - No change documents for object dependencies change
Regards
Vijay
Similar Messages
-
Regarding change document creation
hi all
I created the change document & there i mentioned the master data table name TCJ1T (Project types)
Updation to this table is done via standard tcode SPRO
but my log entirs are not going in CDPOS , CDHDR
now my question is :
by creating the change document, when i run the standard tcode where exactly the change document will be called to log the entriesHi
Where you have created the change doc?
in <b>SCDO</b> tcode
Activate the object after creation and giving the table name
Once it is created entries should come into CDHDR and CDPOS tables.
Reward points if useful
Regards
Anji -
Regarding Change document read
Hi All,
Am using Change Document read function module to find out the changed material details. i want to fetch the plant from marc to filter the records am having the only relationship i.e material to fetch the details from marc and mara,with this i can't filter because for one material four plants will be there.so am using the tabkey from that function module to fetch the plant i don't think is this a right way can anyone explain how i can get a plant.Think you query is misleading...
As per my understanding you are trying to find all changes for materials in a specific plant right????
If so below code can give you some idea:
TABLES: mara.
SELECT-OPTIONS: so_date FOR mara-laeda. " Date Criteria
PARAMETERS: p_werks TYPE werks_d obligatory. " Plant
CONSTANTS: c_tcode TYPE sytcode VALUE 'MM02'.
TYPES: BEGIN OF ty_marc,
matnr TYPE matnr,
werks TYPE werks_d,
END OF ty_marc.
DATA: i_cdocs TYPE STANDARD TABLE OF cdred, " Change Docs
wa_cdocs TYPE cdred,
i_marc TYPE STANDARD TABLE OF ty_marc, " Plant Existence
wa_marc TYPE ty_marc.
START-OF-SELECTION.
" Read Change documents
CALL FUNCTION 'CHANGEDOCUMENT_READ'
EXPORTING
date_of_change = so_date-low
objectclass = 'MATERIAL'
date_until = so_date-high
TABLES
editpos = i_cdocs
EXCEPTIONS
no_position_found = 1
wrong_access_to_archive = 2
time_zone_conversion_error = 3
OTHERS = 4.
" Delete documents where materials are not changed
DELETE i_cdocs WHERE tcode NE c_tcode.
CHECK NOT i_cdocs[] IS INITIAL.
* Check for Material existence in Plant
SELECT matnr werks INTO TABLE i_marc
FROM marc
FOR ALL ENTRIES IN i_cdocs
WHERE matnr = i_cdocs-objectid(18)
AND werks = p_werks.
LOOP AT i_cdocs INTO wa_cdocs.
READ TABLE i_marc INTO wa_marc
WITH KEY matnr = wa_cdocs-objectid.
IF sy-subrc EQ 0. " Material Defined in specified plant
" Further Processing statements
ENDIF.
ENDLOOP.
Correct me if my understanding is wrong.
Regards
Eswar -
Hi,
I need the reading material for Change document ( SCDO ).Hi,
Check this link.
http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/fa015b493111d182b70000e829fbfe/content.htm
Thanks
Naren -
Regarding change document objects
hi to all,
I created one change document object for one transaction say /tmw/tmw . Now I am trying to make changes in /tmw/tmw . table cdhdr and cdpos table are not updating anymore. but cdhdr and cdpos table are updating while passing data to function module /TMW/CHG_OBJ1_WRITE_DOCUMENT in se38 program. MY problem is tables are not updating while make changes in transaction(/tmw/tmw) screen . please help me .
thanks in advance
Edited by: mohankumarreddy on Jan 4, 2010 10:22 AMThe transaction you are using must contain the write document function modules.
steps:
1. Create the change document. (Use the transaction SCD0.)
2. Activate the change document for the object. (Use data element maintenance: transaction SE11.)
3. Generate an update for the object. (Use the transaction SCD0.)
4. Insert the appropriate calls in the corresponding programs "<----
Your write document will be havng fm's like CHANGEDOCUMENT_OPEN etc.
The same must be incorporated in your transaction also.
check sap help
link:[http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/fa015b493111d182b70000e829fbfe/content.htm] -
Regarding change documents in Project module
Hi All
Can we write change pointers in CDHDR table when we change the status of the project .
When I change the status of the project then status of the network is also changed.
Now my requirement is , as soon as the status of the network is changed ,entry should be recorded in to CDHDR.
I am able to record the changes when description or other things of the nework are changed but facing problem for status change.
Can we achieve this ?Thanks Sreenivas,
This I am already doing and I am getting the records in JCDS as well as JEST table .
I just need to know is there any way through which we can write these records in CDHDR and CDPOS table. Because I am using SMD tool .
So i have created my own message type and done some configurations in BD52 transaction . When I run program RBDMIDOC program , this program reads all entries from CDHDR and CDPOS table based on the selection criteria defined in BD52 and log them into BDCP table. From BDCP table then I read these entries and perform my functionality.
When I change anything apart from status in the network it is logged in CDHDR and CDPOS. Status is going into JCDS and JEST table.
Now I need a advise from you , if i have to send the network record as an idoc to third party as soon as the project is released then what should i do. Is there any userexit on the save of CJ20N transaction or some other technique? -
HI
I have created a transaction. I have also created a change document object for logging changes to the transaction. I have also made necessary calls in the transaction for logging the changes.
When i change the transaction or enter data manually , a change document is created in CDHDR . The problem is when i upload data into transaction using BDC sessions a change document is not created in CDHDR.
Is there any limition for change documents to be logged when we upload data using BDC, Pl help its urgent.
Suitable answers will be rewarded
Thanks and Regards,
Kasi SWhere are you calling the Change Document Generation logic for your application? Check whether you are doing there when you are saving the change in application data to DB?
Let me know more info so that i can answer your Q better.
Thanks,
Balaji -
Issue in generation of Change Document - ChaRM
Dear All,
We are implementing ChaRM, I have copied the standard transaction type to z.
I am able to create request for change with transaction type zmcr but when the normal change or urgent change document are created they have standard transaction type.
I have made the changes in SPRO (Defining copy control of transaction type) but still document are getting generated with standard transaction type.
Please attached document of copying control.
Thanks in advance
Regards
SushantI have removed zmcr - smmj but now the change document is not getting generated. Please see the screen shot attached.
Regards
Sushant -
Change Document program Generation
Hi all,
We are trying to capture changes to several ECC tables. We want to capture any change to that table. We want to know what kind of change (Insert, delete or update) and then the key of the record that has changed. Our goal is to capture the most updated information from a table after a change. In order to achieve that we are using a process in which change document objects are created and changes are logged as change document in CDHDR and CDPOS tables. I have generated a program to extract data from CDPOS and CDHDR table. The following link describes the whole process of change log enablement
http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/fa015b493111d182b70000e829fbfe/frameset.htm
a. Created a Change Document Object /TEST/ZXXXXXXXXXXXXX using transaction SCDO and assigned the tables to that Object.
Following function modules and generated parts are automatically generated, followed the above SAP Help document.
Include programs and function modules
Data declaration, TOP...................... /TEST/FZXXXXXXXXXXXXCDT
Consisting of............................. /TEST/FZXXXXXXXXXXXXCDF
and....................................... /TEST/FZXXXXXXXXXXXXCDV
Update function module..................... /TEST/ZXXXXXXXXXXXX_WRITE_DOCUMENT
Call updates function module................ /TEST/FZXXXXXXXXXXXXXCDC
I have included the generated /TEST/FZXXXXXXXXXXXXXCDT and /TEST/FZXXXXXXXXXXXXXCDC
to the main program of function module SAPLZxxxxx. But I am getting syntax error in the Include /TEST/FZXXXXXXXXXXXXXCDC xxxxxx variable is not in the main program.
I need some help on this:
a. As per SAP response what steps are left?
b. Is there any other configuration step that we need to perform? The attached document talks about transactions SWED, SWEC and SWO1 in appendix D: Connecting Change document to work flow. We would like to understand if it will be relevant to our enablement work or can we by pass this and still be able to enable the change document logging for our tables
Any help is greatly appreciated...
Thanks,
Mili.Instead of the main program SAPLxxx, try to put include /TEST/FZXXXXXXXXXXXXXCDT into the TOP include of the main program. TOP include porgram name would be like LxxxxTOP. Try to compile it again.
Regards,
Naimesh Patel -
Quirey regarding BOM change documents display -records not able to underst
Hi,
While viewing Change documents of BOm through CS03--Environment --change documents ....the following is being displayed
what does it really refers to ?
user id is ofcourse :RNDCORE
can any one provide some inputs ? what it refers and where to get the entire details of these deleted ....records ?
55564677 16.07.2008 12:24:33 RNDCORE CS02
STAS 777M00016605010000013300000267 Deleted
STPO 777M000166050000013300000266 Deleted
regards,
Madhu Kiran>
> STAS 777M00016605010000013300000267 Deleted
>
> STPO 777M000166050000013300000266 Deleted
>
>
> regards,
> Madhu Kiran
Hi,
It says:
STAS 777M00016605010000013300000267
777 -Client
M -Material BOM
00016605 - BOM
01 - Alternative
00000133 - Item Node
00000267 - Counter
Similarly for STPO 777M000166050000013300000266 also.
Hope this Clarifies.
Regards,
Siva -
Regarding Workflow trigerring using change document
Hi all,
I am trying to trigger a workflow using change document object.
I want that to trigger the workflow on the material master change through MM02.
I have created a business object ZBUS1001 and wanted that on change of material master
the custom change document object should call the workflow
I went through all the material avaialable over SDN ,but can not find a change object for change in material master through MM02 for std business object BUS1001.
Please tell me how to find one.
Please reply if any one of you have some solution.Hi,
Thanks for your reply.
I am using an existing change object - MATERIAL_N of Business Object - BUS1001 and the event
BASICMATERIALCHANGED.
I have mentioned the details in the tcode SWEC.
And even in the workflow i have given the start of event as the BUS1001 and event BASICMATERIALCHANGED.
But workflow not called .
Do we need to maintain an entry in SWED?
If yes then in function module column what we need to mention. -
Regarding a Change Document Function Module ----- VERY VERY Urgent
I am using a Change Document Function module "CHANGEDOCUMENT_READ". It is taking a long time.
I am using the parameters:
Start date is the first date of the current month
Enddate as last date of the current month
Object class as 'MATERIAL'
Table Name as 'MBEW'Hi ,
When you want to read the change documents, please follow the below process.
1. Read the change documents headers with function modules
call function 'CHANGEDOCUMENT_READ_HEADERS'
exporting
date_of_change = cdhdr-udate
objectclass = cdhdr-objectclas
objectid = cdhdr-objectid
time_of_change = '000000'
username = cdhdr-username
tables
i_cdhdr = gt_cdhdr
exceptions
no_position_found = 1
wrong_access_to_archive = 2
time_zone_conversion_error = 3
others = 4.
2. From above step you will get data of change documents very quickly into Itab (gt_cdhdr)
3. Read the details on change documents with functiion module by using Itab in loop for each document.
loop at gt_cdhdr.
call function 'CHANGEDOCUMENT_READ_POSITIONS'
exporting
changenumber = gt_cdhdr-changenr
importing
header = cdhdr
tables
editpos = gt_cdshw
exceptions
no_position_found = 1
wrong_access_to_archive = 2
others = 3.
Above is the best way to read the change documents.
Rewards please if above info is useful.
Thanks. -
Change Pointers - adding a new field to existing Change Document
Hi,
We have a requirement to capture the changes made to the Material object through the transaction C223. The changes to field MKAL-PRFG_F have to be captured.
There is an exisitng Change Document Object - MATERIAL. This is included in Message Type MATMAS. These are the steps we have done:
1. In SCDO - added the Z structure to the Change Document Object - Material. [Z structure contains the field MKAL-PRFG_F. Change pointer option is checked for this Data element.
2. Created a Z Message Type with reference as MATMAS.
3. In BD52 - we have listed the fields for the new Z Message Type created.
4. The Change Pointers - reactivated after the steps are done.
The changes to the field MKAL-PRFG_F through C223 Tcode are not recorded in BDCPV table.
Have we missed any steps here?
Thanks,
PallaviHI,
I don't think a new zmessage type is required in this case.. is the structure added to MARA table??The change document programs are there which triggers the iodcs... In SCDO transaction code , click on generation info for MATERIAL.. You will find the includes. The FM MATERIAL_WRITE_DOCUMENT creates entries in CDHDR and CDPOS, if we maintain entries in BD52 , the entries wil be written in BDCP and BDCPS tables.
Try to add your structure in MARA table as append strucre and then you can debug the IDOC from WE19 and use the FM "MASTERIDOC_CREATE_SMD_MATMAS" and then you also need to switch on Update Debugging on, to debug the changes in update FM MATERIAL_WRITE_DOCUMENT.
Please see if the change is reflected or not....
ELSE.
may be you need to create a new entry in SCDO and do all the ALE configurations for change pointers.
Please find the link for change pointers and also you can get lot of information on change pointers in SCN.
http://help.sap.com/saphelp_nw70/helpdata/EN/12/83e03c19758e71e10000000a114084/content.htm
Regards,
Nagaraj -
Problem while generating Update progam for a Change Document Object
Hi,
I'm trying to deal with Change Document concept in a R/3 4.6C environment and to establish new Change Document object for my (Z)-table. I haven't using any namespace and created object with name ZTEST. Following the online documentation I came to the point, where I have to generate include program. I made all the nessesary inputs (using Z prefix) but faced
"Function module name is reserved for SAP"
Creating everything similarily using some of our registered namespaces (/somenamespace/) I succeed to generate the Update program and to integrate it in my Z-programs as well.
My question is: is it possible to use Change Document Object-names without predefined namespace - being a regular customer developer, but not an SAP developer - means, if I am allowed to manage programs in the customer namespace (Z,Y, X) only. If yes, how to do this?
Further (I decided not to open a new thread) - generated Update program uses
CALL FUNCTION 'xxxxx' IN UPDATE TASK
for creation of Change Numbers for generated Change Document Object. This CALL doesn't work when I implemented it in my Z-program, but when changed (IN UPDATE TASK was commented) - everything goes well and the system creates records in CDHDR/CDPOS tables for my object class and table.
Why is that? According to the documentation I shoud only fill appropriate variables for the Change Document Object (class, tr.code, etc.) and call generated FM, nothing is pointed out about any possible problems? Am I doing something wrong?
Well, to be precise, I think I have to give a sample:
1. I have a sample Z-table with few fields (their data elements are marked as Change-Document relevant).
2. Using own z-progam I created a new record for this z-table. Also fill all the nessesary variables included in the interface of generated FM for Change Document Object (for example - FM-mane CD_CALL_my_object).
3. I call the CDO FM.
4. Check what is happening (directly in both tables CDHDR/CDPOS or using FM CHANGEDOCUMENT_READ).
Further, I perfom the steps from 1 to 4 updating the created in previous loop record in my Z-table.
In both cases if the FM 'CD_CALL_my_object' is called IN UPDATE TASK nothing happens, but in case of direct call (without addition IN UPDATE TASK) the system behaves as expected. Well, obliously I can change the generated code for our production needs, but it doesn't seems to be the correct decision - in case of next possible modification of the Change Document Object definition, respectively in need of re-generation of the code.
Any hints are wellcome.
Thanks in advance.
Ivaylo Mutafchiev
Edited by: Ivaylo Mutafchiev on Jan 24, 2008 10:24 AM"IN UPDATE TASK" resolved by myself. The one should explicitly call 'COMMIT WORK' from Z-program after CALL FUNCTION '...' IN UPDATE TASK in order to get changes in the CDHDR/CDPOS commited. The key in this issue for me was to check the documentation of CALL FUNCTION :-).
Regards,
Ivo -
I want to trigger a new change object behind the standard tcode . In exit I need to call Y_DEBI_WRITE_DOCUMENT to update my Y_DEBI custom change object . But when I am trying to update Generation prg on SCDO it asks a Table_frame func module ..
Is the custom change document objects are designed for custom tables ?.
Edited by: carlos eduardo on Aug 6, 2008 7:50 AMYes Carlos,
It is desined for Custom Tables.
For more information you can look into the following link:
http://www.sapdevelopment.co.uk/tips/changedoc/cdhome.htm
Regards,
Rizwana
Maybe you are looking for
-
Exchange calendar not sync on 3.1 (iPhone 2G)
Hi, For some strange reason our Exchange 2007 (latest SP) does not sync the calendar on one of our 2G iPhones setup with Exchange. Strangely, both the Address Book and the Mail app syncs perfectly. Anyone else experienced this?
-
How do I change the color of my book?
I know this is probably the most obvious thing in the world, but I cannot find out how. I tried watching the video and googling it, nothing. Thanks for the help!
-
Currency conversion from USD to USD4
hi all, Is there any FM to convert currency from USD to USD4. Regards, Srilatha
-
Hi Experts, In our solution manger system, we forgot the SMD agent password. without i can't able to do EWA for java stack. So kindly help me to how to reset the password for this. Thanks & Regards, Sampath.
-
Imac won't play songs from my iPhone after I have authorised the computer
Imac won't play songs from my iPhone after I have authorised it