content
stringlengths
4
1.04M
input_ids
sequencelengths
2
1.02k
attention_mask
sequencelengths
2
1.02k
CLASS zcl_abapgit_object_asfc DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_abapgit_object . PROTECTED SECTION. PRIVATE SECTION. METHODS get_generic RETURNING VALUE(ro_generic) TYPE REF TO zcl_abapgit_objects_generic RAISING zcx_abapgit_exception . ENDCLASS. CLASS zcl_abapgit_object_asfc IMPLEMENTATION. METHOD get_generic. CREATE OBJECT ro_generic EXPORTING is_item = ms_item iv_language = mv_language. ENDMETHOD. METHOD zif_abapgit_object~changed_by. rv_user = zcl_abapgit_objects_super=>c_user_unknown. ENDMETHOD. METHOD zif_abapgit_object~delete. get_generic( )->delete( ). ENDMETHOD. METHOD zif_abapgit_object~deserialize. get_generic( )->deserialize( iv_package = iv_package io_xml = io_xml ). ENDMETHOD. METHOD zif_abapgit_object~exists. rv_bool = get_generic( )->exists( ). 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 = abap_false. ENDMETHOD. METHOD zif_abapgit_object~jump. zcx_abapgit_exception=>raise( |TODO: Jump| ). ENDMETHOD. METHOD zif_abapgit_object~serialize. get_generic( )->serialize( io_xml ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 292, 16072, 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, 337, 36252, 50, 651, 62, 41357, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 41357, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 41357, 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, 292, 16072, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 651, 62, 41357, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 686, 62, 41357, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 9186, 220, 220, 220, 220, 796, 13845, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 796, 285, 85, 62, 16129, 13, 628, 220, 23578, 49273, 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, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 14804, 66, 62, 7220, 62, 34680, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 33678, 13, 628, 220, 220, 220, 651, 62, 41357, 7, 1267, 3784, 33678, 7, 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, 651, 62, 41357, 7, 1267, 3784, 8906, 48499, 1096, 7, 198, 220, 220, 220, 220, 220, 21628, 62, 26495, 796, 21628, 62, 26495, 198, 220, 220, 220, 220, 220, 33245, 62, 19875, 220, 220, 220, 220, 796, 33245, 62, 19875, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1069, 1023, 13, 628, 220, 220, 220, 374, 85, 62, 30388, 796, 651, 62, 41357, 7, 1267, 3784, 1069, 1023, 7, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1136, 62, 785, 1845, 1352, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1136, 62, 8906, 48499, 1096, 62, 20214, 13, 198, 220, 220, 220, 43504, 10619, 1976, 361, 62, 397, 499, 18300, 62, 15252, 14804, 36484, 62, 9662, 62, 312, 12, 397, 499, 5390, 374, 83, 62, 20214, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1136, 62, 38993, 13, 628, 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, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 271, 62, 5275, 13, 198, 220, 220, 220, 374, 85, 62, 5275, 796, 318, 62, 5275, 7, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 271, 62, 24162, 13, 628, 220, 220, 220, 374, 85, 62, 271, 62, 24162, 796, 450, 499, 62, 9562, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 43327, 13, 628, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 930, 51, 3727, 46, 25, 15903, 91, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 46911, 1096, 13, 628, 220, 220, 220, 651, 62, 41357, 7, 1267, 3784, 46911, 1096, 7, 33245, 62, 19875, 6739, 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, 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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 ]
CLASS zcl_abapgit_serialize DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. METHODS constructor. METHODS on_end_of_task IMPORTING !p_task TYPE clike . METHODS serialize IMPORTING !it_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt !iv_language TYPE langu DEFAULT sy-langu !ii_log TYPE REF TO zif_abapgit_log OPTIONAL !iv_force_sequential TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . PROTECTED SECTION. CLASS-DATA gv_max_threads TYPE i . DATA mt_files TYPE zif_abapgit_definitions=>ty_files_item_tt . DATA mv_free TYPE i . DATA mi_log TYPE REF TO zif_abapgit_log . DATA mv_group TYPE rzlli_apcl . METHODS add_to_return IMPORTING !iv_path TYPE string !is_fils_item TYPE zcl_abapgit_objects=>ty_serialization . METHODS run_parallel IMPORTING !is_tadir TYPE zif_abapgit_definitions=>ty_tadir !iv_language TYPE langu !iv_task TYPE sychar32 RAISING zcx_abapgit_exception . METHODS run_sequential IMPORTING !is_tadir TYPE zif_abapgit_definitions=>ty_tadir !iv_language TYPE langu RAISING zcx_abapgit_exception . METHODS determine_max_threads IMPORTING !iv_force_sequential TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rv_threads) TYPE i RAISING zcx_abapgit_exception . PRIVATE SECTION. METHODS is_merged RETURNING VALUE(rv_result) TYPE abap_bool . ENDCLASS. CLASS ZCL_ABAPGIT_SERIALIZE IMPLEMENTATION. METHOD add_to_return. FIELD-SYMBOLS: <ls_file> LIKE LINE OF is_fils_item-files, <ls_return> LIKE LINE OF mt_files. LOOP AT is_fils_item-files ASSIGNING <ls_file>. APPEND INITIAL LINE TO mt_files ASSIGNING <ls_return>. <ls_return>-file = <ls_file>. <ls_return>-file-path = iv_path. <ls_return>-item = is_fils_item-item. ENDLOOP. ENDMETHOD. METHOD constructor. DATA lo_settings TYPE REF TO zcl_abapgit_settings. lo_settings = zcl_abapgit_persist_settings=>get_instance( )->read( ). IF is_merged( ) = abap_true OR lo_settings->get_parallel_proc_disabled( ) = abap_true. gv_max_threads = 1. ENDIF. mv_group = 'parallel_generators' ##NO_TEXT. ENDMETHOD. METHOD determine_max_threads. IF iv_force_sequential = abap_true. rv_threads = 1. RETURN. ENDIF. IF gv_max_threads >= 1. * SPBT_INITIALIZE gives error PBT_ENV_ALREADY_INITIALIZED if called * multiple times in same session rv_threads = gv_max_threads. RETURN. ENDIF. CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'Z_ABAPGIT_SERIALIZE_PARALLEL' EXCEPTIONS function_not_exist = 1 OTHERS = 2. IF sy-subrc <> 0. gv_max_threads = 1. ELSE. * todo, add possibility to set group name in user exit CALL FUNCTION 'SPBT_INITIALIZE' EXPORTING group_name = mv_group IMPORTING free_pbt_wps = gv_max_threads EXCEPTIONS invalid_group_name = 1 internal_error = 2 pbt_env_already_initialized = 3 currently_no_resources_avail = 4 no_pbt_resources_found = 5 cant_init_different_pbt_groups = 6 OTHERS = 7. IF sy-subrc <> 0. * fallback to running sequentially. If SPBT_INITIALIZE fails, check transactions * RZ12, SM50, SM21, SARFC gv_max_threads = 1. ENDIF. ENDIF. IF gv_max_threads > 1. gv_max_threads = gv_max_threads - 1. ENDIF. ASSERT gv_max_threads >= 1. IF gv_max_threads > 32. * https://en.wikipedia.org/wiki/Amdahl%27s_law gv_max_threads = 32. ENDIF. rv_threads = gv_max_threads. ENDMETHOD. METHOD is_merged. DATA lo_marker TYPE REF TO data ##NEEDED. TRY. CREATE DATA lo_marker TYPE REF TO ('LIF_ABAPMERGE_MARKER') ##no_text. "No exception --> marker found rv_result = abap_true. CATCH cx_sy_create_data_error ##no_handler. ENDTRY. ENDMETHOD. METHOD on_end_of_task. DATA: lv_result TYPE xstring, lv_path TYPE string, ls_fils_item TYPE zcl_abapgit_objects=>ty_serialization. RECEIVE RESULTS FROM FUNCTION 'Z_ABAPGIT_SERIALIZE_PARALLEL' IMPORTING ev_result = lv_result ev_path = lv_path EXCEPTIONS error = 1 OTHERS = 2. IF sy-subrc <> 0. IF NOT mi_log IS INITIAL. mi_log->add_error( |{ sy-msgv1 }{ sy-msgv2 }{ sy-msgv3 }{ sy-msgv3 }| ). ENDIF. ELSE. IMPORT data = ls_fils_item FROM DATA BUFFER lv_result. "#EC CI_SUBRC ASSERT sy-subrc = 0. add_to_return( is_fils_item = ls_fils_item iv_path = lv_path ). ENDIF. mv_free = mv_free + 1. ENDMETHOD. METHOD run_parallel. DATA: lv_msg TYPE c LENGTH 100, lv_free LIKE mv_free. ASSERT mv_free > 0. DO. CALL FUNCTION 'Z_ABAPGIT_SERIALIZE_PARALLEL' STARTING NEW TASK iv_task DESTINATION IN GROUP mv_group CALLING on_end_of_task ON END OF TASK EXPORTING iv_obj_type = is_tadir-object iv_obj_name = is_tadir-obj_name iv_devclass = is_tadir-devclass iv_language = iv_language iv_path = is_tadir-path EXCEPTIONS system_failure = 1 MESSAGE lv_msg communication_failure = 2 MESSAGE lv_msg resource_failure = 3 OTHERS = 4. IF sy-subrc = 3. lv_free = mv_free. WAIT UNTIL mv_free <> lv_free UP TO 1 SECONDS. CONTINUE. ELSEIF sy-subrc <> 0. ASSERT lv_msg = '' AND 0 = 1. ENDIF. EXIT. ENDDO. mv_free = mv_free - 1. ENDMETHOD. METHOD run_sequential. DATA: lx_error TYPE REF TO zcx_abapgit_exception, ls_fils_item TYPE zcl_abapgit_objects=>ty_serialization. ls_fils_item-item-obj_type = is_tadir-object. ls_fils_item-item-obj_name = is_tadir-obj_name. ls_fils_item-item-devclass = is_tadir-devclass. TRY. ls_fils_item = zcl_abapgit_objects=>serialize( is_item = ls_fils_item-item iv_language = iv_language ). add_to_return( is_fils_item = ls_fils_item iv_path = is_tadir-path ). CATCH zcx_abapgit_exception INTO lx_error. IF NOT mi_log IS INITIAL. mi_log->add_error( lx_error->get_text( ) ). ENDIF. ENDTRY. ENDMETHOD. METHOD serialize. DATA: lv_max TYPE i, li_progress TYPE REF TO zif_abapgit_progress. FIELD-SYMBOLS: <ls_tadir> LIKE LINE OF it_tadir. CLEAR mt_files. lv_max = determine_max_threads( iv_force_sequential ). mv_free = lv_max. mi_log = ii_log. li_progress = zcl_abapgit_progress=>get_instance( lines( it_tadir ) ). LOOP AT it_tadir ASSIGNING <ls_tadir>. li_progress->show( iv_current = sy-tabix iv_text = |Serialize { <ls_tadir>-obj_name }, { lv_max } threads| ) ##NO_TEXT. IF lv_max = 1. run_sequential( is_tadir = <ls_tadir> iv_language = iv_language ). ELSE. run_parallel( is_tadir = <ls_tadir> iv_task = |{ sy-tabix }| iv_language = iv_language ). WAIT UNTIL mv_free > 0 UP TO 10 SECONDS. ENDIF. ENDLOOP. WAIT UNTIL mv_free = lv_max UP TO 10 SECONDS. rt_files = mt_files. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 46911, 1096, 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, 13, 198, 220, 220, 220, 337, 36252, 50, 319, 62, 437, 62, 1659, 62, 35943, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 79, 62, 35943, 41876, 537, 522, 764, 198, 220, 220, 220, 337, 36252, 50, 11389, 1096, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 83, 324, 343, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 16129, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2786, 5550, 38865, 827, 12, 75, 2303, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 6404, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3174, 62, 3107, 1843, 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, 17034, 62, 16624, 8, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 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, 628, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 42715, 12, 26947, 308, 85, 62, 9806, 62, 16663, 82, 41876, 1312, 764, 198, 220, 220, 220, 42865, 45079, 62, 16624, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 62, 926, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 5787, 41876, 1312, 764, 198, 220, 220, 220, 42865, 21504, 62, 6404, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 8094, 41876, 374, 89, 15516, 62, 499, 565, 764, 628, 220, 220, 220, 337, 36252, 50, 751, 62, 1462, 62, 7783, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6978, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 69, 4487, 62, 9186, 41876, 1976, 565, 62, 397, 499, 18300, 62, 48205, 14804, 774, 62, 46911, 1634, 764, 198, 220, 220, 220, 337, 36252, 50, 1057, 62, 1845, 29363, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 83, 324, 343, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 16129, 41876, 2786, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 35943, 220, 220, 220, 220, 41876, 827, 10641, 2624, 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, 1057, 62, 3107, 1843, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 83, 324, 343, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 16129, 41876, 2786, 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, 5004, 62, 9806, 62, 16663, 82, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3174, 62, 3107, 1843, 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, 16663, 82, 8, 220, 220, 220, 41876, 1312, 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, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 318, 62, 647, 2004, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 20274, 8, 41876, 450, 499, 62, 30388, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 35009, 12576, 35400, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 751, 62, 1462, 62, 7783, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 7753, 29, 220, 220, 34178, 48920, 3963, 318, 62, 69, 4487, 62, 9186, 12, 16624, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 7783, 29, 34178, 48920, 3963, 45079, 62, 16624, 13, 628, 198, 220, 220, 220, 17579, 3185, 5161, 318, 62, 69, 4487, 62, 9186, 12, 16624, 24994, 3528, 15871, 1279, 7278, 62, 7753, 28401, 198, 220, 220, 220, 220, 220, 43504, 10619, 3268, 2043, 12576, 48920, 5390, 45079, 62, 16624, 24994, 3528, 15871, 1279, 7278, 62, 7783, 28401, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 7783, 29, 12, 7753, 796, 1279, 7278, 62, 7753, 28401, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 7783, 29, 12, 7753, 12, 6978, 796, 21628, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS y_check_form DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC . PUBLIC SECTION. METHODS constructor . PROTECTED SECTION. METHODS execute_check REDEFINITION. METHODS inspect_tokens REDEFINITION. PRIVATE SECTION. ENDCLASS. CLASS Y_CHECK_FORM IMPLEMENTATION. METHOD constructor. super->constructor( ). description = 'FORM Routine Usage'(001). category = 'Y_CHECK_CATEGORY'. position = '330'. version = '0000'. has_documentation = abap_true. settings-pseudo_comment = '"#EC CI_FORM' ##NO_TEXT. settings-disable_threshold_selection = abap_true. settings-threshold = 0. settings-documentation = |{ c_docs_path-checks }form-routine.md|. y_message_registration=>add_message( EXPORTING check_name = me->myname text = '[Clean Code]: "FORM" Routine should not be used!'(102) pseudo_comment = settings-pseudo_comment CHANGING messages = me->scimessages ). ENDMETHOD. METHOD inspect_tokens. RETURN. ENDMETHOD. METHOD execute_check. LOOP AT ref_scan_manager->get_structures( ) ASSIGNING FIELD-SYMBOL(<structure>) WHERE stmnt_type EQ scan_struc_stmnt_type-form. is_testcode = test_code_detector->is_testcode( <structure> ). TRY. DATA(check_config) = check_configurations[ apply_on_testcode = abap_true ]. CATCH cx_sy_itab_line_not_found. IF is_testcode EQ abap_true. CONTINUE. ENDIF. ENDTRY. READ TABLE ref_scan_manager->get_statements( ) INDEX <structure>-stmnt_to INTO DATA(statement_for_message). DATA(check_configuration) = detect_check_configuration( threshold = 0 include = get_include( p_level = statement_for_message-level ) ). IF check_configuration IS INITIAL. CONTINUE. ENDIF. raise_error( statement_level = statement_for_message-level statement_index = <structure>-stmnt_to statement_from = statement_for_message-from error_priority = check_configuration-prio ). ENDLOOP. ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9122, 62, 687, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 331, 62, 9122, 62, 8692, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 764, 628, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 12260, 62, 9122, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 10104, 62, 83, 482, 641, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 575, 62, 50084, 62, 21389, 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, 6764, 796, 705, 21389, 371, 28399, 29566, 6, 7, 8298, 737, 198, 220, 220, 220, 6536, 220, 220, 220, 796, 705, 56, 62, 50084, 62, 34, 6158, 38, 15513, 4458, 198, 220, 220, 220, 2292, 220, 220, 220, 796, 705, 26073, 4458, 198, 220, 220, 220, 2196, 220, 220, 220, 220, 796, 705, 2388, 4458, 198, 220, 220, 220, 468, 62, 22897, 341, 796, 450, 499, 62, 7942, 13, 628, 220, 220, 220, 6460, 12, 7752, 12003, 62, 23893, 796, 705, 1, 2, 2943, 14514, 62, 21389, 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, 22897, 341, 796, 930, 90, 269, 62, 31628, 62, 6978, 12, 42116, 1782, 687, 12, 81, 28399, 13, 9132, 91, 13, 628, 220, 220, 220, 331, 62, 20500, 62, 2301, 33397, 14804, 2860, 62, 20500, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2198, 62, 3672, 220, 220, 220, 220, 796, 502, 3784, 1820, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 44438, 32657, 6127, 5974, 366, 21389, 1, 371, 28399, 815, 407, 307, 973, 13679, 7, 15377, 8, 198, 220, 220, 220, 220, 220, 220, 220, 24543, 62, 23893, 796, 6460, 12, 7752, 12003, 62, 23893, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 6218, 220, 220, 220, 220, 220, 220, 796, 502, 3784, 1416, 320, 408, 1095, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 10104, 62, 83, 482, 641, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 12260, 62, 9122, 13, 198, 220, 220, 220, 17579, 3185, 5161, 1006, 62, 35836, 62, 37153, 3784, 1136, 62, 7249, 942, 7, 1267, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 301, 5620, 43734, 198, 220, 220, 220, 220, 220, 33411, 336, 76, 429, 62, 4906, 36529, 9367, 62, 19554, 66, 62, 301, 76, 429, 62, 4906, 12, 687, 13, 628, 220, 220, 220, 220, 220, 318, 62, 9288, 8189, 796, 1332, 62, 8189, 62, 15255, 9250, 3784, 271, 62, 9288, 8189, 7, 1279, 301, 5620, 29, 6739, 628, 220, 220, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 9122, 62, 11250, 8, 796, 2198, 62, 11250, 20074, 58, 4174, 62, 261, 62, 9288, 8189, 796, 450, 499, 62, 7942, 20740, 198, 220, 220, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 270, 397, 62, 1370, 62, 1662, 62, 9275, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16876, 318, 62, 9288, 8189, 36529, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43659, 8924, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 23578, 40405, 13, 628, 220, 220, 220, 220, 220, 20832, 43679, 1006, 62, 35836, 62, 37153, 3784, 1136, 62, 14269, 3196, 7, 1267, 24413, 6369, 1279, 301, 5620, 29, 12, 301, 76, 429, 62, 1462, 39319, 42865, 7, 26090, 62, 1640, 62, 20500, 737, 628, 220, 220, 220, 220, 220, 42865, 7, 9122, 62, 11250, 3924, 8, 796, 4886, 62, 9122, 62, 11250, 3924, 7, 11387, 796, 657, 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, 220, 220, 2291, 796, 651, 62, 17256, 7, 279, 62, 5715, 796, 2643, 62, 1640, 62, 20500, 12, 5715, 1267, 6739, 198, 220, 220, 220, 220, 220, 16876, 2198, 62, 11250, 3924, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 220, 220, 43659, 8924, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 5298, 62, 18224, 7, 2643, 62, 5715, 220, 220, 220, 220, 796, 2643, 62, 1640, 62, 20500, 12, 5715, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 9630, 220, 220, 220, 220, 796, 1279, 301, 5620, 29, 12, 301, 76, 429, 62, 1462, 198, 220, 220, 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, 62, 1640, 62, 20500, 12, 6738, 198, 220, 220, 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, 6739, 198, 220, 220, 220, 23578, 21982, 3185, 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, 1, 1, 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 ]
*----------------------------------------------------------------------* * CLASS ZCL_EXCEL_WORKSHEET DEFINITION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS zcl_excel_worksheet DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. *"* public components of class ZCL_EXCEL_WORKSHEET *"* do not include other source files here!!! *"* protected components of class ZCL_EXCEL_WORKSHEET *"* do not include other source files here!!! *"* protected components of class ZCL_EXCEL_WORKSHEET *"* do not include other source files here!!! TYPE-POOLS abap . TYPE-POOLS slis . TYPE-POOLS soi . INTERFACES zif_excel_sheet_printsettings . INTERFACES zif_excel_sheet_properties . INTERFACES zif_excel_sheet_protection . INTERFACES zif_excel_sheet_vba_project . TYPES: BEGIN OF mty_s_outline_row, row_from TYPE i, row_to TYPE i, collapsed TYPE abap_bool, END OF mty_s_outline_row . TYPES: mty_ts_outlines_row TYPE SORTED TABLE OF mty_s_outline_row WITH UNIQUE KEY row_from row_to . CONSTANTS c_break_column TYPE zexcel_break VALUE 2. "#EC NOTEXT CONSTANTS c_break_none TYPE zexcel_break VALUE 0. "#EC NOTEXT CONSTANTS c_break_row TYPE zexcel_break VALUE 1. "#EC NOTEXT DATA excel TYPE REF TO zcl_excel READ-ONLY . DATA print_gridlines TYPE zexcel_print_gridlines READ-ONLY VALUE abap_false. "#EC NOTEXT DATA sheet_content TYPE zexcel_t_cell_data . DATA sheet_setup TYPE REF TO zcl_excel_sheet_setup . DATA show_gridlines TYPE zexcel_show_gridlines READ-ONLY VALUE abap_true. "#EC NOTEXT DATA show_rowcolheaders TYPE zexcel_show_gridlines READ-ONLY VALUE abap_true. "#EC NOTEXT DATA styles TYPE zexcel_t_sheet_style . DATA tabcolor TYPE zexcel_s_tabcolor READ-ONLY . METHODS add_comment IMPORTING !ip_comment TYPE REF TO zcl_excel_comment . METHODS add_drawing IMPORTING !ip_drawing TYPE REF TO zcl_excel_drawing . METHODS add_new_column IMPORTING !ip_column TYPE simple RETURNING value(eo_column) TYPE REF TO zcl_excel_column . METHODS add_new_style_cond RETURNING value(eo_style_cond) TYPE REF TO zcl_excel_style_cond . METHODS add_new_data_validation RETURNING value(eo_data_validation) TYPE REF TO zcl_excel_data_validation . METHODS add_new_range RETURNING value(eo_range) TYPE REF TO zcl_excel_range . METHODS add_new_row IMPORTING !ip_row TYPE simple RETURNING value(eo_row) TYPE REF TO zcl_excel_row . METHODS bind_alv IMPORTING !io_alv TYPE REF TO object !it_table TYPE STANDARD TABLE !i_top TYPE i DEFAULT 1 !i_left TYPE i DEFAULT 1 !table_style TYPE zexcel_table_style OPTIONAL !i_table TYPE abap_bool DEFAULT abap_true RAISING zcx_excel . METHODS bind_alv_ole2 IMPORTING !i_document_url TYPE char255 DEFAULT space !i_xls TYPE c DEFAULT space !i_save_path TYPE string !io_alv TYPE REF TO cl_gui_alv_grid !it_listheader TYPE slis_t_listheader OPTIONAL !i_top TYPE i DEFAULT 1 !i_left TYPE i DEFAULT 1 !i_columns_header TYPE c DEFAULT 'X' !i_columns_autofit TYPE c DEFAULT 'X' !i_format_col_header TYPE soi_format_item OPTIONAL !i_format_subtotal TYPE soi_format_item OPTIONAL !i_format_total TYPE soi_format_item OPTIONAL EXCEPTIONS miss_guide ex_transfer_kkblo_error fatal_error inv_data_range dim_mismatch_vkey dim_mismatch_sema error_in_sema . METHODS bind_table IMPORTING !ip_table TYPE STANDARD TABLE !it_field_catalog TYPE zexcel_t_fieldcatalog OPTIONAL !is_table_settings TYPE zexcel_s_table_settings OPTIONAL value(iv_default_descr) TYPE c OPTIONAL !IV_NO_LINE_IF_EMPTY type ABAP_BOOL default ABAP_FALSE EXPORTING !es_table_settings TYPE zexcel_s_table_settings RAISING zcx_excel . METHODS calculate_column_widths RAISING zcx_excel . METHODS change_cell_style IMPORTING !ip_column TYPE simple !ip_row TYPE zexcel_cell_row !ip_complete TYPE zexcel_s_cstyle_complete OPTIONAL !ip_xcomplete TYPE zexcel_s_cstylex_complete OPTIONAL !ip_font TYPE zexcel_s_cstyle_font OPTIONAL !ip_xfont TYPE zexcel_s_cstylex_font OPTIONAL !ip_fill TYPE zexcel_s_cstyle_fill OPTIONAL !ip_xfill TYPE zexcel_s_cstylex_fill OPTIONAL !ip_borders TYPE zexcel_s_cstyle_borders OPTIONAL !ip_xborders TYPE zexcel_s_cstylex_borders OPTIONAL !ip_alignment TYPE zexcel_s_cstyle_alignment OPTIONAL !ip_xalignment TYPE zexcel_s_cstylex_alignment OPTIONAL !ip_number_format_format_code TYPE zexcel_number_format OPTIONAL !ip_protection TYPE zexcel_s_cstyle_protection OPTIONAL !ip_xprotection TYPE zexcel_s_cstylex_protection OPTIONAL !ip_font_bold TYPE flag OPTIONAL !ip_font_color TYPE zexcel_s_style_color OPTIONAL !ip_font_color_rgb TYPE zexcel_style_color_argb OPTIONAL !ip_font_color_indexed TYPE zexcel_style_color_indexed OPTIONAL !ip_font_color_theme TYPE zexcel_style_color_theme OPTIONAL !ip_font_color_tint TYPE zexcel_style_color_tint OPTIONAL !ip_font_family TYPE zexcel_style_font_family OPTIONAL !ip_font_italic TYPE flag OPTIONAL !ip_font_name TYPE zexcel_style_font_name OPTIONAL !ip_font_scheme TYPE zexcel_style_font_scheme OPTIONAL !ip_font_size TYPE zexcel_style_font_size OPTIONAL !ip_font_strikethrough TYPE flag OPTIONAL !ip_font_underline TYPE flag OPTIONAL !ip_font_underline_mode TYPE zexcel_style_font_underline OPTIONAL !ip_fill_filltype TYPE zexcel_fill_type OPTIONAL !ip_fill_rotation TYPE zexcel_rotation OPTIONAL !ip_fill_fgcolor TYPE zexcel_s_style_color OPTIONAL !ip_fill_fgcolor_rgb TYPE zexcel_style_color_argb OPTIONAL !ip_fill_fgcolor_indexed TYPE zexcel_style_color_indexed OPTIONAL !ip_fill_fgcolor_theme TYPE zexcel_style_color_theme OPTIONAL !ip_fill_fgcolor_tint TYPE zexcel_style_color_tint OPTIONAL !ip_fill_bgcolor TYPE zexcel_s_style_color OPTIONAL !ip_fill_bgcolor_rgb TYPE zexcel_style_color_argb OPTIONAL !ip_fill_bgcolor_indexed TYPE zexcel_style_color_indexed OPTIONAL !ip_fill_bgcolor_theme TYPE zexcel_style_color_theme OPTIONAL !ip_fill_bgcolor_tint TYPE zexcel_style_color_tint OPTIONAL !ip_borders_allborders TYPE zexcel_s_cstyle_border OPTIONAL !ip_fill_gradtype_type TYPE zexcel_s_gradient_type-type OPTIONAL !ip_fill_gradtype_degree TYPE zexcel_s_gradient_type-degree OPTIONAL !ip_xborders_allborders TYPE zexcel_s_cstylex_border OPTIONAL !ip_borders_diagonal TYPE zexcel_s_cstyle_border OPTIONAL !ip_fill_gradtype_bottom TYPE zexcel_s_gradient_type-bottom OPTIONAL !ip_fill_gradtype_top TYPE zexcel_s_gradient_type-top OPTIONAL !ip_xborders_diagonal TYPE zexcel_s_cstylex_border OPTIONAL !ip_borders_diagonal_mode TYPE zexcel_diagonal OPTIONAL !ip_fill_gradtype_right TYPE zexcel_s_gradient_type-right OPTIONAL !ip_borders_down TYPE zexcel_s_cstyle_border OPTIONAL !ip_fill_gradtype_left TYPE zexcel_s_gradient_type-left OPTIONAL !ip_fill_gradtype_position1 TYPE zexcel_s_gradient_type-position1 OPTIONAL !ip_xborders_down TYPE zexcel_s_cstylex_border OPTIONAL !ip_borders_left TYPE zexcel_s_cstyle_border OPTIONAL !ip_fill_gradtype_position2 TYPE zexcel_s_gradient_type-position2 OPTIONAL !ip_fill_gradtype_position3 TYPE zexcel_s_gradient_type-position3 OPTIONAL !ip_xborders_left TYPE zexcel_s_cstylex_border OPTIONAL !ip_borders_right TYPE zexcel_s_cstyle_border OPTIONAL !ip_xborders_right TYPE zexcel_s_cstylex_border OPTIONAL !ip_borders_top TYPE zexcel_s_cstyle_border OPTIONAL !ip_xborders_top TYPE zexcel_s_cstylex_border OPTIONAL !ip_alignment_horizontal TYPE zexcel_alignment OPTIONAL !ip_alignment_vertical TYPE zexcel_alignment OPTIONAL !ip_alignment_textrotation TYPE zexcel_text_rotation OPTIONAL !ip_alignment_wraptext TYPE flag OPTIONAL !ip_alignment_shrinktofit TYPE flag OPTIONAL !ip_alignment_indent TYPE zexcel_indent OPTIONAL !ip_protection_hidden TYPE zexcel_cell_protection OPTIONAL !ip_protection_locked TYPE zexcel_cell_protection OPTIONAL !ip_borders_allborders_style TYPE zexcel_border OPTIONAL !ip_borders_allborders_color TYPE zexcel_s_style_color OPTIONAL !ip_borders_allbo_color_rgb TYPE zexcel_style_color_argb OPTIONAL !ip_borders_allbo_color_indexed TYPE zexcel_style_color_indexed OPTIONAL !ip_borders_allbo_color_theme TYPE zexcel_style_color_theme OPTIONAL !ip_borders_allbo_color_tint TYPE zexcel_style_color_tint OPTIONAL !ip_borders_diagonal_style TYPE zexcel_border OPTIONAL !ip_borders_diagonal_color TYPE zexcel_s_style_color OPTIONAL !ip_borders_diagonal_color_rgb TYPE zexcel_style_color_argb OPTIONAL !ip_borders_diagonal_color_inde TYPE zexcel_style_color_indexed OPTIONAL !ip_borders_diagonal_color_them TYPE zexcel_style_color_theme OPTIONAL !ip_borders_diagonal_color_tint TYPE zexcel_style_color_tint OPTIONAL !ip_borders_down_style TYPE zexcel_border OPTIONAL !ip_borders_down_color TYPE zexcel_s_style_color OPTIONAL !ip_borders_down_color_rgb TYPE zexcel_style_color_argb OPTIONAL !ip_borders_down_color_indexed TYPE zexcel_style_color_indexed OPTIONAL !ip_borders_down_color_theme TYPE zexcel_style_color_theme OPTIONAL !ip_borders_down_color_tint TYPE zexcel_style_color_tint OPTIONAL !ip_borders_left_style TYPE zexcel_border OPTIONAL !ip_borders_left_color TYPE zexcel_s_style_color OPTIONAL !ip_borders_left_color_rgb TYPE zexcel_style_color_argb OPTIONAL !ip_borders_left_color_indexed TYPE zexcel_style_color_indexed OPTIONAL !ip_borders_left_color_theme TYPE zexcel_style_color_theme OPTIONAL !ip_borders_left_color_tint TYPE zexcel_style_color_tint OPTIONAL !ip_borders_right_style TYPE zexcel_border OPTIONAL !ip_borders_right_color TYPE zexcel_s_style_color OPTIONAL !ip_borders_right_color_rgb TYPE zexcel_style_color_argb OPTIONAL !ip_borders_right_color_indexed TYPE zexcel_style_color_indexed OPTIONAL !ip_borders_right_color_theme TYPE zexcel_style_color_theme OPTIONAL !ip_borders_right_color_tint TYPE zexcel_style_color_tint OPTIONAL !ip_borders_top_style TYPE zexcel_border OPTIONAL !ip_borders_top_color TYPE zexcel_s_style_color OPTIONAL !ip_borders_top_color_rgb TYPE zexcel_style_color_argb OPTIONAL !ip_borders_top_color_indexed TYPE zexcel_style_color_indexed OPTIONAL !ip_borders_top_color_theme TYPE zexcel_style_color_theme OPTIONAL !ip_borders_top_color_tint TYPE zexcel_style_color_tint OPTIONAL RETURNING value(ep_guid) TYPE zexcel_cell_style RAISING zcx_excel . METHODS constructor IMPORTING !ip_excel TYPE REF TO zcl_excel !ip_title TYPE zexcel_sheet_title OPTIONAL RAISING zcx_excel . METHODS delete_merge IMPORTING !ip_cell_column TYPE simple OPTIONAL !ip_cell_row TYPE zexcel_cell_row OPTIONAL RAISING zcx_excel . METHODS delete_row_outline IMPORTING !iv_row_from TYPE i !iv_row_to TYPE i RAISING zcx_excel . METHODS freeze_panes IMPORTING !ip_num_columns TYPE i OPTIONAL !ip_num_rows TYPE i OPTIONAL RAISING zcx_excel . METHODS get_active_cell RETURNING value(ep_active_cell) TYPE string RAISING zcx_excel . METHODS get_cell IMPORTING !ip_column TYPE simple !ip_row TYPE zexcel_cell_row EXPORTING !ep_value TYPE zexcel_cell_value !ep_rc TYPE sysubrc !ep_style TYPE REF TO zcl_excel_style !ep_guid TYPE zexcel_cell_style !ep_formula TYPE zexcel_cell_formula RAISING zcx_excel . METHODS get_column IMPORTING !ip_column TYPE simple RETURNING value(eo_column) TYPE REF TO zcl_excel_column . METHODS get_columns RETURNING value(eo_columns) TYPE REF TO zcl_excel_columns . METHODS get_columns_iterator RETURNING value(eo_iterator) TYPE REF TO cl_object_collection_iterator . METHODS get_style_cond_iterator RETURNING value(eo_iterator) TYPE REF TO cl_object_collection_iterator . METHODS get_data_validations_iterator RETURNING value(eo_iterator) TYPE REF TO cl_object_collection_iterator . METHODS get_data_validations_size RETURNING value(ep_size) TYPE i . METHODS get_default_column RETURNING value(eo_column) TYPE REF TO zcl_excel_column . METHODS get_default_excel_date_format RETURNING value(ep_default_excel_date_format) TYPE zexcel_number_format . METHODS get_default_excel_time_format RETURNING value(ep_default_excel_time_format) TYPE zexcel_number_format . METHODS get_default_row RETURNING value(eo_row) TYPE REF TO zcl_excel_row . METHODS get_dimension_range RETURNING value(ep_dimension_range) TYPE string RAISING zcx_excel . METHODS get_comments RETURNING value(r_comments) TYPE REF TO zcl_excel_comments . METHODS get_drawings IMPORTING !ip_type TYPE zexcel_drawing_type OPTIONAL RETURNING value(r_drawings) TYPE REF TO zcl_excel_drawings . METHODS get_comments_iterator RETURNING value(eo_iterator) TYPE REF TO cl_object_collection_iterator . METHODS get_drawings_iterator IMPORTING !ip_type TYPE zexcel_drawing_type RETURNING value(eo_iterator) TYPE REF TO cl_object_collection_iterator . METHODS get_freeze_cell EXPORTING !ep_row TYPE zexcel_cell_row !ep_column TYPE zexcel_cell_column . METHODS get_guid RETURNING value(ep_guid) TYPE uuid . METHODS get_highest_column RETURNING value(r_highest_column) TYPE zexcel_cell_column RAISING zcx_excel . METHODS get_highest_row RETURNING value(r_highest_row) TYPE int4 RAISING zcx_excel . METHODS get_hyperlinks_iterator RETURNING value(eo_iterator) TYPE REF TO cl_object_collection_iterator . METHODS get_hyperlinks_size RETURNING value(ep_size) TYPE i . METHODS get_merge RETURNING value(merge_range) TYPE string_table RAISING zcx_excel . METHODS get_pagebreaks RETURNING value(ro_pagebreaks) TYPE REF TO zcl_excel_worksheet_pagebreaks RAISING zcx_excel . METHODS get_ranges_iterator RETURNING value(eo_iterator) TYPE REF TO cl_object_collection_iterator . METHODS get_row IMPORTING !ip_row TYPE int4 RETURNING value(eo_row) TYPE REF TO zcl_excel_row . METHODS get_rows RETURNING value(eo_rows) TYPE REF TO zcl_excel_rows . METHODS get_rows_iterator RETURNING value(eo_iterator) TYPE REF TO cl_object_collection_iterator . METHODS get_row_outlines RETURNING value(rt_row_outlines) TYPE mty_ts_outlines_row . METHODS get_style_cond IMPORTING !ip_guid TYPE zexcel_cell_style RETURNING value(eo_style_cond) TYPE REF TO zcl_excel_style_cond . METHODS get_tabcolor RETURNING value(ev_tabcolor) TYPE zexcel_s_tabcolor . METHODS get_tables_iterator RETURNING value(eo_iterator) TYPE REF TO cl_object_collection_iterator . METHODS get_tables_size RETURNING value(ep_size) TYPE i . METHODS get_title IMPORTING !ip_escaped TYPE flag DEFAULT '' RETURNING value(ep_title) TYPE zexcel_sheet_title . METHODS is_cell_merged IMPORTING !ip_column TYPE simple !ip_row TYPE zexcel_cell_row RETURNING value(rp_is_merged) TYPE abap_bool RAISING zcx_excel . METHODS set_cell IMPORTING !ip_column TYPE simple !ip_row TYPE zexcel_cell_row !ip_value TYPE simple OPTIONAL !ip_formula TYPE zexcel_cell_formula OPTIONAL !ip_style TYPE zexcel_cell_style OPTIONAL !ip_hyperlink TYPE REF TO zcl_excel_hyperlink OPTIONAL !ip_data_type TYPE zexcel_cell_data_type OPTIONAL !ip_abap_type TYPE abap_typekind OPTIONAL RAISING zcx_excel . METHODS set_cell_formula IMPORTING !ip_column TYPE simple !ip_row TYPE zexcel_cell_row !ip_formula TYPE zexcel_cell_formula RAISING zcx_excel . METHODS set_cell_style IMPORTING !ip_column TYPE simple !ip_row TYPE zexcel_cell_row !ip_style TYPE zexcel_cell_style RAISING zcx_excel . METHODS set_column_width IMPORTING !ip_column TYPE simple !ip_width_fix TYPE simple DEFAULT 0 !ip_width_autosize TYPE flag DEFAULT 'X' RAISING zcx_excel . METHODS set_default_excel_date_format IMPORTING !ip_default_excel_date_format TYPE zexcel_number_format RAISING zcx_excel . METHODS set_merge IMPORTING !ip_column_start TYPE simple DEFAULT zcl_excel_common=>c_excel_sheet_min_col !ip_column_end TYPE simple DEFAULT zcl_excel_common=>c_excel_sheet_max_col !ip_row TYPE zexcel_cell_row DEFAULT zcl_excel_common=>c_excel_sheet_min_row !ip_row_to TYPE zexcel_cell_row DEFAULT zcl_excel_common=>c_excel_sheet_max_row !ip_style TYPE zexcel_cell_style OPTIONAL "added parameter !ip_value TYPE simple OPTIONAL "added parameter !ip_formula TYPE zexcel_cell_formula OPTIONAL "added parameter RAISING zcx_excel . METHODS set_print_gridlines IMPORTING !i_print_gridlines TYPE zexcel_print_gridlines . METHODS set_row_height IMPORTING !ip_row TYPE simple !ip_height_fix TYPE simple RAISING zcx_excel . METHODS set_row_outline IMPORTING !iv_row_from TYPE i !iv_row_to TYPE i !iv_collapsed TYPE abap_bool RAISING zcx_excel . METHODS set_show_gridlines IMPORTING !i_show_gridlines TYPE zexcel_show_gridlines . METHODS set_show_rowcolheaders IMPORTING !i_show_rowcolheaders TYPE zexcel_show_rowcolheader . METHODS set_tabcolor IMPORTING !iv_tabcolor TYPE zexcel_s_tabcolor . METHODS set_table IMPORTING !ip_table TYPE STANDARD TABLE !ip_hdr_style TYPE zexcel_cell_style OPTIONAL !ip_body_style TYPE zexcel_cell_style OPTIONAL !ip_table_title TYPE string !ip_top_left_column TYPE zexcel_cell_column_alpha DEFAULT 'B' !ip_top_left_row TYPE zexcel_cell_row DEFAULT 3 !ip_transpose TYPE xfeld OPTIONAL !ip_no_header TYPE xfeld OPTIONAL RAISING zcx_excel . METHODS set_title IMPORTING !ip_title TYPE zexcel_sheet_title RAISING zcx_excel . METHODS get_table IMPORTING !iv_skipped_rows TYPE int4 DEFAULT 0 !iv_skipped_cols TYPE int4 DEFAULT 0 !iv_max_col TYPE int4 OPTIONAL !iv_max_row TYPE int4 OPTIONAL EXPORTING !et_table TYPE STANDARD TABLE RAISING zcx_excel . METHODS set_merge_style IMPORTING !ip_column_start TYPE simple OPTIONAL !ip_column_end TYPE simple OPTIONAL !ip_row TYPE zexcel_cell_row OPTIONAL !ip_row_to TYPE zexcel_cell_row OPTIONAL !ip_style TYPE zexcel_cell_style OPTIONAL . METHODS set_area_formula IMPORTING !ip_column_start TYPE simple !ip_column_end TYPE simple OPTIONAL !ip_row TYPE zexcel_cell_row !ip_row_to TYPE zexcel_cell_row OPTIONAL !ip_formula TYPE zexcel_cell_formula !ip_merge TYPE abap_bool OPTIONAL RAISING zcx_excel . METHODS set_area_style IMPORTING !ip_column_start TYPE simple !ip_column_end TYPE simple OPTIONAL !ip_row TYPE zexcel_cell_row !ip_row_to TYPE zexcel_cell_row OPTIONAL !ip_style TYPE zexcel_cell_style !ip_merge TYPE abap_bool OPTIONAL . METHODS set_area IMPORTING !ip_column_start TYPE simple !ip_column_end TYPE simple OPTIONAL !ip_row TYPE zexcel_cell_row !ip_row_to TYPE zexcel_cell_row OPTIONAL !ip_value TYPE simple OPTIONAL !ip_formula TYPE zexcel_cell_formula OPTIONAL !ip_style TYPE zexcel_cell_style OPTIONAL !ip_hyperlink TYPE REF TO zcl_excel_hyperlink OPTIONAL !ip_data_type TYPE zexcel_cell_data_type OPTIONAL !ip_abap_type TYPE abap_typekind OPTIONAL !ip_merge TYPE abap_bool OPTIONAL RAISING zcx_excel . METHODS get_header_footer_drawings RETURNING value(rt_drawings) TYPE zexcel_t_drawings . PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF mty_s_font_metric, char TYPE c LENGTH 1, char_width TYPE tdcwidths, END OF mty_s_font_metric . TYPES: mty_th_font_metrics TYPE HASHED TABLE OF mty_s_font_metric WITH UNIQUE KEY char . TYPES: BEGIN OF mty_s_font_cache, font_name TYPE zexcel_style_font_name, font_height TYPE tdfontsize, flag_bold TYPE abap_bool, flag_italic TYPE abap_bool, th_font_metrics TYPE mty_th_font_metrics, END OF mty_s_font_cache . TYPES: mty_th_font_cache TYPE HASHED TABLE OF mty_s_font_cache WITH UNIQUE KEY font_name font_height flag_bold flag_italic . TYPES: * types: * mty_ts_row_dimension TYPE SORTED TABLE OF zexcel_s_worksheet_rowdimensio WITH UNIQUE KEY row . BEGIN OF mty_merge, row_from TYPE i, row_to TYPE i, col_from TYPE i, col_to TYPE i, END OF mty_merge . TYPES: mty_ts_merge TYPE SORTED TABLE OF mty_merge WITH UNIQUE KEY table_line . *"* private components of class ZCL_EXCEL_WORKSHEET *"* do not include other source files here!!! DATA active_cell TYPE zexcel_s_cell_data . DATA charts TYPE REF TO zcl_excel_drawings . DATA columns TYPE REF TO zcl_excel_columns . DATA row_default TYPE REF TO zcl_excel_row . DATA column_default TYPE REF TO zcl_excel_column . DATA styles_cond TYPE REF TO zcl_excel_styles_cond . DATA data_validations TYPE REF TO zcl_excel_data_validations . DATA default_excel_date_format TYPE zexcel_number_format . DATA default_excel_time_format TYPE zexcel_number_format . DATA comments TYPE REF TO zcl_excel_comments . DATA drawings TYPE REF TO zcl_excel_drawings . DATA freeze_pane_cell_column TYPE zexcel_cell_column . DATA freeze_pane_cell_row TYPE zexcel_cell_row . DATA guid TYPE uuid . DATA hyperlinks TYPE REF TO cl_object_collection . DATA lower_cell TYPE zexcel_s_cell_data . DATA mo_pagebreaks TYPE REF TO zcl_excel_worksheet_pagebreaks . CLASS-DATA mth_font_cache TYPE mty_th_font_cache . DATA mt_merged_cells TYPE mty_ts_merge . DATA mt_row_outlines TYPE mty_ts_outlines_row . DATA print_title_col_from TYPE zexcel_cell_column_alpha . DATA print_title_col_to TYPE zexcel_cell_column_alpha . DATA print_title_row_from TYPE zexcel_cell_row . DATA print_title_row_to TYPE zexcel_cell_row . DATA ranges TYPE REF TO zcl_excel_ranges . DATA rows TYPE REF TO zcl_excel_rows . DATA tables TYPE REF TO cl_object_collection . DATA title TYPE zexcel_sheet_title VALUE 'Worksheet'. "#EC NOTEXT . . . . . . . . . . . . . . . . . . . . . . . . . . . . " . DATA upper_cell TYPE zexcel_s_cell_data . METHODS calculate_cell_width IMPORTING !ip_column TYPE simple !ip_row TYPE zexcel_cell_row RETURNING value(ep_width) TYPE float RAISING zcx_excel . METHODS generate_title RETURNING value(ep_title) TYPE zexcel_sheet_title . METHODS get_value_type IMPORTING !ip_value TYPE simple EXPORTING !ep_value TYPE simple !ep_value_type TYPE abap_typekind . METHODS print_title_set_range . METHODS update_dimension_range RAISING zcx_excel . ENDCLASS. CLASS ZCL_EXCEL_WORKSHEET IMPLEMENTATION. METHOD add_comment. comments->include( ip_comment ). ENDMETHOD. "add_comment METHOD add_drawing. CASE ip_drawing->get_type( ). WHEN zcl_excel_drawing=>type_image. drawings->include( ip_drawing ). WHEN zcl_excel_drawing=>type_chart. charts->include( ip_drawing ). ENDCASE. ENDMETHOD. "ADD_DRAWING METHOD add_new_column. DATA: lv_column_alpha TYPE zexcel_cell_column_alpha. lv_column_alpha = zcl_excel_common=>convert_column2alpha( ip_column ). CREATE OBJECT eo_column EXPORTING ip_index = lv_column_alpha ip_excel = me->excel ip_worksheet = me. columns->add( eo_column ). ENDMETHOD. "ADD_NEW_COLUMN METHOD add_new_data_validation. CREATE OBJECT eo_data_validation. data_validations->add( eo_data_validation ). ENDMETHOD. "ADD_NEW_DATA_VALIDATION METHOD add_new_range. * Create default blank range CREATE OBJECT eo_range. ranges->add( eo_range ). ENDMETHOD. "ADD_NEW_RANGE METHOD add_new_row. CREATE OBJECT eo_row EXPORTING ip_index = ip_row. rows->add( eo_row ). ENDMETHOD. "ADD_NEW_ROW METHOD add_new_style_cond. CREATE OBJECT eo_style_cond. styles_cond->add( eo_style_cond ). ENDMETHOD. "ADD_NEW_STYLE_COND METHOD bind_alv. DATA: lo_converter TYPE REF TO zcl_excel_converter. CREATE OBJECT lo_converter. TRY. lo_converter->convert( EXPORTING io_alv = io_alv it_table = it_table i_row_int = i_top i_column_int = i_left i_table = i_table i_style_table = table_style io_worksheet = me CHANGING co_excel = excel ). CATCH zcx_excel . ENDTRY. ENDMETHOD. "BIND_ALV METHOD bind_alv_ole2. *--------------------------------------------------------------------* * Method description: * Method use to export a CL_GUI_ALV_GRID object to xlsx/xls file * with list header and characteristics of ALV field catalog such as: * + Total, group's subtotal * + Quantity fields, amount fields (dependent fields) * + No_out, no_zero, ... * Technique use in method: * SAP Desktop Office Integration (DOI) *--------------------------------------------------------------------* * Data for session 0: DOI constructor * ------------------------------------------ DATA: lo_control TYPE REF TO i_oi_container_control. DATA: lo_proxy TYPE REF TO i_oi_document_proxy. DATA: lo_spreadsheet TYPE REF TO i_oi_spreadsheet. DATA: lo_error TYPE REF TO i_oi_error. DATA: lc_retcode TYPE soi_ret_string. DATA: li_has TYPE i. "Proxy has spreadsheet interface? DATA: l_is_closed TYPE i. * Data for session 1: Get LVC data from ALV object * ------------------------------------------ DATA: l_has_activex, l_doctype_excel_sheet(11) TYPE c. * LVC DATA: lt_fieldcat_lvc TYPE lvc_t_fcat. DATA: wa_fieldcat_lvc TYPE lvc_s_fcat. DATA: lt_sort_lvc TYPE lvc_t_sort. DATA: lt_filter_idx_lvc TYPE lvc_t_fidx. DATA: lt_grouplevels_lvc TYPE lvc_t_grpl. * KKBLO DATA: lt_fieldcat_kkblo TYPE kkblo_t_fieldcat. DATA: lt_sort_kkblo TYPE kkblo_t_sortinfo. DATA: lt_grouplevels_kkblo TYPE kkblo_t_grouplevels. DATA: lt_filter_idx_kkblo TYPE kkblo_t_sfinfo. DATA: wa_listheader LIKE LINE OF it_listheader. * Subtotal DATA: lt_collect00 TYPE REF TO data. DATA: lt_collect01 TYPE REF TO data. DATA: lt_collect02 TYPE REF TO data. DATA: lt_collect03 TYPE REF TO data. DATA: lt_collect04 TYPE REF TO data. DATA: lt_collect05 TYPE REF TO data. DATA: lt_collect06 TYPE REF TO data. DATA: lt_collect07 TYPE REF TO data. DATA: lt_collect08 TYPE REF TO data. DATA: lt_collect09 TYPE REF TO data. * data table name DATA: l_tabname TYPE kkblo_tabname. * local object DATA: lo_grid TYPE REF TO lcl_gui_alv_grid. * data table get from ALV DATA: lt_alv TYPE REF TO data. * total / subtotal data FIELD-SYMBOLS: <f_collect00> TYPE STANDARD TABLE. FIELD-SYMBOLS: <f_collect01> TYPE STANDARD TABLE. FIELD-SYMBOLS: <f_collect02> TYPE STANDARD TABLE. FIELD-SYMBOLS: <f_collect03> TYPE STANDARD TABLE. FIELD-SYMBOLS: <f_collect04> TYPE STANDARD TABLE. FIELD-SYMBOLS: <f_collect05> TYPE STANDARD TABLE. FIELD-SYMBOLS: <f_collect06> TYPE STANDARD TABLE. FIELD-SYMBOLS: <f_collect07> TYPE STANDARD TABLE. FIELD-SYMBOLS: <f_collect08> TYPE STANDARD TABLE. FIELD-SYMBOLS: <f_collect09> TYPE STANDARD TABLE. * table before append subtotal lines FIELD-SYMBOLS: <f_alv_tab> TYPE STANDARD TABLE. * data for session 2: sort, filter and calculate total/subtotal * ------------------------------------------ * table to save index of subotal / total line in excel tanle * this ideal to control index of subtotal / total line later * for ex, when get subtotal / total line to format TYPES: BEGIN OF st_subtot_indexs, index TYPE i, END OF st_subtot_indexs. DATA: lt_subtot_indexs TYPE TABLE OF st_subtot_indexs. DATA: wa_subtot_indexs LIKE LINE OF lt_subtot_indexs. * data table after append subtotal DATA: lt_excel TYPE REF TO data. DATA: l_tabix TYPE i. DATA: l_save_index TYPE i. * dyn subtotal table name DATA: l_collect TYPE string. * subtotal range, to format subtotal (and total) DATA: subranges TYPE soi_range_list. DATA: subrangeitem TYPE soi_range_item. DATA: l_sub_index TYPE i. * table after append subtotal lines FIELD-SYMBOLS: <f_excel_tab> TYPE STANDARD TABLE. FIELD-SYMBOLS: <f_excel_line> TYPE any. * dyn subtotal tables FIELD-SYMBOLS: <f_collect_tab> TYPE STANDARD TABLE. FIELD-SYMBOLS: <f_collect_line> TYPE any. FIELD-SYMBOLS: <f_filter_idx_line> LIKE LINE OF lt_filter_idx_kkblo. FIELD-SYMBOLS: <f_fieldcat_line> LIKE LINE OF lt_fieldcat_kkblo. FIELD-SYMBOLS: <f_grouplevels_line> LIKE LINE OF lt_grouplevels_kkblo. FIELD-SYMBOLS: <f_line> TYPE any. * Data for session 3: map data to semantic table * ------------------------------------------ TYPES: BEGIN OF st_column_index, fieldname TYPE kkblo_fieldname, tabname TYPE kkblo_tabname, col LIKE sy-index, END OF st_column_index. * columns index DATA: lt_column_index TYPE TABLE OF st_column_index. DATA: wa_column_index LIKE LINE OF lt_column_index. * table of dependent field ( currency and quantity unit field) DATA: lt_fieldcat_depf TYPE kkblo_t_fieldcat. DATA: wa_fieldcat_depf TYPE kkblo_fieldcat. * XXL interface: * -XXL: contain exporting columns characteristic DATA: lt_sema TYPE TABLE OF gxxlt_s INITIAL SIZE 0. DATA: wa_sema LIKE LINE OF lt_sema. * -XXL interface: header DATA: lt_hkey TYPE TABLE OF gxxlt_h INITIAL SIZE 0. DATA: wa_hkey LIKE LINE OF lt_hkey. * -XXL interface: header keys DATA: lt_vkey TYPE TABLE OF gxxlt_v INITIAL SIZE 0. DATA: wa_vkey LIKE LINE OF lt_vkey. * Number of H Keys: number of key columns DATA: l_n_hrz_keys TYPE i. * Number of data columns in the list object: non-key columns no DATA: l_n_att_cols TYPE i. * Number of V Keys: number of header row DATA: l_n_vrt_keys TYPE i. * curency to format amount DATA: lt_tcurx TYPE TABLE OF tcurx. DATA: wa_tcurx LIKE LINE OF lt_tcurx. DATA: l_def TYPE flag. " currency / quantity flag DATA: wa_t006 TYPE t006. " decimal place of unit DATA: l_num TYPE i. " table columns number DATA: l_typ TYPE c. " table type DATA: wa TYPE REF TO data. DATA: l_int TYPE i. DATA: l_counter TYPE i. FIELD-SYMBOLS: <f_excel_column> TYPE any. FIELD-SYMBOLS: <f_fcat_column> TYPE any. * Data for session 4: write to excel * ------------------------------------------ DATA: sema_type TYPE c. DATA l_error TYPE REF TO c_oi_proxy_error. DATA count TYPE i. DATA datac TYPE i. DATA datareal TYPE i. " exporting column number DATA vkeycount TYPE i. DATA all TYPE i. DATA mit TYPE i VALUE 1. " index of recent row? DATA li_col_pos TYPE i VALUE 1. " column position DATA li_col_num TYPE i. " table columns number FIELD-SYMBOLS: <line> TYPE any. FIELD-SYMBOLS: <item> TYPE any. DATA td TYPE sydes_desc. DATA: typ. DATA: ranges TYPE soi_range_list. DATA: rangeitem TYPE soi_range_item. DATA: contents TYPE soi_generic_table. DATA: contentsitem TYPE soi_generic_item. DATA: semaitem TYPE gxxlt_s. DATA: hkeyitem TYPE gxxlt_h. DATA: vkeyitem TYPE gxxlt_v. DATA: li_commentary_rows TYPE i. "row number of title lines + 1 DATA: lo_error_w TYPE REF TO i_oi_error. DATA: l_retcode TYPE soi_ret_string. DATA: no_flush TYPE c VALUE 'X'. DATA: li_head_top TYPE i. "header rows position * Data for session 5: Save and clode document * ------------------------------------------ DATA: li_document_size TYPE i. DATA: ls_path TYPE rlgrap-filename. * MACRO: Close_document *------------------------------------------- DEFINE close_document. clear: l_is_closed. if lo_proxy is not initial. * check proxy detroyed adi call method lo_proxy->is_destroyed importing ret_value = l_is_closed. * if dun detroyed yet: close -> release proxy if l_is_closed is initial. call method lo_proxy->close_document * EXPORTING * do_save = do_save importing error = lo_error retcode = lc_retcode. endif. call method lo_proxy->release_document importing error = lo_error retcode = lc_retcode. else. lc_retcode = c_oi_errors=>ret_document_not_open. endif. * Detroy control container if lo_control is not initial. call method lo_control->destroy_control. endif. clear: lo_spreadsheet, lo_proxy, lo_control. * free local clear: l_is_closed. END-OF-DEFINITION. * Macro to catch DOI error *------------------------------------------- DEFINE error_doi. if lc_retcode ne c_oi_errors=>ret_ok. close_document. call method lo_error->raise_message exporting type = 'E'. clear: lo_error. endif. END-OF-DEFINITION. *--------------------------------------------------------------------* * SESSION 0: DOI CONSTRUCTOR *--------------------------------------------------------------------* * check active windown CALL FUNCTION 'GUI_HAS_ACTIVEX' IMPORTING return = l_has_activex. IF l_has_activex IS INITIAL. RAISE miss_guide. ENDIF. * Get Container Object of Screen CALL METHOD c_oi_container_control_creator=>get_container_control IMPORTING control = lo_control retcode = lc_retcode. error_doi. * Initialize Container control CALL METHOD lo_control->init_control EXPORTING parent = cl_gui_container=>default_screen r3_application_name = '' inplace_enabled = 'X' no_flush = 'X' register_on_close_event = 'X' register_on_custom_event = 'X' IMPORTING error = lo_error retcode = lc_retcode. error_doi. * Get Proxy Document: * check exist of document proxy, if exist -> close first IF NOT lo_proxy IS INITIAL. close_document. ENDIF. IF i_xls IS NOT INITIAL. * xls format, doctype = soi_doctype_excel97_sheet l_doctype_excel_sheet = 'Excel.Sheet.8'. ELSE. * xlsx format, doctype = soi_doctype_excel_sheet l_doctype_excel_sheet = 'Excel.Sheet'. ENDIF. CALL METHOD lo_control->get_document_proxy EXPORTING document_type = l_doctype_excel_sheet register_container = 'X' IMPORTING document_proxy = lo_proxy error = lo_error retcode = lc_retcode. error_doi. IF i_document_url IS INITIAL. * create new excel document CALL METHOD lo_proxy->create_document EXPORTING create_view_data = 'X' open_inplace = 'X' no_flush = 'X' IMPORTING error = lo_error retcode = lc_retcode. error_doi. ELSE. * Read excel template for i_DOCUMENT_URL * this excel template can be store in local or server CALL METHOD lo_proxy->open_document EXPORTING document_url = i_document_url open_inplace = 'X' no_flush = 'X' IMPORTING error = lo_error retcode = lc_retcode. error_doi. ENDIF. * Check Spreadsheet Interface of Document Proxy CALL METHOD lo_proxy->has_spreadsheet_interface IMPORTING is_available = li_has error = lo_error retcode = lc_retcode. error_doi. * create Spreadsheet object CHECK li_has IS NOT INITIAL. CALL METHOD lo_proxy->get_spreadsheet_interface IMPORTING sheet_interface = lo_spreadsheet error = lo_error retcode = lc_retcode. error_doi. *--------------------------------------------------------------------* * SESSION 1: GET LVC DATA FROM ALV OBJECT *--------------------------------------------------------------------* * data table CREATE OBJECT lo_grid EXPORTING i_parent = cl_gui_container=>screen0. CALL METHOD lo_grid->get_alv_attributes EXPORTING io_grid = io_alv IMPORTING et_table = lt_alv. ASSIGN lt_alv->* TO <f_alv_tab>. * fieldcat CALL METHOD io_alv->get_frontend_fieldcatalog IMPORTING et_fieldcatalog = lt_fieldcat_lvc. * table name LOOP AT lt_fieldcat_lvc INTO wa_fieldcat_lvc WHERE NOT tabname IS INITIAL. l_tabname = wa_fieldcat_lvc-tabname. EXIT. ENDLOOP. IF sy-subrc NE 0. l_tabname = '1'. ENDIF. CLEAR: wa_fieldcat_lvc. * sort table CALL METHOD io_alv->get_sort_criteria IMPORTING et_sort = lt_sort_lvc. * filter index CALL METHOD io_alv->get_filtered_entries IMPORTING et_filtered_entries = lt_filter_idx_lvc. * group level + subtotal CALL METHOD io_alv->get_subtotals IMPORTING ep_collect00 = lt_collect00 ep_collect01 = lt_collect01 ep_collect02 = lt_collect02 ep_collect03 = lt_collect03 ep_collect04 = lt_collect04 ep_collect05 = lt_collect05 ep_collect06 = lt_collect06 ep_collect07 = lt_collect07 ep_collect08 = lt_collect08 ep_collect09 = lt_collect09 et_grouplevels = lt_grouplevels_lvc. ASSIGN lt_collect00->* TO <f_collect00>. ASSIGN lt_collect01->* TO <f_collect01>. ASSIGN lt_collect02->* TO <f_collect02>. ASSIGN lt_collect03->* TO <f_collect03>. ASSIGN lt_collect04->* TO <f_collect04>. ASSIGN lt_collect05->* TO <f_collect05>. ASSIGN lt_collect06->* TO <f_collect06>. ASSIGN lt_collect07->* TO <f_collect07>. ASSIGN lt_collect08->* TO <f_collect08>. ASSIGN lt_collect09->* TO <f_collect09>. * transfer to KKBLO struct CALL FUNCTION 'LVC_TRANSFER_TO_KKBLO' EXPORTING it_fieldcat_lvc = lt_fieldcat_lvc it_sort_lvc = lt_sort_lvc it_filter_index_lvc = lt_filter_idx_lvc it_grouplevels_lvc = lt_grouplevels_lvc IMPORTING et_fieldcat_kkblo = lt_fieldcat_kkblo et_sort_kkblo = lt_sort_kkblo et_filtered_entries_kkblo = lt_filter_idx_kkblo et_grouplevels_kkblo = lt_grouplevels_kkblo TABLES it_data = <f_alv_tab> EXCEPTIONS it_data_missing = 1 it_fieldcat_lvc_missing = 2 OTHERS = 3. IF sy-subrc <> 0. RAISE ex_transfer_kkblo_error. ENDIF. CLEAR: wa_fieldcat_lvc, lt_fieldcat_lvc, lt_sort_lvc, lt_filter_idx_lvc, lt_grouplevels_lvc. CLEAR: lo_grid. *--------------------------------------------------------------------* * SESSION 2: SORT, FILTER AND CALCULATE TOTAL / SUBTOTAL *--------------------------------------------------------------------* * append subtotal & total line CREATE DATA lt_excel LIKE <f_alv_tab>. ASSIGN lt_excel->* TO <f_excel_tab>. LOOP AT <f_alv_tab> ASSIGNING <f_line>. l_save_index = sy-tabix. * filter base on filter index table READ TABLE lt_filter_idx_kkblo ASSIGNING <f_filter_idx_line> WITH KEY index = l_save_index BINARY SEARCH. IF sy-subrc NE 0. APPEND <f_line> TO <f_excel_tab>. ENDIF. * append subtotal lines READ TABLE lt_grouplevels_kkblo ASSIGNING <f_grouplevels_line> WITH KEY index_to = l_save_index BINARY SEARCH. IF sy-subrc = 0. l_tabix = sy-tabix. DO. IF <f_grouplevels_line>-subtot EQ 'X' AND <f_grouplevels_line>-hide_level IS INITIAL AND <f_grouplevels_line>-cindex_from NE 0. * dynamic append subtotal line to excel table base on grouplevel table * ex <f_GROUPLEVELS_line>-level = 1 * then <f_collect_tab> = '<F_COLLECT01>' l_collect = <f_grouplevels_line>-level. CONDENSE l_collect. CONCATENATE '<F_COLLECT0' l_collect '>' * '->*' INTO l_collect. ASSIGN (l_collect) TO <f_collect_tab>. * incase there're more than 1 total line of group, at the same level * for example: subtotal of multi currency LOOP AT <f_collect_tab> ASSIGNING <f_collect_line>. IF sy-tabix BETWEEN <f_grouplevels_line>-cindex_from AND <f_grouplevels_line>-cindex_to. APPEND <f_collect_line> TO <f_excel_tab>. * save subtotal lines index wa_subtot_indexs-index = sy-tabix. APPEND wa_subtot_indexs TO lt_subtot_indexs. * append sub total ranges table for format later ADD 1 TO l_sub_index. subrangeitem-name = l_sub_index. CONDENSE subrangeitem-name. CONCATENATE 'SUBTOT' subrangeitem-name INTO subrangeitem-name. subrangeitem-rows = wa_subtot_indexs-index. subrangeitem-columns = 1. " start col APPEND subrangeitem TO subranges. CLEAR: subrangeitem. ENDIF. ENDLOOP. UNASSIGN: <f_collect_tab>. UNASSIGN: <f_collect_line>. CLEAR: l_collect. ENDIF. * check next subtotal level of group UNASSIGN: <f_grouplevels_line>. ADD 1 TO l_tabix. READ TABLE lt_grouplevels_kkblo ASSIGNING <f_grouplevels_line> INDEX l_tabix. IF sy-subrc NE 0 OR <f_grouplevels_line>-index_to NE l_save_index. EXIT. ENDIF. UNASSIGN: <f_collect_tab>, <f_collect_line>. ENDDO. ENDIF. CLEAR: l_tabix, l_save_index. UNASSIGN: <f_filter_idx_line>, <f_grouplevels_line>. ENDLOOP. * free local data UNASSIGN: <f_line>, <f_collect_tab>, <f_collect_line>, <f_fieldcat_line>. * append grand total line IF <f_collect00> IS ASSIGNED. ASSIGN <f_collect00> TO <f_collect_tab>. IF <f_collect_tab> IS NOT INITIAL. LOOP AT <f_collect_tab> ASSIGNING <f_collect_line>. APPEND <f_collect_line> TO <f_excel_tab>. * save total line index wa_subtot_indexs-index = sy-tabix. APPEND wa_subtot_indexs TO lt_subtot_indexs. * append grand total range (to format) ADD 1 TO l_sub_index. subrangeitem-name = l_sub_index. CONDENSE subrangeitem-name. CONCATENATE 'TOTAL' subrangeitem-name INTO subrangeitem-name. subrangeitem-rows = wa_subtot_indexs-index. subrangeitem-columns = 1. " start col APPEND subrangeitem TO subranges. ENDLOOP. ENDIF. ENDIF. CLEAR: subrangeitem, lt_sort_kkblo, <f_collect00>, <f_collect01>, <f_collect02>, <f_collect03>, <f_collect04>, <f_collect05>, <f_collect06>, <f_collect07>, <f_collect08>, <f_collect09>. UNASSIGN: <f_collect00>, <f_collect01>, <f_collect02>, <f_collect03>, <f_collect04>, <f_collect05>, <f_collect06>, <f_collect07>, <f_collect08>, <f_collect09>, <f_collect_tab>, <f_collect_line>. *--------------------------------------------------------------------* * SESSION 3: MAP DATA TO SEMANTIC TABLE *--------------------------------------------------------------------* * get dependent field field: currency and quantity CREATE DATA wa LIKE LINE OF <f_excel_tab>. ASSIGN wa->* TO <f_excel_line>. DESCRIBE FIELD <f_excel_line> TYPE l_typ COMPONENTS l_num. DO l_num TIMES. l_save_index = sy-index. ASSIGN COMPONENT l_save_index OF STRUCTURE <f_excel_line> TO <f_excel_column>. IF sy-subrc NE 0. MESSAGE e059(0k) WITH 'FATAL ERROR' RAISING fatal_error. ENDIF. LOOP AT lt_fieldcat_kkblo ASSIGNING <f_fieldcat_line> WHERE tabname = l_tabname. ASSIGN COMPONENT <f_fieldcat_line>-fieldname OF STRUCTURE <f_excel_line> TO <f_fcat_column>. DESCRIBE DISTANCE BETWEEN <f_excel_column> AND <f_fcat_column> INTO l_int IN BYTE MODE. * append column index * this columns index is of table, not fieldcat IF l_int = 0. wa_column_index-fieldname = <f_fieldcat_line>-fieldname. wa_column_index-tabname = <f_fieldcat_line>-tabname. wa_column_index-col = l_save_index. APPEND wa_column_index TO lt_column_index. ENDIF. * append dependent fields (currency and quantity unit) IF <f_fieldcat_line>-cfieldname IS NOT INITIAL. CLEAR wa_fieldcat_depf. wa_fieldcat_depf-fieldname = <f_fieldcat_line>-cfieldname. wa_fieldcat_depf-tabname = <f_fieldcat_line>-ctabname. COLLECT wa_fieldcat_depf INTO lt_fieldcat_depf. ENDIF. IF <f_fieldcat_line>-qfieldname IS NOT INITIAL. CLEAR wa_fieldcat_depf. wa_fieldcat_depf-fieldname = <f_fieldcat_line>-qfieldname. wa_fieldcat_depf-tabname = <f_fieldcat_line>-qtabname. COLLECT wa_fieldcat_depf INTO lt_fieldcat_depf. ENDIF. * rewrite field data type IF <f_fieldcat_line>-inttype = 'X' AND <f_fieldcat_line>-datatype(3) = 'INT'. <f_fieldcat_line>-inttype = 'I'. ENDIF. ENDLOOP. CLEAR: l_save_index. UNASSIGN: <f_fieldcat_line>. ENDDO. * build semantic tables l_n_hrz_keys = 1. * Get keyfigures LOOP AT lt_fieldcat_kkblo ASSIGNING <f_fieldcat_line> WHERE tabname = l_tabname AND tech NE 'X' AND no_out NE 'X'. CLEAR wa_sema. CLEAR wa_hkey. * Units belong to keyfigures -> display as str READ TABLE lt_fieldcat_depf INTO wa_fieldcat_depf WITH KEY fieldname = <f_fieldcat_line>-fieldname tabname = <f_fieldcat_line>-tabname. IF sy-subrc = 0. wa_sema-col_typ = 'STR'. wa_sema-col_ops = 'DFT'. * Keyfigures ELSE. CASE <f_fieldcat_line>-datatype. WHEN 'QUAN'. wa_sema-col_typ = 'N03'. IF <f_fieldcat_line>-no_sum NE 'X'. wa_sema-col_ops = 'ADD'. ELSE. wa_sema-col_ops = 'NOP'. " no dependent field ENDIF. WHEN 'DATS'. wa_sema-col_typ = 'DAT'. wa_sema-col_ops = 'NOP'. WHEN 'CHAR' OR 'UNIT' OR 'CUKY'. " Added fieldformats UNIT and CUKY - dd. 26-10-2012 Wouter Heuvelmans wa_sema-col_typ = 'STR'. wa_sema-col_ops = 'DFT'. " dependent field * incase numeric, ex '00120' -> display as '12' WHEN 'NUMC'. wa_sema-col_typ = 'STR'. wa_sema-col_ops = 'DFT'. WHEN OTHERS. wa_sema-col_typ = 'NUM'. IF <f_fieldcat_line>-no_sum NE 'X'. wa_sema-col_ops = 'ADD'. ELSE. wa_sema-col_ops = 'NOP'. ENDIF. ENDCASE. ENDIF. l_counter = l_counter + 1. l_n_att_cols = l_n_att_cols + 1. wa_sema-col_no = l_counter. READ TABLE lt_column_index INTO wa_column_index WITH KEY fieldname = <f_fieldcat_line>-fieldname tabname = <f_fieldcat_line>-tabname. IF sy-subrc = 0. wa_sema-col_src = wa_column_index-col. ELSE. RAISE fatal_error. ENDIF. * columns index of ref currency field in table IF NOT <f_fieldcat_line>-cfieldname IS INITIAL. READ TABLE lt_column_index INTO wa_column_index WITH KEY fieldname = <f_fieldcat_line>-cfieldname tabname = <f_fieldcat_line>-ctabname. IF sy-subrc = 0. wa_sema-col_cur = wa_column_index-col. ENDIF. * quantities fields * treat as currency when display on excel ELSEIF NOT <f_fieldcat_line>-qfieldname IS INITIAL. READ TABLE lt_column_index INTO wa_column_index WITH KEY fieldname = <f_fieldcat_line>-qfieldname tabname = <f_fieldcat_line>-qtabname. IF sy-subrc = 0. wa_sema-col_cur = wa_column_index-col. ENDIF. ENDIF. * Treat of fixed currency in the fieldcatalog for column DATA: l_num_help(2) TYPE n. IF NOT <f_fieldcat_line>-currency IS INITIAL. SELECT * FROM tcurx INTO TABLE lt_tcurx. SORT lt_tcurx. READ TABLE lt_tcurx INTO wa_tcurx WITH KEY currkey = <f_fieldcat_line>-currency. IF sy-subrc = 0. l_num_help = wa_tcurx-currdec. CONCATENATE 'N' l_num_help INTO wa_sema-col_typ. wa_sema-col_cur = sy-tabix * ( -1 ). ENDIF. ENDIF. wa_hkey-col_no = l_n_att_cols. wa_hkey-row_no = l_n_hrz_keys. wa_hkey-col_name = <f_fieldcat_line>-reptext. APPEND wa_hkey TO lt_hkey. APPEND wa_sema TO lt_sema. ENDLOOP. * free local data CLEAR: lt_column_index, wa_column_index, lt_fieldcat_depf, wa_fieldcat_depf, lt_tcurx, wa_tcurx, l_num, l_typ, wa, l_int, l_counter. UNASSIGN: <f_fieldcat_line>, <f_excel_line>, <f_excel_column>, <f_fcat_column>. *--------------------------------------------------------------------* * SESSION 4: WRITE TO EXCEL *--------------------------------------------------------------------* CLEAR: wa_tcurx. REFRESH: lt_tcurx. * if spreadsheet dun have proxy yet IF li_has IS INITIAL. l_retcode = c_oi_errors=>ret_interface_not_supported. CALL METHOD c_oi_errors=>create_error_for_retcode EXPORTING retcode = l_retcode no_flush = no_flush IMPORTING error = lo_error_w. EXIT. ENDIF. CREATE OBJECT l_error EXPORTING object_name = 'OLE_DOCUMENT_PROXY' method_name = 'get_ranges_names'. CALL METHOD c_oi_errors=>add_error EXPORTING error = l_error. DESCRIBE TABLE lt_sema LINES datareal. DESCRIBE TABLE <f_excel_tab> LINES datac. DESCRIBE TABLE lt_vkey LINES vkeycount. IF datac = 0. RAISE inv_data_range. ENDIF. IF vkeycount NE l_n_vrt_keys. RAISE dim_mismatch_vkey. ENDIF. all = l_n_vrt_keys + l_n_att_cols. IF datareal NE all. RAISE dim_mismatch_sema. ENDIF. DATA: decimal TYPE c. * get decimal separator format ('.', ',', ...) in Office config CALL METHOD lo_proxy->get_application_property EXPORTING property_name = 'INTERNATIONAL' subproperty_name = 'DECIMAL_SEPARATOR' CHANGING retvalue = decimal. DATA date_format TYPE usr01-datfm. SELECT SINGLE datfm FROM usr01 INTO date_format WHERE bname = sy-uname. DATA: comma_elim(4) TYPE c. FIELD-SYMBOLS <g> TYPE any. DATA search_item(4) VALUE ' #'. CONCATENATE ',' decimal '.' decimal INTO comma_elim. DATA help TYPE i. " table (with subtotal) line number help = datac. DATA: rowmax TYPE i VALUE 1. " header row number DATA: columnmax TYPE i VALUE 0. " header columns number LOOP AT lt_hkey INTO hkeyitem. IF hkeyitem-col_no > columnmax. columnmax = hkeyitem-col_no. ENDIF. IF hkeyitem-row_no > rowmax. rowmax = hkeyitem-row_no. ENDIF. ENDLOOP. DATA: hkeycolumns TYPE i. " header columns no hkeycolumns = columnmax. IF hkeycolumns < l_n_att_cols. hkeycolumns = l_n_att_cols. ENDIF. columnmax = 0. LOOP AT lt_vkey INTO vkeyitem. IF vkeyitem-col_no > columnmax. columnmax = vkeyitem-col_no. ENDIF. ENDLOOP. DATA overflow TYPE i VALUE 1. DATA testname(10) TYPE c. DATA temp2 TYPE i. " 1st item row position in excel DATA realmit TYPE i VALUE 1. DATA realoverflow TYPE i VALUE 1. " row index in content CALL METHOD lo_spreadsheet->screen_update EXPORTING updating = ''. CALL METHOD lo_spreadsheet->load_lib. DATA: str(40) TYPE c. " range names of columns range (w/o col header) DATA: rows TYPE i. " row postion of 1st item line in ecxel * calculate row position of data table DESCRIBE TABLE it_listheader LINES li_commentary_rows. * if grid had title, add 1 empy line between title and table IF li_commentary_rows NE 0. ADD 1 TO li_commentary_rows. ENDIF. * add top position of block data li_commentary_rows = li_commentary_rows + i_top - 1. * write header (commentary rows) DATA: li_commentary_row_index TYPE i VALUE 1. DATA: li_content_index TYPE i VALUE 1. DATA: ls_index(10) TYPE c. DATA ls_commentary_range(40) TYPE c VALUE 'TITLE'. DATA: li_font_bold TYPE i. DATA: li_font_italic TYPE i. DATA: li_font_size TYPE i. LOOP AT it_listheader INTO wa_listheader. li_commentary_row_index = i_top + li_content_index - 1. ls_index = li_content_index. CONDENSE ls_index. CONCATENATE ls_commentary_range(5) ls_index INTO ls_commentary_range. CONDENSE ls_commentary_range. * insert title range CALL METHOD lo_spreadsheet->insert_range_dim EXPORTING name = ls_commentary_range top = li_commentary_row_index left = i_left rows = 1 columns = 1 no_flush = no_flush. * format range CASE wa_listheader-typ. WHEN 'H'. "title li_font_size = 16. li_font_bold = 1. li_font_italic = -1. WHEN 'S'. "subtile li_font_size = -1. li_font_bold = 1. li_font_italic = -1. WHEN OTHERS. "'A' comment li_font_size = -1. li_font_bold = -1. li_font_italic = 1. ENDCASE. CALL METHOD lo_spreadsheet->set_font EXPORTING rangename = ls_commentary_range family = '' size = li_font_size bold = li_font_bold italic = li_font_italic align = 0 no_flush = no_flush. * title: range content rangeitem-name = ls_commentary_range. rangeitem-columns = 1. rangeitem-rows = 1. APPEND rangeitem TO ranges. contentsitem-row = li_content_index. contentsitem-column = 1. CONCATENATE wa_listheader-key wa_listheader-info INTO contentsitem-value SEPARATED BY space. CONDENSE contentsitem-value. APPEND contentsitem TO contents. ADD 1 TO li_content_index. CLEAR: rangeitem, contentsitem, ls_index. ENDLOOP. * set range data title CALL METHOD lo_spreadsheet->set_ranges_data EXPORTING ranges = ranges contents = contents no_flush = no_flush. REFRESH: ranges, contents. rows = rowmax + li_commentary_rows + 1. all = date_format. all = all + 3. LOOP AT lt_sema INTO semaitem. IF semaitem-col_typ = 'DAT' OR semaitem-col_typ = 'MON' OR semaitem-col_typ = 'N00' OR semaitem-col_typ = 'N01' OR semaitem-col_typ = 'N01' OR semaitem-col_typ = 'N02' OR semaitem-col_typ = 'N03' OR semaitem-col_typ = 'PCT' OR semaitem-col_typ = 'STR' OR semaitem-col_typ = 'NUM'. CLEAR str. str = semaitem-col_no. CONDENSE str. CONCATENATE 'DATA' str INTO str. mit = semaitem-col_no. li_col_pos = semaitem-col_no + i_left - 1. * range from data1 to data(n), for each columns of table CALL METHOD lo_spreadsheet->insert_range_dim EXPORTING name = str top = rows left = li_col_pos rows = help columns = 1 no_flush = no_flush. DATA dec TYPE i VALUE -1. DATA typeinfo TYPE sydes_typeinfo. LOOP AT <f_excel_tab> ASSIGNING <line>. ASSIGN COMPONENT semaitem-col_no OF STRUCTURE <line> TO <item>. DESCRIBE FIELD <item> INTO td. READ TABLE td-types INDEX 1 INTO typeinfo. IF typeinfo-type = 'P'. dec = typeinfo-decimals. ELSEIF typeinfo-type = 'I'. dec = 0. ENDIF. DESCRIBE FIELD <line> TYPE typ COMPONENTS count. mit = 1. DO count TIMES. IF mit = semaitem-col_src. ASSIGN COMPONENT sy-index OF STRUCTURE <line> TO <item>. DESCRIBE FIELD <item> INTO td. READ TABLE td-types INDEX 1 INTO typeinfo. IF typeinfo-type = 'P'. dec = typeinfo-decimals. ENDIF. EXIT. ENDIF. mit = mit + 1. ENDDO. EXIT. ENDLOOP. * format for each columns of table (w/o columns headers) IF semaitem-col_typ = 'DAT'. IF semaitem-col_no > vkeycount. CALL METHOD lo_spreadsheet->set_format EXPORTING rangename = str currency = '' typ = all no_flush = no_flush. ELSE. CALL METHOD lo_spreadsheet->set_format EXPORTING rangename = str currency = '' typ = 0 no_flush = no_flush. ENDIF. ELSEIF semaitem-col_typ = 'STR'. CALL METHOD lo_spreadsheet->set_format EXPORTING rangename = str currency = '' typ = 0 no_flush = no_flush. ELSEIF semaitem-col_typ = 'MON'. CALL METHOD lo_spreadsheet->set_format EXPORTING rangename = str currency = '' typ = 10 no_flush = no_flush. ELSEIF semaitem-col_typ = 'N00'. CALL METHOD lo_spreadsheet->set_format EXPORTING rangename = str currency = '' typ = 1 decimals = 0 no_flush = no_flush. ELSEIF semaitem-col_typ = 'N01'. CALL METHOD lo_spreadsheet->set_format EXPORTING rangename = str currency = '' typ = 1 decimals = 1 no_flush = no_flush. ELSEIF semaitem-col_typ = 'N02'. CALL METHOD lo_spreadsheet->set_format EXPORTING rangename = str currency = '' typ = 1 decimals = 2 no_flush = no_flush. ELSEIF semaitem-col_typ = 'N03'. CALL METHOD lo_spreadsheet->set_format EXPORTING rangename = str currency = '' typ = 1 decimals = 3 no_flush = no_flush. ELSEIF semaitem-col_typ = 'N04'. CALL METHOD lo_spreadsheet->set_format EXPORTING rangename = str currency = '' typ = 1 decimals = 4 no_flush = no_flush. ELSEIF semaitem-col_typ = 'NUM'. IF dec EQ -1. CALL METHOD lo_spreadsheet->set_format EXPORTING rangename = str currency = '' typ = 1 decimals = 2 no_flush = no_flush. ELSE. CALL METHOD lo_spreadsheet->set_format EXPORTING rangename = str currency = '' typ = 1 decimals = dec no_flush = no_flush. ENDIF. ELSEIF semaitem-col_typ = 'PCT'. CALL METHOD lo_spreadsheet->set_format EXPORTING rangename = str currency = '' typ = 3 decimals = 0 no_flush = no_flush. ENDIF. ENDIF. ENDLOOP. * get item contents for set_range_data method * get currency cell also mit = 1. DATA: currcells TYPE soi_cell_table. DATA: curritem TYPE soi_cell_item. curritem-rows = 1. curritem-columns = 1. curritem-front = -1. curritem-back = -1. curritem-font = ''. curritem-size = -1. curritem-bold = -1. curritem-italic = -1. curritem-align = -1. curritem-frametyp = -1. curritem-framecolor = -1. curritem-currency = ''. curritem-number = 1. curritem-input = -1. DATA: const TYPE i. * Change for Correction request * Initial 10000 lines are missing in Excel Export * if there are only 2 columns in exported List object. IF datareal GT 2. const = 20000 / datareal. ELSE. const = 20000 / ( datareal + 2 ). ENDIF. DATA: lines TYPE i. DATA: innerlines TYPE i. DATA: counter TYPE i. DATA: curritem2 LIKE curritem. DATA: curritem3 LIKE curritem. DATA: length TYPE i. DATA: found. * append content table (for method set_range_content) LOOP AT <f_excel_tab> ASSIGNING <line>. * save line index to compare with lt_subtot_indexs, * to discover line is a subtotal / totale line or not * ex use to set 'dun display zero in subtotal / total line' l_save_index = sy-tabix. DO datareal TIMES. READ TABLE lt_sema INTO semaitem WITH KEY col_no = sy-index. IF semaitem-col_src NE 0. ASSIGN COMPONENT semaitem-col_src OF STRUCTURE <line> TO <item>. ELSE. ASSIGN COMPONENT sy-index OF STRUCTURE <line> TO <item>. ENDIF. contentsitem-row = realoverflow. IF sy-subrc = 0. MOVE semaitem-col_ops TO search_item(3). SEARCH 'ADD#CNT#MIN#MAX#AVG#NOP#DFT#' FOR search_item. IF sy-subrc NE 0. RAISE error_in_sema. ENDIF. MOVE semaitem-col_typ TO search_item(3). SEARCH 'NUM#N00#N01#N02#N03#N04#PCT#DAT#MON#STR#' FOR search_item. IF sy-subrc NE 0. RAISE error_in_sema. ENDIF. contentsitem-column = sy-index. IF semaitem-col_typ EQ 'DAT' OR semaitem-col_typ EQ 'MON'. IF semaitem-col_no > vkeycount. " Hinweis 512418 " EXCEL bezieht Datumsangaben " auf den 31.12.1899, behandelt " aber 1900 als ein Schaltjahr " d.h. ab 1.3.1900 korrekt " 1.3.1900 als Zahl = 61 DATA: genesis TYPE d VALUE '18991230'. DATA: number_of_days TYPE p. * change for date in char format & sema_type = X DATA: temp_date TYPE d. IF NOT <item> IS INITIAL AND NOT <item> CO ' ' AND NOT <item> CO '0'. * change for date in char format & sema_type = X starts IF sema_type = 'X'. DESCRIBE FIELD <item> TYPE typ. IF typ = 'C'. temp_date = <item>. number_of_days = temp_date - genesis. ELSE. number_of_days = <item> - genesis. ENDIF. ELSE. number_of_days = <item> - genesis. ENDIF. * change for date in char format & sema_type = X ends IF number_of_days < 61. number_of_days = number_of_days - 1. ENDIF. SET COUNTRY 'DE'. WRITE number_of_days TO contentsitem-value NO-GROUPING LEFT-JUSTIFIED. SET COUNTRY space. TRANSLATE contentsitem-value USING comma_elim. ELSE. CLEAR contentsitem-value. ENDIF. ELSE. MOVE <item> TO contentsitem-value. ENDIF. ELSEIF semaitem-col_typ EQ 'NUM' OR semaitem-col_typ EQ 'N00' OR semaitem-col_typ EQ 'N01' OR semaitem-col_typ EQ 'N02' OR semaitem-col_typ EQ 'N03' OR semaitem-col_typ EQ 'N04' OR semaitem-col_typ EQ 'PCT'. SET COUNTRY 'DE'. DESCRIBE FIELD <item> TYPE typ. IF semaitem-col_cur IS INITIAL. IF typ NE 'F'. WRITE <item> TO contentsitem-value NO-GROUPING NO-SIGN DECIMALS 14. ELSE. WRITE <item> TO contentsitem-value NO-GROUPING NO-SIGN. ENDIF. ELSE. * Treat of fixed curreny for column >>Y9CK007319 IF semaitem-col_cur < 0. semaitem-col_cur = semaitem-col_cur * ( -1 ). SELECT * FROM tcurx INTO TABLE lt_tcurx. SORT lt_tcurx. READ TABLE lt_tcurx INTO wa_tcurx INDEX semaitem-col_cur. IF sy-subrc = 0. IF typ NE 'F'. WRITE <item> TO contentsitem-value NO-GROUPING CURRENCY wa_tcurx-currkey NO-SIGN DECIMALS 14. ELSE. WRITE <item> TO contentsitem-value NO-GROUPING CURRENCY wa_tcurx-currkey NO-SIGN. ENDIF. ENDIF. ELSE. ASSIGN COMPONENT semaitem-col_cur OF STRUCTURE <line> TO <g>. * mit = index of recent row curritem-top = rowmax + mit + li_commentary_rows. li_col_pos = sy-index + i_left - 1. curritem-left = li_col_pos. * if filed is quantity field (qfieldname ne space) * or amount field (cfieldname ne space), then format decimal place * corresponding with config CLEAR: l_def. READ TABLE lt_fieldcat_kkblo ASSIGNING <f_fieldcat_line> WITH KEY tabname = l_tabname tech = space no_out = space col_pos = semaitem-col_no. IF sy-subrc = 0. IF <f_fieldcat_line>-cfieldname IS NOT INITIAL. l_def = 'C'. ELSE."if <f_fieldcat_line>-qfieldname is not initial. l_def = 'Q'. ENDIF. ENDIF. * if field is amount field * exporting of amount field base on currency decimal table: TCURX IF l_def = 'C'. "field is amount field SELECT SINGLE * FROM tcurx INTO wa_tcurx WHERE currkey = <g>. * if amount ref to un-know currency -> default decimal = 2 IF sy-subrc EQ 0. curritem-decimals = wa_tcurx-currdec. ELSE. curritem-decimals = 2. ENDIF. APPEND curritem TO currcells. IF typ NE 'F'. WRITE <item> TO contentsitem-value CURRENCY <g> NO-SIGN NO-GROUPING. ELSE. WRITE <item> TO contentsitem-value DECIMALS 14 CURRENCY <g> NO-SIGN NO-GROUPING. ENDIF. * if field is quantity field * exporting of quantity field base on quantity decimal table: T006 ELSE."if l_def = 'Q'. " field is quantity field CLEAR: wa_t006. SELECT SINGLE * FROM t006 INTO wa_t006 WHERE msehi = <g>. * if quantity ref to un-know unit-> default decimal = 2 IF sy-subrc EQ 0. curritem-decimals = wa_t006-decan. ELSE. curritem-decimals = 2. ENDIF. APPEND curritem TO currcells. WRITE <item> TO contentsitem-value UNIT <g> NO-SIGN NO-GROUPING. CONDENSE contentsitem-value. ENDIF. ENDIF. "Y9CK007319 ENDIF. CONDENSE contentsitem-value. * add function fieldcat-no zero display LOOP AT lt_fieldcat_kkblo ASSIGNING <f_fieldcat_line> WHERE tabname = l_tabname AND tech NE 'X' AND no_out NE 'X'. IF <f_fieldcat_line>-col_pos = semaitem-col_no. IF <f_fieldcat_line>-no_zero = 'X'. IF <item> = '0'. CLEAR: contentsitem-value. ENDIF. * dun display zero in total/subtotal line too ELSE. CLEAR: wa_subtot_indexs. READ TABLE lt_subtot_indexs INTO wa_subtot_indexs WITH KEY index = l_save_index. IF sy-subrc = 0 AND <item> = '0'. CLEAR: contentsitem-value. ENDIF. ENDIF. ENDIF. ENDLOOP. UNASSIGN: <f_fieldcat_line>. IF <item> LT 0. SEARCH contentsitem-value FOR 'E'. IF sy-fdpos EQ 0. * use prefix notation for signed numbers TRANSLATE contentsitem-value USING '- '. CONDENSE contentsitem-value NO-GAPS. CONCATENATE '-' contentsitem-value INTO contentsitem-value. ELSE. CONCATENATE '-' contentsitem-value INTO contentsitem-value. ENDIF. ENDIF. SET COUNTRY space. * Hier wird nur die korrekte Kommaseparatierung gemacht, wenn die * Zeichen einer * Zahl enthalten sind. Das ist für Timestamps, die auch ":" enthalten. * Für die * darf keine Kommaseparierung stattfinden. * Changing for correction request - Y6BK041073 IF contentsitem-value CO '0123456789.,-+E '. TRANSLATE contentsitem-value USING comma_elim. ENDIF. ELSE. CLEAR contentsitem-value. * if type is not numeric -> dun display with zero WRITE <item> TO contentsitem-value NO-ZERO. SHIFT contentsitem-value LEFT DELETING LEADING space. ENDIF. APPEND contentsitem TO contents. ENDIF. ENDDO. realmit = realmit + 1. realoverflow = realoverflow + 1. mit = mit + 1. * overflow = current row index in content table overflow = overflow + 1. ENDLOOP. UNASSIGN: <f_fieldcat_line>. * set item range for set_range_data method testname = mit / const. CONDENSE testname. CONCATENATE 'TEST' testname INTO testname. realoverflow = realoverflow - 1. realmit = realmit - 1. help = realoverflow. rangeitem-name = testname. rangeitem-columns = datareal. rangeitem-rows = help. APPEND rangeitem TO ranges. * insert item range dim temp2 = rowmax + 1 + li_commentary_rows + realmit - realoverflow. * items data CALL METHOD lo_spreadsheet->insert_range_dim EXPORTING name = testname top = temp2 left = i_left rows = help columns = datareal no_flush = no_flush. * get columns header contents for set_range_data method * export columns header only if no columns header option = space DATA: rowcount TYPE i. DATA: columncount TYPE i. IF i_columns_header = 'X'. * append columns header to contents: hkey rowcount = 1. DO rowmax TIMES. columncount = 1. DO hkeycolumns TIMES. LOOP AT lt_hkey INTO hkeyitem WHERE col_no = columncount AND row_no = rowcount. ENDLOOP. IF sy-subrc = 0. str = hkeyitem-col_name. contentsitem-value = hkeyitem-col_name. ELSE. contentsitem-value = str. ENDIF. contentsitem-column = columncount. contentsitem-row = rowcount. APPEND contentsitem TO contents. columncount = columncount + 1. ENDDO. rowcount = rowcount + 1. ENDDO. * incase columns header in multiline DATA: rowmaxtemp TYPE i. IF rowmax > 1. rowmaxtemp = rowmax - 1. rowcount = 1. DO rowmaxtemp TIMES. columncount = 1. DO columnmax TIMES. contentsitem-column = columncount. contentsitem-row = rowcount. contentsitem-value = ''. APPEND contentsitem TO contents. columncount = columncount + 1. ENDDO. rowcount = rowcount + 1. ENDDO. ENDIF. * append columns header to contents: vkey columncount = 1. DO columnmax TIMES. LOOP AT lt_vkey INTO vkeyitem WHERE col_no = columncount. ENDLOOP. contentsitem-value = vkeyitem-col_name. contentsitem-row = rowmax. contentsitem-column = columncount. APPEND contentsitem TO contents. columncount = columncount + 1. ENDDO. *--------------------------------------------------------------------* * set header range for method set_range_data * insert header keys range dim li_head_top = li_commentary_rows + 1. li_col_pos = i_left. * insert range headers IF hkeycolumns NE 0. rangeitem-name = 'TESTHKEY'. rangeitem-rows = rowmax. rangeitem-columns = hkeycolumns. APPEND rangeitem TO ranges. CLEAR: rangeitem. CALL METHOD lo_spreadsheet->insert_range_dim EXPORTING name = 'TESTHKEY' top = li_head_top left = li_col_pos rows = rowmax columns = hkeycolumns no_flush = no_flush. ENDIF. ENDIF. * format for columns header + total + subtotal * ------------------------------------------ help = rowmax + realmit. " table + header lines DATA: lt_format TYPE soi_format_table. DATA: wa_format LIKE LINE OF lt_format. DATA: wa_format_temp LIKE LINE OF lt_format. FIELD-SYMBOLS: <f_source> TYPE any. FIELD-SYMBOLS: <f_des> TYPE any. * columns header format wa_format-front = -1. wa_format-back = 15. "grey wa_format-font = space. wa_format-size = -1. wa_format-bold = 1. wa_format-align = 0. wa_format-frametyp = -1. wa_format-framecolor = -1. * get column header format from input record * -> map input format IF i_columns_header = 'X'. wa_format-name = 'TESTHKEY'. IF i_format_col_header IS NOT INITIAL. DESCRIBE FIELD i_format_col_header TYPE l_typ COMPONENTS li_col_num. DO li_col_num TIMES. IF sy-index NE 1. " dun map range name ASSIGN COMPONENT sy-index OF STRUCTURE i_format_col_header TO <f_source>. IF <f_source> IS NOT INITIAL. ASSIGN COMPONENT sy-index OF STRUCTURE wa_format TO <f_des>. <f_des> = <f_source>. UNASSIGN: <f_des>. ENDIF. UNASSIGN: <f_source>. ENDIF. ENDDO. CLEAR: li_col_num. ENDIF. APPEND wa_format TO lt_format. ENDIF. * Zusammenfassen der Spalten mit gleicher Nachkommastellenzahl * collect vertical cells (col) with the same number of decimal places * to increase perfomance in currency cell format DESCRIBE TABLE currcells LINES lines. lines = lines - 1. DO lines TIMES. DESCRIBE TABLE currcells LINES innerlines. innerlines = innerlines - 1. SORT currcells BY left top. CLEAR found. DO innerlines TIMES. READ TABLE currcells INDEX sy-index INTO curritem. counter = sy-index + 1. READ TABLE currcells INDEX counter INTO curritem2. IF curritem-left EQ curritem2-left. length = curritem-top + curritem-rows. IF length EQ curritem2-top AND curritem-decimals EQ curritem2-decimals. MOVE curritem TO curritem3. curritem3-rows = curritem3-rows + curritem2-rows. curritem-left = -1. MODIFY currcells INDEX sy-index FROM curritem. curritem2-left = -1. MODIFY currcells INDEX counter FROM curritem2. APPEND curritem3 TO currcells. found = 'X'. ENDIF. ENDIF. ENDDO. IF found IS INITIAL. EXIT. ENDIF. DELETE currcells WHERE left = -1. ENDDO. * Zusammenfassen der Zeilen mit gleicher Nachkommastellenzahl * collect horizontal cells (row) with the same number of decimal places * to increase perfomance in currency cell format DESCRIBE TABLE currcells LINES lines. lines = lines - 1. DO lines TIMES. DESCRIBE TABLE currcells LINES innerlines. innerlines = innerlines - 1. SORT currcells BY top left. CLEAR found. DO innerlines TIMES. READ TABLE currcells INDEX sy-index INTO curritem. counter = sy-index + 1. READ TABLE currcells INDEX counter INTO curritem2. IF curritem-top EQ curritem2-top AND curritem-rows EQ curritem2-rows. length = curritem-left + curritem-columns. IF length EQ curritem2-left AND curritem-decimals EQ curritem2-decimals. MOVE curritem TO curritem3. curritem3-columns = curritem3-columns + curritem2-columns. curritem-left = -1. MODIFY currcells INDEX sy-index FROM curritem. curritem2-left = -1. MODIFY currcells INDEX counter FROM curritem2. APPEND curritem3 TO currcells. found = 'X'. ENDIF. ENDIF. ENDDO. IF found IS INITIAL. EXIT. ENDIF. DELETE currcells WHERE left = -1. ENDDO. * Ende der Zusammenfassung * item data: format for currency cell, corresponding with currency CALL METHOD lo_spreadsheet->cell_format EXPORTING cells = currcells no_flush = no_flush. * item data: write item table content CALL METHOD lo_spreadsheet->set_ranges_data EXPORTING ranges = ranges contents = contents no_flush = no_flush. * whole table range to format all table IF i_columns_header = 'X'. li_head_top = li_commentary_rows + 1. ELSE. li_head_top = li_commentary_rows + 2. help = help - 1. ENDIF. CALL METHOD lo_spreadsheet->insert_range_dim EXPORTING name = 'WHOLE_TABLE' top = li_head_top left = i_left rows = help columns = datareal no_flush = no_flush. * columns width auto fix * this parameter = space in case use with exist template IF i_columns_autofit = 'X'. CALL METHOD lo_spreadsheet->fit_widest EXPORTING name = 'WHOLE_TABLE' no_flush = no_flush. ENDIF. * frame * The parameter has 8 bits *0 Left margin *1 Top marginT *2 Bottom margin *3 Right margin *4 Horizontal line *5 Vertical line *6 Thinness *7 Thickness * here 127 = 1111111 6-5-4-3-2-1 mean Thin-ver-hor-right-bot-top-left * ( final DOI method call, set no_flush = space * equal to call method CL_GUI_CFW=>FLUSH ) CALL METHOD lo_spreadsheet->set_frame EXPORTING rangename = 'WHOLE_TABLE' typ = 127 color = 1 no_flush = space IMPORTING error = lo_error retcode = lc_retcode. error_doi. * reformat subtotal / total line after format wholw table LOOP AT subranges INTO subrangeitem. l_sub_index = subrangeitem-rows + li_commentary_rows + rowmax. CALL METHOD lo_spreadsheet->insert_range_dim EXPORTING name = subrangeitem-name left = i_left top = l_sub_index rows = 1 columns = datareal no_flush = no_flush. wa_format-name = subrangeitem-name. * default format: * - clolor: subtotal = light yellow, subtotal = yellow * - frame: box IF subrangeitem-name(3) = 'SUB'. wa_format-back = 36. "subtotal line wa_format_temp = i_format_subtotal. ELSE. wa_format-back = 27. "total line wa_format_temp = i_format_total. ENDIF. wa_format-frametyp = 79. wa_format-framecolor = 1. wa_format-number = -1. wa_format-align = -1. * get subtoal + total format from intput parameter * overwrite default format IF wa_format_temp IS NOT INITIAL. DESCRIBE FIELD wa_format_temp TYPE l_typ COMPONENTS li_col_num. DO li_col_num TIMES. IF sy-index NE 1. " dun map range name ASSIGN COMPONENT sy-index OF STRUCTURE wa_format_temp TO <f_source>. IF <f_source> IS NOT INITIAL. ASSIGN COMPONENT sy-index OF STRUCTURE wa_format TO <f_des>. <f_des> = <f_source>. UNASSIGN: <f_des>. ENDIF. UNASSIGN: <f_source>. ENDIF. ENDDO. CLEAR: li_col_num. ENDIF. APPEND wa_format TO lt_format. CLEAR: wa_format-name. CLEAR: l_sub_index. CLEAR: wa_format_temp. ENDLOOP. IF lt_format[] IS NOT INITIAL. CALL METHOD lo_spreadsheet->set_ranges_format EXPORTING formattable = lt_format no_flush = no_flush. REFRESH: lt_format. ENDIF. *--------------------------------------------------------------------* CALL METHOD lo_spreadsheet->screen_update EXPORTING updating = 'X'. CALL METHOD c_oi_errors=>flush_errors. lo_error_w = l_error. lc_retcode = lo_error_w->error_code. ** catch no_flush -> led to dump ( optional ) * go_error = l_error. * gc_retcode = go_error->error_code. * error_doi. CLEAR: lt_sema, wa_sema, lt_hkey, wa_hkey, lt_vkey, wa_vkey, l_n_hrz_keys, l_n_att_cols, l_n_vrt_keys, count, datac, datareal, vkeycount, all, mit, li_col_pos, li_col_num, ranges, rangeitem, contents, contentsitem, semaitem, hkeyitem, vkeyitem, li_commentary_rows, l_retcode, li_head_top, <f_excel_tab>. CLEAR: lo_error_w. UNASSIGN: <line>, <item>, <f_excel_tab>. *--------------------------------------------------------------------* * SESSION 5: SAVE AND CLOSE FILE *--------------------------------------------------------------------* * ex of save path: 'FILE://C:\temp\test.xlsx' CONCATENATE 'FILE://' i_save_path INTO ls_path. CALL METHOD lo_proxy->save_document_to_url EXPORTING no_flush = 'X' url = ls_path IMPORTING error = lo_error retcode = lc_retcode CHANGING document_size = li_document_size. error_doi. * if save successfully -> raise successful message * message i499(sy) with 'Document is Exported to ' p_path. MESSAGE i499(sy) WITH 'Data has been exported successfully'. CLEAR: ls_path, li_document_size. close_document. ENDMETHOD. "BIND_ALV_OLE2 METHOD bind_table. *--------------------------------------------------------------------* * issue #230 - Pimp my Code * - Stefan Schmöcker, (wi p) 2012-12-01 * - ... * aligning code * message made to support multilinguality *--------------------------------------------------------------------* * issue #237 - Check if overlapping areas exist * - Alessandro Iannacci 2012-12-01 * changes: - Added raise if overlaps are detected *--------------------------------------------------------------------* CONSTANTS: lc_top_left_column TYPE zexcel_cell_column_alpha VALUE 'A', lc_top_left_row TYPE zexcel_cell_row VALUE 1. DATA: lv_row_int TYPE zexcel_cell_row, lv_first_row TYPE zexcel_cell_row, lv_last_row TYPE zexcel_cell_row, lv_column_int TYPE zexcel_cell_column, lv_column_alpha TYPE zexcel_cell_column_alpha, lt_field_catalog TYPE zexcel_t_fieldcatalog, lv_id TYPE i, lv_rows TYPE i, lv_formula TYPE string, ls_settings TYPE zexcel_s_table_settings, lo_table TYPE REF TO zcl_excel_table, lt_column_name_buffer TYPE SORTED TABLE OF string WITH UNIQUE KEY table_line, lv_value TYPE string, lv_value_lowercase TYPE string, lv_syindex TYPE char3, lv_errormessage TYPE string, "ins issue #237 lv_columns TYPE i, lt_columns TYPE zexcel_t_fieldcatalog, lv_maxcol TYPE i, lv_maxrow TYPE i, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_style_cond TYPE REF TO zcl_excel_style_cond, lo_curtable TYPE REF TO zcl_excel_table. FIELD-SYMBOLS: <ls_field_catalog> TYPE zexcel_s_fieldcatalog, <ls_field_catalog_custom> TYPE zexcel_s_fieldcatalog, <fs_table_line> TYPE any, <fs_fldval> TYPE any. ls_settings = is_table_settings. IF ls_settings-top_left_column IS INITIAL. ls_settings-top_left_column = lc_top_left_column. ENDIF. IF ls_settings-table_style IS INITIAL. ls_settings-table_style = zcl_excel_table=>builtinstyle_medium2. ENDIF. IF ls_settings-top_left_row IS INITIAL. ls_settings-top_left_row = lc_top_left_row. ENDIF. IF it_field_catalog IS NOT SUPPLIED. lt_field_catalog = zcl_excel_common=>get_fieldcatalog( ip_table = ip_table ). ELSE. lt_field_catalog = it_field_catalog. ENDIF. SORT lt_field_catalog BY position. *--------------------------------------------------------------------* * issue #237 Check if overlapping areas exist Start *--------------------------------------------------------------------* "Get the number of columns for the current table lt_columns = lt_field_catalog. DELETE lt_columns WHERE dynpfld NE abap_true. DESCRIBE TABLE lt_columns LINES lv_columns. "Calculate the top left row of the current table lv_column_int = zcl_excel_common=>convert_column2int( ls_settings-top_left_column ). lv_row_int = ls_settings-top_left_row. "Get number of row for the current table DESCRIBE TABLE ip_table LINES lv_rows. "Calculate the bottom right row for the current table lv_maxcol = lv_column_int + lv_columns - 1. lv_maxrow = lv_row_int + lv_rows - 1. ls_settings-bottom_right_column = zcl_excel_common=>convert_column2alpha( lv_maxcol ). ls_settings-bottom_right_row = lv_maxrow. lv_column_int = zcl_excel_common=>convert_column2int( ls_settings-top_left_column ). lo_iterator = me->tables->if_object_collection~get_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_curtable ?= lo_iterator->if_object_collection_iterator~get_next( ). IF ( ( ls_settings-top_left_row GE lo_curtable->settings-top_left_row AND ls_settings-top_left_row LE lo_curtable->settings-bottom_right_row ) OR ( ls_settings-bottom_right_row GE lo_curtable->settings-top_left_row AND ls_settings-bottom_right_row LE lo_curtable->settings-bottom_right_row ) ) AND ( ( lv_column_int GE zcl_excel_common=>convert_column2int( lo_curtable->settings-top_left_column ) AND lv_column_int LE zcl_excel_common=>convert_column2int( lo_curtable->settings-bottom_right_column ) ) OR ( lv_maxcol GE zcl_excel_common=>convert_column2int( lo_curtable->settings-top_left_column ) AND lv_maxcol LE zcl_excel_common=>convert_column2int( lo_curtable->settings-bottom_right_column ) ) ). lv_errormessage = 'Table overlaps with previously bound table and will not be added to worksheet.'(400). zcx_excel=>raise_text( lv_errormessage ). ENDIF. ENDWHILE. *--------------------------------------------------------------------* * issue #237 Check if overlapping areas exist End *--------------------------------------------------------------------* CREATE OBJECT lo_table. lo_table->settings = ls_settings. lo_table->set_data( ir_data = ip_table ). lv_id = me->excel->get_next_table_id( ). lo_table->set_id( iv_id = lv_id ). * lo_table->fieldcat = lt_field_catalog[]. me->tables->add( lo_table ). * It is better to loop column by column (only visible column) LOOP AT lt_field_catalog ASSIGNING <ls_field_catalog> WHERE dynpfld EQ abap_true. lv_column_alpha = zcl_excel_common=>convert_column2alpha( lv_column_int ). " Due restrinction of new table object we cannot have two column with the same name " Check if a column with the same name exists, if exists add a counter " If no medium description is provided we try to use small or long * lv_value = <ls_field_catalog>-scrtext_m. FIELD-SYMBOLS: <scrtxt1> TYPE any, <scrtxt2> TYPE any, <scrtxt3> TYPE any. CASE iv_default_descr. WHEN 'M'. ASSIGN <ls_field_catalog>-scrtext_m TO <scrtxt1>. ASSIGN <ls_field_catalog>-scrtext_s TO <scrtxt2>. ASSIGN <ls_field_catalog>-scrtext_l TO <scrtxt3>. WHEN 'S'. ASSIGN <ls_field_catalog>-scrtext_s TO <scrtxt1>. ASSIGN <ls_field_catalog>-scrtext_m TO <scrtxt2>. ASSIGN <ls_field_catalog>-scrtext_l TO <scrtxt3>. WHEN 'L'. ASSIGN <ls_field_catalog>-scrtext_l TO <scrtxt1>. ASSIGN <ls_field_catalog>-scrtext_m TO <scrtxt2>. ASSIGN <ls_field_catalog>-scrtext_s TO <scrtxt3>. WHEN OTHERS. ASSIGN <ls_field_catalog>-scrtext_m TO <scrtxt1>. ASSIGN <ls_field_catalog>-scrtext_s TO <scrtxt2>. ASSIGN <ls_field_catalog>-scrtext_l TO <scrtxt3>. ENDCASE. IF <scrtxt1> IS NOT INITIAL. lv_value = <scrtxt1>. <ls_field_catalog>-scrtext_l = lv_value. ELSEIF <scrtxt2> IS NOT INITIAL. lv_value = <scrtxt2>. <ls_field_catalog>-scrtext_l = lv_value. ELSEIF <scrtxt3> IS NOT INITIAL. lv_value = <scrtxt3>. <ls_field_catalog>-scrtext_l = lv_value. ELSE. lv_value = 'Column'. " default value as Excel does <ls_field_catalog>-scrtext_l = lv_value. ENDIF. WHILE 1 = 1. lv_value_lowercase = lv_value. TRANSLATE lv_value_lowercase TO LOWER CASE. READ TABLE lt_column_name_buffer TRANSPORTING NO FIELDS WITH KEY table_line = lv_value_lowercase BINARY SEARCH. IF sy-subrc <> 0. <ls_field_catalog>-scrtext_l = lv_value. INSERT lv_value_lowercase INTO TABLE lt_column_name_buffer. EXIT. ELSE. lv_syindex = sy-index. CONCATENATE <ls_field_catalog>-scrtext_l lv_syindex INTO lv_value. ENDIF. ENDWHILE. " First of all write column header IF <ls_field_catalog>-style_header IS NOT INITIAL. me->set_cell( ip_column = lv_column_alpha ip_row = lv_row_int ip_value = lv_value ip_style = <ls_field_catalog>-style_header ). ELSE. me->set_cell( ip_column = lv_column_alpha ip_row = lv_row_int ip_value = lv_value ). ENDIF. ADD 1 TO lv_row_int. LOOP AT ip_table ASSIGNING <fs_table_line>. ASSIGN COMPONENT <ls_field_catalog>-fieldname OF STRUCTURE <fs_table_line> TO <fs_fldval>. " issue #290 Add formula support in table IF <ls_field_catalog>-formula EQ abap_true. IF <ls_field_catalog>-style IS NOT INITIAL. IF <ls_field_catalog>-abap_type IS NOT INITIAL. me->set_cell( ip_column = lv_column_alpha ip_row = lv_row_int ip_formula = <fs_fldval> ip_abap_type = <ls_field_catalog>-abap_type ip_style = <ls_field_catalog>-style ). ELSE. me->set_cell( ip_column = lv_column_alpha ip_row = lv_row_int ip_formula = <fs_fldval> ip_style = <ls_field_catalog>-style ). ENDIF. ELSEIF <ls_field_catalog>-abap_type IS NOT INITIAL. me->set_cell( ip_column = lv_column_alpha ip_row = lv_row_int ip_formula = <fs_fldval> ip_abap_type = <ls_field_catalog>-abap_type ). ELSE. me->set_cell( ip_column = lv_column_alpha ip_row = lv_row_int ip_formula = <fs_fldval> ). ENDIF. ELSE. IF <ls_field_catalog>-style IS NOT INITIAL. IF <ls_field_catalog>-abap_type IS NOT INITIAL. me->set_cell( ip_column = lv_column_alpha ip_row = lv_row_int ip_value = <fs_fldval> ip_abap_type = <ls_field_catalog>-abap_type ip_style = <ls_field_catalog>-style ). ELSE. me->set_cell( ip_column = lv_column_alpha ip_row = lv_row_int ip_value = <fs_fldval> ip_style = <ls_field_catalog>-style ). ENDIF. ELSE. IF <ls_field_catalog>-abap_type IS NOT INITIAL. me->set_cell( ip_column = lv_column_alpha ip_row = lv_row_int ip_abap_type = <ls_field_catalog>-abap_type ip_value = <fs_fldval> ). ELSE. me->set_cell( ip_column = lv_column_alpha ip_row = lv_row_int ip_value = <fs_fldval> ). ENDIF. ENDIF. ENDIF. ADD 1 TO lv_row_int. ENDLOOP. IF sy-subrc <> 0 AND iv_no_line_if_empty = abap_false. "create empty row if table has no data me->set_cell( ip_column = lv_column_alpha ip_row = lv_row_int ip_value = space ). ADD 1 TO lv_row_int. ENDIF. *--------------------------------------------------------------------* " totals *--------------------------------------------------------------------* IF <ls_field_catalog>-totals_function IS NOT INITIAL. lv_formula = lo_table->get_totals_formula( ip_column = <ls_field_catalog>-scrtext_l ip_function = <ls_field_catalog>-totals_function ). IF <ls_field_catalog>-style_total IS NOT INITIAL. me->set_cell( ip_column = lv_column_alpha ip_row = lv_row_int ip_formula = lv_formula ip_style = <ls_field_catalog>-style_total ). ELSE. me->set_cell( ip_column = lv_column_alpha ip_row = lv_row_int ip_formula = lv_formula ). ENDIF. ENDIF. lv_row_int = ls_settings-top_left_row. ADD 1 TO lv_column_int. *--------------------------------------------------------------------* " conditional formatting *--------------------------------------------------------------------* IF <ls_field_catalog>-style_cond IS NOT INITIAL. lv_first_row = ls_settings-top_left_row + 1. " +1 to exclude header lv_last_row = ls_settings-top_left_row + lv_rows. lo_style_cond = me->get_style_cond( <ls_field_catalog>-style_cond ). lo_style_cond->set_range( ip_start_column = lv_column_alpha ip_start_row = lv_first_row ip_stop_column = lv_column_alpha ip_stop_row = lv_last_row ). ENDIF. ENDLOOP. *--------------------------------------------------------------------* " Set field catalog *--------------------------------------------------------------------* lo_table->fieldcat = lt_field_catalog[]. es_table_settings = ls_settings. es_table_settings-bottom_right_column = lv_column_alpha. " >> Issue #291 IF ip_table IS INITIAL. es_table_settings-bottom_right_row = ls_settings-top_left_row + 2. "Last rows ELSE. es_table_settings-bottom_right_row = ls_settings-top_left_row + lv_rows + 1. "Last rows ENDIF. " << Issue #291 ENDMETHOD. "BIND_TABLE METHOD calculate_cell_width. *--------------------------------------------------------------------* * issue #293 - Roberto Bianco * - Christian Assig 2014-03-14 * * changes: - Calculate widths using SAPscript font metrics * (transaction SE73) * - Calculate the width of dates * - Add additional width for auto filter buttons * - Add cell padding to simulate Excel behavior *--------------------------------------------------------------------* CONSTANTS: lc_default_font_name TYPE zexcel_style_font_name VALUE 'Calibri', "#EC NOTEXT lc_default_font_height TYPE tdfontsize VALUE '110', lc_excel_cell_padding TYPE float VALUE '0.75'. DATA: ld_cell_value TYPE zexcel_cell_value, ld_current_character TYPE c LENGTH 1, ld_style_guid TYPE zexcel_cell_style, ls_stylemapping TYPE zexcel_s_stylemapping, lo_table_object TYPE REF TO object, lo_table TYPE REF TO zcl_excel_table, ld_table_top_left_column TYPE zexcel_cell_column, ld_table_bottom_right_column TYPE zexcel_cell_column, ld_flag_contains_auto_filter TYPE abap_bool VALUE abap_false, ld_flag_bold TYPE abap_bool VALUE abap_false, ld_flag_italic TYPE abap_bool VALUE abap_false, ld_date TYPE d, ld_date_char TYPE c LENGTH 50, ld_font_height TYPE tdfontsize VALUE lc_default_font_height, lt_itcfc TYPE STANDARD TABLE OF itcfc, ld_offset TYPE i, ld_length TYPE i, ld_uccp TYPE i, ls_font_metric TYPE mty_s_font_metric, ld_width_from_font_metrics TYPE i, ld_font_family TYPE itcfh-tdfamily, ld_font_name TYPE zexcel_style_font_name VALUE lc_default_font_name, lt_font_families LIKE STANDARD TABLE OF ld_font_family, ls_font_cache TYPE mty_s_font_cache. FIELD-SYMBOLS: <ls_font_cache> TYPE mty_s_font_cache, <ls_font_metric> TYPE mty_s_font_metric, <ls_itcfc> TYPE itcfc. " Determine cell content and cell style me->get_cell( EXPORTING ip_column = ip_column ip_row = ip_row IMPORTING ep_value = ld_cell_value ep_guid = ld_style_guid ). " ABAP2XLSX uses tables to define areas containing headers and " auto-filters. Find out if the current cell is in the header " of one of these tables. LOOP AT me->tables->collection INTO lo_table_object. " Downcast: OBJECT -> ZCL_EXCEL_TABLE lo_table ?= lo_table_object. " Convert column letters to corresponding integer values ld_table_top_left_column = zcl_excel_common=>convert_column2int( lo_table->settings-top_left_column ). ld_table_bottom_right_column = zcl_excel_common=>convert_column2int( lo_table->settings-bottom_right_column ). " Is the current cell part of the table header? IF ip_column BETWEEN ld_table_top_left_column AND ld_table_bottom_right_column AND ip_row EQ lo_table->settings-top_left_row. " Current cell is part of the table header " -> Assume that an auto filter is present and that the font is " bold ld_flag_contains_auto_filter = abap_true. ld_flag_bold = abap_true. ENDIF. ENDLOOP. " If a style GUID is present, read style attributes IF ld_style_guid IS NOT INITIAL. TRY. " Read style attributes ls_stylemapping = me->excel->get_style_to_guid( ld_style_guid ). " If the current cell contains the default date format, " convert the cell value to a date and calculate its length IF ls_stylemapping-complete_style-number_format-format_code = zcl_excel_style_number_format=>c_format_date_std. " Convert excel date to ABAP date ld_date = zcl_excel_common=>excel_string_to_date( ld_cell_value ). " Format ABAP date using user's formatting settings WRITE ld_date TO ld_date_char. " Remember the formatted date to calculate the cell size ld_cell_value = ld_date_char. ENDIF. " Read the font size and convert it to the font height " used by SAPscript (multiplication by 10) IF ls_stylemapping-complete_stylex-font-size = abap_true. ld_font_height = ls_stylemapping-complete_style-font-size * 10. ENDIF. " If set, remember the font name IF ls_stylemapping-complete_stylex-font-name = abap_true. ld_font_name = ls_stylemapping-complete_style-font-name. ENDIF. " If set, remember whether font is bold and italic. IF ls_stylemapping-complete_stylex-font-bold = abap_true. ld_flag_bold = ls_stylemapping-complete_style-font-bold. ENDIF. IF ls_stylemapping-complete_stylex-font-italic = abap_true. ld_flag_italic = ls_stylemapping-complete_style-font-italic. ENDIF. CATCH zcx_excel. "#EC NO_HANDLER " Style GUID is present, but style was not found " Continue with default values ENDTRY. ENDIF. " Check if the same font (font name and font attributes) was already " used before READ TABLE mth_font_cache WITH TABLE KEY font_name = ld_font_name font_height = ld_font_height flag_bold = ld_flag_bold flag_italic = ld_flag_italic ASSIGNING <ls_font_cache>. IF sy-subrc <> 0. " Font is used for the first time " Add the font to our local font cache ls_font_cache-font_name = ld_font_name. ls_font_cache-font_height = ld_font_height. ls_font_cache-flag_bold = ld_flag_bold. ls_font_cache-flag_italic = ld_flag_italic. INSERT ls_font_cache INTO TABLE mth_font_cache ASSIGNING <ls_font_cache>. " Determine the SAPscript font family name from the Excel " font name SELECT tdfamily FROM tfo01 INTO TABLE lt_font_families UP TO 1 ROWS WHERE tdtext = ld_font_name ORDER BY PRIMARY KEY. " Check if a matching font family was found " Fonts can be uploaded from TTF files using transaction SE73 IF lines( lt_font_families ) > 0. READ TABLE lt_font_families INDEX 1 INTO ld_font_family. " Load font metrics (returns a table with the size of each letter " in the font) CALL FUNCTION 'LOAD_FONT' EXPORTING family = ld_font_family height = ld_font_height printer = 'SWIN' bold = ld_flag_bold italic = ld_flag_italic TABLES metric = lt_itcfc EXCEPTIONS font_family = 1 codepage = 2 device_type = 3 OTHERS = 4. IF sy-subrc <> 0. CLEAR lt_itcfc. ENDIF. " For faster access, convert each character number to the actual " character, and store the characters and their sizes in a hash " table LOOP AT lt_itcfc ASSIGNING <ls_itcfc>. ld_uccp = <ls_itcfc>-cpcharno. ls_font_metric-char = cl_abap_conv_in_ce=>uccpi( ld_uccp ). ls_font_metric-char_width = <ls_itcfc>-tdcwidths. INSERT ls_font_metric INTO TABLE <ls_font_cache>-th_font_metrics. ENDLOOP. ENDIF. ENDIF. " Calculate the cell width " If available, use font metrics IF lines( <ls_font_cache>-th_font_metrics ) = 0. " Font metrics are not available " -> Calculate the cell width using only the font size ld_length = strlen( ld_cell_value ). ep_width = ld_length * ld_font_height / lc_default_font_height + lc_excel_cell_padding. ELSE. " Font metrics are available " Calculate the size of the text by adding the sizes of each " letter ld_length = strlen( ld_cell_value ). DO ld_length TIMES. " Subtract 1, because the first character is at offset 0 ld_offset = sy-index - 1. " Read the current character from the cell value ld_current_character = ld_cell_value+ld_offset(1). " Look up the size of the current letter READ TABLE <ls_font_cache>-th_font_metrics WITH TABLE KEY char = ld_current_character ASSIGNING <ls_font_metric>. IF sy-subrc = 0. " The size of the letter is known " -> Add the actual size of the letter ADD <ls_font_metric>-char_width TO ld_width_from_font_metrics. ELSE. " The size of the letter is unknown " -> Add the font height as the default letter size ADD ld_font_height TO ld_width_from_font_metrics. ENDIF. ENDDO. " Add cell padding (Excel makes columns a bit wider than the space " that is needed for the text itself) and convert unit " (division by 100) ep_width = ld_width_from_font_metrics / 100 + lc_excel_cell_padding. ENDIF. " If the current cell contains an auto filter, make it a bit wider. " The size used by the auto filter button does not depend on the font " size. IF ld_flag_contains_auto_filter = abap_true. ADD 2 TO ep_width. ENDIF. ENDMETHOD. "CALCULATE_CELL_WIDTH METHOD calculate_column_widths. TYPES: BEGIN OF t_auto_size, col_index TYPE int4, width TYPE float, END OF t_auto_size. TYPES: tt_auto_size TYPE TABLE OF t_auto_size. DATA: lo_column_iterator TYPE REF TO cl_object_collection_iterator, lo_column TYPE REF TO zcl_excel_column. DATA: auto_size TYPE flag. DATA: auto_sizes TYPE tt_auto_size. DATA: count TYPE int4. DATA: highest_row TYPE int4. DATA: width TYPE float. FIELD-SYMBOLS: <auto_size> LIKE LINE OF auto_sizes. lo_column_iterator = me->get_columns_iterator( ). WHILE lo_column_iterator->has_next( ) = abap_true. lo_column ?= lo_column_iterator->get_next( ). auto_size = lo_column->get_auto_size( ). IF auto_size = abap_true. APPEND INITIAL LINE TO auto_sizes ASSIGNING <auto_size>. <auto_size>-col_index = lo_column->get_column_index( ). <auto_size>-width = -1. ENDIF. ENDWHILE. " There is only something to do if there are some auto-size columns IF NOT auto_sizes IS INITIAL. highest_row = me->get_highest_row( ). LOOP AT auto_sizes ASSIGNING <auto_size>. count = 1. WHILE count <= highest_row. * Do not check merged cells IF is_cell_merged( ip_column = <auto_size>-col_index ip_row = count ) = abap_false. width = calculate_cell_width( ip_column = <auto_size>-col_index " issue #155 - less restrictive typing for ip_column ip_row = count ). IF width > <auto_size>-width. <auto_size>-width = width. ENDIF. ENDIF. count = count + 1. ENDWHILE. lo_column = me->get_column( <auto_size>-col_index ). " issue #155 - less restrictive typing for ip_column lo_column->set_width( <auto_size>-width ). ENDLOOP. ENDIF. ENDMETHOD. "CALCULATE_COLUMN_WIDTHS METHOD change_cell_style. " issue # 139 DATA: stylemapping TYPE zexcel_s_stylemapping, complete_style TYPE zexcel_s_cstyle_complete, complete_stylex TYPE zexcel_s_cstylex_complete, borderx TYPE zexcel_s_cstylex_border, l_guid TYPE zexcel_cell_style. "issue # 177 * We have a lot of parameters. Use some macros to make the coding more structured DEFINE clear_initial_colorxfields. if &1-rgb is initial. clear &2-rgb. endif. if &1-indexed is initial. clear &2-indexed. endif. if &1-theme is initial. clear &2-theme. endif. if &1-tint is initial. clear &2-tint. endif. END-OF-DEFINITION. DEFINE move_supplied_borders. if ip_&1 is supplied. " only act if parameter was supplied if ip_x&1 is supplied. " borderx = ip_x&1. " use supplied x-parameter else. clear borderx with 'X'. * clear in a way that would be expected to work easily if ip_&1-border_style is initial. clear borderx-border_style. endif. clear_initial_colorxfields ip_&1-border_color borderx-border_color. endif. move-corresponding ip_&1 to complete_style-&2. move-corresponding borderx to complete_stylex-&2. endif. END-OF-DEFINITION. * First get current stylsettings TRY. me->get_cell( EXPORTING ip_column = ip_column " Cell Column ip_row = ip_row " Cell Row IMPORTING ep_guid = l_guid )." Cell Value ). "issue # 177 stylemapping = me->excel->get_style_to_guid( l_guid ). "issue # 177 complete_style = stylemapping-complete_style. complete_stylex = stylemapping-complete_stylex. CATCH zcx_excel. * Error --> use submitted style ENDTRY. * move_supplied_multistyles: complete. IF ip_complete IS SUPPLIED. IF ip_xcomplete IS NOT SUPPLIED. zcx_excel=>raise_text( 'Complete styleinfo has to be supplied with corresponding X-field' ). ENDIF. MOVE-CORRESPONDING ip_complete TO complete_style. MOVE-CORRESPONDING ip_xcomplete TO complete_stylex. ENDIF. IF ip_font IS SUPPLIED. DATA: fontx LIKE ip_xfont. IF ip_xfont IS SUPPLIED. fontx = ip_xfont. ELSE. * Only supplied values should be used - exception: Flags bold and italic strikethrough underline MOVE 'X' TO: fontx-bold, fontx-italic, fontx-strikethrough, fontx-underline_mode. CLEAR fontx-color WITH 'X'. clear_initial_colorxfields ip_font-color fontx-color. IF ip_font-family IS NOT INITIAL. fontx-family = 'X'. ENDIF. IF ip_font-name IS NOT INITIAL. fontx-name = 'X'. ENDIF. IF ip_font-scheme IS NOT INITIAL. fontx-scheme = 'X'. ENDIF. IF ip_font-size IS NOT INITIAL. fontx-size = 'X'. ENDIF. IF ip_font-underline_mode IS NOT INITIAL. fontx-underline_mode = 'X'. ENDIF. ENDIF. MOVE-CORRESPONDING ip_font TO complete_style-font. MOVE-CORRESPONDING fontx TO complete_stylex-font. * Correction for undeline mode ENDIF. IF ip_fill IS SUPPLIED. DATA: fillx LIKE ip_xfill. IF ip_xfill IS SUPPLIED. fillx = ip_xfill. ELSE. CLEAR fillx WITH 'X'. IF ip_fill-filltype IS INITIAL. CLEAR fillx-filltype. ENDIF. clear_initial_colorxfields ip_fill-fgcolor fillx-fgcolor. clear_initial_colorxfields ip_fill-bgcolor fillx-bgcolor. ENDIF. MOVE-CORRESPONDING ip_fill TO complete_style-fill. MOVE-CORRESPONDING fillx TO complete_stylex-fill. ENDIF. IF ip_borders IS SUPPLIED. DATA: bordersx LIKE ip_xborders. IF ip_xborders IS SUPPLIED. bordersx = ip_xborders. ELSE. CLEAR bordersx WITH 'X'. IF ip_borders-allborders-border_style IS INITIAL. CLEAR bordersx-allborders-border_style. ENDIF. IF ip_borders-diagonal-border_style IS INITIAL. CLEAR bordersx-diagonal-border_style. ENDIF. IF ip_borders-down-border_style IS INITIAL. CLEAR bordersx-down-border_style. ENDIF. IF ip_borders-left-border_style IS INITIAL. CLEAR bordersx-left-border_style. ENDIF. IF ip_borders-right-border_style IS INITIAL. CLEAR bordersx-right-border_style. ENDIF. IF ip_borders-top-border_style IS INITIAL. CLEAR bordersx-top-border_style. ENDIF. clear_initial_colorxfields ip_borders-allborders-border_color bordersx-allborders-border_color. clear_initial_colorxfields ip_borders-diagonal-border_color bordersx-diagonal-border_color. clear_initial_colorxfields ip_borders-down-border_color bordersx-down-border_color. clear_initial_colorxfields ip_borders-left-border_color bordersx-left-border_color. clear_initial_colorxfields ip_borders-right-border_color bordersx-right-border_color. clear_initial_colorxfields ip_borders-top-border_color bordersx-top-border_color. ENDIF. MOVE-CORRESPONDING ip_borders TO complete_style-borders. MOVE-CORRESPONDING bordersx TO complete_stylex-borders. ENDIF. IF ip_alignment IS SUPPLIED. DATA: alignmentx LIKE ip_xalignment. IF ip_xalignment IS SUPPLIED. alignmentx = ip_xalignment. ELSE. CLEAR alignmentx WITH 'X'. IF ip_alignment-horizontal IS INITIAL. CLEAR alignmentx-horizontal. ENDIF. IF ip_alignment-vertical IS INITIAL. CLEAR alignmentx-vertical. ENDIF. ENDIF. MOVE-CORRESPONDING ip_alignment TO complete_style-alignment. MOVE-CORRESPONDING alignmentx TO complete_stylex-alignment. ENDIF. IF ip_protection IS SUPPLIED. MOVE-CORRESPONDING ip_protection TO complete_style-protection. IF ip_xprotection IS SUPPLIED. MOVE-CORRESPONDING ip_xprotection TO complete_stylex-protection. ELSE. IF ip_protection-hidden IS NOT INITIAL. complete_stylex-protection-hidden = 'X'. ENDIF. IF ip_protection-locked IS NOT INITIAL. complete_stylex-protection-locked = 'X'. ENDIF. ENDIF. ENDIF. move_supplied_borders : borders_allborders borders-allborders, borders_diagonal borders-diagonal , borders_down borders-down , borders_left borders-left , borders_right borders-right , borders_top borders-top . DEFINE move_supplied_singlestyles. if ip_&1 is supplied. complete_style-&2 = ip_&1. complete_stylex-&2 = 'X'. endif. END-OF-DEFINITION. move_supplied_singlestyles: number_format_format_code number_format-format_code, font_bold font-bold, font_color font-color, font_color_rgb font-color-rgb, font_color_indexed font-color-indexed, font_color_theme font-color-theme, font_color_tint font-color-tint, font_family font-family, font_italic font-italic, font_name font-name, font_scheme font-scheme, font_size font-size, font_strikethrough font-strikethrough, font_underline font-underline, font_underline_mode font-underline_mode, fill_filltype fill-filltype, fill_rotation fill-rotation, fill_fgcolor fill-fgcolor, fill_fgcolor_rgb fill-fgcolor-rgb, fill_fgcolor_indexed fill-fgcolor-indexed, fill_fgcolor_theme fill-fgcolor-theme, fill_fgcolor_tint fill-fgcolor-tint, fill_bgcolor fill-bgcolor, fill_bgcolor_rgb fill-bgcolor-rgb, fill_bgcolor_indexed fill-bgcolor-indexed, fill_bgcolor_theme fill-bgcolor-theme, fill_bgcolor_tint fill-bgcolor-tint, fill_gradtype_type fill-gradtype-type, fill_gradtype_degree fill-gradtype-degree, fill_gradtype_bottom fill-gradtype-bottom, fill_gradtype_left fill-gradtype-left, fill_gradtype_top fill-gradtype-top, fill_gradtype_right fill-gradtype-right, fill_gradtype_position1 fill-gradtype-position1, fill_gradtype_position2 fill-gradtype-position2, fill_gradtype_position3 fill-gradtype-position3, borders_diagonal_mode borders-diagonal_mode, alignment_horizontal alignment-horizontal, alignment_vertical alignment-vertical, alignment_textrotation alignment-textrotation, alignment_wraptext alignment-wraptext, alignment_shrinktofit alignment-shrinktofit, alignment_indent alignment-indent, protection_hidden protection-hidden, protection_locked protection-locked, borders_allborders_style borders-allborders-border_style, borders_allborders_color borders-allborders-border_color, borders_allbo_color_rgb borders-allborders-border_color-rgb, borders_allbo_color_indexed borders-allborders-border_color-indexed, borders_allbo_color_theme borders-allborders-border_color-theme, borders_allbo_color_tint borders-allborders-border_color-tint, borders_diagonal_style borders-diagonal-border_style, borders_diagonal_color borders-diagonal-border_color, borders_diagonal_color_rgb borders-diagonal-border_color-rgb, borders_diagonal_color_inde borders-diagonal-border_color-indexed, borders_diagonal_color_them borders-diagonal-border_color-theme, borders_diagonal_color_tint borders-diagonal-border_color-tint, borders_down_style borders-down-border_style, borders_down_color borders-down-border_color, borders_down_color_rgb borders-down-border_color-rgb, borders_down_color_indexed borders-down-border_color-indexed, borders_down_color_theme borders-down-border_color-theme, borders_down_color_tint borders-down-border_color-tint, borders_left_style borders-left-border_style, borders_left_color borders-left-border_color, borders_left_color_rgb borders-left-border_color-rgb, borders_left_color_indexed borders-left-border_color-indexed, borders_left_color_theme borders-left-border_color-theme, borders_left_color_tint borders-left-border_color-tint, borders_right_style borders-right-border_style, borders_right_color borders-right-border_color, borders_right_color_rgb borders-right-border_color-rgb, borders_right_color_indexed borders-right-border_color-indexed, borders_right_color_theme borders-right-border_color-theme, borders_right_color_tint borders-right-border_color-tint, borders_top_style borders-top-border_style, borders_top_color borders-top-border_color, borders_top_color_rgb borders-top-border_color-rgb, borders_top_color_indexed borders-top-border_color-indexed, borders_top_color_theme borders-top-border_color-theme, borders_top_color_tint borders-top-border_color-tint. * Now we have a completly filled styles. * This can be used to get the guid * Return guid if requested. Might be used if copy&paste of styles is requested ep_guid = me->excel->get_static_cellstyle_guid( ip_cstyle_complete = complete_style ip_cstylex_complete = complete_stylex ). me->set_cell_style( ip_column = ip_column ip_row = ip_row ip_style = ep_guid ). ENDMETHOD. "CHANGE_CELL_STYLE METHOD constructor. DATA: lv_title TYPE zexcel_sheet_title. me->excel = ip_excel. * CALL FUNCTION 'GUID_CREATE' " del issue #379 - function is outdated in newer releases * IMPORTING * ev_guid_16 = me->guid. me->guid = zcl_excel_obsolete_func_wrap=>guid_create( ). " ins issue #379 - replacement for outdated function call IF ip_title IS NOT INITIAL. lv_title = ip_title. ELSE. * lv_title = me->guid. " del issue #154 - Names of worksheets lv_title = me->generate_title( ). " ins issue #154 - Names of worksheets ENDIF. me->set_title( ip_title = lv_title ). CREATE OBJECT sheet_setup. CREATE OBJECT styles_cond. CREATE OBJECT data_validations. CREATE OBJECT tables. CREATE OBJECT columns. CREATE OBJECT rows. CREATE OBJECT ranges. " issue #163 CREATE OBJECT mo_pagebreaks. CREATE OBJECT drawings EXPORTING ip_type = zcl_excel_drawing=>type_image. CREATE OBJECT charts EXPORTING ip_type = zcl_excel_drawing=>type_chart. me->zif_excel_sheet_protection~initialize( ). me->zif_excel_sheet_properties~initialize( ). CREATE OBJECT hyperlinks. CREATE OBJECT comments. " (+) Issue #180 * initialize active cell coordinates active_cell-cell_row = 1. active_cell-cell_column = 1. * inizialize dimension range lower_cell-cell_row = 1. lower_cell-cell_column = 1. upper_cell-cell_row = 1. upper_cell-cell_column = 1. ENDMETHOD. "CONSTRUCTOR METHOD delete_merge. DATA: lv_column TYPE i. *--------------------------------------------------------------------* * If cell information is passed delete merge including this cell, * otherwise delete all merges *--------------------------------------------------------------------* IF ip_cell_column IS INITIAL OR ip_cell_row IS INITIAL. CLEAR me->mt_merged_cells. ELSE. lv_column = zcl_excel_common=>convert_column2int( ip_cell_column ). LOOP AT me->mt_merged_cells TRANSPORTING NO FIELDS WHERE ( row_from <= ip_cell_row AND row_to >= ip_cell_row ) AND ( col_from <= lv_column AND col_to >= lv_column ). DELETE me->mt_merged_cells. EXIT. ENDLOOP. ENDIF. ENDMETHOD. "DELETE_MERGE METHOD delete_row_outline. DELETE me->mt_row_outlines WHERE row_from = iv_row_from AND row_to = iv_row_to. IF sy-subrc <> 0. " didn't find outline that was to be deleted zcx_excel=>raise_text( 'Row outline to be deleted does not exist' ). ENDIF. ENDMETHOD. "DELETE_ROW_OUTLINE METHOD freeze_panes. IF ip_num_columns IS NOT SUPPLIED AND ip_num_rows IS NOT SUPPLIED. zcx_excel=>raise_text( 'Pleas provide number of rows and/or columns to freeze' ). ENDIF. IF ip_num_columns IS SUPPLIED AND ip_num_columns <= 0. zcx_excel=>raise_text( 'Number of columns to freeze should be positive' ). ENDIF. IF ip_num_rows IS SUPPLIED AND ip_num_rows <= 0. zcx_excel=>raise_text( 'Number of rows to freeze should be positive' ). ENDIF. freeze_pane_cell_column = ip_num_columns + 1. freeze_pane_cell_row = ip_num_rows + 1. ENDMETHOD. "FREEZE_PANES METHOD generate_title. DATA: lo_worksheets_iterator TYPE REF TO cl_object_collection_iterator, lo_worksheet TYPE REF TO zcl_excel_worksheet. DATA: t_titles TYPE HASHED TABLE OF zexcel_sheet_title WITH UNIQUE KEY table_line, title TYPE zexcel_sheet_title, sheetnumber TYPE i. * Get list of currently used titles lo_worksheets_iterator = me->excel->get_worksheets_iterator( ). WHILE lo_worksheets_iterator->has_next( ) = abap_true. lo_worksheet ?= lo_worksheets_iterator->get_next( ). title = lo_worksheet->get_title( ). INSERT title INTO TABLE t_titles. ADD 1 TO sheetnumber. ENDWHILE. * Now build sheetnumber. Increase counter until we hit a number that is not used so far ADD 1 TO sheetnumber. " Start counting with next number DO. title = sheetnumber. SHIFT title LEFT DELETING LEADING space. CONCATENATE 'Sheet'(001) title INTO ep_title. INSERT ep_title INTO TABLE t_titles. IF sy-subrc = 0. " Title not used so far --> take it EXIT. ENDIF. ADD 1 TO sheetnumber. ENDDO. ENDMETHOD. "GENERATE_TITLE METHOD get_active_cell. DATA: lv_active_column TYPE zexcel_cell_column_alpha, lv_active_row TYPE string. lv_active_column = zcl_excel_common=>convert_column2alpha( active_cell-cell_column ). lv_active_row = active_cell-cell_row. SHIFT lv_active_row RIGHT DELETING TRAILING space. SHIFT lv_active_row LEFT DELETING LEADING space. CONCATENATE lv_active_column lv_active_row INTO ep_active_cell. ENDMETHOD. "GET_ACTIVE_CELL METHOD get_cell. DATA: lv_column TYPE zexcel_cell_column, ls_sheet_content TYPE zexcel_s_cell_data. lv_column = zcl_excel_common=>convert_column2int( ip_column ). READ TABLE sheet_content INTO ls_sheet_content WITH TABLE KEY cell_row = ip_row cell_column = lv_column. ep_rc = sy-subrc. ep_value = ls_sheet_content-cell_value. ep_guid = ls_sheet_content-cell_style. " issue 139 - added this to be used for columnwidth calculation ep_formula = ls_sheet_content-cell_formula. " Addition to solve issue #120, contribution by Stefan Schmöcker DATA: style_iterator TYPE REF TO cl_object_collection_iterator, style TYPE REF TO zcl_excel_style. IF ep_style IS REQUESTED. style_iterator = me->excel->get_styles_iterator( ). WHILE style_iterator->has_next( ) = 'X'. style ?= style_iterator->get_next( ). IF style->get_guid( ) = ls_sheet_content-cell_style. ep_style = style. EXIT. ENDIF. ENDWHILE. ENDIF. ENDMETHOD. "GET_CELL METHOD get_column. DATA: lv_column TYPE zexcel_cell_column. lv_column = zcl_excel_common=>convert_column2int( ip_column ). eo_column = me->columns->get( ip_index = lv_column ). IF eo_column IS NOT BOUND. eo_column = me->add_new_column( ip_column ). ENDIF. ENDMETHOD. "GET_COLUMN METHOD get_columns. eo_columns = me->columns. ENDMETHOD. "GET_COLUMNS METHOD get_columns_iterator. eo_iterator = me->columns->get_iterator( ). ENDMETHOD. "GET_COLUMNS_ITERATOR METHOD get_comments. DATA: lo_comment TYPE REF TO zcl_excel_comment, lo_iterator TYPE REF TO cl_object_collection_iterator. CREATE OBJECT r_comments. lo_iterator = comments->get_iterator( ). WHILE lo_iterator->has_next( ) = abap_true. lo_comment ?= lo_iterator->get_next( ). r_comments->include( lo_comment ). ENDWHILE. ENDMETHOD. "get_comments METHOD get_comments_iterator. eo_iterator = comments->get_iterator( ). ENDMETHOD. "get_comments_iterator METHOD get_data_validations_iterator. eo_iterator = me->data_validations->get_iterator( ). ENDMETHOD. "GET_DATA_VALIDATIONS_ITERATOR METHOD get_data_validations_size. ep_size = me->data_validations->size( ). ENDMETHOD. "GET_DATA_VALIDATIONS_SIZE METHOD get_default_column. IF me->column_default IS NOT BOUND. CREATE OBJECT me->column_default EXPORTING ip_index = 'A' " ???? ip_worksheet = me ip_excel = me->excel. ENDIF. eo_column = me->column_default. ENDMETHOD. "GET_DEFAULT_COLUMN METHOD get_default_excel_date_format. CONSTANTS: c_lang_e TYPE lang VALUE 'E'. IF default_excel_date_format IS NOT INITIAL. ep_default_excel_date_format = default_excel_date_format. RETURN. ENDIF. "try to get defaults TRY. cl_abap_datfm=>get_date_format_des( EXPORTING im_langu = c_lang_e IMPORTING ex_dateformat = default_excel_date_format ). CATCH cx_abap_datfm_format_unknown. ENDTRY. " and fallback to fixed format IF default_excel_date_format IS INITIAL. default_excel_date_format = zcl_excel_style_number_format=>c_format_date_ddmmyyyydot. ENDIF. ep_default_excel_date_format = default_excel_date_format. ENDMETHOD. "GET_DEFAULT_EXCEL_DATE_FORMAT METHOD get_default_excel_time_format. DATA: l_timefm TYPE xutimefm. IF default_excel_time_format IS NOT INITIAL. ep_default_excel_time_format = default_excel_time_format. RETURN. ENDIF. * Let's get default l_timefm = cl_abap_timefm=>get_environment_timefm( ). CASE l_timefm. WHEN 0. *0 24 Hour Format (Example: 12:05:10) default_excel_time_format = zcl_excel_style_number_format=>c_format_date_time6. WHEN 1. *1 12 Hour Format (Example: 12:05:10 PM) default_excel_time_format = zcl_excel_style_number_format=>c_format_date_time2. WHEN 2. *2 12 Hour Format (Example: 12:05:10 pm) for now all the same. no chnage upper lower default_excel_time_format = zcl_excel_style_number_format=>c_format_date_time2. WHEN 3. *3 Hours from 0 to 11 (Example: 00:05:10 PM) for now all the same. no chnage upper lower default_excel_time_format = zcl_excel_style_number_format=>c_format_date_time2. WHEN 4. *4 Hours from 0 to 11 (Example: 00:05:10 pm) for now all the same. no chnage upper lower default_excel_time_format = zcl_excel_style_number_format=>c_format_date_time2. WHEN OTHERS. " and fallback to fixed format default_excel_time_format = zcl_excel_style_number_format=>c_format_date_time6. ENDCASE. ep_default_excel_time_format = default_excel_time_format. ENDMETHOD. "GET_DEFAULT_EXCEL_TIME_FORMAT METHOD get_default_row. IF me->row_default IS NOT BOUND. CREATE OBJECT me->row_default. ENDIF. eo_row = me->row_default. ENDMETHOD. "GET_DEFAULT_ROW METHOD get_dimension_range. me->update_dimension_range( ). IF upper_cell EQ lower_cell. "only one cell " Worksheet not filled * IF upper_cell-cell_coords = '0'. IF upper_cell-cell_coords IS INITIAL. ep_dimension_range = 'A1'. ELSE. ep_dimension_range = upper_cell-cell_coords. ENDIF. ELSE. CONCATENATE upper_cell-cell_coords ':' lower_cell-cell_coords INTO ep_dimension_range. ENDIF. ENDMETHOD. "GET_DIMENSION_RANGE METHOD get_drawings. DATA: lo_drawing TYPE REF TO zcl_excel_drawing, lo_iterator TYPE REF TO cl_object_collection_iterator. CASE ip_type. WHEN zcl_excel_drawing=>type_image. r_drawings = drawings. WHEN zcl_excel_drawing=>type_chart. r_drawings = charts. WHEN space. CREATE OBJECT r_drawings EXPORTING ip_type = ''. lo_iterator = drawings->get_iterator( ). WHILE lo_iterator->has_next( ) = abap_true. lo_drawing ?= lo_iterator->get_next( ). r_drawings->include( lo_drawing ). ENDWHILE. lo_iterator = charts->get_iterator( ). WHILE lo_iterator->has_next( ) = abap_true. lo_drawing ?= lo_iterator->get_next( ). r_drawings->include( lo_drawing ). ENDWHILE. WHEN OTHERS. ENDCASE. ENDMETHOD. "GET_DRAWINGS METHOD get_drawings_iterator. CASE ip_type. WHEN zcl_excel_drawing=>type_image. eo_iterator = drawings->get_iterator( ). WHEN zcl_excel_drawing=>type_chart. eo_iterator = charts->get_iterator( ). ENDCASE. ENDMETHOD. "GET_DRAWINGS_ITERATOR METHOD get_freeze_cell. ep_row = me->freeze_pane_cell_row. ep_column = me->freeze_pane_cell_column. ENDMETHOD. "GET_FREEZE_CELL METHOD get_guid. ep_guid = me->guid. ENDMETHOD. "GET_GUID METHOD get_header_footer_drawings. DATA: ls_odd_header TYPE zexcel_s_worksheet_head_foot, ls_odd_footer TYPE zexcel_s_worksheet_head_foot, ls_even_header TYPE zexcel_s_worksheet_head_foot, ls_even_footer TYPE zexcel_s_worksheet_head_foot, ls_hd_ft TYPE zexcel_s_worksheet_head_foot. FIELD-SYMBOLS: <fs_drawings> TYPE zexcel_s_drawings. me->sheet_setup->get_header_footer( IMPORTING ep_odd_header = ls_odd_header ep_odd_footer = ls_odd_footer ep_even_header = ls_even_header ep_even_footer = ls_even_footer ). ********************************************************************** *** Odd header ls_hd_ft = ls_odd_header. IF ls_hd_ft-left_image IS NOT INITIAL. APPEND INITIAL LINE TO rt_drawings ASSIGNING <fs_drawings>. <fs_drawings>-drawing = ls_hd_ft-left_image. ENDIF. IF ls_hd_ft-right_image IS NOT INITIAL. APPEND INITIAL LINE TO rt_drawings ASSIGNING <fs_drawings>. <fs_drawings>-drawing = ls_hd_ft-right_image. ENDIF. IF ls_hd_ft-center_image IS NOT INITIAL. APPEND INITIAL LINE TO rt_drawings ASSIGNING <fs_drawings>. <fs_drawings>-drawing = ls_hd_ft-center_image. ENDIF. ********************************************************************** *** Odd footer ls_hd_ft = ls_odd_footer. IF ls_hd_ft-left_image IS NOT INITIAL. APPEND INITIAL LINE TO rt_drawings ASSIGNING <fs_drawings>. <fs_drawings>-drawing = ls_hd_ft-left_image. ENDIF. IF ls_hd_ft-right_image IS NOT INITIAL. APPEND INITIAL LINE TO rt_drawings ASSIGNING <fs_drawings>. <fs_drawings>-drawing = ls_hd_ft-right_image. ENDIF. IF ls_hd_ft-center_image IS NOT INITIAL. APPEND INITIAL LINE TO rt_drawings ASSIGNING <fs_drawings>. <fs_drawings>-drawing = ls_hd_ft-center_image. ENDIF. ********************************************************************** *** Even header ls_hd_ft = ls_even_header. IF ls_hd_ft-left_image IS NOT INITIAL. APPEND INITIAL LINE TO rt_drawings ASSIGNING <fs_drawings>. <fs_drawings>-drawing = ls_hd_ft-left_image. ENDIF. IF ls_hd_ft-right_image IS NOT INITIAL. APPEND INITIAL LINE TO rt_drawings ASSIGNING <fs_drawings>. <fs_drawings>-drawing = ls_hd_ft-right_image. ENDIF. IF ls_hd_ft-center_image IS NOT INITIAL. APPEND INITIAL LINE TO rt_drawings ASSIGNING <fs_drawings>. <fs_drawings>-drawing = ls_hd_ft-center_image. ENDIF. ********************************************************************** *** Even footer ls_hd_ft = ls_even_footer. IF ls_hd_ft-left_image IS NOT INITIAL. APPEND INITIAL LINE TO rt_drawings ASSIGNING <fs_drawings>. <fs_drawings>-drawing = ls_hd_ft-left_image. ENDIF. IF ls_hd_ft-right_image IS NOT INITIAL. APPEND INITIAL LINE TO rt_drawings ASSIGNING <fs_drawings>. <fs_drawings>-drawing = ls_hd_ft-right_image. ENDIF. IF ls_hd_ft-center_image IS NOT INITIAL. APPEND INITIAL LINE TO rt_drawings ASSIGNING <fs_drawings>. <fs_drawings>-drawing = ls_hd_ft-center_image. ENDIF. ENDMETHOD. "get_header_footer_drawings METHOD get_highest_column. me->update_dimension_range( ). r_highest_column = me->lower_cell-cell_column. ENDMETHOD. "GET_HIGHEST_COLUMN METHOD get_highest_row. me->update_dimension_range( ). r_highest_row = me->lower_cell-cell_row. ENDMETHOD. "GET_HIGHEST_ROW METHOD get_hyperlinks_iterator. eo_iterator = hyperlinks->get_iterator( ). ENDMETHOD. "GET_HYPERLINKS_ITERATOR METHOD get_hyperlinks_size. ep_size = hyperlinks->size( ). ENDMETHOD. "GET_HYPERLINKS_SIZE METHOD get_merge. FIELD-SYMBOLS: <ls_merged_cell> LIKE LINE OF me->mt_merged_cells. DATA: lv_col_from TYPE string, lv_col_to TYPE string, lv_row_from TYPE string, lv_row_to TYPE string, lv_merge_range TYPE string. LOOP AT me->mt_merged_cells ASSIGNING <ls_merged_cell>. lv_col_from = zcl_excel_common=>convert_column2alpha( <ls_merged_cell>-col_from ). lv_col_to = zcl_excel_common=>convert_column2alpha( <ls_merged_cell>-col_to ). lv_row_from = <ls_merged_cell>-row_from. lv_row_to = <ls_merged_cell>-row_to . CONCATENATE lv_col_from lv_row_from ':' lv_col_to lv_row_to INTO lv_merge_range. CONDENSE lv_merge_range NO-GAPS. APPEND lv_merge_range TO merge_range. ENDLOOP. ENDMETHOD. "GET_MERGE METHOD get_pagebreaks. ro_pagebreaks = mo_pagebreaks. ENDMETHOD. "GET_PAGEBREAKS METHOD get_ranges_iterator. eo_iterator = me->ranges->get_iterator( ). ENDMETHOD. "GET_RANGES_ITERATOR METHOD get_row. eo_row = me->rows->get( ip_index = ip_row ). IF eo_row IS NOT BOUND. eo_row = me->add_new_row( ip_row ). ENDIF. ENDMETHOD. "GET_ROW METHOD get_rows. eo_rows = me->rows. ENDMETHOD. "GET_ROWS METHOD get_rows_iterator. eo_iterator = me->rows->get_iterator( ). ENDMETHOD. "GET_ROWS_ITERATOR METHOD get_row_outlines. rt_row_outlines = me->mt_row_outlines. ENDMETHOD. "GET_ROW_OUTLINES METHOD get_style_cond. DATA: lo_style_iterator TYPE REF TO cl_object_collection_iterator, lo_style_cond TYPE REF TO zcl_excel_style_cond. lo_style_iterator = me->get_style_cond_iterator( ). WHILE lo_style_iterator->has_next( ) = abap_true. lo_style_cond ?= lo_style_iterator->get_next( ). IF lo_style_cond->get_guid( ) = ip_guid. eo_style_cond = lo_style_cond. EXIT. ENDIF. ENDWHILE. ENDMETHOD. "GET_STYLE_COND METHOD get_style_cond_iterator. eo_iterator = styles_cond->get_iterator( ). ENDMETHOD. "GET_STYLE_COND_ITERATOR METHOD get_tabcolor. ev_tabcolor = me->tabcolor. ENDMETHOD. "GET_TABCOLOR METHOD get_table. *--------------------------------------------------------------------* * Comment D. Rauchenstein * With this method, we get a fully functional Excel Upload, which solves * a few issues of the other excel upload tools * ZBCABA_ALSM_EXCEL_UPLOAD_EXT: Reads only up to 50 signs per Cell, Limit * in row-Numbers. Other have Limitations of Lines, or you are not able * to ignore filters or choosing the right tab. * * To get a fully functional XLSX Upload, you can use it e.g. with method * CL_EXCEL_READER_2007->ZIF_EXCEL_READER~LOAD_FILE() *--------------------------------------------------------------------* FIELD-SYMBOLS: <ls_line> TYPE data. FIELD-SYMBOLS: <lv_value> TYPE data. DATA lv_actual_row TYPE int4. DATA lv_actual_row_string TYPE string. DATA lv_actual_col TYPE int4. DATA lv_actual_col_string TYPE string. DATA lv_errormessage TYPE string. DATA lv_max_col TYPE zexcel_cell_column. DATA lv_max_row TYPE int4. DATA lv_delta_col TYPE int4. DATA lv_value TYPE zexcel_cell_value. DATA lv_rc TYPE sysubrc. DATA lx_conversion_error TYPE REF TO cx_sy_conversion_error. DATA lv_float TYPE f. DATA lv_type. lv_max_col = me->get_highest_column( ). IF iv_max_col IS SUPPLIED AND iv_max_col < lv_max_col. lv_max_col = iv_max_col. ENDIF. lv_max_row = me->get_highest_row( ). IF iv_max_row IS SUPPLIED AND iv_max_row < lv_max_row. lv_max_row = iv_max_row. ENDIF. *--------------------------------------------------------------------* * The row counter begins with 1 and should be corrected with the skips *--------------------------------------------------------------------* lv_actual_row = iv_skipped_rows + 1. lv_actual_col = iv_skipped_cols + 1. TRY. *--------------------------------------------------------------------* * Check if we the basic features are possible with given "any table" *--------------------------------------------------------------------* APPEND INITIAL LINE TO et_table ASSIGNING <ls_line>. IF sy-subrc <> 0 OR <ls_line> IS NOT ASSIGNED. lv_errormessage = 'Error at inserting new Line to internal Table'(002). zcx_excel=>raise_text( lv_errormessage ). ELSE. lv_delta_col = lv_max_col - iv_skipped_cols. ASSIGN COMPONENT lv_delta_col OF STRUCTURE <ls_line> TO <lv_value>. IF sy-subrc <> 0 OR <lv_value> IS NOT ASSIGNED. lv_errormessage = 'Internal table has less columns than excel'(003). zcx_excel=>raise_text( lv_errormessage ). ELSE. *--------------------------------------------------------------------* *now we are ready for handle the table data *--------------------------------------------------------------------* REFRESH et_table. *--------------------------------------------------------------------* * Handle each Row until end on right side *--------------------------------------------------------------------* WHILE lv_actual_row <= lv_max_row . *--------------------------------------------------------------------* * Handle each Column until end on bottom * First step is to step back on first column *--------------------------------------------------------------------* lv_actual_col = iv_skipped_cols + 1. UNASSIGN <ls_line>. APPEND INITIAL LINE TO et_table ASSIGNING <ls_line>. IF sy-subrc <> 0 OR <ls_line> IS NOT ASSIGNED. lv_errormessage = 'Error at inserting new Line to internal Table'(002). zcx_excel=>raise_text( lv_errormessage ). ENDIF. WHILE lv_actual_col <= lv_max_col. lv_delta_col = lv_actual_col - iv_skipped_cols. ASSIGN COMPONENT lv_delta_col OF STRUCTURE <ls_line> TO <lv_value>. IF sy-subrc <> 0. lv_actual_col_string = lv_actual_col. lv_actual_row_string = lv_actual_row. CONCATENATE 'Error at assigning field (Col:'(004) lv_actual_col_string ' Row:'(005) lv_actual_row_string INTO lv_errormessage. zcx_excel=>raise_text( lv_errormessage ). ENDIF. me->get_cell( EXPORTING ip_column = lv_actual_col " Cell Column ip_row = lv_actual_row " Cell Row IMPORTING ep_value = lv_value " Cell Value ep_rc = lv_rc " Return Value of ABAP Statements ). IF lv_rc <> 0 AND lv_rc <> 4 "No found error means, zero/no value in cell AND lv_rc <> 8. "rc is 8 when the last row contains cells with zero / no values lv_actual_col_string = lv_actual_col. lv_actual_row_string = lv_actual_row. CONCATENATE 'Error at reading field value (Col:'(007) lv_actual_col_string ' Row:'(005) lv_actual_row_string INTO lv_errormessage. zcx_excel=>raise_text( lv_errormessage ). ENDIF. TRY. <lv_value> = lv_value. "Will raise exception if data type of <lv_value> is not float (or decfloat16/34) and excel delivers exponential number e.g. -2.9398924194538267E-2 CATCH cx_sy_conversion_error INTO lx_conversion_error. "Another try with conversion to float... DESCRIBE FIELD <lv_value> TYPE lv_type. IF lv_type = 'P'. <lv_value> = lv_float = lv_value. ELSE. RAISE EXCEPTION lx_conversion_error. "Pass on original exception ENDIF. ENDTRY. * CATCH zcx_excel. " ADD 1 TO lv_actual_col. ENDWHILE. ADD 1 TO lv_actual_row. ENDWHILE. ENDIF. ENDIF. CATCH cx_sy_assign_cast_illegal_cast. lv_actual_col_string = lv_actual_col. lv_actual_row_string = lv_actual_row. CONCATENATE 'Error at assigning field (Col:'(004) lv_actual_col_string ' Row:'(005) lv_actual_row_string INTO lv_errormessage. zcx_excel=>raise_text( lv_errormessage ). CATCH cx_sy_assign_cast_unknown_type. lv_actual_col_string = lv_actual_col. lv_actual_row_string = lv_actual_row. CONCATENATE 'Error at assigning field (Col:'(004) lv_actual_col_string ' Row:'(005) lv_actual_row_string INTO lv_errormessage. zcx_excel=>raise_text( lv_errormessage ). CATCH cx_sy_assign_out_of_range. lv_errormessage = 'Internal table has less columns than excel'(003). zcx_excel=>raise_text( lv_errormessage ). CATCH cx_sy_conversion_error. lv_actual_col_string = lv_actual_col. lv_actual_row_string = lv_actual_row. CONCATENATE 'Error at converting field value (Col:'(006) lv_actual_col_string ' Row:'(005) lv_actual_row_string INTO lv_errormessage. zcx_excel=>raise_text( lv_errormessage ). ENDTRY. ENDMETHOD. "get_table METHOD get_tables_iterator. eo_iterator = tables->if_object_collection~get_iterator( ). ENDMETHOD. "GET_TABLES_ITERATOR METHOD get_tables_size. ep_size = tables->if_object_collection~size( ). ENDMETHOD. "GET_TABLES_SIZE METHOD get_title. DATA lv_value TYPE string. IF ip_escaped EQ abap_true. lv_value = me->title. ep_title = zcl_excel_common=>escape_string( lv_value ). ELSE. ep_title = me->title. ENDIF. ENDMETHOD. "GET_TITLE METHOD get_value_type. DATA: lo_addit TYPE REF TO cl_abap_elemdescr, ls_dfies TYPE dfies, l_function TYPE funcname, l_value(50) TYPE c. ep_value = ip_value. ep_value_type = cl_abap_typedescr=>typekind_string. " Thats our default if something goes wrong. TRY. lo_addit ?= cl_abap_typedescr=>describe_by_data( ip_value ). CATCH cx_sy_move_cast_error. CLEAR lo_addit. ENDTRY. IF lo_addit IS BOUND. lo_addit->get_ddic_field( RECEIVING p_flddescr = ls_dfies EXCEPTIONS not_found = 1 no_ddic_type = 2 OTHERS = 3 ) . IF sy-subrc = 0. ep_value_type = ls_dfies-inttype. IF ls_dfies-convexit IS NOT INITIAL. * We need to convert with output conversion function CONCATENATE 'CONVERSION_EXIT_' ls_dfies-convexit '_OUTPUT' INTO l_function. SELECT SINGLE funcname INTO l_function FROM tfdir WHERE funcname = l_function. IF sy-subrc = 0. CALL FUNCTION l_function EXPORTING input = ip_value IMPORTING * LONG_TEXT = output = l_value * SHORT_TEXT = 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. ELSE. TRY. ep_value = l_value. CATCH cx_root. ep_value = ip_value. ENDTRY. ENDIF. ENDIF. ENDIF. ELSE. ep_value_type = lo_addit->get_data_type_kind( ip_value ). ENDIF. ENDIF. ENDMETHOD. "GET_VALUE_TYPE METHOD is_cell_merged. DATA: lv_column TYPE i. FIELD-SYMBOLS: <ls_merged_cell> LIKE LINE OF me->mt_merged_cells. lv_column = zcl_excel_common=>convert_column2int( ip_column ). rp_is_merged = abap_false. " Assume not in merged area LOOP AT me->mt_merged_cells ASSIGNING <ls_merged_cell>. IF <ls_merged_cell>-col_from <= lv_column AND <ls_merged_cell>-col_to >= lv_column AND <ls_merged_cell>-row_from <= ip_row AND <ls_merged_cell>-row_to >= ip_row. rp_is_merged = abap_true. " until we are proven different RETURN. ENDIF. ENDLOOP. ENDMETHOD. "IS_CELL_MERGED METHOD print_title_set_range. *--------------------------------------------------------------------* * issue#235 - repeat rows/columns * - Stefan Schmoecker, 2012-12-02 *--------------------------------------------------------------------* DATA: lo_range_iterator TYPE REF TO cl_object_collection_iterator, lo_range TYPE REF TO zcl_excel_range, lv_repeat_range_sheetname TYPE string, lv_repeat_range_col TYPE string, lv_row_char_from TYPE char10, lv_row_char_to TYPE char10, lv_repeat_range_row TYPE string, lv_repeat_range TYPE string. *--------------------------------------------------------------------* * Get range that represents printarea * if non-existant, create it *--------------------------------------------------------------------* lo_range_iterator = me->get_ranges_iterator( ). WHILE lo_range_iterator->has_next( ) = abap_true. lo_range ?= lo_range_iterator->get_next( ). IF lo_range->name = zif_excel_sheet_printsettings=>gcv_print_title_name. EXIT. " Found it ENDIF. CLEAR lo_range. ENDWHILE. IF me->print_title_col_from IS INITIAL AND me->print_title_row_from IS INITIAL. *--------------------------------------------------------------------* * No print titles are present, *--------------------------------------------------------------------* IF lo_range IS BOUND. me->ranges->remove( lo_range ). ENDIF. ELSE. *--------------------------------------------------------------------* * Print titles are present, *--------------------------------------------------------------------* IF lo_range IS NOT BOUND. lo_range = me->add_new_range( ). lo_range->name = zif_excel_sheet_printsettings=>gcv_print_title_name. ENDIF. lv_repeat_range_sheetname = me->get_title( ). lv_repeat_range_sheetname = zcl_excel_common=>escape_string( lv_repeat_range_sheetname ). *--------------------------------------------------------------------* * Repeat-columns *--------------------------------------------------------------------* IF me->print_title_col_from IS NOT INITIAL. CONCATENATE lv_repeat_range_sheetname '!$' me->print_title_col_from ':$' me->print_title_col_to INTO lv_repeat_range_col. ENDIF. *--------------------------------------------------------------------* * Repeat-rows *--------------------------------------------------------------------* IF me->print_title_row_from IS NOT INITIAL. lv_row_char_from = me->print_title_row_from. lv_row_char_to = me->print_title_row_to. CONCATENATE '!$' lv_row_char_from ':$' lv_row_char_to INTO lv_repeat_range_row. CONDENSE lv_repeat_range_row NO-GAPS. CONCATENATE lv_repeat_range_sheetname lv_repeat_range_row INTO lv_repeat_range_row. ENDIF. *--------------------------------------------------------------------* * Concatenate repeat-rows and columns *--------------------------------------------------------------------* IF lv_repeat_range_col IS INITIAL. lv_repeat_range = lv_repeat_range_row. ELSEIF lv_repeat_range_row IS INITIAL. lv_repeat_range = lv_repeat_range_col. ELSE. CONCATENATE lv_repeat_range_col lv_repeat_range_row INTO lv_repeat_range SEPARATED BY ','. ENDIF. lo_range->set_range_value( lv_repeat_range ). ENDIF. ENDMETHOD. "PRINT_TITLE_SET_RANGE METHOD set_area. DATA: lv_row TYPE zexcel_cell_row, lv_row_end TYPE zexcel_cell_row, lv_column_start TYPE zexcel_cell_column_alpha, lv_column_end TYPE zexcel_cell_column_alpha, lv_column_start_int TYPE zexcel_cell_column_alpha, lv_column_end_int TYPE zexcel_cell_column_alpha. MOVE: ip_row_to TO lv_row_end, ip_row TO lv_row. IF lv_row_end IS INITIAL OR ip_row_to IS NOT SUPPLIED. lv_row_end = lv_row. ENDIF. MOVE: ip_column_start TO lv_column_start, ip_column_end TO lv_column_end. IF lv_column_end IS INITIAL OR ip_column_end IS NOT SUPPLIED. lv_column_end = lv_column_start. ENDIF. lv_column_start_int = zcl_excel_common=>convert_column2int( lv_column_start ). lv_column_end_int = zcl_excel_common=>convert_column2int( lv_column_end ). IF lv_column_start_int > lv_column_end_int OR lv_row > lv_row_end. RAISE EXCEPTION TYPE zcx_excel EXPORTING error = 'Wrong Merging Parameters'. ENDIF. IF ip_data_type IS SUPPLIED OR ip_abap_type IS SUPPLIED. me->set_cell( ip_column = lv_column_start ip_row = lv_row ip_value = ip_value ip_formula = ip_formula ip_style = ip_style ip_hyperlink = ip_hyperlink ip_data_type = ip_data_type ip_abap_type = ip_abap_type ). ELSE. me->set_cell( ip_column = lv_column_start ip_row = lv_row ip_value = ip_value ip_formula = ip_formula ip_style = ip_style ip_hyperlink = ip_hyperlink ). ENDIF. IF ip_style IS SUPPLIED. me->set_area_style( ip_column_start = lv_column_start ip_column_end = lv_column_end ip_row = lv_row ip_row_to = lv_row_end ip_style = ip_style ). ENDIF. IF ip_merge IS SUPPLIED AND ip_merge = abap_true. me->set_merge( ip_column_start = lv_column_start ip_column_end = lv_column_end ip_row = lv_row ip_row_to = lv_row_end ). ENDIF. ENDMETHOD. "set_area METHOD set_area_formula. DATA: ld_row TYPE zexcel_cell_row, ld_row_end TYPE zexcel_cell_row, ld_column TYPE zexcel_cell_column_alpha, ld_column_end TYPE zexcel_cell_column_alpha, ld_column_int TYPE zexcel_cell_column_alpha, ld_column_end_int TYPE zexcel_cell_column_alpha. MOVE: ip_row_to TO ld_row_end, ip_row TO ld_row. IF ld_row_end IS INITIAL OR ip_row_to IS NOT SUPPLIED. ld_row_end = ld_row. ENDIF. MOVE: ip_column_start TO ld_column, ip_column_end TO ld_column_end. IF ld_column_end IS INITIAL OR ip_column_end IS NOT SUPPLIED. ld_column_end = ld_column. ENDIF. ld_column_int = zcl_excel_common=>convert_column2int( ld_column ). ld_column_end_int = zcl_excel_common=>convert_column2int( ld_column_end ). IF ld_column_int > ld_column_end_int OR ld_row > ld_row_end. RAISE EXCEPTION TYPE zcx_excel EXPORTING error = 'Wrong Merging Parameters'. ENDIF. me->set_cell_formula( ip_column = ld_column ip_row = ld_row ip_formula = ip_formula ). IF ip_merge IS SUPPLIED AND ip_merge = abap_true. me->set_merge( ip_column_start = ld_column ip_row = ld_row ip_column_end = ld_column_end ip_row_to = ld_row_end ). ENDIF. ENDMETHOD. "set_area_formula METHOD set_area_style. DATA: ld_row_start TYPE zexcel_cell_row, ld_row_end TYPE zexcel_cell_row, ld_column_start_int TYPE zexcel_cell_column, ld_column_end_int TYPE zexcel_cell_column, ld_current_column TYPE zexcel_cell_column_alpha, ld_current_row TYPE zexcel_cell_row. MOVE: ip_row_to TO ld_row_end, ip_row TO ld_row_start. IF ld_row_end IS INITIAL OR ip_row_to IS NOT SUPPLIED. ld_row_end = ld_row_start. ENDIF. ld_column_start_int = zcl_excel_common=>convert_column2int( ip_column_start ). ld_column_end_int = zcl_excel_common=>convert_column2int( ip_column_end ). IF ld_column_end_int IS INITIAL OR ip_column_end IS NOT SUPPLIED. ld_column_end_int = ld_column_start_int. ENDIF. WHILE ld_column_start_int <= ld_column_end_int. ld_current_column = zcl_excel_common=>convert_column2alpha( ld_column_start_int ). ld_current_row = ld_row_start. WHILE ld_current_row <= ld_row_end. me->set_cell_style( ip_row = ld_current_row ip_column = ld_current_column ip_style = ip_style ). ADD 1 TO ld_current_row. ENDWHILE. ADD 1 TO ld_column_start_int. ENDWHILE. IF ip_merge IS SUPPLIED AND ip_merge = abap_true. me->set_merge( ip_column_start = ip_column_start ip_row = ld_row_start ip_column_end = ld_current_column ip_row_to = ld_row_end ). ENDIF. ENDMETHOD. "SET_AREA_STYLE METHOD set_cell. DATA: lv_column TYPE zexcel_cell_column, ls_sheet_content TYPE zexcel_s_cell_data, lv_row_alpha TYPE string, lv_col_alpha TYPE zexcel_cell_column_alpha, lv_value TYPE zexcel_cell_value, lv_data_type TYPE zexcel_cell_data_type, lv_value_type TYPE abap_typekind, lv_style_guid TYPE zexcel_cell_style, lo_addit TYPE REF TO cl_abap_elemdescr, lo_value TYPE REF TO data, lo_value_new TYPE REF TO data. FIELD-SYMBOLS: <fs_sheet_content> TYPE zexcel_s_cell_data, <fs_numeric> TYPE numeric, <fs_date> TYPE d, <fs_time> TYPE t, <fs_value> TYPE simple. IF ip_value IS NOT SUPPLIED AND ip_formula IS NOT SUPPLIED. zcx_excel=>raise_text( 'Please provide the value or formula' ). ENDIF. * Begin of change issue #152 - don't touch exisiting style if only value is passed * lv_style_guid = ip_style. lv_column = zcl_excel_common=>convert_column2int( ip_column ). READ TABLE sheet_content ASSIGNING <fs_sheet_content> WITH TABLE KEY cell_row = ip_row " Changed to access via table key , Stefan Schmöcker, 2013-08-03 cell_column = lv_column. IF sy-subrc = 0. IF ip_style IS INITIAL. " If no style is provided as method-parameter and cell is found use cell's current style lv_style_guid = <fs_sheet_content>-cell_style. ELSE. " Style provided as method-parameter --> use this lv_style_guid = ip_style. ENDIF. ELSE. " No cell found --> use supplied style even if empty lv_style_guid = ip_style. ENDIF. * End of change issue #152 - don't touch exisiting style if only value is passed IF ip_value IS SUPPLIED. "if data type is passed just write the value. Otherwise map abap type to excel and perform conversion "IP_DATA_TYPE is passed by excel reader so source types are preserved *First we get reference into local var. CREATE DATA lo_value LIKE ip_value. ASSIGN lo_value->* TO <fs_value>. <fs_value> = ip_value. IF ip_data_type IS SUPPLIED. IF ip_abap_type IS NOT SUPPLIED. get_value_type( EXPORTING ip_value = ip_value IMPORTING ep_value = <fs_value> ) . ENDIF. lv_value = <fs_value>. lv_data_type = ip_data_type. ELSE. IF ip_abap_type IS SUPPLIED. lv_value_type = ip_abap_type. ELSE. get_value_type( EXPORTING ip_value = ip_value IMPORTING ep_value = <fs_value> ep_value_type = lv_value_type ). ENDIF. CASE lv_value_type. WHEN cl_abap_typedescr=>typekind_int OR cl_abap_typedescr=>typekind_int1 OR cl_abap_typedescr=>typekind_int2 OR cl_abap_typedescr=>typekind_int8. "Allow INT8 types columns lo_addit = cl_abap_elemdescr=>get_i( ). CREATE DATA lo_value_new TYPE HANDLE lo_addit. ASSIGN lo_value_new->* TO <fs_numeric>. IF sy-subrc = 0. <fs_numeric> = <fs_value>. lv_value = zcl_excel_common=>number_to_excel_string( ip_value = <fs_numeric> ). ENDIF. WHEN cl_abap_typedescr=>typekind_float OR cl_abap_typedescr=>typekind_packed. lo_addit = cl_abap_elemdescr=>get_f( ). CREATE DATA lo_value_new TYPE HANDLE lo_addit. ASSIGN lo_value_new->* TO <fs_numeric>. IF sy-subrc = 0. <fs_numeric> = <fs_value>. lv_value = zcl_excel_common=>number_to_excel_string( ip_value = <fs_numeric> ). ENDIF. WHEN cl_abap_typedescr=>typekind_char OR cl_abap_typedescr=>typekind_string OR cl_abap_typedescr=>typekind_num OR cl_abap_typedescr=>typekind_hex. lv_value = <fs_value>. lv_data_type = 's'. WHEN cl_abap_typedescr=>typekind_date. lo_addit = cl_abap_elemdescr=>get_d( ). CREATE DATA lo_value_new TYPE HANDLE lo_addit. ASSIGN lo_value_new->* TO <fs_date>. IF sy-subrc = 0. <fs_date> = <fs_value>. lv_value = zcl_excel_common=>date_to_excel_string( ip_value = <fs_date> ) . ENDIF. * Begin of change issue #152 - don't touch exisiting style if only value is passed * Moved to end of routine - apply date-format even if other styleinformation is passed * IF ip_style IS NOT SUPPLIED. "get default date format in case parameter is initial * lo_style = excel->add_new_style( ). * lo_style->number_format->format_code = get_default_excel_date_format( ). * lv_style_guid = lo_style->get_guid( ). * ENDIF. * End of change issue #152 - don't touch exisiting style if only value is passed WHEN cl_abap_typedescr=>typekind_time. lo_addit = cl_abap_elemdescr=>get_t( ). CREATE DATA lo_value_new TYPE HANDLE lo_addit. ASSIGN lo_value_new->* TO <fs_time>. IF sy-subrc = 0. <fs_time> = <fs_value>. lv_value = zcl_excel_common=>time_to_excel_string( ip_value = <fs_time> ). ENDIF. * Begin of change issue #152 - don't touch exisiting style if only value is passed * Moved to end of routine - apply time-format even if other styleinformation is passed * IF ip_style IS NOT SUPPLIED. "get default time format for user in case parameter is initial * lo_style = excel->add_new_style( ). * lo_style->number_format->format_code = zcl_excel_style_number_format=>c_format_date_time6. * lv_style_guid = lo_style->get_guid( ). * ENDIF. * End of change issue #152 - don't touch exisiting style if only value is passed WHEN OTHERS. zcx_excel=>raise_text( 'Invalid data type of input value' ). ENDCASE. ENDIF. ENDIF. IF ip_hyperlink IS BOUND. ip_hyperlink->set_cell_reference( ip_column = ip_column ip_row = ip_row ). me->hyperlinks->add( ip_hyperlink ). ENDIF. * Begin of change issue #152 - don't touch exisiting style if only value is passed * Read table moved up, so that current style may be evaluated * lv_column = zcl_excel_common=>convert_column2int( ip_column ). * READ TABLE sheet_content ASSIGNING <fs_sheet_content> WITH KEY cell_row = ip_row * cell_column = lv_column. * * IF sy-subrc EQ 0. IF <fs_sheet_content> IS ASSIGNED. * End of change issue #152 - don't touch exisiting style if only value is passed <fs_sheet_content>-cell_value = lv_value. <fs_sheet_content>-cell_formula = ip_formula. <fs_sheet_content>-cell_style = lv_style_guid. <fs_sheet_content>-data_type = lv_data_type. ELSE. ls_sheet_content-cell_row = ip_row. ls_sheet_content-cell_column = lv_column. ls_sheet_content-cell_value = lv_value. ls_sheet_content-cell_formula = ip_formula. ls_sheet_content-cell_style = lv_style_guid. ls_sheet_content-data_type = lv_data_type. lv_row_alpha = ip_row. * SHIFT lv_row_alpha RIGHT DELETING TRAILING space."del #152 - replaced with condense - should be faster * SHIFT lv_row_alpha LEFT DELETING LEADING space. "del #152 - replaced with condense - should be faster CONDENSE lv_row_alpha NO-GAPS. "ins #152 - replaced 2 shifts - should be faster lv_col_alpha = zcl_excel_common=>convert_column2alpha( ip_column ). " issue #155 - less restrictive typing for ip_column CONCATENATE lv_col_alpha lv_row_alpha INTO ls_sheet_content-cell_coords. " issue #155 - less restrictive typing for ip_column INSERT ls_sheet_content INTO TABLE sheet_content ASSIGNING <fs_sheet_content>. "ins #152 - Now <fs_sheet_content> always holds the data * APPEND ls_sheet_content TO sheet_content. * SORT sheet_content BY cell_row cell_column. " me->update_dimension_range( ). ENDIF. * Begin of change issue #152 - don't touch exisiting style if only value is passed * For Date- or Timefields change the formatcode if nothing is set yet * Enhancement option: Check if existing formatcode is a date/ or timeformat * If not, use default DATA: lo_format_code_datetime TYPE zexcel_number_format. DATA: stylemapping TYPE zexcel_s_stylemapping. CASE lv_value_type. WHEN cl_abap_typedescr=>typekind_date. TRY. stylemapping = me->excel->get_style_to_guid( <fs_sheet_content>-cell_style ). CATCH zcx_excel . ENDTRY. IF stylemapping-complete_stylex-number_format-format_code IS INITIAL OR stylemapping-complete_style-number_format-format_code IS INITIAL. lo_format_code_datetime = zcl_excel_style_number_format=>c_format_date_std. ELSE. lo_format_code_datetime = stylemapping-complete_style-number_format-format_code. ENDIF. me->change_cell_style( ip_column = ip_column ip_row = ip_row ip_number_format_format_code = lo_format_code_datetime ). WHEN cl_abap_typedescr=>typekind_time. TRY. stylemapping = me->excel->get_style_to_guid( <fs_sheet_content>-cell_style ). CATCH zcx_excel . ENDTRY. IF stylemapping-complete_stylex-number_format-format_code IS INITIAL OR stylemapping-complete_style-number_format-format_code IS INITIAL. lo_format_code_datetime = zcl_excel_style_number_format=>c_format_date_time6. ELSE. lo_format_code_datetime = stylemapping-complete_style-number_format-format_code. ENDIF. me->change_cell_style( ip_column = ip_column ip_row = ip_row ip_number_format_format_code = lo_format_code_datetime ). ENDCASE. * End of change issue #152 - don't touch exisiting style if only value is passed * Fix issue #162 lv_value = ip_value. IF lv_value CS cl_abap_char_utilities=>cr_lf. me->change_cell_style( ip_column = ip_column ip_row = ip_row ip_alignment_wraptext = abap_true ). ENDIF. * End of Fix issue #162 ENDMETHOD. "SET_CELL METHOD set_cell_formula. DATA: lv_column TYPE zexcel_cell_column, ls_sheet_content LIKE LINE OF me->sheet_content. FIELD-SYMBOLS: <sheet_content> LIKE LINE OF me->sheet_content. *--------------------------------------------------------------------* * Get cell to set formula into *--------------------------------------------------------------------* lv_column = zcl_excel_common=>convert_column2int( ip_column ). READ TABLE me->sheet_content ASSIGNING <sheet_content> WITH TABLE KEY cell_row = ip_row cell_column = lv_column. IF sy-subrc <> 0. " Create new entry in sheet_content if necessary CHECK ip_formula IS INITIAL. " no need to create new entry in sheet_content when no formula is passed ls_sheet_content-cell_row = ip_row. ls_sheet_content-cell_column = lv_column. INSERT ls_sheet_content INTO TABLE me->sheet_content ASSIGNING <sheet_content>. ENDIF. *--------------------------------------------------------------------* * Fieldsymbol now holds the relevant cell *--------------------------------------------------------------------* <sheet_content>-cell_formula = ip_formula. ENDMETHOD. "SET_CELL_FORMULA METHOD set_cell_style. DATA: lv_column TYPE zexcel_cell_column, lv_style_guid TYPE zexcel_cell_style. FIELD-SYMBOLS: <fs_sheet_content> TYPE zexcel_s_cell_data. lv_style_guid = ip_style. lv_column = zcl_excel_common=>convert_column2int( ip_column ). READ TABLE sheet_content ASSIGNING <fs_sheet_content> WITH KEY cell_row = ip_row cell_column = lv_column. IF sy-subrc EQ 0. <fs_sheet_content>-cell_style = lv_style_guid. ELSE. set_cell( ip_column = ip_column ip_row = ip_row ip_value = '' ip_style = ip_style ). ENDIF. ENDMETHOD. "SET_CELL_STYLE METHOD set_column_width. DATA: lo_column TYPE REF TO zcl_excel_column. DATA: width TYPE float. lo_column = me->get_column( ip_column ). * if a fix size is supplied use this IF ip_width_fix IS SUPPLIED. TRY. width = ip_width_fix. IF width <= 0. zcx_excel=>raise_text( 'Please supply a positive number as column-width' ). ENDIF. lo_column->set_width( width ). EXIT. CATCH cx_sy_conversion_no_number. * Strange stuff passed --> raise error zcx_excel=>raise_text( 'Unable to interpret supplied input as number' ). ENDTRY. ENDIF. * If we get down to here, we have to use whatever is found in autosize. lo_column->set_auto_size( ip_width_autosize ). ENDMETHOD. "SET_COLUMN_WIDTH METHOD set_default_excel_date_format. IF ip_default_excel_date_format IS INITIAL. zcx_excel=>raise_text( 'Default date format cannot be blank' ). ENDIF. default_excel_date_format = ip_default_excel_date_format. ENDMETHOD. "SET_DEFAULT_EXCEL_DATE_FORMAT METHOD set_merge. DATA: ls_merge TYPE mty_merge, lv_errormessage TYPE string. ... "just after variables definition IF ip_value IS SUPPLIED OR ip_formula IS SUPPLIED. " if there is a value or formula set the value to the top-left cell "maybe it is necessary to support other paramters for set_cell IF ip_value IS SUPPLIED. me->set_cell( ip_row = ip_row ip_column = ip_column_start ip_value = ip_value ). ENDIF. IF ip_formula IS SUPPLIED. me->set_cell( ip_row = ip_row ip_column = ip_column_start ip_value = ip_formula ). ENDIF. ENDIF. "call to set_merge_style to apply the style to all cells at the matrix IF ip_style IS SUPPLIED. me->set_merge_style( ip_row = ip_row ip_column_start = ip_column_start ip_row_to = ip_row_to ip_column_end = ip_column_end ip_style = ip_style ). ENDIF. ... *--------------------------------------------------------------------* * Build new range area to insert into range table *--------------------------------------------------------------------* ls_merge-row_from = ip_row. IF ip_row IS SUPPLIED AND ip_row IS NOT INITIAL AND ip_row_to IS NOT SUPPLIED. ls_merge-row_to = ls_merge-row_from. ELSE. ls_merge-row_to = ip_row_to. ENDIF. IF ls_merge-row_from > ls_merge-row_to. lv_errormessage = 'Merge: First row larger then last row'(405). zcx_excel=>raise_text( lv_errormessage ). ENDIF. ls_merge-col_from = zcl_excel_common=>convert_column2int( ip_column_start ). IF ip_column_start IS SUPPLIED AND ip_column_start IS NOT INITIAL AND ip_column_end IS NOT SUPPLIED. ls_merge-col_to = ls_merge-col_from. ELSE. ls_merge-col_to = zcl_excel_common=>convert_column2int( ip_column_end ). ENDIF. IF ls_merge-col_from > ls_merge-col_to. lv_errormessage = 'Merge: First column larger then last column'(406). zcx_excel=>raise_text( lv_errormessage ). ENDIF. *--------------------------------------------------------------------* * Check merge not overlapping with existing merges *--------------------------------------------------------------------* LOOP AT me->mt_merged_cells TRANSPORTING NO FIELDS WHERE NOT ( row_from > ls_merge-row_to OR row_to < ls_merge-row_from OR col_from > ls_merge-col_to OR col_to < ls_merge-col_from ). lv_errormessage = 'Overlapping merges'(404). zcx_excel=>raise_text( lv_errormessage ). ENDLOOP. *--------------------------------------------------------------------* * Everything seems ok --> add to merge table *--------------------------------------------------------------------* INSERT ls_merge INTO TABLE me->mt_merged_cells. ENDMETHOD. "SET_MERGE METHOD set_merge_style. DATA: ld_row_start TYPE zexcel_cell_row, ld_row_end TYPE zexcel_cell_row, ld_column_start TYPE zexcel_cell_column, ld_column_end TYPE zexcel_cell_column, ld_current_column TYPE zexcel_cell_column_alpha, ld_current_row TYPE zexcel_cell_row. MOVE: ip_row_to TO ld_row_end, ip_row TO ld_row_start. IF ld_row_end IS INITIAL. ld_row_end = ld_row_start. ENDIF. ld_column_start = zcl_excel_common=>convert_column2int( ip_column_start ). ld_column_end = zcl_excel_common=>convert_column2int( ip_column_end ). IF ld_column_end IS INITIAL. ld_column_end = ld_column_start. ENDIF. "set the style cell by cell WHILE ld_column_start <= ld_column_end. ld_current_column = zcl_excel_common=>convert_column2alpha( ld_column_start ). ld_current_row = ld_row_start. WHILE ld_current_row <= ld_row_end. me->set_cell_style( ip_row = ld_current_row ip_column = ld_current_column ip_style = ip_style ). ADD 1 TO ld_current_row. ENDWHILE. ADD 1 TO ld_column_start. ENDWHILE. ENDMETHOD. "set_merge_style METHOD set_print_gridlines. me->print_gridlines = i_print_gridlines. ENDMETHOD. "SET_PRINT_GRIDLINES METHOD set_row_height. DATA: lo_row TYPE REF TO zcl_excel_row. DATA: height TYPE float. lo_row = me->get_row( ip_row ). * if a fix size is supplied use this TRY. height = ip_height_fix. IF height <= 0. zcx_excel=>raise_text( 'Please supply a positive number as row-height' ). ENDIF. lo_row->set_row_height( height ). EXIT. CATCH cx_sy_conversion_no_number. * Strange stuff passed --> raise error zcx_excel=>raise_text( 'Unable to interpret supplied input as number' ). ENDTRY. ENDMETHOD. "SET_ROW_HEIGHT METHOD set_row_outline. DATA: ls_row_outline LIKE LINE OF me->mt_row_outlines. FIELD-SYMBOLS: <ls_row_outline> LIKE LINE OF me->mt_row_outlines. READ TABLE me->mt_row_outlines ASSIGNING <ls_row_outline> WITH TABLE KEY row_from = iv_row_from row_to = iv_row_to. IF sy-subrc <> 0. IF iv_row_from <= 0. zcx_excel=>raise_text( 'First row of outline must be a positive number' ). ENDIF. IF iv_row_to < iv_row_from. zcx_excel=>raise_text( 'Last row of outline may not be less than first line of outline' ). ENDIF. ls_row_outline-row_from = iv_row_from. ls_row_outline-row_to = iv_row_to. INSERT ls_row_outline INTO TABLE me->mt_row_outlines ASSIGNING <ls_row_outline>. ENDIF. CASE iv_collapsed. WHEN abap_true OR abap_false. <ls_row_outline>-collapsed = iv_collapsed. WHEN OTHERS. zcx_excel=>raise_text( 'Unknown collapse state' ). ENDCASE. ENDMETHOD. "SET_ROW_OUTLINE METHOD set_show_gridlines. me->show_gridlines = i_show_gridlines. ENDMETHOD. "SET_SHOW_GRIDLINES METHOD set_show_rowcolheaders. me->show_rowcolheaders = i_show_rowcolheaders. ENDMETHOD. "SET_SHOW_ROWCOLHEADERS METHOD set_tabcolor. me->tabcolor = iv_tabcolor. ENDMETHOD. "SET_TABCOLOR METHOD set_table. DATA: lo_tabdescr TYPE REF TO cl_abap_structdescr, lr_data TYPE REF TO data, ls_header TYPE x030l, lt_dfies TYPE ddfields, lv_row_int TYPE zexcel_cell_row, lv_column_int TYPE zexcel_cell_column, lv_column_alpha TYPE zexcel_cell_column_alpha, lv_cell_value TYPE zexcel_cell_value. FIELD-SYMBOLS: <fs_table_line> TYPE any, <fs_fldval> TYPE any, <fs_dfies> TYPE dfies. lv_column_int = zcl_excel_common=>convert_column2int( ip_top_left_column ). lv_row_int = ip_top_left_row. CREATE DATA lr_data LIKE LINE OF ip_table. lo_tabdescr ?= cl_abap_structdescr=>describe_by_data_ref( lr_data ). ls_header = lo_tabdescr->get_ddic_header( ). lt_dfies = lo_tabdescr->get_ddic_field_list( ). * It is better to loop column by column LOOP AT lt_dfies ASSIGNING <fs_dfies>. lv_column_alpha = zcl_excel_common=>convert_column2alpha( lv_column_int ). IF ip_no_header = abap_false. " First of all write column header lv_cell_value = <fs_dfies>-scrtext_m. me->set_cell( ip_column = lv_column_alpha ip_row = lv_row_int ip_value = lv_cell_value ip_style = ip_hdr_style ). IF ip_transpose = abap_true. ADD 1 TO lv_column_int. ELSE. ADD 1 TO lv_row_int. ENDIF. ENDIF. LOOP AT ip_table ASSIGNING <fs_table_line>. lv_column_alpha = zcl_excel_common=>convert_column2alpha( lv_column_int ). ASSIGN COMPONENT <fs_dfies>-fieldname OF STRUCTURE <fs_table_line> TO <fs_fldval>. MOVE <fs_fldval> TO lv_cell_value. me->set_cell( ip_column = lv_column_alpha ip_row = lv_row_int ip_value = <fs_fldval> "lv_cell_value ip_style = ip_body_style ). IF ip_transpose = abap_true. ADD 1 TO lv_column_int. ELSE. ADD 1 TO lv_row_int. ENDIF. ENDLOOP. IF ip_transpose = abap_true. lv_column_int = zcl_excel_common=>convert_column2int( ip_top_left_column ). ADD 1 TO lv_row_int. ELSE. lv_row_int = ip_top_left_row. ADD 1 TO lv_column_int. ENDIF. ENDLOOP. ENDMETHOD. "SET_TABLE METHOD set_title. *--------------------------------------------------------------------* * ToDos: * 2do §1 The current coding for replacing a named ranges name * after renaming a sheet should be checked if it is * really working if sheetname should be escaped *--------------------------------------------------------------------* *--------------------------------------------------------------------* * issue #230 - Pimp my Code * - Stefan Schmoecker, (wip ) 2012-12-08 * - ... * changes: aligning code * message made to support multilinguality *--------------------------------------------------------------------* * issue#243 - ' is not allowed as first character in sheet title * - Stefan Schmoecker, 2012-12-02 * changes: added additional check for ' as first character *--------------------------------------------------------------------* DATA: lo_worksheets_iterator TYPE REF TO cl_object_collection_iterator, lo_worksheet TYPE REF TO zcl_excel_worksheet, errormessage TYPE string, lv_rangesheetname_old TYPE string, lv_rangesheetname_new TYPE string, lo_ranges_iterator TYPE REF TO cl_object_collection_iterator, lo_range TYPE REF TO zcl_excel_range, lv_range_value TYPE zexcel_range_value, lv_errormessage TYPE string. " Can't pass '...'(abc) to exception-class *--------------------------------------------------------------------* * Check whether title consists only of allowed characters * Illegal characters are: / \ [ ] * ? : --> http://msdn.microsoft.com/en-us/library/ff837411.aspx * Illegal characters not in documentation: ' as first character *--------------------------------------------------------------------* IF ip_title CA '/\[]*?:'. lv_errormessage = 'Found illegal character in sheetname. List of forbidden characters: /\[]*?:'(402). zcx_excel=>raise_text( lv_errormessage ). ENDIF. IF ip_title IS NOT INITIAL AND ip_title(1) = `'`. lv_errormessage = 'Sheetname may not start with &'(403). " & used instead of ' to allow fallbacklanguage REPLACE '&' IN lv_errormessage WITH `'`. zcx_excel=>raise_text( lv_errormessage ). ENDIF. *--------------------------------------------------------------------* * Check whether title is unique in workbook *--------------------------------------------------------------------* lo_worksheets_iterator = me->excel->get_worksheets_iterator( ). WHILE lo_worksheets_iterator->has_next( ) = 'X'. lo_worksheet ?= lo_worksheets_iterator->get_next( ). CHECK me->guid <> lo_worksheet->get_guid( ). " Don't check against itself IF ip_title = lo_worksheet->get_title( ). " Not unique --> raise exception errormessage = 'Duplicate sheetname &'. REPLACE '&' IN errormessage WITH ip_title. zcx_excel=>raise_text( errormessage ). ENDIF. ENDWHILE. *--------------------------------------------------------------------* * Remember old sheetname and rename sheet to desired name *--------------------------------------------------------------------* CONCATENATE me->title '!' INTO lv_rangesheetname_old. me->title = ip_title. *--------------------------------------------------------------------* * After changing this worksheet's title we have to adjust * all ranges that are referring to this worksheet. *--------------------------------------------------------------------* * 2do §1 - Check if the following quickfix is solid * I fear it isn't - but this implementation is better then * nothing at all since it handles a supposed majority of cases *--------------------------------------------------------------------* CONCATENATE me->title '!' INTO lv_rangesheetname_new. lo_ranges_iterator = me->excel->get_ranges_iterator( ). WHILE lo_ranges_iterator->has_next( ) = 'X'. lo_range ?= lo_ranges_iterator->get_next( ). lv_range_value = lo_range->get_value( ). REPLACE ALL OCCURRENCES OF lv_rangesheetname_old IN lv_range_value WITH lv_rangesheetname_new. IF sy-subrc = 0. lo_range->set_range_value( lv_range_value ). ENDIF. ENDWHILE. ENDMETHOD. "SET_TITLE METHOD update_dimension_range. DATA: ls_sheet_content TYPE zexcel_s_cell_data, lv_row_alpha TYPE string, lv_column_alpha TYPE zexcel_cell_column_alpha. CHECK sheet_content IS NOT INITIAL. upper_cell-cell_row = zcl_excel_common=>c_excel_sheet_max_row. upper_cell-cell_column = zcl_excel_common=>c_excel_sheet_max_col. lower_cell-cell_row = zcl_excel_common=>c_excel_sheet_min_row. lower_cell-cell_column = zcl_excel_common=>c_excel_sheet_min_col. LOOP AT sheet_content INTO ls_sheet_content. IF upper_cell-cell_row > ls_sheet_content-cell_row. upper_cell-cell_row = ls_sheet_content-cell_row. ENDIF. IF upper_cell-cell_column > ls_sheet_content-cell_column. upper_cell-cell_column = ls_sheet_content-cell_column. ENDIF. IF lower_cell-cell_row < ls_sheet_content-cell_row. lower_cell-cell_row = ls_sheet_content-cell_row. ENDIF. IF lower_cell-cell_column < ls_sheet_content-cell_column. lower_cell-cell_column = ls_sheet_content-cell_column. ENDIF. ENDLOOP. lv_row_alpha = upper_cell-cell_row. lv_column_alpha = zcl_excel_common=>convert_column2alpha( upper_cell-cell_column ). SHIFT lv_row_alpha RIGHT DELETING TRAILING space. SHIFT lv_row_alpha LEFT DELETING LEADING space. CONCATENATE lv_column_alpha lv_row_alpha INTO upper_cell-cell_coords. lv_row_alpha = lower_cell-cell_row. lv_column_alpha = zcl_excel_common=>convert_column2alpha( lower_cell-cell_column ). SHIFT lv_row_alpha RIGHT DELETING TRAILING space. SHIFT lv_row_alpha LEFT DELETING LEADING space. CONCATENATE lv_column_alpha lv_row_alpha INTO lower_cell-cell_coords. ENDMETHOD. "UPDATE_DIMENSION_RANGE METHOD zif_excel_sheet_printsettings~clear_print_repeat_columns. *--------------------------------------------------------------------* * adjust internal representation *--------------------------------------------------------------------* CLEAR: me->print_title_col_from, me->print_title_col_to . *--------------------------------------------------------------------* * adjust corresponding range *--------------------------------------------------------------------* me->print_title_set_range( ). ENDMETHOD. "ZIF_EXCEL_SHEET_PRINTSETTINGS~CLEAR_PRINT_REPEAT_COLUMNS METHOD zif_excel_sheet_printsettings~clear_print_repeat_rows. *--------------------------------------------------------------------* * adjust internal representation *--------------------------------------------------------------------* CLEAR: me->print_title_row_from, me->print_title_row_to . *--------------------------------------------------------------------* * adjust corresponding range *--------------------------------------------------------------------* me->print_title_set_range( ). ENDMETHOD. "ZIF_EXCEL_SHEET_PRINTSETTINGS~CLEAR_PRINT_REPEAT_ROWS METHOD zif_excel_sheet_printsettings~get_print_repeat_columns. ev_columns_from = me->print_title_col_from. ev_columns_to = me->print_title_col_to. ENDMETHOD. "ZIF_EXCEL_SHEET_PRINTSETTINGS~GET_PRINT_REPEAT_COLUMNS METHOD zif_excel_sheet_printsettings~get_print_repeat_rows. ev_rows_from = me->print_title_row_from. ev_rows_to = me->print_title_row_to. ENDMETHOD. "ZIF_EXCEL_SHEET_PRINTSETTINGS~GET_PRINT_REPEAT_ROWS METHOD zif_excel_sheet_printsettings~set_print_repeat_columns. *--------------------------------------------------------------------* * issue#235 - repeat rows/columns * - Stefan Schmöcker, 2012-12-02 *--------------------------------------------------------------------* DATA: lv_col_from_int TYPE i, lv_col_to_int TYPE i, lv_errormessage TYPE string. lv_col_from_int = zcl_excel_common=>convert_column2int( iv_columns_from ). lv_col_to_int = zcl_excel_common=>convert_column2int( iv_columns_to ). *--------------------------------------------------------------------* * Check if valid range is supplied *--------------------------------------------------------------------* IF lv_col_from_int < 1. lv_errormessage = 'Invalid range supplied for print-title repeatable columns'(401). zcx_excel=>raise_text( lv_errormessage ). ENDIF. IF lv_col_from_int > lv_col_to_int. lv_errormessage = 'Invalid range supplied for print-title repeatable columns'(401). zcx_excel=>raise_text( lv_errormessage ). ENDIF. *--------------------------------------------------------------------* * adjust internal representation *--------------------------------------------------------------------* me->print_title_col_from = iv_columns_from. me->print_title_col_to = iv_columns_to. *--------------------------------------------------------------------* * adjust corresponding range *--------------------------------------------------------------------* me->print_title_set_range( ). ENDMETHOD. "ZIF_EXCEL_SHEET_PRINTSETTINGS~SET_PRINT_REPEAT_COLUMNS METHOD zif_excel_sheet_printsettings~set_print_repeat_rows. *--------------------------------------------------------------------* * issue#235 - repeat rows/columns * - Stefan Schmöcker, 2012-12-02 *--------------------------------------------------------------------* DATA: lv_errormessage TYPE string. *--------------------------------------------------------------------* * Check if valid range is supplied *--------------------------------------------------------------------* IF iv_rows_from < 1. lv_errormessage = 'Invalid range supplied for print-title repeatable rowumns'(401). zcx_excel=>raise_text( lv_errormessage ). ENDIF. IF iv_rows_from > iv_rows_to. lv_errormessage = 'Invalid range supplied for print-title repeatable rowumns'(401). zcx_excel=>raise_text( lv_errormessage ). ENDIF. *--------------------------------------------------------------------* * adjust internal representation *--------------------------------------------------------------------* me->print_title_row_from = iv_rows_from. me->print_title_row_to = iv_rows_to. *--------------------------------------------------------------------* * adjust corresponding range *--------------------------------------------------------------------* me->print_title_set_range( ). ENDMETHOD. "ZIF_EXCEL_SHEET_PRINTSETTINGS~SET_PRINT_REPEAT_ROWS METHOD zif_excel_sheet_properties~get_style. IF zif_excel_sheet_properties~style IS NOT INITIAL. ep_style = zif_excel_sheet_properties~style. ELSE. ep_style = me->excel->get_default_style( ). ENDIF. ENDMETHOD. "ZIF_EXCEL_SHEET_PROPERTIES~GET_STYLE METHOD zif_excel_sheet_properties~initialize. zif_excel_sheet_properties~show_zeros = zif_excel_sheet_properties=>c_showzero. zif_excel_sheet_properties~summarybelow = zif_excel_sheet_properties=>c_below_on. zif_excel_sheet_properties~summaryright = zif_excel_sheet_properties=>c_right_on. * inizialize zoomscale values zif_excel_sheet_properties~zoomscale = 100. zif_excel_sheet_properties~zoomscale_normal = 100. zif_excel_sheet_properties~zoomscale_pagelayoutview = 100 . zif_excel_sheet_properties~zoomscale_sheetlayoutview = 100 . ENDMETHOD. "ZIF_EXCEL_SHEET_PROPERTIES~INITIALIZE METHOD zif_excel_sheet_properties~set_style. zif_excel_sheet_properties~style = ip_style. ENDMETHOD. "ZIF_EXCEL_SHEET_PROPERTIES~SET_STYLE METHOD zif_excel_sheet_protection~initialize. me->zif_excel_sheet_protection~protected = zif_excel_sheet_protection=>c_unprotected. CLEAR me->zif_excel_sheet_protection~password. me->zif_excel_sheet_protection~auto_filter = zif_excel_sheet_protection=>c_noactive. me->zif_excel_sheet_protection~delete_columns = zif_excel_sheet_protection=>c_noactive. me->zif_excel_sheet_protection~delete_rows = zif_excel_sheet_protection=>c_noactive. me->zif_excel_sheet_protection~format_cells = zif_excel_sheet_protection=>c_noactive. me->zif_excel_sheet_protection~format_columns = zif_excel_sheet_protection=>c_noactive. me->zif_excel_sheet_protection~format_rows = zif_excel_sheet_protection=>c_noactive. me->zif_excel_sheet_protection~insert_columns = zif_excel_sheet_protection=>c_noactive. me->zif_excel_sheet_protection~insert_hyperlinks = zif_excel_sheet_protection=>c_noactive. me->zif_excel_sheet_protection~insert_rows = zif_excel_sheet_protection=>c_noactive. me->zif_excel_sheet_protection~objects = zif_excel_sheet_protection=>c_noactive. * me->zif_excel_sheet_protection~password = zif_excel_sheet_protection=>c_noactive. "issue #68 me->zif_excel_sheet_protection~pivot_tables = zif_excel_sheet_protection=>c_noactive. me->zif_excel_sheet_protection~protected = zif_excel_sheet_protection=>c_noactive. me->zif_excel_sheet_protection~scenarios = zif_excel_sheet_protection=>c_noactive. me->zif_excel_sheet_protection~select_locked_cells = zif_excel_sheet_protection=>c_noactive. me->zif_excel_sheet_protection~select_unlocked_cells = zif_excel_sheet_protection=>c_noactive. me->zif_excel_sheet_protection~sheet = zif_excel_sheet_protection=>c_noactive. me->zif_excel_sheet_protection~sort = zif_excel_sheet_protection=>c_noactive. ENDMETHOD. "ZIF_EXCEL_SHEET_PROTECTION~INITIALIZE METHOD zif_excel_sheet_vba_project~set_codename. me->zif_excel_sheet_vba_project~codename = ip_codename. ENDMETHOD. "ZIF_EXCEL_SHEET_VBA_PROJECT~SET_CODENAME METHOD zif_excel_sheet_vba_project~set_codename_pr. me->zif_excel_sheet_vba_project~codename_pr = ip_codename_pr. ENDMETHOD. "ZIF_EXCEL_SHEET_VBA_PROJECT~SET_CODENAME_PR ENDCLASS.
[ 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 1168, 5097, 62, 6369, 34, 3698, 62, 33249, 9693, 36, 2767, 5550, 20032, 17941, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 31631, 1976, 565, 62, 1069, 5276, 62, 5225, 25473, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 6369, 34, 3698, 62, 33249, 9693, 36, 2767, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 5097, 62, 6369, 34, 3698, 62, 33249, 9693, 36, 2767, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 5097, 62, 6369, 34, 3698, 62, 33249, 9693, 36, 2767, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 220, 220, 41876, 12, 16402, 3535, 50, 450, 499, 764, 198, 220, 220, 220, 41876, 12, 16402, 3535, 50, 1017, 271, 764, 198, 220, 220, 220, 41876, 12, 16402, 3535, 50, 523, 72, 764, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 1069, 5276, 62, 21760, 62, 4798, 33692, 764, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 1069, 5276, 62, 21760, 62, 48310, 764, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 1069, 5276, 62, 21760, 62, 42846, 764, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 1069, 5276, 62, 21760, 62, 85, 7012, 62, 16302, 764, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 220, 285, 774, 62, 82, 62, 448, 1370, 62, 808, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5752, 62, 6738, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5752, 62, 1462, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 14707, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 285, 774, 62, 82, 62, 448, 1370, 62, 808, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 285, 774, 62, 912, 62, 448, 6615, 62, 808, 41876, 311, 9863, 1961, 43679, 3963, 285, 774, 62, 82, 62, 448, 1370, 62, 808, 13315, 4725, 33866, 8924, 35374, 5752, 62, 6738, 5752, 62, 1462, 764, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 9032, 62, 28665, 41876, 1976, 1069, 5276, 62, 9032, 26173, 8924, 362, 13, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 9032, 62, 23108, 41876, 1976, 1069, 5276, 62, 9032, 26173, 8924, 657, 13, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 9032, 62, 808, 41876, 1976, 1069, 5276, 62, 9032, 26173, 8924, 352, 13, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 42865, 27336, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 20832, 12, 1340, 11319, 764, 198, 220, 220, 220, 42865, 3601, 62, 25928, 6615, 41876, 1976, 1069, 5276, 62, 4798, 62, 25928, 6615, 20832, 12, 1340, 11319, 26173, 8924, 450, 499, 62, 9562, 13, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 42865, 9629, 62, 11299, 41876, 1976, 1069, 5276, 62, 83, 62, 3846, 62, 7890, 764, 198, 220, 220, 220, 42865, 9629, 62, 40406, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 21760, 62, 40406, 764, 198, 220, 220, 220, 42865, 905, 62, 25928, 6615, 41876, 1976, 1069, 5276, 62, 12860, 62, 25928, 6615, 20832, 12, 1340, 11319, 26173, 8924, 450, 499, 62, 7942, 13, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 42865, 905, 62, 808, 4033, 50145, 41876, 1976, 1069, 5276, 62, 12860, 62, 25928, 6615, 20832, 12, 1340, 11319, 26173, 8924, 450, 499, 62, 7942, 13, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 42865, 12186, 41876, 1976, 1069, 5276, 62, 83, 62, 21760, 62, 7635, 764, 198, 220, 220, 220, 42865, 7400, 8043, 41876, 1976, 1069, 5276, 62, 82, 62, 8658, 8043, 20832, 12, 1340, 11319, 764, 628, 220, 220, 220, 337, 36252, 50, 751, 62, 23893, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 541, 62, 23893, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 23893, 764, 198, 220, 220, 220, 337, 36252, 50, 751, 62, 19334, 278, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 541, 62, 19334, 278, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 19334, 278, 764, 198, 220, 220, 220, 337, 36252, 50, 751, 62, 3605, 62, 28665, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 541, 62, 28665, 41876, 2829, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 68, 78, 62, 28665, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 28665, 764, 198, 220, 220, 220, 337, 36252, 50, 751, 62, 3605, 62, 7635, 62, 17561, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 68, 78, 62, 7635, 62, 17561, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7635, 62, 17561, 764, 198, 220, 220, 220, 337, 36252, 50, 751, 62, 3605, 62, 7890, 62, 12102, 341, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 68, 78, 62, 7890, 62, 12102, 341, 8, 41876, 4526, 37,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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 ]
"! <p class="shorttext synchronized" lang="en">Util for function modules</p> CLASS zcl_advoat_func_util DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS: "! <p class="shorttext synchronized" lang="en">Returns 'X' if function module exists</p> function_exists IMPORTING function_module TYPE tfdir-funcname RETURNING VALUE(result) TYPE abap_bool, "! <p class="shorttext synchronized" lang="en">Retrieves function module information</p> get_function_module_info IMPORTING function_module TYPE tfdir-funcname RETURNING VALUE(result) TYPE zif_advoat_ty_global=>ty_function_info RAISING zcx_advoat_not_exists, "! <p class="shorttext synchronized" lang="en">Retrieves function module info by include name</p> get_func_module_by_include IMPORTING include TYPE progname RETURNING VALUE(result) TYPE zif_advoat_ty_global=>ty_function_info RAISING zcx_advoat_not_exists. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_advoat_func_util IMPLEMENTATION. METHOD function_exists. TRY. get_function_module_info( function_module ). result = abap_true. CATCH zcx_advoat_not_exists. ENDTRY. ENDMETHOD. METHOD get_function_module_info. result-name = function_module. TRANSLATE result-name TO UPPER CASE. CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = result-name IMPORTING group = result-group include = result-include EXCEPTIONS function_not_exist = 1 OTHERS = 2. IF sy-subrc <> 0. CLEAR result. RAISE EXCEPTION TYPE zcx_advoat_not_exists EXPORTING text = |Function module { function_module } does not exist|. ENDIF. ENDMETHOD. METHOD get_func_module_by_include. result-include = include. TRANSLATE result-include TO UPPER CASE. CALL FUNCTION 'FUNCTION_INCLUDE_INFO' CHANGING funcname = result-name group = result-group include = result-include EXCEPTIONS function_not_exists = 1 include_not_exists = 2 group_not_exists = 3 no_selections = 4 no_function_include = 5 OTHERS = 6. IF sy-subrc <> 0. CLEAR result. RAISE EXCEPTION TYPE zcx_advoat_not_exists EXPORTING text = |Function include { include } does not exist|. ENDIF. ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 18274, 346, 329, 2163, 13103, 3556, 79, 29, 198, 31631, 1976, 565, 62, 324, 13038, 265, 62, 20786, 62, 22602, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 35561, 705, 55, 6, 611, 2163, 8265, 7160, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 2163, 62, 1069, 1023, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2163, 62, 21412, 41876, 48700, 15908, 12, 20786, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 220, 220, 41876, 450, 499, 62, 30388, 11, 628, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 9781, 5034, 1158, 2163, 8265, 1321, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 651, 62, 8818, 62, 21412, 62, 10951, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2163, 62, 21412, 41876, 48700, 15908, 12, 20786, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 220, 220, 41876, 1976, 361, 62, 324, 13038, 265, 62, 774, 62, 20541, 14804, 774, 62, 8818, 62, 10951, 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, 324, 13038, 265, 62, 1662, 62, 1069, 1023, 11, 628, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 9781, 5034, 1158, 2163, 8265, 7508, 416, 2291, 1438, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 651, 62, 20786, 62, 21412, 62, 1525, 62, 17256, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2291, 220, 220, 220, 220, 220, 220, 41876, 1172, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 1976, 361, 62, 324, 13038, 265, 62, 774, 62, 20541, 14804, 774, 62, 8818, 62, 10951, 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, 324, 13038, 265, 62, 1662, 62, 1069, 1023, 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, 324, 13038, 265, 62, 20786, 62, 22602, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 2163, 62, 1069, 1023, 13, 198, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 651, 62, 8818, 62, 21412, 62, 10951, 7, 2163, 62, 21412, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 327, 11417, 1976, 66, 87, 62, 324, 13038, 265, 62, 1662, 62, 1069, 1023, 13, 198, 220, 220, 220, 23578, 40405, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 8818, 62, 21412, 62, 10951, 13, 198, 220, 220, 220, 1255, 12, 3672, 796, 2163, 62, 21412, 13, 198, 220, 220, 220, 48213, 8634, 6158, 1255, 12, 3672, 5390, 471, 10246, 1137, 42001, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 42296, 4177, 2849, 62, 6369, 1797, 4694, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 25439, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1255, 12, 3672, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1448, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1255, 12, 8094, 198, 220, 220, 220, 220, 220, 220, 220, 2291, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1255, 12, 17256, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 2163, 62, 1662, 62, 38476, 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, 796, 362, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 30301, 1503, 1255, 13, 198, 220, 220, 220, 220, 220, 17926, 24352, 7788, 42006, 2849, 41876, 1976, 66, 87, 62, 324, 13038, 265, 62, 1662, 62, 1069, 1023, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 796, 930, 22203, 8265, 1391, 2163, 62, 21412, 1782, 857, 407, 2152, 91, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 20786, 62, 21412, 62, 1525, 62, 17256, 13, 198, 220, 220, 220, 1255, 12, 17256, 796, 2291, 13, 198, 220, 220, 220, 48213, 8634, 6158, 1255, 12, 17256, 5390, 471, 10246, 1137, 42001, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 42296, 4177, 2849, 62, 1268, 5097, 52, 7206, 62, 10778, 6, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 25439, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1255, 12, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 1448, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1255, 12, 8094, 198, 220, 220, 220, 220, 220, 220, 220, 2291, 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,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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 ]
FUNCTION /DMO/FLIGHT_BOOKSUPPL_C. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" VALUE(VALUES) TYPE /DMO/TT_BOOKSUPPL_M *"---------------------------------------------------------------------- INSERT /dmo/booksuppl_m FROM TABLE @values. ENDFUNCTION.
[ 42296, 4177, 2849, 1220, 35, 11770, 14, 3697, 9947, 62, 39453, 40331, 6489, 62, 34, 13, 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, 23428, 35409, 8, 41876, 220, 1220, 35, 11770, 14, 15751, 62, 39453, 40331, 6489, 62, 44, 198, 9, 1, 10097, 23031, 628, 220, 29194, 17395, 1220, 67, 5908, 14, 2070, 18608, 75, 62, 76, 16034, 43679, 2488, 27160, 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 ]
*&---------------------------------------------------------------------* *& Report ZDEMO_EXCEL23 *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT zdemo_excel23. TYPE-POOLS: abap. DATA: lo_excel TYPE REF TO zcl_excel, lo_worksheet TYPE REF TO zcl_excel_worksheet, lo_hyperlink TYPE REF TO zcl_excel_hyperlink. CONSTANTS: gc_save_file_name TYPE string VALUE '23_Sheets_with_and_without_grid_lines.xlsx'. INCLUDE zdemo_excel_outputopt_incl. START-OF-SELECTION. " Creates active sheet CREATE OBJECT lo_excel. " Get active sheet lo_worksheet = lo_excel->get_active_worksheet( ). lo_worksheet->set_title( ip_title = 'Sheet1' ). lo_worksheet->set_cell( ip_column = 'B' ip_row = 2 ip_value = 'This is the first sheet with grid lines and print centered horizontal & vertical' ). lo_worksheet->set_show_gridlines( i_show_gridlines = abap_true ). lo_hyperlink = zcl_excel_hyperlink=>create_internal_link( iv_location = 'Sheet2!B2' ). lo_worksheet->set_cell( ip_column = 'B' ip_row = 3 ip_value = 'This is a link to the second sheet' ip_hyperlink = lo_hyperlink ). lo_worksheet->zif_excel_sheet_protection~protected = zif_excel_sheet_protection=>c_protected. lo_worksheet->zif_excel_sheet_properties~zoomscale = 150. lo_worksheet->ZIF_EXCEL_SHEET_PROPERTIES~ZOOMSCALE_NORMAL = 150. lo_worksheet->sheet_setup->vertical_centered = abap_true. lo_worksheet->sheet_setup->horizontal_centered = abap_true. " Second sheet lo_worksheet = lo_excel->add_new_worksheet( ). lo_worksheet->set_title( ip_title = 'Sheet2' ). lo_worksheet->set_cell( ip_column = 'B' ip_row = 2 ip_value = 'This is the second sheet with grid lines in display and print' ). lo_worksheet->set_show_gridlines( i_show_gridlines = abap_true ). lo_worksheet->set_print_gridlines( i_print_gridlines = abap_true ). lo_hyperlink = zcl_excel_hyperlink=>create_internal_link( iv_location = 'Sheet3!B2' ). lo_worksheet->set_cell( ip_column = 'B' ip_row = 3 ip_value = 'This is link to the third sheet' ip_hyperlink = lo_hyperlink ). lo_worksheet->zif_excel_sheet_protection~protected = zif_excel_sheet_protection=>c_protected. lo_worksheet->zif_excel_sheet_properties~zoomscale = 160. lo_worksheet->ZIF_EXCEL_SHEET_PROPERTIES~ZOOMSCALE_PAGELAYOUTVIEW = 200. " Third sheet lo_worksheet = lo_excel->add_new_worksheet( ). lo_worksheet->set_title( ip_title = 'Sheet3' ). lo_worksheet->set_cell( ip_column = 'B' ip_row = 2 ip_value = 'This is the third sheet without grid lines in display and print' ). lo_worksheet->set_show_gridlines( i_show_gridlines = abap_false ). lo_worksheet->set_print_gridlines( i_print_gridlines = abap_false ). lo_hyperlink = zcl_excel_hyperlink=>create_internal_link( iv_location = 'Sheet4!B2' ). lo_worksheet->set_cell( ip_column = 'B' ip_row = 3 ip_value = 'This is link to the fourth sheet' ip_hyperlink = lo_hyperlink ). lo_worksheet->zif_excel_sheet_protection~protected = zif_excel_sheet_protection=>c_protected. lo_worksheet->zif_excel_sheet_properties~zoomscale = 170. lo_worksheet->ZIF_EXCEL_SHEET_PROPERTIES~ZOOMSCALE_SHEETLAYOUTVIEW = 150. " Fourth sheet lo_worksheet = lo_excel->add_new_worksheet( ). lo_worksheet->set_title( ip_title = 'Sheet4' ). lo_worksheet->set_cell( ip_column = 'B' ip_row = 2 ip_value = 'This is the fourth sheet with grid lines and print centered ONLY horizontal' ). lo_worksheet->set_show_gridlines( i_show_gridlines = abap_true ). lo_hyperlink = zcl_excel_hyperlink=>create_internal_link( iv_location = 'Sheet1!B2' ). lo_worksheet->set_cell( ip_column = 'B' ip_row = 3 ip_value = 'This is link to the first sheet' ip_hyperlink = lo_hyperlink ). lo_worksheet->zif_excel_sheet_protection~protected = zif_excel_sheet_protection=>c_protected. lo_worksheet->zif_excel_sheet_properties~zoomscale = 150. lo_worksheet->ZIF_EXCEL_SHEET_PROPERTIES~ZOOMSCALE_NORMAL = 150. " lo_worksheet->sheet_setup->vertical_centered = abap_true. lo_worksheet->sheet_setup->horizontal_centered = abap_true. *** Create output lcl_output=>output( lo_excel ).
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 220, 1168, 39429, 46, 62, 6369, 34, 3698, 1954, 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, 220, 1976, 9536, 78, 62, 1069, 5276, 1954, 13, 198, 198, 25216, 12, 16402, 3535, 50, 25, 450, 499, 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, 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, 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, 628, 198, 10943, 2257, 1565, 4694, 25, 308, 66, 62, 21928, 62, 7753, 62, 3672, 41876, 4731, 26173, 8924, 705, 1954, 62, 3347, 1039, 62, 4480, 62, 392, 62, 19419, 62, 25928, 62, 6615, 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, 198, 220, 366, 7921, 274, 4075, 9629, 198, 220, 29244, 6158, 25334, 23680, 2376, 62, 1069, 5276, 13, 628, 220, 366, 3497, 4075, 9629, 198, 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, 7839, 7, 20966, 62, 7839, 796, 705, 3347, 316, 16, 6, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 3846, 7, 20966, 62, 28665, 796, 705, 33, 6, 20966, 62, 808, 796, 362, 20966, 62, 8367, 796, 705, 1212, 318, 262, 717, 9629, 351, 10706, 3951, 290, 3601, 19254, 16021, 1222, 11723, 6, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 12860, 62, 25928, 6615, 7, 1312, 62, 12860, 62, 25928, 6615, 796, 450, 499, 62, 7942, 6739, 628, 220, 2376, 62, 49229, 8726, 796, 1976, 565, 62, 1069, 5276, 62, 49229, 8726, 14804, 17953, 62, 32538, 62, 8726, 7, 21628, 62, 24886, 796, 705, 3347, 316, 17, 0, 33, 17, 6, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 3846, 7, 20966, 62, 28665, 796, 705, 33, 6, 20966, 62, 808, 796, 513, 20966, 62, 8367, 796, 705, 1212, 318, 257, 2792, 284, 262, 1218, 9629, 6, 20966, 62, 49229, 8726, 796, 2376, 62, 49229, 8726, 6739, 628, 220, 2376, 62, 5225, 25473, 3784, 89, 361, 62, 1069, 5276, 62, 21760, 62, 42846, 93, 24326, 220, 796, 1976, 361, 62, 1069, 5276, 62, 21760, 62, 42846, 14804, 66, 62, 24326, 13, 198, 220, 2376, 62, 5225, 25473, 3784, 89, 361, 62, 1069, 5276, 62, 21760, 62, 48310, 93, 89, 4207, 9888, 220, 220, 220, 220, 220, 220, 220, 796, 6640, 13, 198, 220, 2376, 62, 5225, 25473, 3784, 57, 5064, 62, 6369, 34, 3698, 62, 9693, 36, 2767, 62, 4805, 3185, 17395, 11015, 93, 57, 46, 2662, 6173, 21358, 62, 35510, 42126, 796, 6640, 13, 628, 220, 2376, 62, 5225, 25473, 3784, 21760, 62, 40406, 3784, 1851, 605, 62, 38050, 220, 220, 796, 450, 499, 62, 7942, 13, 198, 220, 2376, 62, 5225, 25473, 3784, 21760, 62, 40406, 3784, 17899, 38342, 62, 38050, 796, 450, 499, 62, 7942, 13, 628, 220, 366, 5498, 9629, 198, 220, 2376, 62, 5225, 25473, 796, 2376, 62, 1069, 5276, 3784, 2860, 62, 3605, 62, 5225, 25473, 7, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 7839, 7, 20966, 62, 7839, 796, 705, 3347, 316, 17, 6, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 3846, 7, 20966, 62, 28665, 796, 705, 33, 6, 20966, 62, 808, 796, 362, 20966, 62, 8367, 796, 705, 1212, 318, 262, 1218, 9629, 351, 10706, 3951, 287, 3359, 290, 3601, 6, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 12860, 62, 25928, 6615, 7, 220, 1312, 62, 12860, 62, 25928, 6615, 220, 796, 450, 499, 62, 7942, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 4798, 62, 25928, 6615, 7, 1312, 62, 4798, 62, 25928, 6615, 796, 450, 499, 62, 7942, 6739, 628, 220, 2376, 62, 49229, 8726, 796, 1976, 565, 62, 1069, 5276, 62, 49229, 8726, 14804, 17953, 62, 32538, 62, 8726, 7, 21628, 62, 24886, 796, 705, 3347, 316, 18, 0, 33, 17, 6, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 3846, 7, 20966, 62, 28665, 796, 705, 33, 6, 20966, 62, 808, 796, 513, 20966, 62, 8367, 796, 705, 1212, 318, 2792, 284, 262, 2368, 9629, 6, 20966, 62, 49229, 8726, 796, 2376, 62, 49229, 8726, 6739, 628, 220, 2376, 62, 5225, 25473, 3784, 89, 361, 62, 1069, 5276, 62, 21760, 62, 42846, 93, 24326, 220, 796, 1976, 361, 62, 1069, 5276, 62, 21760, 62, 42846, 14804, 66, 62, 24326, 13, 198, 220, 2376, 62, 5225, 25473, 3784, 89, 361, 62, 1069, 5276, 62, 21760, 62, 48310, 93, 89, 4207, 9888, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 13454, 13, 198, 220, 2376, 62, 5225, 25473, 3784, 57, 5064, 62, 6369, 34, 3698, 62, 9693, 36, 2767, 62, 4805, 3185, 17395, 11015, 93, 57, 46, 2662, 6173, 21358, 62, 4537, 38, 3698, 4792, 2606, 6849, 40, 6217, 796, 939, 13, 628, 220, 366, 10467, 9629, 198, 220, 2376, 62, 5225, 25473, 796, 2376, 62, 1069, 5276, 3784, 2860, 62, 3605, 62, 5225, 25473, 7, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 7839, 7, 20966, 62, 7839, 796, 705, 3347, 316, 18, 6, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 3846, 7, 20966, 62, 28665, 796, 705, 33, 6, 20966, 62, 808, 796, 362, 20966, 62, 8367, 796, 705, 1212, 318, 262, 2368, 9629, 1231, 10706, 3951, 287, 3359, 290, 3601, 6, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 12860 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS lcx_error DEFINITION FINAL INHERITING FROM cx_no_check. PUBLIC SECTION. INTERFACES if_t100_message. CONSTANTS: BEGIN OF c_error_signature, msgid TYPE symsgid VALUE 'SY', msgno TYPE symsgno VALUE '002', " & attr1 TYPE scx_attrname VALUE 'MSG', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF c_error_signature. DATA msg TYPE string READ-ONLY. CLASS-METHODS raise IMPORTING iv_msg TYPE string. PRIVATE SECTION. ENDCLASS. CLASS lcx_error IMPLEMENTATION. METHOD raise. DATA lx_e TYPE REF TO lcx_error. CREATE OBJECT lx_e. lx_e->msg = iv_msg. lx_e->if_t100_message~t100key = c_error_signature. RAISE EXCEPTION lx_e. ENDMETHOD. ENDCLASS.
[ 31631, 300, 66, 87, 62, 18224, 5550, 20032, 17941, 25261, 3268, 16879, 2043, 2751, 16034, 43213, 62, 3919, 62, 9122, 13, 198, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 611, 62, 83, 3064, 62, 20500, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 18224, 62, 12683, 1300, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 705, 23060, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 21601, 3256, 366, 1222, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 5653, 38, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 17, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 18, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 19, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 18224, 62, 12683, 1300, 13, 198, 220, 220, 220, 42865, 31456, 41876, 4731, 20832, 12, 1340, 11319, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 5298, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 19662, 41876, 4731, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 66, 87, 62, 18224, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 5298, 13, 198, 220, 220, 220, 42865, 300, 87, 62, 68, 41876, 4526, 37, 5390, 300, 66, 87, 62, 18224, 13, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 300, 87, 62, 68, 13, 198, 220, 220, 220, 300, 87, 62, 68, 3784, 19662, 796, 21628, 62, 19662, 13, 198, 220, 220, 220, 300, 87, 62, 68, 3784, 361, 62, 83, 3064, 62, 20500, 93, 83, 3064, 2539, 796, 269, 62, 18224, 62, 12683, 1300, 13, 198, 220, 220, 220, 17926, 24352, 7788, 42006, 2849, 300, 87, 62, 68, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_deps_cache DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. METHODS constructor IMPORTING !iv_cache TYPE abap_bool DEFAULT abap_false. CLASS-METHODS get_instance IMPORTING !iv_cache TYPE abap_bool DEFAULT abap_false RETURNING VALUE(ro_cache) TYPE REF TO zcl_abaplint_deps_cache . METHODS clear . METHODS save . METHODS read_deps IMPORTING !is_item TYPE zif_abapgit_definitions=>ty_item !iv_minimal TYPE abap_bool EXPORTING !et_tadir TYPE zcl_abaplint_deps_find=>ty_tadir_tt !ev_found TYPE abap_bool . METHODS write_deps IMPORTING !is_item TYPE zif_abapgit_definitions=>ty_item !iv_minimal TYPE abap_bool !it_tadir TYPE zcl_abaplint_deps_find=>ty_tadir_tt !iv_package TYPE devclass . METHODS reset_deps . METHODS read_files IMPORTING !is_item TYPE zif_abapgit_definitions=>ty_item EXPORTING !es_files TYPE zcl_abapgit_objects=>ty_serialization !ev_found TYPE abap_bool . METHODS write_files IMPORTING !is_item TYPE zif_abapgit_definitions=>ty_item !is_files TYPE zcl_abapgit_objects=>ty_serialization !iv_package TYPE devclass . METHODS reset_files . PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_deps, item TYPE zif_abapgit_definitions=>ty_item, minimal TYPE abap_bool, tadir TYPE zcl_abaplint_deps_find=>ty_tadir_tt, package TYPE devclass, END OF ty_deps . TYPES: BEGIN OF ty_files, item TYPE zif_abapgit_definitions=>ty_item, files TYPE zcl_abapgit_objects=>ty_serialization, package TYPE devclass, END OF ty_files . CLASS-DATA go_cache TYPE REF TO zcl_abaplint_deps_cache . DATA: mt_deps TYPE HASHED TABLE OF ty_deps WITH UNIQUE KEY item minimal . DATA: mt_files TYPE HASHED TABLE OF ty_files WITH UNIQUE KEY item . DATA mv_memory TYPE abap_bool . DATA mv_disk TYPE abap_bool . METHODS load_deps IMPORTING !is_item TYPE zif_abapgit_definitions=>ty_item !iv_minimal TYPE abap_bool EXPORTING !es_deps TYPE ty_deps VALUE(ev_found) TYPE abap_bool . METHODS load_files IMPORTING !is_item TYPE zif_abapgit_definitions=>ty_item EXPORTING !es_files TYPE ty_files !ev_found TYPE abap_bool . METHODS check_timestamp IMPORTING !iv_timestamp TYPE timestamp !is_item TYPE zif_abapgit_definitions=>ty_item RETURNING VALUE(rv_result) TYPE abap_bool . ENDCLASS. CLASS ZCL_ABAPLINT_DEPS_CACHE IMPLEMENTATION. METHOD check_timestamp. CONSTANTS: lc_minute_in_sec TYPE i VALUE 60, lc_day_in_sec TYPE i VALUE 86400. DATA: lv_timestamp TYPE timestamp, lv_seconds TYPE i, lv_name_class TYPE c LENGTH 1. TRY. GET TIME STAMP FIELD lv_timestamp. lv_seconds = cl_abap_tstmp=>subtract( tstmp1 = lv_timestamp tstmp2 = iv_timestamp ). CATCH cx_parameter_invalid_range. RETURN. ENDTRY. CALL FUNCTION 'TR_CHECK_NAME_CLASS' EXPORTING wi_pgmid = 'R3TR' wi_object = is_item-obj_type wi_objname = is_item-obj_name IMPORTING we_name_class = lv_name_class EXCEPTIONS namespace_not_existing = 1 invalid_object = 2 OTHERS = 3. IF sy-subrc <> 0. RETURN. ENDIF. CASE lv_name_class. WHEN 'C'. " customer IF lv_seconds < 10 * lc_minute_in_sec. rv_result = abap_true. ENDIF. WHEN 'S'. " sap IF lv_seconds < 10 * lc_day_in_sec. rv_result = abap_true. ENDIF. WHEN 'N'. " namespace IF lv_seconds < 10 * lc_minute_in_sec. rv_result = abap_true. ENDIF. WHEN OTHERS. IF lv_seconds < 10 * lc_minute_in_sec. rv_result = abap_true. ENDIF. ENDCASE. ENDMETHOD. METHOD clear. DELETE FROM zabaplint_cache1 WHERE obj_type <> ''. DELETE FROM zabaplint_cache2 WHERE obj_type <> ''. ENDMETHOD. METHOD constructor. IF iv_cache = abap_true. mv_memory = abap_true. mv_disk = abap_true. ENDIF. ENDMETHOD. METHOD get_instance. IF NOT go_cache IS BOUND. CREATE OBJECT go_cache EXPORTING iv_cache = iv_cache. ENDIF. ro_cache = go_cache. ENDMETHOD. METHOD load_deps. DATA: lt_cache1 TYPE TABLE OF zabaplint_cache1, ls_tadir TYPE zcl_abaplint_deps_find=>ty_tadir. FIELD-SYMBOLS: <ls_cache1> TYPE zabaplint_cache1. IF mv_disk = abap_false. RETURN. ENDIF. CLEAR: es_deps, ev_found. SELECT * FROM zabaplint_cache1 INTO TABLE lt_cache1 WHERE obj_type = is_item-obj_type AND obj_name = is_item-obj_name AND minimal = iv_minimal ORDER BY PRIMARY KEY. IF sy-subrc = 0. " Check if cache entry is still valid READ TABLE lt_cache1 ASSIGNING <ls_cache1> INDEX 1. IF check_timestamp( iv_timestamp = <ls_cache1>-timestamp is_item = is_item ) = abap_false. RETURN. ENDIF. " Build memory cache from persisted data LOOP AT lt_cache1 ASSIGNING <ls_cache1>. AT NEW obj_name. CLEAR es_deps. es_deps-item-obj_type = <ls_cache1>-obj_type. es_deps-item-obj_name = <ls_cache1>-obj_name. es_deps-minimal = <ls_cache1>-minimal. es_deps-package = <ls_cache1>-obj_pack. ENDAT. ls_tadir-ref_obj_type = <ls_cache1>-ref_obj_type. ls_tadir-ref_obj_name = <ls_cache1>-ref_obj_name. ls_tadir-devclass = <ls_cache1>-devclass. INSERT ls_tadir INTO TABLE es_deps-tadir. AT END OF obj_name. INSERT es_deps INTO TABLE mt_deps. ENDAT. ENDLOOP. ev_found = abap_true. ENDIF. ENDMETHOD. METHOD load_files. DATA: lt_cache2 TYPE TABLE OF zabaplint_cache2, ls_file TYPE zif_abapgit_definitions=>ty_file. FIELD-SYMBOLS: <ls_cache2> TYPE zabaplint_cache2. IF mv_disk = abap_false. RETURN. ENDIF. CLEAR: es_files, ev_found. SELECT * FROM zabaplint_cache2 INTO TABLE lt_cache2 WHERE obj_type = is_item-obj_type AND obj_name = is_item-obj_name. IF sy-subrc = 0. " Check if cache entry is still valid READ TABLE lt_cache2 ASSIGNING <ls_cache2> INDEX 1. IF check_timestamp( iv_timestamp = <ls_cache2>-timestamp is_item = is_item ) = abap_false. RETURN. ENDIF. " Build memory cache from persisted data LOOP AT lt_cache2 ASSIGNING <ls_cache2>. AT NEW obj_name. CLEAR es_files. es_files-item-obj_type = <ls_cache2>-obj_type. es_files-item-obj_name = <ls_cache2>-obj_name. es_files-package = <ls_cache2>-obj_pack. ENDAT. es_files-files-item-obj_type = <ls_cache2>-item_type. es_files-files-item-obj_name = <ls_cache2>-item_name. CLEAR ls_file. ls_file-path = <ls_cache2>-path. ls_file-filename = <ls_cache2>-filename. ls_file-sha1 = <ls_cache2>-sha1. ls_file-data = <ls_cache2>-content. INSERT ls_file INTO TABLE es_files-files-files. AT END OF obj_name. INSERT es_files INTO TABLE mt_files. ENDAT. ENDLOOP. ev_found = abap_true. ENDIF. ENDMETHOD. METHOD read_deps. DATA ls_deps LIKE LINE OF mt_deps. IF mv_memory = abap_false AND mv_disk = abap_false. RETURN. ENDIF. CLEAR: et_tadir, ev_found. READ TABLE mt_deps INTO ls_deps WITH TABLE KEY item = is_item minimal = iv_minimal. IF sy-subrc <> 0 AND mv_disk = abap_true. load_deps( EXPORTING is_item = is_item iv_minimal = iv_minimal IMPORTING es_deps = ls_deps ev_found = ev_found ). IF ev_found = abap_false. RETURN. ENDIF. ENDIF. et_tadir = ls_deps-tadir. ev_found = abap_true. ENDMETHOD. METHOD read_files. DATA ls_files LIKE LINE OF mt_files. IF mv_memory = abap_false AND mv_disk = abap_false. RETURN. ENDIF. CLEAR: es_files, ev_found. READ TABLE mt_files INTO ls_files WITH TABLE KEY item = is_item. IF sy-subrc <> 0 AND mv_disk = abap_true. load_files( EXPORTING is_item = is_item IMPORTING es_files = ls_files ev_found = ev_found ). IF ev_found = abap_false. RETURN. ENDIF. ENDIF. es_files = ls_files-files. ev_found = abap_true. ENDMETHOD. METHOD reset_deps. CLEAR mt_deps. ENDMETHOD. METHOD reset_files. CLEAR mt_files. ENDMETHOD. METHOD save. DATA: lv_tabix TYPE i, lv_timestamp TYPE timestamp, lt_cache1 TYPE TABLE OF zabaplint_cache1, lt_cache2 TYPE TABLE OF zabaplint_cache2. FIELD-SYMBOLS: <ls_deps> TYPE ty_deps, <ls_tadir> TYPE zcl_abaplint_deps_find=>ty_tadir, <ls_files> TYPE ty_files, <ls_file> TYPE zif_abapgit_definitions=>ty_file, <ls_cache1> TYPE zabaplint_cache1, <ls_cache2> TYPE zabaplint_cache2. IF mv_disk = abap_false. RETURN. ENDIF. GET TIME STAMP FIELD lv_timestamp. " Save dependencies to persistency LOOP AT mt_deps ASSIGNING <ls_deps>. CLEAR lv_tabix. LOOP AT <ls_deps>-tadir ASSIGNING <ls_tadir>. APPEND INITIAL LINE TO lt_cache1 ASSIGNING <ls_cache1>. <ls_cache1>-idx = lv_tabix. <ls_cache1>-timestamp = lv_timestamp. <ls_cache1>-obj_type = <ls_deps>-item-obj_type. <ls_cache1>-obj_name = <ls_deps>-item-obj_name. <ls_cache1>-obj_pack = <ls_deps>-package. <ls_cache1>-minimal = <ls_deps>-minimal. <ls_cache1>-ref_obj_type = <ls_tadir>-ref_obj_type. <ls_cache1>-ref_obj_name = <ls_tadir>-ref_obj_name. <ls_cache1>-devclass = <ls_tadir>-devclass. lv_tabix = lv_tabix + 1. ENDLOOP. ENDLOOP. " Save serialized files to persistency LOOP AT mt_files ASSIGNING <ls_files>. CLEAR lv_tabix. LOOP AT <ls_files>-files-files ASSIGNING <ls_file>. APPEND INITIAL LINE TO lt_cache2 ASSIGNING <ls_cache2>. <ls_cache2>-idx = lv_tabix. <ls_cache2>-timestamp = lv_timestamp. <ls_cache2>-obj_type = <ls_files>-item-obj_type. <ls_cache2>-obj_name = <ls_files>-item-obj_name. <ls_cache1>-obj_pack = <ls_files>-package. <ls_cache2>-path = <ls_file>-path. <ls_cache2>-filename = <ls_file>-filename. <ls_cache2>-sha1 = <ls_file>-sha1. <ls_cache2>-len = xstrlen( <ls_file>-data ). <ls_cache2>-content = <ls_file>-data. <ls_cache2>-item_type = <ls_files>-files-item-obj_type. <ls_cache2>-item_name = <ls_files>-files-item-obj_name. lv_tabix = lv_tabix + 1. ENDLOOP. ENDLOOP. LOOP AT lt_cache1 ASSIGNING <ls_cache1>. INSERT zabaplint_cache1 FROM <ls_cache1>. IF sy-subrc <> 0. UPDATE zabaplint_cache1 FROM <ls_cache1>. ENDIF. ENDLOOP. LOOP AT lt_cache2 ASSIGNING <ls_cache2>. INSERT zabaplint_cache2 FROM <ls_cache2>. IF sy-subrc <> 0. UPDATE zabaplint_cache2 FROM <ls_cache2>. ENDIF. ENDLOOP. COMMIT WORK. ENDMETHOD. METHOD write_deps. DATA ls_deps LIKE LINE OF mt_deps. IF mv_memory = abap_false AND mv_disk = abap_false. RETURN. ENDIF. READ TABLE mt_deps TRANSPORTING NO FIELDS WITH TABLE KEY item = is_item minimal = iv_minimal. IF sy-subrc <> 0. ls_deps-item = is_item. ls_deps-minimal = iv_minimal. ls_deps-tadir = it_tadir. ls_deps-package = iv_package. INSERT ls_deps INTO TABLE mt_deps. ENDIF. ENDMETHOD. METHOD write_files. DATA ls_files LIKE LINE OF mt_files. IF mv_memory = abap_false AND mv_disk = abap_false. RETURN. ENDIF. READ TABLE mt_files TRANSPORTING NO FIELDS WITH TABLE KEY item = is_item. IF sy-subrc <> 0. ls_files-item = is_item. ls_files-files = is_files. ls_files-package = iv_package. INSERT ls_files INTO TABLE mt_files. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 15498, 489, 600, 62, 10378, 82, 62, 23870, 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, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 23870, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 13, 198, 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, 23870, 220, 220, 220, 220, 220, 220, 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, 305, 62, 23870, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 15498, 489, 600, 62, 10378, 82, 62, 23870, 764, 198, 220, 220, 220, 337, 36252, 50, 1598, 764, 198, 220, 220, 220, 337, 36252, 50, 3613, 764, 198, 220, 220, 220, 337, 36252, 50, 1100, 62, 10378, 82, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 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, 5145, 452, 62, 1084, 4402, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 316, 62, 83, 324, 343, 220, 220, 41876, 1976, 565, 62, 15498, 489, 600, 62, 10378, 82, 62, 19796, 14804, 774, 62, 83, 324, 343, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 1990, 62, 9275, 220, 220, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 3551, 62, 10378, 82, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 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, 5145, 452, 62, 1084, 4402, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 83, 324, 343, 220, 220, 41876, 1976, 565, 62, 15498, 489, 600, 62, 10378, 82, 62, 19796, 14804, 774, 62, 83, 324, 343, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26495, 41876, 1614, 4871, 764, 198, 220, 220, 220, 337, 36252, 50, 13259, 62, 10378, 82, 764, 198, 220, 220, 220, 337, 36252, 50, 1100, 62, 16624, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 9186, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 274, 62, 16624, 41876, 1976, 565, 62, 397, 499, 18300, 62, 48205, 14804, 774, 62, 46911, 1634, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 1990, 62, 9275, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 3551, 62, 16624, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 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, 5145, 271, 62, 16624, 220, 220, 41876, 1976, 565, 62, 397, 499, 18300, 62, 48205, 14804, 774, 62, 46911, 1634, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26495, 41876, 1614, 4871, 764, 198, 220, 220, 220, 337, 36252, 50, 13259, 62, 16624, 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, 10378, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2378, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10926, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 36264, 343, 220, 220, 41876, 1976, 565, 62, 15498, 489, 600, 62, 10378, 82, 62, 19796, 14804, 774, 62, 83, 324, 343, 62, 926, 11, 198, 220, 220, 220, 220, 220, 220, 220, 5301, 41876, 1614, 4871, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 10378, 82, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 16624, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2378, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3696, 220, 220, 41876, 1976, 565, 62, 397, 499, 18300, 62, 48205, 14804, 774, 62, 46911, 1634, 11, 198, 220, 220, 220, 220, 220, 220, 220, 5301, 41876, 1614, 4871, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 16624, 764, 628, 220, 220, 220, 42715, 12, 26947, 467, 62, 23870, 41876, 4526, 37, 5390, 1976, 565, 62, 15498, 489, 600, 62, 10378, 82, 62, 23870, 764, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 45079, 62, 10378, 82, 41876, 367, 11211, 1961, 43679, 3963, 1259, 62, 10378, 82, 13315, 4725, 33866, 8924, 35374, 2378, 10926, 764, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 45079, 62, 16624, 41876, 367, 11211, 1961, 43679, 3963, 1259, 62, 16624, 13315, 4725, 33866, 8924, 35374, 2378, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 31673, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 39531, 41876, 450, 499, 62, 30388, 764, 628, 220, 220, 220, 337, 36252, 50, 3440, 62, 10378, 82, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 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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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. 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_abapgit_object_ssfo 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. TYPES: ty_string_range TYPE RANGE OF string. CLASS-DATA: gt_range_node_codes TYPE ty_string_range. CONSTANTS: attrib_abapgit_leadig_spaces TYPE string VALUE 'abapgit-leadig-spaces' ##NO_TEXT. METHODS fix_ids IMPORTING ii_xml_doc TYPE REF TO if_ixml_document. METHODS set_attribute_leading_spaces IMPORTING iv_name TYPE string ii_node TYPE REF TO if_ixml_node CHANGING cv_within_code_section TYPE abap_bool. METHODS handle_attrib_leading_spaces IMPORTING iv_name TYPE string ii_node TYPE REF TO if_ixml_node CHANGING cv_within_code_section TYPE abap_bool. METHODS get_range_node_codes RETURNING VALUE(rt_range_node_codes) TYPE ty_string_range. METHODS code_item_section_handling IMPORTING iv_name TYPE string ii_node TYPE REF TO if_ixml_node EXPORTING ei_code_item_element TYPE REF TO if_ixml_element CHANGING cv_within_code_section TYPE abap_bool RAISING zcx_abapgit_exception. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_SSFO IMPLEMENTATION. METHOD code_item_section_handling. CONSTANTS: lc_node_item TYPE string VALUE 'item' ##NO_TEXT. CONSTANTS: lc_node_text TYPE string VALUE '#text' ##NO_TEXT. IF iv_name IN get_range_node_codes( ). cv_within_code_section = abap_true. ENDIF. IF cv_within_code_section = abap_true. IF iv_name = lc_node_item. TRY. ei_code_item_element ?= ii_node. RETURN. CATCH cx_sy_move_cast_error ##no_handler. ENDTRY. ELSEIF iv_name NOT IN get_range_node_codes( ) AND iv_name <> lc_node_text. cv_within_code_section = abap_false. ENDIF. ENDIF. RAISE EXCEPTION TYPE zcx_abapgit_exception. ENDMETHOD. METHOD fix_ids. " makes sure ID and IDREF values are the same values for each serialization run " the standard code has a counter that keeps increasing values. " " It is important that IDs and IDREFs which are the same before the fix " are also the same after the fix. TYPES: BEGIN OF ty_id_mapping, old TYPE string, new TYPE string, END OF ty_id_mapping, tty_id_mapping TYPE HASHED TABLE OF ty_id_mapping WITH UNIQUE KEY old. DATA: lv_name TYPE string, li_idref TYPE REF TO if_ixml_node, li_node TYPE REF TO if_ixml_node, li_attr TYPE REF TO if_ixml_named_node_map, li_iterator TYPE REF TO if_ixml_node_iterator, lt_id_mapping TYPE tty_id_mapping, ls_id_mapping LIKE LINE OF lt_id_mapping. li_iterator = ii_xml_doc->create_iterator( ). li_node = li_iterator->get_next( ). WHILE NOT li_node IS INITIAL. lv_name = li_node->get_name( ). IF lv_name = 'NODE' OR lv_name = 'WINDOW'. li_idref = li_node->get_attributes( )->get_named_item( 'IDREF' ). IF li_idref IS BOUND. ls_id_mapping-old = li_idref->get_value( ). READ TABLE lt_id_mapping WITH KEY old = ls_id_mapping-old INTO ls_id_mapping. IF sy-subrc <> 0. lv_name = lines( lt_id_mapping ) + 1. ls_id_mapping-new = condense( lv_name ). INSERT ls_id_mapping INTO TABLE lt_id_mapping. ENDIF. li_idref->set_value( |{ ls_id_mapping-new }| ). ENDIF. ENDIF. li_node = li_iterator->get_next( ). ENDWHILE. li_iterator = ii_xml_doc->create_iterator( ). li_node = li_iterator->get_next( ). WHILE NOT li_node IS INITIAL. lv_name = li_node->get_name( ). IF lv_name = 'NODE' OR lv_name = 'WINDOW'. li_idref = li_node->get_attributes( )->get_named_item( 'ID' ). IF li_idref IS BOUND. ls_id_mapping-old = li_idref->get_value( ). READ TABLE lt_id_mapping WITH KEY old = ls_id_mapping-old INTO ls_id_mapping. IF sy-subrc = 0. li_idref->set_value( |{ ls_id_mapping-new }| ). ELSE. li_attr = li_node->get_attributes( ). li_attr->remove_named_item( 'ID' ). ENDIF. ENDIF. ENDIF. li_node = li_iterator->get_next( ). ENDWHILE. ENDMETHOD. METHOD get_range_node_codes. DATA: ls_range_node_code TYPE LINE OF ty_string_range. IF me->gt_range_node_codes IS INITIAL. ls_range_node_code-sign = 'I'. ls_range_node_code-option = 'EQ'. ls_range_node_code-low = 'CODE'. INSERT ls_range_node_code INTO TABLE me->gt_range_node_codes. ls_range_node_code-low = 'GTYPES'. INSERT ls_range_node_code INTO TABLE me->gt_range_node_codes. ls_range_node_code-low = 'GCODING'. INSERT ls_range_node_code INTO TABLE me->gt_range_node_codes. ls_range_node_code-low = 'FCODING'. INSERT ls_range_node_code INTO TABLE me->gt_range_node_codes. ENDIF. rt_range_node_codes = me->gt_range_node_codes. ENDMETHOD. METHOD handle_attrib_leading_spaces. DATA li_element TYPE REF TO if_ixml_element. DATA lv_leading_spaces TYPE string. DATA lv_coding_line TYPE string. TRY. code_item_section_handling( EXPORTING iv_name = iv_name ii_node = ii_node IMPORTING ei_code_item_element = li_element CHANGING cv_within_code_section = cv_within_code_section ). * for downwards compatibility, this code can be removed sometime in the future lv_leading_spaces = li_element->get_attribute_ns( name = attrib_abapgit_leadig_spaces ). lv_coding_line = li_element->get_value( ). IF strlen( lv_coding_line ) >= 1 AND lv_coding_line(1) <> | |. SHIFT lv_coding_line RIGHT BY lv_leading_spaces PLACES. li_element->set_value( lv_coding_line ). ENDIF. CATCH zcx_abapgit_exception ##no_handler. ENDTRY. ENDMETHOD. METHOD set_attribute_leading_spaces. RETURN. ENDMETHOD. METHOD zif_abapgit_object~changed_by. SELECT SINGLE lastuser FROM stxfadm INTO rv_user WHERE formname = ms_item-obj_name. IF sy-subrc <> 0. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_formname TYPE tdsfname. lv_formname = ms_item-obj_name. CALL FUNCTION 'FB_DELETE_FORM' EXPORTING i_formname = lv_formname i_with_dialog = abap_false i_with_confirm_dialog = abap_false EXCEPTIONS no_form = 1 OTHERS = 2. IF sy-subrc <> 0 AND sy-subrc <> 1. zcx_abapgit_exception=>raise( 'Error from FB_DELETE_FORM' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~deserialize. * see function module FB_UPLOAD_FORM DATA: li_node TYPE REF TO if_ixml_node, lv_formname TYPE tdsfname, lv_name TYPE string, li_iterator TYPE REF TO if_ixml_node_iterator, lo_sf TYPE REF TO cl_ssf_fb_smart_form, lo_res TYPE REF TO cl_ssf_fb_smart_form, lx_error TYPE REF TO cx_ssf_fb, lv_text TYPE string, lv_within_code_section TYPE abap_bool. CREATE OBJECT lo_sf. * set "created by" and "changed by" to current user li_iterator = io_xml->get_raw( )->get_root_element( )->create_iterator( ). li_node = li_iterator->get_next( ). WHILE NOT li_node IS INITIAL. lv_name = li_node->get_name( ). CASE lv_name. WHEN 'LASTDATE'. li_node->set_value( sy-datum(4) && '-' && sy-datum+4(2) && '-' && sy-datum+6(2) ). WHEN 'LASTTIME'. li_node->set_value( sy-uzeit(2) && ':' && sy-uzeit+2(2) && ':' && sy-uzeit+4(2) ). WHEN 'FIRSTUSER' OR 'LASTUSER'. li_node->set_value( sy-uname && '' ). ENDCASE. handle_attrib_leading_spaces( EXPORTING iv_name = lv_name ii_node = li_node CHANGING cv_within_code_section = lv_within_code_section ). li_node = li_iterator->get_next( ). ENDWHILE. tadir_insert( iv_package ). lv_formname = ms_item-obj_name. TRY. lo_sf->enqueue( suppress_corr_check = space master_language = mv_language mode = 'INSERT' formname = lv_formname ). lo_sf->xml_upload( EXPORTING dom = io_xml->get_raw( )->get_root_element( ) formname = lv_formname language = mv_language CHANGING sform = lo_res ). lo_res->store( im_formname = lo_res->header-formname im_language = mv_language im_active = abap_true ). lo_sf->dequeue( lv_formname ). CATCH cx_ssf_fb INTO lx_error. lv_text = lx_error->get_text( ). zcx_abapgit_exception=>raise( |{ ms_item-obj_type } { ms_item-obj_name }: { lv_text } | ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_formname TYPE stxfadm-formname. SELECT SINGLE formname FROM stxfadm INTO lv_formname WHERE formname = 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-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. DATA: lv_ssfo_formname TYPE tdsfname. lv_ssfo_formname = ms_item-obj_name. CALL FUNCTION 'SSF_STATUS_INFO' EXPORTING i_formname = lv_ssfo_formname IMPORTING o_inactive = ms_item-inactive. rv_active = boolc( ms_item-inactive = abap_false ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'E_SMFORM' iv_argument = |{ ms_item-obj_name }| ). ENDMETHOD. METHOD zif_abapgit_object~jump. DATA: lt_bdcdata TYPE TABLE OF bdcdata, lv_formtype TYPE stxfadm-formtype. FIELD-SYMBOLS: <ls_bdcdata> LIKE LINE OF lt_bdcdata. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-program = 'SAPMSSFO'. <ls_bdcdata>-dynpro = '0100'. <ls_bdcdata>-dynbegin = abap_true. SELECT SINGLE formtype FROM stxfadm INTO lv_formtype WHERE formname = ms_item-obj_name. IF lv_formtype = cssf_formtype_text. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-fnam = 'RB_TX'. <ls_bdcdata>-fval = abap_true. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-fnam = 'BDC_OKCODE'. <ls_bdcdata>-fval = '=RB'. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-program = 'SAPMSSFO'. <ls_bdcdata>-dynpro = '0100'. <ls_bdcdata>-dynbegin = abap_true. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-fnam = 'SSFSCREEN-TNAME'. <ls_bdcdata>-fval = ms_item-obj_name. ELSE. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-fnam = 'SSFSCREEN-FNAME'. <ls_bdcdata>-fval = ms_item-obj_name. ENDIF. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-fnam = 'BDC_OKCODE'. <ls_bdcdata>-fval = '=DISPLAY'. CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'GIT' EXPORTING tcode = 'SMARTFORMS' mode_val = 'E' TABLES using_tab = lt_bdcdata EXCEPTIONS OTHERS = 1 ##fm_subrc_ok. "#EC CI_SUBRC ENDMETHOD. METHOD zif_abapgit_object~serialize. * see function module FB_DOWNLOAD_FORM DATA: lo_sf TYPE REF TO cl_ssf_fb_smart_form, lv_name TYPE string, li_node TYPE REF TO if_ixml_node, li_element TYPE REF TO if_ixml_element, li_iterator TYPE REF TO if_ixml_node_iterator, lv_formname TYPE tdsfname, li_ixml TYPE REF TO if_ixml, li_xml_doc TYPE REF TO if_ixml_document, lv_within_code_section TYPE abap_bool. li_ixml = cl_ixml=>create( ). li_xml_doc = li_ixml->create_document( ). CREATE OBJECT lo_sf. lv_formname = ms_item-obj_name. " convert type TRY. lo_sf->load( im_formname = lv_formname im_language = '' ). CATCH cx_ssf_fb. * the smartform is not present in system, or other error occured RETURN. ENDTRY. lo_sf->xml_download( EXPORTING parent = li_xml_doc CHANGING document = li_xml_doc ). li_iterator = li_xml_doc->create_iterator( ). li_node = li_iterator->get_next( ). WHILE NOT li_node IS INITIAL. lv_name = li_node->get_name( ). IF lv_name = 'DEVCLASS' OR lv_name = 'LASTDATE' OR lv_name = 'LASTTIME'. li_node->set_value( '' ). ENDIF. IF lv_name = 'FIRSTUSER' OR lv_name = 'LASTUSER'. li_node->set_value( 'DUMMY' ). ENDIF. set_attribute_leading_spaces( EXPORTING iv_name = lv_name ii_node = li_node CHANGING cv_within_code_section = lv_within_code_section ). li_node = li_iterator->get_next( ). ENDWHILE. fix_ids( li_xml_doc ). li_element = li_xml_doc->get_root_element( ). li_element->set_attribute( name = 'sf' namespace = 'xmlns' value = 'urn:sap-com:SmartForms:2000:internal-structure' ). "#EC NOTEXT li_element->set_attribute( name = 'xmlns' value = 'urn:sap-com:sdixml-ifr:2000' ). "#EC NOTEXT io_xml->set_raw( li_xml_doc->get_root_element( ) ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 824, 6513, 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, 220, 220, 220, 24412, 47, 1546, 25, 1259, 62, 8841, 62, 9521, 41876, 371, 27746, 3963, 4731, 13, 628, 220, 220, 220, 42715, 12, 26947, 25, 308, 83, 62, 9521, 62, 17440, 62, 40148, 41876, 1259, 62, 8841, 62, 9521, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 708, 822, 62, 397, 499, 18300, 62, 28230, 328, 62, 2777, 2114, 41876, 4731, 26173, 8924, 705, 397, 499, 18300, 12, 28230, 328, 12, 2777, 2114, 6, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 337, 36252, 50, 4259, 62, 2340, 30023, 9863, 2751, 21065, 62, 19875, 62, 15390, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 22897, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 42348, 62, 12294, 62, 2777, 2114, 30023, 9863, 2751, 21628, 62, 3672, 220, 220, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 17440, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 17440, 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, 5870, 15567, 2751, 220, 269, 85, 62, 33479, 62, 8189, 62, 5458, 41876, 450, 499, 62, 30388, 13, 198, 220, 220, 220, 337, 36252, 50, 5412, 62, 1078, 822, 62, 12294, 62, 2777, 2114, 30023, 9863, 2751, 21628, 62, 3672, 220, 220, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 17440, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 17440, 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, 5870, 15567, 2751, 220, 269, 85, 62, 33479, 62, 8189, 62, 5458, 41876, 450, 499, 62, 30388, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 9521, 62, 17440, 62, 40148, 30826, 4261, 15871, 26173, 8924, 7, 17034, 62, 9521, 62, 17440, 62, 40148, 8, 41876, 1259, 62, 8841, 62, 9521, 13, 198, 220, 220, 220, 337, 36252, 50, 2438, 62, 9186, 62, 5458, 62, 4993, 1359, 30023, 9863, 2751, 21628, 62, 3672, 220, 220, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 17440, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 17440, 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, 7788, 15490, 2751, 304, 72, 62, 8189, 62, 9186, 62, 30854, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 30854, 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, 5870, 15567, 2751, 220, 269, 85, 62, 33479, 62, 8189, 62, 5458, 41876, 450, 499, 62, 30388, 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, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 5432, 6080, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 2438, 62, 9186, 62, 5458, 62, 4993, 1359, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 300, 66, 62, 17440, 62, 9186, 41876, 4731, 26173, 8924, 705, 9186, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 300, 66, 62, 17440, 62, 5239, 41876, 4731, 26173, 8924, 705, 2, 5239, 6, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 16876, 21628, 62, 3672, 3268, 651, 62, 9521, 62, 17440, 62, 40148, 7, 6739, 198, 220, 220, 220, 220, 220, 269, 85, 62, 33479, 62, 8189, 62, 5458, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 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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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 ]
class zcx_aps_unknown_executable definition public inheriting from cx_static_check final create public. public section. interfaces: if_t100_dyn_msg, if_t100_message. constants: begin of zcx_aps_unknown_executable, msgid type symsgid value 'ZAPS_PARAMETER', msgno type symsgno value '002', attr1 type scx_attrname value 'EXECUTABLENAME', attr2 type scx_attrname value '', attr3 type scx_attrname value '', attr4 type scx_attrname value '', end of zcx_aps_unknown_executable. methods: constructor importing i_textid type scx_t100key default zcx_aps_unknown_executable i_previous type ref to cx_root optional i_executableName type zaps_executable_name. protected section. private section. data: executableName type zaps_executable_name. endclass. class zcx_aps_unknown_executable implementation. method constructor ##ADT_SUPPRESS_GENERATION. super->constructor( previous = i_previous ). clear textid. if_t100_message~t100key = i_textid. executableName = i_executableName. endmethod. endclass.
[ 4871, 1976, 66, 87, 62, 1686, 62, 34680, 62, 18558, 18187, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 43213, 62, 12708, 62, 9122, 198, 220, 2457, 198, 220, 2251, 1171, 13, 628, 220, 1171, 2665, 13, 628, 220, 220, 220, 20314, 25, 198, 220, 220, 220, 220, 220, 611, 62, 83, 3064, 62, 67, 2047, 62, 19662, 11, 198, 220, 220, 220, 220, 220, 611, 62, 83, 3064, 62, 20500, 13, 628, 220, 220, 220, 38491, 25, 198, 220, 220, 220, 220, 220, 2221, 286, 1976, 66, 87, 62, 1686, 62, 34680, 62, 18558, 18187, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 2099, 827, 19662, 312, 1988, 705, 57, 44580, 62, 27082, 2390, 2767, 1137, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 2099, 827, 19662, 3919, 1988, 705, 21601, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 2099, 629, 87, 62, 35226, 3672, 1988, 705, 6369, 2943, 3843, 6242, 43, 1677, 10067, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 17, 2099, 629, 87, 62, 35226, 3672, 1988, 705, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 18, 2099, 629, 87, 62, 35226, 3672, 1988, 705, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 19, 2099, 629, 87, 62, 35226, 3672, 1988, 705, 3256, 198, 220, 220, 220, 220, 220, 886, 286, 1976, 66, 87, 62, 1686, 62, 34680, 62, 18558, 18187, 13, 628, 220, 220, 220, 5050, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 5239, 312, 220, 220, 2099, 629, 87, 62, 83, 3064, 2539, 4277, 1976, 66, 87, 62, 1686, 62, 34680, 62, 18558, 18187, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 3866, 1442, 2099, 1006, 284, 43213, 62, 15763, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 18558, 18187, 5376, 2099, 1976, 1686, 62, 18558, 18187, 62, 3672, 13, 198, 220, 6861, 2665, 13, 198, 220, 2839, 2665, 13, 198, 220, 220, 220, 1366, 25, 198, 220, 220, 220, 220, 220, 28883, 5376, 2099, 1976, 1686, 62, 18558, 18187, 62, 3672, 13, 198, 437, 4871, 13, 628, 198, 198, 4871, 1976, 66, 87, 62, 1686, 62, 34680, 62, 18558, 18187, 7822, 13, 628, 198, 220, 2446, 23772, 22492, 2885, 51, 62, 40331, 32761, 62, 35353, 1137, 6234, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 2180, 796, 1312, 62, 3866, 1442, 6739, 198, 220, 220, 220, 1598, 2420, 312, 13, 628, 220, 220, 220, 611, 62, 83, 3064, 62, 20500, 93, 83, 3064, 2539, 796, 1312, 62, 5239, 312, 13, 628, 220, 220, 220, 28883, 5376, 796, 1312, 62, 18558, 18187, 5376, 13, 628, 220, 886, 24396, 13, 198, 437, 4871, 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 ]
CLASS z_aff_example_clas DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. TYPES example_type TYPE string. DATA example_attribute TYPE example_type. EVENTS example_event. METHODS example_method IMPORTING !i_param TYPE i RAISING cx_static_check. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS Z_AFF_EXAMPLE_CLAS IMPLEMENTATION. METHOD example_method. example_attribute = ''(txt). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 62, 2001, 62, 20688, 62, 565, 292, 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, 1672, 62, 4906, 41876, 4731, 13, 628, 220, 220, 220, 42865, 1672, 62, 42348, 41876, 1672, 62, 4906, 13, 628, 220, 220, 220, 22399, 1672, 62, 15596, 13, 628, 220, 220, 220, 337, 36252, 50, 1672, 62, 24396, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 17143, 41876, 1312, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 12708, 62, 9122, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 62, 32, 5777, 62, 6369, 2390, 16437, 62, 5097, 1921, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1672, 62, 24396, 13, 198, 220, 220, 220, 1672, 62, 42348, 796, 10148, 7, 14116, 737, 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 ]
CLASS ycl_abapgit_exit DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS: get_instance RETURNING VALUE(ri_exit) TYPE REF TO yif_abapgit_exit. INTERFACES: yif_abapgit_exit. PRIVATE SECTION. CLASS-DATA gi_exit TYPE REF TO yif_abapgit_exit . ENDCLASS. CLASS ycl_abapgit_exit IMPLEMENTATION. METHOD get_instance. IF gi_exit IS INITIAL. TRY. CREATE OBJECT gi_exit TYPE ('ZCL_ABAPGIT_USER_EXIT'). CATCH cx_sy_create_object_error. ENDTRY. ENDIF. CREATE OBJECT ri_exit TYPE ycl_abapgit_exit. ENDMETHOD. METHOD yif_abapgit_exit~allow_sap_objects. TRY. rv_allowed = gi_exit->allow_sap_objects( ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method. ENDTRY. ENDMETHOD. METHOD yif_abapgit_exit~change_local_host. TRY. gi_exit->change_local_host( CHANGING ct_hosts = ct_hosts ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method. ENDTRY. ENDMETHOD. METHOD yif_abapgit_exit~change_proxy_authentication. TRY. gi_exit->change_proxy_authentication( EXPORTING iv_repo_url = iv_repo_url CHANGING cv_proxy_authentication = cv_proxy_authentication ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method. ENDTRY. ENDMETHOD. METHOD yif_abapgit_exit~change_proxy_port. TRY. gi_exit->change_proxy_port( EXPORTING iv_repo_url = iv_repo_url CHANGING cv_proxy_port = cv_proxy_port ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method. ENDTRY. ENDMETHOD. METHOD yif_abapgit_exit~change_proxy_url. TRY. gi_exit->change_proxy_url( EXPORTING iv_repo_url = iv_repo_url CHANGING cv_proxy_url = cv_proxy_url ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method. ENDTRY. ENDMETHOD. METHOD yif_abapgit_exit~create_http_client. TRY. ri_client = gi_exit->create_http_client( iv_url ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method. ENDTRY. ENDMETHOD. METHOD yif_abapgit_exit~http_client. TRY. gi_exit->http_client( ii_client ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method. ENDTRY. ENDMETHOD. METHOD yif_abapgit_exit~change_tadir. TRY. gi_exit->change_tadir( EXPORTING iv_package = iv_package io_log = io_log CHANGING ct_tadir = ct_tadir ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method. ENDTRY. ENDMETHOD. ENDCLASS.
[ 31631, 331, 565, 62, 397, 499, 18300, 62, 37023, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 651, 62, 39098, 30826, 4261, 15871, 26173, 8924, 7, 380, 62, 37023, 8, 41876, 4526, 37, 5390, 331, 361, 62, 397, 499, 18300, 62, 37023, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 25, 331, 361, 62, 397, 499, 18300, 62, 37023, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42715, 12, 26947, 308, 72, 62, 37023, 41876, 4526, 37, 5390, 331, 361, 62, 397, 499, 18300, 62, 37023, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 331, 565, 62, 397, 499, 18300, 62, 37023, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 651, 62, 39098, 13, 628, 220, 220, 220, 16876, 308, 72, 62, 37023, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 308, 72, 62, 37023, 41876, 19203, 57, 5097, 62, 6242, 2969, 38, 2043, 62, 29904, 62, 6369, 2043, 27691, 198, 220, 220, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 17953, 62, 15252, 62, 18224, 13, 198, 220, 220, 220, 220, 220, 23578, 40405, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 374, 72, 62, 37023, 41876, 331, 565, 62, 397, 499, 18300, 62, 37023, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 331, 361, 62, 397, 499, 18300, 62, 37023, 93, 12154, 62, 82, 499, 62, 48205, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 85, 62, 40845, 796, 308, 72, 62, 37023, 3784, 12154, 62, 82, 499, 62, 48205, 7, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 5420, 62, 271, 62, 36733, 43213, 62, 1837, 62, 67, 2047, 62, 13345, 62, 47749, 62, 24396, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 331, 361, 62, 397, 499, 18300, 62, 37023, 93, 3803, 62, 12001, 62, 4774, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 308, 72, 62, 37023, 3784, 3803, 62, 12001, 62, 4774, 7, 5870, 15567, 2751, 269, 83, 62, 4774, 82, 796, 269, 83, 62, 4774, 82, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 5420, 62, 271, 62, 36733, 43213, 62, 1837, 62, 67, 2047, 62, 13345, 62, 47749, 62, 24396, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 331, 361, 62, 397, 499, 18300, 62, 37023, 93, 3803, 62, 36436, 62, 41299, 3299, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 308, 72, 62, 37023, 3784, 3803, 62, 36436, 62, 41299, 3299, 7, 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, 21628, 62, 260, 7501, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 260, 7501, 62, 6371, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 85, 62, 36436, 62, 41299, 3299, 796, 269, 85, 62, 36436, 62, 41299, 3299, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 5420, 62, 271, 62, 36733, 43213, 62, 1837, 62, 67, 2047, 62, 13345, 62, 47749, 62, 24396, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 331, 361, 62, 397, 499, 18300, 62, 37023, 93, 3803, 62, 36436, 62, 634, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 308, 72, 62, 37023, 3784, 3803, 62, 36436, 62, 634, 7, 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, 21628, 62, 260, 7501, 62, 6371, 220, 796, 21628, 62, 260, 7501, 62, 6371, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 85, 62, 36436, 62, 634, 796, 269, 85, 62, 36436, 62, 634, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 5420, 62, 271, 62, 36733, 43213, 62, 1837, 62, 67, 2047, 62, 13345, 62, 47749, 62, 24396, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 331, 361, 62, 397, 499, 18300, 62, 37023, 93, 3803, 62, 36436, 62, 6371, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 308, 72, 62, 37023, 3784, 3803, 62, 36436, 62, 6371, 7, 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, 21628, 62, 260, 7501, 62, 6371, 796, 21628, 62, 260, 7501, 62, 6371, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 85, 62, 36436, 62, 6371, 796, 269, 85, 62, 36436, 62, 6371, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 5420, 62, 271, 62, 36733, 43213, 62, 1837, 62, 67, 2047, 62, 13345, 62, 47749, 62, 24396, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 331, 361, 62, 397, 499, 18300, 62, 37023, 93, 17953, 62, 4023, 62, 16366, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 72, 62, 16366, 796, 308, 72, 62, 37023, 3784, 17953, 62, 4023, 62, 16366, 7, 21628, 62, 6371, 6739 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
FUNCTION ZDBBR_GENERIC_SH_EXIT. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" VALUE(PARAMETER_OPTIMIZE) TYPE C OPTIONAL *" TABLES *" SHLP_TAB TYPE SHLP_DESCR_TAB_T *" RECORD_TAB STRUCTURE SEAHLPRES *" CHANGING *" REFERENCE(SHLP) TYPE SHLP_DESCR_T *" REFERENCE(CALLCONTROL) TYPE DDSHF4CTRL *"---------------------------------------------------------------------- IF callcontrol-step = 'SELONE' OR callcontrol-step = 'PRESEL1'. zcl_dbbr_entity_sh_helper=>control_list_select_params( EXPORTING iv_entity_type = gv_entity_type CHANGING cs_search_help = shlp ). ELSEIF callcontrol-step = 'SELECT'. NEW zcl_dbbr_entity_sh_helper( iv_entity_type = gv_entity_type )->select_and_fill_result( CHANGING cs_shlp = shlp cs_callcontrol = callcontrol ct_shlp_tab = shlp_tab[] ct_records = record_tab[] ). ENDIF. ENDFUNCTION.
[ 42296, 4177, 2849, 1168, 11012, 11473, 62, 35353, 1137, 2149, 62, 9693, 62, 6369, 2043, 13, 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, 27082, 2390, 2767, 1137, 62, 3185, 51, 3955, 35400, 8, 41876, 220, 327, 39852, 2849, 1847, 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, 9419, 62, 5603, 33, 62, 51, 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, 62, 51, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 34, 1847, 5639, 1340, 5446, 3535, 8, 41876, 220, 360, 5258, 29567, 19, 4177, 7836, 198, 9, 1, 10097, 23031, 198, 220, 16876, 869, 13716, 12, 9662, 796, 705, 50, 3698, 11651, 6, 6375, 198, 220, 220, 220, 220, 869, 13716, 12, 9662, 796, 705, 48296, 3698, 16, 4458, 198, 220, 220, 220, 1976, 565, 62, 9945, 1671, 62, 26858, 62, 1477, 62, 2978, 525, 14804, 13716, 62, 4868, 62, 19738, 62, 37266, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 21628, 62, 26858, 62, 4906, 796, 308, 85, 62, 26858, 62, 4906, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 50115, 62, 12947, 62, 16794, 796, 427, 34431, 198, 220, 220, 220, 6739, 198, 220, 17852, 5188, 5064, 869, 13716, 12, 9662, 796, 705, 46506, 4458, 198, 220, 220, 220, 12682, 1976, 565, 62, 9945, 1671, 62, 26858, 62, 1477, 62, 2978, 525, 7, 21628, 62, 26858, 62, 4906, 796, 308, 85, 62, 26858, 62, 4906, 1267, 3784, 19738, 62, 392, 62, 20797, 62, 20274, 7, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 1477, 34431, 220, 220, 220, 220, 220, 220, 220, 796, 427, 34431, 198, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 13345, 13716, 796, 869, 13716, 198, 220, 220, 220, 220, 220, 220, 220, 269, 83, 62, 1477, 34431, 62, 8658, 220, 220, 220, 796, 427, 34431, 62, 8658, 21737, 198, 220, 220, 220, 220, 220, 220, 220, 269, 83, 62, 8344, 3669, 220, 220, 220, 220, 796, 1700, 62, 8658, 21737, 198, 220, 220, 220, 6739, 198, 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,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VALUE(rs_checks) TYPE zif_abapgit_definitions=>ty_deserialize_checks RAISING zcx_abapgit_exception . METHODS delete_checks RETURNING VALUE(rs_checks) TYPE zif_abapgit_definitions=>ty_delete_checks RAISING zcx_abapgit_exception . METHODS constructor IMPORTING !is_data TYPE zif_abapgit_persistence=>ty_repo . METHODS get_key RETURNING VALUE(rv_key) TYPE zif_abapgit_persistence=>ty_value . METHODS get_name RETURNING VALUE(rv_name) TYPE string RAISING zcx_abapgit_exception . METHODS get_files_local IMPORTING !ii_log TYPE REF TO zif_abapgit_log OPTIONAL !it_filter TYPE zif_abapgit_definitions=>ty_tadir_tt OPTIONAL RETURNING VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . METHODS get_local_checksums_per_file RETURNING VALUE(rt_checksums) TYPE zif_abapgit_definitions=>ty_file_signatures_tt . METHODS get_files_remote RETURNING VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_tt RAISING zcx_abapgit_exception . METHODS get_package RETURNING VALUE(rv_package) TYPE zif_abapgit_persistence=>ty_repo-package . METHODS get_dot_abapgit RETURNING VALUE(ro_dot_abapgit) TYPE REF TO zcl_abapgit_dot_abapgit . METHODS set_dot_abapgit IMPORTING !io_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit RAISING zcx_abapgit_exception . METHODS get_dot_apack RETURNING VALUE(ro_dot_apack) TYPE REF TO zcl_abapgit_apack_reader . METHODS deserialize IMPORTING !is_checks TYPE zif_abapgit_definitions=>ty_deserialize_checks !ii_log TYPE REF TO zif_abapgit_log RAISING zcx_abapgit_exception . METHODS refresh IMPORTING !iv_drop_cache TYPE abap_bool DEFAULT abap_false RAISING zcx_abapgit_exception . METHODS update_local_checksums IMPORTING !it_files TYPE zif_abapgit_definitions=>ty_file_signatures_tt RAISING zcx_abapgit_exception . METHODS rebuild_local_checksums RAISING zcx_abapgit_exception . METHODS find_remote_dot_abapgit RETURNING VALUE(ro_dot) TYPE REF TO zcl_abapgit_dot_abapgit RAISING zcx_abapgit_exception . METHODS find_remote_dot_apack RETURNING VALUE(ro_dot) TYPE REF TO zcl_abapgit_apack_reader RAISING zcx_abapgit_exception . METHODS is_offline RETURNING VALUE(rv_offline) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS set_files_remote IMPORTING !it_files TYPE zif_abapgit_definitions=>ty_files_tt . METHODS get_local_settings RETURNING VALUE(rs_settings) TYPE zif_abapgit_persistence=>ty_repo-local_settings . METHODS set_local_settings IMPORTING !is_settings TYPE zif_abapgit_persistence=>ty_repo-local_settings RAISING zcx_abapgit_exception . METHODS has_remote_source ABSTRACT RETURNING VALUE(rv_yes) TYPE abap_bool . METHODS status IMPORTING !ii_log TYPE REF TO zif_abapgit_log OPTIONAL RETURNING VALUE(rt_results) TYPE zif_abapgit_definitions=>ty_results_tt RAISING zcx_abapgit_exception . METHODS switch_repo_type IMPORTING !iv_offline TYPE abap_bool RAISING zcx_abapgit_exception . METHODS create_new_log IMPORTING !iv_title TYPE string OPTIONAL RETURNING VALUE(ri_log) TYPE REF TO zif_abapgit_log . METHODS get_log RETURNING VALUE(ri_log) TYPE REF TO zif_abapgit_log . METHODS reset_log . METHODS refresh_local_object IMPORTING !iv_obj_type TYPE tadir-object !iv_obj_name TYPE tadir-obj_name RAISING zcx_abapgit_exception . METHODS refresh_local_objects RAISING zcx_abapgit_exception . METHODS reset_status . PROTECTED SECTION. DATA mt_local TYPE zif_abapgit_definitions=>ty_files_item_tt . DATA mt_remote TYPE zif_abapgit_definitions=>ty_files_tt . DATA mv_request_local_refresh TYPE abap_bool . DATA ms_data TYPE zif_abapgit_persistence=>ty_repo . DATA mv_request_remote_refresh TYPE abap_bool . DATA mt_status TYPE zif_abapgit_definitions=>ty_results_tt . DATA mi_log TYPE REF TO zif_abapgit_log . METHODS set_dot_apack IMPORTING !io_dot_apack TYPE REF TO zcl_abapgit_apack_reader RAISING zcx_abapgit_exception . METHODS set IMPORTING !it_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt OPTIONAL !iv_url TYPE zif_abapgit_persistence=>ty_repo-url OPTIONAL !iv_branch_name TYPE zif_abapgit_persistence=>ty_repo-branch_name OPTIONAL !iv_head_branch TYPE zif_abapgit_persistence=>ty_repo-head_branch OPTIONAL !iv_offline TYPE zif_abapgit_persistence=>ty_repo-offline OPTIONAL !is_dot_abapgit TYPE zif_abapgit_persistence=>ty_repo-dot_abapgit OPTIONAL !is_local_settings TYPE zif_abapgit_persistence=>ty_repo-local_settings OPTIONAL !iv_deserialized_at TYPE zif_abapgit_persistence=>ty_repo-deserialized_at OPTIONAL !iv_deserialized_by TYPE zif_abapgit_persistence=>ty_repo-deserialized_by OPTIONAL !iv_switched_origin TYPE zif_abapgit_persistence=>ty_repo-switched_origin OPTIONAL RAISING zcx_abapgit_exception . METHODS reset_remote . PRIVATE SECTION. DATA mi_listener TYPE REF TO zif_abapgit_repo_listener . DATA mo_apack_reader TYPE REF TO zcl_abapgit_apack_reader . METHODS get_local_checksums RETURNING VALUE(rt_checksums) TYPE zif_abapgit_persistence=>ty_local_checksum_tt . METHODS notify_listener IMPORTING !is_change_mask TYPE zif_abapgit_persistence=>ty_repo_meta_mask RAISING zcx_abapgit_exception . METHODS build_dotabapgit_file RETURNING VALUE(rs_file) TYPE zif_abapgit_definitions=>ty_file RAISING zcx_abapgit_exception . METHODS build_apack_manifest_file RETURNING VALUE(rs_file) TYPE zif_abapgit_definitions=>ty_file RAISING zcx_abapgit_exception . METHODS update_last_deserialize RAISING zcx_abapgit_exception . METHODS check_for_restart . METHODS check_write_protect RAISING zcx_abapgit_exception . METHODS check_language RAISING zcx_abapgit_exception . ENDCLASS. CLASS ZCL_ABAPGIT_REPO IMPLEMENTATION. METHOD bind_listener. mi_listener = ii_listener. ENDMETHOD. METHOD build_apack_manifest_file. DATA: lo_manifest_reader TYPE REF TO zcl_abapgit_apack_reader, ls_descriptor TYPE zif_abapgit_apack_definitions=>ty_descriptor, lo_manifest_writer TYPE REF TO zcl_abapgit_apack_writer. lo_manifest_reader = zcl_abapgit_apack_reader=>create_instance( ms_data-package ). IF lo_manifest_reader->has_manifest( ) = abap_true. ls_descriptor = lo_manifest_reader->get_manifest_descriptor( ). lo_manifest_writer = zcl_abapgit_apack_writer=>create_instance( ls_descriptor ). rs_file-path = zif_abapgit_definitions=>c_root_dir. rs_file-filename = zif_abapgit_apack_definitions=>c_dot_apack_manifest. rs_file-data = zcl_abapgit_convert=>string_to_xstring_utf8( lo_manifest_writer->serialize( ) ). rs_file-sha1 = zcl_abapgit_hash=>sha1( iv_type = zif_abapgit_definitions=>c_type-blob iv_data = rs_file-data ). ENDIF. ENDMETHOD. METHOD build_dotabapgit_file. rs_file-path = zif_abapgit_definitions=>c_root_dir. rs_file-filename = zif_abapgit_definitions=>c_dot_abapgit. rs_file-data = get_dot_abapgit( )->serialize( ). rs_file-sha1 = zcl_abapgit_hash=>sha1( iv_type = zif_abapgit_definitions=>c_type-blob iv_data = rs_file-data ). ENDMETHOD. METHOD check_for_restart. CONSTANTS: lc_abapgit_prog TYPE progname VALUE `ZABAPGIT`. " If abapGit was used to update itself, then restart to avoid LOAD_PROGRAM_&_MISMATCH dumps " because abapGit code was changed at runtime IF zcl_abapgit_ui_factory=>get_gui_functions( )->gui_is_available( ) = abap_true AND zcl_abapgit_url=>is_abapgit_repo( ms_data-url ) = abap_true AND sy-batch = abap_false AND sy-cprog = lc_abapgit_prog. IF zcl_abapgit_persist_settings=>get_instance( )->read( )->get_show_default_repo( ) = abap_false. MESSAGE 'abapGit was updated and will restart itself' TYPE 'I'. ENDIF. SUBMIT (sy-cprog). ENDIF. ENDMETHOD. METHOD check_language. DATA lv_master_language TYPE spras. " assumes find_remote_dot_abapgit has been called before lv_master_language = get_dot_abapgit( )->get_master_language( ). IF lv_master_language <> sy-langu. zcx_abapgit_exception=>raise( |Current login language | && |'{ zcl_abapgit_convert=>conversion_exit_isola_output( sy-langu ) }'| && | does not match master language | && |'{ zcl_abapgit_convert=>conversion_exit_isola_output( lv_master_language ) }'.| && | Run 'Advanced' > 'Open in master language'| ). ENDIF. ENDMETHOD. METHOD check_write_protect. IF get_local_settings( )-write_protected = abap_true. zcx_abapgit_exception=>raise( 'Cannot deserialize. Local code is write-protected by repo config' ). ENDIF. ENDMETHOD. METHOD constructor. ASSERT NOT is_data-key IS INITIAL. ms_data = is_data. mv_request_remote_refresh = abap_true. ENDMETHOD. METHOD create_new_log. CREATE OBJECT mi_log TYPE zcl_abapgit_log. mi_log->set_title( iv_title ). ri_log = mi_log. ENDMETHOD. METHOD delete_checks. DATA: li_package TYPE REF TO zif_abapgit_sap_package. li_package = zcl_abapgit_factory=>get_sap_package( get_package( ) ). rs_checks-transport-required = li_package->are_changes_recorded_in_tr_req( ). ENDMETHOD. METHOD deserialize. DATA: lt_updated_files TYPE zif_abapgit_definitions=>ty_file_signatures_tt, lx_error TYPE REF TO zcx_abapgit_exception. find_remote_dot_abapgit( ). find_remote_dot_apack( ). check_write_protect( ). check_language( ). IF is_checks-requirements-met = zif_abapgit_definitions=>gc_no AND is_checks-requirements-decision IS INITIAL. zcx_abapgit_exception=>raise( 'Requirements not met and undecided' ). ENDIF. IF is_checks-dependencies-met = zif_abapgit_definitions=>gc_no. zcx_abapgit_exception=>raise( 'APACK dependencies not met' ). ENDIF. IF is_checks-transport-required = abap_true AND is_checks-transport-transport IS INITIAL. zcx_abapgit_exception=>raise( |No transport request was supplied| ). ENDIF. TRY. lt_updated_files = zcl_abapgit_objects=>deserialize( io_repo = me is_checks = is_checks ii_log = ii_log ). CATCH zcx_abapgit_exception INTO lx_error. * ensure to reset default transport request task zcl_abapgit_default_transport=>get_instance( )->reset( ). RAISE EXCEPTION lx_error. ENDTRY. APPEND get_dot_abapgit( )->get_signature( ) TO lt_updated_files. CLEAR: mt_local. update_local_checksums( lt_updated_files ). update_last_deserialize( ). reset_status( ). COMMIT WORK AND WAIT. check_for_restart( ). ENDMETHOD. METHOD deserialize_checks. DATA: lt_requirements TYPE zif_abapgit_dot_abapgit=>ty_requirement_tt, lt_dependencies TYPE zif_abapgit_apack_definitions=>tt_dependencies. find_remote_dot_abapgit( ). find_remote_dot_apack( ). check_write_protect( ). check_language( ). rs_checks = zcl_abapgit_objects=>deserialize_checks( me ). lt_requirements = get_dot_abapgit( )->get_data( )-requirements. rs_checks-requirements-met = zcl_abapgit_requirement_helper=>is_requirements_met( lt_requirements ). lt_dependencies = get_dot_apack( )->get_manifest_descriptor( )-dependencies. rs_checks-dependencies-met = zcl_abapgit_apack_helper=>are_dependencies_met( lt_dependencies ). ENDMETHOD. METHOD find_remote_dot_abapgit. FIELD-SYMBOLS: <ls_remote> LIKE LINE OF mt_remote. get_files_remote( ). READ TABLE mt_remote ASSIGNING <ls_remote> WITH KEY path = zif_abapgit_definitions=>c_root_dir filename = zif_abapgit_definitions=>c_dot_abapgit. IF sy-subrc = 0. ro_dot = zcl_abapgit_dot_abapgit=>deserialize( <ls_remote>-data ). set_dot_abapgit( ro_dot ). COMMIT WORK AND WAIT. " to release lock ELSEIF lines( mt_remote ) > c_new_repo_size. " Less files means it's a new repo (with just readme and license, for example) which is ok zcx_abapgit_exception=>raise( |Cannot find .abapgit.xml - Is this an abapGit repo?| ). ENDIF. ENDMETHOD. METHOD find_remote_dot_apack. FIELD-SYMBOLS: <ls_remote> LIKE LINE OF mt_remote. get_files_remote( ). READ TABLE mt_remote ASSIGNING <ls_remote> WITH KEY path = zif_abapgit_definitions=>c_root_dir filename = zif_abapgit_apack_definitions=>c_dot_apack_manifest. IF sy-subrc = 0. ro_dot = zcl_abapgit_apack_reader=>deserialize( iv_package_name = ms_data-package iv_xstr = <ls_remote>-data ). set_dot_apack( ro_dot ). ENDIF. ENDMETHOD. METHOD get_dot_abapgit. CREATE OBJECT ro_dot_abapgit EXPORTING is_data = ms_data-dot_abapgit. ENDMETHOD. METHOD get_dot_apack. IF mo_apack_reader IS NOT BOUND. mo_apack_reader = zcl_abapgit_apack_reader=>create_instance( ms_data-package ). ENDIF. ro_dot_apack = mo_apack_reader. ENDMETHOD. METHOD get_files_local. DATA: lo_filter TYPE REF TO zcl_abapgit_repo_filter, lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt, lo_serialize TYPE REF TO zcl_abapgit_serialize, lt_found LIKE rt_files, lv_force TYPE abap_bool, ls_apack_file TYPE zif_abapgit_definitions=>ty_file. FIELD-SYMBOLS: <ls_return> LIKE LINE OF rt_files. " Serialization happened before and no refresh request IF lines( mt_local ) > 0 AND mv_request_local_refresh = abap_false. rt_files = mt_local. RETURN. ENDIF. APPEND INITIAL LINE TO rt_files ASSIGNING <ls_return>. <ls_return>-file = build_dotabapgit_file( ). ls_apack_file = build_apack_manifest_file( ). IF ls_apack_file IS NOT INITIAL. APPEND INITIAL LINE TO rt_files ASSIGNING <ls_return>. <ls_return>-file = ls_apack_file. ENDIF. lt_tadir = zcl_abapgit_factory=>get_tadir( )->read( iv_package = get_package( ) iv_ignore_subpackages = get_local_settings( )-ignore_subpackages iv_only_local_objects = get_local_settings( )-only_local_objects io_dot = get_dot_abapgit( ) ii_log = ii_log ). CREATE OBJECT lo_filter EXPORTING iv_package = get_package( ). lo_filter->apply( EXPORTING it_filter = it_filter CHANGING ct_tadir = lt_tadir ). CREATE OBJECT lo_serialize EXPORTING iv_serialize_master_lang_only = ms_data-local_settings-serialize_master_lang_only. * if there are less than 10 objects run in single thread * this helps a lot when debugging, plus performance gain * with low number of objects does not matter much lv_force = boolc( lines( lt_tadir ) < 10 ). lt_found = lo_serialize->serialize( it_tadir = lt_tadir iv_language = get_dot_abapgit( )->get_master_language( ) ii_log = ii_log iv_force_sequential = lv_force ). APPEND LINES OF lt_found TO rt_files. mt_local = rt_files. mv_request_local_refresh = abap_false. " Fulfill refresh ENDMETHOD. METHOD get_files_remote. rt_files = mt_remote. ENDMETHOD. METHOD get_key. rv_key = ms_data-key. ENDMETHOD. METHOD get_local_checksums. rt_checksums = ms_data-local_checksums. ENDMETHOD. METHOD get_local_checksums_per_file. FIELD-SYMBOLS <ls_object> LIKE LINE OF ms_data-local_checksums. LOOP AT ms_data-local_checksums ASSIGNING <ls_object>. " Check if item exists READ TABLE mt_local TRANSPORTING NO FIELDS WITH KEY item = <ls_object>-item. IF sy-subrc = 0. APPEND LINES OF <ls_object>-files TO rt_checksums. ENDIF. ENDLOOP. ENDMETHOD. METHOD get_local_settings. rs_settings = ms_data-local_settings. ENDMETHOD. METHOD get_log. ri_log = mi_log. ENDMETHOD. METHOD get_name. rv_name = ms_data-local_settings-display_name. ENDMETHOD. METHOD get_package. rv_package = ms_data-package. ENDMETHOD. METHOD is_offline. rv_offline = ms_data-offline. ENDMETHOD. METHOD notify_listener. DATA ls_meta_slug TYPE zif_abapgit_persistence=>ty_repo_xml. IF mi_listener IS BOUND. MOVE-CORRESPONDING ms_data TO ls_meta_slug. mi_listener->on_meta_change( iv_key = ms_data-key is_meta = ls_meta_slug is_change_mask = is_change_mask ). ENDIF. ENDMETHOD. METHOD rebuild_local_checksums. DATA: lt_local TYPE zif_abapgit_definitions=>ty_files_item_tt, ls_last_item TYPE zif_abapgit_definitions=>ty_item, lt_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt. FIELD-SYMBOLS: <ls_checksum> LIKE LINE OF lt_checksums, <ls_file_sig> LIKE LINE OF <ls_checksum>-files, <ls_local> LIKE LINE OF lt_local. lt_local = get_files_local( ). DELETE lt_local " Remove non-code related files except .abapgit WHERE item IS INITIAL AND NOT ( file-path = zif_abapgit_definitions=>c_root_dir AND file-filename = zif_abapgit_definitions=>c_dot_abapgit ). SORT lt_local BY item. LOOP AT lt_local ASSIGNING <ls_local>. IF ls_last_item <> <ls_local>-item OR sy-tabix = 1. " First or New item reached ? APPEND INITIAL LINE TO lt_checksums ASSIGNING <ls_checksum>. <ls_checksum>-item = <ls_local>-item. ls_last_item = <ls_local>-item. ENDIF. APPEND INITIAL LINE TO <ls_checksum>-files ASSIGNING <ls_file_sig>. MOVE-CORRESPONDING <ls_local>-file TO <ls_file_sig>. ENDLOOP. set( it_checksums = lt_checksums ). reset_status( ). ENDMETHOD. METHOD refresh. mv_request_local_refresh = abap_true. reset_remote( ). CLEAR mi_log. IF iv_drop_cache = abap_true. CLEAR: mt_local. ENDIF. ENDMETHOD. METHOD refresh_local_object. DATA: ls_tadir TYPE zif_abapgit_definitions=>ty_tadir, lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt, lt_new_local_files TYPE zif_abapgit_definitions=>ty_files_item_tt, lo_serialize TYPE REF TO zcl_abapgit_serialize. lt_tadir = zcl_abapgit_factory=>get_tadir( )->read( iv_package = ms_data-package io_dot = get_dot_abapgit( ) ). DELETE mt_local WHERE item-obj_type = iv_obj_type AND item-obj_name = iv_obj_name. READ TABLE lt_tadir INTO ls_tadir WITH KEY object = iv_obj_type obj_name = iv_obj_name. IF sy-subrc <> 0 OR ls_tadir-delflag = abap_true. " object doesn't exist anymore, nothing todo here RETURN. ENDIF. CLEAR lt_tadir. INSERT ls_tadir INTO TABLE lt_tadir. CREATE OBJECT lo_serialize. lt_new_local_files = lo_serialize->serialize( lt_tadir ). INSERT LINES OF lt_new_local_files INTO TABLE mt_local. ENDMETHOD. METHOD refresh_local_objects. mv_request_local_refresh = abap_true. get_files_local( ). ENDMETHOD. METHOD reset_log. CLEAR mi_log. ENDMETHOD. METHOD reset_remote. CLEAR mt_remote. mv_request_remote_refresh = abap_true. reset_status( ). ENDMETHOD. METHOD reset_status. CLEAR mt_status. ENDMETHOD. METHOD set. * TODO: refactor, maybe use zcl_abapgit_string_map ? DATA: ls_mask TYPE zif_abapgit_persistence=>ty_repo_meta_mask. ASSERT it_checksums IS SUPPLIED OR iv_url IS SUPPLIED OR iv_branch_name IS SUPPLIED OR iv_head_branch IS SUPPLIED OR iv_offline IS SUPPLIED OR is_dot_abapgit IS SUPPLIED OR is_local_settings IS SUPPLIED OR iv_deserialized_by IS SUPPLIED OR iv_deserialized_at IS SUPPLIED OR iv_switched_origin IS SUPPLIED. IF it_checksums IS SUPPLIED. ms_data-local_checksums = it_checksums. ls_mask-local_checksums = abap_true. ENDIF. IF iv_url IS SUPPLIED. ms_data-url = iv_url. ls_mask-url = abap_true. ENDIF. IF iv_branch_name IS SUPPLIED. ms_data-branch_name = iv_branch_name. ls_mask-branch_name = abap_true. ENDIF. IF iv_head_branch IS SUPPLIED. ms_data-head_branch = iv_head_branch. ls_mask-head_branch = abap_true. ENDIF. IF iv_offline IS SUPPLIED. ms_data-offline = iv_offline. ls_mask-offline = abap_true. ENDIF. IF is_dot_abapgit IS SUPPLIED. ms_data-dot_abapgit = is_dot_abapgit. ls_mask-dot_abapgit = abap_true. ENDIF. IF is_local_settings IS SUPPLIED. ms_data-local_settings = is_local_settings. ls_mask-local_settings = abap_true. ENDIF. IF iv_deserialized_at IS SUPPLIED OR iv_deserialized_by IS SUPPLIED. ms_data-deserialized_at = iv_deserialized_at. ms_data-deserialized_by = iv_deserialized_by. ls_mask-deserialized_at = abap_true. ls_mask-deserialized_by = abap_true. ENDIF. IF iv_switched_origin IS SUPPLIED. ms_data-switched_origin = iv_switched_origin. ls_mask-switched_origin = abap_true. ENDIF. notify_listener( ls_mask ). ENDMETHOD. METHOD set_dot_abapgit. set( is_dot_abapgit = io_dot_abapgit->get_data( ) ). ENDMETHOD. METHOD set_dot_apack. get_dot_apack( ). mo_apack_reader->set_manifest_descriptor( io_dot_apack->get_manifest_descriptor( ) ). ENDMETHOD. METHOD set_files_remote. mt_remote = it_files. mv_request_remote_refresh = abap_false. ENDMETHOD. METHOD set_local_settings. set( is_local_settings = is_settings ). ENDMETHOD. METHOD status. IF lines( mt_status ) = 0. mt_status = zcl_abapgit_file_status=>status( io_repo = me ii_log = ii_log ). ENDIF. rt_results = mt_status. ENDMETHOD. METHOD switch_repo_type. IF iv_offline = ms_data-offline. zcx_abapgit_exception=>raise( |Cannot switch_repo_type, offline already = "{ ms_data-offline }"| ). ENDIF. IF iv_offline = abap_true. " On-line -> OFFline set( iv_url = zcl_abapgit_url=>name( ms_data-url ) iv_branch_name = '' iv_head_branch = '' iv_offline = abap_true ). ELSE. " OFFline -> On-line set( iv_offline = abap_false ). ENDIF. ENDMETHOD. METHOD update_last_deserialize. DATA: lv_deserialized_at TYPE zif_abapgit_persistence=>ty_repo-deserialized_at, lv_deserialized_by TYPE zif_abapgit_persistence=>ty_repo-deserialized_by. GET TIME STAMP FIELD lv_deserialized_at. lv_deserialized_by = sy-uname. set( iv_deserialized_at = lv_deserialized_at iv_deserialized_by = lv_deserialized_by ). ENDMETHOD. METHOD update_local_checksums. " ASSUMTION: SHA1 in param is actual and correct. " Push fills it from local files before pushing, deserialize from remote " If this is not true that there is an error somewhere but not here DATA: lt_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt, lt_files_idx TYPE zif_abapgit_definitions=>ty_file_signatures_tt, lt_local TYPE zif_abapgit_definitions=>ty_files_item_tt, lv_chks_row TYPE i, lv_file_row TYPE i. FIELD-SYMBOLS: <ls_checksum> LIKE LINE OF lt_checksums, <ls_file> LIKE LINE OF <ls_checksum>-files, <ls_local> LIKE LINE OF lt_local, <ls_new_state> LIKE LINE OF it_files. lt_checksums = get_local_checksums( ). lt_files_idx = it_files. SORT lt_files_idx BY path filename. " Sort for binary search " Loop through current chacksum state, update sha1 for common files LOOP AT lt_checksums ASSIGNING <ls_checksum>. lv_chks_row = sy-tabix. LOOP AT <ls_checksum>-files ASSIGNING <ls_file>. lv_file_row = sy-tabix. READ TABLE lt_files_idx ASSIGNING <ls_new_state> WITH KEY path = <ls_file>-path filename = <ls_file>-filename BINARY SEARCH. CHECK sy-subrc = 0. " Missing in param table, skip IF <ls_new_state>-sha1 IS INITIAL. " Empty input sha1 is a deletion marker DELETE <ls_checksum>-files INDEX lv_file_row. ELSE. <ls_file>-sha1 = <ls_new_state>-sha1. " Update sha1 CLEAR <ls_new_state>-sha1. " Mark as processed ENDIF. ENDLOOP. IF lines( <ls_checksum>-files ) = 0. " Remove empty objects DELETE lt_checksums INDEX lv_chks_row. ENDIF. ENDLOOP. DELETE lt_files_idx WHERE sha1 IS INITIAL. " Remove processed IF lines( lt_files_idx ) > 0. lt_local = get_files_local( ). SORT lt_local BY file-path file-filename. " Sort for binary search ENDIF. " Add new files - not deleted and not marked as processed above LOOP AT lt_files_idx ASSIGNING <ls_new_state>. READ TABLE lt_local ASSIGNING <ls_local> WITH KEY file-path = <ls_new_state>-path file-filename = <ls_new_state>-filename BINARY SEARCH. IF sy-subrc <> 0. * if the deserialization fails, the local file might not be there CONTINUE. ENDIF. READ TABLE lt_checksums ASSIGNING <ls_checksum> " TODO Optimize WITH KEY item = <ls_local>-item. IF sy-subrc > 0. APPEND INITIAL LINE TO lt_checksums ASSIGNING <ls_checksum>. <ls_checksum>-item = <ls_local>-item. ENDIF. APPEND <ls_new_state> TO <ls_checksum>-files. ENDLOOP. SORT lt_checksums BY item. set( it_checksums = lt_checksums ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 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, 269, 62, 3605, 62, 260, 7501, 62, 7857, 41876, 1312, 26173, 8924, 513, 13, 628, 220, 220, 220, 337, 36252, 50, 11007, 62, 4868, 877, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 4868, 877, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 260, 7501, 62, 4868, 877, 764, 198, 220, 220, 220, 337, 36252, 50, 748, 48499, 1096, 62, 42116, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 42116, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8906, 48499, 1096, 62, 42116, 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, 12233, 62, 42116, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 42116, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 33678, 62, 42116, 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, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 7890, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 2539, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 2539, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 8367, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 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, 3672, 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, 337, 36252, 50, 651, 62, 16624, 62, 12001, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 6404, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 24455, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 62, 926, 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, 16624, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 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, 651, 62, 12001, 62, 42116, 5700, 62, 525, 62, 7753, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 42116, 5700, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 7753, 62, 12683, 6691, 62, 926, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 16624, 62, 47960, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 16624, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 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, 651, 62, 26495, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 26495, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 26495, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 26518, 62, 397, 499, 18300, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 26518, 62, 397, 499, 18300, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 764, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 26518, 62, 397, 499, 18300, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 26518, 62, 397, 499, 18300, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 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, 651, 62, 26518, 62, 499, 441, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 26518, 62, 499, 441, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 499, 441, 62, 46862, 764, 198, 220, 220, 220, 337, 36252, 50, 748, 48499, 1096, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 42116, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_abapgit_serialize DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. METHODS constructor IMPORTING !iv_serialize_master_lang_only TYPE abap_bool DEFAULT abap_false . METHODS on_end_of_task IMPORTING !p_task TYPE clike . METHODS serialize IMPORTING !it_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt !iv_language TYPE langu DEFAULT sy-langu !ii_log TYPE REF TO zif_abapgit_log OPTIONAL !iv_force_sequential TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . METHODS files_local IMPORTING !iv_package TYPE devclass !io_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit !is_local_settings TYPE zif_abapgit_persistence=>ty_repo-local_settings !ii_log TYPE REF TO zif_abapgit_log !it_filter TYPE zif_abapgit_definitions=>ty_tadir_tt OPTIONAL !ii_data_config TYPE REF TO zif_abapgit_data_config OPTIONAL RETURNING VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . PROTECTED SECTION. TYPES: ty_char32 TYPE c LENGTH 32 . CLASS-DATA gv_max_threads TYPE i . DATA mt_files TYPE zif_abapgit_definitions=>ty_files_item_tt . DATA mv_free TYPE i . DATA mi_log TYPE REF TO zif_abapgit_log . DATA mv_group TYPE rzlli_apcl . DATA mv_serialize_master_lang_only TYPE abap_bool . METHODS add_apack IMPORTING !iv_package TYPE devclass CHANGING !ct_files TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . METHODS add_data IMPORTING !ii_data_config TYPE REF TO zif_abapgit_data_config CHANGING !ct_files TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . METHODS add_dot_abapgit IMPORTING !io_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit CHANGING !ct_files TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . METHODS add_to_return IMPORTING !iv_path TYPE string !is_file_item TYPE zif_abapgit_objects=>ty_serialization . METHODS run_parallel IMPORTING !is_tadir TYPE zif_abapgit_definitions=>ty_tadir !iv_language TYPE langu !iv_task TYPE ty_char32 RAISING zcx_abapgit_exception . METHODS run_sequential IMPORTING !is_tadir TYPE zif_abapgit_definitions=>ty_tadir !iv_language TYPE langu RAISING zcx_abapgit_exception . METHODS add_objects IMPORTING !iv_package TYPE devclass !io_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit !is_local_settings TYPE zif_abapgit_persistence=>ty_repo-local_settings !ii_log TYPE REF TO zif_abapgit_log !it_filter TYPE zif_abapgit_definitions=>ty_tadir_tt OPTIONAL CHANGING VALUE(ct_files) TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . METHODS determine_max_threads IMPORTING !iv_force_sequential TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rv_threads) TYPE i RAISING zcx_abapgit_exception . PRIVATE SECTION. ENDCLASS. CLASS ZCL_ABAPGIT_SERIALIZE IMPLEMENTATION. METHOD add_apack. DATA ls_apack_file TYPE zif_abapgit_definitions=>ty_file. FIELD-SYMBOLS <ls_file> LIKE LINE OF ct_files. ls_apack_file = zcl_abapgit_apack_helper=>to_file( iv_package ). IF ls_apack_file IS NOT INITIAL. APPEND INITIAL LINE TO ct_files ASSIGNING <ls_file>. <ls_file>-file = ls_apack_file. ENDIF. ENDMETHOD. METHOD add_data. DATA lt_files TYPE zif_abapgit_definitions=>ty_files_tt. DATA ls_file LIKE LINE OF lt_files. FIELD-SYMBOLS <ls_return> LIKE LINE OF ct_files. IF ii_data_config IS INITIAL. RETURN. ENDIF. lt_files = ii_data_config->to_json( ). LOOP AT lt_files INTO ls_file. APPEND INITIAL LINE TO ct_files ASSIGNING <ls_return>. <ls_return>-file = ls_file. ENDLOOP. lt_files = zcl_abapgit_data_factory=>get_serializer( )->serialize( ii_data_config ). LOOP AT lt_files INTO ls_file. APPEND INITIAL LINE TO ct_files ASSIGNING <ls_return>. <ls_return>-file = ls_file. ENDLOOP. ENDMETHOD. METHOD add_dot_abapgit. FIELD-SYMBOLS: <ls_file> LIKE LINE OF ct_files. APPEND INITIAL LINE TO ct_files ASSIGNING <ls_file>. <ls_file>-file = io_dot_abapgit->to_file( ). ENDMETHOD. METHOD add_objects. DATA: lo_filter TYPE REF TO zcl_abapgit_repo_filter, lv_force TYPE abap_bool, lt_found LIKE ct_files, lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt. lt_tadir = zcl_abapgit_factory=>get_tadir( )->read( iv_package = iv_package iv_ignore_subpackages = is_local_settings-ignore_subpackages iv_only_local_objects = is_local_settings-only_local_objects io_dot = io_dot_abapgit ii_log = ii_log ). CREATE OBJECT lo_filter. lo_filter->apply( EXPORTING it_filter = it_filter CHANGING ct_tadir = lt_tadir ). * if there are less than 10 objects run in single thread * this helps a lot when debugging, plus performance gain * with low number of objects does not matter much lv_force = boolc( lines( lt_tadir ) < 10 ). lt_found = serialize( it_tadir = lt_tadir iv_language = io_dot_abapgit->get_master_language( ) ii_log = ii_log iv_force_sequential = lv_force ). APPEND LINES OF lt_found TO ct_files. ENDMETHOD. METHOD add_to_return. FIELD-SYMBOLS: <ls_file> LIKE LINE OF is_file_item-files, <ls_return> LIKE LINE OF mt_files. LOOP AT is_file_item-files ASSIGNING <ls_file>. APPEND INITIAL LINE TO mt_files ASSIGNING <ls_return>. <ls_return>-file = <ls_file>. <ls_return>-file-path = iv_path. <ls_return>-item = is_file_item-item. ENDLOOP. ENDMETHOD. METHOD constructor. DATA lo_settings TYPE REF TO zcl_abapgit_settings. lo_settings = zcl_abapgit_persist_settings=>get_instance( )->read( ). IF zcl_abapgit_factory=>get_environment( )->is_merged( ) = abap_true OR lo_settings->get_parallel_proc_disabled( ) = abap_true. gv_max_threads = 1. ENDIF. mv_group = 'parallel_generators'. mv_serialize_master_lang_only = iv_serialize_master_lang_only. ENDMETHOD. METHOD determine_max_threads. IF iv_force_sequential = abap_true. rv_threads = 1. RETURN. ENDIF. IF gv_max_threads >= 1. * SPBT_INITIALIZE gives error PBT_ENV_ALREADY_INITIALIZED if called * multiple times in same session rv_threads = gv_max_threads. RETURN. ENDIF. CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'Z_ABAPGIT_SERIALIZE_PARALLEL' EXCEPTIONS function_not_exist = 1 OTHERS = 2. IF sy-subrc <> 0. gv_max_threads = 1. ELSE. * todo, add possibility to set group name in user exit CALL FUNCTION 'SPBT_INITIALIZE' EXPORTING group_name = mv_group IMPORTING free_pbt_wps = gv_max_threads EXCEPTIONS invalid_group_name = 1 internal_error = 2 pbt_env_already_initialized = 3 currently_no_resources_avail = 4 no_pbt_resources_found = 5 cant_init_different_pbt_groups = 6 OTHERS = 7. IF sy-subrc <> 0. * fallback to running sequentially. If SPBT_INITIALIZE fails, check transactions * RZ12, SM50, SM21, SARFC gv_max_threads = 1. ENDIF. ENDIF. IF gv_max_threads > 1. gv_max_threads = gv_max_threads - 1. ENDIF. ASSERT gv_max_threads >= 1. IF gv_max_threads > 32. * https://en.wikipedia.org/wiki/Amdahl%27s_law gv_max_threads = 32. ENDIF. rv_threads = gv_max_threads. ENDMETHOD. METHOD files_local. * serializes objects, including .abapgit.xml, apack, and takes into account local settings add_dot_abapgit( EXPORTING io_dot_abapgit = io_dot_abapgit CHANGING ct_files = rt_files ). add_apack( EXPORTING iv_package = iv_package CHANGING ct_files = rt_files ). add_data( EXPORTING ii_data_config = ii_data_config CHANGING ct_files = rt_files ). add_objects( EXPORTING iv_package = iv_package io_dot_abapgit = io_dot_abapgit is_local_settings = is_local_settings ii_log = ii_log it_filter = it_filter CHANGING ct_files = rt_files ). ENDMETHOD. METHOD on_end_of_task. * this method will be called from the parallel processing, thus it must be public DATA: lv_result TYPE xstring, lv_path TYPE string, lv_mess TYPE c LENGTH 200, ls_file_item TYPE zif_abapgit_objects=>ty_serialization. RECEIVE RESULTS FROM FUNCTION 'Z_ABAPGIT_SERIALIZE_PARALLEL' IMPORTING ev_result = lv_result ev_path = lv_path EXCEPTIONS error = 1 system_failure = 2 MESSAGE lv_mess communication_failure = 3 MESSAGE lv_mess OTHERS = 4. IF sy-subrc <> 0. IF NOT mi_log IS INITIAL. IF NOT lv_mess IS INITIAL. mi_log->add_error( lv_mess ). ELSE. mi_log->add_error( |{ sy-msgv1 }{ sy-msgv2 }{ sy-msgv3 }{ sy-msgv3 }, { sy-subrc }| ). ENDIF. ENDIF. ELSE. IMPORT data = ls_file_item FROM DATA BUFFER lv_result. "#EC CI_SUBRC ASSERT sy-subrc = 0. add_to_return( is_file_item = ls_file_item iv_path = lv_path ). ENDIF. mv_free = mv_free + 1. ENDMETHOD. METHOD run_parallel. DATA: lv_msg TYPE c LENGTH 100, lv_free LIKE mv_free. ASSERT mv_free > 0. DO. CALL FUNCTION 'Z_ABAPGIT_SERIALIZE_PARALLEL' STARTING NEW TASK iv_task DESTINATION IN GROUP mv_group CALLING on_end_of_task ON END OF TASK EXPORTING iv_obj_type = is_tadir-object iv_obj_name = is_tadir-obj_name iv_devclass = is_tadir-devclass iv_language = iv_language iv_path = is_tadir-path iv_serialize_master_lang_only = mv_serialize_master_lang_only EXCEPTIONS system_failure = 1 MESSAGE lv_msg communication_failure = 2 MESSAGE lv_msg resource_failure = 3 OTHERS = 4. IF sy-subrc = 3. lv_free = mv_free. WAIT UNTIL mv_free <> lv_free UP TO 1 SECONDS. CONTINUE. ELSEIF sy-subrc <> 0. ASSERT lv_msg = '' AND 0 = 1. ENDIF. EXIT. ENDDO. mv_free = mv_free - 1. ENDMETHOD. METHOD run_sequential. DATA: lx_error TYPE REF TO zcx_abapgit_exception, ls_file_item TYPE zif_abapgit_objects=>ty_serialization. ls_file_item-item-obj_type = is_tadir-object. ls_file_item-item-obj_name = is_tadir-obj_name. ls_file_item-item-devclass = is_tadir-devclass. TRY. ls_file_item = zcl_abapgit_objects=>serialize( is_item = ls_file_item-item iv_serialize_master_lang_only = mv_serialize_master_lang_only iv_language = iv_language ). add_to_return( is_file_item = ls_file_item iv_path = is_tadir-path ). CATCH zcx_abapgit_exception INTO lx_error. IF NOT mi_log IS INITIAL. mi_log->add_exception( ix_exc = lx_error is_item = ls_file_item-item ). ENDIF. ENDTRY. ENDMETHOD. METHOD serialize. * serializes only objects DATA: lv_max TYPE i, li_progress TYPE REF TO zif_abapgit_progress. FIELD-SYMBOLS: <ls_tadir> LIKE LINE OF it_tadir. CLEAR mt_files. lv_max = determine_max_threads( iv_force_sequential ). mv_free = lv_max. mi_log = ii_log. li_progress = zcl_abapgit_progress=>get_instance( lines( it_tadir ) ). LOOP AT it_tadir ASSIGNING <ls_tadir>. li_progress->show( iv_current = sy-tabix iv_text = |Serialize { <ls_tadir>-obj_name }, { lv_max } threads| ). IF lv_max = 1. run_sequential( is_tadir = <ls_tadir> iv_language = iv_language ). ELSE. run_parallel( is_tadir = <ls_tadir> iv_task = |{ sy-tabix }| iv_language = iv_language ). WAIT UNTIL mv_free > 0 UP TO 120 SECONDS. ENDIF. ENDLOOP. WAIT UNTIL mv_free = lv_max UP TO 120 SECONDS. rt_files = mt_files. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 46911, 1096, 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, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 46911, 1096, 62, 9866, 62, 17204, 62, 8807, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 764, 198, 220, 220, 220, 337, 36252, 50, 319, 62, 437, 62, 1659, 62, 35943, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 79, 62, 35943, 41876, 537, 522, 764, 198, 220, 220, 220, 337, 36252, 50, 11389, 1096, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 83, 324, 343, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 16129, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2786, 5550, 38865, 827, 12, 75, 2303, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 6404, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3174, 62, 3107, 1843, 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, 17034, 62, 16624, 8, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 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, 3696, 62, 12001, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26495, 220, 220, 220, 220, 220, 220, 220, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 26518, 62, 397, 499, 18300, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 12001, 62, 33692, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 12001, 62, 33692, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 6404, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 24455, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 62, 926, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 7890, 62, 11250, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 7890, 62, 11250, 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, 16624, 8, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 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, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 10641, 2624, 41876, 269, 406, 49494, 3933, 764, 628, 220, 220, 220, 42715, 12, 26947, 308, 85, 62, 9806, 62, 16663, 82, 41876, 1312, 764, 198, 220, 220, 220, 42865, 45079, 62, 16624, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 62, 926, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 5787, 41876, 1312, 764, 198, 220, 220, 220, 42865, 21504, 62, 6404, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 8094, 41876, 374, 89, 15516, 62, 499, 565, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 46911, 1096, 62, 9866, 62, 17204, 62, 8807, 41876, 450, 499, 62, 30388, 764, 628, 220, 220, 220, 337, 36252, 50, 751, 62, 499, 441, 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, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 16624, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 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, 751, 62, 7890, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 7890, 62, 11250, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 7890, 62, 11250, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 16624, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 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, 751, 62, 26518, 62, 397, 499, 18300, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_abapgit_object_msag 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. TYPES: BEGIN OF ty_t100_texts, sprsl TYPE t100-sprsl, msgnr TYPE t100-msgnr, text TYPE t100-text, END OF ty_t100_texts . TYPES: tt_t100_texts TYPE STANDARD TABLE OF ty_t100_texts . TYPES: tty_t100 TYPE STANDARD TABLE OF t100 WITH NON-UNIQUE DEFAULT KEY . METHODS serialize_texts IMPORTING !io_xml TYPE REF TO zcl_abapgit_xml_output RAISING zcx_abapgit_exception . METHODS deserialize_texts IMPORTING !io_xml TYPE REF TO zcl_abapgit_xml_input RAISING zcx_abapgit_exception . METHODS serialize_longtexts_msag IMPORTING !it_t100 TYPE tty_t100 !io_xml TYPE REF TO zcl_abapgit_xml_output RAISING zcx_abapgit_exception . METHODS delete_msgid IMPORTING !iv_message_id TYPE arbgb . METHODS free_access_permission IMPORTING !iv_message_id TYPE arbgb . METHODS delete_documentation IMPORTING !iv_message_id TYPE arbgb . ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_MSAG IMPLEMENTATION. METHOD delete_documentation. DATA: lv_key_s TYPE dokhl-object. CLEAR lv_key_s. CALL FUNCTION 'DOCU_OBJECT_NAME_CONCATENATE' EXPORTING docu_id = 'NA' element = iv_message_id addition = ' ' IMPORTING object = lv_key_s EXCEPTIONS OTHERS = 0. CALL FUNCTION 'DOKU_DELETE_ALL' EXPORTING doku_id = 'NA' doku_object = lv_key_s generic_use = 'X' suppress_authority = space suppress_enqueue = space suppress_transport = space EXCEPTIONS header_without_text = 01 index_without_header = 02 no_authority_for_devclass_xxxx = 03 no_docu_found = 04 object_is_already_enqueued = 05 object_is_enqueued_by_corr = 06 user_break = 07. ENDMETHOD. METHOD delete_msgid. delete_documentation( iv_message_id ). DELETE FROM t100a WHERE arbgb = iv_message_id. IF sy-subrc = 0 OR sy-subrc = 4. CALL FUNCTION 'RS_TREE_OBJECT_PLACEMENT' EXPORTING object = iv_message_id operation = 'DELETE' program = space type = 'CN'. DELETE FROM t100o WHERE arbgb = iv_message_id. DELETE FROM t100t WHERE arbgb = iv_message_id. "#EC CI_NOFIRST DELETE FROM t100u WHERE arbgb = iv_message_id. DELETE FROM t100x WHERE arbgb = iv_message_id. DELETE FROM t100 WHERE arbgb = iv_message_id. ENDIF. ENDMETHOD. METHOD deserialize_texts. DATA: lv_msg_id TYPE rglif-message_id, ls_t100 TYPE t100, lt_t100t TYPE TABLE OF t100t, lt_t100_texts TYPE tt_t100_texts, lt_t100u TYPE TABLE OF t100u. FIELD-SYMBOLS: <ls_t100_text> TYPE ty_t100_texts. lv_msg_id = ms_item-obj_name. SELECT * FROM t100u INTO TABLE lt_t100u WHERE arbgb = lv_msg_id ORDER BY PRIMARY KEY. "#EC CI_GENBUFF io_xml->read( EXPORTING iv_name = 'T100_TEXTS' CHANGING cg_data = lt_t100_texts ). io_xml->read( EXPORTING iv_name = 'T100T' CHANGING cg_data = lt_t100t ). MODIFY t100t FROM TABLE lt_t100t. "#EC CI_SUBRC LOOP AT lt_t100_texts ASSIGNING <ls_t100_text>. "check if message exists READ TABLE lt_t100u TRANSPORTING NO FIELDS WITH KEY arbgb = lv_msg_id msgnr = <ls_t100_text>-msgnr BINARY SEARCH. CHECK sy-subrc = 0. "if original message doesn't exist no translations added MOVE-CORRESPONDING <ls_t100_text> TO ls_t100. ls_t100-arbgb = lv_msg_id. MODIFY t100 FROM ls_t100. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'MSAG: Table T100 modify failed' ). ENDIF. ENDLOOP. ENDMETHOD. METHOD free_access_permission. CALL FUNCTION 'RS_ACCESS_PERMISSION' EXPORTING mode = 'FREE' object = iv_message_id object_class = 'T100'. ENDMETHOD. METHOD serialize_longtexts_msag. DATA: lv_object TYPE dokhl-object, lt_objects TYPE STANDARD TABLE OF dokhl-object WITH NON-UNIQUE DEFAULT KEY, lt_dokil TYPE zif_abapgit_definitions=>tty_dokil, ls_dokil LIKE LINE OF lt_dokil. FIELD-SYMBOLS: <ls_t100> TYPE t100. IF lines( it_t100 ) = 0. RETURN. ENDIF. LOOP AT it_t100 ASSIGNING <ls_t100>. lv_object = <ls_t100>-arbgb && <ls_t100>-msgnr. INSERT lv_object INTO TABLE lt_objects. ENDLOOP. SELECT * FROM dokil INTO TABLE lt_dokil FOR ALL ENTRIES IN lt_objects WHERE id = 'NA' AND object = lt_objects-table_line ORDER BY PRIMARY KEY. CLEAR ls_dokil-dokstate. MODIFY lt_dokil FROM ls_dokil TRANSPORTING dokstate WHERE dokstate IS NOT INITIAL. IF lines( lt_dokil ) > 0. serialize_longtexts( io_xml = io_xml it_dokil = lt_dokil ). ENDIF. ENDMETHOD. METHOD serialize_texts. DATA: lv_msg_id TYPE rglif-message_id, lt_t100_texts TYPE tt_t100_texts, lt_t100t TYPE TABLE OF t100t, lt_i18n_langs TYPE TABLE OF langu. lv_msg_id = ms_item-obj_name. IF io_xml->i18n_params( )-serialize_master_lang_only = abap_true. RETURN. " skip ENDIF. " Collect additional languages " Skip master lang - it has been already serialized SELECT DISTINCT sprsl AS langu INTO TABLE lt_i18n_langs FROM t100t WHERE arbgb = lv_msg_id AND sprsl <> mv_language. "#EC CI_BYPASS "#EC CI_GENBUFF SORT lt_i18n_langs ASCENDING. IF lines( lt_i18n_langs ) > 0. SELECT * FROM t100t INTO CORRESPONDING FIELDS OF TABLE lt_t100t WHERE sprsl <> mv_language AND arbgb = lv_msg_id. "#EC CI_GENBUFF SELECT * FROM t100 INTO CORRESPONDING FIELDS OF TABLE lt_t100_texts FOR ALL ENTRIES IN lt_i18n_langs WHERE sprsl = lt_i18n_langs-table_line AND arbgb = lv_msg_id ORDER BY PRIMARY KEY. "#EC CI_SUBRC "#EC CI_GENBUFF SORT lt_t100t BY sprsl ASCENDING. SORT lt_t100_texts BY sprsl msgnr ASCENDING. io_xml->add( iv_name = 'I18N_LANGS' ig_data = lt_i18n_langs ). io_xml->add( iv_name = 'T100T' ig_data = lt_t100t ). io_xml->add( iv_name = 'T100_TEXTS' ig_data = lt_t100_texts ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~changed_by. SELECT SINGLE lastuser FROM t100a INTO rv_user WHERE arbgb = ms_item-obj_name. "#EC CI_GENBUFF IF sy-subrc <> 0 OR rv_user = ''. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: ls_t100a TYPE t100a, lv_frozen TYPE abap_bool, lv_message_id TYPE arbgb, lv_access_granted TYPE abap_bool. * parameter SUPPRESS_DIALOG doesnt exist in all versions of FM RS_DELETE_MESSAGE_ID * replaced with a copy lv_message_id = ms_item-obj_name. IF ms_item-obj_name = space. zcx_abapgit_exception=>raise( 'Error from (copy of) RS_DELETE_MESSAGE_ID' )."blank message id ENDIF. SELECT SINGLE * FROM t100a INTO ls_t100a WHERE arbgb = ms_item-obj_name. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from (copy of) RS_DELETE_MESSAGE_ID' )."not found ENDIF. CLEAR lv_frozen. CALL FUNCTION 'RS_ACCESS_PERMISSION' EXPORTING authority_check = 'X' global_lock = 'X' mode = 'MODIFY' object = lv_message_id object_class = 'T100' IMPORTING frozen = lv_frozen EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0 OR lv_frozen <> space. zcx_abapgit_exception=>raise( 'Error from (copy of) RS_DELETE_MESSAGE_ID' )."can't access ENDIF. lv_access_granted = abap_true. CALL FUNCTION 'RS_CORR_INSERT' EXPORTING global_lock = 'X' object = lv_message_id object_class = 'MSAG' mode = 'D' suppress_dialog = abap_true EXCEPTIONS cancelled = 01 permission_failure = 02. IF sy-subrc <> 0. IF lv_access_granted = abap_true. free_access_permission( lv_message_id ). ENDIF. zcx_abapgit_exception=>raise( 'Error from (copy of) RS_DELETE_MESSAGE_ID' )."can't access ENDIF. delete_msgid( lv_message_id ). IF lv_access_granted = abap_true. free_access_permission( lv_message_id ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~deserialize. * fm RPY_MESSAGE_ID_INSERT almost works, but not in older versions DATA: ls_t100a TYPE t100a, ls_t100t TYPE t100t, ls_t100u TYPE t100u, lt_t100 TYPE TABLE OF t100, lt_before TYPE TABLE OF t100u. FIELD-SYMBOLS: <ls_t100> LIKE LINE OF lt_t100. io_xml->read( EXPORTING iv_name = 'T100A' CHANGING cg_data = ls_t100a ). io_xml->read( EXPORTING iv_name = 'T100' CHANGING cg_data = lt_t100 ). corr_insert( iv_package ). SELECT * FROM t100u INTO TABLE lt_before WHERE arbgb = ls_t100a-arbgb ORDER BY msgnr. "#EC CI_GENBUFF "#EC CI_BYPASS LOOP AT lt_t100 ASSIGNING <ls_t100>. DELETE lt_before WHERE msgnr = <ls_t100>-msgnr. MODIFY t100 FROM <ls_t100>. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'MSAG: Table T100 modify failed' ). ENDIF. CLEAR ls_t100u. MOVE-CORRESPONDING <ls_t100> TO ls_t100u ##enh_ok. ls_t100u-name = sy-uname. ls_t100u-datum = sy-datum. ls_t100u-selfdef = '3'. MODIFY t100u FROM ls_t100u. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'MSAG: Table T100U modify failed' ). ENDIF. ENDLOOP. ls_t100a-masterlang = mv_language. ls_t100a-lastuser = sy-uname. ls_t100a-respuser = sy-uname. ls_t100a-ldate = sy-datum. ls_t100a-ltime = sy-uzeit. MODIFY t100a FROM ls_t100a. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'MSAG: Table T100A modify failed' ). ENDIF. ls_t100t-sprsl = mv_language. ls_t100t-arbgb = ls_t100a-arbgb. ls_t100t-stext = ls_t100a-stext. MODIFY t100t FROM ls_t100t. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'MSAG: Table T100T modify failed' ). ENDIF. LOOP AT lt_before INTO ls_t100u. DELETE FROM t100 WHERE arbgb = ls_t100u-arbgb AND msgnr = ls_t100u-msgnr. "#EC CI_SUBRC DELETE FROM t100u WHERE arbgb = ls_t100u-arbgb AND msgnr = ls_t100u-msgnr. "#EC CI_SUBRC ENDLOOP. deserialize_longtexts( io_xml ). deserialize_texts( io_xml ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_arbgb TYPE t100a-arbgb. SELECT SINGLE arbgb FROM t100a INTO lv_arbgb WHERE arbgb = ms_item-obj_name. "#EC CI_GENBUFF 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. DATA: lv_argument TYPE seqg3-garg. lv_argument = |{ ms_item-obj_name }|. OVERLAY lv_argument WITH ' '. lv_argument = lv_argument && '*'. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = |ES_MSGSI| iv_argument = lv_argument ). ENDMETHOD. METHOD zif_abapgit_object~jump. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ms_item-obj_name object_type = 'MSAG' in_new_window = abap_true. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_msg_id TYPE rglif-message_id, ls_inf TYPE t100a, lt_source TYPE tty_t100. lv_msg_id = ms_item-obj_name. SELECT SINGLE * FROM t100a INTO ls_inf WHERE arbgb = lv_msg_id. "#EC CI_GENBUFF IF sy-subrc <> 0. RETURN. ENDIF. CLEAR ls_inf-respuser. SELECT * FROM t100 INTO TABLE lt_source WHERE sprsl = mv_language AND arbgb = lv_msg_id ORDER BY PRIMARY KEY. "#EC CI_SUBRC "#EC CI_GENBUFF CLEAR: ls_inf-lastuser, ls_inf-ldate, ls_inf-ltime. io_xml->add( iv_name = 'T100A' ig_data = ls_inf ). io_xml->add( ig_data = lt_source iv_name = 'T100' ). serialize_longtexts_msag( it_t100 = lt_source io_xml = io_xml ). serialize_texts( io_xml ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 907, 363, 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, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 83, 3064, 62, 5239, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 599, 3808, 75, 41876, 256, 3064, 12, 34975, 6649, 11, 198, 220, 220, 220, 220, 220, 220, 220, 13845, 4593, 81, 41876, 256, 3064, 12, 907, 4593, 81, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 220, 41876, 256, 3064, 12, 5239, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 83, 3064, 62, 5239, 82, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 256, 83, 62, 83, 3064, 62, 5239, 82, 41876, 49053, 9795, 43679, 3963, 1259, 62, 83, 3064, 62, 5239, 82, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 256, 774, 62, 83, 3064, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 256, 3064, 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, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374, 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, 952, 62, 19875, 41876, 4526, 37, 5390, 1976, 565, 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, 952, 62, 19875, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 19875, 62, 15414, 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, 11389, 1096, 62, 6511, 5239, 82, 62, 907, 363, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 83, 3064, 41876, 256, 774, 62, 83, 3064, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 19875, 220, 41876, 4526, 37, 5390, 1976, 565, 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, 12233, 62, 19662, 312, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 20500, 62, 312, 41876, 610, 65, 22296, 764, 198, 220, 220, 220, 337, 36252, 50, 1479, 62, 15526, 62, 525, 3411, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 20500, 62, 312, 41876, 610, 65, 22296, 764, 198, 220, 220, 220, 337, 36252, 50, 12233, 62, 22897, 341, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 20500, 62, 312, 41876, 610, 65, 22296, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 44, 4090, 38, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 12233, 62, 22897, 341, 13, 198, 220, 220, 220, 42865, 25, 300, 85, 62, 2539, 62, 82, 41876, 466, 14636, 75, 12, 15252, 13, 628, 220, 220, 220, 30301, 1503, 300, 85, 62, 2539, 62, 82, 13, 198, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 38715, 52, 62, 9864, 23680, 62, 20608, 62, 10943, 34, 1404, 1677, 6158, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2205, 84, 62, 312, 220, 796, 705, 4535, 6, 198, 220, 220, 220, 220, 220, 220, 220, 5002, 220, 796, 21628, 62, 20500, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 3090, 796, 705, 220, 220, 705, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 220, 220, 796, 300, 85, 62, 2539, 62, 82, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 796, 657, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 35, 11380, 52, 62, 7206, 2538, 9328, 62, 7036, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 466, 23063, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 4535, 6, 198, 220, 220, 220, 220, 220, 220, 220, 466, 23063, 62, 15252, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 2539, 62, 82, 198, 220, 220, 220, 220, 220, 220, 220, 14276, 62, 1904, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 55, 6, 198, 220, 220, 220, 220, 220, 220, 220, 18175, 62, 9800, 414, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2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, 1, 1 ]
*&---------------------------------------------------------------------* *& Report zadicer_game *&---------------------------------------------------------------------* REPORT zadicer_game. PARAMETERS strid TYPE char12 AS LISTBOX VISIBLE LENGTH 80 MEMORY ID zadicer_strategy OBLIGATORY. PARAMETERS numgames TYPE i DEFAULT 100. PARAMETERS seed TYPE i DEFAULT 1. CLASS main DEFINITION. PUBLIC SECTION. METHODS start IMPORTING number_of_games TYPE i name_of_strategy TYPE zadicer_game_strategy. PRIVATE SECTION. DATA strategy TYPE REF TO zif_adicer_strategy. DATA game TYPE REF TO zif_adicer_game_engine. ENDCLASS. CLASS strategy_helper DEFINITION. PUBLIC SECTION. CLASS-METHODS set_listbox RETURNING VALUE(values) TYPE vrm_values. CLASS-METHODS get_by_id IMPORTING id TYPE char12 RETURNING VALUE(clsname) TYPE seoclsname. PRIVATE SECTION. TYPES: BEGIN OF strategy_id, id TYPE char12, clsname TYPE seoclsname, END OF strategy_id, strategy_ids TYPE SORTED TABLE OF strategy_id WITH UNIQUE KEY id. CLASS-DATA strategies TYPE strategy_ids. ENDCLASS. INITIALIZATION. strategy_helper=>set_listbox( ). CLASS main IMPLEMENTATION. METHOD start. game = NEW z_adicer_game_engine( ). game->start( numbers_games = number_of_games strategies = VALUE #( ( strategy_name = name_of_strategy ) ) variant = space seed = seed ). game->show_result( ). ENDMETHOD. ENDCLASS. CLASS strategy_helper IMPLEMENTATION. METHOD set_listbox. TRY. strategies = VALUE strategy_ids( FOR class IN NEW cl_oo_interface( 'ZIF_ADICER_STRATEGY' )->get_implementing_classes( ) ( id = class-clsname+18(12) clsname = class-clsname ) ). CALL FUNCTION 'VRM_SET_VALUES' EXPORTING id = 'STRID' values = VALUE vrm_values( FOR class IN NEW cl_oo_interface( 'ZIF_ADICER_STRATEGY' )->get_implementing_classes( ) ( key = class-clsname+18(12) text = NEW cl_oo_class( class-clsname )->class-descript ) ). CATCH cx_class_not_existent. ENDTRY. ENDMETHOD. METHOD get_by_id. clsname = strategies[ id = id ]-clsname. ENDMETHOD. ENDCLASS. START-OF-SELECTION. DATA(game) = NEW main( ). game->start( EXPORTING number_of_games = numgames name_of_strategy = strategy_helper=>get_by_id( strid ) ).
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 1976, 324, 16647, 62, 6057, 198, 9, 5, 10097, 30934, 9, 198, 198, 2200, 15490, 1976, 324, 16647, 62, 6057, 13, 628, 198, 27082, 2390, 2767, 4877, 965, 312, 41876, 1149, 1065, 7054, 39498, 39758, 50035, 34563, 406, 49494, 4019, 35153, 15513, 4522, 1976, 324, 16647, 62, 2536, 4338, 440, 9148, 3528, 1404, 15513, 13, 198, 27082, 2390, 2767, 4877, 997, 19966, 41876, 1312, 5550, 38865, 1802, 13, 198, 27082, 2390, 2767, 4877, 9403, 220, 220, 220, 220, 41876, 1312, 5550, 38865, 352, 13, 198, 198, 31631, 1388, 5550, 20032, 17941, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 923, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1271, 62, 1659, 62, 19966, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 62, 1659, 62, 2536, 4338, 41876, 1976, 324, 16647, 62, 6057, 62, 2536, 4338, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 4811, 41876, 4526, 37, 5390, 1976, 361, 62, 324, 16647, 62, 2536, 4338, 13, 198, 220, 220, 220, 42865, 983, 41876, 4526, 37, 5390, 1976, 361, 62, 324, 16647, 62, 6057, 62, 18392, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 4811, 62, 2978, 525, 5550, 20032, 17941, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 900, 62, 4868, 3524, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 27160, 8, 41876, 410, 26224, 62, 27160, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 651, 62, 1525, 62, 312, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1149, 1065, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 565, 82, 3672, 8, 41876, 384, 420, 7278, 3672, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 4811, 62, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 220, 220, 220, 220, 220, 41876, 1149, 1065, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 537, 82, 3672, 41876, 384, 420, 7278, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 4811, 62, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4811, 62, 2340, 41876, 311, 9863, 1961, 43679, 3963, 4811, 62, 312, 13315, 4725, 33866, 8924, 35374, 4686, 13, 628, 220, 220, 220, 42715, 12, 26947, 10064, 41876, 4811, 62, 2340, 13, 198, 198, 10619, 31631, 13, 628, 198, 1268, 2043, 12576, 14887, 6234, 13, 628, 220, 4811, 62, 2978, 525, 14804, 2617, 62, 4868, 3524, 7, 6739, 198, 198, 31631, 1388, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 923, 13, 198, 220, 220, 220, 983, 796, 12682, 1976, 62, 324, 16647, 62, 6057, 62, 18392, 7, 6739, 628, 220, 220, 220, 983, 3784, 9688, 7, 198, 220, 220, 220, 220, 220, 220, 220, 3146, 62, 19966, 796, 1271, 62, 1659, 62, 19966, 198, 220, 220, 220, 220, 220, 220, 220, 10064, 220, 220, 220, 796, 26173, 8924, 1303, 7, 357, 4811, 62, 3672, 220, 796, 1438, 62, 1659, 62, 2536, 4338, 1267, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 15304, 220, 220, 220, 220, 220, 220, 796, 2272, 198, 220, 220, 220, 220, 220, 220, 220, 9403, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 9403, 6739, 198, 220, 220, 220, 983, 3784, 12860, 62, 20274, 7, 6739, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 4811, 62, 2978, 525, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 900, 62, 4868, 3524, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 10064, 796, 26173, 8924, 4811, 62, 2340, 7, 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, 7473, 1398, 3268, 12682, 537, 62, 2238, 62, 39994, 7, 705, 57, 5064, 62, 2885, 2149, 1137, 62, 18601, 6158, 31212, 6, 1267, 3784, 1136, 62, 320, 26908, 278, 62, 37724, 7, 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, 357, 4686, 220, 796, 1398, 12, 565, 82, 3672, 10, 1507, 7, 1065, 8, 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, 537, 82, 3672, 796, 1398, 12, 565, 82, 3672, 1267, 6739, 628, 220, 220, 220, 220, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 13024, 44, 62, 28480, 62, 23428, 35409, 6, 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, 4686, 220, 220, 220, 220, 796, 705, 18601, 2389, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3815, 796, 26173, 8924, 410, 26224, 62, 27160, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1398, 3268, 12682, 537, 62, 2238, 62, 39994, 7, 705, 57, 5064, 62, 2885, 2149, 1137, 62, 18601, 6158, 31212, 6, 1267, 3784, 1136, 62, 320, 26908, 278, 62, 37724, 7, 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, 357, 1994, 220, 796, 1398, 12, 565, 82 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
REPORT zdemo_excel40. DATA: lo_excel TYPE REF TO zcl_excel, lo_worksheet TYPE REF TO zcl_excel_worksheet. DATA: lv_row TYPE zexcel_cell_row, lv_col TYPE i, lv_row_char TYPE char10, lv_value TYPE string, ls_fontcolor TYPE zexcel_style_color_argb. CONSTANTS: gc_save_file_name TYPE string VALUE '40_Printsettings.xlsx'. INCLUDE zdemo_excel_outputopt_incl. START-OF-SELECTION. " Creates active sheet CREATE OBJECT lo_excel. " Get active sheet lo_worksheet = lo_excel->get_active_worksheet( ). lo_worksheet->set_title( ip_title = 'Demo Printsettings' ). *--------------------------------------------------------------------* * Prepare sheet with trivial data * - first 4 columns will have fontocolor set * - first 3 rows will have fontcolor set * These marked cells will be used for repeatable rows/columns on printpages *--------------------------------------------------------------------* DO 100 TIMES. " Rows lv_row = sy-index . WRITE lv_row TO lv_row_char. DO 20 TIMES. lv_col = sy-index - 1. CONCATENATE sy-abcde+lv_col(1) lv_row_char INTO lv_value. lv_col = sy-index. lo_worksheet->set_cell( ip_row = lv_row ip_column = lv_col ip_value = lv_value ). TRY. IF lv_row <= 3. lo_worksheet->change_cell_style( ip_column = lv_col ip_row = lv_row ip_fill_filltype = zcl_excel_style_fill=>c_fill_solid ip_fill_fgcolor_rgb = zcl_excel_style_color=>c_yellow ). ENDIF. IF lv_col <= 4. lo_worksheet->change_cell_style( ip_column = lv_col ip_row = lv_row ip_font_color_rgb = zcl_excel_style_color=>c_red ). ENDIF. CATCH zcx_excel . ENDTRY. ENDDO. ENDDO. *--------------------------------------------------------------------* * Printsettings *--------------------------------------------------------------------* TRY. lo_worksheet->zif_excel_sheet_printsettings~set_print_repeat_columns( iv_columns_from = 'A' iv_columns_to = 'D' ). lo_worksheet->zif_excel_sheet_printsettings~set_print_repeat_rows( iv_rows_from = 1 iv_rows_to = 3 ). CATCH zcx_excel . ENDTRY. *** Create output lcl_output=>output( lo_excel ).
[ 2200, 15490, 1976, 9536, 78, 62, 1069, 5276, 1821, 13, 628, 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, 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, 13, 198, 198, 26947, 25, 300, 85, 62, 808, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 3846, 62, 808, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 4033, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 808, 62, 10641, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1149, 940, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 8367, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 43979, 62, 10331, 8043, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 7635, 62, 8043, 62, 853, 65, 13, 198, 198, 10943, 2257, 1565, 4694, 25, 308, 66, 62, 21928, 62, 7753, 62, 3672, 41876, 4731, 26173, 8924, 705, 1821, 62, 18557, 33692, 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, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 198, 220, 366, 7921, 274, 4075, 9629, 198, 220, 29244, 6158, 25334, 23680, 2376, 62, 1069, 5276, 13, 628, 220, 366, 3497, 4075, 9629, 198, 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, 7839, 7, 20966, 62, 7839, 796, 705, 11522, 78, 12578, 33692, 6, 6739, 198, 198, 9, 10097, 650, 9, 198, 9, 220, 43426, 9629, 351, 20861, 1366, 198, 9, 220, 220, 220, 532, 717, 604, 15180, 481, 423, 10369, 4668, 273, 900, 198, 9, 220, 220, 220, 532, 717, 513, 15274, 481, 220, 423, 10369, 8043, 900, 198, 9, 220, 220, 220, 2312, 7498, 4778, 481, 307, 973, 329, 9585, 540, 15274, 14, 28665, 82, 319, 3601, 31126, 198, 9, 10097, 650, 9, 198, 220, 8410, 1802, 31742, 1546, 13, 220, 366, 371, 1666, 628, 220, 220, 220, 300, 85, 62, 808, 796, 827, 12, 9630, 764, 198, 220, 220, 220, 44423, 300, 85, 62, 808, 5390, 300, 85, 62, 808, 62, 10641, 13, 628, 220, 220, 220, 8410, 1160, 31742, 1546, 13, 628, 220, 220, 220, 220, 220, 300, 85, 62, 4033, 796, 827, 12, 9630, 532, 352, 13, 198, 220, 220, 220, 220, 220, 39962, 1404, 1677, 6158, 827, 12, 39305, 2934, 10, 6780, 62, 4033, 7, 16, 8, 300, 85, 62, 808, 62, 10641, 39319, 300, 85, 62, 8367, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 4033, 796, 827, 12, 9630, 13, 198, 220, 220, 220, 220, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 3846, 7, 20966, 62, 808, 220, 220, 220, 796, 300, 85, 62, 808, 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, 20966, 62, 28665, 796, 300, 85, 62, 4033, 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, 20966, 62, 8367, 220, 796, 300, 85, 62, 8367, 6739, 628, 220, 220, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16876, 300, 85, 62, 808, 19841, 513, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 5225, 25473, 3784, 3803, 62, 3846, 62, 7635, 7, 220, 20966, 62, 28665, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 4033, 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, 20966, 62, 808, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 808, 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, 20966, 62, 20797, 62, 20797, 4906, 220, 220, 220, 796, 1976, 565, 62, 1069, 5276, 62, 7635, 62, 20797, 14804, 66, 62, 20797, 62, 39390, 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, 20966, 62, 20797, 62, 40616, 8043, 62, 81, 22296, 796, 1976, 565, 62, 1069, 5276, 62, 7635, 62, 8043, 14804, 66, 62, 36022, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16876, 300, 85, 62, 4033, 19841, 604, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 5225, 25473, 3784, 3803, 62, 3846, 62, 7635, 7, 220, 20966, 62, 28665, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 4033, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcx_expimp_table DEFINITION INHERITING FROM cx_static_check PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. METHODS get_text REDEFINITION. CONSTANTS: id_not_found TYPE sotr_conc VALUE '3330271CCEE91EDAA0C09443BE2F1451', table_does_not_exist TYPE sotr_conc VALUE '0800271CCEE91EDAA0C0942F145143BE', export_too_many_objects TYPE sotr_conc VALUE '1100271CCEE91EDAA0C65754BBAD86C6', not_an_export_import_table TYPE sotr_conc VALUE '2900271CCEE91EDAA0C6028C47A7469A', export_data_buffer_error TYPE sotr_conc VALUE '4600271CCEE91EDAA1823B6128B5DA40', database_error TYPE sotr_conc VALUE '5700271CCEE91EDAA1823C2A76631A40', import_format_error TYPE sotr_conc VALUE '690BB8396F051547E10000000A11447B', id_new_type_unlike_tabname TYPE sotr_conc VALUE '7400271CCEE91EDAA0C0942F145143BE'. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcx_expimp_table IMPLEMENTATION. METHOD get_text. CASE textid. WHEN table_does_not_exist. result = 'Table does not exist'(001). WHEN id_not_found. result = 'ID not found'(007). WHEN export_too_many_objects. result = 'Export of 1000 data objects maximum'(002). WHEN not_an_export_import_table. result = 'Table is not of type export/import'(003). WHEN export_data_buffer_error. result = 'Error during export to data buffer'(004). WHEN database_error. result = 'Error during database operation'(005). WHEN import_format_error. result = 'Import format error'(006). when id_new_type_unlike_tabname. result = 'Type of parameter ID_NEW must be like TABNAME'(008). WHEN OTHERS. super->get_text( ). ENDCASE. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 66, 87, 62, 11201, 11011, 62, 11487, 5550, 20032, 17941, 198, 220, 3268, 16879, 2043, 2751, 16034, 43213, 62, 12708, 62, 9122, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 5239, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 4686, 62, 1662, 62, 9275, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 264, 313, 81, 62, 1102, 66, 26173, 8924, 705, 2091, 1270, 28977, 4093, 6500, 6420, 1961, 3838, 15, 34, 2931, 34938, 12473, 17, 37, 1415, 4349, 3256, 198, 220, 220, 220, 220, 220, 3084, 62, 22437, 62, 1662, 62, 38476, 220, 220, 220, 220, 220, 220, 41876, 264, 313, 81, 62, 1102, 66, 26173, 8924, 705, 2919, 405, 28977, 4093, 6500, 6420, 1961, 3838, 15, 34, 2931, 3682, 37, 18781, 21139, 12473, 3256, 198, 220, 220, 220, 220, 220, 10784, 62, 18820, 62, 21834, 62, 48205, 220, 220, 220, 41876, 264, 313, 81, 62, 1102, 66, 26173, 8924, 705, 42060, 28977, 4093, 6500, 6420, 1961, 3838, 15, 34, 2996, 41874, 15199, 2885, 4521, 34, 21, 3256, 198, 220, 220, 220, 220, 220, 407, 62, 272, 62, 39344, 62, 11748, 62, 11487, 41876, 264, 313, 81, 62, 1102, 66, 26173, 8924, 705, 1959, 405, 28977, 4093, 6500, 6420, 1961, 3838, 15, 34, 1899, 2078, 34, 2857, 32, 4524, 3388, 32, 3256, 198, 220, 220, 220, 220, 220, 10784, 62, 7890, 62, 22252, 62, 18224, 220, 220, 41876, 264, 313, 81, 62, 1102, 66, 26173, 8924, 705, 3510, 405, 28977, 4093, 6500, 6420, 1961, 3838, 1507, 1954, 33, 21, 12762, 33, 20, 5631, 1821, 3256, 198, 220, 220, 220, 220, 220, 6831, 62, 18224, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 264, 313, 81, 62, 1102, 66, 26173, 8924, 705, 3553, 405, 28977, 4093, 6500, 6420, 1961, 3838, 1507, 1954, 34, 17, 32, 22, 2791, 3132, 32, 1821, 3256, 198, 220, 220, 220, 220, 220, 1330, 62, 18982, 62, 18224, 220, 220, 220, 220, 220, 220, 220, 41876, 264, 313, 81, 62, 1102, 66, 26173, 8924, 705, 35844, 15199, 23, 34107, 37, 2713, 1314, 2857, 36, 16, 24598, 32, 1157, 34825, 33, 3256, 198, 220, 220, 220, 220, 220, 4686, 62, 3605, 62, 4906, 62, 403, 2339, 62, 8658, 3672, 41876, 264, 313, 81, 62, 1102, 66, 26173, 8924, 705, 4524, 405, 28977, 4093, 6500, 6420, 1961, 3838, 15, 34, 2931, 3682, 37, 18781, 21139, 12473, 4458, 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, 11201, 11011, 62, 11487, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 651, 62, 5239, 13, 198, 220, 220, 220, 42001, 2420, 312, 13, 198, 220, 220, 220, 220, 220, 42099, 3084, 62, 22437, 62, 1662, 62, 38476, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 705, 10962, 857, 407, 2152, 6, 7, 8298, 737, 198, 220, 220, 220, 220, 220, 42099, 4686, 62, 1662, 62, 9275, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 705, 2389, 407, 1043, 6, 7, 25816, 737, 198, 220, 220, 220, 220, 220, 42099, 10784, 62, 18820, 62, 21834, 62, 48205, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 705, 43834, 286, 8576, 1366, 5563, 5415, 6, 7, 21601, 737, 198, 220, 220, 220, 220, 220, 42099, 407, 62, 272, 62, 39344, 62, 11748, 62, 11487, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 705, 10962, 318, 407, 286, 2099, 10784, 14, 11748, 6, 7, 11245, 737, 198, 220, 220, 220, 220, 220, 42099, 10784, 62, 7890, 62, 22252, 62, 18224, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 705, 12331, 1141, 10784, 284, 1366, 11876, 6, 7, 22914, 737, 198, 220, 220, 220, 220, 220, 42099, 6831, 62, 18224, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 705, 12331, 1141, 6831, 4905, 6, 7, 22544, 737, 198, 220, 220, 220, 220, 220, 42099, 1330, 62, 18982, 62, 18224, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 705, 20939, 5794, 4049, 6, 7, 28041, 737, 198, 220, 220, 220, 220, 220, 618, 4686, 62, 3605, 62, 4906, 62, 403, 2339, 62, 8658, 3672, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 705, 6030, 286, 11507, 4522, 62, 13965, 1276, 307, 588, 309, 6242, 20608, 6, 7, 25257, 737, 198, 220, 220, 220, 220, 220, 42099, 440, 4221, 4877, 13, 198, 220, 220, 220, 220, 220, 220, 220, 2208, 3784, 1136, 62, 5239, 7,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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 ]
CLASS zunitdemo_barc2017_6 DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. METHODS actual_day RETURNING VALUE(r_result) TYPE d. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zunitdemo_barc2017_6 IMPLEMENTATION. METHOD actual_day. TEST-SEAM sy_datum. r_result = sy-datum. END-TEST-SEAM. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 20850, 9536, 78, 62, 65, 5605, 5539, 62, 21, 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, 4036, 62, 820, 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, 288, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 20850, 9536, 78, 62, 65, 5605, 5539, 62, 21, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 4036, 62, 820, 13, 198, 220, 220, 220, 43001, 12, 5188, 2390, 827, 62, 19608, 388, 13, 198, 220, 220, 220, 220, 220, 374, 62, 20274, 796, 827, 12, 19608, 388, 13, 198, 220, 220, 220, 23578, 12, 51, 6465, 12, 5188, 2390, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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-POOL ZFG_BC009_TRREQ. "MESSAGE-ID .. * INCLUDE LZFG_BC009_TRREQD... " Local class definition
[ 42296, 4177, 2849, 12, 16402, 3535, 1168, 30386, 62, 2749, 28694, 62, 5446, 2200, 48, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 44, 1546, 4090, 8264, 12, 2389, 11485, 198, 198, 9, 3268, 5097, 52, 7206, 406, 57, 30386, 62, 2749, 28694, 62, 5446, 2200, 48, 35, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 10714, 1398, 6770, 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 ]
class ZCX_CASTLE_STORMED_BYVILLAGERS definition public inheriting from CX_NO_CHECK create public . public section. methods CONSTRUCTOR importing !TEXTID like TEXTID optional !PREVIOUS like PREVIOUS optional . protected section. private section. ENDCLASS. CLASS ZCX_CASTLE_STORMED_BYVILLAGERS IMPLEMENTATION. method CONSTRUCTOR. CALL METHOD SUPER->CONSTRUCTOR EXPORTING TEXTID = TEXTID PREVIOUS = PREVIOUS . endmethod. ENDCLASS.
[ 4871, 1168, 34, 55, 62, 44647, 2538, 62, 2257, 1581, 30733, 62, 17513, 53, 8267, 4760, 4877, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 327, 55, 62, 15285, 62, 50084, 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, 32541, 2389, 588, 40383, 2389, 11902, 198, 220, 220, 220, 220, 220, 5145, 46437, 12861, 20958, 588, 22814, 12861, 20958, 11902, 764, 198, 24326, 2665, 13, 198, 19734, 2665, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 34, 55, 62, 44647, 2538, 62, 2257, 1581, 30733, 62, 17513, 53, 8267, 4760, 4877, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 2446, 7102, 46126, 1581, 13, 198, 34, 7036, 337, 36252, 33088, 3784, 10943, 46126, 1581, 198, 6369, 15490, 2751, 198, 32541, 2389, 796, 40383, 2389, 198, 46437, 12861, 20958, 796, 22814, 12861, 20958, 198, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_excel_security DEFINITION PUBLIC FINAL CREATE PUBLIC . *"* public components of class ZCL_EXCEL_SECURITY *"* do not include other source files here!!! PUBLIC SECTION. TYPE-POOLS abap . DATA lockrevision TYPE flag . DATA lockstructure TYPE flag . DATA lockwindows TYPE flag . DATA revisionspassword TYPE zexcel_revisionspassword . DATA workbookpassword TYPE zexcel_workbookpassword . METHODS is_security_enabled RETURNING VALUE(ep_security_enabled) TYPE flag . *"* protected components of class ZABAP_EXCEL_SECURITY *"* do not include other source files here!!! *"* protected components of class ZABAP_EXCEL_SECURITY *"* do not include other source files here!!! PROTECTED SECTION. *"* private components of class ZABAP_EXCEL_SECURITY *"* do not include other source files here!!! PRIVATE SECTION. ENDCLASS. CLASS zcl_excel_security IMPLEMENTATION. METHOD is_security_enabled. IF lockrevision EQ abap_true OR lockstructure EQ abap_true OR lockwindows EQ abap_true. ep_security_enabled = abap_true. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 1069, 5276, 62, 12961, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 198, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 6369, 34, 3698, 62, 23683, 4261, 9050, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 41876, 12, 16402, 3535, 50, 450, 499, 764, 628, 220, 220, 220, 42865, 5793, 260, 10178, 41876, 6056, 764, 198, 220, 220, 220, 42865, 5793, 301, 5620, 41876, 6056, 764, 198, 220, 220, 220, 42865, 5793, 28457, 41876, 6056, 764, 198, 220, 220, 220, 42865, 33315, 28712, 41876, 1976, 1069, 5276, 62, 18218, 3279, 28712, 764, 198, 220, 220, 220, 42865, 670, 2070, 28712, 41876, 1976, 1069, 5276, 62, 1818, 2070, 28712, 764, 628, 220, 220, 220, 337, 36252, 50, 318, 62, 12961, 62, 25616, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 538, 62, 12961, 62, 25616, 8, 41876, 6056, 764, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 6242, 2969, 62, 6369, 34, 3698, 62, 23683, 4261, 9050, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 6242, 2969, 62, 6369, 34, 3698, 62, 23683, 4261, 9050, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 9, 1, 9, 2839, 6805, 286, 1398, 1168, 6242, 2969, 62, 6369, 34, 3698, 62, 23683, 4261, 9050, 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, 1976, 565, 62, 1069, 5276, 62, 12961, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 318, 62, 12961, 62, 25616, 13, 198, 220, 220, 220, 16876, 5793, 260, 10178, 36529, 450, 499, 62, 7942, 6375, 5793, 301, 5620, 36529, 450, 499, 62, 7942, 6375, 5793, 28457, 36529, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 2462, 62, 12961, 62, 25616, 796, 450, 499, 62, 7942, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ZCONCURRENCY_API *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT zconcurrency_api. TYPE-POOLS: spta. *&---------------------------------------------------------------------* *& Form before_rfc *&---------------------------------------------------------------------* FORM before_rfc USING is_before_rfc_imp TYPE spta_t_before_rfc_imp CHANGING cs_before_rfc_exp TYPE spta_t_before_rfc_exp ct_rfcdata TYPE spta_t_indxtab ct_failed_objects TYPE spta_t_failed_objects ct_objects_in_process TYPE spta_t_objects_in_process co_capi_spta_gateway TYPE REF TO zcl_capi_spta_gateway. STATICS: lo_tasks_iterator TYPE REF TO zif_capi_iterator. DATA: lo_task TYPE REF TO zif_capi_task, lv_task TYPE xstring, ls_objects_in_process LIKE LINE OF ct_objects_in_process. IF ct_failed_objects[] IS NOT INITIAL. PERFORM process_failed_objects CHANGING cs_before_rfc_exp ct_rfcdata[] ct_failed_objects[] ct_objects_in_process[] co_capi_spta_gateway. RETURN. ENDIF. IF lo_tasks_iterator IS NOT BOUND. lo_tasks_iterator = co_capi_spta_gateway->mo_tasks->get_iterator( ). ENDIF. IF lo_tasks_iterator->has_next( ) = abap_true. lo_task ?= lo_tasks_iterator->next( ). lv_task = zcl_capi_spta_gateway=>serialize_task( lo_task ). CALL FUNCTION 'SPTA_INDX_PACKAGE_ENCODE' EXPORTING data = lv_task IMPORTING indxtab = ct_rfcdata. ls_objects_in_process-obj_id = lo_task->get_id( ). APPEND ls_objects_in_process TO ct_objects_in_process[]. cs_before_rfc_exp-start_rfc = abap_true. ELSE. cs_before_rfc_exp-start_rfc = space. ENDIF. ENDFORM. *&---------------------------------------------------------------------* *& Form in_rfc *&---------------------------------------------------------------------* FORM in_rfc USING is_in_rfc_imp TYPE spta_t_in_rfc_imp CHANGING cs_in_rfc_exp TYPE spta_t_in_rfc_exp ct_rfcdata TYPE spta_t_indxtab. DATA: lv_task TYPE xstring, lo_task TYPE REF TO zif_capi_task, lo_result TYPE REF TO if_serializable_object, lv_result TYPE xstring. SET UPDATE TASK LOCAL. CALL FUNCTION 'SPTA_INDX_PACKAGE_DECODE' EXPORTING indxtab = ct_rfcdata IMPORTING data = lv_task. lo_task = zcl_capi_spta_gateway=>deserialize_task( lv_task ). lo_result = lo_task->zif_capi_callable~call( ). lv_result = zcl_capi_spta_gateway=>serialize_result( lo_result ). CALL FUNCTION 'SPTA_INDX_PACKAGE_ENCODE' EXPORTING data = lv_result IMPORTING indxtab = ct_rfcdata. COMMIT WORK. ENDFORM. *&---------------------------------------------------------------------* *& Form after_rfc *&---------------------------------------------------------------------* FORM after_rfc USING it_rfcdata TYPE spta_t_indxtab iv_rfcsubrc TYPE sy-subrc iv_rfcmsg TYPE spta_t_rfcmsg it_objects_in_process TYPE spta_t_objects_in_process is_after_rfc_imp TYPE spta_t_after_rfc_imp CHANGING cs_after_rfc_exp TYPE spta_t_after_rfc_exp co_capi_spta_gateway TYPE REF TO zcl_capi_spta_gateway. CONSTANTS: lc_max_task_crash TYPE i VALUE 1. DATA: lv_result TYPE xstring, lo_result TYPE REF TO object, ls_objects_in_process LIKE LINE OF it_objects_in_process, lv_task_id TYPE guid_32, lv_tc_size TYPE i, lv_rc_size TYPE i. IF iv_rfcsubrc IS INITIAL. * Task completed successfully CALL FUNCTION 'SPTA_INDX_PACKAGE_DECODE' EXPORTING indxtab = it_rfcdata IMPORTING data = lv_result. lo_result = zcl_capi_spta_gateway=>deserialize_result( lv_result ). co_capi_spta_gateway->mo_results->add( lo_result ). lv_tc_size = co_capi_spta_gateway->mo_tasks->size( ). lv_rc_size = co_capi_spta_gateway->mo_results->size( ). cl_progress_indicator=>progress_indicate( i_text = '&1% (&2 of &3) of the tasks processed'(001) i_processed = lv_rc_size i_total = lv_tc_size i_output_immediately = abap_true ). ELSE. READ TABLE it_objects_in_process INTO ls_objects_in_process INDEX 1. IF sy-subrc = 0. lv_task_id = ls_objects_in_process-obj_id. co_capi_spta_gateway->mo_capi_message_handler->add_message( iv_task_id = lv_task_id iv_task_name = '' iv_rfcsubrc = iv_rfcsubrc iv_rfcmsg = iv_rfcmsg ). IF ls_objects_in_process-fail_count = lc_max_task_crash. * If the task has already crashed, and now it has crashed a second time, * we will not restart it cs_after_rfc_exp-no_resubmission_on_error = abap_true. ELSE. cs_after_rfc_exp-no_resubmission_on_error = co_capi_spta_gateway->mv_no_resubmission_on_error. ENDIF. ENDIF. ENDIF. ENDFORM. *&---------------------------------------------------------------------* *& Form process_failed_objects *&---------------------------------------------------------------------* FORM process_failed_objects CHANGING cs_before_rfc_exp TYPE spta_t_before_rfc_exp ct_rfcdata TYPE spta_t_indxtab ct_failed_objects TYPE spta_t_failed_objects ct_objects_in_process TYPE spta_t_objects_in_process co_capi_spta_gateway TYPE REF TO zcl_capi_spta_gateway. DATA: lo_tasks_iterator TYPE REF TO zif_capi_iterator, lo_task TYPE REF TO zif_capi_task, lv_task TYPE xstring, ls_objects_in_process LIKE LINE OF ct_objects_in_process. FIELD-SYMBOLS: <ls_failed_objects> LIKE LINE OF ct_failed_objects. READ TABLE ct_failed_objects ASSIGNING <ls_failed_objects> INDEX 1. IF <ls_failed_objects> IS ASSIGNED. lo_tasks_iterator = co_capi_spta_gateway->mo_tasks->get_iterator( ). WHILE lo_tasks_iterator->has_next( ) = abap_true. lo_task ?= lo_tasks_iterator->next( ). IF lo_task->get_id( ) = <ls_failed_objects>-obj_id. lv_task = zcl_capi_spta_gateway=>serialize_task( lo_task ). CALL FUNCTION 'SPTA_INDX_PACKAGE_ENCODE' EXPORTING data = lv_task IMPORTING indxtab = ct_rfcdata. ls_objects_in_process-obj_id = <ls_failed_objects>-obj_id. ls_objects_in_process-fail_count = <ls_failed_objects>-fail_count + 1. ls_objects_in_process-last_error = <ls_failed_objects>-last_error. APPEND ls_objects_in_process TO ct_objects_in_process[]. CLEAR: ct_failed_objects[], ct_failed_objects. cs_before_rfc_exp-start_rfc = abap_true. EXIT. ENDIF. ENDWHILE. ENDIF. ENDFORM.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 1168, 10943, 34, 31302, 45155, 62, 17614, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 2200, 15490, 1976, 1102, 34415, 62, 15042, 13, 198, 198, 25216, 12, 16402, 3535, 50, 25, 264, 32283, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 220, 220, 220, 220, 5178, 220, 878, 62, 81, 16072, 198, 9, 5, 10097, 30934, 9, 198, 21389, 878, 62, 81, 16072, 1294, 2751, 318, 62, 19052, 62, 81, 16072, 62, 11011, 41876, 264, 32283, 62, 83, 62, 19052, 62, 81, 16072, 62, 11011, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 50115, 62, 19052, 62, 81, 16072, 62, 11201, 41876, 264, 32283, 62, 83, 62, 19052, 62, 81, 16072, 62, 11201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 83, 62, 81, 16072, 7890, 41876, 264, 32283, 62, 83, 62, 521, 742, 397, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 83, 62, 47904, 62, 48205, 41876, 264, 32283, 62, 83, 62, 47904, 62, 48205, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 83, 62, 48205, 62, 259, 62, 14681, 41876, 264, 32283, 62, 83, 62, 48205, 62, 259, 62, 14681, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 763, 62, 11128, 72, 62, 82, 32283, 62, 10494, 1014, 41876, 4526, 37, 5390, 1976, 565, 62, 11128, 72, 62, 82, 32283, 62, 10494, 1014, 13, 628, 220, 15486, 19505, 25, 2376, 62, 83, 6791, 62, 48727, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 11128, 72, 62, 48727, 13, 198, 220, 42865, 25, 2376, 62, 35943, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 11128, 72, 62, 35943, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 35943, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 48205, 62, 259, 62, 14681, 34178, 48920, 3963, 269, 83, 62, 48205, 62, 259, 62, 14681, 13, 628, 220, 16876, 269, 83, 62, 47904, 62, 48205, 21737, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 19878, 21389, 1429, 62, 47904, 62, 48205, 5870, 15567, 2751, 50115, 62, 19052, 62, 81, 16072, 62, 11201, 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, 269, 83, 62, 81, 16072, 7890, 21737, 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, 269, 83, 62, 47904, 62, 48205, 21737, 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, 269, 83, 62, 48205, 62, 259, 62, 14681, 21737, 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, 763, 62, 11128, 72, 62, 82, 32283, 62, 10494, 1014, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 5064, 13, 628, 220, 16876, 2376, 62, 83, 6791, 62, 48727, 3180, 5626, 347, 15919, 13, 198, 220, 220, 220, 2376, 62, 83, 6791, 62, 48727, 796, 763, 62, 11128, 72, 62, 82, 32283, 62, 10494, 1014, 3784, 5908, 62, 83, 6791, 3784, 1136, 62, 48727, 7, 6739, 198, 220, 23578, 5064, 13, 628, 220, 16876, 2376, 62, 83, 6791, 62, 48727, 3784, 10134, 62, 19545, 7, 1267, 796, 450, 499, 62, 7942, 13, 628, 220, 220, 220, 2376, 62, 35943, 5633, 28, 2376, 62, 83, 6791, 62, 48727, 3784, 19545, 7, 6739, 198, 220, 220, 220, 300, 85, 62, 35943, 796, 1976, 565, 62, 11128, 72, 62, 82, 32283, 62, 10494, 1014, 14804, 46911, 1096, 62, 35943, 7, 2376, 62, 35943, 6739, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 4303, 5603, 62, 12115, 55, 62, 47, 8120, 11879, 62, 24181, 16820, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 220, 220, 220, 796, 300, 85, 62, 35943, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 773, 742, 397, 796, 269, 83, 62, 81, 16072, 7890, 13, 628, 220, 220, 220, 43979, 62, 48205, 62, 259, 62, 14681, 12, 26801, 62, 312, 796, 2376, 62, 35943, 3784, 1136, 62, 312, 7, 6739, 198, 220, 220, 220, 43504, 10619, 43979, 62, 48205, 62, 259, 62, 14681, 5390, 269, 83, 62, 48205, 62, 259, 62, 14681, 58, 4083, 628, 220, 220, 220, 50115, 62, 19052, 62, 81, 16072, 62, 11201, 12, 9688, 62, 81, 16072, 796, 450, 499, 62, 7942, 13, 198, 220, 17852, 5188, 13, 198, 220, 220, 220, 50115, 62, 19052, 62, 81, 16072, 62, 11201, 12, 9688, 62, 81, 16072, 796, 2272, 13, 198, 220, 23578, 5064, 13, 198, 198, 1677, 8068, 1581, 44, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 220, 220, 220, 220, 5178, 220, 287, 62, 81, 16072, 198, 9, 5, 10097, 30934, 9, 198, 21389, 287, 62, 81, 16072, 1294, 2751, 318, 62, 259, 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,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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 ]
class ZCL_IDOC_OUTPUT_INV definition public inheriting from ZCL_IDOC_OUTPUT create public . public section. *"* public components of class ZCL_IDOC_OUTPUT_INV *"* do not include other source files here!!! protected section. *"* protected components of class ZCL_IDOC_OUTPUT_INV *"* do not include other source files here!!! methods POSTPROCESS redefinition . methods PREPROCESS redefinition . methods PROCESS_IDOC_FM redefinition . methods VALIDATION_CHECK redefinition . private section. *"* private components of class ZCL_IDOC_OUTPUT_INV *"* do not include other source files here!!! ENDCLASS. CLASS ZCL_IDOC_OUTPUT_INV IMPLEMENTATION. METHOD postprocess. FIELD-SYMBOLS: <lfs_edidd> LIKE LINE OF me->ref_edidd->*, <lfs_e1edk01> TYPE e1edk01. LOOP AT me->ref_edidd->* ASSIGNING <lfs_edidd>. CASE <lfs_edidd>-segnam. WHEN 'E1EDK01'. ASSIGN <lfs_edidd>-sdata TO <lfs_e1edk01> CASTING. <lfs_e1edk01>-curcy = 'USD'. WHEN OTHERS. ENDCASE. ENDLOOP. ENDMETHOD. METHOD preprocess. ENDMETHOD. METHOD process_idoc_fm. DATA: lv_error_msg TYPE string. CALL FUNCTION 'IDOC_OUTPUT_INVOIC' EXPORTING object = me->s_nast control_record_in = me->s_edidc IMPORTING control_record_out = me->s_edidc object_type = me->v_obj_type TABLES int_edidd = me->ref_edidd->* EXCEPTIONS error_message_received = 1 data_not_relevant_for_sending = 2 OTHERS = 3. CASE sy-subrc. WHEN 0. * NOP WHEN 2. MESSAGE ID sy-msgid TYPE c_msg_type_error NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO lv_error_msg. RAISE EXCEPTION TYPE zcx_idoc_data_not_for_send EXPORTING msg = lv_error_msg. WHEN OTHERS. RAISE EXCEPTION TYPE zcx_idoc_generic_process_error EXPORTING msgty = sy-msgty msgid = sy-msgid msgno = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4. ENDCASE. ENDMETHOD. METHOD validation_check. * Sample to raise not relevant for send if some criteria is not fulfilled * DATA: * lv_msg TYPE string. * * RAISE EXCEPTION TYPE zcx_idoc_data_not_for_send * EXPORTING * msg = lv_msg. ENDMETHOD. ENDCLASS.
[ 4871, 1168, 5097, 62, 2389, 4503, 62, 2606, 7250, 3843, 62, 1268, 53, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1168, 5097, 62, 2389, 4503, 62, 2606, 7250, 3843, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 2389, 4503, 62, 2606, 7250, 3843, 62, 1268, 53, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 24326, 2665, 13, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 5097, 62, 2389, 4503, 62, 2606, 7250, 3843, 62, 1268, 53, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 628, 220, 5050, 24582, 4805, 4503, 7597, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 22814, 4805, 4503, 7597, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 41755, 7597, 62, 2389, 4503, 62, 23264, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 26173, 2389, 6234, 62, 50084, 198, 220, 220, 220, 34087, 17750, 764, 198, 19734, 2665, 13, 198, 9, 1, 9, 2839, 6805, 286, 1398, 1168, 5097, 62, 2389, 4503, 62, 2606, 7250, 3843, 62, 1268, 53, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 2389, 4503, 62, 2606, 7250, 3843, 62, 1268, 53, 30023, 2538, 10979, 6234, 13, 628, 198, 49273, 1281, 14681, 13, 628, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 198, 220, 220, 220, 1279, 1652, 82, 62, 276, 1638, 29, 34178, 48920, 3963, 502, 3784, 5420, 62, 276, 1638, 3784, 25666, 198, 220, 220, 220, 1279, 1652, 82, 62, 68, 16, 276, 74, 486, 29, 41876, 304, 16, 276, 74, 486, 13, 628, 220, 17579, 3185, 5161, 502, 3784, 5420, 62, 276, 1638, 3784, 9, 24994, 3528, 15871, 1279, 1652, 82, 62, 276, 1638, 28401, 198, 220, 220, 220, 42001, 1279, 1652, 82, 62, 276, 1638, 29, 12, 325, 4593, 321, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 36, 16, 1961, 42, 486, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 24994, 16284, 1279, 1652, 82, 62, 276, 1638, 29, 12, 82, 7890, 5390, 1279, 1652, 82, 62, 68, 16, 276, 74, 486, 29, 327, 11262, 2751, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1279, 1652, 82, 62, 68, 16, 276, 74, 486, 29, 12, 22019, 948, 796, 705, 29072, 4458, 198, 220, 220, 220, 220, 220, 42099, 440, 4221, 4877, 13, 198, 220, 220, 220, 23578, 34, 11159, 13, 198, 220, 23578, 21982, 3185, 13, 198, 198, 10619, 49273, 13, 628, 198, 49273, 662, 14681, 13, 628, 198, 198, 10619, 49273, 13, 628, 198, 49273, 1429, 62, 312, 420, 62, 38353, 13, 628, 220, 42865, 25, 198, 220, 220, 220, 300, 85, 62, 18224, 62, 19662, 41876, 4731, 13, 628, 220, 42815, 29397, 4177, 2849, 705, 2389, 4503, 62, 2606, 7250, 3843, 62, 1268, 29516, 2149, 6, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 2134, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 502, 3784, 82, 62, 77, 459, 198, 220, 220, 220, 220, 220, 1630, 62, 22105, 62, 259, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 502, 3784, 82, 62, 276, 312, 66, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 1630, 62, 22105, 62, 448, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 502, 3784, 82, 62, 276, 312, 66, 198, 220, 220, 220, 220, 220, 2134, 62, 4906, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 502, 3784, 85, 62, 26801, 62, 4906, 198, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 493, 62, 276, 1638, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 502, 3784, 5420, 62, 276, 1638, 3784, 9, 198, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 4049, 62, 20500, 62, 47844, 220, 220, 220, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 1366, 62, 1662, 62, 49659, 62, 1640, 62, 82, 1571, 796, 362, 198, 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, 220, 220, 796, 513, 13, 198, 220, 42001, 827, 12, 7266, 6015, 13, 198, 220, 220, 220, 42099, 657, 13, 198, 9, 220, 220, 220, 220, 220, 220, 399, 3185, 198, 220, 220, 220, 42099, 362, 13, 198, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 4522, 827, 12, 19662, 312, 41876, 269, 62, 19662, 62, 4906, 62, 18224, 36871, 13246, 827, 12, 19662, 3919, 198, 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, 39319, 300, 85, 62, 18224, 62, 19662, 13, 198, 220, 220, 220, 220, 220, 17926, 24352, 7788, 42006, 2849, 41876, 1976, 66, 87, 62, 312, 420, 62, 7890, 62, 1662, 62, 1640, 62, 21280, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31456, 796, 300, 85, 62, 18224, 62, 19662, 13, 198, 220, 220, 220, 42099, 440, 4221, 4877, 13, 198, 220, 220, 220, 220, 220, 17926, 24352, 7788, 42006, 2849, 41876, 1976, 66, 87, 62, 312, 420, 62, 41357, 62, 14681, 62, 18224, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31456, 774, 796, 827, 12, 19662, 774, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31456, 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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 ]
CLASS zcl_abapgit_http_adt DEFINITION PUBLIC INHERITING FROM zcl_abapgit_http CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS determine_access_level IMPORTING !iv_url TYPE string RETURNING VALUE(rv_repo_access) TYPE string RAISING zcx_abapgit_exception . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_abapgit_http_adt IMPLEMENTATION. METHOD determine_access_level. * todo, DATA: lv_uri TYPE string, lv_scheme TYPE string, li_client TYPE REF TO if_http_client, lo_proxy_configuration TYPE REF TO zcl_abapgit_proxy_config, lv_text TYPE string, lo_client TYPE REF TO zcl_abapgit_http_client, lv_service TYPE string VALUE 'upload'. CREATE OBJECT lo_proxy_configuration. cl_http_client=>create_by_url( EXPORTING url = zcl_abapgit_url=>host( iv_url ) ssl_id = 'ANONYM' proxy_host = lo_proxy_configuration->get_proxy_url( iv_url ) proxy_service = lo_proxy_configuration->get_proxy_port( iv_url ) IMPORTING client = li_client EXCEPTIONS argument_not_found = 1 plugin_not_active = 2 internal_error = 3 OTHERS = 4 ). IF sy-subrc <> 0. CASE sy-subrc. WHEN 1. " make sure: " a) SSL is setup properly in STRUST lv_text = 'HTTPS ARGUMENT_NOT_FOUND | STRUST/SSL Setup correct?'. WHEN OTHERS. lv_text = 'While creating HTTP Client'. "#EC NOTEXT ENDCASE. zcx_abapgit_exception=>raise( lv_text ). ENDIF. IF lo_proxy_configuration->get_proxy_authentication( iv_url ) = abap_true. zcl_abapgit_proxy_auth=>run( li_client ). ENDIF. CREATE OBJECT lo_client EXPORTING ii_client = li_client. IF is_local_system( iv_url ) = abap_true. li_client->send_sap_logon_ticket( ). ENDIF. li_client->request->set_cdata( '' ). li_client->request->set_header_field( name = '~request_method' value = 'GET' ). li_client->request->set_header_field( name = 'user-agent' value = get_agent( ) ). "#EC NOTEXT lv_uri = zcl_abapgit_url=>path_name( iv_url ) && '/info/refs?service=git-' && lv_service && '-pack'. li_client->request->set_header_field( name = '~request_uri' value = lv_uri ). " Disable internal auth dialog (due to its unclarity) li_client->propertytype_logon_popup = if_http_client=>co_disabled. zcl_abapgit_login_manager=>load( iv_uri = iv_url ii_client = li_client ). zcl_abapgit_exit=>get_instance( )->http_client( ii_client = li_client iv_url = iv_url ). lo_client->send_receive( ). IF check_auth_requested( li_client ) = abap_true. rv_repo_access = 'PRIVATE'. ELSE. rv_repo_access = 'PUBLIC'. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 4023, 62, 324, 83, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 4023, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 5004, 62, 15526, 62, 5715, 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, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 260, 7501, 62, 15526, 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, 1976, 565, 62, 397, 499, 18300, 62, 4023, 62, 324, 83, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 5004, 62, 15526, 62, 5715, 13, 198, 198, 9, 284, 4598, 11, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 9900, 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, 220, 220, 220, 220, 300, 85, 62, 15952, 1326, 220, 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, 7649, 62, 16366, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 16366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 36436, 62, 11250, 3924, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 36436, 62, 11250, 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, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 16366, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 4023, 62, 16366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 15271, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 25850, 4458, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 2376, 62, 36436, 62, 11250, 3924, 13, 628, 220, 220, 220, 537, 62, 4023, 62, 16366, 14804, 17953, 62, 1525, 62, 6371, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 19016, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1976, 565, 62, 397, 499, 18300, 62, 6371, 14804, 4774, 7, 21628, 62, 6371, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 264, 6649, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 1565, 40508, 44, 6, 198, 220, 220, 220, 220, 220, 220, 220, 15741, 62, 4774, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2376, 62, 36436, 62, 11250, 3924, 3784, 1136, 62, 36436, 62, 6371, 7, 21628, 62, 6371, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 15741, 62, 15271, 220, 220, 220, 220, 220, 796, 2376, 62, 36436, 62, 11250, 3924, 3784, 1136, 62, 36436, 62, 634, 7, 21628, 62, 6371, 1267, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5456, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 7649, 62, 16366, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 4578, 62, 1662, 62, 9275, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 13877, 62, 1662, 62, 5275, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 5387, 62, 18224, 220, 220, 220, 220, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 604, 6739, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 42001, 827, 12, 7266, 6015, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42099, 352, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 787, 1654, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 257, 8, 25952, 318, 9058, 6105, 287, 19269, 7759, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 5239, 796, 705, 6535, 28820, 5923, 38, 5883, 3525, 62, 11929, 62, 37, 15919, 930, 19269, 7759, 14, 31127, 31122, 3376, 30, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 42099, 440, 4221, 4877, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 5239, 796, 705, 3633, 4441, 14626, 20985, 4458, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 628, 220, 220, 220, 220, 220, 23578, 34, 11159, 13, 198, 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, 5064, 13, 628, 220, 220, 220, 16876, 2376, 62, 36436, 62, 11250, 3924, 3784, 1136, 62, 36436, 62, 41299, 3299, 7, 21628, 62, 6371, 1267, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 1976, 565, 62, 397, 499, 18300, 62, 36436, 62, 18439, 14804, 5143, 7, 7649, 62, 16366, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 2376, 62, 16366, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 16366, 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, 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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 ]
CLASS y_check_method_return_bool DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC. PUBLIC SECTION. DATA method_name TYPE string. METHODS constructor. PROTECTED SECTION. METHODS inspect_tokens REDEFINITION. METHODS execute_check REDEFINITION. PRIVATE SECTION. DATA good_method_names_beginning TYPE TABLE OF string. DATA good_method_names_containing TYPE TABLE OF string. METHODS contains_name_condition IMPORTING !stmnt_index TYPE i RETURNING VALUE(result) TYPE abap_bool. ENDCLASS. CLASS Y_CHECK_METHOD_RETURN_BOOL IMPLEMENTATION. METHOD constructor. super->constructor( ). description = 'Method Name misleading for Boolean Return Type'(001). category = 'Y_CHECK_CATEGORY'. position = '480'. version = '0000'. has_documentation = abap_true. settings-pseudo_comment = '"#EC METH_RET_BOOL' ##NO_TEXT. settings-disable_threshold_selection = abap_true. settings-threshold = 0. settings-prio = 'W'. settings-documentation = |{ c_docs_path-checks }method-return-bool.md|. y_message_registration=>add_message( EXPORTING check_name = me->myname text = '[Clean Code]: Method &1 has a misleading name for boolean return type!'(102) pseudo_comment = settings-pseudo_comment CHANGING messages = me->scimessages ). APPEND 'IS_' TO good_method_names_beginning. APPEND 'HAS_' TO good_method_names_beginning. APPEND 'ARE_' TO good_method_names_beginning. APPEND 'TRY_' TO good_method_names_beginning. APPEND 'CAN_' TO good_method_names_beginning. APPEND 'HAVE_' TO good_method_names_beginning. APPEND 'MUST_' TO good_method_names_beginning. APPEND 'STARTS_' TO good_method_names_beginning. APPEND 'ENDS_' TO good_method_names_beginning. APPEND 'SHOULD_' TO good_method_names_beginning. APPEND 'EXIST' TO good_method_names_containing. APPEND 'EQUAL' TO good_method_names_containing. APPEND 'CONTAIN' TO good_method_names_containing. ENDMETHOD. METHOD contains_name_condition. method_name = get_token_abs( stmnt_index + 1 ). LOOP AT good_method_names_beginning ASSIGNING FIELD-SYMBOL(<good_name_beginning>). IF strlen( method_name ) GE strlen( <good_name_beginning> ) AND substring( val = method_name len = strlen( <good_name_beginning> ) ) EQ <good_name_beginning>. result = abap_true. RETURN. ENDIF. ENDLOOP. LOOP AT good_method_names_containing ASSIGNING FIELD-SYMBOL(<good_name_containing>). IF strlen( method_name ) GE strlen( <good_name_containing> ) AND method_name CS <good_name_containing>. result = abap_true. RETURN. ENDIF. ENDLOOP. ENDMETHOD. METHOD execute_check. LOOP AT ref_scan_manager->get_structures( ) ASSIGNING FIELD-SYMBOL(<structure>) WHERE stmnt_type EQ scan_struc_stmnt_type-class_definition OR stmnt_type EQ scan_struc_stmnt_type-interface. is_testcode = test_code_detector->is_testcode( <structure> ). TRY. DATA(check_configuration) = check_configurations[ apply_on_testcode = abap_true ]. CATCH cx_sy_itab_line_not_found. IF is_testcode EQ abap_true. CONTINUE. ENDIF. ENDTRY. DATA(index) = <structure>-stmnt_from. LOOP AT ref_scan_manager->get_statements( ) ASSIGNING FIELD-SYMBOL(<statement>) FROM <structure>-stmnt_from TO <structure>-stmnt_to. inspect_tokens( index = index statement = <statement> ). index = index + 1. ENDLOOP. ENDLOOP. ENDMETHOD. METHOD inspect_tokens. CHECK get_token_abs( statement-from ) EQ 'METHODS'. DATA(has_found_bool) = abap_false. DATA(token_index) = statement-from. LOOP AT ref_scan_manager->get_tokens( ) ASSIGNING FIELD-SYMBOL(<token>) FROM statement-from TO statement-to. IF <token>-str EQ 'ABAP_BOOL' AND get_token_abs( token_index - 3 ) EQ 'RETURNING'. has_found_bool = abap_true. ENDIF. token_index = token_index + 1. ENDLOOP. IF has_found_bool = abap_true AND NOT contains_name_condition( statement-from ). DATA(check_configuration) = detect_check_configuration( threshold = 0 include = get_include( p_level = statement-level ) ). 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 parameter_01 = |{ method_name }| ). ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9122, 62, 24396, 62, 7783, 62, 30388, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 331, 62, 9122, 62, 8692, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 42865, 2446, 62, 3672, 41876, 4731, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 10104, 62, 83, 482, 641, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 12260, 62, 9122, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 922, 62, 24396, 62, 14933, 62, 27471, 768, 41876, 43679, 3963, 4731, 13, 198, 220, 220, 220, 42865, 922, 62, 24396, 62, 14933, 62, 38301, 41876, 43679, 3963, 4731, 13, 628, 220, 220, 220, 337, 36252, 50, 4909, 62, 3672, 62, 31448, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 301, 76, 429, 62, 9630, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 575, 62, 50084, 62, 49273, 62, 26087, 27064, 62, 8202, 3535, 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, 6764, 796, 705, 17410, 6530, 15850, 329, 41146, 8229, 5994, 6, 7, 8298, 737, 198, 220, 220, 220, 6536, 220, 220, 220, 796, 705, 56, 62, 50084, 62, 34, 6158, 38, 15513, 4458, 198, 220, 220, 220, 2292, 796, 705, 22148, 4458, 198, 220, 220, 220, 2196, 796, 705, 2388, 4458, 198, 220, 220, 220, 468, 62, 22897, 341, 796, 450, 499, 62, 7942, 13, 628, 220, 220, 220, 6460, 12, 7752, 12003, 62, 23893, 796, 705, 1, 2, 2943, 337, 20702, 62, 26087, 62, 8202, 3535, 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, 705, 54, 4458, 198, 220, 220, 220, 6460, 12, 22897, 341, 796, 930, 90, 269, 62, 31628, 62, 6978, 12, 42116, 1782, 24396, 12, 7783, 12, 30388, 13, 9132, 91, 13, 628, 220, 220, 220, 331, 62, 20500, 62, 2301, 33397, 14804, 2860, 62, 20500, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2198, 62, 3672, 220, 220, 220, 220, 796, 502, 3784, 1820, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 44438, 32657, 6127, 5974, 11789, 1222, 16, 468, 257, 15850, 1438, 329, 25131, 1441, 2099, 13679, 7, 15377, 8, 198, 220, 220, 220, 220, 220, 220, 220, 24543, 62, 23893, 796, 6460, 12, 7752, 12003, 62, 23893, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 6218, 220, 220, 220, 220, 220, 220, 796, 502, 3784, 1416, 320, 408, 1095, 6739, 628, 220, 220, 220, 43504, 10619, 705, 1797, 62, 6, 220, 220, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 198, 220, 220, 220, 43504, 10619, 705, 39, 1921, 62, 6, 220, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 198, 220, 220, 220, 43504, 10619, 705, 12203, 62, 6, 220, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 198, 220, 220, 220, 43504, 10619, 705, 40405, 62, 6, 220, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 198, 220, 220, 220, 43504, 10619, 705, 44565, 62, 6, 220, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 198, 220, 220, 220, 43504, 10619, 705, 7801, 6089, 62, 6, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 198, 220, 220, 220, 43504, 10619, 705, 44, 7759, 62, 6, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 198, 220, 220, 220, 43504, 10619, 705, 46678, 4694, 62, 6, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 198, 220, 220, 220, 43504, 10619, 705, 1677, 5258, 62, 6, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 198, 220, 220, 220, 43504, 10619, 705, 9693, 24010, 62, 6, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 628, 220, 220, 220, 43504, 10619, 705, 6369, 8808, 6, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 38301, 13, 198, 220, 220, 220, 43504, 10619, 705, 36, 10917, 1847, 6, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 38301, 13, 198, 220, 220, 220, 43504, 10619, 705, 10943, 30339, 6, 5390, 922, 62, 24396, 62, 14933, 62, 38301, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 4909, 62, 3672, 62, 31448, 13, 198, 220, 220, 220, 2446, 62, 3672, 796, 651, 62, 30001, 62, 8937, 7, 336, 76, 429, 62, 9630, 1343, 352, 6739, 628, 220, 220, 220, 17579, 3185, 5161, 922, 62, 24396, 62, 14933, 62, 27471, 768, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 11274, 62, 3672, 62, 27471, 768, 29, 737, 198, 220, 220, 220, 220, 220, 16876, 965, 11925, 7, 2446, 62, 3672, 1267, 22319, 965, 11925, 7, 1279, 11274, 62, 3672, 62, 27471, 768, 29, 1267, 5357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 3293, 1806, 7, 1188, 796, 2446, 62, 3672, 18896, 796, 965, 11925, 7, 1279, 11274, 62, 3672, 62, 27471, 768, 29, 1267, 1267, 36529, 1279, 11274, 62, 3672, 62, 27471, 768, 28401, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 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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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 ]
*---------------------------------------------------------------------* * program for: TABLEFRAME_Z_REGISTER * generation date: 10/09/2017 at 02:31:43 * view maintenance generator version: #001407# *---------------------------------------------------------------------* FUNCTION TABLEFRAME_Z_REGISTER . PERFORM TABLEFRAME TABLES X_HEADER X_NAMTAB DBA_SELLIST DPL_SELLIST EXCL_CUA_FUNCT USING CORR_NUMBER VIEW_ACTION VIEW_NAME. ENDFUNCTION.
[ 9, 10097, 30934, 9, 198, 9, 220, 220, 220, 1430, 329, 25, 220, 220, 43679, 10913, 10067, 62, 57, 62, 31553, 41517, 198, 9, 220, 220, 5270, 3128, 25, 838, 14, 2931, 14, 5539, 379, 7816, 25, 3132, 25, 3559, 198, 9, 220, 220, 1570, 9262, 17301, 2196, 25, 1303, 405, 1415, 2998, 2, 198, 9, 10097, 30934, 9, 198, 42296, 4177, 2849, 43679, 10913, 10067, 62, 57, 62, 31553, 41517, 220, 220, 220, 220, 220, 220, 220, 220, 764, 628, 220, 19878, 21389, 43679, 10913, 10067, 309, 6242, 28378, 1395, 62, 37682, 1137, 1395, 62, 45, 2390, 5603, 33, 360, 4339, 62, 5188, 3069, 8808, 360, 6489, 62, 5188, 3069, 8808, 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, 7788, 5097, 62, 34, 34970, 62, 42296, 4177, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1294, 2751, 220, 23929, 49, 62, 41359, 13246, 49880, 62, 44710, 49880, 62, 20608, 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 ]
class ZCL_TRCKTRSR_MINION_UKULELE definition public final create public . public section. interfaces ZIF_TRCKTRSR_MINION_TOOL . interfaces ZIF_TRCKTRSR_MINION_SOUND . methods CONSTRUCTOR . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ZCL_TRCKTRSR_MINION_UKULELE IMPLEMENTATION. METHOD constructor. me->zif_trcktrsr_minion_tool~name = 'Ukulele'. ENDMETHOD. METHOD zif_trcktrsr_minion_sound~sound. r_sound = 'Pling Pling!'. ENDMETHOD. ENDCLASS.
[ 4871, 1168, 5097, 62, 5446, 34, 42, 5446, 12562, 62, 23678, 2849, 62, 15039, 24212, 2538, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 20314, 1168, 5064, 62, 5446, 34, 42, 5446, 12562, 62, 23678, 2849, 62, 10468, 3535, 764, 198, 220, 20314, 1168, 5064, 62, 5446, 34, 42, 5446, 12562, 62, 23678, 2849, 62, 50, 15919, 764, 628, 220, 5050, 7102, 46126, 1581, 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, 5446, 34, 42, 5446, 12562, 62, 23678, 2849, 62, 15039, 24212, 2538, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 502, 3784, 89, 361, 62, 2213, 694, 2213, 27891, 62, 1084, 295, 62, 25981, 93, 3672, 796, 705, 28425, 2261, 293, 4458, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 2213, 694, 2213, 27891, 62, 1084, 295, 62, 23661, 93, 23661, 13, 198, 220, 220, 220, 374, 62, 23661, 796, 705, 47, 1359, 1345, 278, 0, 4458, 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 ]
********************************************************************** * * Local class for handling messages of bookings * ********************************************************************** CLASS lcl_message_helper DEFINITION CREATE PRIVATE. PUBLIC SECTION. TYPES tt_booking_failed TYPE TABLE FOR FAILED /dmo/i_booking_u08. TYPES tt_booking_reported TYPE TABLE FOR REPORTED /dmo/i_booking_u08. CLASS-METHODS handle_booking_messages IMPORTING iv_cid TYPE string OPTIONAL iv_travel_id TYPE /dmo/travel_id08 OPTIONAL iv_booking_id TYPE /dmo/booking_id08 OPTIONAL it_messages TYPE /dmo/if_flight_legacy08=>tt_message CHANGING failed TYPE tt_booking_failed reported TYPE tt_booking_reported. ENDCLASS. CLASS lcl_message_helper IMPLEMENTATION. METHOD handle_booking_messages. LOOP AT it_messages INTO DATA(ls_message) WHERE msgty = 'E' OR msgty = 'A'. INSERT VALUE #( %cid = iv_cid travelid = iv_travel_id bookingid = iv_booking_id ) INTO TABLE failed. INSERT /dmo/cl_travel_auxiliary08=>map_booking_message( iv_travel_id = iv_travel_id iv_booking_id = iv_booking_id is_message = ls_message ) INTO TABLE reported. ENDLOOP. ENDMETHOD. ENDCLASS. ********************************************************************** * * Handler class for managing bookings * ********************************************************************** CLASS lhc_booking DEFINITION INHERITING FROM cl_abap_behavior_handler. PRIVATE SECTION. TYPES: tt_booking_update TYPE TABLE FOR UPDATE /dmo/i_booking_u08, tt_bookingsupplement_create TYPE TABLE FOR CREATE /dmo/i_bookingsupplement_u08. METHODS: update_booking FOR MODIFY IMPORTING it_booking_update FOR UPDATE booking, delete_booking FOR MODIFY IMPORTING it_booking_delete FOR DELETE booking, cba_supplement FOR MODIFY IMPORTING it_supplement_create_ba FOR CREATE booking\_booksupplement. METHODS: _fill_booking_inx IMPORTING is_booking_update TYPE LINE OF tt_booking_update RETURNING VALUE(rs_booking_inx) TYPE /dmo/if_flight_legacy08=>ts_booking_inx, _fill_bookingsupplement_inx IMPORTING is_bookingsupplement_create TYPE LINE OF tt_bookingsupplement_create RETURNING VALUE(rs_bookingsupplement_inx) TYPE /dmo/if_flight_legacy08=>ts_booking_supplement_inx. ENDCLASS. CLASS lhc_booking IMPLEMENTATION. ********************************************************************** * * Implements the UPDATE operation for a set of booking instances * ********************************************************************** METHOD update_booking. DATA lt_messages TYPE /dmo/if_flight_legacy08=>tt_message. LOOP AT it_booking_update ASSIGNING FIELD-SYMBOL(<fs_booking_update>). CALL FUNCTION '/DMO/FLIGHT_TRAVEL_UPDATE08' EXPORTING is_travel = VALUE /dmo/if_flight_legacy08=>ts_travel_in( travel_id = <fs_booking_update>-travelid ) is_travelx = VALUE /dmo/if_flight_legacy08=>ts_travel_inx( travel_id = <fs_booking_update>-travelid ) it_booking = VALUE /dmo/if_flight_legacy08=>tt_booking_in( ( /dmo/cl_travel_auxiliary08=>map_booking_cds_to_db( CORRESPONDING #( <fs_booking_update> ) ) ) ) it_bookingx = VALUE /dmo/if_flight_legacy08=>tt_booking_inx( ( _fill_booking_inx( <fs_booking_update> ) ) ) IMPORTING et_messages = lt_messages. lcl_message_helper=>handle_booking_messages( EXPORTING iv_cid = <fs_booking_update>-%cid_ref iv_travel_id = <fs_booking_update>-travelid iv_booking_id = <fs_booking_update>-bookingid it_messages = lt_messages CHANGING failed = failed-booking reported = reported-booking ). ENDLOOP. ENDMETHOD. ********************************************************************** * Helper method: * Indicates the booking fields that have been changed by the client * ********************************************************************** METHOD _fill_booking_inx. CLEAR rs_booking_inx. rs_booking_inx-booking_id = is_booking_update-bookingid. rs_booking_inx-action_code = /dmo/if_flight_legacy08=>action_code-update. rs_booking_inx-booking_date = xsdbool( is_booking_update-%control-bookingdate = cl_abap_behv=>flag_changed ). rs_booking_inx-customer_id = xsdbool( is_booking_update-%control-customerid = cl_abap_behv=>flag_changed ). rs_booking_inx-carrier_id = xsdbool( is_booking_update-%control-airlineid = cl_abap_behv=>flag_changed ). rs_booking_inx-connection_id = xsdbool( is_booking_update-%control-connectionid = cl_abap_behv=>flag_changed ). rs_booking_inx-flight_date = xsdbool( is_booking_update-%control-flightdate = cl_abap_behv=>flag_changed ). rs_booking_inx-flight_price = xsdbool( is_booking_update-%control-flightprice = cl_abap_behv=>flag_changed ). rs_booking_inx-currency_code = xsdbool( is_booking_update-%control-currencycode = cl_abap_behv=>flag_changed ). ENDMETHOD. ********************************************************************** * * Implements the DELETE operation for a set of booking instances * ********************************************************************** METHOD delete_booking. DATA lt_messages TYPE /dmo/if_flight_legacy08=>tt_message. LOOP AT it_booking_delete INTO DATA(ls_booking_delete). CALL FUNCTION '/DMO/FLIGHT_TRAVEL_UPDATE08' EXPORTING is_travel = VALUE /dmo/if_flight_legacy08=>ts_travel_in( travel_id = ls_booking_delete-travelid ) is_travelx = VALUE /dmo/if_flight_legacy08=>ts_travel_inx( travel_id = ls_booking_delete-travelid ) it_booking = VALUE /dmo/if_flight_legacy08=>tt_booking_in( ( booking_id = ls_booking_delete-bookingid ) ) it_bookingx = VALUE /dmo/if_flight_legacy08=>tt_booking_inx( ( booking_id = ls_booking_delete-bookingid action_code = /dmo/if_flight_legacy08=>action_code-delete ) ) IMPORTING et_messages = lt_messages. IF lt_messages IS NOT INITIAL. lcl_message_helper=>handle_booking_messages( EXPORTING iv_cid = ls_booking_delete-%cid_ref iv_travel_id = ls_booking_delete-travelid iv_booking_id = ls_booking_delete-bookingid it_messages = lt_messages CHANGING failed = failed-booking reported = reported-booking ). ENDIF. ENDLOOP. ENDMETHOD. *********************************************************************** * * Create associated booking supplements * *********************************************************************** METHOD cba_supplement. DATA lt_messages TYPE /dmo/if_flight_legacy08=>tt_message. DATA lt_booksupplement_old TYPE /dmo/if_flight_legacy08=>tt_booking_supplement. DATA ls_booksupplement TYPE LINE OF /dmo/if_flight_legacy08=>tt_booking_supplement_in. DATA lv_last_booksupplement_id TYPE /dmo/booking_supplement_id08. " Loop at parent - booking LOOP AT it_supplement_create_ba ASSIGNING FIELD-SYMBOL(<fs_supplement_create_ba>). DATA(ls_parent_key) = <fs_supplement_create_ba>-%key. " Retrieve booking supplements related to the imported travel ID CALL FUNCTION '/DMO/FLIGHT_TRAVEL_READ08' EXPORTING iv_travel_id = ls_parent_key-travelid IMPORTING et_booking_supplement = lt_booksupplement_old et_messages = lt_messages. IF lt_messages IS INITIAL. " Look up for maximum booking supplement ID for a given travel/booking " lt_booksupplement_old provides sorted values, therefore the last value is maximum value lv_last_booksupplement_id = REDUCE #( INIT res = 0 FOR old IN lt_booksupplement_old USING KEY primary_key WHERE ( travel_id = ls_parent_key-travelid AND booking_id = ls_parent_key-bookingid ) NEXT res = old-booking_supplement_id ). LOOP AT <fs_supplement_create_ba>-%target INTO DATA(ls_supplement_create). ls_supplement_create-bookingid = ls_parent_key-bookingid. " Increase value of booking supplement ID with 1 lv_last_booksupplement_id += 1. ls_supplement_create-bookingsupplementid = lv_last_booksupplement_id. " Do mapping between the element names of the CDS view and the original table fields ls_booksupplement = /dmo/cl_travel_auxiliary08=>map_bookingsupplemnt_cds_to_db( CORRESPONDING #( ls_supplement_create ) ) . " Create a new booking supplement and update a booking instance CALL FUNCTION '/DMO/FLIGHT_TRAVEL_UPDATE08' EXPORTING is_travel = VALUE /dmo/if_flight_legacy08=>ts_travel_in( travel_id = ls_parent_key-travelid ) is_travelx = VALUE /dmo/if_flight_legacy08=>ts_travel_inx( travel_id = ls_parent_key-travelid ) it_bookingx = VALUE /dmo/if_flight_legacy08=>tt_booking_inx( ( booking_id = ls_parent_key-bookingid action_code = /dmo/if_flight_legacy08=>action_code-update ) ) it_booking_supplement = VALUE /dmo/if_flight_legacy08=>tt_booking_supplement_in( ( ls_booksupplement ) ) it_booking_supplementx = VALUE /dmo/if_flight_legacy08=>tt_booking_supplement_inx( ( _fill_bookingsupplement_inx( ls_supplement_create ) ) ) IMPORTING et_messages = lt_messages. IF lt_messages IS INITIAL. INSERT VALUE #( %cid = ls_supplement_create-%cid travelid = ls_parent_key-travelid bookingid = ls_parent_key-bookingid bookingsupplementid = ls_booksupplement-booking_supplement_id ) INTO TABLE mapped-bookingsupplement. ELSE. " Issue a message in case of error ('E') or abort ('A') LOOP AT lt_messages INTO DATA(ls_message) WHERE msgty = 'E' OR msgty = 'A'. INSERT VALUE #( %cid = ls_supplement_create-%cid ) INTO TABLE failed-bookingsupplement. INSERT /dmo/cl_travel_auxiliary08=>map_bookingsupplemnt_message( iv_cid = ls_supplement_create-%cid is_message = ls_message ) INTO TABLE reported-bookingsupplement. ENDLOOP. ENDIF. ENDLOOP. ELSE. lcl_message_helper=>handle_booking_messages( EXPORTING iv_cid = <fs_supplement_create_ba>-%cid_ref iv_travel_id = ls_parent_key-travelid it_messages = lt_messages CHANGING failed = failed-booking reported = reported-booking ). ENDIF. ENDLOOP. ENDMETHOD. ********************************************************************** * Helper method: * Indicates the booking supplemnt fields that have been changed by the client * ********************************************************************** METHOD _fill_bookingsupplement_inx. CLEAR rs_bookingsupplement_inx. rs_bookingsupplement_inx-booking_supplement_id = is_bookingsupplement_create-bookingsupplementid. rs_bookingsupplement_inx-action_code = /dmo/if_flight_legacy08=>action_code-create. rs_bookingsupplement_inx-booking_id = is_bookingsupplement_create-bookingid. rs_bookingsupplement_inx-supplement_id = xsdbool( is_bookingsupplement_create-%control-supplementid = cl_abap_behv=>flag_changed ). rs_bookingsupplement_inx-price = xsdbool( is_bookingsupplement_create-%control-price = cl_abap_behv=>flag_changed ). rs_bookingsupplement_inx-currency_code = xsdbool( is_bookingsupplement_create-%control-currencycode = cl_abap_behv=>flag_changed ). ENDMETHOD. ENDCLASS.
[ 17174, 17174, 2466, 1174, 198, 9, 198, 9, 10714, 1398, 329, 9041, 6218, 286, 1492, 654, 198, 9, 198, 17174, 17174, 2466, 1174, 198, 31631, 300, 565, 62, 20500, 62, 2978, 525, 5550, 20032, 17941, 29244, 6158, 4810, 3824, 6158, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 2070, 278, 62, 47904, 220, 220, 41876, 43679, 7473, 9677, 4146, 1961, 220, 220, 1220, 67, 5908, 14, 72, 62, 2070, 278, 62, 84, 2919, 13, 198, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 2070, 278, 62, 26263, 41876, 43679, 7473, 39099, 1961, 1220, 67, 5908, 14, 72, 62, 2070, 278, 62, 84, 2919, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 5412, 62, 2070, 278, 62, 37348, 1095, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 66, 312, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 35927, 62, 312, 220, 41876, 1220, 67, 5908, 14, 35927, 62, 312, 2919, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 2070, 278, 62, 312, 41876, 1220, 67, 5908, 14, 2070, 278, 62, 312, 2919, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 37348, 1095, 220, 220, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 2919, 14804, 926, 62, 20500, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4054, 220, 220, 41876, 256, 83, 62, 2070, 278, 62, 47904, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2098, 41876, 256, 83, 62, 2070, 278, 62, 26263, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 20500, 62, 2978, 525, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 5412, 62, 2070, 278, 62, 37348, 1095, 13, 628, 220, 220, 220, 17579, 3185, 5161, 340, 62, 37348, 1095, 39319, 42865, 7, 7278, 62, 20500, 8, 33411, 31456, 774, 796, 705, 36, 6, 6375, 31456, 774, 796, 705, 32, 4458, 198, 220, 220, 220, 220, 220, 29194, 17395, 26173, 8924, 1303, 7, 4064, 66, 312, 220, 220, 220, 220, 220, 796, 21628, 62, 66, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3067, 312, 220, 796, 21628, 62, 35927, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25452, 312, 796, 21628, 62, 2070, 278, 62, 312, 1267, 39319, 43679, 4054, 13, 628, 220, 220, 220, 220, 220, 29194, 17395, 1220, 67, 5908, 14, 565, 62, 35927, 62, 14644, 28129, 2919, 14804, 8899, 62, 2070, 278, 62, 20500, 7, 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, 21628, 62, 35927, 62, 312, 220, 796, 21628, 62, 35927, 62, 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, 220, 220, 220, 21628, 62, 2070, 278, 62, 312, 796, 21628, 62, 2070, 278, 62, 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, 220, 220, 220, 318, 62, 20500, 220, 220, 220, 796, 43979, 62, 20500, 1267, 39319, 43679, 2098, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 628, 198, 17174, 17174, 2466, 1174, 198, 9, 198, 9, 32412, 1398, 329, 11149, 1492, 654, 198, 9, 198, 17174, 17174, 2466, 1174, 198, 31631, 300, 71, 66, 62, 2070, 278, 5550, 20032, 17941, 3268, 16879, 2043, 2751, 16034, 537, 62, 397, 499, 62, 46571, 62, 30281, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 220, 220, 256, 83, 62, 2070, 278, 62, 19119, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 7473, 35717, 220, 1220, 67, 5908, 14, 72, 62, 2070, 278, 62, 84, 2919, 11, 198, 220, 220, 220, 220, 220, 220, 220, 256, 83, 62, 2070, 654, 7211, 1732, 62, 17953, 41876, 43679, 7473, 29244, 6158, 220, 1220, 67, 5908, 14, 72, 62, 2070, 654, 7211, 1732, 62, 84, 2919, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 220, 220, 4296, 62, 2070, 278, 7473, 19164, 5064, 56, 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, 30023, 9863, 2751, 220, 220, 340, 62, 2070, 278, 62, 19119, 220, 220, 220, 220, 220, 220, 7473, 35717, 25452, 11, 198, 220, 220, 220, 220, 220, 220, 220, 12233, 62, 2070, 278, 7473, 19164, 5064, 56, 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, 30023, 9863, 2751, 220, 220, 340, 62, 2070, 278, 62, 33678, 220, 220, 220, 220, 220, 220, 7473, 5550, 2538, 9328, 25452, 11, 198, 220, 220, 220, 220, 220, 220, 220, 269, 7012, 62, 18608, 1732, 7473, 19164, 5064, 56, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_abapgit_object_acid 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. METHODS: create_object RETURNING VALUE(ro_aab) TYPE REF TO cl_aab_id RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_object_acid IMPLEMENTATION. METHOD create_object. DATA: lv_name TYPE aab_id_name. lv_name = ms_item-obj_name. CREATE OBJECT ro_aab EXPORTING im_name = lv_name EXCEPTIONS name_not_allowed = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~changed_by. * looks like "changed by user" is not stored in the database rv_user = c_user_unknown. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lo_aab TYPE REF TO cl_aab_id. lo_aab = create_object( ). lo_aab->enqueue( EXCEPTIONS foreign_lock = 1 system_error = 2 cts_error = 3 OTHERS = 4 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. lo_aab->delete( EXCEPTIONS prop_error = 1 propt_error = 2 act_error = 3 cts_error = 4 cts_devclass = 5 id_not_found = 6 no_authorization = 7 id_still_used = 8 where_used_error = 9 OTHERS = 10 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. lo_aab->dequeue( ). ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lv_description TYPE aab_id_descript, lo_aab TYPE REF TO cl_aab_id. io_xml->read( EXPORTING iv_name = 'DESCRIPTION' CHANGING cg_data = lv_description ). lo_aab = create_object( ). lo_aab->enqueue( EXCEPTIONS foreign_lock = 1 system_error = 2 cts_error = 3 OTHERS = 4 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. lo_aab->set_descript( EXPORTING im_descript = lv_description EXCEPTIONS no_authorization = 1 OTHERS = 2 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. tadir_insert( iv_package ). lo_aab->save( EXCEPTIONS no_descript_specified = 1 no_changes_found = 2 prop_error = 3 propt_error = 4 act_error = 5 cts_error = 6 sync_attributes_error = 7 action_canceled = 8 OTHERS = 9 ). IF sy-subrc >= 3. zcx_abapgit_exception=>raise_t100( ). ENDIF. lo_aab->dequeue( ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_state TYPE abap_bool, lo_aab TYPE REF TO cl_aab_id. lo_aab = create_object( ). lo_aab->get_state( IMPORTING ex_state = lv_state ). rv_bool = boolc( lv_state = abap_true ). 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. " Covered by ZCL_ABAPGIT_OBJECTS=>JUMP ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lo_aab TYPE REF TO cl_aab_id, lv_description TYPE aab_id_descript. IF zif_abapgit_object~exists( ) = abap_false. RETURN. ENDIF. lo_aab = create_object( ). lo_aab->get_descript( IMPORTING ex_descript = lv_description EXCEPTIONS no_description_found = 1 ). io_xml->add( iv_name = 'DESCRIPTION' ig_data = lv_description ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 46309, 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, 220, 220, 220, 337, 36252, 50, 25, 2251, 62, 15252, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 64, 397, 8, 41876, 4526, 37, 5390, 537, 62, 64, 397, 62, 312, 198, 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, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 46309, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 2251, 62, 15252, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 3672, 41876, 257, 397, 62, 312, 62, 3672, 13, 628, 198, 220, 220, 220, 300, 85, 62, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 686, 62, 64, 397, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 545, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 3672, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 62, 1662, 62, 40845, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 362, 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, 62, 83, 3064, 7, 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, 40985, 62, 1525, 13, 198, 9, 3073, 588, 366, 40985, 416, 2836, 1, 318, 407, 8574, 287, 262, 6831, 198, 220, 220, 220, 374, 85, 62, 7220, 796, 269, 62, 7220, 62, 34680, 13, 198, 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, 2376, 62, 64, 397, 41876, 4526, 37, 5390, 537, 62, 64, 397, 62, 312, 13, 628, 198, 220, 220, 220, 2376, 62, 64, 397, 796, 2251, 62, 15252, 7, 6739, 198, 220, 220, 220, 2376, 62, 64, 397, 3784, 268, 36560, 7, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 3215, 62, 5354, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 1080, 62, 18224, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 269, 912, 62, 18224, 220, 220, 220, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 796, 604, 6739, 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, 62, 83, 3064, 7, 6739, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 2376, 62, 64, 397, 3784, 33678, 7, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 2632, 62, 18224, 220, 220, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 386, 457, 62, 18224, 220, 220, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 719, 62, 18224, 220, 220, 220, 220, 220, 220, 220, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 269, 912, 62, 18224, 220, 220, 220, 220, 220, 220, 220, 796, 604, 198, 220, 220, 220, 220, 220, 220, 220, 269, 912, 62, 7959, 4871, 220, 220, 220, 220, 796, 642, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 62, 1662, 62, 9275, 220, 220, 220, 220, 796, 718, 198, 220, 220, 220, 220, 220, 220, 220, 645, 62, 9800, 1634, 796, 767, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 62, 24219, 62, 1484, 220, 220, 220, 796, 807, 198, 220, 220, 220, 220, 220, 220, 220, 810, 62, 1484, 62, 18224, 796, 860, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 838, 6739, 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, 62, 83, 3064, 7, 6739, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 2376, 62, 64, 397, 3784, 2934, 36560, 7, 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, 11213, 41876, 257, 397, 62, 312, 62, 20147, 1968, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 64, 397, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 64, 397, 62, 312, 13, 628, 198, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 30910, 40165, 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, 11213, 6739, 628, 220, 220, 220, 2376, 62, 64, 397, 796, 2251, 62, 15252, 7, 6739, 628, 220, 220, 220, 2376, 62, 64, 397, 3784, 268, 36560, 7, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 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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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 ]
class /GAL/CFW_AUTH definition public final create public . public section. type-pools ABAP . constants CONST_CAB_FINAL_RFC_STEP type /GAL/CFW_CUSTOM_AUTH_BEHAVE value 'R'. "#EC NOTEXT constants CONST_CAB_FINAL_STEP type /GAL/CFW_CUSTOM_AUTH_BEHAVE value 'D'. "#EC NOTEXT constants CONST_CAB_NO_CHECK type /GAL/CFW_CUSTOM_AUTH_BEHAVE value 'N'. "#EC NOTEXT class-methods CHECK_AUTH importing !CUSTOM_AUTH_BEHAVE type /GAL/CFW_CUSTOM_AUTH_BEHAVE raising /GAL/CX_CFW_AUTH_EXCEP_FW . class-methods CHECK_LOCAL_FUNC_LIMITS importing !FUNCTION_NAME_EXTERNAL type STRING optional raising /GAL/CX_CFW_AUTH_EXCEP_FW . class-methods CHECK_RFC_CONTEXT_EXTERNAL importing !FUNCTION_NAME type STRING !BACK_CALLSTACK_EXTERNAL type ABAP_CALLSTACK !RFC_ROUTE_INFO_EXTERNAL type /GAL/RFC_ROUTE_INFO raising /GAL/CX_CFW_AUTH_EXCEP_FW . class-methods FILL_CFW_AUTH_ERR_EX_INFO importing !CFW_AUTH_EXCEPTION type ref to /GAL/CX_CFW_AUTH_EXCEPTION returning value(EXCEPTION_INFO) type /GAL/EXCEPTION_INFO . class-methods INIT raising /GAL/CX_CFW_AUTH_EXCEP_FW . class-methods RAISE_AUTH_EXCEPTION_IF_EXISTS raising /GAL/CX_CFW_AUTH_EXCEPTION . class-methods RESET_CONTEXT_DATA importing !FORCE_AUTH_EXCEPTION_DISCARD type ABAP_BOOL default ABAP_FALSE raising /GAL/CX_CFW_AUTH_EXCEP_FW . class-methods SET_CONTEXT_DATA importing !FUNCTION_NAME type STRING !PARAM_BINDINGS type ABAP_FUNC_PARMBIND_TAB !INITIAL_CALLER_SYSYSID type SYSYSID !INITIAL_CALLER_SYMANDT type SYMANDT !INITIAL_CALLER_SYUNAME type SYUNAME !LAST_CALLER_SYSYSID type SYSYSID !LAST_CALLER_SYMANDT type SYMANDT !LAST_CALLER_SYUNAME type SYUNAME !LOCAL_EXECUTION type ABAP_BOOL !FIRST_STEP type ABAP_BOOL !FINAL_STEP type ABAP_BOOL !DIRECT_CALL type ABAP_BOOL !RFC_ROUTE_INFO type /GAL/RFC_ROUTE_INFO raising /GAL/CX_CFW_AUTH_EXCEP_FW . protected section. private section. class-data AUTH_EXCEPTION type ref to /GAL/CX_CFW_AUTH_EXCEPTION . class-data CONFIG type ref to /GAL/CFW_AUTH_CONFIG . class-data CTX_DIRECT_CALL type ABAP_BOOL . class-data CTX_FINAL_STEP type ABAP_BOOL . class-data CTX_FIRST_STEP type ABAP_BOOL . class-data CTX_FUNCTION_NAME type STRING . class-data CTX_INITIAL_CALLER_SYMANDT type SYMANDT . class-data CTX_INITIAL_CALLER_SYSYSID type SYSYSID . class-data CTX_INITIAL_CALLER_SYUNAME type SYUNAME . class-data CTX_LAST_CALLER_SYMANDT type SYMANDT . class-data CTX_LAST_CALLER_SYSYSID type SYSYSID . class-data CTX_LAST_CALLER_SYUNAME type SYUNAME . class-data CTX_LOCAL_EXECUTION type ABAP_BOOL . class-data CTX_PARAM_BINDINGS type ABAP_FUNC_PARMBIND_TAB . class-data CTX_RFC_ROUTE_INFO type /GAL/RFC_ROUTE_INFO . class-data INT_RFC_CONTEXT_CHECKED type ABAP_BOOL . class-methods CHECK_RFC_CONTEXT importing !FUNCTION_NAME_EXTERNAL type STRING optional !BACK_CALLSTACK_EXTERNAL type ABAP_CALLSTACK optional !RFC_ROUTE_INFO_EXTERNAL type /GAL/RFC_ROUTE_INFO optional raising /GAL/CX_CFW_AUTH_EXCEP_FW . class-methods REGULAR_AUTH_EXCEPTION_FOUND importing !TEXTID type SOTR_CONC optional !VAR1 type ANY optional !VAR2 type ANY optional !VAR3 type ANY optional !AUTH_EXCEPTION_OBJECT type ref to /GAL/CX_CFW_AUTH_EXCEPTION optional . ENDCLASS. CLASS /GAL/CFW_AUTH IMPLEMENTATION. METHOD check_auth. DATA l_function_name TYPE char30. DATA l_is_active TYPE abap_bool. DATA l_badi_handle TYPE REF TO /gal/cfw_auth_checker. DATA l_badi_filter_func TYPE string. CLEAR auth_exception. "Check if according to hardcoded function check behavior, a check is required IF custom_auth_behave = /gal/cfw_auth=>const_cab_no_check OR custom_auth_behave = /gal/cfw_auth=>const_cab_final_step AND ctx_final_step = abap_false OR custom_auth_behave = /gal/cfw_auth=>const_cab_final_rfc_step AND ( ctx_final_step = abap_false OR ctx_direct_call = abap_true OR ctx_local_execution = abap_true ). RETURN. ENDIF. "If a check is required according to coding, it also is checked if the auth framework is activated in config l_is_active = /gal/cfw_auth_config=>is_active( ). IF l_is_active = abap_false. RETURN. ENDIF. "when this method is called and checks are active and required, the config has to be initialized. "if this is not the case, an internal software error exists IF config IS INITIAL. RAISE EXCEPTION TYPE /gal/cx_cfw_auth_excep_fw EXPORTING textid = /gal/cx_cfw_auth_excep_fw=>check_without_init. ENDIF. "functions can be set to be ignored by customizing them in config store l_function_name = ctx_function_name. READ TABLE /gal/cfw_auth_config=>ignored_functions WITH KEY table_line = l_function_name TRANSPORTING NO FIELDS. IF sy-subrc = 0. RETURN. ENDIF. IF ctx_direct_call = abap_false AND int_rfc_context_checked = abap_false. " if we are in RFC context and this context has not been checked yet, the rfc context callback abap stack is checked check_rfc_context( ). IF NOT auth_exception IS INITIAL. RETURN. ENDIF. ENDIF. IF ctx_local_execution = abap_false AND ctx_initial_caller_sysysid NE sy-sysid OR ctx_initial_caller_symandt NE sy-mandt. check_local_func_limits( ). IF NOT auth_exception IS INITIAL. RETURN. ENDIF. ENDIF. IF ctx_function_name CP '/GAL/*'. "use all check BAdIs, also the ones that are used only for Galileo funtions l_badi_filter_func = '/GAL/*'. ELSE. l_badi_filter_func = '*'. "use only the BAdIs declared for common checks ENDIF. TRY. "now call all activated auth check BAdIs GET BADI l_badi_handle FILTERS /gal/cfw_ac_function = l_badi_filter_func. CALL BADI l_badi_handle->check_auth EXPORTING direct_call = ctx_direct_call final_step = ctx_final_step first_step = ctx_first_step function_name = ctx_function_name initial_caller_symandt = ctx_initial_caller_symandt initial_caller_sysysid = ctx_initial_caller_sysysid initial_caller_syuname = ctx_initial_caller_syuname last_caller_symandt = ctx_last_caller_symandt last_caller_sysysid = ctx_last_caller_sysysid last_caller_syuname = ctx_last_caller_syuname local_execution = ctx_local_execution param_bindings = ctx_param_bindings rfc_route_info = ctx_rfc_route_info. CATCH /gal/cx_cfw_auth_exception INTO auth_exception. regular_auth_exception_found( auth_exception_object = auth_exception ). RETURN. ENDTRY. ENDMETHOD. METHOD check_local_func_limits. * Check if the current function is forbidden for remote execution and raise an exception if this is the case. DATA l_function_name TYPE char30. DATA l_conf_ex TYPE REF TO /gal/cx_config_exception. DATA l_error_message TYPE string. IF function_name_external IS SUPPLIED. l_function_name = function_name_external. ELSE. l_function_name = ctx_function_name. ENDIF. IF l_function_name IS INITIAL. RAISE EXCEPTION TYPE /gal/cx_cfw_auth_excep_fw EXPORTING textid = /gal/cx_cfw_auth_excep_fw=>check_localfunc_without_funcn. ENDIF. TRY. /gal/cfw_auth_config=>init_config_params( ). CATCH /gal/cx_config_exception INTO l_conf_ex. l_error_message = l_conf_ex->get_text( ). RAISE EXCEPTION TYPE /gal/cx_cfw_auth_excep_fw EXPORTING textid = /gal/cx_cfw_auth_excep_fw=>missing_config_locfunc var1 = l_error_message. ENDTRY. READ TABLE /gal/cfw_auth_config=>local_only_functions WITH KEY table_line = l_function_name TRANSPORTING NO FIELDS. IF sy-subrc = 0. regular_auth_exception_found( EXPORTING textid = /gal/cx_cfw_auth_exception=>forbidden_rfc_call_of_loc_func var1 = ctx_function_name ). RETURN. ENDIF. ENDMETHOD. METHOD check_rfc_context. " This method checks if the RFC context is legal. " NOTE: If this implementation throws an exception although a valid use case is given, " the caller can be permitted using config parameter " '/Galileo Group AG/Open Source Components/Communication Framework/Security/Custom Allowed Callers' or " '/Galileo Group AG/Open Source Components/Communication Framework/Security/Ignored Functions' " until the coding is fixed in order to reflect the missing case. DATA l_rfc_error(100) TYPE c. DATA l_callstack_index TYPE i. DATA l_callstack_lines TYPE i. DATA l_index TYPE i. DATA lt_back_callstack TYPE abap_callstack. DATA l_galileo_context TYPE abap_bool. DATA l_custom_allow TYPE abap_bool. DATA l_rfc_scope_extended_context TYPE abap_bool. DATA l_trigger_function TYPE char30. DATA l_direct_call TYPE abap_bool. DATA lt_back_callstack_copy TYPE abap_callstack. DATA l_non_gal_prog_found TYPE abap_bool. DATA l_non_gal_prog TYPE syrepid. DATA l_gal_ctx_left TYPE abap_bool. DATA l_idx_rev TYPE i. DATA l_idx_do TYPE i. DATA l_callstack_offset TYPE i. DATA l_error_message TYPE string. FIELD-SYMBOLS <l_callstack_line> TYPE abap_callstack_line. FIELD-SYMBOLS <l_callstack_copy_line> TYPE abap_callstack_line. FIELD-SYMBOLS <l_custom_allowed_caller> TYPE /gal/cfw_custom_allow_caller. FIELD-SYMBOLS <lt_back_callstack> TYPE abap_callstack. FIELD-SYMBOLS <l_first_step_info> TYPE /gal/rfc_route_step_info. FIELD-SYMBOLS <l_rfc_route_info> TYPE /gal/rfc_route_info. IF ctx_local_execution = abap_true AND function_name_external IS INITIAL. RETURN. ENDIF. IF function_name_external IS INITIAL. CALL FUNCTION '/GAL/RFC_GET_SY_DATA' DESTINATION 'BACK' EXPORTING read_callstack = abap_true IMPORTING callstack = lt_back_callstack EXCEPTIONS system_failure = 1 MESSAGE l_rfc_error communication_failure = 2 MESSAGE l_rfc_error framework_exception = 3. IF sy-subrc <> 0. IF sy-subrc = 3. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO l_error_message. RAISE EXCEPTION TYPE /gal/cx_cfw_auth_excep_fw EXPORTING textid = /gal/cx_cfw_auth_excep_fw=>fw_exception_remote var1 = l_error_message. ELSE. regular_auth_exception_found( EXPORTING textid = /gal/cx_cfw_auth_exception=>rfc_back_call_error1 var1 = l_rfc_error ). RETURN. ENDIF. ENDIF. l_trigger_function = ctx_function_name. ASSIGN lt_back_callstack TO <lt_back_callstack>. ASSIGN ctx_rfc_route_info TO <l_rfc_route_info>. ELSE. /gal/cfw_auth_config=>init_config_params( ). l_trigger_function = function_name_external. READ TABLE /gal/cfw_auth_config=>ignored_functions WITH KEY table_line = l_trigger_function TRANSPORTING NO FIELDS. IF sy-subrc = 0. RETURN. ENDIF. ASSIGN back_callstack_external TO <lt_back_callstack>. ASSIGN rfc_route_info_external TO <l_rfc_route_info>. ENDIF. DESCRIBE TABLE <lt_back_callstack> LINES l_callstack_lines. IF l_callstack_lines < 7. IF l_callstack_lines = 6. l_direct_call = abap_true. ELSE. regular_auth_exception_found( EXPORTING textid = /gal/cx_cfw_auth_exception=>rfc_back_call_stack_incons1 ). IF /gal/cfw_auth_config=>trace_violation_details = abap_true. /gal/trace=>write_callstack( custom_callstack = <lt_back_callstack> ). ENDIF. RETURN. ENDIF. ENDIF. l_callstack_index = l_callstack_lines. l_rfc_scope_extended_context = abap_true. DO 2 TIMES. READ TABLE <lt_back_callstack> INDEX l_callstack_index ASSIGNING <l_callstack_line>. l_index = sy-index. CASE l_index. WHEN 1. IF NOT ( <l_callstack_line>-mainprogram = 'SAPMSSY1' AND <l_callstack_line>-blockname = '%_RFC_START' ). l_rfc_scope_extended_context = abap_false. EXIT. ENDIF. WHEN 2. IF NOT ( <l_callstack_line>-mainprogram = 'SAPMSSY1' AND <l_callstack_line>-blocktype = 'FORM' AND <l_callstack_line>-blockname = 'REMOTE_FUNCTION_CALL' ). l_rfc_scope_extended_context = abap_false. EXIT. ENDIF. ENDCASE. l_callstack_index = l_callstack_index - 1. ENDDO. DO 8 TIMES. l_index = sy-index. READ TABLE <lt_back_callstack> INDEX l_index ASSIGNING <l_callstack_line>. IF sy-subrc <> 0. /gal/trace=>write_text( EXPORTING text = 'Internal CFW auth RFC check error. Assigning non-existing callstack line {1}' var01 = l_index ). "#EC NOTEXT IF /gal/cfw_auth_config=>trace_violation_details = abap_true. /gal/trace=>write_callstack( custom_callstack = <lt_back_callstack> ). ENDIF. ELSE. CASE l_index. WHEN 1. CHECK <l_callstack_line>-blockname NE '/GAL/RFC_GET_SY_DATA' OR <l_callstack_line>-blocktype NE 'FUNCTION'. WHEN 2. CHECK <l_callstack_line>-blockname NE '/GAL/RFC_GET_SY_DATA' OR <l_callstack_line>-blocktype NE 'FORM'. WHEN 3. IF <l_callstack_line>-blockname EQ '/GAL/RFC_PROXY_FUNCTION' AND <l_callstack_line>-blocktype EQ 'RFC'. CONTINUE. ELSEIF <l_rfc_route_info>-current_step = 2. lt_back_callstack_copy = <lt_back_callstack>. l_non_gal_prog_found = abap_false. l_gal_ctx_left = abap_false. LOOP AT lt_back_callstack_copy ASSIGNING <l_callstack_copy_line>. IF <l_callstack_copy_line>-mainprogram = 'SAPMSSY1' AND ( <l_callstack_copy_line>-blockname = '%_RFC_START' OR <l_callstack_copy_line>-blocktype = 'FORM' AND <l_callstack_copy_line>-blockname = 'REMOTE_FUNCTION_CALL' ) OR <l_callstack_copy_line>-mainprogram = 'OS_APPLICATION' AND <l_callstack_copy_line>-blockname = 'RUN_OO_APPLICATION'. l_gal_ctx_left = abap_true. CONTINUE. ENDIF. IF l_gal_ctx_left = abap_false AND <l_callstack_copy_line>-mainprogram CP '/GAL/*'. CONTINUE. ENDIF. l_non_gal_prog_found = abap_true. l_non_gal_prog = <l_callstack_line>-mainprogram. EXIT. ENDLOOP. IF l_non_gal_prog_found = abap_false. EXIT. ELSE. DESCRIBE TABLE lt_back_callstack_copy LINES l_idx_rev. DO 3 TIMES. l_idx_do = sy-index. READ TABLE lt_back_callstack_copy INDEX l_idx_rev ASSIGNING <l_callstack_copy_line>. IF l_idx_do < 3. IF <l_callstack_copy_line>-mainprogram NE 'OS_APPLICATION' OR <l_callstack_copy_line>-blockname NE 'RUN_OO_APPLICATION'. EXIT. ENDIF. ELSE. IF <l_callstack_copy_line>-mainprogram CP '/GAL/CCM_APP_REP_BROWSER*' AND <l_callstack_copy_line>-blockname EQ 'RUN'. l_non_gal_prog_found = abap_false. CLEAR l_non_gal_prog. ENDIF. ENDIF. l_idx_rev = l_idx_rev - 1. ENDDO. IF l_non_gal_prog_found = abap_false. EXIT. ENDIF. ENDIF. ENDIF. WHEN 4. CHECK <l_callstack_line>-blockname NE '/GAL/RFC_PROXY_FUNCTION' OR <l_callstack_line>-blocktype NE 'FUNCTION'. WHEN 5. IF l_rfc_scope_extended_context = abap_false. CHECK <l_callstack_line>-mainprogram NP '/GAL/TASK*' OR <l_callstack_line>-blockname NE 'START_SYNC' OR <l_callstack_line>-blocktype NE 'METHOD'. ELSE. IF <l_callstack_line>-blockname = '/GAL/RFC_PROXY_FUNCTION' AND <l_callstack_line>-blocktype = 'FORM'. CONTINUE. ENDIF. IF <l_callstack_line>-mainprogram CP '/GAL/TASK*' AND <l_callstack_line>-blockname = 'START_SYNC' AND <l_callstack_line>-blocktype = 'METHOD'. l_rfc_scope_extended_context = abap_false. CONTINUE. ENDIF. ENDIF. WHEN 6. IF l_rfc_scope_extended_context = abap_false. IF <l_callstack_line>-mainprogram CP '/GAL/*'. l_galileo_context = abap_true. IF l_direct_call = abap_true. EXIT. ENDIF. CONTINUE. ELSE. l_custom_allow = abap_false. /gal/cfw_auth_config=>init_config_params( ). LOOP AT /gal/cfw_auth_config=>custom_allowed_callers ASSIGNING <l_custom_allowed_caller>. CHECK <l_callstack_line>-mainprogram CP <l_custom_allowed_caller>-mainprogram AND <l_callstack_line>-blocktype CP <l_custom_allowed_caller>-blocktype AND <l_callstack_line>-blockname CP <l_custom_allowed_caller>-blockname AND l_trigger_function CP <l_custom_allowed_caller>-called_function. l_custom_allow = abap_true. EXIT. ENDLOOP. IF l_custom_allow = abap_true. EXIT. ELSE. l_non_gal_prog = <l_callstack_line>-mainprogram. ENDIF. ENDIF. ELSE. IF <l_callstack_line>-mainprogram = 'SAPMSSY1' AND <l_callstack_line>-blocktype = 'FORM' AND <l_callstack_line>-blockname = 'REMOTE_FUNCTION_CALL'. EXIT. ENDIF. ENDIF. CHECK l_direct_call = abap_true. WHEN 7. IF l_galileo_context = abap_true AND <l_callstack_line>-mainprogram NP '/GAL/*'. l_custom_allow = abap_false. /gal/cfw_auth_config=>init_config_params( ). LOOP AT /gal/cfw_auth_config=>custom_allowed_callers ASSIGNING <l_custom_allowed_caller>. CHECK <l_callstack_line>-mainprogram CP <l_custom_allowed_caller>-mainprogram AND <l_callstack_line>-blocktype CP <l_custom_allowed_caller>-blocktype AND <l_callstack_line>-blockname CP <l_custom_allowed_caller>-blockname AND l_trigger_function CP <l_custom_allowed_caller>-called_function. l_custom_allow = abap_true. EXIT. ENDLOOP. IF l_custom_allow = abap_true. EXIT. ENDIF. l_non_gal_prog = <l_callstack_line>-mainprogram. ELSE. IF <l_callstack_line>-mainprogram CP '/GAL/*'. CONTINUE. ELSE. l_non_gal_prog = <l_callstack_line>-mainprogram. ENDIF. ENDIF. WHEN 8. READ TABLE <lt_back_callstack> WITH KEY mainprogram = 'SAPLSEUJ' TRANSPORTING NO FIELDS. CHECK sy-subrc = 0. ENDCASE. ENDIF. READ TABLE <l_rfc_route_info>-step_infos INDEX 1 ASSIGNING <l_first_step_info>. IF sy-subrc = 0. /gal/trace=>write_text( EXPORTING text = 'RFC call auth error calling function {1} by user {2} on system {3} client {4}' var01 = l_trigger_function var02 = <l_first_step_info>-user_id var03 = <l_first_step_info>-system_id var04 = <l_first_step_info>-client_id ). "#EC NOTEXT ELSE. /gal/trace=>write_text( EXPORTING text = 'Internal Error. Initial Step Infos in RFC check error for function {1}' var01 = l_trigger_function ). "#EC NOTEXT ENDIF. IF l_non_gal_prog IS INITIAL. regular_auth_exception_found( EXPORTING textid = /gal/cx_cfw_auth_exception=>rfc_back_call_stack_incons2 ). ELSE. regular_auth_exception_found( EXPORTING textid = /gal/cx_cfw_auth_exception=>forbidden_rfc_caller var1 = l_non_gal_prog ). ENDIF. IF /gal/cfw_auth_config=>trace_violation_details = abap_true. /gal/trace=>write_text( EXPORTING text = 'Stack parser metadata: {1} {2}' var01 = <l_rfc_route_info>-current_step var02 = l_index no_flush = abap_true ). "#EC NOTEXT /gal/trace=>write_callstack( custom_callstack = <lt_back_callstack> ). ELSE. l_callstack_offset = l_callstack_index - 1. /gal/trace=>write_callstack( callstack_offset = l_callstack_offset number_of_lines = 2 custom_callstack = <lt_back_callstack> ). ENDIF. RETURN. ENDDO. ENDMETHOD. METHOD check_rfc_context_external. "Wrapper for checking the RFC context for forbidden callstacks from outside this class check_rfc_context( function_name_external = function_name back_callstack_external = back_callstack_external rfc_route_info_external = rfc_route_info_external ). int_rfc_context_checked = abap_true. ENDMETHOD. METHOD fill_cfw_auth_err_ex_info. "Fill the exception info for RFC processing from an existing exception object DATA l_symsgv1 TYPE symsgv. DATA l_symsgv2 TYPE symsgv. DATA l_symsgv3 TYPE symsgv. DATA l_symsgv4 TYPE symsgv. DATA l_cfw_auth_exception_fw TYPE REF TO /gal/cx_cfw_auth_excep_fw. "#EC NEEDED exception_info = /gal/cfw_helper=>get_exception_info( exception = cfw_auth_exception ). exception_info-message_id = '/GAL/CFW'. exception_info-message_type = 'E'. TRY. l_cfw_auth_exception_fw ?= cfw_auth_exception. DO 0 TIMES. MESSAGE e019(/gal/cfw) WITH '' '' '' ''. ENDDO. exception_info-message_number = '019'. CATCH cx_sy_move_cast_error. DO 0 TIMES. MESSAGE e021(/gal/cfw) WITH '' '' '' ''. ENDDO. exception_info-message_number = '021'. ENDTRY. /gal/string=>string_to_message_vars( EXPORTING input = exception_info-message_text IMPORTING msgv1 = l_symsgv1 msgv2 = l_symsgv2 msgv3 = l_symsgv3 msgv4 = l_symsgv4 ). exception_info-message_var1 = l_symsgv1. exception_info-message_var2 = l_symsgv2. exception_info-message_var3 = l_symsgv3. exception_info-message_var4 = l_symsgv4. ENDMETHOD. METHOD init. IF config IS INITIAL. "Initialize config object CREATE OBJECT config. ENDIF. ENDMETHOD. METHOD raise_auth_exception_if_exists. DATA l_auth_exception TYPE REF TO /gal/cx_cfw_auth_exception. "Raise a previously found auth exception if existing IF NOT auth_exception IS INITIAL. l_auth_exception = auth_exception. CLEAR auth_exception. RAISE EXCEPTION l_auth_exception. ENDIF. ENDMETHOD. METHOD regular_auth_exception_found. " This method stores a regular auth exception that occured for further processing. " Either the exception obejct or text data can be specified. " If activated the caller callstack is written to trace. DATA l_var1 TYPE string. DATA l_var2 TYPE string. DATA l_var3 TYPE string. l_var1 = var1. l_var2 = var2. l_var3 = var3. TRY. IF auth_exception_object IS INITIAL. RAISE EXCEPTION TYPE /gal/cx_cfw_auth_exception EXPORTING textid = textid var1 = l_var1 var2 = l_var2 var3 = l_var3. ELSE. RAISE EXCEPTION auth_exception_object. ENDIF. CATCH /gal/cx_cfw_auth_exception INTO auth_exception. /gal/trace=>write_exception( EXPORTING exception = auth_exception ). IF /gal/cfw_auth_config=>trace_violation_details = abap_true. /gal/trace=>write_callstack( ). ENDIF. ENDTRY. ENDMETHOD. METHOD reset_context_data. " All context data is cleared. " If no force is specified, the clear is denied in case an exception has been found but not handled yet. DATA l_unhandled_text TYPE string. CLEAR ctx_function_name. CLEAR ctx_param_bindings. CLEAR ctx_initial_caller_sysysid. CLEAR ctx_initial_caller_symandt. CLEAR ctx_initial_caller_syuname. CLEAR ctx_last_caller_sysysid. CLEAR ctx_last_caller_symandt. CLEAR ctx_last_caller_syuname. CLEAR ctx_local_execution. CLEAR ctx_first_step. CLEAR ctx_final_step. CLEAR ctx_direct_call. CLEAR ctx_rfc_route_info. CLEAR int_rfc_context_checked. IF NOT auth_exception IS INITIAL. IF force_auth_exception_discard = abap_true. CLEAR auth_exception. RETURN. ENDIF. l_unhandled_text = auth_exception->get_text( ). /gal/trace=>write_callstack( ). RAISE EXCEPTION TYPE /gal/cx_cfw_auth_excep_fw EXPORTING textid = /gal/cx_cfw_auth_excep_fw=>ctx_reset_in_err_state var1 = l_unhandled_text. ENDIF. ENDMETHOD. METHOD set_context_data. " Set all needed context data. DATA l_var1 TYPE string. DATA l_var2 TYPE string. IF NOT /gal/cfw_auth=>ctx_function_name IS INITIAL AND /gal/cfw_auth=>ctx_function_name <> function_name. " Overwriting already set context data is not allowed. " Existing data has to be processed and cleared before. /gal/trace=>write_text( text = 'INTERNAL ERROR: Overwriting context in CFW auth framwork. This should not happen. Following Old and New:' no_flush = abap_true ). "#EC NOTEXT "Texte werden hier einzeln und nicht als Variablen ausgegeben, da der REPLACE_VARIABLES ggf. Problem macht "wegen potentiellem SQL Cursorverlust (ATC Fehler). /gal/trace=>write_text( text = /gal/cfw_auth=>ctx_function_name no_flush = abap_true ). /gal/trace=>write_text( text = function_name no_flush = abap_true ). /gal/trace=>write_callstack( ). l_var1 = /gal/cfw_auth=>ctx_function_name. l_var2 = function_name. RAISE EXCEPTION TYPE /gal/cx_cfw_auth_excep_fw EXPORTING textid = /gal/cx_cfw_auth_excep_fw=>ctx_in_use_overwrite var1 = l_var1 var2 = l_var2. ENDIF. /gal/cfw_auth=>ctx_function_name = function_name. /gal/cfw_auth=>ctx_param_bindings = param_bindings. /gal/cfw_auth=>ctx_initial_caller_sysysid = initial_caller_sysysid. /gal/cfw_auth=>ctx_initial_caller_symandt = initial_caller_symandt. /gal/cfw_auth=>ctx_initial_caller_syuname = initial_caller_syuname. /gal/cfw_auth=>ctx_last_caller_sysysid = last_caller_sysysid. /gal/cfw_auth=>ctx_last_caller_symandt = last_caller_symandt. /gal/cfw_auth=>ctx_last_caller_syuname = last_caller_syuname. /gal/cfw_auth=>ctx_local_execution = local_execution. /gal/cfw_auth=>ctx_first_step = first_step. /gal/cfw_auth=>ctx_final_step = final_step. /gal/cfw_auth=>ctx_direct_call = direct_call. /gal/cfw_auth=>ctx_rfc_route_info = rfc_route_info. ENDMETHOD. ENDCLASS.
[ 4871, 1220, 38, 1847, 14, 22495, 54, 62, 32, 24318, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 198, 220, 2099, 12, 7742, 82, 9564, 2969, 764, 628, 220, 38491, 7102, 2257, 62, 34, 6242, 62, 37, 17961, 62, 41150, 62, 42135, 2099, 1220, 38, 1847, 14, 22495, 54, 62, 34, 7759, 2662, 62, 32, 24318, 62, 12473, 7801, 6089, 1988, 705, 49, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 7102, 2257, 62, 34, 6242, 62, 37, 17961, 62, 42135, 2099, 1220, 38, 1847, 14, 22495, 54, 62, 34, 7759, 2662, 62, 32, 24318, 62, 12473, 7801, 6089, 1988, 705, 35, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 7102, 2257, 62, 34, 6242, 62, 15285, 62, 50084, 2099, 1220, 38, 1847, 14, 22495, 54, 62, 34, 7759, 2662, 62, 32, 24318, 62, 12473, 7801, 6089, 1988, 705, 45, 4458, 25113, 2943, 5626, 13918, 628, 220, 1398, 12, 24396, 82, 5870, 25171, 62, 32, 24318, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 34, 7759, 2662, 62, 32, 24318, 62, 12473, 7801, 6089, 2099, 1220, 38, 1847, 14, 22495, 54, 62, 34, 7759, 2662, 62, 32, 24318, 62, 12473, 7801, 6089, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1220, 38, 1847, 14, 34, 55, 62, 22495, 54, 62, 32, 24318, 62, 6369, 5222, 47, 62, 24160, 764, 198, 220, 1398, 12, 24396, 82, 5870, 25171, 62, 29701, 1847, 62, 42296, 34, 62, 43, 3955, 29722, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 42296, 4177, 2849, 62, 20608, 62, 6369, 31800, 1847, 2099, 19269, 2751, 11902, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1220, 38, 1847, 14, 34, 55, 62, 22495, 54, 62, 32, 24318, 62, 6369, 5222, 47, 62, 24160, 764, 198, 220, 1398, 12, 24396, 82, 5870, 25171, 62, 41150, 62, 10943, 32541, 62, 6369, 31800, 1847, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 42296, 4177, 2849, 62, 20608, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 5145, 31098, 62, 34, 7036, 2257, 8120, 62, 6369, 31800, 1847, 2099, 9564, 2969, 62, 34, 7036, 2257, 8120, 198, 220, 220, 220, 220, 220, 5145, 41150, 62, 49, 2606, 9328, 62, 10778, 62, 6369, 31800, 1847, 2099, 1220, 38, 1847, 14, 41150, 62, 49, 2606, 9328, 62, 10778, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1220, 38, 1847, 14, 34, 55, 62, 22495, 54, 62, 32, 24318, 62, 6369, 5222, 47, 62, 24160, 764, 198, 220, 1398, 12, 24396, 82, 376, 8267, 62, 22495, 54, 62, 32, 24318, 62, 1137, 49, 62, 6369, 62, 10778, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 22495, 54, 62, 32, 24318, 62, 6369, 42006, 2849, 2099, 1006, 284, 1220, 38, 1847, 14, 34, 55, 62, 22495, 54, 62, 32, 24318, 62, 6369, 42006, 2849, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 6369, 42006, 2849, 62, 10778, 8, 2099, 1220, 38, 1847, 14, 6369, 42006, 2849, 62, 10778, 764, 198, 220, 1398, 12, 24396, 82, 3268, 2043, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1220, 38, 1847, 14, 34, 55, 62, 22495, 54, 62, 32, 24318, 62, 6369, 5222, 47, 62, 24160, 764, 198, 220, 1398, 12, 24396, 82, 17926, 24352, 62, 32, 24318, 62, 6369, 42006, 2849, 62, 5064, 62, 6369, 1797, 4694, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1220, 38, 1847, 14, 34, 55, 62, 22495, 54, 62, 32, 24318, 62, 6369, 42006, 2849, 764, 198, 220, 1398, 12, 24396, 82, 15731, 2767, 62, 10943, 32541, 62, 26947, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 13775, 5222, 62, 32, 24318, 62, 6369, 42006, 2849, 62, 26288, 34, 9795, 2099, 9564, 2969, 62, 8202, 3535, 4277, 9564, 2969, 62, 37, 23719, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1220, 38, 1847, 14, 34, 55, 62, 22495, 54, 62, 32, 24318, 62, 6369, 5222, 47, 62, 24160, 764, 198, 220, 1398, 12, 24396, 82, 25823, 62, 10943, 32541, 62, 26947, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 42296, 4177, 2849, 62, 20608, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 5145, 27082, 2390, 62, 33, 12115, 20754, 2099, 9564, 2969, 62, 42296, 34, 62, 27082, 10744, 12115, 62, 5603, 33, 198, 220, 220, 220, 220, 220, 5145, 1268, 2043, 12576, 62, 34, 7036, 1137, 62, 50, 16309, 16309, 2389, 2099, 311, 16309, 16309, 2389, 198, 220, 220, 220, 220, 220, 5145, 1268, 2043, 12576, 62, 34, 7036, 1137, 62, 23060, 44, 6981, 51, 2099, 19704, 44, 6981, 51, 198, 220, 220, 220, 220, 220, 5145, 1268, 2043, 12576, 62, 34, 7036, 1137, 62, 23060, 4944, 10067, 2099, 19704, 4944, 10067, 198, 220, 220, 220, 220, 220, 5145, 43, 11262, 62, 34, 7036, 1137, 62, 50, 16309, 16309, 2389, 2099, 311, 16309, 16309, 2389, 198, 220, 220, 220, 220, 220, 5145, 43, 11262, 62, 34, 7036, 1137, 62, 23060, 44, 6981, 51, 2099, 19704, 44, 6981, 51, 198, 220, 220, 220, 220, 220, 5145, 43, 11262, 62, 34, 7036, 1137, 62, 23060, 4944, 10067, 2099, 19704, 4944, 10067, 198, 220, 220, 220, 220, 220, 5145, 29701, 1847, 62, 6369, 2943, 35354, 2099, 9564, 2969, 62, 8202, 3535, 198, 220, 220, 220, 220, 220, 5145, 39776, 2257, 62, 42135, 2099, 9564, 2969, 62, 8202, 3535, 198, 220, 220, 220, 220, 220, 5145, 37, 17961, 62, 42135, 2099, 9564, 2969, 62, 8202, 3535, 198, 220, 220, 220, 220, 220, 5145, 17931, 23988, 62, 34, 7036, 2099, 9564, 2969, 62, 8202, 3535, 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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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 ]
********************************************************************** * * Local class for handling messages of bookings * ********************************************************************** CLASS lcl_message_helper DEFINITION CREATE PRIVATE. PUBLIC SECTION. TYPES tt_booking_failed TYPE TABLE FOR FAILED /dmo/i_booking_u18. TYPES tt_booking_reported TYPE TABLE FOR REPORTED /dmo/i_booking_u18. CLASS-METHODS handle_booking_messages IMPORTING iv_cid TYPE string OPTIONAL iv_travel_id TYPE /dmo/travel_id18 OPTIONAL iv_booking_id TYPE /dmo/booking_id18 OPTIONAL it_messages TYPE /dmo/if_flight_legacy18=>tt_message CHANGING failed TYPE tt_booking_failed reported TYPE tt_booking_reported. ENDCLASS. CLASS lcl_message_helper IMPLEMENTATION. METHOD handle_booking_messages. LOOP AT it_messages INTO DATA(ls_message) WHERE msgty = 'E' OR msgty = 'A'. INSERT VALUE #( %cid = iv_cid travelid = iv_travel_id bookingid = iv_booking_id ) INTO TABLE failed. INSERT /dmo/cl_travel_auxiliary18=>map_booking_message( iv_travel_id = iv_travel_id iv_booking_id = iv_booking_id is_message = ls_message ) INTO TABLE reported. ENDLOOP. ENDMETHOD. ENDCLASS. ********************************************************************** * * Handler class for managing bookings * ********************************************************************** CLASS lhc_booking DEFINITION INHERITING FROM cl_abap_behavior_handler. PRIVATE SECTION. TYPES: tt_booking_update TYPE TABLE FOR UPDATE /dmo/i_booking_u18, tt_bookingsupplement_create TYPE TABLE FOR CREATE /dmo/i_bookingsupplement_u18. METHODS: update_booking FOR MODIFY IMPORTING it_booking_update FOR UPDATE booking, delete_booking FOR MODIFY IMPORTING it_booking_delete FOR DELETE booking, cba_supplement FOR MODIFY IMPORTING it_supplement_create_ba FOR CREATE booking\_booksupplement. METHODS: _fill_booking_inx IMPORTING is_booking_update TYPE LINE OF tt_booking_update RETURNING VALUE(rs_booking_inx) TYPE /dmo/if_flight_legacy18=>ts_booking_inx, _fill_bookingsupplement_inx IMPORTING is_bookingsupplement_create TYPE LINE OF tt_bookingsupplement_create RETURNING VALUE(rs_bookingsupplement_inx) TYPE /dmo/if_flight_legacy18=>ts_booking_supplement_inx. ENDCLASS. CLASS lhc_booking IMPLEMENTATION. ********************************************************************** * * Implements the UPDATE operation for a set of booking instances * ********************************************************************** METHOD update_booking. DATA lt_messages TYPE /dmo/if_flight_legacy18=>tt_message. LOOP AT it_booking_update ASSIGNING FIELD-SYMBOL(<fs_booking_update>). CALL FUNCTION '/DMO/FLIGHT_TRAVEL_UPDATE18' EXPORTING is_travel = VALUE /dmo/if_flight_legacy18=>ts_travel_in( travel_id = <fs_booking_update>-travelid ) is_travelx = VALUE /dmo/if_flight_legacy18=>ts_travel_inx( travel_id = <fs_booking_update>-travelid ) it_booking = VALUE /dmo/if_flight_legacy18=>tt_booking_in( ( /dmo/cl_travel_auxiliary18=>map_booking_cds_to_db( CORRESPONDING #( <fs_booking_update> ) ) ) ) it_bookingx = VALUE /dmo/if_flight_legacy18=>tt_booking_inx( ( _fill_booking_inx( <fs_booking_update> ) ) ) IMPORTING et_messages = lt_messages. lcl_message_helper=>handle_booking_messages( EXPORTING iv_cid = <fs_booking_update>-%cid_ref iv_travel_id = <fs_booking_update>-travelid iv_booking_id = <fs_booking_update>-bookingid it_messages = lt_messages CHANGING failed = failed-booking reported = reported-booking ). ENDLOOP. ENDMETHOD. ********************************************************************** * Helper method: * Indicates the booking fields that have been changed by the client * ********************************************************************** METHOD _fill_booking_inx. CLEAR rs_booking_inx. rs_booking_inx-booking_id = is_booking_update-bookingid. rs_booking_inx-action_code = /dmo/if_flight_legacy18=>action_code-update. rs_booking_inx-booking_date = xsdbool( is_booking_update-%control-bookingdate = cl_abap_behv=>flag_changed ). rs_booking_inx-customer_id = xsdbool( is_booking_update-%control-customerid = cl_abap_behv=>flag_changed ). rs_booking_inx-carrier_id = xsdbool( is_booking_update-%control-airlineid = cl_abap_behv=>flag_changed ). rs_booking_inx-connection_id = xsdbool( is_booking_update-%control-connectionid = cl_abap_behv=>flag_changed ). rs_booking_inx-flight_date = xsdbool( is_booking_update-%control-flightdate = cl_abap_behv=>flag_changed ). rs_booking_inx-flight_price = xsdbool( is_booking_update-%control-flightprice = cl_abap_behv=>flag_changed ). rs_booking_inx-currency_code = xsdbool( is_booking_update-%control-currencycode = cl_abap_behv=>flag_changed ). ENDMETHOD. ********************************************************************** * * Implements the DELETE operation for a set of booking instances * ********************************************************************** METHOD delete_booking. DATA lt_messages TYPE /dmo/if_flight_legacy18=>tt_message. LOOP AT it_booking_delete INTO DATA(ls_booking_delete). CALL FUNCTION '/DMO/FLIGHT_TRAVEL_UPDATE18' EXPORTING is_travel = VALUE /dmo/if_flight_legacy18=>ts_travel_in( travel_id = ls_booking_delete-travelid ) is_travelx = VALUE /dmo/if_flight_legacy18=>ts_travel_inx( travel_id = ls_booking_delete-travelid ) it_booking = VALUE /dmo/if_flight_legacy18=>tt_booking_in( ( booking_id = ls_booking_delete-bookingid ) ) it_bookingx = VALUE /dmo/if_flight_legacy18=>tt_booking_inx( ( booking_id = ls_booking_delete-bookingid action_code = /dmo/if_flight_legacy18=>action_code-delete ) ) IMPORTING et_messages = lt_messages. IF lt_messages IS NOT INITIAL. lcl_message_helper=>handle_booking_messages( EXPORTING iv_cid = ls_booking_delete-%cid_ref iv_travel_id = ls_booking_delete-travelid iv_booking_id = ls_booking_delete-bookingid it_messages = lt_messages CHANGING failed = failed-booking reported = reported-booking ). ENDIF. ENDLOOP. ENDMETHOD. *********************************************************************** * * Create associated booking supplements * *********************************************************************** METHOD cba_supplement. DATA lt_messages TYPE /dmo/if_flight_legacy18=>tt_message. DATA lt_booksupplement_old TYPE /dmo/if_flight_legacy18=>tt_booking_supplement. DATA ls_booksupplement TYPE LINE OF /dmo/if_flight_legacy18=>tt_booking_supplement_in. DATA lv_last_booksupplement_id TYPE /dmo/booking_supplement_id18. " Loop at parent - booking LOOP AT it_supplement_create_ba ASSIGNING FIELD-SYMBOL(<fs_supplement_create_ba>). DATA(ls_parent_key) = <fs_supplement_create_ba>-%key. " Retrieve booking supplements related to the imported travel ID CALL FUNCTION '/DMO/FLIGHT_TRAVEL_READ18' EXPORTING iv_travel_id = ls_parent_key-travelid IMPORTING et_booking_supplement = lt_booksupplement_old et_messages = lt_messages. IF lt_messages IS INITIAL. " Look up for maximum booking supplement ID for a given travel/booking " lt_booksupplement_old provides sorted values, therefore the last value is maximum value lv_last_booksupplement_id = REDUCE #( INIT res = 0 FOR old IN lt_booksupplement_old USING KEY primary_key WHERE ( travel_id = ls_parent_key-travelid AND booking_id = ls_parent_key-bookingid ) NEXT res = old-booking_supplement_id ). LOOP AT <fs_supplement_create_ba>-%target INTO DATA(ls_supplement_create). ls_supplement_create-bookingid = ls_parent_key-bookingid. " Increase value of booking supplement ID with 1 lv_last_booksupplement_id += 1. ls_supplement_create-bookingsupplementid = lv_last_booksupplement_id. " Do mapping between the element names of the CDS view and the original table fields ls_booksupplement = /dmo/cl_travel_auxiliary18=>map_bookingsupplemnt_cds_to_db( CORRESPONDING #( ls_supplement_create ) ) . " Create a new booking supplement and update a booking instance CALL FUNCTION '/DMO/FLIGHT_TRAVEL_UPDATE18' EXPORTING is_travel = VALUE /dmo/if_flight_legacy18=>ts_travel_in( travel_id = ls_parent_key-travelid ) is_travelx = VALUE /dmo/if_flight_legacy18=>ts_travel_inx( travel_id = ls_parent_key-travelid ) it_bookingx = VALUE /dmo/if_flight_legacy18=>tt_booking_inx( ( booking_id = ls_parent_key-bookingid action_code = /dmo/if_flight_legacy18=>action_code-update ) ) it_booking_supplement = VALUE /dmo/if_flight_legacy18=>tt_booking_supplement_in( ( ls_booksupplement ) ) it_booking_supplementx = VALUE /dmo/if_flight_legacy18=>tt_booking_supplement_inx( ( _fill_bookingsupplement_inx( ls_supplement_create ) ) ) IMPORTING et_messages = lt_messages. IF lt_messages IS INITIAL. INSERT VALUE #( %cid = ls_supplement_create-%cid travelid = ls_parent_key-travelid bookingid = ls_parent_key-bookingid bookingsupplementid = ls_booksupplement-booking_supplement_id ) INTO TABLE mapped-bookingsupplement. ELSE. " Issue a message in case of error ('E') or abort ('A') LOOP AT lt_messages INTO DATA(ls_message) WHERE msgty = 'E' OR msgty = 'A'. INSERT VALUE #( %cid = ls_supplement_create-%cid ) INTO TABLE failed-bookingsupplement. INSERT /dmo/cl_travel_auxiliary18=>map_bookingsupplemnt_message( iv_cid = ls_supplement_create-%cid is_message = ls_message ) INTO TABLE reported-bookingsupplement. ENDLOOP. ENDIF. ENDLOOP. ELSE. lcl_message_helper=>handle_booking_messages( EXPORTING iv_cid = <fs_supplement_create_ba>-%cid_ref iv_travel_id = ls_parent_key-travelid it_messages = lt_messages CHANGING failed = failed-booking reported = reported-booking ). ENDIF. ENDLOOP. ENDMETHOD. ********************************************************************** * Helper method: * Indicates the booking supplemnt fields that have been changed by the client * ********************************************************************** METHOD _fill_bookingsupplement_inx. CLEAR rs_bookingsupplement_inx. rs_bookingsupplement_inx-booking_supplement_id = is_bookingsupplement_create-bookingsupplementid. rs_bookingsupplement_inx-action_code = /dmo/if_flight_legacy18=>action_code-create. rs_bookingsupplement_inx-booking_id = is_bookingsupplement_create-bookingid. rs_bookingsupplement_inx-supplement_id = xsdbool( is_bookingsupplement_create-%control-supplementid = cl_abap_behv=>flag_changed ). rs_bookingsupplement_inx-price = xsdbool( is_bookingsupplement_create-%control-price = cl_abap_behv=>flag_changed ). rs_bookingsupplement_inx-currency_code = xsdbool( is_bookingsupplement_create-%control-currencycode = cl_abap_behv=>flag_changed ). ENDMETHOD. ENDCLASS.
[ 17174, 17174, 2466, 1174, 198, 9, 198, 9, 10714, 1398, 329, 9041, 6218, 286, 1492, 654, 198, 9, 198, 17174, 17174, 2466, 1174, 198, 31631, 300, 565, 62, 20500, 62, 2978, 525, 5550, 20032, 17941, 29244, 6158, 4810, 3824, 6158, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 2070, 278, 62, 47904, 220, 220, 41876, 43679, 7473, 9677, 4146, 1961, 220, 220, 1220, 67, 5908, 14, 72, 62, 2070, 278, 62, 84, 1507, 13, 198, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 2070, 278, 62, 26263, 41876, 43679, 7473, 39099, 1961, 1220, 67, 5908, 14, 72, 62, 2070, 278, 62, 84, 1507, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 5412, 62, 2070, 278, 62, 37348, 1095, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 66, 312, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 35927, 62, 312, 220, 41876, 1220, 67, 5908, 14, 35927, 62, 312, 1507, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 2070, 278, 62, 312, 41876, 1220, 67, 5908, 14, 2070, 278, 62, 312, 1507, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 37348, 1095, 220, 220, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1507, 14804, 926, 62, 20500, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4054, 220, 220, 41876, 256, 83, 62, 2070, 278, 62, 47904, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2098, 41876, 256, 83, 62, 2070, 278, 62, 26263, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 20500, 62, 2978, 525, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 5412, 62, 2070, 278, 62, 37348, 1095, 13, 628, 220, 220, 220, 17579, 3185, 5161, 340, 62, 37348, 1095, 39319, 42865, 7, 7278, 62, 20500, 8, 33411, 31456, 774, 796, 705, 36, 6, 6375, 31456, 774, 796, 705, 32, 4458, 198, 220, 220, 220, 220, 220, 29194, 17395, 26173, 8924, 1303, 7, 4064, 66, 312, 220, 220, 220, 220, 220, 796, 21628, 62, 66, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3067, 312, 220, 796, 21628, 62, 35927, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25452, 312, 796, 21628, 62, 2070, 278, 62, 312, 1267, 39319, 43679, 4054, 13, 628, 220, 220, 220, 220, 220, 29194, 17395, 1220, 67, 5908, 14, 565, 62, 35927, 62, 14644, 28129, 1507, 14804, 8899, 62, 2070, 278, 62, 20500, 7, 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, 21628, 62, 35927, 62, 312, 220, 796, 21628, 62, 35927, 62, 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, 220, 220, 220, 21628, 62, 2070, 278, 62, 312, 796, 21628, 62, 2070, 278, 62, 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, 220, 220, 220, 318, 62, 20500, 220, 220, 220, 796, 43979, 62, 20500, 1267, 39319, 43679, 2098, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 628, 198, 17174, 17174, 2466, 1174, 198, 9, 198, 9, 32412, 1398, 329, 11149, 1492, 654, 198, 9, 198, 17174, 17174, 2466, 1174, 198, 31631, 300, 71, 66, 62, 2070, 278, 5550, 20032, 17941, 3268, 16879, 2043, 2751, 16034, 537, 62, 397, 499, 62, 46571, 62, 30281, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 220, 220, 256, 83, 62, 2070, 278, 62, 19119, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 7473, 35717, 220, 1220, 67, 5908, 14, 72, 62, 2070, 278, 62, 84, 1507, 11, 198, 220, 220, 220, 220, 220, 220, 220, 256, 83, 62, 2070, 654, 7211, 1732, 62, 17953, 41876, 43679, 7473, 29244, 6158, 220, 1220, 67, 5908, 14, 72, 62, 2070, 654, 7211, 1732, 62, 84, 1507, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 220, 220, 4296, 62, 2070, 278, 7473, 19164, 5064, 56, 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, 30023, 9863, 2751, 220, 220, 340, 62, 2070, 278, 62, 19119, 220, 220, 220, 220, 220, 220, 7473, 35717, 25452, 11, 198, 220, 220, 220, 220, 220, 220, 220, 12233, 62, 2070, 278, 7473, 19164, 5064, 56, 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, 30023, 9863, 2751, 220, 220, 340, 62, 2070, 278, 62, 33678, 220, 220, 220, 220, 220, 220, 7473, 5550, 2538, 9328, 25452, 11, 198, 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 ]
CLASS zcl_abapgit_gui_page_code_insp DEFINITION PUBLIC FINAL CREATE PUBLIC INHERITING FROM zcl_abapgit_gui_page_codi_base. PUBLIC SECTION. INTERFACES: zif_abapgit_gui_page_hotkey. METHODS: constructor IMPORTING io_repo TYPE REF TO zcl_abapgit_repo io_stage TYPE REF TO zcl_abapgit_stage OPTIONAL RAISING zcx_abapgit_exception, zif_abapgit_gui_page~on_event REDEFINITION, zif_abapgit_gui_page~render REDEFINITION. PROTECTED SECTION. METHODS: render_content REDEFINITION. PRIVATE SECTION. CONSTANTS: BEGIN OF c_actions, stage TYPE string VALUE 'stage' ##NO_TEXT, commit TYPE string VALUE 'commit' ##NO_TEXT, rerun TYPE string VALUE 'rerun' ##NO_TEXT, END OF c_actions. DATA: mo_stage TYPE REF TO zcl_abapgit_stage. METHODS: build_menu RETURNING VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar RAISING zcx_abapgit_exception, run_code_inspector RAISING zcx_abapgit_exception, has_inspection_errors RETURNING VALUE(rv_has_inspection_errors) TYPE abap_bool, is_stage_allowed RETURNING VALUE(rv_is_stage_allowed) TYPE abap_bool. ENDCLASS. CLASS ZCL_ABAPGIT_GUI_PAGE_CODE_INSP IMPLEMENTATION. METHOD build_menu. DATA: lv_opt TYPE c LENGTH 1. CREATE OBJECT ro_menu. ro_menu->add( iv_txt = 'Re-Run' iv_act = c_actions-rerun iv_cur = abap_false ) ##NO_TEXT. IF is_stage_allowed( ) = abap_false. lv_opt = zif_abapgit_definitions=>c_html_opt-crossout. ENDIF. IF mo_repo->is_offline( ) = abap_true. RETURN. ENDIF. IF mo_stage IS BOUND. " Staging info already available, we can directly " offer to commit ro_menu->add( iv_txt = 'Commit' iv_act = c_actions-commit iv_cur = abap_false iv_opt = lv_opt ) ##NO_TEXT. ELSE. ro_menu->add( iv_txt = 'Stage' iv_act = c_actions-stage iv_cur = abap_false iv_opt = lv_opt ) ##NO_TEXT. ENDIF. ENDMETHOD. METHOD constructor. super->constructor( ). mo_repo ?= io_repo. mo_stage = io_stage. ms_control-page_title = 'Code Inspector'. run_code_inspector( ). ENDMETHOD. METHOD has_inspection_errors. READ TABLE mt_result TRANSPORTING NO FIELDS WITH KEY kind = 'E'. rv_has_inspection_errors = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD is_stage_allowed. rv_is_stage_allowed = boolc( NOT ( mo_repo->get_local_settings( )-block_commit = abap_true AND has_inspection_errors( ) = abap_true ) ). ENDMETHOD. METHOD render_content. DATA: lv_check_variant TYPE sci_chkv. FIELD-SYMBOLS: <ls_result> TYPE scir_alvlist. CREATE OBJECT ro_html. lv_check_variant = mo_repo->get_local_settings( )-code_inspector_check_variant. IF lv_check_variant IS INITIAL. ro_html->add( |No check variant maintained in repo settings.| ). RETURN. ENDIF. ro_html->add( '<div class="toc"><br/>' ). ro_html->add( |Code inspector check variant: { mo_repo->get_local_settings( )-code_inspector_check_variant }<br/>| ). IF lines( mt_result ) = 0. ro_html->add( '<br/><div class="success">No code inspector findings</div>' ). ENDIF. ro_html->add( |<br/>| ). LOOP AT mt_result ASSIGNING <ls_result>. render_result( io_html = ro_html iv_result = <ls_result> ). ENDLOOP. ro_html->add( '</div>' ). ENDMETHOD. METHOD run_code_inspector. mt_result = mo_repo->run_code_inspector( ). ENDMETHOD. METHOD zif_abapgit_gui_page_hotkey~get_hotkey_actions. DATA: ls_hotkey_action LIKE LINE OF rt_hotkey_actions. ls_hotkey_action-name = |Stage|. ls_hotkey_action-action = c_actions-stage. ls_hotkey_action-default_hotkey = |s|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. ls_hotkey_action-name = |Re-Run|. ls_hotkey_action-action = c_actions-rerun. ls_hotkey_action-default_hotkey = |r|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. ENDMETHOD. METHOD zif_abapgit_gui_page~on_event. DATA: lo_repo_online TYPE REF TO zcl_abapgit_repo_online. CASE iv_action. WHEN c_actions-stage. lo_repo_online ?= mo_repo. IF is_stage_allowed( ) = abap_true. " we need to refresh as the source might have changed lo_repo_online->refresh( ). CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_stage EXPORTING io_repo = lo_repo_online. ev_state = zif_abapgit_definitions=>c_event_state-new_page. ELSE. ei_page = me. ev_state = zif_abapgit_definitions=>c_event_state-no_more_act. ENDIF. WHEN c_actions-commit. lo_repo_online ?= mo_repo. IF is_stage_allowed( ) = abap_true. CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_commit EXPORTING io_repo = lo_repo_online io_stage = mo_stage. ev_state = zif_abapgit_definitions=>c_event_state-new_page. ELSE. ei_page = me. ev_state = zif_abapgit_definitions=>c_event_state-no_more_act. ENDIF. WHEN c_actions-rerun. run_code_inspector( ). ei_page = me. ev_state = zif_abapgit_definitions=>c_event_state-re_render. WHEN OTHERS. super->zif_abapgit_gui_page~on_event( EXPORTING iv_action = iv_action iv_prev_page = iv_prev_page iv_getdata = iv_getdata it_postdata = it_postdata IMPORTING ei_page = ei_page ev_state = ev_state ). ENDCASE. ENDMETHOD. METHOD zif_abapgit_gui_page~render. ms_control-page_menu = build_menu( ). ro_html = super->zif_abapgit_gui_page~render( ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 8189, 62, 1040, 79, 5550, 20032, 17941, 44731, 25261, 29244, 6158, 44731, 198, 220, 220, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 19815, 72, 62, 8692, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 8940, 2539, 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, 33245, 62, 260, 7501, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 14247, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 14247, 39852, 2849, 1847, 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, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 7700, 93, 261, 62, 15596, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 11, 628, 220, 220, 220, 220, 220, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 7700, 93, 13287, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 8543, 62, 11299, 220, 220, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 4658, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3800, 220, 41876, 4731, 26173, 8924, 705, 14247, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4589, 41876, 4731, 26173, 8924, 705, 41509, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 302, 5143, 220, 41876, 4731, 26173, 8924, 705, 260, 5143, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 4658, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 6941, 62, 14247, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 14247, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 1382, 62, 26272, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 26272, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 25981, 5657, 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, 1057, 62, 8189, 62, 1040, 806, 273, 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, 468, 62, 1040, 14978, 62, 48277, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 10134, 62, 1040, 14978, 62, 48277, 8, 41876, 450, 499, 62, 30388, 11, 628, 220, 220, 220, 220, 220, 318, 62, 14247, 62, 40845, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 271, 62, 14247, 62, 40845, 8, 41876, 450, 499, 62, 30388, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 40156, 62, 4537, 8264, 62, 34, 16820, 62, 1268, 4303, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1382, 62, 26272, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 8738, 41876, 269, 406, 49494, 352, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 686, 62, 26272, 13, 628, 220, 220, 220, 686, 62, 26272, 3784, 2860, 7, 21628, 62, 14116, 796, 705, 3041, 12, 10987, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 529, 796, 269, 62, 4658, 12, 260, 5143, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 22019, 796, 450, 499, 62, 9562, 1267, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 16876, 318, 62, 14247, 62, 40845, 7, 1267, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 8738, 796, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 66, 62, 6494, 62, 8738, 12, 19692, 448, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 16876, 6941, 62, 260, 7501, 3784, 271, 62, 2364, 1370, 7, 1267, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 16876, 6941, 62, 14247, 3180, 347, 15919, 13, 628, 220, 220, 220, 220, 220, 366, 520, 3039, 7508, 1541, 1695, 11, 356, 460, 3264, 198, 220, 220, 220, 220, 220, 366, 2897, 284, 4589, 628, 220, 220, 220, 220, 220, 686, 62, 26272, 3784, 2860, 7, 21628, 62, 14116, 796, 705, 6935, 270, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 529, 796, 269, 62, 4658, 12, 41509, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 22019, 796, 450, 499, 62, 9562, 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, 1, 1, 1, 1, 1, 1, 1 ]
class ZCL_MONSTER_RULES definition public final create public . public section. constants MC_SANITY_FUNCTION type FDT_UUID value '005056B074C91ED689AA2B1061B060F9' ##NO_TEXT. constants MC_HAT_SIZE_FUNCTION type FDT_UUID value '005056B074C91ED689AA010171BC00F9' ##NO_TEXT. methods DERIVE_SANITY_DESCRIPTION importing !ID_SANITY_PERCENTAGE type ZDE_MONSTER_SANITY returning value(RD_SANITY_DESCRIPTION) type TEXT30 raising ZCX_MONSTER_EXCEPTIONS . methods DERIVE_HAT_SIZE_DESCRIPTION importing !ID_HAT_SIZE type ZDE_MONSTER_HAT_SIZE returning value(RD_HAT_SIZE_DESCRIPTION) type TEXT30 raising ZCX_MONSTER_EXCEPTIONS . methods DERIVE_INGREDIENT_TYPE importing !ID_SANITY_DESIRED type ZDE_MONSTER_SANITY !ID_USAGE_DESIRED type ZDE_MONSTER_USAGE !ID_EVILNESS_DESIRED type ZDE_MONSTER_EVILNESS !ID_SCARINESS_DESIRED type ZDE_MONSTER_SCARINESS !ID_RAGES_PER_DAY_DESIRED type ZDE_MONSTER_RAGES_PER_DAY returning value(RD_INGREDIENT_TYPE) type ZDE_MONSTER_INGREDIENTS raising ZCX_MONSTER_EXCEPTIONS . methods DERIVE_INGREDIENT_SPLIT importing !IS_INPUT_DATA type ZST_MONSTER_INPUT_DATA returning value(RS_INGREDIENT_SPLIT) type ZST_MONSTER_INGREDIENT_SPLIT raising ZCX_MONSTER_EXCEPTIONS . protected section. private section. ENDCLASS. CLASS ZCL_MONSTER_RULES IMPLEMENTATION. METHOD derive_hat_size_description. ** Local Variables CONSTANTS: hat_size_function TYPE if_fdt_types=>id VALUE '005056B074C91ED98BF6D0384C59A112'. DATA:timestamp TYPE timestamp, name_value_table TYPE abap_parmbind_tab, name_value_pair TYPE abap_parmbind, data_reference TYPE REF TO data, monster_hat_size TYPE if_fdt_types=>element_number, hat_size_description TYPE zde_hat_size_description. FIELD-SYMBOLS <result> TYPE any. GET TIME STAMP FIELD timestamp. name_value_pair-name = 'ZDE_MONSTER_HAT_SIZE'. monster_hat_size = id_hat_size. GET REFERENCE OF monster_hat_size INTO data_reference. name_value_pair-value = data_reference. INSERT name_value_pair INTO TABLE name_value_table. GET REFERENCE OF hat_size_description INTO data_reference. ASSIGN data_reference->* TO <result>. TRY. cl_fdt_function_process=>process( EXPORTING iv_function_id = hat_size_function iv_timestamp = timestamp IMPORTING ea_result = <result> CHANGING ct_name_value = name_value_table ). rd_hat_size_description = hat_size_description. CATCH cx_fdt INTO DATA(function_error). READ TABLE function_error->mt_message INDEX 1 ASSIGNING FIELD-SYMBOL(<function_error_info>). DATA(monster_error_info) = VALUE scx_t100key( msgid = 'ZMONSTERS' msgno = '003' "&1 &2 &3 &4 attr1 = <function_error_info>-text ). RAISE EXCEPTION TYPE zcx_monster_exceptions EXPORTING textid = monster_error_info. ENDTRY. ENDMETHOD. METHOD derive_ingredient_split. CONSTANTS: ingredient_split_function TYPE if_fdt_types=>id VALUE '005056B074C91ED98BF5B7F7860CE112'. DATA:timestamp TYPE timestamp, parameter_list TYPE abap_parmbind_tab, parameter_values TYPE abap_parmbind, data_reference TYPE REF TO data, village_region TYPE if_fdt_types=>element_text, monster_brain_size TYPE if_fdt_types=>element_text, monster_color TYPE if_fdt_types=>element_text, monster_model TYPE if_fdt_types=>element_text, monster_osoup_percentage TYPE if_fdt_types=>element_number, monster_growth_percentage TYPE if_fdt_types=>element_number, early_age_strength TYPE if_fdt_types=>element_number, eas_days TYPE if_fdt_types=>element_number, monster_ingredient_split TYPE zst_monster_ingredient_split. FIELD-SYMBOLS <result> TYPE any. GET TIME STAMP FIELD timestamp. *--------------------------------------------------------------------* * Input Parameters *--------------------------------------------------------------------* parameter_values-name = 'ZDE_VILLAGE_REGION'. village_region = is_input_data-region. GET REFERENCE OF village_region INTO data_reference. parameter_values-value = data_reference. INSERT parameter_values INTO TABLE parameter_list. parameter_values-name = 'ZDE_MONSTER_BRAIN_SIZE'. monster_brain_size = is_input_data-brain_size. GET REFERENCE OF monster_brain_size INTO data_reference. parameter_values-value = data_reference. INSERT parameter_values INTO TABLE parameter_list. parameter_values-name = 'ZDE_MONSTER_COLOR'. monster_color = is_input_data-color. GET REFERENCE OF monster_color INTO data_reference. parameter_values-value = data_reference. INSERT parameter_values INTO TABLE parameter_list. parameter_values-name = 'ZDE_MONSTER_MODEL'. monster_model = is_input_data-model. GET REFERENCE OF monster_model INTO data_reference. parameter_values-value = data_reference. INSERT parameter_values INTO TABLE parameter_list. parameter_values-name = 'ZDE_MONSTER_OSOUP_PERCENTAGE'. monster_osoup_percentage = is_input_data-osoup_percentage. GET REFERENCE OF monster_osoup_percentage INTO data_reference. parameter_values-value = data_reference. INSERT parameter_values INTO TABLE parameter_list. parameter_values-name = 'ZDE_MONSTER_GROWTH_PERCENTAGE'. monster_growth_percentage = is_input_data-growth_percentage. GET REFERENCE OF monster_growth_percentage INTO data_reference. parameter_values-value = data_reference. INSERT parameter_values INTO TABLE parameter_list. parameter_values-name = 'ZDE_EARLY_AGE_STRENGTH'. early_age_strength = is_input_data-early_age_strength. GET REFERENCE OF early_age_strength INTO data_reference. parameter_values-value = data_reference. INSERT parameter_values INTO TABLE parameter_list. parameter_values-name = 'ZDE_EAS_DAYS'. eas_days = is_input_data-eas_days. GET REFERENCE OF eas_days INTO data_reference. parameter_values-value = data_reference. INSERT parameter_values INTO TABLE parameter_list. *--------------------------------------------------------------------* * Result *--------------------------------------------------------------------* GET REFERENCE OF monster_ingredient_split INTO data_reference. ASSIGN data_reference->* TO <result>. *--------------------------------------------------------------------* * Here we go! *--------------------------------------------------------------------* TRY. cl_fdt_function_process=>process( EXPORTING iv_function_id = ingredient_split_function iv_timestamp = timestamp IMPORTING ea_result = <result> CHANGING ct_name_value = parameter_list ). *--------------------------------------------------------------------* * Error Handling *--------------------------------------------------------------------* CATCH cx_fdt INTO DATA(function_error). READ TABLE function_error->mt_message INDEX 1 ASSIGNING FIELD-SYMBOL(<function_error_info>). DATA(monster_error_info) = VALUE scx_t100key( msgid = 'ZMONSTERS' msgno = '003' "&1 &2 &3 &4 attr1 = <function_error_info>-text ). RAISE EXCEPTION TYPE zcx_monster_exceptions EXPORTING textid = monster_error_info. ENDTRY. ENDMETHOD. METHOD derive_ingredient_type. *--------------------------------------------------------------------* * Listing 09.02 : Calling BRFplus Function from ABAP *--------------------------------------------------------------------* CONSTANTS: ingredient_function TYPE if_fdt_types=>id VALUE '005056B074C91ED8A2BA59B5E05F810F'. DATA:timestamp TYPE timestamp, parameter_list TYPE abap_parmbind_tab, parameter_values TYPE abap_parmbind, data_reference TYPE REF TO data, brf_monster_sanity TYPE if_fdt_types=>element_number, brf_monster_usage TYPE if_fdt_types=>element_text, brf_monster_scariness TYPE if_fdt_types=>element_text, brf_monster_evilness TYPE if_fdt_types=>element_text, brf_monster_rages_per_day TYPE if_fdt_types=>element_number. FIELD-SYMBOLS <result> TYPE any. GET TIME STAMP FIELD timestamp. parameter_values-name = 'ZDE_MONSTER_SANITY'. brf_monster_sanity = id_sanity_desired. GET REFERENCE OF brf_monster_sanity INTO data_reference. parameter_values-value = data_reference. INSERT parameter_values INTO TABLE parameter_list. parameter_values-name = 'ZDE_MONSTER_USAGE'. brf_monster_usage = id_usage_desired. GET REFERENCE OF brf_monster_usage INTO data_reference. parameter_values-value = data_reference. INSERT parameter_values INTO TABLE parameter_list. parameter_values-name = 'ZDE_MONSTER_SCARINESS'. brf_monster_scariness = id_scariness_desired. GET REFERENCE OF brf_monster_scariness INTO data_reference. parameter_values-value = data_reference. INSERT parameter_values INTO TABLE parameter_list. parameter_values-name = 'ZDE_MONSTER_EVILNESS'. brf_monster_evilness = id_evilness_desired. GET REFERENCE OF brf_monster_evilness INTO data_reference. parameter_values-value = data_reference. INSERT parameter_values INTO TABLE parameter_list. parameter_values-name = 'ZDE_MONSTER_RAGES_PER_DAY'. brf_monster_rages_per_day = id_rages_per_day_desired. GET REFERENCE OF brf_monster_rages_per_day INTO data_reference. parameter_values-value = data_reference. INSERT parameter_values INTO TABLE parameter_list. cl_fdt_function_process=>get_data_object_reference( EXPORTING iv_function_id = ingredient_function iv_data_object = '_V_RESULT' iv_timestamp = timestamp iv_trace_generation = abap_false IMPORTING er_data = data_reference ). ASSIGN data_reference->* TO <result>. TRY. cl_fdt_function_process=>process( EXPORTING iv_function_id = ingredient_function iv_timestamp = timestamp IMPORTING ea_result = <result> CHANGING ct_name_value = parameter_list ). rd_ingredient_type = <result>. CATCH cx_fdt INTO DATA(function_error). READ TABLE function_error->mt_message INDEX 1 ASSIGNING FIELD-SYMBOL(<function_error_info>). DATA(monster_error_info) = VALUE scx_t100key( msgid = 'ZMONSTERS' msgno = '003' "&1 &2 &3 &4 attr1 = <function_error_info>-text ). RAISE EXCEPTION TYPE zcx_monster_exceptions EXPORTING textid = monster_error_info. ENDTRY. ENDMETHOD. METHOD derive_sanity_description. * Local Variables CONSTANTS: sanity_deriving_function TYPE if_fdt_types=>id VALUE '005056B074C91ED98BF6F0A17957E112'. DATA:timestamp TYPE timestamp, name_value_table TYPE abap_parmbind_tab, name_value_pair TYPE abap_parmbind, data_reference TYPE REF TO data, monster_sanity TYPE if_fdt_types=>element_number, sanity_description TYPE zde_sanity_description. FIELD-SYMBOLS <result> TYPE any. GET TIME STAMP FIELD timestamp. name_value_pair-name = 'ZDE_MONSTER_SANITY'. monster_sanity = id_sanity_percentage. GET REFERENCE OF monster_sanity INTO data_reference. name_value_pair-value = data_reference. INSERT name_value_pair INTO TABLE name_value_table. GET REFERENCE OF sanity_description INTO data_reference. ASSIGN data_reference->* TO <result>. TRY. cl_fdt_function_process=>process( EXPORTING iv_function_id = sanity_deriving_function iv_timestamp = timestamp IMPORTING ea_result = <result> CHANGING ct_name_value = name_value_table ). rd_sanity_description = sanity_description. CATCH cx_fdt INTO DATA(function_error). READ TABLE function_error->mt_message INDEX 1 ASSIGNING FIELD-SYMBOL(<function_error_info>). DATA(monster_error_info) = VALUE scx_t100key( msgid = 'ZMONSTERS' msgno = '003' "&1 &2 &3 &4 attr1 = <function_error_info>-text ). RAISE EXCEPTION TYPE zcx_monster_exceptions EXPORTING textid = monster_error_info. ENDTRY. ENDMETHOD. ENDCLASS.
[ 4871, 1168, 5097, 62, 27857, 41809, 62, 49, 6239, 1546, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 38491, 13122, 62, 36753, 9050, 62, 42296, 4177, 2849, 2099, 376, 24544, 62, 52, 27586, 1988, 705, 405, 1120, 3980, 33, 2998, 19, 34, 6420, 1961, 40523, 3838, 17, 33, 940, 5333, 33, 41322, 37, 24, 6, 22492, 15285, 62, 32541, 13, 198, 220, 38491, 13122, 62, 39, 1404, 62, 33489, 62, 42296, 4177, 2849, 2099, 376, 24544, 62, 52, 27586, 1988, 705, 405, 1120, 3980, 33, 2998, 19, 34, 6420, 1961, 40523, 3838, 486, 486, 4869, 2749, 405, 37, 24, 6, 22492, 15285, 62, 32541, 13, 628, 220, 5050, 360, 1137, 9306, 62, 36753, 9050, 62, 30910, 40165, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 2389, 62, 36753, 9050, 62, 18973, 43960, 11879, 2099, 1168, 7206, 62, 27857, 41809, 62, 36753, 9050, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 35257, 62, 36753, 9050, 62, 30910, 40165, 8, 2099, 40383, 1270, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 34, 55, 62, 27857, 41809, 62, 6369, 42006, 11053, 764, 198, 220, 5050, 360, 1137, 9306, 62, 39, 1404, 62, 33489, 62, 30910, 40165, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 2389, 62, 39, 1404, 62, 33489, 2099, 1168, 7206, 62, 27857, 41809, 62, 39, 1404, 62, 33489, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 35257, 62, 39, 1404, 62, 33489, 62, 30910, 40165, 8, 2099, 40383, 1270, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 34, 55, 62, 27857, 41809, 62, 6369, 42006, 11053, 764, 198, 220, 5050, 360, 1137, 9306, 62, 2751, 22083, 28495, 62, 25216, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 2389, 62, 36753, 9050, 62, 30910, 37819, 2099, 1168, 7206, 62, 27857, 41809, 62, 36753, 9050, 198, 220, 220, 220, 220, 220, 5145, 2389, 62, 2937, 11879, 62, 30910, 37819, 2099, 1168, 7206, 62, 27857, 41809, 62, 2937, 11879, 198, 220, 220, 220, 220, 220, 5145, 2389, 62, 20114, 4146, 31097, 62, 30910, 37819, 2099, 1168, 7206, 62, 27857, 41809, 62, 20114, 4146, 31097, 198, 220, 220, 220, 220, 220, 5145, 2389, 62, 6173, 1503, 44180, 62, 30910, 37819, 2099, 1168, 7206, 62, 27857, 41809, 62, 6173, 1503, 44180, 198, 220, 220, 220, 220, 220, 5145, 2389, 62, 33202, 1546, 62, 18973, 62, 26442, 62, 30910, 37819, 2099, 1168, 7206, 62, 27857, 41809, 62, 33202, 1546, 62, 18973, 62, 26442, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 35257, 62, 2751, 22083, 28495, 62, 25216, 8, 2099, 1168, 7206, 62, 27857, 41809, 62, 2751, 22083, 40, 15365, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 34, 55, 62, 27857, 41809, 62, 6369, 42006, 11053, 764, 198, 220, 5050, 360, 1137, 9306, 62, 2751, 22083, 28495, 62, 4303, 43, 2043, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 1797, 62, 1268, 30076, 62, 26947, 2099, 1168, 2257, 62, 27857, 41809, 62, 1268, 30076, 62, 26947, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 6998, 62, 2751, 22083, 28495, 62, 4303, 43, 2043, 8, 2099, 1168, 2257, 62, 27857, 41809, 62, 2751, 22083, 28495, 62, 4303, 43, 2043, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 34, 55, 62, 27857, 41809, 62, 6369, 42006, 11053, 764, 198, 24326, 2665, 13, 198, 19734, 2665, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 27857, 41809, 62, 49, 6239, 1546, 30023, 2538, 10979, 6234, 13, 628, 198, 49273, 27099, 62, 5183, 62, 7857, 62, 11213, 13, 198, 1174, 10714, 15965, 2977, 198, 220, 7102, 2257, 1565, 4694, 25, 6877, 62, 7857, 62, 8818, 41876, 611, 62, 16344, 83, 62, 19199, 14804, 312, 26173, 8924, 705, 405, 1120, 3980, 33, 2998, 19, 34, 6420, 1961, 4089, 29499, 21, 35, 15, 22842, 34, 3270, 32, 14686, 4458, 628, 220, 42865, 25, 16514, 27823, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 41033, 11, 198, 220, 220, 220, 220, 220, 220, 1438, 62, 8367, 62, 11487, 220, 220, 220, 220, 41876, 450, 499, 62, 79, 1670, 21653, 62, 8658, 11, 198, 220, 220, 220, 220, 220, 220, 1438, 62, 8367, 62, 24874, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 79, 1670, 21653, 11, 198, 220, 220, 220, 220, 220, 220, 1366, 62, 35790, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1366, 11, 198, 220, 220, 220, 220, 220, 220, 9234, 62, 5183, 62, 7857, 220, 220, 220, 220, 41876, 611, 62, 16344, 83, 62, 19199, 14804, 30854, 62, 17618, 11, 198, 220, 220, 220, 220, 220, 220, 6877, 62, 7857, 62, 11213, 41876, 1976, 2934, 62, 5183, 62, 7857, 62, 11213, 13, 628, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 1279, 20274, 29, 41876, 597, 13, 628, 220, 17151, 20460, 3563, 23518, 18930, 24639, 41033, 13, 628, 220, 1438, 62, 8367, 62, 24874, 12, 3672, 796, 705, 57, 7206, 62, 27857, 41809, 62, 39, 1404, 62, 33489, 4458, 198, 220, 9234, 62, 5183, 62, 7857, 220, 220, 220, 220, 796, 4686, 62, 5183, 62, 7857, 13, 198, 220, 17151, 4526, 24302, 18310, 3963, 9234, 62, 5183, 62, 7857, 39319, 1366, 62, 35790, 13, 198, 220, 1438, 62, 8367, 62, 24874, 12, 8367, 796, 1366, 62, 35790, 13, 198, 220, 29194, 17395, 1438, 62, 8367, 62, 24874, 39319, 43679, 1438, 62, 8367, 62, 11487, 13, 628, 220, 17151, 4526, 24302, 18310, 3963, 6877, 62, 7857, 62, 11213, 39319, 1366, 62, 35790, 13, 198, 220, 24994, 16284, 1366, 62, 35790, 3784, 9, 5390, 1279, 20274, 28401, 628, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 537, 62, 16344, 83, 62, 8818, 62, 14681, 14804, 14681, 7, 7788, 15490, 2751, 21628, 62, 8818, 62, 312, 796, 6877, 62, 7857, 62, 8818, 198, 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, 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 ]
CLASS zcl_abapgit_object_smim 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. METHODS get_filename IMPORTING iv_url TYPE string RETURNING VALUE(rv_filename) TYPE string. METHODS find_content IMPORTING iv_url TYPE string RETURNING VALUE(rv_content) TYPE xstring RAISING zcx_abapgit_exception. METHODS build_filename IMPORTING iv_filename TYPE string RETURNING VALUE(rv_filename) TYPE string. METHODS get_url_for_io EXPORTING ev_url TYPE string ev_is_folder TYPE abap_bool RAISING zcx_abapgit_not_found zcx_abapgit_exception. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_SMIM IMPLEMENTATION. METHOD build_filename. CONCATENATE ms_item-obj_name ms_item-obj_type iv_filename INTO rv_filename SEPARATED BY '.'. TRANSLATE rv_filename TO LOWER CASE. ENDMETHOD. METHOD find_content. DATA: lv_filename TYPE string, lt_files TYPE zif_abapgit_definitions=>ty_files_tt. FIELD-SYMBOLS: <ls_file> LIKE LINE OF lt_files. lv_filename = get_filename( iv_url ). lv_filename = build_filename( lv_filename ). lt_files = mo_files->get_files( ). READ TABLE lt_files ASSIGNING <ls_file> WITH KEY filename = lv_filename. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'SMIM, file not found' ). ENDIF. rv_content = <ls_file>-data. ENDMETHOD. METHOD get_filename. DATA: lv_lines TYPE i, lt_strings TYPE TABLE OF string. SPLIT iv_url AT '/' INTO TABLE lt_strings. lv_lines = lines( lt_strings ). ASSERT lv_lines > 0. READ TABLE lt_strings INDEX lv_lines INTO rv_filename. ASSERT sy-subrc = 0. ENDMETHOD. METHOD get_url_for_io. DATA: ls_io TYPE skwf_io, lv_url TYPE skwf_url, ls_smimloio TYPE smimloio, lv_loio TYPE sdok_docid. lv_loio = ms_item-obj_name. CLEAR ev_url. CLEAR ev_is_folder. SELECT SINGLE * FROM smimloio INTO ls_smimloio WHERE loio_id = lv_loio. "#EC CI_GENBUFF IF sy-subrc <> 0. RAISE EXCEPTION TYPE zcx_abapgit_not_found. ENDIF. IF ls_smimloio-lo_class = wbmr_c_skwf_folder_class. ev_is_folder = abap_true. ls_io-objtype = skwfc_obtype_folder. ELSE. ls_io-objtype = skwfc_obtype_loio. ENDIF. ls_io-class = ls_smimloio-lo_class. ls_io-objid = ls_smimloio-loio_id. CALL FUNCTION 'SKWF_NMSPC_IO_ADDRESS_GET' EXPORTING io = ls_io IMPORTING url = lv_url. ev_url = lv_url. ENDMETHOD. METHOD zif_abapgit_object~changed_by. DATA: lv_loio TYPE sdok_docid. lv_loio = ms_item-obj_name. SELECT SINGLE chng_user FROM smimloio INTO rv_user WHERE loio_id = lv_loio. "#EC CI_GENBUFF IF sy-subrc <> 0 OR rv_user IS INITIAL. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: li_api TYPE REF TO if_mr_api, lv_url TYPE string. TRY. get_url_for_io( IMPORTING ev_url = lv_url ). CATCH zcx_abapgit_not_found. RETURN. ENDTRY. li_api = cl_mime_repository_api=>if_mr_api~get_api( ). li_api->delete( EXPORTING i_url = lv_url i_delete_children = abap_true EXCEPTIONS parameter_missing = 1 error_occured = 2 cancelled = 3 permission_failure = 4 not_found = 5 OTHERS = 6 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from delete' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lv_url TYPE string, lv_folder TYPE abap_bool, lv_content TYPE xstring, lv_filename TYPE skwf_filnm, lv_io TYPE sdok_docid, lv_class TYPE smimloio-lo_class, ls_skwf_io TYPE skwf_io, li_api TYPE REF TO if_mr_api. li_api = cl_mime_repository_api=>if_mr_api~get_api( ). lv_io = ms_item-obj_name. io_xml->read( EXPORTING iv_name = 'URL' CHANGING cg_data = lv_url ). io_xml->read( EXPORTING iv_name = 'FOLDER' CHANGING cg_data = lv_folder ). io_xml->read( EXPORTING iv_name = 'CLASS' CHANGING cg_data = lv_class ). ls_skwf_io-objid = lv_io. IF lv_folder = abap_true. li_api->create_folder( EXPORTING i_url = lv_url i_language = mv_language i_dev_package = iv_package i_folder_loio = ls_skwf_io EXCEPTIONS parameter_missing = 1 error_occured = 2 cancelled = 3 permission_failure = 4 folder_exists = 5 OTHERS = 6 ). IF sy-subrc <> 5 AND sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error frrom SMIM create_folder' ). ENDIF. ELSE. lv_filename = get_filename( lv_url ). ls_skwf_io-class = lv_class. IF ls_skwf_io-class IS INITIAL. cl_wb_mime_repository=>determine_io_class( EXPORTING filename = lv_filename IMPORTING io_class = ls_skwf_io-class ). CONCATENATE ls_skwf_io-class '_L' INTO ls_skwf_io-class. ENDIF. lv_content = find_content( lv_url ). li_api->put( EXPORTING i_url = lv_url i_content = lv_content i_dev_package = iv_package i_new_loio = ls_skwf_io EXCEPTIONS parameter_missing = 1 error_occured = 2 cancelled = 3 permission_failure = 4 data_inconsistency = 5 new_loio_already_exists = 6 is_folder = 7 OTHERS = 8 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from SMIM put' ). ENDIF. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_loio TYPE sdok_docid. lv_loio = ms_item-obj_name. SELECT SINGLE loio_id FROM smimloio INTO lv_loio WHERE loio_id = lv_loio. "#EC CI_GENBUFF 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. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_url TYPE string, lv_folder TYPE abap_bool, lv_filename TYPE string, lv_class TYPE smimloio-lo_class, ls_file TYPE zif_abapgit_definitions=>ty_file, lv_content TYPE xstring, li_api TYPE REF TO if_mr_api, lv_loio TYPE sdok_docid. lv_loio = ms_item-obj_name. TRY. get_url_for_io( IMPORTING ev_url = lv_url ev_is_folder = lv_folder ). CATCH zcx_abapgit_not_found. RETURN. ENDTRY. IF lv_folder = abap_false. li_api = cl_mime_repository_api=>if_mr_api~get_api( ). li_api->get( EXPORTING i_url = lv_url IMPORTING e_content = lv_content EXCEPTIONS parameter_missing = 1 error_occured = 2 not_found = 3 permission_failure = 4 OTHERS = 5 ). IF sy-subrc <> 0 AND sy-subrc <> 2 AND sy-subrc <> 3. zcx_abapgit_exception=>raise( 'error from mime api->get:' && sy-msgv1 ). ENDIF. lv_filename = get_filename( lv_url ). CLEAR ls_file. ls_file-filename = build_filename( lv_filename ). ls_file-path = '/'. ls_file-data = lv_content. mo_files->add( ls_file ). SELECT SINGLE lo_class FROM smimloio INTO lv_class WHERE loio_id = lv_loio. "#EC CI_GENBUFF ENDIF. io_xml->add( iv_name = 'URL' ig_data = lv_url ). io_xml->add( iv_name = 'FOLDER' ig_data = lv_folder ). io_xml->add( iv_name = 'CLASS' ig_data = lv_class ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 5796, 320, 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, 220, 220, 220, 337, 36252, 50, 651, 62, 34345, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 34345, 8, 41876, 4731, 13, 628, 220, 220, 220, 337, 36252, 50, 1064, 62, 11299, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 11299, 8, 41876, 2124, 8841, 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, 34345, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 34345, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 34345, 8, 41876, 4731, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 6371, 62, 1640, 62, 952, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 819, 62, 6371, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 819, 62, 271, 62, 43551, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1662, 62, 9275, 198, 220, 220, 220, 220, 220, 220, 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, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 12310, 3955, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1382, 62, 34345, 13, 628, 220, 220, 220, 39962, 1404, 1677, 6158, 13845, 62, 9186, 12, 26801, 62, 3672, 13845, 62, 9186, 12, 26801, 62, 4906, 21628, 62, 34345, 198, 220, 220, 220, 220, 220, 39319, 374, 85, 62, 34345, 7946, 27082, 11617, 11050, 705, 2637, 13, 198, 220, 220, 220, 48213, 8634, 6158, 374, 85, 62, 34345, 5390, 406, 36048, 42001, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1064, 62, 11299, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 34345, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 16624, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 926, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 7753, 29, 34178, 48920, 3963, 300, 83, 62, 16624, 13, 628, 198, 220, 220, 220, 300, 85, 62, 34345, 796, 651, 62, 34345, 7, 21628, 62, 6371, 6739, 628, 220, 220, 220, 300, 85, 62, 34345, 796, 1382, 62, 34345, 7, 300, 85, 62, 34345, 6739, 628, 220, 220, 220, 300, 83, 62, 16624, 796, 6941, 62, 16624, 3784, 1136, 62, 16624, 7, 6739, 628, 220, 220, 220, 20832, 43679, 300, 83, 62, 16624, 24994, 3528, 15871, 1279, 7278, 62, 7753, 29, 13315, 35374, 29472, 796, 300, 85, 62, 34345, 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, 12310, 3955, 11, 2393, 407, 1043, 6, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 374, 85, 62, 11299, 796, 1279, 7278, 62, 7753, 29, 12, 7890, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 34345, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 6615, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 37336, 41876, 43679, 3963, 4731, 13, 628, 198, 220, 220, 220, 46341, 2043, 21628, 62, 6371, 5161, 31051, 6, 39319, 43679, 300, 83, 62, 37336, 13, 198, 220, 220, 220, 300, 85, 62, 6615, 796, 3951, 7, 300, 83, 62, 37336, 6739, 198, 220, 220, 220, 24994, 17395, 300, 85, 62, 6615, 1875, 657, 13, 198, 220, 220, 220, 20832, 43679, 300, 83, 62, 37336, 24413, 6369, 300, 85, 62, 6615, 39319, 374, 85, 62, 34345, 13, 198, 220, 220, 220, 24994, 17395, 827, 12, 7266, 6015, 796, 657, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 6371, 62, 1640, 62, 952, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 952, 220, 220, 220, 220, 220, 220, 41876, 1341, 86, 69, 62, 952, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 6371, 220, 220, 220, 220, 220, 41876, 1341, 86, 69, 62, 6371, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 5796, 320, 5439, 952, 41876, 895, 320, 5439, 952, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 5439, 952, 220, 220, 220, 220, 41876, 45647, 482, 62, 15390, 312, 13, 628, 198, 220, 220, 220, 300, 85, 62, 5439, 952, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 30301, 1503, 819, 62, 6371, 13, 198, 220, 220, 220, 30301, 1503, 819, 62, 271, 62, 43551, 13, 628, 220, 220, 220, 33493, 311, 2751, 2538, 1635, 16034, 895, 320, 5439, 952, 39319, 43979, 62, 5796, 320, 5439, 952, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*----------------------------------------------------------------------* * CLASS ltcl_convert DEFINITION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS ltcl_convert DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL. PRIVATE SECTION. METHODS string_to_xstring_utf8 FOR TESTING. METHODS xstring_to_string_utf8 FOR TESTING. ENDCLASS. *----------------------------------------------------------------------* * CLASS ltcl_convert IMPLEMENTATION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS ltcl_convert IMPLEMENTATION. METHOD string_to_xstring_utf8. DATA lv_result TYPE xstring. lv_result = zcl_abapgit_convert=>string_to_xstring_utf8( 'abc' ). cl_abap_unit_assert=>assert_equals( act = lv_result exp = '616263' ). ENDMETHOD. METHOD xstring_to_string_utf8. DATA lv_result TYPE string. lv_result = zcl_abapgit_convert=>xstring_to_string_utf8( '616263' ). cl_abap_unit_assert=>assert_equals( act = lv_result exp = 'abc' ). ENDMETHOD. ENDCLASS.
[ 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 83, 565, 62, 1102, 1851, 5550, 20032, 17941, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 31631, 300, 83, 565, 62, 1102, 1851, 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, 337, 36252, 50, 4731, 62, 1462, 62, 87, 8841, 62, 40477, 23, 7473, 43001, 2751, 13, 198, 220, 220, 220, 337, 36252, 50, 2124, 8841, 62, 1462, 62, 8841, 62, 40477, 23, 7473, 43001, 2751, 13, 198, 198, 10619, 31631, 13, 198, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 83, 565, 62, 1102, 1851, 30023, 2538, 10979, 6234, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 31631, 300, 83, 565, 62, 1102, 1851, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 4731, 62, 1462, 62, 87, 8841, 62, 40477, 23, 13, 628, 220, 220, 220, 42865, 300, 85, 62, 20274, 41876, 2124, 8841, 13, 628, 220, 220, 220, 300, 85, 62, 20274, 796, 1976, 565, 62, 397, 499, 18300, 62, 1102, 1851, 14804, 8841, 62, 1462, 62, 87, 8841, 62, 40477, 23, 7, 705, 39305, 6, 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, 719, 796, 300, 85, 62, 20274, 198, 220, 220, 220, 220, 220, 1033, 796, 705, 44214, 29558, 6, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 2124, 8841, 62, 1462, 62, 8841, 62, 40477, 23, 13, 628, 220, 220, 220, 42865, 300, 85, 62, 20274, 41876, 4731, 13, 628, 220, 220, 220, 300, 85, 62, 20274, 796, 1976, 565, 62, 397, 499, 18300, 62, 1102, 1851, 14804, 87, 8841, 62, 1462, 62, 8841, 62, 40477, 23, 7, 705, 44214, 29558, 6, 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, 719, 796, 300, 85, 62, 20274, 198, 220, 220, 220, 220, 220, 1033, 796, 705, 39305, 6, 6739, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 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 ]
*"* use this source file for any type of declarations (class *"* definitions, interfaces or type declarations) you need for *"* components in the private section CLASS lcl_status DEFINITION. PUBLIC SECTION. METHODS constructor IMPORTING response TYPE REF TO if_web_http_response. METHODS set IMPORTING status TYPE i DEFAULT if_web_http_status=>bad_request log_text TYPE string. METHODS valid_table IMPORTING tablename TYPE string RETURNING VALUE(valid) TYPE abap_bool. METHODS valid_extension IMPORTING fileext TYPE string RETURNING VALUE(valid) TYPE abap_bool. PRIVATE SECTION. DATA response TYPE REF TO if_web_http_response. ENDCLASS.
[ 9, 1, 9, 779, 428, 2723, 2393, 329, 597, 2099, 286, 31713, 357, 4871, 198, 9, 1, 9, 17336, 11, 20314, 393, 2099, 31713, 8, 345, 761, 329, 198, 9, 1, 9, 6805, 287, 262, 2839, 2665, 198, 198, 31631, 300, 565, 62, 13376, 5550, 20032, 17941, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 30023, 9863, 2751, 2882, 41876, 4526, 37, 5390, 611, 62, 12384, 62, 4023, 62, 26209, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 30023, 9863, 2751, 3722, 41876, 1312, 5550, 38865, 611, 62, 12384, 62, 4023, 62, 13376, 14804, 14774, 62, 25927, 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, 2604, 62, 5239, 41876, 4731, 13, 628, 220, 220, 220, 337, 36252, 50, 4938, 62, 11487, 30023, 9863, 2751, 7400, 11925, 480, 41876, 4731, 198, 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, 12102, 8, 41876, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 337, 36252, 50, 4938, 62, 2302, 3004, 30023, 9863, 2751, 2393, 2302, 41876, 4731, 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, 30826, 4261, 15871, 26173, 8924, 7, 12102, 8, 41876, 450, 499, 62, 30388, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 2882, 41876, 4526, 37, 5390, 611, 62, 12384, 62, 4023, 62, 26209, 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 ]
CLASS zcl_abapgit_oo_class_new DEFINITION PUBLIC INHERITING FROM zcl_abapgit_oo_class. PUBLIC SECTION. METHODS: zif_abapgit_oo_object_fnc~create REDEFINITION, zif_abapgit_oo_object_fnc~generate_locals REDEFINITION, zif_abapgit_oo_object_fnc~deserialize_source REDEFINITION. 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 sychar02 !iv_program_type TYPE sychar01 !iv_version TYPE r3state . CLASS-METHODS update_cs_number_of_methods IMPORTING !iv_classname TYPE seoclsname !iv_number_of_impl_methods TYPE i . ENDCLASS. CLASS zcl_abapgit_oo_class_new 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 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 = seox_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( 'error from SEO_METHOD_GENERATE_INCLUDE' ). 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 = seox_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( 'error from SEO_CLASS_GENERATE_CLASSPOOL' ). ENDIF. ENDMETHOD. METHOD init_scanner. 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' ). 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 sychar02 VALUE 'CS', lc_include_program_type TYPE sychar01 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 seox_boolean. ls_clskey-clsname = iv_name. TRY. 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 = seox_true EXCEPTIONS class_not_existing = 1 read_source_error = 2 OTHERS = 3. CATCH cx_sy_dyn_call_param_not_found. * downport to 702, see https://github.com/larshp/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( 'error instantiating CL_OO_CLASS_SECTION_SOURCE' ). ENDIF. lo_update->set_dark_mode( seox_true ). TRY. CALL METHOD lo_update->('SET_AMDP_SUPPORT') EXPORTING enabled = abap_true. CATCH cx_sy_dyn_call_illegal_method. * 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' ). 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', "#EC NOTEXT lc_version_inactive TYPE r3state VALUE 'I'. "#EC NOTEXT " 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 ). 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. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from SEO_CLASS_CREATE_COMPLETE' ). 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_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_source = lo_scanner->get_public_section_source( ). lv_program = cl_oo_classname_service=>get_pubsec_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_public it_source = lt_source ). ENDIF. * protected lt_source = lo_scanner->get_protected_section_source( ). 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. * private lt_source = lo_scanner->get_private_section_source( ). 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. * 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 ). * TODO, perhaps move this call to somewhere else, to be done while cleaning up the CLAS deserialization zcl_abapgit_objects_activation=>add( iv_type = 'CLAS' iv_name = is_key-clsname ). ENDMETHOD. METHOD zif_abapgit_oo_object_fnc~generate_locals. DATA: lv_program TYPE programm. lv_program = cl_oo_classname_service=>get_ccdef_name( is_key-clsname ). update_report( iv_program = lv_program it_source = it_local_definitions ). lv_program = cl_oo_classname_service=>get_ccimp_name( is_key-clsname ). update_report( iv_program = lv_program it_source = it_local_implementations ). lv_program = cl_oo_classname_service=>get_ccmac_name( is_key-clsname ). update_report( iv_program = lv_program it_source = it_local_macros ). IF lines( it_local_test_classes ) > 0. lv_program = cl_oo_classname_service=>get_ccau_name( is_key-clsname ). update_report( iv_program = lv_program it_source = it_local_test_classes ). ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 2238, 62, 4871, 62, 3605, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 2238, 62, 4871, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 1976, 361, 62, 397, 499, 18300, 62, 2238, 62, 15252, 62, 69, 10782, 93, 17953, 23848, 36, 20032, 17941, 11, 198, 220, 220, 220, 220, 220, 1976, 361, 62, 397, 499, 18300, 62, 2238, 62, 15252, 62, 69, 10782, 93, 8612, 378, 62, 17946, 874, 23848, 36, 20032, 17941, 11, 198, 220, 220, 220, 220, 220, 1976, 361, 62, 397, 499, 18300, 62, 2238, 62, 15252, 62, 69, 10782, 93, 8906, 48499, 1096, 62, 10459, 23848, 36, 20032, 17941, 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, 926, 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, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 35836, 1008, 8, 41876, 4526, 37, 5390, 537, 62, 2238, 62, 10459, 62, 35836, 1008, 62, 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, 220, 220, 220, 42715, 12, 49273, 50, 4296, 62, 12853, 62, 4871, 62, 17256, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 4871, 3672, 41876, 384, 420, 7278, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 10459, 220, 220, 220, 41876, 4731, 62, 11487, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 24396, 82, 220, 220, 41876, 537, 62, 2238, 62, 10459, 62, 35836, 1008, 62, 4871, 14804, 4906, 62, 24396, 62, 320, 26908, 602, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 2251, 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, 41876, 1430, 76, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 10459, 220, 220, 220, 220, 220, 220, 41876, 4731, 62, 11487, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2302, 3004, 220, 220, 220, 41876, 827, 10641, 2999, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 23065, 62, 4906, 41876, 827, 10641, 486, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 9641, 220, 220, 220, 220, 220, 41876, 374, 18, 5219, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 4296, 62, 6359, 62, 17618, 62, 1659, 62, 24396, 82, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS y_check_cx_root_usage DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC . PUBLIC SECTION. METHODS constructor . PROTECTED SECTION. METHODS inspect_tokens REDEFINITION. PRIVATE SECTION. METHODS has_cx_root IMPORTING statement TYPE sstmnt RETURNING VALUE(result) TYPE abap_bool. ENDCLASS. CLASS Y_CHECK_CX_ROOT_USAGE IMPLEMENTATION. METHOD constructor. super->constructor( ). settings-pseudo_comment = '"#EC NEED_CX_ROOT' ##NO_TEXT. settings-disable_threshold_selection = abap_true. settings-threshold = 0. settings-documentation = |{ c_docs_path-checks }cx_root_usage.md|. set_check_message( 'CX_ROOT should not be used!' ). ENDMETHOD. METHOD inspect_tokens. CHECK get_token_abs( statement-from ) EQ 'CATCH' AND has_cx_root( statement ) EQ abap_true. 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. METHOD has_cx_root. LOOP AT ref_scan_manager->get_tokens( ) ASSIGNING FIELD-SYMBOL(<tokens>) FROM statement-from TO statement-to WHERE str EQ 'CX_ROOT'. result = abap_true. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9122, 62, 66, 87, 62, 15763, 62, 26060, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 331, 62, 9122, 62, 8692, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 10104, 62, 83, 482, 641, 23848, 36, 20032, 17941, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 468, 62, 66, 87, 62, 15763, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 2643, 220, 220, 220, 220, 41876, 264, 301, 76, 429, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 575, 62, 50084, 62, 34, 55, 62, 13252, 2394, 62, 2937, 11879, 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, 36465, 62, 34, 55, 62, 13252, 2394, 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, 22897, 341, 796, 930, 90, 269, 62, 31628, 62, 6978, 12, 42116, 1782, 66, 87, 62, 15763, 62, 26060, 13, 9132, 91, 13, 628, 220, 220, 220, 900, 62, 9122, 62, 20500, 7, 705, 34, 55, 62, 13252, 2394, 815, 407, 307, 973, 13679, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 10104, 62, 83, 482, 641, 13, 198, 220, 220, 220, 5870, 25171, 651, 62, 30001, 62, 8937, 7, 2643, 12, 6738, 1267, 36529, 705, 34, 11417, 6, 198, 220, 220, 220, 220, 220, 5357, 468, 62, 66, 87, 62, 15763, 7, 2643, 1267, 36529, 450, 499, 62, 7942, 13, 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, 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, 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, 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, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 468, 62, 66, 87, 62, 15763, 13, 198, 220, 220, 220, 17579, 3185, 5161, 1006, 62, 35836, 62, 37153, 3784, 1136, 62, 83, 482, 641, 7, 1267, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 83, 482, 641, 43734, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16034, 2643, 12, 6738, 5390, 2643, 12, 1462, 33411, 965, 36529, 705, 34, 55, 62, 13252, 2394, 4458, 198, 220, 220, 220, 220, 220, 1255, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 23578, 21982, 3185, 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, 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 ]
CLASS zcl_capi_iterator DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_capi_iterator . METHODS constructor IMPORTING !ir_collection TYPE REF TO zif_capi_collection . PROTECTED SECTION. PRIVATE SECTION. DATA mr_collection TYPE REF TO zif_capi_collection . DATA mv_index TYPE i VALUE 0 ##NO_TEXT. ENDCLASS. CLASS ZCL_CAPI_ITERATOR IMPLEMENTATION. METHOD constructor. mr_collection = ir_collection. ENDMETHOD. METHOD zif_capi_iterator~current. mv_index = mv_index + 1. ro_object = mr_collection->get_item( mv_index ). ENDMETHOD. METHOD zif_capi_iterator~first. mv_index = mv_index + 1. ro_object = mr_collection->get_item( mv_index ). ENDMETHOD. METHOD zif_capi_iterator~get_index. rv_index = mv_index. ENDMETHOD. METHOD zif_capi_iterator~has_next. IF mv_index < mr_collection->size( ). rv_hasnext = abap_true. ELSE. rv_hasnext = abap_false. ENDIF. ENDMETHOD. METHOD zif_capi_iterator~last. mv_index = mr_collection->size( ). ro_object = mr_collection->get_item( mv_index ). ENDMETHOD. METHOD zif_capi_iterator~next. mv_index = mv_index + 1. ro_object = mr_collection->get_item( mv_index ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 11128, 72, 62, 48727, 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, 11128, 72, 62, 48727, 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, 343, 62, 43681, 41876, 4526, 37, 5390, 1976, 361, 62, 11128, 72, 62, 43681, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 285, 81, 62, 43681, 41876, 4526, 37, 5390, 1976, 361, 62, 11128, 72, 62, 43681, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 9630, 41876, 1312, 26173, 8924, 657, 22492, 15285, 62, 32541, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 34, 17614, 62, 2043, 1137, 25633, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 285, 81, 62, 43681, 796, 4173, 62, 43681, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 11128, 72, 62, 48727, 93, 14421, 13, 198, 220, 220, 220, 285, 85, 62, 9630, 796, 285, 85, 62, 9630, 1343, 352, 13, 198, 220, 220, 220, 686, 62, 15252, 796, 285, 81, 62, 43681, 3784, 1136, 62, 9186, 7, 285, 85, 62, 9630, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 11128, 72, 62, 48727, 93, 11085, 13, 198, 220, 220, 220, 285, 85, 62, 9630, 796, 285, 85, 62, 9630, 1343, 352, 13, 198, 220, 220, 220, 686, 62, 15252, 796, 285, 81, 62, 43681, 3784, 1136, 62, 9186, 7, 285, 85, 62, 9630, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 11128, 72, 62, 48727, 93, 1136, 62, 9630, 13, 198, 220, 220, 220, 374, 85, 62, 9630, 796, 285, 85, 62, 9630, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 11128, 72, 62, 48727, 93, 10134, 62, 19545, 13, 198, 220, 220, 220, 16876, 285, 85, 62, 9630, 1279, 285, 81, 62, 43681, 3784, 7857, 7, 6739, 198, 220, 220, 220, 220, 220, 374, 85, 62, 10134, 19545, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 374, 85, 62, 10134, 19545, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 11128, 72, 62, 48727, 93, 12957, 13, 198, 220, 220, 220, 285, 85, 62, 9630, 796, 285, 81, 62, 43681, 3784, 7857, 7, 6739, 198, 220, 220, 220, 686, 62, 15252, 796, 285, 81, 62, 43681, 3784, 1136, 62, 9186, 7, 285, 85, 62, 9630, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 11128, 72, 62, 48727, 93, 19545, 13, 198, 220, 220, 220, 285, 85, 62, 9630, 796, 285, 85, 62, 9630, 1343, 352, 13, 198, 220, 220, 220, 686, 62, 15252, 796, 285, 81, 62, 43681, 3784, 1136, 62, 9186, 7, 285, 85, 62, 9630, 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, 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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 ]
CLASS y_check_check_stmnt_position DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC . PUBLIC SECTION. METHODS constructor . PROTECTED SECTION. METHODS inspect_tokens REDEFINITION. PRIVATE SECTION. METHODS is_not_relevant_token IMPORTING token TYPE string RETURNING VALUE(result) TYPE abap_bool. METHODS has_wrong_position IMPORTING structure TYPE sstruc check TYPE sstmnt RETURNING VALUE(result) TYPE abap_bool. METHODS is_check_in_loop IMPORTING structure TYPE sstruc check TYPE sstmnt RETURNING VALUE(result) TYPE abap_bool. ENDCLASS. CLASS y_check_check_stmnt_position IMPLEMENTATION. METHOD constructor. super->constructor( ). settings-pseudo_comment = '"#EC CHECK_POSITION' ##NO_TEXT. settings-disable_threshold_selection = abap_true. settings-threshold = 0. settings-documentation = |{ c_docs_path-checks }check-statement-position.md|. set_check_message( 'Do not use CHECK outside of the initialization section!' ). ENDMETHOD. METHOD inspect_tokens. CHECK get_token_abs( statement-from ) = 'CHECK'. CHECK has_wrong_position( structure = structure check = statement ) = abap_true. CHECK is_check_in_loop( structure = structure check = statement ) = abap_false. 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. METHOD is_not_relevant_token. result = xsdbool( token = 'METHOD' OR token = 'FORM' OR token = 'FUNCTION' OR token = 'MODULE' OR token = 'DATA' OR token = 'TYPES' OR token = 'CHECK' OR token = 'FIELD-SYMBOLS' OR token = 'CONSTANTS' ). ENDMETHOD. METHOD has_wrong_position. LOOP AT ref_scan_manager->statements ASSIGNING FIELD-SYMBOL(<statement>) FROM structure-stmnt_from TO structure-stmnt_to. IF <statement>-type = scan_stmnt_type-empty OR <statement>-type = scan_stmnt_type-comment OR <statement>-type = scan_stmnt_type-comment_in_stmnt. CONTINUE. ENDIF. IF <statement>-number = check-number. RETURN. ENDIF. IF is_not_relevant_token( get_token_abs( <statement>-from ) ) = abap_false. result = abap_true. RETURN. ENDIF. ENDLOOP. ENDMETHOD. METHOD is_check_in_loop. LOOP AT ref_scan_manager->tokens ASSIGNING FIELD-SYMBOL(<token>) FROM structure-stmnt_from TO check-from WHERE str = 'LOOP' OR str = 'ENDLOOP'. result = xsdbool( <token>-str = 'LOOP' ). ENDLOOP. ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9122, 62, 9122, 62, 301, 76, 429, 62, 9150, 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, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 318, 62, 1662, 62, 49659, 62, 30001, 30023, 9863, 2751, 11241, 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, 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, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 337, 36252, 50, 468, 62, 36460, 62, 9150, 30023, 9863, 2751, 4645, 220, 220, 220, 220, 41876, 264, 19554, 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, 2198, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 264, 301, 76, 429, 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, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 337, 36252, 50, 318, 62, 9122, 62, 259, 62, 26268, 30023, 9863, 2751, 4645, 220, 220, 220, 220, 41876, 264, 19554, 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, 2198, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 264, 301, 76, 429, 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, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 331, 62, 9122, 62, 9122, 62, 301, 76, 429, 62, 9150, 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, 5870, 25171, 62, 37997, 17941, 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, 22897, 341, 796, 930, 90, 269, 62, 31628, 62, 6978, 12, 42116, 1782, 9122, 12, 26090, 12, 9150, 13, 9132, 91, 13, 628, 220, 220, 220, 900, 62, 9122, 62, 20500, 7, 705, 5211, 407, 779, 5870, 25171, 2354, 286, 262, 37588, 2665, 13679, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 10104, 62, 83, 482, 641, 13, 198, 220, 220, 220, 5870, 25171, 651, 62, 30001, 62, 8937, 7, 2643, 12, 6738, 1267, 796, 705, 50084, 4458, 628, 220, 220, 220, 5870, 25171, 468, 62, 36460, 62, 9150, 7, 4645, 796, 4645, 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, 2198, 796, 2643, 1267, 796, 450, 499, 62, 7942, 13, 628, 220, 220, 220, 5870, 25171, 318, 62, 9122, 62, 259, 62, 26268, 7, 4645, 796, 4645, 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, 2198, 796, 2643, 1267, 796, 450, 499, 62, 9562, 13, 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, 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, 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, 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, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 318, 62, 1662, 62, 49659, 62, 30001, 13, 198, 220, 220, 220, 1255, 796, 2124, 82, 9945, 970, 7, 220, 220, 220, 11241, 796, 705, 49273, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6375, 11241, 796, 705, 21389, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6375, 11241, 796, 705, 42296, 4177, 2849, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6375, 11241, 796, 705, 33365, 24212, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6375, 11241, 796, 705, 26947, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_abapgit_object_form DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. METHODS constructor IMPORTING is_item TYPE zif_abapgit_definitions=>ty_item iv_language TYPE spras. PROTECTED SECTION. PRIVATE SECTION. CONSTANTS: c_objectname_form TYPE thead-tdobject VALUE 'FORM' ##NO_TEXT. CONSTANTS: c_objectname_tdlines TYPE thead-tdobject VALUE 'TDLINES' ##NO_TEXT. CONSTANTS: c_extension_xml TYPE string VALUE 'xml' ##NO_TEXT. DATA: mv_form_name TYPE itcta-tdform. TYPES: BEGIN OF ty_s_form_data, form_header TYPE itcta, text_header TYPE thead, orig_language TYPE sy-langu, pages TYPE STANDARD TABLE OF itctg WITH DEFAULT KEY, page_windows TYPE STANDARD TABLE OF itcth WITH DEFAULT KEY, 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, windows TYPE STANDARD TABLE OF itctw WITH DEFAULT KEY, END OF ty_s_form_data, ty_t_form_data TYPE STANDARD TABLE OF ty_s_form_data WITH DEFAULT KEY, ty_t_form_header TYPE STANDARD TABLE OF itcta WITH DEFAULT KEY, ty_s_form_header TYPE LINE OF ty_t_form_header, ty_t_text_header TYPE STANDARD TABLE OF thead WITH DEFAULT KEY, ty_s_text_header TYPE LINE OF ty_t_text_header, ty_t_lines TYPE tline_tab. METHODS get_last_changes IMPORTING iv_form_name TYPE zif_abapgit_definitions=>ty_item-obj_name RETURNING VALUE(rs_last_changed) TYPE ty_s_form_header. METHODS build_extra_from_header IMPORTING is_header TYPE ty_s_form_header RETURNING VALUE(rv_result) TYPE string. METHODS build_extra_from_header_old IMPORTING is_header TYPE ty_s_form_header RETURNING VALUE(rv_result) TYPE string. METHODS _save_form IMPORTING it_lines TYPE ty_t_lines CHANGING cs_form_data TYPE ty_s_form_data. METHODS extract_tdlines IMPORTING is_form_data TYPE ty_s_form_data RETURNING VALUE(rt_lines) TYPE ty_t_lines RAISING zcx_abapgit_exception. METHODS _clear_changed_fields CHANGING cs_form_data TYPE ty_s_form_data. METHODS compress_lines IMPORTING is_form_data TYPE ty_s_form_data it_lines TYPE ty_t_lines RAISING zcx_abapgit_exception. METHODS find_form IMPORTING iv_object_name TYPE zif_abapgit_definitions=>ty_item-obj_name RETURNING VALUE(rt_text_header) TYPE ty_t_text_header. METHODS _read_form IMPORTING is_text_header TYPE ty_s_text_header EXPORTING ev_form_found TYPE abap_bool es_form_data TYPE ty_s_form_data et_lines TYPE ty_t_lines. METHODS _sort_tdlines_by_windows CHANGING ct_form_windows TYPE ty_s_form_data-windows ct_lines TYPE ty_t_lines. METHODS order_check_and_insert RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_object_form IMPLEMENTATION. METHOD build_extra_from_header. DATA: lv_tdspras TYPE laiso. CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTPUT' EXPORTING input = is_header-tdspras IMPORTING output = lv_tdspras. rv_result = c_objectname_tdlines && '_' && lv_tdspras. ENDMETHOD. METHOD build_extra_from_header_old. rv_result = c_objectname_tdlines && '_' && is_header-tdspras. ENDMETHOD. METHOD compress_lines. DATA lv_string TYPE string. DATA li_xml TYPE REF TO zif_abapgit_xml_output. CREATE OBJECT li_xml TYPE zcl_abapgit_xml_output. li_xml->add( iv_name = c_objectname_tdlines ig_data = it_lines ). lv_string = li_xml->render( ). IF lv_string IS NOT INITIAL. zif_abapgit_object~mo_files->add_string( iv_extra = build_extra_from_header( is_form_data-form_header ) iv_ext = c_extension_xml iv_string = lv_string ). ENDIF. ENDMETHOD. METHOD constructor. super->constructor( is_item = is_item iv_language = iv_language ). mv_form_name = ms_item-obj_name. ENDMETHOD. METHOD extract_tdlines. DATA lv_string TYPE string. DATA li_xml TYPE REF TO zif_abapgit_xml_input. TRY. lv_string = zif_abapgit_object~mo_files->read_string( iv_extra = build_extra_from_header( is_form_data-form_header ) iv_ext = c_extension_xml ). CATCH zcx_abapgit_exception. lv_string = zif_abapgit_object~mo_files->read_string( iv_extra = build_extra_from_header_old( is_form_data-form_header ) iv_ext = c_extension_xml ). ENDTRY. CREATE OBJECT li_xml TYPE zcl_abapgit_xml_input EXPORTING iv_xml = lv_string. li_xml->read( EXPORTING iv_name = c_objectname_tdlines CHANGING cg_data = rt_lines ). ENDMETHOD. METHOD find_form. DATA: lv_text_name TYPE thead-tdname. lv_text_name = iv_object_name. CALL FUNCTION 'SELECT_TEXT' EXPORTING database_only = abap_true id = 'TXT' language = '*' name = lv_text_name object = c_objectname_form TABLES selections = rt_text_header EXCEPTIONS OTHERS = 1 ##FM_SUBRC_OK. "#EC CI_SUBRC ENDMETHOD. METHOD get_last_changes. DATA: lv_form_name TYPE thead-tdform. CLEAR rs_last_changed. lv_form_name = iv_form_name. CALL FUNCTION 'READ_FORM' EXPORTING form = lv_form_name read_only_header = abap_true IMPORTING form_header = rs_last_changed. ENDMETHOD. METHOD order_check_and_insert. DATA: lv_order TYPE e071k-trkorr. CALL FUNCTION 'SAPSCRIPT_ORDER_CHECK' EXPORTING objecttype = ms_item-obj_type form = mv_form_name EXCEPTIONS invalid_input = 1 object_locked = 2 object_not_available = 3 OTHERS = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. CALL FUNCTION 'SAPSCRIPT_ORDER_INSERT' EXPORTING objecttype = ms_item-obj_type form = mv_form_name masterlang = mv_language CHANGING order = lv_order EXCEPTIONS invalid_input = 1 order_canceled = 2 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~changed_by. DATA: ls_last_changed TYPE ty_s_form_header. ls_last_changed = get_last_changes( ms_item-obj_name ). IF ls_last_changed-tdluser IS NOT INITIAL. rv_user = ls_last_changed-tdluser. ELSE. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. CALL FUNCTION 'DELETE_FORM' EXPORTING form = mv_form_name language = '*'. order_check_and_insert( ). ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lt_form_data TYPE ty_t_form_data. DATA: lt_lines TYPE ty_t_lines. FIELD-SYMBOLS: <ls_form_data> TYPE LINE OF ty_t_form_data. io_xml->read( EXPORTING iv_name = c_objectname_form CHANGING cg_data = lt_form_data ). LOOP AT lt_form_data ASSIGNING <ls_form_data>. lt_lines = extract_tdlines( <ls_form_data> ). _save_form( EXPORTING it_lines = lt_lines CHANGING cs_form_data = <ls_form_data> ). ENDLOOP. CALL FUNCTION 'SAPSCRIPT_DELETE_LOAD' EXPORTING delete = abap_true form = '*' write = space. tadir_insert( iv_package ). order_check_and_insert( ). ENDMETHOD. METHOD zif_abapgit_object~exists. CALL FUNCTION 'READ_FORM' EXPORTING form = mv_form_name read_only_header = abap_true IMPORTING found = rv_bool. 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. DATA: lv_object TYPE seqg3-garg. " example lock entry "'001FORM ZTEST_SAPSCRIPT TXT' lv_object = |{ sy-mandt }{ ms_item-obj_type } { ms_item-obj_name }|. OVERLAY lv_object WITH ' '. lv_object = lv_object && '*'. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'ESSFORM' iv_argument = lv_object ). ENDMETHOD. METHOD zif_abapgit_object~jump. DATA: lt_bdcdata TYPE TABLE OF bdcdata. FIELD-SYMBOLS: <ls_bdcdata> LIKE LINE OF lt_bdcdata. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-program = 'SAPMSSCF'. <ls_bdcdata>-dynpro = '1102'. <ls_bdcdata>-dynbegin = abap_true. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-fnam = 'BDC_OKCODE'. <ls_bdcdata>-fval = '=SHOW'. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-fnam = 'RSSCF-TDFORM'. <ls_bdcdata>-fval = ms_item-obj_name. zcl_abapgit_ui_factory=>get_gui_jumper( )->jump_batch_input( iv_tcode = 'SE71' it_bdcdata = lt_bdcdata ). rv_exit = abap_true. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lt_form_data TYPE ty_t_form_data. DATA: ls_form_data TYPE ty_s_form_data. DATA: lt_text_header TYPE ty_t_text_header. DATA: lt_lines TYPE ty_t_lines. DATA: lv_form_found TYPE abap_bool. FIELD-SYMBOLS: <ls_text_header> LIKE LINE OF lt_text_header. lt_text_header = find_form( ms_item-obj_name ). LOOP AT lt_text_header ASSIGNING <ls_text_header>. CLEAR lt_lines. CLEAR ls_form_data. _read_form( EXPORTING is_text_header = <ls_text_header> IMPORTING ev_form_found = lv_form_found es_form_data = ls_form_data et_lines = lt_lines ). IF lv_form_found = abap_true. _clear_changed_fields( CHANGING cs_form_data = ls_form_data ). compress_lines( is_form_data = ls_form_data it_lines = lt_lines ). INSERT ls_form_data INTO TABLE lt_form_data. ENDIF. ENDLOOP. IF lt_form_data IS NOT INITIAL. io_xml->add( iv_name = c_objectname_form ig_data = lt_form_data ). ENDIF. ENDMETHOD. METHOD _clear_changed_fields. CLEAR: cs_form_data-form_header-tdfuser, cs_form_data-form_header-tdfdate, cs_form_data-form_header-tdftime, cs_form_data-form_header-tdfreles, cs_form_data-form_header-tdluser, cs_form_data-form_header-tdldate, cs_form_data-form_header-tdltime, cs_form_data-form_header-tdlreles. CLEAR: cs_form_data-text_header-tdfuser, cs_form_data-text_header-tdfdate, cs_form_data-text_header-tdftime, cs_form_data-text_header-tdfreles, cs_form_data-text_header-tdluser, cs_form_data-text_header-tdldate, cs_form_data-text_header-tdltime, cs_form_data-text_header-tdlreles. ENDMETHOD. METHOD _read_form. CLEAR es_form_data. CALL FUNCTION 'READ_FORM' EXPORTING form = is_text_header-tdform language = is_text_header-tdspras status = ' ' IMPORTING form_header = es_form_data-form_header found = ev_form_found header = es_form_data-text_header olanguage = es_form_data-orig_language TABLES form_lines = et_lines pages = es_form_data-pages page_windows = es_form_data-page_windows paragraphs = es_form_data-paragraphs strings = es_form_data-strings tabs = es_form_data-tabs windows = es_form_data-windows. _sort_tdlines_by_windows( CHANGING ct_form_windows = es_form_data-windows ct_lines = et_lines ). es_form_data-form_header-tdversion = '00001'. es_form_data-text_header-tdversion = '00001'. ENDMETHOD. METHOD _save_form. CALL FUNCTION 'SAVE_FORM' EXPORTING form_header = cs_form_data-form_header TABLES form_lines = it_lines pages = cs_form_data-pages page_windows = cs_form_data-page_windows paragraphs = cs_form_data-paragraphs strings = cs_form_data-strings tabs = cs_form_data-tabs windows = cs_form_data-windows. CALL FUNCTION 'SAPSCRIPT_CHANGE_OLANGUAGE' EXPORTING forced = abap_true name = cs_form_data-text_header-tdname object = cs_form_data-text_header-tdobject olanguage = cs_form_data-orig_language EXCEPTIONS OTHERS = 1 ##FM_SUBRC_OK. "#EC CI_SUBRC ENDMETHOD. METHOD _sort_tdlines_by_windows. DATA lt_lines TYPE ty_t_lines. DATA ls_lines LIKE LINE OF lt_lines. DATA ls_form_windows LIKE LINE OF ct_form_windows. DATA lv_elt_windows TYPE tdformat VALUE '/W'. DATA lv_firstloop TYPE abap_bool. lt_lines = ct_lines. CLEAR ct_lines. SORT ct_form_windows BY tdwindow. LOOP AT ct_form_windows INTO ls_form_windows. lv_firstloop = abap_true. READ TABLE lt_lines INTO ls_lines WITH KEY tdformat = lv_elt_windows tdline = ls_form_windows-tdwindow. IF sy-subrc <> 0. CONTINUE. " current loop ENDIF. LOOP AT lt_lines INTO ls_lines FROM sy-tabix. IF lv_firstloop = abap_false AND ls_lines-tdformat = lv_elt_windows. EXIT. ENDIF. APPEND ls_lines TO ct_lines. lv_firstloop = abap_false. ENDLOOP. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 687, 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, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 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, 21628, 62, 16129, 41876, 7500, 292, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 269, 62, 15252, 3672, 62, 687, 220, 220, 220, 41876, 262, 324, 12, 8671, 15252, 26173, 8924, 705, 21389, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 269, 62, 15252, 3672, 62, 8671, 6615, 41876, 262, 324, 12, 8671, 15252, 26173, 8924, 705, 51, 19260, 1268, 1546, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 269, 62, 2302, 3004, 62, 19875, 220, 220, 220, 220, 220, 41876, 4731, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 705, 19875, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 42865, 25, 285, 85, 62, 687, 62, 3672, 220, 41876, 340, 310, 64, 12, 8671, 687, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 82, 62, 687, 62, 7890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1296, 62, 25677, 220, 220, 41876, 340, 310, 64, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 62, 25677, 220, 220, 41876, 262, 324, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1796, 62, 16129, 41876, 827, 12, 75, 2303, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5468, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 340, 310, 70, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2443, 62, 28457, 220, 41876, 49053, 9795, 43679, 3963, 340, 310, 71, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23549, 220, 220, 220, 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, 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, 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, 220, 220, 9168, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 340, 310, 86, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 82, 62, 687, 62, 7890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 83, 62, 687, 62, 7890, 220, 220, 41876, 49053, 9795, 43679, 3963, 1259, 62, 82, 62, 687, 62, 7890, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 83, 62, 687, 62, 25677, 41876, 49053, 9795, 43679, 3963, 340, 310, 64, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 82, 62, 687, 62, 25677, 41876, 48920, 3963, 1259, 62, 83, 62, 687, 62, 25677, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 83, 62, 5239, 62, 25677, 41876, 49053, 9795, 43679, 3963, 262, 324, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 82, 62, 5239, 62, 25677, 41876, 48920, 3963, 1259, 62, 83, 62, 5239, 62, 25677, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 83, 62, 6615, 220, 220, 220, 220, 220, 220, 41876, 256, 1370, 62, 8658, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 12957, 62, 36653, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 687, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 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, 12957, 62, 40985, 8, 41876, 1259, 62, 82, 62, 687, 62, 25677, 13, 628, 220, 220, 220, 337, 36252, 50, 1382, 62, 26086, 62, 6738, 62, 25677, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 25677, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 82, 62, 687, 62, 25677, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 20274, 8, 41876, 4731, 13, 628, 220, 220, 220, 337, 36252, 50, 1382, 62, 26086, 62, 6738, 62, 25677, 62, 727, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 25677, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 82, 62, 687, 62, 25677, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 20274, 8, 41876, 4731, 13, 628, 220, 220, 220, 337, 36252, 50, 4808, 21928, 62, 687, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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REATE 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. "#EC CI_SUBRC 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_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( ). version = '003'. position = '031'. has_attributes = abap_true. attributes_ok = abap_true. mv_default_error = abap_true. ENDMETHOD. 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, 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E etobj_ver im_object_type TYPE etobj_type io_download TYPE REF TO cl_apl_ecatt_download EXPORTING ex_xml_stream TYPE xstring ex_xml_stream_size TYPE int4 RAISING zcx_abapgit_exception, download_data IMPORTING ii_template_over_all TYPE REF TO if_ixml_document EXPORTING ev_xml_stream TYPE xstring ev_xml_stream_size TYPE i, upload_data_from_stream IMPORTING iv_xml_stream TYPE xstring RETURNING VALUE(ri_template_over_all) TYPE REF TO if_ixml_document RAISING cx_ecatt_apl_xml. PRIVATE SECTION. CONSTANTS: co_xml TYPE int4 VALUE 1. " downport of if_apl_ecatt_xml=>co_xml ENDCLASS. CLASS zcl_abapgit_ecatt_helper IMPLEMENTATION. METHOD build_xml_of_object. " downport of CL_APL_ECATT_DOWNLOAD=>BUILD_XML_OF_OBJECT DATA: lo_load_help_dummy TYPE REF TO cl_apl_ecatt_load_help, lx_ecatt TYPE REF TO cx_ecatt_apl, lv_text TYPE string. "download method will create the xml stream "note: it's the redefined download( ) of each object type specific download, which is called TRY. CREATE OBJECT lo_load_help_dummy EXPORTING im_maintain_function = ''. io_download->download( im_object_name = im_object_name im_object_version = im_object_version im_object_type = im_object_type im_load_help = lo_load_help_dummy ). CATCH cx_ecatt_apl INTO lx_ecatt. lv_text = lx_ecatt->get_text( ). zcx_abapgit_exception=>raise( lv_text ). " CATCH cx_ecatt_ui_attachment. " Doesn't exist in 702 CATCH cx_ecatt. "will never be raised from download, when called with mv_generate_xml_no_download = 'X'. ENDTRY. CALL METHOD io_download->('GET_XML_STREAM') RECEIVING rv_xml_stream = ex_xml_stream. CALL METHOD io_download->('GET_XML_STREAM_SIZE') RECEIVING rv_xml_stream_size = ex_xml_stream_size. ENDMETHOD. METHOD download_data. DATA: lv_xtab TYPE etxml_xline_tabtype, lo_xml TYPE REF TO cl_apl_ecatt_xml, lv_size TYPE int4, lx_ecatt TYPE REF TO cx_ecatt_apl_xml. CLEAR: ev_xml_stream, ev_xml_stream_size. TRY. CALL METHOD cl_apl_ecatt_xml=>('CREATE') " doesn't exist in 702 EXPORTING im_type = co_xml RECEIVING re_xml = lo_xml. lo_xml->set_attributes( im_dom = ii_template_over_all ). lo_xml->get_attributes( IMPORTING ex_xtab = lv_xtab ex_size_xstring = lv_size ex_xml = ev_xml_stream ). ev_xml_stream_size = lv_size. CATCH cx_ecatt_apl_xml INTO lx_ecatt. RETURN. ENDTRY. ENDMETHOD. METHOD upload_data_from_stream. DATA: lt_eing TYPE etxml_xline_tabtype, lo_xml TYPE REF TO cl_apl_ecatt_xml, lv_xstr TYPE xstring, lv_nc_xmlref_typ TYPE REF TO if_ixml_node_collection, lv_n_xmlref_typ TYPE REF TO if_ixml_node, lv_index TYPE i VALUE 0, lv_count TYPE i. lv_xstr = iv_xml_stream. CALL METHOD cl_apl_ecatt_xml=>('CREATE') " doesn't exist in 702 EXPORTING im_type = co_xml RECEIVING re_xml = lo_xml. * whitespace stripping needs a namespace * remove white spaces only at the time of upload lo_xml->stream_to_dom( im_xstream = lv_xstr im_ignore_white_space = 'X' im_uri = cl_apl_xml_const=>schema_uri ). lo_xml->get_attributes( IMPORTING ex_dom = ri_template_over_all ). * MD: Workaround, because nodes starting with "XML" are not allowed lv_nc_xmlref_typ ?= ri_template_over_all->get_elements_by_tag_name_ns( 'XMLREF_TYP' ). "#EC NOTEXT CALL METHOD lv_nc_xmlref_typ->('GET_LENGTH') " downport RECEIVING rval = lv_count. WHILE lv_index LT lv_count. lv_n_xmlref_typ = lv_nc_xmlref_typ->get_item( lv_index ). lv_n_xmlref_typ->set_name( 'X-MLREF_TYP' ). lv_index = lv_index + 1. ENDWHILE. FREE: lt_eing. CLEAR: lo_xml, lv_xstr. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 721, 1078, 62, 2978, 525, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 1382, 62, 19875, 62, 1659, 62, 15252, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 15252, 62, 3672, 220, 220, 220, 220, 41876, 220, 2123, 26801, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 15252, 62, 9641, 220, 41876, 220, 2123, 26801, 62, 332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 15252, 62, 4906, 220, 220, 220, 220, 41876, 220, 2123, 26801, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 15002, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 64, 489, 62, 721, 1078, 62, 15002, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 409, 62, 19875, 62, 5532, 220, 220, 220, 220, 220, 41876, 220, 2124, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 409, 62, 19875, 62, 5532, 62, 7857, 41876, 220, 493, 19, 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, 4321, 62, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 28243, 62, 2502, 62, 439, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 22897, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 819, 62, 19875, 62, 5532, 220, 220, 220, 220, 220, 220, 220, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 819, 62, 19875, 62, 5532, 62, 7857, 220, 220, 41876, 1312, 11, 628, 220, 220, 220, 220, 220, 9516, 62, 7890, 62, 6738, 62, 5532, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 19875, 62, 5532, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2124, 8841, 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, 28243, 62, 2502, 62, 439, 8, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 22897, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 721, 1078, 62, 64, 489, 62, 19875, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 763, 62, 19875, 41876, 493, 19, 26173, 8924, 352, 13, 366, 866, 634, 286, 611, 62, 64, 489, 62, 721, 1078, 62, 19875, 14804, 1073, 62, 19875, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 721, 1078, 62, 2978, 525, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1382, 62, 19875, 62, 1659, 62, 15252, 13, 628, 220, 220, 220, 366, 866, 634, 286, 7852, 62, 2969, 43, 62, 2943, 17139, 62, 41925, 35613, 14804, 19499, 26761, 62, 55, 5805, 62, 19238, 62, 9864, 23680, 628, 220, 220, 220, 42865, 25, 2376, 62, 2220, 62, 16794, 62, 67, 13513, 41876, 4526, 37, 5390, 537, 62, 64, 489, 62, 721, 1078, 62, 2220, 62, 16794, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 87, 62, 721, 1078, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 43213, 62, 721, 1078, 62, 64, 489, 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, 13, 628, 220, 220, 220, 366, 15002, 2446, 481, 2251, 262, 35555, 4269, 198, 220, 220, 220, 366, 11295, 25, 340, 338, 262, 2266, 18156, 4321, 7, 1267, 286, 1123, 2134, 2099, 2176, 4321, 11, 543, 318, 1444, 198, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 2376, 62, 2220, 62, 16794, 62, 67, 13513, 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, 545, 62, 76, 32725, 62, 8818, 796, 705, 4458, 628, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 15002, 3784, 15002, 7, 545, 62, 15252, 62, 3672, 220, 220, 220, 796, 545, 62, 15252, 62, 3672, 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, 545, 62, 15252, 62, 9641, 796, 545, 62, 15252, 62, 9641, 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, 545, 62, 15252, 62, 4906, 220, 220, 220, 796, 545, 62, 15252, 62, 4906, 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, 545, 62, 2220, 62, 16794, 220, 220, 220, 220, 220, 796, 2376, 62, 2220, 62, 16794, 62, 67, 13513, 6739, 628, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 721, 1078, 62, 64, 489, 39319, 300, 87, 62, 721, 1078, 13, 198, 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 ]
*&---------------------------------------------------------------------* *& Report ZDEMO_EXCEL *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT zdemo_excel. DATA: lv_workdir TYPE string, lv_filesep TYPE c LENGTH 1, lv_upfile TYPE string. 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_filesep ). CONCATENATE p_path lv_filesep '01_HelloWorld.xlsx' INTO lv_upfile. SUBMIT zdemo_excel1 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Hello world SUBMIT zdemo_excel2 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Styles SUBMIT zdemo_excel3 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: iTab binding SUBMIT zdemo_excel4 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Multi sheets, page setup and sheet properties SUBMIT zdemo_excel5 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Conditional formatting SUBMIT zdemo_excel6 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Formulas SUBMIT zdemo_excel7 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Conditional formatting SUBMIT zdemo_excel8 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Ranges SUBMIT zdemo_excel9 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Data validation SUBMIT zdemo_excel10 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Bind table with field catalog " zdemo_excel11 is not added because it has a selection screen and " you also need to have business partners maintained in transaction BP SUBMIT zdemo_excel12 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Column size SUBMIT zdemo_excel13 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Merge cell SUBMIT zdemo_excel14 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Alignment " zdemo_excel15 added at the end SUBMIT zdemo_excel16 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Drawing SUBMIT zdemo_excel17 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Lock sheet SUBMIT zdemo_excel18 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Lock workbook SUBMIT zdemo_excel19 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Set active sheet " zdemo_excel20 is not added because it uses ALV and cannot be processed (OLE2) SUBMIT zdemo_excel21 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Color Picker SUBMIT zdemo_excel22 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Bind table with field catalog & sheet style SUBMIT zdemo_excel23 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Multiple sheets with and w/o grid lines, print options SUBMIT zdemo_excel24 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Multiple sheets with different default date formats SUBMIT zdemo_excel25 AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Create and xlsx on Application Server (could be executed in batch mode) " zdemo_excel26 is not added because it uses ALV and cannot be processed (Native) SUBMIT zdemo_excel27 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Conditional Formatting SUBMIT zdemo_excel28 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: CSV writer " SUBMIT zdemo_excel29 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Macro enabled workbook SUBMIT zdemo_excel30 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: ABAP Cell data types + leading blanks string SUBMIT zdemo_excel31 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Autosize Column with different Font sizes " zdemo_excel32 is not added because it uses ALV and cannot be processed (Native) SUBMIT zdemo_excel33 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Table autofilter SUBMIT zdemo_excel34 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Static Styles Chess SUBMIT zdemo_excel35 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Static Styles SUBMIT zdemo_excel36 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Style applied to sheet, column and single cell SUBMIT zdemo_excel37 WITH p_upfile = lv_upfile WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Simplest call of the reader and writer - passthrough data SUBMIT zdemo_excel38 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Show off integration of drawings ( here using the SAP-Icons ) SUBMIT zdemo_excel39 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Charts SUBMIT zdemo_excel40 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Demo Printsettings SUBMIT zdemo_excel41 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Inheritance SUBMIT zdemo_excel44 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: No line if empty SUBMIT zdemo_excel_comments WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Comments SUBMIT ztest_excel_image_header WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Image in Header and Footer " " Reader/Writer Demo must always run at the end " to make sure all documents where created " SUBMIT zdemo_excel15 WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT Read Excel and write it back
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 220, 1168, 39429, 46, 62, 6369, 34, 3698, 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, 13, 198, 198, 26947, 25, 300, 85, 62, 1818, 15908, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 16624, 538, 41876, 269, 406, 49494, 352, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 929, 7753, 220, 41876, 4731, 13, 628, 198, 27082, 2390, 2767, 4877, 25, 279, 62, 6978, 41876, 1976, 1069, 5276, 62, 39344, 62, 15908, 13, 198, 198, 1404, 33493, 2849, 12, 6173, 2200, 1677, 6177, 26173, 8924, 12, 2200, 35780, 7473, 279, 62, 6978, 13, 198, 220, 300, 85, 62, 1818, 15908, 796, 279, 62, 6978, 13, 198, 220, 537, 62, 48317, 62, 8534, 437, 62, 30416, 14804, 34945, 62, 25367, 325, 7, 7788, 15490, 2751, 4238, 62, 43551, 220, 796, 300, 85, 62, 1818, 15908, 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, 5870, 15567, 2751, 220, 6163, 62, 43551, 796, 300, 85, 62, 1818, 15908, 6739, 198, 220, 279, 62, 6978, 796, 300, 85, 62, 1818, 15908, 13, 198, 198, 1268, 2043, 12576, 14887, 6234, 13, 198, 220, 537, 62, 48317, 62, 8534, 437, 62, 30416, 14804, 1136, 62, 82, 499, 48317, 62, 1818, 15908, 7, 5870, 15567, 2751, 31841, 1818, 15908, 796, 300, 85, 62, 1818, 15908, 6739, 198, 220, 537, 62, 48317, 62, 12993, 86, 14804, 25925, 7, 6739, 198, 220, 279, 62, 6978, 796, 300, 85, 62, 1818, 15908, 13, 198, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 628, 220, 16876, 279, 62, 6978, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 279, 62, 6978, 796, 300, 85, 62, 1818, 15908, 13, 198, 220, 23578, 5064, 13, 628, 220, 537, 62, 48317, 62, 8534, 437, 62, 30416, 14804, 1136, 62, 7753, 62, 25512, 1352, 7, 5870, 15567, 2751, 2393, 62, 25512, 1352, 796, 300, 85, 62, 16624, 538, 6739, 198, 220, 39962, 1404, 1677, 6158, 279, 62, 6978, 300, 85, 62, 16624, 538, 705, 486, 62, 15496, 10603, 13, 87, 7278, 87, 6, 39319, 300, 85, 62, 929, 7753, 13, 628, 220, 28932, 36393, 1976, 9536, 78, 62, 1069, 5276, 16, 13315, 374, 65, 62, 2902, 796, 450, 499, 62, 7942, 13315, 374, 65, 62, 12860, 796, 450, 499, 62, 9562, 13315, 220, 279, 62, 6978, 220, 220, 220, 220, 796, 279, 62, 6978, 5357, 30826, 27064, 13, 25113, 2943, 14514, 62, 50, 10526, 36393, 450, 499, 17, 87, 7278, 87, 34588, 25, 18435, 995, 198, 220, 28932, 36393, 1976, 9536, 78, 62, 1069, 5276, 17, 13315, 374, 65, 62, 2902, 796, 450, 499, 62, 7942, 13315, 374, 65, 62, 12860, 796, 450, 499, 62, 9562, 13315, 220, 279, 62, 6978, 220, 220, 220, 220, 796, 279, 62, 6978, 5357, 30826, 27064, 13, 25113, 2943, 14514, 62, 50, 10526, 36393, 450, 499, 17, 87, 7278, 87, 34588, 25, 44963, 198, 220, 28932, 36393, 1976, 9536, 78, 62, 1069, 5276, 18, 13315, 374, 65, 62, 2902, 796, 450, 499, 62, 7942, 13315, 374, 65, 62, 12860, 796, 450, 499, 62, 9562, 13315, 220, 279, 62, 6978, 220, 220, 220, 220, 796, 279, 62, 6978, 5357, 30826, 27064, 13, 25113, 2943, 14514, 62, 50, 10526, 36393, 450, 499, 17, 87, 7278, 87, 34588, 25, 4748, 397, 12765, 198, 220, 28932, 36393, 1976, 9536, 78, 62, 1069, 5276, 19, 13315, 374, 65, 62, 2902, 796, 450, 499, 62, 7942, 13315, 374, 65, 62, 12860, 796, 450, 499, 62, 9562, 13315, 220, 279, 62, 6978, 220, 220, 220, 220, 796, 279, 62, 6978, 5357, 30826, 27064, 13, 25113, 2943, 14514, 62, 50, 10526, 36393, 450, 499, 17, 87, 7278, 87, 34588, 25, 15237, 15747, 11, 2443, 9058, 290, 9629, 6608, 198, 220, 28932, 36393, 1976, 9536, 78, 62, 1069, 5276, 20, 13315, 374, 65, 62, 2902, 796, 450, 499, 62, 7942, 13315, 374, 65, 62, 12860, 796, 450, 499, 62, 9562, 13315, 220, 279, 62, 6978, 220, 220, 220, 220, 796, 279, 62, 6978, 5357, 30826, 27064, 13, 25113, 2943, 14514, 62, 50, 10526, 36393, 450, 499, 17, 87, 7278, 87, 34588, 25, 9724, 1859, 33313, 198, 220, 28932, 36393, 1976, 9536, 78, 62, 1069, 5276, 21, 13315, 374, 65, 62, 2902, 796, 450, 499, 62, 7942, 13315, 374, 65, 62, 12860, 796, 450, 499, 62, 9562, 13315, 220, 279, 62, 6978, 220, 220, 220, 220, 796, 279, 62, 6978, 5357, 30826, 27064, 13, 25113, 2943, 14514, 62, 50, 10526, 36393, 450, 499, 17, 87, 7278, 87, 34588, 25, 5178, 25283, 198, 220, 28932, 36393, 1976, 9536, 78, 62, 1069, 5276, 22, 13315, 374, 65, 62, 2902, 796, 450, 499, 62, 7942, 13315, 374, 65, 62, 12860, 796, 450, 499, 62, 9562, 13315, 220, 279, 62, 6978, 220, 220, 220, 220, 796, 279, 62, 6978, 5357, 30826, 27064, 13, 25113, 2943, 14514, 62, 50, 10526, 36393, 450, 499, 17, 87, 7278, 87, 34588, 25, 9724, 1859, 33313, 198, 220, 28932, 36393, 1976, 9536, 78, 62, 1069, 5276, 23, 13315, 374, 65, 62, 2902, 796, 450, 499, 62, 7942, 13315, 374, 65, 62, 12860, 796, 450, 499, 62, 9562, 13315, 220, 279, 62, 6978, 220, 220, 220, 220, 796, 279, 62, 6978, 5357, 30826, 27064, 13, 25113, 2943, 14514, 62, 50, 10526, 36393, 450, 499, 17, 87, 7278, 87, 34588, 25, 371, 6231, 198, 220, 28932, 36393, 1976, 9536, 78, 62, 1069, 5276, 24, 13315, 374, 65, 62, 2902, 796, 450, 499, 62, 7942, 13315, 374, 65, 62, 12860, 796, 450, 499, 62, 9562, 13315, 220, 279, 62, 6978, 220, 220, 220, 220, 796, 279, 62, 6978, 5357, 30826, 27064, 13, 25113, 2943, 14514, 62, 50, 10526, 36393, 450, 499, 17, 87, 7278, 87, 34588, 25, 6060, 21201, 198, 220, 28932, 36393, 1976, 9536, 78, 62, 1069, 5276, 940, 13315, 374, 65, 62, 2902, 796, 450 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS cl_ci_result_root DEFINITION PUBLIC CREATE PUBLIC ABSTRACT. PUBLIC SECTION. DATA: result TYPE string. METHODS set_info ABSTRACT IMPORTING p_info TYPE string RETURNING VALUE(p_result) TYPE string. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS cl_ci_result_root IMPLEMENTATION. ENDCLASS.
[ 31631, 537, 62, 979, 62, 20274, 62, 15763, 5550, 20032, 17941, 44731, 29244, 6158, 44731, 9564, 18601, 10659, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 42865, 25, 1255, 41876, 4731, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 10951, 9564, 18601, 10659, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 279, 62, 10951, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 79, 62, 20274, 8, 41876, 4731, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 537, 62, 979, 62, 20274, 62, 15763, 30023, 2538, 10979, 6234, 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 ]
CLASS y_check_method_return_bool DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC. PUBLIC SECTION. METHODS constructor. PROTECTED SECTION. DATA method_name TYPE string. METHODS inspect_tokens REDEFINITION. PRIVATE SECTION. DATA good_method_names_beginning TYPE TABLE OF string. DATA good_method_names_containing TYPE TABLE OF string. METHODS contains_name_condition IMPORTING stmnt_index TYPE i RETURNING VALUE(result) TYPE abap_bool. ENDCLASS. CLASS Y_CHECK_METHOD_RETURN_BOOL IMPLEMENTATION. METHOD constructor. super->constructor( ). settings-pseudo_comment = '"#EC METH_RET_BOOL' ##NO_TEXT. settings-disable_threshold_selection = abap_true. settings-threshold = 0. settings-prio = c_warning. settings-documentation = |{ c_docs_path-checks }method-return-bool.md|. relevant_statement_types = VALUE #( ( scan_struc_stmnt_type-class_definition ) ( scan_struc_stmnt_type-interface ) ). relevant_structure_types = VALUE #( ). set_check_message( 'Method &1 has a misleading name for boolean return type!' ). APPEND 'IS_' TO good_method_names_beginning. APPEND 'HAS_' TO good_method_names_beginning. APPEND 'ARE_' TO good_method_names_beginning. APPEND 'TRY_' TO good_method_names_beginning. APPEND 'CAN_' TO good_method_names_beginning. APPEND 'HAVE_' TO good_method_names_beginning. APPEND 'MUST_' TO good_method_names_beginning. APPEND 'STARTS_' TO good_method_names_beginning. APPEND 'ENDS_' TO good_method_names_beginning. APPEND 'SHOULD_' TO good_method_names_beginning. APPEND 'WAS_' TO good_method_names_beginning. APPEND 'WERE_' TO good_method_names_beginning. APPEND 'EXIST' TO good_method_names_containing. APPEND 'EQUAL' TO good_method_names_containing. APPEND 'CONTAIN' TO good_method_names_containing. ENDMETHOD. METHOD contains_name_condition. method_name = get_token_abs( stmnt_index + 1 ). LOOP AT good_method_names_beginning ASSIGNING FIELD-SYMBOL(<good_name_beginning>). IF strlen( method_name ) GE strlen( <good_name_beginning> ) AND substring( val = method_name len = strlen( <good_name_beginning> ) ) EQ <good_name_beginning>. result = abap_true. RETURN. ENDIF. ENDLOOP. LOOP AT good_method_names_containing ASSIGNING FIELD-SYMBOL(<good_name_containing>). IF strlen( method_name ) GE strlen( <good_name_containing> ) AND method_name CS <good_name_containing>. result = abap_true. RETURN. ENDIF. ENDLOOP. ENDMETHOD. METHOD inspect_tokens. CHECK get_token_abs( statement-from ) = 'METHODS'. DATA(has_found_bool) = abap_false. DATA(token_index) = statement-from. LOOP AT ref_scan_manager->tokens ASSIGNING FIELD-SYMBOL(<token>) FROM statement-from TO statement-to. IF <token>-str EQ 'ABAP_BOOL' AND get_token_abs( token_index - 3 ) EQ 'RETURNING'. "#EC CI_MAGIC has_found_bool = abap_true. ENDIF. token_index = token_index + 1. ENDLOOP. IF has_found_bool = abap_true AND contains_name_condition( statement-from ) = abap_false. DATA(check_configuration) = detect_check_configuration( statement ). "#EC DECL_IN_IF 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 parameter_01 = |{ method_name }| ). ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9122, 62, 24396, 62, 7783, 62, 30388, 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, 42865, 2446, 62, 3672, 41876, 4731, 13, 628, 220, 220, 220, 337, 36252, 50, 10104, 62, 83, 482, 641, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 922, 62, 24396, 62, 14933, 62, 27471, 768, 41876, 43679, 3963, 4731, 13, 198, 220, 220, 220, 42865, 922, 62, 24396, 62, 14933, 62, 38301, 41876, 43679, 3963, 4731, 13, 628, 220, 220, 220, 337, 36252, 50, 4909, 62, 3672, 62, 31448, 30023, 9863, 2751, 336, 76, 429, 62, 9630, 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, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 575, 62, 50084, 62, 49273, 62, 26087, 27064, 62, 8202, 3535, 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, 337, 20702, 62, 26087, 62, 8202, 3535, 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, 24396, 12, 7783, 12, 30388, 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, 17410, 1222, 16, 468, 257, 15850, 1438, 329, 25131, 1441, 2099, 13679, 6739, 628, 220, 220, 220, 43504, 10619, 705, 1797, 62, 6, 220, 220, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 198, 220, 220, 220, 43504, 10619, 705, 39, 1921, 62, 6, 220, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 198, 220, 220, 220, 43504, 10619, 705, 12203, 62, 6, 220, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 198, 220, 220, 220, 43504, 10619, 705, 40405, 62, 6, 220, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 198, 220, 220, 220, 43504, 10619, 705, 44565, 62, 6, 220, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 198, 220, 220, 220, 43504, 10619, 705, 7801, 6089, 62, 6, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 198, 220, 220, 220, 43504, 10619, 705, 44, 7759, 62, 6, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 198, 220, 220, 220, 43504, 10619, 705, 46678, 4694, 62, 6, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 198, 220, 220, 220, 43504, 10619, 705, 1677, 5258, 62, 6, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 198, 220, 220, 220, 43504, 10619, 705, 9693, 24010, 62, 6, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 198, 220, 220, 220, 43504, 10619, 705, 54, 1921, 62, 6, 220, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 198, 220, 220, 220, 43504, 10619, 705, 54, 9338, 62, 6, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 27471, 768, 13, 628, 220, 220, 220, 43504, 10619, 705, 6369, 8808, 6, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 38301, 13, 198, 220, 220, 220, 43504, 10619, 705, 36, 10917, 1847, 6, 220, 220, 5390, 922, 62, 24396, 62, 14933, 62, 38301, 13, 198, 220, 220, 220, 43504, 10619, 705, 10943, 30339, 6, 5390, 922, 62, 24396, 62, 14933, 62, 38301, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 4909, 62, 3672, 62, 31448, 13, 198, 220, 220, 220, 2446, 62, 3672, 796, 651, 62, 30001, 62, 8937, 7, 336, 76, 429, 62, 9630, 1343, 352, 6739, 628, 220, 220, 220, 17579, 3185, 5161, 922, 62, 24396, 62, 14933, 62, 27471, 768, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 11274, 62, 3672, 62, 27471, 768, 29, 737, 198, 220, 220, 220, 220, 220, 16876, 965, 11925, 7, 2446, 62, 3672, 1267, 22319, 965, 11925, 7, 1279, 11274, 62, 3672, 62, 27471, 768, 29, 1267, 198, 220, 220, 220, 220, 220, 5357, 3293, 1806, 7, 1188, 796, 2446, 62, 3672, 18896, 796, 965, 11925, 7, 1279, 11274, 62, 3672, 62, 27471, 768, 29, 1267, 1267, 36529, 1279, 11274, 62, 3672, 62, 27471, 768, 28401, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 220, 220, 17579, 3185, 5161, 922, 62, 24396, 62, 14933, 62, 38301, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 11274, 62, 3672, 62, 38301, 29, 737, 198, 220, 220, 220, 220, 220, 16876, 965, 11925, 7, 2446, 62, 3672, 1267, 22319, 965, 11925, 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, 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 ]
class-pool . *"* class pool for class ZCL_ZAZURE_MONITOR_MPC *"* local type definitions include ZCL_ZAZURE_MONITOR_MPC========ccdef. *"* class ZCL_ZAZURE_MONITOR_MPC definition *"* public declarations include ZCL_ZAZURE_MONITOR_MPC========cu. *"* protected declarations include ZCL_ZAZURE_MONITOR_MPC========co. *"* private declarations include ZCL_ZAZURE_MONITOR_MPC========ci. endclass. "ZCL_ZAZURE_MONITOR_MPC definition *"* macro definitions include ZCL_ZAZURE_MONITOR_MPC========ccmac. *"* local class implementation include ZCL_ZAZURE_MONITOR_MPC========ccimp. class ZCL_ZAZURE_MONITOR_MPC implementation. *"* method's implementations include methods. endclass. "ZCL_ZAZURE_MONITOR_MPC implementation
[ 4871, 12, 7742, 764, 198, 9, 1, 9, 1398, 5933, 329, 1398, 1168, 5097, 62, 57, 22778, 11335, 62, 27857, 2043, 1581, 62, 44, 5662, 198, 198, 9, 1, 9, 1957, 2099, 17336, 198, 17256, 1168, 5097, 62, 57, 22778, 11335, 62, 27857, 2043, 1581, 62, 44, 5662, 2559, 535, 4299, 13, 198, 198, 9, 1, 9, 1398, 1168, 5097, 62, 57, 22778, 11335, 62, 27857, 2043, 1581, 62, 44, 5662, 6770, 198, 9, 1, 9, 1171, 31713, 198, 220, 2291, 1168, 5097, 62, 57, 22778, 11335, 62, 27857, 2043, 1581, 62, 44, 5662, 2559, 27399, 13, 198, 9, 1, 9, 6861, 31713, 198, 220, 2291, 1168, 5097, 62, 57, 22778, 11335, 62, 27857, 2043, 1581, 62, 44, 5662, 2559, 1073, 13, 198, 9, 1, 9, 2839, 31713, 198, 220, 2291, 1168, 5097, 62, 57, 22778, 11335, 62, 27857, 2043, 1581, 62, 44, 5662, 2559, 979, 13, 198, 437, 4871, 13, 366, 57, 5097, 62, 57, 22778, 11335, 62, 27857, 2043, 1581, 62, 44, 5662, 6770, 198, 198, 9, 1, 9, 15021, 17336, 198, 17256, 1168, 5097, 62, 57, 22778, 11335, 62, 27857, 2043, 1581, 62, 44, 5662, 2559, 535, 20285, 13, 198, 9, 1, 9, 1957, 1398, 7822, 198, 17256, 1168, 5097, 62, 57, 22778, 11335, 62, 27857, 2043, 1581, 62, 44, 5662, 2559, 535, 11011, 13, 198, 198, 4871, 1168, 5097, 62, 57, 22778, 11335, 62, 27857, 2043, 1581, 62, 44, 5662, 7822, 13, 198, 9, 1, 9, 2446, 338, 25504, 198, 220, 2291, 5050, 13, 198, 437, 4871, 13, 366, 57, 5097, 62, 57, 22778, 11335, 62, 27857, 2043, 1581, 62, 44, 5662, 7822, 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 ]
CLASS zcl_abapgit_gui_page_merge DEFINITION PUBLIC INHERITING FROM zcl_abapgit_gui_page FINAL CREATE PUBLIC . PUBLIC SECTION. METHODS constructor IMPORTING io_repo TYPE REF TO zcl_abapgit_repo_online iv_source TYPE string iv_target TYPE string RAISING zcx_abapgit_exception . METHODS zif_abapgit_gui_event_handler~on_event REDEFINITION. PROTECTED SECTION. METHODS render_content REDEFINITION. PRIVATE SECTION. DATA mo_repo TYPE REF TO zcl_abapgit_repo_online . DATA mi_merge TYPE REF TO zif_abapgit_merge . CONSTANTS: BEGIN OF c_actions, merge TYPE string VALUE 'merge' ##NO_TEXT, res_conflicts TYPE string VALUE 'res_conflicts' ##NO_TEXT, END OF c_actions . METHODS show_file IMPORTING !it_expanded TYPE zif_abapgit_definitions=>ty_expanded_tt !ii_html TYPE REF TO zif_abapgit_html !is_file TYPE zif_abapgit_definitions=>ty_expanded !is_result TYPE zif_abapgit_definitions=>ty_expanded . METHODS build_menu IMPORTING VALUE(iv_with_conflict) TYPE abap_bool OPTIONAL RETURNING VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar . ENDCLASS. CLASS zcl_abapgit_gui_page_merge IMPLEMENTATION. METHOD build_menu. CREATE OBJECT ro_menu. ro_menu->add( iv_txt = 'Merge' iv_act = c_actions-merge iv_cur = abap_false ). IF iv_with_conflict = abap_true. ro_menu->add( iv_txt = 'Resolve Conflicts' iv_act = c_actions-res_conflicts ). ENDIF. ENDMETHOD. METHOD constructor. super->constructor( ). mo_repo = io_repo. io_repo->select_branch( |{ zif_abapgit_definitions=>c_git_branch-heads_prefix }{ iv_target }| ). CREATE OBJECT mi_merge TYPE zcl_abapgit_merge EXPORTING io_repo = io_repo iv_source_branch = iv_source. mi_merge->run( ). ms_control-page_title = 'Merge'. ms_control-page_menu = build_menu( mi_merge->has_conflicts( ) ). ENDMETHOD. METHOD render_content. DATA: ls_merge TYPE zif_abapgit_merge=>ty_merge, lt_files LIKE ls_merge-stree, ls_result LIKE LINE OF ls_merge-result. FIELD-SYMBOLS: <ls_file> LIKE LINE OF lt_files. ls_merge = mi_merge->get_result( ). "If now exists no conflicts anymore, conflicts button should disappear ms_control-page_menu = build_menu( mi_merge->has_conflicts( ) ). CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( '<div id="toc">' ). ri_html->add( zcl_abapgit_gui_chunk_lib=>render_repo_top( io_repo = mo_repo iv_show_package = abap_false iv_show_branch = abap_false ) ). ri_html->add( '<table>' ). ri_html->add( '<tr>' ). ri_html->add( '<td>Source</td>' ). ri_html->add( '<td>' ). ri_html->add( ls_merge-source-name ). ri_html->add( '</td></tr>' ). ri_html->add( '<tr>' ). ri_html->add( '<td>Target</td>' ). ri_html->add( '<td>' ). ri_html->add( ls_merge-target-name ). ri_html->add( '</td></tr>' ). ri_html->add( '<tr>' ). ri_html->add( '<td>Ancestor</td>' ). ri_html->add( '<td>' ). ri_html->add( ls_merge-common-commit ). ri_html->add( '</td></tr>' ). ri_html->add( '</table>' ). ri_html->add( '<br>' ). APPEND LINES OF ls_merge-stree TO lt_files. APPEND LINES OF ls_merge-ttree TO lt_files. APPEND LINES OF ls_merge-ctree TO lt_files. SORT lt_files BY path DESCENDING name ASCENDING. DELETE ADJACENT DUPLICATES FROM lt_files COMPARING path name. ri_html->add( '<table>' ). ri_html->add( '<tr>' ). ri_html->add( '<td><u>Source</u></td>' ). ri_html->add( '<td></td>' ). ri_html->add( '<td><u>Target</u></td>' ). ri_html->add( '<td></td>' ). ri_html->add( '<td><u>Ancestor</u></td>' ). ri_html->add( '<td></td>' ). ri_html->add( '<td><u>Result</u></td>' ). ri_html->add( '<td></td>' ). ri_html->add( '</tr>' ). LOOP AT lt_files ASSIGNING <ls_file>. CLEAR ls_result. READ TABLE ls_merge-result INTO ls_result WITH KEY path = <ls_file>-path name = <ls_file>-name. ri_html->add( '<tr>' ). show_file( it_expanded = ls_merge-stree ii_html = ri_html is_file = <ls_file> is_result = ls_result ). show_file( it_expanded = ls_merge-ttree ii_html = ri_html is_file = <ls_file> is_result = ls_result ). show_file( it_expanded = ls_merge-ctree ii_html = ri_html is_file = <ls_file> is_result = ls_result ). show_file( it_expanded = ls_merge-result ii_html = ri_html is_file = <ls_file> is_result = ls_result ). ri_html->add( '</tr>' ). ENDLOOP. ri_html->add( '</table>' ). ri_html->add( '<br>' ). ri_html->add( '<b>' ). ri_html->add( ls_merge-conflict ). ri_html->add( '</b>' ). ri_html->add( '</div>' ). ENDMETHOD. METHOD show_file. FIELD-SYMBOLS: <ls_show> LIKE LINE OF it_expanded. READ TABLE it_expanded ASSIGNING <ls_show> WITH KEY path = is_file-path name = is_file-name. IF sy-subrc = 0. IF <ls_show>-sha1 = is_result-sha1. ii_html->add( |<td>{ <ls_show>-path }{ <ls_show>-name }</td><td><b>{ <ls_show>-sha1(7) }</b></td>| ). ELSE. ii_html->add( |<td>{ <ls_show>-path }{ <ls_show>-name }</td><td>{ <ls_show>-sha1(7) }</td>| ). ENDIF. ELSE. ii_html->add( '<td></td><td></td>' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_gui_event_handler~on_event. CASE ii_event->mv_action. WHEN c_actions-merge. IF mi_merge->has_conflicts( ) = abap_true. zcx_abapgit_exception=>raise( 'conflicts exists' ). ENDIF. IF mi_merge->get_result( )-stage->count( ) = 0. zcx_abapgit_exception=>raise( 'nothing to merge' ). ENDIF. IF mo_repo->get_local_settings( )-code_inspector_check_variant IS NOT INITIAL. CREATE OBJECT rs_handled-page TYPE zcl_abapgit_gui_page_code_insp EXPORTING io_repo = mo_repo io_stage = mi_merge->get_result( )-stage. ELSE. rs_handled-page = zcl_abapgit_gui_page_commit=>create( io_repo = mo_repo io_stage = mi_merge->get_result( )-stage ). ENDIF. rs_handled-state = zcl_abapgit_gui=>c_event_state-new_page. WHEN c_actions-res_conflicts. CREATE OBJECT rs_handled-page TYPE zcl_abapgit_gui_page_merge_res EXPORTING io_repo = mo_repo io_merge_page = me io_merge = mi_merge. rs_handled-state = zcl_abapgit_gui=>c_event_state-new_page. WHEN OTHERS. rs_handled = super->zif_abapgit_gui_event_handler~on_event( ii_event ). ENDCASE. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 647, 469, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 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, 33245, 62, 260, 7501, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 10459, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16793, 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, 628, 220, 220, 220, 337, 36252, 50, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 15596, 62, 30281, 93, 261, 62, 15596, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 8543, 62, 11299, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 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, 21504, 62, 647, 469, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 647, 469, 764, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 4658, 11, 198, 220, 220, 220, 220, 220, 220, 220, 20121, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 647, 469, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 581, 62, 10414, 42267, 41876, 4731, 26173, 8924, 705, 411, 62, 10414, 42267, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 4658, 764, 628, 220, 220, 220, 337, 36252, 50, 905, 62, 7753, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 11201, 12249, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 11201, 12249, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 6494, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 7753, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 11201, 12249, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 20274, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 11201, 12249, 764, 198, 220, 220, 220, 337, 36252, 50, 1382, 62, 26272, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 452, 62, 4480, 62, 10414, 13758, 8, 41876, 450, 499, 62, 30388, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 26272, 8, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 25981, 5657, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 647, 469, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1382, 62, 26272, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 686, 62, 26272, 13, 628, 220, 220, 220, 686, 62, 26272, 3784, 2860, 7, 21628, 62, 14116, 796, 705, 13102, 469, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 529, 796, 269, 62, 4658, 12, 647, 469, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 22019, 796, 450, 499, 62, 9562, 6739, 628, 220, 220, 220, 16876, 21628, 62, 4480, 62, 10414, 13758, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 686, 62, 26272, 3784, 2860, 7, 21628, 62, 14116, 796, 705, 4965, 6442, 7326, 42267, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 529, 796, 269, 62, 4658, 12, 411, 62, 10414, 42267, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 628, 220, 220, 220, 6941, 62, 260, 7501, 796, 33245, 62, 260, 7501, 13, 628, 220, 220, 220, 33245, 62, 260, 7501, 3784, 19738, 62, 1671, 3702, 7, 930, 90, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 66, 62, 18300, 62, 1671, 3702, 12, 16600, 62, 40290, 1782, 90, 21628, 62, 16793, 1782, 91, 6739, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 21504, 62, 647, 469, 41876, 1976, 565, 62, 397, 499, 18300, 62, 647, 469, 7788, 15490, 2751, 33245, 62, 260, 7501, 796, 33245, 62, 260, 7501, 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, 21628, 62, 10459, 62, 1671, 3702, 796, 21628, 62, 10459, 13, 198, 220, 220, 220, 21504, 62, 647, 469, 3784, 5143, 7, 6739, 628, 220, 220, 220, 13845, 62, 13716, 12, 7700, 62, 7839, 796, 705, 13102, 469, 4458, 198, 220, 220, 220, 13845, 62, 13716, 12, 7700, 62, 26272, 220, 796, 1382, 62, 26272, 7, 21504, 62, 647, 469, 3784, 10134, 62, 10414 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS ycl_abapgit_services_repo DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS new_online IMPORTING !iv_url TYPE string RETURNING VALUE(ro_repo) TYPE REF TO ycl_abapgit_repo_online RAISING ycx_abapgit_exception ycx_abapgit_cancel . CLASS-METHODS refresh IMPORTING !iv_key TYPE yif_abapgit_persistence=>ty_repo-key RAISING ycx_abapgit_exception . CLASS-METHODS remove IMPORTING !iv_key TYPE yif_abapgit_persistence=>ty_repo-key RAISING ycx_abapgit_exception ycx_abapgit_cancel . CLASS-METHODS purge IMPORTING !iv_key TYPE yif_abapgit_persistence=>ty_repo-key RAISING ycx_abapgit_exception ycx_abapgit_cancel . CLASS-METHODS new_offline RAISING ycx_abapgit_exception ycx_abapgit_cancel . CLASS-METHODS remote_attach IMPORTING !iv_key TYPE yif_abapgit_persistence=>ty_repo-key RAISING ycx_abapgit_exception ycx_abapgit_cancel . CLASS-METHODS remote_detach IMPORTING !iv_key TYPE yif_abapgit_persistence=>ty_repo-key RAISING ycx_abapgit_exception ycx_abapgit_cancel . CLASS-METHODS remote_change IMPORTING !iv_key TYPE yif_abapgit_persistence=>ty_repo-key RAISING ycx_abapgit_exception ycx_abapgit_cancel . CLASS-METHODS refresh_local_checksums IMPORTING !iv_key TYPE yif_abapgit_persistence=>ty_repo-key RAISING ycx_abapgit_exception ycx_abapgit_cancel . CLASS-METHODS toggle_favorite IMPORTING !iv_key TYPE yif_abapgit_persistence=>ty_repo-key RAISING ycx_abapgit_exception . CLASS-METHODS open_se80 IMPORTING !iv_package TYPE devclass RAISING ycx_abapgit_exception . CLASS-METHODS transport_to_branch IMPORTING !iv_repository_key TYPE yif_abapgit_persistence=>ty_value RAISING ycx_abapgit_exception ycx_abapgit_cancel . CLASS-METHODS gui_deserialize IMPORTING !io_repo TYPE REF TO ycl_abapgit_repo RAISING ycx_abapgit_exception . PRIVATE SECTION. CLASS-METHODS popup_overwrite CHANGING !ct_overwrite TYPE yif_abapgit_definitions=>ty_overwrite_tt RAISING ycx_abapgit_exception ycx_abapgit_cancel . CLASS-METHODS popup_package_overwrite CHANGING !ct_overwrite TYPE yif_abapgit_definitions=>ty_overwrite_tt RAISING ycx_abapgit_exception ycx_abapgit_cancel . ENDCLASS. CLASS YCL_ABAPGIT_SERVICES_REPO IMPLEMENTATION. METHOD gui_deserialize. DATA: ls_checks TYPE yif_abapgit_definitions=>ty_deserialize_checks, lt_requirements TYPE yif_abapgit_dot_abapgit=>ty_requirement_tt. * find troublesome objects ls_checks = io_repo->deserialize_checks( ). * and let the user decide what to do TRY. popup_overwrite( CHANGING ct_overwrite = ls_checks-overwrite ). popup_package_overwrite( CHANGING ct_overwrite = ls_checks-warning_package ). IF ls_checks-requirements-met = 'N'. lt_requirements = io_repo->get_dot_abapgit( )->get_data( )-requirements. ycl_abapgit_requirement_helper=>requirements_popup( lt_requirements ). ls_checks-requirements-decision = 'Y'. ENDIF. IF ls_checks-transport-required = abap_true. ls_checks-transport-transport = ycl_abapgit_ui_factory=>get_popups( )->popup_transport_request( is_transport_type = ls_checks-transport-type ). ENDIF. CATCH ycx_abapgit_cancel. RETURN. ENDTRY. * and pass decisions to deserialize io_repo->deserialize( ls_checks ). ENDMETHOD. METHOD new_offline. DATA: lo_repo TYPE REF TO ycl_abapgit_repo, ls_popup TYPE yif_abapgit_popups=>ty_popup. ls_popup = ycl_abapgit_ui_factory=>get_popups( )->repo_new_offline( ). IF ls_popup-cancel = abap_true. RAISE EXCEPTION TYPE ycx_abapgit_cancel. ENDIF. lo_repo = ycl_abapgit_repo_srv=>get_instance( )->new_offline( iv_url = ls_popup-url iv_package = ls_popup-package ). ycl_abapgit_persistence_user=>get_instance( )->set_repo_show( lo_repo->get_key( ) ). " Set default repo for user toggle_favorite( lo_repo->get_key( ) ). COMMIT WORK AND WAIT. ENDMETHOD. METHOD new_online. DATA: ls_popup TYPE yif_abapgit_popups=>ty_popup. ls_popup = ycl_abapgit_ui_factory=>get_popups( )->repo_popup( iv_url ). IF ls_popup-cancel = abap_true. RAISE EXCEPTION TYPE ycx_abapgit_cancel. ENDIF. ro_repo = ycl_abapgit_repo_srv=>get_instance( )->new_online( iv_url = ls_popup-url iv_branch_name = ls_popup-branch_name iv_package = ls_popup-package ). toggle_favorite( ro_repo->get_key( ) ). * Set default repo for user ycl_abapgit_persistence_user=>get_instance( )->set_repo_show( ro_repo->get_key( ) ). COMMIT WORK. ENDMETHOD. METHOD open_se80. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' in_new_window = abap_true object_name = iv_package object_type = 'DEVC' with_objectlist = abap_true. ENDMETHOD. METHOD popup_overwrite. DATA: lt_columns TYPE stringtab, lt_selected LIKE ct_overwrite, lv_column LIKE LINE OF lt_columns, li_popups TYPE REF TO yif_abapgit_popups. FIELD-SYMBOLS: <ls_overwrite> LIKE LINE OF ct_overwrite. IF lines( ct_overwrite ) = 0. RETURN. ENDIF. lv_column = 'OBJ_TYPE'. INSERT lv_column INTO TABLE lt_columns. lv_column = 'OBJ_NAME'. INSERT lv_column INTO TABLE lt_columns. li_popups = ycl_abapgit_ui_factory=>get_popups( ). li_popups->popup_to_select_from_list( EXPORTING it_list = ct_overwrite iv_header_text = |The following Objects have been modified locally.| && | Select the Objects which should be overwritten.| iv_select_column_text = 'Overwrite?' it_columns_to_display = lt_columns IMPORTING et_list = lt_selected ). LOOP AT ct_overwrite ASSIGNING <ls_overwrite>. READ TABLE lt_selected WITH KEY obj_type = <ls_overwrite>-obj_type obj_name = <ls_overwrite>-obj_name TRANSPORTING NO FIELDS. IF sy-subrc = 0. <ls_overwrite>-decision = 'Y'. ELSE. <ls_overwrite>-decision = 'N'. ENDIF. ENDLOOP. ENDMETHOD. METHOD popup_package_overwrite. DATA: lv_question TYPE c LENGTH 200, lv_answer TYPE c. FIELD-SYMBOLS: <ls_overwrite> LIKE LINE OF ct_overwrite. IF lines( ct_overwrite ) = 0. RETURN. ENDIF. LOOP AT ct_overwrite ASSIGNING <ls_overwrite>. CONCATENATE 'Overwrite object' <ls_overwrite>-obj_type <ls_overwrite>-obj_name 'from package' <ls_overwrite>-devclass INTO lv_question SEPARATED BY space. "#EC NOTEXT lv_answer = ycl_abapgit_ui_factory=>get_popups( )->popup_to_confirm( iv_titlebar = 'Warning' iv_text_question = lv_question iv_text_button_1 = 'Ok' iv_icon_button_1 = 'ICON_DELETE' iv_text_button_2 = 'Cancel' iv_icon_button_2 = 'ICON_CANCEL' iv_default_button = '2' iv_display_cancel_button = abap_false ). "#EC NOTEXT IF lv_answer = '2'. RAISE EXCEPTION TYPE ycx_abapgit_cancel. ENDIF. * todo, let the user decide yes/no/cancel <ls_overwrite>-decision = 'Y'. ENDLOOP. ENDMETHOD. METHOD purge. DATA: lt_tadir TYPE yif_abapgit_definitions=>ty_tadir_tt, lv_answer TYPE c LENGTH 1, lo_repo TYPE REF TO ycl_abapgit_repo, lv_package TYPE devclass, lv_question TYPE c LENGTH 100, ls_checks TYPE yif_abapgit_definitions=>ty_delete_checks. lo_repo = ycl_abapgit_repo_srv=>get_instance( )->get( iv_key ). lv_package = lo_repo->get_package( ). lt_tadir = ycl_abapgit_factory=>get_tadir( )->read( lv_package ). IF lines( lt_tadir ) > 0. lv_question = |This will DELETE all objects in package { lv_package } ({ lines( lt_tadir ) } objects) from the system|. "#EC NOTEXT lv_answer = ycl_abapgit_ui_factory=>get_popups( )->popup_to_confirm( iv_titlebar = 'Uninstall' iv_text_question = lv_question iv_text_button_1 = 'Delete' iv_icon_button_1 = 'ICON_DELETE' iv_text_button_2 = 'Cancel' iv_icon_button_2 = 'ICON_CANCEL' iv_default_button = '2' iv_display_cancel_button = abap_false ). "#EC NOTEXT IF lv_answer = '2'. RAISE EXCEPTION TYPE ycx_abapgit_cancel. ENDIF. ENDIF. ls_checks = lo_repo->delete_checks( ). IF ls_checks-transport-required = abap_true. ls_checks-transport-transport = ycl_abapgit_ui_factory=>get_popups( )->popup_transport_request( ls_checks-transport-type ). ENDIF. ycl_abapgit_repo_srv=>get_instance( )->purge( io_repo = lo_repo is_checks = ls_checks ). COMMIT WORK. ENDMETHOD. METHOD refresh. ycl_abapgit_repo_srv=>get_instance( )->get( iv_key )->refresh( ). ENDMETHOD. "refresh METHOD refresh_local_checksums. DATA: lv_answer TYPE c, lv_question TYPE string, lo_repo TYPE REF TO ycl_abapgit_repo. IF ycl_abapgit_auth=>is_allowed( yif_abapgit_auth=>gc_authorization-update_local_checksum ) = abap_false. ycx_abapgit_exception=>raise( 'Not authorized' ). ENDIF. lo_repo = ycl_abapgit_repo_srv=>get_instance( )->get( iv_key ). lv_question = 'This will rebuild and overwrite local repo checksums.'. IF lo_repo->is_offline( ) = abap_false. lv_question = lv_question && ' The logic: if local and remote file differs then:' && ' if remote branch is ahead then assume changes are remote,' && ' else (branches are equal) assume changes are local.' && ' This will lead to incorrect state for files changed on both sides.' && ' Please make sure you don''t have ones like that.'. ENDIF. lv_answer = ycl_abapgit_ui_factory=>get_popups( )->popup_to_confirm( iv_titlebar = 'Warning' iv_text_question = lv_question iv_text_button_1 = 'OK' iv_icon_button_1 = 'ICON_DELETE' iv_text_button_2 = 'Cancel' iv_icon_button_2 = 'ICON_CANCEL' iv_default_button = '2' iv_display_cancel_button = abap_false ). "#EC NOTEXT IF lv_answer = '2'. RAISE EXCEPTION TYPE ycx_abapgit_cancel. ENDIF. lo_repo->rebuild_local_checksums( ). COMMIT WORK AND WAIT. ENDMETHOD. METHOD remote_attach. DATA: ls_popup TYPE yif_abapgit_popups=>ty_popup, lo_repo TYPE REF TO ycl_abapgit_repo_online. ls_popup = ycl_abapgit_ui_factory=>get_popups( )->repo_popup( iv_title = 'Attach repo to remote ...' iv_url = '' iv_package = ycl_abapgit_repo_srv=>get_instance( )->get( iv_key )->get_package( ) iv_freeze_package = abap_true ). IF ls_popup-cancel = abap_true. RAISE EXCEPTION TYPE ycx_abapgit_cancel. ENDIF. ycl_abapgit_repo_srv=>get_instance( )->switch_repo_type( iv_key = iv_key iv_offline = abap_false ). lo_repo ?= ycl_abapgit_repo_srv=>get_instance( )->get( iv_key ). lo_repo->set_url( ls_popup-url ). lo_repo->set_branch_name( ls_popup-branch_name ). COMMIT WORK. ENDMETHOD. METHOD remote_change. DATA: ls_popup TYPE yif_abapgit_popups=>ty_popup, lo_repo TYPE REF TO ycl_abapgit_repo_online. lo_repo ?= ycl_abapgit_repo_srv=>get_instance( )->get( iv_key ). ls_popup = ycl_abapgit_ui_factory=>get_popups( )->repo_popup( iv_title = 'Change repo remote ...' iv_url = lo_repo->get_url( ) iv_package = lo_repo->get_package( ) iv_freeze_package = abap_true ). IF ls_popup-cancel = abap_true. RAISE EXCEPTION TYPE ycx_abapgit_cancel. ENDIF. lo_repo ?= ycl_abapgit_repo_srv=>get_instance( )->get( iv_key ). lo_repo->set_url( ls_popup-url ). lo_repo->set_branch_name( ls_popup-branch_name ). COMMIT WORK. ENDMETHOD. METHOD remote_detach. DATA: lv_answer TYPE c LENGTH 1. lv_answer = ycl_abapgit_ui_factory=>get_popups( )->popup_to_confirm( iv_titlebar = 'Make repository OFF-line' iv_text_question = 'This will detach the repo from remote and make it OFF-line' iv_text_button_1 = 'Make OFF-line' iv_icon_button_1 = 'ICON_WF_UNLINK' iv_text_button_2 = 'Cancel' iv_icon_button_2 = 'ICON_CANCEL' iv_default_button = '2' iv_display_cancel_button = abap_false ). "#EC NOTEXT IF lv_answer = '2'. RAISE EXCEPTION TYPE ycx_abapgit_cancel. ENDIF. ycl_abapgit_repo_srv=>get_instance( )->switch_repo_type( iv_key = iv_key iv_offline = abap_true ). COMMIT WORK. ENDMETHOD. METHOD remove. DATA: lv_answer TYPE c LENGTH 1, lo_repo TYPE REF TO ycl_abapgit_repo, lv_package TYPE devclass, lv_question TYPE c LENGTH 200. lo_repo = ycl_abapgit_repo_srv=>get_instance( )->get( iv_key ). lv_package = lo_repo->get_package( ). lv_question = |This will remove the repository reference to the package { lv_package }. All objects will safely remain in the system.|. lv_answer = ycl_abapgit_ui_factory=>get_popups( )->popup_to_confirm( iv_titlebar = 'Remove' iv_text_question = lv_question iv_text_button_1 = 'Remove' iv_icon_button_1 = 'ICON_WF_UNLINK' iv_text_button_2 = 'Cancel' iv_icon_button_2 = 'ICON_CANCEL' iv_default_button = '2' iv_display_cancel_button = abap_false ). "#EC NOTEXT IF lv_answer = '2'. RAISE EXCEPTION TYPE ycx_abapgit_cancel. ENDIF. ycl_abapgit_repo_srv=>get_instance( )->delete( lo_repo ). COMMIT WORK. ENDMETHOD. METHOD toggle_favorite. ycl_abapgit_persistence_user=>get_instance( )->toggle_favorite( iv_key ). ENDMETHOD. METHOD transport_to_branch. DATA: lo_repository TYPE REF TO ycl_abapgit_repo_online, lo_transport_to_branch TYPE REF TO ycl_abapgit_transport_2_branch, lt_transport_headers TYPE trwbo_request_headers, lt_transport_objects TYPE yif_abapgit_definitions=>ty_tadir_tt, ls_transport_to_branch TYPE yif_abapgit_definitions=>ty_transport_to_branch. IF ycl_abapgit_auth=>is_allowed( yif_abapgit_auth=>gc_authorization-transport_to_branch ) = abap_false. ycx_abapgit_exception=>raise( 'Not authorized' ). ENDIF. lo_repository ?= ycl_abapgit_repo_srv=>get_instance( )->get( iv_repository_key ). lt_transport_headers = ycl_abapgit_ui_factory=>get_popups( )->popup_to_select_transports( ). lt_transport_objects = ycl_abapgit_transport=>to_tadir( lt_transport_headers ). IF lt_transport_objects IS INITIAL. ycx_abapgit_exception=>raise( 'Canceled or List of objects is empty ' ). ENDIF. ls_transport_to_branch = ycl_abapgit_ui_factory=>get_popups( )->popup_to_create_transp_branch( lt_transport_headers ). CREATE OBJECT lo_transport_to_branch. lo_transport_to_branch->create( io_repository = lo_repository is_transport_to_branch = ls_transport_to_branch it_transport_objects = lt_transport_objects ). ENDMETHOD. ENDCLASS.
[ 31631, 331, 565, 62, 397, 499, 18300, 62, 30416, 62, 260, 7501, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 649, 62, 25119, 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, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 260, 7501, 8, 41876, 4526, 37, 5390, 331, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 66, 21130, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 14976, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 41876, 331, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 4781, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 41876, 331, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 66, 21130, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 35714, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 41876, 331, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 66, 21130, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 649, 62, 2364, 1370, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 66, 21130, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 6569, 62, 47348, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 41876, 331, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 66, 21130, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 6569, 62, 15255, 620, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 41876, 331, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 66, 21130, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 6569, 62, 3803, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 41876, 331, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 66, 21130, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 14976, 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, 41876, 331, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 66, 21130, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 19846, 62, 35200, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 41876, 331, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 1280, 62, 325, 1795, 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, 331, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 4839, 62, 1462, 62, 1671, 3702, 198, 220, 220, 220, 220, 220, 30023 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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R_QUEUE * generation date: 05.03.2020 at 10:43:18 * view maintenance generator version: #001407# *---------------------------------------------------------------------* FUNCTION VIEWPROC_ZEWM_V_ERR_QUEUE . *----------------------------------------------------------------------* * Initialization: set field-symbols etc. * *----------------------------------------------------------------------* IF LAST_VIEW_INFO NE VIEW_NAME. ASSIGN ZEWM_V_ERR_QUEUE TO <TABLE1>. ASSIGN *ZEWM_V_ERR_QUEUE TO <INITIAL>. ASSIGN STATUS_ZEWM_V_ERR_QUEUE TO <STATUS>. PERFORM INITIALISIEREN. ENDIF. PERFORM JUSTIFY_ACTION_MODE. MOVE: VIEW_ACTION TO MAINT_MODE, CORR_NUMBER TO CORR_NBR. *----------------------------------------------------------------------* * Get data from database * *----------------------------------------------------------------------* IF FCODE EQ READ OR FCODE EQ READ_AND_EDIT. PERFORM PREPARE_READ_REQUEST. IF X_HEADER-FRM_RP_GET NE SPACE. PERFORM (X_HEADER-FRM_RP_GET) IN PROGRAM. ELSE. PERFORM GET_DATA_ZEWM_V_ERR_QUEUE. ENDIF. IF FCODE EQ READ_AND_EDIT. FCODE = EDIT. ENDIF. ENDIF. CASE FCODE. WHEN EDIT. " Edit read data PERFORM CALL_DYNPRO. PERFORM CHECK_UPD. *....................................................................* WHEN SAVE. " Write data into database PERFORM PREPARE_SAVING. IF <STATUS>-UPD_FLAG NE SPACE. IF X_HEADER-FRM_RP_UPD NE SPACE. PERFORM (X_HEADER-FRM_RP_UPD) IN PROGRAM. ELSE. IF SY-SUBRC EQ 0. PERFORM DB_UPD_ZEWM_V_ERR_QUEUE. ENDIF. ENDIF. PERFORM AFTER_SAVING. ENDIF. *....................................................................* WHEN RESET_LIST. " Refresh all marked entries of EXTRACT from db PERFORM RESET_ENTRIES USING LIST_BILD. *....................................................................* WHEN RESET_ENTRY. " Refresh single entry from database PERFORM RESET_ENTRIES USING DETAIL_BILD. *....................................................................... ENDCASE. MOVE STATUS_ZEWM_V_ERR_QUEUE-UPD_FLAG TO UPDATE_REQUIRED. ENDFUNCTION.
[ 9, 10097, 30934, 9, 198, 9, 220, 220, 220, 1430, 329, 25, 220, 220, 49880, 4805, 4503, 62, 57, 6217, 44, 62, 53, 62, 1137, 49, 62, 48, 8924, 8924, 198, 9, 220, 220, 5270, 3128, 25, 8870, 13, 3070, 13, 42334, 379, 838, 25, 3559, 25, 1507, 198, 9, 220, 220, 1570, 9262, 17301, 2196, 25, 1303, 405, 1415, 2998, 2, 198, 9, 10097, 30934, 9, 198, 42296, 4177, 2849, 49880, 4805, 4503, 62, 57, 6217, 44, 62, 53, 62, 1137, 49, 62, 48, 8924, 8924, 220, 220, 220, 220, 764, 198, 9, 10097, 23031, 9, 198, 9, 20768, 1634, 25, 900, 2214, 12, 1837, 2022, 10220, 3503, 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, 1635, 198, 9, 10097, 23031, 9, 198, 220, 220, 16876, 41894, 62, 28206, 62, 10778, 10635, 49880, 62, 20608, 13, 198, 10705, 16284, 1168, 6217, 44, 62, 53, 62, 1137, 49, 62, 48, 8924, 8924, 5390, 1279, 38148, 16, 28401, 198, 10705, 16284, 1635, 57, 6217, 44, 62, 53, 62, 1137, 49, 62, 48, 8924, 8924, 5390, 1279, 1268, 2043, 12576, 28401, 198, 10705, 16284, 15486, 2937, 62, 57, 6217, 44, 62, 53, 62, 1137, 49, 62, 48, 8924, 8924, 5390, 1279, 35744, 2937, 28401, 198, 220, 220, 220, 220, 19878, 21389, 3268, 2043, 12576, 1797, 38311, 1677, 13, 198, 220, 220, 23578, 5064, 13, 198, 220, 220, 19878, 21389, 25848, 5064, 56, 62, 44710, 62, 49058, 13, 198, 220, 220, 13070, 6089, 25, 49880, 62, 44710, 5390, 8779, 12394, 62, 49058, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 23929, 49, 62, 41359, 13246, 5390, 23929, 49, 62, 45, 11473, 13, 198, 198, 9, 10097, 23031, 9, 198, 9, 3497, 1366, 422, 6831, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 9, 10097, 23031, 9, 198, 220, 16876, 10029, 16820, 36529, 20832, 6375, 10029, 16820, 36529, 20832, 62, 6981, 62, 24706, 13, 198, 220, 220, 220, 19878, 21389, 22814, 47, 12203, 62, 15675, 62, 2200, 35780, 13, 198, 220, 220, 220, 16876, 1395, 62, 37682, 1137, 12, 10913, 44, 62, 20031, 62, 18851, 10635, 37253, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19878, 21389, 357, 55, 62, 37682, 1137, 12, 10913, 44, 62, 20031, 62, 18851, 8, 3268, 46805, 13, 198, 220, 220, 220, 17852, 5188, 13, 198, 18973, 21389, 17151, 62, 26947, 62, 57, 6217, 44, 62, 53, 62, 1137, 49, 62, 48, 8924, 8924, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 16876, 10029, 16820, 36529, 20832, 62, 6981, 62, 24706, 13, 10029, 16820, 796, 48483, 13, 23578, 5064, 13, 198, 220, 23578, 5064, 13, 628, 220, 42001, 10029, 16820, 13, 198, 220, 220, 220, 42099, 220, 48483, 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, 366, 5312, 1100, 1366, 198, 220, 220, 220, 220, 220, 19878, 21389, 42815, 62, 35, 40760, 31190, 13, 198, 220, 220, 220, 220, 220, 19878, 21389, 5870, 25171, 62, 52, 5760, 13, 198, 9, 23193, 1106, 9, 628, 220, 220, 220, 42099, 14719, 6089, 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, 366, 19430, 1366, 656, 6831, 198, 220, 220, 220, 220, 220, 19878, 21389, 22814, 47, 12203, 62, 4090, 53, 2751, 13, 198, 220, 220, 220, 220, 220, 16876, 1279, 35744, 2937, 29, 12, 52, 5760, 62, 38948, 10635, 37253, 13, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 1395, 62, 37682, 1137, 12, 10913, 44, 62, 20031, 62, 52, 5760, 10635, 37253, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19878, 21389, 357, 55, 62, 37682, 1137, 12, 10913, 44, 62, 20031, 62, 52, 5760, 8, 3268, 46805, 13, 198, 220, 220, 220, 220, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16876, 19704, 12, 50, 10526, 7397, 36529, 657, 13, 198, 18973, 21389, 20137, 62, 52, 5760, 62, 57, 6217, 44, 62, 53, 62, 1137, 49, 62, 48, 8924, 8924, 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, 198, 220, 220, 220, 220, 220, 220, 220, 19878, 21389, 36050, 62, 4090, 53, 2751, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 9, 23193, 1106, 9, 628, 220, 220, 220, 42099, 15731, 2767, 62, 45849, 13, 220, 220, 220, 220, 366, 22539, 477, 7498, 12784, 286, 7788, 5446, 10659, 422, 20613, 198, 220, 220, 220, 220, 220, 19878, 21389, 15731, 2767, 62, 3525, 7112, 1546, 1294, 2751, 39498, 62, 3483, 11163, 13, 198, 9, 23193, 1106, 9, 628, 220, 220, 220, 42099, 15731, 2767, 62, 3525, 18276, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 22539, 2060, 5726, 422, 6831, 198, 220, 220, 220, 220, 220, 19878, 21389, 15731, 2767, 62, 3525, 7112, 1546, 1294, 2751, 360, 20892, 4146, 62, 3483, 11163, 13, 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UDE zfoobar3. AT SELECTION-SCREEN OUTPUT. DATA lv_bar TYPE string. PERFORM foo CHANGING lv_bar.
[ 2200, 15490, 1976, 6513, 30973, 17, 13, 198, 198, 1268, 5097, 52, 7206, 1976, 6513, 30973, 18, 13, 198, 198, 1404, 33493, 2849, 12, 6173, 2200, 1677, 16289, 30076, 13, 198, 220, 42865, 300, 85, 62, 5657, 41876, 4731, 13, 198, 220, 19878, 21389, 22944, 5870, 15567, 2751, 300, 85, 62, 5657, 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 ]
report z_quicksort. data(numbers) = value int4_table( ( 4 ) ( 65 ) ( 2 ) ( -31 ) ( 0 ) ( 99 ) ( 2 ) ( 83 ) ( 782 ) ( 1 ) ). perform quicksort changing numbers. write `[`. loop at numbers assigning field-symbol(<numbers>). write <numbers>. endloop. write `]`. form quicksort changing numbers type int4_table. data(less) = value int4_table( ). data(equal) = value int4_table( ). data(greater) = value int4_table( ). if lines( numbers ) > 1. data(pivot) = numbers[ lines( numbers ) / 2 ]. loop at numbers assigning field-symbol(<number>). if <number> < pivot. append <number> to less. elseif <number> = pivot. append <number> to equal. elseif <number> > pivot. append <number> to greater. endif. endloop. perform quicksort changing less. perform quicksort changing greater. clear numbers. append lines of less to numbers. append lines of equal to numbers. append lines of greater to numbers. endif. endform.
[ 13116, 1976, 62, 421, 3378, 419, 13, 198, 198, 7890, 7, 77, 17024, 8, 796, 1988, 493, 19, 62, 11487, 7, 357, 604, 1267, 357, 6135, 1267, 357, 362, 1267, 357, 532, 3132, 1267, 357, 657, 1267, 357, 7388, 1267, 357, 362, 1267, 357, 9698, 1267, 357, 767, 6469, 1267, 357, 352, 1267, 6739, 198, 525, 687, 627, 3378, 419, 5609, 3146, 13, 198, 198, 13564, 4600, 58, 44646, 198, 26268, 379, 3146, 38875, 2214, 12, 1837, 23650, 7, 27, 77, 17024, 29, 737, 198, 220, 3551, 1279, 77, 17024, 28401, 198, 437, 26268, 13, 198, 13564, 4600, 60, 44646, 198, 198, 687, 627, 3378, 419, 5609, 3146, 2099, 493, 19, 62, 11487, 13, 198, 220, 1366, 7, 1203, 8, 796, 1988, 493, 19, 62, 11487, 7, 6739, 198, 220, 1366, 7, 40496, 8, 796, 1988, 493, 19, 62, 11487, 7, 6739, 198, 220, 1366, 7, 18223, 263, 8, 796, 1988, 493, 19, 62, 11487, 7, 6739, 628, 220, 611, 3951, 7, 3146, 1267, 1875, 352, 13, 198, 220, 220, 220, 1366, 7, 79, 45785, 8, 796, 3146, 58, 3951, 7, 3146, 1267, 1220, 362, 20740, 628, 220, 220, 220, 9052, 379, 3146, 38875, 2214, 12, 1837, 23650, 7, 27, 17618, 29, 737, 198, 220, 220, 220, 220, 220, 611, 1279, 17618, 29, 1279, 30355, 13, 198, 220, 220, 220, 220, 220, 220, 220, 24443, 1279, 17618, 29, 284, 1342, 13, 198, 220, 220, 220, 220, 220, 2073, 361, 1279, 17618, 29, 796, 30355, 13, 198, 220, 220, 220, 220, 220, 220, 220, 24443, 1279, 17618, 29, 284, 4961, 13, 198, 220, 220, 220, 220, 220, 2073, 361, 1279, 17618, 29, 1875, 30355, 13, 198, 220, 220, 220, 220, 220, 220, 220, 24443, 1279, 17618, 29, 284, 3744, 13, 198, 220, 220, 220, 220, 220, 45762, 13, 198, 220, 220, 220, 886, 26268, 13, 628, 220, 220, 220, 1620, 627, 3378, 419, 5609, 1342, 13, 198, 220, 220, 220, 1620, 627, 3378, 419, 5609, 3744, 13, 628, 220, 220, 220, 1598, 3146, 13, 198, 220, 220, 220, 24443, 3951, 286, 1342, 284, 3146, 13, 198, 220, 220, 220, 24443, 3951, 286, 4961, 284, 3146, 13, 198, 220, 220, 220, 24443, 3951, 286, 3744, 284, 3146, 13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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 ]
protected section.
[ 24326, 2665, 13 ]
[ 1, 1, 1 ]
CLASS cl_adt_rest_resource DEFINITION PUBLIC. PUBLIC SECTION. METHODS: delete IMPORTING request TYPE REF TO if_adt_rest_request response TYPE REF TO if_adt_rest_response context TYPE REF TO if_rest_context OPTIONAL, get IMPORTING request TYPE REF TO if_adt_rest_request response TYPE REF TO if_adt_rest_response context TYPE REF TO if_rest_context OPTIONAL, post IMPORTING request TYPE REF TO if_adt_rest_request response TYPE REF TO if_adt_rest_response context TYPE REF TO if_rest_context OPTIONAL. ENDCLASS. CLASS cl_adt_rest_resource IMPLEMENTATION. METHOD delete. RETURN. ENDMETHOD. METHOD get. RETURN. ENDMETHOD. METHOD post. RETURN. ENDMETHOD. ENDCLASS.
[ 31631, 537, 62, 324, 83, 62, 2118, 62, 31092, 5550, 20032, 17941, 44731, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 12233, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 220, 41876, 4526, 37, 5390, 611, 62, 324, 83, 62, 2118, 62, 25927, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2882, 41876, 4526, 37, 5390, 611, 62, 324, 83, 62, 2118, 62, 26209, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4732, 220, 41876, 4526, 37, 5390, 611, 62, 2118, 62, 22866, 39852, 2849, 1847, 11, 198, 220, 220, 220, 220, 220, 651, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 220, 41876, 4526, 37, 5390, 611, 62, 324, 83, 62, 2118, 62, 25927, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2882, 41876, 4526, 37, 5390, 611, 62, 324, 83, 62, 2118, 62, 26209, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4732, 220, 41876, 4526, 37, 5390, 611, 62, 2118, 62, 22866, 39852, 2849, 1847, 11, 198, 220, 220, 220, 220, 220, 1281, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 220, 41876, 4526, 37, 5390, 611, 62, 324, 83, 62, 2118, 62, 25927, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2882, 41876, 4526, 37, 5390, 611, 62, 324, 83, 62, 2118, 62, 26209, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4732, 220, 41876, 4526, 37, 5390, 611, 62, 2118, 62, 22866, 39852, 2849, 1847, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 537, 62, 324, 83, 62, 2118, 62, 31092, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 12233, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1281, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 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 ]
CLASS ltcl_git_porcelain DEFINITION DEFERRED. CLASS zcl_abapgit_git_porcelain DEFINITION LOCAL FRIENDS ltcl_git_porcelain. CLASS ltcl_git_porcelain DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL. PRIVATE SECTION. METHODS: setup, append IMPORTING iv_path TYPE string iv_name TYPE string, single_file FOR TESTING RAISING zcx_abapgit_exception, two_files_same_path FOR TESTING RAISING zcx_abapgit_exception, root_empty FOR TESTING RAISING zcx_abapgit_exception, namespaces FOR TESTING RAISING zcx_abapgit_exception, more_sub FOR TESTING RAISING zcx_abapgit_exception, sub FOR TESTING RAISING zcx_abapgit_exception. DATA: mt_expanded TYPE zif_abapgit_definitions=>ty_expanded_tt, mt_trees TYPE zcl_abapgit_git_porcelain=>ty_trees_tt. ENDCLASS. CLASS ltcl_git_porcelain IMPLEMENTATION. METHOD setup. CLEAR mt_expanded. CLEAR mt_trees. ENDMETHOD. METHOD append. FIELD-SYMBOLS: <ls_expanded> LIKE LINE OF mt_expanded. APPEND INITIAL LINE TO mt_expanded ASSIGNING <ls_expanded>. <ls_expanded>-path = iv_path. <ls_expanded>-name = iv_name. <ls_expanded>-sha1 = 'a'. <ls_expanded>-chmod = zif_abapgit_definitions=>c_chmod-file. ENDMETHOD. METHOD single_file. append( iv_path = '/' iv_name = 'foobar.txt' ). mt_trees = zcl_abapgit_git_porcelain=>build_trees( mt_expanded ). cl_abap_unit_assert=>assert_equals( act = lines( mt_trees ) exp = 1 ). ENDMETHOD. METHOD two_files_same_path. append( iv_path = '/' iv_name = 'foo.txt' ). append( iv_path = '/' iv_name = 'bar.txt' ). mt_trees = zcl_abapgit_git_porcelain=>build_trees( mt_expanded ). cl_abap_unit_assert=>assert_equals( act = lines( mt_trees ) exp = 1 ). ENDMETHOD. METHOD sub. append( iv_path = '/' iv_name = 'foo.txt' ). append( iv_path = '/sub/' iv_name = 'bar.txt' ). mt_trees = zcl_abapgit_git_porcelain=>build_trees( mt_expanded ). cl_abap_unit_assert=>assert_equals( act = lines( mt_trees ) exp = 2 ). ENDMETHOD. METHOD more_sub. FIELD-SYMBOLS: <ls_tree> LIKE LINE OF mt_trees. append( iv_path = '/src/foo_a/foo_a1/' iv_name = 'a1.txt' ). append( iv_path = '/src/foo_a/foo_a2/' iv_name = 'a2.txt' ). mt_trees = zcl_abapgit_git_porcelain=>build_trees( mt_expanded ). cl_abap_unit_assert=>assert_equals( act = lines( mt_trees ) exp = 5 ). LOOP AT mt_trees ASSIGNING <ls_tree>. cl_abap_unit_assert=>assert_not_initial( <ls_tree>-data ). ENDLOOP. ENDMETHOD. METHOD namespaces. FIELD-SYMBOLS: <ls_tree> LIKE LINE OF mt_trees. append( iv_path = '/src/#foo#a/#foo#a1/' iv_name = 'a1.txt' ). append( iv_path = '/src/#foo#a/#foo#a2/' iv_name = 'a2.txt' ). mt_trees = zcl_abapgit_git_porcelain=>build_trees( mt_expanded ). cl_abap_unit_assert=>assert_equals( act = lines( mt_trees ) exp = 5 ). LOOP AT mt_trees ASSIGNING <ls_tree>. cl_abap_unit_assert=>assert_not_initial( <ls_tree>-data ). ENDLOOP. ENDMETHOD. METHOD root_empty. append( iv_path = '/sub/' iv_name = 'bar.txt' ). mt_trees = zcl_abapgit_git_porcelain=>build_trees( mt_expanded ). * so 2 total trees are expected: '/' and '/sub/' cl_abap_unit_assert=>assert_equals( act = lines( mt_trees ) exp = 2 ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 83, 565, 62, 18300, 62, 1819, 5276, 391, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 18300, 62, 1819, 5276, 391, 5550, 20032, 17941, 37347, 1847, 48167, 1677, 5258, 300, 83, 565, 62, 18300, 62, 1819, 5276, 391, 13, 198, 198, 31631, 300, 83, 565, 62, 18300, 62, 1819, 5276, 391, 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, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 9058, 11, 198, 220, 220, 220, 220, 220, 24443, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 6978, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3672, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2060, 62, 7753, 7473, 43001, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 734, 62, 16624, 62, 31642, 62, 6978, 7473, 43001, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 6808, 62, 28920, 7473, 43001, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 3891, 43076, 7473, 43001, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 517, 62, 7266, 7473, 43001, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 850, 7473, 43001, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 42865, 25, 45079, 62, 11201, 12249, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 11201, 12249, 62, 926, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45079, 62, 83, 6037, 220, 220, 220, 41876, 1976, 565, 62, 397, 499, 18300, 62, 18300, 62, 1819, 5276, 391, 14804, 774, 62, 83, 6037, 62, 926, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 18300, 62, 1819, 5276, 391, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 9058, 13, 198, 220, 220, 220, 30301, 1503, 45079, 62, 11201, 12249, 13, 198, 220, 220, 220, 30301, 1503, 45079, 62, 83, 6037, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 24443, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 11201, 12249, 29, 34178, 48920, 3963, 45079, 62, 11201, 12249, 13, 628, 198, 220, 220, 220, 43504, 10619, 3268, 2043, 12576, 48920, 5390, 45079, 62, 11201, 12249, 24994, 3528, 15871, 1279, 7278, 62, 11201, 12249, 28401, 198, 220, 220, 220, 1279, 7278, 62, 11201, 12249, 29, 12, 6978, 220, 796, 21628, 62, 6978, 13, 198, 220, 220, 220, 1279, 7278, 62, 11201, 12249, 29, 12, 3672, 220, 796, 21628, 62, 3672, 13, 198, 220, 220, 220, 1279, 7278, 62, 11201, 12249, 29, 12, 26270, 16, 220, 796, 705, 64, 4458, 198, 220, 220, 220, 1279, 7278, 62, 11201, 12249, 29, 12, 354, 4666, 796, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 66, 62, 354, 4666, 12, 7753, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 2060, 62, 7753, 13, 628, 220, 220, 220, 24443, 7, 21628, 62, 6978, 796, 31051, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3672, 796, 705, 6513, 30973, 13, 14116, 6, 6739, 628, 220, 220, 220, 45079, 62, 83, 6037, 796, 1976, 565, 62, 397, 499, 18300, 62, 18300, 62, 1819, 5276, 391, 14804, 11249, 62, 83, 6037, 7, 45079, 62, 11201, 12249, 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, 719, 796, 3951, 7, 45079, 62, 83, 6037, 1267, 198, 220, 220, 220, 220, 220, 1033, 796, 352, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 734, 62, 16624, 62, 31642, 62, 6978, 13, 628, 220, 220, 220, 24443, 7, 21628, 62, 6978, 796, 31051, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3672, 796, 705, 21943, 13, 14116, 6, 6739, 628, 220, 220, 220, 24443, 7, 21628, 62, 6978, 796, 31051, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3672, 796, 705, 5657, 13, 14116, 6, 6739, 628, 220, 220, 220, 45079, 62, 83, 6037, 796, 1976, 565, 62, 397, 499, 18300, 62, 18300, 62, 1819, 5276, 391, 14804, 11249, 62, 83, 6037, 7, 45079, 62, 11201, 12249, 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, 719, 796, 3951, 7, 45079, 62, 83, 6037, 1267, 198, 220, 220, 220, 220, 220, 1033, 796, 352, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 850, 13, 628, 220, 220, 220, 24443, 7, 21628, 62, 6978, 796, 31051, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3672, 796, 705, 21943, 13, 14116, 6, 6739, 628, 220, 220, 220, 24443, 7, 21628, 62, 6978, 796, 31051, 7266, 14, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3672, 796, 705, 5657, 13, 14116, 6, 6739, 628, 220, 220, 220, 45079, 62, 83, 6037, 796, 1976, 565, 62, 397, 499, 18300, 62, 18300, 62, 1819, 5276, 391, 14804, 11249, 62, 83, 6037, 7, 45079, 62, 11201, 12249, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850 ]
[ 1, 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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ri_exit) TYPE REF TO zif_abapgit_exit. INTERFACES: zif_abapgit_exit. PROTECTED SECTION. PRIVATE SECTION. CLASS-DATA gi_exit TYPE REF TO zif_abapgit_exit . ENDCLASS. CLASS zcl_abapgit_exit IMPLEMENTATION. METHOD get_instance. IF gi_exit IS INITIAL. TRY. CREATE OBJECT gi_exit TYPE ('ZCL_ABAPGIT_USER_EXIT'). CATCH cx_sy_create_object_error ##NO_HANDLER. ENDTRY. ENDIF. CREATE OBJECT ri_exit TYPE zcl_abapgit_exit. ENDMETHOD. METHOD zif_abapgit_exit~allow_sap_objects. TRY. rv_allowed = gi_exit->allow_sap_objects( ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~change_local_host. TRY. gi_exit->change_local_host( CHANGING ct_hosts = ct_hosts ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~change_proxy_authentication. TRY. gi_exit->change_proxy_authentication( EXPORTING iv_repo_url = iv_repo_url CHANGING cv_proxy_authentication = cv_proxy_authentication ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~change_proxy_port. TRY. gi_exit->change_proxy_port( EXPORTING iv_repo_url = iv_repo_url CHANGING cv_proxy_port = cv_proxy_port ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~change_proxy_url. TRY. gi_exit->change_proxy_url( EXPORTING iv_repo_url = iv_repo_url CHANGING cv_proxy_url = cv_proxy_url ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~change_tadir. TRY. gi_exit->change_tadir( EXPORTING iv_package = iv_package ii_log = ii_log CHANGING ct_tadir = ct_tadir ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~create_http_client. TRY. ri_client = gi_exit->create_http_client( iv_url ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~custom_serialize_abap_clif. TRY. rt_source = gi_exit->custom_serialize_abap_clif( is_class_key ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~deserialize_postprocess. TRY. gi_exit->deserialize_postprocess( is_step = is_step ii_log = ii_log ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~get_ssl_id. TRY. rv_ssl_id = gi_exit->get_ssl_id( ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. IF rv_ssl_id IS INITIAL. rv_ssl_id = 'ANONYM'. ENDIF. ENDMETHOD. METHOD zif_abapgit_exit~http_client. TRY. gi_exit->http_client( iv_url = iv_url ii_client = ii_client ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 37023, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 651, 62, 39098, 30826, 4261, 15871, 26173, 8924, 7, 380, 62, 37023, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 37023, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 25, 1976, 361, 62, 397, 499, 18300, 62, 37023, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42715, 12, 26947, 308, 72, 62, 37023, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 37023, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 37023, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 651, 62, 39098, 13, 628, 220, 220, 220, 16876, 308, 72, 62, 37023, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 308, 72, 62, 37023, 41876, 19203, 57, 5097, 62, 6242, 2969, 38, 2043, 62, 29904, 62, 6369, 2043, 27691, 198, 220, 220, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 17953, 62, 15252, 62, 18224, 22492, 15285, 62, 39, 6981, 39878, 13, 198, 220, 220, 220, 220, 220, 23578, 40405, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 374, 72, 62, 37023, 41876, 1976, 565, 62, 397, 499, 18300, 62, 37023, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 37023, 93, 12154, 62, 82, 499, 62, 48205, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 85, 62, 40845, 796, 308, 72, 62, 37023, 3784, 12154, 62, 82, 499, 62, 48205, 7, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 5420, 62, 271, 62, 36733, 43213, 62, 1837, 62, 67, 2047, 62, 13345, 62, 47749, 62, 24396, 22492, 15285, 62, 39, 6981, 39878, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 37023, 93, 3803, 62, 12001, 62, 4774, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 308, 72, 62, 37023, 3784, 3803, 62, 12001, 62, 4774, 7, 5870, 15567, 2751, 269, 83, 62, 4774, 82, 796, 269, 83, 62, 4774, 82, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 5420, 62, 271, 62, 36733, 43213, 62, 1837, 62, 67, 2047, 62, 13345, 62, 47749, 62, 24396, 22492, 15285, 62, 39, 6981, 39878, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 37023, 93, 3803, 62, 36436, 62, 41299, 3299, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 308, 72, 62, 37023, 3784, 3803, 62, 36436, 62, 41299, 3299, 7, 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, 21628, 62, 260, 7501, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 260, 7501, 62, 6371, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 85, 62, 36436, 62, 41299, 3299, 796, 269, 85, 62, 36436, 62, 41299, 3299, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 5420, 62, 271, 62, 36733, 43213, 62, 1837, 62, 67, 2047, 62, 13345, 62, 47749, 62, 24396, 22492, 15285, 62, 39, 6981, 39878, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 37023, 93, 3803, 62, 36436, 62, 634, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 308, 72, 62, 37023, 3784, 3803, 62, 36436, 62, 634, 7, 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, 21628, 62, 260, 7501, 62, 6371, 220, 220, 796, 21628, 62, 260, 7501, 62, 6371, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 85, 62, 36436, 62, 634, 796, 269, 85, 62, 36436, 62, 634, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 5420, 62, 271, 62, 36733, 43213, 62, 1837, 62, 67, 2047, 62, 13345, 62, 47749, 62, 24396, 22492, 15285, 62, 39, 6981, 39878, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 37023, 93, 3803, 62, 36436, 62, 6371, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 308, 72, 62, 37023, 3784, 3803, 62, 36436, 62, 6371, 7, 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, 21628, 62, 260, 7501, 62, 6371, 220, 796, 21628, 62, 260, 7501, 62, 6371, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 85, 62, 36436, 62, 6371, 796, 269, 85, 62, 36436, 62, 6371, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 5420, 62, 271, 62, 36733, 43213, 62, 1837, 62, 67, 2047, 62, 13345, 62, 47749, 62, 24396, 22492, 15285, 62, 39, 6981, 39878, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 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 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_mdg_mm_helper_active DEFINITION PUBLIC INHERITING FROM zcl_mdg_mm_helper FINAL CREATE PRIVATE . PUBLIC SECTION. CLASS-METHODS destruct_instance IMPORTING !iv_material TYPE matnr . CLASS-METHODS destruct_instances . CLASS-METHODS get_instance IMPORTING !iv_material TYPE matnr RETURNING VALUE(ro_mm_data) TYPE REF TO zcl_mdg_mm_helper EXCEPTIONS instance_creation_failed entity_data_all_read_error app_context_get_failed appcontext_attribute_get_error unexpected_error model_get_failed . PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_s_instance, material TYPE matnr, instance TYPE REF TO zcl_mdg_mm_helper_active, END OF ty_s_instance . TYPES: ty_t_instance TYPE SORTED TABLE OF ty_s_instance WITH UNIQUE KEY material . CLASS-DATA gt_instances TYPE ty_t_instance . METHODS read_data_from_matnr IMPORTING !iv_matnr TYPE matnr . METHODS constructor IMPORTING !iv_matnr TYPE matnr EXCEPTIONS entity_data_all_read_error app_context_get_failed appcontext_attribute_get_error model_get_failed discard_instance unexpected_error . METHODS transfer_txtmi_instantiation . METHODS read_matchgmng_data IMPORTING !iv_matnr TYPE matnr !iv_crequest TYPE usmd_crequest OPTIONAL !it_data_entity_stage TYPE usmd_ts_data_entity OPTIONAL EXPORTING !et_matchgmng TYPE usmd_ts_data_entity . ENDCLASS. CLASS ZCL_MDG_MM_HELPER_ACTIVE IMPLEMENTATION. METHOD constructor. super->constructor( ). IF iv_matnr IS NOT INITIAL. CALL METHOD read_data_from_matnr EXPORTING iv_matnr = iv_matnr. ENDIF. ENDMETHOD. METHOD destruct_instance. DELETE gt_instances WHERE material EQ iv_material. ENDMETHOD. METHOD destruct_instances. CLEAR gt_instances. ENDMETHOD. METHOD get_instance. DATA: ls_instance TYPE ty_s_instance. FIELD-SYMBOLS: <ls_instance> TYPE ty_s_instance. READ TABLE gt_instances ASSIGNING <ls_instance> WITH TABLE KEY material = iv_material. IF sy-subrc EQ 0 AND <ls_instance>-instance IS NOT INITIAL. ro_mm_data = <ls_instance>-instance. ELSE. ls_instance-material = iv_material. CREATE OBJECT ls_instance-instance TYPE zcl_mdg_mm_helper_active EXPORTING iv_matnr = iv_material EXCEPTIONS entity_data_all_read_error = 1 app_context_get_failed = 2 appcontext_attribute_get_error = 3 model_get_failed = 4 discard_instance = 5 unexpected_error = 6 OTHERS = 7. IF sy-subrc <> 0. CASE sy-subrc. WHEN 1. MESSAGE ID zcl_mdg_general_functions=>gc_msg_class_dm_bp TYPE 'X' NUMBER 001 RAISING entity_data_all_read_error. WHEN 2. MESSAGE ID zcl_mdg_general_functions=>gc_msg_class_br_bp TYPE 'X' NUMBER 004 RAISING app_context_get_failed. WHEN 3. MESSAGE ID zcl_mdg_general_functions=>gc_msg_class_br_bp TYPE 'X' NUMBER 004 RAISING app_context_get_failed . WHEN 4. MESSAGE ID zcl_mdg_general_functions=>gc_msg_class_dm_gen TYPE 'X' NUMBER 001 RAISING model_get_failed. WHEN 5. CALL METHOD destruct_instance EXPORTING iv_material = iv_material. RETURN. WHEN 6. MESSAGE ID zcl_mdg_general_functions=>gc_msg_class_dm_gen TYPE 'X' NUMBER 000 RAISING unexpected_error. WHEN OTHERS. MESSAGE ID zcl_mdg_general_functions=>gc_msg_class_dm_gen TYPE 'X' NUMBER 000 RAISING unexpected_error. ENDCASE. ENDIF. INSERT ls_instance INTO TABLE gt_instances. ro_mm_data = ls_instance-instance. ENDIF. IF ro_mm_data IS NOT BOUND. MESSAGE ID zcl_mdg_general_functions=>gc_msg_class_dm_gen TYPE 'X' NUMBER 002 RAISING instance_creation_failed. ENDIF. ENDMETHOD. METHOD read_data_from_matnr. CONSTANTS: c_prefix TYPE string VALUE 'GT_', c_suffix_text TYPE string VALUE 'TXT'. DATA: lt_data_entity TYPE usmd_ts_data_entity, lt_data_entity_temp TYPE usmd_ts_data_entity, lt_message TYPE usmd_t_message, lv_entity_tabname TYPE seocpdname, lt_material_selection TYPE usmd_ts_sel, ls_material_selection TYPE usmd_s_sel, lr_entity TYPE REF TO data, lv_fieldname TYPE usmd_fieldname, lv_active TYPE abap_bool, lt_matchgmng TYPE usmd_ts_data_entity. FIELD-SYMBOLS: <ls_data_entity> TYPE usmd_sx_data_entity, <lt_gt_entity> TYPE SORTED TABLE, <ls_entity> TYPE any, <lt_data> TYPE ANY TABLE, <ls_entity_prop_ext> TYPE usmd_s_entity_prop_ext. IF iv_matnr IS INITIAL. MESSAGE ID zcl_mdg_general_functions=>gc_msg_class_dm_gen TYPE 'X' NUMBER 000. "#EC CI_USE_WANTED ENDIF. IF iv_matnr CA '$'. lv_active = abap_false. ELSE. lv_active = abap_true. ENDIF. IF sy-subrc = 0 AND iv_matnr IS NOT INITIAL. ls_material_selection-fieldname = if_mdg_bs_mat_gen_c=>gc_fieldname_material. ls_material_selection-sign = 'I'. ls_material_selection-option = 'EQ'. ls_material_selection-low = iv_matnr. INSERT ls_material_selection INTO TABLE lt_material_selection. ENDIF. IF lt_material_selection IS NOT INITIAL. * Look for material entity in active data, if an existent material is changed (business activity = MAT2) * This call triggers the derivations BAdI and will cause mt_mm_pp_material to be filled afterwards LOOP AT go_model->if_usmd_model_metadata_ext~dt_entity_prop ASSIGNING <ls_entity_prop_ext> WHERE usage_type = 1. "#EC CI_SORTSEQ - accessing SAP default content in MDG lv_fieldname = <ls_entity_prop_ext>-usmd_entity. CALL METHOD go_model->read_entity_data_all EXPORTING i_fieldname = lv_fieldname it_sel = lt_material_selection if_active = lv_active IMPORTING et_message = lt_message et_data_entity = lt_data_entity_temp. INSERT LINES OF lt_data_entity_temp INTO TABLE lt_data_entity. CLEAR: lv_fieldname. IF lt_message IS NOT INITIAL. RETURN. ENDIF. ENDLOOP. " add MATCHGMNG data CALL METHOD read_matchgmng_data EXPORTING iv_matnr = iv_matnr it_data_entity_stage = lt_data_entity IMPORTING et_matchgmng = lt_matchgmng. INSERT LINES OF lt_matchgmng INTO TABLE lt_data_entity. ENDIF. * Transform untyped to typed data LOOP AT lt_data_entity ASSIGNING <ls_data_entity>. CLEAR: lv_entity_tabname, lr_entity. UNASSIGN: <ls_entity>, <lt_gt_entity>. * Construct export table name and assign it to field symbol (it's used to fill the related mt) CASE <ls_data_entity>-struct. WHEN if_usmd_model_ext=>gc_struct_key_attr. IF <ls_data_entity>-usmd_entity_cont IS INITIAL. CONCATENATE c_prefix <ls_data_entity>-usmd_entity INTO lv_entity_tabname. ELSE. CONCATENATE c_prefix <ls_data_entity>-usmd_entity_cont INTO lv_entity_tabname. ENDIF. WHEN if_usmd_model_ext=>gc_struct_key_txt_langu. IF <ls_data_entity>-usmd_entity_cont IS INITIAL. IF <ls_data_entity>-usmd_entity = zcl_mdg_mm_helper=>if_mdg_bs_mat_gen_c~gc_entity_material. CONCATENATE c_prefix zcl_mdg_mm_helper=>cs_entities-material_txt INTO lv_entity_tabname. ELSE. CONCATENATE c_prefix <ls_data_entity>-usmd_entity c_suffix_text INTO lv_entity_tabname. ENDIF. ELSE. CONCATENATE c_prefix <ls_data_entity>-usmd_entity_cont c_suffix_text INTO lv_entity_tabname. ENDIF. ENDCASE. * write data to gt ASSIGN (lv_entity_tabname) TO <lt_gt_entity>. IF <lt_gt_entity> IS NOT ASSIGNED. "#EC CI_SUBRC MESSAGE ID zcl_mdg_general_functions=>gc_msg_class_dm_gen TYPE 'X' NUMBER 000. "#EC CI_USE_WANTED ENDIF. CREATE DATA lr_entity LIKE LINE OF <lt_gt_entity>. ASSIGN lr_entity->* TO <ls_entity>. IF <ls_entity> IS NOT ASSIGNED. MESSAGE ID zcl_mdg_general_functions=>gc_msg_class_dm_gen TYPE 'X' NUMBER 000. "#EC CI_USE_WANTED ENDIF. CLEAR: <ls_entity>, <lt_gt_entity>. ASSIGN <ls_data_entity>-r_t_data->* TO <lt_data>. IF sy-subrc <> 0. MESSAGE ID zcl_mdg_general_functions=>gc_msg_class_dm_gen TYPE 'X' NUMBER 000. "#EC CI_USE_WANTED ENDIF. IF <lt_data> IS ASSIGNED. MOVE-CORRESPONDING <lt_data> TO <lt_gt_entity>. ENDIF. ENDLOOP. CALL METHOD transfer_txtmi_instantiation. ENDMETHOD. METHOD read_matchgmng_data. DATA: lr_data TYPE REF TO data, ls_matchgmng TYPE /mdgmm/_s_mm_pp_matchgmng, ls_type1_entity_data TYPE usmd_sx_data_entity, lt_aeoi_tmp TYPE SORTED TABLE OF aeoi WITH UNIQUE KEY aennr aetyp objkt, lt_aeoi TYPE TABLE OF aeoi. FIELD-SYMBOLS: <ls_data_entity> TYPE usmd_sx_data_entity, <ls_aeoi> TYPE aeoi, <lt_data> TYPE zif_mdg_mm_datatypes=>gty_t_matchgmng. CLEAR: et_matchgmng. * material change management data CALL METHOD go_matchgmng_api->read_chgmng EXPORTING iv_matnr = iv_matnr IMPORTING et_aeoi = lt_aeoi_tmp. LOOP AT lt_aeoi_tmp ASSIGNING <ls_aeoi>. INSERT <ls_aeoi> INTO TABLE lt_aeoi. ENDLOOP. SORT lt_aeoi DESCENDING BY revlv. IF lt_aeoi IS NOT INITIAL. " check if an entry for MATCHGMNG already is staging area READ TABLE it_data_entity_stage WITH KEY usmd_entity = 'MATCHGMNG' ASSIGNING <ls_data_entity>. IF sy-subrc = 0 AND <ls_data_entity> IS ASSIGNED. " entry exists -> modify data for this entry ASSIGN <ls_data_entity>-r_t_data->* TO <lt_data>. LOOP AT lt_aeoi ASSIGNING <ls_aeoi>. ls_matchgmng-material = iv_matnr. ls_matchgmng-matchgmng = iv_crequest. ls_matchgmng-ecochgmng = <ls_aeoi>-aennr. ls_matchgmng-revchgmng = <ls_aeoi>-revlv. INSERT ls_matchgmng INTO TABLE <lt_data>. ENDLOOP. " no entry exists -> it has to be created from scratch ELSE. CALL METHOD go_model->create_data_reference EXPORTING i_fieldname = 'MATCHGMNG' i_struct = if_usmd_model=>gc_struct_key_attr i_tabtype = if_usmd_model=>gc_tabtype_sorted IMPORTING er_data = lr_data. ASSIGN lr_data->* TO <lt_data>. LOOP AT lt_aeoi ASSIGNING <ls_aeoi>. CLEAR ls_matchgmng. ls_matchgmng-material = iv_matnr. ls_matchgmng-matchgmng = iv_crequest. ls_matchgmng-ecochgmng = <ls_aeoi>-aennr. ls_matchgmng-revchgmng = <ls_aeoi>-revlv. INSERT ls_matchgmng INTO TABLE <lt_data>. ENDLOOP. ls_type1_entity_data-usmd_entity = 'MATCHGMNG'. ls_type1_entity_data-struct = if_usmd_model=>gc_struct_key_attr. ls_type1_entity_data-r_t_data = lr_data. INSERT ls_type1_entity_data INTO TABLE et_matchgmng. ENDIF. ENDIF. ENDMETHOD. METHOD transfer_txtmi_instantiation. FIELD-SYMBOLS: <ls_material> TYPE /mdgmm/_s_mm_pp_material, <ls_mattxt> TYPE /mdgmm/_st_mm_pp_material. LOOP AT gt_material ASSIGNING <ls_material>. IF <ls_material>-txtmi IS INITIAL. READ TABLE gt_mattxt ASSIGNING <ls_mattxt> WITH TABLE KEY material = <ls_material>-material langu = sy-langu. IF sy-subrc IS INITIAL. <ls_material>-txtmi = <ls_mattxt>-txtmi. ENDIF. ENDIF. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 9132, 70, 62, 3020, 62, 2978, 525, 62, 5275, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 9132, 70, 62, 3020, 62, 2978, 525, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 15256, 62, 39098, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 33665, 41876, 2603, 48624, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 15256, 62, 8625, 1817, 764, 198, 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, 33665, 220, 220, 220, 220, 220, 41876, 2603, 48624, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 3020, 62, 7890, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 9132, 70, 62, 3020, 62, 2978, 525, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 4554, 62, 38793, 62, 47904, 198, 220, 220, 220, 220, 220, 220, 220, 9312, 62, 7890, 62, 439, 62, 961, 62, 18224, 198, 220, 220, 220, 220, 220, 220, 220, 598, 62, 22866, 62, 1136, 62, 47904, 198, 220, 220, 220, 220, 220, 220, 220, 598, 22866, 62, 42348, 62, 1136, 62, 18224, 198, 220, 220, 220, 220, 220, 220, 220, 10059, 62, 18224, 198, 220, 220, 220, 220, 220, 220, 220, 2746, 62, 1136, 62, 47904, 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, 39098, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2587, 41876, 2603, 48624, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4554, 41876, 4526, 37, 5390, 1976, 565, 62, 9132, 70, 62, 3020, 62, 2978, 525, 62, 5275, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 82, 62, 39098, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 83, 62, 39098, 41876, 311, 9863, 1961, 43679, 3963, 1259, 62, 82, 62, 39098, 13315, 4725, 33866, 8924, 35374, 2587, 764, 628, 220, 220, 220, 42715, 12, 26947, 308, 83, 62, 8625, 1817, 41876, 1259, 62, 83, 62, 39098, 764, 628, 220, 220, 220, 337, 36252, 50, 1100, 62, 7890, 62, 6738, 62, 6759, 48624, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6759, 48624, 41876, 2603, 48624, 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, 452, 62, 6759, 48624, 41876, 2603, 48624, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 9312, 62, 7890, 62, 439, 62, 961, 62, 18224, 198, 220, 220, 220, 220, 220, 220, 220, 598, 62, 22866, 62, 1136, 62, 47904, 198, 220, 220, 220, 220, 220, 220, 220, 598, 22866, 62, 42348, 62, 1136, 62, 18224, 198, 220, 220, 220, 220, 220, 220, 220, 2746, 62, 1136, 62, 47904, 198, 220, 220, 220, 220, 220, 220, 220, 27537, 62, 39098, 198, 220, 220, 220, 220, 220, 220, 220, 10059, 62, 18224, 764, 198, 220, 220, 220, 337, 36252, 50, 4351, 62, 14116, 11632, 62, 8625, 415, 3920, 764, 198, 220, 220, 220, 337, 36252, 50, 1100, 62, 15699, 39870, 782, 62, 7890, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6759, 48624, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2603, 48624, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 7513, 6138, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 514, 9132, 62, 7513, 6138, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 7890, 62, 26858, 62, 14247, 41876, 514, 9132, 62, 912, 62, 7890, 62, 26858, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 316, 62, 15699, 39870, 782, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 514, 9132, 62, 912, 62, 7890, 62, 26858, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 12740, 38, 62, 12038, 62, 39, 3698, 18973, 62, 10659, 9306, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 628, 220, 220, 220, 16876, 21628, 62, 6759, 48624, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 42815, 337, 36252, 1100, 62, 7890, 62, 6738, 62, 6759, 48624, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 6759, 48624, 796, 21628, 62, 6759, 48624, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 15256, 62, 39098, 13, 628, 220, 220, 220, 5550, 2538, 9328, 308, 83, 62, 8625, 1817, 33411, 2587, 36529, 21628, 62, 33665, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 15256, 62, 8625, 1817, 13, 198, 220, 220, 220, 30301, 1503, 308, 83, 62, 8625, 1817, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 39098, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 43979, 62, 39098, 41876, 1259, 62, 82, 62, 39098, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 39098, 29, 41876, 1259, 62, 82, 62, 39098, 13, 628, 220, 220, 220, 20832, 43679, 308, 83, 62, 8625, 1817, 24994, 3528, 15871, 1279, 7278, 62, 39098, 29, 13315, 43679, 35374, 2587, 796, 21628, 62, 33665, 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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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 ]
class zcl_abap_behv_excep_handler definition inheriting from cl_abap_behv public final create public . public section. protected section. private section. endclass. class zcl_abap_behv_excep_handler implementation. endclass.
[ 4871, 1976, 565, 62, 397, 499, 62, 20709, 85, 62, 1069, 344, 79, 62, 30281, 6770, 10639, 1780, 422, 537, 62, 397, 499, 62, 20709, 85, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 1171, 764, 628, 220, 1171, 2665, 13, 198, 220, 6861, 2665, 13, 198, 220, 2839, 2665, 13, 198, 437, 4871, 13, 628, 198, 198, 4871, 1976, 565, 62, 397, 499, 62, 20709, 85, 62, 1069, 344, 79, 62, 30281, 7822, 13, 198, 437, 4871, 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 ]
interface ZIF_BTCI_SUBMIT_VIA_SA38 public . METHODS set_selection_screen IMPORTING !dynnr TYPE sydynnr RETURNING VALUE(fluent) TYPE REF TO zif_btci_submit_via_sa38 . METHODS set_parameters IMPORTING !name TYPE csequence !value TYPE csequence RETURNING VALUE(fluent) TYPE REF TO zif_btci_submit_via_sa38 . METHODS set_select_options IMPORTING !name TYPE csequence !value TYPE STANDARD TABLE RETURNING VALUE(fluent) TYPE REF TO zif_btci_submit_via_sa38 . METHODS execute_function IMPORTING !fcode TYPE csequence RETURNING VALUE(fluent) TYPE REF TO zif_btci_submit_via_sa38 . METHODS finalize RETURNING VALUE(transaction) TYPE REF TO zif_btci_transaction . endinterface.
[ 39994, 1168, 5064, 62, 35964, 40, 62, 50, 10526, 36393, 62, 53, 3539, 62, 4090, 2548, 198, 220, 1171, 764, 628, 220, 220, 220, 337, 36252, 50, 900, 62, 49283, 62, 9612, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 67, 2047, 48624, 220, 220, 220, 220, 220, 220, 220, 41876, 827, 67, 2047, 48624, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 69, 28216, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 18347, 979, 62, 46002, 62, 8869, 62, 11400, 2548, 764, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 17143, 7307, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 43167, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 8367, 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, 69, 28216, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 18347, 979, 62, 46002, 62, 8869, 62, 11400, 2548, 764, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 19738, 62, 25811, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 43167, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 8367, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 69, 28216, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 18347, 979, 62, 46002, 62, 8869, 62, 11400, 2548, 764, 198, 220, 220, 220, 337, 36252, 50, 12260, 62, 8818, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 69, 8189, 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, 69, 28216, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 18347, 979, 62, 46002, 62, 8869, 62, 11400, 2548, 764, 198, 220, 220, 220, 337, 36252, 50, 2457, 1096, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 7645, 2673, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 18347, 979, 62, 7645, 2673, 764, 198, 437, 39994, 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 ]
class zcl_rap_bo_ctr_test_nav_type definition public final create public . public section. interfaces zif_rap_bo_ctr_tst_nav_typ_frw . methods constructor importing property_name type string. protected section. private section. data: property_name type string, navigate_to_bdef type abap_bool, navigate_to_behv_impl type abap_bool, naviagate_to_cds type abap_bool. endclass. class zcl_rap_bo_ctr_test_nav_type implementation. method constructor. me->property_name = property_name. endmethod. method zif_rap_bo_ctr_tst_nav_typ_frw~is_navigation_to_cds. is_navigation_to_cds = me->naviagate_to_cds. endmethod. method zif_rap_bo_ctr_tst_nav_typ_frw~is_navigation_to_bdef. is_navigation_to_bdef = me->navigate_to_bdef. endmethod. method zif_rap_bo_ctr_tst_nav_typ_frw~is_navigation_to_behv_impl. is_navigation_to_behv_impl = me->navigate_to_behv_impl. endmethod. method zif_rap_bo_ctr_test_navig_type~navigate_to_bdef. me->navigate_to_bdef = abap_true. endmethod. method zif_rap_bo_ctr_test_navig_type~navigate_to_behavior_impl. me->navigate_to_behv_impl = abap_true. endmethod. method zif_rap_bo_ctr_test_navig_type~navigate_to_cds. me->naviagate_to_cds = abap_true. endmethod. method zif_rap_bo_ctr_tst_nav_typ_frw~get_property_name. property_name = me->property_name. endmethod. endclass.
[ 4871, 1976, 565, 62, 2416, 62, 2127, 62, 24087, 62, 9288, 62, 28341, 62, 4906, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 1171, 764, 628, 220, 1171, 2665, 13, 628, 220, 220, 220, 20314, 1976, 361, 62, 2416, 62, 2127, 62, 24087, 62, 83, 301, 62, 28341, 62, 28004, 62, 8310, 86, 764, 198, 220, 220, 220, 5050, 23772, 198, 220, 220, 220, 33332, 3119, 62, 3672, 2099, 4731, 13, 198, 220, 6861, 2665, 13, 198, 220, 2839, 2665, 13, 198, 220, 220, 220, 1366, 25, 3119, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16500, 62, 1462, 62, 65, 4299, 220, 220, 220, 220, 220, 2099, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16500, 62, 1462, 62, 20709, 85, 62, 23928, 2099, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6812, 72, 37861, 62, 1462, 62, 66, 9310, 220, 220, 220, 220, 220, 2099, 450, 499, 62, 30388, 13, 198, 198, 437, 4871, 13, 628, 198, 198, 4871, 1976, 565, 62, 2416, 62, 2127, 62, 24087, 62, 9288, 62, 28341, 62, 4906, 7822, 13, 628, 2446, 23772, 13, 628, 220, 220, 220, 502, 3784, 26745, 62, 3672, 796, 3119, 62, 3672, 13, 628, 886, 24396, 13, 628, 198, 220, 2446, 1976, 361, 62, 2416, 62, 2127, 62, 24087, 62, 83, 301, 62, 28341, 62, 28004, 62, 8310, 86, 93, 271, 62, 28341, 7065, 62, 1462, 62, 66, 9310, 13, 628, 220, 220, 220, 318, 62, 28341, 7065, 62, 1462, 62, 66, 9310, 796, 502, 3784, 77, 15820, 37861, 62, 1462, 62, 66, 9310, 13, 628, 220, 886, 24396, 13, 628, 198, 220, 2446, 1976, 361, 62, 2416, 62, 2127, 62, 24087, 62, 83, 301, 62, 28341, 62, 28004, 62, 8310, 86, 93, 271, 62, 28341, 7065, 62, 1462, 62, 65, 4299, 13, 628, 220, 220, 220, 318, 62, 28341, 7065, 62, 1462, 62, 65, 4299, 796, 502, 3784, 28341, 10055, 62, 1462, 62, 65, 4299, 13, 628, 220, 886, 24396, 13, 628, 198, 220, 2446, 1976, 361, 62, 2416, 62, 2127, 62, 24087, 62, 83, 301, 62, 28341, 62, 28004, 62, 8310, 86, 93, 271, 62, 28341, 7065, 62, 1462, 62, 20709, 85, 62, 23928, 13, 628, 220, 220, 220, 318, 62, 28341, 7065, 62, 1462, 62, 20709, 85, 62, 23928, 796, 502, 3784, 28341, 10055, 62, 1462, 62, 20709, 85, 62, 23928, 13, 628, 220, 886, 24396, 13, 628, 220, 2446, 1976, 361, 62, 2416, 62, 2127, 62, 24087, 62, 9288, 62, 28341, 328, 62, 4906, 93, 28341, 10055, 62, 1462, 62, 65, 4299, 13, 628, 220, 220, 220, 502, 3784, 28341, 10055, 62, 1462, 62, 65, 4299, 796, 450, 499, 62, 7942, 13, 628, 220, 886, 24396, 13, 628, 220, 2446, 1976, 361, 62, 2416, 62, 2127, 62, 24087, 62, 9288, 62, 28341, 328, 62, 4906, 93, 28341, 10055, 62, 1462, 62, 46571, 62, 23928, 13, 628, 220, 220, 220, 502, 3784, 28341, 10055, 62, 1462, 62, 20709, 85, 62, 23928, 796, 450, 499, 62, 7942, 13, 628, 220, 886, 24396, 13, 628, 220, 2446, 1976, 361, 62, 2416, 62, 2127, 62, 24087, 62, 9288, 62, 28341, 328, 62, 4906, 93, 28341, 10055, 62, 1462, 62, 66, 9310, 13, 628, 220, 220, 220, 502, 3784, 77, 15820, 37861, 62, 1462, 62, 66, 9310, 796, 450, 499, 62, 7942, 13, 628, 220, 886, 24396, 13, 628, 220, 2446, 1976, 361, 62, 2416, 62, 2127, 62, 24087, 62, 83, 301, 62, 28341, 62, 28004, 62, 8310, 86, 93, 1136, 62, 26745, 62, 3672, 13, 628, 220, 220, 220, 3119, 62, 3672, 796, 502, 3784, 26745, 62, 3672, 13, 628, 220, 886, 24396, 13, 198, 198, 437, 4871, 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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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 ]
"! <h1>API for Updating a Travel</h1> "! "! <p> "! Function module to update a single Travel instance with the possibility to update related Bookings and "! Booking Supplements in the same call. "! </p> "! "! <p> "! For an operation only on a Booking or Booking Supplement the Travel Data Change Flag structure still must be applied. "! It then contains only the <em>travel_id</em> and all flags set to <em>false</em> respectively left <em>initial</em>. "! </p> "! "! "! @parameter is_travel | Travel Data "! @parameter is_travelx | Travel Data Change Flags "! @parameter it_booking | Table of predefined Booking Key <em>booking_id</em> and Booking Data "! @parameter it_bookingx | Change Flag Table of Booking Data with predefined Booking Key <em>booking_id</em> "! @parameter it_booking_supplement | Table of predefined Booking Supplement Key <em>booking_id</em>, <em>booking_supplement_id</em> and Booking Supplement Data "! @parameter it_booking_supplementx | Change Flag Table of Booking Supplement Data with predefined Booking Supplement Key <em>booking_id</em>, <em>booking_supplement_id</em> "! @parameter es_travel | Evaluated Travel Data like /DMO/TRAVEL06 "! @parameter et_booking | Table of evaluated Bookings like /DMO/BOOKING06 "! @parameter et_booking_supplement | Table of evaluated Booking Supplements like /DMO/BOOK_SUP_06 "! @parameter et_messages | Table of occurred messages "! FUNCTION /DMO/FLIGHT_TRAVEL_UPDATE06. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" REFERENCE(IS_TRAVEL) TYPE /DMO/IF_FLIGHT_LEGACY06=>TS_TRAVEL_IN *" REFERENCE(IS_TRAVELX) TYPE /DMO/IF_FLIGHT_LEGACY06=>TS_TRAVEL_INX *" REFERENCE(IT_BOOKING) TYPE /DMO/IF_FLIGHT_LEGACY06=>TT_BOOKING_IN *" OPTIONAL *" REFERENCE(IT_BOOKINGX) TYPE *" /DMO/IF_FLIGHT_LEGACY06=>TT_BOOKING_INX OPTIONAL *" REFERENCE(IT_BOOKING_SUPPLEMENT) TYPE *" /DMO/IF_FLIGHT_LEGACY06=>TT_BOOKING_SUPPLEMENT_IN OPTIONAL *" REFERENCE(IT_BOOKING_SUPPLEMENTX) TYPE *" /DMO/IF_FLIGHT_LEGACY06=>TT_BOOKING_SUPPLEMENT_INX OPTIONAL *" EXPORTING *" REFERENCE(ES_TRAVEL) TYPE /DMO/TRAVEL06 *" REFERENCE(ET_BOOKING) TYPE /DMO/IF_FLIGHT_LEGACY06=>TT_BOOKING *" REFERENCE(ET_BOOKING_SUPPLEMENT) TYPE *" /DMO/IF_FLIGHT_LEGACY06=>TT_BOOKING_SUPPLEMENT *" REFERENCE(ET_MESSAGES) TYPE /DMO/IF_FLIGHT_LEGACY06=>TT_MESSAGE *"---------------------------------------------------------------------- CLEAR es_travel. CLEAR et_booking. CLEAR et_booking_supplement. CLEAR et_messages. /dmo/cl_flight_legacy06=>get_instance( )->update_travel( EXPORTING is_travel = is_travel it_booking = it_booking it_booking_supplement = it_booking_supplement is_travelx = is_travelx it_bookingx = it_bookingx it_booking_supplementx = it_booking_supplementx IMPORTING es_travel = es_travel et_booking = et_booking et_booking_supplement = et_booking_supplement et_messages = DATA(lt_messages) ). /dmo/cl_flight_legacy06=>get_instance( )->convert_messages( EXPORTING it_messages = lt_messages IMPORTING et_messages = et_messages ). ENDFUNCTION.
[ 40484, 1279, 71, 16, 29, 17614, 329, 3205, 38734, 257, 13524, 3556, 71, 16, 29, 198, 40484, 198, 40484, 1279, 79, 29, 198, 40484, 15553, 8265, 284, 4296, 257, 2060, 13524, 4554, 351, 262, 5885, 284, 4296, 3519, 4897, 654, 290, 198, 40484, 4897, 278, 8105, 3639, 287, 262, 976, 869, 13, 198, 40484, 7359, 79, 29, 198, 40484, 198, 40484, 1279, 79, 29, 198, 40484, 1114, 281, 4905, 691, 319, 257, 4897, 278, 393, 4897, 278, 23150, 262, 13524, 6060, 9794, 19762, 4645, 991, 1276, 307, 5625, 13, 198, 40484, 632, 788, 4909, 691, 262, 1279, 368, 29, 35927, 62, 312, 3556, 368, 29, 290, 477, 9701, 900, 284, 1279, 368, 29, 9562, 3556, 368, 29, 8148, 1364, 1279, 368, 29, 36733, 3556, 368, 28401, 198, 40484, 7359, 79, 29, 198, 40484, 198, 40484, 198, 40484, 2488, 17143, 2357, 318, 62, 35927, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 13524, 6060, 198, 40484, 2488, 17143, 2357, 318, 62, 35927, 87, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 13524, 6060, 9794, 34771, 198, 40484, 2488, 17143, 2357, 340, 62, 2070, 278, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 8655, 286, 2747, 18156, 4897, 278, 7383, 1279, 368, 29, 2070, 278, 62, 312, 3556, 368, 29, 290, 4897, 278, 6060, 198, 40484, 2488, 17143, 2357, 340, 62, 2070, 278, 87, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 9794, 19762, 8655, 286, 4897, 278, 6060, 351, 2747, 18156, 4897, 278, 7383, 1279, 368, 29, 2070, 278, 62, 312, 3556, 368, 29, 198, 40484, 2488, 17143, 2357, 340, 62, 2070, 278, 62, 18608, 1732, 220, 930, 8655, 286, 2747, 18156, 4897, 278, 23150, 7383, 1279, 368, 29, 2070, 278, 62, 312, 3556, 368, 22330, 1279, 368, 29, 2070, 278, 62, 18608, 1732, 62, 312, 3556, 368, 29, 290, 4897, 278, 23150, 6060, 198, 40484, 2488, 17143, 2357, 340, 62, 2070, 278, 62, 18608, 1732, 87, 930, 9794, 19762, 8655, 286, 4897, 278, 23150, 6060, 351, 2747, 18156, 4897, 278, 23150, 7383, 1279, 368, 29, 2070, 278, 62, 312, 3556, 368, 22330, 1279, 368, 29, 2070, 278, 62, 18608, 1732, 62, 312, 3556, 368, 29, 198, 40484, 2488, 17143, 2357, 1658, 62, 35927, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 26439, 6605, 13524, 6060, 588, 1220, 35, 11770, 14, 51, 3861, 18697, 3312, 198, 40484, 2488, 17143, 2357, 2123, 62, 2070, 278, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 8655, 286, 16726, 4897, 654, 588, 1220, 35, 11770, 14, 39453, 2751, 3312, 198, 40484, 2488, 17143, 2357, 2123, 62, 2070, 278, 62, 18608, 1732, 220, 930, 8655, 286, 16726, 4897, 278, 8105, 3639, 588, 1220, 35, 11770, 14, 39453, 62, 40331, 62, 3312, 198, 40484, 2488, 17143, 2357, 2123, 62, 37348, 1095, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 8655, 286, 5091, 6218, 198, 40484, 198, 42296, 4177, 2849, 1220, 35, 11770, 14, 3697, 9947, 62, 51, 3861, 18697, 62, 16977, 3312, 13, 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, 4526, 24302, 18310, 7, 1797, 62, 51, 3861, 18697, 8, 41876, 220, 1220, 35, 11770, 14, 5064, 62, 3697, 9947, 62, 2538, 38, 43300, 3312, 14804, 4694, 62, 51, 3861, 18697, 62, 1268, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 1797, 62, 51, 3861, 18697, 55, 8, 41876, 220, 1220, 35, 11770, 14, 5064, 62, 3697, 9947, 62, 2538, 38, 43300, 3312, 14804, 4694, 62, 51, 3861, 18697, 62, 1268, 55, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 2043, 62, 39453, 2751, 8, 41876, 220, 1220, 35, 11770, 14, 5064, 62, 3697, 9947, 62, 2538, 38, 43300, 3312, 14804, 15751, 62, 39453, 2751, 62, 1268, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 2043, 62, 39453, 2751, 55, 8, 41876, 198, 9, 1, 220, 220, 220, 220, 220, 220, 220, 1220, 35, 11770, 14, 5064, 62, 3697, 9947, 62, 2538, 38, 43300, 3312, 14804, 15751, 62, 39453, 2751, 62, 1268, 55, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 2043, 62, 39453, 2751, 62, 40331, 16437, 10979, 8, 41876, 198, 9, 1, 220, 220, 220, 220, 220, 220, 220, 1220, 35, 11770, 14, 5064, 62, 3697, 9947, 62, 2538, 38, 43300, 3312, 14804, 15751, 62, 39453, 2751, 62, 40331, 16437, 10979, 62, 1268, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 2043, 62, 39453, 2751, 62, 40331, 16437, 10979, 55, 8, 41876, 198, 9, 1, 220, 220, 220, 220, 220, 220, 220, 1220, 35, 11770, 14, 5064, 62, 3697, 9947, 62, 2538, 38, 43300, 3312, 14804, 15751, 62, 39453, 2751, 62, 40331, 16437, 10979, 62, 1268, 55, 39852, 2849, 1847, 198, 9, 1, 220, 7788, 15490, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 1546, 62, 51, 3861, 18697, 8, 41876, 220, 1220, 35, 11770, 14, 51, 3861, 18697, 3312, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 2767, 62, 39453, 2751, 8, 41876, 220, 1220, 35, 11770, 14, 5064, 62, 3697, 9947, 62, 2538, 38, 43300, 3312, 14804, 15751, 62, 39453, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 2767, 62, 39453, 2751, 62, 40331, 16437, 10979, 8, 41876, 198, 9, 1, 220, 220, 220, 220, 220, 220, 220, 1220, 35, 11770, 14, 5064, 62, 3697, 9947, 62, 2538, 38, 43300, 3312, 14804, 15751, 62, 39453, 2751, 62, 40331, 16437, 10979, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 2767, 62, 44, 1546, 4090, 48075, 8, 41876, 220, 1220, 35, 11770, 14, 5064, 62, 3697, 9947, 62, 2538, 38, 43300, 3312, 14804, 15751, 62, 44, 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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 ]
INTERFACE ZIF_DBBR_stmnt_string_builder PUBLIC . METHODS build_string CHANGING cs_statement TYPE ZIF_DBBR_fe_types=>ty_statement. ENDINTERFACE.
[ 41358, 49836, 1168, 5064, 62, 11012, 11473, 62, 301, 76, 429, 62, 8841, 62, 38272, 198, 220, 44731, 764, 198, 220, 337, 36252, 50, 1382, 62, 8841, 198, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 50115, 62, 26090, 41876, 1168, 5064, 62, 11012, 11473, 62, 5036, 62, 19199, 14804, 774, 62, 26090, 13, 198, 198, 10619, 41358, 49836, 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 ]
CLASS zcl_ant_cmd_general DEFINITION PUBLIC ABSTRACT CREATE PUBLIC . PUBLIC SECTION. *"* public components of class ZCL_ANT_CMD_GENERAL *"* do not include other source files here!!! METHODS get_position . METHODS constructor IMPORTING !iv_guid TYPE sysuuid_c22 !io_map TYPE REF TO zcl_ants_map . METHODS message . METHODS look . CLASS zcl_ants DEFINITION LOAD . METHODS move IMPORTING !iv_direction TYPE zcl_ants=>ty_direction RAISING zcx_ants . TYPE-POOLS abap . METHODS is_friendly RETURNING VALUE(rv_friendly) TYPE abap_bool . PROTECTED SECTION. *"* protected components of class ZCL_ANT_CMD_GENERAL *"* do not include other source files here!!! DATA mo_map TYPE REF TO zcl_ants_map . TYPE-POOLS abap . DATA mv_done TYPE abap_bool . DATA mv_guid TYPE sysuuid_c22 . CLASS zcl_ants_map DEFINITION LOAD . CLASS zcl_ants DEFINITION LOAD . METHODS translate IMPORTING !is_position TYPE zcl_ants_map=>st_position !iv_direction TYPE zcl_ants=>ty_direction RETURNING VALUE(rs_position) TYPE zcl_ants_map=>st_position RAISING zcx_ants . METHODS turn_done RAISING zcx_ants . PRIVATE SECTION. *"* private components of class ZCL_ANT_CMD_GENERAL *"* do not include other source files here!!! ENDCLASS. CLASS ZCL_ANT_CMD_GENERAL IMPLEMENTATION. METHOD constructor. mo_map = io_map. mv_done = abap_false. mv_guid = iv_guid. ENDMETHOD. METHOD get_position. * todo ENDMETHOD. METHOD is_friendly. * todo ENDMETHOD. METHOD look. * todo ENDMETHOD. METHOD message. * todo ENDMETHOD. METHOD move. DATA: ls_info TYPE zcl_ants_map=>st_info, ls_position TYPE zcl_ants_map=>st_position, lv_colony TYPE i, ls_new_pos TYPE zcl_ants_map=>st_position. FIELD-SYMBOLS: <ls_queen> LIKE LINE OF mo_map->mt_queens, <ls_worker> LIKE LINE OF mo_map->mt_workers. IF iv_direction IS INITIAL. RAISE EXCEPTION TYPE zcx_ants EXPORTING textid = zcx_ants=>m000. ENDIF. * todo, refactor? READ TABLE mo_map->mt_queens ASSIGNING <ls_queen> WITH KEY guid = mv_guid. IF sy-subrc <> 0. READ TABLE mo_map->mt_workers ASSIGNING <ls_worker> WITH KEY guid = mv_guid. IF sy-subrc = 0. ls_position = <ls_worker>-position. lv_colony = <ls_worker>-colony. ENDIF. ELSE. ls_position = <ls_queen>-position. lv_colony = <ls_queen>-colony. ENDIF. IF sy-subrc <> 0. RAISE EXCEPTION TYPE zcx_ants EXPORTING textid = zcx_ants=>m003. ENDIF. ls_new_pos = translate( is_position = ls_position iv_direction = iv_direction ). ls_info = mo_map->get_info( iv_colony = lv_colony is_position = ls_new_pos ). IF ls_info-wall = abap_true. RAISE EXCEPTION TYPE zcx_ants EXPORTING textid = zcx_ants=>m004. ENDIF. IF ls_info-enemy = abap_true. RAISE EXCEPTION TYPE zcx_ants EXPORTING textid = zcx_ants=>m005. ENDIF. turn_done( ). ENDMETHOD. METHOD translate. CASE iv_direction. WHEN zcl_ants=>c_e. * todo WHEN zcl_ants=>c_n. WHEN zcl_ants=>c_ne. WHEN zcl_ants=>c_nw. WHEN zcl_ants=>c_s. WHEN zcl_ants=>c_se. WHEN zcl_ants=>c_sw. WHEN zcl_ants=>c_w. WHEN OTHERS. RAISE EXCEPTION TYPE zcx_ants EXPORTING textid = zcx_ants=>m001. ENDCASE. ENDMETHOD. METHOD turn_done. IF mv_done = abap_true. RAISE EXCEPTION TYPE zcx_ants EXPORTING textid = zcx_ants=>m002. ENDIF. mv_done = abap_true. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 415, 62, 28758, 62, 24622, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 9564, 18601, 10659, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 8643, 62, 34, 12740, 62, 35353, 27130, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 9150, 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, 452, 62, 5162, 312, 41876, 827, 2385, 27112, 62, 66, 1828, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 8899, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1187, 62, 8899, 764, 198, 220, 220, 220, 337, 36252, 50, 3275, 764, 198, 220, 220, 220, 337, 36252, 50, 804, 764, 198, 220, 220, 220, 42715, 1976, 565, 62, 1187, 5550, 20032, 17941, 17579, 2885, 764, 198, 220, 220, 220, 337, 36252, 50, 1445, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 37295, 41876, 1976, 565, 62, 1187, 14804, 774, 62, 37295, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 1187, 764, 198, 220, 220, 220, 41876, 12, 16402, 3535, 50, 450, 499, 764, 198, 220, 220, 220, 337, 36252, 50, 318, 62, 13120, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 13120, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 5097, 62, 8643, 62, 34, 12740, 62, 35353, 27130, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 628, 220, 220, 220, 42865, 6941, 62, 8899, 41876, 4526, 37, 5390, 1976, 565, 62, 1187, 62, 8899, 764, 198, 220, 220, 220, 41876, 12, 16402, 3535, 50, 450, 499, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 28060, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 5162, 312, 41876, 827, 2385, 27112, 62, 66, 1828, 764, 628, 220, 220, 220, 42715, 1976, 565, 62, 1187, 62, 8899, 5550, 20032, 17941, 17579, 2885, 764, 198, 220, 220, 220, 42715, 1976, 565, 62, 1187, 5550, 20032, 17941, 17579, 2885, 764, 198, 220, 220, 220, 337, 36252, 50, 15772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 9150, 220, 220, 220, 220, 220, 220, 41876, 1976, 565, 62, 1187, 62, 8899, 14804, 301, 62, 9150, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 37295, 220, 220, 220, 220, 220, 41876, 1976, 565, 62, 1187, 14804, 774, 62, 37295, 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, 1976, 565, 62, 1187, 62, 8899, 14804, 301, 62, 9150, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 1187, 764, 198, 220, 220, 220, 337, 36252, 50, 1210, 62, 28060, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 1187, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 9, 1, 9, 2839, 6805, 286, 1398, 1168, 5097, 62, 8643, 62, 34, 12740, 62, 35353, 27130, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 8643, 62, 34, 12740, 62, 35353, 27130, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 6941, 62, 8899, 220, 796, 33245, 62, 8899, 13, 198, 220, 220, 220, 285, 85, 62, 28060, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 285, 85, 62, 5162, 312, 796, 21628, 62, 5162, 312, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 9150, 13, 198, 198, 9, 284, 4598, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 318, 62, 13120, 13, 198, 9, 284, 4598, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 804, 13, 198, 9, 284, 4598, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 3275, 13, 198, 198, 9, 284, 4598, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1445, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 10951, 220, 220, 220, 220, 41876, 1976, 565, 62, 1187, 62, 8899, 14804, 301, 62, 10951, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 9150, 41876, 1976, 565, 62, 1187, 62, 8899, 14804, 301, 62, 9150, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 4033, 1647, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 3605, 62, 1930, 220, 41876, 1976, 565, 62, 1187, 62, 8899, 14804, 301, 62, 9150, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 4188, 268, 29, 220, 34178, 48920, 3963, 6941, 62, 8899, 3784, 16762, 62, 4188, 641, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 28816, 29, 34178, 48920, 3963, 6941, 62, 8899, 3784, 16762, 62, 22896, 13, 628, 198, 220, 220, 220, 16876, 21628, 62, 37295, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 17926, 24352, 7788, 42006, 2849, 41876, 1976, 66, 87, 62, 1187, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 312, 796, 1976, 66, 87, 62, 1187, 14804, 76, 830, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 198, 9, 284, 4598, 11, 1006, 11218, 30, 628, 220, 220, 220, 20832, 43679, 6941, 62, 8899, 3784, 16762, 62, 4188 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_abapgit_object_enho 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. METHODS: factory IMPORTING iv_tool TYPE enhtooltype RETURNING VALUE(ri_enho) TYPE REF TO zif_abapgit_object_enho RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_object_enho IMPLEMENTATION. METHOD factory. CASE iv_tool. WHEN cl_enh_tool_badi_impl=>tooltype. CREATE OBJECT ri_enho TYPE zcl_abapgit_object_enho_badi EXPORTING is_item = ms_item. WHEN cl_enh_tool_hook_impl=>tooltype. CREATE OBJECT ri_enho TYPE zcl_abapgit_object_enho_hook EXPORTING is_item = ms_item io_files = mo_files. WHEN cl_enh_tool_class=>tooltype. CREATE OBJECT ri_enho TYPE zcl_abapgit_object_enho_class EXPORTING is_item = ms_item io_files = mo_files. WHEN cl_enh_tool_intf=>tooltype. CREATE OBJECT ri_enho TYPE zcl_abapgit_object_enho_intf EXPORTING is_item = ms_item io_files = mo_files. WHEN cl_wdr_cfg_enhancement=>tooltype. CREATE OBJECT ri_enho TYPE zcl_abapgit_object_enho_wdyc EXPORTING is_item = ms_item. WHEN 'FUGRENH'. CREATE OBJECT ri_enho TYPE zcl_abapgit_object_enho_fugr EXPORTING is_item = ms_item io_files = mo_files. WHEN 'WDYENH'. CREATE OBJECT ri_enho TYPE zcl_abapgit_object_enho_wdyn EXPORTING is_item = ms_item. WHEN OTHERS. zcx_abapgit_exception=>raise( |Unsupported ENHO type { iv_tool }| ). ENDCASE. ENDMETHOD. METHOD zif_abapgit_object~changed_by. DATA: lv_enh_id TYPE enhname, lt_log TYPE enh_log_it, li_log_obj TYPE REF TO if_enh_log, ls_enhlog TYPE enhlog, lv_lines TYPE i, lt_enhlog TYPE STANDARD TABLE OF enhlog WITH DEFAULT KEY, li_enh_tool TYPE REF TO if_enh_tool. lv_enh_id = ms_item-obj_name. TRY. li_enh_tool = cl_enh_factory=>get_enhancement( enhancement_id = lv_enh_id bypassing_buffer = abap_true ). CATCH cx_enh_root. rv_user = c_user_unknown. RETURN. ENDTRY. lt_log = li_enh_tool->get_log( ). LOOP AT lt_log INTO li_log_obj. ls_enhlog = li_log_obj->get_enhlog( ). APPEND ls_enhlog TO lt_enhlog. ENDLOOP. lv_lines = lines( lt_enhlog ). READ TABLE lt_enhlog INTO ls_enhlog INDEX lv_lines. IF sy-subrc = 0. rv_user = ls_enhlog-loguser. ELSE. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_enh_id TYPE enhname, li_enh_object TYPE REF TO if_enh_object, lx_enh_root TYPE REF TO cx_enh_root. IF zif_abapgit_object~exists( ) = abap_false. RETURN. ENDIF. lv_enh_id = ms_item-obj_name. TRY. li_enh_object = cl_enh_factory=>get_enhancement( enhancement_id = lv_enh_id lock = abap_true ). li_enh_object->delete( nevertheless_delete = abap_true run_dark = abap_true ). li_enh_object->unlock( ). CATCH cx_enh_root INTO lx_enh_root. zcx_abapgit_exception=>raise_with_text( lx_enh_root ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lv_tool TYPE enhtooltype, li_enho TYPE REF TO zif_abapgit_object_enho. IF zif_abapgit_object~exists( ) = abap_true. zif_abapgit_object~delete( iv_package ). ENDIF. io_xml->read( EXPORTING iv_name = 'TOOL' CHANGING cg_data = lv_tool ). li_enho = factory( lv_tool ). li_enho->deserialize( ii_xml = io_xml iv_package = iv_package ). zcl_abapgit_sotr_handler=>create_sotr( iv_package = iv_package io_xml = io_xml ). zcl_abapgit_objects_activation=>add_item( ms_item ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_enh_id TYPE enhname. lv_enh_id = ms_item-obj_name. TRY. cl_enh_factory=>get_enhancement( enhancement_id = lv_enh_id bypassing_buffer = abap_true ). rv_bool = abap_true. CATCH cx_enh_root. 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( ). ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. DATA: lv_object TYPE seqg3-garg. lv_object = |{ ms_item-obj_type }{ ms_item-obj_name }|. OVERLAY lv_object WITH ' '. lv_object = lv_object && '*'. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'E_ENHANCE' iv_argument = lv_object ). ENDMETHOD. METHOD zif_abapgit_object~jump. " Covered by ZCL_ABAPGIT_OBJECTS=>JUMP ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_enh_id TYPE enhname, li_enho TYPE REF TO zif_abapgit_object_enho, li_enh_tool TYPE REF TO if_enh_tool, lx_enh_root TYPE REF TO cx_enh_root. IF zif_abapgit_object~exists( ) = abap_false. RETURN. ENDIF. lv_enh_id = ms_item-obj_name. TRY. li_enh_tool = cl_enh_factory=>get_enhancement( enhancement_id = lv_enh_id bypassing_buffer = abap_true ). CATCH cx_enh_root INTO lx_enh_root. zcx_abapgit_exception=>raise_with_text( lx_enh_root ). ENDTRY. li_enho = factory( li_enh_tool->get_tool( ) ). li_enho->serialize( ii_xml = io_xml ii_enh_tool = li_enh_tool ). zcl_abapgit_sotr_handler=>read_sotr( iv_pgmid = 'R3TR' iv_object = ms_item-obj_type iv_obj_name = ms_item-obj_name io_xml = io_xml iv_language = mv_language ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 268, 8873, 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, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 8860, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 25981, 220, 220, 220, 220, 220, 220, 220, 41876, 551, 4352, 970, 4906, 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, 268, 8873, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 15252, 62, 268, 8873, 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, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 268, 8873, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 8860, 13, 628, 220, 220, 220, 42001, 21628, 62, 25981, 13, 198, 220, 220, 220, 220, 220, 42099, 537, 62, 16550, 62, 25981, 62, 65, 9189, 62, 23928, 14804, 25981, 4906, 13, 198, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 374, 72, 62, 268, 8873, 41876, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 268, 8873, 62, 65, 9189, 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, 318, 62, 9186, 220, 796, 13845, 62, 9186, 13, 198, 220, 220, 220, 220, 220, 42099, 537, 62, 16550, 62, 25981, 62, 25480, 62, 23928, 14804, 25981, 4906, 13, 198, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 374, 72, 62, 268, 8873, 41876, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 268, 8873, 62, 25480, 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, 318, 62, 9186, 220, 796, 13845, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 16624, 796, 6941, 62, 16624, 13, 198, 220, 220, 220, 220, 220, 42099, 537, 62, 16550, 62, 25981, 62, 4871, 14804, 25981, 4906, 13, 198, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 374, 72, 62, 268, 8873, 41876, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 268, 8873, 62, 4871, 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, 318, 62, 9186, 220, 796, 13845, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 16624, 796, 6941, 62, 16624, 13, 198, 220, 220, 220, 220, 220, 42099, 537, 62, 16550, 62, 25981, 62, 600, 69, 14804, 25981, 4906, 13, 198, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 374, 72, 62, 268, 8873, 41876, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 268, 8873, 62, 600, 69, 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, 318, 62, 9186, 220, 796, 13845, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 16624, 796, 6941, 62, 16624, 13, 198, 220, 220, 220, 220, 220, 42099, 537, 62, 86, 7109, 62, 37581, 62, 16550, 590, 434, 14804, 25981, 4906, 13, 198, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 374, 72, 62, 268, 8873, 41876, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 268, 8873, 62, 86, 9892, 66, 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, 318, 62, 9186, 220, 796, 13845, 62, 9186, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 37, 7340, 49, 1677, 39, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 374, 72, 62, 268, 8873, 41876, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 268, 8873, 62, 69, 1018, 81, 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, 318, 62, 9186, 220, 796, 13845, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 16624, 796, 6941, 62, 16624, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 22332, 56, 1677, 39, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 374, 72, 62, 268, 8873, 41876, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 268, 8873, 62, 16993, 2047, 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, 318, 62, 9186, 220, 796, 13845, 62, 9186, 13, 198, 220, 220, 220, 220, 220, 42099, 440, 4221, 4877, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 930, 3118, 15999, 12964, 32298, 2099, 1391, 21628, 62, 25981, 1782, 91, 6739, 198, 220, 220, 220, 23578, 34, 11159, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 16550, 62, 312, 220, 220, 41876, 5881, 3672, 11, 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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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 ]
INTERFACE zif_app_html PUBLIC. CONSTANTS: BEGIN OF events, on_change TYPE string VALUE 'onChange', on_key_down TYPE string VALUE 'onKeyDown', on_click TYPE string VALUE 'onClick', END OF events, BEGIN OF tags, textarea TYPE string VALUE 'textarea', textinput TYPE string VALUE 'input', html TYPE string VALUE 'html', form TYPE string VALUE 'form', body TYPE string VALUE 'body', button TYPE string VALUE 'button', table TYPE string VALUE 'table', table_row TYPE string VALUE 'tr', table_cell TYPE string VALUE 'td', row_header TYPE string VALUE 'th', break_line TYPE string VALUE 'br', paragraph TYPE string VALUE 'p', list TYPE string VALUE 'ul', list_item TYPE string VALUE 'li', END OF tags. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 1324, 62, 6494, 198, 220, 44731, 13, 628, 220, 7102, 2257, 1565, 4694, 25, 347, 43312, 3963, 2995, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 319, 62, 3803, 220, 220, 41876, 4731, 26173, 8924, 705, 261, 19400, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 319, 62, 2539, 62, 2902, 41876, 4731, 26173, 8924, 705, 261, 9218, 8048, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 319, 62, 12976, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 261, 8164, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 2995, 11, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 15940, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 20337, 220, 220, 41876, 4731, 26173, 8924, 705, 5239, 20337, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 15414, 220, 41876, 4731, 26173, 8924, 705, 15414, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27711, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 6494, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1296, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 687, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1767, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 2618, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4936, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 16539, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3084, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 11487, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3084, 62, 808, 220, 41876, 4731, 26173, 8924, 705, 2213, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3084, 62, 3846, 41876, 4731, 26173, 8924, 705, 8671, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5752, 62, 25677, 41876, 4731, 26173, 8924, 705, 400, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2270, 62, 1370, 41876, 4731, 26173, 8924, 705, 1671, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7322, 220, 41876, 4731, 26173, 8924, 705, 79, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1351, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 377, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1351, 62, 9186, 220, 41876, 4731, 26173, 8924, 705, 4528, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 15940, 13, 198, 198, 10619, 41358, 49836, 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, 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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 ]
********************************************************************** * Helper classed CLASS lcl_string_buffer DEFINITION FINAL. PUBLIC SECTION. DATA mt_buffer TYPE string_table. METHODS add IMPORTING iv_str TYPE string. ENDCLASS. CLASS lcl_string_buffer IMPLEMENTATION. METHOD add. APPEND iv_str TO mt_buffer. ENDMETHOD. ENDCLASS. CLASS lcl_log_entries DEFINITION FINAL. PUBLIC SECTION. DATA mt_log_entries TYPE zcl_abapgit_news=>ty_logs. METHODS add IMPORTING iv_str TYPE string. ENDCLASS. CLASS lcl_log_entries IMPLEMENTATION. METHOD add. DATA ls_log LIKE LINE OF mt_log_entries. DATA lv_pos_to_cur_str TYPE string. SPLIT iv_str AT '/' INTO ls_log-version ls_log-is_header ls_log-is_important lv_pos_to_cur_str ls_log-text. CONDENSE ls_log-version. CONDENSE ls_log-is_header. CONDENSE ls_log-is_important. CONDENSE ls_log-text. ls_log-pos_to_cur = lv_pos_to_cur_str. APPEND ls_log TO mt_log_entries. ENDMETHOD. ENDCLASS. ********************************************************************** CLASS ltcl_news DEFINITION DEFERRED. CLASS zcl_abapgit_news DEFINITION LOCAL FRIENDS ltcl_news. *----------------------------------------------------------------------* * CLASS ltcl_news DEFINITION *----------------------------------------------------------------------* * Definition of test class for news announcement *----------------------------------------------------------------------* CLASS ltcl_news DEFINITION FINAL FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PRIVATE SECTION. METHODS: parse_line FOR TESTING, parse FOR TESTING. ENDCLASS. *----------------------------------------------------------------------* * CLASS ltcl_news IMPLEMENTATION *----------------------------------------------------------------------* * Implementation of test class for news announcement *----------------------------------------------------------------------* CLASS ltcl_news IMPLEMENTATION. METHOD parse_line. DATA: ls_log TYPE zcl_abapgit_news=>ty_log. ls_log = zcl_abapgit_news=>parse_line( iv_line = '======' iv_current_version = '1.26.01' ). cl_abap_unit_assert=>assert_initial( ls_log ). ls_log = zcl_abapgit_news=>parse_line( iv_line = '' iv_current_version = '1.26.01' ). cl_abap_unit_assert=>assert_initial( ls_log ). ls_log = zcl_abapgit_news=>parse_line( iv_line = '------' iv_current_version = '1.26.01' ). cl_abap_unit_assert=>assert_initial( ls_log ). CLEAR ls_log. ls_log = zcl_abapgit_news=>parse_line( iv_line = '2017-02-13 v1.28.0' iv_current_version = '1.26.01' ). cl_abap_unit_assert=>assert_equals( act = ls_log-version exp = '1.28.0' ). cl_abap_unit_assert=>assert_equals( act = ls_log-is_header exp = abap_true ). cl_abap_unit_assert=>assert_equals( act = ls_log-pos_to_cur exp = 1 ). CLEAR ls_log. ls_log = zcl_abapgit_news=>parse_line( iv_line = '2017-02-13 v1.26.0' iv_current_version = '1.26.01' ). cl_abap_unit_assert=>assert_equals( act = ls_log-version exp = '1.26.0' ). cl_abap_unit_assert=>assert_equals( act = ls_log-is_header exp = abap_true ). cl_abap_unit_assert=>assert_equals( act = ls_log-pos_to_cur exp = -1 ). CLEAR ls_log. ls_log = zcl_abapgit_news=>parse_line( iv_line = 'news' iv_current_version = '1.26.01' ). cl_abap_unit_assert=>assert_equals( act = ls_log-version exp = '' ). cl_abap_unit_assert=>assert_equals( act = ls_log-is_header exp = abap_false ). cl_abap_unit_assert=>assert_equals( act = ls_log-pos_to_cur exp = 0 ). cl_abap_unit_assert=>assert_equals( act = ls_log-is_important exp = abap_false ). cl_abap_unit_assert=>assert_equals( act = ls_log-text exp = 'news' ). CLEAR ls_log. ls_log = zcl_abapgit_news=>parse_line( iv_line = ' ! important news' iv_current_version = '1.26.01' ). cl_abap_unit_assert=>assert_equals( act = ls_log-version exp = '' ). cl_abap_unit_assert=>assert_equals( act = ls_log-is_header exp = abap_false ). cl_abap_unit_assert=>assert_equals( act = ls_log-pos_to_cur exp = 0 ). cl_abap_unit_assert=>assert_equals( act = ls_log-is_important exp = abap_true ). cl_abap_unit_assert=>assert_equals( act = ls_log-text exp = ' ! important news' ). ENDMETHOD. METHOD parse. DATA lt_log_act TYPE zcl_abapgit_news=>ty_logs. DATA lo_src_text_buf TYPE REF TO lcl_string_buffer. DATA lo_log_entries TYPE REF TO lcl_log_entries. " Generate test data CREATE OBJECT lo_src_text_buf. lo_src_text_buf->add( '======' ). lo_src_text_buf->add( '------' ). lo_src_text_buf->add( ` ` ). lo_src_text_buf->add( 'abapGit changelog' ). lo_src_text_buf->add( '2017-02-13 v1.28.0' ). lo_src_text_buf->add( '------------------' ). lo_src_text_buf->add( '+ Staging page redesigned' ). lo_src_text_buf->add( '! Support for core data services' ). lo_src_text_buf->add( ` ` ). lo_src_text_buf->add( '2017-01-25 v1.27.0' ). lo_src_text_buf->add( '------------------' ). lo_src_text_buf->add( '+ Two factor authentication with github.com' ). lo_src_text_buf->add( '2017-01-25 v1.26.0' ). " Case 1 " Generate expected results CREATE OBJECT lo_log_entries. " VERSION HEAD IMP POS TEXT lo_log_entries->add( '1.28.0 /X / /1 /2017-02-13 v1.28.0' ). lo_log_entries->add( '1.28.0 / / /0 /+ Staging page redesigned' ). lo_log_entries->add( '1.28.0 / /X /0 /! Support for core data services' ). lo_log_entries->add( '1.27.0 /X / /1 /2017-01-25 v1.27.0' ). lo_log_entries->add( '1.27.0 / / /0 /+ Two factor authentication with github.com' ). lt_log_act = zcl_abapgit_news=>parse( it_lines = lo_src_text_buf->mt_buffer iv_current_version = '1.26.01' ). cl_abap_unit_assert=>assert_equals( exp = lo_log_entries->mt_log_entries act = lt_log_act msg = ' Error during parsing: Case 1.' ). " Case 2 (exect version match) CREATE OBJECT lo_log_entries. " VERSION HEAD IMP UPD TEXT lo_log_entries->add( '1.28.0 /X / /1 /2017-02-13 v1.28.0' ). lo_log_entries->add( '1.28.0 / / /0 /+ Staging page redesigned' ). lo_log_entries->add( '1.28.0 / /X /0 /! Support for core data services' ). lt_log_act = zcl_abapgit_news=>parse( it_lines = lo_src_text_buf->mt_buffer iv_current_version = '1.27.00' ). cl_abap_unit_assert=>assert_equals( exp = lo_log_entries->mt_log_entries act = lt_log_act msg = ' Error during parsing: Case 2.' ). " Case 3 (display tail) CREATE OBJECT lo_log_entries. " VERSION HEAD IMP UPD TEXT lo_log_entries->add( '1.28.0 /X / /0 /2017-02-13 v1.28.0' ). lo_log_entries->add( '1.28.0 / / /0 /+ Staging page redesigned' ). lo_log_entries->add( '1.28.0 / /X /0 /! Support for core data services' ). lo_log_entries->add( '1.27.0 /X / /-1 /2017-01-25 v1.27.0' ). lo_log_entries->add( '1.27.0 / / /0 /+ Two factor authentication with github.com' ). lo_log_entries->add( '1.26.0 /X / /-1 /2017-01-25 v1.26.0' ). lt_log_act = zcl_abapgit_news=>parse( it_lines = lo_src_text_buf->mt_buffer iv_current_version = '1.28.00' ). cl_abap_unit_assert=>assert_equals( exp = lo_log_entries->mt_log_entries act = lt_log_act msg = ' Error during parsing: Case 3.' ). ENDMETHOD. ENDCLASS.
[ 17174, 17174, 2466, 1174, 198, 9, 5053, 525, 1398, 276, 198, 198, 31631, 300, 565, 62, 8841, 62, 22252, 5550, 20032, 17941, 25261, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 42865, 45079, 62, 22252, 41876, 4731, 62, 11487, 13, 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, 21628, 62, 2536, 41876, 4731, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 8841, 62, 22252, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 751, 13, 198, 220, 220, 220, 43504, 10619, 21628, 62, 2536, 5390, 45079, 62, 22252, 13, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 6404, 62, 298, 1678, 5550, 20032, 17941, 25261, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 42865, 45079, 62, 6404, 62, 298, 1678, 41876, 1976, 565, 62, 397, 499, 18300, 62, 10827, 14804, 774, 62, 6404, 82, 13, 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, 21628, 62, 2536, 41876, 4731, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 6404, 62, 298, 1678, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 751, 13, 198, 220, 220, 220, 42865, 43979, 62, 6404, 34178, 48920, 3963, 45079, 62, 6404, 62, 298, 1678, 13, 198, 220, 220, 220, 42865, 300, 85, 62, 1930, 62, 1462, 62, 22019, 62, 2536, 41876, 4731, 13, 628, 220, 220, 220, 46341, 2043, 21628, 62, 2536, 5161, 31051, 6, 39319, 198, 220, 220, 220, 220, 220, 43979, 62, 6404, 12, 9641, 198, 220, 220, 220, 220, 220, 43979, 62, 6404, 12, 271, 62, 25677, 198, 220, 220, 220, 220, 220, 43979, 62, 6404, 12, 271, 62, 18049, 198, 220, 220, 220, 220, 220, 300, 85, 62, 1930, 62, 1462, 62, 22019, 62, 2536, 198, 220, 220, 220, 220, 220, 43979, 62, 6404, 12, 5239, 13, 628, 220, 220, 220, 7102, 35, 24290, 43979, 62, 6404, 12, 9641, 13, 198, 220, 220, 220, 7102, 35, 24290, 43979, 62, 6404, 12, 271, 62, 25677, 13, 198, 220, 220, 220, 7102, 35, 24290, 43979, 62, 6404, 12, 271, 62, 18049, 13, 198, 220, 220, 220, 7102, 35, 24290, 43979, 62, 6404, 12, 5239, 13, 198, 220, 220, 220, 43979, 62, 6404, 12, 1930, 62, 1462, 62, 22019, 796, 300, 85, 62, 1930, 62, 1462, 62, 22019, 62, 2536, 13, 628, 220, 220, 220, 43504, 10619, 43979, 62, 6404, 5390, 45079, 62, 6404, 62, 298, 1678, 13, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198, 198, 17174, 17174, 2466, 1174, 198, 198, 31631, 300, 83, 565, 62, 10827, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 10827, 5550, 20032, 17941, 37347, 1847, 48167, 1677, 5258, 300, 83, 565, 62, 10827, 13, 198, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 83, 565, 62, 10827, 5550, 20032, 17941, 198, 9, 10097, 23031, 9, 198, 9, 30396, 286, 1332, 1398, 329, 1705, 8009, 198, 9, 10097, 23031, 9, 198, 31631, 300, 83, 565, 62, 10827, 5550, 20032, 17941, 25261, 7473, 43001, 2751, 45698, 42, 49277, 43638, 5805, 7597, 360, 4261, 6234, 6006, 9863, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 21136, 62, 1370, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 21136, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 43001, 2751, 13, 198, 198, 10619, 31631, 13, 198, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 83, 565, 62, 10827, 30023, 2538, 10979, 6234, 198, 9, 10097, 23031, 9, 198, 9, 46333, 286, 1332, 1398, 329, 1705, 8009, 198, 9, 10097, 23031, 9, 198, 31631, 300, 83, 565, 62, 10827, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 21136, 62, 1370, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 6404, 41876, 1976, 565, 62, 397, 499, 18300, 62, 10827, 14804, 774, 62, 6404, 13, 628, 220, 220, 220, 43979, 62, 6404, 796, 1976, 565, 62, 397, 499, 18300, 62, 10827, 14804, 29572, 62, 1370, 7, 198, 220, 220, 220, 220, 220, 21628, 62, 1370, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 50155, 6, 198, 220, 220, 220, 220, 220, 21628, 62, 14421, 62, 9641, 796, 705, 16, 13, 2075, 13, 486, 6, 6739, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 36733, 7, 43979, 62, 6404, 6739, 628, 220, 220, 220, 43979, 62, 6404, 796, 1976, 565, 62, 397, 499, 18300, 62, 10827, 14804, 29572, 62, 1370, 7, 198, 220, 220, 220, 220, 220, 21628, 62, 1370, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 10148, 198, 220, 220, 220, 220, 220, 21628, 62, 14421, 62, 9641, 796, 705, 16, 13, 2075, 13, 486, 6, 6739, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 36733, 7, 43979, 62, 6404, 6739, 628, 220, 220, 220, 43979, 62, 6404, 796, 1976, 565, 62, 397, 499, 18300, 62, 10827, 14804, 29572, 62, 1370, 7, 198, 220, 220, 220, 220, 220, 21628, 62, 1370, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 23031, 6, 198, 220, 220, 220, 220, 220, 21628, 62, 14421, 62, 9641, 796, 705, 16, 13, 2075, 13, 486, 6, 6739, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 36733, 7, 43979, 62, 6404, 6739, 628, 220, 220, 220, 30301, 1503, 43979, 62, 6404, 13, 198, 220, 220, 220, 43979, 62, 6404, 796, 1976, 565, 62, 397, 499, 18300, 62, 10827, 14804, 29572, 62, 1370, 7, 198, 220, 220, 220, 220, 220, 21628, 62, 1370, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 5539, 12, 2999, 12, 1485, 410, 16, 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, 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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 ]
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_interactive_branch TYPE abap_bool DEFAULT abap_false !iv_branch TYPE string OPTIONAL !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 parse_change_order_by IMPORTING !iv_query_str TYPE clike RETURNING VALUE(rv_order_by) TYPE string . CLASS-METHODS parse_direction IMPORTING !iv_query_str TYPE clike RETURNING VALUE(rv_order_descending) TYPE abap_bool . CLASS-METHODS render_order_by_header_cells IMPORTING !it_col_spec TYPE zif_abapgit_definitions=>tty_col_spec !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 . PROTECTED SECTION. CLASS-METHODS render_repo_top_commit_hash IMPORTING !ii_html TYPE REF TO zif_abapgit_html !iv_repo_online TYPE REF TO zcl_abapgit_repo_online RAISING zcx_abapgit_exception . PRIVATE SECTION. CLASS-DATA gv_time_zone TYPE timezone . CLASS-METHODS render_branch_span IMPORTING !iv_branch TYPE string !io_repo TYPE REF TO zcl_abapgit_repo_online !iv_interactive TYPE abap_bool RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . 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. 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 = 'Test Changed by' iv_act = zif_abapgit_definitions=>c_action-changed_by )->add( iv_txt = 'Debug Info' iv_act = zif_abapgit_definitions=>c_action-go_debuginfo )->add( iv_txt = 'Settings' iv_act = zif_abapgit_definitions=>c_action-go_settings ). 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 parse_change_order_by. FIND FIRST OCCURRENCE OF REGEX `orderBy=(.*)` IN iv_query_str SUBMATCHES rv_order_by. rv_order_by = condense( rv_order_by ). ENDMETHOD. METHOD parse_direction. DATA: lv_direction TYPE string. FIND FIRST OCCURRENCE OF REGEX `direction=(.*)` IN iv_query_str SUBMATCHES lv_direction. rv_order_descending = boolc( condense( lv_direction ) = 'DESCENDING' ). ENDMETHOD. METHOD render_branch_span. DATA: lv_text TYPE string, lv_class TYPE string. lv_text = zcl_abapgit_git_branch_list=>get_display_name( iv_branch ). IF zcl_abapgit_git_branch_list=>get_type( iv_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 }?{ io_repo->get_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( |{ zcl_abapgit_html=>icon( 'exclamation-circle/red' ) } Error: { 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->get_longtext( abap_true ). REPLACE FIRST OCCURRENCE OF REGEX |(<br>{ zcl_abapgit_message_helper=>gc_section_text-cause }<br>)| IN lv_longtext WITH |<h3>$1</h3>|. REPLACE FIRST OCCURRENCE OF REGEX |(<br>{ zcl_abapgit_message_helper=>gc_section_text-system_response }<br>)| IN lv_longtext WITH |<h3>$1</h3>|. REPLACE FIRST OCCURRENCE OF REGEX |(<br>{ zcl_abapgit_message_helper=>gc_section_text-what_to_do }<br>)| IN lv_longtext WITH |<h3>$1</h3>|. REPLACE FIRST OCCURRENCE OF REGEX |(<br>{ zcl_abapgit_message_helper=>gc_section_text-sys_admin }<br>)| IN lv_longtext WITH |<h3>$1</h3>|. ri_html->add( |<div id="message" class="message-panel">| ). ri_html->add( |{ 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( |{ zcl_abapgit_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=>tt_log. 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. 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. ELSE. 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 ). 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 && | &#x25B4;|. " arrow up ELSE. lv_tmp = lv_tmp && | &#x25BE;|. " arrow down ENDIF. ENDIF. lv_tmp = lv_tmp && '</th>'. ri_html->add( lv_tmp ). ENDLOOP. ENDMETHOD. METHOD render_repo_palette. DATA li_repo_srv TYPE REF TO zif_abapgit_repo_srv. DATA lt_repo_list TYPE zif_abapgit_persistence=>tt_repo. DATA lv_repo_json TYPE string. DATA lv_size TYPE i. DATA lo_repo TYPE REF TO zcl_abapgit_repo. FIELD-SYMBOLS <ls_repo> LIKE LINE OF lt_repo_list. li_repo_srv = zcl_abapgit_repo_srv=>get_instance( ). lt_repo_list = zcl_abapgit_persist_factory=>get_repo( )->list( ). lv_size = lines( lt_repo_list ). 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>. lo_repo = li_repo_srv->get( <ls_repo>-key ). " inefficient lv_repo_json = |\{ key: "{ <ls_repo>-key }", isOffline: "{ <ls_repo>-offline }", displayName: "{ lo_repo->get_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, lv_hint TYPE string, lv_icon TYPE string, lv_package_jump_data 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 }?| && |{ lo_repo_online->get_url( ) }| iv_class = |url| ). render_repo_top_commit_hash( ii_html = ri_html iv_repo_online = lo_repo_online ). 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 = zcl_abapgit_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 }?{ io_repo->get_key( ) }| iv_txt = zcl_abapgit_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. IF iv_branch IS INITIAL. ri_html->add( render_branch_span( iv_branch = lo_repo_online->get_branch_name( ) io_repo = lo_repo_online iv_interactive = iv_interactive_branch ) ). ELSE. ri_html->add( render_branch_span( iv_branch = iv_branch io_repo = lo_repo_online iv_interactive = iv_interactive_branch ) ). ENDIF. ENDIF. ENDIF. " Package IF iv_show_package = abap_true. ri_html->add_icon( iv_name = 'box/grey70' iv_hint = 'SAP package' ). ri_html->add( '<span>' ). lv_package_jump_data = zcl_abapgit_html_action_utils=>jump_encode( iv_obj_type = 'DEVC' iv_obj_name = io_repo->get_package( ) ). ri_html->add_a( iv_txt = io_repo->get_package( ) iv_act = |{ zif_abapgit_definitions=>c_action-jump }?{ lv_package_jump_data }| ). ri_html->add( '</span>' ). 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, lv_icon_commit TYPE string. lv_commit_hash = iv_repo_online->get_sha1_remote( ). lv_commit_short_hash = lv_commit_hash(7). lv_icon_commit = zcl_abapgit_html=>icon( iv_name = 'code-commit' iv_class = 'pad-sides' iv_hint = 'Commit' ). TRY. lv_display_url = iv_repo_online->get_commit_display_url( lv_commit_hash ). ii_html->add_a( iv_txt = |{ lv_icon_commit }{ lv_commit_short_hash }| iv_act = |{ zif_abapgit_definitions=>c_action-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_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. 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, 764, 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, 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, 452, 62, 1671, 3702, 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, 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, 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,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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 ]
CLASS zcl_abapgit_repo DEFINITION PUBLIC ABSTRACT CREATE PUBLIC . PUBLIC SECTION. METHODS bind_listener IMPORTING !ii_listener TYPE REF TO zif_abapgit_repo_listener . METHODS deserialize_checks RETURNING VALUE(rs_checks) TYPE zif_abapgit_definitions=>ty_deserialize_checks RAISING zcx_abapgit_exception . METHODS delete_checks RETURNING VALUE(rs_checks) TYPE zif_abapgit_definitions=>ty_delete_checks RAISING zcx_abapgit_exception . METHODS constructor IMPORTING !is_data TYPE zif_abapgit_persistence=>ty_repo . METHODS get_key RETURNING VALUE(rv_key) TYPE zif_abapgit_persistence=>ty_value . METHODS get_name RETURNING VALUE(rv_name) TYPE string RAISING zcx_abapgit_exception . METHODS get_files_local IMPORTING !io_log TYPE REF TO zcl_abapgit_log OPTIONAL !it_filter TYPE zif_abapgit_definitions=>ty_tadir_tt OPTIONAL RETURNING VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . METHODS get_local_checksums_per_file RETURNING VALUE(rt_checksums) TYPE zif_abapgit_definitions=>ty_file_signatures_tt . METHODS get_files_remote RETURNING VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_tt RAISING zcx_abapgit_exception . METHODS get_package RETURNING VALUE(rv_package) TYPE zif_abapgit_persistence=>ty_repo-package . METHODS get_dot_abapgit RETURNING VALUE(ro_dot_abapgit) TYPE REF TO zcl_abapgit_dot_abapgit . METHODS set_dot_abapgit IMPORTING !io_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit RAISING zcx_abapgit_exception . METHODS deserialize IMPORTING !is_checks TYPE zif_abapgit_definitions=>ty_deserialize_checks RAISING zcx_abapgit_exception . METHODS refresh IMPORTING !iv_drop_cache TYPE abap_bool DEFAULT abap_false RAISING zcx_abapgit_exception . METHODS update_local_checksums IMPORTING !it_files TYPE zif_abapgit_definitions=>ty_file_signatures_tt RAISING zcx_abapgit_exception . METHODS rebuild_local_checksums RAISING zcx_abapgit_exception . METHODS find_remote_dot_abapgit RETURNING VALUE(ro_dot) TYPE REF TO zcl_abapgit_dot_abapgit RAISING zcx_abapgit_exception . METHODS is_offline RETURNING VALUE(rv_offline) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS set_files_remote IMPORTING !it_files TYPE zif_abapgit_definitions=>ty_files_tt . METHODS get_local_settings RETURNING VALUE(rs_settings) TYPE zif_abapgit_persistence=>ty_repo-local_settings . METHODS set_local_settings IMPORTING !is_settings TYPE zif_abapgit_persistence=>ty_repo-local_settings RAISING zcx_abapgit_exception . METHODS has_remote_source ABSTRACT RETURNING VALUE(rv_yes) TYPE abap_bool . METHODS status IMPORTING !io_log TYPE REF TO zcl_abapgit_log OPTIONAL RETURNING VALUE(rt_results) TYPE zif_abapgit_definitions=>ty_results_tt RAISING zcx_abapgit_exception . METHODS switch_repo_type IMPORTING iv_offline TYPE abap_bool RAISING zcx_abapgit_exception . PROTECTED SECTION. DATA mt_local TYPE zif_abapgit_definitions=>ty_files_item_tt . DATA mt_remote TYPE zif_abapgit_definitions=>ty_files_tt . DATA mv_request_local_refresh TYPE abap_bool . DATA ms_data TYPE zif_abapgit_persistence=>ty_repo . DATA mv_request_remote_refresh TYPE abap_bool . DATA mt_status TYPE zif_abapgit_definitions=>ty_results_tt . METHODS set IMPORTING !it_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt OPTIONAL !iv_url TYPE zif_abapgit_persistence=>ty_repo-url OPTIONAL !iv_branch_name TYPE zif_abapgit_persistence=>ty_repo-branch_name OPTIONAL !iv_head_branch TYPE zif_abapgit_persistence=>ty_repo-head_branch OPTIONAL !iv_offline TYPE zif_abapgit_persistence=>ty_repo-offline OPTIONAL !is_dot_abapgit TYPE zif_abapgit_persistence=>ty_repo-dot_abapgit OPTIONAL !is_local_settings TYPE zif_abapgit_persistence=>ty_repo-local_settings OPTIONAL !iv_deserialized_at TYPE zif_abapgit_persistence=>ty_repo-deserialized_at OPTIONAL !iv_deserialized_by TYPE zif_abapgit_persistence=>ty_repo-deserialized_by OPTIONAL RAISING zcx_abapgit_exception . METHODS reset_status . METHODS reset_remote . PRIVATE SECTION. DATA mi_listener TYPE REF TO zif_abapgit_repo_listener . METHODS get_local_checksums RETURNING VALUE(rt_checksums) TYPE zif_abapgit_persistence=>ty_local_checksum_tt . METHODS notify_listener IMPORTING !is_change_mask TYPE zif_abapgit_persistence=>ty_repo_meta_mask RAISING zcx_abapgit_exception . METHODS apply_filter IMPORTING !it_filter TYPE zif_abapgit_definitions=>ty_tadir_tt CHANGING !ct_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt . METHODS build_dotabapgit_file RETURNING VALUE(rs_file) TYPE zif_abapgit_definitions=>ty_file RAISING zcx_abapgit_exception . METHODS build_apack_manifest_file RETURNING VALUE(rs_file) TYPE zif_abapgit_definitions=>ty_file RAISING zcx_abapgit_exception . METHODS update_last_deserialize RAISING zcx_abapgit_exception . ENDCLASS. CLASS zcl_abapgit_repo IMPLEMENTATION. METHOD apply_filter. DATA: lt_filter TYPE SORTED TABLE OF zif_abapgit_definitions=>ty_tadir WITH NON-UNIQUE KEY object obj_name, lv_index TYPE i. FIELD-SYMBOLS: <ls_tadir> LIKE LINE OF ct_tadir. IF lines( it_filter ) = 0. RETURN. ENDIF. lt_filter = it_filter. * this is another loop at TADIR, but typically the filter is blank LOOP AT ct_tadir ASSIGNING <ls_tadir>. lv_index = sy-tabix. READ TABLE lt_filter TRANSPORTING NO FIELDS WITH KEY object = <ls_tadir>-object obj_name = <ls_tadir>-obj_name BINARY SEARCH. IF sy-subrc <> 0. DELETE ct_tadir INDEX lv_index. ENDIF. ENDLOOP. ENDMETHOD. METHOD bind_listener. mi_listener = ii_listener. ENDMETHOD. METHOD build_dotabapgit_file. rs_file-path = zif_abapgit_definitions=>c_root_dir. rs_file-filename = zif_abapgit_definitions=>c_dot_abapgit. rs_file-data = get_dot_abapgit( )->serialize( ). rs_file-sha1 = zcl_abapgit_hash=>sha1( iv_type = zif_abapgit_definitions=>c_type-blob iv_data = rs_file-data ). ENDMETHOD. METHOD constructor. ASSERT NOT is_data-key IS INITIAL. ms_data = is_data. mv_request_remote_refresh = abap_true. ENDMETHOD. METHOD delete_checks. DATA: li_package TYPE REF TO zif_abapgit_sap_package. li_package = zcl_abapgit_factory=>get_sap_package( get_package( ) ). rs_checks-transport-required = li_package->are_changes_recorded_in_tr_req( ). ENDMETHOD. METHOD deserialize. DATA: lt_updated_files TYPE zif_abapgit_definitions=>ty_file_signatures_tt, lx_error TYPE REF TO zcx_abapgit_exception. deserialize_checks( ). IF is_checks-requirements-met = 'N' AND is_checks-requirements-decision IS INITIAL. zcx_abapgit_exception=>raise( 'Requirements not met and undecided' ). ENDIF. IF is_checks-transport-required = abap_true AND is_checks-transport-transport IS INITIAL. zcx_abapgit_exception=>raise( |No transport request was supplied| ). ENDIF. TRY. lt_updated_files = zcl_abapgit_objects=>deserialize( io_repo = me is_checks = is_checks ). CATCH zcx_abapgit_exception INTO lx_error. * ensure to reset default transport request task zcl_abapgit_default_transport=>get_instance( )->reset( ). RAISE EXCEPTION lx_error. ENDTRY. APPEND get_dot_abapgit( )->get_signature( ) TO lt_updated_files. CLEAR: mt_local. update_local_checksums( lt_updated_files ). update_last_deserialize( ). reset_status( ). COMMIT WORK AND WAIT. ENDMETHOD. METHOD deserialize_checks. DATA: lt_requirements TYPE zif_abapgit_dot_abapgit=>ty_requirement_tt, lv_master_language TYPE spras, lv_logon_language TYPE spras. find_remote_dot_abapgit( ). lv_master_language = get_dot_abapgit( )->get_master_language( ). lv_logon_language = sy-langu. IF get_local_settings( )-write_protected = abap_true. zcx_abapgit_exception=>raise( 'Cannot deserialize. Local code is write-protected by repo config' ). ELSEIF lv_master_language <> lv_logon_language. zcx_abapgit_exception=>raise( |Current login language | && |'{ zcl_abapgit_convert=>conversion_exit_isola_output( lv_logon_language ) }'| && | does not match master language | && |'{ zcl_abapgit_convert=>conversion_exit_isola_output( lv_master_language ) }'.| && | Run 'Advanced' > 'Open in master language'| ). ENDIF. rs_checks = zcl_abapgit_objects=>deserialize_checks( me ). lt_requirements = get_dot_abapgit( )->get_data( )-requirements. rs_checks-requirements-met = zcl_abapgit_requirement_helper=>is_requirements_met( lt_requirements ). ENDMETHOD. METHOD find_remote_dot_abapgit. FIELD-SYMBOLS: <ls_remote> LIKE LINE OF mt_remote. get_files_remote( ). READ TABLE mt_remote ASSIGNING <ls_remote> WITH KEY path = zif_abapgit_definitions=>c_root_dir filename = zif_abapgit_definitions=>c_dot_abapgit. IF sy-subrc = 0. ro_dot = zcl_abapgit_dot_abapgit=>deserialize( <ls_remote>-data ). set_dot_abapgit( ro_dot ). ENDIF. ENDMETHOD. METHOD get_dot_abapgit. CREATE OBJECT ro_dot_abapgit EXPORTING is_data = ms_data-dot_abapgit. ENDMETHOD. METHOD get_files_local. DATA: lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt, lo_serialize TYPE REF TO zcl_abapgit_serialize, lt_found LIKE rt_files, ls_apack_file TYPE zif_abapgit_definitions=>ty_file. FIELD-SYMBOLS: <ls_return> LIKE LINE OF rt_files. " Serialization happened before and no refresh request IF lines( mt_local ) > 0 AND mv_request_local_refresh = abap_false. rt_files = mt_local. RETURN. ENDIF. APPEND INITIAL LINE TO rt_files ASSIGNING <ls_return>. <ls_return>-file = build_dotabapgit_file( ). ls_apack_file = build_apack_manifest_file( ). IF ls_apack_file IS NOT INITIAL. APPEND INITIAL LINE TO rt_files ASSIGNING <ls_return>. <ls_return>-file = ls_apack_file. ENDIF. lt_tadir = zcl_abapgit_factory=>get_tadir( )->read( iv_package = get_package( ) iv_ignore_subpackages = get_local_settings( )-ignore_subpackages iv_only_local_objects = get_local_settings( )-only_local_objects io_dot = get_dot_abapgit( ) io_log = io_log ). apply_filter( EXPORTING it_filter = it_filter CHANGING ct_tadir = lt_tadir ). CREATE OBJECT lo_serialize. lt_found = lo_serialize->serialize( it_tadir = lt_tadir iv_language = get_dot_abapgit( )->get_master_language( ) io_log = io_log ). APPEND LINES OF lt_found TO rt_files. mt_local = rt_files. mv_request_local_refresh = abap_false. " Fulfill refresh ENDMETHOD. METHOD get_files_remote. rt_files = mt_remote. ENDMETHOD. METHOD get_key. rv_key = ms_data-key. ENDMETHOD. METHOD get_local_checksums. rt_checksums = ms_data-local_checksums. ENDMETHOD. METHOD get_local_checksums_per_file. FIELD-SYMBOLS <ls_object> LIKE LINE OF ms_data-local_checksums. LOOP AT ms_data-local_checksums ASSIGNING <ls_object>. APPEND LINES OF <ls_object>-files TO rt_checksums. ENDLOOP. ENDMETHOD. METHOD get_local_settings. rs_settings = ms_data-local_settings. ENDMETHOD. METHOD get_package. rv_package = ms_data-package. ENDMETHOD. METHOD is_offline. rv_offline = ms_data-offline. ENDMETHOD. METHOD notify_listener. DATA ls_meta_slug TYPE zif_abapgit_persistence=>ty_repo_xml. IF mi_listener IS BOUND. MOVE-CORRESPONDING ms_data TO ls_meta_slug. mi_listener->on_meta_change( iv_key = ms_data-key is_meta = ls_meta_slug is_change_mask = is_change_mask ). ENDIF. ENDMETHOD. METHOD rebuild_local_checksums. DATA: lt_local TYPE zif_abapgit_definitions=>ty_files_item_tt, ls_last_item TYPE zif_abapgit_definitions=>ty_item, lt_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt. FIELD-SYMBOLS: <ls_checksum> LIKE LINE OF lt_checksums, <ls_file_sig> LIKE LINE OF <ls_checksum>-files, <ls_local> LIKE LINE OF lt_local. lt_local = get_files_local( ). DELETE lt_local " Remove non-code related files except .abapgit WHERE item IS INITIAL AND NOT ( file-path = zif_abapgit_definitions=>c_root_dir AND file-filename = zif_abapgit_definitions=>c_dot_abapgit ). SORT lt_local BY item. LOOP AT lt_local ASSIGNING <ls_local>. IF ls_last_item <> <ls_local>-item OR sy-tabix = 1. " First or New item reached ? APPEND INITIAL LINE TO lt_checksums ASSIGNING <ls_checksum>. <ls_checksum>-item = <ls_local>-item. ls_last_item = <ls_local>-item. ENDIF. APPEND INITIAL LINE TO <ls_checksum>-files ASSIGNING <ls_file_sig>. MOVE-CORRESPONDING <ls_local>-file TO <ls_file_sig>. ENDLOOP. set( it_checksums = lt_checksums ). reset_status( ). ENDMETHOD. METHOD refresh. mv_request_local_refresh = abap_true. reset_remote( ). IF iv_drop_cache = abap_true. CLEAR: mt_local. ENDIF. ENDMETHOD. METHOD reset_remote. CLEAR mt_remote. mv_request_remote_refresh = abap_true. reset_status( ). ENDMETHOD. METHOD reset_status. CLEAR mt_status. ENDMETHOD. METHOD set. * TODO: refactor DATA: ls_mask TYPE zif_abapgit_persistence=>ty_repo_meta_mask. ASSERT it_checksums IS SUPPLIED OR iv_url IS SUPPLIED OR iv_branch_name IS SUPPLIED OR iv_head_branch IS SUPPLIED OR iv_offline IS SUPPLIED OR is_dot_abapgit IS SUPPLIED OR is_local_settings IS SUPPLIED OR iv_deserialized_by IS SUPPLIED OR iv_deserialized_at IS SUPPLIED. IF it_checksums IS SUPPLIED. ms_data-local_checksums = it_checksums. ls_mask-local_checksums = abap_true. ENDIF. IF iv_url IS SUPPLIED. ms_data-url = iv_url. ls_mask-url = abap_true. ENDIF. IF iv_branch_name IS SUPPLIED. ms_data-branch_name = iv_branch_name. ls_mask-branch_name = abap_true. ENDIF. IF iv_head_branch IS SUPPLIED. ms_data-head_branch = iv_head_branch. ls_mask-head_branch = abap_true. ENDIF. IF iv_offline IS SUPPLIED. ms_data-offline = iv_offline. ls_mask-offline = abap_true. ENDIF. IF is_dot_abapgit IS SUPPLIED. ms_data-dot_abapgit = is_dot_abapgit. ls_mask-dot_abapgit = abap_true. ENDIF. IF is_local_settings IS SUPPLIED. ms_data-local_settings = is_local_settings. ls_mask-local_settings = abap_true. ENDIF. IF iv_deserialized_at IS SUPPLIED OR iv_deserialized_by IS SUPPLIED. ms_data-deserialized_at = iv_deserialized_at. ms_data-deserialized_by = iv_deserialized_by. ls_mask-deserialized_at = abap_true. ls_mask-deserialized_by = abap_true. ENDIF. notify_listener( ls_mask ). ENDMETHOD. METHOD set_dot_abapgit. set( is_dot_abapgit = io_dot_abapgit->get_data( ) ). ENDMETHOD. METHOD set_files_remote. mt_remote = it_files. mv_request_remote_refresh = abap_false. ENDMETHOD. METHOD set_local_settings. set( is_local_settings = is_settings ). ENDMETHOD. METHOD status. IF lines( mt_status ) = 0. mt_status = zcl_abapgit_file_status=>status( io_repo = me io_log = io_log ). ENDIF. rt_results = mt_status. ENDMETHOD. METHOD switch_repo_type. IF iv_offline = ms_data-offline. zcx_abapgit_exception=>raise( |Cannot switch_repo_type, offline already = "{ ms_data-offline }"| ). ENDIF. IF iv_offline = abap_true. " On-line -> OFFline set( iv_url = zcl_abapgit_url=>name( ms_data-url ) iv_branch_name = '' iv_head_branch = '' iv_offline = abap_true ). ELSE. " OFFline -> On-line set( iv_offline = abap_false ). ENDIF. ENDMETHOD. METHOD update_last_deserialize. DATA: lv_deserialized_at TYPE zif_abapgit_persistence=>ty_repo-deserialized_at, lv_deserialized_by TYPE zif_abapgit_persistence=>ty_repo-deserialized_by. GET TIME STAMP FIELD lv_deserialized_at. lv_deserialized_by = sy-uname. set( iv_deserialized_at = lv_deserialized_at iv_deserialized_by = lv_deserialized_by ). ENDMETHOD. METHOD update_local_checksums. " ASSUMTION: SHA1 in param is actual and correct. " Push fills it from local files before pushing, deserialize from remote " If this is not true that there is an error somewhere but not here DATA: lt_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt, lt_files_idx TYPE zif_abapgit_definitions=>ty_file_signatures_tt, lt_local TYPE zif_abapgit_definitions=>ty_files_item_tt, lv_chks_row TYPE i, lv_file_row TYPE i. FIELD-SYMBOLS: <ls_checksum> LIKE LINE OF lt_checksums, <ls_file> LIKE LINE OF <ls_checksum>-files, <ls_local> LIKE LINE OF lt_local, <ls_new_state> LIKE LINE OF it_files. lt_checksums = get_local_checksums( ). lt_files_idx = it_files. SORT lt_files_idx BY path filename. " Sort for binary search " Loop through current chacksum state, update sha1 for common files LOOP AT lt_checksums ASSIGNING <ls_checksum>. lv_chks_row = sy-tabix. LOOP AT <ls_checksum>-files ASSIGNING <ls_file>. lv_file_row = sy-tabix. READ TABLE lt_files_idx ASSIGNING <ls_new_state> WITH KEY path = <ls_file>-path filename = <ls_file>-filename BINARY SEARCH. CHECK sy-subrc = 0. " Missing in param table, skip IF <ls_new_state>-sha1 IS INITIAL. " Empty input sha1 is a deletion marker DELETE <ls_checksum>-files INDEX lv_file_row. ELSE. <ls_file>-sha1 = <ls_new_state>-sha1. " Update sha1 CLEAR <ls_new_state>-sha1. " Mark as processed ENDIF. ENDLOOP. IF lines( <ls_checksum>-files ) = 0. " Remove empty objects DELETE lt_checksums INDEX lv_chks_row. ENDIF. ENDLOOP. DELETE lt_files_idx WHERE sha1 IS INITIAL. " Remove processed IF lines( lt_files_idx ) > 0. lt_local = get_files_local( ). SORT lt_local BY file-path file-filename. " Sort for binary search ENDIF. " Add new files - not deleted and not marked as processed above LOOP AT lt_files_idx ASSIGNING <ls_new_state>. READ TABLE lt_local ASSIGNING <ls_local> WITH KEY file-path = <ls_new_state>-path file-filename = <ls_new_state>-filename BINARY SEARCH. IF sy-subrc <> 0. * if the deserialization fails, the local file might not be there CONTINUE. ENDIF. READ TABLE lt_checksums ASSIGNING <ls_checksum> " TODO Optimize WITH KEY item = <ls_local>-item. IF sy-subrc > 0. APPEND INITIAL LINE TO lt_checksums ASSIGNING <ls_checksum>. <ls_checksum>-item = <ls_local>-item. ENDIF. APPEND <ls_new_state> TO <ls_checksum>-files. ENDLOOP. SORT lt_checksums BY item. set( it_checksums = lt_checksums ). ENDMETHOD. METHOD get_name. rv_name = ms_data-local_settings-display_name. ENDMETHOD. METHOD build_apack_manifest_file. DATA: lo_manifest_reader TYPE REF TO zcl_abapgit_apack_reader, ls_descriptor TYPE zif_abapgit_apack_definitions=>ty_descriptor, lo_manifest_writer TYPE REF TO zcl_abapgit_apack_writer. lo_manifest_reader = zcl_abapgit_apack_reader=>create_instance( iv_package_name = ms_data-package ). IF lo_manifest_reader->has_manifest( ) = abap_true. ls_descriptor = lo_manifest_reader->get_manifest_descriptor( ). lo_manifest_writer = zcl_abapgit_apack_writer=>create_instance( is_apack_manifest_descriptor = ls_descriptor ). rs_file-path = zif_abapgit_definitions=>c_root_dir. rs_file-filename = zif_abapgit_apack_definitions=>c_dot_apack_manifest. rs_file-data = zcl_abapgit_convert=>string_to_xstring_utf8( lo_manifest_writer->serialize( ) ). rs_file-sha1 = zcl_abapgit_hash=>sha1( iv_type = zif_abapgit_definitions=>c_type-blob iv_data = rs_file-data ). ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 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, 337, 36252, 50, 11007, 62, 4868, 877, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 4868, 877, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 260, 7501, 62, 4868, 877, 764, 198, 220, 220, 220, 337, 36252, 50, 748, 48499, 1096, 62, 42116, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 42116, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8906, 48499, 1096, 62, 42116, 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, 12233, 62, 42116, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 42116, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 33678, 62, 42116, 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, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 7890, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 2539, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 2539, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 8367, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 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, 3672, 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, 337, 36252, 50, 651, 62, 16624, 62, 12001, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 6404, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6404, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 24455, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 62, 926, 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, 16624, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 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, 651, 62, 12001, 62, 42116, 5700, 62, 525, 62, 7753, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 42116, 5700, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 7753, 62, 12683, 6691, 62, 926, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 16624, 62, 47960, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 16624, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 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, 651, 62, 26495, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 26495, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 26495, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 26518, 62, 397, 499, 18300, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 26518, 62, 397, 499, 18300, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 764, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 26518, 62, 397, 499, 18300, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 26518, 62, 397, 499, 18300, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 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, 748, 48499, 1096, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 42116, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8906, 48499, 1096, 62, 42116, 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, 14976, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 14781, 62, 23870, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 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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TION 'BUP_BUPA_BUT000_GET' IMPORTING e_but000 = ls_but000. CASE i_fieldname. WHEN 'OVDUE_DAYS'. CREATE DATA dref1 TYPE ukm_ovdue_days. ASSIGN dref1->* TO <fs_field1>. SELECT SINGLE ovdue_days INTO lv_ovdueday FROM ukmbp_vector_it WHERE partner = ls_but000-partner. IF sy-subrc = 0. <fs_field1> = lv_ovdueday. GET REFERENCE OF <fs_field1> INTO rd_result. ENDIF. WHEN OTHERS. ENDCASE. ENDMETHOD.
[ 220, 337, 36252, 611, 62, 1069, 62, 2724, 76, 62, 1990, 62, 687, 4712, 93, 20797, 62, 3245, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 4360, 830, 220, 220, 41876, 475, 830, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 709, 646, 23712, 41876, 334, 13276, 62, 709, 23301, 62, 12545, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 5420, 16, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1366, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 9501, 62, 3245, 16, 29, 41876, 597, 13, 628, 220, 220, 220, 30301, 1503, 43979, 62, 4360, 830, 13, 198, 9, 1100, 5212, 422, 20997, 3159, 198, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 33, 8577, 62, 19499, 4537, 62, 47526, 830, 62, 18851, 6, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 304, 62, 4360, 830, 796, 43979, 62, 4360, 830, 13, 628, 220, 220, 220, 42001, 1312, 62, 3245, 3672, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 8874, 35, 8924, 62, 26442, 50, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 42865, 288, 5420, 16, 41876, 334, 13276, 62, 709, 23301, 62, 12545, 13, 198, 220, 220, 220, 220, 220, 220, 220, 24994, 16284, 288, 5420, 16, 3784, 9, 5390, 1279, 9501, 62, 3245, 16, 28401, 198, 220, 220, 220, 220, 220, 220, 220, 33493, 311, 2751, 2538, 19643, 23301, 62, 12545, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 39319, 300, 85, 62, 709, 646, 23712, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16034, 334, 74, 2022, 79, 62, 31364, 62, 270, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33411, 5212, 796, 43979, 62, 4360, 830, 12, 3911, 1008, 13, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 9501, 62, 3245, 16, 29, 796, 300, 85, 62, 709, 646, 23712, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17151, 4526, 24302, 18310, 3963, 1279, 9501, 62, 3245, 16, 29, 39319, 374, 67, 62, 20274, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 42099, 440, 4221, 4877, 13, 198, 220, 220, 220, 23578, 34, 11159, 13, 628, 220, 23578, 49273, 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, 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_AM IMPLEMENTATION. METHOD zif_advent2020_am~solve. output = 'todo'. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 324, 1151, 42334, 62, 820, 2481, 62, 321, 5550, 20032, 17941, 198, 220, 44731, 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, 324, 1151, 42334, 62, 321, 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, 2885, 53, 3525, 42334, 62, 26442, 2481, 62, 2390, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 324, 1151, 42334, 62, 321, 93, 82, 6442, 13, 628, 220, 220, 220, 5072, 796, 705, 83, 24313, 4458, 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 ]
class zcl_number_range definition public final. public section. types: number_range type standard table of i with empty key. "! Returns the list of numbers &lt;min, max). "! This method repeats the mistake of Python 2.x and will consume a lot of memory if used with large ranges class-methods get importing min type i max type i returning value(result) type number_range. endclass. class zcl_number_range implementation. method get. data(i) = min. while i < max. append i to result. i = i + 1. endwhile. endmethod. endclass.
[ 4871, 1976, 565, 62, 17618, 62, 9521, 6770, 198, 220, 1171, 2457, 13, 628, 220, 1171, 2665, 13, 198, 220, 220, 220, 3858, 25, 1271, 62, 9521, 2099, 3210, 3084, 286, 1312, 351, 6565, 1994, 13, 628, 220, 220, 220, 366, 0, 16409, 262, 1351, 286, 3146, 1222, 2528, 26, 1084, 11, 3509, 737, 198, 220, 220, 220, 366, 0, 770, 2446, 29819, 262, 7457, 286, 11361, 362, 13, 87, 290, 481, 15000, 257, 1256, 286, 4088, 611, 973, 351, 1588, 16069, 198, 220, 220, 220, 1398, 12, 24396, 82, 651, 198, 220, 220, 220, 220, 220, 33332, 949, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3509, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 1312, 198, 220, 220, 220, 220, 220, 8024, 1988, 7, 20274, 8, 2099, 1271, 62, 9521, 13, 198, 198, 437, 4871, 13, 198, 198, 4871, 1976, 565, 62, 17618, 62, 9521, 7822, 13, 628, 220, 2446, 651, 13, 198, 220, 220, 220, 1366, 7, 72, 8, 796, 949, 13, 198, 220, 220, 220, 981, 1312, 1279, 3509, 13, 198, 220, 220, 220, 220, 220, 24443, 1312, 284, 1255, 13, 198, 220, 220, 220, 220, 220, 1312, 796, 1312, 1343, 352, 13, 198, 220, 220, 220, 886, 4514, 13, 198, 220, 886, 24396, 13, 198, 198, 437, 4871, 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 ]
*----------------------------------------------------------------------* ***INCLUDE Z_ABAPB2E_MACROS_05_PAI. *----------------------------------------------------------------------* *&---------------------------------------------------------------------* *& Module USER_COMMAND_0001 INPUT *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* MODULE user_command_0001 INPUT. if sy-ucomm is not initial. *--No functionality, whatever you do, we exit the screen set screen 0. leave screen. endif. ENDMODULE.
[ 9, 10097, 23031, 9, 198, 8162, 1268, 5097, 52, 7206, 1168, 62, 6242, 2969, 33, 17, 36, 62, 44721, 49, 2640, 62, 2713, 62, 4537, 40, 13, 198, 9, 10097, 23031, 9, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 220, 220, 220, 220, 19937, 220, 1294, 1137, 62, 9858, 44, 6981, 62, 18005, 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, 18005, 3268, 30076, 13, 198, 220, 611, 827, 12, 84, 9503, 318, 407, 4238, 13, 198, 9, 438, 2949, 11244, 11, 4232, 345, 466, 11, 356, 8420, 262, 3159, 198, 220, 220, 220, 220, 220, 900, 3159, 657, 13, 198, 220, 220, 220, 220, 220, 2666, 3159, 13, 198, 220, 45762, 13, 198, 10619, 33365, 24212, 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 ]
CLASS zcl_excel_style_protection DEFINITION PUBLIC FINAL CREATE PUBLIC . *"* public components of class ZCL_EXCEL_STYLE_PROTECTION *"* do not include other source files here!!! PUBLIC SECTION. CONSTANTS c_protection_hidden TYPE zexcel_cell_protection VALUE '1'. "#EC NOTEXT CONSTANTS c_protection_locked TYPE zexcel_cell_protection VALUE '1'. "#EC NOTEXT CONSTANTS c_protection_unhidden TYPE zexcel_cell_protection VALUE '0'. "#EC NOTEXT CONSTANTS c_protection_unlocked TYPE zexcel_cell_protection VALUE '0'. "#EC NOTEXT DATA hidden TYPE zexcel_cell_protection . DATA locked TYPE zexcel_cell_protection . METHODS constructor . METHODS get_structure RETURNING VALUE(ep_protection) TYPE zexcel_s_style_protection . *"* protected components of class ZABAP_EXCEL_STYLE_FONT *"* do not include other source files here!!! *"* protected components of class ZABAP_EXCEL_STYLE_FONT *"* do not include other source files here!!! PROTECTED SECTION. *"* private components of class ZCL_EXCEL_STYLE_PROTECTION *"* do not include other source files here!!! PRIVATE SECTION. ENDCLASS. CLASS zcl_excel_style_protection IMPLEMENTATION. METHOD constructor. locked = me->c_protection_locked. hidden = me->c_protection_unhidden. ENDMETHOD. METHOD get_structure. ep_protection-locked = me->locked. ep_protection-hidden = me->hidden. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 1069, 5276, 62, 7635, 62, 42846, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 198, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 6369, 34, 3698, 62, 2257, 56, 2538, 62, 4805, 2394, 24565, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 44731, 44513, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 42846, 62, 30342, 41876, 1976, 1069, 5276, 62, 3846, 62, 42846, 26173, 8924, 705, 16, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 42846, 62, 24162, 41876, 1976, 1069, 5276, 62, 3846, 62, 42846, 26173, 8924, 705, 16, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 42846, 62, 403, 30342, 41876, 1976, 1069, 5276, 62, 3846, 62, 42846, 26173, 8924, 705, 15, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 42846, 62, 403, 24162, 41876, 1976, 1069, 5276, 62, 3846, 62, 42846, 26173, 8924, 705, 15, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 42865, 7104, 41876, 1976, 1069, 5276, 62, 3846, 62, 42846, 764, 198, 220, 220, 220, 42865, 8970, 41876, 1976, 1069, 5276, 62, 3846, 62, 42846, 764, 628, 220, 220, 220, 337, 36252, 50, 23772, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 301, 5620, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 538, 62, 42846, 8, 41876, 1976, 1069, 5276, 62, 82, 62, 7635, 62, 42846, 764, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 6242, 2969, 62, 6369, 34, 3698, 62, 2257, 56, 2538, 62, 37, 35830, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 6242, 2969, 62, 6369, 34, 3698, 62, 2257, 56, 2538, 62, 37, 35830, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 9, 1, 9, 2839, 6805, 286, 1398, 1168, 5097, 62, 6369, 34, 3698, 62, 2257, 56, 2538, 62, 4805, 2394, 24565, 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, 1976, 565, 62, 1069, 5276, 62, 7635, 62, 42846, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 8970, 796, 502, 3784, 66, 62, 42846, 62, 24162, 13, 198, 220, 220, 220, 7104, 796, 502, 3784, 66, 62, 42846, 62, 403, 30342, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 301, 5620, 13, 198, 220, 220, 220, 2462, 62, 42846, 12, 24162, 796, 502, 3784, 24162, 13, 198, 220, 220, 220, 2462, 62, 42846, 12, 30342, 796, 502, 3784, 30342, 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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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 ]
class ZCL_MQBA_GUI_MSG_LISTENER definition public create public . public section. interfaces ZIF_MQBA_GUI_MSG_LISTENER . class-methods CREATE returning value(RR_INSTANCE) type ref to ZIF_MQBA_GUI_MSG_LISTENER . protected section. data M_INTERVAL type I value 1 ##NO_TEXT. data M_TIMER type ref to CL_GUI_TIMER . data M_MSGS type ZMQBA_API_S_BRK_MSG . data M_TOPIC_RANGE type ref to ZIF_MQBA_UTIL_RANGE . data M_LAST_MSG type ZMQBA_TIMESTAMP . data M_DELTA_MODE type ABAP_BOOL . methods ON_TIMER_EVENT for event FINISHED of CL_GUI_TIMER . private section. ENDCLASS. CLASS ZCL_MQBA_GUI_MSG_LISTENER IMPLEMENTATION. METHOD create. rr_instance = NEW zcl_mqba_gui_msg_listener( ). ENDMETHOD. METHOD on_timer_event. * ------ local data DATA: lv_error TYPE abap_bool. DATA: lt_valid TYPE zmqba_msg_t_main. DATA: lv_timestamp TYPE zmqba_timestamp. * ------ stop current timer zif_mqba_gui_msg_listener~stop( ). * ------ check for timestamp IF m_delta_mode EQ abap_true. lv_timestamp = m_last_msg. ENDIF. * ------ get current msg from memory with filter CALL FUNCTION 'Z_MQBA_API_BROKER_GET_MEMORY' EXPORTING * IV_TOPIC = * IV_SENDER = * IV_SENDER_REF = * IV_CONTEXT = iv_time_from = lv_timestamp IMPORTING es_data = m_msgs ev_error = lv_error. * ------ store timestamp IF m_msgs-msg_ts_last IS NOT INITIAL. m_last_msg = m_msgs-msg_ts_last. ENDIF. * ------ check data against topic filter IF m_msgs-msg[] IS NOT INITIAL. IF m_topic_range IS NOT INITIAL AND m_topic_range->get_count( ) GT 0. * loop and check LOOP AT m_msgs-msg INTO DATA(ls_msg). IF ls_msg-topic IN m_topic_range->get_range( ). APPEND ls_msg TO lt_valid. ENDIF. ENDLOOP. ELSE. * set all lt_valid = m_msgs-msg[]. ENDIF. * raise event IF lt_valid[] IS NOT INITIAL. RAISE EVENT zif_mqba_gui_msg_listener~on_msg_arrived EXPORTING it_msg = lt_valid . ENDIF. ENDIF. * ------ restart timer zif_mqba_gui_msg_listener~start( ). ENDMETHOD. METHOD zif_mqba_gui_msg_listener~destroy. * ------ stop now zif_mqba_gui_msg_listener~stop( ). ENDMETHOD. METHOD zif_mqba_gui_msg_listener~get_last_data. rs_data = m_msgs. ENDMETHOD. METHOD zif_mqba_gui_msg_listener~get_timestamp_last. ev_last = m_last_msg. ENDMETHOD. method ZIF_MQBA_GUI_MSG_LISTENER~IS_STARTED. rv_started = COND #( when m_timer is NOT INITIAL then abap_true else abap_false ). endmethod. METHOD zif_mqba_gui_msg_listener~set_delta_mode. m_delta_mode = iv_activate. rr_self = me. ENDMETHOD. METHOD zif_mqba_gui_msg_listener~set_interval. IF iv_interval GT 0. m_interval = iv_interval. ELSE. m_interval = 5. ENDIF. ENDMETHOD. METHOD zif_mqba_gui_msg_listener~start. * ----- check started already IF zif_mqba_gui_msg_listener~is_started( ) EQ abap_true. rv_success = abap_false. ELSE. * ----- create and start timer CREATE OBJECT m_timer. SET HANDLER on_timer_event FOR m_timer. * set interval IF m_interval GT 0. MOVE m_interval TO m_timer->interval. ELSE. m_timer->interval = 5. ENDIF. * start now m_timer->run( ). ENDIF. ENDMETHOD. METHOD zif_mqba_gui_msg_listener~stop. IF m_timer IS NOT INITIAL. m_timer->cancel( ). CLEAR m_timer. ENDIF. ENDMETHOD. METHOD zif_mqba_gui_msg_listener~subscribe_to. * check range is initialized IF m_topic_range IS INITIAL. m_topic_range = zcl_mqba_factory=>create_util_range( ). ENDIF. * add to range IF iv_topic IS NOT INITIAL. m_topic_range->add( iv_topic ). ENDIF. * return myself rr_self = me. ENDMETHOD. ENDCLASS.
[ 4871, 1168, 5097, 62, 49215, 4339, 62, 40156, 62, 5653, 38, 62, 45849, 1677, 1137, 6770, 198, 220, 1171, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 20314, 1168, 5064, 62, 49215, 4339, 62, 40156, 62, 5653, 38, 62, 45849, 1677, 1137, 764, 628, 220, 1398, 12, 24396, 82, 29244, 6158, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 21095, 62, 38604, 19240, 8, 2099, 1006, 284, 1168, 5064, 62, 49215, 4339, 62, 40156, 62, 5653, 38, 62, 45849, 1677, 1137, 764, 198, 24326, 2665, 13, 628, 220, 1366, 337, 62, 41358, 23428, 2099, 314, 1988, 352, 22492, 15285, 62, 32541, 13, 198, 220, 1366, 337, 62, 51, 3955, 1137, 2099, 1006, 284, 7852, 62, 40156, 62, 51, 3955, 1137, 764, 198, 220, 1366, 337, 62, 5653, 14313, 2099, 1168, 49215, 4339, 62, 17614, 62, 50, 62, 11473, 42, 62, 5653, 38, 764, 198, 220, 1366, 337, 62, 35222, 2149, 62, 49, 27746, 2099, 1006, 284, 1168, 5064, 62, 49215, 4339, 62, 3843, 4146, 62, 49, 27746, 764, 198, 220, 1366, 337, 62, 43, 11262, 62, 5653, 38, 2099, 1168, 49215, 4339, 62, 51, 3955, 6465, 23518, 764, 198, 220, 1366, 337, 62, 35, 3698, 5603, 62, 49058, 2099, 9564, 2969, 62, 8202, 3535, 764, 628, 220, 5050, 6177, 62, 51, 3955, 1137, 62, 20114, 3525, 198, 220, 220, 220, 329, 1785, 33642, 18422, 1961, 286, 7852, 62, 40156, 62, 51, 3955, 1137, 764, 198, 19734, 2665, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 49215, 4339, 62, 40156, 62, 5653, 38, 62, 45849, 1677, 1137, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 2251, 13, 198, 220, 220, 220, 374, 81, 62, 39098, 796, 12682, 1976, 565, 62, 76, 80, 7012, 62, 48317, 62, 19662, 62, 4868, 877, 7, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 319, 62, 45016, 62, 15596, 13, 198, 198, 9, 40103, 1957, 1366, 198, 220, 220, 220, 42865, 25, 300, 85, 62, 18224, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 13, 198, 220, 220, 220, 42865, 25, 300, 83, 62, 12102, 220, 220, 220, 220, 41876, 1976, 76, 80, 7012, 62, 19662, 62, 83, 62, 12417, 13, 198, 220, 220, 220, 42865, 25, 300, 85, 62, 16514, 27823, 41876, 1976, 76, 80, 7012, 62, 16514, 27823, 13, 198, 198, 9, 40103, 2245, 1459, 19781, 198, 220, 220, 220, 1976, 361, 62, 76, 80, 7012, 62, 48317, 62, 19662, 62, 4868, 877, 93, 11338, 7, 6739, 198, 198, 9, 40103, 2198, 329, 41033, 198, 220, 220, 220, 16876, 285, 62, 67, 12514, 62, 14171, 36529, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 16514, 27823, 796, 285, 62, 12957, 62, 19662, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 198, 9, 40103, 651, 1459, 31456, 422, 4088, 351, 8106, 198, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 57, 62, 49215, 4339, 62, 17614, 62, 11473, 11380, 1137, 62, 18851, 62, 44, 3620, 15513, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 9, 220, 220, 220, 220, 220, 220, 8363, 62, 35222, 2149, 220, 220, 220, 220, 796, 198, 9, 220, 220, 220, 220, 220, 220, 8363, 62, 50, 10619, 1137, 220, 220, 220, 796, 198, 9, 220, 220, 220, 220, 220, 220, 8363, 62, 50, 10619, 1137, 62, 31688, 220, 220, 220, 220, 220, 220, 796, 198, 9, 220, 220, 220, 220, 220, 220, 8363, 62, 10943, 32541, 220, 220, 796, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 2435, 62, 6738, 796, 300, 85, 62, 16514, 27823, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1658, 62, 7890, 220, 220, 220, 220, 220, 796, 285, 62, 907, 14542, 198, 220, 220, 220, 220, 220, 220, 220, 819, 62, 18224, 220, 220, 220, 220, 796, 300, 85, 62, 18224, 13, 198, 198, 9, 40103, 3650, 41033, 198, 220, 220, 220, 16876, 285, 62, 907, 14542, 12, 19662, 62, 912, 62, 12957, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 285, 62, 12957, 62, 19662, 796, 285, 62, 907, 14542, 12, 19662, 62, 912, 62, 12957, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 198, 9, 40103, 2198, 1366, 1028, 7243, 8106, 198, 220, 220, 220, 16876, 285, 62, 907, 14542, 12, 19662, 21737, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 16876, 285, 62, 26652, 62, 9521, 3180, 5626, 3268, 2043, 12576, 5357, 285, 62, 26652, 62, 9521, 3784, 1136, 62, 9127, 7, 1267, 7963, 657, 13, 198, 9, 220, 220, 220, 220, 220, 220, 9052, 290, 2198, 198, 220, 220, 220, 220, 220, 220, 220, 17579, 3185, 5161, 285, 62, 907, 14542, 12, 19662, 39319, 42865, 7, 7278, 62, 19662, 737, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16876, 43979, 62, 19662, 12, 26652, 3268, 285, 62, 26652, 62, 9521, 3784, 1136, 62, 9521, 7, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43504, 10619, 43979, 62, 19662, 5390, 300, 83, 62, 12102, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 220, 220, 220, 220, 17852, 5188, 13, 198, 9, 220, 220, 220, 220, 220, 220, 900, 477, 198, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 12102, 796, 285, 62, 907, 14542, 12, 19662, 58, 4083, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 9, 220, 220, 220, 220, 5298, 1785, 198, 220, 220, 220, 220, 220, 16876, 300, 83, 62, 12102, 21737, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 24352, 49261, 1976, 361, 62, 76, 80, 7012, 62, 48317, 62, 19662, 62, 4868, 877, 93, 261, 62, 19662, 62, 283, 36207, 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, 340, 62, 19662, 796, 300, 83, 62, 12102 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_abapgit_serialize DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. METHODS constructor IMPORTING !iv_serialize_master_lang_only TYPE abap_bool DEFAULT abap_false !it_translation_langs TYPE zif_abapgit_definitions=>ty_languages OPTIONAL. METHODS on_end_of_task IMPORTING !p_task TYPE clike . METHODS serialize IMPORTING !it_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt !iv_language TYPE langu DEFAULT sy-langu !ii_log TYPE REF TO zif_abapgit_log OPTIONAL !iv_force_sequential TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . METHODS files_local IMPORTING !iv_package TYPE devclass !io_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit !is_local_settings TYPE zif_abapgit_persistence=>ty_repo-local_settings !ii_log TYPE REF TO zif_abapgit_log !it_filter TYPE zif_abapgit_definitions=>ty_tadir_tt OPTIONAL !ii_data_config TYPE REF TO zif_abapgit_data_config OPTIONAL RETURNING VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . PROTECTED SECTION. TYPES: ty_char32 TYPE c LENGTH 32 . CLASS-DATA gv_max_threads TYPE i . DATA mt_files TYPE zif_abapgit_definitions=>ty_files_item_tt . DATA mv_free TYPE i . DATA mi_log TYPE REF TO zif_abapgit_log . DATA mv_group TYPE rzlli_apcl . DATA mv_serialize_master_lang_only TYPE abap_bool . DATA mt_translation_langs TYPE zif_abapgit_definitions=>ty_languages . METHODS add_apack IMPORTING !iv_package TYPE devclass CHANGING !ct_files TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . METHODS add_data IMPORTING !ii_data_config TYPE REF TO zif_abapgit_data_config CHANGING !ct_files TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . METHODS add_dot_abapgit IMPORTING !io_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit CHANGING !ct_files TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . METHODS add_to_return IMPORTING !iv_path TYPE string !is_file_item TYPE zif_abapgit_objects=>ty_serialization . METHODS run_parallel IMPORTING !is_tadir TYPE zif_abapgit_definitions=>ty_tadir !iv_language TYPE langu !iv_task TYPE ty_char32 RAISING zcx_abapgit_exception . METHODS run_sequential IMPORTING !is_tadir TYPE zif_abapgit_definitions=>ty_tadir !iv_language TYPE langu RAISING zcx_abapgit_exception . METHODS add_objects IMPORTING !iv_package TYPE devclass !io_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit !is_local_settings TYPE zif_abapgit_persistence=>ty_repo-local_settings !ii_log TYPE REF TO zif_abapgit_log !it_filter TYPE zif_abapgit_definitions=>ty_tadir_tt OPTIONAL CHANGING VALUE(ct_files) TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . METHODS determine_max_threads IMPORTING !iv_force_sequential TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rv_threads) TYPE i RAISING zcx_abapgit_exception . PRIVATE SECTION. ENDCLASS. CLASS zcl_abapgit_serialize IMPLEMENTATION. METHOD add_apack. DATA ls_apack_file TYPE zif_abapgit_definitions=>ty_file. FIELD-SYMBOLS <ls_file> LIKE LINE OF ct_files. ls_apack_file = zcl_abapgit_apack_helper=>to_file( iv_package ). IF ls_apack_file IS NOT INITIAL. APPEND INITIAL LINE TO ct_files ASSIGNING <ls_file>. <ls_file>-file = ls_apack_file. ENDIF. ENDMETHOD. METHOD add_data. DATA lt_files TYPE zif_abapgit_definitions=>ty_files_tt. DATA ls_file LIKE LINE OF lt_files. FIELD-SYMBOLS <ls_return> LIKE LINE OF ct_files. IF ii_data_config IS INITIAL. RETURN. ENDIF. lt_files = ii_data_config->to_json( ). LOOP AT lt_files INTO ls_file. APPEND INITIAL LINE TO ct_files ASSIGNING <ls_return>. <ls_return>-file = ls_file. ENDLOOP. lt_files = zcl_abapgit_data_factory=>get_serializer( )->serialize( ii_data_config ). LOOP AT lt_files INTO ls_file. APPEND INITIAL LINE TO ct_files ASSIGNING <ls_return>. <ls_return>-file = ls_file. ENDLOOP. ENDMETHOD. METHOD add_dot_abapgit. FIELD-SYMBOLS: <ls_file> LIKE LINE OF ct_files. APPEND INITIAL LINE TO ct_files ASSIGNING <ls_file>. <ls_file>-file = io_dot_abapgit->to_file( ). ENDMETHOD. METHOD add_objects. DATA: lo_filter TYPE REF TO zcl_abapgit_repo_filter, lv_force TYPE abap_bool, lt_found LIKE ct_files, lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt. lt_tadir = zcl_abapgit_factory=>get_tadir( )->read( iv_package = iv_package iv_ignore_subpackages = is_local_settings-ignore_subpackages iv_only_local_objects = is_local_settings-only_local_objects io_dot = io_dot_abapgit ii_log = ii_log ). CREATE OBJECT lo_filter. lo_filter->apply( EXPORTING it_filter = it_filter CHANGING ct_tadir = lt_tadir ). * if there are less than 10 objects run in single thread * this helps a lot when debugging, plus performance gain * with low number of objects does not matter much lv_force = boolc( lines( lt_tadir ) < 10 ). lt_found = serialize( it_tadir = lt_tadir iv_language = io_dot_abapgit->get_master_language( ) ii_log = ii_log iv_force_sequential = lv_force ). APPEND LINES OF lt_found TO ct_files. ENDMETHOD. METHOD add_to_return. FIELD-SYMBOLS: <ls_file> LIKE LINE OF is_file_item-files, <ls_return> LIKE LINE OF mt_files. LOOP AT is_file_item-files ASSIGNING <ls_file>. APPEND INITIAL LINE TO mt_files ASSIGNING <ls_return>. <ls_return>-file = <ls_file>. <ls_return>-file-path = iv_path. <ls_return>-item = is_file_item-item. ENDLOOP. ENDMETHOD. METHOD constructor. DATA lo_settings TYPE REF TO zcl_abapgit_settings. lo_settings = zcl_abapgit_persist_settings=>get_instance( )->read( ). IF zcl_abapgit_factory=>get_environment( )->is_merged( ) = abap_true OR lo_settings->get_parallel_proc_disabled( ) = abap_true. gv_max_threads = 1. ENDIF. mv_group = 'parallel_generators'. mv_serialize_master_lang_only = iv_serialize_master_lang_only. mt_translation_langs = it_translation_langs. ENDMETHOD. METHOD determine_max_threads. IF iv_force_sequential = abap_true. rv_threads = 1. RETURN. ENDIF. IF gv_max_threads >= 1. * SPBT_INITIALIZE gives error PBT_ENV_ALREADY_INITIALIZED if called * multiple times in same session rv_threads = gv_max_threads. RETURN. ENDIF. CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'Z_ABAPGIT_SERIALIZE_PARALLEL' EXCEPTIONS function_not_exist = 1 OTHERS = 2. IF sy-subrc <> 0. gv_max_threads = 1. ELSE. * todo, add possibility to set group name in user exit CALL FUNCTION 'SPBT_INITIALIZE' EXPORTING group_name = mv_group IMPORTING free_pbt_wps = gv_max_threads EXCEPTIONS invalid_group_name = 1 internal_error = 2 pbt_env_already_initialized = 3 currently_no_resources_avail = 4 no_pbt_resources_found = 5 cant_init_different_pbt_groups = 6 OTHERS = 7. IF sy-subrc <> 0. * fallback to running sequentially. If SPBT_INITIALIZE fails, check transactions * RZ12, SM50, SM21, SARFC gv_max_threads = 1. ENDIF. ENDIF. IF gv_max_threads > 1. gv_max_threads = gv_max_threads - 1. ENDIF. ASSERT gv_max_threads >= 1. IF gv_max_threads > 32. * https://en.wikipedia.org/wiki/Amdahl%27s_law gv_max_threads = 32. ENDIF. rv_threads = gv_max_threads. ENDMETHOD. METHOD files_local. * serializes objects, including .abapgit.xml, apack, and takes into account local settings add_dot_abapgit( EXPORTING io_dot_abapgit = io_dot_abapgit CHANGING ct_files = rt_files ). add_apack( EXPORTING iv_package = iv_package CHANGING ct_files = rt_files ). add_data( EXPORTING ii_data_config = ii_data_config CHANGING ct_files = rt_files ). add_objects( EXPORTING iv_package = iv_package io_dot_abapgit = io_dot_abapgit is_local_settings = is_local_settings ii_log = ii_log it_filter = it_filter CHANGING ct_files = rt_files ). ENDMETHOD. METHOD on_end_of_task. * this method will be called from the parallel processing, thus it must be public DATA: lv_result TYPE xstring, lv_path TYPE string, lv_mess TYPE c LENGTH 200, ls_file_item TYPE zif_abapgit_objects=>ty_serialization. RECEIVE RESULTS FROM FUNCTION 'Z_ABAPGIT_SERIALIZE_PARALLEL' IMPORTING ev_result = lv_result ev_path = lv_path EXCEPTIONS error = 1 system_failure = 2 MESSAGE lv_mess communication_failure = 3 MESSAGE lv_mess OTHERS = 4. IF sy-subrc <> 0. IF NOT mi_log IS INITIAL. IF NOT lv_mess IS INITIAL. mi_log->add_error( lv_mess ). ELSE. mi_log->add_error( |{ sy-msgv1 }{ sy-msgv2 }{ sy-msgv3 }{ sy-msgv3 }, { sy-subrc }| ). ENDIF. ENDIF. ELSE. IMPORT data = ls_file_item FROM DATA BUFFER lv_result. "#EC CI_SUBRC ASSERT sy-subrc = 0. add_to_return( is_file_item = ls_file_item iv_path = lv_path ). ENDIF. mv_free = mv_free + 1. ENDMETHOD. METHOD run_parallel. DATA: lv_msg TYPE c LENGTH 100, lv_free LIKE mv_free. ASSERT mv_free > 0. DO. CALL FUNCTION 'Z_ABAPGIT_SERIALIZE_PARALLEL' STARTING NEW TASK iv_task DESTINATION IN GROUP mv_group CALLING on_end_of_task ON END OF TASK EXPORTING iv_obj_type = is_tadir-object iv_obj_name = is_tadir-obj_name iv_devclass = is_tadir-devclass iv_language = iv_language iv_path = is_tadir-path iv_serialize_master_lang_only = mv_serialize_master_lang_only EXCEPTIONS system_failure = 1 MESSAGE lv_msg communication_failure = 2 MESSAGE lv_msg resource_failure = 3 OTHERS = 4. IF sy-subrc = 3. lv_free = mv_free. WAIT UNTIL mv_free <> lv_free UP TO 1 SECONDS. CONTINUE. ELSEIF sy-subrc <> 0. ASSERT lv_msg = '' AND 0 = 1. ENDIF. EXIT. ENDDO. mv_free = mv_free - 1. ENDMETHOD. METHOD run_sequential. DATA: lx_error TYPE REF TO zcx_abapgit_exception, ls_file_item TYPE zif_abapgit_objects=>ty_serialization. ls_file_item-item-obj_type = is_tadir-object. ls_file_item-item-obj_name = is_tadir-obj_name. ls_file_item-item-devclass = is_tadir-devclass. TRY. ls_file_item = zcl_abapgit_objects=>serialize( is_item = ls_file_item-item iv_serialize_master_lang_only = mv_serialize_master_lang_only it_translation_langs = mt_translation_langs iv_language = iv_language ). add_to_return( is_file_item = ls_file_item iv_path = is_tadir-path ). CATCH zcx_abapgit_exception INTO lx_error. IF NOT mi_log IS INITIAL. mi_log->add_exception( ix_exc = lx_error is_item = ls_file_item-item ). ENDIF. ENDTRY. ENDMETHOD. METHOD serialize. * serializes only objects DATA: lv_max TYPE i, li_progress TYPE REF TO zif_abapgit_progress. FIELD-SYMBOLS: <ls_tadir> LIKE LINE OF it_tadir. CLEAR mt_files. lv_max = determine_max_threads( iv_force_sequential ). mv_free = lv_max. mi_log = ii_log. li_progress = zcl_abapgit_progress=>get_instance( lines( it_tadir ) ). LOOP AT it_tadir ASSIGNING <ls_tadir>. li_progress->show( iv_current = sy-tabix iv_text = |Serialize { <ls_tadir>-obj_name }, { lv_max } threads| ). IF lv_max = 1. run_sequential( is_tadir = <ls_tadir> iv_language = iv_language ). ELSE. run_parallel( is_tadir = <ls_tadir> iv_task = |{ sy-tabix }| iv_language = iv_language ). WAIT UNTIL mv_free > 0 UP TO 120 SECONDS. ENDIF. ENDLOOP. WAIT UNTIL mv_free = lv_max UP TO 120 SECONDS. rt_files = mt_files. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 46911, 1096, 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, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 46911, 1096, 62, 9866, 62, 17204, 62, 8807, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 41519, 62, 17204, 82, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 75, 33213, 39852, 2849, 1847, 13, 198, 220, 220, 220, 337, 36252, 50, 319, 62, 437, 62, 1659, 62, 35943, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 79, 62, 35943, 41876, 537, 522, 764, 198, 220, 220, 220, 337, 36252, 50, 11389, 1096, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 83, 324, 343, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 16129, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2786, 5550, 38865, 827, 12, 75, 2303, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 6404, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3174, 62, 3107, 1843, 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, 17034, 62, 16624, 8, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 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, 3696, 62, 12001, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26495, 220, 220, 220, 220, 220, 220, 220, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 26518, 62, 397, 499, 18300, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 12001, 62, 33692, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 12001, 62, 33692, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 6404, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 24455, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 62, 926, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 7890, 62, 11250, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 7890, 62, 11250, 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, 16624, 8, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 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, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 10641, 2624, 41876, 269, 406, 49494, 3933, 764, 628, 220, 220, 220, 42715, 12, 26947, 308, 85, 62, 9806, 62, 16663, 82, 41876, 1312, 764, 198, 220, 220, 220, 42865, 45079, 62, 16624, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 62, 926, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 5787, 41876, 1312, 764, 198, 220, 220, 220, 42865, 21504, 62, 6404, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 8094, 41876, 374, 89, 15516, 62, 499, 565, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 46911, 1096, 62, 9866, 62, 17204, 62, 8807, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 42865, 45079, 62, 41519, 62, 17204, 82, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 75, 33213, 764, 628, 220, 220, 220, 337, 36252, 50, 751, 62, 499, 441, 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, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 16624, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 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, 751, 62, 7890, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 7890, 62, 11250, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 7890, 62, 11250, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 16624 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
interface ZAVE_IF_STUDENT_E public . methods GET_EMAIL returning value(RV_EMAIL) type ZAVE_STUD_EMAIL . methods GET_AVG_MARK returning value(RV_AVG_MARK) type ZAVE_STUD_AVG_MARK . methods GET_ELLIGIBLE returning value(RV_ELLIGIBLE) type BOOLE_D . methods GET_FIRST_NAME returning value(RV_FIRST_NAME) type ZAVE_STUD_FIRST_NAME . methods GET_LAST_NAME returning value(RV_LAST_NAME) type ZAVE_STUD_LAST_NAME . methods GET_PHONE_NUMBER . methods SET_ADDRESS . methods SET_AVG_MARK . methods SET_ELLIGIBLE . methods SET_EMAIL . methods SET_FIRST_NAME . methods SET_ID . methods SET_LAST_NAME . methods SET_PHONE_NUMBER . endinterface.
[ 39994, 1168, 32, 6089, 62, 5064, 62, 2257, 8322, 3525, 62, 36, 198, 220, 1171, 764, 628, 198, 220, 5050, 17151, 62, 27630, 4146, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 49, 53, 62, 27630, 4146, 8, 2099, 1168, 32, 6089, 62, 2257, 8322, 62, 27630, 4146, 764, 198, 220, 5050, 17151, 62, 10116, 38, 62, 44, 14175, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 49, 53, 62, 10116, 38, 62, 44, 14175, 8, 2099, 1168, 32, 6089, 62, 2257, 8322, 62, 10116, 38, 62, 44, 14175, 764, 198, 220, 5050, 17151, 62, 23304, 3528, 34563, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 49, 53, 62, 23304, 3528, 34563, 8, 2099, 347, 6684, 2538, 62, 35, 764, 198, 220, 5050, 17151, 62, 39776, 2257, 62, 20608, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 49, 53, 62, 39776, 2257, 62, 20608, 8, 2099, 1168, 32, 6089, 62, 2257, 8322, 62, 39776, 2257, 62, 20608, 764, 198, 220, 5050, 17151, 62, 43, 11262, 62, 20608, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 49, 53, 62, 43, 11262, 62, 20608, 8, 2099, 1168, 32, 6089, 62, 2257, 8322, 62, 43, 11262, 62, 20608, 764, 198, 220, 5050, 17151, 62, 11909, 11651, 62, 41359, 13246, 764, 198, 220, 5050, 25823, 62, 2885, 7707, 7597, 764, 198, 220, 5050, 25823, 62, 10116, 38, 62, 44, 14175, 764, 198, 220, 5050, 25823, 62, 23304, 3528, 34563, 764, 198, 220, 5050, 25823, 62, 27630, 4146, 764, 198, 220, 5050, 25823, 62, 39776, 2257, 62, 20608, 764, 198, 220, 5050, 25823, 62, 2389, 764, 198, 220, 5050, 25823, 62, 43, 11262, 62, 20608, 764, 198, 220, 5050, 25823, 62, 11909, 11651, 62, 41359, 13246, 764, 198, 437, 39994, 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 ]
*&---------------------------------------------------------------------* *& Report Y_SAMPAT_44. *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT Y_SAMPAT_44. PARAMETERS : i_knumv TYPE konv-knumv, i_kposn TYPE konv-kposn, i_stunr TYPE konv-stunr, i_zaehk TYPE konv-zaehk. select * from vbak into table @data(lt_data123) where vbeln = '123456'. loop at lt_data123 INTO data(ls_data123). MODIFY lt_data123 from ls_data123 ."INDEX 1. " MODIFY ... INDEX for result of SELECT statement at ... line ... endloop. SELECT * FROM VBAK INTO TABLE @DATA(LT_DATA) WHERE VBELN = '123456' . " Select-Statement can be transformed. ...% of fields used read table lt_data into data(ls_data) index 1. SELECT * FROM KONV INTO TABLE @DATA(LV_KONV) WHERE KNUMV EQ @I_KNUMV AND KPOSN EQ @I_KPOSN AND STUNR EQ @I_STUNR. " ORDER BY PRIMARY KEY . if sy-subrc EQ 0. update konv set waers = '12' where knumv = i_knumv and kposn = i_kposn and stunr = i_stunr and zaehk = i_zaehk. ENDIF.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 575, 62, 50, 23518, 1404, 62, 2598, 13, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 2200, 15490, 575, 62, 50, 23518, 1404, 62, 2598, 13, 198, 198, 27082, 2390, 2767, 4877, 1058, 1312, 62, 15418, 388, 85, 41876, 479, 261, 85, 12, 15418, 388, 85, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 74, 1930, 77, 41876, 479, 261, 85, 12, 74, 1930, 77, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 301, 403, 81, 41876, 479, 261, 85, 12, 301, 403, 81, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 89, 3609, 71, 74, 41876, 479, 261, 85, 12, 89, 3609, 71, 74, 13, 198, 198, 19738, 1635, 422, 410, 65, 461, 656, 3084, 2488, 7890, 7, 2528, 62, 7890, 10163, 8, 810, 410, 6667, 77, 796, 705, 10163, 29228, 4458, 198, 198, 26268, 379, 300, 83, 62, 7890, 10163, 39319, 1366, 7, 7278, 62, 7890, 10163, 737, 198, 220, 220, 220, 19164, 5064, 56, 300, 83, 62, 7890, 10163, 422, 43979, 62, 7890, 10163, 22135, 12115, 6369, 352, 13, 220, 220, 220, 220, 220, 366, 19164, 5064, 56, 2644, 24413, 6369, 329, 1255, 286, 33493, 2643, 379, 2644, 1627, 2644, 198, 437, 26268, 13, 628, 33493, 1635, 16034, 569, 4339, 42, 39319, 43679, 2488, 26947, 7, 27734, 62, 26947, 8, 33411, 569, 33, 3698, 45, 796, 705, 10163, 29228, 6, 764, 220, 220, 220, 366, 9683, 12, 48682, 460, 307, 14434, 13, 2644, 4, 286, 7032, 973, 198, 198, 961, 3084, 300, 83, 62, 7890, 656, 1366, 7, 7278, 62, 7890, 8, 6376, 352, 13, 198, 198, 46506, 1635, 16034, 509, 1340, 53, 39319, 43679, 2488, 26947, 7, 30976, 62, 42, 1340, 53, 8, 33411, 22466, 5883, 53, 36529, 2488, 40, 62, 29132, 5883, 53, 198, 5357, 509, 37997, 45, 36529, 2488, 40, 62, 42, 37997, 45, 198, 5357, 3563, 4944, 49, 36529, 2488, 40, 62, 2257, 4944, 49, 13, 198, 1, 38678, 11050, 4810, 3955, 13153, 35374, 764, 198, 198, 361, 827, 12, 7266, 6015, 36529, 657, 13, 198, 220, 220, 220, 4296, 479, 261, 85, 900, 2082, 364, 796, 705, 1065, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 810, 638, 388, 85, 796, 1312, 62, 15418, 388, 85, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 290, 479, 1930, 77, 796, 1312, 62, 74, 1930, 77, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 290, 7991, 81, 796, 1312, 62, 301, 403, 81, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 290, 1976, 3609, 71, 74, 796, 1312, 62, 89, 3609, 71, 74, 13, 198, 10619, 5064, 13 ]
[ 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 ]
INTERFACE y_if_exemption_dispatcher PUBLIC . METHODS is_function_group_exempted IMPORTING VALUE(name) TYPE sobj_name RETURNING VALUE(is_exempted) TYPE abap_bool. METHODS is_class_exempted IMPORTING VALUE(name) TYPE sobj_name RETURNING VALUE(is_exempted) TYPE abap_bool. METHODS is_program_exempted IMPORTING VALUE(name) TYPE sobj_name RETURNING VALUE(is_exempted) TYPE abap_bool. ENDINTERFACE.
[ 41358, 49836, 331, 62, 361, 62, 1069, 11221, 62, 6381, 8071, 2044, 198, 220, 44731, 764, 628, 220, 337, 36252, 50, 318, 62, 8818, 62, 8094, 62, 42679, 276, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 3672, 8, 220, 220, 220, 220, 220, 220, 220, 41876, 27355, 73, 62, 3672, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 271, 62, 42679, 276, 8, 41876, 450, 499, 62, 30388, 13, 628, 220, 337, 36252, 50, 318, 62, 4871, 62, 42679, 276, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 3672, 8, 220, 220, 220, 220, 220, 220, 220, 41876, 27355, 73, 62, 3672, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 271, 62, 42679, 276, 8, 41876, 450, 499, 62, 30388, 13, 628, 220, 337, 36252, 50, 318, 62, 23065, 62, 42679, 276, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 3672, 8, 220, 220, 220, 220, 220, 220, 220, 41876, 27355, 73, 62, 3672, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 271, 62, 42679, 276, 8, 41876, 450, 499, 62, 30388, 13, 198, 10619, 41358, 49836, 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 ]
CLASS zcl_abapgit_object_para 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_para IMPLEMENTATION. METHOD zif_abapgit_object~has_changed_since. rv_changed = abap_true. ENDMETHOD. METHOD zif_abapgit_object~changed_by. * looks like "changed by user" is not stored in the database rv_user = c_user_unknown. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). * Data elements can refer to PARA objects rs_metadata-ddic = abap_true. ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_paramid TYPE tpara-paramid. SELECT SINGLE paramid FROM tpara INTO lv_paramid WHERE paramid = ms_item-obj_name. "#EC CI_GENBUFF rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: ls_tpara TYPE tpara, ls_tparat TYPE tparat. SELECT SINGLE * FROM tpara INTO ls_tpara WHERE paramid = ms_item-obj_name. "#EC CI_GENBUFF IF sy-subrc <> 0. RETURN. ENDIF. SELECT SINGLE * FROM tparat INTO ls_tparat WHERE paramid = ms_item-obj_name AND sprache = mv_language. "#EC CI_GENBUFF "#EC CI_SUBRC io_xml->add( iv_name = 'TPARA' ig_data = ls_tpara ). io_xml->add( iv_name = 'TPARAT' ig_data = ls_tparat ). ENDMETHOD. METHOD zif_abapgit_object~deserialize. * see fm RS_PARAMETER_ADD and RS_PARAMETER_EDIT DATA: lv_mode TYPE c LENGTH 1, ls_tpara TYPE tpara, ls_tparat TYPE tparat. SELECT SINGLE * FROM tpara INTO ls_tpara WHERE paramid = ms_item-obj_name. "#EC CI_GENBUFF IF sy-subrc = 0. lv_mode = 'M'. ELSE. lv_mode = 'I'. ENDIF. io_xml->read( EXPORTING iv_name = 'TPARA' CHANGING cg_data = ls_tpara ). io_xml->read( EXPORTING iv_name = 'TPARAT' CHANGING cg_data = ls_tparat ). CALL FUNCTION 'RS_CORR_INSERT' EXPORTING object = ms_item-obj_name object_class = 'PARA' mode = lv_mode global_lock = abap_true devclass = iv_package master_language = mv_language EXCEPTIONS cancelled = 1 permission_failure = 2 unknown_objectclass = 3 OTHERS = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from RS_CORR_INSERT, PARA' ). ENDIF. MODIFY tpara FROM ls_tpara. "#EC CI_SUBRC ASSERT sy-subrc = 0. MODIFY tparat FROM ls_tparat. "#EC CI_SUBRC ASSERT sy-subrc = 0. ENDMETHOD. METHOD zif_abapgit_object~delete. " We can't use FM RS_PARAMETER_DELETE because of the popup to confirm "Therefore we have to reimplement most of the FMs logic DATA: lv_paramid TYPE tpara-paramid, ls_transpkey TYPE trkey. lv_paramid = ms_item-obj_name. CALL FUNCTION 'RS_ACCESS_PERMISSION' EXPORTING global_lock = abap_true language_upd_exit = 'RS_PARAMETER_LANGUAGE_EXIT' " Name FuBa for maintenance language change object = lv_paramid object_class = ms_item-obj_type suppress_language_check = space EXCEPTIONS canceled_in_corr = 1 enqueued_by_user = 2 enqueue_system_failure = 3 illegal_parameter_values = 4 locked_by_author = 5 no_modify_permission = 6 no_show_permission = 7 permission_failure = 8 request_language_denied = 9 OTHERS = 10. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. SELECT COUNT(*) FROM cross WHERE ( type = 'P' OR type = 'Q' ) AND name = lv_paramid. IF sy-subrc = 0. zcx_abapgit_exception=>raise( 'PARA: Parameter is still used' ). ELSE. SELECT COUNT(*) FROM dd04l BYPASSING BUFFER WHERE memoryid = lv_paramid AND as4local = 'A'. IF sy-subrc = 0. zcx_abapgit_exception=>raise( 'PARA: Parameter is still used' ). ENDIF. ENDIF. CALL FUNCTION 'RS_CORR_INSERT' EXPORTING global_lock = abap_true object = lv_paramid object_class = 'PARA' mode = 'D' IMPORTING transport_key = ls_transpkey EXCEPTIONS cancelled = 01 permission_failure = 02 unknown_objectclass = 03. IF sy-subrc = 0. DELETE FROM tpara WHERE paramid = lv_paramid. DELETE FROM tparat WHERE paramid = lv_paramid. IF sy-subrc = 0. CALL FUNCTION 'RS_TREE_OBJECT_PLACEMENT' EXPORTING object = lv_paramid operation = 'DELETE' type = 'CR'. ENDIF. ELSE. zcx_abapgit_exception=>raise( 'error from RS_CORR_INSERT' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~jump. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ms_item-obj_name object_type = 'PARA' in_new_window = abap_true. 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. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 1845, 64, 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, 1845, 64, 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, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 198, 9, 3073, 588, 366, 40985, 416, 2836, 1, 318, 407, 8574, 287, 262, 6831, 198, 220, 220, 220, 374, 85, 62, 7220, 796, 269, 62, 7220, 62, 34680, 13, 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, 9, 6060, 4847, 460, 3522, 284, 350, 24401, 5563, 198, 220, 220, 220, 44608, 62, 38993, 12, 1860, 291, 796, 450, 499, 62, 7942, 13, 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, 17143, 312, 41876, 256, 1845, 64, 12, 17143, 312, 13, 628, 198, 220, 220, 220, 33493, 311, 2751, 2538, 5772, 312, 16034, 256, 1845, 64, 39319, 300, 85, 62, 17143, 312, 198, 220, 220, 220, 220, 220, 33411, 5772, 312, 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, 25113, 2943, 14514, 62, 35353, 19499, 5777, 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, 1845, 64, 220, 41876, 256, 1845, 64, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 83, 1845, 265, 41876, 256, 1845, 265, 13, 628, 198, 220, 220, 220, 33493, 311, 2751, 2538, 1635, 16034, 256, 1845, 64, 39319, 43979, 62, 83, 1845, 64, 198, 220, 220, 220, 220, 220, 33411, 5772, 312, 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, 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, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 33493, 311, 2751, 2538, 1635, 16034, 256, 1845, 265, 39319, 43979, 62, 83, 1845, 265, 198, 220, 220, 220, 220, 220, 33411, 5772, 312, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 198, 220, 220, 220, 220, 220, 5357, 7500, 4891, 796, 285, 85, 62, 16129, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 14514, 62, 35353, 19499, 5777, 25113, 2943, 14514, 62, 50, 10526, 7397, 628, 220, 220, 220, 33245, 62, 19875, 3784, 2860, 7, 21628, 62, 3672, 796, 705, 7250, 24401, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45329, 62, 7890, 796, 43979, 62, 83, 1845, 64, 6739, 198, 220, 220, 220, 33245, 62, 19875, 3784, 2860, 7, 21628, 62, 3672, 796, 705, 7250, 1503, 1404, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45329, 62, 7890, 796, 43979, 62, 83, 1845, 265, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 8906, 48499, 1096, 13, 198, 9, 766, 277, 76, 19340, 62, 27082, 2390, 2767, 1137, 62, 29266, 290, 19340, 62, 27082, 2390, 2767, 1137, 62, 24706, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 14171, 220, 220, 41876, 269, 406, 49494, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 83, 1845, 64, 220, 41876, 256, 1845, 64, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 83, 1845, 265, 41876, 256, 1845, 265, 13, 628, 198, 220, 220, 220, 33493, 311, 2751, 2538, 1635, 16034, 256, 1845, 64, 39319, 43979, 62, 83, 1845, 64, 198, 220, 220, 220, 220, 220, 33411, 5772, 312, 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, 25113, 2943, 14514, 62, 35353, 19499, 5777, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 14171, 796, 705, 44, 4458, 198, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 14171, 796, 705, 40, 4458, 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, 7250, 24401, 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, 83, 1845, 64, 6739, 198, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 7250, 1503, 1404, 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, 83, 1845, 265, 6739, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 6998, 62, 44879, 49, 62, 20913, 17395 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
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: tt_tpool_i18n TYPE STANDARD TABLE OF ty_tpool_i18n . 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 !io_xml TYPE REF TO zcl_abapgit_xml_output RAISING zcx_abapgit_exception . METHODS deserialize_xml IMPORTING !io_xml TYPE REF TO zcl_abapgit_xml_input !iv_package TYPE devclass RAISING zcx_abapgit_exception . METHODS serialize_includes RAISING zcx_abapgit_exception . METHODS deserialize_includes IMPORTING !io_xml TYPE REF TO zcl_abapgit_xml_input !iv_package TYPE devclass !ii_log TYPE REF TO zif_abapgit_log RAISING zcx_abapgit_exception . METHODS are_exceptions_class_based IMPORTING !iv_function_name TYPE rs38l_fnam RETURNING VALUE(rv_return) TYPE abap_bool 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 !io_xml TYPE REF TO zcl_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 !io_xml TYPE REF TO zcl_abapgit_xml_output RAISING zcx_abapgit_exception . METHODS deserialize_texts IMPORTING !iv_prog_name TYPE programm !io_xml TYPE REF TO zcl_abapgit_xml_input RAISING zcx_abapgit_exception . ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_FUGR IMPLEMENTATION. METHOD are_exceptions_class_based. DATA: lt_dokumentation TYPE TABLE OF funct, lt_exception_list TYPE TABLE OF rsexc, lt_export_parameter TYPE TABLE OF rsexp, lt_import_parameter TYPE TABLE OF rsimp, lt_tables_parameter TYPE TABLE OF rstbl. CALL FUNCTION 'FUNCTION_IMPORT_DOKU' EXPORTING funcname = iv_function_name IMPORTING exception_class = rv_return TABLES dokumentation = lt_dokumentation exception_list = lt_exception_list export_parameter = lt_export_parameter import_parameter = lt_import_parameter tables_parameter = lt_tables_parameter EXCEPTIONS error_message = 1 function_not_found = 2 invalid_name = 3 OTHERS = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from FUNCTION_IMPORT_DOKU' ). ENDIF. ENDMETHOD. 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 zcl_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 ). io_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 tt_tpool_i18n, lt_tpool TYPE textpool_table. FIELD-SYMBOLS <ls_tpool> LIKE LINE OF lt_tpool_i18n. io_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( io_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. io_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. 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' ). ENDIF. 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 zcl_abapgit_xml_input. FIELD-SYMBOLS: <lv_include> LIKE LINE OF lt_includes. io_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, cnam TYPE reposrc-cnam, 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. 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. SELECT progname cnam FROM reposrc INTO TABLE lt_reposrc FOR ALL ENTRIES IN rt_includes WHERE progname = rt_includes-table_line AND r3state = 'A'. 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. 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. ls_function-exception_classes = are_exceptions_class_based( <ls_func>-funcname ). 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 tt_tpool_i18n, lt_tpool TYPE textpool_table. FIELD-SYMBOLS <ls_tpool> LIKE LINE OF lt_tpool_i18n. IF io_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. 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. io_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( ). io_xml->add( iv_name = 'AREAT' ig_data = lv_areat ). io_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( io_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( io_xml = io_xml iv_package = iv_package ii_log = ii_log ). lv_program_name = main_name( ). deserialize_texts( iv_prog_name = lv_program_name io_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 io_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, 256, 83, 62, 83, 7742, 62, 72, 1507, 77, 41876, 49053, 9795, 43679, 3963, 1259, 62, 83, 7742, 62, 72, 1507, 77, 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, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS ltd_clean_code_manager DEFINITION FOR TESTING. PUBLIC SECTION. INTERFACES: y_if_clean_code_manager. ENDCLASS. CLASS ltd_clean_code_manager IMPLEMENTATION. METHOD y_if_clean_code_manager~read_check_customizing. result = VALUE #( ( apply_on_testcode = abap_true apply_on_productive_code = abap_true prio = 'E' threshold = 3 ) ( apply_on_testcode = abap_true apply_on_productive_code = abap_true prio = 'W' threshold = 2 ) ). ENDMETHOD. METHOD y_if_clean_code_manager~calculate_obj_creation_date. result = '20190101'. ENDMETHOD. ENDCLASS. CLASS ltd_ref_scan_manager DEFINITION INHERITING FROM y_scan_manager_double FOR TESTING. PUBLIC SECTION. METHODS set_data_for_ok. METHODS set_data_for_error. METHODS set_pseudo_comment_ok. PRIVATE SECTION. ENDCLASS. CLASS ltd_ref_scan_manager IMPLEMENTATION. METHOD set_data_for_ok. inject_code( VALUE #( ( 'REPORT y_example. ' ) ( ' CLASS y_example_class DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' PROTECTED SECTION. ' ) ( ' METHODS test. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example_class IMPLEMENTATION. ' ) ( ' METHOD test. ' ) ( ' DATA(zero) = 0. ' ) ( ' IF zero = 0. ' ) ( ' "Do something... ' ) ( ' ENDIF. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ( ' START-OF-SELECTION. ' ) ( ' DATA(zero) = 0. ' ) ( ' IF zero = 0. ' ) ( ' "Do something... ' ) ( ' ENDIF. ' ) ) ). ENDMETHOD. METHOD set_data_for_error. inject_code( VALUE #( ( 'REPORT y_example. ' ) ( ' CLASS y_example_class DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' PROTECTED SECTION. ' ) ( ' METHODS test. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example_class IMPLEMENTATION. ' ) ( ' METHOD test. ' ) ( ' DATA(zero) = 0. ' ) ( ' DATA(one) = 1. ' ) ( ' DATA(two) = 2. ' ) ( ' IF zero = 0 ' ) ( ' AND one = 1 ' ) ( ' AND two = 2. ' ) ( ' "Do something... ' ) ( ' ENDIF. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ( ' START-OF-SELECTION. ' ) ( ' DATA(zero) = 0. ' ) ( ' DATA(one) = 1. ' ) ( ' DATA(two) = 2. ' ) ( ' IF zero = 0 ' ) ( ' AND one = 1 ' ) ( ' AND two = 2. ' ) ( ' "Do something... ' ) ( ' ENDIF. ' ) ) ). ENDMETHOD. METHOD set_pseudo_comment_ok. inject_code( VALUE #( ( 'REPORT y_example. ' ) ( ' CLASS y_example_class DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' PROTECTED SECTION. ' ) ( ' METHODS test. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example_class IMPLEMENTATION. ' ) ( ' METHOD test. ' ) ( ' DATA(zero) = 0. ' ) ( ' DATA(one) = 1. ' ) ( ' DATA(two) = 2. ' ) ( ' IF zero = 0 ' ) ( ' AND one = 1 ' ) ( ' AND two = 2. ' ) ( ' "Do something... ' ) ( ' ENDIF. ' ) ( ' ENDMETHOD. "#EC CI_NOES ' ) ( ' ENDCLASS. ' ) ( ' START-OF-SELECTION. ' ) ( ' DATA(zero) = 0. ' ) ( ' DATA(one) = 1. ' ) ( ' DATA(two) = 2. ' ) ( ' IF zero = 0 ' ) ( ' AND one = 1 ' ) ( ' AND two = 2. ' ) ( ' "Do something... ' ) ( ' ENDIF. "#EC CI_NOES ' ) ) ). ENDMETHOD. ENDCLASS. CLASS ltd_clean_code_exemption_no DEFINITION FOR TESTING INHERITING FROM y_exemption_handler. PUBLIC SECTION. METHODS: is_object_exempted REDEFINITION. ENDCLASS. CLASS ltd_clean_code_exemption_no IMPLEMENTATION. METHOD is_object_exempted. RETURN. ENDMETHOD. ENDCLASS. CLASS local_test_class DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PRIVATE SECTION. DATA: cut TYPE REF TO y_check_num_exec_statements, ref_scan_manager_double TYPE REF TO ltd_ref_scan_manager. METHODS: setup, assert_errors IMPORTING err_cnt TYPE i, assert_pseudo_comments IMPORTING pc_cnt TYPE i, is_bound FOR TESTING, num_exec_statements_ok FOR TESTING, num_exec_statements_error FOR TESTING, pseudo_comment_ok FOR TESTING. ENDCLASS. CLASS y_check_num_exec_statements DEFINITION LOCAL FRIENDS local_test_class. CLASS local_test_class IMPLEMENTATION. METHOD setup. cut = NEW y_check_num_exec_statements( ). ref_scan_manager_double = NEW ltd_ref_scan_manager( ). cut->ref_scan_manager ?= ref_scan_manager_double. cut->clean_code_manager = NEW ltd_clean_code_manager( ). cut->clean_code_exemption_handler = NEW ltd_clean_code_exemption_no( ). cut->attributes_maintained = abap_true. ENDMETHOD. METHOD is_bound. cl_abap_unit_assert=>assert_bound( EXPORTING act = cut ). ENDMETHOD. METHOD num_exec_statements_ok. ref_scan_manager_double->set_data_for_ok( ). cut->run( ). assert_errors( 0 ). assert_pseudo_comments( 0 ). ENDMETHOD. METHOD num_exec_statements_error. ref_scan_manager_double->set_data_for_error( ). cut->run( ). assert_errors( 2 ). assert_pseudo_comments( 0 ). ENDMETHOD. METHOD pseudo_comment_ok. ref_scan_manager_double->set_pseudo_comment_ok( ). cut->run( ). assert_errors( 0 ). assert_pseudo_comments( 2 ). ENDMETHOD. METHOD assert_errors. cl_abap_unit_assert=>assert_equals( EXPORTING act = cut->statistics->get_number_errors( ) exp = err_cnt ). ENDMETHOD. METHOD assert_pseudo_comments. cl_abap_unit_assert=>assert_equals( EXPORTING act = cut->statistics->get_number_pseudo_comments( ) exp = pc_cnt ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 8671, 62, 27773, 62, 8189, 62, 37153, 5550, 20032, 17941, 7473, 43001, 2751, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 331, 62, 361, 62, 27773, 62, 8189, 62, 37153, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 8671, 62, 27773, 62, 8189, 62, 37153, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 331, 62, 361, 62, 27773, 62, 8189, 62, 37153, 93, 961, 62, 9122, 62, 23144, 2890, 13, 198, 220, 220, 220, 1255, 796, 26173, 8924, 1303, 7, 357, 4174, 62, 261, 62, 9288, 8189, 796, 450, 499, 62, 7942, 4174, 62, 261, 62, 27781, 62, 8189, 796, 450, 499, 62, 7942, 1293, 78, 796, 705, 36, 6, 11387, 796, 513, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 4174, 62, 261, 62, 9288, 8189, 796, 450, 499, 62, 7942, 4174, 62, 261, 62, 27781, 62, 8189, 796, 450, 499, 62, 7942, 1293, 78, 796, 705, 54, 6, 11387, 796, 362, 1267, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 331, 62, 361, 62, 27773, 62, 8189, 62, 37153, 93, 9948, 3129, 378, 62, 26801, 62, 38793, 62, 4475, 13, 198, 220, 220, 220, 1255, 796, 705, 23344, 486, 486, 4458, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 628, 198, 31631, 300, 8671, 62, 5420, 62, 35836, 62, 37153, 5550, 20032, 17941, 3268, 16879, 2043, 2751, 16034, 331, 62, 35836, 62, 37153, 62, 23352, 7473, 43001, 2751, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 7890, 62, 1640, 62, 482, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 7890, 62, 1640, 62, 18224, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 7752, 12003, 62, 23893, 62, 482, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 31631, 300, 8671, 62, 5420, 62, 35836, 62, 37153, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 900, 62, 7890, 62, 1640, 62, 482, 13, 198, 220, 220, 220, 8677, 62, 8189, 7, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 357, 705, 2200, 15490, 331, 62, 20688, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 42715, 331, 62, 20688, 62, 4871, 5550, 20032, 17941, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 44731, 44513, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 48006, 9782, 1961, 44513, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 337, 36252, 50, 1332, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 23578, 31631, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 42715, 331, 62, 20688, 62, 4871, 30023, 2538, 10979, 6234, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 337, 36252, 1332, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 42865, 7, 22570, 8, 796, 657, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 16876, 6632, 796, 657, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 220, 220, 366, 5211, 1223, 986, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 23578, 5064, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 23578, 49273, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 23578, 31631, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 33303, 12, 19238, 12, 46506, 2849, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 42865, 7, 22570, 8, 796, 657, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 16876, 6632, 796, 657, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 366, 5211, 1223, 986, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 23578, 5064, 13, 705, 1267, 198, 220, 220, 220, 1267, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 900, 62, 7890, 62, 1640, 62, 18224, 13, 198, 220, 220, 220, 8677, 62, 8189, 7, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 357, 705, 2200, 15490, 331, 62, 20688, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 42715, 331, 62, 20688, 62, 4871, 5550, 20032, 17941, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 44731, 44513, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 48006, 9782, 1961, 44513, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 337, 36252, 50, 1332, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 23578, 31631, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 42715, 331, 62, 20688, 62, 4871, 30023, 2538, 10979, 6234, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 337, 36252, 1332, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 42865, 7, 22570, 8, 796, 657, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 42865, 7, 505, 8, 796, 352, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 42865, 7, 11545, 8, 796, 362, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 16876, 6632, 796, 657, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 5357, 530, 796, 352, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 5357, 734, 796, 362, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 220, 220, 366, 5211, 1223, 986, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 23578, 5064, 13, 705, 1267, 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, 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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 ]
CLASS y_check_empty_procedures 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. METHODS has_found_start_procedure IMPORTING statement TYPE sstmnt RETURNING VALUE(result) TYPE abap_bool. METHODS is_next_statement_end_proc IMPORTING statement TYPE sstmnt RETURNING VALUE(result) TYPE abap_bool. ENDCLASS. CLASS Y_CHECK_EMPTY_PROCEDURES IMPLEMENTATION. METHOD constructor. super->constructor( ). description = 'Empty Procedure'(001). category = 'Y_CHECK_CATEGORY'. version = '0000'. position = '300'. has_documentation = abap_true. settings-pseudo_comment = '"#EC EMPTY_PROCEDURE' ##NO_TEXT. settings-disable_threshold_selection = abap_true. settings-threshold = 0. settings-prio = 'W'. settings-documentation = |{ c_docs_path-checks }empty-procedure.md|. y_message_registration=>add_message( EXPORTING check_name = me->myname text = '[Clean Code]: Empty Procedure should be removed!'(102) pseudo_comment = settings-pseudo_comment CHANGING messages = me->scimessages ). ENDMETHOD. METHOD get_next_token_from_index. LOOP AT ref_scan_manager->get_tokens( ) ASSIGNING FIELD-SYMBOL(<token>) FROM index WHERE type EQ 'I'. IF result IS INITIAL. result = <token>. EXIT. ENDIF. ENDLOOP. ENDMETHOD. METHOD has_found_start_procedure. result = abap_false. CASE get_next_token_from_index( statement-from )-str. WHEN 'FORM' OR 'METHOD' OR 'MODULE'. result = abap_true. ENDCASE. ENDMETHOD. METHOD inspect_tokens. CHECK has_found_start_procedure( statement ) = abap_true AND is_next_statement_end_proc( statement ) = abap_true. DATA(check_configuration) = detect_check_configuration( statement ). IF check_configuration IS INITIAL. RETURN. ENDIF. raise_error( statement_level = statement-level statement_index = index + 1 statement_from = statement-to error_priority = check_configuration-prio ). ENDMETHOD. METHOD is_next_statement_end_proc. result = abap_false. CASE get_next_token_from_index( statement-to + 1 )-str. WHEN 'ENDFORM' OR 'ENDMETHOD' OR 'ENDMODULE'. result = abap_true. ENDCASE. ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9122, 62, 28920, 62, 1676, 771, 942, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 331, 62, 9122, 62, 8692, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 10104, 62, 83, 482, 641, 23848, 36, 20032, 17941, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 19545, 62, 30001, 62, 6738, 62, 9630, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 6376, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 336, 3369, 87, 13, 628, 220, 220, 220, 337, 36252, 50, 468, 62, 9275, 62, 9688, 62, 1676, 771, 495, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 2643, 220, 220, 220, 220, 41876, 264, 301, 76, 429, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 337, 36252, 50, 318, 62, 19545, 62, 26090, 62, 437, 62, 36942, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 2643, 220, 220, 220, 220, 41876, 264, 301, 76, 429, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 575, 62, 50084, 62, 39494, 9936, 62, 4805, 4503, 1961, 29514, 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, 6764, 796, 705, 40613, 34997, 6, 7, 8298, 737, 198, 220, 220, 220, 6536, 220, 220, 220, 796, 705, 56, 62, 50084, 62, 34, 6158, 38, 15513, 4458, 198, 220, 220, 220, 2196, 220, 220, 220, 220, 796, 705, 2388, 4458, 198, 220, 220, 220, 2292, 220, 220, 220, 796, 705, 6200, 4458, 198, 220, 220, 220, 468, 62, 22897, 341, 796, 450, 499, 62, 7942, 13, 628, 220, 220, 220, 6460, 12, 7752, 12003, 62, 23893, 796, 705, 1, 2, 2943, 38144, 9936, 62, 4805, 4503, 1961, 11335, 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, 705, 54, 4458, 198, 220, 220, 220, 6460, 12, 22897, 341, 796, 930, 90, 269, 62, 31628, 62, 6978, 12, 42116, 1782, 28920, 12, 1676, 771, 495, 13, 9132, 91, 13, 628, 220, 220, 220, 331, 62, 20500, 62, 2301, 33397, 14804, 2860, 62, 20500, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2198, 62, 3672, 220, 220, 220, 220, 796, 502, 3784, 1820, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 44438, 32657, 6127, 5974, 33523, 34997, 815, 307, 4615, 13679, 7, 15377, 8, 198, 220, 220, 220, 220, 220, 220, 220, 24543, 62, 23893, 796, 6460, 12, 7752, 12003, 62, 23893, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 6218, 220, 220, 220, 220, 220, 220, 796, 502, 3784, 1416, 320, 408, 1095, 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, 1136, 62, 83, 482, 641, 7, 1267, 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, 468, 62, 9275, 62, 9688, 62, 1676, 771, 495, 13, 198, 220, 220, 220, 1255, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 42001, 651, 62, 19545, 62, 30001, 62, 6738, 62, 9630, 7, 2643, 12, 6738, 1267, 12, 2536, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 21389, 6, 6375, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 49273, 6, 6375, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 33365, 24212, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 23578, 34, 11159, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 10104, 62, 83, 482, 641, 13, 198, 220, 220, 220, 5870, 25171, 468, 62, 9275, 62, 9688, 62, 1676, 771, 495, 7, 2643, 1267, 796, 450, 499, 62, 7942, 5357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 19545, 62, 26090, 62, 437, 62, 36942, 7, 2643, 1267, 796, 450, 499, 62, 7942, 13, 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, 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, 6376, 1343, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 6738, 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 ]
CLASS zcl_abapgit_objects_bridge DEFINITION PUBLIC FINAL CREATE PUBLIC INHERITING FROM zcl_abapgit_objects_super. PUBLIC SECTION. CLASS-METHODS class_constructor. METHODS constructor IMPORTING is_item TYPE zif_abapgit_definitions=>ty_item RAISING cx_sy_create_object_error. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. PRIVATE SECTION. DATA: mo_plugin TYPE REF TO object. TYPES: BEGIN OF ty_s_objtype_map, obj_typ TYPE trobjtype, plugin_class TYPE seoclsname, END OF ty_s_objtype_map, ty_t_objtype_map TYPE SORTED TABLE OF ty_s_objtype_map WITH UNIQUE KEY obj_typ. CLASS-DATA gt_objtype_map TYPE ty_t_objtype_map. ENDCLASS. CLASS zcl_abapgit_objects_bridge IMPLEMENTATION. METHOD class_constructor. DATA lt_plugin_class TYPE STANDARD TABLE OF seoclsname WITH DEFAULT KEY. DATA lv_plugin_class LIKE LINE OF lt_plugin_class. DATA lo_plugin TYPE REF TO object. DATA lt_plugin_obj_type TYPE objtyptable. DATA ls_objtype_map LIKE LINE OF gt_objtype_map. SELECT ext~clsname FROM vseoextend AS ext INTO TABLE lt_plugin_class WHERE ext~refclsname LIKE 'ZCL_ABAPGITP_OBJECT%' AND ext~version = '1'. "#EC CI_SUBRC CLEAR gt_objtype_map. LOOP AT lt_plugin_class INTO lv_plugin_class WHERE table_line <> 'ZCL_ABAPGITP_OBJECT_BY_SOBJ'. * have the generic plugin only as fallback TRY. CREATE OBJECT lo_plugin TYPE (lv_plugin_class). CATCH cx_sy_create_object_error. CONTINUE. ">>>>>>>>>>>>>> ENDTRY. CALL METHOD lo_plugin->('GET_SUPPORTED_OBJ_TYPES') IMPORTING rt_obj_type = lt_plugin_obj_type. ls_objtype_map-plugin_class = lv_plugin_class. LOOP AT lt_plugin_obj_type INTO ls_objtype_map-obj_typ. INSERT ls_objtype_map INTO TABLE gt_objtype_map. IF sy-subrc <> 0. * No exception in class-contructor possible. * Anyway, a shortdump is more appropriate in this case ASSERT 'There must not be' = |multiple abapGit-Plugins for the same object type { ls_objtype_map-obj_typ }|. ENDIF. ENDLOOP. ENDLOOP. "at plugins * and the same for the generic plugin if exists * have the generic plugin only as fallback LOOP AT lt_plugin_class INTO lv_plugin_class WHERE table_line = 'ZCL_ABAPGITP_OBJECT_BY_SOBJ'. CREATE OBJECT lo_plugin TYPE (lv_plugin_class). CALL METHOD lo_plugin->('GET_SUPPORTED_OBJ_TYPES') RECEIVING rt_obj_type = lt_plugin_obj_type. ls_objtype_map-plugin_class = lv_plugin_class. LOOP AT lt_plugin_obj_type INTO ls_objtype_map-obj_typ. INSERT ls_objtype_map INTO TABLE gt_objtype_map. "knowingly ignore the subrc ENDLOOP. ENDLOOP. "at plugins ENDMETHOD. METHOD constructor. DATA ls_objtype_map LIKE LINE OF gt_objtype_map. super->constructor( is_item = is_item iv_language = zif_abapgit_definitions=>c_english ). * determine the responsible plugin READ TABLE gt_objtype_map INTO ls_objtype_map WITH TABLE KEY obj_typ = is_item-obj_type. IF sy-subrc = 0. CREATE OBJECT mo_plugin TYPE (ls_objtype_map-plugin_class). CALL METHOD mo_plugin->('SET_ITEM') EXPORTING iv_obj_type = is_item-obj_type iv_obj_name = is_item-obj_name. ELSE. RAISE EXCEPTION TYPE cx_sy_create_object_error EXPORTING classname = 'LCL_OBJECTS_BRIDGE'. ENDIF. ENDMETHOD. 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 lx_plugin TYPE REF TO cx_static_check. TRY. CALL METHOD mo_plugin->('ZIF_ABAPGITP_PLUGIN~DELETE'). CATCH cx_static_check INTO lx_plugin. zcx_abapgit_exception=>raise( lx_plugin->get_text( ) ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lx_plugin TYPE REF TO cx_static_check. TRY. CALL METHOD mo_plugin->('WRAP_DESERIALIZE') EXPORTING iv_package = iv_package io_xml = io_xml. CATCH cx_static_check INTO lx_plugin. zcx_abapgit_exception=>raise( lx_plugin->get_text( ) ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~exists. CALL METHOD mo_plugin->('ZIF_ABAPGITP_PLUGIN~EXISTS') RECEIVING rv_bool = rv_bool. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. CALL METHOD mo_plugin->('ZIF_ABAPGITP_PLUGIN~GET_METADATA') RECEIVING rs_metadata = rs_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. CALL METHOD mo_plugin->('ZIF_ABAPGITP_PLUGIN~JUMP'). ENDMETHOD. METHOD zif_abapgit_object~serialize. CALL METHOD mo_plugin->('WRAP_SERIALIZE') EXPORTING io_xml = io_xml. ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = abap_true. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 9458, 5550, 20032, 17941, 44731, 25261, 29244, 6158, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 1398, 62, 41571, 273, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 318, 62, 9186, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 43213, 62, 1837, 62, 17953, 62, 15252, 62, 18224, 13, 628, 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, 42865, 25, 6941, 62, 33803, 41876, 4526, 37, 5390, 2134, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 82, 62, 26801, 4906, 62, 8899, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26181, 62, 28004, 220, 220, 220, 220, 220, 41876, 4161, 50007, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13877, 62, 4871, 41876, 384, 420, 7278, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 82, 62, 26801, 4906, 62, 8899, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 83, 62, 26801, 4906, 62, 8899, 41876, 311, 9863, 1961, 43679, 3963, 1259, 62, 82, 62, 26801, 4906, 62, 8899, 13315, 4725, 33866, 8924, 35374, 26181, 62, 28004, 13, 628, 220, 220, 220, 42715, 12, 26947, 308, 83, 62, 26801, 4906, 62, 8899, 41876, 1259, 62, 83, 62, 26801, 4906, 62, 8899, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 9458, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1398, 62, 41571, 273, 13, 628, 220, 220, 220, 42865, 300, 83, 62, 33803, 62, 4871, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 384, 420, 7278, 3672, 13315, 5550, 38865, 35374, 13, 198, 220, 220, 220, 42865, 300, 85, 62, 33803, 62, 4871, 220, 220, 220, 34178, 48920, 3963, 300, 83, 62, 33803, 62, 4871, 13, 198, 220, 220, 220, 42865, 2376, 62, 33803, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 2134, 13, 198, 220, 220, 220, 42865, 300, 83, 62, 33803, 62, 26801, 62, 4906, 41876, 26181, 774, 457, 540, 13, 198, 220, 220, 220, 42865, 43979, 62, 26801, 4906, 62, 8899, 220, 220, 220, 220, 34178, 48920, 3963, 308, 83, 62, 26801, 4906, 62, 8899, 13, 628, 198, 220, 220, 220, 33493, 1070, 93, 565, 82, 3672, 198, 220, 220, 220, 220, 220, 16034, 410, 325, 78, 2302, 437, 7054, 1070, 198, 220, 220, 220, 220, 220, 39319, 43679, 300, 83, 62, 33803, 62, 4871, 198, 220, 220, 220, 220, 220, 33411, 1070, 93, 5420, 565, 82, 3672, 34178, 705, 57, 5097, 62, 6242, 2969, 38, 2043, 47, 62, 9864, 23680, 4, 6, 198, 220, 220, 220, 220, 220, 5357, 1070, 93, 9641, 796, 705, 16, 4458, 220, 220, 220, 220, 220, 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, 50, 10526, 7397, 628, 220, 220, 220, 30301, 1503, 308, 83, 62, 26801, 4906, 62, 8899, 13, 198, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 33803, 62, 4871, 39319, 300, 85, 62, 33803, 62, 4871, 198, 220, 220, 220, 220, 220, 220, 220, 33411, 3084, 62, 1370, 1279, 29, 705, 57, 5097, 62, 6242, 2969, 38, 2043, 47, 62, 9864, 23680, 62, 17513, 62, 50, 9864, 41, 4458, 198, 9, 423, 262, 14276, 13877, 691, 355, 2121, 1891, 198, 220, 220, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 2376, 62, 33803, 41876, 357, 6780, 62, 33803, 62, 4871, 737, 198, 220, 220, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 17953, 62, 15252, 62, 18224, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43659, 8924, 13, 366, 33717, 16471, 4211, 198, 220, 220, 220, 220, 220, 23578, 40405, 13, 628, 220, 220, 220, 220, 220, 42815, 337, 36252, 2376, 62, 33803, 3784, 10786, 18851, 62, 40331, 15490, 1961, 62, 9864, 41, 62, 9936, 47, 1546, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 83, 62, 26801, 62, 4906, 796, 300, 83, 62, 33803, 62, 26801, 62, 4906, 13, 628, 220, 220, 220, 220, 220, 43979, 62, 26801, 4906, 62, 8899, 12, 33803, 62, 4871, 796, 300, 85, 62, 33803, 62, 4871, 13, 198, 220, 220, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 33803, 62, 26801, 62, 4906, 39319, 43979, 62, 26801, 4906, 62, 8899, 12, 26801, 62, 28004, 13, 198, 220, 220, 220, 220, 220, 220, 220, 29194, 17395, 43979, 62, 26801, 4906, 62, 8899, 39319, 43679, 308, 83, 62, 26801, 4906, 62, 8899, 13, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 9, 1400, 6631, 287, 1398, 12, 3642, 1356, 273, 1744, 13, 198, 9, 21836, 11, 257, 1790, 39455, 318, 517, 5035, 287, 428, 1339, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24994, 17395, 705, 1858, 1276, 407, 307, 6, 796, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 48101, 450, 499, 38, 270, 12, 23257, 1040, 329, 262, 976, 2134, 2099, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 26801, 4906, 62, 8899, 12, 26801, 62, 28004, 1782, 91, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1,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ement <em>entry_internal</em> and ideally overwrite "! <em>entry_msg_internal</em> for the logging logic. "! </p> CLASS zcl_alog_msg_logger_base DEFINITION PUBLIC INHERITING FROM zcl_alog_logger_base ABSTRACT CREATE PUBLIC. PUBLIC SECTION. INTERFACES: zif_alog_bapiret_logger, zif_alog_msg_logger. ALIASES: debug_msg FOR zif_alog_msg_logger~debug_msg, entry_bapiret FOR zif_alog_bapiret_logger~entry_bapiret, entry_bapiret_table FOR zif_alog_bapiret_logger~entry_bapiret_table, entry_msg FOR zif_alog_msg_logger~entry_msg, error_msg FOR zif_alog_msg_logger~error_msg, info_msg FOR zif_alog_msg_logger~info_msg, warning_msg FOR zif_alog_msg_logger~warning_msg. PROTECTED SECTION. METHODS: inform_attached_loggers REDEFINITION, "! Inform attached loggers using a message class message "! @parameter iv_msgid | Message id "! @parameter iv_msgno | Message number "! @parameter iv_msgty | Message type "! @parameter iv_msgv1 | Message variable 1 "! @parameter iv_msgv2 | Message variable 2 "! @parameter iv_msgv3 | Message variable 3 "! @parameter iv_msgv4 | Message variable 4 "! @raising zcx_alog_logging_failed | Logging failed "! @raising zcx_alog_unsupported_msgty | Message type unsupported inform_attached_loggers_msg IMPORTING VALUE(iv_msgid) TYPE syst_msgid DEFAULT sy-msgid VALUE(iv_msgno) TYPE syst_msgno DEFAULT sy-msgno VALUE(iv_msgty) TYPE syst_msgty DEFAULT sy-msgty VALUE(iv_msgv1) TYPE syst_msgv DEFAULT sy-msgv1 VALUE(iv_msgv2) TYPE syst_msgv DEFAULT sy-msgv2 VALUE(iv_msgv3) TYPE syst_msgv DEFAULT sy-msgv3 VALUE(iv_msgv4) TYPE syst_msgv DEFAULT sy-msgv4 RAISING zcx_alog_logging_failed zcx_alog_unsupported_msgty, "! Internal implementation of <em>zif_alog_msg_logger-&gtentry_msg( )</em> to do the logging "! <p> "! Default implementation redirects the message to <em>entry( )</em>, overwrite in subclasses "! to provide message class specific logic. "! </p> "! @parameter iv_msgid | Message id "! @parameter iv_msgno | Message number "! @parameter iv_msgty | Message type "! @parameter iv_msgv1 | Message variable 1 "! @parameter iv_msgv2 | Message variable 2 "! @parameter iv_msgv3 | Message variable 3 "! @parameter iv_msgv4 | Message variable 4 "! @raising zcx_alog_logging_failed | Logging failed "! @raising zcx_alog_unsupported_msgty | Message type unsupported entry_msg_internal IMPORTING VALUE(iv_msgid) TYPE syst_msgid DEFAULT sy-msgid VALUE(iv_msgno) TYPE syst_msgno DEFAULT sy-msgno VALUE(iv_msgty) TYPE syst_msgty DEFAULT sy-msgty VALUE(iv_msgv1) TYPE syst_msgv DEFAULT sy-msgv1 VALUE(iv_msgv2) TYPE syst_msgv DEFAULT sy-msgv2 VALUE(iv_msgv3) TYPE syst_msgv DEFAULT sy-msgv3 VALUE(iv_msgv4) TYPE syst_msgv DEFAULT sy-msgv4 RAISING zcx_alog_logging_failed zcx_alog_unsupported_msgty. PRIVATE SECTION. DATA: mv_block_entry_inform TYPE abap_bool . ENDCLASS. CLASS zcl_alog_msg_logger_base IMPLEMENTATION. METHOD entry_msg_internal. " Default implementation just redirects to entry( ) MESSAGE ID iv_msgid TYPE iv_msgty NUMBER iv_msgno WITH iv_msgv1 iv_msgv2 iv_msgv3 iv_msgv4 INTO DATA(lv_msg_text). " Attached loggers are already informed mv_block_entry_inform = abap_true. entry( iv_text = lv_msg_text io_type = zcl_alog_entry_type=>from_msgty( iv_msgty ) ). mv_block_entry_inform = abap_false. ENDMETHOD. METHOD inform_attached_loggers. " Inform attached loggers only if they were not already already informed by entry_msg( ) IF mv_block_entry_inform = abap_false. super->inform_attached_loggers( iv_text = iv_text io_type = io_type ). ENDIF. ENDMETHOD. METHOD inform_attached_loggers_msg. DATA: li_msg_logger TYPE REF TO zif_alog_msg_logger. LOOP AT mt_attached_loggers ASSIGNING FIELD-SYMBOL(<li_logger>). " Is it a message logger? IF CAST cl_abap_objectdescr( CAST cl_abap_refdescr( cl_abap_typedescr=>describe_by_data( li_msg_logger ) )->get_referenced_type( ) )->applies_to( <li_logger> ) = abap_true. " If it is inform it using entry_msg( ) li_msg_logger ?= <li_logger>. li_msg_logger->entry_msg( iv_msgid = iv_msgid iv_msgno = iv_msgno iv_msgty = iv_msgty iv_msgv1 = iv_msgv1 iv_msgv2 = iv_msgv2 iv_msgv3 = iv_msgv3 iv_msgv4 = iv_msgv4 ). FREE li_msg_logger. ELSE. " If it is not fall back to entry( ) MESSAGE ID iv_msgid TYPE iv_msgty NUMBER iv_msgno WITH iv_msgv1 iv_msgv2 iv_msgv3 iv_msgv4 INTO DATA(lv_msg_text). <li_logger>->entry( iv_text = lv_msg_text io_type = zcl_alog_entry_type=>from_msgty( iv_msgty ) ). ENDIF. ENDLOOP. ENDMETHOD. METHOD zif_alog_bapiret_logger~entry_bapiret. entry_msg( iv_msgid = is_return-id iv_msgno = is_return-number iv_msgty = is_return-type iv_msgv1 = is_return-message_v1 iv_msgv2 = is_return-message_v2 iv_msgv3 = is_return-message_v3 iv_msgv4 = is_return-message_v4 ). ENDMETHOD. METHOD zif_alog_bapiret_logger~entry_bapiret_table. LOOP AT it_return ASSIGNING FIELD-SYMBOL(<ls_return>). entry_bapiret( <ls_return> ). ENDLOOP. ENDMETHOD. METHOD zif_alog_msg_logger~debug_msg. entry_msg( iv_msgid = iv_msgid iv_msgno = iv_msgno iv_msgty = 'I' iv_msgv1 = iv_msgv1 iv_msgv2 = iv_msgv2 iv_msgv3 = iv_msgv3 iv_msgv4 = iv_msgv4 ). ENDMETHOD. METHOD zif_alog_msg_logger~entry_msg. inform_attached_loggers_msg( iv_msgid = iv_msgid iv_msgno = iv_msgno iv_msgty = iv_msgty iv_msgv1 = iv_msgv1 iv_msgv2 = iv_msgv2 iv_msgv3 = iv_msgv3 iv_msgv4 = iv_msgv4 ). IF get_minimal_log_level( )->compare_priority_to( zcl_alog_entry_type=>from_msgty( iv_msgty ) ) <= 0. entry_msg_internal( iv_msgid = iv_msgid iv_msgno = iv_msgno iv_msgty = iv_msgty iv_msgv1 = iv_msgv1 iv_msgv2 = iv_msgv2 iv_msgv3 = iv_msgv3 iv_msgv4 = iv_msgv4 ). ENDIF. ENDMETHOD. METHOD zif_alog_msg_logger~error_msg. entry_msg( iv_msgid = iv_msgid iv_msgno = iv_msgno iv_msgty = 'E' iv_msgv1 = iv_msgv1 iv_msgv2 = iv_msgv2 iv_msgv3 = iv_msgv3 iv_msgv4 = iv_msgv4 ). ENDMETHOD. METHOD zif_alog_msg_logger~info_msg. entry_msg( iv_msgid = iv_msgid iv_msgno = iv_msgno iv_msgty = 'I' iv_msgv1 = iv_msgv1 iv_msgv2 = iv_msgv2 iv_msgv3 = iv_msgv3 iv_msgv4 = iv_msgv4 ). ENDMETHOD. METHOD zif_alog_msg_logger~warning_msg. entry_msg( iv_msgid = iv_msgid iv_msgno = iv_msgno iv_msgty = 'W' iv_msgv1 = iv_msgv1 iv_msgv2 = iv_msgv2 iv_msgv3 = iv_msgv3 iv_msgv4 = iv_msgv4 ). ENDMETHOD. ENDCLASS.
[ 40484, 16000, 49706, 2779, 1398, 198, 40484, 1279, 79, 29, 198, 40484, 47025, 270, 422, 428, 1398, 290, 3494, 1279, 368, 29, 13000, 62, 32538, 3556, 368, 29, 290, 30274, 49312, 198, 40484, 1279, 368, 29, 13000, 62, 19662, 62, 32538, 3556, 368, 29, 329, 262, 18931, 9156, 13, 198, 40484, 7359, 79, 29, 198, 31631, 1976, 565, 62, 11794, 62, 19662, 62, 6404, 1362, 62, 8692, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 11794, 62, 6404, 1362, 62, 8692, 198, 220, 9564, 18601, 10659, 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, 1976, 361, 62, 11794, 62, 65, 499, 557, 83, 62, 6404, 1362, 11, 198, 220, 220, 220, 220, 220, 1976, 361, 62, 11794, 62, 19662, 62, 6404, 1362, 13, 198, 220, 220, 220, 8355, 43429, 1546, 25, 198, 220, 220, 220, 220, 14257, 62, 19662, 7473, 1976, 361, 62, 11794, 62, 19662, 62, 6404, 1362, 93, 24442, 62, 19662, 11, 198, 220, 220, 220, 220, 5726, 62, 65, 499, 557, 83, 7473, 1976, 361, 62, 11794, 62, 65, 499, 557, 83, 62, 6404, 1362, 93, 13000, 62, 65, 499, 557, 83, 11, 198, 220, 220, 220, 220, 5726, 62, 65, 499, 557, 83, 62, 11487, 7473, 1976, 361, 62, 11794, 62, 65, 499, 557, 83, 62, 6404, 1362, 93, 13000, 62, 65, 499, 557, 83, 62, 11487, 11, 198, 220, 220, 220, 220, 5726, 62, 19662, 7473, 1976, 361, 62, 11794, 62, 19662, 62, 6404, 1362, 93, 13000, 62, 19662, 11, 198, 220, 220, 220, 220, 4049, 62, 19662, 7473, 1976, 361, 62, 11794, 62, 19662, 62, 6404, 1362, 93, 18224, 62, 19662, 11, 198, 220, 220, 220, 220, 7508, 62, 19662, 7473, 1976, 361, 62, 11794, 62, 19662, 62, 6404, 1362, 93, 10951, 62, 19662, 11, 198, 220, 220, 220, 220, 6509, 62, 19662, 7473, 1976, 361, 62, 11794, 62, 19662, 62, 6404, 1362, 93, 43917, 62, 19662, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 4175, 62, 1078, 2317, 62, 6404, 5355, 23848, 36, 20032, 17941, 11, 198, 220, 220, 220, 220, 220, 366, 0, 45255, 7223, 2604, 5355, 1262, 257, 3275, 1398, 3275, 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, 774, 930, 16000, 2099, 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, 366, 0, 2488, 32741, 1976, 66, 87, 62, 11794, 62, 6404, 2667, 62, 47904, 930, 5972, 2667, 4054, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 32741, 1976, 66, 87, 62, 11794, 62, 403, 15999, 62, 19662, 774, 930, 16000, 2099, 24222, 198, 220, 220, 220, 220, 220, 4175, 62, 1078, 2317, 62, 6404, 5355, 62, 19662, 30023, 9863, 2751, 26173, 8924, 7, 452, 62, 19662, 312, 8, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 452, 62, 19662, 3919, 8, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 452, 62, 19662, 774, 8, 41876, 827, 301, 62, 19662, 774, 5550, 38865, 827, 12, 19662, 774, 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, 26173, 8924, 7, 452, 62, 19662, 85, 16, 8, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 452, 62, 19662, 85, 17, 8, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 452, 62, 19662, 85, 18, 8, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 452, 62, 19662, 85, 19, 8, 41876, 827, 301, 62, 19662, 85, 5550, 38865, 827, 12, 19662, 85, 19, 198, 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, 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 ]
CLASS zcl_abapgit_gui_hotkey_ctl DEFINITION PUBLIC INHERITING FROM zcl_abapgit_gui_component FINAL CREATE PUBLIC. PUBLIC SECTION. INTERFACES zif_abapgit_gui_hotkeys. INTERFACES zif_abapgit_gui_hotkey_ctl. INTERFACES zif_abapgit_gui_renderable. CONSTANTS c_showhotkeys_action TYPE string VALUE `showHotkeys` ##NO_TEXT. CLASS-METHODS should_show_hint RETURNING VALUE(rv_yes) TYPE abap_bool. METHODS constructor RAISING zcx_abapgit_exception. PROTECTED SECTION. PRIVATE SECTION. DATA: mt_hotkeys TYPE zif_abapgit_gui_hotkeys=>ty_hotkeys_with_descr, ms_user_settings TYPE zif_abapgit_definitions=>ty_s_user_settings. CLASS-DATA gv_hint_was_shown TYPE abap_bool . METHODS render_scripts IMPORTING !it_hotkeys TYPE zif_abapgit_gui_hotkeys=>ty_hotkeys_with_descr RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html . ENDCLASS. CLASS zcl_abapgit_gui_hotkey_ctl IMPLEMENTATION. METHOD constructor. super->constructor( ). ms_user_settings = zcl_abapgit_persistence_user=>get_instance( )->get_settings( ). ENDMETHOD. METHOD render_scripts. DATA lv_json TYPE string. FIELD-SYMBOLS: <ls_hotkey> LIKE LINE OF it_hotkeys. lv_json = `{`. LOOP AT it_hotkeys ASSIGNING <ls_hotkey>. IF sy-tabix > 1. lv_json = lv_json && |,|. ENDIF. lv_json = lv_json && | "{ <ls_hotkey>-hotkey }" : "{ <ls_hotkey>-action }" |. ENDLOOP. lv_json = lv_json && `}`. 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( |setKeyBindings({ lv_json });| ). ENDMETHOD. METHOD should_show_hint. IF gv_hint_was_shown = abap_false. rv_yes = abap_true. gv_hint_was_shown = abap_true. ENDIF. ENDMETHOD. METHOD zif_abapgit_gui_hotkeys~get_hotkey_actions. DATA ls_hotkey LIKE LINE OF rt_hotkey_actions. ls_hotkey-ui_component = 'Hotkeys'. ls_hotkey-action = c_showhotkeys_action. ls_hotkey-description = 'Show hotkeys help'. ls_hotkey-hotkey = '?'. INSERT ls_hotkey INTO TABLE rt_hotkey_actions. ENDMETHOD. METHOD zif_abapgit_gui_hotkey_ctl~get_registered_hotkeys. rt_registered_hotkeys = mt_hotkeys. ENDMETHOD. METHOD zif_abapgit_gui_hotkey_ctl~register_hotkeys. FIELD-SYMBOLS <ls_hotkey> LIKE LINE OF it_hotkeys. " Compress duplicates LOOP AT it_hotkeys ASSIGNING <ls_hotkey>. READ TABLE mt_hotkeys WITH KEY hotkey = <ls_hotkey>-hotkey TRANSPORTING NO FIELDS. IF sy-subrc = 0. " If found command with same hotkey DELETE mt_hotkeys INDEX sy-tabix. " Later registered commands enjoys the priority ENDIF. IF ms_user_settings-link_hints_enabled = abap_true AND ms_user_settings-link_hint_key = <ls_hotkey>-hotkey. " Link hint activation key is more important CONTINUE. ENDIF. APPEND <ls_hotkey> TO mt_hotkeys. ENDLOOP. ENDMETHOD. METHOD zif_abapgit_gui_hotkey_ctl~reset. CLEAR mt_hotkeys. ENDMETHOD. METHOD zif_abapgit_gui_renderable~render. DATA: lv_hint TYPE string, lt_registered_hotkeys TYPE zif_abapgit_gui_hotkeys=>ty_hotkeys_with_descr, lv_hotkey TYPE string. FIELD-SYMBOLS <ls_hotkey> LIKE LINE OF lt_registered_hotkeys. zif_abapgit_gui_hotkey_ctl~register_hotkeys( zif_abapgit_gui_hotkeys~get_hotkey_actions( ) ). CREATE OBJECT ri_html TYPE zcl_abapgit_html. lt_registered_hotkeys = zif_abapgit_gui_hotkey_ctl~get_registered_hotkeys( ). SORT lt_registered_hotkeys BY ui_component description. register_deferred_script( render_scripts( lt_registered_hotkeys ) ). " Render hotkeys ri_html->add( '<ul class="hotkeys">' ). LOOP AT lt_registered_hotkeys ASSIGNING <ls_hotkey>. ri_html->add( |<li>| && |<span class="key-id">{ <ls_hotkey>-hotkey }</span>| && |<span class="key-descr">{ <ls_hotkey>-description }</span>| && |</li>| ). ENDLOOP. ri_html->add( '</ul>' ). CLEAR lv_hotkey. READ TABLE lt_registered_hotkeys ASSIGNING <ls_hotkey> WITH KEY action = c_showhotkeys_action. IF sy-subrc = 0. lv_hotkey = <ls_hotkey>-hotkey. ENDIF. lv_hint = |Close window with upper right corner 'X'|. IF lv_hotkey IS NOT INITIAL. lv_hint = lv_hint && | or press '{ <ls_hotkey>-hotkey }' again|. ENDIF. ri_html = zcl_abapgit_gui_chunk_lib=>render_infopanel( iv_div_id = 'hotkeys' iv_title = 'Hotkeys' iv_hint = lv_hint iv_hide = abap_true iv_scrollable = abap_false io_content = ri_html ). IF lv_hotkey IS NOT INITIAL AND should_show_hint( ) = abap_true. ri_html->add( |<div id="hotkeys-hint" class="corner-hint">| && |Press '{ <ls_hotkey>-hotkey }' to get keyboard shortcuts list| && |</div>| ). ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 8940, 2539, 62, 34168, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 42895, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 8940, 13083, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 8940, 2539, 62, 34168, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 13287, 540, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 12860, 8940, 13083, 62, 2673, 41876, 4731, 26173, 8924, 4600, 12860, 21352, 13083, 63, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 815, 62, 12860, 62, 71, 600, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 8505, 8, 41876, 450, 499, 62, 30388, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 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, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 45079, 62, 8940, 13083, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 8940, 13083, 14804, 774, 62, 8940, 13083, 62, 4480, 62, 20147, 81, 11, 198, 220, 220, 220, 220, 220, 13845, 62, 7220, 62, 33692, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 82, 62, 7220, 62, 33692, 13, 198, 220, 220, 220, 42715, 12, 26947, 308, 85, 62, 71, 600, 62, 9776, 62, 42579, 41876, 450, 499, 62, 30388, 764, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 46521, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 8940, 13083, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 8940, 13083, 14804, 774, 62, 8940, 13083, 62, 4480, 62, 20147, 81, 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, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 8940, 2539, 62, 34168, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 628, 220, 220, 220, 13845, 62, 7220, 62, 33692, 796, 1976, 565, 62, 397, 499, 18300, 62, 19276, 13274, 62, 7220, 14804, 1136, 62, 39098, 7, 1267, 3784, 1136, 62, 33692, 7, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 8543, 62, 46521, 13, 628, 220, 220, 220, 42865, 300, 85, 62, 17752, 41876, 4731, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 8940, 2539, 29, 34178, 48920, 3963, 340, 62, 8940, 13083, 13, 628, 220, 220, 220, 300, 85, 62, 17752, 796, 4600, 90, 44646, 628, 220, 220, 220, 17579, 3185, 5161, 340, 62, 8940, 13083, 24994, 3528, 15871, 1279, 7278, 62, 8940, 2539, 28401, 628, 220, 220, 220, 220, 220, 16876, 827, 12, 8658, 844, 1875, 352, 13, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 17752, 796, 300, 85, 62, 17752, 11405, 930, 11, 91, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 300, 85, 62, 17752, 796, 300, 85, 62, 17752, 11405, 930, 220, 45144, 1279, 7278, 62, 8940, 2539, 29, 12, 8940, 2539, 1782, 1, 1058, 45144, 1279, 7278, 62, 8940, 2539, 29, 12, 2673, 1782, 1, 930, 13, 628, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 220, 220, 300, 85, 62, 17752, 796, 300, 85, 62, 17752, 11405, 4600, 92, 44646, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 374, 72, 62, 6494, 41876, 1976, 565, 62, 397, 499, 18300, 62, 6494, 13, 198, 220, 220, 220, 374, 72, 62, 6494, 3784, 2617, 62, 7839, 7, 537, 62, 397, 499, 62, 774, 9124, 3798, 81, 14804, 20147, 4892, 62, 1525, 62, 15252, 62, 5420, 7, 502, 1267, 3784, 1136, 62, 43762, 62, 3672, 7, 1267, 6739, 198, 220, 220, 220, 374, 72, 62, 6494, 3784, 2860, 7, 930, 2617, 9218, 36180, 654, 15090, 300, 85, 62, 17752, 14980, 91, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 815, 62, 12860, 62, 71, 600, 13, 198, 220, 220, 220, 16876, 308, 85, 62, 71, 600, 62, 9776, 62, 42579, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 374, 85, 62, 8505, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 308, 85, 62, 71, 600, 62, 9776, 62, 42579, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 8940, 13083, 93, 1136, 62, 8940, 2539, 62, 4658, 13, 628, 220, 220, 220, 42865, 43979, 62, 8940, 2539, 34178, 48920, 3963, 374, 83, 62, 8940, 2539, 62, 4658, 13, 628, 220, 220, 220, 43979, 62, 8940, 2539, 12, 9019, 62, 42895, 796, 705, 21352, 13083, 4458, 198, 220, 220, 220, 43979, 62, 8940, 2539, 12, 2673, 220, 220, 220, 220, 220, 220, 796, 269, 62, 12860, 8940, 13083, 62, 2673, 13, 198, 220, 220, 220, 43979, 62, 8940, 2539, 12, 11213, 220, 796, 705, 15307, 3024, 13083, 1037, 4458, 198, 220, 220, 220, 43979, 62, 8940, 2539, 12, 8940, 2539, 220, 220, 220, 220, 220, 220, 796, 705, 30, 4458, 198, 220, 220, 220, 29194, 17395, 43979, 62, 8940, 2539, 39319, 43679, 374, 83, 62, 8940, 2539, 62, 4658, 13, 628, 220, 23578 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
FUNCTION-POOL zsalv_csqt_screen_manager. "MESSAGE-ID .. DATA: okcode TYPE sy-ucomm. DATA: gr_content_manager TYPE REF TO if_salv_csqt_content_manager. DATA: g_title TYPE lvc_title. DATA: gr_container TYPE REF TO cl_gui_custom_container. * INCLUDE LZSALV_CSQT_SCREEN_MANAGERD... " Local class definition
[ 42296, 4177, 2849, 12, 16402, 3535, 1976, 21680, 85, 62, 6359, 39568, 62, 9612, 62, 37153, 13, 220, 220, 220, 366, 44, 1546, 4090, 8264, 12, 2389, 11485, 198, 198, 26947, 25, 12876, 8189, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 827, 12, 84, 9503, 13, 198, 26947, 25, 1036, 62, 11299, 62, 37153, 41876, 4526, 37, 5390, 611, 62, 21680, 85, 62, 6359, 39568, 62, 11299, 62, 37153, 13, 198, 26947, 25, 308, 62, 7839, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 300, 28435, 62, 7839, 13, 198, 26947, 25, 1036, 62, 34924, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 23144, 62, 34924, 13, 198, 9, 3268, 5097, 52, 7206, 406, 57, 50, 1847, 53, 62, 7902, 48, 51, 62, 6173, 2200, 1677, 62, 10725, 4760, 1137, 35, 986, 220, 220, 220, 220, 366, 10714, 1398, 6770, 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 ]
*---------------------------------------------------------------------* * program for: TABLEFRAME_ZADF_FG * generation date: 05/10/2017 at 02:12:25 * view maintenance generator version: #001407# *---------------------------------------------------------------------* FUNCTION TABLEFRAME_ZADF_FG . PERFORM TABLEFRAME TABLES X_HEADER X_NAMTAB DBA_SELLIST DPL_SELLIST EXCL_CUA_FUNCT USING CORR_NUMBER VIEW_ACTION VIEW_NAME. ENDFUNCTION.
[ 9, 10097, 30934, 9, 198, 9, 220, 220, 220, 1430, 329, 25, 220, 220, 43679, 10913, 10067, 62, 57, 2885, 37, 62, 30386, 198, 9, 220, 220, 5270, 3128, 25, 8870, 14, 940, 14, 5539, 379, 7816, 25, 1065, 25, 1495, 198, 9, 220, 220, 1570, 9262, 17301, 2196, 25, 1303, 405, 1415, 2998, 2, 198, 9, 10097, 30934, 9, 198, 42296, 4177, 2849, 43679, 10913, 10067, 62, 57, 2885, 37, 62, 30386, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 628, 220, 19878, 21389, 43679, 10913, 10067, 309, 6242, 28378, 1395, 62, 37682, 1137, 1395, 62, 45, 2390, 5603, 33, 360, 4339, 62, 5188, 3069, 8808, 360, 6489, 62, 5188, 3069, 8808, 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, 7788, 5097, 62, 34, 34970, 62, 42296, 4177, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1294, 2751, 220, 23929, 49, 62, 41359, 13246, 49880, 62, 44710, 49880, 62, 20608, 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 ]
CLASS zcl_abapgit_syntax_txt DEFINITION PUBLIC INHERITING FROM zcl_abapgit_syntax_highlighter CREATE PUBLIC . PUBLIC SECTION. METHODS constructor . METHODS process_line REDEFINITION . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_abapgit_syntax_txt IMPLEMENTATION. METHOD constructor. super->constructor( ). " No rules for plain text files ENDMETHOD. METHOD process_line. rv_line = show_hidden_chars( iv_line ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 1837, 41641, 62, 14116, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 1837, 41641, 62, 8929, 75, 4799, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 764, 628, 220, 220, 220, 337, 36252, 50, 1429, 62, 1370, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 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, 397, 499, 18300, 62, 1837, 41641, 62, 14116, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 628, 220, 220, 220, 366, 1400, 3173, 329, 8631, 2420, 3696, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1429, 62, 1370, 13, 628, 220, 220, 220, 374, 85, 62, 1370, 796, 905, 62, 30342, 62, 354, 945, 7, 21628, 62, 1370, 6739, 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 ]
CLASS zcl_abapgit_syntax_xml DEFINITION PUBLIC INHERITING FROM zcl_abapgit_syntax_highlighter CREATE PUBLIC . PUBLIC SECTION. METHODS constructor. CONSTANTS: BEGIN OF c_css, xml_tag TYPE string VALUE 'xml_tag', "#EC NOTEXT attr TYPE string VALUE 'attr', "#EC NOTEXT attr_val TYPE string VALUE 'attr_val', "#EC NOTEXT END OF c_css, BEGIN OF c_token, xml_tag TYPE c VALUE 'X', "#EC NOTEXT attr TYPE c VALUE 'A', "#EC NOTEXT attr_val TYPE c VALUE 'V', "#EC NOTEXT END OF c_token, BEGIN OF c_regex, xml_tag TYPE string VALUE '[<>]', "#EC NOTEXT attr TYPE string VALUE '\s[-a-z:_0-9]+\s*(?==)', "#EC NOTEXT attr_val TYPE string VALUE '["''][^''"]+[''"]', "#EC NOTEXT END OF c_regex. PROTECTED SECTION. METHODS order_matches REDEFINITION. ENDCLASS. CLASS ZCL_ABAPGIT_SYNTAX_XML IMPLEMENTATION. METHOD constructor. super->constructor( ). " Initialize instances of regular expressions add_rule( iv_regex = c_regex-xml_tag iv_token = c_token-xml_tag iv_style = c_css-xml_tag ). add_rule( iv_regex = c_regex-attr iv_token = c_token-attr iv_style = c_css-attr ). add_rule( iv_regex = c_regex-attr_val iv_token = c_token-attr_val iv_style = c_css-attr_val ). ENDMETHOD. METHOD order_matches. DATA: lv_index TYPE sy-tabix, lv_prev_token TYPE c, lv_state TYPE c VALUE 'O'. " O - for open tag; C - for closed tag; FIELD-SYMBOLS: <ls_prev> TYPE ty_match, <ls_match> TYPE ty_match. SORT ct_matches BY offset. LOOP AT ct_matches ASSIGNING <ls_match>. lv_index = sy-tabix. CASE <ls_match>-token. WHEN c_token-xml_tag. <ls_match>-text_tag = substring( val = iv_line off = <ls_match>-offset len = <ls_match>-length ). " No other matches between two tags IF <ls_match>-text_tag = '>' AND lv_prev_token = c_token-xml_tag. lv_state = 'C'. <ls_prev>-length = <ls_match>-offset - <ls_prev>-offset + <ls_match>-length. DELETE ct_matches INDEX lv_index. CONTINUE. " Adjust length and offset of closing tag ELSEIF <ls_match>-text_tag = '>' AND lv_prev_token <> c_token-xml_tag. lv_state = 'C'. <ls_match>-length = <ls_match>-offset - <ls_prev>-offset - <ls_prev>-length + <ls_match>-length. <ls_match>-offset = <ls_prev>-offset + <ls_prev>-length. ELSE. lv_state = 'O'. ENDIF. WHEN OTHERS. IF lv_prev_token = c_token-xml_tag. <ls_prev>-length = <ls_match>-offset - <ls_prev>-offset. " Extend length of the opening tag ENDIF. IF lv_state = 'C'. " Delete all matches between tags DELETE ct_matches INDEX lv_index. CONTINUE. ENDIF. ENDCASE. lv_prev_token = <ls_match>-token. ASSIGN <ls_match> TO <ls_prev>. ENDLOOP. ENDMETHOD. " order_matches ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 1837, 41641, 62, 19875, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 1837, 41641, 62, 8929, 75, 4799, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 25471, 11, 198, 220, 220, 220, 220, 220, 220, 220, 35555, 62, 12985, 220, 41876, 4731, 26173, 8924, 705, 19875, 62, 12985, 3256, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 35226, 3256, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 62, 2100, 41876, 4731, 26173, 8924, 705, 35226, 62, 2100, 3256, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 25471, 11, 628, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 30001, 11, 198, 220, 220, 220, 220, 220, 220, 220, 35555, 62, 12985, 220, 41876, 269, 26173, 8924, 705, 55, 3256, 220, 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, 5626, 13918, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 220, 220, 220, 220, 41876, 269, 26173, 8924, 705, 32, 3256, 220, 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, 5626, 13918, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 62, 2100, 41876, 269, 26173, 8924, 705, 53, 3256, 220, 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, 5626, 13918, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 30001, 11, 628, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 260, 25636, 11, 198, 220, 220, 220, 220, 220, 220, 220, 35555, 62, 12985, 220, 41876, 4731, 26173, 8924, 44438, 27, 37981, 3256, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 59, 82, 58, 12, 64, 12, 89, 25, 62, 15, 12, 24, 48688, 59, 82, 9, 7, 30, 855, 8, 3256, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 62, 2100, 41876, 4731, 26173, 8924, 705, 14692, 7061, 7131, 61, 7061, 8973, 10, 58, 7061, 8973, 3256, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 260, 25636, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 1502, 62, 6759, 2052, 23848, 36, 20032, 17941, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 23060, 45, 5603, 55, 62, 55, 5805, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 628, 220, 220, 220, 366, 20768, 1096, 10245, 286, 3218, 14700, 628, 220, 220, 220, 751, 62, 25135, 7, 21628, 62, 260, 25636, 796, 269, 62, 260, 25636, 12, 19875, 62, 12985, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 30001, 796, 269, 62, 30001, 12, 19875, 62, 12985, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 7635, 796, 269, 62, 25471, 12, 19875, 62, 12985, 6739, 628, 220, 220, 220, 751, 62, 25135, 7, 21628, 62, 260, 25636, 796, 269, 62, 260, 25636, 12, 35226, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 30001, 796, 269, 62, 30001, 12, 35226, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 7635, 796, 269, 62, 25471, 12, 35226, 6739, 628, 220, 220, 220, 751, 62, 25135, 7, 21628, 62, 260, 25636, 796, 269, 62, 260, 25636, 12, 35226, 62, 2100, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 30001, 796, 269, 62, 30001, 12, 35226, 62, 2100, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 7635, 796, 269, 62, 25471, 12, 35226, 62, 2100, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1502, 62, 6759, 2052, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 300, 85, 62, 9630, 220, 220, 220, 220, 220, 41876, 827, 12, 8658, 844, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 47050, 62, 30001, 41876, 269, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 5219, 220, 220, 220, 220, 220, 41876, 269, 26173, 8924, 705, 46, 4458, 366, 440, 532, 329, 1280, 7621, 26, 327, 532, 329, 4838, 7621, 26, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 47050, 29, 220, 41876, 1259, 62, 15699, 11, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 15699, 29, 41876, 1259, 62, 15699, 13, 628, 198, 220, 220, 220, 311, 9863, 269, 83, 62, 6759, 2052, 11050, 11677, 13, 628, 220, 220, 220, 17579, 3185, 5161, 269, 83, 62, 6759, 2052, 24994, 3528, 15871, 1279, 7278, 62, 15699, 28401, 198, 220, 220, 220, 220, 220, 300, 85, 62, 9630, 796, 827, 12, 8658, 844, 13, 628, 220, 220, 220, 220, 220, 42001, 1279, 7278, 62, 15699, 29, 12, 30001, 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, 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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 ]
CLASS lcl_excel_common_test DEFINITION DEFERRED. CLASS zcl_excel_common DEFINITION LOCAL FRIENDS lcl_excel_common_test. *----------------------------------------------------------------------* * CLASS lcl_Excel_Common_Test DEFINITION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS lcl_excel_common_test DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PRIVATE SECTION. * ================ DATA: lx_excel TYPE REF TO zcx_excel, ls_symsg_act LIKE sy, " actual messageinformation of exception ls_symsg_exp LIKE sy, " expected messageinformation of exception f_cut TYPE REF TO zcl_excel_common. "class under test METHODS: setup. METHODS: convert_column2alpha_simple FOR TESTING. METHODS: convert_column2alpha_maxcol FOR TESTING. METHODS: convert_column2alpha_last FOR TESTING. METHODS: convert_column2alpha_oob FOR TESTING. METHODS convert_column2int_basic FOR TESTING. METHODS convert_column2int_maxcol FOR TESTING. METHODS convert_column2int_oob_empty FOR TESTING. METHODS convert_column2int_oob_invalid FOR TESTING. METHODS date_to_excel_string1 FOR TESTING RAISING cx_static_check. METHODS date_to_excel_string2 FOR TESTING RAISING cx_static_check. METHODS date_to_excel_string3 FOR TESTING RAISING cx_static_check. METHODS date_to_excel_string4 FOR TESTING RAISING cx_static_check. METHODS date_to_excel_string5 FOR TESTING RAISING cx_static_check. METHODS date_to_excel_string6 FOR TESTING RAISING cx_static_check. METHODS: encrypt_password FOR TESTING. METHODS: excel_string_to_date FOR TESTING. METHODS excel_string_to_time1 FOR TESTING RAISING cx_static_check. METHODS excel_string_to_time2 FOR TESTING RAISING cx_static_check. METHODS excel_string_to_time3 FOR TESTING RAISING cx_static_check. METHODS excel_string_to_time4 FOR TESTING RAISING cx_static_check. METHODS excel_string_to_time5 FOR TESTING RAISING cx_static_check. METHODS time_to_excel_string1 FOR TESTING RAISING cx_static_check. METHODS time_to_excel_string2 FOR TESTING RAISING cx_static_check. METHODS time_to_excel_string3 FOR TESTING RAISING cx_static_check. METHODS time_to_excel_string4 FOR TESTING RAISING cx_static_check. METHODS: split_file FOR TESTING. METHODS: convert_range2column_a_row FOR TESTING RAISING cx_static_check. METHODS: describe_structure FOR TESTING. METHODS macro_calculate_cell_distance IMPORTING iv_reference_cell TYPE clike iv_current_cell TYPE clike iv_expected_column TYPE i iv_expected_row TYPE i RAISING cx_static_check. METHODS: calc_cell_dist_samecell FOR TESTING RAISING cx_static_check, calc_cell_dist_down1pl FOR TESTING RAISING cx_static_check, calc_cell_dist_downsome FOR TESTING RAISING cx_static_check, calc_cell_dist_up1pl FOR TESTING RAISING cx_static_check, calc_cell_dist_upsome FOR TESTING RAISING cx_static_check, calc_cell_dist_right1pl FOR TESTING RAISING cx_static_check, calc_cell_dist_rightsome FOR TESTING RAISING cx_static_check, calc_cell_dist_left1pl FOR TESTING RAISING cx_static_check, calc_cell_dist_leftsome FOR TESTING RAISING cx_static_check, calc_cell_dist_fullpack FOR TESTING RAISING cx_static_check. METHODS macro_shift_formula IMPORTING iv_reference_formula TYPE clike iv_shift_cols TYPE i iv_shift_rows TYPE i iv_expected TYPE string. METHODS: shift_formula_basic FOR TESTING, shift_formula_rightdown FOR TESTING, shift_formula_leftup FOR TESTING, shift_formula_fixedcolrows FOR TESTING, shift_formula_mixedfixedrows FOR TESTING, shift_formula_rangename FOR TESTING, shift_formula_stringlitconc FOR TESTING, shift_formula_extref FOR TESTING, shift_formula_charblanks FOR TESTING, shift_formula_stringblanks FOR TESTING, shift_formula_funcnoargs FOR TESTING, shift_formula_nocellref FOR TESTING, shift_formula_empty FOR TESTING, shift_formula_referr_colunder FOR TESTING, shift_formula_referr_rowunder FOR TESTING, shift_formula_referr_rowcolund FOR TESTING, shift_formula_sheet_nodigit FOR TESTING, shift_formula_sheet_nodig FOR TESTING, shift_formula_sheet_special FOR TESTING, shift_formula_resp_blanks_1 FOR TESTING, shift_formula_resp_blanks_2 FOR TESTING, shift_formula_range FOR TESTING, shift_formula_notcols FOR TESTING, shift_formula_name FOR TESTING, shift_formula_refcolumn1 FOR TESTING, shift_formula_refcolumn2 FOR TESTING. METHODS is_cell_in_range_ulc_in FOR TESTING. METHODS is_cell_in_range_lrc_in FOR TESTING. METHODS is_cell_in_range_leftside_out FOR TESTING. METHODS is_cell_in_range_upperside_out FOR TESTING. METHODS is_cell_in_range_rightside_out FOR TESTING. METHODS is_cell_in_range_lowerside_out FOR TESTING. ENDCLASS. *----------------------------------------------------------------------* * CLASS lcl_Excel_Common_Test IMPLEMENTATION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS lcl_excel_common_test IMPLEMENTATION. * =========================================== METHOD setup. * ============= CREATE OBJECT f_cut. ENDMETHOD. "setup METHOD convert_column2alpha_simple. * ============================ DATA ep_column TYPE zexcel_cell_column_alpha. * Test 1. Simple test TRY. ep_column = zcl_excel_common=>convert_column2alpha( 1 ). cl_abap_unit_assert=>assert_equals( act = ep_column exp = 'A' msg = 'Wrong column conversion' level = if_aunit_constants=>critical ). CATCH zcx_excel INTO lx_excel. cl_abap_unit_assert=>fail( msg = 'unexpected exception' level = if_aunit_constants=>critical " Error Severity ). ENDTRY. ENDMETHOD. "convert_column2alpha_simple METHOD convert_column2alpha_maxcol. * ============================ DATA ep_column TYPE zexcel_cell_column_alpha. * Test 2. Max column for OXML #16,384 = XFD TRY. ep_column = zcl_excel_common=>convert_column2alpha( 16384 ). cl_abap_unit_assert=>assert_equals( act = ep_column exp = 'XFD' msg = 'Wrong column conversion' level = if_aunit_constants=>critical ). CATCH zcx_excel INTO lx_excel. cl_abap_unit_assert=>fail( msg = 'unexpected exception' level = if_aunit_constants=>critical " Error Severity ). ENDTRY. ENDMETHOD. "convert_column2alpha_maxcol METHOD convert_column2alpha_last. * ============================ DATA ep_column TYPE zexcel_cell_column_alpha. * Test 3. Index 0 is out of bounds TRY. ep_column = zcl_excel_common=>convert_column2alpha( 0 ). cl_abap_unit_assert=>assert_equals( act = ep_column exp = 'A' ). CATCH zcx_excel INTO lx_excel. cl_abap_unit_assert=>assert_equals( act = lx_excel->error exp = 'Index out of bounds' msg = 'Colum index 0 is out of bounds, min column index is 1' level = if_aunit_constants=>fatal ). ENDTRY. ENDMETHOD. "convert_column2alpha_last METHOD convert_column2alpha_oob. * ============================ DATA ep_column TYPE zexcel_cell_column_alpha. * Test 4. Exception should be thrown index out of bounds TRY. ep_column = zcl_excel_common=>convert_column2alpha( 16385 ). cl_abap_unit_assert=>assert_differs( act = ep_column exp = 'XFE' msg = 'Colum index 16385 is out of bounds, max column index is 16384' level = if_aunit_constants=>fatal ). CATCH zcx_excel INTO lx_excel. cl_abap_unit_assert=>assert_equals( act = lx_excel->error exp = 'Index out of bounds' msg = 'Wrong exception is thrown' level = if_aunit_constants=>tolerable ). ENDTRY. ENDMETHOD. "convert_Column2alpha_oob METHOD convert_column2int_basic. * ========================== * Test 1. Basic test DATA ep_column TYPE zexcel_cell_column. TRY. ep_column = zcl_excel_common=>convert_column2int( 'A' ). cl_abap_unit_assert=>assert_equals( act = ep_column exp = 1 msg = 'Wrong column conversion' level = if_aunit_constants=>critical ). CATCH zcx_excel INTO lx_excel. cl_abap_unit_assert=>fail( msg = 'unexpected exception' level = if_aunit_constants=>critical " Error Severity ). ENDTRY. ENDMETHOD. "convert_column2int_basic. METHOD convert_column2int_maxcol. * ========================== * Test 2. Max column DATA ep_column TYPE zexcel_cell_column. TRY. ep_column = zcl_excel_common=>convert_column2int( 'XFD' ). cl_abap_unit_assert=>assert_equals( act = ep_column exp = 16384 msg = 'Wrong column conversion' level = if_aunit_constants=>critical ). CATCH zcx_excel INTO lx_excel. cl_abap_unit_assert=>fail( msg = 'unexpected exception' level = if_aunit_constants=>critical " Error Severity ). ENDTRY. ENDMETHOD. "convert_column2int_maxcol METHOD convert_column2int_oob_empty. * ========================== * Test 3. Out of bounds DATA ep_column TYPE zexcel_cell_column. TRY. ep_column = zcl_excel_common=>convert_column2int( '' ). cl_abap_unit_assert=>assert_differs( act = ep_column exp = '0' msg = 'Wrong column conversion' level = if_aunit_constants=>critical ). CATCH zcx_excel INTO lx_excel. CLEAR: ls_symsg_act, ls_symsg_exp. ls_symsg_exp-msgid = 'ZABAP2XLSX'. ls_symsg_exp-msgno = '800'. ls_symsg_act-msgid = lx_excel->syst_at_raise-msgid. ls_symsg_act-msgno = lx_excel->syst_at_raise-msgno. cl_abap_unit_assert=>assert_equals( act = ls_symsg_act exp = ls_symsg_exp msg = 'Colum name should be a valid string' level = if_aunit_constants=>fatal ). ENDTRY. ENDMETHOD. "convert_column2int_oob_empty. METHOD convert_column2int_oob_invalid. * ========================== * Test 4. Out of bounds DATA ep_column TYPE zexcel_cell_column. TRY. ep_column = zcl_excel_common=>convert_column2int( 'XFE' ). cl_abap_unit_assert=>assert_differs( act = ep_column exp = 16385 msg = 'Wrong column conversion' level = if_aunit_constants=>critical ). CATCH zcx_excel INTO lx_excel. cl_abap_unit_assert=>assert_equals( act = lx_excel->error exp = 'Index out of bounds' msg = 'Colum XFE is out of range' level = if_aunit_constants=>fatal ). ENDTRY. ENDMETHOD. "convert_column2int_oob_invalid. METHOD date_to_excel_string1. DATA ep_value TYPE zexcel_cell_value. * Test 1. Basic conversion ep_value = zcl_excel_common=>date_to_excel_string( '19000101' ). cl_abap_unit_assert=>assert_equals( act = ep_value exp = 1 msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). ENDMETHOD. METHOD date_to_excel_string2. DATA ep_value TYPE zexcel_cell_value. * Check around the "Excel Leap Year" 1900 ep_value = zcl_excel_common=>date_to_excel_string( '19000228' ). cl_abap_unit_assert=>assert_equals( act = ep_value exp = 59 msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). ENDMETHOD. METHOD date_to_excel_string3. DATA ep_value TYPE zexcel_cell_value. ep_value = zcl_excel_common=>date_to_excel_string( '19000301' ). cl_abap_unit_assert=>assert_equals( act = ep_value exp = 61 msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). ENDMETHOD. METHOD date_to_excel_string4. DATA ep_value TYPE zexcel_cell_value. * Test 2. Basic conversion ep_value = zcl_excel_common=>date_to_excel_string( '99991212' ). cl_abap_unit_assert=>assert_equals( act = ep_value exp = 2958446 msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). ENDMETHOD. METHOD date_to_excel_string5. DATA ep_value TYPE zexcel_cell_value. * Test 3. Initial date DATA: lv_date TYPE d. ep_value = zcl_excel_common=>date_to_excel_string( lv_date ). cl_abap_unit_assert=>assert_equals( act = ep_value exp = '' msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). ENDMETHOD. METHOD date_to_excel_string6. DATA ep_value TYPE zexcel_cell_value. * Test 2. Basic conversion DATA exp_value TYPE zexcel_cell_value VALUE 0. ep_value = zcl_excel_common=>date_to_excel_string( '18991231' ). cl_abap_unit_assert=>assert_differs( act = ep_value exp = exp_value msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). ENDMETHOD. METHOD encrypt_password. * ======================== DATA lv_encrypted_pwd TYPE zexcel_aes_password. TRY. lv_encrypted_pwd = zcl_excel_common=>encrypt_password( 'test' ). cl_abap_unit_assert=>assert_equals( act = lv_encrypted_pwd exp = 'CBEB' msg = 'Wrong password encryption' level = if_aunit_constants=>critical ). CATCH zcx_excel INTO lx_excel. cl_abap_unit_assert=>fail( msg = 'unexpected exception' level = if_aunit_constants=>critical " Error Severity ). ENDTRY. ENDMETHOD. "encrypt_Password METHOD excel_string_to_date. * ============================ DATA ep_value TYPE d. * Test 1. Simple test -> ABAP Manage also date prior of 1900 TRY. ep_value = zcl_excel_common=>excel_string_to_date( '0' ). cl_abap_unit_assert=>assert_equals( act = ep_value exp = '00000000' msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). CATCH zcx_excel INTO lx_excel. cl_abap_unit_assert=>fail( msg = 'unexpected exception' level = if_aunit_constants=>critical " Error Severity ). ENDTRY. * Check empty content TRY. ep_value = zcl_excel_common=>excel_string_to_date( '' ). cl_abap_unit_assert=>assert_equals( act = ep_value exp = '00000000' msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). CATCH zcx_excel INTO lx_excel. cl_abap_unit_assert=>fail( msg = 'unexpected exception' level = if_aunit_constants=>critical " Error Severity ). ENDTRY. * Check space character TRY. ep_value = zcl_excel_common=>excel_string_to_date( ` ` ). cl_abap_unit_assert=>assert_equals( act = ep_value exp = '00000000' msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). CATCH zcx_excel INTO lx_excel. cl_abap_unit_assert=>fail( msg = 'unexpected exception' level = if_aunit_constants=>critical " Error Severity ). ENDTRY. * Check first Excel date 1/1/1900 TRY. ep_value = zcl_excel_common=>excel_string_to_date( '1' ). cl_abap_unit_assert=>assert_equals( act = ep_value exp = '19000101' msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). CATCH zcx_excel INTO lx_excel. cl_abap_unit_assert=>fail( msg = 'unexpected exception' level = if_aunit_constants=>critical " Error Severity ). ENDTRY. * Check around the "Excel Leap Year" 1900 TRY. ep_value = zcl_excel_common=>excel_string_to_date( '59' ). cl_abap_unit_assert=>assert_equals( act = ep_value exp = '19000228' msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). CATCH zcx_excel INTO lx_excel. cl_abap_unit_assert=>fail( msg = 'unexpected exception' level = if_aunit_constants=>critical " Error Severity ). ENDTRY. TRY. ep_value = zcl_excel_common=>excel_string_to_date( '61' ). cl_abap_unit_assert=>assert_equals( act = ep_value exp = '19000301' msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). CATCH zcx_excel INTO lx_excel. cl_abap_unit_assert=>fail( msg = 'unexpected exception' level = if_aunit_constants=>critical " Error Severity ). ENDTRY. * Test 2. Simple test TRY. ep_value = zcl_excel_common=>excel_string_to_date( '1' ). cl_abap_unit_assert=>assert_equals( act = ep_value exp = '19000101' msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). CATCH zcx_excel INTO lx_excel. cl_abap_unit_assert=>fail( msg = 'unexpected exception' level = if_aunit_constants=>critical " Error Severity ). ENDTRY. * Test 3. Last possible date TRY. ep_value = zcl_excel_common=>excel_string_to_date( '2958465' ). cl_abap_unit_assert=>assert_equals( act = ep_value exp = '99991231' msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). CATCH zcx_excel INTO lx_excel. cl_abap_unit_assert=>fail( msg = 'unexpected exception' level = if_aunit_constants=>critical " Error Severity ). ENDTRY. * Test 4. Exception should be thrown index out of bounds TRY. ep_value = zcl_excel_common=>excel_string_to_date( '2958466' ). cl_abap_unit_assert=>fail( msg = |Unexpected result '{ ep_value }'| level = if_aunit_constants=>critical ). CATCH zcx_excel INTO lx_excel. cl_abap_unit_assert=>assert_equals( act = lx_excel->error exp = 'Unable to interpret date' msg = 'Time should be a valid date' level = if_aunit_constants=>fatal ). ENDTRY. ENDMETHOD. "excel_String_To_Date METHOD excel_string_to_time1. DATA ep_value TYPE t. * Test 1. Simple test ep_value = zcl_excel_common=>excel_string_to_time( '0' ). cl_abap_unit_assert=>assert_equals( act = ep_value exp = '000000' msg = 'Wrong date conversion' level = if_aunit_constants=>tolerable ). ENDMETHOD. METHOD excel_string_to_time2. DATA ep_value TYPE t. * Test 2. Simple test ep_value = zcl_excel_common=>excel_string_to_time( '1' ). cl_abap_unit_assert=>assert_equals( act = ep_value exp = '000000' msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). ENDMETHOD. METHOD excel_string_to_time3. DATA ep_value TYPE t. * Test 3. Simple test ep_value = zcl_excel_common=>excel_string_to_time( '0.99999' ). cl_abap_unit_assert=>assert_equals( act = ep_value exp = '235959' msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). ENDMETHOD. METHOD excel_string_to_time4. DATA ep_value TYPE t. * Test 4. Also string greater than 1 should be managed ep_value = zcl_excel_common=>excel_string_to_time( '4.1' ). cl_abap_unit_assert=>assert_equals( act = ep_value exp = '022400' msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). ENDMETHOD. METHOD excel_string_to_time5. DATA ep_value TYPE t. * Test 4. string is not a number TRY. ep_value = zcl_excel_common=>excel_string_to_time( 'NaN' ). cl_abap_unit_assert=>assert_differs( act = ep_value exp = '000000' msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). CATCH zcx_excel INTO lx_excel. cl_abap_unit_assert=>assert_equals( act = lx_excel->error exp = 'Unable to interpret time' msg = 'Time should be a valid string' level = if_aunit_constants=>fatal ). ENDTRY. ENDMETHOD. METHOD time_to_excel_string1. DATA ep_value TYPE zexcel_cell_value. * Test 1. Basic conversion ep_value = zcl_excel_common=>time_to_excel_string( '000001' ). " A test directly in Excel returns the value 0.0000115740740740741000 cl_abap_unit_assert=>assert_equals( act = ep_value exp = '0.0000115740740741' msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). ENDMETHOD. METHOD time_to_excel_string2. DATA ep_value TYPE zexcel_cell_value. * Test 2. Basic conversion ep_value = zcl_excel_common=>time_to_excel_string( '235959' ). " A test directly in Excel returns the value 0.9999884259259260000000 cl_abap_unit_assert=>assert_equals( act = ep_value exp = '0.9999884259259260' msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). ENDMETHOD. METHOD time_to_excel_string3. DATA ep_value TYPE zexcel_cell_value. * Test 3. Initial date ep_value = zcl_excel_common=>time_to_excel_string( '000000' ). cl_abap_unit_assert=>assert_equals( act = ep_value exp = '0' msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). ENDMETHOD. METHOD time_to_excel_string4. DATA ep_value TYPE zexcel_cell_value. * Test 2. Basic conversion ep_value = zcl_excel_common=>time_to_excel_string( '022400' ). cl_abap_unit_assert=>assert_equals( act = ep_value exp = '0.1000000000000000' msg = 'Wrong date conversion' level = if_aunit_constants=>critical ). ENDMETHOD. METHOD split_file. * ============================ DATA: ep_file TYPE text255, ep_extension TYPE char10, ep_dotextension TYPE char10. * Test 1. Basic conversion zcl_excel_common=>split_file( EXPORTING ip_file = 'filename.xml' IMPORTING ep_file = ep_file ep_extension = ep_extension ep_dotextension = ep_dotextension ). cl_abap_unit_assert=>assert_equals( act = ep_file exp = 'filename' msg = 'Split filename failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = ep_extension exp = 'xml' msg = 'Split extension failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = ep_dotextension exp = '.xml' msg = 'Split extension failed' level = if_aunit_constants=>critical ). * Test 2. no extension zcl_excel_common=>split_file( EXPORTING ip_file = 'filename' IMPORTING ep_file = ep_file ep_extension = ep_extension ep_dotextension = ep_dotextension ). cl_abap_unit_assert=>assert_equals( act = ep_file exp = 'filename' msg = 'Split filename failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = ep_extension exp = '' msg = 'Split extension failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = ep_dotextension exp = '' msg = 'Split extension failed' level = if_aunit_constants=>critical ). ENDMETHOD. "split_file METHOD convert_range2column_a_row. DATA: lv_range TYPE string. DATA: lv_column_start TYPE zexcel_cell_column_alpha, lv_column_end TYPE zexcel_cell_column_alpha, lv_row_start TYPE zexcel_cell_row, lv_row_end TYPE zexcel_cell_row, lv_sheet TYPE string. * a) input empty --> nothing to do zcl_excel_common=>convert_range2column_a_row( EXPORTING i_range = lv_range IMPORTING e_column_start = lv_column_start " Cell Column Start e_column_end = lv_column_end " Cell Column End e_row_start = lv_row_start " Cell Row e_row_end = lv_row_end " Cell Row e_sheet = lv_sheet " Title ). cl_abap_unit_assert=>assert_equals( act = lv_column_start exp = '' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_column_end exp = '' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_row_start exp = '' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_row_end exp = '' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_sheet exp = '' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). * b) sheetname existing - starts with ' example 'Sheet 1'!$B$6:$D$13 lv_range = `'Sheet 1'!$B$6:$D$13`. zcl_excel_common=>convert_range2column_a_row( EXPORTING i_range = lv_range IMPORTING e_column_start = lv_column_start " Cell Column Start e_column_end = lv_column_end " Cell Column End e_row_start = lv_row_start " Cell Row e_row_end = lv_row_end " Cell Row e_sheet = lv_sheet " Title ). cl_abap_unit_assert=>assert_equals( act = lv_column_start exp = 'B' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_column_end exp = 'D' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_row_start exp = '6' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_row_end exp = '13' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_sheet exp = 'Sheet 1' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). * c) sheetname existing - does not start with ' example Sheet1!$B$6:$D$13 lv_range = `Sheet1!B6:$D$13`. zcl_excel_common=>convert_range2column_a_row( EXPORTING i_range = lv_range IMPORTING e_column_start = lv_column_start " Cell Column Start e_column_end = lv_column_end " Cell Column End e_row_start = lv_row_start " Cell Row e_row_end = lv_row_end " Cell Row e_sheet = lv_sheet " Title ). cl_abap_unit_assert=>assert_equals( act = lv_column_start exp = 'B' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_column_end exp = 'D' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_row_start exp = '6' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_row_end exp = '13' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_sheet exp = 'Sheet1' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). * d) no sheetname - just area example $B$6:$D$13 lv_range = `$B$6:D13`. zcl_excel_common=>convert_range2column_a_row( EXPORTING i_range = lv_range IMPORTING e_column_start = lv_column_start " Cell Column Start e_column_end = lv_column_end " Cell Column End e_row_start = lv_row_start " Cell Row e_row_end = lv_row_end " Cell Row e_sheet = lv_sheet " Title ). cl_abap_unit_assert=>assert_equals( act = lv_column_start exp = 'B' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_column_end exp = 'D' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_row_start exp = '6' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_row_end exp = '13' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_sheet exp = '' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). ********************************************************************** * 1 Dimensional Ranges - Ros or Cols Only (eg Print Tiles) * lv_range = `$2:$7`. zcl_excel_common=>convert_range2column_a_row( EXPORTING i_range = lv_range i_allow_1dim_range = abap_false IMPORTING e_column_start = lv_column_start e_column_end = lv_column_end e_row_start = lv_row_start e_row_end = lv_row_end e_sheet = lv_sheet ). cl_abap_unit_assert=>assert_equals( act = lv_column_start exp = '' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_column_end exp = '' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_row_start exp = '' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_row_end exp = '' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_sheet exp = '' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). *** lv_range = `$2:$7`. zcl_excel_common=>convert_range2column_a_row( EXPORTING i_range = lv_range i_allow_1dim_range = abap_true IMPORTING e_column_start = lv_column_start e_column_end = lv_column_end e_row_start = lv_row_start e_row_end = lv_row_end e_sheet = lv_sheet ). cl_abap_unit_assert=>assert_equals( act = lv_column_start exp = '' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_column_end exp = '' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_row_start exp = '2' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_row_end exp = '7' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_sheet exp = '' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). *** lv_range = `Sheet3!$D:$I`. zcl_excel_common=>convert_range2column_a_row( EXPORTING i_range = lv_range i_allow_1dim_range = abap_true IMPORTING e_column_start = lv_column_start e_column_end = lv_column_end e_row_start = lv_row_start e_row_end = lv_row_end e_sheet = lv_sheet ). cl_abap_unit_assert=>assert_equals( act = lv_column_start exp = 'D' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_column_end exp = 'I' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_row_start exp = '' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_row_end exp = '' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). cl_abap_unit_assert=>assert_equals( act = lv_sheet exp = 'Sheet3' msg = 'Conversion of range failed' level = if_aunit_constants=>critical ). ENDMETHOD. "convert_range2column_a_row METHOD describe_structure. DATA: ls_test TYPE zexcel_pane. DATA: lo_structdescr TYPE REF TO cl_abap_structdescr. DATA: lt_structure TYPE ddfields. FIELD-SYMBOLS: <line> LIKE LINE OF lt_structure. " Test with DDIC Type lo_structdescr ?= cl_abap_structdescr=>describe_by_data( p_data = ls_test ). lt_structure = zcl_excel_common=>describe_structure( io_struct = lo_structdescr ). READ TABLE lt_structure ASSIGNING <line> INDEX 1. cl_abap_unit_assert=>assert_equals( act = <line>-fieldname exp = 'YSPLIT' msg = 'Describe structure failed' level = if_aunit_constants=>critical ). " Test with local defined structure having DDIC and non DDIC elements TYPES: BEGIN OF t_test, carrid TYPE string, carrname TYPE string, carrdesc TYPE string, END OF t_test. DATA: ls_ttest TYPE t_test. lo_structdescr ?= cl_abap_structdescr=>describe_by_data( p_data = ls_ttest ). lt_structure = zcl_excel_common=>describe_structure( io_struct = lo_structdescr ). READ TABLE lt_structure ASSIGNING <line> INDEX 1. cl_abap_unit_assert=>assert_equals( act = <line>-fieldname exp = 'CARRID' msg = 'Describe structure failed' level = if_aunit_constants=>critical ). ENDMETHOD. "describe_structure METHOD macro_calculate_cell_distance. DATA: lv_offset_rows TYPE i, lv_offset_cols TYPE i, lv_message TYPE string. zcl_excel_common=>calculate_cell_distance( EXPORTING iv_reference_cell = iv_reference_cell iv_current_cell = iv_current_cell IMPORTING ev_row_difference = lv_offset_rows ev_col_difference = lv_offset_cols ). * Check delta columns CONCATENATE 'Error calculating column difference in test:' iv_reference_cell '->' iv_current_cell INTO lv_message SEPARATED BY space. cl_abap_unit_assert=>assert_equals( act = lv_offset_cols exp = iv_expected_column msg = lv_message quit = 0 " continue tests level = if_aunit_constants=>critical ). * Check delta rows CONCATENATE 'Error calculating row difference in test:' iv_reference_cell '->' iv_current_cell INTO lv_message SEPARATED BY space. cl_abap_unit_assert=>assert_equals( act = lv_offset_rows exp = iv_expected_row msg = lv_message quit = 0 " continue tests level = if_aunit_constants=>critical ). ENDMETHOD. METHOD calc_cell_dist_samecell. " Same cell macro_calculate_cell_distance( iv_reference_cell = 'C12' iv_current_cell = 'C12' iv_expected_column = 0 iv_expected_row = 0 ). ENDMETHOD. METHOD calc_cell_dist_down1pl. " Shift down 1 place macro_calculate_cell_distance( iv_reference_cell = 'C12' iv_current_cell = 'C13' iv_expected_column = 0 iv_expected_row = 1 ). ENDMETHOD. METHOD calc_cell_dist_downsome. " Shift down some places macro_calculate_cell_distance( iv_reference_cell = 'C12' iv_current_cell = 'C25' iv_expected_column = 0 iv_expected_row = 13 ). ENDMETHOD. METHOD calc_cell_dist_up1pl. " Shift up 1 place macro_calculate_cell_distance( iv_reference_cell = 'C12' iv_current_cell = 'C11' iv_expected_column = 0 iv_expected_row = -1 ). ENDMETHOD. METHOD calc_cell_dist_upsome. " Shift up some place macro_calculate_cell_distance( iv_reference_cell = 'C12' iv_current_cell = 'C1' iv_expected_column = 0 iv_expected_row = -11 ). ENDMETHOD. METHOD calc_cell_dist_right1pl. " Shift right 1 place macro_calculate_cell_distance( iv_reference_cell = 'C12' iv_current_cell = 'D12' iv_expected_column = 1 iv_expected_row = 0 ). ENDMETHOD. METHOD calc_cell_dist_rightsome. " Shift right some places macro_calculate_cell_distance( iv_reference_cell = 'C12' iv_current_cell = 'AA12' iv_expected_column = 24 iv_expected_row = 0 ). ENDMETHOD. METHOD calc_cell_dist_left1pl. " Shift left 1 place macro_calculate_cell_distance( iv_reference_cell = 'C12' iv_current_cell = 'B12' iv_expected_column = -1 iv_expected_row = 0 ). ENDMETHOD. METHOD calc_cell_dist_leftsome. " Shift left some place macro_calculate_cell_distance( iv_reference_cell = 'AA12' iv_current_cell = 'C12' iv_expected_column = -24 iv_expected_row = 0 ). ENDMETHOD. METHOD calc_cell_dist_fullpack. " The full package. macro_calculate_cell_distance( iv_reference_cell = 'AA121' iv_current_cell = 'C12' iv_expected_column = -24 iv_expected_row = -109 ). ENDMETHOD. METHOD macro_shift_formula. DATA: lv_resulting_formula TYPE string, lv_message TYPE string, lv_counter TYPE n LENGTH 8. ADD 1 TO lv_counter. CLEAR lv_resulting_formula. TRY. lv_resulting_formula = zcl_excel_common=>shift_formula( iv_reference_formula = iv_reference_formula iv_shift_cols = iv_shift_cols iv_shift_rows = iv_shift_rows ). CONCATENATE 'Wrong result in test' lv_counter 'shifting formula ' iv_reference_formula INTO lv_message SEPARATED BY space. cl_abap_unit_assert=>assert_equals( act = lv_resulting_formula exp = iv_expected msg = lv_message quit = 0 " continue tests level = if_aunit_constants=>critical ). CATCH zcx_excel. CONCATENATE 'Unexpected exception occurred in test' lv_counter 'shifting formula ' iv_reference_formula INTO lv_message SEPARATED BY space. cl_abap_unit_assert=>assert_equals( act = lv_resulting_formula exp = iv_expected msg = lv_message quit = 0 " continue tests level = if_aunit_constants=>critical ). ENDTRY. ENDMETHOD. METHOD shift_formula_basic. " Very basic check macro_shift_formula( iv_reference_formula = 'C17' iv_shift_cols = 0 iv_shift_rows = 0 iv_expected = 'C17' ). ENDMETHOD. METHOD shift_formula_rightdown. " Check shift right and down macro_shift_formula( iv_reference_formula = 'C17' iv_shift_cols = 2 iv_shift_rows = 3 iv_expected = 'E20' ). ENDMETHOD. METHOD shift_formula_leftup. " Check shift left and up macro_shift_formula( iv_reference_formula = 'C17' iv_shift_cols = -2 iv_shift_rows = -3 iv_expected = 'A14' ). ENDMETHOD. METHOD shift_formula_fixedcolrows. " Fixed columns/rows macro_shift_formula( iv_reference_formula = '$C$17' iv_shift_cols = 1 iv_shift_rows = 1 iv_expected = '$C$17' ). ENDMETHOD. METHOD shift_formula_mixedfixedrows. " Operators and Ranges, mixed fixed rows or columns macro_shift_formula( iv_reference_formula = 'SUM($C17:C$23)+C30' iv_shift_cols = 1 iv_shift_rows = 11 iv_expected = 'SUM($C28:D$23)+D41' ). ENDMETHOD. METHOD shift_formula_rangename. " Operators and Rangename macro_shift_formula( iv_reference_formula = 'RNGNAME1+C7' iv_shift_cols = -1 iv_shift_rows = -4 iv_expected = 'RNGNAME1+B3' ). ENDMETHOD. METHOD shift_formula_stringlitconc. " String literals and string concatenation macro_shift_formula( iv_reference_formula = '"Date:"&TEXT(B2)' iv_shift_cols = 1 iv_shift_rows = 1 iv_expected = '"Date:"&TEXT(C3)' ). ENDMETHOD. METHOD shift_formula_extref. " External sheet reference macro_shift_formula( iv_reference_formula = '[TEST6.XLSX]SHEET1!A1' iv_shift_cols = 1 iv_shift_rows = 11 iv_expected = '[TEST6.XLSX]SHEET1!B12' ). ENDMETHOD. METHOD shift_formula_charblanks. " superflous blanks, multi-argument functions, literals in function, unknown functions macro_shift_formula( iv_reference_formula = `X(B13, "KK" ) ` iv_shift_cols = 1 iv_shift_rows = 1 iv_expected = `X(C14, "KK" ) ` ). ENDMETHOD. METHOD shift_formula_stringblanks. " same as above - but with string input instead of Char-input macro_shift_formula( iv_reference_formula = `SIN(SIN(SIN(SIN(E22))))` iv_shift_cols = 0 iv_shift_rows = 1 iv_expected = 'SIN(SIN(SIN(SIN(E23))))' ). ENDMETHOD. METHOD shift_formula_funcnoargs. " Functions w/o arguments, No cellreferences macro_shift_formula( iv_reference_formula = 'HEUTE()' iv_shift_cols = 2 iv_shift_rows = 5 iv_expected = 'HEUTE()' ). ENDMETHOD. METHOD shift_formula_nocellref. " No cellreferences macro_shift_formula( iv_reference_formula = '"B2"' iv_shift_cols = 2 iv_shift_rows = 5 iv_expected = '"B2"' ). ENDMETHOD. METHOD shift_formula_empty. " Empty macro_shift_formula( iv_reference_formula = '' iv_shift_cols = 2 iv_shift_rows = 5 iv_expected = '' ). ENDMETHOD. METHOD shift_formula_referr_colunder. " Referencing error , column only , underflow macro_shift_formula( iv_reference_formula = 'A1+$A1+A$1+$A$1+B2' iv_shift_cols = -1 iv_shift_rows = 0 iv_expected = '#REF!+$A1+#REF!+$A$1+A2' ). ENDMETHOD. METHOD shift_formula_referr_rowunder. " Referencing error , row only , underflow macro_shift_formula( iv_reference_formula = 'A1+$A1+A$1+$A$1+B2' iv_shift_cols = 0 iv_shift_rows = -1 iv_expected = '#REF!+#REF!+A$1+$A$1+B1' ). ENDMETHOD. METHOD shift_formula_referr_rowcolund. " Referencing error , row and column , underflow macro_shift_formula( iv_reference_formula = 'A1+$A1+A$1+$A$1+B2' iv_shift_cols = -1 iv_shift_rows = -1 iv_expected = '#REF!+#REF!+#REF!+$A$1+A1' ). ENDMETHOD. METHOD shift_formula_sheet_nodigit. " Sheet name not ending with digit macro_shift_formula( iv_reference_formula = 'Sheet!A1' iv_shift_cols = 1 iv_shift_rows = 1 iv_expected = 'Sheet!B2' ). ENDMETHOD. METHOD shift_formula_sheet_nodig. " Sheet name ending with digit macro_shift_formula( iv_reference_formula = 'Sheet2!A1' iv_shift_cols = 1 iv_shift_rows = 1 iv_expected = 'Sheet2!B2' ). ENDMETHOD. METHOD shift_formula_sheet_special. " Sheet name with special characters macro_shift_formula( iv_reference_formula = |'Sheet name'!A1| iv_shift_cols = 1 iv_shift_rows = 1 iv_expected = |'Sheet name'!B2| ). ENDMETHOD. METHOD shift_formula_resp_blanks_1. " Respecting blanks macro_shift_formula( iv_reference_formula = 'SUBTOTAL(109,Table1[SUM 1])' iv_shift_cols = 1 iv_shift_rows = 1 iv_expected = 'SUBTOTAL(109,Table1[SUM 1])' ). ENDMETHOD. METHOD shift_formula_resp_blanks_2. " Respecting blanks macro_shift_formula( iv_reference_formula = 'B4 & C4' iv_shift_cols = 0 iv_shift_rows = 1 iv_expected = 'B5 & C5' ). ENDMETHOD. METHOD shift_formula_range. " F_1 is a range name, not a cell address macro_shift_formula( iv_reference_formula = 'SUM(F_1,F_2)' iv_shift_cols = 1 iv_shift_rows = 1 iv_expected = 'SUM(F_1,F_2)' ). ENDMETHOD. METHOD shift_formula_notcols. " RC are not columns macro_shift_formula( iv_reference_formula = 'INDIRECT("RC[4]",FALSE)' iv_shift_cols = 1 iv_shift_rows = 1 iv_expected = 'INDIRECT("RC[4]",FALSE)' ). ENDMETHOD. METHOD shift_formula_name. " A1 is a sheet name macro_shift_formula( iv_reference_formula = |'A1'!$A$1| iv_shift_cols = 1 iv_shift_rows = 1 iv_expected = |'A1'!$A$1| ). ENDMETHOD. METHOD shift_formula_refcolumn1. " Reference to another column in the same row of a Table, with a space in the column name macro_shift_formula( iv_reference_formula = 'Tbl[[#This Row],[Air fare]]' iv_shift_cols = 1 iv_shift_rows = 1 iv_expected = 'Tbl[[#This Row],[Air fare]]' ). ENDMETHOD. METHOD shift_formula_refcolumn2. " Reference to another column in the same row of a Table, inside more complex expression macro_shift_formula( iv_reference_formula = 'Tbl[[#This Row],[Air]]+A1' iv_shift_cols = 1 iv_shift_rows = 1 iv_expected = 'Tbl[[#This Row],[Air]]+B2' ). ENDMETHOD. METHOD is_cell_in_range_ulc_in. * Test 1: upper left corner (in range) DATA ep_cell_in_range TYPE abap_bool. TRY. ep_cell_in_range = zcl_excel_common=>is_cell_in_range( ip_column = 'B' ip_row = 2 ip_range = 'B2:D4' ). cl_abap_unit_assert=>assert_equals( act = ep_cell_in_range exp = abap_true msg = 'Check cell in range failed' level = if_aunit_constants=>critical ). CATCH zcx_excel. cl_abap_unit_assert=>fail( msg = 'Unexpected exception' level = if_aunit_constants=>critical ). ENDTRY. ENDMETHOD. "is_cell_in_range_ulc_in METHOD is_cell_in_range_lrc_in. * Test 2: lower right corner (in range) DATA ep_cell_in_range TYPE abap_bool. TRY. ep_cell_in_range = zcl_excel_common=>is_cell_in_range( ip_column = 'D' ip_row = 4 ip_range = 'B2:D4' ). cl_abap_unit_assert=>assert_equals( act = ep_cell_in_range exp = abap_true msg = 'Check cell in range failed' level = if_aunit_constants=>critical ). CATCH zcx_excel. cl_abap_unit_assert=>fail( msg = 'Unexpected exception' level = if_aunit_constants=>critical ). ENDTRY. ENDMETHOD. "is_cell_in_range_lrc_in METHOD is_cell_in_range_leftside_out. * Test 3: left side (out of range) DATA ep_cell_in_range TYPE abap_bool. TRY. ep_cell_in_range = zcl_excel_common=>is_cell_in_range( ip_column = 'A' ip_row = 3 ip_range = 'B2:D4' ). cl_abap_unit_assert=>assert_equals( act = ep_cell_in_range exp = abap_false msg = 'Check cell in range failed' level = if_aunit_constants=>critical ). CATCH zcx_excel. cl_abap_unit_assert=>fail( msg = 'Unexpected exception' level = if_aunit_constants=>critical ). ENDTRY. ENDMETHOD. "is_cell_in_range_leftside_out METHOD is_cell_in_range_upperside_out. * Test 4: upper side (out of range) DATA ep_cell_in_range TYPE abap_bool. TRY. ep_cell_in_range = zcl_excel_common=>is_cell_in_range( ip_column = 'C' ip_row = 1 ip_range = 'B2:D4' ). cl_abap_unit_assert=>assert_equals( act = ep_cell_in_range exp = abap_false msg = 'Check cell in range failed' level = if_aunit_constants=>critical ). CATCH zcx_excel. cl_abap_unit_assert=>fail( msg = 'Unexpected exception' level = if_aunit_constants=>critical ). ENDTRY. ENDMETHOD. "is_cell_in_range_upperside_out METHOD is_cell_in_range_rightside_out. * Test 5: right side (out of range) DATA ep_cell_in_range TYPE abap_bool. TRY. ep_cell_in_range = zcl_excel_common=>is_cell_in_range( ip_column = 'E' ip_row = 3 ip_range = 'B2:D4' ). cl_abap_unit_assert=>assert_equals( act = ep_cell_in_range exp = abap_false msg = 'Check cell in range failed' level = if_aunit_constants=>critical ). CATCH zcx_excel. cl_abap_unit_assert=>fail( msg = 'Unexpected exception' level = if_aunit_constants=>critical ). ENDTRY. ENDMETHOD. "is_cell_in_range_rightside_out METHOD is_cell_in_range_lowerside_out. * Test 6: lower side (out of range) DATA ep_cell_in_range TYPE abap_bool. TRY. ep_cell_in_range = zcl_excel_common=>is_cell_in_range( ip_column = 'C' ip_row = 5 ip_range = 'B2:D4' ). cl_abap_unit_assert=>assert_equals( act = ep_cell_in_range exp = abap_false msg = 'Check cell in range failed' level = if_aunit_constants=>critical ). CATCH zcx_excel. cl_abap_unit_assert=>fail( msg = 'Unexpected exception' level = if_aunit_constants=>critical ). ENDTRY. ENDMETHOD. "is_cell_in_range_lowerside_out. ENDCLASS.
[ 31631, 300, 565, 62, 1069, 5276, 62, 11321, 62, 9288, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 31631, 1976, 565, 62, 1069, 5276, 62, 11321, 5550, 20032, 17941, 37347, 1847, 48167, 1677, 5258, 300, 565, 62, 1069, 5276, 62, 11321, 62, 9288, 13, 198, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 565, 62, 3109, 5276, 62, 17227, 62, 14402, 5550, 20032, 17941, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 31631, 300, 565, 62, 1069, 5276, 62, 11321, 62, 9288, 5550, 20032, 17941, 7473, 43001, 2751, 198, 220, 220, 220, 45698, 42, 49277, 43638, 5805, 7597, 198, 220, 220, 220, 360, 4261, 6234, 6006, 9863, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 9, 796, 25609, 18604, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 300, 87, 62, 1069, 5276, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 66, 87, 62, 1069, 5276, 11, 198, 220, 220, 220, 220, 220, 43979, 62, 1837, 19662, 62, 529, 34178, 827, 11, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 4036, 220, 220, 3275, 17018, 286, 6631, 198, 220, 220, 220, 220, 220, 43979, 62, 1837, 19662, 62, 11201, 34178, 827, 11, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 2938, 3275, 17018, 286, 6631, 198, 220, 220, 220, 220, 220, 277, 62, 8968, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 11321, 13, 220, 366, 4871, 739, 1332, 628, 220, 220, 220, 337, 36252, 50, 25, 9058, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 10385, 62, 28665, 17, 26591, 62, 36439, 7473, 43001, 2751, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 10385, 62, 28665, 17, 26591, 62, 9806, 4033, 7473, 43001, 2751, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 10385, 62, 28665, 17, 26591, 62, 12957, 7473, 43001, 2751, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 10385, 62, 28665, 17, 26591, 62, 78, 672, 7473, 43001, 2751, 13, 198, 220, 220, 220, 337, 36252, 50, 10385, 62, 28665, 17, 600, 62, 35487, 7473, 43001, 2751, 13, 198, 220, 220, 220, 337, 36252, 50, 10385, 62, 28665, 17, 600, 62, 9806, 4033, 7473, 43001, 2751, 13, 198, 220, 220, 220, 337, 36252, 50, 10385, 62, 28665, 17, 600, 62, 78, 672, 62, 28920, 7473, 43001, 2751, 13, 198, 220, 220, 220, 337, 36252, 50, 10385, 62, 28665, 17, 600, 62, 78, 672, 62, 259, 12102, 7473, 43001, 2751, 13, 198, 220, 220, 220, 337, 36252, 50, 3128, 62, 1462, 62, 1069, 5276, 62, 8841, 16, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 3128, 62, 1462, 62, 1069, 5276, 62, 8841, 17, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 3128, 62, 1462, 62, 1069, 5276, 62, 8841, 18, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 3128, 62, 1462, 62, 1069, 5276, 62, 8841, 19, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 3128, 62, 1462, 62, 1069, 5276, 62, 8841, 20, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 3128, 62, 1462, 62, 1069, 5276, 62, 8841, 21, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 34117, 62, 28712, 7473, 43001, 2751, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 27336, 62, 8841, 62, 1462, 62, 4475, 7473, 43001, 2751, 13, 198, 220, 220, 220, 337, 36252, 50, 27336, 62, 8841, 62, 1462, 62, 2435, 16, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 27336, 62, 8841, 62, 1462, 62, 2435, 17, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 27336, 62, 8841, 62, 1462, 62, 2435, 18, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 27336, 62, 8841, 62, 1462, 62, 2435, 19, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 27336, 62, 8841, 62, 1462, 62, 2435, 20, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 640, 62, 1462, 62, 1069, 5276, 62, 8841, 16, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 640, 62, 1462, 62, 1069, 5276, 62, 8841, 17, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 640, 62, 1462, 62, 1069, 5276, 62, 8841, 18, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 640, 62, 1462, 62, 1069, 5276, 62, 8841, 19, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 6626, 62, 7753, 7473, 43001, 2751, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 10385, 62, 9521, 17, 28665, 62, 64, 62, 808, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 6901, 62, 301, 5620, 7473, 43001, 2751, 13, 198, 220, 220, 220, 337, 36252, 50, 15021, 62, 9948, 3129, 378, 62, 3846, 62, 30246, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 35790, 62, 3846, 220, 41876, 537, 522, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 14421, 62, 3846, 220, 220, 220, 41876, 537, 522, 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, 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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 ]
CLASS ycl_abapgit_object_ssfo DEFINITION PUBLIC INHERITING FROM ycl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES yif_abapgit_object. ALIASES mo_files FOR yif_abapgit_object~mo_files. PRIVATE SECTION. METHODS: fix_ids IMPORTING ii_xml_doc TYPE REF TO if_ixml_document. ENDCLASS. CLASS ycl_abapgit_object_ssfo IMPLEMENTATION. METHOD yif_abapgit_object~has_changed_since. rv_changed = abap_true. ENDMETHOD. METHOD yif_abapgit_object~changed_by. SELECT SINGLE lastuser FROM stxfadm INTO rv_user WHERE formname = ms_item-obj_name. IF sy-subrc <> 0. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD yif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). rs_metadata-delete_tadir = abap_true. ENDMETHOD. METHOD yif_abapgit_object~exists. DATA: lv_formname TYPE stxfadm-formname. SELECT SINGLE formname FROM stxfadm INTO lv_formname WHERE formname = ms_item-obj_name. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD yif_abapgit_object~jump. DATA: lt_bdcdata TYPE TABLE OF bdcdata, lv_formtype TYPE stxfadm-formtype. FIELD-SYMBOLS: <ls_bdcdata> LIKE LINE OF lt_bdcdata. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-program = 'SAPMSSFO'. <ls_bdcdata>-dynpro = '0100'. <ls_bdcdata>-dynbegin = abap_true. SELECT SINGLE formtype FROM stxfadm INTO lv_formtype WHERE formname = ms_item-obj_name. IF lv_formtype = cssf_formtype_text. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-fnam = 'RB_TX'. <ls_bdcdata>-fval = abap_true. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-fnam = 'BDC_OKCODE'. <ls_bdcdata>-fval = '=RB'. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-program = 'SAPMSSFO'. <ls_bdcdata>-dynpro = '0100'. <ls_bdcdata>-dynbegin = abap_true. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-fnam = 'SSFSCREEN-TNAME'. <ls_bdcdata>-fval = ms_item-obj_name. ELSE. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-fnam = 'SSFSCREEN-FNAME'. <ls_bdcdata>-fval = ms_item-obj_name. ENDIF. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-fnam = 'BDC_OKCODE'. <ls_bdcdata>-fval = '=DISPLAY'. CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'GIT' EXPORTING tcode = 'SMARTFORMS' mode_val = 'E' TABLES using_tab = lt_bdcdata EXCEPTIONS system_failure = 1 communication_failure = 2 resource_failure = 3 OTHERS = 4 ##fm_subrc_ok. "#EC CI_SUBRC ENDMETHOD. METHOD yif_abapgit_object~delete. DATA: lv_formname TYPE tdsfname. lv_formname = ms_item-obj_name. CALL FUNCTION 'FB_DELETE_FORM' EXPORTING i_formname = lv_formname i_with_dialog = abap_false i_with_confirm_dialog = abap_false EXCEPTIONS no_name = 1 no_form = 2 form_locked = 3 no_access_permission = 4 illegal_language = 5 illegal_formtype = 6 OTHERS = 7. IF sy-subrc <> 0 AND sy-subrc <> 2. ycx_abapgit_exception=>raise( 'Error from FB_DELETE_FORM' ). ENDIF. ENDMETHOD. METHOD yif_abapgit_object~serialize. * see function module FB_DOWNLOAD_FORM DATA: lo_sf TYPE REF TO cl_ssf_fb_smart_form, lv_name TYPE string, li_node TYPE REF TO if_ixml_node, li_element TYPE REF TO if_ixml_element, li_iterator TYPE REF TO if_ixml_node_iterator, lv_formname TYPE tdsfname, li_ixml TYPE REF TO if_ixml, li_xml_doc TYPE REF TO if_ixml_document. li_ixml = cl_ixml=>create( ). li_xml_doc = li_ixml->create_document( ). CREATE OBJECT lo_sf. lv_formname = ms_item-obj_name. " convert type TRY. lo_sf->load( im_formname = lv_formname im_language = '' ). CATCH cx_ssf_fb. * the smartform is not present in system, or other error occured RETURN. ENDTRY. lo_sf->xml_download( EXPORTING parent = li_xml_doc CHANGING document = li_xml_doc ). li_iterator = li_xml_doc->create_iterator( ). li_node = li_iterator->get_next( ). WHILE NOT li_node IS INITIAL. lv_name = li_node->get_name( ). IF lv_name = 'DEVCLASS' OR lv_name = 'LASTDATE' OR lv_name = 'LASTTIME'. li_node->set_value( '' ). ENDIF. IF lv_name = 'FIRSTUSER' OR lv_name = 'LASTUSER'. li_node->set_value( 'DUMMY' ). ENDIF. li_node = li_iterator->get_next( ). ENDWHILE. fix_ids( li_xml_doc ). li_element = li_xml_doc->get_root_element( ). li_element->set_attribute( name = 'sf' namespace = 'xmlns' value = 'urn:sap-com:SmartForms:2000:internal-structure' ). "#EC NOTEXT li_element->set_attribute( name = 'xmlns' value = 'urn:sap-com:sdixml-ifr:2000' ). "#EC NOTEXT io_xml->set_raw( li_xml_doc->get_root_element( ) ). ENDMETHOD. METHOD fix_ids. * makes sure ID and IDREF values are the same values for each serialization run * the standard code has a counter that keeps increasing values DATA: lv_name TYPE string, li_idref TYPE REF TO if_ixml_node, li_node TYPE REF TO if_ixml_node, li_attr TYPE REF TO if_ixml_named_node_map, li_iterator TYPE REF TO if_ixml_node_iterator, lt_idref TYPE STANDARD TABLE OF string WITH DEFAULT KEY. li_iterator = ii_xml_doc->create_iterator( ). li_node = li_iterator->get_next( ). WHILE NOT li_node IS INITIAL. lv_name = li_node->get_name( ). IF lv_name = 'NODE' OR lv_name = 'WINDOW'. li_idref = li_node->get_attributes( )->get_named_item( 'IDREF' ). IF li_idref IS BOUND. APPEND li_idref->get_value( ) TO lt_idref. li_idref->set_value( |{ sy-tabix }| ). ENDIF. ENDIF. li_node = li_iterator->get_next( ). ENDWHILE. li_iterator = ii_xml_doc->create_iterator( ). li_node = li_iterator->get_next( ). WHILE NOT li_node IS INITIAL. lv_name = li_node->get_name( ). IF lv_name = 'NODE' OR lv_name = 'WINDOW'. li_idref = li_node->get_attributes( )->get_named_item( 'ID' ). IF li_idref IS BOUND. lv_name = li_idref->get_value( ). READ TABLE lt_idref WITH KEY table_line = lv_name TRANSPORTING NO FIELDS. IF sy-subrc = 0. li_idref->set_value( |{ sy-tabix }| ). ELSE. li_attr = li_node->get_attributes( ). li_attr->remove_named_item( 'ID' ). ENDIF. ENDIF. ENDIF. li_node = li_iterator->get_next( ). ENDWHILE. ENDMETHOD. METHOD yif_abapgit_object~deserialize. * see function module FB_UPLOAD_FORM DATA: li_node TYPE REF TO if_ixml_node, lv_formname TYPE tdsfname, lv_name TYPE string, li_iterator TYPE REF TO if_ixml_node_iterator, lo_sf TYPE REF TO cl_ssf_fb_smart_form, lo_res TYPE REF TO cl_ssf_fb_smart_form, lx_error TYPE REF TO cx_ssf_fb, lv_text TYPE string. CREATE OBJECT lo_sf. * set "created by" and "changed by" to current user li_iterator = io_xml->get_raw( )->get_root_element( )->create_iterator( ). li_node = li_iterator->get_next( ). WHILE NOT li_node IS INITIAL. lv_name = li_node->get_name( ). CASE lv_name. WHEN 'LASTDATE'. li_node->set_value( sy-datum(4) && '-' && sy-datum+4(2) && '-' && sy-datum+6(2) ). WHEN 'LASTTIME'. li_node->set_value( sy-uzeit(2) && ':' && sy-uzeit+2(2) && ':' && sy-uzeit+4(2) ). WHEN 'FIRSTUSER' OR 'LASTUSER'. li_node->set_value( sy-uname && '' ). ENDCASE. li_node = li_iterator->get_next( ). ENDWHILE. tadir_insert( iv_package ). lv_formname = ms_item-obj_name. TRY. lo_sf->enqueue( suppress_corr_check = space master_language = mv_language mode = 'INSERT' formname = lv_formname ). lo_sf->xml_upload( EXPORTING dom = io_xml->get_raw( )->get_root_element( ) formname = lv_formname language = mv_language CHANGING sform = lo_res ). lo_res->store( im_formname = lo_res->header-formname im_language = mv_language im_active = abap_true ). lo_sf->dequeue( lv_formname ). CATCH cx_ssf_fb INTO lx_error. lv_text = lx_error->get_text( ). ycx_abapgit_exception=>raise( |{ ms_item-obj_type } { ms_item-obj_name }: { lv_text } | ). ENDTRY. ENDMETHOD. METHOD yif_abapgit_object~compare_to_remote_version. CREATE OBJECT ro_comparison_result TYPE ycl_abapgit_comparison_null. ENDMETHOD. METHOD yif_abapgit_object~is_locked. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'E_SMFORM' iv_argument = |{ ms_item-obj_name }| ). ENDMETHOD. ENDCLASS.
[ 31631, 331, 565, 62, 397, 499, 18300, 62, 15252, 62, 824, 6513, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 331, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 331, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 331, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 4259, 62, 2340, 30023, 9863, 2751, 21065, 62, 19875, 62, 15390, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 22897, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 331, 565, 62, 397, 499, 18300, 62, 15252, 62, 824, 6513, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 331, 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, 331, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 628, 220, 220, 220, 33493, 311, 2751, 2538, 938, 7220, 16034, 336, 26152, 324, 76, 39319, 374, 85, 62, 7220, 198, 220, 220, 220, 220, 220, 33411, 1296, 3672, 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, 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, 331, 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, 628, 220, 337, 36252, 331, 361, 62, 397, 499, 18300, 62, 15252, 93, 1069, 1023, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 687, 3672, 41876, 336, 26152, 324, 76, 12, 687, 3672, 13, 628, 198, 220, 220, 220, 33493, 311, 2751, 2538, 1296, 3672, 16034, 336, 26152, 324, 76, 39319, 300, 85, 62, 687, 3672, 198, 220, 220, 220, 220, 220, 33411, 1296, 3672, 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, 331, 361, 62, 397, 499, 18300, 62, 15252, 93, 43327, 13, 628, 220, 220, 220, 42865, 25, 300, 83, 62, 17457, 66, 7890, 220, 41876, 43679, 3963, 275, 17896, 7890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 687, 4906, 41876, 336, 26152, 324, 76, 12, 687, 4906, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 17457, 66, 7890, 29, 34178, 48920, 3963, 300, 83, 62, 17457, 66, 7890, 13, 628, 220, 220, 220, 43504, 10619, 3268, 2043, 12576, 48920, 5390, 300, 83, 62, 17457, 66, 7890, 24994, 3528, 15871, 1279, 7278, 62, 17457, 66, 7890, 28401, 198, 220, 220, 220, 1279, 7278, 62, 17457, 66, 7890, 29, 12, 23065, 220, 796, 705, 50, 2969, 44, 5432, 6080, 4458, 198, 220, 220, 220, 1279, 7278, 62, 17457, 66, 7890, 29, 12, 67, 2047, 1676, 220, 220, 796, 705, 39103, 4458, 198, 220, 220, 220, 1279, 7278, 62, 17457, 66, 7890, 29, 12, 67, 2047, 27471, 796, 450, 499, 62, 7942, 13, 628, 220, 220, 220, 33493, 311, 2751, 2538, 1296, 4906, 16034, 336, 26152, 324, 76, 39319, 300, 85, 62, 687, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33411, 1296, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 16876, 300, 85, 62, 687, 4906, 796, 269, 824, 69, 62, 687, 4906, 62, 5239, 13, 628, 220, 220, 220, 220, 220, 43504, 10619, 3268, 2043, 12576, 48920, 5390, 300, 83, 62, 17457, 66, 7890, 24994, 3528, 15871, 1279, 7278, 62, 17457, 66, 7890, 28401, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 17457, 66, 7890, 29, 12, 69, 7402, 796, 705, 27912, 62, 29551, 4458, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 17457, 66, 7890, 29, 12, 69, 2100, 796, 450, 499, 62, 7942, 13, 628, 220, 220, 220, 220, 220, 43504, 10619, 3268, 2043, 12576, 48920, 5390, 300, 83, 62, 17457, 66, 7890, 24994, 3528, 15871, 1279, 7278, 62, 17457, 66, 7890, 28401, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 17457, 66, 7890, 29, 12, 69, 7402, 796, 705, 33, 9697, 62, 11380, 34, 16820, 4458, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 17457, 66, 7890, 29, 12, 69, 2100, 796, 705, 28, 27912, 4458, 628, 220, 220, 220, 220, 220, 43504, 10619, 3268, 2043, 12576, 48920, 5390, 300, 83, 62, 17457, 66, 7890, 24994, 3528, 15871, 1279, 7278, 62, 17457, 66, 7890, 28401, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 17457, 66, 7890, 29, 12, 23065, 220, 796, 705, 50, 2969, 44, 5432, 6080, 4458, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 17457, 66, 7890, 29, 12, 67, 2047, 1676, 220, 220, 796, 705, 39103, 4458, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 17457, 66, 7890, 29, 12, 67, 2047, 27471, 796, 450, 499, 62, 7942, 13, 628, 220, 220, 220, 220, 220, 43504, 10619, 3268, 2043, 12576, 48920, 5390, 300, 83, 62, 17457, 66, 7890, 24994, 3528, 15871, 1279, 7278, 62, 17457, 66, 7890, 28401, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 17457, 66, 7890, 29, 12, 69, 7402, 796, 705, 5432, 37, 6173, 2200, 1677, 12, 51, 20608, 4458, 198, 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 ]
CLASS zcl_abapgit_object_tabl 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 . PROTECTED SECTION. TYPES: BEGIN OF ty_segment_definition, segmentheader TYPE edisegmhd, segmentdefinition TYPE edisegmdef, segmentstructures TYPE STANDARD TABLE OF edisegstru WITH DEFAULT KEY, END OF ty_segment_definition. TYPES: ty_segment_definitions TYPE STANDARD TABLE OF ty_segment_definition WITH DEFAULT KEY. TYPES: BEGIN OF ty_tabl_extras, tddat TYPE tddat, END OF ty_tabl_extras. "! get additional data like table authorization group "! @parameter iv_tabname | name of the table METHODS read_extras IMPORTING iv_tabname TYPE ddobjname RETURNING VALUE(rs_tabl_extras) TYPE ty_tabl_extras. "! Update additional data "! @parameter iv_tabname | name of the table "! @parameter is_tabl_extras | additional table data METHODS update_extras IMPORTING iv_tabname TYPE ddobjname is_tabl_extras TYPE ty_tabl_extras. "! Delete additional data "! @parameter iv_tabname | name of the table METHODS delete_extras IMPORTING iv_tabname TYPE ddobjname. "! Serialize IDoc Segment type/definition if exits "! @parameter io_xml | XML writer "! @raising zcx_abapgit_exception | Exceptions METHODS serialize_idoc_segment IMPORTING io_xml TYPE REF TO zif_abapgit_xml_output RAISING zcx_abapgit_exception. "! Deserialize IDoc Segment type/definition if exits "! @parameter io_xml | XML writer "! @parameter iv_package | Target package "! @parameter rv_deserialized | It's a segment and was desserialized "! @raising zcx_abapgit_exception | Exceptions METHODS deserialize_idoc_segment IMPORTING io_xml TYPE REF TO zif_abapgit_xml_input iv_package TYPE devclass RETURNING VALUE(rv_deserialized) TYPE abap_bool RAISING zcx_abapgit_exception. "! Delete the IDoc Segment type if exists "! @parameter rv_deleted | It's a segment and was deleted "! @raising zcx_abapgit_exception | Exceptions METHODS delete_idoc_segment RETURNING VALUE(rv_deleted) TYPE abap_bool RAISING zcx_abapgit_exception. PRIVATE SECTION. TYPES: ty_dd03p_tt TYPE STANDARD TABLE OF dd03p . TYPES: BEGIN OF ty_dd02_text, ddlanguage TYPE dd02t-ddlanguage, ddtext TYPE dd02t-ddtext, END OF ty_dd02_text . TYPES: ty_dd02_texts TYPE STANDARD TABLE OF ty_dd02_text . CONSTANTS c_longtext_id_tabl TYPE dokil-id VALUE 'TB' ##NO_TEXT. CONSTANTS: BEGIN OF c_s_dataname, segment_definition TYPE string VALUE 'SEGMENT_DEFINITION', tabl_extras TYPE string VALUE 'TABL_EXTRAS', END OF c_s_dataname . METHODS deserialize_indexes IMPORTING !io_xml TYPE REF TO zif_abapgit_xml_input RAISING zcx_abapgit_exception . METHODS clear_dd03p_fields CHANGING !ct_dd03p TYPE ty_dd03p_tt . "! Check if structure is an IDoc segment "! @parameter rv_is_idoc_segment | It's an IDoc segment or not METHODS is_idoc_segment RETURNING VALUE(rv_is_idoc_segment) TYPE abap_bool . METHODS clear_dd03p_fields_common CHANGING !cs_dd03p TYPE dd03p . METHODS clear_dd03p_fields_dataelement CHANGING !cs_dd03p TYPE dd03p . METHODS serialize_texts IMPORTING !io_xml TYPE REF TO zif_abapgit_xml_output RAISING zcx_abapgit_exception . METHODS deserialize_texts IMPORTING !io_xml TYPE REF TO zif_abapgit_xml_input !is_dd02v TYPE dd02v RAISING zcx_abapgit_exception . METHODS is_db_table_category IMPORTING !iv_tabclass TYPE dd02l-tabclass RETURNING VALUE(rv_is_db_table_type) TYPE dd02l-tabclass . ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_TABL IMPLEMENTATION. METHOD clear_dd03p_fields. CONSTANTS lc_comptype_dataelement TYPE comptype VALUE 'E'. DATA: lv_masklen TYPE c LENGTH 4. FIELD-SYMBOLS: <ls_dd03p> TYPE dd03p. * remove nested structures DELETE ct_dd03p WHERE depth <> '00'. * remove fields from .INCLUDEs DELETE ct_dd03p WHERE adminfield <> '0'. LOOP AT ct_dd03p ASSIGNING <ls_dd03p> WHERE NOT rollname IS INITIAL. clear_dd03p_fields_common( CHANGING cs_dd03p = <ls_dd03p> ). lv_masklen = <ls_dd03p>-masklen. IF lv_masklen = '' OR NOT lv_masklen CO '0123456789'. * make sure the field contains valid data, or the XML will dump CLEAR <ls_dd03p>-masklen. ENDIF. IF <ls_dd03p>-comptype = lc_comptype_dataelement. clear_dd03p_fields_dataelement( CHANGING cs_dd03p = <ls_dd03p> ). ENDIF. IF <ls_dd03p>-shlporigin = 'D'. * search help from domain CLEAR: <ls_dd03p>-shlpfield, <ls_dd03p>-shlpname. ENDIF. * XML output assumes correct field content IF <ls_dd03p>-routputlen = ' '. CLEAR <ls_dd03p>-routputlen. ENDIF. ENDLOOP. " Clear position to avoid issues with include structures that contain different number of fields LOOP AT ct_dd03p ASSIGNING <ls_dd03p>. CLEAR: <ls_dd03p>-position, <ls_dd03p>-tabname, <ls_dd03p>-ddlanguage. ENDLOOP. ENDMETHOD. METHOD clear_dd03p_fields_common. CLEAR: cs_dd03p-ddlanguage, cs_dd03p-dtelmaster, cs_dd03p-logflag, cs_dd03p-ddtext, cs_dd03p-reservedte, cs_dd03p-reptext, cs_dd03p-scrtext_s, cs_dd03p-scrtext_m, cs_dd03p-scrtext_l. ENDMETHOD. METHOD clear_dd03p_fields_dataelement. * type specified via data element CLEAR: cs_dd03p-domname, cs_dd03p-inttype, cs_dd03p-intlen, cs_dd03p-mask, cs_dd03p-memoryid, cs_dd03p-headlen, cs_dd03p-scrlen1, cs_dd03p-scrlen2, cs_dd03p-scrlen3, cs_dd03p-datatype, cs_dd03p-leng, cs_dd03p-outputlen, cs_dd03p-deffdname, cs_dd03p-convexit, cs_dd03p-entitytab, cs_dd03p-dommaster, cs_dd03p-domname3l, cs_dd03p-decimals, cs_dd03p-lowercase, cs_dd03p-signflag. ENDMETHOD. METHOD delete_extras. DELETE FROM tddat WHERE tabname = iv_tabname. ENDMETHOD. METHOD delete_idoc_segment. DATA lv_segment_type TYPE edilsegtyp. DATA lv_result LIKE sy-subrc. IF is_idoc_segment( ) = abap_false. rv_deleted = abap_false. RETURN. "previous XML version or no IDoc segment ENDIF. rv_deleted = abap_true. lv_segment_type = ms_item-obj_name. CALL FUNCTION 'SEGMENT_DELETE' EXPORTING segmenttyp = lv_segment_type IMPORTING result = lv_result EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0 OR lv_result <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD deserialize_idoc_segment. DATA lv_result LIKE sy-subrc. DATA lt_segment_definitions TYPE ty_segment_definitions. DATA lv_package TYPE devclass. DATA lv_uname TYPE sy-uname. FIELD-SYMBOLS <ls_segment_definition> TYPE ty_segment_definition. rv_deserialized = abap_false. TRY. io_xml->read( EXPORTING iv_name = c_s_dataname-segment_definition CHANGING cg_data = lt_segment_definitions ). CATCH zcx_abapgit_exception. RETURN. "previous XML version or no IDoc segment ENDTRY. IF lines( lt_segment_definitions ) = 0. RETURN. "no IDoc segment ENDIF. rv_deserialized = abap_true. lv_package = iv_package. LOOP AT lt_segment_definitions ASSIGNING <ls_segment_definition>. <ls_segment_definition>-segmentheader-presp = <ls_segment_definition>-segmentheader-pwork = cl_abap_syst=>get_user_name( ). CALL FUNCTION 'SEGMENT_READ' EXPORTING segmenttyp = <ls_segment_definition>-segmentheader-segtyp IMPORTING result = lv_result EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0 OR lv_result <> 0. CALL FUNCTION 'SEGMENT_CREATE' IMPORTING segmentdefinition = <ls_segment_definition>-segmentdefinition TABLES segmentstructure = <ls_segment_definition>-segmentstructures CHANGING segmentheader = <ls_segment_definition>-segmentheader devclass = lv_package EXCEPTIONS OTHERS = 1. ELSE. CALL FUNCTION 'SEGMENT_MODIFY' CHANGING segmentheader = <ls_segment_definition>-segmentheader devclass = lv_package EXCEPTIONS OTHERS = 1. IF sy-subrc = 0. CALL FUNCTION 'SEGMENTDEFINITION_MODIFY' TABLES segmentstructure = <ls_segment_definition>-segmentstructures CHANGING segmentdefinition = <ls_segment_definition>-segmentdefinition EXCEPTIONS OTHERS = 1. ENDIF. ENDIF. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDLOOP. lv_uname = cl_abap_syst=>get_user_name( ). CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING wi_test_modus = abap_false wi_tadir_pgmid = 'R3TR' wi_tadir_object = ms_item-obj_type wi_tadir_obj_name = ms_item-obj_name wi_tadir_author = lv_uname wi_tadir_devclass = iv_package wi_tadir_masterlang = mv_language iv_set_edtflag = abap_true iv_delflag = abap_false EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD deserialize_indexes. DATA: lv_tname TYPE trobj_name, lt_dd12v TYPE dd12vtab, ls_dd12v LIKE LINE OF lt_dd12v, lt_dd17v TYPE dd17vtab, ls_dd17v LIKE LINE OF lt_dd17v, lt_secondary LIKE lt_dd17v. io_xml->read( EXPORTING iv_name = 'DD12V' CHANGING cg_data = lt_dd12v ). io_xml->read( EXPORTING iv_name = 'DD17V' CHANGING cg_data = lt_dd17v ). LOOP AT lt_dd12v INTO ls_dd12v. * todo, call corr_insert? CLEAR lt_secondary. LOOP AT lt_dd17v INTO ls_dd17v WHERE sqltab = ls_dd12v-sqltab AND indexname = ls_dd12v-indexname. APPEND ls_dd17v TO lt_secondary. ENDLOOP. CALL FUNCTION 'DDIF_INDX_PUT' EXPORTING name = ls_dd12v-sqltab id = ls_dd12v-indexname dd12v_wa = ls_dd12v TABLES dd17v_tab = lt_secondary EXCEPTIONS indx_not_found = 1 name_inconsistent = 2 indx_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. CALL FUNCTION 'DD_DD_TO_E071' EXPORTING type = 'INDX' name = ls_dd12v-sqltab id = ls_dd12v-indexname IMPORTING obj_name = lv_tname. zcl_abapgit_objects_activation=>add( iv_type = 'INDX' iv_name = lv_tname ). ENDLOOP. ENDMETHOD. METHOD deserialize_texts. DATA: lv_name TYPE ddobjname, ls_dd02v_tmp TYPE dd02v, lt_i18n_langs TYPE TABLE OF langu, lt_dd02_texts TYPE ty_dd02_texts. FIELD-SYMBOLS: <lv_lang> LIKE LINE OF lt_i18n_langs, <ls_dd02_text> LIKE LINE OF lt_dd02_texts. lv_name = ms_item-obj_name. io_xml->read( EXPORTING iv_name = 'I18N_LANGS' CHANGING cg_data = lt_i18n_langs ). io_xml->read( EXPORTING iv_name = 'DD02_TEXTS' CHANGING cg_data = lt_dd02_texts ). SORT lt_i18n_langs. SORT lt_dd02_texts BY ddlanguage. " Optimization LOOP AT lt_i18n_langs ASSIGNING <lv_lang>. " Table description ls_dd02v_tmp = is_dd02v. READ TABLE lt_dd02_texts ASSIGNING <ls_dd02_text> WITH KEY ddlanguage = <lv_lang>. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |DD02_TEXTS cannot find lang { <lv_lang> } in XML| ). ENDIF. MOVE-CORRESPONDING <ls_dd02_text> TO ls_dd02v_tmp. CALL FUNCTION 'DDIF_TABL_PUT' EXPORTING name = lv_name dd02v_wa = ls_dd02v_tmp EXCEPTIONS tabl_not_found = 1 name_inconsistent = 2 tabl_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDLOOP. ENDMETHOD. METHOD is_db_table_category. " values from domain TABCLASS rv_is_db_table_type = boolc( iv_tabclass = 'TRANSP' OR iv_tabclass = 'CLUSTER' OR iv_tabclass = 'POOL' ). ENDMETHOD. METHOD is_idoc_segment. DATA lv_segment_type TYPE edilsegtyp. lv_segment_type = ms_item-obj_name. SELECT SINGLE segtyp FROM edisegment INTO lv_segment_type WHERE segtyp = lv_segment_type. rv_is_idoc_segment = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD read_extras. SELECT SINGLE * FROM tddat INTO rs_tabl_extras-tddat WHERE tabname = iv_tabname. ENDMETHOD. METHOD serialize_idoc_segment. DATA lv_segment_type TYPE edilsegtyp. DATA lv_result LIKE sy-subrc. DATA lv_devclass TYPE devclass. DATA lt_segmentdefinitions TYPE STANDARD TABLE OF edisegmdef. DATA ls_segment_definition TYPE ty_segment_definition. DATA lt_segment_definitions TYPE ty_segment_definitions. FIELD-SYMBOLS: <ls_segemtndefinition> TYPE edisegmdef. IF is_idoc_segment( ) = abap_false. RETURN. ENDIF. lv_segment_type = ms_item-obj_name. CALL FUNCTION 'SEGMENT_READ' EXPORTING segmenttyp = lv_segment_type IMPORTING result = lv_result TABLES segmentdefinition = lt_segmentdefinitions EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0 OR lv_result <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. LOOP AT lt_segmentdefinitions ASSIGNING <ls_segemtndefinition>. CLEAR ls_segment_definition. CALL FUNCTION 'SEGMENTDEFINITION_READ' EXPORTING segmenttyp = <ls_segemtndefinition>-segtyp IMPORTING result = lv_result devclass = lv_devclass segmentheader = ls_segment_definition-segmentheader segmentdefinition = ls_segment_definition-segmentdefinition TABLES segmentstructure = ls_segment_definition-segmentstructures CHANGING version = <ls_segemtndefinition>-version EXCEPTIONS no_authority = 1 segment_not_existing = 2 OTHERS = 3. IF sy-subrc <> 0 OR lv_result <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. zcl_abapgit_object_idoc=>clear_idoc_segement_fields( CHANGING cg_structure = ls_segment_definition-segmentdefinition ). zcl_abapgit_object_idoc=>clear_idoc_segement_fields( CHANGING cg_structure = ls_segment_definition-segmentheader ). APPEND ls_segment_definition TO lt_segment_definitions. ENDLOOP. io_xml->add( iv_name = c_s_dataname-segment_definition ig_data = lt_segment_definitions ). ENDMETHOD. METHOD serialize_texts. DATA: lv_name TYPE ddobjname, lv_index TYPE i, ls_dd02v TYPE dd02v, lt_dd02_texts TYPE ty_dd02_texts, lt_i18n_langs TYPE TABLE OF langu. FIELD-SYMBOLS: <lv_lang> LIKE LINE OF lt_i18n_langs, <ls_dd02_text> LIKE LINE OF lt_dd02_texts. IF io_xml->i18n_params( )-main_language_only = abap_true. RETURN. ENDIF. lv_name = ms_item-obj_name. " Collect additional languages, skip main lang - it was serialized already SELECT DISTINCT ddlanguage AS langu INTO TABLE lt_i18n_langs FROM dd02v WHERE tabname = lv_name AND ddlanguage <> mv_language. "#EC CI_SUBRC LOOP AT lt_i18n_langs ASSIGNING <lv_lang>. lv_index = sy-tabix. CALL FUNCTION 'DDIF_TABL_GET' EXPORTING name = lv_name langu = <lv_lang> IMPORTING dd02v_wa = ls_dd02v EXCEPTIONS illegal_input = 1 OTHERS = 2. IF sy-subrc <> 0 OR ls_dd02v-ddlanguage IS INITIAL. DELETE lt_i18n_langs INDEX lv_index. " Don't save this lang CONTINUE. ENDIF. APPEND INITIAL LINE TO lt_dd02_texts ASSIGNING <ls_dd02_text>. MOVE-CORRESPONDING ls_dd02v TO <ls_dd02_text>. ENDLOOP. SORT lt_i18n_langs ASCENDING. SORT lt_dd02_texts BY ddlanguage ASCENDING. IF lines( lt_i18n_langs ) > 0. io_xml->add( iv_name = 'I18N_LANGS' ig_data = lt_i18n_langs ). io_xml->add( iv_name = 'DD02_TEXTS' ig_data = lt_dd02_texts ). ENDIF. ENDMETHOD. METHOD update_extras. IF is_tabl_extras-tddat IS INITIAL. delete_extras( iv_tabname ). ELSE. MODIFY tddat FROM is_tabl_extras-tddat. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~changed_by. TYPES: BEGIN OF ty_data, as4user TYPE dd02l-as4user, as4date TYPE dd02l-as4date, as4time TYPE dd02l-as4time, END OF ty_data. DATA: lt_data TYPE STANDARD TABLE OF ty_data WITH DEFAULT KEY, ls_data LIKE LINE OF lt_data. SELECT as4user as4date as4time FROM dd02l INTO TABLE lt_data WHERE tabname = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. SELECT as4user as4date as4time APPENDING TABLE lt_data FROM dd09l WHERE tabname = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. SELECT as4user as4date as4time APPENDING TABLE lt_data FROM dd12l WHERE sqltab = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. SORT lt_data BY as4date DESCENDING as4time DESCENDING. READ TABLE lt_data INDEX 1 INTO ls_data. IF sy-subrc = 0. rv_user = ls_data-as4user. ELSE. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_objname TYPE rsedd0-ddobjname, lv_no_ask TYPE abap_bool, lv_subrc TYPE sy-subrc, BEGIN OF ls_dd02l, tabname TYPE dd02l-tabname, tabclass TYPE dd02l-tabclass, sqltab TYPE dd02l-sqltab, END OF ls_dd02l. IF zif_abapgit_object~exists( ) = abap_false. " Proxies e.g. delete on its own, nothing todo here then. RETURN. ENDIF. lv_objname = ms_item-obj_name. IF delete_idoc_segment( ) = abap_false. lv_no_ask = abap_true. SELECT SINGLE tabname tabclass sqltab FROM dd02l INTO CORRESPONDING FIELDS OF ls_dd02l WHERE tabname = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. IF sy-subrc = 0 AND is_db_table_category( ls_dd02l-tabclass ) = abap_true. CALL FUNCTION 'DD_EXISTS_DATA' EXPORTING reftab = ls_dd02l-sqltab tabclass = ls_dd02l-tabclass tabname = ls_dd02l-tabname IMPORTING subrc = lv_subrc EXCEPTIONS missing_reftab = 1 sql_error = 2 buffer_overflow = 3 unknown_error = 4 OTHERS = 5. IF sy-subrc = 0 AND lv_subrc = 0. lv_no_ask = abap_false. ENDIF. ENDIF. delete_ddic( iv_objtype = 'T' iv_no_ask = lv_no_ask ). delete_longtexts( c_longtext_id_tabl ). delete_extras( lv_objname ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lv_name TYPE ddobjname, ls_dd02v TYPE dd02v, ls_dd09l TYPE dd09l, lt_dd03p TYPE TABLE OF dd03p, lt_dd05m TYPE TABLE OF dd05m, lt_dd08v TYPE TABLE OF dd08v, lt_dd35v TYPE TABLE OF dd35v, lt_dd36m TYPE dd36mttyp, lv_refs TYPE abap_bool, ls_extras TYPE ty_tabl_extras. FIELD-SYMBOLS: <ls_dd03p> TYPE dd03p, <ls_dd05m> TYPE dd05m, <ls_dd08v> TYPE dd08v, <ls_dd35v> TYPE dd35v, <ls_dd36m> TYPE dd36m, <lg_roworcolst> TYPE any. lv_name = ms_item-obj_name. " type conversion IF deserialize_idoc_segment( io_xml = io_xml iv_package = iv_package ) = abap_false. io_xml->read( EXPORTING iv_name = 'DD02V' CHANGING cg_data = ls_dd02v ). io_xml->read( EXPORTING iv_name = 'DD09L' CHANGING cg_data = ls_dd09l ). io_xml->read( EXPORTING iv_name = 'DD03P_TABLE' CHANGING cg_data = lt_dd03p ). ASSIGN COMPONENT 'ROWORCOLST' OF STRUCTURE ls_dd09l TO <lg_roworcolst>. IF sy-subrc = 0 AND <lg_roworcolst> IS INITIAL. <lg_roworcolst> = 'C'. "Reverse fix from serialize ENDIF. " DDIC Step: Replace REF TO class/interface with generic reference to avoid cyclic dependency LOOP AT lt_dd03p ASSIGNING <ls_dd03p> WHERE datatype = 'REF'. IF iv_step = zif_abapgit_object=>gc_step_id-ddic. <ls_dd03p>-rollname = 'OBJECT'. ELSE. lv_refs = abap_true. ENDIF. ENDLOOP. " Number fields sequentially and fill table name LOOP AT lt_dd03p ASSIGNING <ls_dd03p>. <ls_dd03p>-position = sy-tabix. <ls_dd03p>-tabname = lv_name. <ls_dd03p>-ddlanguage = mv_language. ENDLOOP. io_xml->read( EXPORTING iv_name = 'DD05M_TABLE' CHANGING cg_data = lt_dd05m ). io_xml->read( EXPORTING iv_name = 'DD08V_TABLE' CHANGING cg_data = lt_dd08v ). io_xml->read( EXPORTING iv_name = 'DD35V_TALE' CHANGING cg_data = lt_dd35v ). io_xml->read( EXPORTING iv_name = 'DD36M' CHANGING cg_data = lt_dd36m ). LOOP AT lt_dd05m ASSIGNING <ls_dd05m>. <ls_dd05m>-tabname = lv_name. ENDLOOP. LOOP AT lt_dd08v ASSIGNING <ls_dd08v>. <ls_dd08v>-tabname = lv_name. <ls_dd08v>-ddlanguage = mv_language. ENDLOOP. LOOP AT lt_dd35v ASSIGNING <ls_dd35v>. <ls_dd35v>-tabname = lv_name. ENDLOOP. LOOP AT lt_dd36m ASSIGNING <ls_dd36m>. <ls_dd36m>-tabname = lv_name. ENDLOOP. " DDIC Step: Remove references to search helps and foreign keys IF iv_step = zif_abapgit_object=>gc_step_id-ddic. CLEAR: lt_dd08v, lt_dd35v, lt_dd36m. ENDIF. IF iv_step = zif_abapgit_object=>gc_step_id-late AND lv_refs = abap_false AND lines( lt_dd35v ) = 0 AND lines( lt_dd08v ) = 0. RETURN. " already active ENDIF. corr_insert( iv_package = iv_package ig_object_class = 'DICT' ). CALL FUNCTION 'DDIF_TABL_PUT' EXPORTING name = lv_name dd02v_wa = ls_dd02v dd09l_wa = ls_dd09l TABLES dd03p_tab = lt_dd03p dd05m_tab = lt_dd05m dd08v_tab = lt_dd08v dd35v_tab = lt_dd35v dd36m_tab = lt_dd36m EXCEPTIONS tabl_not_found = 1 name_inconsistent = 2 tabl_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. zcl_abapgit_objects_activation=>add_item( ms_item ). deserialize_indexes( io_xml ). deserialize_texts( io_xml = io_xml is_dd02v = ls_dd02v ). deserialize_longtexts( io_xml ). io_xml->read( EXPORTING iv_name = c_s_dataname-tabl_extras CHANGING cg_data = ls_extras ). update_extras( iv_tabname = lv_name is_tabl_extras = ls_extras ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_tabname TYPE dd02l-tabname. lv_tabname = ms_item-obj_name. " Check nametab because it's fast CALL FUNCTION 'DD_GET_NAMETAB_HEADER' EXPORTING tabname = lv_tabname EXCEPTIONS not_found = 1 OTHERS = 2. IF sy-subrc <> 0. " Check for new, inactive, or modified versions that might not be in nametab SELECT SINGLE tabname FROM dd02l INTO lv_tabname WHERE tabname = lv_tabname. ENDIF. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_object~get_comparator. DATA: li_local_version_output TYPE REF TO zif_abapgit_xml_output, li_local_version_input TYPE REF TO zif_abapgit_xml_input. CREATE OBJECT li_local_version_output TYPE zcl_abapgit_xml_output. zif_abapgit_object~serialize( li_local_version_output ). CREATE OBJECT li_local_version_input TYPE zcl_abapgit_xml_input EXPORTING iv_xml = li_local_version_output->render( ). CREATE OBJECT ri_comparator TYPE zcl_abapgit_object_tabl_compar EXPORTING ii_local = li_local_version_input. 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( ). ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_name TYPE ddobjname, ls_dd02v TYPE dd02v, ls_dd09l TYPE dd09l, lt_dd03p TYPE ty_dd03p_tt, lt_dd05m TYPE TABLE OF dd05m, lt_dd08v TYPE TABLE OF dd08v, lt_dd12v TYPE dd12vtab, lt_dd17v TYPE dd17vtab, lt_dd35v TYPE TABLE OF dd35v, lv_index LIKE sy-index, lt_dd36m TYPE dd36mttyp, ls_extras TYPE ty_tabl_extras. FIELD-SYMBOLS: <ls_dd12v> LIKE LINE OF lt_dd12v, <ls_dd05m> LIKE LINE OF lt_dd05m, <ls_dd08v> LIKE LINE OF lt_dd08v, <ls_dd35v> LIKE LINE OF lt_dd35v, <ls_dd36m> LIKE LINE OF lt_dd36m, <lg_roworcolst> TYPE any. lv_name = ms_item-obj_name. CALL FUNCTION 'DDIF_TABL_GET' EXPORTING name = lv_name langu = mv_language IMPORTING dd02v_wa = ls_dd02v dd09l_wa = ls_dd09l TABLES dd03p_tab = lt_dd03p dd05m_tab = lt_dd05m dd08v_tab = lt_dd08v dd12v_tab = lt_dd12v dd17v_tab = lt_dd17v dd35v_tab = lt_dd35v dd36m_tab = lt_dd36m EXCEPTIONS illegal_input = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from DDIF_TABL_GET' ). ENDIF. IF ls_dd02v IS INITIAL. zcx_abapgit_exception=>raise( |No active version found for { ms_item-obj_type } { ms_item-obj_name }| ). ENDIF. CLEAR: ls_dd02v-as4user, ls_dd02v-as4date, ls_dd02v-as4time. * reset numeric field, so XML does not crash IF ls_dd02v-prozpuff = ''. CLEAR ls_dd02v-prozpuff. ENDIF. IF ls_dd02v-datmin = ''. CLEAR ls_dd02v-datmin. ENDIF. IF ls_dd02v-datmax = ''. CLEAR ls_dd02v-datmax. ENDIF. IF ls_dd02v-datavg = ''. CLEAR ls_dd02v-datavg. ENDIF. CLEAR: ls_dd09l-as4user, ls_dd09l-as4date, ls_dd09l-as4time. ASSIGN COMPONENT 'ROWORCOLST' OF STRUCTURE ls_dd09l TO <lg_roworcolst>. IF sy-subrc = 0 AND <lg_roworcolst> = 'C'. CLEAR <lg_roworcolst>. "To avoid diff errors. This field doesn't exists in all releases ENDIF. LOOP AT lt_dd12v ASSIGNING <ls_dd12v>. CLEAR: <ls_dd12v>-as4user, <ls_dd12v>-as4date, <ls_dd12v>-as4time, <ls_dd12v>-dbindex. ENDLOOP. clear_dd03p_fields( CHANGING ct_dd03p = lt_dd03p ). * remove foreign keys inherited from .INCLUDEs DELETE lt_dd08v WHERE noinherit = 'N'. LOOP AT lt_dd05m ASSIGNING <ls_dd05m>. CLEAR <ls_dd05m>-tabname. CLEAR <ls_dd05m>-leng. lv_index = sy-tabix. READ TABLE lt_dd08v WITH KEY fieldname = <ls_dd05m>-fieldname TRANSPORTING NO FIELDS. IF sy-subrc <> 0. DELETE lt_dd05m INDEX lv_index. ENDIF. ENDLOOP. LOOP AT lt_dd08v ASSIGNING <ls_dd08v>. CLEAR: <ls_dd08v>-tabname, <ls_dd08v>-ddlanguage. ENDLOOP. LOOP AT lt_dd35v ASSIGNING <ls_dd35v>. CLEAR <ls_dd35v>-tabname. ENDLOOP. * remove inherited search helps DELETE lt_dd35v WHERE shlpinher = abap_true. LOOP AT lt_dd36m ASSIGNING <ls_dd36m>. CLEAR <ls_dd36m>-tabname. lv_index = sy-tabix. READ TABLE lt_dd35v WITH KEY fieldname = <ls_dd36m>-fieldname TRANSPORTING NO FIELDS. IF sy-subrc <> 0. DELETE lt_dd36m INDEX lv_index. ENDIF. ENDLOOP. io_xml->add( iv_name = 'DD02V' ig_data = ls_dd02v ). IF NOT ls_dd09l IS INITIAL. io_xml->add( iv_name = 'DD09L' ig_data = ls_dd09l ). ENDIF. io_xml->add( iv_name = 'DD03P_TABLE' ig_data = lt_dd03p ). io_xml->add( iv_name = 'DD05M_TABLE' ig_data = lt_dd05m ). io_xml->add( iv_name = 'DD08V_TABLE' ig_data = lt_dd08v ). io_xml->add( iv_name = 'DD12V' ig_data = lt_dd12v ). io_xml->add( iv_name = 'DD17V' ig_data = lt_dd17v ). io_xml->add( iv_name = 'DD35V_TALE' ig_data = lt_dd35v ). io_xml->add( iv_name = 'DD36M' ig_data = lt_dd36m ). serialize_texts( io_xml ). serialize_longtexts( ii_xml = io_xml iv_longtext_id = c_longtext_id_tabl ). serialize_idoc_segment( io_xml ). ls_extras = read_extras( lv_name ). io_xml->add( iv_name = c_s_dataname-tabl_extras ig_data = ls_extras ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 8658, 75, 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, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 325, 5154, 62, 46758, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10618, 25677, 220, 220, 220, 220, 41876, 1225, 786, 39870, 31298, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10618, 46758, 41876, 1225, 786, 39870, 4299, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10618, 7249, 942, 41876, 49053, 9795, 43679, 3963, 1225, 786, 70, 19554, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 325, 5154, 62, 46758, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 1259, 62, 325, 5154, 62, 4299, 50101, 41876, 49053, 9795, 43679, 3963, 1259, 62, 325, 5154, 62, 46758, 13315, 5550, 38865, 35374, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 8658, 75, 62, 2302, 8847, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 1860, 265, 41876, 256, 1860, 265, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 8658, 75, 62, 2302, 8847, 13, 628, 220, 220, 220, 366, 0, 651, 3224, 1366, 588, 3084, 19601, 1448, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 8658, 3672, 930, 1438, 286, 262, 3084, 198, 220, 220, 220, 337, 36252, 50, 1100, 62, 2302, 8847, 30023, 9863, 2751, 21628, 62, 8658, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49427, 26801, 3672, 198, 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, 3808, 62, 8658, 75, 62, 2302, 8847, 8, 41876, 1259, 62, 8658, 75, 62, 2302, 8847, 13, 628, 220, 220, 220, 366, 0, 10133, 3224, 1366, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 8658, 3672, 930, 1438, 286, 262, 3084, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 318, 62, 8658, 75, 62, 2302, 8847, 930, 3224, 3084, 1366, 198, 220, 220, 220, 337, 36252, 50, 4296, 62, 2302, 8847, 30023, 9863, 2751, 21628, 62, 8658, 3672, 220, 220, 220, 220, 41876, 49427, 26801, 3672, 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, 8658, 75, 62, 2302, 8847, 41876, 1259, 62, 8658, 75, 62, 2302, 8847, 13, 628, 220, 220, 220, 366, 0, 23520, 3224, 1366, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 8658, 3672, 930, 1438, 286, 262, 3084, 198, 220, 220, 220, 337, 36252, 50, 12233, 62, 2302, 8847, 30023, 9863, 2751, 21628, 62, 8658, 3672, 41876, 49427, 26801, 3672, 13, 628, 220, 220, 220, 366, 0, 23283, 1096, 4522, 420, 1001, 5154, 2099, 14, 46758, 611, 30151, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 33245, 62, 19875, 930, 23735, 6260, 198, 220, 220, 220, 366, 0, 2488, 32741, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 930, 1475, 11755, 198, 220, 220, 220, 337, 36252, 50, 11389, 1096, 62, 312, 420, 62, 325, 5154, 30023, 9863, 2751, 33245, 62, 19875, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 19875, 62, 22915, 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, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 366, 0, 2935, 48499, 1096, 4522, 420, 1001, 5154, 2099, 14, 46758, 611, 30151, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 33245, 62, 19875, 930, 23735, 6260, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 26495, 930, 12744, 5301, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 374, 85, 62, 8906, 48499, 1143, 930, 632, 338, 257, 10618, 290, 373, 288, 408, 48499, 1143, 198, 220, 220, 220, 366, 0, 2488, 32741, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 930, 1475, 11755, 198, 220, 220, 220, 337, 36252, 50, 748, 48499, 1096, 62, 312, 420, 62, 325, 5154, 30023, 9863, 2751, 33245, 62, 19875, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 26495, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1614, 4871, 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, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 8906, 48499, 1143, 8, 41876, 450, 499, 62, 30388, 198, 220, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_gui_page DEFINITION PUBLIC ABSTRACT INHERITING FROM zcl_abapgit_gui_component CREATE PUBLIC. PUBLIC SECTION. INTERFACES: zif_abapgit_gui_renderable, zif_abapgit_gui_event_handler, zif_abapgit_gui_error_handler. METHODS: constructor RAISING zcx_abapgit_exception. PROTECTED SECTION. TYPES: BEGIN OF ty_control, page_title TYPE string, page_menu TYPE REF TO zcl_abapgit_html_toolbar, END OF ty_control . DATA ms_control TYPE ty_control . METHODS render_content ABSTRACT RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . PRIVATE SECTION. DATA: mo_settings TYPE REF TO zcl_abapgit_settings, mx_error TYPE REF TO zcx_abapgit_exception, mo_exception_viewer TYPE REF TO zcl_abapgit_exception_viewer. METHODS render_deferred_parts IMPORTING ii_html TYPE REF TO zif_abapgit_html iv_part_category TYPE string RAISING zcx_abapgit_exception. METHODS html_head RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html. METHODS title RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html. METHODS footer RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html. METHODS render_link_hints IMPORTING ii_html TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception. METHODS render_command_palettes IMPORTING ii_html TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception. METHODS render_hotkey_overview RETURNING VALUE(ro_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception. METHODS render_error_message_box RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html RAISING zcx_abapgit_exception. METHODS scripts RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html RAISING zcx_abapgit_exception. ENDCLASS. CLASS ZCL_ABAPGIT_GUI_PAGE IMPLEMENTATION. METHOD constructor. super->constructor( ). mo_settings = zcl_abapgit_persist_settings=>get_instance( )->read( ). ENDMETHOD. METHOD footer. CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( '<div id="footer">' ). ri_html->add( '<table class="w100"><tr>' ). ri_html->add( '<td class="w40"></td>' ). " spacer ri_html->add( '<td class="center">' ). ri_html->add( '<div class="logo">' ). ri_html->add( ri_html->icon( 'git-alt' ) ). ri_html->add( ri_html->icon( 'abapgit' ) ). ri_html->add( '</div>' ). ri_html->add( |<div class="version">{ zif_abapgit_version=>gc_abap_version }</div>| ). ri_html->add( '</td>' ). ri_html->add( '<td id="debug-output" class="w40"></td>' ). ri_html->add( '</tr></table>' ). ri_html->add( '</div>' ). ENDMETHOD. METHOD html_head. CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( '<head>' ). "#EC NOTEXT ri_html->add( '<meta http-equiv="content-type" content="text/html; charset=utf-8">' ). "#EC NOTEXT ri_html->add( '<meta http-equiv="X-UA-Compatible" content="IE=11,10,9,8" />' ). "#EC NOTEXT ri_html->add( '<title>abapGit</title>' ). "#EC NOTEXT ri_html->add( '<link rel="stylesheet" type="text/css" href="css/common.css">' ). ri_html->add( '<link rel="stylesheet" type="text/css" href="css/ag-icons.css">' ). " Themes ri_html->add( '<link rel="stylesheet" type="text/css" href="css/theme-default.css">' ). " Theme basis CASE mo_settings->get_ui_theme( ). WHEN zcl_abapgit_settings=>c_ui_theme-dark. ri_html->add( '<link rel="stylesheet" type="text/css" href="css/theme-dark.css">' ). WHEN zcl_abapgit_settings=>c_ui_theme-belize. ri_html->add( '<link rel="stylesheet" type="text/css" href="css/theme-belize-blue.css">' ). ENDCASE. ri_html->add( '<script type="text/javascript" src="js/common.js"></script>' ). "#EC NOTEXT CASE mo_settings->get_icon_scaling( ). " Enforce icon scaling WHEN mo_settings->c_icon_scaling-large. ri_html->add( '<style>.icon { font-size: 200% }</style>' ). WHEN mo_settings->c_icon_scaling-small. ri_html->add( '<style>.icon.large { font-size: inherit }</style>' ). ENDCASE. ri_html->add( '</head>' ). "#EC NOTEXT ENDMETHOD. METHOD render_command_palettes. ii_html->add( 'var gCommandPalette = new CommandPalette(enumerateToolbarActions, {' ). ii_html->add( ' toggleKey: "F1",' ). ii_html->add( ' hotkeyDescription: "Command ..."' ). ii_html->add( '});' ). ENDMETHOD. METHOD render_deferred_parts. DATA lt_parts TYPE zif_abapgit_html=>tty_table_of. DATA li_part LIKE LINE OF lt_parts. lt_parts = gui_services( )->get_html_parts( )->get_parts( iv_part_category ). LOOP AT lt_parts INTO li_part. ii_html->add( li_part ). ENDLOOP. ENDMETHOD. METHOD render_error_message_box. " You should remember that the we have to instantiate ro_html even " it's overwritten further down. Because ADD checks whether it's " bound. CREATE OBJECT ro_html. " You should remember that we render the message panel only " if we have an error. IF mx_error IS NOT BOUND. RETURN. ENDIF. ro_html = zcl_abapgit_gui_chunk_lib=>render_error_message_box( mx_error ). " You should remember that the exception viewer dispatches the events of " error message panel CREATE OBJECT mo_exception_viewer EXPORTING ix_error = mx_error. " You should remember that we render the message panel just once " for each exception/error text. CLEAR: mx_error. ENDMETHOD. METHOD render_hotkey_overview. DATA lo_hotkeys_component TYPE REF TO zif_abapgit_gui_renderable. lo_hotkeys_component ?= gui_services( )->get_hotkeys_ctl( ). " Mmmm ... ro_html = lo_hotkeys_component->render( ). ENDMETHOD. METHOD render_link_hints. DATA: lv_link_hint_key TYPE char01. lv_link_hint_key = mo_settings->get_link_hint_key( ). IF mo_settings->get_link_hints_enabled( ) = abap_true AND lv_link_hint_key IS NOT INITIAL. ii_html->add( |activateLinkHints("{ lv_link_hint_key }");| ). ii_html->add( |setInitialFocusWithQuerySelector('a span', true);| ). ii_html->add( |enableArrowListNavigation();| ). ENDIF. ENDMETHOD. METHOD scripts. CREATE OBJECT ro_html. render_deferred_parts( ii_html = ro_html iv_part_category = c_html_parts-scripts ). render_link_hints( ro_html ). render_command_palettes( ro_html ). ENDMETHOD. METHOD title. CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( '<div id="header">' ). ri_html->add( '<div class="logo">' ). ri_html->add( ri_html->icon( 'git-alt' ) ). ri_html->add( ri_html->icon( 'abapgit' ) ). ri_html->add( '</div>' ). ri_html->add( |<div class="page-title"><span class="spacer">&#x25BA;</span>{ ms_control-page_title }</div>| ). IF ms_control-page_menu IS BOUND. ri_html->add( '<div class="float-right">' ). ri_html->add( ms_control-page_menu->render( iv_right = abap_true ) ). ri_html->add( '</div>' ). ENDIF. ri_html->add( '</div>' ). ENDMETHOD. METHOD zif_abapgit_gui_error_handler~handle_error. mx_error = ix_error. rv_handled = abap_true. ENDMETHOD. METHOD zif_abapgit_gui_event_handler~on_event. CASE iv_action. WHEN zif_abapgit_definitions=>c_action-goto_source. IF mo_exception_viewer IS BOUND. mo_exception_viewer->goto_source( ). ENDIF. ev_state = zcl_abapgit_gui=>c_event_state-no_more_act. WHEN zif_abapgit_definitions=>c_action-show_callstack. IF mo_exception_viewer IS BOUND. mo_exception_viewer->show_callstack( ). ENDIF. ev_state = zcl_abapgit_gui=>c_event_state-no_more_act. WHEN zif_abapgit_definitions=>c_action-goto_message. IF mo_exception_viewer IS BOUND. mo_exception_viewer->goto_message( ). ENDIF. ev_state = zcl_abapgit_gui=>c_event_state-no_more_act. ENDCASE. ENDMETHOD. METHOD zif_abapgit_gui_renderable~render. DATA: li_script TYPE REF TO zif_abapgit_html. gui_services( )->register_event_handler( me ). " Real page CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( '<!DOCTYPE html>' ). "#EC NOTEXT ri_html->add( '<html>' ). "#EC NOTEXT ri_html->add( html_head( ) ). ri_html->add( '<body>' ). "#EC NOTEXT ri_html->add( title( ) ). ri_html->add( render_content( ) ). " TODO -> render child ri_html->add( render_hotkey_overview( ) ). ri_html->add( render_error_message_box( ) ). render_deferred_parts( ii_html = ri_html iv_part_category = c_html_parts-hidden_forms ). ri_html->add( footer( ) ). ri_html->add( '</body>' ). "#EC NOTEXT li_script = scripts( ). IF li_script IS BOUND AND li_script->is_empty( ) = abap_false. ri_html->add( '<script type="text/javascript">' ). ri_html->add( li_script ). ri_html->add( 'confirmInitialized();' ). ri_html->add( '</script>' ). ENDIF. ri_html->add( '</html>' ). "#EC NOTEXT ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 5550, 20032, 17941, 44731, 9564, 18601, 10659, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 42895, 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, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 13287, 540, 11, 198, 220, 220, 220, 220, 220, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 15596, 62, 30281, 11, 198, 220, 220, 220, 220, 220, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 18224, 62, 30281, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 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, 13716, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2443, 62, 7839, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2443, 62, 26272, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 25981, 5657, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 220, 1259, 62, 13716, 764, 628, 220, 220, 220, 42865, 13845, 62, 13716, 41876, 1259, 62, 13716, 764, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 11299, 198, 220, 220, 220, 220, 220, 9564, 18601, 10659, 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, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 6941, 62, 33692, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 33692, 11, 198, 220, 220, 220, 220, 220, 285, 87, 62, 18224, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 6941, 62, 1069, 4516, 62, 1177, 263, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 1069, 4516, 62, 1177, 263, 13, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 4299, 17436, 62, 42632, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 6494, 220, 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, 220, 220, 21628, 62, 3911, 62, 22872, 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, 13, 628, 220, 220, 220, 337, 36252, 50, 27711, 62, 2256, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 380, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 13, 628, 220, 220, 220, 337, 36252, 50, 3670, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 380, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 13, 628, 220, 220, 220, 337, 36252, 50, 2366, 263, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 380, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 13, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 8726, 62, 71, 29503, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 6494, 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, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 21812, 62, 18596, 23014, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 6494, 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, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 8940, 2539, 62, 2502, 1177, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 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, 13, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 18224, 62, 20500, 62, 3524, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 565, 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, 628, 220, 220, 220, 337, 36252, 50, 14750, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 565, 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, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
FUNCTION zgtt_mia_ee_sh_hdr_le_rel. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" REFERENCE(I_APPSYS) TYPE /SAPTRX/APPLSYSTEM *" REFERENCE(I_EVENT_TYPES) TYPE /SAPTRX/EVTYPES *" REFERENCE(I_ALL_APPL_TABLES) TYPE TRXAS_TABCONTAINER *" REFERENCE(I_EVENTTYPE_TAB) TYPE TRXAS_EVENTTYPE_TABS_WA *" REFERENCE(I_EVENT) TYPE TRXAS_EVT_CTAB_WA *" EXPORTING *" VALUE(E_RESULT) LIKE SY-BINPT *" TABLES *" C_LOGTABLE STRUCTURE BAPIRET2 OPTIONAL *" EXCEPTIONS *" PARAMETER_ERROR *" RELEVANCE_DETERM_ERROR *" STOP_PROCESSING *"---------------------------------------------------------------------- DATA: lo_udm_message TYPE REF TO cx_udm_message, ls_bapiret TYPE bapiret2. TRY. e_result = zcl_gtt_mia_ae_performer=>check_relevance( EXPORTING is_definition = VALUE #( maintab = zif_gtt_mia_app_constants=>cs_tabledef-sh_header_new ) io_ae_factory = NEW zcl_gtt_mia_ae_factory_shh_le( ) iv_appsys = i_appsys is_event_type = i_event_types it_all_appl_tables = i_all_appl_tables is_events = i_event ). CATCH cx_udm_message INTO lo_udm_message. zcl_gtt_mia_tools=>get_errors_log( EXPORTING io_umd_message = lo_udm_message iv_appsys = i_appsys IMPORTING es_bapiret = ls_bapiret ). " add error message APPEND ls_bapiret TO c_logtable. " throw corresponding exception CASE lo_udm_message->textid. WHEN zif_gtt_mia_ef_constants=>cs_errors-stop_processing. RAISE stop_processing. WHEN zif_gtt_mia_ef_constants=>cs_errors-table_determination. RAISE relevance_determ_error. ENDCASE. ENDTRY. ENDFUNCTION.
[ 42296, 4177, 2849, 1976, 70, 926, 62, 20730, 62, 1453, 62, 1477, 62, 71, 7109, 62, 293, 62, 2411, 13, 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, 4526, 24302, 18310, 7, 40, 62, 2969, 3705, 16309, 8, 41876, 220, 1220, 50, 2969, 5446, 55, 14, 2969, 6489, 23060, 25361, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 20114, 3525, 62, 9936, 47, 1546, 8, 41876, 220, 1220, 50, 2969, 5446, 55, 14, 20114, 9936, 47, 1546, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 7036, 62, 2969, 6489, 62, 5603, 9148, 1546, 8, 41876, 220, 7579, 55, 1921, 62, 5603, 2749, 1340, 30339, 1137, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 20114, 3525, 25216, 62, 5603, 33, 8, 41876, 220, 7579, 55, 1921, 62, 20114, 3525, 25216, 62, 5603, 4462, 62, 15543, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 20114, 3525, 8, 41876, 220, 7579, 55, 1921, 62, 20114, 51, 62, 4177, 6242, 62, 15543, 198, 9, 1, 220, 7788, 15490, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 36, 62, 19535, 16724, 8, 34178, 220, 19704, 12, 33, 1268, 11571, 198, 9, 1, 220, 309, 6242, 28378, 198, 9, 1, 220, 220, 220, 220, 220, 327, 62, 25294, 38148, 19269, 18415, 11335, 220, 347, 17614, 26087, 17, 39852, 2849, 1847, 198, 9, 1, 220, 7788, 42006, 11053, 198, 9, 1, 220, 220, 220, 220, 220, 29463, 2390, 2767, 1137, 62, 24908, 198, 9, 1, 220, 220, 220, 220, 220, 49968, 53, 19240, 62, 35, 2767, 1137, 44, 62, 24908, 198, 9, 1, 220, 220, 220, 220, 220, 44934, 62, 4805, 4503, 7597, 2751, 198, 9, 1, 10097, 23031, 198, 220, 42865, 25, 2376, 62, 463, 76, 62, 20500, 41876, 4526, 37, 5390, 43213, 62, 463, 76, 62, 20500, 11, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 65, 499, 557, 83, 220, 220, 220, 220, 41876, 275, 499, 557, 83, 17, 13, 628, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 304, 62, 20274, 220, 796, 1976, 565, 62, 70, 926, 62, 20730, 62, 3609, 62, 525, 16354, 14804, 9122, 62, 260, 2768, 590, 7, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 46758, 220, 220, 220, 220, 220, 220, 796, 26173, 8924, 1303, 7, 1388, 8658, 796, 1976, 361, 62, 70, 926, 62, 20730, 62, 1324, 62, 9979, 1187, 14804, 6359, 62, 83, 4510, 891, 12, 1477, 62, 25677, 62, 3605, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 3609, 62, 69, 9548, 220, 220, 220, 220, 220, 220, 796, 12682, 1976, 565, 62, 70, 926, 62, 20730, 62, 3609, 62, 69, 9548, 62, 1477, 71, 62, 293, 7, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 1324, 17597, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1312, 62, 1324, 17597, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 15596, 62, 4906, 220, 220, 220, 220, 220, 220, 796, 1312, 62, 15596, 62, 19199, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 439, 62, 1324, 75, 62, 83, 2977, 220, 796, 1312, 62, 439, 62, 1324, 75, 62, 83, 2977, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 31534, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1312, 62, 15596, 198, 220, 220, 220, 220, 220, 6739, 628, 220, 220, 220, 327, 11417, 43213, 62, 463, 76, 62, 20500, 39319, 2376, 62, 463, 76, 62, 20500, 13, 198, 220, 220, 220, 220, 220, 1976, 565, 62, 70, 926, 62, 20730, 62, 31391, 14804, 1136, 62, 48277, 62, 6404, 7, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 388, 67, 62, 20500, 796, 2376, 62, 463, 76, 62, 20500, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 1324, 17597, 220, 220, 220, 220, 220, 796, 1312, 62, 1324, 17597, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1658, 62, 65, 499, 557, 83, 220, 220, 220, 220, 796, 43979, 62, 65, 499, 557, 83, 6739, 628, 220, 220, 220, 220, 220, 366, 751, 4049, 3275, 198, 220, 220, 220, 220, 220, 43504, 10619, 43979, 62, 65, 499, 557, 83, 5390, 269, 62, 6404, 11487, 13, 628, 220, 220, 220, 220, 220, 366, 3714, 11188, 6631, 198, 220, 220, 220, 220, 220, 42001, 2376, 62, 463, 76, 62, 20500, 3784, 5239, 312, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42099, 1976, 361, 62, 70, 926, 62, 20730, 62, 891, 62, 9979, 1187, 14804, 6359, 62, 48277, 12, 11338, 62, 36948, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17926, 24352, 2245, 62, 36948, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42099, 1976, 361, 62, 70, 926, 62, 20730, 62, 891, 62, 9979, 1187, 14804, 6359, 62, 48277, 12, 11487, 62, 40869, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17926, 24352, 23082, 62, 67, 2357, 76, 62, 18224, 13, 198, 220, 220, 220, 220, 220, 23578, 34, 11159, 13, 198, 220, 23578, 40405, 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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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 ]
CLASS zcl_abap_to_json_restore DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES if_oo_adt_classrun. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_abap_to_json_restore IMPLEMENTATION. METHOD if_oo_adt_classrun~main. SELECT SINGLE * FROM zobject_xml WHERE id = 1 INTO @DATA(object_xml). DATA context2 TYPE REF TO zcl_oo_tutorial_5. CALL TRANSFORMATION id SOURCE XML object_xml-content RESULT flight = context2. out->write( context2->get_flight_details( ) ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 62, 1462, 62, 17752, 62, 2118, 382, 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, 611, 62, 2238, 62, 324, 83, 62, 4871, 5143, 13, 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, 397, 499, 62, 1462, 62, 17752, 62, 2118, 382, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 611, 62, 2238, 62, 324, 83, 62, 4871, 5143, 93, 12417, 13, 628, 220, 220, 220, 33493, 311, 2751, 2538, 1635, 16034, 1976, 15252, 62, 19875, 198, 220, 220, 220, 220, 33411, 4686, 796, 352, 39319, 2488, 26947, 7, 15252, 62, 19875, 737, 198, 220, 220, 220, 42865, 4732, 17, 41876, 4526, 37, 5390, 1976, 565, 62, 2238, 62, 83, 44917, 62, 20, 13, 198, 220, 220, 220, 42815, 44069, 35036, 4686, 311, 31033, 23735, 2134, 62, 19875, 12, 11299, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15731, 16724, 5474, 796, 4732, 17, 13, 198, 220, 220, 220, 503, 3784, 13564, 7, 4732, 17, 3784, 1136, 62, 22560, 62, 36604, 7, 220, 1267, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_dtel DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. PRIVATE SECTION. TYPES: BEGIN OF ty_dd04_texts, ddlanguage TYPE dd04t-ddlanguage, ddtext TYPE dd04t-ddtext, reptext TYPE dd04t-reptext, scrtext_s TYPE dd04t-scrtext_s, scrtext_m TYPE dd04t-scrtext_m, scrtext_l TYPE dd04t-scrtext_l, END OF ty_dd04_texts, tt_dd04_texts TYPE STANDARD TABLE OF ty_dd04_texts. CONSTANTS: c_longtext_id_dtel TYPE dokil-id VALUE 'DE'. METHODS: serialize_texts IMPORTING io_xml TYPE REF TO zcl_abapgit_xml_output RAISING zcx_abapgit_exception, deserialize_texts IMPORTING io_xml TYPE REF TO zcl_abapgit_xml_input is_dd04v TYPE dd04v RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_object_dtel IMPLEMENTATION. METHOD deserialize_texts. DATA: lv_name TYPE ddobjname, ls_dd04v_tmp TYPE dd04v, lt_i18n_langs TYPE TABLE OF langu, lt_dd04_texts TYPE tt_dd04_texts. FIELD-SYMBOLS: <lv_lang> LIKE LINE OF lt_i18n_langs, <ls_dd04_text> TYPE ty_dd04_texts. lv_name = ms_item-obj_name. io_xml->read( EXPORTING iv_name = 'I18N_LANGS' CHANGING cg_data = lt_i18n_langs ). io_xml->read( EXPORTING iv_name = 'DD04_TEXTS' CHANGING cg_data = lt_dd04_texts ). SORT lt_i18n_langs. SORT lt_dd04_texts BY ddlanguage. " Optimization LOOP AT lt_i18n_langs ASSIGNING <lv_lang>. " Data element description ls_dd04v_tmp = is_dd04v. READ TABLE lt_dd04_texts ASSIGNING <ls_dd04_text> WITH KEY ddlanguage = <lv_lang>. IF sy-subrc > 0. zcx_abapgit_exception=>raise( |DD04_TEXTS cannot find lang { <lv_lang> } in XML| ). ENDIF. MOVE-CORRESPONDING <ls_dd04_text> TO ls_dd04v_tmp. CALL FUNCTION 'DDIF_DTEL_PUT' EXPORTING name = lv_name dd04v_wa = ls_dd04v_tmp EXCEPTIONS dtel_not_found = 1 name_inconsistent = 2 dtel_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from DDIF_DTEL_PUT @TEXTS' ). ENDIF. ENDLOOP. ENDMETHOD. METHOD serialize_texts. DATA: lv_name TYPE ddobjname, lv_index TYPE i, ls_dd04v TYPE dd04v, lt_dd04_texts TYPE tt_dd04_texts, lt_i18n_langs TYPE TABLE OF langu. FIELD-SYMBOLS: <lv_lang> LIKE LINE OF lt_i18n_langs, <ls_dd04_text> TYPE ty_dd04_texts. lv_name = ms_item-obj_name. " Collect additional languages, skip master lang - it was serialized already SELECT DISTINCT ddlanguage AS langu INTO TABLE lt_i18n_langs FROM dd04v WHERE rollname = lv_name AND ddlanguage <> mv_language. "#EC CI_SUBRC LOOP AT lt_i18n_langs ASSIGNING <lv_lang>. lv_index = sy-tabix. CALL FUNCTION 'DDIF_DTEL_GET' EXPORTING name = lv_name langu = <lv_lang> IMPORTING dd04v_wa = ls_dd04v EXCEPTIONS illegal_input = 1 OTHERS = 2. IF sy-subrc <> 0 OR ls_dd04v-ddlanguage IS INITIAL. DELETE lt_i18n_langs INDEX lv_index. " Don't save this lang CONTINUE. ENDIF. APPEND INITIAL LINE TO lt_dd04_texts ASSIGNING <ls_dd04_text>. MOVE-CORRESPONDING ls_dd04v TO <ls_dd04_text>. ENDLOOP. SORT lt_i18n_langs ASCENDING. SORT lt_dd04_texts BY ddlanguage ASCENDING. IF lines( lt_i18n_langs ) > 0. io_xml->add( iv_name = 'I18N_LANGS' ig_data = lt_i18n_langs ). io_xml->add( iv_name = 'DD04_TEXTS' ig_data = lt_dd04_texts ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~changed_by. SELECT SINGLE as4user FROM dd04l INTO rv_user WHERE rollname = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. IF sy-subrc <> 0. 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_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 = 'E' 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, DTEL' ). ENDIF. delete_longtexts( c_longtext_id_dtel ). ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: ls_dd04v TYPE dd04v, lv_name TYPE ddobjname, ls_tpara TYPE tpara. io_xml->read( EXPORTING iv_name = 'DD04V' CHANGING cg_data = ls_dd04v ). io_xml->read( EXPORTING iv_name = 'TPARA' CHANGING cg_data = ls_tpara ). corr_insert( iv_package ). lv_name = ms_item-obj_name. " type conversion CALL FUNCTION 'DDIF_DTEL_PUT' EXPORTING name = lv_name dd04v_wa = ls_dd04v EXCEPTIONS dtel_not_found = 1 name_inconsistent = 2 dtel_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from DDIF_DTEL_PUT' ). ENDIF. deserialize_texts( io_xml = io_xml is_dd04v = ls_dd04v ). deserialize_longtexts( io_xml ). zcl_abapgit_objects_activation=>add_item( ms_item ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_rollname TYPE dd04l-rollname. SELECT SINGLE rollname FROM dd04l INTO lv_rollname WHERE rollname = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). rs_metadata-ddic = abap_true. ENDMETHOD. METHOD zif_abapgit_object~has_changed_since. DATA: lv_date TYPE dats, lv_time TYPE tims. SELECT SINGLE as4date as4time FROM dd04l INTO (lv_date, lv_time) WHERE rollname = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. rv_changed = check_timestamp( iv_timestamp = iv_timestamp iv_date = lv_date iv_time = lv_time ). ENDMETHOD. METHOD zif_abapgit_object~jump. jump_se11( iv_radio = 'RSRD1-DDTYPE' iv_field = 'RSRD1-DDTYPE_VAL' ). ENDMETHOD. METHOD zif_abapgit_object~serialize. * fm DDIF_DTEL_GET bypasses buffer, so SELECTs are * done directly from here DATA: lv_name TYPE ddobjname, ls_dd04v TYPE dd04v, ls_tpara TYPE tpara. lv_name = ms_item-obj_name. SELECT SINGLE * FROM dd04l INTO CORRESPONDING FIELDS OF ls_dd04v WHERE rollname = lv_name AND as4local = 'A' AND as4vers = '0000'. IF sy-subrc <> 0 OR ls_dd04v IS INITIAL. zcx_abapgit_exception=>raise( 'Not found in DD04L' ). ENDIF. SELECT SINGLE * FROM dd04t INTO CORRESPONDING FIELDS OF ls_dd04v WHERE rollname = lv_name AND ddlanguage = mv_language AND as4local = 'A' AND as4vers = '0000'. IF NOT ls_dd04v-memoryid IS INITIAL. SELECT SINGLE tpara~paramid tparat~partext FROM tpara LEFT JOIN tparat ON tparat~paramid = tpara~paramid AND tparat~sprache = mv_language INTO ls_tpara WHERE tpara~paramid = ls_dd04v-memoryid. "#EC CI_BUFFJOIN ENDIF. CLEAR: ls_dd04v-as4user, ls_dd04v-as4date, ls_dd04v-as4time. IF ls_dd04v-refkind = 'D'. * clear values inherited from domain CLEAR: ls_dd04v-datatype, ls_dd04v-leng, ls_dd04v-decimals, ls_dd04v-outputlen, ls_dd04v-valexi, ls_dd04v-lowercase, ls_dd04v-signflag, ls_dd04v-convexit, ls_dd04v-entitytab. ENDIF. IF ls_dd04v-routputlen = ''. * numeric field, make sure it is initial or XML serilization will dump CLEAR ls_dd04v-routputlen. ENDIF. IF ls_dd04v-authclass = ''. CLEAR ls_dd04v-authclass. ENDIF. io_xml->add( iv_name = 'DD04V' ig_data = ls_dd04v ). io_xml->add( iv_name = 'TPARA' ig_data = ls_tpara ). serialize_texts( io_xml ). serialize_longtexts( io_xml = io_xml iv_longtext_id = c_longtext_id_dtel ). 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.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 28664, 417, 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, 628, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 1860, 3023, 62, 5239, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49427, 16129, 41876, 49427, 3023, 83, 12, 1860, 16129, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49427, 5239, 220, 220, 220, 220, 41876, 49427, 3023, 83, 12, 1860, 5239, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 28761, 2302, 220, 220, 220, 41876, 49427, 3023, 83, 12, 260, 457, 2302, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6040, 5239, 62, 82, 220, 41876, 49427, 3023, 83, 12, 1416, 81, 5239, 62, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6040, 5239, 62, 76, 220, 41876, 49427, 3023, 83, 12, 1416, 81, 5239, 62, 76, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6040, 5239, 62, 75, 220, 41876, 49427, 3023, 83, 12, 1416, 81, 5239, 62, 75, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 1860, 3023, 62, 5239, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 83, 62, 1860, 3023, 62, 5239, 82, 41876, 49053, 9795, 43679, 3963, 1259, 62, 1860, 3023, 62, 5239, 82, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 269, 62, 6511, 5239, 62, 312, 62, 28664, 417, 41876, 466, 34553, 12, 312, 26173, 8924, 705, 7206, 4458, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 11389, 1096, 62, 5239, 82, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 33245, 62, 19875, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 19875, 62, 22915, 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, 748, 48499, 1096, 62, 5239, 82, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 33245, 62, 19875, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 19875, 62, 15414, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 1860, 3023, 85, 41876, 49427, 3023, 85, 198, 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, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 28664, 417, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 748, 48499, 1096, 62, 5239, 82, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 3672, 220, 220, 220, 220, 220, 220, 41876, 49427, 26801, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 1860, 3023, 85, 62, 22065, 220, 41876, 49427, 3023, 85, 11, 198, 220, 220, 220, 220, 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, 220, 220, 220, 220, 300, 83, 62, 1860, 3023, 62, 5239, 82, 41876, 256, 83, 62, 1860, 3023, 62, 5239, 82, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 1860, 3023, 62, 5239, 29, 41876, 1259, 62, 1860, 3023, 62, 5239, 82, 13, 628, 198, 220, 220, 220, 300, 85, 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, 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, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 16458, 3023, 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, 62, 7890, 796, 300, 83, 62, 1860, 3023, 62, 5239, 82, 6739, 628, 220, 220, 220, 311, 9863, 300, 83, 62, 72, 1507, 77, 62, 17204, 82, 13, 198, 220, 220, 220, 311, 9863, 300, 83, 62, 1860, 3023, 62, 5239, 82, 11050, 49427, 16129, 13, 366, 30011, 1634, 628, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 72, 1507, 77, 62, 17204, 82, 24994, 3528, 15871, 1279, 6780, 62, 17204, 28401, 628, 220, 220, 220, 220, 220, 366, 6060, 5002, 6764, 198, 220, 220, 220, 220, 220, 43979, 62, 1860, 3023, 85, 62, 22065, 796, 318, 62, 1860, 3023, 85, 13, 198, 220, 220, 220, 220, 220, 20832, 43679, 300, 83, 62, 1860, 3023, 62, 5239, 82, 24994, 3528, 15871, 1279, 7278, 62, 1860, 3023, 62, 5239, 29, 13315, 35374, 49427, 16129, 796, 1279, 6780, 62, 17204, 28401, 198, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1875, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 930, 16458 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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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