Skip to Content
0
Jan 09, 2020 at 12:30 PM

Move value from BSEG-XREF2 to BKPF-XREF2_HD / FB01

713 Views

Dear all,

I have an issue and I can't find a solution to it. While posting a document, I'm trying to move the value from BSEG-XREF2 to BKPF-XREF2_HD. I use substitution and I've created an user exit in prg ZRGGBS000:

form zu103 .
IF BSEG-XREF2 IS NOT INITIAL.
MOVE BSEG-XREF2 TO BKPF-XREF2_HD.
CLEAR BSEG-XREF2.
ENDIF.

endform.

The value is not passing from line to header. I used program RGUGBR00 to regenerate, but the field XREF2 from header is still blank. Do you have any ideas? Thank you.