Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014aUaQeLnwbb1zTpN7kHeat
16 lines
464 B
ABAP
16 lines
464 B
ABAP
INTERFACE {{p}}if_studio_pricer PUBLIC.
|
|
TYPES ty_room TYPE c LENGTH 1.
|
|
TYPES ty_amount TYPE p LENGTH 8 DECIMALS 2.
|
|
CONSTANTS:
|
|
BEGIN OF c_room,
|
|
a TYPE ty_room VALUE 'A',
|
|
b TYPE ty_room VALUE 'B',
|
|
c TYPE ty_room VALUE 'C',
|
|
END OF c_room.
|
|
METHODS calculate
|
|
IMPORTING iv_room TYPE ty_room
|
|
iv_minutes TYPE i
|
|
iv_bookings TYPE i
|
|
RETURNING VALUE(rv_price) TYPE ty_amount.
|
|
ENDINTERFACE.
|