Skip to Content
-4
Jul 17, 2018 at 12:21 PM

Wrong dates getting updated in table

166 Views

Hi

I have one code where few fields getting updated wrongly but not on daily bases.

Date should not be lesser than today's date but still its updating some history dates randomly after saving.

please suggest as below logic is on place

MODIFY ZCL_RM_INSPEC FROM FS_TAB.
        COMMIT WORK.
        CONCATENATE 'Checklist Number' CHECKLISTNO 'changed' INTO FS_MESSAGE SEPARATED BY SPACE.
        MESSAGE FS_MESSAGE TYPE 'I' DISPLAY LIKE 'S'.
        LEAVE TO SCREEN 101.
      ELSEIF G_TCODE = 'ZCLAC'.
 
IF ANALYSISDATE IS NOT INITIAL AND
      ( ANALYSISDATE LT CHECKEDDATE OR ANALYSISDATE GT SY-DATUM ).
        MESSAGE 'Invalid Date. Check Entry' TYPE 'I' DISPLAY LIKE 'E'.
        leave TO SCREEN 0100.
      ENDIF.
   IF ( ANALYSISDATE IS INITIAL AND ANALYSISBY IS NOT INITIAL ) OR
           ( ANALYSISDATE IS NOT INITIAL AND ANALYSISBY IS INITIAL ).
        MESSAGE 'Fill in Analysis Completion Date and Sign' TYPE 'I' DISPLAY LIKE 'E'.
        leave TO SCREEN 0100.
      ENDIF.