Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014aUaQeLnwbb1zTpN7kHeat
19 lines
952 B
ABAP
19 lines
952 B
ABAP
CLASS {{p}}honey_seed DEFINITION PUBLIC FINAL CREATE PUBLIC.
|
|
PUBLIC SECTION.
|
|
INTERFACES if_oo_adt_classrun.
|
|
ENDCLASS.
|
|
|
|
CLASS {{p}}honey_seed IMPLEMENTATION.
|
|
METHOD if_oo_adt_classrun~main.
|
|
DELETE FROM {{p}}honey.
|
|
INSERT {{p}}honey FROM TABLE @( VALUE #(
|
|
( harvest_id = 1 apiary = 'NORTH' flower = 'CLOVER' harvest_date = '20260410' weight = '120.500' )
|
|
( harvest_id = 2 apiary = 'NORTH' flower = 'CLOVER' harvest_date = '20260502' weight = '80.000' )
|
|
( harvest_id = 3 apiary = 'SOUTH' flower = 'RAPE' harvest_date = '20260415' weight = '200.000' )
|
|
( harvest_id = 4 apiary = 'SOUTH' flower = 'RAPE' harvest_date = '20260301' weight = '50.000' )
|
|
( harvest_id = 5 apiary = 'EAST' flower = 'LINDEN' harvest_date = '20260601' weight = '60.250' )
|
|
( harvest_id = 6 apiary = 'EAST' flower = 'LINDEN' harvest_date = '20260615' weight = '30.000' ) ) ).
|
|
out->write( sy-dbcnt ).
|
|
ENDMETHOD.
|
|
ENDCLASS.
|