content
stringlengths
4
1.04M
input_ids
sequencelengths
2
1.02k
attention_mask
sequencelengths
2
1.02k
*"* use this source file for your ABAP unit test classes CLASS lcl_assert_ref_utilities DEFINITION. PUBLIC SECTION. METHODS: assert_structure_ref_equal IMPORTING irs_act_record TYPE REF TO data is_exp_record TYPE any RAISING cx_static_check, assert_ref_table_contains IMPORTING irt_act_table TYPE REF TO data is_exp_record TYPE any RAISING cx_static_check, assert_ref_table_lines IMPORTING irt_act_table TYPE REF TO data iv_exp_lines TYPE i RAISING cx_static_check. ENDCLASS. CLASS lcl_assert_ref_utilities IMPLEMENTATION. METHOD assert_structure_ref_equal. FIELD-SYMBOLS: <ls_act_record> TYPE any. ASSIGN irs_act_record->* TO <ls_act_record>. cl_abap_unit_assert=>assert_equals( exp = is_exp_record act = <ls_act_record> ). ENDMETHOD. METHOD assert_ref_table_contains. FIELD-SYMBOLS: <lt_act_table> TYPE ANY TABLE. ASSIGN irt_act_table->* TO <lt_act_table>. cl_abap_unit_assert=>assert_table_contains( line = is_exp_record table = <lt_act_table> ). ENDMETHOD. METHOD assert_ref_table_lines. FIELD-SYMBOLS: <lt_act_table> TYPE ANY TABLE. ASSIGN irt_act_table->* TO <lt_act_table>. cl_abap_unit_assert=>assert_equals( exp = iv_exp_lines act = lines( <lt_act_table> ) ). ENDMETHOD. ENDCLASS. CLASS ltcl_timconst_simulator DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PUBLIC SECTION. TYPES: BEGIN OF ts_pernr_dates, pernr TYPE numc07, begda TYPE begda, endda TYPE endda, nonkey TYPE string, END OF ts_pernr_dates, tt_pernr_dates TYPE STANDARD TABLE OF ts_pernr_dates WITH DEFAULT KEY. PRIVATE SECTION. DATA: mo_simulator TYPE REF TO zif_hr_timconst_simulator, mo_ref_assert_util TYPE REF TO lcl_assert_ref_utilities, mv_lines_before_ops TYPE i. METHODS: setup, verify_modify_collision_types IMPORTING io_collision_results TYPE REF TO zif_hr_modify_colision_rslts delim TYPE boole_d override TYPE boole_d postpond TYPE boole_d RAISING cx_static_check, ins_nogaps_delimitation FOR TESTING RAISING cx_static_check, ins_nogaps_overriden FOR TESTING RAISING cx_static_check, ins_nogaps_postpond FOR TESTING RAISING cx_static_check, ins_nogaps_diff_keyfield FOR TESTING RAISING cx_static_check, ins_nogaps_all_effects FOR TESTING RAISING cx_static_check, ins_nogaps_detect_gap FOR TESTING RAISING cx_static_check, del_nogaps_extended FOR TESTING RAISING cx_static_check. ENDCLASS. CLASS ltcl_timconst_simulator IMPLEMENTATION. METHOD setup. DATA: lt_pernr_dates TYPE me->tt_pernr_dates, lt_key_fields TYPE zif_hr_timconst_simulator=>tt_key_fields. lt_key_fields = VALUE #( ( 'PERNR' ) ). lt_pernr_dates = VALUE #( ( pernr = '0000001' begda = '20170101' endda = '99991231' nonkey = 'A' ) ( pernr = '0000001' begda = '20160101' endda = '20161231' nonkey = 'B' ) ( pernr = '0000001' begda = '20150101' endda = '20151231' nonkey = 'C' ) ( pernr = '0000002' begda = '20170101' endda = '99991231' nonkey = 'A' ) ( pernr = '0000002' begda = '20160101' endda = '20161231' nonkey = 'B' ) ( pernr = '0000002' begda = '20150101' endda = '20151231' nonkey = 'C' ) ). mv_lines_before_ops = lines( lt_pernr_dates ). mo_simulator = NEW zcl_hr_timconst_simulator( ). mo_simulator->set_table( it_table = lt_pernr_dates ). mo_simulator->set_time_constraints( EXPORTING iv_allow_concurent_records = abap_false iv_allow_gaps = abap_false iv_protect_initial_record = abap_false ). mo_simulator->set_key_fields( lt_key_fields ). me->mo_ref_assert_util = NEW #( ). ENDMETHOD. METHOD ins_nogaps_delimitation. DATA: ls_insert_record TYPE me->ts_pernr_dates, ls_exp_delim TYPE me->ts_pernr_dates, ls_exp_resolved_delim TYPE me->ts_pernr_dates, lo_collision_result TYPE REF TO zif_hr_modify_colision_rslts, lrs_delimited_record TYPE REF TO me->ts_pernr_dates, lrt_resolved_table TYPE REF TO me->tt_pernr_dates. FIELD-SYMBOLS: <lt_resolved_table> TYPE me->tt_pernr_dates. ls_insert_record = VALUE #( pernr = '00000001' begda = '20170201' endda = '99991231' nonkey = 'L' ). ls_exp_delim = VALUE #( pernr = '00000001' begda = '20170101' endda = '99991231' nonkey = 'A' ). ls_exp_resolved_delim = VALUE #( pernr = '00000001' begda = '20170101' endda = '20170131' nonkey = 'A' ). lo_collision_result = mo_simulator->check_collision_insert( is_record = ls_insert_record ). me->verify_modify_collision_types( io_collision_results = lo_collision_result delim = 'X' override = ' ' postpond = ' ' ). lrs_delimited_record ?= lo_collision_result->get_delimited_record( ). mo_ref_assert_util->assert_structure_ref_equal( irs_act_record = lrs_delimited_record is_exp_record = ls_exp_delim ). mo_simulator->insert_record( is_record = ls_insert_record ). lrt_resolved_table ?= mo_simulator->get_resolved_table( ). mo_ref_assert_util->assert_ref_table_contains( irt_act_table = lrt_resolved_table is_exp_record = ls_exp_resolved_delim ). mo_ref_assert_util->assert_ref_table_contains( irt_act_table = lrt_resolved_table is_exp_record = ls_insert_record ). mo_ref_assert_util->assert_ref_table_lines( irt_act_table = lrt_resolved_table iv_exp_lines = me->mv_lines_before_ops + 1 ). ENDMETHOD. METHOD ins_nogaps_overriden. DATA: ls_insert_record TYPE me->ts_pernr_dates, lo_collision_result TYPE REF TO zif_hr_modify_colision_rslts, lrt_overriden_records TYPE REF TO me->tt_pernr_dates, lrt_resolved_table TYPE REF TO me->tt_pernr_dates. ls_insert_record = VALUE #( pernr = '00000001' begda = '20150101' endda = '20151231' nonkey = 'Z' ). lo_collision_result = mo_simulator->check_collision_insert( is_record = ls_insert_record ). me->verify_modify_collision_types( io_collision_results = lo_collision_result delim = ' ' override = 'X' postpond = ' ' ). lrt_overriden_records ?= lo_collision_result->get_overriden_records( ). mo_ref_assert_util->assert_ref_table_contains( irt_act_table = lrt_overriden_records is_exp_record = ls_insert_record ). mo_ref_assert_util->assert_ref_table_lines( irt_act_table = lrt_overriden_records iv_exp_lines = 1 ). mo_simulator->insert_record( is_record = ls_insert_record ). lrt_resolved_table ?= mo_simulator->get_resolved_table( ). cl_abap_unit_assert=>assert_bound( act = lrt_resolved_table ). mo_ref_assert_util->assert_ref_table_contains( irt_act_table = lrt_resolved_table is_exp_record = ls_insert_record ). mo_ref_assert_util->assert_ref_table_lines( irt_act_table = lrt_resolved_table iv_exp_lines = me->mv_lines_before_ops ). ENDMETHOD. METHOD ins_nogaps_diff_keyfield. DATA: ls_insert_record TYPE me->ts_pernr_dates, lo_collision_result TYPE REF TO zif_hr_modify_colision_rslts, lrt_resolved_table TYPE REF TO data. FIELD-SYMBOLS: <lt_resolved_table> TYPE me->tt_pernr_dates. ls_insert_record = VALUE #( pernr = '0000003' begda = '20150101' endda = '20151231' nonkey = 'C' ). lo_collision_result = mo_simulator->check_collision_insert( is_record = ls_insert_record ). me->verify_modify_collision_types( io_collision_results = lo_collision_result delim = ' ' override = ' ' postpond = ' ' ). mo_simulator->insert_record( is_record = ls_insert_record ). lrt_resolved_table = mo_simulator->get_resolved_table( ). cl_abap_unit_assert=>assert_bound( act = lrt_resolved_table ). mo_ref_assert_util->assert_ref_table_lines( irt_act_table = lrt_resolved_table iv_exp_lines = me->mv_lines_before_ops + 1 ). mo_ref_assert_util->assert_ref_table_contains( irt_act_table = lrt_resolved_table is_exp_record = ls_insert_record ). ENDMETHOD. METHOD ins_nogaps_postpond. DATA: ls_insert_record TYPE me->ts_pernr_dates, ls_exp_delim TYPE me->ts_pernr_dates, ls_exp_resolved_delim TYPE me->ts_pernr_dates, ls_exp_postpond TYPE me->ts_pernr_dates, ls_exp_resolved_postpond TYPE me->ts_pernr_dates, lo_collision_result TYPE REF TO zif_hr_modify_colision_rslts, lrt_resolved_table TYPE REF TO data. ls_insert_record = VALUE #( pernr = '0000001' begda = '20161230' endda = '20170102' nonkey = 'L' ). ls_exp_delim = VALUE #( pernr = '0000001' begda = '20160101' endda = '20161231' nonkey = 'B' ). ls_exp_resolved_delim = VALUE #( pernr = '0000001' begda = '20160101' endda = '20161229' nonkey = 'B' ). ls_exp_postpond = VALUE #( pernr = '0000001' begda = '20170101' endda = '99991231' nonkey = 'A' ). ls_exp_resolved_postpond = VALUE #( pernr = '0000001' begda = '20170103' endda = '99991231' nonkey = 'A' ). lo_collision_result = mo_simulator->check_collision_insert( is_record = ls_insert_record ). me->verify_modify_collision_types( io_collision_results = lo_collision_result delim = 'X' override = ' ' postpond = 'X' ). mo_ref_assert_util->assert_structure_ref_equal( is_exp_record = ls_exp_delim irs_act_record = lo_collision_result->get_delimited_record( ) ). mo_ref_assert_util->assert_structure_ref_equal( is_exp_record = ls_exp_postpond irs_act_record = lo_collision_result->get_postponded_record( ) ). mo_simulator->insert_record( is_record = ls_insert_record ). lrt_resolved_table = mo_simulator->get_resolved_table( ). cl_abap_unit_assert=>assert_bound( act = lrt_resolved_table ). mo_ref_assert_util->assert_ref_table_contains( irt_act_table = lrt_resolved_table is_exp_record = ls_exp_resolved_delim ). mo_ref_assert_util->assert_ref_table_contains( irt_act_table = lrt_resolved_table is_exp_record = ls_exp_resolved_postpond ). mo_ref_assert_util->assert_ref_table_contains( irt_act_table = lrt_resolved_table is_exp_record = ls_insert_record ). mo_ref_assert_util->assert_ref_table_lines( irt_act_table = lrt_resolved_table iv_exp_lines = me->mv_lines_before_ops + 1 ). ENDMETHOD. METHOD verify_modify_collision_types. IF delim = abap_true. cl_abap_unit_assert=>assert_bound( act = io_collision_results->get_delimited_record( ) ). ELSE. cl_abap_unit_assert=>assert_not_bound( act = io_collision_results->get_delimited_record( ) ). ENDIF. IF override = abap_true. cl_abap_unit_assert=>assert_bound( act = io_collision_results->get_overriden_records( ) ). ELSE. cl_abap_unit_assert=>assert_not_bound( act = io_collision_results->get_overriden_records( ) ). ENDIF. IF postpond = abap_true. cl_abap_unit_assert=>assert_bound( act = io_collision_results->get_postponded_record( ) ). ELSE. cl_abap_unit_assert=>assert_not_bound( act = io_collision_results->get_postponded_record( ) ). ENDIF. ENDMETHOD. METHOD del_nogaps_extended. DATA: ls_delete_record TYPE me->ts_pernr_dates, ls_exp_extnd_record TYPE me->ts_pernr_dates, ls_exp_resolved_extnd_record TYPE me->ts_pernr_dates, lrt_resolved_table TYPE REF TO me->tt_pernr_dates, lo_collision_result TYPE REF TO zif_hr_delete_colision_rslts. ls_delete_record = VALUE #( pernr = '0000001' begda = '20160101' endda = '20161231' nonkey = 'B' ). ls_exp_extnd_record = VALUE #( pernr = '0000001' begda = '20150101' endda = '20151231' nonkey = 'C' ). ls_exp_resolved_extnd_record = VALUE #( pernr = '0000001' begda = '20150101' endda = '20161231' nonkey = 'C' ). lo_collision_result = mo_simulator->check_collision_delete( is_record = ls_delete_record ). cl_abap_unit_assert=>assert_bound( act = lo_collision_result ). cl_abap_unit_assert=>assert_bound( act = lo_collision_result->get_extended_record( ) ). mo_ref_assert_util->assert_structure_ref_equal( irs_act_record = lo_collision_result->get_extended_record( ) is_exp_record = ls_exp_extnd_record ). mo_simulator->delete_record( is_record = ls_delete_record ). lrt_resolved_table ?= mo_simulator->get_resolved_table( ). mo_ref_assert_util->assert_ref_table_contains( irt_act_table = lrt_resolved_table is_exp_record = ls_exp_resolved_extnd_record ). mo_ref_assert_util->assert_ref_table_lines( irt_act_table = lrt_resolved_table iv_exp_lines = mv_lines_before_ops - 1 ). ENDMETHOD. METHOD ins_nogaps_all_effects. DATA: ls_insert_record TYPE me->ts_pernr_dates, ls_delim_record TYPE me->ts_pernr_dates, ls_delim_resolved TYPE me->ts_pernr_dates, ls_overriden_record TYPE me->ts_pernr_dates, ls_postpond_record TYPE me->ts_pernr_dates, ls_postpond_resolved TYPE me->ts_pernr_dates, lo_collison_results TYPE REF TO zif_hr_modify_colision_rslts, lrt_resolved_table TYPE REF TO me->tt_pernr_dates. ls_insert_record = VALUE #( pernr = '0000001' begda = '20151230' endda = '20170102' nonkey = 'L' ). ls_delim_record = VALUE #( pernr = '0000001' begda = '20150101' endda = '20151231' nonkey = 'C' ). ls_delim_resolved = VALUE #( pernr = '0000001' begda = '20150101' endda = '20151229' nonkey = 'C' ). ls_overriden_record = VALUE #( pernr = '0000001' begda = '20160101' endda = '20161231' nonkey = 'B' ). ls_postpond_record = VALUE #( pernr = '0000001' begda = '20170101' endda = '99991231' nonkey = 'A' ). ls_postpond_resolved = VALUE #( pernr = '0000001' begda = '20170103' endda = '99991231' nonkey = 'A' ). lo_collison_results = mo_simulator->check_collision_insert( ls_insert_record ). me->verify_modify_collision_types( io_collision_results = lo_collison_results delim = 'X' override = 'X' postpond = 'X' ). mo_ref_assert_util->assert_structure_ref_equal( irs_act_record = lo_collison_results->get_delimited_record( ) is_exp_record = ls_delim_record ). mo_ref_assert_util->assert_ref_table_contains( irt_act_table = lo_collison_results->get_overriden_records( ) is_exp_record = ls_overriden_record ). mo_ref_assert_util->assert_ref_table_lines( irt_act_table = lo_collison_results->get_overriden_records( ) iv_exp_lines = 1 ). mo_ref_assert_util->assert_structure_ref_equal( irs_act_record = lo_collison_results->get_postponded_record( ) is_exp_record = ls_postpond_record ). mo_simulator->insert_record( ls_insert_record ). lrt_resolved_table ?= mo_simulator->get_resolved_table( ). mo_ref_assert_util->assert_ref_table_contains( irt_act_table = lrt_resolved_table is_exp_record = ls_delim_resolved ). mo_ref_assert_util->assert_ref_table_contains( irt_act_table = lrt_resolved_table is_exp_record = ls_insert_record ). mo_ref_assert_util->assert_ref_table_contains( irt_act_table = lrt_resolved_table is_exp_record = ls_postpond_resolved ). mo_ref_assert_util->assert_ref_table_lines( irt_act_table = lrt_resolved_table iv_exp_lines = mv_lines_before_ops ). ENDMETHOD. METHOD ins_nogaps_detect_gap. DATA: ls_insert_record TYPE me->ts_pernr_dates, lo_exp_exception_check TYPE REF TO zcx_timconst_check, lo_exp_exception_insrt TYPE REF TO zcx_timconst_check. ls_insert_record = VALUE #( pernr = '0000001' begda = '20180101' endda = '20190101' nonkey = 'L' ). TRY. mo_simulator->check_collision_insert( is_record = ls_insert_record ). CATCH zcx_timconst_check INTO lo_exp_exception_check. ENDTRY. cl_abap_unit_assert=>assert_bound( act = lo_exp_exception_check ). TRY. mo_simulator->check_collision_insert( is_record = ls_insert_record ). CATCH zcx_timconst_check INTO lo_exp_exception_insrt. ENDTRY. cl_abap_unit_assert=>assert_bound( act = lo_exp_exception_insrt ). ENDMETHOD. ENDCLASS.
[ 9, 1, 9, 779, 428, 2723, 2393, 329, 534, 9564, 2969, 4326, 1332, 6097, 198, 31631, 300, 565, 62, 30493, 62, 5420, 62, 315, 2410, 5550, 20032, 17941, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 6818, 62, 301, 5620, 62, 5420, 62, 40496, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 4173, 82, 62, 529, 62, 22105, 41876, 4526, 37, 5390, 1366, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 11201, 62, 22105, 220, 41876, 597, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 6818, 62, 5420, 62, 11487, 62, 3642, 1299, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 220, 2265, 62, 529, 62, 11487, 41876, 4526, 37, 5390, 1366, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 11201, 62, 22105, 41876, 597, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 6818, 62, 5420, 62, 11487, 62, 6615, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 220, 2265, 62, 529, 62, 11487, 41876, 4526, 37, 5390, 1366, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 11201, 62, 6615, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 43213, 62, 12708, 62, 9122, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 30493, 62, 5420, 62, 315, 2410, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 6818, 62, 301, 5620, 62, 5420, 62, 40496, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 529, 62, 22105, 29, 41876, 597, 13, 628, 220, 220, 220, 24994, 16284, 4173, 82, 62, 529, 62, 22105, 3784, 9, 5390, 1279, 7278, 62, 529, 62, 22105, 28401, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 1033, 796, 318, 62, 11201, 62, 22105, 719, 796, 1279, 7278, 62, 529, 62, 22105, 29, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 6818, 62, 5420, 62, 11487, 62, 3642, 1299, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 2528, 62, 529, 62, 11487, 29, 41876, 15529, 43679, 13, 628, 220, 220, 220, 24994, 16284, 220, 2265, 62, 529, 62, 11487, 3784, 9, 5390, 1279, 2528, 62, 529, 62, 11487, 28401, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 11487, 62, 3642, 1299, 7, 1627, 796, 318, 62, 11201, 62, 22105, 3084, 796, 1279, 2528, 62, 529, 62, 11487, 29, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 6818, 62, 5420, 62, 11487, 62, 6615, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 2528, 62, 529, 62, 11487, 29, 41876, 15529, 43679, 13, 628, 220, 220, 220, 24994, 16284, 220, 2265, 62, 529, 62, 11487, 3784, 9, 5390, 1279, 2528, 62, 529, 62, 11487, 28401, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 1033, 796, 21628, 62, 11201, 62, 6615, 719, 796, 3951, 7, 1279, 2528, 62, 529, 62, 11487, 29, 1267, 6739, 628, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 16514, 9979, 62, 14323, 8927, 5550, 20032, 17941, 25261, 7473, 43001, 2751, 198, 220, 360, 4261, 6234, 6006, 9863, 198, 220, 45698, 42, 49277, 43638, 5805, 7597, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 40379, 62, 525, 48624, 62, 19581, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 583, 48624, 220, 41876, 997, 66, 2998, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4123, 6814, 220, 41876, 4123, 6814, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 6814, 220, 41876, 886, 6814, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1729, 2539, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 40379, 62, 525, 48624, 62, 19581, 11, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 83, 62, 525, 48624, 62, 19581, 41876, 49053, 9795, 43679, 3963, 40379, 62, 525, 48624, 62, 19581, 13315, 5550, 38865, 35374, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 25, 6941, 62, 14323, 8927, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 11840, 62, 16514, 9979, 62, 14323, 8927, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6941, 62, 5420, 62, 30493, 62, 22602, 220, 41876, 4526, 37, 5390, 300, 565, 62, 30493, 62, 5420, 62, 315, 2410, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 85, 62, 6615, 62, 19052, 62, 2840, 41876, 1312, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 9058, 11, 198, 220, 220, 220, 220, 220, 11767, 62, 4666, 1958, 62, 26000, 1166, 62, 19199, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 33245, 62, 26000, 1166, 62, 43420, 41876, 4526, 37, 5390, 1976, 361, 62, 11840, 62, 4666, 1958, 62, 4033, 1166, 62, 3808, 75, 912, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 46728, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1489, 2305, 62, 67, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20957, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1489, 2305, 62, 67, 198, 220, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Report zabapgit_customizing *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT zabapgit_customizing. TABLES sscrfields. INCLUDE zabapgit_password_dialog. INITIALIZATION. lcl_password_dialog=>on_screen_init( ). AT SELECTION-SCREEN OUTPUT. IF sy-dynnr = lcl_password_dialog=>c_dynnr. lcl_password_dialog=>on_screen_output( ). ENDIF. AT SELECTION-SCREEN. IF sy-dynnr = lcl_password_dialog=>c_dynnr. lcl_password_dialog=>on_screen_event( sscrfields-ucomm ). ENDIF. START-OF-SELECTION. * Get instance DATA(go_repository_ui) = zcl_agc_repository_ui=>get_instance( ). * Display output go_repository_ui->display( ). FORM password_popup USING pv_repo_url TYPE string CHANGING cv_user TYPE string cv_pass TYPE string. lcl_password_dialog=>popup( EXPORTING iv_repo_url = pv_repo_url CHANGING cv_user = cv_user cv_pass = cv_pass ). ENDFORM.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 1976, 397, 499, 18300, 62, 23144, 2890, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 220, 39099, 1976, 397, 499, 18300, 62, 23144, 2890, 13, 628, 220, 309, 6242, 28378, 264, 1416, 81, 25747, 13, 628, 220, 3268, 5097, 52, 7206, 1976, 397, 499, 18300, 62, 28712, 62, 38969, 519, 13, 628, 220, 3268, 2043, 12576, 14887, 6234, 13, 628, 220, 220, 220, 300, 565, 62, 28712, 62, 38969, 519, 14804, 261, 62, 9612, 62, 15003, 7, 6739, 628, 220, 5161, 33493, 2849, 12, 6173, 2200, 1677, 16289, 30076, 13, 628, 220, 220, 220, 16876, 827, 12, 67, 2047, 48624, 796, 300, 565, 62, 28712, 62, 38969, 519, 14804, 66, 62, 67, 2047, 48624, 13, 198, 220, 220, 220, 220, 220, 300, 565, 62, 28712, 62, 38969, 519, 14804, 261, 62, 9612, 62, 22915, 7, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 5161, 33493, 2849, 12, 6173, 2200, 1677, 13, 628, 220, 220, 220, 16876, 827, 12, 67, 2047, 48624, 796, 300, 565, 62, 28712, 62, 38969, 519, 14804, 66, 62, 67, 2047, 48624, 13, 198, 220, 220, 220, 220, 220, 300, 565, 62, 28712, 62, 38969, 519, 14804, 261, 62, 9612, 62, 15596, 7, 264, 1416, 81, 25747, 12, 84, 9503, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 33303, 12, 19238, 12, 46506, 2849, 13, 198, 198, 9, 220, 220, 3497, 4554, 198, 220, 220, 220, 42865, 7, 2188, 62, 260, 1930, 37765, 62, 9019, 8, 796, 1976, 565, 62, 363, 66, 62, 260, 1930, 37765, 62, 9019, 14804, 1136, 62, 39098, 7, 6739, 198, 198, 9, 220, 220, 16531, 5072, 198, 220, 220, 220, 467, 62, 260, 1930, 37765, 62, 9019, 3784, 13812, 7, 6739, 628, 220, 49144, 9206, 62, 12924, 929, 198, 220, 220, 220, 220, 220, 220, 220, 1294, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 85, 62, 260, 7501, 62, 6371, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 85, 62, 7220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 85, 62, 6603, 220, 220, 220, 220, 41876, 4731, 13, 628, 220, 220, 220, 300, 565, 62, 28712, 62, 38969, 519, 14804, 12924, 929, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 260, 7501, 62, 6371, 220, 220, 220, 220, 796, 279, 85, 62, 260, 7501, 62, 6371, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 269, 85, 62, 7220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 269, 85, 62, 7220, 198, 220, 220, 220, 220, 220, 220, 220, 269, 85, 62, 6603, 220, 220, 220, 220, 220, 220, 220, 220, 796, 269, 85, 62, 6603, 6739, 628, 220, 12964, 8068, 1581, 44, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_popups DEFINITION PUBLIC FINAL CREATE PRIVATE GLOBAL FRIENDS zcl_abapgit_ui_factory . PUBLIC SECTION. INTERFACES zif_abapgit_popups . CONSTANTS c_default_column TYPE lvc_fname VALUE `DEFAULT_COLUMN` ##NO_TEXT. PROTECTED SECTION. PRIVATE SECTION. CONSTANTS c_fieldname_selected TYPE lvc_fname VALUE `SELECTED` ##NO_TEXT. CONSTANTS c_answer_cancel TYPE c LENGTH 1 VALUE 'A' ##NO_TEXT. DATA mo_select_list_popup TYPE REF TO cl_salv_table . DATA mr_table TYPE REF TO data . DATA mv_cancel TYPE abap_bool VALUE abap_false. DATA mo_table_descr TYPE REF TO cl_abap_tabledescr . METHODS add_field IMPORTING !iv_tabname TYPE sval-tabname !iv_fieldname TYPE sval-fieldname !iv_fieldtext TYPE sval-fieldtext !iv_value TYPE clike DEFAULT '' !iv_field_attr TYPE sval-field_attr DEFAULT '' !iv_obligatory TYPE spo_obl OPTIONAL CHANGING !ct_fields TYPE zif_abapgit_popups=>ty_sval_tt . METHODS create_new_table IMPORTING !it_list TYPE STANDARD TABLE . METHODS get_selected_rows EXPORTING !et_list TYPE INDEX TABLE . METHODS on_select_list_link_click FOR EVENT link_click OF cl_salv_events_table IMPORTING !row !column . METHODS on_select_list_function_click FOR EVENT added_function OF cl_salv_events_table IMPORTING !e_salv_function . METHODS on_double_click FOR EVENT double_click OF cl_salv_events_table IMPORTING !row !column . METHODS extract_field_values IMPORTING it_fields TYPE zif_abapgit_popups=>ty_sval_tt EXPORTING ev_url TYPE abaptxt255-line ev_package TYPE tdevc-devclass ev_branch TYPE textl-line ev_display_name TYPE trm255-text ev_folder_logic TYPE string ev_ign_subpkg TYPE abap_bool ev_master_lang_only TYPE abap_bool. TYPES: ty_lt_fields TYPE STANDARD TABLE OF sval WITH DEFAULT KEY. METHODS _popup_3_get_values IMPORTING iv_popup_title TYPE string iv_no_value_check TYPE abap_bool DEFAULT abap_false EXPORTING ev_value_1 TYPE spo_value ev_value_2 TYPE spo_value ev_value_3 TYPE spo_value CHANGING ct_fields TYPE ty_lt_fields RAISING zcx_abapgit_exception. METHODS popup_get_from_free_selections IMPORTING iv_title TYPE zcl_abapgit_free_sel_dialog=>ty_syst_title OPTIONAL iv_frame_text TYPE zcl_abapgit_free_sel_dialog=>ty_syst_title OPTIONAL CHANGING ct_fields TYPE zcl_abapgit_free_sel_dialog=>ty_free_sel_field_tab RAISING zcx_abapgit_cancel zcx_abapgit_exception. METHODS validate_folder_logic IMPORTING iv_folder_logic TYPE string RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_popups IMPLEMENTATION. METHOD add_field. FIELD-SYMBOLS: <ls_field> LIKE LINE OF ct_fields. APPEND INITIAL LINE TO ct_fields ASSIGNING <ls_field>. <ls_field>-tabname = iv_tabname. <ls_field>-fieldname = iv_fieldname. <ls_field>-fieldtext = iv_fieldtext. <ls_field>-value = iv_value. <ls_field>-field_attr = iv_field_attr. <ls_field>-field_obl = iv_obligatory. ENDMETHOD. METHOD create_new_table. " create and populate a table on the fly derived from " it_data with a select column DATA: lr_struct TYPE REF TO data, lt_components TYPE cl_abap_structdescr=>component_table, lo_data_descr TYPE REF TO cl_abap_datadescr, lo_elem_descr TYPE REF TO cl_abap_elemdescr, lo_struct_descr TYPE REF TO cl_abap_structdescr, lo_struct_descr2 TYPE REF TO cl_abap_structdescr. FIELD-SYMBOLS: <lt_table> TYPE STANDARD TABLE, <ls_component> TYPE abap_componentdescr, <lg_line> TYPE data, <lg_data> TYPE any, <lg_value> TYPE any. mo_table_descr ?= cl_abap_tabledescr=>describe_by_data( it_list ). lo_data_descr = mo_table_descr->get_table_line_type( ). CASE lo_data_descr->kind. WHEN cl_abap_elemdescr=>kind_elem. lo_elem_descr ?= mo_table_descr->get_table_line_type( ). INSERT INITIAL LINE INTO lt_components ASSIGNING <ls_component> INDEX 1. <ls_component>-name = c_default_column. <ls_component>-type = lo_elem_descr. WHEN cl_abap_elemdescr=>kind_struct. lo_struct_descr ?= mo_table_descr->get_table_line_type( ). lt_components = lo_struct_descr->get_components( ). ENDCASE. IF lt_components IS INITIAL. RETURN. ENDIF. INSERT INITIAL LINE INTO lt_components ASSIGNING <ls_component> INDEX 1. <ls_component>-name = c_fieldname_selected. <ls_component>-type ?= cl_abap_datadescr=>describe_by_name( 'FLAG' ). lo_struct_descr2 = cl_abap_structdescr=>create( lt_components ). mo_table_descr = cl_abap_tabledescr=>create( lo_struct_descr2 ). CREATE DATA mr_table TYPE HANDLE mo_table_descr. ASSIGN mr_table->* TO <lt_table>. ASSERT sy-subrc = 0. CREATE DATA lr_struct TYPE HANDLE lo_struct_descr2. ASSIGN lr_struct->* TO <lg_line>. ASSERT sy-subrc = 0. LOOP AT it_list ASSIGNING <lg_data>. CLEAR <lg_line>. CASE lo_data_descr->kind. WHEN cl_abap_elemdescr=>kind_elem. ASSIGN COMPONENT c_default_column OF STRUCTURE <lg_data> TO <lg_value>. ASSERT <lg_value> IS ASSIGNED. <lg_line> = <lg_value>. WHEN OTHERS. MOVE-CORRESPONDING <lg_data> TO <lg_line>. ENDCASE. INSERT <lg_line> INTO TABLE <lt_table>. ENDLOOP. ENDMETHOD. METHOD extract_field_values. FIELD-SYMBOLS: <ls_field> LIKE LINE OF it_fields. CLEAR: ev_url, ev_package, ev_branch, ev_display_name, ev_folder_logic, ev_ign_subpkg. READ TABLE it_fields INDEX 1 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_url = <ls_field>-value. READ TABLE it_fields INDEX 2 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_package = <ls_field>-value. TRANSLATE ev_package TO UPPER CASE. READ TABLE it_fields INDEX 3 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_branch = <ls_field>-value. READ TABLE it_fields INDEX 4 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_display_name = <ls_field>-value. READ TABLE it_fields INDEX 5 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_folder_logic = <ls_field>-value. TRANSLATE ev_folder_logic TO UPPER CASE. READ TABLE it_fields INDEX 6 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_ign_subpkg = <ls_field>-value. TRANSLATE ev_ign_subpkg TO UPPER CASE. READ TABLE it_fields INDEX 7 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_master_lang_only = <ls_field>-value. ENDMETHOD. METHOD get_selected_rows. DATA: lv_condition TYPE string, lr_exporting TYPE REF TO data. FIELD-SYMBOLS: <lg_exporting> TYPE any, <lt_table> TYPE STANDARD TABLE, <lg_line> TYPE any, <lg_value> TYPE any, <lv_selected> TYPE abap_bool, <lv_selected_row> TYPE LINE OF salv_t_row. DATA: lo_data_descr TYPE REF TO cl_abap_datadescr, lo_selections TYPE REF TO cl_salv_selections, lt_selected_rows TYPE salv_t_row. ASSIGN mr_table->* TO <lt_table>. ASSERT sy-subrc = 0. lo_selections = mo_select_list_popup->get_selections( ). IF lo_selections->get_selection_mode( ) = if_salv_c_selection_mode=>single. lt_selected_rows = lo_selections->get_selected_rows( ). LOOP AT lt_selected_rows ASSIGNING <lv_selected_row>. READ TABLE <lt_table> ASSIGNING <lg_line> INDEX <lv_selected_row>. CHECK <lg_line> IS ASSIGNED. ASSIGN COMPONENT c_fieldname_selected OF STRUCTURE <lg_line> TO <lv_selected>. CHECK <lv_selected> IS ASSIGNED. <lv_selected> = abap_true. ENDLOOP. ENDIF. lv_condition = |{ c_fieldname_selected } = ABAP_TRUE|. CREATE DATA lr_exporting LIKE LINE OF et_list. ASSIGN lr_exporting->* TO <lg_exporting>. mo_table_descr ?= cl_abap_tabledescr=>describe_by_data( et_list ). lo_data_descr = mo_table_descr->get_table_line_type( ). LOOP AT <lt_table> ASSIGNING <lg_line> WHERE (lv_condition). CLEAR <lg_exporting>. CASE lo_data_descr->kind. WHEN cl_abap_elemdescr=>kind_elem. ASSIGN COMPONENT c_default_column OF STRUCTURE <lg_line> TO <lg_value>. ASSERT <lg_value> IS ASSIGNED. <lg_exporting> = <lg_value>. WHEN OTHERS. MOVE-CORRESPONDING <lg_line> TO <lg_exporting>. ENDCASE. APPEND <lg_exporting> TO et_list. ENDLOOP. ENDMETHOD. METHOD on_double_click. DATA: lo_selections TYPE REF TO cl_salv_selections. lo_selections = mo_select_list_popup->get_selections( ). IF lo_selections->get_selection_mode( ) = if_salv_c_selection_mode=>single. mo_select_list_popup->close_screen( ). ENDIF. ENDMETHOD. METHOD on_select_list_function_click. FIELD-SYMBOLS: <lt_table> TYPE STANDARD TABLE, <lg_line> TYPE any, <lv_selected> TYPE abap_bool. ASSIGN mr_table->* TO <lt_table>. ASSERT sy-subrc = 0. CASE e_salv_function. WHEN 'O.K.'. mv_cancel = abap_false. mo_select_list_popup->close_screen( ). WHEN 'ABR'. "Canceled: clear list to overwrite nothing CLEAR <lt_table>. mv_cancel = abap_true. mo_select_list_popup->close_screen( ). WHEN 'SALL'. LOOP AT <lt_table> ASSIGNING <lg_line>. ASSIGN COMPONENT c_fieldname_selected OF STRUCTURE <lg_line> TO <lv_selected>. ASSERT sy-subrc = 0. <lv_selected> = abap_true. ENDLOOP. mo_select_list_popup->refresh( ). WHEN 'DSEL'. LOOP AT <lt_table> ASSIGNING <lg_line>. ASSIGN COMPONENT c_fieldname_selected OF STRUCTURE <lg_line> TO <lv_selected>. ASSERT sy-subrc = 0. <lv_selected> = abap_false. ENDLOOP. mo_select_list_popup->refresh( ). WHEN OTHERS. CLEAR <lt_table>. mo_select_list_popup->close_screen( ). ENDCASE. ENDMETHOD. METHOD on_select_list_link_click. FIELD-SYMBOLS: <lt_table> TYPE STANDARD TABLE, <lg_line> TYPE any, <lv_selected> TYPE abap_bool. ASSIGN mr_table->* TO <lt_table>. ASSERT sy-subrc = 0. READ TABLE <lt_table> ASSIGNING <lg_line> INDEX row. IF sy-subrc = 0. ASSIGN COMPONENT c_fieldname_selected OF STRUCTURE <lg_line> TO <lv_selected>. ASSERT sy-subrc = 0. IF <lv_selected> = abap_true. <lv_selected> = abap_false. ELSE. <lv_selected> = abap_true. ENDIF. ENDIF. mo_select_list_popup->refresh( ). ENDMETHOD. METHOD popup_get_from_free_selections. DATA: lo_free_sel_dialog TYPE REF TO zcl_abapgit_free_sel_dialog. CREATE OBJECT lo_free_sel_dialog EXPORTING iv_title = iv_title iv_frame_text = iv_frame_text. lo_free_sel_dialog->set_fields( CHANGING ct_fields = ct_fields ). lo_free_sel_dialog->show( ). ENDMETHOD. METHOD validate_folder_logic. IF iv_folder_logic <> zif_abapgit_dot_abapgit=>c_folder_logic-prefix AND iv_folder_logic <> zif_abapgit_dot_abapgit=>c_folder_logic-full. zcx_abapgit_exception=>raise( |Invalid folder logic { iv_folder_logic }. | && |Choose either { zif_abapgit_dot_abapgit=>c_folder_logic-prefix } | && |or { zif_abapgit_dot_abapgit=>c_folder_logic-full } | ). ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~branch_list_popup. DATA: lo_branches TYPE REF TO zcl_abapgit_git_branch_list, lt_branches TYPE zif_abapgit_definitions=>ty_git_branch_list_tt, lv_answer TYPE c LENGTH 1, lv_default TYPE i, lv_head_suffix TYPE string, lv_head_symref TYPE string, lv_text TYPE string, lt_selection TYPE TABLE OF spopli. FIELD-SYMBOLS: <ls_sel> LIKE LINE OF lt_selection, <ls_branch> LIKE LINE OF lt_branches. lo_branches = zcl_abapgit_git_transport=>branches( iv_url ). lt_branches = lo_branches->get_branches_only( ). lv_head_suffix = | ({ zif_abapgit_definitions=>c_head_name })|. lv_head_symref = lo_branches->get_head_symref( ). IF iv_hide_branch IS NOT INITIAL. DELETE lt_branches WHERE name = iv_hide_branch. ENDIF. IF iv_hide_head IS NOT INITIAL. DELETE lt_branches WHERE name = zif_abapgit_definitions=>c_head_name OR is_head = abap_true. ENDIF. IF lt_branches IS INITIAL. IF iv_hide_head IS NOT INITIAL. lv_text = 'master'. ENDIF. IF iv_hide_branch IS NOT INITIAL AND iv_hide_branch <> zif_abapgit_definitions=>c_git_branch-master. IF lv_text IS INITIAL. lv_text = iv_hide_branch && ' is'. ELSE. CONCATENATE lv_text 'and' iv_hide_branch 'are' INTO lv_text SEPARATED BY space. ENDIF. ELSE. lv_text = lv_text && ' is'. ENDIF. IF lv_text IS NOT INITIAL. zcx_abapgit_exception=>raise( 'No branches available to select (' && lv_text && ' hidden)' ). ELSE. zcx_abapgit_exception=>raise( 'No branches are available to select' ). ENDIF. ENDIF. LOOP AT lt_branches ASSIGNING <ls_branch>. CHECK <ls_branch>-name IS NOT INITIAL. " To ensure some below ifs IF <ls_branch>-is_head = abap_true. IF <ls_branch>-name = zif_abapgit_definitions=>c_head_name. " HEAD IF <ls_branch>-name <> lv_head_symref AND lv_head_symref IS NOT INITIAL. " HEAD but other HEAD symref exists - ignore CONTINUE. ELSE. INSERT INITIAL LINE INTO lt_selection INDEX 1 ASSIGNING <ls_sel>. <ls_sel>-varoption = <ls_branch>-name. ENDIF. ELSE. INSERT INITIAL LINE INTO lt_selection INDEX 1 ASSIGNING <ls_sel>. <ls_sel>-varoption = <ls_branch>-display_name && lv_head_suffix. ENDIF. IF lv_default > 0. " Shift down default if set lv_default = lv_default + 1. ENDIF. ELSE. APPEND INITIAL LINE TO lt_selection ASSIGNING <ls_sel>. <ls_sel>-varoption = <ls_branch>-display_name. ENDIF. IF <ls_branch>-name = iv_default_branch. IF <ls_branch>-is_head = abap_true. lv_default = 1. ELSE. lv_default = sy-tabix. ENDIF. ENDIF. ENDLOOP. IF iv_show_new_option = abap_true. APPEND INITIAL LINE TO lt_selection ASSIGNING <ls_sel>. <ls_sel>-varoption = zif_abapgit_popups=>c_new_branch_label. ENDIF. CALL FUNCTION 'POPUP_TO_DECIDE_LIST' EXPORTING textline1 = 'Select branch' titel = 'Select branch' start_col = 30 start_row = 5 cursorline = lv_default IMPORTING answer = lv_answer TABLES t_spopli = lt_selection EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from POPUP_TO_DECIDE_LIST' ). ENDIF. IF lv_answer = c_answer_cancel. RETURN. ENDIF. READ TABLE lt_selection ASSIGNING <ls_sel> WITH KEY selflag = abap_true. ASSERT sy-subrc = 0. IF iv_show_new_option = abap_true AND <ls_sel>-varoption = zif_abapgit_popups=>c_new_branch_label. rs_branch-name = zif_abapgit_popups=>c_new_branch_label. ELSE. REPLACE FIRST OCCURRENCE OF lv_head_suffix IN <ls_sel>-varoption WITH ''. READ TABLE lt_branches WITH KEY display_name = <ls_sel>-varoption ASSIGNING <ls_branch>. IF sy-subrc <> 0. * branch name longer than 65 characters LOOP AT lt_branches ASSIGNING <ls_branch> WHERE display_name CS <ls_sel>-varoption. EXIT. " current loop ENDLOOP. ENDIF. ASSERT <ls_branch> IS ASSIGNED. rs_branch = lo_branches->find_by_name( <ls_branch>-name ). lv_text = |Branch switched from { zcl_abapgit_git_branch_list=>get_display_name( iv_default_branch ) } to { zcl_abapgit_git_branch_list=>get_display_name( rs_branch-name ) } |. MESSAGE lv_text TYPE 'S'. ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~branch_popup_callback. DATA: lv_url TYPE string, ls_package_data TYPE scompkdtln, ls_branch TYPE zif_abapgit_definitions=>ty_git_branch, lv_create TYPE abap_bool, lv_text TYPE string. FIELD-SYMBOLS: <ls_furl> LIKE LINE OF ct_fields, <ls_fbranch> LIKE LINE OF ct_fields, <ls_fpackage> LIKE LINE OF ct_fields. CLEAR cs_error. IF iv_code = 'COD1'. cv_show_popup = abap_true. READ TABLE ct_fields ASSIGNING <ls_furl> WITH KEY tabname = 'ABAPTXT255'. IF sy-subrc <> 0 OR <ls_furl>-value IS INITIAL. MESSAGE 'Fill URL' TYPE 'S' DISPLAY LIKE 'E'. RETURN. ENDIF. lv_url = <ls_furl>-value. ls_branch = zif_abapgit_popups~branch_list_popup( lv_url ). IF ls_branch IS INITIAL. RETURN. ENDIF. READ TABLE ct_fields ASSIGNING <ls_fbranch> WITH KEY tabname = 'TEXTL'. ASSERT sy-subrc = 0. <ls_fbranch>-value = ls_branch-name. ELSEIF iv_code = 'COD2'. cv_show_popup = abap_true. READ TABLE ct_fields ASSIGNING <ls_fpackage> WITH KEY fieldname = 'DEVCLASS'. ASSERT sy-subrc = 0. ls_package_data-devclass = <ls_fpackage>-value. IF zcl_abapgit_factory=>get_sap_package( ls_package_data-devclass )->exists( ) = abap_true. lv_text = |Package { ls_package_data-devclass } already exists|. MESSAGE lv_text TYPE 'I' DISPLAY LIKE 'E'. RETURN. ENDIF. zif_abapgit_popups~popup_to_create_package( IMPORTING es_package_data = ls_package_data ev_create = lv_create ). IF lv_create = abap_false. RETURN. ENDIF. zcl_abapgit_factory=>get_sap_package( ls_package_data-devclass )->create( ls_package_data ). COMMIT WORK. <ls_fpackage>-value = ls_package_data-devclass. ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~choose_pr_popup. DATA lv_answer TYPE c LENGTH 1. DATA lt_selection TYPE TABLE OF spopli. FIELD-SYMBOLS <ls_sel> LIKE LINE OF lt_selection. FIELD-SYMBOLS <ls_pull> LIKE LINE OF it_pulls. IF lines( it_pulls ) = 0. zcx_abapgit_exception=>raise( 'No pull requests to select from' ). ENDIF. LOOP AT it_pulls ASSIGNING <ls_pull>. APPEND INITIAL LINE TO lt_selection ASSIGNING <ls_sel>. <ls_sel>-varoption = |{ <ls_pull>-number } - { <ls_pull>-title } @{ <ls_pull>-user }|. ENDLOOP. SORT lt_selection BY varoption DESCENDING. CALL FUNCTION 'POPUP_TO_DECIDE_LIST' EXPORTING textline1 = 'Select pull request' titel = 'Select pull request' start_col = 30 start_row = 5 IMPORTING answer = lv_answer TABLES t_spopli = lt_selection EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from POPUP_TO_DECIDE_LIST' ). ENDIF. IF lv_answer = c_answer_cancel. RETURN. ENDIF. READ TABLE lt_selection ASSIGNING <ls_sel> WITH KEY selflag = abap_true. ASSERT sy-subrc = 0. READ TABLE it_pulls INTO rs_pull INDEX sy-tabix. ASSERT sy-subrc = 0. ENDMETHOD. METHOD zif_abapgit_popups~create_branch_popup. DATA: lt_fields TYPE TABLE OF sval. DATA: lv_name TYPE spo_value. CLEAR: ev_name, ev_cancel. add_field( EXPORTING iv_tabname = 'TEXTL' iv_fieldname = 'LINE' iv_fieldtext = 'Name' iv_value = 'new-branch-name' CHANGING ct_fields = lt_fields ). TRY. _popup_3_get_values( EXPORTING iv_popup_title = |Create branch from { zcl_abapgit_git_branch_list=>get_display_name( iv_source_branch_name ) }| IMPORTING ev_value_1 = lv_name CHANGING ct_fields = lt_fields ). ev_name = zcl_abapgit_git_branch_list=>complete_heads_branch_name( zcl_abapgit_git_branch_list=>normalize_branch_name( lv_name ) ). CATCH zcx_abapgit_cancel. ev_cancel = abap_true. ENDTRY. ENDMETHOD. METHOD zif_abapgit_popups~popup_folder_logic. DATA: lt_fields TYPE TABLE OF sval. DATA: lv_folder_logic TYPE spo_value. CLEAR: rv_folder_logic. add_field( EXPORTING iv_tabname = 'TDEVC' iv_fieldname = 'INTSYS' iv_fieldtext = 'Folder logic' iv_value = 'PREFIX' CHANGING ct_fields = lt_fields ). TRY. _popup_3_get_values( EXPORTING iv_popup_title = 'Export package' iv_no_value_check = abap_true IMPORTING ev_value_1 = lv_folder_logic CHANGING ct_fields = lt_fields ). rv_folder_logic = to_upper( lv_folder_logic ). CATCH zcx_abapgit_cancel. ENDTRY. ENDMETHOD. METHOD zif_abapgit_popups~popup_object. DATA: lt_fields TYPE TABLE OF sval. DATA: lv_object_type TYPE spo_value. DATA: lv_object_name TYPE spo_value. CLEAR: rs_tadir-object, rs_tadir-obj_name. add_field( EXPORTING iv_tabname = 'TADIR' iv_fieldname = 'OBJECT' iv_fieldtext = 'Type' CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TADIR' iv_fieldname = 'OBJ_NAME' iv_fieldtext = 'Name' CHANGING ct_fields = lt_fields ). _popup_3_get_values( EXPORTING iv_popup_title = 'Object' iv_no_value_check = abap_true IMPORTING ev_value_1 = lv_object_type ev_value_2 = lv_object_name CHANGING ct_fields = lt_fields ). rs_tadir = zcl_abapgit_factory=>get_tadir( )->read_single( iv_object = to_upper( lv_object_type ) iv_obj_name = to_upper( lv_object_name ) ). ENDMETHOD. METHOD zif_abapgit_popups~popup_package_export. DATA: lt_fields TYPE TABLE OF sval. DATA: lv_package TYPE spo_value. DATA: lv_folder_logic TYPE spo_value. DATA: lv_serialize_master_lang_only TYPE spo_value. add_field( EXPORTING iv_tabname = 'TDEVC' iv_fieldname = 'DEVCLASS' iv_fieldtext = 'Package' CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TDEVC' iv_fieldname = 'INTSYS' iv_fieldtext = 'Folder logic' iv_value = 'PREFIX' CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TVDIR' iv_fieldname = 'FLAG' iv_fieldtext = 'Main language only' CHANGING ct_fields = lt_fields ). TRY. _popup_3_get_values( EXPORTING iv_popup_title = 'Export package' iv_no_value_check = abap_true IMPORTING ev_value_1 = lv_package ev_value_2 = lv_folder_logic ev_value_3 = lv_serialize_master_lang_only CHANGING ct_fields = lt_fields ). ev_package = to_upper( lv_package ). ev_folder_logic = to_upper( lv_folder_logic ). ev_serialize_master_lang_only = boolc( lv_serialize_master_lang_only IS NOT INITIAL ). CATCH zcx_abapgit_cancel. ENDTRY. ENDMETHOD. METHOD zif_abapgit_popups~popup_perf_test_parameters. DATA: lt_fields TYPE zcl_abapgit_free_sel_dialog=>ty_free_sel_field_tab. FIELD-SYMBOLS: <ls_field> TYPE zcl_abapgit_free_sel_dialog=>ty_free_sel_field. APPEND INITIAL LINE TO lt_fields ASSIGNING <ls_field>. <ls_field>-name = 'PACKAGE'. <ls_field>-only_parameter = abap_true. <ls_field>-ddic_tabname = 'TADIR'. <ls_field>-ddic_fieldname = 'DEVCLASS'. <ls_field>-param_obligatory = abap_true. <ls_field>-value = cv_package. APPEND INITIAL LINE TO lt_fields ASSIGNING <ls_field>. <ls_field>-name = 'PGMID'. <ls_field>-only_parameter = abap_true. <ls_field>-ddic_tabname = 'TADIR'. <ls_field>-ddic_fieldname = 'PGMID'. <ls_field>-value = 'R3TR'. APPEND INITIAL LINE TO lt_fields ASSIGNING <ls_field>. <ls_field>-name = 'OBJECT'. <ls_field>-ddic_tabname = 'TADIR'. <ls_field>-ddic_fieldname = 'OBJECT'. APPEND INITIAL LINE TO lt_fields ASSIGNING <ls_field>. <ls_field>-name = 'OBJ_NAME'. <ls_field>-ddic_tabname = 'TADIR'. <ls_field>-ddic_fieldname = 'OBJ_NAME'. APPEND INITIAL LINE TO lt_fields ASSIGNING <ls_field>. <ls_field>-name = 'INCLUDE_SUB_PACKAGES'. <ls_field>-only_parameter = abap_true. <ls_field>-ddic_tabname = 'TDEVC'. <ls_field>-ddic_fieldname = 'IS_ENHANCEABLE'. <ls_field>-text = 'Include subpackages'. <ls_field>-value = cv_include_sub_packages. APPEND INITIAL LINE TO lt_fields ASSIGNING <ls_field>. <ls_field>-name = 'MASTER_LANG_ONLY'. <ls_field>-only_parameter = abap_true. <ls_field>-ddic_tabname = 'TVDIR'. <ls_field>-ddic_fieldname = 'FLAG'. <ls_field>-text = 'Main language only'. <ls_field>-value = cv_serialize_master_lang_only. popup_get_from_free_selections( EXPORTING iv_title = 'Serialization Performance Test Parameters' iv_frame_text = 'Parameters' CHANGING ct_fields = lt_fields ). LOOP AT lt_fields ASSIGNING <ls_field>. CASE <ls_field>-name. WHEN 'PACKAGE'. cv_package = <ls_field>-value. WHEN 'OBJECT'. et_object_type_filter = <ls_field>-value_range. WHEN 'OBJ_NAME'. et_object_name_filter = <ls_field>-value_range. WHEN 'INCLUDE_SUB_PACKAGES'. cv_include_sub_packages = boolc( <ls_field>-value IS NOT INITIAL ). WHEN 'MASTER_LANG_ONLY'. cv_serialize_master_lang_only = boolc( <ls_field>-value IS NOT INITIAL ). ENDCASE. ENDLOOP. ENDMETHOD. METHOD zif_abapgit_popups~popup_proxy_bypass. rt_proxy_bypass = it_proxy_bypass. CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG' EXPORTING title = 'Bypass proxy settings for these Hosts & Domains' signed = abap_false lower_case = abap_true no_interval_check = abap_true TABLES range = rt_proxy_bypass EXCEPTIONS no_range_tab = 1 cancelled = 2 internal_error = 3 invalid_fieldname = 4 OTHERS = 5. CASE sy-subrc. WHEN 0. WHEN 2. RAISE EXCEPTION TYPE zcx_abapgit_cancel. WHEN OTHERS. zcx_abapgit_exception=>raise( 'Error from COMPLEX_SELECTIONS_DIALOG' ). ENDCASE. ENDMETHOD. METHOD zif_abapgit_popups~popup_search_help. DATA lt_ret TYPE TABLE OF ddshretval. DATA ls_ret LIKE LINE OF lt_ret. DATA lv_tabname TYPE dfies-tabname. DATA lv_fieldname TYPE dfies-fieldname. SPLIT iv_tab_field AT '-' INTO lv_tabname lv_fieldname. lv_tabname = to_upper( lv_tabname ). lv_fieldname = to_upper( lv_fieldname ). CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST' EXPORTING tabname = lv_tabname fieldname = lv_fieldname TABLES return_tab = lt_ret EXCEPTIONS OTHERS = 5. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |F4IF_FIELD_VALUE_REQUEST error [{ iv_tab_field }]| ). ENDIF. IF lines( lt_ret ) > 0. READ TABLE lt_ret INDEX 1 INTO ls_ret. ASSERT sy-subrc = 0. rv_value = ls_ret-fieldval. ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_confirm. CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = iv_titlebar text_question = iv_text_question text_button_1 = iv_text_button_1 icon_button_1 = iv_icon_button_1 text_button_2 = iv_text_button_2 icon_button_2 = iv_icon_button_2 default_button = iv_default_button display_cancel_button = iv_display_cancel_button IMPORTING answer = rv_answer EXCEPTIONS text_not_found = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from POPUP_TO_CONFIRM' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_create_package. CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'PB_POPUP_PACKAGE_CREATE' EXCEPTIONS function_not_exist = 1 OTHERS = 2. IF sy-subrc = 1. * looks like the function module used does not exist on all * versions since 702, so show an error zcx_abapgit_exception=>raise( 'Your system does not support automatic creation of packages.' && 'Please, create the package manually.' ). ENDIF. CALL FUNCTION 'PB_POPUP_PACKAGE_CREATE' CHANGING p_object_data = es_package_data EXCEPTIONS action_cancelled = 1. ev_create = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_popups~popup_to_create_transp_branch. DATA: lt_fields TYPE TABLE OF sval, lv_transports_as_text TYPE string, lv_desc_as_text TYPE string, ls_transport_header LIKE LINE OF it_transport_headers. DATA: lv_branch_name TYPE spo_value. DATA: lv_commit_text TYPE spo_value. CLEAR: rs_transport_branch-branch_name, rs_transport_branch-commit_text. " If we only have one transport selected set branch name to Transport " name and commit description to transport description. IF lines( it_transport_headers ) = 1. READ TABLE it_transport_headers INDEX 1 INTO ls_transport_header. lv_transports_as_text = ls_transport_header-trkorr. SELECT SINGLE as4text FROM e07t INTO lv_desc_as_text WHERE trkorr = ls_transport_header-trkorr AND langu = sy-langu. ELSE. " Else set branch name and commit message to 'Transport(s)_TRXXXXXX_TRXXXXX' lv_transports_as_text = 'Transport(s)'. LOOP AT it_transport_headers INTO ls_transport_header. CONCATENATE lv_transports_as_text '_' ls_transport_header-trkorr INTO lv_transports_as_text. ENDLOOP. lv_desc_as_text = lv_transports_as_text. ENDIF. add_field( EXPORTING iv_tabname = 'TEXTL' iv_fieldname = 'LINE' iv_fieldtext = 'Branch name' iv_value = lv_transports_as_text CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'ABAPTXT255' iv_fieldname = 'LINE' iv_fieldtext = 'Commit text' iv_value = lv_desc_as_text CHANGING ct_fields = lt_fields ). _popup_3_get_values( EXPORTING iv_popup_title = 'Transport to new Branch' IMPORTING ev_value_1 = lv_branch_name ev_value_2 = lv_commit_text CHANGING ct_fields = lt_fields ). rs_transport_branch-branch_name = lv_branch_name. rs_transport_branch-commit_text = lv_commit_text. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_inform. DATA: lv_line1 TYPE c LENGTH 70, lv_line2 TYPE c LENGTH 70. lv_line1 = iv_text_message. IF strlen( iv_text_message ) > 70. lv_line2 = iv_text_message+70. ENDIF. CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = iv_titlebar txt1 = lv_line1 txt2 = lv_line2. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_select_from_list. DATA: lv_pfstatus TYPE sypfkey, lo_events TYPE REF TO cl_salv_events_table, lo_columns TYPE REF TO cl_salv_columns_table, lt_columns TYPE salv_t_column_ref, ls_column TYPE salv_s_column_ref, lo_column TYPE REF TO cl_salv_column_list, lo_table_header TYPE REF TO cl_salv_form_text. FIELD-SYMBOLS: <lt_table> TYPE STANDARD TABLE, <ls_column_to_display> TYPE zif_abapgit_definitions=>ty_alv_column. CLEAR: et_list. create_new_table( it_list ). ASSIGN mr_table->* TO <lt_table>. ASSERT sy-subrc = 0. TRY. cl_salv_table=>factory( IMPORTING r_salv_table = mo_select_list_popup CHANGING t_table = <lt_table> ). CASE iv_selection_mode. WHEN if_salv_c_selection_mode=>single. lv_pfstatus = '110'. WHEN OTHERS. lv_pfstatus = '102'. ENDCASE. mo_select_list_popup->set_screen_status( pfstatus = lv_pfstatus report = 'SAPMSVIM' ). mo_select_list_popup->set_screen_popup( start_column = iv_start_column end_column = iv_end_column start_line = iv_start_line end_line = iv_end_line ). lo_events = mo_select_list_popup->get_event( ). SET HANDLER on_select_list_link_click FOR lo_events. SET HANDLER on_select_list_function_click FOR lo_events. SET HANDLER on_double_click FOR lo_events. IF iv_title CN ' _0'. mo_select_list_popup->get_display_settings( )->set_list_header( iv_title ). ENDIF. IF iv_header_text CN ' _0'. CREATE OBJECT lo_table_header EXPORTING text = iv_header_text. mo_select_list_popup->set_top_of_list( lo_table_header ). ENDIF. mo_select_list_popup->get_display_settings( )->set_striped_pattern( iv_striped_pattern ). mo_select_list_popup->get_selections( )->set_selection_mode( iv_selection_mode ). lo_columns = mo_select_list_popup->get_columns( ). lt_columns = lo_columns->get( ). lo_columns->set_optimize( iv_optimize_col_width ). LOOP AT lt_columns INTO ls_column. lo_column ?= ls_column-r_column. IF iv_selection_mode = if_salv_c_selection_mode=>multiple AND ls_column-columnname = c_fieldname_selected. lo_column->set_cell_type( if_salv_c_cell_type=>checkbox_hotspot ). lo_column->set_output_length( 20 ). lo_column->set_short_text( |{ iv_select_column_text }| ). lo_column->set_medium_text( |{ iv_select_column_text }| ). lo_column->set_long_text( |{ iv_select_column_text }| ). CONTINUE. ENDIF. READ TABLE it_columns_to_display ASSIGNING <ls_column_to_display> WITH KEY name = ls_column-columnname. CASE sy-subrc. WHEN 0. IF <ls_column_to_display>-text CN ' _0'. lo_column->set_short_text( |{ <ls_column_to_display>-text }| ). lo_column->set_medium_text( |{ <ls_column_to_display>-text }| ). lo_column->set_long_text( |{ <ls_column_to_display>-text }| ). ENDIF. IF <ls_column_to_display>-length > 0. lo_column->set_output_length( <ls_column_to_display>-length ). ENDIF. WHEN OTHERS. " Hide column lo_column->set_technical( abap_true ). ENDCASE. ENDLOOP. mo_select_list_popup->display( ). CATCH cx_salv_msg. zcx_abapgit_exception=>raise( 'Error from POPUP_TO_SELECT_FROM_LIST' ). ENDTRY. IF mv_cancel = abap_true. mv_cancel = abap_false. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ENDIF. get_selected_rows( IMPORTING et_list = et_list ). CLEAR: mo_select_list_popup, mr_table, mo_table_descr. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_select_transports. * todo, method to be renamed, it only returns one transport DATA: lv_trkorr TYPE e070-trkorr, ls_trkorr LIKE LINE OF rt_trkorr. CALL FUNCTION 'TR_F4_REQUESTS' IMPORTING ev_selected_request = lv_trkorr. IF NOT lv_trkorr IS INITIAL. ls_trkorr-trkorr = lv_trkorr. APPEND ls_trkorr TO rt_trkorr. ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~popup_transport_request. DATA: lt_e071 TYPE STANDARD TABLE OF e071, lt_e071k TYPE STANDARD TABLE OF e071k. CALL FUNCTION 'TRINT_ORDER_CHOICE' EXPORTING wi_order_type = is_transport_type-request wi_task_type = is_transport_type-task IMPORTING we_order = rv_transport TABLES wt_e071 = lt_e071 wt_e071k = lt_e071k EXCEPTIONS no_correction_selected = 1 display_mode = 2 object_append_error = 3 recursive_call = 4 wrong_order_type = 5 OTHERS = 6. IF sy-subrc = 1. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ELSEIF sy-subrc > 1. zcx_abapgit_exception=>raise( |Error from TRINT_ORDER_CHOICE { sy-subrc }| ). ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~repo_popup. DATA: lv_returncode TYPE c, lv_icon_ok TYPE icon-name, lv_icon_br TYPE icon-name, lt_fields TYPE TABLE OF sval, lv_uattr TYPE spo_fattr, lv_pattr TYPE spo_fattr, lv_button2 TYPE svalbutton-buttontext, lv_icon2 TYPE icon-name, lv_package TYPE tdevc-devclass, lv_url TYPE abaptxt255-line, lv_branch TYPE textl-line, lv_display_name TYPE trm255-text, lv_folder_logic TYPE string, lv_ign_subpkg TYPE abap_bool, lv_finished TYPE abap_bool, lv_master_lang_only TYPE abap_bool, lx_error TYPE REF TO zcx_abapgit_exception. IF iv_freeze_url = abap_true. lv_uattr = '05'. ENDIF. IF iv_freeze_package = abap_true. lv_pattr = '05'. ENDIF. IF iv_package IS INITIAL. " Empty package -> can be created lv_button2 = 'Create package'. lv_icon2 = icon_folder. ENDIF. lv_display_name = iv_display_name. lv_package = iv_package. lv_url = iv_url. lv_branch = iv_branch. WHILE lv_finished = abap_false. CLEAR: lt_fields. add_field( EXPORTING iv_tabname = 'ABAPTXT255' iv_fieldname = 'LINE' iv_fieldtext = 'Git clone URL' iv_value = lv_url iv_field_attr = lv_uattr CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TDEVC' iv_fieldname = 'DEVCLASS' iv_fieldtext = 'Package' iv_value = lv_package iv_field_attr = lv_pattr CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TEXTL' iv_fieldname = 'LINE' iv_fieldtext = 'Branch' iv_value = lv_branch iv_field_attr = '05' CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TRM255' iv_fieldname = 'TEXT' iv_fieldtext = 'Display name (opt.)' iv_value = lv_display_name CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TADIR' iv_fieldname = 'AUTHOR' iv_fieldtext = 'Folder logic' iv_obligatory = abap_true iv_value = zif_abapgit_dot_abapgit=>c_folder_logic-prefix CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TDEVC' iv_fieldname = 'IS_ENHANCEABLE' iv_fieldtext = 'Ignore subpackages' iv_value = abap_false CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'DOKIL' iv_fieldname = 'MASTERLANG' iv_fieldtext = 'Main language only' iv_value = abap_true CHANGING ct_fields = lt_fields ). lv_icon_ok = icon_okay. lv_icon_br = icon_workflow_fork. CALL FUNCTION 'POPUP_GET_VALUES_USER_BUTTONS' EXPORTING popup_title = iv_title programname = sy-cprog formname = 'BRANCH_POPUP' ok_pushbuttontext = 'OK' icon_ok_push = lv_icon_ok first_pushbutton = 'Select branch' icon_button_1 = lv_icon_br second_pushbutton = lv_button2 icon_button_2 = lv_icon2 IMPORTING returncode = lv_returncode TABLES fields = lt_fields EXCEPTIONS error_in_fields = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from POPUP_GET_VALUES' ). ENDIF. IF lv_returncode = c_answer_cancel. rs_popup-cancel = abap_true. RETURN. ENDIF. extract_field_values( EXPORTING it_fields = lt_fields IMPORTING ev_url = lv_url ev_package = lv_package ev_branch = lv_branch ev_display_name = lv_display_name ev_folder_logic = lv_folder_logic ev_ign_subpkg = lv_ign_subpkg ev_master_lang_only = lv_master_lang_only ). lv_finished = abap_true. TRY. IF iv_freeze_url = abap_false. zcl_abapgit_url=>validate( |{ lv_url }| ). ENDIF. IF iv_freeze_package = abap_false. zcl_abapgit_repo_srv=>get_instance( )->validate_package( iv_package = lv_package iv_ign_subpkg = lv_ign_subpkg iv_chk_exists = abap_false ). ENDIF. validate_folder_logic( lv_folder_logic ). CATCH zcx_abapgit_exception INTO lx_error. MESSAGE lx_error TYPE 'S' DISPLAY LIKE 'E'. " in case of validation errors we display the popup again CLEAR lv_finished. ENDTRY. ENDWHILE. rs_popup-url = lv_url. rs_popup-package = lv_package. rs_popup-branch_name = lv_branch. rs_popup-display_name = lv_display_name. rs_popup-folder_logic = lv_folder_logic. rs_popup-ign_subpkg = lv_ign_subpkg. rs_popup-master_lang_only = lv_master_lang_only. ENDMETHOD. METHOD _popup_3_get_values. DATA lv_answer TYPE c LENGTH 1. FIELD-SYMBOLS: <ls_field> TYPE sval. CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING no_value_check = iv_no_value_check popup_title = iv_popup_title IMPORTING returncode = lv_answer TABLES fields = ct_fields EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from POPUP_GET_VALUES' ). ENDIF. IF lv_answer = c_answer_cancel. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ENDIF. IF ev_value_1 IS SUPPLIED. READ TABLE ct_fields INDEX 1 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_value_1 = <ls_field>-value. ENDIF. IF ev_value_2 IS SUPPLIED. READ TABLE ct_fields INDEX 2 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_value_2 = <ls_field>-value. ENDIF. IF ev_value_3 IS SUPPLIED. READ TABLE ct_fields INDEX 3 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_value_3 = <ls_field>-value. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 12924, 4739, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 198, 220, 10188, 9864, 1847, 48167, 1677, 5258, 1976, 565, 62, 397, 499, 18300, 62, 9019, 62, 69, 9548, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 764, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 12286, 62, 28665, 41876, 300, 28435, 62, 69, 3672, 26173, 8924, 4600, 7206, 38865, 62, 25154, 5883, 45, 63, 22492, 15285, 62, 32541, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 3245, 3672, 62, 34213, 41876, 300, 28435, 62, 69, 3672, 26173, 8924, 4600, 46506, 1961, 63, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 41484, 62, 66, 21130, 220, 220, 220, 220, 220, 41876, 269, 406, 49494, 352, 26173, 8924, 705, 32, 6, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 42865, 6941, 62, 19738, 62, 4868, 62, 12924, 929, 41876, 4526, 37, 5390, 537, 62, 21680, 85, 62, 11487, 764, 198, 220, 220, 220, 42865, 285, 81, 62, 11487, 41876, 4526, 37, 5390, 1366, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 66, 21130, 41876, 450, 499, 62, 30388, 26173, 8924, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 42865, 6941, 62, 11487, 62, 20147, 81, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 83, 4510, 3798, 81, 764, 628, 220, 220, 220, 337, 36252, 50, 751, 62, 3245, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8658, 3672, 220, 220, 220, 41876, 264, 2100, 12, 8658, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3245, 3672, 220, 41876, 264, 2100, 12, 3245, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3245, 5239, 220, 41876, 264, 2100, 12, 3245, 5239, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8367, 220, 220, 220, 220, 220, 41876, 537, 522, 5550, 38865, 10148, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3245, 62, 35226, 41876, 264, 2100, 12, 3245, 62, 35226, 5550, 38865, 10148, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 672, 4604, 2870, 41876, 15106, 62, 45292, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 25747, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 14804, 774, 62, 82, 2100, 62, 926, 764, 198, 220, 220, 220, 337, 36252, 50, 2251, 62, 3605, 62, 11487, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 4868, 41876, 49053, 9795, 43679, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 34213, 62, 8516, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 316, 62, 4868, 41876, 24413, 6369, 43679, 764, 198, 220, 220, 220, 337, 36252, 50, 319, 62, 19738, 62, 4868, 62, 8726, 62, 12976, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 49261, 2792, 62, 12976, 3963, 537, 62, 21680, 85, 62, 31534, 62, 11487, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 808, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 28665, 764, 198, 220, 220, 220, 337, 36252, 50, 319, 62, 19738, 62, 4868, 62, 8818, 62, 12976, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 49261, 2087, 62, 8818, 3963, 537, 62, 21680, 85, 62, 31534, 62, 11487, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 68, 62, 21680, 85, 62, 8818, 764, 198, 220, 220, 220, 337, 36252, 50, 319, 62, 23352, 62, 12976, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 49261, 4274, 62, 12976, 3963, 537, 62, 21680, 85, 62, 31534, 62, 11487, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 808, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 28665, 764, 198, 220, 220, 220, 337, 36252, 50, 7925, 62, 3245, 62, 27160, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 25747, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 14804, 774, 62, 82, 2100, 62, 926, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 819, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 2373, 742, 13381, 12, 1370, 198, 220, 220, 220, 220, 220, 220, 220, 819, 62, 26495, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 256, 7959, 66, 12, 7959, 4871, 198, 220, 220, 220, 220, 220, 220, 220, 819, 62, 1671, 3702, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2420, 75, 12, 1370, 198, 220, 220, 220, 220, 220, 220, 220, 819, 62, 13812, 62, 3672, 220, 220, 220, 220, 41876, 491, 76, 13381, 12, 5239, 198, 220, 220, 220, 220, 220, 220, 220, 819, 62, 43551, 62, 6404, 291, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 819, 62, 570, 62, 7266, 35339, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 220, 220, 819, 62, 9866, 62, 17204, 62, 8807, 41876, 450, 499, 62, 30388, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 2528, 62, 25747, 41876, 49053, 9795, 43679, 3963, 264, 2100, 13315, 5550, 38865, 35374, 13, 198, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_gui_component DEFINITION PUBLIC ABSTRACT CREATE PUBLIC . PUBLIC SECTION. CONSTANTS: BEGIN OF c_html_parts, scripts TYPE string VALUE 'scripts', hidden_forms TYPE string VALUE 'hidden_forms', END OF c_html_parts. PROTECTED SECTION. METHODS register_deferred_script IMPORTING ii_part TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception. METHODS gui_services RETURNING VALUE(ri_gui_services) TYPE REF TO zif_abapgit_gui_services RAISING zcx_abapgit_exception. PRIVATE SECTION. DATA mi_gui_services TYPE REF TO zif_abapgit_gui_services. ENDCLASS. CLASS ZCL_ABAPGIT_GUI_COMPONENT IMPLEMENTATION. METHOD gui_services. IF mi_gui_services IS NOT BOUND. mi_gui_services = zcl_abapgit_ui_factory=>get_gui_services( ). ENDIF. ri_gui_services = mi_gui_services. ENDMETHOD. METHOD register_deferred_script. gui_services( )->get_html_parts( )->add_part( iv_collection = c_html_parts-scripts ii_part = ii_part ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 42895, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 9564, 18601, 10659, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 6494, 62, 42632, 11, 198, 220, 220, 220, 220, 220, 220, 220, 14750, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 46521, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 7104, 62, 23914, 41876, 4731, 26173, 8924, 705, 30342, 62, 23914, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 6494, 62, 42632, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 7881, 62, 4299, 17436, 62, 12048, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 3911, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 337, 36252, 50, 11774, 62, 30416, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 48317, 62, 30416, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 30416, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 21504, 62, 48317, 62, 30416, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 30416, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 40156, 62, 9858, 47, 1340, 3525, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 11774, 62, 30416, 13, 198, 220, 220, 220, 16876, 21504, 62, 48317, 62, 30416, 3180, 5626, 347, 15919, 13, 198, 220, 220, 220, 220, 220, 21504, 62, 48317, 62, 30416, 796, 1976, 565, 62, 397, 499, 18300, 62, 9019, 62, 69, 9548, 14804, 1136, 62, 48317, 62, 30416, 7, 6739, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 374, 72, 62, 48317, 62, 30416, 796, 21504, 62, 48317, 62, 30416, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 7881, 62, 4299, 17436, 62, 12048, 13, 198, 220, 220, 220, 11774, 62, 30416, 7, 1267, 3784, 1136, 62, 6494, 62, 42632, 7, 1267, 3784, 2860, 62, 3911, 7, 198, 220, 220, 220, 220, 220, 21628, 62, 43681, 796, 269, 62, 6494, 62, 42632, 12, 46521, 198, 220, 220, 220, 220, 220, 21065, 62, 3911, 220, 220, 220, 220, 220, 220, 796, 21065, 62, 3911, 6739, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*--------------------------------------------------------------------* * REPORT ZDEMO_EXCEL32 * Demo for export options from ALV GRID: * export data from ALV (CL_GUI_ALV_GRID) object or cl_salv_table object * to Excel. *--------------------------------------------------------------------* REPORT zdemo_excel32. *----------------------------------------------------------------------* * CLASS lcl_handle_events DEFINITION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS lcl_handle_events DEFINITION. PUBLIC SECTION. METHODS: on_user_command FOR EVENT added_function OF cl_salv_events IMPORTING e_salv_function. ENDCLASS. "lcl_handle_events DEFINITION *----------------------------------------------------------------------* * CLASS lcl_handle_events IMPLEMENTATION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS lcl_handle_events IMPLEMENTATION. METHOD on_user_command. PERFORM user_command." using e_salv_function text-i08. ENDMETHOD. "on_user_command ENDCLASS. "lcl_handle_events IMPLEMENTATION *--------------------------------------------------------------------* * DATA DECLARATION *--------------------------------------------------------------------* DATA: lo_excel TYPE REF TO zcl_excel, lo_worksheet TYPE REF TO zcl_excel_worksheet, lo_salv TYPE REF TO cl_salv_table, gr_events TYPE REF TO lcl_handle_events, lr_events TYPE REF TO cl_salv_events_table, gt_sbook TYPE TABLE OF sbook. DATA: l_path TYPE string, " local dir lv_workdir TYPE string, lv_file_separator TYPE c. CONSTANTS: lv_default_file_name TYPE string VALUE '32_Export_ALV.xlsx', lv_default_file_name2 TYPE string VALUE '32_Export_Convert.xlsx'. *--------------------------------------------------------------------* *START-OF-SELECTION *--------------------------------------------------------------------* START-OF-SELECTION. * get data * ------------------------------------------ SELECT * INTO TABLE gt_sbook[] FROM sbook "#EC CI_NOWHERE UP TO 100 ROWS. * Display ALV * ------------------------------------------ TRY. cl_salv_table=>factory( EXPORTING list_display = abap_false IMPORTING r_salv_table = lo_salv CHANGING t_table = gt_sbook[] ). CATCH cx_salv_msg . ENDTRY. TRY. lo_salv->set_screen_status( EXPORTING report = sy-repid pfstatus = 'ALV_STATUS' set_functions = lo_salv->c_functions_all ). CATCH cx_salv_msg . ENDTRY. lr_events = lo_salv->get_event( ). CREATE OBJECT gr_events. SET HANDLER gr_events->on_user_command FOR lr_events. lo_salv->display( ). *&---------------------------------------------------------------------* *& Form USER_COMMAND *&---------------------------------------------------------------------* * ALV user command *--------------------------------------------------------------------* FORM user_command . * get save file path cl_gui_frontend_services=>get_sapgui_workdir( CHANGING sapworkdir = l_path ). cl_gui_cfw=>flush( ). cl_gui_frontend_services=>directory_browse( EXPORTING initial_folder = l_path CHANGING selected_folder = l_path ). IF l_path IS INITIAL. cl_gui_frontend_services=>get_sapgui_workdir( CHANGING sapworkdir = lv_workdir ). l_path = lv_workdir. ENDIF. cl_gui_frontend_services=>get_file_separator( CHANGING file_separator = lv_file_separator ). * export file to save file path CASE sy-ucomm. WHEN 'EXCELBIND'. CONCATENATE l_path lv_file_separator lv_default_file_name INTO l_path. PERFORM export_to_excel_bind. WHEN 'EXCELCONV'. CONCATENATE l_path lv_file_separator lv_default_file_name2 INTO l_path. PERFORM export_to_excel_conv. ENDCASE. ENDFORM. " USER_COMMAND *--------------------------------------------------------------------* * FORM EXPORT_TO_EXCEL_CONV *--------------------------------------------------------------------* * This subroutine is principal demo session *--------------------------------------------------------------------* FORM export_to_excel_conv. DATA: lo_converter TYPE REF TO zcl_excel_converter. CREATE OBJECT lo_converter. *TRY. lo_converter->convert( EXPORTING io_alv = lo_salv it_table = gt_sbook i_row_int = 2 i_column_int = 2 * i_table = * i_style_table = * io_worksheet = * CHANGING * co_excel = ). * CATCH zcx_excel . *ENDTRY. lo_converter->write_file( i_path = l_path ). ENDFORM. "EXPORT_TO_EXCEL_CONV *--------------------------------------------------------------------* * FORM EXPORT_TO_EXCEL_BIND *--------------------------------------------------------------------* * This subroutine is principal demo session *--------------------------------------------------------------------* FORM export_to_excel_bind. * create zcl_excel_worksheet object CREATE OBJECT lo_excel. lo_worksheet = lo_excel->get_active_worksheet( ). lo_worksheet->set_title( ip_title = 'Sheet1' ). * write to excel using method Bin_object *try. lo_worksheet->bind_alv( io_alv = lo_salv it_table = gt_sbook i_top = 2 i_left = 1 ). * catch zcx_excel . *endtry. PERFORM write_file. ENDFORM. "EXPORT_TO_EXCEL_BIND *&---------------------------------------------------------------------* *& Form WRITE_FILE *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* * --> p1 text * <-- p2 text *----------------------------------------------------------------------* FORM write_file . DATA: lt_file TYPE solix_tab, l_bytecount TYPE i, l_file TYPE xstring. DATA: lo_excel_writer TYPE REF TO zif_excel_writer. DATA: ls_seoclass TYPE seoclass. CREATE OBJECT lo_excel_writer TYPE zcl_excel_writer_2007. l_file = lo_excel_writer->write_file( lo_excel ). SELECT SINGLE * INTO ls_seoclass FROM seoclass WHERE clsname = 'CL_BCS_CONVERT'. IF sy-subrc = 0. CALL METHOD (ls_seoclass-clsname)=>xstring_to_solix EXPORTING iv_xstring = l_file RECEIVING et_solix = lt_file. l_bytecount = XSTRLEN( l_file ). ELSE. " Convert to binary CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING buffer = l_file IMPORTING output_length = l_bytecount TABLES binary_tab = lt_file. ENDIF. cl_gui_frontend_services=>gui_download( EXPORTING bin_filesize = l_bytecount filename = l_path filetype = 'BIN' CHANGING data_tab = lt_file ). ENDFORM. " WRITE_FILE
[ 9, 10097, 650, 9, 198, 9, 39099, 220, 1168, 39429, 46, 62, 6369, 34, 3698, 2624, 198, 9, 34588, 329, 10784, 3689, 422, 8355, 53, 10863, 2389, 25, 198, 9, 10784, 1366, 422, 8355, 53, 357, 5097, 62, 40156, 62, 1847, 53, 62, 10761, 2389, 8, 2134, 393, 537, 62, 21680, 85, 62, 11487, 2134, 198, 9, 284, 24134, 13, 198, 9, 10097, 650, 9, 198, 2200, 15490, 220, 1976, 9536, 78, 62, 1069, 5276, 2624, 13, 198, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 565, 62, 28144, 62, 31534, 5550, 20032, 17941, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 31631, 300, 565, 62, 28144, 62, 31534, 5550, 20032, 17941, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 319, 62, 7220, 62, 21812, 7473, 49261, 2087, 62, 8818, 3963, 537, 62, 21680, 85, 62, 31534, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 304, 62, 21680, 85, 62, 8818, 13, 198, 10619, 31631, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 75, 565, 62, 28144, 62, 31534, 5550, 20032, 17941, 198, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 565, 62, 28144, 62, 31534, 30023, 2538, 10979, 6234, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 31631, 300, 565, 62, 28144, 62, 31534, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 319, 62, 7220, 62, 21812, 13, 198, 220, 220, 220, 19878, 21389, 2836, 62, 21812, 526, 1262, 304, 62, 21680, 85, 62, 8818, 2420, 12, 72, 2919, 13, 198, 220, 23578, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 261, 62, 7220, 62, 21812, 198, 10619, 31631, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 75, 565, 62, 28144, 62, 31534, 30023, 2538, 10979, 6234, 198, 198, 9, 10097, 650, 9, 198, 9, 42865, 27196, 43, 1503, 6234, 198, 9, 10097, 650, 9, 198, 198, 26947, 25, 2376, 62, 1069, 5276, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 5225, 25473, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 5225, 25473, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 21680, 85, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 21680, 85, 62, 11487, 11, 198, 220, 220, 220, 220, 220, 1036, 62, 31534, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 300, 565, 62, 28144, 62, 31534, 11, 198, 220, 220, 220, 220, 220, 300, 81, 62, 31534, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 21680, 85, 62, 31534, 62, 11487, 11, 198, 220, 220, 220, 220, 220, 308, 83, 62, 82, 2070, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 3963, 264, 2070, 13, 198, 198, 26947, 25, 300, 62, 6978, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 220, 366, 1957, 26672, 198, 220, 220, 220, 220, 220, 300, 85, 62, 1818, 15908, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 7753, 62, 25512, 1352, 41876, 269, 13, 198, 198, 10943, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 300, 85, 62, 12286, 62, 7753, 62, 3672, 41876, 4731, 26173, 8924, 705, 2624, 62, 43834, 62, 1847, 53, 13, 87, 7278, 87, 3256, 198, 220, 220, 220, 220, 220, 300, 85, 62, 12286, 62, 7753, 62, 3672, 17, 41876, 4731, 26173, 8924, 705, 2624, 62, 43834, 62, 3103, 1851, 13, 87, 7278, 87, 4458, 198, 9, 10097, 650, 9, 198, 9, 2257, 7227, 12, 19238, 12, 46506, 2849, 198, 9, 10097, 650, 9, 198, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 198, 198, 9, 651, 1366, 198, 9, 20368, 35937, 628, 220, 33493, 1635, 198, 220, 220, 220, 220, 220, 39319, 43679, 308, 83, 62, 82, 2070, 21737, 198, 220, 220, 220, 220, 220, 16034, 264, 2070, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 14514, 62, 45669, 39, 9338, 198, 220, 220, 220, 220, 220, 15958, 5390, 1802, 371, 22845, 13, 198, 198, 9, 16531, 8355, 53, 198, 9, 20368, 35937, 628, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 537, 62, 21680, 85, 62, 11487, 14804, 69, 9548, 7, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1351, 62, 13812, 796, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 62, 21680, 85, 62, 11487, 796, 2376, 62, 21680, 85, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 62, 11487, 220, 220, 220, 220, 220, 796, 308, 83, 62, 82, 2070, 21737, 6739, 198, 220, 220, 220, 327, 11417, 43213, 62, 21680, 85, 62, 19662, 764, 198, 220, 23578, 40405, 13, 628, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 2376, 62, 21680, 85, 3784, 2617, 62, 9612, 62, 13376, 7, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 989, 220, 220, 220, 220, 220, 220, 220, 796, 827, 12, 7856, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 69, 13376, 220, 220, 220, 220, 220, 796, 705 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_apack_reader DEFINITION PUBLIC FINAL CREATE PRIVATE . PUBLIC SECTION. TYPES ty_package_name TYPE devclass . CLASS-METHODS create_instance IMPORTING !iv_package_name TYPE ty_package_name RETURNING VALUE(ro_manifest_reader) TYPE REF TO zcl_abapgit_apack_reader . CLASS-METHODS deserialize IMPORTING !iv_package_name TYPE ty_package_name !iv_xstr TYPE xstring RETURNING VALUE(ro_manifest_reader) TYPE REF TO zcl_abapgit_apack_reader RAISING zcx_abapgit_exception. METHODS get_manifest_descriptor RETURNING VALUE(rs_manifest_descriptor) TYPE zif_abapgit_apack_definitions=>ty_descriptor RAISING zcx_abapgit_exception. METHODS set_manifest_descriptor IMPORTING !is_manifest_descriptor TYPE zif_abapgit_apack_definitions=>ty_descriptor RAISING zcx_abapgit_exception. METHODS copy_manifest_descriptor IMPORTING !io_manifest_provider TYPE REF TO object RAISING zcx_abapgit_exception. METHODS has_manifest RETURNING VALUE(rv_has_manifest) TYPE abap_bool RAISING zcx_abapgit_exception. METHODS constructor IMPORTING !iv_package_name TYPE ty_package_name . PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_s_manifest_declaration, clsname TYPE seometarel-clsname, devclass TYPE devclass, END OF ty_s_manifest_declaration . DATA mv_package_name TYPE ty_package_name . DATA ms_cached_descriptor TYPE zif_abapgit_apack_definitions=>ty_descriptor . DATA mv_is_cached TYPE abap_bool . CLASS-METHODS from_xml IMPORTING iv_xml TYPE string RETURNING VALUE(rs_data) TYPE zif_abapgit_apack_definitions=>ty_descriptor. METHODS format_version RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_apack_reader IMPLEMENTATION. METHOD constructor. mv_package_name = iv_package_name. ENDMETHOD. METHOD copy_manifest_descriptor. DATA: ls_my_manifest_wo_deps TYPE zif_abapgit_apack_definitions=>ty_descriptor_wo_dependencies, ls_my_dependency TYPE zif_abapgit_apack_definitions=>ty_dependency, ls_descriptor TYPE zif_abapgit_apack_definitions=>ty_descriptor, lv_descriptor_cust TYPE string, lv_descriptor_sap TYPE string. FIELD-SYMBOLS: <lg_descriptor> TYPE any, <lt_dependencies> TYPE ANY TABLE, <lg_dependency> TYPE any. lv_descriptor_cust = zif_abapgit_apack_definitions=>c_apack_interface_cust && '~DESCRIPTOR'. lv_descriptor_sap = zif_abapgit_apack_definitions=>c_apack_interface_sap && '~DESCRIPTOR'. ASSIGN io_manifest_provider->(lv_descriptor_cust) TO <lg_descriptor>. IF <lg_descriptor> IS NOT ASSIGNED. ASSIGN io_manifest_provider->(lv_descriptor_sap) TO <lg_descriptor>. ENDIF. IF <lg_descriptor> IS ASSIGNED. " A little more complex than a normal MOVE-CORRSPONDING " to avoid dumps in case of future updates to the dependencies table structure ASSIGN COMPONENT 'DEPENDENCIES' OF STRUCTURE <lg_descriptor> TO <lt_dependencies>. IF <lt_dependencies> IS ASSIGNED. LOOP AT <lt_dependencies> ASSIGNING <lg_dependency>. MOVE-CORRESPONDING <lg_dependency> TO ls_my_dependency. INSERT ls_my_dependency INTO TABLE ls_descriptor-dependencies. ENDLOOP. MOVE-CORRESPONDING <lg_descriptor> TO ls_my_manifest_wo_deps. MOVE-CORRESPONDING ls_my_manifest_wo_deps TO ls_descriptor. ENDIF. ENDIF. set_manifest_descriptor( ls_descriptor ). ENDMETHOD. METHOD create_instance. CREATE OBJECT ro_manifest_reader EXPORTING iv_package_name = iv_package_name. ENDMETHOD. METHOD deserialize. DATA: lv_xml TYPE string, ls_data TYPE zif_abapgit_apack_definitions=>ty_descriptor. lv_xml = zcl_abapgit_convert=>xstring_to_string_utf8( iv_xstr ). ls_data = from_xml( lv_xml ). ro_manifest_reader = create_instance( iv_package_name ). ro_manifest_reader = create_instance( iv_package_name ). ro_manifest_reader->set_manifest_descriptor( ls_data ). ENDMETHOD. METHOD format_version. FIELD-SYMBOLS: <ls_dependency> TYPE zif_abapgit_apack_definitions=>ty_dependency. TRANSLATE ms_cached_descriptor-version TO LOWER CASE. ms_cached_descriptor-sem_version = zcl_abapgit_version=>conv_str_to_version( ms_cached_descriptor-version ). LOOP AT ms_cached_descriptor-dependencies ASSIGNING <ls_dependency>. <ls_dependency>-sem_version = zcl_abapgit_version=>conv_str_to_version( <ls_dependency>-version ). ENDLOOP. ENDMETHOD. METHOD from_xml. DATA: lv_xml TYPE string. lv_xml = iv_xml. CALL TRANSFORMATION id OPTIONS value_handling = 'accept_data_loss' SOURCE XML lv_xml RESULT data = rs_data. ENDMETHOD. METHOD get_manifest_descriptor. DATA: lo_manifest_provider TYPE REF TO object, ls_manifest_implementation TYPE ty_s_manifest_declaration. IF mv_is_cached IS INITIAL AND mv_package_name IS NOT INITIAL. SELECT SINGLE seometarel~clsname tadir~devclass FROM seometarel "#EC CI_NOORDER INNER JOIN tadir ON seometarel~clsname = tadir~obj_name "#EC CI_BUFFJOIN INTO ls_manifest_implementation WHERE tadir~pgmid = 'R3TR' AND tadir~object = 'CLAS' AND seometarel~version = '1' AND seometarel~refclsname = zif_abapgit_apack_definitions=>c_apack_interface_cust AND tadir~devclass = mv_package_name. IF ls_manifest_implementation IS INITIAL. SELECT SINGLE seometarel~clsname tadir~devclass FROM seometarel "#EC CI_NOORDER INNER JOIN tadir ON seometarel~clsname = tadir~obj_name "#EC CI_BUFFJOIN INTO ls_manifest_implementation WHERE tadir~pgmid = 'R3TR' AND tadir~object = 'CLAS' AND seometarel~version = '1' AND seometarel~refclsname = zif_abapgit_apack_definitions=>c_apack_interface_sap AND tadir~devclass = mv_package_name. ENDIF. IF ls_manifest_implementation IS NOT INITIAL. TRY. CREATE OBJECT lo_manifest_provider TYPE (ls_manifest_implementation-clsname). CATCH cx_sy_create_object_error. CLEAR: rs_manifest_descriptor. ENDTRY. IF lo_manifest_provider IS BOUND. copy_manifest_descriptor( lo_manifest_provider ). ENDIF. ENDIF. mv_is_cached = abap_true. ENDIF. rs_manifest_descriptor = ms_cached_descriptor. ENDMETHOD. METHOD has_manifest. DATA: ls_returned_manifest TYPE zif_abapgit_apack_definitions=>ty_descriptor. ls_returned_manifest = get_manifest_descriptor( ). rv_has_manifest = abap_false. IF ls_returned_manifest IS NOT INITIAL. rv_has_manifest = abap_true. ENDIF. ENDMETHOD. METHOD set_manifest_descriptor. mv_is_cached = abap_true. ms_cached_descriptor = is_manifest_descriptor. format_version( ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 499, 441, 62, 46862, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 1259, 62, 26495, 62, 3672, 41876, 1614, 4871, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 2251, 62, 39098, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26495, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 26495, 62, 3672, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 805, 8409, 62, 46862, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 499, 441, 62, 46862, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 748, 48499, 1096, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26495, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 26495, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 87, 2536, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 805, 8409, 62, 46862, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 499, 441, 62, 46862, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 805, 8409, 62, 20147, 1968, 273, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 805, 8409, 62, 20147, 1968, 273, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 499, 441, 62, 4299, 50101, 14804, 774, 62, 20147, 1968, 273, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 805, 8409, 62, 20147, 1968, 273, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 805, 8409, 62, 20147, 1968, 273, 41876, 1976, 361, 62, 397, 499, 18300, 62, 499, 441, 62, 4299, 50101, 14804, 774, 62, 20147, 1968, 273, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 337, 36252, 50, 4866, 62, 805, 8409, 62, 20147, 1968, 273, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 805, 8409, 62, 15234, 1304, 41876, 4526, 37, 5390, 2134, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 337, 36252, 50, 468, 62, 805, 8409, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 10134, 62, 805, 8409, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26495, 62, 3672, 41876, 1259, 62, 26495, 62, 3672, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 82, 62, 805, 8409, 62, 32446, 10186, 11, 198, 220, 220, 220, 220, 220, 220, 220, 537, 82, 3672, 220, 41876, 384, 908, 20318, 12, 565, 82, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1614, 4871, 41876, 1614, 4871, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 82, 62, 805, 8409, 62, 32446, 10186, 764, 628, 220, 220, 220, 42865, 285, 85, 62, 26495, 62, 3672, 41876, 1259, 62, 26495, 62, 3672, 764, 198, 220, 220, 220, 42865, 13845, 62, 66, 2317, 62, 20147, 1968, 273, 41876, 1976, 361, 62, 397, 499, 18300, 62, 499, 441, 62, 4299, 50101, 14804, 774, 62, 20147, 1968, 273, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 271, 62, 66, 2317, 41876, 450, 499, 62, 30388, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 422, 62, 19875, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 19875, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 7890, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 499, 441, 62, 4299, 50101, 14804, 774, 62, 20147, 1968, 273, 13, 628, 220, 220, 220, 337, 36252, 50, 5794, 62, 9641, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 499, 441, 62, 46862, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 285, 85, 62, 26495, 62, 3672, 796, 21628, 62, 26495, 62, 3672, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 4866, 62, 805, 8409, 62, 20147, 1968, 273, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 1820, 62, 805, 8409, 62, 21638 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_popups DEFINITION PUBLIC FINAL CREATE PRIVATE GLOBAL FRIENDS zcl_abapgit_ui_factory . PUBLIC SECTION. INTERFACES zif_abapgit_popups . TYPES: BEGIN OF ty_popup_position, start_column LIKE sy-cucol, start_row LIKE sy-curow, end_column LIKE sy-cucol, end_row LIKE sy-curow, END OF ty_popup_position. CLASS-METHODS center IMPORTING !iv_width TYPE i !iv_height TYPE i RETURNING VALUE(rs_position) TYPE ty_popup_position. PROTECTED SECTION. PRIVATE SECTION. CONSTANTS c_default_column TYPE abap_componentdescr-name VALUE `DEFAULT_COLUMN` ##NO_TEXT. TYPES: ty_lt_fields TYPE STANDARD TABLE OF sval WITH DEFAULT KEY . CONSTANTS c_fieldname_selected TYPE abap_componentdescr-name VALUE `SELECTED` ##NO_TEXT. CONSTANTS c_answer_cancel TYPE c LENGTH 1 VALUE 'A' ##NO_TEXT. DATA mo_select_list_popup TYPE REF TO cl_salv_table . DATA mr_table TYPE REF TO data . DATA mv_cancel TYPE abap_bool VALUE abap_false. DATA mo_table_descr TYPE REF TO cl_abap_tabledescr . DATA ms_position TYPE ty_popup_position. METHODS add_field IMPORTING !iv_tabname TYPE sval-tabname !iv_fieldname TYPE sval-fieldname !iv_fieldtext TYPE sval-fieldtext !iv_value TYPE clike DEFAULT '' !iv_field_attr TYPE sval-field_attr DEFAULT '' !iv_obligatory TYPE spo_obl OPTIONAL CHANGING !ct_fields TYPE zif_abapgit_popups=>ty_sval_tt . METHODS create_new_table IMPORTING !it_list TYPE STANDARD TABLE . METHODS get_selected_rows EXPORTING !et_list TYPE INDEX TABLE . METHODS on_select_list_link_click FOR EVENT link_click OF cl_salv_events_table IMPORTING !row !column . METHODS on_select_list_function_click FOR EVENT added_function OF cl_salv_events_table IMPORTING !e_salv_function . METHODS on_double_click FOR EVENT double_click OF cl_salv_events_table IMPORTING !row !column . METHODS _popup_3_get_values IMPORTING !iv_popup_title TYPE string !iv_no_value_check TYPE abap_bool DEFAULT abap_false EXPORTING !ev_value_1 TYPE spo_value !ev_value_2 TYPE spo_value !ev_value_3 TYPE spo_value CHANGING !ct_fields TYPE ty_lt_fields RAISING zcx_abapgit_exception . ENDCLASS. CLASS zcl_abapgit_popups IMPLEMENTATION. METHOD add_field. FIELD-SYMBOLS: <ls_field> LIKE LINE OF ct_fields. APPEND INITIAL LINE TO ct_fields ASSIGNING <ls_field>. <ls_field>-tabname = iv_tabname. <ls_field>-fieldname = iv_fieldname. <ls_field>-fieldtext = iv_fieldtext. <ls_field>-value = iv_value. <ls_field>-field_attr = iv_field_attr. <ls_field>-field_obl = iv_obligatory. ENDMETHOD. METHOD center. CONSTANTS: lc_min_size TYPE i VALUE 10, lc_min_pos TYPE i VALUE 5. " Magic math to approximate starting position of popup IF sy-scols > lc_min_size AND iv_width > 0 AND sy-scols > iv_width. rs_position-start_column = nmax( val1 = ( sy-scols - iv_width ) / 2 val2 = lc_min_pos ). ELSE. rs_position-start_column = lc_min_pos. ENDIF. IF sy-srows > lc_min_size AND iv_height > 0 AND sy-srows > iv_height. rs_position-start_row = nmax( val1 = ( sy-srows - iv_height ) / 2 - 1 val2 = lc_min_pos ). ELSE. rs_position-start_row = lc_min_pos. ENDIF. rs_position-end_column = rs_position-start_column + iv_width. rs_position-end_row = rs_position-start_row + iv_height. ENDMETHOD. METHOD create_new_table. " create and populate a table on the fly derived from " it_data with a select column DATA: lr_struct TYPE REF TO data, lt_components TYPE cl_abap_structdescr=>component_table, lo_data_descr TYPE REF TO cl_abap_datadescr, lo_elem_descr TYPE REF TO cl_abap_elemdescr, lo_struct_descr TYPE REF TO cl_abap_structdescr, lo_struct_descr2 TYPE REF TO cl_abap_structdescr. FIELD-SYMBOLS: <lt_table> TYPE STANDARD TABLE, <ls_component> TYPE abap_componentdescr, <lg_line> TYPE data, <lg_data> TYPE any, <lg_value> TYPE any. mo_table_descr ?= cl_abap_tabledescr=>describe_by_data( it_list ). lo_data_descr = mo_table_descr->get_table_line_type( ). CASE lo_data_descr->kind. WHEN cl_abap_elemdescr=>kind_elem. lo_elem_descr ?= mo_table_descr->get_table_line_type( ). INSERT INITIAL LINE INTO lt_components ASSIGNING <ls_component> INDEX 1. <ls_component>-name = c_default_column. <ls_component>-type = lo_elem_descr. WHEN cl_abap_elemdescr=>kind_struct. lo_struct_descr ?= mo_table_descr->get_table_line_type( ). lt_components = lo_struct_descr->get_components( ). ENDCASE. IF lt_components IS INITIAL. RETURN. ENDIF. INSERT INITIAL LINE INTO lt_components ASSIGNING <ls_component> INDEX 1. <ls_component>-name = c_fieldname_selected. <ls_component>-type ?= cl_abap_datadescr=>describe_by_name( 'FLAG' ). lo_struct_descr2 = cl_abap_structdescr=>create( lt_components ). mo_table_descr = cl_abap_tabledescr=>create( lo_struct_descr2 ). CREATE DATA mr_table TYPE HANDLE mo_table_descr. ASSIGN mr_table->* TO <lt_table>. ASSERT sy-subrc = 0. CREATE DATA lr_struct TYPE HANDLE lo_struct_descr2. ASSIGN lr_struct->* TO <lg_line>. ASSERT sy-subrc = 0. LOOP AT it_list ASSIGNING <lg_data>. CLEAR <lg_line>. CASE lo_data_descr->kind. WHEN cl_abap_elemdescr=>kind_elem. ASSIGN COMPONENT c_default_column OF STRUCTURE <lg_data> TO <lg_value>. ASSERT <lg_value> IS ASSIGNED. <lg_line> = <lg_value>. WHEN OTHERS. MOVE-CORRESPONDING <lg_data> TO <lg_line>. ENDCASE. INSERT <lg_line> INTO TABLE <lt_table>. ENDLOOP. ENDMETHOD. METHOD get_selected_rows. DATA: lv_condition TYPE string, lr_exporting TYPE REF TO data. FIELD-SYMBOLS: <lg_exporting> TYPE any, <lt_table> TYPE STANDARD TABLE, <lg_line> TYPE any, <lg_value> TYPE any, <lv_selected> TYPE abap_bool, <lv_selected_row> TYPE LINE OF salv_t_row. DATA: lo_data_descr TYPE REF TO cl_abap_datadescr, lo_selections TYPE REF TO cl_salv_selections, lt_selected_rows TYPE salv_t_row. ASSIGN mr_table->* TO <lt_table>. ASSERT sy-subrc = 0. lo_selections = mo_select_list_popup->get_selections( ). IF lo_selections->get_selection_mode( ) = if_salv_c_selection_mode=>single. lt_selected_rows = lo_selections->get_selected_rows( ). LOOP AT lt_selected_rows ASSIGNING <lv_selected_row>. READ TABLE <lt_table> ASSIGNING <lg_line> INDEX <lv_selected_row>. CHECK <lg_line> IS ASSIGNED. ASSIGN COMPONENT c_fieldname_selected OF STRUCTURE <lg_line> TO <lv_selected>. CHECK <lv_selected> IS ASSIGNED. <lv_selected> = abap_true. ENDLOOP. ENDIF. lv_condition = |{ c_fieldname_selected } = ABAP_TRUE|. CREATE DATA lr_exporting LIKE LINE OF et_list. ASSIGN lr_exporting->* TO <lg_exporting>. mo_table_descr ?= cl_abap_tabledescr=>describe_by_data( et_list ). lo_data_descr = mo_table_descr->get_table_line_type( ). LOOP AT <lt_table> ASSIGNING <lg_line> WHERE (lv_condition). CLEAR <lg_exporting>. CASE lo_data_descr->kind. WHEN cl_abap_elemdescr=>kind_elem. ASSIGN COMPONENT c_default_column OF STRUCTURE <lg_line> TO <lg_value>. ASSERT <lg_value> IS ASSIGNED. <lg_exporting> = <lg_value>. WHEN OTHERS. MOVE-CORRESPONDING <lg_line> TO <lg_exporting>. ENDCASE. APPEND <lg_exporting> TO et_list. ENDLOOP. ENDMETHOD. METHOD on_double_click. DATA: lo_selections TYPE REF TO cl_salv_selections. lo_selections = mo_select_list_popup->get_selections( ). IF lo_selections->get_selection_mode( ) = if_salv_c_selection_mode=>single. mo_select_list_popup->close_screen( ). ENDIF. ENDMETHOD. METHOD on_select_list_function_click. FIELD-SYMBOLS: <lt_table> TYPE STANDARD TABLE, <lg_line> TYPE any, <lv_selected> TYPE abap_bool. ASSIGN mr_table->* TO <lt_table>. ASSERT sy-subrc = 0. CASE e_salv_function. WHEN 'O.K.'. mv_cancel = abap_false. mo_select_list_popup->close_screen( ). WHEN 'ABR'. "Canceled: clear list to overwrite nothing CLEAR <lt_table>. mv_cancel = abap_true. mo_select_list_popup->close_screen( ). WHEN 'SALL'. LOOP AT <lt_table> ASSIGNING <lg_line>. ASSIGN COMPONENT c_fieldname_selected OF STRUCTURE <lg_line> TO <lv_selected>. ASSERT sy-subrc = 0. <lv_selected> = abap_true. ENDLOOP. mo_select_list_popup->refresh( ). WHEN 'DSEL'. LOOP AT <lt_table> ASSIGNING <lg_line>. ASSIGN COMPONENT c_fieldname_selected OF STRUCTURE <lg_line> TO <lv_selected>. ASSERT sy-subrc = 0. <lv_selected> = abap_false. ENDLOOP. mo_select_list_popup->refresh( ). WHEN OTHERS. CLEAR <lt_table>. mo_select_list_popup->close_screen( ). ENDCASE. ENDMETHOD. METHOD on_select_list_link_click. FIELD-SYMBOLS: <lt_table> TYPE STANDARD TABLE, <lg_line> TYPE any, <lv_selected> TYPE abap_bool. ASSIGN mr_table->* TO <lt_table>. ASSERT sy-subrc = 0. READ TABLE <lt_table> ASSIGNING <lg_line> INDEX row. IF sy-subrc = 0. ASSIGN COMPONENT c_fieldname_selected OF STRUCTURE <lg_line> TO <lv_selected>. ASSERT sy-subrc = 0. IF <lv_selected> = abap_true. <lv_selected> = abap_false. ELSE. <lv_selected> = abap_true. ENDIF. ENDIF. mo_select_list_popup->refresh( ). ENDMETHOD. METHOD zif_abapgit_popups~branch_list_popup. DATA: lo_branches TYPE REF TO zcl_abapgit_git_branch_list, lt_branches TYPE zif_abapgit_definitions=>ty_git_branch_list_tt, lv_answer TYPE c LENGTH 1, lv_default TYPE i, lv_head_suffix TYPE string, lv_head_symref TYPE string, lv_text TYPE string, lt_selection TYPE TABLE OF spopli. FIELD-SYMBOLS: <ls_sel> LIKE LINE OF lt_selection, <ls_branch> LIKE LINE OF lt_branches. lo_branches = zcl_abapgit_git_transport=>branches( iv_url ). lt_branches = lo_branches->get_branches_only( ). lv_head_suffix = | ({ zif_abapgit_definitions=>c_head_name })|. lv_head_symref = lo_branches->get_head_symref( ). IF iv_hide_branch IS NOT INITIAL. DELETE lt_branches WHERE name = iv_hide_branch. ENDIF. IF iv_hide_head IS NOT INITIAL. DELETE lt_branches WHERE name = zif_abapgit_definitions=>c_head_name OR is_head = abap_true. ENDIF. IF lt_branches IS INITIAL. IF iv_hide_head IS NOT INITIAL. lv_text = 'main'. ENDIF. IF iv_hide_branch IS NOT INITIAL AND iv_hide_branch <> zif_abapgit_definitions=>c_git_branch-main. IF lv_text IS INITIAL. lv_text = iv_hide_branch && ' is'. ELSE. CONCATENATE lv_text 'and' iv_hide_branch 'are' INTO lv_text SEPARATED BY space. ENDIF. ELSE. lv_text = lv_text && ' is'. ENDIF. IF lv_text IS NOT INITIAL. zcx_abapgit_exception=>raise( 'No branches available to select (' && lv_text && ' hidden)' ). ELSE. zcx_abapgit_exception=>raise( 'No branches are available to select' ). ENDIF. ENDIF. LOOP AT lt_branches ASSIGNING <ls_branch>. CHECK <ls_branch>-name IS NOT INITIAL. " To ensure some below ifs IF <ls_branch>-is_head = abap_true. IF <ls_branch>-name = zif_abapgit_definitions=>c_head_name. " HEAD IF <ls_branch>-name <> lv_head_symref AND lv_head_symref IS NOT INITIAL. " HEAD but other HEAD symref exists - ignore CONTINUE. ELSE. INSERT INITIAL LINE INTO lt_selection INDEX 1 ASSIGNING <ls_sel>. <ls_sel>-varoption = <ls_branch>-name. ENDIF. ELSE. INSERT INITIAL LINE INTO lt_selection INDEX 1 ASSIGNING <ls_sel>. <ls_sel>-varoption = <ls_branch>-display_name && lv_head_suffix. ENDIF. IF lv_default > 0. " Shift down default if set lv_default = lv_default + 1. ENDIF. ELSE. APPEND INITIAL LINE TO lt_selection ASSIGNING <ls_sel>. <ls_sel>-varoption = <ls_branch>-display_name. ENDIF. IF <ls_branch>-name = iv_default_branch. IF <ls_branch>-is_head = abap_true. lv_default = 1. ELSE. lv_default = sy-tabix. ENDIF. ENDIF. ENDLOOP. IF iv_show_new_option = abap_true. APPEND INITIAL LINE TO lt_selection ASSIGNING <ls_sel>. <ls_sel>-varoption = zif_abapgit_popups=>c_new_branch_label. ENDIF. ms_position = center( iv_width = 24 iv_height = lines( lt_selection ) ). CALL FUNCTION 'POPUP_TO_DECIDE_LIST' EXPORTING textline1 = 'Select branch' titel = 'Select branch' start_col = ms_position-start_column start_row = ms_position-start_row cursorline = lv_default IMPORTING answer = lv_answer TABLES t_spopli = lt_selection EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from POPUP_TO_DECIDE_LIST' ). ENDIF. IF lv_answer = c_answer_cancel. RETURN. ENDIF. READ TABLE lt_selection ASSIGNING <ls_sel> WITH KEY selflag = abap_true. ASSERT sy-subrc = 0. IF iv_show_new_option = abap_true AND <ls_sel>-varoption = zif_abapgit_popups=>c_new_branch_label. rs_branch-name = zif_abapgit_popups=>c_new_branch_label. ELSE. REPLACE FIRST OCCURRENCE OF lv_head_suffix IN <ls_sel>-varoption WITH ''. READ TABLE lt_branches WITH KEY display_name = <ls_sel>-varoption ASSIGNING <ls_branch>. IF sy-subrc <> 0. * branch name longer than 65 characters LOOP AT lt_branches ASSIGNING <ls_branch> WHERE display_name CS <ls_sel>-varoption. EXIT. " current loop ENDLOOP. ENDIF. ASSERT <ls_branch> IS ASSIGNED. rs_branch = lo_branches->find_by_name( <ls_branch>-name ). lv_text = |Branch switched from { zcl_abapgit_git_branch_list=>get_display_name( iv_default_branch ) } to { zcl_abapgit_git_branch_list=>get_display_name( rs_branch-name ) } |. MESSAGE lv_text TYPE 'S'. ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~branch_popup_callback. DATA: lv_url TYPE string, ls_package_data TYPE scompkdtln, ls_branch TYPE zif_abapgit_definitions=>ty_git_branch, lv_create TYPE abap_bool, lv_text TYPE string. FIELD-SYMBOLS: <ls_furl> LIKE LINE OF ct_fields, <ls_fbranch> LIKE LINE OF ct_fields, <ls_fpackage> LIKE LINE OF ct_fields. CLEAR cs_error. IF iv_code = 'COD1'. cv_show_popup = abap_true. READ TABLE ct_fields ASSIGNING <ls_furl> WITH KEY tabname = 'ABAPTXT255'. IF sy-subrc <> 0 OR <ls_furl>-value IS INITIAL. MESSAGE 'Fill URL' TYPE 'S' DISPLAY LIKE 'E'. RETURN. ENDIF. lv_url = <ls_furl>-value. ls_branch = zif_abapgit_popups~branch_list_popup( lv_url ). IF ls_branch IS INITIAL. RETURN. ENDIF. READ TABLE ct_fields ASSIGNING <ls_fbranch> WITH KEY tabname = 'TEXTL'. ASSERT sy-subrc = 0. <ls_fbranch>-value = ls_branch-name. ELSEIF iv_code = 'COD2'. cv_show_popup = abap_true. READ TABLE ct_fields ASSIGNING <ls_fpackage> WITH KEY fieldname = 'DEVCLASS'. ASSERT sy-subrc = 0. ls_package_data-devclass = <ls_fpackage>-value. IF zcl_abapgit_factory=>get_sap_package( ls_package_data-devclass )->exists( ) = abap_true. lv_text = |Package { ls_package_data-devclass } already exists|. MESSAGE lv_text TYPE 'I' DISPLAY LIKE 'E'. RETURN. ENDIF. zif_abapgit_popups~popup_to_create_package( IMPORTING es_package_data = ls_package_data ev_create = lv_create ). IF lv_create = abap_false. RETURN. ENDIF. zcl_abapgit_factory=>get_sap_package( ls_package_data-devclass )->create( ls_package_data ). COMMIT WORK. <ls_fpackage>-value = ls_package_data-devclass. ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~choose_pr_popup. DATA lv_answer TYPE c LENGTH 1. DATA lt_selection TYPE TABLE OF spopli. FIELD-SYMBOLS <ls_sel> LIKE LINE OF lt_selection. FIELD-SYMBOLS <ls_pull> LIKE LINE OF it_pulls. IF lines( it_pulls ) = 0. zcx_abapgit_exception=>raise( 'No pull requests to select from' ). ENDIF. LOOP AT it_pulls ASSIGNING <ls_pull>. APPEND INITIAL LINE TO lt_selection ASSIGNING <ls_sel>. <ls_sel>-varoption = |{ <ls_pull>-number } - { <ls_pull>-title } @{ <ls_pull>-user }|. ENDLOOP. ms_position = center( iv_width = 74 iv_height = lines( lt_selection ) ). CALL FUNCTION 'POPUP_TO_DECIDE_LIST' EXPORTING textline1 = 'Select pull request' titel = 'Select pull request' start_col = ms_position-start_column start_row = ms_position-start_row IMPORTING answer = lv_answer TABLES t_spopli = lt_selection EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from POPUP_TO_DECIDE_LIST' ). ENDIF. IF lv_answer = c_answer_cancel. RETURN. ENDIF. READ TABLE lt_selection ASSIGNING <ls_sel> WITH KEY selflag = abap_true. ASSERT sy-subrc = 0. READ TABLE it_pulls INTO rs_pull INDEX sy-tabix. ASSERT sy-subrc = 0. ENDMETHOD. METHOD zif_abapgit_popups~create_branch_popup. DATA: lt_fields TYPE TABLE OF sval. DATA: lv_name TYPE spo_value. CLEAR: ev_name, ev_cancel. add_field( EXPORTING iv_tabname = 'TEXTL' iv_fieldname = 'LINE' iv_fieldtext = 'Name' iv_value = 'new-branch-name' CHANGING ct_fields = lt_fields ). TRY. _popup_3_get_values( EXPORTING iv_popup_title = |Create branch from { zcl_abapgit_git_branch_list=>get_display_name( iv_source_branch_name ) }| IMPORTING ev_value_1 = lv_name CHANGING ct_fields = lt_fields ). ev_name = zcl_abapgit_git_branch_list=>complete_heads_branch_name( zcl_abapgit_git_branch_list=>normalize_branch_name( lv_name ) ). CATCH zcx_abapgit_cancel. ev_cancel = abap_true. ENDTRY. ENDMETHOD. METHOD zif_abapgit_popups~popup_folder_logic. DATA: lt_fields TYPE TABLE OF sval. DATA: lv_folder_logic TYPE spo_value. CLEAR: rv_folder_logic. add_field( EXPORTING iv_tabname = 'TDEVC' iv_fieldname = 'INTSYS' iv_fieldtext = 'Folder logic' iv_value = 'PREFIX' CHANGING ct_fields = lt_fields ). TRY. _popup_3_get_values( EXPORTING iv_popup_title = 'Export package' iv_no_value_check = abap_true IMPORTING ev_value_1 = lv_folder_logic CHANGING ct_fields = lt_fields ). rv_folder_logic = to_upper( lv_folder_logic ). CATCH zcx_abapgit_cancel. ENDTRY. ENDMETHOD. METHOD zif_abapgit_popups~popup_search_help. DATA lt_ret TYPE TABLE OF ddshretval. DATA ls_ret LIKE LINE OF lt_ret. DATA lv_tabname TYPE dfies-tabname. DATA lv_fieldname TYPE dfies-fieldname. SPLIT iv_tab_field AT '-' INTO lv_tabname lv_fieldname. lv_tabname = to_upper( lv_tabname ). lv_fieldname = to_upper( lv_fieldname ). CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST' EXPORTING tabname = lv_tabname fieldname = lv_fieldname TABLES return_tab = lt_ret EXCEPTIONS OTHERS = 5. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |F4IF_FIELD_VALUE_REQUEST error [{ iv_tab_field }]| ). ENDIF. IF lines( lt_ret ) > 0. READ TABLE lt_ret WITH KEY fieldname = lv_fieldname INTO ls_ret. IF sy-subrc = 0. rv_value = ls_ret-fieldval. ELSE. READ TABLE lt_ret INDEX 1 INTO ls_ret. ASSERT sy-subrc = 0. rv_value = ls_ret-fieldval. ENDIF. ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~popup_select_tr_requests. DATA ls_r_trkorr TYPE LINE OF zif_abapgit_definitions=>ty_trrngtrkor_tt. DATA lr_request TYPE REF TO trwbo_request_header. DATA lt_request TYPE trwbo_request_headers. ms_position = center( iv_width = 120 iv_height = 10 ). CALL FUNCTION 'TRINT_SELECT_REQUESTS' EXPORTING iv_username_pattern = iv_username_pattern is_selection = is_selection iv_complete_projects = abap_false is_popup = ms_position iv_via_selscreen = 'X' iv_title = iv_title IMPORTING et_requests = lt_request EXCEPTIONS action_aborted_by_user = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Selection canceled' ). ENDIF. IF lt_request IS INITIAL. zcx_abapgit_exception=>raise( 'No Request Found' ). ENDIF. LOOP AT lt_request REFERENCE INTO lr_request. ls_r_trkorr-sign = 'I'. ls_r_trkorr-option = 'EQ'. ls_r_trkorr-low = lr_request->trkorr. INSERT ls_r_trkorr INTO TABLE rt_r_trkorr. ENDLOOP. ENDMETHOD. METHOD zif_abapgit_popups~popup_select_wb_tc_tr_and_tsk. DATA ls_selection TYPE trwbo_selection. DATA lv_title TYPE trwbo_title. ls_selection-trkorrpattern = space. ls_selection-connect_req_task_conditions = 'X'. ls_selection-reqfunctions = 'KTRXS'. ls_selection-reqstatus = 'RNODL'. ls_selection-taskstatus = 'RNODL'. CONDENSE ls_selection-reqfunctions NO-GAPS. ls_selection-taskfunctions = 'QRSX'. CONCATENATE sy-sysid '*' INTO ls_selection-trkorrpattern. lv_title = 'Select Transports / Tasks'. rt_r_trkorr = zif_abapgit_popups~popup_select_tr_requests( is_selection = ls_selection iv_title = lv_title iv_username_pattern = '*' ). ENDMETHOD. METHOD zif_abapgit_popups~popup_to_confirm. ms_position = center( iv_width = 65 iv_height = 5 ). CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = iv_titlebar text_question = iv_text_question text_button_1 = iv_text_button_1 icon_button_1 = iv_icon_button_1 text_button_2 = iv_text_button_2 icon_button_2 = iv_icon_button_2 default_button = iv_default_button display_cancel_button = iv_display_cancel_button start_column = ms_position-start_column start_row = ms_position-start_row IMPORTING answer = rv_answer EXCEPTIONS text_not_found = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from POPUP_TO_CONFIRM' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_create_package. CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'PB_POPUP_PACKAGE_CREATE' EXCEPTIONS function_not_exist = 1 OTHERS = 2. IF sy-subrc = 1. * looks like the function module used does not exist on all * versions since 702, so show an error zcx_abapgit_exception=>raise( 'Your system does not support automatic creation of packages.' && 'Please, create the package manually.' ). ENDIF. CALL FUNCTION 'PB_POPUP_PACKAGE_CREATE' CHANGING p_object_data = es_package_data EXCEPTIONS action_cancelled = 1. ev_create = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_popups~popup_to_create_transp_branch. DATA: lt_fields TYPE TABLE OF sval, lv_transports_as_text TYPE string, lv_desc_as_text TYPE string, ls_transport_header LIKE LINE OF it_transport_headers. DATA: lv_branch_name TYPE spo_value. DATA: lv_commit_text TYPE spo_value. CLEAR: rs_transport_branch-branch_name, rs_transport_branch-commit_text. " If we only have one transport selected set branch name to Transport " name and commit description to transport description. IF lines( it_transport_headers ) = 1. READ TABLE it_transport_headers INDEX 1 INTO ls_transport_header. lv_transports_as_text = ls_transport_header-trkorr. SELECT SINGLE as4text FROM e07t INTO lv_desc_as_text WHERE trkorr = ls_transport_header-trkorr AND langu = sy-langu. ELSE. " Else set branch name and commit message to 'Transport(s)_TRXXXXXX_TRXXXXX' lv_transports_as_text = 'Transport(s)'. LOOP AT it_transport_headers INTO ls_transport_header. CONCATENATE lv_transports_as_text '_' ls_transport_header-trkorr INTO lv_transports_as_text. ENDLOOP. lv_desc_as_text = lv_transports_as_text. ENDIF. add_field( EXPORTING iv_tabname = 'TEXTL' iv_fieldname = 'LINE' iv_fieldtext = 'Branch name' iv_value = lv_transports_as_text CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'ABAPTXT255' iv_fieldname = 'LINE' iv_fieldtext = 'Commit text' iv_value = lv_desc_as_text CHANGING ct_fields = lt_fields ). _popup_3_get_values( EXPORTING iv_popup_title = 'Transport to new Branch' IMPORTING ev_value_1 = lv_branch_name ev_value_2 = lv_commit_text CHANGING ct_fields = lt_fields ). rs_transport_branch-branch_name = lv_branch_name. rs_transport_branch-commit_text = lv_commit_text. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_select_from_list. DATA: lv_pfstatus TYPE sypfkey, lo_events TYPE REF TO cl_salv_events_table, lo_columns TYPE REF TO cl_salv_columns_table, lt_columns TYPE salv_t_column_ref, ls_column TYPE salv_s_column_ref, lo_column TYPE REF TO cl_salv_column_list, lo_table_header TYPE REF TO cl_salv_form_text. FIELD-SYMBOLS: <lt_table> TYPE STANDARD TABLE, <ls_column_to_display> TYPE zif_abapgit_definitions=>ty_alv_column. CLEAR: et_list. create_new_table( it_list ). ASSIGN mr_table->* TO <lt_table>. ASSERT sy-subrc = 0. ms_position = center( iv_width = iv_end_column - iv_start_column iv_height = iv_end_line - iv_start_line ). TRY. cl_salv_table=>factory( IMPORTING r_salv_table = mo_select_list_popup CHANGING t_table = <lt_table> ). CASE iv_selection_mode. WHEN if_salv_c_selection_mode=>single. lv_pfstatus = '110'. WHEN OTHERS. lv_pfstatus = '102'. ENDCASE. mo_select_list_popup->set_screen_status( pfstatus = lv_pfstatus report = 'SAPMSVIM' ). mo_select_list_popup->set_screen_popup( start_column = ms_position-start_column end_column = ms_position-end_column start_line = ms_position-start_row end_line = ms_position-end_row ). lo_events = mo_select_list_popup->get_event( ). SET HANDLER on_select_list_link_click FOR lo_events. SET HANDLER on_select_list_function_click FOR lo_events. SET HANDLER on_double_click FOR lo_events. IF iv_title CN ' _0'. mo_select_list_popup->get_display_settings( )->set_list_header( iv_title ). ENDIF. IF iv_header_text CN ' _0'. CREATE OBJECT lo_table_header EXPORTING text = iv_header_text. mo_select_list_popup->set_top_of_list( lo_table_header ). ENDIF. mo_select_list_popup->get_display_settings( )->set_striped_pattern( iv_striped_pattern ). mo_select_list_popup->get_selections( )->set_selection_mode( iv_selection_mode ). lo_columns = mo_select_list_popup->get_columns( ). lt_columns = lo_columns->get( ). lo_columns->set_optimize( iv_optimize_col_width ). LOOP AT lt_columns INTO ls_column. lo_column ?= ls_column-r_column. IF iv_selection_mode = if_salv_c_selection_mode=>multiple AND ls_column-columnname = c_fieldname_selected. lo_column->set_cell_type( if_salv_c_cell_type=>checkbox_hotspot ). lo_column->set_output_length( 20 ). lo_column->set_short_text( |{ iv_select_column_text }| ). lo_column->set_medium_text( |{ iv_select_column_text }| ). lo_column->set_long_text( |{ iv_select_column_text }| ). CONTINUE. ENDIF. READ TABLE it_columns_to_display ASSIGNING <ls_column_to_display> WITH KEY name = ls_column-columnname. CASE sy-subrc. WHEN 0. IF <ls_column_to_display>-text CN ' _0'. lo_column->set_short_text( |{ <ls_column_to_display>-text }| ). lo_column->set_medium_text( |{ <ls_column_to_display>-text }| ). lo_column->set_long_text( |{ <ls_column_to_display>-text }| ). ENDIF. IF <ls_column_to_display>-length > 0. lo_column->set_output_length( <ls_column_to_display>-length ). ENDIF. IF <ls_column_to_display>-show_icon = abap_true. lo_column->set_icon( abap_true ). ENDIF. WHEN OTHERS. " Hide column lo_column->set_technical( abap_true ). ENDCASE. ENDLOOP. mo_select_list_popup->display( ). CATCH cx_salv_msg. zcx_abapgit_exception=>raise( 'Error from POPUP_TO_SELECT_FROM_LIST' ). ENDTRY. IF mv_cancel = abap_true. mv_cancel = abap_false. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ENDIF. get_selected_rows( IMPORTING et_list = et_list ). CLEAR: mo_select_list_popup, mr_table, mo_table_descr. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_select_transports. * todo, method to be renamed, it only returns one transport DATA: lv_trkorr TYPE e070-trkorr, ls_trkorr LIKE LINE OF rt_trkorr. CALL FUNCTION 'TR_F4_REQUESTS' IMPORTING ev_selected_request = lv_trkorr. IF NOT lv_trkorr IS INITIAL. ls_trkorr-trkorr = lv_trkorr. APPEND ls_trkorr TO rt_trkorr. ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~popup_transport_request. DATA: lt_e071 TYPE STANDARD TABLE OF e071, lt_e071k TYPE STANDARD TABLE OF e071k. CALL FUNCTION 'TRINT_ORDER_CHOICE' EXPORTING wi_order_type = is_transport_type-request wi_task_type = is_transport_type-task IMPORTING we_order = rv_transport TABLES wt_e071 = lt_e071 wt_e071k = lt_e071k EXCEPTIONS no_correction_selected = 1 display_mode = 2 object_append_error = 3 recursive_call = 4 wrong_order_type = 5 OTHERS = 6. IF sy-subrc = 1. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ELSEIF sy-subrc > 1. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD _popup_3_get_values. DATA lv_answer TYPE c LENGTH 1. FIELD-SYMBOLS: <ls_field> TYPE sval. ms_position = center( iv_width = 120 iv_height = lines( ct_fields ) ). CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING no_value_check = iv_no_value_check popup_title = iv_popup_title start_column = ms_position-start_column start_row = ms_position-start_row IMPORTING returncode = lv_answer TABLES fields = ct_fields EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from POPUP_GET_VALUES' ). ENDIF. IF lv_answer = c_answer_cancel. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ENDIF. IF ev_value_1 IS SUPPLIED. READ TABLE ct_fields INDEX 1 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_value_1 = <ls_field>-value. ENDIF. IF ev_value_2 IS SUPPLIED. READ TABLE ct_fields INDEX 2 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_value_2 = <ls_field>-value. ENDIF. IF ev_value_3 IS SUPPLIED. READ TABLE ct_fields INDEX 3 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_value_3 = <ls_field>-value. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 12924, 4739, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 198, 220, 10188, 9864, 1847, 48167, 1677, 5258, 1976, 565, 62, 397, 499, 18300, 62, 9019, 62, 69, 9548, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 764, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 12924, 929, 62, 9150, 11, 198, 220, 220, 220, 220, 220, 220, 220, 923, 62, 28665, 34178, 220, 827, 12, 66, 1229, 349, 11, 198, 220, 220, 220, 220, 220, 220, 220, 923, 62, 808, 220, 220, 220, 34178, 220, 827, 12, 27399, 808, 11, 198, 220, 220, 220, 220, 220, 220, 220, 886, 62, 28665, 220, 220, 34178, 220, 827, 12, 66, 1229, 349, 11, 198, 220, 220, 220, 220, 220, 220, 220, 886, 62, 808, 220, 220, 220, 220, 220, 34178, 220, 827, 12, 27399, 808, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 12924, 929, 62, 9150, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 3641, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 10394, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 17015, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 9150, 8, 41876, 1259, 62, 12924, 929, 62, 9150, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 12286, 62, 28665, 41876, 450, 499, 62, 42895, 20147, 81, 12, 3672, 26173, 8924, 4600, 7206, 38865, 62, 25154, 5883, 45, 63, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 2528, 62, 25747, 41876, 49053, 9795, 43679, 3963, 264, 2100, 13315, 5550, 38865, 35374, 764, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 3245, 3672, 62, 34213, 41876, 450, 499, 62, 42895, 20147, 81, 12, 3672, 26173, 8924, 4600, 46506, 1961, 63, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 41484, 62, 66, 21130, 220, 220, 220, 220, 220, 41876, 269, 406, 49494, 352, 26173, 8924, 705, 32, 6, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 42865, 6941, 62, 19738, 62, 4868, 62, 12924, 929, 41876, 4526, 37, 5390, 537, 62, 21680, 85, 62, 11487, 764, 198, 220, 220, 220, 42865, 285, 81, 62, 11487, 41876, 4526, 37, 5390, 1366, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 66, 21130, 41876, 450, 499, 62, 30388, 26173, 8924, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 42865, 6941, 62, 11487, 62, 20147, 81, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 83, 4510, 3798, 81, 764, 198, 220, 220, 220, 42865, 13845, 62, 9150, 41876, 1259, 62, 12924, 929, 62, 9150, 13, 628, 220, 220, 220, 337, 36252, 50, 751, 62, 3245, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8658, 3672, 220, 220, 220, 41876, 264, 2100, 12, 8658, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3245, 3672, 220, 41876, 264, 2100, 12, 3245, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3245, 5239, 220, 41876, 264, 2100, 12, 3245, 5239, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8367, 220, 220, 220, 220, 220, 41876, 537, 522, 5550, 38865, 10148, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3245, 62, 35226, 41876, 264, 2100, 12, 3245, 62, 35226, 5550, 38865, 10148, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 672, 4604, 2870, 41876, 15106, 62, 45292, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 25747, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 14804, 774, 62, 82, 2100, 62, 926, 764, 198, 220, 220, 220, 337, 36252, 50, 2251, 62, 3605, 62, 11487, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 4868, 41876, 49053, 9795, 43679, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 34213, 62, 8516, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 316, 62, 4868, 41876, 24413, 6369, 43679, 764, 198, 220, 220, 220, 337, 36252, 50, 319, 62, 19738, 62, 4868, 62, 8726, 62, 12976, 198, 220, 220, 220, 220, 220, 220, 220, 7473, 49261, 2792, 62, 12976, 3963, 537, 62, 21680, 85, 62, 31534, 62, 11487, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 808, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 28665, 764, 198, 220, 220, 220, 337, 36252, 50, 319, 62, 19738, 62, 4868, 62, 8818, 62, 12976, 198, 220, 220, 220, 220, 220, 220, 220, 7473, 49261, 2087, 62, 8818, 3963, 537, 62, 21680, 85, 62, 31534, 62, 11487, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 68, 62, 21680, 85, 62, 8818, 764, 198, 220, 220, 220, 337, 36252, 50, 319, 62, 23352, 62, 12976, 198, 220, 220, 220, 220, 220, 220, 220, 7473, 49261, 4274, 62, 12976, 3963, 537, 62, 21680, 85, 62, 31534, 62, 11487, 198, 220, 220, 220, 220, 220, 30023,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
"! <strong>Interface for Flight Legacy Coding</strong><br/> "! Every used structure or table type needed in the API Function Modules "! will be defined here. INTERFACE /dmo/if_flight_legacy01 PUBLIC. *********************** * Version information * *********************** CONSTANTS co_version_major TYPE int2 VALUE 2. CONSTANTS co_version_minor TYPE int2 VALUE 0. " Please do NOT delete old comments " Version x.x Date xx.xx.xxxx Description ... " 0.9 25.07.2018 More or less ready! " 0.91 02.08.2018 Derivations and checks for price / currency " Documentation " 0.92 03.08.2018 Commented out locking " 0.93 09.08.2018 Data Generator Bug Fix; Description searchable short string " 0.94 24.08.2018 Minor corrections " 0.95 07.09.2018 Derivation of Total Price, minor corrections " 0.96 17.09.2018 Performance DELETE " 0.961 18.09.2018 Removed += " 0.962 18.09.2018 Removed ABAPDoc from FuBa, Switched Function Group to Unicode " 1.00 27.09.2018 No real change, only release " 1.01 28.09.2018 Minor text adjustments " 1.02 22.10.2018 Data generator adjustment " Unit Test moved from function group into separate ABAP class " 2.00 05.03.2019 Added ReadOnly and Unmanaged Content " Added AMDP class with Currency Conversion " (Re-)Added ABAPDoc to FuBa ****************************** * Database table table types * ****************************** "! Table type of the table /DMO/TRAVEL01 TYPES tt_travel TYPE SORTED TABLE OF /dmo/travel01 WITH UNIQUE KEY travel_id. "! Table type of the table /DMO/BOOKING01 TYPES tt_booking TYPE SORTED TABLE OF /dmo/booking01 WITH UNIQUE KEY travel_id booking_id. "! Table type of the table /DMO/BOOK_SUP_01 TYPES tt_booking_supplement TYPE SORTED TABLE OF /dmo/book_sup_01 WITH UNIQUE KEY travel_id booking_id booking_supplement_id. "! Table type of the table /DMO/FLIGHT01 TYPES tt_flight TYPE STANDARD TABLE OF /dmo/flight01 WITH KEY client carrier_id connection_id flight_date. ****************** * Key structures * ****************** "! Key structure of Travel TYPES BEGIN OF ts_travel_key. TYPES travel_id TYPE /dmo/travel_id01. TYPES END OF ts_travel_key. "! Table type that contains only the keys of Travel TYPES tt_travel_key TYPE SORTED TABLE OF ts_travel_key WITH UNIQUE KEY travel_id. "! Key structure of Booking TYPES BEGIN OF ts_booking_key. INCLUDE TYPE ts_travel_key. TYPES booking_id TYPE /dmo/booking_id01. TYPES END OF ts_booking_key. "! Table type that contains only the keys of Booking TYPES tt_booking_key TYPE SORTED TABLE OF ts_booking_key WITH UNIQUE KEY travel_id booking_id. "! Key structure of Booking Supplements TYPES BEGIN OF ts_booking_supplement_key. INCLUDE TYPE ts_booking_key. TYPES booking_supplement_id TYPE /dmo/booking_supplement_id01. TYPES END OF ts_booking_supplement_key. "! Table type that contains only the keys of Booking Supplements TYPES tt_booking_supplement_key TYPE SORTED TABLE OF ts_booking_supplement_key WITH UNIQUE KEY travel_id booking_id booking_supplement_id. *********************************************************************************************************************************** * Flag structures for data components * * IMPORTANT: When you add or remove fields from /DMO/TRAVEL01, /DMO/BOOKING01, /DMO/BOOK_SUP_01 you need to change the following types * *********************************************************************************************************************************** TYPES: "! <strong>Flag structure for Travel data. </strong><br/> "! Each component identifies if the corresponding data has been changed. "! Where <em>abap_true</em> represents a change. BEGIN OF ts_travel_intx, agency_id TYPE abap_bool, customer_id TYPE abap_bool, begin_date TYPE abap_bool, end_date TYPE abap_bool, booking_fee TYPE abap_bool, total_price TYPE abap_bool, currency_code TYPE abap_bool, description TYPE abap_bool, status TYPE abap_bool, END OF ts_travel_intx. TYPES: "! <strong>Flag structure for Booking data. </strong><br/> "! Each component identifies if the corresponding data has been changed. "! Where <em>abap_true</em> represents a change. BEGIN OF ts_booking_intx, booking_date TYPE abap_bool, customer_id TYPE abap_bool, carrier_id TYPE abap_bool, connection_id TYPE abap_bool, flight_date TYPE abap_bool, flight_price TYPE abap_bool, currency_code TYPE abap_bool, END OF ts_booking_intx. TYPES: "! <strong>Flag structure for Booking Supplement data. </strong><br/> "! Each component identifies if the corresponding data has been changed. "! Where <em>abap_true</em> represents a change. BEGIN OF ts_booking_supplement_intx, supplement_id TYPE abap_bool, price TYPE abap_bool, currency_code TYPE abap_bool, END OF ts_booking_supplement_intx. ********************************************************************** * Internal ********************************************************************** " Internally we use the full X-structures: With complete key and action code TYPES BEGIN OF ts_travelx. INCLUDE TYPE ts_travel_key. TYPES action_code TYPE /dmo/action_code01. INCLUDE TYPE ts_travel_intx. TYPES END OF ts_travelx. TYPES: tt_travelx TYPE SORTED TABLE OF ts_travelx WITH UNIQUE KEY travel_id. TYPES BEGIN OF ts_bookingx. INCLUDE TYPE ts_booking_key. TYPES action_code TYPE /dmo/action_code01. INCLUDE TYPE ts_booking_intx. TYPES END OF ts_bookingx. TYPES: tt_bookingx TYPE SORTED TABLE OF ts_bookingx WITH UNIQUE KEY travel_id booking_id. TYPES BEGIN OF ts_booking_supplementx. INCLUDE TYPE ts_booking_supplement_key. TYPES action_code TYPE /dmo/action_code01. INCLUDE TYPE ts_booking_supplement_intx. TYPES END OF ts_booking_supplementx. TYPES: tt_booking_supplementx TYPE SORTED TABLE OF ts_booking_supplementx WITH UNIQUE KEY travel_id booking_id booking_supplement_id. ********* * ENUMs * ********* TYPES: "! Action codes for CUD Operations "! <ul> "! <li><em>create</em> = create a node</li> "! <li><em>update</em> = update a node</li> "! <li><em>delete</em> = delete a node</li> "! </ul> BEGIN OF ENUM action_code_enum STRUCTURE action_code BASE TYPE /dmo/action_code01, initial VALUE IS INITIAL, create VALUE 'C', update VALUE 'U', delete VALUE 'D', END OF ENUM action_code_enum STRUCTURE action_code. TYPES: "! Travel Stati "! <ul> "! <li><em>New</em> = New Travel</li> "! <li><em>Planned</em> = Planned Travel</li> "! <li><em>Booked</em> = Booked Travel</li> "! <li><em>Cancelled</em> = Cancelled Travel</li> "! </ul> BEGIN OF ENUM travel_status_enum STRUCTURE travel_status BASE TYPE /dmo/travel_status01, initial VALUE IS INITIAL, new VALUE 'N', planned VALUE 'P', booked VALUE 'B', cancelled VALUE 'X', END OF ENUM travel_status_enum STRUCTURE travel_status. ************************ * Importing structures * ************************ "! INcoming structure of the node Travel. It contains key and data fields.<br/> "! The caller of the BAPI like function modules shall not provide the administrative fields. TYPES BEGIN OF ts_travel_in. INCLUDE TYPE ts_travel_key. INCLUDE TYPE /dmo/travel01_data. TYPES END OF ts_travel_in. "! INcoming structure of the node Booking. It contains the booking key and data fields.<br/> "! The BAPI like function modules always refer to a single travel. "! Therefore the Travel ID is not required in the subnode tables. TYPES BEGIN OF ts_booking_in. TYPES booking_id TYPE /dmo/booking_id01. INCLUDE TYPE /dmo/booking01_data. TYPES END OF ts_booking_in. "! INcoming table type of the node Booking. It contains the booking key and data fields. TYPES tt_booking_in TYPE SORTED TABLE OF ts_booking_in WITH UNIQUE KEY booking_id. "! INcoming structure of the node Booking Supplement. It contains the booking key, booking supplement key and data fields.<br/> "! The BAPI like function modules always refer to a single travel. "! Therefore the Travel ID is not required in the subnode tables but the booking key is required as it refers to it corresponding super node. TYPES BEGIN OF ts_booking_supplement_in. TYPES booking_id TYPE /dmo/booking_id01. TYPES booking_supplement_id TYPE /dmo/booking_supplement_id01. INCLUDE TYPE /dmo/book_sup_01_data. TYPES END OF ts_booking_supplement_in. "! INcoming table type of the node Booking Supplement. It contains the booking key, booking supplement key and data fields. TYPES tt_booking_supplement_in TYPE SORTED TABLE OF ts_booking_supplement_in WITH UNIQUE KEY booking_id booking_supplement_id. "! INcoming flag structure of the node Travel. It contains key and the bit flag to the corresponding fields.<br/> "! The caller of the BAPI like function modules shall not provide the administrative fields. "! Furthermore the action Code is not required for the root (because it is already determined by the function module name). TYPES BEGIN OF ts_travel_inx. INCLUDE TYPE ts_travel_key. INCLUDE TYPE ts_travel_intx. TYPES END OF ts_travel_inx. "! INcoming flag structure of the node Booking. It contains key and the bit flag to the corresponding fields.<br/> "! The BAPI like function modules always refer to a single travel. "! Therefore the Travel ID is not required in the subnode tables. TYPES BEGIN OF ts_booking_inx. TYPES booking_id TYPE /dmo/booking_id01. TYPES action_code TYPE /dmo/action_code01. INCLUDE TYPE ts_booking_intx. TYPES END OF ts_booking_inx. "! INcoming flag table type of the node Booking. It contains key and the bit flag to the corresponding fields. TYPES tt_booking_inx TYPE SORTED TABLE OF ts_booking_inx WITH UNIQUE KEY booking_id. "! INcoming flag structure of the node Booking Supplement. It contains key and the bit flag to the corresponding fields.<br/> "! The BAPI like function modules always refer to a single travel. "! Therefore the Travel ID is not required in the subnode tables. TYPES BEGIN OF ts_booking_supplement_inx. TYPES booking_id TYPE /dmo/booking_id01. TYPES booking_supplement_id TYPE /dmo/booking_supplement_id01. TYPES action_code TYPE /dmo/action_code01. INCLUDE TYPE ts_booking_supplement_intx. TYPES END OF ts_booking_supplement_inx. "! INcoming flag table type of the node Booking Supplement. It contains key and the bit flag to the corresponding fields. TYPES tt_booking_supplement_inx TYPE SORTED TABLE OF ts_booking_supplement_inx WITH UNIQUE KEY booking_id booking_supplement_id. ***************** * Message table * ***************** "! Table of messages TYPES tt_message TYPE STANDARD TABLE OF symsg. "! Table of messages like T100. <br/> "! We have only error messages. "! Currently we do not communicate Warnings or Success Messages. "! Internally we use a table of exceptions. TYPES tt_if_t100_message TYPE STANDARD TABLE OF REF TO if_t100_message WITH EMPTY KEY. ENDINTERFACE.
[ 40484, 1279, 11576, 29, 39317, 329, 13365, 14843, 327, 7656, 3556, 11576, 6927, 1671, 15913, 198, 40484, 3887, 973, 4645, 393, 3084, 2099, 2622, 287, 262, 7824, 15553, 3401, 5028, 198, 40484, 481, 307, 5447, 994, 13, 198, 41358, 49836, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 486, 198, 220, 44731, 13, 198, 198, 8412, 2466, 8162, 198, 9, 10628, 1321, 1635, 198, 8412, 2466, 8162, 198, 220, 7102, 2257, 1565, 4694, 763, 62, 9641, 62, 22478, 41876, 493, 17, 26173, 8924, 362, 13, 198, 220, 7102, 2257, 1565, 4694, 763, 62, 9641, 62, 1084, 273, 41876, 493, 17, 26173, 8924, 657, 13, 628, 220, 366, 4222, 466, 5626, 12233, 1468, 3651, 198, 220, 366, 10628, 2124, 13, 87, 220, 7536, 31383, 13, 5324, 13, 12343, 220, 12489, 2644, 198, 220, 366, 220, 220, 220, 220, 220, 220, 220, 220, 657, 13, 24, 220, 220, 220, 220, 220, 220, 1679, 13, 2998, 13, 7908, 220, 3125, 393, 1342, 3492, 0, 198, 220, 366, 220, 220, 220, 220, 220, 220, 220, 220, 657, 13, 6420, 220, 220, 220, 220, 220, 7816, 13, 2919, 13, 7908, 220, 9626, 452, 602, 290, 8794, 329, 2756, 1220, 7395, 198, 220, 366, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43925, 198, 220, 366, 220, 220, 220, 220, 220, 220, 220, 220, 657, 13, 5892, 220, 220, 220, 220, 220, 7643, 13, 2919, 13, 7908, 220, 955, 12061, 503, 22656, 198, 220, 366, 220, 220, 220, 220, 220, 220, 220, 220, 657, 13, 6052, 220, 220, 220, 220, 220, 7769, 13, 2919, 13, 7908, 220, 6060, 35986, 15217, 13268, 26, 12489, 2989, 540, 1790, 4731, 198, 220, 366, 220, 220, 220, 220, 220, 220, 220, 220, 657, 13, 5824, 220, 220, 220, 220, 220, 1987, 13, 2919, 13, 7908, 220, 15367, 26251, 198, 220, 366, 220, 220, 220, 220, 220, 220, 220, 220, 657, 13, 3865, 220, 220, 220, 220, 220, 8753, 13, 2931, 13, 7908, 220, 9626, 26939, 286, 7472, 7886, 11, 4159, 26251, 198, 220, 366, 220, 220, 220, 220, 220, 220, 220, 220, 657, 13, 4846, 220, 220, 220, 220, 220, 1596, 13, 2931, 13, 7908, 220, 15193, 5550, 2538, 9328, 198, 220, 366, 220, 220, 220, 220, 220, 220, 220, 220, 657, 13, 4846, 16, 220, 220, 220, 220, 1248, 13, 2931, 13, 7908, 220, 28252, 15853, 198, 220, 366, 220, 220, 220, 220, 220, 220, 220, 220, 657, 13, 4846, 17, 220, 220, 220, 220, 1248, 13, 2931, 13, 7908, 220, 28252, 9564, 2969, 23579, 422, 13333, 34458, 11, 2451, 10981, 15553, 4912, 284, 34371, 198, 220, 366, 220, 220, 220, 220, 220, 220, 220, 220, 352, 13, 405, 220, 220, 220, 220, 220, 2681, 13, 2931, 13, 7908, 220, 1400, 1103, 1487, 11, 691, 2650, 198, 220, 366, 220, 220, 220, 220, 220, 220, 220, 220, 352, 13, 486, 220, 220, 220, 220, 220, 2579, 13, 2931, 13, 7908, 220, 15367, 2420, 16895, 198, 220, 366, 220, 220, 220, 220, 220, 220, 220, 220, 352, 13, 2999, 220, 220, 220, 220, 220, 2534, 13, 940, 13, 7908, 220, 6060, 17301, 15068, 198, 220, 366, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11801, 6208, 3888, 422, 2163, 1448, 656, 4553, 9564, 2969, 1398, 198, 220, 366, 220, 220, 220, 220, 220, 220, 220, 220, 362, 13, 405, 220, 220, 220, 220, 220, 8870, 13, 3070, 13, 23344, 220, 10687, 4149, 10049, 290, 791, 39935, 14041, 198, 220, 366, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10687, 3001, 6322, 1398, 351, 20113, 44101, 198, 220, 366, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 3041, 25106, 13003, 9564, 2969, 23579, 284, 13333, 34458, 198, 198, 8412, 46068, 1174, 198, 9, 24047, 3084, 3084, 3858, 1635, 198, 8412, 46068, 1174, 628, 220, 366, 0, 8655, 2099, 286, 262, 3084, 1220, 35, 11770, 14, 51, 3861, 18697, 486, 198, 220, 24412, 47, 1546, 256, 83, 62, 35927, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 311, 9863, 1961, 43679, 3963, 1220, 67, 5908, 14, 35927, 486, 220, 220, 220, 220, 13315, 4725, 33866, 8924, 35374, 3067, 62, 312, 13, 198, 220, 366, 0, 8655, 2099, 286, 262, 3084, 1220, 35, 11770, 14, 39453, 2751, 486, 198, 220, 24412, 47, 1546, 256, 83, 62, 2070, 278, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 311, 9863, 1961, 43679, 3963, 1220, 67, 5908, 14, 2070, 278, 486, 220, 220, 220, 13315, 4725, 33866, 8924, 35374, 3067, 62, 312, 220, 25452, 62, 312, 13, 198, 220, 366, 0, 8655, 2099, 286, 262, 3084, 1220, 35, 11770, 14, 39453, 62, 40331, 62, 486, 198, 220, 24412, 47, 1546, 256, 83, 62, 2070, 278, 62, 18608, 1732, 41876, 311, 9863, 1961, 43679, 3963, 1220, 67, 5908, 14, 2070, 62, 37330, 62, 486, 13315, 4725, 33866, 8924, 35374, 3067, 62, 312, 220, 25452, 62, 312, 220, 25452, 62, 18608, 1732, 62, 312, 13, 198, 220, 366, 0, 8655, 2099, 286, 262, 3084, 1220, 35, 11770, 14, 3697, 9947, 486, 198, 220, 24412, 47, 1546, 256, 83, 62, 22560, 41876, 49053, 9795, 43679, 3963, 1220, 67, 5908, 14, 22560, 486, 13315, 35374, 5456, 11920, 62, 312, 4637, 62, 312, 5474, 62, 4475, 13, 628, 198, 198, 8412, 1174, 198, 9, 7383, 8573, 1635, 198, 8412, 1174, 628, 220, 366, 0, 7383, 4645, 286, 13524, 198, 220, 24412, 47, 1546, 347, 43312, 3963, 40379, 62, 35927, 62, 2539, 13, 198, 220, 24412, 47, 1546, 3067, 62, 312, 41876, 1220, 67, 5908, 14, 35927, 62, 312, 486, 13, 198, 220, 24412, 47, 1546, 23578, 3963, 40379, 62, 35927, 62,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 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_objects_program DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super. PUBLIC SECTION. TYPES: BEGIN OF ty_progdir, name TYPE progdir-name, state TYPE progdir-state, sqlx TYPE progdir-sqlx, edtx TYPE progdir-edtx, varcl TYPE progdir-varcl, dbapl TYPE progdir-dbapl, dbna TYPE progdir-dbna, clas TYPE progdir-clas, type TYPE progdir-type, occurs TYPE progdir-occurs, subc TYPE progdir-subc, appl TYPE progdir-appl, secu TYPE progdir-secu, cnam TYPE progdir-cnam, cdat TYPE progdir-cdat, unam TYPE progdir-unam, udat TYPE progdir-udat, vern TYPE progdir-vern, levl TYPE progdir-levl, rstat TYPE progdir-rstat, rmand TYPE progdir-rmand, rload TYPE progdir-rload, fixpt TYPE progdir-fixpt, sset TYPE progdir-sset, sdate TYPE progdir-sdate, stime TYPE progdir-stime, idate TYPE progdir-idate, itime TYPE progdir-itime, ldbname TYPE progdir-ldbname, uccheck TYPE progdir-uccheck, END OF ty_progdir. METHODS serialize_program IMPORTING io_xml TYPE REF TO zcl_abapgit_xml_output OPTIONAL is_item TYPE zif_abapgit_definitions=>ty_item io_files TYPE REF TO zcl_abapgit_objects_files iv_program TYPE programm OPTIONAL iv_extra TYPE clike OPTIONAL RAISING zcx_abapgit_exception. METHODS read_progdir IMPORTING iv_program TYPE programm RETURNING VALUE(rs_progdir) TYPE ty_progdir. METHODS deserialize_program IMPORTING is_progdir TYPE ty_progdir it_source TYPE abaptxt255_tab it_tpool TYPE textpool_table iv_package TYPE devclass RAISING zcx_abapgit_exception. PROTECTED SECTION. TYPES: ty_spaces_tt TYPE STANDARD TABLE OF i WITH DEFAULT KEY . TYPES: BEGIN OF ty_dynpro, header TYPE rpy_dyhead, containers TYPE dycatt_tab, fields TYPE dyfatc_tab, flow_logic TYPE swydyflow, spaces TYPE ty_spaces_tt, END OF ty_dynpro . TYPES: ty_dynpro_tt TYPE STANDARD TABLE OF ty_dynpro WITH DEFAULT KEY . TYPES: BEGIN OF ty_cua, adm TYPE rsmpe_adm, sta TYPE STANDARD TABLE OF rsmpe_stat WITH DEFAULT KEY, fun TYPE STANDARD TABLE OF rsmpe_funt WITH DEFAULT KEY, men TYPE STANDARD TABLE OF rsmpe_men WITH DEFAULT KEY, mtx TYPE STANDARD TABLE OF rsmpe_mnlt WITH DEFAULT KEY, act TYPE STANDARD TABLE OF rsmpe_act WITH DEFAULT KEY, but TYPE STANDARD TABLE OF rsmpe_but WITH DEFAULT KEY, pfk TYPE STANDARD TABLE OF rsmpe_pfk WITH DEFAULT KEY, set TYPE STANDARD TABLE OF rsmpe_staf WITH DEFAULT KEY, doc TYPE STANDARD TABLE OF rsmpe_atrt WITH DEFAULT KEY, tit TYPE STANDARD TABLE OF rsmpe_titt WITH DEFAULT KEY, biv TYPE STANDARD TABLE OF rsmpe_buts WITH DEFAULT KEY, END OF ty_cua . METHODS serialize_dynpros IMPORTING !iv_program_name TYPE programm RETURNING VALUE(rt_dynpro) TYPE ty_dynpro_tt RAISING zcx_abapgit_exception . METHODS serialize_cua IMPORTING !iv_program_name TYPE programm RETURNING VALUE(rs_cua) TYPE ty_cua RAISING zcx_abapgit_exception . METHODS deserialize_dynpros IMPORTING !it_dynpros TYPE ty_dynpro_tt RAISING zcx_abapgit_exception . METHODS deserialize_textpool IMPORTING !iv_program TYPE programm !it_tpool TYPE textpool_table !iv_language TYPE langu OPTIONAL !iv_is_include TYPE abap_bool DEFAULT abap_false RAISING zcx_abapgit_exception . METHODS deserialize_cua IMPORTING !iv_program_name TYPE programm !is_cua TYPE ty_cua RAISING zcx_abapgit_exception . METHODS is_any_dynpro_locked IMPORTING !iv_program TYPE programm RETURNING VALUE(rv_is_any_dynpro_locked) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS is_cua_locked IMPORTING !iv_program TYPE programm RETURNING VALUE(rv_is_cua_locked) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS is_text_locked IMPORTING !iv_program TYPE programm RETURNING VALUE(rv_is_text_locked) TYPE abap_bool RAISING zcx_abapgit_exception . CLASS-METHODS add_tpool IMPORTING !it_tpool TYPE textpool_table RETURNING VALUE(rt_tpool) TYPE zif_abapgit_definitions=>ty_tpool_tt . CLASS-METHODS read_tpool IMPORTING !it_tpool TYPE zif_abapgit_definitions=>ty_tpool_tt RETURNING VALUE(rt_tpool) TYPE zif_abapgit_definitions=>ty_tpool_tt . PRIVATE SECTION. METHODS: condense_flow EXPORTING et_spaces TYPE ty_spaces_tt CHANGING ct_flow TYPE swydyflow, uncondense_flow IMPORTING it_flow TYPE swydyflow it_spaces TYPE ty_spaces_tt RETURNING VALUE(rt_flow) TYPE swydyflow. CLASS-METHODS auto_correct_cua_adm IMPORTING is_cua TYPE zcl_abapgit_objects_program=>ty_cua CHANGING cs_adm TYPE rsmpe_adm. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECTS_PROGRAM IMPLEMENTATION. METHOD add_tpool. FIELD-SYMBOLS: <ls_tpool_in> LIKE LINE OF it_tpool, <ls_tpool_out> LIKE LINE OF rt_tpool. LOOP AT it_tpool ASSIGNING <ls_tpool_in>. APPEND INITIAL LINE TO rt_tpool ASSIGNING <ls_tpool_out>. MOVE-CORRESPONDING <ls_tpool_in> TO <ls_tpool_out>. IF <ls_tpool_out>-id = 'S'. <ls_tpool_out>-split = <ls_tpool_out>-entry. <ls_tpool_out>-entry = <ls_tpool_out>-entry+8. ENDIF. ENDLOOP. ENDMETHOD. METHOD auto_correct_cua_adm. " issue #1807 automatic correction of CUA interfaces saved incorrectly in the past (ADM was not saved in the XML) CONSTANTS: lc_num_n_space TYPE string VALUE ' 0123456789', lc_num_only TYPE string VALUE '0123456789'. FIELD-SYMBOLS: <ls_pfk> TYPE rsmpe_pfk, <ls_act> TYPE rsmpe_act, <ls_men> TYPE rsmpe_men. IF cs_adm IS NOT INITIAL AND ( cs_adm-actcode CO lc_num_n_space AND cs_adm-mencode CO lc_num_n_space AND cs_adm-pfkcode CO lc_num_n_space ). "Check performed in form check_adm of include LSMPIF03 RETURN. ENDIF. LOOP AT is_cua-act ASSIGNING <ls_act>. IF <ls_act>-code+6(14) IS INITIAL AND <ls_act>-code(6) CO lc_num_only. cs_adm-actcode = <ls_act>-code. ENDIF. ENDLOOP. LOOP AT is_cua-men ASSIGNING <ls_men>. IF <ls_men>-code+6(14) IS INITIAL AND <ls_men>-code(6) CO lc_num_only. cs_adm-mencode = <ls_men>-code. ENDIF. ENDLOOP. LOOP AT is_cua-pfk ASSIGNING <ls_pfk>. IF <ls_pfk>-code+6(14) IS INITIAL AND <ls_pfk>-code(6) CO lc_num_only. cs_adm-pfkcode = <ls_pfk>-code. ENDIF. ENDLOOP. ENDMETHOD. METHOD condense_flow. DATA: lv_spaces LIKE LINE OF et_spaces. FIELD-SYMBOLS: <ls_flow> LIKE LINE OF ct_flow. CLEAR et_spaces. LOOP AT ct_flow ASSIGNING <ls_flow>. lv_spaces = 0. WHILE NOT <ls_flow>-line IS INITIAL AND <ls_flow>-line(1) = space. lv_spaces = lv_spaces + 1. <ls_flow>-line = <ls_flow>-line+1. ENDWHILE. APPEND lv_spaces TO et_spaces. ENDLOOP. ENDMETHOD. METHOD deserialize_cua. DATA: ls_tr_key TYPE trkey, ls_adm TYPE rsmpe_adm. IF lines( is_cua-sta ) = 0 AND lines( is_cua-fun ) = 0 AND lines( is_cua-men ) = 0 AND lines( is_cua-mtx ) = 0 AND lines( is_cua-act ) = 0 AND lines( is_cua-but ) = 0 AND lines( is_cua-pfk ) = 0 AND lines( is_cua-set ) = 0 AND lines( is_cua-doc ) = 0 AND lines( is_cua-tit ) = 0 AND lines( is_cua-biv ) = 0. RETURN. ENDIF. SELECT SINGLE devclass INTO ls_tr_key-devclass FROM tadir WHERE pgmid = 'R3TR' AND object = ms_item-obj_type AND obj_name = ms_item-obj_name. "#EC CI_GENBUFF IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'not found in tadir' ). ENDIF. ls_tr_key-obj_type = ms_item-obj_type. ls_tr_key-obj_name = ms_item-obj_name. ls_tr_key-sub_type = 'CUAD'. ls_tr_key-sub_name = iv_program_name. ls_adm = is_cua-adm. auto_correct_cua_adm( EXPORTING is_cua = is_cua CHANGING cs_adm = ls_adm ). sy-tcode = 'SE41' ##write_ok. " evil hack, workaround to handle fixes in note 2159455 CALL FUNCTION 'RS_CUA_INTERNAL_WRITE' EXPORTING program = iv_program_name language = mv_language tr_key = ls_tr_key adm = ls_adm state = 'I' TABLES sta = is_cua-sta fun = is_cua-fun men = is_cua-men mtx = is_cua-mtx act = is_cua-act but = is_cua-but pfk = is_cua-pfk set = is_cua-set doc = is_cua-doc tit = is_cua-tit biv = is_cua-biv EXCEPTIONS not_found = 1 OTHERS = 2. IF sy-subrc <> 0. * if moving code from SAPlink, see https://github.com/larshp/abapGit/issues/562 zcx_abapgit_exception=>raise( |Error from RS_CUA_INTERNAL_WRITE. Subrc = { sy-subrc }| ). ENDIF. zcl_abapgit_objects_activation=>add( iv_type = 'CUAD' iv_name = iv_program_name ). ENDMETHOD. METHOD deserialize_dynpros. CONSTANTS lc_rpyty_force_off TYPE char01 VALUE '/' ##NO_TEXT. DATA: lv_name TYPE dwinactiv-obj_name, ls_dynpro LIKE LINE OF it_dynpros. FIELD-SYMBOLS: <ls_field> TYPE rpy_dyfatc. * ls_dynpro is changed by the function module, a field-symbol will cause * the program to dump since it_dynpros cannot be changed LOOP AT it_dynpros INTO ls_dynpro. ls_dynpro-flow_logic = uncondense_flow( it_flow = ls_dynpro-flow_logic it_spaces = ls_dynpro-spaces ). LOOP AT ls_dynpro-fields ASSIGNING <ls_field>. * if the DDIC element has a PARAMETER_ID and the flag "from_dict" is active * the import will enable the SET-/GET_PARAM flag. In this case: "force off" IF <ls_field>-param_id IS NOT INITIAL AND <ls_field>-from_dict = abap_true. IF <ls_field>-set_param IS INITIAL. <ls_field>-set_param = lc_rpyty_force_off. ENDIF. IF <ls_field>-get_param IS INITIAL. <ls_field>-get_param = lc_rpyty_force_off. ENDIF. ENDIF. * If the previous conditions are met the value 'F' will be taken over * during de-serialization potentially overlapping other fields in the screen, * we set the tag to the correct value 'X' IF <ls_field>-type = 'CHECK' AND <ls_field>-from_dict = abap_true AND <ls_field>-text IS INITIAL AND <ls_field>-modific IS INITIAL. <ls_field>-modific = 'X'. ENDIF. "fix for issue #2747: IF <ls_field>-foreignkey IS INITIAL. <ls_field>-foreignkey = lc_rpyty_force_off. ENDIF. ENDLOOP. CALL FUNCTION 'RPY_DYNPRO_INSERT' EXPORTING header = ls_dynpro-header suppress_exist_checks = abap_true TABLES containers = ls_dynpro-containers fields_to_containers = ls_dynpro-fields flow_logic = ls_dynpro-flow_logic EXCEPTIONS cancelled = 1 already_exists = 2 program_not_exists = 3 not_executed = 4 missing_required_field = 5 illegal_field_value = 6 field_not_allowed = 7 not_generated = 8 illegal_field_position = 9 OTHERS = 10. IF sy-subrc <> 2 AND sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. * todo, RPY_DYNPRO_UPDATE? CONCATENATE ls_dynpro-header-program ls_dynpro-header-screen INTO lv_name RESPECTING BLANKS. ASSERT NOT lv_name IS INITIAL. zcl_abapgit_objects_activation=>add( iv_type = 'DYNP' iv_name = lv_name ). ENDLOOP. ENDMETHOD. METHOD deserialize_program. DATA: lv_exists TYPE abap_bool, lv_progname TYPE reposrc-progname, ls_tpool LIKE LINE OF it_tpool, lv_title TYPE rglif-title, ls_progdir_new TYPE progdir. FIELD-SYMBOLS: <lg_any> TYPE any. CALL FUNCTION 'RS_CORR_INSERT' EXPORTING object = is_progdir-name object_class = 'ABAP' devclass = iv_package master_language = mv_language mode = 'I' suppress_dialog = abap_true EXCEPTIONS cancelled = 1 permission_failure = 2 unknown_objectclass = 3 OTHERS = 4. IF sy-subrc = 1. zcx_abapgit_exception=>raise( |Error from RS_CORR_INSERT, Cancelled, { sy-msgid }, { sy-msgno }| ). ELSEIF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from RS_CORR_INSERT, { sy-msgid }, { sy-msgno }| ). ENDIF. READ TABLE it_tpool INTO ls_tpool WITH KEY id = 'R'. IF sy-subrc = 0. * there is a bug in RPY_PROGRAM_UPDATE, the header line of TTAB is not * cleared, so the title length might be inherited from a different program. ASSIGN ('(SAPLSIFP)TTAB') TO <lg_any>. IF sy-subrc = 0. CLEAR <lg_any>. ENDIF. lv_title = ls_tpool-entry. ENDIF. SELECT SINGLE progname FROM reposrc INTO lv_progname WHERE progname = is_progdir-name AND r3state = 'A'. IF sy-subrc = 0. lv_exists = abap_true. ELSE. lv_exists = abap_false. ENDIF. IF lv_exists = abap_true. zcl_abapgit_language=>set_current_language( mv_language ). CALL FUNCTION 'RPY_PROGRAM_UPDATE' EXPORTING program_name = is_progdir-name title_string = lv_title save_inactive = 'I' TABLES source_extended = it_source EXCEPTIONS cancelled = 1 permission_error = 2 not_found = 3 OTHERS = 4. IF sy-subrc <> 0. zcl_abapgit_language=>restore_login_language( ). IF sy-msgid = 'EU' AND sy-msgno = '510'. zcx_abapgit_exception=>raise( 'User is currently editing program' ). ELSE. zcx_abapgit_exception=>raise( |PROG { is_progdir-name }, updating error: { sy-msgid } { sy-msgno }| ). ENDIF. ENDIF. zcl_abapgit_language=>restore_login_language( ). ELSEIF strlen( is_progdir-name ) > 30. * function module RPY_PROGRAM_INSERT cannot handle function group includes " special treatment for extensions " if the program name exceeds 30 characters it is not a usual " ABAP program but might be some extension, which requires the internal " addition EXTENSION TYPE, see " http://help.sap.com/abapdocu_751/en/abapinsert_report_internal.htm#!ABAP_ADDITION_1@1@ " This e.g. occurs in case of transportable Code Inspector variants (ending with ===VC) INSERT REPORT is_progdir-name FROM it_source STATE 'I' EXTENSION TYPE is_progdir-name+30. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from INSERT REPORT .. EXTENSION TYPE' ). ENDIF. ELSE. INSERT REPORT is_progdir-name FROM it_source STATE 'I' PROGRAM TYPE is_progdir-subc. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from INSERT REPORT' ). ENDIF. ENDIF. IF NOT it_tpool[] IS INITIAL. INSERT TEXTPOOL is_progdir-name FROM it_tpool LANGUAGE mv_language STATE 'I'. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from INSERT TEXTPOOL' ). ENDIF. ENDIF. CALL FUNCTION 'READ_PROGDIR' EXPORTING i_progname = is_progdir-name i_state = 'I' IMPORTING e_progdir = ls_progdir_new EXCEPTIONS not_exists = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |not found in PROGDIR. Subrc = { sy-subrc }| ). ENDIF. * todo, package? ls_progdir_new-ldbname = is_progdir-ldbname. ls_progdir_new-dbna = is_progdir-dbna. ls_progdir_new-dbapl = is_progdir-dbapl. ls_progdir_new-rload = is_progdir-rload. ls_progdir_new-fixpt = is_progdir-fixpt. ls_progdir_new-varcl = is_progdir-varcl. ls_progdir_new-appl = is_progdir-appl. ls_progdir_new-rstat = is_progdir-rstat. CALL FUNCTION 'UPDATE_PROGDIR' EXPORTING i_progdir = ls_progdir_new i_progname = ls_progdir_new-name i_state = ls_progdir_new-state EXCEPTIONS not_executed = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |PROG, error inserting. Subrc = { sy-subrc }| ). ENDIF. SELECT SINGLE * FROM progdir INTO ls_progdir_new WHERE name = ls_progdir_new-name AND state = ls_progdir_new-state. IF sy-subrc = 0 AND is_progdir-varcl = space AND ls_progdir_new-varcl = abap_true. * function module UPDATE_PROGDIR does not update VARCL UPDATE progdir SET varcl = is_progdir-varcl WHERE name = ls_progdir_new-name AND state = ls_progdir_new-state. "#EC CI_SUBRC ENDIF. zcl_abapgit_objects_activation=>add( iv_type = 'REPS' iv_name = is_progdir-name ). ENDMETHOD. METHOD deserialize_textpool. DATA lv_language TYPE langu. DATA lv_state TYPE c. DATA lv_delete TYPE abap_bool. IF iv_language IS INITIAL. lv_language = mv_language. ELSE. lv_language = iv_language. ENDIF. IF lv_language = mv_language. lv_state = 'I'. "Textpool in master language needs to be activated ELSE. lv_state = 'A'. "Translations are always active ENDIF. IF it_tpool IS INITIAL. IF iv_is_include = abap_false OR lv_state = 'A'. DELETE TEXTPOOL iv_program "Remove initial description from textpool if LANGUAGE iv_program "original program does not have a textpool STATE lv_state. lv_delete = abap_true. ELSE. INSERT TEXTPOOL iv_program "In case of includes: Deletion of textpool in FROM it_tpool "master language cannot be activated because LANGUAGE lv_language "this woul activate the deletion of the textpool STATE lv_state. "of the mail program -> insert empty textpool ENDIF. ELSE. IF lines( it_tpool ) = 1 AND lv_language = mv_language. READ TABLE it_tpool WITH KEY id = 'R' TRANSPORTING NO FIELDS. IF sy-subrc = 0. RETURN. "No action because description in master language is already there ENDIF. ENDIF. INSERT TEXTPOOL iv_program FROM it_tpool LANGUAGE lv_language STATE lv_state. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from INSERT TEXTPOOL' ). ENDIF. ENDIF. IF lv_state = 'I'. "Textpool in master language needs to be activated zcl_abapgit_objects_activation=>add( iv_type = 'REPT' iv_name = iv_program iv_delete = lv_delete ). ENDIF. ENDMETHOD. METHOD is_any_dynpro_locked. DATA: lt_dynpros TYPE zcl_abapgit_objects_program=>ty_dynpro_tt, lv_object TYPE seqg3-garg. FIELD-SYMBOLS: <ls_dynpro> TYPE zcl_abapgit_objects_program=>ty_dynpro. lt_dynpros = serialize_dynpros( iv_program ). LOOP AT lt_dynpros ASSIGNING <ls_dynpro>. lv_object = |{ <ls_dynpro>-header-screen }{ <ls_dynpro>-header-program }|. IF exists_a_lock_entry_for( iv_lock_object = 'ESCRP' iv_argument = lv_object ) = abap_true. rv_is_any_dynpro_locked = abap_true. EXIT. ENDIF. ENDLOOP. ENDMETHOD. METHOD is_cua_locked. DATA: lv_object TYPE eqegraarg. lv_object = |CU{ iv_program }|. OVERLAY lv_object WITH ' '. lv_object = lv_object && '*'. rv_is_cua_locked = exists_a_lock_entry_for( iv_lock_object = 'ESCUAPAINT' iv_argument = lv_object ). ENDMETHOD. METHOD is_text_locked. DATA: lv_object TYPE eqegraarg. lv_object = |*{ iv_program }|. rv_is_text_locked = exists_a_lock_entry_for( iv_lock_object = 'EABAPTEXTE' iv_argument = lv_object ). ENDMETHOD. METHOD read_progdir. DATA: ls_sapdir TYPE progdir. CALL FUNCTION 'READ_PROGDIR' EXPORTING i_progname = iv_program i_state = 'A' IMPORTING e_progdir = ls_sapdir. MOVE-CORRESPONDING ls_sapdir TO rs_progdir. CLEAR: rs_progdir-edtx, rs_progdir-cnam, rs_progdir-cdat, rs_progdir-unam, rs_progdir-udat, rs_progdir-levl, rs_progdir-vern, rs_progdir-rmand, rs_progdir-sdate, rs_progdir-stime, rs_progdir-idate, rs_progdir-itime, rs_progdir-varcl, rs_progdir-state. ENDMETHOD. METHOD read_tpool. FIELD-SYMBOLS: <ls_tpool_in> LIKE LINE OF it_tpool, <ls_tpool_out> LIKE LINE OF rt_tpool. LOOP AT it_tpool ASSIGNING <ls_tpool_in>. APPEND INITIAL LINE TO rt_tpool ASSIGNING <ls_tpool_out>. MOVE-CORRESPONDING <ls_tpool_in> TO <ls_tpool_out>. IF <ls_tpool_out>-id = 'S'. CONCATENATE <ls_tpool_in>-split <ls_tpool_in>-entry INTO <ls_tpool_out>-entry RESPECTING BLANKS. ENDIF. ENDLOOP. ENDMETHOD. METHOD serialize_cua. CALL FUNCTION 'RS_CUA_INTERNAL_FETCH' EXPORTING program = iv_program_name language = mv_language state = 'A' IMPORTING adm = rs_cua-adm TABLES sta = rs_cua-sta fun = rs_cua-fun men = rs_cua-men mtx = rs_cua-mtx act = rs_cua-act but = rs_cua-but pfk = rs_cua-pfk set = rs_cua-set doc = rs_cua-doc tit = rs_cua-tit biv = rs_cua-biv EXCEPTIONS not_found = 1 unknown_version = 2 OTHERS = 3. IF sy-subrc > 1. zcx_abapgit_exception=>raise( |Error from RS_CUA_INTERNAL_FETCH, { sy-subrc }| ). ENDIF. ENDMETHOD. METHOD serialize_dynpros. DATA: ls_header TYPE rpy_dyhead, lt_containers TYPE dycatt_tab, lt_fields_to_containers TYPE dyfatc_tab, lt_flow_logic TYPE swydyflow, lt_d020s TYPE TABLE OF d020s, lt_fieldlist_int TYPE TABLE OF d021s. "internal format FIELD-SYMBOLS: <ls_d020s> LIKE LINE OF lt_d020s, <lv_outputstyle> TYPE scrpostyle, <ls_container> LIKE LINE OF lt_containers, <ls_field> LIKE LINE OF lt_fields_to_containers, <ls_dynpro> LIKE LINE OF rt_dynpro, <ls_field_int> LIKE LINE OF lt_fieldlist_int. "#2746: relevant flag values (taken from include MSEUSBIT) CONSTANTS: lc_flg1ddf TYPE x VALUE '20', lc_flg3fku TYPE x VALUE '08', lc_flg3for TYPE x VALUE '04', lc_flg3fdu TYPE x VALUE '02'. CALL FUNCTION 'RS_SCREEN_LIST' EXPORTING dynnr = '' progname = iv_program_name TABLES dynpros = lt_d020s EXCEPTIONS not_found = 1 OTHERS = 2. IF sy-subrc = 2. zcx_abapgit_exception=>raise( |Error from RS_SCREEN_LIST. Subrc = { sy-subrc }| ). ENDIF. SORT lt_d020s BY dnum ASCENDING. * loop dynpros and skip generated selection screens LOOP AT lt_d020s ASSIGNING <ls_d020s> WHERE type <> 'S' AND type <> 'W' AND type <> 'J' AND NOT dnum IS INITIAL. CALL FUNCTION 'RPY_DYNPRO_READ' EXPORTING progname = iv_program_name dynnr = <ls_d020s>-dnum IMPORTING header = ls_header TABLES containers = lt_containers fields_to_containers = lt_fields_to_containers flow_logic = lt_flow_logic EXCEPTIONS cancelled = 1 not_found = 2 permission_error = 3 OTHERS = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error while reading dynpro: { sy-subrc }| ). ENDIF. "#2746: we need the dynpro fields in internal format: FREE lt_fieldlist_int. CALL FUNCTION 'RPY_DYNPRO_READ_NATIVE' EXPORTING progname = iv_program_name dynnr = <ls_d020s>-dnum TABLES fieldlist = lt_fieldlist_int. LOOP AT lt_fields_to_containers ASSIGNING <ls_field>. * output style is a NUMC field, the XML conversion will fail if it contains invalid value * field does not exist in all versions ASSIGN COMPONENT 'OUTPUTSTYLE' OF STRUCTURE <ls_field> TO <lv_outputstyle>. IF sy-subrc = 0 AND <lv_outputstyle> = ' '. CLEAR <lv_outputstyle>. ENDIF. "2746: we apply the same logic as in SAPLWBSCREEN "for setting or unsetting the foreignkey field: UNASSIGN <ls_field_int>. READ TABLE lt_fieldlist_int ASSIGNING <ls_field_int> WITH KEY fnam = <ls_field>-name. IF <ls_field_int> IS ASSIGNED. IF <ls_field_int>-flg1 O lc_flg1ddf AND <ls_field_int>-flg3 O lc_flg3for AND <ls_field_int>-flg3 Z lc_flg3fdu AND <ls_field_int>-flg3 Z lc_flg3fku. <ls_field>-foreignkey = 'X'. ELSE. CLEAR <ls_field>-foreignkey. ENDIF. ENDIF. ENDLOOP. LOOP AT lt_containers ASSIGNING <ls_container>. IF <ls_container>-c_resize_v = abap_false. CLEAR <ls_container>-c_line_min. ENDIF. IF <ls_container>-c_resize_h = abap_false. CLEAR <ls_container>-c_coln_min. ENDIF. ENDLOOP. APPEND INITIAL LINE TO rt_dynpro ASSIGNING <ls_dynpro>. <ls_dynpro>-header = ls_header. <ls_dynpro>-containers = lt_containers. <ls_dynpro>-fields = lt_fields_to_containers. condense_flow( IMPORTING et_spaces = <ls_dynpro>-spaces CHANGING ct_flow = lt_flow_logic ). <ls_dynpro>-flow_logic = lt_flow_logic. ENDLOOP. ENDMETHOD. METHOD serialize_program. DATA: ls_progdir TYPE ty_progdir, lv_program_name TYPE programm, lt_dynpros TYPE ty_dynpro_tt, ls_cua TYPE ty_cua, lt_source TYPE TABLE OF abaptxt255, lt_tpool TYPE textpool_table, ls_tpool LIKE LINE OF lt_tpool, lo_xml TYPE REF TO zcl_abapgit_xml_output. IF iv_program IS INITIAL. lv_program_name = is_item-obj_name. ELSE. lv_program_name = iv_program. ENDIF. zcl_abapgit_language=>set_current_language( mv_language ). CALL FUNCTION 'RPY_PROGRAM_READ' EXPORTING program_name = lv_program_name with_lowercase = abap_true TABLES source_extended = lt_source textelements = lt_tpool EXCEPTIONS cancelled = 1 not_found = 2 permission_error = 3 OTHERS = 4. IF sy-subrc = 2. zcl_abapgit_language=>restore_login_language( ). RETURN. ELSEIF sy-subrc <> 0. zcl_abapgit_language=>restore_login_language( ). zcx_abapgit_exception=>raise( |Error reading program with RPY_PROGRAM_READ. Subrc = { sy-subrc }| ). ENDIF. zcl_abapgit_language=>restore_login_language( ). ls_progdir = read_progdir( lv_program_name ). IF io_xml IS BOUND. lo_xml = io_xml. ELSE. CREATE OBJECT lo_xml. ENDIF. lo_xml->add( iv_name = 'PROGDIR' ig_data = ls_progdir ). IF ls_progdir-subc = '1' OR ls_progdir-subc = 'M'. lt_dynpros = serialize_dynpros( lv_program_name ). lo_xml->add( iv_name = 'DYNPROS' ig_data = lt_dynpros ). ls_cua = serialize_cua( lv_program_name ). IF NOT ls_cua IS INITIAL. lo_xml->add( iv_name = 'CUA' ig_data = ls_cua ). ENDIF. ENDIF. READ TABLE lt_tpool WITH KEY id = 'R' INTO ls_tpool. IF sy-subrc = 0 AND ls_tpool-key = '' AND ls_tpool-length = 0. DELETE lt_tpool INDEX sy-tabix. ENDIF. lo_xml->add( iv_name = 'TPOOL' ig_data = add_tpool( lt_tpool ) ). IF NOT io_xml IS BOUND. io_files->add_xml( iv_extra = iv_extra io_xml = lo_xml ). ENDIF. io_files->add_abap( iv_extra = iv_extra it_abap = lt_source ). ENDMETHOD. METHOD uncondense_flow. DATA: lv_spaces LIKE LINE OF it_spaces. FIELD-SYMBOLS: <ls_flow> LIKE LINE OF it_flow, <ls_output> LIKE LINE OF rt_flow. LOOP AT it_flow ASSIGNING <ls_flow>. APPEND INITIAL LINE TO rt_flow ASSIGNING <ls_output>. <ls_output>-line = <ls_flow>-line. READ TABLE it_spaces INDEX sy-tabix INTO lv_spaces. IF sy-subrc = 0. SHIFT <ls_output>-line RIGHT BY lv_spaces PLACES IN CHARACTER MODE. ENDIF. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 23065, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 1676, 70, 15908, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 41876, 1172, 15908, 12, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1181, 220, 220, 41876, 1172, 15908, 12, 5219, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 44161, 87, 220, 220, 220, 41876, 1172, 15908, 12, 25410, 87, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1225, 17602, 220, 220, 220, 41876, 1172, 15908, 12, 276, 17602, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1401, 565, 220, 220, 41876, 1172, 15908, 12, 7785, 565, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 7012, 489, 220, 220, 41876, 1172, 15908, 12, 67, 7012, 489, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20613, 2616, 220, 220, 220, 41876, 1172, 15908, 12, 9945, 2616, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 537, 292, 220, 220, 220, 41876, 1172, 15908, 12, 565, 292, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 41876, 1172, 15908, 12, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8833, 220, 41876, 1172, 15908, 12, 13966, 1834, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 850, 66, 220, 220, 220, 41876, 1172, 15908, 12, 7266, 66, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3680, 220, 220, 220, 41876, 1172, 15908, 12, 1324, 75, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 792, 84, 220, 220, 220, 41876, 1172, 15908, 12, 2363, 84, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 7402, 220, 220, 220, 41876, 1172, 15908, 12, 66, 7402, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 19608, 220, 220, 220, 41876, 1172, 15908, 12, 10210, 265, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 555, 321, 220, 220, 220, 41876, 1172, 15908, 12, 403, 321, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 334, 19608, 220, 220, 220, 41876, 1172, 15908, 12, 463, 265, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 933, 220, 220, 220, 41876, 1172, 15908, 12, 933, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 443, 19279, 220, 220, 220, 41876, 1172, 15908, 12, 2768, 75, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 14269, 220, 220, 41876, 1172, 15908, 12, 81, 14269, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 22249, 220, 220, 41876, 1172, 15908, 12, 81, 22249, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 2220, 220, 220, 41876, 1172, 15908, 12, 81, 2220, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4259, 457, 220, 220, 41876, 1172, 15908, 12, 13049, 457, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 2617, 220, 220, 220, 41876, 1172, 15908, 12, 824, 316, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 4475, 220, 220, 41876, 1172, 15908, 12, 82, 4475, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 336, 524, 220, 220, 41876, 1172, 15908, 12, 301, 524, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 378, 220, 220, 41876, 1172, 15908, 12, 20540, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 524, 220, 220, 41876, 1172, 15908, 12, 22552, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 9945, 3672, 41876, 1172, 15908, 12, 335, 65, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 334, 535, 258, 694, 41876, 1172, 15908, 12, 18863, 258, 694, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 1676, 70, 15908, 13, 628, 220, 220, 220, 337, 36252, 50, 11389, 1096, 62, 23065, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 33245, 62, 19875, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 19875, 62, 22915, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 9186, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 16624, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16624, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 23065, 41876, 1430, 76, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 26086, 220, 220, 41876, 537, 522, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 1100, 62, 1676, 70, 15908, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 23065, 220, 220, 220, 220, 220, 220, 220, 41876, 1430, 76, 198, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_nspc DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_abapgit_object . PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_nspc, namespace TYPE trnspacet-namespace, replicense TYPE trnspacet-replicense, sscrflag TYPE trnspacet-sscrflag, sapflag TYPE trnspacet-sapflag, gen_only TYPE trnspacet-gen_only, END OF ty_nspc . TYPES: BEGIN OF ty_nspc_text, spras TYPE trnspacett-spras, descriptn TYPE trnspacett-descriptn, owner TYPE trnspacett-owner, END OF ty_nspc_text . TYPES: ty_nspc_texts TYPE STANDARD TABLE OF ty_nspc_text . METHODS serialize_texts IMPORTING !ii_xml TYPE REF TO zif_abapgit_xml_output RAISING zcx_abapgit_exception . METHODS deserialize_texts IMPORTING !ii_xml TYPE REF TO zif_abapgit_xml_input !iv_namespace TYPE namespace RAISING zcx_abapgit_exception . METHODS add_to_transport IMPORTING !iv_package TYPE devclass RAISING zcx_abapgit_exception . ENDCLASS. CLASS zcl_abapgit_object_nspc IMPLEMENTATION. METHOD add_to_transport. DATA: li_sap_package TYPE REF TO zif_abapgit_sap_package. li_sap_package = zcl_abapgit_factory=>get_sap_package( iv_package ). IF li_sap_package->are_changes_recorded_in_tr_req( ) = abap_true. corr_insert( iv_package ). ENDIF. ENDMETHOD. METHOD deserialize_texts. DATA: ls_trnspacett TYPE trnspacett, lt_i18n_langs TYPE TABLE OF langu, lt_nspc_texts TYPE ty_nspc_texts. FIELD-SYMBOLS: <lv_lang> LIKE LINE OF lt_i18n_langs, <ls_nspc_text> LIKE LINE OF lt_nspc_texts. ii_xml->read( EXPORTING iv_name = 'I18N_LANGS' CHANGING cg_data = lt_i18n_langs ). ii_xml->read( EXPORTING iv_name = 'NSPC_TEXTS' CHANGING cg_data = lt_nspc_texts ). SORT lt_i18n_langs. SORT lt_nspc_texts BY spras. " Optimization LOOP AT lt_i18n_langs ASSIGNING <lv_lang>. ls_trnspacett-namespace = iv_namespace. READ TABLE lt_nspc_texts ASSIGNING <ls_nspc_text> WITH KEY spras = <lv_lang>. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |NSPC_TEXTS cannot find lang { <lv_lang> } in XML| ). ENDIF. MOVE-CORRESPONDING <ls_nspc_text> TO ls_trnspacett. MODIFY trnspacett FROM ls_trnspacett. IF sy-subrc <> 0. INSERT trnspacett FROM ls_trnspacett. ENDIF. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error upserting text for namespace| ). ENDIF. ENDLOOP. ENDMETHOD. METHOD serialize_texts. DATA: lv_name TYPE ddobjname, lv_index TYPE i, ls_trnspacett TYPE trnspacett, lt_nspc_texts TYPE ty_nspc_texts, lt_i18n_langs TYPE TABLE OF langu. FIELD-SYMBOLS: <lv_lang> LIKE LINE OF lt_i18n_langs, <ls_nspc_text> LIKE LINE OF lt_nspc_texts. IF ii_xml->i18n_params( )-main_language_only = abap_true. RETURN. ENDIF. " Collect additional languages, skip main lang - it was serialized already SELECT DISTINCT spras AS langu FROM trnspacett INTO TABLE lt_i18n_langs WHERE namespace = ms_item-obj_name AND spras <> mv_language. "#EC CI_SUBRC LOOP AT lt_i18n_langs ASSIGNING <lv_lang>. SELECT SINGLE * FROM trnspacett INTO ls_trnspacett WHERE namespace = ms_item-obj_name AND spras = <lv_lang>. IF sy-subrc = 0. APPEND INITIAL LINE TO lt_nspc_texts ASSIGNING <ls_nspc_text>. MOVE-CORRESPONDING ls_trnspacett TO <ls_nspc_text>. ENDIF. ENDLOOP. SORT lt_i18n_langs ASCENDING. SORT lt_nspc_texts BY spras ASCENDING. IF lines( lt_i18n_langs ) > 0. ii_xml->add( iv_name = 'I18N_LANGS' ig_data = lt_i18n_langs ). ii_xml->add( iv_name = 'NSPC_TEXTS' ig_data = lt_nspc_texts ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~changed_by. SELECT SINGLE changeuser FROM trnspacet INTO rv_user WHERE namespace = ms_item-obj_name. IF sy-subrc <> 0. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. RETURN. " not supported ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: ls_nspc TYPE ty_nspc, ls_nspc_text TYPE ty_nspc_text, lv_modifiable TYPE abap_bool, ls_trnspacet TYPE trnspacet, ls_trnspacett TYPE trnspacett. io_xml->read( EXPORTING iv_name = 'NSPC' CHANGING cg_data = ls_nspc ). io_xml->read( EXPORTING iv_name = 'NSPC_TEXT' CHANGING cg_data = ls_nspc_text ). add_to_transport( iv_package ). SELECT SINGLE * FROM trnspacet INTO ls_trnspacet WHERE namespace = ls_nspc-namespace. IF sy-subrc = 0. " For existing namespace, check if it's modifiable (SE03) SELECT SINGLE editflag FROM trnspace INTO lv_modifiable WHERE namespace = ls_nspc-namespace. IF sy-subrc = 0 AND lv_modifiable = abap_false. zcx_abapgit_exception=>raise( |Namespace is not modifiable| ). ENDIF. " keep existing role ls_trnspacet-replicense = ls_nspc-replicense. ls_trnspacet-sscrflag = ls_nspc-sscrflag. ls_trnspacet-sapflag = ls_nspc-sapflag. ls_trnspacet-gen_only = ls_nspc-gen_only. ls_trnspacet-changeuser = sy-uname. ls_trnspacet-changedate = sy-datum. MODIFY trnspacet FROM ls_trnspacet. ELSE. MOVE-CORRESPONDING ls_nspc TO ls_trnspacet. ls_trnspacet-role = 'C'. " customer repair license ls_trnspacet-changeuser = sy-uname. ls_trnspacet-changedate = sy-datum. INSERT trnspacet FROM ls_trnspacet. ENDIF. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error upserting namespace| ). ENDIF. SELECT SINGLE * FROM trnspacett INTO ls_trnspacett WHERE namespace = ls_nspc-namespace AND spras = mv_language. IF sy-subrc = 0. ls_trnspacett-descriptn = ls_nspc_text-descriptn. ls_trnspacett-owner = ls_nspc_text-owner. MODIFY trnspacett FROM ls_trnspacett. ELSE. MOVE-CORRESPONDING ls_nspc_text TO ls_trnspacett. ls_trnspacett-namespace = ls_nspc-namespace. INSERT trnspacett FROM ls_trnspacett. ENDIF. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error upserting text for namespace| ). ENDIF. deserialize_texts( ii_xml = io_xml iv_namespace = ls_nspc-namespace ). " Fill trnspace and trnspacel tables CALL FUNCTION 'TR_ACTIVATE_NAMESPACE' EXPORTING iv_namespace = ls_nspc-namespace EXCEPTIONS deletion_not_allowed = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error activating namespace| ). ENDIF. " Make namespace modifiable UPDATE trnspace SET editflag = abap_true WHERE namespace = ls_nspc-namespace. ENDMETHOD. METHOD zif_abapgit_object~exists. DATA lv_namespace TYPE trnspace-namespace. lv_namespace = ms_item-obj_name. CALL FUNCTION 'TR_CHECK_NAMESPACE' EXPORTING iv_namespace = lv_namespace EXCEPTIONS namespace_not_valid = 1 OTHERS = 2. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = zif_abapgit_object~exists( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = abap_false. ENDMETHOD. METHOD zif_abapgit_object~jump. " Launch general maintenance for namespaces CALL FUNCTION 'VIEW_MAINTENANCE_CALL' EXPORTING action = 'S' view_name = 'V_TRNSPACE' no_warning_for_clientindep = 'X' variant_for_selection = 'STANDARD' EXCEPTIONS client_reference = 1 foreign_lock = 2 invalid_action = 3 no_clientindependent_auth = 4 no_database_function = 5 no_editor_function = 6 no_show_auth = 7 no_tvdir_entry = 8 no_upd_auth = 9 only_show_allowed = 10 system_failure = 11 unknown_field_in_dba_sellist = 12 view_not_found = 13 OTHERS = 14. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: ls_nspc TYPE ty_nspc, ls_nspc_text TYPE ty_nspc_text, ls_trnspacet TYPE trnspacet, ls_trnspacett TYPE trnspacett. SELECT SINGLE * FROM trnspacet INTO CORRESPONDING FIELDS OF ls_nspc WHERE namespace = ms_item-obj_name. SELECT SINGLE * FROM trnspacett INTO CORRESPONDING FIELDS OF ls_nspc_text WHERE namespace = ms_item-obj_name AND spras = mv_language. io_xml->add( iv_name = 'NSPC' ig_data = ls_nspc ). io_xml->add( iv_name = 'NSPC_TEXT' ig_data = ls_nspc_text ). serialize_texts( io_xml ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 77, 2777, 66, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 77, 2777, 66, 11, 198, 220, 220, 220, 220, 220, 220, 220, 25745, 220, 41876, 491, 77, 2777, 23253, 12, 14933, 10223, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2186, 291, 1072, 41876, 491, 77, 2777, 23253, 12, 35666, 291, 1072, 11, 198, 220, 220, 220, 220, 220, 220, 220, 264, 1416, 81, 32109, 220, 220, 41876, 491, 77, 2777, 23253, 12, 824, 6098, 32109, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31841, 32109, 220, 220, 220, 41876, 491, 77, 2777, 23253, 12, 82, 499, 32109, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2429, 62, 8807, 220, 220, 41876, 491, 77, 2777, 23253, 12, 5235, 62, 8807, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 77, 2777, 66, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 77, 2777, 66, 62, 5239, 11, 198, 220, 220, 220, 220, 220, 220, 220, 7500, 292, 220, 220, 220, 220, 41876, 491, 77, 2777, 330, 3087, 12, 34975, 292, 11, 198, 220, 220, 220, 220, 220, 220, 220, 12145, 77, 41876, 491, 77, 2777, 330, 3087, 12, 20147, 1968, 77, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4870, 220, 220, 220, 220, 41876, 491, 77, 2777, 330, 3087, 12, 18403, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 77, 2777, 66, 62, 5239, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 77, 2777, 66, 62, 5239, 82, 41876, 49053, 9795, 43679, 3963, 1259, 62, 77, 2777, 66, 62, 5239, 764, 628, 220, 220, 220, 337, 36252, 50, 11389, 1096, 62, 5239, 82, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 19875, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 19875, 62, 22915, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 748, 48499, 1096, 62, 5239, 82, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 19875, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 19875, 62, 15414, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 14933, 10223, 41876, 25745, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 751, 62, 1462, 62, 7645, 634, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26495, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 77, 2777, 66, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 751, 62, 1462, 62, 7645, 634, 13, 628, 220, 220, 220, 42865, 25, 7649, 62, 82, 499, 62, 26495, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 82, 499, 62, 26495, 13, 628, 220, 220, 220, 7649, 62, 82, 499, 62, 26495, 796, 1976, 565, 62, 397, 499, 18300, 62, 69, 9548, 14804, 1136, 62, 82, 499, 62, 26495, 7, 21628, 62, 26495, 6739, 628, 220, 220, 220, 16876, 7649, 62, 82, 499, 62, 26495, 3784, 533, 62, 36653, 62, 47398, 62, 259, 62, 2213, 62, 42180, 7, 1267, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 1162, 81, 62, 28463, 7, 21628, 62, 26495, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 748, 48499, 1096, 62, 5239, 82, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 43979, 62, 2213, 77, 2777, 330, 3087, 41876, 491, 77, 2777, 330, 3087, 11, 198, 220, 220, 220, 220, 220, 300, 83, 62, 72, 1507, 77, 62, 17204, 82, 41876, 43679, 3963, 2786, 11, 198, 220, 220, 220, 220, 220, 300, 83, 62, 77, 2777, 66, 62, 5239, 82, 41876, 1259, 62, 77, 2777, 66, 62, 5239, 82, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 198, 220, 220, 220, 220, 220, 1279, 6780, 62, 17204, 29, 220, 220, 220, 220, 220, 34178, 48920, 3963, 300, 83, 62, 72, 1507, 77, 62, 17204, 82, 11, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 77, 2777, 66, 62, 5239, 29, 34178, 48920, 3963, 300, 83, 62, 77, 2777, 66, 62, 5239, 82, 13, 628, 220, 220, 220, 21065, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 40, 1507, 45, 62, 25697, 14313, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 7890, 796, 300, 83, 62, 72, 1507, 77, 62, 17204, 82, 6739, 628, 220, 220, 220, 21065, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 45, 4303, 34, 62, 51, 6369, 4694, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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. CLASS z2mse_test_dynamic_usage IMPLEMENTATION. METHOD where_used. " Example of a method to transfer dynamic usages to the extractor DATA: dyn_usage TYPE STANDARD TABLE OF wbcrossgt WITH DEFAULT KEY, line TYPE wbcrossgt. CLEAR line. line-otype = 'ME'. line-name = 'Z2MSE_TEST_CL_A\ME:CONSTRUCTOR'. line-include = 'Z2MSE_TEST_CL_B1==============CM002'. INSERT line INTO TABLE dyn_usage. CLEAR line. line-otype = 'ME'. line-name = 'Z2MSE_TEST_CL_A\ME:METHOD_A'. line-include = 'Z2MSE_TEST_CL_B1==============CM002'. INSERT line INTO TABLE dyn_usage. data = dyn_usage. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 17, 76, 325, 62, 9288, 62, 67, 28995, 62, 26060, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 810, 62, 1484, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 7890, 41876, 15529, 43679, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 17, 76, 325, 62, 9288, 62, 67, 28995, 62, 26060, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 810, 62, 1484, 13, 628, 220, 220, 220, 366, 17934, 286, 257, 2446, 284, 4351, 8925, 514, 1095, 284, 262, 7925, 273, 198, 220, 220, 220, 42865, 25, 37860, 62, 26060, 41876, 49053, 9795, 43679, 3963, 266, 15630, 1214, 13655, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1627, 220, 220, 220, 220, 220, 41876, 266, 15630, 1214, 13655, 13, 628, 220, 220, 220, 30301, 1503, 1627, 13, 198, 220, 220, 220, 1627, 12, 8690, 796, 705, 11682, 4458, 198, 220, 220, 220, 1627, 12, 3672, 796, 705, 57, 17, 44, 5188, 62, 51, 6465, 62, 5097, 62, 32, 59, 11682, 25, 10943, 46126, 1581, 4458, 198, 220, 220, 220, 1627, 12, 17256, 796, 705, 57, 17, 44, 5188, 62, 51, 6465, 62, 5097, 62, 33, 16, 25609, 855, 24187, 21601, 4458, 198, 220, 220, 220, 29194, 17395, 1627, 39319, 43679, 37860, 62, 26060, 13, 628, 220, 220, 220, 30301, 1503, 1627, 13, 198, 220, 220, 220, 1627, 12, 8690, 796, 705, 11682, 4458, 198, 220, 220, 220, 1627, 12, 3672, 796, 705, 57, 17, 44, 5188, 62, 51, 6465, 62, 5097, 62, 32, 59, 11682, 25, 49273, 62, 32, 4458, 198, 220, 220, 220, 1627, 12, 17256, 796, 705, 57, 17, 44, 5188, 62, 51, 6465, 62, 5097, 62, 33, 16, 25609, 855, 24187, 21601, 4458, 198, 220, 220, 220, 29194, 17395, 1627, 39319, 43679, 37860, 62, 26060, 13, 628, 220, 220, 220, 1366, 796, 37860, 62, 26060, 13, 628, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_scp1 DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_abapgit_object . PROTECTED SECTION. TYPES: BEGIN OF ty_scp1, scprattr TYPE scprattr, scprtext TYPE STANDARD TABLE OF scprtext WITH DEFAULT KEY, scprvals TYPE STANDARD TABLE OF scprvals WITH DEFAULT KEY, scprvall TYPE STANDARD TABLE OF scprvall WITH DEFAULT KEY, scprreca TYPE STANDARD TABLE OF scprreca WITH DEFAULT KEY, scprfldv TYPE STANDARD TABLE OF scprfldv WITH DEFAULT KEY, END OF ty_scp1 . METHODS dequeue . METHODS enqueue RAISING zcx_abapgit_exception . METHODS save IMPORTING !is_scp1 TYPE ty_scp1 RAISING zcx_abapgit_exception . METHODS adjust_inbound CHANGING !cs_scp1 TYPE ty_scp1 . METHODS adjust_outbound CHANGING !cs_scp1 TYPE ty_scp1 . METHODS load CHANGING !cs_scp1 TYPE ty_scp1 . PRIVATE SECTION. ENDCLASS. CLASS zcl_abapgit_object_scp1 IMPLEMENTATION. METHOD adjust_inbound. FIELD-SYMBOLS: <ls_scprvals> TYPE scprvals, <ls_scprreca> TYPE scprreca. * back to internal format LOOP AT cs_scp1-scprvals ASSIGNING <ls_scprvals>. SHIFT <ls_scprvals>-recnumber RIGHT DELETING TRAILING space. ENDLOOP. LOOP AT cs_scp1-scprreca ASSIGNING <ls_scprreca>. SHIFT <ls_scprreca>-recnumber RIGHT DELETING TRAILING space. ENDLOOP. ENDMETHOD. METHOD adjust_outbound. FIELD-SYMBOLS: <ls_scprvals> TYPE scprvals, <ls_scprreca> TYPE scprreca. * normalize the XML LOOP AT cs_scp1-scprvals ASSIGNING <ls_scprvals>. CONDENSE <ls_scprvals>-recnumber. ENDLOOP. LOOP AT cs_scp1-scprreca ASSIGNING <ls_scprreca>. CONDENSE <ls_scprreca>-recnumber. ENDLOOP. ENDMETHOD. METHOD dequeue. DATA: lv_id TYPE scpr_id. lv_id = ms_item-obj_name. CALL FUNCTION 'SCPR_SV_DEQUEUE_BCSET' EXPORTING bcset_id = lv_id. ENDMETHOD. METHOD enqueue. DATA: lv_id TYPE scpr_id. lv_id = ms_item-obj_name. CALL FUNCTION 'SCPR_SV_ENQUEUE_BCSET' EXPORTING bcset_id = lv_id EXCEPTIONS is_already_locked = 1 system_failure = 2 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |SCP1 locking error| ). ENDIF. ENDMETHOD. METHOD load. CALL FUNCTION 'SCPR_TEXT_GET' EXPORTING profid = cs_scp1-scprattr-id category = cs_scp1-scprattr-category TABLES texts = cs_scp1-scprtext EXCEPTIONS no_text_found = 1. CALL FUNCTION 'SCPR_TEMPL_DB_VALS_GET_DETAIL' EXPORTING profid = cs_scp1-scprattr-id category = cs_scp1-scprattr-category TABLES values = cs_scp1-scprvals valuesl = cs_scp1-scprvall recattr = cs_scp1-scprreca. CALL FUNCTION 'SCPR_TEMPL_DB_FLDTXTVAR_GET' EXPORTING bcset_id = cs_scp1-scprattr-id category = cs_scp1-scprattr-category TABLES it_fldv = cs_scp1-scprfldv. ENDMETHOD. METHOD save. DATA: ls_scp1 TYPE ty_scp1, ls_text TYPE scprtext. * copy everything to local, the function module changes the values ls_scp1 = is_scp1. READ TABLE ls_scp1-scprtext INTO ls_text WITH KEY langu = sy-langu. CALL FUNCTION 'SCPR_TEMPL_MN_TEMPLATE_SAVE' EXPORTING profid = ls_scp1-scprattr-id proftext = ls_text-text category = ls_scp1-scprattr-category cli_dep = ls_scp1-scprattr-cli_dep cli_cas = ls_scp1-scprattr-cli_cas reftype = ls_scp1-scprattr-reftype refname = ls_scp1-scprattr-refname orgid = ls_scp1-scprattr-orgid component = ls_scp1-scprattr-component minrelease = ls_scp1-scprattr-minrelease maxrelease = ls_scp1-scprattr-maxrelease act_info = ls_scp1-scprattr-act_info bcset_type = ls_scp1-scprattr-type fldtxtvar_supplied = 'YES' with_transp_insert = abap_false with_progress_indicator = abap_true remove_denied_data = abap_true ask_for_cont_after_remove = abap_true TABLES values = ls_scp1-scprvals valuesl = ls_scp1-scprvall recattr = ls_scp1-scprreca it_fldv = ls_scp1-scprfldv texts = ls_scp1-scprtext EXCEPTIONS user_abort = 1 error_in_transport_layer = 2 inconsistent_data = 3 database_error = 4 OTHERS = 5. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error saving SCP1, { sy-tabix }| ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~changed_by. SELECT SINGLE modifier INTO rv_user FROM scprattr WHERE id = ms_item-obj_name AND version = 'N'. IF sy-subrc <> 0 OR rv_user IS INITIAL. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~compare_to_remote_version. CREATE OBJECT ro_comparison_result TYPE zcl_abapgit_comparison_null. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_id TYPE scpr_id. lv_id = ms_item-obj_name. enqueue( ). * todo, this gives a popup CALL FUNCTION 'SCPR_CTRL_DELETE' EXPORTING profid = lv_id EXCEPTIONS user_abort = 1 profile_dont_exist = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |error while deleting SCP1, { sy-subrc }| ). ENDIF. dequeue( ). ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: ls_scp1 TYPE ty_scp1. io_xml->read( EXPORTING iv_name = 'SCP1' CHANGING cg_data = ls_scp1 ). adjust_inbound( CHANGING cs_scp1 = ls_scp1 ). IF ls_scp1-scprattr-type = 'TMP'. * todo, function module SCPR_PRSET_MN_BCSET_SAVE zcx_abapgit_exception=>raise( |todo, SCP1| ). ELSE. save( ls_scp1 ). ENDIF. dequeue( ). tadir_insert( iv_package ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_rc TYPE sy-subrc, lv_profid TYPE scprattr-id. lv_profid = ms_item-obj_name. CALL FUNCTION 'SCPR_BCSET_EXISTS' EXPORTING profid = lv_profid IMPORTING rc = lv_rc. rv_bool = boolc( lv_rc = 0 ). ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. METHOD zif_abapgit_object~has_changed_since. rv_changed = abap_true. ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = abap_false. ENDMETHOD. METHOD zif_abapgit_object~jump. DATA: lv_display_only TYPE scpr_txt20, lv_bcset_id TYPE scpr_id. lv_display_only = abap_false. lv_bcset_id = ms_item-obj_name. EXPORT scpr3_display_only = lv_display_only scpr3_bcset_id = lv_bcset_id TO MEMORY ID 'SCPR3_PARAMETER'. SUBMIT scpr3 AND RETURN. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: ls_scp1 TYPE ty_scp1. ls_scp1-scprattr-id = ms_item-obj_name. CALL FUNCTION 'SCPR_DB_ATTR_GET_DETAIL' EXPORTING profid = ls_scp1-scprattr-id IMPORTING proftype = ls_scp1-scprattr-type cli_dep = ls_scp1-scprattr-cli_dep cli_cas = ls_scp1-scprattr-cli_cas reftype = ls_scp1-scprattr-reftype refname = ls_scp1-scprattr-refname component = ls_scp1-scprattr-component minrelease = ls_scp1-scprattr-minrelease maxrelease = ls_scp1-scprattr-maxrelease orgid = ls_scp1-scprattr-orgid act_info = ls_scp1-scprattr-act_info. IF ls_scp1-scprattr-type = 'TMP'. * todo, Hierarchical, fm SCPR_PRSET_DB_SUBP_GET_DETAIL, recursive? zcx_abapgit_exception=>raise( |todo, SCP1| ). ELSE. load( CHANGING cs_scp1 = ls_scp1 ). ENDIF. adjust_outbound( CHANGING cs_scp1 = ls_scp1 ). io_xml->add( iv_name = 'SCP1' ig_data = ls_scp1 ). ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 1416, 79, 16, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 1416, 79, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 629, 1050, 35226, 41876, 629, 1050, 35226, 11, 198, 220, 220, 220, 220, 220, 220, 220, 629, 1050, 5239, 41876, 49053, 9795, 43679, 3963, 629, 1050, 5239, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 629, 1050, 12786, 41876, 49053, 9795, 43679, 3963, 629, 1050, 12786, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 629, 1050, 85, 439, 41876, 49053, 9795, 43679, 3963, 629, 1050, 85, 439, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 629, 1050, 260, 6888, 41876, 49053, 9795, 43679, 3963, 629, 1050, 260, 6888, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 629, 1050, 69, 335, 85, 41876, 49053, 9795, 43679, 3963, 629, 1050, 69, 335, 85, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 1416, 79, 16, 764, 628, 220, 220, 220, 337, 36252, 50, 390, 36560, 764, 198, 220, 220, 220, 337, 36252, 50, 551, 36560, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 3613, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 1416, 79, 16, 41876, 1259, 62, 1416, 79, 16, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 4532, 62, 259, 7784, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 6359, 62, 1416, 79, 16, 41876, 1259, 62, 1416, 79, 16, 764, 198, 220, 220, 220, 337, 36252, 50, 4532, 62, 448, 7784, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 6359, 62, 1416, 79, 16, 41876, 1259, 62, 1416, 79, 16, 764, 198, 220, 220, 220, 337, 36252, 50, 3440, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 6359, 62, 1416, 79, 16, 41876, 1259, 62, 1416, 79, 16, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 1416, 79, 16, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 4532, 62, 259, 7784, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 1416, 1050, 12786, 29, 41876, 629, 1050, 12786, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 1416, 1050, 260, 6888, 29, 41876, 629, 1050, 260, 6888, 13, 198, 198, 9, 736, 284, 5387, 5794, 198, 220, 220, 220, 17579, 3185, 5161, 50115, 62, 1416, 79, 16, 12, 1416, 1050, 12786, 24994, 3528, 15871, 1279, 7278, 62, 1416, 1050, 12786, 28401, 198, 220, 220, 220, 220, 220, 6006, 32297, 1279, 7278, 62, 1416, 1050, 12786, 29, 12, 8344, 17618, 33621, 5550, 28882, 2751, 29125, 4146, 2751, 2272, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 220, 220, 17579, 3185, 5161, 50115, 62, 1416, 79, 16, 12, 1416, 1050, 260, 6888, 24994, 3528, 15871, 1279, 7278, 62, 1416, 1050, 260, 6888, 28401, 198, 220, 220, 220, 220, 220, 6006, 32297, 1279, 7278, 62, 1416, 1050, 260, 6888, 29, 12, 8344, 17618, 33621, 5550, 28882, 2751, 29125, 4146, 2751, 2272, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 4532, 62, 448, 7784, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 1416, 1050, 12786, 29, 41876, 629, 1050, 12786, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 1416, 1050, 260, 6888, 29, 41876, 629, 1050, 260, 6888, 13, 198, 198, 9, 3487, 1096, 262, 23735, 198, 220, 220, 220, 17579, 3185, 5161, 50115, 62, 1416, 79, 16, 12, 1416, 1050, 12786, 24994, 3528, 15871, 1279, 7278, 62, 1416, 1050, 12786, 28401, 198, 220, 220, 220, 220, 220, 7102, 35, 24290, 1279, 7278, 62, 1416, 1050, 12786, 29, 12, 8344, 17618, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 220, 220, 17579, 3185, 5161, 50115, 62, 1416, 79, 16, 12, 1416, 1050, 260, 6888, 24994, 3528, 15871, 1279, 7278, 62, 1416, 1050, 260, 6888, 28401, 198, 220, 220, 220, 220, 220, 7102, 35, 24290, 1279, 7278, 62, 1416, 1050, 260, 6888, 29, 12, 8344, 17618, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 390, 36560, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 312, 41876, 629, 1050, 62, 312, 13, 628, 198, 220, 220, 220, 300, 85, 62, 312, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 6173, 4805, 62, 50, 53, 62, 7206, 48, 8924, 8924, 62, 2749, 28480, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 47125, 2617, 62, 312, 796, 300, 85, 62, 312, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 551, 36560, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
"! Represents a version of a part of an object, including its source code "! and several other attributes like author, request, etc. CLASS zcl_timem_version DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. CONSTANTS: BEGIN OF c_version, latest_db TYPE versno VALUE 0, latest TYPE versno VALUE 99998, active TYPE versno VALUE 99998, modified TYPE versno VALUE 99999, END OF c_version . "! Version number from the VRSD table DATA version_number TYPE versno READ-ONLY . "! Transport request ID DATA request TYPE verskorrno READ-ONLY . "! Task ID (if exists) DATA task TYPE verskorrno READ-ONLY . " Username DATA author TYPE versuser READ-ONLY . " Name of the user (or username if no longer exists) DATA author_name TYPE ad_namtext READ-ONLY . " Date of version DATA date TYPE versdate READ-ONLY . " Time of version DATA time TYPE verstime READ-ONLY . "! Loading source event EVENTS loading_source EXPORTING VALUE(type) TYPE versobjtyp VALUE(name) TYPE versobjnam VALUE(version_number) TYPE versno . "! Takes a line of the VRSD table and fills all the attributes, including "! the source code already with blame information. METHODS constructor IMPORTING !vrsd TYPE vrsd RAISING zcx_timem . "! Returns the version source code including blame information. METHODS get_source RETURNING VALUE(result) TYPE ztimem_line_t RAISING zcx_timem . METHODS retrieve RAISING zcx_timem. PROTECTED SECTION. PRIVATE SECTION. DATA vrsd TYPE vrsd. DATA gt_source TYPE abaptxt255_tab. METHODS load_attributes RAISING zcx_timem. METHODS load_source RAISING zcx_timem. METHODS get_real_version RETURNING VALUE(result) TYPE versno. "! Try to find the object in the request tasks because sometimes the request was created "! by someone who was not the actual developer. The tasks better reflects the object's author. "! If we find a task, we overwrite the author. We choose to pick the latest task. METHODS load_latest_task. ENDCLASS. CLASS ZCL_TIMEM_VERSION IMPLEMENTATION. METHOD constructor. me->vrsd = vrsd. load_attributes( ). load_latest_task( ). ENDMETHOD. METHOD get_real_version. " Technically the current version is 0 but in order to keep them properly sorted we're " setting it to magic number 99997 (because 'ACTIVE' is 99998 and 'MODIFIED' is 99999. " But when we're going to fetch it from the database we must use 0. result = COND #( WHEN me->version_number = c_version-latest THEN 0 ELSE me->version_number ). ENDMETHOD. METHOD get_source. DATA: s_line LIKE LINE OF result. s_line-version_number = me->version_number. s_line-request = me->request. s_line-task = me->task. s_line-author = me->author. s_line-author_name = me->author_name. s_line-date = me->date. s_line-time = me->time. s_line-timestamp = |{ me->date }{ me->time }|. load_source( ). LOOP AT gt_source INTO DATA(source_int). s_line-line_num = sy-tabix. s_line-source = source_int. INSERT s_line INTO TABLE result. ENDLOOP. ENDMETHOD. METHOD load_attributes. me->version_number = vrsd-versno. me->author = vrsd-author. me->date = vrsd-datum. me->time = vrsd-zeit. me->author_name = NEW zcl_timem_author( )->get_name( vrsd-author ). me->request = vrsd-korrnum. ENDMETHOD. METHOD load_latest_task. IF me->request IS INITIAL. RETURN. ENDIF. SELECT e070~trkorr as4user as4date as4time name_textc INTO (me->task, me->author, me->date, me->time, me->author_name) FROM e070 INNER JOIN e071 ON e071~trkorr = e070~trkorr LEFT JOIN user_addr ON user_addr~bname = e070~as4user UP TO 1 ROWS WHERE strkorr = me->request AND object = vrsd-objtype AND obj_name = vrsd-objname ORDER BY as4date DESCENDING as4time DESCENDING. EXIT. ENDSELECT. ENDMETHOD. METHOD load_source. DATA t_trdir TYPE trdir_it. " If already loaded, skip it IF gt_source IS NOT INITIAL. RETURN. ENDIF. RAISE EVENT loading_source EXPORTING type = vrsd-objtype name = vrsd-objname version_number = me->version_number. CALL FUNCTION 'SVRS_GET_REPS_FROM_OBJECT' EXPORTING object_name = vrsd-objname object_type = vrsd-objtype versno = get_real_version( ) TABLES repos_tab = gt_source trdir_tab = t_trdir EXCEPTIONS no_version = 1 OTHERS = 2. IF sy-subrc <> 0. " Ignore errors, just exit. ASSERT 1 = 1. ENDIF. ENDMETHOD. METHOD retrieve. DATA(real_version) = get_real_version( ). SUBMIT rsedtve1 AND RETURN "#EC CI_SUBMIT WITH objtype = vrsd-objtype WITH objname = vrsd-objname WITH versno = real_version. ENDMETHOD. ENDCLASS.
[ 40484, 1432, 6629, 257, 2196, 286, 257, 636, 286, 281, 2134, 11, 1390, 663, 2723, 2438, 198, 40484, 290, 1811, 584, 12608, 588, 1772, 11, 2581, 11, 3503, 13, 198, 31631, 1976, 565, 62, 16514, 368, 62, 9641, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 9641, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3452, 62, 9945, 41876, 1646, 3919, 26173, 8924, 657, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3452, 220, 220, 220, 41876, 1646, 3919, 26173, 8924, 36006, 4089, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4075, 220, 220, 220, 41876, 1646, 3919, 26173, 8924, 36006, 4089, 11, 198, 220, 220, 220, 220, 220, 220, 220, 9518, 220, 41876, 1646, 3919, 26173, 8924, 860, 24214, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 9641, 764, 628, 220, 220, 220, 366, 0, 10628, 1271, 422, 262, 6453, 10305, 3084, 198, 220, 220, 220, 42865, 2196, 62, 17618, 41876, 1646, 3919, 20832, 12, 1340, 11319, 764, 628, 220, 220, 220, 366, 0, 19940, 2581, 4522, 198, 220, 220, 220, 42865, 2581, 41876, 1646, 74, 38890, 3919, 20832, 12, 1340, 11319, 764, 628, 220, 220, 220, 366, 0, 15941, 4522, 357, 361, 7160, 8, 198, 220, 220, 220, 42865, 4876, 41876, 1646, 74, 38890, 3919, 20832, 12, 1340, 11319, 764, 628, 220, 220, 220, 366, 50069, 198, 220, 220, 220, 42865, 1772, 41876, 1646, 7220, 20832, 12, 1340, 11319, 764, 628, 220, 220, 220, 366, 6530, 286, 262, 2836, 357, 273, 20579, 611, 645, 2392, 7160, 8, 198, 220, 220, 220, 42865, 1772, 62, 3672, 41876, 512, 62, 7402, 5239, 20832, 12, 1340, 11319, 764, 628, 220, 220, 220, 366, 7536, 286, 2196, 198, 220, 220, 220, 42865, 3128, 41876, 1646, 4475, 20832, 12, 1340, 11319, 764, 628, 220, 220, 220, 366, 3862, 286, 2196, 198, 220, 220, 220, 42865, 640, 41876, 3326, 301, 524, 20832, 12, 1340, 11319, 764, 628, 220, 220, 220, 366, 0, 12320, 2723, 1785, 198, 220, 220, 220, 22399, 11046, 62, 10459, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 4906, 8, 41876, 3326, 568, 50007, 28004, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3672, 8, 41876, 3326, 568, 50007, 7402, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 9641, 62, 17618, 8, 41876, 1646, 3919, 764, 628, 220, 220, 220, 366, 0, 33687, 257, 1627, 286, 262, 6453, 10305, 3084, 290, 23816, 477, 262, 12608, 11, 1390, 198, 220, 220, 220, 366, 0, 262, 2723, 2438, 1541, 351, 8138, 1321, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 85, 3808, 67, 41876, 410, 3808, 67, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 16514, 368, 764, 628, 220, 220, 220, 366, 0, 16409, 262, 2196, 2723, 2438, 1390, 8138, 1321, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 10459, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 1976, 16514, 368, 62, 1370, 62, 83, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 16514, 368, 764, 628, 220, 220, 220, 337, 36252, 50, 19818, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 16514, 368, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 410, 3808, 67, 41876, 410, 3808, 67, 13, 198, 220, 220, 220, 42865, 308, 83, 62, 10459, 41876, 450, 2373, 742, 13381, 62, 8658, 13, 628, 220, 220, 220, 337, 36252, 50, 3440, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 1976, 66, 87, 62, 16514, 368, 13, 628, 220, 220, 220, 337, 36252, 50, 3440, 62, 10459, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 1976, 66, 87, 62, 16514, 368, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 5305, 62, 9641, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 1646, 3919, 13, 628, 220, 220, 220, 366, 0, 9993, 284, 1064, 262, 2134, 287, 262, 2581, 8861, 780, 3360, 262, 2581, 373, 2727, 198, 220, 220, 220, 366, 0, 416, 2130, 508, 373, 407, 262, 4036, 8517, 13, 383, 8861, 1365, 12497, 262, 2134, 338, 1772, 13, 198, 220, 220, 220, 366, 0, 1002, 356, 1064, 257, 4876, 11, 356, 49312, 262, 1772, 13, 775, 3853, 284, 2298, 262, 3452, 4876, 13, 198, 220, 220, 220, 337, 36252, 50, 3440, 62, 42861, 62, 35943, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 51, 3955, 3620, 62, 43717, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 502, 3784, 85, 3808, 67, 796, 410, 3808, 67, 13, 198, 220, 220, 220, 3440, 62, 1078, 7657, 7, 6739, 198, 220, 220, 220, 3440, 62, 42861, 62, 35943, 7, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 5305, 62, 9641, 13, 198, 220, 220, 220, 366, 5429, 1146, 262, 1459, 2196, 318, 657, 475, 287, 1502, 284, 1394, 606, 6105, 23243, 356, 821, 198, 220, 220, 220, 366, 4634, 340, 284, 5536, 1271, 36006, 5607, 357, 13893, 705, 10659, 9306, 6, 318, 36006, 4089, 290, 705, 33365, 28343, 6, 318, 860, 24214, 13, 198, 220, 220, 220, 366, 887, 618, 356, 821, 1016, 284, 21207, 340, 422, 262, 6831, 356, 1276, 779, 657, 13, 198, 220, 220, 220, 1255, 796, 7102, 35, 1303, 7, 42099, 502, 3784, 9641, 62, 17618, 796, 269, 62, 9641, 12, 42861, 42243, 657, 198, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_persistence_user DEFINITION PUBLIC CREATE PRIVATE . PUBLIC SECTION. INTERFACES zif_abapgit_persist_user . TYPES tt_favorites TYPE zif_abapgit_persistence=>tt_repo_keys . CLASS-METHODS get_instance IMPORTING !iv_user TYPE xubname DEFAULT sy-uname RETURNING VALUE(ri_user) TYPE REF TO zif_abapgit_persist_user . PRIVATE SECTION. TYPES: BEGIN OF ty_repo_config, url TYPE zif_abapgit_persistence=>ty_repo-url, login TYPE string, git_user TYPE zif_abapgit_definitions=>ty_git_user, last_change_seen TYPE string, END OF ty_repo_config . TYPES: ty_repo_config_tt TYPE STANDARD TABLE OF ty_repo_config WITH DEFAULT KEY . TYPES: BEGIN OF ty_user, default_git_user TYPE zif_abapgit_definitions=>ty_git_user, repo_show TYPE zif_abapgit_persistence=>ty_repo-key, hide_files TYPE abap_bool, changes_only TYPE abap_bool, diff_unified TYPE abap_bool, favorites TYPE tt_favorites, repo_config TYPE ty_repo_config_tt, settings TYPE zif_abapgit_definitions=>ty_s_user_settings, END OF ty_user . DATA mv_user TYPE xubname . CLASS-DATA gi_current_user TYPE REF TO zif_abapgit_persist_user . METHODS constructor IMPORTING !iv_user TYPE xubname DEFAULT sy-uname . METHODS from_xml IMPORTING !iv_xml TYPE string RETURNING VALUE(rs_user) TYPE ty_user RAISING zcx_abapgit_exception . METHODS read RETURNING VALUE(rs_user) TYPE ty_user RAISING zcx_abapgit_exception . METHODS read_repo_config IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url RETURNING VALUE(rs_repo_config) TYPE ty_repo_config RAISING zcx_abapgit_exception . METHODS to_xml IMPORTING !is_user TYPE ty_user RETURNING VALUE(rv_xml) TYPE string . METHODS update IMPORTING !is_user TYPE ty_user RAISING zcx_abapgit_exception . METHODS update_repo_config IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url !is_repo_config TYPE ty_repo_config RAISING zcx_abapgit_exception . ENDCLASS. CLASS ZCL_ABAPGIT_PERSISTENCE_USER IMPLEMENTATION. METHOD constructor. mv_user = iv_user. ENDMETHOD. METHOD from_xml. DATA: lv_xml TYPE string. lv_xml = iv_xml. * fix downward compatibility REPLACE ALL OCCURRENCES OF '<_--28C_TYPE_USER_--29>' IN lv_xml WITH '<USER>'. REPLACE ALL OCCURRENCES OF '</_--28C_TYPE_USER_--29>' IN lv_xml WITH '</USER>'. CALL TRANSFORMATION id OPTIONS value_handling = 'accept_data_loss' SOURCE XML lv_xml RESULT user = rs_user ##NO_TEXT. ENDMETHOD. METHOD get_instance. IF iv_user = sy-uname ##USER_OK. IF gi_current_user IS NOT BOUND. CREATE OBJECT gi_current_user TYPE zcl_abapgit_persistence_user. ENDIF. ri_user = gi_current_user. ELSE. CREATE OBJECT ri_user TYPE zcl_abapgit_persistence_user EXPORTING iv_user = iv_user. ENDIF. ENDMETHOD. METHOD read. DATA: lv_xml TYPE string. TRY. lv_xml = zcl_abapgit_persistence_db=>get_instance( )->read( iv_type = zcl_abapgit_persistence_db=>c_type_user iv_value = mv_user ). CATCH zcx_abapgit_not_found. RETURN. ENDTRY. rs_user = from_xml( lv_xml ). ENDMETHOD. METHOD read_repo_config. DATA: lt_repo_config TYPE ty_repo_config_tt, lv_key TYPE string. lv_key = to_lower( iv_url ). lt_repo_config = read( )-repo_config. READ TABLE lt_repo_config INTO rs_repo_config WITH KEY url = lv_key. ENDMETHOD. "read_repo_config METHOD to_xml. CALL TRANSFORMATION id SOURCE user = is_user RESULT XML rv_xml. ENDMETHOD. METHOD update. DATA: lv_xml TYPE string. lv_xml = to_xml( is_user ). zcl_abapgit_persistence_db=>get_instance( )->modify( iv_type = zcl_abapgit_persistence_db=>c_type_user iv_value = mv_user iv_data = lv_xml ). ENDMETHOD. METHOD update_repo_config. DATA: ls_user TYPE ty_user, lv_key TYPE string. FIELD-SYMBOLS <ls_repo_config> TYPE ty_repo_config. ls_user = read( ). lv_key = to_lower( iv_url ). READ TABLE ls_user-repo_config ASSIGNING <ls_repo_config> WITH KEY url = lv_key. IF sy-subrc IS NOT INITIAL. APPEND INITIAL LINE TO ls_user-repo_config ASSIGNING <ls_repo_config>. ENDIF. <ls_repo_config> = is_repo_config. <ls_repo_config>-url = lv_key. update( ls_user ). COMMIT WORK AND WAIT. ENDMETHOD. "update_repo_config METHOD zif_abapgit_persist_user~get_changes_only. rv_changes_only = read( )-changes_only. ENDMETHOD. METHOD zif_abapgit_persist_user~get_default_git_user_email. rv_email = read( )-default_git_user-email. ENDMETHOD. METHOD zif_abapgit_persist_user~get_default_git_user_name. rv_username = read( )-default_git_user-name. ENDMETHOD. METHOD zif_abapgit_persist_user~get_diff_unified. rv_diff_unified = read( )-diff_unified. ENDMETHOD. METHOD zif_abapgit_persist_user~get_favorites. rt_favorites = read( )-favorites. ENDMETHOD. METHOD zif_abapgit_persist_user~get_hide_files. rv_hide = read( )-hide_files. ENDMETHOD. METHOD zif_abapgit_persist_user~get_repo_git_user_email. rv_email = read_repo_config( iv_url )-git_user-email. ENDMETHOD. METHOD zif_abapgit_persist_user~get_repo_git_user_name. rv_username = read_repo_config( iv_url )-git_user-name. ENDMETHOD. METHOD zif_abapgit_persist_user~get_repo_last_change_seen. rv_version = read_repo_config( iv_url )-last_change_seen. ENDMETHOD. METHOD zif_abapgit_persist_user~get_repo_login. rv_login = read_repo_config( iv_url )-login. ENDMETHOD. METHOD zif_abapgit_persist_user~get_repo_show. rv_key = read( )-repo_show. ENDMETHOD. METHOD zif_abapgit_persist_user~get_settings. DATA: ls_user TYPE ty_user. ls_user = read( ). rs_user_settings = ls_user-settings. ENDMETHOD. METHOD zif_abapgit_persist_user~is_favorite_repo. DATA: lt_favorites TYPE tt_favorites. lt_favorites = zif_abapgit_persist_user~get_favorites( ). READ TABLE lt_favorites TRANSPORTING NO FIELDS WITH KEY table_line = iv_repo_key. rv_yes = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_persist_user~set_default_git_user_email. DATA: ls_user TYPE ty_user. ls_user = read( ). ls_user-default_git_user-email = iv_email. update( ls_user ). ENDMETHOD. METHOD zif_abapgit_persist_user~set_default_git_user_name. DATA: ls_user TYPE ty_user. ls_user = read( ). ls_user-default_git_user-name = iv_username. update( ls_user ). ENDMETHOD. METHOD zif_abapgit_persist_user~set_repo_git_user_email. DATA: ls_repo_config TYPE ty_repo_config. ls_repo_config = read_repo_config( iv_url ). ls_repo_config-git_user-email = iv_email. update_repo_config( iv_url = iv_url is_repo_config = ls_repo_config ). ENDMETHOD. METHOD zif_abapgit_persist_user~set_repo_git_user_name. DATA: ls_repo_config TYPE ty_repo_config. ls_repo_config = read_repo_config( iv_url ). ls_repo_config-git_user-name = iv_username. update_repo_config( iv_url = iv_url is_repo_config = ls_repo_config ). ENDMETHOD. METHOD zif_abapgit_persist_user~set_repo_last_change_seen. DATA: ls_repo_config TYPE ty_repo_config. ls_repo_config = read_repo_config( iv_url ). ls_repo_config-last_change_seen = iv_version. update_repo_config( iv_url = iv_url is_repo_config = ls_repo_config ). ENDMETHOD. METHOD zif_abapgit_persist_user~set_repo_login. DATA: ls_repo_config TYPE ty_repo_config. ls_repo_config = read_repo_config( iv_url ). ls_repo_config-login = iv_login. update_repo_config( iv_url = iv_url is_repo_config = ls_repo_config ). ENDMETHOD. METHOD zif_abapgit_persist_user~set_repo_show. DATA: ls_user TYPE ty_user. ls_user = read( ). ls_user-repo_show = iv_key. update( ls_user ). COMMIT WORK AND WAIT. ENDMETHOD. METHOD zif_abapgit_persist_user~set_settings. DATA: ls_user TYPE ty_user. ls_user = read( ). ls_user-settings = is_user_settings. update( ls_user ). ENDMETHOD. METHOD zif_abapgit_persist_user~toggle_changes_only. DATA ls_user TYPE ty_user. ls_user = read( ). ls_user-changes_only = boolc( ls_user-changes_only = abap_false ). update( ls_user ). rv_changes_only = ls_user-changes_only. ENDMETHOD. METHOD zif_abapgit_persist_user~toggle_diff_unified. DATA ls_user TYPE ty_user. ls_user = read( ). ls_user-diff_unified = boolc( ls_user-diff_unified = abap_false ). update( ls_user ). rv_diff_unified = ls_user-diff_unified. ENDMETHOD. METHOD zif_abapgit_persist_user~toggle_favorite. DATA: ls_user TYPE ty_user. ls_user = read( ). READ TABLE ls_user-favorites TRANSPORTING NO FIELDS WITH KEY table_line = iv_repo_key. IF sy-subrc = 0. DELETE ls_user-favorites INDEX sy-tabix. ELSE. APPEND iv_repo_key TO ls_user-favorites. ENDIF. update( ls_user ). COMMIT WORK AND WAIT. ENDMETHOD. METHOD zif_abapgit_persist_user~toggle_hide_files. DATA ls_user TYPE ty_user. ls_user = read( ). ls_user-hide_files = boolc( ls_user-hide_files = abap_false ). update( ls_user ). rv_hide = ls_user-hide_files. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 19276, 13274, 62, 7220, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 4810, 3824, 6158, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 19276, 396, 62, 7220, 764, 628, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 69, 5570, 2737, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 926, 62, 260, 7501, 62, 13083, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 651, 62, 39098, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 7220, 220, 220, 220, 220, 220, 220, 41876, 2124, 549, 3672, 5550, 38865, 827, 12, 403, 480, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 7220, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 19276, 396, 62, 7220, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 260, 7501, 62, 11250, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19016, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 6371, 11, 198, 220, 220, 220, 220, 220, 220, 220, 17594, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 17606, 62, 7220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 18300, 62, 7220, 11, 198, 220, 220, 220, 220, 220, 220, 220, 938, 62, 3803, 62, 15898, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 260, 7501, 62, 11250, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 260, 7501, 62, 11250, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 260, 7501, 62, 11250, 13315, 5550, 38865, 35374, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 7220, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4277, 62, 18300, 62, 7220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 18300, 62, 7220, 11, 198, 220, 220, 220, 220, 220, 220, 220, 29924, 62, 12860, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 11, 198, 220, 220, 220, 220, 220, 220, 220, 7808, 62, 16624, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2458, 62, 8807, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 814, 62, 403, 1431, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 18852, 220, 220, 220, 220, 220, 220, 220, 41876, 256, 83, 62, 69, 5570, 2737, 11, 198, 220, 220, 220, 220, 220, 220, 220, 29924, 62, 11250, 220, 220, 220, 220, 220, 41876, 1259, 62, 260, 7501, 62, 11250, 62, 926, 11, 198, 220, 220, 220, 220, 220, 220, 220, 6460, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 82, 62, 7220, 62, 33692, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 7220, 764, 628, 220, 220, 220, 42865, 285, 85, 62, 7220, 41876, 2124, 549, 3672, 764, 198, 220, 220, 220, 42715, 12, 26947, 308, 72, 62, 14421, 62, 7220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 19276, 396, 62, 7220, 764, 628, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 7220, 41876, 2124, 549, 3672, 5550, 38865, 827, 12, 403, 480, 764, 198, 220, 220, 220, 337, 36252, 50, 422, 62, 19875, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 19875, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 7220, 8, 41876, 1259, 62, 7220, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 1100, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 7220, 8, 41876, 1259, 62, 7220, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 1100, 62, 260, 7501, 62, 11250, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 6371, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 260, 7501, 62, 11250, 8, 41876, 1259, 62, 260, 7501, 62, 11250, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 284, 62, 19875, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 7220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZCL_GUIDRASIL_CONTROL_ALV definition public inheriting from ZCL_GUIDRASIL_CONTROL_BASE final create public . *"* public components of class ZCL_GUIDRASIL_CONTROL_ALV *"* do not include other source files here!!! public section. methods APPLY_SETTINGS redefinition . methods CREATE redefinition . methods LOAD_SETTINGS redefinition . methods PROVIDE_CONTROL_NAME redefinition . methods PROVIDE_TOOLBAR redefinition . methods RETURN_CREATION_CODE redefinition . methods SAVE_SETTINGS redefinition . methods VIEW_ATTRIBUTES redefinition . methods ZIF_GUIDRASIL_FUNC_RECEIVER~ON_DROPDOWN_CLICKED redefinition . methods ZIF_GUIDRASIL_FUNC_RECEIVER~ON_FUNCTION_SELECTED redefinition . methods GET_DESIGN_FUNCTIONS redefinition . protected section. *"* protected components of class ZCL_GUIDRASIL_CONTROL_ALV *"* do not include other source files here!!! methods HANDLE_DOUBLE_CLICK for event DOUBLE_CLICK of CL_GUI_ALV_GRID importing !E_ROW !E_COLUMN !ES_ROW_NO . private section. data: *"* private components of class ZCL_GUIDRASIL_CONTROL_ALV *"* do not include other source files here!!! gt_alv_dummy TYPE STANDARD TABLE OF icon . data C_FUNCTION_STRUCTURE type UI_FUNC value 'FUNCTN_GRID_STRUCTURE' ##NO_TEXT. data C_FUNCTION_TOOLBAR type UI_FUNC value 'FUNCTN_GRID_TOOLBAR' ##NO_TEXT. data MS_SETTINGS type ZGUIDRASIL_SETTING_GRID . data MR_ALV type ref to CL_GUI_ALV_GRID . data MR_PARENT type ref to CL_GUI_CONTAINER . data C_FUNCTION_NO_TOOLBAR type UI_FUNC value 'Layout_No_Toolbar' ##NO_TEXT. data C_FUNCTION_NO_HEADERS type UI_FUNC value 'Layout_No_Headers' ##NO_TEXT. data C_FUNCTION_SMALLTITLE type UI_FUNC value 'Layout_Small_Title' ##NO_TEXT. ENDCLASS. CLASS ZCL_GUIDRASIL_CONTROL_ALV IMPLEMENTATION. METHOD apply_settings. DATA ls_layout TYPE lvc_s_layo. FIELD-SYMBOLS <data> TYPE STANDARD TABLE. CREATE DATA md_data TYPE STANDARD TABLE OF (ms_settings-structure_name). ASSIGN md_data->* TO <data>. IF mr_alv IS BOUND. mr_alv->free( ). FREE mr_alv. ENDIF. TRY . "Try to get some sample data SELECT * FROM (ms_settings-structure_name) INTO TABLE <data> UP TO 40 ROWS. CATCH cx_root INTO DATA(lx_root). MESSAGE lx_root TYPE 'S'. ENDTRY. "Grid must be created anew if structure changed CREATE OBJECT mr_alv EXPORTING i_parent = mr_parent i_appl_events = space. CALL METHOD mr_alv->set_table_for_first_display EXPORTING i_structure_name = ms_settings-structure_name CHANGING it_outtab = <data> EXCEPTIONS OTHERS = 4. IF ms_settings-fcat IS NOT INITIAL OR ms_settings-sort IS NOT INITIAL. IF ms_settings-fcat IS NOT INITIAL. mr_alv->set_frontend_fieldcatalog( it_fieldcatalog = ms_settings-fcat ). ENDIF. IF ms_settings-sort IS NOT INITIAL. mr_alv->set_sort_criteria( it_sort = ms_settings-sort ). ENDIF. * mr_alv->refresh_table_display( ). ENDIF. mr_alv->get_frontend_layout( IMPORTING es_layout = ls_layout ). ls_layout-no_toolbar = ms_settings-no_toolbar. ls_layout-no_headers = ms_settings-no_headers. ls_layout-smalltitle = ms_settings-smalltitle. mr_alv->set_frontend_layout( ls_layout ). mr_alv->refresh_table_display( ). * DATA lt_events TYPE cntl_simple_events. * DATA ls_event TYPE cntl_simple_event. * mr_alv->get_registered_events( IMPORTING events = lt_events ). * * SET HANDLER handle_double_click FOR mr_alv. ENDMETHOD. METHOD create. IF iv_name IS INITIAL. gv_control_name = zcl_guidrasil_builder=>init_control_name( iv_text = 'GRID' ). ELSE. gv_control_name = iv_name. ENDIF. mv_parent_container_name = iv_parent. IF ms_settings-structure_name IS INITIAL. ms_settings-structure_name = 'ICON'. ENDIF. er_control ?= mr_alv. gr_control = mr_alv. mr_parent = ir_parent. apply_settings( ). * DATA lt_events TYPE cntl_simple_events. * DATA ls_event TYPE cntl_simple_event. * mr_alv->get_registered_events( IMPORTING events = lt_events ). SET HANDLER handle_double_click FOR mr_alv. APPEND 'GRID_DOUBLE_CLICK' TO gt_events. ENDMETHOD. METHOD get_design_functions. DATA lx_menu TYPE REF TO cl_ctmenu. "ew DATA lv_text TYPE gui_text. "ew DATA ls_funcmenu TYPE stb_btnmnu. "ew DATA ls_function TYPE stb_button. CREATE OBJECT lx_menu. ls_function-icon = icon_active_inactive. ls_function-butn_type = cntb_id_dropmenu. ls_function-function = c_function_no_toolbar. ls_function-text = 'Hide toolbar'. ls_function-quickinfo = 'Do not show toolbar'. APPEND ls_function TO et_functions. ls_function-function = c_function_no_headers. ls_function-text = 'Hide headers'. ls_function-quickinfo = 'Do not show column headers'. APPEND ls_function TO et_functions. ls_function-function = c_function_smalltitle. ls_function-text = 'Small title'. ls_function-quickinfo = 'Use small title'. APPEND ls_function TO et_functions. ls_funcmenu-function = '$CTRLFUNC'. ls_funcmenu-ctmenu = lx_menu. APPEND ls_funcmenu TO et_funcmenus. ENDMETHOD. METHOD HANDLE_DOUBLE_CLICK. * E_ROW Type LVC_S_ROW * E_COLUMN Type LVC_S_COL * ES_ROW_NO Type LVC_S_ROID FIELD-SYMBOLS <table> TYPE STANDARD TABLE. FIELD-SYMBOLS <line> TYPE any. ASSIGN md_data->* TO <table>. MESSAGE |{ gv_control_name }{ text-idc } row: { e_row-index } column: { e_column-fieldname }| type 'I'. ENDMETHOD. METHOD LOAD_SETTINGS. load( CHANGING cs_settings = ms_settings ). ENDMETHOD. METHOD PROVIDE_CONTROL_NAME. ev_name = 'ALVGRID'. ev_desc = 'ALV-Grid'(alv). ev_icon = icon_list. ENDMETHOD. METHOD PROVIDE_TOOLBAR. * DATA lv_text TYPE text40. * lv_text = gv_enhema_name. * * * CALL METHOD cr_toolbar->add_button * EXPORTING * fcode = '$NAME' * icon = icon_interface * butn_type = cntb_btype_button * text = lv_text * quickinfo = 'Name of control' * is_checked = space * EXCEPTIONS * OTHERS = 4. ENDMETHOD. METHOD return_creation_code. no_code = abap_false. DATA lv_string TYPE string. lv_string = | DATA lt_data TYPE STANDARD TABLE OF { ms_settings-structure_name }.|. APPEND lv_string TO data. lv_string = |SELECT * FROM { ms_settings-structure_name } INTO TABLE gt_data.|. APPEND lv_string TO code. APPEND 'CREATE OBJECT mr_$control' TO code. APPEND ' EXPORTING' TO code. APPEND ' i_parent = $parent' TO code. APPEND ' i_appl_events = space.' TO code. APPEND 'mr_$control->set_table_for_first_display(' TO code. APPEND | EXPORTING i_structure_name = { ms_settings-structure_name }| TO code. APPEND ' CHANGING it_outtab = <data>' TO code. APPEND ' EXCEPTIONS OTHERS = 4. )' TO code. * IF ms_settings-fcat IS NOT INITIAL OR * ms_settings-sort IS NOT INITIAL. * * IF ms_settings-fcat IS NOT INITIAL. * mr_alv->set_frontend_fieldcatalog( it_fieldcatalog = ms_settings-fcat ). * ENDIF. * IF ms_settings-sort IS NOT INITIAL. * mr_alv->set_sort_criteria( it_sort = ms_settings-sort ). * ENDIF. ** mr_alv->refresh_table_display( ). * ENDIF. * * mr_alv->get_frontend_layout( IMPORTING es_layout = ls_layout ). * ls_layout-no_toolbar = ms_settings-no_toolbar. * ls_layout-no_headers = ms_settings-no_headers. * ls_layout-smalltitle = ms_settings-smalltitle. * mr_alv->set_frontend_layout( ls_layout ). * mr_alv->refresh_table_display( ). ENDMETHOD. METHOD SAVE_SETTINGS. save( ms_settings ). ENDMETHOD. METHOD view_attributes. CALL FUNCTION 'Z_GUIDRASIL_CONTROL_ALV_POPUP' CHANGING cs_settings = ms_settings EXCEPTIONS operation_cancelled = 1. CHECK sy-subrc = 0. apply_settings( ). ENDMETHOD. METHOD ZIF_GUIDRASIL_FUNC_RECEIVER~ON_DROPDOWN_CLICKED. DATA lr_grid TYPE REF TO cl_gui_alv_grid. DATA lv_disabled TYPE cua_active. DATA lv_checked TYPE cua_active. DATA lv_text TYPE gui_text. DATA lx_menu TYPE REF TO cl_ctmenu. DATA lv_flag TYPE i. DATA ls_layout TYPE lvc_s_layo. * data: Begin of checked, * no_toolbar type rm_boolean, * no_headers type rm_boolean, * smalltitle type rm_booelean, * end of checked. * CHECK r_receiver = me. lr_grid ?= gr_control. CASE fcode. WHEN '$CTRLFUNC'. CREATE OBJECT lx_menu. * lr_grid->get_frontend_layout( IMPORTING es_layout = ls_layout ). " Struktur lv_text = 'Struktur'(str). CALL METHOD lx_menu->add_function EXPORTING fcode = c_function_structure disabled = lv_disabled checked = lv_checked text = lv_text. "#EC NOTEXT lx_menu->add_function( fcode = c_function_no_toolbar disabled = space checked = ms_settings-no_toolbar text = 'Hide toolbar' ). "#EC NOTEXT lx_menu->add_function( fcode = c_function_no_headers disabled = space checked = ms_settings-no_headers text = 'Hide column headers' ). "#EC NOTEXT lx_menu->add_function( fcode = c_function_smalltitle disabled = space checked = ms_settings-smalltitle text = 'Use small title' ). "#EC NOTEXT r_toolbar->track_context_menu( context_menu = lx_menu posx = posx posy = posy ). ENDCASE. ENDMETHOD. METHOD zif_guidrasil_func_receiver~on_function_selected. CHECK r_receiver = me. CASE fcode. WHEN c_function_structure. WHEN c_function_no_toolbar. ms_settings-no_toolbar = zcl_guidrasil_tools=>switch_bool( ms_settings-no_toolbar ). apply_settings( ). WHEN c_function_no_headers. ms_settings-no_headers = zcl_guidrasil_tools=>switch_bool( ms_settings-no_headers ). apply_settings( ). WHEN c_function_smalltitle. ms_settings-smalltitle = zcl_guidrasil_tools=>switch_bool( ms_settings-smalltitle ). apply_settings( ). ENDCASE. cl_gui_cfw=>flush( ). ENDMETHOD. ENDCLASS.
[ 4871, 1168, 5097, 62, 38, 27586, 49, 1921, 4146, 62, 10943, 5446, 3535, 62, 1847, 53, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1168, 5097, 62, 38, 27586, 49, 1921, 4146, 62, 10943, 5446, 3535, 62, 33, 11159, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 38, 27586, 49, 1921, 4146, 62, 10943, 5446, 3535, 62, 1847, 53, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 11377, 2665, 13, 628, 220, 5050, 3486, 6489, 56, 62, 28480, 51, 20754, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 29244, 6158, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 17579, 2885, 62, 28480, 51, 20754, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 36592, 14114, 62, 10943, 5446, 3535, 62, 20608, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 36592, 14114, 62, 10468, 3535, 33, 1503, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 30826, 27064, 62, 43387, 6234, 62, 34, 16820, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 14719, 6089, 62, 28480, 51, 20754, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 49880, 62, 1404, 5446, 9865, 3843, 1546, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 1168, 5064, 62, 38, 27586, 49, 1921, 4146, 62, 42296, 34, 62, 2200, 5222, 38757, 93, 1340, 62, 7707, 3185, 41925, 62, 5097, 11860, 1961, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 1168, 5064, 62, 38, 27586, 49, 1921, 4146, 62, 42296, 34, 62, 2200, 5222, 38757, 93, 1340, 62, 42296, 4177, 2849, 62, 46506, 1961, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 17151, 62, 30910, 16284, 62, 42296, 4177, 11053, 198, 220, 220, 220, 34087, 17750, 764, 198, 24326, 2665, 13, 198, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 5097, 62, 38, 27586, 49, 1921, 4146, 62, 10943, 5446, 3535, 62, 1847, 53, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 5050, 367, 6981, 2538, 62, 35, 2606, 19146, 62, 5097, 11860, 198, 220, 220, 220, 329, 1785, 360, 2606, 19146, 62, 5097, 11860, 286, 7852, 62, 40156, 62, 1847, 53, 62, 10761, 2389, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 49, 3913, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 25154, 5883, 45, 198, 220, 220, 220, 220, 220, 5145, 1546, 62, 49, 3913, 62, 15285, 764, 198, 19734, 2665, 13, 628, 220, 1366, 25, 198, 9, 1, 9, 2839, 6805, 286, 1398, 1168, 5097, 62, 38, 27586, 49, 1921, 4146, 62, 10943, 5446, 3535, 62, 1847, 53, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 220, 220, 308, 83, 62, 282, 85, 62, 67, 13513, 41876, 49053, 9795, 43679, 3963, 7196, 764, 198, 220, 1366, 327, 62, 42296, 4177, 2849, 62, 46126, 11335, 2099, 12454, 62, 42296, 34, 1988, 705, 42296, 4177, 45, 62, 10761, 2389, 62, 46126, 11335, 6, 22492, 15285, 62, 32541, 13, 198, 220, 1366, 327, 62, 42296, 4177, 2849, 62, 10468, 3535, 33, 1503, 2099, 12454, 62, 42296, 34, 1988, 705, 42296, 4177, 45, 62, 10761, 2389, 62, 10468, 3535, 33, 1503, 6, 22492, 15285, 62, 32541, 13, 198, 220, 1366, 6579, 62, 28480, 51, 20754, 2099, 1168, 38, 27586, 49, 1921, 4146, 62, 28480, 48996, 62, 10761, 2389, 764, 198, 220, 1366, 17242, 62, 1847, 53, 2099, 1006, 284, 7852, 62, 40156, 62, 1847, 53, 62, 10761, 2389, 764, 198, 220, 1366, 17242, 62, 27082, 3525, 2099, 1006, 284, 7852, 62, 40156, 62, 10943, 30339, 1137, 764, 198, 220, 1366, 327, 62, 42296, 4177, 2849, 62, 15285, 62, 10468, 3535, 33, 1503, 2099, 12454, 62, 42296, 34, 1988, 705, 32517, 62, 2949, 62, 25391, 5657, 6, 22492, 15285, 62, 32541, 13, 198, 220, 1366, 327, 62, 42296, 4177, 2849, 62, 15285, 62, 37682, 4877, 2099, 12454, 62, 42296, 34, 1988, 705, 32517, 62, 2949, 62, 13847, 364, 6, 22492, 15285, 62, 32541, 13, 198, 220, 1366, 327, 62, 42296, 4177, 2849, 62, 12310, 7036, 49560, 2538, 2099, 12454, 62, 42296, 34, 1988, 705, 32517, 62, 18712, 62, 19160, 6, 22492, 15285, 62, 32541, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 38, 27586, 49, 1921, 4146, 62, 10943, 5446, 3535, 62, 1847, 53, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 4174, 62, 33692, 13, 628, 220, 220, 220, 42865, 43979, 62, 39786, 41876, 300, 28435, 62, 82, 62, 10724, 78, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 1279, 7890, 29, 41876, 49053, 9795, 43679, 13, 628, 220, 220, 220, 29244, 6158, 42865, 45243, 62, 7890, 41876, 49053, 9795, 43679, 3963, 357, 907, 62, 33692, 12, 301, 5620, 62, 3672, 737, 198, 220, 220, 220, 24994, 16284, 45243, 62, 7890, 3784, 9, 5390, 1279, 7890, 28401, 628, 220, 220, 220, 16876, 285, 81, 62, 282, 85, 3180, 347, 15919, 13, 198, 220, 220, 220, 220, 220, 285, 81, 62, 282, 85, 3784, 5787, 7, 6739, 198, 220, 220, 220, 220, 220, 17189, 285, 81, 62, 282, 85, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 7579, 56, 764, 198, 220, 220, 220, 220, 220, 220, 220, 366, 23433, 284, 651, 617, 6291, 1366, 198, 220, 220, 220, 220, 220, 220, 220, 33493, 1635, 16034, 357, 907, 62, 33692, 12, 301, 5620, 62, 3672, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 39319, 43679, 1279, 7890, 29, 15958, 5390, 2319, 371, 22845, 13, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 15763, 39319, 42865, 7, 75, 87, 62, 15763, 737, 198, 220, 220, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 300, 87, 62, 15763, 41876, 705, 50, 4458, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 220, 220, 366, 41339, 1276, 307, 2727, 44951, 611, 4645, 3421, 198, 220, 220, 220, 29244, 6158, 25334, 23680,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZCL_BUG_ALVTREE_CTRL definition public final create public . public section. *"* public components of class ZCL_BUG_ALVTREE_CTRL *"* do not include other source files here!!! methods CONSTRUCTOR importing !CONTAINER type ref to CL_GUI_CONTAINER !BUG type ref to ZCL_BUG . methods DISPLAY . protected section. *"* protected components of class ZCL_BUG_ALVTREE_CTRL *"* do not include other source files here!!! private section. *"* private components of class ZCL_BUG_ALVTREE_CTRL *"* do not include other source files here!!! data ALV_TREE type ref to CL_SALV_TREE . data BUG_HIERARCHY type ZBT_BUGHIEARCHY_TREE_TBL . data O_BUG type ref to ZCL_BUG . data ALV_TREE_EVENTS type ref to CL_SALV_EVENTS_TREE . class CL_GUI_COLUMN_TREE definition load . methods ADD_NODE importing value(DATA) type ZBT_BUGHIEARCHY_TREE_STR !RELATIONSHIP type SALV_DE_NODE_RELATION default CL_GUI_COLUMN_TREE=>RELAT_LAST_CHILD !RELATNODE type SALV_DE_NODE_KEY returning value(NODE) type ref to CL_SALV_NODE . methods BUILD_TREE importing !BUG type ref to ZCL_BUG value(NODE_KEY) type SALV_DE_NODE_KEY optional . methods BUILD_HEADER . methods BUILD_COLS . methods DOUBLE_CLICK for event DOUBLE_CLICK of CL_SALV_EVENTS_TREE importing !NODE_KEY !COLUMNNAME . ENDCLASS. CLASS ZCL_BUG_ALVTREE_CTRL IMPLEMENTATION. METHOD add_node. DATA: lo_nodes TYPE REF TO cl_salv_nodes, l_icon TYPE salv_de_tree_image, l_text TYPE lvc_value. lo_nodes = alv_tree->get_nodes( ). CALL METHOD lo_nodes->add_node EXPORTING related_node = relatnode relationship = relationship data_row = data RECEIVING node = node. l_text = data-bug_id. CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = l_text IMPORTING output = l_text. node->set_text( l_text ). CALL FUNCTION 'ICON_CREATE' EXPORTING name = data-estado_icon info = data-estado IMPORTING result = l_icon. node->set_collapsed_icon( l_icon ). node->set_expanded_icon( l_icon ). ENDMETHOD. METHOD build_cols. DATA: lo_cols TYPE REF TO cl_salv_columns_tree, lo_col TYPE REF TO cl_salv_column. lo_cols = alv_tree->get_columns( ). lo_cols->set_optimize( abap_true ). TRY. lo_col = lo_cols->get_column( 'BUG_ID' ). lo_col->set_technical( if_salv_c_bool_sap=>true ). lo_col = lo_cols->get_column( 'ESTADO_ICON' ). lo_col->set_technical( if_salv_c_bool_sap=>true ). lo_col = lo_cols->get_column( 'ESTADO' ). lo_col->set_technical( if_salv_c_bool_sap=>true ). CATCH cx_salv_not_found. ENDTRY. ENDMETHOD. METHOD build_header. DATA: settings TYPE REF TO cl_salv_tree_settings, title TYPE salv_de_tree_text. settings = alv_tree->get_tree_settings( ). settings->set_hierarchy_header( 'Bug Hierarchy'(001) ). settings->set_hierarchy_tooltip( 'Bug Hierarchy'(001) ). settings->set_hierarchy_size( 50 ). settings->set_header( 'Bug Hierarchy'(001) ). ENDMETHOD. METHOD build_tree. DATA: l_relationship TYPE salv_de_node_relation, l_node_key TYPE salv_de_node_key, lo_node TYPE REF TO cl_salv_node, lt_bugs TYPE zbt_bugs, l_bug_hier TYPE LINE OF zbt_bughiearchy_tree_tbl, l_bug TYPE LINE OF zbt_bugs, lo_estado TYPE REF TO zcl_estado. * lt_bugs = bug->get_prev_bugs( ). * LOOP AT lt_bugs INTO l_bug. * * l_bug_hier-bug_id = l_bug-oref->get_id( ). * l_bug_hier-resumen = l_bug-oref->get_resumen( ). * lo_estado = bug->get_estado( ). * l_bug_hier-estado = lo_estado->get_descripcion( ). * l_bug_hier-estado_icon = lo_estado->get_icon( ). * * lo_node = add_node( data = l_bug_hier * relatnode = node_key ). * l_node_key = lo_node->get_key( ). * build_tree( bug = l_bug-oref * node_key = l_node_key ). * * ENDLOOP. lt_bugs = lt_bugs = bug->get_next_bugs( ). LOOP AT lt_bugs INTO l_bug. l_bug_hier-bug_id = l_bug-oref->get_id( ). l_bug_hier-resumen = l_bug-oref->get_resumen( ). l_bug_hier-bug = l_bug-oref. lo_estado = l_bug-oref->get_estado( ). l_bug_hier-estado = lo_estado->get_descripcion( ). l_bug_hier-estado_icon = lo_estado->get_icon( ). lo_node = add_node( data = l_bug_hier relatnode = node_key ). l_node_key = lo_node->get_key( ). build_tree( bug = l_bug-oref node_key = l_node_key ). ENDLOOP. ENDMETHOD. METHOD constructor. TRY. CALL METHOD cl_salv_tree=>factory EXPORTING r_container = container IMPORTING r_salv_tree = alv_tree CHANGING t_table = bug_hierarchy[]. alv_tree_events = alv_tree->get_event( ). SET HANDLER double_click FOR alv_tree_events. CATCH cx_salv_error . ENDTRY. o_bug = bug. ENDMETHOD. METHOD display. DATA: lo_node TYPE REF TO cl_salv_node, lo_estado TYPE REF TO zcl_estado, l_node_key TYPE salv_de_node_key, l_bug_hier TYPE LINE OF zbt_bughiearchy_tree_tbl. build_header( ). l_bug_hier-bug_id = o_bug->get_id( ). l_bug_hier-resumen = o_bug->get_resumen( ). l_bug_hier-bug = o_bug. lo_estado = o_bug->get_estado( ). l_bug_hier-estado = lo_estado->get_descripcion( ). l_bug_hier-estado_icon = lo_estado->get_icon( ). lo_node = add_node( data = l_bug_hier relatnode = l_node_key ). l_node_key = lo_node->get_key( ). lo_node->set_folder( abap_true ). build_tree( bug = o_bug node_key = l_node_key ). build_cols( ). alv_tree->display( ). ENDMETHOD. METHOD double_click. DATA: o_nodes TYPE REF TO cl_salv_nodes, o_node TYPE REF TO cl_salv_node, l_screen TYPE zbt_screen_popup, l_data TYPE REF TO data. FIELD-SYMBOLS <row> TYPE zbt_bughiearchy_tree_str. o_nodes = alv_tree->get_nodes( ). o_node = o_nodes->get_node( node_key ). l_data = o_node->get_data_row( ). ASSIGN l_data->* TO <row>. l_screen-top = 1. l_screen-left = 1. CALL FUNCTION 'ZBT_DISPLAY_BUG' EXPORTING bug = <row>-bug display_mode = abap_true screen_attributes = l_screen. ENDMETHOD. ENDCLASS.
[ 4871, 1168, 5097, 62, 12953, 62, 1847, 36392, 11587, 62, 4177, 7836, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 12953, 62, 1847, 36392, 11587, 62, 4177, 7836, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 628, 220, 5050, 7102, 46126, 1581, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 10943, 30339, 1137, 2099, 1006, 284, 7852, 62, 40156, 62, 10943, 30339, 1137, 198, 220, 220, 220, 220, 220, 5145, 12953, 2099, 1006, 284, 1168, 5097, 62, 12953, 764, 198, 220, 5050, 13954, 31519, 764, 198, 24326, 2665, 13, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 5097, 62, 12953, 62, 1847, 36392, 11587, 62, 4177, 7836, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 19734, 2665, 13, 198, 9, 1, 9, 2839, 6805, 286, 1398, 1168, 5097, 62, 12953, 62, 1847, 36392, 11587, 62, 4177, 7836, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 628, 220, 1366, 8355, 53, 62, 51, 11587, 2099, 1006, 284, 7852, 62, 50, 1847, 53, 62, 51, 11587, 764, 198, 220, 1366, 347, 7340, 62, 25374, 1137, 31315, 56, 2099, 1168, 19313, 62, 12953, 39, 10008, 31315, 56, 62, 51, 11587, 62, 51, 9148, 764, 198, 220, 1366, 440, 62, 12953, 2099, 1006, 284, 1168, 5097, 62, 12953, 764, 198, 220, 1366, 8355, 53, 62, 51, 11587, 62, 20114, 15365, 2099, 1006, 284, 7852, 62, 50, 1847, 53, 62, 20114, 15365, 62, 51, 11587, 764, 628, 220, 1398, 7852, 62, 40156, 62, 25154, 5883, 45, 62, 51, 11587, 6770, 3440, 764, 198, 220, 5050, 27841, 62, 45, 16820, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 1988, 7, 26947, 8, 2099, 1168, 19313, 62, 12953, 39, 10008, 31315, 56, 62, 51, 11587, 62, 18601, 198, 220, 220, 220, 220, 220, 5145, 16448, 6234, 49423, 2099, 42475, 53, 62, 7206, 62, 45, 16820, 62, 16448, 6234, 4277, 7852, 62, 40156, 62, 25154, 5883, 45, 62, 51, 11587, 14804, 16448, 1404, 62, 43, 11262, 62, 3398, 26761, 198, 220, 220, 220, 220, 220, 5145, 16448, 1404, 45, 16820, 2099, 42475, 53, 62, 7206, 62, 45, 16820, 62, 20373, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 45, 16820, 8, 2099, 1006, 284, 7852, 62, 50, 1847, 53, 62, 45, 16820, 764, 198, 220, 5050, 20571, 26761, 62, 51, 11587, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 12953, 2099, 1006, 284, 1168, 5097, 62, 12953, 198, 220, 220, 220, 220, 220, 1988, 7, 45, 16820, 62, 20373, 8, 2099, 42475, 53, 62, 7206, 62, 45, 16820, 62, 20373, 11902, 764, 198, 220, 5050, 20571, 26761, 62, 37682, 1137, 764, 198, 220, 5050, 20571, 26761, 62, 25154, 50, 764, 198, 220, 5050, 360, 2606, 19146, 62, 5097, 11860, 198, 220, 220, 220, 329, 1785, 360, 2606, 19146, 62, 5097, 11860, 286, 7852, 62, 50, 1847, 53, 62, 20114, 15365, 62, 51, 11587, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 45, 16820, 62, 20373, 198, 220, 220, 220, 220, 220, 5145, 25154, 5883, 6144, 10067, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 12953, 62, 1847, 36392, 11587, 62, 4177, 7836, 30023, 2538, 10979, 6234, 13, 628, 198, 49273, 751, 62, 17440, 13, 198, 220, 42865, 25, 2376, 62, 77, 4147, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 21680, 85, 62, 77, 4147, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 62, 4749, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 24143, 62, 2934, 62, 21048, 62, 9060, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 62, 5239, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 300, 28435, 62, 8367, 13, 628, 220, 2376, 62, 77, 4147, 796, 435, 85, 62, 21048, 3784, 1136, 62, 77, 4147, 7, 6739, 628, 220, 42815, 337, 36252, 2376, 62, 77, 4147, 3784, 2860, 62, 17440, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 3519, 62, 17440, 796, 48993, 17440, 198, 220, 220, 220, 220, 220, 2776, 796, 2776, 198, 220, 220, 220, 220, 220, 1366, 62, 808, 220, 220, 220, 220, 796, 1366, 198, 220, 220, 220, 19644, 36, 3824, 2751, 198, 220, 220, 220, 220, 220, 10139, 220, 220, 220, 220, 220, 220, 220, 220, 796, 10139, 13, 628, 220, 300, 62, 5239, 796, 1366, 12, 25456, 62, 312, 13, 198, 220, 42815, 29397, 4177, 2849, 705, 10943, 43717, 62, 6369, 2043, 62, 1847, 47, 7801, 62, 2606, 7250, 3843, 6, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 5128, 220, 796, 300, 62, 5239, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5072, 796, 300, 62, 5239, 13, 628, 220, 10139, 3784, 2617, 62, 5239, 7, 300, 62, 5239, 6739, 628, 220, 42815, 29397, 4177, 2849, 705, 2149, 1340, 62, 43387, 6158, 6, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 1438, 220, 220, 796, 1366, 12, 395, 4533, 62, 4749, 198, 220, 220, 220, 220, 220, 7508, 220, 220, 796, 1366, 12, 395, 4533, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 1255, 796, 300, 62, 4749, 13, 628, 220, 10139, 3784, 2617, 62, 26000, 28361, 62, 4749, 7, 300, 62, 4749, 6739, 198, 220, 10139, 3784, 2617, 62, 11201, 12249, 62, 4749, 7, 300, 62, 4749, 6739, 198, 198, 10619, 49273, 13, 628, 198, 49273, 1382, 62, 4033, 82, 13, 198, 220, 42865, 25, 2376, 62, 4033, 82, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 21680, 85, 62, 28665, 82, 62, 21048, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 4033, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 21680, 85, 62, 28665, 13, 628, 220, 2376, 62, 4033, 82, 796, 435, 85, 62, 21048, 3784, 1136, 62, 28665, 82, 7 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS lcl_attribute_setter DEFINITION INHERITING FROM cl_workflow_general_task_def CREATE PUBLIC FINAL. PUBLIC SECTION. CLASS-METHODS set_objid IMPORTING iv_objid TYPE hrobject-objid io_task TYPE REF TO cl_workflow_general_task_def. CLASS-METHODS set_container_id IMPORTING iv_id TYPE guid_32 io_task TYPE REF TO cl_workflow_general_task_def. "#EC NEEDED ENDCLASS. CLASS lcl_attribute_setter IMPLEMENTATION. METHOD set_container_id. FIELD-SYMBOLS <lv_object> TYPE REF TO if_swf_cnt_container. ASSIGN ('IO_TASK->CONTAINER') TO <lv_object>. ASSERT sy-subrc = 0. CALL METHOD <lv_object>->('SET_GUID') EXPORTING guid_32 = iv_id. ENDMETHOD. METHOD set_objid. io_task->objid = iv_objid. ENDMETHOD. ENDCLASS. CLASS lcl_task_definition DEFINITION CREATE PUBLIC FINAL. PUBLIC SECTION. INTERFACES lif_task_definition. CLASS-METHODS load IMPORTING iv_objid TYPE hrobject-objid RETURNING VALUE(ri_result) TYPE REF TO lif_task_definition RAISING zcx_abapgit_exception. CLASS-METHODS create IMPORTING iv_objid TYPE hrobject-objid is_task_data TYPE lif_task_definition=>ty_task_data RETURNING VALUE(ri_result) TYPE REF TO lif_task_definition RAISING zcx_abapgit_exception. PRIVATE SECTION. CONSTANTS c_subty_task_description TYPE hr_s_subty VALUE '0120'. DATA mo_taskdef TYPE REF TO cl_workflow_task_ts. DATA ms_task TYPE lif_task_definition=>ty_task_data. DATA: mv_objid TYPE hrobjid. METHODS supply_instance RAISING zcx_abapgit_exception. METHODS check_subrc_for IMPORTING iv_call TYPE clike OPTIONAL RAISING zcx_abapgit_exception. ENDCLASS. CLASS lcl_task_definition IMPLEMENTATION. METHOD load. DATA lo_taskdef TYPE REF TO lcl_task_definition. CREATE OBJECT lo_taskdef. lo_taskdef->mv_objid = iv_objid. lo_taskdef->supply_instance( ). ri_result = lo_taskdef. ENDMETHOD. METHOD check_subrc_for. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( iv_call && ' returned ' && sy-subrc ). ENDIF. ENDMETHOD. METHOD supply_instance. cl_workflow_factory=>create_ts( EXPORTING objid = mv_objid RECEIVING ts_inst = mo_taskdef EXCEPTIONS standard_task_does_not_exist = 1 object_could_not_be_locked = 2 objid_not_given = 3 OTHERS = 4 ) ##SUBRC_OK. check_subrc_for( 'CREATE_TS' ). ms_task-wi_text = mo_taskdef->wi_text. ms_task-short_text = mo_taskdef->short_text. ms_task-plvar = mo_taskdef->plvar. ms_task-method = mo_taskdef->method. ms_task-method_binding = mo_taskdef->method_binding. ms_task-starting_events = mo_taskdef->starting_events. ms_task-starting_events_binding = mo_taskdef->starting_events_binding. ms_task-terminating_events = mo_taskdef->terminating_events. ms_task-terminating_events_binding = mo_taskdef->terminating_events_binding. ms_task-descriptions = mo_taskdef->descriptions. ENDMETHOD. METHOD lif_task_definition~clear_origin_data. FIELD-SYMBOLS: <ls_description> TYPE hrs1002, <ls_method_binding> TYPE hrs1214, <ls_starting_events_binding> TYPE hrs1212, <ls_term_events_binding> TYPE hrs1212. CLEAR: ms_task-method-aedtm, ms_task-method-uname. LOOP AT ms_task-method_binding ASSIGNING <ls_method_binding>. CLEAR: <ls_method_binding>-aedtm, <ls_method_binding>-uname. ENDLOOP. LOOP AT ms_task-starting_events_binding ASSIGNING <ls_starting_events_binding>. CLEAR: <ls_starting_events_binding>-aedtm, <ls_starting_events_binding>-uname. ENDLOOP. LOOP AT ms_task-descriptions ASSIGNING <ls_description>. CLEAR: <ls_description>-aedtm, <ls_description>-uname. ENDLOOP. LOOP AT ms_task-terminating_events_binding ASSIGNING <ls_term_events_binding>. CLEAR: <ls_term_events_binding>-aedtm, <ls_term_events_binding>-uname. ENDLOOP. ENDMETHOD. METHOD lif_task_definition~get_definition. rs_result = me->ms_task. ENDMETHOD. METHOD lif_task_definition~get_container. ri_result = mo_taskdef->container. ENDMETHOD. METHOD lif_task_definition~get_user_container. DATA: li_container TYPE REF TO if_swf_cnt_element_access_1, lt_user_elements TYPE swfdnamtab, lt_system_elements TYPE swfdnamtab, lv_element TYPE swfdname. li_container = mo_taskdef->container. lt_user_elements = li_container->all_elements_list( ). lt_system_elements = li_container->all_elements_list( list_system = abap_true ). LOOP AT lt_system_elements INTO lv_element. READ TABLE lt_user_elements WITH KEY table_line = lv_element TRANSPORTING NO FIELDS. IF sy-subrc <> 0. TRY. li_container->element_remove( name = lv_element ). CATCH cx_swf_cnt_container. "Shouldn't happen, doesn't matter if it does ENDTRY. ENDIF. ENDLOOP. ri_result ?= li_container. ENDMETHOD. METHOD create. DATA lo_task TYPE REF TO lcl_task_definition. CREATE OBJECT lo_task TYPE lcl_task_definition. lo_task->mv_objid = iv_objid. lo_task->ms_task = is_task_data. ri_result = lo_task. ENDMETHOD. METHOD lif_task_definition~import_container. DATA lt_exception_list TYPE swf_cx_tab. DATA lx_exception TYPE REF TO cx_swf_ifs_exception. mo_taskdef->container->import_from_xml( EXPORTING xml_stream = iv_xml_string IMPORTING exception_list = lt_exception_list ). IF lt_exception_list IS NOT INITIAL. READ TABLE lt_exception_list INDEX 1 INTO lx_exception. zcx_abapgit_exception=>raise_with_text( lx_exception ). ENDIF. ENDMETHOD. METHOD lif_task_definition~create_task. cl_workflow_factory=>create_new_ts( EXPORTING short_text = |{ ms_task-short_text }| text = |{ ms_task-wi_text }| RECEIVING task_object = mo_taskdef EXCEPTIONS text_exists_already = 1 OTHERS = 2 ). "#EC SUBRC_OK check_subrc_for( `CREATE_NEW_TS` ). lcl_attribute_setter=>set_objid( iv_objid = mv_objid io_task = mo_taskdef ). lcl_attribute_setter=>set_container_id( iv_id = |TS{ mv_objid }| io_task = mo_taskdef ). ENDMETHOD. METHOD lif_task_definition~change_start_events. mo_taskdef->change_start_events_complete( EXPORTING starting_events = ms_task-starting_events EXCEPTIONS no_changes_allowed = 1 OTHERS = 2 ). "#EC SUBRC_OK check_subrc_for( `CHANGE_START_EVENTS_COMPLETE` ). mo_taskdef->change_start_evt_bind_complete( EXPORTING new_bindings = ms_task-starting_events_binding EXCEPTIONS no_changes_allowed = 1 OTHERS = 2 ). "#EC SUBRC_OK check_subrc_for( `CHANGE_START_EVT_BIND_COMPLETE` ). ENDMETHOD. METHOD lif_task_definition~save. DATA ls_hrsobject TYPE hrsobject. ls_hrsobject-otype = 'TS'. "swfco_org_standard_task - todo: linter can't resolve this ls_hrsobject-objid = mv_objid. INSERT hrsobject FROM ls_hrsobject. mo_taskdef->save_standard_task( EXPORTING development_class = iv_package iv_force_gen = abap_true EXCEPTIONS no_changes_allowed = 1 no_client_indep_maint = 2 update_error = 3 insert_error_new_ts = 4 new_ts_could_not_be_locked = 5 save_abort_by_user = 6 OTHERS = 7 ). "#EC SUBRC_OK check_subrc_for( `SAVE_STANDARD_TASK` ). ENDMETHOD. METHOD lif_task_definition~change_wi_text. mo_taskdef->change_wi_text( EXPORTING new_wi_text = ms_task-wi_text EXCEPTIONS no_changes_allowed = 1 OTHERS = 2 ). "#EC SUBRC_OK check_subrc_for( `CHANGE_WI_TEXT` ). ENDMETHOD. METHOD lif_task_definition~change_method. FIELD-SYMBOLS <ls_method_binding> TYPE hrs1214. mo_taskdef->change_method( EXPORTING new_method = ms_task-method " New Method or Settings EXCEPTIONS no_changes_allowed = 1 problem_method_web_enabling = 2 problem_method_phon_enabling = 3 OTHERS = 4 ). "#EC SUBRC_OK check_subrc_for( `CHANGE_METHOD` ). LOOP AT ms_task-method_binding ASSIGNING <ls_method_binding>. mo_taskdef->change_method_binding( EXPORTING binding = <ls_method_binding> delete = abap_false insert = abap_true EXCEPTIONS no_changes_allowed = 1 desired_action_not_clear = 2 ts_cnt_element_does_not_exist = 3 binding_could_not_be_deleted = 4 OTHERS = 5 ). "#EC SUBRC_OK check_subrc_for( `CHANGE_METHOD_BINDING` ). ENDLOOP. ENDMETHOD. METHOD lif_task_definition~change_terminating_events. mo_taskdef->change_term_events_complete( EXPORTING terminating_events = ms_task-terminating_events EXCEPTIONS no_changes_allowed = 1 OTHERS = 2 ). "#EC SUBRC_OK check_subrc_for( `CHANGE_TERM_EVENTS_COMPLETE` ). mo_taskdef->change_term_evt_bind_complete( EXPORTING new_bindings = ms_task-terminating_events_binding EXCEPTIONS no_changes_allowed = 1 OTHERS = 2 ). "#EC SUBRC_OK check_subrc_for( `CHANGE_TERM_EVT_BIND_COMPLETE` ). ENDMETHOD. METHOD lif_task_definition~change_text. mo_taskdef->change_text( EXPORTING subty = c_subty_task_description new_text = ms_task-descriptions EXCEPTIONS no_changes_allowed = 1 OTHERS = 2 ). "#EC SUBRC_OK check_subrc_for( `CHANGE_TEXT` ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 565, 62, 42348, 62, 2617, 353, 5550, 20032, 17941, 198, 220, 3268, 16879, 2043, 2751, 16034, 537, 62, 1818, 11125, 62, 24622, 62, 35943, 62, 4299, 198, 220, 29244, 6158, 44731, 198, 220, 25261, 13, 198, 220, 44731, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 900, 62, 26801, 312, 30023, 9863, 2751, 21628, 62, 26801, 312, 41876, 289, 22609, 752, 12, 26801, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 35943, 220, 41876, 4526, 37, 5390, 537, 62, 1818, 11125, 62, 24622, 62, 35943, 62, 4299, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 900, 62, 34924, 62, 312, 30023, 9863, 2751, 21628, 62, 312, 220, 220, 41876, 10103, 62, 2624, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 35943, 41876, 4526, 37, 5390, 537, 62, 1818, 11125, 62, 24622, 62, 35943, 62, 4299, 13, 25113, 2943, 36465, 1961, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 42348, 62, 2617, 353, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 900, 62, 34924, 62, 312, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 1279, 6780, 62, 15252, 29, 41876, 4526, 37, 5390, 611, 62, 2032, 69, 62, 66, 429, 62, 34924, 13, 628, 220, 220, 220, 24994, 16284, 19203, 9399, 62, 51, 1921, 42, 3784, 10943, 30339, 1137, 11537, 5390, 1279, 6780, 62, 15252, 28401, 198, 220, 220, 220, 24994, 17395, 827, 12, 7266, 6015, 796, 657, 13, 628, 220, 220, 220, 42815, 337, 36252, 1279, 6780, 62, 15252, 29, 3784, 10786, 28480, 62, 38, 27586, 11537, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 10103, 62, 2624, 796, 21628, 62, 312, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 900, 62, 26801, 312, 13, 198, 220, 220, 220, 33245, 62, 35943, 3784, 26801, 312, 796, 21628, 62, 26801, 312, 13, 198, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 628, 198, 31631, 300, 565, 62, 35943, 62, 46758, 5550, 20032, 17941, 198, 220, 29244, 6158, 44731, 198, 220, 25261, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 3868, 62, 35943, 62, 46758, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 3440, 30023, 9863, 2751, 21628, 62, 26801, 312, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 289, 22609, 752, 12, 26801, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 380, 62, 20274, 8, 41876, 4526, 37, 5390, 3868, 62, 35943, 62, 46758, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 2251, 30023, 9863, 2751, 21628, 62, 26801, 312, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 289, 22609, 752, 12, 26801, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 35943, 62, 7890, 220, 220, 220, 220, 41876, 3868, 62, 35943, 62, 46758, 14804, 774, 62, 35943, 62, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 380, 62, 20274, 8, 41876, 4526, 37, 5390, 3868, 62, 35943, 62, 46758, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 7266, 774, 62, 35943, 62, 11213, 41876, 39436, 62, 82, 62, 7266, 774, 26173, 8924, 705, 486, 1238, 4458, 628, 220, 220, 220, 42865, 6941, 62, 35943, 4299, 41876, 4526, 37, 5390, 537, 62, 1818, 11125, 62, 35943, 62, 912, 13, 198, 220, 220, 220, 42865, 13845, 62, 35943, 41876, 3868, 62, 35943, 62, 46758, 14804, 774, 62, 35943, 62, 7890, 13, 628, 220, 220, 220, 42865, 25, 285, 85, 62, 26801, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 289, 22609, 73, 312, 13, 628, 220, 220, 220, 337, 36252, 50, 5127, 62, 39098, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 7266, 6015, 62, 1640, 30023, 9863, 2751, 21628, 62, 13345, 41876, 537, 522, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 198, 10619, 31631, 13, 628, 198, 31631, 300, 565, 62, 35943, 62, 46758, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 3440, 13, 628, 220, 220, 220, 42865, 2376, 62, 35943, 4299, 41876, 4526, 37, 5390, 300, 565, 62, 35943, 62, 46758, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 2376, 62, 35943, 4299, 13, 198, 220, 220, 220, 2376, 62, 35943, 4299, 3784, 76, 85, 62, 26801, 312, 796, 21628, 62, 26801, 312, 13, 198, 220, 220, 220, 2376, 62, 35943, 4299, 3784, 18608, 306, 62, 39098, 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, 1, 1 ]
CLASS zcl_abapgit_object_enhs_badi_d DEFINITION PUBLIC. PUBLIC SECTION. INTERFACES: zif_abapgit_object_enhs. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_ENHS_BADI_D IMPLEMENTATION. METHOD zif_abapgit_object_enhs~deserialize. DATA: lv_parent TYPE enhspotcompositename, lt_enh_badi TYPE enh_badi_data_it, lo_badidef_tool TYPE REF TO cl_enh_tool_badi_def, lv_enh_shorttext TYPE string, li_enh_object TYPE REF TO if_enh_object, li_enh_object_docu TYPE REF TO if_enh_object_docu, lv_text TYPE string, lx_error TYPE REF TO cx_enh_root. FIELD-SYMBOLS: <ls_enh_badi> LIKE LINE OF lt_enh_badi. io_xml->read( EXPORTING iv_name = 'PARENT_COMP' CHANGING cg_data = lv_parent ). io_xml->read( EXPORTING iv_name = 'BADI_DATA' CHANGING cg_data = lt_enh_badi ). io_xml->read( EXPORTING iv_name = 'SHORTTEXT' CHANGING cg_data = lv_enh_shorttext ). li_enh_object ?= ii_enh_spot_tool. li_enh_object_docu ?= ii_enh_spot_tool. TRY. li_enh_object_docu->set_shorttext( lv_enh_shorttext ). lo_badidef_tool ?= ii_enh_spot_tool. LOOP AT lt_enh_badi ASSIGNING <ls_enh_badi>. lo_badidef_tool->add_badi_def( <ls_enh_badi> ). ENDLOOP. li_enh_object->save( ). li_enh_object->activate( ). li_enh_object->unlock( ). CATCH cx_enh_root INTO lx_error. lv_text = lx_error->get_text( ). zcx_abapgit_exception=>raise( lv_text ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object_enhs~serialize. DATA: lv_spot_name TYPE enhspotname, lv_parent TYPE enhspotcompositename, lt_enh_badi TYPE enh_badi_data_it, lo_badidef_tool TYPE REF TO cl_enh_tool_badi_def, lv_enh_shorttext TYPE string, li_enh_object_docu TYPE REF TO if_enh_object_docu. lo_badidef_tool ?= ii_enh_spot_tool. li_enh_object_docu ?= ii_enh_spot_tool. lv_enh_shorttext = li_enh_object_docu->get_shorttext( ). "get parent = composite enhs (ENHC) lv_parent = cl_r3standard_persistence=>enh_find_parent_composite( lv_spot_name ). "get subsequent BADI definitions lt_enh_badi = lo_badidef_tool->get_badi_defs( ). io_xml->add( ig_data = ii_enh_spot_tool->get_tool( ) iv_name = 'TOOL' ). io_xml->add( ig_data = lv_enh_shorttext iv_name = 'SHORTTEXT' ). io_xml->add( ig_data = lv_parent iv_name = 'PARENT_COMP' ). io_xml->add( ig_data = lt_enh_badi iv_name = 'BADI_DATA' ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 268, 11994, 62, 65, 9189, 62, 67, 5550, 20032, 17941, 44731, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 1976, 361, 62, 397, 499, 18300, 62, 15252, 62, 268, 11994, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 1677, 7998, 62, 33, 2885, 40, 62, 35, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 62, 268, 11994, 93, 8906, 48499, 1096, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 8000, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 5881, 20485, 785, 1930, 270, 12453, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 16550, 62, 65, 9189, 220, 220, 220, 220, 220, 220, 220, 41876, 5881, 62, 65, 9189, 62, 7890, 62, 270, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 14774, 485, 69, 62, 25981, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 16550, 62, 25981, 62, 65, 9189, 62, 4299, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 16550, 62, 19509, 5239, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 16550, 62, 15252, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 16550, 62, 15252, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 16550, 62, 15252, 62, 15390, 84, 41876, 4526, 37, 5390, 611, 62, 16550, 62, 15252, 62, 15390, 84, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 5239, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 87, 62, 18224, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 43213, 62, 16550, 62, 15763, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 16550, 62, 65, 9189, 29, 34178, 48920, 3963, 300, 83, 62, 16550, 62, 65, 9189, 13, 628, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 27082, 3525, 62, 9858, 47, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 7890, 796, 300, 85, 62, 8000, 6739, 628, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 33, 2885, 40, 62, 26947, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 7890, 796, 300, 83, 62, 16550, 62, 65, 9189, 6739, 628, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 9693, 9863, 32541, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 7890, 796, 300, 85, 62, 16550, 62, 19509, 5239, 6739, 628, 220, 220, 220, 7649, 62, 16550, 62, 15252, 5633, 28, 21065, 62, 16550, 62, 20485, 62, 25981, 13, 198, 220, 220, 220, 7649, 62, 16550, 62, 15252, 62, 15390, 84, 5633, 28, 21065, 62, 16550, 62, 20485, 62, 25981, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 16550, 62, 15252, 62, 15390, 84, 3784, 2617, 62, 19509, 5239, 7, 300, 85, 62, 16550, 62, 19509, 5239, 6739, 628, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 14774, 485, 69, 62, 25981, 5633, 28, 21065, 62, 16550, 62, 20485, 62, 25981, 13, 628, 220, 220, 220, 220, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 16550, 62, 65, 9189, 24994, 3528, 15871, 1279, 7278, 62, 16550, 62, 65, 9189, 28401, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 14774, 485, 69, 62, 25981, 3784, 2860, 62, 65, 9189, 62, 4299, 7, 1279, 7278, 62, 16550, 62, 65, 9189, 29, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 16550, 62, 15252, 3784, 21928, 7, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 16550, 62, 15252, 3784, 39022, 7, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 16550, 62, 15252, 3784, 403, 5354, 7, 6739, 628, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 16550, 62, 15763, 39319, 300, 87, 62, 18224, 13, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 5239, 796, 300, 87, 62, 18224, 3784, 1136, 62, 5239, 7, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 300, 85, 62, 5239, 6739, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 62, 268, 11994, 93, 46911, 1096, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 20485, 62, 3672, 220, 220, 220, 220, 220, 220, 41876, 5881, 20485, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 8000, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 5881, 20485, 785, 1930, 270, 12453, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 16550, 62, 65, 9189, 220, 220, 220, 220, 220, 220, 220, 41876, 5881, 62, 65, 9189, 62, 7890, 62, 270, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 14774, 485, 69, 62, 25981, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 16550, 62, 25981, 62, 65, 9189, 62, 4299, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZCL_BUGSTYPE definition public inheriting from ZCL_ENTITY final create public . public section. *"* public components of class ZCL_BUGSTYPE *"* do not include other source files here!!! methods CONSTRUCTOR importing !BUGTYPE type ref to ZCL_BUGTYPE !ID type ZBT_BUG_STYPE-SUBTYPE !SPRAS type SPRAS default SY-LANGU !ICON type ZBT_BUGSTYPE_ICON . methods GET_ID returning value(RETURN) type ZBT_BUG_STYPE-SUBTYPE . methods GET_DESCRIPCION returning value(RETURN) type ZBT_STYPE_TXT-DESCRIPCION . methods GET_BUGTYPE returning value(RETURN) type ref to ZCL_BUGTYPE . methods GET_ICON returning value(RETURN) type ZBT_BUGSTYPE_ICON . protected section. *"* protected components of class ZCL_BUGSTYPE *"* do not include other source files here!!! methods PREPARE_HASH_STRUCTURE redefinition . private section. *"* private components of class ZCL_BUGSTYPE *"* do not include other source files here!!! data ID type ZBT_BUG_STYPE-SUBTYPE . data DESCRIPCION type ZBT_STYPE_TXT-DESCRIPCION . data BUGTYPE type ref to ZCL_BUGTYPE . data ICON type ZBT_BUGSTYPE_ICON . ENDCLASS. CLASS ZCL_BUGSTYPE IMPLEMENTATION. METHOD constructor. DATA: l_id TYPE zbt_bug_type-bugtype. super->constructor( ). me->id = id. me->bugtype = bugtype. me->icon = icon. l_id = bugtype->get_id( ). SELECT SINGLE descripcion INTO descripcion FROM zbt_stype_txt WHERE spras = spras AND bugtype = l_id AND bugstype = id. ENDMETHOD. METHOD get_bugtype. return = bugtype. ENDMETHOD. METHOD get_descripcion. return = descripcion. ENDMETHOD. METHOD get_icon. return = icon. ENDMETHOD. method GET_ID. return = id. endmethod. method PREPARE_HASH_STRUCTURE. data: value TYPE LINE OF zbt_objectvalue_hash_calcul, id TYPE ZBT_BUG_STYPE-SUBTYPE. value = id = get_id( ). SHIFT value LEFT DELETING LEADING space. INSERT value INTO TABLE values[]. endmethod. ENDCLASS.
[ 4871, 1168, 5097, 62, 12953, 2257, 56, 11401, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1168, 5097, 62, 3525, 9050, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 12953, 2257, 56, 11401, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 628, 220, 5050, 7102, 46126, 1581, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 12953, 25216, 2099, 1006, 284, 1168, 5097, 62, 12953, 25216, 198, 220, 220, 220, 220, 220, 5145, 2389, 2099, 1168, 19313, 62, 12953, 62, 2257, 56, 11401, 12, 50, 10526, 25216, 198, 220, 220, 220, 220, 220, 5145, 4303, 49, 1921, 2099, 49068, 1921, 4277, 19704, 12, 43, 15567, 52, 198, 220, 220, 220, 220, 220, 5145, 2149, 1340, 2099, 1168, 19313, 62, 12953, 2257, 56, 11401, 62, 2149, 1340, 764, 198, 220, 5050, 17151, 62, 2389, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 26087, 27064, 8, 2099, 1168, 19313, 62, 12953, 62, 2257, 56, 11401, 12, 50, 10526, 25216, 764, 198, 220, 5050, 17151, 62, 30910, 36584, 34, 2849, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 26087, 27064, 8, 2099, 1168, 19313, 62, 2257, 56, 11401, 62, 51, 25010, 12, 30910, 36584, 34, 2849, 764, 198, 220, 5050, 17151, 62, 12953, 25216, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 26087, 27064, 8, 2099, 1006, 284, 1168, 5097, 62, 12953, 25216, 764, 198, 220, 5050, 17151, 62, 2149, 1340, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 26087, 27064, 8, 2099, 1168, 19313, 62, 12953, 2257, 56, 11401, 62, 2149, 1340, 764, 198, 24326, 2665, 13, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 5097, 62, 12953, 2257, 56, 11401, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 628, 220, 5050, 22814, 47, 12203, 62, 39, 11211, 62, 46126, 11335, 198, 220, 220, 220, 34087, 17750, 764, 198, 19734, 2665, 13, 198, 9, 1, 9, 2839, 6805, 286, 1398, 1168, 5097, 62, 12953, 2257, 56, 11401, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 628, 220, 1366, 4522, 2099, 1168, 19313, 62, 12953, 62, 2257, 56, 11401, 12, 50, 10526, 25216, 764, 198, 220, 1366, 22196, 36584, 34, 2849, 2099, 1168, 19313, 62, 2257, 56, 11401, 62, 51, 25010, 12, 30910, 36584, 34, 2849, 764, 198, 220, 1366, 347, 7340, 25216, 2099, 1006, 284, 1168, 5097, 62, 12953, 25216, 764, 198, 220, 1366, 314, 10943, 2099, 1168, 19313, 62, 12953, 2257, 56, 11401, 62, 2149, 1340, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 12953, 2257, 56, 11401, 30023, 2538, 10979, 6234, 13, 628, 198, 49273, 23772, 13, 198, 220, 42865, 25, 300, 62, 312, 41876, 1976, 18347, 62, 25456, 62, 4906, 12, 25456, 4906, 13, 628, 220, 2208, 3784, 41571, 273, 7, 6739, 198, 220, 502, 3784, 312, 796, 4686, 13, 198, 220, 502, 3784, 25456, 4906, 796, 5434, 4906, 13, 198, 220, 502, 3784, 4749, 796, 7196, 13, 198, 220, 300, 62, 312, 796, 5434, 4906, 3784, 1136, 62, 312, 7, 6739, 628, 220, 33493, 311, 2751, 2538, 1715, 5528, 66, 295, 39319, 1715, 5528, 66, 295, 16034, 1976, 18347, 62, 301, 2981, 62, 14116, 198, 220, 33411, 7500, 292, 796, 7500, 292, 198, 220, 220, 220, 5357, 5434, 4906, 220, 796, 300, 62, 312, 198, 220, 220, 220, 5357, 5434, 301, 2981, 796, 4686, 13, 198, 10619, 49273, 13, 628, 198, 49273, 651, 62, 25456, 4906, 13, 198, 220, 1441, 796, 5434, 4906, 13, 198, 10619, 49273, 13, 628, 198, 49273, 651, 62, 20147, 5528, 66, 295, 13, 198, 7783, 796, 1715, 5528, 66, 295, 13, 198, 10619, 49273, 13, 628, 198, 49273, 651, 62, 4749, 13, 198, 220, 1441, 796, 7196, 13, 198, 10619, 49273, 13, 628, 198, 24396, 17151, 62, 2389, 13, 198, 220, 1441, 796, 4686, 13, 198, 437, 24396, 13, 628, 198, 24396, 22814, 47, 12203, 62, 39, 11211, 62, 46126, 11335, 13, 198, 7890, 25, 1988, 41876, 48920, 3963, 1976, 18347, 62, 15252, 8367, 62, 17831, 62, 9948, 3129, 11, 198, 220, 220, 220, 220, 220, 4686, 220, 220, 220, 41876, 1168, 19313, 62, 12953, 62, 2257, 56, 11401, 12, 50, 10526, 25216, 13, 628, 220, 220, 220, 220, 220, 1988, 796, 4686, 796, 651, 62, 312, 7, 6739, 198, 220, 220, 220, 220, 220, 6006, 32297, 1988, 12509, 9792, 5550, 28882, 2751, 12509, 2885, 2751, 2272, 13, 198, 220, 220, 220, 220, 220, 29194, 17395, 1988, 39319, 43679, 3815, 58, 4083, 198, 437, 24396, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
******************************************************************* * System-defined Include-files. * ******************************************************************* INCLUDE lzfugr4top. INCLUDE lzfugr4uxx. INCLUDE zfugr_inc. INCLUDE lzfugr4f01.
[ 17174, 17174, 8162, 198, 9, 220, 220, 4482, 12, 23211, 40348, 12, 16624, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 17174, 17174, 8162, 198, 1268, 5097, 52, 7206, 300, 89, 69, 1018, 81, 19, 4852, 13, 198, 1268, 5097, 52, 7206, 300, 89, 69, 1018, 81, 19, 2821, 87, 13, 198, 198, 1268, 5097, 52, 7206, 1976, 69, 1018, 81, 62, 1939, 13, 198, 198, 1268, 5097, 52, 7206, 300, 89, 69, 1018, 81, 19, 69, 486, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZCL_EXCEL_WRITER_HUGE_FILE definition public inheriting from ZCL_EXCEL_WRITER_2007 final create public . public section. types: BEGIN OF ty_cell, name TYPE c LENGTH 10, "AAA1234567" style TYPE i, type TYPE c LENGTH 9, formula TYPE string, value TYPE string, END OF ty_cell . data: cells TYPE STANDARD TABLE OF ty_cell . methods GET_CELLS importing !I_ROW type I !I_INDEX type I . protected section. methods CREATE_XL_SHAREDSTRINGS redefinition . methods CREATE_XL_SHEET redefinition . private section. data WORKSHEET type ref to ZCL_EXCEL_WORKSHEET . ENDCLASS. CLASS ZCL_EXCEL_WRITER_HUGE_FILE IMPLEMENTATION. METHOD create_xl_sharedstrings. * * Redefinition using simple transformation instead of CL_IXML * ** Constant node name TYPES: BEGIN OF ts_root, count TYPE string, unique_count TYPE string, END OF ts_root. DATA: lv_last_allowed_char TYPE char1, lv_invalid TYPE string. DATA: lo_iterator TYPE REF TO cl_object_collection_iterator, lo_worksheet TYPE REF TO zcl_excel_worksheet. DATA: ls_root TYPE ts_root, lt_cell_data TYPE zexcel_t_cell_data_unsorted, ls_shared_string TYPE zexcel_s_shared_string, lv_sytabix TYPE sytabix. FIELD-SYMBOLS: <sheet_content> TYPE zexcel_s_cell_data. ********************************************************************** * STEP 0: Build Regex for invalid characters CASE cl_abap_char_utilities=>charsize. WHEN 1.lv_last_allowed_char = cl_abap_conv_in_ce=>uccpi( 255 ). " FF in non-Unicode WHEN 2.lv_last_allowed_char = cl_abap_conv_in_ce=>uccpi( 65533 )." FFFD in Unicode ENDCASE. CONCATENATE '[^\n\t\r -' lv_last_allowed_char ']' INTO lv_invalid. ********************************************************************** * STEP 1: Collect strings from each worksheet lo_iterator = excel->get_worksheets_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_worksheet ?= lo_iterator->if_object_collection_iterator~get_next( ). APPEND LINES OF lo_worksheet->sheet_content TO lt_cell_data. ENDWHILE. DELETE lt_cell_data WHERE cell_formula IS NOT INITIAL " delete formula content OR data_type NE 's'. " MvC: Only shared strings ls_root-count = lines( lt_cell_data ). CONDENSE ls_root-count. SORT lt_cell_data BY cell_value data_type. DELETE ADJACENT DUPLICATES FROM lt_cell_data COMPARING cell_value data_type. ls_root-unique_count = lines( lt_cell_data ). CONDENSE ls_root-unique_count. LOOP AT lt_cell_data ASSIGNING <sheet_content>. lv_sytabix = sy-tabix - 1. MOVE lv_sytabix TO ls_shared_string-string_no. MOVE <sheet_content>-cell_value TO ls_shared_string-string_value. REPLACE ALL OCCURRENCES OF REGEX lv_invalid IN ls_shared_string-string_value WITH ` `. APPEND ls_shared_string TO shared_strings. ENDLOOP. ********************************************************************** * STEP 2: Create XML CALL TRANSFORMATION zexcel_tr_shared_strings SOURCE root = ls_root shared_strings = shared_strings OPTIONS xml_header = 'full' RESULT XML ep_content. ENDMETHOD. METHOD create_xl_sheet. * * Build Sheet#.xml with Simple Transformation ZEXCEL_TR_SHEET * * This is an adaption of ZCL_EXCEL_WRITER_2007. * Not all features are supported, notably the autofilter settings, * conditional formatting and sheet protection. * * Bug reports to marcus.voncube AT deutschebahn.com * TYPES: lty_bool TYPE c LENGTH 5. CONSTANTS: lc_false TYPE lty_bool VALUE 'false', "#EC NEEDED lc_true TYPE lty_bool VALUE 'true', lc_zero TYPE c LENGTH 1 VALUE '0', lc_one TYPE c LENGTH 1 VALUE '1', lc_default_col_width TYPE float VALUE '9.10'. TYPES: BEGIN OF lty_column, min TYPE i, max TYPE i, width TYPE float, hidden TYPE lty_bool, customwidth TYPE lty_bool, bestfit TYPE lty_bool, collapsed TYPE lty_bool, outlinelevel TYPE i, style TYPE i, END OF lty_column, BEGIN OF lty_row, row TYPE i, index TYPE i, spans TYPE c LENGTH 11, "12345:12345" hidden TYPE lty_bool, customheight TYPE lty_bool, height TYPE float, collapsed TYPE lty_bool, outlinelevel TYPE i, customformat TYPE lty_bool, style TYPE i, END OF lty_row, BEGIN OF lty_mergecell, ref TYPE c LENGTH 21, "AAA1234567:BBB1234567" END OF lty_mergecell, BEGIN OF lty_hyperlink, ref TYPE string, location TYPE string, r_id TYPE string, END OF lty_hyperlink, BEGIN OF lty_table, r_id TYPE string, END OF lty_table, BEGIN OF lty_table_area, left TYPE i, right TYPE i, top TYPE i, bottom TYPE i, END OF lty_table_area, BEGIN OF ty_missing_columns, first_column TYPE zexcel_cell_column, last_column TYPE zexcel_cell_column, END OF ty_missing_columns. * * Root node for transformation * DATA: BEGIN OF l_worksheet, dimension TYPE string, tabcolor TYPE string, summarybelow TYPE c, summaryright TYPE c, fittopage TYPE c, showzeros TYPE c, tabselected TYPE c, zoomscale TYPE i, zoomscalenormal TYPE i, zoomscalepageview TYPE i, zoomscalesheetview TYPE i, workbookviewid TYPE c, showgridlines TYPE c, showrowcolheaders TYPE c, activepane TYPE string, state TYPE string, ysplit TYPE i, xsplit TYPE i, topleftcell TYPE c LENGTH 10, activecell TYPE c LENGTH 10, customheight TYPE lty_bool, defaultrowheight TYPE float, defaultcolwidth TYPE float, outlinelevelrow TYPE i, outlinelevelcol TYPE i, cols TYPE STANDARD TABLE OF lty_column, rows TYPE STANDARD TABLE OF lty_row, mergecells_count TYPE i, mergecells TYPE STANDARD TABLE OF lty_mergecell, hyperlinks_count TYPE i, hyperlinks TYPE STANDARD TABLE OF lty_hyperlink, BEGIN OF printoptions, gridlines TYPE lty_bool, horizontalcentered TYPE lty_bool, verticalcentered TYPE lty_bool, END OF printoptions, BEGIN OF pagemargins, left TYPE zexcel_dec_8_2, right TYPE zexcel_dec_8_2, top TYPE zexcel_dec_8_2, bottom TYPE zexcel_dec_8_2, header TYPE zexcel_dec_8_2, footer TYPE zexcel_dec_8_2, END OF pagemargins, BEGIN OF pagesetup, blackandwhite TYPE c, cellcomments TYPE string, copies TYPE i, draft TYPE c, errors TYPE string, firstpagenumber TYPE i, fittopage TYPE c, fittoheight TYPE i, fittowidth TYPE i, horizontaldpi TYPE i, orientation TYPE string, pageorder TYPE string, paperheight TYPE string, papersize TYPE i, paperwidth TYPE string, scale TYPE i, usefirstpagenumber TYPE c, useprinterdefaults TYPE c, verticaldpi TYPE i, END OF pagesetup, BEGIN OF headerfooter, differentoddeven TYPE c, oddheader TYPE string, oddfooter TYPE string, evenheader TYPE string, evenfooter TYPE string, END OF headerfooter, drawings TYPE string, tables_count TYPE i, tables TYPE STANDARD TABLE OF lty_table, END OF l_worksheet. * * Local data * DATA: lo_iterator TYPE REF TO cl_object_collection_iterator, lo_table TYPE REF TO zcl_excel_table, lo_column_default TYPE REF TO zcl_excel_column, lo_row_default TYPE REF TO zcl_excel_row, lv_value TYPE string, lv_index TYPE i, lv_spans TYPE string, lt_range_merge TYPE string_table, lv_column TYPE zexcel_cell_column, lv_style_guid TYPE zexcel_cell_style, ls_last_row TYPE zexcel_s_cell_data, lv_freeze_cell_row TYPE zexcel_cell_row, lv_freeze_cell_column TYPE zexcel_cell_column, lv_freeze_cell_column_alpha TYPE zexcel_cell_column_alpha, lo_column_iterator TYPE REF TO cl_object_collection_iterator, lo_column TYPE REF TO zcl_excel_column, lo_row_iterator TYPE REF TO cl_object_collection_iterator, lo_row TYPE REF TO zcl_excel_row, lv_relation_id TYPE i VALUE 0, outline_level_row TYPE i VALUE 0, outline_level_col TYPE i VALUE 0, col_count TYPE int4, lt_table_areas TYPE SORTED TABLE OF lty_table_area WITH NON-UNIQUE KEY left right top bottom, ls_table_area LIKE LINE OF lt_table_areas, lts_sorted_columns TYPE SORTED TABLE OF zexcel_cell_column WITH UNIQUE KEY table_line, t_missing_columns TYPE STANDARD TABLE OF ty_missing_columns WITH NON-UNIQUE DEFAULT KEY, missing_column LIKE LINE OF t_missing_columns, lo_link TYPE REF TO zcl_excel_hyperlink, lo_drawings TYPE REF TO zcl_excel_drawings. FIELD-SYMBOLS: <sheet_content> TYPE zexcel_s_cell_data, <range_merge> LIKE LINE OF lt_range_merge, <col> TYPE lty_column, <row> TYPE lty_row, <hyperlink> TYPE lty_hyperlink, <mergecell> TYPE lty_mergecell, <table> TYPE lty_table. ********************************************************************** * STEP 1: Fill root node * l_worksheet-tabcolor = io_worksheet->tabcolor-rgb. l_worksheet-summarybelow = io_worksheet->zif_excel_sheet_properties~summarybelow. l_worksheet-summaryright = io_worksheet->zif_excel_sheet_properties~summaryright. IF io_worksheet->sheet_setup->fit_to_page IS NOT INITIAL. l_worksheet-fittopage = lc_one. ENDIF. l_worksheet-dimension = io_worksheet->get_dimension_range( ). IF io_worksheet->zif_excel_sheet_properties~show_zeros EQ abap_true. l_worksheet-showzeros = lc_one. ELSE. l_worksheet-showzeros = lc_zero. ENDIF. IF iv_active = abap_true OR io_worksheet->zif_excel_sheet_properties~selected EQ abap_true. l_worksheet-tabselected = lc_one. ELSE. l_worksheet-tabselected = lc_zero. ENDIF. IF io_worksheet->zif_excel_sheet_properties~zoomscale GT 400. io_worksheet->zif_excel_sheet_properties~zoomscale = 400. ELSEIF io_worksheet->zif_excel_sheet_properties~zoomscale LT 10. io_worksheet->zif_excel_sheet_properties~zoomscale = 10. ENDIF. l_worksheet-zoomscale = io_worksheet->zif_excel_sheet_properties~zoomscale. IF io_worksheet->zif_excel_sheet_properties~zoomscale_normal NE 0. IF io_worksheet->zif_excel_sheet_properties~zoomscale_normal GT 400. io_worksheet->zif_excel_sheet_properties~zoomscale_normal = 400. ELSEIF io_worksheet->zif_excel_sheet_properties~zoomscale_normal LT 10. io_worksheet->zif_excel_sheet_properties~zoomscale_normal = 10. ENDIF. l_worksheet-zoomscalenormal = io_worksheet->zif_excel_sheet_properties~zoomscale_normal. ENDIF. IF io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview NE 0. IF io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview GT 400. io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview = 400. ELSEIF io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview LT 10. io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview = 10. ENDIF. l_worksheet-zoomscalepageview = io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview. ENDIF. IF io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview NE 0. IF io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview GT 400. io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview = 400. ELSEIF io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview LT 10. io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview = 10. ENDIF. l_worksheet-zoomscalesheetview = io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview. ENDIF. l_worksheet-workbookviewid = lc_zero. IF io_worksheet->show_gridlines = abap_true. l_worksheet-showgridlines = lc_one. ELSE. l_worksheet-showgridlines = lc_zero. ENDIF. IF io_worksheet->show_rowcolheaders = abap_true. l_worksheet-showrowcolheaders = lc_one. ELSE. l_worksheet-showrowcolheaders = lc_zero. ENDIF. * * Freeze * io_worksheet->get_freeze_cell( IMPORTING ep_row = lv_freeze_cell_row ep_column = lv_freeze_cell_column ). IF lv_freeze_cell_row IS NOT INITIAL AND lv_freeze_cell_column IS NOT INITIAL. IF lv_freeze_cell_row > 1. l_worksheet-ysplit = lv_freeze_cell_row - 1. ENDIF. IF lv_freeze_cell_column > 1. lv_value = lv_freeze_cell_column - 1. l_worksheet-xsplit = lv_freeze_cell_row - 1. ENDIF. lv_freeze_cell_column_alpha = zcl_excel_common=>convert_column2alpha( ip_column = lv_freeze_cell_column ). lv_value = zcl_excel_common=>number_to_excel_string( ip_value = lv_freeze_cell_row ). CONCATENATE lv_freeze_cell_column_alpha lv_value INTO lv_value. l_worksheet-topleftcell = lv_value. l_worksheet-activepane = 'bottomRight'. l_worksheet-state = 'frozen'. ENDIF. l_worksheet-activecell = io_worksheet->get_active_cell( ). * * Row and column info * lo_column_iterator = io_worksheet->get_columns_iterator( ). IF NOT lo_column_iterator IS BOUND. io_worksheet->calculate_column_widths( ). lo_column_iterator = io_worksheet->get_columns_iterator( ). ENDIF. lo_column_default = io_worksheet->get_default_column( ). IF lo_column_default IS BOUND. IF lo_column_default->get_width( ) >= 0. l_worksheet-defaultcolwidth = lo_column_default->get_width( ). ENDIF. ENDIF. lo_row_default = io_worksheet->get_default_row( ). IF lo_row_default IS BOUND. IF lo_row_default->get_row_height( ) >= 0. l_worksheet-customheight = lc_true. lv_value = lo_row_default->get_row_height( ). ELSE. lv_value = '12.75'. ENDIF. ELSE. lv_value = '12.75'. ENDIF. CONDENSE lv_value. l_worksheet-defaultrowheight = lv_value. lo_row_iterator = io_worksheet->get_rows_iterator( ). WHILE lo_row_iterator->has_next( ) = abap_true. lo_row ?= lo_row_iterator->get_next( ). IF lo_row->get_outline_level( ) > outline_level_row. l_worksheet-outlinelevelrow = lo_row->get_outline_level( ). ENDIF. ENDWHILE. * Set column information (width, style, ...) * IF lo_column_iterator->has_next( ) = abap_true. WHILE lo_column_iterator->has_next( ) = abap_true. lo_column ?= lo_column_iterator->get_next( ). IF lo_column->get_outline_level( ) > outline_level_col. l_worksheet-outlinelevelcol = lo_column->get_outline_level( ). ENDIF. APPEND INITIAL LINE TO l_worksheet-cols ASSIGNING <col>. <col>-min = <col>-max = lo_column->get_column_index( ). <col>-width = lo_column->get_width( ). IF <col>-width < 0. <col>-width = lc_default_col_width. ENDIF. IF lo_column->get_visible( ) = abap_false. <col>-hidden = lc_true. ENDIF. IF lo_column->get_auto_size( ) = abap_true. <col>-bestfit = lc_true. ENDIF. IF lo_column_default IS BOUND. IF lo_column->get_width( ) <> lo_column_default->get_width( ). <col>-customwidth = lc_true. ENDIF. ELSE. <col>-customwidth = lc_true. ENDIF. IF lo_column->get_collapsed( ) = abap_true. <col>-collapsed = lc_true. ENDIF. <col>-outlinelevel = lo_column->get_outline_level( ). lv_style_guid = lo_column->get_column_style_guid( ). <col>-style = me->excel->get_style_index_in_styles( lv_style_guid ) - 1. * * Missing columns * * First collect columns that were already handled before. * The rest has to be inserted now. * lv_column = zcl_excel_common=>convert_column2int( lo_column->get_column_index( ) ). INSERT lv_column INTO TABLE lts_sorted_columns. ENDWHILE. * ENDIF. * * Now find all columns that were missing so far * missing_column-first_column = 1. LOOP AT lts_sorted_columns INTO lv_column. IF lv_column > missing_column-first_column. missing_column-last_column = lv_column - 1. APPEND missing_column TO t_missing_columns. ENDIF. missing_column-first_column = lv_column + 1. ENDLOOP. missing_column-last_column = zcl_excel_common=>c_excel_sheet_max_col. APPEND missing_column TO t_missing_columns. * * Now apply stylesetting and other defaults * LOOP AT t_missing_columns INTO missing_column. APPEND INITIAL LINE TO l_worksheet-cols ASSIGNING <col>. <col>-min = missing_column-first_column. <col>-max = missing_column-last_column. IF lo_column_default IS BOUND AND lo_column_default->get_width( ) >= 0. <col>-width = lo_column_default->get_width( ). ELSE. <col>-width = lc_default_col_width. ENDIF. lv_style_guid = io_worksheet->zif_excel_sheet_properties~get_style( ). <col>-style = me->excel->get_style_index_in_styles( lv_style_guid ) - 1. ENDLOOP. * * Build table to hold all table-areas attached to this sheet * lo_iterator = io_worksheet->get_tables_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_table ?= lo_iterator->if_object_collection_iterator~get_next( ). ls_table_area-left = zcl_excel_common=>convert_column2int( lo_table->settings-top_left_column ). ls_table_area-right = lo_table->get_right_column_integer( ). ls_table_area-top = lo_table->settings-top_left_row. ls_table_area-bottom = lo_table->get_bottom_row_integer( ). INSERT ls_table_area INTO TABLE lt_table_areas. ENDWHILE. * * Build sheet data node * * Spans is constant amongst all rows * col_count = io_worksheet->get_highest_column( ). lv_spans = col_count. CONCATENATE '1:' lv_spans INTO lv_spans. CONDENSE lv_spans. LOOP AT io_worksheet->sheet_content ASSIGNING <sheet_content>. IF ls_last_row-cell_row NE <sheet_content>-cell_row. * * Fill row information. * Cell data is filled in by callback GET_CELLS called from transformation * lv_index = sy-tabix. APPEND INITIAL LINE TO l_worksheet-rows ASSIGNING <row>. <row>-row = <sheet_content>-cell_row. <row>-index = lv_index. <row>-spans = lv_spans. * * Row dimension attributes * lo_row = io_worksheet->get_row( <sheet_content>-cell_row ). IF lo_row->get_visible( ) = abap_false. <row>-hidden = lc_true. ENDIF. IF lo_row->get_row_height( ) >= 0. <row>-customheight = lc_one. <row>-height = lo_row->get_row_height( ). ENDIF. * * Collapsed * IF lo_row->get_collapsed( ) = abap_true. <row>-collapsed = lc_true. ENDIF. * * Outline level * <row>-outlinelevel = lo_row->get_outline_level( ). * * Style * <row>-style = lo_row->get_xf_index( ). IF <row>-style <> 0. <row>-customformat = lc_one. ENDIF. ENDIF. ls_last_row = <sheet_content>. ENDLOOP. * * Merged cells * lt_range_merge = io_worksheet->get_merge( ). IF lt_range_merge IS NOT INITIAL. l_worksheet-mergecells_count = lines( lt_range_merge ). LOOP AT lt_range_merge ASSIGNING <range_merge>. APPEND INITIAL LINE TO l_worksheet-mergecells ASSIGNING <mergecell>. <mergecell>-ref = <range_merge>. io_worksheet->delete_merge( ). ENDLOOP. ENDIF. * * Hyperlinks * l_worksheet-hyperlinks_count = io_worksheet->get_hyperlinks_size( ). IF l_worksheet-hyperlinks_count > 0. lo_iterator = io_worksheet->get_hyperlinks_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_link ?= lo_iterator->if_object_collection_iterator~get_next( ). APPEND INITIAL LINE TO l_worksheet-hyperlinks ASSIGNING <hyperlink>. <hyperlink>-ref = lo_link->get_ref( ). IF lo_link->is_internal( ) = abap_true. <hyperlink>-location = lo_link->get_url( ). ELSE. ADD 1 TO lv_relation_id. lv_value = lv_relation_id. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO lv_value. <hyperlink>-r_id = lv_value. ENDIF. ENDWHILE. ENDIF. * * Print options * IF io_worksheet->print_gridlines = abap_true. l_worksheet-printoptions-gridlines = lc_true. ENDIF. IF io_worksheet->sheet_setup->horizontal_centered = abap_true. l_worksheet-printoptions-horizontalcentered = lc_true. ENDIF. IF io_worksheet->sheet_setup->vertical_centered = abap_true. l_worksheet-printoptions-verticalcentered = lc_true. ENDIF. * * Page margins * l_worksheet-pagemargins-left = io_worksheet->sheet_setup->margin_left. l_worksheet-pagemargins-right = io_worksheet->sheet_setup->margin_right. l_worksheet-pagemargins-top = io_worksheet->sheet_setup->margin_top. l_worksheet-pagemargins-bottom = io_worksheet->sheet_setup->margin_bottom. l_worksheet-pagemargins-header = io_worksheet->sheet_setup->margin_header. l_worksheet-pagemargins-footer = io_worksheet->sheet_setup->margin_footer. * * Page setup * l_worksheet-pagesetup-cellcomments = io_worksheet->sheet_setup->cell_comments. l_worksheet-pagesetup-copies = io_worksheet->sheet_setup->copies. l_worksheet-pagesetup-firstpagenumber = io_worksheet->sheet_setup->first_page_number. l_worksheet-pagesetup-fittopage = io_worksheet->sheet_setup->fit_to_page. l_worksheet-pagesetup-fittoheight = io_worksheet->sheet_setup->fit_to_height. l_worksheet-pagesetup-fittowidth = io_worksheet->sheet_setup->fit_to_width. l_worksheet-pagesetup-horizontaldpi = io_worksheet->sheet_setup->horizontal_dpi. l_worksheet-pagesetup-orientation = io_worksheet->sheet_setup->orientation. l_worksheet-pagesetup-pageorder = io_worksheet->sheet_setup->page_order. l_worksheet-pagesetup-paperheight = io_worksheet->sheet_setup->paper_height. l_worksheet-pagesetup-papersize = io_worksheet->sheet_setup->paper_size. l_worksheet-pagesetup-paperwidth = io_worksheet->sheet_setup->paper_width. l_worksheet-pagesetup-scale = io_worksheet->sheet_setup->scale. l_worksheet-pagesetup-usefirstpagenumber = io_worksheet->sheet_setup->use_first_page_num. l_worksheet-pagesetup-verticaldpi = io_worksheet->sheet_setup->vertical_dpi. IF io_worksheet->sheet_setup->black_and_white IS NOT INITIAL. l_worksheet-pagesetup-blackandwhite = lc_one. ENDIF. IF io_worksheet->sheet_setup->draft IS NOT INITIAL. l_worksheet-pagesetup-draft = lc_one. ENDIF. IF io_worksheet->sheet_setup->errors IS NOT INITIAL. l_worksheet-pagesetup-errors = io_worksheet->sheet_setup->errors. ENDIF. IF io_worksheet->sheet_setup->use_printer_defaults IS NOT INITIAL. l_worksheet-pagesetup-useprinterdefaults = lc_one. ENDIF. * * Header and footer * IF io_worksheet->sheet_setup->diff_oddeven_headerfooter = abap_true. l_worksheet-headerfooter-differentoddeven = lc_one. ENDIF. io_worksheet->sheet_setup->get_header_footer_string( IMPORTING ep_odd_header = l_worksheet-headerfooter-oddheader ep_odd_footer = l_worksheet-headerfooter-oddfooter ep_even_header = l_worksheet-headerfooter-evenheader ep_even_footer = l_worksheet-headerfooter-evenfooter ). * * Drawings * lo_drawings = io_worksheet->get_drawings( ). IF lo_drawings->is_empty( ) = abap_false. ADD 1 TO lv_relation_id. lv_value = lv_relation_id. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO l_worksheet-drawings. ENDIF. * * Tables * l_worksheet-tables_count = io_worksheet->get_tables_size( ). IF l_worksheet-tables_count > 0. lo_iterator = io_worksheet->get_tables_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_table ?= lo_iterator->if_object_collection_iterator~get_next( ). APPEND INITIAL LINE TO l_worksheet-tables ASSIGNING <table>. ADD 1 TO lv_relation_id. lv_value = lv_relation_id. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO <table>-r_id. ENDWHILE. ENDIF. ********************************************************************** * STEP 2: Create XML me->worksheet = io_worksheet. "Neccessary for callback GET_CELL CALL TRANSFORMATION zexcel_tr_sheet SOURCE worksheet = l_worksheet cells = me->cells writer = me OPTIONS xml_header = 'full' RESULT XML ep_content. ENDMETHOD. "CREATE_XL_SHEET METHOD get_cells. * * Callback method from transformation ZEXCEL_TR_SHEET * * The method fills the data cells for each row. * This saves memory if there are many rows. * DATA: lv_cell_style TYPE zexcel_cell_style. FIELD-SYMBOLS: <cell> TYPE ty_cell, <content> TYPE zexcel_s_cell_data, <style> TYPE zexcel_s_styles_mapping. CLEAR cells. LOOP AT worksheet->sheet_content FROM i_index ASSIGNING <content>. IF <content>-cell_row <> i_row. * * End of row * EXIT. ENDIF. * * Determine style index * IF lv_cell_style <> <content>-cell_style. lv_cell_style = <content>-cell_style. UNASSIGN <style>. IF lv_cell_style IS NOT INITIAL. READ TABLE styles_mapping ASSIGNING <style> WITH KEY guid = lv_cell_style. ENDIF. ENDIF. * * Add a new cell * APPEND INITIAL LINE TO cells ASSIGNING <cell>. <cell>-name = <content>-cell_coords. <cell>-formula = <content>-cell_formula. <cell>-type = <content>-data_type. IF <cell>-type = 's'. <cell>-value = me->get_shared_string_index( <content>-cell_value ). ELSE. <cell>-value = <content>-cell_value. ENDIF. IF <style> IS ASSIGNED. <cell>-style = <style>-style. ELSE. <cell>-style = -1. ENDIF. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 4871, 1168, 5097, 62, 6369, 34, 3698, 62, 18564, 2043, 1137, 62, 39, 41251, 62, 25664, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1168, 5097, 62, 6369, 34, 3698, 62, 18564, 2043, 1137, 62, 12726, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 3858, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 3846, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 41876, 269, 406, 49494, 838, 11, 366, 29697, 10163, 2231, 3134, 1, 198, 220, 220, 220, 220, 220, 220, 220, 3918, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2099, 41876, 269, 406, 49494, 860, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10451, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 3846, 764, 628, 220, 1366, 25, 198, 220, 220, 220, 4778, 41876, 49053, 9795, 43679, 3963, 1259, 62, 3846, 764, 628, 220, 5050, 17151, 62, 5222, 3069, 50, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 49, 3913, 2099, 314, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 12115, 6369, 2099, 314, 764, 198, 24326, 2665, 13, 628, 220, 5050, 29244, 6158, 62, 32457, 62, 9693, 1503, 1961, 18601, 20754, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 29244, 6158, 62, 32457, 62, 9693, 36, 2767, 198, 220, 220, 220, 34087, 17750, 764, 198, 19734, 2665, 13, 628, 220, 1366, 30936, 9693, 36, 2767, 2099, 1006, 284, 1168, 5097, 62, 6369, 34, 3698, 62, 33249, 9693, 36, 2767, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6369, 34, 3698, 62, 18564, 2043, 1137, 62, 39, 41251, 62, 25664, 30023, 2538, 10979, 6234, 13, 628, 198, 49273, 2251, 62, 87, 75, 62, 28710, 37336, 13, 198, 9, 198, 9, 2297, 891, 17750, 1262, 2829, 13389, 2427, 286, 7852, 62, 10426, 5805, 198, 9, 198, 1174, 20217, 10139, 1438, 628, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 40379, 62, 15763, 11, 198, 220, 220, 220, 220, 220, 954, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 3748, 62, 9127, 41876, 4731, 11, 198, 220, 220, 220, 23578, 3963, 40379, 62, 15763, 13, 628, 220, 42865, 25, 198, 220, 220, 220, 300, 85, 62, 12957, 62, 40845, 62, 10641, 41876, 1149, 16, 11, 198, 220, 220, 220, 300, 85, 62, 259, 12102, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 13, 628, 220, 42865, 25, 198, 220, 220, 220, 2376, 62, 48727, 220, 41876, 4526, 37, 5390, 537, 62, 15252, 62, 43681, 62, 48727, 11, 198, 220, 220, 220, 2376, 62, 5225, 25473, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 5225, 25473, 13, 628, 220, 42865, 25, 198, 220, 220, 220, 43979, 62, 15763, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 40379, 62, 15763, 11, 198, 220, 220, 220, 300, 83, 62, 3846, 62, 7890, 220, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 83, 62, 3846, 62, 7890, 62, 13271, 9741, 11, 198, 220, 220, 220, 43979, 62, 28710, 62, 8841, 41876, 1976, 1069, 5276, 62, 82, 62, 28710, 62, 8841, 11, 198, 220, 220, 220, 300, 85, 62, 1837, 8658, 844, 220, 220, 220, 220, 220, 220, 41876, 827, 8658, 844, 13, 628, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 198, 220, 220, 220, 1279, 21760, 62, 11299, 29, 220, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 82, 62, 3846, 62, 7890, 13, 198, 198, 17174, 17174, 2466, 1174, 198, 9, 49154, 657, 25, 10934, 797, 25636, 329, 12515, 3435, 198, 220, 42001, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 354, 945, 1096, 13, 198, 220, 220, 220, 42099, 352, 13, 6780, 62, 12957, 62, 40845, 62, 10641, 796, 537, 62, 397, 499, 62, 42946, 62, 259, 62, 344, 14804, 18863, 14415, 7, 14280, 6739, 220, 366, 18402, 220, 220, 220, 220, 287, 1729, 12, 3118, 291, 1098, 198, 220, 220, 220, 42099, 362, 13, 6780, 62, 12957, 62, 40845, 62, 10641, 796, 537, 62, 397, 499, 62, 42946, 62, 259, 62, 344, 14804, 18863, 14415, 7, 45021, 2091, 1267, 526, 376, 5777, 35, 220, 220, 287, 34371, 198, 220, 23578, 34, 11159, 13, 198, 220, 39962, 1404, 1677, 6158, 44438, 61, 59, 77, 59, 83, 59, 81, 532, 6, 300, 85, 62, 12957, 62, 40845, 62, 10641, 705, 49946, 39319, 300, 85, 62, 259, 12102, 13, 198, 198, 17174, 17174, 2466, 1174, 198, 9, 49154, 352, 25, 9745, 13042, 422, 1123, 2499, 25473, 628, 220, 2376, 62, 48727, 796, 27336, 3784, 1136, 62, 5225, 258, 1039, 62, 48727, 7, 6739, 628, 220, 7655, 41119, 2376, 62, 48727, 3784, 361, 62, 15252, 62, 43681, 62, 48727, 93, 10134, 62, 19545, 7, 1267, 36529, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 2376, 62, 5225, 25473, 5633, 28, 2376, 62, 48727, 3784, 361, 62, 15252, 62, 43681, 62, 48727, 93, 1136, 62, 19545, 7, 6739, 198, 220, 220, 220, 43504, 10619, 43277, 1546, 3963, 2376, 62, 5225, 25473, 3784, 21760, 62, 11299, 5390, 300, 83, 62, 3846, 62, 7890, 13, 198, 220, 23578, 12418, 41119, 13, 628, 220, 5550, 2538, 9328, 300, 83, 62, 3846, 62, 7890, 33411, 2685, 62, 687, 4712, 3180, 5626, 3268, 2043, 12576, 366, 12233, 10451, 2695, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6375, 1366, 62, 4906, 220, 220, 220, 10635, 705, 82, 4458, 220, 220, 220, 220, 220, 220, 220, 366, 337, 85, 34, 25, 5514, 4888, 13042, 628, 220, 43979, 62, 15763, 12, 9127, 796, 3951, 7, 300, 83, 62, 3846, 62, 7890, 6739, 198, 220, 7102, 35, 24290, 43979, 62, 15763, 12, 9127, 13, 628, 220, 311, 9863, 300, 83, 62, 3846, 62, 7890, 11050, 2685, 62, 8367, 1366, 62, 4906, 13, 198, 220, 5550, 2538, 9328, 5984, 41, 2246, 3525, 35480, 31484, 29462, 16034, 300, 83, 62, 3846, 62 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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ATE PUBLIC. PUBLIC SECTION. METHODS constructor. PROTECTED SECTION. METHODS inspect_statements REDEFINITION. METHODS inspect_tokens REDEFINITION. PRIVATE SECTION. DATA method_counter TYPE i VALUE 0. METHODS check_result IMPORTING structure TYPE sstruc. ENDCLASS. CLASS Y_CHECK_NUMBER_METHODS IMPLEMENTATION. METHOD constructor. super->constructor( ). settings-pseudo_comment = '"#EC NUMBER_METHODS' ##NO_TEXT. settings-threshold = 20. settings-documentation = |{ c_docs_path-checks }number-methods.md|. relevant_statement_types = VALUE #( ( scan_struc_stmnt_type-class_definition ) ( scan_struc_stmnt_type-interface ) ). relevant_structure_types = VALUE #( ). set_check_message( 'Number of methods must be lower than &2! (&1>=&2)' ). ENDMETHOD. METHOD inspect_statements. method_counter = 0. super->inspect_statements( structure ). check_result( structure ). ENDMETHOD. METHOD inspect_tokens. CASE get_token_abs( statement-from ). WHEN 'METHODS' OR 'CLASS-METHODS'. ADD 1 TO method_counter. ENDCASE. ENDMETHOD. METHOD check_result. DATA(statement) = ref_scan_manager->statements[ structure-stmnt_from ]. DATA(check_configuration) = detect_check_configuration( error_count = method_counter statement = statement ). IF check_configuration IS INITIAL. RETURN. ENDIF. raise_error( statement_level = statement-level statement_index = structure-stmnt_from statement_from = statement-from error_priority = check_configuration-prio parameter_01 = |{ method_counter }| parameter_02 = |{ check_configuration-threshold }| ). ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9122, 62, 17618, 62, 24396, 82, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 331, 62, 9122, 62, 8692, 29244, 6158, 44731, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 10104, 62, 14269, 3196, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 10104, 62, 83, 482, 641, 23848, 36, 20032, 17941, 13, 628, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 2446, 62, 24588, 41876, 1312, 26173, 8924, 657, 13, 628, 220, 220, 220, 337, 36252, 50, 2198, 62, 20274, 30023, 9863, 2751, 4645, 41876, 264, 19554, 66, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 575, 62, 50084, 62, 41359, 13246, 62, 49273, 50, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 628, 220, 220, 220, 6460, 12, 7752, 12003, 62, 23893, 796, 705, 1, 2, 2943, 36871, 13246, 62, 49273, 50, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 6460, 12, 400, 10126, 796, 1160, 13, 198, 220, 220, 220, 6460, 12, 22897, 341, 796, 930, 90, 269, 62, 31628, 62, 6978, 12, 42116, 1782, 17618, 12, 24396, 82, 13, 9132, 91, 13, 628, 220, 220, 220, 5981, 62, 26090, 62, 19199, 796, 26173, 8924, 1303, 7, 357, 9367, 62, 19554, 66, 62, 301, 76, 429, 62, 4906, 12, 4871, 62, 46758, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 9367, 62, 19554, 66, 62, 301, 76, 429, 62, 4906, 12, 39994, 1267, 6739, 628, 220, 220, 220, 5981, 62, 301, 5620, 62, 19199, 796, 26173, 8924, 1303, 7, 6739, 628, 220, 220, 220, 900, 62, 9122, 62, 20500, 7, 705, 15057, 286, 5050, 1276, 307, 2793, 621, 1222, 17, 0, 35494, 16, 29, 28, 5, 17, 33047, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 10104, 62, 14269, 3196, 13, 198, 220, 220, 220, 2446, 62, 24588, 796, 657, 13, 628, 220, 220, 220, 2208, 3784, 1040, 806, 62, 14269, 3196, 7, 4645, 6739, 628, 220, 220, 220, 2198, 62, 20274, 7, 4645, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 10104, 62, 83, 482, 641, 13, 198, 220, 220, 220, 42001, 651, 62, 30001, 62, 8937, 7, 2643, 12, 6738, 6739, 198, 220, 220, 220, 220, 220, 42099, 705, 49273, 50, 6, 6375, 705, 31631, 12, 49273, 50, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 27841, 352, 5390, 2446, 62, 24588, 13, 198, 220, 220, 220, 23578, 34, 11159, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 2198, 62, 20274, 13, 198, 220, 220, 220, 42865, 7, 26090, 8, 796, 1006, 62, 35836, 62, 37153, 3784, 14269, 3196, 58, 4645, 12, 301, 76, 429, 62, 6738, 20740, 628, 220, 220, 220, 42865, 7, 9122, 62, 11250, 3924, 8, 796, 4886, 62, 9122, 62, 11250, 3924, 7, 4049, 62, 9127, 796, 2446, 62, 24588, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 796, 2643, 6739, 198, 220, 220, 220, 16876, 2198, 62, 11250, 3924, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 5298, 62, 18224, 7, 2643, 62, 5715, 220, 220, 220, 220, 796, 2643, 12, 5715, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 9630, 220, 220, 220, 220, 796, 4645, 12, 301, 76, 429, 62, 6738, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 6738, 220, 220, 220, 220, 220, 796, 2643, 12, 6738, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4049, 62, 49336, 220, 220, 220, 220, 220, 796, 2198, 62, 11250, 3924, 12, 3448, 78, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11507, 62, 486, 220, 220, 220, 220, 220, 220, 220, 796, 930, 90, 2446, 62, 24588, 1782, 91, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11507, 62, 2999, 220, 220, 220, 220, 220, 220, 220, 796, 930, 90, 2198, 62, 11250, 3924, 12, 400, 10126, 1782, 91, 6739, 628, 220, 23578, 49273, 13, 628, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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947, 300, 83, 62, 21943, 41876, 43679, 3963, 4731, 13, 198, 21982, 3185, 5161, 300, 83, 62, 21943, 39319, 42865, 7, 6780, 62, 21943, 737, 198, 220, 366, 16926, 46, 3423, 318, 257, 5021, 12, 1370, 284, 12, 4598, 198, 220, 366, 220, 351, 513, 3951, 326, 198, 220, 366, 220, 886, 994, 198, 220, 44423, 300, 85, 62, 21943, 13, 198, 10619, 21982, 3185, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_amsd DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. METHODS: constructor IMPORTING is_item TYPE zif_abapgit_definitions=>ty_item iv_language TYPE spras RAISING zcx_abapgit_exception. PROTECTED SECTION. PRIVATE SECTION. METHODS: clear_fields CHANGING cs_logical_db_schema TYPE any, clear_field IMPORTING iv_fieldname TYPE csequence CHANGING cs_logical_db_schema TYPE any, fill_metadata_from_db CHANGING cs_logical_db_schema TYPE any RAISING zcx_abapgit_exception, get_wb_object_operator RETURNING VALUE(ri_wb_object_operator) TYPE REF TO object RAISING zcx_abapgit_exception. DATA: mr_logical_db_schema TYPE REF TO data, mv_logical_db_schema_key TYPE seu_objkey, mi_persistence TYPE REF TO if_wb_object_persist, mi_wb_object_operator TYPE REF TO object. ENDCLASS. CLASS zcl_abapgit_object_amsd IMPLEMENTATION. METHOD clear_field. FIELD-SYMBOLS: <lv_value> TYPE data. ASSIGN COMPONENT iv_fieldname OF STRUCTURE cs_logical_db_schema TO <lv_value>. ASSERT sy-subrc = 0. CLEAR: <lv_value>. ENDMETHOD. METHOD clear_fields. clear_field( EXPORTING iv_fieldname = 'METADATA-CREATED_AT' CHANGING cs_logical_db_schema = cs_logical_db_schema ). clear_field( EXPORTING iv_fieldname = 'METADATA-CREATED_BY' CHANGING cs_logical_db_schema = cs_logical_db_schema ). clear_field( EXPORTING iv_fieldname = 'METADATA-CHANGED_AT' CHANGING cs_logical_db_schema = cs_logical_db_schema ). clear_field( EXPORTING iv_fieldname = 'METADATA-CHANGED_BY' CHANGING cs_logical_db_schema = cs_logical_db_schema ). ENDMETHOD. METHOD constructor. super->constructor( is_item = is_item iv_language = iv_language ). mv_logical_db_schema_key = ms_item-obj_name. TRY. CREATE DATA mr_logical_db_schema TYPE ('CL_AMDP_SCHEMA_OBJECT_DATA=>TY_OBJECT_DATA'). CREATE OBJECT mi_persistence TYPE ('CL_AMDP_SCHEMA_OBJECT_PERSIST'). CATCH cx_sy_create_error. zcx_abapgit_exception=>raise( |AMSD not supported by your NW release| ). ENDTRY. ENDMETHOD. METHOD fill_metadata_from_db. DATA: li_wb_object_operator TYPE REF TO object, lr_logical_db_schema_old TYPE REF TO data. FIELD-SYMBOLS: <ls_logical_db_schema_old> TYPE any, <lv_created_at> TYPE xsddatetime_z, <lv_created_by> TYPE syuname, <lv_created_at_old> TYPE xsddatetime_z, <lv_created_by_old> TYPE syuname. li_wb_object_operator = get_wb_object_operator( ). CREATE DATA lr_logical_db_schema_old TYPE ('CL_AMDP_SCHEMA_OBJECT_DATA=>TY_OBJECT_DATA'). ASSIGN lr_logical_db_schema_old->* TO <ls_logical_db_schema_old>. ASSERT sy-subrc = 0. CALL METHOD li_wb_object_operator->('IF_WB_OBJECT_OPERATOR~READ') IMPORTING data = <ls_logical_db_schema_old>. ASSIGN COMPONENT 'METADATA-CREATED_BY' OF STRUCTURE cs_logical_db_schema TO <lv_created_by>. ASSERT sy-subrc = 0. ASSIGN COMPONENT 'METADATA-CREATED_AT' OF STRUCTURE cs_logical_db_schema TO <lv_created_at>. ASSERT sy-subrc = 0. ASSIGN COMPONENT 'METADATA-CREATED_BY' OF STRUCTURE <ls_logical_db_schema_old> TO <lv_created_by_old>. ASSERT sy-subrc = 0. ASSIGN COMPONENT 'METADATA-CREATED_AT' OF STRUCTURE <ls_logical_db_schema_old> TO <lv_created_at_old>. ASSERT sy-subrc = 0. <lv_created_at> = <lv_created_at_old>. <lv_created_by> = <lv_created_by_old>. ENDMETHOD. METHOD get_wb_object_operator. DATA: ls_object_type TYPE wbobjtype, lx_error TYPE REF TO cx_root. IF mi_wb_object_operator IS BOUND. ri_wb_object_operator = mi_wb_object_operator. ENDIF. ls_object_type-objtype_tr = 'AMSD'. ls_object_type-subtype_wb = 'TYP'. TRY. CALL METHOD ('CL_WB_OBJECT_OPERATOR')=>('CREATE_INSTANCE') EXPORTING object_type = ls_object_type object_key = mv_logical_db_schema_key RECEIVING result = mi_wb_object_operator. CATCH cx_root INTO lx_error. zcx_abapgit_exception=>raise_with_text( lx_error ). ENDTRY. ri_wb_object_operator = mi_wb_object_operator. ENDMETHOD. METHOD zif_abapgit_object~changed_by. DATA: li_wb_object_operator TYPE REF TO object, li_object_data_model TYPE REF TO if_wb_object_data_model, lx_error TYPE REF TO cx_root. TRY. li_wb_object_operator = get_wb_object_operator( ). CALL METHOD li_wb_object_operator->('IF_WB_OBJECT_OPERATOR~READ') IMPORTING eo_object_data = li_object_data_model. rv_user = li_object_data_model->get_changed_by( ). CATCH cx_root INTO lx_error. zcx_abapgit_exception=>raise_with_text( lx_error ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: li_wb_object_operator TYPE REF TO object, lx_error TYPE REF TO cx_root. li_wb_object_operator = get_wb_object_operator( ). TRY. CALL METHOD li_wb_object_operator->('IF_WB_OBJECT_OPERATOR~DELETE') EXPORTING transport_request = iv_transport. CATCH cx_root INTO lx_error. zcx_abapgit_exception=>raise_with_text( lx_error ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: li_object_data_model TYPE REF TO if_wb_object_data_model, li_wb_object_operator TYPE REF TO object, lx_error TYPE REF TO cx_root. FIELD-SYMBOLS: <ls_logical_db_schema> TYPE any. ASSIGN mr_logical_db_schema->* TO <ls_logical_db_schema>. ASSERT sy-subrc = 0. io_xml->read( EXPORTING iv_name = 'AMSD' CHANGING cg_data = <ls_logical_db_schema> ). li_wb_object_operator = get_wb_object_operator( ). TRY. CREATE OBJECT li_object_data_model TYPE ('CL_AMDP_SCHEMA_OBJECT_DATA'). tadir_insert( iv_package ). IF zif_abapgit_object~exists( ) = abap_true. " We need to populate created_at, created_by, because otherwise update is not possible fill_metadata_from_db( CHANGING cs_logical_db_schema = <ls_logical_db_schema> ). li_object_data_model->set_data( <ls_logical_db_schema> ). CALL METHOD li_wb_object_operator->('IF_WB_OBJECT_OPERATOR~UPDATE') EXPORTING io_object_data = li_object_data_model transport_request = iv_transport. ELSE. li_object_data_model->set_data( <ls_logical_db_schema> ). CALL METHOD li_wb_object_operator->('IF_WB_OBJECT_OPERATOR~CREATE') EXPORTING io_object_data = li_object_data_model data_selection = 'P' " if_wb_object_data_selection_co=>c_properties package = iv_package transport_request = iv_transport. CALL METHOD li_wb_object_operator->('IF_WB_OBJECT_OPERATOR~UPDATE') EXPORTING io_object_data = li_object_data_model data_selection = 'D' " if_wb_object_data_selection_co=>c_data_content transport_request = iv_transport. ENDIF. CALL METHOD li_wb_object_operator->('IF_WB_OBJECT_OPERATOR~ACTIVATE'). corr_insert( iv_package ). CATCH cx_root INTO lx_error. zcx_abapgit_exception=>raise_with_text( lx_error ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~exists. TRY. mi_persistence->get( p_object_key = mv_logical_db_schema_key p_version = 'A' p_existence_check_only = abap_true ). rv_bool = abap_true. CATCH cx_swb_exception. rv_bool = abap_false. ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). rs_metadata-delete_tadir = abap_true. ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'ESWB_EO' iv_argument = |{ ms_item-obj_type }{ ms_item-obj_name }| ). ENDMETHOD. METHOD zif_abapgit_object~jump. " Covered by ZCL_ABAPGIT_OBJECTS=>JUMP ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: li_object_data_model TYPE REF TO if_wb_object_data_model, lx_error TYPE REF TO cx_root, li_wb_object_operator TYPE REF TO object. FIELD-SYMBOLS: <ls_logical_db_schema> TYPE any. ASSIGN mr_logical_db_schema->* TO <ls_logical_db_schema>. ASSERT sy-subrc = 0. li_wb_object_operator = get_wb_object_operator( ). TRY. CALL METHOD li_wb_object_operator->('IF_WB_OBJECT_OPERATOR~READ') EXPORTING version = 'A' IMPORTING data = <ls_logical_db_schema> eo_object_data = li_object_data_model. clear_fields( CHANGING cs_logical_db_schema = <ls_logical_db_schema> ). CATCH cx_root INTO lx_error. zcx_abapgit_exception=>raise_with_text( lx_error ). ENDTRY. io_xml->add( iv_name = 'AMSD' ig_data = <ls_logical_db_schema> ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 4105, 67, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 9186, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 41876, 7500, 292, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 1598, 62, 25747, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 6404, 605, 62, 9945, 62, 15952, 2611, 41876, 597, 11, 628, 220, 220, 220, 220, 220, 1598, 62, 3245, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3245, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 43167, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 6404, 605, 62, 9945, 62, 15952, 2611, 41876, 597, 11, 628, 220, 220, 220, 220, 220, 6070, 62, 38993, 62, 6738, 62, 9945, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 6404, 605, 62, 9945, 62, 15952, 2611, 41876, 597, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 628, 220, 220, 220, 220, 220, 651, 62, 39346, 62, 15252, 62, 46616, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 39346, 62, 15252, 62, 46616, 8, 41876, 4526, 37, 5390, 2134, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 285, 81, 62, 6404, 605, 62, 9945, 62, 15952, 2611, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1366, 11, 198, 220, 220, 220, 220, 220, 285, 85, 62, 6404, 605, 62, 9945, 62, 15952, 2611, 62, 2539, 41876, 384, 84, 62, 26801, 2539, 11, 198, 220, 220, 220, 220, 220, 21504, 62, 19276, 13274, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 39346, 62, 15252, 62, 19276, 396, 11, 198, 220, 220, 220, 220, 220, 21504, 62, 39346, 62, 15252, 62, 46616, 220, 220, 220, 41876, 4526, 37, 5390, 2134, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 4105, 67, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1598, 62, 3245, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 6780, 62, 8367, 29, 41876, 1366, 13, 628, 220, 220, 220, 24994, 16284, 24301, 1340, 3525, 21628, 62, 3245, 3672, 3963, 19269, 18415, 11335, 50115, 62, 6404, 605, 62, 9945, 62, 15952, 2611, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5390, 1279, 6780, 62, 8367, 28401, 198, 220, 220, 220, 24994, 17395, 827, 12, 7266, 6015, 796, 657, 13, 628, 220, 220, 220, 30301, 1503, 25, 1279, 6780, 62, 8367, 28401, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1598, 62, 25747, 13, 628, 220, 220, 220, 1598, 62, 3245, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3245, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 47123, 2885, 13563, 12, 43387, 11617, 62, 1404, 6, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 6404, 605, 62, 9945, 62, 15952, 2611, 796, 50115, 62, 6404, 605, 62, 9945, 62, 15952, 2611, 6739, 628, 220, 220, 220, 1598, 62, 3245, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3245, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 47123, 2885, 13563, 12, 43387, 11617, 62, 17513, 6, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 6404, 605, 62, 9945, 62, 15952, 2611, 796, 50115, 62, 6404, 605, 62, 9945, 62, 15952, 2611, 6739, 628, 220, 220, 220, 1598, 62, 3245, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3245, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 47123, 2885, 13563, 12, 3398, 15567, 1961, 62, 1404, 6, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 6404, 605, 62, 9945, 62, 15952, 2611, 796, 50115, 62, 6404, 605, 62, 9945, 62, 15952, 2611, 6739, 628, 220, 220, 220, 1598, 62, 3245, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
* See https://github.com/se38/abapFaker ******************************************************************************** * The MIT License (MIT) * * Copyright (c) 2018 abapFaker Contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. ******************************************************************************** CLASS zcl_faker_date_de_de DEFINITION PUBLIC INHERITING FROM zcl_faker_provider_date FINAL CREATE PUBLIC . PUBLIC SECTION. METHODS constructor IMPORTING i_faker TYPE REF TO zcl_faker. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_faker_date_de_de IMPLEMENTATION. METHOD constructor. super->constructor( i_faker ). _format = |DD.MM.YYYY|. ENDMETHOD. ENDCLASS.
[ 9, 4091, 3740, 1378, 12567, 13, 785, 14, 325, 2548, 14, 397, 499, 37, 3110, 198, 17174, 17174, 8412, 198, 9, 383, 17168, 13789, 357, 36393, 8, 198, 9, 198, 9, 15069, 357, 66, 8, 2864, 450, 499, 37, 3110, 25767, 669, 198, 9, 198, 9, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 9, 286, 428, 3788, 290, 3917, 10314, 3696, 357, 1169, 366, 25423, 12340, 284, 1730, 198, 9, 287, 262, 10442, 1231, 17504, 11, 1390, 1231, 17385, 262, 2489, 198, 9, 284, 779, 11, 4866, 11, 13096, 11, 20121, 11, 7715, 11, 14983, 11, 850, 43085, 11, 290, 14, 273, 3677, 198, 9, 9088, 286, 262, 10442, 11, 290, 284, 8749, 6506, 284, 4150, 262, 10442, 318, 198, 9, 30760, 284, 466, 523, 11, 2426, 284, 262, 1708, 3403, 25, 198, 9, 198, 9, 383, 2029, 6634, 4003, 290, 428, 7170, 4003, 2236, 307, 3017, 287, 477, 198, 9, 9088, 393, 8904, 16690, 286, 262, 10442, 13, 198, 9, 198, 9, 3336, 47466, 3180, 36592, 2389, 1961, 366, 1921, 3180, 1600, 42881, 34764, 56, 3963, 15529, 509, 12115, 11, 7788, 32761, 6375, 198, 9, 8959, 49094, 11, 47783, 2751, 21728, 5626, 40880, 5390, 3336, 34764, 11015, 3963, 34482, 3398, 1565, 5603, 25382, 11, 198, 9, 376, 46144, 7473, 317, 16652, 2149, 37232, 33079, 48933, 5357, 44521, 1268, 10913, 2751, 12529, 13, 3268, 8005, 49261, 50163, 3336, 198, 9, 37195, 20673, 6375, 27975, 38162, 9947, 367, 15173, 4877, 9348, 43031, 19146, 7473, 15529, 47666, 3955, 11, 29506, 25552, 6375, 25401, 198, 9, 43031, 25382, 11, 7655, 2767, 16879, 3268, 3537, 40282, 3963, 27342, 10659, 11, 309, 9863, 6375, 25401, 54, 24352, 11, 5923, 1797, 2751, 16034, 11, 198, 9, 16289, 3963, 6375, 3268, 7102, 45, 24565, 13315, 3336, 47466, 6375, 3336, 23210, 6375, 25401, 5550, 1847, 20754, 3268, 3336, 198, 9, 47466, 13, 198, 17174, 17174, 8412, 198, 198, 31631, 1976, 565, 62, 69, 3110, 62, 4475, 62, 2934, 62, 2934, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 69, 3110, 62, 15234, 1304, 62, 4475, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 1312, 62, 69, 3110, 41876, 4526, 37, 5390, 1976, 565, 62, 69, 3110, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 69, 3110, 62, 4475, 62, 2934, 62, 2934, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 1312, 62, 69, 3110, 6739, 628, 220, 220, 220, 4808, 18982, 796, 930, 16458, 13, 12038, 13, 26314, 26314, 91, 13, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_abapgit_object~mo_files. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_TTYP IMPLEMENTATION. METHOD zif_abapgit_object~changed_by. SELECT SINGLE as4user FROM dd40l INTO rv_user WHERE typename = ms_item-obj_name AND as4local = 'A'. IF sy-subrc <> 0. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. IF zif_abapgit_object~exists( ) = abap_false. RETURN. ENDIF. delete_ddic( 'A' ). ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lv_name TYPE ddobjname, lt_dd42v TYPE dd42v_tab, lt_dd43v TYPE dd43v_tab, ls_dd40v TYPE dd40v, lv_msg TYPE string. io_xml->read( EXPORTING iv_name = 'DD40V' CHANGING cg_data = ls_dd40v ). " DDIC Step: Replace REF TO class/interface with generic reference to avoid cyclic dependency IF iv_step = zif_abapgit_object=>gc_step_id-ddic AND ls_dd40v-datatype = 'REF'. ls_dd40v-rowtype = 'OBJECT'. ELSEIF iv_step = zif_abapgit_object=>gc_step_id-late AND ls_dd40v-datatype <> 'REF'. RETURN. " already active ENDIF. io_xml->read( EXPORTING iv_name = 'DD42V' CHANGING cg_data = lt_dd42v ). io_xml->read( EXPORTING iv_name = 'DD43V' CHANGING cg_data = lt_dd43v ). corr_insert( iv_package = iv_package ig_object_class = 'DICT' ). lv_name = ms_item-obj_name. " type conversion CALL FUNCTION 'DDIF_TTYP_PUT' EXPORTING name = lv_name dd40v_wa = ls_dd40v TABLES dd42v_tab = lt_dd42v dd43v_tab = lt_dd43v EXCEPTIONS ttyp_not_found = 1 name_inconsistent = 2 ttyp_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. lv_msg = |Error in DDIF_TTYP_PUT on object { lv_name }|. CASE sy-subrc. WHEN 1. lv_msg = lv_msg && | (TTYP_NOT_FOUND)|. WHEN 2. lv_msg = lv_msg && | (NAME_INCONSISTENT)|. WHEN 3. lv_msg = lv_msg && | (TTYP_INCONSISTENT)|. WHEN 4. lv_msg = lv_msg && | (PUT_FAILURE)|. WHEN 5. lv_msg = lv_msg && | (PUT_REFUSED)|. WHEN OTHERS. ENDCASE. zcx_abapgit_exception=>raise( lv_msg ). ENDIF. zcl_abapgit_objects_activation=>add_item( ms_item ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_typename TYPE dd40l-typename. SELECT SINGLE typename FROM dd40l INTO lv_typename WHERE typename = ms_item-obj_name. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-ddic TO rt_steps. APPEND zif_abapgit_object=>gc_step_id-late TO rt_steps. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). rs_metadata-ddic = abap_true. ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'ESDICT' iv_argument = |{ ms_item-obj_type }{ ms_item-obj_name }| ). ENDMETHOD. METHOD zif_abapgit_object~jump. jump_se11( iv_radio = 'RSRD1-DDTYPE' iv_field = 'RSRD1-DDTYPE_VAL' ). ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_name TYPE ddobjname, lt_dd42v TYPE dd42v_tab, lt_dd43v TYPE dd43v_tab, ls_dd40v TYPE dd40v. lv_name = ms_item-obj_name. CALL FUNCTION 'DDIF_TTYP_GET' EXPORTING name = lv_name state = 'A' langu = mv_language IMPORTING dd40v_wa = ls_dd40v TABLES dd42v_tab = lt_dd42v dd43v_tab = lt_dd43v EXCEPTIONS illegal_input = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. IF ls_dd40v IS INITIAL. RETURN. " does not exist in system ENDIF. CLEAR: ls_dd40v-as4user, ls_dd40v-as4date, ls_dd40v-as4time. IF NOT ls_dd40v-rowkind IS INITIAL. CLEAR ls_dd40v-typelen. ENDIF. io_xml->add( iv_name = 'DD40V' ig_data = ls_dd40v ). io_xml->add( iv_name = 'DD42V' ig_data = lt_dd42v ). io_xml->add( iv_name = 'DD43V' ig_data = lt_dd43v ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 83, 28004, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 51, 9936, 47, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 628, 220, 220, 220, 33493, 311, 2751, 2538, 355, 19, 7220, 16034, 49427, 1821, 75, 39319, 374, 85, 62, 7220, 198, 220, 220, 220, 220, 220, 33411, 2170, 12453, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 198, 220, 220, 220, 220, 220, 5357, 355, 19, 12001, 796, 705, 32, 4458, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 374, 85, 62, 7220, 796, 269, 62, 7220, 62, 34680, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 33678, 13, 628, 220, 220, 220, 16876, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1069, 1023, 7, 1267, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 12233, 62, 1860, 291, 7, 705, 32, 6, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 8906, 48499, 1096, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 3672, 220, 41876, 49427, 26801, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 1860, 3682, 85, 41876, 49427, 3682, 85, 62, 8658, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 1860, 3559, 85, 41876, 49427, 3559, 85, 62, 8658, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 1860, 1821, 85, 41876, 49427, 1821, 85, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 19662, 220, 220, 41876, 4731, 13, 628, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 16458, 1821, 53, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 269, 70, 62, 7890, 796, 43979, 62, 1860, 1821, 85, 6739, 628, 220, 220, 220, 366, 20084, 2149, 5012, 25, 40177, 4526, 37, 5390, 1398, 14, 39994, 351, 14276, 4941, 284, 3368, 11700, 291, 20203, 198, 220, 220, 220, 16876, 21628, 62, 9662, 796, 1976, 361, 62, 397, 499, 18300, 62, 15252, 14804, 36484, 62, 9662, 62, 312, 12, 1860, 291, 5357, 43979, 62, 1860, 1821, 85, 12, 19608, 265, 2981, 796, 705, 31688, 4458, 198, 220, 220, 220, 220, 220, 43979, 62, 1860, 1821, 85, 12, 808, 4906, 796, 705, 9864, 23680, 4458, 198, 220, 220, 220, 17852, 5188, 5064, 21628, 62, 9662, 796, 1976, 361, 62, 397, 499, 18300, 62, 15252, 14804, 36484, 62, 9662, 62, 312, 12, 17660, 5357, 43979, 62, 1860, 1821, 85, 12, 19608, 265, 2981, 1279, 29, 705, 31688, 4458, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 366, 1541, 4075, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 16458, 3682, 53, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 269, 70, 62, 7890, 796, 300, 83, 62, 1860, 3682, 85, 6739, 198, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 16458, 3559, 53, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 269, 70, 62, 7890, 796, 300, 83, 62, 1860, 3559, 85, 6739, 628, 220, 220, 220, 1162, 81, 62, 28463, 7, 21628, 62, 26495, 796, 21628, 62, 26495, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45329, 62, 15252, 62, 4871, 796, 705, 35, 18379, 6, 6739, 628, 220, 220, 220, 300, 85, 62, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 366, 2099, 11315, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 16458, 5064, 62, 51, 9936, 47, 62, 30076, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 49427, 1821, 85, 62, 10247, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 1860, 1821, 85, 198, 220, 220, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 220, 220, 49427, 3682, 85, 62, 8658, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 83, 62, 1860, 3682, 85, 198, 220, 220, 220, 220, 220, 220, 220, 49427, 3559, 85, 62, 8658, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 83, 62, 1860, 3559, 85, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 256, 28004, 62, 1662, 62, 9275, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 62, 1939, 684, 7609, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 256, 28004, 62, 1939, 684, 7609, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 1234, 62, 32165, 495, 220, 220, 220, 220, 220, 220, 796, 604, 198, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
"! <p class="shorttext synchronized" lang="en">Project Exception</p> CLASS zcx_tt_management DEFINITION PUBLIC INHERITING FROM /bobf/cm_frw CREATE PUBLIC. PUBLIC SECTION. CONSTANTS: "! <p class="shorttext synchronized" lang="en">Project is mandatory</p> BEGIN OF project_mandatory, msgid TYPE symsgid VALUE 'ZTT_TASK', msgno TYPE symsgno VALUE '001', attr1 TYPE scx_attrname VALUE 'TEXT1', attr2 TYPE scx_attrname VALUE 'TEXT2', attr3 TYPE scx_attrname VALUE 'TEXT3', attr4 TYPE scx_attrname VALUE 'TEXT4', END OF project_mandatory, "! <p class="shorttext synchronized" lang="en">Task &1 is already ended</p> BEGIN OF task_ended, msgid TYPE symsgid VALUE 'ZTT_TASK', msgno TYPE symsgno VALUE '002', attr1 TYPE scx_attrname VALUE 'TEXT1', attr2 TYPE scx_attrname VALUE 'TEXT2', attr3 TYPE scx_attrname VALUE 'TEXT3', attr4 TYPE scx_attrname VALUE 'TEXT4', END OF task_ended, "! <p class="shorttext synchronized" lang="en">End time is mandatory for final status</p> BEGIN OF task_end_time, msgid TYPE symsgid VALUE 'ZTT_TASK', msgno TYPE symsgno VALUE '003', attr1 TYPE scx_attrname VALUE 'TEXT1', attr2 TYPE scx_attrname VALUE 'TEXT2', attr3 TYPE scx_attrname VALUE 'TEXT3', attr4 TYPE scx_attrname VALUE 'TEXT4', END OF task_end_time, "! <p class="shorttext synchronized" lang="en">Set final status for an end time</p> BEGIN OF task_status_end_time, msgid TYPE symsgid VALUE 'ZTT_TASK', msgno TYPE symsgno VALUE '004', attr1 TYPE scx_attrname VALUE 'TEXT1', attr2 TYPE scx_attrname VALUE 'TEXT2', attr3 TYPE scx_attrname VALUE 'TEXT3', attr4 TYPE scx_attrname VALUE 'TEXT4', END OF task_status_end_time, "! <p class="shorttext synchronized" lang="en">Transport Request &1 is still open</p> BEGIN OF transport_request_open, msgid TYPE symsgid VALUE 'ZTT_TASK', msgno TYPE symsgno VALUE '005', attr1 TYPE scx_attrname VALUE 'TEXT1', attr2 TYPE scx_attrname VALUE 'TEXT2', attr3 TYPE scx_attrname VALUE 'TEXT3', attr4 TYPE scx_attrname VALUE 'TEXT4', END OF transport_request_open, "! <p class="shorttext synchronized" lang="en">Maximum progress is 100%</p> BEGIN OF progress_over_100, msgid TYPE symsgid VALUE 'ZTT_TASK', msgno TYPE symsgno VALUE '006', attr1 TYPE scx_attrname VALUE 'TEXT1', attr2 TYPE scx_attrname VALUE 'TEXT2', attr3 TYPE scx_attrname VALUE 'TEXT3', attr4 TYPE scx_attrname VALUE 'TEXT4', END OF progress_over_100, "! <p class="shorttext synchronized" lang="en">Set 100% progress for an ended task</p> BEGIN OF ended_task_progress_not_100, msgid TYPE symsgid VALUE 'ZTT_TASK', msgno TYPE symsgno VALUE '007', attr1 TYPE scx_attrname VALUE 'TEXT1', attr2 TYPE scx_attrname VALUE 'TEXT2', attr3 TYPE scx_attrname VALUE 'TEXT3', attr4 TYPE scx_attrname VALUE 'TEXT4', END OF ended_task_progress_not_100, "! <p class="shorttext synchronized" lang="en">Task is at 100% progress, please set end status</p> BEGIN OF progress_100_non_ended_task, msgid TYPE symsgid VALUE 'ZTT_TASK', msgno TYPE symsgno VALUE '008', attr1 TYPE scx_attrname VALUE 'TEXT1', attr2 TYPE scx_attrname VALUE 'TEXT2', attr3 TYPE scx_attrname VALUE 'TEXT3', attr4 TYPE scx_attrname VALUE 'TEXT4', END OF progress_100_non_ended_task, "! <p class="shorttext synchronized" lang="en">Task has been changed by another process, please refresh</p> BEGIN OF task_changed, msgid TYPE symsgid VALUE 'ZTT_TASK', msgno TYPE symsgno VALUE '009', attr1 TYPE scx_attrname VALUE 'TEXT1', attr2 TYPE scx_attrname VALUE 'TEXT2', attr3 TYPE scx_attrname VALUE 'TEXT3', attr4 TYPE scx_attrname VALUE 'TEXT4', END OF task_changed. "! <p class="shorttext synchronized" lang="en">Text 1</p> DATA text1 TYPE string . "! <p class="shorttext synchronized" lang="en">Text 2</p> DATA text2 TYPE string . "! <p class="shorttext synchronized" lang="en">Text 3</p> DATA text3 TYPE string . "! <p class="shorttext synchronized" lang="en">Text 4</p> DATA text4 TYPE string . "! <p class="shorttext synchronized" lang="en">Collect exception to BOPF messages</p> "! "! @parameter exception | <p class="shorttext synchronized" lang="en">Exception</p> "! @parameter message_type | <p class="shorttext synchronized" lang="en">Message type</p> "! @parameter bo_key | <p class="shorttext synchronized" lang="en">Business Object Key</p> "! @parameter node | <p class="shorttext synchronized" lang="en">Node</p> "! @parameter key | <p class="shorttext synchronized" lang="en">Key</p> "! @parameter attribute | <p class="shorttext synchronized" lang="en">Attribute</p> "! @parameter bo_messages | <p class="shorttext synchronized" lang="en">BOPF Messages</p> CLASS-METHODS collect_bo_message IMPORTING !textid TYPE scx_t100key OPTIONAL !text1 TYPE string OPTIONAL !text2 TYPE string OPTIONAL !text3 TYPE string OPTIONAL !text4 TYPE string OPTIONAL !previous TYPE REF TO cx_root OPTIONAL !message_type TYPE symsgty DEFAULT 'E' !symptom TYPE ty_message_symptom OPTIONAL !bo_key TYPE /bobf/obm_bo_key OPTIONAL !node TYPE /bobf/obm_node_key OPTIONAL !key TYPE /bobf/conf_key OPTIONAL !act_key TYPE /bobf/act_key OPTIONAL !val_key TYPE /bobf/val_key OPTIONAL !attribute TYPE string OPTIONAL CHANGING !bo_messages TYPE REF TO /bobf/if_frw_message. "! <p class="shorttext synchronized" lang="en">Raise exception from system variables</p> "! "! @raising zcx_tt_after_req_creation | <p class="shorttext synchronized" lang="en">Tasks Tracker management exc</p> CLASS-METHODS raise_syst IMPORTING !node_attribute TYPE string OPTIONAL !origin_location TYPE /bobf/s_frw_location OPTIONAL RAISING zcx_tt_management. "! <p class="shorttext synchronized" lang="en">CONSTRUCTOR</p> "! "! @parameter textid | <p class="shorttext synchronized" lang="en">Message Key</p> "! @parameter text1 | <p class="shorttext synchronized" lang="en">Text attribute 1</p> "! @parameter text2 | <p class="shorttext synchronized" lang="en">Text attribute 2</p> "! @parameter text3 | <p class="shorttext synchronized" lang="en">Text attribute 3</p> "! @parameter text4 | <p class="shorttext synchronized" lang="en">Text attribute 4</p> "! @parameter previous | <p class="shorttext synchronized" lang="en">Previous exception</p> "! @parameter severity | <p class="shorttext synchronized" lang="en">Severity</p> "! @parameter symptom | <p class="shorttext synchronized" lang="en">Symptom</p> "! @parameter lifetime | <p class="shorttext synchronized" lang="en">Lifetime</p> "! @parameter ms_origin_location | <p class="shorttext synchronized" lang="en">Origin location</p> "! @parameter mt_environment_location | <p class="shorttext synchronized" lang="en">Environment location</p> "! @parameter mv_act_key | <p class="shorttext synchronized" lang="en">Actual key</p> "! @parameter mv_assoc_key | <p class="shorttext synchronized" lang="en">Association key</p> "! @parameter mv_bopf_location | <p class="shorttext synchronized" lang="en">BOPF Location</p> "! @parameter mv_det_key | <p class="shorttext synchronized" lang="en">Det. Key</p> "! @parameter mv_query_key | <p class="shorttext synchronized" lang="en">Query Key</p> "! @parameter mv_val_key | <p class="shorttext synchronized" lang="en">Value key</p> METHODS constructor IMPORTING !textid LIKE if_t100_message=>t100key OPTIONAL !text1 TYPE string OPTIONAL !text2 TYPE string OPTIONAL !text3 TYPE string OPTIONAL !text4 TYPE string OPTIONAL !previous LIKE previous OPTIONAL !severity TYPE ty_message_severity OPTIONAL !symptom TYPE ty_message_symptom OPTIONAL !lifetime TYPE ty_message_lifetime DEFAULT co_lifetime_state !ms_origin_location TYPE /bobf/s_frw_location OPTIONAL !mt_environment_location TYPE /bobf/t_frw_location OPTIONAL !mv_act_key TYPE /bobf/act_key OPTIONAL !mv_assoc_key TYPE /bobf/obm_assoc_key OPTIONAL !mv_bopf_location TYPE /bobf/conf_key OPTIONAL !mv_det_key TYPE /bobf/det_key OPTIONAL !mv_query_key TYPE /bobf/obm_query_key OPTIONAL !mv_val_key TYPE /bobf/val_key OPTIONAL. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcx_tt_management IMPLEMENTATION. METHOD collect_bo_message. DATA(exception) = NEW zcx_tt_management( textid = textid text1 = text1 text2 = text2 text3 = text3 text4 = text4 previous = previous severity = message_type symptom = symptom ms_origin_location = VALUE #( bo_key = bo_key node_key = node key = key attributes = COND #( WHEN attribute IS NOT INITIAL THEN VALUE #( ( attribute ) ) ) ) mv_act_key = act_key mv_assoc_key = val_key mv_val_key = val_key ). IF bo_messages IS NOT BOUND. bo_messages = /bobf/cl_frw_factory=>get_message( ). ENDIF. bo_messages->add_cm( exception ). ENDMETHOD. METHOD constructor ##ADT_SUPPRESS_GENERATION. super->constructor( textid = textid previous = previous severity = severity symptom = symptom lifetime = lifetime ms_origin_location = ms_origin_location mt_environment_location = mt_environment_location mv_act_key = mv_act_key mv_assoc_key = mv_assoc_key mv_bopf_location = mv_bopf_location mv_det_key = mv_det_key mv_query_key = mv_query_key mv_val_key = mv_val_key ). me->text1 = text1. me->text2 = text2. me->text3 = text3. me->text4 = text4. ENDMETHOD. METHOD raise_syst. RAISE EXCEPTION TYPE zcx_tt_management EXPORTING textid = VALUE scx_t100key( msgid = sy-msgid msgno = sy-msgno attr1 = 'TEXT1' attr2 = 'TEXT2' attr3 = 'TEXT3' attr4 = 'TEXT4' ) text1 = CONV #( sy-msgv1 ) text2 = CONV #( sy-msgv2 ) text3 = CONV #( sy-msgv3 ) text4 = CONV #( sy-msgv4 ) ms_origin_location = origin_location. ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 16775, 35528, 3556, 79, 29, 198, 31631, 1976, 66, 87, 62, 926, 62, 27604, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1220, 65, 672, 69, 14, 11215, 62, 8310, 86, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 16775, 318, 13677, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1628, 62, 22249, 2870, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 705, 57, 15751, 62, 51, 1921, 42, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 8298, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 32541, 16, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 17, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 32541, 17, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 18, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 32541, 18, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 19, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 32541, 19, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 1628, 62, 22249, 2870, 11, 198, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 25714, 1222, 16, 318, 1541, 4444, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 4876, 62, 1631, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 705, 57, 15751, 62, 51, 1921, 42, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 21601, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 32541, 16, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 17, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 32541, 17, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 18, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 32541, 18, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 19, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 32541, 19, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 4876, 62, 1631, 11, 198, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 12915, 640, 318, 13677, 329, 2457, 3722, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 4876, 62, 437, 62, 2435, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 705, 57, 15751, 62, 51, 1921, 42, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 11245, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 32541, 16, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 17, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 32541, 17, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 18, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 32541, 18, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 19, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 32541, 19, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 4876, 62, 437, 62, 2435, 11, 198, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 7248, 2457, 3722, 329, 281, 886, 640, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 4876, 62, 13376, 62, 437, 62, 2435, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 705, 57, 15751, 62, 51, 1921, 42, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 22914, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 32541, 16, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 17, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 32541, 17, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 18, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 32541, 18, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 19, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 32541, 19, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 4876, 62, 13376, 62, 437, 62, 2435, 11, 198, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 8291, 634, 19390, 1222, 16, 318, 991, 1280, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 4839, 62, 25927, 62, 9654, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 705, 57, 15751, 62, 51, 1921, 42, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 22544, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 32541, 16, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 17, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 32541, 17, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 18, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 32541, 18, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 19, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 32541, 19, 3256, 198, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_suso DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. METHODS: constructor IMPORTING is_item TYPE zif_abapgit_definitions=>ty_item iv_language TYPE spras. PRIVATE SECTION. DATA: mv_objectname TYPE tobj-objct. METHODS: delete_documentation RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_object_suso IMPLEMENTATION. METHOD constructor. super->constructor( is_item = is_item iv_language = iv_language ). mv_objectname = ms_item-obj_name. ENDMETHOD. METHOD zif_abapgit_object~has_changed_since. rv_changed = abap_true. ENDMETHOD. METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. " todo ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_objct TYPE tobj-objct. SELECT SINGLE objct FROM tobj INTO lv_objct WHERE objct = ms_item-obj_name. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: ls_tobj TYPE tobj, ls_tobjt TYPE tobjt, ls_tobjvorflg TYPE tobjvorflg, lt_tactz TYPE TABLE OF tactz, lt_tobjvordat TYPE TABLE OF tobjvordat, lt_tobjvor TYPE TABLE OF tobjvor. SELECT SINGLE * FROM tobj INTO ls_tobj WHERE objct = ms_item-obj_name. IF sy-subrc <> 0. RETURN. ENDIF. CLEAR ls_tobj-bname. SELECT SINGLE * FROM tobjt INTO ls_tobjt WHERE object = ms_item-obj_name AND langu = mv_language. "#EC CI_GENBUFF IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'TOBJT no english description' && ' for object (' && ms_item-obj_name && ')' ). ENDIF. SELECT SINGLE * FROM tobjvorflg INTO ls_tobjvorflg WHERE objct = ms_item-obj_name. "#EC CI_SUBRC SELECT * FROM tactz INTO TABLE lt_tactz WHERE brobj = ms_item-obj_name ORDER BY PRIMARY KEY. "#EC CI_SUBRC "#EC CI_GENBUFF SELECT * FROM tobjvordat INTO TABLE lt_tobjvordat WHERE objct = ms_item-obj_name ORDER BY PRIMARY KEY. "#EC CI_SUBRC "#EC CI_GENBUFF SELECT * FROM tobjvor INTO TABLE lt_tobjvor WHERE objct = ms_item-obj_name ORDER BY PRIMARY KEY. "#EC CI_SUBRC io_xml->add( iv_name = 'TOBJ' ig_data = ls_tobj ). io_xml->add( iv_name = 'TOBJT' ig_data = ls_tobjt ). io_xml->add( iv_name = 'TOBJVORFLG' ig_data = ls_tobjvorflg ). io_xml->add( ig_data = lt_tactz iv_name = 'TACTZ' ). io_xml->add( ig_data = lt_tobjvordat iv_name = 'TOBJVORDAT' ). io_xml->add( ig_data = lt_tobjvor iv_name = 'TOBJVOR' ). ENDMETHOD. METHOD zif_abapgit_object~deserialize. * see function group SUSA DATA: lv_objectname TYPE trobj_name, ls_tobj TYPE tobj, ls_tobjt TYPE tobjt, ls_tobjvorflg TYPE tobjvorflg, lt_tactz TYPE TABLE OF tactz, lt_tobjvordat TYPE TABLE OF tobjvordat, lt_tobjvor TYPE TABLE OF tobjvor. ASSERT NOT ms_item-obj_name IS INITIAL. io_xml->read( EXPORTING iv_name = 'TOBJ' CHANGING cg_data = ls_tobj ). ls_tobj-bname = sy-uname. io_xml->read( EXPORTING iv_name = 'TOBJT' CHANGING cg_data = ls_tobjt ). io_xml->read( EXPORTING iv_name = 'TOBJVORFLG' CHANGING cg_data = ls_tobjvorflg ). io_xml->read( EXPORTING iv_name = 'TACTZ' CHANGING cg_data = lt_tactz ). io_xml->read( EXPORTING iv_name = 'TOBJVORDAT' CHANGING cg_data = lt_tobjvordat ). io_xml->read( EXPORTING iv_name = 'TOBJVOR' CHANGING cg_data = lt_tobjvor ). tadir_insert( iv_package ). lv_objectname = mv_objectname. CALL FUNCTION 'SUSR_COMMEDITCHECK' EXPORTING objectname = lv_objectname transobjecttype = 'O'. MODIFY tobj FROM ls_tobj. "#EC CI_SUBRC MODIFY tobjt FROM ls_tobjt. "#EC CI_SUBRC MODIFY tobjvorflg FROM ls_tobjvorflg. "#EC CI_SUBRC DELETE FROM tactz WHERE brobj = ms_item-obj_name. "#EC CI_SUBRC INSERT tactz FROM TABLE lt_tactz. "#EC CI_SUBRC DELETE FROM tobjvordat WHERE objct = ms_item-obj_name. "#EC CI_SUBRC INSERT tobjvordat FROM TABLE lt_tobjvordat. "#EC CI_SUBRC DELETE FROM tobjvor WHERE objct = ms_item-obj_name. "#EC CI_SUBRC INSERT tobjvor FROM TABLE lt_tobjvor. "#EC CI_SUBRC ENDMETHOD. METHOD zif_abapgit_object~delete. " FM SUSR_DELETE_OBJECT calls the UI. Therefore we reimplement it here. CONSTANTS: co_act_delete TYPE activ_auth VALUE '06'. DATA: lv_act_head TYPE activ_auth, lv_dummy TYPE string, lo_suso TYPE REF TO object, lv_failed TYPE abap_bool, lv_suso_collect_in_cts TYPE i. " Downport: CL_SUSO_GEN doesn't exist in 702 CREATE OBJECT lo_suso TYPE ('CL_SUSO_GEN'). CALL METHOD lo_suso->('SUSO_LOAD_FROM_DB') EXPORTING id_object = mv_objectname RECEIVING ed_failed = lv_failed. IF lv_failed = abap_true. " Object & does not exist; choose an existing object MESSAGE s111(01) WITH mv_objectname INTO lv_dummy. zcx_abapgit_exception=>raise_t100( ). ENDIF. CALL METHOD lo_suso->('GET_SUSO_EDIT_MODE') EXPORTING id_object = mv_objectname id_planed_act = co_act_delete IMPORTING ed_mode_head = lv_act_head. IF lv_act_head <> co_act_delete. zcx_abapgit_exception=>raise( |AUTH { mv_objectname }: Delete not allowed| ). ENDIF. CALL METHOD lo_suso->('SUSO_COLLECT_IN_CTS') EXPORTING id_object = mv_objectname RECEIVING ed_result = lv_suso_collect_in_cts. IF lv_suso_collect_in_cts IS NOT INITIAL. RETURN. ENDIF. delete_documentation( ). DELETE FROM tobj WHERE objct = mv_objectname. DELETE FROM tobjt WHERE object = mv_objectname. DELETE FROM tactz WHERE brobj = mv_objectname. CALL FUNCTION 'SUPV_DELETE_OBJECT_ASSIGNMENTS' EXPORTING object_name = mv_objectname all_releases = abap_true. CALL FUNCTION 'RS_TREE_OBJECT_PLACEMENT' EXPORTING object = mv_objectname type = 'SUSO' operation = 'DELETE'. ENDMETHOD. METHOD delete_documentation. DATA: lv_docu_obj TYPE dokhl-object, lv_dummy TYPE sy-langu. lv_docu_obj = mv_objectname. SELECT SINGLE langu FROM dokil INTO lv_dummy WHERE id = 'UO' "#EC CI_GENBUFF AND object = lv_docu_obj. IF sy-subrc = 0. CALL FUNCTION 'DOKU_DELETE_ALL' EXPORTING doku_id = 'UO' doku_object = lv_docu_obj suppress_transport = space EXCEPTIONS header_without_text = 1 index_without_header = 2 no_authority_for_devclass_xxxx = 3 no_docu_found = 4 object_is_already_enqueued = 5 object_is_enqueued_by_corr = 6 techn_enqueue_problem = 7 user_break = 8 OTHERS = 9. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~jump. CALL FUNCTION 'SUSR_SHOW_OBJECT' EXPORTING object = mv_objectname. ENDMETHOD. METHOD zif_abapgit_object~compare_to_remote_version. CREATE OBJECT ro_comparison_result TYPE zcl_abapgit_comparison_null. ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = abap_false. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 82, 385, 78, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 9186, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 41876, 7500, 292, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 285, 85, 62, 15252, 3672, 41876, 10773, 73, 12, 26801, 310, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 12233, 62, 22897, 341, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 82, 385, 78, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 318, 62, 9186, 220, 220, 220, 220, 796, 318, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 796, 21628, 62, 16129, 6739, 628, 220, 220, 220, 285, 85, 62, 15252, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 10134, 62, 40985, 62, 20777, 13, 198, 220, 220, 220, 374, 85, 62, 40985, 796, 450, 499, 62, 7942, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 198, 220, 220, 220, 374, 85, 62, 7220, 796, 269, 62, 7220, 62, 34680, 13, 366, 284, 4598, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1136, 62, 38993, 13, 198, 220, 220, 220, 44608, 62, 38993, 796, 651, 62, 38993, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1069, 1023, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 26801, 310, 41876, 10773, 73, 12, 26801, 310, 13, 628, 198, 220, 220, 220, 33493, 311, 2751, 2538, 26181, 310, 16034, 10773, 73, 39319, 300, 85, 62, 26801, 310, 198, 220, 220, 220, 220, 220, 33411, 26181, 310, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 198, 220, 220, 220, 374, 85, 62, 30388, 796, 20512, 66, 7, 827, 12, 7266, 6015, 796, 657, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 46911, 1096, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 83, 26801, 220, 220, 220, 220, 220, 220, 41876, 10773, 73, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 83, 26801, 83, 220, 220, 220, 220, 220, 41876, 10773, 73, 83, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 83, 26801, 20867, 2704, 70, 41876, 10773, 73, 20867, 2704, 70, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 83, 529, 89, 220, 220, 220, 220, 220, 41876, 43679, 3963, 6293, 89, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 83, 26801, 85, 585, 265, 41876, 43679, 3963, 10773, 73, 85, 585, 265, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 83, 26801, 20867, 220, 220, 220, 41876, 43679, 3963, 10773, 73, 20867, 13, 628, 198, 220, 220, 220, 33493, 311, 2751, 2538, 1635, 16034, 10773, 73, 39319, 43979, 62, 83, 26801, 198, 220, 220, 220, 220, 220, 33411, 26181, 310, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 30301, 1503, 43979, 62, 83, 26801, 12, 65, 3672, 13, 628, 220, 220, 220, 33493, 311, 2751, 2538, 1635, 16034, 10773, 73, 83, 39319, 43979, 62, 83, 26801, 83, 198, 220, 220, 220, 220, 220, 33411, 2134, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 198, 220, 220, 220, 220, 220, 5357, 2786, 796, 285, 85, 62, 16129, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 14514, 62, 35353, 19499, 5777, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 51, 9864, 41, 51, 645, 46932, 6764, 6, 198, 220, 220, 220, 220, 220, 220, 220, 11405, 705, 329, 2134, 19203, 11405, 13845, 62, 9186, 12, 26801, 62, 3672, 11405, 705, 33047, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 33493, 311, 2751, 2538, 1635, 16034, 10773, 73, 20867, 2704, 70, 39319, 43979, 62, 83, 26801, 20867, 2704, 70, 198, 220, 220, 220, 220, 220, 33411, 26181, 310, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 14514, 62, 50, 10526, 7397, 628, 220, 220, 220, 33493, 1635, 16034, 6293 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_ensc DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_ENSC IMPLEMENTATION. METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. " todo ENDMETHOD. METHOD zif_abapgit_object~compare_to_remote_version. CREATE OBJECT ro_comparison_result TYPE zcl_abapgit_comparison_null. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_spot_name TYPE enhspotcompositename, lv_message TYPE string, lx_root TYPE REF TO cx_root, li_spot_ref TYPE REF TO if_enh_spot_composite. lv_spot_name = ms_item-obj_name. TRY. li_spot_ref = cl_enh_factory=>get_enhancement_spot_comp( lock = 'X' name = lv_spot_name ). IF li_spot_ref IS BOUND. li_spot_ref->if_enh_object~delete( nevertheless_delete = 'X' run_dark = 'X' ). ENDIF. li_spot_ref->if_enh_object~unlock( ). CATCH cx_enh_root INTO lx_root. lv_message = `Error occured while deleting ENSC: ` && lx_root->get_text( ) ##NO_TEXT. zcx_abapgit_exception=>raise( lv_message ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lv_spot_name TYPE enhspotcompositename, lv_message TYPE string, lv_enh_shtext TYPE string, lv_enh_spot TYPE enhspotname, lt_enh_spots TYPE enhspotname_it, lt_comp_spots TYPE enhspotname_it, lx_root TYPE REF TO cx_root, lv_package LIKE iv_package, li_spot_ref TYPE REF TO if_enh_spot_composite, lo_spot_ref TYPE REF TO cl_enh_spot_composite. lv_spot_name = ms_item-obj_name. io_xml->read( EXPORTING iv_name = 'SHORTTEXT' CHANGING cg_data = lv_enh_shtext ). io_xml->read( EXPORTING iv_name = 'ENH_SPOTS' "Enhancement spots CHANGING cg_data = lt_enh_spots ). io_xml->read( EXPORTING iv_name = 'COMP_ENH_SPOTS' "Composite enhancement spots CHANGING cg_data = lt_comp_spots ). IF zif_abapgit_object~exists( ) = abap_true. zif_abapgit_object~delete( ). ENDIF. lv_package = iv_package. TRY. cl_enh_factory=>create_enhancement_spot_comp( EXPORTING name = lv_spot_name run_dark = abap_true IMPORTING composite = li_spot_ref CHANGING devclass = lv_package ). lo_spot_ref ?= li_spot_ref. lo_spot_ref->if_enh_object_docu~set_shorttext( lv_enh_shtext ). "Add subsequent enhancement spots LOOP AT lt_enh_spots INTO lv_enh_spot. lo_spot_ref->if_enh_spot_composite~add_enh_spot_child( lv_enh_spot ). ENDLOOP. "Add subsequent composite enhancement spots LOOP AT lt_comp_spots INTO lv_enh_spot. lo_spot_ref->if_enh_spot_composite~add_composite_child( lv_enh_spot ). ENDLOOP. lo_spot_ref->if_enh_object~save( ). lo_spot_ref->if_enh_object~activate( ). lo_spot_ref->if_enh_object~unlock( ). CATCH cx_enh_root INTO lx_root. lv_message = `Error occured while deserializing ENSC: ` && lx_root->get_text( ) ##NO_TEXT. zcx_abapgit_exception=>raise( lv_message ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_spot_name TYPE enhspotcompositename. lv_spot_name = ms_item-obj_name. TRY. cl_enh_factory=>get_enhancement_spot_comp( lock = '' name = lv_spot_name ). rv_bool = abap_true. CATCH cx_enh_root. rv_bool = abap_false. ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. METHOD zif_abapgit_object~has_changed_since. rv_changed = abap_true. ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = abap_false. ENDMETHOD. METHOD zif_abapgit_object~jump. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ms_item-obj_name object_type = 'ENSC' in_new_window = abap_true. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_spot_name TYPE enhspotcompositename, lv_message TYPE string, lv_enh_shtext TYPE string, lt_enh_spots TYPE enhspotname_it, lt_comp_spots TYPE enhspotname_it, lx_root TYPE REF TO cx_root, li_spot_ref TYPE REF TO if_enh_spot_composite, lo_spot_ref TYPE REF TO cl_enh_spot_composite. lv_spot_name = ms_item-obj_name. TRY. li_spot_ref = cl_enh_factory=>get_enhancement_spot_comp( lock = '' name = lv_spot_name ). lo_spot_ref ?= li_spot_ref. lv_enh_shtext = li_spot_ref->if_enh_object_docu~get_shorttext( ). "find subsequent enhancement spots lt_enh_spots = lo_spot_ref->if_enh_spot_composite~get_enh_spot_childs( ). "find subsequent composite enhancement spots lt_comp_spots = lo_spot_ref->if_enh_spot_composite~get_composite_childs( ). io_xml->add( ig_data = lv_enh_shtext iv_name = 'SHORTTEXT' ). io_xml->add( ig_data = lt_enh_spots iv_name = 'ENH_SPOTS' ). "Enhancement spots io_xml->add( ig_data = lt_comp_spots iv_name = 'COMP_ENH_SPOTS' ). "Composite enhancement spots CATCH cx_enh_root INTO lx_root. lv_message = `Error occured while serializing ENSC: ` && lx_root->get_text( ) ##NO_TEXT. zcx_abapgit_exception=>raise( lv_message ). ENDTRY. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 641, 66, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 1677, 6173, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 198, 220, 220, 220, 374, 85, 62, 7220, 796, 269, 62, 7220, 62, 34680, 13, 366, 284, 4598, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5589, 533, 62, 1462, 62, 47960, 62, 9641, 13, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 686, 62, 785, 1845, 1653, 62, 20274, 41876, 1976, 565, 62, 397, 499, 18300, 62, 785, 1845, 1653, 62, 8423, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 33678, 13, 198, 220, 220, 220, 42865, 25, 300, 85, 62, 20485, 62, 3672, 41876, 5881, 20485, 785, 1930, 270, 12453, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 20500, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 87, 62, 15763, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 43213, 62, 15763, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 20485, 62, 5420, 220, 41876, 4526, 37, 5390, 611, 62, 16550, 62, 20485, 62, 785, 1930, 578, 13, 628, 220, 220, 220, 300, 85, 62, 20485, 62, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 20485, 62, 5420, 796, 537, 62, 16550, 62, 69, 9548, 14804, 1136, 62, 16550, 590, 434, 62, 20485, 62, 5589, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5793, 796, 705, 55, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 796, 300, 85, 62, 20485, 62, 3672, 6739, 628, 220, 220, 220, 220, 220, 220, 220, 16876, 7649, 62, 20485, 62, 5420, 3180, 347, 15919, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 20485, 62, 5420, 3784, 361, 62, 16550, 62, 15252, 93, 33678, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19032, 62, 33678, 796, 705, 55, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1057, 62, 21953, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 55, 6, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 20485, 62, 5420, 3784, 361, 62, 16550, 62, 15252, 93, 403, 5354, 7, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 16550, 62, 15763, 39319, 300, 87, 62, 15763, 13, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 20500, 796, 4600, 12331, 1609, 1522, 981, 34817, 12964, 6173, 25, 4600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11405, 300, 87, 62, 15763, 3784, 1136, 62, 5239, 7, 1267, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 300, 85, 62, 20500, 6739, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 8906, 48499, 1096, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 20485, 62, 3672, 220, 41876, 5881, 20485, 785, 1930, 270, 12453, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 20500, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 16550, 62, 1477, 5239, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 16550, 62, 20485, 220, 220, 41876, 5881, 20485, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 16550, 62, 2777, 1747, 220, 41876, 5881, 20485, 3672, 62, 270, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 5589, 62, 2777, 1747, 41876, 5881, 20485, 3672, 62, 270, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 87, 62, 15763, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 43213, 62, 15763, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 26495, 220, 220, 220, 34178, 21628, 62, 26495, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 20485, 62, 5420, 220, 220, 41876, 4526, 37, 5390, 611, 62, 16550, 62, 20485, 62, 785, 1930, 578, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 20485, 62, 5420, 220, 220, 41876, 4526, 37, 5390, 537, 62, 16550, 62, 20485, 62, 785, 1930, 578, 13, 628, 198, 220, 220, 220, 300, 85, 62, 20485, 62, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 9693, 9863, 32541, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 7890, 796, 300, 85, 62, 16550, 62, 1477, 5239, 6739, 198, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 1677, 39, 62, 4303, 33472, 6, 220, 220, 220, 220, 366, 35476, 590 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_aoc_check_31 DEFINITION PUBLIC INHERITING FROM zcl_aoc_super CREATE PUBLIC. PUBLIC SECTION. METHODS constructor. METHODS check REDEFINITION. METHODS get_attributes REDEFINITION. METHODS get_message_text REDEFINITION. METHODS put_attributes REDEFINITION. METHODS if_ci_test~query_attributes REDEFINITION. PROTECTED SECTION. PRIVATE SECTION. DATA mt_error TYPE zaoc_slin_desc_key_range_tt . DATA mt_warn TYPE zaoc_slin_desc_key_range_tt . DATA mt_info TYPE zaoc_slin_desc_key_range_tt . DATA mt_ignore TYPE zaoc_slin_desc_key_range_tt . DATA mv_default_error TYPE flag . DATA mv_default_standard TYPE flag . DATA mv_default_atc TYPE flag . METHODS set_flags RETURNING VALUE(rs_flags) TYPE rslin_test_flags . ENDCLASS. CLASS ZCL_AOC_CHECK_31 IMPLEMENTATION. METHOD check. * abapOpenChecks * https://github.com/larshp/abapOpenChecks * MIT License DATA: lv_obj_name TYPE sobj_name, lv_text TYPE string, lv_tmp TYPE string, ls_flags TYPE rslin_test_flags, lv_code TYPE sci_errc, lv_errty TYPE sci_errty, lv_todo TYPE slin_desc-todo_overlay, lt_result TYPE slin_result. FIELD-SYMBOLS: <ls_result> LIKE LINE OF lt_result, <ls_line> LIKE LINE OF <ls_result>-lines. ls_flags = set_flags( ). CALL FUNCTION 'EXTENDED_PROGRAM_CHECK' EXPORTING program = program_name test_flags = ls_flags IMPORTING result = lt_result. LOOP AT lt_result ASSIGNING <ls_result>. "#EC CI_SORTSEQ CLEAR lv_text. LOOP AT <ls_result>-lines ASSIGNING <ls_line>. CONCATENATE LINES OF cl_slin_io=>old_line_to_src( <ls_line> ) INTO lv_tmp. IF lv_text IS INITIAL. lv_text = lv_tmp. ELSE. CONCATENATE lv_text cl_abap_char_utilities=>newline lv_tmp INTO lv_text. ENDIF. ENDLOOP. IF lines( mt_error ) > 0 AND <ls_result>-code IN mt_error. lv_errty = c_error. ELSEIF lines( mt_warn ) > 0 AND <ls_result>-code IN mt_warn. lv_errty = c_warning. ELSEIF lines( mt_info ) > 0 AND <ls_result>-code IN mt_info. lv_errty = c_note. ELSEIF lines( mt_ignore ) > 0 AND <ls_result>-code IN mt_ignore. CONTINUE. ELSE. CASE abap_true. WHEN mv_default_error. lv_errty = c_error. WHEN mv_default_standard. CASE <ls_result>-kind. WHEN slin_errlv-warn. lv_errty = c_warning. WHEN slin_errlv-info. lv_errty = c_note. WHEN OTHERS. lv_errty = c_error. ENDCASE. WHEN mv_default_atc. SELECT SINGLE todo_overlay FROM slin_desc INTO lv_todo WHERE code_nr = <ls_result>-code. CASE lv_todo. WHEN slin_todo-prio1. lv_errty = c_error. WHEN slin_todo-prio2. lv_errty = c_warning. WHEN slin_todo-prio3. lv_errty = c_note. WHEN slin_todo-noprio. CONTINUE. " current loop ENDCASE. WHEN OTHERS. ASSERT 0 = 1. ENDCASE. ENDIF. lv_obj_name = <ls_result>-src_incl. lv_code = <ls_result>-code. inform( p_sub_obj_type = c_type_include p_sub_obj_name = lv_obj_name p_line = <ls_result>-src_line p_kind = lv_errty p_test = myname p_code = lv_code p_param_1 = lv_text ). ENDLOOP. ENDMETHOD. METHOD constructor. super->constructor( ). description = 'Extended Program Check, Filterable'. "#EC NOTEXT category = 'ZCL_AOC_CATEGORY'. version = '003'. position = '031'. has_attributes = abap_true. attributes_ok = abap_true. mv_default_error = abap_true. ENDMETHOD. "CONSTRUCTOR METHOD get_attributes. EXPORT mt_error = mt_error mt_warn = mt_warn mt_info = mt_info mt_ignore = mt_ignore mv_default_error = mv_default_error mv_default_standard = mv_default_standard mv_default_atc = mv_default_atc TO DATA BUFFER p_attributes. ENDMETHOD. METHOD get_message_text. p_text = '&1'. "#EC NOTEXT ENDMETHOD. "GET_MESSAGE_TEXT METHOD if_ci_test~query_attributes. zzaoc_top. zzaoc_fill_att mt_error 'Error' 'S'. "#EC NOTEXT zzaoc_fill_att mt_warn 'Warning' 'S'. "#EC NOTEXT zzaoc_fill_att mt_info 'Info' 'S'. "#EC NOTEXT zzaoc_fill_att mt_ignore 'Ignore' 'S'. "#EC NOTEXT zzaoc_fill_att_rb mv_default_error 'Default error' 'R' 'RADIO'. "#EC NOTEXT zzaoc_fill_att_rb mv_default_standard 'Default standard' 'R' 'RADIO'. "#EC NOTEXT zzaoc_fill_att_rb mv_default_atc 'Default ATC' 'R' 'RADIO'. "#EC NOTEXT zzaoc_popup. attributes_ok = abap_true. ENDMETHOD. METHOD put_attributes. IMPORT mt_error = mt_error mt_warn = mt_warn mt_info = mt_info mt_ignore = mt_ignore mv_default_error = mv_default_error mv_default_standard = mv_default_standard mv_default_atc = mv_default_atc FROM DATA BUFFER p_attributes. "#EC CI_USE_WANTED ASSERT sy-subrc = 0. ENDMETHOD. METHOD set_flags. rs_flags-x_per = abap_true. rs_flags-x_cal = abap_true. rs_flags-x_dat = abap_true. rs_flags-x_opf = abap_true. rs_flags-x_unr = abap_true. rs_flags-x_ges = abap_true. rs_flags-x_mes = abap_true. rs_flags-x_pfs = abap_true. rs_flags-x_bre = abap_true. rs_flags-x_woo = abap_true. rs_flags-x_wrn = abap_true. rs_flags-x_ste = abap_true. rs_flags-x_txt = abap_true. rs_flags-x_aut = abap_true. rs_flags-x_sub = abap_true. rs_flags-x_loa = abap_true. rs_flags-x_mls = abap_true. rs_flags-x_put = abap_true. rs_flags-x_hel = abap_true. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 64, 420, 62, 9122, 62, 3132, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 64, 420, 62, 16668, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 13, 628, 220, 220, 220, 337, 36252, 50, 2198, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 20500, 62, 5239, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 1234, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 611, 62, 979, 62, 9288, 93, 22766, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 45079, 62, 18224, 41876, 1976, 64, 420, 62, 82, 2815, 62, 20147, 62, 2539, 62, 9521, 62, 926, 764, 198, 220, 220, 220, 42865, 45079, 62, 40539, 41876, 1976, 64, 420, 62, 82, 2815, 62, 20147, 62, 2539, 62, 9521, 62, 926, 764, 198, 220, 220, 220, 42865, 45079, 62, 10951, 41876, 1976, 64, 420, 62, 82, 2815, 62, 20147, 62, 2539, 62, 9521, 62, 926, 764, 198, 220, 220, 220, 42865, 45079, 62, 46430, 41876, 1976, 64, 420, 62, 82, 2815, 62, 20147, 62, 2539, 62, 9521, 62, 926, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 12286, 62, 18224, 41876, 6056, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 12286, 62, 20307, 41876, 6056, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 12286, 62, 265, 66, 41876, 6056, 764, 628, 220, 220, 220, 337, 36252, 50, 900, 62, 33152, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 33152, 8, 41876, 44608, 2815, 62, 9288, 62, 33152, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 32, 4503, 62, 50084, 62, 3132, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 2198, 13, 198, 198, 9, 450, 499, 11505, 7376, 4657, 198, 9, 3740, 1378, 12567, 13, 785, 14, 75, 5406, 79, 14, 397, 499, 11505, 7376, 4657, 198, 9, 17168, 13789, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 26801, 62, 3672, 41876, 27355, 73, 62, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 5239, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 22065, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 33152, 220, 220, 220, 41876, 44608, 2815, 62, 9288, 62, 33152, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 8189, 220, 220, 220, 220, 41876, 20681, 62, 263, 6015, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 8056, 774, 220, 220, 220, 41876, 20681, 62, 8056, 774, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 83, 24313, 220, 220, 220, 220, 41876, 1017, 259, 62, 20147, 12, 83, 24313, 62, 2502, 10724, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 20274, 220, 220, 41876, 1017, 259, 62, 20274, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 20274, 29, 34178, 48920, 3963, 300, 83, 62, 20274, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 1370, 29, 220, 220, 34178, 48920, 3963, 1279, 7278, 62, 20274, 29, 12, 6615, 13, 628, 198, 220, 220, 220, 43979, 62, 33152, 796, 900, 62, 33152, 7, 6739, 198, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 13918, 49361, 62, 4805, 7730, 24115, 62, 50084, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1430, 220, 220, 220, 796, 1430, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 1332, 62, 33152, 796, 43979, 62, 33152, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 220, 220, 220, 220, 796, 300, 83, 62, 20274, 13, 628, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 20274, 24994, 3528, 15871, 1279, 7278, 62, 20274, 28401, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 14514, 62, 50, 33002, 36, 48, 628, 220, 220, 220, 220, 220, 30301, 1503, 300, 85, 62, 5239, 13, 198, 220, 220, 220, 220, 220, 17579, 3185, 5161, 1279, 7278, 62, 20274, 29, 12, 6615, 24994, 3528, 15871, 1279, 7278, 62, 1370, 28401, 198, 220, 220, 220, 220, 220, 220, 220, 39962, 1404, 1677, 6158, 43277, 1546, 3963, 537, 62, 82, 2815, 62, 952, 14804, 727, 62, 1370, 62, 1462, 62, 10677, 7, 1279, 7278, 62, 1370, 29, 1267, 39319, 300, 85, 62, 22065, 13, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 300, 85, 62, 5239, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 5239, 796, 300, 85, 62, 22065, 13, 198, 220, 220, 220, 220, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 39962, 1404, 1677, 6158, 300, 85, 62, 5239, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 3605, 1370, 300, 85, 62, 22065, 39319, 300, 85, 62, 5239, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 220, 220, 220, 220, 16876, 3951, 7, 45079, 62, 18224, 1267, 1875, 657, 5357, 1279, 7278, 62, 20274, 29, 12 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*---------------------------------------------------------------------* * view related data declarations * generation date: 05.03.2021 at 12:51:32 * view maintenance generator version: #001407# *---------------------------------------------------------------------* *...processing: ZAPP_CUST.......................................* DATA: BEGIN OF STATUS_ZAPP_CUST . "state vector INCLUDE STRUCTURE VIMSTATUS. DATA: END OF STATUS_ZAPP_CUST . CONTROLS: TCTRL_ZAPP_CUST TYPE TABLEVIEW USING SCREEN '0001'. *.........table declarations:.................................* TABLES: *ZAPP_CUST . TABLES: ZAPP_CUST . * general table data declarations.............. INCLUDE LSVIMTDT .
[ 9, 10097, 30934, 9, 198, 9, 220, 220, 220, 1570, 3519, 1366, 31713, 198, 9, 220, 220, 5270, 3128, 25, 8870, 13, 3070, 13, 1238, 2481, 379, 1105, 25, 4349, 25, 2624, 198, 9, 220, 220, 1570, 9262, 17301, 2196, 25, 1303, 405, 1415, 2998, 2, 198, 9, 10097, 30934, 9, 198, 9, 986, 36948, 25, 1168, 24805, 62, 34, 7759, 8864, 25780, 9, 198, 26947, 25, 220, 347, 43312, 3963, 15486, 2937, 62, 57, 24805, 62, 34, 7759, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 220, 220, 366, 5219, 15879, 198, 220, 220, 220, 220, 220, 220, 220, 220, 3268, 5097, 52, 7206, 19269, 18415, 11335, 569, 3955, 35744, 2937, 13, 198, 26947, 25, 220, 23578, 3963, 15486, 2937, 62, 57, 24805, 62, 34, 7759, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 198, 10943, 5446, 3535, 50, 25, 309, 4177, 7836, 62, 57, 24805, 62, 34, 7759, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 28206, 1294, 2751, 6374, 2200, 1677, 705, 18005, 4458, 198, 9, 34617, 11487, 31713, 25, 27754, 34617, 9, 198, 5603, 9148, 1546, 25, 1635, 57, 24805, 62, 34, 7759, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 198, 5603, 9148, 1546, 25, 1168, 24805, 62, 34, 7759, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 198, 198, 9, 2276, 3084, 1366, 31713, 2109, 16317, 198, 220, 3268, 5097, 52, 7206, 30948, 53, 3955, 21016, 51, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*"* use this source file for your ABAP unit test classes CLASS ltd_abapgit_popups_mock DEFINITION. PUBLIC SECTION. INTERFACES: zif_abapgit_popups. ENDCLASS. CLASS no_dependency_injection DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PRIVATE SECTION. METHODS: no_injection FOR TESTING RAISING cx_static_check. ENDCLASS. CLASS simple_dependency_injection DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PRIVATE SECTION. METHODS: setup, simple_injection FOR TESTING RAISING cx_static_check. ENDCLASS. CLASS ltd_abapgit_popups_mock IMPLEMENTATION. METHOD zif_abapgit_popups~branch_list_popup. ENDMETHOD. METHOD zif_abapgit_popups~branch_popup_callback. ENDMETHOD. METHOD zif_abapgit_popups~create_branch_popup. ENDMETHOD. METHOD zif_abapgit_popups~package_popup_callback. ENDMETHOD. METHOD zif_abapgit_popups~popup_folder_logic. ENDMETHOD. METHOD zif_abapgit_popups~popup_object. ENDMETHOD. METHOD zif_abapgit_popups~popup_package_export. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_confirm. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_create_package. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_create_transp_branch. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_inform. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_select_from_list. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_select_transports. ENDMETHOD. METHOD zif_abapgit_popups~popup_transport_request. ENDMETHOD. METHOD zif_abapgit_popups~repo_new_offline. ENDMETHOD. METHOD zif_abapgit_popups~repo_popup. ENDMETHOD. METHOD zif_abapgit_popups~run_page_class_popup. ENDMETHOD. ENDCLASS. CLASS no_dependency_injection IMPLEMENTATION. METHOD no_injection. DATA: lo_popups TYPE REF TO zif_abapgit_popups, lo_class_descr TYPE REF TO cl_abap_classdescr. lo_popups = zcl_abapgit_ui_factory=>get_popups( ). lo_class_descr ?= cl_abap_classdescr=>describe_by_object_ref( lo_popups ). cl_abap_unit_assert=>assert_equals( exp = '\CLASS=ZCL_ABAPGIT_POPUPS' act = lo_class_descr->absolute_name ). ENDMETHOD. ENDCLASS. CLASS simple_dependency_injection IMPLEMENTATION. METHOD setup. DATA: lo_popups_mock TYPE REF TO ltd_abapgit_popups_mock. CREATE OBJECT lo_popups_mock. zcl_abapgit_ui_injector=>set_popups( lo_popups_mock ). ENDMETHOD. METHOD simple_injection. DATA: lo_popups TYPE REF TO zif_abapgit_popups, lo_class_descr TYPE REF TO cl_abap_classdescr. lo_popups = zcl_abapgit_ui_factory=>get_popups( ). lo_class_descr ?= cl_abap_classdescr=>describe_by_object_ref( lo_popups ). cl_abap_unit_assert=>assert_equals( exp = '\CLASS-POOL=ZCL_ABAPGIT_UI_INJECTOR\CLASS=LTD_ABAPGIT_POPUPS_MOCK' act = lo_class_descr->absolute_name ). ENDMETHOD. ENDCLASS.
[ 9, 1, 9, 779, 428, 2723, 2393, 329, 534, 9564, 2969, 4326, 1332, 6097, 198, 198, 31631, 300, 8671, 62, 397, 499, 18300, 62, 12924, 4739, 62, 76, 735, 5550, 20032, 17941, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 645, 62, 45841, 1387, 62, 259, 29192, 5550, 20032, 17941, 7473, 43001, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45698, 42, 49277, 43638, 5805, 7597, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 360, 4261, 6234, 6006, 9863, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 645, 62, 259, 29192, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 2829, 62, 45841, 1387, 62, 259, 29192, 5550, 20032, 17941, 7473, 43001, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45698, 42, 49277, 43638, 5805, 7597, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 360, 4261, 6234, 6006, 9863, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 9058, 11, 198, 220, 220, 220, 220, 220, 2829, 62, 259, 29192, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 8671, 62, 397, 499, 18300, 62, 12924, 4739, 62, 76, 735, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 1671, 3702, 62, 4868, 62, 12924, 929, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 1671, 3702, 62, 12924, 929, 62, 47423, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 17953, 62, 1671, 3702, 62, 12924, 929, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 26495, 62, 12924, 929, 62, 47423, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 43551, 62, 6404, 291, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 15252, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 26495, 62, 39344, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 10414, 2533, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 17953, 62, 26495, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 17953, 62, 7645, 79, 62, 1671, 3702, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 259, 687, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 19738, 62, 6738, 62, 4868, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 19738, 62, 7645, 3742, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 7645, 634, 62, 25927, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 260, 7501, 62, 3605, 62, 2364, 1370, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 260, 7501, 62, 12924, 929, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 5143, 62, 7700, 62, 4871, 62, 12924, 929, 13, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 645, 62, 45841, 1387, 62, 259, 29192, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 645, 62, 259, 29192, 13, 628, 220, 220, 220, 42865, 25, 2376, 62, 12924, 4739, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 4871, 62, 20147, 81, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 4871, 20147, 81, 13, 628, 220, 220, 220, 2376, 62, 12924, 4739, 796, 1976, 565, 62, 397, 499, 18300, 62, 9019, 62, 69, 9548, 14804, 1136, 62, 12924, 4739, 7, 6739, 628, 220, 220, 220, 2376, 62, 4871, 62, 20147, 81, 5633, 28, 537, 62, 397, 499, 62, 4871, 20147, 81, 14804, 20147, 4892, 62, 1525, 62, 15252, 62, 5420, 7, 2376, 62, 12924, 4739, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 1033, 796, 705, 59, 31631, 28, 57, 5097, 62, 6242, 2969, 38, 2043, 62, 47, 3185, 52, 3705, 6, 198, 220, 220, 220, 220, 220, 719, 796, 2376, 62 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Module CHECK_LOCATION INPUT *&---------------------------------------------------------------------* MODULE check_location INPUT. perform check_location. ENDMODULE. " CHECK_LOCATION INPUT
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 220, 220, 220, 220, 19937, 220, 5870, 25171, 62, 29701, 6234, 220, 3268, 30076, 198, 9, 5, 10097, 30934, 9, 198, 33365, 24212, 2198, 62, 24886, 3268, 30076, 13, 628, 220, 1620, 2198, 62, 24886, 13, 198, 198, 10619, 33365, 24212, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 5870, 25171, 62, 29701, 6234, 220, 3268, 30076, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Report ZFOOBAR *&---------------------------------------------------------------------* *& Hello, World! *&---------------------------------------------------------------------* REPORT zfoobar. WRITE 'Welcome on Mars!'. RETURN. " to Earth
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 1168, 6080, 9864, 1503, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 18435, 11, 2159, 0, 198, 9, 5, 10097, 30934, 9, 198, 2200, 15490, 1976, 6513, 30973, 13, 198, 198, 18564, 12709, 705, 14618, 319, 8706, 0, 4458, 198, 198, 26087, 27064, 13, 366, 284, 3668, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
"! <p class="shorttext synchronized" lang="en">Database column character string writer</p> CLASS zcl_io_db_c_writer DEFINITION PUBLIC INHERITING FROM zcl_io_c_writer FINAL CREATE PUBLIC GLOBAL FRIENDS zcl_io_c_writer. PUBLIC SECTION. *"* public components of class CL_ABAP_DB_C_WRITER *"* do not include other source files here!!! INTERFACES if_abap_db_writer . METHODS constructor IMPORTING std_writer TYPE REF TO cl_abap_db_c_writer. ALIASES get_statement_handle FOR if_abap_db_writer~get_statement_handle . METHODS destructor . PROTECTED SECTION. *"* protected components of class CL_ABAP_DB_C_WRITER *"* do not include other source files here!!! PRIVATE SECTION. *"* private components of class CL_ABAP_DB_C_WRITER *"* do not include other source files here!!! DATA lob_hdl TYPE lob_handle_attr . TYPE-POOLS abap . DATA maxlength TYPE abap_msize VALUE 0. "#EC NOTEXT . DATA written_length TYPE abap_msize VALUE 0. "#EC NOTEXT . METHODS write_internal IMPORTING !data TYPE string RAISING cx_lob_sql_error cx_sy_open_sql_db . METHODS close_internal RAISING cx_lob_sql_error cx_sy_open_sql_db . METHODS is_closed_internal RETURNING VALUE(closed) TYPE abap_bool . DATA: std_writer TYPE REF TO cl_abap_db_c_writer, closed_internally TYPE abap_bool. ENDCLASS. CLASS zcl_io_db_c_writer IMPLEMENTATION. METHOD constructor. super->constructor( ). me->std_writer = std_writer. ENDMETHOD. METHOD close_internal. std_writer->close( ). ENDMETHOD. METHOD destructor. SYSTEM-CALL C-DESTRUCTOR 'ab_CDestr_db_close720' USING lob_hdl-id lob_hdl-con_name. ENDMETHOD. METHOD if_abap_db_writer~get_statement_handle. hdl = std_writer->get_statement_handle( ). ENDMETHOD. METHOD is_closed_internal. closed = std_writer->is_closed( ). ENDMETHOD. METHOD write_internal. std_writer->write( data ). ENDMETHOD. METHOD if_abap_close_resource~close. std_writer->close( ). ENDMETHOD. METHOD if_abap_writer~flush. std_writer->flush( ). ENDMETHOD. METHOD if_abap_close_resource~is_closed. closed = std_writer->is_closed( ). ENDMETHOD. METHOD if_abap_writer~is_x_writer. result = std_writer->is_x_writer( ). ENDMETHOD. METHOD if_abap_writer~write. std_writer->write( data ). ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 38105, 5721, 2095, 4731, 6260, 3556, 79, 29, 198, 31631, 1976, 565, 62, 952, 62, 9945, 62, 66, 62, 16002, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 952, 62, 66, 62, 16002, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 198, 220, 10188, 9864, 1847, 48167, 1677, 5258, 1976, 565, 62, 952, 62, 66, 62, 16002, 13, 628, 220, 44731, 44513, 13, 198, 198, 9, 1, 9, 1171, 6805, 286, 1398, 7852, 62, 6242, 2969, 62, 11012, 62, 34, 62, 18564, 2043, 1137, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 220, 220, 23255, 37, 2246, 1546, 611, 62, 397, 499, 62, 9945, 62, 16002, 764, 628, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 14367, 62, 16002, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 9945, 62, 66, 62, 16002, 13, 628, 220, 220, 220, 8355, 43429, 1546, 651, 62, 26090, 62, 28144, 198, 220, 220, 220, 220, 220, 7473, 611, 62, 397, 499, 62, 9945, 62, 16002, 93, 1136, 62, 26090, 62, 28144, 764, 628, 220, 220, 220, 337, 36252, 50, 15256, 273, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 9, 1, 9, 6861, 6805, 286, 1398, 7852, 62, 6242, 2969, 62, 11012, 62, 34, 62, 18564, 2043, 1137, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 9, 1, 9, 2839, 6805, 286, 1398, 7852, 62, 6242, 2969, 62, 11012, 62, 34, 62, 18564, 2043, 1137, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 628, 220, 220, 220, 42865, 6804, 62, 71, 25404, 41876, 6804, 62, 28144, 62, 35226, 764, 198, 220, 220, 220, 41876, 12, 16402, 3535, 50, 450, 499, 764, 198, 220, 220, 220, 42865, 3509, 13664, 41876, 450, 499, 62, 907, 1096, 26173, 8924, 657, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 764, 198, 220, 220, 220, 42865, 3194, 62, 13664, 41876, 450, 499, 62, 907, 1096, 26173, 8924, 657, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 764, 628, 220, 220, 220, 337, 36252, 50, 3551, 62, 32538, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 7890, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 75, 672, 62, 25410, 62, 18224, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 1837, 62, 9654, 62, 25410, 62, 9945, 764, 198, 220, 220, 220, 337, 36252, 50, 1969, 62, 32538, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 75, 672, 62, 25410, 62, 18224, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 1837, 62, 9654, 62, 25410, 62, 9945, 764, 198, 220, 220, 220, 337, 36252, 50, 318, 62, 20225, 62, 32538, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20225, 8, 41876, 450, 499, 62, 30388, 764, 628, 220, 220, 220, 42865, 25, 14367, 62, 16002, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 9945, 62, 66, 62, 16002, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4838, 62, 23124, 453, 41876, 450, 499, 62, 30388, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 952, 62, 9945, 62, 66, 62, 16002, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 198, 220, 220, 220, 502, 3784, 19282, 62, 16002, 796, 14367, 62, 16002, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1969, 62, 32538, 13, 198, 220, 220, 220, 14367, 62, 16002, 3784, 19836, 7, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 15256, 273, 13, 198, 220, 220, 220, 36230, 12, 34, 7036, 327, 12, 30910, 5446, 18415, 1581, 705, 397, 62, 8610, 395, 81, 62, 9945, 62, 19836, 23906, 6, 1294, 2751, 6804, 62, 71, 25404, 12, 312, 6804, 62, 71, 25404, 12, 1102, 62, 3672, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 611, 62, 397, 499, 62, 9945, 62, 16002, 93, 1136, 62, 26090, 62, 28144, 13, 198, 220, 220, 220, 289, 25404, 796, 14367, 62, 16002, 3784, 1136, 62, 26090, 62, 28144, 7, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 318, 62, 20225, 62, 32538, 13, 198, 220, 220, 220, 4838, 796, 14367, 62, 16002, 3784, 271, 62, 20225, 7, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 3551, 62, 32538, 13, 198, 220, 220, 220, 14367, 62, 16002, 3784, 13564, 7, 1366, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 397, 499, 62, 19836, 62, 31092, 93, 19836, 13, 198, 220, 220, 220, 14367, 62, 16002, 3784, 19836, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 397, 499, 62, 16002, 93, 25925, 13, 198, 220, 220, 220, 14367, 62, 16002, 3784, 25925, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 397, 499, 62, 19836, 62, 31092, 93, 271, 62, 20225, 13, 198, 220, 220, 220, 4838, 796, 14367, 62, 16002, 3784, 271, 62, 20225, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 397, 499, 62, 16002, 93, 271, 62, 87, 62, 16002, 13, 198, 220, 220, 220, 1255, 796, 14367, 62, 16002, 3784, 271, 62, 87, 62, 16002, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 397, 499, 62, 16002, 93, 13564, 13, 198, 220, 220, 220, 14367, 62, 16002, 3784, 13564, 7, 1366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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
FUNCTION /usi/bal_shlp_exception_mapper. *"-------------------------------------------------------------------- *"*"Local Interface: *" TABLES *" SHLP_TAB TYPE SHLP_DESCT *" RECORD_TAB STRUCTURE SEAHLPRES *" CHANGING *" REFERENCE(SHLP) TYPE SHLP_DESCR *" REFERENCE(CALLCONTROL) LIKE DDSHF4CTRL STRUCTURE DDSHF4CTRL *"-------------------------------------------------------------------- CONSTANTS exception_mapper_interface TYPE seoclsname VALUE '/USI/IF_BAL_EXCEPTION_MAPPER'. DATA plugin_interface TYPE REF TO lcl_plugin_interface. IF callcontrol-step EQ 'SELECT'. TRY. CREATE OBJECT plugin_interface EXPORTING i_interface_name = exception_mapper_interface. record_tab[] = plugin_interface->get_implementing_classes( ). CATCH /usi/cx_bal_root. CLEAR record_tab[]. ENDTRY. callcontrol-step = 'DISP'. ENDIF. ENDFUNCTION.
[ 42296, 4177, 2849, 1220, 385, 72, 14, 6893, 62, 1477, 34431, 62, 1069, 4516, 62, 76, 11463, 13, 198, 9, 1, 10097, 650, 198, 9, 1, 9, 1, 14565, 26491, 25, 198, 9, 1, 220, 309, 6242, 28378, 198, 9, 1, 220, 220, 220, 220, 220, 6006, 19930, 62, 5603, 33, 41876, 220, 6006, 19930, 62, 30910, 4177, 198, 9, 1, 220, 220, 220, 220, 220, 19644, 12532, 62, 5603, 33, 19269, 18415, 11335, 220, 41067, 6581, 48296, 198, 9, 1, 220, 5870, 15567, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 50, 6581, 47, 8, 41876, 220, 6006, 19930, 62, 30910, 9419, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 34, 1847, 5639, 1340, 5446, 3535, 8, 34178, 220, 360, 5258, 29567, 19, 4177, 7836, 19269, 18415, 11335, 220, 360, 5258, 29567, 19, 4177, 7836, 198, 9, 1, 10097, 650, 628, 220, 7102, 2257, 1565, 4694, 6631, 62, 76, 11463, 62, 39994, 41876, 384, 420, 7278, 3672, 26173, 8924, 31051, 2937, 40, 14, 5064, 62, 33, 1847, 62, 6369, 42006, 2849, 62, 33767, 18973, 4458, 198, 220, 42865, 13877, 62, 39994, 41876, 4526, 37, 5390, 300, 565, 62, 33803, 62, 39994, 13, 628, 220, 16876, 869, 13716, 12, 9662, 36529, 705, 46506, 4458, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 13877, 62, 39994, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 39994, 62, 3672, 796, 6631, 62, 76, 11463, 62, 39994, 13, 628, 220, 220, 220, 220, 220, 220, 220, 1700, 62, 8658, 21737, 796, 13877, 62, 39994, 3784, 1136, 62, 320, 26908, 278, 62, 37724, 7, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 1220, 385, 72, 14, 66, 87, 62, 6893, 62, 15763, 13, 198, 220, 220, 220, 220, 220, 220, 220, 30301, 1503, 1700, 62, 8658, 58, 4083, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 220, 220, 869, 13716, 12, 9662, 796, 705, 26288, 47, 4458, 628, 220, 23578, 5064, 13, 198, 198, 1677, 8068, 4944, 4177, 2849, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
method GET_LAST_MODIFIED. *&---------------------------------------------------------------------* *& Generated code for the MODEL PROVIDER BASE CLASS &* *& &* *& !!!NEVER MODIFY THIS CLASS. IN CASE YOU WANT TO CHANGE THE MODEL &* *& DO THIS IN THE MODEL PROVIDER SUBCLASS!!! &* *& &* *&---------------------------------------------------------------------* CONSTANTS: lc_gen_date_time TYPE timestamp VALUE '20181110153131'. "#EC NOTEXT rv_last_modified = super->get_last_modified( ). IF rv_last_modified LT lc_gen_date_time. rv_last_modified = lc_gen_date_time. ENDIF. endmethod.
[ 220, 2446, 17151, 62, 43, 11262, 62, 33365, 28343, 13, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2980, 515, 2438, 329, 262, 19164, 3698, 36592, 41237, 49688, 42715, 220, 220, 220, 220, 220, 220, 220, 220, 1222, 9, 198, 9, 5, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1222, 9, 198, 9, 5, 220, 220, 10185, 12161, 5959, 19164, 5064, 56, 12680, 42715, 13, 3268, 42001, 7013, 41300, 5390, 5870, 27746, 3336, 19164, 3698, 220, 1222, 9, 198, 9, 5, 220, 220, 220, 220, 220, 220, 220, 8410, 12680, 3268, 3336, 19164, 3698, 36592, 41237, 13558, 2749, 43, 10705, 10185, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1222, 9, 198, 9, 5, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1222, 9, 198, 9, 5, 10097, 30934, 9, 628, 198, 220, 7102, 2257, 1565, 4694, 25, 300, 66, 62, 5235, 62, 4475, 62, 2435, 41876, 41033, 26173, 8924, 705, 7908, 1157, 8784, 4310, 22042, 4458, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 374, 85, 62, 12957, 62, 41771, 796, 2208, 3784, 1136, 62, 12957, 62, 41771, 7, 6739, 198, 220, 16876, 374, 85, 62, 12957, 62, 41771, 34146, 300, 66, 62, 5235, 62, 4475, 62, 2435, 13, 198, 220, 220, 220, 374, 85, 62, 12957, 62, 41771, 796, 300, 66, 62, 5235, 62, 4475, 62, 2435, 13, 198, 220, 23578, 5064, 13, 198, 220, 886, 24396, 13 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS /dmo/cl_flight_legacy13 DEFINITION PUBLIC FINAL CREATE PRIVATE GLOBAL FRIENDS /dmo/cl_flight_data_generat_13. PUBLIC SECTION. INTERFACES /dmo/if_flight_legacy13. TYPES: BEGIN OF ENUM ty_change_mode STRUCTURE change_mode," Key checks are done separately create, update," Only fields that have been changed need to be checked END OF ENUM ty_change_mode STRUCTURE change_mode. CLASS-METHODS: get_instance RETURNING VALUE(ro_instance) TYPE REF TO /dmo/cl_flight_legacy13. " With respect to the same method call of create/update/delete_travel() we have All or Nothing. " I.e. when one of the levels contains an error, the complete call is refused. " However, the buffer is not cleared in case of an error. " I.e. when the caller wants to start over, he needs to call Initialize() explicitly. METHODS set_status_to_booked IMPORTING iv_travel_id TYPE /dmo/travel_id13 EXPORTING et_messages TYPE /dmo/if_flight_legacy13=>tt_if_t100_message. METHODS create_travel IMPORTING is_travel TYPE /dmo/if_flight_legacy13=>ts_travel_in it_booking TYPE /dmo/if_flight_legacy13=>tt_booking_in OPTIONAL it_booking_supplement TYPE /dmo/if_flight_legacy13=>tt_booking_supplement_in OPTIONAL EXPORTING es_travel TYPE /dmo/travel13 et_booking TYPE /dmo/if_flight_legacy13=>tt_booking et_booking_supplement TYPE /dmo/if_flight_legacy13=>tt_booking_supplement et_messages TYPE /dmo/if_flight_legacy13=>tt_if_t100_message. METHODS update_travel IMPORTING is_travel TYPE /dmo/if_flight_legacy13=>ts_travel_in is_travelx TYPE /dmo/if_flight_legacy13=>ts_travel_inx it_booking TYPE /dmo/if_flight_legacy13=>tt_booking_in OPTIONAL it_bookingx TYPE /dmo/if_flight_legacy13=>tt_booking_inx OPTIONAL it_booking_supplement TYPE /dmo/if_flight_legacy13=>tt_booking_supplement_in OPTIONAL it_booking_supplementx TYPE /dmo/if_flight_legacy13=>tt_booking_supplement_inx OPTIONAL EXPORTING es_travel TYPE /dmo/travel13 et_booking TYPE /dmo/if_flight_legacy13=>tt_booking et_booking_supplement TYPE /dmo/if_flight_legacy13=>tt_booking_supplement et_messages TYPE /dmo/if_flight_legacy13=>tt_if_t100_message. METHODS delete_travel IMPORTING iv_travel_id TYPE /dmo/travel_id13 EXPORTING et_messages TYPE /dmo/if_flight_legacy13=>tt_if_t100_message. METHODS get_travel IMPORTING iv_travel_id TYPE /dmo/travel_id13 iv_include_buffer TYPE abap_boolean iv_include_temp_buffer TYPE abap_boolean OPTIONAL EXPORTING es_travel TYPE /dmo/travel13 et_booking TYPE /dmo/if_flight_legacy13=>tt_booking et_booking_supplement TYPE /dmo/if_flight_legacy13=>tt_booking_supplement et_messages TYPE /dmo/if_flight_legacy13=>tt_if_t100_message. METHODS save. METHODS initialize. METHODS convert_messages IMPORTING it_messages TYPE /dmo/if_flight_legacy13=>tt_if_t100_message EXPORTING et_messages TYPE /dmo/if_flight_legacy13=>tt_message. PROTECTED SECTION. PRIVATE SECTION. CLASS-DATA go_instance TYPE REF TO /dmo/cl_flight_legacy13. CLASS-METHODS: "! Calculation of Price <br/> "! <br/> "! Price will be calculated using distance multiplied and occupied seats.<br/> "! Depending on how many seats in percentage are occupied the formula <br/> "! 3/400·x² + 25<br/> "! will be applied.<br/> "! 0% seats occupied leads to 25% of distance as price.<br/> "! 75% seats occupied leads to 50% of distance as price.<br/> "! 100% seats occupied leads to 100% of distance as price.<br/> "! @parameter iv_seats_occupied_percent | occupied seats "! @parameter iv_flight_distance | flight distance in kilometer "! @parameter rv_price | calculated flight price calculate_flight_price IMPORTING iv_seats_occupied_percent TYPE /dmo/plane_seats_occupied13 iv_flight_distance TYPE i RETURNING VALUE(rv_price) TYPE /dmo/flight_price13 ##RELAX. METHODS lock_travel IMPORTING iv_lock TYPE abap_bool RAISING /dmo/cx_flight_legacy13 ##RELAX ##NEEDED. METHODS _resolve_attribute IMPORTING iv_attrname TYPE scx_attrname ix TYPE REF TO /dmo/cx_flight_legacy13 RETURNING VALUE(rv_symsgv) TYPE symsgv. "! Final determinations / derivations after all levels have been prepared, e.g. bottom-up derivations METHODS _determine EXPORTING et_messages TYPE /dmo/if_flight_legacy13=>tt_if_t100_message CHANGING cs_travel TYPE /dmo/travel13 ct_booking TYPE /dmo/if_flight_legacy13=>tt_booking ct_booking_supplement TYPE /dmo/if_flight_legacy13=>tt_booking_supplement. METHODS _determine_travel_total_price CHANGING cs_travel TYPE /dmo/travel13 ct_booking TYPE /dmo/if_flight_legacy13=>tt_booking ct_booking_supplement TYPE /dmo/if_flight_legacy13=>tt_booking_supplement ct_messages TYPE /dmo/if_flight_legacy13=>tt_if_t100_message ##NEEDED. METHODS _convert_currency IMPORTING iv_currency_code_source TYPE /dmo/currency_code13 iv_currency_code_target TYPE /dmo/currency_code13 iv_amount TYPE /dmo/total_price13 RETURNING VALUE(rv_amount) TYPE /dmo/total_price13. ENDCLASS. CLASS /dmo/cl_flight_legacy13 IMPLEMENTATION. METHOD calculate_flight_price. DATA: lv_percentage_of_max_price TYPE i. lv_percentage_of_max_price = ( 3 * iv_seats_occupied_percent ** 2 DIV 400 ) + 25 ##OPERATOR[**]. rv_price = lv_percentage_of_max_price * iv_flight_distance DIV 100. ENDMETHOD. METHOD convert_messages. CLEAR et_messages. DATA ls_message TYPE symsg. LOOP AT it_messages INTO DATA(lr_error) ##INTO_OK. ls_message-msgty = 'E'. ls_message-msgid = lr_error->t100key-msgid. ls_message-msgno = lr_error->t100key-msgno. IF lr_error IS INSTANCE OF /dmo/cx_flight_legacy13. DATA(lx) = CAST /dmo/cx_flight_legacy13( lr_error ). ls_message-msgv1 = _resolve_attribute( iv_attrname = lr_error->t100key-attr1 ix = lx ). ls_message-msgv2 = _resolve_attribute( iv_attrname = lr_error->t100key-attr2 ix = lx ). ls_message-msgv3 = _resolve_attribute( iv_attrname = lr_error->t100key-attr3 ix = lx ). ls_message-msgv4 = _resolve_attribute( iv_attrname = lr_error->t100key-attr4 ix = lx ). ENDIF. APPEND ls_message TO et_messages. ENDLOOP. ENDMETHOD. METHOD create_travel. CLEAR: es_travel, et_booking, et_booking_supplement, et_messages. " Travel lcl_travel_buffer=>get_instance( )->cud_prep( EXPORTING it_travel = VALUE #( ( CORRESPONDING #( is_travel ) ) ) it_travelx = VALUE #( ( travel_id = is_travel-travel_id action_code = /dmo/if_flight_legacy13=>action_code-create ) ) IMPORTING et_travel = DATA(lt_travel) et_messages = et_messages ). IF et_messages IS INITIAL. ASSERT lines( lt_travel ) = 1. es_travel = lt_travel[ 1 ]. ENDIF. " Bookings IF et_messages IS INITIAL. DATA lt_booking TYPE /dmo/if_flight_legacy13=>tt_booking. DATA lt_bookingx TYPE /dmo/if_flight_legacy13=>tt_bookingx. LOOP AT it_booking INTO DATA(ls_booking_in). DATA ls_booking TYPE /dmo/booking13. ls_booking = CORRESPONDING #( ls_booking_in ). ls_booking-travel_id = es_travel-travel_id. INSERT ls_booking INTO TABLE lt_booking. INSERT VALUE #( travel_id = ls_booking-travel_id booking_id = ls_booking-booking_id action_code = /dmo/if_flight_legacy13=>action_code-create ) INTO TABLE lt_bookingx. ENDLOOP. lcl_booking_buffer=>get_instance( )->cud_prep( EXPORTING it_booking = lt_booking it_bookingx = lt_bookingx IMPORTING et_booking = et_booking et_messages = DATA(lt_messages) ). APPEND LINES OF lt_messages TO et_messages. ENDIF. " Booking Supplements IF et_messages IS INITIAL. DATA lt_booking_supplement TYPE /dmo/if_flight_legacy13=>tt_booking_supplement. DATA lt_booking_supplementx TYPE /dmo/if_flight_legacy13=>tt_booking_supplementx. LOOP AT it_booking_supplement INTO DATA(ls_booking_supplement_in). DATA ls_booking_supplement TYPE /dmo/book_sup_13. ls_booking_supplement = CORRESPONDING #( ls_booking_supplement_in ). ls_booking_supplement-travel_id = es_travel-travel_id. IF lcl_booking_buffer=>get_instance( )->check_booking_id( EXPORTING iv_travel_id = ls_booking_supplement-travel_id iv_booking_id = ls_booking_supplement-booking_id CHANGING ct_messages = et_messages ) = abap_false. EXIT. ENDIF. INSERT ls_booking_supplement INTO TABLE lt_booking_supplement. INSERT VALUE #( travel_id = ls_booking_supplement-travel_id booking_id = ls_booking_supplement-booking_id booking_supplement_id = ls_booking_supplement-booking_supplement_id action_code = /dmo/if_flight_legacy13=>action_code-create ) INTO TABLE lt_booking_supplementx. ENDLOOP. IF et_messages IS INITIAL. lcl_booking_supplement_buffer=>get_instance( )->cud_prep( EXPORTING it_booking_supplement = lt_booking_supplement it_booking_supplementx = lt_booking_supplementx IMPORTING et_booking_supplement = et_booking_supplement et_messages = lt_messages ). APPEND LINES OF lt_messages TO et_messages. ENDIF. ENDIF. " Now do any derivations that require the whole business object (not only a single node), but which may in principle result in an error IF et_messages IS INITIAL. _determine( IMPORTING et_messages = et_messages CHANGING cs_travel = es_travel ct_booking = et_booking ct_booking_supplement = et_booking_supplement ). ENDIF. IF et_messages IS INITIAL. lcl_travel_buffer=>get_instance( )->cud_copy( ). lcl_booking_buffer=>get_instance( )->cud_copy( ). lcl_booking_supplement_buffer=>get_instance( )->cud_copy( ). ELSE. CLEAR: es_travel, et_booking, et_booking_supplement. lcl_travel_buffer=>get_instance( )->cud_disc( ). lcl_booking_buffer=>get_instance( )->cud_disc( ). lcl_booking_supplement_buffer=>get_instance( )->cud_disc( ). ENDIF. ENDMETHOD. METHOD delete_travel. CLEAR et_messages. get_travel( EXPORTING iv_travel_id = iv_travel_id iv_include_buffer = abap_true iv_include_temp_buffer = abap_true IMPORTING et_booking = DATA(lt_booking) et_booking_supplement = DATA(lt_booking_supplement) et_messages = et_messages ). IF et_messages IS INITIAL. lcl_booking_supplement_buffer=>get_instance( )->cud_prep( EXPORTING it_booking_supplement = CORRESPONDING #( lt_booking_supplement MAPPING travel_id = travel_id booking_id = booking_id booking_supplement_id = booking_supplement_id EXCEPT * ) it_booking_supplementx = VALUE #( FOR ls_bs IN lt_booking_supplement ( action_code = /dmo/if_flight_legacy13=>action_code-delete travel_id = ls_bs-travel_id booking_id = ls_bs-booking_id booking_supplement_id = ls_bs-booking_supplement_id ) ) iv_no_delete_check = abap_true " No existence check required IMPORTING et_messages = DATA(lt_messages) ). APPEND LINES OF lt_messages TO et_messages. ENDIF. IF et_messages IS INITIAL. lcl_booking_buffer=>get_instance( )->cud_prep( EXPORTING it_booking = CORRESPONDING #( lt_booking MAPPING travel_id = travel_id booking_id = booking_id EXCEPT * ) it_bookingx = VALUE #( FOR ls_b IN lt_booking ( action_code = /dmo/if_flight_legacy13=>action_code-delete travel_id = ls_b-travel_id booking_id = ls_b-booking_id ) ) iv_no_delete_check = abap_true " No existence check required IMPORTING et_messages = lt_messages ). APPEND LINES OF lt_messages TO et_messages. ENDIF. IF et_messages IS INITIAL. lcl_travel_buffer=>get_instance( )->cud_prep( EXPORTING it_travel = VALUE #( ( travel_id = iv_travel_id ) ) it_travelx = VALUE #( ( travel_id = iv_travel_id action_code = /dmo/if_flight_legacy13=>action_code-delete ) ) iv_no_delete_check = abap_true " No existence check required IMPORTING et_messages = lt_messages ). APPEND LINES OF lt_messages TO et_messages. ENDIF. IF et_messages IS INITIAL. lcl_travel_buffer=>get_instance( )->cud_copy( ). lcl_booking_buffer=>get_instance( )->cud_copy( ). lcl_booking_supplement_buffer=>get_instance( )->cud_copy( ). ELSE. lcl_travel_buffer=>get_instance( )->cud_disc( ). lcl_booking_buffer=>get_instance( )->cud_disc( ). lcl_booking_supplement_buffer=>get_instance( )->cud_disc( ). ENDIF. ENDMETHOD. METHOD get_instance. go_instance = COND #( WHEN go_instance IS BOUND THEN go_instance ELSE NEW #( ) ). ro_instance = go_instance. ENDMETHOD. METHOD get_travel. CLEAR: es_travel, et_booking, et_booking_supplement, et_messages. IF iv_travel_id IS INITIAL. APPEND NEW /dmo/cx_flight_legacy13( textid = /dmo/cx_flight_legacy13=>travel_no_key ) TO et_messages. RETURN. ENDIF. lcl_travel_buffer=>get_instance( )->get( EXPORTING it_travel = VALUE #( ( travel_id = iv_travel_id ) ) iv_include_buffer = iv_include_buffer iv_include_temp_buffer = iv_include_temp_buffer IMPORTING et_travel = DATA(lt_travel) ). IF lt_travel IS INITIAL. APPEND NEW /dmo/cx_flight_legacy13( textid = /dmo/cx_flight_legacy13=>travel_unknown travel_id = iv_travel_id ) TO et_messages. RETURN. ENDIF. ASSERT lines( lt_travel ) = 1. es_travel = lt_travel[ 1 ]. lcl_booking_buffer=>get_instance( )->get( EXPORTING it_booking = VALUE #( ( travel_id = iv_travel_id ) ) iv_include_buffer = iv_include_buffer iv_include_temp_buffer = iv_include_temp_buffer IMPORTING et_booking = et_booking ). lcl_booking_supplement_buffer=>get_instance( )->get( EXPORTING it_booking_supplement = CORRESPONDING #( et_booking MAPPING travel_id = travel_id booking_id = booking_id EXCEPT * ) iv_include_buffer = iv_include_buffer iv_include_temp_buffer = iv_include_temp_buffer IMPORTING et_booking_supplement = et_booking_supplement ). ENDMETHOD. METHOD initialize. lcl_travel_buffer=>get_instance( )->initialize( ). lcl_booking_buffer=>get_instance( )->initialize( ). lcl_booking_supplement_buffer=>get_instance( )->initialize( ). ENDMETHOD. METHOD lock_travel ##NEEDED. * IF iv_lock = abap_true. * CALL FUNCTION 'ENQUEUE_/DMO/ETRAVEL13' * EXCEPTIONS * foreign_lock = 1 * system_failure = 2 * OTHERS = 3. * IF sy-subrc <> 0. * RAISE EXCEPTION TYPE /dmo/cx_flight_legacy13 * EXPORTING * textid = /dmo/cx_flight_legacy13=>travel_lock. * ENDIF. * ELSE. * CALL FUNCTION 'DEQUEUE_/DMO/ETRAVEL13'. * ENDIF. ENDMETHOD. METHOD save. lcl_travel_buffer=>get_instance( )->save( ). lcl_booking_buffer=>get_instance( )->save( ). lcl_booking_supplement_buffer=>get_instance( )->save( ). initialize( ). ENDMETHOD. METHOD set_status_to_booked. lcl_travel_buffer=>get_instance( )->set_status_to_booked( EXPORTING iv_travel_id = iv_travel_id IMPORTING et_messages = et_messages ). ENDMETHOD. METHOD update_travel. CLEAR es_travel. CLEAR et_booking. CLEAR et_booking_supplement. CLEAR et_messages. " Travel IF is_travel-travel_id IS INITIAL. APPEND NEW /dmo/cx_flight_legacy13( textid = /dmo/cx_flight_legacy13=>travel_no_key ) TO et_messages. RETURN. ENDIF. DATA ls_travelx TYPE /dmo/if_flight_legacy13=>ts_travelx. ls_travelx = CORRESPONDING #( is_travelx ). ls_travelx-action_code = /dmo/if_flight_legacy13=>action_code-update. lcl_travel_buffer=>get_instance( )->cud_prep( EXPORTING it_travel = VALUE #( ( CORRESPONDING #( is_travel ) ) ) it_travelx = VALUE #( ( ls_travelx ) ) IMPORTING et_travel = DATA(lt_travel) et_messages = et_messages ). " We may need to delete Booking Supplements of deleted Bookings " Read all Booking Supplements before any Bookings are deleted get_travel( EXPORTING iv_travel_id = is_travel-travel_id iv_include_buffer = abap_true iv_include_temp_buffer = abap_true IMPORTING et_booking_supplement = DATA(lt_booking_supplement_del) ). " Bookings IF et_messages IS INITIAL. " Ignore provided Travel ID of subnode tables DATA lt_booking TYPE /dmo/if_flight_legacy13=>tt_booking. DATA lt_bookingx TYPE /dmo/if_flight_legacy13=>tt_bookingx. LOOP AT it_booking INTO DATA(ls_booking_in). DATA ls_booking TYPE /dmo/booking13. ls_booking = CORRESPONDING #( ls_booking_in ). ls_booking-travel_id = is_travel-travel_id. INSERT ls_booking INTO TABLE lt_booking. ENDLOOP. LOOP AT it_bookingx INTO DATA(ls_booking_inx). DATA ls_bookingx TYPE /dmo/if_flight_legacy13=>ts_bookingx. ls_bookingx = CORRESPONDING #( ls_booking_inx ). ls_bookingx-travel_id = is_travel-travel_id. INSERT ls_bookingx INTO TABLE lt_bookingx. ENDLOOP. lcl_booking_buffer=>get_instance( )->cud_prep( EXPORTING it_booking = lt_booking it_bookingx = lt_bookingx IMPORTING et_booking = et_booking et_messages = DATA(lt_messages) ). APPEND LINES OF lt_messages TO et_messages. ENDIF. " Booking Supplements IF et_messages IS INITIAL. " Ignore provided Travel ID of subnode tables DATA lt_booking_supplement TYPE /dmo/if_flight_legacy13=>tt_booking_supplement. DATA lt_booking_supplementx TYPE /dmo/if_flight_legacy13=>tt_booking_supplementx. LOOP AT it_booking_supplement INTO DATA(ls_booking_supplement_in). DATA ls_booking_supplement TYPE /dmo/book_sup_13. ls_booking_supplement = CORRESPONDING #( ls_booking_supplement_in ). ls_booking_supplement-travel_id = is_travel-travel_id. IF lcl_booking_buffer=>get_instance( )->check_booking_id( EXPORTING iv_travel_id = ls_booking_supplement-travel_id iv_booking_id = ls_booking_supplement-booking_id CHANGING ct_messages = et_messages ) = abap_false. EXIT. ENDIF. INSERT ls_booking_supplement INTO TABLE lt_booking_supplement. ENDLOOP. IF et_messages IS INITIAL. LOOP AT it_booking_supplementx INTO DATA(ls_booking_supplement_inx). DATA ls_booking_supplementx TYPE /dmo/if_flight_legacy13=>ts_booking_supplementx. ls_booking_supplementx = CORRESPONDING #( ls_booking_supplement_inx ). ls_booking_supplementx-travel_id = is_travel-travel_id. INSERT ls_booking_supplementx INTO TABLE lt_booking_supplementx. ENDLOOP. lcl_booking_supplement_buffer=>get_instance( )->cud_prep( EXPORTING it_booking_supplement = lt_booking_supplement it_booking_supplementx = lt_booking_supplementx IMPORTING et_booking_supplement = et_booking_supplement et_messages = lt_messages ). APPEND LINES OF lt_messages TO et_messages. ENDIF. ENDIF. " For Bookings to be deleted we also need to delete the Booking Supplements IF et_messages IS INITIAL AND lt_booking_supplement_del IS NOT INITIAL AND line_exists( lt_bookingx[ action_code = CONV /dmo/action_code13( /dmo/if_flight_legacy13=>action_code-delete ) ] ). " Remove any Bookings from internal table that must not be deleted LOOP AT lt_booking_supplement_del ASSIGNING FIELD-SYMBOL(<s_booking_supplement_del>). READ TABLE lt_bookingx TRANSPORTING NO FIELDS WITH KEY action_code = CONV /dmo/action_code13( /dmo/if_flight_legacy13=>action_code-delete ) travel_id = <s_booking_supplement_del>-travel_id booking_id = <s_booking_supplement_del>-booking_id. IF sy-subrc <> 0. DELETE lt_booking_supplement_del. ENDIF. ENDLOOP. lcl_booking_supplement_buffer=>get_instance( )->cud_prep( EXPORTING it_booking_supplement = CORRESPONDING #( lt_booking_supplement_del MAPPING travel_id = travel_id booking_id = booking_id booking_supplement_id = booking_supplement_id EXCEPT * ) it_booking_supplementx = VALUE #( FOR ls_bs IN lt_booking_supplement_del ( action_code = /dmo/if_flight_legacy13=>action_code-delete travel_id = ls_bs-travel_id booking_id = ls_bs-booking_id booking_supplement_id = ls_bs-booking_supplement_id ) ) iv_no_delete_check = abap_true " No existence check required IMPORTING et_messages = et_messages ). ENDIF. IF et_messages IS INITIAL. ASSERT lines( lt_travel ) = 1. " Now do any derivations that require the whole business object (not only a single node), but which may in principle result in an error " The derivation may need the complete Business Object, i.e. including unchanged subnodes get_travel( EXPORTING iv_travel_id = lt_travel[ 1 ]-travel_id iv_include_buffer = abap_true iv_include_temp_buffer = abap_true IMPORTING es_travel = es_travel et_booking = et_booking et_booking_supplement = et_booking_supplement et_messages = et_messages ). ASSERT et_messages IS INITIAL. _determine( IMPORTING et_messages = et_messages CHANGING cs_travel = es_travel ct_booking = et_booking ct_booking_supplement = et_booking_supplement ). IF et_messages IS INITIAL. " We do not want to return all subnodes, but only those that have been created or changed. " So currently it is not implemented that a determination of a booking changes another booking as the other booking cannot be properly returned. LOOP AT et_booking ASSIGNING FIELD-SYMBOL(<s_booking>). LOOP AT it_bookingx TRANSPORTING NO FIELDS WHERE booking_id = <s_booking>-booking_id AND ( action_code = CONV /dmo/action_code13( /dmo/if_flight_legacy13=>action_code-create ) OR action_code = CONV /dmo/action_code13( /dmo/if_flight_legacy13=>action_code-update ) ). EXIT. ENDLOOP. IF sy-subrc <> 0. DELETE et_booking. ENDIF. ENDLOOP. LOOP AT et_booking_supplement ASSIGNING FIELD-SYMBOL(<s_booking_supplement>). LOOP AT it_booking_supplementx TRANSPORTING NO FIELDS WHERE booking_id = <s_booking_supplement>-booking_id AND booking_supplement_id = <s_booking_supplement>-booking_supplement_id AND ( action_code = CONV /dmo/action_code13( /dmo/if_flight_legacy13=>action_code-create ) OR action_code = CONV /dmo/action_code13( /dmo/if_flight_legacy13=>action_code-update ) ). EXIT. ENDLOOP. IF sy-subrc <> 0. DELETE et_booking_supplement. ENDIF. ENDLOOP. ENDIF. ENDIF. IF et_messages IS INITIAL. lcl_travel_buffer=>get_instance( )->cud_copy( ). lcl_booking_buffer=>get_instance( )->cud_copy( ). lcl_booking_supplement_buffer=>get_instance( )->cud_copy( ). ELSE. CLEAR: es_travel, et_booking, et_booking_supplement. lcl_travel_buffer=>get_instance( )->cud_disc( ). lcl_booking_buffer=>get_instance( )->cud_disc( ). lcl_booking_supplement_buffer=>get_instance( )->cud_disc( ). ENDIF. ENDMETHOD. METHOD _convert_currency. DATA(lv_exchange_rate_date) = cl_abap_context_info=>get_system_date( )." Do not buffer: Current date may change during lifetime of session /dmo/cl_flight_amdp13=>convert_currency( EXPORTING iv_amount = iv_amount iv_currency_code_source = iv_currency_code_source iv_currency_code_target = iv_currency_code_target iv_exchange_rate_date = lv_exchange_rate_date IMPORTING ev_amount = rv_amount ). ENDMETHOD. METHOD _determine. ASSERT cs_travel-travel_id IS NOT INITIAL. LOOP AT ct_booking TRANSPORTING NO FIELDS WHERE travel_id <> cs_travel-travel_id. EXIT. ENDLOOP. ASSERT sy-subrc = 4. LOOP AT ct_booking_supplement TRANSPORTING NO FIELDS WHERE travel_id <> cs_travel-travel_id. EXIT. ENDLOOP. ASSERT sy-subrc = 4. CLEAR et_messages. _determine_travel_total_price( CHANGING cs_travel = cs_travel ct_booking = ct_booking ct_booking_supplement = ct_booking_supplement ct_messages = et_messages ). ENDMETHOD. METHOD _determine_travel_total_price. DATA lv_add TYPE /dmo/total_price13. DATA(lv_currency_code_target) = cs_travel-currency_code. " If we do not have a Travel Currency Code yet, " we may derive it when all the subnodes have the same non-initial Currency Code IF lv_currency_code_target IS INITIAL. DATA lv_ok TYPE abap_bool. lv_ok = abap_true. LOOP AT ct_booking ASSIGNING FIELD-SYMBOL(<s_booking>). IF sy-tabix = 1. lv_currency_code_target = <s_booking>-currency_code. ENDIF. IF <s_booking>-currency_code IS INITIAL. lv_ok = abap_false. EXIT. ENDIF. IF lv_currency_code_target <> <s_booking>-currency_code. lv_ok = abap_false. EXIT. ENDIF. ENDLOOP. IF lv_ok = abap_true. LOOP AT ct_booking_supplement ASSIGNING FIELD-SYMBOL(<s_booking_supplement>). IF <s_booking_supplement>-currency_code IS INITIAL. lv_ok = abap_false. EXIT. ENDIF. IF lv_currency_code_target <> <s_booking_supplement>-currency_code. lv_ok = abap_false. EXIT. ENDIF. ENDLOOP. ENDIF. ENDIF. IF lv_currency_code_target IS NOT INITIAL. " Total Price = Booking Fee + Booking Flight Prices + Booking Supplement Prices cs_travel-total_price = cs_travel-booking_fee. cs_travel-currency_code = lv_currency_code_target. LOOP AT ct_booking ASSIGNING <s_booking> GROUP BY <s_booking>-currency_code INTO DATA(booking_currency_code). lv_add = REDUCE #( INIT sum = 0 FOR b IN GROUP booking_currency_code NEXT sum = sum + b-flight_price ). IF booking_currency_code <> lv_currency_code_target. lv_add = _convert_currency( iv_currency_code_source = booking_currency_code iv_currency_code_target = lv_currency_code_target iv_amount = lv_add ). ENDIF. cs_travel-total_price = cs_travel-total_price + lv_add. ENDLOOP. LOOP AT ct_booking_supplement ASSIGNING <s_booking_supplement> GROUP BY <s_booking_supplement>-currency_code INTO DATA(supplement_currency_code). lv_add = REDUCE #( INIT sum = 0 FOR s IN GROUP supplement_currency_code NEXT sum = sum + s-price ). IF supplement_currency_code <> lv_currency_code_target. lv_add = _convert_currency( iv_currency_code_source = supplement_currency_code iv_currency_code_target = lv_currency_code_target iv_amount = lv_add ). ENDIF. cs_travel-total_price = cs_travel-total_price + lv_add. ENDLOOP. lcl_travel_buffer=>get_instance( )->cud_prep( EXPORTING it_travel = VALUE #( ( travel_id = cs_travel-travel_id total_price = cs_travel-total_price currency_code = cs_travel-currency_code ) ) it_travelx = VALUE #( ( action_code = /dmo/if_flight_legacy13=>action_code-update travel_id = cs_travel-travel_id total_price = abap_true currency_code = abap_true ) ) IMPORTING et_messages = DATA(lt_messages) ). ASSERT lt_messages IS INITIAL. ENDIF. ENDMETHOD. METHOD _resolve_attribute. CLEAR rv_symsgv. CASE iv_attrname. WHEN ''. rv_symsgv = ''. WHEN 'MV_TRAVEL_ID'. rv_symsgv = |{ ix->mv_travel_id ALPHA = OUT }|. WHEN 'MV_BOOKING_ID'. rv_symsgv = |{ ix->mv_booking_id ALPHA = OUT }|. WHEN 'MV_BOOKING_SUPPLEMENT_ID'. rv_symsgv = |{ ix->mv_booking_supplement_id ALPHA = OUT }|. WHEN 'MV_AGENCY_ID'. rv_symsgv = |{ ix->mv_agency_id ALPHA = OUT }|. WHEN 'MV_CUSTOMER_ID'. rv_symsgv = |{ ix->mv_customer_id ALPHA = OUT }|. WHEN 'MV_CARRIER_ID'. rv_symsgv = |{ ix->mv_carrier_id ALPHA = OUT }|. WHEN 'MV_CONNECTION_ID'. rv_symsgv = |{ ix->mv_connection_id ALPHA = OUT }|. WHEN 'MV_SUPPLEMENT_ID'. rv_symsgv = ix->mv_supplement_id. WHEN 'MV_BEGIN_DATE'. rv_symsgv = |{ ix->mv_begin_date DATE = USER }|. WHEN 'MV_END_DATE'. rv_symsgv = |{ ix->mv_end_date DATE = USER }|. WHEN 'MV_BOOKING_DATE'. rv_symsgv = |{ ix->mv_booking_date DATE = USER }|. WHEN 'MV_FLIGHT_DATE'. rv_symsgv = |{ ix->mv_flight_date DATE = USER }|. WHEN 'MV_STATUS'. rv_symsgv = ix->mv_status. WHEN 'MV_CURRENCY_CODE'. rv_symsgv = ix->mv_currency_code. WHEN 'MV_UNAME'. rv_symsgv = ix->mv_uname. WHEN OTHERS. ASSERT 1 = 2. ENDCASE. ENDMETHOD. ENDCLASS.
[ 31631, 1220, 67, 5908, 14, 565, 62, 22560, 62, 1455, 1590, 1485, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 198, 220, 10188, 9864, 1847, 48167, 1677, 5258, 1220, 67, 5908, 14, 565, 62, 22560, 62, 7890, 62, 8612, 265, 62, 1485, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1485, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 12964, 5883, 1259, 62, 3803, 62, 14171, 19269, 18415, 11335, 1487, 62, 14171, 553, 7383, 8794, 389, 1760, 13869, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2251, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4296, 553, 5514, 7032, 326, 423, 587, 3421, 761, 284, 307, 10667, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 12964, 5883, 1259, 62, 3803, 62, 14171, 19269, 18415, 11335, 1487, 62, 14171, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 25, 651, 62, 39098, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 39098, 8, 41876, 4526, 37, 5390, 1220, 67, 5908, 14, 565, 62, 22560, 62, 1455, 1590, 1485, 13, 628, 220, 220, 220, 366, 220, 220, 2080, 2461, 284, 262, 976, 2446, 869, 286, 2251, 14, 19119, 14, 33678, 62, 35927, 3419, 356, 423, 1439, 393, 10528, 13, 198, 220, 220, 220, 366, 220, 220, 314, 13, 68, 13, 618, 530, 286, 262, 2974, 4909, 281, 4049, 11, 262, 1844, 869, 318, 6520, 13, 198, 220, 220, 220, 366, 220, 220, 2102, 11, 262, 11876, 318, 407, 12539, 287, 1339, 286, 281, 4049, 13, 198, 220, 220, 220, 366, 220, 220, 314, 13, 68, 13, 618, 262, 24955, 3382, 284, 923, 625, 11, 339, 2476, 284, 869, 20768, 1096, 3419, 11777, 13, 628, 220, 220, 220, 337, 36252, 50, 900, 62, 13376, 62, 1462, 62, 2070, 276, 30023, 9863, 2751, 21628, 62, 35927, 62, 312, 41876, 1220, 67, 5908, 14, 35927, 62, 312, 1485, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 2123, 62, 37348, 1095, 220, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1485, 14804, 926, 62, 361, 62, 83, 3064, 62, 20500, 13, 628, 220, 220, 220, 337, 36252, 50, 2251, 62, 35927, 30023, 9863, 2751, 318, 62, 35927, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1485, 14804, 912, 62, 35927, 62, 259, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 2070, 278, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1485, 14804, 926, 62, 2070, 278, 62, 259, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 2070, 278, 62, 18608, 1732, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1485, 14804, 926, 62, 2070, 278, 62, 18608, 1732, 62, 259, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 1658, 62, 35927, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 35927, 1485, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2123, 62, 2070, 278, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1485, 14804, 926, 62, 2070, 278, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2123, 62, 2070, 278, 62, 18608, 1732, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1485, 14804, 926, 62, 2070, 278, 62, 18608, 1732, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2123, 62, 37348, 1095, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1485, 14804, 926, 62, 361, 62, 83, 3064, 62, 20500, 13, 198, 220, 220, 220, 337, 36252, 50, 4296, 62, 35927, 30023, 9863, 2751, 318, 62, 35927, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1485, 14804, 912, 62, 35927, 62, 259, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 35927, 87, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1485, 14804, 912, 62, 35927, 62, 28413, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 2070, 278, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_gui_chunk_lib DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. TYPES: BEGIN OF ty_event_signature, method TYPE string, name TYPE string, END OF ty_event_signature . CLASS-METHODS class_constructor . CLASS-METHODS render_error IMPORTING !ix_error TYPE REF TO zcx_abapgit_exception OPTIONAL !iv_error TYPE string OPTIONAL !iv_extra_style TYPE string OPTIONAL RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html . CLASS-METHODS render_repo_top IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo !iv_show_package TYPE abap_bool DEFAULT abap_true !iv_show_branch TYPE abap_bool DEFAULT abap_true !iv_show_commit TYPE abap_bool DEFAULT abap_true !iv_interactive_branch TYPE abap_bool DEFAULT abap_false !io_news TYPE REF TO zcl_abapgit_news OPTIONAL RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . CLASS-METHODS render_item_state IMPORTING !iv_lstate TYPE char1 !iv_rstate TYPE char1 RETURNING VALUE(rv_html) TYPE string . CLASS-METHODS render_js_error_banner RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . CLASS-METHODS render_news IMPORTING !io_news TYPE REF TO zcl_abapgit_news RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . CLASS-METHODS render_commit_popup IMPORTING !iv_content TYPE csequence !iv_id TYPE csequence RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . CLASS-METHODS render_error_message_box IMPORTING !ix_error TYPE REF TO zcx_abapgit_exception RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html . CLASS-METHODS render_order_by_header_cells IMPORTING !it_col_spec TYPE zif_abapgit_definitions=>ty_col_spec_tt !iv_order_by TYPE string !iv_order_descending TYPE abap_bool RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html . CLASS-METHODS render_warning_banner IMPORTING !iv_text TYPE string RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html . CLASS-METHODS render_infopanel IMPORTING !iv_div_id TYPE string !iv_title TYPE string !iv_hide TYPE abap_bool DEFAULT abap_true !iv_hint TYPE string OPTIONAL !iv_scrollable TYPE abap_bool DEFAULT abap_true !io_content TYPE REF TO zif_abapgit_html RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . CLASS-METHODS render_event_as_form IMPORTING !is_event TYPE ty_event_signature RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html . CLASS-METHODS render_repo_palette IMPORTING !iv_action TYPE string RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . CLASS-METHODS advanced_submenu RETURNING VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar . CLASS-METHODS help_submenu RETURNING VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar . CLASS-METHODS settings_toolbar IMPORTING !iv_act TYPE string RETURNING VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar . CLASS-METHODS settings_repo_toolbar IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !iv_act TYPE string RETURNING VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar . CLASS-METHODS render_branch_name IMPORTING !iv_branch TYPE string OPTIONAL !iv_repo_key TYPE zif_abapgit_persistence=>ty_value OPTIONAL !io_repo TYPE REF TO zcl_abapgit_repo_online OPTIONAL !iv_interactive TYPE abap_bool DEFAULT abap_true RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . CLASS-METHODS render_package_name IMPORTING !iv_package TYPE devclass !iv_interactive TYPE abap_bool DEFAULT abap_true !iv_suppress_title TYPE abap_bool DEFAULT abap_false RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . CLASS-METHODS render_user_name IMPORTING !iv_username TYPE xubname !iv_interactive TYPE abap_bool DEFAULT abap_true !iv_icon_only TYPE abap_bool DEFAULT abap_false !iv_suppress_title TYPE abap_bool DEFAULT abap_false RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . CLASS-METHODS render_transport IMPORTING !iv_transport TYPE trkorr !iv_interactive TYPE abap_bool DEFAULT abap_true !iv_icon_only TYPE abap_bool DEFAULT abap_false RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . PROTECTED SECTION. CLASS-METHODS render_repo_top_commit_hash IMPORTING !ii_html TYPE REF TO zif_abapgit_html !io_repo_online TYPE REF TO zcl_abapgit_repo_online RAISING zcx_abapgit_exception . PRIVATE SECTION. CLASS-DATA gv_time_zone TYPE timezone . CLASS-METHODS get_t100_text IMPORTING !iv_msgid TYPE scx_t100key-msgid !iv_msgno TYPE scx_t100key-msgno RETURNING VALUE(rv_text) TYPE string . CLASS-METHODS normalize_program_name IMPORTING !iv_program_name TYPE sy-repid RETURNING VALUE(rv_normalized_program_name) TYPE string . ENDCLASS. CLASS zcl_abapgit_gui_chunk_lib IMPLEMENTATION. METHOD advanced_submenu. DATA: li_gui_functions TYPE REF TO zif_abapgit_gui_functions, lv_supports_ie_devtools TYPE abap_bool. li_gui_functions = zcl_abapgit_ui_factory=>get_gui_functions( ). lv_supports_ie_devtools = li_gui_functions->is_sapgui_for_windows( ). CREATE OBJECT ro_menu. ro_menu->add( iv_txt = 'Database Utility' iv_act = zif_abapgit_definitions=>c_action-go_db )->add( iv_txt = 'Package to ZIP' iv_act = zif_abapgit_definitions=>c_action-zip_package )->add( iv_txt = 'Transport to ZIP' iv_act = zif_abapgit_definitions=>c_action-zip_transport )->add( iv_txt = 'Object to Files' iv_act = zif_abapgit_definitions=>c_action-zip_object )->add( iv_txt = 'Debug Info' iv_act = zif_abapgit_definitions=>c_action-go_debuginfo ). IF lv_supports_ie_devtools = abap_true. ro_menu->add( iv_txt = 'Open IE DevTools' iv_act = zif_abapgit_definitions=>c_action-ie_devtools ). ENDIF. ro_menu->add( iv_txt = 'Performance Test' iv_act = zif_abapgit_definitions=>c_action-performance_test ). ENDMETHOD. METHOD class_constructor. CALL FUNCTION 'GET_SYSTEM_TIMEZONE' IMPORTING timezone = gv_time_zone EXCEPTIONS customizing_missing = 1 OTHERS = 2. ASSERT sy-subrc = 0. ENDMETHOD. METHOD get_t100_text. SELECT SINGLE text FROM t100 INTO rv_text WHERE arbgb = iv_msgid AND msgnr = iv_msgno AND sprsl = sy-langu. ENDMETHOD. METHOD help_submenu. CREATE OBJECT ro_menu. ro_menu->add( iv_txt = 'Tutorial' iv_act = zif_abapgit_definitions=>c_action-go_tutorial )->add( iv_txt = 'Documentation' iv_act = zif_abapgit_definitions=>c_action-documentation )->add( iv_txt = 'Explore' iv_act = zif_abapgit_definitions=>c_action-go_explore )->add( iv_txt = 'Changelog' iv_act = zif_abapgit_definitions=>c_action-changelog ). ENDMETHOD. METHOD normalize_program_name. rv_normalized_program_name = substring_before( val = iv_program_name regex = `(=+CP)?$` ). ENDMETHOD. METHOD render_branch_name. DATA: lv_key TYPE string, lv_branch TYPE string, lv_selected_commit TYPE string, lv_commit_short_sha TYPE string, lv_text TYPE string, lv_class TYPE string. IF iv_repo_key IS NOT INITIAL. lv_key = iv_repo_key. ELSEIF io_repo IS BOUND. lv_key = io_repo->get_key( ). ELSE. zcx_abapgit_exception=>raise( 'Either iv_repo_key or io_repo must be supplied' ). ENDIF. IF iv_branch IS NOT INITIAL. lv_branch = iv_branch. lv_text = zcl_abapgit_git_branch_list=>get_display_name( lv_branch ). ELSEIF io_repo IS BOUND. lv_selected_commit = io_repo->get_selected_commit( ). IF lv_selected_commit IS NOT INITIAL. "Convert to short commit. Example: (ae623b9...) lv_commit_short_sha = lv_selected_commit+0(7). lv_text = |({ lv_commit_short_sha }...)|. ELSE. lv_branch = io_repo->get_selected_branch( ). lv_text = zcl_abapgit_git_branch_list=>get_display_name( lv_branch ). ENDIF. ELSE. zcx_abapgit_exception=>raise( 'Either iv_branch or io_repo must be supplied' ). ENDIF. IF zcl_abapgit_git_branch_list=>get_type( lv_branch ) = zif_abapgit_definitions=>c_git_branch_type-branch. lv_class = 'branch branch_branch'. ELSE. lv_class = 'branch'. ENDIF. CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( |<span class="{ lv_class }">| ). ri_html->add_icon( iv_name = 'code-branch/grey70' iv_hint = 'Current branch' ). IF iv_interactive = abap_true. ri_html->add_a( iv_act = |{ zif_abapgit_definitions=>c_action-git_branch_switch }?key={ lv_key }| iv_txt = lv_text ). ELSE. ri_html->add( lv_text ). ENDIF. ri_html->add( '</span>' ). ENDMETHOD. METHOD render_commit_popup. CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( '<ul class="hotkeys">' ). ri_html->add( |<li>| && |<span>{ iv_content }</span>| && |</li>| ). ri_html->add( '</ul>' ). ri_html = render_infopanel( iv_div_id = |{ iv_id }| iv_title = 'Commit details' iv_hide = abap_true iv_scrollable = abap_false io_content = ri_html ). ENDMETHOD. METHOD render_error. DATA lv_error TYPE string. DATA lv_class TYPE string VALUE 'panel error center'. IF iv_extra_style IS NOT INITIAL. lv_class = lv_class && ` ` && iv_extra_style. ENDIF. CREATE OBJECT ri_html TYPE zcl_abapgit_html. IF ix_error IS BOUND. lv_error = ix_error->get_text( ). ELSE. lv_error = iv_error. ENDIF. ri_html->add( |<div class="{ lv_class }">| ). ri_html->add( |{ ri_html->icon( 'exclamation-circle/red' ) } { lv_error }| ). ri_html->add( '</div>' ). ENDMETHOD. METHOD render_error_message_box. DATA: lv_error_text TYPE string, lv_longtext TYPE string, lv_program_name TYPE sy-repid, lv_title TYPE string, lv_text TYPE string. CREATE OBJECT ri_html TYPE zcl_abapgit_html. lv_error_text = ix_error->get_text( ). lv_longtext = ix_error->if_message~get_longtext( abap_true ). REPLACE FIRST OCCURRENCE OF REGEX |({ zcx_abapgit_exception=>gc_section_text-cause }{ cl_abap_char_utilities=>newline })| IN lv_longtext WITH |<h3>$1</h3>|. REPLACE FIRST OCCURRENCE OF REGEX |({ zcx_abapgit_exception=>gc_section_text-system_response }{ cl_abap_char_utilities=>newline })| IN lv_longtext WITH |<h3>$1</h3>|. REPLACE FIRST OCCURRENCE OF REGEX |({ zcx_abapgit_exception=>gc_section_text-what_to_do }{ cl_abap_char_utilities=>newline })| IN lv_longtext WITH |<h3>$1</h3>|. REPLACE FIRST OCCURRENCE OF REGEX |({ zcx_abapgit_exception=>gc_section_text-sys_admin }{ cl_abap_char_utilities=>newline })| IN lv_longtext WITH |<h3>$1</h3>|. ri_html->add( |<div id="message" class="message-panel">| ). ri_html->add( |{ ri_html->icon( 'exclamation-circle/red' ) } { lv_error_text }| ). ri_html->add( |<div class="float-right">| ). ri_html->add_a( iv_txt = `&#x274c;` iv_act = `toggleDisplay('message')` iv_class = `close-btn` iv_typ = zif_abapgit_html=>c_action_type-onclick ). ri_html->add( |</div>| ). ri_html->add( |<div class="float-right message-panel-commands">| ). IF ix_error->if_t100_message~t100key-msgid IS NOT INITIAL. lv_title = get_t100_text( iv_msgid = ix_error->if_t100_message~t100key-msgid iv_msgno = ix_error->if_t100_message~t100key-msgno ). lv_text = |Message ({ ix_error->if_t100_message~t100key-msgid }/{ ix_error->if_t100_message~t100key-msgno })|. ri_html->add_a( iv_txt = lv_text iv_typ = zif_abapgit_html=>c_action_type-sapevent iv_act = zif_abapgit_definitions=>c_action-goto_message iv_title = lv_title iv_id = `a_goto_message` ). ENDIF. ix_error->get_source_position( IMPORTING program_name = lv_program_name ). lv_title = normalize_program_name( lv_program_name ). ri_html->add_a( iv_txt = `Goto source` iv_act = zif_abapgit_definitions=>c_action-goto_source iv_typ = zif_abapgit_html=>c_action_type-sapevent iv_title = lv_title iv_id = `a_goto_source` ). ri_html->add_a( iv_txt = `Callstack` iv_act = zif_abapgit_definitions=>c_action-show_callstack iv_typ = zif_abapgit_html=>c_action_type-sapevent iv_id = `a_callstack` ). ri_html->add( |</div>| ). ri_html->add( |<div class="message-panel-commands">| ). ri_html->add( |{ lv_longtext }| ). ri_html->add( |</div>| ). ri_html->add( |</div>| ). ENDMETHOD. METHOD render_event_as_form. CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( |<form id='form_{ is_event-name }' method={ is_event-method } action='sapevent:{ is_event-name }'></form>| ). ENDMETHOD. METHOD render_infopanel. DATA lv_display TYPE string. DATA lv_class TYPE string. CREATE OBJECT ri_html TYPE zcl_abapgit_html. IF iv_hide = abap_true. " Initially hide lv_display = 'display:none'. ENDIF. lv_class = 'info-panel'. IF iv_scrollable = abap_false. " Initially hide lv_class = lv_class && ' info-panel-fixed'. ENDIF. ri_html->add( |<div id="{ iv_div_id }" class="{ lv_class }" style="{ lv_display }">| ). ri_html->add( |<div class="info-title">{ iv_title }| && '<div class="float-right">' && ri_html->a( iv_txt = '&#x274c;' iv_typ = zif_abapgit_html=>c_action_type-onclick iv_act = |toggleDisplay('{ iv_div_id }')| iv_class = 'close-btn' ) && '</div></div>' ). IF iv_hint IS NOT INITIAL. ri_html->add( '<div class="info-hint">' && ri_html->icon( iv_name = 'exclamation-triangle' iv_class = 'pad-right' ) && iv_hint && '</div>' ). ENDIF. ri_html->add( |<div class="info-list">| ). ri_html->add( io_content ). ri_html->add( '</div>' ). ri_html->add( '</div>' ). ENDMETHOD. METHOD render_item_state. DATA: lv_system TYPE string. FIELD-SYMBOLS <lv_state> TYPE char1. rv_html = '<span class="state-block">'. DO 2 TIMES. CASE sy-index. WHEN 1. ASSIGN iv_lstate TO <lv_state>. lv_system = 'Local:'. WHEN 2. ASSIGN iv_rstate TO <lv_state>. lv_system = 'Remote:'. ENDCASE. CASE <lv_state>. WHEN zif_abapgit_definitions=>c_state-unchanged. "None or unchanged IF iv_lstate = zif_abapgit_definitions=>c_state-added OR iv_rstate = zif_abapgit_definitions=>c_state-added. rv_html = rv_html && |<span class="none" title="{ lv_system } Not exists">X</span>|. ELSE. rv_html = rv_html && |<span class="none" title="{ lv_system } No changes">&nbsp;</span>|. ENDIF. WHEN zif_abapgit_definitions=>c_state-modified. "Changed rv_html = rv_html && |<span class="changed" title="{ lv_system } Modified">M</span>|. WHEN zif_abapgit_definitions=>c_state-added. "Added new rv_html = rv_html && |<span class="added" title="{ lv_system } Added new">A</span>|. WHEN zif_abapgit_definitions=>c_state-mixed. "Multiple changes (multifile) rv_html = rv_html && |<span class="mixed" title="{ lv_system } Multiple changes">&#x25A0;</span>|. WHEN zif_abapgit_definitions=>c_state-deleted. "Deleted rv_html = rv_html && |<span class="deleted" title="{ lv_system } Deleted">D</span>|. ENDCASE. ENDDO. rv_html = rv_html && '</span>'. ENDMETHOD. METHOD render_js_error_banner. CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( '<div id="js-error-banner" class="dummydiv error">' ). ri_html->add( |{ ri_html->icon( 'exclamation-triangle/red' ) }| && ' If this does not disappear soon,' && ' then there is a JS init error, please log an issue' ). ri_html->add( '</div>' ). ENDMETHOD. METHOD render_news. DATA: lv_text TYPE string, lv_hint TYPE string, lt_log TYPE zcl_abapgit_news=>ty_logs. FIELD-SYMBOLS: <ls_line> LIKE LINE OF lt_log. CREATE OBJECT ri_html TYPE zcl_abapgit_html. IF io_news IS NOT BOUND OR io_news->has_news( ) = abap_false. RETURN. ENDIF. lt_log = io_news->get_log( ). " Render news LOOP AT lt_log ASSIGNING <ls_line>. IF <ls_line>-is_header = abap_true. IF <ls_line>-pos_to_cur > 0. lv_text = <ls_line>-text && '<span class="version-marker update">update</span>'. ELSEIF <ls_line>-pos_to_cur = 0. lv_text = <ls_line>-text && '<span class="version-marker">current</span>'. ELSE. " < 0 lv_text = <ls_line>-text. ENDIF. ri_html->add( |<h1>{ lv_text }</h1>| ). ELSE. <ls_line>-text = escape( val = <ls_line>-text format = cl_abap_format=>e_html_text ). ri_html->add( |<li>{ <ls_line>-text }</li>| ). ENDIF. ENDLOOP. " Wrap IF io_news->has_important( ) = abap_true. lv_hint = 'Please note changes marked with "!"'. ENDIF. ri_html = render_infopanel( iv_div_id = 'news' iv_title = 'Announcement of the latest changes' iv_hint = lv_hint iv_hide = boolc( io_news->has_unseen( ) = abap_false ) io_content = ri_html ). ENDMETHOD. METHOD render_order_by_header_cells. DATA: lv_tmp TYPE string, lv_disp_name TYPE string. FIELD-SYMBOLS <ls_col> LIKE LINE OF it_col_spec. CREATE OBJECT ri_html TYPE zcl_abapgit_html. LOOP AT it_col_spec ASSIGNING <ls_col>. " e.g. <th class="ro-detail">Created at [{ gv_time_zone }]</th> lv_tmp = '<th'. IF <ls_col>-css_class IS NOT INITIAL. lv_tmp = lv_tmp && | class="{ <ls_col>-css_class }"|. ENDIF. lv_tmp = lv_tmp && '>'. IF <ls_col>-display_name IS NOT INITIAL. lv_disp_name = <ls_col>-display_name. IF <ls_col>-add_tz = abap_true. lv_disp_name = lv_disp_name && | [{ gv_time_zone }]|. ENDIF. IF <ls_col>-tech_name = iv_order_by. IF iv_order_descending = abap_true. lv_tmp = lv_tmp && ri_html->a( iv_txt = lv_disp_name iv_act = |{ zif_abapgit_definitions=>c_action-direction }?direction=ASCENDING| iv_title = <ls_col>-title ). ELSE. lv_tmp = lv_tmp && ri_html->a( iv_txt = lv_disp_name iv_act = |{ zif_abapgit_definitions=>c_action-direction }?direction=DESCENDING| iv_title = <ls_col>-title ). ENDIF. ELSEIF <ls_col>-allow_order_by = abap_true. lv_tmp = lv_tmp && ri_html->a( iv_txt = lv_disp_name iv_act = |{ zif_abapgit_definitions=>c_action-change_order_by }?orderBy={ <ls_col>-tech_name }| iv_title = <ls_col>-title ). ELSE. lv_tmp = lv_tmp && ri_html->a( iv_txt = lv_disp_name iv_act = `` iv_title = <ls_col>-title ). ENDIF. ENDIF. IF <ls_col>-tech_name = iv_order_by AND iv_order_by IS NOT INITIAL. IF iv_order_descending = abap_true. lv_tmp = lv_tmp && | &#x25BE;|. " arrow down ELSE. lv_tmp = lv_tmp && | &#x25B4;|. " arrow up ENDIF. ENDIF. lv_tmp = lv_tmp && '</th>'. ri_html->add( lv_tmp ). ENDLOOP. ENDMETHOD. METHOD render_package_name. DATA: lv_obj_name TYPE tadir-obj_name, lv_jump TYPE string, lv_title TYPE string. CREATE OBJECT ri_html TYPE zcl_abapgit_html. IF iv_package IS INITIAL. RETURN. ENDIF. IF iv_suppress_title = abap_false. SELECT SINGLE ctext FROM tdevct INTO lv_title WHERE devclass = iv_package AND spras = sy-langu ##SUBRC_OK. ENDIF. lv_obj_name = iv_package. lv_jump = zcl_abapgit_html_action_utils=>jump_encode( iv_obj_type = 'DEVC' iv_obj_name = lv_obj_name ). ri_html->add( |<span class="package-box">| ). ri_html->add_icon( iv_name = 'box/grey70' iv_hint = 'SAP package' ). IF iv_interactive = abap_true. ri_html->add_a( iv_act = |{ zif_abapgit_definitions=>c_action-jump }?{ lv_jump }| iv_title = lv_title iv_txt = to_lower( iv_package ) ). ELSE. ri_html->add( to_lower( iv_package ) ). ENDIF. ri_html->add( '</span>' ). ENDMETHOD. METHOD render_repo_palette. DATA lt_repo_obj_list TYPE zif_abapgit_repo_srv=>ty_repo_list. DATA lt_repo_list TYPE zif_abapgit_persistence=>ty_repos. DATA lv_repo_json TYPE string. DATA lv_size TYPE i. DATA ls_repo_data LIKE LINE OF lt_repo_list. FIELD-SYMBOLS: <ls_repo> LIKE LINE OF lt_repo_list, <lr_repo_obj> LIKE LINE OF lt_repo_obj_list. lt_repo_obj_list = zcl_abapgit_repo_srv=>get_instance( )->list( ). LOOP AT lt_repo_obj_list ASSIGNING <lr_repo_obj>. ls_repo_data = <lr_repo_obj>->ms_data. ls_repo_data-local_settings-display_name = <lr_repo_obj>->get_name( ). APPEND ls_repo_data TO lt_repo_list. ENDLOOP. lv_size = lines( lt_repo_list ). SORT lt_repo_list BY local_settings-display_name AS TEXT. CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( 'var repoCatalog = [' ). " Maybe separate this into another method if needed in more places LOOP AT lt_repo_list ASSIGNING <ls_repo>. lv_repo_json = |\{ key: "{ <ls_repo>-key }", isOffline: "{ <ls_repo>-offline }", displayName: "{ <ls_repo>-local_settings-display_name }" \}|. IF sy-tabix < lv_size. lv_repo_json = lv_repo_json && ','. ENDIF. ri_html->add( lv_repo_json ). ENDLOOP. ri_html->add( '];' ). ri_html->add( |var gGoRepoPalette = new CommandPalette(createRepoCatalogEnumerator(repoCatalog, "{ iv_action }"), \{| ). ri_html->add( ' toggleKey: "F2",' ). ri_html->add( ' hotkeyDescription: "Go to repo ..."' ). ri_html->add( '});' ). ENDMETHOD. METHOD render_repo_top. DATA: lo_repo_online TYPE REF TO zcl_abapgit_repo_online, lo_pback TYPE REF TO zcl_abapgit_persist_background, lx_error TYPE REF TO zcx_abapgit_exception, lv_hint TYPE string, lv_icon TYPE string. CREATE OBJECT ri_html TYPE zcl_abapgit_html. CREATE OBJECT lo_pback. IF io_repo->is_offline( ) = abap_true. lv_icon = 'plug/darkgrey'. lv_hint = 'Offline repository'. ELSE. lv_icon = 'cloud-upload-alt/blue'. lv_hint = 'On-line repository'. ENDIF. ri_html->add( '<table class="w100"><tr>' ). ri_html->add( '<td class="repo_name">' ). " Repo type and name ri_html->add_icon( iv_name = lv_icon iv_hint = lv_hint ). ri_html->add( |<span class="name">{ io_repo->get_name( ) }</span>| ). IF io_repo->is_offline( ) = abap_false. lo_repo_online ?= io_repo. ri_html->add_a( iv_txt = lo_repo_online->get_url( ) iv_act = |{ zif_abapgit_definitions=>c_action-url }?url=| && |{ lo_repo_online->get_url( ) }| iv_class = |url| ). IF iv_show_commit = abap_true. TRY. render_repo_top_commit_hash( ii_html = ri_html io_repo_online = lo_repo_online ). CATCH zcx_abapgit_exception INTO lx_error. " In case of missing or wrong credentials, show message in status bar lv_hint = lx_error->get_text( ). IF lv_hint CS 'credentials'. MESSAGE lv_hint TYPE 'S' DISPLAY LIKE 'E'. ENDIF. ENDTRY. ENDIF. ENDIF. " News IF io_news IS BOUND AND io_news->has_news( ) = abap_true. IF io_news->has_updates( ) = abap_true. lv_icon = 'arrow-circle-up/warning'. ELSE. lv_icon = 'arrow-circle-up/grey80'. ENDIF. ri_html->add_a( iv_act = |toggleDisplay('news')| iv_typ = zif_abapgit_html=>c_action_type-onclick iv_txt = ri_html->icon( iv_name = lv_icon iv_class = 'pad-sides' iv_hint = 'Display changelog' ) ). ENDIF. ri_html->add( '</td>' ). ri_html->add( '<td class="repo_attr right">' ). " Fav IF abap_true = zcl_abapgit_persistence_user=>get_instance( )->is_favorite_repo( io_repo->get_key( ) ). lv_icon = 'star/blue'. ELSE. lv_icon = 'star/grey'. ENDIF. ri_html->add_a( iv_act = |{ zif_abapgit_definitions=>c_action-repo_toggle_fav }?key={ io_repo->get_key( ) }| iv_txt = ri_html->icon( iv_name = lv_icon iv_class = 'pad-sides' iv_hint = 'Click to toggle favorite' ) ). " BG IF lo_pback->exists( io_repo->get_key( ) ) = abap_true. ri_html->add( '<span class="bg_marker" title="background">BG</span>' ). ENDIF. " Write protect IF io_repo->get_local_settings( )-write_protected = abap_true. ri_html->add_icon( iv_name = 'lock/grey70' iv_hint = 'Locked from pulls' ). ENDIF. " Branch IF io_repo->is_offline( ) = abap_false. lo_repo_online ?= io_repo. IF iv_show_branch = abap_true. ri_html->add( render_branch_name( io_repo = lo_repo_online iv_interactive = iv_interactive_branch ) ). ENDIF. ENDIF. " Package IF iv_show_package = abap_true. ri_html->add( render_package_name( io_repo->get_package( ) ) ). ENDIF. ri_html->add( '</td>' ). ri_html->add( '</tr></table>' ). ENDMETHOD. METHOD render_repo_top_commit_hash. DATA: lv_commit_hash TYPE zif_abapgit_definitions=>ty_sha1, lv_commit_short_hash TYPE zif_abapgit_definitions=>ty_sha1, lv_display_url TYPE zif_abapgit_persistence=>ty_repo-url, lo_url TYPE REF TO zcl_abapgit_git_url, lv_icon_commit TYPE string. lv_commit_hash = io_repo_online->get_current_remote( ). lv_commit_short_hash = lv_commit_hash(7). lv_icon_commit = ii_html->icon( iv_name = 'code-commit' iv_class = 'pad-sides' iv_hint = 'Commit' ). CREATE OBJECT lo_url. TRY. lv_display_url = lo_url->get_commit_display_url( io_repo_online ). ii_html->add_a( iv_txt = |{ lv_icon_commit }{ lv_commit_short_hash }| iv_act = |{ zif_abapgit_definitions=>c_action-url }?url={ lv_display_url }| iv_class = |url| ). CATCH zcx_abapgit_exception. ii_html->add( |<span class="url">{ lv_icon_commit }{ lv_commit_short_hash }</span>| ). ENDTRY. ENDMETHOD. METHOD render_transport. DATA: lv_title TYPE string, lv_jump TYPE string. CREATE OBJECT ri_html TYPE zcl_abapgit_html. IF iv_transport IS INITIAL. RETURN. ENDIF. SELECT SINGLE as4text FROM e07t INTO lv_title WHERE trkorr = iv_transport AND langu = sy-langu ##SUBRC_OK. lv_jump = |{ zif_abapgit_definitions=>c_action-jump_transport }?transport={ iv_transport }|. IF iv_icon_only = abap_true. ri_html->add_a( iv_act = lv_jump iv_title = |Transport { iv_transport }| iv_txt = zcl_abapgit_html=>icon( 'truck-solid/darkgrey' ) ). ELSE. ri_html->add( |<span class="transport-box">| ). ri_html->add_icon( iv_name = 'truck-solid/grey70' iv_hint = 'Transport' ). IF iv_interactive = abap_true. ri_html->add_a( iv_act = lv_jump iv_title = lv_title iv_txt = to_lower( iv_transport ) ). ELSE. ri_html->add( to_lower( iv_transport ) ). ENDIF. ri_html->add( '</span>' ). ENDIF. ENDMETHOD. METHOD render_user_name. DATA: ls_user_address TYPE addr3_val, lv_title TYPE string, lv_jump TYPE string. CREATE OBJECT ri_html TYPE zcl_abapgit_html. IF iv_username IS INITIAL. RETURN. ENDIF. IF iv_username <> zcl_abapgit_objects_super=>c_user_unknown AND iv_suppress_title = abap_false. CALL FUNCTION 'SUSR_USER_ADDRESS_READ' EXPORTING user_name = iv_username IMPORTING user_address = ls_user_address EXCEPTIONS user_address_not_found = 1 OTHERS = 2. IF sy-subrc = 0. lv_title = ls_user_address-name_text. ENDIF. ENDIF. lv_jump = |{ zif_abapgit_definitions=>c_action-jump_user }?user={ iv_username }|. IF iv_icon_only = abap_true. ri_html->add_a( iv_act = lv_jump iv_title = lv_title iv_txt = zcl_abapgit_html=>icon( 'user-solid/darkgrey' ) ). ELSE. ri_html->add( |<span class="user-box">| ). ri_html->add_icon( iv_name = 'user-solid/grey70' iv_hint = 'User name' ). IF iv_interactive = abap_true AND iv_username <> zcl_abapgit_objects_super=>c_user_unknown. ri_html->add_a( iv_act = lv_jump iv_title = lv_title iv_txt = to_lower( iv_username ) ). ELSE. ri_html->add( to_lower( iv_username ) ). ENDIF. ri_html->add( '</span>' ). ENDIF. ENDMETHOD. METHOD render_warning_banner. CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( '<div class="dummydiv warning">' ). ri_html->add( |{ ri_html->icon( 'exclamation-triangle/yellow' ) } { iv_text }| ). ri_html->add( '</div>' ). ENDMETHOD. METHOD settings_repo_toolbar. CREATE OBJECT ro_menu EXPORTING iv_id = 'toolbar-repo-settings'. ro_menu->add( iv_txt = 'Repository' iv_act = |{ zif_abapgit_definitions=>c_action-repo_settings }?key={ iv_key }| iv_cur = boolc( iv_act = zif_abapgit_definitions=>c_action-repo_settings ) )->add( iv_txt = 'Local' iv_act = |{ zif_abapgit_definitions=>c_action-repo_local_settings }?key={ iv_key }| iv_cur = boolc( iv_act = zif_abapgit_definitions=>c_action-repo_local_settings ) )->add( iv_txt = 'Stats' iv_act = |{ zif_abapgit_definitions=>c_action-repo_infos }?key={ iv_key }| iv_cur = boolc( iv_act = zif_abapgit_definitions=>c_action-repo_infos ) ). ENDMETHOD. METHOD settings_toolbar. CREATE OBJECT ro_menu EXPORTING iv_id = 'toolbar-settings'. ro_menu->add( iv_txt = 'Global' iv_act = zif_abapgit_definitions=>c_action-go_settings iv_cur = boolc( iv_act = zif_abapgit_definitions=>c_action-go_settings ) )->add( iv_txt = 'Personal' iv_act = zif_abapgit_definitions=>c_action-go_settings_personal iv_cur = boolc( iv_act = zif_abapgit_definitions=>c_action-go_settings_personal ) ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 354, 2954, 62, 8019, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 15596, 62, 12683, 1300, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2446, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 220, 1259, 62, 15596, 62, 12683, 1300, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 1398, 62, 41571, 273, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 8543, 62, 18224, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 844, 62, 18224, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 18224, 220, 220, 220, 220, 220, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26086, 62, 7635, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 6494, 8, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 8543, 62, 260, 7501, 62, 4852, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 260, 7501, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 12860, 62, 26495, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 12860, 62, 1671, 3702, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 12860, 62, 41509, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3849, 5275, 62, 1671, 3702, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 10827, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 10827, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 6494, 8, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 8543, 62, 9186, 62, 5219, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 75, 5219, 220, 220, 220, 220, 41876, 1149, 16, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 81, 5219, 220, 220, 220, 220, 41876, 1149, 16, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 6494, 8, 41876, 4731, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 8543, 62, 8457, 62, 18224, 62, 3820, 1008, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 8543, 62, 10827, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 10827, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 10827, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 8543, 62, 41509, 62, 12924, 929, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 11299, 220, 220, 220, 41876, 269, 43167, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 43167, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 8543, 62, 18224, 62, 20500, 62, 3524, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 844, 62, 18224, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class zcl_fpm_static definition public final create public . *"* public components of class ZCL_FPM_STATIC *"* do not include other source files here!!! public section. interface if_wd_window load . class-data r_oif type ref to cl_fpm_oif . class-methods clear . class-methods message importing !i_type type msgty optional !i_text type simple optional !is_message type zsmessage optional raising zcx_generic . class-methods messages importing !it_messages type zimessages optional raising zcx_generic . class-methods get_severity importing !iv_type type msgty optional returning value(ev_severity) type fpm_message_severity . class-methods get returning value(er_fpm) type ref to if_fpm raising zcx_generic . class-methods get_idr returning value(er_idr) type ref to cl_fpm_idr raising zcx_generic . class-methods get_oif returning value(er_oif) type ref to if_fpm_cnr_oif raising zcx_generic . class-methods create_event importing !i_id type fpm_event_id !ir_param type ref to if_fpm_parameter optional returning value(r_event) type ref to cl_fpm_event . class-methods raise_event importing !i_event type simple !ir_param type ref to cl_fpm_parameter optional . protected section. *"* protected components of class ZCL_FPM_STATIC *"* do not include other source files here!!! private section. *"* private components of class ZCL_FPM_STATIC *"* do not include other source files here!!! class-data dummy type dummy . ENDCLASS. CLASS ZCL_FPM_STATIC IMPLEMENTATION. method clear. try. data lr_fpm type ref to if_fpm. lr_fpm = get( ). lr_fpm->mo_message_manager->clear_messages( lr_fpm ). catch cx_root. assert 1 = 2. endtry. endmethod. method create_event. * Determine, whether event is validating or not; default to true data l_is_validating type boole_d. l_is_validating = 'X'. if i_id = cl_fpm_event=>gc_event_cancel or i_id = cl_fpm_event=>gc_event_previous_step. l_is_validating = ' '. endif. * Determine, whether IF_FPM_TRANSACTION is to be processed; default is false data l_is_transactional type boole_d. l_is_transactional = ' '. if i_id = cl_fpm_event=>gc_event_save or i_id = cl_fpm_event=>gc_event_save_as or i_id = cl_fpm_event=>gc_event_delete_current_object. l_is_transactional = 'X'. endif. * Create event data lr_event type ref to cl_fpm_event. create object lr_event exporting iv_event_id = i_id iv_is_validating = l_is_validating iv_is_transactional = l_is_transactional io_event_data = ir_param. r_event = lr_event. endmethod. method get. er_fpm ?= cl_fpm=>get_instance( ). endmethod. method get_idr. data lr_fpm type ref to if_fpm. lr_fpm = get( ). er_idr ?= lr_fpm->get_service( 'IDR' ). endmethod. method get_oif. data lr_fpm type ref to if_fpm. lr_fpm = get( ). er_oif ?= lr_fpm->get_service( 'CNR_OIF' ). endmethod. method get_severity. if iv_type is initial. data lv_type like iv_type. lv_type = sy-msgty. else. lv_type = iv_type. endif. case lv_type. when 'S'. ev_severity = if_fpm_message_manager=>gc_severity_success. when 'W'. ev_severity = if_fpm_message_manager=>gc_severity_warning. when 'E' or 'A' or 'X'. ev_severity = if_fpm_message_manager=>gc_severity_error. endcase. endmethod. method message. data lr_fpm type ref to if_fpm. lr_fpm = get( ). if lr_fpm is not bound. return. endif. if i_text is not initial. " Set message data l_text type string. l_text = i_text. " Set type data l_severity type fpm_message_severity. l_severity = get_severity( i_type ). elseif is_message is not initial. l_text = zcl_message_static=>get_text( is_message = is_message ). l_severity = get_severity( is_message-msgty ). else. l_text = zcl_message_static=>get_text( ). l_severity = get_severity( ). endif. lr_fpm->mo_message_manager->report_message( io_component = lr_fpm iv_message_text = l_text iv_severity = l_severity ). endmethod. method messages. data ls_message like line of it_messages. loop at it_messages into ls_message. message( is_message = ls_message ). endloop. endmethod. method raise_event. data l_event type fpm_event_id. l_event = i_event. data lr_event type ref to cl_fpm_event. lr_event = create_event( i_id = l_event ir_param = ir_param ). data lr_fpm type ref to if_fpm. lr_fpm = cl_fpm_factory=>get_instance( ). lr_fpm->raise_event( lr_event ). endmethod. ENDCLASS.
[ 4871, 1976, 565, 62, 69, 4426, 62, 12708, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 5837, 44, 62, 35744, 2149, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 7071, 611, 62, 16993, 62, 17497, 3440, 764, 628, 220, 220, 220, 1398, 12, 7890, 374, 62, 78, 361, 2099, 1006, 284, 537, 62, 69, 4426, 62, 78, 361, 764, 628, 220, 220, 220, 1398, 12, 24396, 82, 1598, 764, 198, 220, 220, 220, 1398, 12, 24396, 82, 3275, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 4906, 220, 220, 220, 220, 2099, 31456, 774, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 5239, 220, 220, 220, 220, 2099, 2829, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 20500, 2099, 1976, 5796, 7589, 11902, 198, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 41357, 764, 198, 220, 220, 220, 1398, 12, 24396, 82, 6218, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 37348, 1095, 2099, 1976, 320, 408, 1095, 11902, 198, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 41357, 764, 198, 220, 220, 220, 1398, 12, 24396, 82, 651, 62, 28116, 414, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 4906, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 31456, 774, 11902, 198, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 1990, 62, 28116, 414, 8, 2099, 277, 4426, 62, 20500, 62, 28116, 414, 764, 198, 220, 220, 220, 1398, 12, 24396, 82, 651, 198, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 263, 62, 69, 4426, 8, 2099, 1006, 284, 611, 62, 69, 4426, 198, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 41357, 764, 198, 220, 220, 220, 1398, 12, 24396, 82, 651, 62, 312, 81, 198, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 263, 62, 312, 81, 8, 2099, 1006, 284, 537, 62, 69, 4426, 62, 312, 81, 198, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 41357, 764, 198, 220, 220, 220, 1398, 12, 24396, 82, 651, 62, 78, 361, 198, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 263, 62, 78, 361, 8, 2099, 1006, 284, 611, 62, 69, 4426, 62, 31522, 81, 62, 78, 361, 198, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 41357, 764, 198, 220, 220, 220, 1398, 12, 24396, 82, 2251, 62, 15596, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 277, 4426, 62, 15596, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 343, 62, 17143, 220, 220, 220, 220, 220, 2099, 1006, 284, 611, 62, 69, 4426, 62, 17143, 2357, 11902, 198, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 81, 62, 15596, 8, 2099, 1006, 284, 537, 62, 69, 4426, 62, 15596, 764, 198, 220, 220, 220, 1398, 12, 24396, 82, 5298, 62, 15596, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 15596, 220, 2099, 2829, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 343, 62, 17143, 2099, 1006, 284, 537, 62, 69, 4426, 62, 17143, 2357, 11902, 764, 198, 220, 6861, 2665, 13, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 5097, 62, 5837, 44, 62, 35744, 2149, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 2839, 2665, 13, 198, 9, 1, 9, 2839, 6805, 286, 1398, 1168, 5097, 62, 5837, 44, 62, 35744, 2149, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 628, 220, 220, 220, 1398, 12, 7890, 31548, 2099, 31548, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 5837, 44, 62, 35744, 2149, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 2446, 1598, 13, 628, 220, 220, 220, 1949, 13, 628, 220, 220, 220, 220, 220, 220, 220, 1366, 300, 81, 62, 69, 4426, 2099, 1006, 284, 611, 62, 69, 4426, 13, 198, 220, 220, 220, 220, 220, 220, 220, 300, 81, 62, 69, 4426, 796, 651, 7, 6739, 628, 220, 220, 220, 220, 220, 220, 220, 300, 81, 62, 69, 4426, 3784, 5908, 62, 20500, 62, 37153, 3784, 20063, 62, 37348, 1095, 7, 300, 81, 62, 69, 4426, 6739, 628, 220, 220, 220, 220, 220, 4929, 43213, 62, 15763, 13, 198, 220, 220, 220, 220, 220, 220, 220, 6818, 352, 796, 362, 13, 198, 220, 220, 220, 886, 28311, 13, 628, 220, 886, 24396, 13, 628, 198, 220, 2446, 2251, 62, 15596, 13, 198, 198, 9, 45559, 3810, 11, 1771, 1785, 318, 4938, 803, 393, 407, 26, 4277, 284, 2081, 198, 220, 220, 220, 1366, 300, 62, 271, 62, 12102, 803, 2099, 1489, 2305, 62, 67, 13, 198, 220, 220, 220, 300, 62, 271, 62, 12102, 803, 796, 705, 55, 4458, 198, 220, 220, 220, 611, 1312, 62, 312, 796, 537, 62, 69, 4426, 62, 15596, 14804, 36484, 62, 15596, 62, 66, 21130, 393, 198, 220, 220, 220, 220, 220, 220, 1312, 62, 312, 796, 537, 62, 69, 4426, 62, 15596, 14804, 36484, 62, 15596, 62, 3866, 1442, 62, 9662, 13, 198, 220, 220, 220, 220, 220, 300, 62, 271, 62, 12102, 803, 796, 705, 45302, 198, 220, 220, 220, 45762, 13, 198, 198, 9, 45559 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS y_check_base DEFINITION PUBLIC ABSTRACT INHERITING FROM cl_ci_test_scan CREATE PUBLIC GLOBAL FRIENDS y_unit_test_base y_unit_test_coverage. PUBLIC SECTION. CONSTANTS: BEGIN OF c_code, error TYPE sci_errc VALUE '100', warning TYPE sci_errc VALUE '101', notification TYPE sci_errc VALUE '102', END OF c_code. CONSTANTS c_code_not_maintained TYPE sci_errc VALUE '106' ##NO_TEXT. CONSTANTS: BEGIN OF c_docs_path, main TYPE string VALUE 'https://github.com/SAP/code-pal-for-abap/blob/master/docs/' ##NO_TEXT, checks TYPE string VALUE 'https://github.com/SAP/code-pal-for-abap/blob/master/docs/checks/' ##NO_TEXT, END OF c_docs_path. DATA: BEGIN OF settings READ-ONLY, pseudo_comment TYPE sci_pcom, disable_on_prodcode_selection TYPE abap_bool, disable_on_testcode_selection TYPE abap_bool, disable_threshold_selection TYPE abap_bool, object_created_on TYPE creationdt, threshold TYPE ycicc_threshold, prio TYPE ycicc_message_kind, apply_on_productive_code TYPE ycicc_productive_code, apply_on_test_code TYPE ycicc_testcode, documentation TYPE c LENGTH 1000, is_threshold_reversed TYPE abap_bool, ignore_pseudo_comments TYPE abap_bool, END OF settings. METHODS constructor. METHODS get_attributes REDEFINITION. METHODS if_ci_test~display_documentation REDEFINITION. METHODS if_ci_test~query_attributes REDEFINITION. METHODS put_attributes REDEFINITION. METHODS run REDEFINITION. PROTECTED SECTION. CONSTANTS initial_date TYPE datum VALUE '19000101'. DATA check_configurations TYPE y_if_clean_code_manager=>check_configurations. DATA clean_code_exemption_handler TYPE REF TO y_if_exemption. DATA clean_code_manager TYPE REF TO y_if_clean_code_manager. DATA is_testcode TYPE abap_bool. DATA ref_scan_manager TYPE REF TO y_if_scan_manager. DATA statistics TYPE REF TO y_if_scan_statistics. DATA test_code_detector TYPE REF TO y_if_testcode_detector. DATA use_default_attributes TYPE abap_bool VALUE abap_true ##NO_TEXT. DATA attributes_maintained TYPE abap_bool. "! <p class="shorttext synchronized" lang="en">Relevant Statement Types for Inspection</p> "! There are default values set in the Y_CHECK_BASE, and you can reuse the constants available in the 'scan_struc_stmnt_type' structure to enhance or change it. DATA relevant_statement_types TYPE TABLE OF sstruc-stmnt_type. "! <p class="shorttext synchronized" lang="en">Relevant Structure Types for Inspection</p> "! There are default values set in the Y_CHECK_BASE, and you can reuse the constants available in the 'scan_struc_type' structure to enhance or change it. DATA relevant_structure_types TYPE TABLE OF sstruc-type. METHODS execute_check. METHODS check_start_conditions RAISING ycx_object_not_processed. "! <p class="shorttext synchronized" lang="en">Validates the Customizing</p> "! @parameter statement | Received from inspect_tokens method. "! @parameter error_count | Number of findings found to compare against the threshold. "! @parameter result | Configuration structure if the check must be raised METHODS detect_check_configuration IMPORTING statement TYPE sstmnt error_count TYPE int4 DEFAULT 1 RETURNING VALUE(result) TYPE y_if_clean_code_manager=>check_configuration. METHODS get_code IMPORTING message_prio TYPE sychar01 RETURNING VALUE(result) TYPE sci_errc. "! <p class="shorttext synchronized" lang="en">Inspect Structures</p> METHODS inspect_structures. "! <p class="shorttext synchronized" lang="en">Inspect Statements of a Structure</p> "! @parameter structure | Leading Structure METHODS inspect_statements IMPORTING structure TYPE sstruc. "! <p class="shorttext synchronized" lang="en">Inspect Tokens of a Statement</p> "! @parameter structure | Leading Structure "! @parameter index | Leading Index "! @parameter statement | Leading Statement METHODS inspect_tokens ABSTRACT IMPORTING structure TYPE sstruc index TYPE i statement TYPE sstmnt. METHODS raise_error IMPORTING object_type TYPE trobjtype DEFAULT c_type_include statement_level TYPE stmnt_levl statement_index TYPE int4 statement_from TYPE int4 error_counter TYPE sci_errcnt OPTIONAL error_priority TYPE sychar01 parameter_01 TYPE csequence OPTIONAL parameter_02 TYPE csequence OPTIONAL parameter_03 TYPE csequence OPTIONAL parameter_04 TYPE csequence OPTIONAL is_include_specific TYPE sci_inclspec DEFAULT ' ' additional_information TYPE xstring OPTIONAL checksum TYPE int4 OPTIONAL. "#EC OPTL_PARAM METHODS get_column_abs REDEFINITION. METHODS get_column_rel REDEFINITION. METHODS get_include REDEFINITION. METHODS get_line_abs REDEFINITION. METHODS get_line_column_abs REDEFINITION. METHODS get_line_column_rel REDEFINITION. METHODS get_line_rel REDEFINITION. METHODS get_token_abs REDEFINITION. METHODS get_token_rel REDEFINITION. METHODS keyword REDEFINITION. METHODS set_check_message IMPORTING message TYPE itex132. METHODS get_class_description RETURNING VALUE(result) TYPE string. PRIVATE SECTION. METHODS do_attributes_exist RETURNING VALUE(result) TYPE abap_bool. METHODS instantiate_objects. METHODS is_skipped IMPORTING config TYPE y_if_clean_code_manager=>check_configuration error_count TYPE int4 RETURNING VALUE(result) TYPE abap_bool. METHODS is_treshold_config_valid IMPORTING previous_threshold TYPE int4 config_threshold TYPE int4 RETURNING VALUE(result) TYPE abap_bool. METHODS is_config_setup_valid IMPORTING previous_config TYPE y_if_clean_code_manager=>check_configuration config TYPE y_if_clean_code_manager=>check_configuration RETURNING VALUE(result) TYPE abap_bool. METHODS should_skip_test_code IMPORTING structure TYPE sstruc RETURNING VALUE(result) TYPE abap_bool. METHODS should_skip_type IMPORTING structure TYPE sstruc RETURNING VALUE(result) TYPE abap_bool. METHODS is_statement_type_relevant IMPORTING structure TYPE sstruc RETURNING VALUE(result) TYPE abap_bool. METHODS is_structure_type_relevant IMPORTING structure TYPE sstruc RETURNING VALUE(result) TYPE abap_bool. METHODS is_app_comp_in_scope IMPORTING level TYPE stmnt_levl RETURNING VALUE(result) TYPE abap_bool. METHODS switch_bool IMPORTING boolean TYPE abap_bool RETURNING VALUE(result) TYPE abap_bool. ENDCLASS. CLASS Y_CHECK_BASE IMPLEMENTATION. METHOD check_start_conditions. IF ref_scan_manager->is_scan_ok( ) = abap_false. RAISE EXCEPTION TYPE ycx_object_not_processed. ENDIF. ENDMETHOD. METHOD constructor. super->constructor( ). description = get_class_description( ). category = 'Y_CATEGORY_CODE_PAL'. position = y_code_pal_sorter=>get_position( myname ). version = '0000'. has_documentation = abap_true. settings-object_created_on = '20190101'. settings-prio = c_note. settings-threshold = 5. settings-apply_on_productive_code = abap_true. settings-apply_on_test_code = abap_true. settings-documentation = |{ c_docs_path-main }check_documentation.md|. settings-ignore_pseudo_comments = abap_false. has_attributes = do_attributes_exist( ). relevant_statement_types = VALUE #( ( scan_struc_stmnt_type-form ) ( scan_struc_stmnt_type-method ) ( scan_struc_stmnt_type-function ) ( scan_struc_stmnt_type-module ) ). relevant_structure_types = VALUE #( ( scan_struc_type-event ) ). INSERT VALUE #( test = myname code = c_code_not_maintained kind = cl_ci_test_root=>c_note text = TEXT-106 ) INTO TABLE scimessages[]. ENDMETHOD. METHOD detect_check_configuration. DATA tadir_keys TYPE tadir. DATA(level) = ref_scan_manager->levels[ statement-level ]. CALL FUNCTION 'TR_TRANSFORM_TRDIR_TO_TADIR' EXPORTING iv_trdir_name = level-name IMPORTING es_tadir_keys = tadir_keys. DATA(creation_date) = clean_code_manager->calculate_obj_creation_date( object_type = tadir_keys-object object_name = tadir_keys-obj_name ). LOOP AT check_configurations ASSIGNING FIELD-SYMBOL(<configuration>) WHERE object_creation_date <= creation_date. IF is_skipped( config = <configuration> error_count = error_count ) = abap_true. CONTINUE. ENDIF. IF result IS INITIAL OR is_config_setup_valid( previous_config = result config = <configuration> ) = abap_true. result = <configuration>. ENDIF. ENDLOOP. IF result IS INITIAL. RETURN. ENDIF. DATA(exempt) = clean_code_exemption_handler->is_object_exempted( object_type = tadir_keys-object object_name = tadir_keys-obj_name ). IF exempt = abap_true. CLEAR result. RETURN. ENDIF. IF is_app_comp_in_scope( statement-level ) = abap_false. CLEAR result. RETURN. ENDIF. ENDMETHOD. METHOD do_attributes_exist. TRY. DATA(profiles) = y_profile_manager=>create( )->select_profiles( sy-uname ). attributes_ok = xsdbool( profiles IS INITIAL ). CATCH ycx_entry_not_found. attributes_ok = abap_true. ENDTRY. result = attributes_ok. ENDMETHOD. METHOD execute_check. inspect_structures( ). ENDMETHOD. METHOD inspect_structures. LOOP AT ref_scan_manager->structures ASSIGNING FIELD-SYMBOL(<structure>). IF should_skip_type( <structure> ) = abap_true OR should_skip_test_code( <structure> ) = abap_true. CONTINUE. ENDIF. inspect_statements( <structure> ). ENDLOOP. ENDMETHOD. METHOD inspect_statements. DATA(index) = structure-stmnt_from. LOOP AT ref_scan_manager->statements ASSIGNING FIELD-SYMBOL(<statement>) FROM structure-stmnt_from TO structure-stmnt_to. inspect_tokens( index = index structure = structure statement = <statement> ). index = index + 1. ENDLOOP. ENDMETHOD. METHOD get_attributes. READ TABLE check_configurations INTO DATA(check_configuration) INDEX 1. IF sy-subrc <> 0. check_configuration-apply_on_productive_code = settings-apply_on_productive_code. check_configuration-apply_on_testcode = settings-apply_on_test_code. check_configuration-object_creation_date = settings-object_created_on. check_configuration-prio = settings-prio. check_configuration-threshold = settings-threshold. check_configuration-ignore_pseudo_comments = settings-ignore_pseudo_comments. APPEND check_configuration TO check_configurations. ENDIF. EXPORT object_creation_date = check_configuration-object_creation_date message_severity = check_configuration-prio threshold = check_configuration-threshold apply_on_productive_code = check_configuration-apply_on_productive_code apply_on_testcode = check_configuration-apply_on_testcode ignore_pseudo_comments = check_configuration-ignore_pseudo_comments TO DATA BUFFER p_attributes. ENDMETHOD. METHOD get_code. CASE message_prio. WHEN c_error. result = c_code-error. WHEN c_warning. result = c_code-warning. WHEN c_note. result = c_code-notification. WHEN OTHERS. result = c_code_not_maintained. ENDCASE. ENDMETHOD. METHOD get_column_abs. DATA(tokens) = ref_scan_manager->tokens. IF lines( tokens ) = 0. RETURN. ENDIF. DO. READ TABLE tokens INDEX p_n ASSIGNING FIELD-SYMBOL(<token>). IF sy-subrc = 0 AND <token>-row <> 0. p_result = <token>-col. RETURN. ENDIF. p_n = p_n - 1. ENDDO. ENDMETHOD. METHOD get_column_rel. DATA(index) = statement_wa-from + p_n - 1. CHECK index <= statement_wa-to. DATA(tokens) = ref_scan_manager->tokens. IF lines( tokens ) = 0. RETURN. ENDIF. DO. READ TABLE tokens INDEX index ASSIGNING FIELD-SYMBOL(<token>). IF sy-subrc = 0 AND <token>-row <> 0. p_result = <token>-col. RETURN. ENDIF. index = index - 1. ENDDO. ENDMETHOD. METHOD get_include. DATA(l_level) = COND #( WHEN p_level IS SUPPLIED THEN p_level ELSE statement_wa-level ). DO. READ TABLE ref_scan_manager->levels INDEX l_level INTO DATA(l_levels_wa). IF sy-subrc <> 0. RETURN. ENDIF. IF l_levels_wa-type = 'P'. p_result = l_levels_wa-name. RETURN. ENDIF. l_level = l_levels_wa-level. ENDDO. ENDMETHOD. METHOD get_line_abs. DATA(tokens) = ref_scan_manager->tokens. IF lines( tokens ) = 0. RETURN. ENDIF. DO. READ TABLE tokens INDEX p_n ASSIGNING FIELD-SYMBOL(<token>). IF sy-subrc = 0 AND <token>-row <> 0. p_result = <token>-row. RETURN. ENDIF. p_n = p_n - 1. ENDDO. ENDMETHOD. METHOD get_line_column_abs. DATA(tokens) = ref_scan_manager->tokens. IF lines( tokens ) = 0. RETURN. ENDIF. DO. READ TABLE tokens INDEX p_n ASSIGNING FIELD-SYMBOL(<token>). IF sy-subrc = 0 AND <token>-row <> 0. p_column = <token>-col. p_line = <token>-row. RETURN. ENDIF. p_n = p_n - 1. ENDDO. ENDMETHOD. METHOD get_line_column_rel. DATA(tokens) = ref_scan_manager->tokens. IF lines( tokens ) = 0. RETURN. ENDIF. p_n = statement_wa-from + p_n - 1. DO. READ TABLE tokens INDEX p_n ASSIGNING FIELD-SYMBOL(<token>). IF sy-subrc = 0 AND <token>-row <> 0. p_column = <token>-col. p_line = <token>-row. RETURN. ENDIF. p_n = p_n - 1. ENDDO. ENDMETHOD. METHOD get_line_rel. DATA(index) = statement_wa-from + p_n - 1. CHECK index <= statement_wa-to. DATA(tokens) = ref_scan_manager->tokens. IF lines( tokens ) = 0. RETURN. ENDIF. DO. READ TABLE tokens INDEX index ASSIGNING FIELD-SYMBOL(<token>). IF sy-subrc = 0 AND <token>-row <> 0. p_result = <token>-row. RETURN. ENDIF. index = index - 1. ENDDO. ENDMETHOD. METHOD get_token_abs. READ TABLE ref_scan_manager->tokens INDEX p_n INTO token_wa. IF sy-subrc = 0. p_result = token_wa-str. ENDIF. ENDMETHOD. METHOD get_token_rel. DATA(l_index) = statement_wa-from + p_n - 1. IF l_index > statement_wa-to. RETURN. ENDIF. READ TABLE ref_scan_manager->tokens INDEX l_index INTO token_wa. p_result = token_wa-str. ENDMETHOD. METHOD if_ci_test~display_documentation. CALL FUNCTION 'CALL_BROWSER' EXPORTING url = settings-documentation window_name = ' ' new_window = 'X' EXCEPTIONS frontend_not_supported = 1 frontend_error = 2 prog_not_found = 3 no_batch = 4 unspecified_error = 5 OTHERS = 6. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. ENDMETHOD. METHOD if_ci_test~query_attributes. DATA sci_attributes TYPE sci_atttab. DATA title(75) TYPE c. DATA message(72) TYPE c. READ TABLE check_configurations INTO DATA(check_configuration) INDEX 1. IF sy-subrc <> 0 AND use_default_attributes = abap_true. check_configuration-object_creation_date = settings-object_created_on. check_configuration-prio = settings-prio. check_configuration-apply_on_productive_code = settings-apply_on_productive_code. check_configuration-apply_on_testcode = settings-apply_on_test_code. check_configuration-threshold = settings-threshold. check_configuration-ignore_pseudo_comments = settings-ignore_pseudo_comments. ENDIF. INSERT VALUE #( kind = '' ref = REF #( check_configuration-object_creation_date ) text = 'Consider Objects created after'(200) ) INTO TABLE sci_attributes. INSERT VALUE #( kind = '' ref = REF #( check_configuration-prio ) text = 'Message Severity'(201) ) INTO TABLE sci_attributes. IF settings-disable_threshold_selection = abap_false. INSERT VALUE #( kind = '' ref = REF #( check_configuration-threshold ) text = 'Threshold'(203) ) INTO TABLE sci_attributes. ENDIF. IF settings-disable_on_prodcode_selection = abap_false. INSERT VALUE #( kind = '' ref = REF #( check_configuration-apply_on_productive_code ) text = 'Apply on Productive Code'(204) ) INTO TABLE sci_attributes. ENDIF. IF settings-disable_on_testcode_selection = abap_false. INSERT VALUE #( kind = '' ref = REF #( check_configuration-apply_on_testcode ) text = 'Apply on Testcode'(202) ) INTO TABLE sci_attributes. ENDIF. check_configuration-ignore_pseudo_comments = switch_bool( check_configuration-ignore_pseudo_comments ). IF settings-pseudo_comment IS NOT INITIAL. INSERT VALUE #( kind = '' ref = REF #( check_configuration-ignore_pseudo_comments ) text = |Allow { settings-pseudo_comment }| ) INTO TABLE sci_attributes. ENDIF. title = description. attributes_ok = abap_false. WHILE attributes_ok = abap_false. IF cl_ci_query_attributes=>generic( p_name = name p_title = title p_attributes = sci_attributes p_message = message p_display = p_display ) = abap_true. attributes_ok = abap_true. check_configuration-ignore_pseudo_comments = switch_bool( check_configuration-ignore_pseudo_comments ). RETURN. ENDIF. IF check_configuration-apply_on_productive_code = abap_false AND check_configuration-apply_on_testcode = abap_false. message = 'Choose the Type of Code to be checked'(300). ELSEIF check_configuration-prio IS INITIAL. message = 'Choose a Message Severity'(301). ELSE. IF check_configuration-object_creation_date IS INITIAL. check_configuration-object_creation_date = initial_date. ENDIF. attributes_ok = abap_true. ENDIF. ENDWHILE. check_configuration-ignore_pseudo_comments = switch_bool( check_configuration-ignore_pseudo_comments ). CLEAR check_configurations. APPEND check_configuration TO check_configurations. use_default_attributes = abap_false. ENDMETHOD. METHOD instantiate_objects. IF ref_scan_manager IS NOT BOUND. ref_scan_manager = NEW y_ref_scan_manager( ). IF ref_scan IS INITIAL. get( ). ENDIF. ENDIF. ref_scan_manager->set_ref_scan( ref_scan ). IF clean_code_manager IS NOT BOUND. clean_code_manager = NEW y_clean_code_manager( ). ENDIF. IF clean_code_exemption_handler IS NOT BOUND. clean_code_exemption_handler = NEW y_exemption_handler( ). ENDIF. IF test_code_detector IS NOT BOUND. test_code_detector = NEW y_test_code_detector( ). ENDIF. test_code_detector->clear( ). test_code_detector->set_ref_scan_manager( ref_scan_manager ). IF statistics IS NOT BOUND. statistics = NEW y_scan_statistics( ). ENDIF. IF lines( check_configurations ) = 1 AND check_configurations[ 1 ]-object_creation_date IS INITIAL. CLEAR check_configurations. ENDIF. ENDMETHOD. METHOD keyword. IF statement_wa-type = 'C'. p_result = 'COMPUTE'. RETURN. ENDIF. READ TABLE ref_scan_manager->tokens INDEX statement_wa-from INTO token_wa. p_result = token_wa-str. ENDMETHOD. METHOD put_attributes. DATA check_configuration TYPE y_if_clean_code_manager=>check_configuration. attributes_maintained = abap_true. TRY. IMPORT object_creation_date = check_configuration-object_creation_date message_severity = check_configuration-prio threshold = check_configuration-threshold apply_on_productive_code = check_configuration-apply_on_productive_code apply_on_testcode = check_configuration-apply_on_testcode ignore_pseudo_comments = check_configuration-ignore_pseudo_comments FROM DATA BUFFER p_attributes. APPEND check_configuration TO check_configurations. CATCH cx_root. "#EC NEED_CX_ROOT attributes_maintained = abap_false. ENDTRY. ENDMETHOD. METHOD raise_error. DATA(pseudo_comment) = COND #( WHEN settings-ignore_pseudo_comments = abap_false THEN settings-pseudo_comment ). DATA(pcom_detector) = NEW y_pseudo_comment_detector( )->is_pseudo_comment( ref_scan_manager = ref_scan_manager scimessages = scimessages test = myname code = get_code( error_priority ) suppress = pseudo_comment position = statement_index ). statistics->collect( kind = error_priority pc = pcom_detector ). IF cl_abap_typedescr=>describe_by_object_ref( ref_scan_manager )->get_relative_name( ) = 'Y_REF_SCAN_MANAGER'. inform( p_sub_obj_type = object_type p_sub_obj_name = get_include( p_level = statement_level ) p_position = statement_index p_line = get_line_abs( statement_from ) p_column = get_column_abs( statement_from ) p_errcnt = error_counter p_kind = error_priority p_test = myname p_code = get_code( error_priority ) p_suppress = pseudo_comment p_param_1 = parameter_01 p_param_2 = parameter_02 p_param_3 = parameter_03 p_param_4 = parameter_04 p_inclspec = is_include_specific p_detail = additional_information p_checksum_1 = checksum ). ENDIF. ENDMETHOD. METHOD run. DATA profile_configurations TYPE y_if_clean_code_manager=>check_configurations. instantiate_objects( ). IF attributes_maintained = abap_false AND has_attributes = abap_true. raise_error( statement_level = 1 statement_index = 1 statement_from = 1 error_priority = '' ). FREE ref_scan_manager. RETURN. ENDIF. TRY. check_start_conditions( ). profile_configurations = clean_code_manager->read_check_customizing( myname ). CATCH ycx_no_check_customizing. IF profile_configurations IS INITIAL AND attributes_ok = abap_false. FREE ref_scan_manager. RETURN. ELSEIF attributes_ok = abap_true. profile_configurations = check_configurations. ENDIF. CATCH ycx_object_not_processed. FREE ref_scan_manager. RETURN. ENDTRY. IF lines( profile_configurations ) > 0. check_configurations = profile_configurations. ENDIF. execute_check( ). FREE ref_scan_manager. ENDMETHOD. METHOD set_check_message. y_message_registration=>add_message( EXPORTING check_name = myname text = message pseudo_comment = settings-pseudo_comment CHANGING messages = scimessages ). ENDMETHOD. METHOD get_class_description. SELECT SINGLE descript INTO @result FROM seoclasstx WHERE clsname = @myname. IF sy-subrc <> 0. result = 'Description Not Available'. ENDIF. ENDMETHOD. METHOD is_config_setup_valid. result = xsdbool( ( previous_config-prio = config-prio AND is_treshold_config_valid( config_threshold = config-threshold previous_threshold = previous_config-threshold ) = abap_true ) OR ( previous_config-prio <> c_error AND config-prio = c_error ) OR ( previous_config-prio = c_note AND config-prio = c_warning ) OR ( previous_config-ignore_pseudo_comments = abap_false AND config-ignore_pseudo_comments = abap_true ) ). ENDMETHOD. METHOD is_skipped. result = xsdbool( ( config-threshold < error_count AND settings-is_threshold_reversed = abap_true ) OR ( config-threshold > error_count AND settings-is_threshold_reversed = abap_false ) OR ( is_testcode = abap_true AND config-apply_on_testcode = abap_false ) OR ( is_testcode = abap_false AND config-apply_on_productive_code = abap_false ) ). ENDMETHOD. METHOD is_treshold_config_valid. result = xsdbool( ( previous_threshold >= config_threshold AND settings-is_threshold_reversed = abap_false ) OR ( previous_threshold < config_threshold AND settings-is_threshold_reversed = abap_true ) ). ENDMETHOD. METHOD should_skip_test_code. " From Code Inspector (required) is_testcode = test_code_detector->is_testcode( structure ). DATA(has_customizing_for_prod_only) = xsdbool( NOT line_exists( check_configurations[ apply_on_testcode = abap_true ] ) ). result = xsdbool( has_customizing_for_prod_only = abap_true AND is_testcode = abap_true ). ENDMETHOD. METHOD should_skip_type. result = xsdbool( is_statement_type_relevant( structure ) = abap_false AND is_structure_type_relevant( structure ) = abap_false ). ENDMETHOD. METHOD is_statement_type_relevant. result = xsdbool( line_exists( relevant_statement_types[ table_line = structure-stmnt_type ] ) ). ENDMETHOD. METHOD is_structure_type_relevant. result = xsdbool( line_exists( relevant_structure_types[ table_line = structure-type ] ) ). ENDMETHOD. METHOD is_app_comp_in_scope. TRY. DATA(main_app_comp) = y_code_pal_app_comp=>get( ref_scan_manager->levels[ level = 0 ] ). DATA(curr_app_comp) = y_code_pal_app_comp=>get( ref_scan_manager->levels[ level ] ). result = xsdbool( main_app_comp = curr_app_comp ). CATCH cx_sy_itab_line_not_found ycx_entry_not_found. result = abap_true. ENDTRY. ENDMETHOD. METHOD switch_bool. result = xsdbool( boolean = abap_false ). ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9122, 62, 8692, 5550, 20032, 17941, 44731, 9564, 18601, 10659, 198, 220, 3268, 16879, 2043, 2751, 16034, 537, 62, 979, 62, 9288, 62, 35836, 198, 220, 29244, 6158, 44731, 198, 220, 10188, 9864, 1847, 48167, 1677, 5258, 331, 62, 20850, 62, 9288, 62, 8692, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 331, 62, 20850, 62, 9288, 62, 1073, 1857, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 347, 43312, 3963, 269, 62, 8189, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4049, 220, 220, 220, 220, 220, 220, 220, 41876, 20681, 62, 263, 6015, 26173, 8924, 705, 3064, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6509, 220, 220, 220, 220, 220, 41876, 20681, 62, 263, 6015, 26173, 8924, 705, 8784, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14483, 41876, 20681, 62, 263, 6015, 26173, 8924, 705, 15377, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 8189, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 8189, 62, 1662, 62, 76, 2913, 1328, 41876, 20681, 62, 263, 6015, 26173, 8924, 705, 15801, 6, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 347, 43312, 3963, 269, 62, 31628, 62, 6978, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1388, 220, 220, 41876, 4731, 26173, 8924, 705, 5450, 1378, 12567, 13, 785, 14, 50, 2969, 14, 8189, 12, 18596, 12, 1640, 12, 397, 499, 14, 2436, 672, 14, 9866, 14, 31628, 14, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8794, 41876, 4731, 26173, 8924, 705, 5450, 1378, 12567, 13, 785, 14, 50, 2969, 14, 8189, 12, 18596, 12, 1640, 12, 397, 499, 14, 2436, 672, 14, 9866, 14, 31628, 14, 42116, 14, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 31628, 62, 6978, 13, 628, 220, 220, 220, 42865, 25, 347, 43312, 3963, 6460, 20832, 12, 1340, 11319, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24543, 62, 23893, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 20681, 62, 79, 785, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15560, 62, 261, 62, 1676, 67, 8189, 62, 49283, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15560, 62, 261, 62, 9288, 8189, 62, 49283, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15560, 62, 400, 10126, 62, 49283, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 25598, 62, 261, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 6282, 28664, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11387, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 331, 66, 44240, 62, 400, 10126, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1293, 78, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 331, 66, 44240, 62, 20500, 62, 11031, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4174, 62, 261, 62, 27781, 62, 8189, 220, 220, 220, 220, 220, 41876, 331, 66, 44240, 62, 27781, 62, 8189, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4174, 62, 261, 62, 9288, 62, 8189, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 331, 66, 44240, 62, 9288, 8189, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10314, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 406, 49494, 8576, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 400, 10126, 62, 260, 690, 276, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8856, 62, 7752, 12003, 62, 15944, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 6460, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 1078, 7657, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 611, 62, 979, 62, 9288, 93, 13812, 62, 22897, 341, 220, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 611, 62, 979, 62, 9288, 93, 22766, 62, 1078, 7657, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 1234, 62, 1078, 7657, 220, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 1057, 23848, 36, 20032, 17941, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 4238, 62, 4475, 41876, 4818, 388, 26173, 8924, 705, 1129, 18005, 486, 4458, 628, 220, 220, 220, 42865, 2198, 62, 11250, 20074, 41876, 331, 62, 361, 62, 27773, 62, 8189, 62, 37153, 14804, 9122, 62, 11250, 20074, 13, 198, 220, 220, 220, 42865, 3424, 62, 8189, 62, 1069, 11221, 62, 30281, 41876, 4526, 37, 5390, 331, 62, 361, 62, 1069, 11221, 13, 198, 220, 220, 220, 42865, 3424, 62, 8189, 62, 37153, 41876, 4526, 37, 5390 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_sap_package DEFINITION PUBLIC CREATE PRIVATE GLOBAL FRIENDS zcl_abapgit_factory. PUBLIC SECTION. METHODS: constructor IMPORTING iv_package TYPE devclass. INTERFACES: zif_abapgit_sap_package. PRIVATE SECTION. DATA: mv_package TYPE devclass. ALIASES: create FOR zif_abapgit_sap_package~create, create_local FOR zif_abapgit_sap_package~create_local. ENDCLASS. CLASS ZCL_ABAPGIT_SAP_PACKAGE IMPLEMENTATION. METHOD constructor. mv_package = iv_package. ENDMETHOD. METHOD zif_abapgit_sap_package~are_changes_recorded_in_tr_req. DATA: li_package TYPE REF TO if_package. cl_package_factory=>load_package( EXPORTING i_package_name = mv_package IMPORTING e_package = li_package EXCEPTIONS object_not_existing = 1 unexpected_error = 2 intern_err = 3 no_access = 4 object_locked_and_modified = 5 OTHERS = 6 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. rv_are_changes_rec_in_tr_req = li_package->wbo_korr_flag. ENDMETHOD. METHOD zif_abapgit_sap_package~create. DATA: lv_err TYPE string, li_package TYPE REF TO if_package, ls_package LIKE is_package. ASSERT NOT is_package-devclass IS INITIAL. cl_package_factory=>load_package( EXPORTING i_package_name = is_package-devclass EXCEPTIONS object_not_existing = 1 unexpected_error = 2 intern_err = 3 no_access = 4 object_locked_and_modified = 5 ). IF sy-subrc = 0. " Package already exists. We assume this is fine. Its properties might be changed later at " DEVC deserialization. RETURN. ENDIF. ls_package = is_package. " Set software component to 'HOME' if none is set at this point. " Otherwise SOFTWARE_COMPONENT_INVALID will be raised. IF ls_package-dlvunit IS INITIAL. ls_package-dlvunit = 'HOME'. ENDIF. cl_package_factory=>create_new_package( EXPORTING i_reuse_deleted_object = abap_true * i_suppress_dialog = abap_true " does not exist in 730 IMPORTING e_package = li_package CHANGING c_package_data = ls_package EXCEPTIONS object_already_existing = 1 object_just_created = 2 not_authorized = 3 wrong_name_prefix = 4 undefined_name = 5 reserved_local_name = 6 invalid_package_name = 7 short_text_missing = 8 software_component_invalid = 9 layer_invalid = 10 author_not_existing = 11 component_not_existing = 12 component_missing = 13 prefix_in_use = 14 unexpected_error = 15 intern_err = 16 no_access = 17 * invalid_translation_depth = 18 * wrong_mainpack_value = 19 * superpackage_invalid = 20 * error_in_cts_checks = 21 OTHERS = 18 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. li_package->save( * EXPORTING * i_suppress_dialog = abap_true " Controls whether popups can be transmitted EXCEPTIONS object_invalid = 1 object_not_changeable = 2 cancelled_in_corr = 3 permission_failure = 4 unexpected_error = 5 intern_err = 6 OTHERS = 7 ). IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO lv_err. " Here we have to delete the package, " otherwise it would remain in the memory " and cannot created again in this session. li_package->delete( EXCEPTIONS object_not_empty = 1 object_not_changeable = 2 object_invalid = 3 intern_err = 4 OTHERS = 5 ). zcx_abapgit_exception=>raise( lv_err ). ENDIF. li_package->set_changeable( abap_false ). ENDMETHOD. METHOD zif_abapgit_sap_package~create_child. DATA: li_parent TYPE REF TO if_package, ls_child TYPE scompkdtln. cl_package_factory=>load_package( EXPORTING i_package_name = mv_package IMPORTING e_package = li_parent EXCEPTIONS object_not_existing = 1 unexpected_error = 2 intern_err = 3 no_access = 4 object_locked_and_modified = 5 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ls_child-devclass = iv_child. ls_child-dlvunit = li_parent->software_component. ls_child-component = li_parent->application_component. ls_child-ctext = iv_child. ls_child-parentcl = mv_package. ls_child-pdevclass = li_parent->transport_layer. ls_child-as4user = sy-uname. create( ls_child ). ENDMETHOD. METHOD zif_abapgit_sap_package~create_local. DATA: ls_package TYPE scompkdtln. ls_package-devclass = mv_package. ls_package-ctext = mv_package. ls_package-parentcl = '$TMP'. ls_package-dlvunit = 'LOCAL'. ls_package-as4user = sy-uname. create( ls_package ). ENDMETHOD. METHOD zif_abapgit_sap_package~exists. cl_package_factory=>load_package( EXPORTING i_package_name = mv_package EXCEPTIONS object_not_existing = 1 unexpected_error = 2 intern_err = 3 no_access = 4 object_locked_and_modified = 5 ). rv_bool = boolc( sy-subrc <> 1 ). ENDMETHOD. METHOD zif_abapgit_sap_package~get_transport_type. DATA: lv_err_prefix TYPE string, lv_pkg_name TYPE e071-obj_name. lv_err_prefix = |TRINT_GET_REQUEST_TYPE(R3TR, DEVC, { mv_package })|. lv_pkg_name = mv_package. CALL FUNCTION 'TRINT_GET_REQUEST_TYPE' EXPORTING iv_pgmid = 'R3TR' iv_object = 'DEVC' iv_obj_name = lv_pkg_name IMPORTING ev_request_type = rs_transport_type-request ev_task_type = rs_transport_type-task EXCEPTIONS no_request_needed = 1 internal_error = 2 cts_initialization_failure = 3. CASE sy-subrc. WHEN 0. " OK! WHEN 1. zcx_abapgit_exception=>raise( |{ lv_err_prefix }: transport is not needed| ). WHEN 2. zcx_abapgit_exception=>raise( |{ lv_err_prefix }: internal error| ). WHEN 3. zcx_abapgit_exception=>raise( |{ lv_err_prefix }: failed to initialized CTS| ). WHEN OTHERS. zcx_abapgit_exception=>raise( |{ lv_err_prefix }: unrecognized return code| ). ENDCASE. ENDMETHOD. METHOD zif_abapgit_sap_package~list_subpackages. DATA: lt_list LIKE rt_list. SELECT devclass FROM tdevc INTO TABLE lt_list WHERE parentcl = mv_package ORDER BY PRIMARY KEY. "#EC CI_SUBRC "#EC CI_GENBUFF rt_list = lt_list. WHILE lines( lt_list ) > 0. SELECT devclass FROM tdevc INTO TABLE lt_list FOR ALL ENTRIES IN lt_list WHERE parentcl = lt_list-table_line ORDER BY PRIMARY KEY. "#EC CI_SUBRC "#EC CI_GENBUFF APPEND LINES OF lt_list TO rt_list. ENDWHILE. ENDMETHOD. METHOD zif_abapgit_sap_package~list_superpackages. DATA: lt_list LIKE rt_list, lv_parent TYPE tdevc-parentcl. APPEND mv_package TO rt_list. lv_parent = zif_abapgit_sap_package~read_parent( ). IF sy-subrc = 0 AND NOT lv_parent IS INITIAL. lt_list = zcl_abapgit_factory=>get_sap_package( lv_parent )->list_superpackages( ). APPEND LINES OF lt_list TO rt_list. ENDIF. ENDMETHOD. METHOD zif_abapgit_sap_package~read_parent. SELECT SINGLE parentcl FROM tdevc INTO rv_parentcl WHERE devclass = mv_package. "#EC CI_GENBUFF IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Inconsistent package structure! Cannot find parent for { mv_package }| ). ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 82, 499, 62, 26495, 5550, 20032, 17941, 198, 220, 220, 220, 44731, 29244, 6158, 4810, 3824, 6158, 198, 220, 220, 220, 10188, 9864, 1847, 48167, 1677, 5258, 1976, 565, 62, 397, 499, 18300, 62, 69, 9548, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 26495, 41876, 1614, 4871, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 25, 1976, 361, 62, 397, 499, 18300, 62, 82, 499, 62, 26495, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 285, 85, 62, 26495, 41876, 1614, 4871, 13, 628, 220, 220, 220, 8355, 43429, 1546, 25, 198, 220, 220, 220, 220, 220, 2251, 7473, 1976, 361, 62, 397, 499, 18300, 62, 82, 499, 62, 26495, 93, 17953, 11, 198, 220, 220, 220, 220, 220, 2251, 62, 12001, 7473, 1976, 361, 62, 397, 499, 18300, 62, 82, 499, 62, 26495, 93, 17953, 62, 12001, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 50, 2969, 62, 47, 8120, 11879, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 285, 85, 62, 26495, 796, 21628, 62, 26495, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 82, 499, 62, 26495, 93, 533, 62, 36653, 62, 47398, 62, 259, 62, 2213, 62, 42180, 13, 628, 220, 220, 220, 42865, 25, 7649, 62, 26495, 41876, 4526, 37, 5390, 611, 62, 26495, 13, 628, 220, 220, 220, 537, 62, 26495, 62, 69, 9548, 14804, 2220, 62, 26495, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 26495, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 285, 85, 62, 26495, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 304, 62, 26495, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 7649, 62, 26495, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 1662, 62, 25687, 220, 220, 220, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 10059, 62, 18224, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 1788, 62, 8056, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 645, 62, 15526, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 604, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 24162, 62, 392, 62, 41771, 796, 642, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 718, 6739, 628, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 62, 83, 3064, 7, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 374, 85, 62, 533, 62, 36653, 62, 8344, 62, 259, 62, 2213, 62, 42180, 796, 7649, 62, 26495, 3784, 86, 2127, 62, 74, 38890, 62, 32109, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 82, 499, 62, 26495, 93, 17953, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 8056, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 26495, 41876, 4526, 37, 5390, 611, 62, 26495, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 26495, 34178, 318, 62, 26495, 13, 628, 198, 220, 220, 220, 24994, 17395, 5626, 318, 62, 26495, 12, 7959, 4871, 3180, 3268, 2043, 12576, 13, 628, 220, 220, 220, 537, 62, 26495, 62, 69, 9548, 14804, 2220, 62, 26495, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 26495, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 318, 62, 26495, 12, 7959, 4871, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 1662, 62, 25687, 220, 220, 220, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 10059, 62, 18224, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 1788, 62, 8056, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 645, 62, 15526, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 604, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 24162, 62, 392, 62, 41771, 796, 642, 6739, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 220, 220, 366, 15717, 1541, 7160, 13, 775, 7048, 428, 318, 3734, 13, 6363, 6608, 1244, 307, 3421, 1568, 379, 198, 220, 220, 220, 220, 220, 366, 5550, 15922, 748, 48499, 1634, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 43979, 62, 26495, 796, 318, 62, 26495, 13, 628, 220, 220, 220, 366, 5345, 3788, 7515, 284, 705, 39069, 6, 611, 4844, 318, 900, 379, 428, 966, 13, 198, 220, 220, 220, 366, 15323, 47466, 62, 9858, 47, 1340, 3525, 62, 1268, 23428, 2389, 481, 307, 4376, 13, 198, 220, 220, 220, 16876, 43979, 62, 26495 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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URATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. DATA cut TYPE REF TO zcl_rle. METHODS setup. METHODS empty_string FOR TESTING RAISING cx_static_check. METHODS no_repeat FOR TESTING RAISING cx_static_check. METHODS no_singles FOR TESTING RAISING cx_static_check. METHODS mixed_singles_and_repeats FOR TESTING RAISING cx_static_check. METHODS mixed_and_spaces FOR TESTING RAISING cx_static_check. METHODS lowercase FOR TESTING RAISING cx_static_check. ENDCLASS. CLASS ltc_encode IMPLEMENTATION. METHOD setup. cut = NEW zcl_rle( ). ENDMETHOD. METHOD empty_string. cl_abap_unit_assert=>assert_equals( act = cut->encode( `` ) exp = `` ). ENDMETHOD. METHOD no_repeat. cl_abap_unit_assert=>assert_equals( act = cut->encode( `XYZ` ) exp = `XYZ` ). ENDMETHOD. METHOD no_singles. cl_abap_unit_assert=>assert_equals( act = cut->encode( `AABBBCCCC` ) exp = `2A3B4C` ). ENDMETHOD. METHOD mixed_singles_and_repeats. cl_abap_unit_assert=>assert_equals( act = cut->encode( `WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWB` ) exp = `12WB12W3B24WB` ). ENDMETHOD. METHOD mixed_and_spaces. cl_abap_unit_assert=>assert_equals( act = cut->encode( ` hsqq qww ` ) exp = `2 hs2q q2w2 ` ). ENDMETHOD. METHOD lowercase. cl_abap_unit_assert=>assert_equals( act = cut->encode( `aabbbcccc` ) exp = `2a3b4c` ). ENDMETHOD. ENDCLASS. CLASS ltc_decode DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. DATA cut TYPE REF TO zcl_rle. METHODS setup. METHODS empty_string FOR TESTING RAISING cx_static_check. METHODS no_repeat FOR TESTING RAISING cx_static_check. METHODS no_singles FOR TESTING RAISING cx_static_check. METHODS mixed_singles_and_repeats FOR TESTING RAISING cx_static_check. METHODS mixed_and_spaces FOR TESTING RAISING cx_static_check. METHODS lowercase FOR TESTING RAISING cx_static_check. METHODS encode_and_decode FOR TESTING RAISING cx_static_check. ENDCLASS. CLASS ltc_decode IMPLEMENTATION. METHOD setup. cut = NEW zcl_rle( ). ENDMETHOD. METHOD empty_string. cl_abap_unit_assert=>assert_equals( act = cut->decode( `` ) exp = `` ). ENDMETHOD. METHOD no_repeat. cl_abap_unit_assert=>assert_equals( act = cut->decode( `XYZ` ) exp = `XYZ` ). ENDMETHOD. METHOD no_singles. cl_abap_unit_assert=>assert_equals( act = cut->decode( `2A3B4C` ) exp = `AABBBCCCC` ). ENDMETHOD. METHOD mixed_singles_and_repeats. cl_abap_unit_assert=>assert_equals( act = cut->decode( `12WB12W3B24WB` ) exp = `WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWB` ). ENDMETHOD. METHOD mixed_and_spaces. cl_abap_unit_assert=>assert_equals( act = cut->decode( `2 hs2q q2w2 ` ) exp = ` hsqq qww ` ). ENDMETHOD. METHOD lowercase. cl_abap_unit_assert=>assert_equals( act = cut->decode( `2a3b4c` ) exp = `aabbbcccc` ). ENDMETHOD. METHOD encode_and_decode. cl_abap_unit_assert=>assert_equals( act = cut->decode( cut->encode( `zzz ZZ zZ` ) ) exp = `zzz ZZ zZ` ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 23047, 62, 268, 8189, 5550, 20032, 17941, 25261, 7473, 43001, 2751, 198, 220, 360, 4261, 6234, 6006, 9863, 198, 220, 45698, 42, 49277, 43638, 5805, 7597, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 2005, 41876, 4526, 37, 5390, 1976, 565, 62, 81, 293, 13, 628, 220, 220, 220, 337, 36252, 50, 9058, 13, 628, 220, 220, 220, 337, 36252, 50, 6565, 62, 8841, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 645, 62, 44754, 220, 220, 220, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 645, 62, 12215, 829, 220, 220, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 7668, 62, 12215, 829, 62, 392, 62, 45956, 1381, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 7668, 62, 392, 62, 2777, 2114, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 2793, 7442, 220, 220, 220, 220, 220, 220, 220, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 10619, 31631, 13, 628, 198, 31631, 300, 23047, 62, 268, 8189, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 9058, 13, 198, 220, 220, 220, 2005, 796, 12682, 1976, 565, 62, 81, 293, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 6565, 62, 8841, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 719, 796, 2005, 3784, 268, 8189, 7, 7559, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1033, 796, 7559, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 645, 62, 44754, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 719, 796, 2005, 3784, 268, 8189, 7, 4600, 34278, 57, 63, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1033, 796, 4600, 34278, 57, 63, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 645, 62, 12215, 829, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 719, 796, 2005, 3784, 268, 8189, 7, 4600, 3838, 15199, 2749, 46361, 63, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1033, 796, 4600, 17, 32, 18, 33, 19, 34, 63, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 7668, 62, 12215, 829, 62, 392, 62, 45956, 1381, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 719, 796, 2005, 3784, 268, 8189, 7, 4600, 17947, 17947, 17947, 17947, 17947, 17947, 33, 17947, 17947, 17947, 17947, 17947, 17947, 15199, 33, 17947, 17947, 17947, 17947, 17947, 17947, 17947, 17947, 17947, 17947, 17947, 17947, 33, 63, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1033, 796, 4600, 1065, 45607, 1065, 54, 18, 33, 1731, 45607, 63, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 7668, 62, 392, 62, 2777, 2114, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 719, 796, 2005, 3784, 268, 8189, 7, 4600, 220, 289, 31166, 80, 10662, 1383, 220, 4600, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1033, 796, 4600, 17, 289, 82, 17, 80, 10662, 17, 86, 17, 4600, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 2793, 7442, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 719, 796, 2005, 3784, 268, 8189, 7, 4600, 64, 6485, 65, 535, 535, 63, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1033, 796, 4600, 17, 64, 18, 65, 19, 66, 63, 6739, 198, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 628, 198, 31631, 300, 23047, 62, 12501, 1098, 5550, 20032, 17941, 25261, 7473, 43001, 2751, 198, 220, 360, 4261, 6234, 6006, 9863, 198, 220, 45698, 42, 49277, 43638, 5805, 7597, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 2005, 41876, 4526, 37, 5390, 1976, 565, 62, 81, 293, 13, 628, 220, 220, 220, 337, 36252, 50, 9058, 13, 628, 220, 220, 220, 337, 36252, 50, 6565, 62, 8841, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 645, 62, 44754, 220, 220, 220, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 645, 62, 12215, 829, 220, 220, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 7668, 62, 12215, 829, 62, 392, 62, 45956, 1381, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13 ]
[ 1, 1, 1,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l_abapgit_object_sicf DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_abapgit_object . ALIASES mo_files FOR zif_abapgit_object~mo_files . TYPES: ty_hash TYPE c LENGTH 25. CLASS-METHODS read_tadir_sicf IMPORTING !iv_pgmid TYPE tadir-pgmid DEFAULT 'R3TR' !iv_obj_name TYPE tadir-obj_name RETURNING VALUE(rs_tadir) TYPE zif_abapgit_definitions=>ty_tadir RAISING zcx_abapgit_exception . CLASS-METHODS read_sicf_url IMPORTING !iv_obj_name TYPE tadir-obj_name RETURNING VALUE(rv_hash) TYPE ty_hash RAISING zcx_abapgit_exception . PROTECTED SECTION. PRIVATE SECTION. TYPES: ty_icfhandler_tt TYPE STANDARD TABLE OF icfhandler WITH DEFAULT KEY . TYPES: BEGIN OF ty_sicf_key, icf_name TYPE icfservice-icf_name, icfparguid TYPE icfservice-icfparguid, END OF ty_sicf_key . METHODS read IMPORTING !iv_clear TYPE abap_bool DEFAULT abap_true EXPORTING !es_icfservice TYPE icfservice !es_icfdocu TYPE icfdocu !et_icfhandler TYPE ty_icfhandler_tt !ev_url TYPE string RAISING zcx_abapgit_exception . METHODS insert_sicf IMPORTING !is_icfservice TYPE icfservice !is_icfdocu TYPE icfdocu !it_icfhandler TYPE ty_icfhandler_tt !iv_package TYPE devclass !iv_url TYPE string RAISING zcx_abapgit_exception . METHODS change_sicf IMPORTING !is_icfservice TYPE icfservice !is_icfdocu TYPE icfdocu !it_icfhandler TYPE ty_icfhandler_tt !iv_package TYPE devclass !iv_parent TYPE icfparguid RAISING zcx_abapgit_exception . METHODS to_icfhndlist IMPORTING !it_list TYPE ty_icfhandler_tt RETURNING VALUE(rt_list) TYPE icfhndlist . METHODS find_parent IMPORTING !iv_url TYPE string RETURNING VALUE(rv_parent) TYPE icfparguid RAISING zcx_abapgit_exception . ENDCLASS. CLASS zcl_abapgit_object_sicf IMPLEMENTATION. METHOD change_sicf. DATA: lt_icfhndlist TYPE icfhndlist, lt_existing TYPE TABLE OF icfhandler, ls_icfserdesc TYPE icfserdesc. FIELD-SYMBOLS: <ls_existing> LIKE LINE OF lt_existing. lt_icfhndlist = to_icfhndlist( it_icfhandler ). * Do not add handlers if they already exist, it will make the below * call to SAP standard code raise an exception SELECT * FROM icfhandler INTO TABLE lt_existing WHERE icf_name = is_icfservice-icf_name. LOOP AT lt_existing ASSIGNING <ls_existing>. DELETE TABLE lt_icfhndlist FROM <ls_existing>-icfhandler. ENDLOOP. MOVE-CORRESPONDING is_icfservice TO ls_icfserdesc. cl_icf_tree=>if_icf_tree~change_node( EXPORTING icf_name = is_icfservice-orig_name icfparguid = iv_parent icfdocu = is_icfdocu doculang = mv_language icfhandlst = lt_icfhndlist package = iv_package application = space icfserdesc = ls_icfserdesc icfactive = abap_true EXCEPTIONS empty_icf_name = 1 no_new_virtual_host = 2 special_service_error = 3 parent_not_existing = 4 enqueue_error = 5 node_already_existing = 6 empty_docu = 7 doculang_not_installed = 8 security_info_error = 9 user_password_error = 10 password_encryption_error = 11 invalid_url = 12 invalid_otr_concept = 13 formflg401_error = 14 handler_error = 15 transport_error = 16 tadir_error = 17 package_not_found = 18 wrong_application = 19 not_allow_application = 20 no_application = 21 invalid_icfparguid = 22 alt_name_invalid = 23 alternate_name_exist = 24 wrong_icf_name = 25 no_authority = 26 OTHERS = 27 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD find_parent. cl_icf_tree=>if_icf_tree~service_from_url( EXPORTING url = iv_url hostnumber = 0 IMPORTING icfnodguid = rv_parent EXCEPTIONS wrong_application = 1 no_application = 2 not_allow_application = 3 wrong_url = 4 no_authority = 5 OTHERS = 6 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD insert_sicf. DATA: lt_icfhndlist TYPE icfhndlist, ls_icfserdesc TYPE icfserdesc, ls_icfdocu TYPE icfdocu, lv_parent TYPE icfparguid. lt_icfhndlist = to_icfhndlist( it_icfhandler ). lv_parent = find_parent( iv_url ). * nice, it seems that the structure should be mistreated ls_icfdocu = is_icfdocu-icf_docu. MOVE-CORRESPONDING is_icfservice TO ls_icfserdesc. cl_icf_tree=>if_icf_tree~insert_node( EXPORTING icf_name = is_icfservice-orig_name icfparguid = lv_parent icfdocu = ls_icfdocu doculang = mv_language icfhandlst = lt_icfhndlist package = iv_package application = space icfserdesc = ls_icfserdesc icfactive = abap_true icfaltnme = is_icfservice-icfaltnme EXCEPTIONS empty_icf_name = 1 no_new_virtual_host = 2 special_service_error = 3 parent_not_existing = 4 enqueue_error = 5 node_already_existing = 6 empty_docu = 7 doculang_not_installed = 8 security_info_error = 9 user_password_error = 10 password_encryption_error = 11 invalid_url = 12 invalid_otr_concept = 13 formflg401_error = 14 handler_error = 15 transport_error = 16 tadir_error = 17 package_not_found = 18 wrong_application = 19 not_allow_application = 20 no_application = 21 invalid_icfparguid = 22 alt_name_invalid = 23 alternate_name_exist = 24 wrong_icf_name = 25 no_authority = 26 OTHERS = 27 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD read. DATA: lt_serv_info TYPE icfservtbl, ls_serv_info LIKE LINE OF lt_serv_info, ls_key TYPE ty_sicf_key. FIELD-SYMBOLS: <ls_icfhandler> LIKE LINE OF et_icfhandler. CLEAR es_icfservice. CLEAR es_icfdocu. CLEAR et_icfhandler. CLEAR ev_url. ls_key = read_tadir_sicf( ms_item-obj_name )-obj_name. cl_icf_tree=>if_icf_tree~get_info_from_serv( EXPORTING icf_name = ls_key-icf_name icfparguid = ls_key-icfparguid icf_langu = mv_language IMPORTING serv_info = lt_serv_info icfdocu = es_icfdocu url = ev_url EXCEPTIONS wrong_name = 1 wrong_parguid = 2 incorrect_service = 3 no_authority = 4 OTHERS = 5 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ASSERT lines( lt_serv_info ) = 1. READ TABLE lt_serv_info INDEX 1 INTO ls_serv_info. ASSERT sy-subrc = 0. MOVE-CORRESPONDING ls_serv_info-service TO es_icfservice. IF iv_clear = abap_true. CLEAR es_icfservice-icf_cuser. CLEAR es_icfservice-icf_cdate. CLEAR es_icfservice-icf_muser. CLEAR es_icfservice-icf_mdate. ENDIF. CLEAR es_icfdocu-icfparguid. APPEND LINES OF ls_serv_info-handlertbl TO et_icfhandler. LOOP AT et_icfhandler ASSIGNING <ls_icfhandler>. CLEAR <ls_icfhandler>-icfparguid. ENDLOOP. ENDMETHOD. METHOD read_sicf_url. * note: this method is called dynamically from some places DATA: lv_name TYPE icfservice-icf_name, lv_url TYPE icfurlbuf, lv_string TYPE string, lv_icfnodguid TYPE icfservice-icfnodguid, lv_parguid TYPE icfservice-icfparguid. lv_name = iv_obj_name. lv_parguid = iv_obj_name+15. SELECT SINGLE icfnodguid FROM icfservice INTO lv_icfnodguid WHERE icf_name = lv_name AND icfparguid = lv_parguid. CALL FUNCTION 'HTTP_GET_URL_FROM_NODGUID' EXPORTING nodguid = lv_icfnodguid IMPORTING url = lv_url EXCEPTIONS icf_inconst = 1 OTHERS = 2. IF sy-subrc = 0. lv_string = lv_url. rv_hash = zcl_abapgit_hash=>sha1_raw( zcl_abapgit_convert=>string_to_xstring_utf8( lv_string ) ). ENDIF. ENDMETHOD. METHOD read_tadir_sicf. * note: this method is called dynamically from some places DATA: lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt, lv_hash TYPE ty_hash, lv_obj_name TYPE tadir-obj_name. FIELD-SYMBOLS: <ls_tadir> LIKE LINE OF lt_tadir. lv_hash = iv_obj_name+15. CONCATENATE iv_obj_name(15) '%' INTO lv_obj_name. SELECT * FROM tadir INTO CORRESPONDING FIELDS OF TABLE lt_tadir WHERE pgmid = iv_pgmid AND object = 'SICF' AND obj_name LIKE lv_obj_name ORDER BY PRIMARY KEY ##TOO_MANY_ITAB_FIELDS. "#EC CI_GENBUFF LOOP AT lt_tadir ASSIGNING <ls_tadir>. IF read_sicf_url( <ls_tadir>-obj_name ) = lv_hash. rs_tadir = <ls_tadir>. RETURN. ENDIF. ENDLOOP. ENDMETHOD. METHOD to_icfhndlist. FIELD-SYMBOLS: <ls_list> LIKE LINE OF it_list. * convert to sorted table LOOP AT it_list ASSIGNING <ls_list>. INSERT <ls_list>-icfhandler INTO TABLE rt_list. ENDLOOP. ENDMETHOD. METHOD zif_abapgit_object~changed_by. DATA: ls_icfservice TYPE icfservice. read( EXPORTING iv_clear = abap_false IMPORTING es_icfservice = ls_icfservice ). rv_user = ls_icfservice-icf_muser. IF rv_user IS INITIAL. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: ls_icfservice TYPE icfservice. read( IMPORTING es_icfservice = ls_icfservice ). IF ls_icfservice IS INITIAL. " It seems that the ICF service doesn't exist anymore. " But that's ok, because some objects like SAPC manage " the lifecycle of its ICF service by itself and already " deleted the service. RETURN. ENDIF. IF ls_icfservice-icfparguid CO '0'. " not supported by the SAP standard API zcx_abapgit_exception=>raise( 'SICF - cannot delete root node, delete node manually' ). ENDIF. " Delete Application Customizing Data the hard way, as it isn't done by the API. " If we wouldn't we would get errors from the API if entrys exist. " Transaction SICF does the same. DELETE FROM icfapplcust WHERE icf_name = ls_icfservice-icf_name AND icfparguid = ls_icfservice-icfparguid. cl_icf_tree=>if_icf_tree~delete_node( EXPORTING icfparguid = ls_icfservice-icfparguid CHANGING icf_name = ls_icfservice-icf_name EXCEPTIONS no_virtual_host_delete = 1 special_service_error = 2 enqueue_error = 3 node_not_existing = 4 node_has_childs = 5 node_is_aliased = 6 node_not_in_original_system = 7 transport_error = 8 tadir_error = 9 db_error = 10 no_authority = 11 OTHERS = 12 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: ls_icfservice TYPE icfservice, ls_read TYPE icfservice, ls_icfdocu TYPE icfdocu, lv_url TYPE string, lv_exists TYPE abap_bool, lt_icfhandler TYPE TABLE OF icfhandler. io_xml->read( EXPORTING iv_name = 'URL' CHANGING cg_data = lv_url ). io_xml->read( EXPORTING iv_name = 'ICFSERVICE' CHANGING cg_data = ls_icfservice ). io_xml->read( EXPORTING iv_name = 'ICFDOCU' CHANGING cg_data = ls_icfdocu ). io_xml->read( EXPORTING iv_name = 'ICFHANDLER_TABLE' CHANGING cg_data = lt_icfhandler ). lv_exists = zif_abapgit_object~exists( ). IF lv_exists = abap_false. insert_sicf( is_icfservice = ls_icfservice is_icfdocu = ls_icfdocu it_icfhandler = lt_icfhandler iv_package = iv_package iv_url = lv_url ). ELSE. read( IMPORTING es_icfservice = ls_read ). change_sicf( is_icfservice = ls_icfservice is_icfdocu = ls_icfdocu it_icfhandler = lt_icfhandler iv_package = iv_package iv_parent = ls_read-icfparguid ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: ls_tadir TYPE zif_abapgit_definitions=>ty_tadir, ls_key TYPE ty_sicf_key. ls_tadir = read_tadir_sicf( ms_item-obj_name ). rv_bool = boolc( NOT ls_tadir IS INITIAL ). IF rv_bool = abap_true. ls_key = ls_tadir-obj_name. SELECT SINGLE icfaltnme FROM icfservice INTO ls_key-icf_name WHERE icf_name = ls_key-icf_name AND icfparguid = ls_key-icfparguid. rv_bool = boolc( sy-subrc = 0 ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. DATA: lv_argument TYPE seqg3-garg. lv_argument = ms_item-obj_name(15). lv_argument+15(1) = '*'. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'ESICFSER' iv_argument = lv_argument ). ENDMETHOD. METHOD zif_abapgit_object~jump. DATA: ls_bcdata TYPE bdcdata, lt_bcdata TYPE STANDARD TABLE OF bdcdata. ls_bcdata-program = 'RSICFTREE'. ls_bcdata-dynpro = '1000'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO lt_bcdata. ls_bcdata-dynpro = space. ls_bcdata-dynbegin = space. ls_bcdata-fnam = 'ICF_SERV'. ls_bcdata-fval = ms_item-obj_name. APPEND ls_bcdata TO lt_bcdata. ls_bcdata-fnam = 'BDC_OKCODE'. ls_bcdata-fval = '=ONLI'. APPEND ls_bcdata TO lt_bcdata. zcl_abapgit_ui_factory=>get_gui_jumper( )->jump_batch_input( iv_tcode = 'SICF' it_bdcdata = lt_bcdata ). ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: ls_icfservice TYPE icfservice, ls_icfdocu TYPE icfdocu, lv_url TYPE string, lt_icfhandler TYPE TABLE OF icfhandler. read( IMPORTING es_icfservice = ls_icfservice es_icfdocu = ls_icfdocu et_icfhandler = lt_icfhandler ev_url = lv_url ). IF ls_icfservice IS INITIAL. RETURN. ENDIF. CLEAR ls_icfservice-icf_mandt. CLEAR ls_icfservice-icfnodguid. CLEAR ls_icfservice-icfparguid. CLEAR ls_icfservice-icfchildno. CLEAR ls_icfservice-icf_user. CLEAR ls_icfservice-icf_cclnt. CLEAR ls_icfservice-icf_mclnt. CLEAR ls_icfservice-icfaltnme_orig. CLEAR ls_icfservice-icfbitmap. io_xml->add( iv_name = 'URL' ig_data = lv_url ). io_xml->add( iv_name = 'ICFSERVICE' ig_data = ls_icfservice ). io_xml->add( iv_name = 'ICFDOCU' ig_data = ls_icfdocu ). io_xml->add( iv_name = 'ICFHANDLER_TABLE' ig_data = lt_icfhandler ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 21383, 69, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 764, 628, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 764, 628, 220, 220, 220, 24412, 47, 1546, 25, 1259, 62, 17831, 41876, 269, 406, 49494, 1679, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 1100, 62, 83, 324, 343, 62, 21383, 69, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6024, 13602, 220, 220, 220, 220, 220, 220, 41876, 36264, 343, 12, 6024, 13602, 5550, 38865, 705, 49, 18, 5446, 6, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26801, 62, 3672, 220, 220, 220, 41876, 36264, 343, 12, 26801, 62, 3672, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 83, 324, 343, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 1100, 62, 21383, 69, 62, 6371, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26801, 62, 3672, 220, 220, 41876, 36264, 343, 12, 26801, 62, 3672, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 17831, 8, 41876, 1259, 62, 17831, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 291, 69, 30281, 62, 926, 41876, 49053, 9795, 43679, 3963, 14158, 69, 30281, 13315, 5550, 38865, 35374, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 21383, 69, 62, 2539, 11, 198, 220, 220, 220, 220, 220, 220, 220, 14158, 69, 62, 3672, 220, 220, 41876, 14158, 69, 15271, 12, 291, 69, 62, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 14158, 46428, 853, 27112, 41876, 14158, 69, 15271, 12, 291, 46428, 853, 27112, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 21383, 69, 62, 2539, 764, 628, 220, 220, 220, 337, 36252, 50, 1100, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 20063, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 274, 62, 291, 69, 15271, 41876, 14158, 69, 15271, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 274, 62, 291, 69, 15390, 84, 220, 220, 220, 41876, 14158, 69, 15390, 84, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 316, 62, 291, 69, 30281, 41876, 1259, 62, 291, 69, 30281, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 1990, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 7550, 62, 21383, 69, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 291, 69, 15271, 41876, 14158, 69, 15271, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 291, 69, 15390, 84, 220, 220, 220, 41876, 14158, 69, 15390, 84, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 291, 69, 30281, 41876, 1259, 62, 291, 69, 30281, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26495, 220, 220, 220, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 1487, 62, 21383, 69, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 291, 69, 15271, 41876, 14158, 69, 15271, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 291, 69, 15390, 84, 220, 220, 220, 41876, 14158, 69, 15390, 84, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 291, 69, 30281, 41876, 1259, 62, 291, 69, 30281, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26495, 220, 220, 220, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8000, 220, 220, 220, 220, 41876, 14158, 46428, 853, 27112, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 284, 62, 291, 69, 71, 358, 4868, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 4868, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 291, 69, 30281, 62, 926, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS lcl_td_object_info DEFINITION INHERITING FROM lcl_object_info. PUBLIC SECTION. METHODS: get_attributes REDEFINITION, get_events REDEFINITION, get_methods REDEFINITION. PROTECTED SECTION. METHODS: get_object_metadata REDEFINITION. ENDCLASS. CLASS lcl_td_object_info IMPLEMENTATION. METHOD get_attributes. DATA: attribute LIKE LINE OF attributes. CASE m_object_name. WHEN 'CL_NO_DOC'. WHEN 'IF_NO_DOC'. WHEN 'CL_DOC'. WHEN 'IF_DOC'. ENDCASE. ENDMETHOD. METHOD get_events. CASE m_object_name. WHEN 'CL_NO_DOC'. WHEN 'IF_NO_DOC'. WHEN 'CL_DOC'. WHEN 'IF_DOC'. ENDCASE. ENDMETHOD. METHOD get_methods. CASE m_object_name. WHEN 'CL_NO_DOC'. WHEN 'IF_NO_DOC'. WHEN 'CL_DOC'. WHEN 'IF_DOC'. ENDCASE. ENDMETHOD. METHOD get_object_metadata. "do nothing ENDMETHOD. ENDCLASS. CLASS lcl_unit_test DEFINITION DEFERRED. CLASS zcl_sci_longdoc_check DEFINITION LOCAL FRIENDS lcl_unit_test. CLASS lcl_unit_test DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS FINAL. PRIVATE SECTION. DATA: m_class_under_test TYPE REF TO zcl_sci_longdoc_check, m_td_object_info TYPE REF TO lcl_td_object_info, m_attributes_buffer TYPE xstring. METHODS: setup, puts_attributes FOR TESTING, gets_attributes FOR TESTING, has_attributes_set FOR TESTING, gets_message_text FOR TESTING, no_error_if_has_doc FOR TESTING. ENDCLASS. CLASS lcl_unit_test IMPLEMENTATION. METHOD setup. CREATE OBJECT m_class_under_test. CREATE OBJECT m_td_object_info. m_class_under_test->m_object_info = m_td_object_info. EXPORT sci_long_doc_error_type = 'W' sci_member_doc_error_type = 'E' TO DATA BUFFER m_attributes_buffer. ENDMETHOD. METHOD puts_attributes. m_class_under_test->put_attributes( m_attributes_buffer ). cl_abap_unit_assert=>assert_equals( exp = 'E' act = m_class_under_test->m_missing_member_error_type ). cl_abap_unit_assert=>assert_equals( exp = 'W' act = m_class_under_test->m_missing_long_doc_error_type ). ENDMETHOD. METHOD gets_attributes. DATA: long_doc_error_type TYPE sci_errty, member_error_type TYPE sci_errty. m_class_under_test->m_missing_long_doc_error_type = 'N'. m_class_under_test->m_missing_member_error_type = 'W'. m_attributes_buffer = m_class_under_test->get_attributes( ). IMPORT sci_long_doc_error_type = long_doc_error_type sci_member_doc_error_type = member_error_type FROM DATA BUFFER m_attributes_buffer. cl_abap_unit_assert=>assert_equals( exp = 'N' act = long_doc_error_type ). cl_abap_unit_assert=>assert_equals( exp = 'W' act = member_error_type ). ENDMETHOD. METHOD gets_message_text. DATA: message TYPE string. m_class_under_test->get_message_text( EXPORTING p_code = m_class_under_test->c_error_codes-no_main_documentation p_test = '' IMPORTING p_text = message ). cl_abap_unit_assert=>assert_equals( exp = 'Long documentation missing: &1' act = message ). m_class_under_test->get_message_text( EXPORTING p_code = m_class_under_test->c_error_codes-no_attribute_documentation p_test = '' IMPORTING p_text = message ). cl_abap_unit_assert=>assert_equals( exp = 'Long documentation missing: attribute &1' act = message ). m_class_under_test->get_message_text( EXPORTING p_code = m_class_under_test->c_error_codes-no_event_documentation p_test = '' IMPORTING p_text = message ). cl_abap_unit_assert=>assert_equals( exp = 'Long documentation missing: event &1' act = message ). m_class_under_test->get_message_text( EXPORTING p_code = m_class_under_test->c_error_codes-no_method_documentation p_test = '' IMPORTING p_text = message ). cl_abap_unit_assert=>assert_equals( exp = 'Long documentation missing: method &1' act = message ). m_class_under_test->get_message_text( EXPORTING p_code = '999' p_test = '' IMPORTING p_text = message ). cl_abap_unit_assert=>assert_equals( exp = 'Unknown error code' act = message ). ENDMETHOD. METHOD has_attributes_set. cl_abap_unit_assert=>assert_equals( exp = 'Check long documentation for classes/interfaces and their members' act = m_class_under_test->description ). cl_abap_unit_assert=>assert_equals( exp = 'ZCL_SCI_LONGDOC_CHECK_CATEGORY' act = m_class_under_test->category ). cl_abap_unit_assert=>assert_equals( exp = 'ZCL_SCI_LONGDOC_CHECK' act = m_class_under_test->c_class_name ). ENDMETHOD. METHOD no_error_if_has_doc. m_class_under_test->object_name = 'CL_DOC'. m_class_under_test->object_type = 'CLAS'. m_class_under_test->run( ). cl_abap_unit_assert=>assert_equals( exp = 0 act = m_class_under_test->m_error_counter ). m_class_under_test->object_name = 'IF_DOC'. m_class_under_test->object_type = 'INTF'. m_class_under_test->run( ). cl_abap_unit_assert=>assert_equals( exp = 0 act = m_class_under_test->m_error_counter ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 565, 62, 8671, 62, 15252, 62, 10951, 5550, 20032, 17941, 3268, 16879, 2043, 2751, 16034, 300, 565, 62, 15252, 62, 10951, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 651, 62, 1078, 7657, 23848, 36, 20032, 17941, 11, 198, 220, 220, 220, 220, 220, 651, 62, 31534, 23848, 36, 20032, 17941, 11, 198, 220, 220, 220, 220, 220, 651, 62, 24396, 82, 23848, 36, 20032, 17941, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 651, 62, 15252, 62, 38993, 23848, 36, 20032, 17941, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 8671, 62, 15252, 62, 10951, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 651, 62, 1078, 7657, 13, 198, 220, 220, 220, 42865, 25, 11688, 34178, 48920, 3963, 12608, 13, 628, 220, 220, 220, 42001, 285, 62, 15252, 62, 3672, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 5097, 62, 15285, 62, 38715, 4458, 198, 220, 220, 220, 220, 220, 42099, 705, 5064, 62, 15285, 62, 38715, 4458, 198, 220, 220, 220, 220, 220, 42099, 705, 5097, 62, 38715, 4458, 198, 220, 220, 220, 220, 220, 42099, 705, 5064, 62, 38715, 4458, 198, 220, 220, 220, 23578, 34, 11159, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 31534, 13, 198, 220, 220, 220, 42001, 285, 62, 15252, 62, 3672, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 5097, 62, 15285, 62, 38715, 4458, 198, 220, 220, 220, 220, 220, 42099, 705, 5064, 62, 15285, 62, 38715, 4458, 198, 220, 220, 220, 220, 220, 42099, 705, 5097, 62, 38715, 4458, 198, 220, 220, 220, 220, 220, 42099, 705, 5064, 62, 38715, 4458, 198, 220, 220, 220, 23578, 34, 11159, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 24396, 82, 13, 198, 220, 220, 220, 42001, 285, 62, 15252, 62, 3672, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 5097, 62, 15285, 62, 38715, 4458, 198, 220, 220, 220, 220, 220, 42099, 705, 5064, 62, 15285, 62, 38715, 4458, 198, 220, 220, 220, 220, 220, 42099, 705, 5097, 62, 38715, 4458, 198, 220, 220, 220, 220, 220, 42099, 705, 5064, 62, 38715, 4458, 198, 220, 220, 220, 23578, 34, 11159, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 15252, 62, 38993, 13, 198, 220, 220, 220, 366, 4598, 2147, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 20850, 62, 9288, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 31631, 1976, 565, 62, 36216, 62, 6511, 15390, 62, 9122, 5550, 20032, 17941, 37347, 1847, 48167, 1677, 5258, 300, 565, 62, 20850, 62, 9288, 13, 198, 198, 31631, 300, 565, 62, 20850, 62, 9288, 5550, 20032, 17941, 7473, 43001, 2751, 360, 4261, 6234, 6006, 9863, 45698, 42, 49277, 43638, 5805, 7597, 25261, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 285, 62, 4871, 62, 4625, 62, 9288, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 36216, 62, 6511, 15390, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 285, 62, 8671, 62, 15252, 62, 10951, 220, 220, 220, 41876, 4526, 37, 5390, 300, 565, 62, 8671, 62, 15252, 62, 10951, 11, 198, 220, 220, 220, 220, 220, 285, 62, 1078, 7657, 62, 22252, 41876, 2124, 8841, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 9058, 11, 198, 220, 220, 220, 220, 220, 7584, 62, 1078, 7657, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 3011, 62, 1078, 7657, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 468, 62, 1078, 7657, 62, 2617, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 3011, 62, 20500, 62, 5239, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 645, 62, 18224, 62, 361, 62, 10134, 62, 15390, 7473, 43001, 2751, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 20850, 62, 9288, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 9058, 13, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 285, 62, 4871, 62, 4625, 62, 9288, 13, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 285, 62, 8671, 62, 15252, 62, 10951, 13, 198, 220, 220, 220, 285, 62, 4871, 62, 4625, 62, 9288, 3784, 76, 62, 15252, 62, 10951, 796, 285, 62, 8671, 62, 15252, 62, 10951, 13, 628, 220, 220, 220, 7788, 15490, 198, 220, 220, 220, 220, 220, 20681, 62, 6511, 62, 15390, 62, 18224, 62, 4906, 796, 705, 54, 6, 198, 220, 220, 220, 220, 220, 20681, 62, 19522, 62, 15390, 62, 18224, 62, 4906, 796, 705, 36, 6, 198, 220, 220, 220, 220, 220, 5390, 42865, 20571, 45746, 285, 62, 1078, 7657, 62, 22252, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 7584, 62, 1078, 7657, 13, 198, 220, 220, 220, 285, 62, 4871, 62, 4625, 62, 9288, 3784, 1996, 62, 1078, 7657, 7, 285, 62, 1078, 7657, 62, 22252, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 1033, 796, 705, 36, 6, 198, 220, 220, 220, 220, 719, 796, 220, 285, 62, 4871, 62, 4625, 62, 9288, 3784, 76, 62, 45688, 62, 19522, 62, 18224, 62, 4906, 198, 220, 220, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 1033, 796, 705, 54, 6, 198, 220, 220, 220, 220, 220, 719, 796, 220, 285, 62, 4871, 62, 4625, 62, 9288, 3784, 76, 62, 45688, 62, 6511, 62, 15390, 62, 18224, 62, 4906, 198, 220, 220, 220, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 3011, 62, 1078, 7657, 13, 198, 220, 220, 220, 42865, 25, 890, 62, 15390, 62, 18224, 62, 4906, 41876, 20681, 62, 8056, 774, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2888, 62, 18224, 62, 4906, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
method BI_EVENT_HANDLER_STATIC~ON_EVENT. "InterfaceId to be used by ABAP SDK constants: gc_interface_id type zinterface_id value 'AZSB_SHIP'. "ABAP SDK Interface Id "Constants for Application Log constants: gc_message_class type symsgid value 'ZAZSB', "Message Class gc_appl_log_obj type balobj_d value 'ZBD_ABSDKEH', "Application Log Object gc_appl_log_subobj type balsubobj value 'ZSHIP'. "Application Log Subobject TYPES: BEGIN of lty_shipmentevent_line, product type MATNR, quantity type LFIMG, UOM type MEINS, salesorder type VGBEL, END OF lty_shipmentevent_line. types : lty_shipmentlines type standard table of lty_shipmentevent_line with default key. TYPES: BEGIN OF lty_shipmentevent, busobj TYPE sbo_bo_type, busobjname TYPE SBEH_BOTYP_TEXT, objkey TYPE SIBFBORIID, event TYPE SIBFEVENT, date TYPE dats, time TYPE tims, shipto TYPE KUNWE, loadingdate type lddat, deliverydate type LFDAT_V, shipmentlines type lty_shipmentlines, END OF lty_shipmentevent. "Data for Event Information data: lv_busobj_type type sbo_bo_type, lv_busobj_type_name type SBEH_BOTYP_TEXT. "Date for Shipment Information data: lv_shipmentevent TYPE lty_shipmentevent, lv_shipmentline TYPE lty_shipmentevent_line, lv_shipmentlines TYPE table of lty_shipmentevent_line, delivery_item TYPE LIPS, delivery_header TYPE LIKP, delivery_id TYPE VBELN_VL, shipto TYPE KUNWE, "Field KUNNR product TYPE MATNR, "Field MATNR quantity TYPE LFIMG, "Field LFIMG UOM TYPE MEINS. "FIELD MEINS "Data for JSON Conversion Data : sQuantity type string, gv_json_output type string. "Data for Azure Service Hub Connection constants: gc_interface type zinterface_id value 'AZSB_SHIP'. data: it_headers TYPE tihttpnvp, wa_headers TYPE LINE OF tihttpnvp, lv_error_string TYPE string, lv_info_string TYPE string, lv_response TYPE string, cx_interface TYPE REF TO zcx_interace_config_missing, cx_http TYPE REF TO zcx_http_client_failed, cx_adf_service TYPE REF TO zcx_adf_service, oref_servicebus TYPE REF TO zcl_adf_service_servicebus, oref TYPE REF TO zcl_adf_service, filter type zbusinessid, lv_http_status TYPE i, "HTTP Status code lo_json TYPE REF TO cl_trex_json_serializer, lv_json_string TYPE string, lv_json_xstring TYPE xstring. "Data for Log Messaging data: lt_msg TYPE bal_tt_msg, ls_msg TYPE bal_s_msg. "Select information about the event "select the business object type SELECT SINGLE bo_type INTO lv_busobj_type FROM sbo_i_bodef WHERE object_name = sender-typeid AND object_type_category = sender-catid. IF sy-subrc = 0. SELECT SINGLE bo_text INTO lv_busobj_type_name FROM sbo_i_botypet WHERE bo_type = lv_busobj_type AND bo_textlan = sy-langu. ENDIF. "Create the Shipment Event message header lv_shipmentevent-busobj = sender-typeid. lv_shipmentevent-busobjname = lv_busobj_type_name. lv_shipmentevent-event = event. lv_shipmentevent-objkey = sender-instid. lv_shipmentevent-date = sy-datlo. lv_shipmentevent-time = sy-timlo. "Select delivery related information delivery_id = sender-instid. select single * from LIKP into delivery_header where VBELN = delivery_id. if sy-subrc ne 0. "Something went wrong ls_msg-msgty = 'E'. ls_msg-msgid = gc_message_class. ls_msg-msgno = '000'. ls_msg-msgv1 = delivery_id. APPEND ls_msg TO lt_msg. CALL METHOD cl_beh_application_log=>create EXPORTING i_msg = lt_msg i_object = gc_appl_log_obj i_subobject = gc_appl_log_subobj. exit. endif. lv_shipmentevent-shipto = delivery_header-KUNNR. lv_shipmentevent-deliverydate = delivery_header-LFDAT. lv_shipmentevent-loadingdate = delivery_header-LDDAT. "Select delivery item information select * from LIPS into delivery_item where VBELN = delivery_id. lv_shipmentline-product = delivery_item-MATNR. lv_shipmentline-quantity = delivery_item-LFIMG. lv_shipmentline-UOM = delivery_item-MEINS. lv_shipmentline-salesorder = delivery_item-VGBEL. append lv_shipmentline to lv_shipmentlines. endselect. move-corresponding lv_shipmentlines to lv_shipmentevent-shipmentlines. "Convert to JSON gv_json_output = /ui2/cl_json=>serialize( data = lv_shipmentevent compress = abap_true pretty_name = /ui2/cl_json=>pretty_mode-camel_case ). "Send to json message to Azure Service Bus TRY. "Calling Factory method to instantiate service bus client oref = zcl_adf_service_factory=>create( iv_interface_id = gc_interface_id iv_business_identifier = filter ). oref_servicebus ?= oref. "Type Cast to Service Object? "Setting Expiry time CALL METHOD oref_servicebus->add_expiry_time EXPORTING iv_expiry_hour = 0 iv_expiry_min = 15 iv_expiry_sec = 0. "Convert input string data to Xstring format required by ABAP SDK CALL FUNCTION 'SCMS_STRING_TO_XSTRING' EXPORTING text = gv_json_output IMPORTING buffer = lv_json_xstring EXCEPTIONS failed = 1 OTHERS = 2. IF sy-subrc <> 0. "Something went wrong ENDIF. "Add message label CLEAR it_headers. wa_headers-name = 'BrokerProperties'. wa_headers-value = '{"Label":"ShipmentData"}'. APPEND wa_headers TO it_headers. CLEAR wa_headers. "Sending Converted SAP data to Azure Service Bus oref_servicebus->send( EXPORTING request = lv_json_xstring "Input XSTRING of SAP Business data it_headers = it_headers "Header attributes IMPORTING response = lv_response "Response from Service Bus ev_http_status = lv_http_status ). "Status CATCH zcx_interace_config_missing INTO cx_interface. lv_error_string = cx_interface->get_text( ). ls_msg-msgty = 'E'. ls_msg-msgid = gc_message_class. ls_msg-msgno = '001'. ls_msg-msgv1 = sender-typeid. ls_msg-msgv2 = delivery_id. ls_msg-msgv3 = lv_error_string. APPEND ls_msg TO lt_msg. CALL METHOD cl_beh_application_log=>create EXPORTING i_msg = lt_msg i_object = gc_appl_log_obj i_subobject = gc_appl_log_subobj. CATCH zcx_http_client_failed INTO cx_http . lv_error_string = cx_http->get_text( ). ls_msg-msgty = 'E'. ls_msg-msgid = gc_message_class. ls_msg-msgno = '001'. ls_msg-msgv1 = sender-typeid. ls_msg-msgv2 = delivery_id. ls_msg-msgv3 = lv_error_string. APPEND ls_msg TO lt_msg. CALL METHOD cl_beh_application_log=>create EXPORTING i_msg = lt_msg i_object = gc_appl_log_obj i_subobject = gc_appl_log_subobj. CATCH zcx_adf_service INTO cx_adf_service. lv_error_string = cx_adf_service->get_text( ). ls_msg-msgty = 'E'. ls_msg-msgid = gc_message_class. ls_msg-msgno = '001'. ls_msg-msgv1 = sender-typeid. ls_msg-msgv2 = delivery_id. ls_msg-msgv3 = lv_error_string. APPEND ls_msg TO lt_msg. CALL METHOD cl_beh_application_log=>create EXPORTING i_msg = lt_msg i_object = gc_appl_log_obj i_subobject = gc_appl_log_subobj. ENDTRY. "Check HTTP Status IF lv_http_status NE '201' AND lv_http_status NE '200'. lv_error_string = 'HTTP Error - SAP data not sent to Azure Service Bus'. ls_msg-msgty = 'E'. ls_msg-msgid = gc_message_class. ls_msg-msgno = '002'. ls_msg-msgv1 = sender-typeid. ls_msg-msgv2 = delivery_id. ls_msg-msgv3 = lv_error_string. ls_msg-msgv4 = lv_http_status. APPEND ls_msg TO lt_msg. CALL METHOD cl_beh_application_log=>create EXPORTING i_msg = lt_msg i_object = gc_appl_log_obj i_subobject = gc_appl_log_subobj. ELSE. lv_info_string = 'SAP data sent to Azure Service Bus'. ls_msg-msgty = 'I'. ls_msg-msgid = gc_message_class. ls_msg-msgno = '003'. ls_msg-msgv1 = sender-typeid. ls_msg-msgv2 = delivery_id. ls_msg-msgv3 = lv_info_string. APPEND ls_msg TO lt_msg. CALL METHOD cl_beh_application_log=>create EXPORTING i_msg = lt_msg i_object = gc_appl_log_obj i_subobject = gc_appl_log_subobj. ENDIF. endmethod.
[ 24396, 20068, 62, 20114, 3525, 62, 39, 6981, 39878, 62, 35744, 2149, 93, 1340, 62, 20114, 3525, 13, 628, 220, 366, 39317, 7390, 284, 307, 973, 416, 9564, 2969, 26144, 198, 220, 38491, 25, 308, 66, 62, 39994, 62, 312, 2099, 1976, 39994, 62, 312, 1988, 705, 22778, 16811, 62, 49423, 4458, 220, 366, 6242, 2969, 26144, 26491, 5121, 628, 220, 366, 34184, 1187, 329, 15678, 5972, 198, 220, 38491, 25, 308, 66, 62, 20500, 62, 4871, 2099, 827, 19662, 312, 1988, 705, 57, 22778, 16811, 3256, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 12837, 5016, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 66, 62, 1324, 75, 62, 6404, 62, 26801, 2099, 3652, 26801, 62, 67, 1988, 705, 57, 14529, 62, 32, 21800, 7336, 39, 3256, 220, 220, 220, 220, 366, 23416, 5972, 9515, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 66, 62, 1324, 75, 62, 6404, 62, 7266, 26801, 2099, 275, 874, 549, 26801, 1988, 705, 57, 49423, 4458, 220, 220, 220, 220, 220, 220, 366, 23416, 5972, 3834, 15252, 628, 220, 24412, 47, 1546, 25, 347, 43312, 286, 300, 774, 62, 6720, 434, 15596, 62, 1370, 11, 198, 220, 220, 220, 220, 220, 1720, 220, 220, 220, 2099, 36775, 24723, 11, 198, 220, 220, 220, 220, 220, 12040, 220, 220, 2099, 47629, 3955, 38, 11, 198, 220, 220, 220, 220, 220, 471, 2662, 220, 220, 220, 220, 220, 220, 220, 2099, 11948, 20913, 11, 198, 220, 220, 220, 220, 220, 4200, 2875, 2099, 569, 4579, 3698, 11, 198, 220, 23578, 3963, 300, 774, 62, 6720, 434, 15596, 62, 1370, 13, 628, 220, 3858, 1058, 300, 774, 62, 6720, 434, 6615, 2099, 3210, 3084, 286, 300, 774, 62, 6720, 434, 15596, 62, 1370, 351, 4277, 1994, 13, 628, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 300, 774, 62, 6720, 434, 15596, 11, 198, 220, 220, 220, 1323, 26801, 220, 220, 220, 220, 220, 220, 220, 41876, 264, 2127, 62, 2127, 62, 4906, 11, 198, 220, 220, 220, 1323, 26801, 3672, 220, 220, 220, 41876, 311, 12473, 39, 62, 33, 2394, 48232, 62, 32541, 11, 198, 220, 220, 220, 26181, 2539, 220, 220, 220, 220, 220, 220, 220, 41876, 311, 9865, 26001, 1581, 40, 2389, 11, 198, 220, 220, 220, 1785, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 311, 9865, 15112, 53, 3525, 11, 198, 220, 220, 220, 3128, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 288, 1381, 11, 198, 220, 220, 220, 640, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4628, 82, 11, 198, 220, 220, 220, 427, 10257, 78, 220, 220, 220, 220, 220, 220, 220, 41876, 509, 4944, 8845, 11, 198, 220, 220, 220, 11046, 4475, 220, 220, 2099, 300, 1860, 265, 11, 198, 220, 220, 220, 7585, 4475, 220, 2099, 406, 26009, 1404, 62, 53, 11, 198, 220, 220, 220, 28652, 6615, 2099, 300, 774, 62, 6720, 434, 6615, 11, 198, 220, 23578, 3963, 300, 774, 62, 6720, 434, 15596, 13, 628, 220, 366, 6601, 329, 8558, 6188, 198, 220, 1366, 25, 300, 85, 62, 10885, 26801, 62, 4906, 220, 220, 220, 220, 220, 220, 220, 2099, 264, 2127, 62, 2127, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 10885, 26801, 62, 4906, 62, 3672, 220, 220, 2099, 311, 12473, 39, 62, 33, 2394, 48232, 62, 32541, 13, 628, 220, 366, 10430, 329, 911, 4667, 6188, 198, 220, 1366, 25, 300, 85, 62, 6720, 434, 15596, 220, 220, 220, 220, 220, 41876, 300, 774, 62, 6720, 434, 15596, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 6720, 434, 1370, 220, 220, 220, 220, 220, 220, 41876, 300, 774, 62, 6720, 434, 15596, 62, 1370, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 6720, 434, 6615, 220, 220, 220, 220, 220, 41876, 3084, 286, 300, 774, 62, 6720, 434, 15596, 62, 1370, 11, 198, 220, 220, 220, 220, 220, 220, 220, 7585, 62, 9186, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 24653, 3705, 11, 198, 220, 220, 220, 220, 220, 220, 220, 7585, 62, 25677, 220, 220, 220, 220, 220, 220, 41876, 406, 18694, 47, 11, 198, 220, 220, 220, 220, 220, 220, 220, 7585, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 569, 33, 3698, 45, 62, 47468, 11, 198, 220, 220, 220, 220, 220, 220, 220, 427, 10257, 78, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 509, 4944, 8845, 11, 366, 15878, 509, 4944, 24723, 198, 220, 220, 220, 220, 220, 220, 220, 1720, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 36775, 24723, 11, 366, 15878, 36775, 24723, 198, 220, 220, 220, 220, 220, 220, 220, 12040, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 47629, 3955, 38, 11, 366, 15878, 47629, 3955, 38, 198, 220, 220, 220, 220, 220, 220, 220, 471, 2662, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 11948, 20913, 13, 366, 44603, 11948, 20913, 628, 220, 366, 6601, 329, 19449, 44101, 198, 220, 6060, 1058, 264, 31208, 220, 220, 220, 220, 220, 2099, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 308, 85, 62, 17752, 62, 22915, 2099, 4731, 13, 628, 220, 366, 6601, 329, 22134, 4809, 14699, 26923, 198, 220, 38491, 25, 308, 66, 62, 39994, 2099, 1976, 39994, 62, 312, 1988, 705, 22778, 16811, 62, 49423, 4458, 628, 220, 1366, 25, 340, 62, 50145, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 46668, 4023, 77, 36133, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2082, 62, 50145, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 48920, 3963, 46668, 4023, 77, 36133, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 18224, 62, 8841, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_repo_content_list DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. METHODS constructor IMPORTING io_repo TYPE REF TO zcl_abapgit_repo. METHODS list IMPORTING iv_path TYPE string iv_by_folders TYPE abap_bool iv_changes_only TYPE abap_bool RETURNING VALUE(rt_repo_items) TYPE zif_abapgit_definitions=>ty_repo_item_tt RAISING zcx_abapgit_exception. METHODS get_log RETURNING VALUE(ri_log) TYPE REF TO zif_abapgit_log. PROTECTED SECTION. PRIVATE SECTION. CONSTANTS: BEGIN OF c_sortkey, default TYPE i VALUE 9999, parent_dir TYPE i VALUE 0, dir TYPE i VALUE 1, orphan TYPE i VALUE 2, changed TYPE i VALUE 3, inactive TYPE i VALUE 4, END OF c_sortkey. DATA: mo_repo TYPE REF TO zcl_abapgit_repo, mi_log TYPE REF TO zif_abapgit_log. METHODS build_repo_items_local_only RETURNING VALUE(rt_repo_items) TYPE zif_abapgit_definitions=>ty_repo_item_tt RAISING zcx_abapgit_exception. METHODS build_repo_items_with_remote RETURNING VALUE(rt_repo_items) TYPE zif_abapgit_definitions=>ty_repo_item_tt RAISING zcx_abapgit_exception. METHODS build_folders IMPORTING iv_cur_dir TYPE string CHANGING ct_repo_items TYPE zif_abapgit_definitions=>ty_repo_item_tt RAISING zcx_abapgit_exception. METHODS filter_changes CHANGING ct_repo_items TYPE zif_abapgit_definitions=>ty_repo_item_tt. METHODS check_repo_size RAISING zcx_abapgit_exception . ENDCLASS. CLASS ZCL_ABAPGIT_REPO_CONTENT_LIST IMPLEMENTATION. METHOD build_folders. DATA: lv_index TYPE i, lt_subitems LIKE ct_repo_items, ls_subitem LIKE LINE OF ct_repo_items, ls_folder LIKE LINE OF ct_repo_items. FIELD-SYMBOLS <ls_item> LIKE LINE OF ct_repo_items. LOOP AT ct_repo_items ASSIGNING <ls_item>. lv_index = sy-tabix. CHECK <ls_item>-path <> iv_cur_dir. " files in target dir - just leave them be IF zcl_abapgit_path=>is_subdir( iv_path = <ls_item>-path iv_parent = iv_cur_dir ) = abap_true. ls_subitem-changes = <ls_item>-changes. ls_subitem-path = <ls_item>-path. ls_subitem-lstate = <ls_item>-lstate. ls_subitem-rstate = <ls_item>-rstate. APPEND ls_subitem TO lt_subitems. ENDIF. DELETE ct_repo_items INDEX lv_index. ENDLOOP. SORT lt_subitems BY path ASCENDING. LOOP AT lt_subitems ASSIGNING <ls_item>. AT NEW path. CLEAR ls_folder. ls_folder-path = <ls_item>-path. ls_folder-sortkey = c_sortkey-dir. " Directory ls_folder-is_dir = abap_true. ENDAT. ls_folder-changes = ls_folder-changes + <ls_item>-changes. zcl_abapgit_state=>reduce( EXPORTING iv_cur = <ls_item>-lstate CHANGING cv_prev = ls_folder-lstate ). zcl_abapgit_state=>reduce( EXPORTING iv_cur = <ls_item>-rstate CHANGING cv_prev = ls_folder-rstate ). AT END OF path. APPEND ls_folder TO ct_repo_items. ENDAT. ENDLOOP. ENDMETHOD. METHOD build_repo_items_local_only. DATA: lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt, ls_item TYPE zif_abapgit_definitions=>ty_item. FIELD-SYMBOLS: <ls_repo_item> LIKE LINE OF rt_repo_items, <ls_tadir> LIKE LINE OF lt_tadir. lt_tadir = zcl_abapgit_factory=>get_tadir( )->read( iv_package = mo_repo->get_package( ) io_dot = mo_repo->get_dot_abapgit( ) ). LOOP AT lt_tadir ASSIGNING <ls_tadir>. APPEND INITIAL LINE TO rt_repo_items ASSIGNING <ls_repo_item>. <ls_repo_item>-obj_type = <ls_tadir>-object. <ls_repo_item>-obj_name = <ls_tadir>-obj_name. <ls_repo_item>-path = <ls_tadir>-path. MOVE-CORRESPONDING <ls_repo_item> TO ls_item. <ls_repo_item>-inactive = boolc( zcl_abapgit_objects=>is_active( ls_item ) = abap_false ). IF <ls_repo_item>-inactive = abap_true. <ls_repo_item>-sortkey = c_sortkey-inactive. ELSE. <ls_repo_item>-sortkey = c_sortkey-default. " Default sort key ENDIF. ENDLOOP. ENDMETHOD. METHOD build_repo_items_with_remote. DATA: ls_file TYPE zif_abapgit_definitions=>ty_repo_file, lt_status TYPE zif_abapgit_definitions=>ty_results_tt. FIELD-SYMBOLS: <ls_status> LIKE LINE OF lt_status, <ls_repo_item> LIKE LINE OF rt_repo_items. lt_status = mo_repo->status( mi_log ). LOOP AT lt_status ASSIGNING <ls_status>. AT NEW obj_name. "obj_type + obj_name APPEND INITIAL LINE TO rt_repo_items ASSIGNING <ls_repo_item>. <ls_repo_item>-obj_type = <ls_status>-obj_type. <ls_repo_item>-obj_name = <ls_status>-obj_name. <ls_repo_item>-inactive = <ls_status>-inactive. <ls_repo_item>-sortkey = c_sortkey-default. " Default sort key <ls_repo_item>-changes = 0. <ls_repo_item>-path = <ls_status>-path. ENDAT. IF <ls_status>-filename IS NOT INITIAL. ls_file-path = <ls_status>-path. ls_file-filename = <ls_status>-filename. ls_file-is_changed = boolc( <ls_status>-match = abap_false ). " TODO refactor ls_file-rstate = <ls_status>-rstate. ls_file-lstate = <ls_status>-lstate. APPEND ls_file TO <ls_repo_item>-files. IF <ls_status>-inactive = abap_true AND <ls_repo_item>-sortkey > c_sortkey-changed. <ls_repo_item>-sortkey = c_sortkey-inactive. ENDIF. IF ls_file-is_changed = abap_true. <ls_repo_item>-sortkey = c_sortkey-changed. " Changed files <ls_repo_item>-changes = <ls_repo_item>-changes + 1. zcl_abapgit_state=>reduce( EXPORTING iv_cur = ls_file-lstate CHANGING cv_prev = <ls_repo_item>-lstate ). zcl_abapgit_state=>reduce( EXPORTING iv_cur = ls_file-rstate CHANGING cv_prev = <ls_repo_item>-rstate ). ENDIF. ENDIF. AT END OF obj_name. "obj_type + obj_name IF <ls_repo_item>-obj_type IS INITIAL. <ls_repo_item>-sortkey = c_sortkey-orphan. "Virtual objects ENDIF. ENDAT. ENDLOOP. ENDMETHOD. METHOD check_repo_size. CONSTANTS lc_new_repo_size TYPE i VALUE 10. DATA lt_remote TYPE zif_abapgit_definitions=>ty_files_tt. lt_remote = mo_repo->get_files_remote( ). IF lines( lt_remote ) > lc_new_repo_size. " Less files means it's a new repo (with just readme and license, for example) which is ok READ TABLE lt_remote TRANSPORTING NO FIELDS WITH KEY path = zif_abapgit_definitions=>c_root_dir filename = zif_abapgit_definitions=>c_dot_abapgit. IF sy-subrc <> 0. mi_log->add_warning( |Cannot find .abapgit.xml - Is this an abapGit repository?| ). ENDIF. ENDIF. ENDMETHOD. METHOD constructor. mo_repo = io_repo. CREATE OBJECT mi_log TYPE zcl_abapgit_log. ENDMETHOD. METHOD filter_changes. FIELD-SYMBOLS: <ls_item> TYPE zif_abapgit_definitions=>ty_repo_item. DELETE ct_repo_items WHERE changes = 0 AND inactive = abap_false. LOOP AT ct_repo_items ASSIGNING <ls_item> WHERE inactive = abap_false. DELETE <ls_item>-files WHERE is_changed = abap_false. ENDLOOP. ENDMETHOD. METHOD get_log. DATA li_repo_log TYPE REF TO zif_abapgit_log. DATA lt_repo_msg TYPE zif_abapgit_log=>ty_log_outs. DATA lr_repo_msg TYPE REF TO zif_abapgit_log=>ty_log_out. ri_log = mi_log. "add warning and error messages from repo log li_repo_log = mo_repo->get_log( ). IF li_repo_log IS BOUND. lt_repo_msg = li_repo_log->get_messages( ). LOOP AT lt_repo_msg REFERENCE INTO lr_repo_msg WHERE type CA 'EW'. CASE lr_repo_msg->type. WHEN 'E'. ri_log->add_error( lr_repo_msg->text ). WHEN 'W'. ri_log->add_warning( lr_repo_msg->text ). WHEN OTHERS. CONTINUE. ENDCASE. ENDLOOP. ENDIF. ENDMETHOD. METHOD list. mi_log->clear( ). IF mo_repo->has_remote_source( ) = abap_true. rt_repo_items = build_repo_items_with_remote( ). check_repo_size( ). ELSE. rt_repo_items = build_repo_items_local_only( ). ENDIF. IF iv_by_folders = abap_true. build_folders( EXPORTING iv_cur_dir = iv_path CHANGING ct_repo_items = rt_repo_items ). ENDIF. IF iv_changes_only = abap_true. " There are never changes for offline repositories filter_changes( CHANGING ct_repo_items = rt_repo_items ). ENDIF. SORT rt_repo_items BY sortkey ASCENDING path ASCENDING obj_name ASCENDING. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 11299, 62, 4868, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 33245, 62, 260, 7501, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 13, 628, 220, 220, 220, 337, 36252, 50, 1351, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 6978, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 1525, 62, 11379, 364, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 36653, 62, 8807, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 17034, 62, 260, 7501, 62, 23814, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 260, 7501, 62, 9186, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 6404, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 380, 62, 6404, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 347, 43312, 3963, 269, 62, 30619, 2539, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 220, 220, 220, 41876, 1312, 26173, 8924, 860, 17032, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2560, 62, 15908, 41876, 1312, 26173, 8924, 657, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26672, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 26173, 8924, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26051, 220, 220, 220, 220, 41876, 1312, 26173, 8924, 362, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3421, 220, 220, 220, 41876, 1312, 26173, 8924, 513, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 28621, 220, 220, 41876, 1312, 26173, 8924, 604, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 30619, 2539, 13, 628, 220, 220, 220, 42865, 25, 6941, 62, 260, 7501, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21504, 62, 6404, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 13, 628, 220, 220, 220, 337, 36252, 50, 1382, 62, 260, 7501, 62, 23814, 62, 12001, 62, 8807, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 17034, 62, 260, 7501, 62, 23814, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 260, 7501, 62, 9186, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 1382, 62, 260, 7501, 62, 23814, 62, 4480, 62, 47960, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 17034, 62, 260, 7501, 62, 23814, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 260, 7501, 62, 9186, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 1382, 62, 11379, 364, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 22019, 62, 15908, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 83, 62, 260, 7501, 62, 23814, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 260, 7501, 62, 9186, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 8106, 62, 36653, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 269, 83, 62, 260, 7501, 62, 23814, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 260, 7501, 62, 9186, 62, 926, 13, 628, 220, 220, 220, 337, 36252, 50, 2198, 62, 260, 7501, 62, 7857, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 2200, 16402, 62, 37815, 3525, 62, 45849, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1382, 62, 11379, 364, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 9630, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 7266, 23814, 34178, 269, 83, 62, 260, 7501, 62, 23814, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 7266, 9186, 220, 34178, 48920, 3963, 269, 83, 62, 260, 7501, 62, 23814, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 43551, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS /dmo/cl_flight_legacy19 DEFINITION PUBLIC FINAL CREATE PRIVATE GLOBAL FRIENDS /dmo/cl_flight_data_generat_19. PUBLIC SECTION. INTERFACES /dmo/if_flight_legacy19. TYPES: BEGIN OF ENUM ty_change_mode STRUCTURE change_mode," Key checks are done separately create, update," Only fields that have been changed need to be checked END OF ENUM ty_change_mode STRUCTURE change_mode. CLASS-METHODS: get_instance RETURNING VALUE(ro_instance) TYPE REF TO /dmo/cl_flight_legacy19. " With respect to the same method call of create/update/delete_travel() we have All or Nothing. " I.e. when one of the levels contains an error, the complete call is refused. " However, the buffer is not cleared in case of an error. " I.e. when the caller wants to start over, he needs to call Initialize() explicitly. METHODS set_status_to_booked IMPORTING iv_travel_id TYPE /dmo/travel_id19 EXPORTING et_messages TYPE /dmo/if_flight_legacy19=>tt_if_t100_message. METHODS create_travel IMPORTING is_travel TYPE /dmo/if_flight_legacy19=>ts_travel_in it_booking TYPE /dmo/if_flight_legacy19=>tt_booking_in OPTIONAL it_booking_supplement TYPE /dmo/if_flight_legacy19=>tt_booking_supplement_in OPTIONAL EXPORTING es_travel TYPE /dmo/travel19 et_booking TYPE /dmo/if_flight_legacy19=>tt_booking et_booking_supplement TYPE /dmo/if_flight_legacy19=>tt_booking_supplement et_messages TYPE /dmo/if_flight_legacy19=>tt_if_t100_message. METHODS update_travel IMPORTING is_travel TYPE /dmo/if_flight_legacy19=>ts_travel_in is_travelx TYPE /dmo/if_flight_legacy19=>ts_travel_inx it_booking TYPE /dmo/if_flight_legacy19=>tt_booking_in OPTIONAL it_bookingx TYPE /dmo/if_flight_legacy19=>tt_booking_inx OPTIONAL it_booking_supplement TYPE /dmo/if_flight_legacy19=>tt_booking_supplement_in OPTIONAL it_booking_supplementx TYPE /dmo/if_flight_legacy19=>tt_booking_supplement_inx OPTIONAL EXPORTING es_travel TYPE /dmo/travel19 et_booking TYPE /dmo/if_flight_legacy19=>tt_booking et_booking_supplement TYPE /dmo/if_flight_legacy19=>tt_booking_supplement et_messages TYPE /dmo/if_flight_legacy19=>tt_if_t100_message. METHODS delete_travel IMPORTING iv_travel_id TYPE /dmo/travel_id19 EXPORTING et_messages TYPE /dmo/if_flight_legacy19=>tt_if_t100_message. METHODS get_travel IMPORTING iv_travel_id TYPE /dmo/travel_id19 iv_include_buffer TYPE abap_boolean iv_include_temp_buffer TYPE abap_boolean OPTIONAL EXPORTING es_travel TYPE /dmo/travel19 et_booking TYPE /dmo/if_flight_legacy19=>tt_booking et_booking_supplement TYPE /dmo/if_flight_legacy19=>tt_booking_supplement et_messages TYPE /dmo/if_flight_legacy19=>tt_if_t100_message. METHODS save. METHODS initialize. METHODS convert_messages IMPORTING it_messages TYPE /dmo/if_flight_legacy19=>tt_if_t100_message EXPORTING et_messages TYPE /dmo/if_flight_legacy19=>tt_message. PROTECTED SECTION. PRIVATE SECTION. CLASS-DATA go_instance TYPE REF TO /dmo/cl_flight_legacy19. CLASS-METHODS: "! Calculation of Price <br/> "! <br/> "! Price will be calculated using distance multiplied and occupied seats.<br/> "! Depending on how many seats in percentage are occupied the formula <br/> "! 3/400·x² + 25<br/> "! will be applied.<br/> "! 0% seats occupied leads to 25% of distance as price.<br/> "! 75% seats occupied leads to 50% of distance as price.<br/> "! 100% seats occupied leads to 100% of distance as price.<br/> "! @parameter iv_seats_occupied_percent | occupied seats "! @parameter iv_flight_distance | flight distance in kilometer "! @parameter rv_price | calculated flight price calculate_flight_price IMPORTING iv_seats_occupied_percent TYPE /dmo/plane_seats_occupied19 iv_flight_distance TYPE i RETURNING VALUE(rv_price) TYPE /dmo/flight_price19 ##RELAX. METHODS lock_travel IMPORTING iv_lock TYPE abap_bool RAISING /dmo/cx_flight_legacy19 ##RELAX ##NEEDED. METHODS _resolve_attribute IMPORTING iv_attrname TYPE scx_attrname ix TYPE REF TO /dmo/cx_flight_legacy19 RETURNING VALUE(rv_symsgv) TYPE symsgv. "! Final determinations / derivations after all levels have been prepared, e.g. bottom-up derivations METHODS _determine EXPORTING et_messages TYPE /dmo/if_flight_legacy19=>tt_if_t100_message CHANGING cs_travel TYPE /dmo/travel19 ct_booking TYPE /dmo/if_flight_legacy19=>tt_booking ct_booking_supplement TYPE /dmo/if_flight_legacy19=>tt_booking_supplement. METHODS _determine_travel_total_price CHANGING cs_travel TYPE /dmo/travel19 ct_booking TYPE /dmo/if_flight_legacy19=>tt_booking ct_booking_supplement TYPE /dmo/if_flight_legacy19=>tt_booking_supplement ct_messages TYPE /dmo/if_flight_legacy19=>tt_if_t100_message ##NEEDED. METHODS _convert_currency IMPORTING iv_currency_code_source TYPE /dmo/currency_code19 iv_currency_code_target TYPE /dmo/currency_code19 iv_amount TYPE /dmo/total_price19 RETURNING VALUE(rv_amount) TYPE /dmo/total_price19. ENDCLASS. CLASS /dmo/cl_flight_legacy19 IMPLEMENTATION. METHOD calculate_flight_price. DATA: lv_percentage_of_max_price TYPE i. lv_percentage_of_max_price = ( 3 * iv_seats_occupied_percent ** 2 DIV 400 ) + 25 ##OPERATOR[**]. rv_price = lv_percentage_of_max_price * iv_flight_distance DIV 100. ENDMETHOD. METHOD convert_messages. CLEAR et_messages. DATA ls_message TYPE symsg. LOOP AT it_messages INTO DATA(lr_error) ##INTO_OK. ls_message-msgty = 'E'. ls_message-msgid = lr_error->t100key-msgid. ls_message-msgno = lr_error->t100key-msgno. IF lr_error IS INSTANCE OF /dmo/cx_flight_legacy19. DATA(lx) = CAST /dmo/cx_flight_legacy19( lr_error ). ls_message-msgv1 = _resolve_attribute( iv_attrname = lr_error->t100key-attr1 ix = lx ). ls_message-msgv2 = _resolve_attribute( iv_attrname = lr_error->t100key-attr2 ix = lx ). ls_message-msgv3 = _resolve_attribute( iv_attrname = lr_error->t100key-attr3 ix = lx ). ls_message-msgv4 = _resolve_attribute( iv_attrname = lr_error->t100key-attr4 ix = lx ). ENDIF. APPEND ls_message TO et_messages. ENDLOOP. ENDMETHOD. METHOD create_travel. CLEAR: es_travel, et_booking, et_booking_supplement, et_messages. " Travel lcl_travel_buffer=>get_instance( )->cud_prep( EXPORTING it_travel = VALUE #( ( CORRESPONDING #( is_travel ) ) ) it_travelx = VALUE #( ( travel_id = is_travel-travel_id action_code = /dmo/if_flight_legacy19=>action_code-create ) ) IMPORTING et_travel = DATA(lt_travel) et_messages = et_messages ). IF et_messages IS INITIAL. ASSERT lines( lt_travel ) = 1. es_travel = lt_travel[ 1 ]. ENDIF. " Bookings IF et_messages IS INITIAL. DATA lt_booking TYPE /dmo/if_flight_legacy19=>tt_booking. DATA lt_bookingx TYPE /dmo/if_flight_legacy19=>tt_bookingx. LOOP AT it_booking INTO DATA(ls_booking_in). DATA ls_booking TYPE /dmo/booking19. ls_booking = CORRESPONDING #( ls_booking_in ). ls_booking-travel_id = es_travel-travel_id. INSERT ls_booking INTO TABLE lt_booking. INSERT VALUE #( travel_id = ls_booking-travel_id booking_id = ls_booking-booking_id action_code = /dmo/if_flight_legacy19=>action_code-create ) INTO TABLE lt_bookingx. ENDLOOP. lcl_booking_buffer=>get_instance( )->cud_prep( EXPORTING it_booking = lt_booking it_bookingx = lt_bookingx IMPORTING et_booking = et_booking et_messages = DATA(lt_messages) ). APPEND LINES OF lt_messages TO et_messages. ENDIF. " Booking Supplements IF et_messages IS INITIAL. DATA lt_booking_supplement TYPE /dmo/if_flight_legacy19=>tt_booking_supplement. DATA lt_booking_supplementx TYPE /dmo/if_flight_legacy19=>tt_booking_supplementx. LOOP AT it_booking_supplement INTO DATA(ls_booking_supplement_in). DATA ls_booking_supplement TYPE /dmo/book_sup_19. ls_booking_supplement = CORRESPONDING #( ls_booking_supplement_in ). ls_booking_supplement-travel_id = es_travel-travel_id. IF lcl_booking_buffer=>get_instance( )->check_booking_id( EXPORTING iv_travel_id = ls_booking_supplement-travel_id iv_booking_id = ls_booking_supplement-booking_id CHANGING ct_messages = et_messages ) = abap_false. EXIT. ENDIF. INSERT ls_booking_supplement INTO TABLE lt_booking_supplement. INSERT VALUE #( travel_id = ls_booking_supplement-travel_id booking_id = ls_booking_supplement-booking_id booking_supplement_id = ls_booking_supplement-booking_supplement_id action_code = /dmo/if_flight_legacy19=>action_code-create ) INTO TABLE lt_booking_supplementx. ENDLOOP. IF et_messages IS INITIAL. lcl_booking_supplement_buffer=>get_instance( )->cud_prep( EXPORTING it_booking_supplement = lt_booking_supplement it_booking_supplementx = lt_booking_supplementx IMPORTING et_booking_supplement = et_booking_supplement et_messages = lt_messages ). APPEND LINES OF lt_messages TO et_messages. ENDIF. ENDIF. " Now do any derivations that require the whole business object (not only a single node), but which may in principle result in an error IF et_messages IS INITIAL. _determine( IMPORTING et_messages = et_messages CHANGING cs_travel = es_travel ct_booking = et_booking ct_booking_supplement = et_booking_supplement ). ENDIF. IF et_messages IS INITIAL. lcl_travel_buffer=>get_instance( )->cud_copy( ). lcl_booking_buffer=>get_instance( )->cud_copy( ). lcl_booking_supplement_buffer=>get_instance( )->cud_copy( ). ELSE. CLEAR: es_travel, et_booking, et_booking_supplement. lcl_travel_buffer=>get_instance( )->cud_disc( ). lcl_booking_buffer=>get_instance( )->cud_disc( ). lcl_booking_supplement_buffer=>get_instance( )->cud_disc( ). ENDIF. ENDMETHOD. METHOD delete_travel. CLEAR et_messages. get_travel( EXPORTING iv_travel_id = iv_travel_id iv_include_buffer = abap_true iv_include_temp_buffer = abap_true IMPORTING et_booking = DATA(lt_booking) et_booking_supplement = DATA(lt_booking_supplement) et_messages = et_messages ). IF et_messages IS INITIAL. lcl_booking_supplement_buffer=>get_instance( )->cud_prep( EXPORTING it_booking_supplement = CORRESPONDING #( lt_booking_supplement MAPPING travel_id = travel_id booking_id = booking_id booking_supplement_id = booking_supplement_id EXCEPT * ) it_booking_supplementx = VALUE #( FOR ls_bs IN lt_booking_supplement ( action_code = /dmo/if_flight_legacy19=>action_code-delete travel_id = ls_bs-travel_id booking_id = ls_bs-booking_id booking_supplement_id = ls_bs-booking_supplement_id ) ) iv_no_delete_check = abap_true " No existence check required IMPORTING et_messages = DATA(lt_messages) ). APPEND LINES OF lt_messages TO et_messages. ENDIF. IF et_messages IS INITIAL. lcl_booking_buffer=>get_instance( )->cud_prep( EXPORTING it_booking = CORRESPONDING #( lt_booking MAPPING travel_id = travel_id booking_id = booking_id EXCEPT * ) it_bookingx = VALUE #( FOR ls_b IN lt_booking ( action_code = /dmo/if_flight_legacy19=>action_code-delete travel_id = ls_b-travel_id booking_id = ls_b-booking_id ) ) iv_no_delete_check = abap_true " No existence check required IMPORTING et_messages = lt_messages ). APPEND LINES OF lt_messages TO et_messages. ENDIF. IF et_messages IS INITIAL. lcl_travel_buffer=>get_instance( )->cud_prep( EXPORTING it_travel = VALUE #( ( travel_id = iv_travel_id ) ) it_travelx = VALUE #( ( travel_id = iv_travel_id action_code = /dmo/if_flight_legacy19=>action_code-delete ) ) iv_no_delete_check = abap_true " No existence check required IMPORTING et_messages = lt_messages ). APPEND LINES OF lt_messages TO et_messages. ENDIF. IF et_messages IS INITIAL. lcl_travel_buffer=>get_instance( )->cud_copy( ). lcl_booking_buffer=>get_instance( )->cud_copy( ). lcl_booking_supplement_buffer=>get_instance( )->cud_copy( ). ELSE. lcl_travel_buffer=>get_instance( )->cud_disc( ). lcl_booking_buffer=>get_instance( )->cud_disc( ). lcl_booking_supplement_buffer=>get_instance( )->cud_disc( ). ENDIF. ENDMETHOD. METHOD get_instance. go_instance = COND #( WHEN go_instance IS BOUND THEN go_instance ELSE NEW #( ) ). ro_instance = go_instance. ENDMETHOD. METHOD get_travel. CLEAR: es_travel, et_booking, et_booking_supplement, et_messages. IF iv_travel_id IS INITIAL. APPEND NEW /dmo/cx_flight_legacy19( textid = /dmo/cx_flight_legacy19=>travel_no_key ) TO et_messages. RETURN. ENDIF. lcl_travel_buffer=>get_instance( )->get( EXPORTING it_travel = VALUE #( ( travel_id = iv_travel_id ) ) iv_include_buffer = iv_include_buffer iv_include_temp_buffer = iv_include_temp_buffer IMPORTING et_travel = DATA(lt_travel) ). IF lt_travel IS INITIAL. APPEND NEW /dmo/cx_flight_legacy19( textid = /dmo/cx_flight_legacy19=>travel_unknown travel_id = iv_travel_id ) TO et_messages. RETURN. ENDIF. ASSERT lines( lt_travel ) = 1. es_travel = lt_travel[ 1 ]. lcl_booking_buffer=>get_instance( )->get( EXPORTING it_booking = VALUE #( ( travel_id = iv_travel_id ) ) iv_include_buffer = iv_include_buffer iv_include_temp_buffer = iv_include_temp_buffer IMPORTING et_booking = et_booking ). lcl_booking_supplement_buffer=>get_instance( )->get( EXPORTING it_booking_supplement = CORRESPONDING #( et_booking MAPPING travel_id = travel_id booking_id = booking_id EXCEPT * ) iv_include_buffer = iv_include_buffer iv_include_temp_buffer = iv_include_temp_buffer IMPORTING et_booking_supplement = et_booking_supplement ). ENDMETHOD. METHOD initialize. lcl_travel_buffer=>get_instance( )->initialize( ). lcl_booking_buffer=>get_instance( )->initialize( ). lcl_booking_supplement_buffer=>get_instance( )->initialize( ). ENDMETHOD. METHOD lock_travel ##NEEDED. * IF iv_lock = abap_true. * CALL FUNCTION 'ENQUEUE_/DMO/ETRAVEL19' * EXCEPTIONS * foreign_lock = 1 * system_failure = 2 * OTHERS = 3. * IF sy-subrc <> 0. * RAISE EXCEPTION TYPE /dmo/cx_flight_legacy19 * EXPORTING * textid = /dmo/cx_flight_legacy19=>travel_lock. * ENDIF. * ELSE. * CALL FUNCTION 'DEQUEUE_/DMO/ETRAVEL19'. * ENDIF. ENDMETHOD. METHOD save. lcl_travel_buffer=>get_instance( )->save( ). lcl_booking_buffer=>get_instance( )->save( ). lcl_booking_supplement_buffer=>get_instance( )->save( ). initialize( ). ENDMETHOD. METHOD set_status_to_booked. lcl_travel_buffer=>get_instance( )->set_status_to_booked( EXPORTING iv_travel_id = iv_travel_id IMPORTING et_messages = et_messages ). ENDMETHOD. METHOD update_travel. CLEAR es_travel. CLEAR et_booking. CLEAR et_booking_supplement. CLEAR et_messages. " Travel IF is_travel-travel_id IS INITIAL. APPEND NEW /dmo/cx_flight_legacy19( textid = /dmo/cx_flight_legacy19=>travel_no_key ) TO et_messages. RETURN. ENDIF. DATA ls_travelx TYPE /dmo/if_flight_legacy19=>ts_travelx. ls_travelx = CORRESPONDING #( is_travelx ). ls_travelx-action_code = /dmo/if_flight_legacy19=>action_code-update. lcl_travel_buffer=>get_instance( )->cud_prep( EXPORTING it_travel = VALUE #( ( CORRESPONDING #( is_travel ) ) ) it_travelx = VALUE #( ( ls_travelx ) ) IMPORTING et_travel = DATA(lt_travel) et_messages = et_messages ). " We may need to delete Booking Supplements of deleted Bookings " Read all Booking Supplements before any Bookings are deleted get_travel( EXPORTING iv_travel_id = is_travel-travel_id iv_include_buffer = abap_true iv_include_temp_buffer = abap_true IMPORTING et_booking_supplement = DATA(lt_booking_supplement_del) ). " Bookings IF et_messages IS INITIAL. " Ignore provided Travel ID of subnode tables DATA lt_booking TYPE /dmo/if_flight_legacy19=>tt_booking. DATA lt_bookingx TYPE /dmo/if_flight_legacy19=>tt_bookingx. LOOP AT it_booking INTO DATA(ls_booking_in). DATA ls_booking TYPE /dmo/booking19. ls_booking = CORRESPONDING #( ls_booking_in ). ls_booking-travel_id = is_travel-travel_id. INSERT ls_booking INTO TABLE lt_booking. ENDLOOP. LOOP AT it_bookingx INTO DATA(ls_booking_inx). DATA ls_bookingx TYPE /dmo/if_flight_legacy19=>ts_bookingx. ls_bookingx = CORRESPONDING #( ls_booking_inx ). ls_bookingx-travel_id = is_travel-travel_id. INSERT ls_bookingx INTO TABLE lt_bookingx. ENDLOOP. lcl_booking_buffer=>get_instance( )->cud_prep( EXPORTING it_booking = lt_booking it_bookingx = lt_bookingx IMPORTING et_booking = et_booking et_messages = DATA(lt_messages) ). APPEND LINES OF lt_messages TO et_messages. ENDIF. " Booking Supplements IF et_messages IS INITIAL. " Ignore provided Travel ID of subnode tables DATA lt_booking_supplement TYPE /dmo/if_flight_legacy19=>tt_booking_supplement. DATA lt_booking_supplementx TYPE /dmo/if_flight_legacy19=>tt_booking_supplementx. LOOP AT it_booking_supplement INTO DATA(ls_booking_supplement_in). DATA ls_booking_supplement TYPE /dmo/book_sup_19. ls_booking_supplement = CORRESPONDING #( ls_booking_supplement_in ). ls_booking_supplement-travel_id = is_travel-travel_id. IF lcl_booking_buffer=>get_instance( )->check_booking_id( EXPORTING iv_travel_id = ls_booking_supplement-travel_id iv_booking_id = ls_booking_supplement-booking_id CHANGING ct_messages = et_messages ) = abap_false. EXIT. ENDIF. INSERT ls_booking_supplement INTO TABLE lt_booking_supplement. ENDLOOP. IF et_messages IS INITIAL. LOOP AT it_booking_supplementx INTO DATA(ls_booking_supplement_inx). DATA ls_booking_supplementx TYPE /dmo/if_flight_legacy19=>ts_booking_supplementx. ls_booking_supplementx = CORRESPONDING #( ls_booking_supplement_inx ). ls_booking_supplementx-travel_id = is_travel-travel_id. INSERT ls_booking_supplementx INTO TABLE lt_booking_supplementx. ENDLOOP. lcl_booking_supplement_buffer=>get_instance( )->cud_prep( EXPORTING it_booking_supplement = lt_booking_supplement it_booking_supplementx = lt_booking_supplementx IMPORTING et_booking_supplement = et_booking_supplement et_messages = lt_messages ). APPEND LINES OF lt_messages TO et_messages. ENDIF. ENDIF. " For Bookings to be deleted we also need to delete the Booking Supplements IF et_messages IS INITIAL AND lt_booking_supplement_del IS NOT INITIAL AND line_exists( lt_bookingx[ action_code = CONV /dmo/action_code19( /dmo/if_flight_legacy19=>action_code-delete ) ] ). " Remove any Bookings from internal table that must not be deleted LOOP AT lt_booking_supplement_del ASSIGNING FIELD-SYMBOL(<s_booking_supplement_del>). READ TABLE lt_bookingx TRANSPORTING NO FIELDS WITH KEY action_code = CONV /dmo/action_code19( /dmo/if_flight_legacy19=>action_code-delete ) travel_id = <s_booking_supplement_del>-travel_id booking_id = <s_booking_supplement_del>-booking_id. IF sy-subrc <> 0. DELETE lt_booking_supplement_del. ENDIF. ENDLOOP. lcl_booking_supplement_buffer=>get_instance( )->cud_prep( EXPORTING it_booking_supplement = CORRESPONDING #( lt_booking_supplement_del MAPPING travel_id = travel_id booking_id = booking_id booking_supplement_id = booking_supplement_id EXCEPT * ) it_booking_supplementx = VALUE #( FOR ls_bs IN lt_booking_supplement_del ( action_code = /dmo/if_flight_legacy19=>action_code-delete travel_id = ls_bs-travel_id booking_id = ls_bs-booking_id booking_supplement_id = ls_bs-booking_supplement_id ) ) iv_no_delete_check = abap_true " No existence check required IMPORTING et_messages = et_messages ). ENDIF. IF et_messages IS INITIAL. ASSERT lines( lt_travel ) = 1. " Now do any derivations that require the whole business object (not only a single node), but which may in principle result in an error " The derivation may need the complete Business Object, i.e. including unchanged subnodes get_travel( EXPORTING iv_travel_id = lt_travel[ 1 ]-travel_id iv_include_buffer = abap_true iv_include_temp_buffer = abap_true IMPORTING es_travel = es_travel et_booking = et_booking et_booking_supplement = et_booking_supplement et_messages = et_messages ). ASSERT et_messages IS INITIAL. _determine( IMPORTING et_messages = et_messages CHANGING cs_travel = es_travel ct_booking = et_booking ct_booking_supplement = et_booking_supplement ). IF et_messages IS INITIAL. " We do not want to return all subnodes, but only those that have been created or changed. " So currently it is not implemented that a determination of a booking changes another booking as the other booking cannot be properly returned. LOOP AT et_booking ASSIGNING FIELD-SYMBOL(<s_booking>). LOOP AT it_bookingx TRANSPORTING NO FIELDS WHERE booking_id = <s_booking>-booking_id AND ( action_code = CONV /dmo/action_code19( /dmo/if_flight_legacy19=>action_code-create ) OR action_code = CONV /dmo/action_code19( /dmo/if_flight_legacy19=>action_code-update ) ). EXIT. ENDLOOP. IF sy-subrc <> 0. DELETE et_booking. ENDIF. ENDLOOP. LOOP AT et_booking_supplement ASSIGNING FIELD-SYMBOL(<s_booking_supplement>). LOOP AT it_booking_supplementx TRANSPORTING NO FIELDS WHERE booking_id = <s_booking_supplement>-booking_id AND booking_supplement_id = <s_booking_supplement>-booking_supplement_id AND ( action_code = CONV /dmo/action_code19( /dmo/if_flight_legacy19=>action_code-create ) OR action_code = CONV /dmo/action_code19( /dmo/if_flight_legacy19=>action_code-update ) ). EXIT. ENDLOOP. IF sy-subrc <> 0. DELETE et_booking_supplement. ENDIF. ENDLOOP. ENDIF. ENDIF. IF et_messages IS INITIAL. lcl_travel_buffer=>get_instance( )->cud_copy( ). lcl_booking_buffer=>get_instance( )->cud_copy( ). lcl_booking_supplement_buffer=>get_instance( )->cud_copy( ). ELSE. CLEAR: es_travel, et_booking, et_booking_supplement. lcl_travel_buffer=>get_instance( )->cud_disc( ). lcl_booking_buffer=>get_instance( )->cud_disc( ). lcl_booking_supplement_buffer=>get_instance( )->cud_disc( ). ENDIF. ENDMETHOD. METHOD _convert_currency. DATA(lv_exchange_rate_date) = cl_abap_context_info=>get_system_date( )." Do not buffer: Current date may change during lifetime of session /dmo/cl_flight_amdp19=>convert_currency( EXPORTING iv_amount = iv_amount iv_currency_code_source = iv_currency_code_source iv_currency_code_target = iv_currency_code_target iv_exchange_rate_date = lv_exchange_rate_date IMPORTING ev_amount = rv_amount ). ENDMETHOD. METHOD _determine. ASSERT cs_travel-travel_id IS NOT INITIAL. LOOP AT ct_booking TRANSPORTING NO FIELDS WHERE travel_id <> cs_travel-travel_id. EXIT. ENDLOOP. ASSERT sy-subrc = 4. LOOP AT ct_booking_supplement TRANSPORTING NO FIELDS WHERE travel_id <> cs_travel-travel_id. EXIT. ENDLOOP. ASSERT sy-subrc = 4. CLEAR et_messages. _determine_travel_total_price( CHANGING cs_travel = cs_travel ct_booking = ct_booking ct_booking_supplement = ct_booking_supplement ct_messages = et_messages ). ENDMETHOD. METHOD _determine_travel_total_price. DATA lv_add TYPE /dmo/total_price19. DATA(lv_currency_code_target) = cs_travel-currency_code. " If we do not have a Travel Currency Code yet, " we may derive it when all the subnodes have the same non-initial Currency Code IF lv_currency_code_target IS INITIAL. DATA lv_ok TYPE abap_bool. lv_ok = abap_true. LOOP AT ct_booking ASSIGNING FIELD-SYMBOL(<s_booking>). IF sy-tabix = 1. lv_currency_code_target = <s_booking>-currency_code. ENDIF. IF <s_booking>-currency_code IS INITIAL. lv_ok = abap_false. EXIT. ENDIF. IF lv_currency_code_target <> <s_booking>-currency_code. lv_ok = abap_false. EXIT. ENDIF. ENDLOOP. IF lv_ok = abap_true. LOOP AT ct_booking_supplement ASSIGNING FIELD-SYMBOL(<s_booking_supplement>). IF <s_booking_supplement>-currency_code IS INITIAL. lv_ok = abap_false. EXIT. ENDIF. IF lv_currency_code_target <> <s_booking_supplement>-currency_code. lv_ok = abap_false. EXIT. ENDIF. ENDLOOP. ENDIF. ENDIF. IF lv_currency_code_target IS NOT INITIAL. " Total Price = Booking Fee + Booking Flight Prices + Booking Supplement Prices cs_travel-total_price = cs_travel-booking_fee. cs_travel-currency_code = lv_currency_code_target. LOOP AT ct_booking ASSIGNING <s_booking> GROUP BY <s_booking>-currency_code INTO DATA(booking_currency_code). lv_add = REDUCE #( INIT sum = 0 FOR b IN GROUP booking_currency_code NEXT sum = sum + b-flight_price ). IF booking_currency_code <> lv_currency_code_target. lv_add = _convert_currency( iv_currency_code_source = booking_currency_code iv_currency_code_target = lv_currency_code_target iv_amount = lv_add ). ENDIF. cs_travel-total_price = cs_travel-total_price + lv_add. ENDLOOP. LOOP AT ct_booking_supplement ASSIGNING <s_booking_supplement> GROUP BY <s_booking_supplement>-currency_code INTO DATA(supplement_currency_code). lv_add = REDUCE #( INIT sum = 0 FOR s IN GROUP supplement_currency_code NEXT sum = sum + s-price ). IF supplement_currency_code <> lv_currency_code_target. lv_add = _convert_currency( iv_currency_code_source = supplement_currency_code iv_currency_code_target = lv_currency_code_target iv_amount = lv_add ). ENDIF. cs_travel-total_price = cs_travel-total_price + lv_add. ENDLOOP. lcl_travel_buffer=>get_instance( )->cud_prep( EXPORTING it_travel = VALUE #( ( travel_id = cs_travel-travel_id total_price = cs_travel-total_price currency_code = cs_travel-currency_code ) ) it_travelx = VALUE #( ( action_code = /dmo/if_flight_legacy19=>action_code-update travel_id = cs_travel-travel_id total_price = abap_true currency_code = abap_true ) ) IMPORTING et_messages = DATA(lt_messages) ). ASSERT lt_messages IS INITIAL. ENDIF. ENDMETHOD. METHOD _resolve_attribute. CLEAR rv_symsgv. CASE iv_attrname. WHEN ''. rv_symsgv = ''. WHEN 'MV_TRAVEL_ID'. rv_symsgv = |{ ix->mv_travel_id ALPHA = OUT }|. WHEN 'MV_BOOKING_ID'. rv_symsgv = |{ ix->mv_booking_id ALPHA = OUT }|. WHEN 'MV_BOOKING_SUPPLEMENT_ID'. rv_symsgv = |{ ix->mv_booking_supplement_id ALPHA = OUT }|. WHEN 'MV_AGENCY_ID'. rv_symsgv = |{ ix->mv_agency_id ALPHA = OUT }|. WHEN 'MV_CUSTOMER_ID'. rv_symsgv = |{ ix->mv_customer_id ALPHA = OUT }|. WHEN 'MV_CARRIER_ID'. rv_symsgv = |{ ix->mv_carrier_id ALPHA = OUT }|. WHEN 'MV_CONNECTION_ID'. rv_symsgv = |{ ix->mv_connection_id ALPHA = OUT }|. WHEN 'MV_SUPPLEMENT_ID'. rv_symsgv = ix->mv_supplement_id. WHEN 'MV_BEGIN_DATE'. rv_symsgv = |{ ix->mv_begin_date DATE = USER }|. WHEN 'MV_END_DATE'. rv_symsgv = |{ ix->mv_end_date DATE = USER }|. WHEN 'MV_BOOKING_DATE'. rv_symsgv = |{ ix->mv_booking_date DATE = USER }|. WHEN 'MV_FLIGHT_DATE'. rv_symsgv = |{ ix->mv_flight_date DATE = USER }|. WHEN 'MV_STATUS'. rv_symsgv = ix->mv_status. WHEN 'MV_CURRENCY_CODE'. rv_symsgv = ix->mv_currency_code. WHEN 'MV_UNAME'. rv_symsgv = ix->mv_uname. WHEN OTHERS. ASSERT 1 = 2. ENDCASE. ENDMETHOD. ENDCLASS.
[ 31631, 1220, 67, 5908, 14, 565, 62, 22560, 62, 1455, 1590, 1129, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 198, 220, 10188, 9864, 1847, 48167, 1677, 5258, 1220, 67, 5908, 14, 565, 62, 22560, 62, 7890, 62, 8612, 265, 62, 1129, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1129, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 12964, 5883, 1259, 62, 3803, 62, 14171, 19269, 18415, 11335, 1487, 62, 14171, 553, 7383, 8794, 389, 1760, 13869, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2251, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4296, 553, 5514, 7032, 326, 423, 587, 3421, 761, 284, 307, 10667, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 12964, 5883, 1259, 62, 3803, 62, 14171, 19269, 18415, 11335, 1487, 62, 14171, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 25, 651, 62, 39098, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 39098, 8, 41876, 4526, 37, 5390, 1220, 67, 5908, 14, 565, 62, 22560, 62, 1455, 1590, 1129, 13, 628, 220, 220, 220, 366, 220, 220, 2080, 2461, 284, 262, 976, 2446, 869, 286, 2251, 14, 19119, 14, 33678, 62, 35927, 3419, 356, 423, 1439, 393, 10528, 13, 198, 220, 220, 220, 366, 220, 220, 314, 13, 68, 13, 618, 530, 286, 262, 2974, 4909, 281, 4049, 11, 262, 1844, 869, 318, 6520, 13, 198, 220, 220, 220, 366, 220, 220, 2102, 11, 262, 11876, 318, 407, 12539, 287, 1339, 286, 281, 4049, 13, 198, 220, 220, 220, 366, 220, 220, 314, 13, 68, 13, 618, 262, 24955, 3382, 284, 923, 625, 11, 339, 2476, 284, 869, 20768, 1096, 3419, 11777, 13, 628, 220, 220, 220, 337, 36252, 50, 900, 62, 13376, 62, 1462, 62, 2070, 276, 30023, 9863, 2751, 21628, 62, 35927, 62, 312, 41876, 1220, 67, 5908, 14, 35927, 62, 312, 1129, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 2123, 62, 37348, 1095, 220, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1129, 14804, 926, 62, 361, 62, 83, 3064, 62, 20500, 13, 628, 220, 220, 220, 337, 36252, 50, 2251, 62, 35927, 30023, 9863, 2751, 318, 62, 35927, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1129, 14804, 912, 62, 35927, 62, 259, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 2070, 278, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1129, 14804, 926, 62, 2070, 278, 62, 259, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 2070, 278, 62, 18608, 1732, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1129, 14804, 926, 62, 2070, 278, 62, 18608, 1732, 62, 259, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 1658, 62, 35927, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 35927, 1129, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2123, 62, 2070, 278, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1129, 14804, 926, 62, 2070, 278, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2123, 62, 2070, 278, 62, 18608, 1732, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1129, 14804, 926, 62, 2070, 278, 62, 18608, 1732, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2123, 62, 37348, 1095, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1129, 14804, 926, 62, 361, 62, 83, 3064, 62, 20500, 13, 198, 220, 220, 220, 337, 36252, 50, 4296, 62, 35927, 30023, 9863, 2751, 318, 62, 35927, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1129, 14804, 912, 62, 35927, 62, 259, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 35927, 87, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1129, 14804, 912, 62, 35927, 62, 28413, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 2070, 278, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
"! API for Initializing the Transactional Buffer of the Travel API "! FUNCTION /DMO/FLIGHT_TRAVEL_INITIALI_00. *"---------------------------------------------------------------------- *"*"Local Interface: *"---------------------------------------------------------------------- /dmo/cl_flight_legacy00=>get_instance( )->initialize( ). ENDFUNCTION.
[ 40484, 7824, 329, 20768, 2890, 262, 3602, 529, 1538, 47017, 286, 262, 13524, 7824, 198, 40484, 198, 42296, 4177, 2849, 1220, 35, 11770, 14, 3697, 9947, 62, 51, 3861, 18697, 62, 1268, 2043, 12576, 40, 62, 405, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 14565, 26491, 25, 198, 9, 1, 10097, 23031, 198, 220, 1220, 67, 5908, 14, 565, 62, 22560, 62, 1455, 1590, 405, 14804, 1136, 62, 39098, 7, 1267, 3784, 36733, 1096, 7, 6739, 198, 1677, 8068, 4944, 4177, 2849, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS /hec1/cl_bopf_config_assoc DEFINITION PUBLIC INHERITING FROM /bobf/cl_lib_c_superclass FINAL CREATE PUBLIC GLOBAL FRIENDS /bobf/if_frw_association . PUBLIC SECTION. METHODS /bobf/if_frw_association~create REDEFINITION . METHODS /bobf/if_frw_association~resolve REDEFINITION . PROTECTED SECTION. private section. methods RESOLVE_APP_DEF_MASTER_NODE importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_ROOT_DATACENTER importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_APP_DEF_MASTER_NODE_PC importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_APP_DEF_MASTER_NODE_SA importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_APP_NODE_TIER importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_APP_SERVER_TIER importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_APP_SPC_SOLUTION importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_DB_SERVER_TIER importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_DB_NODE_SERVER_INST importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_APP_SPC_TIER importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_DB_NODE_TIER importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_APP_STANDBY_NODE importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_APP_STANDBY_NODE_PC importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_APP_STANDBY_NODE_SA importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_APP_SERVER_APP_QTY importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_APP_STORAGE_APP_QTY importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_APP_STORAGE_APP_SPC importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_DB_STORAGE_DB_QTY importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_DB_DEF_MASTER_NODE importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_DB_DEF_MASTER_NODE_PC importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_DB_DEF_MASTER_NODE_SA importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_DB_NONE_MASTER_NODE importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_DB_NONE_MASTER_NODE_PC importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . methods RESOLVE_DB_NONE_MASTER_NODE_SA importing !IS_CTX type /BOBF/S_FRW_CTX_ASSOC !IT_KEY type /BOBF/T_FRW_KEY !IO_READ type ref to /BOBF/IF_FRW_READ !IS_PARAMETERS type ref to DATA optional !IT_FILTERED_ATTRIBUTES type /BOBF/T_FRW_NAME optional !IV_INVALIDATE_CACHE type BOOLE_D default ABAP_FALSE exporting !ET_KEY_LINK type /BOBF/T_FRW_KEY_LINK !ET_FAILED_KEY type /BOBF/T_FRW_KEY !EO_MESSAGE type ref to /BOBF/IF_FRW_MESSAGE raising /BOBF/CX_FRW . ENDCLASS. CLASS /HEC1/CL_BOPF_CONFIG_ASSOC IMPLEMENTATION. METHOD /bobf/if_frw_association~create. "#EC NEEDED **TRY. *CALL METHOD SUPER->/BOBF/IF_FRW_ASSOCIATION~CREATE * EXPORTING * IS_CTX = * IT_MODIFICATION = * IO_READ = * IO_MODIFY = ** IMPORTING ** eo_message = * . ** CATCH /bobf/cx_frw. **ENDTRY. ENDMETHOD. METHOD /bobf/if_frw_association~resolve. CLEAR: et_key_link, et_failed_key, eo_message. TRY. CASE is_ctx-assoc_key. " ---------------------------------- " Resolve association from root " to data center " ---------------------------------- WHEN /hec1/if_configuration_c=>sc_association-root-to_datacenter. me->resolve_root_datacenter( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read is_parameters = is_parameters it_filtered_attributes = it_filtered_attributes iv_invalidate_cache = abap_false IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key eo_message = eo_message ). " ---------------------------------- " Resolve association from DB node " to DB default master node " ---------------------------------- WHEN /hec1/if_configuration_c=>sc_association-db_node-to_def_master_node. me->resolve_db_def_master_node( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read is_parameters = is_parameters it_filtered_attributes = it_filtered_attributes iv_invalidate_cache = abap_false IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key eo_message = eo_message ). " ---------------------------------- " Resolve association from DB " server performance category to " default master node " ---------------------------------- WHEN /hec1/if_configuration_c=>sc_association-db_server_perform_cat-to_def_master_node. me->resolve_db_def_master_node_pc( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read is_parameters = is_parameters it_filtered_attributes = it_filtered_attributes iv_invalidate_cache = abap_false IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key eo_message = eo_message ). " ---------------------------------- " Resolve association from DB node " to tier node " ---------------------------------- WHEN /hec1/if_configuration_c=>sc_association-db_node-to_tier. me->resolve_db_node_tier( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read is_parameters = is_parameters it_filtered_attributes = it_filtered_attributes iv_invalidate_cache = abap_false IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key eo_message = eo_message ). " ---------------------------------- " Resolve association from DB " storage amount to default master " node " ---------------------------------- WHEN /hec1/if_configuration_c=>sc_association-db_storage_amount-to_def_master_node. me->resolve_db_def_master_node_sa( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read is_parameters = is_parameters it_filtered_attributes = it_filtered_attributes iv_invalidate_cache = abap_false IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key eo_message = eo_message ). " ---------------------------------- " Resolve association from DB node " to DB standby/worker node " ---------------------------------- WHEN /hec1/if_configuration_c=>sc_association-db_node-to_none_master_node. me->resolve_db_none_master_node( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read is_parameters = is_parameters it_filtered_attributes = it_filtered_attributes iv_invalidate_cache = abap_false IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key eo_message = eo_message ). " ---------------------------------- " Resolve association from DB " server performance category to " standby/worker node " ---------------------------------- WHEN /hec1/if_configuration_c=>sc_association-db_server_perform_cat-to_none_master_node. me->resolve_db_none_master_node_pc( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read is_parameters = is_parameters it_filtered_attributes = it_filtered_attributes iv_invalidate_cache = abap_false IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key eo_message = eo_message ). " ---------------------------------- " Resolve association from DB " storage amount to standby/worker " node " ---------------------------------- WHEN /hec1/if_configuration_c=>sc_association-db_storage_amount-to_none_master_node. me->resolve_db_none_master_node_sa( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read is_parameters = is_parameters it_filtered_attributes = it_filtered_attributes iv_invalidate_cache = abap_false IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key eo_message = eo_message ). " ---------------------------------- " Resolve association from app node " to tier node " ---------------------------------- WHEN /hec1/if_configuration_c=>sc_association-app_node-to_tier. me->resolve_app_node_tier( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read is_parameters = is_parameters it_filtered_attributes = it_filtered_attributes iv_invalidate_cache = abap_false IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key eo_message = eo_message ). " ---------------------------------- " Resolve association from app node " to app default master node " ---------------------------------- WHEN /hec1/if_configuration_c=>sc_association-app_node-def_master_node. me->resolve_app_def_master_node( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read is_parameters = is_parameters it_filtered_attributes = it_filtered_attributes iv_invalidate_cache = abap_false IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key eo_message = eo_message ). " ---------------------------------- " Resolve association from app " server performance category to " default master node " ---------------------------------- WHEN /hec1/if_configuration_c=>sc_association-app_server_perform_cat-to_def_master_node. me->resolve_app_def_master_node_pc( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read is_parameters = is_parameters it_filtered_attributes = it_filtered_attributes iv_invalidate_cache = abap_false IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key eo_message = eo_message ). " ---------------------------------- " Resolve association from app " storage amount to default master " node " ---------------------------------- WHEN /hec1/if_configuration_c=>sc_association-app_storage_amount-to_def_master_node. me->resolve_app_def_master_node_sa( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read is_parameters = is_parameters it_filtered_attributes = it_filtered_attributes iv_invalidate_cache = abap_false IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key eo_message = eo_message ). " ---------------------------------- " Resolve association from app node " to app standby node " ---------------------------------- WHEN /hec1/if_configuration_c=>sc_association-app_node-to_standby_node. me->resolve_app_standby_node( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read is_parameters = is_parameters it_filtered_attributes = it_filtered_attributes iv_invalidate_cache = abap_false IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key eo_message = eo_message ). " ---------------------------------- " Resolve association from app " server performance category to " tier node " ---------------------------------- WHEN /hec1/if_configuration_c=>sc_association-app_server_perform_cat-to_tier. me->resolve_app_spc_tier( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read is_parameters = is_parameters it_filtered_attributes = it_filtered_attributes iv_invalidate_cache = abap_false IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key eo_message = eo_message ). " ---------------------------------- " Resolve association from app " server performance category to " solution node " ---------------------------------- WHEN /hec1/if_configuration_c=>sc_association-app_server_perform_cat-to_solution. me->resolve_app_spc_solution( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read is_parameters = is_parameters it_filtered_attributes = it_filtered_attributes iv_invalidate_cache = abap_false IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key eo_message = eo_message ). " ---------------------------------- " Resolve association from app " server performance category to " standby node " ---------------------------------- WHEN /hec1/if_configuration_c=>sc_association-app_server_perform_cat-to_standby_node. me->resolve_app_standby_node_pc( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read is_parameters = is_parameters it_filtered_attributes = it_filtered_attributes iv_invalidate_cache = abap_false IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key eo_message = eo_message ). " ---------------------------------- " Resolve association from app " storage amount to standby node " ---------------------------------- WHEN /hec1/if_configuration_c=>sc_association-app_storage_amount-to_standby_node. me->resolve_app_standby_node_sa( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read is_parameters = is_parameters it_filtered_attributes = it_filtered_attributes iv_invalidate_cache = abap_false IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key eo_message = eo_message ). " ---------------------------------- " Resolve association from app " storage to app server performance " category " ---------------------------------- WHEN /hec1/if_configuration_c=>sc_association-app_storage-to_app_serv_perf_cat. me->resolve_app_storage_app_spc( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read is_parameters = is_parameters it_filtered_attributes = it_filtered_attributes iv_invalidate_cache = abap_false IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key eo_message = eo_message ). " ---------------------------------- " Resolve association from app " server to app storage amount " ---------------------------------- WHEN /hec1/if_configuration_c=>sc_association-app_server-to_app_storage_amount. me->resolve_app_server_app_qty( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read is_parameters = is_parameters it_filtered_attributes = it_filtered_attributes iv_invalidate_cache = abap_false IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key eo_message = eo_message ). " ---------------------------------- " Resolve association from app " storage to app storage amount " ---------------------------------- WHEN /hec1/if_configuration_c=>sc_association-app_storage-to_app_storage_amount. me->resolve_app_storage_app_qty( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read is_parameters = is_parameters it_filtered_attributes = it_filtered_attributes iv_invalidate_cache = abap_false IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key eo_message = eo_message ). ENDCASE. CATCH /bobf/cx_frw. ENDTRY. ENDMETHOD. METHOD resolve_app_def_master_node_sa. DATA: lt_app_node TYPE /hec1/t_data_app_node_ct, lr_app_node TYPE REF TO /hec1/s_data_app_node_cs. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get app server performance " category instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_storage_amount-to_parent IMPORTING et_target_key = DATA(lt_key) ). " ********************************** " Get app server node " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_server_perform_cat it_key = lt_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_server_perform_cat-to_parent IMPORTING et_target_key = DATA(lt_app_node_key) ). " ********************************** " Get app server instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_node it_key = lt_app_node_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_node-to_parent IMPORTING et_target_key = DATA(lt_app_serv_inst_key) ). " ********************************** " Get app node instanc " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_server_instance it_key = lt_app_serv_inst_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-app_server_instance-app_node IMPORTING et_data = lt_app_node ). " Get default master node LOOP AT lt_app_node REFERENCE INTO lr_app_node WHERE hec_app_clust_node_type_value = /hec1/if_config_constants=>gc_app_clust_node_type-master AND hec_master_default = abap_true. INSERT VALUE #( source_key = lr_app_node->parent_key target_key = lr_app_node->key ) INTO TABLE et_key_link. ENDLOOP. " No key link found, error message has to be set... IF et_key_link IS INITIAL. ENDIF. ENDMETHOD. METHOD resolve_db_def_master_node. DATA: lt_db_node TYPE /hec1/t_data_db_node_ct, lr_db_node TYPE REF TO /hec1/s_data_db_node_cs. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get DB instance DB " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_node-to_parent IMPORTING et_target_key = DATA(lt_key) ). " ********************************** " Get all DB nodes " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-instance_db it_key = lt_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-instance_db-db_node IMPORTING et_data = lt_db_node ). " Get default Master node LOOP AT lt_db_node REFERENCE INTO lr_db_node WHERE hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND hec_master_default = abap_true. INSERT VALUE #( source_key = lr_db_node->parent_key target_key = lr_db_node->key ) INTO TABLE et_key_link. ENDLOOP. " No key link found, error message has to be set... IF et_key_link IS INITIAL. ENDIF. ENDMETHOD. METHOD resolve_app_standby_node_pc. DATA: lt_app_node TYPE /hec1/t_data_app_node_ct, lr_app_node TYPE REF TO /hec1/s_data_app_node_cs. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get app node instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_server_perform_cat-to_parent IMPORTING et_target_key = DATA(lt_key) ). " ********************************** " Get app server instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_node it_key = lt_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_node-to_parent IMPORTING et_target_key = DATA(lt_app_serv_inst_key) ). " ********************************** " Get all app node instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_server_instance it_key = lt_app_serv_inst_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-app_server_instance-app_node IMPORTING et_data = lt_app_node ). " Get standby node LOOP AT lt_app_node REFERENCE INTO lr_app_node WHERE hec_app_clust_node_type_value = /hec1/if_config_constants=>gc_app_clust_node_type-standby. INSERT VALUE #( source_key = lr_app_node->parent_key target_key = lr_app_node->key ) INTO TABLE et_key_link. ENDLOOP. " No key link found, error message has to be set... IF et_key_link IS INITIAL. ENDIF. ENDMETHOD. METHOD resolve_app_storage_app_qty. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get app server " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_storage-to_parent IMPORTING et_target_key = DATA(lt_key) et_failed_key = et_failed_key ). IF et_failed_key IS NOT INITIAL. "ToDo merror message RETURN. " >>>>>>> ENDIF. " ********************************** " Get app server performance cat. " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_server it_key = lt_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_server-to_parent IMPORTING et_target_key = DATA(lt_serv_perf_cat_key) et_failed_key = et_failed_key ). " No key link found, error message has to be set... IF et_failed_key IS NOT INITIAL. "ToDo merror message ENDIF. " ********************************** " Get app server storage amount " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_server_perform_cat it_key = lt_serv_perf_cat_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_server_perform_cat-app_storage_amount IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key ). ENDMETHOD. METHOD resolve_app_spc_tier. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get app node " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_server_perform_cat-to_parent IMPORTING et_target_key = DATA(lt_key) et_key_link = DATA(lt_key_link) et_failed_key = et_failed_key ). " ********************************** " Get app server instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_node it_key = lt_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_node-to_parent IMPORTING et_target_key = DATA(lt_key_apsi) et_key_link = DATA(lt_key_link_apsi) et_failed_key = et_failed_key ). IF et_failed_key IS NOT INITIAL. "ToDo merror message RETURN. " >>>>>>> ENDIF. " ********************************** " Get tier " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_server_instance it_key = lt_key_apsi iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_server_instance-to_parent IMPORTING et_key_link = DATA(lt_key_link_tier) et_failed_key = et_failed_key ). " No key link found, error message has to be set... IF et_failed_key IS NOT INITIAL. "ToDo merror message ENDIF. LOOP AT lt_key_link ASSIGNING FIELD-SYMBOL(<fs_key_link>). TRY. INSERT VALUE #( source_key = <fs_key_link>-source_key target_key = lt_key_link_tier[ source_key = lt_key_link_apsi[ source_key = <fs_key_link>-target_key ]-target_key ]-target_key ) INTO TABLE et_key_link. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDLOOP. ENDMETHOD. METHOD resolve_app_def_master_node_pc. DATA: lt_app_node TYPE /hec1/t_data_app_node_ct, lr_app_node TYPE REF TO /hec1/s_data_app_node_cs. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get app node instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_server_perform_cat-to_parent IMPORTING et_target_key = DATA(lt_key) ). " ********************************** " Get app server instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_node it_key = lt_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_node-to_parent IMPORTING et_target_key = DATA(lt_app_serv_inst_key) ). " ********************************** " Get all app node instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_server_instance it_key = lt_app_serv_inst_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-app_server_instance-app_node IMPORTING et_data = lt_app_node ). " Get default master node LOOP AT lt_app_node REFERENCE INTO lr_app_node WHERE hec_app_clust_node_type_value = /hec1/if_config_constants=>gc_app_clust_node_type-master AND hec_master_default = abap_true. INSERT VALUE #( source_key = lr_app_node->parent_key target_key = lr_app_node->key ) INTO TABLE et_key_link. ENDLOOP. " No key link found, error message has to be set... IF et_key_link IS INITIAL. ENDIF. ENDMETHOD. METHOD resolve_app_standby_node_sa. DATA: lt_app_node TYPE /hec1/t_data_app_node_ct, lr_app_node TYPE REF TO /hec1/s_data_app_node_cs. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get app server performance " category instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_storage_amount-to_parent IMPORTING et_target_key = DATA(lt_key) ). " ********************************** " Get app node instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_server_perform_cat it_key = lt_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_server_perform_cat-to_parent IMPORTING et_target_key = DATA(lt_app_node_key) ). " ********************************** " Get app server instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_node it_key = lt_app_node_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_node-to_parent IMPORTING et_target_key = DATA(lt_app_serv_inst_key) ). " ********************************** " Get all app node instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_server_instance it_key = lt_app_serv_inst_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-app_server_instance-app_node IMPORTING et_data = lt_app_node ). " Get standby node LOOP AT lt_app_node REFERENCE INTO lr_app_node WHERE hec_app_clust_node_type_value = /hec1/if_config_constants=>gc_app_clust_node_type-standby. INSERT VALUE #( source_key = lr_app_node->parent_key target_key = lr_app_node->key ) INTO TABLE et_key_link. ENDLOOP. " No key link found, error message has to be set... IF et_key_link IS INITIAL. ENDIF. ENDMETHOD. METHOD resolve_app_standby_node. DATA: lt_app_node TYPE /hec1/t_data_app_node_ct, lr_app_node TYPE REF TO /hec1/s_data_app_node_cs. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get app server instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_node-to_parent IMPORTING et_target_key = DATA(lt_key) ). " ********************************** " Get all app nodes " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_server_instance it_key = lt_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-app_server_instance-app_node IMPORTING et_data = lt_app_node ). " Get Standby node LOOP AT lt_app_node REFERENCE INTO lr_app_node WHERE hec_app_clust_node_type_value = /hec1/if_config_constants=>gc_app_clust_node_type-standby. INSERT VALUE #( source_key = lr_app_node->parent_key target_key = lr_app_node->key ) INTO TABLE et_key_link. ENDLOOP. " No key link found, error message has to be set... IF et_key_link IS INITIAL. ENDIF. ENDMETHOD. METHOD resolve_db_node_tier. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get instance DB " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_node-to_parent IMPORTING et_target_key = DATA(lt_key) et_failed_key = et_failed_key ). IF et_failed_key IS NOT INITIAL. "ToDo merror message RETURN. " >>>>>>> ENDIF. " ********************************** " Get DB server instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-instance_db it_key = lt_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-instance_db-to_parent IMPORTING et_target_key = DATA(lt_db_serv_inst_key) et_failed_key = et_failed_key ). IF et_failed_key IS NOT INITIAL. "ToDo merror message RETURN. " >>>>>>> ENDIF. " ********************************** " Get tier " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_server_instance it_key = lt_db_serv_inst_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_server_instance-to_parent IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key ). " No key link found, error message has to be set... IF et_failed_key IS NOT INITIAL. "ToDo merror message ENDIF. ENDMETHOD. METHOD resolve_app_server_app_qty. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get app server performance cat. " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_server-to_parent IMPORTING et_target_key = DATA(lt_key) et_failed_key = et_failed_key ). " No key link found, error message has to be set... IF et_failed_key IS NOT INITIAL. "ToDo merror message ENDIF. " ********************************** " Get app server storage amount " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_server_perform_cat it_key = lt_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_server_perform_cat-app_storage_amount IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key ). ENDMETHOD. METHOD resolve_db_def_master_node_pc. DATA: lt_db_node TYPE /hec1/t_data_db_node_ct, lr_db_node TYPE REF TO /hec1/s_data_db_node_cs. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get DB node instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-to_parent IMPORTING et_target_key = DATA(lt_key) ). " ********************************** " Get instance DB " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_node it_key = lt_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_node-to_parent IMPORTING et_target_key = DATA(lt_instance_db_key) ). " ********************************** " Get all DB node instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-instance_db it_key = lt_instance_db_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-instance_db-db_node IMPORTING et_data = lt_db_node ). " Get default master node LOOP AT lt_db_node REFERENCE INTO lr_db_node WHERE hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND hec_master_default = abap_true. INSERT VALUE #( source_key = lr_db_node->parent_key target_key = lr_db_node->key ) INTO TABLE et_key_link. ENDLOOP. " No key link found, error message has to be set... IF et_key_link IS INITIAL. ENDIF. ENDMETHOD. METHOD resolve_db_def_master_node_sa. DATA: lt_db_node TYPE /hec1/t_data_db_node_ct, lr_db_node TYPE REF TO /hec1/s_data_db_node_cs. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get DB server performance " category instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_storage_amount-to_parent IMPORTING et_target_key = DATA(lt_key) ). " ********************************** " Get DB server node " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_server_perform_cat it_key = lt_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-to_parent IMPORTING et_target_key = DATA(lt_db_node_key) ). " ********************************** " Get instance DB " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_node it_key = lt_db_node_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_node-to_parent IMPORTING et_target_key = DATA(lt_instance_db_key) ). " ********************************** " Get DB node instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-instance_db it_key = lt_instance_db_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-instance_db-db_node IMPORTING et_data = lt_db_node ). " Get default master node LOOP AT lt_db_node REFERENCE INTO lr_db_node WHERE hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND hec_master_default = abap_true. INSERT VALUE #( source_key = lr_db_node->parent_key target_key = lr_db_node->key ) INTO TABLE et_key_link. ENDLOOP. " No key link found, error message has to be set... IF et_key_link IS INITIAL. ENDIF. ENDMETHOD. METHOD resolve_db_none_master_node. DATA: lt_db_node TYPE /hec1/t_data_db_node_ct, lr_db_node TYPE REF TO /hec1/s_data_db_node_cs. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get instance DB " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_node-to_parent IMPORTING et_target_key = DATA(lt_key) ). " ********************************** " Get all DB nodes " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-instance_db it_key = lt_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-instance_db-db_node IMPORTING et_data = lt_db_node ). " Get standby/worker node LOOP AT lt_db_node REFERENCE INTO lr_db_node WHERE hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-standby OR hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-worker. INSERT VALUE #( source_key = lr_db_node->parent_key target_key = lr_db_node->key ) INTO TABLE et_key_link. ENDLOOP. " No key link found, error message has to be set... IF et_key_link IS INITIAL. ENDIF. ENDMETHOD. METHOD resolve_app_spc_solution. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get app node " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_server_perform_cat-to_parent IMPORTING et_target_key = DATA(lt_key) et_key_link = DATA(lt_key_link) et_failed_key = et_failed_key ). " ********************************** " Get app server instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_node it_key = lt_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_node-to_parent IMPORTING et_target_key = DATA(lt_key_apsi) et_key_link = DATA(lt_key_link_apsi) et_failed_key = et_failed_key ). IF et_failed_key IS NOT INITIAL. "ToDo merror message RETURN. " >>>>>>> ENDIF. " ********************************** " Get tier " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_server_instance it_key = lt_key_apsi iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_server_instance-to_parent IMPORTING et_target_key = DATA(lt_key_tier) et_key_link = DATA(lt_key_link_tier) et_failed_key = et_failed_key ). " ********************************** " Get solution " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-tier it_key = lt_key_tier iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-tier-to_parent IMPORTING et_key_link = DATA(lt_key_link_solution) et_failed_key = et_failed_key ). " No key link found, error message has to be set... IF et_failed_key IS NOT INITIAL. "ToDo merror message ENDIF. LOOP AT lt_key_link ASSIGNING FIELD-SYMBOL(<fs_key_link>). TRY. INSERT VALUE #( source_key = <fs_key_link>-source_key target_key = lt_key_link_solution[ source_key = lt_key_link_tier[ source_key = lt_key_link_apsi[ source_key = <fs_key_link>-target_key ]-target_key ]-target_key ]-target_key ) INTO TABLE et_key_link. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDLOOP. ENDMETHOD. METHOD resolve_db_none_master_node_pc. DATA: lt_db_node TYPE /hec1/t_data_db_node_ct, lr_db_node TYPE REF TO /hec1/s_data_db_node_cs. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get DB node instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-to_parent IMPORTING et_target_key = DATA(lt_key) ). " ********************************** " Get instance DB " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_node it_key = lt_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_node-to_parent IMPORTING et_target_key = DATA(lt_instance_db_key) ). " ********************************** " Get all DB node instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-instance_db it_key = lt_instance_db_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-instance_db-db_node IMPORTING et_data = lt_db_node ). " Get standby/worker node LOOP AT lt_db_node REFERENCE INTO lr_db_node WHERE hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-standby OR hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-worker. INSERT VALUE #( source_key = lr_db_node->parent_key target_key = lr_db_node->key ) INTO TABLE et_key_link. ENDLOOP. " No key link found, error message has to be set... IF et_key_link IS INITIAL. ENDIF. ENDMETHOD. METHOD resolve_app_node_tier. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get app server instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_node-to_parent IMPORTING et_target_key = DATA(lt_key) et_failed_key = et_failed_key ). IF et_failed_key IS NOT INITIAL. "ToDo merror message RETURN. " >>>>>>> ENDIF. " ********************************** " Get tier " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_server_instance it_key = lt_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_server_instance-to_parent IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key ). " No key link found, error message has to be set... IF et_failed_key IS NOT INITIAL. "ToDo merror message ENDIF. ENDMETHOD. METHOD resolve_app_storage_app_spc. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get app server " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_storage-to_parent IMPORTING et_target_key = DATA(lt_key) et_failed_key = et_failed_key ). IF et_failed_key IS NOT INITIAL. "ToDo merror message RETURN. " >>>>>>> ENDIF. " ********************************** " Get app server performance cat. " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_server it_key = lt_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_server-to_parent IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key ). " No key link found, error message has to be set... IF et_failed_key IS NOT INITIAL. "ToDo merror message ENDIF. ENDMETHOD. METHOD resolve_app_server_tier. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get app server perf. category " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_server-to_parent IMPORTING et_target_key = DATA(lt_key) et_key_link = DATA(lt_key_link) et_failed_key = et_failed_key ). " ********************************** " Get app node " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_server_perform_cat it_key = lt_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_server_perform_cat-to_parent IMPORTING et_target_key = DATA(lt_key_node) et_key_link = DATA(lt_key_link_node) et_failed_key = et_failed_key ). " ********************************** " Get app server instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_node it_key = lt_key_node iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_node-to_parent IMPORTING et_target_key = DATA(lt_key_apsi) et_key_link = DATA(lt_key_link_apsi) et_failed_key = et_failed_key ). IF et_failed_key IS NOT INITIAL. "ToDo merror message RETURN. " >>>>>>> ENDIF. " ********************************** " Get tier " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_server_instance it_key = lt_key_apsi iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_server_instance-to_parent IMPORTING et_target_key = DATA(lt_key_tier) et_key_link = DATA(lt_key_link_tier) et_failed_key = et_failed_key ). " No key link found, error message has to be set... IF et_failed_key IS NOT INITIAL. "ToDo merror message ENDIF. LOOP AT lt_key_link ASSIGNING FIELD-SYMBOL(<fs_key_link>). TRY. INSERT VALUE #( source_key = <fs_key_link>-source_key target_key = lt_key_link_tier[ source_key = lt_key_link_apsi[ source_key = lt_key_link_node[ source_key = <fs_key_link>-target_key ]-target_key ]-target_key ]-target_key ) INTO TABLE et_key_link. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDLOOP. ENDMETHOD. METHOD resolve_app_def_master_node. DATA: lt_app_node TYPE /hec1/t_data_app_node_ct, lr_app_node TYPE REF TO /hec1/s_data_app_node_cs. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get app server instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_node-to_parent IMPORTING et_target_key = DATA(lt_key) ). " ********************************** " Get all app nodes " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_server_instance it_key = lt_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-app_server_instance-app_node IMPORTING et_data = lt_app_node ). " Get default master node LOOP AT lt_app_node REFERENCE INTO lr_app_node WHERE hec_app_clust_node_type_value = /hec1/if_config_constants=>gc_app_clust_node_type-master AND hec_master_default = abap_true. INSERT VALUE #( source_key = lr_app_node->parent_key target_key = lr_app_node->key ) INTO TABLE et_key_link. ENDLOOP. " No key link found, error message has to be set... IF et_key_link IS INITIAL. ENDIF. ENDMETHOD. METHOD resolve_db_node_server_inst. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get instance DB " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_node-to_parent IMPORTING et_target_key = DATA(lt_key) et_key_link = DATA(lt_key_link) et_failed_key = et_failed_key ). " ********************************** " Get DB server instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-instance_db it_key = lt_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-instance_db-to_parent IMPORTING et_target_key = DATA(lt_key_dbsi) et_key_link = DATA(lt_key_link_dbsi) et_failed_key = et_failed_key ). IF et_failed_key IS NOT INITIAL. "ToDo merror message RETURN. " >>>>>>> ENDIF. " No key link found, error message has to be set... IF et_failed_key IS NOT INITIAL. "ToDo merror message ENDIF. LOOP AT lt_key_link ASSIGNING FIELD-SYMBOL(<fs_key_link>). TRY. INSERT VALUE #( source_key = <fs_key_link>-source_key target_key = lt_key_link_dbsi[ source_key = <fs_key_link>-target_key ]-target_key ) INTO TABLE et_key_link. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDLOOP. ENDMETHOD. METHOD resolve_db_none_master_node_sa. DATA: lt_db_node TYPE /hec1/t_data_db_node_ct, lr_db_node TYPE REF TO /hec1/s_data_db_node_cs. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get DB server performance " category instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_storage_amount-to_parent IMPORTING et_target_key = DATA(lt_key) ). " ********************************** " Get DB node instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_server_perform_cat it_key = lt_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-to_parent IMPORTING et_target_key = DATA(lt_db_node_key) ). " ********************************** " Get instance DB " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_node it_key = lt_db_node_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_node-to_parent IMPORTING et_target_key = DATA(lt_instance_db_key) ). " ********************************** " Get all DB node instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-instance_db it_key = lt_instance_db_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-instance_db-db_node IMPORTING et_data = lt_db_node ). " Get standby/worker node LOOP AT lt_db_node REFERENCE INTO lr_db_node WHERE hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-standby OR hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-worker. INSERT VALUE #( source_key = lr_db_node->parent_key target_key = lr_db_node->key ) INTO TABLE et_key_link. ENDLOOP. " No key link found, error message has to be set... IF et_key_link IS INITIAL. ENDIF. ENDMETHOD. METHOD resolve_db_server_tier. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get DB server perf. category " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_server-to_parent IMPORTING et_target_key = DATA(lt_key) et_key_link = DATA(lt_key_link) et_failed_key = et_failed_key ). " ********************************** " Get DB node " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_server_perform_cat it_key = lt_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_server_perform_cat-to_parent IMPORTING et_target_key = DATA(lt_key_node) et_key_link = DATA(lt_key_link_node) et_failed_key = et_failed_key ). " ********************************** " Get instance DB " ********************************** " ********************************** " Get DB server instance " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_node it_key = lt_key_node iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_node-to_parent IMPORTING et_target_key = DATA(lt_key_apsi) et_key_link = DATA(lt_key_link_apsi) et_failed_key = et_failed_key ). IF et_failed_key IS NOT INITIAL. "ToDo merror message RETURN. " >>>>>>> ENDIF. " ********************************** " Get tier " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_server_instance it_key = lt_key_apsi iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-app_server_instance-to_parent IMPORTING et_target_key = DATA(lt_key_tier) et_key_link = DATA(lt_key_link_tier) et_failed_key = et_failed_key ). " No key link found, error message has to be set... IF et_failed_key IS NOT INITIAL. "ToDo merror message ENDIF. LOOP AT lt_key_link ASSIGNING FIELD-SYMBOL(<fs_key_link>). TRY. INSERT VALUE #( source_key = <fs_key_link>-source_key target_key = lt_key_link_tier[ source_key = lt_key_link_apsi[ source_key = lt_key_link_node[ source_key = <fs_key_link>-target_key ]-target_key ]-target_key ]-target_key ) INTO TABLE et_key_link. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDLOOP. ENDMETHOD. METHOD resolve_db_storage_db_qty. CLEAR: et_key_link, et_failed_key, eo_message. " ********************************** " Get DB server performance cat. " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_server-to_parent IMPORTING et_target_key = DATA(lt_key) et_failed_key = et_failed_key ). IF et_failed_key IS NOT INITIAL. "ToDo merror message RETURN. " >>>>>>> ENDIF. " ********************************** " Get app server storage amount " ********************************** io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-app_server_perform_cat it_key = lt_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-db_storage_amount IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key ). ENDMETHOD. METHOD resolve_root_datacenter. CLEAR: et_key_link, et_failed_key, eo_message. " ---------------------------------- " Get delivery unit " ---------------------------------- io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-root-delivery_unit IMPORTING et_target_key = DATA(lt_key) ). " ---------------------------------- " Get all data center " ---------------------------------- io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-delivery_unit it_key = lt_key iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-delivery_unit-datacenter IMPORTING et_key_link = et_key_link et_failed_key = et_failed_key ). ENDMETHOD. ENDCLASS.
[ 31631, 1220, 258, 66, 16, 14, 565, 62, 65, 404, 69, 62, 11250, 62, 562, 420, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1220, 65, 672, 69, 14, 565, 62, 8019, 62, 66, 62, 16668, 4871, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 628, 220, 10188, 9864, 1847, 48167, 1677, 5258, 1220, 65, 672, 69, 14, 361, 62, 8310, 86, 62, 562, 41003, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 1220, 65, 672, 69, 14, 361, 62, 8310, 86, 62, 562, 41003, 93, 17953, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 1220, 65, 672, 69, 14, 361, 62, 8310, 86, 62, 562, 41003, 93, 411, 6442, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 19734, 2665, 13, 628, 220, 5050, 15731, 3535, 6089, 62, 24805, 62, 32988, 62, 31180, 5781, 62, 45, 16820, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 1797, 62, 4177, 55, 2099, 1220, 8202, 29499, 14, 50, 62, 10913, 54, 62, 4177, 55, 62, 10705, 4503, 198, 220, 220, 220, 220, 220, 5145, 2043, 62, 20373, 2099, 1220, 8202, 29499, 14, 51, 62, 10913, 54, 62, 20373, 198, 220, 220, 220, 220, 220, 5145, 9399, 62, 15675, 2099, 1006, 284, 1220, 8202, 29499, 14, 5064, 62, 10913, 54, 62, 15675, 198, 220, 220, 220, 220, 220, 5145, 1797, 62, 27082, 2390, 2767, 4877, 2099, 1006, 284, 42865, 11902, 198, 220, 220, 220, 220, 220, 5145, 2043, 62, 46700, 5781, 1961, 62, 1404, 5446, 9865, 3843, 1546, 2099, 1220, 8202, 29499, 14, 51, 62, 10913, 54, 62, 20608, 11902, 198, 220, 220, 220, 220, 220, 5145, 3824, 62, 1268, 23428, 2389, 6158, 62, 34, 2246, 13909, 2099, 347, 6684, 2538, 62, 35, 4277, 9564, 2969, 62, 37, 23719, 198, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 5145, 2767, 62, 20373, 62, 43, 17248, 2099, 1220, 8202, 29499, 14, 51, 62, 10913, 54, 62, 20373, 62, 43, 17248, 198, 220, 220, 220, 220, 220, 5145, 2767, 62, 7708, 4146, 1961, 62, 20373, 2099, 1220, 8202, 29499, 14, 51, 62, 10913, 54, 62, 20373, 198, 220, 220, 220, 220, 220, 5145, 4720, 62, 44, 1546, 4090, 8264, 2099, 1006, 284, 1220, 8202, 29499, 14, 5064, 62, 10913, 54, 62, 44, 1546, 4090, 8264, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1220, 8202, 29499, 14, 34, 55, 62, 10913, 54, 764, 198, 220, 5050, 15731, 3535, 6089, 62, 13252, 2394, 62, 35, 1404, 2246, 3525, 1137, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 1797, 62, 4177, 55, 2099, 1220, 8202, 29499, 14, 50, 62, 10913, 54, 62, 4177, 55, 62, 10705, 4503, 198, 220, 220, 220, 220, 220, 5145, 2043, 62, 20373, 2099, 1220, 8202, 29499, 14, 51, 62, 10913, 54, 62, 20373, 198, 220, 220, 220, 220, 220, 5145, 9399, 62, 15675, 2099, 1006, 284, 1220, 8202, 29499, 14, 5064, 62, 10913, 54, 62, 15675, 198, 220, 220, 220, 220, 220, 5145, 1797, 62, 27082, 2390, 2767, 4877, 2099, 1006, 284, 42865, 11902, 198, 220, 220, 220, 220, 220, 5145, 2043, 62, 46700, 5781, 1961, 62, 1404, 5446, 9865, 3843, 1546, 2099, 1220, 8202, 29499, 14, 51, 62, 10913, 54, 62, 20608, 11902, 198, 220, 220, 220, 220, 220, 5145, 3824, 62, 1268, 23428, 2389, 6158, 62, 34, 2246, 13909, 2099, 347, 6684, 2538, 62, 35, 4277, 9564, 2969, 62, 37, 23719, 198, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 5145, 2767, 62, 20373, 62, 43, 17248, 2099, 1220, 8202, 29499, 14, 51, 62, 10913, 54, 62, 20373, 62, 43, 17248, 198, 220, 220, 220, 220, 220, 5145, 2767, 62, 7708, 4146, 1961, 62, 20373, 2099, 1220, 8202, 29499, 14, 51, 62, 10913, 54, 62, 20373, 198, 220, 220, 220, 220, 220, 5145, 4720, 62, 44, 1546, 4090, 8264, 2099, 1006, 284, 1220, 8202, 29499, 14, 5064, 62, 10913, 54, 62, 44, 1546, 4090, 8264, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1220, 8202, 29499, 14, 34, 55, 62, 10913, 54, 764, 198, 220, 5050, 15731, 3535, 6089, 62, 24805, 62, 32988, 62, 31180, 5781, 62, 45, 16820, 62, 5662, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 1797, 62, 4177, 55, 2099, 1220, 8202, 29499, 14, 50, 62, 10913, 54, 62, 4177, 55, 62, 10705, 4503, 198, 220, 220, 220, 220, 220, 5145, 2043, 62, 20373, 2099, 1220, 8202, 29499, 14, 51, 62, 10913, 54, 62, 20373, 198, 220, 220, 220, 220, 220, 5145, 9399, 62, 15675, 2099, 1006, 284, 1220, 8202, 29499, 14, 5064, 62, 10913, 54, 62, 15675, 198, 220, 220, 220, 220, 220, 5145, 1797, 62, 27082, 2390, 2767, 4877, 2099, 1006, 284, 42865, 11902, 198, 220, 220, 220, 220, 220, 5145, 2043, 62, 46700, 5781, 1961, 62, 1404, 5446, 9865, 3843, 1546, 2099, 1220, 8202, 29499, 14, 51, 62, 10913, 54, 62, 20608, 11902, 198, 220, 220, 220, 220, 220, 5145, 3824, 62, 1268, 23428, 2389, 6158, 62, 34, 2246, 13909, 2099, 347, 6684, 2538, 62, 35, 4277, 9564, 2969, 62, 37, 23719, 198, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 5145, 2767, 62, 20373, 62, 43, 17248, 2099, 1220, 8202, 29499, 14, 51, 62, 10913, 54, 62, 20373, 62, 43, 17248, 198, 220, 220, 220, 220, 220, 5145, 2767, 62, 7708, 4146, 1961, 62, 20373, 2099, 1220, 8202, 29499, 14, 51, 62, 10913, 54, 62, 20373, 198, 220, 220, 220, 220, 220, 5145, 4720, 62, 44, 1546, 4090, 8264, 2099, 1006, 284, 1220, 8202, 29499, 14, 5064, 62, 10913, 54, 62, 44, 1546, 4090, 8264, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1220, 8202, 29499, 14, 34, 55, 62, 10913, 54, 764, 198, 220, 5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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS /usi/cl_bal_language_priority DEFINITION PUBLIC FINAL CREATE PRIVATE . PUBLIC SECTION. INTERFACES /usi/if_bal_language_priority. CLASS-METHODS get_instance RETURNING VALUE(r_result) TYPE REF TO /usi/if_bal_language_priority. PROTECTED SECTION. PRIVATE SECTION. ALIASES: ty_language FOR /usi/if_bal_language_priority~ty_language, ty_languages FOR /usi/if_bal_language_priority~ty_languages. CLASS-DATA instance TYPE REF TO /usi/if_bal_language_priority. DATA: languages_by_priority TYPE ty_languages, processed_languages TYPE HASHED TABLE OF sylangu WITH UNIQUE KEY table_line. METHODS constructor. METHODS insert_language IMPORTING i_language TYPE sylangu. METHODS get_fallback_languages. METHODS get_other_languages. ENDCLASS. CLASS /usi/cl_bal_language_priority IMPLEMENTATION. METHOD get_instance. IF instance IS NOT BOUND. CREATE OBJECT instance TYPE /usi/cl_bal_language_priority. ENDIF. r_result = instance. ENDMETHOD. METHOD constructor. insert_language( sy-langu ). get_fallback_languages( ). get_other_languages( ). ENDMETHOD. METHOD insert_language. DATA language TYPE ty_language. INSERT i_language INTO TABLE processed_languages. IF sy-subrc EQ 0. language-priority = lines( languages_by_priority ) + 1. language-language = i_language. INSERT language INTO TABLE languages_by_priority. ENDIF. ENDMETHOD. METHOD get_fallback_languages. DATA: primary_language TYPE sylangu, fallback_language TYPE sylangu. primary_language = sy-langu. DO 2 TIMES. SELECT SINGLE lakett FROM t002c INTO fallback_language WHERE spras EQ primary_language AND lakett NE space. IF sy-subrc NE 0. EXIT. ELSE. insert_language( fallback_language ). primary_language = fallback_language. ENDIF. ENDDO. ENDMETHOD. METHOD get_other_languages. DATA languages TYPE SORTED TABLE OF t778l WITH UNIQUE KEY seqen. FIELD-SYMBOLS <language> TYPE t778l. SELECT * FROM t778l INTO TABLE languages. LOOP AT languages ASSIGNING <language>. insert_language( <language>-langu ). ENDLOOP. ENDMETHOD. METHOD /usi/if_bal_language_priority~get_languages. r_result = languages_by_priority. ENDMETHOD. ENDCLASS.
[ 31631, 1220, 385, 72, 14, 565, 62, 6893, 62, 16129, 62, 49336, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1220, 385, 72, 14, 361, 62, 6893, 62, 16129, 62, 49336, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 651, 62, 39098, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 20274, 8, 41876, 4526, 37, 5390, 1220, 385, 72, 14, 361, 62, 6893, 62, 16129, 62, 49336, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 8355, 43429, 1546, 25, 1259, 62, 16129, 220, 7473, 1220, 385, 72, 14, 361, 62, 6893, 62, 16129, 62, 49336, 93, 774, 62, 16129, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 75, 33213, 7473, 1220, 385, 72, 14, 361, 62, 6893, 62, 16129, 62, 49336, 93, 774, 62, 75, 33213, 13, 628, 220, 220, 220, 42715, 12, 26947, 4554, 41876, 4526, 37, 5390, 1220, 385, 72, 14, 361, 62, 6893, 62, 16129, 62, 49336, 13, 628, 220, 220, 220, 42865, 25, 8950, 62, 1525, 62, 49336, 41876, 1259, 62, 75, 33213, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13686, 62, 75, 33213, 220, 220, 41876, 367, 11211, 1961, 43679, 3963, 827, 75, 2303, 13315, 4725, 33866, 8924, 35374, 3084, 62, 1370, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 13, 628, 220, 220, 220, 337, 36252, 50, 7550, 62, 16129, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 16129, 41876, 827, 75, 2303, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 7207, 1891, 62, 75, 33213, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 847, 62, 75, 33213, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1220, 385, 72, 14, 565, 62, 6893, 62, 16129, 62, 49336, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 651, 62, 39098, 13, 198, 220, 220, 220, 16876, 4554, 3180, 5626, 347, 15919, 13, 198, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 4554, 41876, 1220, 385, 72, 14, 565, 62, 6893, 62, 16129, 62, 49336, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 374, 62, 20274, 796, 4554, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 7550, 62, 16129, 7, 827, 12, 75, 2303, 6739, 198, 220, 220, 220, 651, 62, 7207, 1891, 62, 75, 33213, 7, 6739, 198, 220, 220, 220, 651, 62, 847, 62, 75, 33213, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 7550, 62, 16129, 13, 198, 220, 220, 220, 42865, 3303, 41876, 1259, 62, 16129, 13, 628, 220, 220, 220, 29194, 17395, 1312, 62, 16129, 39319, 43679, 13686, 62, 75, 33213, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 36529, 657, 13, 198, 220, 220, 220, 220, 220, 3303, 12, 49336, 796, 3951, 7, 8950, 62, 1525, 62, 49336, 1267, 1343, 352, 13, 198, 220, 220, 220, 220, 220, 3303, 12, 16129, 796, 1312, 62, 16129, 13, 198, 220, 220, 220, 220, 220, 29194, 17395, 3303, 39319, 43679, 8950, 62, 1525, 62, 49336, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 7207, 1891, 62, 75, 33213, 13, 198, 220, 220, 220, 42865, 25, 4165, 62, 16129, 220, 41876, 827, 75, 2303, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2121, 1891, 62, 16129, 41876, 827, 75, 2303, 13, 628, 220, 220, 220, 4165, 62, 16129, 796, 827, 12, 75, 2303, 13, 198, 220, 220, 220, 8410, 362, 31742, 1546, 13, 198, 220, 220, 220, 220, 220, 33493, 220, 311, 2751, 2538, 300, 461, 3087, 198, 220, 220, 220, 220, 220, 220, 220, 16034, 220, 256, 21601, 66, 198, 220, 220, 220, 220, 220, 220, 220, 39319, 220, 2121, 1891, 62, 16129, 198, 220, 220, 220, 220, 220, 220, 220, 33411, 7500, 292, 220, 36529, 4165, 62, 16129, 198, 220, 220, 220, 220, 220, 220, 220, 5357, 220, 220, 300, 461, 3087, 10635, 2272, 13, 628, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 10635, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 2043, 13, 198, 220, 220, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 220, 220, 7550, 62, 16129, 7, 2121, 1891, 62, 16129, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 4165, 62, 16129, 796, 2121, 1891, 62, 16129, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 18227, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 847, 62, 75, 33213, 13, 198, 220, 220, 220, 42865, 8950, 41876, 311, 9863, 1961, 43679, 3963, 256, 39761, 75, 13315, 4725, 33866, 8924, 35374, 33756, 268, 13, 198, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 1279, 16129, 29, 41876, 256, 39761, 75, 13, 628, 220, 220, 220, 33493, 1635, 198, 220, 220, 220, 220, 220, 16034, 256, 39761, 75, 198, 220, 220, 220, 220, 220, 39319, 43679, 8950, 13, 628, 220, 220, 220, 17579, 3185, 5161, 8950, 24994, 3528, 15871, 1279, 16129, 28401, 198, 220, 220, 220, 220, 220, 7550, 62, 16129, 7, 1279, 16129, 29, 12, 75, 2303, 6739, 198, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1220, 385, 72, 14, 361, 62, 6893, 62, 16129, 62, 49336, 93, 1136, 62, 75, 33213, 13, 198, 220, 220, 220, 374, 62, 20274, 796, 8950, 62, 1525, 62, 49336, 13, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_ooa1_mlz_ewm DEFINITION INHERITING FROM zcl_ooa1_mlz_json_sistem PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. METHODS: zif_ooa1_mlz_hedef_sistem~baglanti_testi_yap REDEFINITION. PROTECTED SECTION. METHODS: karsi_sisteme_gonder REDEFINITION. PRIVATE SECTION. ENDCLASS. CLASS zcl_ooa1_mlz_ewm IMPLEMENTATION. METHOD zif_ooa1_mlz_hedef_sistem~baglanti_testi_yap. ##todo. " Geçici kod WRITE: 'EWM bağlantı testi başarılı'. ENDMETHOD. METHOD karsi_sisteme_gonder. ##todo. " Geçici kod WRITE: 'EWM sistemine veri gitti'. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 2238, 64, 16, 62, 4029, 89, 62, 413, 76, 5550, 20032, 17941, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 2238, 64, 16, 62, 4029, 89, 62, 17752, 62, 82, 396, 368, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 1976, 361, 62, 2238, 64, 16, 62, 4029, 89, 62, 704, 891, 62, 82, 396, 368, 93, 21454, 75, 17096, 62, 9288, 72, 62, 88, 499, 23848, 36, 20032, 17941, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 479, 945, 72, 62, 82, 396, 34755, 62, 70, 8623, 23848, 36, 20032, 17941, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 2238, 64, 16, 62, 4029, 89, 62, 413, 76, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 1976, 361, 62, 2238, 64, 16, 62, 4029, 89, 62, 704, 891, 62, 82, 396, 368, 93, 21454, 75, 17096, 62, 9288, 72, 62, 88, 499, 13, 198, 220, 220, 220, 22492, 83, 24313, 13, 366, 2269, 16175, 44070, 479, 375, 198, 220, 220, 220, 44423, 25, 705, 6217, 44, 26605, 33133, 75, 415, 30102, 1332, 72, 26605, 46481, 283, 30102, 75, 30102, 4458, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 479, 945, 72, 62, 82, 396, 34755, 62, 70, 8623, 13, 198, 220, 220, 220, 22492, 83, 24313, 13, 366, 2269, 16175, 44070, 479, 375, 198, 220, 220, 220, 44423, 25, 705, 6217, 44, 264, 396, 368, 500, 3326, 72, 308, 715, 72, 4458, 198, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*----------------------------------------------------------------------* * CLASS /GAL/BACKEND_FILE DEFINITION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* class /GAL/BACKEND_FILE definition public inheriting from /GAL/FILE final create public . *"* public components of class /GAL/BACKEND_FILE *"* do not include other source files here!!! *"* protected components of class /GAL/BACKEND_FILE *"* do not include other source files here!!! public section. data RFC_ROUTE_INFO type /GAL/RFC_ROUTE_INFO read-only . class-methods SELECT importing !RFC_ROUTE_INFO type /GAL/RFC_ROUTE_INFO !ACCESS type /GAL/FILE_ACCESS default ACCESS_READ !BASE_DIRECTORY type CSEQUENCE optional !DEFAULT_DIRECTORY type CSEQUENCE optional !DEFAULT_NAME type CSEQUENCE optional !DEFAULT_EXTENSION type CSEQUENCE optional !TITLE type CSEQUENCE optional !FILTER type CSEQUENCE optional returning value(FILE) type ref to /GAL/BACKEND_FILE raising /GAL/CX_IO_EXCEPTION . methods CONSTRUCTOR importing !NAME type CSEQUENCE !RFC_ROUTE_INFO type /GAL/RFC_ROUTE_INFO optional . methods DELETE redefinition . methods EXISTS redefinition . methods GET_LENGTH redefinition . methods GET_LINE_BREAK redefinition . methods OPEN redefinition . protected section. methods READ redefinition . methods WRITE redefinition . *"* private components of class /GAL/BACKEND_FILE *"* do not include other source files here!!! PRIVATE SECTION. ENDCLASS. CLASS /GAL/BACKEND_FILE IMPLEMENTATION. METHOD constructor. * Call parent implementation super->constructor( name = name ). * Set RFC route info me->rfc_route_info = rfc_route_info. ENDMETHOD. "constructor METHOD delete. DATA l_message TYPE string. CALL FUNCTION '/GAL/FILE_DELETE' EXPORTING rfc_route_info = rfc_route_info full_name = full_name EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO l_message. RAISE EXCEPTION TYPE /gal/cx_io_exception EXPORTING textid = /gal/cx_io_exception=>rfc_message var1 = l_message. ENDIF. ENDMETHOD. "delete METHOD exists. DATA l_message TYPE string. CALL FUNCTION '/GAL/FILE_READ' EXPORTING rfc_route_info = rfc_route_info full_name = full_name mode = mode_binary length = 0 EXCEPTIONS cannot_read_file = 1 OTHERS = 2. IF sy-subrc = 0. file_exists = abap_true. ELSEIF sy-subrc = 1. file_exists = abap_false. ELSE. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO l_message. RAISE EXCEPTION TYPE /gal/cx_io_exception EXPORTING textid = /gal/cx_io_exception=>rfc_message var1 = l_message. ENDIF. ENDMETHOD. METHOD get_length. DATA l_message TYPE string. CALL FUNCTION '/GAL/FILE_GET_LENGTH' EXPORTING rfc_route_info = rfc_route_info full_name = full_name IMPORTING length = length EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO l_message. RAISE EXCEPTION TYPE /gal/cx_io_exception EXPORTING textid = /gal/cx_io_exception=>rfc_message var1 = l_message. ENDIF. ENDMETHOD. "get_length METHOD get_line_break. DATA l_message TYPE string. CALL FUNCTION '/GAL/FILE_GET_LINE_BREAK' EXPORTING rfc_route_info = rfc_route_info full_name = full_name IMPORTING line_break = line_break EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO l_message. RAISE EXCEPTION TYPE /gal/cx_io_exception EXPORTING textid = /gal/cx_io_exception=>rfc_message var1 = l_message. ENDIF. ENDMETHOD. "get_line_break METHOD open. DATA l_line_break LIKE line_break. DATA l_read TYPE /gal/file_access. DATA l_append TYPE /gal/file_options. super->open( ). * Automatic determination of line break style IF mode = mode_text. l_read = access BIT-AND access_read. l_append = options BIT-AND options_append_only. * If no line break style is supplied get line break style from existing file IF ( l_read > 0 OR l_append > 0 ) AND ( line_break = line_break_auto OR line_break = line_break_undefined ). l_line_break = get_line_break( ). ELSE. l_line_break = line_break. ENDIF. * Use plattform to get line break style when line_break is set to auto IF l_line_break = line_break_auto. IF sy-opsys CS 'WIN'. l_line_break = line_break_windows. ELSE. l_line_break = line_break_unix. ENDIF. ENDIF. ELSE. l_line_break = line_break_undefined. ENDIF. CREATE OBJECT stream TYPE /gal/mem_buffered_file_stream EXPORTING file = me access = access mode = mode options = options line_break = l_line_break. ENDMETHOD. "open METHOD read. DATA lt_data_txt TYPE /gal/stringtable. DATA l_message TYPE string. * Read file CALL FUNCTION '/GAL/FILE_READ' EXPORTING rfc_route_info = rfc_route_info full_name = full_name mode = mode line_break = line_break IMPORTING data_bin = data_bin data_txt = lt_data_txt EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO l_message. RAISE EXCEPTION TYPE /gal/cx_io_exception EXPORTING textid = /gal/cx_io_exception=>rfc_message var1 = l_message. ENDIF. IF line_break = line_break_windows. CONCATENATE LINES OF lt_data_txt INTO data_txt SEPARATED BY /gal/string=>line_break_windows. ELSE. CONCATENATE LINES OF lt_data_txt INTO data_txt SEPARATED BY /gal/string=>line_break_unix. ENDIF. ENDMETHOD. "read METHOD select. DATA l_base_directory TYPE string. DATA l_default_directory TYPE string. DATA l_default_name TYPE string. DATA l_title TYPE string. DATA l_filter TYPE string. DATA l_initial_filter TYPE string. DATA l_filename TYPE string. DATA l_aborted TYPE abap_bool. DATA l_exception TYPE REF TO cx_root. DATA l_io_exception TYPE REF TO /gal/cx_io_exception. DATA l_message TYPE string. * Convert parameters to string l_base_directory = base_directory. l_default_directory = default_directory. l_default_name = default_name. * Set title and filter IF title IS SUPPLIED. l_title = title. ELSE. l_title = text-c00. ENDIF. IF filter IS SUPPLIED. l_filter = filter. ELSE. l_filter = text-c01. ENDIF. IF default_extension IS INITIAL. l_initial_filter = '*'. ELSE. CONCATENATE '*.' default_extension INTO l_initial_filter. ENDIF. CALL FUNCTION '/GAL/CD_SELECT_BACKEND_FILES' EXPORTING rfc_route_info = rfc_route_info access = access base_directory = l_base_directory initial_directory = l_default_directory initial_file = l_default_name initial_filter = l_initial_filter filter = l_filter title = l_title IMPORTING selected_file = l_filename aborted = l_aborted exception = l_exception. IF l_aborted <> abap_false. IF l_exception IS INITIAL. RAISE EXCEPTION TYPE /gal/cx_io_exception EXPORTING textid = /gal/cx_io_exception=>aborted_by_user. ELSE. TRY. l_io_exception ?= l_exception. RAISE EXCEPTION l_io_exception. CATCH cx_sy_move_cast_error. l_message = l_exception->get_text( ). RAISE EXCEPTION TYPE /gal/cx_io_exception EXPORTING textid = /gal/cx_io_exception=>custom_exception var1 = l_message. ENDTRY. ENDIF. ENDIF. * Create file object CREATE OBJECT file TYPE /gal/backend_file EXPORTING name = l_filename rfc_route_info = rfc_route_info. ENDMETHOD. "SELECT METHOD write. DATA lt_data_txt TYPE /gal/stringtable. DATA l_length TYPE i. DATA l_offset TYPE i. DATA l_message TYPE string. FIELD-SYMBOLS <l_line> TYPE string. * The WHILE loops are necessarey because SPLIT ... INTO TABLE ... loses trainling lines! IF mode = mode_text. CASE line_break. WHEN line_break_unix. WHILE data_txt+l_offset CS /gal/string=>line_break_unix. IF sy-fdpos = 0. INSERT INITIAL LINE INTO TABLE lt_data_txt. ELSE. INSERT data_txt+l_offset(sy-fdpos) INTO TABLE lt_data_txt. ENDIF. l_offset = l_offset + sy-fdpos + strlen( /gal/string=>line_break_unix ). ENDWHILE. INSERT data_txt+l_offset INTO TABLE lt_data_txt. WHEN line_break_windows. WHILE data_txt+l_offset CS /gal/string=>line_break_windows. IF sy-fdpos = 0. INSERT INITIAL LINE INTO TABLE lt_data_txt. ELSE. INSERT data_txt+l_offset(sy-fdpos) INTO TABLE lt_data_txt. ENDIF. l_offset = l_offset + sy-fdpos + strlen( /gal/string=>line_break_windows ). ENDWHILE. INSERT data_txt+l_offset INTO TABLE lt_data_txt. WHEN OTHERS. WHILE data_txt+l_offset CS /gal/string=>line_break_windows. IF sy-fdpos = 0. INSERT INITIAL LINE INTO TABLE lt_data_txt. ELSE. INSERT data_txt+l_offset(sy-fdpos) INTO TABLE lt_data_txt. ENDIF. l_offset = l_offset + sy-fdpos + strlen( /gal/string=>line_break_windows ). ENDWHILE. INSERT data_txt+l_offset INTO TABLE lt_data_txt. LOOP AT lt_data_txt ASSIGNING <l_line>. l_length = strlen( <l_line> ). IF l_length > 0. l_offset = l_length - 1. IF <l_line>+l_offset = /gal/string=>line_break_windows(1). <l_line> = <l_line>(l_offset). ENDIF. ENDIF. ENDLOOP. ENDCASE. ENDIF. CALL FUNCTION '/GAL/FILE_WRITE' EXPORTING rfc_route_info = rfc_route_info full_name = full_name mode = mode options = options line_break = line_break data_bin = data_bin data_txt = lt_data_txt EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO l_message. RAISE EXCEPTION TYPE /gal/cx_io_exception EXPORTING textid = /gal/cx_io_exception=>rfc_message var1 = l_message. ENDIF. ENDMETHOD. "write ENDCLASS.
[ 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 1220, 38, 1847, 14, 31098, 10619, 62, 25664, 5550, 20032, 17941, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 4871, 1220, 38, 1847, 14, 31098, 10619, 62, 25664, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1220, 38, 1847, 14, 25664, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1220, 38, 1847, 14, 31098, 10619, 62, 25664, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1220, 38, 1847, 14, 31098, 10619, 62, 25664, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 11377, 2665, 13, 628, 220, 1366, 30978, 62, 49, 2606, 9328, 62, 10778, 2099, 1220, 38, 1847, 14, 41150, 62, 49, 2606, 9328, 62, 10778, 1100, 12, 8807, 764, 628, 220, 1398, 12, 24396, 82, 33493, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 41150, 62, 49, 2606, 9328, 62, 10778, 2099, 1220, 38, 1847, 14, 41150, 62, 49, 2606, 9328, 62, 10778, 198, 220, 220, 220, 220, 220, 5145, 26861, 7597, 2099, 1220, 38, 1847, 14, 25664, 62, 26861, 7597, 4277, 15859, 7597, 62, 15675, 198, 220, 220, 220, 220, 220, 5145, 33, 11159, 62, 17931, 23988, 15513, 2099, 327, 5188, 10917, 18310, 11902, 198, 220, 220, 220, 220, 220, 5145, 7206, 38865, 62, 17931, 23988, 15513, 2099, 327, 5188, 10917, 18310, 11902, 198, 220, 220, 220, 220, 220, 5145, 7206, 38865, 62, 20608, 2099, 327, 5188, 10917, 18310, 11902, 198, 220, 220, 220, 220, 220, 5145, 7206, 38865, 62, 13918, 16938, 2849, 2099, 327, 5188, 10917, 18310, 11902, 198, 220, 220, 220, 220, 220, 5145, 49560, 2538, 2099, 327, 5188, 10917, 18310, 11902, 198, 220, 220, 220, 220, 220, 5145, 46700, 5781, 2099, 327, 5188, 10917, 18310, 11902, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 25664, 8, 2099, 1006, 284, 1220, 38, 1847, 14, 31098, 10619, 62, 25664, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1220, 38, 1847, 14, 34, 55, 62, 9399, 62, 6369, 42006, 2849, 764, 198, 220, 5050, 7102, 46126, 1581, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 20608, 2099, 327, 5188, 10917, 18310, 198, 220, 220, 220, 220, 220, 5145, 41150, 62, 49, 2606, 9328, 62, 10778, 2099, 1220, 38, 1847, 14, 41150, 62, 49, 2606, 9328, 62, 10778, 11902, 764, 628, 220, 5050, 5550, 2538, 9328, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 7788, 1797, 4694, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 17151, 62, 43, 49494, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 17151, 62, 24027, 62, 40438, 10206, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 38303, 198, 220, 220, 220, 34087, 17750, 764, 198, 24326, 2665, 13, 628, 220, 5050, 20832, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 44423, 198, 220, 220, 220, 34087, 17750, 764, 198, 9, 1, 9, 2839, 6805, 286, 1398, 1220, 38, 1847, 14, 31098, 10619, 62, 25664, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1220, 38, 1847, 14, 31098, 10619, 62, 25664, 30023, 2538, 10979, 6234, 13, 628, 198, 49273, 23772, 13, 198, 198, 9, 4889, 2560, 7822, 198, 220, 2208, 3784, 41571, 273, 7, 1438, 796, 1438, 6739, 198, 198, 9, 5345, 30978, 6339, 7508, 198, 220, 502, 3784, 81, 16072, 62, 38629, 62, 10951, 796, 374, 16072, 62, 38629, 62, 10951, 13, 198, 10619, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 41571, 273, 628, 198, 220, 337, 36252, 12233, 13, 198, 220, 220, 220, 42865, 300, 62, 20500, 41876, 4731, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 31051, 38, 1847, 14, 25664, 62, 7206, 2538, 9328, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 374, 16072, 62, 38629, 62, 10951, 796, 374, 16072, 62, 38629, 62, 10951, 198, 220, 220, 220, 220, 220, 220, 220, 1336, 62, 3672, 220, 220, 220, 220, 220, 796, 1336, 62, 3672, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 796, 352, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 4522, 827, 12, 19662, 312, 41876, 827, 12, 19662, 774, 36871, 13246, 827, 12, 19662, 3919, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13315, 827, 12, 19662, 85, 16, 827, 12, 19662, 85, 17, 827, 12, 19662, 85, 18, 827, 12, 19662, 85, 19, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 39319, 300, 62, 20500, 13, 628, 220, 220, 220, 220, 220, 17926, 24352, 7788, 42006, 2849, 41876, 1220, 13528, 14, 66, 87, 62, 952, 62, 1069, 4516, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 312, 796, 1220, 13528, 14, 66, 87, 62, 952, 62, 1069, 4516, 14804, 81, 16072, 62, 20500, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1401, 16, 220, 220, 796, 300, 62, 20500, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 33678, 628, 198, 49273, 7160, 13, 198, 220, 42865, 300, 62, 20500, 41876, 4731, 13, 628, 220, 42815, 29397, 4177, 2849, 31051, 38, 1847, 14, 25664, 62, 15675, 6, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 374, 16072, 62, 38629, 62, 10951, 220, 220, 796, 374, 16072, 62, 38629, 62, 10951, 198, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
"#autoformat CLASS zcl_csv DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. TYPES: "! <p>Table of string</p> ty_t_string TYPE STANDARD TABLE OF string WITH EMPTY KEY. "! <p>Create a table with separator</p> "! @parameter it_table | <p>Table to transform</p> "! @parameter iv_separator | <p>Separator you want to use<br/><strong>Default:</strong> ;</p> "! @parameter iv_headline | <p>Optional: Headline of CSV file</p> "! @parameter rt_table_with_separator | <p>Table of string return</p> CLASS-METHODS _create_table_with_separator IMPORTING it_table TYPE STANDARD TABLE iv_separator TYPE c DEFAULT ';' iv_headline TYPE string OPTIONAL RETURNING VALUE(rt_table_with_separator) TYPE ty_t_string. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_csv IMPLEMENTATION. METHOD _create_table_with_separator. DATA: ls_xout TYPE string. DATA: lv_string TYPE string. IF iv_headline <> ''. APPEND iv_headline TO rt_table_with_separator. ENDIF. LOOP AT it_table ASSIGNING FIELD-SYMBOL(<ls_table>). CLEAR ls_xout. DO. ASSIGN COMPONENT sy-index OF STRUCTURE <ls_table> TO FIELD-SYMBOL(<fs_value>). IF sy-subrc <> 0. EXIT. ENDIF. IF sy-index = 1. lv_string = <fs_value>. ls_xout = <fs_value>. ELSE. lv_string = <fs_value>. CONCATENATE ls_xout lv_string INTO ls_xout SEPARATED BY iv_separator. ENDIF. ENDDO. APPEND ls_xout TO rt_table_with_separator. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 1, 2, 23736, 18982, 198, 31631, 1976, 565, 62, 40664, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 29, 10962, 286, 4731, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 1259, 62, 83, 62, 8841, 41876, 49053, 9795, 43679, 3963, 4731, 13315, 38144, 9936, 35374, 13, 628, 220, 220, 220, 366, 0, 1279, 79, 29, 16447, 257, 3084, 351, 2880, 1352, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 340, 62, 11487, 930, 1279, 79, 29, 10962, 284, 6121, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 25512, 1352, 930, 1279, 79, 29, 19117, 283, 1352, 345, 765, 284, 779, 27, 1671, 14, 6927, 11576, 29, 19463, 25, 3556, 11576, 29, 2162, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 2256, 1370, 930, 1279, 79, 29, 30719, 25, 7123, 1370, 286, 44189, 2393, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 374, 83, 62, 11487, 62, 4480, 62, 25512, 1352, 930, 1279, 79, 29, 10962, 286, 4731, 1441, 3556, 79, 29, 198, 220, 220, 220, 42715, 12, 49273, 50, 4808, 17953, 62, 11487, 62, 4480, 62, 25512, 1352, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 11487, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 25512, 1352, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 5550, 38865, 705, 26, 6, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 2256, 1370, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 11487, 62, 4480, 62, 25512, 1352, 8, 41876, 1259, 62, 83, 62, 8841, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 40664, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 4808, 17953, 62, 11487, 62, 4480, 62, 25512, 1352, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 87, 448, 41876, 4731, 13, 198, 220, 220, 220, 42865, 25, 300, 85, 62, 8841, 41876, 4731, 13, 628, 220, 220, 220, 16876, 21628, 62, 2256, 1370, 1279, 29, 705, 4458, 198, 220, 220, 220, 220, 220, 43504, 10619, 21628, 62, 2256, 1370, 5390, 374, 83, 62, 11487, 62, 4480, 62, 25512, 1352, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 17579, 3185, 5161, 340, 62, 11487, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 7278, 62, 11487, 29, 737, 628, 220, 220, 220, 220, 220, 30301, 1503, 43979, 62, 87, 448, 13, 198, 220, 220, 220, 220, 220, 8410, 13, 198, 220, 220, 220, 220, 220, 220, 220, 24994, 16284, 24301, 1340, 3525, 827, 12, 9630, 3963, 19269, 18415, 11335, 1279, 7278, 62, 11487, 29, 5390, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 9501, 62, 8367, 29, 737, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 2043, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 827, 12, 9630, 796, 352, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 8841, 796, 1279, 9501, 62, 8367, 28401, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 87, 448, 796, 1279, 9501, 62, 8367, 28401, 198, 220, 220, 220, 220, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 8841, 796, 1279, 9501, 62, 8367, 28401, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 39962, 1404, 1677, 6158, 43979, 62, 87, 448, 300, 85, 62, 8841, 39319, 43979, 62, 87, 448, 7946, 27082, 11617, 11050, 21628, 62, 25512, 1352, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 23578, 18227, 13, 628, 220, 220, 220, 220, 220, 43504, 10619, 43979, 62, 87, 448, 5390, 374, 83, 62, 11487, 62, 4480, 62, 25512, 1352, 13, 628, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
REPORT zabappgp_dump. DATA: gv_ok_code LIKE sy-ucomm, go_splitter TYPE REF TO cl_gui_easy_splitter_container, go_left TYPE REF TO cl_gui_textedit, go_right TYPE REF TO cl_gui_textedit. START-OF-SELECTION. PERFORM run. FORM run. CALL SCREEN 2000. ENDFORM. *&---------------------------------------------------------------------* *& Module STATUS_2000 OUTPUT *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* MODULE status_2000 OUTPUT. SET PF-STATUS 'STATUS_2000'. SET TITLEBAR 'TITLE_2000'. ENDMODULE. *&---------------------------------------------------------------------* *& Module USER_COMMAND_2000 INPUT *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* MODULE user_command_2000 INPUT. CASE gv_ok_code. WHEN 'BACK'. CLEAR gv_ok_code. LEAVE TO SCREEN 0. WHEN 'DUMP'. CLEAR gv_ok_code. PERFORM dump. WHEN 'SAMPLE01'. CLEAR gv_ok_code. PERFORM sample01. WHEN 'SAMPLE02'. CLEAR gv_ok_code. PERFORM sample02. WHEN 'SAMPLE03'. CLEAR gv_ok_code. PERFORM sample03. WHEN 'SAMPLE04'. CLEAR gv_ok_code. PERFORM sample04. ENDCASE. ENDMODULE. *&---------------------------------------------------------------------* *& Module INIT_2000 OUTPUT *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* MODULE init_2000 OUTPUT. PERFORM init_2000. ENDMODULE. FORM init_2000. IF go_splitter IS BOUND. RETURN. ENDIF. CREATE OBJECT go_splitter EXPORTING parent = cl_gui_container=>screen0 orientation = 1. CREATE OBJECT go_left EXPORTING parent = go_splitter->top_left_container. go_left->set_toolbar_mode( ). go_left->set_font_fixed( ). go_left->set_statusbar_mode( cl_gui_textedit=>false ). CREATE OBJECT go_right EXPORTING parent = go_splitter->bottom_right_container. go_right->set_toolbar_mode( ). go_right->set_readonly_mode( ). go_right->set_font_fixed( ). go_right->set_statusbar_mode( cl_gui_textedit=>false ). ENDFORM. FORM dump. DATA: lv_text TYPE string, lv_dump TYPE string. go_left->get_textstream( IMPORTING text = lv_text ). cl_gui_cfw=>flush( ). IF strlen( lv_text ) > 0. lv_dump = zcl_abappgp_message_factory=>create( lv_text )->dump( ). go_right->set_textstream( lv_dump ). ENDIF. ENDFORM. FORM sample01. DATA: lv_text TYPE string. CONCATENATE '-----BEGIN PGP PUBLIC KEY BLOCK-----' 'Version: OpenPGP.js v2.0.0' 'Comment: http://openpgpjs.org' '' 'xo0EWC2+6gEEAN05FaocuNPecRuGy61ugl50W9jvla1+LabAdQ3LWwiJ2jMX' '2C6SGHXaQ7YmuSUtrl7dVeyNA0Zs60e9JsLnU6DnvsQNuMaJHACww4eknNMi' 'VQi9U0RAJssYeGu0VqPfPdtnwCcntcV+uDkWIqam6l7uiSDGOEKiqWMNacA3' 'kp7zABEBAAHNEUZvbyA8Zm9vQGJhci5jb20+wrUEEAEIACkFAlgtvuoGCwkI' 'BwMCCRBl2gK148od4QQVCAIKAxYCAQIZAQIbAwIeAQAA7agD/3g4zaTXpfnz' 'ugNaadGYu/SdrUt0AyFOoTYzMMOo1JXXMy8j4FOPA8FHZ290RhYtZVxjDyLL' '/rlb+sgn22BubaVqtcF84ga4RLdRGK9p/mlSb91YO/0DWTqSUZh16sXIhiGu' 'S0IcYnLwOfok2AT6ka9GWwXbxtreNN90if7MiCJzzo0EWC2+6gEEALkkmnMH' 'Ak/INHIDbuQOC35pZr/gxsHSCaxRtstI4O84mUbm6RqPJmCG8sWTapEgyoV5' 'yZaN655XANiaEqIfUnDKvrWbIEkNGDu9XYqFnjUBZo3VZ72rFbwVxzeohJUY' 'qAnDvHUZtcJyIg+s+SPnzAEToKYiH8ScvY9L4LjgpkmLABEBAAHCnwQYAQgA' 'EwUCWC2+6gkQZdoCtePKHeECGwwAAMJoA/98i5ZOibcAihHKFgJ5F2Lc4gEH' 'DRvFyxas6eu6P/zAqsazBeBk1IY9Ae0LjpkehrlhfJe1+qjX4EVC4Cz9sfbe' 'gI6bCt1Jdt3xJBKF0vzjC5ux/SCqTAqVSjZ8QyuJnaU2azAcW8vmFwnlox+j' '1ozJvbr1ndbEyd50AMsn0I5wjg==' '=80MV' '-----END PGP PUBLIC KEY BLOCK-----' INTO lv_text SEPARATED BY cl_abap_char_utilities=>newline. go_left->set_textstream( lv_text ). ENDFORM. FORM sample02. DATA: lv_text TYPE string. CONCATENATE '-----BEGIN PGP PRIVATE KEY BLOCK-----' 'Version: OpenPGP.js v2.0.0' 'Comment: http://openpgpjs.org' '' 'xcFGBFgtvuoBBADdORWqHLjT3nEbhsutboJedFvY75Wtfi2mwHUNy1sIidoz' 'F9gukhh12kO2JrklLa5e3VXsjQNGbOtHvSbC51Og577EDbjGiRwAsMOHpJzT' 'IlUIvVNEQCbLGHhrtFaj3z3bZ8AnJ7XFfrg5FiKmpupe7okgxjhCoqljDWnA' 'N5Ke8wARAQAB/gkDCFtkdPE5eiV9YKGOwcP+EGhIeJGS8ERy+x9V/lfdvCdV' 'n+CGbEScU+gGDHnYOGGOSiJ5S5I1qrTcou2QE1ODG5U1cX0DfrF7qQYNOjFC' 'HADVGFaCTGGQEqvz6Anp8qFFQ/Tidco+drTq/iFaxsxaKKIoC4ArVs9g1D+s' 'rcZo+EeTd0huZ9eLuf9g5CkdrZndZlbS3Vd3wngkVRRnujnr+L134k/kBh53' 'LYL4dR9N+mrnnyDMg4sjCsDhfnG/WglVjpzv2Hjou+3gxmNA68rWNpwAzs6H' 'E/AKOcHbnI3bvFgP1QzoaJR7+uYx2dzdv5DrAJLWGx5eCsbZ8fgNXhqROXPC' 'ulIsPnRukno2vDnKW+b0UCvgQgFjWgdrYw5bXzV18KUpaUNCZ169NfKJeDqF' '5WONy6q3CeQpq8Z+GAP9v1U4Om+if8HKpDXV0MDaKUekB8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ePKHeECGwwAAMJoA/98i5ZOibcAihHKFgJ5F2Lc4gEHDRvFyxas6eu6' 'P/zAqsazBeBk1IY9Ae0LjpkehrlhfJe1+qjX4EVC4Cz9sfbegI6bCt1Jdt3x' 'JBKF0vzjC5ux/SCqTAqVSjZ8QyuJnaU2azAcW8vmFwnlox+j1ozJvbr1ndbE' 'yd50AMsn0I5wjg==' '=USF2' '-----END PGP PRIVATE KEY BLOCK-----' INTO lv_text SEPARATED BY cl_abap_char_utilities=>newline. go_left->set_textstream( lv_text ). ENDFORM. FORM sample03. DATA: lv_text TYPE string. CONCATENATE '-----BEGIN PGP MESSAGE-----' 'Version: OpenPGP.js v2.3.5' 'Comment: http://openpgpjs.org' '' 'wYwDrPvTeiy+4BgBBACKAU4oGeQ6MUS9Cw9F1+TNeiS4XAY/X0KBUwCArdaS' 's+JcEg9pecvhYI4PW+AwYyLurdJBK5xf/ayWc3rU4JmWFq2rflBZSDARLmOJ' 'Mo+lV/OT3lmfjLPVP83wEUE1AvCavKXl2bYnjBnRnNdYetRCxxgbHOc9Gcq8' 'JNfAVu6kGNLAMgG011ntqdqF7lguIuxvanoxhgrLmFRz+TP6TCN4Ak8Tj48I' '5hUuDgzk9bE3jNGWIT6CobclPP7P7S1/wVrCgfZhnoLah0LbwjN0HVMan08I' 'W8KLjKu6uMLAf9QgyW3vKPJPqsERNqZNgPzCyofmubHcd9yIcD20dmY1uAml' '2g6Jx3ZeI55a5DGO7xwuvxLcXHjflWSMCu7qlY+PxSyirzHU4BaeEZCoozsi' 'wDtBuGbJb3BtOrpLpAnlSDTA4WU/z50risxqSb9XtbbQTgAhdyMXR0il+K3a' 'fnzuF2o/A4Z+JfYgWMt4UQGDOCrRhqBVsMTd' '=gGCj' '-----END PGP MESSAGE-----' INTO lv_text SEPARATED BY cl_abap_char_utilities=>newline. go_left->set_textstream( lv_text ). ENDFORM. FORM sample04. DATA: lv_text TYPE string. CONCATENATE '-----BEGIN PGP SIGNATURE-----' 'Version: OpenPGP.js v2.3.5' 'Comment: http://openpgpjs.org' '' 'wpwEAQEIABAFAlhNZj4JEGXaArXjyh3hAADI7QP/Zbp4FlyJ4+pYJhfb8Btr' 'TyDw+9JKTpQm+OTEQIchxx8Cz194CZotxSrnv+UgewYG37NokrXAGw/92CXA' 'nY8CLxS5nkVj7uqm0280riY3z6c9tB48mQE51SgpJXOdZ6Xwhyg3Y67qQ2kI' 'qT7LM/NqmLzmCoSN4IL3R98sPgEK+fQ=' '=0qk7' '-----END PGP SIGNATURE-----' INTO lv_text SEPARATED BY cl_abap_char_utilities=>newline. go_left->set_textstream( lv_text ). ENDFORM.
[ 2200, 15490, 1976, 397, 1324, 31197, 62, 39455, 13, 198, 198, 26947, 25, 308, 85, 62, 482, 62, 8189, 220, 34178, 827, 12, 84, 9503, 11, 198, 220, 220, 220, 220, 220, 467, 62, 22018, 1967, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 38171, 62, 22018, 1967, 62, 34924, 11, 198, 220, 220, 220, 220, 220, 467, 62, 9464, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 5239, 19312, 11, 198, 220, 220, 220, 220, 220, 467, 62, 3506, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 5239, 19312, 13, 198, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 198, 220, 19878, 21389, 1057, 13, 198, 198, 21389, 1057, 13, 198, 220, 42815, 6374, 2200, 1677, 4751, 13, 198, 1677, 8068, 1581, 44, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 220, 220, 220, 220, 19937, 220, 15486, 2937, 62, 11024, 220, 16289, 30076, 198, 9, 5, 10097, 30934, 9, 198, 9, 220, 220, 220, 220, 220, 220, 2420, 198, 9, 10097, 23031, 9, 198, 33365, 24212, 3722, 62, 11024, 16289, 30076, 13, 198, 220, 25823, 28223, 12, 35744, 2937, 705, 35744, 2937, 62, 11024, 4458, 198, 220, 25823, 37977, 2538, 33, 1503, 705, 49560, 2538, 62, 11024, 4458, 198, 10619, 33365, 24212, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 220, 220, 220, 220, 19937, 220, 1294, 1137, 62, 9858, 44, 6981, 62, 11024, 220, 3268, 30076, 198, 9, 5, 10097, 30934, 9, 198, 9, 220, 220, 220, 220, 220, 220, 2420, 198, 9, 10097, 23031, 9, 198, 33365, 24212, 2836, 62, 21812, 62, 11024, 3268, 30076, 13, 198, 220, 42001, 308, 85, 62, 482, 62, 8189, 13, 198, 220, 220, 220, 42099, 705, 31098, 4458, 198, 220, 220, 220, 220, 220, 30301, 1503, 308, 85, 62, 482, 62, 8189, 13, 198, 220, 220, 220, 220, 220, 12509, 32, 6089, 5390, 6374, 2200, 1677, 657, 13, 198, 220, 220, 220, 42099, 705, 35, 20476, 4458, 198, 220, 220, 220, 220, 220, 30301, 1503, 308, 85, 62, 482, 62, 8189, 13, 198, 220, 220, 220, 220, 220, 19878, 21389, 10285, 13, 198, 220, 220, 220, 42099, 705, 49302, 16437, 486, 4458, 198, 220, 220, 220, 220, 220, 30301, 1503, 308, 85, 62, 482, 62, 8189, 13, 198, 220, 220, 220, 220, 220, 19878, 21389, 6291, 486, 13, 198, 220, 220, 220, 42099, 705, 49302, 16437, 2999, 4458, 198, 220, 220, 220, 220, 220, 30301, 1503, 308, 85, 62, 482, 62, 8189, 13, 198, 220, 220, 220, 220, 220, 19878, 21389, 6291, 2999, 13, 198, 220, 220, 220, 42099, 705, 49302, 16437, 3070, 4458, 198, 220, 220, 220, 220, 220, 30301, 1503, 308, 85, 62, 482, 62, 8189, 13, 198, 220, 220, 220, 220, 220, 19878, 21389, 6291, 3070, 13, 198, 220, 220, 220, 42099, 705, 49302, 16437, 3023, 4458, 198, 220, 220, 220, 220, 220, 30301, 1503, 308, 85, 62, 482, 62, 8189, 13, 198, 220, 220, 220, 220, 220, 19878, 21389, 6291, 3023, 13, 198, 220, 23578, 34, 11159, 13, 198, 10619, 33365, 24212, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 220, 220, 220, 220, 19937, 220, 3268, 2043, 62, 11024, 220, 16289, 30076, 198, 9, 5, 10097, 30934, 9, 198, 9, 220, 220, 220, 220, 220, 220, 2420, 198, 9, 10097, 23031, 9, 198, 33365, 24212, 2315, 62, 11024, 16289, 30076, 13, 198, 220, 19878, 21389, 2315, 62, 11024, 13, 198, 10619, 33365, 24212, 13, 198, 198, 21389, 2315, 62, 11024, 13, 628, 220, 16876, 467, 62, 22018, 1967, 3180, 347, 15919, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 5064, 13, 628, 220, 29244, 6158, 25334, 23680, 467, 62, 22018, 1967, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 2560, 220, 220, 220, 220, 220, 796, 537, 62, 48317, 62, 34924, 14804, 9612, 15, 198, 220, 220, 220, 220, 220, 12852, 796, 352, 13, 628, 220, 29244, 6158, 25334, 23680, 467, 62, 9464, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 2560, 796, 467, 62, 22018, 1967, 3784, 4852, 62, 9464, 62, 34924, 13, 198, 220, 467, 62, 9464, 3784, 2617, 62, 25981, 5657, 62, 14171, 7, 6739, 198, 220, 467, 62, 9464, 3784, 2617, 62, 10331, 62, 34021, 7, 6739, 198, 220, 467, 62, 9464, 3784, 2617, 62, 13376, 5657, 62, 14171, 7, 537, 62, 48317, 62, 5239, 19312, 14804, 9562, 6739, 628, 220, 29244, 6158, 25334, 23680, 467, 62, 3506, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 2560, 796, 467, 62, 22018, 1967, 3784, 22487, 62, 3506, 62, 34924, 13, 198, 220, 467, 62, 3506, 3784, 2617, 62, 25981, 5657, 62, 14171, 7, 6739, 198, 220, 467, 62, 3506, 3784, 2617, 62, 961, 8807, 62, 14171, 7, 6739, 198, 220, 467, 62, 3506, 3784, 2617, 62, 10331, 62, 34021, 7, 6739, 198, 220, 467, 62, 3506, 3784, 2617, 62, 13376, 5657, 62, 14171, 7, 537, 62, 48317, 62, 5239, 19312, 14804, 9562, 6739, 198, 198, 1677, 8068, 1581, 44, 13, 198, 198, 21389, 10285, 13, 628, 220, 42865, 25, 300, 85, 62, 5239, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 39455, 41876, 4731, 13, 628, 198, 220, 467, 62, 9464, 3784, 1136, 62, 5239, 5532, 7, 30023, 9863, 2751, 2420, 796, 300, 85, 62, 5239, 6739, 198, 220, 537, 62, 48317, 62, 12993, 86, 14804, 25925, 7, 6739, 628, 220, 16876, 965, 11925, 7, 300, 85, 62, 5239, 1267, 1875, 657, 13, 198, 220, 220, 220, 300, 85, 62, 39455, 796, 1976, 565, 62, 397, 1324, 31197, 62, 20500, 62, 69, 9548, 14804, 17953, 7, 300, 85, 62, 5239, 1267, 3784, 39455, 7, 6739, 198, 220, 220, 220, 467, 62, 3506, 3784, 2617, 62, 5239, 5532, 7, 300, 85, 62, 39455, 6739, 198, 220, 23578, 5064, 13, 198, 198, 1677, 8068, 1581, 44, 13, 198, 198, 21389, 6291, 486, 13, 628, 220, 42865, 25, 300, 85, 62, 5239, 41876, 4731, 13, 628, 198, 220, 39962, 1404, 1677, 6158, 198, 220, 220, 220, 705, 30934, 33, 43312, 350, 16960, 44731, 35374, 9878 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS lcl_package_interface_facade IMPLEMENTATION. METHOD constructor. mi_interface = ii_interface. ENDMETHOD. METHOD lif_package_interface_facade~get_elements. mi_interface->get_elements( IMPORTING e_elements = rt_elements EXCEPTIONS object_invalid = 1 intern_err = 2 OTHERS = 3 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD lif_package_interface_facade~set_elements_changeable. mi_interface->set_elements_changeable( EXPORTING i_changeable = iv_changeable EXCEPTIONS object_already_changeable = 1 object_already_unlocked = 2 object_locked_by_other_user = 3 object_modified = 4 object_just_created = 5 object_deleted = 6 permission_failure = 7 object_invalid = 8 unexpected_error = 9 OTHERS = 10 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD lif_package_interface_facade~save_elements. mi_interface->save_elements( EXCEPTIONS object_not_changeable = 1 object_invalid = 2 cancelled_in_corr = 3 permission_failure = 4 unexpected_error = 5 intern_err = 6 OTHERS = 7 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD lif_package_interface_facade~get_all_attributes. mi_interface->get_all_attributes( IMPORTING e_package_interface_data = rs_package_interface_data EXCEPTIONS object_invalid = 1 OTHERS = 2 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD lif_package_interface_facade~set_changeable. mi_interface->set_changeable( EXPORTING i_changeable = iv_changeable EXCEPTIONS object_locked_by_other_user = 1 permission_failure = 2 object_already_changeable = 3 object_already_unlocked = 4 object_just_created = 5 object_deleted = 6 object_modified = 7 object_not_existing = 8 object_invalid = 9 unexpected_error = 10 OTHERS = 11 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD lif_package_interface_facade~delete. mi_interface->delete( EXCEPTIONS object_not_empty = 1 object_not_changeable = 2 object_invalid = 3 intern_err = 4 OTHERS = 5 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD lif_package_interface_facade~save. mi_interface->save( EXCEPTIONS short_text_missing = 1 object_not_changeable = 2 object_invalid = 3 cancelled_in_corr = 4 permission_failure = 5 unexpected_error = 6 intern_err = 7 OTHERS = 8 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD lif_package_interface_facade~remove_elements. mi_interface->remove_elements( EXPORTING i_elements = it_elements EXCEPTIONS object_deleted = 1 object_invalid = 2 object_not_changeable = 3 element_not_contained = 4 intern_err = 5 OTHERS = 6 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD lif_package_interface_facade~add_elements. mi_interface->add_elements( EXPORTING i_elements_data = it_elements_data EXCEPTIONS object_invalid = 1 intern_err = 2 OTHERS = 3 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD lif_package_interface_facade~set_all_attributes. mi_interface->set_all_attributes( EXPORTING i_package_interface_data = is_package_interface_data i_data_sign = is_data_sign EXCEPTIONS object_deleted = 1 object_not_changeable = 2 interface_not_empty = 3 acl_not_empty = 4 author_not_existing = 5 object_type_mismatch = 6 object_invalid = 7 OTHERS = 8 ). * Downport: exception "logical_package_types_differ" * does not exist in lower versions IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD lif_package_interface_facade~get_changeable. mi_interface->get_changeable( IMPORTING e_changeable = rv_changeable EXCEPTIONS object_invalid = 1 OTHERS = 2 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 300, 565, 62, 26495, 62, 39994, 62, 38942, 671, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 21504, 62, 39994, 796, 21065, 62, 39994, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 3868, 62, 26495, 62, 39994, 62, 38942, 671, 93, 1136, 62, 68, 3639, 13, 628, 220, 220, 220, 21504, 62, 39994, 3784, 1136, 62, 68, 3639, 7, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 304, 62, 68, 3639, 220, 220, 220, 220, 796, 374, 83, 62, 68, 3639, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 259, 12102, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 1788, 62, 8056, 220, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 796, 513, 6739, 628, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 62, 83, 3064, 7, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 3868, 62, 26495, 62, 39994, 62, 38942, 671, 93, 2617, 62, 68, 3639, 62, 3803, 540, 13, 628, 220, 220, 220, 21504, 62, 39994, 3784, 2617, 62, 68, 3639, 62, 3803, 540, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 3803, 540, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 3803, 540, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 282, 1493, 62, 3803, 540, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 282, 1493, 62, 403, 24162, 220, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 24162, 62, 1525, 62, 847, 62, 7220, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 41771, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 604, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 3137, 62, 25598, 220, 220, 220, 220, 220, 220, 220, 220, 796, 642, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 2934, 33342, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 718, 198, 220, 220, 220, 220, 220, 220, 220, 7170, 62, 32165, 495, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 767, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 259, 12102, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 807, 198, 220, 220, 220, 220, 220, 220, 220, 10059, 62, 18224, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 860, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 838, 6739, 628, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 62, 83, 3064, 7, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 3868, 62, 26495, 62, 39994, 62, 38942, 671, 93, 21928, 62, 68, 3639, 13, 628, 220, 220, 220, 21504, 62, 39994, 3784, 21928, 62, 68, 3639, 7, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 1662, 62, 3803, 540, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 259, 12102, 220, 220, 220, 220, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 16769, 62, 259, 62, 10215, 81, 220, 220, 220, 220, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 7170, 62, 32165, 495, 220, 220, 220, 796, 604, 198, 220, 220, 220, 220, 220, 220, 220, 10059, 62, 18224, 220, 220, 220, 220, 220, 796, 642, 198, 220, 220, 220, 220, 220, 220, 220, 1788, 62, 8056, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 718, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 767, 6739, 628, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 62, 83, 3064, 7, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 3868, 62, 26495, 62, 39994, 62, 38942, 671, 93, 1136, 62, 439, 62, 1078, 7657, 13, 628, 220, 220, 220, 21504, 62, 39994, 3784, 1136, 62, 439, 62, 1078, 7657, 7, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 304, 62, 26495, 62, 39994, 62, 7890, 796, 44608, 62, 26495, 62, 39994, 62, 7890, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 259, 12102, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 362, 6739, 628, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 62, 83, 3064, 7, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 3868, 62, 26495, 62, 39994, 62, 38942, 671, 93, 2617, 62, 3803, 540, 13, 628, 220, 220, 220, 21504 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_atbash_cipher_example DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. METHODS decode IMPORTING !cipher_text TYPE string RETURNING VALUE(plain_text) TYPE string . METHODS encode IMPORTING !plain_text TYPE string RETURNING VALUE(cipher_text) TYPE string . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_atbash_cipher_example IMPLEMENTATION. METHOD DECODE. plain_text = replace( val = encode( cipher_text ) sub = ` ` with = `` occ = 0 ). ENDMETHOD. METHOD ENCODE. CONSTANTS abc TYPE string VALUE 'abcdefghijklmnopqrstuvwxyz'. DATA(text) = replace( val = to_lower( plain_text ) regex = `[ .,]` with = `` occ = 0 ). DATA(idx) = 0. WHILE idx < strlen( text ). DATA(pos) = 25 - find( val = abc sub = text+idx(1) ). IF pos BETWEEN 0 AND 25. cipher_text = cipher_text && substring( val = abc off = pos len = 1 ). ELSE. cipher_text = cipher_text && text+idx(1). ENDIF. idx = idx + 1. IF idx MOD 5 = 0 AND idx < strlen( text ). cipher_text = cipher_text && ` `. ENDIF. ENDWHILE. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 265, 41757, 62, 66, 10803, 62, 20688, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 36899, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 66, 10803, 62, 5239, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 25638, 62, 5239, 8, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252, 50, 37773, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 25638, 62, 5239, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 66, 10803, 62, 5239, 8, 41876, 4731, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 265, 41757, 62, 66, 10803, 62, 20688, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 27196, 16820, 13, 198, 220, 220, 220, 8631, 62, 5239, 796, 6330, 7, 198, 220, 220, 220, 220, 220, 1188, 220, 796, 37773, 7, 38012, 62, 5239, 1267, 198, 220, 220, 220, 220, 220, 850, 220, 796, 4600, 4600, 198, 220, 220, 220, 220, 220, 351, 796, 7559, 198, 220, 220, 220, 220, 220, 1609, 220, 796, 657, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 412, 7792, 16820, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 450, 66, 41876, 4731, 26173, 8924, 705, 39305, 4299, 456, 2926, 41582, 10295, 404, 80, 81, 301, 14795, 86, 5431, 89, 4458, 198, 220, 220, 220, 42865, 7, 5239, 8, 796, 6330, 7, 1188, 220, 220, 796, 284, 62, 21037, 7, 8631, 62, 5239, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 40364, 796, 4600, 58, 764, 11, 60, 63, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 351, 220, 796, 7559, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1609, 220, 220, 796, 657, 6739, 198, 220, 220, 220, 42865, 7, 312, 87, 8, 796, 657, 13, 198, 220, 220, 220, 7655, 41119, 4686, 87, 1279, 965, 11925, 7, 2420, 6739, 198, 220, 220, 220, 220, 220, 42865, 7, 1930, 8, 796, 1679, 532, 1064, 7, 1188, 796, 450, 66, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 850, 796, 2420, 10, 312, 87, 7, 16, 8, 6739, 198, 220, 220, 220, 220, 220, 16876, 1426, 38651, 8845, 1677, 657, 5357, 1679, 13, 198, 220, 220, 220, 220, 220, 220, 220, 38012, 62, 5239, 796, 38012, 62, 5239, 11405, 3293, 1806, 7, 1188, 796, 450, 66, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 572, 796, 1426, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18896, 796, 352, 6739, 198, 220, 220, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 220, 220, 38012, 62, 5239, 796, 38012, 62, 5239, 11405, 2420, 10, 312, 87, 7, 16, 737, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 4686, 87, 796, 4686, 87, 1343, 352, 13, 198, 220, 220, 220, 220, 220, 16876, 4686, 87, 19164, 642, 796, 657, 5357, 4686, 87, 1279, 965, 11925, 7, 2420, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 38012, 62, 5239, 796, 38012, 62, 5239, 11405, 4600, 4600, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 12418, 41119, 13, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*"* use this source file for your ABAP unit test classes class ltcl_modify_eml definition final for testing duration short risk level harmless. private section. methods create_valid_inst_no_record for testing raising cx_static_check. methods create_invalid_entity_instance for testing raising cx_static_check. methods create_inst_incomplete_key for testing raising cx_static_check. methods create_valid_inst_by_assoc for testing raising cx_static_check. methods create_invalid_inst_by_assoc_1 for testing raising cx_static_check. methods create_invalid_inst_by_assoc_2 for testing raising cx_static_check. methods update_invalid_instance for testing raising cx_static_check. methods update_valid_instance for testing raising cx_static_check. methods update_inst_imcomplete_key for testing raising cx_static_check. methods delete_inst_incomplete_key for testing raising cx_static_check. methods delete_valid_instance for testing raising cx_static_check. methods delete_valid_instance_2 for testing raising cx_static_check. methods delete_invalid_instance for testing raising cx_static_check. methods cascading_delete_ok for testing raising cx_static_check. methods complex_modify for testing raising cx_static_check. methods modify_with_multiple_ops for testing raising cx_static_check. methods mock_multiple_instances for testing raising cx_static_check. methods create_valid_inst_with_record for testing raising cx_static_check. methods create_passes_update_fails for testing raising cx_static_check. methods teardown. class-methods class_setup. class-data double type ref to zcl_abap_behv_generic_tst_dbl5. endclass. class ltcl_modify_eml implementation. method class_setup. double = new zcl_abap_behv_generic_tst_dbl5( '/dmo/i_travel_tum' ). cl_abap_behv_test_environment=>set_test_double( double ). endmethod. method teardown. double->clear_buffer( ). endmethod. method create_invalid_entity_instance. "Record modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). "Try t create the same instance modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported1) failed data(failed1) mapped data(mapped1). cl_abap_unit_assert=>assert_initial( mapped1 ). " Clear the buffer " TODO: API to clear the double transactional buffer. modify entities of /dmo/i_travel_tum entity travel delete from value #( ( %key-TravelID = '987' ) ). endmethod. method mock_multiple_instances. double = new zcl_abap_behv_generic_tst_dbl5( '/dmo/i_travel_tmn' ). cl_abap_behv_test_environment=>set_test_double( double ). data: cut type ref to zcl_abap_behv_test_demo . cut = new zcl_abap_behv_test_demo( ). modify entities of /dmo/i_travel_tmn entity travel create from value #( ( travel_id = '987' ) ) reported data(reported2) failed data(failed2) mapped data(mapped2). "Inserting duplicate test data modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ( travelid = '987' currencycode = 'EUR' %control-currencycode = if_abap_behv=>mk-on ) ) reported data(reported3) failed data(failed3) mapped data(mapped3). "Read read entity /dmo/i_travel_tum from value #( ( travelid = '987' %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) result data(result) reported data(reported) failed data(failed). read entity /dmo/i_travel_tmn from value #( ( travel_id = '987' %control-begin_date = if_abap_behv=>mk-on ) ) result data(result4) reported data(reported4) failed data(failed4). cl_abap_unit_assert=>assert_not_initial( result ). cl_abap_unit_assert=>assert_not_initial( result4 ). " Clear the buffer " TODO: API to clear the double transactional buffer. modify entities of /dmo/i_travel_tum entity travel delete from value #( ( %key-TravelID = '987' ) ). endmethod. method complex_modify. endmethod. method create_inst_incomplete_key. "if key is incomplete 00000 is the value that is assigned by default to a key. * modify entities of /dmo/i_travel_tum * entity travel * create from value #( * ( begindate = '20180101' EndDate = '20180101' * totalprice = 100 * %control-begindate = if_abap_behv=>mk-on * %control-totalprice = if_abap_behv=>mk-on ) * ) * reported data(reported3) * failed data(failed3) * mapped data(mapped3). * * cl_abap_unit_assert=>assert_initial( mapped3 ). " assertion fails because if key is incomplete 00000 is the value that is * " assigned by default to a key. endmethod. method create_valid_inst_no_record. "No record step. the create in CUT will perform the create op on the buffer directly. " CUT modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). cl_abap_unit_assert=>assert_not_initial( mapped ). cl_abap_unit_assert=>assert_initial( failed ). cl_abap_unit_assert=>assert_initial( reported ). " Clear the buffer " TODO: API to clear the double transactional buffer. modify entities of /dmo/i_travel_tum entity travel delete from value #( ( %key-TravelID = '987' ) ). endmethod. method create_valid_inst_with_record. "CUT has create EML. "Step 1: Record the instance for which create EML has to be evaluated. "Step 2: Configure the Create Operation in CUT to succeed. "Record. "Step 1. modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). "Step 2. clear reported. clear failed. "change mapped if required. mapped-travel = value #( ( TravelID = '987' ) ). double->config_response_4_modify( operation = if_abap_behv=>op-m-create mapped = mapped failed = failed reported = failed ). " CUT modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported_cut) failed data(failed_cut) mapped data(mapped_cut). cl_abap_unit_assert=>assert_not_initial( mapped_cut ). cl_abap_unit_assert=>assert_initial( failed_cut ). cl_abap_unit_assert=>assert_initial( reported_cut ). " Clear the buffer " TODO: API to clear the double transactional buffer. modify entities of /dmo/i_travel_tum entity travel delete from value #( ( %key-TravelID = '987' ) ). endmethod. method delete_inst_incomplete_key. endmethod. method delete_invalid_instance. modify entities of /dmo/i_travel_tum entity travel delete from value #( ( %key-TravelID = '987' ) ) reported data(reported) failed data(failed) mapped data(mapped). cl_abap_unit_assert=>assert_initial( mapped ). cl_abap_unit_assert=>assert_not_initial( failed ). cl_abap_unit_assert=>assert_not_initial( reported ). endmethod. method delete_valid_instance. " Record test data modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). " cuts modify entities of /dmo/i_travel_tum entity travel delete from value #( ( %key-TravelID = '987' ) ) reported data(reported2) failed data(failed2) mapped data(mapped2). cl_abap_unit_assert=>assert_initial( mapped2 ). cl_abap_unit_assert=>assert_initial( failed2 ). cl_abap_unit_assert=>assert_initial( reported2 ). endmethod. method delete_valid_instance_2. "This method tries to check the use-case : "if the root-instance is deleted then associated entities are also deleted." " Record test data for root entity modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). " Record test data for associated entity ""Create booking by association modify entities of /dmo/i_travel_tum entity travel create by \_Booking from value #( ( %key-TravelID = '987' %target = value #( ( BookingID = '333' BookingDate = '20200902' FlightPrice = '100' %control-BookingDate = if_abap_behv=>mk-on %control-FlightPrice = if_abap_behv=>mk-on ) ) ) ) mapped data(ls_mapped) failed data(ls_failed) reported data(ls_reported). " cuts modify entities of /dmo/i_travel_tum entity travel delete from value #( ( %key-TravelID = '987' ) ) reported data(reported2) failed data(failed2) mapped data(mapped2). "Check that associated entity should is also deleted - i.e. cascading delete "Read the booking entity read entity /dmo/i_travel_tum by \_Booking from value #( ( travelid = '987' %control-FlightPrice = if_abap_behv=>mk-on %control-BookingDate = if_abap_behv=>mk-on %control-BookingID = if_abap_behv=>mk-on ) ) result data(result3) reported data(reported3) failed data(failed3). cl_abap_unit_assert=>assert_initial( mapped2 ). cl_abap_unit_assert=>assert_initial( failed2 ). cl_abap_unit_assert=>assert_initial( reported2 ). endmethod. method cascading_delete_ok. "Insert test travel entity modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ( travelid = '988' begindate = '20180101' EndDate = '20180101' totalprice = 200 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). "Insert test booking instance modify entities of /dmo/i_travel_tum entity travel create by \_Booking from value #( ( %key-TravelID = '988' %target = value #( ( BookingDate = '20200902' FlightPrice = '100' %control-BookingDate = if_abap_behv=>mk-on %control-FlightPrice = if_abap_behv=>mk-on ) ) ) ) mapped data(ls_mapped) failed data(ls_failed) reported data(ls_reported). "Insert test booking supplement instance modify entities of /dmo/i_travel_tum entity booking create by \_BookSuppl from value #( ( %key-TravelID = '988' %key-BookingID = '000' %target = value #( ( Price = '100' %control-Price = if_abap_behv=>mk-on ) ) ) ) mapped ls_mapped failed ls_failed reported ls_reported. " Confirm if test data was inserted sucessfully READ ENTITIES OF /dmo/i_travel_tum ENTITY TRAVEL all fields with value #( ( %key-TravelID = '987' ) ( %key-TravelID = '988' ) ) result data(lt_result_travel) by \_Booking all fields with value #( ( %key-TravelID ='987' ) ( %key-TravelID ='988' ) ) result data(lt_result_booking) entity booking by \_BookSuppl all fields with value #( ( %key-travelid = '987' %key-bookingid = '000' ) ( %key-travelid = '988' %key-bookingid = '000' ) ) result data(lt_result_bookSupp) failed failed reported data(lt_reported). " Delete the travel instance "Cascading delete MODIFY ENTITIES OF /dmo/i_travel_tum ENTITY Travel DELETE FROM VALUE #( ( %key-travelid = '988' ) ) FAILED DATA(failed_delete) REPORTED DATA(reported_delete) MAPPED DATA(mapped_delete). READ ENTITIES OF /dmo/i_travel_tum ENTITY TRAVEL all fields with value #( ( %key-TravelID = '987' ) ( %key-TravelID = '988' ) ) result lt_result_travel by \_Booking all fields with value #( ( %key-TravelID ='987' ) ( %key-TravelID ='988' ) ) result lt_result_booking entity booking by \_BookSuppl all fields with value #( ( %key-travelid = '987' %key-bookingid = '000' ) ( %key-travelid = '988' %key-bookingid = '000' ) ) result lt_result_bookSupp failed failed reported lt_reported. endmethod. method modify_with_multiple_ops. " Create and update in the same modify statement. " Create will pass but update will fail as we try to update an instance that does not exist. modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) update from value #( ( %key-TravelID = '988' EndDate = '20180102' totalprice = 200 %control-enddate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). cl_abap_unit_assert=>assert_not_initial( reported ). cl_abap_unit_assert=>assert_not_initial( failed ). cl_abap_unit_assert=>assert_not_initial( mapped ). cl_abap_unit_assert=>assert_equals( exp = '987' act = mapped-travel[ 1 ]-TravelID ). cl_abap_unit_assert=>assert_equals( exp = '988' act = reported-travel[ 1 ]-TravelID ). cl_abap_unit_assert=>assert_equals( exp = '988' act = failed-travel[ 1 ]-TravelID ). " Clear the buffer " TODO: API to clear the double transactional buffer. modify entities of /dmo/i_travel_tum entity travel delete from value #( ( %key-TravelID = '987' ) ). endmethod. method update_inst_imcomplete_key. endmethod. method update_invalid_instance. modify entities of /dmo/i_travel_tum entity travel update from value #( ( %key-TravelID = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported3) failed data(failed3) mapped data(mapped3). cl_abap_unit_assert=>assert_initial( mapped3 ). cl_abap_unit_assert=>assert_not_initial( failed3 ). cl_abap_unit_assert=>assert_not_initial( reported3 ). endmethod. method update_valid_instance. " Record test data modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). " cut modify entities of /dmo/i_travel_tum entity travel update from value #( ( %key-TravelID = '987' EndDate = '20180102' totalprice = 200 %control-enddate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported2) failed data(failed2) mapped data(mapped2). cl_abap_unit_assert=>assert_not_initial( mapped2 ). " Clear the buffer " TODO: API to clear the double transactional buffer. modify entities of /dmo/i_travel_tum entity travel delete from value #( ( %key-TravelID = '987' ) ). endmethod. method create_valid_inst_by_assoc. " Record step to insert a travel instance for which booking is to be created. modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). ""Create booking by association modify entities of /dmo/i_travel_tum entity travel create by \_Booking from value #( ( %key-TravelID = '987' %target = value #( ( BookingDate = '20200902' FlightPrice = '100' %control-BookingDate = if_abap_behv=>mk-on %control-FlightPrice = if_abap_behv=>mk-on ) ) ) ) mapped data(ls_mapped) failed data(ls_failed) reported data(ls_reported). cl_abap_unit_assert=>assert_initial( ls_failed ). cl_abap_unit_assert=>assert_equals( msg = 'create booking failed' exp = '0000' act = ls_mapped-booking[ 1 ]-BookingID ). " Clear the buffer " TODO: API to clear the double transactional buffer. modify entities of /dmo/i_travel_tum entity travel delete from value #( ( %key-TravelID = '987' ) ). modify entities of /dmo/i_travel_tum entity booking delete from value #( ( %key-TravelID = '987' %key-BookingID = '000' ) ). endmethod. method create_invalid_inst_by_assoc_1. " Record step to insert a travel instance for which booking is to be created. modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). ""Create booking by association- Record modify entities of /dmo/i_travel_tum entity travel create by \_Booking from value #( ( %key-TravelID = '987' %target = value #( ( BookingDate = '20200902' FlightPrice = '100' %control-BookingDate = if_abap_behv=>mk-on %control-FlightPrice = if_abap_behv=>mk-on ) ) ) ) mapped data(ls_mapped) failed data(ls_failed) reported data(ls_reported). cl_abap_unit_assert=>assert_initial( ls_failed ). cl_abap_unit_assert=>assert_equals( msg = 'create booking failed' exp = '0000' act = ls_mapped-booking[ 1 ]-BookingID ). ""Create booking by association- Create the same booking again modify entities of /dmo/i_travel_tum entity travel create by \_Booking from value #( ( %key-TravelID = '987' %target = value #( ( BookingDate = '20200902' FlightPrice = '100' %control-BookingDate = if_abap_behv=>mk-on %control-FlightPrice = if_abap_behv=>mk-on ) ) ) ) mapped ls_mapped failed ls_failed reported ls_reported. cl_abap_unit_assert=>assert_initial( ls_mapped ). cl_abap_unit_assert=>assert_equals( msg = 'create booking should have failed' exp = '0000' act = ls_failed-booking[ 1 ]-BookingID ). cl_abap_unit_assert=>assert_equals( msg = 'create booking should have failed' exp = '01' act = ls_failed-booking[ 1 ]-%create ). cl_abap_unit_assert=>assert_equals( msg = 'create booking should have failed' exp = '0000' act = ls_reported-booking[ 1 ]-BookingID ). " Clear the buffer " TODO: API to clear the double transactional buffer. modify entities of /dmo/i_travel_tum entity travel delete from value #( ( %key-TravelID = '987' ) ). modify entities of /dmo/i_travel_tum entity booking delete from value #( ( %key-TravelID = '987' %key-BookingID = '000' ) ). endmethod. method create_invalid_inst_by_assoc_2. ""Create booking by association "" Travel instance with TravelID 987 does not exist. modify entities of /dmo/i_travel_tum entity travel create by \_Booking from value #( ( %key-TravelID = '987' %target = value #( ( BookingDate = '20200902' FlightPrice = '100' %control-BookingDate = if_abap_behv=>mk-on %control-FlightPrice = if_abap_behv=>mk-on ) ) ) ) mapped data(ls_mapped) failed data(ls_failed) reported data(ls_reported). cl_abap_unit_assert=>assert_initial( ls_mapped ). cl_abap_unit_assert=>assert_equals( msg = 'create booking should have failed' exp = '0000' act = ls_failed-booking[ 1 ]-BookingID ). cl_abap_unit_assert=>assert_equals( msg = 'create booking should have failed' exp = '01' act = ls_failed-booking[ 1 ]-%create ). cl_abap_unit_assert=>assert_equals( msg = 'create booking should have failed' exp = '0000' act = ls_reported-booking[ 1 ]-BookingID ). endmethod. method create_passes_update_fails. "CUT has CREATE EML which should pass. "And a UPDATE EML which should fail. "Step 1: Record the instance for which create and update EML has to be evaluated. "Step 2: Configure the Create Operation in CUT to succeed. "Step 3: Configure the Update Operation in CUT to fail. "Record. "Step 1. modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). "Step 2. clear reported. clear failed. "change mapped if required. mapped-travel = value #( ( TravelID = '987' ) ). double->config_response_4_modify( operation = if_abap_behv=>op-m-create mapped = mapped failed = failed reported = failed ). "Step 3. clear mapped. "change reported if required. "Configure the exception data: lo_bo_exception type ref to z_bo_mock_exception. create object lo_bo_exception. reported-travel = value #( ( TravelID = '987' %msg = lo_bo_exception ) ). failed-travel = value #( ( TravelID = '987' ) ). double->config_response_4_modify( operation = if_abap_behv=>op-m-update mapped = mapped failed = failed reported = reported ). " CUT modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported_cut) failed data(failed_cut) mapped data(mapped_cut). cl_abap_unit_assert=>assert_not_initial( mapped_cut ). cl_abap_unit_assert=>assert_initial( failed_cut ). cl_abap_unit_assert=>assert_initial( reported_cut ). if mapped_cut is not initial. modify entities of /dmo/i_travel_tum entity travel update from value #( ( travelid = '987' totalprice = 200 %control-totalprice = if_abap_behv=>mk-on ) ) reported reported_cut failed failed_cut mapped mapped_cut. cl_abap_unit_assert=>assert_initial( mapped_cut ). cl_abap_unit_assert=>assert_not_initial( failed_cut ). cl_abap_unit_assert=>assert_not_initial( reported_cut ). endif. " Clear the buffer " TODO: API to clear the double transactional buffer. modify entities of /dmo/i_travel_tum entity travel delete from value #( ( %key-TravelID = '987' ) ). endmethod. endclass. class ltcl_read_eml definition final for testing duration short risk level harmless. private section. methods read_valid_entity_instance for testing raising cx_static_check. methods read_valid_entity_instances for testing raising cx_static_check. methods read_invalid_entity_instance for testing raising cx_static_check. methods read_not_existing_bo_node for testing raising cx_static_check. methods read_entity_with_multiple_keys for testing raising cx_static_check. methods read_entity_with_ctrl_struct for testing raising cx_static_check. methods read_mixed_entity_instances for testing raising cx_static_check. methods read_valid_instance_by_assoc for testing raising cx_static_check. methods read_invalid_inst_by_assoc_1 for testing raising cx_static_check. methods read_invalid_inst_by_assoc_2 for testing raising cx_static_check. methods read_invalid_inst_by_assoc_3 for testing raising cx_static_check. methods report_an_instance_for_modify for testing raising cx_static_check. methods report_an_instance_for_read for testing raising cx_static_check. class-methods class_setup. methods teardown. class-data double type ref to zcl_abap_behv_generic_tst_dbl5. endclass. class ltcl_read_eml implementation. method class_setup. double = new zcl_abap_behv_generic_tst_dbl5( '/dmo/i_travel_tum' ). cl_abap_behv_test_environment=>set_test_double( double ). endmethod. method read_entity_with_ctrl_struct. " TODO: Check if required. endmethod. method read_entity_with_multiple_keys. " A booking with TravelID and BookingID as keys " Record test data " create travel instance modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ( travelid = '000' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). " create booking instance modify entities of /dmo/i_travel_tum entity booking create from value #( ( travelid = '987' BookingID = '001' BookingDate = '20200902' FlightPrice = '100' %control-BookingDate = if_abap_behv=>mk-on %control-FlightPrice = if_abap_behv=>mk-on ) ( travelid = '000' BookingID = '001' BookingDate = '20200902' FlightPrice = '100' %control-BookingDate = if_abap_behv=>mk-on %control-FlightPrice = if_abap_behv=>mk-on ) ) reported reported failed failed mapped mapped. " CUT " Read booking read entities of /dmo/i_travel_tum entity booking from value #( ( travelid = '987' BookingID = '001' %control-FlightPrice = if_abap_behv=>mk-on ) ) result data(result) reported reported failed failed. cl_abap_unit_assert=>assert_not_initial( result ). cl_abap_unit_assert=>assert_initial( failed ). cl_abap_unit_assert=>assert_initial( reported ). cl_abap_unit_assert=>assert_equals( msg = 'read failed' exp = '100' act = result[ 1 ]-FlightPrice ). read entities of /dmo/i_travel_tum entity booking from value #( ( travelid = '988' BookingID = '001' %control-FlightPrice = if_abap_behv=>mk-on ) ) result result reported reported failed failed. cl_abap_unit_assert=>assert_equals( msg = 'read passed' exp = '988' act = failed-booking[ 1 ]-TravelID ). cl_abap_unit_assert=>assert_equals( msg = 'read passed' exp = '001' act = failed-booking[ 1 ]-BookingID ). read entities of /dmo/i_travel_tum entity booking from value #( ( travelid = '987' BookingID = '002' %control-FlightPrice = if_abap_behv=>mk-on ) ) result result reported reported failed failed. cl_abap_unit_assert=>assert_equals( msg = 'read passed' exp = '987' act = failed-booking[ 1 ]-TravelID ). cl_abap_unit_assert=>assert_equals( msg = 'read passed' exp = '002' act = failed-booking[ 1 ]-BookingID ). read entities of /dmo/i_travel_tum entity booking from value #( ( BookingID = '001' %control-FlightPrice = if_abap_behv=>mk-on ) ) result result reported reported failed failed. cl_abap_unit_assert=>assert_equals( msg = 'read failed' exp = '100' act = result[ 1 ]-FlightPrice ). " Clear the buffer " TODO: API to clear the double transactional buffer. modify entities of /dmo/i_travel_tum entity travel delete from value #( ( %key-TravelID = '987' ) ( %key-TravelID = '000' ) ). modify entities of /dmo/i_travel_tum entity booking delete from value #( ( %key-TravelID = '987' %key-BookingID = '001' ) ( %key-TravelID = '000' %key-BookingID = '001' ) ). endmethod. method read_invalid_entity_instance. " read an entity that does not exist " Record test data modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). " Read travel entity which does not exist read entity /dmo/i_travel_tum from value #( ( travelid = '988' %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) result data(result) reported reported failed failed. cl_abap_unit_assert=>assert_initial( result ). cl_abap_unit_assert=>assert_not_initial( failed ). cl_abap_unit_assert=>assert_not_initial( reported ). cl_abap_unit_assert=>assert_equals( msg = 'read passed' exp = '988' act = failed-travel[ 1 ]-TravelID ). " Clear the buffer " TODO: API to clear the double transactional buffer. modify entities of /dmo/i_travel_tum entity travel delete from value #( ( %key-TravelID = '987' ) ). endmethod. method read_mixed_entity_instances. " read an entity that does not exist and read an entity that exists " Record test data modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). " Read travel entity which does not exist read entity /dmo/i_travel_tum from value #( ( travelid = '987' %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ( travelid = '988' %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) result data(result) reported reported failed failed. cl_abap_unit_assert=>assert_equals( msg = 'read failed for travel id 987' exp = '987' act = result[ 1 ]-TravelID ). cl_abap_unit_assert=>assert_equals( msg = 'read passed for travel id 988' exp = '988' act = failed-travel[ 1 ]-TravelID ). " Clear the buffer " TODO: API to clear the double transactional buffer. modify entities of /dmo/i_travel_tum entity travel delete from value #( ( %key-TravelID = '987' ) ). endmethod. method read_not_existing_bo_node. " Results in a compile time error to read a non existing bo node. endmethod. method read_valid_entity_instance. " Record test data modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 memo = 'travel 1' %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on %control-Memo = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). " CUT read entity /dmo/i_travel_tum from value #( ( travelid = '987' %control-Memo = if_abap_behv=>mk-on ) ) result data(result) reported data(reported2) failed data(failed2). cl_abap_unit_assert=>assert_not_initial( result ). cl_abap_unit_assert=>assert_initial( reported2 ). cl_abap_unit_assert=>assert_initial( failed2 ). cl_abap_unit_assert=>assert_equals( msg = 'read failed' exp = '987' act = result[ 1 ]-TravelID ). cl_abap_unit_assert=>assert_equals( msg = 'read failed' exp = 'travel 1' act = result[ 1 ]-Memo ). " Clear the buffer " TODO: API to clear the double transactional buffer. modify entities of /dmo/i_travel_tum entity travel delete from value #( ( %key-TravelID = '987' ) ). endmethod. method read_valid_entity_instances. " Record test data modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 Memo = 'travel 1' %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on %control-Memo = if_abap_behv=>mk-on ) ( travelid = '988' begindate = '20190101' EndDate = '20190101' totalprice = 300 Memo = 'travel 2' %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on %control-Memo = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). " CUT read entity /dmo/i_travel_tum from value #( ( travelid = '987' %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ( travelid = '988' %control-memo = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) result data(result) reported data(reported2) failed data(failed2). cl_abap_unit_assert=>assert_not_initial( result ). cl_abap_unit_assert=>assert_initial( reported2 ). cl_abap_unit_assert=>assert_initial( failed2 ). read table result with key TravelID = '988' into data(travel). cl_abap_unit_assert=>assert_equals( msg = 'read failed' exp = 0 act = sy-subrc ). cl_abap_unit_assert=>assert_equals( msg = 'read failed' exp = 'travel 2' act = travel-Memo ). " Clear the buffer " TODO: API to clear the double transactional buffer. modify entities of /dmo/i_travel_tum entity travel delete from value #( ( %key-TravelID = '987' ) ( %key-TravelID = '988' ) ). endmethod. method read_valid_instance_by_assoc. " Record step to insert a travel instance . modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). ""Record: Create booking by association modify entities of /dmo/i_travel_tum entity travel create by \_Booking from value #( ( %key-TravelID = '987' %target = value #( ( "Since no booking Id is passed booking id 0000 will be assigned to the booking BookingDate = '20200902' FlightPrice = '100' %control-BookingDate = if_abap_behv=>mk-on %control-FlightPrice = if_abap_behv=>mk-on ) ) ) ) mapped data(ls_mapped) failed data(ls_failed) reported data(ls_reported). cl_abap_unit_assert=>assert_initial( ls_failed ). cl_abap_unit_assert=>assert_equals( msg = 'create booking failed' exp = '0000' act = ls_mapped-booking[ 1 ]-BookingID ). " CUT read entity /dmo/i_travel_tum by \_Booking from value #( ( travelid = '987' %control-FlightPrice = if_abap_behv=>mk-on %control-BookingDate = if_abap_behv=>mk-on ) ) result data(result) reported data(reported2) failed data(failed2). cl_abap_unit_assert=>assert_not_initial( result ). cl_abap_unit_assert=>assert_initial( reported2 ). cl_abap_unit_assert=>assert_initial( failed2 ). read table result with key bookingid = '000' into data(booking). cl_abap_unit_assert=>assert_equals( msg = 'read failed' exp = 0 act = sy-subrc ). " Clear the buffer " TODO: API to clear the double transactional buffer. modify entities of /dmo/i_travel_tum entity travel delete from value #( ( %key-TravelID = '987' ) ( %key-TravelID = '000' ) ). modify entities of /dmo/i_travel_tum entity booking delete from value #( ( %key-TravelID = '987' %key-BookingID = '001' ) ( %key-TravelID = '000' %key-BookingID = '001' ) ). endmethod. method read_invalid_inst_by_assoc_1. " No booking is present for the queried travel " Record step to insert a travel instance . modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). ""NO booking * modify entities of /dmo/i_travel_tum * entity travel * create by \_Booking * from value #( ( %key-TravelID = '987' * %target = value #( ( * BookingDate = '20200902' * FlightPrice = '100' * %control-BookingDate = if_abap_behv=>mk-on * %control-FlightPrice = if_abap_behv=>mk-on * ) ) * ) ) * MAPPED DATA(ls_mapped) * FAILED DATA(ls_failed) * REPORTED DATA(ls_reported). * * cl_abap_unit_assert=>assert_initial( ls_failed ). * cl_abap_unit_assert=>assert_equals( msg = 'create booking failed' exp = '0000' act = ls_mapped-booking[ 1 ]-BookingID ). " CUT read entity /dmo/i_travel_tum by \_Booking from value #( ( travelid = '987' %control-FlightPrice = if_abap_behv=>mk-on %control-BookingDate = if_abap_behv=>mk-on ) ) result data(result) reported data(reported2) failed data(failed2). cl_abap_unit_assert=>assert_initial( result ). cl_abap_unit_assert=>assert_initial( reported2 ). cl_abap_unit_assert=>assert_initial( failed2 ). " Clear the buffer " TODO: API to clear the double transactional buffer. modify entities of /dmo/i_travel_tum entity travel delete from value #( ( %key-TravelID = '987' ) ). endmethod. method read_invalid_inst_by_assoc_2. " queried travel for booking does not exist " Record step to insert a travel instance . modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). " CUT read entity /dmo/i_travel_tum by \_Booking from value #( ( travelid = '988' %control-FlightPrice = if_abap_behv=>mk-on %control-BookingDate = if_abap_behv=>mk-on ) ) result data(result) reported data(reported2) failed data(failed2). cl_abap_unit_assert=>assert_initial( result ). cl_abap_unit_assert=>assert_not_initial( failed2 ). cl_abap_unit_assert=>assert_equals( msg = 'read should failed' exp = '988' act = failed2-travel[ 1 ]-TravelID ). cl_abap_unit_assert=>assert_equals( msg = 'read should failed' exp = '01' act = failed2-travel[ 1 ]-%assoc-_Booking ). " Clear the buffer " TODO: API to clear the double transactional buffer. modify entities of /dmo/i_travel_tum entity travel delete from value #( ( %key-TravelID = '987' ) ). endmethod. method read_invalid_inst_by_assoc_3. " No travel entity instance exists in buffer " Querying a travel for booking will fail " Record step to insert a travel instance . * modify entities of /dmo/i_travel_tum * entity travel * create from value #( ( travelid = '987' * begindate = '20180101' EndDate = '20180101' * totalprice = 100 * %control-begindate = if_abap_behv=>mk-on * %control-totalprice = if_abap_behv=>mk-on ) * ) * reported data(reported) * failed data(failed) * mapped data(mapped). " CUT read entity /dmo/i_travel_tum by \_Booking from value #( ( travelid = '988' %control-FlightPrice = if_abap_behv=>mk-on %control-BookingDate = if_abap_behv=>mk-on ) ) result data(result) reported data(reported2) failed data(failed2). cl_abap_unit_assert=>assert_initial( result ). cl_abap_unit_assert=>assert_not_initial( failed2 ). cl_abap_unit_assert=>assert_equals( msg = 'read should failed' exp = '988' act = failed2-travel[ 1 ]-TravelID ). cl_abap_unit_assert=>assert_equals( msg = 'read should failed' exp = '01' act = failed2-travel[ 1 ]-%assoc-_Booking ). endmethod. method report_an_instance_for_modify. "Record modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). Clear mapped. "Configure the exception data: lo_bo_exception type ref to z_bo_mock_exception. create object lo_bo_exception. reported-travel = value #( ( TravelID = '987' %msg = lo_bo_exception ) ). double->config_response_4_modify( operation = if_abap_behv=>op-m-create mapped = mapped reported = reported failed = failed ). "double->config_success_response( mapped = mapped ). "Replay - code under test modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported1) failed data(failed1) mapped data(mapped1). cl_abap_unit_assert=>assert_equals( exp = 1 act = lines( reported1-travel ) ). endmethod. method report_an_instance_for_read. "Record modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). data: lo_bo_exception type ref to z_bo_mock_exception. create object lo_bo_exception. reported-travel = value #( ( TravelID = '987' %msg = lo_bo_exception ) ). data read_result type table for read result /DMO/I_Travel_TUM. double->config_response_4_read( operation = if_abap_behv=>op-r-read reported = reported failed = failed result = read_result ). read entity /dmo/i_travel_tum from value #( ( travelid = '987' %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) result data(result) reported data(reported2) failed data(failed2). cl_abap_unit_assert=>assert_equals( exp = reported act = reported2 ). endmethod. method teardown. double->clear_buffer( ). endmethod. endclass. class ltcl_eml_w_response_config definition final for testing duration short risk level harmless. private section. methods create_valid_inst_with_record for testing raising cx_static_check. methods create_passes_update_fails for testing raising cx_static_check. methods update_inst_mult_mapped_config for testing raising cx_static_check. methods create_fails_read_fails for testing raising cx_static_check. methods create_fails_read_passes for testing raising cx_static_check. methods configure_result_for_read for testing raising cx_static_check. methods configure_with_empty_structs for testing raising cx_static_check. methods configure_with_invalid_op for testing raising cx_static_check. methods config_res_multi_entities for testing raising cx_static_check. methods mapped_n_failed_configured for testing raising cx_static_check. methods cba_config_mapped for testing raising cx_static_check. methods cba_config_failed for testing raising cx_static_check. methods rba_config_result for testing raising cx_static_check. methods rba_config_failed for testing raising cx_static_check. methods config_res_multi_inst for testing raising cx_static_check. methods rba_fails_read_pass for testing raising cx_static_check. methods teardown. class-methods class_setup. class-data double type ref to zcl_abap_behv_generic_tst_dbl5. endclass. class ltcl_eml_w_response_config implementation. method class_setup. double = new zcl_abap_behv_generic_tst_dbl5( '/dmo/i_travel_tum' ). cl_abap_behv_test_environment=>set_test_double( double ). endmethod. method teardown. double->clear_buffer( ). endmethod. method update_inst_mult_mapped_config. " multiple mapped configurations for the same instance and operation(here update). " Unsure Behavior endmethod. method configure_result_for_read. "CUT has READ EML which should pass. "But returns different values for other field values. "Hence requires the use of configure response api for read. "Step 1: Record the instance for which READ EML has to be evaluated. "Step 2: Configure the read Operation in CUT to succeed. " Use configure_response_for_read api with result as a parameter. "Record. "Step 1. modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). "Create the result structure. "Can we also provide the structure via some api? Or via Using the Read EML data result_config type table for read result /dmo/i_travel_tum. result_config = value #( ( TravelID = '987' BeginDate = '20180101' EndDate = '20180101' totalprice = 200 " The instance is recorded with the total price 100, " but the read should return total price 200 ) ). "Step 2 double->config_response_4_read( result = result_config operation = if_abap_behv=>op-r-read ). "CUT read entity /dmo/i_travel_tum from value #( ( travelid = '987' %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) result data(result) reported reported failed failed. cl_abap_unit_assert=>assert_equals( msg = 'read failed for travel id 987' exp = '987' act = result[ 1 ]-TravelID ). cl_abap_unit_assert=>assert_equals( msg = 'configuration failed for result' exp = 200 act = result[ 1 ]-TotalPrice ). endmethod. method create_fails_read_fails. "CUT has: CREATE EML which should fail due to a specific reason. " This requires configuring specific response " Consequently READ EML in CUT fails. "Step 1: Record the instance for which CREATE and READ EML has to be evaluated. "Step 2: Configure the CREATE Operation in CUT to Fail with a specific response. "Step 3: Configure the READ Operation in CUT to fail, otherwise it will succeed and read the recorded instance in Step 1. "Record. "Step 1. modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). "Step 2. clear mapped. "Configure the exception data: lo_bo_exception type ref to z_bo_mock_exception. create object lo_bo_exception. reported-travel = value #( ( TravelID = '987' %msg = lo_bo_exception ) ). failed-travel = value #( ( TravelID = '987' %fail-cause = if_abap_behv=>cause-unauthorized ) ). double->config_response_4_modify( operation = if_abap_behv=>op-m-create mapped = mapped failed = failed reported = reported ). "Step 3. clear mapped. "change reported if required. "Configure the exception reported-travel = value #( ( TravelID = '987' %msg = lo_bo_exception ) ). failed-travel = value #( ( TravelID = '987' %fail-cause = if_abap_behv=>cause-not_found ) ). double->config_response_4_read( operation = if_abap_behv=>op-r-read failed = failed reported = reported ). " CUT "CREATE modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported_create) failed data(failed_create) mapped data(mapped_create). cl_abap_unit_assert=>assert_initial( mapped_create ). cl_abap_unit_assert=>assert_not_initial( failed_create ). cl_abap_unit_assert=>assert_not_initial( reported_create ). cl_abap_unit_assert=>assert_equals( msg = 'configuration for create failed' exp = lo_bo_exception->get_text( ) act = reported_create-travel[ 1 ]-%msg->if_message~get_text( ) ). cl_abap_unit_assert=>assert_equals( msg = 'configuration for create failed' exp = if_abap_behv=>cause-unauthorized act = failed_create-travel[ 1 ]-%fail-cause ). "READ read entities of /dmo/i_travel_tum entity travel from value #( ( travelid = '987' %control-totalprice = if_abap_behv=>mk-on ) ) result data(read_result) reported data(read_reported) failed data(read_failed). cl_abap_unit_assert=>assert_initial( read_result ). cl_abap_unit_assert=>assert_not_initial( read_reported ). cl_abap_unit_assert=>assert_not_initial( read_failed ). cl_abap_unit_assert=>assert_equals( msg = 'configuration for read failed' exp = if_abap_behv=>cause-not_found act = read_failed-travel[ 1 ]-%fail-cause ). endmethod. method create_fails_read_passes. "CUT has: CREATE EML which should fail due to already existing instance. " But READ EML in CUT passes. "Step 1: Record the instance for which CREATE has to be evaluated. "No further configuration required "Record. "Step 1. modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). " CUT "CREATE modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported_create) failed data(failed_create) mapped data(mapped_create). cl_abap_unit_assert=>assert_initial( mapped_create ). cl_abap_unit_assert=>assert_not_initial( failed_create ). cl_abap_unit_assert=>assert_not_initial( reported_create ). cl_abap_unit_assert=>assert_equals( msg = 'configuration for create failed' act = reported_create-travel[ 1 ]-TravelID exp = '987' ). "READ read entities of /dmo/i_travel_tum entity travel from value #( ( travelid = '987' %control-totalprice = if_abap_behv=>mk-on ) ) result data(read_result) reported data(read_reported) failed data(read_failed). cl_abap_unit_assert=>assert_not_initial( read_result ). cl_abap_unit_assert=>assert_initial( read_reported ). cl_abap_unit_assert=>assert_initial( read_failed ). cl_abap_unit_assert=>assert_equals( msg = 'read failed' exp = read_result[ 1 ]-TotalPrice act = 100 ). cl_abap_unit_assert=>assert_initial( read_result[ 1 ]-BeginDate ). "Created but not requested in read endmethod. method create_passes_update_fails. "CUT has CREATE EML which should pass. "And a UPDATE EML which should fail. "Step 1: Record the instance for which create and update EML has to be evaluated. "Step 2: Configure the Create Operation in CUT to succeed. "Step 3: Configure the Update Operation in CUT to fail. "Record. "Step 1. modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). "Step 2. clear reported. clear failed. "change mapped if required. mapped-travel = value #( ( TravelID = '987' ) ). double->config_response_4_modify( operation = if_abap_behv=>op-m-create mapped = mapped failed = failed reported = failed ). "Step 3. clear mapped. "change reported if required. "Configure the exception data: lo_bo_exception type ref to z_bo_mock_exception. create object lo_bo_exception. reported-travel = value #( ( TravelID = '987' %msg = lo_bo_exception ) ). failed-travel = value #( ( TravelID = '987' ) ). double->config_response_4_modify( operation = if_abap_behv=>op-m-update mapped = mapped failed = failed reported = reported ). " CUT modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported_cut) failed data(failed_cut) mapped data(mapped_cut). cl_abap_unit_assert=>assert_not_initial( mapped_cut ). cl_abap_unit_assert=>assert_initial( failed_cut ). cl_abap_unit_assert=>assert_initial( reported_cut ). if mapped_cut is not initial. modify entities of /dmo/i_travel_tum entity travel update from value #( ( travelid = '987' totalprice = 200 %control-totalprice = if_abap_behv=>mk-on ) ) reported reported_cut failed failed_cut mapped mapped_cut. cl_abap_unit_assert=>assert_initial( mapped_cut ). cl_abap_unit_assert=>assert_not_initial( failed_cut ). cl_abap_unit_assert=>assert_not_initial( reported_cut ). endif. endmethod. method create_valid_inst_with_record. "CUT has create EML. "Step 1: Record the instance for which create EML has to be evaluated. "Step 2: Configure the Create Operation in CUT to succeed. "Record. "Step 1. modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). "Step 2. clear reported. clear failed. "change mapped if required. mapped-travel = value #( ( TravelID = '987' ) ). double->config_response_4_modify( operation = if_abap_behv=>op-m-create mapped = mapped failed = failed reported = reported ). " CUT modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported_cut) failed data(failed_cut) mapped data(mapped_cut). cl_abap_unit_assert=>assert_not_initial( mapped_cut ). cl_abap_unit_assert=>assert_initial( failed_cut ). cl_abap_unit_assert=>assert_initial( reported_cut ). endmethod. method configure_with_empty_structs. " Using configure response api, but mapped/reported/failed are empty " What should be the behavior? endmethod. method configure_with_invalid_op. " Using configure response api, but with invalid operation. " TODO:Current implementation doesn't throw an exception "Record. "Step 1. * modify entities of /dmo/i_travel_tum * entity travel * create from value #( ( travelid = '987' * begindate = '20180101' EndDate = '20180101' * totalprice = 100 * %control-begindate = if_abap_behv=>mk-on * %control-totalprice = if_abap_behv=>mk-on ) * ) * reported data(reported) * failed data(failed) * mapped data(mapped). * * "Step 2. * clear reported. * clear failed. * "change mapped if required. * mapped-travel = value #( ( TravelID = '987' ) ). * double->config_response_4_modify( operation = 'K' mapped = mapped failed = failed reported = reported ). endmethod. method config_res_multi_entities. " CUT has Update EML for Travel and Booking instance, both should fail " Configure response for Update for travel and booking " Use configure_response_for_modify API to configure reported/failed for Update "Step 1: Record the instance for which Update EML has to be evaluated. "Step 2: Configure the Update Operation in CUT to fail. "Step 1 " Record step to insert a travel instance for which booking is to be created. modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). ""Create booking by association modify entities of /dmo/i_travel_tum entity travel create by \_Booking from value #( ( %key-TravelID = '987' %target = value #( ( BookingID = '001' BookingDate = '20200902' FlightPrice = 100 %control-BookingDate = if_abap_behv=>mk-on %control-FlightPrice = if_abap_behv=>mk-on ) ) ) ) mapped data(ls_mapped) failed data(ls_failed) reported data(ls_reported). "Step 3: "Configure the response for update clear ls_mapped. clear ls_failed. clear ls_reported. data: lo_bo_exception type ref to z_bo_mock_exception. create object lo_bo_exception. ls_reported-booking = value #( ( TravelID = '987' BookingID = '001' %msg = lo_bo_exception ) ). ls_reported-travel = value #( ( TravelID = '987' %msg = lo_bo_exception ) ). ls_failed-travel = value #( ( TravelID = '987' %fail-cause = if_abap_behv=>cause-unauthorized ) ). ls_failed-booking = value #( ( TravelID = '987' BookingID = '001' %fail-cause = if_abap_behv=>cause-unauthorized ) ). double->config_response_4_modify( reported = ls_reported failed = ls_failed operation = if_abap_behv=>op-m-update ). " CUT modify entities of /dmo/i_travel_tum entity travel update from value #( ( travelid = '987' totalprice = 200 %control-totalprice = if_abap_behv=>mk-on ) ) entity booking update from value #( ( travelid = '987' BookingID = '001' FlightPrice = 200 %control-FlightPrice = if_abap_behv=>mk-on ) ) reported data(reported_cut) failed data(failed_cut) mapped data(mapped_cut). cl_abap_unit_assert=>assert_initial( mapped_cut ). cl_abap_unit_assert=>assert_not_initial( failed_cut ). cl_abap_unit_assert=>assert_not_initial( reported_cut ). cl_abap_unit_assert=>assert_equals( exp = '987' act = reported_cut-travel[ 1 ]-TravelID ). cl_abap_unit_assert=>assert_equals( exp = '001' act = reported_cut-booking[ 1 ]-BookingID ). cl_abap_unit_assert=>assert_equals( exp = lo_bo_exception->get_text( ) act = reported_cut-travel[ 1 ]-%msg->if_message~get_text( ) ). cl_abap_unit_assert=>assert_equals( exp = lo_bo_exception->get_text( ) act = reported_cut-booking[ 1 ]-%msg->if_message~get_text( ) ). cl_abap_unit_assert=>assert_equals( exp = if_abap_behv=>cause-unauthorized act = failed_cut-travel[ 1 ]-%fail-cause ). cl_abap_unit_assert=>assert_equals( exp = if_abap_behv=>cause-unauthorized act = failed_cut-booking[ 1 ]-%fail-cause ). endmethod. method config_res_multi_inst. "CUT has Create EML for two travel instances. " 1 Passes other fails due to a specific reason. " Use config_response_4_modify API for both the instances. "Step 1: Record the instances for which create EML has to be evaluated. "Step 2: Configure the CREATE Operation in CUT to fail " for one inst and fail for other. "Step 1 " Record step to insert two travel instances for which response is to be configured. modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ( travelid = '988' begindate = '20200101' EndDate = '20201201' totalprice = 200 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). "Step 2 "Configure mapped for successful Create of one instance mapped-travel = value #( ( TravelID = '987' ) ). "Configure failed/reported for failed Create of another instance data: lo_bo_exception type ref to z_bo_mock_exception. create object lo_bo_exception. reported-travel = value #( ( TravelID = '988' %msg = lo_bo_exception ) ). failed-travel = value #( ( TravelID = '988' %fail-cause = if_abap_behv=>cause-unauthorized ) ). double->config_response_4_modify( operation = if_abap_behv=>op-m-create mapped = mapped failed = failed reported = reported ). " CUT modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ( travelid = '988' begindate = '20200101' EndDate = '20201201' totalprice = 200 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported_cut) failed data(failed_cut) mapped data(mapped_cut). cl_abap_unit_assert=>assert_not_initial( mapped_cut ). cl_abap_unit_assert=>assert_not_initial( failed_cut ). cl_abap_unit_assert=>assert_not_initial( reported_cut ). cl_abap_unit_assert=>assert_equals( msg = 'create failed for Travel ID 987' exp = '987' act = mapped_cut-travel[ 1 ]-TravelID ). cl_abap_unit_assert=>assert_equals( msg = 'configuration for create failed' exp = lo_bo_exception->get_text( ) act = reported_cut-travel[ 1 ]-%msg->if_message~get_text( ) ). cl_abap_unit_assert=>assert_equals( msg = 'configuration for create failed' exp = if_abap_behv=>cause-unauthorized act = failed_cut-travel[ 1 ]-%fail-cause ). endmethod. method cba_config_failed. "CUT has a Create By Assoc EML which should fail due to authorization issue. " Use configure_response api to configure failed for this operation "Step 1: Record the instance for which create by assoc EML has to be evaluated. "Step 2: Configure the Create By Assoc Operation in CUT to fail. "Step 1 " Record step to insert a travel instance for which booking is to be created. modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). ""Create booking by association modify entities of /dmo/i_travel_tum entity travel create by \_Booking from value #( ( %key-TravelID = '987' %target = value #( ( BookingID = '001' BookingDate = '20200902' FlightPrice = '100' %control-BookingDate = if_abap_behv=>mk-on %control-FlightPrice = if_abap_behv=>mk-on ) ) ) ) mapped data(ls_mapped) failed data(ls_failed) reported data(ls_reported). "Step 2: clear ls_mapped. clear ls_failed. clear ls_reported. "Configure the exception data: lo_bo_exception type ref to z_bo_mock_exception. create object lo_bo_exception. ls_reported-booking = value #( ( TravelID = '987' BookingID = '001' %msg = lo_bo_exception ) ). ls_failed-booking = value #( ( TravelID = '987' BookingID = '001' %fail-cause = if_abap_behv=>cause-unauthorized ) ). double->config_response_4_modify( operation = if_abap_behv=>op-m-create_ba reported = ls_reported failed = ls_failed ). "CUT ""Create booking by association modify entities of /dmo/i_travel_tum entity travel create by \_Booking from value #( ( %key-TravelID = '987' %target = value #( ( BookingID = '001' BookingDate = '20200902' FlightPrice = '100' %control-BookingDate = if_abap_behv=>mk-on %control-FlightPrice = if_abap_behv=>mk-on ) ) ) ) reported data(reported_cba) failed data(failed_cba) mapped data(mapped_cba). cl_abap_unit_assert=>assert_initial( mapped_cba ). cl_abap_unit_assert=>assert_equals( msg = 'create booking passed' exp = '001' act = reported_cba-booking[ 1 ]-BookingID ). cl_abap_unit_assert=>assert_equals( msg = 'create booking passed' exp = '987' act = reported_cba-booking[ 1 ]-TravelID ). cl_abap_unit_assert=>assert_equals( msg = 'create booking passed' exp = if_abap_behv=>cause-unauthorized act = failed_cba-booking[ 1 ]-%fail-cause ). endmethod. method cba_config_mapped. "CUT has a Create By Assoc EML which should pass. " Use configure_response api to configure mapped for this operation "Step 1: Record the instance for which create by asspc EML has to be evaluated. "Step 2: Configure the Create By Assoc Operation in CUT to succeed. "Step 1 " Record step to insert a travel instance for which booking is to be created. modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). ""Create booking by association modify entities of /dmo/i_travel_tum entity travel create by \_Booking from value #( ( %key-TravelID = '987' %target = value #( ( BookingID = '001' BookingDate = '20200902' FlightPrice = '100' %control-BookingDate = if_abap_behv=>mk-on %control-FlightPrice = if_abap_behv=>mk-on ) ) ) ) mapped data(ls_mapped) failed data(ls_failed) reported data(ls_reported). "Step 2: clear ls_mapped. clear ls_failed. clear ls_reported. ls_mapped-booking = value #( ( TravelID = '987' BookingID = '001' ) ). double->config_response_4_modify( operation = if_abap_behv=>op-m-create_ba mapped = ls_mapped ). "CUT ""Create booking by association modify entities of /dmo/i_travel_tum entity travel create by \_Booking from value #( ( %key-TravelID = '987' %target = value #( ( BookingID = '001' BookingDate = '20200902' FlightPrice = '100' %control-BookingDate = if_abap_behv=>mk-on %control-FlightPrice = if_abap_behv=>mk-on ) ) ) ) reported data(reported_cba) failed data(failed_cba) mapped data(mapped_cba). cl_abap_unit_assert=>assert_initial( reported_cba ). cl_abap_unit_assert=>assert_initial( failed_cba ). cl_abap_unit_assert=>assert_equals( msg = 'create booking failed' exp = '001' act = mapped_cba-booking[ 1 ]-BookingID ). cl_abap_unit_assert=>assert_equals( msg = 'create booking failed' exp = '987' act = mapped_cba-booking[ 1 ]-TravelID ). endmethod. method rba_config_failed. "CUT has a Read By Assoc EML which should fail. " Use configure_response api to configure reported/failed for this operation "Step 1: Record the instance for which read by assoc EML has to be evaluated. "Step 2: Configure the Read By Assoc Operation in CUT to fail. "Step 1 " Record step to insert a travel instance for which booking is to be created. modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). ""Create booking by association modify entities of /dmo/i_travel_tum entity travel create by \_Booking from value #( ( %key-TravelID = '987' %target = value #( ( BookingID = '001' BookingDate = '20200902' FlightPrice = '100' %control-BookingDate = if_abap_behv=>mk-on %control-FlightPrice = if_abap_behv=>mk-on ) ) ) ) mapped data(ls_mapped) failed data(ls_failed) reported data(ls_reported). "Step 2: "Configure the exception data: lo_bo_exception type ref to z_bo_mock_exception. create object lo_bo_exception. ls_reported-booking = value #( ( TravelID = '987' BookingID = '001' %msg = lo_bo_exception ) ). ls_failed-booking = value #( ( TravelID = '987' BookingID = '001' %fail-cause = if_abap_behv=>cause-unauthorized ) ). double->config_response_4_read( reported = ls_reported failed = ls_failed operation = if_abap_behv=>op-r-read_ba ). "CUT ""Read booking by association read entities of /dmo/i_travel_tum entity travel by \_Booking from value #( ( TravelID = '987' %control-BookingDate = if_abap_behv=>mk-on %control-FlightPrice = if_abap_behv=>mk-on ) ) result data(result_rba) reported data(reported_rba) failed data(failed_rba). cl_abap_unit_assert=>assert_initial( result_rba ). cl_abap_unit_assert=>assert_not_initial( reported_rba ). cl_abap_unit_assert=>assert_not_initial( failed_rba ). cl_abap_unit_assert=>assert_equals( msg = 'read booking passed' exp = '001' act = reported_rba-booking[ 1 ]-BookingID ). cl_abap_unit_assert=>assert_equals( msg = 'read booking passed' exp = '987' act = reported_rba-booking[ 1 ]-TravelID ). cl_abap_unit_assert=>assert_equals( msg = 'read booking passed' exp = if_abap_behv=>cause-unauthorized act = failed_rba-booking[ 1 ]-%fail-cause ). endmethod. method rba_config_result. "CUT has a Read By Assoc EML which should pass. " Use configure_response api to configure result for this operation "Step 1: Record the instance for which read by assoc EML has to be evaluated. "Step 2: Configure the Read By Assoc Operation in CUT to succeed. "Step 1 " Record step to insert a travel instance for which booking is to be created. modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). ""Create booking by association modify entities of /dmo/i_travel_tum entity travel create by \_Booking from value #( ( %key-TravelID = '987' %target = value #( ( BookingID = '001' BookingDate = '20200902' FlightPrice = '100' %control-BookingDate = if_abap_behv=>mk-on %control-FlightPrice = if_abap_behv=>mk-on ) ) ) ) mapped data(ls_mapped) failed data(ls_failed) reported data(ls_reported). "Step 2: "Create the result structure. "Can we also provide the structure via some api? Or via Using the Read EML data result_config type table for read result /dmo/i_booking_tum. result_config = value #( ( TravelID = '987' BookingID = '001' BookingDate = '20200902' FlightPrice = '200' " The instance is recorded with the flight price 100, " but the read should return flight price 200 ) ). "Step 2 double->config_response_4_read( result = result_config operation = if_abap_behv=>op-r-read_ba ). "CUT ""Read booking by association read entities of /dmo/i_travel_tum entity travel by \_Booking from value #( ( TravelID = '987' %control-BookingDate = if_abap_behv=>mk-on %control-FlightPrice = if_abap_behv=>mk-on ) ) result data(result_rba) reported data(reported_rba) failed data(failed_rba). cl_abap_unit_assert=>assert_initial( reported_rba ). cl_abap_unit_assert=>assert_initial( failed_rba ). cl_abap_unit_assert=>assert_equals( msg = 'read booking failed' exp = '001' act = result_rba[ 1 ]-BookingID ). cl_abap_unit_assert=>assert_equals( msg = 'read booking failed' exp = '987' act = result_rba[ 1 ]-TravelID ). cl_abap_unit_assert=>assert_equals( msg = 'read booking failed' exp = 200 act = result_rba[ 1 ]-FlightPrice ). endmethod. method rba_fails_read_pass. "CUT has a READ EML on Parent which passes but returns different value for a field "and Read By Assoc EML which should fail. " Use configure_response_for_read API to configure result for read " Use configure_response_for_read API to configure reported/failed for rba "Step 1: Record the instance for which read and read by assoc EML has to be evaluated. "Step 2: Configure the Read Operation in CUT to pass. "Step 3: Configure the Read By Assoc Operation in CUT to fail. "Step 1 " Record step to insert a travel instance for which booking is to be created. modify entities of /dmo/i_travel_tum entity travel create from value #( ( travelid = '987' begindate = '20180101' EndDate = '20180101' totalprice = 100 %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) reported data(reported) failed data(failed) mapped data(mapped). ""Create booking by association modify entities of /dmo/i_travel_tum entity travel create by \_Booking from value #( ( %key-TravelID = '987' %target = value #( ( BookingID = '001' BookingDate = '20200902' FlightPrice = '100' %control-BookingDate = if_abap_behv=>mk-on %control-FlightPrice = if_abap_behv=>mk-on ) ) ) ) mapped data(ls_mapped) failed data(ls_failed) reported data(ls_reported). "Step 2 "Create the result structure. "Can we also provide the structure via some api? Or via Using the Read EML data result_config type table for read result /dmo/i_travel_tum. result_config = value #( ( TravelID = '987' BeginDate = '20180101' EndDate = '20180101' totalprice = 200 " The instance is recorded with the total price 100, " but the read should return total price 200 ) ). double->config_response_4_read( result = result_config operation = if_abap_behv=>op-r-read ). "Step 3: "Configure the exception data: lo_bo_exception type ref to z_bo_mock_exception. create object lo_bo_exception. ls_reported-booking = value #( ( TravelID = '987' BookingID = '001' %msg = lo_bo_exception ) ). ls_failed-booking = value #( ( TravelID = '987' BookingID = '001' %fail-cause = if_abap_behv=>cause-unauthorized ) ). double->config_response_4_read( reported = ls_reported failed = ls_failed operation = if_abap_behv=>op-r-read_ba ). "CUT "Read Parent i.e. Travel instance. read entity /dmo/i_travel_tum from value #( ( travelid = '987' %control-begindate = if_abap_behv=>mk-on %control-totalprice = if_abap_behv=>mk-on ) ) result data(result) reported reported failed failed. cl_abap_unit_assert=>assert_equals( msg = 'read failed for travel id 987' exp = '987' act = result[ 1 ]-TravelID ). cl_abap_unit_assert=>assert_equals( msg = 'configuration failed for result' exp = 200 act = result[ 1 ]-TotalPrice ). ""Read booking by association read entities of /dmo/i_travel_tum entity travel by \_Booking from value #( ( TravelID = '987' %control-BookingDate = if_abap_behv=>mk-on %control-FlightPrice = if_abap_behv=>mk-on ) ) result data(result_rba) reported data(reported_rba) failed data(failed_rba). cl_abap_unit_assert=>assert_initial( result_rba ). cl_abap_unit_assert=>assert_not_initial( reported_rba ). cl_abap_unit_assert=>assert_not_initial( failed_rba ). cl_abap_unit_assert=>assert_equals( msg = 'read booking passed' exp = '001' act = reported_rba-booking[ 1 ]-BookingID ). cl_abap_unit_assert=>assert_equals( msg = 'read booking passed' exp = '987' act = reported_rba-booking[ 1 ]-TravelID ). cl_abap_unit_assert=>assert_equals( msg = 'read booking passed' exp = if_abap_behv=>cause-unauthorized act = failed_rba-booking[ 1 ]-%fail-cause ). endmethod. method mapped_n_failed_configured. " If both mapped and failed are configured for an instance+operation " an execption must be thrown. (TODO) endmethod. endclass.
[ 9, 1, 9, 779, 428, 2723, 2393, 329, 534, 9564, 2969, 4326, 1332, 6097, 198, 4871, 300, 83, 565, 62, 4666, 1958, 62, 368, 75, 6770, 2457, 329, 4856, 198, 220, 9478, 1790, 198, 220, 2526, 1241, 23585, 13, 628, 220, 2839, 2665, 13, 628, 220, 220, 220, 5050, 2251, 62, 12102, 62, 8625, 62, 3919, 62, 22105, 329, 4856, 8620, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 5050, 2251, 62, 259, 12102, 62, 26858, 62, 39098, 329, 4856, 8620, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 5050, 2251, 62, 8625, 62, 259, 20751, 62, 2539, 329, 4856, 8620, 43213, 62, 12708, 62, 9122, 13, 628, 220, 220, 220, 5050, 2251, 62, 12102, 62, 8625, 62, 1525, 62, 562, 420, 329, 4856, 8620, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 5050, 2251, 62, 259, 12102, 62, 8625, 62, 1525, 62, 562, 420, 62, 16, 329, 4856, 8620, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 5050, 2251, 62, 259, 12102, 62, 8625, 62, 1525, 62, 562, 420, 62, 17, 329, 4856, 8620, 43213, 62, 12708, 62, 9122, 13, 628, 220, 220, 220, 5050, 4296, 62, 259, 12102, 62, 39098, 329, 4856, 8620, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 5050, 4296, 62, 12102, 62, 39098, 329, 4856, 8620, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 5050, 4296, 62, 8625, 62, 320, 20751, 62, 2539, 329, 4856, 8620, 43213, 62, 12708, 62, 9122, 13, 628, 220, 220, 220, 5050, 12233, 62, 8625, 62, 259, 20751, 62, 2539, 329, 4856, 8620, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 5050, 12233, 62, 12102, 62, 39098, 329, 4856, 8620, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 5050, 12233, 62, 12102, 62, 39098, 62, 17, 329, 4856, 8620, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 5050, 12233, 62, 259, 12102, 62, 39098, 329, 4856, 8620, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 5050, 49164, 4980, 62, 33678, 62, 482, 329, 4856, 8620, 43213, 62, 12708, 62, 9122, 13, 628, 220, 220, 220, 5050, 3716, 62, 4666, 1958, 329, 4856, 8620, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 5050, 13096, 62, 4480, 62, 48101, 62, 2840, 329, 4856, 8620, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 5050, 15290, 62, 48101, 62, 8625, 1817, 329, 4856, 8620, 43213, 62, 12708, 62, 9122, 13, 628, 220, 220, 220, 5050, 2251, 62, 12102, 62, 8625, 62, 4480, 62, 22105, 329, 4856, 8620, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 5050, 2251, 62, 6603, 274, 62, 19119, 62, 69, 1768, 329, 4856, 8620, 43213, 62, 12708, 62, 9122, 13, 628, 220, 220, 220, 5050, 573, 446, 593, 13, 198, 220, 220, 220, 1398, 12, 24396, 82, 1398, 62, 40406, 13, 198, 220, 220, 220, 1398, 12, 7890, 4274, 2099, 1006, 284, 1976, 565, 62, 397, 499, 62, 20709, 85, 62, 41357, 62, 83, 301, 62, 67, 2436, 20, 13, 198, 437, 4871, 13, 628, 198, 4871, 300, 83, 565, 62, 4666, 1958, 62, 368, 75, 7822, 13, 628, 220, 2446, 1398, 62, 40406, 13, 198, 220, 220, 220, 4274, 796, 649, 1976, 565, 62, 397, 499, 62, 20709, 85, 62, 41357, 62, 83, 301, 62, 67, 2436, 20, 7, 31051, 67, 5908, 14, 72, 62, 35927, 62, 83, 388, 6, 6739, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20709, 85, 62, 9288, 62, 38986, 14804, 2617, 62, 9288, 62, 23352, 7, 4274, 6739, 628, 220, 886, 24396, 13, 628, 220, 2446, 573, 446, 593, 13, 198, 220, 220, 220, 4274, 3784, 20063, 62, 22252, 7, 6739, 198, 220, 886, 24396, 13, 628, 220, 2446, 2251, 62, 259, 12102, 62, 26858, 62, 39098, 13, 628, 220, 220, 220, 366, 23739, 198, 220, 220, 220, 13096, 12066, 286, 1220, 67, 5908, 14, 72, 62, 35927, 62, 83, 388, 198, 220, 220, 220, 9312, 3067, 198, 220, 220, 220, 220, 220, 2251, 422, 1988, 1303, 7, 357, 3067, 312, 796, 705, 44183, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4123, 521, 378, 796, 705, 7908, 486, 486, 6, 5268, 10430, 796, 705, 7908, 486, 486, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2472, 20888, 796, 1802, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4064, 13716, 12, 1350, 70, 521, 378, 796, 611, 62, 397, 499, 62, 20709, 85, 14804, 28015, 12, 261, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4064, 13716, 12, 23350, 20888, 796, 611, 62, 397, 499, 62, 20709, 85, 14804, 28015, 12, 261, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 2098, 1366, 7, 26263, 8, 198, 220, 220, 220, 4054, 1366, 7, 47904, 8, 198, 220, 220, 220, 27661, 1366, 7, 76, 6320, 737, 628, 220, 220, 220, 366, 23433, 256, 2251, 262, 976, 4554, 198, 220, 220, 220, 13096, 12066, 286, 1220, 67, 5908, 14, 72, 62, 35927, 62, 83, 388, 198, 220, 220, 220, 9312, 3067, 198, 220, 220, 220, 220, 220, 2251, 422, 1988, 1303, 7, 357, 3067, 312, 796, 705, 44183, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4123, 521, 378, 796, 705, 7908, 486, 486, 6, 5268, 10430, 796, 705, 7908, 486, 486, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS ltcl_pretty DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS FINAL. PUBLIC SECTION. METHODS: run FOR TESTING. ENDCLASS. "ltcl_Pretty CLASS ltcl_pretty IMPLEMENTATION. METHOD run. DATA: lt_code TYPE TABLE OF string, lv_code TYPE string. APPEND 'if foo = bar.' TO lt_code. APPEND 'write bar.' TO lt_code. APPEND 'endif.' TO lt_code. CONCATENATE LINES OF lt_code INTO lv_code SEPARATED BY cl_abap_char_utilities=>newline. lv_code = zcl_wabap_pretty_printer=>run( lv_code ). SPLIT lv_code AT cl_abap_char_utilities=>newline INTO TABLE lt_code. cl_abap_unit_assert=>assert_equals( act = lt_code[ 2 ] exp = ' WRITE bar.' ). ENDMETHOD. ENDCLASS.
[ 198, 31631, 300, 83, 565, 62, 37784, 5550, 20032, 17941, 7473, 43001, 2751, 198, 220, 360, 4261, 6234, 6006, 9863, 198, 220, 45698, 42, 49277, 43638, 5805, 7597, 198, 220, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 1057, 7473, 43001, 2751, 13, 198, 198, 10619, 31631, 13, 220, 220, 220, 220, 220, 220, 366, 2528, 565, 62, 35700, 198, 198, 31631, 300, 83, 565, 62, 37784, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 1057, 13, 628, 220, 220, 220, 42865, 25, 300, 83, 62, 8189, 41876, 43679, 3963, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 8189, 41876, 4731, 13, 628, 198, 220, 220, 220, 43504, 10619, 705, 361, 22944, 796, 2318, 2637, 5390, 300, 83, 62, 8189, 13, 198, 220, 220, 220, 43504, 10619, 705, 13564, 2318, 2637, 5390, 300, 83, 62, 8189, 13, 198, 220, 220, 220, 43504, 10619, 705, 32088, 2637, 5390, 300, 83, 62, 8189, 13, 628, 220, 220, 220, 39962, 1404, 1677, 6158, 43277, 1546, 3963, 300, 83, 62, 8189, 198, 220, 220, 220, 220, 220, 39319, 300, 85, 62, 8189, 198, 220, 220, 220, 220, 220, 7946, 27082, 11617, 11050, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 3605, 1370, 13, 628, 220, 220, 220, 300, 85, 62, 8189, 796, 1976, 565, 62, 86, 397, 499, 62, 37784, 62, 1050, 3849, 14804, 5143, 7, 300, 85, 62, 8189, 6739, 628, 220, 220, 220, 46341, 2043, 300, 85, 62, 8189, 5161, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 3605, 1370, 198, 220, 220, 220, 220, 220, 39319, 43679, 300, 83, 62, 8189, 13, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 719, 796, 300, 83, 62, 8189, 58, 362, 2361, 198, 220, 220, 220, 220, 220, 1033, 796, 705, 220, 44423, 2318, 2637, 6739, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Report ZANGRY_BIRDS *& Just for fun *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT zangry_birds. DATA: lo_excel TYPE REF TO zcl_excel, lo_excel_writer TYPE REF TO zif_excel_writer, lo_worksheet TYPE REF TO zcl_excel_worksheet, lo_border_light TYPE REF TO zcl_excel_style_border, lo_style_color0 TYPE REF TO zcl_excel_style, lo_style_color1 TYPE REF TO zcl_excel_style, lo_style_color2 TYPE REF TO zcl_excel_style, lo_style_color3 TYPE REF TO zcl_excel_style, lo_style_color4 TYPE REF TO zcl_excel_style, lo_style_color5 TYPE REF TO zcl_excel_style, lo_style_color6 TYPE REF TO zcl_excel_style, lo_style_color7 TYPE REF TO zcl_excel_style, lo_style_credit TYPE REF TO zcl_excel_style, lo_style_link TYPE REF TO zcl_excel_style, lo_column TYPE REF TO zcl_excel_column, lo_row TYPE REF TO zcl_excel_row, lo_hyperlink TYPE REF TO zcl_excel_hyperlink. DATA: lv_style_color0_guid TYPE zexcel_cell_style, lv_style_color1_guid TYPE zexcel_cell_style, lv_style_color2_guid TYPE zexcel_cell_style, lv_style_color3_guid TYPE zexcel_cell_style, lv_style_color4_guid TYPE zexcel_cell_style, lv_style_color5_guid TYPE zexcel_cell_style, lv_style_color6_guid TYPE zexcel_cell_style, lv_style_color7_guid TYPE zexcel_cell_style, lv_style_credit_guid TYPE zexcel_cell_style, lv_style_link_guid TYPE zexcel_cell_style. DATA: lv_col_str TYPE zexcel_cell_column_alpha, lv_row TYPE i, lv_col TYPE i, lt_mapper TYPE TABLE OF zexcel_cell_style, ls_mapper TYPE zexcel_cell_style. DATA: lv_file TYPE xstring, lv_bytecount TYPE i, lt_file_tab TYPE solix_tab. DATA: lv_full_path TYPE string, lv_workdir TYPE string, lv_file_separator TYPE c. CONSTANTS: lv_default_file_name TYPE string VALUE 'angry_birds.xlsx'. PARAMETERS: p_path TYPE zexcel_export_dir. AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path. lv_workdir = p_path. cl_gui_frontend_services=>directory_browse( EXPORTING initial_folder = lv_workdir CHANGING selected_folder = lv_workdir ). p_path = lv_workdir. INITIALIZATION. cl_gui_frontend_services=>get_sapgui_workdir( CHANGING sapworkdir = lv_workdir ). cl_gui_cfw=>flush( ). p_path = lv_workdir. START-OF-SELECTION. IF p_path IS INITIAL. p_path = lv_workdir. ENDIF. cl_gui_frontend_services=>get_file_separator( CHANGING file_separator = lv_file_separator ). CONCATENATE p_path lv_file_separator lv_default_file_name INTO lv_full_path. " Creates active sheet CREATE OBJECT lo_excel. CREATE OBJECT lo_border_light. lo_border_light->border_color-rgb = zcl_excel_style_color=>c_white. lo_border_light->border_style = zcl_excel_style_border=>c_border_thin. " Create color white lo_style_color0 = lo_excel->add_new_style( ). lo_style_color0->fill->filltype = zcl_excel_style_fill=>c_fill_solid. lo_style_color0->fill->fgcolor-rgb = 'FFFFFFFF'. lo_style_color0->borders->allborders = lo_border_light. lv_style_color0_guid = lo_style_color0->get_guid( ). " Create color black lo_style_color1 = lo_excel->add_new_style( ). lo_style_color1->fill->filltype = zcl_excel_style_fill=>c_fill_solid. lo_style_color1->fill->fgcolor-rgb = 'FF252525'. lo_style_color1->borders->allborders = lo_border_light. lv_style_color1_guid = lo_style_color1->get_guid( ). " Create color dark green lo_style_color2 = lo_excel->add_new_style( ). lo_style_color2->fill->filltype = zcl_excel_style_fill=>c_fill_solid. lo_style_color2->fill->fgcolor-rgb = 'FF75913A'. lo_style_color2->borders->allborders = lo_border_light. lv_style_color2_guid = lo_style_color2->get_guid( ). " Create color light green lo_style_color3 = lo_excel->add_new_style( ). lo_style_color3->fill->filltype = zcl_excel_style_fill=>c_fill_solid. lo_style_color3->fill->fgcolor-rgb = 'FF9DFB73'. lo_style_color3->borders->allborders = lo_border_light. lv_style_color3_guid = lo_style_color3->get_guid( ). " Create color green lo_style_color4 = lo_excel->add_new_style( ). lo_style_color4->fill->filltype = zcl_excel_style_fill=>c_fill_solid. lo_style_color4->fill->fgcolor-rgb = 'FF92CF56'. lo_style_color4->borders->allborders = lo_border_light. lv_style_color4_guid = lo_style_color4->get_guid( ). " Create color 2dark green lo_style_color5 = lo_excel->add_new_style( ). lo_style_color5->fill->filltype = zcl_excel_style_fill=>c_fill_solid. lo_style_color5->fill->fgcolor-rgb = 'FF506228'. lo_style_color5->borders->allborders = lo_border_light. lv_style_color5_guid = lo_style_color5->get_guid( ). " Create color yellow lo_style_color6 = lo_excel->add_new_style( ). lo_style_color6->fill->filltype = zcl_excel_style_fill=>c_fill_solid. lo_style_color6->fill->fgcolor-rgb = 'FFC3E224'. lo_style_color6->borders->allborders = lo_border_light. lv_style_color6_guid = lo_style_color6->get_guid( ). " Create color yellow lo_style_color7 = lo_excel->add_new_style( ). lo_style_color7->fill->filltype = zcl_excel_style_fill=>c_fill_solid. lo_style_color7->fill->fgcolor-rgb = 'FFB3C14F'. lo_style_color7->borders->allborders = lo_border_light. lv_style_color7_guid = lo_style_color7->get_guid( ). " Credits lo_style_credit = lo_excel->add_new_style( ). lo_style_credit->alignment->horizontal = zcl_excel_style_alignment=>c_horizontal_center. lo_style_credit->alignment->vertical = zcl_excel_style_alignment=>c_vertical_center. lo_style_credit->font->size = 20. lv_style_credit_guid = lo_style_credit->get_guid( ). " Link lo_style_link = lo_excel->add_new_style( ). lo_style_link->alignment->horizontal = zcl_excel_style_alignment=>c_horizontal_center. lo_style_link->alignment->vertical = zcl_excel_style_alignment=>c_vertical_center. * lo_style_link->font->size = 20. lv_style_link_guid = lo_style_link->get_guid( ). " Create image map " line 2 DO 30 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 3 DO 28 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 5 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 4 DO 27 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 5 DO 9 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 15 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 6 DO 7 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 13 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 7 DO 6 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 5 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 11 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 5 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 8 DO 5 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 9 DO 5 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 10 DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 11 DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 7 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 12 DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 13 DO 5 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 8 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 14 DO 5 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 12 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 15 DO 6 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 8 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 16 DO 7 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 7 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 5 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 17 DO 8 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 13 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 18 DO 6 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 23 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 19 DO 5 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 27 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 20 DO 5 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 23 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 21 DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 19 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 22 DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 17 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 23 DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 17 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 8 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 24 DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 10 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 25 DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 8 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 26 DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color6_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 27 DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color6_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 28 DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color6_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 29 DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 5 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 30 DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 31 DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 32 DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 8 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 33 DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 34 DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 10 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 35 DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 11 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 36 DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 10 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 11 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 37 DO 5 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 10 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 11 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 38 DO 6 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 10 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 11 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 39 DO 7 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 22 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 40 DO 7 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 17 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 41 DO 8 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 15 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 42 DO 9 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 5 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 43 DO 11 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 5 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 7 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 44 DO 13 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 8 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 45 DO 16 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 13 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " line 46 DO 18 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 8 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. " escape " Get active sheet lo_worksheet = lo_excel->get_active_worksheet( ). lo_worksheet->set_title( ip_title = 'Angry Birds' ). lv_row = 1. lv_col = 1. LOOP AT lt_mapper INTO ls_mapper. lv_col_str = zcl_excel_common=>convert_column2alpha( lv_col ). IF ls_mapper IS INITIAL. lo_row = lo_worksheet->get_row( ip_row = lv_row ). lo_row->set_row_height( ip_row_height = 8 ). lv_col = 1. lv_row = lv_row + 1. CONTINUE. ENDIF. lo_worksheet->set_cell( ip_column = lv_col_str ip_row = lv_row ip_value = space ip_style = ls_mapper ). lv_col = lv_col + 1. lo_column = lo_worksheet->get_column( ip_column = lv_col_str ). lo_column->set_width( ip_width = 2 ). ENDLOOP. lo_worksheet->set_show_gridlines( i_show_gridlines = abap_false ). lo_worksheet->set_cell( ip_column = 'AP' ip_row = 15 ip_value = 'Created with abap2xlsx' ip_style = lv_style_credit_guid ). lo_hyperlink = zcl_excel_hyperlink=>create_external_link( iv_url = 'http://www.plinky.it/abap/abap2xlsx.php' ). lo_worksheet->set_cell( ip_column = 'AP' ip_row = 24 ip_value = 'http://www.plinky.it/abap/abap2xlsx.php' ip_style = lv_style_link_guid ip_hyperlink = lo_hyperlink ). lo_column = lo_worksheet->get_column( ip_column = 'AP' ). lo_column->set_auto_size( ip_auto_size = abap_true ). lo_worksheet->set_merge( ip_row = 15 ip_column_start = 'AP' ip_row_to = 22 ip_column_end = 'AR' ). lo_worksheet->set_merge( ip_row = 24 ip_column_start = 'AP' ip_row_to = 26 ip_column_end = 'AR' ). CREATE OBJECT lo_excel_writer TYPE zcl_excel_writer_2007. lv_file = lo_excel_writer->write_file( lo_excel ). " Convert to binary CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING buffer = lv_file IMPORTING output_length = lv_bytecount TABLES binary_tab = lt_file_tab. * " This method is only available on AS ABAP > 6.40 * lt_file_tab = cl_bcs_convert=>xstring_to_solix( iv_xstring = lv_file ). * lv_bytecount = xstrlen( lv_file ). " Save the file cl_gui_frontend_services=>gui_download( EXPORTING bin_filesize = lv_bytecount filename = lv_full_path filetype = 'BIN' CHANGING data_tab = lt_file_tab ).
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 220, 1168, 1565, 10761, 56, 62, 3483, 49, 5258, 198, 9, 5, 2329, 329, 1257, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 198, 2200, 15490, 1976, 648, 563, 62, 32002, 13, 198, 198, 26947, 25, 2376, 62, 1069, 5276, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 1069, 5276, 62, 16002, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 1069, 5276, 62, 16002, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 5225, 25473, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 5225, 25473, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 20192, 62, 2971, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7635, 62, 20192, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 7635, 62, 8043, 15, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 7635, 62, 8043, 16, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 7635, 62, 8043, 17, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 7635, 62, 8043, 18, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 7635, 62, 8043, 19, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 7635, 62, 8043, 20, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 7635, 62, 8043, 21, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 7635, 62, 8043, 22, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 7635, 62, 43082, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 7635, 62, 8726, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 28665, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 28665, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 808, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 808, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 49229, 8726, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 49229, 8726, 13, 198, 198, 26947, 25, 300, 85, 62, 7635, 62, 8043, 15, 62, 5162, 312, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 3846, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 7635, 62, 8043, 16, 62, 5162, 312, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 3846, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 7635, 62, 8043, 17, 62, 5162, 312, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 3846, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 7635, 62, 8043, 18, 62, 5162, 312, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 3846, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 7635, 62, 8043, 19, 62, 5162, 312, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 3846, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 7635, 62, 8043, 20, 62, 5162, 312, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 3846, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 7635, 62, 8043, 21, 62, 5162, 312, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 3846, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 7635, 62, 8043, 22, 62, 5162, 312, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 3846, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 7635, 62, 43082, 62, 5162, 312, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 3846, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 7635, 62, 8726, 62, 5162, 312, 220, 220, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 3846, 62, 7635, 13, 198, 198, 26947, 25, 300, 85, 62, 4033, 62, 2536, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 3846, 62, 28665, 62, 26591, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 808, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 4033, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 300, 83, 62, 76, 11463, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 3963, 1976, 1069, 5276, 62, 3846, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 43979, 62, 76, 11463, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 3846, 62, 7635, 13, 198, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
INTERFACE zif_abapgit_persistence PUBLIC. TYPES: ty_type TYPE c LENGTH 12 . TYPES: ty_value TYPE c LENGTH 12 . TYPES: BEGIN OF ty_content, type TYPE ty_type, value TYPE ty_value, data_str TYPE string, END OF ty_content . TYPES: ty_contents TYPE SORTED TABLE OF ty_content WITH UNIQUE KEY type value . TYPES: BEGIN OF ty_local_checksum, item TYPE zif_abapgit_definitions=>ty_item, files TYPE zif_abapgit_definitions=>ty_file_signatures_tt, END OF ty_local_checksum. TYPES: BEGIN OF ty_local_settings, display_name TYPE string, ignore_subpackages TYPE abap_bool, write_protected TYPE abap_bool, only_local_objects TYPE abap_bool, code_inspector_check_variant TYPE sci_chkv, block_commit TYPE abap_bool, main_language_only TYPE abap_bool, END OF ty_local_settings. TYPES: ty_local_checksum_tt TYPE STANDARD TABLE OF ty_local_checksum WITH DEFAULT KEY. TYPES: BEGIN OF ty_repo_xml, url TYPE string, branch_name TYPE string, selected_commit TYPE zif_abapgit_definitions=>ty_sha1, package TYPE devclass, created_by TYPE syuname, created_at TYPE timestampl, deserialized_by TYPE syuname, deserialized_at TYPE timestampl, offline TYPE abap_bool, switched_origin TYPE string, local_checksums TYPE ty_local_checksum_tt, dot_abapgit TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit, head_branch TYPE string, " HEAD symref of the repo, master branch local_settings TYPE ty_local_settings, END OF ty_repo_xml. TYPES: BEGIN OF ty_repo_meta_mask, url TYPE abap_bool, branch_name TYPE abap_bool, selected_commit TYPE abap_bool, package TYPE abap_bool, created_by TYPE abap_bool, created_at TYPE abap_bool, deserialized_by TYPE abap_bool, deserialized_at TYPE abap_bool, offline TYPE abap_bool, switched_origin TYPE abap_bool, local_checksums TYPE abap_bool, dot_abapgit TYPE abap_bool, head_branch TYPE abap_bool, local_settings TYPE abap_bool, END OF ty_repo_meta_mask. TYPES: BEGIN OF ty_repo, key TYPE ty_value. INCLUDE TYPE ty_repo_xml. TYPES: END OF ty_repo. TYPES: ty_repos TYPE STANDARD TABLE OF ty_repo WITH DEFAULT KEY. TYPES: ty_repo_keys TYPE STANDARD TABLE OF ty_repo-key WITH DEFAULT KEY. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 44731, 13, 628, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 4906, 220, 41876, 269, 406, 49494, 1105, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 8367, 41876, 269, 406, 49494, 1105, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 11299, 11, 198, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 41876, 1259, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 1988, 220, 220, 220, 41876, 1259, 62, 8367, 11, 198, 220, 220, 220, 220, 220, 1366, 62, 2536, 41876, 4731, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 11299, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 3642, 658, 41876, 311, 9863, 1961, 43679, 3963, 1259, 62, 11299, 13315, 4725, 33866, 8924, 35374, 2099, 1988, 764, 628, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 12001, 62, 42116, 388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2378, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3696, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 7753, 62, 12683, 6691, 62, 926, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 12001, 62, 42116, 388, 13, 628, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 12001, 62, 33692, 11, 198, 220, 220, 220, 220, 220, 3359, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 8856, 62, 7266, 43789, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 3551, 62, 24326, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 691, 62, 12001, 62, 48205, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 2438, 62, 1040, 806, 273, 62, 9122, 62, 25641, 415, 41876, 20681, 62, 354, 74, 85, 11, 198, 220, 220, 220, 220, 220, 2512, 62, 41509, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 1388, 62, 16129, 62, 8807, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 12001, 62, 33692, 13, 628, 220, 24412, 47, 1546, 25, 1259, 62, 12001, 62, 42116, 388, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 12001, 62, 42116, 388, 13315, 5550, 38865, 35374, 13, 628, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 260, 7501, 62, 19875, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19016, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8478, 62, 3672, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6163, 62, 41509, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 26270, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5301, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1614, 4871, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2727, 62, 1525, 220, 220, 220, 220, 220, 41876, 827, 403, 480, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2727, 62, 265, 220, 220, 220, 220, 220, 41876, 4628, 395, 321, 489, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 748, 48499, 1143, 62, 1525, 41876, 827, 403, 480, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 748, 48499, 1143, 62, 265, 41876, 4628, 395, 321, 489, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18043, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15293, 62, 47103, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1957, 62, 42116, 5700, 41876, 1259, 62, 12001, 62, 42116, 388, 62, 926, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16605, 62, 397, 499, 18300, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 14804, 774, 62, 26518, 62, 397, 499, 18300, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1182, 62, 1671, 3702, 220, 220, 220, 220, 41876, 4731, 11, 220, 220, 366, 39837, 5659, 5420, 286, 262, 29924, 11, 4958, 8478, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1957, 62, 33692, 220, 41876, 1259, 62, 12001, 62, 33692, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 260, 7501, 62, 19875, 13, 628, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 260, 7501, 62, 28961, 62, 27932, 11, 198, 220, 220, 220, 220, 220, 19016, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 8478, 62, 3672, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 6163, 62, 41509, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 5301, 220, 220, 220, 220, 220, 220, 220, 220, 41876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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Include Z_DMEE_INVOICE_EXTRACT_LCL00 *&---------------------------------------------------------------------* CLASS lcl_tools DEFINITION FINAL ABSTRACT. PUBLIC SECTION. "main processing types TYPES: tt_invoice_header TYPE SORTED TABLE OF zdmee_invoice_header WITH UNIQUE KEY primary_key COMPONENTS vbeln. TYPES: tt_invoice_lines TYPE SORTED TABLE OF zdmee_invoice_line WITH UNIQUE KEY primary_key COMPONENTS vbeln posnr. TYPES: tt_invoice_deliveries TYPE SORTED TABLE OF zdmee_delivery_line WITH UNIQUE KEY primary_key COMPONENTS vbeln posnr. "ALV display is using only standard tables so need to convert data before adding to ALV TYPES: tt_invoice_header_alv TYPE STANDARD TABLE OF zdmee_invoice_header WITH KEY primary_key COMPONENTS vbeln. TYPES: tt_invoice_lines_alv TYPE STANDARD TABLE OF zdmee_invoice_line WITH KEY primary_key COMPONENTS vbeln posnr. TYPES: tt_invoice_deliveries_alv TYPE STANDARD TABLE OF zdmee_delivery_line WITH KEY primary_key COMPONENTS vbeln posnr. CONSTANTS: c_structure_header TYPE tabname VALUE 'ZDMEE_INVOICE_HEADER'. CONSTANTS: c_structure_line TYPE tabname VALUE 'ZDMEE_INVOICE_LINE'. CONSTANTS: c_structure_delivery TYPE tabname VALUE 'ZDMEE_DELIVERY_LINE'. CONSTANTS c_f4_var TYPE fieldname VALUE 'VARIANT'. CONSTANTS: c_dmee_tree_type TYPE dmee_treetype VALUE 'ZZIV'. CONSTANTS: c_act_disp TYPE c LENGTH 2 VALUE '03' ##NO_TEXT. "for selection screen options CLASS-DATA: l_v_sccr_sdbil TYPE vbrk-vbeln. CLASS-DATA: l_v_sccr_sddate TYPE fkdat. CLASS-DATA: l_v_sccr_sdtype TYPE rv60a-fkart. CLASS-DATA: l_v_sccr_sdorg TYPE vkorg. ENDCLASS.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1168, 62, 23127, 6500, 62, 1268, 29516, 8476, 62, 6369, 5446, 10659, 62, 43, 5097, 405, 198, 9, 5, 10097, 30934, 9, 198, 31631, 300, 565, 62, 31391, 5550, 20032, 17941, 25261, 9564, 18601, 10659, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 366, 12417, 7587, 3858, 198, 220, 220, 220, 24412, 47, 1546, 25, 256, 83, 62, 16340, 2942, 62, 25677, 41876, 311, 9863, 1961, 43679, 3963, 1976, 67, 1326, 68, 62, 16340, 2942, 62, 25677, 13315, 4725, 33866, 8924, 35374, 4165, 62, 2539, 24301, 1340, 15365, 410, 6667, 77, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 256, 83, 62, 16340, 2942, 62, 6615, 41876, 311, 9863, 1961, 43679, 3963, 1976, 67, 1326, 68, 62, 16340, 2942, 62, 1370, 13315, 4725, 33866, 8924, 35374, 4165, 62, 2539, 24301, 1340, 15365, 410, 6667, 77, 1426, 48624, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 256, 83, 62, 16340, 2942, 62, 12381, 1428, 444, 41876, 311, 9863, 1961, 43679, 3963, 1976, 67, 1326, 68, 62, 12381, 6315, 62, 1370, 13315, 4725, 33866, 8924, 35374, 4165, 62, 2539, 24301, 1340, 15365, 410, 6667, 77, 1426, 48624, 13, 628, 220, 220, 220, 366, 1847, 53, 3359, 318, 1262, 691, 3210, 8893, 523, 761, 284, 10385, 1366, 878, 4375, 284, 8355, 53, 198, 220, 220, 220, 24412, 47, 1546, 25, 256, 83, 62, 16340, 2942, 62, 25677, 62, 282, 85, 41876, 49053, 9795, 43679, 3963, 1976, 67, 1326, 68, 62, 16340, 2942, 62, 25677, 13315, 35374, 4165, 62, 2539, 24301, 1340, 15365, 410, 6667, 77, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 256, 83, 62, 16340, 2942, 62, 6615, 62, 282, 85, 41876, 49053, 9795, 43679, 3963, 1976, 67, 1326, 68, 62, 16340, 2942, 62, 1370, 13315, 35374, 4165, 62, 2539, 24301, 1340, 15365, 410, 6667, 77, 1426, 48624, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 256, 83, 62, 16340, 2942, 62, 12381, 1428, 444, 62, 282, 85, 41876, 49053, 9795, 43679, 3963, 1976, 67, 1326, 68, 62, 12381, 6315, 62, 1370, 13315, 35374, 4165, 62, 2539, 24301, 1340, 15365, 410, 6667, 77, 1426, 48624, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 269, 62, 301, 5620, 62, 25677, 41876, 7400, 3672, 26173, 8924, 705, 57, 23127, 6500, 62, 1268, 29516, 8476, 62, 37682, 1137, 4458, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 269, 62, 301, 5620, 62, 1370, 41876, 7400, 3672, 26173, 8924, 705, 57, 23127, 6500, 62, 1268, 29516, 8476, 62, 24027, 4458, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 269, 62, 301, 5620, 62, 12381, 6315, 41876, 7400, 3672, 26173, 8924, 705, 57, 23127, 6500, 62, 35, 3698, 3824, 19664, 62, 24027, 4458, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 69, 19, 62, 7785, 41876, 2214, 3672, 26173, 8924, 705, 53, 33604, 8643, 4458, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 269, 62, 67, 1326, 68, 62, 21048, 62, 4906, 41876, 288, 1326, 68, 62, 83, 2871, 2981, 26173, 8924, 705, 30148, 3824, 4458, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 269, 62, 529, 62, 6381, 79, 41876, 269, 406, 49494, 362, 26173, 8924, 705, 3070, 6, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 366, 1640, 6356, 3159, 3689, 198, 220, 220, 220, 42715, 12, 26947, 25, 300, 62, 85, 62, 82, 535, 81, 62, 82, 9945, 346, 41876, 410, 1671, 74, 12, 85, 6667, 77, 13, 198, 220, 220, 220, 42715, 12, 26947, 25, 300, 62, 85, 62, 82, 535, 81, 62, 82, 1860, 378, 41876, 277, 74, 19608, 13, 198, 220, 220, 220, 42715, 12, 26947, 25, 300, 62, 85, 62, 82, 535, 81, 62, 21282, 4906, 41876, 374, 85, 1899, 64, 12, 69, 74, 433, 13, 198, 220, 220, 220, 42715, 12, 26947, 25, 300, 62, 85, 62, 82, 535, 81, 62, 21282, 2398, 41876, 410, 74, 2398, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
"! BAL exception CLASS zcx_alog_bal_error DEFINITION PUBLIC INHERITING FROM cx_dynamic_check CREATE PUBLIC. PUBLIC SECTION. INTERFACES: if_t100_message. METHODS: "! @parameter iv_msgid | Message id "! @parameter iv_msgno | Message number "! @parameter iv_msgv1 | Message variable 1 "! @parameter iv_msgv2 | Message variable 2 "! @parameter iv_msgv3 | Message variable 3 "! @parameter iv_msgv4 | Message variable 4 constructor IMPORTING iv_msgid TYPE syst_msgid DEFAULT sy-msgid iv_msgno TYPE syst_msgno DEFAULT sy-msgno iv_msgv1 TYPE syst_msgv DEFAULT sy-msgv1 iv_msgv2 TYPE syst_msgv DEFAULT sy-msgv2 iv_msgv3 TYPE syst_msgv DEFAULT sy-msgv3 iv_msgv4 TYPE syst_msgv DEFAULT sy-msgv4. DATA: mv_attr1 TYPE syst_msgv READ-ONLY, mv_attr2 TYPE syst_msgv READ-ONLY, mv_attr3 TYPE syst_msgv READ-ONLY, mv_attr4 TYPE syst_msgv READ-ONLY. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcx_alog_bal_error IMPLEMENTATION. METHOD constructor ##ADT_SUPPRESS_GENERATION. super->constructor( ). mv_attr1 = iv_msgv1. mv_attr2 = iv_msgv2. mv_attr3 = iv_msgv3. mv_attr4 = iv_msgv4. CLEAR textid. if_t100_message~t100key = VALUE #( msgid = iv_msgid msgno = iv_msgno attr1 = 'MV_ATTR1' attr2 = 'MV_ATTR2' attr3 = 'MV_ATTR3' attr4 = 'MV_ATTR4' ). ENDMETHOD. ENDCLASS.
[ 40484, 48091, 6631, 198, 31631, 1976, 66, 87, 62, 11794, 62, 6893, 62, 18224, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 43213, 62, 67, 28995, 62, 9122, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 198, 220, 220, 220, 220, 220, 611, 62, 83, 3064, 62, 20500, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 19662, 312, 930, 16000, 4686, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 19662, 3919, 930, 16000, 1271, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 19662, 85, 16, 930, 16000, 7885, 352, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 19662, 85, 17, 930, 16000, 7885, 362, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 19662, 85, 18, 930, 16000, 7885, 513, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 19662, 85, 19, 930, 16000, 7885, 604, 198, 220, 220, 220, 220, 220, 23772, 30023, 9863, 2751, 21628, 62, 19662, 312, 41876, 827, 301, 62, 19662, 312, 5550, 38865, 827, 12, 19662, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 19662, 3919, 41876, 827, 301, 62, 19662, 3919, 5550, 38865, 827, 12, 19662, 3919, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 19662, 85, 16, 41876, 827, 301, 62, 19662, 85, 5550, 38865, 827, 12, 19662, 85, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 19662, 85, 17, 41876, 827, 301, 62, 19662, 85, 5550, 38865, 827, 12, 19662, 85, 17, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 19662, 85, 18, 41876, 827, 301, 62, 19662, 85, 5550, 38865, 827, 12, 19662, 85, 18, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 19662, 85, 19, 41876, 827, 301, 62, 19662, 85, 5550, 38865, 827, 12, 19662, 85, 19, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 285, 85, 62, 35226, 16, 41876, 827, 301, 62, 19662, 85, 20832, 12, 1340, 11319, 11, 198, 220, 220, 220, 220, 220, 285, 85, 62, 35226, 17, 41876, 827, 301, 62, 19662, 85, 20832, 12, 1340, 11319, 11, 198, 220, 220, 220, 220, 220, 285, 85, 62, 35226, 18, 41876, 827, 301, 62, 19662, 85, 20832, 12, 1340, 11319, 11, 198, 220, 220, 220, 220, 220, 285, 85, 62, 35226, 19, 41876, 827, 301, 62, 19662, 85, 20832, 12, 1340, 11319, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 66, 87, 62, 11794, 62, 6893, 62, 18224, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 23772, 22492, 2885, 51, 62, 40331, 32761, 62, 35353, 1137, 6234, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 628, 220, 220, 220, 285, 85, 62, 35226, 16, 796, 21628, 62, 19662, 85, 16, 13, 198, 220, 220, 220, 285, 85, 62, 35226, 17, 796, 21628, 62, 19662, 85, 17, 13, 198, 220, 220, 220, 285, 85, 62, 35226, 18, 796, 21628, 62, 19662, 85, 18, 13, 198, 220, 220, 220, 285, 85, 62, 35226, 19, 796, 21628, 62, 19662, 85, 19, 13, 628, 220, 220, 220, 30301, 1503, 2420, 312, 13, 198, 220, 220, 220, 611, 62, 83, 3064, 62, 20500, 93, 83, 3064, 2539, 796, 26173, 8924, 1303, 7, 31456, 312, 796, 21628, 62, 19662, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 796, 21628, 62, 19662, 3919, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 796, 705, 44, 53, 62, 1404, 5446, 16, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 708, 81, 17, 796, 705, 44, 53, 62, 1404, 5446, 17, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 708, 81, 18, 796, 705, 44, 53, 62, 1404, 5446, 18, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZCL_EXCEL_CONVERTER definition public create public . *"* public components of class ZCL_EXCEL_CONVERTER *"* do not include other source files here!!! public section. type-pools ABAP . class-methods CLASS_CONSTRUCTOR . methods ASK_OPTION returning value(RS_OPTION) type ZEXCEL_S_CONVERTER_OPTION raising ZCX_EXCEL . methods CONVERT importing !IS_OPTION type ZEXCEL_S_CONVERTER_OPTION optional !IO_ALV type ref to OBJECT optional !IT_TABLE type STANDARD TABLE optional !I_ROW_INT type I default 1 !I_COLUMN_INT type I default 1 !I_TABLE type FLAG optional !I_STYLE_TABLE type ZEXCEL_TABLE_STYLE optional !IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET optional changing !CO_EXCEL type ref to ZCL_EXCEL optional raising ZCX_EXCEL . methods CREATE_PATH returning value(R_PATH) type STRING . methods GET_FILE exporting !E_BYTECOUNT type I !ET_FILE type SOLIX_TAB !E_FILE type XSTRING . methods GET_OPTION returning value(RS_OPTION) type ZEXCEL_S_CONVERTER_OPTION . methods OPEN_FILE . methods SET_OPTION importing !IS_OPTION type ZEXCEL_S_CONVERTER_OPTION . methods WRITE_FILE importing !I_PATH type STRING optional . *"* protected components of class ZCL_EXCEL_CONVERTER *"* do not include other source files here!!! protected section. types: BEGIN OF t_relationship, id TYPE string, type TYPE string, target TYPE string, END OF t_relationship . types: BEGIN OF t_fileversion, appname TYPE string, lastedited TYPE string, lowestedited TYPE string, rupbuild TYPE string, codename TYPE string, END OF t_fileversion . types: BEGIN OF t_sheet, name TYPE string, sheetid TYPE string, id TYPE string, END OF t_sheet . types: BEGIN OF t_workbookpr, codename TYPE string, defaultthemeversion TYPE string, END OF t_workbookpr . types: BEGIN OF t_sheetpr, codename TYPE string, END OF t_sheetpr . data W_ROW_INT type ZEXCEL_CELL_ROW value 1. "#EC NOTEXT . . . . . . . . . . " . data W_COL_INT type ZEXCEL_CELL_COLUMN value 1. "#EC NOTEXT . . . . . . . . . . " . *"* private components of class ZCL_EXCEL_CONVERTER *"* do not include other source files here!!! private section. data WO_EXCEL type ref to ZCL_EXCEL . data WO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET . data WO_AUTOFILTER type ref to ZCL_EXCEL_AUTOFILTER . data WO_TABLE type ref to DATA . data WO_DATA type ref to DATA . data WT_FIELDCATALOG type ZEXCEL_T_CONVERTER_FCAT . data WS_LAYOUT type ZEXCEL_S_CONVERTER_LAYO . data WT_COLORS type ZEXCEL_T_CONVERTER_COL . data WT_FILTER type ZEXCEL_T_CONVERTER_FIL . class-data WT_OBJECTS type TT_ALV_TYPES . class-data W_FCOUNT type NUMC3 . data WT_SORT_VALUES type TT_SORT_VALUES . data WT_SUBTOTAL_ROWS type TT_SUBTOTAL_ROWS . data WT_STYLES type TT_STYLES . constants C_TYPE_HDR type CHAR1 value 'H'. "#EC NOTEXT constants C_TYPE_STR type CHAR1 value 'P'. "#EC NOTEXT constants C_TYPE_NOR type CHAR1 value 'N'. "#EC NOTEXT constants C_TYPE_SUB type CHAR1 value 'S'. "#EC NOTEXT constants C_TYPE_TOT type CHAR1 value 'T'. "#EC NOTEXT data WT_COLOR_STYLES type TT_COLOR_STYLES . class-data WS_OPTION type ZEXCEL_S_CONVERTER_OPTION . class-data WS_INDX type INDX . class-methods INIT_OPTION . methods BIND_TABLE importing !I_STYLE_TABLE type ZEXCEL_TABLE_STYLE returning value(R_FREEZE_COL) type INT1 raising ZCX_EXCEL . methods BIND_CELLS returning value(R_FREEZE_COL) type INT1 raising ZCX_EXCEL . methods CLEAN_FIELDCATALOG . methods CREATE_COLOR_STYLE importing !I_STYLE type ZEXCEL_CELL_STYLE !IS_COLORS type ZEXCEL_S_CONVERTER_COL returning value(RO_STYLE) type ref to ZCL_EXCEL_STYLE . methods CREATE_FORMULAR_SUBTOTAL importing !I_ROW_INT_START type ZEXCEL_CELL_ROW !I_ROW_INT_END type ZEXCEL_CELL_ROW !I_COLUMN type ZEXCEL_CELL_COLUMN_ALPHA !I_TOTALS_FUNCTION type ZEXCEL_TABLE_TOTALS_FUNCTION returning value(R_FORMULA) type STRING . methods CREATE_FORMULAR_TOTAL importing !I_ROW_INT type ZEXCEL_CELL_ROW !I_COLUMN type ZEXCEL_CELL_COLUMN_ALPHA !I_TOTALS_FUNCTION type ZEXCEL_TABLE_TOTALS_FUNCTION returning value(R_FORMULA) type STRING . methods CREATE_STYLE_HDR importing !I_ALIGNMENT type ZEXCEL_ALIGNMENT optional returning value(RO_STYLE) type ref to ZCL_EXCEL_STYLE . methods CREATE_STYLE_NORMAL importing !I_ALIGNMENT type ZEXCEL_ALIGNMENT optional !I_INTTYPE type INTTYPE optional !I_DECIMALS type INT1 optional returning value(RO_STYLE) type ref to ZCL_EXCEL_STYLE . methods CREATE_STYLE_STRIPPED importing !I_ALIGNMENT type ZEXCEL_ALIGNMENT optional !I_INTTYPE type INTTYPE optional !I_DECIMALS type INT1 optional returning value(RO_STYLE) type ref to ZCL_EXCEL_STYLE . methods CREATE_STYLE_SUBTOTAL importing !I_ALIGNMENT type ZEXCEL_ALIGNMENT optional !I_INTTYPE type INTTYPE optional !I_DECIMALS type INT1 optional returning value(RO_STYLE) type ref to ZCL_EXCEL_STYLE . methods CREATE_STYLE_TOTAL importing !I_ALIGNMENT type ZEXCEL_ALIGNMENT optional !I_INTTYPE type INTTYPE optional !I_DECIMALS type INT1 optional returning value(RO_STYLE) type ref to ZCL_EXCEL_STYLE . methods CREATE_TABLE . methods CREATE_TEXT_SUBTOTAL importing !I_VALUE type ANY !I_TOTALS_FUNCTION type ZEXCEL_TABLE_TOTALS_FUNCTION returning value(R_TEXT) type STRING . methods CREATE_WORKSHEET importing !I_TABLE type FLAG default 'X' !I_STYLE_TABLE type ZEXCEL_TABLE_STYLE raising ZCX_EXCEL . methods EXECUTE_CONVERTER importing !IO_OBJECT type ref to OBJECT !IT_TABLE type STANDARD TABLE raising ZCX_EXCEL . methods GET_COLOR_STYLE importing !I_ROW type ZEXCEL_CELL_ROW !I_FIELDNAME type FIELDNAME !I_STYLE type ZEXCEL_CELL_STYLE returning value(R_STYLE) type ZEXCEL_CELL_STYLE . methods GET_FUNCTION_NUMBER importing !I_TOTALS_FUNCTION type ZEXCEL_TABLE_TOTALS_FUNCTION returning value(R_FUNCTION_NUMBER) type INT1 . methods GET_STYLE importing !I_TYPE type CHAR1 !I_ALIGNMENT type ZEXCEL_ALIGNMENT default SPACE !I_INTTYPE type INTTYPE default SPACE !I_DECIMALS type INT1 default 0 returning value(R_STYLE) type ZEXCEL_CELL_STYLE . methods LOOP_NORMAL importing !I_ROW_INT type ZEXCEL_CELL_ROW !I_COL_INT type ZEXCEL_CELL_COLUMN returning value(R_FREEZE_COL) type INT1 raising ZCX_EXCEL . methods LOOP_SUBTOTAL importing !I_ROW_INT type ZEXCEL_CELL_ROW !I_COL_INT type ZEXCEL_CELL_COLUMN returning value(R_FREEZE_COL) type INT1 raising ZCX_EXCEL . methods SET_AUTOFILTER_AREA . methods SET_CELL_FORMAT importing !I_INTTYPE type INTTYPE !I_DECIMALS type INT1 returning value(R_FORMAT) type ZEXCEL_NUMBER_FORMAT . methods SET_FIELDCATALOG . ENDCLASS. CLASS ZCL_EXCEL_CONVERTER IMPLEMENTATION. method ASK_OPTION. DATA: ls_sval TYPE sval, lt_sval TYPE STANDARD TABLE OF sval, l_returncode TYPE string, lt_fields TYPE ddfields, ls_fields TYPE dfies. FIELD-SYMBOLS: <fs> TYPE ANY. rs_option = ws_option. CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = 'ZEXCEL_S_CONVERTER_OPTION' * FIELDNAME = ' ' * LANGU = sy-langu * LFIELDNAME = ' ' * ALL_TYPES = ' ' * GROUP_NAMES = ' ' * UCLEN = * IMPORTING * X030L_WA = * DDOBJTYPE = * DFIES_WA = * LINES_DESCR = TABLES dfies_tab = lt_fields * FIXED_VALUES = EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3 . IF sy-subrc <> 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. LOOP AT lt_fields INTO ls_fields. ASSIGN COMPONENT ls_fields-fieldname OF STRUCTURE ws_option TO <fs>. IF sy-subrc = 0. CLEAR ls_sval. ls_sval-tabname = ls_fields-tabname. ls_sval-fieldname = ls_fields-fieldname. ls_sval-value = <fs>. ls_sval-field_attr = space. ls_sval-field_obl = space. ls_sval-comp_code = space. ls_sval-fieldtext = ls_fields-scrtext_m. ls_sval-comp_tab = space. ls_sval-comp_field = space. ls_sval-novaluehlp = space. INSERT ls_sval INTO TABLE lt_sval. ENDIF. ENDLOOP. CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING * NO_VALUE_CHECK = space popup_title = 'Excel creation options'(008) * START_COLUMN = '5' * START_ROW = '5' IMPORTING returncode = l_returncode TABLES fields = lt_sval EXCEPTIONS error_in_fields = 1 OTHERS = 2 . IF sy-subrc <> 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ELSE. IF l_returncode = 'A'. RAISE EXCEPTION TYPE zcx_excel. ELSE. LOOP AT lt_sval INTO ls_sval. ASSIGN COMPONENT ls_sval-fieldname OF STRUCTURE ws_option TO <fs>. IF sy-subrc = 0. <fs> = ls_sval-value. ENDIF. ENDLOOP. set_option( is_option = ws_option ) . rs_option = ws_option. ENDIF. ENDIF. endmethod. method BIND_CELLS. * Do we need subtotals with grouping READ TABLE wt_fieldcatalog TRANSPORTING NO FIELDS WITH KEY is_subtotalled = abap_true. IF sy-subrc = 0 . r_freeze_col = loop_subtotal( i_row_int = w_row_int i_col_int = w_col_int ) . ELSE. r_freeze_col = loop_normal( i_row_int = w_row_int i_col_int = w_col_int ) . ENDIF. endmethod. method BIND_TABLE. data: lt_field_catalog type zexcel_t_fieldcatalog, ls_field_catalog type zexcel_s_fieldcatalog, ls_fcat type zexcel_s_converter_fcat, lo_col_dim type ref to zcl_excel_worksheet_columndime, l_col_int type zexcel_cell_column, l_col_alpha type zexcel_cell_column_alpha, ls_settings type zexcel_s_table_settings, l_line type i. field-symbols: <fs_tab> type any table. assign wo_data->* to <fs_tab> . ls_settings-table_style = i_style_table. ls_settings-top_left_column = zcl_excel_common=>convert_column2alpha( ip_column = w_col_int ). ls_settings-top_left_row = w_row_int. ls_settings-show_row_stripes = ws_layout-is_stripped. describe table wt_fieldcatalog lines l_line. l_line = l_line + 1 + w_col_int. ls_settings-bottom_right_column = zcl_excel_common=>convert_column2alpha( ip_column = l_line ). describe table <fs_tab> lines l_line. ls_settings-bottom_right_row = l_line + 1 + w_row_int. sort wt_fieldcatalog by position. loop at wt_fieldcatalog into ls_fcat. move-corresponding ls_fcat to ls_field_catalog. ls_field_catalog-dynpfld = abap_true. insert ls_field_catalog into table lt_field_catalog. endloop. wo_worksheet->bind_table( exporting ip_table = <fs_tab> it_field_catalog = lt_field_catalog is_table_settings = ls_settings importing es_table_settings = ls_settings ). loop at wt_fieldcatalog into ls_fcat. l_col_int = w_col_int + ls_fcat-position - 1. l_col_alpha = zcl_excel_common=>convert_column2alpha( l_col_int ). * Freeze panes if ls_fcat-fix_column = abap_true. add 1 to r_freeze_col. endif. * Now let's check for optimized if ls_fcat-is_optimized = abap_true. lo_col_dim = wo_worksheet->get_column_dimension( ip_column = l_col_alpha ). lo_col_dim->set_auto_size( ip_auto_size = abap_true ) . endif. * Now let's check for visible if ls_fcat-is_hidden = abap_true. lo_col_dim = wo_worksheet->get_column_dimension( ip_column = l_col_alpha ). lo_col_dim->set_visible( ip_visible = abap_false ) . endif. endloop. endmethod. method CLASS_CONSTRUCTOR. DATA: ls_objects TYPE ts_alv_types. DATA: ls_option TYPE zexcel_s_converter_option, l_uname TYPE sy-uname. GET PARAMETER ID 'ZUS' FIELD l_uname. IF l_uname IS INITIAL OR l_uname = space. l_uname = sy-uname. ENDIF. * Object CL_GUI_ALV_GRID ls_objects-seoclass = 'CL_GUI_ALV_GRID'. ls_objects-clsname = 'ZCL_EXCEL_CONVERTER_ALV_GRID'. INSERT ls_objects INTO TABLE wt_objects. * Object CL_SALV_TABLE ls_objects-seoclass = 'CL_SALV_TABLE'. ls_objects-clsname = 'ZCL_EXCEL_CONVERTER_SALV_TABLE'. INSERT ls_objects INTO TABLE wt_objects. * Object CL_SALV_RESULT ls_objects-seoclass = 'CL_SALV_EX_RESULT_DATA_TABLE '. ls_objects-clsname = 'ZCL_EXCEL_CONVERTER_RESULT_EX'. INSERT ls_objects INTO TABLE wt_objects. * Object CL_SALV_WD_RESULT ls_objects-seoclass = 'CL_SALV_WD_RESULT_DATA_TABLE '. ls_objects-clsname = 'ZCL_EXCEL_CONVERTER_RESULT_WD'. INSERT ls_objects INTO TABLE wt_objects. CONCATENATE 'EXCEL_' sy-uname INTO ws_indx-srtfd. IMPORT p1 = ls_option FROM DATABASE indx(xl) TO ws_indx ID ws_indx-srtfd. IF sy-subrc = 0. ws_option = ls_option. ELSE. init_option( ) . ENDIF. endmethod. method CLEAN_FIELDCATALOG. DATA: l_position TYPE int1. FIELD-SYMBOLS: <fs_sfcat> TYPE zexcel_s_converter_fcat. SORT wt_fieldcatalog BY position col_id. CLEAR l_position. LOOP AT wt_fieldcatalog ASSIGNING <fs_sfcat>. ADD 1 TO l_position. <fs_sfcat>-position = l_position. * Default stype with alignment and format <fs_sfcat>-style_hdr = get_style( i_type = c_type_hdr i_alignment = <fs_sfcat>-alignment ). IF ws_layout-is_stripped = abap_true. <fs_sfcat>-style_stripped = get_style( i_type = c_type_str i_alignment = <fs_sfcat>-alignment i_inttype = <fs_sfcat>-inttype i_decimals = <fs_sfcat>-decimals ). ENDIF. <fs_sfcat>-style_normal = get_style( i_type = c_type_nor i_alignment = <fs_sfcat>-alignment i_inttype = <fs_sfcat>-inttype i_decimals = <fs_sfcat>-decimals ). <fs_sfcat>-style_subtotal = get_style( i_type = c_type_sub i_alignment = <fs_sfcat>-alignment i_inttype = <fs_sfcat>-inttype i_decimals = <fs_sfcat>-decimals ). <fs_sfcat>-style_total = get_style( i_type = c_type_tot i_alignment = <fs_sfcat>-alignment i_inttype = <fs_sfcat>-inttype i_decimals = <fs_sfcat>-decimals ). ENDLOOP. endmethod. method CONVERT. IF is_option IS SUPPLIED. ws_option = is_option. ENDIF. execute_converter( EXPORTING io_object = io_alv it_table = it_table ) . IF io_worksheet IS SUPPLIED AND io_worksheet IS BOUND. wo_worksheet = io_worksheet. ENDIF. IF co_excel IS SUPPLIED. IF co_excel IS NOT BOUND. CREATE OBJECT co_excel. co_excel->zif_excel_book_properties~creator = sy-uname. ENDIF. wo_excel = co_excel. ENDIF. * Move table to data object and clean it up IF wt_fieldcatalog IS NOT INITIAL. create_table( ). ELSE. wo_data = wo_table . ENDIF. IF wo_excel IS NOT BOUND. CREATE OBJECT wo_excel. wo_excel->zif_excel_book_properties~creator = sy-uname. ENDIF. IF wo_worksheet IS NOT BOUND. " Get active sheet wo_worksheet = wo_excel->get_active_worksheet( ). wo_worksheet->set_title( ip_title = 'Sheet1'(001) ). ENDIF. IF i_row_int <= 0. w_row_int = 1. ELSE. w_row_int = i_row_int. ENDIF. IF i_column_int <= 0. w_col_int = 1. ELSE. w_col_int = i_column_int. ENDIF. create_worksheet( i_table = i_table i_style_table = i_style_table ) . endmethod. method CREATE_COLOR_STYLE. DATA: ls_styles TYPE ts_styles. DATA: lo_style TYPE REF TO zcl_excel_style. READ TABLE wt_styles INTO ls_styles WITH KEY guid = i_style. IF sy-subrc = 0. lo_style = wo_excel->add_new_style( ). * lo_style->borders = ls_styles-style->borders. * lo_style->protection = ls_styles-style->protection. lo_style->font->bold = ls_styles-style->font->bold. lo_style->alignment->horizontal = ls_styles-style->alignment->horizontal. lo_style->number_format->format_code = ls_styles-style->number_format->format_code. lo_style->font->color-rgb = is_colors-fontcolor. lo_style->fill->filltype = zcl_excel_style_fill=>c_fill_solid. lo_style->fill->fgcolor-rgb = is_colors-fillcolor. ro_style = lo_style. ENDIF. endmethod. method CREATE_FORMULAR_SUBTOTAL. data: l_row_alpha_start type string, l_row_alpha_end type string, l_func_num type string. l_row_alpha_start = i_row_int_start. l_row_alpha_end = i_row_int_end. l_func_num = get_function_number( i_totals_function = i_totals_function ). concatenate 'SUBTOTAL(' l_func_num ',' i_column l_row_alpha_start ':' i_column l_row_alpha_end ')' into r_formula. endmethod. method CREATE_FORMULAR_TOTAL. data: l_row_alpha type string, l_row_e_alpha type string. l_row_alpha = w_row_int + 1. l_row_e_alpha = i_row_int. concatenate i_totals_function '(' i_column l_row_alpha ':' i_column l_row_e_alpha ')' into r_formula. endmethod. method CREATE_PATH. DATA: l_sep TYPE c , l_path TYPE string, l_return TYPE i . CLEAR r_path. " Save the file cl_gui_frontend_services=>get_sapgui_workdir( CHANGING sapworkdir = l_path EXCEPTIONS get_sapworkdir_failed = 1 cntl_error = 2 error_no_gui = 3 not_supported_by_gui = 4 ). IF sy-subrc <> 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. CONCATENATE 'Excel_' w_fcount '.xlsx' INTO r_path. ELSE. DO. ADD 1 TO w_fcount. *-obtain file separator character--------------------------------------- CALL METHOD cl_gui_frontend_services=>get_file_separator CHANGING file_separator = l_sep EXCEPTIONS cntl_error = 1 error_no_gui = 2 not_supported_by_gui = 3 OTHERS = 4. IF sy-subrc <> 0. l_sep = ''. ENDIF. CONCATENATE l_path l_sep 'Excel_' w_fcount '.xlsx' INTO r_path. IF cl_gui_frontend_services=>file_exist( file = r_path ) = abap_true. cl_gui_frontend_services=>file_delete( EXPORTING filename = r_path CHANGING rc = l_return EXCEPTIONS OTHERS = 1 ). IF sy-subrc = 0 . RETURN. ENDIF. ELSE. RETURN. ENDIF. ENDDO. ENDIF. endmethod. method CREATE_STYLE_HDR. data: lo_style type ref to zcl_excel_style. lo_style = wo_excel->add_new_style( ). lo_style->font->bold = abap_true. lo_style->font->color-rgb = zcl_excel_style_color=>c_white. lo_style->fill->filltype = zcl_excel_style_fill=>c_fill_solid. lo_style->fill->fgcolor-rgb = 'FF4F81BD'. if i_alignment is supplied and i_alignment is not initial. lo_style->alignment->horizontal = i_alignment. endif. ro_style = lo_style . endmethod. method CREATE_STYLE_NORMAL. DATA: lo_style TYPE REF TO zcl_excel_style, l_format TYPE zexcel_number_format. IF i_inttype IS SUPPLIED AND i_inttype IS NOT INITIAL. l_format = set_cell_format( i_inttype = i_inttype i_decimals = i_decimals ) . ENDIF. IF l_format IS NOT INITIAL OR ( i_alignment IS SUPPLIED AND i_alignment IS NOT INITIAL ) . lo_style = wo_excel->add_new_style( ). IF i_alignment IS SUPPLIED AND i_alignment IS NOT INITIAL. lo_style->alignment->horizontal = i_alignment. ENDIF. IF l_format IS NOT INITIAL. lo_style->number_format->format_code = l_format. ENDIF. ro_style = lo_style . ENDIF. endmethod. method CREATE_STYLE_STRIPPED. data: lo_style type ref to zcl_excel_style. data: l_format type zexcel_number_format. lo_style = wo_excel->add_new_style( ). lo_style->fill->filltype = zcl_excel_style_fill=>c_fill_solid. lo_style->fill->fgcolor-rgb = 'FFDBE5F1'. if i_alignment is supplied and i_alignment is not initial. lo_style->alignment->horizontal = i_alignment. endif. if i_inttype is supplied and i_inttype is not initial. l_format = set_cell_format( i_inttype = i_inttype i_decimals = i_decimals ) . if l_format is not initial. lo_style->number_format->format_code = l_format. endif. endif. ro_style = lo_style. endmethod. method CREATE_STYLE_SUBTOTAL. data: lo_style type ref to zcl_excel_style. data: l_format type zexcel_number_format. lo_style = wo_excel->add_new_style( ). lo_style->font->bold = abap_true. if i_alignment is supplied and i_alignment is not initial. lo_style->alignment->horizontal = i_alignment. endif. if i_inttype is supplied and i_inttype is not initial. l_format = set_cell_format( i_inttype = i_inttype i_decimals = i_decimals ) . if l_format is not initial. lo_style->number_format->format_code = l_format. endif. endif. ro_style = lo_style . endmethod. method CREATE_STYLE_TOTAL. DATA: lo_style TYPE REF TO zcl_excel_style. DATA: l_format TYPE zexcel_number_format. lo_style = wo_excel->add_new_style( ). lo_style->font->bold = abap_true. CREATE OBJECT lo_style->borders->top. lo_style->borders->top->border_style = zcl_excel_style_border=>c_border_thin. lo_style->borders->top->border_color-rgb = zcl_excel_style_color=>c_black. CREATE OBJECT lo_style->borders->right. lo_style->borders->right->border_style = zcl_excel_style_border=>c_border_none. lo_style->borders->right->border_color-rgb = zcl_excel_style_color=>c_black. CREATE OBJECT lo_style->borders->down. lo_style->borders->down->border_style = zcl_excel_style_border=>c_border_double. lo_style->borders->down->border_color-rgb = zcl_excel_style_color=>c_black. CREATE OBJECT lo_style->borders->left. lo_style->borders->left->border_style = zcl_excel_style_border=>c_border_none. lo_style->borders->left->border_color-rgb = zcl_excel_style_color=>c_black. IF i_alignment IS SUPPLIED AND i_alignment IS NOT INITIAL. lo_style->alignment->horizontal = i_alignment. ENDIF. IF i_inttype IS SUPPLIED AND i_inttype IS NOT INITIAL. l_format = set_cell_format( i_inttype = i_inttype i_decimals = i_decimals ) . IF l_format IS NOT INITIAL. lo_style->number_format->format_code = l_format. ENDIF. ENDIF. ro_style = lo_style . endmethod. method CREATE_TABLE. TYPES: BEGIN OF ts_output, fieldname TYPE fieldname, function TYPE funcname, END OF ts_output. DATA: lo_data TYPE REF TO data. DATA: lo_addit TYPE REF TO cl_abap_elemdescr, lt_components_tab TYPE cl_abap_structdescr=>component_table, ls_components TYPE abap_componentdescr, lo_table TYPE REF TO cl_abap_tabledescr, lo_struc TYPE REF TO cl_abap_structdescr. FIELD-SYMBOLS: <fs_scat> TYPE zexcel_s_converter_fcat, <fs_stab> TYPE ANY, <fs_ttab> TYPE STANDARD TABLE, <fs> TYPE ANY, <fs_table> TYPE STANDARD TABLE. SORT wt_fieldcatalog BY position. ASSIGN wo_table->* TO <fs_table>. READ TABLE <fs_table> ASSIGNING <fs_stab> INDEX 1. IF sy-subrc EQ 0 . LOOP AT wt_fieldcatalog ASSIGNING <fs_scat>. ASSIGN COMPONENT <fs_scat>-columnname OF STRUCTURE <fs_stab> TO <fs>. IF sy-subrc = 0. ls_components-name = <fs_scat>-columnname. TRY. lo_addit ?= cl_abap_typedescr=>describe_by_data( <fs> ). CATCH cx_sy_move_cast_error. CLEAR lo_addit. DELETE TABLE wt_fieldcatalog FROM <fs_scat>. ENDTRY. IF lo_addit IS BOUND. ls_components-type = lo_addit . INSERT ls_components INTO TABLE lt_components_tab. ENDIF. ENDIF. ENDLOOP. IF lt_components_tab IS NOT INITIAL. "create new line type TRY. lo_struc = cl_abap_structdescr=>create( P_COMPONENTS = lt_components_tab P_STRICT = abap_false ). CATCH cx_sy_struct_creation. RETURN. " We can not do anything in this case. ENDTRY. lo_table = cl_abap_tabledescr=>create( lo_struc ). CREATE DATA wo_data TYPE HANDLE lo_table. CREATE DATA lo_data TYPE HANDLE lo_struc. ASSIGN wo_data->* TO <fs_ttab>. ASSIGN lo_data->* TO <fs_stab>. LOOP AT <fs_table> ASSIGNING <fs>. CLEAR <fs_stab>. MOVE-CORRESPONDING <fs> TO <fs_stab>. APPEND <fs_stab> TO <fs_ttab>. ENDLOOP. ENDIF. ENDIF. endmethod. METHOD create_text_subtotal. DATA: l_string(256) TYPE c, l_func TYPE string. CASE i_totals_function. WHEN zcl_excel_table=>totals_function_sum. " Total l_func = 'Total'(003). WHEN zcl_excel_table=>totals_function_min. " Minimum l_func = 'Minimum'(004). WHEN zcl_excel_table=>totals_function_max. " Maximum l_func = 'Maximum'(005). WHEN zcl_excel_table=>totals_function_average. " Mean Value l_func = 'Average'(006). WHEN zcl_excel_table=>totals_function_count. " Count l_func = 'Count'(007). WHEN OTHERS. CLEAR l_func. ENDCASE. MOVE i_value TO l_string. CONCATENATE l_string l_func INTO r_text SEPARATED BY space. ENDMETHOD. method CREATE_WORKSHEET. DATA: l_freeze_col TYPE i. IF wo_data IS BOUND AND wo_worksheet IS BOUND. wo_worksheet->zif_excel_sheet_properties~summarybelow = zif_excel_sheet_properties=>c_below_on. " By default is on IF wt_fieldcatalog IS INITIAL. set_fieldcatalog( ) . ELSE. clean_fieldcatalog( ) . ENDIF. IF i_table = abap_true. l_freeze_col = bind_table( i_style_table = i_style_table ) . ELSE. * Let's check for filter. IF wt_filter IS NOT INITIAL. wo_autofilter = wo_excel->add_new_autofilter( io_sheet = wo_worksheet ). l_freeze_col = bind_cells( ) . set_autofilter_area( ) . ELSE. l_freeze_col = bind_cells( ) . ENDIF. ENDIF. * Check for freeze panes IF ws_layout-is_fixed = abap_true. IF l_freeze_col = 0. l_freeze_col = w_col_int. ENDIF. wo_worksheet->freeze_panes( EXPORTING ip_num_columns = l_freeze_col ip_num_rows = w_row_int ) . ENDIF. ENDIF. endmethod. method EXECUTE_CONVERTER. DATA: lo_if TYPE REF TO zif_excel_converter, ls_types TYPE ts_alv_types, lo_addit TYPE REF TO cl_abap_classdescr, lo_addit_superclass type ref to cl_abap_classdescr. IF io_object IS BOUND. TRY. lo_addit ?= cl_abap_typedescr=>describe_by_object_ref( io_object ). CATCH cx_sy_move_cast_error. RAISE EXCEPTION TYPE zcx_excel. ENDTRY. ls_types-seoclass = lo_addit->get_relative_name( ). READ TABLE wt_objects INTO ls_types WITH TABLE KEY seoclass = ls_types-seoclass. if sy-subrc ne 0. do. free lo_addit_superclass. lo_addit_superclass = lo_addit->get_super_class_type( ). if lo_addit_superclass is initial. sy-subrc = '4'. exit. endif. lo_addit = lo_addit_superclass. ls_types-seoclass = lo_addit->get_relative_name( ). read table wt_objects into ls_types with table key seoclass = ls_types-seoclass. if sy-subrc eq 0. exit. endif. enddo. endif. if sy-subrc = 0. CREATE OBJECT lo_if type (ls_types-clsname). lo_if->create_fieldcatalog( exporting is_option = ws_option io_object = io_object it_table = it_table importing es_layout = ws_layout et_fieldcatalog = wt_fieldcatalog eo_table = wo_table et_colors = wt_colors et_filter = wt_filter ). * data lines of highest level. if ws_layout-max_subtotal_level > 0. add 1 to ws_layout-max_subtotal_level. endif. else. RAISE EXCEPTION type zcx_excel. endif. else. refresh wt_fieldcatalog. get reference of it_table into wo_table. endif. endmethod. method GET_COLOR_STYLE. DATA: ls_colors TYPE zexcel_s_converter_col, ls_color_styles TYPE ts_color_styles, lo_style TYPE REF TO zcl_excel_style. r_style = i_style. " Default we change nothing IF wt_colors IS NOT INITIAL. * Full line has color READ TABLE wt_colors INTO ls_colors WITH KEY rownumber = i_row columnname = space. IF sy-subrc = 0. READ TABLE wt_color_styles INTO ls_color_styles WITH KEY guid_old = i_style fontcolor = ls_colors-fontcolor fillcolor = ls_colors-fillcolor. IF sy-subrc = 0. r_style = ls_color_styles-style_new->get_guid( ). ELSE. lo_style = create_color_style( i_style = i_style is_colors = ls_colors ) . r_style = lo_style->get_guid( ) . ls_color_styles-guid_old = i_style. ls_color_styles-fontcolor = ls_colors-fontcolor. ls_color_styles-fillcolor = ls_colors-fillcolor. ls_color_styles-style_new = lo_style. INSERT ls_color_styles INTO TABLE wt_color_styles. ENDIF. ELSE. * Only field has color READ TABLE wt_colors INTO ls_colors WITH KEY rownumber = i_row columnname = i_fieldname. IF sy-subrc = 0. READ TABLE wt_color_styles INTO ls_color_styles WITH KEY guid_old = i_style fontcolor = ls_colors-fontcolor fillcolor = ls_colors-fillcolor. IF sy-subrc = 0. r_style = ls_color_styles-style_new->get_guid( ). ELSE. lo_style = create_color_style( i_style = i_style is_colors = ls_colors ) . ls_color_styles-guid_old = i_style. ls_color_styles-fontcolor = ls_colors-fontcolor. ls_color_styles-fillcolor = ls_colors-fillcolor. ls_color_styles-style_new = lo_style. INSERT ls_color_styles INTO TABLE wt_color_styles. r_style = ls_color_styles-style_new->get_guid( ). ENDIF. ELSE. r_style = i_style. ENDIF. ENDIF. ELSE. r_style = i_style. ENDIF. endmethod. method GET_FILE. data: lo_excel_writer type ref to zif_excel_writer. data: ls_seoclass type seoclass. if wo_excel is bound. create object lo_excel_writer type zcl_excel_writer_2007. e_file = lo_excel_writer->write_file( wo_excel ). select single * into ls_seoclass from seoclass where clsname = 'CL_BCS_CONVERT'. if sy-subrc = 0. call method (ls_seoclass-clsname)=>xstring_to_solix exporting iv_xstring = e_file receiving et_solix = et_file. e_bytecount = xstrlen( e_file ). else. " Convert to binary call function 'SCMS_XSTRING_TO_BINARY' exporting buffer = e_file importing output_length = e_bytecount tables binary_tab = et_file. endif. endif. endmethod. method GET_FUNCTION_NUMBER. *Number Function *1 AVERAGE *2 COUNT *3 COUNTA *4 MAX *5 MIN *6 PRODUCT *7 STDEV *8 STDEVP *9 SUM *10 VAR *11 VARP case i_totals_function. when ZCL_EXCEL_TABLE=>TOTALS_FUNCTION_SUM. " Total r_function_number = 9. when ZCL_EXCEL_TABLE=>TOTALS_FUNCTION_MIN. " Minimum r_function_number = 5. when ZCL_EXCEL_TABLE=>TOTALS_FUNCTION_MAX. " Maximum r_function_number = 4. when ZCL_EXCEL_TABLE=>TOTALS_FUNCTION_AVERAGE. " Mean Value r_function_number = 1. when ZCL_EXCEL_TABLE=>TOTALS_FUNCTION_count. " Count r_function_number = 2. when others. clear r_function_number. endcase. endmethod. method GET_OPTION. rs_option = ws_option. endmethod. method GET_STYLE. DATA: ls_styles TYPE ts_styles, lo_style TYPE REF TO zcl_excel_style. CLEAR r_style. READ TABLE wt_styles INTO ls_styles WITH TABLE KEY type = i_type alignment = i_alignment inttype = i_inttype decimals = i_decimals. IF sy-subrc = 0. r_style = ls_styles-guid. ELSE. CASE i_type. WHEN c_type_hdr. " Header lo_style = create_style_hdr( i_alignment = i_alignment ). WHEN c_type_str. "Stripped lo_style = create_style_stripped( i_alignment = i_alignment i_inttype = i_inttype i_decimals = i_decimals ). WHEN c_type_nor. "Normal lo_style = create_style_normal( i_alignment = i_alignment i_inttype = i_inttype i_decimals = i_decimals ). WHEN c_type_sub. "Subtotals lo_style = create_style_subtotal( i_alignment = i_alignment i_inttype = i_inttype i_decimals = i_decimals ). WHEN c_type_tot. "Totals lo_style = create_style_total( i_alignment = i_alignment i_inttype = i_inttype i_decimals = i_decimals ). ENDCASE. IF lo_style IS NOT INITIAL. r_style = lo_style->get_guid( ). ls_styles-type = i_type. ls_styles-alignment = i_alignment. ls_styles-inttype = i_inttype. ls_styles-decimals = i_decimals. ls_styles-guid = r_style. ls_styles-style = lo_style. INSERT ls_styles INTO TABLE wt_styles. ENDIF. ENDIF. endmethod. method INIT_OPTION. ws_option-filter = abap_true. ws_option-hidenc = abap_true. ws_option-subtot = abap_true. endmethod. method LOOP_NORMAL. DATA: l_row_int_end TYPE zexcel_cell_row, l_row_int TYPE zexcel_cell_row, l_col_int TYPE zexcel_cell_column, l_col_alpha TYPE zexcel_cell_column_alpha, l_cell_value TYPE zexcel_cell_value, l_s_color TYPE abap_bool, lo_col_dim TYPE REF TO zcl_excel_worksheet_columndime, l_formula TYPE zexcel_cell_formula, l_style TYPE zexcel_cell_style, l_cells TYPE i, l_count TYPE i, l_table_row TYPE i. FIELD-SYMBOLS: <fs_stab> TYPE ANY, <fs_tab> TYPE STANDARD TABLE, <fs_sfcat> TYPE zexcel_s_converter_fcat, <fs_fldval> TYPE ANY. ASSIGN wo_data->* TO <fs_tab> . DESCRIBE TABLE wt_fieldcatalog LINES l_cells. DESCRIBE TABLE <fs_tab> LINES l_count. l_cells = l_cells * l_count. * It is better to loop column by column LOOP AT wt_fieldcatalog ASSIGNING <fs_sfcat>. l_row_int = i_row_int. l_col_int = i_col_int + <fs_sfcat>-position - 1. * Freeze panes IF <fs_sfcat>-fix_column = abap_true. ADD 1 TO r_freeze_col. ENDIF. l_s_color = abap_true. l_col_alpha = zcl_excel_common=>convert_column2alpha( l_col_int ). * Only if the Header is required create it. IF ws_option-hidehd IS INITIAL. " First of all write column header l_cell_value = <fs_sfcat>-scrtext_m. wo_worksheet->set_cell( ip_column = l_col_alpha ip_row = l_row_int ip_value = l_cell_value ip_style = <fs_sfcat>-style_hdr ). ADD 1 TO l_row_int. ENDIF. LOOP AT <fs_tab> ASSIGNING <fs_stab>. l_table_row = sy-tabix. * Now the cell values ASSIGN COMPONENT <fs_sfcat>-columnname OF STRUCTURE <fs_stab> TO <fs_fldval>. * Now let's write the cell values IF ws_layout-is_stripped = abap_true AND l_s_color = abap_true. l_style = get_color_style( i_row = l_table_row i_fieldname = <fs_sfcat>-columnname i_style = <fs_sfcat>-style_stripped ). wo_worksheet->set_cell( ip_column = l_col_alpha ip_row = l_row_int ip_value = <fs_fldval> ip_style = l_style ). CLEAR l_s_color. ELSE. l_style = get_color_style( i_row = l_table_row i_fieldname = <fs_sfcat>-columnname i_style = <fs_sfcat>-style_normal ). wo_worksheet->set_cell( ip_column = l_col_alpha ip_row = l_row_int ip_value = <fs_fldval> ip_style = l_style ). l_s_color = abap_true. ENDIF. READ TABLE wt_filter TRANSPORTING NO FIELDS WITH TABLE KEY rownumber = l_table_row columnname = <fs_sfcat>-columnname. IF sy-subrc = 0. wo_worksheet->get_cell( EXPORTING ip_column = l_col_alpha ip_row = l_row_int IMPORTING ep_value = l_cell_value ). wo_autofilter->set_value( i_column = l_col_int i_value = l_cell_value ). ENDIF. ADD 1 TO l_row_int. ENDLOOP. * Now let's check for optimized IF <fs_sfcat>-is_optimized = abap_true . lo_col_dim = wo_worksheet->get_column_dimension( ip_column = l_col_alpha ). lo_col_dim->set_auto_size( ip_auto_size = abap_true ) . ENDIF. * Now let's check for visible IF <fs_sfcat>-is_hidden = abap_true. lo_col_dim = wo_worksheet->get_column_dimension( ip_column = l_col_alpha ). lo_col_dim->set_visible( ip_visible = abap_false ) . ENDIF. * Now let's check for total versus subtotal. IF <fs_sfcat>-totals_function IS NOT INITIAL. l_row_int_end = l_row_int - 1. l_formula = create_formular_total( i_row_int = l_row_int_end i_column = l_col_alpha i_totals_function = <fs_sfcat>-totals_function ). wo_worksheet->set_cell( ip_column = l_col_alpha ip_row = l_row_int ip_formula = l_formula ip_style = <fs_sfcat>-style_total ). ENDIF. ENDLOOP. endmethod. method LOOP_SUBTOTAL. DATA: l_row_int_start TYPE zexcel_cell_row, l_row_int_end TYPE zexcel_cell_row, l_row_int TYPE zexcel_cell_row, l_col_int TYPE zexcel_cell_column, l_col_alpha TYPE zexcel_cell_column_alpha, l_col_alpha_start TYPE zexcel_cell_column_alpha, l_cell_value TYPE zexcel_cell_value, l_s_color TYPE abap_bool, lo_col_dim TYPE REF TO zcl_excel_worksheet_columndime, lo_row_dim TYPE REF TO zcl_excel_worksheet_rowdimensi, l_formula TYPE zexcel_cell_formula, l_style TYPE zexcel_cell_style, l_text TYPE string, ls_sort_values TYPE ts_sort_values, ls_subtotal_rows TYPE ts_subtotal_rows, l_sort_level TYPE int4, l_hidden TYPE int4, l_line TYPE i, l_cells TYPE i, l_count TYPE i, l_table_row TYPE i, lt_fcat TYPE zexcel_t_converter_fcat. FIELD-SYMBOLS: <fs_stab> TYPE ANY, <fs_tab> TYPE STANDARD TABLE, <fs_sfcat> TYPE zexcel_s_converter_fcat, <fs_fldval> TYPE ANY, <fs_sortval> TYPE ANY, <fs_sortv> TYPE ts_sort_values. ASSIGN wo_data->* TO <fs_tab> . REFRESH: wt_sort_values, wt_subtotal_rows. DESCRIBE TABLE wt_fieldcatalog LINES l_cells. DESCRIBE TABLE <fs_tab> LINES l_count. l_cells = l_cells * l_count. READ TABLE <fs_tab> ASSIGNING <fs_stab> INDEX 1. IF sy-subrc = 0. l_row_int = i_row_int + 1. lt_fcat = wt_fieldcatalog. SORT lt_fcat BY sort_level DESCENDING. LOOP AT lt_fcat ASSIGNING <fs_sfcat> WHERE is_subtotalled = abap_true. ASSIGN COMPONENT <fs_sfcat>-columnname OF STRUCTURE <fs_stab> TO <fs_fldval>. ls_sort_values-fieldname = <fs_sfcat>-columnname. ls_sort_values-row_int = l_row_int. ls_sort_values-sort_level = <fs_sfcat>-sort_level. ls_sort_values-is_collapsed = <fs_sfcat>-is_collapsed. CREATE DATA ls_sort_values-value LIKE <fs_fldval>. ASSIGN ls_sort_values-value->* TO <fs_sortval>. <fs_sortval> = <fs_fldval>. INSERT ls_sort_values INTO TABLE wt_sort_values. ENDLOOP. ENDIF. l_row_int = i_row_int. * Let's check if we need to hide a sort level. DESCRIBE TABLE wt_sort_values LINES l_line. IF l_line <= 1. CLEAR l_hidden. ELSE. LOOP AT wt_sort_values INTO ls_sort_values WHERE is_collapsed = abap_false. IF l_hidden < ls_sort_values-sort_level. l_hidden = ls_sort_values-sort_level. ENDIF. ENDLOOP. ENDIF. ADD 1 TO l_hidden. " As this is the first level we show. * First loop without formular only addtional rows with subtotal text. LOOP AT <fs_tab> ASSIGNING <fs_stab>. ADD 1 TO l_row_int. " 1 is for header row. l_row_int_start = l_row_int. SORT lt_fcat BY sort_level DESCENDING. LOOP AT lt_fcat ASSIGNING <fs_sfcat> WHERE is_subtotalled = abap_true. l_col_int = i_col_int + <fs_sfcat>-position - 1. l_col_alpha = zcl_excel_common=>convert_column2alpha( l_col_int ). * Now the cell values ASSIGN COMPONENT <fs_sfcat>-columnname OF STRUCTURE <fs_stab> TO <fs_fldval>. IF sy-subrc = 0. READ TABLE wt_sort_values ASSIGNING <fs_sortv> WITH TABLE KEY fieldname = <fs_sfcat>-columnname. IF sy-subrc = 0. ASSIGN <fs_sortv>-value->* TO <fs_sortval>. IF <fs_sortval> <> <fs_fldval> OR <fs_sortv>-new = abap_true. * First let's remmember the subtotal values as it has to appear later. ls_subtotal_rows-row_int = l_row_int. ls_subtotal_rows-row_int_start = <fs_sortv>-row_int. ls_subtotal_rows-columnname = <fs_sfcat>-columnname. INSERT ls_subtotal_rows INTO TABLE wt_subtotal_rows. * Now let's write the subtotal line l_cell_value = create_text_subtotal( i_value = <fs_sortval> i_totals_function = <fs_sfcat>-totals_function ). wo_worksheet->set_cell( ip_column = l_col_alpha ip_row = l_row_int ip_value = l_cell_value ip_abap_type = cl_abap_typedescr=>typekind_string ip_style = <fs_sfcat>-style_subtotal ). lo_row_dim = wo_worksheet->get_row_dimension( ip_row = l_row_int ). lo_row_dim->set_outline_level( ip_outline_level = <fs_sfcat>-sort_level ) . IF <fs_sfcat>-is_collapsed = abap_true. IF <fs_sfcat>-sort_level > l_hidden. lo_row_dim->set_visible( ip_visible = abap_false ) . ENDIF. lo_row_dim->set_collapsed( ip_collapsed = <fs_sfcat>-is_collapsed ) . ENDIF. * Now let's change the key ADD 1 TO l_row_int. <fs_sortval> = <fs_fldval>. <fs_sortv>-new = abap_false. l_line = <fs_sortv>-sort_level. LOOP AT wt_sort_values ASSIGNING <fs_sortv> WHERE sort_level >= l_line. <fs_sortv>-row_int = l_row_int. ENDLOOP. ENDIF. ENDIF. ENDIF. ENDLOOP. ENDLOOP. ADD 1 TO l_row_int. l_row_int_start = l_row_int. SORT lt_fcat BY sort_level DESCENDING. LOOP AT lt_fcat ASSIGNING <fs_sfcat> WHERE is_subtotalled = abap_true. l_col_int = i_col_int + <fs_sfcat>-position - 1. l_col_alpha = zcl_excel_common=>convert_column2alpha( l_col_int ). READ TABLE wt_sort_values ASSIGNING <fs_sortv> WITH TABLE KEY fieldname = <fs_sfcat>-columnname. IF sy-subrc = 0. ASSIGN <fs_sortv>-value->* TO <fs_sortval>. ls_subtotal_rows-row_int = l_row_int. ls_subtotal_rows-row_int_start = <fs_sortv>-row_int. ls_subtotal_rows-columnname = <fs_sfcat>-columnname. INSERT ls_subtotal_rows INTO TABLE wt_subtotal_rows. * First let's write the value as it has to appear. l_cell_value = create_text_subtotal( i_value = <fs_sortval> i_totals_function = <fs_sfcat>-totals_function ). wo_worksheet->set_cell( ip_column = l_col_alpha ip_row = l_row_int ip_value = l_cell_value ip_abap_type = cl_abap_typedescr=>typekind_string ip_style = <fs_sfcat>-style_subtotal ). l_sort_level = <fs_sfcat>-sort_level. lo_row_dim = wo_worksheet->get_row_dimension( ip_row = l_row_int ). lo_row_dim->set_outline_level( ip_outline_level = l_sort_level ) . IF <fs_sfcat>-is_collapsed = abap_true. IF <fs_sfcat>-sort_level > l_hidden. lo_row_dim->set_visible( ip_visible = abap_false ) . ENDIF. lo_row_dim->set_collapsed( ip_collapsed = <fs_sfcat>-is_collapsed ) . ENDIF. ADD 1 TO l_row_int. ENDIF. ENDLOOP. * Let's write the Grand total l_sort_level = 0. lo_row_dim = wo_worksheet->get_row_dimension( ip_row = l_row_int ). lo_row_dim->set_outline_level( ip_outline_level = l_sort_level ) . * lo_row_dim->set_collapsed( ip_collapsed = <fs_sfcat>-is_collapsed ) . Not on grand total l_text = create_text_subtotal( i_value = 'Grand'(002) i_totals_function = <fs_sfcat>-totals_function ). l_col_alpha_start = zcl_excel_common=>convert_column2alpha( i_col_int ). wo_worksheet->set_cell( ip_column = l_col_alpha_start ip_row = l_row_int ip_value = l_text ip_abap_type = cl_abap_typedescr=>typekind_string ip_style = <fs_sfcat>-style_subtotal ). * It is better to loop column by column second time around * Second loop with formular and data. LOOP AT wt_fieldcatalog ASSIGNING <fs_sfcat>. l_row_int = i_row_int. l_col_int = i_col_int + <fs_sfcat>-position - 1. * Freeze panes IF <fs_sfcat>-fix_column = abap_true. ADD 1 TO r_freeze_col. ENDIF. l_s_color = abap_true. l_col_alpha = zcl_excel_common=>convert_column2alpha( l_col_int ). " First of all write column header l_cell_value = <fs_sfcat>-scrtext_m. wo_worksheet->set_cell( ip_column = l_col_alpha ip_row = l_row_int ip_value = l_cell_value ip_abap_type = cl_abap_typedescr=>typekind_string ip_style = <fs_sfcat>-style_hdr ). ADD 1 TO l_row_int. LOOP AT <fs_tab> ASSIGNING <fs_stab>. l_table_row = sy-tabix. * Now the cell values ASSIGN COMPONENT <fs_sfcat>-columnname OF STRUCTURE <fs_stab> TO <fs_fldval>. * Let's check for subtotal lines DO. READ TABLE wt_subtotal_rows TRANSPORTING NO FIELDS WITH TABLE KEY row_int = l_row_int. IF sy-subrc = 0. IF <fs_sfcat>-is_subtotalled = abap_false AND <fs_sfcat>-totals_function IS NOT INITIAL. DO. READ TABLE wt_subtotal_rows INTO ls_subtotal_rows WITH TABLE KEY row_int = l_row_int. IF sy-subrc = 0. l_row_int_start = ls_subtotal_rows-row_int_start. l_row_int_end = l_row_int - 1. l_formula = create_formular_subtotal( i_row_int_start = l_row_int_start i_row_int_end = l_row_int_end i_column = l_col_alpha i_totals_function = <fs_sfcat>-totals_function ). wo_worksheet->set_cell( ip_column = l_col_alpha ip_row = l_row_int ip_formula = l_formula ip_style = <fs_sfcat>-style_subtotal ). IF <fs_sfcat>-is_collapsed = abap_true. lo_row_dim = wo_worksheet->get_row_dimension( ip_row = l_row_int ). lo_row_dim->set_collapsed( ip_collapsed = <fs_sfcat>-is_collapsed ). IF <fs_sfcat>-sort_level > l_hidden. lo_row_dim->set_visible( ip_visible = abap_false ) . ENDIF. ENDIF. ADD 1 TO l_row_int. ELSE. EXIT. ENDIF. ENDDO. ELSE. ADD 1 TO l_row_int. ENDIF. ELSE. EXIT. ENDIF. ENDDO. * Let's set the row dimension values lo_row_dim = wo_worksheet->get_row_dimension( ip_row = l_row_int ). lo_row_dim->set_outline_level( ip_outline_level = ws_layout-max_subtotal_level ) . IF <fs_sfcat>-is_collapsed = abap_true. lo_row_dim->set_visible( ip_visible = abap_false ) . lo_row_dim->set_collapsed( ip_collapsed = <fs_sfcat>-is_collapsed ) . ENDIF. * Now let's write the cell values IF ws_layout-is_stripped = abap_true AND l_s_color = abap_true. l_style = get_color_style( i_row = l_table_row i_fieldname = <fs_sfcat>-columnname i_style = <fs_sfcat>-style_stripped ). wo_worksheet->set_cell( ip_column = l_col_alpha ip_row = l_row_int ip_value = <fs_fldval> ip_style = l_style ). CLEAR l_s_color. ELSE. l_style = get_color_style( i_row = l_table_row i_fieldname = <fs_sfcat>-columnname i_style = <fs_sfcat>-style_normal ). wo_worksheet->set_cell( ip_column = l_col_alpha ip_row = l_row_int ip_value = <fs_fldval> ip_style = l_style ). l_s_color = abap_true. ENDIF. READ TABLE wt_filter TRANSPORTING NO FIELDS WITH TABLE KEY rownumber = l_table_row columnname = <fs_sfcat>-columnname. IF sy-subrc = 0. wo_worksheet->get_cell( EXPORTING ip_column = l_col_alpha ip_row = l_row_int IMPORTING ep_value = l_cell_value ). wo_autofilter->set_value( i_column = l_col_int i_value = l_cell_value ). ENDIF. ADD 1 TO l_row_int. ENDLOOP. * Let's check for subtotal lines DO. READ TABLE wt_subtotal_rows TRANSPORTING NO FIELDS WITH TABLE KEY row_int = l_row_int. IF sy-subrc = 0. IF <fs_sfcat>-is_subtotalled = abap_false AND <fs_sfcat>-totals_function IS NOT INITIAL. DO. READ TABLE wt_subtotal_rows INTO ls_subtotal_rows WITH TABLE KEY row_int = l_row_int. IF sy-subrc = 0. l_row_int_start = ls_subtotal_rows-row_int_start. l_row_int_end = l_row_int - 1. l_formula = create_formular_subtotal( i_row_int_start = l_row_int_start i_row_int_end = l_row_int_end i_column = l_col_alpha i_totals_function = <fs_sfcat>-totals_function ). wo_worksheet->set_cell( ip_column = l_col_alpha ip_row = l_row_int ip_formula = l_formula ip_style = <fs_sfcat>-style_subtotal ). IF <fs_sfcat>-is_collapsed = abap_true. lo_row_dim = wo_worksheet->get_row_dimension( ip_row = l_row_int ). lo_row_dim->set_collapsed( ip_collapsed = <fs_sfcat>-is_collapsed ). ENDIF. ADD 1 TO l_row_int. ELSE. EXIT. ENDIF. ENDDO. ELSE. ADD 1 TO l_row_int. ENDIF. ELSE. EXIT. ENDIF. ENDDO. * Now let's check for Grand total IF <fs_sfcat>-is_subtotalled = abap_false AND <fs_sfcat>-totals_function IS NOT INITIAL. l_row_int_start = i_row_int + 1. l_row_int_end = l_row_int - 1. l_formula = create_formular_subtotal( i_row_int_start = l_row_int_start i_row_int_end = l_row_int_end i_column = l_col_alpha i_totals_function = <fs_sfcat>-totals_function ). wo_worksheet->set_cell( ip_column = l_col_alpha ip_row = l_row_int ip_formula = l_formula ip_style = <fs_sfcat>-style_subtotal ). ENDIF. * Now let's check for optimized IF <fs_sfcat>-is_optimized = abap_true. lo_col_dim = wo_worksheet->get_column_dimension( ip_column = l_col_alpha ). lo_col_dim->set_auto_size( ip_auto_size = abap_true ) . ENDIF. * Now let's check for visible IF <fs_sfcat>-is_hidden = abap_true. lo_col_dim = wo_worksheet->get_column_dimension( ip_column = l_col_alpha ). lo_col_dim->set_visible( ip_visible = abap_false ) . ENDIF. ENDLOOP. endmethod. method OPEN_FILE. data: l_bytecount type i, lt_file type solix_tab, l_dir type string. field-symbols: <fs_data> type any table. assign wo_data->* to <fs_data>. * catch zcx_excel . *endtry. if wo_excel is bound. get_file( importing e_bytecount = l_bytecount et_file = lt_file ) . l_dir = create_path( ) . cl_gui_frontend_services=>gui_download( exporting bin_filesize = l_bytecount filename = l_dir filetype = 'BIN' changing data_tab = lt_file ). cl_gui_frontend_services=>execute( exporting document = l_dir * application = * parameter = * default_directory = * maximized = * minimized = * synchronous = * operation = 'OPEN' exceptions cntl_error = 1 error_no_gui = 2 bad_parameter = 3 file_not_found = 4 path_not_found = 5 file_extension_unknown = 6 error_execute_failed = 7 synchronous_failed = 8 not_supported_by_gui = 9 ). if sy-subrc <> 0. message id sy-msgid type sy-msgty number sy-msgno with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. endif. endif. endmethod. method SET_AUTOFILTER_AREA. DATA: ls_area TYPE zexcel_s_autofilter_area, l_lines TYPE i, lt_values TYPE zexcel_t_autofilter_values, ls_values TYPE zexcel_s_autofilter_values. * Let's check for filter. IF wo_autofilter IS BOUND. ls_area-row_start = 1. lt_values = wo_autofilter->get_values( ) . SORT lt_values BY column ASCENDING. DESCRIBE TABLE lt_values LINES l_lines. READ TABLE lt_values INTO ls_values INDEX 1. IF sy-subrc = 0. ls_area-col_start = ls_values-column. ENDIF. READ TABLE lt_values INTO ls_values INDEX l_lines. IF sy-subrc = 0. ls_area-col_end = ls_values-column. ENDIF. wo_autofilter->set_filter_area( is_area = ls_area ) . ENDIF. endmethod. method SET_CELL_FORMAT. DATA: l_format TYPE zexcel_number_format. CLEAR r_format. CASE i_inttype. WHEN cl_abap_typedescr=>typekind_date. r_format = wo_worksheet->get_default_excel_date_format( ). WHEN cl_abap_typedescr=>typekind_time. r_format = wo_worksheet->get_default_excel_time_format( ). WHEN cl_abap_typedescr=>typekind_float OR cl_abap_typedescr=>typekind_packed. IF i_decimals > 0 . l_format = '#,##0.'. DO i_decimals TIMES. CONCATENATE l_format '0' INTO l_format. ENDDO. r_format = l_format. ENDIF. WHEN cl_abap_typedescr=>typekind_int OR cl_abap_typedescr=>typekind_int1 OR cl_abap_typedescr=>typekind_int2. r_format = '#,##0'. ENDCASE. endmethod. method SET_FIELDCATALOG. DATA: lr_data TYPE REF TO data, lo_structdescr TYPE REF TO cl_abap_structdescr, lt_dfies TYPE ddfields, ls_dfies TYPE dfies. DATA: ls_fcat TYPE zexcel_s_converter_fcat. FIELD-SYMBOLS: <fs_tab> TYPE ANY TABLE. ASSIGN wo_data->* TO <fs_tab> . CREATE DATA lr_data LIKE LINE OF <fs_tab>. lo_structdescr ?= cl_abap_structdescr=>describe_by_data_ref( lr_data ). lt_dfies = zcl_excel_common=>describe_structure( io_struct = lo_structdescr ). LOOP AT lt_dfies INTO ls_dfies. MOVE-CORRESPONDING ls_dfies TO ls_fcat. ls_fcat-columnname = ls_dfies-fieldname. INSERT ls_fcat INTO TABLE wt_fieldcatalog. ENDLOOP. clean_fieldcatalog( ). endmethod. method SET_OPTION. IF ws_indx-begdt IS INITIAL. ws_indx-begdt = sy-datum. ENDIF. ws_indx-aedat = sy-datum. ws_indx-usera = sy-uname. ws_indx-pgmid = sy-cprog. EXPORT p1 = is_option TO DATABASE indx(xl) FROM ws_indx ID ws_indx-srtfd. IF sy-subrc = 0. ws_option = is_option. ENDIF. endmethod. method WRITE_FILE. data: l_bytecount type i, lt_file type solix_tab, l_dir type string. field-symbols: <fs_data> type any table. assign wo_data->* to <fs_data>. * catch zcx_excel . *endtry. if wo_excel is bound. get_file( importing e_bytecount = l_bytecount et_file = lt_file ) . if i_path is initial. l_dir = create_path( ) . else. l_dir = i_path. endif. cl_gui_frontend_services=>gui_download( exporting bin_filesize = l_bytecount filename = l_dir filetype = 'BIN' changing data_tab = lt_file ). endif. endmethod. ENDCLASS.
[ 4871, 1168, 5097, 62, 6369, 34, 3698, 62, 10943, 5959, 5781, 6770, 198, 220, 1171, 198, 220, 2251, 1171, 764, 198, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 6369, 34, 3698, 62, 10943, 5959, 5781, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 11377, 2665, 13, 198, 220, 2099, 12, 7742, 82, 9564, 2969, 764, 628, 220, 1398, 12, 24396, 82, 42715, 62, 10943, 46126, 1581, 764, 198, 220, 5050, 7054, 42, 62, 3185, 24131, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 6998, 62, 3185, 24131, 8, 2099, 1168, 6369, 34, 3698, 62, 50, 62, 10943, 5959, 5781, 62, 3185, 24131, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 34, 55, 62, 6369, 34, 3698, 764, 198, 220, 5050, 7102, 15858, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 1797, 62, 3185, 24131, 2099, 1168, 6369, 34, 3698, 62, 50, 62, 10943, 5959, 5781, 62, 3185, 24131, 11902, 198, 220, 220, 220, 220, 220, 5145, 9399, 62, 1847, 53, 2099, 1006, 284, 25334, 23680, 11902, 198, 220, 220, 220, 220, 220, 5145, 2043, 62, 38148, 2099, 49053, 9795, 43679, 11902, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 49, 3913, 62, 12394, 2099, 314, 4277, 352, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 25154, 5883, 45, 62, 12394, 2099, 314, 4277, 352, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 38148, 2099, 9977, 4760, 11902, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 2257, 56, 2538, 62, 38148, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 11902, 198, 220, 220, 220, 220, 220, 5145, 9399, 62, 33249, 9693, 36, 2767, 2099, 1006, 284, 1168, 5097, 62, 6369, 34, 3698, 62, 33249, 9693, 36, 2767, 11902, 198, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 5145, 8220, 62, 6369, 34, 3698, 2099, 1006, 284, 1168, 5097, 62, 6369, 34, 3698, 11902, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 34, 55, 62, 6369, 34, 3698, 764, 198, 220, 5050, 29244, 6158, 62, 34219, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 49, 62, 34219, 8, 2099, 19269, 2751, 764, 198, 220, 5050, 17151, 62, 25664, 198, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 17513, 51, 2943, 28270, 2099, 314, 198, 220, 220, 220, 220, 220, 5145, 2767, 62, 25664, 2099, 36817, 10426, 62, 5603, 33, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 25664, 2099, 1395, 18601, 2751, 764, 198, 220, 5050, 17151, 62, 3185, 24131, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 6998, 62, 3185, 24131, 8, 2099, 1168, 6369, 34, 3698, 62, 50, 62, 10943, 5959, 5781, 62, 3185, 24131, 764, 198, 220, 5050, 38303, 62, 25664, 764, 198, 220, 5050, 25823, 62, 3185, 24131, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 1797, 62, 3185, 24131, 2099, 1168, 6369, 34, 3698, 62, 50, 62, 10943, 5959, 5781, 62, 3185, 24131, 764, 198, 220, 5050, 44423, 62, 25664, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 34219, 2099, 19269, 2751, 11902, 764, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 5097, 62, 6369, 34, 3698, 62, 10943, 5959, 5781, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 24326, 2665, 13, 628, 220, 3858, 25, 198, 220, 220, 220, 347, 43312, 3963, 256, 62, 39468, 1056, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2496, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 256, 62, 39468, 1056, 764, 198, 220, 3858, 25, 198, 220, 220, 220, 347, 43312, 3963, 256, 62, 7753, 9641, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 598, 3672, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15436, 863, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1877, 7287, 863, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 929, 11249, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14873, 12453, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 23578, 3963, 256, 62, 7753, 9641, 764, 198, 220, 3858, 25, 198, 220, 220, 220, 347, 43312, 3963, 256, 62, 21760, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9629, 312, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 256, 62, 21760, 764, 198, 220, 3858, 25, 198, 220, 220, 220, 347, 43312, 3963, 256, 62, 1818, 2070, 1050, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14873, 12453, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4277, 43810, 9641, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 256, 62, 1818, 2070, 1050, 764, 198, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
"! <p class="shorttext synchronized" lang="en">Used Object (from Object Environment Analysis)</p> CLASS zcl_advoat_oea_used_object DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES: zif_advoat_oea_used_object . METHODS: constructor IMPORTING name TYPE seu_objkey display_name TYPE seu_objkey type TYPE trobjtype sub_type TYPE seu_objtyp. PROTECTED SECTION. PRIVATE SECTION. DATA: id TYPE sysuuid_x16, type TYPE trobjtype, sub_type TYPE seu_objtyp, name TYPE sobj_name, display_name TYPE seu_objkey. ENDCLASS. CLASS zcl_advoat_oea_used_object IMPLEMENTATION. METHOD constructor. me->type = type. me->name = name. me->display_name = display_name. me->sub_type = sub_type. me->id = zcl_advoat_system_util=>create_sysuuid_x16( ). ENDMETHOD. METHOD zif_advoat_oea_object~get_display_name. result = display_name. ENDMETHOD. METHOD zif_advoat_oea_object~get_name. result = name. ENDMETHOD. METHOD zif_advoat_oea_used_object~to_data. result = VALUE zif_advoat_ty_oea=>ty_used_object_db( used_obj_id = id used_obj_type = type used_obj_sub_type = sub_type used_obj_name = name used_obj_display_name = display_name ). ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 38052, 9515, 357, 6738, 9515, 9344, 14691, 36475, 79, 29, 198, 31631, 1976, 565, 62, 324, 13038, 265, 62, 2577, 64, 62, 1484, 62, 15252, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 198, 220, 220, 220, 220, 220, 1976, 361, 62, 324, 13038, 265, 62, 2577, 64, 62, 1484, 62, 15252, 764, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 384, 84, 62, 26801, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3359, 62, 3672, 41876, 384, 84, 62, 26801, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4161, 50007, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 850, 62, 4906, 220, 220, 220, 220, 41876, 384, 84, 62, 26801, 28004, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 4686, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 827, 2385, 27112, 62, 87, 1433, 11, 198, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4161, 50007, 4906, 11, 198, 220, 220, 220, 220, 220, 850, 62, 4906, 220, 220, 220, 220, 41876, 384, 84, 62, 26801, 28004, 11, 198, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 27355, 73, 62, 3672, 11, 198, 220, 220, 220, 220, 220, 3359, 62, 3672, 41876, 384, 84, 62, 26801, 2539, 13, 198, 10619, 31631, 13, 628, 198, 31631, 1976, 565, 62, 324, 13038, 265, 62, 2577, 64, 62, 1484, 62, 15252, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 502, 3784, 4906, 796, 2099, 13, 198, 220, 220, 220, 502, 3784, 3672, 796, 1438, 13, 198, 220, 220, 220, 502, 3784, 13812, 62, 3672, 796, 3359, 62, 3672, 13, 198, 220, 220, 220, 502, 3784, 7266, 62, 4906, 796, 850, 62, 4906, 13, 198, 220, 220, 220, 502, 3784, 312, 796, 1976, 565, 62, 324, 13038, 265, 62, 10057, 62, 22602, 14804, 17953, 62, 17597, 12303, 312, 62, 87, 1433, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 324, 13038, 265, 62, 2577, 64, 62, 15252, 93, 1136, 62, 13812, 62, 3672, 13, 198, 220, 220, 220, 1255, 796, 3359, 62, 3672, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 324, 13038, 265, 62, 2577, 64, 62, 15252, 93, 1136, 62, 3672, 13, 198, 220, 220, 220, 1255, 796, 1438, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 324, 13038, 265, 62, 2577, 64, 62, 1484, 62, 15252, 93, 1462, 62, 7890, 13, 198, 220, 220, 220, 1255, 796, 26173, 8924, 1976, 361, 62, 324, 13038, 265, 62, 774, 62, 2577, 64, 14804, 774, 62, 1484, 62, 15252, 62, 9945, 7, 198, 220, 220, 220, 220, 220, 973, 62, 26801, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 4686, 198, 220, 220, 220, 220, 220, 973, 62, 26801, 62, 4906, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2099, 198, 220, 220, 220, 220, 220, 973, 62, 26801, 62, 7266, 62, 4906, 220, 220, 220, 220, 796, 850, 62, 4906, 198, 220, 220, 220, 220, 220, 973, 62, 26801, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1438, 198, 220, 220, 220, 220, 220, 973, 62, 26801, 62, 13812, 62, 3672, 796, 3359, 62, 3672, 6739, 198, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abaplint_configuration DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. TYPES: ty_packages TYPE STANDARD TABLE OF zabaplint_pack WITH KEY devclass . METHODS read_package IMPORTING !iv_devclass TYPE devclass RETURNING VALUE(rv_json) TYPE string . METHODS get_global RETURNING VALUE(rs_data) TYPE zabaplint_glob_data . METHODS set_global IMPORTING !is_data TYPE zabaplint_glob_data . METHODS list_packages RETURNING VALUE(rt_data) TYPE ty_packages . METHODS add_package IMPORTING !iv_devclass TYPE devclass . METHODS remove_package IMPORTING !iv_devclass TYPE devclass . METHODS change_package IMPORTING !iv_devclass TYPE zabaplint_pack-devclass !iv_json TYPE zabaplint_pack-json . CLASS-METHODS find_from_package IMPORTING !iv_devclass TYPE devclass RETURNING VALUE(rv_config) TYPE string RAISING zcx_abapgit_exception . CLASS-METHODS find_from_object IMPORTING !iv_object_type TYPE trobjtype !iv_object_name TYPE sobj_name RETURNING VALUE(rv_config) TYPE string RAISING zcx_abapgit_exception . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ZCL_ABAPLINT_CONFIGURATION IMPLEMENTATION. METHOD add_package. DATA ls_data TYPE zabaplint_pack. ASSERT zcl_abapgit_factory=>get_sap_package( iv_devclass )->exists( ) = abap_true. ls_data-devclass = iv_devclass. INSERT zabaplint_pack FROM ls_data. ASSERT sy-subrc = 0. ENDMETHOD. METHOD change_package. UPDATE zabaplint_pack SET json = iv_json WHERE devclass = iv_devclass. ASSERT sy-dbcnt = 1. ENDMETHOD. METHOD find_from_object. DATA lv_devclass TYPE tadir-devclass. SELECT SINGLE devclass FROM tadir INTO lv_devclass WHERE pgmid = 'R3TR' AND object = iv_object_type AND obj_name = iv_object_name. IF sy-subrc <> 0. RETURN. ENDIF. rv_config = find_from_package( lv_devclass ). ENDMETHOD. METHOD find_from_package. DATA lt_packages TYPE zif_abapgit_sap_package=>ty_devclass_tt. DATA lt_config TYPE ty_packages. DATA lo_abaplint_conf TYPE REF TO zcl_abaplint_configuration. lt_packages = zcl_abapgit_factory=>get_sap_package( iv_devclass )->list_superpackages( ). * todo, cache this in static variable CREATE OBJECT lo_abaplint_conf. lt_config = lo_abaplint_conf->list_packages( ). DATA lv_package LIKE LINE OF lt_packages. DATA ls_config LIKE LINE OF lt_config. LOOP AT lt_packages INTO lv_package. READ TABLE lt_config WITH KEY devclass = lv_package INTO ls_config. IF sy-subrc = 0. rv_config = ls_config-json. RETURN. ENDIF. ENDLOOP. ENDMETHOD. METHOD get_global. SELECT SINGLE * FROM zabaplint_glob INTO CORRESPONDING FIELDS OF rs_data WHERE sysid = sy-sysid. ENDMETHOD. METHOD list_packages. SELECT * FROM zabaplint_pack INTO TABLE rt_data ORDER BY PRIMARY KEY. "#EC CI_NOWHERE ENDMETHOD. METHOD read_package. SELECT SINGLE json FROM zabaplint_pack INTO rv_json WHERE devclass = iv_devclass. ASSERT sy-subrc = 0. ENDMETHOD. METHOD remove_package. DELETE FROM zabaplint_pack WHERE devclass = iv_devclass. ASSERT sy-subrc = 0. ENDMETHOD. METHOD set_global. DATA: ls_data TYPE zabaplint_glob. MOVE-CORRESPONDING is_data TO ls_data. ls_data-sysid = sy-sysid. MODIFY zabaplint_glob FROM ls_data. ASSERT sy-subrc = 0. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 15498, 489, 600, 62, 11250, 3924, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 43789, 41876, 49053, 9795, 43679, 3963, 1976, 15498, 489, 600, 62, 8002, 13315, 35374, 1614, 4871, 764, 628, 220, 220, 220, 337, 36252, 50, 1100, 62, 26495, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 7959, 4871, 220, 220, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 17752, 8, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 20541, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 7890, 8, 41876, 1976, 15498, 489, 600, 62, 4743, 672, 62, 7890, 764, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 20541, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 7890, 41876, 1976, 15498, 489, 600, 62, 4743, 672, 62, 7890, 764, 198, 220, 220, 220, 337, 36252, 50, 1351, 62, 43789, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 7890, 8, 41876, 1259, 62, 43789, 764, 198, 220, 220, 220, 337, 36252, 50, 751, 62, 26495, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 7959, 4871, 41876, 1614, 4871, 764, 198, 220, 220, 220, 337, 36252, 50, 4781, 62, 26495, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 7959, 4871, 41876, 1614, 4871, 764, 198, 220, 220, 220, 337, 36252, 50, 1487, 62, 26495, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 7959, 4871, 41876, 1976, 15498, 489, 600, 62, 8002, 12, 7959, 4871, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 17752, 220, 220, 220, 220, 41876, 1976, 15498, 489, 600, 62, 8002, 12, 17752, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 1064, 62, 6738, 62, 26495, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 7959, 4871, 220, 220, 220, 220, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 11250, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 1064, 62, 6738, 62, 15252, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 15252, 62, 4906, 220, 41876, 4161, 50007, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 15252, 62, 3672, 220, 41876, 27355, 73, 62, 3672, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 11250, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 43, 12394, 62, 10943, 16254, 4261, 6234, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 751, 62, 26495, 13, 628, 220, 220, 220, 42865, 43979, 62, 7890, 41876, 1976, 15498, 489, 600, 62, 8002, 13, 628, 220, 220, 220, 24994, 17395, 1976, 565, 62, 397, 499, 18300, 62, 69, 9548, 14804, 1136, 62, 82, 499, 62, 26495, 7, 21628, 62, 7959, 4871, 1267, 3784, 1069, 1023, 7, 1267, 796, 450, 499, 62, 7942, 13, 628, 220, 220, 220, 43979, 62, 7890, 12, 7959, 4871, 796, 21628, 62, 7959, 4871, 13, 628, 220, 220, 220, 29194, 17395, 1976, 15498, 489, 600, 62, 8002, 16034, 43979, 62, 7890, 13, 198, 220, 220, 220, 24994, 17395, 827, 12, 7266, 6015, 796, 657, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1487, 62, 26495, 13, 628, 220, 220, 220, 35717, 1976, 15498, 489, 600, 62, 8002, 198, 220, 220, 220, 220, 220, 25823, 33918, 796, 21628, 62, 17752, 198, 220, 220, 220, 220, 220, 33411, 1614, 4871, 796, 21628, 62, 7959, 4871, 13, 198, 220, 220, 220, 24994, 17395, 827, 12, 9945, 66, 429, 796, 352, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1064, 62, 6738, 62, 15252, 13, 628, 220, 220, 220, 42865, 300, 85, 62, 7959, 4871, 41876, 36264, 343, 12, 7959, 4871, 13, 628, 220, 220, 220, 33493, 311, 2751, 2538, 1614, 4871, 16034, 36264, 343, 198, 220, 220, 220, 220, 220, 39319, 300, 85, 62, 7959, 4871, 198, 220, 220, 220, 220, 220, 33411, 23241, 13602, 796, 705, 49, 18, 5446, 6, 198, 220, 220, 220, 220, 220, 5357, 2134, 796, 21628, 62, 15252, 62, 4906, 198, 220, 220, 220, 220, 220, 5357, 26181, 62, 3672, 796, 21628, 62, 15252, 62, 3672, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 374, 85, 62, 11250, 796, 1064, 62, 6738, 62, 26495, 7, 300, 85, 62, 7959, 4871, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1064, 62, 6738, 62, 26495, 13, 628, 220, 220, 220, 42865, 300, 83, 62, 43789, 41876, 1976, 361, 62, 397, 499, 18300, 62, 82, 499, 62, 26495, 14804, 774, 62, 7959, 4871, 62, 926, 13, 198, 220, 220, 220, 42865, 300 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZCL_Z_4_MONSTER_DPC_EXT definition public inheriting from ZCL_Z_4_MONSTER_DPC create public . public section. methods CONSTRUCTOR . methods /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_DEEP_ENTITY redefinition . protected section. methods MONSTERITEMS_GET_ENTITYSET redefinition . methods MONSTERS_DELETE_ENTITY redefinition . methods MONSTERS_GET_ENTITY redefinition . methods MONSTERS_GET_ENTITYSET redefinition . private section. data MO_MONSTER_MODEL type ref to ZCL_4_MONSTER_MODEL . ENDCLASS. CLASS ZCL_Z_4_MONSTER_DPC_EXT IMPLEMENTATION. METHOD /iwbep/if_mgw_appl_srv_runtime~create_deep_entity. *--------------------------------------------------------------------* * In traditional DYNPRO programs you update the header table and the * item table and any other related tables in a single LUW * The obvious example is VBAK / VBAP / VBEP / VBKD etc which all get * updated together when a sales document is saved. * Naturally we want to do the exact same thing when processing a * request to create a new business object via SAP Gateway * The terminology here is CREATE_DEEP_ENTITY *--------------------------------------------------------------------* * The bulk of the comments below are copied verbatim from the standard * SAP example code *--------------------------------------------------------------------* "Local Variables TYPES: monster_header_row TYPE z4sc_monster_header_ex, monster_item_row TYPE z4sc_monster_items_ex, monster_item_list TYPE STANDARD TABLE OF monster_item_row. CONSTANTS: monster_set_name TYPE string VALUE `MONSTERS`. DATA: new_monster_header_entry TYPE monster_header_row, new_monster_item_stack TYPE monster_item_list, new_monster_item_entry LIKE LINE OF new_monster_item_stack, entityset_name TYPE string, " The following structure is used to receive the header and multiple " rows acquired by the call to method io_data_provider->read_entry_data. " That method will move values, column by column, from the sending " structure to this receiving structure through a process that dynamically " identifies both sender column and receiver column. Accordingly, there " are constraints that must be observed when defining this receiving " structure, otherwise one or more columns of the the receiving structure " will not be populated with counterpart values from the corresponding " sending structure. " This structure needs to be defined as a deep structure, meaning that " it contains at least one field that is itself defined as an internal " table. The structure is to be arranged as follows: " o The name of this structure can be any name at all. " o The next dependent fields of this structure must contain fields with " the same name and type as those fields defined as the properties " of the primary entity type. " o The next dependent field following the final primary entity type field " must be the same name as the navigation property associating the " primary entity type to its dependent entity type. This field itself " must be defined as an internal table using a structure containing " fields with the same name and type as those fields defined as the " properties of the dependent entity type. " o The sequence of the primary entity type and dependent entity type " fields within this structure is not important - only the names of " the fields must match their counterpart entity type properties. " Indeed, the internal table defined for holding the rows of the " dependent entity type can be interspersed between two other fields " describing the properties of the primary entity type. For the sake " of easy maintenance and debugging, it is recommended to define these " fields in the following sequence: " - all fields correlating to properties of the primary entity type " - the name of an internal table correlating to the navigation property " from the primary entity type to the dependent entity type, with " the name of its corresponding structure being one that contains " the names of the properties of the dependent entity type BEGIN OF monster_with_items. " Next entries must indicate the names and respective types of the " properties defined for the primary entity type: INCLUDE TYPE monster_header_row. " Next entry must indicate the name of the navigation property from the " primary entity type to the dependent entity type: DATA: frommonstertomonsteritem " Next entry must indicate an internal table describing the names and " respective types of the properties defined for the dependent entity type: TYPE STANDARD TABLE OF monster_item_row, END OF monster_with_items. CLEAR er_deep_entity. entityset_name = to_upper( io_tech_request_context->get_entity_set_name( ) ). CASE entityset_name. WHEN monster_set_name. io_data_provider->read_entry_data( IMPORTING es_data = monster_with_items ). WHEN OTHERS. "Notify the front end of the problem encountered: DATA(message_container) = /iwbep/if_mgw_conv_srv_runtime~get_message_container( ). message_container->add_message_text_only( iv_msg_type = 'E' iv_msg_text = 'Unexpected Entity Set Type'(001) ). RETURN. ENDCASE. new_monster_header_entry = CORRESPONDING #( monster_with_items ). LOOP AT monster_with_items-frommonstertomonsteritem ASSIGNING FIELD-SYMBOL(<frommonstertomonsteritem>). new_monster_item_entry = CORRESPONDING #( <frommonstertomonsteritem> ). INSERT new_monster_item_entry INTO TABLE new_monster_item_stack. ENDLOOP. TRY. "As always, outsource the actual work to a re-usable business object class mo_monster_model->create_monster_record( VALUE #( header = new_monster_header_entry items = new_monster_item_stack ) ). CATCH zcx_4_monster_exceptions_mc INTO DATA(exception). "Undo any work that might already have been performed during the execution of this method: ROLLBACK WORK."#EC CI_ROLLBACK "Notify the front end of the problem encountered: message_container = /iwbep/if_mgw_conv_srv_runtime~get_message_container( ). message_container->add_message_text_only( iv_msg_type = 'E' iv_msg_text = CONV #( exception->get_text( ) ) ). RETURN. ENDTRY. "Provide this newly created monster with items in the response: copy_data_to_ref( EXPORTING is_data = monster_with_items CHANGING cr_data = er_deep_entity ). *--------------------------------------------------------------------* * The 20 foor tall monster cannot turn invisible at will *--------------------------------------------------------------------* ENDMETHOD. METHOD constructor. *-----------------------------------------------------------------------* * Listing 09.01: - Embedding Monster Model Class into Data Provider Class *-----------------------------------------------------------------------* super->constructor( ). mo_monster_model = NEW #( ). ENDMETHOD. METHOD monsteritems_get_entityset. *--------------------------------------------------------------------* * Listing 09.03: - Coding Method to Get All Monster Items *--------------------------------------------------------------------* DATA: monster_header LIKE LINE OF et_entityset. CLEAR: es_response_context. io_tech_request_context->get_converted_source_keys( IMPORTING es_key_values = monster_header ). CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = monster_header-monster_number IMPORTING output = monster_header-monster_number. TRY. et_entityset = mo_monster_model->derive_monster_record( monster_header-monster_number )-items. CATCH zcx_4_monster_exceptions_mc INTO DATA(monster_exception). "Create Bottle... DATA(message_container) = /iwbep/if_mgw_conv_srv_runtime~get_message_container( ). "Put message in bottle.... "Use CONV to convert from string to TEXT220 message_container->add_message_text_only( iv_msg_type = /iwbep/if_message_container=>gcs_message_type-error iv_msg_text = CONV #( monster_exception->get_text( ) ) ). "Throw bottle into sea.... RAISE EXCEPTION NEW /iwbep/cx_mgw_busi_exception( message_container = message_container ). ENDTRY. ENDMETHOD."MonsterItems Get Entityset METHOD monsters_delete_entity. *--------------------------------------------------------------------* * Listing 09.05: - Passing Exception Back to Calling Application *--------------------------------------------------------------------* DATA: monster_number TYPE z4de_monster_number. DATA(monster_keys) = io_tech_request_context->get_keys( ). monster_number = monster_keys[ name = 'MONSTER_NUMBER' ]-value. DATA(message_container) = /iwbep/if_mgw_conv_srv_runtime~get_message_container( ). message_container->add_message_text_only( iv_msg_type = /iwbep/if_message_container=>gcs_message_type-error iv_msg_text = |{ 'Monster No'(003) } { monster_number ALPHA = OUT } { 'does not want to be deleted'(002) }| ). RAISE EXCEPTION NEW /iwbep/cx_mgw_busi_exception( message_container = message_container ). * The Monster that is 1 foot tall was one castle away from the Monster who has the super-power of invisibility ENDMETHOD."Monsters Delete Entity METHOD monsters_get_entity. *--------------------------------------------------------------------* * Listing 09.04: Monsters Get Entity Method *--------------------------------------------------------------------* DATA: monster_number TYPE z4de_monster_number. CLEAR: es_response_context. DATA(monster_keys) = io_tech_request_context->get_keys( ). monster_number = monster_keys[ name = 'MONSTER_NUMBER' ]-value. CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = monster_number IMPORTING output = monster_number. TRY. er_entity = mo_monster_model->derive_monster_record( monster_number )-header. "If the time stamps are empty you get a short dump IF er_entity-createdat IS INITIAL. GET TIME STAMP FIELD er_entity-createdat. ENDIF. IF er_entity-lastchangedat IS INITIAL. GET TIME STAMP FIELD er_entity-lastchangedat. ENDIF. CATCH zcx_4_monster_exceptions_mc INTO DATA(monster_exception). "Create Bottle... DATA(message_container) = /iwbep/if_mgw_conv_srv_runtime~get_message_container( ). "Put message in bottle.... "Use CONV to convert from string to TEXT220 message_container->add_message_text_only( iv_msg_type = /iwbep/if_message_container=>gcs_message_type-error iv_msg_text = CONV #( monster_exception->get_text( ) ) ). "Throw bottle into sea.... RAISE EXCEPTION NEW /iwbep/cx_mgw_busi_exception( message_container = message_container ). ENDTRY. ENDMETHOD. METHOD monsters_get_entityset. *--------------------------------------------------------------------* * Listing 09.02: - Monsters Get Entity Set – Method Implementation *--------------------------------------------------------------------* CLEAR: et_entityset, es_response_context. "See if we have any selection criteria passed in DATA(odata_filter) = io_tech_request_context->get_filter( ). DATA(odata_filter_select_options) = odata_filter->get_filter_select_options( ). "We adapt the ODATA structure to the generic COSEL "selection structure used throughout ABAP DATA: abap_select_options TYPE ztt_bc_coseltab. IF odata_filter_select_options[] IS NOT INITIAL. LOOP AT odata_filter_select_options ASSIGNING FIELD-SYMBOL(<odata_sel_option_structure>). APPEND INITIAL LINE TO abap_select_options ASSIGNING FIELD-SYMBOL(<abap_select_option>). <abap_select_option>-field = <odata_sel_option_structure>-property. LOOP AT <odata_sel_option_structure>-select_options ASSIGNING FIELD-SYMBOL(<odata_select_option>)."#EC CI_NESTED <abap_select_option>-option = <odata_select_option>-option. <abap_select_option>-sign = <odata_select_option>-sign. <abap_select_option>-low = <odata_select_option>-low. <abap_select_option>-high = <odata_select_option>-high. ENDLOOP."Selection options for field being queried ENDLOOP."List of fields being queried ELSE. "No selection criteria have been passed in "Set selection criteria so that all records are returned APPEND INITIAL LINE TO abap_select_options ASSIGNING <abap_select_option>. <abap_select_option>-field = 'MONSTER_NUMBER'. <abap_select_option>-option = 'GT'. <abap_select_option>-sign = 'I'. <abap_select_option>-low = '0000000001'. ENDIF."Were any selection criteria passed in? "The below needs buffering, in case of client side paging "i.e. don't re-read the database when the user pages down DATA(table_of_filtered_monsters) = mo_monster_model->retrieve_headers_by_attribute( abap_select_options ). "Extract any instructions how to sort the result list from "the incoming request DATA(odata_sort_order_fields) = io_tech_request_context->get_orderby( ). "Now we build a dynamic table which we will then use to "sort the result a la SORTCAT in the ALV DATA: abap_sort_order_fields TYPE abap_sortorder_tab. LOOP AT odata_sort_order_fields ASSIGNING FIELD-SYMBOL(<odata_sort_order>). APPEND INITIAL LINE TO abap_sort_order_fields ASSIGNING FIELD-SYMBOL(<abap_sort_order>). <abap_sort_order>-name = <odata_sort_order>-property. IF <odata_sort_order>-order = 'desc'. <abap_sort_order>-descending = abap_true. ENDIF. "Some header fields are defined as CHAR IF <odata_sort_order>-property = 'SCARINESS' OR <odata_sort_order>-property = 'EVILNESS' OR <odata_sort_order>-property = 'COLOR' OR <odata_sort_order>-property = 'BRAIN_SIZE'. <abap_sort_order>-astext = abap_true. ENDIF. ENDLOOP."Sort Order from Incoming Request SORT table_of_filtered_monsters BY (abap_sort_order_fields). "Query the incoming URL to see if we have to start from "a specific point, and how many rows to display DATA(paging_skip) = io_tech_request_context->get_skip( ). "The URL may contain text like "$skip=5" IF paging_skip IS NOT INITIAL. DATA(start_row) = paging_skip + 1. ELSE. start_row = 1. ENDIF. DATA(paging_top) = io_tech_request_context->get_top( ). "The URL may contain text like "$top=10" IF paging_top IS NOT INITIAL. DATA(end_row) = paging_skip + paging_top. ELSE. end_row = lines( table_of_filtered_monsters ). ENDIF. "Export the final result LOOP AT table_of_filtered_monsters FROM start_row TO end_row ASSIGNING FIELD-SYMBOL(<filtered_monster_header>). APPEND INITIAL LINE TO et_entityset ASSIGNING FIELD-SYMBOL(<monster_header_record>). <monster_header_record> = CORRESPONDING #( <filtered_monster_header> ). CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = <monster_header_record>-monster_number IMPORTING output = <monster_header_record>-monster_number. ENDLOOP. * Change security settings to allow local testing as per * http://scn.sap.com/community/gateway/blog/2014/09/23/solve-cors-with-gateway-and-chrome DATA(http_name_value_pair) = VALUE ihttpnvp( name = 'Access-Control-Allow-Origin' value = '*' ) ##NO_TEXT. /iwbep/if_mgw_conv_srv_runtime~set_header( http_name_value_pair ). ENDMETHOD."Monsters Get EntitySet ENDCLASS.
[ 4871, 1168, 5097, 62, 57, 62, 19, 62, 27857, 41809, 62, 35, 5662, 62, 13918, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1168, 5097, 62, 57, 62, 19, 62, 27857, 41809, 62, 35, 5662, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 5050, 7102, 46126, 1581, 764, 628, 220, 5050, 1220, 40, 45607, 8905, 14, 5064, 62, 20474, 54, 62, 2969, 6489, 62, 12562, 53, 62, 49, 4944, 34694, 93, 43387, 6158, 62, 35, 35238, 62, 3525, 9050, 198, 220, 220, 220, 34087, 17750, 764, 198, 24326, 2665, 13, 628, 220, 5050, 25000, 41809, 2043, 39201, 62, 18851, 62, 3525, 9050, 28480, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 25000, 2257, 4877, 62, 7206, 2538, 9328, 62, 3525, 9050, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 25000, 2257, 4877, 62, 18851, 62, 3525, 9050, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 25000, 2257, 4877, 62, 18851, 62, 3525, 9050, 28480, 198, 220, 220, 220, 34087, 17750, 764, 198, 19734, 2665, 13, 628, 220, 1366, 13070, 62, 27857, 41809, 62, 33365, 3698, 2099, 1006, 284, 1168, 5097, 62, 19, 62, 27857, 41809, 62, 33365, 3698, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 57, 62, 19, 62, 27857, 41809, 62, 35, 5662, 62, 13918, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1220, 14246, 65, 538, 14, 361, 62, 11296, 86, 62, 1324, 75, 62, 27891, 85, 62, 43282, 93, 17953, 62, 22089, 62, 26858, 13, 198, 9, 10097, 650, 9, 198, 9, 554, 4569, 360, 40760, 31190, 4056, 345, 4296, 262, 13639, 3084, 290, 262, 198, 9, 2378, 3084, 290, 597, 584, 3519, 8893, 287, 257, 2060, 50168, 54, 198, 9, 383, 3489, 1672, 318, 569, 4339, 42, 1220, 569, 33, 2969, 1220, 569, 33, 8905, 1220, 569, 33, 42, 35, 3503, 543, 477, 651, 198, 9, 6153, 1978, 618, 257, 4200, 3188, 318, 7448, 13, 198, 9, 30413, 356, 765, 284, 466, 262, 2748, 976, 1517, 618, 7587, 257, 198, 9, 2581, 284, 2251, 257, 649, 1597, 2134, 2884, 48323, 29916, 198, 9, 383, 29191, 994, 318, 29244, 6158, 62, 35, 35238, 62, 3525, 9050, 198, 9, 10097, 650, 9, 198, 9, 383, 11963, 286, 262, 3651, 2174, 389, 18984, 3326, 8664, 320, 422, 262, 3210, 198, 9, 48323, 1672, 2438, 198, 9, 10097, 650, 9, 198, 220, 220, 220, 366, 14565, 15965, 2977, 198, 220, 220, 220, 24412, 47, 1546, 25, 9234, 62, 25677, 62, 808, 41876, 1976, 19, 1416, 62, 39050, 62, 25677, 62, 1069, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9234, 62, 9186, 62, 808, 220, 220, 41876, 1976, 19, 1416, 62, 39050, 62, 23814, 62, 1069, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9234, 62, 9186, 62, 4868, 220, 41876, 49053, 9795, 43679, 3963, 9234, 62, 9186, 62, 808, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 9234, 62, 2617, 62, 3672, 41876, 4731, 26173, 8924, 4600, 27857, 2257, 4877, 44646, 628, 220, 220, 220, 42865, 25, 649, 62, 39050, 62, 25677, 62, 13000, 41876, 9234, 62, 25677, 62, 808, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 649, 62, 39050, 62, 9186, 62, 25558, 220, 220, 41876, 9234, 62, 9186, 62, 4868, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 649, 62, 39050, 62, 9186, 62, 13000, 220, 220, 34178, 48920, 3963, 649, 62, 39050, 62, 9186, 62, 25558, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9312, 2617, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 383, 1708, 4645, 318, 973, 284, 3328, 262, 13639, 290, 3294, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 15274, 9477, 416, 262, 869, 284, 2446, 33245, 62, 7890, 62, 15234, 1304, 3784, 961, 62, 13000, 62, 7890, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 1320, 2446, 481, 1445, 3815, 11, 5721, 416, 5721, 11, 422, 262, 7216, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 4645, 284, 428, 6464, 4645, 832, 257, 1429, 326, 32366, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 21079, 1111, 29788, 5721, 290, 9733, 5721, 13, 28386, 11, 612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 389, 17778, 326, 1276, 307, 6515, 618, 16215, 428, 6464, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 4645, 11, 4306, 530, 393, 517, 15180, 286, 262, 262, 6464, 4645, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 481, 407, 307, 22331, 351, 11283, 3815, 422, 262, 11188, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 7216, 4645, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 770, 4645, 2476, 284, 307, 5447, 355, 257, 2769, 4645, 11, 3616, 326, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 340, 4909, 379, 1551, 530, 2214, 326, 318, 2346, 5447, 355, 281, 5387, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 3084, 13, 220, 383, 4645, 318, 284, 307, 14921, 355, 5679, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 220, 220, 267, 383, 1438, 286, 428, 4645, 460, 307, 597, 1438, 379, 477, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 220, 220, 267, 383, 1306, 10795, 7032, 286, 428, 4645, 1276, 3994, 7032, 351, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 220, 220, 220, 220, 220, 220, 262, 976, 1438, 290, 2099, 355, 883, 7032, 5447, 355, 262, 6608, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 220, 220, 220, 220, 220, 220, 286, 262, 4165, 9312, 2099, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 220, 220, 267, 383, 1306, 10795, 2214, 1708, 262, 2457, 4165, 9312, 2099, 2214, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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_refresh', stage_all TYPE string VALUE 'stage_all', stage_commit TYPE string VALUE 'stage_commit', stage_filter TYPE string VALUE 'stage_filter', END OF c_action. METHODS: constructor IMPORTING io_repo TYPE REF TO zcl_abapgit_repo_online iv_seed TYPE string OPTIONAL RAISING zcx_abapgit_exception, zif_abapgit_gui_event_handler~on_event REDEFINITION. PROTECTED SECTION. METHODS: render_content REDEFINITION. PRIVATE SECTION. TYPES: BEGIN OF ty_changed_by, item TYPE zif_abapgit_definitions=>ty_item, name TYPE xubname, END OF ty_changed_by . TYPES: ty_changed_by_tt TYPE SORTED TABLE OF ty_changed_by WITH UNIQUE KEY item . DATA mo_repo TYPE REF TO zcl_abapgit_repo_online . DATA ms_files TYPE zif_abapgit_definitions=>ty_stage_files . DATA mv_seed TYPE string . " Unique page id to bind JS sessionStorage DATA mv_filter_value TYPE string . METHODS check_selected IMPORTING !io_files TYPE REF TO zcl_abapgit_string_map RAISING zcx_abapgit_exception . METHODS find_changed_by IMPORTING !it_files TYPE zif_abapgit_definitions=>ty_stage_files !it_transports TYPE zif_abapgit_cts_api=>ty_transport_list RETURNING VALUE(rt_changed_by) TYPE ty_changed_by_tt . METHODS find_transports IMPORTING !it_files TYPE zif_abapgit_definitions=>ty_stage_files RETURNING VALUE(rt_transports) TYPE zif_abapgit_cts_api=>ty_transport_list . METHODS render_list RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . METHODS render_file IMPORTING !iv_context TYPE string !is_file TYPE zif_abapgit_definitions=>ty_file !is_item TYPE zif_abapgit_definitions=>ty_item OPTIONAL !is_status TYPE zif_abapgit_definitions=>ty_result !iv_changed_by TYPE xubname OPTIONAL !iv_transport TYPE trkorr OPTIONAL RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . METHODS render_actions RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html . METHODS stage_selected IMPORTING !ii_event TYPE REF TO zif_abapgit_gui_event RETURNING VALUE(ro_stage) TYPE REF TO zcl_abapgit_stage RAISING zcx_abapgit_exception . METHODS stage_all RETURNING VALUE(ro_stage) TYPE REF TO zcl_abapgit_stage RAISING zcx_abapgit_exception . METHODS build_menu RETURNING VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar . METHODS get_page_patch IMPORTING !io_stage TYPE REF TO zcl_abapgit_stage RETURNING VALUE(ri_page) TYPE REF TO zif_abapgit_gui_renderable RAISING zcx_abapgit_exception . METHODS render_main_language_warning RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html . METHODS count_default_files_to_commit RETURNING VALUE(rv_count) TYPE i . METHODS render_deferred_hidden_events RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html . METHODS render_scripts RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . METHODS init_files RAISING zcx_abapgit_exception . ENDCLASS. CLASS zcl_abapgit_gui_page_stage IMPLEMENTATION. METHOD build_menu. CREATE OBJECT ro_menu. IF lines( ms_files-local ) > 0 OR lines( ms_files-remote ) > 0. ro_menu->add( iv_txt = 'Refresh' iv_act = |{ c_action-stage_refresh }| iv_opt = zif_abapgit_html=>c_html_opt-strong )->add( iv_txt = |Diff| iv_act = |{ zif_abapgit_definitions=>c_action-go_repo_diff }?key={ mo_repo->get_key( ) }| )->add( iv_txt = |Patch| iv_typ = zif_abapgit_html=>c_action_type-onclick iv_id = |patchBtn| ). ENDIF. ENDMETHOD. METHOD check_selected. DATA: ls_file TYPE zif_abapgit_definitions=>ty_file, lv_pattern TYPE string, lv_msg TYPE string. FIELD-SYMBOLS: <ls_item> LIKE LINE OF io_files->mt_entries, <ls_item_chk> LIKE LINE OF io_files->mt_entries. " Check all added files if the exist in different paths (packages) without being removed LOOP AT io_files->mt_entries ASSIGNING <ls_item> WHERE v = zif_abapgit_definitions=>c_method-add. zcl_abapgit_path=>split_file_location( EXPORTING iv_fullpath = to_lower( <ls_item>-k ) IMPORTING ev_path = ls_file-path ev_filename = ls_file-filename ). " Skip packages since they all have identical filenames IF ls_file-filename <> 'package.devc.xml'. lv_pattern = '*/' && to_upper( ls_file-filename ). REPLACE ALL OCCURRENCES OF '#' IN lv_pattern WITH '##'. " for CP LOOP AT io_files->mt_entries ASSIGNING <ls_item_chk> WHERE k CP lv_pattern AND k <> <ls_item>-k AND v <> zif_abapgit_definitions=>c_method-rm. lv_msg = |In order to add { to_lower( <ls_item>-k ) }, | && |you have to remove { to_lower( <ls_item_chk>-k ) }|. zcx_abapgit_exception=>raise( lv_msg ). ENDLOOP. ENDIF. ENDLOOP. ENDMETHOD. METHOD constructor. DATA lv_ts TYPE timestamp. super->constructor( ). ms_control-page_title = 'Stage'. mo_repo = io_repo. mv_seed = iv_seed. IF mv_seed IS INITIAL. " Generate based on time unless obtained from diff page GET TIME STAMP FIELD lv_ts. mv_seed = |stage{ lv_ts }|. ENDIF. init_files( ). ms_control-page_menu = build_menu( ). ENDMETHOD. METHOD count_default_files_to_commit. FIELD-SYMBOLS <ls_status> LIKE LINE OF ms_files-status. FIELD-SYMBOLS <ls_remote> LIKE LINE OF ms_files-remote. rv_count = lines( ms_files-local ). LOOP AT ms_files-remote ASSIGNING <ls_remote>. READ TABLE ms_files-status ASSIGNING <ls_status> WITH TABLE KEY path = <ls_remote>-path filename = <ls_remote>-filename. ASSERT sy-subrc = 0. IF <ls_status>-lstate = zif_abapgit_definitions=>c_state-deleted AND <ls_status>-rstate = zif_abapgit_definitions=>c_state-unchanged. rv_count = rv_count + 1. ENDIF. ENDLOOP. ENDMETHOD. METHOD find_changed_by. DATA: ls_local LIKE LINE OF it_files-local, ls_remote LIKE LINE OF it_files-remote, ls_changed_by LIKE LINE OF rt_changed_by, lt_changed_by_remote LIKE rt_changed_by, ls_item TYPE zif_abapgit_definitions=>ty_item, lv_transport LIKE LINE OF it_transports, lv_user TYPE e070-as4user. FIELD-SYMBOLS: <ls_changed_by> LIKE LINE OF rt_changed_by. LOOP AT it_files-local INTO ls_local WHERE NOT item IS INITIAL. ls_changed_by-item = ls_local-item. INSERT ls_changed_by INTO TABLE rt_changed_by. ENDLOOP. LOOP AT it_files-remote INTO ls_remote WHERE filename IS NOT INITIAL. TRY. zcl_abapgit_filename_logic=>file_to_object( EXPORTING iv_filename = ls_remote-filename iv_path = ls_remote-path io_dot = mo_repo->get_dot_abapgit( ) IMPORTING es_item = ls_item ). ls_changed_by-item = ls_item. INSERT ls_changed_by INTO TABLE lt_changed_by_remote. CATCH zcx_abapgit_exception. ENDTRY. ENDLOOP. LOOP AT rt_changed_by ASSIGNING <ls_changed_by>. <ls_changed_by>-name = zcl_abapgit_objects=>changed_by( <ls_changed_by>-item ). ENDLOOP. LOOP AT lt_changed_by_remote ASSIGNING <ls_changed_by>. " deleted files might still be in a transport CLEAR lv_transport. READ TABLE it_transports WITH KEY obj_type = <ls_changed_by>-item-obj_type obj_name = <ls_changed_by>-item-obj_name INTO lv_transport. IF sy-subrc = 0. SELECT SINGLE as4user FROM e070 INTO lv_user WHERE trkorr = lv_transport-trkorr. IF sy-subrc = 0. <ls_changed_by>-name = lv_user. ENDIF. ENDIF. IF <ls_changed_by>-name IS INITIAL. <ls_changed_by>-name = zcl_abapgit_objects_super=>c_user_unknown. ENDIF. ENDLOOP. INSERT LINES OF lt_changed_by_remote INTO TABLE rt_changed_by. ENDMETHOD. METHOD find_transports. DATA li_cts_api TYPE REF TO zif_abapgit_cts_api. DATA lt_items TYPE zif_abapgit_definitions=>ty_items_tt. DATA ls_item TYPE zif_abapgit_definitions=>ty_item. DATA lo_dot TYPE REF TO zcl_abapgit_dot_abapgit. FIELD-SYMBOLS <ls_local> LIKE LINE OF it_files-local. FIELD-SYMBOLS <ls_remote> LIKE LINE OF it_files-remote. li_cts_api = zcl_abapgit_factory=>get_cts_api( ). TRY. LOOP AT it_files-local ASSIGNING <ls_local> WHERE item IS NOT INITIAL. IF li_cts_api->is_chrec_possible_for_package( <ls_local>-item-devclass ) = abap_false. RETURN. " Assume all other objects are also in packages without change recording ENDIF. APPEND <ls_local>-item TO lt_items. ENDLOOP. lo_dot = mo_repo->get_dot_abapgit( ). LOOP AT it_files-remote ASSIGNING <ls_remote> WHERE filename IS NOT INITIAL. zcl_abapgit_filename_logic=>file_to_object( EXPORTING iv_filename = <ls_remote>-filename iv_path = <ls_remote>-path io_dot = lo_dot IMPORTING es_item = ls_item ). IF ls_item IS INITIAL. CONTINUE. ENDIF. APPEND ls_item TO lt_items. ENDLOOP. SORT lt_items BY obj_type obj_name. DELETE ADJACENT DUPLICATES FROM lt_items COMPARING obj_type obj_name. rt_transports = li_cts_api->get_transports_for_list( lt_items ). CATCH zcx_abapgit_exception. ENDTRY. ENDMETHOD. METHOD get_page_patch. DATA: lo_page TYPE REF TO zcl_abapgit_gui_page_patch, lv_key TYPE zif_abapgit_persistence=>ty_repo-key, lt_files TYPE zif_abapgit_definitions=>ty_stage_tt. lv_key = mo_repo->get_key( ). lt_files = io_stage->get_all( ). DELETE lt_files WHERE method <> zif_abapgit_definitions=>c_method-add AND method <> zif_abapgit_definitions=>c_method-rm. CREATE OBJECT lo_page EXPORTING iv_key = lv_key it_files = lt_files. ri_page = lo_page. ENDMETHOD. METHOD init_files. ms_files = zcl_abapgit_factory=>get_stage_logic( )->get( mo_repo ). IF lines( ms_files-local ) = 0 AND lines( ms_files-remote ) = 0. zcx_abapgit_exception=>raise( 'There are no changes that could be staged' ). ENDIF. ENDMETHOD. METHOD render_actions. DATA: lv_local_count TYPE i, lv_add_all_txt TYPE string. CREATE OBJECT ri_html TYPE zcl_abapgit_html. lv_local_count = count_default_files_to_commit( ). IF lv_local_count > 0. lv_add_all_txt = |Add All and Commit ({ lv_local_count })|. " Otherwise empty, but the element (id) is preserved for JS ENDIF. ri_html->add( '<table class="w100 margin-v5"><tr>' ). " Action buttons ri_html->add( '<td class="indent5em">' ). ri_html->add_a( iv_act = 'errorStub(event)' " Will be reinit by JS iv_typ = zif_abapgit_html=>c_action_type-onclick iv_id = 'commitSelectedButton' iv_style = 'display: none' iv_txt = 'Commit Selected (<span class="counter"></span>)' iv_opt = zif_abapgit_html=>c_html_opt-strong ). ri_html->add_a( iv_act = 'errorStub(event)' " Will be reinit by JS iv_typ = zif_abapgit_html=>c_action_type-onclick iv_id = 'commitFilteredButton' iv_style = 'display: none' iv_txt = 'Add <b>Filtered</b> and Commit (<span class="counter"></span>)' ). ri_html->add_a( iv_act = |{ c_action-stage_all }| iv_id = 'commitAllButton' iv_txt = lv_add_all_txt ). ri_html->add( '</td>' ). " Filter bar ri_html->add( '<td class="right">' ). ri_html->add( '<input class="stage-filter" id="objectSearch"' && ' type="search" placeholder="Filter Objects"' && | value="{ mv_filter_value }">| ). ri_html->add( '</td>' ). ri_html->add( '</tr>' ). ri_html->add( '</table>' ). ENDMETHOD. METHOD render_content. CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( '<div class="repo">' ). ri_html->add( zcl_abapgit_gui_chunk_lib=>render_repo_top( io_repo = mo_repo iv_interactive_branch = abap_true ) ). ri_html->add( zcl_abapgit_gui_chunk_lib=>render_js_error_banner( ) ). ri_html->add( render_main_language_warning( ) ). ri_html->add( '<div class="stage-container">' ). ri_html->add( render_actions( ) ). ri_html->add( render_list( ) ). ri_html->add( '</div>' ). ri_html->add( '</div>' ). gui_services( )->get_hotkeys_ctl( )->register_hotkeys( me ). gui_services( )->get_html_parts( )->add_part( iv_collection = zcl_abapgit_gui_component=>c_html_parts-hidden_forms ii_part = render_deferred_hidden_events( ) ). register_deferred_script( render_scripts( ) ). ENDMETHOD. METHOD render_deferred_hidden_events. DATA ls_event TYPE zcl_abapgit_gui_chunk_lib=>ty_event_signature. ls_event-method = 'post'. ls_event-name = 'stage_commit'. ri_html = zcl_abapgit_gui_chunk_lib=>render_event_as_form( ls_event ). ri_html->set_title( cl_abap_typedescr=>describe_by_object_ref( me )->get_relative_name( ) ). ENDMETHOD. METHOD render_file. DATA: lv_param TYPE string, lv_filename TYPE string. CREATE OBJECT ri_html TYPE zcl_abapgit_html. lv_filename = is_file-path && is_file-filename. " make sure whitespace is preserved in the DOM REPLACE ALL OCCURRENCES OF ` ` IN lv_filename WITH '&nbsp;'. ri_html->add( |<tr class="{ iv_context }">| ). ri_html->add( '<td>' ). ri_html->add( zcl_abapgit_gui_chunk_lib=>render_item_state( iv_lstate = is_status-lstate iv_rstate = is_status-rstate ) ). ri_html->add( '</td>' ). CASE iv_context. WHEN 'local'. lv_param = zcl_abapgit_html_action_utils=>file_encode( iv_key = mo_repo->get_key( ) ig_file = is_file ). lv_filename = ri_html->a( iv_txt = lv_filename iv_act = |{ zif_abapgit_definitions=>c_action-go_file_diff }?{ lv_param }| ). ri_html->add( |<td class="type">{ is_item-obj_type }</td>| ). ri_html->add( |<td class="name">{ lv_filename }</td>| ). WHEN 'remote'. ri_html->add( |<td class="type">{ is_item-obj_type }</td>| ). ri_html->add( |<td class="name">{ lv_filename }</td>| ). ENDCASE. ri_html->add( '<td class="user">' ). ri_html->add( zcl_abapgit_gui_chunk_lib=>render_user_name( iv_changed_by ) ). ri_html->add( '</td>' ). ri_html->add( '<td class="transport">' ). ri_html->add( zcl_abapgit_gui_chunk_lib=>render_transport( iv_transport ) ). ri_html->add( '</td>' ). ri_html->add( '<td class="status">?</td>' ). ri_html->add( '<td class="cmd"></td>' ). " Command added in JS ri_html->add( '</tr>' ). ENDMETHOD. METHOD render_list. DATA: lt_changed_by TYPE ty_changed_by_tt, ls_changed_by LIKE LINE OF lt_changed_by, lt_transports TYPE zif_abapgit_cts_api=>ty_transport_list, ls_transport LIKE LINE OF lt_transports, ls_item_remote TYPE zif_abapgit_definitions=>ty_item. FIELD-SYMBOLS: <ls_remote> LIKE LINE OF ms_files-remote, <ls_status> LIKE LINE OF ms_files-status, <ls_local> LIKE LINE OF ms_files-local. CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( '<table id="stageTab" class="stage_tab w100">' ). lt_transports = find_transports( ms_files ). lt_changed_by = find_changed_by( it_files = ms_files it_transports = lt_transports ). " Local changes LOOP AT ms_files-local ASSIGNING <ls_local>. AT FIRST. ri_html->add( '<thead><tr class="local">' ). ri_html->add( '<th class="stage-status"></th>' ). " Diff state ri_html->add( '<th class="stage-objtype">Type</th>' ). ri_html->add( '<th title="Click filename to see diff">File</th>' ). ri_html->add( '<th>Changed by</th>' ). ri_html->add( '<th>Transport</th>' ). ri_html->add( '<th></th>' ). " Status ri_html->add( '<th class="cmd">' ). ri_html->add( '<a>add</a>&#x2193; <a>reset</a>&#x2193;' ). ri_html->add( '</th>' ). ri_html->add( '</tr></thead>' ). ri_html->add( '<tbody>' ). ENDAT. READ TABLE lt_changed_by INTO ls_changed_by WITH KEY item = <ls_local>-item. "#EC CI_SUBRC READ TABLE lt_transports INTO ls_transport WITH KEY obj_type = <ls_local>-item-obj_type obj_name = <ls_local>-item-obj_name. "#EC CI_SUBRC READ TABLE ms_files-status ASSIGNING <ls_status> WITH TABLE KEY path = <ls_local>-file-path filename = <ls_local>-file-filename. ASSERT sy-subrc = 0. ri_html->add( render_file( iv_context = 'local' is_file = <ls_local>-file is_item = <ls_local>-item is_status = <ls_status> iv_changed_by = ls_changed_by-name iv_transport = ls_transport-trkorr ) ). CLEAR ls_transport. AT LAST. ri_html->add( '</tbody>' ). ENDAT. ENDLOOP. " Remote changes LOOP AT ms_files-remote ASSIGNING <ls_remote>. AT FIRST. ri_html->add( '<thead><tr class="remote">' ). ri_html->add( '<th></th>' ). " Diff state ri_html->add( '<th></th>' ). " Type ri_html->add( '<th colspan="3">Files to remove or non-code</th>' ). ri_html->add( '<th></th>' ). " Transport ri_html->add( '<th class="cmd">' ). ri_html->add( '<a>ignore</a>&#x2193; <a>remove</a>&#x2193; <a>reset</a>&#x2193;' ). ri_html->add( '</th>' ). ri_html->add( '</tr></thead>' ). ri_html->add( '<tbody>' ). ENDAT. READ TABLE ms_files-status ASSIGNING <ls_status> WITH TABLE KEY path = <ls_remote>-path filename = <ls_remote>-filename. ASSERT sy-subrc = 0. TRY. zcl_abapgit_filename_logic=>file_to_object( EXPORTING iv_filename = <ls_remote>-filename iv_path = <ls_remote>-path io_dot = mo_repo->get_dot_abapgit( ) IMPORTING es_item = ls_item_remote ). READ TABLE lt_transports INTO ls_transport WITH KEY obj_type = ls_item_remote-obj_type obj_name = ls_item_remote-obj_name. READ TABLE lt_changed_by INTO ls_changed_by WITH KEY item = ls_item_remote. CATCH zcx_abapgit_exception. CLEAR ls_transport. ENDTRY. ri_html->add( render_file( iv_context = 'remote' is_status = <ls_status> is_file = <ls_remote> is_item = ls_item_remote iv_changed_by = ls_changed_by-name iv_transport = ls_transport-trkorr ) ). AT LAST. ri_html->add( '</tbody>' ). ENDAT. ENDLOOP. ri_html->add( '</table>' ). ENDMETHOD. METHOD render_main_language_warning. DATA lv_main_language TYPE spras. CREATE OBJECT ri_html TYPE zcl_abapgit_html. lv_main_language = mo_repo->get_dot_abapgit( )->get_main_language( ). IF lv_main_language <> sy-langu. ri_html->add( zcl_abapgit_gui_chunk_lib=>render_warning_banner( |Caution: Main language of the repo is '{ lv_main_language }', | && |but you're logged on in '{ sy-langu }'| ) ). ENDIF. ENDMETHOD. METHOD render_scripts. CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->set_title( cl_abap_typedescr=>describe_by_object_ref( me )->get_relative_name( ) ). ri_html->add( 'var gStageParams = {' ). ri_html->add( | seed: "{ mv_seed }",| ). " Unique page id ri_html->add( | user: "{ to_lower( sy-uname ) }",| ). ri_html->add( ' formAction: "stage_commit",' ). ri_html->add( | patchAction: "{ zif_abapgit_definitions=>c_action-go_patch }",| ). ri_html->add( ' ids: {' ). ri_html->add( ' stageTab: "stageTab",' ). ri_html->add( ' commitAllBtn: "commitAllButton",' ). ri_html->add( ' commitSelectedBtn: "commitSelectedButton",' ). ri_html->add( ' commitFilteredBtn: "commitFilteredButton",' ). ri_html->add( ' patchBtn: "patchBtn",' ). ri_html->add( ' objectSearch: "objectSearch",' ). ri_html->add( ' }' ). ri_html->add( '}' ). ri_html->add( 'var gHelper = new StageHelper(gStageParams);' ). ENDMETHOD. METHOD stage_all. FIELD-SYMBOLS <ls_local> LIKE LINE OF ms_files-local. FIELD-SYMBOLS <ls_remote> LIKE LINE OF ms_files-remote. FIELD-SYMBOLS <ls_status> LIKE LINE OF ms_files-status. CREATE OBJECT ro_stage. LOOP AT ms_files-local ASSIGNING <ls_local>. READ TABLE ms_files-status ASSIGNING <ls_status> WITH TABLE KEY path = <ls_local>-file-path filename = <ls_local>-file-filename. ASSERT sy-subrc = 0. ro_stage->add( iv_path = <ls_local>-file-path iv_filename = <ls_local>-file-filename is_status = <ls_status> iv_data = <ls_local>-file-data ). ENDLOOP. LOOP AT ms_files-remote ASSIGNING <ls_remote>. READ TABLE ms_files-status ASSIGNING <ls_status> WITH TABLE KEY path = <ls_remote>-path filename = <ls_remote>-filename. ASSERT sy-subrc = 0. IF <ls_status>-lstate = zif_abapgit_definitions=>c_state-deleted AND <ls_status>-rstate = zif_abapgit_definitions=>c_state-unchanged. ro_stage->rm( iv_path = <ls_remote>-path iv_filename = <ls_remote>-filename is_status = <ls_status> ). ENDIF. ENDLOOP. ENDMETHOD. METHOD stage_selected. DATA ls_file TYPE zif_abapgit_definitions=>ty_file. DATA lo_files TYPE REF TO zcl_abapgit_string_map. FIELD-SYMBOLS: <ls_file> LIKE LINE OF ms_files-local, <ls_status> LIKE LINE OF ms_files-status, <ls_item> LIKE LINE OF lo_files->mt_entries. lo_files = ii_event->form_data( ). IF lo_files->size( ) = 0. zcx_abapgit_exception=>raise( 'process_stage_list: empty list' ). ENDIF. check_selected( lo_files ). CREATE OBJECT ro_stage. LOOP AT lo_files->mt_entries ASSIGNING <ls_item> "Ignore Files that we don't want to stage, so any errors don't stop the staging process WHERE v <> zif_abapgit_definitions=>c_method-skip. zcl_abapgit_path=>split_file_location( EXPORTING iv_fullpath = to_lower( <ls_item>-k ) " filename is lower cased IMPORTING ev_path = ls_file-path ev_filename = ls_file-filename ). READ TABLE ms_files-status ASSIGNING <ls_status> WITH TABLE KEY path = ls_file-path filename = ls_file-filename. IF sy-subrc <> 0. * see https://github.com/abapGit/abapGit/issues/3073 zcx_abapgit_exception=>raise( iv_text = |Unable to stage { ls_file-filename }. If the filename contains spaces, this is a known issue.| && | Consider ignoring or staging the file at a later time.| ). ENDIF. CASE <ls_item>-v. WHEN zif_abapgit_definitions=>c_method-add. READ TABLE ms_files-local ASSIGNING <ls_file> WITH KEY file-path = ls_file-path file-filename = ls_file-filename. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |process_stage_list: unknown file { ls_file-path }{ ls_file-filename }| ). ENDIF. ro_stage->add( iv_path = <ls_file>-file-path iv_filename = <ls_file>-file-filename is_status = <ls_status> iv_data = <ls_file>-file-data ). WHEN zif_abapgit_definitions=>c_method-ignore. ro_stage->ignore( iv_path = ls_file-path iv_filename = ls_file-filename ). WHEN zif_abapgit_definitions=>c_method-rm. ro_stage->rm( iv_path = ls_file-path is_status = <ls_status> iv_filename = ls_file-filename ). WHEN zif_abapgit_definitions=>c_method-skip. " Do nothing WHEN OTHERS. zcx_abapgit_exception=>raise( |process_stage_list: unknown method { <ls_item>-v }| ). ENDCASE. ENDLOOP. ENDMETHOD. METHOD zif_abapgit_gui_event_handler~on_event. DATA: lo_stage TYPE REF TO zcl_abapgit_stage. CASE ii_event->mv_action. WHEN c_action-stage_all. lo_stage = stage_all( ). CREATE OBJECT rs_handled-page TYPE zcl_abapgit_gui_page_commit EXPORTING io_repo = mo_repo io_stage = lo_stage. rs_handled-state = zcl_abapgit_gui=>c_event_state-new_page. WHEN c_action-stage_commit. lo_stage = stage_selected( ii_event ). CREATE OBJECT rs_handled-page TYPE zcl_abapgit_gui_page_commit EXPORTING io_repo = mo_repo io_stage = lo_stage. rs_handled-state = zcl_abapgit_gui=>c_event_state-new_page. WHEN c_action-stage_filter. mv_filter_value = ii_event->form_data( )->get( 'filterValue' ). rs_handled-state = zcl_abapgit_gui=>c_event_state-no_more_act. WHEN zif_abapgit_definitions=>c_action-go_patch. " Go Patch page lo_stage = stage_selected( ii_event ). rs_handled-page = get_page_patch( lo_stage ). rs_handled-state = zcl_abapgit_gui=>c_event_state-new_page. WHEN c_action-stage_refresh. mo_repo->refresh( abap_true ). init_files( ). rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render. WHEN zif_abapgit_definitions=>c_action-git_branch_switch. zcl_abapgit_services_git=>switch_branch( |{ ii_event->query( )->get( 'KEY' ) }| ). mo_repo->refresh( abap_true ). init_files( ). rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render. WHEN OTHERS. rs_handled = super->zif_abapgit_gui_event_handler~on_event( ii_event ). ENDCASE. ENDMETHOD. METHOD zif_abapgit_gui_hotkeys~get_hotkey_actions. DATA ls_hotkey_action LIKE LINE OF rt_hotkey_actions. ls_hotkey_action-ui_component = 'Stage'. ls_hotkey_action-description = |Patch|. ls_hotkey_action-action = 'submitPatch'. " JS function in StageHelper ls_hotkey_action-hotkey = |p|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. ls_hotkey_action-description = |Diff|. ls_hotkey_action-action = zif_abapgit_definitions=>c_action-go_repo_diff. ls_hotkey_action-hotkey = |d|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. ls_hotkey_action-description = |Refresh|. ls_hotkey_action-action = c_action-stage_refresh. ls_hotkey_action-hotkey = |r|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 14247, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 8940, 13083, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 347, 43312, 3963, 269, 62, 2673, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3800, 62, 5420, 3447, 41876, 4731, 26173, 8924, 705, 14247, 62, 5420, 3447, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3800, 62, 439, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 14247, 62, 439, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3800, 62, 41509, 220, 41876, 4731, 26173, 8924, 705, 14247, 62, 41509, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3800, 62, 24455, 220, 41876, 4731, 26173, 8924, 705, 14247, 62, 24455, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 2673, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 260, 7501, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 28826, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 15596, 62, 30281, 93, 261, 62, 15596, 23848, 36, 20032, 17941, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 8543, 62, 11299, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 40985, 62, 1525, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2378, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 41876, 2124, 549, 3672, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 40985, 62, 1525, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 40985, 62, 1525, 62, 926, 41876, 311, 9863, 1961, 43679, 3963, 1259, 62, 40985, 62, 1525, 13315, 4725, 33866, 8924, 35374, 2378, 764, 628, 220, 220, 220, 42865, 6941, 62, 260, 7501, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 764, 198, 220, 220, 220, 42865, 13845, 62, 16624, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 14247, 62, 16624, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 28826, 41876, 4731, 764, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 30015, 2443, 4686, 284, 11007, 26755, 6246, 31425, 198, 220, 220, 220, 42865, 285, 85, 62, 24455, 62, 8367, 41876, 4731, 764, 628, 220, 220, 220, 337, 36252, 50, 2198, 62, 34213, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 16624, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 8841, 62, 8899, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 1064, 62, 40985, 62, 1525, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 16624, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 14247, 62, 16624, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 7645, 3742, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 310, 82, 62, 15042, 14804, 774, 62, 7645, 634, 62, 4868, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 40985, 62, 1525, 8, 41876, 1259, 62, 40985, 62, 1525, 62, 926, 764, 198, 220, 220, 220, 337, 36252, 50, 1064, 62, 7645, 3742, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 16624, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 14247, 62, 16624, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 7645, 3742, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 310, 82, 62, 15042, 14804, 774, 62, 7645, 634, 62, 4868, 764, 198, 220, 220, 220, 337, 36252, 50, 8543, 62, 4868, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 8543, 62, 7753, 198, 220, 220, 220, 220, 220, 30023, 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 1, 1, 1, 1, 1, 1, 1 ]
*----------------------------------------------------------------------* * CLASS lcl_Test DEFINITION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS ltcl_test DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS FINAL. PRIVATE SECTION. DATA: mt_code TYPE string_table, ms_result TYPE scirest_ad, mv_text TYPE string, mo_check TYPE REF TO zcl_aoc_check_91. METHODS: setup, message_handler FOR EVENT message OF zcl_aoc_check_91 IMPORTING p_param_1, export_import FOR TESTING, test001 FOR TESTING. ENDCLASS. "lcl_Test *----------------------------------------------------------------------* * CLASS lcl_Test IMPLEMENTATION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS ltcl_test IMPLEMENTATION. DEFINE _code. APPEND &1 TO mt_code. END-OF-DEFINITION. METHOD setup. CREATE OBJECT mo_check. SET HANDLER message_handler FOR mo_check. zcl_aoc_unit_test=>set_check( mo_check ). ENDMETHOD. "setup METHOD message_handler. mv_text = p_param_1. ENDMETHOD. METHOD export_import. zcl_aoc_unit_test=>export_import( mo_check ). ENDMETHOD. METHOD test001. _code 'METHOD test.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'WRITE ''Just a Dummy Test''.'. _code 'ENDMETHOD.'. ms_result = zcl_aoc_unit_test=>check( mt_code ). cl_abap_unit_assert=>assert_equals( exp = 'E' act = ms_result-kind ). cl_abap_unit_assert=>assert_equals( exp = '001' act = ms_result-code ). ENDMETHOD. ENDCLASS. "lcl_Test
[ 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 565, 62, 14402, 5550, 20032, 17941, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 31631, 300, 83, 565, 62, 9288, 5550, 20032, 17941, 7473, 43001, 2751, 198, 220, 360, 4261, 6234, 6006, 9863, 198, 220, 45698, 42, 49277, 43638, 5805, 7597, 198, 220, 25261, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 45079, 62, 8189, 220, 220, 41876, 4731, 62, 11487, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13845, 62, 20274, 41876, 629, 557, 301, 62, 324, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 85, 62, 5239, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6941, 62, 9122, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 64, 420, 62, 9122, 62, 6420, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 9058, 11, 198, 220, 220, 220, 220, 220, 3275, 62, 30281, 7473, 49261, 3275, 3963, 1976, 565, 62, 64, 420, 62, 9122, 62, 6420, 30023, 9863, 2751, 279, 62, 17143, 62, 16, 11, 198, 220, 220, 220, 220, 220, 10784, 62, 11748, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 1332, 8298, 7473, 43001, 2751, 13, 198, 198, 10619, 31631, 13, 220, 220, 220, 220, 220, 220, 366, 75, 565, 62, 14402, 198, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 565, 62, 14402, 30023, 2538, 10979, 6234, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 31631, 300, 83, 565, 62, 9288, 30023, 2538, 10979, 6234, 13, 628, 220, 23449, 8881, 4808, 8189, 13, 198, 220, 220, 220, 43504, 10619, 1222, 16, 5390, 45079, 62, 8189, 13, 198, 220, 23578, 12, 19238, 12, 7206, 20032, 17941, 13, 628, 220, 337, 36252, 9058, 13, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 6941, 62, 9122, 13, 198, 220, 220, 220, 25823, 367, 6981, 39878, 3275, 62, 30281, 7473, 6941, 62, 9122, 13, 198, 220, 220, 220, 1976, 565, 62, 64, 420, 62, 20850, 62, 9288, 14804, 2617, 62, 9122, 7, 6941, 62, 9122, 6739, 198, 220, 23578, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 40406, 628, 220, 337, 36252, 3275, 62, 30281, 13, 198, 220, 220, 220, 285, 85, 62, 5239, 796, 279, 62, 17143, 62, 16, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 10784, 62, 11748, 13, 198, 220, 220, 220, 1976, 565, 62, 64, 420, 62, 20850, 62, 9288, 14804, 39344, 62, 11748, 7, 6941, 62, 9122, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1332, 8298, 13, 198, 220, 220, 220, 4808, 8189, 705, 49273, 1332, 2637, 13, 628, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 628, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 628, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 198, 220, 220, 220, 4808, 8189, 705, 18564, 12709, 10148, 5703, 257, 360, 13513, 6208, 7061, 2637, 13, 628, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_phys_dir_service DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. INTERFACES: zif_dir_service. ENDCLASS. CLASS ZCL_PHYS_DIR_SERVICE IMPLEMENTATION. METHOD zif_dir_service~read_directory_content. CALL FUNCTION 'Z_EPS2_DIR_GET_LISTING' EXPORTING iv_dir_name = iv_dir_name * file_mask = space IMPORTING dir_name = dir_name file_counter = file_counter error_counter = error_counter e_dir_list = e_dir_list EXCEPTIONS invalid_eps_subdir = 1 sapgparam_failed = 2 build_directory_failed = 3 no_authorization = 4 read_directory_failed = 5 too_many_read_errors = 6 empty_directory_list = 7 OTHERS = 8. IF sy-subrc <> 0. * mv_err_read = abap_true. RAISE EXCEPTION TYPE zcx_file_err MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 34411, 62, 15908, 62, 15271, 5550, 20032, 17941, 44731, 29244, 6158, 44731, 764, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 1976, 361, 62, 15908, 62, 15271, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 11909, 16309, 62, 34720, 62, 35009, 27389, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 15908, 62, 15271, 93, 961, 62, 34945, 62, 11299, 13, 198, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 57, 62, 36, 3705, 17, 62, 34720, 62, 18851, 62, 45849, 2751, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 15908, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 15908, 62, 3672, 198, 9, 220, 220, 220, 220, 220, 220, 2393, 62, 27932, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2272, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 26672, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 26672, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 2393, 62, 24588, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2393, 62, 24588, 198, 220, 220, 220, 220, 220, 220, 220, 4049, 62, 24588, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 4049, 62, 24588, 198, 220, 220, 220, 220, 220, 220, 220, 304, 62, 15908, 62, 4868, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 304, 62, 15908, 62, 4868, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 12515, 62, 25386, 62, 7266, 15908, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 473, 6024, 17143, 62, 47904, 220, 220, 220, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 1382, 62, 34945, 62, 47904, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 645, 62, 9800, 1634, 220, 220, 220, 220, 220, 220, 796, 604, 198, 220, 220, 220, 220, 220, 220, 220, 1100, 62, 34945, 62, 47904, 220, 796, 642, 198, 220, 220, 220, 220, 220, 220, 220, 1165, 62, 21834, 62, 961, 62, 48277, 220, 220, 796, 718, 198, 220, 220, 220, 220, 220, 220, 220, 6565, 62, 34945, 62, 4868, 220, 220, 796, 767, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 807, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 9, 220, 220, 220, 220, 220, 285, 85, 62, 8056, 62, 961, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 17926, 24352, 7788, 42006, 2849, 41876, 1976, 66, 87, 62, 7753, 62, 8056, 198, 220, 220, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 4522, 827, 12, 19662, 312, 41876, 827, 12, 19662, 774, 36871, 13246, 827, 12, 19662, 3919, 198, 220, 220, 220, 220, 220, 220, 220, 13315, 827, 12, 19662, 85, 16, 827, 12, 19662, 85, 17, 827, 12, 19662, 85, 18, 827, 12, 19662, 85, 19, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Include ZFUGR_INC *&---------------------------------------------------------------------* FORM sdfsd. WRITE bar. ENDFORM.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1168, 37, 7340, 49, 62, 30158, 198, 9, 5, 10097, 30934, 9, 198, 198, 21389, 264, 7568, 21282, 13, 198, 220, 44423, 2318, 13, 198, 1677, 8068, 1581, 44, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Report YDOKTL *& *&---------------------------------------------------------------------* *& Copy DOKTL to YDOKTL *&---------------------------------------------------------------------* REPORT ydoktl. PARAMETERS i_grp_sz TYPE i DEFAULT 1000 OBLIGATORY. " Group Size for Each Job TYPES: BEGIN OF ts_key, id TYPE doku_id, object TYPE doku_obj, END OF ts_key. TYPES: tt_key TYPE SORTED TABLE OF ts_key WITH UNIQUE KEY id object. CONSTANTS: cv_para_count TYPE i VALUE 3. DATA: gv_uzeit TYPE sy-uzeit, gt_rsparam TYPE rsparams_tt, gs_rsparam LIKE LINE OF gt_rsparam. START-OF-SELECTION. PERFORM main. *&---------------------------------------------------------------------* *& Form main *&---------------------------------------------------------------------* * Entrance *----------------------------------------------------------------------* FORM main. DATA: lv_log_s TYPE string, lv_log TYPE string. DATA: ls_key TYPE ts_key, lt_key TYPE tt_key. DATA: lv_grp_min TYPE i, lv_counter TYPE i, ls_doktl TYPE doktl, lv_lines TYPE i. gv_uzeit = sy-uzeit. lv_grp_min = i_grp_sz * cv_para_count. MESSAGE 'Loading Key ...' TYPE 'I'. "#EC NOTEXT CLEAR lt_key. SELECT id object FROM doktl INTO ls_doktl. " UP TO 20000 ROWS. READ TABLE lt_key TRANSPORTING NO FIELDS WITH TABLE KEY id = ls_doktl-id object = ls_doktl-object. IF sy-subrc NE 0. CLEAR ls_key. ls_key-id = ls_doktl-id. ls_key-object = ls_doktl-object. APPEND ls_key TO lt_key. ENDIF. ENDSELECT. lv_counter = 0. LOOP AT lt_key INTO ls_key. lv_counter = lv_counter + 1. " Prepare Paramters CLEAR gs_rsparam. gs_rsparam-selname = 'I_ID'. gs_rsparam-kind = 'S'. gs_rsparam-sign = 'I'. gs_rsparam-option = 'EQ'. gs_rsparam-low = ls_key-id. APPEND gs_rsparam TO gt_rsparam. CLEAR gs_rsparam. gs_rsparam-selname = 'I_OBJ1'. gs_rsparam-kind = 'S'. gs_rsparam-sign = 'I'. gs_rsparam-option = 'EQ'. gs_rsparam-low = ls_key-object(45). APPEND gs_rsparam TO gt_rsparam. CLEAR gs_rsparam. gs_rsparam-selname = 'I_OBJ2'. gs_rsparam-kind = 'S'. gs_rsparam-sign = 'I'. gs_rsparam-option = 'EQ'. gs_rsparam-low = ls_key-object+45. APPEND gs_rsparam TO gt_rsparam. DESCRIBE TABLE gt_rsparam LINES lv_lines. IF lv_lines >= lv_grp_min. PERFORM submit_job USING lv_counter. CLEAR gt_rsparam. ENDIF. ENDLOOP. IF gt_rsparam IS NOT INITIAL. PERFORM submit_job USING lv_counter. CLEAR gt_rsparam. ENDIF. " Write Job Log MOVE lv_counter TO lv_log_s. CONCATENATE 'DOKTL(id, object) group count is ' lv_log_s INTO lv_log RESPECTING BLANKS. "#EC NOTEXT MESSAGE lv_log TYPE 'I'. MESSAGE 'Done.' TYPE 'I'. "#EC NOTEXT ENDFORM. "main *&---------------------------------------------------------------------* *& Form submit_job *&---------------------------------------------------------------------* * Submit background job. *----------------------------------------------------------------------* FORM submit_job USING i_counter TYPE i. DATA: lv_line TYPE i, lv_line_s TYPE string, lv_dbcnt TYPE i, lv_dbcnt_s TYPE char16, lv_job_name TYPE btcjob, lv_job_count TYPE btcjobcnt. DATA: lv_log TYPE string. DESCRIBE TABLE gt_rsparam LINES lv_line. lv_line = lv_line / cv_para_count. MOVE lv_line TO lv_line_s. lv_dbcnt = i_counter - lv_line + 1. MOVE lv_dbcnt TO lv_dbcnt_s. CONDENSE lv_dbcnt_s. UNPACK lv_dbcnt_s TO lv_dbcnt_s. " Add leading zero (0) CONCATENATE 'DL' gv_uzeit '_' lv_dbcnt_s '_' lv_line_s INTO lv_job_name. " 1/3 - Job Open CALL FUNCTION 'JOB_OPEN' EXPORTING jobname = lv_job_name IMPORTING jobcount = lv_job_count EXCEPTIONS cant_create_job = 1 invalid_job_data = 2 jobname_missing = 3 OTHERS = 4. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. " 2/3 - Submit program SUBMIT ydoktl_job WITH SELECTION-TABLE gt_rsparam VIA JOB lv_job_name NUMBER lv_job_count AND RETURN. " 3/3 - Job Close CALL FUNCTION 'JOB_CLOSE' EXPORTING jobcount = lv_job_count jobname = lv_job_name strtimmed = 'X' " Job Start Immediately EXCEPTIONS cant_start_immediate = 1 invalid_startdate = 2 jobname_missing = 3 job_close_failed = 4 job_nosteps = 5 job_notex = 6 lock_failed = 7 invalid_target = 8 OTHERS = 9. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. CONCATENATE 'Job submitted: ' lv_job_name INTO lv_log RESPECTING BLANKS. "#EC NOTEXT MESSAGE lv_log TYPE 'I'. ENDFORM. "submit_job
[ 9, 5, 10097, 30934, 9, 201, 198, 9, 5, 6358, 220, 575, 35, 11380, 14990, 201, 198, 9, 5, 201, 198, 9, 5, 10097, 30934, 9, 201, 198, 9, 5, 17393, 8410, 42, 14990, 284, 575, 35, 11380, 14990, 201, 198, 9, 5, 10097, 30934, 9, 201, 198, 201, 198, 2200, 15490, 220, 331, 67, 482, 28781, 13, 201, 198, 201, 198, 27082, 2390, 2767, 4877, 1312, 62, 2164, 79, 62, 82, 89, 220, 220, 220, 220, 41876, 1312, 5550, 38865, 220, 220, 8576, 440, 9148, 3528, 1404, 15513, 13, 220, 366, 4912, 12849, 329, 5501, 15768, 201, 198, 201, 198, 9936, 47, 1546, 25, 347, 43312, 3963, 40379, 62, 2539, 11, 201, 198, 220, 220, 220, 220, 4686, 220, 220, 220, 220, 220, 220, 41876, 466, 23063, 62, 312, 11, 201, 198, 220, 220, 220, 220, 2134, 220, 220, 41876, 466, 23063, 62, 26801, 11, 201, 198, 220, 220, 220, 220, 23578, 3963, 40379, 62, 2539, 13, 201, 198, 9936, 47, 1546, 25, 256, 83, 62, 2539, 41876, 311, 9863, 1961, 43679, 3963, 40379, 62, 2539, 13315, 4725, 33866, 8924, 35374, 4686, 2134, 13, 201, 198, 201, 198, 10943, 2257, 1565, 4694, 25, 201, 198, 220, 220, 220, 220, 220, 269, 85, 62, 1845, 64, 62, 9127, 220, 220, 41876, 1312, 26173, 8924, 513, 13, 201, 198, 26947, 25, 308, 85, 62, 84, 2736, 270, 220, 220, 220, 220, 220, 220, 220, 41876, 827, 12, 84, 2736, 270, 11, 201, 198, 220, 220, 220, 220, 220, 308, 83, 62, 3808, 17143, 220, 220, 220, 220, 220, 41876, 44608, 37266, 62, 926, 11, 201, 198, 220, 220, 220, 220, 220, 308, 82, 62, 3808, 17143, 220, 220, 220, 220, 220, 34178, 48920, 3963, 308, 83, 62, 3808, 17143, 13, 201, 198, 201, 198, 201, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 201, 198, 201, 198, 220, 19878, 21389, 1388, 13, 201, 198, 201, 198, 9, 5, 10097, 30934, 9, 201, 198, 9, 5, 220, 220, 220, 220, 220, 5178, 220, 1388, 201, 198, 9, 5, 10097, 30934, 9, 201, 198, 9, 220, 220, 220, 220, 220, 220, 7232, 8132, 201, 198, 9, 10097, 23031, 9, 201, 198, 21389, 1388, 13, 201, 198, 201, 198, 220, 42865, 25, 300, 85, 62, 6404, 62, 82, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 6404, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 13, 201, 198, 220, 42865, 25, 43979, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 40379, 62, 2539, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 256, 83, 62, 2539, 13, 201, 198, 220, 42865, 25, 300, 85, 62, 2164, 79, 62, 1084, 220, 220, 220, 220, 220, 41876, 1312, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 24588, 220, 220, 220, 220, 220, 41876, 1312, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 67, 482, 28781, 220, 220, 220, 220, 220, 220, 220, 41876, 466, 21841, 75, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 6615, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 13, 201, 198, 201, 198, 220, 308, 85, 62, 84, 2736, 270, 220, 220, 796, 827, 12, 84, 2736, 270, 13, 201, 198, 220, 300, 85, 62, 2164, 79, 62, 1084, 796, 1312, 62, 2164, 79, 62, 82, 89, 1635, 269, 85, 62, 1845, 64, 62, 9127, 13, 201, 198, 201, 198, 220, 337, 1546, 4090, 8264, 705, 19031, 7383, 2644, 6, 41876, 705, 40, 4458, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 201, 198, 201, 198, 220, 30301, 1503, 300, 83, 62, 2539, 13, 201, 198, 220, 33493, 4686, 2134, 16034, 466, 21841, 75, 39319, 43979, 62, 67, 482, 28781, 13, 220, 366, 15958, 5390, 939, 405, 371, 22845, 13, 201, 198, 220, 220, 220, 20832, 43679, 300, 83, 62, 2539, 48213, 4303, 9863, 2751, 8005, 18930, 3698, 5258, 201, 198, 220, 220, 220, 220, 220, 13315, 43679, 35374, 201, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 220, 220, 220, 220, 796, 43979, 62, 67, 482, 28781, 12, 312, 201, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 796, 43979, 62, 67, 482, 28781, 12, 15252, 13, 201, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 10635, 657, 13, 201, 198, 220, 220, 220, 220, 220, 30301, 1503, 43979, 62, 2539, 13, 201, 198, 220, 220, 220, 220, 220, 43979, 62, 2539, 12, 312, 220, 220, 220, 220, 796, 43979, 62, 67, 482, 28781, 12, 312, 13, 201, 198, 220, 220, 220, 220, 220, 43979, 62, 2539, 12, 15252, 796, 43979, 62, 67, 482, 28781, 12, 15252, 13, 201, 198, 220, 220, 220, 220, 220, 43504, 10619, 43979, 62, 2539, 5390, 300, 83, 62, 2539, 13, 201, 198, 220, 220, 220, 23578, 5064, 13, 201, 198, 220, 23578, 46506, 13, 201, 198, 201, 198, 201, 198, 220, 300, 85, 62, 24588, 796, 657, 13, 201, 198, 220, 17579, 3185, 5161, 300, 83, 62, 2539, 39319, 43979, 62, 2539, 13, 201, 198, 201, 198, 220, 220, 220, 300, 85, 62, 24588, 796, 300, 85, 62, 24588, 1343, 352, 13, 201, 198, 201, 198, 220, 220, 220, 366, 43426, 25139, 1010, 201, 198, 220, 220, 220, 30301, 1503, 308, 82, 62, 3808, 17143, 13, 201, 198, 220, 220, 220, 308, 82, 62, 3808, 17143, 12, 741, 3672, 796, 705, 40, 62, 2389, 4458, 201, 198, 220, 220, 220, 308, 82, 62, 3808, 17143, 12, 11031, 220, 220, 220, 796, 705, 50, 4458, 201, 198, 220, 220, 220, 308, 82, 62, 3808, 17143, 12, 12683, 220, 220, 220, 796, 705, 40, 4458, 201, 198, 220, 220, 220, 308, 82, 62, 3808, 17143, 12, 18076, 220, 796, 705, 36, 48, 4458, 201, 198, 220, 220, 220, 308, 82, 62, 3808, 17143, 12, 9319, 220, 220, 220, 220, 796, 43979, 62, 2539, 12, 312, 13, 201 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS y_check_empty_catches DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC . PUBLIC SECTION. METHODS constructor . PROTECTED SECTION. METHODS inspect_tokens REDEFINITION . PRIVATE SECTION. METHODS get_next_token_from_index IMPORTING index TYPE i RETURNING VALUE(result) TYPE stokesx. ENDCLASS. CLASS Y_CHECK_EMPTY_CATCHES IMPLEMENTATION. METHOD constructor. super->constructor( ). settings-pseudo_comment = '"#EC EMPTY_CATCH' ##NO_TEXT. settings-disable_threshold_selection = abap_true. settings-threshold = 0. settings-prio = c_warning. settings-documentation = |{ c_docs_path-checks }empty-catch.md|. set_check_message( 'Empty catch should be removed!' ). ENDMETHOD. METHOD get_next_token_from_index. LOOP AT ref_scan_manager->tokens ASSIGNING FIELD-SYMBOL(<token>) FROM index WHERE type EQ 'I'. IF result IS INITIAL. result = <token>. EXIT. ENDIF. ENDLOOP. ENDMETHOD. METHOD inspect_tokens. CHECK get_next_token_from_index( statement-from )-str EQ 'CATCH' AND ( get_next_token_from_index( statement-to + 1 )-str EQ 'ENDTRY' OR get_next_token_from_index( statement-to + 1 )-str EQ 'ENDCATCH' ). DATA(check_configuration) = detect_check_configuration( statement ). IF check_configuration IS INITIAL. RETURN. ENDIF. raise_error( statement_level = statement-level statement_index = index statement_from = statement-from error_priority = check_configuration-prio ). ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9122, 62, 28920, 62, 9246, 2052, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 331, 62, 9122, 62, 8692, 29244, 6158, 44731, 764, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 764, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 10104, 62, 83, 482, 641, 23848, 36, 20032, 17941, 764, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 19545, 62, 30001, 62, 6738, 62, 9630, 30023, 9863, 2751, 6376, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 336, 3369, 87, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 575, 62, 50084, 62, 39494, 9936, 62, 34, 11417, 1546, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 628, 220, 220, 220, 6460, 12, 7752, 12003, 62, 23893, 796, 705, 1, 2, 2943, 38144, 9936, 62, 34, 11417, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 6460, 12, 40223, 62, 400, 10126, 62, 49283, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 6460, 12, 400, 10126, 796, 657, 13, 198, 220, 220, 220, 6460, 12, 3448, 78, 796, 269, 62, 43917, 13, 198, 220, 220, 220, 6460, 12, 22897, 341, 796, 930, 90, 269, 62, 31628, 62, 6978, 12, 42116, 1782, 28920, 12, 40198, 13, 9132, 91, 13, 628, 220, 220, 220, 900, 62, 9122, 62, 20500, 7, 705, 40613, 4929, 815, 307, 4615, 13679, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 19545, 62, 30001, 62, 6738, 62, 9630, 13, 198, 220, 220, 220, 17579, 3185, 5161, 1006, 62, 35836, 62, 37153, 3784, 83, 482, 641, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 30001, 43734, 198, 220, 220, 220, 220, 220, 16034, 6376, 33411, 2099, 36529, 705, 40, 4458, 198, 220, 220, 220, 220, 220, 16876, 1255, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 1279, 30001, 28401, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 2043, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 10104, 62, 83, 482, 641, 13, 198, 220, 220, 220, 5870, 25171, 651, 62, 19545, 62, 30001, 62, 6738, 62, 9630, 7, 2643, 12, 6738, 1267, 12, 2536, 36529, 705, 34, 11417, 6, 5357, 198, 220, 220, 220, 220, 220, 220, 220, 357, 651, 62, 19545, 62, 30001, 62, 6738, 62, 9630, 7, 2643, 12, 1462, 1343, 352, 1267, 12, 2536, 36529, 705, 10619, 40405, 6, 6375, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 651, 62, 19545, 62, 30001, 62, 6738, 62, 9630, 7, 2643, 12, 1462, 1343, 352, 1267, 12, 2536, 36529, 705, 1677, 9697, 11417, 6, 6739, 628, 220, 220, 220, 42865, 7, 9122, 62, 11250, 3924, 8, 796, 4886, 62, 9122, 62, 11250, 3924, 7, 2643, 6739, 628, 220, 220, 220, 16876, 2198, 62, 11250, 3924, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 5298, 62, 18224, 7, 2643, 62, 5715, 220, 220, 220, 220, 220, 796, 2643, 12, 5715, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 9630, 220, 220, 220, 220, 220, 796, 6376, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 6738, 220, 220, 220, 220, 220, 220, 796, 2643, 12, 6738, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4049, 62, 49336, 220, 220, 220, 220, 220, 220, 796, 2198, 62, 11250, 3924, 12, 3448, 78, 6739, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZCL_MQBA_GUI_BL_SDB definition public inheriting from ZCL_MQBA_GUI_BL create public global friends ZCL_MQBA_GUI_BL . public section. methods ZIF_MQBA_GUI_BL~COLLECT_PARAMS redefinition . methods ZIF_MQBA_GUI_BL~DESTROY redefinition . methods ZIF_MQBA_GUI_BL~GET_SUBSCREENS redefinition . methods ZIF_MQBA_GUI_BL~PBO redefinition . methods HANDLE_OKCODE redefinition . protected section. data M_LISTENER type ref to ZIF_MQBA_GUI_MSG_LISTENER . data M_UIDATA type ZMQBA_GUI_S_SDB_UI . data M_WIDGETS type ref to ZIF_MQBA_GUI_WIDGET_HOLDER . data M_CONFIG type ZMQBA_GUI_S_SDB_CFG . methods INIT_WIDGETS . methods REPAINT . methods ON_FIRST_PBO redefinition . private section. methods ON_MSG_ARRIVED for event ON_MSG_ARRIVED of ZIF_MQBA_GUI_MSG_LISTENER importing !IT_MSG . ENDCLASS. CLASS ZCL_MQBA_GUI_BL_SDB IMPLEMENTATION. METHOD handle_okcode. * ------ init and check DATA(lv_okcode) = iv_okcode. * ------ check for widget suffix IF lv_okcode IS NOT INITIAL. IF m_widgets IS NOT INITIAL. DO m_widgets->get_count( ) TIMES. DATA(lr_widget) = m_widgets->get_widget( sy-index ). DATA(lv_cfg_idx) = lr_widget->get_cfg_idx( ). DATA(lv_check) = '*_' && lv_cfg_idx. IF iv_okcode CP lv_check. ENDIF. ENDDO. ENDIF. ENDIF. * ------ call super rv_next_dynnr = super->handle_okcode( iv_okcode ). ENDMETHOD. METHOD init_widgets. * ------ create a widget holder m_widgets = zcl_mqba_gui_factory=>create_widget_holder( ). * ------ create 3 simple sensor widgets m_widgets->add( zcl_mqba_gui_factory=>create_widget( zif_mqba_gui_widget=>c_type_sensor )->set_cfg_idx( 'S1' )->set_from_cfg( m_config )->set_subscreen_mode( 'SUBSCR1' ) ). m_widgets->add( zcl_mqba_gui_factory=>create_widget( zif_mqba_gui_widget=>c_type_sensor )->set_cfg_idx( 'S2' )->set_from_cfg( m_config )->set_subscreen_mode( 'SUBSCR2' ) ). m_widgets->add( zcl_mqba_gui_factory=>create_widget( zif_mqba_gui_widget=>c_type_sensor )->set_cfg_idx( 'S3' )->set_from_cfg( m_config )->set_subscreen_mode( 'SUBSCR3' ) ). * ------ create 1 switch m_widgets->add( zcl_mqba_gui_factory=>create_widget( zif_mqba_gui_widget=>c_type_switch )->set_cfg_idx( 'B1' )->set_from_cfg( m_config )->set_subscreen_mode( 'SUBSCR4' ) ). * ------ create 1 publish panel m_widgets->add( zcl_mqba_gui_factory=>create_widget( zif_mqba_gui_widget=>c_type_pubpanel )->set_cfg_idx( 'P1' )->set_from_cfg( m_config )->set_subscreen_mode( 'SUBSCR5' ) ). ENDMETHOD. METHOD on_first_pbo. * ------ local data DATA: ls_memory TYPE zmqba_api_s_brk_msg. * ------ init widgets init_widgets( ). * ------ simulate a inital load CALL FUNCTION 'Z_MQBA_API_BROKER_GET_MEMORY' IMPORTING es_data = ls_memory. IF ls_memory IS NOT INITIAL. on_msg_arrived( ls_memory-msg ). ENDIF. * ================ LISTENER * ------ create new listener m_listener = zcl_mqba_gui_factory=>create_listener( ). * ------ bind event handler SET HANDLER on_msg_arrived FOR m_listener. * ------ subscribe to topics IF m_widgets IS NOT INITIAL AND m_widgets->get_count( ) GT 0. DO m_widgets->get_count( ) TIMES. DATA(lr_widget) = m_widgets->get_widget( sy-index ). DATA(lv_widsub) = lr_widget->get_subscribe_topic( ). IF lv_widsub IS NOT INITIAL. m_listener->subscribe_to( lv_widsub ). ENDIF. ENDDO. ENDIF. * ------ subscribe to other topics m_listener->subscribe_to( '*' ). * ------ start background listening m_listener->start( ). ENDMETHOD. METHOD on_msg_arrived. * ----- local data DATA: lv_handled TYPE i. * ----- check widgets IF m_widgets IS NOT INITIAL AND m_widgets->get_count( ) GT 0. LOOP AT it_msg INTO DATA(ls_msg). lv_handled = lv_handled + m_widgets->handle_payload( iv_topic = ls_msg-topic iv_payload = ls_msg-payload iv_updated = ls_msg-updated ). ENDLOOP. ENDIF. * ----- set update avaiable IF lv_handled GT 0. repaint( ). set_new_uidata( ). ENDIF. ENDMETHOD. METHOD repaint. * loop widgets and call ui update IF m_widgets IS NOT INITIAL AND m_widgets->get_count( ) GT 0. DO m_widgets->get_count( ) TIMES. DATA(lr_widget) = m_widgets->get_widget( sy-index ). lr_widget->update_ui( CHANGING cs_uidata = m_uidata ). ENDDO. ENDIF. ENDMETHOD. METHOD zif_mqba_gui_bl~collect_params. * --- call super rv_success = super->zif_mqba_gui_bl~collect_params( ). CHECK rv_success = abap_true. * --- get cfg structure from collected params IF m_params IS NOT INITIAL. m_params->fill_structure( CHANGING cs_struc = m_config ). ENDIF. ENDMETHOD. METHOD zif_mqba_gui_bl~destroy. * ------- destroy listener IF m_listener IS NOT INITIAL. m_listener->destroy( ). CLEAR m_listener. ENDIF. * ------- call super super->zif_mqba_gui_bl~destroy( ). ENDMETHOD. METHOD zif_mqba_gui_bl~get_subscreens. * ----- loop subscreens IF m_widgets IS NOT INITIAL AND m_widgets->get_count( ) GT 0. DO m_widgets->get_count( ) TIMES. DATA(lr_widget) = m_widgets->get_widget( sy-index ). IF lr_widget IS NOT INITIAL AND lr_widget->is_subscreen( ). DATA(lr_subscreen) = CAST zif_mqba_gui_subscreen( lr_widget ). APPEND lr_subscreen TO rt_subscreen. ENDIF. ENDDO. ENDIF. ENDMETHOD. METHOD zif_mqba_gui_bl~pbo. * ----- call super CALL METHOD super->zif_mqba_gui_bl~pbo IMPORTING et_excl_fcodes = et_excl_fcodes ev_text = ev_text ev_titlebar = ev_titlebar ev_status = ev_status CHANGING cv_okcode = cv_okcode cs_uidata = cs_uidata. ENDMETHOD. ENDCLASS.
[ 4871, 1168, 5097, 62, 49215, 4339, 62, 40156, 62, 9148, 62, 10305, 33, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1168, 5097, 62, 49215, 4339, 62, 40156, 62, 9148, 198, 220, 2251, 1171, 628, 220, 3298, 2460, 1168, 5097, 62, 49215, 4339, 62, 40156, 62, 9148, 764, 198, 198, 11377, 2665, 13, 628, 220, 5050, 1168, 5064, 62, 49215, 4339, 62, 40156, 62, 9148, 93, 25154, 16779, 62, 27082, 40834, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 1168, 5064, 62, 49215, 4339, 62, 40156, 62, 9148, 93, 30910, 5446, 21414, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 1168, 5064, 62, 49215, 4339, 62, 40156, 62, 9148, 93, 18851, 62, 12564, 4462, 43387, 16938, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 1168, 5064, 62, 49215, 4339, 62, 40156, 62, 9148, 93, 47, 8202, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 367, 6981, 2538, 62, 11380, 34, 16820, 198, 220, 220, 220, 34087, 17750, 764, 198, 24326, 2665, 13, 628, 220, 1366, 337, 62, 45849, 1677, 1137, 2099, 1006, 284, 1168, 5064, 62, 49215, 4339, 62, 40156, 62, 5653, 38, 62, 45849, 1677, 1137, 764, 198, 220, 1366, 337, 62, 27586, 13563, 2099, 1168, 49215, 4339, 62, 40156, 62, 50, 62, 10305, 33, 62, 10080, 764, 198, 220, 1366, 337, 62, 54, 2389, 18851, 50, 2099, 1006, 284, 1168, 5064, 62, 49215, 4339, 62, 40156, 62, 54, 2389, 18851, 62, 39, 3535, 14418, 764, 198, 220, 1366, 337, 62, 10943, 16254, 2099, 1168, 49215, 4339, 62, 40156, 62, 50, 62, 10305, 33, 62, 22495, 38, 764, 628, 220, 5050, 3268, 2043, 62, 54, 2389, 18851, 50, 764, 198, 220, 5050, 4526, 4537, 12394, 764, 628, 220, 5050, 6177, 62, 39776, 2257, 62, 47, 8202, 198, 220, 220, 220, 34087, 17750, 764, 198, 19734, 2665, 13, 628, 220, 5050, 6177, 62, 5653, 38, 62, 26465, 3824, 1961, 198, 220, 220, 220, 329, 1785, 6177, 62, 5653, 38, 62, 26465, 3824, 1961, 286, 1168, 5064, 62, 49215, 4339, 62, 40156, 62, 5653, 38, 62, 45849, 1677, 1137, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 2043, 62, 5653, 38, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 49215, 4339, 62, 40156, 62, 9148, 62, 10305, 33, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 5412, 62, 482, 8189, 13, 198, 198, 9, 40103, 2315, 290, 2198, 198, 220, 220, 220, 42865, 7, 6780, 62, 482, 8189, 8, 796, 21628, 62, 482, 8189, 13, 198, 198, 9, 40103, 2198, 329, 26295, 35488, 198, 220, 220, 220, 16876, 300, 85, 62, 482, 8189, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 16876, 285, 62, 28029, 11407, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 220, 220, 8410, 285, 62, 28029, 11407, 3784, 1136, 62, 9127, 7, 1267, 31742, 1546, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 14050, 62, 42655, 8, 220, 220, 796, 285, 62, 28029, 11407, 3784, 1136, 62, 42655, 7, 827, 12, 9630, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 6780, 62, 37581, 62, 312, 87, 8, 220, 796, 300, 81, 62, 42655, 3784, 1136, 62, 37581, 62, 312, 87, 7, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 6780, 62, 9122, 8, 220, 220, 220, 796, 705, 9, 62, 6, 11405, 300, 85, 62, 37581, 62, 312, 87, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16876, 21628, 62, 482, 8189, 16932, 300, 85, 62, 9122, 13, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 18227, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 198, 9, 40103, 869, 2208, 198, 220, 220, 220, 374, 85, 62, 19545, 62, 67, 2047, 48624, 796, 2208, 3784, 28144, 62, 482, 8189, 7, 21628, 62, 482, 8189, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 2315, 62, 28029, 11407, 13, 198, 198, 9, 40103, 2251, 257, 26295, 15762, 198, 220, 220, 220, 285, 62, 28029, 11407, 796, 1976, 565, 62, 76, 80, 7012, 62, 48317, 62, 69, 9548, 14804, 17953, 62, 42655, 62, 13829, 7, 6739, 198, 198, 9, 40103, 2251, 513, 2829, 12694, 40803, 198, 220, 220, 220, 285, 62, 28029, 11407, 3784, 2860, 7, 1976, 565, 62, 76, 80, 7012, 62, 48317, 62, 69, 9548, 14804, 17953, 62, 42655, 7, 1976, 361, 62, 76, 80, 7012, 62, 48317, 62, 42655, 14804, 66, 62, 4906, 62, 82, 22854, 198, 220, 220, 220, 1267, 3784, 2617, 62, 37581, 62, 312, 87, 7, 705, 50, 16, 6, 1267, 3784, 2617, 62, 6738, 62, 37581, 7, 285, 62, 11250, 1267, 3784, 2617, 62, 7266, 9612, 62, 14171, 7, 705, 12564, 4462, 9419, 16, 6, 1267, 6739, 628, 220, 220, 220, 285, 62, 28029, 11407, 3784, 2860, 7, 1976, 565, 62, 76, 80, 7012, 62, 48317, 62, 69, 9548, 14804, 17953, 62, 42655, 7, 1976, 361, 62, 76, 80, 7012, 62, 48317, 62, 42655, 14804, 66, 62, 4906, 62, 82, 22854, 198, 220, 220, 220, 1267, 3784, 2617, 62, 37581, 62, 312, 87, 7, 705, 50, 17, 6, 1267, 3784, 2617, 62, 6738, 62, 37581, 7, 285, 62, 11250, 1267, 3784, 2617, 62, 7266, 9612, 62, 14171, 7, 705, 12564, 4462, 9419, 17, 6, 1267, 6739, 628, 220, 220, 220, 285, 62, 28029, 11407, 3784, 2860, 7, 1976, 565, 62, 76, 80, 7012, 62, 48317, 62, 69, 9548, 14804, 17953, 62, 42655, 7, 1976, 361, 62, 76, 80, 7012, 62, 48317, 62, 42655, 14804, 66, 62, 4906, 62, 82, 22854, 198, 220, 220, 220, 1267, 3784, 2617, 62, 37581, 62, 312, 87, 7, 705, 50, 18, 6, 1267, 3784, 2617, 62, 6738, 62, 37581, 7, 285, 62, 11250, 1267, 3784, 2617, 62, 7266, 9612, 62, 14171, 7, 705, 12564, 4462, 9419, 18, 6, 1267, 6739, 198, 198, 9, 40103, 2251, 352, 5078, 198, 220, 220, 220, 285, 62, 28029, 11407, 3784, 2860, 7, 1976, 565 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
FUNCTION Z_MR1M_READSOFT_PATH_ORDER . *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" VALUE(DATATYPE) LIKE EDIPO-ACTRIG *" VALUE(DIRECTORY) LIKE EDIPO-OUTPUTDIR *" VALUE(FILENAME) LIKE EDIPO-OUTPUTFILE *" VALUE(CONTROL) LIKE EDIDC STRUCTURE EDIDC *" EXPORTING *" VALUE(PATHNAME) LIKE EDI_PATH-PTHNAM *"---------------------------------------------------------------------- pathname = NEW lcl_idoc_path_supplier( )->name( control ). ENDFUNCTION.
[ 42296, 4177, 2849, 1168, 62, 13599, 16, 44, 62, 15675, 15821, 9792, 62, 34219, 62, 12532, 1137, 764, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 14565, 26491, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 35, 1404, 1404, 56, 11401, 8, 34178, 220, 8392, 4061, 46, 12, 2246, 5446, 3528, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 17931, 23988, 15513, 8, 34178, 220, 8392, 4061, 46, 12, 2606, 7250, 3843, 34720, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 46700, 1677, 10067, 8, 34178, 220, 8392, 4061, 46, 12, 2606, 7250, 3843, 25664, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 10943, 5446, 3535, 8, 34178, 220, 8392, 2389, 34, 19269, 18415, 11335, 220, 8392, 2389, 34, 198, 9, 1, 220, 7788, 15490, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 34219, 20608, 8, 34178, 220, 8392, 40, 62, 34219, 12, 47, 4221, 45, 2390, 198, 9, 1, 10097, 23031, 628, 220, 3108, 3672, 796, 12682, 300, 565, 62, 312, 420, 62, 6978, 62, 18608, 2505, 7, 1267, 3784, 3672, 7, 1630, 6739, 198, 198, 1677, 8068, 4944, 4177, 2849, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Report ZAGR_TEST_MARKDOWN *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT ZAGR_TEST_MARKDOWN. DATA(markdown) = NEW zmarkdown( ). DATA(html) = markdown->text( 'Hello **abapGit Bunkai**!' ). DATA(html2) = markdown->text( 'Ein großes Hallo!' ). cl_demo_output=>display_html( html ). cl_demo_output=>display_html( html2 ).
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 1168, 4760, 49, 62, 51, 6465, 62, 44, 14175, 41925, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 2200, 15490, 1168, 4760, 49, 62, 51, 6465, 62, 44, 14175, 41925, 13, 198, 198, 26947, 7, 4102, 2902, 8, 796, 12682, 1976, 4102, 2902, 7, 6739, 198, 198, 26947, 7, 6494, 8, 796, 1317, 2902, 3784, 5239, 7, 705, 15496, 12429, 397, 499, 38, 270, 347, 2954, 1872, 1174, 13679, 6739, 198, 26947, 7, 6494, 17, 8, 796, 1317, 2902, 3784, 5239, 7, 705, 36, 259, 7128, 39683, 274, 4789, 78, 13679, 6739, 198, 565, 62, 9536, 78, 62, 22915, 14804, 13812, 62, 6494, 7, 27711, 6739, 198, 565, 62, 9536, 78, 62, 22915, 14804, 13812, 62, 6494, 7, 27711, 17, 6739, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS ycl_addict_transport_req_fwd DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. TYPES: BEGIN OF input_dict, trkorr TYPE ytt_addict_trkorr_det, sysnam TYPE tmscsys-sysnam, mandt TYPE symandt, show_popup TYPE abap_bool, pass_if_already_forwarded TYPE abap_bool, END OF input_dict. METHODS execute IMPORTING !input TYPE input_dict RAISING ycx_addict_class_method. PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF state_dict, input TYPE input_dict, END OF state_dict. CONSTANTS: BEGIN OF field, sysnam TYPE seocpdname VALUE 'SYSNAM', trkorr TYPE seocpdname VALUE 'TRKORR', END OF field. CONSTANTS: BEGIN OF method, execute TYPE seocpdname VALUE 'EXECUTE', END OF method. CONSTANTS: BEGIN OF trkorr, some TYPE trkorr VALUE 'SOME', END OF trkorr. CONSTANTS critical_message_types TYPE char3 VALUE 'EAX'. DATA state TYPE state_dict. METHODS validate_input RAISING ycx_addict_method_parameter. METHODS forward_requests RAISING ycx_addict_function_subrc. METHODS transmit_queue RAISING ycx_addict_class_method. METHODS pass_already_forwarded RAISING ycx_addict_class_method. ENDCLASS. CLASS ycl_addict_transport_req_fwd IMPLEMENTATION. METHOD execute. " Execute request forward """"""""""""""""""""""""""""""""""""""" TRY. me->state = VALUE #( input = input ). validate_input( ). IF me->state-input-pass_if_already_forwarded = abap_true. transmit_queue( ). pass_already_forwarded( ). IF me->state-input-trkorr IS INITIAL. RETURN. ENDIF. ENDIF. forward_requests( ). transmit_queue( ). CATCH ycx_addict_class_method INTO DATA(method_error). RAISE EXCEPTION method_error. CATCH cx_root INTO DATA(diaper). RAISE EXCEPTION TYPE ycx_addict_class_method EXPORTING textid = ycx_addict_class_method=>unexpected_error previous = diaper class = CONV #( ycl_addict_class=>get_class_name( me ) ) method = me->method-execute. ENDTRY. ENDMETHOD. METHOD validate_input. " Validate input parameters """"""""""""""""""""""""""""""""""""" IF me->state-input-sysnam IS INITIAL. RAISE EXCEPTION TYPE ycx_addict_method_parameter EXPORTING textid = ycx_addict_method_parameter=>param_missing class_name = CONV #( ycl_addict_class=>get_class_name( me ) ) method_name = me->method-execute param_name = me->field-sysnam. ENDIF. IF me->state-input-trkorr IS INITIAL. RAISE EXCEPTION TYPE ycx_addict_method_parameter EXPORTING textid = ycx_addict_method_parameter=>param_missing class_name = CONV #( ycl_addict_class=>get_class_name( me ) ) method_name = me->method-execute param_name = me->field-trkorr. ENDIF. ENDMETHOD. METHOD forward_requests. " Forward """"""""""""""""""""""""""""""""""""""""""""""""""""""" DATA(requests) = VALUE stms_tr_requests( FOR _trkorr IN me->state-input-trkorr ( trkorr = _trkorr ) ). CASE me->state-input-show_popup. WHEN abap_true. " Foreground mode ##FM_SUBRC_OK CALL FUNCTION 'TMS_UI_FORWARD_TR_REQUEST' EXPORTING iv_request = me->trkorr-some iv_target = me->state-input-sysnam it_requests = requests iv_expert_mode = abap_true EXCEPTIONS cancelled_by_user = 1 forward_request_failed = 2 OTHERS = 3. ycx_addict_function_subrc=>raise_if_sysubrc_not_initial( 'TMS_UI_FORWARD_TR_REQUEST' ). WHEN abap_false. " Background mode DATA(retcode) = CONV stpa-retcode( space ). DATA(exception) = VALUE stmscalert( ). ##FM_SUBRC_OK CALL FUNCTION 'TMS_MGR_FORWARD_TR_REQUEST' EXPORTING iv_request = me->trkorr-some iv_target = me->state-input-sysnam iv_import_again = abap_true it_requests = requests IMPORTING ev_tp_ret_code = retcode es_exception = exception EXCEPTIONS read_config_failed = 1 table_of_requests_is_empty = 2 OTHERS = 3. ycx_addict_function_subrc=>raise_if_sysubrc_not_initial( 'TMS_MGR_FORWARD_TR_REQUEST' ). IF exception IS NOT INITIAL AND exception-msgty CA me->critical_message_types. RAISE EXCEPTION TYPE ycx_addict_function_subrc EXPORTING textid = ycx_addict_function_subrc=>function_returned_error_txt funcname = 'TMS_MGR_FORWARD_TR_REQUEST' error_text = CONV #( exception-text ). ENDIF. IF NOT ( retcode = '0000' OR retcode = '0' OR retcode = '0004' OR retcode = '4' ). RAISE EXCEPTION TYPE ycx_addict_function_subrc EXPORTING textid = ycx_addict_function_subrc=>function_returned_error funcname = 'TMS_MGR_FORWARD_TR_REQUEST'. ENDIF. ENDCASE. ENDMETHOD. METHOD transmit_queue. " Transmit queue """""""""""""""""""""""""""""""""""""""""""""""" NEW ycl_addict_transmit_tr_queue( )->execute( VALUE #( sysnam = me->state-input-sysnam show_popup = me->state-input-show_popup ) ). ENDMETHOD. METHOD pass_already_forwarded. LOOP AT me->state-input-trkorr ASSIGNING FIELD-SYMBOL(<trkorr>). DATA(tmsbuffer) = ycl_addict_transport_request=>read_tmsbuffer( trkorr = <trkorr>-trkorr sysid = CONV #( me->state-input-sysnam ) ). CHECK tmsbuffer IS NOT INITIAL. DELETE me->state-input-trkorr. CONTINUE. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 31631, 331, 565, 62, 2860, 713, 62, 7645, 634, 62, 42180, 62, 69, 16993, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 5128, 62, 11600, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 491, 74, 38890, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 331, 926, 62, 2860, 713, 62, 2213, 74, 38890, 62, 15255, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25064, 7402, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 256, 907, 6359, 893, 12, 17597, 7402, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6855, 83, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 5659, 392, 83, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 905, 62, 12924, 929, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1208, 62, 361, 62, 282, 1493, 62, 11813, 276, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 5128, 62, 11600, 13, 628, 220, 220, 220, 337, 36252, 50, 12260, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 5145, 15414, 41876, 5128, 62, 11600, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 331, 66, 87, 62, 2860, 713, 62, 4871, 62, 24396, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1181, 62, 11600, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5128, 41876, 5128, 62, 11600, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1181, 62, 11600, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 347, 43312, 3963, 2214, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25064, 7402, 41876, 384, 420, 30094, 3672, 26173, 8924, 705, 23060, 15571, 2390, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 491, 74, 38890, 41876, 384, 420, 30094, 3672, 26173, 8924, 705, 5446, 42, 1581, 49, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 2214, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 347, 43312, 3963, 2446, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12260, 41876, 384, 420, 30094, 3672, 26173, 8924, 705, 6369, 2943, 37780, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 2446, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 347, 43312, 3963, 491, 74, 38890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 617, 41876, 491, 74, 38890, 26173, 8924, 705, 50, 13649, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 491, 74, 38890, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 4688, 62, 20500, 62, 19199, 41876, 1149, 18, 26173, 8924, 705, 16412, 55, 4458, 628, 220, 220, 220, 42865, 1181, 41876, 1181, 62, 11600, 13, 628, 220, 220, 220, 337, 36252, 50, 26571, 62, 15414, 17926, 1797, 2751, 331, 66, 87, 62, 2860, 713, 62, 24396, 62, 17143, 2357, 13, 198, 220, 220, 220, 337, 36252, 50, 2651, 62, 8897, 3558, 17926, 1797, 2751, 331, 66, 87, 62, 2860, 713, 62, 8818, 62, 7266, 6015, 13, 198, 220, 220, 220, 337, 36252, 50, 21937, 62, 36560, 17926, 1797, 2751, 331, 66, 87, 62, 2860, 713, 62, 4871, 62, 24396, 13, 198, 220, 220, 220, 337, 36252, 50, 1208, 62, 282, 1493, 62, 11813, 276, 17926, 1797, 2751, 331, 66, 87, 62, 2860, 713, 62, 4871, 62, 24396, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 331, 565, 62, 2860, 713, 62, 7645, 634, 62, 42180, 62, 69, 16993, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 12260, 13, 198, 220, 220, 220, 366, 8393, 1133, 2581, 2651, 13538, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 37811, 198, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 502, 3784, 5219, 796, 26173, 8924, 1303, 7, 5128, 796, 5128, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 26571, 62, 15414, 7, 6739, 628, 220, 220, 220, 220, 220, 220, 220, 16876, 502, 3784, 5219, 12, 15414, 12, 6603, 62, 361, 62, 282, 1493, 62, 11813, 276, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21937, 62, 36560, 7, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1208, 62, 282, 1493, 62, 11813, 276, 7, 6739, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16876, 502, 3784, 5219, 12, 15414, 12, 2213, 74, 38890, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 220, 220, 2651, 62, 8897, 3558, 7, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 21937, 62, 36560,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_gui DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_abapgit_gui_services . CONSTANTS: BEGIN OF c_event_state, not_handled TYPE i VALUE 0, re_render TYPE i VALUE 1, new_page TYPE i VALUE 2, go_back TYPE i VALUE 3, no_more_act TYPE i VALUE 4, new_page_w_bookmark TYPE i VALUE 5, go_back_to_bookmark TYPE i VALUE 6, new_page_replacing TYPE i VALUE 7, END OF c_event_state . CONSTANTS: BEGIN OF c_action, go_home TYPE string VALUE 'go_home', go_db TYPE string VALUE 'go_db', END OF c_action . METHODS go_home RAISING zcx_abapgit_exception . METHODS back IMPORTING !iv_to_bookmark TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rv_exit) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS on_event FOR EVENT sapevent OF zif_abapgit_html_viewer IMPORTING !action !frame !getdata !postdata !query_table . METHODS constructor IMPORTING !io_component TYPE REF TO object OPTIONAL !ii_asset_man TYPE REF TO zif_abapgit_gui_asset_manager OPTIONAL !ii_hotkey_ctl TYPE REF TO zif_abapgit_gui_hotkey_ctl OPTIONAL !ii_html_processor TYPE REF TO zif_abapgit_gui_html_processor OPTIONAL !iv_rollback_on_error TYPE abap_bool DEFAULT abap_true RAISING zcx_abapgit_exception . METHODS free . PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_page_stack, page TYPE REF TO zif_abapgit_gui_renderable, bookmark TYPE abap_bool, END OF ty_page_stack . DATA mv_rollback_on_error TYPE abap_bool . DATA mi_cur_page TYPE REF TO zif_abapgit_gui_renderable . DATA: mt_stack TYPE STANDARD TABLE OF ty_page_stack . DATA: mt_event_handlers TYPE STANDARD TABLE OF REF TO zif_abapgit_gui_event_handler . DATA mi_router TYPE REF TO zif_abapgit_gui_event_handler . DATA mi_asset_man TYPE REF TO zif_abapgit_gui_asset_manager . DATA mi_hotkey_ctl TYPE REF TO zif_abapgit_gui_hotkey_ctl . DATA mi_html_processor TYPE REF TO zif_abapgit_gui_html_processor . DATA mi_html_viewer TYPE REF TO zif_abapgit_html_viewer . DATA mo_html_parts TYPE REF TO zcl_abapgit_html_parts . METHODS cache_html IMPORTING !iv_text TYPE string RETURNING VALUE(rv_url) TYPE w3url RAISING zcx_abapgit_exception . METHODS startup RAISING zcx_abapgit_exception . METHODS render RAISING zcx_abapgit_exception . METHODS call_page IMPORTING !ii_page TYPE REF TO zif_abapgit_gui_renderable !iv_with_bookmark TYPE abap_bool DEFAULT abap_false !iv_replacing TYPE abap_bool DEFAULT abap_false RAISING zcx_abapgit_exception . METHODS handle_action IMPORTING !iv_action TYPE c !iv_getdata TYPE c OPTIONAL !it_postdata TYPE zif_abapgit_html_viewer=>ty_post_data OPTIONAL . METHODS handle_error IMPORTING !ix_exception TYPE REF TO zcx_abapgit_exception . ENDCLASS. CLASS ZCL_ABAPGIT_GUI IMPLEMENTATION. METHOD back. DATA: lv_index TYPE i, ls_stack LIKE LINE OF mt_stack. " If viewer is showing Internet page, then use browser navigation IF mi_html_viewer->get_url( ) CP 'http*'. mi_html_viewer->back( ). RETURN. ENDIF. lv_index = lines( mt_stack ). IF lv_index = 0. rv_exit = abap_true. RETURN. ENDIF. DO lv_index TIMES. READ TABLE mt_stack INDEX lv_index INTO ls_stack. ASSERT sy-subrc = 0. DELETE mt_stack INDEX lv_index. ASSERT sy-subrc = 0. lv_index = lv_index - 1. IF iv_to_bookmark = abap_false OR ls_stack-bookmark = abap_true. EXIT. ENDIF. ENDDO. mi_cur_page = ls_stack-page. " last page always stays render( ). ENDMETHOD. METHOD cache_html. rv_url = zif_abapgit_gui_services~cache_asset( iv_text = iv_text iv_type = 'text' iv_subtype = 'html' ). ENDMETHOD. METHOD call_page. DATA: ls_stack TYPE ty_page_stack. IF iv_replacing = abap_false AND NOT mi_cur_page IS INITIAL. ls_stack-page = mi_cur_page. ls_stack-bookmark = iv_with_bookmark. APPEND ls_stack TO mt_stack. ENDIF. mi_cur_page = ii_page. render( ). ENDMETHOD. METHOD constructor. IF io_component IS BOUND. IF zcl_abapgit_gui_utils=>is_renderable( io_component ) = abap_true. mi_cur_page ?= io_component. " direct page ELSE. IF zcl_abapgit_gui_utils=>is_event_handler( io_component ) = abap_false. zcx_abapgit_exception=>raise( 'Component must be renderable or be an event handler' ). ENDIF. mi_router ?= io_component. ENDIF. ENDIF. CREATE OBJECT mo_html_parts. mv_rollback_on_error = iv_rollback_on_error. mi_asset_man = ii_asset_man. mi_hotkey_ctl = ii_hotkey_ctl. mi_html_processor = ii_html_processor. " Maybe improve to middlewares stack ?? startup( ). ENDMETHOD. METHOD free. SET HANDLER on_event FOR mi_html_viewer ACTIVATION space. mi_html_viewer->close_document( ). mi_html_viewer->free( ). FREE mi_html_viewer. ENDMETHOD. METHOD go_home. DATA: ls_stack LIKE LINE OF mt_stack, lv_mode TYPE tabname. IF mi_router IS BOUND. CLEAR: mt_stack, mt_event_handlers. APPEND mi_router TO mt_event_handlers. " on_event doesn't accept strings directly GET PARAMETER ID 'DBT' FIELD lv_mode. CASE lv_mode. WHEN 'ZABAPGIT'. on_event( action = |{ c_action-go_db }| ). WHEN OTHERS. on_event( action = |{ c_action-go_home }| ). ENDCASE. ELSE. IF lines( mt_stack ) > 0. READ TABLE mt_stack INTO ls_stack INDEX 1. mi_cur_page = ls_stack-page. ENDIF. render( ). ENDIF. ENDMETHOD. METHOD handle_action. DATA: lx_exception TYPE REF TO zcx_abapgit_exception, li_handler TYPE REF TO zif_abapgit_gui_event_handler, li_event TYPE REF TO zif_abapgit_gui_event, ls_handled TYPE zif_abapgit_gui_event_handler=>ty_handling_result. CREATE OBJECT li_event TYPE zcl_abapgit_gui_event EXPORTING ii_gui_services = me iv_action = iv_action iv_getdata = iv_getdata it_postdata = it_postdata. TRY. LOOP AT mt_event_handlers INTO li_handler. ls_handled = li_handler->on_event( li_event ). IF ls_handled-state IS NOT INITIAL AND ls_handled-state <> c_event_state-not_handled. " is handled EXIT. ENDIF. ENDLOOP. CASE ls_handled-state. WHEN c_event_state-re_render. render( ). WHEN c_event_state-new_page. call_page( ls_handled-page ). WHEN c_event_state-new_page_w_bookmark. call_page( ii_page = ls_handled-page iv_with_bookmark = abap_true ). WHEN c_event_state-new_page_replacing. call_page( ii_page = ls_handled-page iv_replacing = abap_true ). WHEN c_event_state-go_back. back( ). WHEN c_event_state-go_back_to_bookmark. back( abap_true ). WHEN c_event_state-no_more_act. " Do nothing, handling completed WHEN OTHERS. zcx_abapgit_exception=>raise( |Unknown action: { iv_action }| ). ENDCASE. CATCH zcx_abapgit_cancel ##NO_HANDLER. " Do nothing = gc_event_state-no_more_act CATCH zcx_abapgit_exception INTO lx_exception. handle_error( lx_exception ). ENDTRY. ENDMETHOD. METHOD handle_error. DATA: li_gui_error_handler TYPE REF TO zif_abapgit_gui_error_handler, lx_exception TYPE REF TO cx_root. IF mv_rollback_on_error = abap_true. ROLLBACK WORK. ENDIF. TRY. li_gui_error_handler ?= mi_cur_page. IF li_gui_error_handler IS BOUND AND li_gui_error_handler->handle_error( ix_exception ) = abap_true. " We rerender the current page to display the error box render( ). ELSE. MESSAGE ix_exception TYPE 'S' DISPLAY LIKE 'E'. ENDIF. CATCH zcx_abapgit_exception cx_sy_move_cast_error INTO lx_exception. " In case of fire we just fallback to plain old message MESSAGE lx_exception TYPE 'S' DISPLAY LIKE 'E'. ENDTRY. ENDMETHOD. METHOD on_event. handle_action( iv_action = action iv_getdata = getdata it_postdata = postdata ). ENDMETHOD. METHOD render. DATA: lv_url TYPE w3url, lv_html TYPE string, li_html TYPE REF TO zif_abapgit_html. IF mi_cur_page IS NOT BOUND. zcx_abapgit_exception=>raise( 'GUI error: no current page' ). ENDIF. CLEAR mt_event_handlers. mo_html_parts->clear( ). IF mi_router IS BOUND. APPEND mi_router TO mt_event_handlers. ENDIF. IF mi_hotkey_ctl IS BOUND. mi_hotkey_ctl->reset( ). ENDIF. li_html = mi_cur_page->render( ). lv_html = li_html->render( iv_no_indent_jscss = abap_true ). IF mi_html_processor IS BOUND. lv_html = mi_html_processor->process( iv_html = lv_html ii_gui_services = me ). ENDIF. lv_url = cache_html( lv_html ). mi_html_viewer->show_url( lv_url ). ENDMETHOD. METHOD startup. DATA: lt_events TYPE cntl_simple_events, ls_event LIKE LINE OF lt_events, lt_assets TYPE zif_abapgit_gui_asset_manager=>ty_web_assets. FIELD-SYMBOLS <ls_asset> LIKE LINE OF lt_assets. mi_html_viewer = zcl_abapgit_ui_factory=>get_html_viewer( ). IF mi_asset_man IS BOUND. lt_assets = mi_asset_man->get_all_assets( ). LOOP AT lt_assets ASSIGNING <ls_asset> WHERE is_cacheable = abap_true. zif_abapgit_gui_services~cache_asset( iv_xdata = <ls_asset>-content iv_url = <ls_asset>-url iv_type = <ls_asset>-type iv_subtype = <ls_asset>-subtype ). ENDLOOP. ENDIF. ls_event-eventid = mi_html_viewer->m_id_sapevent. ls_event-appl_event = abap_true. APPEND ls_event TO lt_events. mi_html_viewer->set_registered_events( lt_events ). SET HANDLER on_event FOR mi_html_viewer. ENDMETHOD. METHOD zif_abapgit_gui_services~cache_asset. TYPES: ty_hex TYPE x LENGTH 200. DATA: lt_xdata TYPE STANDARD TABLE OF ty_hex WITH DEFAULT KEY, lv_size TYPE i, lt_html TYPE w3htmltab. ASSERT iv_text IS SUPPLIED OR iv_xdata IS SUPPLIED. IF iv_text IS SUPPLIED. " String input zcl_abapgit_convert=>string_to_tab( EXPORTING iv_str = iv_text IMPORTING ev_size = lv_size et_tab = lt_html ). mi_html_viewer->load_data( EXPORTING iv_type = iv_type iv_subtype = iv_subtype iv_size = lv_size iv_url = iv_url IMPORTING ev_assigned_url = rv_url CHANGING ct_data_table = lt_html ). ELSE. " Raw input zcl_abapgit_convert=>xstring_to_bintab( EXPORTING iv_xstr = iv_xdata IMPORTING ev_size = lv_size et_bintab = lt_xdata ). mi_html_viewer->load_data( EXPORTING iv_type = iv_type iv_subtype = iv_subtype iv_size = lv_size iv_url = iv_url IMPORTING ev_assigned_url = rv_url CHANGING ct_data_table = lt_xdata ). ENDIF. ASSERT sy-subrc = 0. " Image data error ENDMETHOD. METHOD zif_abapgit_gui_services~get_current_page_name. DATA li_page_hoc TYPE REF TO zcl_abapgit_gui_page_hoc. IF mi_cur_page IS BOUND. rv_page_name = cl_abap_classdescr=>describe_by_object_ref( mi_cur_page )->get_relative_name( ). " For HOC components return name of child component instead IF rv_page_name = 'ZCL_ABAPGIT_GUI_PAGE_HOC'. li_page_hoc ?= mi_cur_page. IF li_page_hoc->get_child( ) IS BOUND. rv_page_name = cl_abap_classdescr=>describe_by_object_ref( li_page_hoc->get_child( ) )->get_relative_name( ). ENDIF. ENDIF. ENDIF." ELSE - return is empty => initial page ENDMETHOD. METHOD zif_abapgit_gui_services~get_hotkeys_ctl. ri_hotkey_ctl = mi_hotkey_ctl. ENDMETHOD. METHOD zif_abapgit_gui_services~get_html_parts. ro_parts = mo_html_parts. ENDMETHOD. METHOD zif_abapgit_gui_services~register_event_handler. ASSERT ii_event_handler IS BOUND. INSERT ii_event_handler INTO mt_event_handlers INDEX 1. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 30416, 764, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 15596, 62, 5219, 11, 198, 220, 220, 220, 220, 220, 220, 220, 407, 62, 38788, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 26173, 8924, 657, 11, 198, 220, 220, 220, 220, 220, 220, 220, 302, 62, 13287, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 26173, 8924, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 649, 62, 7700, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 26173, 8924, 362, 11, 198, 220, 220, 220, 220, 220, 220, 220, 467, 62, 1891, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 26173, 8924, 513, 11, 198, 220, 220, 220, 220, 220, 220, 220, 645, 62, 3549, 62, 529, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 26173, 8924, 604, 11, 198, 220, 220, 220, 220, 220, 220, 220, 649, 62, 7700, 62, 86, 62, 2070, 4102, 41876, 1312, 26173, 8924, 642, 11, 198, 220, 220, 220, 220, 220, 220, 220, 467, 62, 1891, 62, 1462, 62, 2070, 4102, 41876, 1312, 26173, 8924, 718, 11, 198, 220, 220, 220, 220, 220, 220, 220, 649, 62, 7700, 62, 35666, 4092, 220, 41876, 1312, 26173, 8924, 767, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 15596, 62, 5219, 764, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 2673, 11, 198, 220, 220, 220, 220, 220, 220, 220, 467, 62, 11195, 41876, 4731, 26173, 8924, 705, 2188, 62, 11195, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 467, 62, 9945, 220, 220, 41876, 4731, 26173, 8924, 705, 2188, 62, 9945, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 2673, 764, 628, 220, 220, 220, 337, 36252, 50, 467, 62, 11195, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 736, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1462, 62, 2070, 4102, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 37023, 8, 220, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 319, 62, 15596, 198, 220, 220, 220, 220, 220, 220, 220, 7473, 49261, 473, 431, 1151, 3963, 1976, 361, 62, 397, 499, 18300, 62, 6494, 62, 1177, 263, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 2673, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 14535, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 1136, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 7353, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 22766, 62, 11487, 764, 198, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 42895, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 2134, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 562, 316, 62, 805, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 562, 316, 62, 37153, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 8940, 2539, 62, 34168, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 8940, 2539, 62, 34168, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 6494, 62, 41341, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 6494, 62, 41341, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2487, 1891, 62, 261, 62, 18224, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 1479, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 7700, 62, 25558, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2443, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 13287, 540, 11, 198, 220, 220, 220, 220, 220, 220, 220, 44007, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 7700, 62, 25558, 764, 628, 220, 220, 220, 42865, 285, 85, 62, 2487, 1891, 62, 261, 62, 18224, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 42865, 21504, 62, 22019, 62, 7700, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 13287, 540, 764, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 45079, 62, 25558, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 1259, 62, 7700, 62, 25558, 764, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 45079, 62, 15596 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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f_service FINAL CREATE PRIVATE GLOBAL FRIENDS zcl_adf_service_factory. PUBLIC SECTION. METHODS string_to_sign IMPORTING !iv_permisson TYPE string DEFAULT 'racwdl' !iv_expiry_time TYPE string OPTIONAL VALUE(iv_storage_account) TYPE string VALUE(iv_container) TYPE string VALUE(iv_blob_name) TYPE string VALUE(iv_blob_type) TYPE char1 DEFAULT 'A' !iv_identifier TYPE string OPTIONAL !iv_ip TYPE string OPTIONAL !iv_protocol TYPE string OPTIONAL !iv_version TYPE string DEFAULT '2016-05-31' !iv_rscc TYPE string OPTIONAL !iv_rscd TYPE string OPTIONAL !iv_rsce TYPE string OPTIONAL !iv_rsct TYPE string OPTIONAL RAISING zcx_adf_service . METHODS create_append_blob EXPORTING VALUE(ev_response) TYPE string VALUE(ev_http_status) TYPE i RAISING zcx_adf_service . METHODS send REDEFINITION . PROTECTED SECTION. METHODS get_sas_token REDEFINITION . PRIVATE SECTION. CONSTANTS gc_utc_zone TYPE tznzone VALUE 'UTC'. "#EC NOTEXT CONSTANTS gc_sep_hyphen TYPE char1 VALUE '-'. "#EC NOTEXT CONSTANTS gc_sep_colon TYPE char1 VALUE ':'. "#EC NOTEXT DATA gv_start_utc_time TYPE string . DATA gv_expiry_utc_time TYPE string . DATA gv_permisson TYPE string VALUE 'racwdl'. "#EC NOTEXT DATA gv_blob_name TYPE string . DATA gv_container_name TYPE string . DATA gv_blob_type TYPE string . DATA gc_block_blob TYPE string VALUE 'BlockBlob'. "#EC NOTEXT DATA gc_append_blob TYPE string VALUE 'AppendBlob'. "#EC NOTEXT DATA gc_a TYPE char1 VALUE 'A'. "#EC NOTEXT DATA gc_b TYPE char1 VALUE 'B'. "#EC NOTEXT DATA gv_sas_token TYPE string . CONSTANTS gc_comp_appendblock TYPE string VALUE '&comp=appendblock'. "#EC NOTEXT CONSTANTS gc_sep_slash TYPE char1 VALUE '/'. "#EC NOTEXT CONSTANTS gc_blob TYPE string VALUE 'blob'. "#EC NOTEXT DATA gv_storage_account TYPE string . METHODS set_expiry_utc_time RAISING zcx_adf_service . ENDCLASS. CLASS zcl_adf_service_blob IMPLEMENTATION. METHOD create_append_blob. DATA : lo_response TYPE REF TO if_rest_entity, lo_request TYPE REF TO if_rest_entity, lv_sas_token TYPE string, lv_msg TYPE string, lcx_adf_service TYPE REF TO zcx_adf_service. IF go_rest_api IS BOUND. IF gv_sas_token IS INITIAL. TRY. get_sas_token( EXPORTING iv_baseaddress = gv_uri RECEIVING rv_sas_token = lv_sas_token ). gv_sas_token = lv_sas_token. CATCH zcx_adf_service INTO lcx_adf_service. lv_msg = lcx_adf_service->get_text( ). MESSAGE lv_msg TYPE 'I'. ENDTRY. ENDIF. go_rest_api->zif_rest_framework~set_uri( lv_sas_token ). add_request_header( iv_name = 'x-ms-blob-type' iv_value = gc_append_blob ). add_request_header( iv_name = 'Content-Length' iv_value = '0' ). add_request_header( iv_name = 'Content-Type' iv_value = 'text/plain' ). **Rest API call to get response from Azure Destination lo_response = go_rest_api->zif_rest_framework~execute( io_entity = lo_request async = gv_asynchronous is_retry = gv_is_try ). ev_http_status = go_rest_api->get_status( ). IF lo_response IS BOUND. ev_response = lo_response->get_string_data( ). ELSE. RAISE EXCEPTION TYPE zcx_adf_service EXPORTING textid = zcx_adf_service=>error_in_append_blob_creation interface_id = gv_interface_id. ENDIF. ENDIF. ENDMETHOD. METHOD get_sas_token. DATA : body_xstring TYPE xstring, sign TYPE string, final_token TYPE string, lv_decoded_xstr TYPE xstring, conv TYPE REF TO cl_abap_conv_out_ce, lv_sas_key TYPE string, lv_format TYPE i. conv = cl_abap_conv_out_ce=>create( encoding = 'UTF-8' ). conv->convert( EXPORTING data = gv_string_to_sign IMPORTING buffer = body_xstring ). DEFINE encrypt_key. decode_sign( RECEIVING rv_secret = lv_sas_key ). CALL FUNCTION 'SSFC_BASE64_DECODE' EXPORTING b64data = lv_sas_key IMPORTING bindata = lv_decoded_xstr EXCEPTIONS ssf_krn_error = 1 ssf_krn_noop = 2 ssf_krn_nomemory = 3 ssf_krn_opinv = 4 ssf_krn_input_data_error = 5 ssf_krn_invalid_par = 6 ssf_krn_invalid_parlen = 7 OTHERS = 8. IF sy-subrc <> 0. * Implement suitable error handling here RAISE EXCEPTION TYPE zcx_adf_service EXPORTING textid = zcx_adf_service=>error_in_sas_key_encryption interface_id = gv_interface_id. ENDIF. CALL METHOD cl_abap_hmac=>calculate_hmac_for_raw EXPORTING if_algorithm = 'sha-256' if_key = lv_decoded_xstr "decoded if_data = body_xstring if_length = 0 IMPORTING ef_hmacb64string = sign. CLEAR : lv_sas_key,lv_decoded_xstr. END-OF-DEFINITION. encrypt_key. IF NOT sign IS INITIAL. lv_format = 18. sign = escape( val = sign format = lv_format ). gv_start_utc_time = escape( val = gv_start_utc_time format = lv_format ). gv_expiry_utc_time = escape( val = gv_expiry_utc_time format = lv_format ). IF NOT gv_expiry_utc_time IS INITIAL. CONCATENATE '?sv=' gv_service_version '&sr=c' '&sig=' sign '&st=' gv_start_utc_time '&se=' gv_expiry_utc_time '&sp=' gv_permisson INTO final_token. CONCATENATE '/' gv_container_name '/' gv_blob_name INTO rv_sas_token. CONCATENATE rv_sas_token final_token INTO rv_sas_token. ENDIF. ELSE. RAISE EXCEPTION TYPE zcx_adf_service EXPORTING textid = zcx_adf_service=>sas_key_not_generated interface_id = gv_interface_id. ENDIF. ENDMETHOD. METHOD send. DATA : lo_response TYPE REF TO if_rest_entity, lo_request TYPE REF TO if_rest_entity, lv_sas_token TYPE string, lv_msg TYPE string, lcx_adf_service TYPE REF TO zcx_adf_service. IF go_rest_api IS BOUND. IF gv_sas_token IS INITIAL. TRY. get_sas_token( EXPORTING iv_baseaddress = gv_uri RECEIVING rv_sas_token = lv_sas_token ). gv_sas_token = lv_sas_token. CATCH zcx_adf_service INTO lcx_adf_service. lv_msg = lcx_adf_service->get_text( ). MESSAGE lv_msg TYPE 'I'. ENDTRY. CASE gv_blob_type. WHEN gc_append_blob. CONCATENATE gv_sas_token gc_comp_appendblock INTO gv_sas_token. go_rest_api->zif_rest_framework~set_uri( gv_sas_token ). WHEN gc_block_blob. go_rest_api->zif_rest_framework~set_uri( gv_sas_token ). ENDCASE. ELSE. IF NOT gv_sas_token CS gc_comp_appendblock AND gv_blob_type EQ gc_append_blob. CONCATENATE gv_sas_token gc_comp_appendblock INTO gv_sas_token. ENDIF. go_rest_api->zif_rest_framework~set_uri( gv_sas_token ). ENDIF. CASE gv_blob_type. WHEN gc_block_blob. add_request_header( iv_name = 'x-ms-blob-type' iv_value = gc_block_blob ). add_request_header( iv_name = 'Content-Type' iv_value = 'text/plain' ). WHEN gc_append_blob. add_request_header( iv_name = 'x-ms-version' iv_value = '2016-05-31' ). add_request_header( iv_name = 'Content-Length' iv_value = '1048' ). ENDCASE. go_rest_api->zif_rest_framework~set_binary_body( request ). **Rest API call to get response from Azure Destination lo_response = go_rest_api->zif_rest_framework~execute( io_entity = lo_request async = gv_asynchronous is_retry = gv_is_try ). ev_http_status = go_rest_api->get_status( ). IF lo_response IS BOUND. response = lo_response->get_string_data( ). ELSE. RAISE EXCEPTION TYPE zcx_adf_service EXPORTING textid = zcx_adf_service=>restapi_response_not_found interface_id = gv_interface_id. ENDIF. ENDIF. ENDMETHOD. METHOD set_expiry_utc_time. DATA : lv_current_timestamp TYPE timestamp, lv_date TYPE sy-datum, lv_time_out TYPE timestamp, lv_total_sec(16) TYPE p, lv_time TYPE sy-uzeit. *Get the current timestamp in UTC GET TIME STAMP FIELD lv_current_timestamp . CONVERT TIME STAMP lv_current_timestamp TIME ZONE gc_utc_zone INTO DATE lv_date TIME lv_time. CONCATENATE lv_date+0(4) gc_sep_hyphen lv_date+4(2) gc_sep_hyphen lv_date+6(2) 'T' lv_time+0(2) gc_sep_colon lv_time+2(2) gc_sep_colon lv_time+4(2) 'Z' INTO gv_start_utc_time. lv_total_sec = ( ( gv_expiry_hour * 60 ) * 60 ) + ( gv_expiry_min * 60 ) + ( gv_expiry_sec ). IF NOT lv_total_sec IS INITIAL. CALL FUNCTION 'TIMESTAMP_DURATION_ADD' EXPORTING timestamp_in = lv_current_timestamp timezone = 'UTC' duration = lv_total_sec unit = 'S' IMPORTING timestamp_out = lv_time_out EXCEPTIONS timestamp_error = 1 OTHERS = 2. IF sy-subrc <> 0. * Implement suitable error handling here RAISE EXCEPTION TYPE zcx_adf_service EXPORTING textid = zcx_adf_service=>expiry_utc_time_not_set interface_id = gv_interface_id. ENDIF. CLEAR: lv_date,lv_time. CONVERT TIME STAMP lv_time_out TIME ZONE gc_utc_zone INTO DATE lv_date TIME lv_time. CONCATENATE lv_date+0(4) gc_sep_hyphen lv_date+4(2) gc_sep_hyphen lv_date+6(2) 'T' lv_time+0(2) gc_sep_colon lv_time+2(2) gc_sep_colon lv_time+4(2) 'Z' INTO gv_expiry_utc_time. IF gv_expiry_utc_time IS INITIAL. RAISE EXCEPTION TYPE zcx_adf_service EXPORTING textid = zcx_adf_service=>expiry_utc_time_not_set interface_id = gv_interface_id. ENDIF. ENDIF. ENDMETHOD. METHOD string_to_sign. DATA : lv_canonical_str TYPE string, lv_msg TYPE string, lcx_adf_service TYPE REF TO zcx_adf_service. CLEAR: gv_string_to_sign, gv_expiry_utc_time,gv_start_utc_time,gv_blob_name,gv_container_name. IF iv_expiry_time IS INITIAL. TRY. set_expiry_utc_time( ). CATCH zcx_adf_service INTO lcx_adf_service. lv_msg = lcx_adf_service->get_text( ). MESSAGE lv_msg TYPE 'I'. ENDTRY. ELSE. gv_expiry_utc_time = iv_expiry_time. ENDIF. IF iv_blob_type EQ gc_a. gv_blob_type = gc_append_blob. ELSEIF iv_blob_type EQ gc_b. gv_blob_type = gc_block_blob. ENDIF. CONCATENATE gc_sep_slash gc_blob gc_sep_slash iv_storage_account gc_sep_slash iv_container INTO lv_canonical_str. gv_storage_account = iv_storage_account. gv_container_name = iv_container. gv_blob_name = iv_blob_name. gv_permisson = iv_permisson. gv_service_version = iv_version. CONCATENATE iv_permisson cl_abap_char_utilities=>newline gv_start_utc_time cl_abap_char_utilities=>newline gv_expiry_utc_time cl_abap_char_utilities=>newline lv_canonical_str cl_abap_char_utilities=>newline iv_identifier cl_abap_char_utilities=>newline iv_ip cl_abap_char_utilities=>newline iv_protocol cl_abap_char_utilities=>newline iv_version cl_abap_char_utilities=>newline iv_rscc cl_abap_char_utilities=>newline iv_rscd cl_abap_char_utilities=>newline iv_rsce cl_abap_char_utilities=>newline iv_rsct cl_abap_char_utilities=>newline INTO gv_string_to_sign. IF gv_string_to_sign IS INITIAL. RAISE EXCEPTION TYPE zcx_adf_service EXPORTING textid = zcx_adf_service=>string_to_sign_not_generated interface_id = gv_interface_id. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 324, 69, 62, 15271, 62, 2436, 672, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 324, 69, 62, 15271, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 198, 220, 10188, 9864, 1847, 48167, 1677, 5258, 1976, 565, 62, 324, 69, 62, 15271, 62, 69, 9548, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 4731, 62, 1462, 62, 12683, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 525, 3927, 261, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 5550, 38865, 705, 11510, 16993, 75, 6, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1069, 4063, 88, 62, 2435, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 452, 62, 35350, 62, 23317, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 452, 62, 34924, 8, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 452, 62, 2436, 672, 62, 3672, 8, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 452, 62, 2436, 672, 62, 4906, 8, 220, 220, 220, 220, 220, 220, 41876, 1149, 16, 5550, 38865, 705, 32, 6, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 738, 7483, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 541, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 11235, 4668, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 9641, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 5550, 38865, 705, 5304, 12, 2713, 12, 3132, 6, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3808, 535, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 81, 1416, 67, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3808, 344, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3808, 310, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 324, 69, 62, 15271, 764, 198, 220, 220, 220, 337, 36252, 50, 2251, 62, 33295, 62, 2436, 672, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 1990, 62, 26209, 8, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 1990, 62, 4023, 62, 13376, 8, 41876, 1312, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 324, 69, 62, 15271, 764, 628, 220, 220, 220, 337, 36252, 50, 3758, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 82, 292, 62, 30001, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 308, 66, 62, 315, 66, 62, 11340, 41876, 256, 47347, 11340, 26173, 8924, 705, 17429, 4458, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 308, 66, 62, 325, 79, 62, 36362, 831, 41876, 1149, 16, 26173, 8924, 705, 12, 4458, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 308, 66, 62, 325, 79, 62, 4033, 261, 41876, 1149, 16, 26173, 8924, 705, 25, 4458, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 42865, 308, 85, 62, 9688, 62, 315, 66, 62, 2435, 41876, 4731, 764, 198, 220, 220, 220, 42865, 308, 85, 62, 1069, 4063, 88, 62, 315, 66, 62, 2435, 41876, 4731, 764, 198, 220, 220, 220, 42865, 308, 85, 62, 525, 3927, 261, 41876, 4731, 26173, 8924, 705, 11510, 16993, 75, 4458, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 42865, 308, 85, 62, 2436, 672, 62, 3672, 41876, 4731, 764, 198, 220, 220, 220, 42865, 308, 85, 62, 34924, 62, 3672, 41876, 4731, 764, 198, 220, 220, 220, 42865, 308, 85, 62, 2436, 672, 62, 4906, 41876, 4731, 764, 198, 220, 220, 220, 42865, 308, 66, 62, 9967, 62, 2436, 672, 41876, 4731, 26173, 8924, 705, 12235, 3629, 672, 4458, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 42865, 308, 66, 62, 33295, 62, 2436, 672, 41876, 4731, 26173, 8924, 705, 4677, 437, 3629, 672, 4458, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 42865, 308, 66, 62, 64, 41876, 1149, 16, 26173, 8924, 705, 32, 4458, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_fugr DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_program FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. PROTECTED SECTION. PRIVATE SECTION. TYPES: ty_rs38l_incl_tt TYPE STANDARD TABLE OF rs38l_incl WITH DEFAULT KEY . TYPES: BEGIN OF ty_function, funcname TYPE rs38l_fnam, global_flag TYPE rs38l-global, remote_call TYPE rs38l-remote, update_task TYPE rs38l-utask, short_text TYPE tftit-stext, remote_basxml TYPE rs38l-basxml_enabled, import TYPE STANDARD TABLE OF rsimp WITH DEFAULT KEY, changing TYPE STANDARD TABLE OF rscha WITH DEFAULT KEY, export TYPE STANDARD TABLE OF rsexp WITH DEFAULT KEY, tables TYPE STANDARD TABLE OF rstbl WITH DEFAULT KEY, exception TYPE STANDARD TABLE OF rsexc WITH DEFAULT KEY, documentation TYPE STANDARD TABLE OF rsfdo WITH DEFAULT KEY, exception_classes TYPE abap_bool, END OF ty_function . TYPES: ty_function_tt TYPE STANDARD TABLE OF ty_function WITH DEFAULT KEY . TYPES: ty_sobj_name_tt TYPE STANDARD TABLE OF sobj_name WITH DEFAULT KEY . TYPES: BEGIN OF ty_tpool_i18n, language TYPE langu, textpool TYPE zif_abapgit_definitions=>ty_tpool_tt, END OF ty_tpool_i18n . TYPES: ty_tpools_i18n TYPE STANDARD TABLE OF ty_tpool_i18n . DATA mt_includes_cache TYPE ty_sobj_name_tt . METHODS check_rfc_parameters IMPORTING !is_function TYPE ty_function RAISING zcx_abapgit_exception . METHODS update_where_used IMPORTING !it_includes TYPE ty_sobj_name_tt . METHODS main_name RETURNING VALUE(rv_program) TYPE program RAISING zcx_abapgit_exception . METHODS functions RETURNING VALUE(rt_functab) TYPE ty_rs38l_incl_tt RAISING zcx_abapgit_exception . METHODS includes RETURNING VALUE(rt_includes) TYPE ty_sobj_name_tt RAISING zcx_abapgit_exception . METHODS serialize_functions RETURNING VALUE(rt_functions) TYPE ty_function_tt RAISING zcx_abapgit_exception . METHODS deserialize_functions IMPORTING !it_functions TYPE ty_function_tt !ii_log TYPE REF TO zif_abapgit_log RAISING zcx_abapgit_exception . METHODS serialize_xml IMPORTING !ii_xml TYPE REF TO zif_abapgit_xml_output RAISING zcx_abapgit_exception . METHODS deserialize_xml IMPORTING !ii_xml TYPE REF TO zif_abapgit_xml_input !iv_package TYPE devclass RAISING zcx_abapgit_exception . METHODS serialize_includes RAISING zcx_abapgit_exception . METHODS deserialize_includes IMPORTING !ii_xml TYPE REF TO zif_abapgit_xml_input !iv_package TYPE devclass !ii_log TYPE REF TO zif_abapgit_log RAISING zcx_abapgit_exception . METHODS is_function_group_locked RETURNING VALUE(rv_is_functions_group_locked) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS is_any_include_locked RETURNING VALUE(rv_is_any_include_locked) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS is_any_function_module_locked RETURNING VALUE(rv_any_function_module_locked) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS get_abap_version IMPORTING !ii_xml TYPE REF TO zif_abapgit_xml_input RETURNING VALUE(rv_abap_version) TYPE progdir-uccheck RAISING zcx_abapgit_exception . METHODS update_func_group_short_text IMPORTING !iv_group TYPE rs38l-area !iv_short_text TYPE tftit-stext . METHODS serialize_texts IMPORTING !iv_prog_name TYPE programm !ii_xml TYPE REF TO zif_abapgit_xml_output RAISING zcx_abapgit_exception . METHODS deserialize_texts IMPORTING !iv_prog_name TYPE programm !ii_xml TYPE REF TO zif_abapgit_xml_input RAISING zcx_abapgit_exception . ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_FUGR IMPLEMENTATION. METHOD check_rfc_parameters. * function module RS_FUNCTIONMODULE_INSERT does the same deep down, but the right error * message is not returned to the user, this is a workaround to give a proper error * message to the user DATA: ls_parameter TYPE rsfbpara, lt_fupa TYPE rsfb_param, ls_fupa LIKE LINE OF lt_fupa. IF is_function-remote_call = 'R'. cl_fb_parameter_conversion=>convert_parameter_old_to_fupa( EXPORTING functionname = is_function-funcname import = is_function-import export = is_function-export change = is_function-changing tables = is_function-tables except = is_function-exception IMPORTING fupararef = lt_fupa ). LOOP AT lt_fupa INTO ls_fupa WHERE paramtype = 'I' OR paramtype = 'E' OR paramtype = 'C' OR paramtype = 'T'. cl_fb_parameter_conversion=>convert_intern_to_extern( EXPORTING parameter_db = ls_fupa IMPORTING parameter_vis = ls_parameter ). CALL FUNCTION 'RS_FB_CHECK_PARAMETER_REMOTE' EXPORTING parameter = ls_parameter basxml_enabled = is_function-remote_basxml EXCEPTIONS not_remote_compatible = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDLOOP. ENDIF. ENDMETHOD. METHOD deserialize_functions. DATA: lv_include TYPE rs38l-include, lv_area TYPE rs38l-area, lv_group TYPE rs38l-area, lv_namespace TYPE rs38l-namespace, lt_source TYPE TABLE OF abaptxt255, lv_msg TYPE string, lx_error TYPE REF TO zcx_abapgit_exception, lv_corrnum TYPE e070use-ordernum. FIELD-SYMBOLS: <ls_func> LIKE LINE OF it_functions. lv_corrnum = zcl_abapgit_default_transport=>get_instance( )->get( )-ordernum. LOOP AT it_functions ASSIGNING <ls_func>. lt_source = mo_files->read_abap( iv_extra = <ls_func>-funcname ). lv_area = ms_item-obj_name. CALL FUNCTION 'FUNCTION_INCLUDE_SPLIT' EXPORTING complete_area = lv_area IMPORTING namespace = lv_namespace group = lv_group EXCEPTIONS OTHERS = 12. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO lv_msg. ii_log->add_error( iv_msg = |Function module { <ls_func>-funcname }: { lv_msg }| is_item = ms_item ). CONTINUE. "with next function module ENDIF. CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = <ls_func>-funcname IMPORTING include = lv_include EXCEPTIONS function_not_exist = 1. IF sy-subrc = 0. * delete the function module to make sure the parameters are updated * havent found a nice way to update the paramters CALL FUNCTION 'FUNCTION_DELETE' EXPORTING funcname = <ls_func>-funcname suppress_success_message = abap_true EXCEPTIONS error_message = 1 OTHERS = 2. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO lv_msg. ii_log->add_error( iv_msg = |Function module { <ls_func>-funcname }: { lv_msg }| is_item = ms_item ). CONTINUE. "with next function module ENDIF. ENDIF. TRY. check_rfc_parameters( <ls_func> ). CATCH zcx_abapgit_exception INTO lx_error. ii_log->add_error( iv_msg = |Function module { <ls_func>-funcname }: { lx_error->get_text( ) }| is_item = ms_item ). CONTINUE. "with next function module ENDTRY. CALL FUNCTION 'RS_FUNCTIONMODULE_INSERT' EXPORTING funcname = <ls_func>-funcname function_pool = lv_group interface_global = <ls_func>-global_flag remote_call = <ls_func>-remote_call short_text = <ls_func>-short_text update_task = <ls_func>-update_task exception_class = <ls_func>-exception_classes namespace = lv_namespace remote_basxml_supported = <ls_func>-remote_basxml corrnum = lv_corrnum IMPORTING function_include = lv_include TABLES import_parameter = <ls_func>-import export_parameter = <ls_func>-export tables_parameter = <ls_func>-tables changing_parameter = <ls_func>-changing exception_list = <ls_func>-exception parameter_docu = <ls_func>-documentation EXCEPTIONS double_task = 1 error_message = 2 function_already_exists = 3 invalid_function_pool = 4 invalid_name = 5 too_many_functions = 6 no_modify_permission = 7 no_show_permission = 8 enqueue_system_failure = 9 canceled_in_corr = 10 OTHERS = 11. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO lv_msg. ii_log->add_error( iv_msg = |Function module { <ls_func>-funcname }: { lv_msg }| is_item = ms_item ). CONTINUE. "with next function module ENDIF. INSERT REPORT lv_include FROM lt_source. ii_log->add_success( iv_msg = |Function module { <ls_func>-funcname } imported| is_item = ms_item ). ENDLOOP. ENDMETHOD. METHOD deserialize_includes. DATA: lo_xml TYPE REF TO zif_abapgit_xml_input, ls_progdir TYPE ty_progdir, lt_includes TYPE ty_sobj_name_tt, lt_tpool TYPE textpool_table, lt_tpool_ext TYPE zif_abapgit_definitions=>ty_tpool_tt, lt_source TYPE TABLE OF abaptxt255, lx_exc TYPE REF TO zcx_abapgit_exception. FIELD-SYMBOLS: <lv_include> LIKE LINE OF lt_includes. tadir_insert( iv_package ). ii_xml->read( EXPORTING iv_name = 'INCLUDES' CHANGING cg_data = lt_includes ). LOOP AT lt_includes ASSIGNING <lv_include>. "ignore simple transformation includes (as long as they remain in existing repositories) IF strlen( <lv_include> ) = 33 AND <lv_include>+30(3) = 'XTI'. ii_log->add_warning( iv_msg = |Simple Transformation include { <lv_include> } ignored| is_item = ms_item ). CONTINUE. ENDIF. TRY. lt_source = mo_files->read_abap( iv_extra = <lv_include> ). lo_xml = mo_files->read_xml( <lv_include> ). lo_xml->read( EXPORTING iv_name = 'PROGDIR' CHANGING cg_data = ls_progdir ). lo_xml->read( EXPORTING iv_name = 'TPOOL' CHANGING cg_data = lt_tpool_ext ). lt_tpool = read_tpool( lt_tpool_ext ). deserialize_program( is_progdir = ls_progdir it_source = lt_source it_tpool = lt_tpool iv_package = iv_package ). deserialize_textpool( iv_program = <lv_include> it_tpool = lt_tpool iv_is_include = abap_true ). ii_log->add_success( iv_msg = |Include { ls_progdir-name } imported| is_item = ms_item ). CATCH zcx_abapgit_exception INTO lx_exc. ii_log->add_exception( ix_exc = lx_exc is_item = ms_item ). CONTINUE. ENDTRY. ENDLOOP. ENDMETHOD. METHOD deserialize_texts. DATA: lt_tpool_i18n TYPE ty_tpools_i18n, lt_tpool TYPE textpool_table. FIELD-SYMBOLS <ls_tpool> LIKE LINE OF lt_tpool_i18n. ii_xml->read( EXPORTING iv_name = 'I18N_TPOOL' CHANGING cg_data = lt_tpool_i18n ). LOOP AT lt_tpool_i18n ASSIGNING <ls_tpool>. lt_tpool = read_tpool( <ls_tpool>-textpool ). deserialize_textpool( iv_program = iv_prog_name iv_language = <ls_tpool>-language it_tpool = lt_tpool ). ENDLOOP. ENDMETHOD. METHOD deserialize_xml. DATA: lv_complete TYPE rs38l-area, lv_namespace TYPE rs38l-namespace, lv_areat TYPE tlibt-areat, lv_stext TYPE tftit-stext, lv_group TYPE rs38l-area, lv_abap_version TYPE trdir-uccheck, lv_corrnum TYPE e070use-ordernum. lv_abap_version = get_abap_version( ii_xml ). lv_complete = ms_item-obj_name. CALL FUNCTION 'FUNCTION_INCLUDE_SPLIT' EXPORTING complete_area = lv_complete IMPORTING namespace = lv_namespace group = lv_group EXCEPTIONS include_not_exists = 1 group_not_exists = 2 no_selections = 3 no_function_include = 4 no_function_pool = 5 delimiter_wrong_position = 6 no_customer_function_group = 7 no_customer_function_include = 8 reserved_name_customer = 9 namespace_too_long = 10 area_length_error = 11 OTHERS = 12. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from FUNCTION_INCLUDE_SPLIT' ). ENDIF. ii_xml->read( EXPORTING iv_name = 'AREAT' CHANGING cg_data = lv_areat ). lv_stext = lv_areat. lv_corrnum = zcl_abapgit_default_transport=>get_instance( )->get( )-ordernum. CALL FUNCTION 'RS_FUNCTION_POOL_INSERT' EXPORTING function_pool = lv_group short_text = lv_stext namespace = lv_namespace devclass = iv_package unicode_checks = lv_abap_version corrnum = lv_corrnum suppress_corr_check = abap_false EXCEPTIONS name_already_exists = 1 name_not_correct = 2 function_already_exists = 3 invalid_function_pool = 4 invalid_name = 5 too_many_functions = 6 no_modify_permission = 7 no_show_permission = 8 enqueue_system_failure = 9 canceled_in_corr = 10 undefined_error = 11 OTHERS = 12. CASE sy-subrc. WHEN 0. " Everything is ok WHEN 1 OR 3. " If the function group exists we need to manually update the short text update_func_group_short_text( iv_group = lv_group iv_short_text = lv_stext ). WHEN OTHERS. zcx_abapgit_exception=>raise( |error from RS_FUNCTION_POOL_INSERT, code: { sy-subrc }| ). ENDCASE. ENDMETHOD. METHOD functions. DATA: lv_area TYPE rs38l-area. FIELD-SYMBOLS: <ls_functab> TYPE LINE OF ty_rs38l_incl_tt. lv_area = ms_item-obj_name. CALL FUNCTION 'RS_FUNCTION_POOL_CONTENTS' EXPORTING function_pool = lv_area TABLES functab = rt_functab EXCEPTIONS function_pool_not_found = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from RS_FUNCTION_POOL_CONTENTS for { lv_area }| ). ENDIF. * The result can also contain function which are lowercase. LOOP AT rt_functab ASSIGNING <ls_functab>. TRANSLATE <ls_functab> TO UPPER CASE. ENDLOOP. SORT rt_functab BY funcname ASCENDING. DELETE ADJACENT DUPLICATES FROM rt_functab COMPARING funcname. ENDMETHOD. METHOD get_abap_version. DATA: lt_includes TYPE ty_sobj_name_tt, ls_progdir TYPE ty_progdir, lo_xml TYPE REF TO zif_abapgit_xml_input. FIELD-SYMBOLS: <lv_include> LIKE LINE OF lt_includes. ii_xml->read( EXPORTING iv_name = 'INCLUDES' CHANGING cg_data = lt_includes ). LOOP AT lt_includes ASSIGNING <lv_include>. lo_xml = mo_files->read_xml( <lv_include> ). lo_xml->read( EXPORTING iv_name = 'PROGDIR' CHANGING cg_data = ls_progdir ). IF ls_progdir-uccheck IS INITIAL. CONTINUE. ELSEIF rv_abap_version IS INITIAL. rv_abap_version = ls_progdir-uccheck. CONTINUE. ELSEIF rv_abap_version <> ls_progdir-uccheck. *** All includes need to have the same ABAP language version zcx_abapgit_exception=>raise( 'different ABAP Language Versions' ). ENDIF. ENDLOOP. IF rv_abap_version IS INITIAL. rv_abap_version = 'X'. ENDIF. ENDMETHOD. METHOD includes. TYPES: BEGIN OF ty_reposrc, progname TYPE reposrc-progname, END OF ty_reposrc. DATA: lt_reposrc TYPE STANDARD TABLE OF ty_reposrc WITH DEFAULT KEY, ls_reposrc LIKE LINE OF lt_reposrc, lv_program TYPE program, lv_maintviewname LIKE LINE OF rt_includes, lv_offset_ns TYPE i, lv_tabix LIKE sy-tabix, lt_functab TYPE ty_rs38l_incl_tt, lt_tadir_includes TYPE HASHED TABLE OF objname WITH UNIQUE KEY table_line. FIELD-SYMBOLS: <lv_include> LIKE LINE OF rt_includes, <ls_func> LIKE LINE OF lt_functab. IF lines( mt_includes_cache ) > 0. rt_includes = mt_includes_cache. RETURN. ENDIF. lv_program = main_name( ). lt_functab = functions( ). CALL FUNCTION 'RS_GET_ALL_INCLUDES' EXPORTING program = lv_program * WITH_RESERVED_INCLUDES = * WITH_CLASS_INCLUDES = ' ' hmm, todo TABLES includetab = rt_includes EXCEPTIONS not_existent = 1 no_program = 2 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from RS_GET_ALL_INCLUDES' ). ENDIF. LOOP AT lt_functab ASSIGNING <ls_func>. DELETE TABLE rt_includes FROM <ls_func>-include. ENDLOOP. * handle generated maintenance views IF ms_item-obj_name(1) <> '/'. "FGroup name does not contain a namespace lv_maintviewname = |L{ ms_item-obj_name }T00|. ELSE. "FGroup name contains a namespace lv_offset_ns = find( val = ms_item-obj_name+1 sub = '/' ). lv_offset_ns = lv_offset_ns + 2. lv_maintviewname = |{ ms_item-obj_name(lv_offset_ns) }L{ ms_item-obj_name+lv_offset_ns }T00|. ENDIF. READ TABLE rt_includes WITH KEY table_line = lv_maintviewname TRANSPORTING NO FIELDS. IF sy-subrc <> 0. APPEND lv_maintviewname TO rt_includes. ENDIF. IF lines( rt_includes ) > 0. " check which includes have their own tadir entry " these includes might reside in a different package or might be shared between multiple function groups " or other programs and are hence no part of the to serialized FUGR object " they will be handled as individual objects when serializing their package " in addition, referenced XTI includes referencing (simple) transformations must be ignored SELECT obj_name INTO TABLE lt_tadir_includes FROM tadir FOR ALL ENTRIES IN rt_includes WHERE pgmid = 'R3TR' AND object = 'PROG' AND obj_name = rt_includes-table_line. LOOP AT rt_includes ASSIGNING <lv_include>. " skip autogenerated includes from Table Maintenance Generator IF <lv_include> CP 'LSVIM*'. DELETE rt_includes INDEX sy-tabix. CONTINUE. ENDIF. READ TABLE lt_tadir_includes WITH KEY table_line = <lv_include> TRANSPORTING NO FIELDS. IF sy-subrc = 0. DELETE rt_includes. CONTINUE. ENDIF. IF strlen( <lv_include> ) = 33 AND <lv_include>+30(3) = 'XTI'. "ignore referenced (simple) transformation includes DELETE rt_includes. CONTINUE. ENDIF. ENDLOOP. IF lines( rt_includes ) > 0. SELECT progname FROM reposrc INTO TABLE lt_reposrc FOR ALL ENTRIES IN rt_includes WHERE progname = rt_includes-table_line AND r3state = 'A'. ENDIF. SORT lt_reposrc BY progname ASCENDING. ENDIF. LOOP AT rt_includes ASSIGNING <lv_include>. lv_tabix = sy-tabix. * make sure the include exists READ TABLE lt_reposrc INTO ls_reposrc WITH KEY progname = <lv_include> BINARY SEARCH. IF sy-subrc <> 0. DELETE rt_includes INDEX lv_tabix. ENDIF. ENDLOOP. APPEND lv_program TO rt_includes. mt_includes_cache = rt_includes. ENDMETHOD. METHOD is_any_function_module_locked. DATA: lt_functions TYPE ty_rs38l_incl_tt. FIELD-SYMBOLS: <ls_function> TYPE rs38l_incl. TRY. lt_functions = functions( ). CATCH zcx_abapgit_exception. RETURN. ENDTRY. LOOP AT lt_functions ASSIGNING <ls_function>. IF exists_a_lock_entry_for( iv_lock_object = 'ESFUNCTION' iv_argument = |{ <ls_function>-funcname }| ) = abap_true. rv_any_function_module_locked = abap_true. EXIT. ENDIF. ENDLOOP. ENDMETHOD. METHOD is_any_include_locked. DATA: lt_includes TYPE ty_sobj_name_tt. FIELD-SYMBOLS: <lv_include> TYPE sobj_name. TRY. lt_includes = includes( ). CATCH zcx_abapgit_exception. RETURN. ENDTRY. LOOP AT lt_includes ASSIGNING <lv_include>. IF exists_a_lock_entry_for( iv_lock_object = 'ESRDIRE' iv_argument = |{ <lv_include> }| ) = abap_true. rv_is_any_include_locked = abap_true. EXIT. ENDIF. ENDLOOP. ENDMETHOD. METHOD is_function_group_locked. DATA: lv_object TYPE eqegraarg. lv_object = |FG{ ms_item-obj_name }|. OVERLAY lv_object WITH ' '. lv_object = lv_object && '*'. rv_is_functions_group_locked = exists_a_lock_entry_for( iv_lock_object = 'EEUDB' iv_argument = lv_object ). ENDMETHOD. METHOD main_name. DATA: lv_area TYPE rs38l-area, lv_namespace TYPE rs38l-namespace, lv_group TYPE rs38l-area. lv_area = ms_item-obj_name. CALL FUNCTION 'FUNCTION_INCLUDE_SPLIT' EXPORTING complete_area = lv_area IMPORTING namespace = lv_namespace group = lv_group EXCEPTIONS include_not_exists = 1 group_not_exists = 2 no_selections = 3 no_function_include = 4 no_function_pool = 5 delimiter_wrong_position = 6 no_customer_function_group = 7 no_customer_function_include = 8 reserved_name_customer = 9 namespace_too_long = 10 area_length_error = 11 OTHERS = 12. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from FUNCTION_INCLUDE_SPLIT' ). ENDIF. CONCATENATE lv_namespace 'SAPL' lv_group INTO rv_program. ENDMETHOD. METHOD serialize_functions. DATA: lt_source TYPE TABLE OF rssource, lt_functab TYPE ty_rs38l_incl_tt, lt_new_source TYPE rsfb_source, ls_function LIKE LINE OF rt_functions. FIELD-SYMBOLS: <ls_func> LIKE LINE OF lt_functab, <ls_documentation> TYPE LINE OF ty_function-documentation. lt_functab = functions( ). LOOP AT lt_functab ASSIGNING <ls_func>. * fm RPY_FUNCTIONMODULE_READ does not support source code * lines longer than 72 characters CLEAR ls_function. MOVE-CORRESPONDING <ls_func> TO ls_function. CLEAR lt_new_source. CLEAR lt_source. CALL FUNCTION 'RPY_FUNCTIONMODULE_READ_NEW' EXPORTING functionname = <ls_func>-funcname IMPORTING global_flag = ls_function-global_flag remote_call = ls_function-remote_call update_task = ls_function-update_task short_text = ls_function-short_text remote_basxml_supported = ls_function-remote_basxml TABLES import_parameter = ls_function-import changing_parameter = ls_function-changing export_parameter = ls_function-export tables_parameter = ls_function-tables exception_list = ls_function-exception documentation = ls_function-documentation source = lt_source CHANGING new_source = lt_new_source EXCEPTIONS error_message = 1 function_not_found = 2 invalid_name = 3 OTHERS = 4. IF sy-subrc = 2. CONTINUE. ELSEIF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from RPY_FUNCTIONMODULE_READ_NEW' ). ENDIF. LOOP AT ls_function-documentation ASSIGNING <ls_documentation>. CLEAR <ls_documentation>-index. ENDLOOP. SELECT SINGLE exten3 INTO ls_function-exception_classes FROM enlfdir WHERE funcname = <ls_func>-funcname. "#EC CI_SUBRC APPEND ls_function TO rt_functions. IF NOT lt_new_source IS INITIAL. mo_files->add_abap( iv_extra = <ls_func>-funcname it_abap = lt_new_source ). ELSE. mo_files->add_abap( iv_extra = <ls_func>-funcname it_abap = lt_source ). ENDIF. ENDLOOP. ENDMETHOD. METHOD serialize_includes. DATA: lt_includes TYPE ty_sobj_name_tt. FIELD-SYMBOLS: <lv_include> LIKE LINE OF lt_includes. lt_includes = includes( ). LOOP AT lt_includes ASSIGNING <lv_include>. * todo, filename is not correct, a include can be used in several programs serialize_program( is_item = ms_item io_files = mo_files iv_program = <lv_include> iv_extra = <lv_include> ). ENDLOOP. ENDMETHOD. METHOD serialize_texts. DATA: lt_tpool_i18n TYPE ty_tpools_i18n, lt_tpool TYPE textpool_table. FIELD-SYMBOLS <ls_tpool> LIKE LINE OF lt_tpool_i18n. IF ii_xml->i18n_params( )-serialize_master_lang_only = abap_true. RETURN. ENDIF. " Table d010tinf stores info. on languages in which program is maintained " Select all active translations of program texts " Skip master language - it was already serialized SELECT DISTINCT language INTO CORRESPONDING FIELDS OF TABLE lt_tpool_i18n FROM d010tinf WHERE r3state = 'A' AND prog = iv_prog_name AND language <> mv_language ##TOO_MANY_ITAB_FIELDS. SORT lt_tpool_i18n BY language ASCENDING. LOOP AT lt_tpool_i18n ASSIGNING <ls_tpool>. READ TEXTPOOL iv_prog_name LANGUAGE <ls_tpool>-language INTO lt_tpool. <ls_tpool>-textpool = add_tpool( lt_tpool ). ENDLOOP. IF lines( lt_tpool_i18n ) > 0. ii_xml->add( iv_name = 'I18N_TPOOL' ig_data = lt_tpool_i18n ). ENDIF. ENDMETHOD. METHOD serialize_xml. DATA: lt_includes TYPE ty_sobj_name_tt, lv_areat TYPE tlibt-areat. SELECT SINGLE areat INTO lv_areat FROM tlibt WHERE spras = mv_language AND area = ms_item-obj_name. "#EC CI_GENBUFF "#EC CI_SUBRC lt_includes = includes( ). ii_xml->add( iv_name = 'AREAT' ig_data = lv_areat ). ii_xml->add( iv_name = 'INCLUDES' ig_data = lt_includes ). ENDMETHOD. METHOD update_func_group_short_text. " We update the short text directly. " SE80 does the same in " Program SAPLSEUF / LSEUFF07 " FORM GROUP_CHANGE UPDATE tlibt SET areat = iv_short_text WHERE spras = mv_language AND area = iv_group. ENDMETHOD. METHOD update_where_used. * make extra sure the where-used list is updated after deletion * Experienced some problems with the T00 include * this method just tries to update everything DATA: lv_include LIKE LINE OF it_includes, lo_cross TYPE REF TO cl_wb_crossreference. LOOP AT it_includes INTO lv_include. CREATE OBJECT lo_cross EXPORTING p_name = lv_include p_include = lv_include. lo_cross->index_actualize( ). ENDLOOP. ENDMETHOD. METHOD zif_abapgit_object~changed_by. TYPES: BEGIN OF ty_stamps, user TYPE xubname, date TYPE d, time TYPE t, END OF ty_stamps. DATA: lt_stamps TYPE STANDARD TABLE OF ty_stamps WITH DEFAULT KEY, lv_program TYPE program, lt_includes TYPE ty_sobj_name_tt. FIELD-SYMBOLS: <ls_stamp> LIKE LINE OF lt_stamps, <lv_include> LIKE LINE OF lt_includes. lv_program = main_name( ). CALL FUNCTION 'RS_GET_ALL_INCLUDES' EXPORTING program = lv_program TABLES includetab = lt_includes EXCEPTIONS not_existent = 1 no_program = 2 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from RS_GET_ALL_INCLUDES' ). ENDIF. SELECT unam AS user udat AS date utime AS time FROM reposrc APPENDING CORRESPONDING FIELDS OF TABLE lt_stamps WHERE progname = lv_program AND r3state = 'A'. "#EC CI_SUBRC LOOP AT lt_includes ASSIGNING <lv_include>. SELECT unam AS user udat AS date utime AS time FROM reposrc APPENDING CORRESPONDING FIELDS OF TABLE lt_stamps WHERE progname = <lv_include> AND r3state = 'A'. "#EC CI_SUBRC ENDLOOP. SELECT unam AS user udat AS date utime AS time FROM repotext " Program text pool APPENDING CORRESPONDING FIELDS OF TABLE lt_stamps WHERE progname = lv_program AND r3state = 'A'. "#EC CI_SUBRC SELECT vautor AS user vdatum AS date vzeit AS time FROM eudb " GUI APPENDING CORRESPONDING FIELDS OF TABLE lt_stamps WHERE relid = 'CU' AND name = lv_program AND srtf2 = 0 ##TOO_MANY_ITAB_FIELDS. * Screens: username not stored in D020S database table SORT lt_stamps BY date DESCENDING time DESCENDING. READ TABLE lt_stamps INDEX 1 ASSIGNING <ls_stamp>. IF sy-subrc = 0. rv_user = <ls_stamp>-user. ELSE. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_area TYPE rs38l-area, lt_includes TYPE ty_sobj_name_tt, lv_corrnum TYPE e070use-ordernum. lt_includes = includes( ). lv_area = ms_item-obj_name. lv_corrnum = zcl_abapgit_default_transport=>get_instance( )->get( )-ordernum. CALL FUNCTION 'RS_FUNCTION_POOL_DELETE' EXPORTING area = lv_area suppress_popups = abap_true skip_progress_ind = abap_true corrnum = lv_corrnum EXCEPTIONS canceled_in_corr = 1 enqueue_system_failure = 2 function_exist = 3 not_executed = 4 no_modify_permission = 5 no_show_permission = 6 permission_failure = 7 pool_not_exist = 8 cancelled = 9 OTHERS = 10. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from RS_FUNCTION_POOL_DELETE' ). ENDIF. update_where_used( lt_includes ). ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lv_program_name TYPE programm, lt_functions TYPE ty_function_tt, lt_dynpros TYPE ty_dynpro_tt, ls_cua TYPE ty_cua. deserialize_xml( ii_xml = io_xml iv_package = iv_package ). io_xml->read( EXPORTING iv_name = 'FUNCTIONS' CHANGING cg_data = lt_functions ). deserialize_functions( it_functions = lt_functions ii_log = ii_log ). deserialize_includes( ii_xml = io_xml iv_package = iv_package ii_log = ii_log ). lv_program_name = main_name( ). deserialize_texts( iv_prog_name = lv_program_name ii_xml = io_xml ). io_xml->read( EXPORTING iv_name = 'DYNPROS' CHANGING cg_data = lt_dynpros ). deserialize_dynpros( lt_dynpros ). io_xml->read( EXPORTING iv_name = 'CUA' CHANGING cg_data = ls_cua ). deserialize_cua( iv_program_name = lv_program_name is_cua = ls_cua ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_pool TYPE tlibg-area. lv_pool = ms_item-obj_name. CALL FUNCTION 'RS_FUNCTION_POOL_EXISTS' EXPORTING function_pool = lv_pool EXCEPTIONS pool_not_exists = 1. rv_bool = boolc( sy-subrc <> 1 ). ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. DATA: lv_program TYPE program. lv_program = main_name( ). IF is_function_group_locked( ) = abap_true OR is_any_include_locked( ) = abap_true OR is_any_function_module_locked( ) = abap_true OR is_any_dynpro_locked( lv_program ) = abap_true OR is_cua_locked( lv_program ) = abap_true OR is_text_locked( lv_program ) = abap_true. rv_is_locked = abap_true. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~jump. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ms_item-obj_name object_type = 'FUGR' in_new_window = abap_true. ENDMETHOD. METHOD zif_abapgit_object~serialize. * function group SEUF * function group SIFP * function group SUNI DATA: lt_functions TYPE ty_function_tt, ls_progdir TYPE ty_progdir, lv_program_name TYPE programm, lt_dynpros TYPE ty_dynpro_tt, ls_cua TYPE ty_cua. IF zif_abapgit_object~exists( ) = abap_false. RETURN. ENDIF. serialize_xml( io_xml ). lt_functions = serialize_functions( ). io_xml->add( iv_name = 'FUNCTIONS' ig_data = lt_functions ). serialize_includes( ). lv_program_name = main_name( ). ls_progdir = read_progdir( lv_program_name ). serialize_texts( iv_prog_name = lv_program_name ii_xml = io_xml ). IF ls_progdir-subc = 'F'. lt_dynpros = serialize_dynpros( lv_program_name ). io_xml->add( iv_name = 'DYNPROS' ig_data = lt_dynpros ). ls_cua = serialize_cua( lv_program_name ). io_xml->add( iv_name = 'CUA' ig_data = ls_cua ). ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 69, 1018, 81, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 23065, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 3808, 2548, 75, 62, 259, 565, 62, 926, 41876, 49053, 9795, 43679, 3963, 44608, 2548, 75, 62, 259, 565, 13315, 5550, 38865, 35374, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 8818, 11, 198, 220, 220, 220, 220, 220, 220, 220, 25439, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 44608, 2548, 75, 62, 69, 7402, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3298, 62, 32109, 220, 220, 220, 220, 220, 220, 41876, 44608, 2548, 75, 12, 20541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 6569, 62, 13345, 220, 220, 220, 220, 220, 220, 41876, 44608, 2548, 75, 12, 47960, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4296, 62, 35943, 220, 220, 220, 220, 220, 220, 41876, 44608, 2548, 75, 12, 315, 2093, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1790, 62, 5239, 220, 220, 220, 220, 220, 220, 220, 41876, 256, 701, 270, 12, 301, 2302, 11, 198, 220, 220, 220, 220, 220, 220, 220, 6569, 62, 12093, 19875, 220, 220, 220, 220, 41876, 44608, 2548, 75, 12, 12093, 19875, 62, 25616, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1330, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 44608, 11011, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 5609, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 44608, 11693, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10784, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 374, 8044, 79, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 8893, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 374, 301, 2436, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 6631, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 374, 8044, 66, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10314, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 374, 28202, 4598, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 6631, 62, 37724, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 8818, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 8818, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 8818, 13315, 5550, 38865, 35374, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 568, 50007, 62, 3672, 62, 926, 41876, 49053, 9795, 43679, 3963, 27355, 73, 62, 3672, 220, 13315, 5550, 38865, 35374, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 83, 7742, 62, 72, 1507, 77, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3303, 41876, 2786, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 7742, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 7742, 62, 926, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 83, 7742, 62, 72, 1507, 77, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 83, 7742, 82, 62, 72, 1507, 77, 41876, 49053, 9795, 43679, 3963, 1259, 62, 83, 7742, 62, 72, 1507, 77, 764, 628, 220, 220, 220, 42865, 45079, 62, 42813, 62, 23870, 41876, 1259, 62, 568, 50007, 62, 3672, 62, 926, 764, 628, 220, 220, 220, 337, 36252, 50, 2198, 62, 81, 16072, 62, 17143, 7307, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 8818, 41876, 1259, 62, 8818, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 4296, 62, 3003, 62, 1484, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 42813, 41876, 1259, 62, 568, 50007, 62, 3672, 62, 926, 764, 198, 220, 220, 220, 337, 36252, 50, 1388, 62, 3672, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 23065, 8, 41876, 1430, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 5499, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 12543, 310, 397, 8, 41876, 1259, 62, 3808, 2548, 75, 62, 259, 565, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 3407, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 42813, 8, 41876, 1259, 62, 568, 50007, 62, 3672, 62, 926, 198, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS cl_ci_atc_data_provider DEFINITION PUBLIC FINAL CREATE PRIVATE. PUBLIC SECTION. TYPES ty_source_id TYPE x LENGTH 16. TYPES ty_cache_policy type c length 1. CLASS-METHODS main_program_from_comp_unit IMPORTING compilation_unit TYPE if_ci_atc_source_code_provider=>ty_compilation_unit RETURNING VALUE(main_program) TYPE if_ci_atc_source_code_provider=>ty_include. METHODS get_code_provider RETURNING VALUE(code_provider) TYPE REF TO if_ci_atc_source_code_provider. METHODS get_checked_destination RETURNING VALUE(checked_destination) type ref to if_rfc_dest. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS cl_ci_atc_data_provider IMPLEMENTATION. METHOD main_program_from_comp_unit. RETURN. ENDMETHOD. METHOD get_code_provider. RETURN. ENDMETHOD. METHOD get_checked_destination. RETURN. ENDMETHOD. ENDCLASS.
[ 31631, 537, 62, 979, 62, 265, 66, 62, 7890, 62, 15234, 1304, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 1259, 62, 10459, 62, 312, 41876, 2124, 406, 49494, 1467, 13, 198, 220, 220, 220, 24412, 47, 1546, 1259, 62, 23870, 62, 30586, 2099, 269, 4129, 352, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 1388, 62, 23065, 62, 6738, 62, 5589, 62, 20850, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 23340, 62, 20850, 41876, 611, 62, 979, 62, 265, 66, 62, 10459, 62, 8189, 62, 15234, 1304, 14804, 774, 62, 5589, 10520, 62, 20850, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 12417, 62, 23065, 8, 41876, 611, 62, 979, 62, 265, 66, 62, 10459, 62, 8189, 62, 15234, 1304, 14804, 774, 62, 17256, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 8189, 62, 15234, 1304, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 8189, 62, 15234, 1304, 8, 41876, 4526, 37, 5390, 611, 62, 979, 62, 265, 66, 62, 10459, 62, 8189, 62, 15234, 1304, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 26752, 62, 16520, 1883, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 26752, 62, 16520, 1883, 8, 2099, 1006, 284, 611, 62, 81, 16072, 62, 16520, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 537, 62, 979, 62, 265, 66, 62, 7890, 62, 15234, 1304, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 1388, 62, 23065, 62, 6738, 62, 5589, 62, 20850, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 8189, 62, 15234, 1304, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 26752, 62, 16520, 1883, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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C SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. PRIVATE SECTION. TYPES: BEGIN OF ty_style, header TYPE itcda, paragraphs TYPE STANDARD TABLE OF itcdp WITH DEFAULT KEY, strings TYPE STANDARD TABLE OF itcds WITH DEFAULT KEY, tabs TYPE STANDARD TABLE OF itcdq WITH DEFAULT KEY, END OF ty_style. ENDCLASS. CLASS zcl_abapgit_object_styl IMPLEMENTATION. METHOD zif_abapgit_object~has_changed_since. rv_changed = abap_true. ENDMETHOD. "zif_abapgit_object~has_changed_since METHOD zif_abapgit_object~changed_by. DATA: ls_style TYPE ty_style, lv_name TYPE itcda-tdstyle. lv_name = ms_item-obj_name. CALL FUNCTION 'READ_STYLE' EXPORTING style = lv_name IMPORTING style_header = ls_style-header TABLES paragraphs = ls_style-paragraphs strings = ls_style-strings tabs = ls_style-tabs. rv_user = ls_style-header-tdluser. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). rs_metadata-delete_tadir = abap_true. ENDMETHOD. "zif_abapgit_object~get_metadata METHOD zif_abapgit_object~exists. DATA: ls_style TYPE ty_style, lv_name TYPE itcda-tdstyle, lv_found TYPE abap_bool. lv_name = ms_item-obj_name. CALL FUNCTION 'READ_STYLE' EXPORTING style = lv_name IMPORTING found = lv_found TABLES paragraphs = ls_style-paragraphs strings = ls_style-strings tabs = ls_style-tabs. rv_bool = boolc( lv_found = abap_true ). ENDMETHOD. "zif_abapgit_object~exists METHOD zif_abapgit_object~jump. DATA: ls_bcdata TYPE bdcdata, lt_bcdata TYPE STANDARD TABLE OF bdcdata. ls_bcdata-program = 'SAPMSSCS'. ls_bcdata-dynpro = '1100'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO lt_bcdata. CLEAR ls_bcdata. ls_bcdata-fnam = 'RSSCS-TDSTYLE'. ls_bcdata-fval = ms_item-obj_name. APPEND ls_bcdata TO lt_bcdata. CLEAR ls_bcdata. ls_bcdata-fnam = 'RSSCS-TDSPRAS'. ls_bcdata-fval = sy-langu. APPEND ls_bcdata TO lt_bcdata. CLEAR ls_bcdata. ls_bcdata-fnam = 'RSSCS-TDHEADEROB'. ls_bcdata-fval = 'X'. APPEND ls_bcdata TO lt_bcdata. CLEAR ls_bcdata. ls_bcdata-fnam = 'BDC_OKCODE'. ls_bcdata-fval = '=SHOW'. APPEND ls_bcdata TO lt_bcdata. CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'GIT' EXPORTING tcode = 'SE72' mode_val = 'E' TABLES using_tab = lt_bcdata EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, STYL' ). ENDIF. ENDMETHOD. "jump METHOD zif_abapgit_object~delete. DATA: lv_style TYPE itcda-tdstyle. lv_style = ms_item-obj_name. CALL FUNCTION 'DELETE_STYLE' EXPORTING style = lv_style language = '*'. ENDMETHOD. "delete METHOD zif_abapgit_object~deserialize. DATA: ls_style TYPE ty_style. io_xml->read( EXPORTING iv_name = 'STYLE' CHANGING cg_data = ls_style ). CALL FUNCTION 'SAVE_STYLE' EXPORTING style_header = ls_style-header TABLES paragraphs = ls_style-paragraphs strings = ls_style-strings tabs = ls_style-tabs. tadir_insert( iv_package ). ENDMETHOD. "deserialize METHOD zif_abapgit_object~serialize. DATA: ls_style TYPE ty_style, lv_name TYPE itcda-tdstyle. lv_name = ms_item-obj_name. CALL FUNCTION 'READ_STYLE' EXPORTING style = lv_name IMPORTING style_header = ls_style-header TABLES paragraphs = ls_style-paragraphs strings = ls_style-strings tabs = ls_style-tabs. CLEAR: ls_style-header-tdfuser, ls_style-header-tdfdate, ls_style-header-tdftime, ls_style-header-tdfreles, ls_style-header-tdluser, ls_style-header-tdldate, ls_style-header-tdltime, ls_style-header-tdlreles. io_xml->add( iv_name = 'STYLE' ig_data = ls_style ). ENDMETHOD. "serialize METHOD zif_abapgit_object~compare_to_remote_version. CREATE OBJECT ro_comparison_result TYPE zcl_abapgit_comparison_null. ENDMETHOD. ENDCLASS. "zcl_abapgit_object_styl IMPLEMENTATION
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 301, 2645, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13639, 220, 220, 220, 220, 41876, 340, 66, 6814, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23549, 41876, 49053, 9795, 43679, 3963, 340, 10210, 79, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13042, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 340, 66, 9310, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22524, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 340, 10210, 80, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 7635, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 301, 2645, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 10134, 62, 40985, 62, 20777, 13, 198, 220, 220, 220, 374, 85, 62, 40985, 796, 450, 499, 62, 7942, 13, 198, 220, 23578, 49273, 13, 220, 366, 89, 361, 62, 397, 499, 18300, 62, 15252, 93, 10134, 62, 40985, 62, 20777, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 7635, 41876, 1259, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 3672, 220, 41876, 340, 66, 6814, 12, 8671, 7635, 13, 628, 198, 220, 220, 220, 300, 85, 62, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 15675, 62, 2257, 56, 2538, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 3918, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 3672, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 3918, 62, 25677, 796, 43979, 62, 7635, 12, 25677, 198, 220, 220, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 220, 220, 23549, 220, 220, 796, 43979, 62, 7635, 12, 20360, 82, 198, 220, 220, 220, 220, 220, 220, 220, 13042, 220, 220, 220, 220, 220, 796, 43979, 62, 7635, 12, 37336, 198, 220, 220, 220, 220, 220, 220, 220, 22524, 220, 220, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 7635, 12, 8658, 82, 13, 628, 220, 220, 220, 374, 85, 62, 7220, 796, 43979, 62, 7635, 12, 25677, 12, 8671, 75, 7220, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1136, 62, 38993, 13, 198, 220, 220, 220, 44608, 62, 38993, 796, 651, 62, 38993, 7, 6739, 198, 220, 220, 220, 44608, 62, 38993, 12, 33678, 62, 83, 324, 343, 796, 450, 499, 62, 7942, 13, 198, 220, 23578, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 89, 361, 62, 397, 499, 18300, 62, 15252, 93, 1136, 62, 38993, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1069, 1023, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 7635, 41876, 1259, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 3672, 220, 41876, 340, 66, 6814, 12, 8671, 7635, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 9275, 41876, 450, 499, 62, 30388, 13, 628, 198, 220, 220, 220, 300, 85, 62, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 15675, 62, 2257, 56, 2538, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 3918, 220, 220, 220, 220, 220, 796, 300, 85, 62, 3672, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1043, 220, 220, 220, 220, 220, 796, 300, 85, 62, 9275, 198, 220, 220, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 220, 220, 23549, 796, 43979, 62, 7635, 12, 20360, 82, 198, 220, 220, 220, 220, 220, 220, 220, 13042, 220, 220, 220, 796, 43979, 62, 7635, 12, 37336, 198, 220, 220, 220, 220, 220, 220, 220, 22524, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 7635, 12, 8658, 82, 13, 628, 220, 220, 220, 374, 85, 62, 30388, 796, 20512, 66, 7, 300, 85, 62, 9275, 796, 450, 499, 62, 7942, 6739, 628, 220, 23578, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 89, 361, 62, 397, 499, 18300, 62, 15252, 93, 1069, 1023, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 43327, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 15630, 7890, 41876, 275, 17896, 7890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 15630, 7890, 41876, 49053, 9795, 43679, 3963, 275, 17896, 7890, 13, 628, 220, 220, 220, 43979, 62, 15630, 7890, 12, 23065, 220, 796, 705, 50, 2969, 44, 5432, 7902, 4458, 198, 220, 220, 220, 43979, 62, 15630, 7890, 12, 67, 2047, 1676, 220, 220, 796, 705, 42060, 4458, 198, 220, 220, 220, 43979, 62, 15630, 7890, 12, 67, 2047, 27471, 796 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_persistence_repo DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. METHODS constructor . METHODS list RETURNING VALUE(rt_repos) TYPE zif_abapgit_persistence=>tt_repo RAISING zcx_abapgit_exception . METHODS update_sha1 IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !iv_branch_sha1 TYPE zif_abapgit_persistence=>ty_repo_xml-sha1 RAISING zcx_abapgit_exception . METHODS update_local_checksums IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !it_checksums TYPE zif_abapgit_persistence=>ty_repo_xml-local_checksums RAISING zcx_abapgit_exception . METHODS update_url IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !iv_url TYPE zif_abapgit_persistence=>ty_repo_xml-url RAISING zcx_abapgit_exception . METHODS update_branch_name IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !iv_branch_name TYPE zif_abapgit_persistence=>ty_repo_xml-branch_name RAISING zcx_abapgit_exception . METHODS update_head_branch IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !iv_head_branch TYPE zif_abapgit_persistence=>ty_repo_xml-head_branch RAISING zcx_abapgit_exception . METHODS update_offline IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !iv_offline TYPE zif_abapgit_persistence=>ty_repo_xml-offline RAISING zcx_abapgit_exception . METHODS update_dot_abapgit IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !is_dot_abapgit TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit RAISING zcx_abapgit_exception . METHODS add IMPORTING !iv_url TYPE string !iv_branch_name TYPE string !iv_branch TYPE zif_abapgit_definitions=>ty_sha1 OPTIONAL !iv_package TYPE devclass !iv_offline TYPE sap_bool DEFAULT abap_false !is_dot_abapgit TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit RETURNING VALUE(rv_key) TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception . METHODS delete IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception . METHODS read IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key RETURNING VALUE(rs_repo) TYPE zif_abapgit_persistence=>ty_repo RAISING zcx_abapgit_exception zcx_abapgit_not_found . METHODS lock IMPORTING !iv_mode TYPE enqmode !iv_key TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception . METHODS update_local_settings IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !is_settings TYPE zif_abapgit_persistence=>ty_repo_xml-local_settings RAISING zcx_abapgit_exception . PRIVATE SECTION. DATA mo_db TYPE REF TO zcl_abapgit_persistence_db . METHODS from_xml IMPORTING !iv_repo_xml_string TYPE string RETURNING VALUE(rs_repo) TYPE zif_abapgit_persistence=>ty_repo_xml RAISING zcx_abapgit_exception . METHODS to_xml IMPORTING !is_repo TYPE zif_abapgit_persistence=>ty_repo RETURNING VALUE(rv_repo_xml_string) TYPE string . METHODS get_next_id RETURNING VALUE(rv_next_repo_id) TYPE zif_abapgit_persistence=>ty_content-value RAISING zcx_abapgit_exception . ENDCLASS. CLASS ZCL_ABAPGIT_PERSISTENCE_REPO IMPLEMENTATION. METHOD add. DATA: ls_repo TYPE zif_abapgit_persistence=>ty_repo, lv_repo_as_xml TYPE string. ls_repo-url = iv_url. ls_repo-branch_name = iv_branch_name. ls_repo-sha1 = iv_branch. ls_repo-package = iv_package. ls_repo-offline = iv_offline. ls_repo-created_by = sy-uname. GET TIME STAMP FIELD ls_repo-created_at. ls_repo-dot_abapgit = is_dot_abapgit. lv_repo_as_xml = to_xml( ls_repo ). rv_key = get_next_id( ). mo_db->add( iv_type = zcl_abapgit_persistence_db=>c_type_repo iv_value = rv_key iv_data = lv_repo_as_xml ). ENDMETHOD. METHOD constructor. mo_db = zcl_abapgit_persistence_db=>get_instance( ). ENDMETHOD. METHOD delete. DATA: lo_background TYPE REF TO zcl_abapgit_persist_background. CREATE OBJECT lo_background. lo_background->delete( iv_key ). mo_db->delete( iv_type = zcl_abapgit_persistence_db=>c_type_repo iv_value = iv_key ). ENDMETHOD. METHOD from_xml. DATA: lv_xml TYPE string. lv_xml = iv_repo_xml_string. * fix downward compatibility REPLACE ALL OCCURRENCES OF '<_--28C_TYPE_REPO_--29>' IN lv_xml WITH '<REPO>'. REPLACE ALL OCCURRENCES OF '</_--28C_TYPE_REPO_--29>' IN lv_xml WITH '</REPO>'. CALL TRANSFORMATION id OPTIONS value_handling = 'accept_data_loss' SOURCE XML lv_xml RESULT repo = rs_repo ##NO_TEXT. * automatic migration of old fields FIND FIRST OCCURRENCE OF '</HEAD_BRANCH><WRITE_PROTECT>X</WRITE_PROTECT>' IN lv_xml. IF sy-subrc = 0. rs_repo-local_settings-write_protected = abap_true. ENDIF. FIND FIRST OCCURRENCE OF '<IGNORE_SUBPACKAGES>X</IGNORE_SUBPACKAGES></REPO>' IN lv_xml. IF sy-subrc = 0. rs_repo-local_settings-ignore_subpackages = abap_true. ENDIF. IF rs_repo IS INITIAL. zcx_abapgit_exception=>raise( 'Inconsistent repo metadata' ). ENDIF. ENDMETHOD. METHOD get_next_id. * todo: Lock the complete persistence in order to prevent concurrent repo-creation * however the current approach will most likely work in almost all cases DATA: lt_content TYPE zif_abapgit_persistence=>tt_content. FIELD-SYMBOLS: <ls_content> LIKE LINE OF lt_content. rv_next_repo_id = 1. lt_content = mo_db->list_by_type( zcl_abapgit_persistence_db=>c_type_repo ). LOOP AT lt_content ASSIGNING <ls_content>. IF <ls_content>-value >= rv_next_repo_id. rv_next_repo_id = <ls_content>-value + 1. ENDIF. ENDLOOP. CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = rv_next_repo_id IMPORTING output = rv_next_repo_id. ENDMETHOD. METHOD list. DATA: lt_content TYPE zif_abapgit_persistence=>tt_content, ls_content LIKE LINE OF lt_content, ls_repo LIKE LINE OF rt_repos. lt_content = mo_db->list_by_type( zcl_abapgit_persistence_db=>c_type_repo ). LOOP AT lt_content INTO ls_content. MOVE-CORRESPONDING from_xml( ls_content-data_str ) TO ls_repo. ls_repo-key = ls_content-value. INSERT ls_repo INTO TABLE rt_repos. ENDLOOP. ENDMETHOD. METHOD lock. mo_db->lock( iv_mode = iv_mode iv_type = zcl_abapgit_persistence_db=>c_type_repo iv_value = iv_key ). ENDMETHOD. METHOD read. DATA lt_repo TYPE zif_abapgit_persistence=>tt_repo. lt_repo = list( ). READ TABLE lt_repo INTO rs_repo WITH KEY key = iv_key. IF sy-subrc <> 0. RAISE EXCEPTION TYPE zcx_abapgit_not_found. ENDIF. ENDMETHOD. METHOD to_xml. DATA: ls_xml TYPE zif_abapgit_persistence=>ty_repo_xml. MOVE-CORRESPONDING is_repo TO ls_xml. CALL TRANSFORMATION id SOURCE repo = ls_xml RESULT XML rv_repo_xml_string. ENDMETHOD. METHOD update_branch_name. DATA: lt_content TYPE zif_abapgit_persistence=>tt_content, ls_content LIKE LINE OF lt_content, ls_repo TYPE zif_abapgit_persistence=>ty_repo. ASSERT NOT iv_key IS INITIAL. TRY. ls_repo = read( iv_key ). CATCH zcx_abapgit_not_found. zcx_abapgit_exception=>raise( 'key not found' ). ENDTRY. ls_repo-branch_name = iv_branch_name. ls_content-data_str = to_xml( ls_repo ). mo_db->update( iv_type = zcl_abapgit_persistence_db=>c_type_repo iv_value = iv_key iv_data = ls_content-data_str ). ENDMETHOD. METHOD update_dot_abapgit. DATA: lt_content TYPE zif_abapgit_persistence=>tt_content, ls_content LIKE LINE OF lt_content, ls_repo TYPE zif_abapgit_persistence=>ty_repo. ASSERT NOT iv_key IS INITIAL. TRY. ls_repo = read( iv_key ). CATCH zcx_abapgit_not_found. zcx_abapgit_exception=>raise( 'key not found' ). ENDTRY. ls_repo-dot_abapgit = is_dot_abapgit. ls_content-data_str = to_xml( ls_repo ). mo_db->update( iv_type = zcl_abapgit_persistence_db=>c_type_repo iv_value = iv_key iv_data = ls_content-data_str ). ENDMETHOD. METHOD update_head_branch. DATA: lt_content TYPE zif_abapgit_persistence=>tt_content, ls_content LIKE LINE OF lt_content, ls_repo TYPE zif_abapgit_persistence=>ty_repo. ASSERT NOT iv_key IS INITIAL. TRY. ls_repo = read( iv_key ). CATCH zcx_abapgit_not_found. zcx_abapgit_exception=>raise( 'key not found' ). ENDTRY. ls_repo-head_branch = iv_head_branch. ls_content-data_str = to_xml( ls_repo ). mo_db->update( iv_type = zcl_abapgit_persistence_db=>c_type_repo iv_value = iv_key iv_data = ls_content-data_str ). ENDMETHOD. "update_head_branch METHOD update_local_checksums. DATA: lt_content TYPE zif_abapgit_persistence=>tt_content, ls_content LIKE LINE OF lt_content, ls_repo TYPE zif_abapgit_persistence=>ty_repo. ASSERT NOT iv_key IS INITIAL. TRY. ls_repo = read( iv_key ). CATCH zcx_abapgit_not_found. zcx_abapgit_exception=>raise( 'key not found' ). ENDTRY. ls_repo-local_checksums = it_checksums. ls_content-data_str = to_xml( ls_repo ). mo_db->update( iv_type = zcl_abapgit_persistence_db=>c_type_repo iv_value = iv_key iv_data = ls_content-data_str ). ENDMETHOD. METHOD update_local_settings. DATA: lt_content TYPE zif_abapgit_persistence=>tt_content, ls_content LIKE LINE OF lt_content, ls_repo TYPE zif_abapgit_persistence=>ty_repo. ASSERT NOT iv_key IS INITIAL. TRY. ls_repo = read( iv_key ). CATCH zcx_abapgit_not_found. zcx_abapgit_exception=>raise( 'key not found' ). ENDTRY. ls_repo-local_settings = is_settings. ls_content-data_str = to_xml( ls_repo ). mo_db->update( iv_type = zcl_abapgit_persistence_db=>c_type_repo iv_value = iv_key iv_data = ls_content-data_str ). ENDMETHOD. METHOD update_offline. DATA: lt_content TYPE zif_abapgit_persistence=>tt_content, ls_content LIKE LINE OF lt_content, ls_repo TYPE zif_abapgit_persistence=>ty_repo. ASSERT NOT iv_key IS INITIAL. TRY. ls_repo = read( iv_key ). CATCH zcx_abapgit_not_found. zcx_abapgit_exception=>raise( 'key not found' ). ENDTRY. ls_repo-offline = iv_offline. ls_content-data_str = to_xml( ls_repo ). mo_db->update( iv_type = zcl_abapgit_persistence_db=>c_type_repo iv_value = iv_key iv_data = ls_content-data_str ). ENDMETHOD. "update_offline METHOD update_sha1. DATA: lt_content TYPE zif_abapgit_persistence=>tt_content, ls_content LIKE LINE OF lt_content, ls_repo TYPE zif_abapgit_persistence=>ty_repo. ASSERT NOT iv_key IS INITIAL. TRY. ls_repo = read( iv_key ). CATCH zcx_abapgit_not_found. zcx_abapgit_exception=>raise( 'key not found' ). ENDTRY. ls_repo-sha1 = iv_branch_sha1. ls_content-data_str = to_xml( ls_repo ). mo_db->update( iv_type = zcl_abapgit_persistence_db=>c_type_repo iv_value = iv_key iv_data = ls_content-data_str ). ENDMETHOD. METHOD update_url. DATA: lt_content TYPE zif_abapgit_persistence=>tt_content, ls_content LIKE LINE OF lt_content, ls_repo TYPE zif_abapgit_persistence=>ty_repo. IF iv_url IS INITIAL. zcx_abapgit_exception=>raise( 'update, url empty' ). ENDIF. ASSERT NOT iv_key IS INITIAL. TRY. ls_repo = read( iv_key ). CATCH zcx_abapgit_not_found. zcx_abapgit_exception=>raise( 'key not found' ). ENDTRY. ls_repo-url = iv_url. ls_content-data_str = to_xml( ls_repo ). mo_db->update( iv_type = zcl_abapgit_persistence_db=>c_type_repo iv_value = iv_key iv_data = ls_content-data_str ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 19276, 13274, 62, 260, 7501, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 764, 198, 220, 220, 220, 337, 36252, 50, 1351, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 260, 1930, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 926, 62, 260, 7501, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 4296, 62, 26270, 16, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1671, 3702, 62, 26270, 16, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 62, 19875, 12, 26270, 16, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 4296, 62, 12001, 62, 42116, 5700, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 42116, 5700, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 62, 19875, 12, 12001, 62, 42116, 5700, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 4296, 62, 6371, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 62, 19875, 12, 6371, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 4296, 62, 1671, 3702, 62, 3672, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1671, 3702, 62, 3672, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 62, 19875, 12, 1671, 3702, 62, 3672, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 4296, 62, 2256, 62, 1671, 3702, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2256, 62, 1671, 3702, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 62, 19875, 12, 2256, 62, 1671, 3702, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 4296, 62, 2364, 1370, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2364, 1370, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 62, 19875, 12, 2364, 1370, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 4296, 62, 26518, 62, 397, 499, 18300, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 26518, 62, 397, 499, 18300, 41876, 1976, 361, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 14804, 774, 62, 26518, 62, 397, 499, 18300, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 751, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1671, 3702, 62, 3672, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1671, 3702, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Report /GAL/JS_RUN_JOB_SCHEDULER *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT /gal/js_run_job_scheduler. START-OF-SELECTION. AUTHORITY-CHECK OBJECT 'S_BTCH_JOB' ID 'JOBACTION' FIELD 'RELE' ID 'JOBGROUP' FIELD '*'. IF sy-subrc <> 0. MESSAGE e676(00). ENDIF. PERFORM main. FORM main. DATA: l_text TYPE string, l_ex TYPE REF TO /gal/cx_js_exception. TRY. CALL METHOD /gal/job=>run_job_scheduler. CATCH /gal/cx_js_exception INTO l_ex. l_text = l_ex->get_text( ). WRITE: / 'ERROR: ', l_text. ENDTRY. ENDFORM.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 220, 1220, 38, 1847, 14, 20120, 62, 49, 4944, 62, 41, 9864, 62, 50, 3398, 1961, 6239, 1137, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 198, 2200, 15490, 1220, 13528, 14, 8457, 62, 5143, 62, 21858, 62, 1416, 704, 18173, 13, 198, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 628, 220, 44746, 9050, 12, 50084, 25334, 23680, 705, 50, 62, 19313, 3398, 62, 41, 9864, 6, 198, 220, 220, 220, 4522, 705, 41, 9864, 44710, 6, 18930, 24639, 705, 2200, 2538, 6, 198, 220, 220, 220, 4522, 705, 41, 9864, 46846, 6, 220, 18930, 24639, 705, 9, 4458, 198, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 337, 1546, 4090, 8264, 304, 42548, 7, 405, 737, 198, 220, 23578, 5064, 13, 198, 220, 19878, 21389, 1388, 13, 198, 198, 21389, 1388, 13, 198, 220, 42865, 25, 198, 220, 220, 220, 300, 62, 5239, 41876, 4731, 11, 198, 220, 220, 220, 300, 62, 1069, 220, 220, 41876, 4526, 37, 5390, 1220, 13528, 14, 66, 87, 62, 8457, 62, 1069, 4516, 13, 628, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 42815, 337, 36252, 1220, 13528, 14, 21858, 14804, 5143, 62, 21858, 62, 1416, 704, 18173, 13, 628, 220, 220, 220, 327, 11417, 1220, 13528, 14, 66, 87, 62, 8457, 62, 1069, 4516, 39319, 300, 62, 1069, 13, 198, 220, 220, 220, 220, 220, 300, 62, 5239, 796, 300, 62, 1069, 3784, 1136, 62, 5239, 7, 6739, 198, 220, 220, 220, 220, 220, 44423, 25, 1220, 705, 24908, 25, 46083, 300, 62, 5239, 13, 628, 220, 23578, 40405, 13, 198, 1677, 8068, 1581, 44, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
"! <p class="shorttext synchronized" lang="en">Objects documentation</p> INTERFACE zif_conflu_obj_documentation PUBLIC. TYPES: BEGIN OF ts_filter, object_type TYPE trobjtype, object_name TYPE sobj_name, END OF ts_filter, tt_filter TYPE STANDARD TABLE OF zif_conflu_obj_documentation=>ts_filter WITH DEFAULT KEY. TYPES: BEGIN OF ts_space_info, id TYPE i, key TYPE string, name TYPE string, type TYPE string, url TYPE string, END OF ts_space_info. TYPES: BEGIN OF ts_page_info, id TYPE i, type TYPE string, status TYPE string, title TYPE string, version TYPE i, url TYPE string, END OF ts_page_info, tt_page_info TYPE SORTED TABLE OF ts_page_info WITH UNIQUE KEY id. TYPES: BEGIN OF ts_documentation_level, level TYPE i, name TYPE string, default_content TYPE string, page_info TYPE zif_conflu_obj_documentation=>ts_page_info, END OF ts_documentation_level, tt_documentation_level TYPE SORTED TABLE OF ts_documentation_level WITH UNIQUE KEY level. TYPES: BEGIN OF ts_label, name TYPE string, END OF ts_label, tt_labels TYPE STANDARD TABLE OF ts_label WITH DEFAULT KEY. TYPES: BEGIN OF ts_json_documentation, object_type TYPE trobjtype, object_name TYPE sobj_name, package TYPE devclass, content TYPE string, END OF ts_json_documentation, tt_json_documentation TYPE HASHED TABLE OF ts_json_documentation WITH UNIQUE KEY object_type object_name. METHODS get_space_info RETURNING VALUE(information) TYPE zif_conflu_obj_documentation=>ts_space_info RAISING zcx_conflu_docu zcx_conflu_rest. METHODS get_page_info IMPORTING object_type TYPE string object_name TYPE string RETURNING VALUE(information) TYPE zif_conflu_obj_documentation=>ts_page_info RAISING zcx_conflu_docu zcx_conflu_rest. METHODS get_documentation_levels IMPORTING object_type TYPE string RETURNING VALUE(levels) TYPE zif_conflu_obj_documentation=>tt_documentation_level RAISING zcx_conflu_docu zcx_conflu_rest. METHODS export IMPORTING filter TYPE zif_conflu_obj_documentation=>tt_filter OPTIONAL RAISING zcx_conflu_export zcx_conflu_docu zcx_conflu_rest. METHODS generate_json IMPORTING filter TYPE zif_conflu_obj_documentation=>tt_filter OPTIONAL antecesor TYPE p OPTIONAL title_prefix TYPE string OPTIONAL RETURNING VALUE(result) TYPE tt_json_documentation RAISING zcx_conflu_export zcx_conflu_docu zcx_conflu_rest. ENDINTERFACE.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 10267, 82, 10314, 3556, 79, 29, 198, 41358, 49836, 1976, 361, 62, 10414, 2290, 62, 26801, 62, 22897, 341, 198, 220, 44731, 13, 628, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 40379, 62, 24455, 11, 198, 220, 220, 220, 220, 220, 2134, 62, 4906, 41876, 4161, 50007, 4906, 11, 198, 220, 220, 220, 220, 220, 2134, 62, 3672, 41876, 27355, 73, 62, 3672, 11, 198, 220, 220, 220, 23578, 3963, 40379, 62, 24455, 11, 198, 220, 220, 220, 256, 83, 62, 24455, 41876, 49053, 9795, 43679, 3963, 1976, 361, 62, 10414, 2290, 62, 26801, 62, 22897, 341, 14804, 912, 62, 24455, 13315, 5550, 38865, 35374, 13, 628, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 40379, 62, 13200, 62, 10951, 11, 198, 220, 220, 220, 220, 220, 4686, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 1994, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 1438, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2099, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 19016, 220, 41876, 4731, 11, 198, 220, 220, 220, 23578, 3963, 40379, 62, 13200, 62, 10951, 13, 628, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 40379, 62, 7700, 62, 10951, 11, 198, 220, 220, 220, 220, 220, 4686, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 3722, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 3670, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2196, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 19016, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 23578, 3963, 40379, 62, 7700, 62, 10951, 11, 198, 220, 220, 220, 256, 83, 62, 7700, 62, 10951, 41876, 311, 9863, 1961, 43679, 3963, 40379, 62, 7700, 62, 10951, 13315, 4725, 33866, 8924, 35374, 4686, 13, 628, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 40379, 62, 22897, 341, 62, 5715, 11, 198, 220, 220, 220, 220, 220, 1241, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 4277, 62, 11299, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2443, 62, 10951, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 10414, 2290, 62, 26801, 62, 22897, 341, 14804, 912, 62, 7700, 62, 10951, 11, 198, 220, 220, 220, 23578, 3963, 40379, 62, 22897, 341, 62, 5715, 11, 198, 220, 220, 220, 256, 83, 62, 22897, 341, 62, 5715, 41876, 311, 9863, 1961, 43679, 3963, 40379, 62, 22897, 341, 62, 5715, 13315, 4725, 33866, 8924, 35374, 1241, 13, 628, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 40379, 62, 18242, 11, 198, 220, 220, 220, 220, 220, 1438, 41876, 4731, 11, 198, 220, 220, 220, 23578, 3963, 40379, 62, 18242, 11, 198, 220, 220, 220, 256, 83, 62, 23912, 1424, 41876, 49053, 9795, 43679, 3963, 40379, 62, 18242, 13315, 5550, 38865, 35374, 13, 628, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 40379, 62, 17752, 62, 22897, 341, 11, 198, 220, 220, 220, 220, 220, 2134, 62, 4906, 41876, 4161, 50007, 4906, 11, 198, 220, 220, 220, 220, 220, 2134, 62, 3672, 41876, 27355, 73, 62, 3672, 11, 198, 220, 220, 220, 220, 220, 5301, 220, 220, 220, 220, 41876, 1614, 4871, 11, 198, 220, 220, 220, 220, 220, 2695, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 23578, 3963, 40379, 62, 17752, 62, 22897, 341, 11, 198, 220, 220, 220, 256, 83, 62, 17752, 62, 22897, 341, 41876, 367, 11211, 1961, 43679, 3963, 40379, 62, 17752, 62, 22897, 341, 13315, 4725, 33866, 8924, 35374, 2134, 62, 4906, 2134, 62, 3672, 13, 628, 220, 337, 36252, 50, 220, 220, 220, 220, 220, 220, 220, 651, 62, 13200, 62, 10951, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 17018, 8, 41876, 1976, 361, 62, 10414, 2290, 62, 26801, 62, 22897, 341, 14804, 912, 62, 13200, 62, 10951, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 10414, 2290, 62, 15390, 84, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 10414, 2290, 62, 2118, 13, 628, 220, 337, 36252, 50, 651, 62, 7700, 62, 10951, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 2134, 62, 4906, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 2134, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 17018, 8, 41876, 1976, 361, 62, 10414, 2290, 62, 26801, 62, 22897, 341, 14804, 912, 62, 7700, 62, 10951, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 10414, 2290, 62, 15390, 84, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 10414, 2290, 62, 2118, 13, 628, 220, 337, 36252, 50, 651, 62, 22897, 341, 62, 46170, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 2134, 62, 4906, 220, 220, 41876, 4731, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 46170, 8, 41876, 1976, 361, 62, 10414, 2290, 62, 26801, 62, 22897, 341, 14804, 926, 62, 22897, 341, 62, 5715, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 10414, 2290, 62, 15390, 84, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 10414, 2290, 62, 2118, 13, 628, 220, 337, 36252, 50, 10784, 198, 220, 220, 220, 30023,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_oo_class DEFINITION PUBLIC INHERITING FROM zcl_abapgit_oo_base CREATE PUBLIC . PUBLIC SECTION. METHODS zif_abapgit_oo_object_fnc~create REDEFINITION . METHODS zif_abapgit_oo_object_fnc~create_sotr REDEFINITION . METHODS zif_abapgit_oo_object_fnc~delete REDEFINITION . METHODS zif_abapgit_oo_object_fnc~generate_locals REDEFINITION . METHODS zif_abapgit_oo_object_fnc~get_class_properties REDEFINITION . METHODS zif_abapgit_oo_object_fnc~get_includes REDEFINITION . METHODS zif_abapgit_oo_object_fnc~insert_text_pool REDEFINITION . METHODS zif_abapgit_oo_object_fnc~read_sotr REDEFINITION . METHODS zif_abapgit_oo_object_fnc~read_text_pool REDEFINITION . METHODS zif_abapgit_oo_object_fnc~deserialize_source REDEFINITION . PROTECTED SECTION. TYPES: ty_char1 TYPE c LENGTH 1, ty_char2 TYPE c LENGTH 2. PRIVATE SECTION. CLASS-METHODS update_source_index IMPORTING !iv_clsname TYPE csequence !io_scanner TYPE REF TO cl_oo_source_scanner_class . CLASS-METHODS update_report IMPORTING !iv_program TYPE programm !it_source TYPE string_table RETURNING VALUE(rv_updated) TYPE abap_bool RAISING zcx_abapgit_exception . CLASS-METHODS generate_classpool IMPORTING !iv_name TYPE seoclsname RAISING zcx_abapgit_exception . CLASS-METHODS update_meta IMPORTING !iv_name TYPE seoclsname !iv_exposure TYPE seoexpose !it_source TYPE rswsourcet RAISING zcx_abapgit_exception . CLASS-METHODS determine_method_include IMPORTING !iv_name TYPE seoclsname !iv_method TYPE seocpdname RETURNING VALUE(rv_program) TYPE programm RAISING zcx_abapgit_exception . CLASS-METHODS init_scanner IMPORTING !it_source TYPE zif_abapgit_definitions=>ty_string_tt !iv_name TYPE seoclsname RETURNING VALUE(ro_scanner) TYPE REF TO cl_oo_source_scanner_class RAISING zcx_abapgit_exception . CLASS-METHODS update_full_class_include IMPORTING !iv_classname TYPE seoclsname !it_source TYPE string_table !it_methods TYPE cl_oo_source_scanner_class=>type_method_implementations . CLASS-METHODS create_report IMPORTING !iv_program TYPE programm !it_source TYPE string_table !iv_extension TYPE ty_char2 !iv_program_type TYPE ty_char1 !iv_version TYPE r3state . CLASS-METHODS update_cs_number_of_methods IMPORTING !iv_classname TYPE seoclsname !iv_number_of_impl_methods TYPE i . CLASS-METHODS delete_report IMPORTING !iv_program TYPE programm . ENDCLASS. CLASS zcl_abapgit_oo_class IMPLEMENTATION. METHOD create_report. INSERT REPORT iv_program FROM it_source EXTENSION TYPE iv_extension STATE iv_version PROGRAM TYPE iv_program_type. ASSERT sy-subrc = 0. ENDMETHOD. METHOD delete_report. DELETE REPORT iv_program ##SUBRC_OK. ENDMETHOD. METHOD determine_method_include. DATA: ls_mtdkey TYPE seocpdkey. ls_mtdkey-clsname = iv_name. ls_mtdkey-cpdname = iv_method. cl_oo_classname_service=>get_method_include( EXPORTING mtdkey = ls_mtdkey RECEIVING result = rv_program EXCEPTIONS method_not_existing = 1 ). IF sy-subrc = 0. RETURN. ENDIF. CALL FUNCTION 'SEO_METHOD_GENERATE_INCLUDE' EXPORTING suppress_mtdkey_check = abap_true mtdkey = ls_mtdkey EXCEPTIONS not_existing = 1 model_only = 2 include_existing = 3 method_imp_not_generated = 4 method_imp_not_initialised = 5 _internal_class_not_existing = 6 _internal_method_overflow = 7 cancelled = 8 method_is_abstract_implemented = 9 method_is_final_implemented = 10 internal_error_insert_report = 11 OTHERS = 12. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. rv_program = cl_oo_classname_service=>get_method_include( ls_mtdkey ). ENDMETHOD. METHOD generate_classpool. DATA: ls_clskey TYPE seoclskey. ls_clskey-clsname = iv_name. CALL FUNCTION 'SEO_CLASS_GENERATE_CLASSPOOL' EXPORTING clskey = ls_clskey suppress_corr = abap_true EXCEPTIONS not_existing = 1 model_only = 2 class_pool_not_generated = 3 class_stment_not_generated = 4 locals_not_generated = 5 macros_not_generated = 6 public_sec_not_generated = 7 protected_sec_not_generated = 8 private_sec_not_generated = 9 typeref_not_generated = 10 class_pool_not_initialised = 11 class_stment_not_initialised = 12 locals_not_initialised = 13 macros_not_initialised = 14 public_sec_not_initialised = 15 protected_sec_not_initialised = 16 private_sec_not_initialised = 17 typeref_not_initialised = 18 _internal_class_overflow = 19 OTHERS = 20. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD init_scanner. DATA: lx_exc TYPE REF TO cx_root, lv_message TYPE string, lv_classname TYPE abap_abstypename. FIELD-SYMBOLS: <lv_line> TYPE i. TRY. ro_scanner = cl_oo_source_scanner_class=>create_class_scanner( clif_name = iv_name source = it_source ). ro_scanner->scan( ). CATCH cx_clif_scan_error. zcx_abapgit_exception=>raise( 'error initializing CLAS scanner' ). CATCH cx_root INTO lx_exc. lv_classname = cl_abap_classdescr=>get_class_name( lx_exc ). IF lv_classname = '\CLASS=CX_OO_CLIF_SCAN_ERROR_DETAIL'. ASSIGN lx_exc->('SOURCE_POSITION-LINE') TO <lv_line>. ASSERT sy-subrc = 0. lv_message = |{ lx_exc->get_text( ) }, line { <lv_line> }|. ELSE. lv_message = lx_exc->get_text( ). ENDIF. zcx_abapgit_exception=>raise( lv_message ). ENDTRY. ENDMETHOD. METHOD update_cs_number_of_methods. " Indirect access to keep downward compatibility DATA lr_cache_entry TYPE REF TO data. FIELD-SYMBOLS: <lg_cache_entry> TYPE any, <lg_field> TYPE any. TRY. CREATE DATA lr_cache_entry TYPE ('SEO_CS_CACHE'). CATCH cx_sy_create_data_error. * does not exist in some older systems RETURN. ENDTRY. ASSIGN lr_cache_entry->* TO <lg_cache_entry>. ASSERT sy-subrc = 0. ASSIGN COMPONENT 'CLSNAME' OF STRUCTURE <lg_cache_entry> TO <lg_field>. ASSERT sy-subrc = 0. <lg_field> = iv_classname. ASSIGN COMPONENT 'NO_OF_METHOD_IMPLS' OF STRUCTURE <lg_cache_entry> TO <lg_field>. ASSERT sy-subrc = 0. <lg_field> = iv_number_of_impl_methods. MODIFY ('SEO_CS_CACHE') FROM <lg_cache_entry>. ENDMETHOD. METHOD update_full_class_include. CONSTANTS: lc_class_source_extension TYPE c LENGTH 2 VALUE 'CS', lc_include_program_type TYPE c LENGTH 1 VALUE 'I', lc_active_version TYPE r3state VALUE 'A'. create_report( iv_program = cl_oo_classname_service=>get_cs_name( iv_classname ) it_source = it_source iv_extension = lc_class_source_extension iv_program_type = lc_include_program_type iv_version = lc_active_version ). " Assuming that all methods that were scanned are implemented update_cs_number_of_methods( iv_classname = iv_classname iv_number_of_impl_methods = lines( it_methods ) ). ENDMETHOD. METHOD update_meta. DATA: lo_update TYPE REF TO cl_oo_class_section_source, ls_clskey TYPE seoclskey, lv_scan_error TYPE abap_bool. ls_clskey-clsname = iv_name. TRY. CALL FUNCTION 'SEO_BUFFER_REFRESH' EXPORTING cifkey = ls_clskey version = seoc_version_active. CREATE OBJECT lo_update TYPE ('CL_OO_CLASS_SECTION_SOURCE') EXPORTING clskey = ls_clskey exposure = iv_exposure state = 'A' source = it_source suppress_constrctr_generation = abap_true EXCEPTIONS class_not_existing = 1 read_source_error = 2 OTHERS = 3 ##SUBRC_OK. CATCH cx_sy_dyn_call_param_not_found. * downport to 702, see https://github.com/abapGit/abapGit/issues/933 * this will READ REPORT instead of using it_source, which should be okay CREATE OBJECT lo_update TYPE cl_oo_class_section_source EXPORTING clskey = ls_clskey exposure = iv_exposure state = 'A' EXCEPTIONS class_not_existing = 1 read_source_error = 2 OTHERS = 3. ENDTRY. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. lo_update->set_dark_mode( abap_true ). TRY. CALL METHOD lo_update->('SET_AMDP_SUPPORT') EXPORTING enabled = abap_true. CATCH cx_sy_dyn_call_illegal_method ##NO_HANDLER. * AMDP not supported in this system, ignore error ENDTRY. lo_update->scan_section_source( RECEIVING scan_error = lv_scan_error EXCEPTIONS scan_abap_source_error = 1 OTHERS = 2 ). IF sy-subrc <> 0 OR lv_scan_error = abap_true. zcx_abapgit_exception=>raise( |CLAS, error while scanning source. Subrc = { sy-subrc }| ). ENDIF. * this will update the SEO* database tables lo_update->revert_scan_result( ). IF iv_exposure = seoc_exposure_public. generate_classpool( iv_name ). ENDIF. ENDMETHOD. METHOD update_report. DATA: lt_old TYPE string_table. READ REPORT iv_program INTO lt_old. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Fatal error. Include { iv_program } should have been created previously!| ). ENDIF. IF lt_old <> it_source. INSERT REPORT iv_program FROM it_source. ASSERT sy-subrc = 0. rv_updated = abap_true. ELSE. rv_updated = abap_false. ENDIF. ENDMETHOD. METHOD update_source_index. CONSTANTS: lc_version_active TYPE r3state VALUE 'A', lc_version_inactive TYPE r3state VALUE 'I'. " dynamic invocation, IF_OO_SOURCE_POS_INDEX_HELPER doesn't exist in 702. DATA lo_index_helper TYPE REF TO object. TRY. CREATE OBJECT lo_index_helper TYPE ('CL_OO_SOURCE_POS_INDEX_HELPER'). CALL METHOD lo_index_helper->('IF_OO_SOURCE_POS_INDEX_HELPER~CREATE_INDEX_WITH_SCANNER') EXPORTING class_name = iv_clsname version = lc_version_active scanner = io_scanner. CALL METHOD lo_index_helper->('IF_OO_SOURCE_POS_INDEX_HELPER~DELETE_INDEX') EXPORTING class_name = iv_clsname version = lc_version_inactive. CATCH cx_root. " it's probably okay to no update the index RETURN. ENDTRY. ENDMETHOD. METHOD zif_abapgit_oo_object_fnc~create. DATA: lt_vseoattrib TYPE seoo_attributes_r. FIELD-SYMBOLS: <lv_clsname> TYPE seoclsname. * same as in super class, but with "version = seoc_version_active" ASSIGN COMPONENT 'CLSNAME' OF STRUCTURE cg_properties TO <lv_clsname>. ASSERT sy-subrc = 0. lt_vseoattrib = convert_attrib_to_vseoattrib( iv_clsname = <lv_clsname> it_attributes = it_attributes ). TRY. CALL FUNCTION 'SEO_CLASS_CREATE_COMPLETE' EXPORTING devclass = iv_package overwrite = iv_overwrite version = seoc_version_active suppress_dialog = abap_true " Parameter missing in 702 CHANGING class = cg_properties attributes = lt_vseoattrib EXCEPTIONS existing = 1 is_interface = 2 db_error = 3 component_error = 4 no_access = 5 other = 6 OTHERS = 7. CATCH cx_sy_dyn_call_param_not_found. CALL FUNCTION 'SEO_CLASS_CREATE_COMPLETE' EXPORTING devclass = iv_package overwrite = iv_overwrite version = seoc_version_active CHANGING class = cg_properties attributes = lt_vseoattrib EXCEPTIONS existing = 1 is_interface = 2 db_error = 3 component_error = 4 no_access = 5 other = 6 OTHERS = 7. ENDTRY. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD zif_abapgit_oo_object_fnc~create_sotr. zcl_abapgit_sotr_handler=>create_sotr( iv_package = iv_package io_xml = ii_xml ). ENDMETHOD. METHOD zif_abapgit_oo_object_fnc~delete. CALL FUNCTION 'SEO_CLASS_DELETE_COMPLETE' EXPORTING clskey = is_deletion_key EXCEPTIONS not_existing = 1 is_interface = 2 db_error = 3 no_access = 4 other = 5 OTHERS = 6. IF sy-subrc = 1. * ignore deletion of objects that does not exist * this can happen when the SXCI object is deleted before the implementing CLAS RETURN. ELSEIF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD zif_abapgit_oo_object_fnc~deserialize_source. DATA: lv_updated TYPE abap_bool, lv_program TYPE program, lo_scanner TYPE REF TO cl_oo_source_scanner_class, lt_methods TYPE cl_oo_source_scanner_class=>type_method_implementations, lv_method LIKE LINE OF lt_methods, lt_public TYPE seop_source_string, lt_source TYPE seop_source_string. "Buffer needs to be refreshed, "otherwise standard SAP CLIF_SOURCE reorder methods alphabetically CALL FUNCTION 'SEO_BUFFER_INIT'. CALL FUNCTION 'SEO_BUFFER_REFRESH' EXPORTING cifkey = is_key version = seoc_version_inactive. lo_scanner = init_scanner( it_source = it_source iv_name = is_key-clsname ). * public lt_public = lo_scanner->get_public_section_source( ). IF lt_public IS NOT INITIAL. lv_program = cl_oo_classname_service=>get_pubsec_name( is_key-clsname ). lv_updated = update_report( iv_program = lv_program it_source = lt_public ). IF lv_updated = abap_true. update_meta( iv_name = is_key-clsname iv_exposure = seoc_exposure_public it_source = lt_public ). ENDIF. ENDIF. * protected lt_source = lo_scanner->get_protected_section_source( ). IF lt_source IS NOT INITIAL. lv_program = cl_oo_classname_service=>get_prosec_name( is_key-clsname ). lv_updated = update_report( iv_program = lv_program it_source = lt_source ). IF lv_updated = abap_true. update_meta( iv_name = is_key-clsname iv_exposure = seoc_exposure_protected it_source = lt_source ). ENDIF. ENDIF. * private lt_source = lo_scanner->get_private_section_source( ). IF lt_source IS NOT INITIAL. lv_program = cl_oo_classname_service=>get_prisec_name( is_key-clsname ). lv_updated = update_report( iv_program = lv_program it_source = lt_source ). IF lv_updated = abap_true. update_meta( iv_name = is_key-clsname iv_exposure = seoc_exposure_private it_source = lt_source ). ENDIF. ENDIF. * methods lt_methods = lo_scanner->get_method_implementations( ). LOOP AT lt_methods INTO lv_method. TRY. lt_source = lo_scanner->get_method_impl_source( lv_method ). CATCH cx_oo_clif_component. zcx_abapgit_exception=>raise( 'error from GET_METHOD_IMPL_SOURCE' ). ENDTRY. lv_program = determine_method_include( iv_name = is_key-clsname iv_method = lv_method ). update_report( iv_program = lv_program it_source = lt_source ). ENDLOOP. * full class include update_full_class_include( iv_classname = is_key-clsname it_source = it_source it_methods = lt_methods ). update_source_index( iv_clsname = is_key-clsname io_scanner = lo_scanner ). ENDMETHOD. METHOD zif_abapgit_oo_object_fnc~generate_locals. DATA: lv_program TYPE programm. IF lines( it_local_definitions ) > 0. lv_program = cl_oo_classname_service=>get_ccdef_name( is_key-clsname ). update_report( iv_program = lv_program it_source = it_local_definitions ). ENDIF. IF lines( it_local_implementations ) > 0. lv_program = cl_oo_classname_service=>get_ccimp_name( is_key-clsname ). update_report( iv_program = lv_program it_source = it_local_implementations ). ENDIF. IF lines( it_local_macros ) > 0. lv_program = cl_oo_classname_service=>get_ccmac_name( is_key-clsname ). update_report( iv_program = lv_program it_source = it_local_macros ). ENDIF. lv_program = cl_oo_classname_service=>get_ccau_name( is_key-clsname ). IF lines( it_local_test_classes ) > 0. update_report( iv_program = lv_program it_source = it_local_test_classes ). ELSE. " Drop the include to remove left-over test classes delete_report( lv_program ). ENDIF. ENDMETHOD. METHOD zif_abapgit_oo_object_fnc~get_class_properties. CALL FUNCTION 'SEO_CLIF_GET' EXPORTING cifkey = is_class_key version = seoc_version_active IMPORTING class = rs_class_properties EXCEPTIONS not_existing = 1 deleted = 2 model_only = 3 OTHERS = 4. IF sy-subrc = 1. RETURN. " in case only inactive version exists ELSEIF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD zif_abapgit_oo_object_fnc~get_includes. * note: includes returned might not exist * method cl_oo_classname_service=>GET_ALL_CLASS_INCLUDES does not exist in 702 DATA: lv_class_name TYPE seoclsname, lt_methods TYPE seop_methods_w_include. FIELD-SYMBOLS: <ls_method> LIKE LINE OF lt_methods. lv_class_name = iv_object_name. APPEND cl_oo_classname_service=>get_ccdef_name( lv_class_name ) TO rt_includes. APPEND cl_oo_classname_service=>get_ccmac_name( lv_class_name ) TO rt_includes. APPEND cl_oo_classname_service=>get_ccimp_name( lv_class_name ) TO rt_includes. APPEND cl_oo_classname_service=>get_cl_name( lv_class_name ) TO rt_includes. APPEND cl_oo_classname_service=>get_ccau_name( lv_class_name ) TO rt_includes. APPEND cl_oo_classname_service=>get_pubsec_name( lv_class_name ) TO rt_includes. APPEND cl_oo_classname_service=>get_prosec_name( lv_class_name ) TO rt_includes. APPEND cl_oo_classname_service=>get_prisec_name( lv_class_name ) TO rt_includes. APPEND cl_oo_classname_service=>get_classpool_name( lv_class_name ) TO rt_includes. APPEND cl_oo_classname_service=>get_ct_name( lv_class_name ) TO rt_includes. * skip the CS include, as it is sometimes generated on the fly instead of * when the methods are changed cl_oo_classname_service=>get_all_method_includes( EXPORTING clsname = lv_class_name RECEIVING result = lt_methods EXCEPTIONS class_not_existing = 1 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Class { lv_class_name } not existing| ). ENDIF. LOOP AT lt_methods ASSIGNING <ls_method>. APPEND <ls_method>-incname TO rt_includes. ENDLOOP. ENDMETHOD. METHOD zif_abapgit_oo_object_fnc~insert_text_pool. DATA: lv_cp TYPE program. lv_cp = cl_oo_classname_service=>get_classpool_name( iv_class_name ). INSERT TEXTPOOL lv_cp FROM it_text_pool LANGUAGE iv_language STATE iv_state. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from INSERT TEXTPOOL' ). ENDIF. zcl_abapgit_objects_activation=>add( iv_type = 'REPT' iv_name = lv_cp ). ENDMETHOD. METHOD zif_abapgit_oo_object_fnc~read_sotr. zcl_abapgit_sotr_handler=>read_sotr( iv_pgmid = 'LIMU' iv_object = 'CPUB' iv_obj_name = iv_object_name io_xml = ii_xml ). ENDMETHOD. METHOD zif_abapgit_oo_object_fnc~read_text_pool. DATA: lv_cp TYPE program. lv_cp = cl_oo_classname_service=>get_classpool_name( iv_class_name ). READ TEXTPOOL lv_cp INTO rt_text_pool LANGUAGE iv_language. "#EC CI_READ_REP ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 2238, 62, 4871, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 2238, 62, 8692, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 1976, 361, 62, 397, 499, 18300, 62, 2238, 62, 15252, 62, 69, 10782, 93, 17953, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 1976, 361, 62, 397, 499, 18300, 62, 2238, 62, 15252, 62, 69, 10782, 93, 17953, 62, 82, 313, 81, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 1976, 361, 62, 397, 499, 18300, 62, 2238, 62, 15252, 62, 69, 10782, 93, 33678, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 1976, 361, 62, 397, 499, 18300, 62, 2238, 62, 15252, 62, 69, 10782, 93, 8612, 378, 62, 17946, 874, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 1976, 361, 62, 397, 499, 18300, 62, 2238, 62, 15252, 62, 69, 10782, 93, 1136, 62, 4871, 62, 48310, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 1976, 361, 62, 397, 499, 18300, 62, 2238, 62, 15252, 62, 69, 10782, 93, 1136, 62, 42813, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 1976, 361, 62, 397, 499, 18300, 62, 2238, 62, 15252, 62, 69, 10782, 93, 28463, 62, 5239, 62, 7742, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 1976, 361, 62, 397, 499, 18300, 62, 2238, 62, 15252, 62, 69, 10782, 93, 961, 62, 82, 313, 81, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 1976, 361, 62, 397, 499, 18300, 62, 2238, 62, 15252, 62, 69, 10782, 93, 961, 62, 5239, 62, 7742, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 1976, 361, 62, 397, 499, 18300, 62, 2238, 62, 15252, 62, 69, 10782, 93, 8906, 48499, 1096, 62, 10459, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 1259, 62, 10641, 16, 41876, 269, 406, 49494, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 10641, 17, 41876, 269, 406, 49494, 362, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 4296, 62, 10459, 62, 9630, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 565, 82, 3672, 41876, 269, 43167, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 35836, 1008, 41876, 4526, 37, 5390, 537, 62, 2238, 62, 10459, 62, 35836, 1008, 62, 4871, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 4296, 62, 13116, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 23065, 220, 220, 220, 220, 220, 220, 41876, 1430, 76, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 10459, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 62, 11487, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 43162, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 7716, 62, 4871, 7742, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3672, 41876, 384, 420, 7278, 3672, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 4296, 62, 28961, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3672, 220, 220, 220, 220, 41876, 384, 420, 7278, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1069, 26205, 41876, 384, 78, 1069, 3455, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 10459, 220, 220, 41876, 374, 2032, 82, 454, 66, 316, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 5004, 62, 24396, 62, 17256, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 384, 420, 7278, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 24396, 220, 220, 220, 220, 220, 220, 220, 41876, 384, 420, 30094, 3672, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 23065, 8, 41876, 1430, 76, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 2315, 62, 35836, 1008, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 10459, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8841, 62 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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IV_READ_ONLY type ABAP_BOOL optional . methods ZIF_EUI_MANAGER~PBO redefinition . methods ZIF_EUI_MANAGER~PAI redefinition . protected section. private section. data MR_TEXT type ref to STRING . data MO_TEXTEDIT type ref to CL_GUI_TEXTEDIT . ENDCLASS. CLASS ZCL_EUI_MEMO IMPLEMENTATION. METHOD constructor. super->constructor( iv_read_only = iv_read_only ). mr_text = ir_text. ENDMETHOD. METHOD zif_eui_manager~pai. FIELD-SYMBOLS <lv_text> TYPE string. super->pai( EXPORTING iv_command = iv_command CHANGING cv_close = cv_close ). " Write data back CASE iv_command. WHEN zif_eui_manager=>mc_cmd-ok. " Destination ASSIGN mr_text->* TO <lv_text>. mo_textedit->get_textstream( IMPORTING text = <lv_text> ). cl_gui_cfw=>flush( ). MESSAGE 'Text copied back' TYPE 'S'. WHEN zif_eui_manager=>mc_cmd-cancel. MESSAGE 'Text editing is cancelled!' TYPE 'S' DISPLAY LIKE 'W'. ENDCASE. ENDMETHOD. METHOD zif_eui_manager~pbo. DATA lv_mode TYPE i. FIELD-SYMBOLS <lv_text> TYPE string. " Initialize 1 time IF io_container IS NOT INITIAL. " Text editor CREATE OBJECT mo_textedit EXPORTING parent = io_container EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno DISPLAY LIKE 'E' WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. RETURN. ENDIF. " Update data ASSIGN mr_text->* TO <lv_text>. mo_textedit->set_textstream( <lv_text> ). IF mv_read_only = abap_true. lv_mode = cl_gui_textedit=>true. ELSE. lv_mode = cl_gui_textedit=>false. ENDIF. mo_textedit->set_readonly_mode( lv_mode ). ENDIF. super->pbo( io_container = io_container iv_set_status = iv_set_status ). ENDMETHOD. ENDCLASS.
[ 4871, 1168, 5097, 62, 36, 10080, 62, 44, 3620, 46, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1168, 5097, 62, 36, 10080, 62, 10725, 4760, 1137, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 5050, 7102, 46126, 1581, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 4663, 62, 32541, 2099, 1006, 284, 19269, 2751, 198, 220, 220, 220, 220, 220, 5145, 3824, 62, 15675, 62, 1340, 11319, 2099, 9564, 2969, 62, 8202, 3535, 11902, 764, 628, 220, 5050, 1168, 5064, 62, 36, 10080, 62, 10725, 4760, 1137, 93, 47, 8202, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 1168, 5064, 62, 36, 10080, 62, 10725, 4760, 1137, 93, 4537, 40, 198, 220, 220, 220, 34087, 17750, 764, 198, 24326, 2665, 13, 198, 19734, 2665, 13, 628, 220, 1366, 17242, 62, 32541, 2099, 1006, 284, 19269, 2751, 764, 198, 220, 1366, 13070, 62, 32541, 24706, 2099, 1006, 284, 7852, 62, 40156, 62, 32541, 24706, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 36, 10080, 62, 44, 3620, 46, 30023, 2538, 10979, 6234, 13, 628, 198, 49273, 23772, 13, 198, 220, 2208, 3784, 41571, 273, 7, 21628, 62, 961, 62, 8807, 796, 21628, 62, 961, 62, 8807, 6739, 198, 220, 285, 81, 62, 5239, 220, 220, 220, 220, 220, 796, 4173, 62, 5239, 13, 198, 10619, 49273, 13, 628, 198, 49273, 1976, 361, 62, 68, 9019, 62, 37153, 93, 49712, 13, 198, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 1279, 6780, 62, 5239, 29, 41876, 4731, 13, 628, 220, 2208, 3784, 49712, 7, 198, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 21628, 62, 21812, 796, 21628, 62, 21812, 198, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 269, 85, 62, 19836, 220, 220, 796, 269, 85, 62, 19836, 6739, 628, 220, 366, 19430, 1366, 736, 198, 220, 42001, 21628, 62, 21812, 13, 198, 220, 220, 220, 42099, 1976, 361, 62, 68, 9019, 62, 37153, 14804, 23209, 62, 28758, 12, 482, 13, 198, 220, 220, 220, 220, 220, 366, 45657, 198, 220, 220, 220, 220, 220, 24994, 16284, 285, 81, 62, 5239, 3784, 9, 5390, 1279, 6780, 62, 5239, 28401, 628, 220, 220, 220, 220, 220, 6941, 62, 5239, 19312, 3784, 1136, 62, 5239, 5532, 7, 198, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 796, 1279, 6780, 62, 5239, 29, 6739, 198, 220, 220, 220, 220, 220, 537, 62, 48317, 62, 12993, 86, 14804, 25925, 7, 6739, 628, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 705, 8206, 18984, 736, 6, 41876, 705, 50, 4458, 628, 220, 220, 220, 42099, 1976, 361, 62, 68, 9019, 62, 37153, 14804, 23209, 62, 28758, 12, 66, 21130, 13, 198, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 705, 8206, 12857, 318, 16769, 13679, 41876, 705, 50, 6, 13954, 31519, 34178, 705, 54, 4458, 198, 220, 23578, 34, 11159, 13, 198, 10619, 49273, 13, 628, 198, 49273, 1976, 361, 62, 68, 9019, 62, 37153, 93, 79, 2127, 13, 198, 220, 42865, 300, 85, 62, 14171, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 13, 198, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 1279, 6780, 62, 5239, 29, 220, 220, 41876, 4731, 13, 628, 220, 366, 20768, 1096, 352, 640, 198, 220, 16876, 33245, 62, 34924, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 366, 8255, 5464, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 6941, 62, 5239, 19312, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2560, 796, 33245, 62, 34924, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 796, 352, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 4522, 827, 12, 19662, 312, 41876, 705, 50, 6, 36871, 13246, 827, 12, 19662, 3919, 13954, 31519, 34178, 705, 36, 6, 13315, 827, 12, 19662, 85, 16, 827, 12, 19662, 85, 17, 827, 12, 19662, 85, 18, 827, 12, 19662, 85, 19, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 366, 10133, 1366, 198, 220, 220, 220, 24994, 16284, 285, 81, 62, 5239, 3784, 9, 5390, 1279, 6780, 62, 5239, 28401, 198, 220, 220, 220, 6941, 62, 5239, 19312, 3784, 2617, 62, 5239, 5532, 7, 1279, 6780, 62, 5239, 29, 6739, 198, 220, 220, 220, 16876, 285, 85, 62, 961, 62, 8807, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 14171, 796, 537, 62, 48317, 62, 5239, 19312, 14804, 7942, 13, 198, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 14171, 796, 537, 62, 48317, 62, 5239, 19312, 14804, 9562, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 6941, 62, 5239, 19312, 3784, 2617, 62, 961, 8807, 62, 14171, 7, 300, 85, 62, 14171, 6739, 198, 220, 23578, 5064, 13, 628, 220, 2208, 3784, 79, 2127, 7, 198, 220, 220, 33245, 62, 34924, 220, 796, 33245, 62, 34924, 198, 220, 220, 21628, 62, 2617, 62, 13376, 796, 21628, 62, 2617, 62, 13376, 220, 6739, 198, 10619, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_popups DEFINITION PUBLIC FINAL CREATE PRIVATE GLOBAL FRIENDS zcl_abapgit_ui_factory. PUBLIC SECTION. INTERFACES: zif_abapgit_popups. ALIASES: popup_package_export FOR zif_abapgit_popups~popup_package_export, popup_folder_logic FOR zif_abapgit_popups~popup_folder_logic, popup_object FOR zif_abapgit_popups~popup_object, create_branch_popup FOR zif_abapgit_popups~create_branch_popup, repo_new_offline FOR zif_abapgit_popups~repo_new_offline, branch_list_popup FOR zif_abapgit_popups~branch_list_popup, repo_popup FOR zif_abapgit_popups~repo_popup, popup_to_confirm FOR zif_abapgit_popups~popup_to_confirm, popup_to_inform FOR zif_abapgit_popups~popup_to_inform, popup_to_create_package FOR zif_abapgit_popups~popup_to_create_package, popup_to_create_transp_branch FOR zif_abapgit_popups~popup_to_create_transp_branch, popup_to_select_transports FOR zif_abapgit_popups~popup_to_select_transports, popup_to_select_from_list FOR zif_abapgit_popups~popup_to_select_from_list, branch_popup_callback FOR zif_abapgit_popups~branch_popup_callback, package_popup_callback FOR zif_abapgit_popups~package_popup_callback, popup_transport_request FOR zif_abapgit_popups~popup_transport_request, popup_proxy_bypass FOR zif_abapgit_popups~popup_proxy_bypass. PROTECTED SECTION. PRIVATE SECTION. TYPES: ty_sval_tt TYPE STANDARD TABLE OF sval WITH DEFAULT KEY. CONSTANTS c_fieldname_selected TYPE lvc_fname VALUE `SELECTED` ##NO_TEXT. CONSTANTS c_answer_cancel TYPE char1 VALUE 'A' ##NO_TEXT. DATA mo_select_list_popup TYPE REF TO cl_salv_table . DATA mr_table TYPE REF TO data . DATA mv_cancel TYPE abap_bool VALUE abap_false. DATA mo_table_descr TYPE REF TO cl_abap_tabledescr . METHODS add_field IMPORTING !iv_tabname TYPE sval-tabname !iv_fieldname TYPE sval-fieldname !iv_fieldtext TYPE sval-fieldtext !iv_value TYPE clike DEFAULT '' !iv_field_attr TYPE sval-field_attr DEFAULT '' !iv_obligatory TYPE spo_obl OPTIONAL CHANGING !ct_fields TYPE ty_sval_tt . METHODS create_new_table IMPORTING !it_list TYPE STANDARD TABLE . METHODS get_selected_rows EXPORTING !et_list TYPE INDEX TABLE . METHODS on_select_list_link_click FOR EVENT link_click OF cl_salv_events_table IMPORTING !row !column . METHODS on_select_list_function_click FOR EVENT added_function OF cl_salv_events_table IMPORTING !e_salv_function . METHODS on_double_click FOR EVENT double_click OF cl_salv_events_table IMPORTING !row !column . METHODS extract_field_values IMPORTING it_fields TYPE ty_sval_tt EXPORTING ev_url TYPE abaptxt255-line ev_package TYPE tdevc-devclass ev_branch TYPE textl-line ev_display_name TYPE trm255-text ev_folder_logic TYPE string ev_ign_subpkg TYPE abap_bool. TYPES: ty_lt_fields TYPE STANDARD TABLE OF sval WITH DEFAULT KEY. METHODS _popup_3_get_values IMPORTING iv_popup_title TYPE string iv_no_value_check TYPE abap_bool DEFAULT abap_false EXPORTING ev_value_1 TYPE spo_value ev_value_2 TYPE spo_value ev_value_3 TYPE spo_value CHANGING ct_fields TYPE ty_lt_fields RAISING zcx_abapgit_exception. METHODS validate_folder_logic IMPORTING iv_folder_logic TYPE string RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_popups IMPLEMENTATION. METHOD add_field. FIELD-SYMBOLS: <ls_field> LIKE LINE OF ct_fields. APPEND INITIAL LINE TO ct_fields ASSIGNING <ls_field>. <ls_field>-tabname = iv_tabname. <ls_field>-fieldname = iv_fieldname. <ls_field>-fieldtext = iv_fieldtext. <ls_field>-value = iv_value. <ls_field>-field_attr = iv_field_attr. <ls_field>-field_obl = iv_obligatory. ENDMETHOD. METHOD create_new_table. " create and populate a table on the fly derived from " it_data with a select column DATA: lr_struct TYPE REF TO data, lt_components TYPE cl_abap_structdescr=>component_table, lo_struct_descr TYPE REF TO cl_abap_structdescr, lo_struct_descr2 TYPE REF TO cl_abap_structdescr. FIELD-SYMBOLS: <lt_table> TYPE STANDARD TABLE, <ls_component> TYPE abap_componentdescr, <lg_line> TYPE data, <lg_data> TYPE any. mo_table_descr ?= cl_abap_tabledescr=>describe_by_data( it_list ). lo_struct_descr ?= mo_table_descr->get_table_line_type( ). lt_components = lo_struct_descr->get_components( ). INSERT INITIAL LINE INTO lt_components ASSIGNING <ls_component> INDEX 1. ASSERT sy-subrc = 0. <ls_component>-name = c_fieldname_selected. <ls_component>-type ?= cl_abap_datadescr=>describe_by_name( 'FLAG' ). lo_struct_descr2 = cl_abap_structdescr=>create( lt_components ). mo_table_descr = cl_abap_tabledescr=>create( lo_struct_descr2 ). CREATE DATA mr_table TYPE HANDLE mo_table_descr. ASSIGN mr_table->* TO <lt_table>. ASSERT sy-subrc = 0. CREATE DATA lr_struct TYPE HANDLE lo_struct_descr2. ASSIGN lr_struct->* TO <lg_line>. ASSERT sy-subrc = 0. LOOP AT it_list ASSIGNING <lg_data>. CLEAR <lg_line>. MOVE-CORRESPONDING <lg_data> TO <lg_line>. INSERT <lg_line> INTO TABLE <lt_table>. ENDLOOP. ENDMETHOD. METHOD extract_field_values. FIELD-SYMBOLS: <ls_field> LIKE LINE OF it_fields. CLEAR: ev_url, ev_package, ev_branch, ev_display_name, ev_folder_logic, ev_ign_subpkg. READ TABLE it_fields INDEX 1 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_url = <ls_field>-value. READ TABLE it_fields INDEX 2 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_package = <ls_field>-value. TRANSLATE ev_package TO UPPER CASE. READ TABLE it_fields INDEX 3 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_branch = <ls_field>-value. READ TABLE it_fields INDEX 4 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_display_name = <ls_field>-value. READ TABLE it_fields INDEX 5 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_folder_logic = <ls_field>-value. TRANSLATE ev_folder_logic TO UPPER CASE. READ TABLE it_fields INDEX 6 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_ign_subpkg = <ls_field>-value. TRANSLATE ev_ign_subpkg TO UPPER CASE. ENDMETHOD. METHOD get_selected_rows. DATA: lv_condition TYPE string, lr_exporting TYPE REF TO data. FIELD-SYMBOLS: <lg_exporting> TYPE any, <lt_table> TYPE STANDARD TABLE, <lg_line> TYPE any, <lv_selected> TYPE abap_bool, <lv_selected_row> TYPE LINE OF salv_t_row. DATA: lo_selections TYPE REF TO cl_salv_selections, lt_selected_rows TYPE salv_t_row. ASSIGN mr_table->* TO <lt_table>. ASSERT sy-subrc = 0. lo_selections = mo_select_list_popup->get_selections( ). IF lo_selections->get_selection_mode( ) = if_salv_c_selection_mode=>single. lt_selected_rows = lo_selections->get_selected_rows( ). LOOP AT lt_selected_rows ASSIGNING <lv_selected_row>. READ TABLE <lt_table> ASSIGNING <lg_line> INDEX <lv_selected_row>. CHECK <lv_selected_row> IS ASSIGNED. ASSIGN COMPONENT c_fieldname_selected OF STRUCTURE <lg_line> TO <lv_selected>. CHECK <lv_selected> IS ASSIGNED. <lv_selected> = abap_true. ENDLOOP. ENDIF. lv_condition = |{ c_fieldname_selected } = ABAP_TRUE|. CREATE DATA lr_exporting LIKE LINE OF et_list. ASSIGN lr_exporting->* TO <lg_exporting>. LOOP AT <lt_table> ASSIGNING <lg_line> WHERE (lv_condition). CLEAR <lg_exporting>. MOVE-CORRESPONDING <lg_line> TO <lg_exporting>. APPEND <lg_exporting> TO et_list. ENDLOOP. ENDMETHOD. METHOD on_double_click. DATA: lo_selections TYPE REF TO cl_salv_selections. lo_selections = mo_select_list_popup->get_selections( ). IF lo_selections->get_selection_mode( ) = if_salv_c_selection_mode=>single. mo_select_list_popup->close_screen( ). ENDIF. ENDMETHOD. METHOD on_select_list_function_click. FIELD-SYMBOLS: <lt_table> TYPE STANDARD TABLE, <lg_line> TYPE any, <lv_selected> TYPE abap_bool. ASSIGN mr_table->* TO <lt_table>. ASSERT sy-subrc = 0. CASE e_salv_function. WHEN 'O.K.'. mv_cancel = abap_false. mo_select_list_popup->close_screen( ). WHEN 'ABR'. "Canceled: clear list to overwrite nothing CLEAR <lt_table>. mv_cancel = abap_true. mo_select_list_popup->close_screen( ). WHEN 'SALL'. LOOP AT <lt_table> ASSIGNING <lg_line>. ASSIGN COMPONENT c_fieldname_selected OF STRUCTURE <lg_line> TO <lv_selected>. ASSERT sy-subrc = 0. <lv_selected> = abap_true. ENDLOOP. mo_select_list_popup->refresh( ). WHEN 'DSEL'. LOOP AT <lt_table> ASSIGNING <lg_line>. ASSIGN COMPONENT c_fieldname_selected OF STRUCTURE <lg_line> TO <lv_selected>. ASSERT sy-subrc = 0. <lv_selected> = abap_false. ENDLOOP. mo_select_list_popup->refresh( ). WHEN OTHERS. CLEAR <lt_table>. mo_select_list_popup->close_screen( ). ENDCASE. ENDMETHOD. METHOD on_select_list_link_click. FIELD-SYMBOLS: <lt_table> TYPE STANDARD TABLE, <lg_line> TYPE any, <lv_selected> TYPE abap_bool. ASSIGN mr_table->* TO <lt_table>. ASSERT sy-subrc = 0. READ TABLE <lt_table> ASSIGNING <lg_line> INDEX row. IF sy-subrc = 0. ASSIGN COMPONENT c_fieldname_selected OF STRUCTURE <lg_line> TO <lv_selected>. ASSERT sy-subrc = 0. IF <lv_selected> = abap_true. <lv_selected> = abap_false. ELSE. <lv_selected> = abap_true. ENDIF. ENDIF. mo_select_list_popup->refresh( ). ENDMETHOD. METHOD validate_folder_logic. IF iv_folder_logic <> zif_abapgit_dot_abapgit=>c_folder_logic-prefix AND iv_folder_logic <> zif_abapgit_dot_abapgit=>c_folder_logic-full. zcx_abapgit_exception=>raise( |Invalid folder logic { iv_folder_logic }. | && |Choose either { zif_abapgit_dot_abapgit=>c_folder_logic-prefix } | && |or { zif_abapgit_dot_abapgit=>c_folder_logic-full } | ). ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~branch_list_popup. DATA: lo_branches TYPE REF TO zcl_abapgit_git_branch_list, lt_branches TYPE zif_abapgit_definitions=>ty_git_branch_list_tt, lv_answer TYPE c LENGTH 1, lv_default TYPE i, lv_head_suffix TYPE string, lv_head_symref TYPE string, lt_selection TYPE TABLE OF spopli. FIELD-SYMBOLS: <ls_sel> LIKE LINE OF lt_selection, <ls_branch> LIKE LINE OF lt_branches. lo_branches = zcl_abapgit_git_transport=>branches( iv_url ). lt_branches = lo_branches->get_branches_only( ). lv_head_suffix = | ({ zif_abapgit_definitions=>c_head_name })|. lv_head_symref = lo_branches->get_head_symref( ). IF iv_hide_branch IS NOT INITIAL. DELETE lt_branches WHERE name = iv_hide_branch. ENDIF. IF iv_hide_head IS NOT INITIAL. DELETE lt_branches WHERE name = zif_abapgit_definitions=>c_head_name OR is_head = abap_true. ENDIF. IF lt_branches IS INITIAL. zcx_abapgit_exception=>raise( 'No branch to select' ). ENDIF. LOOP AT lt_branches ASSIGNING <ls_branch>. CHECK <ls_branch>-name IS NOT INITIAL. " To ensure some below ifs IF <ls_branch>-is_head = abap_true. IF <ls_branch>-name = zif_abapgit_definitions=>c_head_name. " HEAD IF <ls_branch>-name <> lv_head_symref AND lv_head_symref IS NOT INITIAL. " HEAD but other HEAD symref exists - ignore CONTINUE. ELSE. INSERT INITIAL LINE INTO lt_selection INDEX 1 ASSIGNING <ls_sel>. <ls_sel>-varoption = <ls_branch>-name. ENDIF. ELSE. INSERT INITIAL LINE INTO lt_selection INDEX 1 ASSIGNING <ls_sel>. <ls_sel>-varoption = <ls_branch>-display_name && lv_head_suffix. ENDIF. IF lv_default > 0. " Shift down default if set lv_default = lv_default + 1. ENDIF. ELSE. APPEND INITIAL LINE TO lt_selection ASSIGNING <ls_sel>. <ls_sel>-varoption = <ls_branch>-display_name. ENDIF. IF <ls_branch>-name = iv_default_branch. IF <ls_branch>-is_head = abap_true. lv_default = 1. ELSE. lv_default = sy-tabix. ENDIF. ENDIF. ENDLOOP. IF iv_show_new_option = abap_true. APPEND INITIAL LINE TO lt_selection ASSIGNING <ls_sel>. <ls_sel>-varoption = zif_abapgit_popups=>c_new_branch_label. ENDIF. CALL FUNCTION 'POPUP_TO_DECIDE_LIST' EXPORTING textline1 = 'Select branch' titel = 'Select branch' start_col = 30 start_row = 5 cursorline = lv_default IMPORTING answer = lv_answer TABLES t_spopli = lt_selection EXCEPTIONS OTHERS = 1. "#EC NOTEXT IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from POPUP_TO_DECIDE_LIST' ). ENDIF. IF lv_answer = c_answer_cancel. RETURN. ENDIF. READ TABLE lt_selection ASSIGNING <ls_sel> WITH KEY selflag = abap_true. ASSERT sy-subrc = 0. IF iv_show_new_option = abap_true AND <ls_sel>-varoption = zif_abapgit_popups=>c_new_branch_label. rs_branch-name = zif_abapgit_popups=>c_new_branch_label. ELSE. REPLACE FIRST OCCURRENCE OF lv_head_suffix IN <ls_sel>-varoption WITH ''. READ TABLE lt_branches WITH KEY display_name = <ls_sel>-varoption ASSIGNING <ls_branch>. IF sy-subrc <> 0. * branch name longer than 65 characters LOOP AT lt_branches ASSIGNING <ls_branch> WHERE display_name CS <ls_sel>-varoption. EXIT. " current loop ENDLOOP. ENDIF. ASSERT <ls_branch> IS ASSIGNED. rs_branch = lo_branches->find_by_name( <ls_branch>-name ). ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~branch_popup_callback. DATA: lv_url TYPE string, ls_package_data TYPE scompkdtln, ls_branch TYPE zif_abapgit_definitions=>ty_git_branch, lv_create TYPE abap_bool, lv_text TYPE string. FIELD-SYMBOLS: <ls_furl> LIKE LINE OF ct_fields, <ls_fbranch> LIKE LINE OF ct_fields, <ls_fpackage> LIKE LINE OF ct_fields. CLEAR cs_error. IF iv_code = 'COD1'. cv_show_popup = abap_true. READ TABLE ct_fields ASSIGNING <ls_furl> WITH KEY tabname = 'ABAPTXT255'. IF sy-subrc <> 0 OR <ls_furl>-value IS INITIAL. MESSAGE 'Fill URL' TYPE 'S' DISPLAY LIKE 'E'. "#EC NOTEXT RETURN. ENDIF. lv_url = <ls_furl>-value. ls_branch = branch_list_popup( lv_url ). IF ls_branch IS INITIAL. RETURN. ENDIF. READ TABLE ct_fields ASSIGNING <ls_fbranch> WITH KEY tabname = 'TEXTL'. ASSERT sy-subrc = 0. <ls_fbranch>-value = ls_branch-name. ELSEIF iv_code = 'COD2'. cv_show_popup = abap_true. READ TABLE ct_fields ASSIGNING <ls_fpackage> WITH KEY fieldname = 'DEVCLASS'. ASSERT sy-subrc = 0. ls_package_data-devclass = <ls_fpackage>-value. IF zcl_abapgit_factory=>get_sap_package( ls_package_data-devclass )->exists( ) = abap_true. lv_text = |Package { ls_package_data-devclass } already exists|. MESSAGE lv_text TYPE 'I' DISPLAY LIKE 'E'. RETURN. ENDIF. popup_to_create_package( IMPORTING es_package_data = ls_package_data ev_create = lv_create ). IF lv_create = abap_false. RETURN. ENDIF. zcl_abapgit_factory=>get_sap_package( ls_package_data-devclass )->create( ls_package_data ). COMMIT WORK. <ls_fpackage>-value = ls_package_data-devclass. ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~create_branch_popup. DATA: lt_fields TYPE TABLE OF sval. DATA: lv_name TYPE spo_value. CLEAR: ev_name, ev_cancel. add_field( EXPORTING iv_tabname = 'TEXTL' iv_fieldname = 'LINE' iv_fieldtext = 'Name' iv_value = 'new-branch-name' CHANGING ct_fields = lt_fields ). TRY. _popup_3_get_values( EXPORTING iv_popup_title = 'Create branch' "#EC NOTEXT IMPORTING ev_value_1 = lv_name CHANGING ct_fields = lt_fields ). ev_name = zcl_abapgit_git_branch_list=>complete_heads_branch_name( zcl_abapgit_git_branch_list=>normalize_branch_name( lv_name ) ). CATCH zcx_abapgit_cancel. ev_cancel = abap_true. ENDTRY. ENDMETHOD. METHOD zif_abapgit_popups~package_popup_callback. DATA: ls_package_data TYPE scompkdtln, lv_create TYPE abap_bool. FIELD-SYMBOLS: <ls_fpackage> LIKE LINE OF ct_fields. CLEAR cs_error. IF iv_code = 'COD1'. cv_show_popup = abap_true. READ TABLE ct_fields ASSIGNING <ls_fpackage> WITH KEY fieldname = 'DEVCLASS'. ASSERT sy-subrc = 0. ls_package_data-devclass = <ls_fpackage>-value. popup_to_create_package( IMPORTING es_package_data = ls_package_data ev_create = lv_create ). IF lv_create = abap_false. RETURN. ENDIF. zcl_abapgit_factory=>get_sap_package( ls_package_data-devclass )->create( ls_package_data ). COMMIT WORK. <ls_fpackage>-value = ls_package_data-devclass. ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~popup_folder_logic. DATA: lt_fields TYPE TABLE OF sval. DATA: lv_folder_logic TYPE spo_value. CLEAR: rv_folder_logic. add_field( EXPORTING iv_tabname = 'TDEVC' iv_fieldname = 'INTSYS' iv_fieldtext = 'Folder logic' iv_value = 'PREFIX' CHANGING ct_fields = lt_fields ). TRY. _popup_3_get_values( EXPORTING iv_popup_title = 'Export package' "#EC NOTEXT iv_no_value_check = abap_true IMPORTING ev_value_1 = lv_folder_logic CHANGING ct_fields = lt_fields ). rv_folder_logic = to_upper( lv_folder_logic ). CATCH zcx_abapgit_cancel. ENDTRY. ENDMETHOD. METHOD zif_abapgit_popups~popup_object. DATA: lt_fields TYPE TABLE OF sval. DATA: lv_object_type TYPE spo_value. DATA: lv_object_name TYPE spo_value. CLEAR: rs_tadir-object, rs_tadir-obj_name. add_field( EXPORTING iv_tabname = 'TADIR' iv_fieldname = 'OBJECT' iv_fieldtext = 'Type' CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TADIR' iv_fieldname = 'OBJ_NAME' iv_fieldtext = 'Name' CHANGING ct_fields = lt_fields ). _popup_3_get_values( EXPORTING iv_popup_title = 'Object' "#EC NOTEXT iv_no_value_check = abap_true IMPORTING ev_value_1 = lv_object_type ev_value_2 = lv_object_name CHANGING ct_fields = lt_fields ). rs_tadir = zcl_abapgit_factory=>get_tadir( )->read_single( iv_object = to_upper( lv_object_type ) iv_obj_name = to_upper( lv_object_name ) ). ENDMETHOD. METHOD zif_abapgit_popups~popup_package_export. DATA: lt_fields TYPE TABLE OF sval. DATA: lv_package TYPE spo_value. DATA: lv_folder_logic TYPE spo_value. DATA: lv_serialize_master_lang_only TYPE spo_value. add_field( EXPORTING iv_tabname = 'TDEVC' iv_fieldname = 'DEVCLASS' iv_fieldtext = 'Package' CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TDEVC' iv_fieldname = 'INTSYS' iv_fieldtext = 'Folder logic' iv_value = 'PREFIX' CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TVDIR' iv_fieldname = 'FLAG' iv_fieldtext = 'Master lang only' CHANGING ct_fields = lt_fields ). TRY. _popup_3_get_values( EXPORTING iv_popup_title = 'Export package' "#EC NOTEXT iv_no_value_check = abap_true IMPORTING ev_value_1 = lv_package ev_value_2 = lv_folder_logic ev_value_3 = lv_serialize_master_lang_only CHANGING ct_fields = lt_fields ). ev_package = to_upper( lv_package ). ev_folder_logic = to_upper( lv_folder_logic ). ev_serialize_master_lang_only = boolc( lv_serialize_master_lang_only IS NOT INITIAL ). CATCH zcx_abapgit_cancel. ENDTRY. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_confirm. CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = iv_titlebar text_question = iv_text_question text_button_1 = iv_text_button_1 icon_button_1 = iv_icon_button_1 text_button_2 = iv_text_button_2 icon_button_2 = iv_icon_button_2 default_button = iv_default_button display_cancel_button = iv_display_cancel_button IMPORTING answer = rv_answer EXCEPTIONS text_not_found = 1 OTHERS = 2. "#EC NOTEXT IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from POPUP_TO_CONFIRM' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_create_package. CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'PB_POPUP_PACKAGE_CREATE' EXCEPTIONS function_not_exist = 1 OTHERS = 2. IF sy-subrc = 1. * looks like the function module used does not exist on all * versions since 702, so show an error zcx_abapgit_exception=>raise( 'Your system does not support automatic creation of packages.' && 'Please, create the package manually.' ). ENDIF. CALL FUNCTION 'PB_POPUP_PACKAGE_CREATE' CHANGING p_object_data = es_package_data EXCEPTIONS action_cancelled = 1. IF sy-subrc = 0. ev_create = abap_true. ELSE. ev_create = abap_false. ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_create_transp_branch. DATA: lt_fields TYPE TABLE OF sval, lv_transports_as_text TYPE string, lv_desc_as_text TYPE string, ls_transport_header LIKE LINE OF it_transport_headers. DATA: lv_branch_name TYPE spo_value. DATA: lv_commit_text TYPE spo_value. CLEAR: rs_transport_branch-branch_name, rs_transport_branch-commit_text. " If we only have one transport selected set branch name to Transport " name and commit description to transport description. IF lines( it_transport_headers ) = 1. READ TABLE it_transport_headers INDEX 1 INTO ls_transport_header. lv_transports_as_text = ls_transport_header-trkorr. SELECT SINGLE as4text FROM e07t INTO lv_desc_as_text WHERE trkorr = ls_transport_header-trkorr AND langu = sy-langu. ELSE. " Else set branch name and commit message to 'Transport(s)_TRXXXXXX_TRXXXXX' lv_transports_as_text = 'Transport(s)'. LOOP AT it_transport_headers INTO ls_transport_header. CONCATENATE lv_transports_as_text '_' ls_transport_header-trkorr INTO lv_transports_as_text. ENDLOOP. lv_desc_as_text = lv_transports_as_text. ENDIF. add_field( EXPORTING iv_tabname = 'TEXTL' iv_fieldname = 'LINE' iv_fieldtext = 'Branch name' iv_value = lv_transports_as_text CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'ABAPTXT255' iv_fieldname = 'LINE' iv_fieldtext = 'Commit text' iv_value = lv_desc_as_text CHANGING ct_fields = lt_fields ). _popup_3_get_values( EXPORTING iv_popup_title = 'Transport to new Branch' "#EC NOTEXT IMPORTING ev_value_1 = lv_branch_name ev_value_2 = lv_commit_text CHANGING ct_fields = lt_fields ). rs_transport_branch-branch_name = lv_branch_name. rs_transport_branch-commit_text = lv_commit_text. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_inform. DATA: lv_line1 TYPE char70, lv_line2 TYPE char70. lv_line1 = iv_text_message. IF strlen( iv_text_message ) > 70. lv_line2 = iv_text_message+70. ENDIF. CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = iv_titlebar txt1 = lv_line1 txt2 = lv_line2. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_select_from_list. DATA: lv_pfstatus TYPE sypfkey, lo_events TYPE REF TO cl_salv_events_table, lo_functions TYPE REF TO cl_salv_functions_list, lo_columns TYPE REF TO cl_salv_columns_table, lt_columns TYPE salv_t_column_ref, ls_column TYPE salv_s_column_ref, lo_column TYPE REF TO cl_salv_column_list, lo_table_header TYPE REF TO cl_salv_form_text. FIELD-SYMBOLS: <lt_table> TYPE STANDARD TABLE, <ls_column_to_display> TYPE zif_abapgit_definitions=>ty_alv_column. CLEAR: et_list. create_new_table( it_list ). ASSIGN mr_table->* TO <lt_table>. ASSERT sy-subrc = 0. TRY. cl_salv_table=>factory( IMPORTING r_salv_table = mo_select_list_popup CHANGING t_table = <lt_table> ). CASE iv_selection_mode. WHEN if_salv_c_selection_mode=>single. lv_pfstatus = '110'. WHEN OTHERS. lv_pfstatus = '102'. ENDCASE. mo_select_list_popup->set_screen_status( pfstatus = lv_pfstatus report = 'SAPMSVIM' ). mo_select_list_popup->set_screen_popup( start_column = iv_start_column end_column = iv_end_column start_line = iv_start_line end_line = iv_end_line ). lo_events = mo_select_list_popup->get_event( ). SET HANDLER on_select_list_link_click FOR lo_events. SET HANDLER on_select_list_function_click FOR lo_events. SET HANDLER on_double_click FOR lo_events. IF iv_title CN ' _0'. mo_select_list_popup->get_display_settings( )->set_list_header( iv_title ). ENDIF. IF iv_header_text CN ' _0'. CREATE OBJECT lo_table_header EXPORTING text = iv_header_text. mo_select_list_popup->set_top_of_list( lo_table_header ). ENDIF. mo_select_list_popup->get_display_settings( )->set_striped_pattern( iv_striped_pattern ). mo_select_list_popup->get_selections( )->set_selection_mode( iv_selection_mode ). lo_columns = mo_select_list_popup->get_columns( ). lt_columns = lo_columns->get( ). lo_columns->set_optimize( iv_optimize_col_width ). LOOP AT lt_columns INTO ls_column. lo_column ?= ls_column-r_column. IF iv_selection_mode = if_salv_c_selection_mode=>multiple AND ls_column-columnname = c_fieldname_selected. lo_column->set_cell_type( if_salv_c_cell_type=>checkbox_hotspot ). lo_column->set_output_length( 20 ). lo_column->set_short_text( |{ iv_select_column_text }| ). lo_column->set_medium_text( |{ iv_select_column_text }| ). lo_column->set_long_text( |{ iv_select_column_text }| ). CONTINUE. ENDIF. READ TABLE it_columns_to_display ASSIGNING <ls_column_to_display> WITH KEY name = ls_column-columnname. CASE sy-subrc. WHEN 0. IF <ls_column_to_display>-text CN ' _0'. lo_column->set_short_text( |{ <ls_column_to_display>-text }| ). lo_column->set_medium_text( |{ <ls_column_to_display>-text }| ). lo_column->set_long_text( |{ <ls_column_to_display>-text }| ). ENDIF. IF <ls_column_to_display>-length > 0. lo_column->set_output_length( <ls_column_to_display>-length ). ENDIF. WHEN OTHERS. " Hide column lo_column->set_technical( abap_true ). ENDCASE. ENDLOOP. mo_select_list_popup->display( ). CATCH cx_salv_msg. zcx_abapgit_exception=>raise( 'Error from POPUP_TO_SELECT_FROM_LIST' ). ENDTRY. IF mv_cancel = abap_true. mv_cancel = abap_false. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ENDIF. get_selected_rows( IMPORTING et_list = et_list ). CLEAR: mo_select_list_popup, mr_table, mo_table_descr. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_select_transports. * todo, method to be renamed, it only returns one transport DATA: lv_trkorr TYPE e070-trkorr, ls_trkorr LIKE LINE OF rt_trkorr. CALL FUNCTION 'TR_F4_REQUESTS' IMPORTING ev_selected_request = lv_trkorr. IF NOT lv_trkorr IS INITIAL. ls_trkorr-trkorr = lv_trkorr. APPEND ls_trkorr TO rt_trkorr. ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~popup_transport_request. DATA: lt_e071 TYPE STANDARD TABLE OF e071, lt_e071k TYPE STANDARD TABLE OF e071k. CALL FUNCTION 'TRINT_ORDER_CHOICE' EXPORTING wi_order_type = is_transport_type-request wi_task_type = is_transport_type-task IMPORTING we_order = rv_transport TABLES wt_e071 = lt_e071 wt_e071k = lt_e071k EXCEPTIONS no_correction_selected = 1 display_mode = 2 object_append_error = 3 recursive_call = 4 wrong_order_type = 5 OTHERS = 6. IF sy-subrc = 1. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ELSEIF sy-subrc > 1. zcx_abapgit_exception=>raise( |Error from TRINT_ORDER_CHOICE { sy-subrc }| ). ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~repo_new_offline. DATA: lv_returncode TYPE c, lt_fields TYPE TABLE OF sval, lv_icon_ok TYPE icon-name, lv_button1 TYPE svalbutton-buttontext, lv_icon1 TYPE icon-name, lv_finished TYPE abap_bool, lx_error TYPE REF TO zcx_abapgit_exception. FIELD-SYMBOLS: <ls_field> LIKE LINE OF lt_fields. add_field( EXPORTING iv_tabname = 'ABAPTXT255' iv_fieldname = 'LINE' iv_fieldtext = 'Name' iv_obligatory = abap_true CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TDEVC' iv_fieldname = 'DEVCLASS' iv_fieldtext = 'Package' iv_obligatory = abap_true CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'ZABAPGIT' iv_fieldname = 'VALUE' iv_fieldtext = 'Folder logic' iv_obligatory = abap_true iv_value = zif_abapgit_dot_abapgit=>c_folder_logic-prefix CHANGING ct_fields = lt_fields ). WHILE lv_finished = abap_false. lv_icon_ok = icon_okay. lv_button1 = 'Create package' ##NO_TEXT. lv_icon1 = icon_folder. CALL FUNCTION 'POPUP_GET_VALUES_USER_BUTTONS' EXPORTING popup_title = 'New Offline Project' programname = sy-cprog formname = 'PACKAGE_POPUP' ok_pushbuttontext = 'OK' icon_ok_push = lv_icon_ok first_pushbutton = lv_button1 icon_button_1 = lv_icon1 second_pushbutton = '' icon_button_2 = '' IMPORTING returncode = lv_returncode TABLES fields = lt_fields EXCEPTIONS error_in_fields = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from POPUP_GET_VALUES' ). ENDIF. IF lv_returncode = c_answer_cancel. rs_popup-cancel = abap_true. RETURN. ENDIF. READ TABLE lt_fields INDEX 1 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. rs_popup-url = <ls_field>-value. READ TABLE lt_fields INDEX 2 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. TRANSLATE <ls_field>-value TO UPPER CASE. rs_popup-package = <ls_field>-value. READ TABLE lt_fields INDEX 3 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. TRANSLATE <ls_field>-value TO UPPER CASE. rs_popup-folder_logic = <ls_field>-value. lv_finished = abap_true. TRY. zcl_abapgit_repo_srv=>get_instance( )->validate_package( rs_popup-package ). validate_folder_logic( rs_popup-folder_logic ). CATCH zcx_abapgit_exception INTO lx_error. " in case of validation errors we display the popup again MESSAGE lx_error TYPE 'S' DISPLAY LIKE 'E'. CLEAR lv_finished. ENDTRY. ENDWHILE. ENDMETHOD. METHOD zif_abapgit_popups~repo_popup. DATA: lv_returncode TYPE c, lv_icon_ok TYPE icon-name, lv_icon_br TYPE icon-name, lt_fields TYPE TABLE OF sval, lv_uattr TYPE spo_fattr, lv_pattr TYPE spo_fattr, lv_button2 TYPE svalbutton-buttontext, lv_icon2 TYPE icon-name, lv_package TYPE tdevc-devclass, lv_url TYPE abaptxt255-line, lv_branch TYPE textl-line, lv_display_name TYPE trm255-text, lv_folder_logic TYPE string, lv_ign_subpkg TYPE abap_bool, lv_finished TYPE abap_bool, lx_error TYPE REF TO zcx_abapgit_exception. IF iv_freeze_url = abap_true. lv_uattr = '05'. ENDIF. IF iv_freeze_package = abap_true. lv_pattr = '05'. ENDIF. IF iv_package IS INITIAL. " Empty package -> can be created lv_button2 = 'Create package' ##NO_TEXT. lv_icon2 = icon_folder. ENDIF. lv_display_name = iv_display_name. lv_package = iv_package. lv_url = iv_url. lv_branch = iv_branch. WHILE lv_finished = abap_false. CLEAR: lt_fields. add_field( EXPORTING iv_tabname = 'ABAPTXT255' iv_fieldname = 'LINE' iv_fieldtext = 'Git clone URL' iv_value = lv_url iv_field_attr = lv_uattr CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TDEVC' iv_fieldname = 'DEVCLASS' iv_fieldtext = 'Package' iv_value = lv_package iv_field_attr = lv_pattr CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TEXTL' iv_fieldname = 'LINE' iv_fieldtext = 'Branch' iv_value = lv_branch iv_field_attr = '05' CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TRM255' iv_fieldname = 'TEXT' iv_fieldtext = 'Display name (opt.)' iv_value = lv_display_name CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TADIR' iv_fieldname = 'AUTHOR' iv_fieldtext = 'Folder logic' iv_obligatory = abap_true iv_value = zif_abapgit_dot_abapgit=>c_folder_logic-prefix CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TDEVC' iv_fieldname = 'IS_ENHANCEABLE' iv_fieldtext = 'Ignore subpackages' iv_value = abap_false CHANGING ct_fields = lt_fields ). lv_icon_ok = icon_okay. lv_icon_br = icon_workflow_fork. CALL FUNCTION 'POPUP_GET_VALUES_USER_BUTTONS' EXPORTING popup_title = iv_title programname = sy-cprog formname = 'BRANCH_POPUP' ok_pushbuttontext = 'OK' icon_ok_push = lv_icon_ok first_pushbutton = 'Select branch' icon_button_1 = lv_icon_br second_pushbutton = lv_button2 icon_button_2 = lv_icon2 IMPORTING returncode = lv_returncode TABLES fields = lt_fields EXCEPTIONS error_in_fields = 1 OTHERS = 2. "#EC NOTEXT IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from POPUP_GET_VALUES' ). ENDIF. IF lv_returncode = c_answer_cancel. rs_popup-cancel = abap_true. RETURN. ENDIF. extract_field_values( EXPORTING it_fields = lt_fields IMPORTING ev_url = lv_url ev_package = lv_package ev_branch = lv_branch ev_display_name = lv_display_name ev_folder_logic = lv_folder_logic ev_ign_subpkg = lv_ign_subpkg ). lv_finished = abap_true. TRY. zcl_abapgit_url=>validate( |{ lv_url }| ). IF iv_freeze_package = abap_false. zcl_abapgit_repo_srv=>get_instance( )->validate_package( iv_package = lv_package iv_ign_subpkg = lv_ign_subpkg ). ENDIF. validate_folder_logic( lv_folder_logic ). CATCH zcx_abapgit_exception INTO lx_error. MESSAGE lx_error TYPE 'S' DISPLAY LIKE 'E'. " in case of validation errors we display the popup again CLEAR lv_finished. ENDTRY. ENDWHILE. rs_popup-url = lv_url. rs_popup-package = lv_package. rs_popup-branch_name = lv_branch. rs_popup-display_name = lv_display_name. rs_popup-folder_logic = lv_folder_logic. rs_popup-ign_subpkg = lv_ign_subpkg. ENDMETHOD. METHOD zif_abapgit_popups~popup_proxy_bypass. rt_proxy_bypass = it_proxy_bypass. CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG' EXPORTING title = 'Bypass proxy settings for these Hosts & Domains' signed = abap_false lower_case = abap_true no_interval_check = abap_true TABLES range = rt_proxy_bypass EXCEPTIONS no_range_tab = 1 cancelled = 2 internal_error = 3 invalid_fieldname = 4 OTHERS = 5. CASE sy-subrc. WHEN 0. WHEN 2. RAISE EXCEPTION TYPE zcx_abapgit_cancel. WHEN OTHERS. zcx_abapgit_exception=>raise( 'Error from COMPLEX_SELECTIONS_DIALOG' ). ENDCASE. ENDMETHOD. METHOD _popup_3_get_values. DATA lv_answer TYPE c LENGTH 1. FIELD-SYMBOLS: <ls_field> TYPE sval. CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING no_value_check = iv_no_value_check popup_title = iv_popup_title IMPORTING returncode = lv_answer TABLES fields = ct_fields EXCEPTIONS OTHERS = 1 ##NO_TEXT. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from POPUP_GET_VALUES' ). ENDIF. IF lv_answer = c_answer_cancel. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ENDIF. IF ev_value_1 IS SUPPLIED. READ TABLE ct_fields INDEX 1 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_value_1 = <ls_field>-value. ENDIF. IF ev_value_2 IS SUPPLIED. READ TABLE ct_fields INDEX 2 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_value_2 = <ls_field>-value. ENDIF. IF ev_value_3 IS SUPPLIED. READ TABLE ct_fields INDEX 3 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_value_3 = <ls_field>-value. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 12924, 4739, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 198, 220, 10188, 9864, 1847, 48167, 1677, 5258, 1976, 565, 62, 397, 499, 18300, 62, 9019, 62, 69, 9548, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 25, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 13, 198, 220, 220, 220, 8355, 43429, 1546, 25, 198, 220, 220, 220, 220, 220, 46207, 62, 26495, 62, 39344, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 26495, 62, 39344, 11, 198, 220, 220, 220, 220, 220, 46207, 62, 43551, 62, 6404, 291, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 43551, 62, 6404, 291, 11, 198, 220, 220, 220, 220, 220, 46207, 62, 15252, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 15252, 11, 198, 220, 220, 220, 220, 220, 2251, 62, 1671, 3702, 62, 12924, 929, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 17953, 62, 1671, 3702, 62, 12924, 929, 11, 198, 220, 220, 220, 220, 220, 29924, 62, 3605, 62, 2364, 1370, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 260, 7501, 62, 3605, 62, 2364, 1370, 11, 198, 220, 220, 220, 220, 220, 8478, 62, 4868, 62, 12924, 929, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 1671, 3702, 62, 4868, 62, 12924, 929, 11, 198, 220, 220, 220, 220, 220, 29924, 62, 12924, 929, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 260, 7501, 62, 12924, 929, 11, 198, 220, 220, 220, 220, 220, 46207, 62, 1462, 62, 10414, 2533, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 10414, 2533, 11, 198, 220, 220, 220, 220, 220, 46207, 62, 1462, 62, 259, 687, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 259, 687, 11, 198, 220, 220, 220, 220, 220, 46207, 62, 1462, 62, 17953, 62, 26495, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 17953, 62, 26495, 11, 198, 220, 220, 220, 220, 220, 46207, 62, 1462, 62, 17953, 62, 7645, 79, 62, 1671, 3702, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 17953, 62, 7645, 79, 62, 1671, 3702, 11, 198, 220, 220, 220, 220, 220, 46207, 62, 1462, 62, 19738, 62, 7645, 3742, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 19738, 62, 7645, 3742, 11, 198, 220, 220, 220, 220, 220, 46207, 62, 1462, 62, 19738, 62, 6738, 62, 4868, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 19738, 62, 6738, 62, 4868, 11, 198, 220, 220, 220, 220, 220, 8478, 62, 12924, 929, 62, 47423, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 1671, 3702, 62, 12924, 929, 62, 47423, 11, 198, 220, 220, 220, 220, 220, 5301, 62, 12924, 929, 62, 47423, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 26495, 62, 12924, 929, 62, 47423, 11, 198, 220, 220, 220, 220, 220, 46207, 62, 7645, 634, 62, 25927, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 7645, 634, 62, 25927, 11, 198, 220, 220, 220, 220, 220, 46207, 62, 36436, 62, 1525, 6603, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 36436, 62, 1525, 6603, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 82, 2100, 62, 926, 41876, 49053, 9795, 43679, 3963, 264, 2100, 13315, 5550, 38865, 35374, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 3245, 3672, 62, 34213, 41876, 300, 28435, 62, 69, 3672, 26173, 8924, 4600, 46506, 1961, 63, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 41484, 62, 66, 21130, 220, 220, 220, 220, 220, 41876, 1149, 16, 26173, 8924, 705, 32, 6, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 42865, 6941, 62, 19738, 62, 4868, 62, 12924, 929, 41876, 4526, 37, 5390, 537, 62, 21680, 85, 62, 11487, 764, 198, 220, 220, 220, 42865, 285, 81, 62, 11487, 41876, 4526, 37, 5390, 1366, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 66, 21130, 41876, 450, 499, 62, 30388, 26173, 8924, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 42865, 6941, 62, 11487, 62, 20147, 81, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 83, 4510, 3798, 81, 764, 628, 220, 220, 220, 337, 36252, 50, 751, 62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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
function zwebproxy_handle_request. *"---------------------------------------------------------------------- *"*"Interface local: *" IMPORTING *" VALUE(METHOD) TYPE STRING *" VALUE(URI) TYPE STRING *" VALUE(REQUEST_HEADERS) TYPE TIHTTPNVP OPTIONAL *" VALUE(POST_DATA_B64) TYPE STRING OPTIONAL *" VALUE(HTTP_VERSION_MAJOR) TYPE I DEFAULT 1 *" VALUE(HTTP_VERSION_MINOR) TYPE I DEFAULT 1 *" VALUE(PROXY_HOST) TYPE STRING OPTIONAL *" VALUE(PROXY_PORT) TYPE I OPTIONAL *" VALUE(PROXY_USERNAME) TYPE STRING OPTIONAL *" VALUE(PROXY_PASSWORD) TYPE STRING OPTIONAL *" EXPORTING *" VALUE(SUBRC) TYPE SYSUBRC *" VALUE(CODE) TYPE I *" VALUE(MESSAGE) TYPE STRING *" VALUE(RESPONSE_HEADERS) TYPE TIHTTPNVP *" VALUE(DATA_B64) TYPE SOLI_TAB *" VALUE(DATA_LENGTH) TYPE I *"---------------------------------------------------------------------- * * ABAP Web Proxy * https://github.com/koemaeda/abap-web-proxy * * Copyright (c) 2017 Guilherme Maeda * Licensed under the MIT license. * *"---------------------------------------------------------------------- data(lo_request) = new zwebproxy_request( method = method uri = uri http_version_major = http_version_major http_version_minor = http_version_minor headers = request_headers post_data = cl_http_utility=>decode_x_base64( post_data_b64 ) proxy_host = proxy_host proxy_port = proxy_port proxy_username = proxy_username proxy_password = proxy_password ). "// Go! subrc = lo_request->run( ). code = lo_request->response_code. message = lo_request->response_message. response_headers = lo_request->response_headers. data_length = xstrlen( lo_request->response_data ). "// base64-encode the response body data(lo_tb) = new cl_abap_itab_c_writer( line_type = cl_abap_typedescr=>typekind_char line_length = 255 ). lo_tb->write( cl_http_utility=>encode_x_base64( lo_request->response_data ) ). lo_tb->get_result_table( importing table = data_b64 ). endfunction.
[ 8818, 1976, 12384, 36436, 62, 28144, 62, 25927, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 39317, 1957, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 49273, 8, 41876, 220, 19269, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 47269, 8, 41876, 220, 19269, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 2200, 35780, 62, 37682, 4877, 8, 41876, 220, 31598, 40717, 45, 8859, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 32782, 62, 26947, 62, 33, 2414, 8, 41876, 220, 19269, 2751, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 40717, 62, 43717, 62, 5673, 41, 1581, 8, 41876, 220, 314, 5550, 38865, 352, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 40717, 62, 43717, 62, 23678, 1581, 8, 41876, 220, 314, 5550, 38865, 352, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 31190, 34278, 62, 39, 10892, 8, 41876, 220, 19269, 2751, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 31190, 34278, 62, 15490, 8, 41876, 220, 314, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 31190, 34278, 62, 29904, 20608, 8, 41876, 220, 19269, 2751, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 31190, 34278, 62, 47924, 54, 12532, 8, 41876, 220, 19269, 2751, 39852, 2849, 1847, 198, 9, 1, 220, 7788, 15490, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 50, 10526, 7397, 8, 41876, 220, 311, 16309, 10526, 7397, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 34, 16820, 8, 41876, 220, 314, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 44, 1546, 4090, 8264, 8, 41876, 220, 19269, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 19535, 47, 1340, 5188, 62, 37682, 4877, 8, 41876, 220, 31598, 40717, 45, 8859, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 26947, 62, 33, 2414, 8, 41876, 220, 36817, 40, 62, 5603, 33, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 26947, 62, 43, 49494, 8, 41876, 220, 314, 198, 9, 1, 10097, 23031, 198, 9, 198, 9, 9564, 2969, 5313, 38027, 198, 9, 3740, 1378, 12567, 13, 785, 14, 7204, 368, 11641, 14, 397, 499, 12, 12384, 12, 36436, 198, 9, 198, 9, 15069, 357, 66, 8, 2177, 1962, 346, 372, 1326, 6669, 18082, 198, 9, 49962, 739, 262, 17168, 5964, 13, 198, 9, 198, 9, 1, 10097, 23031, 198, 220, 1366, 7, 5439, 62, 25927, 8, 796, 649, 1976, 12384, 36436, 62, 25927, 7, 198, 220, 220, 220, 2446, 796, 2446, 198, 220, 220, 220, 2956, 72, 796, 2956, 72, 198, 220, 220, 220, 2638, 62, 9641, 62, 22478, 796, 2638, 62, 9641, 62, 22478, 198, 220, 220, 220, 2638, 62, 9641, 62, 1084, 273, 796, 2638, 62, 9641, 62, 1084, 273, 198, 220, 220, 220, 24697, 796, 2581, 62, 50145, 198, 220, 220, 220, 1281, 62, 7890, 796, 537, 62, 4023, 62, 315, 879, 14804, 12501, 1098, 62, 87, 62, 8692, 2414, 7, 1281, 62, 7890, 62, 65, 2414, 1267, 198, 220, 220, 220, 15741, 62, 4774, 796, 15741, 62, 4774, 198, 220, 220, 220, 15741, 62, 634, 796, 15741, 62, 634, 198, 220, 220, 220, 15741, 62, 29460, 796, 15741, 62, 29460, 198, 220, 220, 220, 15741, 62, 28712, 796, 15741, 62, 28712, 198, 220, 6739, 628, 220, 366, 1003, 1514, 0, 198, 220, 850, 6015, 796, 2376, 62, 25927, 3784, 5143, 7, 6739, 628, 220, 2438, 796, 2376, 62, 25927, 3784, 26209, 62, 8189, 13, 198, 220, 3275, 796, 2376, 62, 25927, 3784, 26209, 62, 20500, 13, 198, 220, 2882, 62, 50145, 796, 2376, 62, 25927, 3784, 26209, 62, 50145, 13, 198, 220, 1366, 62, 13664, 796, 2124, 2536, 11925, 7, 2376, 62, 25927, 3784, 26209, 62, 7890, 6739, 628, 220, 366, 1003, 2779, 2414, 12, 268, 8189, 262, 2882, 1767, 198, 220, 1366, 7, 5439, 62, 83, 65, 8, 796, 649, 537, 62, 397, 499, 62, 270, 397, 62, 66, 62, 16002, 7, 1627, 62, 4906, 796, 537, 62, 397, 499, 62, 774, 9124, 3798, 81, 14804, 4906, 11031, 62, 10641, 1627, 62, 13664, 796, 14280, 6739, 198, 220, 2376, 62, 83, 65, 3784, 13564, 7, 537, 62, 4023, 62, 315, 879, 14804, 268, 8189, 62, 87, 62, 8692, 2414, 7, 2376, 62, 25927, 3784, 26209, 62, 7890, 1267, 6739, 198, 220, 2376, 62, 83, 65, 3784, 1136, 62, 20274, 62, 11487, 7, 33332, 3084, 796, 1366, 62, 65, 2414, 6739, 198, 437, 8818, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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zif_abapgit_object. PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_classic_badi_implementation, implementation_data TYPE impl_data, function_codes TYPE seex_fcode_table, control_composites TYPE seex_coco_table, customer_includes TYPE seex_table_table, screens TYPE seex_screen_table, filters TYPE seex_filter_table, END OF ty_classic_badi_implementation. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_SXCI IMPLEMENTATION. METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_implementation_name TYPE rsexscrn-imp_name. lv_implementation_name = ms_item-obj_name. CALL FUNCTION 'SXO_IMPL_DELETE' EXPORTING imp_name = lv_implementation_name no_dialog = abap_true EXCEPTIONS imp_not_existing = 1 action_canceled = 2 access_failure = 3 data_inconsistency = 4 OTHERS = 5. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from SXO_IMPL_DELETE' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: ls_badi_definition TYPE badi_data, lo_filter_object TYPE REF TO cl_badi_flt_struct, lo_filter_values_object TYPE REF TO cl_badi_flt_values_alv, lv_korrnum TYPE trkorr, lv_filter_type_enhanceability TYPE rsexscrn-flt_ext, lv_package TYPE devclass, ls_classic_badi_implementation TYPE ty_classic_badi_implementation. io_xml->read( EXPORTING iv_name = 'SXCI' CHANGING cg_data = ls_classic_badi_implementation ). CALL FUNCTION 'SXO_BADI_READ' EXPORTING exit_name = ls_classic_badi_implementation-implementation_data-exit_name IMPORTING badi = ls_badi_definition filter_obj = lo_filter_object EXCEPTIONS read_failure = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from SXO_BADI_READ' ). ENDIF. lv_package = iv_package. CREATE OBJECT lo_filter_values_object EXPORTING filter_object = lo_filter_object filter_values = ls_classic_badi_implementation-filters. CALL FUNCTION 'SXO_IMPL_SAVE' EXPORTING impl = ls_classic_badi_implementation-implementation_data flt_ext = lv_filter_type_enhanceability filter_val_obj = lo_filter_values_object genflag = abap_true no_dialog = abap_true TABLES fcodes_to_insert = ls_classic_badi_implementation-function_codes cocos_to_insert = ls_classic_badi_implementation-control_composites intas_to_insert = ls_classic_badi_implementation-customer_includes sscrs_to_insert = ls_classic_badi_implementation-screens CHANGING korrnum = lv_korrnum devclass = lv_package EXCEPTIONS save_failure = 1 action_canceled = 2 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from SXO_IMPL_SAVE' ). ENDIF. CALL FUNCTION 'SXO_IMPL_ACTIVE' EXPORTING imp_name = ls_classic_badi_implementation-implementation_data-imp_name no_dialog = abap_true EXCEPTIONS badi_not_existing = 1 imp_not_existing = 2 already_active = 3 data_inconsistency = 4 activation_not_admissable = 5 action_canceled = 6 access_failure = 7 OTHERS = 8. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from SXO_IMPL_ACTIVE' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_implementation_name TYPE rsexscrn-imp_name. lv_implementation_name = ms_item-obj_name. CALL FUNCTION 'SXV_IMP_EXISTS' EXPORTING imp_name = lv_implementation_name EXCEPTIONS not_existing = 1 data_inconsistency = 2 OTHERS = 3. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = abap_false. ENDMETHOD. METHOD zif_abapgit_object~jump. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ms_item-obj_name object_type = ms_item-obj_type in_new_window = abap_true EXCEPTIONS not_executed = 1 invalid_object_type = 2 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from RS_TOOL_ACCESS' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_implementation_name TYPE rsexscrn-imp_name, lv_exit_name TYPE rsexscrn-exit_name, lo_filter_object TYPE REF TO cl_badi_flt_struct, ls_badi_definition TYPE badi_data, lo_filter_values_object TYPE REF TO cl_badi_flt_values_alv, lt_methods TYPE seex_mtd_table, ls_classic_badi_implementation TYPE ty_classic_badi_implementation. lv_implementation_name = ms_item-obj_name. CALL FUNCTION 'SXV_EXIT_FOR_IMP' EXPORTING imp_name = lv_implementation_name IMPORTING exit_name = lv_exit_name TABLES filters = ls_classic_badi_implementation-filters EXCEPTIONS data_inconsistency = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from SXV_EXIT_FOR_IMP' ). ENDIF. CALL FUNCTION 'SXO_BADI_READ' EXPORTING exit_name = lv_exit_name IMPORTING badi = ls_badi_definition filter_obj = lo_filter_object TABLES fcodes = ls_classic_badi_implementation-function_codes cocos = ls_classic_badi_implementation-control_composites intas = ls_classic_badi_implementation-customer_includes scrns = ls_classic_badi_implementation-screens methods = lt_methods EXCEPTIONS read_failure = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from SXO_BADI_READ' ). ENDIF. CALL FUNCTION 'SXO_IMPL_FOR_BADI_READ' EXPORTING imp_name = lv_implementation_name exit_name = lv_exit_name inter_name = ls_badi_definition-inter_name filter_obj = lo_filter_object no_create_filter_values_obj = abap_true IMPORTING impl = ls_classic_badi_implementation-implementation_data filter_values_obj = lo_filter_values_object TABLES fcodes = ls_classic_badi_implementation-function_codes cocos = ls_classic_badi_implementation-control_composites intas = ls_classic_badi_implementation-customer_includes scrns = ls_classic_badi_implementation-screens CHANGING methods = lt_methods EXCEPTIONS read_failure = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from SXO_IMPL_FOR_BADI_READ' ). ENDIF. CLEAR: ls_classic_badi_implementation-implementation_data-aname, ls_classic_badi_implementation-implementation_data-adate, ls_classic_badi_implementation-implementation_data-atime, ls_classic_badi_implementation-implementation_data-uname, ls_classic_badi_implementation-implementation_data-udate, ls_classic_badi_implementation-implementation_data-utime, ls_classic_badi_implementation-implementation_data-active. io_xml->add( iv_name = 'SXCI' ig_data = ls_classic_badi_implementation ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 82, 87, 979, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 49421, 62, 65, 9189, 62, 320, 32851, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7822, 62, 7890, 41876, 4114, 62, 7890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2163, 62, 40148, 220, 220, 220, 220, 220, 41876, 766, 87, 62, 69, 8189, 62, 11487, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1630, 62, 785, 1930, 2737, 220, 41876, 766, 87, 62, 66, 25634, 62, 11487, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6491, 62, 42813, 220, 220, 41876, 766, 87, 62, 11487, 62, 11487, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8947, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 766, 87, 62, 9612, 62, 11487, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 766, 87, 62, 24455, 62, 11487, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 49421, 62, 65, 9189, 62, 320, 32851, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 50, 55, 25690, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 628, 220, 220, 220, 374, 85, 62, 7220, 796, 269, 62, 7220, 62, 34680, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 33678, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 320, 32851, 62, 3672, 41876, 374, 8044, 1416, 35906, 12, 11011, 62, 3672, 13, 628, 220, 220, 220, 300, 85, 62, 320, 32851, 62, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 50, 55, 46, 62, 3955, 6489, 62, 7206, 2538, 9328, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 848, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 320, 32851, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 645, 62, 38969, 519, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 848, 62, 1662, 62, 25687, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2223, 62, 66, 590, 992, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 1895, 62, 32165, 495, 220, 220, 220, 220, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 62, 1939, 684, 396, 1387, 796, 604, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 642, 13, 628, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 18224, 422, 44205, 46, 62, 3955, 6489, 62, 7206, 2538, 9328, 6, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 8906, 48499, 1096, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 65, 9189, 62, 46758, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2089, 72, 62, 7890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 24455, 62, 15252, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 65, 9189, 62, 69, 2528, 62, 7249, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 24455, 62, 27160, 62, 15252, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 65, 9189, 62, 69, 2528, 62, 27160, 62, 282, 85, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 74, 38890, 22510, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 491, 74, 38890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 24455, 62, 4906, 62, 16550, 590, 1799, 220, 41876, 374, 8044, 1416, 35906, 12, 69, 2528, 62, 2302, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 26495, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1614, 4871, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 49421, 62, 65, 9189, 62, 320, 32851, 41876, 1259, 62, 49421, 62, 65, 9189, 62, 320, 32851, 13, 628, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3672, 796, 705, 50, 55, 25690, 6, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 269, 70, 62, 7890, 796, 43979, 62, 49421, 62, 65, 9189, 62, 320, 32851, 6739, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 50, 55, 46, 62, 33, 2885, 40, 62, 15675, 6, 198, 220, 220, 220, 220, 220, 7788 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&———————————————————————* *& Report YOTQR2 *&———————————————————————* *& this program directly print BMP file of any barcode *& https://blogs.sap.com/2016/05/12/qr-code-or-2d-bar-code-in-sap/ *&———————————————————————* REPORT yotqr. PARAMETERS: barcode LIKE tfo05-tdbarcode DEFAULT 'ZQRCODE', barcdata(50) TYPE c LOWER CASE DEFAULT '1234567890Иванов Иван Иванович', filename TYPE string LOWER CASE DEFAULT 'E:\Documents\1.bmp'. DATA:errmsg(80) TYPE c, bc_cmd LIKE itcoo, bp_cmd LIKE itcoo, bitmapsize TYPE i, bitmap2_size TYPE i, w TYPE i, h TYPE i, bitmap LIKE rspolpbi OCCURS 10 WITH HEADER LINE, bitmap2 LIKE rspolpbi OCCURS 10 WITH HEADER LINE, l_bitmap TYPE xstring, otf LIKE itcoo OCCURS 10 WITH HEADER LINE. PERFORM get_otf_bc_cmd IN PROGRAM sapmssco USING barcode barcdata bc_cmd. CHECK sy-subrc = 0. bp_cmd-tdprintcom = 'bp'. PERFORM get_otf_bp_cmd IN PROGRAM sapmssco USING barcode bp_cmd-tdprintpar. CHECK sy-subrc = 0. PERFORM renderbarcode IN PROGRAM sapmssco TABLES bitmap USING bc_cmd bp_cmd barcdata bitmapsize w h errmsg. CHECK sy-subrc = 0. PERFORM bitmap2otf IN PROGRAM sapmssco TABLES bitmap otf USING bitmapsize w h. DATA length TYPE i. DATA hex TYPE xstring. DATA bitmap3 TYPE xstring. FIELD-SYMBOLS <fs> TYPE x. CLEAR: hex, bitmap3. LOOP AT otf. length = otf-tdprintpar+2(2). ASSIGN otf-tdprintpar+4(length) TO <fs> CASTING. hex = <fs>(length). CONCATENATE bitmap3 hex INTO bitmap3 IN BYTE MODE. ENDLOOP. * convert from old format to new format hex = 'FFFFFFFF01010000'. CONCATENATE bitmap3(8) hex bitmap3+8 INTO bitmap3 IN BYTE MODE. CLEAR hex. SHIFT hex RIGHT BY 90 PLACES IN BYTE MODE. CONCATENATE bitmap3(42) hex bitmap3+42 INTO bitmap3 IN BYTE MODE. DATA bitmap4 TYPE sbdst_content. CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING buffer = bitmap3 " xstring TABLES binary_tab = bitmap4. DATA bitmap4_size TYPE i. bitmap4_size = xstrlen( bitmap3 ). CALL FUNCTION 'SAPSCRIPT_CONVERT_BITMAP' EXPORTING old_format = 'BDS' new_format = 'BMP' bitmap_file_bytecount_in = bitmap4_size IMPORTING bitmap_file_bytecount = bitmap2_size TABLES bitmap_file = bitmap2 bds_bitmap_file = bitmap4 EXCEPTIONS no_bitmap_file = 1 format_not_supported = 2 bitmap_file_not_type_x = 3 no_bmp_file = 4 bmperr_invalid_format = 5 bmperr_no_colortable = 6 bmperr_unsup_compression = 7 bmperr_corrupt_rle_data = 8 bmperr_eof = 9 bdserr_invalid_format = 10 bdserr_eof = 11. cl_gui_frontend_services=>gui_download( EXPORTING bin_filesize = bitmap2_size filename = filename filetype = 'BIN' CHANGING data_tab = bitmap2[] EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 not_supported_by_gui = 22 error_no_gui = 23 OTHERS = 24 ).
[ 9, 5, 30542, 8184, 4500, 960, 9, 198, 9, 5, 6358, 220, 575, 2394, 48, 49, 17, 198, 9, 5, 30542, 8184, 4500, 960, 9, 198, 9, 5, 428, 1430, 3264, 3601, 347, 7378, 2393, 286, 597, 2318, 8189, 198, 9, 5, 3740, 1378, 49096, 13, 82, 499, 13, 785, 14, 5304, 14, 2713, 14, 1065, 14, 80, 81, 12, 8189, 12, 273, 12, 17, 67, 12, 5657, 12, 8189, 12, 259, 12, 82, 499, 14, 198, 9, 5, 30542, 8184, 4500, 960, 9, 198, 2200, 15490, 331, 313, 80, 81, 13, 198, 27082, 2390, 2767, 4877, 25, 2318, 8189, 220, 220, 220, 220, 220, 34178, 256, 6513, 2713, 12, 8671, 65, 5605, 1098, 5550, 38865, 705, 57, 48, 7397, 16820, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2318, 66, 7890, 7, 1120, 8, 41876, 269, 406, 36048, 42001, 5550, 38865, 705, 10163, 2231, 30924, 3829, 140, 246, 38857, 16142, 22177, 25443, 110, 12466, 246, 38857, 16142, 22177, 12466, 246, 38857, 16142, 22177, 25443, 110, 18849, 141, 229, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29472, 220, 220, 220, 220, 41876, 4731, 406, 36048, 42001, 5550, 38865, 705, 36, 7479, 38354, 59, 16, 13, 65, 3149, 4458, 198, 26947, 25, 8056, 19662, 7, 1795, 8, 220, 220, 41876, 269, 11, 198, 220, 220, 220, 220, 47125, 62, 28758, 220, 220, 220, 220, 220, 220, 34178, 340, 1073, 78, 11, 198, 220, 220, 220, 220, 275, 79, 62, 28758, 220, 220, 220, 220, 220, 220, 34178, 340, 1073, 78, 11, 198, 220, 220, 220, 220, 1643, 31803, 1096, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 1643, 8899, 17, 62, 7857, 41876, 1312, 11, 198, 220, 220, 220, 220, 266, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 289, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 1643, 8899, 220, 220, 220, 220, 220, 220, 34178, 374, 2777, 349, 79, 8482, 440, 4093, 4261, 50, 838, 13315, 39837, 1137, 48920, 11, 198, 220, 220, 220, 220, 1643, 8899, 17, 220, 220, 220, 220, 220, 34178, 374, 2777, 349, 79, 8482, 440, 4093, 4261, 50, 838, 13315, 39837, 1137, 48920, 11, 198, 220, 220, 220, 220, 300, 62, 2545, 8899, 220, 220, 220, 220, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 267, 27110, 220, 220, 220, 220, 220, 220, 220, 220, 220, 34178, 340, 1073, 78, 440, 4093, 4261, 50, 838, 13315, 39837, 1137, 48920, 13, 198, 198, 18973, 21389, 651, 62, 313, 69, 62, 15630, 62, 28758, 220, 3268, 46805, 473, 4426, 824, 1073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1294, 2751, 2318, 8189, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2318, 66, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 47125, 62, 28758, 13, 198, 198, 50084, 827, 12, 7266, 6015, 796, 657, 13, 198, 198, 46583, 62, 28758, 12, 8671, 4798, 785, 796, 705, 46583, 4458, 198, 198, 18973, 21389, 651, 62, 313, 69, 62, 46583, 62, 28758, 220, 3268, 46805, 473, 4426, 824, 1073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1294, 2751, 2318, 8189, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 79, 62, 28758, 12, 8671, 4798, 1845, 13, 198, 198, 50084, 827, 12, 7266, 6015, 796, 657, 13, 198, 198, 18973, 21389, 8543, 65, 5605, 1098, 3268, 46805, 473, 4426, 824, 1073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 309, 6242, 28378, 1643, 8899, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1294, 2751, 47125, 62, 28758, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 79, 62, 28758, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2318, 66, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1643, 31803, 1096, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 266, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 289, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11454, 19662, 13, 198, 50084, 827, 12, 7266, 6015, 796, 657, 13, 198, 198, 18973, 21389, 1643, 8899, 17, 313, 69, 3268, 46805, 473, 4426, 824, 1073, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 309, 6242, 28378, 1643, 8899, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 267, 27110, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1294, 2751, 1643, 31803, 1096, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_ttyp DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. ENDCLASS. CLASS zcl_abapgit_object_ttyp IMPLEMENTATION. METHOD zif_abapgit_object~has_changed_since. DATA: lv_date TYPE dats, lv_time TYPE tims. SELECT SINGLE as4date as4time FROM dd40l INTO (lv_date, lv_time) WHERE typename = ms_item-obj_name AND as4local = 'A'. rv_changed = check_timestamp( iv_timestamp = iv_timestamp iv_date = lv_date iv_time = lv_time ). ENDMETHOD. "zif_abapgit_object~has_changed_since METHOD zif_abapgit_object~changed_by. SELECT SINGLE as4user FROM dd40l INTO rv_user WHERE typename = ms_item-obj_name AND as4local = 'A'. IF sy-subrc <> 0. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). rs_metadata-ddic = abap_true. ENDMETHOD. "zif_abapgit_object~get_metadata METHOD zif_abapgit_object~exists. DATA: lv_typename TYPE dd40l-typename. SELECT SINGLE typename FROM dd40l INTO lv_typename WHERE typename = ms_item-obj_name AND as4local = 'A'. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. "zif_abapgit_object~exists METHOD zif_abapgit_object~jump. jump_se11( iv_radio = 'RSRD1-DDTYPE' iv_field = 'RSRD1-DDTYPE_VAL' ). ENDMETHOD. "jump METHOD zif_abapgit_object~delete. DATA: lv_objname TYPE rsedd0-ddobjname. lv_objname = ms_item-obj_name. CALL FUNCTION 'RS_DD_DELETE_OBJ' EXPORTING no_ask = abap_true objname = lv_objname objtype = 'A' EXCEPTIONS not_executed = 1 object_not_found = 2 object_not_specified = 3 permission_failure = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from RS_DD_DELETE_OBJ, TTYP' ). ENDIF. ENDMETHOD. "delete METHOD zif_abapgit_object~serialize. DATA: lv_name TYPE ddobjname, lt_dd42v TYPE dd42v_tab, lt_dd43v TYPE dd43v_tab, ls_dd40v TYPE dd40v. lv_name = ms_item-obj_name. CALL FUNCTION 'DDIF_TTYP_GET' EXPORTING name = lv_name state = 'A' langu = mv_language IMPORTING dd40v_wa = ls_dd40v TABLES dd42v_tab = lt_dd42v dd43v_tab = lt_dd43v EXCEPTIONS illegal_input = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from DDIF_TTYP_GET' ). ENDIF. IF ls_dd40v IS INITIAL. RETURN. " does not exist in system ENDIF. CLEAR: ls_dd40v-as4user, ls_dd40v-as4date, ls_dd40v-as4time. IF NOT ls_dd40v-rowkind IS INITIAL. CLEAR ls_dd40v-typelen. ENDIF. io_xml->add( iv_name = 'DD40V' ig_data = ls_dd40v ). io_xml->add( iv_name = 'DD42V' ig_data = lt_dd42v ). io_xml->add( iv_name = 'DD43V' ig_data = lt_dd43v ). ENDMETHOD. "serialize METHOD zif_abapgit_object~deserialize. DATA: lv_name TYPE ddobjname, lt_dd42v TYPE dd42v_tab, lt_dd43v TYPE dd43v_tab, ls_dd40v TYPE dd40v. io_xml->read( EXPORTING iv_name = 'DD40V' CHANGING cg_data = ls_dd40v ). io_xml->read( EXPORTING iv_name = 'DD42V' CHANGING cg_data = lt_dd42v ). io_xml->read( EXPORTING iv_name = 'DD43V' CHANGING cg_data = lt_dd43v ). corr_insert( iv_package ). lv_name = ms_item-obj_name. " type conversion CALL FUNCTION 'DDIF_TTYP_PUT' EXPORTING name = lv_name dd40v_wa = ls_dd40v TABLES dd42v_tab = lt_dd42v dd43v_tab = lt_dd43v EXCEPTIONS ttyp_not_found = 1 name_inconsistent = 2 ttyp_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from DDIF_TTYP_PUT' ). ENDIF. zcl_abapgit_objects_activation=>add_item( ms_item ). ENDMETHOD. "deserialize METHOD zif_abapgit_object~compare_to_remote_version. CREATE OBJECT ro_comparison_result TYPE zcl_abapgit_comparison_null. ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'ESDICT' iv_argument = |{ ms_item-obj_type }{ ms_item-obj_name }| ). ENDMETHOD. ENDCLASS. "zcl_abapgit_object_ttyp IMPLEMENTATION
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 83, 28004, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 83, 28004, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 10134, 62, 40985, 62, 20777, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 4475, 41876, 288, 1381, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 2435, 41876, 4628, 82, 13, 628, 220, 220, 220, 33493, 311, 2751, 2538, 355, 19, 4475, 355, 19, 2435, 16034, 49427, 1821, 75, 198, 220, 220, 220, 220, 220, 39319, 357, 6780, 62, 4475, 11, 300, 85, 62, 2435, 8, 198, 220, 220, 220, 220, 220, 33411, 2170, 12453, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 198, 220, 220, 220, 220, 220, 5357, 355, 19, 12001, 796, 705, 32, 4458, 628, 220, 220, 220, 374, 85, 62, 40985, 796, 2198, 62, 16514, 27823, 7, 198, 220, 220, 220, 220, 220, 21628, 62, 16514, 27823, 796, 21628, 62, 16514, 27823, 198, 220, 220, 220, 220, 220, 21628, 62, 4475, 220, 220, 220, 220, 220, 796, 300, 85, 62, 4475, 198, 220, 220, 220, 220, 220, 21628, 62, 2435, 220, 220, 220, 220, 220, 796, 300, 85, 62, 2435, 6739, 628, 220, 23578, 49273, 13, 220, 366, 89, 361, 62, 397, 499, 18300, 62, 15252, 93, 10134, 62, 40985, 62, 20777, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 628, 220, 220, 220, 33493, 311, 2751, 2538, 355, 19, 7220, 16034, 49427, 1821, 75, 39319, 374, 85, 62, 7220, 198, 220, 220, 220, 220, 220, 33411, 2170, 12453, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 198, 220, 220, 220, 220, 220, 5357, 355, 19, 12001, 796, 705, 32, 4458, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 374, 85, 62, 7220, 796, 269, 62, 7220, 62, 34680, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1136, 62, 38993, 13, 198, 220, 220, 220, 44608, 62, 38993, 796, 651, 62, 38993, 7, 6739, 198, 220, 220, 220, 44608, 62, 38993, 12, 1860, 291, 796, 450, 499, 62, 7942, 13, 198, 220, 23578, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 89, 361, 62, 397, 499, 18300, 62, 15252, 93, 1136, 62, 38993, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1069, 1023, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 774, 3617, 480, 41876, 49427, 1821, 75, 12, 774, 3617, 480, 13, 628, 198, 220, 220, 220, 33493, 311, 2751, 2538, 2170, 12453, 16034, 49427, 1821, 75, 39319, 300, 85, 62, 774, 3617, 480, 198, 220, 220, 220, 220, 220, 33411, 2170, 12453, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 198, 220, 220, 220, 220, 220, 5357, 355, 19, 12001, 796, 705, 32, 4458, 198, 220, 220, 220, 374, 85, 62, 30388, 796, 20512, 66, 7, 827, 12, 7266, 6015, 796, 657, 6739, 628, 220, 23578, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 89, 361, 62, 397, 499, 18300, 62, 15252, 93, 1069, 1023, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 43327, 13, 628, 220, 220, 220, 4391, 62, 325, 1157, 7, 21628, 62, 37004, 796, 705, 6998, 35257, 16, 12, 16458, 25216, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3245, 796, 705, 6998, 35257, 16, 12, 16458, 25216, 62, 23428, 6, 6739, 628, 220, 23578, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 43327, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 33678, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 26801, 3672, 41876, 44608, 6048, 15, 12, 1860, 26801, 3672, 13, 628, 198, 220, 220, 220, 300, 85, 62, 26801, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 6998, 62, 16458, 62, 7206, 2538, 9328, 62, 9864, 41, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 645, 62, 2093, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 220, 220, 26181, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 26801, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 26181, 4906, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 32, 6, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 407, 62, 18558, 7241, 220, 220, 220, 220, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 1662, 62, 9275, 220, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 1662, 62, 23599, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 7170, 62, 32165, 495, 220, 220, 796, 604, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 18224 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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_hour FOR TESTING, adding_a_few_minutes FOR TESTING, adding_zero_minutes FOR TESTING, adding_over_an_hour FOR TESTING, adding_more_than_two_hours_w_c FOR TESTING, adding_more_than_two_days FOR TESTING, wrap_around_at_midnight FOR TESTING, subtract_minutes FOR TESTING, subtract_more_than_two_hours FOR TESTING, subtract_more_than_two_hours_w FOR TESTING, subtract_more_than_two_days FOR TESTING, wrap_around_backwards FOR TESTING, wrap_around_day FOR TESTING, wrap_around_day_backwards FOR TESTING, equivalent_clocks FOR TESTING, inequivalent_clocks FOR TESTING, equivalent_clocks_1 FOR TESTING, equivalent_clocks_2 FOR TESTING, equivalent_clocks_3 FOR TESTING, equivalent_clocks_4 FOR TESTING, equivalent_clocks_5 FOR TESTING, equivalent_clocks_6 FOR TESTING, hours_rollover FOR TESTING, minutes_rollover FOR TESTING, hours_and_minutes_rollover FOR TESTING, negative_hours_rollover FOR TESTING, negative_minutes_rollover FOR TESTING, negative_hours_and_minutes FOR TESTING. ENDCLASS. CLASS ltcl_clock IMPLEMENTATION. METHOD on_the_hour. cut = NEW zcl_clock( 8 ). cl_abap_unit_assert=>assert_equals( exp = '08:00' act = cut->get( ) ). ENDMETHOD. METHOD past_the_hour. cut = NEW zcl_clock( hours = 11 minutes = 9 ). cl_abap_unit_assert=>assert_equals( exp = '11:09' act = cut->get( ) ). ENDMETHOD. METHOD adding_a_few_minutes. cut = NEW zcl_clock( 10 ). cut->add( 3 ). cl_abap_unit_assert=>assert_equals( exp = '10:03' act = cut->get( ) ). ENDMETHOD. METHOD adding_zero_minutes. cut = NEW zcl_clock( hours = 6 minutes = 41 ). cut->add( 0 ). cl_abap_unit_assert=>assert_equals( exp = '06:41' act = cut->get( ) ). ENDMETHOD. METHOD adding_over_an_hour. cut = NEW zcl_clock( 10 ). cut->add( 61 ). cl_abap_unit_assert=>assert_equals( exp = '11:01' act = cut->get( ) ). ENDMETHOD. METHOD adding_more_than_two_hours_w_c. cut = NEW zcl_clock( hours = 0 minutes = 45 ). cut->add( 160 ). cl_abap_unit_assert=>assert_equals( exp = '03:25' act = cut->get( ) ). ENDMETHOD. METHOD adding_more_than_two_days. cut = NEW zcl_clock( hours = 1 minutes = 1 ). cut->add( 3500 ). cl_abap_unit_assert=>assert_equals( exp = '11:21' act = cut->get( ) ). ENDMETHOD. METHOD wrap_around_at_midnight. cut = NEW zcl_clock( hours = 23 minutes = 30 ). cut->add( 60 ). cl_abap_unit_assert=>assert_equals( exp = '00:30' act = cut->get( ) ). ENDMETHOD. METHOD subtract_minutes. cut = NEW zcl_clock( 10 ). cut->sub( 90 ). cl_abap_unit_assert=>assert_equals( exp = '08:30' act = cut->get( ) ). ENDMETHOD. METHOD subtract_more_than_two_hours. cut = NEW zcl_clock( hours = 6 minutes = 15 ). cut->sub( 160 ). cl_abap_unit_assert=>assert_equals( exp = '03:35' act = cut->get( ) ). ENDMETHOD. METHOD subtract_more_than_two_hours_w. cut = NEW zcl_clock( hours = 6 minutes = 15 ). cut->add( -160 ). cl_abap_unit_assert=>assert_equals( exp = '03:35' act = cut->get( ) ). ENDMETHOD. METHOD subtract_more_than_two_days. cut = NEW zcl_clock( hours = 2 minutes = 20 ). cut->sub( 3000 ). cl_abap_unit_assert=>assert_equals( exp = '00:20' act = cut->get( ) ). ENDMETHOD. METHOD wrap_around_backwards. cut = NEW zcl_clock( hours = 0 minutes = 30 ). cut->sub( 60 ). cl_abap_unit_assert=>assert_equals( exp = '23:30' act = cut->get( ) ). ENDMETHOD. METHOD wrap_around_day. cut = NEW zcl_clock( hours = 5 minutes = 32 ). cut->add( 25 * 60 ). cl_abap_unit_assert=>assert_equals( exp = '06:32' act = cut->get( ) ). ENDMETHOD. METHOD wrap_around_day_backwards. cut = NEW zcl_clock( hours = 5 minutes = 32 ). cut->sub( 25 * 60 ). cl_abap_unit_assert=>assert_equals( exp = '04:32' act = cut->get( ) ). ENDMETHOD. METHOD equivalent_clocks. cl_abap_unit_assert=>assert_equals( exp = NEW zcl_clock( hours = 15 minutes = 37 )->get( ) act = NEW zcl_clock( hours = 15 minutes = 37 )->get( ) ). ENDMETHOD. METHOD inequivalent_clocks. cl_abap_unit_assert=>assert_differs( exp = NEW zcl_clock( hours = 1 minutes = 1 )->get( ) act = NEW zcl_clock( hours = 18 minutes = 32 )->get( ) ). ENDMETHOD. METHOD equivalent_clocks_1. cl_abap_unit_assert=>assert_equals( exp = NEW zcl_clock( hours = 3 minutes = 11 )->get( ) act = NEW zcl_clock( hours = 99 minutes = 11 )->get( ) ). ENDMETHOD. METHOD equivalent_clocks_2. cl_abap_unit_assert=>assert_equals( exp = NEW zcl_clock( hours = 22 minutes = 40 )->get( ) act = NEW zcl_clock( hours = -2 minutes = 40 )->get( ) ). ENDMETHOD. METHOD equivalent_clocks_3. cl_abap_unit_assert=>assert_equals( exp = NEW zcl_clock( hours = 17 minutes = 3 )->get( ) act = NEW zcl_clock( hours = -31 minutes = 3 )->get( ) ). ENDMETHOD. METHOD equivalent_clocks_4. cl_abap_unit_assert=>assert_equals( exp = NEW zcl_clock( hours = 2 minutes = 2 )->get( ) act = NEW zcl_clock( hours = 2 minutes = 4322 )->get( ) ). ENDMETHOD. METHOD equivalent_clocks_5. cl_abap_unit_assert=>assert_equals( exp = NEW zcl_clock( hours = 2 minutes = 40 )->get( ) act = NEW zcl_clock( hours = 3 minutes = -20 )->get( ) ). ENDMETHOD. METHOD equivalent_clocks_6. cl_abap_unit_assert=>assert_equals( exp = NEW zcl_clock( hours = 7 minutes = 32 )->get( ) act = NEW zcl_clock( hours = -12 minutes = -268 )->get( ) ). ENDMETHOD. METHOD hours_rollover. cl_abap_unit_assert=>assert_equals( exp = '04:00' act = NEW zcl_clock( 100 )->get( ) ). ENDMETHOD. METHOD minutes_rollover. cl_abap_unit_assert=>assert_equals( exp = '04:43' act = NEW zcl_clock( hours = 0 minutes = 1723 )->get( ) ). ENDMETHOD. METHOD hours_and_minutes_rollover. cl_abap_unit_assert=>assert_equals( exp = '00:00' act = NEW zcl_clock( hours = 72 minutes = 8640 )->get( ) ). ENDMETHOD. METHOD negative_hours_rollover. cl_abap_unit_assert=>assert_equals( exp = '05:00' act = NEW zcl_clock( -91 )->get( ) ). ENDMETHOD. METHOD negative_minutes_rollover. cl_abap_unit_assert=>assert_equals( exp = '16:40' act = NEW zcl_clock( hours = 1 minutes = -4820 )->get( ) ). ENDMETHOD. METHOD negative_hours_and_minutes. cl_abap_unit_assert=>assert_equals( exp = '22:10' act = NEW zcl_clock( hours = -121 minutes = -5810 )->get( ) ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 83, 565, 62, 15750, 5550, 20032, 17941, 7473, 43001, 2751, 45698, 42, 49277, 43638, 5805, 7597, 360, 4261, 6234, 6006, 9863, 25261, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 2005, 41876, 4526, 37, 5390, 1976, 565, 62, 15750, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 319, 62, 1169, 62, 9769, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 1613, 62, 1169, 62, 9769, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 4375, 62, 64, 62, 32146, 62, 1084, 1769, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 4375, 62, 22570, 62, 1084, 1769, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 4375, 62, 2502, 62, 272, 62, 9769, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 4375, 62, 3549, 62, 14813, 62, 11545, 62, 24425, 62, 86, 62, 66, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 4375, 62, 3549, 62, 14813, 62, 11545, 62, 12545, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 14441, 62, 14145, 62, 265, 62, 13602, 3847, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 34128, 62, 1084, 1769, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 34128, 62, 3549, 62, 14813, 62, 11545, 62, 24425, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 34128, 62, 3549, 62, 14813, 62, 11545, 62, 24425, 62, 86, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 34128, 62, 3549, 62, 14813, 62, 11545, 62, 12545, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 14441, 62, 14145, 62, 1891, 2017, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 14441, 62, 14145, 62, 820, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 14441, 62, 14145, 62, 820, 62, 1891, 2017, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 7548, 62, 565, 3320, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 11082, 29540, 62, 565, 3320, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 7548, 62, 565, 3320, 62, 16, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 7548, 62, 565, 3320, 62, 17, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 7548, 62, 565, 3320, 62, 18, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 7548, 62, 565, 3320, 62, 19, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 7548, 62, 565, 3320, 62, 20, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 7548, 62, 565, 3320, 62, 21, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 2250, 62, 2487, 2502, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 2431, 62, 2487, 2502, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 2250, 62, 392, 62, 1084, 1769, 62, 2487, 2502, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 4633, 62, 24425, 62, 2487, 2502, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 4633, 62, 1084, 1769, 62, 2487, 2502, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 4633, 62, 24425, 62, 392, 62, 1084, 1769, 7473, 43001, 2751, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 15750, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 319, 62, 1169, 62, 9769, 13, 198, 220, 220, 220, 2005, 796, 12682, 1976, 565, 62, 15750, 7, 807, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1033, 796, 705, 2919, 25, 405, 6, 198, 220, 220, 220, 220, 220, 220, 220, 719, 796, 2005, 3784, 1136, 7, 1267, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1613, 62, 1169, 62, 9769, 13, 198, 220, 220, 220, 2005, 796, 12682, 1976, 565, 62, 15750, 7, 2250, 220, 220, 796, 1367, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2431, 796, 860, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1033, 796, 705, 1157, 25, 2931, 6, 198, 220, 220, 220, 220, 220, 220, 220, 719, 796, 2005, 3784, 1136, 7, 1267, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 4375, 62, 64, 62, 32146, 62, 1084, 1769, 13, 198, 220, 220, 220, 2005, 796, 12682, 1976, 565, 62, 15750, 7, 838, 6739, 628, 220, 220, 220, 2005, 3784, 2860, 7, 513, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1033, 796, 705, 940, 25, 3070, 6, 198, 220, 220, 220, 220, 220, 220, 220, 719, 796, 2005, 3784, 1136, 7, 1267, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 4375, 62, 22570, 62, 1084, 1769, 13, 198, 220, 220, 220, 2005, 796, 12682, 1976, 565, 62, 15750, 7, 2250, 220, 220, 796, 718, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2431, 796, 6073, 6739, 628, 220, 220, 220, 2005, 3784, 2860, 7, 657, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1033, 796, 705, 3312, 25, 3901, 6, 198, 220, 220, 220, 220, 220, 220, 220, 719, 796, 2005, 3784, 1136, 7, 1267, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 4375, 62, 2502, 62, 272, 62, 9769, 13, 198, 220, 220, 220, 2005, 796, 12682, 1976, 565, 62, 15750, 7, 838, 6739, 628, 220, 220, 220, 2005, 3784, 2860, 7, 8454, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1033, 796, 705 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Report ZDEMO_EXCEL18 *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT zdemo_excel18. DATA: lo_excel TYPE REF TO zcl_excel, lo_worksheet TYPE REF TO zcl_excel_worksheet, lv_style_protection_guid TYPE zexcel_cell_style. CONSTANTS: gc_save_file_name TYPE string VALUE '18_BookProtection.xlsx'. INCLUDE zdemo_excel_outputopt_incl. START-OF-SELECTION. CREATE OBJECT lo_excel. " Get active sheet lo_excel->zif_excel_book_protection~protected = zif_excel_book_protection=>c_protected. lo_excel->zif_excel_book_protection~lockrevision = zif_excel_book_protection=>c_locked. lo_excel->zif_excel_book_protection~lockstructure = zif_excel_book_protection=>c_locked. lo_excel->zif_excel_book_protection~lockwindows = zif_excel_book_protection=>c_locked. lo_worksheet = lo_excel->get_active_worksheet( ). lo_worksheet->set_cell( ip_row = 4 ip_column = 'C' ip_value = 'This cell is unlocked' ip_style = lv_style_protection_guid ). *** Create output lcl_output=>output( lo_excel ).
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 220, 1168, 39429, 46, 62, 6369, 34, 3698, 1507, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 198, 2200, 15490, 1976, 9536, 78, 62, 1069, 5276, 1507, 13, 198, 198, 26947, 25, 2376, 62, 1069, 5276, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 5225, 25473, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 5225, 25473, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 7635, 62, 42846, 62, 5162, 312, 220, 41876, 1976, 1069, 5276, 62, 3846, 62, 7635, 13, 628, 198, 10943, 2257, 1565, 4694, 25, 308, 66, 62, 21928, 62, 7753, 62, 3672, 41876, 4731, 26173, 8924, 705, 1507, 62, 10482, 19703, 3213, 13, 87, 7278, 87, 4458, 198, 1268, 5097, 52, 7206, 1976, 9536, 78, 62, 1069, 5276, 62, 22915, 8738, 62, 259, 565, 13, 628, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 628, 220, 29244, 6158, 25334, 23680, 2376, 62, 1069, 5276, 13, 628, 220, 366, 3497, 4075, 9629, 198, 220, 2376, 62, 1069, 5276, 3784, 89, 361, 62, 1069, 5276, 62, 2070, 62, 42846, 93, 24326, 220, 220, 220, 220, 796, 1976, 361, 62, 1069, 5276, 62, 2070, 62, 42846, 14804, 66, 62, 24326, 13, 198, 220, 2376, 62, 1069, 5276, 3784, 89, 361, 62, 1069, 5276, 62, 2070, 62, 42846, 93, 5354, 260, 10178, 220, 796, 1976, 361, 62, 1069, 5276, 62, 2070, 62, 42846, 14804, 66, 62, 24162, 13, 198, 220, 2376, 62, 1069, 5276, 3784, 89, 361, 62, 1069, 5276, 62, 2070, 62, 42846, 93, 5354, 301, 5620, 796, 1976, 361, 62, 1069, 5276, 62, 2070, 62, 42846, 14804, 66, 62, 24162, 13, 198, 220, 2376, 62, 1069, 5276, 3784, 89, 361, 62, 1069, 5276, 62, 2070, 62, 42846, 93, 5354, 28457, 220, 220, 796, 1976, 361, 62, 1069, 5276, 62, 2070, 62, 42846, 14804, 66, 62, 24162, 13, 628, 220, 2376, 62, 5225, 25473, 796, 2376, 62, 1069, 5276, 3784, 1136, 62, 5275, 62, 5225, 25473, 7, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 3846, 7, 20966, 62, 808, 796, 604, 20966, 62, 28665, 796, 705, 34, 6, 20966, 62, 8367, 796, 705, 1212, 2685, 318, 14838, 6, 20966, 62, 7635, 796, 300, 85, 62, 7635, 62, 42846, 62, 5162, 312, 6739, 628, 628, 198, 8162, 13610, 5072, 198, 220, 300, 565, 62, 22915, 14804, 22915, 7, 2376, 62, 1069, 5276, 6739, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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Report Z_HELLOWORLD *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT Z_HELLOWORLD. write:/ 'hello 2'.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 1168, 62, 13909, 44765, 1581, 11163, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 2200, 15490, 1168, 62, 13909, 44765, 1581, 11163, 13, 198, 13564, 14079, 705, 31373, 362, 4458, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_app_keyword_scanner_amdp DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_app_keyword_scanner. METHODS constructor. PROTECTED SECTION. PRIVATE SECTION. METHODS get_keywords RETURNING VALUE(rt_keywords) TYPE zapp_t_keywords_sort. DATA mt_keywords TYPE zapp_t_keywords_sort. ENDCLASS. CLASS zcl_app_keyword_scanner_amdp IMPLEMENTATION. METHOD get_keywords. DATA lt_keywords TYPE STANDARD TABLE OF string. DATA lr_keyword TYPE REF TO string. DATA ls_keywords TYPE zapp_s_keywords. lt_keywords = VALUE #( ( |ABS| ) ( |ABSOLUTE| ) ( |ACTION| ) ( |ADA| ) ( |ADD| ) ( |ADMIN| ) ( |AFTER| ) ( |ALL| ) ( |ALLOCATE| ) ( |ALTER| ) ( |ALWAYS| ) ( |AND| ) ( |ANY| ) ( |ARE| ) ( |ARRAY| ) ( |ARRAY_AGG| ) ( |ARRAY_MAX_CARDINALITY| ) ( |AS| ) ( |ASC| ) ( |ASENSITIVE| ) ( |ASSERTION| ) ( |ASSIGNMENT| ) ( |ASYMMETRIC| ) ( |AT| ) ( |ATOMIC| ) ( |ATTRIBUTE| ) ( |ATTRIBUTES| ) ( |AUTHORIZATION| ) ( |AVG| ) ( |BEFORE| ) ( |BEGIN| ) ( |BEGIN_FRAME| ) ( |BEGIN_PARTITION| ) ( |BERNOULLI| ) ( |BETWEEN| ) ( |BIGINT| ) ( |BINARY| ) ( |BLOB| ) ( |BOOL| ) ( |BOOLEAN| ) ( |BOTH| ) ( |BREADTH| ) ( |BREAK| ) ( |BY| ) ( |CALL| ) ( |CALLED| ) ( |CARDINALITY| ) ( |CASCADE| ) ( |CASCADED| ) ( |CASE| ) ( |CAST| ) ( |CATALOG_NAME| ) ( |CEIL| ) ( |CEILING| ) ( |CHAIN| ) ( |CHAR| ) ( |CHAR_LENGTH| ) ( |CHARACTER| ) ( |CHARACTER_LENGTH| ) ( |CHARACTER_SET_CATALOG| ) ( |CHARACTER_SET_NAME| ) ( |CHARACTER_SET_SCHEMA| ) ( |CHARACTERISTICS| ) ( |CHARACTERS| ) ( |CHECK| ) ( |CLASS_ORIGIN| ) ( |CLOB| ) ( |CLOSE| ) ( |COALESCE| ) ( |COBOL| ) ( |COLLATE| ) ( |COLLATION| ) ( |COLLATION_CATALOG| ) ( |COLLATION_NAME| ) ( |COLLATION_SCHEMA| ) ( |COLLECT| ) ( |COLUMN| ) ( |COLUMN_NAME| ) ( |COMMAND_FUNCTION| ) ( |COMMAND_FUNCTION_CODE| ) ( |COMMIT| ) ( |COMMITTED| ) ( |CONDITION| ) ( |CONDITION_NUMBER| ) ( |CONNECT| ) ( |CONNECTION| ) ( |CONNECTION_NAME| ) ( |CONST| ) ( |CONSTRAINT| ) ( |CONSTRAINT_CATALOG| ) ( |CONSTRAINT_NAME| ) ( |CONSTRAINT_SCHEMA| ) ( |CONSTRAINTS| ) ( |CONSTRUCTOR| ) ( |CONTAINS| ) ( |CONTINUE| ) ( |CONTINUE| ) ( |CONVERT| ) ( |CORR| ) ( |CORRESPONDING| ) ( |COUNT| ) ( |COVAR_POP| ) ( |COVAR_SAMP| ) ( |CREATE| ) ( |CROSS| ) ( |CUBE| ) ( |CUME_DIST| ) ( |CURRENT| ) ( |CURRENT_CATALOG| ) ( |CURRENT_DATE| ) ( |CURRENT_DEFAULT_TRANSFORM_GROUP| ) ( |CURRENT_PATHCURRENT_ROLE| ) ( |CURRENT_TRANSFORM_GROUP_FOR_TYPE| ) ( |CURRENT_USER| ) ( |CURSOR| ) ( |CURSOR_NAME| ) ( |CYCLE| ) ( |DATA| ) ( |DATE| ) ( |DATETIME_INTERVAL_CODE| ) ( |DATETIME_INTERVAL_PRECISION| ) ( |DAY| ) ( |DEALLOCATE| ) ( |DEC| ) ( |DECIMAL| ) ( |DECLARE| ) ( |DEFAULT| ) ( |DEFAULTS| ) ( |DEFERRABLE| ) ( |DEFERRED| ) ( |DEFINED| ) ( |DEFINER| ) ( |DEGREE| ) ( |DELETE| ) ( |DENSE_RANK| ) ( |DEPTH| ) ( |DEREF| ) ( |DERIVED| ) ( |DESC| ) ( |DESCRIBE| ) ( |DESCRIPTOR| ) ( |DETERMINISTIC| ) ( |DIAGNOSTICS| ) ( |DISCONNECT| ) ( |DISPATCH| ) ( |DISTINCT| ) ( |DO| ) ( |DOMAIN| ) ( |DOUBLE| ) ( |DROP| ) ( |DYNAMIC| ) ( |DYNAMIC_FUNCTION| ) ( |DYNAMIC_FUNCTION_CODE| ) ( |EACH| ) ( |EDGE| ) ( |ELEMENT| ) ( |ELSE| ) ( |ELSEIF| ) ( |END| ) ( |END_FRAME| ) ( |END_PARTITION| ) ( |END-EXEC| ) ( |ENFORCED| ) ( |ENUM| ) ( |EQUALS| ) ( |ESCAPE| ) ( |EVERY| ) ( |EXCEPT| ) ( |EXCLUDE| ) ( |EXCLUDING| ) ( |EXEC| ) ( |EXECUTE| ) ( |EXISTS| ) ( |EXP| ) ( |EXPRESSION| ) ( |EXTERNAL| ) ( |EXTRACT| ) ( |FALSE| ) ( |FETCH| ) ( |FILTER| ) ( |FINAL| ) ( |FIRST| ) ( |FIRST_VALUE| ) ( |FLAG| ) ( |FLOAT| ) ( |FLOOR| ) ( |FOLLOWING| ) ( |FOR| ) ( |FOREACH| ) ( |FOREIGN| ) ( |FORTRAN| ) ( |FOUND| ) ( |FRAME_ROW| ) ( |FREE| ) ( |FROM| ) ( |FULL| ) ( |FUNCTION| ) ( |FUSION| ) ( |GENERAL| ) ( |GENERATED| ) ( |GET| ) ( |GLOBAL| ) ( |GO| ) ( |GOTO| ) ( |GRANT| ) ( |GRANTED| ) ( |GRAPH| ) ( |GROUP| ) ( |GROUPING| ) ( |GROUPS| ) ( |HAVING| ) ( |HIERARCHY| ) ( |HOLD| ) ( |HOOK| ) ( |HOUR| ) ( |IDENTITY| ) ( |IF| ) ( |IGNORE| ) ( |IMMEDIATE| ) ( |IMMEDIATELY| ) ( |IMPLEMENTATION| ) ( |IMPORT| ) ( |IN| ) ( |INCLUDE| ) ( |INCLUDING| ) ( |INCREMENT| ) ( |INDICATOR| ) ( |INITIALLY| ) ( |INNER| ) ( |INOUT| ) ( |INPUT| ) ( |INSENSITIVE| ) ( |INSERT| ) ( |INSTANCE| ) ( |INSTANTIABLE| ) ( |INSTEAD| ) ( |INT| ) ( |INTEGER| ) ( |INTERSECT| ) ( |INTERSECTION| ) ( |INTERVAL| ) ( |INTO| ) ( |INVOKER| ) ( |IS| ) ( |ISOLATION| ) ( |JOIN| ) ( |KEY| ) ( |KEY| ) ( |KEY_MEMBER| ) ( |KEY_TYPE| ) ( |LAG| ) ( |LANGUAGE| ) ( |LARGE| ) ( |LAST| ) ( |LAST_VALUE| ) ( |LATERAL| ) ( |LEAD| ) ( |LEADING| ) ( |LEFT| ) ( |LENGTH| ) ( |LEVEL| ) ( |LIKE| ) ( |LIKE_REGEX| ) ( |LIST| ) ( |LN| ) ( |LOCAL| ) ( |LOCALTIME| ) ( |LOCALTIMESTAMP| ) ( |LOCATOR| ) ( |LOWER| ) ( |MAP| ) ( |MATCH| ) ( |MATCHED| ) ( |MAX| ) ( |MAXVALUE| ) ( |MEMBER| ) ( |MERGE| ) ( |MESSAGE_LENGTH| ) ( |MESSAGE_OCTET_LENGTH| ) ( |MESSAGE_TEXT| ) ( |METHOD| ) ( |MIN| ) ( |MINUTE| ) ( |MINVALUE| ) ( |MOD| ) ( |MODIFIES| ) ( |MODULE| ) ( |MONTH| ) ( |MORE| ) ( |MULTISET| ) ( |MUMPS| ) ( |NAME| ) ( |NAMES| ) ( |NAMESPACE| ) ( |NATIONAL| ) ( |NATURAL| ) ( |NCHAR| ) ( |NCLOB| ) ( |NESTING| ) ( |NEW| ) ( |NEXT| ) ( |NFC| ) ( |NFD| ) ( |NFKC| ) ( |NFKD| ) ( |NO| ) ( |NONE| ) ( |NORMALIZE| ) ( |NORMALIZED| ) ( |NOT| ) ( |NTH_VALUE| ) ( |NTILE| ) ( |NULL| ) ( |NULLABLE| ) ( |NULLIF| ) ( |NULLS| ) ( |NUMBER| ) ( |NUMERIC| ) ( |NVARCHAR| ) ( |OBJECT| ) ( |OCCURRENCES_REGEX| ) ( |OCTET_LENGTH| ) ( |OCTETS| ) ( |OF| ) ( |OFFSET| ) ( |OLD| ) ( |ON| ) ( |ONLY| ) ( |OPEN| ) ( |OPTION| ) ( |OPTIONS| ) ( |OR| ) ( |ORDER| ) ( |ORDERING| ) ( |ORDINALITY| ) ( |OTHERS| ) ( |OUT| ) ( |OUTER| ) ( |OUTPUT| ) ( |OVER| ) ( |OVERLAPS| ) ( |OVERLAY| ) ( |OVERRIDING| ) ( |PAD| ) ( |PARAMETER| ) ( |PARAMETER_MODE| ) ( |PARAMETER_NAME| ) ( |PARAMETER_ORDINAL_POSITION| ) ( |PARAMETER_SPECIFIC_CATALOG| ) ( |PARAMETER_SPECIFIC_NAME| ) ( |PARAMETER_SPECIFIC_SCHEMA| ) ( |PARTIAL| ) ( |PARTITION| ) ( |PASCAL| ) ( |PATH| ) ( |PERCENT| ) ( |PERCENT_RANK| ) ( |PERCENTILE_CONT| ) ( |PERCENTILE_DISC| ) ( |PERIOD| ) ( |PERSISTENT| ) ( |PLACING| ) ( |PLI| ) ( |PORTION| ) ( |POSITION| ) ( |POSITION_REGEX| ) ( |POWER| ) ( |PRECEDES| ) ( |PRECEDING| ) ( |PRECISION| ) ( |PREPARE| ) ( |PRESERVE| ) ( |PRIMARY| ) ( |PRIOR| ) ( |PRIVILEGES| ) ( |PROCEDURE| ) ( |PUBLIC| ) ( |RANGE| ) ( |RANK| ) ( |READ| ) ( |READS| ) ( |REAL| ) ( |RECURSIVE| ) ( |REF| ) ( |REFERENCES| ) ( |REFERENCING| ) ( |REGR_AVGX| ) ( |REGR_AVGY| ) ( |REGR_COUNT| ) ( |REGR_INTERCEPT| ) ( |REGR_R2| ) ( |REGR_SLOPE| ) ( |REGR_SXX| ) ( |REGR_SXY| ) ( |REGR_SYY| ) ( |RELATIVE| ) ( |RELEASE| ) ( |REPEATABLE| ) ( |RESPECT| ) ( |RESTART| ) ( |RESTRICT| ) ( |RESULT| ) ( |RETURN| ) ( |RETURNED_CARDINALITY| ) ( |RETURNED_LENGTH| ) ( |RETURNED_OCTET_LENGTH| ) ( |RETURNED_SQLSTATE| ) ( |RETURNS| ) ( |REVOKE| ) ( |RIGHT| ) ( |ROLE| ) ( |ROLLBACK| ) ( |ROLLUP| ) ( |ROUTINE| ) ( |ROUTINE_CATALOG| ) ( |ROUTINE_NAME| ) ( |ROUTINE_SCHEMA| ) ( |ROW| ) ( |ROW_COUNT| ) ( |ROW_NUMBER| ) ( |ROWS| ) ( |SAVEPOINT| ) ( |SCALE| ) ( |SCHEMA| ) ( |SCHEMA_NAME| ) ( |SCOPE| ) ( |SCOPE_CATALOG| ) ( |SCOPE_NAME| ) ( |SCOPE_SCHEMA| ) ( |SCROLL| ) ( |SEARCH| ) ( |SECOND| ) ( |SECTION| ) ( |SECURITY| ) ( |SELECT| ) ( |SELF| ) ( |SENSITIVE| ) ( |SEQUENCE| ) ( |SERIALIZABLE| ) ( |SERVER_NAME| ) ( |SESSION| ) ( |SESSION_USER| ) ( |SESSION_CONTEXT| ) ( |SET| ) ( |SETS| ) ( |SIMILAR| ) ( |SIMPLE| ) ( |SIZE| ) ( |SMALLINT| ) ( |SOME| ) ( |SOURCE| ) ( |SPACE| ) ( |SPECIFIC| ) ( |SPECIFIC_NAME| ) ( |SPECIFICTYPE| ) ( |SQL| ) ( |SQLEXCEPTION| ) ( |SQLSTATE| ) ( |SQLWARNING| ) ( |SQRT| ) ( |ST_CIRCULARSTRING| ) ( |ST_COMPOUNDCURVE| ) ( |ST_CURVE| ) ( |ST_CURVEPOLYGON| ) ( |ST_GEOMCOLLECTION| ) ( |ST_GEOMETRY| ) ( |ST_LINESTRING| ) ( |ST_MULTICURVE| ) ( |ST_MULTILINESTRING| ) ( |ST_MULTIPOINT| ) ( |ST_MULTIPOLYGON| ) ( |ST_MULTISURFACE| ) ( |ST_POINT| ) ( |ST_POLYGON| ) ( |ST_SURFACE| ) ( |START| ) ( |STATE| ) ( |STATEMENT| ) ( |STATIC| ) ( |STDDEV_POP| ) ( |STDDEV_SAMP| ) ( |STRUCTURE| ) ( |STYLE| ) ( |SUBCLASS_ORIGIN| ) ( |SUBMULTISET| ) ( |SUBSTRING| ) ( |SUBSTRING_REGEX| ) ( |SUCCEEDS| ) ( |SUM| ) ( |SWITCH| ) ( |SYMMETRIC| ) ( |SYSTEM| ) ( |SYSTEM_TIME| ) ( |SYSTEM_USER| ) ( |TABLE| ) ( |TABLE_NAME| ) ( |TABLESAMPLE| ) ( |TEMPORARY| ) ( |TEXT| ) ( |THEN| ) ( |TIES| ) ( |TIME| ) ( |TIMESTAMP| ) ( |TIMEZONE_HOUR| ) ( |TIMEZONE_MINUTE| ) ( |TO| ) ( |TOP_LEVEL_COUNT| ) ( |TRAILING| ) ( |TRANSACTION| ) ( |TRANSACTION_ACTIVE| ) ( |TRANSACTIONS_COMMITTED| ) ( |TRANSACTIONS_ROLLED_BACK| ) ( |TRANSFORM| ) ( |TRANSFORMS| ) ( |TRANSLATE| ) ( |TRANSLATE_REGEX| ) ( |TRANSLATION| ) ( |TREAT| ) ( |TREE| ) ( |TRIGGER| ) ( |TRIGGER_CATALOG| ) ( |TRIGGER_NAME| ) ( |TRIGGER_SCHEMA| ) ( |TRIM| ) ( |TRIM_ARRAY| ) ( |TRUE| ) ( |TRUNCATE| ) ( |TYPE| ) ( |UESCAPE| ) ( |UNBOUNDED| ) ( |UNCOMMITTED| ) ( |UNDER| ) ( |UNION| ) ( |UNIQUE| ) ( |UNKNOWN| ) ( |UNNAMED| ) ( |UNNEST| ) ( |UPDATE| ) ( |UPPER| ) ( |USAGE| ) ( |USER| ) ( |USER_DEFINED_TYPE_CATALOG| ) ( |USER_DEFINED_TYPE_CODE| ) ( |USER_DEFINED_TYPE_NAME| ) ( |USER_DEFINED_TYPE_SCHEMA| ) ( |USING| ) ( |VALUE| ) ( |VALUE_OF| ) ( |VALUES| ) ( |VAR_POP| ) ( |VAR_SAMP| ) ( |VARBINARY| ) ( |VARCHAR| ) ( |VARYING| ) ( |VERSIONING| ) ( |VERTEX| ) ( |VIEW| ) ( |VOID| ) ( |WHEN| ) ( |WHENEVER| ) ( |WHERE| ) ( |WHILE| ) ( |WIDTH_BUCKET| ) ( |WINDOW| ) ( |WITH| ) ( |WITHIN| ) ( |WITHOUT| ) ( |WORK| ) ( |WRITE| ) ( |YEAR| ) ( |ZONE| ) ). LOOP AT lt_keywords REFERENCE INTO lr_keyword. ls_keywords-keyword = lr_keyword->*. INSERT ls_keywords INTO TABLE rt_keywords. ENDLOOP. ENDMETHOD. METHOD constructor. mt_keywords = get_keywords( ). ENDMETHOD. METHOD zif_app_keyword_scanner~scan_keyword. IF zcl_app_utilities=>is_sqlscript_token( iv_sqlscript = ir_token_ext->sqlscript ) = abap_false OR zcl_app_utilities=>is_comment( iv_comment = ir_token_ext->comment ) = abap_true OR ir_token_ext->str_up IS INITIAL. RETURN. ENDIF. CASE ir_token_ext->str_up(1). WHEN '''' OR '"'. RETURN. ENDCASE. ir_token_ext->str = ir_token_ext->str_up. READ TABLE mt_keywords TRANSPORTING NO FIELDS WITH TABLE KEY keyword = ir_token_ext->str_up. IF sy-subrc <> 0. TRANSLATE ir_token_ext->str TO LOWER CASE. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 1324, 62, 2539, 4775, 62, 35836, 1008, 62, 321, 26059, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 1324, 62, 2539, 4775, 62, 35836, 1008, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 2539, 10879, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 17034, 62, 2539, 10879, 8, 41876, 1976, 1324, 62, 83, 62, 2539, 10879, 62, 30619, 13, 198, 220, 220, 220, 42865, 45079, 62, 2539, 10879, 41876, 1976, 1324, 62, 83, 62, 2539, 10879, 62, 30619, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 1324, 62, 2539, 4775, 62, 35836, 1008, 62, 321, 26059, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 651, 62, 2539, 10879, 13, 628, 220, 220, 220, 42865, 300, 83, 62, 2539, 10879, 41876, 49053, 9795, 43679, 3963, 4731, 13, 198, 220, 220, 220, 42865, 300, 81, 62, 2539, 4775, 41876, 4526, 37, 5390, 4731, 13, 198, 220, 220, 220, 42865, 43979, 62, 2539, 10879, 41876, 1976, 1324, 62, 82, 62, 2539, 10879, 13, 628, 220, 220, 220, 300, 83, 62, 2539, 10879, 796, 26173, 8924, 1303, 7, 357, 930, 32, 4462, 91, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 930, 32, 4462, 3535, 37780, 91, 1267, 198, 220, 220, 357, 930, 44710, 91, 1267, 198, 220, 220, 357, 930, 26853, 91, 1267, 198, 220, 220, 357, 930, 29266, 91, 1267, 198, 220, 220, 357, 930, 2885, 23678, 91, 1267, 198, 220, 220, 357, 930, 8579, 5781, 91, 1267, 198, 220, 220, 357, 930, 7036, 91, 1267, 198, 220, 220, 357, 930, 7036, 4503, 6158, 91, 1267, 198, 220, 220, 357, 930, 1847, 5781, 91, 1267, 198, 220, 220, 357, 930, 1847, 42451, 91, 1267, 198, 220, 220, 357, 930, 6981, 91, 1267, 198, 220, 220, 357, 930, 31827, 91, 1267, 198, 220, 220, 357, 930, 12203, 91, 1267, 198, 220, 220, 357, 930, 1503, 30631, 91, 1267, 198, 220, 220, 357, 930, 1503, 30631, 62, 4760, 38, 91, 1267, 198, 220, 220, 357, 930, 1503, 30631, 62, 22921, 62, 34, 9795, 17961, 9050, 91, 1267, 198, 220, 220, 357, 930, 1921, 91, 1267, 198, 220, 220, 357, 930, 42643, 91, 1267, 198, 220, 220, 357, 930, 1921, 16938, 2043, 9306, 91, 1267, 198, 220, 220, 357, 930, 10705, 17395, 2849, 91, 1267, 198, 220, 220, 357, 930, 10705, 16284, 10979, 91, 1267, 198, 220, 220, 357, 930, 26483, 12038, 2767, 41132, 91, 1267, 198, 220, 220, 357, 930, 1404, 91, 1267, 198, 220, 220, 357, 930, 1404, 2662, 2149, 91, 1267, 198, 220, 220, 357, 930, 1404, 5446, 9865, 37780, 91, 1267, 198, 220, 220, 357, 930, 1404, 5446, 9865, 3843, 1546, 91, 1267, 198, 220, 220, 357, 930, 32, 24318, 1581, 14887, 6234, 91, 1267, 198, 220, 220, 357, 930, 10116, 38, 91, 1267, 198, 220, 220, 357, 930, 12473, 30818, 91, 1267, 198, 220, 220, 357, 930, 33, 43312, 91, 1267, 198, 220, 220, 357, 930, 33, 43312, 62, 10913, 10067, 91, 1267, 198, 220, 220, 357, 930, 33, 43312, 62, 30709, 17941, 91, 1267, 198, 220, 220, 357, 930, 13246, 45, 2606, 3069, 40, 91, 1267, 198, 220, 220, 357, 930, 33, 2767, 8845, 1677, 91, 1267, 198, 220, 220, 357, 930, 3483, 38, 12394, 91, 1267, 198, 220, 220, 357, 930, 33, 1268, 13153, 91, 1267, 198, 220, 220, 357, 930, 9148, 9864, 91, 1267, 198, 220, 220, 357, 930, 8202, 3535, 91, 1267, 198, 220, 220, 357, 930, 33, 6684, 2538, 1565, 91, 1267, 198, 220, 220, 357, 930, 33, 26946, 91, 1267, 198, 220, 220, 357, 930, 33, 15675, 4221, 91, 1267, 198, 220, 220, 357, 930, 40438, 10206, 91, 1267, 198, 220, 220, 357, 930, 17513, 91, 1267, 198, 220, 220, 357, 930, 34, 7036, 91, 1267, 198, 220, 220, 357, 930, 34, 7036, 1961, 91, 1267, 198, 220, 220, 357, 930, 34, 9795, 17961, 9050, 91, 1267, 198, 220, 220, 357, 930, 34, 42643, 19266, 91, 1267, 198, 220, 220, 357, 930, 34, 42643, 2885, 1961, 91, 1267, 198, 220, 220, 357, 930, 34, 11159, 91, 1267, 198, 220, 220, 357, 930, 44647, 91, 1267, 198, 220, 220, 357, 930, 34, 1404, 1847, 7730, 62, 20608, 91, 1267, 198, 220, 220, 357, 930, 5222, 4146, 91, 1267, 198, 220, 220, 357, 930, 5222, 4146, 2751, 91, 1267, 198, 220, 220, 357, 930, 3398, 29833, 91, 1267, 198, 220, 220, 357, 930, 38019, 91, 1267, 198, 220, 220, 357, 930, 38019, 62, 43, 49494, 91, 1267, 198, 220, 220, 357, 930, 38019, 2246, 5781, 91, 1267, 198, 220, 220, 357, 930, 38019, 2246, 5781, 62, 43, 49494, 91, 1267, 198, 220, 220, 357, 930, 38019, 2246, 5781, 62, 28480, 62, 34, 1404, 1847, 7730, 91, 1267, 198, 220, 220, 357, 930, 38019, 2246, 5781, 62, 28480, 62, 20608, 91, 1267, 198, 220, 220, 357, 930, 38019, 2246, 5781, 62, 28480, 62, 50, 3398, 27630, 91, 1267, 198, 220, 220, 357, 930, 38019, 2246, 5781, 8808, 19505, 91, 1267, 198, 220, 220, 357, 930, 38019, 10659, 4877, 91, 1267, 198, 220, 220, 357, 930, 50084, 91, 1267, 198, 220, 220, 357, 930, 31631, 62, 1581, 3528, 1268, 91, 1267, 198, 220, 220, 357, 930, 5097, 9864, 91, 1267, 198, 220, 220, 357, 930, 32737, 91, 1267, 198, 220, 220, 357, 930, 8220, 1847, 1546, 5222, 91, 1267, 198, 220, 220, 357, 930, 8220, 33, 3535, 91, 1267, 198, 220, 220, 357, 930, 8220, 3069, 6158, 91, 1267, 198, 220, 220, 357, 930, 8220, 3069, 6234, 91, 1267, 198, 220, 220, 357, 930, 8220, 3069, 6234, 62, 34, 1404, 1847, 7730, 91, 1267, 198, 220, 220, 357, 930, 8220, 3069, 6234, 62, 20608, 91, 1267, 198, 220, 220, 357, 930, 8220, 3069, 6234, 62, 50, 3398, 27630, 91, 1267 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*---------------------------------------------------------------------* * view related data declarations * generation date: 15.05.2019 at 19:12:53 * view maintenance generator version: #001407# *---------------------------------------------------------------------* *...processing: ZAGUNITTESTV....................................* TABLES: ZAGUNITTESTV, *ZAGUNITTESTV. "view work areas CONTROLS: TCTRL_ZAGUNITTESTV TYPE TABLEVIEW USING SCREEN '0001'. DATA: BEGIN OF STATUS_ZAGUNITTESTV. "state vector INCLUDE STRUCTURE VIMSTATUS. DATA: END OF STATUS_ZAGUNITTESTV. * Table for entries selected to show on screen DATA: BEGIN OF ZAGUNITTESTV_EXTRACT OCCURS 0010. INCLUDE STRUCTURE ZAGUNITTESTV. INCLUDE STRUCTURE VIMFLAGTAB. DATA: END OF ZAGUNITTESTV_EXTRACT. * Table for all entries loaded from database DATA: BEGIN OF ZAGUNITTESTV_TOTAL OCCURS 0010. INCLUDE STRUCTURE ZAGUNITTESTV. INCLUDE STRUCTURE VIMFLAGTAB. DATA: END OF ZAGUNITTESTV_TOTAL. *.........table declarations:.................................* TABLES: ZAGUNITTEST .
[ 9, 10097, 30934, 9, 198, 9, 220, 220, 220, 1570, 3519, 1366, 31713, 198, 9, 220, 220, 5270, 3128, 25, 1315, 13, 2713, 13, 23344, 379, 678, 25, 1065, 25, 4310, 198, 9, 220, 220, 1570, 9262, 17301, 2196, 25, 1303, 405, 1415, 2998, 2, 198, 9, 10097, 30934, 9, 198, 9, 986, 36948, 25, 1168, 4760, 4944, 22470, 6465, 53, 8864, 1106, 9, 198, 5603, 9148, 1546, 25, 1168, 4760, 4944, 22470, 6465, 53, 11, 1635, 57, 4760, 4944, 22470, 6465, 53, 13, 366, 1177, 670, 3006, 198, 10943, 5446, 3535, 50, 25, 309, 4177, 7836, 62, 57, 4760, 4944, 22470, 6465, 53, 198, 25216, 43679, 28206, 1294, 2751, 6374, 2200, 1677, 705, 18005, 4458, 198, 26947, 25, 347, 43312, 3963, 15486, 2937, 62, 57, 4760, 4944, 22470, 6465, 53, 13, 366, 5219, 15879, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3268, 5097, 52, 7206, 19269, 18415, 11335, 569, 3955, 35744, 2937, 13, 198, 26947, 25, 23578, 3963, 15486, 2937, 62, 57, 4760, 4944, 22470, 6465, 53, 13, 198, 9, 8655, 329, 12784, 6163, 284, 905, 319, 3159, 198, 26947, 25, 347, 43312, 3963, 1168, 4760, 4944, 22470, 6465, 53, 62, 6369, 5446, 10659, 440, 4093, 4261, 50, 3571, 940, 13, 198, 1268, 5097, 52, 7206, 19269, 18415, 11335, 1168, 4760, 4944, 22470, 6465, 53, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3268, 5097, 52, 7206, 19269, 18415, 11335, 569, 3955, 38948, 5603, 33, 13, 198, 26947, 25, 23578, 3963, 1168, 4760, 4944, 22470, 6465, 53, 62, 6369, 5446, 10659, 13, 198, 9, 8655, 329, 477, 12784, 9639, 422, 6831, 198, 26947, 25, 347, 43312, 3963, 1168, 4760, 4944, 22470, 6465, 53, 62, 51, 27510, 440, 4093, 4261, 50, 3571, 940, 13, 198, 1268, 5097, 52, 7206, 19269, 18415, 11335, 1168, 4760, 4944, 22470, 6465, 53, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3268, 5097, 52, 7206, 19269, 18415, 11335, 569, 3955, 38948, 5603, 33, 13, 198, 26947, 25, 23578, 3963, 1168, 4760, 4944, 22470, 6465, 53, 62, 51, 27510, 13, 198, 198, 9, 34617, 11487, 31713, 25, 27754, 34617, 9, 198, 5603, 9148, 1546, 25, 1168, 4760, 4944, 22470, 6465, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Sample for Baking with OO Goodness - the Factory Pattern *& based on Head First Design Patterns: Chapter 4 *&---------------------------------------------------------------------* REPORT yy_head_first_factory_abstract. *&---------------------------------------------------------------------* *& Abstract pizza ingredient: type of dough *&---------------------------------------------------------------------* *& For pizza ingredients, we've got the same product families (dough, *& sauce, cheese, seafood, meat, and veggie toppings) but different *& implementations based on each region. *&---------------------------------------------------------------------* INTERFACE lif_dough. METHODS name RETURNING VALUE(rv_name) TYPE string. ENDINTERFACE. *&---------------------------------------------------------------------* *& Abstract pizza ingredient: type of sauce *&---------------------------------------------------------------------* INTERFACE lif_sauce. METHODS name RETURNING VALUE(rv_name) TYPE string. ENDINTERFACE. *&---------------------------------------------------------------------* *& Abstract pizza ingredient: type of topping *&---------------------------------------------------------------------* INTERFACE lif_topping. METHODS name RETURNING VALUE(rv_name) TYPE string. ENDINTERFACE. *&---------------------------------------------------------------------* *& Abstract pizza ingredient: type of cheese topping *&---------------------------------------------------------------------* INTERFACE lif_cheese. INTERFACES lif_topping. ENDINTERFACE. *&---------------------------------------------------------------------* *& Abstract pizza ingredient: type of seafood topping *&---------------------------------------------------------------------* INTERFACE lif_seafood. INTERFACES lif_topping. ENDINTERFACE. *&---------------------------------------------------------------------* *& Abstract pizza ingredient: type of meat topping *&---------------------------------------------------------------------* INTERFACE lif_meat. INTERFACES lif_topping. ENDINTERFACE. *&---------------------------------------------------------------------* *& Abstract pizza ingredient: type of veggie topping *&---------------------------------------------------------------------* INTERFACE lif_veggie. INTERFACES lif_topping. ENDINTERFACE. *&---------------------------------------------------------------------* *& Concrete pizza ingredient: type of dough - thin crust *&---------------------------------------------------------------------* *& We will have lots of new classes here, one per ingredient. *&---------------------------------------------------------------------* CLASS lcl_thin_crust_dough DEFINITION FINAL. PUBLIC SECTION. INTERFACES lif_dough. ENDCLASS. CLASS lcl_thin_crust_dough IMPLEMENTATION. METHOD lif_dough~name. rv_name = |Thin Crust Dough|. ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete pizza ingredient: type of dough - thick crust *&---------------------------------------------------------------------* CLASS lcl_thick_crust_dough DEFINITION FINAL. PUBLIC SECTION. INTERFACES lif_dough. ENDCLASS. CLASS lcl_thick_crust_dough IMPLEMENTATION. METHOD lif_dough~name. rv_name = |Extra Thick Crust Dough|. ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete pizza ingredient: type of sauce - marinara *&---------------------------------------------------------------------* CLASS lcl_marinara_sauce DEFINITION FINAL. PUBLIC SECTION. INTERFACES lif_sauce. ENDCLASS. CLASS lcl_marinara_sauce IMPLEMENTATION. METHOD lif_sauce~name. rv_name = |Marinara Sauce|. ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete pizza ingredient: type of sauce - plum tomato *&---------------------------------------------------------------------* CLASS lcl_plum_tomato_sauce DEFINITION FINAL. PUBLIC SECTION. INTERFACES lif_sauce. ENDCLASS. CLASS lcl_plum_tomato_sauce IMPLEMENTATION. METHOD lif_sauce~name. rv_name = |Plum Tomato Sauce|. ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete pizza ingredient: type of cheese - mozzarella *&---------------------------------------------------------------------* CLASS lcl_mozzarella_cheese DEFINITION FINAL. PUBLIC SECTION. INTERFACES lif_cheese. ENDCLASS. CLASS lcl_mozzarella_cheese IMPLEMENTATION. METHOD lif_topping~name. rv_name = |Shredded Mozzarella Cheese|. ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete pizza ingredient: type of cheese - reggiano *&---------------------------------------------------------------------* CLASS lcl_reggiano_cheese DEFINITION FINAL. PUBLIC SECTION. INTERFACES lif_cheese. ENDCLASS. CLASS lcl_reggiano_cheese IMPLEMENTATION. METHOD lif_topping~name. rv_name = |Grated Reggiano Cheese|. ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete pizza ingredient: type of seafood - fresh clams *&---------------------------------------------------------------------* CLASS lcl_fresh_clams DEFINITION FINAL. PUBLIC SECTION. INTERFACES lif_seafood. ENDCLASS. CLASS lcl_fresh_clams IMPLEMENTATION. METHOD lif_topping~name. rv_name = |Fresh Clams from Long Island Sound|. ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete pizza ingredient: type of seafood - frozen clams *&---------------------------------------------------------------------* CLASS lcl_frozen_clams DEFINITION FINAL. PUBLIC SECTION. INTERFACES lif_seafood. ENDCLASS. CLASS lcl_frozen_clams IMPLEMENTATION. METHOD lif_topping~name. rv_name = |Frozen Clams from Chesapeake Bay|. ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete pizza ingredient: type of meat - sliced pepperoni *&---------------------------------------------------------------------* CLASS lcl_sliced_pepperoni DEFINITION FINAL. PUBLIC SECTION. INTERFACES lif_meat. ENDCLASS. CLASS lcl_sliced_pepperoni IMPLEMENTATION. METHOD lif_topping~name. rv_name = |Sliced Pepperoni|. ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete pizza ingredient: type of veggie - black olives *&---------------------------------------------------------------------* CLASS lcl_black_olives DEFINITION FINAL. PUBLIC SECTION. INTERFACES lif_veggie. ENDCLASS. CLASS lcl_black_olives IMPLEMENTATION. METHOD lif_topping~name. rv_name = |Black Olives|. ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete pizza ingredient: type of veggie - eggplant *&---------------------------------------------------------------------* CLASS lcl_eggplant DEFINITION FINAL. PUBLIC SECTION. INTERFACES lif_veggie. ENDCLASS. CLASS lcl_eggplant IMPLEMENTATION. METHOD lif_topping~name. rv_name = |Eggplant|. ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete pizza ingredient: type of veggie - garlic *&---------------------------------------------------------------------* CLASS lcl_garlic DEFINITION FINAL. PUBLIC SECTION. INTERFACES lif_veggie. ENDCLASS. CLASS lcl_garlic IMPLEMENTATION. METHOD lif_topping~name. rv_name = |Garlic|. ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete pizza ingredient: type of veggie - mushrooms *&---------------------------------------------------------------------* CLASS lcl_mushroom DEFINITION FINAL. PUBLIC SECTION. INTERFACES lif_veggie. ENDCLASS. CLASS lcl_mushroom IMPLEMENTATION. METHOD lif_topping~name. rv_name = |Mushrooms|. ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete pizza ingredient: type of veggie - onions *&---------------------------------------------------------------------* CLASS lcl_onion DEFINITION FINAL. PUBLIC SECTION. INTERFACES lif_veggie. ENDCLASS. CLASS lcl_onion IMPLEMENTATION. METHOD lif_topping~name. rv_name = |Onions|. ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete pizza ingredient: type of veggie - red pepper *&---------------------------------------------------------------------* CLASS lcl_red_pepper DEFINITION FINAL. PUBLIC SECTION. INTERFACES lif_veggie. ENDCLASS. CLASS lcl_red_pepper IMPLEMENTATION. METHOD lif_topping~name. rv_name = |Red Pepper|. ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete pizza ingredient: type of veggie - spinach *&---------------------------------------------------------------------* CLASS lcl_spinach DEFINITION FINAL. PUBLIC SECTION. INTERFACES lif_veggie. ENDCLASS. CLASS lcl_spinach IMPLEMENTATION. METHOD lif_topping~name. rv_name = |Spinach|. ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& The abstract Pizza Ingredient Factory is the interface that *& defines how to make a family of related products - all of the *& different ingredients we need to make a pizza in each region. *&---------------------------------------------------------------------* *& If we'd had some common 'machinery' to implement in each instance *& of the factory, we could have made this an abstract class instead. *&---------------------------------------------------------------------* INTERFACE lif_pizza_ingredient_factory. TYPES tt_veggies TYPE STANDARD TABLE OF REF TO lif_veggie WITH EMPTY KEY. METHODS: " For each ingredient we define a create method in our interface. create_dough RETURNING VALUE(ro_dough) TYPE REF TO lif_dough, create_sauce RETURNING VALUE(ro_sauce) TYPE REF TO lif_sauce, create_cheese RETURNING VALUE(ro_cheese) TYPE REF TO lif_cheese, create_clams RETURNING VALUE(ro_clams) TYPE REF TO lif_seafood, create_pepperoni RETURNING VALUE(ro_meat) TYPE REF TO lif_meat, create_veggies RETURNING VALUE(rt_veggies) TYPE tt_veggies. ENDINTERFACE. *&---------------------------------------------------------------------* *& The NY ingredient factory implements the same inteface that is *& used for all pizza ingredient factories. *&---------------------------------------------------------------------* *& The job of the concrete pizza factory is to make pizza ingredients. *& Each factory knows how to create the right objects for its region. *&---------------------------------------------------------------------* CLASS lcl_ny_ingredient_factory DEFINITION FINAL. PUBLIC SECTION. INTERFACES lif_pizza_ingredient_factory. ENDCLASS. CLASS lcl_ny_ingredient_factory IMPLEMENTATION. METHOD lif_pizza_ingredient_factory~create_dough. " For each ingredient in the family, we create the New York version. ro_dough = NEW lcl_thin_crust_dough( ). ENDMETHOD. METHOD lif_pizza_ingredient_factory~create_sauce. " This method returns the sauce that is used in its region. " For the NY ingredient factory we get marinara sauce. ro_sauce = NEW lcl_marinara_sauce( ). ENDMETHOD. METHOD lif_pizza_ingredient_factory~create_cheese. ro_cheese = NEW lcl_reggiano_cheese( ). ENDMETHOD. METHOD lif_pizza_ingredient_factory~create_clams. " New York is on the coast; it gets fresh clams. ro_clams = NEW lcl_fresh_clams( ). ENDMETHOD. METHOD lif_pizza_ingredient_factory~create_pepperoni. " The best sliced pepperoni. This is shared between NY and Chicago. ro_meat = NEW lcl_sliced_pepperoni( ). ENDMETHOD. METHOD lif_pizza_ingredient_factory~create_veggies. " For veggies, we return an internal table of Veggie instances. " Here we've hardcoded the veggie types. We could make this more " sophisticated, but that doesn't really add anything to learning " the factory pattern, so we'll keep it simple. rt_veggies = VALUE #( ( NEW lcl_garlic( ) ) ( NEW lcl_onion( ) ) ( NEW lcl_mushroom( ) ) ( NEW lcl_red_pepper( ) ) ). ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& The Chicago ingredient factory also implements the same inteface *& that is used for all pizza ingredient factories. *&---------------------------------------------------------------------* CLASS lcl_chicago_ingredient_factory DEFINITION FINAL. PUBLIC SECTION. INTERFACES lif_pizza_ingredient_factory. ENDCLASS. CLASS lcl_chicago_ingredient_factory IMPLEMENTATION. METHOD lif_pizza_ingredient_factory~create_dough. " For each ingredient in the family, we create the Chicago version. ro_dough = NEW lcl_thick_crust_dough( ). ENDMETHOD. METHOD lif_pizza_ingredient_factory~create_sauce. " For the Chicago ingredient factory we get plum tomato sauce. ro_sauce = NEW lcl_plum_tomato_sauce( ). ENDMETHOD. METHOD lif_pizza_ingredient_factory~create_cheese. ro_cheese = NEW lcl_mozzarella_cheese( ). ENDMETHOD. METHOD lif_pizza_ingredient_factory~create_clams. " Chicago has to settle for frozen clams. ro_clams = NEW lcl_frozen_clams( ). ENDMETHOD. METHOD lif_pizza_ingredient_factory~create_pepperoni. " Make sure to use the same sliced pepperoni in the Chicago factory. ro_meat = NEW lcl_sliced_pepperoni( ). ENDMETHOD. METHOD lif_pizza_ingredient_factory~create_veggies. rt_veggies = VALUE #( ( NEW lcl_black_olives( ) ) ( NEW lcl_spinach( ) ) ( NEW lcl_eggplant( ) ) ). ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Encapsulated pizza cutting behavior stategies *&---------------------------------------------------------------------* *& We would also like to change how the pizza is cut for each region. *&---------------------------------------------------------------------* INTERFACE lif_cut_pizza_behavior. METHODS do_cut. ENDINTERFACE. *&---------------------------------------------------------------------* *& Here's the default implementation of cutting standard pizzas *&---------------------------------------------------------------------* CLASS lcl_cut_pizza_standard DEFINITION FINAL. PUBLIC SECTION. INTERFACES lif_cut_pizza_behavior. ENDCLASS. CLASS lcl_cut_pizza_standard IMPLEMENTATION. METHOD lif_cut_pizza_behavior~do_cut. cl_demo_output=>write( |Cut the pizza into diagonal slices| ). ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& And here's the implementation for cutting deep dish pizzas *&---------------------------------------------------------------------* CLASS lcl_cut_pizza_deep_dish DEFINITION FINAL. PUBLIC SECTION. INTERFACES lif_cut_pizza_behavior. ENDCLASS. CLASS lcl_cut_pizza_deep_dish IMPLEMENTATION. METHOD lif_cut_pizza_behavior~do_cut. cl_demo_output=>write( |Cut the pizza into square slices| ). ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& We're still defining Pizza as an abstract class with some helpful *& implementations that can be overridden. *&---------------------------------------------------------------------* CLASS lcl_pizza DEFINITION ABSTRACT. PUBLIC SECTION. METHODS: constructor IMPORTING iv_name TYPE string, name RETURNING VALUE(rv_name) TYPE string, " We've now made the prepare method abstract. This is where we " are going to collect the ingredients needed for the pizza, " which of cource will come from the ingredient factory. prepare ABSTRACT " To make a pizza now, we need a factory to provide the " ingredients. So each Pizza class gets a factory passed " into its prepare method. IMPORTING io_factory TYPE REF TO lif_pizza_ingredient_factory, " Other methods remain the same, with the exception of prepare(). bake, cut, box, set_cut_behavior IMPORTING io_cb TYPE REF TO lif_cut_pizza_behavior. PROTECTED SECTION. DATA: " Each pizza has a name, a set of ingredients that are used in " its preparation, and a cutting behavior strategy. mv_name TYPE string, mo_dough TYPE REF TO lif_dough, mo_sauce TYPE REF TO lif_sauce, mt_toppings TYPE STANDARD TABLE OF REF TO lif_topping WITH EMPTY KEY, mo_cut_behavior TYPE REF TO lif_cut_pizza_behavior. ENDCLASS. CLASS lcl_pizza IMPLEMENTATION. METHOD constructor. mv_name = iv_name. mo_cut_behavior = NEW lcl_cut_pizza_standard( ). " default behavior ENDMETHOD. METHOD name. rv_name = mv_name. ENDMETHOD. METHOD bake. cl_demo_output=>write( |Bake for 25 minutes at 350| ). ENDMETHOD. METHOD cut. mo_cut_behavior->do_cut( ). " delegate to the cut behavior class ENDMETHOD. METHOD box. cl_demo_output=>write( |Place pizza in official Pizza Store box| ). ENDMETHOD. METHOD set_cut_behavior. mo_cut_behavior = io_cb. ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete product: Cheese pizza *&---------------------------------------------------------------------* *& Each product needs to implement the Pizza interface (which in *& this case means 'inherit from the abstract Pizza class') and *& also be concrete. As long as that's the case, it can be created *& by the factory and handed back to the client. *&---------------------------------------------------------------------* CLASS lcl_cheese_pizza DEFINITION FINAL INHERITING FROM lcl_pizza. PUBLIC SECTION. METHODS prepare REDEFINITION. " Here's where the magic happens! ENDCLASS. CLASS lcl_cheese_pizza IMPLEMENTATION. METHOD prepare. " The prepare() method steps through creating a pizza, and each " time it needs an ingredient, it asks the factory to produce it. cl_demo_output=>write( |Preparing { mv_name }...| ). mo_dough = io_factory->create_dough( ). cl_demo_output=>write( |Tossing { mo_dough->name( ) }...| ). mo_sauce = io_factory->create_sauce( ). cl_demo_output=>write( |Adding { mo_sauce->name( ) }...| ). mt_toppings = VALUE #( ( io_factory->create_cheese( ) ) ). cl_demo_output=>write( REDUCE string( INIT text = |Adding toppings... \n| FOR topping IN mt_toppings NEXT text = text && |\t{ topping->name( ) }\n| ) ). ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete product: Clam pizza *&---------------------------------------------------------------------* CLASS lcl_clam_pizza DEFINITION FINAL INHERITING FROM lcl_pizza. PUBLIC SECTION. METHODS prepare REDEFINITION. ENDCLASS. CLASS lcl_clam_pizza IMPLEMENTATION. METHOD prepare. " To make a clam pizza, the prepare method collects the right " ingredients from its imported factory. cl_demo_output=>write( |Preparing { mv_name }...| ). mo_dough = io_factory->create_dough( ). cl_demo_output=>write( |Tossing { mo_dough->name( ) }...| ). mo_sauce = io_factory->create_sauce( ). cl_demo_output=>write( |Adding { mo_sauce->name( ) }...| ). mt_toppings = VALUE #( " If it's a New York factory, the clams will be fresh; " if it's a Chicago factory, they'll be frozen. ( io_factory->create_clams( ) ) ( io_factory->create_cheese( ) ) ). cl_demo_output=>write( REDUCE string( INIT text = |Adding toppings... \n| FOR topping IN mt_toppings NEXT text = text && |\t{ topping->name( ) }\n| ) ). ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete product: Pepperoni pizza *&---------------------------------------------------------------------* CLASS lcl_pepperoni_pizza DEFINITION FINAL INHERITING FROM lcl_pizza. PUBLIC SECTION. METHODS prepare REDEFINITION. ENDCLASS. CLASS lcl_pepperoni_pizza IMPLEMENTATION. METHOD prepare. cl_demo_output=>write( |Preparing { mv_name }...| ). mo_dough = io_factory->create_dough( ). cl_demo_output=>write( |Tossing { mo_dough->name( ) }...| ). mo_sauce = io_factory->create_sauce( ). cl_demo_output=>write( |Adding { mo_sauce->name( ) }...| ). mt_toppings = VALUE #( BASE io_factory->create_veggies( ) ( io_factory->create_pepperoni( ) ) ( io_factory->create_cheese( ) ) ). cl_demo_output=>write( REDUCE string( INIT text = |Adding toppings... \n| FOR topping IN mt_toppings NEXT text = text && |\t{ topping->name( ) }\n| ) ). ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete product: Veggie pizza *&---------------------------------------------------------------------* CLASS lcl_veggie_pizza DEFINITION FINAL INHERITING FROM lcl_pizza. PUBLIC SECTION. METHODS prepare REDEFINITION. ENDCLASS. CLASS lcl_veggie_pizza IMPLEMENTATION. METHOD prepare. cl_demo_output=>write( |Preparing { mv_name }...| ). mo_dough = io_factory->create_dough( ). cl_demo_output=>write( |Tossing { mo_dough->name( ) }...| ). mo_sauce = io_factory->create_sauce( ). cl_demo_output=>write( |Adding { mo_sauce->name( ) }...| ). mt_toppings = VALUE #( BASE io_factory->create_veggies( ) ( io_factory->create_cheese( ) ) ). cl_demo_output=>write( REDUCE string( INIT text = |Adding toppings... \n| FOR topping IN mt_toppings NEXT text = text && |\t{ topping->name( ) }\n| ) ). ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& The clients of the Abstract Factory are the two instances of our *& Pizza Store, NY Pizza Store and Chicago Pizza Store. *&---------------------------------------------------------------------* CLASS lcl_pizza_store DEFINITION ABSTRACT. PUBLIC SECTION. METHODS order_pizza FINAL IMPORTING iv_type TYPE string RETURNING VALUE(ro_pizza) TYPE REF TO lcl_pizza. PROTECTED SECTION. " Remember, all the responsibility for instantiating Pizzas is in " the factory method create_pizza() METHODS create_pizza ABSTRACT IMPORTING iv_item TYPE string RETURNING VALUE(ro_pizza) TYPE REF TO lcl_pizza. " This is our ingredient factory. A store doesn't care which factory " is used, as long as it is a pizza ingredient factory. DATA mo_ingredient_factory TYPE REF TO lif_pizza_ingredient_factory. ENDCLASS. CLASS lcl_pizza_store IMPLEMENTATION. METHOD order_pizza. ro_pizza = create_pizza( iv_type ). cl_demo_output=>write_text( |------ Making a { ro_pizza->name( ) } ------| ). " We now pass each pizza the factory that should be used to produce " its ingredients during the preparation steps. ro_pizza->prepare( mo_ingredient_factory ). ro_pizza->bake( ). ro_pizza->cut( ). ro_pizza->box( ). ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& The NY Pizza Store is a subclass of Pizza Store, so it inherits the *& order_pizza() method (among others). *&---------------------------------------------------------------------* CLASS lcl_ny_pizza_store DEFINITION FINAL INHERITING FROM lcl_pizza_store. PUBLIC SECTION. METHODS constructor. PROTECTED SECTION. METHODS create_pizza REDEFINITION. ENDCLASS. CLASS lcl_ny_pizza_store IMPLEMENTATION. METHOD constructor. super->constructor( ). " The NY Store is composed with a NY pizza ingredient factory. " This will be used to produce ingredients for NY style pizzas. mo_ingredient_factory = NEW lcl_ny_ingredient_factory( ). ENDMETHOD. METHOD create_pizza. " For each type of Pizza, we instantiate a new Pizza object and " give it a descriptive name. ro_pizza = SWITCH #( iv_item WHEN 'cheese' THEN NEW lcl_cheese_pizza( |NY Style Sauce and Cheese Pizza| ) WHEN 'pepperoni' THEN NEW lcl_pepperoni_pizza( |New York Style Pepperoni Pizza| ) WHEN 'clam' THEN NEW lcl_clam_pizza( |New York Style Clam Pizza| ) WHEN 'veggie' THEN NEW lcl_veggie_pizza( |New York Style Veggie Pizza| ) ). ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Since each franchise gets its own subclass of Pizza Store, it's *& free to create its own style of pizza by intantiating the correct *& pizza ingredient factory and implementing create_pizza() *&---------------------------------------------------------------------* CLASS lcl_chicago_pizza_store DEFINITION FINAL INHERITING FROM lcl_pizza_store. PUBLIC SECTION. METHODS constructor. PROTECTED SECTION. METHODS create_pizza REDEFINITION. ENDCLASS. CLASS lcl_chicago_pizza_store IMPLEMENTATION. METHOD constructor. super->constructor( ). " The Chicago Store is composed with a Chicago ingredient factory. mo_ingredient_factory = NEW lcl_chicago_ingredient_factory( ). ENDMETHOD. METHOD create_pizza. " For each type of Pizza, we instantiate a new Pizza object and " give it a descriptive name. ro_pizza = SWITCH #( iv_item WHEN 'cheese' THEN NEW lcl_cheese_pizza( |Chicago Deep Dish Cheese Pizza| ) WHEN 'pepperoni' THEN NEW lcl_pepperoni_pizza( |Chicago Style Pepperoni Pizza| ) WHEN 'clam' THEN NEW lcl_clam_pizza( |Chicago Style Clam Pizza| ) WHEN 'veggie' THEN NEW lcl_veggie_pizza( |Chicago Deep Dish Veggie Pizza| ) ). " Then invoke the pizza's inherited cutting behavior setter method " to dynamically change its behavior to cut into square slices. ro_pizza->set_cut_behavior( NEW lcl_cut_pizza_deep_dish( ) ). ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Cutting-edge pizza store demonstration *&---------------------------------------------------------------------* CLASS lcl_pizza_test_drive DEFINITION FINAL. PUBLIC SECTION. CLASS-METHODS main. ENDCLASS. CLASS lcl_pizza_test_drive IMPLEMENTATION. METHOD main. DATA(lt_pizza_types) = VALUE table_of_strings( ( |cheese| ) ( |pepperoni| ) ( |clam| ) ( |veggie| ) ). " First we create two different stores. DATA(lo_ny_store) = NEW lcl_ny_pizza_store( ). DATA(lo_chicago_store) = NEW lcl_chicago_pizza_store( ). " Then for each known type of pizza... LOOP AT lt_pizza_types INTO DATA(lv_pizza_type). " ... we use one store to make Ed's order ... DATA(lo_pizza) = lo_ny_store->order_pizza( lv_pizza_type ). cl_demo_output=>write_text( |Ed ordered | && lo_pizza->name( ) ). cl_demo_output=>line( ). " ... and the other for Jay's. lo_pizza = lo_chicago_store->order_pizza( lv_pizza_type ). cl_demo_output=>write_text( |Jay ordered | && lo_pizza->name( ) ). cl_demo_output=>line( ). ENDLOOP. ENDMETHOD. ENDCLASS. START-OF-SELECTION. cl_demo_output=>begin_section( |Baking with OO Goodness - the Abstract Factory Pattern| ). cl_demo_output=>line( ). lcl_pizza_test_drive=>main( ). cl_demo_output=>display( ).
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 27565, 329, 347, 868, 351, 440, 46, 4599, 1108, 532, 262, 19239, 23939, 198, 9, 5, 220, 220, 220, 1912, 319, 7123, 3274, 8495, 47020, 25, 7006, 604, 198, 9, 5, 10097, 30934, 9, 198, 2200, 15490, 331, 88, 62, 2256, 62, 11085, 62, 69, 9548, 62, 397, 8709, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 27741, 14256, 18734, 25, 2099, 286, 15756, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 1114, 14256, 9391, 11, 356, 1053, 1392, 262, 976, 1720, 4172, 357, 67, 619, 11, 198, 9, 5, 220, 10746, 11, 9891, 11, 31473, 11, 6174, 11, 290, 1569, 23571, 23126, 654, 8, 475, 1180, 198, 9, 5, 220, 25504, 1912, 319, 1123, 3814, 13, 198, 9, 5, 10097, 30934, 9, 198, 41358, 49836, 3868, 62, 67, 619, 13, 198, 220, 337, 36252, 50, 1438, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 3672, 8, 41876, 4731, 13, 198, 10619, 41358, 49836, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 27741, 14256, 18734, 25, 2099, 286, 10746, 198, 9, 5, 10097, 30934, 9, 198, 41358, 49836, 3868, 62, 82, 559, 344, 13, 198, 220, 337, 36252, 50, 1438, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 3672, 8, 41876, 4731, 13, 198, 10619, 41358, 49836, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 27741, 14256, 18734, 25, 2099, 286, 34366, 198, 9, 5, 10097, 30934, 9, 198, 41358, 49836, 3868, 62, 1462, 2105, 13, 198, 220, 337, 36252, 50, 1438, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 3672, 8, 41876, 4731, 13, 198, 10619, 41358, 49836, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 27741, 14256, 18734, 25, 2099, 286, 9891, 34366, 198, 9, 5, 10097, 30934, 9, 198, 41358, 49836, 3868, 62, 2395, 2771, 13, 198, 220, 23255, 37, 2246, 1546, 3868, 62, 1462, 2105, 13, 198, 10619, 41358, 49836, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 27741, 14256, 18734, 25, 2099, 286, 31473, 34366, 198, 9, 5, 10097, 30934, 9, 198, 41358, 49836, 3868, 62, 325, 1878, 702, 13, 198, 220, 23255, 37, 2246, 1546, 3868, 62, 1462, 2105, 13, 198, 10619, 41358, 49836, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 27741, 14256, 18734, 25, 2099, 286, 6174, 34366, 198, 9, 5, 10097, 30934, 9, 198, 41358, 49836, 3868, 62, 41495, 13, 198, 220, 23255, 37, 2246, 1546, 3868, 62, 1462, 2105, 13, 198, 10619, 41358, 49836, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 27741, 14256, 18734, 25, 2099, 286, 1569, 23571, 34366, 198, 9, 5, 10097, 30934, 9, 198, 41358, 49836, 3868, 62, 303, 23571, 13, 198, 220, 23255, 37, 2246, 1546, 3868, 62, 1462, 2105, 13, 198, 10619, 41358, 49836, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 1482, 38669, 14256, 18734, 25, 2099, 286, 15756, 532, 7888, 20048, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 775, 481, 423, 6041, 286, 649, 6097, 994, 11, 530, 583, 18734, 13, 198, 9, 5, 10097, 30934, 9, 198, 31631, 300, 565, 62, 40871, 62, 6098, 436, 62, 67, 619, 5550, 20032, 17941, 25261, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 3868, 62, 67, 619, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 40871, 62, 6098, 436, 62, 67, 619, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 3868, 62, 67, 619, 93, 3672, 13, 198, 220, 220, 220, 374, 85, 62, 3672, 796, 930, 817, 259, 3864, 436, 48179, 91, 13, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 1482, 38669, 14256, 18734, 25, 2099, 286, 15756, 532, 6546, 20048, 198, 9, 5, 10097, 30934, 9, 198, 31631, 300, 565, 62, 400, 624, 62, 6098, 436, 62, 67, 619, 5550, 20032, 17941, 25261, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 3868, 62, 67, 619, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 400, 624, 62, 6098, 436, 62, 67, 619, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 3868, 62, 67, 619, 93, 3672, 13, 198, 220, 220, 220, 374, 85, 62, 3672, 796, 930, 27726, 45816, 3864, 436, 48179, 91, 13, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 1482, 38669, 14256, 18734, 25, 2099, 286, 10746, 532, 1667, 259, 3301, 198, 9, 5, 10097, 30934, 9, 198, 31631, 300, 565, 62, 3876, 259, 3301, 62, 82, 559, 344, 5550, 20032, 17941, 25261, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 3868, 62, 82, 559, 344, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 3876, 259, 3301, 62, 82, 559, 344, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 3868, 62, 82, 559, 344, 93, 3672, 13, 198, 220, 220, 220, 374, 85, 62, 3672, 796, 930, 7676, 259, 3301, 37618, 91, 13, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 1482, 38669, 14256, 18734, 25, 2099, 286, 10746, 532, 22802, 24240, 198, 9, 5, 10097, 30934, 9, 198, 31631, 300, 565, 62, 489, 388, 62, 39532, 5549, 62, 82, 559, 344, 5550, 20032, 17941, 25261, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 3868, 62, 82, 559, 344, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 489, 388, 62, 39532, 5549, 62, 82, 559, 344, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 3868, 62, 82, 559, 344, 93, 3672, 13, 198, 220, 220, 220, 374, 85, 62, 3672, 796, 930, 3646, 388, 47777, 37618, 91, 13, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 1482, 38669, 14256, 18734, 25, 2099, 286, 9891, 532, 6941 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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_SIMPLE final create public . public section. methods /BOBF/IF_FRW_DETERMINATION~EXECUTE redefinition . protected section. private section. ENDCLASS. CLASS ZCL_D_4I_MONSTER_SO_HEADER_ACT IMPLEMENTATION. method /BOBF/IF_FRW_DETERMINATION~EXECUTE. endmethod. ENDCLASS.
[ 4871, 1168, 5097, 62, 35, 62, 19, 40, 62, 27857, 41809, 62, 15821, 62, 37682, 1137, 62, 10659, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1220, 8202, 29499, 14, 5097, 62, 40347, 62, 35, 62, 40331, 1137, 5097, 62, 48913, 16437, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 5050, 1220, 8202, 29499, 14, 5064, 62, 10913, 54, 62, 35, 2767, 1137, 23678, 6234, 93, 6369, 2943, 37780, 198, 220, 220, 220, 34087, 17750, 764, 198, 24326, 2665, 13, 198, 19734, 2665, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 35, 62, 19, 40, 62, 27857, 41809, 62, 15821, 62, 37682, 1137, 62, 10659, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 2446, 1220, 8202, 29499, 14, 5064, 62, 10913, 54, 62, 35, 2767, 1137, 23678, 6234, 93, 6369, 2943, 37780, 13, 198, 220, 886, 24396, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcx_bonus_calculation_sa DEFINITION PUBLIC INHERITING FROM cx_dynamic_check FINAL CREATE PUBLIC . PUBLIC SECTION. DATA severity TYPE c. INTERFACES if_t100_dyn_msg . INTERFACES if_t100_message . METHODS constructor IMPORTING !textid LIKE if_t100_message=>t100key OPTIONAL !previous LIKE previous OPTIONAL !severity TYPE c OPTIONAL. CLASS-METHODS create_from_system_message RETURNING VALUE(rcx) TYPE REF TO zcx_bonus_calculation_sa. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcx_bonus_calculation_sa IMPLEMENTATION. METHOD constructor ##ADT_SUPPRESS_GENERATION. CALL METHOD super->constructor EXPORTING previous = previous. me->severity = severity. CLEAR me->textid. IF textid IS INITIAL. if_t100_message~t100key = if_t100_message=>default_textid. ELSE. if_t100_message~t100key = textid. ENDIF. ENDMETHOD. METHOD create_from_system_message. TRY. RAISE EXCEPTION TYPE ZCX_BONUS_CALCULATION_SA USING MESSAGE. CATCH ZCX_BONUS_CALCULATION_SA INTO rcx ##no_handler. ENDTRY. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 66, 87, 62, 4189, 385, 62, 9948, 14902, 62, 11400, 5550, 20032, 17941, 198, 220, 220, 220, 220, 220, 44731, 198, 220, 220, 220, 220, 220, 3268, 16879, 2043, 2751, 16034, 43213, 62, 67, 28995, 62, 9122, 198, 220, 220, 220, 220, 220, 25261, 198, 220, 220, 220, 220, 220, 29244, 6158, 44731, 764, 628, 220, 220, 220, 220, 220, 44731, 44513, 13, 198, 220, 220, 220, 220, 220, 220, 42865, 19440, 41876, 269, 13, 198, 220, 220, 220, 220, 220, 220, 23255, 37, 2246, 1546, 611, 62, 83, 3064, 62, 67, 2047, 62, 19662, 764, 198, 220, 220, 220, 220, 220, 220, 23255, 37, 2246, 1546, 611, 62, 83, 3064, 62, 20500, 764, 628, 220, 220, 220, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 5239, 312, 220, 220, 34178, 611, 62, 83, 3064, 62, 20500, 14804, 83, 3064, 2539, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 3866, 1442, 34178, 2180, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 28116, 414, 41876, 269, 39852, 2849, 1847, 13, 628, 220, 220, 220, 220, 220, 220, 42715, 12, 49273, 50, 2251, 62, 6738, 62, 10057, 62, 20500, 30826, 4261, 15871, 26173, 8924, 7, 6015, 87, 8, 41876, 4526, 37, 5390, 1976, 66, 87, 62, 4189, 385, 62, 9948, 14902, 62, 11400, 13, 628, 220, 220, 220, 220, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 220, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 31631, 1976, 66, 87, 62, 4189, 385, 62, 9948, 14902, 62, 11400, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 220, 220, 220, 220, 337, 36252, 23772, 22492, 2885, 51, 62, 40331, 32761, 62, 35353, 1137, 6234, 13, 198, 220, 220, 220, 220, 220, 220, 42815, 337, 36252, 2208, 3784, 41571, 273, 198, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2180, 796, 2180, 13, 628, 220, 220, 220, 220, 220, 220, 502, 3784, 28116, 414, 796, 19440, 13, 198, 220, 220, 220, 220, 220, 220, 30301, 1503, 502, 3784, 5239, 312, 13, 628, 220, 220, 220, 220, 220, 220, 16876, 2420, 312, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 611, 62, 83, 3064, 62, 20500, 93, 83, 3064, 2539, 796, 611, 62, 83, 3064, 62, 20500, 14804, 12286, 62, 5239, 312, 13, 198, 220, 220, 220, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 611, 62, 83, 3064, 62, 20500, 93, 83, 3064, 2539, 796, 2420, 312, 13, 198, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 23578, 49273, 13, 628, 198, 220, 220, 220, 220, 220, 337, 36252, 2251, 62, 6738, 62, 10057, 62, 20500, 13, 198, 220, 220, 220, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17926, 24352, 7788, 42006, 2849, 41876, 1168, 34, 55, 62, 33, 1340, 2937, 62, 34, 1847, 34, 6239, 6234, 62, 4090, 1294, 2751, 337, 1546, 4090, 8264, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 327, 11417, 1168, 34, 55, 62, 33, 1340, 2937, 62, 34, 1847, 34, 6239, 6234, 62, 4090, 39319, 48321, 87, 22492, 3919, 62, 30281, 13, 198, 220, 220, 220, 220, 220, 220, 23578, 40405, 13, 198, 220, 220, 220, 220, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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