Hey,
Need to make a correction to FBL5n so that when details are displayed the fields bkpf-xref1_hd and bkpf-xref2_hd are populated with values from vbrp for sales order no and delivery no (vbrp-aubel and vbrp-vgbel).
For this purpose I used exit_saplv60B_001 and include ZXVVF01.
the code is:
&----
*& Include ZXVVFU01
&----
data: XREF1_HD LIKE vbrp-aubel,
XREF2_HD LIKE vbrp-vgbel,
XBELNR LIKE XACCIT-BELNR,
XAUBEL LIKE VBRP-AUBEL,
vbeln like vbrk-vbeln.
SELECT AUBEL VGBEL FROM VBRP INTO (xREF1_HD , XREF2_HD) WHERE vbeln ne ' '.
IF XREF1_HD ne ' '.
MOVE xaubel TO XREF1_HD.
ENDIF.
ENDSELECT.
exit.
I have not completed the code as I was tesitng whether or not the data was populated in the first field.
What I need to know is 1) am I using the correct user exit and 2) does my code look alright?
Thx for the help
Ryan