Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014aUaQeLnwbb1zTpN7kHeat
21 lines
488 B
ABAP
21 lines
488 B
ABAP
CLASS {{p}}cx_claim_costcenter DEFINITION
|
|
PUBLIC
|
|
INHERITING FROM {{p}}cx_claim_error
|
|
FINAL
|
|
CREATE PUBLIC.
|
|
|
|
PUBLIC SECTION.
|
|
DATA mv_amount TYPE {{p}}if_expense_claim=>ty_amount READ-ONLY.
|
|
|
|
METHODS constructor
|
|
IMPORTING iv_amount TYPE {{p}}if_expense_claim=>ty_amount.
|
|
ENDCLASS.
|
|
|
|
|
|
CLASS {{p}}cx_claim_costcenter IMPLEMENTATION.
|
|
METHOD constructor.
|
|
super->constructor( iv_message = 'Cost center is required' ).
|
|
mv_amount = iv_amount.
|
|
ENDMETHOD.
|
|
ENDCLASS.
|