Skip to Content
0
Jun 02, 2020 at 08:09 AM

Change ABAP code in FM

419 Views

Hi.

I have a custom field in table BKPF.

When i am trying to change value in this field (TC: FB02) i have a problem.

Value in this new field is not changing but change log on document is created.

I have found FM CHANGE_DOCUMENT which should make changes in table BKPF.

Include LFAGL_F005F03.

I whant to add new line to code of this FM (with my new fileld) but how to do this without entering acces Key?

There is no enhance point...

Code:

...

UPDATE bkpf
SET aedat = bkpf-aedat
upddt = bkpf-upddt
xblnr = bkpf-xblnr
bktxt = bkpf-bktxt
stodt = bkpf-stodt
xstov = bkpf-xstov
duefl = bkpf-duefl
brnch = bkpf-brnch
numpg = bkpf-numpg
xref1_hd = bkpf-xref1_hd "Note 624215
xref2_hd = bkpf-xref2_hd "Note 624215
WHERE bukrs = bkpf-bukrs
AND gjahr = bkpf-gjahr
AND belnr = bkpf-belnr.

...

Thanks in advance