Billing Date should not be less than delivery Date

T-CODE FOR CREATION OF QUANITY        : MB1C
this include program chekc delivery shoud not be past date
userexit name save document preparred : MV50AFZ1

80017434

SAPMV60A

SAPLV60A

USEREXIT_NUMBER_RANGE
RV60AFZZ
USEREXIT_PRICING_PREPARE_TKOMP.
This document validated billing date not should be delivery




break ROHINIK.
TYPESBEGIN OF TY_LIKP,
         VBELN TYPE VBELN_VL,
         LFDAT TYPE LFDAT_V,
       END OF TY_LIKP.
DATA:  WA_LIKP TYPE TY_LIKP.

       SELECT SINGLE vbeln LFDAT
        FROM likp
        INTO WA_likp
        WHERE vbeln vbrp-vgbel.
      IF VBRK-FKDAT < wa_likp-lfdat.
        MESSAGE 'Billing Date should not be less than delivery Date' TYPE 'S' DISPLAY LIKE 'E'.
        fcode 'ENT1'.
        SET SCREEN syst-dynnr.
        LEAVE SCREEN.
      ENDIF.

Comments

Popular posts from this blog

all user exit mv45afzz (implicit user exit )

MB_MIGO_BADI THIS BADI USED TO POSTING DATA IN MIGO

Long Text in input and output field in module pool