Application Development 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: 

What i have to pass in old image if its a Insert case for a change doc. obj.?

former_member202077
Participant
0 Kudos

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

3 REPLIES 3

former_member202077
Participant
0 Kudos

Any help pls.?

Thank you

0 Kudos

Hi MSR,

             I am Not able Understand your requirement. can you explain clearly .

0 Kudos

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