Snapshot: new training tasks (balanced generation), docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
33
tasks_gen/train/G1945/reference/cx_scaf_order.clas.abap
Normal file
33
tasks_gen/train/G1945/reference/cx_scaf_order.clas.abap
Normal file
@@ -0,0 +1,33 @@
|
||||
CLASS {{p}}cx_scaf_order DEFINITION
|
||||
PUBLIC
|
||||
INHERITING FROM cx_static_check
|
||||
FINAL
|
||||
CREATE PUBLIC.
|
||||
|
||||
PUBLIC SECTION.
|
||||
DATA order_id TYPE string READ-ONLY.
|
||||
DATA reason TYPE string READ-ONLY.
|
||||
|
||||
METHODS constructor
|
||||
IMPORTING
|
||||
iv_order_id TYPE string
|
||||
iv_reason TYPE string.
|
||||
|
||||
METHODS get_message
|
||||
RETURNING
|
||||
VALUE(rv_message) TYPE string.
|
||||
ENDCLASS.
|
||||
|
||||
|
||||
CLASS {{p}}cx_scaf_order IMPLEMENTATION.
|
||||
METHOD constructor.
|
||||
super->constructor( ).
|
||||
order_id = iv_order_id.
|
||||
reason = iv_reason.
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD get_message.
|
||||
MESSAGE ID '{{P}}SCAF_MSG' TYPE 'E' NUMBER '001'
|
||||
WITH order_id reason INTO rv_message.
|
||||
ENDMETHOD.
|
||||
ENDCLASS.
|
||||
Reference in New Issue
Block a user