-- B1 DEPENDS: AFTER:SP:ATP_A1_CREATE_DB_OBJECTS AFTER:PT:PROCESS_END
CREATE PROCEDURE ATP_B3_SYNC_LOCK_TABLE
LANGUAGE SQLSCRIPT 
SQL SECURITY INVOKER
AS
BEGIN
    DELETE FROM ATP_LOCK;
    SELECT "ItemCode", "WhsCode" FROM OITW INTO ATP_LOCK;
END;