Skip to content

Fix the CURR-column download dump in ZCMRUPDATE_ADDON_TABLE - #10

Merged
KexiHe merged 1 commit into
mainfrom
fix/addon-curr-download-dump
Aug 6, 2026
Merged

Fix the CURR-column download dump in ZCMRUPDATE_ADDON_TABLE#10
KexiHe merged 1 commit into
mainfrom
fix/addon-curr-download-dump

Conversation

@KexiHe

@KexiHe KexiHe commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

do_download's convert_to_external passed max_number_of_digits = 23 to BAPI_CURRENCY_CONV_TO_EXTERNAL, but that parameter exists only on the _TO_INTERNAL twin (verified against the live FM interface on S4D, 2026-08-07). An unknown parameter raises CALL_FUNCTION_PARM_UNKNOWN — a runtime error the surrounding CATCH cx_root cannot intercept — so downloading any table with a CURR column short-dumped.

Fix

  • Minimal hand fix: drop the parameter from the _TO_EXTERNAL call (that direction needs no digit cap); re-align the two surviving parameters; add a two-line comment stating the constraint so the parameter isn't copied back from the upload path for symmetry.
  • The upload path's _TO_INTERNAL call keeps max_number_of_digits — it is legitimate and mandatory there.
  • No selection-screen fields renamed (sap_update_addon_prog.vbs drives RB_UP/RB_DOWN by GUI field id).
  • CHANGELOG entry under [Unreleased] → Fixed.

Notes

  • The compiler syntax check does not catch this defect class (verified with a minimal repro); only an FM-signature check (/sap-check-abap fm dimension) does.
  • Redeploy required: the program /sap-dev-init deploys is byte-identical to this reference copy, so deployed systems (e.g. S4D, pkg ZCMDEVAI) carry the dump until ZCMRUPDATE_ADDON_TABLE is redeployed via /sap-dev-init or a /sap-se38 update.

Verification

  • node scripts/check-consistency.mjsOK: 4 plugins, 123 skills, all manifests aligned at version 0.8.1, Tier 3 attach contract clean, screen-baseline coverage 136/136

🤖 Generated with Claude Code

do_download's convert_to_external passed max_number_of_digits = 23 to
BAPI_CURRENCY_CONV_TO_EXTERNAL, but that parameter exists only on the
_TO_INTERNAL twin (verified against the live FM interface on S4D,
2026-08-07). An unknown parameter raises CALL_FUNCTION_PARM_UNKNOWN, a
runtime error the surrounding CATCH cx_root cannot intercept, so
downloading any table with a CURR column short-dumped. The compiler
syntax check does not catch this (verified with a minimal repro); only
an FM-signature check does.

Minimal fix: drop the parameter -- the _TO_EXTERNAL direction needs no
digit cap. The upload path's _TO_INTERNAL call keeps it (mandatory
there). No selection-screen fields renamed: sap_update_addon_prog.vbs
drives RB_UP/RB_DOWN by GUI field id.

Deployed systems carry the same bug: the program on S4D (pkg ZCMDEVAI)
is byte-identical to this reference copy, so each system needs a
redeploy via /sap-dev-init (or /sap-se38 update of
ZCMRUPDATE_ADDON_TABLE) to pick the fix up.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@KexiHe
KexiHe merged commit 6b01e9d into main Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant