09-03-2013 4:30 PM
Hello
I have created a custom change document object thru SCDO tx for a my_table, well.
Now, i have to use the generated FM of *WRITE_DOCUMENT in my custom prog,. wherein my_table is updating, I am aware of that if its a Update / U case, then, i have to pass U indicator together with the OLD image in Y str. and NEW image in X str., well, but, pls. let me know ,
1) Insert case / I: What i have to pass for OLD / Y image?
2) Delete case / 😧 What i have to pass for NEW / X image?
3) And users are doing from WebDyn Pro / Portla screens, in this case, what Transaction code i have to pass to importing param of WRITE FM?
Thank you
09-04-2013 3:58 AM
09-04-2013 7:23 AM
Hi MSR,
I am Not able Understand your requirement. can you explain clearly .
09-04-2013 3:06 PM
For example,
In SDN, we have code snippet for Change Document Object for UPDATE scenario, as below,
CALL FUNCTION 'YH1311_DETAILS_WRITE_DOCUMENT'
EXPORTING
objectid = 'MY_Z_CHANGE_DOC_OBJ_FOR_Z_TABLE'
tcode = sy-tcode
utime = sy-uzeit
udate = sy-datum
username = sy-uname
object_change_indicator = 'U'
upd_icdtxt_yh1311_details = 'U'
upd_zahack = 'U'
TABLES
icdtxt_yh1311_details = icdtxt_yh1311_details
xzahack = xzahack
yzahack = yzahack.
So, here as its Update case, the wiki writer populated the yzahack (old image as its in data base table) and xzahack (X image, the newly chnaged data), pls. let me know,
1) For New record Insert case / I: What i have to pass for OLD / Y image?
2) Existing record Delete case / 😧 What i have to pass for NEW / X image?
3) And users are doing from WebDyn Pro / Portla screens, in this case, what Transaction code i have to pass to importing param of WRITE FM?
I am following the beolow wiki in SDN
http://wiki.sdn.sap.com/wiki/display/ABAP/Maintaining+Change+Log+for+Database+Tables
Thank you