HANDLE, SITE, SHOP_ORDER, WORK_ORDER, SFC, IS_MAJOR, DISPATCH_SEQ, DISPATCH_NO, DISPATCH_STATUS, DRAWINGS_NO, DRAWINGS_REVISION, IS_LOCK, ROUTER_BO, STEP_ID, OPERATION, RESOURCE_TYPE, WORK_CENTER, RESRCE, EMPLOYEE, TURN_ORDER, DISPATCH_QTY, PROD_HOURS, PLANNED_START_DATE, PLANNED_COMPLETE_DATE, EARLIEST_START_DATE, LATEST_END_DATE, SO_RELEASED_DATE, SFC_RELEASED_DATE, RELEASED_COMPLETE_DATE, ACTUAL_COMPLETE_DATE, IS_ALLOT, IS_IMPORT, REMARK, IS_FIRST_OPERATION, CREATE_USER, CREATED_DATE_TIME, MODIFY_USER, MODIFIED_DATE_TIME, OTHER_1, OTHER_2, OTHER_3, OTHER_4, OTHER_5 INSERT INTO Z_SFC_DISPATCH HANDLE, SITE, SHOP_ORDER, WORK_ORDER, SFC, IS_MAJOR, DISPATCH_SEQ, DISPATCH_NO, DISPATCH_STATUS, DRAWINGS_NO, DRAWINGS_REVISION, IS_LOCK, ROUTER_BO, STEP_ID, OPERATION, RESOURCE_TYPE, WORK_CENTER, RESRCE, EMPLOYEE, TURN_ORDER, DISPATCH_QTY, PROD_HOURS, PLANNED_START_DATE, PLANNED_COMPLETE_DATE, EARLIEST_START_DATE, LATEST_END_DATE, SO_RELEASED_DATE, SFC_RELEASED_DATE, RELEASED_COMPLETE_DATE, ACTUAL_COMPLETE_DATE, IS_ALLOT, IS_IMPORT, REMARK, IS_FIRST_OPERATION, CREATE_USER, CREATED_DATE_TIME, MODIFY_USER, MODIFIED_DATE_TIME, OTHER_1, OTHER_2, OTHER_3, OTHER_4, OTHER_5, VALUES #{handle}, #{site}, #{shopOrder}, #{workOrder}, #{sfc}, #{isMajor}, #{dispatchSeq}, #{dispatchNo}, #{dispatchStatus}, #{drawingsNo}, #{drawingsRevision}, #{isLock}, #{routerBo}, #{stepId}, #{operation}, #{resourceType}, #{workCenter}, #{resrce}, #{employee}, #{turnOrder}, #{dispatchQty}, #{prodHours}, #{plannedStartDate}, #{plannedCompleteDate}, #{earliestStartDate}, #{latestEndDate}, #{soReleasedDate}, #{sfcReleasedDate}, #{releasedCompleteDate}, #{actualCompleteDate}, #{isAllot}, #{isImport}, #{remark}, #{isFirstOperation}, #{createUser}, #{createdDateTime}, #{modifyUser}, #{modifiedDateTime}, #{other1}, #{other2}, #{other3}, #{other4}, #{other5}, INSERT INTO Z_SFC_DISPATCH VALUES #{handle}, #{site}, #{shopOrder}, #{workOrder}, #{sfc}, #{isMajor}, #{dispatchSeq}, #{dispatchNo}, #{dispatchStatus}, #{drawingsNo}, #{drawingsRevision}, #{isLock}, #{routerBo}, #{stepId}, #{operation}, #{resourceType}, #{workCenter}, #{resrce}, #{employee}, #{turnOrder}, #{dispatchQty}, #{prodHours}, #{plannedStartDate}, #{plannedCompleteDate}, #{earliestStartDate}, #{latestEndDate}, #{soReleasedDate}, #{sfcReleasedDate}, #{releasedCompleteDate}, #{actualCompleteDate}, #{isAllot}, #{isImport}, #{remark}, #{isFirstOperation}, #{createUser}, #{createdDateTime}, #{modifyUser}, #{modifiedDateTime}, #{other1}, #{other2}, #{other3}, #{other4}, #{other5}, UPDATE Z_SFC_DISPATCH SITE=#{et.site}, SHOP_ORDER=#{et.shopOrder}, WORK_ORDER=#{et.workOrder}, SFC=#{et.sfc}, IS_MAJOR=#{et.isMajor}, DISPATCH_SEQ=#{et.dispatchSeq}, DISPATCH_NO=#{et.dispatchNo}, DISPATCH_STATUS=#{et.dispatchStatus}, DRAWINGS_NO=#{et.drawingsNo}, DRAWINGS_REVISION=#{et.drawingsRevision}, IS_LOCK=#{et.isLock}, ROUTER_BO=#{et.routerBo}, STEP_ID=#{et.stepId}, OPERATION=#{et.operation}, RESOURCE_TYPE=#{et.resourceType}, WORK_CENTER=#{et.workCenter}, RESRCE=#{et.resrce}, EMPLOYEE=#{et.employee}, TURN_ORDER=#{et.turnOrder}, DISPATCH_QTY=#{et.dispatchQty}, PROD_HOURS=#{et.prodHours}, PLANNED_START_DATE=#{et.plannedStartDate}, PLANNED_COMPLETE_DATE=#{et.plannedCompleteDate}, EARLIEST_START_DATE=#{et.earliestStartDate}, LATEST_END_DATE=#{et.latestEndDate}, SO_RELEASED_DATE=#{et.soReleasedDate}, SFC_RELEASED_DATE=#{et.sfcReleasedDate}, RELEASED_COMPLETE_DATE=#{et.releasedCompleteDate}, ACTUAL_COMPLETE_DATE=#{et.actualCompleteDate}, IS_ALLOT=#{et.isAllot}, IS_IMPORT=#{et.isImport}, REMARK=#{et.remark}, IS_FIRST_OPERATION=#{et.isFirstOperation}, CREATE_USER=#{et.createUser}, CREATED_DATE_TIME=#{et.createdDateTime}, MODIFY_USER=#{et.modifyUser}, MODIFIED_DATE_TIME=#{et.modifiedDateTime}, OTHER_1=#{et.other1}, OTHER_2=#{et.other2}, OTHER_3=#{et.other3}, OTHER_4=#{et.other4}, OTHER_5=#{et.other5}, WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL} UPDATE Z_SFC_DISPATCH SITE=#{et.site}, SHOP_ORDER=#{et.shopOrder}, WORK_ORDER=#{et.workOrder}, SFC=#{et.sfc}, IS_MAJOR=#{et.isMajor}, DISPATCH_SEQ=#{et.dispatchSeq}, DISPATCH_NO=#{et.dispatchNo}, DISPATCH_STATUS=#{et.dispatchStatus}, DRAWINGS_NO=#{et.drawingsNo}, DRAWINGS_REVISION=#{et.drawingsRevision}, IS_LOCK=#{et.isLock}, ROUTER_BO=#{et.routerBo}, STEP_ID=#{et.stepId}, OPERATION=#{et.operation}, RESOURCE_TYPE=#{et.resourceType}, WORK_CENTER=#{et.workCenter}, RESRCE=#{et.resrce}, EMPLOYEE=#{et.employee}, TURN_ORDER=#{et.turnOrder}, DISPATCH_QTY=#{et.dispatchQty}, PROD_HOURS=#{et.prodHours}, PLANNED_START_DATE=#{et.plannedStartDate}, PLANNED_COMPLETE_DATE=#{et.plannedCompleteDate}, EARLIEST_START_DATE=#{et.earliestStartDate}, LATEST_END_DATE=#{et.latestEndDate}, SO_RELEASED_DATE=#{et.soReleasedDate}, SFC_RELEASED_DATE=#{et.sfcReleasedDate}, RELEASED_COMPLETE_DATE=#{et.releasedCompleteDate}, ACTUAL_COMPLETE_DATE=#{et.actualCompleteDate}, IS_ALLOT=#{et.isAllot}, IS_IMPORT=#{et.isImport}, REMARK=#{et.remark}, IS_FIRST_OPERATION=#{et.isFirstOperation}, CREATE_USER=#{et.createUser}, CREATED_DATE_TIME=#{et.createdDateTime}, MODIFY_USER=#{et.modifyUser}, MODIFIED_DATE_TIME=#{et.modifiedDateTime}, OTHER_1=#{et.other1}, OTHER_2=#{et.other2}, OTHER_3=#{et.other3}, OTHER_4=#{et.other4}, OTHER_5=#{et.other5}, WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL} UPDATE Z_SFC_DISPATCH SITE=#{et.site}, SHOP_ORDER=#{et.shopOrder}, WORK_ORDER=#{et.workOrder}, SFC=#{et.sfc}, IS_MAJOR=#{et.isMajor}, DISPATCH_SEQ=#{et.dispatchSeq}, DISPATCH_NO=#{et.dispatchNo}, DISPATCH_STATUS=#{et.dispatchStatus}, DRAWINGS_NO=#{et.drawingsNo}, DRAWINGS_REVISION=#{et.drawingsRevision}, IS_LOCK=#{et.isLock}, ROUTER_BO=#{et.routerBo}, STEP_ID=#{et.stepId}, OPERATION=#{et.operation}, RESOURCE_TYPE=#{et.resourceType}, WORK_CENTER=#{et.workCenter}, RESRCE=#{et.resrce}, EMPLOYEE=#{et.employee}, TURN_ORDER=#{et.turnOrder}, DISPATCH_QTY=#{et.dispatchQty}, PROD_HOURS=#{et.prodHours}, PLANNED_START_DATE=#{et.plannedStartDate}, PLANNED_COMPLETE_DATE=#{et.plannedCompleteDate}, EARLIEST_START_DATE=#{et.earliestStartDate}, LATEST_END_DATE=#{et.latestEndDate}, SO_RELEASED_DATE=#{et.soReleasedDate}, SFC_RELEASED_DATE=#{et.sfcReleasedDate}, RELEASED_COMPLETE_DATE=#{et.releasedCompleteDate}, ACTUAL_COMPLETE_DATE=#{et.actualCompleteDate}, IS_ALLOT=#{et.isAllot}, IS_IMPORT=#{et.isImport}, REMARK=#{et.remark}, IS_FIRST_OPERATION=#{et.isFirstOperation}, CREATE_USER=#{et.createUser}, CREATED_DATE_TIME=#{et.createdDateTime}, MODIFY_USER=#{et.modifyUser}, MODIFIED_DATE_TIME=#{et.modifiedDateTime}, OTHER_1=#{et.other1}, OTHER_2=#{et.other2}, OTHER_3=#{et.other3}, OTHER_4=#{et.other4}, OTHER_5=#{et.other5}, HANDLE=#{ew.entity.handle} AND SITE=#{ew.entity.site} AND SHOP_ORDER=#{ew.entity.shopOrder} AND WORK_ORDER=#{ew.entity.workOrder} AND SFC=#{ew.entity.sfc} AND IS_MAJOR=#{ew.entity.isMajor} AND DISPATCH_SEQ=#{ew.entity.dispatchSeq} AND DISPATCH_NO=#{ew.entity.dispatchNo} AND DISPATCH_STATUS=#{ew.entity.dispatchStatus} AND DRAWINGS_NO=#{ew.entity.drawingsNo} AND DRAWINGS_REVISION=#{ew.entity.drawingsRevision} AND IS_LOCK=#{ew.entity.isLock} AND ROUTER_BO=#{ew.entity.routerBo} AND STEP_ID=#{ew.entity.stepId} AND OPERATION=#{ew.entity.operation} AND RESOURCE_TYPE=#{ew.entity.resourceType} AND WORK_CENTER=#{ew.entity.workCenter} AND RESRCE=#{ew.entity.resrce} AND EMPLOYEE=#{ew.entity.employee} AND TURN_ORDER=#{ew.entity.turnOrder} AND DISPATCH_QTY=#{ew.entity.dispatchQty} AND PROD_HOURS=#{ew.entity.prodHours} AND PLANNED_START_DATE=#{ew.entity.plannedStartDate} AND PLANNED_COMPLETE_DATE=#{ew.entity.plannedCompleteDate} AND EARLIEST_START_DATE=#{ew.entity.earliestStartDate} AND LATEST_END_DATE=#{ew.entity.latestEndDate} AND SO_RELEASED_DATE=#{ew.entity.soReleasedDate} AND SFC_RELEASED_DATE=#{ew.entity.sfcReleasedDate} AND RELEASED_COMPLETE_DATE=#{ew.entity.releasedCompleteDate} AND ACTUAL_COMPLETE_DATE=#{ew.entity.actualCompleteDate} AND IS_ALLOT=#{ew.entity.isAllot} AND IS_IMPORT=#{ew.entity.isImport} AND REMARK=#{ew.entity.remark} AND IS_FIRST_OPERATION=#{ew.entity.isFirstOperation} AND CREATE_USER=#{ew.entity.createUser} AND CREATED_DATE_TIME=#{ew.entity.createdDateTime} AND MODIFY_USER=#{ew.entity.modifyUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} AND OTHER_1=#{ew.entity.other1} AND OTHER_2=#{ew.entity.other2} AND OTHER_3=#{ew.entity.other3} AND OTHER_4=#{ew.entity.other4} AND OTHER_5=#{ew.entity.other5} ${ew.sqlSegment} ${ew.sqlSegment} DELETE FROM Z_SFC_DISPATCH WHERE HANDLE=#{handle} DELETE FROM Z_SFC_DISPATCH ${k} = #{cm[${k}]} DELETE FROM Z_SFC_DISPATCH HANDLE=#{ew.entity.handle} AND SITE=#{ew.entity.site} AND SHOP_ORDER=#{ew.entity.shopOrder} AND WORK_ORDER=#{ew.entity.workOrder} AND SFC=#{ew.entity.sfc} AND IS_MAJOR=#{ew.entity.isMajor} AND DISPATCH_SEQ=#{ew.entity.dispatchSeq} AND DISPATCH_NO=#{ew.entity.dispatchNo} AND DISPATCH_STATUS=#{ew.entity.dispatchStatus} AND DRAWINGS_NO=#{ew.entity.drawingsNo} AND DRAWINGS_REVISION=#{ew.entity.drawingsRevision} AND IS_LOCK=#{ew.entity.isLock} AND ROUTER_BO=#{ew.entity.routerBo} AND STEP_ID=#{ew.entity.stepId} AND OPERATION=#{ew.entity.operation} AND RESOURCE_TYPE=#{ew.entity.resourceType} AND WORK_CENTER=#{ew.entity.workCenter} AND RESRCE=#{ew.entity.resrce} AND EMPLOYEE=#{ew.entity.employee} AND TURN_ORDER=#{ew.entity.turnOrder} AND DISPATCH_QTY=#{ew.entity.dispatchQty} AND PROD_HOURS=#{ew.entity.prodHours} AND PLANNED_START_DATE=#{ew.entity.plannedStartDate} AND PLANNED_COMPLETE_DATE=#{ew.entity.plannedCompleteDate} AND EARLIEST_START_DATE=#{ew.entity.earliestStartDate} AND LATEST_END_DATE=#{ew.entity.latestEndDate} AND SO_RELEASED_DATE=#{ew.entity.soReleasedDate} AND SFC_RELEASED_DATE=#{ew.entity.sfcReleasedDate} AND RELEASED_COMPLETE_DATE=#{ew.entity.releasedCompleteDate} AND ACTUAL_COMPLETE_DATE=#{ew.entity.actualCompleteDate} AND IS_ALLOT=#{ew.entity.isAllot} AND IS_IMPORT=#{ew.entity.isImport} AND REMARK=#{ew.entity.remark} AND IS_FIRST_OPERATION=#{ew.entity.isFirstOperation} AND CREATE_USER=#{ew.entity.createUser} AND CREATED_DATE_TIME=#{ew.entity.createdDateTime} AND MODIFY_USER=#{ew.entity.modifyUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} AND OTHER_1=#{ew.entity.other1} AND OTHER_2=#{ew.entity.other2} AND OTHER_3=#{ew.entity.other3} AND OTHER_4=#{ew.entity.other4} AND OTHER_5=#{ew.entity.other5} AND ${ew.sqlSegment} AND ${ew.sqlSegment} DELETE FROM Z_SFC_DISPATCH WHERE HANDLE IN ( #{item} )