Billing Date validation In SAP ABAP.
FORM USEREXIT_ACCOUNT_PREP_KOMKCV.
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1) Form USEREXIT_ACCOUNT_PREP_KOMKCV, Start A
*$*$-Start: (1)---------------------------------------------------------------------------------$*$*
ENHANCEMENT 1 ZAK_INVOICE_VALID. "active version
**TYPES: BEGIN OF ty_final,
** vbeln TYPE vbeln_vl,
** lfdat TYPE lfdat_v,
** END OF ty_final.
**DATA: it_final TYPE STANDARD TABLE OF ty_final,
** wa_final TYPE ty_final.
**
** SELECT SINGLE vbeln lfdat
** FROM likp
** INTO wa_final
** WHERE vbeln = vbrp-vgbel.
**
** IF VBRK-FKDAT < wa_final-lfdat.
** MESSAGE 'billing Date should not be less than delivery date' TYPE 'E'.
** fcode = 'ENT1'.
** PERFORM FOLGE_GLEICHSETZEN(SAPMV60A).
** SET SCREEN 6105.
** LEAVE SCREEN.
** ENDIF.
Thanks for Sharing this Information. SAP HR Course in Gurgaon
ReplyDeleteThanks for sharing the user-exist in SD. You can also find user exists in another SAP modules by following these(https://saplearners.com/find-user-exits-sap-abap/) approaches.
ReplyDelete