协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
sap-mb5b-export【开发与工程】Automate SAP GUI for Windows transaction MB5B from an Excel list of plants and storage locations, export one workbook per target, add the storage-location column, and merge successful exports per plant. Use when Codex needs to run or diagnose MB5B Excel exports, perform a dry run, validate a new SAP GUI locale, or inspect language-independent SAP and…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use the bundled Python workflow. Do not recreate the SAP automation with VBS or PowerShell.
scripts/check_environment.py with the input workbook. Add --require-sap before a live run.scripts/mb5b_export.py with --dry-run and review all individual and merged output paths.--limit 1 test before processing all rows.Data!D1 header.2 as partial success and use the log to identify failed plant/storage pairs.python scripts/check_environment.py --input "<LOCAL_WORKSPACE>\保管場所.xlsx" --require-sap
python scripts/mb5b_export.py `
--input "<LOCAL_WORKSPACE>\保管場所.xlsx" `
--date 2026-02-28 `
--dry-run
python scripts/mb5b_export.py `
--input "<LOCAL_WORKSPACE>\保管場所.xlsx" `
--date 2026-02-28 `
--limit 1
Pass --overwrite only when the user explicitly permits replacing existing individual and merged files. Use --output-dir to keep test exports separate from production files.
--inspect-ui --output-dir <directory> passively while the user has the unsupported dialog open. This writes screenshots and a control-tree JSON without clicking anything.MB5B_<plant>_<storage>_<YYYYMMDD>.xlsxMB5B_<plant>_<YYYYMMDD>.xlsxD1 to the configured storage header, and fill data rows with the target storage code.0 for full success, 1 for preflight/startup failure, and 2 for partial export or merge failure.Do not bulk-delete files or directories. Keep runtime logs and diagnostics local and out of source control.