# `Sp_MftPlanPhase_BtnEventConvertPlanB` (procedure) > 常用生产计划跟进(部件)-转入备用计划 - **Type:** PROCEDURE - **Deterministic:** NO - **SQL data access:** CONTAINS SQL ## Parameters | # | Mode | Name | Type | |---|---|---|---| | 1 | IN | `sProInParam` | `varchar(10000)` | | 2 | IN | `sMakePerson` | `varchar(100)` | | 3 | IN | `sBrId` | `varchar(100)` | | 4 | IN | `sSuId` | `varchar(100)` | | 5 | OUT | `sReturn` | `varchar(1000)` | | 6 | OUT | `sCode` | `int` | ## Body _Body is not pre-cached. To inspect: `mysql --defaults-file=~/.my.cnf -e 'SHOW CREATE PROCEDURE `Sp_MftPlanPhase_BtnEventConvertPlanB`'`._ ## Narrative **Business context:** 生产管理 → 生产计划 → 常用生产计划跟进(部件) — "转入备用计划" button: moves the selected regular-plan rows onto the backup (备用) track by setting `bPlanB=1` on `mftworkordercontrol` and the denormalised `CalcProductContralsPhase`. Mirror of `Sp_MftPlanPhase_BtnEventConvertPlanA`. **What it does:** Validates `sProInParam` length, parses `$.params[*].value[*].sId`, and for each id sets `bPlanB=1` on both `mftworkordercontrol` and `CalcProductContralsPhase` (scoped by `sBrandsId=sBrId` / `sSubsidiaryId=sSuId`). Standard `sReturn`/`sCode` contract with `paramsErro` short-circuit. **Invocation:** Dispatched dynamically by `GenericProcedureCallServiceImpl.doGenericProcedureCall()` on the 常用生产计划跟进(部件) grid's 转入备用计划 toolbar button. xly-src ships `script/标版/30100101/schedule/Sp_MftPlanPhase_BtnEventConvertPlanB.sql` (install). No `gdsmodule`/`gdsconfigformmaster` registration — the wiring lives in `sBtnContent`.