7 Start Routine

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

CLASS lcl_transform IMPLEMENTATION.

*----------------------------------------------------------------------*
* Method start_routine
*----------------------------------------------------------------------*
* Calculation of source package via start routine
*----------------------------------------------------------------------*
* <-> source package
*----------------------------------------------------------------------*
METHOD start_routine.
*=== Segments ===
FIELD-SYMBOLS:
<SOURCE_FIELDS> TYPE _ty_s_SC_1.
DATA:
MONITOR_REC TYPE rstmonitor.
*$*$ begin of routine - insert your code only below this line *-*
Data:
*--
l_subrc type sy-tabix,
l_abort type sy-tabix,
ls_monitor TYPE rsmonitor,
ls_monitor_recno TYPE rsmonitors.
data:
*--
l_monitor type standard table of rsmonitor,
l_monitor_recno type standard table of rsmonitors.
REFRESH:
MONITOR,
MONITOR_RECNO.
* Runtime attributs
SOURCE_SYSTEM = p_r_request->get_logsys( ).
* Migrated update rule call
Perform routine_9998
TABLES
l_monitor
l_monitor_recno
SOURCE_PACKAGE
CHANGING
l_abort.
*-- Convert Messages in Transformation format
LOOP AT l_monitor_recno INTO ls_monitor_recno.
move-CORRESPONDING ls_monitor_recno to MONITOR_REC.
append monitor_rec to MONITOR.
ENDLOOP.
LOOP AT l_monitor INTO ls_monitor.
move-CORRESPONDING ls_monitor to MONITOR_REC.
append monitor_rec to MONITOR.
ENDLOOP.
IF l_abort <> 0.
RAISE EXCEPTION TYPE CX_RSROUT_ABORT.
ENDIF.
*$*$ end of routine - insert your code only before this line *-*
ENDMETHOD. '

You might also like