Skip to Content
0
Former Member
May 23, 2014 at 09:24 AM

BETRIEB_WRITE_DOCUMENT

60 Views

Hi.

I have appended my own custom structure (fields) to the WRF1 table. As part of a custom program I am developing I need to update the change pointer table whenever the user make a change to one of the custom fields. I have been asked to look into the BETRIEB_WRITE_DOCUMENT function module, but cannot find any documentation how to use this function module. Does anyone have any information? Or has anyone used this function module. The code below to call the fm is below. I suspect that the n_wrf1 & o_wrf1 exporting parameters are for the structure to contain the old & new data of the table wrf1.

call function 'BETRIEB_WRITE_DOCUMENT'

exporting

objectid = lv_objectid

tcode = sy-tcode

utime = sy-uzeit

udate = sy-datum

username = sy-uname

object_change_indicator = 'U'

planned_or_real_changes = 'R'

n_t001k = n_t001k

o_yt001k = o_yt001k

n_t001w = n_t001w

o_yt001w = o_yt001w

n_wrf1 = n_wrf1

o_ywrf1 = o_wrf1

upd_wrf1 = 'U'

tables

xt023w = xt023w

yt023w = yt023w

xt023x = xt023x

yt023x = yt023x

xwrf12 = xwrf12

ywrf12 = ywrf12

xwrf3 = xwrf3

ywrf3 = ywrf3

xwrf4 = xwrf4

ywrf4 = ywrf4

xwrf5 = xwrf5

ywrf5 = ywrf5

xwrf6 = xwrf6

ywrf6 = ywrf6.


Cheers.