User-exit before saving the purchase requisition


Try the user exit MEREQ001. You can Use the function module 
EXIT_SAPLMEREQ_005 for displaying error messages at the time of saving the

BREAK rohinik.
DATA Fcode TYPE  Sy-UCOMM.
if im_data_new-badat < sy-datum.
    MESSAGE 'Purchase requisition Date should not be less than the System Date' TYPE 'E'.
   endif.
   if im_data_new-FRGDT < sy-datum.
     MESSAGE 'PR Release Date should not be less than the System Date' TYPE 'E'.
   endif.

Comments

Post a Comment

Popular posts from this blog

all user exit mv45afzz (implicit user exit )

Long Text in input and output field in module pool

MB_MIGO_BADI THIS BADI USED TO POSTING DATA IN MIGO