Incompletion Log
Incompletion Log
XVBUV-MANDT
XVBUV-POSNR
XVBUV-TBNAM
XVBUV-FDNAM
XVBUV-FEHGR
XVBUV-STATG
XVBUV-FCODE
XVBUV-SORTF
XVBUV-LFDNR
XVBUV-UPDKZ
=
=
=
=
=
=
=
=
=
=
sy-mandt.
'000010'.
'VBAP'.
'PRSOK'.
20.
'06'.
'PKON'.
9999.
0000.
'I'.
should not simply remove the fields from XVBUV table. What you need to do is:
For Header incompletion, implement code in USEREXIT_CHECK_VBAK in MV45AFZB
populate the value in the respective field
After the User-exit, call these code to make sure XVBUV is properly updated
PERFORM xvbuv_loeschen_vor_pruefen(sapfv45f) USING posnr_low
etenr_low
'VBAK
'.
CALL FUNCTION 'RV_CHECK_DOCUMENT_INPUT'
EXPORTING
fehgr
= tvak-fehgr
vbxx_wa
= vbak
tbnam
= 'VBAK'
dialog
= 'X'
dia_visible = charx
TABLES
vbuv_dia
= dvbuv
vbuv_tab
= xvbuv
vbuv_last = hvbuv.
If you wish to remove the values what you just added, set them back to its previ
ous state. Which I wouldn't suggest.
If your incompletion fields are at line item level, implement the similar logic
in USEREXIT_CHECK_VBAP. Implement the code wrt to VBAP to update XVBUV.