Friday 15 March 2024

Program in SAP ABAP that when we run that code the location record gets deleted in the custom table zvp_location

 REPORT ZSM_LOCATION.


TABLESzvp_location.

PARAMETERSp_locatn TYPE zvp_location-location.

DATAlv_deleted TYPE i.

START-OF-SELECTION.
  DELETE FROM zvp_location WHERE location p_locatn.
  lv_deleted sy-dbcnt.

  IF sy-subrc 0.
    COMMIT WORK.
    WRITE'Location record deleted successfully.'.
    WRITE/ lv_deleted'record(s) deleted.'.
  ELSE.
    WRITE'Error occurred while deleting location record.'.
  ENDIF.








                   



No comments:

Post a Comment