content
stringlengths
4
1.04M
input_ids
sequencelengths
2
1.02k
attention_mask
sequencelengths
2
1.02k
*"* components of interface /IWBEP/IF_MGW_REQ_FUNC_IMPORT interface /IWBEP/IF_MGW_REQ_FUNC_IMPORT public . types C1 type CHAR1 . methods GET_FUNCTION_IMPORT_NAME returning value(RV_ACTION_NAME) type /IWBEP/MGW_TECH_NAME . methods GET_PARAMETERS returning value(RT_PARAMETERS) type /IWBEP/T_MGW_NAME_VALUE_PAIR . methods GET_FUNCTION_RETURN_TYPE returning value(RV_RETURN_TYPE) type /IWBEP/MGW_TECH_NAME . methods GET_CONVERTED_PARAMETERS exporting value(ES_PARAMETER_VALUES) type DATA . methods GET_CONDITIONAL_INFO exporting !ES_CONDITIONS type /IWBEP/IF_MGW_APPL_TYPES=>TY_S_CONDITIONS . endinterface.
[ 9, 1, 9, 6805, 286, 7071, 1220, 40, 45607, 8905, 14, 5064, 62, 20474, 54, 62, 2200, 48, 62, 42296, 34, 62, 3955, 15490, 198, 39994, 1220, 40, 45607, 8905, 14, 5064, 62, 20474, 54, 62, 2200, 48, 62, 42296, 34, 62, 3955, 15490, 198, 220, 1171, 764, 628, 198, 220, 3858, 327, 16, 2099, 28521, 16, 764, 628, 220, 5050, 17151, 62, 42296, 4177, 2849, 62, 3955, 15490, 62, 20608, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 49, 53, 62, 44710, 62, 20608, 8, 2099, 1220, 40, 45607, 8905, 14, 20474, 54, 62, 51, 25994, 62, 20608, 764, 198, 220, 5050, 17151, 62, 27082, 2390, 2767, 4877, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 14181, 62, 27082, 2390, 2767, 4877, 8, 2099, 1220, 40, 45607, 8905, 14, 51, 62, 20474, 54, 62, 20608, 62, 39488, 62, 4537, 4663, 764, 198, 220, 5050, 17151, 62, 42296, 4177, 2849, 62, 26087, 27064, 62, 25216, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 49, 53, 62, 26087, 27064, 62, 25216, 8, 2099, 1220, 40, 45607, 8905, 14, 20474, 54, 62, 51, 25994, 62, 20608, 764, 198, 220, 5050, 17151, 62, 10943, 15858, 1961, 62, 27082, 2390, 2767, 4877, 198, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 1988, 7, 1546, 62, 27082, 2390, 2767, 1137, 62, 23428, 35409, 8, 2099, 42865, 764, 198, 220, 5050, 17151, 62, 10943, 35, 17941, 1847, 62, 10778, 198, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 5145, 1546, 62, 10943, 49828, 11053, 2099, 1220, 40, 45607, 8905, 14, 5064, 62, 20474, 54, 62, 2969, 6489, 62, 9936, 47, 1546, 14804, 9936, 62, 50, 62, 10943, 49828, 11053, 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 ]
CLASS zcl_dbbr_multi_select_ctlr DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_uitb_screen_controller . METHODS constructor IMPORTING !io_custom_f4_map TYPE REF TO zcl_dbbr_custom_f4_map !ir_selection_table TYPE REF TO zcl_dbbr_multi_select_table . METHODS determine_line_count . METHODS call_f4_help IMPORTING !if_for_low TYPE abap_bool !if_multi TYPE abap_bool OPTIONAL . METHODS should_data_be_transferred RETURNING VALUE(rf_transfer) TYPE abap_bool . METHODS transfer_data CHANGING !cs_selfield TYPE zdbbr_selfield !ct_selfield_multi TYPE zdbbr_selfield_itab . PROTECTED SECTION. PRIVATE SECTION. ALIASES get_report_id FOR zif_uitb_screen_controller~get_report_id . ALIASES get_screen_id FOR zif_uitb_screen_controller~get_screen_id . DATA mo_custom_f4_map TYPE REF TO zcl_dbbr_custom_f4_map . DATA mo_table TYPE REF TO zcl_dbbr_multi_select_table . DATA mf_transfer TYPE abap_bool . DATA mr_ui_multi_select_field TYPE REF TO zdbbr_selfield . DATA mr_ui_option_templ_button TYPE REF TO zdbbr_button . DATA mr_ui_multi_select_fields TYPE REF TO zdbbr_selfield_itab . DATA ms_option_template TYPE zdbbr_sel_option . METHODS call_selfield_f4_help_multi IMPORTING !if_low TYPE abap_bool !iv_tablename TYPE tabname !iv_fieldname TYPE fieldname. METHODS take_entered_values . METHODS import_from_clipboard . METHODS call_selfield_f4_custom_multi IMPORTING !iv_current_line LIKE sy-tabix !if_low TYPE abap_bool . METHODS choose_option_template . ENDCLASS. CLASS zcl_dbbr_multi_select_ctlr IMPLEMENTATION. METHOD call_f4_help. *& Description: Calls value help for low/high values *&---------------------------------------------------------------------* DATA(lv_current_line) = mo_table->get_current_line( ). TRY. DATA(ls_selfield) = mr_ui_multi_select_fields->*[ lv_current_line ]. DATA(ls_selfield_save) = ls_selfield. IF if_multi = abap_true. call_selfield_f4_help_multi( if_low = if_for_low iv_tablename = mr_ui_multi_select_field->tabname iv_fieldname = mr_ui_multi_select_field->fieldname ). ELSE. zcl_dbbr_f4_helper=>call_selfield_f4( EXPORTING if_low = if_for_low iv_repid = zif_dbbr_c_report_id=>main iv_selfield_name = 'GS_MULTI_SELECT' iv_current_line = lv_current_line ir_custom_f4_map = mo_custom_f4_map CHANGING cs_selfield = ls_selfield ). IF ls_selfield-low <> ls_selfield_save-low OR ls_selfield-high <> ls_selfield_save-high. mr_ui_multi_select_field->* = ls_selfield. ENDIF. ENDIF. CATCH cx_sy_itab_line_not_found. RETURN. ENDTRY. ENDMETHOD. METHOD call_selfield_f4_custom_multi. *& Description: Calls custom multi searchhelp for field *&---------------------------------------------------------------------* FIELD-SYMBOLS: <lv_selvalue> TYPE zsat_value. " 1) read f4 help definition mo_custom_f4_map->read_custom_f4_definition( EXPORTING iv_tablename = mr_ui_multi_select_field->tabname iv_fieldname = mr_ui_multi_select_field->fieldname iv_rollname = mr_ui_multi_select_field->rollname is_built_in_type = VALUE #( datatype = mr_ui_multi_select_field->datatype leng = mr_ui_multi_select_field->intlen ) IMPORTING et_custom_f4_definitions = DATA(lt_f4_definition) ). IF lt_f4_definition IS INITIAL. MESSAGE 'Value Help in ZDBBR_F4H is invalid' TYPE 'S'. RETURN. ENDIF. zcl_dbbr_custom_f4_helper=>call_custom_f4( EXPORTING if_multiple_select = abap_true it_f4_definition = lt_f4_definition iv_current_line = iv_current_line if_low = if_low CHANGING cs_selfield = mr_ui_multi_select_field->* ct_selfield = mr_ui_multi_select_fields->* ). ENDMETHOD. METHOD call_selfield_f4_help_multi. *& Description: Calls F4 multi for select field *&---------------------------------------------------------------------* " get the current line DATA(lv_current_line) = mo_table->get_current_line( ). IF mr_ui_multi_select_field->has_cust_f4_help = abap_true. call_selfield_f4_custom_multi( iv_current_line = lv_current_line if_low = if_low ). ELSE. zcl_dbbr_f4_helper=>call_built_in_f4_multi( EXPORTING if_low = if_low if_do_not_convert_alpha = abap_true iv_tablename = iv_tablename iv_fieldname = iv_fieldname iv_current_line = lv_current_line CHANGING cs_selfield = mr_ui_multi_select_field->* ct_selfield = mr_ui_multi_select_fields->* ). ENDIF. ENDMETHOD. METHOD choose_option_template. DATA(ls_chosen_option) = zcl_dbbr_selopt_util=>choose_sel_option( if_allow_null = xsdbool( mo_table->get_template_line( )-is_parameter = abap_false ) ). IF ls_chosen_option IS INITIAL. RETURN. ENDIF. ms_option_template = ls_chosen_option. mo_table->update_option_template( is_option_template = ms_option_template ). ENDMETHOD. METHOD constructor. mo_custom_f4_map = io_custom_f4_map. mo_table = ir_selection_table. mo_table->update_option_template( ms_option_template ). DATA(lr_data_cache) = zcl_uitb_data_cache=>get_instance( zif_dbbr_c_report_id=>main ). mr_ui_multi_select_field = CAST zdbbr_selfield( lr_data_cache->get_data_ref( zif_dbbr_main_report_var_ids=>c_s_multi_select ) ). mr_ui_multi_select_fields = CAST zdbbr_selfield_itab( lr_data_cache->get_data_ref( zif_dbbr_main_report_var_ids=>c_t_multi_select ) ). mr_ui_option_templ_button = CAST #( lr_data_cache->get_data_ref( zif_dbbr_main_report_var_ids=>c_bt_option_template ) ). DATA(lr_v_fieldname) = CAST fieldname( lr_data_cache->get_data_ref( zif_dbbr_main_report_var_ids=>c_v_fieldname ) ). DATA(lr_v_field_descr) = CAST scrtext_m( lr_data_cache->get_data_ref( zif_dbbr_main_report_var_ids=>c_v_field_descr ) ). DATA(ls_template) = mo_table->get_template_line( ). lr_v_fieldname->* = ls_template-fieldname. lr_v_field_descr->* = ls_template-scrtext_l. ENDMETHOD. METHOD determine_line_count. *& Description: Determines the line count of the multi select tables *&---------------------------------------------------------------------* mo_table->determine_line_count( ). ENDMETHOD. METHOD import_from_clipboard. *& Description: Imports data from clipboard *&---------------------------------------------------------------------* DATA: lt_clipboard_data TYPE filetable. cl_gui_frontend_services=>clipboard_import( IMPORTING data = lt_clipboard_data ). " remove empty lines from gt_multi_select DELETE mr_ui_multi_select_fields->* WHERE low IS INITIAL AND high IS INITIAL AND option IS INITIAL. mr_ui_multi_select_field->* = mo_table->get_template_line( ). " set sign/option from template mr_ui_multi_select_field->sign = ms_option_template-sign. mr_ui_multi_select_field->option = ms_option_template-option. LOOP AT lt_clipboard_data ASSIGNING FIELD-SYMBOL(<ls_clipboard_line>). CLEAR: mr_ui_multi_select_field->low, mr_ui_multi_select_field->high. mr_ui_multi_select_field->low(mr_ui_multi_select_field->outputlen) = <ls_clipboard_line>. IF mr_ui_multi_select_field->lowercase = abap_false. TRANSLATE mr_ui_multi_select_field->low TO UPPER CASE. ENDIF. " convert input zcl_sat_data_converter=>convert_selopt_to_int_format( EXPORTING iv_tabname = mr_ui_multi_select_field->tabname iv_fieldname = mr_ui_multi_select_field->fieldname CHANGING cv_value1 = mr_ui_multi_select_field->low ). APPEND mr_ui_multi_select_field->* TO mr_ui_multi_select_fields->*. ENDLOOP. ENDMETHOD. METHOD should_data_be_transferred. rf_transfer = mf_transfer. ENDMETHOD. METHOD take_entered_values. *& Description: Takes all lines there at on of the following fields *& has to be filled: low, high, option *&---------------------------------------------------------------------* DELETE mr_ui_multi_select_fields->* WHERE low IS INITIAL AND high IS INITIAL AND option IS INITIAL. ENDMETHOD. METHOD transfer_data. CHECK mf_transfer = abap_true. ASSIGN mr_ui_multi_select_fields->* TO FIELD-SYMBOL(<lt_multi>). SORT <lt_multi> BY sign option low high. DELETE ADJACENT DUPLICATES FROM <lt_multi> COMPARING sign option low high. " delete old values DELETE ct_selfield_multi WHERE fieldname = cs_selfield-fieldname AND tabname = cs_selfield-tabname. DATA(lv_lines) = lines( <lt_multi> ). IF lv_lines > 1. cs_selfield-push = abap_true. DATA(ls_multi_line) = <lt_multi>[ 1 ]. cs_selfield-low = ls_multi_line-low. cs_selfield-high = ls_multi_line-high. cs_selfield-option = ls_multi_line-option. cs_selfield-sign = ls_multi_line-sign. DELETE <lt_multi> INDEX 1. APPEND LINES OF <lt_multi> TO ct_selfield_multi. ELSEIF lv_lines = 1. ls_multi_line = <lt_multi>[ 1 ]. CLEAR cs_selfield-push. cs_selfield-low = ls_multi_line-low. cs_selfield-high = ls_multi_line-high. cs_selfield-option = ls_multi_line-option. cs_selfield-sign = ls_multi_line-sign. ELSE. " user did delete all values! CLEAR: cs_selfield-push, cs_selfield-low, cs_selfield-high. ENDIF. ENDMETHOD. METHOD zif_uitb_screen_controller~call_screen. DATA(ls_screen) = COND zif_uitb_screen_controller=>ty_s_screen_size( WHEN is_screen_size IS NOT INITIAL THEN is_screen_size ELSE VALUE #( top = 2 left = 10 columns = 70 rows = 15 ) ). zcl_uitb_screen_util=>call_screen( iv_screen_id = get_screen_id( ) iv_report_id = get_report_id( ) it_object_map = VALUE #( ( variable_name = zif_dbbr_main_report_var_ids=>c_r_multi_select_controller global_ref = me ) ( variable_name = zif_dbbr_main_report_var_ids=>c_r_multi_select_table global_ref = mo_table ) ) iv_start_line = ls_screen-top iv_start_column = ls_screen-left iv_end_column = ls_screen-left + ls_screen-columns iv_end_line = ls_screen-top + ls_screen-rows ). ENDMETHOD. METHOD zif_uitb_screen_controller~cancel. zcl_uitb_screen_util=>leave_screen( ). ENDMETHOD. METHOD zif_uitb_screen_controller~free_screen_resources. ENDMETHOD. METHOD zif_uitb_screen_controller~get_report_id. result = zif_dbbr_c_report_id=>main. ENDMETHOD. METHOD zif_uitb_screen_controller~get_screen_id. result = zif_dbbr_screen_ids=>c_show_mult_select. ENDMETHOD. METHOD zif_uitb_screen_controller~handle_user_command. DATA(lv_function_code) = cv_function_code. CLEAR cv_function_code. CASE lv_function_code. WHEN 'TAKE'. mf_transfer = abap_true. take_entered_values( ). zcl_uitb_screen_util=>leave_screen( ). WHEN '&F12'. zcl_uitb_screen_util=>leave_screen( ). WHEN 'APPEND'. mo_table->append_new_lines( ). WHEN 'OPTION'. mo_table->handle_option_selection( ). WHEN 'DELETE'. mo_table->delete_line( ). WHEN 'DELETE_ALL'. " delete all lines mo_table->delete_lines( ). WHEN 'MULTI_F4'. " call multi f4 selection DATA lv_field(60). GET CURSOR FIELD lv_field. IF lv_field = 'GS_MULTI_SELECT-LOW'. DATA(lf_low) = abap_true. ELSEIF lv_field = 'GS_MULTI_SELECT-HIGH'. lf_low = abap_false. ELSE. lf_low = abap_true. ENDIF. call_f4_help( if_for_low = lf_low if_multi = abap_true ). WHEN 'OPTION_TEMPLATE'. choose_option_template( ). WHEN 'CLIPBOARD'. import_from_clipboard( ). ENDCASE. ENDMETHOD. METHOD zif_uitb_screen_controller~pbo. zif_uitb_screen_controller~set_status( ). LOOP AT SCREEN INTO DATA(ls_screen). IF ls_screen-name = 'OPTION_TEMPLATE'. mr_ui_option_templ_button->* = zcl_dbbr_selopt_util=>create_option_icon( iv_option = ms_option_template-option iv_sign = ms_option_template-sign ). ENDIF. ENDLOOP. ENDMETHOD. METHOD zif_uitb_screen_controller~set_status. SET PF-STATUS '0001' OF PROGRAM zif_dbbr_c_report_id=>main. SET TITLEBAR 'DATA_BROWSER_MULTI' OF PROGRAM zif_dbbr_c_report_id=>main. ENDMETHOD. METHOD zif_uitb_screen_controller~was_not_cancelled. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 9945, 1671, 62, 41684, 62, 19738, 62, 310, 14050, 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, 5013, 65, 62, 9612, 62, 36500, 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, 952, 62, 23144, 62, 69, 19, 62, 8899, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 9945, 1671, 62, 23144, 62, 69, 19, 62, 8899, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 343, 62, 49283, 62, 11487, 41876, 4526, 37, 5390, 1976, 565, 62, 9945, 1671, 62, 41684, 62, 19738, 62, 11487, 764, 198, 220, 220, 220, 337, 36252, 50, 5004, 62, 1370, 62, 9127, 764, 198, 220, 220, 220, 337, 36252, 50, 869, 62, 69, 19, 62, 16794, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 361, 62, 1640, 62, 9319, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 361, 62, 41684, 220, 220, 41876, 450, 499, 62, 30388, 39852, 2849, 1847, 764, 198, 220, 220, 220, 337, 36252, 50, 815, 62, 7890, 62, 1350, 62, 7645, 18186, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 41871, 62, 39437, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 4351, 62, 7890, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 6359, 62, 944, 1164, 220, 220, 220, 220, 220, 220, 41876, 1976, 9945, 1671, 62, 944, 1164, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 944, 1164, 62, 41684, 41876, 1976, 9945, 1671, 62, 944, 1164, 62, 270, 397, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 8355, 43429, 1546, 651, 62, 13116, 62, 312, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 5013, 65, 62, 9612, 62, 36500, 93, 1136, 62, 13116, 62, 312, 764, 198, 220, 220, 220, 8355, 43429, 1546, 651, 62, 9612, 62, 312, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 5013, 65, 62, 9612, 62, 36500, 93, 1136, 62, 9612, 62, 312, 764, 628, 220, 220, 220, 42865, 6941, 62, 23144, 62, 69, 19, 62, 8899, 41876, 4526, 37, 5390, 1976, 565, 62, 9945, 1671, 62, 23144, 62, 69, 19, 62, 8899, 764, 198, 220, 220, 220, 42865, 6941, 62, 11487, 41876, 4526, 37, 5390, 1976, 565, 62, 9945, 1671, 62, 41684, 62, 19738, 62, 11487, 764, 198, 220, 220, 220, 42865, 285, 69, 62, 39437, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 42865, 285, 81, 62, 9019, 62, 41684, 62, 19738, 62, 3245, 41876, 4526, 37, 5390, 1976, 9945, 1671, 62, 944, 1164, 764, 198, 220, 220, 220, 42865, 285, 81, 62, 9019, 62, 18076, 62, 11498, 489, 62, 16539, 41876, 4526, 37, 5390, 1976, 9945, 1671, 62, 16539, 764, 198, 220, 220, 220, 42865, 285, 81, 62, 9019, 62, 41684, 62, 19738, 62, 25747, 41876, 4526, 37, 5390, 1976, 9945, 1671, 62, 944, 1164, 62, 270, 397, 764, 198, 220, 220, 220, 42865, 13845, 62, 18076, 62, 28243, 41876, 1976, 9945, 1671, 62, 741, 62, 18076, 764, 628, 220, 220, 220, 337, 36252, 50, 869, 62, 944, 1164, 62, 69, 19, 62, 16794, 62, 41684, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 361, 62, 9319, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8658, 11925, 480, 41876, 7400, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3245, 3672, 41876, 2214, 3672, 13, 198, 220, 220, 220, 337, 36252, 50, 1011, 62, 298, 1068, 62, 27160, 764, 198, 220, 220, 220, 337, 36252, 50, 1330, 62, 6738, 62, 15036, 3526, 764, 198, 220, 220, 220, 337, 36252, 50, 869, 62, 944, 1164, 62, 69, 19, 62, 23144, 62, 41684, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 14421, 62, 1370, 34178, 827, 12, 8658, 844, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 361, 62, 9319, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 3853, 62, 18076, 62, 28243, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 9945, 1671, 62, 41684, 62, 19738, 62, 310, 14050, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 869, 62, 69, 19, 62, 16794, 13, 198, 9, 5, 12489, 25, 27592, 1988, 1037, 329, 1877, 14, 8929, 3815, 198, 9, 5, 10097, 30934, 9, 198, 220, 220, 220, 42865, 7, 6780, 62, 14421, 62, 1370, 8, 796, 6941, 62, 11487, 3784, 1136, 62, 14421, 62, 1370, 7, 6739, 198, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 7278, 62, 944, 1164, 8, 796, 285, 81, 62, 9019, 62, 41684, 62, 19738, 62, 25747, 3784, 9, 58, 300, 85, 62, 14421, 62, 1370, 20740, 198, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 7278, 62, 944, 1164, 62, 21928, 8, 796, 43979, 62, 944, 1164, 13, 628, 220, 220, 220, 220, 220, 220, 220, 16876, 611, 62, 41684, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 869, 62, 944, 1164, 62, 69, 19, 62, 16794, 62, 41684, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 611, 62, 9319, 220, 220, 220, 220, 220, 220, 796, 611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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 ]
* Copyright 2019 IBM Corp. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. "! <h1>Tone Analyzer</h1> "! The IBM Watson&trade; Tone Analyzer service uses linguistic analysis to detect "! emotional and language tones in written text. The service can analyze tone at "! both the document and sentence levels. You can use the service to understand "! how your written communications are perceived and then to improve the tone of "! your communications. Businesses can use the service to learn the tone of their "! customers' communications and to respond to each customer appropriately, or to "! understand and improve their customer conversations. "! "! **Note:** Request logging is disabled for the Tone Analyzer service. Regardless "! of whether you set the `X-Watson-Learning-Opt-Out` request header, the service "! does not log or retain data from requests and responses. <br/> class ZCL_IBMC_TONE_ANALYZER_V3 DEFINITION public inheriting from ZCL_IBMC_SERVICE_EXT create public . public section. types: "! The score for a tone from the input content. begin of T_TONE_SCORE, SCORE type DOUBLE, TONE_ID type STRING, TONE_NAME type STRING, end of T_TONE_SCORE. types: "! The category for a tone from the input content. begin of T_TONE_CATEGORY, TONES type STANDARD TABLE OF T_TONE_SCORE WITH NON-UNIQUE DEFAULT KEY, CATEGORY_ID type STRING, CATEGORY_NAME type STRING, end of T_TONE_CATEGORY. types: "! Input for the general-purpose endpoint. begin of T_TONE_INPUT, TEXT type STRING, end of T_TONE_INPUT. types: "! The score for an utterance from the input content. begin of T_TONE_CHAT_SCORE, SCORE type DOUBLE, TONE_ID type STRING, TONE_NAME type STRING, end of T_TONE_CHAT_SCORE. types: "! An utterance for the input of the general-purpose endpoint. begin of T_UTTERANCE, TEXT type STRING, USER type STRING, end of T_UTTERANCE. types: "! Input for the customer-engagement endpoint. begin of T_TONE_CHAT_INPUT, UTTERANCES type STANDARD TABLE OF T_UTTERANCE WITH NON-UNIQUE DEFAULT KEY, end of T_TONE_CHAT_INPUT. types: "! The results of the analysis for the individual sentences of the input content. begin of T_SENTENCE_ANALYSIS, SENTENCE_ID type INTEGER, TEXT type STRING, TONES type STANDARD TABLE OF T_TONE_SCORE WITH NON-UNIQUE DEFAULT KEY, TONE_CATEGORIES type STANDARD TABLE OF T_TONE_CATEGORY WITH NON-UNIQUE DEFAULT KEY, INPUT_FROM type INTEGER, INPUT_TO type INTEGER, end of T_SENTENCE_ANALYSIS. types: "! The results of the analysis for an utterance of the input content. begin of T_UTTERANCE_ANALYSIS, UTTERANCE_ID type INTEGER, UTTERANCE_TEXT type STRING, TONES type STANDARD TABLE OF T_TONE_CHAT_SCORE WITH NON-UNIQUE DEFAULT KEY, ERROR type STRING, end of T_UTTERANCE_ANALYSIS. types: "! The results of the analysis for the utterances of the input content. begin of T_UTTERANCE_ANALYSES, UTTERANCES_TONE type STANDARD TABLE OF T_UTTERANCE_ANALYSIS WITH NON-UNIQUE DEFAULT KEY, WARNING type STRING, end of T_UTTERANCE_ANALYSES. types: "! The error response from a failed request. begin of T_ERROR_MODEL, CODE type INTEGER, SUB_CODE type STRING, ERROR type STRING, HELP type STRING, end of T_ERROR_MODEL. types: "! The results of the analysis for the full input content. begin of T_DOCUMENT_ANALYSIS, TONES type STANDARD TABLE OF T_TONE_SCORE WITH NON-UNIQUE DEFAULT KEY, TONE_CATEGORIES type STANDARD TABLE OF T_TONE_CATEGORY WITH NON-UNIQUE DEFAULT KEY, WARNING type STRING, end of T_DOCUMENT_ANALYSIS. types: "! The tone analysis results for the input from the general-purpose endpoint. begin of T_TONE_ANALYSIS, DOCUMENT_TONE type T_DOCUMENT_ANALYSIS, SENTENCES_TONE type STANDARD TABLE OF T_SENTENCE_ANALYSIS WITH NON-UNIQUE DEFAULT KEY, end of T_TONE_ANALYSIS. constants: begin of C_REQUIRED_FIELDS, T_TONE_SCORE type string value '|SCORE|TONE_ID|TONE_NAME|', T_TONE_CATEGORY type string value '|TONES|CATEGORY_ID|CATEGORY_NAME|', T_TONE_INPUT type string value '|TEXT|', T_TONE_CHAT_SCORE type string value '|SCORE|TONE_ID|TONE_NAME|', T_UTTERANCE type string value '|TEXT|', T_TONE_CHAT_INPUT type string value '|UTTERANCES|', T_SENTENCE_ANALYSIS type string value '|SENTENCE_ID|TEXT|', T_UTTERANCE_ANALYSIS type string value '|UTTERANCE_ID|UTTERANCE_TEXT|TONES|', T_UTTERANCE_ANALYSES type string value '|UTTERANCES_TONE|', T_ERROR_MODEL type string value '|CODE|ERROR|', T_DOCUMENT_ANALYSIS type string value '|', T_TONE_ANALYSIS type string value '|DOCUMENT_TONE|', __DUMMY type string value SPACE, end of C_REQUIRED_FIELDS . constants: begin of C_ABAPNAME_DICTIONARY, TEXT type string value 'text', UTTERANCES type string value 'utterances', USER type string value 'user', DOCUMENT_TONE type string value 'document_tone', SENTENCES_TONE type string value 'sentences_tone', SENTENCESTONE type string value 'sentencesTone', TONES type string value 'tones', TONE_CATEGORIES type string value 'tone_categories', TONECATEGORIES type string value 'toneCategories', WARNING type string value 'warning', SENTENCE_ID type string value 'sentence_id', INPUT_FROM type string value 'input_from', INPUT_TO type string value 'input_to', SCORE type string value 'score', TONE_ID type string value 'tone_id', TONE_NAME type string value 'tone_name', CATEGORY_ID type string value 'category_id', CATEGORY_NAME type string value 'category_name', UTTERANCES_TONE type string value 'utterances_tone', UTTERANCESTONE type string value 'utterancesTone', UTTERANCE_ID type string value 'utterance_id', UTTERANCE_TEXT type string value 'utterance_text', ERROR type string value 'error', CODE type string value 'code', SUB_CODE type string value 'sub_code', HELP type string value 'help', end of C_ABAPNAME_DICTIONARY . methods GET_APPNAME redefinition . methods GET_REQUEST_PROP redefinition . methods GET_SDK_VERSION_DATE redefinition . "! Analyze general tone. "! "! @parameter I_tone_input | "! JSON, plain text, or HTML input that contains the content to be analyzed. For "! JSON input, provide an object of type `ToneInput`. "! @parameter I_Content_Type | "! The type of the input. A character encoding can be specified by including a "! `charset` parameter. For example, 'text/plain;charset=utf-8'. "! @parameter I_sentences | "! Indicates whether the service is to return an analysis of each individual "! sentence in addition to its analysis of the full document. If `true` (the "! default), the service returns results for each sentence. "! @parameter I_tones | "! **`2017-09-21`:** Deprecated. The service continues to accept the parameter for "! ** backward-compatibility, but the parameter no longer affects the response. "! ** "! ****`2016-05-19`:** A comma-separated list of tones for which the service is to "! ** return its analysis of the input; the indicated tones apply both to the full "! ** document and to individual sentences of the document. You can specify one or "! ** more of the valid values. Omit the parameter to request results for all three "! ** tones. "! @parameter I_Content_Language | "! The language of the input text for the request: English or French. Regional "! variants are treated as their parent language; for example, `en-US` is "! interpreted as `en`. The input content must match the specified language. Do "! not submit content that contains both languages. You can use different "! languages for **Content-Language** and **Accept-Language**. "! * **`2017-09-21`:** Accepts `en` or `fr`. "! * **`2016-05-19`:** Accepts only `en`. "! @parameter I_Accept_Language | "! The desired language of the response. For two-character arguments, regional "! variants are treated as their parent language; for example, `en-US` is "! interpreted as `en`. You can use different languages for **Content-Language** "! and **Accept-Language**. "! @parameter E_RESPONSE | "! Service return value of type T_TONE_ANALYSIS "! methods TONE importing !I_tone_input type T_TONE_INPUT !I_Content_Type type STRING default 'application/json' !I_sentences type BOOLEAN default c_boolean_true !I_tones type TT_STRING optional !I_Content_Language type STRING default 'en' !I_Accept_Language type STRING default 'en' !I_accept type string default 'application/json' exporting !E_RESPONSE type T_TONE_ANALYSIS raising ZCX_IBMC_SERVICE_EXCEPTION . "! Analyze customer-engagement tone. "! "! @parameter I_utterances | "! An object that contains the content to be analyzed. "! @parameter I_Content_Language | "! The language of the input text for the request: English or French. Regional "! variants are treated as their parent language; for example, `en-US` is "! interpreted as `en`. The input content must match the specified language. Do "! not submit content that contains both languages. You can use different "! languages for **Content-Language** and **Accept-Language**. "! * **`2017-09-21`:** Accepts `en` or `fr`. "! * **`2016-05-19`:** Accepts only `en`. "! @parameter I_Accept_Language | "! The desired language of the response. For two-character arguments, regional "! variants are treated as their parent language; for example, `en-US` is "! interpreted as `en`. You can use different languages for **Content-Language** "! and **Accept-Language**. "! @parameter E_RESPONSE | "! Service return value of type T_UTTERANCE_ANALYSES "! methods TONE_CHAT importing !I_utterances type T_TONE_CHAT_INPUT !I_Content_Language type STRING default 'en' !I_Accept_Language type STRING default 'en' !I_contenttype type string default 'application/json' !I_accept type string default 'application/json' exporting !E_RESPONSE type T_UTTERANCE_ANALYSES raising ZCX_IBMC_SERVICE_EXCEPTION . protected section. private section. methods SET_DEFAULT_QUERY_PARAMETERS changing !C_URL type TS_URL . ENDCLASS. class ZCL_IBMC_TONE_ANALYZER_V3 IMPLEMENTATION. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_IBMC_TONE_ANALYZER_V3->GET_APPNAME * +-------------------------------------------------------------------------------------------------+ * | [<-()] E_APPNAME TYPE STRING * +--------------------------------------------------------------------------------------</SIGNATURE> method GET_APPNAME. e_appname = 'Tone Analyzer'. endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Protected Method ZCL_IBMC_TONE_ANALYZER_V3->GET_REQUEST_PROP * +-------------------------------------------------------------------------------------------------+ * | [--->] I_AUTH_METHOD TYPE STRING (default =C_DEFAULT) * | [<-()] E_REQUEST_PROP TYPE TS_REQUEST_PROP * +--------------------------------------------------------------------------------------</SIGNATURE> method GET_REQUEST_PROP. data: lv_auth_method type string ##NEEDED. e_request_prop = super->get_request_prop( ). lv_auth_method = i_auth_method. if lv_auth_method eq c_default. lv_auth_method = 'IAM'. endif. if lv_auth_method is initial. e_request_prop-auth_basic = c_boolean_false. e_request_prop-auth_oauth = c_boolean_false. e_request_prop-auth_apikey = c_boolean_false. elseif lv_auth_method eq 'IAM'. e_request_prop-auth_name = 'IAM'. e_request_prop-auth_type = 'apiKey'. e_request_prop-auth_headername = 'Authorization'. e_request_prop-auth_header = c_boolean_true. elseif lv_auth_method eq 'basicAuth'. e_request_prop-auth_name = 'basicAuth'. e_request_prop-auth_type = 'http'. e_request_prop-auth_basic = c_boolean_true. else. endif. e_request_prop-url-protocol = 'http'. e_request_prop-url-host = 'localhost'. e_request_prop-url-path_base = '/tone-analyzer/api'. endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_IBMC_TONE_ANALYZER_V3->GET_SDK_VERSION_DATE * +-------------------------------------------------------------------------------------------------+ * | [<-()] E_SDK_VERSION_DATE TYPE STRING * +--------------------------------------------------------------------------------------</SIGNATURE> method get_sdk_version_date. e_sdk_version_date = '20191002122853'. endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_IBMC_TONE_ANALYZER_V3->TONE * +-------------------------------------------------------------------------------------------------+ * | [--->] I_tone_input TYPE T_TONE_INPUT * | [--->] I_Content_Type TYPE STRING (default ='application/json') * | [--->] I_sentences TYPE BOOLEAN (default =c_boolean_true) * | [--->] I_tones TYPE TT_STRING(optional) * | [--->] I_Content_Language TYPE STRING (default ='en') * | [--->] I_Accept_Language TYPE STRING (default ='en') * | [--->] I_accept TYPE string (default ='application/json') * | [<---] E_RESPONSE TYPE T_TONE_ANALYSIS * | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION * +--------------------------------------------------------------------------------------</SIGNATURE> method TONE. data: ls_request_prop type ts_request_prop, lv_separator(1) type c ##NEEDED, lv_sep(1) type c ##NEEDED, lo_response type to_rest_response, lv_json type string ##NEEDED. ls_request_prop-url-path = '/v3/tone'. " standard headers ls_request_prop-header_accept = I_accept. set_default_query_parameters( changing c_url = ls_request_prop-url ). " process query parameters data: lv_queryparam type string. if i_sentences is supplied. lv_queryparam = i_sentences. add_query_parameter( exporting i_parameter = `sentences` i_value = lv_queryparam i_is_boolean = c_boolean_true changing c_url = ls_request_prop-url ) ##NO_TEXT. endif. if i_tones is supplied. data: lv_item_tones type STRING. clear: lv_queryparam, lv_sep. loop at i_tones into lv_item_tones. lv_queryparam = lv_queryparam && lv_sep && lv_item_tones. lv_sep = ','. endloop. lv_queryparam = escape( val = lv_queryparam format = cl_abap_format=>e_uri_full ). add_query_parameter( exporting i_parameter = `tones` i_value = lv_queryparam changing c_url = ls_request_prop-url ) ##NO_TEXT. endif. " process header parameters data: lv_headerparam type string ##NEEDED. if i_Content_Type is supplied. ls_request_prop-header_content_type = I_Content_Type. endif. if i_Content_Language is supplied. lv_headerparam = I_Content_Language. add_header_parameter( exporting i_parameter = 'Content-Language' i_value = lv_headerparam changing c_headers = ls_request_prop-headers ) ##NO_TEXT. endif. if i_Accept_Language is supplied. lv_headerparam = I_Accept_Language. add_header_parameter( exporting i_parameter = 'Accept-Language' i_value = lv_headerparam changing c_headers = ls_request_prop-headers ) ##NO_TEXT. endif. " process body parameters data: lv_body type string, lv_bodyparam type string, lv_datatype type char. field-symbols: <lv_text> type any. lv_separator = ''. lv_datatype = get_datatype( i_tone_input ). if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or ls_request_prop-header_content_type cp '*json*'. if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep. lv_bodyparam = abap_to_json( i_value = i_tone_input i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ). else. lv_bodyparam = abap_to_json( i_name = 'tone_input' i_value = i_tone_input ). endif. lv_body = lv_body && lv_separator && lv_bodyparam. else. assign i_tone_input to <lv_text>. lv_bodyparam = <lv_text>. concatenate lv_body lv_bodyparam into lv_body. endif. if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'. lv_body = `{` && lv_body && `}`. endif. if ls_request_prop-header_content_type cp '*charset=utf-8*'. ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ). replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case. else. ls_request_prop-body = lv_body. endif. " execute HTTP POST request lo_response = HTTP_POST( i_request_prop = ls_request_prop ). " retrieve JSON data lv_json = get_response_string( lo_response ). parse_json( exporting i_json = lv_json i_dictionary = c_abapname_dictionary changing c_abap = e_response ). endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_IBMC_TONE_ANALYZER_V3->TONE_CHAT * +-------------------------------------------------------------------------------------------------+ * | [--->] I_utterances TYPE T_TONE_CHAT_INPUT * | [--->] I_Content_Language TYPE STRING (default ='en') * | [--->] I_Accept_Language TYPE STRING (default ='en') * | [--->] I_contenttype TYPE string (default ='application/json') * | [--->] I_accept TYPE string (default ='application/json') * | [<---] E_RESPONSE TYPE T_UTTERANCE_ANALYSES * | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION * +--------------------------------------------------------------------------------------</SIGNATURE> method TONE_CHAT. data: ls_request_prop type ts_request_prop, lv_separator(1) type c ##NEEDED, lv_sep(1) type c ##NEEDED, lo_response type to_rest_response, lv_json type string ##NEEDED. ls_request_prop-url-path = '/v3/tone_chat'. " standard headers ls_request_prop-header_content_type = I_contenttype. ls_request_prop-header_accept = I_accept. set_default_query_parameters( changing c_url = ls_request_prop-url ). " process header parameters data: lv_headerparam type string ##NEEDED. if i_Content_Language is supplied. lv_headerparam = I_Content_Language. add_header_parameter( exporting i_parameter = 'Content-Language' i_value = lv_headerparam changing c_headers = ls_request_prop-headers ) ##NO_TEXT. endif. if i_Accept_Language is supplied. lv_headerparam = I_Accept_Language. add_header_parameter( exporting i_parameter = 'Accept-Language' i_value = lv_headerparam changing c_headers = ls_request_prop-headers ) ##NO_TEXT. endif. " process body parameters data: lv_body type string, lv_bodyparam type string, lv_datatype type char. field-symbols: <lv_text> type any. lv_separator = ''. lv_datatype = get_datatype( i_utterances ). if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or ls_request_prop-header_content_type cp '*json*'. if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep. lv_bodyparam = abap_to_json( i_value = i_utterances i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ). else. lv_bodyparam = abap_to_json( i_name = 'utterances' i_value = i_utterances ). endif. lv_body = lv_body && lv_separator && lv_bodyparam. else. assign i_utterances to <lv_text>. lv_bodyparam = <lv_text>. concatenate lv_body lv_bodyparam into lv_body. endif. if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'. lv_body = `{` && lv_body && `}`. endif. if ls_request_prop-header_content_type cp '*charset=utf-8*'. ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ). replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case. else. ls_request_prop-body = lv_body. endif. " execute HTTP POST request lo_response = HTTP_POST( i_request_prop = ls_request_prop ). " retrieve JSON data lv_json = get_response_string( lo_response ). parse_json( exporting i_json = lv_json i_dictionary = c_abapname_dictionary changing c_abap = e_response ). endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Private Method ZCL_IBMC_TONE_ANALYZER_V3->SET_DEFAULT_QUERY_PARAMETERS * +-------------------------------------------------------------------------------------------------+ * | [<-->] C_URL TYPE TS_URL * +--------------------------------------------------------------------------------------</SIGNATURE> method set_default_query_parameters. if not p_version is initial. add_query_parameter( exporting i_parameter = `version` i_value = p_version changing c_url = c_url ). endif. endmethod. ENDCLASS.
[ 9, 15069, 13130, 19764, 11421, 13, 1439, 6923, 33876, 13, 198, 9, 198, 9, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 9, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 9, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 198, 9, 198, 9, 220, 220, 220, 220, 2638, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 198, 9, 198, 9, 17486, 2672, 416, 9723, 1099, 393, 4987, 284, 287, 3597, 11, 3788, 198, 9, 9387, 739, 262, 13789, 318, 9387, 319, 281, 366, 1921, 3180, 1, 29809, 1797, 11, 198, 9, 42881, 34764, 11015, 6375, 7102, 49828, 11053, 3963, 15529, 509, 12115, 11, 2035, 4911, 393, 17142, 13, 198, 9, 4091, 262, 13789, 329, 262, 2176, 3303, 15030, 21627, 290, 198, 9, 11247, 739, 262, 13789, 13, 198, 40484, 1279, 71, 16, 29, 51, 505, 16213, 9107, 3556, 71, 16, 29, 198, 40484, 383, 19764, 14959, 5, 25351, 26, 45362, 16213, 9107, 2139, 3544, 29929, 3781, 284, 4886, 198, 40484, 220, 7016, 290, 3303, 23755, 287, 3194, 2420, 13, 383, 2139, 460, 16602, 8216, 379, 198, 40484, 220, 1111, 262, 3188, 290, 6827, 2974, 13, 921, 460, 779, 262, 2139, 284, 1833, 198, 40484, 220, 703, 534, 3194, 8062, 389, 11067, 290, 788, 284, 2987, 262, 8216, 286, 198, 40484, 220, 534, 8062, 13, 7320, 274, 460, 779, 262, 2139, 284, 2193, 262, 8216, 286, 511, 198, 40484, 220, 4297, 6, 8062, 290, 284, 3031, 284, 1123, 6491, 20431, 11, 393, 284, 198, 40484, 220, 1833, 290, 2987, 511, 6491, 10275, 13, 198, 40484, 198, 40484, 12429, 6425, 25, 1174, 19390, 18931, 318, 10058, 329, 262, 45362, 16213, 9107, 2139, 13, 22250, 198, 40484, 220, 286, 1771, 345, 900, 262, 4600, 55, 12, 54, 13506, 12, 41730, 12, 27871, 12, 7975, 63, 2581, 13639, 11, 262, 2139, 198, 40484, 220, 857, 407, 2604, 393, 12377, 1366, 422, 7007, 290, 9109, 13, 1279, 1671, 15913, 198, 4871, 1168, 5097, 62, 9865, 9655, 62, 11357, 36, 62, 1565, 1847, 56, 57, 1137, 62, 53, 18, 5550, 20032, 17941, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1168, 5097, 62, 9865, 9655, 62, 35009, 27389, 62, 13918, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 198, 220, 3858, 25, 198, 220, 220, 220, 366, 0, 220, 220, 383, 4776, 329, 257, 8216, 422, 262, 5128, 2695, 13, 198, 220, 220, 220, 2221, 286, 309, 62, 11357, 36, 62, 6173, 6965, 11, 198, 220, 220, 220, 220, 220, 6374, 6965, 2099, 360, 2606, 19146, 11, 198, 220, 220, 220, 220, 220, 309, 11651, 62, 2389, 2099, 19269, 2751, 11, 198, 220, 220, 220, 220, 220, 309, 11651, 62, 20608, 2099, 19269, 2751, 11, 198, 220, 220, 220, 886, 286, 309, 62, 11357, 36, 62, 6173, 6965, 13, 198, 220, 3858, 25, 198, 220, 220, 220, 366, 0, 220, 220, 383, 6536, 329, 257, 8216, 422, 262, 5128, 2695, 13, 198, 220, 220, 220, 2221, 286, 309, 62, 11357, 36, 62, 34, 6158, 38, 15513, 11, 198, 220, 220, 220, 220, 220, 309, 39677, 2099, 49053, 9795, 43679, 3963, 309, 62, 11357, 36, 62, 6173, 6965, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 327, 6158, 38, 15513, 62, 2389, 2099, 19269, 2751, 11, 198, 220, 220, 220, 220, 220, 327, 6158, 38, 15513, 62, 20608, 2099, 19269, 2751, 11, 198, 220, 220, 220, 886, 286, 309, 62, 11357, 36, 62, 34, 6158, 38, 15513, 13, 198, 220, 3858, 25, 198, 220, 220, 220, 366, 0, 220, 220, 23412, 329, 262, 2276, 12, 29983, 36123, 13, 198, 220, 220, 220, 2221, 286, 309, 62, 11357, 36, 62, 1268, 30076, 11, 198, 220, 220, 220, 220, 220, 40383, 2099, 19269, 2751, 11, 198, 220, 220, 220, 886, 286, 309, 62, 11357, 36, 62, 1268, 30076, 13, 198, 220, 3858, 25, 198, 220, 220, 220, 366, 0, 220, 220, 383, 4776, 329, 281, 10517, 590, 422, 262, 5128, 2695, 13, 198, 220, 220, 220, 2221, 286, 309, 62, 11357, 36, 62, 31542, 62, 6173, 6965, 11, 198, 220, 220, 220, 220, 220, 6374, 6965, 2099, 360, 2606, 19146, 11, 198, 220, 220, 220, 220, 220, 309, 11651, 62, 2389, 2099, 19269, 2751, 11, 198, 220, 220, 220, 220, 220, 309, 11651, 62, 20608, 2099, 19269, 2751, 11, 198, 220, 220, 220, 886, 286, 309, 62, 11357, 36, 62, 31542, 62, 6173, 6965, 13, 198, 220, 3858, 25, 198, 220, 220, 220, 366, 0, 220, 220, 1052, 10517, 590, 329, 262, 5128, 286, 262, 2276, 12, 29983, 36123, 13, 198, 220, 220, 220, 2221, 286, 309, 62, 3843, 5781, 19240, 11, 198, 220, 220, 220, 220, 220, 40383, 2099, 19269, 2751, 11, 198, 220, 220, 220, 220, 220, 1294, 1137, 2099, 19269, 2751, 11, 198, 220, 220, 220, 886, 286, 309, 62, 3843, 5781, 19240, 13, 198, 220, 3858, 25, 198, 220, 220, 220, 366, 0, 220, 220, 23412, 329, 262, 6491, 12, 1516, 5082, 36123, 13, 198, 220, 220, 220, 2221, 286, 309, 62, 11357, 36, 62, 31542, 62, 1268, 30076, 11, 198, 220, 220, 220, 220, 220, 19255, 5781, 20940, 1546, 2099, 49053, 9795, 43679, 3963, 309, 62, 3843, 5781, 19240, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374, 11, 198, 220, 220, 220, 886, 286, 309, 62, 11357, 36, 62, 31542, 62, 1268, 30076, 13, 198, 220, 3858, 25, 198, 220, 220, 220, 366, 0, 220, 220, 383, 2482, 286, 262, 3781, 329, 262, 1981, 13439, 286, 262, 5128, 2695, 13, 198, 220, 220, 220, 2221, 286, 309, 62, 50, 3525, 18310, 62, 1565, 1847, 16309, 1797, 11, 198, 220, 220, 220, 220, 220, 311, 3525, 18310, 62, 2389, 2099, 17828, 7156, 1137, 11, 198, 220, 220, 220, 220, 220, 40383, 2099, 19269, 2751, 11, 198, 220, 220, 220, 220, 220, 309, 39677, 2099, 49053, 9795, 43679, 3963, 309, 62, 11357, 36, 62, 6173, 6965, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 309, 11651, 62, 34, 6158, 38, 1581, 11015, 2099, 49053, 9795, 43679 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS ltcl_test DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL. PRIVATE SECTION. METHODS initial FOR TESTING RAISING cx_static_check. METHODS initial_ref FOR TESTING RAISING cx_static_check. METHODS initial_numbers FOR TESTING RAISING cx_static_check. METHODS initial_date FOR TESTING RAISING cx_static_check. METHODS initial_hex FOR TESTING RAISING cx_static_check. METHODS equals FOR TESTING RAISING cx_static_check. METHODS equals_table FOR TESTING RAISING cx_static_check. METHODS equals_tol FOR TESTING RAISING cx_static_check. METHODS differs FOR TESTING RAISING cx_static_check. METHODS cp1 FOR TESTING RAISING cx_static_check. METHODS cp2 FOR TESTING RAISING cx_static_check. METHODS char_eq_string FOR TESTING RAISING cx_static_check. ENDCLASS. CLASS ltcl_test IMPLEMENTATION. METHOD equals_tol. CONSTANTS pi TYPE f VALUE '3.14159265359'. DATA degrees TYPE f. DATA radians TYPE f. degrees = 180. radians = ( degrees * pi ) / 180. cl_abap_unit_assert=>assert_equals( exp = pi act = radians tol = `0.000000000000001` ). ENDMETHOD. METHOD cp1. cl_abap_unit_assert=>assert_char_cp( act = 'foobar' exp = '*oo*' ). ENDMETHOD. METHOD cp2. cl_abap_unit_assert=>assert_char_cp( act = |hello\nfoobar\nmoo| exp = '*oo*' ). ENDMETHOD. METHOD initial_numbers. DATA foo TYPE i. DATA bar TYPE f. cl_abap_unit_assert=>assert_equals( act = foo exp = bar ). ENDMETHOD. METHOD initial_hex. DATA var1 TYPE x LENGTH 2. DATA var2 TYPE c LENGTH 4. var1 = '0000'. var2 = '0000'. cl_abap_unit_assert=>assert_equals( act = var1 exp = var2 ). ENDMETHOD. METHOD initial_date. DATA var1 TYPE d. var1 = ''. cl_abap_unit_assert=>assert_equals( act = var1 exp = '' ). ENDMETHOD. METHOD initial. DATA foo TYPE string. cl_abap_unit_assert=>assert_initial( foo ). foo = 'abc'. cl_abap_unit_assert=>assert_not_initial( foo ). ENDMETHOD. METHOD initial_ref. DATA zip TYPE REF TO cl_abap_zip. cl_abap_unit_assert=>assert_initial( zip ). CREATE OBJECT zip. cl_abap_unit_assert=>assert_not_initial( zip ). ENDMETHOD. METHOD equals. DATA bar TYPE i. cl_abap_unit_assert=>assert_equals( act = bar exp = bar ). bar = 2. cl_abap_unit_assert=>assert_equals( act = bar exp = bar ). cl_abap_unit_assert=>assert_equals( act = 2 exp = 2 ). cl_abap_unit_assert=>assert_equals( act = 'hello' exp = 'hello' ). ENDMETHOD. METHOD equals_table. DATA lt_tab1 TYPE string_table. DATA lt_tab2 TYPE string_table. APPEND 'foo' TO lt_tab1. APPEND 'foo' TO lt_tab2. cl_abap_unit_assert=>assert_equals( act = lt_tab1 exp = lt_tab2 ). ENDMETHOD. METHOD differs. cl_abap_unit_assert=>assert_differs( act = 1 exp = 2 ). ENDMETHOD. METHOD char_eq_string. DATA lv_char TYPE c LENGTH 10. DATA lv_string TYPE string. lv_char = 'hello'. lv_string = 'hello'. cl_abap_unit_assert=>assert_equals( act = lv_char exp = lv_string ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 83, 565, 62, 9288, 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, 4238, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 4238, 62, 5420, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 4238, 62, 77, 17024, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 4238, 62, 4475, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 4238, 62, 33095, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 21767, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 21767, 62, 11487, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 21767, 62, 83, 349, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 24242, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 31396, 16, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 31396, 17, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 1149, 62, 27363, 62, 8841, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 9288, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 21767, 62, 83, 349, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 31028, 41876, 277, 26173, 8924, 705, 18, 13, 1415, 19707, 22980, 30743, 4458, 198, 220, 220, 220, 42865, 7370, 41876, 277, 13, 198, 220, 220, 220, 42865, 2511, 1547, 41876, 277, 13, 198, 220, 220, 220, 7370, 796, 11546, 13, 198, 220, 220, 220, 2511, 1547, 796, 357, 7370, 1635, 31028, 1267, 1220, 11546, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 1033, 796, 31028, 198, 220, 220, 220, 220, 220, 719, 796, 2511, 1547, 198, 220, 220, 220, 220, 220, 284, 75, 796, 4600, 15, 13, 8269, 2388, 8298, 63, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 31396, 16, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 10641, 62, 13155, 7, 198, 220, 220, 220, 220, 220, 719, 796, 705, 6513, 30973, 6, 198, 220, 220, 220, 220, 220, 1033, 796, 705, 9, 2238, 9, 6, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 31396, 17, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 10641, 62, 13155, 7, 198, 220, 220, 220, 220, 220, 719, 796, 930, 31373, 59, 77, 6513, 30973, 59, 21533, 2238, 91, 198, 220, 220, 220, 220, 220, 1033, 796, 705, 9, 2238, 9, 6, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 4238, 62, 77, 17024, 13, 198, 220, 220, 220, 42865, 22944, 41876, 1312, 13, 198, 220, 220, 220, 42865, 2318, 41876, 277, 13, 198, 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, 22944, 198, 220, 220, 220, 220, 220, 1033, 796, 2318, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 4238, 62, 33095, 13, 198, 220, 220, 220, 42865, 1401, 16, 41876, 2124, 406, 49494, 362, 13, 198, 220, 220, 220, 42865, 1401, 17, 41876, 269, 406, 49494, 604, 13, 198, 220, 220, 220, 1401, 16, 796, 705, 2388, 4458, 198, 220, 220, 220, 1401, 17, 796, 705, 2388, 4458, 198, 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, 1401, 16, 198, 220, 220, 220, 220, 220, 1033, 796, 1401, 17, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 4238, 62, 4475, 13, 198, 220, 220, 220, 42865, 1401, 16, 41876, 288, 13, 198, 220, 220, 220, 1401, 16, 796, 705, 4458, 198, 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, 1401, 16, 198, 220, 220, 220, 220, 220, 1033, 796, 10148, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 4238, 13, 628, 220, 220, 220, 42865, 22944, 41876, 4731, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 36733, 7, 22944, 6739, 198, 220, 220, 220, 22944, 796, 705, 39305, 4458, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 1662, 62, 36733, 7, 22944, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 4238, 62, 5420, 13, 628, 220, 220, 220, 42865, 19974, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 13344, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 36733, 7, 19974, 6739, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 19974, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 1662, 62, 36733, 7, 19974, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 21767, 13, 198, 220, 220, 220, 42865, 2318, 41876, 1312, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 719, 796, 2318, 1033, 796, 2318, 6739, 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 ]
CLASS zcl_abapgit_file_status DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS status IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo !ii_log TYPE REF TO zif_abapgit_log OPTIONAL RETURNING VALUE(rt_results) TYPE zif_abapgit_definitions=>ty_results_tt RAISING zcx_abapgit_exception . PROTECTED SECTION. PRIVATE SECTION. CLASS-METHODS calculate_status IMPORTING !iv_devclass TYPE devclass !io_dot TYPE REF TO zcl_abapgit_dot_abapgit !it_local TYPE zif_abapgit_definitions=>ty_files_item_tt !it_remote TYPE zif_abapgit_definitions=>ty_files_tt !it_cur_state TYPE zif_abapgit_definitions=>ty_file_signatures_tt RETURNING VALUE(rt_results) TYPE zif_abapgit_definitions=>ty_results_tt RAISING zcx_abapgit_exception . CLASS-METHODS prepare_remote IMPORTING !io_dot TYPE REF TO zcl_abapgit_dot_abapgit !it_remote TYPE zif_abapgit_definitions=>ty_files_tt RETURNING VALUE(rt_remote) TYPE zif_abapgit_definitions=>ty_files_tt RAISING zcx_abapgit_exception . CLASS-METHODS process_local IMPORTING !io_dot TYPE REF TO zcl_abapgit_dot_abapgit !it_local TYPE zif_abapgit_definitions=>ty_files_item_tt !it_state_idx TYPE zif_abapgit_definitions=>ty_file_signatures_ts CHANGING !ct_remote TYPE zif_abapgit_definitions=>ty_files_tt !ct_items TYPE zif_abapgit_definitions=>ty_items_tt !ct_results TYPE zif_abapgit_definitions=>ty_results_tt RAISING zcx_abapgit_exception . CLASS-METHODS process_items IMPORTING !iv_devclass TYPE devclass !io_dot TYPE REF TO zcl_abapgit_dot_abapgit !it_remote TYPE zif_abapgit_definitions=>ty_files_tt CHANGING !ct_items TYPE zif_abapgit_definitions=>ty_items_tt RAISING zcx_abapgit_exception . CLASS-METHODS process_remote IMPORTING !iv_devclass TYPE devclass !io_dot TYPE REF TO zcl_abapgit_dot_abapgit !it_local TYPE zif_abapgit_definitions=>ty_files_item_tt !it_remote TYPE zif_abapgit_definitions=>ty_files_tt !it_state_idx TYPE zif_abapgit_definitions=>ty_file_signatures_ts !it_items_idx TYPE zif_abapgit_definitions=>ty_items_ts CHANGING !ct_results TYPE zif_abapgit_definitions=>ty_results_tt RAISING zcx_abapgit_exception . CLASS-METHODS run_checks IMPORTING !ii_log TYPE REF TO zif_abapgit_log !it_results TYPE zif_abapgit_definitions=>ty_results_tt !io_dot TYPE REF TO zcl_abapgit_dot_abapgit !iv_top TYPE devclass RAISING zcx_abapgit_exception . CLASS-METHODS build_existing IMPORTING !is_local TYPE zif_abapgit_definitions=>ty_file_item !is_remote TYPE zif_abapgit_definitions=>ty_file !it_state TYPE zif_abapgit_definitions=>ty_file_signatures_ts RETURNING VALUE(rs_result) TYPE zif_abapgit_definitions=>ty_result . CLASS-METHODS build_new_local IMPORTING !is_local TYPE zif_abapgit_definitions=>ty_file_item RETURNING VALUE(rs_result) TYPE zif_abapgit_definitions=>ty_result . CLASS-METHODS build_new_remote IMPORTING !iv_devclass TYPE devclass !io_dot TYPE REF TO zcl_abapgit_dot_abapgit !is_remote TYPE zif_abapgit_definitions=>ty_file !it_items TYPE zif_abapgit_definitions=>ty_items_ts !it_state TYPE zif_abapgit_definitions=>ty_file_signatures_ts RETURNING VALUE(rs_result) TYPE zif_abapgit_definitions=>ty_result RAISING zcx_abapgit_exception . CLASS-METHODS get_object_package IMPORTING !iv_object TYPE tadir-object !iv_obj_name TYPE tadir-obj_name RETURNING VALUE(rv_devclass) TYPE devclass RAISING zcx_abapgit_exception . CLASS-METHODS check_package_move IMPORTING !ii_log TYPE REF TO zif_abapgit_log !it_results TYPE zif_abapgit_definitions=>ty_results_tt RAISING zcx_abapgit_exception . CLASS-METHODS check_files_folder IMPORTING !ii_log TYPE REF TO zif_abapgit_log !it_results TYPE zif_abapgit_definitions=>ty_results_tt RAISING zcx_abapgit_exception . CLASS-METHODS check_package_folder IMPORTING !ii_log TYPE REF TO zif_abapgit_log !it_results TYPE zif_abapgit_definitions=>ty_results_tt !io_dot TYPE REF TO zcl_abapgit_dot_abapgit !iv_top TYPE devclass RAISING zcx_abapgit_exception . CLASS-METHODS check_multiple_files IMPORTING !ii_log TYPE REF TO zif_abapgit_log !it_results TYPE zif_abapgit_definitions=>ty_results_tt RAISING zcx_abapgit_exception . CLASS-METHODS check_namespace IMPORTING !ii_log TYPE REF TO zif_abapgit_log !it_results TYPE zif_abapgit_definitions=>ty_results_tt RAISING zcx_abapgit_exception . ENDCLASS. CLASS ZCL_ABAPGIT_FILE_STATUS IMPLEMENTATION. METHOD build_existing. DATA: ls_file_sig LIKE LINE OF it_state. " Item rs_result-obj_type = is_local-item-obj_type. rs_result-obj_name = is_local-item-obj_name. rs_result-package = is_local-item-devclass. " File rs_result-path = is_local-file-path. rs_result-filename = is_local-file-filename. IF is_local-file-sha1 = is_remote-sha1. rs_result-match = abap_true. RETURN. ENDIF. " Match against current state READ TABLE it_state INTO ls_file_sig WITH KEY path = is_local-file-path filename = is_local-file-filename BINARY SEARCH. IF sy-subrc = 0. IF ls_file_sig-sha1 <> is_local-file-sha1. rs_result-lstate = zif_abapgit_definitions=>c_state-modified. ENDIF. IF ls_file_sig-sha1 <> is_remote-sha1. rs_result-rstate = zif_abapgit_definitions=>c_state-modified. ENDIF. rs_result-match = boolc( rs_result-lstate IS INITIAL AND rs_result-rstate IS INITIAL ). ELSE. " This is a strange situation. As both local and remote exist " the state should also be present. Maybe this is a first run of the code. " In this case just compare hashes directly and mark both changed " the user will presumably decide what to do after checking the actual diff rs_result-match = boolc( is_local-file-sha1 = is_remote-sha1 ). IF rs_result-match = abap_false. rs_result-lstate = zif_abapgit_definitions=>c_state-modified. rs_result-rstate = zif_abapgit_definitions=>c_state-modified. ENDIF. ENDIF. ENDMETHOD. METHOD build_new_local. " Item rs_result-obj_type = is_local-item-obj_type. rs_result-obj_name = is_local-item-obj_name. rs_result-package = is_local-item-devclass. " File rs_result-path = is_local-file-path. rs_result-filename = is_local-file-filename. " Match rs_result-match = abap_false. rs_result-lstate = zif_abapgit_definitions=>c_state-added. ENDMETHOD. METHOD build_new_remote. DATA: ls_item LIKE LINE OF it_items, ls_file_sig LIKE LINE OF it_state. " Common and default part rs_result-path = is_remote-path. rs_result-filename = is_remote-filename. rs_result-match = abap_false. rs_result-rstate = zif_abapgit_definitions=>c_state-added. zcl_abapgit_filename_logic=>file_to_object( EXPORTING iv_filename = is_remote-filename iv_path = is_remote-path iv_devclass = iv_devclass io_dot = io_dot IMPORTING es_item = ls_item ). " Check if in item index + get package READ TABLE it_items INTO ls_item WITH KEY obj_type = ls_item-obj_type obj_name = ls_item-obj_name BINARY SEARCH. IF sy-subrc = 0. " Completely new (xml, abap) and new file in an existing object rs_result-obj_type = ls_item-obj_type. rs_result-obj_name = ls_item-obj_name. rs_result-package = ls_item-devclass. READ TABLE it_state INTO ls_file_sig WITH KEY path = is_remote-path filename = is_remote-filename BINARY SEARCH. " Existing file but from another package " was not added during local file proc as was not in tadir for repo package IF sy-subrc = 0. IF ls_file_sig-sha1 = is_remote-sha1. rs_result-match = abap_true. CLEAR rs_result-rstate. ELSE. rs_result-rstate = zif_abapgit_definitions=>c_state-modified. ENDIF. " Item is in state and in cache but with no package - it was deleted " OR devclass is the same as repo package (see #532) IF ls_item-devclass IS INITIAL OR ls_item-devclass = iv_devclass. rs_result-match = abap_false. rs_result-lstate = zif_abapgit_definitions=>c_state-deleted. ENDIF. ENDIF. ELSE. " Completely unknown file, probably non-abapgit ASSERT 1 = 1. " No action, just follow defaults ENDIF. ENDMETHOD. METHOD calculate_status. DATA: lt_remote LIKE it_remote, lt_items TYPE zif_abapgit_definitions=>ty_items_tt, lt_items_idx TYPE zif_abapgit_definitions=>ty_items_ts, " Sorted by obj_type+obj_name lt_state_idx TYPE zif_abapgit_definitions=>ty_file_signatures_ts. " Sorted by path+filename lt_state_idx = it_cur_state. " Force sort it " Prepare remote files lt_remote = prepare_remote( io_dot = io_dot it_remote = it_remote ). " Process local files and new local files process_local( EXPORTING io_dot = io_dot it_local = it_local it_state_idx = lt_state_idx CHANGING ct_remote = lt_remote ct_items = lt_items ct_results = rt_results ). " Complete item index for unmarked remote files process_items( EXPORTING iv_devclass = iv_devclass io_dot = io_dot it_remote = lt_remote CHANGING ct_items = lt_items ). lt_items_idx = lt_items. " Self protection + UNIQUE records assertion " Process new remote files (marked above with empty SHA1) process_remote( EXPORTING iv_devclass = iv_devclass io_dot = io_dot it_local = it_local it_remote = lt_remote it_state_idx = lt_state_idx it_items_idx = lt_items_idx CHANGING ct_results = rt_results ). SORT rt_results BY obj_type ASCENDING obj_name ASCENDING filename ASCENDING path ASCENDING. ENDMETHOD. METHOD check_files_folder. DATA: ls_item TYPE zif_abapgit_definitions=>ty_item, lt_res_sort LIKE it_results, lt_item_idx LIKE it_results. FIELD-SYMBOLS: <ls_result> LIKE LINE OF it_results, <ls_result_idx> LIKE LINE OF it_results. " Collect object index lt_res_sort = it_results. SORT lt_res_sort BY obj_type ASCENDING obj_name ASCENDING. LOOP AT it_results ASSIGNING <ls_result> WHERE NOT obj_type IS INITIAL AND packmove = abap_false. IF NOT ( <ls_result>-obj_type = ls_item-obj_type AND <ls_result>-obj_name = ls_item-obj_name ). APPEND INITIAL LINE TO lt_item_idx ASSIGNING <ls_result_idx>. <ls_result_idx>-obj_type = <ls_result>-obj_type. <ls_result_idx>-obj_name = <ls_result>-obj_name. <ls_result_idx>-path = <ls_result>-path. MOVE-CORRESPONDING <ls_result> TO ls_item. ENDIF. ENDLOOP. LOOP AT it_results ASSIGNING <ls_result> WHERE NOT obj_type IS INITIAL AND obj_type <> 'DEVC' AND packmove = abap_false. READ TABLE lt_item_idx ASSIGNING <ls_result_idx> WITH KEY obj_type = <ls_result>-obj_type obj_name = <ls_result>-obj_name BINARY SEARCH. " Sorted above IF sy-subrc <> 0 OR <ls_result>-path <> <ls_result_idx>-path. " All paths are same ii_log->add( iv_msg = |Files for object { <ls_result>-obj_type } { <ls_result>-obj_name } are not placed in the same folder| iv_type = 'W' ). ENDIF. ENDLOOP. ENDMETHOD. METHOD check_multiple_files. DATA: lt_res_sort LIKE it_results, ls_file TYPE zif_abapgit_definitions=>ty_file_signature. FIELD-SYMBOLS <ls_result> LIKE LINE OF it_results. lt_res_sort = it_results. SORT lt_res_sort BY filename ASCENDING. LOOP AT lt_res_sort ASSIGNING <ls_result> WHERE obj_type <> 'DEVC' AND packmove = abap_false. IF <ls_result>-filename IS NOT INITIAL AND <ls_result>-filename = ls_file-filename. ii_log->add( iv_msg = |Multiple files with same filename, { <ls_result>-filename }| iv_type = 'W' ). ENDIF. IF <ls_result>-filename IS INITIAL. ii_log->add( iv_msg = |Filename is empty for object { <ls_result>-obj_type } { <ls_result>-obj_name }| iv_type = 'W' ). ENDIF. MOVE-CORRESPONDING <ls_result> TO ls_file. ENDLOOP. ENDMETHOD. METHOD check_namespace. DATA: lv_namespace TYPE namespace, lt_namespace TYPE TABLE OF namespace, ls_trnspace TYPE trnspace. FIELD-SYMBOLS <ls_result> LIKE LINE OF it_results. " Collect all namespaces based on name of xml-files LOOP AT it_results ASSIGNING <ls_result>. FIND REGEX '^#([a-zA-Z0-9]+)#.*\..*\.xml$' IN <ls_result>-filename SUBMATCHES lv_namespace. IF sy-subrc = 0. lv_namespace = '/' && to_upper( lv_namespace ) && '/'. COLLECT lv_namespace INTO lt_namespace. ENDIF. ENDLOOP. LOOP AT lt_namespace INTO lv_namespace. CALL FUNCTION 'TR_READ_NAMESPACE' EXPORTING iv_namespace = lv_namespace IMPORTING es_trnspace = ls_trnspace EXCEPTIONS namespace_not_existing = 1 OTHERS = 2. IF sy-subrc <> 0. ii_log->add( iv_msg = |Namespace { lv_namespace } does not exist. Create it in transaction SE03| iv_type = 'W' ). ELSEIF ls_trnspace-editflag <> 'X'. ii_log->add( iv_msg = |Namespace { lv_namespace } is not modifiable. Check it in transaction SE03| iv_type = 'W' ). ENDIF. ENDLOOP. ENDMETHOD. METHOD check_package_folder. DATA: lv_path TYPE string, lo_folder_logic TYPE REF TO zcl_abapgit_folder_logic. FIELD-SYMBOLS <ls_result> LIKE LINE OF it_results. lo_folder_logic = zcl_abapgit_folder_logic=>get_instance( ). LOOP AT it_results ASSIGNING <ls_result> WHERE NOT package IS INITIAL AND NOT path IS INITIAL AND packmove = abap_false. lv_path = lo_folder_logic->package_to_path( iv_top = iv_top io_dot = io_dot iv_package = <ls_result>-package ). IF lv_path <> <ls_result>-path. ii_log->add( iv_msg = |Package and path does not match for object, { <ls_result>-obj_type } { <ls_result>-obj_name }| iv_type = 'W' ). ENDIF. ENDLOOP. ENDMETHOD. METHOD check_package_move. DATA: lt_move_idx LIKE it_results. FIELD-SYMBOLS: <ls_result> LIKE LINE OF it_results, <ls_result_move> LIKE LINE OF it_results. LOOP AT it_results ASSIGNING <ls_result> WHERE lstate = zif_abapgit_definitions=>c_state-added AND packmove = abap_true. READ TABLE lt_move_idx TRANSPORTING NO FIELDS WITH KEY obj_type = <ls_result>-obj_type obj_name = <ls_result>-obj_name BINARY SEARCH. " Sorted since it_result is sorted IF sy-subrc <> 0. ii_log->add( iv_msg = |Changed package assignment for object { <ls_result>-obj_type } { <ls_result>-obj_name }| iv_type = 'W' ). APPEND INITIAL LINE TO lt_move_idx ASSIGNING <ls_result_move>. <ls_result_move>-obj_type = <ls_result>-obj_type. <ls_result_move>-obj_name = <ls_result>-obj_name. <ls_result_move>-path = <ls_result>-path. ENDIF. ENDLOOP. ENDMETHOD. METHOD get_object_package. DATA: lv_name TYPE devclass, li_package TYPE REF TO zif_abapgit_sap_package. rv_devclass = zcl_abapgit_factory=>get_tadir( )->get_object_package( iv_object = iv_object iv_obj_name = iv_obj_name ). IF rv_devclass IS INITIAL AND iv_object = 'DEVC' AND iv_obj_name(1) = '$'. " local packages usually have no tadir entry lv_name = iv_obj_name. li_package = zcl_abapgit_factory=>get_sap_package( lv_name ). IF li_package->exists( ) = abap_true. rv_devclass = lv_name. ENDIF. ENDIF. ENDMETHOD. METHOD prepare_remote. DATA lv_index TYPE sy-index. FIELD-SYMBOLS <ls_remote> LIKE LINE OF it_remote. rt_remote = it_remote. SORT rt_remote BY path filename. " Skip ignored files LOOP AT rt_remote ASSIGNING <ls_remote>. lv_index = sy-tabix. IF io_dot->is_ignored( iv_path = <ls_remote>-path iv_filename = <ls_remote>-filename ) = abap_true. DELETE rt_remote INDEX lv_index. ENDIF. ENDLOOP. ENDMETHOD. METHOD process_items. DATA: ls_item LIKE LINE OF ct_items, lv_is_xml TYPE abap_bool, lv_is_json TYPE abap_bool, lv_sub_fetched TYPE abap_bool, lt_sub_packages TYPE zif_abapgit_sap_package=>ty_devclass_tt, lv_msg TYPE string. FIELD-SYMBOLS <ls_remote> LIKE LINE OF it_remote. LOOP AT it_remote ASSIGNING <ls_remote> WHERE sha1 IS NOT INITIAL. zcl_abapgit_filename_logic=>file_to_object( EXPORTING iv_filename = <ls_remote>-filename iv_path = <ls_remote>-path io_dot = io_dot iv_devclass = iv_devclass IMPORTING es_item = ls_item ev_is_xml = lv_is_xml ev_is_json = lv_is_json ). CHECK lv_is_xml = abap_true OR lv_is_json = abap_true. " only object definitions ls_item-devclass = get_object_package( iv_object = ls_item-obj_type iv_obj_name = ls_item-obj_name ). IF NOT ls_item-devclass IS INITIAL AND iv_devclass <> ls_item-devclass. IF lv_sub_fetched = abap_false. lt_sub_packages = zcl_abapgit_factory=>get_sap_package( iv_devclass )->list_subpackages( ). lv_sub_fetched = abap_true. SORT lt_sub_packages BY table_line. "Optimize Read Access ENDIF. " Make sure the package is under the repo main package READ TABLE lt_sub_packages TRANSPORTING NO FIELDS WITH KEY table_line = ls_item-devclass BINARY SEARCH. IF sy-subrc <> 0. IF ls_item-obj_type = 'DEVC'. " If package already exist but is not included in the package hierarchy of " the package assigned to the repository, then a manual change of the package " is required i.e. setting a parent package to iv_devclass (or one of its " subpackages). We don't this automatically since it's not clear where in the " hierarchy the new package should be located. (#4108) lv_msg = |Package { ls_item-devclass } already exists but is not a subpackage of { iv_devclass }. Check your package and folder logic or assign { ls_item-devclass } to package hierarchy of { iv_devclass } to match the repository.|. zcx_abapgit_exception=>raise( lv_msg ). ELSE. CLEAR ls_item-devclass. ENDIF. ENDIF. ENDIF. APPEND ls_item TO ct_items. ENDLOOP. SORT ct_items DESCENDING. " Default key - type, name, pkg, inactive DELETE ADJACENT DUPLICATES FROM ct_items COMPARING obj_type obj_name devclass. ENDMETHOD. METHOD process_local. DATA lv_msg TYPE string. FIELD-SYMBOLS: <ls_remote> LIKE LINE OF ct_remote, <ls_result> LIKE LINE OF ct_results, <ls_state> LIKE LINE OF it_state_idx, <ls_local> LIKE LINE OF it_local. LOOP AT it_local ASSIGNING <ls_local>. " Skip ignored files IF io_dot->is_ignored( iv_path = <ls_local>-file-path iv_filename = <ls_local>-file-filename ) = abap_true. CONTINUE. ENDIF. APPEND INITIAL LINE TO ct_results ASSIGNING <ls_result>. IF <ls_local>-item IS NOT INITIAL. APPEND <ls_local>-item TO ct_items. " Collect for item index ENDIF. READ TABLE ct_remote ASSIGNING <ls_remote> WITH KEY path = <ls_local>-file-path filename = <ls_local>-file-filename BINARY SEARCH. IF sy-subrc = 0. " Exist local and remote <ls_result> = build_existing( is_local = <ls_local> is_remote = <ls_remote> it_state = it_state_idx ). IF <ls_remote>-sha1 IS INITIAL. IF <ls_local>-file-filename = zcl_abapgit_filename_logic=>c_package_file. lv_msg = |Package name conflict { <ls_local>-item-obj_type } { <ls_local>-item-obj_name }. | && |Rename package or use FULL folder logic|. ELSE. lv_msg = |Checksum conflict { <ls_local>-item-obj_type } { <ls_local>-item-obj_name }. | && |Please create an issue on Github|. ENDIF. zcx_abapgit_exception=>raise( lv_msg ). ENDIF. CLEAR <ls_remote>-sha1. " Mark as processed ELSE. " Only L exists <ls_result> = build_new_local( <ls_local> ). " Check if same file exists in different location READ TABLE ct_remote ASSIGNING <ls_remote> WITH KEY file COMPONENTS filename = <ls_local>-file-filename. IF sy-subrc = 0 AND <ls_local>-file-sha1 = <ls_remote>-sha1. <ls_result>-packmove = abap_true. ELSEIF sy-subrc = 4. " Check if file existed before and was deleted remotely READ TABLE it_state_idx ASSIGNING <ls_state> WITH KEY path = <ls_local>-file-path filename = <ls_local>-file-filename BINARY SEARCH. IF sy-subrc = 0. IF <ls_local>-file-sha1 = <ls_state>-sha1. <ls_result>-lstate = zif_abapgit_definitions=>c_state-unchanged. ELSE. <ls_result>-lstate = zif_abapgit_definitions=>c_state-modified. ENDIF. <ls_result>-rstate = zif_abapgit_definitions=>c_state-deleted. ENDIF. ENDIF. ENDIF. <ls_result>-inactive = <ls_local>-item-inactive. ENDLOOP. ENDMETHOD. METHOD process_remote. FIELD-SYMBOLS: <ls_remote> LIKE LINE OF it_remote, <ls_result> LIKE LINE OF ct_results, <ls_local> LIKE LINE OF it_local. LOOP AT it_remote ASSIGNING <ls_remote> WHERE sha1 IS NOT INITIAL. APPEND INITIAL LINE TO ct_results ASSIGNING <ls_result>. <ls_result> = build_new_remote( iv_devclass = iv_devclass io_dot = io_dot is_remote = <ls_remote> it_items = it_items_idx it_state = it_state_idx ). " Check if same file exists in different location (not for generic package files) READ TABLE it_local ASSIGNING <ls_local> WITH KEY file-filename = <ls_remote>-filename. IF sy-subrc = 0 AND <ls_remote>-filename <> zcl_abapgit_filename_logic=>c_package_file. <ls_result>-match = abap_false. <ls_result>-lstate = zif_abapgit_definitions=>c_state-deleted. <ls_result>-rstate = zif_abapgit_definitions=>c_state-unchanged. IF <ls_local>-file-sha1 = <ls_remote>-sha1. <ls_result>-packmove = abap_true. ENDIF. ELSE. " Check if file existed before and was deleted locally READ TABLE it_state_idx TRANSPORTING NO FIELDS WITH KEY path = <ls_remote>-path filename = <ls_remote>-filename BINARY SEARCH. IF sy-subrc = 0. <ls_result>-match = abap_false. <ls_result>-lstate = zif_abapgit_definitions=>c_state-deleted. ENDIF. ENDIF. ENDLOOP. ENDMETHOD. METHOD run_checks. " This method just adds messages to the log. No log, nothing to do here IF ii_log IS INITIAL. RETURN. ENDIF. " Find all objects which were assigned to a different package check_package_move( ii_log = ii_log it_results = it_results ). " Check files for one object is in the same folder check_files_folder( ii_log = ii_log it_results = it_results ). " Check that objects are created in package corresponding to folder check_package_folder( ii_log = ii_log it_results = it_results io_dot = io_dot iv_top = iv_top ). " Check for multiple files with same filename check_multiple_files( ii_log = ii_log it_results = it_results ). " Check if namespaces exist already check_namespace( ii_log = ii_log it_results = it_results ). ENDMETHOD. METHOD status. DATA lt_local TYPE zif_abapgit_definitions=>ty_files_item_tt. DATA lt_remote TYPE zif_abapgit_definitions=>ty_files_tt. DATA li_exit TYPE REF TO zif_abapgit_exit. lt_local = io_repo->get_files_local( ii_log = ii_log ). IF lines( lt_local ) <= 2. " Less equal two means that we have only the .abapgit.xml and the package in " our local repository. In this case we have to update our local .abapgit.xml " from the remote one. Otherwise we get errors when e.g. the folder starting " folder is different. io_repo->find_remote_dot_abapgit( ). ENDIF. lt_remote = io_repo->get_files_remote( ). li_exit = zcl_abapgit_exit=>get_instance( ). li_exit->pre_calculate_repo_status( EXPORTING is_repo_meta = io_repo->ms_data CHANGING ct_local = lt_local ct_remote = lt_remote ). rt_results = calculate_status( iv_devclass = io_repo->get_package( ) io_dot = io_repo->get_dot_abapgit( ) it_local = lt_local it_remote = lt_remote it_cur_state = io_repo->zif_abapgit_repo~checksums( )->get_checksums_per_file( ) ). run_checks( ii_log = ii_log it_results = rt_results io_dot = io_repo->get_dot_abapgit( ) iv_top = io_repo->get_package( ) ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 7753, 62, 13376, 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, 3722, 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, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 6404, 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, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 43420, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 43420, 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, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 15284, 62, 13376, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 7959, 4871, 220, 220, 220, 220, 220, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 26518, 220, 220, 220, 220, 220, 220, 220, 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, 270, 62, 12001, 220, 220, 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, 220, 220, 5145, 270, 62, 47960, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 22019, 62, 5219, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 7753, 62, 12683, 6691, 62, 926, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 43420, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 43420, 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, 42715, 12, 49273, 50, 8335, 62, 47960, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 26518, 220, 220, 220, 220, 220, 220, 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, 270, 62, 47960, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 926, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 47960, 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, 42715, 12, 49273, 50, 1429, 62, 12001, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 26518, 220, 220, 220, 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, 270, 62, 12001, 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, 220, 220, 5145, 270, 62, 5219, 62, 312, 87, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 7753, 62, 12683, 6691, 62, 912, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 47960, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 23814, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 23814, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 43420, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 43420, 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, 42715, 12, 49273, 50, 1429, 62, 23814, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 7959, 4871, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 26518, 220, 220, 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, 270, 62, 47960, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 926, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310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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 ]
CLASS zcl_expimp_vx_importer DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. METHODS constructor IMPORTING dbuf TYPE xstring RAISING cx_sy_compression_error zcx_expimp_vx. DATA: transport_header TYPE zif_expimp_vx=>ty_transport_header READ-ONLY, version TYPE zif_expimp_vx=>ty_transport_header-version READ-ONLY, reader TYPE REF TO zcl_expimp_vx_reader READ-ONLY. TYPES : BEGIN OF ty_test, id TYPE c LENGTH 30, code TYPE string_table, dbuf TYPE xstring, END OF ty_test. PROTECTED SECTION. TYPES: ty_byte TYPE x LENGTH 1. "! If the 5th byte = '02', the BLOB must be uncompressed by kernel AB_IMPORT_DECOMPRESS METHODS uncompress IMPORTING dbuf TYPE xstring RETURNING VALUE(result) TYPE xstring RAISING cx_sy_compression_error zcx_expimp_vx. PRIVATE SECTION. METHODS get_reader IMPORTING dbuf TYPE xstring RETURNING VALUE(reader) TYPE REF TO zcl_expimp_vx_reader. ENDCLASS. CLASS zcl_expimp_vx_importer IMPLEMENTATION. METHOD constructor. IF xstrlen( dbuf ) < 16. RAISE EXCEPTION TYPE zcx_expimp_vx. ENDIF. IF dbuf+4(1) = '02'. "compressed data " decompress export/import document if compressed DATA(dbuf2) = uncompress( dbuf ). ELSE. dbuf2 = dbuf. ENDIF. reader = get_reader( dbuf2 ). ENDMETHOD. METHOD uncompress. " This code is copied from subroutine READ_BLOB of program RSINDX00 and adapted. DATA: l_off TYPE i, l_len TYPE i, lr_blob TYPE REF TO indx_clust_blob ##NEEDED, datalen TYPE p, BEGIN OF l_xdat, srtf2 TYPE indx-srtf2, clustr TYPE indx-clustr, clustd TYPE x LENGTH 1000, END OF l_xdat, l_otab LIKE TABLE OF l_xdat, l_stab LIKE TABLE OF l_xdat. datalen = xstrlen( dbuf ). IF datalen < 4. RAISE EXCEPTION TYPE zcx_expimp_vx. ENDIF. " re-format the XSTRING into data cluster l_off = 0. DO. IF l_off < datalen. IF datalen - l_off >= 1000. l_len = 1000. ELSE. l_len = datalen - l_off. ENDIF. l_xdat-srtf2 = sy-index - 1. l_xdat-clustr = l_len. l_xdat-clustd = dbuf+l_off(l_len). APPEND l_xdat TO l_stab. l_off = l_off + 1000. ELSE. EXIT. ENDIF. ENDDO. CLEAR result. CALL 'AB_IMPORT_DECOMPRESS' ID 'SRCTAB' FIELD l_stab[] ID 'DSTTAB' FIELD l_otab[]. CLEAR l_stab. LOOP AT l_otab REFERENCE INTO DATA(l_o). CONCATENATE result l_o->clustd(l_o->clustr) INTO result IN BYTE MODE. ENDLOOP. ENDMETHOD. METHOD get_reader. " TRANSPORT HEADER DATA: transport_header_x TYPE x LENGTH 16. transport_header_x = dbuf(16). reader = zcl_expimp_vx_reader=>create( encoding = '1100' input = transport_header_x ). reader->read_structure( IMPORTING data = transport_header length = DATA(transport_header_length) ). version = transport_header-version. DATA(sap_codepage) = CONV cpcodepage( cl_abap_codepage=>convert_from( source = CONV xstring( transport_header-codepage ) codepage = 'US-ASCII' ) ). DATA(codepage) = cl_abap_codepage=>sap_to_http( sap_codepage ). " Recreate CONV with right code page reader = zcl_expimp_vx_reader=>create( encoding = CONV #( sap_codepage ) endian = COND #( WHEN transport_header-intformat = '01' THEN 'B' ELSE 'L' ) input = dbuf ). reader->skip_x( transport_header_length ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 11201, 11011, 62, 85, 87, 62, 320, 26634, 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, 20613, 3046, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 1837, 62, 5589, 2234, 62, 18224, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 11201, 11011, 62, 85, 87, 13, 628, 220, 220, 220, 42865, 25, 4839, 62, 25677, 41876, 1976, 361, 62, 11201, 11011, 62, 85, 87, 14804, 774, 62, 7645, 634, 62, 25677, 20832, 12, 1340, 11319, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2196, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 11201, 11011, 62, 85, 87, 14804, 774, 62, 7645, 634, 62, 25677, 12, 9641, 20832, 12, 1340, 11319, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9173, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 11201, 11011, 62, 85, 87, 62, 46862, 20832, 12, 1340, 11319, 13, 198, 220, 220, 220, 24412, 47, 1546, 1058, 347, 43312, 3963, 1259, 62, 9288, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 220, 220, 41876, 269, 406, 49494, 1542, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2438, 41876, 4731, 62, 11487, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20613, 3046, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 9288, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 1259, 62, 26327, 41876, 2124, 406, 49494, 352, 13, 628, 220, 220, 220, 366, 0, 1002, 262, 642, 400, 18022, 796, 705, 2999, 3256, 262, 9878, 9864, 1276, 307, 34318, 2790, 416, 9720, 9564, 62, 3955, 15490, 62, 41374, 2662, 32761, 198, 220, 220, 220, 337, 36252, 50, 34318, 601, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 20613, 3046, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 1837, 62, 5589, 2234, 62, 18224, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 11201, 11011, 62, 85, 87, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 46862, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 20613, 3046, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 46862, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 11201, 11011, 62, 85, 87, 62, 46862, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 11201, 11011, 62, 85, 87, 62, 320, 26634, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 16876, 2124, 2536, 11925, 7, 20613, 3046, 1267, 1279, 1467, 13, 198, 220, 220, 220, 220, 220, 17926, 24352, 7788, 42006, 2849, 41876, 1976, 66, 87, 62, 11201, 11011, 62, 85, 87, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 16876, 20613, 3046, 10, 19, 7, 16, 8, 796, 705, 2999, 4458, 366, 5589, 2790, 1366, 198, 220, 220, 220, 220, 220, 366, 38237, 601, 10784, 14, 11748, 3188, 611, 25388, 198, 220, 220, 220, 220, 220, 42865, 7, 9945, 3046, 17, 8, 796, 34318, 601, 7, 20613, 3046, 6739, 198, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 20613, 3046, 17, 796, 20613, 3046, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 9173, 796, 651, 62, 46862, 7, 20613, 3046, 17, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 34318, 601, 13, 628, 220, 220, 220, 366, 770, 2438, 318, 18984, 422, 850, 81, 28399, 20832, 62, 9148, 9864, 286, 1430, 19340, 12115, 55, 405, 290, 16573, 13, 628, 220, 220, 220, 42865, 25, 300, 62, 2364, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 62, 11925, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 81, 62, 2436, 672, 41876, 4526, 37, 5390, 773, 87, 62, 565, 436, 62, 2436, 672, 22492, 12161, 1961, 1961, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4818, 282, 268, 41876, 279, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 300, 62, 87, 19608, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 17034, 69, 17, 220, 41876, 773, 87, 12, 82, 17034, 69, 17, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 32966, 81, 41876, 773, 87, 12, 565, 436, 81, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 32966, 67, 41876, 2124, 406, 49494, 8576, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 300, 62, 87, 19608, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 62, 313, 397, 34178, 43679, 3963, 300, 62, 87, 19608, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 62, 39029, 34178, 43679, 3963, 300, 62, 87, 19608, 13, 628, 220, 220, 220, 4818, 282, 268, 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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 ]
*&---------------------------------------------------------------------* *& Form CHECK_LOCATION *&---------------------------------------------------------------------* FORM check_location . CASE 'X'. WHEN gs_location-s. MESSAGE i000(oo) WITH 'Achtung: Inventur vom 03.08. - 13.08.!' INTO gv_message. WHEN gs_location-hh. MESSAGE i000(oo) WITH 'Umzug nach HH Bahrenfeld ab Mitte Juli.' INTO gv_message. WHEN gs_location-m. MESSAGE i000(oo) WITH 'Geplante Eröffnung verschoben auf den 02.09.' INTO gv_message. WHEN OTHERS. CLEAR gv_message. ENDCASE. ENDFORM. " CHECK_LOCATION
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 220, 220, 220, 220, 5178, 220, 5870, 25171, 62, 29701, 6234, 198, 9, 5, 10097, 30934, 9, 198, 21389, 2198, 62, 24886, 764, 628, 220, 42001, 705, 55, 4458, 198, 220, 220, 220, 42099, 308, 82, 62, 24886, 12, 82, 13, 198, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 1312, 830, 7, 2238, 8, 13315, 705, 32, 21474, 2150, 25, 554, 1151, 333, 20918, 7643, 13, 2919, 13, 532, 1511, 13, 2919, 13, 13679, 39319, 308, 85, 62, 20500, 13, 198, 220, 220, 220, 42099, 308, 82, 62, 24886, 12, 12337, 13, 198, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 1312, 830, 7, 2238, 8, 13315, 705, 37280, 89, 1018, 299, 620, 47138, 13081, 918, 16265, 450, 337, 2654, 5979, 72, 2637, 39319, 308, 85, 62, 20500, 13, 198, 220, 220, 220, 42099, 308, 82, 62, 24886, 12, 76, 13, 198, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 1312, 830, 7, 2238, 8, 13315, 705, 10082, 489, 12427, 5256, 9101, 487, 77, 2150, 1646, 354, 672, 268, 257, 3046, 2853, 7816, 13, 2931, 2637, 39319, 308, 85, 62, 20500, 13, 198, 220, 220, 220, 42099, 440, 4221, 4877, 13, 198, 220, 220, 220, 220, 220, 30301, 1503, 308, 85, 62, 20500, 13, 198, 220, 23578, 34, 11159, 13, 198, 198, 1677, 8068, 1581, 44, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 5870, 25171, 62, 29701, 6234, 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 ]
CLASS y_check_scope_of_variable DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC . PUBLIC SECTION. METHODS constructor . PROTECTED SECTION. METHODS inspect_tokens REDEFINITION. PRIVATE SECTION. METHODS is_isolated IMPORTING strucutre_row TYPE stmnt_stru RETURNING VALUE(result) TYPE abap_bool. METHODS extract_variable_name IMPORTING token TYPE string RETURNING VALUE(result) TYPE string. METHODS get_scope_structure IMPORTING strucutre_row TYPE stmnt_stru RETURNING VALUE(result) TYPE sstruc. ENDCLASS. CLASS y_check_scope_of_variable IMPLEMENTATION. METHOD constructor. super->constructor( ). settings-pseudo_comment = '"#EC SCOPE_OF_VAR' ##NO_TEXT. settings-disable_threshold_selection = abap_true. settings-threshold = 0. settings-documentation = |{ c_docs_path-checks }scope-of-variable.md|. set_check_message( 'Variable in use out of its scope!' ). ENDMETHOD. METHOD inspect_tokens. DATA(token) = get_token_abs( statement-from ). IF token NP 'DATA(*)' AND token NP 'FIELD-SYMBOLS(*)'. RETURN. ENDIF. IF is_isolated( statement-struc ) = abap_false. RETURN. ENDIF. DATA(variable) = extract_variable_name( token ). DATA(scope) = get_scope_structure( statement-struc ). DATA(statement_index) = index. LOOP AT ref_scan->statements ASSIGNING FIELD-SYMBOL(<statement>) FROM scope-stmnt_from TO scope-stmnt_to WHERE number > statement-number. statement_index = statement_index + 1. IF <statement>-struc = statement-struc. CONTINUE. ENDIF. LOOP AT ref_scan->tokens TRANSPORTING NO FIELDS FROM <statement>-from TO <statement>-to WHERE str = variable. DATA(check_configuration) = detect_check_configuration( <statement> ). raise_error( statement_level = <statement>-level statement_index = statement_index statement_from = <statement>-from check_configuration = check_configuration ). ENDLOOP. ENDLOOP. ENDMETHOD. METHOD is_isolated. DATA(structure) = ref_scan->structures[ strucutre_row ]. result = xsdbool( structure-stmnt_type = scan_struc_stmnt_type-if OR structure-stmnt_type = scan_struc_stmnt_type-then OR structure-stmnt_type = scan_struc_stmnt_type-elseif OR structure-stmnt_type = scan_struc_stmnt_type-else OR structure-stmnt_type = scan_struc_stmnt_type-do OR structure-stmnt_type = scan_struc_stmnt_type-case OR structure-stmnt_type = scan_struc_stmnt_type-when OR structure-stmnt_type = scan_struc_stmnt_type-loop OR structure-stmnt_type = scan_struc_stmnt_type-while ). ENDMETHOD. METHOD extract_variable_name. result = token. REPLACE ALL OCCURRENCES OF 'DATA(' IN result WITH ''. REPLACE ALL OCCURRENCES OF 'FIELD-SYMBOLS(' IN result WITH ''. REPLACE ALL OCCURRENCES OF ')' IN result WITH ''. ENDMETHOD. METHOD get_scope_structure. DATA(structure) = ref_scan->structures[ strucutre_row ]. DATA(is_root) = xsdbool( structure-stmnt_type = scan_struc_stmnt_type-form OR structure-stmnt_type = scan_struc_stmnt_type-method OR structure-stmnt_type = scan_struc_stmnt_type-function OR structure-stmnt_type = scan_struc_stmnt_type-module OR structure-type = scan_struc_type-event ). result = COND #( WHEN is_root = abap_true THEN structure ELSE get_scope_structure( structure-back ) ). ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9122, 62, 29982, 62, 1659, 62, 45286, 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, 30152, 515, 30023, 9863, 2751, 2874, 8968, 260, 62, 808, 41876, 336, 76, 429, 62, 19554, 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, 20274, 8, 41876, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 337, 36252, 50, 7925, 62, 45286, 62, 3672, 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, 4731, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 29982, 62, 301, 5620, 30023, 9863, 2751, 2874, 8968, 260, 62, 808, 41876, 336, 76, 429, 62, 19554, 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, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 264, 19554, 66, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 331, 62, 9122, 62, 29982, 62, 1659, 62, 45286, 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, 6374, 32135, 62, 19238, 62, 53, 1503, 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, 29982, 12, 1659, 12, 45286, 13, 9132, 91, 13, 628, 220, 220, 220, 900, 62, 9122, 62, 20500, 7, 705, 43015, 287, 779, 503, 286, 663, 8354, 13679, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 10104, 62, 83, 482, 641, 13, 628, 220, 220, 220, 42865, 7, 30001, 8, 796, 651, 62, 30001, 62, 8937, 7, 2643, 12, 6738, 6739, 628, 220, 220, 220, 16876, 11241, 28498, 705, 26947, 7, 28104, 6, 198, 220, 220, 220, 5357, 11241, 28498, 705, 44603, 12, 23060, 10744, 3535, 50, 7, 28104, 4458, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 16876, 318, 62, 30152, 515, 7, 2643, 12, 19554, 66, 1267, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 42865, 7, 45286, 8, 796, 7925, 62, 45286, 62, 3672, 7, 11241, 6739, 198, 220, 220, 220, 42865, 7, 29982, 8, 796, 651, 62, 29982, 62, 301, 5620, 7, 2643, 12, 19554, 66, 6739, 198, 220, 220, 220, 42865, 7, 26090, 62, 9630, 8, 796, 6376, 13, 628, 220, 220, 220, 17579, 3185, 5161, 1006, 62, 35836, 3784, 14269, 3196, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 26090, 43734, 198, 220, 220, 220, 16034, 8354, 12, 301, 76, 429, 62, 6738, 5390, 8354, 12, 301, 76, 429, 62, 1462, 198, 220, 220, 220, 33411, 1271, 1875, 2643, 12, 17618, 13, 628, 220, 220, 220, 220, 220, 2643, 62, 9630, 796, 2643, 62, 9630, 1343, 352, 13, 628, 220, 220, 220, 220, 220, 16876, 1279, 26090, 29, 12, 19554, 66, 796, 2643, 12, 19554, 66, 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, 17579, 3185, 5161, 1006, 62, 35836, 3784, 83, 482, 641, 48213, 4303, 9863, 2751, 8005, 18930, 3698, 5258, 198, 220, 220, 220, 220, 220, 16034, 1279, 26090, 29, 12, 6738, 5390, 1279, 26090, 29, 12, 1462, 198, 220, 220, 220, 220, 220, 33411, 965, 796, 7885, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 9122, 62, 11250, 3924, 8, 796, 4886, 62, 9122, 62, 11250, 3924, 7, 1279, 26090, 29, 6739, 628, 220, 220, 220, 220, 220, 220, 220, 5298, 62, 18224, 7, 2643, 62, 5715, 796, 1279, 26090, 29, 12, 5715, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 9630, 796, 2643, 62, 9630, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 6738, 796, 1279, 26090, 29, 12, 6738, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2198, 62, 11250, 3924, 796, 2198, 62, 11250, 3924, 6739, 198, 220, 220, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 318, 62, 30152, 515, 13, 198, 220, 220, 220, 42865, 7, 301, 5620, 8, 796, 1006, 62, 35836, 3784, 7249, 942, 58, 2874, 8968, 260, 62, 808, 20740, 628, 220, 220, 220, 1255, 796, 2124, 82, 9945, 970, 7, 220, 220, 220, 4645, 12, 301, 76, 429, 62, 4906, 796, 9367, 62, 19554, 66, 62, 301, 76, 429, 62, 4906, 12, 361, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6375, 4645, 12, 301, 76, 429, 62, 4906, 796, 9367, 62, 19554, 66, 62, 301, 76, 429, 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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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 ]
"! Version constants for AAP CLASS zcl_aap_version DEFINITION PUBLIC FINAL CREATE PRIVATE. PUBLIC SECTION. CONSTANTS: "! Version of AAP library in major.minor.revision format gc_version TYPE string VALUE '0.1.0-SNAPSHOT'. CLASS-DATA: mv_major TYPE i READ-ONLY, mv_minor TYPE i READ-ONLY, mv_revision TYPE i READ-ONLY, mv_is_snapshot TYPE abap_bool READ-ONLY. CLASS-METHODS: class_constructor. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_aap_version IMPLEMENTATION. METHOD class_constructor. SPLIT gc_version AT '-' INTO TABLE DATA(lt_split1). IF lines( lt_split1 ) = 2. mv_is_snapshot = abap_true. ENDIF. SPLIT lt_split1[ 1 ] AT '.' INTO TABLE DATA(lt_split2). mv_major = lt_split2[ 1 ]. mv_minor = lt_split2[ 2 ]. mv_revision = lt_split2[ 3 ]. ENDMETHOD. ENDCLASS.
[ 40484, 10628, 38491, 329, 31518, 198, 31631, 1976, 565, 62, 64, 499, 62, 9641, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 366, 0, 10628, 286, 31518, 5888, 287, 1688, 13, 1084, 273, 13, 260, 10178, 5794, 198, 220, 220, 220, 220, 220, 308, 66, 62, 9641, 41876, 4731, 26173, 8924, 705, 15, 13, 16, 13, 15, 12, 15571, 2969, 9693, 2394, 4458, 198, 220, 220, 220, 42715, 12, 26947, 25, 198, 220, 220, 220, 220, 220, 285, 85, 62, 22478, 220, 220, 220, 220, 220, 220, 41876, 1312, 20832, 12, 1340, 11319, 11, 198, 220, 220, 220, 220, 220, 285, 85, 62, 1084, 273, 220, 220, 220, 220, 220, 220, 41876, 1312, 20832, 12, 1340, 11319, 11, 198, 220, 220, 220, 220, 220, 285, 85, 62, 260, 10178, 220, 220, 220, 41876, 1312, 20832, 12, 1340, 11319, 11, 198, 220, 220, 220, 220, 220, 285, 85, 62, 271, 62, 45380, 9442, 41876, 450, 499, 62, 30388, 20832, 12, 1340, 11319, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 1398, 62, 41571, 273, 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, 64, 499, 62, 9641, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 1398, 62, 41571, 273, 13, 198, 220, 220, 220, 46341, 2043, 308, 66, 62, 9641, 5161, 705, 19355, 39319, 43679, 42865, 7, 2528, 62, 35312, 16, 737, 628, 220, 220, 220, 16876, 3951, 7, 300, 83, 62, 35312, 16, 1267, 796, 362, 13, 198, 220, 220, 220, 220, 220, 285, 85, 62, 271, 62, 45380, 9442, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 46341, 2043, 300, 83, 62, 35312, 16, 58, 352, 2361, 5161, 705, 2637, 39319, 43679, 42865, 7, 2528, 62, 35312, 17, 737, 628, 220, 220, 220, 285, 85, 62, 22478, 796, 300, 83, 62, 35312, 17, 58, 352, 20740, 198, 220, 220, 220, 285, 85, 62, 1084, 273, 796, 300, 83, 62, 35312, 17, 58, 362, 20740, 198, 220, 220, 220, 285, 85, 62, 260, 10178, 796, 300, 83, 62, 35312, 17, 58, 513, 20740, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_xslt 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. METHODS: get RETURNING VALUE(ro_xslt) TYPE REF TO cl_o2_api_xsltdesc RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_object_xslt IMPLEMENTATION. METHOD zif_abapgit_object~has_changed_since. rv_changed = abap_true. ENDMETHOD. METHOD zif_abapgit_object~changed_by. DATA: lo_xslt TYPE REF TO cl_o2_api_xsltdesc, ls_attributes TYPE o2xsltattr. lo_xslt = get( ). lo_xslt->get_attributes( RECEIVING p_attributes = ls_attributes EXCEPTIONS object_invalid = 1 xsltdesc_deleted = 2 OTHERS = 3 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. rv_user = ls_attributes-changedby. ENDMETHOD. METHOD get. DATA: lv_name TYPE cxsltdesc. lv_name = ms_item-obj_name. cl_o2_api_xsltdesc=>load( EXPORTING p_xslt_desc = lv_name IMPORTING p_obj = ro_xslt EXCEPTIONS not_existing = 1 permission_failure = 2 OTHERS = 3 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from cl_o2_api_xsltdesc=>load' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lo_xslt TYPE REF TO cl_o2_api_xsltdesc, lv_source TYPE string, ls_attributes TYPE o2xsltattr. lo_xslt = get( ). ls_attributes = lo_xslt->get_attributes( ). CLEAR: ls_attributes-author, ls_attributes-createdon, ls_attributes-changedby, ls_attributes-changedon, ls_attributes-devclass. io_xml->add( iv_name = 'ATTRIBUTES' ig_data = ls_attributes ). lv_source = lo_xslt->get_source_string( ). mo_files->add_string( iv_extra = 'source' iv_ext = 'xml' iv_string = lv_source ) ##NO_TEXT. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lv_source TYPE string, lo_xslt TYPE REF TO cl_o2_api_xsltdesc, lv_len TYPE i, ls_attributes TYPE o2xsltattr. IF zif_abapgit_object~exists( ) = abap_true. zif_abapgit_object~delete( ). ENDIF. io_xml->read( EXPORTING iv_name = 'ATTRIBUTES' CHANGING cg_data = ls_attributes ). ls_attributes-devclass = iv_package. lv_source = mo_files->read_string( iv_extra = 'source' iv_ext = 'xml' ) ##NO_TEXT. * workaround: somewhere additional linefeeds are added lv_len = strlen( lv_source ) - 2. IF lv_source+lv_len(2) = cl_abap_char_utilities=>cr_lf. lv_source = lv_source(lv_len). ENDIF. cl_o2_api_xsltdesc=>create_new_from_string( EXPORTING p_source = lv_source p_attr = ls_attributes IMPORTING p_obj = lo_xslt EXCEPTIONS action_cancelled = 1 error_occured = 2 not_authorized = 3 object_already_existing = 4 undefined_name = 5 OTHERS = 6 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |error from cl_o2_api_xsltdesc=>create_new_from_string, { sy-subrc }| ). ENDIF. lo_xslt->activate( ). lo_xslt->save( ). lo_xslt->set_changeable( abap_false ). zcl_abapgit_objects_activation=>add_item( ms_item ). ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lo_xslt TYPE REF TO cl_o2_api_xsltdesc, lv_name TYPE cxsltdesc. lv_name = ms_item-obj_name. cl_o2_api_xsltdesc=>load( EXPORTING p_xslt_desc = lv_name IMPORTING p_obj = lo_xslt EXCEPTIONS error_occured = 1 not_existing = 2 permission_failure = 3 version_not_found = 4 OTHERS = 5 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from cl_o2_api_xsltdesc=>load' ). ENDIF. lo_xslt->set_changeable( abap_true ). lo_xslt->delete( ). lo_xslt->save( ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_name TYPE cxsltdesc. lv_name = ms_item-obj_name. rv_bool = cl_o2_api_xsltdesc=>exists( lv_name ). IF rv_bool = '1'. rv_bool = abap_true. ELSE. rv_bool = abap_false. ENDIF. 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~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. METHOD zif_abapgit_object~compare_to_remote_version. CREATE OBJECT ro_comparison_result TYPE zcl_abapgit_comparison_null. ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = abap_false. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 34223, 2528, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 651, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 34223, 2528, 8, 41876, 4526, 37, 5390, 537, 62, 78, 17, 62, 15042, 62, 34223, 2528, 20147, 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, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 34223, 2528, 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, 628, 220, 220, 220, 42865, 25, 2376, 62, 34223, 2528, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 78, 17, 62, 15042, 62, 34223, 2528, 20147, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 1078, 7657, 41876, 267, 17, 34223, 2528, 35226, 13, 628, 220, 220, 220, 2376, 62, 34223, 2528, 796, 651, 7, 6739, 198, 220, 220, 220, 2376, 62, 34223, 2528, 3784, 1136, 62, 1078, 7657, 7, 198, 220, 220, 220, 220, 220, 19644, 36, 3824, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 1078, 7657, 220, 220, 220, 220, 796, 43979, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 259, 12102, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2124, 82, 2528, 20147, 62, 2934, 33342, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 513, 6739, 628, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 62, 83, 3064, 7, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 374, 85, 62, 7220, 796, 43979, 62, 1078, 7657, 12, 40985, 1525, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 3672, 41876, 269, 34223, 2528, 20147, 13, 628, 198, 220, 220, 220, 300, 85, 62, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 537, 62, 78, 17, 62, 15042, 62, 34223, 2528, 20147, 14804, 2220, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 34223, 2528, 62, 20147, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 3672, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 26801, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 686, 62, 34223, 2528, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 407, 62, 25687, 220, 220, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 7170, 62, 32165, 495, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 513, 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, 7, 705, 18224, 422, 537, 62, 78, 17, 62, 15042, 62, 34223, 2528, 20147, 14804, 2220, 6, 6739, 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, 46911, 1096, 13, 628, 220, 220, 220, 42865, 25, 2376, 62, 34223, 2528, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 78, 17, 62, 15042, 62, 34223, 2528, 20147, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 10459, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 1078, 7657, 41876, 267, 17, 34223, 2528, 35226, 13, 628, 198, 220, 220, 220, 2376, 62, 34223, 2528, 796, 651, 7, 6739, 628, 220, 220, 220, 43979, 62, 1078, 7657, 796, 2376, 62, 34223, 2528, 3784, 1136, 62, 1078, 7657, 7, 6739, 628, 220, 220, 220, 30301, 1503, 25, 43979, 62, 1078, 7657, 12, 9800, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 1078, 7657, 12, 25598, 261, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 1078, 7657, 12, 40985, 1525, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 1078, 7657, 12, 40985, 261, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 1078, 7657, 12, 7959, 4871, 13, 628, 220, 220, 220, 33245, 62, 19875, 3784, 2860, 7, 21628, 62, 3672, 796, 705, 1404, 5446, 9865, 3843, 1546, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45329, 62, 7890, 796, 43979, 62, 1078, 7657, 6739, 628, 220, 220, 220, 300, 85, 62, 10459, 796, 2376, 62, 34223, 2528, 3784, 1136, 62, 10459, 62, 8841, 7, 6739, 628, 220, 220, 220, 6941, 62, 16624, 3784 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS ltcl_run_checks DEFINITION DEFERRED. CLASS zcl_abapgit_file_status DEFINITION LOCAL FRIENDS ltcl_run_checks. CLASS ltcl_util DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL. PUBLIC SECTION. CLASS-METHODS check_contains IMPORTING ii_log TYPE REF TO zif_abapgit_log iv_pattern TYPE string. ENDCLASS. CLASS ltcl_util IMPLEMENTATION. METHOD check_contains. DATA lt_messages TYPE zif_abapgit_log=>ty_log_outs. DATA ls_message LIKE LINE OF lt_messages. DATA lv_contains TYPE abap_bool. lt_messages = ii_log->get_messages( ). LOOP AT lt_messages INTO ls_message. IF ls_message-text CP iv_pattern. lv_contains = abap_true. EXIT. ENDIF. ENDLOOP. cl_abap_unit_assert=>assert_equals( act = lv_contains exp = abap_true ). ENDMETHOD. ENDCLASS. CLASS ltcl_run_checks DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL. PRIVATE SECTION. DATA: mt_results TYPE zif_abapgit_definitions=>ty_results_tt, mo_dot TYPE REF TO zcl_abapgit_dot_abapgit, mi_log TYPE REF TO zif_abapgit_log. METHODS: append_result IMPORTING iv_obj_type TYPE trobjtype iv_obj_name TYPE sobj_name iv_match TYPE abap_bool iv_lstate TYPE char1 iv_rstate TYPE char1 iv_package TYPE devclass iv_path TYPE string iv_filename TYPE string iv_packmove TYPE abap_bool OPTIONAL, setup, positive FOR TESTING RAISING zcx_abapgit_exception, neg_diff_path_for_same_obj FOR TESTING RAISING zcx_abapgit_exception, neg_incorrect_path_vs_pack FOR TESTING RAISING zcx_abapgit_exception, neg_similar_filenames FOR TESTING RAISING zcx_abapgit_exception, neg_empty_filenames FOR TESTING RAISING zcx_abapgit_exception, package_move FOR TESTING RAISING zcx_abapgit_exception, check_namespace FOR TESTING RAISING zcx_abapgit_exception. ENDCLASS. CLASS ltcl_run_checks IMPLEMENTATION. METHOD append_result. DATA ls_result LIKE LINE OF mt_results. ls_result-inactive = abap_false. ls_result-obj_type = iv_obj_type. ls_result-obj_name = iv_obj_name. ls_result-match = iv_match. ls_result-lstate = iv_lstate. ls_result-rstate = iv_rstate. ls_result-package = iv_package. ls_result-path = iv_path. ls_result-filename = iv_filename. ls_result-packmove = iv_packmove. APPEND ls_result TO mt_results. ENDMETHOD. METHOD setup. CREATE OBJECT mi_log TYPE zcl_abapgit_log. mo_dot = zcl_abapgit_dot_abapgit=>build_default( ). mo_dot->set_starting_folder( '/' ). " assumed by unit tests ENDMETHOD. METHOD positive. " 0 Positive append_result( iv_obj_type = 'CLAS' iv_obj_name = 'ZCLASS1' iv_match = ' ' iv_lstate = ' ' iv_rstate = 'A' iv_package = '$Z$' iv_path = '/' iv_filename = 'zclass1.clas.abap' ). append_result( iv_obj_type = 'CLAS' iv_obj_name = 'ZCLASS1' iv_match = 'X' iv_lstate = ' ' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = 'zclass1.clas.xml' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = 'ZDOMA1' iv_match = 'X' iv_lstate = ' ' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = 'zdoma1.doma.xml' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = 'ZDOMA2' iv_match = ' ' iv_lstate = 'M' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = 'zdoma2.doma.xml' ). zcl_abapgit_file_status=>run_checks( ii_log = mi_log it_results = mt_results io_dot = mo_dot iv_top = '$Z$' ). cl_abap_unit_assert=>assert_equals( act = mi_log->count( ) exp = 0 ). ENDMETHOD. METHOD neg_diff_path_for_same_obj. " 1 Negative, different path for same object append_result( iv_obj_type = 'CLAS' iv_obj_name = 'ZCLASS1' iv_match = ' ' iv_lstate = ' ' iv_rstate = 'A' iv_package = '$Z$' iv_path = '/' iv_filename = 'zclass1.clas.abap' ). append_result( iv_obj_type = 'CLAS' iv_obj_name = 'ZCLASS1' iv_match = 'X' iv_lstate = ' ' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/sub' iv_filename = 'zclass1.clas.xml' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = 'ZDOMA1' iv_match = 'X' iv_lstate = ' ' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = 'zdoma1.doma.xml' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = 'ZDOMA2' iv_match = ' ' iv_lstate = 'M' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = 'zdoma2.doma.xml' ). zcl_abapgit_file_status=>run_checks( ii_log = mi_log it_results = mt_results io_dot = mo_dot iv_top = '$Z$' ). " This one is not pure - incorrect path also triggers path vs package check cl_abap_unit_assert=>assert_equals( act = mi_log->count( ) exp = 2 ). ltcl_util=>check_contains( ii_log = mi_log iv_pattern = |Files for object *| ). ENDMETHOD. METHOD neg_incorrect_path_vs_pack. " 2 Negative, incorrect path vs package append_result( iv_obj_type = 'CLAS' iv_obj_name = '$$ZCLASS1' iv_match = ' ' iv_lstate = ' ' iv_rstate = 'A' iv_package = '$Z$' iv_path = '/' iv_filename = '$$zclass1.clas.abap' ). append_result( iv_obj_type = 'CLAS' iv_obj_name = '$$ZCLASS1' iv_match = 'X' iv_lstate = ' ' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = '$$zclass1.clas.xml' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA1' iv_match = 'X' iv_lstate = ' ' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/sub' iv_filename = '$$zdoma1.doma.xml' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA2' iv_match = ' ' iv_lstate = 'M' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = '$$zdoma2.doma.xml' ). zcl_abapgit_file_status=>run_checks( ii_log = mi_log it_results = mt_results io_dot = mo_dot iv_top = '$Z$' ). cl_abap_unit_assert=>assert_equals( act = mi_log->count( ) exp = 1 ). ltcl_util=>check_contains( ii_log = mi_log iv_pattern = |Package and path does not match for object, *| ). ENDMETHOD. METHOD neg_similar_filenames. " 3 Negative, similar filenames append_result( iv_obj_type = 'CLAS' iv_obj_name = '$$ZCLASS1' iv_match = ' ' iv_lstate = ' ' iv_rstate = 'A' iv_package = '$Z$' iv_path = '/' iv_filename = '$$zclass1.clas.abap' ). append_result( iv_obj_type = 'CLAS' iv_obj_name = '$$ZCLASS1' iv_match = 'X' iv_lstate = ' ' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = '$$zclass1.clas.xml' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA1' iv_match = 'X' iv_lstate = ' ' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = '$$zdoma1.doma.xml' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA2' iv_match = ' ' iv_lstate = 'M' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = '$$zdoma1.doma.xml' ). zcl_abapgit_file_status=>run_checks( ii_log = mi_log it_results = mt_results io_dot = mo_dot iv_top = '$Z$' ). cl_abap_unit_assert=>assert_equals( act = mi_log->count( ) exp = 1 ). ltcl_util=>check_contains( ii_log = mi_log iv_pattern = |Multiple files with same filename, *| ). ENDMETHOD. METHOD neg_empty_filenames. " 4 Negative, empty filenames append_result( iv_obj_type = 'CLAS' iv_obj_name = '$$ZCLASS1' iv_match = ' ' iv_lstate = ' ' iv_rstate = 'A' iv_package = '$Z$' iv_path = '/' iv_filename = '$$zclass1.clas.abap' ). append_result( iv_obj_type = 'CLAS' iv_obj_name = '$$ZCLASS1' iv_match = 'X' iv_lstate = ' ' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = '$$zclass1.clas.xml' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA1' iv_match = 'X' iv_lstate = ' ' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = '' ). zcl_abapgit_file_status=>run_checks( ii_log = mi_log it_results = mt_results io_dot = mo_dot iv_top = '$Z$' ). cl_abap_unit_assert=>assert_equals( act = mi_log->count( ) exp = 1 ). ltcl_util=>check_contains( ii_log = mi_log iv_pattern = |Filename is empty for object *| ). ENDMETHOD. METHOD package_move. " 5 Changed package assignment append_result( iv_obj_type = 'CLAS' iv_obj_name = 'ZCLASS1' iv_match = ' ' iv_lstate = ' ' iv_rstate = 'A' iv_package = '$Z$' iv_path = '/' iv_filename = 'zclass1.clas.abap' iv_packmove = 'X' ). append_result( iv_obj_type = 'CLAS' iv_obj_name = 'ZCLASS1' iv_match = ' ' iv_lstate = 'A' iv_rstate = ' ' iv_package = '$Z$SUB' iv_path = '/sub' iv_filename = 'zclass1.clas.abap' iv_packmove = 'X' ). append_result( iv_obj_type = 'CLAS' iv_obj_name = 'ZCLASS1' iv_match = ' ' iv_lstate = ' ' iv_rstate = 'A' iv_package = '$Z$' iv_path = '/' iv_filename = 'zclass1.clas.xml' iv_packmove = 'X' ). append_result( iv_obj_type = 'CLAS' iv_obj_name = 'ZCLASS1' iv_match = ' ' iv_lstate = 'A' iv_rstate = ' ' iv_package = '$Z$SUB' iv_path = '/sub' iv_filename = 'zclass1.clas.xml' iv_packmove = 'X' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = 'ZDOMA1' iv_match = ' ' iv_lstate = 'A' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = 'zdoma1.doma.xml' iv_packmove = 'X' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = 'ZDOMA2' iv_match = ' ' iv_lstate = ' ' iv_rstate = 'A' iv_package = '$Z$SUB' iv_path = '/sub' iv_filename = 'zdoma1.doma.xml' iv_packmove = 'X' ). zcl_abapgit_file_status=>run_checks( ii_log = mi_log it_results = mt_results io_dot = mo_dot iv_top = '$Z$' ). " Three files, but only two msg (for two changed objects) cl_abap_unit_assert=>assert_equals( act = mi_log->count( ) exp = 2 ). ltcl_util=>check_contains( ii_log = mi_log iv_pattern = |Changed package assignment for object*| ). ENDMETHOD. METHOD check_namespace. " 6 Missing namespace append_result( iv_obj_type = 'CLAS' iv_obj_name = '/NOTEXIST/ZCLASS1' iv_match = ' ' iv_lstate = ' ' iv_rstate = 'A' iv_package = '/NOTEXIST/Z' iv_path = '/' iv_filename = '#notexist#zclass1.clas.xml' ). zcl_abapgit_file_status=>run_checks( ii_log = mi_log it_results = mt_results io_dot = mo_dot iv_top = '/NOTEXIST/Z' ). cl_abap_unit_assert=>assert_equals( act = mi_log->count( ) exp = 1 ). ltcl_util=>check_contains( ii_log = mi_log iv_pattern = |Namespace *| ). ENDMETHOD. ENDCLASS. CLASS lcl_status_result DEFINITION. PUBLIC SECTION. METHODS: constructor IMPORTING it_results TYPE zif_abapgit_definitions=>ty_results_tt, get_line IMPORTING iv_line TYPE i RETURNING VALUE(rs_data) TYPE zif_abapgit_definitions=>ty_result, assert_lines IMPORTING iv_lines TYPE i iv_msg TYPE csequence OPTIONAL. PRIVATE SECTION. DATA: mt_results TYPE zif_abapgit_definitions=>ty_results_tt. ENDCLASS. CLASS lcl_status_result IMPLEMENTATION. METHOD constructor. mt_results = it_results. SORT mt_results BY path filename. ENDMETHOD. METHOD get_line. READ TABLE mt_results INDEX iv_line INTO rs_data. cl_abap_unit_assert=>assert_subrc( ). ENDMETHOD. METHOD assert_lines. cl_abap_unit_assert=>assert_equals( act = lines( mt_results ) exp = iv_lines msg = iv_msg ). ENDMETHOD. ENDCLASS. CLASS ltcl_status_helper DEFINITION DEFERRED. CLASS zcl_abapgit_file_status DEFINITION LOCAL FRIENDS ltcl_status_helper. CLASS ltcl_status_helper DEFINITION FOR TESTING. PUBLIC SECTION. INTERFACES: zif_abapgit_tadir. METHODS: constructor, add_tadir IMPORTING iv_obj_type TYPE tadir-object iv_obj_name TYPE tadir-obj_name iv_devclass TYPE tadir-devclass, add_remote IMPORTING iv_path TYPE string DEFAULT '/' iv_filename TYPE string iv_sha1 TYPE zif_abapgit_definitions=>ty_sha1, add_local IMPORTING iv_path TYPE string DEFAULT '/' iv_filename TYPE string iv_sha1 TYPE zif_abapgit_definitions=>ty_sha1 iv_obj_type TYPE tadir-object OPTIONAL iv_obj_name TYPE tadir-obj_name OPTIONAL iv_devclass TYPE devclass DEFAULT '$Z$', add_state IMPORTING iv_path TYPE string DEFAULT '/' iv_filename TYPE string iv_sha1 TYPE zif_abapgit_definitions=>ty_sha1, run IMPORTING iv_devclass TYPE devclass DEFAULT '$Z$' RETURNING VALUE(ro_result) TYPE REF TO lcl_status_result RAISING zcx_abapgit_exception. PRIVATE SECTION. TYPES: BEGIN OF ty_tadir, obj_type TYPE tadir-object, obj_name TYPE tadir-obj_name, devclass TYPE tadir-devclass, END OF ty_tadir. DATA: mt_tadir TYPE STANDARD TABLE OF ty_tadir WITH DEFAULT KEY, mt_local TYPE zif_abapgit_definitions=>ty_files_item_tt, mt_remote TYPE zif_abapgit_definitions=>ty_files_tt, mt_state TYPE zif_abapgit_definitions=>ty_file_signatures_tt. ENDCLASS. CLASS ltcl_status_helper IMPLEMENTATION. METHOD constructor. zcl_abapgit_injector=>set_tadir( me ). ENDMETHOD. METHOD add_tadir. FIELD-SYMBOLS: <ls_tadir> LIKE LINE OF mt_tadir. APPEND INITIAL LINE TO mt_tadir ASSIGNING <ls_tadir>. <ls_tadir>-obj_type = iv_obj_type. <ls_tadir>-obj_name = iv_obj_name. <ls_tadir>-devclass = iv_devclass. ENDMETHOD. METHOD zif_abapgit_tadir~get_object_package. DATA: ls_tadir LIKE LINE OF mt_tadir. IF lines( mt_tadir ) > 0. READ TABLE mt_tadir INTO ls_tadir WITH KEY obj_type = iv_object obj_name = iv_obj_name. cl_abap_unit_assert=>assert_subrc( ). rv_devclass = ls_tadir-devclass. ENDIF. ENDMETHOD. METHOD zif_abapgit_tadir~read. cl_abap_unit_assert=>fail( ). ENDMETHOD. METHOD zif_abapgit_tadir~read_single. cl_abap_unit_assert=>fail( ). ENDMETHOD. METHOD add_remote. FIELD-SYMBOLS: <ls_remote> LIKE LINE OF mt_remote. APPEND INITIAL LINE TO mt_remote ASSIGNING <ls_remote>. <ls_remote>-path = iv_path. <ls_remote>-filename = iv_filename. <ls_remote>-sha1 = iv_sha1. ENDMETHOD. METHOD add_local. FIELD-SYMBOLS: <ls_local> LIKE LINE OF mt_local. APPEND INITIAL LINE TO mt_local ASSIGNING <ls_local>. <ls_local>-item-obj_type = iv_obj_type. <ls_local>-item-obj_name = iv_obj_name. <ls_local>-item-devclass = iv_devclass. <ls_local>-file-path = iv_path. <ls_local>-file-filename = iv_filename. <ls_local>-file-sha1 = iv_sha1. ENDMETHOD. METHOD add_state. FIELD-SYMBOLS: <ls_state> LIKE LINE OF mt_state. APPEND INITIAL LINE TO mt_state ASSIGNING <ls_state>. <ls_state>-path = iv_path. <ls_state>-filename = iv_filename. <ls_state>-sha1 = iv_sha1. ENDMETHOD. METHOD run. DATA: lt_results TYPE zif_abapgit_definitions=>ty_results_tt, lo_dot TYPE REF TO zcl_abapgit_dot_abapgit. lo_dot = zcl_abapgit_dot_abapgit=>build_default( ). lo_dot->set_starting_folder( '/' ). " assumed by unit tests lt_results = zcl_abapgit_file_status=>calculate_status( iv_devclass = iv_devclass io_dot = lo_dot it_local = mt_local it_remote = mt_remote it_cur_state = mt_state ). CREATE OBJECT ro_result EXPORTING it_results = lt_results. ENDMETHOD. ENDCLASS. CLASS ltcl_calculate_status DEFINITION DEFERRED. CLASS zcl_abapgit_file_status DEFINITION LOCAL FRIENDS ltcl_calculate_status. CLASS ltcl_calculate_status DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL. PRIVATE SECTION. DATA: mo_helper TYPE REF TO ltcl_status_helper, mo_result TYPE REF TO lcl_status_result. METHODS: setup, complete_local, complete_remote, complete_state, only_remote FOR TESTING RAISING zcx_abapgit_exception, only_local FOR TESTING RAISING zcx_abapgit_exception, match FOR TESTING RAISING zcx_abapgit_exception, diff FOR TESTING RAISING zcx_abapgit_exception, moved FOR TESTING RAISING zcx_abapgit_exception, local_outside_main FOR TESTING RAISING zcx_abapgit_exception, complete FOR TESTING RAISING zcx_abapgit_exception, only_local2 FOR TESTING RAISING zcx_abapgit_exception, only_remote2 FOR TESTING RAISING zcx_abapgit_exception, only_remote3 FOR TESTING RAISING zcx_abapgit_exception. ENDCLASS. CLASS ltcl_calculate_status IMPLEMENTATION. METHOD setup. CREATE OBJECT mo_helper. ENDMETHOD. METHOD moved. mo_helper->add_local( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA1' iv_filename = '$$zdoma1.doma.xml' iv_path = '/foo/' iv_devclass = 'FOO' iv_sha1 = 'D1' ). mo_helper->add_remote( iv_filename = '$$zdoma1.doma.xml' iv_path = '/bar/' iv_sha1 = 'D1' ). mo_helper->add_tadir( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA1' iv_devclass = 'FOO' ). mo_result = mo_helper->run( iv_devclass = 'FOO' ). mo_result->assert_lines( iv_lines = 2 iv_msg = 'there must be a status calculated for both files, they are in different folders' ). ENDMETHOD. METHOD only_remote. mo_helper->add_remote( iv_filename = '$$zdoma1.doma.xml' iv_sha1 = 'D1' ). mo_result = mo_helper->run( ). mo_result->assert_lines( 1 ). cl_abap_unit_assert=>assert_equals( act = mo_result->get_line( 1 )-rstate exp = zif_abapgit_definitions=>c_state-added ). ENDMETHOD. METHOD only_local. mo_helper->add_local( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA1' iv_filename = '$$zdoma1.doma.xml' iv_sha1 = 'D1' ). mo_result = mo_helper->run( ). mo_result->assert_lines( 1 ). cl_abap_unit_assert=>assert_equals( act = mo_result->get_line( 1 )-lstate exp = zif_abapgit_definitions=>c_state-added ). ENDMETHOD. METHOD match. mo_helper->add_local( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA1' iv_filename = '$$zdoma1.doma.xml' iv_sha1 = 'D1' ). mo_helper->add_remote( iv_filename = '$$zdoma1.doma.xml' iv_sha1 = 'D1' ). mo_result = mo_helper->run( ). mo_result->assert_lines( 1 ). cl_abap_unit_assert=>assert_equals( act = mo_result->get_line( 1 )-match exp = abap_true ). ENDMETHOD. METHOD diff. mo_helper->add_local( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA1' iv_filename = '$$zdoma1.doma.xml' iv_sha1 = '12345' ). mo_helper->add_remote( iv_filename = '$$zdoma1.doma.xml' iv_sha1 = '54321' ). mo_result = mo_helper->run( ). mo_result->assert_lines( 1 ). cl_abap_unit_assert=>assert_equals( act = mo_result->get_line( 1 )-lstate exp = zif_abapgit_definitions=>c_state-modified ). cl_abap_unit_assert=>assert_equals( act = mo_result->get_line( 1 )-rstate exp = zif_abapgit_definitions=>c_state-modified ). ENDMETHOD. METHOD local_outside_main. mo_helper->add_tadir( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA1' iv_devclass = '$OUTSIDE$' ). mo_helper->add_remote( iv_filename = '$$zdoma1.doma.xml' iv_sha1 = '54321' ). mo_result = mo_helper->run( ). mo_result->assert_lines( 1 ). " it should appear as not existing locally cl_abap_unit_assert=>assert_equals( act = mo_result->get_line( 1 )-rstate exp = zif_abapgit_definitions=>c_state-added ). ENDMETHOD. METHOD complete_local. mo_helper->add_local( iv_path = '/' iv_filename = '.abapgit.xml' iv_sha1 = '1017' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_created_locally.prog.abap' iv_sha1 = '1001' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_created_locally.prog.xml' iv_sha1 = '1022' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_deleted_remotely.prog.abap' iv_sha1 = '1016' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_deleted_remotely.prog.xml' iv_sha1 = '1003' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_modified_both.prog.abap' iv_sha1 = '1028' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_modified_both.prog.xml' iv_sha1 = '1032' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_modified_locally.prog.abap' iv_sha1 = '1023' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_modified_locally.prog.xml' iv_sha1 = '1033' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_modified_remotely.prog.abap' iv_sha1 = '1018' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_modified_remotely.prog.xml' iv_sha1 = '1011' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_mod_del.prog.abap' iv_sha1 = '1012' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_mod_del.prog.xml' iv_sha1 = '1006' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'package.devc.xml' iv_sha1 = '1027' ). mo_helper->add_local( iv_path = '/src/sub/' iv_filename = 'ztest_move_package.prog.xml' iv_sha1 = '1040' ). mo_helper->add_local( iv_path = '/src/sub/' iv_filename = 'package.devc.xml' iv_sha1 = '1041' ). mo_helper->add_local( iv_path = '/src/sub/' iv_filename = 'ztest_move_package_w_change.prog.xml' iv_sha1 = '1042' ). ENDMETHOD. METHOD complete_remote. mo_helper->add_remote( iv_path = '/' iv_filename = '.abapgit.xml' iv_sha1 = '1017' ). mo_helper->add_remote( iv_path = '/' iv_filename = 'README.md' iv_sha1 = '1007' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'package.devc.xml' iv_sha1 = '1027' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_created_remotely.prog.abap' iv_sha1 = '1025' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_created_remotely.prog.xml' iv_sha1 = '1015' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_del_mod.prog.abap' iv_sha1 = '1024' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_del_mod.prog.xml' iv_sha1 = '1013' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_deleted_locally.prog.abap' iv_sha1 = '1008' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_deleted_locally.prog.xml' iv_sha1 = '1009' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_modified_both.prog.abap' iv_sha1 = '1002' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_modified_both.prog.xml' iv_sha1 = '1030' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_modified_locally.prog.abap' iv_sha1 = '1026' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_modified_locally.prog.xml' iv_sha1 = '1021' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_modified_remotely.prog.abap' iv_sha1 = '1019' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_modified_remotely.prog.xml' iv_sha1 = '1031' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_move_package.prog.xml' iv_sha1 = '1040' ). mo_helper->add_remote( iv_path = '/src/sub/' iv_filename = 'package.devc.xml' iv_sha1 = '1041' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_move_package_w_change.prog.xml' iv_sha1 = '2042' ). ENDMETHOD. METHOD complete_state. mo_helper->add_state( iv_path = '/' iv_filename = '.abapgit.xml' iv_sha1 = '1017' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'package.devc.xml' iv_sha1 = '1027' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_deleted_locally.prog.abap' iv_sha1 = '1008' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_deleted_locally.prog.xml' iv_sha1 = '1009' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_deleted_remotely.prog.abap' iv_sha1 = '1016' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_deleted_remotely.prog.xml' iv_sha1 = '1003' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_del_mod.prog.abap' iv_sha1 = '1020' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_del_mod.prog.xml' iv_sha1 = '1029' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_modified_both.prog.abap' iv_sha1 = '1010' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_modified_both.prog.xml' iv_sha1 = '1004' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_modified_locally.prog.abap' iv_sha1 = '1026' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_modified_locally.prog.xml' iv_sha1 = '1021' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_modified_remotely.prog.abap' iv_sha1 = '1018' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_modified_remotely.prog.xml' iv_sha1 = '1011' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_mod_del.prog.abap' iv_sha1 = '1014' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_mod_del.prog.xml' iv_sha1 = '1005' ). mo_helper->add_state( iv_path = '/src/sub/' iv_filename = 'ztest_move_package.prog.xml' iv_sha1 = '1040' ). mo_helper->add_state( iv_path = '/src/sub/' iv_filename = 'package.devc.xml' iv_sha1 = '1041' ). mo_helper->add_state( iv_path = '/src/sub/' iv_filename = 'ztest_move_package_w_change.prog.xml' iv_sha1 = '1042' ). ENDMETHOD. METHOD complete. DATA: ls_line TYPE zif_abapgit_definitions=>ty_result, lv_act TYPE c LENGTH 4, lv_exp TYPE c LENGTH 4. complete_local( ). complete_remote( ). complete_state( ). mo_result = mo_helper->run( ). mo_result->assert_lines( 26 ). DO 26 TIMES. ls_line = mo_result->get_line( sy-index ). lv_act+0(1) = ls_line-match. lv_act+1(1) = ls_line-lstate. lv_act+2(1) = ls_line-rstate. lv_act+3(1) = ls_line-packmove. CASE sy-index. WHEN 1. lv_exp = 'X '. " no changes WHEN 2. lv_exp = ' A'. " add remote WHEN 3. lv_exp = 'X '. " no change WHEN 4 OR 5. lv_exp = ' A '. " add local WHEN 6 OR 7. lv_exp = ' A'. " add remote WHEN 8 OR 9. lv_exp = ' DM'. " delete local, modify remote WHEN 10 OR 11. lv_exp = ' D '. " delete local WHEN 12 OR 13. lv_exp = ' D'. " delete remote WHEN 14 OR 15. lv_exp = ' MD'. " modify local, delete remote WHEN 16 OR 17. lv_exp = ' MM'. " modify both sides WHEN 18 OR 19. lv_exp = ' M '. " modify local WHEN 20 OR 21. lv_exp = ' M'. " modify remote WHEN 22. lv_exp = ' D X'. " package move (no change) WHEN 23. lv_exp = ' D '. " package move with change WHEN 24. lv_exp = 'X '. " no chagen WHEN 25. lv_exp = ' A X'. " package move (no change) WHEN 26. lv_exp = ' A '. " package move with change ENDCASE. cl_abap_unit_assert=>assert_equals( act = lv_act exp = lv_exp msg = |Line { sy-index }: { ls_line-filename }| ). ENDDO. ENDMETHOD. METHOD only_local2. mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_deleted_remotely.prog.abap' iv_sha1 = '1016' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_deleted_remotely.prog.abap' iv_sha1 = '2016' ). " different checksum mo_result = mo_helper->run( ). mo_result->assert_lines( 1 ). " it should appear as deleted remotely cl_abap_unit_assert=>assert_equals( act = mo_result->get_line( 1 )-lstate exp = zif_abapgit_definitions=>c_state-added ). ENDMETHOD. METHOD only_remote2. " Add local class implementation mo_helper->add_local( iv_path = '/src/sub/' iv_obj_name = 'ZCL_CLAS' iv_obj_type = 'CLAS' iv_filename = 'zcl_clas.clas.abap' iv_sha1 = '112233' ). mo_helper->add_remote( iv_path = '/src/sub/' iv_filename = 'zcl_clas.clas.abap' iv_sha1 = '332211' ). mo_helper->add_remote( iv_path = '/src/sub/' iv_filename = 'zcl_clas.clas.locals_imp.abap' iv_sha1 = '1111' ). mo_helper->add_state( iv_path = '/src/sub/' iv_filename = 'zcl_clas.clas.locals_imp.abap' iv_sha1 = '1111' ). mo_result = mo_helper->run( iv_devclass = '$DIFFERENT' ). mo_result->assert_lines( 2 ). cl_abap_unit_assert=>assert_equals( act = mo_result->get_line( 2 )-match exp = abap_false ). ENDMETHOD. METHOD only_remote3. " Add subpackage remotely mo_helper->add_local( iv_path = '/src/' iv_obj_name = '$DIFFERENT' iv_obj_type = 'DEVC' iv_filename = 'package.devc.xml' iv_sha1 = '112233' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'package.devc.xml' iv_sha1 = '112233' ). mo_helper->add_remote( iv_path = '/src/sub/' iv_filename = 'package.devc.xml' iv_sha1 = '332211' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'package.devc.xml' iv_sha1 = '112233' ). mo_result = mo_helper->run( iv_devclass = '$DIFFERENT' ). mo_result->assert_lines( 2 ). " main package matches cl_abap_unit_assert=>assert_equals( act = mo_result->get_line( 1 )-match exp = abap_true ). " subpackage should appear as added remotely cl_abap_unit_assert=>assert_equals( act = mo_result->get_line( 2 )-lstate exp = zif_abapgit_definitions=>c_state-unchanged ). cl_abap_unit_assert=>assert_equals( act = mo_result->get_line( 2 )-rstate exp = zif_abapgit_definitions=>c_state-added ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 83, 565, 62, 5143, 62, 42116, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 7753, 62, 13376, 5550, 20032, 17941, 37347, 1847, 48167, 1677, 5258, 300, 83, 565, 62, 5143, 62, 42116, 13, 198, 198, 31631, 300, 83, 565, 62, 22602, 5550, 20032, 17941, 7473, 43001, 2751, 45698, 42, 49277, 43638, 5805, 7597, 360, 4261, 6234, 6006, 9863, 25261, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 2198, 62, 3642, 1299, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 6404, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 33279, 41876, 4731, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 22602, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 2198, 62, 3642, 1299, 13, 198, 220, 220, 220, 42865, 300, 83, 62, 37348, 1095, 41876, 1976, 361, 62, 397, 499, 18300, 62, 6404, 14804, 774, 62, 6404, 62, 5269, 13, 198, 220, 220, 220, 42865, 43979, 62, 20500, 34178, 48920, 3963, 300, 83, 62, 37348, 1095, 13, 198, 220, 220, 220, 42865, 300, 85, 62, 3642, 1299, 41876, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 300, 83, 62, 37348, 1095, 796, 21065, 62, 6404, 3784, 1136, 62, 37348, 1095, 7, 6739, 198, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 37348, 1095, 39319, 43979, 62, 20500, 13, 198, 220, 220, 220, 220, 220, 16876, 43979, 62, 20500, 12, 5239, 16932, 21628, 62, 33279, 13, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 3642, 1299, 796, 450, 499, 62, 7942, 13, 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, 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, 3642, 1299, 198, 220, 220, 220, 220, 220, 1033, 796, 450, 499, 62, 7942, 6739, 628, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 5143, 62, 42116, 5550, 20032, 17941, 7473, 43001, 2751, 45698, 42, 49277, 43638, 5805, 7597, 198, 220, 360, 4261, 6234, 6006, 9863, 25261, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 45079, 62, 43420, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 43420, 62, 926, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6941, 62, 26518, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21504, 62, 6404, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 24443, 62, 20274, 30023, 9863, 2751, 21628, 62, 26801, 62, 4906, 41876, 4161, 50007, 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, 21628, 62, 26801, 62, 3672, 41876, 27355, 73, 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, 21628, 62, 15699, 220, 220, 220, 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, 21628, 62, 75, 5219, 220, 220, 41876, 1149, 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, 21628, 62, 81, 5219, 220, 220, 41876, 1149, 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, 21628, 62, 26495, 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, 21628, 62, 6978, 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, 21628, 62, 34345, 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, 21628, 62, 8002, 21084, 41876, 450, 499, 62, 30388, 39852, 2849, 1847, 11, 198, 220, 220, 220, 220, 220, 9058, 11, 198, 220, 220, 220, 220, 220, 3967, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 2469, 62, 26069, 62, 6978, 62, 1640, 62, 31642, 62, 26801, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 2469, 62, 1939, 47315, 62, 6978, 62, 14259, 62, 8002, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 2469, 62, 38610, 62, 10379, 268, 1047, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 2469, 62, 28920, 62,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_ucsa DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. PROTECTED SECTION. PRIVATE SECTION. CONSTANTS: BEGIN OF c_version, active TYPE r3state VALUE 'A', inactive TYPE r3state VALUE 'I', END OF c_version . TYPES: ty_id TYPE c LENGTH 30. METHODS: get_persistence IMPORTING iv_id TYPE ty_id RETURNING VALUE(ro_persistence) TYPE REF TO object, clear_dynamic_fields CHANGING cg_complete_comm_assembly TYPE any, clear_field IMPORTING iv_fieldname TYPE csequence CHANGING cg_header TYPE any. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_UCSA IMPLEMENTATION. METHOD clear_dynamic_fields. FIELD-SYMBOLS: <lg_header> TYPE any. ASSIGN COMPONENT 'HEADER' OF STRUCTURE cg_complete_comm_assembly TO <lg_header>. ASSERT sy-subrc = 0. clear_field( EXPORTING iv_fieldname = 'CREATEDBY' CHANGING cg_header = <lg_header> ). clear_field( EXPORTING iv_fieldname = 'CREATEDON' CHANGING cg_header = <lg_header> ). clear_field( EXPORTING iv_fieldname = 'CREATEDAT' CHANGING cg_header = <lg_header> ). clear_field( EXPORTING iv_fieldname = 'CHANGEDBY' CHANGING cg_header = <lg_header> ). clear_field( EXPORTING iv_fieldname = 'CHANGEDON' CHANGING cg_header = <lg_header> ). clear_field( EXPORTING iv_fieldname = 'CHANGEDAT' CHANGING cg_header = <lg_header> ). ENDMETHOD. METHOD clear_field. FIELD-SYMBOLS: <lg_field> TYPE any. ASSIGN COMPONENT iv_fieldname OF STRUCTURE cg_header TO <lg_field>. ASSERT sy-subrc = 0. CLEAR <lg_field>. ENDMETHOD. METHOD get_persistence. CALL METHOD ('CL_UCON_SA_DB_PERSIST')=>('IF_UCON_SA_PERSIST~GET_INSTANCE') EXPORTING id = iv_id RECEIVING instance = ro_persistence. ENDMETHOD. METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_id TYPE ty_id, lx_root TYPE REF TO cx_root, lv_text TYPE string, lo_persistence TYPE REF TO object. TRY. lv_id = ms_item-obj_name. lo_persistence = get_persistence( lv_id ). CALL METHOD lo_persistence->('IF_UCON_SA_PERSIST~DELETE') EXPORTING version = c_version-active. CATCH cx_root INTO lx_root. lv_text = lx_root->get_text( ). zcx_abapgit_exception=>raise( lv_text ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lv_id TYPE ty_id, lx_root TYPE REF TO cx_root, lv_text TYPE string, lo_persistence TYPE REF TO object, lr_complete_comm_assembly TYPE REF TO data. FIELD-SYMBOLS: <lg_complete_comm_assembly> TYPE any. TRY. CREATE DATA lr_complete_comm_assembly TYPE ('UCONSERVASCOMPLETE'). ASSIGN lr_complete_comm_assembly->* TO <lg_complete_comm_assembly>. ASSERT sy-subrc = 0. io_xml->read( EXPORTING iv_name = 'UCSA' CHANGING cg_data = <lg_complete_comm_assembly> ). lv_id = ms_item-obj_name. lo_persistence = get_persistence( lv_id ). CALL METHOD lo_persistence->('IF_UCON_SA_PERSIST~CREATE'). CALL METHOD lo_persistence->('IF_UCON_SA_PERSIST~SAVE') EXPORTING sa = <lg_complete_comm_assembly> version = c_version-active. tadir_insert( iv_package ). CATCH cx_root INTO lx_root. lv_text = lx_root->get_text( ). zcx_abapgit_exception=>raise( lv_text ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_id TYPE ty_id, lo_persistence TYPE REF TO object. lv_id = ms_item-obj_name. TRY. lo_persistence = get_persistence( lv_id ). " Interface IF_UCON_SA_PERSIST and other objects are not present " in lower Netweaver realeses. Therefore we have to call them " dynamically to be downward comapatible. CALL METHOD lo_persistence->('IF_UCON_SA_PERSIST~LOAD') EXPORTING version = c_version-active language = sy-langu. CATCH cx_root. rv_bool = abap_false. RETURN. ENDTRY. rv_bool = abap_true. ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. DATA: ls_meta TYPE zif_abapgit_definitions=>ty_metadata. ls_meta = get_metadata( ). IF ls_meta-late_deser = abap_true. APPEND zif_abapgit_object=>gc_step_id-late TO rt_steps. ELSEIF ls_meta-ddic = abap_true. APPEND zif_abapgit_object=>gc_step_id-ddic TO rt_steps. ELSE. APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps. ENDIF. 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. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ms_item-obj_name object_type = ms_item-obj_type in_new_window = abap_true EXCEPTIONS not_executed = 1 invalid_object_type = 2 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from RS_TOOL_ACCESS' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_id TYPE ty_id, lx_root TYPE REF TO cx_root, lv_text TYPE string, lo_persistence TYPE REF TO object, lr_complete_comm_assembly TYPE REF TO data. FIELD-SYMBOLS: <lg_complete_comm_assembly> TYPE any. lv_id = ms_item-obj_name. TRY. CREATE DATA lr_complete_comm_assembly TYPE ('UCONSERVASCOMPLETE'). ASSIGN lr_complete_comm_assembly->* TO <lg_complete_comm_assembly>. ASSERT sy-subrc = 0. lo_persistence = get_persistence( lv_id ). CALL METHOD lo_persistence->('IF_UCON_SA_PERSIST~LOAD') EXPORTING version = c_version-active language = sy-langu IMPORTING sa = <lg_complete_comm_assembly>. clear_dynamic_fields( CHANGING cg_complete_comm_assembly = <lg_complete_comm_assembly> ). io_xml->add( iv_name = 'UCSA' ig_data = <lg_complete_comm_assembly> ). CATCH cx_root INTO lx_root. lv_text = lx_root->get_text( ). zcx_abapgit_exception=>raise( lv_text ). ENDTRY. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 1229, 11400, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 347, 43312, 3963, 269, 62, 9641, 11, 198, 220, 220, 220, 220, 220, 4075, 220, 220, 41876, 374, 18, 5219, 26173, 8924, 705, 32, 3256, 198, 220, 220, 220, 220, 220, 28621, 41876, 374, 18, 5219, 26173, 8924, 705, 40, 3256, 198, 220, 220, 220, 23578, 3963, 269, 62, 9641, 764, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 312, 41876, 269, 406, 49494, 1542, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 651, 62, 19276, 13274, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 312, 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, 19276, 13274, 8, 41876, 4526, 37, 5390, 2134, 11, 628, 220, 220, 220, 220, 220, 1598, 62, 67, 28995, 62, 25747, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 70, 62, 20751, 62, 9503, 62, 41873, 41876, 597, 11, 628, 220, 220, 220, 220, 220, 1598, 62, 3245, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3245, 3672, 41876, 269, 43167, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 70, 62, 25677, 220, 220, 220, 41876, 597, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 9598, 4090, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1598, 62, 67, 28995, 62, 25747, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 75, 70, 62, 25677, 29, 41876, 597, 13, 628, 198, 220, 220, 220, 24994, 16284, 24301, 1340, 3525, 705, 37682, 1137, 6, 3963, 19269, 18415, 11335, 269, 70, 62, 20751, 62, 9503, 62, 41873, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5390, 1279, 75, 70, 62, 25677, 28401, 198, 220, 220, 220, 24994, 17395, 827, 12, 7266, 6015, 796, 657, 13, 628, 220, 220, 220, 1598, 62, 3245, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 21628, 62, 3245, 3672, 796, 705, 43387, 11617, 17513, 6, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 25677, 220, 220, 220, 796, 1279, 75, 70, 62, 25677, 29, 6739, 628, 220, 220, 220, 1598, 62, 3245, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 21628, 62, 3245, 3672, 796, 705, 43387, 11617, 1340, 6, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 25677, 220, 220, 220, 796, 1279, 75, 70, 62, 25677, 29, 6739, 628, 220, 220, 220, 1598, 62, 3245, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 21628, 62, 3245, 3672, 796, 705, 43387, 11617, 1404, 6, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 25677, 220, 220, 220, 796, 1279, 75, 70, 62, 25677, 29, 6739, 628, 220, 220, 220, 1598, 62, 3245, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 21628, 62, 3245, 3672, 796, 705, 3398, 15567, 1961, 17513, 6, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 25677, 220, 220, 220, 796, 1279, 75, 70, 62, 25677, 29, 6739, 628, 220, 220, 220, 1598, 62, 3245, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 21628, 62, 3245, 3672, 796, 705, 3398, 15567, 1961, 1340, 6, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 25677, 220, 220, 220, 796, 1279, 75, 70, 62, 25677, 29, 6739, 628, 220, 220, 220, 1598, 62, 3245, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 21628, 62, 3245, 3672, 796, 705, 3398, 15567, 1961, 1404, 6, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 25677, 220, 220, 220, 796, 1279, 75, 70, 62, 25677, 29, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1598, 62, 3245, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 75, 70, 62, 3245, 29, 41876, 597, 13, 628, 220, 220, 220, 24994, 16284, 24301, 1340, 3525, 21628, 62, 3245, 3672, 3963, 19269, 18415, 11335, 269, 70, 62, 25677, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5390, 1279, 75, 70, 62, 3245, 28401, 198, 220, 220, 220, 24994, 17395, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 30301, 1503, 1279, 75, 70, 62, 3245, 28401, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 19276, 13274, 13, 628, 220, 220, 220, 42815, 337, 36252, 19203, 5097, 62, 9598, 1340, 62, 4090, 62, 11012, 62, 47, 4877, 8808, 11537, 14804, 10786, 5064, 62, 9598, 1340, 62, 4090, 62, 47, 4877, 8808, 93, 18851, 62, 38604, 19240, 11537, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 312, 198, 220, 220, 220, 220, 220, 19644, 36, 3824, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 4554, 796, 686, 62, 19276, 13274, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 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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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 ]
CLASS ltcl_test DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS FINAL. PUBLIC SECTION. PROTECTED SECTION. PRIVATE SECTION. DATA mo_cut TYPE REF TO ycl_advent2020_day21. DATA m_input TYPE string_table. METHODS setup. METHODS given_the_example. METHODS given_the_input. METHODS part_one_example FOR TESTING. METHODS part_one_input FOR TESTING. METHODS part_two_example FOR TESTING. METHODS part_two_input FOR TESTING. ENDCLASS. CLASS ltcl_test IMPLEMENTATION. METHOD setup. mo_cut = NEW #( ). ENDMETHOD. METHOD part_one_example. given_the_example( ). DATA(act) = mo_cut->solve_part_one( input = m_input ). cl_abap_unit_assert=>assert_equals( exp = -1 act = act ). ENDMETHOD. METHOD part_one_input. given_the_input( ). DATA(act) = mo_cut->solve_part_one( input = m_input ). cl_abap_unit_assert=>assert_equals( exp = -1 act = act ). ENDMETHOD. METHOD part_two_example. given_the_example( ). DATA(act) = mo_cut->solve_part_two( input = m_input ). cl_abap_unit_assert=>assert_equals( exp = -1 act = act ). ENDMETHOD. METHOD part_two_input. given_the_input( ). DATA(act) = mo_cut->solve_part_two( input = m_input ). cl_abap_unit_assert=>assert_equals( exp = -1 act = act ). ENDMETHOD. METHOD given_the_example. m_input = VALUE #( ). ENDMETHOD. METHOD given_the_input. m_input = VALUE #( ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 83, 565, 62, 9288, 5550, 20032, 17941, 7473, 43001, 2751, 198, 220, 360, 4261, 6234, 6006, 9863, 198, 220, 45698, 42, 49277, 43638, 5805, 7597, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 6941, 62, 8968, 41876, 4526, 37, 5390, 331, 565, 62, 324, 1151, 42334, 62, 820, 2481, 13, 198, 220, 220, 220, 42865, 285, 62, 15414, 41876, 4731, 62, 11487, 13, 628, 220, 220, 220, 337, 36252, 50, 9058, 13, 198, 220, 220, 220, 337, 36252, 50, 1813, 62, 1169, 62, 20688, 13, 198, 220, 220, 220, 337, 36252, 50, 1813, 62, 1169, 62, 15414, 13, 628, 220, 220, 220, 337, 36252, 50, 636, 62, 505, 62, 20688, 7473, 43001, 2751, 13, 198, 220, 220, 220, 337, 36252, 50, 636, 62, 505, 62, 15414, 7473, 43001, 2751, 13, 628, 220, 220, 220, 337, 36252, 50, 636, 62, 11545, 62, 20688, 7473, 43001, 2751, 13, 198, 220, 220, 220, 337, 36252, 50, 636, 62, 11545, 62, 15414, 7473, 43001, 2751, 13, 628, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 9288, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 9058, 13, 198, 220, 220, 220, 6941, 62, 8968, 796, 12682, 1303, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 636, 62, 505, 62, 20688, 13, 198, 220, 220, 220, 1813, 62, 1169, 62, 20688, 7, 6739, 198, 220, 220, 220, 42865, 7, 529, 8, 796, 6941, 62, 8968, 3784, 82, 6442, 62, 3911, 62, 505, 7, 5128, 796, 285, 62, 15414, 6739, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 1033, 796, 532, 16, 719, 796, 719, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 636, 62, 505, 62, 15414, 13, 198, 220, 220, 220, 1813, 62, 1169, 62, 15414, 7, 6739, 198, 220, 220, 220, 42865, 7, 529, 8, 796, 6941, 62, 8968, 3784, 82, 6442, 62, 3911, 62, 505, 7, 5128, 796, 285, 62, 15414, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 1033, 796, 532, 16, 719, 796, 719, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 636, 62, 11545, 62, 20688, 13, 198, 220, 220, 220, 1813, 62, 1169, 62, 20688, 7, 6739, 198, 220, 220, 220, 42865, 7, 529, 8, 796, 6941, 62, 8968, 3784, 82, 6442, 62, 3911, 62, 11545, 7, 5128, 796, 285, 62, 15414, 6739, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 1033, 796, 532, 16, 719, 796, 719, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 636, 62, 11545, 62, 15414, 13, 198, 220, 220, 220, 1813, 62, 1169, 62, 15414, 7, 6739, 198, 220, 220, 220, 42865, 7, 529, 8, 796, 6941, 62, 8968, 3784, 82, 6442, 62, 3911, 62, 11545, 7, 5128, 796, 285, 62, 15414, 6739, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 1033, 796, 532, 16, 719, 796, 719, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1813, 62, 1169, 62, 20688, 13, 198, 220, 220, 220, 285, 62, 15414, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1813, 62, 1169, 62, 15414, 13, 198, 220, 220, 220, 285, 62, 15414, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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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"! 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/TRAVEL23 "! @parameter et_booking | Table of evaluated Bookings like /DMO/BOOKING23 "! @parameter et_booking_supplement | Table of evaluated Booking Supplements like /DMO/BOOK_SUP_23 "! @parameter et_messages | Table of occurred messages "! FUNCTION /DMO/FLIGHT_TRAVEL_UPDATE23. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" REFERENCE(IS_TRAVEL) TYPE /DMO/IF_FLIGHT_LEGACY23=>TS_TRAVEL_IN *" REFERENCE(IS_TRAVELX) TYPE /DMO/IF_FLIGHT_LEGACY23=>TS_TRAVEL_INX *" REFERENCE(IT_BOOKING) TYPE /DMO/IF_FLIGHT_LEGACY23=>TT_BOOKING_IN *" OPTIONAL *" REFERENCE(IT_BOOKINGX) TYPE *" /DMO/IF_FLIGHT_LEGACY23=>TT_BOOKING_INX OPTIONAL *" REFERENCE(IT_BOOKING_SUPPLEMENT) TYPE *" /DMO/IF_FLIGHT_LEGACY23=>TT_BOOKING_SUPPLEMENT_IN OPTIONAL *" REFERENCE(IT_BOOKING_SUPPLEMENTX) TYPE *" /DMO/IF_FLIGHT_LEGACY23=>TT_BOOKING_SUPPLEMENT_INX OPTIONAL *" EXPORTING *" REFERENCE(ES_TRAVEL) TYPE /DMO/TRAVEL23 *" REFERENCE(ET_BOOKING) TYPE /DMO/IF_FLIGHT_LEGACY23=>TT_BOOKING *" REFERENCE(ET_BOOKING_SUPPLEMENT) TYPE *" /DMO/IF_FLIGHT_LEGACY23=>TT_BOOKING_SUPPLEMENT *" REFERENCE(ET_MESSAGES) TYPE /DMO/IF_FLIGHT_LEGACY23=>TT_MESSAGE *"---------------------------------------------------------------------- CLEAR es_travel. CLEAR et_booking. CLEAR et_booking_supplement. CLEAR et_messages. /dmo/cl_flight_legacy23=>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_legacy23=>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, 1954, 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, 1954, 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, 1954, 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, 1954, 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, 1954, 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, 1954, 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, 1954, 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, 1954, 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, 1954, 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, 1954, 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, 1954, 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, 1954, 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, 1954, 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, 1954, 14804, 15751, 62, 44, 1546, 4090, 8264, 198, 9, 1, 10097, 23031, 198, 220, 30301, 1503, 1658, 62, 35927, 13, 198, 220, 30301, 1503, 2123 ]
[ 1, 1, 1, 1, 1, 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public inheriting from zcl_aps_task final create private global friends zcl_aps_task_factory. public section. methods: zif_aps_task~start redefinition. protected section. private section. endclass. class zcl_aps_task_object implementation. method zif_aps_task~start. data: executableObject type ref to zcl_aps_executable_object. data(classnameOfExecutable) = conv classname( settings->getNameOfExecutable( ) ). " This one is specified in the customizing. " We definitely have to be sure it is of the right type select single @abap_true from seometarel where clsname eq @classnameOfExecutable and refclsname eq 'ZCL_APS_EXECUTABLE_OBJECT' and reltype eq '2' " inheriting from into @data(inheritsFromAPSTask). if sy-subrc ne 0. data(errorInvalidClass) = new zcx_aps_task_invalid_class( ). raise exception type zcx_aps_executable_call_error exporting i_previous = errorInvalidClass. endif. loop at packageToBeProcessed-selections into data(parameterSet). try. create object executableObject type (classnameOfExecutable) exporting i_parameterSet = cast zif_aps_parameterset_object( parameterSet ). executableObject->start( ). catch cx_sy_move_cast_error cx_sy_create_object_error into data(previousInstanciationError). data(instanciationError) = new zcx_aps_task_instanciation_err( i_previous = previousInstanciationError i_classname = classnameOfExecutable ). raise exception type zcx_aps_executable_call_error exporting i_previous = instanciationError. endtry. endloop. endmethod. endclass.
[ 4871, 1976, 565, 62, 1686, 62, 35943, 62, 15252, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1976, 565, 62, 1686, 62, 35943, 198, 220, 2457, 198, 220, 2251, 2839, 198, 220, 3298, 2460, 1976, 565, 62, 1686, 62, 35943, 62, 69, 9548, 13, 628, 220, 1171, 2665, 13, 198, 220, 220, 220, 5050, 25, 198, 220, 220, 220, 220, 220, 1976, 361, 62, 1686, 62, 35943, 93, 9688, 34087, 17750, 13, 198, 220, 6861, 2665, 13, 198, 220, 2839, 2665, 13, 198, 437, 4871, 13, 628, 198, 198, 4871, 1976, 565, 62, 1686, 62, 35943, 62, 15252, 7822, 13, 198, 220, 2446, 1976, 361, 62, 1686, 62, 35943, 93, 9688, 13, 198, 220, 220, 220, 1366, 25, 198, 220, 220, 220, 220, 220, 28883, 10267, 2099, 1006, 284, 1976, 565, 62, 1686, 62, 18558, 18187, 62, 15252, 13, 628, 220, 220, 220, 1366, 7, 4871, 3672, 5189, 23002, 18187, 8, 796, 3063, 1398, 3672, 7, 6460, 3784, 1136, 5376, 5189, 23002, 18187, 7, 1267, 6739, 628, 220, 220, 220, 366, 770, 530, 318, 7368, 287, 262, 2183, 2890, 13, 198, 220, 220, 220, 366, 775, 4753, 423, 284, 307, 1654, 340, 318, 286, 262, 826, 2099, 198, 220, 220, 220, 2922, 2060, 2488, 397, 499, 62, 7942, 198, 220, 220, 220, 422, 384, 908, 20318, 198, 220, 220, 220, 810, 537, 82, 3672, 220, 220, 220, 220, 37430, 2488, 4871, 3672, 5189, 23002, 18187, 198, 220, 220, 220, 220, 220, 290, 1006, 565, 82, 3672, 220, 37430, 705, 57, 5097, 62, 44580, 62, 6369, 2943, 3843, 17534, 62, 9864, 23680, 6, 198, 220, 220, 220, 220, 220, 290, 823, 4906, 220, 220, 220, 220, 37430, 705, 17, 6, 220, 220, 220, 366, 10639, 1780, 422, 198, 220, 220, 220, 656, 2488, 7890, 7, 259, 372, 896, 4863, 2969, 2257, 2093, 737, 628, 220, 220, 220, 611, 827, 12, 7266, 6015, 497, 657, 13, 198, 220, 220, 220, 220, 220, 1366, 7, 18224, 44651, 9487, 8, 796, 649, 1976, 66, 87, 62, 1686, 62, 35943, 62, 259, 12102, 62, 4871, 7, 6739, 628, 220, 220, 220, 220, 220, 5298, 6631, 198, 220, 220, 220, 220, 220, 2099, 1976, 66, 87, 62, 1686, 62, 18558, 18187, 62, 13345, 62, 18224, 198, 220, 220, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 3866, 1442, 220, 796, 4049, 44651, 9487, 13, 198, 220, 220, 220, 45762, 13, 628, 220, 220, 220, 9052, 379, 5301, 2514, 3856, 18709, 276, 12, 19738, 507, 198, 220, 220, 220, 656, 1366, 7, 17143, 2357, 7248, 737, 198, 220, 220, 220, 220, 220, 1949, 13, 198, 220, 220, 220, 220, 220, 220, 220, 2251, 2134, 28883, 10267, 198, 220, 220, 220, 220, 220, 220, 220, 2099, 357, 4871, 3672, 5189, 23002, 18187, 8, 198, 220, 220, 220, 220, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 17143, 2357, 7248, 220, 796, 3350, 1976, 361, 62, 1686, 62, 17143, 7307, 316, 62, 15252, 7, 11507, 7248, 6739, 628, 220, 220, 220, 220, 220, 220, 220, 28883, 10267, 3784, 9688, 7, 6739, 628, 220, 220, 220, 220, 220, 4929, 43213, 62, 1837, 62, 21084, 62, 2701, 62, 18224, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 1837, 62, 17953, 62, 15252, 62, 18224, 198, 220, 220, 220, 220, 220, 656, 1366, 7, 3866, 1442, 6310, 272, 17269, 12331, 737, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 7, 8625, 272, 17269, 12331, 8, 796, 649, 1976, 66, 87, 62, 1686, 62, 35943, 62, 8625, 272, 17269, 62, 8056, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 3866, 1442, 220, 796, 2180, 6310, 272, 17269, 12331, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 4871, 3672, 796, 1398, 3672, 5189, 23002, 18187, 198, 220, 220, 220, 220, 220, 220, 220, 6739, 628, 220, 220, 220, 220, 220, 220, 220, 5298, 6631, 198, 220, 220, 220, 220, 220, 2099, 1976, 66, 87, 62, 1686, 62, 18558, 18187, 62, 13345, 62, 18224, 198, 220, 220, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 3866, 1442, 220, 796, 916, 272, 17269, 12331, 13, 198, 220, 220, 220, 220, 220, 886, 28311, 13, 198, 220, 220, 220, 886, 26268, 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,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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 ]
CLASS zcl_abapgit_xml_pretty DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS print IMPORTING !iv_xml TYPE string !iv_ignore_errors TYPE abap_bool DEFAULT abap_true !iv_unpretty TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rv_xml) TYPE string RAISING zcx_abapgit_exception . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ZCL_ABAPGIT_XML_PRETTY IMPLEMENTATION. METHOD print. DATA: li_ixml TYPE REF TO if_ixml, li_xml_doc TYPE REF TO if_ixml_document, li_stream_factory TYPE REF TO if_ixml_stream_factory, li_istream TYPE REF TO if_ixml_istream, li_parser TYPE REF TO if_ixml_parser, li_ostream TYPE REF TO if_ixml_ostream, li_renderer TYPE REF TO if_ixml_renderer. ASSERT NOT iv_xml IS INITIAL. li_ixml = cl_ixml=>create( ). li_xml_doc = li_ixml->create_document( ). li_stream_factory = li_ixml->create_stream_factory( ). li_istream = li_stream_factory->create_istream_string( iv_xml ). li_parser = li_ixml->create_parser( stream_factory = li_stream_factory istream = li_istream document = li_xml_doc ). li_parser->set_normalizing( abap_true ). IF li_parser->parse( ) <> 0. IF iv_ignore_errors = abap_true. rv_xml = iv_xml. RETURN. ELSE. zcx_abapgit_exception=>raise( 'error parsing xml' ). ENDIF. ENDIF. li_istream->close( ). li_ostream = li_stream_factory->create_ostream_cstring( rv_xml ). li_renderer = li_ixml->create_renderer( ostream = li_ostream document = li_xml_doc ). li_renderer->set_normalizing( xsdbool( iv_unpretty = abap_false ) ). li_renderer->render( ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 19875, 62, 37784, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 3601, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 19875, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 46430, 62, 48277, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 403, 37784, 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, 81, 85, 62, 19875, 8, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 55, 5805, 62, 47, 26087, 9936, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 3601, 13, 628, 220, 220, 220, 42865, 25, 7649, 62, 844, 4029, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 19875, 62, 15390, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 22897, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 5532, 62, 69, 9548, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 5532, 62, 69, 9548, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 396, 1476, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 396, 1476, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 48610, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 48610, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 455, 1476, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 455, 1476, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 10920, 11882, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 10920, 11882, 13, 628, 198, 220, 220, 220, 24994, 17395, 5626, 21628, 62, 19875, 3180, 3268, 2043, 12576, 13, 628, 220, 220, 220, 7649, 62, 844, 4029, 220, 220, 220, 796, 537, 62, 844, 4029, 14804, 17953, 7, 6739, 198, 220, 220, 220, 7649, 62, 19875, 62, 15390, 796, 7649, 62, 844, 4029, 3784, 17953, 62, 22897, 7, 6739, 628, 220, 220, 220, 7649, 62, 5532, 62, 69, 9548, 796, 7649, 62, 844, 4029, 3784, 17953, 62, 5532, 62, 69, 9548, 7, 6739, 198, 220, 220, 220, 7649, 62, 396, 1476, 220, 220, 220, 220, 220, 220, 220, 796, 7649, 62, 5532, 62, 69, 9548, 3784, 17953, 62, 396, 1476, 62, 8841, 7, 21628, 62, 19875, 6739, 198, 220, 220, 220, 7649, 62, 48610, 220, 220, 220, 220, 220, 220, 220, 220, 796, 7649, 62, 844, 4029, 3784, 17953, 62, 48610, 7, 4269, 62, 69, 9548, 796, 7649, 62, 5532, 62, 69, 9548, 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, 318, 83, 1476, 220, 220, 220, 220, 220, 220, 220, 796, 7649, 62, 396, 1476, 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, 3188, 220, 220, 220, 220, 220, 220, 796, 7649, 62, 19875, 62, 15390, 6739, 198, 220, 220, 220, 7649, 62, 48610, 3784, 2617, 62, 11265, 2890, 7, 450, 499, 62, 7942, 6739, 198, 220, 220, 220, 16876, 7649, 62, 48610, 3784, 29572, 7, 1267, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 16876, 21628, 62, 46430, 62, 48277, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 85, 62, 19875, 796, 21628, 62, 19875, 13, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 18224, 32096, 35555, 6, 6739, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 7649, 62, 396, 1476, 3784, 19836, 7, 6739, 628, 198, 220, 220, 220, 7649, 62, 455, 1476, 220, 796, 7649, 62, 5532, 62, 69, 9548, 3784, 17953, 62, 455, 1476, 62, 66, 8841, 7, 374, 85, 62, 19875, 6739, 628, 220, 220, 220, 7649, 62, 10920, 11882, 796, 7649, 62, 844, 4029, 3784, 17953, 62, 10920, 11882, 7, 267, 5532, 220, 796, 7649, 62, 455, 1476, 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, 3188, 796, 7649, 62, 19875, 62, 15390, 6739, 628, 220, 220, 220, 7649, 62, 10920, 11882, 3784, 2617, 62, 11265, 2890, 7, 2124, 82, 9945, 970, 7, 21628, 62, 403, 37784, 796, 450, 499, 62, 9562, 1267, 6739, 628, 220, 220, 220, 7649, 62, 10920, 11882, 3784, 13287, 7, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_i_a2cc_dpndncy_anlyzr_devc DEFINITION PUBLIC INHERITING FROM zcl_i_a2cc_dpndncy_anlyzr_clas FINAL CREATE PUBLIC . PUBLIC SECTION. METHODS constructor. PROTECTED SECTION. METHODS collect_object_where_used_list REDEFINITION. METHODS where_used_analysis REDEFINITION. PRIVATE SECTION. TYPES: BEGIN OF object_data, object_id TYPE zei_a2cc_object_id, object_type TYPE trobjtype, package TYPE char30, END OF object_data . CONSTANTS package_obj TYPE trobjtype VALUE 'DEVC'. DATA: packages TYPE HASHED TABLE OF object_data WITH UNIQUE KEY object_id object_type. METHODS aggregate_to_package_level IMPORTING !depending_objects TYPE zif_i_a2cc_where_used=>object_list RETURNING VALUE(result) TYPE zif_i_a2cc_where_used=>object_list . ENDCLASS. CLASS zcl_i_a2cc_dpndncy_anlyzr_devc IMPLEMENTATION. METHOD aggregate_to_package_level. LOOP AT depending_objects REFERENCE INTO DATA(depending_object). DATA(package) = COND string( WHEN line_exists( packages[ object_id = depending_object->depending_object object_type = depending_object->depending_type ] ) THEN packages[ object_id = depending_object->depending_object object_type = depending_object->depending_type ]-package ELSE |{ depending_object->depending_object }.{ depending_object->depending_type }| ). INSERT VALUE #( depending_object = package depending_type = package_obj ) INTO TABLE result. ENDLOOP. SORT result. DELETE ADJACENT DUPLICATES FROM result COMPARING depending_object depending_type. ENDMETHOD. METHOD collect_object_where_used_list. TRY. DATA(references) = REF #( me->object_where_used_list_by[ object_identifier = metric->package object_type = package_obj ]-references ). LOOP AT depending_objects REFERENCE INTO DATA(depending_object). IF line_exists( references->*[ depending_object = depending_object->depending_object depending_type = depending_object->depending_type ] ). ASSIGN references->*[ depending_object = depending_object->depending_object depending_type = depending_object->depending_type ] TO FIELD-SYMBOL(<existing_reference>). <existing_reference>-number_of_usages = <existing_reference>-number_of_usages + 1. ELSE. INSERT depending_object->* INTO TABLE references->*. ENDIF. ENDLOOP. CATCH cx_sy_itab_line_not_found. INSERT VALUE #( object_identifier = metric->package object_type = package_obj references = depending_objects ) INTO TABLE object_where_used_list_by. ENDTRY. ENDMETHOD. METHOD constructor. super->constructor( ). ENDMETHOD. METHOD where_used_analysis. LOOP AT metrics REFERENCE INTO DATA(metric). INSERT VALUE #( object_id = metric->modu_unit_1 object_type = metric->category package = metric->package ) INTO TABLE packages. ENDLOOP. LOOP AT metrics REFERENCE INTO metric. TRY. DATA(depending_objects) = where_used_provider->get( objecttype = metric->category subtype = metric->sub_type )->get_cross_references( VALUE #( object = metric->modu_unit_1 subobject = metric->modu_unit_2 ) ). IF has_where_used_entries( depending_objects ). collect_object_where_used_list( metric = metric depending_objects = aggregate_to_package_level( depending_objects->* ) ). ENDIF. CATCH zcx_i_a2cc_metrics_impl_error. CONTINUE. ENDTRY. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 72, 62, 64, 17, 535, 62, 26059, 358, 77, 948, 62, 272, 306, 89, 81, 62, 7959, 66, 5550, 20032, 17941, 198, 220, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 72, 62, 64, 17, 535, 62, 26059, 358, 77, 948, 62, 272, 306, 89, 81, 62, 565, 292, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 2824, 62, 15252, 62, 3003, 62, 1484, 62, 4868, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 810, 62, 1484, 62, 20930, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 2134, 62, 7890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 312, 220, 220, 41876, 1976, 20295, 62, 64, 17, 535, 62, 15252, 62, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 4906, 41876, 4161, 50007, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 5301, 220, 220, 220, 220, 41876, 1149, 1270, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 2134, 62, 7890, 764, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 5301, 62, 26801, 41876, 4161, 50007, 4906, 26173, 8924, 705, 7206, 15922, 4458, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 10392, 41876, 367, 11211, 1961, 43679, 3963, 2134, 62, 7890, 13315, 4725, 33866, 8924, 35374, 2134, 62, 312, 2134, 62, 4906, 13, 628, 220, 220, 220, 337, 36252, 50, 19406, 62, 1462, 62, 26495, 62, 5715, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 44023, 62, 48205, 41876, 1976, 361, 62, 72, 62, 64, 17, 535, 62, 3003, 62, 1484, 14804, 15252, 62, 4868, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 72, 62, 64, 17, 535, 62, 3003, 62, 1484, 14804, 15252, 62, 4868, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 72, 62, 64, 17, 535, 62, 26059, 358, 77, 948, 62, 272, 306, 89, 81, 62, 7959, 66, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 19406, 62, 1462, 62, 26495, 62, 5715, 13, 198, 220, 220, 220, 17579, 3185, 5161, 6906, 62, 48205, 4526, 24302, 18310, 39319, 42865, 7, 44023, 62, 15252, 737, 198, 220, 220, 220, 220, 220, 42865, 7, 26495, 8, 796, 7102, 35, 4731, 7, 42099, 1627, 62, 1069, 1023, 7, 10392, 58, 2134, 62, 312, 796, 6906, 62, 15252, 3784, 44023, 62, 15252, 2134, 62, 4906, 796, 6906, 62, 15252, 3784, 44023, 62, 4906, 2361, 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, 42243, 10392, 58, 2134, 62, 312, 796, 6906, 62, 15252, 3784, 44023, 62, 15252, 2134, 62, 4906, 796, 6906, 62, 15252, 3784, 44023, 62, 4906, 2361, 12, 26495, 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, 17852, 5188, 930, 90, 6906, 62, 15252, 3784, 44023, 62, 15252, 1782, 13, 90, 6906, 62, 15252, 3784, 44023, 62, 4906, 1782, 91, 6739, 628, 220, 220, 220, 220, 220, 29194, 17395, 26173, 8924, 1303, 7, 6906, 62, 15252, 796, 5301, 6906, 62, 4906, 796, 5301, 62, 26801, 1267, 39319, 43679, 1255, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 220, 220, 311, 9863, 1255, 13, 198, 220, 220, 220, 5550, 2538, 9328, 5984, 41, 2246, 3525, 35480, 31484, 29462, 16034, 1255, 24301, 1503, 2751, 6906, 62, 15252, 6906, 62, 4906, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 2824, 62, 15252, 62, 3003, 62, 1484, 62, 4868, 13, 198, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 5420, 4972, 8, 796, 4526, 37, 1303, 7, 502, 3784, 15252, 62, 3003, 62, 1484, 62, 4868, 62, 1525, 58, 2134, 62, 738, 7483, 796, 18663, 3784, 26495, 2134, 62, 4906, 796, 5301, 62, 26801, 2361, 12, 5420, 4972, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 17579, 3185, 5161, 6906, 62, 48205, 4526, 24302, 18310, 39319, 42865, 7, 44023, 62, 15252, 737, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16876, 1627, 62, 1069, 1023, 7, 10288, 3784, 9, 58, 6906, 62, 15252, 796, 6906, 62, 15252, 3784, 44023, 62, 15252, 6906, 62, 4906, 796, 6906, 62, 15252, 3784, 44023, 62, 4906, 2361, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24994, 16284, 10288, 3784, 9, 58, 6906, 62, 15252, 796, 6906, 62, 15252, 3784, 44023, 62, 15252, 6906, 62, 4906, 796, 6906, 62, 15252, 3784, 44023, 62, 4906, 2361, 5390, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 25687, 62, 35790, 29, 737, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 25687, 62, 35790, 29, 12, 17618, 62, 1659, 62, 385, 1095, 796, 1279, 25687, 62, 35790, 29, 12, 17618, 62, 1659, 62, 385, 1095, 1343, 352, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29194, 17395, 6906, 62, 15252, 3784, 9, 39319, 43679, 10288, 3784, 24620, 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, 327, 11417, 43213, 62, 1837, 62, 270, 397, 62, 1370, 62, 1662, 62, 9275, 13, 198, 220, 220, 220, 220, 220, 220, 220, 29194, 17395, 26173, 8924, 1303, 7, 2134, 62, 738, 7483, 796, 18663, 3784, 26495, 2134 ]
[ 1, 1, 1, 1,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01.2022 08:51:00 FUNCTION-POOL ZTOOA1_MLZ_SIS MESSAGE-ID SV. * INCLUDE LZTOOA1_MLZ_SISD... " Local class definition INCLUDE LSVIMDAT . "general data decl. INCLUDE LZTOOA1_MLZ_SIST00 . "view rel. data dcl.
[ 9, 16935, 515, 379, 2808, 13, 486, 13, 1238, 1828, 8487, 25, 4349, 25, 405, 198, 42296, 4177, 2849, 12, 16402, 3535, 1168, 51, 6684, 32, 16, 62, 5805, 57, 62, 50, 1797, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 12, 2389, 20546, 13, 198, 198, 9, 3268, 5097, 52, 7206, 406, 57, 51, 6684, 32, 16, 62, 5805, 57, 62, 50, 1797, 35, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 10714, 1398, 6770, 198, 220, 3268, 5097, 52, 7206, 30948, 53, 3955, 35, 1404, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 366, 24622, 1366, 2377, 13, 198, 220, 3268, 5097, 52, 7206, 406, 57, 51, 6684, 32, 16, 62, 5805, 57, 62, 50, 8808, 405, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 366, 1177, 823, 13, 1366, 288, 565, 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 ]
* regenerated at 12.02.2022 10:47:26 FUNCTION-POOL ZTDP_COR_KURAL MESSAGE-ID SV. * INCLUDE LZTDP_COR_KURALD... " Local class definition INCLUDE LSVIMDAT . "general data decl. INCLUDE LZTDP_COR_KURALT00 . "view rel. data dcl.
[ 9, 16935, 515, 379, 1105, 13, 2999, 13, 1238, 1828, 838, 25, 2857, 25, 2075, 198, 42296, 4177, 2849, 12, 16402, 3535, 1168, 51, 6322, 62, 44879, 62, 42, 4261, 1847, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 12, 2389, 20546, 13, 198, 198, 9, 3268, 5097, 52, 7206, 406, 57, 51, 6322, 62, 44879, 62, 42, 4261, 44071, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 10714, 1398, 6770, 198, 220, 3268, 5097, 52, 7206, 30948, 53, 3955, 35, 1404, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 366, 24622, 1366, 2377, 13, 198, 220, 3268, 5097, 52, 7206, 406, 57, 51, 6322, 62, 44879, 62, 42, 4261, 31429, 405, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 366, 1177, 823, 13, 1366, 288, 565, 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 ]
CLASS /dmo/cx_flight_legacy08 DEFINITION PUBLIC INHERITING FROM cx_static_check FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES if_t100_message . CONSTANTS: gc_msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', BEGIN OF agency_unkown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '001', attr1 TYPE scx_attrname VALUE 'MV_AGENCY_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF agency_unkown, BEGIN OF customer_unkown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '002', attr1 TYPE scx_attrname VALUE 'MV_CUSTOMER_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF customer_unkown, BEGIN OF connection_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '004', attr1 TYPE scx_attrname VALUE 'MV_CARRIER_ID', attr2 TYPE scx_attrname VALUE 'MV_CONNECTION_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF connection_unknown , BEGIN OF carrier_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '005', attr1 TYPE scx_attrname VALUE 'MV_CARRIER_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF carrier_unknown , BEGIN OF supplement_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '006', attr1 TYPE scx_attrname VALUE 'MV_SUPPLEMENT_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF supplement_unknown, BEGIN OF travel_status_invalid, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '007', attr1 TYPE scx_attrname VALUE 'MV_STATUS', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF travel_status_invalid, BEGIN OF currency_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '008', attr1 TYPE scx_attrname VALUE 'MV_CURRENCY_CODE', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF currency_unknown, BEGIN OF travel_no_key, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '009', attr1 TYPE scx_attrname VALUE '', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF travel_no_key, BEGIN OF no_begin_date, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '013', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF no_begin_date, BEGIN OF no_end_date, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '014', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF no_end_date, BEGIN OF end_date_before_begin_date, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '015', attr1 TYPE scx_attrname VALUE 'MV_BEGIN_DATE', attr2 TYPE scx_attrname VALUE 'MV_END_DATE', attr3 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr4 TYPE scx_attrname VALUE '', END OF end_date_before_begin_date, BEGIN OF travel_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '016', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF travel_unknown, BEGIN OF booking_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '017', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_unknown, BEGIN OF booking_no_key, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '018', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_no_key, BEGIN OF booking_booking_date_invalid, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '019', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE 'MV_BOOKING_DATE', attr4 TYPE scx_attrname VALUE '', END OF booking_booking_date_invalid, BEGIN OF flight_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '020', attr1 TYPE scx_attrname VALUE 'MV_CARRIER_ID', attr2 TYPE scx_attrname VALUE 'MV_CONNECTION_ID', attr3 TYPE scx_attrname VALUE 'MV_FLIGHT_DATE', attr4 TYPE scx_attrname VALUE '', END OF flight_unknown, BEGIN OF booking_supplement_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '021', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE 'MV_BOOKING_SUPPLEMENT_ID', attr4 TYPE scx_attrname VALUE '', END OF booking_supplement_unknown, BEGIN OF booking_supplement_no_key, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '022', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_supplement_no_key, BEGIN OF booking_exists, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '023', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_exists, BEGIN OF booking_supplement_exists, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '024', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE 'MV_BOOKING_SUPPLEMENT_ID', attr4 TYPE scx_attrname VALUE '', END OF booking_supplement_exists, BEGIN OF travel_no_control, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '025', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF travel_no_control, BEGIN OF booking_no_control, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '026', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_no_control, BEGIN OF booking_supplement_no_control, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '027', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE 'MV_BOOKING_SUPPLEMENT_ID', attr4 TYPE scx_attrname VALUE '', END OF booking_supplement_no_control, BEGIN OF booking_supplement_suppl_id_u, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '028', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE 'MV_BOOKING_SUPPLEMENT_ID', attr4 TYPE scx_attrname VALUE '', END OF booking_supplement_suppl_id_u, BEGIN OF booking_supplement_pri_curr_u, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '029', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE 'MV_BOOKING_SUPPLEMENT_ID', attr4 TYPE scx_attrname VALUE '', END OF booking_supplement_pri_curr_u, BEGIN OF booking_flight_u, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '030', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_flight_u, BEGIN OF booking_price_currency_u, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '031', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_price_currency_u, BEGIN OF travel_lock, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '032', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_UNAME', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF travel_lock, BEGIN OF travel_already_exists, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_08', msgno TYPE symsgno VALUE '033', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF travel_already_exists. METHODS constructor IMPORTING textid LIKE if_t100_message=>t100key OPTIONAL previous LIKE previous OPTIONAL travel_id TYPE /dmo/travel_id08 OPTIONAL booking_id TYPE /dmo/booking_id08 OPTIONAL booking_supplement_id TYPE /dmo/booking_supplement_id08 OPTIONAL agency_id TYPE /dmo/agency_id08 OPTIONAL customer_id TYPE /dmo/customer_id08 OPTIONAL carrier_id TYPE /dmo/carrier08-carrier_id OPTIONAL connection_id TYPE /dmo/connecti_08-connection_id OPTIONAL supplement_id TYPE /dmo/suppleme_08-supplement_id OPTIONAL begin_date TYPE /dmo/begin_date08 OPTIONAL end_date TYPE /dmo/end_date08 OPTIONAL booking_date TYPE /dmo/booking_date08 OPTIONAL flight_date TYPE /dmo/flight_date08 OPTIONAL status TYPE /dmo/travel_status08 OPTIONAL currency_code TYPE /dmo/currency_code08 OPTIONAL uname TYPE syuname OPTIONAL. DATA: mv_travel_id TYPE /dmo/travel_id08, mv_booking_id TYPE /dmo/booking_id08, mv_booking_supplement_id TYPE /dmo/booking_supplement_id08, mv_agency_id TYPE /dmo/agency_id08, mv_customer_id TYPE /dmo/customer_id08, mv_carrier_id TYPE /dmo/carrier08-carrier_id, mv_connection_id TYPE /dmo/connecti_08-connection_id, mv_supplement_id TYPE /dmo/suppleme_08-supplement_id, mv_begin_date TYPE /dmo/begin_date08, mv_end_date TYPE /dmo/end_date08, mv_booking_date TYPE /dmo/booking_date08, mv_flight_date TYPE /dmo/flight_date08, mv_status TYPE /dmo/travel_status08, mv_currency_code TYPE /dmo/currency_code08, mv_uname TYPE syuname. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS /dmo/cx_flight_legacy08 IMPLEMENTATION. METHOD constructor ##ADT_SUPPRESS_GENERATION. super->constructor( previous = previous ). me->mv_travel_id = travel_id. me->mv_booking_id = booking_id. me->mv_booking_supplement_id = booking_supplement_id. me->mv_agency_id = agency_id. me->mv_customer_id = customer_id. me->mv_carrier_id = carrier_id. me->mv_connection_id = connection_id. me->mv_supplement_id = supplement_id. me->mv_begin_date = begin_date. me->mv_end_date = end_date. me->mv_booking_date = booking_date. me->mv_flight_date = flight_date. me->mv_status = status. me->mv_currency_code = currency_code. me->mv_uname = uname. CLEAR me->textid. IF textid IS INITIAL. if_t100_message~t100key = if_t100_message=>default_textid. ELSE. if_t100_message~t100key = textid. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1220, 67, 5908, 14, 66, 87, 62, 22560, 62, 1455, 1590, 2919, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 43213, 62, 12708, 62, 9122, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 611, 62, 83, 3064, 62, 20500, 764, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 308, 66, 62, 19662, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 2919, 3256, 628, 220, 220, 220, 220, 220, 347, 43312, 3963, 4086, 62, 2954, 593, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 2919, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 8298, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 44, 53, 62, 4760, 45155, 62, 2389, 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, 4086, 62, 2954, 593, 11, 628, 220, 220, 220, 220, 220, 347, 43312, 3963, 6491, 62, 2954, 593, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 2919, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 21601, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 44, 53, 62, 34, 7759, 2662, 1137, 62, 2389, 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, 6491, 62, 2954, 593, 11, 628, 220, 220, 220, 220, 220, 347, 43312, 3963, 4637, 62, 34680, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 2919, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 22914, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 44, 53, 62, 20034, 7112, 1137, 62, 2389, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 17, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 44, 53, 62, 10943, 45, 24565, 62, 2389, 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, 4637, 62, 34680, 220, 220, 220, 220, 220, 837, 628, 220, 220, 220, 220, 220, 347, 43312, 3963, 11920, 62, 34680, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 2919, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 22544, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 44, 53, 62, 20034, 7112, 1137, 62, 2389, 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, 11920, 62, 34680, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 628, 220, 220, 220, 220, 220, 347, 43312, 3963, 10327, 62, 34680, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 2919, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 28041, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 44, 53, 62, 40331, 16437, 10979, 62, 2389, 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, 10327, 62, 34680, 11, 628, 220, 220, 220, 220, 220, 347, 43312, 3963, 3067, 62, 13376, 62, 259, 12102, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 2919, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 25816, 3256, 198, 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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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 ]
class ZCL_EXCEL_TABLE definition public final create public . *"* public components of class ZCL_EXCEL_TABLE *"* do not include other source files here!!! public section. type-pools ABAP . constants BUILTINSTYLE_DARK1 type ZEXCEL_TABLE_STYLE value 'TableStyleDark1'. "#EC NOTEXT constants BUILTINSTYLE_DARK2 type ZEXCEL_TABLE_STYLE value 'TableStyleDark2'. "#EC NOTEXT constants BUILTINSTYLE_DARK3 type ZEXCEL_TABLE_STYLE value 'TableStyleDark3'. "#EC NOTEXT constants BUILTINSTYLE_DARK4 type ZEXCEL_TABLE_STYLE value 'TableStyleDark4'. "#EC NOTEXT constants BUILTINSTYLE_DARK5 type ZEXCEL_TABLE_STYLE value 'TableStyleDark5'. "#EC NOTEXT constants BUILTINSTYLE_DARK6 type ZEXCEL_TABLE_STYLE value 'TableStyleDark6'. "#EC NOTEXT constants BUILTINSTYLE_DARK7 type ZEXCEL_TABLE_STYLE value 'TableStyleDark7'. "#EC NOTEXT constants BUILTINSTYLE_DARK8 type ZEXCEL_TABLE_STYLE value 'TableStyleDark8'. "#EC NOTEXT constants BUILTINSTYLE_DARK9 type ZEXCEL_TABLE_STYLE value 'TableStyleDark9'. "#EC NOTEXT constants BUILTINSTYLE_DARK10 type ZEXCEL_TABLE_STYLE value 'TableStyleDark10'. "#EC NOTEXT constants BUILTINSTYLE_DARK11 type ZEXCEL_TABLE_STYLE value 'TableStyleDark11'. "#EC NOTEXT constants BUILTINSTYLE_LIGHT1 type ZEXCEL_TABLE_STYLE value 'TableStyleLight1'. "#EC NOTEXT constants BUILTINSTYLE_LIGHT2 type ZEXCEL_TABLE_STYLE value 'TableStyleLight2'. "#EC NOTEXT constants BUILTINSTYLE_LIGHT3 type ZEXCEL_TABLE_STYLE value 'TableStyleLight3'. "#EC NOTEXT constants BUILTINSTYLE_LIGHT4 type ZEXCEL_TABLE_STYLE value 'TableStyleLight4'. "#EC NOTEXT constants BUILTINSTYLE_LIGHT5 type ZEXCEL_TABLE_STYLE value 'TableStyleLight5'. "#EC NOTEXT constants BUILTINSTYLE_PIVOT_LIGHT16 type ZEXCEL_TABLE_STYLE value 'PivotStyleLight16'. "#EC NOTEXT constants BUILTINSTYLE_LIGHT6 type ZEXCEL_TABLE_STYLE value 'TableStyleLight6'. "#EC NOTEXT constants TOTALS_FUNCTION_AVERAGE type ZEXCEL_TABLE_TOTALS_FUNCTION value 'average'. "#EC NOTEXT constants BUILTINSTYLE_LIGHT7 type ZEXCEL_TABLE_STYLE value 'TableStyleLight7'. "#EC NOTEXT constants TOTALS_FUNCTION_COUNT type ZEXCEL_TABLE_TOTALS_FUNCTION value 'count'. "#EC NOTEXT constants BUILTINSTYLE_LIGHT8 type ZEXCEL_TABLE_STYLE value 'TableStyleLight8'. "#EC NOTEXT constants TOTALS_FUNCTION_CUSTOM type ZEXCEL_TABLE_TOTALS_FUNCTION value 'custom'. "#EC NOTEXT constants BUILTINSTYLE_LIGHT9 type ZEXCEL_TABLE_STYLE value 'TableStyleLight9'. "#EC NOTEXT constants TOTALS_FUNCTION_MAX type ZEXCEL_TABLE_TOTALS_FUNCTION value 'max'. "#EC NOTEXT constants BUILTINSTYLE_LIGHT10 type ZEXCEL_TABLE_STYLE value 'TableStyleLight10'. "#EC NOTEXT constants TOTALS_FUNCTION_MIN type ZEXCEL_TABLE_TOTALS_FUNCTION value 'min'. "#EC NOTEXT constants BUILTINSTYLE_LIGHT11 type ZEXCEL_TABLE_STYLE value 'TableStyleLight11'. "#EC NOTEXT constants TOTALS_FUNCTION_SUM type ZEXCEL_TABLE_TOTALS_FUNCTION value 'sum'. "#EC NOTEXT constants BUILTINSTYLE_LIGHT12 type ZEXCEL_TABLE_STYLE value 'TableStyleLight12'. "#EC NOTEXT data FIELDCAT type ZEXCEL_T_FIELDCATALOG . constants BUILTINSTYLE_LIGHT13 type ZEXCEL_TABLE_STYLE value 'TableStyleLight13'. "#EC NOTEXT constants BUILTINSTYLE_LIGHT14 type ZEXCEL_TABLE_STYLE value 'TableStyleLight14'. "#EC NOTEXT data SETTINGS type ZEXCEL_S_TABLE_SETTINGS . constants BUILTINSTYLE_LIGHT15 type ZEXCEL_TABLE_STYLE value 'TableStyleLight15'. "#EC NOTEXT constants BUILTINSTYLE_LIGHT16 type ZEXCEL_TABLE_STYLE value 'TableStyleLight16'. "#EC NOTEXT constants BUILTINSTYLE_LIGHT17 type ZEXCEL_TABLE_STYLE value 'TableStyleLight17'. "#EC NOTEXT constants BUILTINSTYLE_LIGHT18 type ZEXCEL_TABLE_STYLE value 'TableStyleLight18'. "#EC NOTEXT constants BUILTINSTYLE_LIGHT19 type ZEXCEL_TABLE_STYLE value 'TableStyleLight19'. "#EC NOTEXT constants BUILTINSTYLE_LIGHT20 type ZEXCEL_TABLE_STYLE value 'TableStyleLight20'. "#EC NOTEXT constants BUILTINSTYLE_LIGHT21 type ZEXCEL_TABLE_STYLE value 'TableStyleLight21'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM1 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium1'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM2 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium2'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM3 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium3'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM4 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium4'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM5 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium5'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM6 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium6'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM7 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium7'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM8 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium8'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM9 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium9'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM10 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium10'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM11 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium11'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM12 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium12'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM13 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium13'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM14 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium14'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM15 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium15'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM16 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium16'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM17 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium17'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM18 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium18'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM19 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium19'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM20 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium20'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM21 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium21'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM22 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium22'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM23 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium23'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM24 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium24'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM25 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium26'. "#EC NOTEXT constants BUILTINSTYLE_MEDIUM27 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium27'. "#EC NOTEXT methods GET_TOTALS_FORMULA importing !IP_COLUMN type CLIKE !IP_FUNCTION type ZEXCEL_TABLE_TOTALS_FUNCTION returning value(EP_FORMULA) type STRING raising ZCX_EXCEL . methods HAS_TOTALS returning value(EP_RESULT) type ABAP_BOOL . methods SET_DATA importing !IR_DATA type STANDARD TABLE . methods GET_ID returning value(OV_ID) type I . methods SET_ID importing !IV_ID type I . methods GET_NAME returning value(OV_NAME) type STRING . methods GET_REFERENCE importing !IP_INCLUDE_TOTALS_ROW type ABAP_BOOL default ABAP_TRUE returning value(OV_REFERENCE) type STRING raising ZCX_EXCEL . methods GET_BOTTOM_ROW_INTEGER returning value(EV_ROW) type I . methods GET_RIGHT_COLUMN_INTEGER returning value(EV_COLUMN) type I raising ZCX_EXCEL . *"* protected components of class ZCL_EXCEL_TABLE *"* do not include other source files here!!! *"* protected components of class ZCL_EXCEL_TABLE *"* do not include other source files here!!! *"* protected components of class ZCL_EXCEL_TABLE *"* do not include other source files here!!! protected section. private section. data ID type I . data NAME type STRING . data TABLE_DATA type ref to DATA . data BUILTINSTYLE_MEDIUM28 type ZEXCEL_TABLE_STYLE value 'TableStyleMedium28'. "#EC NOTEXT . . . " . ENDCLASS. CLASS ZCL_EXCEL_TABLE IMPLEMENTATION. method GET_BOTTOM_ROW_INTEGER. DATA: lv_table_lines TYPE i. FIELD-SYMBOLS: <fs_table> TYPE STANDARD TABLE. IF settings-bottom_right_row IS NOT INITIAL. * ev_row = zcl_excel_common=>convert_column2int( settings-bottom_right_row ). " del issue #246 ev_row = settings-bottom_right_row . " ins issue #246 EXIT. ENDIF. ASSIGN table_data->* TO <fs_table>. DESCRIBE TABLE <fs_table> LINES lv_table_lines. IF lv_table_lines = 0. lv_table_lines = 1. "table needs at least 1 data row ENDIF. ev_row = settings-top_left_row + lv_table_lines. IF me->has_totals( ) = abap_true." ???? AND ip_include_totals_row = abap_true. ADD 1 TO ev_row. ENDIF. endmethod. method GET_ID. ov_id = id. endmethod. method GET_NAME. IF me->name IS INITIAL. me->name = zcl_excel_common=>number_to_excel_string( ip_value = me->id ). CONCATENATE 'table' me->name INTO me->name. ENDIF. ov_name = me->name. endmethod. method GET_REFERENCE. DATA: lv_column TYPE zexcel_cell_column, lv_table_lines TYPE i, lv_right_column TYPE zexcel_cell_column_alpha, ls_field_catalog TYPE zexcel_s_fieldcatalog, lv_bottom_row TYPE zexcel_cell_row, lv_top_row_string(10) TYPE c, lv_bottom_row_string(10) TYPE c. FIELD-SYMBOLS: <fs_table> TYPE STANDARD TABLE. *column lv_column = zcl_excel_common=>convert_column2int( settings-top_left_column ). lv_table_lines = 0. LOOP AT fieldcat INTO ls_field_catalog WHERE dynpfld EQ abap_true. ADD 1 TO lv_table_lines. ENDLOOP. lv_column = lv_column + lv_table_lines - 1. lv_right_column = zcl_excel_common=>convert_column2alpha( lv_column ). *row ASSIGN table_data->* TO <fs_table>. DESCRIBE TABLE <fs_table> LINES lv_table_lines. IF lv_table_lines = 0. lv_table_lines = 1. "table needs at least 1 data row ENDIF. lv_bottom_row = settings-top_left_row + lv_table_lines . IF me->has_totals( ) = abap_true AND ip_include_totals_row = abap_true. ADD 1 TO lv_bottom_row. ENDIF. lv_top_row_string = zcl_excel_common=>number_to_excel_string( settings-top_left_row ). lv_bottom_row_string = zcl_excel_common=>number_to_excel_string( lv_bottom_row ). CONCATENATE settings-top_left_column lv_top_row_string ':' lv_right_column lv_bottom_row_string INTO ov_reference. endmethod. method GET_RIGHT_COLUMN_INTEGER. DATA: ls_field_catalog TYPE zexcel_s_fieldcatalog. IF settings-bottom_right_column IS NOT INITIAL. ev_column = zcl_excel_common=>convert_column2int( settings-bottom_right_column ). EXIT. ENDIF. ev_column = zcl_excel_common=>convert_column2int( settings-top_left_column ). LOOP AT fieldcat INTO ls_field_catalog WHERE dynpfld EQ abap_true. ADD 1 TO ev_column. ENDLOOP. endmethod. method GET_TOTALS_FORMULA. CONSTANTS: lc_function_id_sum TYPE string VALUE '109', lc_function_id_min TYPE string VALUE '105', lc_function_id_max TYPE string VALUE '104', lc_function_id_count TYPE string VALUE '103', lc_function_id_average TYPE string VALUE '101'. DATA: lv_function_id TYPE string. CASE ip_function. WHEN zcl_excel_table=>totals_function_sum. lv_function_id = lc_function_id_sum. WHEN zcl_excel_table=>totals_function_min. lv_function_id = lc_function_id_min. WHEN zcl_excel_table=>totals_function_max. lv_function_id = lc_function_id_max. WHEN zcl_excel_table=>totals_function_count. lv_function_id = lc_function_id_count. WHEN zcl_excel_table=>totals_function_average. lv_function_id = lc_function_id_average. WHEN zcl_excel_table=>totals_function_custom. " issue #292 RETURN. WHEN OTHERS. zcx_excel=>raise_text( 'Invalid totals formula. See ZCL_ for possible values' ). ENDCASE. CONCATENATE 'SUBTOTAL(' lv_function_id ',[' ip_column '])' INTO ep_formula. endmethod. method HAS_TOTALS. DATA: ls_field_catalog TYPE zexcel_s_fieldcatalog. ep_result = abap_false. LOOP AT fieldcat INTO ls_field_catalog. IF ls_field_catalog-totals_function IS NOT INITIAL. ep_result = abap_true. EXIT. ENDIF. ENDLOOP. endmethod. METHOD set_data. DATA lr_temp TYPE REF TO data. FIELD-SYMBOLS: <lt_table_temp> TYPE ANY TABLE, <lt_table> TYPE ANY TABLE. GET REFERENCE OF ir_data INTO lr_temp. ASSIGN lr_temp->* TO <lt_table_temp>. CREATE DATA table_data LIKE <lt_table_temp>. ASSIGN me->table_data->* TO <lt_table>. <lt_table> = <lt_table_temp>. ENDMETHOD. method SET_ID. id = iv_id. endmethod. ENDCLASS.
[ 4871, 1168, 5097, 62, 6369, 34, 3698, 62, 38148, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 6369, 34, 3698, 62, 38148, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 11377, 2665, 13, 198, 220, 2099, 12, 7742, 82, 9564, 2969, 764, 628, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 35, 14175, 16, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 17367, 16, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 35, 14175, 17, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 17367, 17, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 35, 14175, 18, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 17367, 18, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 35, 14175, 19, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 17367, 19, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 35, 14175, 20, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 17367, 20, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 35, 14175, 21, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 17367, 21, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 35, 14175, 22, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 17367, 22, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 35, 14175, 23, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 17367, 23, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 35, 14175, 24, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 17367, 24, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 35, 14175, 940, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 17367, 940, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 35, 14175, 1157, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 17367, 1157, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 43, 9947, 16, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 15047, 16, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 43, 9947, 17, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 15047, 17, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 43, 9947, 18, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 15047, 18, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 43, 9947, 19, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 15047, 19, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 43, 9947, 20, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 15047, 20, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 47, 3824, 2394, 62, 43, 9947, 1433, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 47, 45785, 21466, 15047, 1433, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 43, 9947, 21, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 15047, 21, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 309, 2394, 23333, 62, 42296, 4177, 2849, 62, 32, 5959, 11879, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 51, 2394, 23333, 62, 42296, 4177, 2849, 1988, 705, 23913, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 43, 9947, 22, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 15047, 22, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 309, 2394, 23333, 62, 42296, 4177, 2849, 62, 34, 28270, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 51, 2394, 23333, 62, 42296, 4177, 2849, 1988, 705, 9127, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 43, 9947, 23, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 15047, 23, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 309, 2394, 23333, 62, 42296, 4177, 2849, 62, 34, 7759, 2662, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 51, 2394, 23333, 62, 42296, 4177, 2849, 1988, 705, 23144, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 43, 9947, 24, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 15047, 24, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 309, 2394, 23333, 62, 42296, 4177, 2849, 62, 22921, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 51, 2394, 23333, 62, 42296, 4177, 2849, 1988, 705, 9806, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51, 38604, 56, 2538, 62, 43, 9947, 940, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 2257, 56, 2538, 1988, 705, 10962, 21466, 15047, 940, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 309, 2394, 23333, 62, 42296, 4177, 2849, 62, 23678, 2099, 1168, 6369, 34, 3698, 62, 38148, 62, 51, 2394, 23333, 62, 42296, 4177, 2849, 1988, 705, 1084, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 20571, 4146, 51 ]
[ 1, 1, 1, 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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ION. METHODS: constructor IMPORTING io_repo TYPE REF TO zcl_abapgit_repo_online RAISING zcx_abapgit_exception, zif_abapgit_gui_event_handler~on_event REDEFINITION. PROTECTED SECTION. METHODS render_content REDEFINITION. PRIVATE SECTION. TYPES: BEGIN OF ty_merge, source TYPE string, target TYPE string, END OF ty_merge . DATA mo_repo TYPE REF TO zcl_abapgit_repo_online . DATA mv_compress TYPE abap_bool VALUE abap_false ##NO_TEXT. DATA mt_commits TYPE zif_abapgit_definitions=>ty_commit_tt . DATA mi_branch_overview TYPE REF TO zif_abapgit_branch_overview . CONSTANTS: BEGIN OF c_actions, uncompress TYPE string VALUE 'uncompress' ##NO_TEXT, compress TYPE string VALUE 'compress' ##NO_TEXT, refresh TYPE string VALUE 'refresh' ##NO_TEXT, merge TYPE string VALUE 'merge' ##NO_TEXT, END OF c_actions . METHODS refresh RAISING zcx_abapgit_exception . METHODS body RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . METHODS form_select IMPORTING !iv_name TYPE string RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html . METHODS render_merge RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . METHODS build_menu RETURNING VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar . METHODS escape_branch IMPORTING !iv_string TYPE string RETURNING VALUE(rv_string) TYPE string . METHODS escape_message IMPORTING !iv_string TYPE string RETURNING VALUE(rv_string) TYPE string . METHODS render_commit_popups RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . ENDCLASS. CLASS ZCL_ABAPGIT_GUI_PAGE_BOVERVIEW IMPLEMENTATION. METHOD body. DATA: lv_tag TYPE string, lv_branch_display_name TYPE string. FIELD-SYMBOLS: <ls_commit> LIKE LINE OF mt_commits, <ls_create> LIKE LINE OF <ls_commit>-create. ri_html = NEW zcl_abapgit_html( ). 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( '<br>' ). ri_html->add( '<br>' ). ri_html->add( render_merge( ) ). ri_html->add( '<br>' ). ri_html->add( build_menu( )->render( ) ). "CSS gitGraph-scrollWrapper, gitGraph-HTopScroller and gitGraph-Wrapper " - Used to manage the Horizonal Scroll bar on top of gitGraph Element ri_html->add( '<div class="gitGraph-scrollWrapper" onscroll="GitGraphScroller()">' ). "see http://stackoverflow.com/questions/6081483/maximum-size-of-a-canvas-element ri_html->add( '<div class="gitGraph-HTopScroller"></div>' ). ri_html->add( '</div>' ). ri_html->add( '<div class="gitGraph-Wrapper">' ). ri_html->add( '<canvas id="gitGraph"></canvas>' ). ri_html->add( '</div>' ). ri_html->add( '<script type="text/javascript" src="https://cdnjs.' && 'cloudflare.com/ajax/libs/gitgraph.js/1.14.0/gitgraph.min.js">' && '</script>' ). ri_html->add( '<script type="text/javascript">' ). ri_html->add( 'var myTemplateConfig = {' ). ri_html->add( 'colors: [ "#979797", "#008fb5", "#f1c109", "' && '#095256", "#087F8C", "#5AAA95", "#86A873", "#BB9F06" ],' ). ri_html->add( 'branch: {' ). ri_html->add( ' lineWidth: 8,' ). ri_html->add( ' spacingX: 50' ). ri_html->add( '},' ). ri_html->add( 'commit: {' ). ri_html->add( ' spacingY: -40,' ). ri_html->add( ' dot: { size: 12 },' ). ri_html->add( ' message: { font: "normal 14pt Arial" }' ). ri_html->add( '}' ). ri_html->add( '};' ). ri_html->add( 'var gitgraph = new GitGraph({' ). ri_html->add( ' template: myTemplateConfig,' ). ri_html->add( ' orientation: "vertical-reverse"' ). ri_html->add( '});' ). ri_html->add( 'var gBranchOveriew = new BranchOverview();' ). LOOP AT mt_commits ASSIGNING <ls_commit>. IF sy-tabix = 1. " assumption: all branches are created from master, todo ri_html->add( |var { escape_branch( <ls_commit>-branch ) } = gitgraph.branch("{ <ls_commit>-branch }");| ). ENDIF. IF <ls_commit>-branch IS INITIAL. CONTINUE. " we skip orphaned commits ENDIF. IF <ls_commit>-compressed = abap_true. ri_html->add( |{ escape_branch( <ls_commit>-branch ) }.commit(\{message: "{ escape_message( <ls_commit>-message ) }", dotColor: "black", dotSize: 15, messageHashDisplay: false, messageAuthorDisplay: false\});| ). ELSEIF <ls_commit>-merge IS INITIAL. " gitgraph doesn't support multiple tags per commit yet. " Therefore we concatenate them. " https://github.com/nicoespeon/gitgraph.js/issues/143 lv_tag = concat_lines_of( table = <ls_commit>-tags sep = ` | ` ). ri_html->add( |{ escape_branch( <ls_commit>-branch ) }.commit(\{message: "{ escape_message( <ls_commit>-message ) }", long: "{ escape_message( concat_lines_of( table = <ls_commit>-body sep = ` ` ) ) }", author: "{ <ls_commit>-author }", sha1: "{ <ls_commit>-sha1(7) }", tag: "{ lv_tag }", onClick:gBranchOveriew.onCommitClick.bind(gBranchOveriew)\});| ). ELSE. ri_html->add( |{ escape_branch( <ls_commit>-merge ) }.merge({ escape_branch( <ls_commit>-branch ) }, \{message: "{ escape_message( <ls_commit>-message ) }", long: "{ escape_message( concat_lines_of( table = <ls_commit>-body sep = ` ` ) ) }", author: "{ <ls_commit>-author }", sha1: "{ <ls_commit>-sha1(7) }", onClick:gBranchOveriew.onCommitClick.bind(gBranchOveriew)\});| ). ENDIF. LOOP AT <ls_commit>-create ASSIGNING <ls_create>. IF <ls_create>-name CS zcl_abapgit_branch_overview=>c_deleted_branch_name_prefix. lv_branch_display_name = ''. ELSE. lv_branch_display_name = <ls_create>-name. ENDIF. ri_html->add( |var { escape_branch( <ls_create>-name ) } = { escape_branch( <ls_create>-parent ) }.branch("{ lv_branch_display_name }");| ). ENDLOOP. ENDLOOP. ri_html->add( |gitGraph.addEventListener( "commit:mouseover", gBranchOveriew.showCommit.bind(gBranchOveriew) );| ). ri_html->add( |gitGraph.addEventListener( "commit:mouseout", gBranchOveriew.hideCommit.bind(gBranchOveriew) );| ). ri_html->add( '</script>' ). ri_html->add( '<script>' ). ri_html->add( 'setGitGraphScroller();' ). ri_html->add( '</script>' ). ri_html->add( render_commit_popups( ) ). ENDMETHOD. METHOD build_menu. ro_menu = NEW #( ). IF mv_compress = abap_true. ro_menu->add( iv_txt = 'Uncompress Graph' iv_act = c_actions-uncompress ). ELSE. ro_menu->add( iv_txt = 'Compress Graph' iv_act = c_actions-compress ). ENDIF. ro_menu->add( iv_txt = 'Refresh' iv_act = c_actions-refresh ). ENDMETHOD. METHOD constructor. super->constructor( ). ms_control-page_title = 'Branch Overview'. mo_repo = io_repo. refresh( ). ENDMETHOD. METHOD escape_branch. rv_string = iv_string. TRANSLATE rv_string USING '-_._#_'. rv_string = |branch_{ rv_string }|. ENDMETHOD. METHOD escape_message. rv_string = iv_string. REPLACE ALL OCCURRENCES OF '\' IN rv_string WITH '\\'. REPLACE ALL OCCURRENCES OF '"' IN rv_string WITH '\"'. ENDMETHOD. METHOD form_select. DATA: lv_name TYPE string, lt_branches TYPE zif_abapgit_definitions=>ty_git_branch_list_tt. FIELD-SYMBOLS: <ls_branch> LIKE LINE OF lt_branches. ri_html = NEW zcl_abapgit_html( ). lt_branches = mi_branch_overview->get_branches( ). ri_html->add( |<select name="{ iv_name }">| ). LOOP AT lt_branches ASSIGNING <ls_branch>. lv_name = <ls_branch>-name+11. ri_html->add( |<option value="{ lv_name }">{ lv_name }</option>| ). ENDLOOP. ri_html->add( '</select>' ). ENDMETHOD. METHOD refresh. mi_branch_overview = zcl_abapgit_factory=>get_branch_overview( mo_repo ). mt_commits = mi_branch_overview->get_commits( ). IF mv_compress = abap_true. mt_commits = mi_branch_overview->compress( mt_commits ). ENDIF. ENDMETHOD. METHOD render_commit_popups. DATA: lv_time TYPE c LENGTH 10, lv_date TYPE sy-datum, lv_content TYPE string. FIELD-SYMBOLS: <ls_commit> LIKE LINE OF mt_commits. ri_html = NEW zcl_abapgit_html( ). LOOP AT mt_commits ASSIGNING <ls_commit>. CLEAR: lv_time, lv_date. PERFORM p6_to_date_time_tz IN PROGRAM rstr0400 USING <ls_commit>-time lv_time lv_date. lv_content = |<table class="commit">| && | <tr>| && | <td class="title">Author</td>| && | <td>{ <ls_commit>-author }</td>| && | </tr>| && | <tr>| && | <td class="title">SHA1</td>| && | <td>{ <ls_commit>-sha1 }</td>| && | </tr>| && | <tr>| && | <td class="title">Date/Time</td>| && | <td>{ lv_date DATE = USER }</td>| && | </tr>| && | <tr>| && | <td class="title">Message</td>| && | <td>{ <ls_commit>-message }</td>| && | </tr>| && | <tr>|. IF <ls_commit>-body IS NOT INITIAL. lv_content = lv_content && |<td class="title">Body</td>| && |<td>{ concat_lines_of( table = <ls_commit>-body sep = |<br/>| ) }</td>|. ENDIF. lv_content = lv_content && | </tr>| && |</table>|. ri_html->add( zcl_abapgit_gui_chunk_lib=>render_commit_popup( iv_id = <ls_commit>-sha1(7) iv_content = lv_content ) ). ENDLOOP. ENDMETHOD. METHOD render_content. ri_html = NEW zcl_abapgit_html( ). ri_html->add( '<div id="toc">' ). ri_html->add( body( ) ). ri_html->add( '</div>' ). ENDMETHOD. METHOD render_merge. ri_html = NEW zcl_abapgit_html( ). ri_html->add( '<form id="commit_form" method="post" action="sapevent:merge">' ). ri_html->add( 'Merge' ). ri_html->add( form_select( 'source' ) ). ri_html->add( 'into' ). ri_html->add( form_select( 'target' ) ). ri_html->add( '<input type="submit" value="Submit">' ). ri_html->add( '</form>' ). ENDMETHOD. METHOD zif_abapgit_gui_event_handler~on_event. DATA: ls_merge TYPE ty_merge, lo_merge TYPE REF TO zcl_abapgit_gui_page_merge. CASE ii_event->mv_action. WHEN c_actions-refresh. refresh( ). rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render. WHEN c_actions-uncompress. mv_compress = abap_false. refresh( ). rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render. WHEN c_actions-compress. mv_compress = abap_true. refresh( ). rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render. WHEN c_actions-merge. ls_merge-source = ii_event->form_data( )->get( 'source' ). ls_merge-target = ii_event->form_data( )->get( 'target' ). lo_merge = NEW #( io_repo = mo_repo iv_source = ls_merge-source iv_target = ls_merge-target ). rs_handled-page = lo_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, 2127, 332, 1177, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 13, 628, 220, 44731, 44513, 13, 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, 33245, 62, 260, 7501, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 15596, 62, 30281, 93, 261, 62, 15596, 23848, 36, 20032, 17941, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 8543, 62, 11299, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 647, 469, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2723, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2496, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 647, 469, 764, 628, 220, 220, 220, 42865, 6941, 62, 260, 7501, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 5589, 601, 41876, 450, 499, 62, 30388, 26173, 8924, 450, 499, 62, 9562, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 42865, 45079, 62, 9503, 896, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 41509, 62, 926, 764, 198, 220, 220, 220, 42865, 21504, 62, 1671, 3702, 62, 2502, 1177, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 1671, 3702, 62, 2502, 1177, 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, 34318, 601, 41876, 4731, 26173, 8924, 705, 403, 5589, 601, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 27413, 220, 220, 41876, 4731, 26173, 8924, 705, 5589, 601, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 14976, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 5420, 3447, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 20121, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 647, 469, 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, 14976, 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, 1767, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 1296, 62, 19738, 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, 41876, 4731, 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, 220, 220, 220, 337, 36252, 50, 8543, 62, 647, 469, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 1382, 62, 26272, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 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, 764, 198, 220, 220, 220, 337, 36252, 50, 6654, 62, 1671, 3702, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8841, 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, 8841, 8, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252, 50, 6654, 62, 20500, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8841, 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, 8841, 8, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252, 50, 8543, 62, 41509, 62, 12924, 4739, 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, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 40156, 62, 4537, 8264, 62, 8202, 5959, 28206, 30023, 2538, 10979, 6234, 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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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 ]
CLASS zcl_excel_table DEFINITION PUBLIC FINAL CREATE PUBLIC . *"* public components of class ZCL_EXCEL_TABLE *"* do not include other source files here!!! PUBLIC SECTION. TYPE-POOLS abap . CONSTANTS builtinstyle_dark1 TYPE zexcel_table_style VALUE 'TableStyleDark1'. "#EC NOTEXT CONSTANTS builtinstyle_dark2 TYPE zexcel_table_style VALUE 'TableStyleDark2'. "#EC NOTEXT CONSTANTS builtinstyle_dark3 TYPE zexcel_table_style VALUE 'TableStyleDark3'. "#EC NOTEXT CONSTANTS builtinstyle_dark4 TYPE zexcel_table_style VALUE 'TableStyleDark4'. "#EC NOTEXT CONSTANTS builtinstyle_dark5 TYPE zexcel_table_style VALUE 'TableStyleDark5'. "#EC NOTEXT CONSTANTS builtinstyle_dark6 TYPE zexcel_table_style VALUE 'TableStyleDark6'. "#EC NOTEXT CONSTANTS builtinstyle_dark7 TYPE zexcel_table_style VALUE 'TableStyleDark7'. "#EC NOTEXT CONSTANTS builtinstyle_dark8 TYPE zexcel_table_style VALUE 'TableStyleDark8'. "#EC NOTEXT CONSTANTS builtinstyle_dark9 TYPE zexcel_table_style VALUE 'TableStyleDark9'. "#EC NOTEXT CONSTANTS builtinstyle_dark10 TYPE zexcel_table_style VALUE 'TableStyleDark10'. "#EC NOTEXT CONSTANTS builtinstyle_dark11 TYPE zexcel_table_style VALUE 'TableStyleDark11'. "#EC NOTEXT CONSTANTS builtinstyle_light1 TYPE zexcel_table_style VALUE 'TableStyleLight1'. "#EC NOTEXT CONSTANTS builtinstyle_light2 TYPE zexcel_table_style VALUE 'TableStyleLight2'. "#EC NOTEXT CONSTANTS builtinstyle_light3 TYPE zexcel_table_style VALUE 'TableStyleLight3'. "#EC NOTEXT CONSTANTS builtinstyle_light4 TYPE zexcel_table_style VALUE 'TableStyleLight4'. "#EC NOTEXT CONSTANTS builtinstyle_light5 TYPE zexcel_table_style VALUE 'TableStyleLight5'. "#EC NOTEXT CONSTANTS builtinstyle_pivot_light16 TYPE zexcel_table_style VALUE 'PivotStyleLight16'. "#EC NOTEXT CONSTANTS builtinstyle_light6 TYPE zexcel_table_style VALUE 'TableStyleLight6'. "#EC NOTEXT CONSTANTS totals_function_average TYPE zexcel_table_totals_function VALUE 'average'. "#EC NOTEXT CONSTANTS builtinstyle_light7 TYPE zexcel_table_style VALUE 'TableStyleLight7'. "#EC NOTEXT CONSTANTS totals_function_count TYPE zexcel_table_totals_function VALUE 'count'. "#EC NOTEXT CONSTANTS builtinstyle_light8 TYPE zexcel_table_style VALUE 'TableStyleLight8'. "#EC NOTEXT CONSTANTS totals_function_custom TYPE zexcel_table_totals_function VALUE 'custom'. "#EC NOTEXT CONSTANTS builtinstyle_light9 TYPE zexcel_table_style VALUE 'TableStyleLight9'. "#EC NOTEXT CONSTANTS totals_function_max TYPE zexcel_table_totals_function VALUE 'max'. "#EC NOTEXT CONSTANTS builtinstyle_light10 TYPE zexcel_table_style VALUE 'TableStyleLight10'. "#EC NOTEXT CONSTANTS totals_function_min TYPE zexcel_table_totals_function VALUE 'min'. "#EC NOTEXT CONSTANTS builtinstyle_light11 TYPE zexcel_table_style VALUE 'TableStyleLight11'. "#EC NOTEXT CONSTANTS totals_function_sum TYPE zexcel_table_totals_function VALUE 'sum'. "#EC NOTEXT CONSTANTS builtinstyle_light12 TYPE zexcel_table_style VALUE 'TableStyleLight12'. "#EC NOTEXT DATA fieldcat TYPE zexcel_t_fieldcatalog . CONSTANTS builtinstyle_light13 TYPE zexcel_table_style VALUE 'TableStyleLight13'. "#EC NOTEXT CONSTANTS builtinstyle_light14 TYPE zexcel_table_style VALUE 'TableStyleLight14'. "#EC NOTEXT DATA settings TYPE zexcel_s_table_settings . CONSTANTS builtinstyle_light15 TYPE zexcel_table_style VALUE 'TableStyleLight15'. "#EC NOTEXT CONSTANTS builtinstyle_light16 TYPE zexcel_table_style VALUE 'TableStyleLight16'. "#EC NOTEXT CONSTANTS builtinstyle_light17 TYPE zexcel_table_style VALUE 'TableStyleLight17'. "#EC NOTEXT CONSTANTS builtinstyle_light18 TYPE zexcel_table_style VALUE 'TableStyleLight18'. "#EC NOTEXT CONSTANTS builtinstyle_light19 TYPE zexcel_table_style VALUE 'TableStyleLight19'. "#EC NOTEXT CONSTANTS builtinstyle_light20 TYPE zexcel_table_style VALUE 'TableStyleLight20'. "#EC NOTEXT CONSTANTS builtinstyle_light21 TYPE zexcel_table_style VALUE 'TableStyleLight21'. "#EC NOTEXT CONSTANTS builtinstyle_medium1 TYPE zexcel_table_style VALUE 'TableStyleMedium1'. "#EC NOTEXT CONSTANTS builtinstyle_medium2 TYPE zexcel_table_style VALUE 'TableStyleMedium2'. "#EC NOTEXT CONSTANTS builtinstyle_medium3 TYPE zexcel_table_style VALUE 'TableStyleMedium3'. "#EC NOTEXT CONSTANTS builtinstyle_medium4 TYPE zexcel_table_style VALUE 'TableStyleMedium4'. "#EC NOTEXT CONSTANTS builtinstyle_medium5 TYPE zexcel_table_style VALUE 'TableStyleMedium5'. "#EC NOTEXT CONSTANTS builtinstyle_medium6 TYPE zexcel_table_style VALUE 'TableStyleMedium6'. "#EC NOTEXT CONSTANTS builtinstyle_medium7 TYPE zexcel_table_style VALUE 'TableStyleMedium7'. "#EC NOTEXT CONSTANTS builtinstyle_medium8 TYPE zexcel_table_style VALUE 'TableStyleMedium8'. "#EC NOTEXT CONSTANTS builtinstyle_medium9 TYPE zexcel_table_style VALUE 'TableStyleMedium9'. "#EC NOTEXT CONSTANTS builtinstyle_medium10 TYPE zexcel_table_style VALUE 'TableStyleMedium10'. "#EC NOTEXT CONSTANTS builtinstyle_medium11 TYPE zexcel_table_style VALUE 'TableStyleMedium11'. "#EC NOTEXT CONSTANTS builtinstyle_medium12 TYPE zexcel_table_style VALUE 'TableStyleMedium12'. "#EC NOTEXT CONSTANTS builtinstyle_medium13 TYPE zexcel_table_style VALUE 'TableStyleMedium13'. "#EC NOTEXT CONSTANTS builtinstyle_medium14 TYPE zexcel_table_style VALUE 'TableStyleMedium14'. "#EC NOTEXT CONSTANTS builtinstyle_medium15 TYPE zexcel_table_style VALUE 'TableStyleMedium15'. "#EC NOTEXT CONSTANTS builtinstyle_medium16 TYPE zexcel_table_style VALUE 'TableStyleMedium16'. "#EC NOTEXT CONSTANTS builtinstyle_medium17 TYPE zexcel_table_style VALUE 'TableStyleMedium17'. "#EC NOTEXT CONSTANTS builtinstyle_medium18 TYPE zexcel_table_style VALUE 'TableStyleMedium18'. "#EC NOTEXT CONSTANTS builtinstyle_medium19 TYPE zexcel_table_style VALUE 'TableStyleMedium19'. "#EC NOTEXT CONSTANTS builtinstyle_medium20 TYPE zexcel_table_style VALUE 'TableStyleMedium20'. "#EC NOTEXT CONSTANTS builtinstyle_medium21 TYPE zexcel_table_style VALUE 'TableStyleMedium21'. "#EC NOTEXT CONSTANTS builtinstyle_medium22 TYPE zexcel_table_style VALUE 'TableStyleMedium22'. "#EC NOTEXT CONSTANTS builtinstyle_medium23 TYPE zexcel_table_style VALUE 'TableStyleMedium23'. "#EC NOTEXT CONSTANTS builtinstyle_medium24 TYPE zexcel_table_style VALUE 'TableStyleMedium24'. "#EC NOTEXT CONSTANTS builtinstyle_medium25 TYPE zexcel_table_style VALUE 'TableStyleMedium26'. "#EC NOTEXT CONSTANTS builtinstyle_medium27 TYPE zexcel_table_style VALUE 'TableStyleMedium27'. "#EC NOTEXT METHODS get_totals_formula IMPORTING !ip_column TYPE clike !ip_function TYPE zexcel_table_totals_function RETURNING VALUE(ep_formula) TYPE string RAISING zcx_excel . METHODS has_totals RETURNING VALUE(ep_result) TYPE abap_bool . METHODS set_data IMPORTING !ir_data TYPE STANDARD TABLE . METHODS get_id RETURNING VALUE(ov_id) TYPE i . METHODS set_id IMPORTING !iv_id TYPE i . METHODS get_name RETURNING VALUE(ov_name) TYPE string . METHODS get_reference IMPORTING !ip_include_totals_row TYPE abap_bool DEFAULT abap_true RETURNING VALUE(ov_reference) TYPE string RAISING zcx_excel . METHODS get_bottom_row_integer RETURNING VALUE(ev_row) TYPE i . METHODS get_right_column_integer RETURNING VALUE(ev_column) TYPE i RAISING zcx_excel . *"* protected components of class ZCL_EXCEL_TABLE *"* do not include other source files here!!! *"* protected components of class ZCL_EXCEL_TABLE *"* do not include other source files here!!! *"* protected components of class ZCL_EXCEL_TABLE *"* do not include other source files here!!! PROTECTED SECTION. PRIVATE SECTION. DATA id TYPE i . DATA name TYPE string . DATA table_data TYPE REF TO data . DATA builtinstyle_medium28 TYPE zexcel_table_style VALUE 'TableStyleMedium28'. "#EC NOTEXT . . . " . ENDCLASS. CLASS zcl_excel_table IMPLEMENTATION. METHOD get_bottom_row_integer. DATA: lv_table_lines TYPE i. FIELD-SYMBOLS: <fs_table> TYPE STANDARD TABLE. IF settings-bottom_right_row IS NOT INITIAL. * ev_row = zcl_excel_common=>convert_column2int( settings-bottom_right_row ). " del issue #246 ev_row = settings-bottom_right_row . " ins issue #246 RETURN. ENDIF. ASSIGN table_data->* TO <fs_table>. DESCRIBE TABLE <fs_table> LINES lv_table_lines. IF lv_table_lines = 0. lv_table_lines = 1. "table needs at least 1 data row ENDIF. ev_row = settings-top_left_row + lv_table_lines. IF me->has_totals( ) = abap_true." ???? AND ip_include_totals_row = abap_true. ADD 1 TO ev_row. ENDIF. ENDMETHOD. METHOD get_id. ov_id = id. ENDMETHOD. METHOD get_name. IF me->name IS INITIAL. me->name = zcl_excel_common=>number_to_excel_string( ip_value = me->id ). CONCATENATE 'table' me->name INTO me->name. ENDIF. ov_name = me->name. ENDMETHOD. METHOD get_reference. DATA: lv_column TYPE zexcel_cell_column, lv_table_lines TYPE i, lv_right_column TYPE zexcel_cell_column_alpha, ls_field_catalog TYPE zexcel_s_fieldcatalog, lv_bottom_row TYPE zexcel_cell_row, lv_top_row_string(10) TYPE c, lv_bottom_row_string(10) TYPE c. FIELD-SYMBOLS: <fs_table> TYPE STANDARD TABLE. *column lv_column = zcl_excel_common=>convert_column2int( settings-top_left_column ). lv_table_lines = 0. LOOP AT fieldcat INTO ls_field_catalog WHERE dynpfld EQ abap_true. ADD 1 TO lv_table_lines. ENDLOOP. lv_column = lv_column + lv_table_lines - 1. lv_right_column = zcl_excel_common=>convert_column2alpha( lv_column ). *row ASSIGN table_data->* TO <fs_table>. DESCRIBE TABLE <fs_table> LINES lv_table_lines. IF lv_table_lines = 0. lv_table_lines = 1. "table needs at least 1 data row ENDIF. lv_bottom_row = settings-top_left_row + lv_table_lines . IF me->has_totals( ) = abap_true AND ip_include_totals_row = abap_true. ADD 1 TO lv_bottom_row. ENDIF. lv_top_row_string = zcl_excel_common=>number_to_excel_string( settings-top_left_row ). lv_bottom_row_string = zcl_excel_common=>number_to_excel_string( lv_bottom_row ). CONCATENATE settings-top_left_column lv_top_row_string ':' lv_right_column lv_bottom_row_string INTO ov_reference. ENDMETHOD. METHOD get_right_column_integer. DATA: ls_field_catalog TYPE zexcel_s_fieldcatalog. IF settings-bottom_right_column IS NOT INITIAL. ev_column = zcl_excel_common=>convert_column2int( settings-bottom_right_column ). RETURN. ENDIF. ev_column = zcl_excel_common=>convert_column2int( settings-top_left_column ). LOOP AT fieldcat INTO ls_field_catalog WHERE dynpfld EQ abap_true. ADD 1 TO ev_column. ENDLOOP. ENDMETHOD. METHOD get_totals_formula. CONSTANTS: lc_function_id_sum TYPE string VALUE '109', lc_function_id_min TYPE string VALUE '105', lc_function_id_max TYPE string VALUE '104', lc_function_id_count TYPE string VALUE '103', lc_function_id_average TYPE string VALUE '101'. DATA: lv_function_id TYPE string. CASE ip_function. WHEN zcl_excel_table=>totals_function_sum. lv_function_id = lc_function_id_sum. WHEN zcl_excel_table=>totals_function_min. lv_function_id = lc_function_id_min. WHEN zcl_excel_table=>totals_function_max. lv_function_id = lc_function_id_max. WHEN zcl_excel_table=>totals_function_count. lv_function_id = lc_function_id_count. WHEN zcl_excel_table=>totals_function_average. lv_function_id = lc_function_id_average. WHEN zcl_excel_table=>totals_function_custom. " issue #292 RETURN. WHEN OTHERS. zcx_excel=>raise_text( 'Invalid totals formula. See ZCL_ for possible values' ). ENDCASE. CONCATENATE 'SUBTOTAL(' lv_function_id ',[' ip_column '])' INTO ep_formula. ENDMETHOD. METHOD has_totals. DATA: ls_field_catalog TYPE zexcel_s_fieldcatalog. ep_result = abap_false. LOOP AT fieldcat INTO ls_field_catalog. IF ls_field_catalog-totals_function IS NOT INITIAL. ep_result = abap_true. EXIT. ENDIF. ENDLOOP. ENDMETHOD. METHOD set_data. DATA lr_temp TYPE REF TO data. FIELD-SYMBOLS: <lt_table_temp> TYPE ANY TABLE, <lt_table> TYPE ANY TABLE. GET REFERENCE OF ir_data INTO lr_temp. ASSIGN lr_temp->* TO <lt_table_temp>. CREATE DATA table_data LIKE <lt_table_temp>. ASSIGN me->table_data->* TO <lt_table>. <lt_table> = <lt_table_temp>. ENDMETHOD. METHOD set_id. id = iv_id. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 1069, 5276, 62, 11487, 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, 38148, 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, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 21953, 16, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 17367, 16, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 21953, 17, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 17367, 17, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 21953, 18, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 17367, 18, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 21953, 19, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 17367, 19, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 21953, 20, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 17367, 20, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 21953, 21, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 17367, 21, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 21953, 22, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 17367, 22, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 21953, 23, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 17367, 23, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 21953, 24, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 17367, 24, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 21953, 940, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 17367, 940, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 21953, 1157, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 17367, 1157, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 2971, 16, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 15047, 16, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 2971, 17, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 15047, 17, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 2971, 18, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 15047, 18, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 2971, 19, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 15047, 19, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 2971, 20, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 15047, 20, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 79, 45785, 62, 2971, 1433, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 47, 45785, 21466, 15047, 1433, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 2971, 21, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 15047, 21, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 26310, 62, 8818, 62, 23913, 41876, 1976, 1069, 5276, 62, 11487, 62, 83, 313, 874, 62, 8818, 26173, 8924, 705, 23913, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 2971, 22, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 15047, 22, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 26310, 62, 8818, 62, 9127, 41876, 1976, 1069, 5276, 62, 11487, 62, 83, 313, 874, 62, 8818, 26173, 8924, 705, 9127, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 2971, 23, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 15047, 23, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 26310, 62, 8818, 62, 23144, 41876, 1976, 1069, 5276, 62, 11487, 62, 83, 313, 874, 62, 8818, 26173, 8924, 705, 23144, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 2971, 24, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 15047, 24, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 26310, 62, 8818, 62, 9806, 41876, 1976, 1069, 5276, 62, 11487, 62, 83, 313, 874, 62, 8818, 26173, 8924, 705, 9806, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 2971, 940, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 15047, 940, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 26310, 62, 8818, 62, 1084, 41876, 1976, 1069, 5276, 62, 11487, 62, 83, 313, 874, 62, 8818, 26173, 8924, 705, 1084, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 3170, 259, 7635, 62, 2971, 1157, 41876, 1976, 1069, 5276, 62, 11487, 62, 7635, 26173, 8924, 705, 10962, 21466, 15047, 1157, 4458, 25113, 2943, 5626 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS ltcl_html DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. DATA: mo_html TYPE REF TO zif_abapgit_html. METHODS: indent1 FOR TESTING RAISING zcx_abapgit_exception, indent2 FOR TESTING RAISING zcx_abapgit_exception, indent3 FOR TESTING RAISING zcx_abapgit_exception, indent4 FOR TESTING RAISING zcx_abapgit_exception, style1 FOR TESTING RAISING zcx_abapgit_exception. METHODS: setup. ENDCLASS. CLASS ltcl_html IMPLEMENTATION. METHOD setup. mo_html = NEW zcl_abapgit_html( ). ENDMETHOD. METHOD indent1. DATA lv_exp TYPE string. mo_html->add( '<td>' ). mo_html->add( 'hello world' ). mo_html->add( '</td>' ). lv_exp = '<td>' && cl_abap_char_utilities=>newline && ' hello world' && cl_abap_char_utilities=>newline && '</td>'. cl_abap_unit_assert=>assert_equals( act = mo_html->render( ) exp = lv_exp ). ENDMETHOD. METHOD indent2. DATA lv_exp TYPE string. mo_html->add( '<td>' ). mo_html->add( '<input name="comment" type="text">' ). mo_html->add( '</td>' ). lv_exp = '<td>' && cl_abap_char_utilities=>newline && ' <input name="comment" type="text">' && cl_abap_char_utilities=>newline && '</td>'. cl_abap_unit_assert=>assert_equals( act = mo_html->render( ) exp = lv_exp ). ENDMETHOD. METHOD indent3. DATA lv_exp TYPE string. mo_html->add( '<td>' ). mo_html->add( '<textarea name="body" rows="10" cols="72"></textarea>' ). mo_html->add( '</td>' ). lv_exp = '<td>' && cl_abap_char_utilities=>newline && ' <textarea name="body" rows="10" cols="72"></textarea>' && cl_abap_char_utilities=>newline && '</td>'. cl_abap_unit_assert=>assert_equals( act = mo_html->render( ) exp = lv_exp ). ENDMETHOD. METHOD indent4. DATA lv_exp TYPE string. mo_html->add( '<td>' ). mo_html->add( 'foo<br>bar' ). mo_html->add( '</td>' ). lv_exp = '<td>' && cl_abap_char_utilities=>newline && ' foo<br>bar' && cl_abap_char_utilities=>newline && '</td>'. cl_abap_unit_assert=>assert_equals( act = mo_html->render( ) exp = lv_exp ). ENDMETHOD. METHOD style1. DATA lv_exp TYPE string. mo_html->add( '<style type="text/css">' ). mo_html->add( '.class1 { color: red }' ). mo_html->add( '.class2 {' ). mo_html->add( 'color: red' ). mo_html->add( '}' ). mo_html->add( '</style>' ). lv_exp = '<style type="text/css">' && cl_abap_char_utilities=>newline && ' .class1 { color: red }' && cl_abap_char_utilities=>newline && ' .class2 {' && cl_abap_char_utilities=>newline && ' color: red' && cl_abap_char_utilities=>newline && ' }' && cl_abap_char_utilities=>newline && '</style>'. cl_abap_unit_assert=>assert_equals( act = mo_html->render( ) exp = lv_exp ). ENDMETHOD. ENDCLASS.
[ 198, 31631, 300, 83, 565, 62, 6494, 5550, 20032, 17941, 7473, 43001, 2751, 360, 4261, 6234, 6006, 9863, 45698, 42, 49277, 43638, 5805, 7597, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 6941, 62, 6494, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 33793, 16, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 33793, 17, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 33793, 18, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 33793, 19, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 3918, 16, 220, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 9058, 13, 198, 198, 10619, 31631, 13, 628, 198, 31631, 300, 83, 565, 62, 6494, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 9058, 13, 198, 220, 220, 220, 6941, 62, 6494, 796, 12682, 1976, 565, 62, 397, 499, 18300, 62, 6494, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 33793, 16, 13, 628, 220, 220, 220, 42865, 300, 85, 62, 11201, 41876, 4731, 13, 628, 220, 220, 220, 6941, 62, 6494, 3784, 2860, 7, 705, 27, 8671, 29, 6, 6739, 198, 220, 220, 220, 6941, 62, 6494, 3784, 2860, 7, 705, 31373, 995, 6, 6739, 198, 220, 220, 220, 6941, 62, 6494, 3784, 2860, 7, 705, 3556, 8671, 29, 6, 6739, 628, 220, 220, 220, 300, 85, 62, 11201, 796, 705, 27, 8671, 29, 6, 11405, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 3605, 1370, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 220, 23748, 995, 6, 11405, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 3605, 1370, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3556, 8671, 29, 4458, 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, 6941, 62, 6494, 3784, 13287, 7, 1267, 198, 220, 220, 220, 220, 220, 1033, 796, 300, 85, 62, 11201, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 33793, 17, 13, 628, 220, 220, 220, 42865, 300, 85, 62, 11201, 41876, 4731, 13, 628, 220, 220, 220, 6941, 62, 6494, 3784, 2860, 7, 705, 27, 8671, 29, 6, 6739, 198, 220, 220, 220, 6941, 62, 6494, 3784, 2860, 7, 705, 27, 15414, 1438, 2625, 23893, 1, 2099, 2625, 5239, 5320, 6, 6739, 198, 220, 220, 220, 6941, 62, 6494, 3784, 2860, 7, 705, 3556, 8671, 29, 6, 6739, 628, 220, 220, 220, 300, 85, 62, 11201, 796, 705, 27, 8671, 29, 6, 11405, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 3605, 1370, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 220, 1279, 15414, 1438, 2625, 23893, 1, 2099, 2625, 5239, 5320, 6, 11405, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 3605, 1370, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3556, 8671, 29, 4458, 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, 6941, 62, 6494, 3784, 13287, 7, 1267, 198, 220, 220, 220, 220, 220, 1033, 796, 300, 85, 62, 11201, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 33793, 18, 13, 628, 220, 220, 220, 42865, 300, 85, 62, 11201, 41876, 4731, 13, 628, 220, 220, 220, 6941, 62, 6494, 3784, 2860, 7, 705, 27, 8671, 29, 6, 6739, 198, 220, 220, 220, 6941, 62, 6494, 3784, 2860, 7, 705, 27, 5239, 20337, 1438, 2625, 2618, 1, 15274, 2625, 940, 1, 951, 82, 2625, 4761, 23984, 5239, 20337, 29, 6, 6739, 198, 220, 220, 220, 6941, 62, 6494, 3784, 2860, 7, 705, 3556, 8671, 29, 6, 6739, 628, 220, 220, 220, 300, 85, 62, 11201, 796, 705, 27, 8671, 29, 6, 11405, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 3605, 1370, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 220, 1279, 5239, 20337, 1438, 2625, 2618, 1, 15274, 2625, 940, 1, 951, 82, 2625, 4761, 23984, 5239, 20337, 29, 6, 11405, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 3605, 1370, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3556, 8671, 29, 4458, 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, 6941, 62, 6494, 3784, 13287, 7, 1267, 198, 220, 220, 220, 220, 220, 1033, 796, 300, 85, 62, 11201, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 33793, 19, 13, 628, 220, 220, 220, 42865, 300, 85, 62, 11201, 41876, 4731, 13, 628, 220, 220, 220, 6941, 62, 6494, 3784, 2860, 7, 705, 27, 8671, 29, 6, 6739, 198, 220, 220, 220, 6941, 62, 6494, 3784, 2860, 7, 705, 21943, 27, 1671, 29, 5657, 6, 6739, 198, 220, 220, 220, 6941, 62, 6494, 3784, 2860, 7, 705, 3556, 8671, 29, 6, 6739, 628, 220, 220, 220, 300, 85, 62, 11201, 796, 705, 27, 8671, 29, 6, 11405, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 3605, 1370, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 220, 22944, 27, 1671, 29, 5657, 6, 11405, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 3605, 1370, 11405, 198, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_abapgit_gui_page_main DEFINITION PUBLIC FINAL CREATE PUBLIC INHERITING FROM zcl_abapgit_gui_page. PUBLIC SECTION. INTERFACES: zif_abapgit_gui_hotkeys. METHODS: constructor IMPORTING iv_only_favorites TYPE abap_bool RAISING zcx_abapgit_exception, zif_abapgit_gui_event_handler~on_event REDEFINITION. PROTECTED SECTION. METHODS: render_content REDEFINITION. PRIVATE SECTION. CONSTANTS: BEGIN OF c_actions, show TYPE string VALUE 'show' ##NO_TEXT, overview TYPE string VALUE 'overview', select TYPE string VALUE 'select', apply_filter TYPE string VALUE 'apply_filter', abapgit_home TYPE string VALUE 'abapgit_home', END OF c_actions. DATA: mo_repo_overview TYPE REF TO zcl_abapgit_gui_page_repo_over, mv_repo_key TYPE zif_abapgit_persistence=>ty_value, mv_only_favorites TYPE abap_bool. METHODS build_main_menu RETURNING VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar. ENDCLASS. CLASS zcl_abapgit_gui_page_main IMPLEMENTATION. METHOD build_main_menu. CREATE OBJECT ro_menu EXPORTING iv_id = 'toolbar-main'. ro_menu->add( iv_txt = zcl_abapgit_gui_buttons=>new_online( ) iv_act = zif_abapgit_definitions=>c_action-repo_newonline )->add( iv_txt = zcl_abapgit_gui_buttons=>new_offline( ) iv_act = zif_abapgit_definitions=>c_action-repo_newoffline )->add( iv_txt = zcl_abapgit_gui_buttons=>settings( ) iv_act = zif_abapgit_definitions=>c_action-go_settings )->add( iv_txt = zcl_abapgit_gui_buttons=>advanced( ) iv_title = 'Utilities' io_sub = zcl_abapgit_gui_chunk_lib=>advanced_submenu( ) )->add( iv_txt = zcl_abapgit_gui_buttons=>help( ) iv_title = 'Help' io_sub = zcl_abapgit_gui_chunk_lib=>help_submenu( ) ). ENDMETHOD. METHOD constructor. super->constructor( ). ms_control-page_menu = build_main_menu( ). ms_control-page_title = 'Repository List'. mv_only_favorites = iv_only_favorites. ENDMETHOD. METHOD render_content. CREATE OBJECT ri_html TYPE zcl_abapgit_html. gui_services( )->get_hotkeys_ctl( )->register_hotkeys( zif_abapgit_gui_hotkeys~get_hotkey_actions( ) ). IF mo_repo_overview IS INITIAL OR mo_repo_overview->mv_only_favorites <> mv_only_favorites. CREATE OBJECT mo_repo_overview EXPORTING iv_only_favorites = mv_only_favorites. ENDIF. ri_html->add( mo_repo_overview->zif_abapgit_gui_renderable~render( ) ). register_deferred_script( zcl_abapgit_gui_chunk_lib=>render_repo_palette( iv_action = c_actions-select iv_only_favorites = mv_only_favorites ) ). ENDMETHOD. METHOD zif_abapgit_gui_event_handler~on_event. DATA: lv_key TYPE zif_abapgit_persistence=>ty_value. lv_key = ii_event->query( )->get( 'KEY' ). CASE ii_event->mv_action. WHEN c_actions-abapgit_home. CLEAR mv_repo_key. rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render. WHEN c_actions-select. zcl_abapgit_persistence_user=>get_instance( )->set_repo_show( lv_key ). TRY. zcl_abapgit_repo_srv=>get_instance( )->get( lv_key )->refresh( ). CATCH zcx_abapgit_exception ##NO_HANDLER. ENDTRY. mv_repo_key = lv_key. CREATE OBJECT rs_handled-page TYPE zcl_abapgit_gui_page_repo_view EXPORTING iv_key = lv_key. rs_handled-state = zcl_abapgit_gui=>c_event_state-new_page. WHEN zif_abapgit_definitions=>c_action-change_order_by. mo_repo_overview->set_order_by( ii_event->query( )->get( 'ORDERBY' ) ). rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render. WHEN zif_abapgit_definitions=>c_action-toggle_favorites. mv_only_favorites = ii_event->query( )->get( 'FAVORITES' ). rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render. WHEN zif_abapgit_definitions=>c_action-direction. mo_repo_overview->set_order_direction( boolc( ii_event->query( )->get( 'DIRECTION' ) = 'DESCENDING' ) ). rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render. WHEN c_actions-apply_filter. mo_repo_overview->set_filter( ii_event->mt_postdata ). rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render. WHEN zif_abapgit_definitions=>c_action-go_patch. CREATE OBJECT rs_handled-page TYPE zcl_abapgit_gui_page_patch EXPORTING iv_key = lv_key. 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. METHOD zif_abapgit_gui_hotkeys~get_hotkey_actions. DATA: ls_hotkey_action LIKE LINE OF rt_hotkey_actions. ls_hotkey_action-ui_component = 'Main'. ls_hotkey_action-description = |abapGit Settings|. ls_hotkey_action-action = zif_abapgit_definitions=>c_action-go_settings. ls_hotkey_action-hotkey = |x|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. ls_hotkey_action-description = |New Online Repository|. ls_hotkey_action-action = zif_abapgit_definitions=>c_action-repo_newonline. ls_hotkey_action-hotkey = |n|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. ls_hotkey_action-description = |New Offline Repository|. ls_hotkey_action-action = zif_abapgit_definitions=>c_action-repo_newoffline. ls_hotkey_action-hotkey = |o|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. ls_hotkey_action-description = |Stage|. ls_hotkey_action-action = zif_abapgit_definitions=>c_action-go_stage. ls_hotkey_action-hotkey = |s|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. ls_hotkey_action-description = |Diff|. ls_hotkey_action-action = zif_abapgit_definitions=>c_action-go_repo_diff. ls_hotkey_action-hotkey = |d|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. ls_hotkey_action-description = |Check|. ls_hotkey_action-action = zif_abapgit_definitions=>c_action-repo_code_inspector. ls_hotkey_action-hotkey = |c|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. ls_hotkey_action-description = |Pull|. ls_hotkey_action-action = zif_abapgit_definitions=>c_action-git_reset. ls_hotkey_action-hotkey = |p|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. ls_hotkey_action-description = |Patch|. ls_hotkey_action-action = zif_abapgit_definitions=>c_action-go_patch. ls_hotkey_action-hotkey = |p|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. " registered/handled in js ls_hotkey_action-description = |Previous Repository|. ls_hotkey_action-action = `#`. ls_hotkey_action-hotkey = |4|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. ls_hotkey_action-description = |Next Repository|. ls_hotkey_action-action = `##`. ls_hotkey_action-hotkey = |6|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. ls_hotkey_action-description = |Open Repository|. ls_hotkey_action-action = `###`. ls_hotkey_action-hotkey = |Enter|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 12417, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 8940, 13083, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 8807, 62, 69, 5570, 2737, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 15596, 62, 30281, 93, 261, 62, 15596, 23848, 36, 20032, 17941, 13, 628, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 8543, 62, 11299, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 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, 905, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 12860, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 16700, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 2502, 1177, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 2922, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 19738, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 4174, 62, 24455, 41876, 4731, 26173, 8924, 705, 39014, 62, 24455, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 450, 499, 18300, 62, 11195, 41876, 4731, 26173, 8924, 705, 397, 499, 18300, 62, 11195, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 4658, 13, 628, 220, 220, 220, 42865, 25, 6941, 62, 260, 7501, 62, 2502, 1177, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 260, 7501, 62, 2502, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 85, 62, 260, 7501, 62, 2539, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 8367, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 85, 62, 8807, 62, 69, 5570, 2737, 41876, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 337, 36252, 50, 1382, 62, 12417, 62, 26272, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 26272, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 25981, 5657, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 12417, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1382, 62, 12417, 62, 26272, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 686, 62, 26272, 7788, 15490, 2751, 21628, 62, 312, 796, 705, 25981, 5657, 12, 12417, 4458, 628, 220, 220, 220, 686, 62, 26272, 3784, 2860, 7, 198, 220, 220, 220, 220, 220, 21628, 62, 14116, 796, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 4360, 27288, 14804, 3605, 62, 25119, 7, 1267, 198, 220, 220, 220, 220, 220, 21628, 62, 529, 796, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 66, 62, 2673, 12, 260, 7501, 62, 3605, 25119, 198, 220, 220, 220, 1267, 3784, 2860, 7, 198, 220, 220, 220, 220, 220, 21628, 62, 14116, 796, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 4360, 27288, 14804, 3605, 62, 2364, 1370, 7, 1267, 198, 220, 220, 220, 220, 220, 21628, 62, 529, 796, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 66, 62, 2673, 12, 260, 7501, 62, 3605, 2364, 1370, 198, 220, 220, 220, 1267, 3784, 2860, 7, 198, 220, 220, 220, 220, 220, 21628, 62, 14116, 796, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 4360, 27288, 14804, 33692, 7, 1267, 198, 220, 220, 220, 220, 220, 21628, 62, 529, 796, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 66, 62, 2673, 12, 2188, 62, 33692, 198, 220, 220, 220, 1267, 3784, 2860, 7, 198, 220, 220, 220, 220, 220, 21628, 62, 14116, 796, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 4360, 27288, 14804, 32225, 2903, 7, 1267, 198, 220, 220, 220, 220, 220, 21628, 62, 7839, 796, 705, 18274, 2410, 6, 198, 220, 220, 220, 220, 220, 33245, 62, 7266, 796, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 354, 2954, 62, 8019, 14804, 32225, 2903, 62, 7266, 26272, 7, 1267, 198, 220, 220, 220, 1267, 3784, 2860, 7, 198, 220, 220, 220, 220, 220, 21628, 62, 14116, 796, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 4360, 27288, 14804, 16794, 7, 1267, 198, 220, 220, 220, 220, 220, 21628, 62, 7839, 796, 705, 22087, 6, 198, 220, 220, 220, 220, 220, 33245, 62, 7266, 796, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 354, 2954, 62, 8019, 14804, 16794, 62, 7266, 26272, 7, 1267, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 198, 220, 220, 220, 13845, 62, 13716, 12, 7700, 62, 26272, 220, 796, 1382, 62, 12417, 62, 26272, 7, 6739, 198, 220, 220, 220, 13845, 62, 13716, 12, 7700, 62, 7839, 796, 705, 6207, 13264, 7343, 4458, 198, 220, 220, 220, 285, 85, 62, 8807, 62, 69, 5570, 2737, 796, 21628, 62, 8807, 62, 69, 5570, 2737, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 8543, 62, 11299, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 374, 72, 62, 6494, 41876, 1976, 565, 62, 397, 499, 18300, 62, 6494, 13, 628, 220, 220, 220, 11774, 62, 30416, 7, 1267, 3784, 1136, 62, 8940, 13083 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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zcl_adcoset_csp_fugr DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. INTERFACES zif_adcoset_code_search_prov. METHODS: "! <p class="shorttext synchronized" lang="en">Creates new instance of a function group search provider</p> constructor IMPORTING search_settings TYPE zif_adcoset_ty_global=>ty_search_settings matchers TYPE zif_adcoset_pattern_matcher=>ty_ref_tab. PROTECTED SECTION. PRIVATE SECTION. CONSTANTS: BEGIN OF c_include_types, function TYPE string VALUE 'FUGR/FF', include TYPE string VALUE 'FUGR/I', END OF c_include_types. DATA: search_settings TYPE zif_adcoset_ty_global=>ty_search_settings, matchers TYPE zif_adcoset_pattern_matcher=>ty_ref_tab. TYPES: BEGIN OF ty_fugr_incl, name TYPE progname, is_function_include TYPE abap_bool, func_name TYPE rs38l_fnam, adt_type TYPE string, END OF ty_fugr_incl, ty_fugr_includes TYPE SORTED TABLE OF ty_fugr_incl WITH UNIQUE KEY name. METHODS: get_fugr_includes IMPORTING include_prefix TYPE progname RETURNING VALUE(result) TYPE ty_fugr_includes, get_fugr_include_info IMPORTING fugr_name TYPE rs38l_area EXPORTING VALUE(fugr_main_prog) TYPE progname VALUE(fugr_include_prefix) TYPE progname, assign_objects_to_matches IMPORTING unassigned_matches TYPE zif_adcoset_ty_global=>ty_search_matches object TYPE zif_adcoset_ty_global=>ty_tadir_object include TYPE ty_fugr_incl CHANGING all_matches TYPE zif_adcoset_ty_global=>ty_search_matches, get_function_includes IMPORTING fugr_program_name TYPE progname RETURNING VALUE(result) TYPE ty_fugr_includes, mixin_function_names IMPORTING fugr_program_name TYPE progname CHANGING includes TYPE ty_fugr_includes. ENDCLASS. CLASS zcl_adcoset_csp_fugr IMPLEMENTATION. METHOD constructor. me->search_settings = search_settings. me->matchers = matchers. ENDMETHOD. METHOD zif_adcoset_code_search_prov~search. DATA: function_names_loaded TYPE abap_bool. DATA(fugr_name) = CONV rs38l_area( object-name ). get_fugr_include_info( EXPORTING fugr_name = fugr_name IMPORTING fugr_main_prog = DATA(fugr_include) fugr_include_prefix = DATA(fugr_include_prefix) ). IF fugr_include IS INITIAL. RETURN. ENDIF. DATA(includes) = get_fugr_includes( fugr_include_prefix ). IF includes IS INITIAL. RETURN. ENDIF. LOOP AT includes ASSIGNING FIELD-SYMBOL(<include>). TRY. DATA(source_code) = src_code_reader->get_source_code( name = <include>-name ). DATA(matches) = source_code->find_matches( matchers = matchers match_all = search_settings-match_all_patterns ignore_comment_lines = search_settings-ignore_comment_lines ). CHECK matches IS NOT INITIAL. IF <include>-is_function_include = abap_true AND function_names_loaded = abap_false. mixin_function_names( EXPORTING fugr_program_name = fugr_include CHANGING includes = includes ). function_names_loaded = abap_true. ENDIF. assign_objects_to_matches( EXPORTING unassigned_matches = matches object = object include = <include> CHANGING all_matches = result ). CATCH zcx_adcoset_src_code_read ##NO_HANDLER. ENDTRY. ENDLOOP. ENDMETHOD. METHOD get_fugr_includes. DATA: is_reserved_name TYPE abap_bool, is_no_func_include TYPE abap_bool, is_no_func_module TYPE abap_bool, include_suffix TYPE c LENGTH 3. DATA(include_pattern) = CONV progname( |{ include_prefix }___| ). SELECT name FROM trdir WHERE name LIKE @include_pattern INTO TABLE @DATA(includes). IF includes IS INITIAL. RETURN. ENDIF. LOOP AT includes ASSIGNING FIELD-SYMBOL(<include_key>). DATA(include_name) = <include_key>-name. CALL FUNCTION 'FUNCTION_INCLUDE_SPLIT' IMPORTING no_function_include = is_no_func_include no_function_module = is_no_func_module reserved_name = is_reserved_name suffix = include_suffix CHANGING include = include_name EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. CONTINUE. ELSEIF is_reserved_name = abap_true AND ( is_no_func_module = abap_true ). CONTINUE. ENDIF. INSERT VALUE #( name = <include_key>-name ) INTO TABLE result ASSIGNING FIELD-SYMBOL(<new_include>). IF include_suffix(1) = 'U'. <new_include>-is_function_include = abap_true. <new_include>-adt_type = c_include_types-function. ELSE. <new_include>-adt_type = c_include_types-include. ENDIF. ENDLOOP. ENDMETHOD. METHOD get_fugr_include_info. DATA: group_wo_namespace TYPE rs38l_area, namespace TYPE namespace. CALL FUNCTION 'FUNCTION_INCLUDE_SPLIT' EXPORTING complete_area = fugr_name IMPORTING namespace = namespace group = group_wo_namespace CHANGING include = fugr_main_prog EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. RETURN. ENDIF. fugr_main_prog = |{ namespace }SAPL{ group_wo_namespace }|. fugr_include_prefix = |{ namespace }L{ group_wo_namespace }|. ENDMETHOD. METHOD assign_objects_to_matches. LOOP AT unassigned_matches ASSIGNING FIELD-SYMBOL(<match_without_source>). APPEND <match_without_source> TO all_matches ASSIGNING FIELD-SYMBOL(<match>). <match>-include = include-name. <match>-adt_include_type = include-adt_type. " set the display name IF include-func_name IS NOT INITIAL. <match>-display_name = include-func_name. ELSE. <match>-display_name = include-name. ENDIF. ENDLOOP. ENDMETHOD. METHOD get_function_includes. DATA: namespace TYPE namespace, fugr_name TYPE rs38l_area. SELECT funcname AS func_name, include FROM tfdir WHERE pname = @fugr_program_name INTO TABLE @DATA(function_includes). LOOP AT function_includes ASSIGNING FIELD-SYMBOL(<function_include>). CALL FUNCTION 'FUNCTION_INCLUDE_SPLIT' EXPORTING program = fugr_program_name IMPORTING namespace = namespace group = fugr_name EXCEPTIONS OTHERS = 1. IF sy-subrc = 0. result = VALUE #( BASE result ( name = |{ namespace }L{ fugr_name }U{ <function_include>-include }| func_name = <function_include>-func_name adt_type = c_include_types-function ) ). ENDIF. ENDLOOP. ENDMETHOD. METHOD mixin_function_names. DATA(function_includes) = get_function_includes( fugr_program_name ). IF function_includes IS INITIAL. RETURN. ENDIF. LOOP AT includes ASSIGNING FIELD-SYMBOL(<include>). IF <include>-is_function_include = abap_true. DATA(function_include) = REF #( function_includes[ name = <include>-name ] OPTIONAL ). IF function_include IS NOT INITIAL. <include>-func_name = function_include->func_name. <include>-adt_type = function_include->adt_type. ENDIF. ENDIF. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 18243, 10131, 329, 15553, 27441, 3556, 79, 29, 198, 31631, 1976, 565, 62, 324, 6966, 316, 62, 66, 2777, 62, 69, 1018, 81, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 324, 6966, 316, 62, 8189, 62, 12947, 62, 15234, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 16719, 274, 649, 4554, 286, 257, 2163, 1448, 2989, 10131, 3556, 79, 29, 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, 2989, 62, 33692, 41876, 1976, 361, 62, 324, 6966, 316, 62, 774, 62, 20541, 14804, 774, 62, 12947, 62, 33692, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2603, 3533, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 324, 6966, 316, 62, 33279, 62, 6759, 2044, 14804, 774, 62, 5420, 62, 8658, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 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, 17256, 62, 19199, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2163, 41876, 4731, 26173, 8924, 705, 37, 7340, 49, 14, 5777, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 2291, 220, 41876, 4731, 26173, 8924, 705, 37, 7340, 49, 14, 40, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 17256, 62, 19199, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 2989, 62, 33692, 41876, 1976, 361, 62, 324, 6966, 316, 62, 774, 62, 20541, 14804, 774, 62, 12947, 62, 33692, 11, 198, 220, 220, 220, 220, 220, 2603, 3533, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 324, 6966, 316, 62, 33279, 62, 6759, 2044, 14804, 774, 62, 5420, 62, 8658, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 69, 1018, 81, 62, 259, 565, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1172, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 8818, 62, 17256, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 25439, 62, 3672, 220, 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, 512, 83, 62, 4906, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 69, 1018, 81, 62, 259, 565, 11, 198, 220, 220, 220, 220, 220, 1259, 62, 69, 1018, 81, 62, 42813, 41876, 311, 9863, 1961, 43679, 3963, 1259, 62, 69, 1018, 81, 62, 259, 565, 13315, 4725, 33866, 8924, 35374, 1438, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 651, 62, 69, 1018, 81, 62, 42813, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2291, 62, 40290, 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, 220, 41876, 1259, 62, 69, 1018, 81, 62, 42813, 11, 198, 220, 220, 220, 220, 220, 651, 62, 69, 1018, 81, 62, 17256, 62, 10951, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31497, 81, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 44608, 2548, 75, 62, 20337, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 69, 1018, 81, 62, 12417, 62, 1676, 70, 8, 220, 220, 220, 220, 220, 41876, 1172, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 69, 1018, 81, 62, 17256, 62, 40290, 8, 41876, 1172, 3672, 11, 198, 220, 220, 220, 220, 220, 8333, 62, 48205, 62, 1462, 62, 6759, 2052, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 555, 562, 3916, 62, 6759, 2052, 41876, 1976, 361, 62, 324, 6966, 316, 62, 774, 62, 20541, 14804, 774, 62, 12947, 62, 6759, 2052, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2134, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 324, 6966, 316, 62, 774, 62, 20541, 14804, 774, 62, 83, 324, 343, 62, 15252, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2291, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 69, 1018, 81, 62, 259, 565, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 477, 62, 6759, 2052, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 324, 6966, 316, 62, 774, 62, 20541, 14804, 774, 62, 12947, 62, 6759, 2052, 11, 198, 220, 220, 220, 220, 220, 651, 62, 8818, 62, 42813, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31497, 81, 62, 23065, 62, 3672, 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, 220, 220, 220, 220, 41876, 1259, 62, 69, 1018, 81, 62, 42813, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_uitb_alv_controller DEFINITION PUBLIC CREATE PUBLIC GLOBAL FRIENDS zcl_uitb_alv_grid_adapter. PUBLIC SECTION. INTERFACES zif_uitb_alv_metadata_ctrller. INTERFACES zif_uitb_alv_controller. METHODS constructor IMPORTING io_model TYPE REF TO zcl_uitb_alv. DATA mo_model TYPE REF TO zcl_uitb_alv. DATA mo_adapter TYPE REF TO zcl_uitb_alv_grid_adapter. DATA mf_event_mode TYPE abap_bool. METHODS display. METHODS set_function IMPORTING iv_function TYPE ui_func. METHODS refresh IMPORTING is_stable TYPE lvc_s_stbl OPTIONAL if_keep_scroll_position TYPE abap_bool OPTIONAL. METHODS focus. PROTECTED SECTION. PRIVATE SECTION. DATA mt_changelist TYPE zif_uitb_alv_types=>tt_alv_changelist. ENDCLASS. CLASS zcl_uitb_alv_controller IMPLEMENTATION. METHOD display. IF mo_adapter IS INITIAL. mo_adapter = NEW zcl_uitb_alv_grid_adapter( io_controller = me ). ENDIF. refresh( ). ENDMETHOD. METHOD refresh. TRY. DATA: ls_stable TYPE lvc_s_stbl. IF mo_adapter IS BOUND. IF mf_event_mode EQ abap_true. mo_adapter->ms_stable = ls_stable. mo_adapter->mf_keep_scroll_position = if_keep_scroll_position. RETURN. ELSE. " before and after event " continue processing coding ENDIF. ELSE. " adapter not bound RETURN. ENDIF. CHECK zif_uitb_alv_metadata_ctrller~check_changelist( ) NE abap_false. DATA(lr_changelist) = zcl_uitb_alv_changelist=>create( mt_changelist ). DELETE lr_changelist->mt_changelist WHERE flavour NE if_salv_c_changelist_flavour=>setter AND flavour NE if_salv_c_changelist_flavour=>data_set AND flavour NE if_salv_c_changelist_flavour=>application AND flavour NE if_salv_c_changelist_flavour=>selections AND flavour NE if_salv_c_changelist_flavour=>close_screen AND flavour NE if_salv_c_changelist_flavour=>functions AND flavour NE if_salv_c_changelist_flavour=>refresh. " new call --> therefore setters and application irrelevant zif_uitb_alv_metadata_ctrller~clear_changelist( iv_flavour = if_salv_c_changelist_flavour=>setter ). zif_uitb_alv_metadata_ctrller~clear_changelist( iv_flavour = if_salv_c_changelist_flavour=>data_set ). zif_uitb_alv_metadata_ctrller~clear_changelist( iv_flavour = if_salv_c_changelist_flavour=>application ). zif_uitb_alv_metadata_ctrller~clear_changelist( iv_flavour = if_salv_c_changelist_flavour=>refresh ). CHECK lr_changelist->is_new_data_requested( ) OR lr_changelist->has_metadata_changed( ) OR lr_changelist->is_refresh_requested( ) OR lr_changelist->is_functions_change_requested( ) OR lr_changelist->is_selections_requested( ). * lr_changelist->is_screen_closed( ) . " send the data to the frontend mo_adapter->set_metadata( is_stable = is_stable if_keep_scroll_position = if_keep_scroll_position ir_changelist = lr_changelist ). CATCH zcx_uitb_alv_error. ENDTRY. ENDMETHOD. METHOD constructor. mo_model = io_model. ENDMETHOD. METHOD zif_uitb_alv_metadata_ctrller~register. CHECK line_exists( mt_changelist[ name = iv_name flavour = zif_uitb_c_alv_chglist_flavor=>register ] ). INSERT VALUE #( name = iv_name flavour = zif_uitb_c_alv_chglist_flavor=>register ref = ir_ref ) INTO TABLE mt_changelist. ENDMETHOD. METHOD zif_uitb_alv_metadata_ctrller~set_changed. DATA: ls_changelist TYPE zif_uitb_alv_types=>ty_alv_s_changelist. " check if object has been registered IF NOT line_exists( mt_changelist[ name = iv_name flavour = zif_uitb_c_alv_chglist_flavor=>register ] ). " Exception for ALV ENDIF. DATA(lv_index_of_change) = line_index( mt_changelist[ name = iv_name flavour = iv_flavour object = iv_object method = iv_method ] ). IF lv_index_of_change <> 0. DELETE mt_changelist INDEX lv_index_of_change. ENDIF. IF iv_flavour EQ zif_uitb_c_alv_chglist_flavor=>selections. DATA(lt_changelist) = zif_uitb_alv_metadata_ctrller~get_changelist( zif_uitb_c_alv_chglist_flavor=>selections ). IF lt_changelist IS NOT INITIAL. SORT lt_changelist BY sequence DESCENDING. ls_changelist = lt_changelist[ 1 ]. ADD 1 TO ls_changelist-sequence. ENDIF. ENDIF. ls_changelist-name = iv_name. ls_changelist-flavour = iv_flavour. ls_changelist-object = iv_object. ls_changelist-method = iv_method. ls_changelist-change = abap_true. ls_changelist-refresh_mode = iv_refresh_mode. ls_changelist-ref = ir_ref. ls_changelist-frontend = iv_frontend. INSERT ls_changelist INTO TABLE mt_changelist. ENDMETHOD. METHOD zif_uitb_alv_metadata_ctrller~clear_changelist. DATA: ls_changelist TYPE zif_uitb_alv_types=>ty_alv_s_changelist. IF iv_name IS SUPPLIED. DELETE mt_changelist WHERE name EQ iv_name. ENDIF. IF iv_object IS SUPPLIED. DELETE mt_changelist WHERE object EQ iv_object. ENDIF. IF iv_method IS SUPPLIED. DELETE mt_changelist WHERE method EQ iv_method. ENDIF. IF if_change IS SUPPLIED. DELETE mt_changelist WHERE change EQ if_change. ENDIF. IF iv_flavour IS SUPPLIED. DELETE mt_changelist WHERE flavour EQ iv_flavour. ENDIF. IF iv_refresh_mode IS SUPPLIED. DELETE mt_changelist WHERE refresh_mode EQ iv_refresh_mode. ENDIF. IF it_range IS SUPPLIED. LOOP AT mt_changelist INTO ls_changelist. CHECK ls_changelist IN it_range. DELETE mt_changelist INDEX sy-tabix. ENDLOOP. ENDIF. ENDMETHOD. METHOD zif_uitb_alv_metadata_ctrller~check_changelist. DATA: ls_changelist TYPE zif_uitb_alv_types=>ty_alv_s_changelist. IF iv_flavour IS SUPPLIED. IF line_exists( mt_changelist[ flavour = iv_flavour ] ). rf_exists = abap_true. ELSE. rf_exists = abap_false. EXIT. ENDIF. ENDIF. IF iv_name IS SUPPLIED. IF line_exists( mt_changelist[ name = iv_name ] ). rf_exists = abap_true. ELSE. rf_exists = abap_false. EXIT. ENDIF. ENDIF. IF iv_object IS SUPPLIED. IF line_exists( mt_changelist[ object = iv_object ] ). rf_exists = abap_true. ELSE. rf_exists = abap_false. EXIT. ENDIF. ENDIF. IF iv_method IS SUPPLIED. IF line_exists( mt_changelist[ method = iv_method ] ). rf_exists = abap_true. ELSE. rf_exists = abap_false. EXIT. ENDIF. ENDIF. IF if_change IS SUPPLIED. IF line_exists( mt_changelist[ change = if_change ] ). rf_exists = abap_true. ELSE. rf_exists = abap_false. EXIT. ENDIF. ENDIF. IF iv_refresh_mode IS SUPPLIED. IF line_exists( mt_changelist[ refresh_mode = iv_refresh_mode ] ). rf_exists = abap_true. ELSE. rf_exists = abap_false. EXIT. ENDIF. ENDIF. IF it_range IS SUPPLIED. LOOP AT mt_changelist INTO ls_changelist. rf_exists = abap_false. CHECK ls_changelist IN it_range. rf_exists = abap_true. EXIT. ENDLOOP. EXIT. ENDIF. " default if nothing else is supplied IF line_exists( mt_changelist[ change = if_change ] ). rf_exists = abap_true. ELSE. rf_exists = abap_false. ENDIF. ENDMETHOD. METHOD zif_uitb_alv_metadata_ctrller~get_changelist. result = mt_changelist. DELETE result WHERE flavour NE iv_flavour. ENDMETHOD. METHOD set_function. CHECK mo_adapter IS BOUND. mo_adapter->set_function( iv_function ). ENDMETHOD. METHOD focus. CHECK mo_adapter IS BOUND. mo_adapter->set_focus_to_grid( ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 5013, 65, 62, 282, 85, 62, 36500, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 198, 220, 10188, 9864, 1847, 48167, 1677, 5258, 1976, 565, 62, 5013, 65, 62, 282, 85, 62, 25928, 62, 324, 3429, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 5013, 65, 62, 282, 85, 62, 38993, 62, 24087, 6051, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 5013, 65, 62, 282, 85, 62, 36500, 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, 19849, 41876, 4526, 37, 5390, 1976, 565, 62, 5013, 65, 62, 282, 85, 13, 198, 220, 220, 220, 42865, 6941, 62, 19849, 41876, 4526, 37, 5390, 1976, 565, 62, 5013, 65, 62, 282, 85, 13, 198, 220, 220, 220, 42865, 6941, 62, 324, 3429, 41876, 4526, 37, 5390, 1976, 565, 62, 5013, 65, 62, 282, 85, 62, 25928, 62, 324, 3429, 13, 198, 220, 220, 220, 42865, 285, 69, 62, 15596, 62, 14171, 41876, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 337, 36252, 50, 3359, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 8818, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 8818, 41876, 334, 72, 62, 20786, 13, 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, 318, 62, 31284, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 300, 28435, 62, 82, 62, 301, 2436, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 611, 62, 14894, 62, 48728, 62, 9150, 41876, 450, 499, 62, 30388, 39852, 2849, 1847, 13, 198, 220, 220, 220, 337, 36252, 50, 2962, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 45079, 62, 354, 8368, 396, 41876, 1976, 361, 62, 5013, 65, 62, 282, 85, 62, 19199, 14804, 926, 62, 282, 85, 62, 354, 8368, 396, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 5013, 65, 62, 282, 85, 62, 36500, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 3359, 13, 198, 220, 220, 220, 16876, 6941, 62, 324, 3429, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 6941, 62, 324, 3429, 796, 12682, 1976, 565, 62, 5013, 65, 62, 282, 85, 62, 25928, 62, 324, 3429, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 36500, 796, 502, 198, 220, 220, 220, 220, 220, 6739, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 14976, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 14976, 13, 198, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42865, 25, 43979, 62, 31284, 41876, 300, 28435, 62, 82, 62, 301, 2436, 13, 628, 220, 220, 220, 220, 220, 220, 220, 16876, 6941, 62, 324, 3429, 3180, 347, 15919, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16876, 285, 69, 62, 15596, 62, 14171, 36529, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6941, 62, 324, 3429, 3784, 907, 62, 31284, 796, 43979, 62, 31284, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6941, 62, 324, 3429, 3784, 76, 69, 62, 14894, 62, 48728, 62, 9150, 796, 611, 62, 14894, 62, 48728, 62, 9150, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17852, 5188, 13, 366, 878, 290, 706, 1785, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 2555, 7587, 19617, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 220, 220, 17852, 5188, 13, 366, 21302, 407, 5421, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 220, 220, 5870, 25171, 1976, 361, 62, 5013, 65, 62, 282, 85, 62, 38993, 62, 24087, 6051, 93, 9122, 62, 354, 8368, 396, 7, 1267, 10635, 450, 499, 62, 9562, 13, 628, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 14050, 62, 354, 8368, 396, 8, 796, 1976, 565, 62, 5013, 65, 62, 282, 85, 62, 354, 8368, 396, 14804, 17953, 7, 45079, 62, 354, 8368, 396, 6739, 628, 220, 220, 220, 220, 220, 220, 220, 5550, 2538, 9328, 300, 81, 62, 354, 8368, 396, 3784, 16762, 62, 354, 8368, 396, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33411, 29254, 10635, 611, 62, 21680, 85, 62, 66, 62, 354, 8368, 396, 62, 2704, 29023, 14804, 2617, 353, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 29254, 10635, 611, 62, 21680, 85, 62, 66, 62, 354, 8368, 396, 62, 2704, 29023, 14804, 7890, 62, 2617, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 29254, 10635, 611, 62, 21680, 85, 62, 66, 62, 354, 8368, 396, 62, 2704, 29023, 14804, 31438, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 29254, 10635, 611, 62, 21680, 85, 62, 66, 62, 354, 8368, 396, 62, 2704, 29023, 14804, 19738, 507, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 29254, 10635, 611, 62, 21680, 85, 62, 66, 62, 354, 8368, 396, 62, 2704, 29023, 14804, 19836, 62, 9612, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 29254, 10635, 611, 62, 21680, 85, 62, 66, 62, 354, 8368, 396, 62, 2704, 29023, 14804, 12543, 2733, 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 ]
"! This is demo for converting JSON structure into "! ABAP type "! done by Lukasz Pegiel for http://abapblog.com REPORT zjson2abaptype. DATA: ok_code TYPE sy-ucomm. SELECTION-SCREEN BEGIN OF SCREEN 1001 AS SUBSCREEN. PARAMETERS: p_none RADIOBUTTON GROUP gr1, p_low RADIOBUTTON GROUP gr1, p_camel RADIOBUTTON GROUP gr1, p_ext RADIOBUTTON GROUP gr1 DEFAULT 'X', p_user RADIOBUTTON GROUP gr1, p_userlo RADIOBUTTON GROUP gr1. SELECTION-SCREEN END OF SCREEN 1001. CLASS lcl_json_structure DEFINITION DEFERRED. CLASS lcl_hlp DEFINITION. PUBLIC SECTION. TYPES: BEGIN OF t_source, line TYPE char255, END OF t_source. TYPES: tt_source TYPE STANDARD TABLE OF t_source WITH DEFAULT KEY. DATA: converter TYPE REF TO lcl_json_structure, results TYPE string, source_editor TYPE REF TO cl_gui_textedit, abap_editor TYPE REF TO cl_gui_abapedit. METHODS: constructor. METHODS: create_source_editor. METHODS: convert. METHODS: pai IMPORTING VALUE(i_okcode) TYPE sy-ucomm. PRIVATE SECTION. METHODS call_editor CHANGING c_source TYPE tt_source OPTIONAL. METHODS pretty_print_code CHANGING c_source TYPE tt_source. METHODS get_pretty_name_mode RETURNING VALUE(pretty_name_mode) TYPE char1. DATA: handler TYPE REF TO cl_wb_editor. ENDCLASS. CLASS lcl_json_structure DEFINITION. PUBLIC SECTION. TYPES: BEGIN OF t_hierarchy, level TYPE i, name TYPE string, table TYPE abap_bool, structure TYPE abap_bool, type TYPE string, length TYPE i, decimals TYPE i, absolute_type TYPE abap_abstypename, parent TYPE string, final_type TYPE string, type_definition TYPE string, id TYPE i, END OF t_hierarchy, tt_hierarchy TYPE STANDARD TABLE OF t_hierarchy WITH DEFAULT KEY. CONSTANTS: c_components TYPE string VALUE '&&components&&'. DATA: hierarchy TYPE tt_hierarchy. METHODS: build_structure IMPORTING i_data TYPE REF TO data EXPORTING e_data TYPE string. PRIVATE SECTION. DATA: current_id TYPE i. METHODS check_component IMPORTING i_comp TYPE abap_compdescr VALUE(i_data) TYPE REF TO data VALUE(i_parent) TYPE abap_abstypename i_level TYPE i i_keep_level TYPE abap_bool DEFAULT abap_false i_keep_id TYPE abap_bool DEFAULT abap_false. METHODS check_object IMPORTING VALUE(i_data) TYPE REF TO data VALUE(i_parent) TYPE abap_abstypename i_abap_type TYPE REF TO cl_abap_structdescr i_level TYPE i. METHODS create_types RETURNING VALUE(r_definition) TYPE string. METHODS: get_id RETURNING VALUE(r_id) TYPE i. METHODS: display. METHODS: get_types RETURNING VALUE(r_types) TYPE string, init, get_internal_types CHANGING VALUE(c_type) TYPE t_hierarchy. ENDCLASS. START-OF-SELECTION. DATA(hlp) = NEW lcl_hlp( ). CALL SCREEN 0100. *&---------------------------------------------------------------------* *& Module PBO OUTPUT *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* MODULE pbo OUTPUT. SET PF-STATUS 'STATUS_0100'. SET TITLEBAR 'TITLE'. hlp->create_source_editor( ). ENDMODULE. *&---------------------------------------------------------------------* *& Module PAI INPUT *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* MODULE pai INPUT. hlp->pai( ok_code ). ENDMODULE. CLASS lcl_hlp IMPLEMENTATION. METHOD constructor. converter = NEW #( ). ENDMETHOD. METHOD create_source_editor. IF source_editor IS INITIAL. source_editor = NEW #( parent = NEW cl_gui_docking_container( side = cl_gui_docking_container=>dock_at_left no_autodef_progid_dynnr = abap_true extension = 500 ) ) . ENDIF. ENDMETHOD. METHOD convert. DATA: source TYPE soli_tab. source_editor->get_text_as_stream( IMPORTING text = source EXCEPTIONS error_cntl_call_method = 1 OTHERS = 3 ). IF sy-subrc EQ 0. IF source IS INITIAL. MESSAGE s001(00) WITH 'Data input is required' DISPLAY LIKE 'E' ##MG_MISSING ##NO_TEXT. RETURN. ENDIF. * DATA(json_data) = /ui2/cl_json=>generate( DATA(json_data) = zui2_json=>generate( json = cl_bcs_convert=>txt_to_string( it_soli = source ) pretty_name = get_pretty_name_mode( ) ). IF json_data IS INITIAL. MESSAGE s001(00) WITH 'Problem converting JSON.' DISPLAY LIKE 'E' ##MG_MISSING ##NO_TEXT. ELSE. converter->build_structure( EXPORTING i_data = json_data IMPORTING e_data = results ). DATA: target TYPE STANDARD TABLE OF t_source. SPLIT results AT cl_abap_char_utilities=>newline INTO TABLE target. pretty_print_code( CHANGING c_source = target ). call_editor( CHANGING c_source = target ). ENDIF. ENDIF. ENDMETHOD. METHOD call_editor. IF abap_editor IS INITIAL. DATA(container) = NEW cl_gui_custom_container( container_name = 'CC_INPUT' ). abap_editor = NEW #( parent = container ). ENDIF. abap_editor->draw( ). abap_editor->set_text( c_source ). abap_editor->undraw( ). ENDMETHOD. METHOD pretty_print_code. CALL FUNCTION 'PRETTY_PRINTER' EXPORTING inctoo = abap_false " X = Process Include Programs as Well TABLES ntext = c_source " Table of Formatted Source Code otext = c_source " Table of Source Code Pending Editing EXCEPTIONS enqueue_table_full = 0 include_enqueued = 0 include_readerror = 0 include_writeerror = 0 OTHERS = 0. ENDMETHOD. METHOD pai. CLEAR sy-ucomm. CASE i_okcode. WHEN 'BACK' OR 'UP' OR 'EXIT'. LEAVE PROGRAM. WHEN 'CONVERT'. convert( ). ENDCASE. ENDMETHOD. METHOD get_pretty_name_mode. pretty_name_mode = COND #( WHEN p_none EQ abap_true THEN zui2_json=>pretty_mode-none WHEN p_camel EQ abap_true THEN zui2_json=>pretty_mode-camel_case WHEN p_ext EQ abap_true THEN zui2_json=>pretty_mode-extended WHEN p_low EQ abap_true THEN zui2_json=>pretty_mode-low_case WHEN p_user EQ abap_true THEN zui2_json=>pretty_mode-user WHEN p_userlo EQ abap_true THEN zui2_json=>pretty_mode-user_low_case ELSE zui2_json=>pretty_mode-extended ). ENDMETHOD. ENDCLASS. CLASS lcl_json_structure IMPLEMENTATION. METHOD get_id. ADD 1 TO current_id. r_id = current_id. ENDMETHOD. METHOD build_structure. init( ). DATA: level TYPE i VALUE 0. DATA(abap_type) = CAST cl_abap_structdescr( cl_abap_structdescr=>describe_by_data_ref( p_data_ref = i_data ) ). APPEND VALUE #( level = level name = 'JSON' type = abap_type->type_kind absolute_type = abap_type->absolute_name structure = abap_true id = get_id( ) ) TO hierarchy. check_object( i_abap_type = abap_type i_level = level i_data = i_data i_parent = '' ). e_data = create_types( ). ENDMETHOD. METHOD init. REFRESH: hierarchy. CLEAR current_id. ENDMETHOD. METHOD display. cl_demo_output=>display( create_types( ) ). ENDMETHOD. METHOD check_object. LOOP AT i_abap_type->components ASSIGNING FIELD-SYMBOL(<comp>). DATA(field) = |i_data->{ <comp>-name }|. ASSIGN (field) TO FIELD-SYMBOL(<data>). IF <data> IS ASSIGNED AND <data> IS NOT INITIAL. check_component( i_parent = i_abap_type->absolute_name i_comp = <comp> i_data = <data> i_level = i_level ). ENDIF. UNASSIGN <data>. ENDLOOP. ENDMETHOD. "#EC CI_VALPAR METHOD check_component. DATA level TYPE i VALUE 0. IF i_keep_level EQ abap_false. level = i_level + 1. ELSE. level = i_level. ENDIF. TRY. DATA(str_type) = CAST cl_abap_structdescr( cl_abap_structdescr=>describe_by_data_ref( p_data_ref = i_data ) ). check_object( i_parent = i_parent i_data = i_data i_abap_type = str_type i_level = level ). APPEND VALUE #( level = level name = i_comp-name type = str_type->type_kind absolute_type = str_type->absolute_name parent = i_parent structure = abap_true id = get_id( ) ) TO hierarchy. CATCH cx_root. TRY. DATA(table_type) = CAST cl_abap_tabledescr( cl_abap_tabledescr=>describe_by_data_ref( p_data_ref = i_data ) ). IF i_keep_id EQ abap_false. DATA(id) = get_id( ). APPEND VALUE #( level = level name = i_comp-name type = table_type->type_kind absolute_type = table_type->absolute_name parent = i_parent table = abap_true id = id ) TO hierarchy. ELSE. id = current_id. ENDIF. FIELD-SYMBOLS: <tab> TYPE STANDARD TABLE, <test> TYPE any. ASSIGN i_data->* TO <tab>. TRY. ASSIGN <tab>[ 1 ] TO <test>. IF sy-subrc NE 0. APPEND INITIAL LINE TO <tab> ASSIGNING <test>. ENDIF. CATCH cx_root. APPEND INITIAL LINE TO <tab> ASSIGNING <test>. ENDTRY. cl_abap_structdescr=>describe_by_data_ref( EXPORTING p_data_ref = <test> RECEIVING p_descr_ref = DATA(table_line_ref) EXCEPTIONS OTHERS = 1 ). IF sy-subrc NE 0. DATA: table_of_strings TYPE STANDARD TABLE OF string. check_component( EXPORTING i_comp = i_comp i_data = REF #( table_of_strings ) i_parent = i_parent i_level = i_level i_keep_level = abap_true i_keep_id = abap_true ). RETURN. ENDIF. DATA(table_line_type) = CAST cl_abap_structdescr( table_line_ref ). APPEND VALUE #( level = level name = i_comp-name type = table_line_type->type_kind absolute_type = table_line_type->absolute_name parent = table_type->absolute_name structure = abap_true id = id ) TO hierarchy. check_object( i_parent = table_type->absolute_name i_data = <test> i_abap_type = table_line_type i_level = level ). CATCH cx_root. "May be a table of strings or integers. IF table_type IS NOT INITIAL. TRY. IF table_type->type_kind EQ 'h'. DATA(table_line_as_el_type) = CAST cl_abap_elemdescr( cl_abap_elemdescr=>describe_by_data_ref( p_data_ref = <test> ) ). ADD 1 TO level. APPEND VALUE #( level = level name = i_comp-name type = table_line_as_el_type->type_kind absolute_type = table_line_as_el_type->absolute_name parent = table_line_as_el_type->absolute_name structure = abap_true id = id ) TO hierarchy. ENDIF. CATCH cx_root. TRY. IF table_type->type_kind EQ 'h'. table_line_as_el_type = CAST cl_abap_elemdescr( cl_abap_elemdescr=>describe_by_data( p_data = <test> ) ). ADD 1 TO level. APPEND VALUE #( level = level name = i_comp-name type = table_line_as_el_type->type_kind absolute_type = table_line_as_el_type->absolute_name parent = table_line_as_el_type->absolute_name structure = abap_true id = id ) TO hierarchy. ENDIF. CATCH cx_root. DATA(other_type) = cl_abap_typedescr=>describe_by_data_ref( p_data_ref = i_data ) . APPEND VALUE #( level = level name = i_comp-name type = other_type->type_kind length = other_type->length decimals = other_type->decimals absolute_type = other_type->absolute_name parent = i_parent ) TO hierarchy. ENDTRY. ENDTRY. ELSE. other_type = cl_abap_typedescr=>describe_by_data_ref( p_data_ref = i_data ) . APPEND VALUE #( level = level name = i_comp-name type = other_type->type_kind length = other_type->length decimals = other_type->decimals absolute_type = other_type->absolute_name parent = i_parent ) TO hierarchy. ENDIF. ENDTRY. ENDTRY. ENDMETHOD. "#EC CI_VALPAR METHOD create_types. DATA: components TYPE string. LOOP AT hierarchy ASSIGNING FIELD-SYMBOL(<h>). IF <h>-structure EQ abap_true AND <h>-type NE 'g'. <h>-final_type = |{ <h>-name } type t_{ <h>-name }{ <h>-id }| ##NO_TEXT. <h>-type_definition = |types: begin of t_{ <h>-name }{ <h>-id },{ cl_abap_char_utilities=>newline }{ c_components }end of t_{ <h>-name }{ <h>-id }.| ##NO_TEXT. ELSEIF <h>-structure EQ abap_true. <h>-final_type = |{ <h>-name } type t_{ <h>-name }{ <h>-id }| ##NO_TEXT. get_internal_types( CHANGING c_type = <h> ). <h>-type_definition = |types: t_{ <h>-name }{ <h>-id } type { <h>-absolute_type }.| ##NO_TEXT. ELSEIF <h>-table EQ abap_true. <h>-final_type = |{ <h>-name } type tt_{ <h>-name }{ <h>-id }| ##NO_TEXT. <h>-type_definition = |types: tt_{ <h>-name }{ <h>-id } type standard table of t_{ <h>-name }{ <h>-id } with default key.| ##NO_TEXT. ELSE. get_internal_types( CHANGING c_type = <h> ). ENDIF. ENDLOOP. LOOP AT hierarchy ASSIGNING <h> GROUP BY ( parent = <h>-parent ). CLEAR components. LOOP AT GROUP <h> ASSIGNING FIELD-SYMBOL(<g>). components = components && <g>-final_type && ',' && cl_abap_char_utilities=>newline. ENDLOOP. ASSIGN hierarchy[ absolute_type = <h>-parent ] TO FIELD-SYMBOL(<parent>). IF sy-subrc EQ 0. REPLACE ALL OCCURRENCES OF c_components IN <parent>-type_definition WITH components. ENDIF. ENDLOOP. SORT hierarchy BY level DESCENDING structure DESCENDING. LOOP AT hierarchy ASSIGNING <h> WHERE structure EQ abap_true OR table EQ abap_true. r_definition = r_definition && <h>-type_definition && cl_abap_char_utilities=>newline. ENDLOOP. ENDMETHOD. METHOD get_types. r_types = create_types( ). ENDMETHOD. METHOD get_internal_types. REPLACE FIRST OCCURRENCE OF REGEX '\\TYPE-POOL=(.*)\\TYPE=' IN c_type-absolute_type WITH ''. IF sy-subrc EQ 0. c_type-final_type = |{ c_type-name } type { c_type-absolute_type }|. RETURN. ELSE. REPLACE FIRST OCCURRENCE OF '\TYPE=' IN c_type-absolute_type WITH ' '. ENDIF. IF c_type-type EQ cl_abap_typedescr=>typekind_char. c_type-final_type = |{ c_type-name } type { c_type-absolute_type } length { c_type-length }|. ELSEIF c_type-type EQ cl_abap_typedescr=>typekind_packed. c_type-final_type = |{ c_type-name } type { c_type-absolute_type } length { c_type-length } decimals { c_type-decimals }|. ELSEIF c_type-type EQ cl_abap_typedescr=>typekind_num. c_type-final_type = |{ c_type-name } type { c_type-absolute_type } length { c_type-length }|. ELSE. c_type-final_type = |{ c_type-name } type { c_type-absolute_type }|. ENDIF. ENDMETHOD. "#EC CI_VALPAR ENDCLASS.
[ 40484, 770, 318, 13605, 329, 23202, 19449, 4645, 656, 198, 40484, 9564, 2969, 2099, 198, 40484, 1760, 416, 28102, 292, 89, 31084, 8207, 329, 2638, 1378, 397, 499, 14036, 13, 785, 198, 198, 2200, 15490, 1976, 17752, 17, 397, 2373, 2981, 13, 198, 26947, 25, 12876, 62, 8189, 41876, 827, 12, 84, 9503, 13, 628, 198, 46506, 2849, 12, 6173, 2200, 1677, 347, 43312, 3963, 6374, 2200, 1677, 1802, 16, 7054, 13558, 4462, 43387, 1677, 13, 198, 198, 27082, 2390, 2767, 4877, 25, 279, 62, 23108, 220, 220, 33540, 9399, 47526, 11357, 44441, 1036, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 9319, 220, 220, 220, 33540, 9399, 47526, 11357, 44441, 1036, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 66, 17983, 220, 33540, 9399, 47526, 11357, 44441, 1036, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 2302, 220, 220, 220, 33540, 9399, 47526, 11357, 44441, 1036, 16, 5550, 38865, 705, 55, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 7220, 220, 220, 33540, 9399, 47526, 11357, 44441, 1036, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 7220, 5439, 33540, 9399, 47526, 11357, 44441, 1036, 16, 13, 198, 198, 46506, 2849, 12, 6173, 2200, 1677, 23578, 3963, 6374, 2200, 1677, 1802, 16, 13, 198, 198, 31631, 300, 565, 62, 17752, 62, 301, 5620, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 31631, 300, 565, 62, 18519, 79, 5550, 20032, 17941, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 256, 62, 10459, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1627, 41876, 1149, 13381, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 256, 62, 10459, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 256, 83, 62, 10459, 41876, 49053, 9795, 43679, 3963, 256, 62, 10459, 13315, 5550, 38865, 35374, 13, 198, 220, 220, 220, 42865, 25, 38394, 220, 220, 220, 220, 41876, 4526, 37, 5390, 300, 565, 62, 17752, 62, 301, 5620, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2482, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2723, 62, 35352, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 5239, 19312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 450, 499, 62, 35352, 220, 220, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 397, 5813, 270, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 23772, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 2251, 62, 10459, 62, 35352, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 10385, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 279, 1872, 30023, 9863, 2751, 26173, 8924, 7, 72, 62, 482, 8189, 8, 41876, 827, 12, 84, 9503, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 869, 62, 35352, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 269, 62, 10459, 41876, 256, 83, 62, 10459, 39852, 2849, 1847, 13, 198, 220, 220, 220, 337, 36252, 50, 2495, 62, 4798, 62, 8189, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 269, 62, 10459, 41876, 256, 83, 62, 10459, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 37784, 62, 3672, 62, 14171, 30826, 4261, 15871, 26173, 8924, 7, 37784, 62, 3672, 62, 14171, 8, 41876, 1149, 16, 13, 198, 220, 220, 220, 42865, 25, 21360, 41876, 4526, 37, 5390, 537, 62, 39346, 62, 35352, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 17752, 62, 301, 5620, 5550, 20032, 17941, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 256, 62, 71, 959, 9282, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1241, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3084, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4645, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4129, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 875, 320, 874, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4112, 62, 4906, 220, 220, 41876, 220, 450, 499, 62, 397, 34365, 3617, 480, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2560, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2457, 62, 4906, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 62, 46758, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 256, 62, 71, 959, 9282, 11, 198, 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,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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 ]
*"* use this source file for your ABAP unit test classes CLASS lcl_test DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. METHODS: driven_by_ecattdata FOR TESTING RAISING cx_static_check. ENDCLASS. CLASS lcl_test IMPLEMENTATION. METHOD driven_by_ecattdata. FIELD-SYMBOLS <lt_matdoc> TYPE nsdm_t_matdoc. DATA(lr_ecatt_api) = cl_apl_ecatt_tdc_api=>get_instance( i_testdatacontainer = 'ZDEMO_ECATT_AUNIT' ). DATA(lt_test_data) = lr_ecatt_api->get_tdc_content( ). cl_abap_unit_assert=>assert_not_initial( act = lt_test_data ). LOOP AT lt_test_data INTO DATA(ls_test_data) WHERE varname NE 'ECATTDEFAULT'. DATA(ls_matdoc_param) = ls_test_data-paramtab[ parname = 'MATDOC' ]. ASSIGN ls_matdoc_param-value_ref->* TO <lt_matdoc>. cl_abap_unit_assert=>assert_not_initial( act = <lt_matdoc> msg = |ERROR in Variant { ls_test_data-varname }| quit = if_aunit_constants=>quit-no ). UNASSIGN <lt_matdoc>. CLEAR ls_matdoc_param. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 9, 1, 9, 779, 428, 2723, 2393, 329, 534, 9564, 2969, 4326, 1332, 6097, 198, 31631, 300, 565, 62, 9288, 5550, 20032, 17941, 25261, 7473, 43001, 2751, 360, 4261, 6234, 6006, 9863, 45698, 42, 49277, 43638, 5805, 7597, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 7986, 62, 1525, 62, 721, 1078, 7890, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 9288, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 7986, 62, 1525, 62, 721, 1078, 7890, 13, 198, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 1279, 2528, 62, 6759, 15390, 29, 41876, 299, 21282, 76, 62, 83, 62, 6759, 15390, 13, 198, 220, 220, 220, 42865, 7, 14050, 62, 721, 1078, 62, 15042, 8, 796, 537, 62, 64, 489, 62, 721, 1078, 62, 8671, 66, 62, 15042, 14804, 1136, 62, 39098, 7, 1312, 62, 9288, 19608, 330, 756, 10613, 796, 705, 57, 39429, 46, 62, 2943, 17139, 62, 32, 4944, 2043, 6, 220, 6739, 628, 220, 220, 220, 42865, 7, 2528, 62, 9288, 62, 7890, 8, 796, 300, 81, 62, 721, 1078, 62, 15042, 3784, 1136, 62, 8671, 66, 62, 11299, 7, 6739, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 1662, 62, 36733, 7, 719, 796, 300, 83, 62, 9288, 62, 7890, 6739, 628, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 9288, 62, 7890, 39319, 42865, 7, 7278, 62, 9288, 62, 7890, 8, 33411, 1401, 3672, 10635, 705, 2943, 17139, 7206, 38865, 4458, 198, 220, 220, 220, 220, 220, 42865, 7, 7278, 62, 6759, 15390, 62, 17143, 8, 796, 43979, 62, 9288, 62, 7890, 12, 17143, 8658, 58, 279, 1501, 480, 796, 705, 41636, 38715, 6, 20740, 198, 220, 220, 220, 220, 220, 24994, 16284, 43979, 62, 6759, 15390, 62, 17143, 12, 8367, 62, 5420, 3784, 9, 5390, 1279, 2528, 62, 6759, 15390, 28401, 628, 220, 220, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 1662, 62, 36733, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 719, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1279, 2528, 62, 6759, 15390, 29, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31456, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 930, 24908, 287, 38215, 1391, 43979, 62, 9288, 62, 7890, 12, 85, 1501, 480, 1782, 91, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11238, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 611, 62, 1942, 270, 62, 9979, 1187, 14804, 47391, 12, 3919, 6739, 628, 220, 220, 220, 220, 220, 4725, 10705, 16284, 1279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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 ]
PROCESS ON VALUE-REQUEST. FIELD p0007-schkz MODULE schkz_f4_request. MODULE schkz_f4_request INPUT. PERFORM schkz_f4_request. ENDMODULE. FORM schkz_f4_request. DATA: intf TYPE STANDARD TABLE OF ddshiface, intfwa LIKE LINE OF intf. intfwa-dispfield = 'X'. intfwa-shlpfield = 'ZEITY'. intfwa-valfield = 'T503-ZEITY'. intfwa-value = t503-zeity. INSERT intfwa INTO TABLE intf. intfwa-shlpfield = 'MOSID'. intfwa-valfield = 'T001P-MOSID'. intfwa-value = t001p-mosid. INSERT intfwa INTO TABLE intf. intfwa-shlpfield = 'MOFID'. intfwa-valfield = 'T001P-MOFID'. intfwa-value = t001p-mofid. INSERT intfwa INTO TABLE intf. CLEAR intfwa-dispfield. intfwa-shlpfield = 'ENDDA'. intfwa-valfield = 'P0007-BEGDA'. intfwa-internal = 'D'. INSERT intfwa INTO TABLE intf. intfwa-shlpfield = 'BEGDA'. intfwa-valfield = 'P0007-BEGDA'. intfwa-internal = 'D'. INSERT intfwa INTO TABLE intf. intfwa-shlpfield = 'SCHKZ'. intfwa-valfield = 'P0007-SCHKZ'. intfwa-internal = 'D'. INSERT intfwa INTO TABLE intf. CALL FUNCTION 'HR_F4HELP_IN_INTERVAL' EXPORTING im_shlpname = 'H_T508A' im_shlpfield = 'SCHKZ' TABLES tab_intf = intf. ENDFORM.
[ 4805, 4503, 7597, 6177, 26173, 8924, 12, 2200, 35780, 13, 198, 220, 18930, 24639, 279, 830, 22, 12, 20601, 74, 89, 33893, 5513, 74, 89, 62, 69, 19, 62, 25927, 13, 198, 198, 33365, 24212, 5513, 74, 89, 62, 69, 19, 62, 25927, 3268, 30076, 13, 198, 220, 19878, 21389, 5513, 74, 89, 62, 69, 19, 62, 25927, 13, 198, 10619, 33365, 24212, 13, 198, 198, 21389, 5513, 74, 89, 62, 69, 19, 62, 25927, 13, 198, 220, 42865, 25, 493, 69, 220, 220, 41876, 49053, 9795, 43679, 3963, 49427, 1477, 361, 558, 11, 198, 220, 220, 220, 220, 220, 220, 220, 493, 69, 10247, 34178, 48920, 3963, 493, 69, 13, 628, 220, 493, 69, 10247, 12, 6381, 79, 3245, 796, 705, 55, 4458, 628, 220, 493, 69, 10247, 12, 1477, 34431, 3245, 796, 705, 21211, 9050, 4458, 198, 220, 493, 69, 10247, 12, 85, 1604, 1164, 220, 796, 705, 51, 31938, 12, 21211, 9050, 4458, 198, 220, 493, 69, 10247, 12, 8367, 220, 220, 220, 220, 796, 256, 31938, 12, 2736, 414, 13, 198, 220, 29194, 17395, 493, 69, 10247, 39319, 43679, 493, 69, 13, 628, 220, 493, 69, 10247, 12, 1477, 34431, 3245, 796, 705, 44, 2640, 2389, 4458, 198, 220, 493, 69, 10247, 12, 85, 1604, 1164, 220, 796, 705, 51, 8298, 47, 12, 44, 2640, 2389, 4458, 198, 220, 493, 69, 10247, 12, 8367, 220, 220, 220, 220, 796, 256, 8298, 79, 12, 16785, 312, 13, 198, 220, 29194, 17395, 493, 69, 10247, 39319, 43679, 493, 69, 13, 628, 220, 493, 69, 10247, 12, 1477, 34431, 3245, 796, 705, 11770, 37, 2389, 4458, 198, 220, 493, 69, 10247, 12, 85, 1604, 1164, 220, 796, 705, 51, 8298, 47, 12, 11770, 37, 2389, 4458, 198, 220, 493, 69, 10247, 12, 8367, 220, 220, 220, 220, 796, 256, 8298, 79, 12, 76, 1659, 312, 13, 198, 220, 29194, 17395, 493, 69, 10247, 39319, 43679, 493, 69, 13, 628, 220, 30301, 1503, 493, 69, 10247, 12, 6381, 79, 3245, 13, 628, 220, 493, 69, 10247, 12, 1477, 34431, 3245, 796, 705, 10619, 5631, 4458, 198, 220, 493, 69, 10247, 12, 85, 1604, 1164, 220, 796, 705, 47, 830, 22, 12, 33, 7156, 5631, 4458, 198, 220, 493, 69, 10247, 12, 32538, 220, 796, 705, 35, 4458, 198, 220, 29194, 17395, 493, 69, 10247, 39319, 43679, 493, 69, 13, 628, 220, 493, 69, 10247, 12, 1477, 34431, 3245, 796, 705, 33, 7156, 5631, 4458, 198, 220, 493, 69, 10247, 12, 85, 1604, 1164, 220, 796, 705, 47, 830, 22, 12, 33, 7156, 5631, 4458, 198, 220, 493, 69, 10247, 12, 32538, 220, 796, 705, 35, 4458, 198, 220, 29194, 17395, 493, 69, 10247, 39319, 43679, 493, 69, 13, 628, 220, 493, 69, 10247, 12, 1477, 34431, 3245, 796, 705, 50, 3398, 42, 57, 4458, 198, 220, 493, 69, 10247, 12, 85, 1604, 1164, 220, 796, 705, 47, 830, 22, 12, 50, 3398, 42, 57, 4458, 198, 220, 493, 69, 10247, 12, 32538, 220, 796, 705, 35, 4458, 198, 220, 29194, 17395, 493, 69, 10247, 39319, 43679, 493, 69, 13, 628, 220, 42815, 29397, 4177, 2849, 705, 17184, 62, 37, 19, 39, 3698, 47, 62, 1268, 62, 41358, 23428, 6, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 545, 62, 1477, 34431, 3672, 220, 796, 705, 39, 62, 51, 33042, 32, 6, 198, 220, 220, 220, 220, 220, 545, 62, 1477, 34431, 3245, 796, 705, 50, 3398, 42, 57, 6, 198, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 7400, 62, 600, 69, 220, 220, 220, 220, 796, 493, 69, 13, 198, 198, 1677, 8068, 1581, 44, 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,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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 ]
*&---------------------------------------------------------------------* *& Report ZWWW_ALV_GRID *& *&---------------------------------------------------------------------* REPORT ZWWW_ALV_GRID. * ###### ###### # ###### ###### ## ALV_GRID Data: it_Data type ref to data, Grid type ref to CL_GUI_ALV_GRID. Field-symbols: <it_Data> type table. Parameters: p_TabNm type TABNAME matchcode object DDSETBVIEW "DD_DBTB obligatory default 'USER_ADDR', p_Rows type i default 1000. Parameters: p_Type_R radiobutton group gr1, p_Type_T radiobutton group gr1, p_Optim(10) type N modif id VVN, p_Close as checkbox modif id VVN, p_Debug as checkbox modif id VVN, p_Wh_OLE as checkbox modif id VVN, p_UseJAR as checkbox modif id VVN, p_UNICOD as checkbox modif id VVN. Selection-screen Begin of screen 111. Selection-screen End of screen 111. Initialization. Class ZCL_ZWWW definition load. "### ############# # 4.6 Data: CHAR_TAB type C. CHAR_TAB = ZCL_ZWWW=>CHAR_TAB. At selection-screen on p_TabNm. Select single TABNAME into p_TabNm from DD02L where TABNAME = p_TabNm and AS4LOCAL = 'A'. If sy-subrc <> 0. Message E100(AD) with p_TabNm. EndIf. At selection-screen output. Data: it_Excl type standard table of RSMPE-FUNC with header line. Case sy-dynnr. when '0111'. CALL FUNCTION 'RS_SET_SELSCREEN_STATUS' EXPORTING P_STATUS = 'MAIN' TABLES P_EXCLUDE = it_Excl. EndCase. If sy-uname <> 'VIKTOROV'. Loop at Screen. If Screen-Group1 = 'VVN'. Screen-InVisible = 1. Screen-Input = 0. Modify Screen. EndIf. EndLoop. EndIf. At selection-screen. Case sy-dynnr. when '0111'. Case sy-ucomm. when 'EXCEL'. Case 'X'. when p_Type_R. Perform PrintExcel_R using Grid <it_Data>. when p_Type_T. Perform PrintExcel_T using Grid <it_Data>. EndCase. when 'BACK' or 'CANCEL' or 'EXIT'. Leave to screen 0. EndCase. EndCase. *&---------------------------------------------------------------------* Start-of-Selection. * Create data it_Data type standard table of (p_TabNm). * ### ###### 4.6, # ### ##### #### ### ###### :) Perform CreateTable using p_TabNm changing it_Data. If sy-subrc = 0. Assign it_Data->* to <it_Data>. check sy-subrc = 0. Else. Exit. EndIf. Select * into table <it_Data> from (p_TabNm) up to p_Rows rows. If sy-subrc <> 0. Message S718(AD) with p_TabNm. Exit. EndIf. End-of-Selection. Data: it_Excl type UI_FUNCTIONS with header line. If p_Type_T = 'X'. it_Excl = CL_GUI_ALV_GRID=>MC_FC_EXCL_ALL. Append it_Excl. EndIf. Create object Grid EXPORTING i_parent = CL_GUI_CONTAINER=>DEFAULT_SCREEN. Call method Grid->SET_TABLE_FOR_FIRST_DISPLAY EXPORTING I_STRUCTURE_NAME = p_TabNm IT_TOOLBAR_EXCLUDING = it_Excl[] CHANGING IT_OUTTAB = <it_Data>. Call selection-screen 111. *&---------------------------------------------------------------------* *& Form GetFormatMask *&---------------------------------------------------------------------* Form Get_Header_And_Mask using it_FIELDCATALOG type LVC_T_FCAT StrHeader type string StrMask type string. Field-symbols: <FldCat> type line of LVC_T_FCAT. Data: Mask type string. Clear: StrHeader, StrMask. Loop at it_FIELDCATALOG assigning <FldCat> where NO_OUT is initial. Concatenate StrHeader <FldCat>-SCRTEXT_L Char_Tab into StrHeader. Mask = <FldCat>-INTTYPE. If <FldCat>-DECIMALS > 0. Concatenate Mask '0.' into Mask. Do <FldCat>-DECIMALS times. Concatenate Mask '0' into Mask. EndDo. EndIf. Concatenate StrMask Mask Char_Tab into StrMask. EndLoop. EndForm. "GetFormatMask *&---------------------------------------------------------------------* *& Form PrintExcel_R *&---------------------------------------------------------------------* Form PrintExcel_R using Grid type ref to CL_GUI_ALV_GRID it_Data type table. Data: * CharTab value ' ', "CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB, ET_FILTERED_ENTRIES type LVC_T_FIDX, EP_COLLECT00 type ref to data, EP_COLLECT01 type ref to data, EP_COLLECT02 type ref to data, EP_COLLECT03 type ref to data, EP_COLLECT04 type ref to data, EP_COLLECT05 type ref to data, EP_COLLECT06 type ref to data, EP_COLLECT07 type ref to data, EP_COLLECT08 type ref to data, EP_COLLECT09 type ref to data, ET_GROUPLEVELS type LVC_T_GRPL with header line, ET_FIELDCATALOG type LVC_T_FCAT, it_Val type standard table of ZWWW_VALUES with header line, StrValue type string, StrMask type string, StrFld type string, NumCols type i, RowNo type i. Field-symbols: <Rec>, <Fld>, <FldCat> type line of LVC_T_FCAT, <it_collect> type table. Call method Grid->GET_FILTERED_ENTRIES IMPORTING ET_FILTERED_ENTRIES = ET_FILTERED_ENTRIES[]. Call method Grid->GET_SUBTOTALS IMPORTING EP_COLLECT00 = EP_COLLECT00 EP_COLLECT01 = EP_COLLECT01 EP_COLLECT02 = EP_COLLECT02 EP_COLLECT03 = EP_COLLECT03 EP_COLLECT04 = EP_COLLECT04 EP_COLLECT05 = EP_COLLECT05 EP_COLLECT06 = EP_COLLECT06 EP_COLLECT07 = EP_COLLECT07 EP_COLLECT08 = EP_COLLECT08 EP_COLLECT09 = EP_COLLECT09 ET_GROUPLEVELS = ET_GROUPLEVELS[]. Call method Grid->GET_FRONTEND_FIELDCATALOG IMPORTING ET_FIELDCATALOG = ET_FIELDCATALOG. Delete ET_FIELDCATALOG where NO_OUT = 'X'. Sort ET_FIELDCATALOG by COL_POS. Define SetVal. Clear it_Val. it_Val-VAR_NAME = &1. it_Val-VAR_NUM = &2. it_Val-FIND_TEXT = &3. it_Val-VAL_TYPE = &4. it_Val-VALUE = &5. * Concatenate '''' it_Val-VALUE into it_Val-VALUE. Append it_Val. End-of-definition. Data: FldType, CharValue(255), Len type I. Define Write_to. Describe field &1 type FldType. If &1 is initial. Case FldType. * when 'P'. * Write &1 to CharValue. * &2 = CharValue. when others. Clear &2. EndCase. Else. Case FldType. when 'D'. "'P' or 'F' or 'N' or 'I' or Write &1 to CharValue. &2 = CharValue. when others. &2 = &1. EndCase. EndIf. Len = Strlen( &2 ). If Len > 7000. &2 = &2(7000). EndIf. End-of-definition. Describe table ET_FIELDCATALOG lines NumCols. SetVal 'A_BeforeOutput' '' '' '' NumCols. SetVal 'A_BeforeOutput' '' '' 'M' 'BeforeOutput'. Clear: StrValue, StrMask. * Data: Mask type string. * Loop at ET_FIELDCATALOG assigning <FldCat>. * Concatenate StrValue <FldCat>-SCRTEXT_L Char_Tab into StrValue. * Mask = <FldCat>-INTTYPE. * If <FldCat>-DECIMALS > 0. * Concatenate Mask '0.' into Mask. * Do <FldCat>-DECIMALS times. * Concatenate Mask '0' into Mask. * EndDo. * EndIf. * Concatenate StrMask Mask Char_Tab into StrMask. * EndLoop. Perform Get_Header_And_Mask using ET_FIELDCATALOG[] StrValue StrMask. SetVal 'Header' '' 'FIELD1' 'R' StrValue. SetVal 'FormatMask' '' 'FIELD1' 'R' StrMask. * SetVal 'FormatMask' '' '' 'M' 'SetFormatMask'. Assign EP_COLLECT00->* to <it_collect>. If sy-subrc = 0 and <it_collect> is assigned. If <it_collect> is initial. SetVal 'Total' '' '' 'D' ''. Refresh ET_GROUPLEVELS[]. EndIf. If ET_GROUPLEVELS[] is initial. SetVal 'SubTotal' '' '' 'D' ''. Describe table it_Data lines NumCols. ET_GROUPLEVELS-INDEX_FROM = 1. ET_GROUPLEVELS-INDEX_TO = NumCols. EndIf. If not <it_collect> is initial. ET_GROUPLEVELS-SUBTOT = 'X'. ET_GROUPLEVELS-CINDX_FROM = 1. EndIf. Append ET_GROUPLEVELS. EndIf. Sort ET_FILTERED_ENTRIES. RowNo = 0. Loop at ET_GROUPLEVELS. Case ET_GROUPLEVELS-LEVEL. when 0. Assign EP_COLLECT00->* to <it_collect>. when 1. Assign EP_COLLECT01->* to <it_collect>. when 2. Assign EP_COLLECT02->* to <it_collect>. when 3. Assign EP_COLLECT03->* to <it_collect>. when 4. Assign EP_COLLECT04->* to <it_collect>. when 5. Assign EP_COLLECT05->* to <it_collect>. when 6. Assign EP_COLLECT06->* to <it_collect>. when 7. Assign EP_COLLECT07->* to <it_collect>. when 8. Assign EP_COLLECT08->* to <it_collect>. when 9. Assign EP_COLLECT09->* to <it_collect>. EndCase. Loop at it_Data assigning <Rec> from ET_GROUPLEVELS-INDEX_FROM to ET_GROUPLEVELS-INDEX_TO. Read table ET_FILTERED_ENTRIES with key table_line = sy-tabix transporting no fields. check sy-subrc <> 0. Clear StrValue. RowNo = RowNo + 1. Loop at ET_FIELDCATALOG assigning <FldCat>. Assign component <FldCat>-FIELDNAME of structure <Rec> to <Fld>. Write_to <Fld> StrFld. Condense StrFld. * Concatenate '''' StrFld into StrFld. Concatenate StrValue StrFld Char_Tab into StrValue. EndLoop. SetVal 'Line' RowNo 'FIELD1' 'R' StrValue. EndLoop. If ET_GROUPLEVELS-SUBTOT = 'X'. RowNo = RowNo + 1. If ET_GROUPLEVELS-LEVEL > 0. SetVal 'Line' RowNo '' 'V' 'SubTotal'. Else. SetVal 'Line' RowNo '' 'V' 'Total'. EndIf. Read table <it_collect> index ET_GROUPLEVELS-CINDX_FROM assigning <Rec>. Clear StrValue. Loop at ET_FIELDCATALOG assigning <FldCat>. Assign component <FldCat>-COL_ID of structure <Rec> to <Fld>. Write_to <Fld> StrFld. Condense StrFld. Concatenate StrValue StrFld Char_Tab into StrValue. EndLoop. SetVal 'Line' RowNo 'FIELD1' 'R' StrValue. EndIf. EndLoop. SetVal 'Z_AfterOutput' '' '' 'M' 'AfterOutput'. Call function 'ZWWW_OPENFORM' EXPORTING FORM_NAME = 'ZWWW_ALV_GRID' PRINTDIALOG = '' DEBUG_MODE = p_Debug OPTIMIZE = p_Optim CLOSE_FORM = p_Close PROTECT = '' WITHOUT_OLE = p_Wh_OLE USE_JAR = p_UseJAR USE_UNICODE = p_UNICOD TABLES IT_VALUES = it_Val. EndForm. " PRINTEXCEL *&---------------------------------------------------------------------* *& Form PrintExcel_T *&---------------------------------------------------------------------* Form PrintExcel_T using Grid type ref to CL_GUI_ALV_GRID it_Data type table. Data: it_Val type standard table of ZWWW_VALUES with header line, it_FldCat type standard table of ZWWW_FIELD_CATALOG with header line, ET_FIELDCATALOG type LVC_T_FCAT with header line, NumCols type i. Call method Grid->GET_FRONTEND_FIELDCATALOG IMPORTING ET_FIELDCATALOG = ET_FIELDCATALOG[]. Sort ET_FIELDCATALOG by COL_POS. Loop at ET_FIELDCATALOG. Clear it_FldCat. If ET_FIELDCATALOG-NO_OUT is initial. NumCols = NumCols + 1. EndIf. If NumCols = 1. it_FldCat-FIND_TEXT = 'FIELD1'. EndIf. it_FldCat-FIELD_NAME = ET_FIELDCATALOG-FIELDNAME. it_FldCat-FIELD_HEADER = ET_FIELDCATALOG-SCRTEXT_L. it_FldCat-NO_OUT = ET_FIELDCATALOG-NO_OUT. it_FldCat-NO_ZERO = 'X'. it_FldCat-COL_POS = NumCols. Append it_FldCat. EndLoop. Data: StrValue type string, StrMask type string. Perform Get_Header_And_Mask using ET_FIELDCATALOG[] StrValue StrMask. SetVal 'A_BeforeOutput' '' '' '' NumCols. SetVal 'A_BeforeOutput' '' '' 'M' 'BeforeOutput'. SetVal 'FormatMask' '' 'FIELD1' 'R' StrMask. Call function 'ZWWW_PREPARE_TABLE' EXPORTING HEADER_NAME = 'Header' LINE_NAME = 'Line' VAL_TYPE = 'T' TABLES IT_ANY_TABLE = it_Data IT_VALUES = it_Val IT_FIELDS_CATALOG = it_FldCat. SetVal 'SubTotal' '' '' 'D' ''. SetVal 'Total' '' '' 'D' ''. SetVal 'Z_AfterOutput' '' '' 'M' 'AfterOutput'. Call function 'ZWWW_OPENFORM' EXPORTING FORM_NAME = 'ZWWW_ALV_GRID' PRINTDIALOG = '' DEBUG_MODE = p_Debug OPTIMIZE = p_Optim CLOSE_FORM = p_Close PROTECT = '' WITHOUT_OLE = p_Wh_OLE USE_JAR = p_UseJAR USE_UNICODE = p_UNICOD TABLES IT_VALUES = it_Val. EndForm. "PrintExcel_T *&---------------------------------------------------------------------* *& Form CreateTable *&---------------------------------------------------------------------* Form CreateTable using p_TabNm changing it_Data type ref to data. Data: it_FIELDCATALOG type LVC_T_FCAT. Call function'LVC_FIELDCATALOG_MERGE' exporting I_STRUCTURE_NAME = p_TabNm changing CT_FIELDCAT = it_FIELDCATALOG exceptions others = 1. Call method CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE EXPORTING IT_FIELDCATALOG = it_FIELDCATALOG IMPORTING EP_TABLE = it_Data. EndForm. " CreateTable
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 220, 1168, 17947, 54, 62, 1847, 53, 62, 10761, 2389, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 2200, 15490, 220, 1168, 17947, 54, 62, 1847, 53, 62, 10761, 2389, 13, 198, 9, 46424, 2, 46424, 2, 1303, 46424, 2, 46424, 2, 22492, 8355, 53, 62, 10761, 2389, 198, 198, 6601, 25, 198, 220, 340, 62, 6601, 2099, 1006, 284, 1366, 11, 198, 220, 24846, 2099, 1006, 284, 7852, 62, 40156, 62, 1847, 53, 62, 10761, 2389, 13, 198, 198, 15878, 12, 1837, 2022, 10220, 25, 198, 220, 1279, 270, 62, 6601, 29, 2099, 3084, 13, 198, 198, 48944, 25, 198, 220, 279, 62, 33349, 45, 76, 2099, 309, 6242, 20608, 2872, 8189, 2134, 360, 5258, 2767, 33, 28206, 366, 16458, 62, 11012, 22737, 198, 220, 220, 220, 44609, 4277, 705, 29904, 62, 2885, 7707, 3256, 198, 220, 279, 62, 49, 1666, 2099, 1312, 4277, 8576, 13, 198, 198, 48944, 25, 198, 220, 279, 62, 6030, 62, 49, 19772, 672, 21115, 1448, 1036, 16, 11, 198, 220, 279, 62, 6030, 62, 51, 19772, 672, 21115, 1448, 1036, 16, 11, 198, 220, 279, 62, 27871, 320, 7, 940, 8, 2099, 399, 953, 361, 4686, 569, 53, 45, 11, 198, 220, 279, 62, 26125, 355, 2198, 3524, 953, 361, 4686, 569, 53, 45, 11, 198, 220, 279, 62, 27509, 355, 2198, 3524, 953, 361, 4686, 569, 53, 45, 11, 198, 220, 279, 62, 1199, 62, 46, 2538, 355, 2198, 3524, 953, 361, 4686, 569, 53, 45, 11, 198, 220, 279, 62, 11041, 41, 1503, 355, 2198, 3524, 953, 361, 4686, 569, 53, 45, 11, 198, 220, 279, 62, 4944, 2149, 3727, 355, 2198, 3524, 953, 361, 4686, 569, 53, 45, 13, 198, 198, 4653, 1564, 12, 9612, 16623, 286, 3159, 13374, 13, 198, 4653, 1564, 12, 9612, 5268, 286, 3159, 13374, 13, 198, 198, 24243, 1634, 13, 198, 220, 5016, 1168, 5097, 62, 57, 17947, 54, 6770, 3440, 13, 366, 21017, 1303, 7804, 4242, 1303, 604, 13, 21, 628, 220, 6060, 25, 198, 220, 220, 220, 28521, 62, 5603, 33, 2099, 327, 13, 198, 220, 28521, 62, 5603, 33, 796, 1168, 5097, 62, 57, 17947, 54, 14804, 38019, 62, 5603, 33, 13, 198, 198, 2953, 6356, 12, 9612, 319, 279, 62, 33349, 45, 76, 13, 198, 220, 9683, 2060, 309, 6242, 20608, 198, 220, 220, 220, 656, 279, 62, 33349, 45, 76, 198, 220, 220, 220, 422, 20084, 2999, 43, 198, 220, 220, 220, 810, 309, 6242, 20608, 220, 796, 279, 62, 33349, 45, 76, 198, 220, 220, 220, 220, 220, 290, 7054, 19, 29701, 1847, 796, 705, 32, 4458, 198, 220, 1002, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 16000, 412, 3064, 7, 2885, 8, 351, 279, 62, 33349, 45, 76, 13, 198, 220, 5268, 1532, 13, 198, 198, 2953, 6356, 12, 9612, 5072, 13, 198, 220, 6060, 25, 340, 62, 3109, 565, 2099, 3210, 3084, 286, 19340, 7378, 36, 12, 42296, 34, 351, 13639, 1627, 13, 628, 220, 8913, 827, 12, 67, 2047, 48624, 13, 198, 220, 220, 220, 618, 705, 486, 1157, 4458, 198, 220, 220, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 6998, 62, 28480, 62, 50, 3698, 6173, 2200, 1677, 62, 35744, 2937, 6, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 350, 62, 35744, 2937, 220, 796, 705, 5673, 1268, 6, 198, 220, 220, 220, 220, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 350, 62, 6369, 5097, 52, 7206, 796, 340, 62, 3109, 565, 13, 628, 220, 5268, 20448, 13, 628, 220, 1002, 827, 12, 403, 480, 1279, 29, 705, 12861, 42, 32961, 8874, 4458, 198, 220, 220, 220, 26304, 379, 15216, 13, 198, 220, 220, 220, 220, 220, 1002, 15216, 12, 13247, 16, 796, 705, 53, 53, 45, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 15216, 12, 818, 53, 12843, 796, 352, 13, 198, 220, 220, 220, 220, 220, 220, 220, 15216, 12, 20560, 796, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 3401, 1958, 15216, 13, 198, 220, 220, 220, 220, 220, 5268, 1532, 13, 198, 220, 220, 220, 5268, 39516, 13, 198, 220, 5268, 1532, 13, 198, 198, 2953, 6356, 12, 9612, 13, 198, 220, 8913, 827, 12, 67, 2047, 48624, 13, 198, 220, 220, 220, 618, 705, 486, 1157, 4458, 198, 220, 220, 220, 220, 220, 8913, 827, 12, 84, 9503, 13, 198, 220, 220, 220, 220, 220, 220, 220, 618, 705, 6369, 34, 3698, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8913, 705, 55, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 618, 279, 62, 6030, 62, 49, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 35006, 12578, 3109, 5276, 62, 49, 1262, 24846, 1279, 270, 62, 6601, 28401, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 618, 279, 62, 6030, 62, 51, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 35006, 12578, 3109, 5276, 62, 51, 1262, 24846, 1279, 270, 62, 6601, 28401, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5268, 20448, 13, 628, 220, 220, 220, 220, 220, 220, 220, 618, 705, 31098, 6, 393, 705, 34, 20940, 3698, 6, 393, 705, 6369, 2043, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17446, 284, 3159, 657, 13, 198, 220, 220, 220, 220, 220, 5268, 20448, 13, 198, 220, 5268, 20448, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 10434, 12, 1659, 12, 4653, 1564, 13, 198, 9, 220, 13610, 1366, 340, 62, 6601, 2099, 3210, 3084, 286, 357, 79, 62, 33349, 45, 76, 737, 198, 9, 44386, 46424, 2, 604, 13, 21, 11, 1303, 44386, 46424, 1303, 21017, 44386, 46424, 2, 14373, 198, 220, 35006, 13610, 10962, 1262, 279, 62, 33349, 45, 76, 5609, 340, 62, 6601, 13, 628, 220, 1002, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 2195, 570, 340, 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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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 ]
FUNCTION-POOL ZCONST. "MESSAGE-ID .. * INCLUDE LZCONSTD... " Local class definition
[ 42296, 4177, 2849, 12, 16402, 3535, 1168, 10943, 2257, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 10943, 32147, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 1, 1, 1, 1, 1 ]
"! <p class="shorttext synchronized" lang="en"></p> "! CLASS zcl_csr_8859_1 DEFINITION PUBLIC INHERITING FROM zcl_csr_sbcs ABSTRACT CREATE PUBLIC . PUBLIC SECTION. METHODS constructor . METHODS get_name REDEFINITION . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ZCL_CSR_8859_1 IMPLEMENTATION. METHOD constructor. super->constructor( ). CONCATENATE '2020202020202020' '2020202020202020' '2020202020202020' '2020202020202020' '2020202020202000' '2020202020202020' '2020202020202020' '2020202020202020' '2061626364656667' '68696A6B6C6D6E6F' '7071727374757677' '78797A2020202020' '2061626364656667' '68696A6B6C6D6E6F' '7071727374757677' '78797A2020202020' '2020202020202020' '2020202020202020' '2020202020202020' '2020202020202020' '2020202020202020' '2020AA2020202020' '2020202020B52020' '2020BA2020202020' 'E0E1E2E3E4E5E6E7' 'E8E9EAEBECEDEEEF' 'F0F1F2F3F4F5F620' 'F8F9FAFBFCFDFEDF' 'E0E1E2E3E4E5E6E7' 'E8E9EAEBECEDEEEF' 'F0F1F2F3F4F5F620' 'F8F9FAFBFCFDFEFF' INTO charmap. ENDMETHOD. METHOD get_name. IF have_c1_bytes = abap_true. name = 'windows-1252'. ELSE. name = 'ISO-8859-1'. ENDIF. ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 23984, 79, 29, 198, 40484, 198, 31631, 1976, 565, 62, 6359, 81, 62, 3459, 3270, 62, 16, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 6359, 81, 62, 36299, 6359, 198, 220, 9564, 18601, 10659, 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, 651, 62, 3672, 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, 1168, 5097, 62, 7902, 49, 62, 3459, 3270, 62, 16, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 198, 220, 220, 220, 39962, 1404, 1677, 6158, 198, 220, 220, 220, 705, 42334, 42334, 42334, 42334, 6, 198, 220, 220, 220, 705, 42334, 42334, 42334, 42334, 6, 198, 220, 220, 220, 705, 42334, 42334, 42334, 42334, 6, 198, 220, 220, 220, 705, 42334, 42334, 42334, 42334, 6, 198, 220, 220, 220, 705, 42334, 42334, 42334, 11024, 6, 198, 220, 220, 220, 705, 42334, 42334, 42334, 42334, 6, 198, 220, 220, 220, 705, 42334, 42334, 42334, 42334, 6, 198, 220, 220, 220, 705, 42334, 42334, 42334, 42334, 6, 198, 220, 220, 220, 705, 22136, 1433, 2075, 26780, 2996, 2791, 3134, 6, 198, 220, 220, 220, 705, 3104, 38205, 32, 21, 33, 21, 34, 21, 35, 21, 36, 21, 37, 6, 198, 220, 220, 220, 705, 24038, 1558, 1983, 31020, 2425, 32059, 22, 6, 198, 220, 220, 220, 705, 3695, 44673, 32, 42334, 42334, 1238, 6, 198, 220, 220, 220, 705, 22136, 1433, 2075, 26780, 2996, 2791, 3134, 6, 198, 220, 220, 220, 705, 3104, 38205, 32, 21, 33, 21, 34, 21, 35, 21, 36, 21, 37, 6, 198, 220, 220, 220, 705, 24038, 1558, 1983, 31020, 2425, 32059, 22, 6, 198, 220, 220, 220, 705, 3695, 44673, 32, 42334, 42334, 1238, 6, 198, 220, 220, 220, 705, 42334, 42334, 42334, 42334, 6, 198, 220, 220, 220, 705, 42334, 42334, 42334, 42334, 6, 198, 220, 220, 220, 705, 42334, 42334, 42334, 42334, 6, 198, 220, 220, 220, 705, 42334, 42334, 42334, 42334, 6, 198, 220, 220, 220, 705, 42334, 42334, 42334, 42334, 6, 198, 220, 220, 220, 705, 42334, 3838, 42334, 42334, 1238, 6, 198, 220, 220, 220, 705, 42334, 42334, 1238, 33, 31211, 1238, 6, 198, 220, 220, 220, 705, 42334, 4339, 42334, 42334, 1238, 6, 198, 220, 220, 220, 705, 36, 15, 36, 16, 36, 17, 36, 18, 36, 19, 36, 20, 36, 21, 36, 22, 6, 198, 220, 220, 220, 705, 36, 23, 36, 24, 36, 14242, 33, 2943, 1961, 6500, 25425, 6, 198, 220, 220, 220, 705, 37, 15, 37, 16, 37, 17, 37, 18, 37, 19, 37, 20, 37, 38850, 6, 198, 220, 220, 220, 705, 37, 23, 37, 24, 7708, 26001, 4851, 37, 8068, 1961, 37, 6, 198, 220, 220, 220, 705, 36, 15, 36, 16, 36, 17, 36, 18, 36, 19, 36, 20, 36, 21, 36, 22, 6, 198, 220, 220, 220, 705, 36, 23, 36, 24, 36, 14242, 33, 2943, 1961, 6500, 25425, 6, 198, 220, 220, 220, 705, 37, 15, 37, 16, 37, 17, 37, 18, 37, 19, 37, 20, 37, 38850, 6, 198, 220, 220, 220, 705, 37, 23, 37, 24, 7708, 26001, 4851, 37, 8068, 37267, 6, 198, 220, 220, 220, 39319, 1149, 8899, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 3672, 13, 628, 220, 220, 220, 16876, 423, 62, 66, 16, 62, 33661, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 1438, 796, 705, 28457, 12, 1065, 4309, 4458, 198, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 1438, 796, 705, 40734, 12, 3459, 3270, 12, 16, 4458, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
***** Implementation of object type ZDOP_BAPI ***** INCLUDE <OBJECT>. BEGIN_DATA OBJECT. " Do not change.. DATA is generated * only private members may be inserted into structure private DATA: " begin of private, " to declare private attributes remove comments and " insert private attributes here ... " end of private, KEY LIKE SWOTOBJID-OBJKEY. END_DATA OBJECT. " Do not change.. DATA is generated BEGIN_METHOD ZDOPMATERIALDATA CHANGING CONTAINER. DATA: MATERIAL LIKE ZDOP_BAPI_S_MATERIAL, MATERIALDETAIL LIKE ZDOP_BAPI_EXP_MATERIAL, RETURN LIKE BAPIRET2. SWC_GET_ELEMENT CONTAINER 'Material' MATERIAL. CALL FUNCTION 'ZDOP_BAPI_MATERIAL_DATA' EXPORTING MATERIAL = MATERIAL IMPORTING MATERIAL_DETAIL = MATERIALDETAIL RETURN = RETURN EXCEPTIONS OTHERS = 01. CASE SY-SUBRC. WHEN 0. " OK WHEN OTHERS. " to be implemented ENDCASE. SWC_SET_ELEMENT CONTAINER 'MaterialDetail' MATERIALDETAIL. SWC_SET_ELEMENT CONTAINER 'Return' RETURN. END_METHOD.
[ 35625, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 46333, 286, 2134, 2099, 1168, 35, 3185, 62, 33, 17614, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25998, 9, 198, 1268, 5097, 52, 7206, 1279, 9864, 23680, 28401, 198, 33, 43312, 62, 26947, 25334, 23680, 13, 366, 2141, 407, 1487, 492, 42865, 318, 7560, 198, 9, 691, 2839, 1866, 743, 307, 18846, 656, 4645, 2839, 198, 26947, 25, 198, 1, 2221, 286, 2839, 11, 198, 1, 220, 220, 284, 13627, 2839, 12608, 4781, 3651, 290, 198, 1, 220, 220, 7550, 2839, 12608, 994, 2644, 198, 1, 886, 286, 2839, 11, 198, 220, 220, 220, 220, 220, 35374, 34178, 12672, 2394, 9864, 41, 2389, 12, 9864, 41, 20373, 13, 198, 10619, 62, 26947, 25334, 23680, 13, 366, 2141, 407, 1487, 492, 42865, 318, 7560, 198, 198, 33, 43312, 62, 49273, 1168, 35, 3185, 44, 23261, 12576, 26947, 5870, 15567, 2751, 7102, 30339, 1137, 13, 198, 26947, 25, 198, 220, 220, 220, 220, 220, 337, 23261, 12576, 34178, 1168, 35, 3185, 62, 33, 17614, 62, 50, 62, 44, 23261, 12576, 11, 198, 220, 220, 220, 220, 220, 337, 23261, 12576, 35, 20892, 4146, 34178, 1168, 35, 3185, 62, 33, 17614, 62, 49864, 62, 44, 23261, 12576, 11, 198, 220, 220, 220, 220, 220, 30826, 27064, 34178, 347, 17614, 26087, 17, 13, 198, 220, 12672, 34, 62, 18851, 62, 36, 2538, 10979, 7102, 30339, 1137, 705, 17518, 6, 337, 23261, 12576, 13, 198, 220, 42815, 29397, 4177, 2849, 705, 57, 35, 3185, 62, 33, 17614, 62, 44, 23261, 12576, 62, 26947, 6, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 337, 23261, 12576, 796, 337, 23261, 12576, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 337, 23261, 12576, 62, 35, 20892, 4146, 796, 337, 23261, 12576, 35, 20892, 4146, 198, 220, 220, 220, 220, 220, 30826, 27064, 796, 30826, 27064, 198, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 440, 4221, 4877, 796, 5534, 13, 198, 220, 42001, 19704, 12, 50, 10526, 7397, 13, 198, 220, 220, 220, 42099, 657, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 7477, 198, 220, 220, 220, 42099, 440, 4221, 4877, 13, 220, 220, 220, 220, 220, 220, 366, 284, 307, 9177, 198, 220, 23578, 34, 11159, 13, 198, 220, 12672, 34, 62, 28480, 62, 36, 2538, 10979, 7102, 30339, 1137, 705, 17518, 11242, 603, 6, 337, 23261, 12576, 35, 20892, 4146, 13, 198, 220, 12672, 34, 62, 28480, 62, 36, 2538, 10979, 7102, 30339, 1137, 705, 13615, 6, 30826, 27064, 13, 198, 10619, 62, 49273, 13, 198 ]
[ 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 ]
class YCL_AIM_TSK_D_ATTRIBUTE_PROPER definition public inheriting from /BOBF/CL_LIB_D_SUPERCLASS final create public . public section. methods /BOBF/IF_FRW_DETERMINATION~EXECUTE redefinition . protected section. private section. ENDCLASS. CLASS YCL_AIM_TSK_D_ATTRIBUTE_PROPER IMPLEMENTATION. METHOD /bobf/if_frw_determination~execute. CLEAR: eo_message, et_failed_key. DATA(lo_property_helper) = NEW /bobf/cl_lib_h_set_property( is_context = is_ctx io_modify = io_modify ). DATA lt_task TYPE yaim_tsk_t_root. io_read->retrieve( EXPORTING iv_node = is_ctx-node_key " Node Name it_key = it_key " Key Table iv_fill_data = abap_true it_requested_attributes = VALUE #( ( yif_aim_tsk_yaim_task_c=>sc_node_attribute-root-status ) ) IMPORTING et_data = lt_task ). LOOP AT lt_task REFERENCE INTO DATA(lr_task). lo_property_helper->set_node_update_enabled( iv_key = lr_task->key iv_value = boolc( lr_task->status NE '03' ) "closed ). ENDLOOP. ENDMETHOD. ENDCLASS.
[ 4871, 575, 5097, 62, 32, 3955, 62, 4694, 42, 62, 35, 62, 1404, 5446, 9865, 37780, 62, 4805, 31054, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1220, 8202, 29499, 14, 5097, 62, 40347, 62, 35, 62, 40331, 1137, 31631, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 5050, 1220, 8202, 29499, 14, 5064, 62, 10913, 54, 62, 35, 2767, 1137, 23678, 6234, 93, 6369, 2943, 37780, 198, 220, 220, 220, 34087, 17750, 764, 198, 24326, 2665, 13, 198, 19734, 2665, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 575, 5097, 62, 32, 3955, 62, 4694, 42, 62, 35, 62, 1404, 5446, 9865, 37780, 62, 4805, 31054, 30023, 2538, 10979, 6234, 13, 628, 198, 49273, 1220, 65, 672, 69, 14, 361, 62, 8310, 86, 62, 40869, 93, 41049, 13, 628, 220, 30301, 1503, 25, 304, 78, 62, 20500, 11, 2123, 62, 47904, 62, 2539, 13, 628, 220, 42865, 7, 5439, 62, 26745, 62, 2978, 525, 8, 796, 12682, 1220, 65, 672, 69, 14, 565, 62, 8019, 62, 71, 62, 2617, 62, 26745, 7, 198, 220, 220, 220, 220, 220, 318, 62, 22866, 796, 318, 62, 49464, 198, 220, 220, 220, 220, 220, 33245, 62, 4666, 1958, 220, 796, 33245, 62, 4666, 1958, 198, 220, 6739, 628, 220, 42865, 300, 83, 62, 35943, 220, 220, 220, 41876, 331, 1385, 62, 912, 74, 62, 83, 62, 15763, 13, 628, 220, 33245, 62, 961, 3784, 1186, 30227, 7, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 21628, 62, 17440, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 318, 62, 49464, 12, 17440, 62, 2539, 220, 220, 220, 366, 19081, 6530, 198, 220, 220, 220, 220, 220, 340, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 340, 62, 2539, 220, 220, 220, 366, 7383, 8655, 198, 220, 220, 220, 220, 220, 21628, 62, 20797, 62, 7890, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 340, 62, 25927, 276, 62, 1078, 7657, 796, 26173, 8924, 1303, 7, 357, 331, 361, 62, 1385, 62, 912, 74, 62, 88, 1385, 62, 35943, 62, 66, 14804, 1416, 62, 17440, 62, 42348, 12, 15763, 12, 13376, 1267, 1267, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 2123, 62, 7890, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 83, 62, 35943, 198, 220, 6739, 628, 220, 17579, 3185, 5161, 300, 83, 62, 35943, 4526, 24302, 18310, 39319, 42865, 7, 14050, 62, 35943, 737, 198, 220, 220, 220, 2376, 62, 26745, 62, 2978, 525, 3784, 2617, 62, 17440, 62, 19119, 62, 25616, 7, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 2539, 220, 220, 796, 300, 81, 62, 35943, 3784, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 8367, 796, 20512, 66, 7, 300, 81, 62, 35943, 3784, 13376, 10635, 705, 3070, 6, 1267, 366, 20225, 198, 220, 220, 220, 6739, 198, 220, 23578, 21982, 3185, 13, 198, 198, 10619, 49273, 13, 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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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 ]
CLASS /dmo/cx_flight_legacy15 DEFINITION PUBLIC INHERITING FROM cx_static_check FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES if_t100_message . CONSTANTS: gc_msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', BEGIN OF agency_unkown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '001', attr1 TYPE scx_attrname VALUE 'MV_AGENCY_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF agency_unkown, BEGIN OF customer_unkown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '002', attr1 TYPE scx_attrname VALUE 'MV_CUSTOMER_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF customer_unkown, BEGIN OF connection_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '004', attr1 TYPE scx_attrname VALUE 'MV_CARRIER_ID', attr2 TYPE scx_attrname VALUE 'MV_CONNECTION_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF connection_unknown , BEGIN OF carrier_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '005', attr1 TYPE scx_attrname VALUE 'MV_CARRIER_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF carrier_unknown , BEGIN OF supplement_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '006', attr1 TYPE scx_attrname VALUE 'MV_SUPPLEMENT_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF supplement_unknown, BEGIN OF travel_status_invalid, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '007', attr1 TYPE scx_attrname VALUE 'MV_STATUS', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF travel_status_invalid, BEGIN OF currency_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '008', attr1 TYPE scx_attrname VALUE 'MV_CURRENCY_CODE', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF currency_unknown, BEGIN OF travel_no_key, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '009', attr1 TYPE scx_attrname VALUE '', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF travel_no_key, BEGIN OF no_begin_date, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '013', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF no_begin_date, BEGIN OF no_end_date, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '014', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF no_end_date, BEGIN OF end_date_before_begin_date, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '015', attr1 TYPE scx_attrname VALUE 'MV_BEGIN_DATE', attr2 TYPE scx_attrname VALUE 'MV_END_DATE', attr3 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr4 TYPE scx_attrname VALUE '', END OF end_date_before_begin_date, BEGIN OF travel_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '016', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF travel_unknown, BEGIN OF booking_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '017', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_unknown, BEGIN OF booking_no_key, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '018', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_no_key, BEGIN OF booking_booking_date_invalid, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '019', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE 'MV_BOOKING_DATE', attr4 TYPE scx_attrname VALUE '', END OF booking_booking_date_invalid, BEGIN OF flight_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '020', attr1 TYPE scx_attrname VALUE 'MV_CARRIER_ID', attr2 TYPE scx_attrname VALUE 'MV_CONNECTION_ID', attr3 TYPE scx_attrname VALUE 'MV_FLIGHT_DATE', attr4 TYPE scx_attrname VALUE '', END OF flight_unknown, BEGIN OF booking_supplement_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '021', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE 'MV_BOOKING_SUPPLEMENT_ID', attr4 TYPE scx_attrname VALUE '', END OF booking_supplement_unknown, BEGIN OF booking_supplement_no_key, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '022', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_supplement_no_key, BEGIN OF booking_exists, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '023', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_exists, BEGIN OF booking_supplement_exists, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '024', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE 'MV_BOOKING_SUPPLEMENT_ID', attr4 TYPE scx_attrname VALUE '', END OF booking_supplement_exists, BEGIN OF travel_no_control, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '025', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF travel_no_control, BEGIN OF booking_no_control, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '026', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_no_control, BEGIN OF booking_supplement_no_control, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '027', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE 'MV_BOOKING_SUPPLEMENT_ID', attr4 TYPE scx_attrname VALUE '', END OF booking_supplement_no_control, BEGIN OF booking_supplement_suppl_id_u, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '028', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE 'MV_BOOKING_SUPPLEMENT_ID', attr4 TYPE scx_attrname VALUE '', END OF booking_supplement_suppl_id_u, BEGIN OF booking_supplement_pri_curr_u, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '029', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE 'MV_BOOKING_SUPPLEMENT_ID', attr4 TYPE scx_attrname VALUE '', END OF booking_supplement_pri_curr_u, BEGIN OF booking_flight_u, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '030', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_flight_u, BEGIN OF booking_price_currency_u, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '031', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_price_currency_u, BEGIN OF travel_lock, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '032', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_UNAME', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF travel_lock, BEGIN OF travel_already_exists, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_15', msgno TYPE symsgno VALUE '033', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF travel_already_exists. METHODS constructor IMPORTING textid LIKE if_t100_message=>t100key OPTIONAL previous LIKE previous OPTIONAL travel_id TYPE /dmo/travel_id15 OPTIONAL booking_id TYPE /dmo/booking_id15 OPTIONAL booking_supplement_id TYPE /dmo/booking_supplement_id15 OPTIONAL agency_id TYPE /dmo/agency_id15 OPTIONAL customer_id TYPE /dmo/customer_id15 OPTIONAL carrier_id TYPE /dmo/carrier15-carrier_id OPTIONAL connection_id TYPE /dmo/connecti_15-connection_id OPTIONAL supplement_id TYPE /dmo/suppleme_15-supplement_id OPTIONAL begin_date TYPE /dmo/begin_date15 OPTIONAL end_date TYPE /dmo/end_date15 OPTIONAL booking_date TYPE /dmo/booking_date15 OPTIONAL flight_date TYPE /dmo/flight_date15 OPTIONAL status TYPE /dmo/travel_status15 OPTIONAL currency_code TYPE /dmo/currency_code15 OPTIONAL uname TYPE syuname OPTIONAL. DATA: mv_travel_id TYPE /dmo/travel_id15, mv_booking_id TYPE /dmo/booking_id15, mv_booking_supplement_id TYPE /dmo/booking_supplement_id15, mv_agency_id TYPE /dmo/agency_id15, mv_customer_id TYPE /dmo/customer_id15, mv_carrier_id TYPE /dmo/carrier15-carrier_id, mv_connection_id TYPE /dmo/connecti_15-connection_id, mv_supplement_id TYPE /dmo/suppleme_15-supplement_id, mv_begin_date TYPE /dmo/begin_date15, mv_end_date TYPE /dmo/end_date15, mv_booking_date TYPE /dmo/booking_date15, mv_flight_date TYPE /dmo/flight_date15, mv_status TYPE /dmo/travel_status15, mv_currency_code TYPE /dmo/currency_code15, mv_uname TYPE syuname. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS /dmo/cx_flight_legacy15 IMPLEMENTATION. METHOD constructor ##ADT_SUPPRESS_GENERATION. super->constructor( previous = previous ). me->mv_travel_id = travel_id. me->mv_booking_id = booking_id. me->mv_booking_supplement_id = booking_supplement_id. me->mv_agency_id = agency_id. me->mv_customer_id = customer_id. me->mv_carrier_id = carrier_id. me->mv_connection_id = connection_id. me->mv_supplement_id = supplement_id. me->mv_begin_date = begin_date. me->mv_end_date = end_date. me->mv_booking_date = booking_date. me->mv_flight_date = flight_date. me->mv_status = status. me->mv_currency_code = currency_code. me->mv_uname = uname. CLEAR me->textid. IF textid IS INITIAL. if_t100_message~t100key = if_t100_message=>default_textid. ELSE. if_t100_message~t100key = textid. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1220, 67, 5908, 14, 66, 87, 62, 22560, 62, 1455, 1590, 1314, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 43213, 62, 12708, 62, 9122, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 611, 62, 83, 3064, 62, 20500, 764, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 308, 66, 62, 19662, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 1314, 3256, 628, 220, 220, 220, 220, 220, 347, 43312, 3963, 4086, 62, 2954, 593, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 1314, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 8298, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 44, 53, 62, 4760, 45155, 62, 2389, 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, 4086, 62, 2954, 593, 11, 628, 220, 220, 220, 220, 220, 347, 43312, 3963, 6491, 62, 2954, 593, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 1314, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 21601, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 44, 53, 62, 34, 7759, 2662, 1137, 62, 2389, 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, 6491, 62, 2954, 593, 11, 628, 220, 220, 220, 220, 220, 347, 43312, 3963, 4637, 62, 34680, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 1314, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 22914, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 44, 53, 62, 20034, 7112, 1137, 62, 2389, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 17, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 44, 53, 62, 10943, 45, 24565, 62, 2389, 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, 4637, 62, 34680, 220, 220, 220, 220, 220, 837, 628, 220, 220, 220, 220, 220, 347, 43312, 3963, 11920, 62, 34680, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 1314, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 22544, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 44, 53, 62, 20034, 7112, 1137, 62, 2389, 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, 11920, 62, 34680, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 628, 220, 220, 220, 220, 220, 347, 43312, 3963, 10327, 62, 34680, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 1314, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 28041, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 44, 53, 62, 40331, 16437, 10979, 62, 2389, 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, 10327, 62, 34680, 11, 628, 220, 220, 220, 220, 220, 347, 43312, 3963, 3067, 62, 13376, 62, 259, 12102, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 1314, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_mqtt_packet_pubrec DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_mqtt_packet . METHODS constuctor IMPORTING !iv_packet_identifier TYPE zif_mqtt_packet=>ty_packet_identifier OPTIONAL . METHODS get_packet_identifier RETURNING VALUE(rv_packet_identifier) TYPE zif_mqtt_packet=>ty_packet_identifier . METHODS set_packet_identifier IMPORTING !iv_packet_identifier TYPE zif_mqtt_packet=>ty_packet_identifier . PROTECTED SECTION. DATA mv_packet_identifier TYPE zif_mqtt_packet=>ty_packet_identifier . PRIVATE SECTION. ENDCLASS. CLASS ZCL_MQTT_PACKET_PUBREC IMPLEMENTATION. METHOD constuctor. mv_packet_identifier = iv_packet_identifier. ENDMETHOD. METHOD get_packet_identifier. rv_packet_identifier = mv_packet_identifier. ENDMETHOD. METHOD set_packet_identifier. mv_packet_identifier = iv_packet_identifier. ENDMETHOD. METHOD zif_mqtt_packet~decode. ASSERT io_stream->eat_hex( 1 ) = '52'. io_stream->eat_length( ). mv_packet_identifier = io_stream->eat_hex( 2 ). ENDMETHOD. METHOD zif_mqtt_packet~encode. DATA(lo_payload) = NEW zcl_mqtt_stream( ). ASSERT NOT mv_packet_identifier IS INITIAL. lo_payload->add_hex( mv_packet_identifier ). ro_stream = NEW #( ). ro_stream->add_packet( ii_packet = me iv_flags = 2 io_payload = lo_payload ). ENDMETHOD. METHOD zif_mqtt_packet~get_type. rv_value = zif_mqtt_constants=>gc_packets-pubrec. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 76, 80, 926, 62, 8002, 316, 62, 12984, 8344, 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, 76, 80, 926, 62, 8002, 316, 764, 628, 220, 220, 220, 337, 36252, 50, 1500, 33029, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8002, 316, 62, 738, 7483, 41876, 1976, 361, 62, 76, 80, 926, 62, 8002, 316, 14804, 774, 62, 8002, 316, 62, 738, 7483, 39852, 2849, 1847, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 8002, 316, 62, 738, 7483, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 8002, 316, 62, 738, 7483, 8, 41876, 1976, 361, 62, 76, 80, 926, 62, 8002, 316, 14804, 774, 62, 8002, 316, 62, 738, 7483, 764, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 8002, 316, 62, 738, 7483, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8002, 316, 62, 738, 7483, 41876, 1976, 361, 62, 76, 80, 926, 62, 8002, 316, 14804, 774, 62, 8002, 316, 62, 738, 7483, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 42865, 285, 85, 62, 8002, 316, 62, 738, 7483, 41876, 1976, 361, 62, 76, 80, 926, 62, 8002, 316, 14804, 774, 62, 8002, 316, 62, 738, 7483, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 49215, 15751, 62, 47, 8120, 2767, 62, 5105, 33, 38827, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1500, 33029, 13, 628, 220, 220, 220, 285, 85, 62, 8002, 316, 62, 738, 7483, 796, 21628, 62, 8002, 316, 62, 738, 7483, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 8002, 316, 62, 738, 7483, 13, 628, 220, 220, 220, 374, 85, 62, 8002, 316, 62, 738, 7483, 796, 285, 85, 62, 8002, 316, 62, 738, 7483, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 900, 62, 8002, 316, 62, 738, 7483, 13, 628, 220, 220, 220, 285, 85, 62, 8002, 316, 62, 738, 7483, 796, 21628, 62, 8002, 316, 62, 738, 7483, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 76, 80, 926, 62, 8002, 316, 93, 12501, 1098, 13, 628, 220, 220, 220, 24994, 17395, 33245, 62, 5532, 3784, 4098, 62, 33095, 7, 352, 1267, 796, 705, 4309, 4458, 628, 220, 220, 220, 33245, 62, 5532, 3784, 4098, 62, 13664, 7, 6739, 628, 220, 220, 220, 285, 85, 62, 8002, 316, 62, 738, 7483, 796, 33245, 62, 5532, 3784, 4098, 62, 33095, 7, 362, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 76, 80, 926, 62, 8002, 316, 93, 268, 8189, 13, 628, 220, 220, 220, 42865, 7, 5439, 62, 15577, 2220, 8, 796, 12682, 1976, 565, 62, 76, 80, 926, 62, 5532, 7, 6739, 628, 220, 220, 220, 24994, 17395, 5626, 285, 85, 62, 8002, 316, 62, 738, 7483, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 2376, 62, 15577, 2220, 3784, 2860, 62, 33095, 7, 285, 85, 62, 8002, 316, 62, 738, 7483, 6739, 628, 220, 220, 220, 686, 62, 5532, 796, 12682, 1303, 7, 6739, 628, 220, 220, 220, 686, 62, 5532, 3784, 2860, 62, 8002, 316, 7, 198, 220, 220, 220, 220, 220, 21065, 62, 8002, 316, 220, 796, 502, 198, 220, 220, 220, 220, 220, 21628, 62, 33152, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 33245, 62, 15577, 2220, 796, 2376, 62, 15577, 2220, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 76, 80, 926, 62, 8002, 316, 93, 1136, 62, 4906, 13, 628, 220, 220, 220, 374, 85, 62, 8367, 796, 1976, 361, 62, 76, 80, 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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 ]
REPORT zfoobar. * http://scn.sap.com/docs/DOC-46714 FORM functional_db1. DATA: lt_data TYPE STANDARD TABLE OF usr02 WITH DEFAULT KEY, ls_data LIKE LINE OF lt_data. SELECT * FROM usr02 INTO TABLE lt_data. READ TABLE lt_data INDEX 1 INTO ls_data. IF sy-subrc = 0. WRITE: / ls_data-bname. ENDIF. ENDFORM. FORM functional_db2. DATA: lt_data TYPE STANDARD TABLE OF usr02 WITH DEFAULT KEY, ls_data LIKE LINE OF lt_data. SELECT * FROM usr02 INTO TABLE lt_data. DELETE ADJACENT DUPLICATES FROM lt_data COMPARING bcode. ENDFORM. FORM functional_db3. DATA: lt_cdcls TYPE STANDARD TABLE OF cdcls WITH DEFAULT KEY. SELECT * FROM cdcls INTO TABLE lt_cdcls WHERE changenr = '123456'. ENDFORM. FORM functional_db4. DATA: lt_data TYPE STANDARD TABLE OF usr02 WITH DEFAULT KEY. SELECT usr02~bname FROM usr02 INNER JOIN usr03 ON usr02~bname = usr02~bname INTO CORRESPONDING FIELDS OF TABLE @lt_data. DELETE ADJACENT DUPLICATES FROM lt_data COMPARING bcode. ENDFORM.
[ 2200, 15490, 1976, 6513, 30973, 13, 198, 198, 9, 2638, 1378, 1416, 77, 13, 82, 499, 13, 785, 14, 31628, 14, 38715, 12, 24669, 1415, 198, 198, 21389, 10345, 62, 9945, 16, 13, 628, 220, 42865, 25, 300, 83, 62, 7890, 41876, 49053, 9795, 43679, 3963, 514, 81, 2999, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 7890, 34178, 48920, 3963, 300, 83, 62, 7890, 13, 628, 198, 220, 33493, 1635, 16034, 514, 81, 2999, 39319, 43679, 300, 83, 62, 7890, 13, 628, 220, 20832, 43679, 300, 83, 62, 7890, 24413, 6369, 352, 39319, 43979, 62, 7890, 13, 198, 220, 16876, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 44423, 25, 1220, 43979, 62, 7890, 12, 65, 3672, 13, 198, 220, 23578, 5064, 13, 198, 198, 1677, 8068, 1581, 44, 13, 198, 198, 21389, 10345, 62, 9945, 17, 13, 628, 220, 42865, 25, 300, 83, 62, 7890, 41876, 49053, 9795, 43679, 3963, 514, 81, 2999, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 7890, 34178, 48920, 3963, 300, 83, 62, 7890, 13, 628, 198, 220, 33493, 1635, 16034, 514, 81, 2999, 39319, 43679, 300, 83, 62, 7890, 13, 628, 220, 5550, 2538, 9328, 5984, 41, 2246, 3525, 35480, 31484, 29462, 16034, 300, 83, 62, 7890, 24301, 1503, 2751, 275, 8189, 13, 198, 198, 1677, 8068, 1581, 44, 13, 198, 198, 21389, 10345, 62, 9945, 18, 13, 628, 220, 42865, 25, 300, 83, 62, 10210, 565, 82, 41876, 49053, 9795, 43679, 3963, 22927, 565, 82, 13315, 5550, 38865, 35374, 13, 628, 198, 220, 33493, 1635, 16034, 22927, 565, 82, 39319, 43679, 300, 83, 62, 10210, 565, 82, 33411, 1488, 268, 81, 796, 705, 10163, 29228, 4458, 198, 198, 1677, 8068, 1581, 44, 13, 198, 198, 21389, 10345, 62, 9945, 19, 13, 628, 220, 42865, 25, 300, 83, 62, 7890, 41876, 49053, 9795, 43679, 3963, 514, 81, 2999, 13315, 5550, 38865, 35374, 13, 628, 198, 220, 33493, 514, 81, 2999, 93, 65, 3672, 16034, 514, 81, 2999, 198, 220, 220, 220, 3268, 21479, 32357, 1268, 514, 81, 3070, 6177, 514, 81, 2999, 93, 65, 3672, 796, 514, 81, 2999, 93, 65, 3672, 198, 220, 220, 220, 39319, 23929, 19535, 47, 18672, 2751, 18930, 3698, 5258, 3963, 43679, 2488, 2528, 62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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ZLNKECL_SSF definition public final create private . *"* public components of class ZLNKECL_SSF *"* do not include other source files here!!! public section. class-methods CUSTOMIZE_DEFAULT_IF_NEEDED raising ZLNKECX_AWS_S3 . class-methods DEVELOPE importing !I_XSTRING_ENVELOPED type XSTRING returning value(E_XSTRING) type XSTRING raising ZLNKECX_AWS_S3 . class-methods ENVELOPE importing !I_XSTRING type XSTRING returning value(E_XSTRING_ENVELOPED) type XSTRING raising ZLNKECX_AWS_S3 . class-methods SSFBIN_TO_XSTRING importing !I_SSFBIN type ZLNKESSFBIN_TT !I_LENGTH type I exporting !E_XSTRING type XSTRING . class-methods XSTRING_TO_SSFBIN importing !I_XSTRING type XSTRING exporting !E_LENGTH type I !E_SSFBIN type ZLNKESSFBIN_TT . protected section. *"* protected components of class ZLNKECL_SSF *"* do not include other source files here!!! private section. *"* private components of class ZLNKECL_SSF *"* do not include other source files here!!! constants C_S4_SSF_APPLICATION type SSFARGS-APPLIC value 'ZLNKES'. "#EC NOTEXT class-methods CREATE_PSE raising ZLNKECX_AWS_S3 . class-methods SSFAPPLIC_CREATE . class-methods SSFARGS_CREATE . class-methods SSF_GET_PARAMETER exporting !E_SSFTOOLKIT type SSFPARMS-SSFTOOLKIT !E_STR_PAB type SSFPARMS-PAB !E_STR_PAB_PASSWORD type SSFPARMS-PABPW !E_STR_PROFILEID type SSFARGS-PROFILEID !E_STR_PROFILE type SSFARGS-PROFILE !E_STR_ENCRALG type SSFARGS-ENCRALG raising ZLNKECX_AWS_S3 . ENDCLASS. CLASS ZLNKECL_SSF IMPLEMENTATION. METHOD create_pse. *--------------------------------------------------------------------* * Company: RocketSteam * Author: Jordi Escoda, 15th July 2014 * Creates PSE if it does not exist *--------------------------------------------------------------------* DATA: l_str_profileid TYPE ssfargs-profileid. DATA: l_dn TYPE certattrs-subject. DATA: l_psepath TYPE stpa-file. DATA: l_fname TYPE rlgrap-filename. DATA: l_psename TYPE ssf_pse_h-filename. DATA: l_id TYPE ssf_pse_h-id. DATA: l_msg TYPE string. "#EC NEEDED * Look for the PSE name SELECT SINGLE pab INTO l_psename FROM ssfargs WHERE applic = c_s4_ssf_application. IF sy-subrc <> 0. * Since we created register previously, this should never happen! * 037 Program error: Register not found MESSAGE i037 INTO l_msg. ZLNKEcx_aws_s3=>raise_from_sy_msg( ). ENDIF. * Checks if PSE is existing. SELECT SINGLE filename "#EC * INTO l_psename FROM ssf_pse_h WHERE filename = l_psename. IF sy-subrc <> 0. * PSE is not existing. Create one. * Since it will be a new entry in table SSF_PSE_H there is no * need to lock (no call to SSFPSE_ENQUEUE). CALL METHOD ZLNKEcl_ssf=>ssf_get_parameter IMPORTING e_str_profileid = l_str_profileid. l_dn = l_str_profileid. CALL FUNCTION 'SSFPSE_CREATE' EXPORTING dn = l_dn alg = 'S' keylen = 1024 IMPORTING psepath = l_psepath EXCEPTIONS ssf_unknown_error = 1 OTHERS = 2. IF sy-subrc <> 0. ZLNKEcx_aws_s3=>raise_from_sy_msg( ). ENDIF. l_id = l_str_profileid. l_fname = l_psepath. CALL FUNCTION 'SSFPSE_STORE' EXPORTING fname = l_fname psename = l_psename id = l_id host = ' ' instanceid = '00' type = 'PSE' format = 'RAW' b_cleanup = 'X' b_distribute = 'X' EXCEPTIONS file_load_failed = 1 storing_failed = 2 authority_missing = 3 OTHERS = 4. IF sy-subrc <> 0. ZLNKEcx_aws_s3=>raise_from_sy_msg( ). ENDIF. ENDIF. ENDMETHOD. METHOD customize_default_if_needed. *--------------------------------------------------------------------* * Company: RocketSteam * Author: Jordi Escoda, 15th July 2014 * Customizes for default SSF Application and PSE in case it is not done. * This is called when a Bucket is created and is marked for * client side encryption *--------------------------------------------------------------------* ssfapplic_create( ). ssfargs_create( ). create_pse( ). ENDMETHOD. METHOD develope. *--------------------------------------------------------------------* * Company: RocketSteam * Author: Jordi Escoda, 14th July 2014 * Receives I_XSTRING_ENVELOPED, decrypts it and returns the result * in E_XSTRING *--------------------------------------------------------------------* DATA: lt_recipient_list TYPE STANDARD TABLE OF ssfinfo, ls_recipient_list TYPE ssfinfo. DATA: lt_ostr_enveloped_data TYPE STANDARD TABLE OF ssfbin. DATA: lt_ostr_output_data TYPE STANDARD TABLE OF ssfbin. DATA: l_enveloped_data_l TYPE ssfparms-envdatalen. DATA: l_ssftoolkit TYPE ssfparms-ssftoolkit. DATA: l_str_profileid TYPE ssfargs-profileid. DATA: l_str_profile TYPE ssfargs-profile. DATA: l_ostr_output_data_l TYPE ssfparms-outdatalen. DATA: l_msg TYPE string. "#EC NEEDED * Converts enveloped xstring to ssfbin table CALL METHOD ZLNKEcl_ssf=>xstring_to_ssfbin EXPORTING i_xstring = i_xstring_enveloped IMPORTING e_length = l_enveloped_data_l e_ssfbin = lt_ostr_enveloped_data. * Gets application parameters (Related Transactions: SSFA, STRUST) CALL METHOD ZLNKEcl_ssf=>ssf_get_parameter IMPORTING e_ssftoolkit = l_ssftoolkit e_str_profileid = l_str_profileid e_str_profile = l_str_profile. * Recipient list ls_recipient_list-id = l_str_profileid. ls_recipient_list-profile = l_str_profile. APPEND ls_recipient_list TO lt_recipient_list. CALL FUNCTION 'SSF_KRN_DEVELOPE' EXPORTING ssftoolkit = l_ssftoolkit str_format = 'PKCS7' b_outdec = 'X' io_spec = 'T' ostr_enveloped_data_l = l_enveloped_data_l IMPORTING ostr_output_data_l = l_ostr_output_data_l TABLES ostr_enveloped_data = lt_ostr_enveloped_data recipient = lt_recipient_list ostr_output_data = lt_ostr_output_data EXCEPTIONS ssf_krn_error = 1 ssf_krn_noop = 2 ssf_krn_nomemory = 3 ssf_krn_opinv = 4 ssf_krn_nossflib = 5 ssf_krn_recipient_error = 6 ssf_krn_input_data_error = 7 ssf_krn_invalid_par = 8 ssf_krn_invalid_parlen = 9 ssf_fb_input_parameter_error = 10 OTHERS = 11. IF sy-subrc <> 0. ZLNKEcx_aws_s3=>raise_from_sy_msg( ). ENDIF. IF i_xstring_enveloped IS NOT INITIAL AND l_ostr_output_data_l = 0. * If we come here, SSF is missconfigured. Check SSFA and STRUST. * Algorithm must be RSA with SHA-256. * 071 SSF_KRN_DEVELOPE did not decrypt. Check algorithm in STRUST (Must be RSA) MESSAGE i071 into l_msg. ZLNKEcx_aws_s3=>raise_from_sy_msg( ). ENDIF. * Converts from ssfbin table to xstring CALL METHOD ZLNKEcl_ssf=>ssfbin_to_xstring EXPORTING i_ssfbin = lt_ostr_output_data i_length = l_ostr_output_data_l IMPORTING e_xstring = e_xstring. ENDMETHOD. METHOD envelope. *--------------------------------------------------------------------* * Company: RocketSteam * Author: Jordi Escoda, 14th July 2014 * Receives I_XSTRING, encrypts it and returns the result * in E_XSTRING_ENVELOPED *--------------------------------------------------------------------* DATA: lt_ostr_input_data TYPE STANDARD TABLE OF ssfbin. DATA: l_ostr_input_data_l TYPE i. DATA: lt_recipient_list TYPE STANDARD TABLE OF ssfinfo, ls_recipient_list TYPE ssfinfo. DATA: l_ssftoolkit TYPE ssfparms-ssftoolkit. DATA: l_str_pab TYPE ssfparms-pab. DATA: l_str_pab_password TYPE ssfparms-pabpw. DATA: l_str_profileid TYPE ssfargs-profileid. DATA: l_str_encralg TYPE ssfargs-encralg. DATA: l_ostr_enveloped_data_l TYPE ssfparms-envdatalen. DATA: lt_ostr_enveloped_data TYPE STANDARD TABLE OF ssfbin. DATA: l_msg TYPE string. "#EC NEEDED * Converts xstring to ssfbin tab CALL METHOD ZLNKEcl_ssf=>xstring_to_ssfbin EXPORTING i_xstring = i_xstring IMPORTING e_length = l_ostr_input_data_l e_ssfbin = lt_ostr_input_data. * Gets application parameters (Related Transactions: SSFA, STRUST) CALL METHOD ZLNKEcl_ssf=>ssf_get_parameter IMPORTING e_ssftoolkit = l_ssftoolkit e_str_pab = l_str_pab e_str_pab_password = l_str_pab_password e_str_profileid = l_str_profileid e_str_encralg = l_str_encralg. * Recipient list ls_recipient_list-id = l_str_profileid. APPEND ls_recipient_list TO lt_recipient_list. CALL FUNCTION 'SSF_KRN_ENVELOPE' EXPORTING ssftoolkit = l_ssftoolkit str_format = 'PKCS7' b_inenc = 'X' io_spec = 'T' "T: Internal Table ostr_input_data_l = l_ostr_input_data_l str_pab = l_str_pab str_pab_password = l_str_pab_password str_sym_encr_alg = l_str_encralg IMPORTING ostr_enveloped_data_l = l_ostr_enveloped_data_l TABLES ostr_input_data = lt_ostr_input_data recipient_list = lt_recipient_list ostr_enveloped_data = lt_ostr_enveloped_data EXCEPTIONS ssf_krn_error = 1 ssf_krn_noop = 2 ssf_krn_nomemory = 3 ssf_krn_opinv = 4 ssf_krn_nossflib = 5 ssf_krn_recipient_list_error = 6 ssf_krn_input_data_error = 7 ssf_krn_invalid_par = 8 ssf_krn_invalid_parlen = 9 ssf_fb_input_parameter_error = 10 OTHERS = 11. IF sy-subrc <> 0. ZLNKEcx_aws_s3=>raise_from_sy_msg( ). ENDIF. IF l_ostr_input_data_l > 0 AND l_ostr_enveloped_data_l = 0. * If we come here, SSF is missconfigured. Check SSFA and STRUST. * Algorithm must be RSA with SHA-256. * 070 SSF_KRN_ENVELOPE did not encrypt. Check algorithm in STRUST (Must be RSA) MESSAGE i070 INTO l_msg. ZLNKEcx_aws_s3=>raise_from_sy_msg( ). ENDIF. READ TABLE lt_recipient_list INTO ls_recipient_list INDEX 1. IF ls_recipient_list-result <> 0. * 068 SSF recipient & error. Result: & MESSAGE i068 WITH ls_recipient_list-id ls_recipient_list-result INTO l_msg. ZLNKEcx_aws_s3=>raise_from_sy_msg( ). ENDIF. CALL METHOD ZLNKEcl_ssf=>ssfbin_to_xstring EXPORTING i_ssfbin = lt_ostr_enveloped_data i_length = l_ostr_enveloped_data_l IMPORTING e_xstring = e_xstring_enveloped. ENDMETHOD. METHOD ssfapplic_create. *--------------------------------------------------------------------* * Company: RocketSteam * Author: Jordi Escoda, 15th July 2014 * Creates application in SSFAPPLIC if it does not exist. *--------------------------------------------------------------------* DATA: ls_ssfapplic TYPE ssfapplic. DATA: ls_ssfapplict TYPE ssfapplict. SELECT SINGLE applic INTO ls_ssfapplic-applic FROM ssfapplic WHERE applic = c_s4_ssf_application. IF sy-subrc <> 0. ls_ssfapplic-applic = c_s4_ssf_application. ls_ssfapplic-b_toolkit = abap_true. ls_ssfapplic-b_format = abap_true. ls_ssfapplic-b_pab = abap_true. ls_ssfapplic-b_profid = abap_true. ls_ssfapplic-b_profile = abap_true. ls_ssfapplic-b_encralg = abap_true. MODIFY ssfapplic FROM ls_ssfapplic. ls_ssfapplict-sprsl = sy-langu. ls_ssfapplict-applic = c_s4_ssf_application. ls_ssfapplict-descript = 'RocketSteam S4'. "#EC NOTEXT MODIFY ssfapplict FROM ls_ssfapplict. COMMIT WORK. ENDIF. ENDMETHOD. METHOD ssfargs_create. *--------------------------------------------------------------------* * Company: RocketSteam * Author: Jordi Escoda, 15th July 2014 * Creates application parameters in SSFARGS if it does not exist. *--------------------------------------------------------------------* DATA: ls_ssfargs TYPE ssfargs. DATA: l_license_number TYPE string. SELECT SINGLE applic INTO ls_ssfargs-applic FROM ssfargs WHERE applic = c_s4_ssf_application. IF sy-subrc <> 0. CALL FUNCTION 'SLIC_GET_LICENCE_NUMBER' IMPORTING license_number = l_license_number. ls_ssfargs-mandt = sy-mandt. ls_ssfargs-applic = c_s4_ssf_application. ls_ssfargs-ssftoolkit = 'SAPSECULIB'. ls_ssfargs-ssfformat = 'PKCS7'. ls_ssfargs-pab = 'ROCKETSTEAMS4.pse'. CONCATENATE 'CN=IDE SSF RocketSteam S4, OU=I' "#EC NOTEXT l_license_number ', OU=SAP Web AS, O=SAP Trust Community, C=DE' "#EC NOTEXT INTO ls_ssfargs-profileid. ls_ssfargs-profile = 'ROCKETSTEAMS4.pse'. ls_ssfargs-hashalg = 'SHA1'. ls_ssfargs-encralg = 'DES-CBC'. ls_ssfargs-distrib = 'X'. ls_ssfargs-explicit = 'X'. MODIFY ssfargs FROM ls_ssfargs. COMMIT WORK. ENDIF. ENDMETHOD. METHOD ssfbin_to_xstring. *--------------------------------------------------------------------* * Company: RocketSteam * Author: Jordi Escoda, 14th July 2014 * Converts from Table of SSFBIN to xstring. *--------------------------------------------------------------------* FIELD-SYMBOLS: <fs_ssfbin> TYPE ssfbin. DATA: l_length_to_output TYPE i. l_length_to_output = i_length. LOOP AT i_ssfbin ASSIGNING <fs_ssfbin>. IF l_length_to_output >= 255. CONCATENATE e_xstring <fs_ssfbin>-bindata INTO e_xstring IN BYTE MODE. l_length_to_output = l_length_to_output - 255. ELSEIF l_length_to_output > 0. CONCATENATE e_xstring <fs_ssfbin>-bindata(l_length_to_output) INTO e_xstring IN BYTE MODE. EXIT. "Output complete. Leaves the loop. ENDIF. ENDLOOP. ENDMETHOD. METHOD ssf_get_parameter. *--------------------------------------------------------------------* * Company: RocketSteam * Author: Jordi Escoda, 14th July 2014 * Returns SSF application parameters *--------------------------------------------------------------------* DATA: l_appfound TYPE ssfargs-applic. DATA: l_msg TYPE string. "#EC NEEDED * Gets application parameters (Related Transactions: SSFA, STRUST) CALL FUNCTION 'SSF_GET_PARAMETER' EXPORTING mandt = sy-mandt application = c_s4_ssf_application IMPORTING appfound = l_appfound ssftoolkit = e_ssftoolkit str_pab = e_str_pab str_pab_password = e_str_pab_password str_profileid = e_str_profileid str_profile = e_str_profile str_encralg = e_str_encralg EXCEPTIONS ssf_parameter_not_found = 1 OTHERS = 2. IF sy-subrc <> 0 OR l_appfound <> c_s4_ssf_application. * 069 SSF Application & not found. Customize SSFA MESSAGE i069 WITH c_s4_ssf_application INTO l_msg. ZLNKEcx_aws_s3=>raise_from_sy_msg( ). ENDIF. ENDMETHOD. METHOD xstring_to_ssfbin. *--------------------------------------------------------------------* * Company: RocketSteam * Author: Jordi Escoda, 14th July 2014 * Converts from XSTRING to Table of SSFBIN *--------------------------------------------------------------------* DATA: l_xstring TYPE xstring. FIELD-SYMBOLS: <fs_ssfbin> TYPE ssfbin. l_xstring = i_xstring. e_length = XSTRLEN( l_xstring ). WHILE l_xstring IS NOT INITIAL. APPEND INITIAL LINE TO e_ssfbin ASSIGNING <fs_ssfbin>. <fs_ssfbin>-bindata = l_xstring. SHIFT l_xstring BY 255 PLACES LEFT IN BYTE MODE. ENDWHILE. ENDMETHOD. ENDCLASS.
[ 4871, 1168, 43, 46888, 2943, 43, 62, 5432, 37, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 2839, 764, 198, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 43, 46888, 2943, 43, 62, 5432, 37, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 11377, 2665, 13, 628, 220, 1398, 12, 24396, 82, 327, 7759, 2662, 35400, 62, 7206, 38865, 62, 5064, 62, 12161, 1961, 1961, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 43, 46888, 2943, 55, 62, 12298, 50, 62, 50, 18, 764, 198, 220, 1398, 12, 24396, 82, 5550, 18697, 32135, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 55, 18601, 2751, 62, 1677, 18697, 3185, 1961, 2099, 1395, 18601, 2751, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 36, 62, 55, 18601, 2751, 8, 2099, 1395, 18601, 2751, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 43, 46888, 2943, 55, 62, 12298, 50, 62, 50, 18, 764, 198, 220, 1398, 12, 24396, 82, 12964, 18697, 32135, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 55, 18601, 2751, 2099, 1395, 18601, 2751, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 36, 62, 55, 18601, 2751, 62, 1677, 18697, 3185, 1961, 8, 2099, 1395, 18601, 2751, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 43, 46888, 2943, 55, 62, 12298, 50, 62, 50, 18, 764, 198, 220, 1398, 12, 24396, 82, 6723, 26001, 1268, 62, 10468, 62, 55, 18601, 2751, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 5432, 26001, 1268, 2099, 1168, 43, 46888, 7597, 26001, 1268, 62, 15751, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 43, 49494, 2099, 314, 198, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 55, 18601, 2751, 2099, 1395, 18601, 2751, 764, 198, 220, 1398, 12, 24396, 82, 1395, 18601, 2751, 62, 10468, 62, 5432, 26001, 1268, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 55, 18601, 2751, 2099, 1395, 18601, 2751, 198, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 43, 49494, 2099, 314, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 5432, 26001, 1268, 2099, 1168, 43, 46888, 7597, 26001, 1268, 62, 15751, 764, 198, 24326, 2665, 13, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 43, 46888, 2943, 43, 62, 5432, 37, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 19734, 2665, 13, 198, 9, 1, 9, 2839, 6805, 286, 1398, 1168, 43, 46888, 2943, 43, 62, 5432, 37, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 628, 220, 38491, 327, 62, 50, 19, 62, 5432, 37, 62, 2969, 31484, 6234, 2099, 6723, 37, 1503, 14313, 12, 2969, 31484, 1988, 705, 57, 43, 46888, 1546, 4458, 25113, 2943, 5626, 13918, 628, 220, 1398, 12, 24396, 82, 29244, 6158, 62, 3705, 36, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 43, 46888, 2943, 55, 62, 12298, 50, 62, 50, 18, 764, 198, 220, 1398, 12, 24396, 82, 6723, 37, 2969, 31484, 62, 43387, 6158, 764, 198, 220, 1398, 12, 24396, 82, 6723, 37, 1503, 14313, 62, 43387, 6158, 764, 198, 220, 1398, 12, 24396, 82, 6723, 37, 62, 18851, 62, 27082, 2390, 2767, 1137, 198, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 5432, 9792, 31559, 42, 2043, 2099, 6723, 5837, 1503, 5653, 12, 5432, 9792, 31559, 42, 2043, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 18601, 62, 4537, 33, 2099, 6723, 5837, 1503, 5653, 12, 4537, 33, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 18601, 62, 4537, 33, 62, 47924, 54, 12532, 2099, 6723, 5837, 1503, 5653, 12, 4537, 20866, 54, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 18601, 62, 31190, 25664, 2389, 2099, 6723, 37, 1503, 14313, 12, 31190, 25664, 2389, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 18601, 62, 31190, 25664, 2099, 6723, 37, 1503, 14313, 12, 31190, 25664, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 18601, 62, 1677, 9419, 1847, 38, 2099, 6723, 37, 1503, 14313, 12, 1677, 9419, 1847, 38, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 43, 46888, 2943, 55, 62, 12298, 50, 62, 50, 18, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 43, 46888, 2943, 43, 62, 5432, 37, 30023, 2538, 10979, 6234, 13, 628, 198, 49273, 2251, 62, 7752, 13, 198, 9, 10097, 650, 9, 198, 9, 5834, 25, 16920, 19109, 198, 9, 6434, 25, 38317, 72, 16319, 11329, 11, 1315, 400, 2901, 1946, 198, 9, 7921, 274, 350, 5188, 611, 340, 857, 407, 2152, 198, 9, 10097, 650, 9, 198, 220, 42865, 25, 300, 62, 2536, 62, 13317, 312, 197, 25216, 264, 28202, 22046, 12, 13317, 312, 13, 198, 220, 42865, 25, 300, 62, 32656, 41876, 5051, 1078, 3808, 12, 32796, 13, 198, 220, 42865, 25, 300, 62, 7752, 6978, 41876, 336, 8957, 12, 7753, 13, 198, 220, 42865, 25, 300, 62, 69, 3672, 41876, 374, 75, 70, 2416, 12, 34345, 13, 198, 220, 42865, 25, 300, 62, 862, 12453, 41876, 264, 28202, 62, 7752, 62, 71, 12, 34345, 13, 198, 220, 42865, 25, 300, 62, 312, 41876, 264, 28202, 62, 7752, 62, 71, 12, 312, 13, 198, 220, 42865, 25, 300, 62, 19662, 41876, 4731, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 36465, 1961, 198, 198, 9, 6803, 329, 262, 350, 5188, 1438, 198, 220, 33493, 311, 2751, 2538, 279, 397, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 39319, 300, 62, 862, 12453, 198, 220, 16034, 264, 28202, 22046, 198, 220, 33411, 2161, 796, 269, 62, 82, 19, 62, 824, 69, 62, 31438, 13, 628, 220, 16876, 827 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_oo_serializer DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. METHODS serialize_abap_clif_source IMPORTING !is_class_key TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception cx_sy_dyn_call_error . METHODS are_test_classes_skipped RETURNING VALUE(rv_return) TYPE abap_bool . METHODS serialize_locals_imp IMPORTING !is_clskey TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception . METHODS serialize_locals_def IMPORTING !is_clskey TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception . METHODS serialize_testclasses IMPORTING !is_clskey TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception . METHODS serialize_macros IMPORTING !is_clskey TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception . PROTECTED SECTION. PRIVATE SECTION. DATA mv_skip_testclass TYPE abap_bool . METHODS calculate_skip_testclass IMPORTING !it_source TYPE zif_abapgit_definitions=>ty_string_tt RETURNING VALUE(rv_skip_testclass) TYPE abap_bool . METHODS serialize_abap_old IMPORTING !is_clskey TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception . METHODS serialize_abap_new IMPORTING !is_clskey TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception cx_sy_dyn_call_error . METHODS remove_signatures CHANGING !ct_source TYPE zif_abapgit_definitions=>ty_string_tt . METHODS read_include IMPORTING !is_clskey TYPE seoclskey !iv_type TYPE seop_include_ext_app RETURNING VALUE(rt_source) TYPE seop_source_string . METHODS reduce CHANGING !ct_source TYPE zif_abapgit_definitions=>ty_string_tt . ENDCLASS. CLASS ZCL_ABAPGIT_OO_SERIALIZER IMPLEMENTATION. METHOD are_test_classes_skipped. rv_return = mv_skip_testclass. ENDMETHOD. METHOD calculate_skip_testclass. DATA: lv_line1 LIKE LINE OF it_source, lv_line2 LIKE LINE OF it_source. * when creating classes in Eclipse it automatically generates the * testclass include, but it is not needed, so skip to avoid * creating an extra file in the repository. * Also remove it if the content is manually removed, but * the class still thinks it contains tests rv_skip_testclass = abap_false. IF lines( it_source ) = 2. READ TABLE it_source INDEX 1 INTO lv_line1. ASSERT sy-subrc = 0. READ TABLE it_source INDEX 2 INTO lv_line2. ASSERT sy-subrc = 0. IF strlen( lv_line1 ) >= 3 AND lv_line1(3) = '*"*' AND lv_line2 IS INITIAL. rv_skip_testclass = abap_true. ENDIF. ELSEIF lines( it_source ) = 1. READ TABLE it_source INDEX 1 INTO lv_line1. ASSERT sy-subrc = 0. IF lv_line1 IS INITIAL OR ( strlen( lv_line1 ) >= 3 AND lv_line1(3) = '*"*' ) OR ( strlen( lv_line1 ) = 1 AND lv_line1(1) = '*' ). rv_skip_testclass = abap_true. ENDIF. ELSEIF lines( it_source ) = 0. rv_skip_testclass = abap_true. ENDIF. ENDMETHOD. METHOD read_include. DATA: ls_include TYPE progstruc. ASSERT iv_type = seop_ext_class_locals_def OR iv_type = seop_ext_class_locals_imp OR iv_type = seop_ext_class_macros OR iv_type = seop_ext_class_testclasses. ls_include-rootname = is_clskey-clsname. TRANSLATE ls_include-rootname USING ' ='. ls_include-categorya = iv_type(1). ls_include-codea = iv_type+1(4). * it looks like there is an issue in function module SEO_CLASS_GET_INCLUDE_SOURCE * on 750 kernels, where the READ REPORT without STATE addition does not * return the active version, this method is a workaround for this issue READ REPORT ls_include INTO rt_source STATE 'A'. ENDMETHOD. METHOD reduce. DATA: lv_source LIKE LINE OF ct_source, lv_found TYPE abap_bool. * skip files that only contain the standard comments lv_found = abap_false. LOOP AT ct_source INTO lv_source. IF strlen( lv_source ) >= 3 AND lv_source(3) <> '*"*'. lv_found = abap_true. ENDIF. ENDLOOP. IF lv_found = abap_false. CLEAR ct_source. ENDIF. ENDMETHOD. METHOD remove_signatures. * signatures messes up in CL_OO_SOURCE when deserializing and serializing * within same session DATA: lv_begin TYPE string, lv_end TYPE string, lv_remove TYPE abap_bool, lv_source LIKE LINE OF ct_source. "@TODO: Put under test CONCATENATE '* <SIGNATURE>------------------------------------' '---------------------------------------------------+' INTO lv_begin. CONCATENATE '* +------------------------------------------------' '--------------------------------------</SIGNATURE>' INTO lv_end. lv_remove = abap_false. LOOP AT ct_source INTO lv_source. IF lv_source = lv_begin. lv_remove = abap_true. ENDIF. IF lv_remove = abap_true. DELETE ct_source INDEX sy-tabix. ENDIF. IF lv_source = lv_end. lv_remove = abap_false. ENDIF. ENDLOOP. ENDMETHOD. METHOD serialize_abap_clif_source. rt_source = zcl_abapgit_exit=>get_instance( )->custom_serialize_abap_clif( is_class_key ). IF rt_source IS NOT INITIAL. RETURN. ENDIF. TRY. rt_source = serialize_abap_new( is_class_key ). CATCH cx_sy_dyn_call_error. rt_source = serialize_abap_old( is_class_key ). ENDTRY. ENDMETHOD. METHOD serialize_abap_new. DATA: lo_source TYPE REF TO object, lo_settings TYPE REF TO object, lo_instance TYPE REF TO object. * do not call the class/methods statically, as it will * give syntax errors on old versions CALL METHOD ('CL_OO_FACTORY')=>('CREATE_INSTANCE') RECEIVING result = lo_instance. CALL METHOD ('CL_OO_CLIF_SOURCE_SETTINGS')=>('CREATE_INSTANCE') EXPORTING signature_enabled = seox_false modification_mode_allowed = seox_false ui_enabled = seox_false generator_mode_enabled = seox_false RECEIVING instance = lo_settings. CALL METHOD lo_instance->('CREATE_CLIF_SOURCE') EXPORTING clif_name = is_clskey-clsname settings = cast if_oo_clif_source_settings( lo_settings ) version = 'A' RECEIVING result = lo_source. CALL METHOD lo_source->('GET_SOURCE') IMPORTING source = rt_source. ENDMETHOD. METHOD serialize_abap_old. * for old ABAP AS versions DATA: lo_source TYPE REF TO cl_oo_source. CREATE OBJECT lo_source EXPORTING clskey = is_clskey EXCEPTIONS class_not_existing = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from CL_OO_SOURCE. Subrc = { sy-subrc }| ). ENDIF. lo_source->read( 'A' ). rt_source = lo_source->get_old_source( ). remove_signatures( CHANGING ct_source = rt_source ). ENDMETHOD. METHOD serialize_locals_def. rt_source = read_include( is_clskey = is_clskey iv_type = seop_ext_class_locals_def ). reduce( CHANGING ct_source = rt_source ). ENDMETHOD. METHOD serialize_locals_imp. rt_source = read_include( is_clskey = is_clskey iv_type = seop_ext_class_locals_imp ). reduce( CHANGING ct_source = rt_source ). ENDMETHOD. METHOD serialize_macros. rt_source = read_include( is_clskey = is_clskey iv_type = seop_ext_class_macros ). reduce( CHANGING ct_source = rt_source ). ENDMETHOD. METHOD serialize_testclasses. rt_source = read_include( is_clskey = is_clskey iv_type = seop_ext_class_testclasses ). mv_skip_testclass = calculate_skip_testclass( rt_source ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 2238, 62, 46911, 7509, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 11389, 1096, 62, 397, 499, 62, 565, 361, 62, 10459, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 4871, 62, 2539, 220, 220, 220, 41876, 384, 420, 7278, 2539, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 10459, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8841, 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, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 1837, 62, 67, 2047, 62, 13345, 62, 18224, 764, 198, 220, 220, 220, 337, 36252, 50, 389, 62, 9288, 62, 37724, 62, 8135, 3949, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 7783, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 11389, 1096, 62, 17946, 874, 62, 11011, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 565, 82, 2539, 220, 220, 220, 220, 220, 220, 41876, 384, 420, 7278, 2539, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 10459, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8841, 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, 11389, 1096, 62, 17946, 874, 62, 4299, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 565, 82, 2539, 220, 220, 220, 220, 220, 220, 41876, 384, 420, 7278, 2539, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 10459, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8841, 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, 11389, 1096, 62, 9288, 37724, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 565, 82, 2539, 220, 220, 220, 220, 220, 220, 41876, 384, 420, 7278, 2539, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 10459, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8841, 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, 11389, 1096, 62, 20285, 4951, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 565, 82, 2539, 220, 220, 220, 220, 220, 220, 41876, 384, 420, 7278, 2539, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 10459, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8841, 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, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 285, 85, 62, 48267, 62, 9288, 4871, 41876, 450, 499, 62, 30388, 764, 628, 220, 220, 220, 337, 36252, 50, 15284, 62, 48267, 62, 9288, 4871, 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, 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, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 48267, 62, 9288, 4871, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 11389, 1096, 62, 397, 499, 62, 727, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 565, 82, 2539, 220, 220, 220, 220, 220, 220, 41876, 384, 420, 7278, 2539, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 10459, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8841, 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, 11389, 1096, 62, 397, 499, 62, 3605, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 565, 82, 2539, 220, 220, 220, 220, 220, 220, 41876, 384, 420, 7278, 2539, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 10459, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8841, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 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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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 ]
class ZCL_AOT_RUN definition public create private . public section. class-methods CREATE importing !IO_PROJECT type ref to ZCL_AOT_PROJECT returning value(RO_RUN) type ref to ZCL_AOT_RUN . class-methods GET_INSTANCE importing !IV_RUN_ID type ZAOT_RUN_ID returning value(RO_RUN) type ref to ZCL_AOT_RUN . class-methods LOOKUP importing !IV_PROJECT type ZAOT_PROJECT_NAME !IV_RUN_NAME type ZAOT_RUN_NAME returning value(RO_RUN) type ref to ZCL_AOT_RUN . methods APPEND_COVERAGE importing !II_NODE type ref to IF_SCV_RESULT_NODE !II_RESULT type ref to IF_SCV_RESULT !IV_CLASS type TADIR-OBJ_NAME . methods APPEND_OBJECT importing !IS_OBJECT type ZAOT_OBJECTS . methods APPEND_TEST importing !IS_TEST type ZAOT_TESTS . methods GET_BLOCKS returning value(RT_BLOCKS) type ZAOT_CBLOCKS_TT . methods GET_COVERAGE returning value(RT_COVERAGE) type ZAOT_COVERAGE_TT . methods GET_DETAILS returning value(RS_RUN) type ZAOT_RUNS . methods GET_OBJECTS returning value(RT_OBJECTS) type ZAOT_OBJECTS_TT . methods GET_TESTS returning value(RT_TESTS) type ZAOT_TESTS_TT . methods SAVE . methods SET_END_TIME . methods SET_START_TIME . protected section. private section. data MS_RUN type ZAOT_RUNS . data MT_TESTS type ZAOT_TESTS_TT . data MT_OBJECTS type ZAOT_OBJECTS_TT . data MT_BLOCKS type ZAOT_CBLOCKS_TT . data MT_COVERAGE type ZAOT_COVERAGE_TT . methods GET_CONTAINER importing !IO_INSP type ref to CL_SCV_PBLOCK_INSPECTOR !II_RESULT type ref to IF_SCV_RESULT returning value(RI_CONTAINER) type ref to IF_SCOV_STMNT_DATA_CONTAINER . ENDCLASS. CLASS ZCL_AOT_RUN IMPLEMENTATION. METHOD append_coverage. DATA: ls_block TYPE zaot_cblocks_data. * DATA(lv_executed) = ii_node->get_coverage( ce_scv_coverage_type=>statement )->get_executed( ). CASE ii_node->subtype. WHEN 'METH'. DATA(lo_insp) = cl_scv_pblock_inspector=>create( ii_node ). ls_block-pb_type = 'METH'. ls_block-pb_name = lo_insp->get_method_name( ). ls_block-prog_class = lo_insp->get_class_name( ). ls_block-class_sub = lo_insp->get_class_subtype( ). ls_block-prog_type = lo_insp->get_program_subtype( ). ls_block-prog_name = lo_insp->get_program_name( ). IF ls_block-class_sub = 'LOCL'. * todo RETURN. ENDIF. WHEN OTHERS. * todo RETURN. ENDCASE. DATA(li_container) = get_container( io_insp = lo_insp ii_result = ii_result ). * TODO: sorted table? READ TABLE mt_blocks ASSIGNING FIELD-SYMBOL(<ls_result>) WITH KEY pb_type = ls_block-pb_type pb_name = ls_block-pb_name prog_class = ls_block-prog_class class_sub = ls_block-class_sub prog_type = ls_block-prog_type prog_name = ls_block-prog_name. IF sy-subrc <> 0. DATA(lv_source) = concat_lines_of( table = li_container->get_source( ) sep = |\n| ). DATA(lv_cblock_id) = zcl_aot_uuid=>create( ). INSERT VALUE #( run_id = ms_run-run_id cblock_id = lv_cblock_id pb_type = ls_block-pb_type pb_name = ls_block-pb_name prog_class = ls_block-prog_class class_sub = ls_block-class_sub prog_type = ls_block-prog_type prog_name = ls_block-prog_name source = lv_source ) INTO TABLE mt_blocks ASSIGNING <ls_result>. ELSE. lv_cblock_id = <ls_result>-cblock_id. ENDIF. IF ii_node->get_coverage( ce_scv_coverage_type=>statement )->get_executed( ) > 0. LOOP AT li_container->get_stmnt_cov_meta_data( ) INTO DATA(ls_cov). APPEND VALUE #( cblock_id = lv_cblock_id program_name = '' " TODO class_name = iv_class method_name = '' " TODO counter = sy-tabix rowcov = ls_cov-row colcov = ls_cov-col colorcov = ls_cov-color iconcov = ls_cov-icon ) TO mt_coverage. ENDLOOP. ENDIF. ENDMETHOD. METHOD append_object. ASSERT is_object-run_id IS INITIAL. ASSERT NOT is_object-object_name IS INITIAL. ASSERT NOT is_object-object_type IS INITIAL. DATA(ls_object) = is_object. ls_object-run_id = ms_run-run_id. APPEND ls_object TO mt_objects. ENDMETHOD. METHOD append_test. ASSERT NOT is_test-program_name IS INITIAL. ASSERT NOT is_test-class_name IS INITIAL. ASSERT NOT is_test-method_name IS INITIAL. ASSERT NOT is_test-object_name IS INITIAL. ASSERT NOT is_test-object_type IS INITIAL. DATA(ls_test) = is_test. ls_test-run_id = ms_run-run_id. APPEND ls_test TO mt_tests. ENDMETHOD. METHOD create. CREATE OBJECT ro_run. ro_run->ms_run-project = io_project->get_details( )-project. * This is bad, might fail in a concurrency scenario, but hmm SELECT MAX( run_name ) FROM zaot_runs INTO @DATA(lv_max) WHERE project = @ro_run->ms_run-project. "#EC CI_NOFIELD ro_run->ms_run-run_name = lv_max + 1. ro_run->ms_run-run_id = zcl_aot_uuid=>create( ). ENDMETHOD. METHOD get_blocks. rt_blocks = mt_blocks. ENDMETHOD. METHOD get_container. DATA(lo_ui_factory) = NEW cl_scov_stmnt_cov_ui_factory( ). DATA(lt_tkey_selops) = VALUE cvt_test_key_selops( ( option = 'EQ' sign = 'I' low = ii_result->get_measurement( )->get_testkey( ) ) ). ri_container = lo_ui_factory->create_stmnt_dcon_factory( lt_tkey_selops )->create_stmnt_data_container( io_insp->get_pb_info( ) ). ENDMETHOD. METHOD get_coverage. rt_coverage = mt_coverage. ENDMETHOD. METHOD get_details. rs_run = ms_run. ENDMETHOD. METHOD get_instance. CREATE OBJECT ro_run. SELECT SINGLE * FROM zaot_runs INTO ro_run->ms_run WHERE run_id = iv_run_id. ASSERT sy-subrc = 0. SELECT * FROM zaot_objects INTO TABLE ro_run->mt_objects WHERE run_id = iv_run_id ORDER BY PRIMARY KEY. SELECT * FROM zaot_tests INTO TABLE ro_run->mt_tests WHERE run_id = iv_run_id ORDER BY PRIMARY KEY. SELECT * FROM zaot_cblocks INTO TABLE ro_run->mt_blocks WHERE run_id = iv_run_id ORDER BY PRIMARY KEY. IF lines( ro_run->mt_blocks ) > 0. SELECT * FROM zaot_coverage INTO TABLE ro_run->mt_coverage FOR ALL ENTRIES IN ro_run->mt_blocks WHERE cblock_id = ro_run->mt_blocks-cblock_id ORDER BY PRIMARY KEY. ENDIF. ENDMETHOD. METHOD get_objects. rt_objects = mt_objects. ENDMETHOD. METHOD get_tests. rt_tests = mt_tests. ENDMETHOD. METHOD lookup. DATA(lt_runs) = zcl_aot_project=>get_instance( iv_project )->list_runs( ). READ TABLE lt_runs INTO DATA(ls_run) WITH KEY run_name = iv_run_name. ASSERT sy-subrc = 0. ro_run = zcl_aot_run=>get_instance( ls_run-run_id ). ENDMETHOD. METHOD save. INSERT zaot_runs FROM ms_run. ASSERT sy-subrc = 0. INSERT zaot_objects FROM TABLE mt_objects. INSERT zaot_tests FROM TABLE mt_tests. INSERT zaot_cblocks FROM TABLE mt_blocks. INSERT zaot_coverage FROM TABLE mt_coverage. ENDMETHOD. METHOD set_end_time. GET TIME STAMP FIELD ms_run-end_time. ENDMETHOD. METHOD set_start_time. GET TIME STAMP FIELD ms_run-start_time. ENDMETHOD. ENDCLASS.
[ 4871, 1168, 5097, 62, 32, 2394, 62, 49, 4944, 6770, 198, 220, 1171, 198, 220, 2251, 2839, 764, 198, 198, 11377, 2665, 13, 628, 220, 1398, 12, 24396, 82, 29244, 6158, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 9399, 62, 31190, 23680, 2099, 1006, 284, 1168, 5097, 62, 32, 2394, 62, 31190, 23680, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 13252, 62, 49, 4944, 8, 2099, 1006, 284, 1168, 5097, 62, 32, 2394, 62, 49, 4944, 764, 198, 220, 1398, 12, 24396, 82, 17151, 62, 38604, 19240, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 3824, 62, 49, 4944, 62, 2389, 2099, 1168, 32, 2394, 62, 49, 4944, 62, 2389, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 13252, 62, 49, 4944, 8, 2099, 1006, 284, 1168, 5097, 62, 32, 2394, 62, 49, 4944, 764, 198, 220, 1398, 12, 24396, 82, 48045, 8577, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 3824, 62, 31190, 23680, 2099, 1168, 32, 2394, 62, 31190, 23680, 62, 20608, 198, 220, 220, 220, 220, 220, 5145, 3824, 62, 49, 4944, 62, 20608, 2099, 1168, 32, 2394, 62, 49, 4944, 62, 20608, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 13252, 62, 49, 4944, 8, 2099, 1006, 284, 1168, 5097, 62, 32, 2394, 62, 49, 4944, 764, 198, 220, 5050, 43504, 10619, 62, 8220, 5959, 11879, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 3978, 62, 45, 16820, 2099, 1006, 284, 16876, 62, 6173, 53, 62, 19535, 16724, 62, 45, 16820, 198, 220, 220, 220, 220, 220, 5145, 3978, 62, 19535, 16724, 2099, 1006, 284, 16876, 62, 6173, 53, 62, 19535, 16724, 198, 220, 220, 220, 220, 220, 5145, 3824, 62, 31631, 2099, 309, 2885, 4663, 12, 9864, 41, 62, 20608, 764, 198, 220, 5050, 43504, 10619, 62, 9864, 23680, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 1797, 62, 9864, 23680, 2099, 1168, 32, 2394, 62, 9864, 41, 2943, 4694, 764, 198, 220, 5050, 43504, 10619, 62, 51, 6465, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 1797, 62, 51, 6465, 2099, 1168, 32, 2394, 62, 51, 1546, 4694, 764, 198, 220, 5050, 17151, 62, 9148, 11290, 50, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 14181, 62, 9148, 11290, 50, 8, 2099, 1168, 32, 2394, 62, 34, 9148, 11290, 50, 62, 15751, 764, 198, 220, 5050, 17151, 62, 8220, 5959, 11879, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 14181, 62, 8220, 5959, 11879, 8, 2099, 1168, 32, 2394, 62, 8220, 5959, 11879, 62, 15751, 764, 198, 220, 5050, 17151, 62, 35, 20892, 45484, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 6998, 62, 49, 4944, 8, 2099, 1168, 32, 2394, 62, 49, 4944, 50, 764, 198, 220, 5050, 17151, 62, 9864, 41, 2943, 4694, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 14181, 62, 9864, 41, 2943, 4694, 8, 2099, 1168, 32, 2394, 62, 9864, 41, 2943, 4694, 62, 15751, 764, 198, 220, 5050, 17151, 62, 51, 1546, 4694, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 14181, 62, 51, 1546, 4694, 8, 2099, 1168, 32, 2394, 62, 51, 1546, 4694, 62, 15751, 764, 198, 220, 5050, 14719, 6089, 764, 198, 220, 5050, 25823, 62, 10619, 62, 34694, 764, 198, 220, 5050, 25823, 62, 2257, 7227, 62, 34694, 764, 198, 24326, 2665, 13, 198, 19734, 2665, 13, 628, 220, 1366, 6579, 62, 49, 4944, 2099, 1168, 32, 2394, 62, 49, 4944, 50, 764, 198, 220, 1366, 19308, 62, 51, 1546, 4694, 2099, 1168, 32, 2394, 62, 51, 1546, 4694, 62, 15751, 764, 198, 220, 1366, 19308, 62, 9864, 41, 2943, 4694, 2099, 1168, 32, 2394, 62, 9864, 41, 2943, 4694, 62, 15751, 764, 198, 220, 1366, 19308, 62, 9148, 11290, 50, 2099, 1168, 32, 2394, 62, 34, 9148, 11290, 50, 62, 15751, 764, 198, 220, 1366, 19308, 62, 8220, 5959, 11879, 2099, 1168, 32, 2394, 62, 8220, 5959, 11879, 62, 15751, 764, 628, 220, 5050, 17151, 62, 10943, 30339, 1137, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 9399, 62, 1268, 4303, 2099, 1006, 284, 7852, 62, 6173, 53, 62, 47, 9148, 11290, 62, 1268, 4303, 9782, 1581, 198, 220, 220, 220, 220, 220, 5145, 3978, 62, 19535, 16724, 2099, 1006, 284, 16876, 62, 6173, 53, 62, 19535, 16724, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 7112, 62, 10943, 30339, 1137, 8, 2099, 1006, 284, 16876, 62, 6173, 8874, 62, 2257, 44, 11251, 62, 26947, 62, 10943, 30339, 1137, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 32, 2394, 62, 49, 4944, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 24443, 62, 1073, 1857, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 9967, 41876, 1976, 64, 313, 62, 66, 27372, 62, 7890, 13, 198, 198, 9, 220, 220, 220, 42865, 7, 6780, 62, 18558, 7241, 8, 796, 21065, 62, 17440, 3784, 1136, 62, 1073, 1857, 7, 2906, 62, 1416, 85, 62, 1073, 1857, 62, 4906, 14804, 26090, 1267, 3784, 1136, 62, 18558, 7241, 7, 6739, 628, 220, 220, 220, 42001, 21065, 62, 17440, 3784, 7266, 4906, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 44, 20702, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 5439, 62, 1040, 79, 8, 796, 537, 62, 1416, 85, 62, 79, 9967, 62, 1040, 806, 273, 14804, 17953, 7, 21065, 62, 17440, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 9967, 12, 40842, 62, 4906, 220, 220, 220, 796, 705, 44, 20702, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 9967, 12, 40842, 62, 3672, 220, 220, 220, 796, 2376, 62, 1040, 79, 3784, 1136, 62, 24396, 62, 3672, 7, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 9967, 12, 1676, 70, 62, 4871, 796, 2376 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
class ZCL_EXCEL_COMMON definition public final create public . *"* public components of class ZCL_EXCEL_COMMON *"* do not include other source files here!!! public section. constants C_EXCEL_BASELINE_DATE type D value '19000101'. "#EC NOTEXT class-data C_EXCEL_NUMFMT_OFFSET type INT1 value 164. "#EC NOTEXT . . . . . . . . . . . . . . . . " . constants C_EXCEL_SHEET_MAX_COL type INT4 value 16384. "#EC NOTEXT constants C_EXCEL_SHEET_MIN_COL type INT4 value 1. "#EC NOTEXT constants C_EXCEL_SHEET_MAX_ROW type INT4 value 1048576. "#EC NOTEXT constants C_EXCEL_SHEET_MIN_ROW type INT4 value 1. "#EC NOTEXT class-data C_SPRAS_EN type SPRAS value 'E'. "#EC NOTEXT . . . . . . . . . . . . . . . . " . class-data O_CONV type ref to CL_ABAP_CONV_OUT_CE . constants C_EXCEL_1900_LEAP_YEAR type D value '19000228'. "#EC NOTEXT class-data C_XLSX_FILE_FILTER type STRING value 'Excel Workbook (*.xlsx)|*.xlsx|'. "#EC NOTEXT . . . . . . . " . class-methods CLASS_CONSTRUCTOR . class-methods DESCRIBE_STRUCTURE importing !IO_STRUCT type ref to CL_ABAP_STRUCTDESCR returning value(RT_DFIES) type DDFIELDS . class-methods CONVERT_COLUMN2ALPHA importing !IP_COLUMN type SIMPLE returning value(EP_COLUMN) type ZEXCEL_CELL_COLUMN_ALPHA raising ZCX_EXCEL . class-methods CONVERT_COLUMN2INT importing !IP_COLUMN type SIMPLE returning value(EP_COLUMN) type ZEXCEL_CELL_COLUMN raising ZCX_EXCEL . class-methods CONVERT_COLUMNROW2COLUMN_A_ROW importing !I_COLUMNROW type CLIKE exporting !E_COLUMN type ZEXCEL_CELL_COLUMN_ALPHA !E_ROW type ZEXCEL_CELL_ROW . class-methods CONVERT_RANGE2COLUMN_A_ROW importing !I_RANGE type CLIKE exporting !E_COLUMN_START type ZEXCEL_CELL_COLUMN_ALPHA !E_COLUMN_END type ZEXCEL_CELL_COLUMN_ALPHA !E_ROW_START type ZEXCEL_CELL_ROW !E_ROW_END type ZEXCEL_CELL_ROW !E_SHEET type CLIKE raising ZCX_EXCEL . class-methods DATE_TO_EXCEL_STRING importing !IP_VALUE type D returning value(EP_VALUE) type ZEXCEL_CELL_VALUE . class-methods ENCRYPT_PASSWORD importing !I_PWD type ZEXCEL_AES_PASSWORD returning value(R_ENCRYPTED_PWD) type ZEXCEL_AES_PASSWORD . class-methods ESCAPE_STRING importing !IP_VALUE type CLIKE returning value(EP_ESCAPED_VALUE) type STRING . class-methods UNESCAPE_STRING importing !IV_ESCAPED type CLIKE returning value(EV_UNESCAPED_STRING) type STRING raising ZCX_EXCEL . class-methods EXCEL_STRING_TO_DATE importing !IP_VALUE type ZEXCEL_CELL_VALUE returning value(EP_VALUE) type D raising ZCX_EXCEL . class-methods EXCEL_STRING_TO_TIME importing !IP_VALUE type ZEXCEL_CELL_VALUE returning value(EP_VALUE) type T raising ZCX_EXCEL . class-methods EXCEL_STRING_TO_NUMBER importing !IP_VALUE type ZEXCEL_CELL_VALUE returning value(EP_VALUE) type F raising ZCX_EXCEL . class-methods GET_FIELDCATALOG importing !IP_TABLE type STANDARD TABLE returning value(EP_FIELDCATALOG) type ZEXCEL_T_FIELDCATALOG . class-methods NUMBER_TO_EXCEL_STRING importing value(IP_VALUE) type NUMERIC returning value(EP_VALUE) type ZEXCEL_CELL_VALUE . class-methods RECURSIVE_CLASS_TO_STRUCT importing !I_SOURCE type ANY changing !E_TARGET type DATA !E_TARGETX type DATA . class-methods RECURSIVE_STRUCT_TO_CLASS importing !I_SOURCE type DATA !I_SOURCEX type DATA changing !E_TARGET type ANY . class-methods TIME_TO_EXCEL_STRING importing !IP_VALUE type T returning value(EP_VALUE) type ZEXCEL_CELL_VALUE . type-pools ABAP . class-methods SPLIT_FILE importing !IP_FILE type TEXT255 exporting !EP_FILE type TEXT255 !EP_EXTENSION type CHAR10 !EP_DOTEXTENSION type CHAR10 . class-methods CALCULATE_CELL_DISTANCE importing !IV_REFERENCE_CELL type CLIKE !IV_CURRENT_CELL type CLIKE exporting !EV_ROW_DIFFERENCE type I !EV_COL_DIFFERENCE type I raising ZCX_EXCEL . class-methods DETERMINE_RESULTING_FORMULA importing !IV_REFERENCE_CELL type CLIKE !IV_REFERENCE_FORMULA type CLIKE !IV_CURRENT_CELL type CLIKE returning value(EV_RESULTING_FORMULA) type STRING raising ZCX_EXCEL . class-methods SHIFT_FORMULA importing !IV_REFERENCE_FORMULA type CLIKE value(IV_SHIFT_COLS) type I value(IV_SHIFT_ROWS) type I returning value(EV_RESULTING_FORMULA) type STRING raising ZCX_EXCEL . class-methods IS_CELL_IN_RANGE importing !IP_COLUMN type SIMPLE !IP_ROW type ZEXCEL_CELL_ROW !IP_RANGE type CLIKE returning value(RP_IN_RANGE) type ABAP_BOOL raising ZCX_EXCEL . *"* protected components of class ZCL_EXCEL_COMMON *"* do not include other source files here!!! *"* protected components of class ZCL_EXCEL_COMMON *"* do not include other source files here!!! protected section. private section. class-data C_EXCEL_COL_MODULE type INT2 value 64. "#EC NOTEXT . . . . . . . . . . . . . . . " . class-methods STRUCTURE_CASE importing !IS_COMPONENT type ABAP_COMPONENTDESCR changing !XT_COMPONENTS type ABAP_COMPONENT_TAB . class-methods STRUCTURE_RECURSIVE importing !IS_COMPONENT type ABAP_COMPONENTDESCR returning value(RT_COMPONENTS) type ABAP_COMPONENT_TAB . class-methods CHAR2HEX importing !I_CHAR type CHAR1 returning value(R_HEX) type ZEXCEL_PWD_HASH . class-methods SHL01 importing !I_PWD_HASH type ZEXCEL_PWD_HASH returning value(R_PWD_HASH) type ZEXCEL_PWD_HASH . class-methods SHR14 importing !I_PWD_HASH type ZEXCEL_PWD_HASH returning value(R_PWD_HASH) type ZEXCEL_PWD_HASH . ENDCLASS. CLASS ZCL_EXCEL_COMMON IMPLEMENTATION. METHOD calculate_cell_distance. DATA: lv_reference_row TYPE i, lv_reference_col_alpha TYPE zexcel_cell_column_alpha, lv_reference_col TYPE i, lv_current_row TYPE i, lv_current_col_alpha TYPE zexcel_cell_column_alpha, lv_current_col TYPE i. *--------------------------------------------------------------------* * Split reference cell into numerical row/column representation *--------------------------------------------------------------------* convert_columnrow2column_a_row( EXPORTING i_columnrow = iv_reference_cell IMPORTING e_column = lv_reference_col_alpha e_row = lv_reference_row ). lv_reference_col = convert_column2int( lv_reference_col_alpha ). *--------------------------------------------------------------------* * Split current cell into numerical row/column representation *--------------------------------------------------------------------* convert_columnrow2column_a_row( EXPORTING i_columnrow = iv_current_cell IMPORTING e_column = lv_current_col_alpha e_row = lv_current_row ). lv_current_col = convert_column2int( lv_current_col_alpha ). *--------------------------------------------------------------------* * Calculate row and column difference * Positive: Current cell below reference cell * or Current cell right of reference cell * Negative: Current cell above reference cell * or Current cell left of reference cell *--------------------------------------------------------------------* ev_row_difference = lv_current_row - lv_reference_row. ev_col_difference = lv_current_col - lv_reference_col. ENDMETHOD. method CHAR2HEX. IF o_conv IS NOT BOUND. o_conv = cl_abap_conv_out_ce=>create( endian = 'L' ignore_cerr = abap_true replacement = '#' ). ENDIF. CALL METHOD o_conv->reset( ). CALL METHOD o_conv->write( data = i_char ). r_hex+1 = o_conv->get_buffer( ). " x'65' must be x'0065' endmethod. METHOD class_constructor. c_xlsx_file_filter = 'Excel Workbook (*.xlsx)|*.xlsx|'(005). ENDMETHOD. METHOD convert_column2alpha. DATA: lv_uccpi TYPE i, lv_text TYPE sychar02, lv_module TYPE int4, lv_column TYPE zexcel_cell_column. STATICS: sv_prev_in LIKE lv_column, sv_prev_out LIKE ep_column. * Propagate zcx_excel if error occurs " issue #155 - less restrictive typing for ip_column lv_column = convert_column2int( ip_column ). " issue #155 - less restrictive typing for ip_column *--------------------------------------------------------------------* * Check whether column is in allowed range for EXCEL to handle ( 1-16384 ) *--------------------------------------------------------------------* IF lv_column > 16384 OR lv_column < 1. zcx_excel=>raise_text( 'Index out of bounds' ). ENDIF. *--------------------------------------------------------------------* * Look up for previous succesfull cached result *--------------------------------------------------------------------* IF lv_column = sv_prev_in AND sv_prev_out IS NOT INITIAL. ep_column = sv_prev_out. RETURN. ELSE. CLEAR sv_prev_out. sv_prev_in = lv_column. ENDIF. *--------------------------------------------------------------------* * Build alpha representation of column *--------------------------------------------------------------------* WHILE lv_column GT 0. lv_module = ( lv_column - 1 ) MOD 26. lv_uccpi = 65 + lv_module. lv_column = ( lv_column - lv_module ) / 26. lv_text = cl_abap_conv_in_ce=>uccpi( lv_uccpi ). CONCATENATE lv_text ep_column INTO ep_column. ENDWHILE. *--------------------------------------------------------------------* * Save succesfull output into cache *--------------------------------------------------------------------* sv_prev_out = ep_column. ENDMETHOD. METHOD convert_column2int. *--------------------------------------------------------------------* * issue #230 - Pimp my Code * - Stefan Schmoecker, (done) 2012-12-29 * - ... * changes: renaming variables to naming conventions * removing unused variables * removing commented out code that is inactive for more then half a year * message made to support multilinguality * adding comments to explain what we are trying to achieve *--------------------------------------------------------------------* * issue#246 - error converting lower case column names * - Stefan Schmoecker, 2012-12-29 * changes: translating the correct variable to upper dase * adding missing exception if input is a number * that is out of bounds * adding missing exception if input contains * illegal characters like german umlauts *--------------------------------------------------------------------* DATA: lv_column TYPE zexcel_cell_column_alpha, lv_column_c TYPE char10, lv_column_s TYPE string, lv_errormessage TYPE string, " Can't pass '...'(abc) to exception-class lv_modulo TYPE i. STATICS: sv_prev_in LIKE lv_column_c, sv_prev_out LIKE ep_column. *--------------------------------------------------------------------* * This module tries to identify which column a user wants to access * Numbers as input are just passed back, anything else will be converted * using EXCEL nomenclatura A = 1, AA = 27, ..., XFD = 16384 *--------------------------------------------------------------------* *--------------------------------------------------------------------* * Normalize input ( upper case , no gaps ) *--------------------------------------------------------------------* lv_column_c = ip_column. * TRANSLATE lv_column TO UPPER CASE. " Fix #246 TRANSLATE lv_column_c TO UPPER CASE. " Fix #246 CONDENSE lv_column_c NO-GAPS. IF lv_column_c EQ ''. * lv_errormessage = 'Unable to interpret input as column'(003). MESSAGE e800(zabap2xlsx) INTO lv_errormessage. zcx_excel=>raise_symsg( ). ENDIF. *--------------------------------------------------------------------* * Look up for previous succesfull cached result *--------------------------------------------------------------------* IF lv_column_c = sv_prev_in AND sv_prev_out IS NOT INITIAL. ep_column = sv_prev_out. RETURN. ELSE. CLEAR sv_prev_out. sv_prev_in = lv_column_c. ENDIF. *--------------------------------------------------------------------* * If a number gets passed, just convert it to an integer and return * the converted value *--------------------------------------------------------------------* TRY. IF lv_column_c CO '1234567890 '. " Fix #164 ep_column = lv_column_c. " Fix #164 *--------------------------------------------------------------------* * Maximum column for EXCEL: XFD = 16384 " if anyone has a reference for this information - please add here instead of this comment *--------------------------------------------------------------------* IF ep_column > 16384 OR ep_column < 1. lv_errormessage = 'Index out of bounds'(004). zcx_excel=>raise_text( lv_errormessage ). ENDIF. EXIT. ENDIF. CATCH cx_sy_conversion_no_number. "#EC NO_HANDLER " Try the character-approach if approach via number has failed ENDTRY. *--------------------------------------------------------------------* * Raise error if unexpected characters turns up *--------------------------------------------------------------------* lv_column_s = lv_column_c. IF lv_column_s CN sy-abcde. * lv_errormessage = 'Unable to interpret input as column'(003). MESSAGE e800(zabap2xlsx) INTO lv_errormessage. zcx_excel=>raise_symsg( ). ENDIF. DO 1 TIMES. "Because of using CHECK *--------------------------------------------------------------------* * Interpret input as number to base 26 with A=1, ... Z=26 * Raise error if unexpected character turns up *--------------------------------------------------------------------* * 1st character *--------------------------------------------------------------------* lv_column = lv_column_c. lv_modulo = cl_abap_conv_out_ce=>uccpi( lv_column+0(1) ) MOD zcl_excel_common=>c_excel_col_module. IF lv_modulo < 1 OR lv_modulo > 26. * lv_errormessage = 'Unable to interpret input as column'(003). MESSAGE e800(zabap2xlsx) INTO lv_errormessage. zcx_excel=>raise_symsg( ). ENDIF. ep_column = lv_modulo. " Leftmost digit *--------------------------------------------------------------------* * 2nd character if present *--------------------------------------------------------------------* CHECK lv_column+1(1) IS NOT INITIAL. " No need to continue if string ended lv_modulo = cl_abap_conv_out_ce=>uccpi( lv_column+1(1) ) MOD zcl_excel_common=>c_excel_col_module. IF lv_modulo < 1 OR lv_modulo > 26. * lv_errormessage = 'Unable to interpret input as column'(003). MESSAGE e800(zabap2xlsx) INTO lv_errormessage. zcx_excel=>raise_symsg( ). ENDIF. ep_column = 26 * ep_column + lv_modulo. " if second digit is present first digit is for 26^1 *--------------------------------------------------------------------* * 3rd character if present *--------------------------------------------------------------------* CHECK lv_column+2(1) IS NOT INITIAL. " No need to continue if string ended lv_modulo = cl_abap_conv_out_ce=>uccpi( lv_column+2(1) ) MOD zcl_excel_common=>c_excel_col_module. IF lv_modulo < 1 OR lv_modulo > 26. * lv_errormessage = 'Unable to interpret input as column'(003). MESSAGE e800(zabap2xlsx) INTO lv_errormessage. zcx_excel=>raise_symsg( ). ENDIF. ep_column = 26 * ep_column + lv_modulo. " if third digit is present first digit is for 26^2 and second digit for 26^1 ENDDO. *--------------------------------------------------------------------* * Maximum column for EXCEL: XFD = 16384 " if anyone has a reference for this information - please add here instead of this comment *--------------------------------------------------------------------* IF ep_column > 16384 OR ep_column < 1. lv_errormessage = 'Index out of bounds'(004). zcx_excel=>raise_text( lv_errormessage ). ENDIF. *--------------------------------------------------------------------* * Save succesfull output into cache *--------------------------------------------------------------------* sv_prev_out = ep_column. ENDMETHOD. method CONVERT_COLUMNROW2COLUMN_A_ROW. *--------------------------------------------------------------------* "issue #256 - replacing char processing with regex *--------------------------------------------------------------------* * Stefan Schmoecker, 2013-08-11 * Allow input to be CLIKE instead of STRING *--------------------------------------------------------------------* DATA: pane_cell_row_a TYPE string, lv_columnrow type string. lv_columnrow = i_columnrow. " Get rid of trailing blanks FIND REGEX '^(\D+)(\d+)$' IN lv_columnrow SUBMATCHES e_column pane_cell_row_a. e_row = pane_cell_row_a. endmethod. method CONVERT_RANGE2COLUMN_A_ROW. *--------------------------------------------------------------------* * issue #230 - Pimp my Code * - Stefan Schmoecker, (done) 2012-12-07 * - ... * changes: renaming variables to naming conventions * aligning code * added exceptionclass * added errorhandling for invalid range * adding comments to explain what we are trying to achieve *--------------------------------------------------------------------* * issue#241 - error when sheetname contains "!" * - sheetname should be returned unescaped * - Stefan Schmoecker, 2012-12-07 * changes: changed coding to support sheetnames with "!" * unescaping sheetname *--------------------------------------------------------------------* * issue#155 - lessening restrictions of input parameters * - Stefan Schmoecker, 2012-12-07 * changes: i_range changed to clike * e_sheet changed to clike *--------------------------------------------------------------------* DATA: lv_sheet TYPE string, lv_range TYPE string, lv_columnrow_start TYPE string, lv_columnrow_end TYPE string, lv_errormessage TYPE string. " Can't pass '...'(abc) to exception-class *--------------------------------------------------------------------* * Split input range into sheetname and Area * 4 cases - a) input empty --> nothing to do * - b) sheetname existing - starts with ' example 'Sheet 1'!$B$6:$D$13 * - c) sheetname existing - does not start with ' example Sheet1!$B$6:$D$13 * - d) no sheetname - just area example $B$6:$D$13 *--------------------------------------------------------------------* * Initialize output parameters CLEAR: e_column_start, e_column_end, e_row_start, e_row_end, e_sheet. IF i_range IS INITIAL. " a) input empty --> nothing to do EXIT. ELSEIF i_range(1) = `'`. " b) sheetname existing - starts with ' FIND REGEX '\![^\!]*$' IN i_range MATCH OFFSET sy-fdpos. " Find last ! IF sy-subrc = 0. lv_sheet = i_range(sy-fdpos). ADD 1 TO sy-fdpos. lv_range = i_range. SHIFT lv_range LEFT BY sy-fdpos PLACES. ELSE. lv_errormessage = 'Invalid range'(001). zcx_excel=>raise_text( lv_errormessage ). ENDIF. ELSEIF i_range CS '!'. " c) sheetname existing - does not start with ' SPLIT i_range AT '!' INTO lv_sheet lv_range. " begin Dennis Schaaf IF lv_range CP '*#REF*'. lv_errormessage = 'Invalid range'(001). zcx_excel=>raise_text( lv_errormessage ). ENDIF. " end Dennis Schaaf ELSE. " d) no sheetname - just area lv_range = i_range. ENDIF. REPLACE ALL OCCURRENCES OF '$' IN lv_range WITH ''. SPLIT lv_range AT ':' INTO lv_columnrow_start lv_columnrow_end. convert_columnrow2column_a_row( EXPORTING i_columnrow = lv_columnrow_start IMPORTING e_column = e_column_start e_row = e_row_start ). convert_columnrow2column_a_row( EXPORTING i_columnrow = lv_columnrow_end IMPORTING e_column = e_column_end e_row = e_row_end ). e_sheet = unescape_string( lv_sheet ). " Return in unescaped form endmethod. method DATE_TO_EXCEL_STRING. DATA: lv_date_diff TYPE i. CHECK ip_value IS NOT INITIAL AND ip_value <> space. " Needed hack caused by the problem that: " Excel 2000 incorrectly assumes that the year 1900 is a leap year " http://support.microsoft.com/kb/214326/en-us IF ip_value > c_excel_1900_leap_year. lv_date_diff = ip_value - c_excel_baseline_date + 2. ELSE. lv_date_diff = ip_value - c_excel_baseline_date + 1. ENDIF. ep_value = zcl_excel_common=>number_to_excel_string( ip_value = lv_date_diff ). endmethod. method DESCRIBE_STRUCTURE. DATA: lt_components TYPE abap_component_tab, lt_comps TYPE abap_component_tab, ls_component TYPE abap_componentdescr, lo_elemdescr TYPE REF TO cl_abap_elemdescr, ls_dfies TYPE dfies, l_position TYPE tabfdpos. "for DDIC structure get the info directly IF io_struct->is_ddic_type( ) = abap_true. rt_dfies = io_struct->get_ddic_field_list( ). ELSE. lt_components = io_struct->get_components( ). LOOP AT lt_components INTO ls_component. structure_case( EXPORTING is_component = ls_component CHANGING xt_components = lt_comps ) . ENDLOOP. LOOP AT lt_comps INTO ls_component. CLEAR ls_dfies. IF ls_component-type->kind = cl_abap_typedescr=>kind_elem. "E Elementary Type ADD 1 TO l_position. lo_elemdescr ?= ls_component-type. IF lo_elemdescr->is_ddic_type( ) = abap_true. ls_dfies = lo_elemdescr->get_ddic_field( ). ls_dfies-fieldname = ls_component-name. ls_dfies-position = l_position. ELSE. ls_dfies-fieldname = ls_component-name. ls_dfies-position = l_position. ls_dfies-inttype = lo_elemdescr->type_kind. ls_dfies-leng = lo_elemdescr->length. ls_dfies-outputlen = lo_elemdescr->length. ls_dfies-decimals = lo_elemdescr->decimals. ls_dfies-fieldtext = ls_component-name. ls_dfies-reptext = ls_component-name. ls_dfies-scrtext_s = ls_component-name. ls_dfies-scrtext_m = ls_component-name. ls_dfies-scrtext_l = ls_component-name. ls_dfies-dynpfld = abap_true. ENDIF. INSERT ls_dfies INTO TABLE rt_dfies. ENDIF. ENDLOOP. ENDIF. endmethod. METHOD determine_resulting_formula. DATA: lv_row_difference TYPE i, lv_col_difference TYPE i. *--------------------------------------------------------------------* * Calculate distance of reference and current cell *--------------------------------------------------------------------* calculate_cell_distance( EXPORTING iv_reference_cell = iv_reference_cell iv_current_cell = iv_current_cell IMPORTING ev_row_difference = lv_row_difference ev_col_difference = lv_col_difference ). *--------------------------------------------------------------------* * and shift formula by using the row- and columndistance *--------------------------------------------------------------------* ev_resulting_formula = shift_formula( iv_reference_formula = iv_reference_formula iv_shift_rows = lv_row_difference iv_shift_cols = lv_col_difference ). ENDMETHOD. "determine_resulting_formula method ENCRYPT_PASSWORD. DATA lv_curr_offset TYPE i. DATA lv_curr_char TYPE c LENGTH 1. DATA lv_curr_hex TYPE zexcel_pwd_hash. DATA lv_pwd_len TYPE zexcel_pwd_hash. DATA lv_pwd_hash TYPE zexcel_pwd_hash. CONSTANTS: lv_0x7fff TYPE zexcel_pwd_hash VALUE '7FFF', lv_0x0001 TYPE zexcel_pwd_hash VALUE '0001', lv_0xce4b TYPE zexcel_pwd_hash VALUE 'CE4B'. DATA lv_pwd TYPE zexcel_aes_password. lv_pwd = i_pwd(15). lv_pwd_len = STRLEN( lv_pwd ). lv_curr_offset = lv_pwd_len - 1. WHILE lv_curr_offset GE 0. lv_curr_char = lv_pwd+lv_curr_offset(1). lv_curr_hex = char2hex( lv_curr_char ). lv_pwd_hash = ( shr14( lv_pwd_hash ) BIT-AND lv_0x0001 ) BIT-OR ( shl01( lv_pwd_hash ) BIT-AND lv_0x7fff ). lv_pwd_hash = lv_pwd_hash BIT-XOR lv_curr_hex. SUBTRACT 1 FROM lv_curr_offset. ENDWHILE. lv_pwd_hash = ( shr14( lv_pwd_hash ) BIT-AND lv_0x0001 ) BIT-OR ( shl01( lv_pwd_hash ) BIT-AND lv_0x7fff ). lv_pwd_hash = lv_pwd_hash BIT-XOR lv_0xce4b. lv_pwd_hash = lv_pwd_hash BIT-XOR lv_pwd_len. WRITE lv_pwd_hash TO r_encrypted_pwd. endmethod. method ESCAPE_STRING. *--------------------------------------------------------------------* * issue #230 - Pimp my Code * - Stefan Schmoecker, (done) 2012-12-08 * - ... * changes: aligning code * adding comments to explain what we are trying to achieve *--------------------------------------------------------------------* * issue#242 - Support escaping for white-spaces * - Escaping also necessary when ' encountered in input * - Stefan Schmoecker, 2012-12-08 * changes: switched check if escaping is necessary to regular expression * and moved the "REPLACE" *--------------------------------------------------------------------* * issue#155 - lessening restrictions of input parameters * - Stefan Schmoecker, 2012-12-08 * changes: ip_value changed to clike *--------------------------------------------------------------------* DATA: lv_value TYPE string. *--------------------------------------------------------------------* * There exist various situations when a space will be used to separate * different parts of a string. When we have a string consisting spaces * that will cause errors unless we "escape" the string by putting ' at * the beginning and at the end of the string. *--------------------------------------------------------------------* *--------------------------------------------------------------------* * When allowing clike-input parameters we might encounter trailing * "real" blanks . These are automatically eliminated when moving * the input parameter to a string. * Now any remaining spaces ( white-spaces or normal spaces ) should * trigger the escaping as well as any ' *--------------------------------------------------------------------* lv_value = ip_value. FIND REGEX `\s|'` IN lv_value. " \s finds regular and white spaces IF sy-subrc = 0. REPLACE ALL OCCURRENCES OF `'` IN lv_value WITH `''`. CONCATENATE `'` lv_value `'` INTO lv_value . ENDIF. ep_escaped_value = lv_value. endmethod. method EXCEL_STRING_TO_DATE. DATA: lv_date_int TYPE i. TRY. lv_date_int = ip_value. ep_value = lv_date_int + c_excel_baseline_date - 2. " Needed hack caused by the problem that: " Excel 2000 incorrectly assumes that the year 1900 is a leap year " http://support.microsoft.com/kb/214326/en-us IF ep_value < c_excel_1900_leap_year. ep_value = ep_value + 1. ENDIF. CATCH cx_sy_conversion_error. zcx_excel=>raise_text( 'Index out of bounds' ). ENDTRY. endmethod. method EXCEL_STRING_TO_NUMBER. * If we encounter anything more complicated in EXCEL we might have to extend this * But currently this works fine - even for numbers in scientific notation ep_value = ip_value. endmethod. method EXCEL_STRING_TO_TIME. DATA: lv_seconds_in_day TYPE i, lv_day_fraction TYPE f, lc_seconds_in_day TYPE i VALUE 86400. TRY. lv_day_fraction = ip_value. lv_seconds_in_day = lv_day_fraction * lc_seconds_in_day. ep_value = lv_seconds_in_day. CATCH cx_sy_conversion_error. zcx_excel=>raise_text( 'Unable to interpret time' ). ENDTRY. endmethod. METHOD get_fieldcatalog. DATA: lr_dref_tab TYPE REF TO data, lo_salv_table TYPE REF TO cl_salv_table, lo_salv_columns_table TYPE REF TO cl_salv_columns_table, lt_salv_t_column_ref TYPE salv_t_column_ref, ls_salv_t_column_ref LIKE LINE OF lt_salv_t_column_ref, lo_salv_column_table TYPE REF TO cl_salv_column_table. FIELD-SYMBOLS: <tab> TYPE STANDARD TABLE. FIELD-SYMBOLS: <fcat> LIKE LINE OF ep_fieldcatalog. * Get copy of IP_TABLE-structure <-- must be changeable to create salv CREATE DATA lr_dref_tab LIKE ip_table. ASSIGN lr_dref_tab->* TO <tab>. * Create salv --> implicitly create fieldcat TRY. cl_salv_table=>factory( IMPORTING r_salv_table = lo_salv_table CHANGING t_table = <tab> ). lo_salv_columns_table = lo_salv_table->get_columns( ). lt_salv_t_column_ref = lo_salv_columns_table->get( ). CATCH cx_root. * maybe some errorhandling here - just haven't made up my mind yet ENDTRY. * Loop through columns and set relevant fields ( fieldname, texts ) LOOP AT lt_salv_t_column_ref INTO ls_salv_t_column_ref. lo_salv_column_table ?= ls_salv_t_column_ref-r_column. APPEND INITIAL LINE TO ep_fieldcatalog ASSIGNING <fcat>. <fcat>-position = sy-tabix. <fcat>-fieldname = ls_salv_t_column_ref-columnname. <fcat>-scrtext_s = ls_salv_t_column_ref-r_column->get_short_text( ). <fcat>-scrtext_m = ls_salv_t_column_ref-r_column->get_medium_text( ). <fcat>-scrtext_l = ls_salv_t_column_ref-r_column->get_long_text( ). <fcat>-abap_type = lo_salv_column_table->get_ddic_inttype( ). <fcat>-dynpfld = 'X'. " What in the world would we exclude here? " except for the MANDT-field of most tables ( 1st column that is ) IF <fcat>-position = 1 AND lo_salv_column_table->get_ddic_datatype( ) = 'CLNT'. CLEAR <fcat>-dynpfld. ENDIF. * For fields that don't a description ( i.e. defined by "field type i," ) * just use the fieldname as description - that is better than nothing IF <fcat>-scrtext_s IS INITIAL AND <fcat>-scrtext_m IS INITIAL AND <fcat>-scrtext_l IS INITIAL. CONCATENATE 'Col:' <fcat>-fieldname INTO <fcat>-scrtext_l SEPARATED BY space. <fcat>-scrtext_m = <fcat>-scrtext_l. <fcat>-scrtext_s = <fcat>-scrtext_l. ENDIF. ENDLOOP. ENDMETHOD. method IS_CELL_IN_RANGE. DATA lv_column_start TYPE zexcel_cell_column_alpha. DATA lv_column_end TYPE zexcel_cell_column_alpha. DATA lv_row_start TYPE zexcel_cell_row. DATA lv_row_end TYPE zexcel_cell_row. DATA lv_column_start_i TYPE zexcel_cell_column. DATA lv_column_end_i TYPE zexcel_cell_column. DATA lv_column_i TYPE zexcel_cell_column. * Split range and convert columns convert_range2column_a_row( exporting i_range = ip_range 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 ). lv_column_start_i = convert_column2int( ip_column = lv_column_start ). lv_column_end_i = convert_column2int( ip_column = lv_column_end ). lv_column_i = convert_column2int( ip_column = ip_column ). * Check if cell is in range IF lv_column_i >= lv_column_start_i AND lv_column_i <= lv_column_end_i AND ip_row >= lv_row_start AND ip_row <= lv_row_end. rp_in_range = abap_true. ENDIF. endmethod. method NUMBER_TO_EXCEL_STRING. DATA: lv_value_c TYPE c LENGTH 100. WRITE ip_value TO lv_value_c EXPONENT 0 NO-GROUPING NO-SIGN. REPLACE ALL OCCURRENCES OF ',' IN lv_value_c WITH '.'. ep_value = lv_value_c. CONDENSE ep_value. IF ip_value < 0. CONCATENATE '-' ep_value INTO ep_value. ELSEIF ip_value EQ 0. ep_value = '0'. ENDIF. endmethod. method RECURSIVE_CLASS_TO_STRUCT. " # issue 139 * is working for me - but after looking through this coding I guess * I'll rewrite this to a version w/o recursion * This is private an no one using it so far except me, so no need to hurry DATA: descr TYPE REF TO cl_abap_structdescr, wa_component LIKE LINE OF descr->components, attribute_name TYPE fieldname, flag_class TYPE flag. FIELD-SYMBOLS: <field> TYPE any, <fieldx> TYPE any, <attribute> TYPE any. descr ?= cl_abap_structdescr=>describe_by_data( e_target ). LOOP AT descr->components INTO wa_component. * Assign structure and X-structure ASSIGN COMPONENT wa_component-name OF STRUCTURE e_target TO <field>. ASSIGN COMPONENT wa_component-name OF STRUCTURE e_targetx TO <fieldx>. * At least one field in the structure should be marked - otherwise continue with next field CLEAR flag_class. * maybe source is just a structure - try assign component... ASSIGN COMPONENT wa_component-name OF STRUCTURE i_source TO <attribute>. IF sy-subrc <> 0. * not - then it is an attribute of the class - use different assign then CONCATENATE 'i_source->' wa_component-name INTO attribute_name. ASSIGN (attribute_name) TO <attribute>. IF sy-subrc <> 0. EXIT. ENDIF. " Should not happen if structure is built properly - otherwise just exit to create no dumps flag_class = abap_true. ENDIF. CASE wa_component-type_kind. WHEN cl_abap_structdescr=>typekind_struct1 OR cl_abap_structdescr=>typekind_struct2. " Structure --> use recursio * IF flag_class = abap_true. ** Only borders will be passed as unbound references. But since we want to set a value we have to create an instance * ENDIF. zcl_excel_common=>recursive_class_to_struct( EXPORTING i_source = <attribute> CHANGING e_target = <field> e_targetx = <fieldx> ). WHEN OTHERS. <field> = <attribute>. <fieldx> = abap_true. ENDCASE. ENDLOOP. endmethod. METHOD recursive_struct_to_class. " # issue 139 * is working for me - but after looking through this coding I guess * I'll rewrite this to a version w/o recursion * This is private an no one using it so far except me, so no need to hurry DATA: descr TYPE REF TO cl_abap_structdescr, wa_component LIKE LINE OF descr->components, attribute_name TYPE fieldname, flag_class TYPE flag, o_border TYPE REF TO zcl_excel_style_border. FIELD-SYMBOLS: <field> TYPE any, <fieldx> TYPE any, <attribute> TYPE any. descr ?= cl_abap_structdescr=>describe_by_data( i_source ). LOOP AT descr->components INTO wa_component. * Assign structure and X-structure ASSIGN COMPONENT wa_component-name OF STRUCTURE i_source TO <field>. ASSIGN COMPONENT wa_component-name OF STRUCTURE i_sourcex TO <fieldx>. * At least one field in the structure should be marked - otherwise continue with next field CHECK <fieldx> CA abap_true. CLEAR flag_class. * maybe target is just a structure - try assign component... ASSIGN COMPONENT wa_component-name OF STRUCTURE e_target TO <attribute>. IF sy-subrc <> 0. * not - then it is an attribute of the class - use different assign then CONCATENATE 'E_TARGET->' wa_component-name INTO attribute_name. ASSIGN (attribute_name) TO <attribute>. IF sy-subrc <> 0.EXIT.ENDIF. " Should not happen if structure is built properly - otherwise just exit to create no dumps flag_class = abap_true. ENDIF. CASE wa_component-type_kind. WHEN cl_abap_structdescr=>typekind_struct1 OR cl_abap_structdescr=>typekind_struct2. " Structure --> use recursion " To avoid dump with attribute GRADTYPE of class ZCL_EXCEL_STYLE_FILL " quick and really dirty fix -> check the attribute name " Border has to be initialized somewhere else IF wa_component-name EQ 'GRADTYPE'. flag_class = abap_false. ENDIF. IF flag_class = abap_true AND <attribute> IS INITIAL. * Only borders will be passed as unbound references. But since we want to set a value we have to create an instance CREATE OBJECT o_border. <attribute> = o_border. ENDIF. zcl_excel_common=>recursive_struct_to_class( EXPORTING i_source = <field> i_sourcex = <fieldx> CHANGING e_target = <attribute> ). * WHEN cl_abap_structdescr=>typekind_struct2. " String * CHECK <fieldx> = abap_true. " Marked for change * <attribute_s> = <field>. WHEN OTHERS. CHECK <fieldx> = abap_true. " Marked for change <attribute> = <field>. ENDCASE. ENDLOOP. ENDMETHOD. METHOD shift_formula. CONSTANTS: lcv_operators TYPE string VALUE '+-/*^%=<>&, !', lcv_letters TYPE string VALUE 'ABCDEFGHIJKLMNOPQRSTUVWXYZ$', lcv_digits TYPE string VALUE '0123456789', lcv_cell_reference_error TYPE string VALUE '#REF!'. DATA: lv_tcnt TYPE i, " Counter variable lv_tlen TYPE i, " Temp variable length lv_cnt TYPE i, " Counter variable lv_cnt2 TYPE i, " Counter variable lv_offset1 TYPE i, " Character offset lv_numchars TYPE i, " Number of characters counter lv_tchar(1) TYPE c, " Temp character lv_tchar2(1) TYPE c, " Temp character lv_cur_form(2000) TYPE c, " Formula for current cell lv_ref_cell_addr TYPE string, " Reference cell address lv_tcol1 TYPE string, " Temp column letter lv_tcol2 TYPE string, " Temp column letter lv_tcoln TYPE i, " Temp column number lv_trow1 TYPE string, " Temp row number lv_trow2 TYPE string, " Temp row number lv_flen TYPE i, " Length of reference formula lv_tlen2 TYPE i, " Temp variable length lv_substr1 TYPE string, " Substring variable lv_abscol TYPE string, " Absolute column symbol lv_absrow TYPE string, " Absolute row symbol lv_errormessage TYPE string. *--------------------------------------------------------------------* * When copying a cell in EXCEL to another cell any inherent formulas * are copied as well. Cell-references in the formula are being adjusted * by the distance of the new cell to the original one *--------------------------------------------------------------------* * §1 Parse reference formula character by character * §2 Identify Cell-references * §3 Shift cell-reference * §4 Build resulting formula *--------------------------------------------------------------------* *--------------------------------------------------------------------* * No distance --> Reference = resulting cell/formula *--------------------------------------------------------------------* IF iv_shift_cols = 0 AND iv_shift_rows = 0. ev_resulting_formula = iv_reference_formula. EXIT. " done ENDIF. lv_flen = STRLEN( iv_reference_formula ). lv_numchars = 1. *--------------------------------------------------------------------* * §1 Parse reference formula character by character *--------------------------------------------------------------------* DO lv_flen TIMES. CLEAR: lv_tchar, lv_substr1, lv_ref_cell_addr. lv_cnt2 = lv_cnt + 1. IF lv_cnt2 > lv_flen. EXIT. " Done ENDIF. *--------------------------------------------------------------------* * Here we have the current character in the formula *--------------------------------------------------------------------* lv_tchar = iv_reference_formula+lv_cnt(1). *--------------------------------------------------------------------* * Operators or opening parenthesis will separate possible cellreferences *--------------------------------------------------------------------* IF ( lv_tchar CA lcv_operators OR lv_tchar CA '(' ) AND lv_cnt2 = 1. lv_substr1 = iv_reference_formula+lv_offset1(1). CONCATENATE lv_cur_form lv_substr1 INTO lv_cur_form. lv_cnt = lv_cnt + 1. lv_offset1 = lv_cnt. lv_numchars = 1. CONTINUE. " --> next character in formula can be analyzed ENDIF. *--------------------------------------------------------------------* * Quoted literal text holds no cell reference --> advance to end of text *--------------------------------------------------------------------* IF lv_tchar EQ '"'. lv_cnt = lv_cnt + 1. lv_numchars = lv_numchars + 1. lv_tchar = iv_reference_formula+lv_cnt(1). WHILE lv_tchar NE '"'. lv_cnt = lv_cnt + 1. lv_numchars = lv_numchars + 1. lv_tchar = iv_reference_formula+lv_cnt(1). ENDWHILE. lv_cnt2 = lv_cnt + 1. lv_substr1 = iv_reference_formula+lv_offset1(lv_numchars). CONCATENATE lv_cur_form lv_substr1 INTO lv_cur_form. lv_cnt = lv_cnt + 1. IF lv_cnt = lv_flen. EXIT. ENDIF. lv_offset1 = lv_cnt. lv_numchars = 1. lv_tchar = iv_reference_formula+lv_cnt(1). lv_cnt2 = lv_cnt + 1. CONTINUE. " --> next character in formula can be analyzed ENDIF. *--------------------------------------------------------------------* * Operators or parenthesis or last character in formula will separate possible cellreferences *--------------------------------------------------------------------* IF lv_tchar CA lcv_operators OR lv_tchar CA '():' OR lv_cnt2 = lv_flen. IF lv_cnt > 0. lv_substr1 = iv_reference_formula+lv_offset1(lv_numchars). *--------------------------------------------------------------------* * Check for text concatenation and functions *--------------------------------------------------------------------* IF ( lv_tchar CA lcv_operators AND lv_tchar EQ lv_substr1 ) OR lv_tchar EQ '('. CONCATENATE lv_cur_form lv_substr1 INTO lv_cur_form. lv_cnt = lv_cnt + 1. lv_offset1 = lv_cnt. lv_cnt2 = lv_cnt + 1. lv_numchars = 1. CONTINUE. " --> next character in formula can be analyzed ENDIF. lv_tlen = lv_cnt2 - lv_offset1. *--------------------------------------------------------------------* * Exclude mathematical operators and closing parentheses *--------------------------------------------------------------------* IF lv_tchar CA lcv_operators OR lv_tchar CA ':)'. IF lv_cnt2 = lv_flen AND lv_numchars = 1. CONCATENATE lv_cur_form lv_substr1 INTO lv_cur_form. lv_cnt = lv_cnt + 1. lv_offset1 = lv_cnt. lv_cnt2 = lv_cnt + 1. lv_numchars = 1. CONTINUE. " --> next character in formula can be analyzed ELSE. lv_tlen = lv_tlen - 1. ENDIF. ENDIF. *--------------------------------------------------------------------* * Capture reference cell address *--------------------------------------------------------------------* TRY. MOVE: iv_reference_formula+lv_offset1(lv_tlen) TO lv_ref_cell_addr. "Ref cell address CATCH cx_root. lv_errormessage = 'Internal error in Class ZCL_EXCEL_COMMON Method SHIFT_FORMULA Spot 1 '. " Change to messageclass if possible zcx_excel=>raise_text( lv_errormessage ). ENDTRY. *--------------------------------------------------------------------* * Split cell address into characters and numbers *--------------------------------------------------------------------* CLEAR: lv_tlen, lv_tcnt, lv_tcol1, lv_trow1. lv_tlen = STRLEN( lv_ref_cell_addr ). IF lv_tlen <> 0. CLEAR: lv_tcnt. DO lv_tlen TIMES. CLEAR: lv_tchar2. lv_tchar2 = lv_ref_cell_addr+lv_tcnt(1). IF lv_tchar2 CA lcv_letters. CONCATENATE lv_tcol1 lv_tchar2 INTO lv_tcol1. ELSEIF lv_tchar2 CA lcv_digits. CONCATENATE lv_trow1 lv_tchar2 INTO lv_trow1. ENDIF. lv_tcnt = lv_tcnt + 1. ENDDO. ENDIF. *--------------------------------------------------------------------* * Check for invalid cell address *--------------------------------------------------------------------* IF lv_tcol1 IS INITIAL OR lv_trow1 IS INITIAL. CONCATENATE lv_cur_form lv_substr1 INTO lv_cur_form. lv_cnt = lv_cnt + 1. lv_offset1 = lv_cnt. lv_cnt2 = lv_cnt + 1. lv_numchars = 1. CONTINUE. ENDIF. *--------------------------------------------------------------------* * Check for range names *--------------------------------------------------------------------* CLEAR: lv_tlen. lv_tlen = STRLEN( lv_tcol1 ). IF lv_tlen GT 3. CONCATENATE lv_cur_form lv_substr1 INTO lv_cur_form. lv_cnt = lv_cnt + 1. lv_offset1 = lv_cnt. lv_cnt2 = lv_cnt + 1. lv_numchars = 1. CONTINUE. ENDIF. *--------------------------------------------------------------------* * Check for valid row *--------------------------------------------------------------------* IF lv_trow1 GT 1048576. CONCATENATE lv_cur_form lv_substr1 INTO lv_cur_form. lv_cnt = lv_cnt + 1. lv_offset1 = lv_cnt. lv_cnt2 = lv_cnt + 1. lv_numchars = 1. CONTINUE. ENDIF. *--------------------------------------------------------------------* * Check for absolute column or row reference *--------------------------------------------------------------------* CLEAR: lv_tcol2, lv_trow2, lv_abscol, lv_absrow. lv_tlen2 = STRLEN( lv_tcol1 ) - 1. IF lv_tcol1 IS NOT INITIAL. lv_abscol = lv_tcol1(1). ENDIF. IF lv_tlen2 GE 0. lv_absrow = lv_tcol1+lv_tlen2(1). ENDIF. IF lv_abscol EQ '$' AND lv_absrow EQ '$'. lv_tlen2 = lv_tlen2 - 1. IF lv_tlen2 > 0. lv_tcol1 = lv_tcol1+1(lv_tlen2). ENDIF. lv_tlen2 = lv_tlen2 + 1. ELSEIF lv_abscol EQ '$'. lv_tcol1 = lv_tcol1+1(lv_tlen2). ELSEIF lv_absrow EQ '$'. lv_tcol1 = lv_tcol1(lv_tlen2). ENDIF. *--------------------------------------------------------------------* * Check for valid column *--------------------------------------------------------------------* TRY. lv_tcoln = zcl_excel_common=>convert_column2int( lv_tcol1 ) + iv_shift_cols. CATCH zcx_excel. CONCATENATE lv_cur_form lv_substr1 INTO lv_cur_form. lv_cnt = lv_cnt + 1. lv_offset1 = lv_cnt. lv_cnt2 = lv_cnt + 1. lv_numchars = 1. CONTINUE. ENDTRY. *--------------------------------------------------------------------* * Check whether there is a referencing problem *--------------------------------------------------------------------* lv_trow2 = lv_trow1 + iv_shift_rows. IF ( lv_tcoln < 1 AND lv_abscol <> '$' ) " Maybe we should add here max-column and max row-tests as well. OR ( lv_trow2 < 1 AND lv_absrow <> '$' ). " Check how EXCEL behaves in this case *--------------------------------------------------------------------* * Referencing problem encountered --> set error *--------------------------------------------------------------------* CONCATENATE lv_cur_form lcv_cell_reference_error INTO lv_cur_form. ELSE. *--------------------------------------------------------------------* * No referencing problems --> adjust row and column *--------------------------------------------------------------------* *--------------------------------------------------------------------* * Adjust column *--------------------------------------------------------------------* IF lv_abscol EQ '$'. CONCATENATE lv_cur_form lv_abscol lv_tcol1 INTO lv_cur_form. ELSEIF iv_shift_cols EQ 0. CONCATENATE lv_cur_form lv_tcol1 INTO lv_cur_form. ELSE. TRY. lv_tcol2 = zcl_excel_common=>convert_column2alpha( lv_tcoln ). CONCATENATE lv_cur_form lv_tcol2 INTO lv_cur_form. CATCH zcx_excel. CONCATENATE lv_cur_form lv_substr1 INTO lv_cur_form. lv_cnt = lv_cnt + 1. lv_offset1 = lv_cnt. lv_cnt2 = lv_cnt + 1. lv_numchars = 1. CONTINUE. ENDTRY. ENDIF. *--------------------------------------------------------------------* * Adjust row *--------------------------------------------------------------------* IF lv_absrow EQ '$'. CONCATENATE lv_cur_form lv_absrow lv_trow1 INTO lv_cur_form. ELSEIF iv_shift_rows = 0. CONCATENATE lv_cur_form lv_trow1 INTO lv_cur_form. * elseif lv_trow2 < 1. * CONCATENATE lv_cur_form lc_cell_reference_error INTO lv_cur_form. ELSE. CONCATENATE lv_cur_form lv_trow2 INTO lv_cur_form. ENDIF. ENDIF. lv_numchars = 0. IF lv_tchar CA lcv_operators OR lv_tchar CA ':)'. CONCATENATE lv_cur_form lv_tchar INTO lv_cur_form. ENDIF. lv_offset1 = lv_cnt2. ENDIF. ENDIF. lv_numchars = lv_numchars + 1. lv_cnt = lv_cnt + 1. lv_cnt2 = lv_cnt + 1. ENDDO. *--------------------------------------------------------------------* * Return resulting formula *--------------------------------------------------------------------* IF lv_cur_form IS NOT INITIAL. MOVE lv_cur_form TO ev_resulting_formula. ENDIF. ENDMETHOD. method SHL01. DATA: lv_bit TYPE i, lv_curr_pos TYPE i VALUE 2, lv_prev_pos TYPE i VALUE 1. DO 15 TIMES. GET BIT lv_curr_pos OF i_pwd_hash INTO lv_bit. SET BIT lv_prev_pos OF r_pwd_hash TO lv_bit. ADD 1 TO lv_curr_pos. ADD 1 TO lv_prev_pos. ENDDO. SET BIT 16 OF r_pwd_hash TO 0. endmethod. method SHR14. DATA: lv_bit TYPE i, lv_curr_pos TYPE i, lv_next_pos TYPE i. r_pwd_hash = i_pwd_hash. DO 14 TIMES. lv_curr_pos = 15. lv_next_pos = 16. DO 15 TIMES. GET BIT lv_curr_pos OF r_pwd_hash INTO lv_bit. SET BIT lv_next_pos OF r_pwd_hash TO lv_bit. SUBTRACT 1 FROM lv_curr_pos. SUBTRACT 1 FROM lv_next_pos. ENDDO. SET BIT 1 OF r_pwd_hash TO 0. ENDDO. endmethod. method SPLIT_FILE. DATA: lt_hlp TYPE TABLE OF text255, ls_hlp TYPE text255. DATA: lf_ext(10) TYPE c, lf_dot_ext(10) TYPE c. DATA: lf_anz TYPE i, lf_len TYPE i. ** --------------------------------------------------------------------- CLEAR: lt_hlp, ep_file, ep_extension, ep_dotextension. ** Split the whole file at '.' SPLIT ip_file AT '.' INTO TABLE lt_hlp. ** get the extenstion from the last line of table DESCRIBE TABLE lt_hlp LINES lf_anz. IF lf_anz <= 1. ep_file = ip_file. EXIT. ENDIF. READ TABLE lt_hlp INTO ls_hlp INDEX lf_anz. ep_extension = ls_hlp. lf_ext = ls_hlp. IF NOT lf_ext IS INITIAL. CONCATENATE '.' lf_ext INTO lf_dot_ext. ENDIF. ep_dotextension = lf_dot_ext. ** get only the filename lf_len = strlen( ip_file ) - strlen( lf_dot_ext ). IF lf_len > 0. ep_file = ip_file(lf_len). ENDIF. endmethod. method STRUCTURE_CASE. DATA: lt_comp_str TYPE abap_component_tab. CASE is_component-type->kind. WHEN cl_abap_typedescr=>kind_elem. "E Elementary Type INSERT is_component INTO TABLE xt_components. WHEN cl_abap_typedescr=>kind_table. "T Table INSERT is_component INTO TABLE xt_components. WHEN cl_abap_typedescr=>kind_struct. "S Structure lt_comp_str = structure_recursive( is_component = is_component ). INSERT LINES OF lt_comp_str INTO TABLE xt_components. WHEN OTHERS. "cl_abap_typedescr=>kind_ref or cl_abap_typedescr=>kind_class or cl_abap_typedescr=>kind_intf. * We skip it. for now. ENDCASE. endmethod. method STRUCTURE_RECURSIVE. DATA: lo_struct TYPE REF TO cl_abap_structdescr, lt_components TYPE abap_component_tab, ls_components TYPE abap_componentdescr. REFRESH rt_components. lo_struct ?= is_component-type. lt_components = lo_struct->get_components( ). LOOP AT lt_components INTO ls_components. structure_case( EXPORTING is_component = ls_components CHANGING xt_components = rt_components ) . ENDLOOP. endmethod. method TIME_TO_EXCEL_STRING. DATA: lv_seconds_in_day TYPE i, lv_day_fraction TYPE f, lc_time_baseline TYPE t VALUE '000000', lc_seconds_in_day TYPE i VALUE 86400. lv_seconds_in_day = ip_value - lc_time_baseline. lv_day_fraction = lv_seconds_in_day / lc_seconds_in_day. ep_value = zcl_excel_common=>number_to_excel_string( ip_value = lv_day_fraction ). endmethod. method UNESCAPE_STRING. CONSTANTS lcv_regex TYPE string VALUE `^'[^']` & `|` & " Beginning single ' OR `[^']'$` & `|` & " Trailing single ' OR `[^']'[^']`. " Single ' somewhere in between DATA: lv_errormessage TYPE string. " Can't pass '...'(abc) to exception-class *--------------------------------------------------------------------* * This method is used to extract the "real" string from an escaped string. * An escaped string can be identified by a beginning ' which must be * accompanied by a trailing ' * All '' in between beginning and trailing ' are treated as single ' *--------------------------------------------------------------------* *--------------------------------------------------------------------* * When allowing clike-input parameters we might encounter trailing * "real" blanks . These are automatically eliminated when moving * the input parameter to a string. *--------------------------------------------------------------------* ev_unescaped_string = iv_escaped. " Pass through if not escaped CHECK ev_unescaped_string IS NOT INITIAL. " Nothing to do if empty CHECK ev_unescaped_string(1) = `'`. " Nothing to do if not escaped *--------------------------------------------------------------------* * Remove leading and trailing ' *--------------------------------------------------------------------* REPLACE REGEX `^'(.*)'$` IN ev_unescaped_string WITH '$1'. IF sy-subrc <> 0. lv_errormessage = 'Input not properly escaped - &'(002). zcx_excel=>raise_text( lv_errormessage ). ENDIF. *--------------------------------------------------------------------* * Any remaining single ' should not be here *--------------------------------------------------------------------* FIND REGEX lcv_regex IN ev_unescaped_string. IF sy-subrc = 0. lv_errormessage = 'Input not properly escaped - &'(002). zcx_excel=>raise_text( lv_errormessage ). ENDIF. *--------------------------------------------------------------------* * Replace '' with ' *--------------------------------------------------------------------* REPLACE ALL OCCURRENCES OF `''` IN ev_unescaped_string WITH `'`. endmethod. ENDCLASS.
[ 4871, 1168, 5097, 62, 6369, 34, 3698, 62, 9858, 27857, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 6369, 34, 3698, 62, 9858, 27857, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 11377, 2665, 13, 628, 220, 38491, 327, 62, 6369, 34, 3698, 62, 33, 1921, 3698, 8881, 62, 35, 6158, 2099, 360, 1988, 705, 1129, 18005, 486, 4458, 25113, 2943, 5626, 13918, 198, 220, 1398, 12, 7890, 327, 62, 6369, 34, 3698, 62, 41359, 37, 13752, 62, 27977, 28480, 2099, 17828, 16, 1988, 25307, 13, 25113, 2943, 5626, 13918, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 366, 764, 198, 220, 38491, 327, 62, 6369, 34, 3698, 62, 9693, 36, 2767, 62, 22921, 62, 25154, 2099, 17828, 19, 1988, 1467, 22842, 13, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 6369, 34, 3698, 62, 9693, 36, 2767, 62, 23678, 62, 25154, 2099, 17828, 19, 1988, 352, 13, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 6369, 34, 3698, 62, 9693, 36, 2767, 62, 22921, 62, 49, 3913, 2099, 17828, 19, 1988, 838, 2780, 37452, 13, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 6369, 34, 3698, 62, 9693, 36, 2767, 62, 23678, 62, 49, 3913, 2099, 17828, 19, 1988, 352, 13, 25113, 2943, 5626, 13918, 198, 220, 1398, 12, 7890, 327, 62, 4303, 49, 1921, 62, 1677, 2099, 49068, 1921, 1988, 705, 36, 4458, 25113, 2943, 5626, 13918, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 366, 764, 198, 220, 1398, 12, 7890, 440, 62, 10943, 53, 2099, 1006, 284, 7852, 62, 6242, 2969, 62, 10943, 53, 62, 12425, 62, 5222, 764, 198, 220, 38491, 327, 62, 6369, 34, 3698, 62, 48104, 62, 2538, 2969, 62, 56, 17133, 2099, 360, 1988, 705, 1129, 830, 23815, 4458, 25113, 2943, 5626, 13918, 198, 220, 1398, 12, 7890, 327, 62, 55, 6561, 55, 62, 25664, 62, 46700, 5781, 2099, 19269, 2751, 1988, 705, 3109, 5276, 5521, 2070, 20789, 13, 87, 7278, 87, 14726, 24620, 87, 7278, 87, 91, 4458, 25113, 2943, 5626, 13918, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 366, 764, 628, 220, 1398, 12, 24396, 82, 42715, 62, 10943, 46126, 1581, 764, 198, 220, 1398, 12, 24396, 82, 22196, 34, 7112, 12473, 62, 46126, 11335, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 9399, 62, 46126, 2099, 1006, 284, 7852, 62, 6242, 2969, 62, 46126, 30910, 9419, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 14181, 62, 8068, 11015, 8, 2099, 360, 8068, 40, 3698, 5258, 764, 198, 220, 1398, 12, 24396, 82, 7102, 15858, 62, 25154, 5883, 45, 17, 1847, 47, 7801, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 4061, 62, 25154, 5883, 45, 2099, 23749, 16437, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 8905, 62, 25154, 5883, 45, 8, 2099, 1168, 6369, 34, 3698, 62, 5222, 3069, 62, 25154, 5883, 45, 62, 1847, 47, 7801, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 34, 55, 62, 6369, 34, 3698, 764, 198, 220, 1398, 12, 24396, 82, 7102, 15858, 62, 25154, 5883, 45, 17, 12394, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 4061, 62, 25154, 5883, 45, 2099, 23749, 16437, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 8905, 62, 25154, 5883, 45, 8, 2099, 1168, 6369, 34, 3698, 62, 5222, 3069, 62, 25154, 5883, 45, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 34, 55, 62, 6369, 34, 3698, 764, 198, 220, 1398, 12, 24396, 82, 7102, 15858, 62, 25154, 5883, 24723, 3913, 17, 25154, 5883, 45, 62, 32, 62, 49, 3913, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 25154, 5883, 24723, 3913, 2099, 43749, 7336, 198, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 25154, 5883, 45, 2099, 1168, 6369, 34, 3698, 62, 5222, 3069, 62, 25154, 5883, 45, 62, 1847, 47, 7801, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 49, 3913, 2099, 1168, 6369, 34, 3698, 62, 5222, 3069, 62, 49, 3913, 764, 198, 220, 1398, 12, 24396, 82, 7102, 15858, 62, 49, 27746, 17, 25154, 5883, 45, 62, 32, 62, 49, 3913, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 49, 27746, 2099, 43749, 7336, 198, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 25154, 5883, 45, 62, 2257, 7227, 2099, 1168, 6369, 34, 3698, 62, 5222, 3069, 62, 25154, 5883, 45, 62, 1847, 47, 7801, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 25154, 5883, 45, 62, 10619, 2099, 1168, 6369, 34, 3698, 62, 5222, 3069, 62, 25154, 5883, 45, 62, 1847, 47, 7801, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 49, 3913, 62, 2257, 7227, 2099, 1168, 6369, 34, 3698, 62, 5222, 3069, 62, 49, 3913, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 49, 3913, 62, 10619, 2099, 1168, 6369, 34, 3698, 62, 5222, 3069, 62, 49, 3913, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 9693, 36, 2767, 2099, 43749, 7336, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 34, 55, 62, 6369, 34, 3698, 764, 198, 220, 1398, 12, 24396, 82, 360, 6158, 62, 10468, 62, 6369, 34, 3698, 62, 18601, 2751, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 4061, 62, 39488, 2099, 360, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 8905, 62, 39488, 8, 2099, 1168, 6369, 34, 3698, 62, 5222, 3069, 62, 39488, 764, 198, 220, 1398, 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, 1, 1, 1, 1, 1, 1, 1, 1 ]
* See https://github.com/se38/abapFaker ******************************************************************************** * The MIT License (MIT) * * Copyright (c) 2018 abapFaker Contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. ******************************************************************************** CLASS zcl_faker_job_default DEFINITION PUBLIC INHERITING FROM zcl_faker_provider_job CREATE PUBLIC . PUBLIC SECTION. METHODS constructor IMPORTING i_faker TYPE REF TO zcl_faker. PRIVATE SECTION. ENDCLASS. CLASS zcl_faker_job_default IMPLEMENTATION. METHOD constructor. super->constructor( i_faker ). _job_titles = VALUE #( ( |Developer| ) ( |Engineer| ) ( |Administrator| ) ). ENDMETHOD. ENDCLASS.
[ 9, 4091, 3740, 1378, 12567, 13, 785, 14, 325, 2548, 14, 397, 499, 37, 3110, 198, 17174, 17174, 8412, 198, 9, 383, 17168, 13789, 357, 36393, 8, 198, 9, 198, 9, 15069, 357, 66, 8, 2864, 450, 499, 37, 3110, 25767, 669, 198, 9, 198, 9, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 9, 286, 428, 3788, 290, 3917, 10314, 3696, 357, 1169, 366, 25423, 12340, 284, 1730, 198, 9, 287, 262, 10442, 1231, 17504, 11, 1390, 1231, 17385, 262, 2489, 198, 9, 284, 779, 11, 4866, 11, 13096, 11, 20121, 11, 7715, 11, 14983, 11, 850, 43085, 11, 290, 14, 273, 3677, 198, 9, 9088, 286, 262, 10442, 11, 290, 284, 8749, 6506, 284, 4150, 262, 10442, 318, 198, 9, 30760, 284, 466, 523, 11, 2426, 284, 262, 1708, 3403, 25, 198, 9, 198, 9, 383, 2029, 6634, 4003, 290, 428, 7170, 4003, 2236, 307, 3017, 287, 477, 198, 9, 9088, 393, 8904, 16690, 286, 262, 10442, 13, 198, 9, 198, 9, 3336, 47466, 3180, 36592, 2389, 1961, 366, 1921, 3180, 1600, 42881, 34764, 56, 3963, 15529, 509, 12115, 11, 7788, 32761, 6375, 198, 9, 8959, 49094, 11, 47783, 2751, 21728, 5626, 40880, 5390, 3336, 34764, 11015, 3963, 34482, 3398, 1565, 5603, 25382, 11, 198, 9, 376, 46144, 7473, 317, 16652, 2149, 37232, 33079, 48933, 5357, 44521, 1268, 10913, 2751, 12529, 13, 3268, 8005, 49261, 50163, 3336, 198, 9, 37195, 20673, 6375, 27975, 38162, 9947, 367, 15173, 4877, 9348, 43031, 19146, 7473, 15529, 47666, 3955, 11, 29506, 25552, 6375, 25401, 198, 9, 43031, 25382, 11, 7655, 2767, 16879, 3268, 3537, 40282, 3963, 27342, 10659, 11, 309, 9863, 6375, 25401, 54, 24352, 11, 5923, 1797, 2751, 16034, 11, 198, 9, 16289, 3963, 6375, 3268, 7102, 45, 24565, 13315, 3336, 47466, 6375, 3336, 23210, 6375, 25401, 5550, 1847, 20754, 3268, 3336, 198, 9, 47466, 13, 198, 17174, 17174, 8412, 198, 198, 31631, 1976, 565, 62, 69, 3110, 62, 21858, 62, 12286, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 69, 3110, 62, 15234, 1304, 62, 21858, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 1312, 62, 69, 3110, 41876, 4526, 37, 5390, 1976, 565, 62, 69, 3110, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 69, 3110, 62, 21858, 62, 12286, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 1312, 62, 69, 3110, 6739, 628, 220, 220, 220, 4808, 21858, 62, 83, 30540, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 357, 930, 45351, 91, 1267, 198, 220, 220, 220, 220, 220, 357, 930, 13798, 263, 91, 1267, 198, 220, 220, 220, 220, 220, 357, 930, 41862, 12392, 91, 1267, 198, 220, 220, 220, 6739, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
********************************************************************** * UTIL ********************************************************************** CLASS lcl_nodes_helper DEFINITION FINAL. PUBLIC SECTION. DATA mt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt READ-ONLY. METHODS add IMPORTING iv_str TYPE string. METHODS sorted RETURNING VALUE(rt_nodes) TYPE zif_abapgit_ajson=>ty_nodes_ts. ENDCLASS. CLASS lcl_nodes_helper IMPLEMENTATION. METHOD add. FIELD-SYMBOLS <n> LIKE LINE OF mt_nodes. DATA lv_children TYPE string. DATA lv_index TYPE string. APPEND INITIAL LINE TO mt_nodes ASSIGNING <n>. SPLIT iv_str AT '|' INTO <n>-path <n>-name <n>-type <n>-value lv_index lv_children. CONDENSE <n>-path. CONDENSE <n>-name. CONDENSE <n>-type. CONDENSE <n>-value. <n>-index = lv_index. <n>-children = lv_children. ENDMETHOD. METHOD sorted. rt_nodes = mt_nodes. ENDMETHOD. ENDCLASS. ********************************************************************** * PARSER ********************************************************************** CLASS ltcl_parser_test DEFINITION FINAL FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PUBLIC SECTION. CLASS-METHODS sample_json IMPORTING iv_separator TYPE string OPTIONAL RETURNING VALUE(rv_json) TYPE string. ENDCLASS. CLASS ltcl_parser_test IMPLEMENTATION. METHOD sample_json. rv_json = '{\n' && ' "string": "abc",\n' && ' "number": 123,\n' && ' "float": 123.45,\n' && ' "boolean": true,\n' && ' "false": false,\n' && ' "null": null,\n' && ' "date": "2020-03-15",\n' && ' "issues": [\n' && ' {\n' && ' "message": "Indentation problem ...",\n' && ' "key": "indentation",\n' && ' "start": {\n' && ' "row": 4,\n' && ' "col": 3\n' && ' },\n' && ' "end": {\n' && ' "row": 4,\n' && ' "col": 26\n' && ' },\n' && ' "filename": "./zxxx.prog.abap"\n' && ' },\n' && ' {\n' && ' "message": "Remove space before XXX",\n' && ' "key": "space_before_dot",\n' && ' "start": {\n' && ' "row": 3,\n' && ' "col": 21\n' && ' },\n' && ' "end": {\n' && ' "row": 3,\n' && ' "col": 22\n' && ' },\n' && ' "filename": "./zxxx.prog.abap"\n' && ' }\n' && ' ]\n' && '}'. REPLACE ALL OCCURRENCES OF '\n' IN rv_json WITH iv_separator. ENDMETHOD. ENDCLASS. ********************************************************************** * JSON UTILITIES ********************************************************************** CLASS ltcl_json_utils DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL. PRIVATE SECTION. METHODS json_diff FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS json_diff_types FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS json_diff_arrays FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS json_merge FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS json_sort FOR TESTING RAISING zcx_abapgit_ajson_error. ENDCLASS. CLASS ltcl_json_utils IMPLEMENTATION. METHOD json_diff. DATA: lv_json TYPE string, lo_util TYPE REF TO zcl_abapgit_ajson_utilities, lo_insert TYPE REF TO zif_abapgit_ajson, lo_delete TYPE REF TO zif_abapgit_ajson, lo_change TYPE REF TO zif_abapgit_ajson, lo_insert_exp TYPE REF TO lcl_nodes_helper, lo_delete_exp TYPE REF TO lcl_nodes_helper, lo_change_exp TYPE REF TO lcl_nodes_helper. lv_json = '{\n' && ' "string": "abc",\n' && " no changes ' "number": 789,\n' && " changed value ' "float": 123.45,\n' && ' "boolean": "true",\n' && " changed type ' "true": true,\n' && " insert * ' "false": false,\n' && " delete ' "null": null,\n' && ' "date": "2020-03-15",\n' && ' "issues": [\n' && ' {\n' && ' "message": "Indentation problem ...",\n' && ' "key": "indentation",\n' && ' "start": {\n' && ' "row": 5,\n' && " array change ' "col": 3\n' && ' },\n' && ' "end": {\n' && ' "new": 1,\n' && " array insert * ' "row": 4,\n' && " array delete ' "col": 26\n' && ' },\n' && ' "filename": "./zxxx.prog.abap"\n' && ' },\n' && ' {\n' && ' "message": "Remove space before XXX",\n' && ' "key": "space_before_dot",\n' && ' "start": {\n' && ' "row": 3,\n' && ' "col": 21\n' && ' },\n' && ' "end": {\n' && ' "row": 3,\n' && ' "col": 22\n' && ' },\n' && ' "filename": "./zxxx.prog.abap"\n' && ' }\n' && ' ]\n' && '}'. REPLACE ALL OCCURRENCES OF '\n' IN lv_json WITH cl_abap_char_utilities=>newline. CREATE OBJECT lo_insert_exp. lo_insert_exp->add( ' | |object | |0|3' ). lo_insert_exp->add( '/ |boolean |str |true |0|0' ). " changed type (insert new) lo_insert_exp->add( '/ |issues |array | |0|1' ). lo_insert_exp->add( '/ |true |bool |true |0|0' ). " insert lo_insert_exp->add( '/issues/ |1 |object | |1|1' ). lo_insert_exp->add( '/issues/1/ |end |object | |0|1' ). lo_insert_exp->add( '/issues/1/end/ |new |num |1 |0|0' ). " array insert CREATE OBJECT lo_delete_exp. lo_delete_exp->add( ' | |object | |0|3' ). lo_delete_exp->add( '/ |boolean |bool |true |0|0' ). " changed type (delete old) lo_delete_exp->add( '/ |false |bool |false |0|0' ). " delete lo_delete_exp->add( '/ |issues |array | |0|1' ). lo_delete_exp->add( '/issues/ |1 |object | |1|1' ). lo_delete_exp->add( '/issues/1/ |end |object | |0|1' ). lo_delete_exp->add( '/issues/1/end/ |row |num |4 |0|0' ). " array delete CREATE OBJECT lo_change_exp. lo_change_exp->add( ' | |object | |0|2' ). lo_change_exp->add( '/ |issues |array | |0|1' ). lo_change_exp->add( '/ |number |num |789 |0|0' ). " changed value lo_change_exp->add( '/issues/ |1 |object | |1|1' ). lo_change_exp->add( '/issues/1/ |start |object | |0|1' ). lo_change_exp->add( '/issues/1/start/|row |num |5 |0|0' ). " array change CREATE OBJECT lo_util. lo_util->diff( EXPORTING iv_json_a = ltcl_parser_test=>sample_json( ) iv_json_b = lv_json IMPORTING eo_insert = lo_insert eo_delete = lo_delete eo_change = lo_change ). cl_abap_unit_assert=>assert_equals( act = lo_insert->mt_json_tree exp = lo_insert_exp->mt_nodes ). cl_abap_unit_assert=>assert_equals( act = lo_delete->mt_json_tree exp = lo_delete_exp->mt_nodes ). cl_abap_unit_assert=>assert_equals( act = lo_change->mt_json_tree exp = lo_change_exp->mt_nodes ). ENDMETHOD. METHOD json_diff_types. DATA: lv_json_a TYPE string, lv_json_b TYPE string, lo_util TYPE REF TO zcl_abapgit_ajson_utilities, lo_insert TYPE REF TO zif_abapgit_ajson, lo_delete TYPE REF TO zif_abapgit_ajson, lo_change TYPE REF TO zif_abapgit_ajson, lo_insert_exp TYPE REF TO lcl_nodes_helper, lo_delete_exp TYPE REF TO lcl_nodes_helper. " Change single value to array lv_json_a = '{\n' && ' "string": "abc",\n' && ' "number": 123\n' && '}'. lv_json_b = '{\n' && ' "string": [\n' && ' "a",\n' && ' "b",\n' && ' "c"\n' && ' ],\n' && ' "number": 123\n' && '}'. REPLACE ALL OCCURRENCES OF '\n' IN lv_json_a WITH cl_abap_char_utilities=>newline. REPLACE ALL OCCURRENCES OF '\n' IN lv_json_b WITH cl_abap_char_utilities=>newline. CREATE OBJECT lo_insert_exp. lo_insert_exp->add( ' | |object | |0|1' ). lo_insert_exp->add( '/ |string |array | |0|3' ). lo_insert_exp->add( '/string/ |1 |str |a |1|0' ). lo_insert_exp->add( '/string/ |2 |str |b |2|0' ). lo_insert_exp->add( '/string/ |3 |str |c |3|0' ). CREATE OBJECT lo_delete_exp. lo_delete_exp->add( ' | |object | |0|1' ). lo_delete_exp->add( '/ |string |str |abc |0|0' ). CREATE OBJECT lo_util. lo_util->diff( EXPORTING iv_json_a = lv_json_a iv_json_b = lv_json_b IMPORTING eo_insert = lo_insert eo_delete = lo_delete eo_change = lo_change ). cl_abap_unit_assert=>assert_equals( act = lo_insert->mt_json_tree exp = lo_insert_exp->mt_nodes ). cl_abap_unit_assert=>assert_equals( act = lo_delete->mt_json_tree exp = lo_delete_exp->mt_nodes ). cl_abap_unit_assert=>assert_equals( act = lines( lo_change->mt_json_tree ) exp = 0 ). " Change array to single value lo_util->diff( EXPORTING iv_json_a = lv_json_b iv_json_b = lv_json_a IMPORTING eo_insert = lo_insert eo_delete = lo_delete eo_change = lo_change ). cl_abap_unit_assert=>assert_equals( act = lo_insert->mt_json_tree exp = lo_delete_exp->mt_nodes ). cl_abap_unit_assert=>assert_equals( act = lo_delete->mt_json_tree exp = lo_insert_exp->mt_nodes ). cl_abap_unit_assert=>assert_equals( act = lines( lo_change->mt_json_tree ) exp = 0 ). ENDMETHOD. METHOD json_diff_arrays. DATA: lv_json_a TYPE string, lv_json_b TYPE string, lo_util TYPE REF TO zcl_abapgit_ajson_utilities, lo_insert TYPE REF TO zif_abapgit_ajson, lo_delete TYPE REF TO zif_abapgit_ajson, lo_change TYPE REF TO zif_abapgit_ajson, lo_insert_exp TYPE REF TO lcl_nodes_helper. " Add empty array lv_json_a = '{\n' && ' "number": 123\n' && '}'. lv_json_b = '{\n' && ' "names": [],\n' && ' "number": 123\n' && '}'. REPLACE ALL OCCURRENCES OF '\n' IN lv_json_a WITH cl_abap_char_utilities=>newline. REPLACE ALL OCCURRENCES OF '\n' IN lv_json_b WITH cl_abap_char_utilities=>newline. CREATE OBJECT lo_util. " Empty arrays are ignored by default lo_util->diff( EXPORTING iv_json_a = lv_json_a iv_json_b = lv_json_b IMPORTING eo_insert = lo_insert eo_delete = lo_delete eo_change = lo_change ). cl_abap_unit_assert=>assert_equals( act = lines( lo_insert->mt_json_tree ) exp = 0 ). cl_abap_unit_assert=>assert_equals( act = lines( lo_delete->mt_json_tree ) exp = 0 ). cl_abap_unit_assert=>assert_equals( act = lines( lo_change->mt_json_tree ) exp = 0 ). " Keep empty arrays lo_util->diff( EXPORTING iv_json_a = lv_json_a iv_json_b = lv_json_b iv_keep_empty_arrays = abap_true IMPORTING eo_insert = lo_insert eo_delete = lo_delete eo_change = lo_change ). CREATE OBJECT lo_insert_exp. lo_insert_exp->add( ' | |object | |0|1' ). lo_insert_exp->add( '/ |names |array | |0|0' ). cl_abap_unit_assert=>assert_equals( act = lo_insert->mt_json_tree exp = lo_insert_exp->mt_nodes ). cl_abap_unit_assert=>assert_equals( act = lines( lo_delete->mt_json_tree ) exp = 0 ). cl_abap_unit_assert=>assert_equals( act = lines( lo_change->mt_json_tree ) exp = 0 ). ENDMETHOD. METHOD json_merge. DATA: lv_json_a TYPE string, lv_json_b TYPE string, lo_util TYPE REF TO zcl_abapgit_ajson_utilities, lo_merge TYPE REF TO zif_abapgit_ajson, lo_merge_exp TYPE REF TO lcl_nodes_helper. " Merge new value of b into a lv_json_a = '{\n' && ' "string": [\n' && ' "a",\n' && ' "c"\n' && ' ],\n' && ' "number": 123\n' && '}'. lv_json_b = '{\n' && ' "string": [\n' && ' "a",\n' && ' "b"\n' && " new array value ' ],\n' && ' "number": 456,\n' && " existing values are not overwritten ' "float": 123.45\n' && '}'. REPLACE ALL OCCURRENCES OF '\n' IN lv_json_a WITH cl_abap_char_utilities=>newline. REPLACE ALL OCCURRENCES OF '\n' IN lv_json_b WITH cl_abap_char_utilities=>newline. CREATE OBJECT lo_merge_exp. lo_merge_exp->add( ' | |object | |0|3' ). lo_merge_exp->add( '/ |float |num |123.45 |0|0' ). lo_merge_exp->add( '/ |number |num |123 |0|0' ). lo_merge_exp->add( '/ |string |array | |0|3' ). lo_merge_exp->add( '/string/ |1 |str |a |1|0' ). lo_merge_exp->add( '/string/ |2 |str |c |2|0' ). lo_merge_exp->add( '/string/ |3 |str |b |3|0' ). CREATE OBJECT lo_util. lo_merge = lo_util->merge( iv_json_a = lv_json_a iv_json_b = lv_json_b ). cl_abap_unit_assert=>assert_equals( act = lo_merge->mt_json_tree exp = lo_merge_exp->mt_nodes ). ENDMETHOD. METHOD json_sort. DATA: lv_json TYPE string, lo_util TYPE REF TO zcl_abapgit_ajson_utilities, lv_sorted TYPE string, lv_sorted_exp TYPE string. lv_json = '{\n' && ' "string": "abc",\n' && ' "number": 789,\n' && ' "float": 123.45,\n' && ' "boolean": "true",\n' && ' "true": true,\n' && ' "false": false,\n' && ' "null": null,\n' && ' "date": "2020-03-15"\n' && '}'. REPLACE ALL OCCURRENCES OF '\n' IN lv_json WITH cl_abap_char_utilities=>newline. lv_sorted_exp = '{\n' && ' "boolean": "true",\n' && ' "date": "2020-03-15",\n' && ' "false": false,\n' && ' "float": 123.45,\n' && ' "null": null,\n' && ' "number": 789,\n' && ' "string": "abc",\n' && ' "true": true\n' && '}'. REPLACE ALL OCCURRENCES OF '\n' IN lv_sorted_exp WITH cl_abap_char_utilities=>newline. CREATE OBJECT lo_util. lv_sorted = lo_util->sort( iv_json = lv_json ). cl_abap_unit_assert=>assert_equals( act = lv_sorted exp = lv_sorted_exp ). ENDMETHOD. ENDCLASS.
[ 17174, 17174, 2466, 1174, 198, 9, 19255, 4146, 198, 17174, 17174, 2466, 1174, 198, 198, 31631, 300, 565, 62, 77, 4147, 62, 2978, 525, 5550, 20032, 17941, 25261, 13, 198, 220, 44731, 44513, 13, 628, 220, 220, 220, 42865, 45079, 62, 77, 4147, 41876, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 14804, 774, 62, 77, 4147, 62, 926, 20832, 12, 1340, 11319, 13, 628, 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, 220, 220, 220, 337, 36252, 50, 23243, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 77, 4147, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 14804, 774, 62, 77, 4147, 62, 912, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 77, 4147, 62, 2978, 525, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 751, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 1279, 77, 29, 34178, 48920, 3963, 45079, 62, 77, 4147, 13, 198, 220, 220, 220, 42865, 300, 85, 62, 17197, 41876, 4731, 13, 198, 220, 220, 220, 42865, 300, 85, 62, 9630, 41876, 4731, 13, 628, 220, 220, 220, 43504, 10619, 3268, 2043, 12576, 48920, 5390, 45079, 62, 77, 4147, 24994, 3528, 15871, 1279, 77, 28401, 628, 220, 220, 220, 46341, 2043, 21628, 62, 2536, 5161, 705, 91, 6, 39319, 198, 220, 220, 220, 220, 220, 1279, 77, 29, 12, 6978, 198, 220, 220, 220, 220, 220, 1279, 77, 29, 12, 3672, 198, 220, 220, 220, 220, 220, 1279, 77, 29, 12, 4906, 198, 220, 220, 220, 220, 220, 1279, 77, 29, 12, 8367, 198, 220, 220, 220, 220, 220, 300, 85, 62, 9630, 198, 220, 220, 220, 220, 220, 300, 85, 62, 17197, 13, 198, 220, 220, 220, 7102, 35, 24290, 1279, 77, 29, 12, 6978, 13, 198, 220, 220, 220, 7102, 35, 24290, 1279, 77, 29, 12, 3672, 13, 198, 220, 220, 220, 7102, 35, 24290, 1279, 77, 29, 12, 4906, 13, 198, 220, 220, 220, 7102, 35, 24290, 1279, 77, 29, 12, 8367, 13, 198, 220, 220, 220, 1279, 77, 29, 12, 9630, 796, 300, 85, 62, 9630, 13, 198, 220, 220, 220, 1279, 77, 29, 12, 17197, 796, 300, 85, 62, 17197, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 23243, 13, 198, 220, 220, 220, 374, 83, 62, 77, 4147, 796, 45079, 62, 77, 4147, 13, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198, 198, 17174, 17174, 2466, 1174, 198, 9, 350, 27415, 1137, 198, 17174, 17174, 2466, 1174, 198, 198, 31631, 300, 83, 565, 62, 48610, 62, 9288, 5550, 20032, 17941, 25261, 198, 220, 7473, 43001, 2751, 198, 220, 45698, 42, 49277, 43638, 5805, 7597, 198, 220, 360, 4261, 6234, 6006, 9863, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 6291, 62, 17752, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 25512, 1352, 220, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 17752, 8, 41876, 4731, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 48610, 62, 9288, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 6291, 62, 17752, 13, 628, 220, 220, 220, 374, 85, 62, 17752, 796, 198, 220, 220, 220, 220, 220, 705, 31478, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 366, 8841, 1298, 366, 39305, 1600, 59, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 366, 17618, 1298, 17031, 11, 59, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 366, 22468, 1298, 17031, 13, 2231, 11, 59, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 366, 2127, 21052, 1298, 2081, 11, 59, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 366, 9562, 1298, 3991, 11, 59, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 366, 8423, 1298, 9242, 11, 59, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 366, 4475, 1298, 366, 42334, 12, 3070, 12, 1314, 1600, 59, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 366, 37165, 1298, 685, 59, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 220, 220, 43839, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 220, 220, 220, 220, 366, 20500, 1298, 366, 5497, 298, 341, 1917, 35713, 11, 59, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 220, 220, 220, 220, 366, 2539, 1298, 366, 521, 298, 341, 1600, 59, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 220, 220, 220, 220, 366, 9688, 1298, 43839, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 220, 220, 220, 220, 220, 220, 366, 808, 1298, 604, 11, 59, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 220, 220, 220, 220, 220, 220, 366, 4033, 1298, 513, 59, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 220, 220, 220, 220, 8964, 59, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 220, 220, 220, 220, 366, 437, 1298, 43839, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 220, 220, 220, 220, 220, 220, 366, 808, 1298, 604, 11, 59, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 220, 220, 220, 220, 220, 220, 366, 4033, 1298, 2608, 59, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 220, 220, 220, 220, 8964, 59, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 220, 220, 220, 220, 366, 34345, 1298, 366, 19571, 89, 31811, 13, 1676, 70, 13, 397, 499, 1, 59, 77, 6, 11405, 198, 220, 220, 220, 220, 220, 705, 220, 220, 220, 8964, 59, 77, 6, 11405, 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,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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 zcl_aoc_check_52 DEFINITION PUBLIC INHERITING FROM zcl_aoc_super CREATE PUBLIC. PUBLIC SECTION. METHODS constructor. METHODS check REDEFINITION. METHODS get_message_text REDEFINITION. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ZCL_AOC_CHECK_52 IMPLEMENTATION. METHOD check. * abapOpenChecks * https://github.com/larshp/abapOpenChecks * MIT License DATA: lt_code TYPE string_table, lt_tokens TYPE stokesx_tab, lv_next TYPE i, lt_statements TYPE sstmnt_tab. FIELD-SYMBOLS: <ls_statement> LIKE LINE OF lt_statements, <ls_token> LIKE LINE OF lt_tokens, <ls_next> LIKE LINE OF lt_tokens, <ls_level> LIKE LINE OF io_scan->levels. LOOP AT io_scan->levels ASSIGNING <ls_level> WHERE type = io_scan->gc_level-program. lt_code = get_source( <ls_level> ). * by default Pragmas are ignored in SAP standard code inspector * so scan the source again, SCAN ABAP-SOURCE lt_code TOKENS INTO lt_tokens STATEMENTS INTO lt_statements WITH ANALYSIS WITH PRAGMAS '*'. LOOP AT lt_statements ASSIGNING <ls_statement> WHERE type <> io_scan->gc_statement-pragma. APPEND INITIAL LINE TO lt_tokens ASSIGNING <ls_token>. <ls_token>-row = <ls_statement>-trow. <ls_token>-col = <ls_statement>-tcol. <ls_token>-str = <ls_statement>-terminator. ENDLOOP. SORT lt_tokens BY row ASCENDING col ASCENDING. LOOP AT lt_tokens ASSIGNING <ls_token> WHERE type = io_scan->gc_token-pragma. lv_next = sy-tabix + 1. READ TABLE lt_tokens INDEX lv_next ASSIGNING <ls_next>. IF sy-subrc = 0 AND <ls_next>-type <> io_scan->gc_token-pragma AND <ls_next>-str <> '.' AND <ls_next>-str <> ','. inform( p_sub_obj_name = <ls_level>-name p_line = <ls_token>-row p_kind = mv_errty p_test = myname p_code = '001' ). ENDIF. ENDLOOP. ENDLOOP. ENDMETHOD. METHOD constructor. super->constructor( ). version = '001'. position = '052'. has_attributes = abap_true. attributes_ok = abap_true. enable_rfc( ). ENDMETHOD. METHOD get_message_text. CLEAR p_text. CASE p_code. WHEN '001'. p_text = 'Place pragma at end of line before , or .'. "#EC NOTEXT WHEN OTHERS. super->get_message_text( EXPORTING p_test = p_test p_code = p_code IMPORTING p_text = p_text ). ENDCASE. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 64, 420, 62, 9122, 62, 4309, 5550, 20032, 17941, 44731, 198, 220, 220, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 64, 420, 62, 16668, 198, 220, 220, 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, 20500, 62, 5239, 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, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 32, 4503, 62, 50084, 62, 4309, 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, 83, 62, 8189, 220, 220, 220, 220, 220, 220, 41876, 4731, 62, 11487, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 83, 482, 641, 220, 220, 220, 220, 41876, 336, 3369, 87, 62, 8658, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 19545, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 14269, 3196, 41876, 264, 301, 76, 429, 62, 8658, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 26090, 29, 34178, 48920, 3963, 300, 83, 62, 14269, 3196, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 30001, 29, 220, 220, 220, 220, 34178, 48920, 3963, 300, 83, 62, 83, 482, 641, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 19545, 29, 220, 220, 220, 220, 220, 34178, 48920, 3963, 300, 83, 62, 83, 482, 641, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 5715, 29, 220, 220, 220, 220, 34178, 48920, 3963, 33245, 62, 35836, 3784, 46170, 13, 628, 198, 220, 220, 220, 17579, 3185, 5161, 33245, 62, 35836, 3784, 46170, 24994, 3528, 15871, 1279, 7278, 62, 5715, 29, 33411, 2099, 796, 33245, 62, 35836, 3784, 36484, 62, 5715, 12, 23065, 13, 628, 220, 220, 220, 220, 220, 300, 83, 62, 8189, 796, 651, 62, 10459, 7, 1279, 7278, 62, 5715, 29, 6739, 198, 198, 9, 416, 4277, 1736, 363, 5356, 389, 9514, 287, 48323, 3210, 2438, 24110, 198, 9, 523, 9367, 262, 2723, 757, 11, 198, 220, 220, 220, 220, 220, 6374, 1565, 9564, 2969, 12, 47690, 300, 83, 62, 8189, 198, 220, 220, 220, 220, 220, 220, 220, 5390, 42, 16938, 39319, 300, 83, 62, 83, 482, 641, 198, 220, 220, 220, 220, 220, 220, 220, 15486, 12529, 50, 39319, 300, 83, 62, 14269, 3196, 198, 220, 220, 220, 220, 220, 220, 220, 13315, 3537, 1847, 16309, 1797, 198, 220, 220, 220, 220, 220, 220, 220, 13315, 350, 3861, 15548, 1921, 705, 9, 4458, 628, 220, 220, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 14269, 3196, 24994, 3528, 15871, 1279, 7278, 62, 26090, 29, 33411, 2099, 1279, 29, 33245, 62, 35836, 3784, 36484, 62, 26090, 12, 1050, 363, 2611, 13, 198, 220, 220, 220, 220, 220, 220, 220, 43504, 10619, 3268, 2043, 12576, 48920, 5390, 300, 83, 62, 83, 482, 641, 24994, 3528, 15871, 1279, 7278, 62, 30001, 28401, 198, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 30001, 29, 12, 808, 796, 1279, 7278, 62, 26090, 29, 12, 83, 808, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 30001, 29, 12, 4033, 796, 1279, 7278, 62, 26090, 29, 12, 83, 4033, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 30001, 29, 12, 2536, 796, 1279, 7278, 62, 26090, 29, 12, 23705, 1352, 13, 198, 220, 220, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 220, 220, 220, 220, 311, 9863, 300, 83, 62, 83, 482, 641, 11050, 5752, 25400, 10619, 2751, 951, 25400, 10619, 2751, 13, 628, 220, 220, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 83, 482, 641, 24994, 3528, 15871, 1279, 7278, 62, 30001, 29, 33411, 2099, 796, 33245, 62, 35836, 3784, 36484, 62, 30001, 12, 1050, 363, 2611, 13, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 19545, 796, 827, 12, 8658, 844, 1343, 352, 13, 198, 220, 220, 220, 220, 220, 220, 220, 20832, 43679, 300, 83, 62, 83, 482, 641, 24413, 6369, 300, 85, 62, 19545, 24994, 3528, 15871, 1279, 7278, 62, 19545, 28401, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 657, 5357, 1279, 7278, 62, 19545, 29, 12, 4906, 1279, 29, 33245, 62, 35836, 3784, 36484, 62, 30001, 12, 1050, 363, 2611, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 19545, 29, 12, 2536, 1279, 29, 705, 2637, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 19545, 29, 12, 2536, 1279, 29, 705, 4032, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4175, 7, 279, 62, 7266, 62, 26801, 62, 3672, 796, 1279, 7278, 62, 5715, 29, 12, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 1370, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1279, 7278, 62, 30001, 29, 12, 808, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 11031, 220, 220, 220, 220, 220, 220, 220, 220, 796, 285, 85, 62, 8056, 774, 198, 220, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
function-pool zewm_robco_robot. "MESSAGE-ID .. * INCLUDE LZEWM_ROBCO_ROBOTD... " Local class definition * Global Constants type-pools: wmegc. data: gv_msgv1 type symsgv, "#EC NEEDED gv_msgv2 type symsgv, "#EC NEEDED gv_msgv3 type symsgv, "#EC NEEDED gv_msgv4 type symsgv. "#EC NEEDED
[ 8818, 12, 7742, 1976, 413, 76, 62, 22609, 1073, 62, 305, 13645, 13, 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, 6217, 44, 62, 13252, 2749, 46, 62, 49, 9864, 2394, 35, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 10714, 1398, 6770, 198, 198, 9, 8060, 4757, 1187, 198, 4906, 12, 7742, 82, 25, 266, 28917, 66, 13, 198, 198, 7890, 25, 308, 85, 62, 19662, 85, 16, 2099, 827, 19662, 85, 11, 220, 220, 220, 220, 220, 220, 220, 220, 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, 36465, 1961, 198, 220, 220, 220, 220, 220, 308, 85, 62, 19662, 85, 17, 2099, 827, 19662, 85, 11, 220, 220, 220, 220, 220, 220, 220, 220, 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, 36465, 1961, 198, 220, 220, 220, 220, 220, 308, 85, 62, 19662, 85, 18, 2099, 827, 19662, 85, 11, 220, 220, 220, 220, 220, 220, 220, 220, 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, 36465, 1961, 198, 220, 220, 220, 220, 220, 308, 85, 62, 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, 1, 1, 1, 1, 1 ]
"! Illegal state exception CLASS zcx_aap_illegal_state DEFINITION PUBLIC INHERITING FROM zcx_aap_call_error FINAL CREATE PUBLIC. PUBLIC SECTION. CONSTANTS: BEGIN OF gc_no_arguments, msgid TYPE symsgid VALUE 'ZAAP', msgno TYPE symsgno VALUE '024', attr1 TYPE scx_attrname VALUE '', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF gc_no_arguments. METHODS: "! @parameter is_textid | Textid "! @parameter ix_previous | Previous exception constructor IMPORTING is_textid LIKE if_t100_message=>t100key OPTIONAL ix_previous LIKE previous OPTIONAL. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcx_aap_illegal_state IMPLEMENTATION. METHOD constructor ##ADT_SUPPRESS_GENERATION. super->constructor( is_textid = is_textid ix_previous = ix_previous ). ENDMETHOD. ENDCLASS.
[ 40484, 42272, 1181, 6631, 198, 31631, 1976, 66, 87, 62, 64, 499, 62, 47749, 62, 5219, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 66, 87, 62, 64, 499, 62, 13345, 62, 18224, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 308, 66, 62, 3919, 62, 853, 2886, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 705, 34892, 2969, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 40839, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 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, 308, 66, 62, 3919, 62, 853, 2886, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 318, 62, 5239, 312, 930, 8255, 312, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 220, 844, 62, 3866, 1442, 930, 21801, 6631, 198, 220, 220, 220, 220, 220, 23772, 30023, 9863, 2751, 318, 62, 5239, 312, 220, 220, 34178, 611, 62, 83, 3064, 62, 20500, 14804, 83, 3064, 2539, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 844, 62, 3866, 1442, 34178, 2180, 39852, 2849, 1847, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 66, 87, 62, 64, 499, 62, 47749, 62, 5219, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 23772, 22492, 2885, 51, 62, 40331, 32761, 62, 35353, 1137, 6234, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 318, 62, 5239, 312, 796, 318, 62, 5239, 312, 220, 844, 62, 3866, 1442, 796, 220, 844, 62, 3866, 1442, 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,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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 ]
CLASS z_sy_feature DEFINITION PUBLIC ABSTRACT CREATE PUBLIC GLOBAL FRIENDS z_sy_cl_feature_loader . PUBLIC SECTION. CLASS-METHODS class_constructor . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS z_sy_feature IMPLEMENTATION. METHOD class_constructor. "new z_sy_cl_feature_loader( new z_sy_feature( ) )->loadFeatureToggles( ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 62, 1837, 62, 30053, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 9564, 18601, 10659, 198, 220, 29244, 6158, 44731, 628, 220, 10188, 9864, 1847, 48167, 1677, 5258, 1976, 62, 1837, 62, 565, 62, 30053, 62, 29356, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 1398, 62, 41571, 273, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 62, 1837, 62, 30053, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 1398, 62, 41571, 273, 13, 198, 220, 220, 220, 366, 3605, 1976, 62, 1837, 62, 565, 62, 30053, 62, 29356, 7, 649, 1976, 62, 1837, 62, 30053, 7, 1267, 1267, 3784, 2220, 38816, 51, 48549, 7, 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 ]
CLASS ztl_cl_message_pool DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES: ztl_i_dynamic_type_conversion. TYPES: t_message_type TYPE sychar01, t_message_var TYPE sychar50, BEGIN OF t_message_related_data, data TYPE REF TO data, child TYPE REF TO data, END OF t_message_related_data, BEGIN OF t_message_info, related_data TYPE t_message_related_data, id TYPE arbgb, number TYPE msgnr, v1 TYPE t_message_var, v2 TYPE t_message_var, v3 TYPE t_message_var, v4 TYPE t_message_var, type TYPE t_message_type, text TYPE string, END OF t_message_info, t_message_info_tab TYPE STANDARD TABLE OF t_message_info. CONSTANTS: BEGIN OF e_message_types, sucess TYPE t_message_type VALUE 'S', info TYPE t_message_type VALUE 'I', warning TYPE t_message_type VALUE 'W', error TYPE t_message_type VALUE 'E', abend TYPE t_message_type VALUE 'A', END OF e_message_types. CLASS-METHODS class_constructor. METHODS add_message IMPORTING iv_type TYPE t_message_type iv_id TYPE arbgb iv_number TYPE msgnr iv_v1 TYPE t_message_var OPTIONAL iv_v2 TYPE t_message_var OPTIONAL iv_v3 TYPE t_message_var OPTIONAL iv_v4 TYPE t_message_var OPTIONAL iv_related_data TYPE any OPTIONAL RAISING zcx_invalid_parameters. METHODS add_message_from_dynamic IMPORTING iv_message_data TYPE any iv_related_data TYPE any OPTIONAL RAISING zcx_invalid_parameters zcx_dyncnv_config_missing. METHODS get_messages EXPORTING ev_messages TYPE t_message_info_tab. PROTECTED SECTION. PRIVATE SECTION. CONSTANTS: BEGIN OF e_conversion_destinations, message_pool_message_info TYPE abap_abstypename VALUE '\CLASS=ZTL_CL_MESSAGE_POOL\TYPE=T_MESSAGE_INFO', END OF e_conversion_destinations. CLASS-DATA: valid_message_types TYPE RANGE OF t_message_type. DATA: m_message_info TYPE t_message_info_tab. METHODS helper_add_message_info IMPORTING iv_related_data TYPE any OPTIONAL CHANGING ic_message_info TYPE t_message_info RAISING zcx_invalid_parameters. ENDCLASS. CLASS ztl_cl_message_pool IMPLEMENTATION. METHOD ztl_i_dynamic_type_conversion~convert. FIELD-SYMBOLS: <lo_ztl_cl_message_pool> TYPE REF TO ztl_cl_message_pool. DATA: li_messages TYPE ztl_cl_message_pool=>t_message_info_tab. ASSIGN iv_source TO <lo_ztl_cl_message_pool>. CALL METHOD <lo_ztl_cl_message_pool>->get_messages IMPORTING ev_messages = li_messages. CASE iv_destination_type. WHEN e_conversion_destinations-message_pool_message_info. IF iv_destination_is_table = abap_true. ev_destination = li_messages. ELSE. READ TABLE li_messages INTO ev_destination INDEX 1. ENDIF. ENDCASE. ENDMETHOD. METHOD add_message. DATA: lwa_message_info TYPE ztl_cl_message_pool=>t_message_info. lwa_message_info-type = iv_type. lwa_message_info-id = iv_id. lwa_message_info-number = iv_number. lwa_message_info-v1 = iv_v1. lwa_message_info-v2 = iv_v2. lwa_message_info-v3 = iv_v3. lwa_message_info-v4 = iv_v4. CALL METHOD helper_add_message_info EXPORTING iv_related_data = iv_related_data CHANGING ic_message_info = lwa_message_info. ENDMETHOD. METHOD add_message_from_dynamic. FIELD-SYMBOLS: <lit_table> TYPE ANY TABLE, <lwa_line> TYPE any. DATA: lo_typedescr TYPE REF TO cl_abap_typedescr, lwa_message_info TYPE t_message_info, li_message_info TYPE t_message_info_tab. CALL METHOD cl_abap_typedescr=>describe_by_data EXPORTING p_data = iv_message_data RECEIVING p_descr_ref = lo_typedescr. CASE lo_typedescr->type_kind. WHEN cl_abap_typedescr=>typekind_oref. CALL METHOD ztl_cl_dynamic_type_conversion=>dynamic_conversion EXPORTING iv_source = iv_message_data IMPORTING ev_destination = li_message_info. LOOP AT li_message_info INTO lwa_message_info. CALL METHOD helper_add_message_info EXPORTING iv_related_data = iv_related_data CHANGING ic_message_info = lwa_message_info. ENDLOOP. WHEN cl_abap_typedescr=>typekind_table. ASSIGN iv_message_data TO <lit_table>. LOOP AT <lit_table> INTO <lwa_line>. CALL METHOD ztl_cl_dynamic_type_conversion=>dynamic_conversion EXPORTING iv_source = <lwa_line> IMPORTING ev_destination = lwa_message_info. CALL METHOD helper_add_message_info EXPORTING iv_related_data = iv_related_data CHANGING ic_message_info = lwa_message_info. ENDLOOP. WHEN OTHERS. CALL METHOD ztl_cl_dynamic_type_conversion=>dynamic_conversion EXPORTING iv_source = iv_message_data IMPORTING ev_destination = lwa_message_info. CALL METHOD helper_add_message_info EXPORTING iv_related_data = iv_related_data CHANGING ic_message_info = lwa_message_info. ENDCASE. ENDMETHOD. METHOD class_constructor. DATA: lwa_valid_message_types LIKE LINE OF ztl_cl_message_pool=>valid_message_types. append_equals valid_message_types ztl_cl_message_pool=>e_message_types-sucess. append_equals valid_message_types ztl_cl_message_pool=>e_message_types-info. append_equals valid_message_types ztl_cl_message_pool=>e_message_types-warning. append_equals valid_message_types ztl_cl_message_pool=>e_message_types-error. append_equals valid_message_types ztl_cl_message_pool=>e_message_types-abend. ENDMETHOD. METHOD helper_add_message_info. FIELD-SYMBOLS: <lwa_related_data> TYPE t_message_related_data, <lwa_related_data_aux> TYPE t_message_related_data, <lwa_data> TYPE ANY, <lwa_data_aux> TYPE ANY. DATA: l_related_data TYPE t_message_related_data, l_related_data_aux TYPE t_message_related_data. * We check the value for type parameter. CALL METHOD ztl_cl_global=>check_parameter_value_valid EXPORTING iv_value = ic_message_info-type it_valid_values = ztl_cl_message_pool=>valid_message_types. * If we receive related data. IF iv_related_data IS SUPPLIED. * We assign the current related data to an aux variable. l_related_data = ic_message_info-related_data. * We current related data. CLEAR ic_message_info-related_data. * We create a variable on related_data-data pointer and assign it to * field-symbol to assign the value of received iv_related_data. CREATE DATA ic_message_info-related_data-data LIKE iv_related_data. ASSIGN ic_message_info-related_data-data->* TO <lwa_data>. <lwa_data> = iv_related_data. * If we have related data on our aux variable we need to move it to * the current related data as a child. IF NOT l_related_data IS INITIAL. ASSIGN l_related_data TO <lwa_related_data>. ASSIGN ic_message_info-related_data TO <lwa_related_data_aux>. WHILE sy-subrc = 0. CREATE DATA <lwa_related_data_aux>-child TYPE t_message_related_data. ASSIGN <lwa_related_data_aux>-child->* TO <lwa_related_data_aux>. ASSIGN <lwa_related_data>-data->* TO <lwa_data>. CREATE DATA <lwa_related_data_aux>-data LIKE <lwa_data>. ASSIGN <lwa_related_data_aux>-data->* TO <lwa_data_aux>. <lwa_data_aux> = <lwa_data>. ASSIGN <lwa_related_data>-child->* TO <lwa_related_data>. ENDWHILE. ENDIF. ENDIF. * We build the message text. CALL FUNCTION 'MESSAGE_PREPARE' EXPORTING language = sy-langu msg_id = ic_message_info-id msg_no = ic_message_info-number msg_var1 = ic_message_info-v1 msg_var2 = ic_message_info-v2 msg_var3 = ic_message_info-v3 msg_var4 = ic_message_info-v4 IMPORTING msg_text = ic_message_info-text EXCEPTIONS function_not_completed = 1 message_not_found = 2 OTHERS = 3. * Message is ok, we add it to our member attribute. APPEND ic_message_info TO m_message_info. ENDMETHOD. METHOD get_messages. ev_messages = me->m_message_info. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 28781, 62, 565, 62, 20500, 62, 7742, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 1976, 28781, 62, 72, 62, 67, 28995, 62, 4906, 62, 1102, 9641, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 256, 62, 20500, 62, 4906, 41876, 827, 10641, 486, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 62, 20500, 62, 7785, 220, 41876, 827, 10641, 1120, 11, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 256, 62, 20500, 62, 5363, 62, 7890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1366, 220, 220, 41876, 4526, 37, 5390, 1366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1200, 220, 41876, 4526, 37, 5390, 1366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 256, 62, 20500, 62, 5363, 62, 7890, 11, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 256, 62, 20500, 62, 10951, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3519, 62, 7890, 41876, 256, 62, 20500, 62, 5363, 62, 7890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 610, 65, 22296, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1271, 220, 220, 220, 220, 220, 220, 41876, 13845, 4593, 81, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 410, 16, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 256, 62, 20500, 62, 7785, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 410, 17, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 256, 62, 20500, 62, 7785, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 410, 18, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 256, 62, 20500, 62, 7785, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 410, 19, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 256, 62, 20500, 62, 7785, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 256, 62, 20500, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 256, 62, 20500, 62, 10951, 11, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 62, 20500, 62, 10951, 62, 8658, 41876, 49053, 9795, 43679, 3963, 256, 62, 20500, 62, 10951, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 347, 43312, 3963, 304, 62, 20500, 62, 19199, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 424, 919, 220, 41876, 256, 62, 20500, 62, 4906, 26173, 8924, 705, 50, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7508, 220, 220, 220, 41876, 256, 62, 20500, 62, 4906, 26173, 8924, 705, 40, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6509, 41876, 256, 62, 20500, 62, 4906, 26173, 8924, 705, 54, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4049, 220, 220, 41876, 256, 62, 20500, 62, 4906, 26173, 8924, 705, 36, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 450, 437, 220, 220, 41876, 256, 62, 20500, 62, 4906, 26173, 8924, 705, 32, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 304, 62, 20500, 62, 19199, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 1398, 62, 41571, 273, 13, 628, 220, 220, 220, 337, 36252, 50, 751, 62, 20500, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 4906, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 256, 62, 20500, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 610, 65, 22296, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 17618, 220, 220, 220, 220, 220, 220, 41876, 13845, 4593, 81, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 85, 16, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 256, 62, 20500, 62, 7785, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 85, 17, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 256, 62, 20500, 62, 7785, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 85, 18, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 256, 62, 20500, 62, 7785, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 85, 19, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 256, 62, 20500, 62, 7785, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 5363, 62, 7890, 41876, 597, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 259, 12102, 62, 17143, 7307, 13, 628, 220, 220, 220, 337, 36252, 50, 751, 62, 20500, 62, 6738, 62, 67, 28995, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 20500, 62, 7890, 41876, 597, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 5363 ]
[ 1, 1, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
report zlambda_main. types: begin of ty_dummy, str type string, chr type c length 255, int type i, dat type d, end of ty_dummy. include zlambda. ********************************************************************** * dummy class lcl_dummy definition final. public section. data mv_val type string. class-methods new importing i_val type string returning value(ro_inst) type ref to lcl_dummy. methods say returning value(r_val) type string. endclass. class lcl_dummy implementation. method new. create object ro_inst. ro_inst->mv_val = i_val. endmethod. method say. r_val = mv_val. endmethod. endclass. ********************************************************************** * lambdas class lcl_l_str definition final. public section. interfaces lif_lambda. endclass. class lcl_l_str implementation. method lif_lambda~run. ri_result = lcl_lambda_result=>wrap( `Hello world` ). endmethod. endclass. class lcl_l_chr definition final. public section. interfaces lif_lambda. endclass. class lcl_l_chr implementation. method lif_lambda~run. ri_result = lcl_lambda_result=>wrap( 'Hello world' ). endmethod. endclass. class lcl_l_int definition final. public section. interfaces lif_lambda. endclass. class lcl_l_int implementation. method lif_lambda~run. ri_result = lcl_lambda_result=>wrap( 1234 ). endmethod. endclass. class lcl_l_struc definition final. public section. interfaces lif_lambda. endclass. class lcl_l_struc implementation. method lif_lambda~run. data ls type ty_dummy. ls-str = 'This is struct'. ls-chr = 'This is struct'. ri_result = lcl_lambda_result=>wrap( ls ). endmethod. endclass. class lcl_l_say definition final. public section. interfaces lif_lambda. endclass. class lcl_l_say implementation. method lif_lambda~run. data lo_dummy type ref to lcl_dummy. lo_dummy ?= i_workset. ri_result = lcl_lambda_result=>wrap( lcl_dummy=>new( |CURRIED: { lo_dummy->say( ) }| ) ). endmethod. endclass. class lcl_l_tab definition final. public section. interfaces lif_lambda. endclass. class lcl_l_tab implementation. method lif_lambda~run. data lt_strs type string_table. append 'Hello' to lt_strs. append 'World' to lt_strs. append 'And' to lt_strs. append 'Abap' to lt_strs. ri_result = lcl_lambda_result=>wrap( lt_strs ). endmethod. endclass. ********************************************************************** * lambdas PERF class lcl_lp_str definition final. public section. interfaces lif_lambda_perf. endclass. class lcl_lp_str implementation. method lif_lambda_perf~run. c_result = `Hello world`. endmethod. endclass. class lcl_lp_chr definition final. public section. interfaces lif_lambda_perf. endclass. class lcl_lp_chr implementation. method lif_lambda_perf~run. c_result = 'Hello world'. endmethod. endclass. class lcl_lp_int definition final. public section. interfaces lif_lambda_perf. endclass. class lcl_lp_int implementation. method lif_lambda_perf~run. c_result = 1234. endmethod. endclass. class lcl_lp_struc definition final. public section. interfaces lif_lambda_perf. endclass. class lcl_lp_struc implementation. method lif_lambda_perf~run. field-symbols <struc> type ty_dummy. assign c_result to <struc>. * clear <struc>. <struc>-str = 'This is struct'. <struc>-chr = 'This is struct'. endmethod. endclass. class lcl_lp_say definition final. public section. interfaces lif_lambda_perf. endclass. class lcl_lp_say implementation. method lif_lambda_perf~run. data lo_dummy type ref to lcl_dummy. lo_dummy ?= i_workset. lo_dummy = lcl_dummy=>new( |CURRIED: { lo_dummy->say( ) }| ). c_result = lo_dummy. endmethod. endclass. class lcl_lp_tab definition final. public section. interfaces lif_lambda_perf. endclass. class lcl_lp_tab implementation. method lif_lambda_perf~run. field-symbols <strs> type string_table. assign c_result to <strs>. append 'Hello' to <strs>. append 'World' to <strs>. append 'And' to <strs>. append 'Abap' to <strs>. endmethod. endclass. ********************************************************************** class lcl_main definition final. public section. class-methods main. class-methods main_perf. endclass. class lcl_main implementation. method main. data li_lambda type ref to lif_lambda. data str type string. create object li_lambda type lcl_l_str. str = li_lambda->run( )->str( ). write: / str. data int type i. create object li_lambda type lcl_l_int. int = li_lambda->run( )->int( ). write: / int. data lo_dummy type ref to lcl_dummy. create object li_lambda type lcl_l_say. lo_dummy ?= li_lambda->run( lcl_dummy=>new( 'It works !' ) )->obj( ). str = lo_dummy->say( ). write: / str. data struc type ty_dummy. create object li_lambda type lcl_l_struc. li_lambda->run( )->struc( changing cs_struc = struc ). write: / struc-str. data tab type string_table. create object li_lambda type lcl_l_tab. li_lambda->run( )->tab( changing ct_tab = tab ). str = concat_lines_of( table = tab sep = `, ` ). write: / str. endmethod. method main_perf. data li_lambda type ref to lif_lambda_perf. data str type string. create object li_lambda type lcl_lp_str. li_lambda->run( changing c_result = str ). write: / str. data int type i. create object li_lambda type lcl_lp_int. li_lambda->run( changing c_result = int ). write: / int. data lo_dummy type ref to lcl_dummy. create object li_lambda type lcl_lp_say. li_lambda->run( exporting i_workset = lcl_dummy=>new( 'It works !' ) changing c_result = lo_dummy ). str = lo_dummy->say( ). write: / str. data struc type ty_dummy. create object li_lambda type lcl_lp_struc. li_lambda->run( changing c_result = struc ). write: / struc-str. data tab type string_table. create object li_lambda type lcl_lp_tab. li_lambda->run( changing c_result = tab ). str = concat_lines_of( table = tab sep = `, ` ). write: / str. endmethod. endclass. ********************************************************************** * BENCHMARK ********************************************************************** include ztest_benchmark. " https://github.com/sbcgua/benchmarks/blob/master/src/ztest_benchmark.prog.abap class lcl_benchmark_app definition final. public section. methods run importing iv_method type string. methods char_w_wrapper. methods string_w_wrapper. methods int_w_wrapper. methods obj_w_wrapper. methods struc_w_wrapper. methods tab_w_wrapper. methods char_wo_wrapper. methods string_wo_wrapper. methods int_wo_wrapper. methods obj_wo_wrapper. methods struc_wo_wrapper. methods tab_wo_wrapper. class-methods main. data mv_num_rounds type i. data mv_xml type xstring. endclass. class lcl_benchmark_app implementation. method string_w_wrapper. data li_lambda type ref to lif_lambda. data str type string. create object li_lambda type lcl_l_str. str = li_lambda->run( )->str( ). endmethod. method char_w_wrapper. data li_lambda type ref to lif_lambda. data chr type c length 255. create object li_lambda type lcl_l_chr. chr = li_lambda->run( )->str( ). endmethod. method int_w_wrapper. data li_lambda type ref to lif_lambda. data int type i. create object li_lambda type lcl_l_int. int = li_lambda->run( )->int( ). endmethod. method obj_w_wrapper. data li_lambda type ref to lif_lambda. data lo_dummy type ref to lcl_dummy. create object li_lambda type lcl_l_say. lo_dummy ?= li_lambda->run( lcl_dummy=>new( 'It works !' ) )->obj( ). endmethod. method struc_w_wrapper. data li_lambda type ref to lif_lambda. data struc type ty_dummy. create object li_lambda type lcl_l_struc. li_lambda->run( )->struc( changing cs_struc = struc ). endmethod. method tab_w_wrapper. data li_lambda type ref to lif_lambda. data tab type string_table. create object li_lambda type lcl_l_tab. li_lambda->run( )->tab( changing ct_tab = tab ). endmethod. method string_wo_wrapper. data li_lambda type ref to lif_lambda_perf. data str type string. create object li_lambda type lcl_lp_str. li_lambda->run( changing c_result = str ). endmethod. method char_wo_wrapper. data li_lambda type ref to lif_lambda_perf. data chr type c length 255. create object li_lambda type lcl_lp_chr. li_lambda->run( changing c_result = chr ). endmethod. method int_wo_wrapper. data li_lambda type ref to lif_lambda_perf. data int type i. create object li_lambda type lcl_lp_int. li_lambda->run( changing c_result = int ). endmethod. method obj_wo_wrapper. data li_lambda type ref to lif_lambda_perf. data lo_dummy type ref to lcl_dummy. create object li_lambda type lcl_lp_say. li_lambda->run( exporting i_workset = lcl_dummy=>new( 'It works !' ) changing c_result = lo_dummy ). endmethod. method struc_wo_wrapper. data li_lambda type ref to lif_lambda_perf. data struc type ty_dummy. create object li_lambda type lcl_lp_struc. li_lambda->run( changing c_result = struc ). endmethod. method tab_wo_wrapper. data li_lambda type ref to lif_lambda_perf. data tab type string_table. create object li_lambda type lcl_lp_tab. li_lambda->run( changing c_result = tab ). endmethod. method run. data lo_benchmark type ref to lcl_benchmark. create object lo_benchmark exporting io_object = me iv_method = iv_method iv_times = mv_num_rounds. lo_benchmark->run( ). lo_benchmark->print( ). endmethod. method main. data lo_app type ref to lcl_benchmark_app. create object lo_app. lo_app->mv_num_rounds = 10000. lo_app->run( 'char_w_wrapper' ). lo_app->run( 'char_wo_wrapper' ). lo_app->run( 'string_w_wrapper' ). lo_app->run( 'string_wo_wrapper' ). lo_app->run( 'int_w_wrapper' ). lo_app->run( 'int_wo_wrapper' ). lo_app->run( 'obj_w_wrapper' ). lo_app->run( 'obj_wo_wrapper' ). lo_app->run( 'struc_w_wrapper' ). lo_app->run( 'struc_wo_wrapper' ). lo_app->run( 'tab_w_wrapper' ). lo_app->run( 'tab_wo_wrapper' ). endmethod. endclass. start-of-selection. lcl_main=>main( ). uline. write: / 'PERF version'. uline. lcl_main=>main_perf( ). uline. write: / 'BENCHMARK'. uline. lcl_benchmark_app=>main( ).
[ 13116, 1976, 50033, 62, 12417, 13, 198, 198, 19199, 25, 198, 220, 2221, 286, 1259, 62, 67, 13513, 11, 198, 220, 220, 220, 965, 2099, 4731, 11, 198, 220, 220, 220, 442, 81, 2099, 269, 4129, 14280, 11, 198, 220, 220, 220, 493, 2099, 1312, 11, 198, 220, 220, 220, 4818, 2099, 288, 11, 198, 220, 886, 286, 1259, 62, 67, 13513, 13, 198, 198, 17256, 1976, 50033, 13, 198, 198, 17174, 17174, 2466, 1174, 198, 9, 31548, 198, 198, 4871, 300, 565, 62, 67, 13513, 6770, 2457, 13, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 1366, 285, 85, 62, 2100, 2099, 4731, 13, 198, 220, 220, 220, 1398, 12, 24396, 82, 649, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 2100, 2099, 4731, 198, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 305, 62, 8625, 8, 2099, 1006, 284, 300, 565, 62, 67, 13513, 13, 198, 220, 220, 220, 5050, 910, 198, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 81, 62, 2100, 8, 2099, 4731, 13, 198, 437, 4871, 13, 198, 198, 4871, 300, 565, 62, 67, 13513, 7822, 13, 198, 220, 2446, 649, 13, 198, 220, 220, 220, 2251, 2134, 686, 62, 8625, 13, 198, 220, 220, 220, 686, 62, 8625, 3784, 76, 85, 62, 2100, 796, 1312, 62, 2100, 13, 198, 220, 886, 24396, 13, 628, 220, 2446, 910, 13, 198, 220, 220, 220, 374, 62, 2100, 796, 285, 85, 62, 2100, 13, 198, 220, 886, 24396, 13, 198, 437, 4871, 13, 198, 198, 17174, 17174, 2466, 1174, 198, 9, 19343, 67, 292, 198, 198, 4871, 300, 565, 62, 75, 62, 2536, 6770, 2457, 13, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 20314, 3868, 62, 50033, 13, 198, 437, 4871, 13, 198, 198, 4871, 300, 565, 62, 75, 62, 2536, 7822, 13, 198, 220, 2446, 3868, 62, 50033, 93, 5143, 13, 198, 220, 220, 220, 374, 72, 62, 20274, 796, 300, 565, 62, 50033, 62, 20274, 14804, 37150, 7, 4600, 15496, 995, 63, 6739, 198, 220, 886, 24396, 13, 198, 437, 4871, 13, 198, 198, 4871, 300, 565, 62, 75, 62, 354, 81, 6770, 2457, 13, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 20314, 3868, 62, 50033, 13, 198, 437, 4871, 13, 198, 198, 4871, 300, 565, 62, 75, 62, 354, 81, 7822, 13, 198, 220, 2446, 3868, 62, 50033, 93, 5143, 13, 198, 220, 220, 220, 374, 72, 62, 20274, 796, 300, 565, 62, 50033, 62, 20274, 14804, 37150, 7, 705, 15496, 995, 6, 6739, 198, 220, 886, 24396, 13, 198, 437, 4871, 13, 198, 198, 4871, 300, 565, 62, 75, 62, 600, 6770, 2457, 13, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 20314, 3868, 62, 50033, 13, 198, 437, 4871, 13, 198, 198, 4871, 300, 565, 62, 75, 62, 600, 7822, 13, 198, 220, 2446, 3868, 62, 50033, 93, 5143, 13, 198, 220, 220, 220, 374, 72, 62, 20274, 796, 300, 565, 62, 50033, 62, 20274, 14804, 37150, 7, 1105, 2682, 6739, 198, 220, 886, 24396, 13, 198, 437, 4871, 13, 198, 198, 4871, 300, 565, 62, 75, 62, 19554, 66, 6770, 2457, 13, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 20314, 3868, 62, 50033, 13, 198, 437, 4871, 13, 198, 198, 4871, 300, 565, 62, 75, 62, 19554, 66, 7822, 13, 198, 220, 2446, 3868, 62, 50033, 93, 5143, 13, 198, 220, 220, 220, 1366, 43979, 2099, 1259, 62, 67, 13513, 13, 198, 220, 220, 220, 43979, 12, 2536, 796, 705, 1212, 318, 2878, 4458, 198, 220, 220, 220, 43979, 12, 354, 81, 796, 705, 1212, 318, 2878, 4458, 198, 220, 220, 220, 374, 72, 62, 20274, 796, 300, 565, 62, 50033, 62, 20274, 14804, 37150, 7, 43979, 6739, 198, 220, 886, 24396, 13, 198, 437, 4871, 13, 198, 198, 4871, 300, 565, 62, 75, 62, 16706, 6770, 2457, 13, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 20314, 3868, 62, 50033, 13, 198, 437, 4871, 13, 198, 198, 4871, 300, 565, 62, 75, 62, 16706, 7822, 13, 198, 220, 2446, 3868, 62, 50033, 93, 5143, 13, 198, 220, 220, 220, 1366, 2376, 62, 67, 13513, 2099, 1006, 284, 300, 565, 62, 67, 13513, 13, 198, 220, 220, 220, 2376, 62, 67, 13513, 5633, 28, 1312, 62, 5225, 316, 13, 198, 220, 220, 220, 374, 72, 62, 20274, 796, 300, 565, 62, 50033, 62, 20274, 14804, 37150, 7, 300, 565, 62, 67, 13513, 14804, 3605, 7, 930, 34, 4261, 7112, 1961, 25, 1391, 2376, 62, 67, 13513, 3784, 16706, 7, 1267, 1782, 91, 1267, 6739, 198, 220, 886, 24396, 13, 198, 437, 4871, 13, 198, 198, 4871, 300, 565, 62, 75, 62, 8658, 6770, 2457, 13, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 20314, 3868, 62, 50033, 13, 198, 437, 4871, 13, 198, 198, 4871, 300, 565, 62, 75, 62, 8658, 7822, 13, 198, 220, 2446, 3868, 62, 50033, 93, 5143, 13, 198, 220, 220, 220, 1366, 300, 83, 62, 2536, 82, 2099, 4731, 62, 11487, 13, 198, 220, 220, 220, 24443, 705, 15496, 6, 284, 300, 83, 62, 2536, 82, 13, 198, 220, 220, 220, 24443, 705, 10603, 6, 284, 300, 83, 62, 2536, 82, 13, 198, 220, 220, 220, 24443, 705, 1870, 6, 284, 300, 83, 62, 2536, 82, 13, 198, 220, 220, 220, 24443, 705, 4826, 499, 6, 284, 300, 83, 62, 2536, 82, 13, 198, 220, 220, 220, 374, 72, 62, 20274, 796, 300, 565, 62, 50033, 62, 20274, 14804, 37150, 7, 300, 83, 62, 2536, 82, 6739, 198, 220, 886, 24396, 13, 198, 437, 4871, 13, 198, 198, 17174, 17174, 2466, 1174, 198, 9, 19343, 67, 292, 19878, 37, 198, 198, 4871, 300, 565, 62, 34431, 62, 2536, 6770, 2457, 13, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 20314, 3868, 62, 50033, 62, 525, 69, 13, 198, 437, 4871, 13, 198, 198, 4871, 300, 565, 62, 34431, 62, 2536, 7822, 13, 198, 220, 2446, 3868, 62, 50033, 62, 525, 69, 93, 5143, 13, 198, 220, 220, 220, 269, 62, 20274, 796, 4600 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
FUNCTION-POOL ZWWWFORM. "MESSAGE-ID .. TYPE-POOLS OLE2. Type-pools SBDST. TYPES: BEGIN OF T_STRUC, FIELD_NAME TYPE ZWWW_FIELD_CATALOG-FIELD_NAME, TYPE(1), FIND_TEXT TYPE ZWWW_VALUES-FIND_TEXT, FIELD_HEADER TYPE ZWWW_VALUES-VALUE, NO_OUT TYPE ZWWW_FIELD_CATALOG-NO_OUT, NO_ZERO type ZWWW_FIELD_CATALOG-NO_ZERO, NO_CONVEXT type ZWWW_FIELD_CATALOG-NO_CONVEXT, EDIT_MASK type LVC_EDTMSK, COL_POS type I, tabix type sy-tabix, END OF T_STRUC, TT_STRUC TYPE STANDARD TABLE OF T_STRUC, tt_Values type standard table of ZWWW_VALUES, tt_Files type standard table of ZWWW_FILES, t_FileType type char50, t_Ext type char255, tt_Strings type standard table of string with key table_line. *Types: * Begin of t_Conv, * Chr, * Str(4), * End of t_Conv, * tt_Conv type standard table of t_Conv. * *Data: * it_Conv type tt_Conv with header line. Types: Begin of t_TT, Name type string, End of t_TT, tt_TT type standard table of t_TT with key Name. Types: Begin of t_Bookmark, Name(50) type c, PosBeg type i, PosEnd type i, Status, "D - ######## it_New type tt_Strings, End of t_Bookmark, tt_Bookmarks type standard table of t_Bookmark. Types: tt_Sort_Val type standard table of ZWWW_VALUES. Constants: X_TAB(1) TYPE X VALUE '09', X_0D(1) TYPE X VALUE '0D', X_0A(1) TYPE X VALUE '0A', X_FFFE(2) type X value 'FFFE'. DATA: Char_Ascii(255) value '', * CHAR_CONV type C, CHAR_01 type C, CHAR_TAB type C, CHAR_0D TYPE C, CHAR_0A TYPE C, CHAR_LF(2) type C, Char_FFFE type C, DECIMAL_POINT. Type-pools: "#EC V#700 ABAP. "#EC V#700 Data: "#EC V#700 FrontendCodepage type ABAP_ENCODING. "#EC V#700 Data: UseUnicode value '', isWebDynpro value '', isWebGUI value '', isJavaGUI value '', isMAC value '', isLINUX value '', isBackGrnd value '', isBSP value '', * useJAR value '', Begin of FileJAR, Data type xstring, Len type i, MimeType type string, End of FileJAR. Data: FILENAME_type type FUPARAREF-STRUCTURE value 'STRING'. Types: Begin of t_Parameters, Clear_Temp, Conv_Exit(1), End of t_Parameters. Data: gs_Parameters type t_Parameters. Data: g_Timlo type string, g_TimloAppendix type string. Load-of-Program. Select single STRUCTURE into FILENAME_type from FUPARAREF where FUNCNAME = 'GUI_DOWNLOAD' and PARAMETER = 'FILENAME'. Perform AssignCharX. Perform CheckGui. Perform Get_Default_Parameters changing gs_Parameters. Perform GetCodepage "#EC V#700 using UseUnicode "#EC V#700 changing FrontendCodepage. "#EC V#700 Define Free_object. If &1-Handle > 0. Free object &1. Clear &1. EndIf. End-of-Definition.
[ 42296, 4177, 2849, 12, 16402, 3535, 1168, 17947, 54, 21389, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 44, 1546, 4090, 8264, 12, 2389, 11485, 198, 198, 25216, 12, 16402, 3535, 50, 440, 2538, 17, 13, 198, 6030, 12, 7742, 82, 311, 14529, 2257, 13, 198, 198, 9936, 47, 1546, 25, 198, 220, 347, 43312, 3963, 309, 62, 18601, 9598, 11, 198, 220, 220, 220, 18930, 24639, 62, 20608, 41876, 1168, 17947, 54, 62, 44603, 62, 34, 1404, 1847, 7730, 12, 44603, 62, 20608, 11, 198, 220, 220, 220, 41876, 7, 16, 828, 198, 220, 220, 220, 376, 12115, 62, 32541, 220, 220, 220, 41876, 1168, 17947, 54, 62, 23428, 35409, 12, 37, 12115, 62, 32541, 11, 198, 220, 220, 220, 18930, 24639, 62, 37682, 1137, 41876, 1168, 17947, 54, 62, 23428, 35409, 12, 39488, 11, 198, 220, 220, 220, 8005, 62, 12425, 220, 220, 220, 220, 220, 220, 41876, 1168, 17947, 54, 62, 44603, 62, 34, 1404, 1847, 7730, 12, 15285, 62, 12425, 11, 198, 220, 220, 220, 8005, 62, 57, 34812, 220, 220, 220, 220, 220, 2099, 1168, 17947, 54, 62, 44603, 62, 34, 1404, 1847, 7730, 12, 15285, 62, 57, 34812, 11, 198, 220, 220, 220, 8005, 62, 10943, 6089, 25010, 220, 220, 2099, 1168, 17947, 54, 62, 44603, 62, 34, 1404, 1847, 7730, 12, 15285, 62, 10943, 6089, 25010, 11, 198, 220, 220, 220, 48483, 62, 31180, 42, 220, 220, 220, 2099, 406, 15922, 62, 1961, 51, 5653, 42, 11, 198, 220, 220, 220, 20444, 62, 37997, 220, 220, 220, 220, 220, 2099, 314, 11, 198, 220, 220, 220, 7400, 844, 220, 220, 220, 220, 220, 220, 220, 2099, 827, 12, 8658, 844, 11, 198, 220, 23578, 3963, 309, 62, 18601, 9598, 11, 628, 220, 26653, 62, 18601, 9598, 41876, 49053, 9795, 43679, 3963, 309, 62, 18601, 9598, 11, 628, 220, 256, 83, 62, 40161, 220, 2099, 3210, 3084, 286, 1168, 17947, 54, 62, 23428, 35409, 11, 198, 220, 256, 83, 62, 25876, 220, 220, 2099, 3210, 3084, 286, 1168, 17947, 54, 62, 46700, 1546, 11, 198, 220, 256, 62, 8979, 6030, 2099, 1149, 1120, 11, 198, 220, 256, 62, 11627, 2099, 1149, 13381, 11, 628, 220, 256, 83, 62, 13290, 654, 2099, 3210, 3084, 286, 4731, 198, 220, 220, 220, 351, 1994, 3084, 62, 1370, 13, 198, 198, 9, 31431, 25, 198, 9, 220, 16623, 286, 256, 62, 3103, 85, 11, 198, 9, 220, 220, 220, 49369, 11, 198, 9, 220, 220, 220, 4285, 7, 19, 828, 198, 9, 220, 5268, 286, 256, 62, 3103, 85, 11, 198, 9, 220, 256, 83, 62, 3103, 85, 2099, 3210, 3084, 286, 256, 62, 3103, 85, 13, 198, 9, 198, 9, 6601, 25, 198, 9, 220, 340, 62, 3103, 85, 2099, 256, 83, 62, 3103, 85, 351, 13639, 1627, 13, 198, 198, 31431, 25, 198, 220, 16623, 286, 256, 62, 15751, 11, 198, 220, 220, 220, 6530, 2099, 4731, 11, 198, 220, 5268, 286, 256, 62, 15751, 11, 198, 220, 256, 83, 62, 15751, 2099, 3210, 3084, 286, 256, 62, 15751, 198, 220, 220, 220, 351, 1994, 6530, 13, 198, 198, 31431, 25, 198, 220, 16623, 286, 256, 62, 10482, 4102, 11, 198, 220, 220, 220, 6530, 7, 1120, 8, 2099, 269, 11, 198, 220, 220, 220, 18574, 24586, 220, 2099, 1312, 11, 198, 220, 220, 220, 18574, 12915, 220, 2099, 1312, 11, 198, 220, 220, 220, 12678, 11, 220, 220, 220, 220, 220, 220, 220, 220, 366, 35, 532, 46424, 21017, 198, 220, 220, 220, 340, 62, 3791, 2099, 256, 83, 62, 13290, 654, 11, 198, 220, 5268, 286, 256, 62, 10482, 4102, 11, 198, 220, 256, 83, 62, 10482, 14306, 2099, 3210, 3084, 286, 256, 62, 10482, 4102, 13, 198, 31431, 25, 198, 220, 220, 220, 256, 83, 62, 42758, 62, 7762, 2099, 3210, 3084, 286, 1168, 17947, 54, 62, 23428, 35409, 13, 628, 198, 34184, 1187, 25, 198, 220, 1395, 62, 5603, 33, 7, 16, 8, 41876, 1395, 26173, 8924, 705, 2931, 3256, 198, 220, 1395, 62, 15, 35, 7, 16, 8, 220, 41876, 1395, 26173, 8924, 705, 15, 35, 3256, 198, 220, 1395, 62, 15, 32, 7, 16, 8, 220, 41876, 1395, 26173, 8924, 705, 15, 32, 3256, 198, 220, 1395, 62, 5777, 15112, 7, 17, 8, 2099, 1395, 1988, 705, 5777, 15112, 4458, 628, 198, 198, 26947, 25, 198, 220, 3178, 62, 1722, 979, 72, 7, 13381, 8, 1988, 705, 3256, 198, 9, 220, 28521, 62, 10943, 53, 2099, 327, 11, 198, 220, 28521, 62, 486, 220, 2099, 327, 11, 198, 220, 28521, 62, 5603, 33, 2099, 327, 11, 198, 220, 28521, 62, 15, 35, 220, 41876, 327, 11, 198, 220, 28521, 62, 15, 32, 220, 41876, 327, 11, 198, 220, 28521, 62, 43, 37, 7, 17, 8, 2099, 327, 11, 198, 220, 3178, 62, 5777, 15112, 220, 2099, 327, 11, 198, 220, 27196, 3955, 1847, 62, 16402, 12394, 13, 628, 198, 6030, 12, 7742, 82, 25, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 569, 2, 9879, 198, 220, 9564, 2969, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 569, 2, 9879, 198, 6601, 25, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 569, 2, 9879, 198, 220, 8880, 437, 43806, 538, 496, 2099, 9564, 2969, 62, 24181, 3727, 2751, 13, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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ATA mt_messages TYPE STANDARD TABLE OF REF TO zcl_protobuf2_message WITH EMPTY KEY. ENDCLASS. CLASS zcl_protobuf2_file IMPLEMENTATION. ENDCLASS.
[ 31631, 1976, 565, 62, 11235, 672, 3046, 17, 62, 7753, 5550, 20032, 17941, 44731, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 42865, 45079, 62, 37348, 1095, 41876, 49053, 9795, 43679, 3963, 4526, 37, 5390, 1976, 565, 62, 11235, 672, 3046, 17, 62, 20500, 13315, 38144, 9936, 35374, 13, 198, 10619, 31631, 13, 198, 198, 31631, 1976, 565, 62, 11235, 672, 3046, 17, 62, 7753, 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 ]
"! <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/TRAVEL19 "! @parameter et_booking | Table of evaluated Bookings like /DMO/BOOKING19 "! @parameter et_booking_supplement | Table of evaluated Booking Supplements like /DMO/BOOK_SUP_19 "! @parameter et_messages | Table of occurred messages "! FUNCTION /DMO/FLIGHT_TRAVEL_UPDATE19. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" REFERENCE(IS_TRAVEL) TYPE /DMO/IF_FLIGHT_LEGACY19=>TS_TRAVEL_IN *" REFERENCE(IS_TRAVELX) TYPE /DMO/IF_FLIGHT_LEGACY19=>TS_TRAVEL_INX *" REFERENCE(IT_BOOKING) TYPE /DMO/IF_FLIGHT_LEGACY19=>TT_BOOKING_IN *" OPTIONAL *" REFERENCE(IT_BOOKINGX) TYPE *" /DMO/IF_FLIGHT_LEGACY19=>TT_BOOKING_INX OPTIONAL *" REFERENCE(IT_BOOKING_SUPPLEMENT) TYPE *" /DMO/IF_FLIGHT_LEGACY19=>TT_BOOKING_SUPPLEMENT_IN OPTIONAL *" REFERENCE(IT_BOOKING_SUPPLEMENTX) TYPE *" /DMO/IF_FLIGHT_LEGACY19=>TT_BOOKING_SUPPLEMENT_INX OPTIONAL *" EXPORTING *" REFERENCE(ES_TRAVEL) TYPE /DMO/TRAVEL19 *" REFERENCE(ET_BOOKING) TYPE /DMO/IF_FLIGHT_LEGACY19=>TT_BOOKING *" REFERENCE(ET_BOOKING_SUPPLEMENT) TYPE *" /DMO/IF_FLIGHT_LEGACY19=>TT_BOOKING_SUPPLEMENT *" REFERENCE(ET_MESSAGES) TYPE /DMO/IF_FLIGHT_LEGACY19=>TT_MESSAGE *"---------------------------------------------------------------------- CLEAR es_travel. CLEAR et_booking. CLEAR et_booking_supplement. CLEAR et_messages. /dmo/cl_flight_legacy19=>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_legacy19=>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, 1129, 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, 1129, 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, 1129, 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, 1129, 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, 1129, 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, 1129, 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, 1129, 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, 1129, 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, 1129, 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, 1129, 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, 1129, 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, 1129, 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, 1129, 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, 1129, 14804, 15751, 62, 44, 1546, 4090, 8264, 198, 9, 1, 10097, 23031, 198, 220, 30301, 1503, 1658, 62, 35927, 13, 198, 220, 30301, 1503, 2123 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
INTERFACE zif_ca_umdi_data PUBLIC . " Data types TYPES: tv_relation_type TYPE c LENGTH 2. TYPES: " Ranges tt_r_object TYPE RANGE OF seoclass-clsname . TYPES: tt_r_package TYPE RANGE OF devclass . TYPES: tt_r_report TYPE RANGE OF reposrc-progname . " Constantes CONSTANTS: BEGIN OF cs_objects, BEGIN OF class_type, class TYPE seoclstype VALUE '0', interface TYPE seoclstype VALUE '1', END OF class_type, BEGIN OF types, program TYPE trobjtype VALUE 'PROG', class TYPE trobjtype VALUE 'CLAS', interface TYPE trobjtype VALUE 'INTF', function TYPE trobjtype VALUE 'FUNC', END OF types, BEGIN OF states, active TYPE r3state VALUE 'A', END OF states, BEGIN OF relation_type, inheritance TYPE tv_relation_type VALUE 'IN', use TYPE tv_relation_type VALUE 'US', implementing TYPE tv_relation_type VALUE 'IM', END OF relation_type, END OF cs_objects. CONSTANTS: BEGIN OF cs_message, BEGIN OF types, error TYPE c LENGTH 1 VALUE 'E', success TYPE c LENGTH 1 VALUE 'S', END OF types, END OF cs_message. CONSTANTS: BEGIN OF cs_yuml_app, bsp TYPE string VALUE 'ZCA_UMDI_YUML', page TYPE string VALUE 'index.html', END OF cs_yuml_app. " Types TYPES: BEGIN OF ts_sel_screen, class TYPE REF TO data, "tt_r_object, interface TYPE REF TO data, "tt_r_object, package TYPE REF TO data, "tt_r_package, report TYPE REF TO data, "tt_r_report, END OF ts_sel_screen . TYPES: " Lista de objetos encontrados según criterios de búsqueda BEGIN OF ts_object_list, type TYPE trobjtype, object TYPE progname, object_desc TYPE string, END OF ts_object_list . TYPES: tt_object_list TYPE STANDARD TABLE OF ts_object_list WITH EMPTY KEY . TYPES: " Lista de objetos y que referencias utilizan. BEGIN OF ts_object_list_ref, type TYPE trobjtype, object TYPE progname, object_desc TYPE string, internal_name TYPE progname, type_ref TYPE trobjtype, object_ref TYPE string, fullname_ref TYPE string, internal_name_ref TYPE progname, relation_type TYPE tv_relation_type, relation_type_desc TYPE string, END OF ts_object_list_ref . TYPES: tt_object_list_ref TYPE STANDARD TABLE OF ts_object_list_ref WITH EMPTY KEY . " Información técnica de la clase/interface TYPES: BEGIN OF ts_interface_typeinfo, interface TYPE seoclsname, END OF ts_interface_typeinfo. TYPES tt_interface_typeinfo TYPE STANDARD TABLE OF ts_interface_typeinfo WITH EMPTY KEY. TYPES: BEGIN OF ts_object_oo_typeinfo, type TYPE trobjtype, object TYPE progname, interfaces_impl TYPE tt_interface_typeinfo, inheritance TYPE seoclsname, END OF ts_object_oo_typeinfo. TYPES: tt_object_oo_typeinfo TYPE STANDARD TABLE OF ts_object_oo_typeinfo WITH EMPTY KEY. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 6888, 62, 388, 10989, 62, 7890, 198, 220, 44731, 764, 628, 220, 366, 6060, 3858, 198, 220, 24412, 47, 1546, 25, 31557, 62, 49501, 62, 4906, 41876, 269, 406, 49494, 362, 13, 628, 220, 24412, 47, 1546, 25, 198, 220, 366, 371, 6231, 198, 220, 220, 220, 256, 83, 62, 81, 62, 15252, 41876, 371, 27746, 3963, 384, 420, 31172, 12, 565, 82, 3672, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 256, 83, 62, 81, 62, 26495, 41876, 371, 27746, 3963, 1614, 4871, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 256, 83, 62, 81, 62, 13116, 41876, 371, 27746, 3963, 1128, 418, 6015, 12, 1676, 70, 3672, 764, 628, 198, 220, 366, 20217, 274, 198, 220, 7102, 2257, 1565, 4694, 25, 347, 43312, 3963, 50115, 62, 48205, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 1398, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1398, 220, 220, 220, 220, 41876, 384, 38679, 301, 2981, 26173, 8924, 705, 15, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7071, 41876, 384, 38679, 301, 2981, 26173, 8924, 705, 16, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1398, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 3858, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1430, 220, 220, 41876, 4161, 50007, 4906, 26173, 8924, 705, 4805, 7730, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1398, 220, 220, 220, 220, 41876, 4161, 50007, 4906, 26173, 8924, 705, 5097, 1921, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7071, 41876, 4161, 50007, 4906, 26173, 8924, 705, 1268, 10234, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2163, 220, 41876, 4161, 50007, 4906, 26173, 8924, 705, 42296, 34, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 3858, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 2585, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4075, 41876, 374, 18, 5219, 26173, 8924, 705, 32, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 2585, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 8695, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24155, 220, 41876, 31557, 62, 49501, 62, 4906, 26173, 8924, 705, 1268, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 779, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 31557, 62, 49501, 62, 4906, 26173, 8924, 705, 2937, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15427, 41876, 31557, 62, 49501, 62, 4906, 26173, 8924, 705, 3955, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 8695, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 50115, 62, 48205, 13, 198, 220, 7102, 2257, 1565, 4694, 25, 347, 43312, 3963, 50115, 62, 20500, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 3858, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4049, 220, 220, 41876, 269, 406, 49494, 352, 26173, 8924, 705, 36, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1943, 41876, 269, 406, 49494, 352, 26173, 8924, 705, 50, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 3858, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 50115, 62, 20500, 13, 198, 220, 7102, 2257, 1565, 4694, 25, 347, 43312, 3963, 50115, 62, 88, 388, 75, 62, 1324, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 275, 2777, 220, 41876, 4731, 26173, 8924, 705, 57, 8141, 62, 5883, 17931, 62, 56, 52, 5805, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2443, 41876, 4731, 26173, 8924, 705, 9630, 13, 6494, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 50115, 62, 88, 388, 75, 62, 1324, 13, 628, 198, 220, 366, 24897, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 40379, 62, 741, 62, 9612, 11, 198, 220, 220, 220, 220, 220, 1398, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1366, 11, 366, 926, 62, 81, 62, 15252, 11, 198, 220, 220, 220, 220, 220, 7071, 41876, 4526, 37, 5390, 1366, 11, 366, 926, 62, 81, 62, 15252, 11, 198, 220, 220, 220, 220, 220, 5301, 220, 220, 41876, 4526, 37, 5390, 1366, 11, 366, 926, 62, 81, 62, 26495, 11, 198, 220, 220, 220, 220, 220, 989, 220, 220, 220, 41876, 4526, 37, 5390, 1366, 11, 366, 926, 62, 81, 62, 13116, 11, 198, 220, 220, 220, 23578, 3963, 40379, 62, 741, 62, 9612, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 366, 7343, 64, 390, 26181, 316, 418, 2207, 756, 6335, 418, 384, 70, 21356, 77, 1955, 263, 4267, 390, 275, 21356, 16485, 18082, 198, 220, 220, 220, 347, 43312, 3963, 40379, 62, 15252 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
"! <p class="shorttext synchronized" lang="en">Default Filter Converter</p> CLASS zcl_qdrt_default_fc DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. INTERFACES: zif_qdrt_filter_converter. PROTECTED SECTION. PRIVATE SECTION. METHODS: conv_filter_ranges_to_int IMPORTING field_metadata TYPE zif_qdrt_ty_global=>ty_field_metadata CHANGING filter_ranges TYPE zif_qdrt_filter_provider=>ty_filter_ranges, conv_filter_range_to_int IMPORTING field_metadata TYPE zif_qdrt_ty_global=>ty_field_metadata CHANGING filter_range TYPE zif_qdrt_filter_provider=>ty_filter_range, convert_filter_values_to_int IMPORTING field_metadata TYPE zif_qdrt_ty_global=>ty_field_metadata CHANGING filter TYPE zif_qdrt_filter_provider=>ty_filter, convert_filter_value_to_int IMPORTING field_metadata TYPE zif_qdrt_ty_global=>ty_field_metadata CHANGING value TYPE string, convert_date_filter CHANGING value TYPE string, convert_boolean_filter CHANGING filter TYPE zif_qdrt_filter_provider=>ty_filter, convert_time_filter CHANGING value TYPE string. ENDCLASS. CLASS zcl_qdrt_default_fc IMPLEMENTATION. METHOD zif_qdrt_filter_converter~convert. LOOP AT filters ASSIGNING FIELD-SYMBOL(<filter>). DATA(field_metadata) = metadata_provider->get_field_metadata( fieldname = CONV #( <filter>-field_name ) type = filter_type ). CHECK field_metadata IS NOT INITIAL. conv_filter_ranges_to_int( EXPORTING field_metadata = field_metadata CHANGING filter_ranges = <filter>-ranges ). " check if conversion to some internal representation is needed convert_filter_values_to_int( EXPORTING field_metadata = field_metadata CHANGING filter = <filter> ). ENDLOOP. ENDMETHOD. METHOD conv_filter_ranges_to_int. LOOP AT filter_ranges ASSIGNING FIELD-SYMBOL(<filter_range>). conv_filter_range_to_int( EXPORTING field_metadata = field_metadata CHANGING filter_range = <filter_range> ). IF <filter_range>-operation IS INITIAL. DELETE filter_ranges. ENDIF. ENDLOOP. ENDMETHOD. METHOD conv_filter_range_to_int. DATA: contains_regex_pattern TYPE string. CASE filter_range-operation. WHEN zif_qdrt_c_ext_filter_ops=>contains OR zif_qdrt_c_ext_filter_ops=>starts_with OR zif_qdrt_c_ext_filter_ops=>ends_with. " Special handling fields with length 1. IF field_metadata-max_length = 1. filter_range-operation = zif_qdrt_c_filter_ops=>equals. ELSE. CASE filter_range-operation. WHEN zif_qdrt_c_ext_filter_ops=>contains. contains_regex_pattern = `*&1*`. WHEN zif_qdrt_c_ext_filter_ops=>starts_with. contains_regex_pattern = `&1*`. WHEN zif_qdrt_c_ext_filter_ops=>ends_with. contains_regex_pattern = `*&1`. ENDCASE. filter_range-operation = zif_qdrt_c_filter_ops=>contains_pattern. filter_range-value1 = replace( val = contains_regex_pattern sub = '&1' with = filter_range-value1 ). ENDIF. WHEN zif_qdrt_c_ext_filter_ops=>empty. filter_range-operation = zif_qdrt_c_filter_ops=>equals. CLEAR: filter_range-value1, filter_range-value2. " TODO: Some data types like RAW need another default value than '' WHEN zif_qdrt_c_ext_filter_ops=>between OR zif_qdrt_c_ext_filter_ops=>equals OR zif_qdrt_c_ext_filter_ops=>greater_equals OR zif_qdrt_c_ext_filter_ops=>greater_than OR zif_qdrt_c_ext_filter_ops=>lesser_equal OR zif_qdrt_c_ext_filter_ops=>lesser_than. WHEN OTHERS. CLEAR filter_range-operation. ENDCASE. ENDMETHOD. METHOD convert_filter_values_to_int. CASE field_metadata-type. WHEN zif_qdrt_c_edm_types=>boolean. convert_boolean_filter( CHANGING filter = filter ). WHEN OTHERS. IF filter-value IS NOT INITIAL. convert_filter_value_to_int( EXPORTING field_metadata = field_metadata CHANGING value = filter-value ). ENDIF. LOOP AT filter-items ASSIGNING FIELD-SYMBOL(<filter_item>). convert_filter_value_to_int( EXPORTING field_metadata = field_metadata CHANGING value = <filter_item>-key ). ENDLOOP. LOOP AT filter-ranges ASSIGNING FIELD-SYMBOL(<filter_range>) WHERE value1 IS NOT INITIAL OR value2 IS NOT INITIAL. IF <filter_range>-value1 IS NOT INITIAL. convert_filter_value_to_int( EXPORTING field_metadata = field_metadata CHANGING value = <filter_range>-value1 ). ENDIF. IF <filter_range>-value2 IS NOT INITIAL. convert_filter_value_to_int( EXPORTING field_metadata = field_metadata CHANGING value = <filter_range>-value2 ). ENDIF. ENDLOOP. ENDCASE. ENDMETHOD. METHOD convert_filter_value_to_int. value = cl_http_utility=>unescape_url( value ). CASE field_metadata-type. WHEN zif_qdrt_c_edm_types=>date. convert_date_filter( CHANGING value = value ). WHEN zif_qdrt_c_edm_types=>time. convert_time_filter( CHANGING value = value ). ENDCASE. ENDMETHOD. METHOD convert_date_filter. value = replace( val = value sub = '-' with = space occ = 0 ). ENDMETHOD. METHOD convert_boolean_filter. CLEAR: filter-ranges, filter-items. IF filter-value = 'true'. filter-items = VALUE #( ( key = abap_true ) ). ELSE. filter-items = VALUE #( ( key = abap_false ) ). ENDIF. CLEAR filter-value. ENDMETHOD. METHOD convert_time_filter. value = replace( val = value sub = ':' with = space occ = 0 ). ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 19463, 25853, 35602, 353, 3556, 79, 29, 198, 31631, 1976, 565, 62, 80, 7109, 83, 62, 12286, 62, 16072, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 25, 198, 220, 220, 220, 220, 220, 1976, 361, 62, 80, 7109, 83, 62, 24455, 62, 1102, 332, 353, 13, 198, 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, 3063, 62, 24455, 62, 81, 6231, 62, 1462, 62, 600, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 62, 38993, 41876, 1976, 361, 62, 80, 7109, 83, 62, 774, 62, 20541, 14804, 774, 62, 3245, 62, 38993, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8106, 62, 81, 6231, 220, 41876, 1976, 361, 62, 80, 7109, 83, 62, 24455, 62, 15234, 1304, 14804, 774, 62, 24455, 62, 81, 6231, 11, 198, 220, 220, 220, 220, 220, 3063, 62, 24455, 62, 9521, 62, 1462, 62, 600, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 62, 38993, 41876, 1976, 361, 62, 80, 7109, 83, 62, 774, 62, 20541, 14804, 774, 62, 3245, 62, 38993, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8106, 62, 9521, 220, 220, 41876, 1976, 361, 62, 80, 7109, 83, 62, 24455, 62, 15234, 1304, 14804, 774, 62, 24455, 62, 9521, 11, 198, 220, 220, 220, 220, 220, 10385, 62, 24455, 62, 27160, 62, 1462, 62, 600, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 62, 38993, 41876, 1976, 361, 62, 80, 7109, 83, 62, 774, 62, 20541, 14804, 774, 62, 3245, 62, 38993, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8106, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 80, 7109, 83, 62, 24455, 62, 15234, 1304, 14804, 774, 62, 24455, 11, 198, 220, 220, 220, 220, 220, 10385, 62, 24455, 62, 8367, 62, 1462, 62, 600, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 62, 38993, 41876, 1976, 361, 62, 80, 7109, 83, 62, 774, 62, 20541, 14804, 774, 62, 3245, 62, 38993, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 10385, 62, 4475, 62, 24455, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 10385, 62, 2127, 21052, 62, 24455, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8106, 41876, 1976, 361, 62, 80, 7109, 83, 62, 24455, 62, 15234, 1304, 14804, 774, 62, 24455, 11, 198, 220, 220, 220, 220, 220, 10385, 62, 2435, 62, 24455, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 41876, 4731, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 80, 7109, 83, 62, 12286, 62, 16072, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 80, 7109, 83, 62, 24455, 62, 1102, 332, 353, 93, 1102, 1851, 13, 628, 220, 220, 220, 17579, 3185, 5161, 16628, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 24455, 29, 737, 628, 220, 220, 220, 220, 220, 42865, 7, 3245, 62, 38993, 8, 796, 20150, 62, 15234, 1304, 3784, 1136, 62, 3245, 62, 38993, 7, 198, 220, 220, 220, 220, 220, 220, 220, 2214, 3672, 796, 7102, 53, 1303, 7, 1279, 24455, 29, 12, 3245, 62, 3672, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 796, 8106, 62, 4906, 6739, 198, 220, 220, 220, 220, 220, 5870, 25171, 2214, 62, 38993, 3180, 5626, 3268, 2043, 12576, 13, 628, 220, 220, 220, 220, 220, 3063, 62, 24455, 62, 81, 6231, 62, 1462, 62, 600, 7, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 62, 38993, 796, 2214, 62, 38993, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8106, 62, 81, 6231, 220, 796, 1279, 24455, 29, 12, 81, 6231, 6739, 628, 220, 220, 220, 220, 220, 366, 2198, 611, 11315, 284, 617, 5387, 10552, 318, 2622, 198, 220, 220, 220, 220, 220, 10385, 62, 24455, 62, 27160, 62, 1462, 62, 600, 7, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 62, 38993, 796, 2214, 62, 38993, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8106, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1279, 24455, 29, 6739, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 3063, 62, 24455, 62, 81, 6231, 62, 1462, 62, 600, 13, 628, 220, 220, 220, 17579, 3185, 5161, 8106, 62, 81, 6231, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 24455, 62, 9521, 29, 737, 198, 220, 220, 220, 220, 220, 3063, 62, 24455, 62, 9521, 62, 1462, 62, 600, 7, 198, 220, 220, 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, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_html_form DEFINITION PUBLIC FINAL CREATE PRIVATE . PUBLIC SECTION. INTERFACES zif_abapgit_html_form . CLASS-METHODS create IMPORTING !iv_form_id TYPE csequence OPTIONAL !iv_help_page TYPE csequence OPTIONAL RETURNING VALUE(ro_form) TYPE REF TO zcl_abapgit_html_form . METHODS render IMPORTING !iv_form_class TYPE csequence DEFAULT 'dialog-form' !io_values TYPE REF TO zcl_abapgit_string_map !io_validation_log TYPE REF TO zcl_abapgit_string_map OPTIONAL RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html . METHODS command IMPORTING !iv_label TYPE csequence !iv_action TYPE csequence !iv_cmd_type TYPE i DEFAULT zif_abapgit_html_form=>c_cmd_type-input RETURNING VALUE(ro_self) TYPE REF TO zcl_abapgit_html_form . METHODS text IMPORTING !iv_label TYPE csequence !iv_name TYPE csequence !iv_hint TYPE csequence OPTIONAL !iv_required TYPE abap_bool DEFAULT abap_false !iv_upper_case TYPE abap_bool DEFAULT abap_false !iv_readonly TYPE abap_bool DEFAULT abap_false !iv_password TYPE abap_bool DEFAULT abap_false !iv_placeholder TYPE csequence OPTIONAL !iv_side_action TYPE csequence OPTIONAL !iv_min TYPE i DEFAULT cl_abap_math=>min_int4 !iv_max TYPE i DEFAULT cl_abap_math=>max_int4 RETURNING VALUE(ro_self) TYPE REF TO zcl_abapgit_html_form . METHODS textarea IMPORTING !iv_label TYPE csequence !iv_name TYPE csequence !iv_hint TYPE csequence OPTIONAL !iv_required TYPE abap_bool DEFAULT abap_false !iv_readonly TYPE abap_bool DEFAULT abap_false !iv_placeholder TYPE csequence OPTIONAL RETURNING VALUE(ro_self) TYPE REF TO zcl_abapgit_html_form . METHODS number IMPORTING !iv_label TYPE csequence !iv_name TYPE csequence !iv_hint TYPE csequence OPTIONAL !iv_required TYPE abap_bool DEFAULT abap_false !iv_readonly TYPE abap_bool DEFAULT abap_false !iv_min TYPE i DEFAULT cl_abap_math=>min_int4 !iv_max TYPE i DEFAULT cl_abap_math=>max_int4 RETURNING VALUE(ro_self) TYPE REF TO zcl_abapgit_html_form . METHODS checkbox IMPORTING !iv_label TYPE csequence !iv_name TYPE csequence !iv_hint TYPE csequence OPTIONAL RETURNING VALUE(ro_self) TYPE REF TO zcl_abapgit_html_form . METHODS radio IMPORTING !iv_label TYPE csequence !iv_name TYPE csequence !iv_default_value TYPE csequence OPTIONAL !iv_hint TYPE csequence OPTIONAL RETURNING VALUE(ro_self) TYPE REF TO zcl_abapgit_html_form . METHODS option IMPORTING !iv_label TYPE csequence !iv_value TYPE csequence RETURNING VALUE(ro_self) TYPE REF TO zcl_abapgit_html_form . METHODS table IMPORTING !iv_label TYPE csequence !iv_name TYPE csequence !iv_hint TYPE csequence OPTIONAL RETURNING VALUE(ro_self) TYPE REF TO zcl_abapgit_html_form . METHODS column IMPORTING !iv_label TYPE csequence !iv_width TYPE csequence OPTIONAL !iv_readonly TYPE abap_bool DEFAULT abap_false RETURNING VALUE(ro_self) TYPE REF TO zcl_abapgit_html_form . METHODS start_group IMPORTING !iv_label TYPE csequence !iv_name TYPE csequence !iv_hint TYPE csequence OPTIONAL RETURNING VALUE(ro_self) TYPE REF TO zcl_abapgit_html_form . METHODS hidden IMPORTING !iv_name TYPE csequence RETURNING VALUE(ro_self) TYPE REF TO zcl_abapgit_html_form . METHODS get_fields RETURNING VALUE(rt_fields) TYPE zif_abapgit_html_form=>ty_fields . PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_attr, value TYPE string, error TYPE string, hint TYPE string, readonly TYPE string, placeholder TYPE string, required TYPE string, END OF ty_attr . DATA: mt_fields TYPE zif_abapgit_html_form=>ty_fields. DATA: mt_commands TYPE STANDARD TABLE OF zif_abapgit_html_form=>ty_command . DATA mv_form_id TYPE string . DATA mv_help_page TYPE string . METHODS render_field IMPORTING !ii_html TYPE REF TO zif_abapgit_html !io_values TYPE REF TO zcl_abapgit_string_map !io_validation_log TYPE REF TO zcl_abapgit_string_map !is_field TYPE zif_abapgit_html_form=>ty_field . METHODS render_field_text IMPORTING !ii_html TYPE REF TO zif_abapgit_html !is_field TYPE zif_abapgit_html_form=>ty_field !is_attr TYPE ty_attr . METHODS render_field_textarea IMPORTING !ii_html TYPE REF TO zif_abapgit_html !is_field TYPE zif_abapgit_html_form=>ty_field !is_attr TYPE ty_attr . METHODS render_field_checkbox IMPORTING !ii_html TYPE REF TO zif_abapgit_html !is_field TYPE zif_abapgit_html_form=>ty_field !is_attr TYPE ty_attr . METHODS render_field_radio IMPORTING !ii_html TYPE REF TO zif_abapgit_html !is_field TYPE zif_abapgit_html_form=>ty_field !is_attr TYPE ty_attr . METHODS render_field_table IMPORTING !ii_html TYPE REF TO zif_abapgit_html !is_field TYPE zif_abapgit_html_form=>ty_field !is_attr TYPE ty_attr !io_values TYPE REF TO zcl_abapgit_string_map . METHODS render_command IMPORTING !ii_html TYPE REF TO zif_abapgit_html !is_cmd TYPE zif_abapgit_html_form=>ty_command . METHODS render_field_hidden IMPORTING !ii_html TYPE REF TO zif_abapgit_html !is_field TYPE zif_abapgit_html_form=>ty_field !is_attr TYPE ty_attr . ENDCLASS. CLASS zcl_abapgit_html_form IMPLEMENTATION. METHOD checkbox. DATA ls_field LIKE LINE OF mt_fields. ls_field-type = zif_abapgit_html_form=>c_field_type-checkbox. ls_field-name = iv_name. ls_field-label = iv_label. ls_field-hint = iv_hint. APPEND ls_field TO mt_fields. ro_self = me. ENDMETHOD. METHOD column. FIELD-SYMBOLS <ls_last> LIKE LINE OF mt_fields. DATA ls_column LIKE LINE OF <ls_last>-subitems. DATA lv_size TYPE i. lv_size = lines( mt_fields ). ASSERT lv_size > 0. " Exception ? Maybe add zcx_no_check ? READ TABLE mt_fields INDEX lv_size ASSIGNING <ls_last>. ASSERT sy-subrc = 0. ASSERT <ls_last>-type = zif_abapgit_html_form=>c_field_type-table. ls_column-label = iv_label. ls_column-value = iv_width. ls_column-readonly = iv_readonly. APPEND ls_column TO <ls_last>-subitems. ro_self = me. ENDMETHOD. METHOD command. DATA ls_cmd LIKE LINE OF mt_commands. ASSERT iv_cmd_type BETWEEN 1 AND 4. ls_cmd-label = iv_label. ls_cmd-action = iv_action. ls_cmd-cmd_type = iv_cmd_type. APPEND ls_cmd TO mt_commands. ro_self = me. ENDMETHOD. METHOD create. DATA lv_ts TYPE timestampl. CREATE OBJECT ro_form. ro_form->mv_form_id = iv_form_id. ro_form->mv_help_page = iv_help_page. IF ro_form->mv_form_id IS INITIAL. GET TIME STAMP FIELD lv_ts. ro_form->mv_form_id = |form_{ lv_ts }|. ENDIF. ENDMETHOD. METHOD get_fields. rt_fields = mt_fields. ENDMETHOD. METHOD hidden. DATA ls_field LIKE LINE OF mt_fields. ls_field-type = zif_abapgit_html_form=>c_field_type-hidden. ls_field-name = iv_name. APPEND ls_field TO mt_fields. ENDMETHOD. METHOD number. DATA ls_field LIKE LINE OF mt_fields. ls_field-type = zif_abapgit_html_form=>c_field_type-number. ls_field-name = iv_name. ls_field-label = iv_label. ls_field-readonly = iv_readonly. ls_field-min = iv_min. ls_field-max = iv_max. ls_field-hint = iv_hint. ls_field-required = iv_required. APPEND ls_field TO mt_fields. ro_self = me. ENDMETHOD. METHOD option. FIELD-SYMBOLS <ls_last> LIKE LINE OF mt_fields. DATA ls_option LIKE LINE OF <ls_last>-subitems. DATA lv_size TYPE i. lv_size = lines( mt_fields ). ASSERT lv_size > 0. " Exception ? Maybe add zcx_no_check ? READ TABLE mt_fields INDEX lv_size ASSIGNING <ls_last>. ASSERT sy-subrc = 0. ASSERT <ls_last>-type = zif_abapgit_html_form=>c_field_type-radio. " Or dropdown - TODO in future ls_option-label = iv_label. ls_option-value = iv_value. APPEND ls_option TO <ls_last>-subitems. ro_self = me. ENDMETHOD. METHOD radio. DATA ls_field LIKE LINE OF mt_fields. ls_field-type = zif_abapgit_html_form=>c_field_type-radio. ls_field-name = iv_name. ls_field-label = iv_label. ls_field-default_value = iv_default_value. ls_field-hint = iv_hint. APPEND ls_field TO mt_fields. ro_self = me. ENDMETHOD. METHOD render. FIELD-SYMBOLS <ls_field> LIKE LINE OF mt_fields. FIELD-SYMBOLS <ls_cmd> LIKE LINE OF mt_commands. DATA lv_hint TYPE string. DATA ls_form_id TYPE string. DATA lv_cur_group TYPE string. DATA lv_url TYPE string. IF mv_form_id IS NOT INITIAL. ls_form_id = | id="{ mv_form_id }"|. ENDIF. CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( |<div class="dialog { iv_form_class }">| ). " to center use 'dialog-form-center' ri_html->add( |<form method="post"{ ls_form_id }>| ). " Add hidden button that triggers main command when pressing enter LOOP AT mt_commands ASSIGNING <ls_cmd> WHERE cmd_type = zif_abapgit_html_form=>c_cmd_type-input_main. ri_html->add( |<button type="submit" formaction="sapevent:{ <ls_cmd>-action }" class="hidden-submit" aria-hidden="true" tabindex="-1"></button>| ). EXIT. ENDLOOP. LOOP AT mt_fields ASSIGNING <ls_field>. AT FIRST. IF <ls_field>-type <> zif_abapgit_html_form=>c_field_type-field_group. ri_html->add( |<ul>| ). ENDIF. ENDAT. IF <ls_field>-type = zif_abapgit_html_form=>c_field_type-field_group. IF lv_cur_group IS NOT INITIAL AND lv_cur_group <> <ls_field>-name. ri_html->add( |</ul>| ). ri_html->add( |</fieldset>| ). ENDIF. IF <ls_field>-hint IS NOT INITIAL. lv_hint = | title="{ <ls_field>-hint }"|. ELSE. lv_hint = ''. ENDIF. lv_cur_group = <ls_field>-name. ri_html->add( |<fieldset name="{ <ls_field>-name }">| ). ri_html->add( |<legend{ lv_hint }>{ <ls_field>-label }</legend>| ). ri_html->add( |<ul>| ). CONTINUE. ENDIF. render_field( ii_html = ri_html io_values = io_values io_validation_log = io_validation_log is_field = <ls_field> ). AT LAST. ri_html->add( |</ul>| ). IF lv_cur_group IS NOT INITIAL. ri_html->add( |</fieldset>| ). ENDIF. ENDAT. ENDLOOP. ri_html->add( |<ul>| ). ri_html->add( |<li class="dialog-commands">| ). IF mv_help_page IS NOT INITIAL. lv_url = escape( val = mv_help_page format = cl_abap_format=>e_url ). ri_html->add_a( iv_txt = zcl_abapgit_gui_buttons=>help( ) iv_act = |{ zif_abapgit_definitions=>c_action-url }?url={ lv_url }| iv_class = 'dialog-help' iv_title = 'Help' ). ENDIF. LOOP AT mt_commands ASSIGNING <ls_cmd>. render_command( ii_html = ri_html is_cmd = <ls_cmd> ). ENDLOOP. ri_html->add( |</li>| ). ri_html->add( |</ul>| ). ri_html->add( |</form>| ). ri_html->add( |</div>| ). ENDMETHOD. METHOD render_command. CASE is_cmd-cmd_type. WHEN zif_abapgit_html_form=>c_cmd_type-link. ii_html->add_a( iv_txt = is_cmd-label iv_act = is_cmd-action iv_class = 'dialog-commands' ). WHEN zif_abapgit_html_form=>c_cmd_type-button. ii_html->add( |<button type="submit" name="action" value="{ is_cmd-action }" class="action-commands">{ is_cmd-label }</button>| ). WHEN zif_abapgit_html_form=>c_cmd_type-input. ii_html->add( |<input type="submit" value="{ is_cmd-label }" formaction="sapevent:{ is_cmd-action }">| ). WHEN zif_abapgit_html_form=>c_cmd_type-input_main. ii_html->add( |<input type="submit" value="{ is_cmd-label }" class="main" formaction="sapevent:{ is_cmd-action }">| ). WHEN OTHERS. ASSERT 0 = 1. ENDCASE. ENDMETHOD. METHOD render_field. DATA: ls_attr TYPE ty_attr, lv_item_class TYPE string. " Get value and validation error ls_attr-value = escape( val = io_values->get( is_field-name ) format = cl_abap_format=>e_html_attr ). IF io_validation_log IS BOUND. ls_attr-error = io_validation_log->get( is_field-name ). IF ls_attr-error IS NOT INITIAL. ls_attr-error = escape( val = ls_attr-error format = cl_abap_format=>e_html_text ). ls_attr-error = |<small>{ ls_attr-error }</small>|. ENDIF. ENDIF. " Prepare field attributes IF is_field-required = abap_true. ls_attr-required = ' <em>*</em>'. ENDIF. IF is_field-hint IS NOT INITIAL. ls_attr-hint = escape( val = is_field-hint format = cl_abap_format=>e_html_attr ). ls_attr-hint = | title="{ ls_attr-hint }"|. ENDIF. IF is_field-placeholder IS NOT INITIAL. ls_attr-placeholder = escape( val = is_field-placeholder format = cl_abap_format=>e_html_attr ). ls_attr-placeholder = | placeholder="{ ls_attr-placeholder }"|. ENDIF. IF is_field-readonly = abap_true. ls_attr-readonly = ' readonly'. ENDIF. " Prepare item class lv_item_class = is_field-item_class. IF ls_attr-error IS NOT INITIAL. lv_item_class = condense( lv_item_class && ' error' ). ENDIF. IF is_field-type = zif_abapgit_html_form=>c_field_type-text AND is_field-max BETWEEN 1 AND 20. " Reduced width for short fields lv_item_class = lv_item_class && ' w40'. ENDIF. IF lv_item_class IS NOT INITIAL. lv_item_class = | class="{ lv_item_class }"|. ENDIF. " Render field ii_html->add( |<li{ lv_item_class }>| ). CASE is_field-type. WHEN zif_abapgit_html_form=>c_field_type-text OR zif_abapgit_html_form=>c_field_type-number. render_field_text( ii_html = ii_html is_field = is_field is_attr = ls_attr ). WHEN zif_abapgit_html_form=>c_field_type-textarea. render_field_textarea( ii_html = ii_html is_field = is_field is_attr = ls_attr ). WHEN zif_abapgit_html_form=>c_field_type-checkbox. render_field_checkbox( ii_html = ii_html is_field = is_field is_attr = ls_attr ). WHEN zif_abapgit_html_form=>c_field_type-radio. render_field_radio( ii_html = ii_html is_field = is_field is_attr = ls_attr ). WHEN zif_abapgit_html_form=>c_field_type-table. render_field_table( ii_html = ii_html is_field = is_field is_attr = ls_attr io_values = io_values ). WHEN zif_abapgit_html_form=>c_field_type-hidden. render_field_hidden( ii_html = ii_html is_field = is_field is_attr = ls_attr ). WHEN OTHERS. ASSERT 1 = 0. ENDCASE. ii_html->add( '</li>' ). ENDMETHOD. METHOD render_field_checkbox. DATA lv_checked TYPE string. IF is_attr-error IS NOT INITIAL. ii_html->add( is_attr-error ). ENDIF. IF is_attr-value = abap_true OR is_attr-value = 'on'. " boolc return ` ` which is not initial -> bug after 1st validation lv_checked = ' checked'. ENDIF. ii_html->add( |<input type="checkbox" name="{ is_field-name }" id="{ is_field-name }"{ lv_checked }>| ). ii_html->add( |<label for="{ is_field-name }"{ is_attr-hint }>{ is_field-label }</label>| ). ENDMETHOD. METHOD render_field_hidden. ii_html->add( |<input type="hidden" name="{ is_field-name }" id="{ is_field-name }" value="{ is_attr-value }">| ). ENDMETHOD. METHOD render_field_radio. DATA: lv_checked TYPE string, lv_opt_id TYPE string, lv_opt_value TYPE string. FIELD-SYMBOLS <ls_opt> LIKE LINE OF is_field-subitems. ii_html->add( |<label{ is_attr-hint }>{ is_field-label }</label>| ). IF is_attr-error IS NOT INITIAL. ii_html->add( is_attr-error ). ENDIF. ii_html->add( |<div class="radio-container">| ). LOOP AT is_field-subitems ASSIGNING <ls_opt>. lv_opt_value = escape( val = <ls_opt>-value format = cl_abap_format=>e_html_attr ). CLEAR lv_checked. IF is_attr-value = lv_opt_value OR ( is_attr-value IS INITIAL AND lv_opt_value = is_field-default_value ). lv_checked = ' checked'. ENDIF. lv_opt_id = |{ is_field-name }{ sy-tabix }|. ii_html->add( |<input type="radio" name="{ is_field-name }" id="{ lv_opt_id }" value="{ lv_opt_value }"{ lv_checked }>| ). ii_html->add( |<label for="{ lv_opt_id }">{ <ls_opt>-label }</label>| ). ENDLOOP. ii_html->add( '</div>' ). ENDMETHOD. METHOD render_field_table. DATA: lv_value TYPE string, lv_readonly TYPE string, lv_rows TYPE i, lv_cell_id TYPE string. FIELD-SYMBOLS <ls_subitem> LIKE LINE OF is_field-subitems. ii_html->add( |<label for="{ is_field-name }"{ is_attr-hint }>{ is_field-label }</label>| ). IF is_attr-error IS NOT INITIAL. ii_html->add( is_attr-error ). ENDIF. ii_html->add( |<table name="{ is_field-name }" id="{ is_field-name }" class="table-container">| ). ii_html->add( |<thead>| ). ii_html->add( |<tr>| ). LOOP AT is_field-subitems ASSIGNING <ls_subitem>. CLEAR lv_value. IF <ls_subitem>-value IS NOT INITIAL. lv_value = escape( val = <ls_subitem>-value format = cl_abap_format=>e_html_attr ). lv_value = | width="{ lv_value }"|. ENDIF. ii_html->add( |<td{ lv_value }>{ <ls_subitem>-label }</td>| ). ENDLOOP. ii_html->add( |</tr>| ). ii_html->add( |</thead>| ). lv_rows = io_values->get( |{ is_field-name }-{ zif_abapgit_html_form=>c_rows }| ). ii_html->add( |<tbody>| ). DO lv_rows TIMES. lv_rows = sy-index. ii_html->add( |<tr>| ). LOOP AT is_field-subitems ASSIGNING <ls_subitem>. lv_cell_id = |{ is_field-name }-{ lv_rows }-{ sy-tabix }|. lv_value = escape( val = io_values->get( lv_cell_id ) format = cl_abap_format=>e_html_attr ). CLEAR lv_readonly. IF <ls_subitem>-readonly = abap_true. lv_readonly = | readonly|. ENDIF. ii_html->add( |<td><input type="text" name="{ lv_cell_id }" id="{ lv_cell_id }" value="{ lv_value }"{ lv_readonly }></td>| ). ENDLOOP. ii_html->add( |</tr>| ). ENDDO. ii_html->add( |</tbody>| ). ii_html->add( |</table>| ). " Hidden field with number of rows to simplify getting values from form lv_value = |{ is_field-name }-{ zif_abapgit_html_form=>c_rows }|. ii_html->add( |<input type="number" name="{ lv_value }" id="{ lv_value }" value="{ lv_rows }" style="display:none">| ). ENDMETHOD. METHOD render_field_text. DATA lv_type TYPE string. ii_html->add( |<label for="{ is_field-name }"{ is_attr-hint }>{ is_field-label }{ is_attr-required }</label>| ). IF is_attr-error IS NOT INITIAL. ii_html->add( is_attr-error ). ENDIF. IF is_field-side_action IS NOT INITIAL. ii_html->add( '<div class="input-container">' ). " Ugly :( ENDIF. IF is_field-type = zif_abapgit_html_form=>c_field_type-number. lv_type = 'number'. ELSEIF is_field-password = abap_true. lv_type = 'password'. ELSE. lv_type = 'text'. ENDIF. ii_html->add( |<input type="{ lv_type }" name="{ is_field-name }" id="{ is_field-name }" value="{ is_attr-value }" { is_field-dblclick }{ is_attr-placeholder }{ is_attr-readonly }>| ). IF is_field-side_action IS NOT INITIAL. ii_html->add( '</div>' ). ii_html->add( '<div class="command-container">' ). ii_html->add( |<input type="submit" value="&#x2026;" formaction="sapevent:{ is_field-side_action }">| ). ii_html->add( '</div>' ). ENDIF. ENDMETHOD. METHOD render_field_textarea. DATA lv_rows TYPE i. DATA lv_html TYPE string. ii_html->add( |<label for="{ is_field-name }"{ is_attr-hint }>{ is_field-label }{ is_attr-required }</label>| ). IF is_attr-error IS NOT INITIAL. ii_html->add( is_attr-error ). ENDIF. lv_rows = lines( zcl_abapgit_convert=>split_string( is_attr-value ) ). " Avoid adding line-breaks inside textarea tag (except for the actual value) lv_html = |<textarea name="{ is_field-name }" id="{ is_field-name }" rows="{ lv_rows }"{ is_attr-readonly }>|. lv_html = lv_html && escape( val = is_attr-value format = cl_abap_format=>e_html_attr ). lv_html = lv_html && |</textarea>|. ii_html->add( lv_html ). ENDMETHOD. METHOD start_group. DATA ls_field LIKE LINE OF mt_fields. ls_field-type = zif_abapgit_html_form=>c_field_type-field_group. ls_field-label = iv_label. ls_field-name = iv_name. ls_field-hint = iv_hint. APPEND ls_field TO mt_fields. ro_self = me. ENDMETHOD. METHOD table. DATA ls_field LIKE LINE OF mt_fields. ls_field-type = zif_abapgit_html_form=>c_field_type-table. ls_field-name = iv_name. ls_field-label = iv_label. ls_field-hint = iv_hint. APPEND ls_field TO mt_fields. ro_self = me. ENDMETHOD. METHOD text. DATA ls_field LIKE LINE OF mt_fields. ls_field-type = zif_abapgit_html_form=>c_field_type-text. ls_field-name = iv_name. ls_field-label = iv_label. ls_field-upper_case = iv_upper_case. ls_field-readonly = iv_readonly. ls_field-min = iv_min. ls_field-max = iv_max. ls_field-password = iv_password. ls_field-hint = iv_hint. ls_field-required = iv_required. ls_field-placeholder = iv_placeholder. IF iv_side_action IS NOT INITIAL AND mv_form_id IS NOT INITIAL. ls_field-item_class = 'with-command'. ls_field-side_action = iv_side_action. ls_field-dblclick = | ondblclick="document.getElementById('{ mv_form_id }').action = 'sapevent:{ iv_side_action }'; document.getElementById('{ mv_form_id }').submit()"|. ENDIF. APPEND ls_field TO mt_fields. ro_self = me. ENDMETHOD. METHOD textarea. DATA ls_field LIKE LINE OF mt_fields. ls_field-type = zif_abapgit_html_form=>c_field_type-textarea. ls_field-name = iv_name. ls_field-label = iv_label. ls_field-readonly = iv_readonly. ls_field-hint = iv_hint. ls_field-required = iv_required. ls_field-placeholder = iv_placeholder. APPEND ls_field TO mt_fields. ro_self = me. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 687, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 6494, 62, 687, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 2251, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 687, 62, 312, 220, 220, 220, 41876, 269, 43167, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 16794, 62, 7700, 220, 41876, 269, 43167, 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, 687, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 687, 764, 198, 220, 220, 220, 337, 36252, 50, 8543, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 687, 62, 4871, 220, 220, 220, 220, 41876, 269, 43167, 5550, 38865, 705, 38969, 519, 12, 687, 6, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 27160, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 8841, 62, 8899, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 12102, 341, 62, 6404, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 8841, 62, 8899, 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, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 764, 198, 220, 220, 220, 337, 36252, 50, 3141, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 18242, 220, 220, 220, 220, 220, 41876, 269, 43167, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2673, 220, 220, 220, 220, 41876, 269, 43167, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 28758, 62, 4906, 220, 220, 41876, 1312, 5550, 38865, 1976, 361, 62, 397, 499, 18300, 62, 6494, 62, 687, 14804, 66, 62, 28758, 62, 4906, 12, 15414, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 944, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 687, 764, 198, 220, 220, 220, 337, 36252, 50, 2420, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 18242, 220, 220, 220, 220, 220, 220, 41876, 269, 43167, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 43167, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 71, 600, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 43167, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 35827, 220, 220, 220, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 45828, 62, 7442, 220, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 961, 8807, 220, 220, 220, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 28712, 220, 220, 220, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 5372, 13829, 41876, 269, 43167, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1589, 62, 2673, 41876, 269, 43167, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1084, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 5550, 38865, 537, 62, 397, 499, 62, 11018, 14804, 1084, 62, 600, 19, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 9806, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 5550, 38865, 537, 62, 397, 499, 62, 11018, 14804, 9806, 62, 600, 19, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 944, 8, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 687, 764, 198, 220, 220, 220, 337, 36252, 50, 2420, 20337, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 18242, 220, 220, 220, 220, 220, 220, 41876, 269, 43167, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 43167, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 71, 600, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 43167, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 35827, 220, 220, 220, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 961, 8807, 220, 220, 220, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 5372, 13829, 41876, 269, 43167, 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, 944, 8, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 687, 764, 198, 220, 220, 220, 337, 36252, 50, 1271, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 18242, 220, 220, 220, 220, 220, 41876, 269, 43167, 198, 220, 220, 220, 220, 220, 220, 220, 5145 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
INTERFACE zif_i_a2cc_metrics_2_json PUBLIC . METHODS to_json IMPORTING VALUE(metrics) TYPE ztti_a2cc_code_metrics analyze_dependecies TYPE abap_bool analyze_direct_cycles TYPE abap_bool RETURNING VALUE(result) TYPE string. endinterface.
[ 41358, 49836, 1976, 361, 62, 72, 62, 64, 17, 535, 62, 4164, 10466, 62, 17, 62, 17752, 198, 220, 44731, 764, 198, 220, 337, 36252, 50, 198, 220, 220, 220, 284, 62, 17752, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 4164, 10466, 8, 220, 220, 220, 220, 41876, 1976, 35671, 62, 64, 17, 535, 62, 8189, 62, 4164, 10466, 198, 220, 220, 220, 220, 220, 220, 220, 16602, 62, 45841, 721, 444, 220, 220, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 220, 220, 16602, 62, 12942, 62, 32503, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 13, 198, 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 ]
"! <h1>Flight Price Engine</h1> "! "! If no parameters are applied, the price of every flight will be recalculated. "! "! @parameter it_flight | Set of Flights which should be recalculate prices FUNCTION /DMO/FLIGHT_TRAVEL_CALC_PRI_17. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" REFERENCE(IT_FLIGHT) TYPE /DMO/IF_FLIGHT_LEGACY17=>TT_FLIGHT *" OPTIONAL *"---------------------------------------------------------------------- TYPES BEGIN OF ty_seats_occupied. INCLUDE TYPE /dmo/flight17. TYPES distance TYPE /dmo/connecti_17-distance. TYPES distance_unit TYPE /dmo/connecti_17-distance_unit. TYPES END OF ty_seats_occupied. TYPES: tt_flight TYPE STANDARD TABLE OF /dmo/flight17 WITH KEY client carrier_id connection_id flight_date. DATA: lt_seats_occupied TYPE TABLE OF ty_seats_occupied. IF it_flight IS SUPPLIED. SELECT FROM /dmo/booking17 AS booking JOIN /dmo/connecti_17 AS connection ON booking~carrier_id = connection~carrier_id AND booking~connection_id = connection~connection_id JOIN /dmo/flight17 AS flight ON booking~carrier_id = flight~carrier_id AND booking~connection_id = flight~connection_id AND booking~flight_date = flight~flight_date JOIN @it_flight AS t ON booking~carrier_id = t~carrier_id AND booking~connection_id = t~connection_id FIELDS booking~carrier_id, booking~connection_id, booking~flight_date, COUNT(*) AS seats_occupied, connection~distance, connection~distance_unit, flight~currency_code, flight~plane_type_id, flight~seats_max, flight~seats_occupied GROUP BY booking~carrier_id, booking~connection_id, booking~flight_date, connection~distance, connection~distance_unit, flight~currency_code, flight~plane_type_id, flight~seats_max, flight~seats_occupied INTO CORRESPONDING FIELDS OF TABLE @lt_seats_occupied. ELSE. SELECT FROM /dmo/booking17 AS booking JOIN /dmo/connecti_17 AS connection ON booking~carrier_id = connection~carrier_id AND booking~connection_id = connection~connection_id JOIN /dmo/flight17 AS flight ON booking~carrier_id = flight~carrier_id AND booking~connection_id = flight~connection_id AND booking~flight_date = flight~flight_date FIELDS booking~carrier_id, booking~connection_id, booking~flight_date, COUNT(*) AS seats_occupied, connection~distance, connection~distance_unit, flight~currency_code, flight~plane_type_id, flight~seats_max, flight~seats_occupied GROUP BY booking~carrier_id, booking~connection_id, booking~flight_date, connection~distance, connection~distance_unit, flight~currency_code, flight~plane_type_id, flight~seats_max, flight~seats_occupied INTO CORRESPONDING FIELDS OF TABLE @lt_seats_occupied. ENDIF. LOOP AT lt_seats_occupied ASSIGNING FIELD-SYMBOL(<seats_occupied>). <seats_occupied>-price = ( ( 3 * ( <seats_occupied>-seats_occupied * 100 DIV <seats_occupied>-seats_max ) ** 2 DIV 400 ) + 25 ) * <seats_occupied>-distance DIV 100. ENDLOOP. UPDATE /dmo/flight17 FROM TABLE @( CORRESPONDING tt_flight( lt_seats_occupied MAPPING carrier_id = carrier_id connection_id = connection_id flight_date = flight_date price = price currency_code = currency_code plane_type_id = plane_type_id seats_max = seats_max seats_occupied = seats_occupied ) ). ENDFUNCTION.
[ 40484, 1279, 71, 16, 29, 43069, 7886, 7117, 3556, 71, 16, 29, 198, 40484, 198, 40484, 1002, 645, 10007, 389, 5625, 11, 262, 2756, 286, 790, 5474, 481, 307, 42653, 49262, 13, 198, 40484, 198, 40484, 2488, 17143, 2357, 340, 62, 22560, 930, 5345, 286, 1610, 2337, 543, 815, 307, 42653, 3129, 378, 4536, 198, 42296, 4177, 2849, 1220, 35, 11770, 14, 3697, 9947, 62, 51, 3861, 18697, 62, 34, 1847, 34, 62, 4805, 40, 62, 1558, 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, 2043, 62, 3697, 9947, 8, 41876, 220, 1220, 35, 11770, 14, 5064, 62, 3697, 9947, 62, 2538, 38, 43300, 1558, 14804, 15751, 62, 3697, 9947, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 10097, 23031, 198, 220, 24412, 47, 1546, 347, 43312, 3963, 1259, 62, 325, 1381, 62, 28756, 13, 198, 220, 3268, 5097, 52, 7206, 41876, 1220, 67, 5908, 14, 22560, 1558, 13, 198, 220, 24412, 47, 1546, 220, 220, 5253, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 8443, 72, 62, 1558, 12, 30246, 13, 198, 220, 24412, 47, 1546, 220, 220, 5253, 62, 20850, 220, 41876, 1220, 67, 5908, 14, 8443, 72, 62, 1558, 12, 30246, 62, 20850, 13, 198, 220, 24412, 47, 1546, 23578, 3963, 1259, 62, 325, 1381, 62, 28756, 13, 628, 220, 24412, 47, 1546, 25, 256, 83, 62, 22560, 41876, 49053, 9795, 43679, 3963, 1220, 67, 5908, 14, 22560, 1558, 13315, 35374, 5456, 11920, 62, 312, 4637, 62, 312, 5474, 62, 4475, 13, 628, 220, 42865, 25, 300, 83, 62, 325, 1381, 62, 28756, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 3963, 1259, 62, 325, 1381, 62, 28756, 13, 628, 220, 16876, 340, 62, 22560, 3180, 19549, 49094, 13, 198, 220, 220, 220, 33493, 16034, 1220, 67, 5908, 14, 2070, 278, 1558, 7054, 25452, 198, 220, 220, 220, 220, 220, 32357, 1268, 220, 220, 220, 220, 1220, 67, 5908, 14, 8443, 72, 62, 1558, 7054, 4637, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6177, 220, 25452, 93, 7718, 5277, 62, 312, 220, 220, 220, 796, 4637, 93, 7718, 5277, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 25452, 93, 38659, 62, 312, 796, 4637, 93, 38659, 62, 312, 198, 220, 220, 220, 220, 220, 32357, 1268, 220, 220, 220, 220, 1220, 67, 5908, 14, 22560, 1558, 7054, 5474, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6177, 220, 25452, 93, 7718, 5277, 62, 312, 220, 220, 220, 796, 5474, 93, 7718, 5277, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 25452, 93, 38659, 62, 312, 796, 5474, 93, 38659, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 25452, 93, 22560, 62, 4475, 220, 220, 796, 5474, 93, 22560, 62, 4475, 198, 220, 220, 220, 220, 220, 32357, 1268, 220, 220, 220, 220, 2488, 270, 62, 22560, 7054, 256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6177, 220, 25452, 93, 7718, 5277, 62, 312, 220, 220, 220, 796, 256, 93, 7718, 5277, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 25452, 93, 38659, 62, 312, 796, 256, 93, 38659, 62, 312, 198, 220, 220, 220, 220, 220, 18930, 3698, 5258, 220, 220, 25452, 93, 7718, 5277, 62, 312, 11, 25452, 93, 38659, 62, 312, 11, 25452, 93, 22560, 62, 4475, 11, 327, 28270, 7, 28104, 7054, 8632, 62, 28756, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4637, 93, 30246, 11, 4637, 93, 30246, 62, 20850, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5474, 93, 34415, 62, 8189, 11, 5474, 93, 14382, 62, 4906, 62, 312, 11, 5474, 93, 325, 1381, 62, 9806, 11, 5474, 93, 325, 1381, 62, 28756, 198, 220, 220, 220, 220, 220, 44441, 11050, 25452, 93, 7718, 5277, 62, 312, 11, 25452, 93, 38659, 62, 312, 11, 25452, 93, 22560, 62, 4475, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4637, 93, 30246, 11, 4637, 93, 30246, 62, 20850, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5474, 93, 34415, 62, 8189, 11, 5474, 93, 14382, 62, 4906, 62, 312, 11, 5474, 93, 325, 1381, 62, 9806, 11, 5474, 93, 325, 1381, 62, 28756, 198, 220, 220, 220, 220, 220, 39319, 23929, 19535, 47, 18672, 2751, 18930, 3698, 5258, 3963, 43679, 2488, 2528, 62, 325, 1381, 62, 28756, 13, 198, 220, 17852, 5188, 13, 198, 220, 220, 220, 33493, 16034, 1220, 67, 5908, 14, 2070, 278, 1558, 7054, 25452, 198, 220, 220, 220, 220, 220, 32357, 1268, 220, 220, 220, 220, 1220, 67, 5908, 14, 8443, 72, 62, 1558, 7054, 4637, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6177, 220, 25452, 93, 7718, 5277, 62, 312, 220, 220, 220, 796, 4637, 93, 7718, 5277, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 25452, 93, 38659, 62, 312, 796, 4637, 93, 38659, 62, 312, 198, 220, 220, 220, 220, 220, 32357, 1268, 220, 220, 220, 220, 1220, 67, 5908, 14, 22560, 1558, 7054, 5474, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6177, 220, 25452, 93, 7718, 5277, 62, 312, 220, 220, 220, 796, 5474, 93, 7718, 5277, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 25452, 93, 38659 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS /dmo/bp_travel_u01 DEFINITION PUBLIC ABSTRACT FINAL FOR BEHAVIOR OF /dmo/i_travel_u01 . PUBLIC SECTION. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS /dmo/bp_travel_u01 IMPLEMENTATION. ENDCLASS.
[ 31631, 1220, 67, 5908, 14, 46583, 62, 35927, 62, 84, 486, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 9564, 18601, 10659, 198, 220, 25261, 198, 220, 7473, 9348, 7801, 12861, 1581, 3963, 1220, 67, 5908, 14, 72, 62, 35927, 62, 84, 486, 764, 628, 220, 44731, 44513, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1220, 67, 5908, 14, 46583, 62, 35927, 62, 84, 486, 30023, 2538, 10979, 6234, 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 ]
*&---------------------------------------------------------------------* *& Report YABAPGIT_PKG1_PROG1 *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT YABAPGIT_PKG1_PROG1.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 575, 6242, 2969, 38, 2043, 62, 40492, 38, 16, 62, 4805, 7730, 16, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 2200, 15490, 575, 6242, 2969, 38, 2043, 62, 40492, 38, 16, 62, 4805, 7730, 16, 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 ]
* Copyright 2019 IBM Corp. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. "! <h1>Personality Insights</h1> "! The IBM Watson&trade; Personality Insights service enables applications to "! derive insights from social media, enterprise data, or other digital "! communications. The service uses linguistic analytics to infer individuals' "! intrinsic personality characteristics, including Big Five, Needs, and Values, "! from digital communications such as email, text messages, tweets, and forum "! posts. "! "! The service can automatically infer, from potentially noisy social media, "! portraits of individuals that reflect their personality characteristics. The "! service can infer consumption preferences based on the results of its analysis "! and, for JSON content that is timestamped, can report temporal behavior. "! * For information about the meaning of the models that the service uses to "! describe personality characteristics, see [Personality "! models](https://cloud.ibm.com/docs/services/personality-insights?topic=personal "! ity-insights-models#models). "! * For information about the meaning of the consumption preferences, see "! [Consumption "! preferences](https://cloud.ibm.com/docs/services/personality-insights?topic=per "! sonality-insights-preferences#preferences). "! "! **Note:** Request logging is disabled for the Personality Insights service. "! Regardless of whether you set the `X-Watson-Learning-Opt-Out` request header, "! the service does not log or retain data from requests and responses. <br/> class ZCL_IBMC_PERSONAL_INSIGHTS_V3 DEFINITION public inheriting from ZCL_IBMC_SERVICE_EXT create public . public section. types: "! The characteristics that the service inferred from the input content. begin of T_TRAIT, TRAIT_ID type STRING, NAME type STRING, CATEGORY type STRING, PERCENTILE type DOUBLE, RAW_SCORE type DOUBLE, SIGNIFICANT type BOOLEAN, CHILDREN type STANDARD TABLE OF DATA_REFERENCE WITH NON-UNIQUE DEFAULT KEY, end of T_TRAIT. types: "! The temporal behavior for the input content. begin of T_BEHAVIOR, TRAIT_ID type STRING, NAME type STRING, CATEGORY type STRING, PERCENTAGE type DOUBLE, end of T_BEHAVIOR. types: "! A consumption preference that the service inferred from the input content. begin of T_CONSUMPTION_PREFERENCES, CONSUMPTION_PREFERENCE_ID type STRING, NAME type STRING, SCORE type DOUBLE, end of T_CONSUMPTION_PREFERENCES. types: "! A warning message that is associated with the input content. begin of T_WARNING, WARNING_ID type STRING, MESSAGE type STRING, end of T_WARNING. types: "! The consumption preferences that the service inferred from the input content. begin of T_CNSMPTN_PREFERENCES_CATEGORY, CNSMPTN_PREFERENCE_CATEGORY_ID type STRING, NAME type STRING, CONSUMPTION_PREFERENCES type STANDARD TABLE OF T_CONSUMPTION_PREFERENCES WITH NON-UNIQUE DEFAULT KEY, end of T_CNSMPTN_PREFERENCES_CATEGORY. types: "! The personality profile that the service generated for the input content. begin of T_PROFILE, PROCESSED_LANGUAGE type STRING, WORD_COUNT type INTEGER, WORD_COUNT_MESSAGE type STRING, PERSONALITY type STANDARD TABLE OF T_TRAIT WITH NON-UNIQUE DEFAULT KEY, NEEDS type STANDARD TABLE OF T_TRAIT WITH NON-UNIQUE DEFAULT KEY, VALUES type STANDARD TABLE OF T_TRAIT WITH NON-UNIQUE DEFAULT KEY, BEHAVIOR type STANDARD TABLE OF T_BEHAVIOR WITH NON-UNIQUE DEFAULT KEY, CONSUMPTION_PREFERENCES type STANDARD TABLE OF T_CNSMPTN_PREFERENCES_CATEGORY WITH NON-UNIQUE DEFAULT KEY, WARNINGS type STANDARD TABLE OF T_WARNING WITH NON-UNIQUE DEFAULT KEY, end of T_PROFILE. types: "! An input content item that the service is to analyze. begin of T_CONTENT_ITEM, CONTENT type STRING, ID type STRING, CREATED type LONG, UPDATED type LONG, CONTENTTYPE type STRING, LANGUAGE type STRING, PARENTID type STRING, REPLY type BOOLEAN, FORWARD type BOOLEAN, end of T_CONTENT_ITEM. types: "! A CSV file that contains the results of the personality profile that the service "! generated for the input content. T_CSV_FILE type String. types: "! The error response from a failed request. begin of T_ERROR_MODEL, CODE type INTEGER, SUB_CODE type STRING, ERROR type STRING, HELP type STRING, end of T_ERROR_MODEL. types: "! The full input content that the service is to analyze. begin of T_CONTENT, CONTENTITEMS type STANDARD TABLE OF T_CONTENT_ITEM WITH NON-UNIQUE DEFAULT KEY, end of T_CONTENT. constants: begin of C_REQUIRED_FIELDS, T_TRAIT type string value '|TRAIT_ID|NAME|CATEGORY|PERCENTILE|', T_BEHAVIOR type string value '|TRAIT_ID|NAME|CATEGORY|PERCENTAGE|', T_CONSUMPTION_PREFERENCES type string value '|CONSUMPTION_PREFERENCE_ID|NAME|SCORE|', T_WARNING type string value '|WARNING_ID|MESSAGE|', T_CNSMPTN_PREFERENCES_CATEGORY type string value '|CNSMPTN_PREFERENCE_CATEGORY_ID|NAME|CONSUMPTION_PREFERENCES|', T_PROFILE type string value '|PROCESSED_LANGUAGE|WORD_COUNT|PERSONALITY|NEEDS|VALUES|WARNINGS|', T_CONTENT_ITEM type string value '|CONTENT|', T_ERROR_MODEL type string value '|CODE|ERROR|', T_CONTENT type string value '|CONTENTITEMS|', __DUMMY type string value SPACE, end of C_REQUIRED_FIELDS . constants: begin of C_ABAPNAME_DICTIONARY, PROCESSED_LANGUAGE type string value 'processed_language', WORD_COUNT type string value 'word_count', WORD_COUNT_MESSAGE type string value 'word_count_message', PERSONALITY type string value 'personality', NEEDS type string value 'needs', VALUES type string value 'values', BEHAVIOR type string value 'behavior', CONSUMPTION_PREFERENCES type string value 'consumption_preferences', CONSUMPTIONPREFERENCES type string value 'consumptionPreferences', WARNINGS type string value 'warnings', TRAIT_ID type string value 'trait_id', NAME type string value 'name', CATEGORY type string value 'category', PERCENTILE type string value 'percentile', RAW_SCORE type string value 'raw_score', SIGNIFICANT type string value 'significant', CHILDREN type string value 'children', PERCENTAGE type string value 'percentage', CNSMPTN_PREFERENCE_CATEGORY_ID type string value 'consumption_preference_category_id', CONSUMPTION_PREFERENCE_ID type string value 'consumption_preference_id', SCORE type string value 'score', WARNING_ID type string value 'warning_id', MESSAGE type string value 'message', CONTENTITEMS type string value 'contentItems', CONTENTITEM type string value 'contentItem', CONTENT type string value 'content', ID type string value 'id', CREATED type string value 'created', UPDATED type string value 'updated', CONTENTTYPE type string value 'contenttype', LANGUAGE type string value 'language', PARENTID type string value 'parentid', REPLY type string value 'reply', FORWARD type string value 'forward', CODE type string value 'code', SUB_CODE type string value 'sub_code', ERROR type string value 'error', HELP type string value 'help', end of C_ABAPNAME_DICTIONARY . methods GET_APPNAME redefinition . methods GET_REQUEST_PROP redefinition . methods GET_SDK_VERSION_DATE redefinition . "! Get profile. "! "! @parameter I_content | "! A maximum of 20 MB of content to analyze, though the service requires much less "! text; for more information, see [Providing sufficient "! input](https://cloud.ibm.com/docs/services/personality-insights?topic=personali "! ty-insights-input#sufficient). For JSON input, provide an object of type "! `Content`. "! @parameter I_Content_Type | "! The type of the input. For more information, see **Content types** in the method "! description. "! @parameter I_Content_Language | "! The language of the input text for the request: Arabic, English, Japanese, "! Korean, or Spanish. Regional variants are treated as their parent language; for "! example, `en-US` is interpreted as `en`. "! "! The effect of the **Content-Language** parameter depends on the **Content-Type** "! parameter. When **Content-Type** is `text/plain` or `text/html`, "! **Content-Language** is the only way to specify the language. When "! **Content-Type** is `application/json`, **Content-Language** overrides a "! language specified with the `language` parameter of a `ContentItem` object, and "! content items that specify a different language are ignored; omit this "! parameter to base the language on the specification of the content items. You "! can specify any combination of languages for **Content-Language** and "! **Accept-Language**. "! @parameter I_Accept_Language | "! The desired language of the response. For two-character arguments, regional "! variants are treated as their parent language; for example, `en-US` is "! interpreted as `en`. You can specify any combination of languages for the input "! and response content. "! @parameter I_raw_scores | "! Indicates whether a raw score in addition to a normalized percentile is returned "! for each characteristic; raw scores are not compared with a sample population. "! By default, only normalized percentiles are returned. "! @parameter I_csv_headers | "! Indicates whether column labels are returned with a CSV response. By default, no "! column labels are returned. Applies only when the response type is CSV "! (`text/csv`). "! @parameter I_consumption_preferences | "! Indicates whether consumption preferences are returned with the results. By "! default, no consumption preferences are returned. "! @parameter E_RESPONSE | "! Service return value of type T_PROFILE "! methods PROFILE importing !I_content type T_CONTENT !I_Content_Type type STRING default 'text/plain' !I_Content_Language type STRING default 'en' !I_Accept_Language type STRING default 'en' !I_raw_scores type BOOLEAN default c_boolean_false !I_csv_headers type BOOLEAN default c_boolean_false !I_consumption_preferences type BOOLEAN default c_boolean_false !I_accept type string default 'application/json' exporting !E_RESPONSE type T_PROFILE raising ZCX_IBMC_SERVICE_EXCEPTION . "! Get profile as csv. "! "! @parameter I_content | "! A maximum of 20 MB of content to analyze, though the service requires much less "! text; for more information, see [Providing sufficient "! input](https://cloud.ibm.com/docs/services/personality-insights?topic=personali "! ty-insights-input#sufficient). For JSON input, provide an object of type "! `Content`. "! @parameter I_Content_Type | "! The type of the input. For more information, see **Content types** in the method "! description. "! @parameter I_Content_Language | "! The language of the input text for the request: Arabic, English, Japanese, "! Korean, or Spanish. Regional variants are treated as their parent language; for "! example, `en-US` is interpreted as `en`. "! "! The effect of the **Content-Language** parameter depends on the **Content-Type** "! parameter. When **Content-Type** is `text/plain` or `text/html`, "! **Content-Language** is the only way to specify the language. When "! **Content-Type** is `application/json`, **Content-Language** overrides a "! language specified with the `language` parameter of a `ContentItem` object, and "! content items that specify a different language are ignored; omit this "! parameter to base the language on the specification of the content items. You "! can specify any combination of languages for **Content-Language** and "! **Accept-Language**. "! @parameter I_Accept_Language | "! The desired language of the response. For two-character arguments, regional "! variants are treated as their parent language; for example, `en-US` is "! interpreted as `en`. You can specify any combination of languages for the input "! and response content. "! @parameter I_raw_scores | "! Indicates whether a raw score in addition to a normalized percentile is returned "! for each characteristic; raw scores are not compared with a sample population. "! By default, only normalized percentiles are returned. "! @parameter I_csv_headers | "! Indicates whether column labels are returned with a CSV response. By default, no "! column labels are returned. Applies only when the response type is CSV "! (`text/csv`). "! @parameter I_consumption_preferences | "! Indicates whether consumption preferences are returned with the results. By "! default, no consumption preferences are returned. "! methods PROFILE_AS_CSV importing !I_content type T_CONTENT !I_Content_Type type STRING default 'text/plain' !I_Content_Language type STRING default 'en' !I_Accept_Language type STRING default 'en' !I_raw_scores type BOOLEAN default c_boolean_false !I_csv_headers type BOOLEAN default c_boolean_false !I_consumption_preferences type BOOLEAN default c_boolean_false !I_accept type string default 'text/csv' raising ZCX_IBMC_SERVICE_EXCEPTION . protected section. private section. methods SET_DEFAULT_QUERY_PARAMETERS changing !C_URL type TS_URL . ENDCLASS. class ZCL_IBMC_PERSONAL_INSIGHTS_V3 IMPLEMENTATION. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_IBMC_PERSONAL_INSIGHTS_V3->GET_APPNAME * +-------------------------------------------------------------------------------------------------+ * | [<-()] E_APPNAME TYPE STRING * +--------------------------------------------------------------------------------------</SIGNATURE> method GET_APPNAME. e_appname = 'Personality Insights'. endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Protected Method ZCL_IBMC_PERSONAL_INSIGHTS_V3->GET_REQUEST_PROP * +-------------------------------------------------------------------------------------------------+ * | [--->] I_AUTH_METHOD TYPE STRING (default =C_DEFAULT) * | [<-()] E_REQUEST_PROP TYPE TS_REQUEST_PROP * +--------------------------------------------------------------------------------------</SIGNATURE> method GET_REQUEST_PROP. data: lv_auth_method type string ##NEEDED. e_request_prop = super->get_request_prop( ). lv_auth_method = i_auth_method. if lv_auth_method eq c_default. lv_auth_method = 'IAM'. endif. if lv_auth_method is initial. e_request_prop-auth_basic = c_boolean_false. e_request_prop-auth_oauth = c_boolean_false. e_request_prop-auth_apikey = c_boolean_false. elseif lv_auth_method eq 'IAM'. e_request_prop-auth_name = 'IAM'. e_request_prop-auth_type = 'apiKey'. e_request_prop-auth_headername = 'Authorization'. e_request_prop-auth_header = c_boolean_true. elseif lv_auth_method eq 'basicAuth'. e_request_prop-auth_name = 'basicAuth'. e_request_prop-auth_type = 'http'. e_request_prop-auth_basic = c_boolean_true. else. endif. e_request_prop-url-protocol = 'http'. e_request_prop-url-host = 'localhost'. e_request_prop-url-path_base = '/personality-insights/api'. endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_IBMC_PERSONAL_INSIGHTS_V3->GET_SDK_VERSION_DATE * +-------------------------------------------------------------------------------------------------+ * | [<-()] E_SDK_VERSION_DATE TYPE STRING * +--------------------------------------------------------------------------------------</SIGNATURE> method get_sdk_version_date. e_sdk_version_date = '20191002122847'. endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_IBMC_PERSONAL_INSIGHTS_V3->PROFILE * +-------------------------------------------------------------------------------------------------+ * | [--->] I_content TYPE T_CONTENT * | [--->] I_Content_Type TYPE STRING (default ='text/plain') * | [--->] I_Content_Language TYPE STRING (default ='en') * | [--->] I_Accept_Language TYPE STRING (default ='en') * | [--->] I_raw_scores TYPE BOOLEAN (default =c_boolean_false) * | [--->] I_csv_headers TYPE BOOLEAN (default =c_boolean_false) * | [--->] I_consumption_preferences TYPE BOOLEAN (default =c_boolean_false) * | [--->] I_accept TYPE string (default ='application/json') * | [<---] E_RESPONSE TYPE T_PROFILE * | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION * +--------------------------------------------------------------------------------------</SIGNATURE> method PROFILE. data: ls_request_prop type ts_request_prop, lv_separator(1) type c ##NEEDED, lv_sep(1) type c ##NEEDED, lo_response type to_rest_response, lv_json type string ##NEEDED. ls_request_prop-url-path = '/v3/profile'. " standard headers ls_request_prop-header_accept = I_accept. set_default_query_parameters( changing c_url = ls_request_prop-url ). " process query parameters data: lv_queryparam type string. if i_raw_scores is supplied. lv_queryparam = i_raw_scores. add_query_parameter( exporting i_parameter = `raw_scores` i_value = lv_queryparam i_is_boolean = c_boolean_true changing c_url = ls_request_prop-url ) ##NO_TEXT. endif. if i_csv_headers is supplied. lv_queryparam = i_csv_headers. add_query_parameter( exporting i_parameter = `csv_headers` i_value = lv_queryparam i_is_boolean = c_boolean_true changing c_url = ls_request_prop-url ) ##NO_TEXT. endif. if i_consumption_preferences is supplied. lv_queryparam = i_consumption_preferences. add_query_parameter( exporting i_parameter = `consumption_preferences` i_value = lv_queryparam i_is_boolean = c_boolean_true changing c_url = ls_request_prop-url ) ##NO_TEXT. endif. " process header parameters data: lv_headerparam type string ##NEEDED. if i_Content_Type is supplied. ls_request_prop-header_content_type = I_Content_Type. endif. if i_Content_Language is supplied. lv_headerparam = I_Content_Language. add_header_parameter( exporting i_parameter = 'Content-Language' i_value = lv_headerparam changing c_headers = ls_request_prop-headers ) ##NO_TEXT. endif. if i_Accept_Language is supplied. lv_headerparam = I_Accept_Language. add_header_parameter( exporting i_parameter = 'Accept-Language' i_value = lv_headerparam changing c_headers = ls_request_prop-headers ) ##NO_TEXT. endif. " process body parameters data: lv_body type string, lv_bodyparam type string, lv_datatype type char. field-symbols: <lv_text> type any. lv_separator = ''. lv_datatype = get_datatype( i_content ). if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or ls_request_prop-header_content_type cp '*json*'. if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep. lv_bodyparam = abap_to_json( i_value = i_content i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ). else. lv_bodyparam = abap_to_json( i_name = 'content' i_value = i_content ). endif. lv_body = lv_body && lv_separator && lv_bodyparam. else. assign i_content to <lv_text>. lv_bodyparam = <lv_text>. concatenate lv_body lv_bodyparam into lv_body. endif. if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'. lv_body = `{` && lv_body && `}`. endif. if ls_request_prop-header_content_type cp '*charset=utf-8*'. ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ). replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case. else. ls_request_prop-body = lv_body. endif. " execute HTTP POST request lo_response = HTTP_POST( i_request_prop = ls_request_prop ). " retrieve JSON data lv_json = get_response_string( lo_response ). parse_json( exporting i_json = lv_json i_dictionary = c_abapname_dictionary changing c_abap = e_response ). endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_IBMC_PERSONAL_INSIGHTS_V3->PROFILE_AS_CSV * +-------------------------------------------------------------------------------------------------+ * | [--->] I_content TYPE T_CONTENT * | [--->] I_Content_Type TYPE STRING (default ='text/plain') * | [--->] I_Content_Language TYPE STRING (default ='en') * | [--->] I_Accept_Language TYPE STRING (default ='en') * | [--->] I_raw_scores TYPE BOOLEAN (default =c_boolean_false) * | [--->] I_csv_headers TYPE BOOLEAN (default =c_boolean_false) * | [--->] I_consumption_preferences TYPE BOOLEAN (default =c_boolean_false) * | [--->] I_accept TYPE string (default ='text/csv') * | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION * +--------------------------------------------------------------------------------------</SIGNATURE> method PROFILE_AS_CSV. data: ls_request_prop type ts_request_prop, lv_separator(1) type c ##NEEDED, lv_sep(1) type c ##NEEDED, lo_response type to_rest_response, lv_json type string ##NEEDED. ls_request_prop-url-path = '/v3/profile'. " standard headers ls_request_prop-header_accept = I_accept. set_default_query_parameters( changing c_url = ls_request_prop-url ). " process query parameters data: lv_queryparam type string. if i_raw_scores is supplied. lv_queryparam = i_raw_scores. add_query_parameter( exporting i_parameter = `raw_scores` i_value = lv_queryparam i_is_boolean = c_boolean_true changing c_url = ls_request_prop-url ) ##NO_TEXT. endif. if i_csv_headers is supplied. lv_queryparam = i_csv_headers. add_query_parameter( exporting i_parameter = `csv_headers` i_value = lv_queryparam i_is_boolean = c_boolean_true changing c_url = ls_request_prop-url ) ##NO_TEXT. endif. if i_consumption_preferences is supplied. lv_queryparam = i_consumption_preferences. add_query_parameter( exporting i_parameter = `consumption_preferences` i_value = lv_queryparam i_is_boolean = c_boolean_true changing c_url = ls_request_prop-url ) ##NO_TEXT. endif. " process header parameters data: lv_headerparam type string ##NEEDED. if i_Content_Type is supplied. ls_request_prop-header_content_type = I_Content_Type. endif. if i_Content_Language is supplied. lv_headerparam = I_Content_Language. add_header_parameter( exporting i_parameter = 'Content-Language' i_value = lv_headerparam changing c_headers = ls_request_prop-headers ) ##NO_TEXT. endif. if i_Accept_Language is supplied. lv_headerparam = I_Accept_Language. add_header_parameter( exporting i_parameter = 'Accept-Language' i_value = lv_headerparam changing c_headers = ls_request_prop-headers ) ##NO_TEXT. endif. " process body parameters data: lv_body type string, lv_bodyparam type string, lv_datatype type char. field-symbols: <lv_text> type any. lv_separator = ''. lv_datatype = get_datatype( i_content ). if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or ls_request_prop-header_content_type cp '*json*'. if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep. lv_bodyparam = abap_to_json( i_value = i_content i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ). else. lv_bodyparam = abap_to_json( i_name = 'content' i_value = i_content ). endif. lv_body = lv_body && lv_separator && lv_bodyparam. else. assign i_content to <lv_text>. lv_bodyparam = <lv_text>. concatenate lv_body lv_bodyparam into lv_body. endif. if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'. lv_body = `{` && lv_body && `}`. endif. if ls_request_prop-header_content_type cp '*charset=utf-8*'. ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ). replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case. else. ls_request_prop-body = lv_body. endif. " execute HTTP POST request lo_response = HTTP_POST( i_request_prop = ls_request_prop ). endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Private Method ZCL_IBMC_PERSONAL_INSIGHTS_V3->SET_DEFAULT_QUERY_PARAMETERS * +-------------------------------------------------------------------------------------------------+ * | [<-->] C_URL TYPE TS_URL * +--------------------------------------------------------------------------------------</SIGNATURE> method set_default_query_parameters. if not p_version is initial. add_query_parameter( exporting i_parameter = `version` i_value = p_version changing c_url = c_url ). endif. endmethod. ENDCLASS.
[ 9, 15069, 13130, 19764, 11421, 13, 1439, 6923, 33876, 13, 198, 9, 198, 9, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 9, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 9, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 198, 9, 198, 9, 220, 220, 220, 220, 2638, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 198, 9, 198, 9, 17486, 2672, 416, 9723, 1099, 393, 4987, 284, 287, 3597, 11, 3788, 198, 9, 9387, 739, 262, 13789, 318, 9387, 319, 281, 366, 1921, 3180, 1, 29809, 1797, 11, 198, 9, 42881, 34764, 11015, 6375, 7102, 49828, 11053, 3963, 15529, 509, 12115, 11, 2035, 4911, 393, 17142, 13, 198, 9, 4091, 262, 13789, 329, 262, 2176, 3303, 15030, 21627, 290, 198, 9, 11247, 739, 262, 13789, 13, 198, 40484, 1279, 71, 16, 29, 15439, 1483, 7088, 2337, 3556, 71, 16, 29, 198, 40484, 383, 19764, 14959, 5, 25351, 26, 30472, 7088, 2337, 2139, 13536, 5479, 284, 198, 40484, 220, 27099, 17218, 422, 1919, 2056, 11, 13953, 1366, 11, 393, 584, 4875, 198, 40484, 220, 8062, 13, 383, 2139, 3544, 29929, 23696, 284, 13249, 3925, 6, 198, 40484, 220, 28327, 8806, 9695, 11, 1390, 4403, 10579, 11, 36557, 11, 290, 27068, 11, 198, 40484, 220, 422, 4875, 8062, 884, 355, 3053, 11, 2420, 6218, 11, 12665, 11, 290, 10041, 198, 40484, 220, 6851, 13, 198, 40484, 198, 40484, 383, 2139, 460, 6338, 13249, 11, 422, 6196, 31210, 1919, 2056, 11, 198, 40484, 220, 31725, 286, 3925, 326, 4079, 511, 8806, 9695, 13, 383, 198, 40484, 220, 2139, 460, 13249, 7327, 15387, 1912, 319, 262, 2482, 286, 663, 3781, 198, 40484, 220, 290, 11, 329, 19449, 2695, 326, 318, 4628, 395, 13322, 11, 460, 989, 21964, 4069, 13, 198, 40484, 1635, 1114, 1321, 546, 262, 3616, 286, 262, 4981, 326, 262, 2139, 3544, 284, 198, 40484, 220, 6901, 8806, 9695, 11, 766, 685, 15439, 1483, 198, 40484, 220, 4981, 16151, 5450, 1378, 17721, 13, 571, 76, 13, 785, 14, 31628, 14, 30416, 14, 6259, 1483, 12, 1040, 2337, 30, 26652, 28, 22682, 198, 40484, 340, 88, 12, 1040, 2337, 12, 27530, 2, 27530, 737, 198, 40484, 1635, 1114, 1321, 546, 262, 3616, 286, 262, 7327, 15387, 11, 766, 198, 40484, 220, 685, 9444, 24098, 198, 40484, 220, 15387, 16151, 5450, 1378, 17721, 13, 571, 76, 13, 785, 14, 31628, 14, 30416, 14, 6259, 1483, 12, 1040, 2337, 30, 26652, 28, 525, 198, 40484, 3367, 1483, 12, 1040, 2337, 12, 3866, 69, 4972, 2, 3866, 69, 4972, 737, 198, 40484, 198, 40484, 12429, 6425, 25, 1174, 19390, 18931, 318, 10058, 329, 262, 30472, 7088, 2337, 2139, 13, 198, 40484, 220, 22250, 286, 1771, 345, 900, 262, 4600, 55, 12, 54, 13506, 12, 41730, 12, 27871, 12, 7975, 63, 2581, 13639, 11, 198, 40484, 220, 262, 2139, 857, 407, 2604, 393, 12377, 1366, 422, 7007, 290, 9109, 13, 1279, 1671, 15913, 198, 4871, 1168, 5097, 62, 9865, 9655, 62, 47, 29086, 1847, 62, 20913, 34874, 62, 53, 18, 5550, 20032, 17941, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1168, 5097, 62, 9865, 9655, 62, 35009, 27389, 62, 13918, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 198, 220, 3858, 25, 198, 220, 220, 220, 366, 0, 220, 220, 383, 9695, 326, 262, 2139, 41240, 422, 262, 5128, 2695, 13, 198, 220, 220, 220, 2221, 286, 309, 62, 51, 3861, 2043, 11, 198, 220, 220, 220, 220, 220, 29125, 2043, 62, 2389, 2099, 19269, 2751, 11, 198, 220, 220, 220, 220, 220, 36751, 2099, 19269, 2751, 11, 198, 220, 220, 220, 220, 220, 327, 6158, 38, 15513, 2099, 19269, 2751, 11, 198, 220, 220, 220, 220, 220, 19878, 43960, 41119, 2099, 360, 2606, 19146, 11, 198, 220, 220, 220, 220, 220, 33782, 62, 6173, 6965, 2099, 360, 2606, 19146, 11, 198, 220, 220, 220, 220, 220, 36771, 30643, 8643, 2099, 347, 6684, 2538, 1565, 11, 198, 220, 220, 220, 220, 220, 5870, 4146, 7707, 1677, 2099, 49053, 9795, 43679, 3963, 42865, 62, 2200, 24302, 18310, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374, 11, 198, 220, 220, 220, 886, 286, 309, 62, 51, 3861, 2043, 13, 198, 220, 3858, 25, 198, 220, 220, 220, 366, 0, 220, 220, 383, 21964, 4069, 329, 262, 5128, 2695, 13, 198, 220, 220, 220, 2221, 286, 309, 62, 12473, 7801, 12861, 1581, 11, 198, 220, 220, 220, 220, 220, 29125, 2043, 62, 2389, 2099, 19269, 2751, 11, 198, 220, 220, 220, 220, 220, 36751, 2099, 19269, 2751, 11, 198, 220, 220, 220, 220, 220, 327, 6158, 38, 15513, 2099, 19269, 2751, 11, 198, 220, 220, 220, 220, 220, 19878, 43960, 11879, 2099, 360, 2606, 19146, 11, 198, 220, 220, 220, 886, 286, 309, 62, 12473, 7801, 12861, 1581, 13, 198, 220, 3858, 25, 198, 220, 220, 220, 366, 0, 220, 220, 317, 7327, 12741, 326, 262, 2139, 41240, 422, 262, 5128, 2695, 13, 198, 220, 220, 220, 2221, 286, 309, 62, 10943, 50, 5883, 11571, 2849, 62, 46437, 24302, 24181, 1546, 11, 198, 220, 220, 220, 220, 220, 39537, 5883, 11571, 2849, 62, 46437, 24302, 18310, 62, 2389, 2099, 19269, 2751, 11, 198, 220, 220, 220, 220, 220, 36751, 2099, 19269, 2751, 11, 198, 220, 220, 220, 220, 220, 6374, 6965, 2099, 360, 2606, 19146, 11, 198, 220, 220, 220, 886, 286, 309, 62, 10943, 50, 5883, 11571, 2849, 62, 46437, 24302, 24181, 1546, 13, 198, 220, 3858, 25, 198, 220, 220, 220, 366, 0, 220, 220, 317, 6509, 3275, 326, 318, 3917, 351, 262, 5128, 2695, 13, 198, 220, 220, 220, 2221, 286, 309, 62, 31502, 11, 198, 220, 220, 220, 220, 220, 39410, 62, 2389, 2099, 19269, 2751, 11, 198, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 2099, 19269, 2751, 11, 198, 220, 220, 220, 886, 286, 309, 62, 31502, 13, 198, 220, 3858, 25, 198, 220, 220, 220, 366, 0, 220, 220, 383, 7327, 15387, 326, 262, 2139, 41240, 422, 262, 5128, 2695, 13, 198, 220, 220, 220, 2221, 286, 309, 62, 34, 8035, 7378, 46559, 62, 46437, 24302 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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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_key TYPE zif_abapgit_persistence=>ty_content . METHODS zif_abapgit_gui_page~on_event REDEFINITION . PROTECTED SECTION. CLASS-METHODS dbcontent_decode IMPORTING !it_postdata TYPE cnht_post_data_tab RETURNING VALUE(rs_content) TYPE zif_abapgit_persistence=>ty_content . METHODS render_content REDEFINITION . PRIVATE SECTION. CONSTANTS: BEGIN OF c_action, update TYPE string VALUE 'update', END OF c_action . DATA ms_key TYPE zif_abapgit_persistence=>ty_content . CLASS-METHODS update IMPORTING !is_content TYPE zif_abapgit_persistence=>ty_content RAISING zcx_abapgit_exception . ENDCLASS. CLASS ZCL_ABAPGIT_GUI_PAGE_DB_EDIT IMPLEMENTATION. METHOD constructor. super->constructor( ). ms_key = is_key. ms_control-page_title = 'CONFIG EDIT'. ENDMETHOD. METHOD dbcontent_decode. DATA: lt_fields TYPE tihttpnvp, lv_string TYPE string. CONCATENATE LINES OF it_postdata INTO lv_string. lv_string = cl_http_utility=>unescape_url( lv_string ). rs_content = zcl_abapgit_html_action_utils=>dbkey_decode( lv_string ). lt_fields = zcl_abapgit_html_action_utils=>parse_fields_upper_case_name( lv_string ). zcl_abapgit_html_action_utils=>get_field( EXPORTING iv_name = 'XMLDATA' it_field = lt_fields CHANGING cg_field = rs_content-data_str ). IF rs_content-data_str(1) <> '<' AND rs_content-data_str+1(1) = '<'. " Hmmm ??? rs_content-data_str = rs_content-data_str+1. ENDIF. ENDMETHOD. METHOD render_content. DATA: lv_data TYPE zif_abapgit_persistence=>ty_content-data_str, lo_toolbar TYPE REF TO zcl_abapgit_html_toolbar. TRY. lv_data = zcl_abapgit_persistence_db=>get_instance( )->read( iv_type = ms_key-type iv_value = ms_key-value ). CATCH zcx_abapgit_not_found ##NO_HANDLER. ENDTRY. zcl_abapgit_persistence_db=>get_instance( )->lock( iv_type = ms_key-type iv_value = ms_key-value ). lv_data = escape( val = zcl_abapgit_xml_pretty=>print( lv_data ) format = cl_abap_format=>e_html_attr ). CREATE OBJECT ro_html. CREATE OBJECT lo_toolbar. lo_toolbar->add( iv_act = 'submitFormById(''db_form'');' iv_txt = 'Save' iv_typ = zif_abapgit_definitions=>c_action_type-onclick iv_opt = zif_abapgit_definitions=>c_html_opt-strong ) ##NO_TEXT. ro_html->add( '<div class="db_entry">' ). " Banners & Toolbar ro_html->add( '<table class="toolbar"><tr><td>' ). ro_html->add( zcl_abapgit_gui_page_db_dis=>render_record_banner( ms_key ) ). ro_html->add( '</td><td>' ). ro_html->add( lo_toolbar->render( iv_right = abap_true ) ). ro_html->add( '</td></tr></table>' ). " Form ro_html->add( |<form id="db_form" method="post" action="sapevent:| && |{ c_action-update }">| ). ro_html->add( |<input type="hidden" name="type" value="{ ms_key-type }">| ). ro_html->add( |<input type="hidden" name="value" value="{ ms_key-value }">| ). ro_html->add( |<textarea rows="20" cols="100" name="xmldata">{ lv_data }</textarea>| ). ro_html->add( '</form>' ). ro_html->add( '</div>' ). "db_entry ENDMETHOD. METHOD update. ASSERT is_content-type IS NOT INITIAL. zcl_abapgit_persistence_db=>get_instance( )->update( iv_type = is_content-type iv_value = is_content-value iv_data = is_content-data_str ). COMMIT WORK. ENDMETHOD. METHOD zif_abapgit_gui_page_hotkey~get_hotkey_actions. ENDMETHOD. METHOD zif_abapgit_gui_page~on_event. DATA: ls_db TYPE zif_abapgit_persistence=>ty_content. CASE iv_action. WHEN c_action-update. ls_db = dbcontent_decode( it_postdata ). update( ls_db ). ev_state = zif_abapgit_definitions=>c_event_state-go_back. ENDCASE. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 9945, 62, 19312, 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, 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, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 2539, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 11299, 764, 628, 220, 220, 220, 337, 36252, 50, 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, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 20613, 11299, 62, 12501, 1098, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 7353, 7890, 220, 220, 220, 220, 220, 41876, 269, 77, 4352, 62, 7353, 62, 7890, 62, 8658, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 11299, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 11299, 764, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 11299, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 2673, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4296, 41876, 4731, 26173, 8924, 705, 19119, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 2673, 764, 198, 220, 220, 220, 42865, 13845, 62, 2539, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 11299, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 4296, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 11299, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 11299, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 40156, 62, 4537, 8264, 62, 11012, 62, 24706, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 198, 220, 220, 220, 13845, 62, 2539, 796, 318, 62, 2539, 13, 198, 220, 220, 220, 13845, 62, 13716, 12, 7700, 62, 7839, 796, 705, 10943, 16254, 48483, 4458, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 20613, 11299, 62, 12501, 1098, 13, 628, 220, 220, 220, 42865, 25, 300, 83, 62, 25747, 41876, 46668, 4023, 77, 36133, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 8841, 41876, 4731, 13, 628, 198, 220, 220, 220, 39962, 1404, 1677, 6158, 43277, 1546, 3963, 340, 62, 7353, 7890, 39319, 300, 85, 62, 8841, 13, 628, 220, 220, 220, 300, 85, 62, 8841, 796, 537, 62, 4023, 62, 315, 879, 14804, 403, 41915, 62, 6371, 7, 300, 85, 62, 8841, 6739, 628, 220, 220, 220, 44608, 62, 11299, 796, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 2673, 62, 26791, 14804, 9945, 2539, 62, 12501, 1098, 7, 300, 85, 62, 8841, 6739, 628, 220, 220, 220, 300, 83, 62, 25747, 796, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 2673, 62, 26791, 14804, 29572, 62, 25747, 62, 45828, 62, 7442, 62, 3672, 7, 300, 85, 62, 8841, 6739, 628, 220, 220, 220, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 2673, 62, 26791, 14804, 1136, 62, 3245, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3672, 796, 705, 55, 5805, 26947, 6, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 3245, 796, 300, 83, 62, 25747, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 269, 70, 62, 3245, 796, 44608, 62, 11299, 12, 7890, 62, 2536, 6739, 628, 220, 220, 220, 16876, 44608, 62, 11299, 12, 7890, 62, 2536, 7, 16, 8, 1279, 29, 705, 27, 6, 5357, 44608, 62, 11299, 12, 7890, 62, 2536, 10, 16, 7, 16, 8, 796, 705, 27, 4458, 366, 367, 27532, 34913, 198, 220, 220, 220, 220, 220, 44608, 62, 11299, 12, 7890, 62, 2536, 796, 44608, 62, 11299, 12, 7890, 62, 2536, 10, 16, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 8543, 62, 11299, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 7890, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 11299, 12, 7890, 62, 2536, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 25981, 5657, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 25981, 5657, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 7890, 796, 1976, 565, 62, 397, 499, 18300, 62, 19276, 13274, 62, 9945, 14804, 1136, 62, 39098, 7, 1267, 3784, 961, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 4906, 220, 796, 13845, 62, 2539, 12, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 8367, 796, 13845, 62, 2539, 12, 8367, 6739, 198, 220, 220, 220, 220, 220, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_tran DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_abapgit_object . PROTECTED SECTION. PRIVATE SECTION. TYPES: ty_param_values TYPE STANDARD TABLE OF rsparam WITH NON-UNIQUE DEFAULT KEY , ty_tstca TYPE STANDARD TABLE OF tstca WITH DEFAULT KEY. CONSTANTS: c_oo_program TYPE c LENGTH 9 VALUE '\PROGRAM=' ##NO_TEXT, c_oo_class TYPE c LENGTH 7 VALUE '\CLASS=' ##NO_TEXT, c_oo_method TYPE c LENGTH 8 VALUE '\METHOD=' ##NO_TEXT, c_oo_tcode TYPE tcode VALUE 'OS_APPLICATION' ##NO_TEXT, c_oo_frclass TYPE c LENGTH 30 VALUE 'CLASS' ##NO_TEXT, c_oo_frmethod TYPE c LENGTH 30 VALUE 'METHOD' ##NO_TEXT, c_oo_frupdtask TYPE c LENGTH 30 VALUE 'UPDATE_MODE' ##NO_TEXT, c_oo_synchron TYPE c VALUE 'S' ##NO_TEXT, c_oo_asynchron TYPE c VALUE 'U' ##NO_TEXT, c_true TYPE c VALUE 'X' ##NO_TEXT, c_false TYPE c VALUE space ##NO_TEXT, BEGIN OF c_variant_type, dialog TYPE rglif-docutype VALUE 'D' ##NO_TEXT, report TYPE rglif-docutype VALUE 'R' ##NO_TEXT, variant TYPE rglif-docutype VALUE 'V' ##NO_TEXT, parameters TYPE rglif-docutype VALUE 'P' ##NO_TEXT, object TYPE rglif-docutype VALUE 'O' ##NO_TEXT, END OF c_variant_type. DATA: mt_bcdata TYPE STANDARD TABLE OF bdcdata . METHODS transaction_read IMPORTING iv_transaction TYPE tcode EXPORTING es_transaction TYPE tstc es_gui_attr TYPE tstcc RAISING zcx_abapgit_exception. METHODS shift_param CHANGING !ct_rsparam TYPE s_param !cs_tstcp TYPE tstcp . METHODS add_data IMPORTING !iv_fnam TYPE bdcdata-fnam !iv_fval TYPE clike . METHODS call_se93 RAISING zcx_abapgit_exception . METHODS set_oo_parameters IMPORTING !it_rsparam TYPE s_param CHANGING !cs_rsstcd TYPE rsstcd . METHODS split_parameters CHANGING !ct_rsparam TYPE s_param !cs_rsstcd TYPE rsstcd !cs_tstcp TYPE tstcp !cs_tstc TYPE tstc . METHODS split_parameters_comp IMPORTING !ig_type TYPE any !ig_param TYPE any CHANGING !cg_value TYPE any . 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 RAISING zcx_abapgit_exception . METHODS deserialize_oo_transaction IMPORTING !iv_package TYPE devclass !is_tstc TYPE tstc !is_tstcc TYPE tstcc !is_tstct TYPE tstct !is_rsstcd TYPE rsstcd RAISING zcx_abapgit_exception . METHODS save_authorizations IMPORTING iv_transaction TYPE tstc-tcode it_authorizations TYPE ty_tstca RAISING zcx_abapgit_exception. METHODS clear_functiongroup_globals. METHODS is_variant_transaction IMPORTING is_tstcp TYPE tstcp RETURNING VALUE(rv_variant_transaction) TYPE abap_bool. ENDCLASS. CLASS zcl_abapgit_object_tran IMPLEMENTATION. METHOD add_data. DATA: ls_bcdata LIKE LINE OF mt_bcdata. ls_bcdata-fnam = iv_fnam. ls_bcdata-fval = iv_fval. APPEND ls_bcdata TO mt_bcdata. ENDMETHOD. METHOD call_se93. DATA: lt_message TYPE STANDARD TABLE OF bdcmsgcoll. FIELD-SYMBOLS: <ls_message> TYPE bdcmsgcoll. CALL FUNCTION 'ABAP4_CALL_TRANSACTION' EXPORTING tcode = 'SE93' mode_val = 'N' TABLES using_tab = mt_bcdata mess_tab = lt_message EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error deserializing { ms_item-obj_type } { ms_item-obj_name }| ). ENDIF. LOOP AT lt_message ASSIGNING <ls_message> WHERE msgtyp CA 'EAX'. MESSAGE ID <ls_message>-msgid TYPE <ls_message>-msgtyp NUMBER <ls_message>-msgnr WITH <ls_message>-msgv1 <ls_message>-msgv2 <ls_message>-msgv3 <ls_message>-msgv4 INTO sy-msgli. zcx_abapgit_exception=>raise_t100( ). ENDLOOP. ENDMETHOD. METHOD clear_functiongroup_globals. TYPES ty_param_vari TYPE abap_bool. DATA lt_error_list TYPE STANDARD TABLE OF rsmp_check WITH DEFAULT KEY. FIELD-SYMBOLS <lv_param_vari> TYPE ty_param_vari. " only way to clear global fields in function group CALL FUNCTION 'RS_TRANSACTION_INCONSISTENCIES' EXPORTING transaction_code = 'ZTHISTCODENEVEREXIST' TABLES error_list = lt_error_list EXCEPTIONS object_not_found = 1 OTHERS = 2. IF sy-subrc <> 0. "Expected - fine " but there is no other way to clear this field ASSIGN ('(SAPLSEUK)PARAM_VARI') TO <lv_param_vari>. IF sy-subrc = 0. CLEAR <lv_param_vari>. ENDIF. ENDIF. ENDMETHOD. METHOD deserialize_oo_transaction. " You should remember that we don't use batch input just for fun, " but because FM RPY_TRANSACTION_INSERT doesn't support OO transactions. DATA: ls_bcdata TYPE bdcdata. CLEAR mt_bcdata. ls_bcdata-program = 'SAPLSEUK'. ls_bcdata-dynpro = '0390'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'TSTC-TCODE' iv_fval = is_tstc-tcode ). IF zif_abapgit_object~exists( ) = abap_true. add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=CHNG' ). ELSE. add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=ADD' ). ENDIF. ls_bcdata-program = 'SAPLSEUK'. ls_bcdata-dynpro = '0300'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'TSTCT-TTEXT' iv_fval = is_tstct-ttext ). add_data( iv_fnam = 'RSSTCD-S_CLASS' iv_fval = 'X' ). add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=ENTR' ). ls_bcdata-program = 'SAPLSEUK'. ls_bcdata-dynpro = '0360'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'RSSTCD-S_TRFRAME' iv_fval = is_rsstcd-s_trframe ). add_data( iv_fnam = 'RSSTCD-S_UPDTASK' iv_fval = is_rsstcd-s_updtask ). add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=TR_FRAMEWORK' ). ls_bcdata-program = 'SAPLSEUK'. ls_bcdata-dynpro = '0360'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'RSSTCD-CLASSNAME' iv_fval = is_rsstcd-classname ). add_data( iv_fnam = 'RSSTCD-METHOD' iv_fval = is_rsstcd-method ). IF is_rsstcd-s_local IS NOT INITIAL. add_data( iv_fnam = 'RSSTCD-S_LOCAL' iv_fval = is_rsstcd-s_local ). ENDIF. IF is_rsstcd-s_updlok IS NOT INITIAL. add_data( iv_fnam = 'RSSTCD-S_UPDLOK' iv_fval = is_rsstcd-s_updlok ). ENDIF. add_data( iv_fnam = 'TSTC-PGMNA' iv_fval = is_tstc-pgmna ). IF is_tstcc-s_webgui = '2'. add_data( iv_fnam = 'G_IAC_EWT' iv_fval = abap_true ). add_data( iv_fnam = 'BDC_OKCODE' iv_fval = 'MAKE_PROFI' ). ls_bcdata-program = 'SAPLSEUK'. ls_bcdata-dynpro = '0360'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. ELSEIF is_tstcc-s_webgui IS NOT INITIAL. add_data( iv_fnam = 'TSTCC-S_WEBGUI' iv_fval = is_tstcc-s_webgui ). ENDIF. IF is_tstcc-s_pervas IS NOT INITIAL. add_data( iv_fnam = 'TSTCC-S_PERVAS' iv_fval = is_tstcc-s_pervas ). ENDIF. IF is_tstcc-s_service IS NOT INITIAL. add_data( iv_fnam = 'TSTCC-S_SERVICE' iv_fval = is_tstcc-s_service ). ENDIF. IF is_tstcc-s_platin IS NOT INITIAL. add_data( iv_fnam = 'TSTCC-S_PLATIN' iv_fval = is_tstcc-s_platin ). ENDIF. IF is_tstcc-s_win32 IS NOT INITIAL. add_data( iv_fnam = 'TSTCC-S_WIN32' iv_fval = is_tstcc-s_win32 ). ENDIF. add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=WB_SAVE' ). ls_bcdata-program = 'SAPLSTRD'. ls_bcdata-dynpro = '0100'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'KO007-L_DEVCLASS' iv_fval = iv_package ). add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=ADD' ). ls_bcdata-program = 'BDC_OKCODE'. ls_bcdata-dynpro = '0360'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=WB_BACK' ). ls_bcdata-program = 'BDC_OKCODE'. ls_bcdata-dynpro = '0360'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=WB_BACK' ). call_se93( ). ENDMETHOD. METHOD deserialize_texts. DATA lt_tpool_i18n TYPE TABLE OF tstct. FIELD-SYMBOLS <ls_tpool> LIKE LINE OF lt_tpool_i18n. " Read XML-files data io_xml->read( EXPORTING iv_name = 'I18N_TPOOL' CHANGING cg_data = lt_tpool_i18n ). " Force t-code name (security reasons) LOOP AT lt_tpool_i18n ASSIGNING <ls_tpool>. <ls_tpool>-tcode = ms_item-obj_name. ENDLOOP. IF lines( lt_tpool_i18n ) > 0. MODIFY tstct FROM TABLE lt_tpool_i18n. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Update of t-code translations failed' ). ENDIF. ENDIF. ENDMETHOD. METHOD is_variant_transaction. rv_variant_transaction = boolc( is_tstcp-param(1) = '@' ). ENDMETHOD. METHOD save_authorizations. CONSTANTS: lc_hex_chk TYPE x VALUE '04'. DATA: ls_transaction TYPE tstc. transaction_read( EXPORTING iv_transaction = iv_transaction IMPORTING es_transaction = ls_transaction ). DELETE FROM tstca WHERE tcode = iv_transaction. IF ls_transaction IS NOT INITIAL. INSERT tstca FROM TABLE it_authorizations. ls_transaction-cinfo = ls_transaction-cinfo + lc_hex_chk. UPDATE tstc SET cinfo = ls_transaction-cinfo WHERE tcode = ls_transaction-tcode. ENDIF. ENDMETHOD. METHOD serialize_texts. DATA lt_tpool_i18n TYPE TABLE OF tstct. IF io_xml->i18n_params( )-main_language_only = abap_true. RETURN. ENDIF. " Skip main language - it was already serialized " Don't serialize t-code itself SELECT sprsl ttext INTO CORRESPONDING FIELDS OF TABLE lt_tpool_i18n FROM tstct WHERE sprsl <> mv_language AND tcode = ms_item-obj_name ##TOO_MANY_ITAB_FIELDS. "#EC CI_GENBUFF IF lines( lt_tpool_i18n ) > 0. SORT lt_tpool_i18n BY sprsl ASCENDING. io_xml->add( iv_name = 'I18N_TPOOL' ig_data = lt_tpool_i18n ). ENDIF. ENDMETHOD. METHOD set_oo_parameters. DATA: ls_param LIKE LINE OF it_rsparam. IF cs_rsstcd-call_tcode = c_oo_tcode. cs_rsstcd-s_trframe = c_true. LOOP AT it_rsparam INTO ls_param. CASE ls_param-field. WHEN c_oo_frclass. cs_rsstcd-classname = ls_param-value. WHEN c_oo_frmethod. cs_rsstcd-method = ls_param-value. WHEN c_oo_frupdtask. IF ls_param-value = c_oo_synchron. cs_rsstcd-s_upddir = c_true. cs_rsstcd-s_updtask = c_false. cs_rsstcd-s_updlok = c_false. ELSEIF ls_param-value = c_oo_asynchron. cs_rsstcd-s_upddir = c_false. cs_rsstcd-s_updtask = c_true. cs_rsstcd-s_updlok = c_false. ELSE. cs_rsstcd-s_upddir = c_false. cs_rsstcd-s_updtask = c_false. cs_rsstcd-s_updlok = c_true. ENDIF. ENDCASE. ENDLOOP. ENDIF. ENDMETHOD. METHOD shift_param. DATA: ls_param LIKE LINE OF ct_rsparam, lv_length TYPE i. FIELD-SYMBOLS <lg_f> TYPE any. DO 254 TIMES. IF cs_tstcp-param = space. EXIT. ENDIF. CLEAR ls_param. IF cs_tstcp-param CA '='. CHECK sy-fdpos <> 0. ASSIGN cs_tstcp-param(sy-fdpos) TO <lg_f>. ls_param-field = <lg_f>. IF ls_param-field(1) = space. SHIFT ls_param-field. ENDIF. sy-fdpos = sy-fdpos + 1. SHIFT cs_tstcp-param BY sy-fdpos PLACES. IF cs_tstcp-param CA ';'. IF sy-fdpos <> 0. ASSIGN cs_tstcp-param(sy-fdpos) TO <lg_f>. ls_param-value = <lg_f>. IF ls_param-value(1) = space. SHIFT ls_param-value. ENDIF. ENDIF. sy-fdpos = sy-fdpos + 1. SHIFT cs_tstcp-param BY sy-fdpos PLACES. APPEND ls_param TO ct_rsparam. ELSE. lv_length = strlen( cs_tstcp-param ). CHECK lv_length > 0. ASSIGN cs_tstcp-param(lv_length) TO <lg_f>. ls_param-value = <lg_f>. IF ls_param-value(1) = space. SHIFT ls_param-value. ENDIF. lv_length = lv_length + 1. SHIFT cs_tstcp-param BY lv_length PLACES. APPEND ls_param TO ct_rsparam. ENDIF. ENDIF. ENDDO. ENDMETHOD. METHOD split_parameters. * see subroutine split_parameters in include LSEUKF01 DATA: lv_off TYPE i, lv_param_beg TYPE i. CLEAR cs_rsstcd-s_vari. IF cs_tstcp-param(1) = '\'. " OO-Transaktion ohne FR split_parameters_comp( EXPORTING ig_type = c_oo_program ig_param = cs_tstcp-param CHANGING cg_value = cs_tstc-pgmna ). split_parameters_comp( EXPORTING ig_type = c_oo_class ig_param = cs_tstcp-param CHANGING cg_value = cs_rsstcd-classname ). split_parameters_comp( EXPORTING ig_type = c_oo_method ig_param = cs_tstcp-param CHANGING cg_value = cs_rsstcd-method ). IF NOT cs_tstc-pgmna IS INITIAL. cs_rsstcd-s_local = c_true. ENDIF. RETURN. ELSEIF cs_tstcp-param(1) = '@'. " Transaktionsvariante cs_rsstcd-s_vari = c_true. IF cs_tstcp-param(2) = '@@'. cs_rsstcd-s_ind_vari = c_true. lv_off = 2. ELSE. CLEAR cs_rsstcd-s_ind_vari. lv_off = 1. ENDIF. IF cs_tstcp-param CA ' '. ENDIF. sy-fdpos = sy-fdpos - lv_off. IF sy-fdpos > 0. cs_rsstcd-call_tcode = cs_tstcp-param+lv_off(sy-fdpos). sy-fdpos = sy-fdpos + 1 + lv_off. cs_rsstcd-variant = cs_tstcp-param+sy-fdpos. ENDIF. ELSEIF cs_tstcp-param(1) = '/'. cs_rsstcd-st_tcode = c_true. cs_rsstcd-st_prog = space. IF cs_tstcp-param+1(1) = '*'. cs_rsstcd-st_skip_1 = c_true. ELSE. CLEAR cs_rsstcd-st_skip_1. ENDIF. IF cs_tstcp-param CA ' '. ENDIF. lv_param_beg = sy-fdpos + 1. sy-fdpos = sy-fdpos - 2. IF sy-fdpos > 0. cs_rsstcd-call_tcode = cs_tstcp-param+2(sy-fdpos). ENDIF. SHIFT cs_tstcp-param BY lv_param_beg PLACES. ELSE. cs_rsstcd-st_tcode = space. cs_rsstcd-st_prog = c_true. ENDIF. shift_param( CHANGING ct_rsparam = ct_rsparam cs_tstcp = cs_tstcp ). set_oo_parameters( EXPORTING it_rsparam = ct_rsparam CHANGING cs_rsstcd = cs_rsstcd ). ENDMETHOD. METHOD split_parameters_comp. DATA: lv_off TYPE i. IF ig_param CS ig_type. lv_off = sy-fdpos + strlen( ig_type ). cg_value = ig_param+lv_off. IF cg_value CA '\'. CLEAR cg_value+sy-fdpos. ENDIF. ENDIF. ENDMETHOD. METHOD transaction_read. DATA: lt_tcodes TYPE TABLE OF tstc, lt_gui_attr TYPE TABLE OF tstcc. CLEAR: es_transaction, es_gui_attr. CALL FUNCTION 'RPY_TRANSACTION_READ' EXPORTING transaction = iv_transaction TABLES tcodes = lt_tcodes gui_attributes = lt_gui_attr EXCEPTIONS permission_error = 1 cancelled = 2 not_found = 3 object_not_found = 4 OTHERS = 5. IF sy-subrc = 4 OR sy-subrc = 3. RETURN. ELSEIF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. READ TABLE lt_tcodes INDEX 1 INTO es_transaction. ASSERT sy-subrc = 0. READ TABLE lt_gui_attr INDEX 1 INTO es_gui_attr. ASSERT sy-subrc = 0. 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: lv_transaction TYPE tstc-tcode. lv_transaction = ms_item-obj_name. CALL FUNCTION 'RPY_TRANSACTION_DELETE' EXPORTING transaction = lv_transaction EXCEPTIONS not_excecuted = 1 object_not_found = 0 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~deserialize. CONSTANTS: lc_hex_tra TYPE x VALUE '00', * lc_hex_men TYPE x VALUE '01', lc_hex_par TYPE x VALUE '02', lc_hex_rep TYPE x VALUE '80', * lc_hex_rpv TYPE x VALUE '10', lc_hex_obj TYPE x VALUE '08'. DATA: lv_dynpro TYPE d020s-dnum, ls_tstc TYPE tstc, lv_type TYPE rglif-docutype, ls_tstct TYPE tstct, ls_tstcc TYPE tstcc, ls_tstcp TYPE tstcp, lt_tstca TYPE ty_tstca, lt_param_values TYPE ty_param_values, ls_rsstcd TYPE rsstcd. IF zif_abapgit_object~exists( ) = abap_true. zif_abapgit_object~delete( iv_package = iv_package iv_transport = iv_transport ). ENDIF. io_xml->read( EXPORTING iv_name = 'TSTC' CHANGING cg_data = ls_tstc ). io_xml->read( EXPORTING iv_name = 'TSTCC' CHANGING cg_data = ls_tstcc ). io_xml->read( EXPORTING iv_name = 'TSTCT' CHANGING cg_data = ls_tstct ). io_xml->read( EXPORTING iv_name = 'TSTCP' CHANGING cg_data = ls_tstcp ). io_xml->read( EXPORTING iv_name = 'AUTHORIZATIONS' CHANGING cg_data = lt_tstca ). lv_dynpro = ls_tstc-dypno. IF ls_tstc-cinfo O lc_hex_rep. lv_type = c_variant_type-report. ELSEIF ls_tstc-cinfo O lc_hex_obj. lv_type = c_variant_type-object. ELSEIF ls_tstc-cinfo O lc_hex_par. IF is_variant_transaction( ls_tstcp ) = abap_true. lv_type = c_variant_type-variant. ELSE. lv_type = c_variant_type-parameters. ENDIF. ELSEIF ls_tstc-cinfo O lc_hex_tra. lv_type = c_variant_type-dialog. ELSE. zcx_abapgit_exception=>raise( 'Transaction, unknown CINFO' ). ENDIF. IF ls_tstcp IS NOT INITIAL. split_parameters( CHANGING ct_rsparam = lt_param_values cs_rsstcd = ls_rsstcd cs_tstcp = ls_tstcp cs_tstc = ls_tstc ). ENDIF. CASE lv_type. WHEN c_variant_type-object. deserialize_oo_transaction( iv_package = iv_package is_tstc = ls_tstc is_tstcc = ls_tstcc is_tstct = ls_tstct is_rsstcd = ls_rsstcd ). WHEN OTHERS. clear_functiongroup_globals( ). corr_insert( iv_package ). CALL FUNCTION 'RPY_TRANSACTION_INSERT' EXPORTING transaction = ls_tstc-tcode program = ls_tstc-pgmna dynpro = lv_dynpro language = mv_language development_class = iv_package transaction_type = lv_type shorttext = ls_tstct-ttext called_transaction = ls_rsstcd-call_tcode called_transaction_skip = ls_rsstcd-st_skip_1 variant = ls_rsstcd-variant cl_independend = ls_rsstcd-s_ind_vari html_enabled = ls_tstcc-s_webgui java_enabled = ls_tstcc-s_platin wingui_enabled = ls_tstcc-s_win32 suppress_corr_insert = abap_true TABLES param_values = lt_param_values EXCEPTIONS cancelled = 1 already_exist = 2 permission_error = 3 name_not_allowed = 4 name_conflict = 5 illegal_type = 6 object_inconsistent = 7 db_access_error = 8 OTHERS = 9. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDCASE. IF lt_tstca IS NOT INITIAL. save_authorizations( iv_transaction = ls_tstc-tcode it_authorizations = lt_tstca ). ENDIF. " Texts deserializing (translations) deserialize_texts( io_xml ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_tcode TYPE tstc-tcode. SELECT SINGLE tcode FROM tstc INTO lv_tcode WHERE tcode = 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_object TYPE eqegraarg. lv_object = |TN{ ms_item-obj_name }|. OVERLAY lv_object WITH ' '. lv_object = lv_object && '*'. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'EEUDB' 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 = 'SAPLSEUK'. <ls_bdcdata>-dynpro = '0390'. <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 = 'TSTC-TCODE'. <ls_bdcdata>-fval = ms_item-obj_name. zcl_abapgit_ui_factory=>get_gui_jumper( )->jump_batch_input( iv_tcode = 'SE93' it_bdcdata = lt_bdcdata ). rv_exit = abap_true. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_transaction TYPE tstc-tcode, ls_tcode TYPE tstc, ls_tstct TYPE tstct, ls_tstcp TYPE tstcp, lt_tstca TYPE ty_tstca, ls_gui_attr TYPE tstcc. lv_transaction = ms_item-obj_name. transaction_read( EXPORTING iv_transaction = lv_transaction IMPORTING es_transaction = ls_tcode es_gui_attr = ls_gui_attr ). IF ls_tcode IS INITIAL. RETURN. ENDIF. SELECT SINGLE * FROM tstct INTO ls_tstct WHERE sprsl = mv_language AND tcode = lv_transaction. "#EC CI_SUBRC "#EC CI_GENBUFF SELECT SINGLE * FROM tstcp INTO ls_tstcp WHERE tcode = lv_transaction. "#EC CI_SUBRC "#EC CI_GENBUFF SELECT * FROM tstca INTO TABLE lt_tstca WHERE tcode = lv_transaction. IF sy-subrc <> 0. CLEAR: lt_tstca. ENDIF. io_xml->add( iv_name = 'TSTC' ig_data = ls_tcode ). io_xml->add( iv_name = 'TSTCC' ig_data = ls_gui_attr ). io_xml->add( iv_name = 'TSTCT' ig_data = ls_tstct ). IF ls_tstcp IS NOT INITIAL. io_xml->add( iv_name = 'TSTCP' ig_data = ls_tstcp ). ENDIF. io_xml->add( iv_name = 'AUTHORIZATIONS' ig_data = lt_tstca ). " Texts serializing (translations) serialize_texts( io_xml ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 2213, 272, 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, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 17143, 62, 27160, 41876, 49053, 9795, 43679, 3963, 44608, 17143, 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, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374, 837, 198, 220, 220, 220, 220, 220, 1259, 62, 83, 301, 6888, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 256, 301, 6888, 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, 13315, 5550, 38865, 35374, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 23065, 220, 220, 41876, 269, 406, 49494, 860, 26173, 8924, 705, 59, 4805, 7730, 24115, 11639, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 4871, 220, 220, 220, 220, 41876, 269, 406, 49494, 767, 26173, 8924, 705, 59, 31631, 11639, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 24396, 220, 220, 220, 41876, 269, 406, 49494, 807, 26173, 8924, 705, 59, 49273, 11639, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 83, 8189, 220, 220, 220, 220, 41876, 256, 8189, 26173, 8924, 705, 2640, 62, 2969, 31484, 6234, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 8310, 4871, 220, 220, 41876, 269, 406, 49494, 1542, 26173, 8924, 705, 31631, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 8310, 24396, 220, 41876, 269, 406, 49494, 1542, 26173, 8924, 705, 49273, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 69, 12618, 28664, 2093, 41876, 269, 406, 49494, 1542, 26173, 8924, 705, 16977, 62, 49058, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 28869, 11413, 220, 41876, 269, 26173, 8924, 705, 50, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 292, 24871, 41876, 269, 26173, 8924, 705, 52, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 269, 62, 7942, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 26173, 8924, 705, 55, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 269, 62, 9562, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 26173, 8924, 2272, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 25641, 415, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 17310, 220, 220, 220, 220, 41876, 374, 4743, 361, 12, 15390, 315, 2981, 26173, 8924, 705, 35, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 989, 220, 220, 220, 220, 41876, 374, 4743, 361, 12, 15390, 315, 2981, 26173, 8924, 705, 49, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 15304, 220, 220, 220, 41876, 374, 4743, 361, 12, 15390, 315, 2981, 26173, 8924, 705, 53, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10007, 41876, 374, 4743, 361, 12, 15390, 315, 2981, 26173, 8924, 705, 47, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 220, 220, 220, 220, 41876, 374, 4743, 361, 12, 15390, 315, 2981, 26173, 8924, 705, 46, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 25641, 415, 62, 4906, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 45079, 62, 15630, 7890, 41876, 49053, 9795, 43679, 3963, 275, 17896, 7890, 764, 628, 220, 220, 220, 337, 36252, 50, 8611, 62, 961, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 7645, 2673, 41876, 256, 8189, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1658, 62, 7645, 2673, 41876, 256, 301, 66, 198, 220, 220, 220, 220, 220, 220, 220, 1658, 62, 48317, 62, 35226, 220, 220, 220, 41876, 256, 301, 535, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 337, 36252, 50, 6482, 62, 17143, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 3808, 17143, 41876, 264, 62, 17143, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 6359, 62, 83, 301, 13155, 220, 220, 41876, 256, 301, 13155, 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, 452, 62, 69, 7402, 41876, 275, 17896, 7890, 12, 69, 7402, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 69, 2100, 41876, 537, 522, 764, 198, 220, 220, 220, 337, 36252, 50, 869, 62, 325, 6052, 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, 900, 62, 2238, 62, 17143 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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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ITION. METHODS get_code_without_issue REDEFINITION. METHODS get_code_with_exemption REDEFINITION. ENDCLASS. CLASS ltc_osql_framework IMPLEMENTATION. METHOD get_cut. result ?= NEW y_check_db_access_in_ut( ). ENDMETHOD. METHOD get_code_with_issue. result = VALUE #( ( ' REPORT ut_test. ' ) ( ' CLASS lcl_classname DEFINITION FOR TESTING. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' ENDCLASS.' ) ( ' CLASS lcl_classname IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( ' DATA tadir TYPE tadir. ' ) ( ' SELECT SINGLE * FROM tadir INTO tadir. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_without_issue. result = VALUE #( ( ' REPORT ut_test. ' ) ( ' CLASS lcl_classname DEFINITION FOR TESTING. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS scenario FOR TESTING. ' ) ( ' PROTECTED SECTION. ' ) ( ' METHODS given_fake_value. ' ) ( ' METHODS when_select. ' ) ( ' METHODS then_has_entry. ' ) ( ' PRIVATE SECTION. ' ) ( ' CLASS-DATA osql_test_environment TYPE REF TO if_osql_test_environment. ' ) ( ' DATA cut TYPE tadir. ' ) ( ' CLASS-METHODS class_setup. ' ) ( ' CLASS-METHODS class_teardown. ' ) ( ' ENDCLASS.' ) ( ' CLASS lcl_classname IMPLEMENTATION. ' ) ( ' METHOD class_setup. ' ) ( | osql_test_environment = cl_osql_test_environment=>create( VALUE #( ( 'tadir' ) ) ). | ) ( ' ENDMETHOD. ' ) ( ' METHOD class_teardown. ' ) ( ' osql_test_environment->destroy( ). ' ) ( ' ENDMETHOD. ' ) ( ' METHOD given_fake_value. ' ) ( ' "osql_test_environment->insert_test_data( data ). ' ) ( ' ENDMETHOD. ' ) ( ' METHOD when_select. ' ) ( ' SELECT SINGLE * FROM tadir INTO cut. ' ) ( ' ENDMETHOD. ' ) ( ' METHOD then_has_entry. ' ) ( ' cl_abap_unit_assert=>assert_not_initial( cut ). ' ) ( ' ENDMETHOD. ' ) ( ' METHOD scenario. ' ) ( ' given_fake_value( ). ' ) ( ' when_select( ). ' ) ( ' then_has_entry( ). ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_with_exemption. result = VALUE #( ( ' REPORT ut_test. ' ) ( ' CLASS lcl_classname DEFINITION FOR TESTING. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' ENDCLASS.' ) ( ' CLASS lcl_classname IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( ' DATA tadir TYPE tadir. ' ) ( ' SELECT SINGLE * FROM tadir INTO tadir. "#EC DB_ACCESS_UT ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS. CLASS ltc_osql_framework_inherited DEFINITION INHERITING FROM ltc_osql_framework FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PROTECTED SECTION. METHODS get_code_without_issue REDEFINITION. ENDCLASS. CLASS ltc_osql_framework_inherited IMPLEMENTATION. METHOD get_code_without_issue. result = VALUE #( ( ' REPORT ut_test. ' ) ( ' CLASS lcl_base DEFINITION FOR TESTING. ' ) ( ' PROTECTED SECTION. ' ) ( ' METHODS given_fake_value. ' ) ( ' METHODS when_select. ' ) ( ' METHODS then_has_entry. ' ) ( ' PRIVATE SECTION. ' ) ( ' CLASS-DATA osql_test_environment TYPE REF TO if_osql_test_environment. ' ) ( ' DATA cut TYPE tadir. ' ) ( ' CLASS-METHODS class_setup. ' ) ( ' CLASS-METHODS class_teardown. ' ) ( ' ENDCLASS.' ) ( ' CLASS lcl_base IMPLEMENTATION. ' ) ( ' METHOD class_setup. ' ) ( | osql_test_environment = cl_osql_test_environment=>create( VALUE #( ( 'tadir' ) ) ). | ) ( ' ENDMETHOD. ' ) ( ' METHOD class_teardown. ' ) ( ' osql_test_environment->destroy( ). ' ) ( ' ENDMETHOD. ' ) ( ' METHOD given_fake_value. ' ) ( ' "osql_test_environment->insert_test_data( data ). ' ) ( ' ENDMETHOD. ' ) ( ' METHOD when_select. ' ) ( ' SELECT SINGLE * FROM tadir INTO cut. ' ) ( ' ENDMETHOD. ' ) ( ' METHOD then_has_entry. ' ) ( ' cl_abap_unit_assert=>assert_not_initial( cut ). ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ( ' CLASS lcl_test DEFINITION FOR TESTING INHERITING FROM lcl_base. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS scenario FOR TESTING. ' ) ( ' ENDCLASS.' ) ( ' CLASS lcl_test IMPLEMENTATION. ' ) ( ' METHOD scenario. ' ) ( ' DATA entries TYPE tadir. ' ) ( ' given_fake_value( ). ' ) ( ' SELECT SINGLE * FROM tadir INTO entries. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS. CLASS ltc_risk_harmless DEFINITION INHERITING FROM y_unit_test_base FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PROTECTED SECTION. METHODS get_cut REDEFINITION. METHODS get_expected_count REDEFINITION. METHODS get_code_with_issue REDEFINITION. METHODS get_code_without_issue REDEFINITION. METHODS get_code_with_exemption REDEFINITION. ENDCLASS. CLASS ltc_risk_harmless IMPLEMENTATION. METHOD get_cut. result ?= NEW y_check_db_access_in_ut( ). ENDMETHOD. METHOD get_expected_count. result = 8. ENDMETHOD. METHOD get_code_with_issue. result = VALUE #( ( ' REPORT unit_test. ' ) ( ' CLASS example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' ENDCLASS.' ) ( ' CLASS example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( ' DATA profile TYPE ytab_profiles. ' ) ( ' SELECT SINGLE * FROM ytab_profiles INTO profile. ' ) ( ' INSERT INTO ytab_profiles VALUES profile. ' ) ( ' MODIFY ytab_profiles FROM profile. ' ) ( ' UPDATE ytab_profiles FROM profile. ' ) ( ' DELETE ytab_profiles FROM profile. ' ) ( ' COMMIT WORK. ' ) ( ' COMMIT WORK AND WAIT. ' ) ( ' ROLLBACK WORK. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_without_issue. result = VALUE #( ( ' REPORT unit_test. ' ) ( ' CLASS example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' ENDCLASS.' ) ( ' CLASS example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( ' DATA profiles TYPE TABLE OF ytab_profiles. ' ) ( ' DATA(profile) = VALUE ytab_profiles( profile = sy-uname username = sy-uname ). ' ) ( ' INSERT profile INTO TABLE profiles. ' ) ( ' MODIFY profiles FROM profile INDEX 1. ' ) ( ' DELETE profiles FROM profile. ' ) ( ' DELETE profiles INDEX lines( profiles ). ' ) ( ' MODIFY profiles FROM VALUE #( ) TRANSPORTING profile WHERE username = sy-uname. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_with_exemption. result = VALUE #( ( ' REPORT unit_test. ' ) ( ' CLASS example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' ENDCLASS.' ) ( ' CLASS example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( ' DATA profile TYPE ytab_profiles. ' ) ( ' SELECT SINGLE * FROM ytab_profiles INTO profile. "#EC DB_ACCESS_UT ' ) ( ' INSERT INTO ytab_profiles VALUES profile. "#EC DB_ACCESS_UT ' ) ( ' MODIFY ytab_profiles FROM profile. "#EC DB_ACCESS_UT ' ) ( ' UPDATE ytab_profiles FROM profile. "#EC DB_ACCESS_UT ' ) ( ' DELETE ytab_profiles FROM profile. "#EC DB_ACCESS_UT ' ) ( ' COMMIT WORK. "#EC DB_ACCESS_UT ' ) ( ' COMMIT WORK AND WAIT. "#EC DB_ACCESS_UT ' ) ( ' ROLLBACK WORK. "#EC DB_ACCESS_UT ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS. CLASS ltc_risk_critical DEFINITION INHERITING FROM y_unit_test_base FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PROTECTED SECTION. METHODS get_cut REDEFINITION. METHODS get_expected_count REDEFINITION. METHODS get_code_with_issue REDEFINITION. METHODS get_code_without_issue REDEFINITION. METHODS get_code_with_exemption REDEFINITION. ENDCLASS. CLASS ltc_risk_critical IMPLEMENTATION. METHOD get_cut. result ?= NEW y_check_db_access_in_ut( ). ENDMETHOD. METHOD get_expected_count. result = 3. ENDMETHOD. METHOD get_code_with_issue. result = VALUE #( ( ' REPORT unit_test. ' ) ( ' CLASS example DEFINITION FOR TESTING RISK LEVEL CRITICAL DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' ENDCLASS.' ) ( ' CLASS example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( ' DATA profile TYPE ytab_profiles. ' ) ( ' MODIFY ytab_profiles FROM profile. ' ) ( ' UPDATE ytab_profiles FROM profile. ' ) ( ' DELETE FROM ytab_profiles WHERE username = sy-uname. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_without_issue. result = VALUE #( ( ' REPORT unit_test. ' ) ( ' CLASS example DEFINITION FOR TESTING RISK LEVEL CRITICAL DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' ENDCLASS.' ) ( ' CLASS example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( ' DATA profile TYPE ytab_profiles. ' ) ( ' SELECT SINGLE * FROM ytab_profiles INTO profile. ' ) ( ' INSERT INTO ytab_profiles VALUES profile. ' ) ( ' COMMIT WORK. ' ) ( ' COMMIT WORK AND WAIT. ' ) ( ' ROLLBACK WORK. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_with_exemption. result = VALUE #( ( ' REPORT unit_test. ' ) ( ' CLASS example DEFINITION FOR TESTING RISK LEVEL CRITICAL DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' ENDCLASS.' ) ( ' CLASS example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( ' DATA profile TYPE ytab_profiles. ' ) ( ' MODIFY ytab_profiles FROM profile. "#EC DB_ACCESS_UT ' ) ( ' UPDATE ytab_profiles FROM profile. "#EC DB_ACCESS_UT ' ) ( ' DELETE FROM ytab_profiles WHERE username = sy-uname. "#EC DB_ACCESS_UT ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS. CLASS ltc_risk_dangerous DEFINITION INHERITING FROM ltc_risk_critical FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PROTECTED SECTION. METHODS get_cut REDEFINITION. METHODS get_code_with_issue REDEFINITION. METHODS get_code_without_issue REDEFINITION. METHODS get_code_with_exemption REDEFINITION. PRIVATE SECTION. METHODS convert_critical_to_dangerous IMPORTING code TYPE y_char255_tab RETURNING VALUE(result) TYPE y_char255_tab. ENDCLASS. CLASS ltc_risk_dangerous IMPLEMENTATION. METHOD get_cut. result ?= NEW y_check_db_access_in_ut( ). ENDMETHOD. METHOD get_code_with_issue. result = convert_critical_to_dangerous( super->get_code_with_issue( ) ). ENDMETHOD. METHOD get_code_without_issue. result = convert_critical_to_dangerous( super->get_code_without_issue( ) ). ENDMETHOD. METHOD get_code_with_exemption. result = convert_critical_to_dangerous( super->get_code_with_exemption( ) ). ENDMETHOD. METHOD convert_critical_to_dangerous. TRY. DATA(index) = line_index( code[ table_line = ' CLASS example DEFINITION FOR TESTING RISK LEVEL CRITICAL DURATION SHORT. ' ] ). result = code. result[ index ] = ' CLASS example DEFINITION FOR TESTING RISK LEVEL DANGEROUS DURATION SHORT. '. CATCH cx_sy_itab_line_not_found. RETURN. ENDTRY. ENDMETHOD. ENDCLASS. CLASS ltc_risk_not_set DEFINITION INHERITING FROM ltc_risk_harmless FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PROTECTED SECTION. METHODS get_code_with_issue REDEFINITION. METHODS get_code_without_issue REDEFINITION. METHODS get_code_with_exemption REDEFINITION. PRIVATE SECTION. METHODS convert_harmless_to_not_set IMPORTING code TYPE y_char255_tab RETURNING VALUE(result) TYPE y_char255_tab. ENDCLASS. CLASS ltc_risk_not_set IMPLEMENTATION. METHOD get_code_with_issue. result = convert_harmless_to_not_set( super->get_code_with_issue( ) ). ENDMETHOD. METHOD get_code_without_issue. result = convert_harmless_to_not_set( super->get_code_without_issue( ) ). ENDMETHOD. METHOD get_code_with_exemption. result = convert_harmless_to_not_set( super->get_code_with_exemption( ) ). ENDMETHOD. METHOD convert_harmless_to_not_set. TRY. DATA(index) = line_index( code[ table_line = ' CLASS example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ] ). result = code. result[ index ] = ' CLASS example DEFINITION FOR TESTING. '. CATCH cx_sy_itab_line_not_found. RETURN. ENDTRY. ENDMETHOD. ENDCLASS. CLASS ltc_exec_sql DEFINITION INHERITING FROM y_unit_test_base FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PROTECTED SECTION. METHODS get_cut REDEFINITION. METHODS get_code_with_issue REDEFINITION. METHODS get_code_without_issue REDEFINITION. METHODS get_code_with_exemption REDEFINITION. ENDCLASS. CLASS ltc_exec_sql IMPLEMENTATION. METHOD get_cut. result ?= NEW y_check_db_access_in_ut( ). ENDMETHOD. METHOD get_code_with_issue. result = VALUE #( ( ' REPORT unit_test. ' ) ( ' CLASS example DEFINITION FOR TESTING RISK LEVEL CRITICAL DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' ENDCLASS.' ) ( ' CLASS example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( ' EXEC SQL. ' ) ( ' DELETE FROM ytab_profiles WHERE username = sy-uname; ' ) ( ' ENDEXEC. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_without_issue. result = VALUE #( ( ' REPORT unit_test. ' ) ( ' CLASS example DEFINITION FOR TESTING RISK LEVEL CRITICAL DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' ENDCLASS.' ) ( ' CLASS example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( ' ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_with_exemption. result = VALUE #( ( ' REPORT unit_test. ' ) ( ' CLASS example DEFINITION FOR TESTING RISK LEVEL CRITICAL DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' ENDCLASS.' ) ( ' CLASS example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( ' DELETE FROM ytab_profiles WHERE username = sy-uname. "#EC DB_ACCESS_UT ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS. CLASS ltc_itab DEFINITION INHERITING FROM ltc_risk_harmless FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PROTECTED SECTION. METHODS get_code_without_issue REDEFINITION. ENDCLASS. CLASS ltc_itab IMPLEMENTATION. METHOD get_code_without_issue. result = VALUE #( ( ' REPORT unit_test. ' ) ( ' CLASS example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' ENDCLASS.' ) ( ' CLASS example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( ' DATA mt_messages TYPE symsg_tab. ' ) ( ' DATA message TYPE symsg. ' ) ( ' INSERT message INTO TABLE mt_messages. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 23047, 62, 418, 13976, 62, 30604, 5550, 20032, 17941, 3268, 16879, 2043, 2751, 16034, 331, 62, 20850, 62, 9288, 62, 8692, 7473, 43001, 2751, 45698, 42, 49277, 43638, 5805, 7597, 360, 4261, 6234, 6006, 9863, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 8968, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 8189, 62, 4480, 62, 21949, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 8189, 62, 19419, 62, 21949, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 8189, 62, 4480, 62, 1069, 11221, 23848, 36, 20032, 17941, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 23047, 62, 418, 13976, 62, 30604, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 651, 62, 8968, 13, 198, 220, 220, 220, 1255, 5633, 28, 12682, 331, 62, 9122, 62, 9945, 62, 15526, 62, 259, 62, 315, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 8189, 62, 4480, 62, 21949, 13, 198, 220, 220, 220, 1255, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 357, 705, 39099, 3384, 62, 9288, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 42715, 300, 565, 62, 4871, 3672, 5550, 20032, 17941, 7473, 43001, 2751, 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, 220, 220, 337, 36252, 50, 1672, 7473, 43001, 2751, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 23578, 31631, 2637, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 42715, 300, 565, 62, 4871, 3672, 30023, 2538, 10979, 6234, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 337, 36252, 1672, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 42865, 36264, 343, 41876, 36264, 343, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 33493, 311, 2751, 2538, 1635, 16034, 36264, 343, 39319, 36264, 343, 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, 198, 220, 220, 220, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 8189, 62, 19419, 62, 21949, 13, 198, 220, 220, 220, 1255, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 357, 705, 39099, 3384, 62, 9288, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 42715, 300, 565, 62, 4871, 3672, 5550, 20032, 17941, 7473, 43001, 2751, 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, 220, 220, 337, 36252, 50, 8883, 7473, 43001, 2751, 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, 1813, 62, 30706, 62, 8367, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 337, 36252, 50, 618, 62, 19738, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 337, 36252, 50, 788, 62, 10134, 62, 13000, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 4810, 3824, 6158, 44513, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 42715, 12, 26947, 267, 25410, 62, 9288, 62, 38986, 41876, 4526, 37, 5390, 611, 62, 418, 13976, 62, 9288, 62, 38986, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 42865, 2005, 41876, 36264, 343, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 42715, 12, 49273, 50, 1398, 62, 40406, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 42715, 12, 49273, 50, 1398, 62, 660, 446, 593, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 23578, 31631, 2637, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 42715, 300, 565, 62, 4871, 3672, 30023, 2538, 10979, 6234, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 220, 220, 337, 36252, 1398, 62, 40406, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 930, 220, 220, 220, 220, 267, 25410, 62, 9288, 62, 38986, 796, 537, 62, 418, 13976, 62, 9288, 62, 38986, 14804, 17953, 7, 26173, 8924, 1303, 7, 357, 705, 83, 324, 343, 6, 1267, 1267, 6739, 930, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 23578, 49273, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 220, 220, 337, 36252, 1398, 62, 660, 446, 593, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 267, 25410, 62, 9288, 62, 38986, 3784, 41659, 7, 6739, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 23578, 49273, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 220, 220, 337, 36252, 1813, 62, 30706, 62, 8367, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 366, 418, 13976, 62, 9288, 62, 38986, 3784, 28463, 62, 9288, 62, 7890, 7, 1366, 6739, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 23578, 49273, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 220, 220, 337, 36252, 618, 62, 19738, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 33493, 311, 2751, 2538, 1635, 16034, 36264, 343, 39319, 2005, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 23578, 49273, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 220, 220, 337, 36252, 788, 62, 10134, 62, 13000, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 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 ]
REPORT zmultiplyhtml. CLASS lcl_main DEFINITION. PUBLIC SECTION. METHODS start. METHODS constructor. PRIVATE SECTION. DATA random TYPE REF TO cl_abap_random_int. DATA: n1 TYPE i, n2 TYPE i. METHODS handle_sapevent FOR EVENT sapevent OF cl_abap_browser IMPORTING action query_table. ENDCLASS. CLASS lcl_main IMPLEMENTATION. METHOD constructor. random = cl_abap_random_int=>create( min = 0 max = 10 seed = cl_abap_random=>seed( ) ). n1 = random->get_next( ). n2 = random->get_next( ). ENDMETHOD. METHOD start. DATA: answer TYPE i. SET HANDLER handle_sapevent. DATA(html) = |<!DOCTYPE html> | && |<html> | && | <head> | && | <style>body \{ font-family:cursive; color:darkred; | && | background-color:lightyellow; font-size:24px; \}</style>| && | <meta http-equiv="X-UA-Compatible" content="IE=edge"> | && | <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>| && | </head> | && | <script language="JavaScript"> | && | function sendInput(form) \{ | && | fname=form.name; | && | document[fname].submit(); | && | \} | && | function InputKeyDown(form) \{ | && | if(event.keyCode == 13) \{ | && | fname=form.name; | && | document[fname].submit(); | && | \} | && | \} | && | </script | && | <body>| && |<form name="INPUT" method="post" action="SAPEVENT:INPUT">| && |<table><tr><td>| && |What is { n1 } * { n2 }?</td>| && |<td><image src=https://upload.wikimedia.org/wikipedia/commons/thumb/c/ca/Emojione_1F42B.svg/240px-Emojione_1F42B.svg.png></td></tr>| && |<tr><td>Answer:<input type=number name=answer onsubmit="this.form.submit()">| && |<button id="enterButton" type="button" title="Enter" onClick="sendInput(INPUT);" onKeypress="if(event.keycode=13) sendInput(INPUT);">Am I right?</button>| && |</td></tr></table>| && |</form>| && | </body>| && |</html>|. cl_abap_browser=>show_html( EXPORTING title = 'The Multiplicator' html_string = html dialog = abap_false ). ENDMETHOD. METHOD handle_sapevent. DATA(answer) = CONV i( query_table[ name = 'answer' ]-value ). IF answer = n1 * n2. cl_demo_output=>display( 'Yay! \(ˆ˚ˆ)/' ). ELSE. cl_demo_output=>display( |Bzzt! Sorry, { n1 } * { n2 } is { n1 * n2 }| ). ENDIF. ENDMETHOD. ENDCLASS. START-OF-SELECTION. NEW lcl_main( )->start( ).
[ 2200, 15490, 1976, 16680, 541, 306, 6494, 13, 198, 198, 31631, 300, 565, 62, 12417, 5550, 20032, 17941, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 923, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 4738, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 25120, 62, 600, 13, 198, 220, 220, 220, 42865, 25, 299, 16, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 299, 17, 41876, 1312, 13, 628, 220, 220, 220, 337, 36252, 50, 5412, 62, 82, 1758, 1151, 7473, 49261, 473, 431, 1151, 3963, 537, 62, 397, 499, 62, 40259, 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, 30023, 9863, 2751, 2223, 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, 12405, 62, 11487, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 12417, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 4738, 796, 537, 62, 397, 499, 62, 25120, 62, 600, 14804, 17953, 7, 949, 796, 657, 3509, 796, 838, 9403, 796, 537, 62, 397, 499, 62, 25120, 14804, 28826, 7, 1267, 6739, 198, 220, 220, 220, 299, 16, 796, 4738, 3784, 1136, 62, 19545, 7, 6739, 198, 220, 220, 220, 299, 17, 796, 4738, 3784, 1136, 62, 19545, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 923, 13, 198, 220, 220, 220, 42865, 25, 3280, 41876, 1312, 13, 628, 220, 220, 220, 25823, 367, 6981, 39878, 5412, 62, 82, 1758, 1151, 13, 628, 220, 220, 220, 42865, 7, 6494, 8, 796, 198, 220, 220, 220, 220, 220, 930, 27, 0, 18227, 4177, 56, 11401, 27711, 29, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 11405, 198, 220, 220, 220, 220, 220, 930, 27, 6494, 29, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 11405, 198, 220, 220, 220, 220, 220, 930, 220, 1279, 2256, 29, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 11405, 198, 220, 220, 220, 220, 220, 930, 220, 220, 220, 1279, 7635, 29, 2618, 3467, 90, 10369, 12, 17989, 25, 66, 30753, 26, 3124, 25, 21953, 445, 26, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 11405, 198, 220, 220, 220, 220, 220, 930, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4469, 12, 8043, 25, 2971, 36022, 26, 10369, 12, 7857, 25, 1731, 8416, 26, 3467, 92, 3556, 7635, 29, 91, 11405, 198, 220, 220, 220, 220, 220, 930, 220, 220, 220, 1279, 28961, 2638, 12, 4853, 452, 2625, 55, 12, 34970, 12, 7293, 16873, 1, 2695, 2625, 10008, 28, 14907, 5320, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 11405, 198, 220, 220, 220, 220, 220, 930, 220, 220, 220, 1279, 28961, 2638, 12, 4853, 452, 11639, 19746, 12, 6030, 6, 2695, 11639, 5239, 14, 6494, 26, 354, 945, 316, 28, 48504, 12, 23, 6, 15913, 91, 11405, 198, 220, 220, 220, 220, 220, 930, 220, 7359, 2256, 29, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 11405, 198, 220, 220, 220, 220, 220, 930, 220, 220, 220, 1279, 12048, 3303, 2625, 29584, 7391, 5320, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 11405, 198, 220, 220, 220, 220, 220, 930, 220, 220, 220, 220, 220, 2163, 3758, 20560, 7, 687, 8, 3467, 90, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 11405, 198, 220, 220, 220, 220, 220, 930, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 3672, 28, 687, 13, 3672, 26, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 11405, 198, 220, 220, 220, 220, 220, 930, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3188, 58, 69, 3672, 4083, 46002, 9783, 220, 220, 220, 220, 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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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 ]
class ZCX_CUTE_TRANSPORT_NO_REQUEST definition public inheriting from ZCX_CUTE create public . public section. constants ZCX_CUTE_TRANSPORT_NO_REQUEST type SOTR_CONC value '005056A038571ED9BDDF4FE906499958' ##NO_TEXT. methods CONSTRUCTOR importing !TEXTID like TEXTID optional !PREVIOUS like PREVIOUS optional . protected section. private section. ENDCLASS. CLASS ZCX_CUTE_TRANSPORT_NO_REQUEST IMPLEMENTATION. method CONSTRUCTOR. CALL METHOD SUPER->CONSTRUCTOR EXPORTING TEXTID = TEXTID PREVIOUS = PREVIOUS . IF textid IS INITIAL. me->textid = ZCX_CUTE_TRANSPORT_NO_REQUEST . ENDIF. endmethod. ENDCLASS.
[ 4871, 1168, 34, 55, 62, 34, 37780, 62, 5446, 1565, 4303, 9863, 62, 15285, 62, 2200, 35780, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1168, 34, 55, 62, 34, 37780, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 38491, 1168, 34, 55, 62, 34, 37780, 62, 5446, 1565, 4303, 9863, 62, 15285, 62, 2200, 35780, 2099, 311, 2394, 49, 62, 10943, 34, 1988, 705, 405, 1120, 3980, 32, 15, 2548, 42875, 1961, 24, 14529, 8068, 19, 15112, 3829, 2414, 17032, 3365, 6, 22492, 15285, 62, 32541, 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, 34, 37780, 62, 5446, 1565, 4303, 9863, 62, 15285, 62, 2200, 35780, 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, 16876, 2420, 312, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 502, 3784, 5239, 312, 796, 1168, 34, 55, 62, 34, 37780, 62, 5446, 1565, 4303, 9863, 62, 15285, 62, 2200, 35780, 764, 198, 23578, 5064, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_objects_super DEFINITION PUBLIC ABSTRACT. PUBLIC SECTION. METHODS: constructor IMPORTING is_item TYPE zif_abapgit_definitions=>ty_item iv_language TYPE spras. CLASS-METHODS: jump_adt IMPORTING iv_obj_name TYPE zif_abapgit_definitions=>ty_item-obj_name iv_obj_type TYPE zif_abapgit_definitions=>ty_item-obj_type iv_sub_obj_name TYPE zif_abapgit_definitions=>ty_item-obj_name OPTIONAL iv_sub_obj_type TYPE zif_abapgit_definitions=>ty_item-obj_type OPTIONAL iv_line_number TYPE i OPTIONAL RAISING zcx_abapgit_exception. CONSTANTS: c_user_unknown TYPE xubname VALUE 'UNKNOWN'. PROTECTED SECTION. DATA ms_item TYPE zif_abapgit_definitions=>ty_item . DATA mv_language TYPE spras . METHODS check_timestamp IMPORTING !iv_timestamp TYPE timestamp !iv_date TYPE d !iv_time TYPE t RETURNING VALUE(rv_changed) TYPE abap_bool . METHODS get_metadata RETURNING VALUE(rs_metadata) TYPE zif_abapgit_definitions=>ty_metadata . METHODS corr_insert IMPORTING !iv_package TYPE devclass !ig_object_class TYPE any OPTIONAL RAISING zcx_abapgit_exception . METHODS tadir_insert IMPORTING !iv_package TYPE devclass RAISING zcx_abapgit_exception . METHODS jump_se11 IMPORTING !iv_radio TYPE string !iv_field TYPE string RAISING zcx_abapgit_exception . METHODS exists_a_lock_entry_for IMPORTING !iv_lock_object TYPE string !iv_argument TYPE seqg3-garg OPTIONAL RETURNING VALUE(rv_exists_a_lock_entry) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS set_default_package IMPORTING !iv_package TYPE devclass . METHODS serialize_longtexts IMPORTING !io_xml TYPE REF TO zcl_abapgit_xml_output !iv_longtext_id TYPE dokil-id OPTIONAL !it_dokil TYPE zif_abapgit_definitions=>tty_dokil OPTIONAL RAISING zcx_abapgit_exception . METHODS deserialize_longtexts IMPORTING !io_xml TYPE REF TO zcl_abapgit_xml_input RAISING zcx_abapgit_exception . METHODS delete_longtexts IMPORTING !iv_longtext_id TYPE dokil-id RAISING zcx_abapgit_exception . METHODS is_active RETURNING VALUE(rv_active) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS delete_ddic IMPORTING VALUE(iv_objtype) TYPE string VALUE(iv_no_ask) TYPE abap_bool DEFAULT abap_true VALUE(iv_no_ask_delete_append) TYPE abap_bool DEFAULT abap_false RAISING zcx_abapgit_exception . PRIVATE SECTION. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECTS_SUPER IMPLEMENTATION. METHOD check_timestamp. DATA: lv_ts TYPE timestamp. IF sy-subrc = 0 AND iv_date IS NOT INITIAL AND iv_time IS NOT INITIAL. cl_abap_tstmp=>systemtstmp_syst2utc( EXPORTING syst_date = iv_date syst_time = iv_time IMPORTING utc_tstmp = lv_ts ). IF lv_ts < iv_timestamp. rv_changed = abap_false. " Unchanged ELSE. rv_changed = abap_true. ENDIF. ELSE. " Not found? => changed rv_changed = abap_true. ENDIF. ENDMETHOD. METHOD constructor. ms_item = is_item. ASSERT NOT ms_item IS INITIAL. mv_language = iv_language. ASSERT NOT mv_language IS INITIAL. ENDMETHOD. METHOD corr_insert. DATA: lv_object TYPE string, lv_object_class TYPE string. IF ig_object_class IS NOT INITIAL. lv_object_class = ig_object_class. IF ig_object_class = 'DICT'. CONCATENATE ms_item-obj_type ms_item-obj_name INTO lv_object. ELSE. lv_object = ms_item-obj_name. ENDIF. ELSE. lv_object_class = ms_item-obj_type. lv_object = ms_item-obj_name. ENDIF. CALL FUNCTION 'RS_CORR_INSERT' EXPORTING object = lv_object object_class = lv_object_class devclass = iv_package master_language = mv_language global_lock = abap_true mode = 'I' suppress_dialog = abap_true EXCEPTIONS cancelled = 1 permission_failure = 2 unknown_objectclass = 3 OTHERS = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD delete_ddic. DATA: lv_objname TYPE rsedd0-ddobjname, lv_objtype TYPE rsedd0-ddobjtype. lv_objname = ms_item-obj_name. lv_objtype = iv_objtype. TRY. CALL FUNCTION 'RS_DD_DELETE_OBJ' EXPORTING no_ask = iv_no_ask objname = lv_objname objtype = lv_objtype no_ask_delete_append = iv_no_ask_delete_append EXCEPTIONS not_executed = 1 object_not_found = 2 object_not_specified = 3 permission_failure = 4 dialog_needed = 5 OTHERS = 6. CATCH cx_sy_dyn_call_param_not_found. " no_ask_delete_append not available in lower releases CALL FUNCTION 'RS_DD_DELETE_OBJ' EXPORTING no_ask = iv_no_ask objname = lv_objname objtype = lv_objtype EXCEPTIONS not_executed = 1 object_not_found = 2 object_not_specified = 3 permission_failure = 4 dialog_needed = 5 OTHERS = 6. ENDTRY. IF sy-subrc = 5. zcx_abapgit_exception=>raise( |Object { ms_item-obj_type } { ms_item-obj_name } has dependencies and must be deleted manually| ). ELSEIF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error deleting { ms_item-obj_type } { ms_item-obj_name }| ). ENDIF. ENDMETHOD. METHOD delete_longtexts. zcl_abapgit_factory=>get_longtexts( )->delete( iv_longtext_id = iv_longtext_id iv_object_name = ms_item-obj_name ). ENDMETHOD. METHOD deserialize_longtexts. zcl_abapgit_factory=>get_longtexts( )->deserialize( io_xml = io_xml iv_master_language = mv_language ). ENDMETHOD. METHOD exists_a_lock_entry_for. DATA: lt_lock_entries TYPE STANDARD TABLE OF seqg3. CALL FUNCTION 'ENQUEUE_READ' EXPORTING guname = '*' garg = iv_argument TABLES enq = lt_lock_entries EXCEPTIONS communication_failure = 1 system_failure = 2 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. READ TABLE lt_lock_entries TRANSPORTING NO FIELDS WITH KEY gobj = iv_lock_object. IF sy-subrc = 0. rv_exists_a_lock_entry = abap_true. ENDIF. ENDMETHOD. METHOD get_metadata. DATA: lv_class TYPE string. lv_class = cl_abap_classdescr=>describe_by_object_ref( me )->get_relative_name( ). REPLACE FIRST OCCURRENCE OF 'ZCL_ABAPGIT' IN lv_class WITH 'LCL'. rs_metadata-class = lv_class. rs_metadata-version = 'v1.0.0'. ENDMETHOD. METHOD is_active. DATA: lt_messages TYPE STANDARD TABLE OF sprot_u WITH DEFAULT KEY, lt_e071_tadirs TYPE STANDARD TABLE OF e071 WITH DEFAULT KEY, ls_e071_tadir LIKE LINE OF lt_e071_tadirs. ms_item-inactive = abap_false. ls_e071_tadir-object = ms_item-obj_type. ls_e071_tadir-obj_name = ms_item-obj_name. INSERT ls_e071_tadir INTO TABLE lt_e071_tadirs. CALL FUNCTION 'RS_INACTIVE_OBJECTS_WARNING' EXPORTING suppress_protocol = abap_false with_program_includes = abap_false suppress_dictionary_check = abap_false TABLES p_e071 = lt_e071_tadirs p_xmsg = lt_messages. IF lt_messages IS NOT INITIAL. ms_item-inactive = abap_true. ENDIF. rv_active = boolc( ms_item-inactive = abap_false ). ENDMETHOD. METHOD jump_adt. DATA: lv_adt_link TYPE string, lx_error TYPE REF TO cx_root. TRY. lv_adt_link = zcl_abapgit_adt_link=>generate( iv_obj_name = iv_obj_name iv_obj_type = iv_obj_type iv_sub_obj_name = iv_sub_obj_name iv_line_number = iv_line_number ). cl_gui_frontend_services=>execute( EXPORTING document = lv_adt_link EXCEPTIONS OTHERS = 1 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |ADT Jump Error - failed to open link { lv_adt_link }. Subrc={ sy-subrc }| ). ENDIF. CATCH cx_root INTO lx_error. zcx_abapgit_exception=>raise( iv_text = 'ADT Jump Error' ix_previous = lx_error ). ENDTRY. ENDMETHOD. METHOD jump_se11. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ms_item-obj_name object_type = ms_item-obj_type devclass = ms_item-devclass in_new_window = abap_true EXCEPTIONS not_executed = 1 invalid_object_type = 2 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Jump to SE11 failed (subrc={ sy-subrc } ).| ). ENDIF. ENDMETHOD. METHOD serialize_longtexts. zcl_abapgit_factory=>get_longtexts( )->serialize( iv_object_name = ms_item-obj_name iv_longtext_id = iv_longtext_id it_dokil = it_dokil io_xml = io_xml ). ENDMETHOD. METHOD set_default_package. " In certain cases we need to set the package package via ABAP memory " because we can't supply it via the APIs. " " Set default package, see function module RS_CORR_INSERT FORM get_current_devclass. " " We use ABAP memory instead the SET parameter because it is " more reliable. SET parameter doesn't work when multiple objects " are deserialized which uses the ABAP memory mechanism. " We don't need to reset the memory as it is done in above mentioned form routine. EXPORT current_devclass FROM iv_package TO MEMORY ID 'EUK'. ENDMETHOD. METHOD tadir_insert. 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 = sy-uname wi_tadir_devclass = iv_package wi_tadir_masterlang = mv_language iv_delflag = abap_false EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from TR_TADIR_INTERFACE (subrc={ sy-subrc } ).| ). ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 5550, 20032, 17941, 44731, 9564, 18601, 10659, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 9186, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 41876, 7500, 292, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 4391, 62, 324, 83, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 26801, 62, 3672, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 26801, 62, 4906, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 12, 26801, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 7266, 62, 26801, 62, 3672, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 12, 26801, 62, 3672, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 7266, 62, 26801, 62, 4906, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 12, 26801, 62, 4906, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 1370, 62, 17618, 220, 41876, 1312, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 269, 62, 7220, 62, 34680, 41876, 2124, 549, 3672, 26173, 8924, 705, 4944, 44706, 4458, 628, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 42865, 13845, 62, 9186, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 16129, 41876, 7500, 292, 764, 628, 220, 220, 220, 337, 36252, 50, 2198, 62, 16514, 27823, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 16514, 27823, 220, 220, 220, 220, 41876, 41033, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 4475, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 288, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2435, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 256, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 40985, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 38993, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 38993, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 38993, 764, 198, 220, 220, 220, 337, 36252, 50, 1162, 81, 62, 28463, 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, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 328, 62, 15252, 62, 4871, 41876, 597, 39852, 2849, 1847, 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, 36264, 343, 62, 28463, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26495, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 4391, 62, 325, 1157, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 37004, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3245, 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, 7160, 62, 64, 62, 5354, 62, 13000, 62, 1640, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 5354, 62, 15252, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 49140, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 33756, 70, 18, 12, 70, 853, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 1069, 1023, 62, 64, 62, 5354, 62, 13000, 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, 337, 36252, 50, 900, 62, 12286, 62, 26495, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26495, 41876, 1614, 4871, 764, 198, 220, 220, 220, 337, 36252, 50, 11389, 1096, 62, 6511, 5239, 82, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 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,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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 ]
"! <p class="shorttext synchronized" lang="en">General Exception</p> CLASS zcx_dutils_exception DEFINITION PUBLIC INHERITING FROM cx_static_check CREATE PUBLIC . PUBLIC SECTION. INTERFACES: if_t100_message. DATA: msgv1 TYPE sy-msgv1, msgv2 TYPE sy-msgv2, msgv3 TYPE sy-msgv3, msgv4 TYPE sy-msgv4. METHODS: "! <p class="shorttext synchronized" lang="en">CONSTRUCTOR</p> constructor IMPORTING previous LIKE previous OPTIONAL text TYPE string OPTIONAL. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcx_dutils_exception IMPLEMENTATION. METHOD constructor ##ADT_SUPPRESS_GENERATION. DATA: fill_t100key TYPE abap_bool. CALL METHOD super->constructor EXPORTING previous = previous. CLEAR textid. IF text IS NOT INITIAL. fill_t100key = abap_true. zcl_dutils_message_util=>split_string_to_symsg( text ). ELSEIF sy-msgid IS NOT INITIAL. fill_t100key = abap_true. ENDIF. IF fill_t100key = abap_true. msgv1 = sy-msgv1. msgv2 = sy-msgv2. msgv3 = sy-msgv3. msgv4 = sy-msgv4. if_t100_message~t100key = VALUE #( msgid = sy-msgid msgno = sy-msgno attr1 = 'MSGV1' attr2 = 'MSGV2' attr3 = 'MSGV3' attr4 = 'MSGV4' ). ELSE. if_t100_message~t100key = if_t100_message=>default_textid. ENDIF. me->previous = previous. ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 12218, 35528, 3556, 79, 29, 198, 31631, 1976, 66, 87, 62, 67, 26791, 62, 1069, 4516, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 43213, 62, 12708, 62, 9122, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 25, 198, 220, 220, 220, 220, 220, 611, 62, 83, 3064, 62, 20500, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 31456, 85, 16, 41876, 827, 12, 19662, 85, 16, 11, 198, 220, 220, 220, 220, 220, 31456, 85, 17, 41876, 827, 12, 19662, 85, 17, 11, 198, 220, 220, 220, 220, 220, 31456, 85, 18, 41876, 827, 12, 19662, 85, 18, 11, 198, 220, 220, 220, 220, 220, 31456, 85, 19, 41876, 827, 12, 19662, 85, 19, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 10943, 46126, 1581, 3556, 79, 29, 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, 2180, 34178, 2180, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 220, 220, 220, 220, 41876, 4731, 39852, 2849, 1847, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 66, 87, 62, 67, 26791, 62, 1069, 4516, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 23772, 22492, 2885, 51, 62, 40331, 32761, 62, 35353, 1137, 6234, 13, 198, 220, 220, 220, 42865, 25, 6070, 62, 83, 3064, 2539, 41876, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 42815, 337, 36252, 2208, 3784, 41571, 273, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2180, 796, 2180, 13, 628, 220, 220, 220, 30301, 1503, 2420, 312, 13, 628, 220, 220, 220, 16876, 2420, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 6070, 62, 83, 3064, 2539, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 1976, 565, 62, 67, 26791, 62, 20500, 62, 22602, 14804, 35312, 62, 8841, 62, 1462, 62, 1837, 19662, 7, 2420, 6739, 198, 220, 220, 220, 17852, 5188, 5064, 827, 12, 19662, 312, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 6070, 62, 83, 3064, 2539, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 16876, 6070, 62, 83, 3064, 2539, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 31456, 85, 16, 796, 827, 12, 19662, 85, 16, 13, 198, 220, 220, 220, 220, 220, 31456, 85, 17, 796, 827, 12, 19662, 85, 17, 13, 198, 220, 220, 220, 220, 220, 31456, 85, 18, 796, 827, 12, 19662, 85, 18, 13, 198, 220, 220, 220, 220, 220, 31456, 85, 19, 796, 827, 12, 19662, 85, 19, 13, 198, 220, 220, 220, 220, 220, 611, 62, 83, 3064, 62, 20500, 93, 83, 3064, 2539, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 796, 827, 12, 19662, 312, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 796, 827, 12, 19662, 3919, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 796, 705, 5653, 37094, 16, 6, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 17, 796, 705, 5653, 37094, 17, 6, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 18, 796, 705, 5653, 37094, 18, 6, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 19, 796, 705, 5653, 37094, 19, 6, 6739, 198, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 611, 62, 83, 3064, 62, 20500, 93, 83, 3064, 2539, 796, 611, 62, 83, 3064, 62, 20500, 14804, 12286, 62, 5239, 312, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 502, 3784, 3866, 1442, 796, 2180, 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, 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 ]
*&---------------------------------------------------------------------* *& Include /USI/BAL_DEMO_02_D01 *&---------------------------------------------------------------------* CLASS lcl_popup_maintain_task DEFINITION FINAL CREATE PRIVATE. PUBLIC SECTION. CLASS-DATA: singleton TYPE REF TO lcl_popup_maintain_task. DATA: BEGIN OF screen_fields, user_command TYPE syucomm, task TYPE /usi/bal_demo_to_do_task, END OF screen_fields. CLASS-METHODS class_constructor. METHODS display IMPORTING i_old_task_data TYPE /usi/bal_demo_to_do_task OPTIONAL. METHODS on_pbo. METHODS on_exit_command. METHODS on_user_command. METHODS was_input_cancelled RETURNING VALUE(r_result) TYPE abap_bool. METHODS get_task_text RETURNING VALUE(r_result) TYPE /usi/bal_demo_to_do_task_text. PRIVATE SECTION. DATA: input_cancelled TYPE abap_bool. METHODS hide_useless_fields. ENDCLASS.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1220, 2937, 40, 14, 33, 1847, 62, 39429, 46, 62, 2999, 62, 35, 486, 198, 9, 5, 10097, 30934, 9, 198, 31631, 300, 565, 62, 12924, 929, 62, 76, 32725, 62, 35943, 5550, 20032, 17941, 25261, 29244, 6158, 4810, 3824, 6158, 13, 198, 220, 44731, 44513, 13, 628, 220, 220, 220, 42715, 12, 26947, 25, 2060, 1122, 41876, 4526, 37, 5390, 300, 565, 62, 12924, 929, 62, 76, 32725, 62, 35943, 13, 628, 220, 220, 220, 42865, 25, 347, 43312, 3963, 3159, 62, 25747, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 21812, 41876, 827, 84, 9503, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4876, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 385, 72, 14, 6893, 62, 9536, 78, 62, 1462, 62, 4598, 62, 35943, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 220, 220, 3963, 3159, 62, 25747, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 1398, 62, 41571, 273, 13, 628, 220, 220, 220, 337, 36252, 50, 3359, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 727, 62, 35943, 62, 7890, 41876, 1220, 385, 72, 14, 6893, 62, 9536, 78, 62, 1462, 62, 4598, 62, 35943, 39852, 2849, 1847, 13, 628, 220, 220, 220, 337, 36252, 50, 319, 62, 79, 2127, 13, 628, 220, 220, 220, 337, 36252, 50, 319, 62, 37023, 62, 21812, 13, 628, 220, 220, 220, 337, 36252, 50, 319, 62, 7220, 62, 21812, 13, 628, 220, 220, 220, 337, 36252, 50, 373, 62, 15414, 62, 66, 590, 3353, 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, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 35943, 62, 5239, 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, 1220, 385, 72, 14, 6893, 62, 9536, 78, 62, 1462, 62, 4598, 62, 35943, 62, 5239, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 5128, 62, 66, 590, 3353, 41876, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 337, 36252, 50, 7808, 62, 84, 10950, 62, 25747, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ZMOCKUP_LOADER_EDIT_MOCK_APP *&---------------------------------------------------------------------* class lcl_app definition final create private. public section. constants: begin of routes, index type char8 value 'INDEX', mock type char8 value 'MOCK', text type char8 value 'TEXT', end of routes. types: begin of ty_route, route type char8, param type string, end of ty_route, tt_route type standard table of ty_route. class-methods start importing iv_mime_key type w3objid raising lcx_error. class-methods on_screen_output. methods run raising lcx_error. methods handle_mock_selected for event mock_selected of lcl_content_view importing mock_name. methods handle_mock_delete for event request_mock_delete of lcl_content_view importing mock_name. methods handle_text_save for event on_save of lcl_text_view. class-methods on_user_command importing iv_cmd type char70 returning value(rv_processed) type abap_bool. private section. class-data go_instance type ref to lcl_app. data mo_storage type ref to lcl_storage. data mt_route_queue type tt_route. data mo_current_view type ref to lcl_view_base. data mv_mime_key type w3objid. methods constructor importing iv_mime_key type w3objid raising lcx_error. methods queue_loop raising lcx_error. methods enqueue importing iv_route type char8 iv_param type string optional is_next type abap_bool optional. methods show_index raising lcx_error. methods show_mock importing iv_param type string raising lcx_error. methods show_text importing iv_param type string raising lcx_error. endclass. class lcl_app implementation. method on_user_command. assert go_instance is bound. if go_instance->mo_current_view is bound. rv_processed = go_instance->mo_current_view->on_user_command( iv_cmd ). endif. endmethod. method start. create object go_instance exporting iv_mime_key = iv_mime_key. go_instance->run( ). endmethod. method on_screen_output. go_instance->mo_current_view->on_output( ). endmethod. method constructor. mv_mime_key = iv_mime_key. create object mo_storage exporting iv_obj_name = iv_mime_key. endmethod. method run. enqueue( routes-index ). queue_loop( ). endmethod. method queue_loop. data ls_route like line of mt_route_queue. do. read table mt_route_queue into ls_route index 1. if sy-subrc is not initial. " No more routes equeued exit. endif. delete mt_route_queue index 1. " TODO refactor this shit case ls_route-route. when routes-index. show_index( ). when routes-mock. try. show_mock( ls_route-param ). catch lcx_error. " probably parsing error, try displaying as text enqueue( iv_route = routes-text iv_param = ls_route-param is_next = abap_true ). continue. endtry. when routes-text. show_text( ls_route-param ). when others. message 'Unknown route' type 'E'. endcase. if ls_route-route <> routes-index and lines( mt_route_queue ) = 0. enqueue( routes-index ). " go back to index from other views endif. enddo. endmethod. method show_index. data lt_mock_list type string_table. lt_mock_list = mo_storage->mock_list( ). data lo_content_view type ref to lcl_content_view. create object lo_content_view exporting iv_mock_name = |{ mv_mime_key }| it_contents = lt_mock_list. mo_current_view ?= lo_content_view. set handler handle_mock_selected for lo_content_view. set handler handle_mock_delete for lo_content_view. lo_content_view->display( ). set handler handle_mock_selected for lo_content_view activation ''. set handler handle_mock_delete for lo_content_view activation ''. free lo_content_view. clear mo_current_view. endmethod. method show_mock. data lr_mock type ref to data. mo_storage->get_mock( exporting iv_path = iv_param importing er_mock = lr_mock ). data lo_mock_view type ref to lcl_mock_view. create object lo_mock_view exporting iv_mock_name = iv_param ir_mock = lr_mock. mo_current_view ?= lo_mock_view. lo_mock_view->display( ). free lo_mock_view. free lr_mock. clear mo_current_view. endmethod. method show_text. data lv_raw_mock type string. lv_raw_mock = mo_storage->get_mock_raw( iv_param ). data lo_text_view type ref to lcl_text_view. create object lo_text_view exporting iv_mock_name = iv_param iv_data = lv_raw_mock. mo_current_view ?= lo_text_view. set handler handle_text_save for lo_text_view. lo_text_view->display( ). set handler handle_text_save for lo_text_view activation ''. free lo_text_view. clear mo_current_view. endmethod. method handle_mock_selected. enqueue( iv_route = routes-mock iv_param = mock_name ). mo_current_view->close( ). endmethod. method enqueue. data lv_route like line of mt_route_queue. lv_route-route = iv_route. lv_route-param = iv_param. if is_next = abap_true. insert lv_route into mt_route_queue index 1. else. append lv_route to mt_route_queue. endif. endmethod. method handle_mock_delete. * data lx type ref to lcx_error. * data msg type string. * try. * mo_storage->delete_mock( mock_name ). * catch lcx_error into lx. * msg = lx->get_text( ). * message msg type 'E'. * endtry. * * data lo_content_view type ref to lcl_content_view. * lo_content_view ?= mo_current_view. * lo_content_view->update_data( mo_storage->mock_list( ) ). endmethod. method handle_text_save. * data lo_text_view type ref to lcl_text_view. * lo_text_view ?= mo_current_view. * * data lx type ref to lcx_error. * data msg type string. * try. * mo_storage->put_mock_raw( * iv_path = lo_text_view->mv_mock_name * iv_mock = lo_text_view->mv_data ). * catch lcx_error into lx. * msg = lx->get_text( ). * message msg type 'E'. * endtry. endmethod. endclass.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1168, 44, 11290, 8577, 62, 35613, 1137, 62, 24706, 62, 44, 11290, 62, 24805, 198, 9, 5, 10097, 30934, 9, 198, 4871, 300, 565, 62, 1324, 6770, 2457, 2251, 2839, 13, 198, 220, 1171, 2665, 13, 628, 220, 220, 220, 38491, 25, 198, 220, 220, 220, 220, 220, 2221, 286, 11926, 11, 198, 220, 220, 220, 220, 220, 220, 220, 6376, 2099, 1149, 23, 1988, 705, 12115, 6369, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 15290, 220, 2099, 1149, 23, 1988, 705, 44, 11290, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 220, 2099, 1149, 23, 1988, 705, 32541, 3256, 198, 220, 220, 220, 220, 220, 886, 286, 11926, 13, 628, 220, 220, 220, 3858, 25, 198, 220, 220, 220, 220, 220, 2221, 286, 1259, 62, 38629, 11, 198, 220, 220, 220, 220, 220, 220, 220, 6339, 2099, 1149, 23, 11, 198, 220, 220, 220, 220, 220, 220, 220, 5772, 2099, 4731, 11, 198, 220, 220, 220, 220, 220, 886, 286, 1259, 62, 38629, 11, 198, 220, 220, 220, 220, 220, 256, 83, 62, 38629, 2099, 3210, 3084, 286, 1259, 62, 38629, 13, 628, 220, 220, 220, 1398, 12, 24396, 82, 923, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 76, 524, 62, 2539, 2099, 266, 18, 26801, 312, 198, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 300, 66, 87, 62, 18224, 13, 198, 220, 220, 220, 1398, 12, 24396, 82, 319, 62, 9612, 62, 22915, 13, 628, 220, 220, 220, 5050, 1057, 198, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 300, 66, 87, 62, 18224, 13, 628, 220, 220, 220, 5050, 5412, 62, 76, 735, 62, 34213, 198, 220, 220, 220, 220, 220, 329, 1785, 15290, 62, 34213, 286, 300, 565, 62, 11299, 62, 1177, 198, 220, 220, 220, 220, 220, 33332, 15290, 62, 3672, 13, 628, 220, 220, 220, 5050, 5412, 62, 76, 735, 62, 33678, 198, 220, 220, 220, 220, 220, 329, 1785, 2581, 62, 76, 735, 62, 33678, 286, 300, 565, 62, 11299, 62, 1177, 198, 220, 220, 220, 220, 220, 33332, 15290, 62, 3672, 13, 628, 220, 220, 220, 5050, 5412, 62, 5239, 62, 21928, 198, 220, 220, 220, 220, 220, 329, 1785, 319, 62, 21928, 286, 300, 565, 62, 5239, 62, 1177, 13, 628, 220, 220, 220, 1398, 12, 24396, 82, 319, 62, 7220, 62, 21812, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 28758, 2099, 1149, 2154, 198, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 81, 85, 62, 14681, 276, 8, 2099, 450, 499, 62, 30388, 13, 628, 220, 2839, 2665, 13, 198, 220, 220, 220, 1398, 12, 7890, 467, 62, 39098, 2099, 1006, 284, 300, 565, 62, 1324, 13, 628, 220, 220, 220, 1366, 6941, 62, 35350, 2099, 1006, 284, 300, 565, 62, 35350, 13, 198, 220, 220, 220, 1366, 45079, 62, 38629, 62, 36560, 2099, 256, 83, 62, 38629, 13, 198, 220, 220, 220, 1366, 6941, 62, 14421, 62, 1177, 2099, 1006, 284, 300, 565, 62, 1177, 62, 8692, 13, 198, 220, 220, 220, 1366, 285, 85, 62, 76, 524, 62, 2539, 2099, 266, 18, 26801, 312, 13, 628, 220, 220, 220, 5050, 23772, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 76, 524, 62, 2539, 2099, 266, 18, 26801, 312, 198, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 300, 66, 87, 62, 18224, 13, 628, 220, 220, 220, 5050, 16834, 62, 26268, 198, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 300, 66, 87, 62, 18224, 13, 628, 220, 220, 220, 5050, 551, 36560, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 38629, 2099, 1149, 23, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 17143, 2099, 4731, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 19545, 220, 2099, 450, 499, 62, 30388, 11902, 13, 628, 220, 220, 220, 5050, 905, 62, 9630, 198, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 300, 66, 87, 62, 18224, 13, 628, 220, 220, 220, 5050, 905, 62, 76, 735, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 17143, 2099, 4731, 198, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 300, 66, 87, 62, 18224, 13, 628, 220, 220, 220, 5050, 905, 62, 5239, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 17143, 2099, 4731, 198, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 300, 66, 87, 62, 18224, 13, 198, 198, 437, 4871, 13, 198, 198, 4871, 300, 565, 62, 1324, 7822, 13, 628, 220, 2446, 319, 62, 7220, 62, 21812, 13, 198, 220, 220, 220, 6818, 467, 62, 39098, 318, 5421, 13, 628, 220, 220, 220, 611, 467, 62, 39098, 3784, 5908, 62, 14421, 62, 1177, 318, 5421, 13, 198, 220, 220, 220, 220, 220, 374, 85, 62, 14681, 276, 796, 467, 62, 39098, 3784, 5908, 62, 14421, 62, 1177, 3784, 261, 62, 7220, 62, 21812, 7, 21628, 62, 28758, 6739, 198, 220, 220, 220, 45762, 13, 198, 220, 886, 24396, 13, 628, 220, 2446, 923, 13, 198, 220, 220, 220, 2251, 2134, 467, 62, 39098, 198, 220, 220, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 76, 524, 62, 2539, 796, 21628, 62, 76, 524, 62, 2539, 13, 198, 220, 220, 220, 467, 62, 39098, 3784, 5143, 7, 6739, 198, 220, 886, 24396, 13, 628, 220, 2446, 319, 62, 9612, 62, 22915, 13, 198, 220, 220, 220, 467, 62, 39098, 3784, 5908, 62, 14421, 62, 1177, 3784, 261, 62, 22915, 7, 6739 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1, 1 ]
"! <p> "! BAdI implementation of the OAuth 2.0 Google configuration extension. "! </p> "! "! See https://developers.google.com/drive/ class zcl_oa2c_ce_zgoogle definition public final create public. public section. interfaces if_badi_interface. interfaces if_oa2c_config_extension. endclass. class zcl_oa2c_ce_zgoogle implementation. method if_oa2c_config_extension~get_ac_auth_requ_params. et_additional_params = value tihttpnvp( ( name = `access_type` "#EC NOTEXT value = `offline` "online|offline ) ( name = `approval_prompt` "#EC NOTEXT value = `force` "auto|force ) ). endmethod. method if_oa2c_config_extension~get_saml20_at_requ_params ##NEEDED. "Nothing to do in here. endmethod. endclass.
[ 40484, 1279, 79, 29, 198, 40484, 347, 2782, 40, 7822, 286, 262, 440, 30515, 362, 13, 15, 3012, 8398, 7552, 13, 198, 40484, 7359, 79, 29, 198, 40484, 198, 40484, 4091, 3740, 1378, 16244, 364, 13, 13297, 13, 785, 14, 19472, 14, 198, 4871, 1976, 565, 62, 12162, 17, 66, 62, 344, 62, 89, 13297, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 1171, 13, 628, 198, 220, 1171, 2665, 13, 628, 220, 220, 220, 20314, 611, 62, 65, 9189, 62, 39994, 13, 198, 220, 220, 220, 20314, 611, 62, 12162, 17, 66, 62, 11250, 62, 2302, 3004, 13, 628, 198, 437, 4871, 13, 628, 198, 4871, 1976, 565, 62, 12162, 17, 66, 62, 344, 62, 89, 13297, 7822, 13, 628, 198, 220, 2446, 611, 62, 12162, 17, 66, 62, 11250, 62, 2302, 3004, 93, 1136, 62, 330, 62, 18439, 62, 8897, 62, 37266, 13, 198, 220, 220, 220, 2123, 62, 2860, 1859, 62, 37266, 796, 1988, 46668, 4023, 77, 36133, 7, 198, 220, 220, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 796, 4600, 15526, 62, 4906, 63, 220, 220, 220, 220, 220, 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, 220, 1988, 796, 4600, 2364, 1370, 63, 366, 25119, 91, 2364, 1370, 198, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 796, 4600, 21064, 2100, 62, 16963, 457, 63, 220, 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, 220, 1988, 796, 4600, 3174, 63, 366, 23736, 91, 3174, 198, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 6739, 198, 220, 886, 24396, 13, 628, 198, 220, 2446, 611, 62, 12162, 17, 66, 62, 11250, 62, 2302, 3004, 93, 1136, 62, 37687, 75, 1238, 62, 265, 62, 8897, 62, 37266, 22492, 12161, 1961, 1961, 13, 198, 220, 220, 220, 366, 18465, 284, 466, 287, 994, 13, 198, 220, 886, 24396, 13, 628, 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 ]
CLASS zcl_abapgit_objects DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. TYPES: ty_types_tt TYPE STANDARD TABLE OF tadir-object WITH DEFAULT KEY . TYPES: BEGIN OF ty_deserialization, obj TYPE REF TO zif_abapgit_object, xml TYPE REF TO zcl_abapgit_xml_input, package TYPE devclass, item TYPE zif_abapgit_definitions=>ty_item, END OF ty_deserialization . TYPES: ty_deserialization_tt TYPE STANDARD TABLE OF ty_deserialization WITH DEFAULT KEY . TYPES: BEGIN OF ty_serialization, files TYPE zif_abapgit_definitions=>ty_files_tt, item TYPE zif_abapgit_definitions=>ty_item, END OF ty_serialization . TYPES: BEGIN OF ty_step_data, step_id TYPE zif_abapgit_object=>ty_deserialization_step, order TYPE i, descr TYPE string, is_ddic TYPE abap_bool, syntax_check TYPE abap_bool, objects TYPE ty_deserialization_tt, END OF ty_step_data . TYPES: ty_step_data_tt TYPE STANDARD TABLE OF ty_step_data WITH DEFAULT KEY . CLASS-METHODS serialize IMPORTING !is_item TYPE zif_abapgit_definitions=>ty_item !iv_language TYPE spras !iv_serialize_master_lang_only TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rs_files_and_item) TYPE zcl_abapgit_objects=>ty_serialization RAISING zcx_abapgit_exception . CLASS-METHODS deserialize IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo !is_checks TYPE zif_abapgit_definitions=>ty_deserialize_checks !ii_log TYPE REF TO zif_abapgit_log RETURNING VALUE(rt_accessed_files) TYPE zif_abapgit_definitions=>ty_file_signatures_tt RAISING zcx_abapgit_exception . CLASS-METHODS deserialize_checks IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo RETURNING VALUE(rs_checks) TYPE zif_abapgit_definitions=>ty_deserialize_checks RAISING zcx_abapgit_exception . CLASS-METHODS delete IMPORTING !it_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt !is_checks TYPE zif_abapgit_definitions=>ty_delete_checks OPTIONAL RAISING zcx_abapgit_exception . CLASS-METHODS jump IMPORTING !is_item TYPE zif_abapgit_definitions=>ty_item !iv_line_number TYPE i OPTIONAL iv_sub_obj_name TYPE zif_abapgit_definitions=>ty_item-obj_name OPTIONAL iv_sub_obj_type TYPE zif_abapgit_definitions=>ty_item-obj_type OPTIONAL RAISING zcx_abapgit_exception . CLASS-METHODS changed_by IMPORTING !is_item TYPE zif_abapgit_definitions=>ty_item RETURNING VALUE(rv_user) TYPE xubname RAISING zcx_abapgit_exception . CLASS-METHODS is_supported IMPORTING !is_item TYPE zif_abapgit_definitions=>ty_item !iv_native_only TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rv_bool) TYPE abap_bool . CLASS-METHODS exists IMPORTING !is_item TYPE zif_abapgit_definitions=>ty_item RETURNING VALUE(rv_bool) TYPE abap_bool . CLASS-METHODS supported_list RETURNING VALUE(rt_types) TYPE ty_types_tt . CLASS-METHODS is_active IMPORTING !is_item TYPE zif_abapgit_definitions=>ty_item RETURNING VALUE(rv_active) TYPE abap_bool RAISING zcx_abapgit_exception . PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_obj_serializer_map, item TYPE zif_abapgit_definitions=>ty_item, metadata TYPE zif_abapgit_definitions=>ty_metadata, END OF ty_obj_serializer_map . TYPES: tty_obj_serializer_map TYPE SORTED TABLE OF ty_obj_serializer_map WITH UNIQUE KEY item . CLASS-DATA gt_obj_serializer_map TYPE tty_obj_serializer_map . CLASS-METHODS files_to_deserialize IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo !ii_log TYPE REF TO zif_abapgit_log OPTIONAL RETURNING VALUE(rt_results) TYPE zif_abapgit_definitions=>ty_results_tt RAISING zcx_abapgit_exception . CLASS-METHODS check_duplicates IMPORTING !it_files TYPE zif_abapgit_definitions=>ty_files_tt RAISING zcx_abapgit_exception . CLASS-METHODS prioritize_deser IMPORTING !it_results TYPE zif_abapgit_definitions=>ty_results_tt RETURNING VALUE(rt_results) TYPE zif_abapgit_definitions=>ty_results_tt . CLASS-METHODS class_name IMPORTING !is_item TYPE zif_abapgit_definitions=>ty_item RETURNING VALUE(rv_class_name) TYPE string . CLASS-METHODS warning_overwrite_adjust IMPORTING !it_overwrite TYPE zif_abapgit_definitions=>ty_overwrite_tt CHANGING !ct_results TYPE zif_abapgit_definitions=>ty_results_tt RAISING zcx_abapgit_exception . CLASS-METHODS checks_adjust IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo !is_checks TYPE zif_abapgit_definitions=>ty_deserialize_checks CHANGING !ct_results TYPE zif_abapgit_definitions=>ty_results_tt RAISING zcx_abapgit_exception . CLASS-METHODS warning_overwrite_find IMPORTING !it_results TYPE zif_abapgit_definitions=>ty_results_tt RETURNING VALUE(rt_overwrite) TYPE zif_abapgit_definitions=>ty_overwrite_tt RAISING zcx_abapgit_exception . CLASS-METHODS warning_package_adjust IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo !it_overwrite TYPE zif_abapgit_definitions=>ty_overwrite_tt CHANGING !ct_results TYPE zif_abapgit_definitions=>ty_results_tt RAISING zcx_abapgit_exception . CLASS-METHODS warning_package_find IMPORTING !it_results TYPE zif_abapgit_definitions=>ty_results_tt !io_repo TYPE REF TO zcl_abapgit_repo RETURNING VALUE(rt_overwrite) TYPE zif_abapgit_definitions=>ty_overwrite_tt RAISING zcx_abapgit_exception . CLASS-METHODS update_package_tree IMPORTING !iv_package TYPE devclass . CLASS-METHODS delete_obj IMPORTING !is_item TYPE zif_abapgit_definitions=>ty_item RAISING zcx_abapgit_exception . CLASS-METHODS compare_remote_to_local IMPORTING !ii_object TYPE REF TO zif_abapgit_object !it_remote TYPE zif_abapgit_definitions=>ty_files_tt !is_result TYPE zif_abapgit_definitions=>ty_result !ii_log TYPE REF TO zif_abapgit_log RAISING zcx_abapgit_exception . CLASS-METHODS deserialize_objects IMPORTING !is_step TYPE ty_step_data !ii_log TYPE REF TO zif_abapgit_log CHANGING !ct_files TYPE zif_abapgit_definitions=>ty_file_signatures_tt RAISING zcx_abapgit_exception . CLASS-METHODS check_objects_locked IMPORTING !iv_language TYPE spras !it_items TYPE zif_abapgit_definitions=>ty_items_tt RAISING zcx_abapgit_exception . CLASS-METHODS create_object IMPORTING !is_item TYPE zif_abapgit_definitions=>ty_item !iv_language TYPE spras !is_metadata TYPE zif_abapgit_definitions=>ty_metadata OPTIONAL !iv_native_only TYPE abap_bool DEFAULT abap_false RETURNING VALUE(ri_obj) TYPE REF TO zif_abapgit_object RAISING zcx_abapgit_exception . CLASS-METHODS map_tadir_to_items IMPORTING !it_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt RETURNING VALUE(rt_items) TYPE zif_abapgit_definitions=>ty_items_tt . CLASS-METHODS map_results_to_items IMPORTING !it_results TYPE zif_abapgit_definitions=>ty_results_tt RETURNING VALUE(rt_items) TYPE zif_abapgit_definitions=>ty_items_tt . CLASS-METHODS filter_files_to_deserialize IMPORTING !it_results TYPE zif_abapgit_definitions=>ty_results_tt !ii_log TYPE REF TO zif_abapgit_log OPTIONAL RETURNING VALUE(rt_results) TYPE zif_abapgit_definitions=>ty_results_tt . CLASS-METHODS adjust_namespaces IMPORTING !it_results TYPE zif_abapgit_definitions=>ty_results_tt RETURNING VALUE(rt_results) TYPE zif_abapgit_definitions=>ty_results_tt . CLASS-METHODS get_deserialize_steps RETURNING VALUE(rt_steps) TYPE ty_step_data_tt . ENDCLASS. CLASS ZCL_ABAPGIT_OBJECTS IMPLEMENTATION. METHOD adjust_namespaces. FIELD-SYMBOLS: <ls_result> LIKE LINE OF rt_results. rt_results = it_results. LOOP AT rt_results ASSIGNING <ls_result>. REPLACE ALL OCCURRENCES OF '#' IN <ls_result>-obj_name WITH '/'. ENDLOOP. ENDMETHOD. METHOD changed_by. DATA: li_obj TYPE REF TO zif_abapgit_object. IF is_item IS NOT INITIAL. li_obj = create_object( is_item = is_item iv_language = zif_abapgit_definitions=>c_english ). rv_user = li_obj->changed_by( ). ENDIF. IF rv_user IS INITIAL. * eg. ".abapgit.xml" file rv_user = zcl_abapgit_objects_super=>c_user_unknown. ENDIF. * todo, fallback to looking at transports if rv_user = 'UNKNOWN'? ENDMETHOD. METHOD checks_adjust. warning_overwrite_adjust( EXPORTING it_overwrite = is_checks-overwrite CHANGING ct_results = ct_results ). warning_package_adjust( EXPORTING io_repo = io_repo it_overwrite = is_checks-warning_package CHANGING ct_results = ct_results ). ENDMETHOD. METHOD check_duplicates. DATA: lt_files TYPE zif_abapgit_definitions=>ty_files_tt, lv_path TYPE string, lv_filename TYPE string, lt_duplicates TYPE stringtab, lv_duplicates LIKE LINE OF lt_duplicates, lv_all_duplicates TYPE string. FIELD-SYMBOLS: <lv_file> LIKE LINE OF it_files. lt_files = it_files. SORT lt_files BY path ASCENDING filename ASCENDING. LOOP AT lt_files ASSIGNING <lv_file>. IF lv_path = <lv_file>-path AND lv_filename = <lv_file>-filename. CONCATENATE <lv_file>-path <lv_file>-filename INTO lv_duplicates. APPEND lv_duplicates TO lt_duplicates. ENDIF. lv_path = <lv_file>-path. lv_filename = <lv_file>-filename. ENDLOOP. IF lt_duplicates IS NOT INITIAL. CONCATENATE LINES OF lt_duplicates INTO lv_all_duplicates SEPARATED BY `, `. zcx_abapgit_exception=>raise( |Duplicates: { lv_all_duplicates }| ). ENDIF. ENDMETHOD. METHOD check_objects_locked. DATA: li_obj TYPE REF TO zif_abapgit_object. FIELD-SYMBOLS: <ls_item> LIKE LINE OF it_items. LOOP AT it_items ASSIGNING <ls_item>. li_obj = create_object( is_item = <ls_item> iv_language = iv_language ). IF li_obj->is_locked( ) = abap_true. zcx_abapgit_exception=>raise( |Object { <ls_item>-obj_type } { <ls_item>-obj_name } | && |is locked. Action not possible.| ). ENDIF. ENDLOOP. ENDMETHOD. METHOD class_name. CONCATENATE 'ZCL_ABAPGIT_OBJECT_' is_item-obj_type INTO rv_class_name. "#EC NOTEXT ENDMETHOD. METHOD compare_remote_to_local. * this method is used for comparing local with remote objects * before pull, this is useful eg. when overwriting a TABL object. * only the main XML file is used for comparison DATA: ls_remote_file TYPE zif_abapgit_definitions=>ty_file, lo_remote_version TYPE REF TO zcl_abapgit_xml_input, lv_count TYPE i, ls_result TYPE zif_abapgit_comparator=>ty_result, lv_answer TYPE string, li_comparator TYPE REF TO zif_abapgit_comparator, lv_gui_is_available TYPE abap_bool, ls_item TYPE zif_abapgit_definitions=>ty_item. FIND ALL OCCURRENCES OF '.' IN is_result-filename MATCH COUNT lv_count. IF is_result-filename CS '.XML' AND lv_count = 2. IF ii_object->exists( ) = abap_false. RETURN. ENDIF. READ TABLE it_remote WITH KEY filename = is_result-filename INTO ls_remote_file. IF sy-subrc <> 0. "if file does not exist in remote, we don't need to validate RETURN. ENDIF. li_comparator = ii_object->get_comparator( ). IF NOT li_comparator IS BOUND. RETURN. ENDIF. CREATE OBJECT lo_remote_version EXPORTING iv_xml = zcl_abapgit_convert=>xstring_to_string_utf8( ls_remote_file-data ) iv_filename = ls_remote_file-filename. ls_result = li_comparator->compare( io_remote = lo_remote_version ii_log = ii_log ). IF ls_result-text IS INITIAL. RETURN. ENDIF. "log comparison result ls_item-obj_type = is_result-obj_type. ls_item-obj_name = is_result-obj_name. ii_log->add_warning( iv_msg = ls_result-text is_item = ls_item ). "continue or abort? lv_gui_is_available = zcl_abapgit_ui_factory=>get_gui_functions( )->gui_is_available( ). IF lv_gui_is_available = abap_true. CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = 'Warning' text_question = ls_result-text text_button_1 = 'Abort' icon_button_1 = 'ICON_CANCEL' text_button_2 = 'Pull anyway' icon_button_2 = 'ICON_OKAY' default_button = '2' display_cancel_button = abap_false IMPORTING answer = lv_answer EXCEPTIONS text_not_found = 1 OTHERS = 2. "#EC NOTEXT IF sy-subrc <> 0 OR lv_answer = 1. zcx_abapgit_exception=>raise( |Deserialization for object { is_result-obj_name } | & |(type { is_result-obj_type }) aborted by user| ). ENDIF. ELSE. zcx_abapgit_exception=>raise( |Deserialization for object { is_result-obj_name } | & |(type { is_result-obj_type }) aborted, user descision required| ). ENDIF. ENDIF. ENDMETHOD. METHOD create_object. DATA: lv_message TYPE string, lv_class_name TYPE string, ls_obj_serializer_map LIKE LINE OF gt_obj_serializer_map. READ TABLE gt_obj_serializer_map INTO ls_obj_serializer_map WITH KEY item = is_item. IF sy-subrc = 0. lv_class_name = ls_obj_serializer_map-metadata-class. ELSEIF is_metadata IS NOT INITIAL. * Metadata is provided only on serialization * Once this has been triggered, the same serializer shall be used * for subsequent processes. * Thus, buffer the metadata afterwards ls_obj_serializer_map-item = is_item. ls_obj_serializer_map-metadata = is_metadata. INSERT ls_obj_serializer_map INTO TABLE gt_obj_serializer_map. lv_class_name = is_metadata-class. ELSE. lv_class_name = class_name( is_item ). ENDIF. REPLACE FIRST OCCURRENCE OF 'LCL' IN lv_class_name WITH 'ZCL_ABAPGIT'. TRY. CREATE OBJECT ri_obj TYPE (lv_class_name) EXPORTING is_item = is_item iv_language = iv_language. CATCH cx_sy_create_object_error. lv_message = |Object type { is_item-obj_type } not supported, serialize|. "#EC NOTEXT IF iv_native_only = abap_false. TRY. " 2nd step, try looking for plugins CREATE OBJECT ri_obj TYPE zcl_abapgit_objects_bridge EXPORTING is_item = is_item. CATCH cx_sy_create_object_error. zcx_abapgit_exception=>raise( lv_message ). ENDTRY. ELSE. " No native support? -> fail zcx_abapgit_exception=>raise( lv_message ). ENDIF. ENDTRY. ENDMETHOD. METHOD delete. DATA: ls_item TYPE zif_abapgit_definitions=>ty_item, li_progress TYPE REF TO zif_abapgit_progress, lt_tadir LIKE it_tadir, lt_items TYPE zif_abapgit_definitions=>ty_items_tt, lx_error TYPE REF TO zcx_abapgit_exception, lv_text TYPE string. FIELD-SYMBOLS: <ls_tadir> LIKE LINE OF it_tadir. lt_tadir = it_tadir. IF is_checks-transport-required = abap_true. zcl_abapgit_default_transport=>get_instance( )->set( is_checks-transport-transport ). ENDIF. TRY. zcl_abapgit_dependencies=>resolve( CHANGING ct_tadir = lt_tadir ). li_progress = zcl_abapgit_progress=>get_instance( lines( lt_tadir ) ). lt_items = map_tadir_to_items( lt_tadir ). check_objects_locked( iv_language = zif_abapgit_definitions=>c_english it_items = lt_items ). LOOP AT lt_tadir ASSIGNING <ls_tadir>. li_progress->show( iv_current = sy-tabix iv_text = |Delete { <ls_tadir>-obj_name }| ) ##NO_TEXT. CLEAR ls_item. ls_item-obj_type = <ls_tadir>-object. ls_item-obj_name = <ls_tadir>-obj_name. delete_obj( ls_item ). * make sure to save object deletions COMMIT WORK. ENDLOOP. CATCH zcx_abapgit_exception INTO lx_error. zcl_abapgit_default_transport=>get_instance( )->reset( ). lv_text = lx_error->get_text( ). zcx_abapgit_exception=>raise( lv_text ). ENDTRY. zcl_abapgit_default_transport=>get_instance( )->reset( ). ENDMETHOD. METHOD delete_obj. DATA: li_obj TYPE REF TO zif_abapgit_object. IF is_supported( is_item ) = abap_true. li_obj = create_object( is_item = is_item iv_language = zif_abapgit_definitions=>c_english ). li_obj->delete( ). IF li_obj->get_metadata( )-delete_tadir = abap_true. CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING wi_delete_tadir_entry = abap_true wi_tadir_pgmid = 'R3TR' wi_tadir_object = is_item-obj_type wi_tadir_obj_name = is_item-obj_name wi_test_modus = abap_false EXCEPTIONS OTHERS = 1 ##FM_SUBRC_OK. " We deliberately ignore the subrc, because throwing an exception would " break the deletion of lots of object types. On the other hand we have " to catch the exceptions because otherwise messages would directly be issued " by the function module and change the control flow. Thus breaking the " deletion of TOBJ and other object types. " TODO: This is not very clean and has to be improved in the future. See PR 2741. ENDIF. ENDIF. ENDMETHOD. METHOD deserialize. DATA: ls_item TYPE zif_abapgit_definitions=>ty_item, li_obj TYPE REF TO zif_abapgit_object, lt_remote TYPE zif_abapgit_definitions=>ty_files_tt, lv_package TYPE devclass, lo_files TYPE REF TO zcl_abapgit_objects_files, lo_xml TYPE REF TO zcl_abapgit_xml_input, lt_results TYPE zif_abapgit_definitions=>ty_results_tt, li_progress TYPE REF TO zif_abapgit_progress, lv_path TYPE string, lt_items TYPE zif_abapgit_definitions=>ty_items_tt, lt_steps_id TYPE zif_abapgit_object=>ty_deserialization_step_tt, lt_steps TYPE ty_step_data_tt, lx_exc TYPE REF TO zcx_abapgit_exception. DATA: lo_folder_logic TYPE REF TO zcl_abapgit_folder_logic. FIELD-SYMBOLS: <ls_result> TYPE zif_abapgit_definitions=>ty_result, <lv_step_id> TYPE LINE OF zif_abapgit_object=>ty_deserialization_step_tt, <ls_step> TYPE LINE OF ty_step_data_tt, <ls_deser> TYPE LINE OF ty_deserialization_tt. lt_steps = get_deserialize_steps( ). lv_package = io_repo->get_package( ). IF is_checks-transport-required = abap_true. zcl_abapgit_default_transport=>get_instance( )->set( is_checks-transport-transport ). ENDIF. zcl_abapgit_objects_activation=>clear( ). lt_remote = io_repo->get_files_remote( ). lt_results = files_to_deserialize( io_repo = io_repo ii_log = ii_log ). checks_adjust( EXPORTING io_repo = io_repo is_checks = is_checks CHANGING ct_results = lt_results ). li_progress = zcl_abapgit_progress=>get_instance( lines( lt_results ) ). lt_items = map_results_to_items( lt_results ). check_objects_locked( iv_language = io_repo->get_dot_abapgit( )->get_master_language( ) it_items = lt_items ). lo_folder_logic = zcl_abapgit_folder_logic=>get_instance( ). LOOP AT lt_results ASSIGNING <ls_result>. li_progress->show( iv_current = sy-tabix iv_text = |Deserialize { <ls_result>-obj_name }| ) ##NO_TEXT. CLEAR ls_item. ls_item-obj_type = <ls_result>-obj_type. ls_item-obj_name = <ls_result>-obj_name. "error handling & logging added TRY. lv_package = lo_folder_logic->path_to_package( iv_top = io_repo->get_package( ) io_dot = io_repo->get_dot_abapgit( ) iv_path = <ls_result>-path ). IF ls_item-obj_type = 'DEVC'. " Packages have the same filename across different folders. The path needs to be supplied " to find the correct file. lv_path = <ls_result>-path. ENDIF. CREATE OBJECT lo_files EXPORTING is_item = ls_item iv_path = lv_path. lo_files->set_files( lt_remote ). "analyze XML in order to instantiate the proper serializer lo_xml = lo_files->read_xml( ). li_obj = create_object( is_item = ls_item iv_language = io_repo->get_dot_abapgit( )->get_master_language( ) is_metadata = lo_xml->get_metadata( ) ). compare_remote_to_local( ii_object = li_obj it_remote = lt_remote is_result = <ls_result> ii_log = ii_log ). li_obj->mo_files = lo_files. "get required steps for deserialize the object lt_steps_id = li_obj->get_deserialize_steps( ). LOOP AT lt_steps_id ASSIGNING <lv_step_id>. READ TABLE lt_steps WITH KEY step_id = <lv_step_id> ASSIGNING <ls_step>. ASSERT sy-subrc = 0. IF <ls_step>-is_ddic = abap_true AND li_obj->get_metadata( )-ddic = abap_false. " DDIC only for DDIC objects zcx_abapgit_exception=>raise( |Step { <lv_step_id> } is only for DDIC objects| ). ENDIF. APPEND INITIAL LINE TO <ls_step>-objects ASSIGNING <ls_deser>. <ls_deser>-item = ls_item. <ls_deser>-obj = li_obj. <ls_deser>-xml = lo_xml. <ls_deser>-package = lv_package. ENDLOOP. CLEAR: lv_path, lv_package. CATCH zcx_abapgit_exception INTO lx_exc. ii_log->add_exception( ix_exc = lx_exc is_item = ls_item ). ii_log->add_error( iv_msg = |Import of object { ls_item-obj_name } failed| is_item = ls_item ). "object should not be part of any deserialization step CONTINUE. ENDTRY. ENDLOOP. "run deserialize for all steps and it's objects SORT lt_steps BY order. LOOP AT lt_steps ASSIGNING <ls_step>. deserialize_objects( EXPORTING is_step = <ls_step> ii_log = ii_log CHANGING ct_files = rt_accessed_files ). ENDLOOP. update_package_tree( io_repo->get_package( ) ). SORT rt_accessed_files BY path ASCENDING filename ASCENDING. DELETE ADJACENT DUPLICATES FROM rt_accessed_files. " Just in case zcl_abapgit_default_transport=>get_instance( )->reset( ). ENDMETHOD. METHOD deserialize_checks. DATA: lt_results TYPE zif_abapgit_definitions=>ty_results_tt, li_package TYPE REF TO zif_abapgit_sap_package. lt_results = files_to_deserialize( io_repo ). rs_checks-overwrite = warning_overwrite_find( lt_results ). rs_checks-warning_package = warning_package_find( io_repo = io_repo it_results = lt_results ). IF lines( lt_results ) > 0. li_package = zcl_abapgit_factory=>get_sap_package( io_repo->get_package( ) ). rs_checks-transport-required = li_package->are_changes_recorded_in_tr_req( ). IF NOT rs_checks-transport-required IS INITIAL. rs_checks-transport-type = li_package->get_transport_type( ). ENDIF. ENDIF. ENDMETHOD. METHOD deserialize_objects. DATA: li_progress TYPE REF TO zif_abapgit_progress, lx_exc TYPE REF TO zcx_abapgit_exception. FIELD-SYMBOLS: <ls_obj> LIKE LINE OF is_step-objects. zcl_abapgit_objects_activation=>clear( ). li_progress = zcl_abapgit_progress=>get_instance( lines( is_step-objects ) ). LOOP AT is_step-objects ASSIGNING <ls_obj>. li_progress->show( iv_current = sy-tabix iv_text = |Deserialize { is_step-descr } - { <ls_obj>-item-obj_name }| ) ##NO_TEXT. TRY. <ls_obj>-obj->deserialize( iv_package = <ls_obj>-package io_xml = <ls_obj>-xml iv_step = is_step-step_id ii_log = ii_log ). APPEND LINES OF <ls_obj>-obj->mo_files->get_accessed_files( ) TO ct_files. ii_log->add_success( iv_msg = |Object { <ls_obj>-item-obj_name } imported| is_item = <ls_obj>-item ). CATCH zcx_abapgit_exception INTO lx_exc. ii_log->add_exception( ix_exc = lx_exc is_item = <ls_obj>-item ). ii_log->add_error( iv_msg = |Import of object { <ls_obj>-item-obj_name } failed| is_item = <ls_obj>-item ). ENDTRY. ENDLOOP. zcl_abapgit_objects_activation=>activate( is_step-is_ddic ). ENDMETHOD. METHOD exists. DATA: li_obj TYPE REF TO zif_abapgit_object. TRY. li_obj = create_object( is_item = is_item iv_language = zif_abapgit_definitions=>c_english ). rv_bool = li_obj->exists( ). CATCH zcx_abapgit_exception. * ignore all errors and assume the object exists rv_bool = abap_true. ENDTRY. ENDMETHOD. METHOD files_to_deserialize. rt_results = adjust_namespaces( prioritize_deser( filter_files_to_deserialize( it_results = zcl_abapgit_file_status=>status( io_repo ) ii_log = ii_log ) ) ). ENDMETHOD. METHOD filter_files_to_deserialize. DATA lt_objects LIKE rt_results. DATA lr_object TYPE REF TO zif_abapgit_definitions=>ty_result. DATA ls_item TYPE zif_abapgit_definitions=>ty_item. DATA lv_tabix TYPE sy-tabix. rt_results = it_results. "preparation for object logging, sort all file entries by objects IF ii_log IS BOUND. lt_objects = rt_results. SORT lt_objects BY obj_type obj_name. DELETE ADJACENT DUPLICATES FROM lt_objects COMPARING obj_type obj_name. DELETE lt_objects WHERE obj_type IS INITIAL AND obj_name IS INITIAL. ENDIF. "ignore objects w/o changes DELETE rt_results WHERE match = abap_true. " Full match "log objects w/o changes IF sy-subrc = 0 AND ii_log IS BOUND. SORT rt_results BY obj_type obj_name. LOOP AT lt_objects REFERENCE INTO lr_object. lv_tabix = sy-tabix. READ TABLE rt_results WITH KEY obj_type = lr_object->obj_type obj_name = lr_object->obj_name BINARY SEARCH TRANSPORTING NO FIELDS. IF sy-subrc <> 0. "all parts of the objects have not changed ls_item-devclass = lr_object->package. ls_item-obj_type = lr_object->obj_type. ls_item-obj_name = lr_object->obj_name. ii_log->add_success( iv_msg = |Object { ls_item-obj_name } (type { ls_item-obj_type }) not changed; no import required| is_item = ls_item ). "ignore object for further messages DELETE lt_objects INDEX lv_tabix. ENDIF. ENDLOOP. ENDIF. "ignore objects w/o object type DELETE rt_results WHERE obj_type IS INITIAL. "log objects w/o object type IF sy-subrc = 0 AND ii_log IS BOUND. LOOP AT lt_objects REFERENCE INTO lr_object WHERE obj_type IS INITIAL. CHECK lr_object->obj_name IS NOT INITIAL. ls_item-devclass = lr_object->package. ls_item-obj_type = lr_object->obj_type. ls_item-obj_name = lr_object->obj_name. ii_log->add_warning( iv_msg = |Object type for { ls_item-obj_name } not defined - will be ignored by abapGit| is_item = ls_item ). ENDLOOP. DELETE lt_objects WHERE obj_type IS INITIAL. ENDIF. "ignore objects that exists only local DELETE rt_results WHERE lstate = zif_abapgit_definitions=>c_state-added AND rstate IS INITIAL. "log objects that exists only local IF sy-subrc = 0 AND ii_log IS BOUND. SORT rt_results BY obj_type obj_name. LOOP AT lt_objects REFERENCE INTO lr_object. lv_tabix = sy-tabix. READ TABLE rt_results WITH KEY obj_type = lr_object->obj_type obj_name = lr_object->obj_name BINARY SEARCH TRANSPORTING NO FIELDS. IF sy-subrc <> 0. "all parts exists only local "no log message; ignore object for further messages DELETE lt_objects INDEX lv_tabix. ENDIF. ENDLOOP. ENDIF. SORT rt_results BY obj_type ASCENDING obj_name ASCENDING rstate DESCENDING. " ensures that non-empty rstate is kept DELETE ADJACENT DUPLICATES FROM rt_results COMPARING obj_type obj_name. ENDMETHOD. METHOD get_deserialize_steps. FIELD-SYMBOLS: <ls_step> TYPE LINE OF ty_step_data_tt. APPEND INITIAL LINE TO rt_steps ASSIGNING <ls_step>. <ls_step>-step_id = zif_abapgit_object=>gc_step_id-ddic. <ls_step>-descr = 'Import DDIC objects'. <ls_step>-is_ddic = abap_true. <ls_step>-syntax_check = abap_false. <ls_step>-order = 1. APPEND INITIAL LINE TO rt_steps ASSIGNING <ls_step>. <ls_step>-step_id = zif_abapgit_object=>gc_step_id-abap. <ls_step>-descr = 'Import objects main'. <ls_step>-is_ddic = abap_false. <ls_step>-syntax_check = abap_false. <ls_step>-order = 2. APPEND INITIAL LINE TO rt_steps ASSIGNING <ls_step>. <ls_step>-step_id = zif_abapgit_object=>gc_step_id-late. <ls_step>-descr = 'Import late objects'. <ls_step>-is_ddic = abap_false. <ls_step>-syntax_check = abap_true. <ls_step>-order = 3. ENDMETHOD. METHOD is_active. DATA: li_object TYPE REF TO zif_abapgit_object. TRY. li_object = create_object( is_item = is_item iv_language = sy-langu ). rv_active = li_object->is_active( ). CATCH cx_sy_dyn_call_illegal_method cx_sy_ref_is_initial zcx_abapgit_exception. rv_active = abap_true. ENDTRY. ENDMETHOD. METHOD is_supported. TRY. create_object( is_item = is_item iv_language = zif_abapgit_definitions=>c_english iv_native_only = iv_native_only ). rv_bool = abap_true. CATCH zcx_abapgit_exception. rv_bool = abap_false. ENDTRY. ENDMETHOD. METHOD jump. DATA: li_obj TYPE REF TO zif_abapgit_object, lv_adt_jump_enabled TYPE abap_bool. li_obj = create_object( is_item = is_item iv_language = zif_abapgit_definitions=>c_english ). IF li_obj->exists( ) = abap_false. zcx_abapgit_exception=>raise( |Object { is_item-obj_type } { is_item-obj_name } doesn't exist| ). ENDIF. lv_adt_jump_enabled = zcl_abapgit_persist_settings=>get_instance( )->read( )->get_adt_jump_enabled( ). IF lv_adt_jump_enabled = abap_true. TRY. zcl_abapgit_objects_super=>jump_adt( iv_obj_name = is_item-obj_name iv_obj_type = is_item-obj_type iv_sub_obj_name = iv_sub_obj_name iv_sub_obj_type = iv_sub_obj_type iv_line_number = iv_line_number ). CATCH zcx_abapgit_exception. li_obj->jump( ). ENDTRY. ELSEIF iv_line_number IS NOT INITIAL AND iv_sub_obj_type IS NOT INITIAL AND iv_sub_obj_name IS NOT INITIAL. " For the line navigation we have to supply the sub object type (i_sub_obj_type). " If we use is_item-obj_type it navigates only to the object. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = is_item-obj_name object_type = iv_sub_obj_type include = iv_sub_obj_name position = iv_line_number in_new_window = abap_true EXCEPTIONS not_executed = 1 invalid_object_type = 2 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ELSE. li_obj->jump( ). ENDIF. ENDMETHOD. METHOD map_results_to_items. DATA: ls_item LIKE LINE OF rt_items. FIELD-SYMBOLS: <ls_result> TYPE zif_abapgit_definitions=>ty_result. LOOP AT it_results ASSIGNING <ls_result>. ls_item-devclass = <ls_result>-package. ls_item-obj_type = <ls_result>-obj_type. ls_item-obj_name = <ls_result>-obj_name. INSERT ls_item INTO TABLE rt_items. ENDLOOP. ENDMETHOD. METHOD map_tadir_to_items. DATA: ls_item LIKE LINE OF rt_items. FIELD-SYMBOLS: <ls_tadir> TYPE zif_abapgit_definitions=>ty_tadir. LOOP AT it_tadir ASSIGNING <ls_tadir>. ls_item-devclass = <ls_tadir>-devclass. ls_item-obj_type = <ls_tadir>-object. ls_item-obj_name = <ls_tadir>-obj_name. INSERT ls_item INTO TABLE rt_items. ENDLOOP. ENDMETHOD. METHOD prioritize_deser. * todo, refactor this method FIELD-SYMBOLS: <ls_result> LIKE LINE OF it_results. * WEBI has to be handled before SPRX. LOOP AT it_results ASSIGNING <ls_result> WHERE obj_type = 'WEBI'. APPEND <ls_result> TO rt_results. ENDLOOP. * SPRX has to be handled before depended objects CLAS/INFT/TABL etc. LOOP AT it_results ASSIGNING <ls_result> WHERE obj_type = 'SPRX'. APPEND <ls_result> TO rt_results. ENDLOOP. * XSLT has to be handled before CLAS/PROG LOOP AT it_results ASSIGNING <ls_result> WHERE obj_type = 'XSLT'. APPEND <ls_result> TO rt_results. ENDLOOP. * PROG before internet services, as the services might use the screens LOOP AT it_results ASSIGNING <ls_result> WHERE obj_type = 'PROG'. APPEND <ls_result> TO rt_results. ENDLOOP. * ISAP has to be handled before ISRP LOOP AT it_results ASSIGNING <ls_result> WHERE obj_type = 'IASP'. APPEND <ls_result> TO rt_results. ENDLOOP. * ENHS has to be handled before ENHO LOOP AT it_results ASSIGNING <ls_result> WHERE obj_type = 'ENHS'. APPEND <ls_result> TO rt_results. ENDLOOP. * DDLS has to be handled before DCLS LOOP AT it_results ASSIGNING <ls_result> WHERE obj_type = 'DDLS'. APPEND <ls_result> TO rt_results. ENDLOOP. LOOP AT it_results ASSIGNING <ls_result> WHERE obj_type <> 'IASP' AND obj_type <> 'PROG' AND obj_type <> 'XSLT' AND obj_type <> 'PINF' AND obj_type <> 'DEVC' AND obj_type <> 'ENHS' AND obj_type <> 'DDLS' AND obj_type <> 'SPRX' AND obj_type <> 'WEBI'. APPEND <ls_result> TO rt_results. ENDLOOP. * PINF after everything as it can expose objects LOOP AT it_results ASSIGNING <ls_result> WHERE obj_type = 'PINF'. APPEND <ls_result> TO rt_results. ENDLOOP. * DEVC after PINF, as it can refer for package interface usage LOOP AT it_results ASSIGNING <ls_result> WHERE obj_type = 'DEVC'. APPEND <ls_result> TO rt_results. ENDLOOP. ENDMETHOD. METHOD serialize. DATA: li_obj TYPE REF TO zif_abapgit_object, lo_xml TYPE REF TO zcl_abapgit_xml_output, lo_files TYPE REF TO zcl_abapgit_objects_files. FIELD-SYMBOLS: <ls_file> LIKE LINE OF rs_files_and_item-files. rs_files_and_item-item = is_item. IF is_supported( rs_files_and_item-item ) = abap_false. zcx_abapgit_exception=>raise( |Object type ignored, not supported: { rs_files_and_item-item-obj_type }-{ rs_files_and_item-item-obj_name }| ). ENDIF. CREATE OBJECT lo_files EXPORTING is_item = rs_files_and_item-item. li_obj = create_object( is_item = rs_files_and_item-item iv_language = iv_language ). li_obj->mo_files = lo_files. CREATE OBJECT lo_xml. IF iv_serialize_master_lang_only = abap_true. lo_xml->i18n_params( iv_serialize_master_lang_only = abap_true ). ENDIF. li_obj->serialize( lo_xml ). lo_files->add_xml( io_xml = lo_xml is_metadata = li_obj->get_metadata( ) ). rs_files_and_item-files = lo_files->get_files( ). check_duplicates( rs_files_and_item-files ). rs_files_and_item-item-inactive = boolc( li_obj->is_active( ) = abap_false ). LOOP AT rs_files_and_item-files ASSIGNING <ls_file>. <ls_file>-sha1 = zcl_abapgit_hash=>sha1( iv_type = zif_abapgit_definitions=>c_type-blob iv_data = <ls_file>-data ). ENDLOOP. ENDMETHOD. METHOD supported_list. DATA: lt_objects TYPE STANDARD TABLE OF ko100, lv_supported TYPE abap_bool, ls_item TYPE zif_abapgit_definitions=>ty_item. FIELD-SYMBOLS <ls_object> LIKE LINE OF lt_objects. CALL FUNCTION 'TR_OBJECT_TABLE' TABLES wt_object_text = lt_objects EXCEPTIONS OTHERS = 1 ##FM_SUBRC_OK. LOOP AT lt_objects ASSIGNING <ls_object> WHERE pgmid = 'R3TR'. ls_item-obj_type = <ls_object>-object. lv_supported = zcl_abapgit_objects=>is_supported( is_item = ls_item iv_native_only = abap_true ). IF lv_supported = abap_true. APPEND <ls_object>-object TO rt_types. ENDIF. ENDLOOP. ENDMETHOD. METHOD update_package_tree. DATA: lt_packages TYPE zif_abapgit_sap_package=>ty_devclass_tt, lv_package LIKE LINE OF lt_packages, lv_tree TYPE dirtree-tname. lt_packages = zcl_abapgit_factory=>get_sap_package( iv_package )->list_subpackages( ). APPEND iv_package TO lt_packages. LOOP AT lt_packages INTO lv_package. * update package tree for SE80 lv_tree = 'EU_' && lv_package. CALL FUNCTION 'WB_TREE_ACTUALIZE' EXPORTING tree_name = lv_tree without_crossreference = abap_true with_tcode_index = abap_true. ENDLOOP. ENDMETHOD. METHOD warning_overwrite_adjust. DATA: lt_overwrite LIKE it_overwrite, ls_overwrite LIKE LINE OF lt_overwrite. FIELD-SYMBOLS: <ls_overwrite> LIKE LINE OF lt_overwrite. * make sure to get the current status, as something might have changed in the meanwhile lt_overwrite = warning_overwrite_find( ct_results ). LOOP AT lt_overwrite ASSIGNING <ls_overwrite>. READ TABLE it_overwrite INTO ls_overwrite WITH TABLE KEY object_type_and_name COMPONENTS obj_type = <ls_overwrite>-obj_type obj_name = <ls_overwrite>-obj_name. IF sy-subrc <> 0 OR ls_overwrite-decision IS INITIAL. zcx_abapgit_exception=>raise( |Overwrite { <ls_overwrite>-obj_type } { <ls_overwrite>-obj_name } undecided| ). ENDIF. IF ls_overwrite-decision = 'N'. DELETE ct_results WHERE obj_type = <ls_overwrite>-obj_type AND obj_name = <ls_overwrite>-obj_name. ASSERT sy-subrc = 0. ENDIF. ENDLOOP. ENDMETHOD. METHOD warning_overwrite_find. DATA: ls_overwrite LIKE LINE OF rt_overwrite. FIELD-SYMBOLS: <ls_result> LIKE LINE OF it_results. LOOP AT it_results ASSIGNING <ls_result> WHERE NOT obj_type IS INITIAL. IF <ls_result>-lstate IS NOT INITIAL AND <ls_result>-lstate <> zif_abapgit_definitions=>c_state-deleted AND NOT ( <ls_result>-lstate = zif_abapgit_definitions=>c_state-added AND <ls_result>-rstate IS INITIAL ). * current object has been modified locally, add to table CLEAR ls_overwrite. MOVE-CORRESPONDING <ls_result> TO ls_overwrite. APPEND ls_overwrite TO rt_overwrite. ENDIF. ENDLOOP. SORT rt_overwrite. DELETE ADJACENT DUPLICATES FROM rt_overwrite. ENDMETHOD. METHOD warning_package_adjust. DATA: lt_overwrite LIKE it_overwrite, ls_overwrite LIKE LINE OF lt_overwrite. FIELD-SYMBOLS: <ls_overwrite> LIKE LINE OF lt_overwrite. * make sure to get the current status, as something might have changed in the meanwhile lt_overwrite = warning_package_find( it_results = ct_results io_repo = io_repo ). LOOP AT lt_overwrite ASSIGNING <ls_overwrite>. READ TABLE it_overwrite INTO ls_overwrite WITH TABLE KEY object_type_and_name COMPONENTS obj_type = <ls_overwrite>-obj_type obj_name = <ls_overwrite>-obj_name. IF sy-subrc <> 0 OR ls_overwrite-decision IS INITIAL. zcx_abapgit_exception=>raise( |Overwrite odd package { <ls_overwrite>-obj_type } { <ls_overwrite>-obj_name } undecided| ). ENDIF. IF ls_overwrite-decision = 'N'. DELETE ct_results WHERE obj_type = <ls_overwrite>-obj_type AND obj_name = <ls_overwrite>-obj_name. ASSERT sy-subrc = 0. ENDIF. ENDLOOP. ENDMETHOD. METHOD warning_package_find. DATA: lv_package TYPE devclass, lt_overwrite_uniqe TYPE HASHED TABLE OF zif_abapgit_definitions=>ty_overwrite WITH UNIQUE KEY obj_type obj_name devclass, ls_overwrite LIKE LINE OF rt_overwrite, ls_tadir TYPE zif_abapgit_definitions=>ty_tadir. DATA: lo_folder_logic TYPE REF TO zcl_abapgit_folder_logic. FIELD-SYMBOLS: <ls_result> LIKE LINE OF it_results. lo_folder_logic = zcl_abapgit_folder_logic=>get_instance( ). LOOP AT it_results ASSIGNING <ls_result>. lv_package = lo_folder_logic->path_to_package( iv_top = io_repo->get_package( ) io_dot = io_repo->get_dot_abapgit( ) iv_path = <ls_result>-path ). ls_tadir = zcl_abapgit_factory=>get_tadir( )->read_single( iv_object = <ls_result>-obj_type iv_obj_name = <ls_result>-obj_name ). IF NOT ls_tadir IS INITIAL AND ls_tadir-devclass <> lv_package. * overwriting object from different package than expected CLEAR ls_overwrite. ls_overwrite-obj_type = <ls_result>-obj_type. ls_overwrite-obj_name = <ls_result>-obj_name. ls_overwrite-devclass = ls_tadir-devclass. INSERT ls_overwrite INTO TABLE lt_overwrite_uniqe. ENDIF. ENDLOOP. rt_overwrite = lt_overwrite_uniqe. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48205, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 19199, 62, 926, 41876, 49053, 9795, 43679, 3963, 36264, 343, 12, 15252, 13315, 5550, 38865, 35374, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 8906, 48499, 1634, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26181, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 15252, 11, 198, 220, 220, 220, 220, 220, 220, 220, 35555, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 19875, 62, 15414, 11, 198, 220, 220, 220, 220, 220, 220, 220, 5301, 41876, 1614, 4871, 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, 23578, 3963, 1259, 62, 8906, 48499, 1634, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 8906, 48499, 1634, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 8906, 48499, 1634, 13315, 5550, 38865, 35374, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 46911, 1634, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3696, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 926, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2378, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 46911, 1634, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 9662, 62, 7890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2239, 62, 312, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 15252, 14804, 774, 62, 8906, 48499, 1634, 62, 9662, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1502, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1715, 81, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 1860, 291, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 15582, 62, 9122, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 5563, 220, 220, 220, 220, 220, 41876, 1259, 62, 8906, 48499, 1634, 62, 926, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 9662, 62, 7890, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 9662, 62, 7890, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 9662, 62, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13315, 5550, 38865, 35374, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 11389, 1096, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 9186, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 5145, 452, 62, 16129, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 7500, 292, 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, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 16624, 62, 392, 62, 9186, 8, 41876, 1976, 565, 62, 397, 499, 18300, 62, 48205, 14804, 774, 62, 46911, 1634, 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, 748, 48499, 1096, 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, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 42116, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8906, 48499, 1096, 62, 42116, 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, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 15526, 276, 62, 16624, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 7753, 62, 12683, 6691, 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, 42715, 12, 49273, 50, 748, 48499, 1096, 62, 42116, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_objects_check DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS deserialize_checks IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo RETURNING VALUE(rs_checks) TYPE zif_abapgit_definitions=>ty_deserialize_checks RAISING zcx_abapgit_exception . CLASS-METHODS checks_adjust IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo !is_checks TYPE zif_abapgit_definitions=>ty_deserialize_checks CHANGING !ct_results TYPE zif_abapgit_definitions=>ty_results_tt RAISING zcx_abapgit_exception . PROTECTED SECTION. PRIVATE SECTION. CLASS-METHODS warning_overwrite_adjust IMPORTING !it_overwrite TYPE zif_abapgit_definitions=>ty_overwrite_tt CHANGING !ct_results TYPE zif_abapgit_definitions=>ty_results_tt RAISING zcx_abapgit_exception. CLASS-METHODS warning_overwrite_find IMPORTING !it_results TYPE zif_abapgit_definitions=>ty_results_tt RETURNING VALUE(rt_overwrite) TYPE zif_abapgit_definitions=>ty_overwrite_tt. CLASS-METHODS warning_package_adjust IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo !it_overwrite TYPE zif_abapgit_definitions=>ty_overwrite_tt CHANGING !ct_results TYPE zif_abapgit_definitions=>ty_results_tt RAISING zcx_abapgit_exception. CLASS-METHODS warning_package_find IMPORTING !it_results TYPE zif_abapgit_definitions=>ty_results_tt !io_repo TYPE REF TO zcl_abapgit_repo RETURNING VALUE(rt_overwrite) TYPE zif_abapgit_definitions=>ty_overwrite_tt RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_objects_check IMPLEMENTATION. METHOD checks_adjust. warning_overwrite_adjust( EXPORTING it_overwrite = is_checks-overwrite CHANGING ct_results = ct_results ). warning_package_adjust( EXPORTING io_repo = io_repo it_overwrite = is_checks-warning_package CHANGING ct_results = ct_results ). ENDMETHOD. METHOD deserialize_checks. DATA: lt_results TYPE zif_abapgit_definitions=>ty_results_tt, li_package TYPE REF TO zif_abapgit_sap_package. " get unfiltered status to evaluate properly which warnings are required lt_results = zcl_abapgit_file_status=>status( io_repo ). rs_checks-overwrite = warning_overwrite_find( lt_results ). rs_checks-warning_package = warning_package_find( io_repo = io_repo it_results = lt_results ). IF lines( lt_results ) > 0. li_package = zcl_abapgit_factory=>get_sap_package( io_repo->get_package( ) ). rs_checks-transport-required = li_package->are_changes_recorded_in_tr_req( ). IF NOT rs_checks-transport-required IS INITIAL. rs_checks-transport-type = li_package->get_transport_type( ). ENDIF. ENDIF. ENDMETHOD. METHOD warning_overwrite_adjust. DATA: lt_overwrite LIKE it_overwrite, ls_overwrite LIKE LINE OF lt_overwrite. FIELD-SYMBOLS: <ls_overwrite> LIKE LINE OF lt_overwrite. * make sure to get the current status, as something might have changed in the meanwhile lt_overwrite = warning_overwrite_find( ct_results ). LOOP AT lt_overwrite ASSIGNING <ls_overwrite>. READ TABLE it_overwrite INTO ls_overwrite WITH TABLE KEY object_type_and_name COMPONENTS obj_type = <ls_overwrite>-obj_type obj_name = <ls_overwrite>-obj_name. IF sy-subrc <> 0 OR ls_overwrite-decision IS INITIAL. zcx_abapgit_exception=>raise( |Overwrite { <ls_overwrite>-obj_type } { <ls_overwrite>-obj_name } undecided| ). ENDIF. IF ls_overwrite-decision = zif_abapgit_definitions=>c_no. DELETE ct_results WHERE obj_type = <ls_overwrite>-obj_type AND obj_name = <ls_overwrite>-obj_name. ASSERT sy-subrc = 0. ENDIF. ENDLOOP. ENDMETHOD. METHOD warning_overwrite_find. DATA: lv_status TYPE c LENGTH 2, lt_changes TYPE STANDARD TABLE OF zif_abapgit_definitions=>ty_overwrite WITH DEFAULT KEY. FIELD-SYMBOLS: <ls_result> LIKE LINE OF it_results, <ls_changes> LIKE LINE OF lt_changes. " collect all actions for object that have been changed LOOP AT it_results ASSIGNING <ls_result> WHERE NOT obj_type IS INITIAL. APPEND INITIAL LINE TO lt_changes ASSIGNING <ls_changes>. MOVE-CORRESPONDING <ls_result> TO <ls_changes>. <ls_changes>-devclass = <ls_result>-package. IF <ls_result>-packmove = abap_true. <ls_changes>-action = zif_abapgit_objects=>c_deserialize_action-packmove. <ls_changes>-icon = icon_package_standard. <ls_changes>-text = 'Change package assignment'. ELSE. CONCATENATE <ls_result>-lstate <ls_result>-rstate INTO lv_status RESPECTING BLANKS. CASE lv_status. WHEN ' '. " no changes <ls_changes>-action = zif_abapgit_objects=>c_deserialize_action-none. WHEN ' A' OR 'D ' OR 'DM'. " added remotely or deleted locally <ls_changes>-action = zif_abapgit_objects=>c_deserialize_action-add. <ls_changes>-icon = icon_create. <ls_changes>-text = 'Add local object'. WHEN 'A ' OR ' D' OR 'MD'. " added locally or deleted remotely <ls_changes>-action = zif_abapgit_objects=>c_deserialize_action-delete. <ls_changes>-icon = icon_delete. <ls_changes>-text = 'Delete local object'. WHEN 'M ' OR 'MM'. " modified locally <ls_changes>-action = zif_abapgit_objects=>c_deserialize_action-overwrite. <ls_changes>-icon = icon_change. <ls_changes>-text = 'Overwrite local object'. WHEN ' M'. " modified only remotely <ls_changes>-action = zif_abapgit_objects=>c_deserialize_action-update. <ls_changes>-icon = icon_change. <ls_changes>-text = 'Update local object'. WHEN OTHERS. ASSERT 0 = 1. ENDCASE. ENDIF. ENDLOOP. " Remove duplicate actions SORT lt_changes. DELETE ADJACENT DUPLICATES FROM lt_changes. " Check if deletions are for complete object or just a part LOOP AT lt_changes ASSIGNING <ls_changes> WHERE action = zif_abapgit_objects=>c_deserialize_action-delete. LOOP AT lt_changes TRANSPORTING NO FIELDS WHERE obj_type = <ls_changes>-obj_type AND obj_name = <ls_changes>-obj_name AND action <> zif_abapgit_objects=>c_deserialize_action-delete. EXIT. ENDLOOP. IF sy-subrc = 0. " There's some other action, so object will be recreated after deletion <ls_changes>-action = zif_abapgit_objects=>c_deserialize_action-delete_add. <ls_changes>-icon = icon_adopt. <ls_changes>-text = 'Delete and recreate local object'. ENDIF. ENDLOOP. DELETE lt_changes WHERE action = zif_abapgit_objects=>c_deserialize_action-none. " If there are multiple changes in an object, keep highest priority action SORT lt_changes BY obj_type obj_name action DESCENDING. DELETE ADJACENT DUPLICATES FROM lt_changes COMPARING obj_type obj_name. rt_overwrite = lt_changes. ENDMETHOD. METHOD warning_package_adjust. DATA: lt_overwrite LIKE it_overwrite, ls_overwrite LIKE LINE OF lt_overwrite. FIELD-SYMBOLS: <ls_overwrite> LIKE LINE OF lt_overwrite. * make sure to get the current status, as something might have changed in the meanwhile lt_overwrite = warning_package_find( it_results = ct_results io_repo = io_repo ). LOOP AT lt_overwrite ASSIGNING <ls_overwrite>. READ TABLE it_overwrite INTO ls_overwrite WITH TABLE KEY object_type_and_name COMPONENTS obj_type = <ls_overwrite>-obj_type obj_name = <ls_overwrite>-obj_name. IF sy-subrc <> 0 OR ls_overwrite-decision IS INITIAL. zcx_abapgit_exception=>raise( |Overwrite of package { <ls_overwrite>-obj_type } { <ls_overwrite>-obj_name } undecided| ). ENDIF. IF ls_overwrite-decision = zif_abapgit_definitions=>c_no. DELETE ct_results WHERE obj_type = <ls_overwrite>-obj_type AND obj_name = <ls_overwrite>-obj_name. ASSERT sy-subrc = 0. ENDIF. ENDLOOP. ENDMETHOD. METHOD warning_package_find. DATA: lv_package TYPE devclass, lt_overwrite_unique TYPE HASHED TABLE OF zif_abapgit_definitions=>ty_overwrite WITH UNIQUE KEY obj_type obj_name devclass, ls_overwrite LIKE LINE OF rt_overwrite, ls_tadir TYPE zif_abapgit_definitions=>ty_tadir. DATA: lo_folder_logic TYPE REF TO zcl_abapgit_folder_logic. FIELD-SYMBOLS: <ls_result> LIKE LINE OF it_results. lo_folder_logic = zcl_abapgit_folder_logic=>get_instance( ). LOOP AT it_results ASSIGNING <ls_result> WHERE match IS INITIAL AND packmove IS INITIAL. lv_package = lo_folder_logic->path_to_package( iv_top = io_repo->get_package( ) io_dot = io_repo->get_dot_abapgit( ) iv_path = <ls_result>-path iv_create_if_not_exists = abap_false ). ls_tadir = zcl_abapgit_factory=>get_tadir( )->read_single( iv_object = <ls_result>-obj_type iv_obj_name = <ls_result>-obj_name ). IF NOT ls_tadir IS INITIAL AND ls_tadir-devclass <> lv_package. * overwriting object from different package than expected CLEAR ls_overwrite. ls_overwrite-obj_type = <ls_result>-obj_type. ls_overwrite-obj_name = <ls_result>-obj_name. ls_overwrite-devclass = ls_tadir-devclass. INSERT ls_overwrite INTO TABLE lt_overwrite_unique. ENDIF. ENDLOOP. rt_overwrite = lt_overwrite_unique. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 9122, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 748, 48499, 1096, 62, 42116, 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, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 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, 42715, 12, 49273, 50, 8794, 62, 23032, 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, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 42116, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8906, 48499, 1096, 62, 42116, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 43420, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 43420, 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, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 6509, 62, 2502, 13564, 62, 23032, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 2502, 13564, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 2502, 13564, 62, 926, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 43420, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 43420, 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, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 6509, 62, 2502, 13564, 62, 19796, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 43420, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 43420, 62, 926, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 2502, 13564, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 2502, 13564, 62, 926, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 6509, 62, 26495, 62, 23032, 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, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 2502, 13564, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 2502, 13564, 62, 926, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 43420, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 43420, 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, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 6509, 62, 26495, 62, 19796, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 43420, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 43420, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 260, 7501, 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, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 2502, 13564, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 2502, 13564, 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, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 9122, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 8794, 62, 23032, 13, 628, 220, 220, 220, 6509, 62, 2502, 13564, 62, 23032, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 2502, 13564, 796, 318, 62, 42116, 12, 2502, 13564, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 269, 83, 62, 43420, 220, 220, 796, 269, 83, 62, 43420, 6739, 628, 220, 220, 220, 6509, 62, 26495, 62, 23032, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 260, 7501, 220, 220, 220, 220, 220, 796, 33245, 62, 260, 7501, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 2502, 13564, 796, 318, 62, 42116, 12, 43917, 62, 26495, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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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_ap_pulsar_protobuf DEFINITION PUBLIC. PUBLIC SECTION. * https://github.com/apache/pulsar/blob/master/pulsar-common/src/main/proto/PulsarApi.proto#L262 TYPES: BEGIN OF command_connect, client_version TYPE string, " field 1 protocol_version TYPE i, " field 4 END OF command_connect. METHODS command_connect_serialize IMPORTING input TYPE command_connect RETURNING VALUE(output) TYPE xstring. METHODS command_connect_deserialize. ENDCLASS. CLASS zcl_ap_pulsar_protobuf IMPLEMENTATION. METHOD command_connect_serialize. ASSERT input-client_version IS NOT INITIAL. DATA(li_top) = NEW zcl_protobuf_stream( ). * All commands associated with Pulsar's protocol are contained in a BaseCommand protobuf message li_top->encode_field_and_type( VALUE #( field_number = 1 wire_type = zcl_protobuf_stream=>gc_wire_type-varint ) ). li_top->encode_varint( 2 ). " Type = CONNECT *** DATA(li_sub) = NEW zcl_protobuf_stream( ). * the actual connect, li_sub->encode_field_and_type( VALUE #( field_number = 1 wire_type = zcl_protobuf_stream=>gc_wire_type-length_delimited ) ). li_sub->encode_delimited( cl_abap_codepage=>convert_to( input-client_version ) ). li_sub->encode_field_and_type( VALUE #( field_number = 4 wire_type = zcl_protobuf_stream=>gc_wire_type-varint ) ). li_sub->encode_varint( input-protocol_version ). *** li_top->encode_field_and_type( VALUE #( field_number = 2 wire_type = zcl_protobuf_stream=>gc_wire_type-length_delimited ) ). li_top->encode_delimited( li_sub->get( ) ). output = li_top->get( ). * sdf WRITE '@KERNEL console.dir(output.get());'. ENDMETHOD. METHOD command_connect_deserialize. RETURN. " todo ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 499, 62, 79, 5753, 283, 62, 11235, 672, 3046, 5550, 20032, 17941, 44731, 13, 198, 220, 44731, 44513, 13, 198, 9, 3740, 1378, 12567, 13, 785, 14, 43073, 14, 79, 5753, 283, 14, 2436, 672, 14, 9866, 14, 79, 5753, 283, 12, 11321, 14, 10677, 14, 12417, 14, 1676, 1462, 14, 47, 5753, 283, 32, 14415, 13, 1676, 1462, 2, 43, 29119, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 3141, 62, 8443, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5456, 62, 9641, 220, 220, 41876, 4731, 11, 220, 366, 2214, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8435, 62, 9641, 41876, 1312, 11, 220, 220, 220, 220, 220, 220, 366, 2214, 604, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 3141, 62, 8443, 13, 198, 220, 220, 220, 337, 36252, 50, 3141, 62, 8443, 62, 46911, 1096, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5128, 41876, 3141, 62, 8443, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 22915, 8, 41876, 2124, 8841, 13, 198, 220, 220, 220, 337, 36252, 50, 3141, 62, 8443, 62, 8906, 48499, 1096, 13, 198, 10619, 31631, 13, 198, 198, 31631, 1976, 565, 62, 499, 62, 79, 5753, 283, 62, 11235, 672, 3046, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 3141, 62, 8443, 62, 46911, 1096, 13, 198, 220, 220, 220, 24994, 17395, 5128, 12, 16366, 62, 9641, 3180, 5626, 3268, 2043, 12576, 13, 628, 220, 220, 220, 42865, 7, 4528, 62, 4852, 8, 796, 12682, 1976, 565, 62, 11235, 672, 3046, 62, 5532, 7, 6739, 198, 9, 1439, 9729, 3917, 351, 350, 5753, 283, 338, 8435, 389, 7763, 287, 257, 7308, 21575, 1237, 672, 3046, 3275, 198, 220, 220, 220, 7649, 62, 4852, 3784, 268, 8189, 62, 3245, 62, 392, 62, 4906, 7, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 2214, 62, 17618, 796, 352, 198, 220, 220, 220, 220, 220, 6503, 62, 4906, 220, 220, 220, 796, 1976, 565, 62, 11235, 672, 3046, 62, 5532, 14804, 36484, 62, 21809, 62, 4906, 12, 7785, 600, 1267, 6739, 198, 220, 220, 220, 7649, 62, 4852, 3784, 268, 8189, 62, 7785, 600, 7, 362, 6739, 366, 5994, 796, 7102, 48842, 198, 198, 8162, 628, 220, 220, 220, 42865, 7, 4528, 62, 7266, 8, 796, 12682, 1976, 565, 62, 11235, 672, 3046, 62, 5532, 7, 6739, 198, 9, 262, 4036, 2018, 11, 198, 220, 220, 220, 7649, 62, 7266, 3784, 268, 8189, 62, 3245, 62, 392, 62, 4906, 7, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 2214, 62, 17618, 796, 352, 198, 220, 220, 220, 220, 220, 6503, 62, 4906, 220, 220, 220, 796, 1976, 565, 62, 11235, 672, 3046, 62, 5532, 14804, 36484, 62, 21809, 62, 4906, 12, 13664, 62, 12381, 320, 863, 1267, 6739, 198, 220, 220, 220, 7649, 62, 7266, 3784, 268, 8189, 62, 12381, 320, 863, 7, 537, 62, 397, 499, 62, 19815, 538, 496, 14804, 1102, 1851, 62, 1462, 7, 5128, 12, 16366, 62, 9641, 1267, 6739, 628, 220, 220, 220, 7649, 62, 7266, 3784, 268, 8189, 62, 3245, 62, 392, 62, 4906, 7, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 2214, 62, 17618, 796, 604, 198, 220, 220, 220, 220, 220, 6503, 62, 4906, 220, 220, 220, 796, 1976, 565, 62, 11235, 672, 3046, 62, 5532, 14804, 36484, 62, 21809, 62, 4906, 12, 7785, 600, 1267, 6739, 198, 220, 220, 220, 7649, 62, 7266, 3784, 268, 8189, 62, 7785, 600, 7, 5128, 12, 11235, 4668, 62, 9641, 6739, 198, 198, 8162, 628, 220, 220, 220, 7649, 62, 4852, 3784, 268, 8189, 62, 3245, 62, 392, 62, 4906, 7, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 2214, 62, 17618, 796, 362, 198, 220, 220, 220, 220, 220, 6503, 62, 4906, 220, 220, 220, 796, 1976, 565, 62, 11235, 672, 3046, 62, 5532, 14804, 36484, 62, 21809, 62, 4906, 12, 13664, 62, 12381, 320, 863, 1267, 6739, 198, 220, 220, 220, 7649, 62, 4852, 3784, 268, 8189, 62, 12381, 320, 863, 7, 7649, 62, 7266, 3784, 1136, 7, 1267, 6739, 628, 220, 220, 220, 5072, 796, 7649, 62, 4852, 3784, 1136, 7, 6739, 198, 9, 264, 7568, 220, 220, 220, 44423, 705, 31, 42, 28778, 3698, 8624, 13, 15908, 7, 22915, 13, 1136, 35430, 4458, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 3141, 62, 8443, 62, 8906, 48499, 1096, 13, 198, 220, 220,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_sfbs DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. PRIVATE SECTION. METHODS: get RETURNING VALUE(ro_bfs) TYPE REF TO cl_sfw_bfs RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_object_sfbs IMPLEMENTATION. METHOD get. DATA: lv_bfset TYPE sfw_bset. lv_bfset = ms_item-obj_name. TRY. ro_bfs = cl_sfw_bfs=>get_bfs( lv_bfset ). ro_bfs->free( ). ro_bfs = cl_sfw_bfs=>get_bfs( lv_bfset ). CATCH cx_pak_invalid_data cx_pak_invalid_state cx_pak_not_authorized. zcx_abapgit_exception=>raise( 'Error from CL_SFW_BFS=>GET_BFS' ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~changed_by. DATA: ls_data TYPE sfw_bs. ls_data = get( )->get_header_data( ). rv_user = ls_data-changedby. IF rv_user IS INITIAL. rv_user = ls_data-author. 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_bfset TYPE sfw_bset, lt_delete TYPE sfw_bstab, lt_msgtab TYPE sprot_u_tab. lv_bfset = ms_item-obj_name. APPEND lv_bfset TO lt_delete. cl_sfw_activate=>delete_sfbs( EXPORTING p_bsets = lt_delete IMPORTING p_msgtab = lt_msgtab ). READ TABLE lt_msgtab WITH KEY severity = 'E' TRANSPORTING NO FIELDS. IF sy-subrc = 0. zcx_abapgit_exception=>raise( 'Error deleting SFBS' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lv_bfset TYPE sfw_bset, lo_bfs TYPE REF TO cl_sfw_bfs, ls_header TYPE sfw_bs, lv_name_32 TYPE sfw_name32, lv_name_80 TYPE sfw_name80, lt_assigned_bf TYPE sfw_bfbs_outtab, lt_nested_bfs TYPE sfw_bsbs_outtab, lt_parent_bfs TYPE sfw_bs_bs_parent_outtab. io_xml->read( EXPORTING iv_name = 'HEADER' CHANGING cg_data = ls_header ). io_xml->read( EXPORTING iv_name = 'NAME32' CHANGING cg_data = lv_name_32 ). io_xml->read( EXPORTING iv_name = 'NAME80' CHANGING cg_data = lv_name_80 ). io_xml->read( EXPORTING iv_name = 'ASSIGNED_BF' CHANGING cg_data = lt_assigned_bf ). io_xml->read( EXPORTING iv_name = 'NESTED_BFS' CHANGING cg_data = lt_nested_bfs ). io_xml->read( EXPORTING iv_name = 'PARENT_BFS' CHANGING cg_data = lt_parent_bfs ). lv_bfset = ms_item-obj_name. TRY. lo_bfs = cl_sfw_bfs=>create_bfs( lv_bfset ). CATCH cx_pak_not_authorized cx_pak_invalid_state cx_pak_invalid_data. zcx_abapgit_exception=>raise( 'error in CL_SFW_BFS=>CREATE_BFS' ). ENDTRY. ls_header-author = sy-uname. ls_header-createdon = sy-datum. lo_bfs->set_header_data( ls_header ). lo_bfs->set_texts( p_32 = lv_name_32 p_80 = lv_name_80 ). lo_bfs->set_assigned_bf( lt_assigned_bf ). lo_bfs->set_assigned_bfs( lt_nested_bfs ). lo_bfs->set_nested_parent( lt_parent_bfs ). set_default_package( iv_package ). tadir_insert( iv_package ). lo_bfs->save_all( ). zcl_abapgit_objects_activation=>add_item( ms_item ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: ls_tadir TYPE tadir, lv_bfset TYPE sfw_bset. lv_bfset = ms_item-obj_name. IF cl_sfw_bfs=>check_existence( lv_bfset ) = abap_false. RETURN. ENDIF. SELECT SINGLE * FROM tadir INTO ls_tadir WHERE pgmid = 'R3TR' AND object = ms_item-obj_type AND obj_name = ms_item-obj_name. IF ls_tadir IS INITIAL. RETURN. ENDIF. rv_bool = abap_true. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). rs_metadata-ddic = abap_true. rs_metadata-delete_tadir = abap_true. ENDMETHOD. METHOD zif_abapgit_object~has_changed_since. rv_changed = abap_true. ENDMETHOD. METHOD zif_abapgit_object~jump. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ms_item-obj_name object_type = 'SFBS' in_new_window = abap_true. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lo_bfs TYPE REF TO cl_sfw_bfs, ls_header TYPE sfw_bs, lv_name_32 TYPE sfw_name32, lv_name_80 TYPE sfw_name80, lt_assigned_bf TYPE sfw_bfbs_outtab, lt_nested_bfs TYPE sfw_bsbs_outtab, lt_parent_bfs TYPE sfw_bs_bs_parent_outtab. IF zif_abapgit_object~exists( ) = abap_false. RETURN. ENDIF. lo_bfs = get( ). ls_header = lo_bfs->get_header_data( ). CLEAR: ls_header-author, ls_header-createdon, ls_header-changedby, ls_header-changedon, ls_header-timestamp. lo_bfs->get_texts( IMPORTING p_32 = lv_name_32 p_80 = lv_name_80 ). lt_assigned_bf = lo_bfs->get_assigned_bf( ). lt_nested_bfs = lo_bfs->get_nested_bfs( ). lt_parent_bfs = lo_bfs->get_nested_parent( ). io_xml->add( ig_data = ls_header iv_name = 'HEADER' ). io_xml->add( ig_data = lv_name_32 iv_name = 'NAME32' ). io_xml->add( ig_data = lv_name_80 iv_name = 'NAME80' ). io_xml->add( ig_data = lt_assigned_bf iv_name = 'ASSIGNED_BF' ). io_xml->add( ig_data = lt_nested_bfs iv_name = 'NESTED_BFS' ). io_xml->add( ig_data = lt_parent_bfs iv_name = 'PARENT_BFS' ). 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, 28202, 1443, 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, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 651, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 65, 9501, 8, 41876, 4526, 37, 5390, 537, 62, 28202, 86, 62, 65, 9501, 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, 28202, 1443, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 651, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 19881, 2617, 41876, 264, 44482, 62, 1443, 316, 13, 628, 198, 220, 220, 220, 300, 85, 62, 19881, 2617, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 686, 62, 65, 9501, 796, 537, 62, 28202, 86, 62, 65, 9501, 14804, 1136, 62, 65, 9501, 7, 300, 85, 62, 19881, 2617, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 686, 62, 65, 9501, 3784, 5787, 7, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 686, 62, 65, 9501, 796, 537, 62, 28202, 86, 62, 65, 9501, 14804, 1136, 62, 65, 9501, 7, 300, 85, 62, 19881, 2617, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 41091, 62, 259, 12102, 62, 7890, 43213, 62, 41091, 62, 259, 12102, 62, 5219, 43213, 62, 41091, 62, 1662, 62, 19721, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 12331, 422, 7852, 62, 20802, 54, 62, 33, 10652, 14804, 18851, 62, 33, 10652, 6, 6739, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 7890, 41876, 264, 44482, 62, 1443, 13, 628, 220, 220, 220, 43979, 62, 7890, 796, 651, 7, 1267, 3784, 1136, 62, 25677, 62, 7890, 7, 6739, 628, 220, 220, 220, 374, 85, 62, 7220, 796, 43979, 62, 7890, 12, 40985, 1525, 13, 628, 220, 220, 220, 16876, 374, 85, 62, 7220, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 374, 85, 62, 7220, 796, 43979, 62, 7890, 12, 9800, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5589, 533, 62, 1462, 62, 47960, 62, 9641, 13, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 686, 62, 785, 1845, 1653, 62, 20274, 41876, 1976, 565, 62, 397, 499, 18300, 62, 785, 1845, 1653, 62, 8423, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 33678, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 19881, 2617, 220, 41876, 264, 44482, 62, 1443, 316, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 33678, 41876, 264, 44482, 62, 65, 39029, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 19662, 8658, 41876, 599, 10599, 62, 84, 62, 8658, 13, 628, 198, 220, 220, 220, 300, 85, 62, 19881, 2617, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 198, 220, 220, 220, 43504, 10619, 300, 85, 62, 19881, 2617, 5390, 300, 83, 62, 33678, 13, 628, 220, 220, 220, 537, 62, 28202, 86, 62, 39022, 14804, 33678, 62, 28202, 1443, 7, 7788, 15490, 2751, 279, 62, 1443, 1039, 796, 300, 83, 62, 33678, 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, 30023, 9863, 2751, 279, 62, 19662, 8658, 796, 300, 83, 62, 19662, 8658, 6739, 628, 220, 220, 220, 20832, 43679, 300, 83, 62, 19662, 8658, 13315, 35374, 19440, 796, 705, 36, 6, 48213, 4303, 9863, 2751, 8005, 18930, 3698, 5258, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 12331, 34817, 14362, 4462, 6, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 8906, 48499, 1096, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 19881, 2617, 220, 220, 220, 220, 220, 220, 41876, 264, 44482, 62, 1443, 316, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 65, 9501, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 28202, 86, 62, 65, 9501, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 25677, 220, 220, 220, 220, 220, 41876, 264, 44482, 62, 1443, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 3672, 62, 2624, 220, 220, 220, 220, 41876, 264, 44482, 62, 3672, 2624, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 3672, 62, 1795, 220, 220, 220, 220, 41876, 264, 44482, 62, 3672, 1795, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 562, 3916, 62, 19881, 41876, 264, 44482, 62, 19881, 1443, 62, 448, 8658, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 77, 7287, 62, 65, 9501, 220, 41876, 264, 44482, 62, 1443, 1443, 62, 448, 8658, 11, 198, 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, 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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 ]
class lcl_thread_pool definition create public. public section. interfaces zif_thread_callback. methods: constructor importing io_callback type ref to zif_thread_callback optional, start importing io_thread type ref to zcl_thread, get_size returning value(rv_result) type i. protected section. private section. data v_threads_running type i. data o_callback type ref to zif_thread_callback. data o_thread_factory type ref to zif_thread_factory. endclass.
[ 4871, 300, 565, 62, 16663, 62, 7742, 6770, 2251, 1171, 13, 628, 220, 1171, 2665, 13, 198, 220, 220, 220, 20314, 1976, 361, 62, 16663, 62, 47423, 13, 198, 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, 33245, 62, 47423, 220, 220, 220, 220, 220, 220, 2099, 1006, 284, 1976, 361, 62, 16663, 62, 47423, 11902, 11, 198, 220, 220, 220, 220, 220, 923, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 16663, 220, 220, 220, 220, 220, 2099, 1006, 284, 1976, 565, 62, 16663, 11, 198, 220, 220, 220, 220, 220, 220, 651, 62, 7857, 198, 220, 220, 220, 220, 220, 220, 220, 8024, 1988, 7, 81, 85, 62, 20274, 8, 2099, 1312, 13, 198, 220, 6861, 2665, 13, 198, 220, 2839, 2665, 13, 198, 220, 220, 220, 1366, 410, 62, 16663, 82, 62, 20270, 2099, 1312, 13, 198, 220, 220, 220, 1366, 267, 62, 47423, 2099, 1006, 284, 1976, 361, 62, 16663, 62, 47423, 13, 198, 220, 220, 220, 1366, 267, 62, 16663, 62, 69, 9548, 2099, 1006, 284, 1976, 361, 62, 16663, 62, 69, 9548, 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 ]
CLASS zcl_aoc_check_62 DEFINITION PUBLIC INHERITING FROM zcl_aoc_super CREATE PUBLIC. PUBLIC SECTION. METHODS constructor. METHODS check REDEFINITION. METHODS get_message_text REDEFINITION. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ZCL_AOC_CHECK_62 IMPLEMENTATION. METHOD check. * abapOpenChecks * https://github.com/larshp/abapOpenChecks * MIT License DATA: lt_statements TYPE ty_statements, lv_index TYPE i, lv_target TYPE string, lv_source TYPE string, lv_code TYPE sci_errc. FIELD-SYMBOLS: <ls_statement> LIKE LINE OF lt_statements, <ls_next> LIKE LINE OF lt_statements. lt_statements = build_statements( it_tokens = it_tokens it_statements = it_statements it_levels = it_levels ). LOOP AT lt_statements ASSIGNING <ls_statement>. lv_index = sy-tabix + 1. READ TABLE lt_statements INDEX lv_index ASSIGNING <ls_next>. IF sy-subrc <> 0 OR <ls_next>-include <> <ls_statement>-include. CONTINUE. ENDIF. CLEAR lv_code. IF <ls_statement>-str CP 'LOOP AT *'. FIND REGEX ' (\w+) ASSIGNING (<\w+>)' IN <ls_statement>-str SUBMATCHES lv_source lv_target ##NO_TEXT. IF sy-subrc <> 0. FIND REGEX ' (\w+) INTO DATA\((\w+)\)' IN <ls_statement>-str SUBMATCHES lv_source lv_target ##NO_TEXT. ENDIF. IF sy-subrc <> 0. FIND REGEX ' (\w+) ASSIGNING FIELD-SYMBOL\((<\w+>)\)' IN <ls_statement>-str SUBMATCHES lv_source lv_target ##NO_TEXT. ENDIF. IF sy-subrc <> 0. FIND REGEX ' (\w+) INTO (\w+)' IN <ls_statement>-str SUBMATCHES lv_source lv_target ##NO_TEXT. ENDIF. IF sy-subrc <> 0. CONTINUE. ENDIF. IF <ls_next>-str = |DELETE { lv_source } FROM { lv_target }|. lv_code = '001'. ENDIF. ENDIF. IF NOT lv_code IS INITIAL. inform( p_sub_obj_type = c_type_include p_sub_obj_name = <ls_statement>-include p_line = <ls_statement>-start-row p_kind = mv_errty p_test = myname p_code = lv_code ). ENDIF. ENDLOOP. ENDMETHOD. METHOD constructor. super->constructor( ). description = 'LOOP simplification/performance'. "#EC NOTEXT category = 'ZCL_AOC_CATEGORY'. version = '001'. position = '062'. has_attributes = abap_true. attributes_ok = abap_true. enable_rfc( ). mv_errty = c_error. ENDMETHOD. "CONSTRUCTOR METHOD get_message_text. CLEAR p_text. CASE p_code. WHEN '001'. p_text = 'Use DELETE WHERE instead'. "#EC NOTEXT WHEN OTHERS. super->get_message_text( EXPORTING p_test = p_test p_code = p_code IMPORTING p_text = p_text ). ENDCASE. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 64, 420, 62, 9122, 62, 5237, 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, 20500, 62, 5239, 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, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 32, 4503, 62, 50084, 62, 5237, 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, 83, 62, 14269, 3196, 41876, 1259, 62, 14269, 3196, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 9630, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 16793, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 10459, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 8189, 220, 220, 220, 220, 220, 220, 41876, 20681, 62, 263, 6015, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 26090, 29, 34178, 48920, 3963, 300, 83, 62, 14269, 3196, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 19545, 29, 220, 220, 220, 220, 220, 34178, 48920, 3963, 300, 83, 62, 14269, 3196, 13, 628, 198, 220, 220, 220, 300, 83, 62, 14269, 3196, 796, 1382, 62, 14269, 3196, 7, 198, 220, 220, 220, 220, 220, 340, 62, 83, 482, 641, 220, 220, 220, 220, 796, 340, 62, 83, 482, 641, 198, 220, 220, 220, 220, 220, 340, 62, 14269, 3196, 796, 340, 62, 14269, 3196, 198, 220, 220, 220, 220, 220, 340, 62, 46170, 220, 220, 220, 220, 796, 340, 62, 46170, 6739, 628, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 14269, 3196, 24994, 3528, 15871, 1279, 7278, 62, 26090, 28401, 198, 220, 220, 220, 220, 220, 300, 85, 62, 9630, 796, 827, 12, 8658, 844, 1343, 352, 13, 628, 220, 220, 220, 220, 220, 20832, 43679, 300, 83, 62, 14269, 3196, 24413, 6369, 300, 85, 62, 9630, 24994, 3528, 15871, 1279, 7278, 62, 19545, 28401, 198, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 6375, 1279, 7278, 62, 19545, 29, 12, 17256, 1279, 29, 1279, 7278, 62, 26090, 29, 12, 17256, 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, 30301, 1503, 300, 85, 62, 8189, 13, 628, 220, 220, 220, 220, 220, 16876, 1279, 7278, 62, 26090, 29, 12, 2536, 16932, 705, 21982, 3185, 5161, 1635, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 376, 12115, 23337, 6369, 705, 357, 59, 86, 28988, 24994, 3528, 15871, 38155, 59, 86, 10, 29, 33047, 3268, 1279, 7278, 62, 26090, 29, 12, 2536, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 28932, 44, 11417, 1546, 300, 85, 62, 10459, 300, 85, 62, 16793, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 376, 12115, 23337, 6369, 705, 357, 59, 86, 28988, 39319, 42865, 59, 19510, 59, 86, 10, 19415, 33047, 3268, 1279, 7278, 62, 26090, 29, 12, 2536, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 28932, 44, 11417, 1546, 300, 85, 62, 10459, 300, 85, 62, 16793, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 376, 12115, 23337, 6369, 705, 357, 59, 86, 28988, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 59, 19510, 27, 59, 86, 10, 29, 19415, 33047, 3268, 1279, 7278, 62, 26090, 29, 12, 2536, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 28932, 44, 11417, 1546, 300, 85, 62, 10459, 300, 85, 62, 16793, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 376, 12115, 23337, 6369, 705, 357, 59, 86, 28988, 39319, 357, 59, 86, 28988, 6, 3268, 1279, 7278, 62, 26090, 29, 12, 2536, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 28932, 44, 11417, 1546, 300, 85, 62, 10459, 300, 85, 62, 16793, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43659, 8924, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 220, 220, 16876, 1279, 7278, 62, 19545, 29, 12, 2536, 796, 930, 7206, 2538, 9328, 1391, 300, 85, 62, 10459, 1782, 16034, 1391, 300, 85, 62, 16793, 1782, 91, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 8189, 796, 705, 8298, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 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, 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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 ]
*----------------------------------------------------------------------* ***INCLUDE /GAL/_MONITOR_F03 . *----------------------------------------------------------------------* *&---------------------------------------------------------------------* *& Form PAI_0100_USER_COMMAND *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* * --> p1 text * <-- p2 text *----------------------------------------------------------------------* FORM pai_0100_user_command. CASE sy-ucomm. WHEN 'TAB_R'. g_dynp_0100-subscr_dynpro = '0101'. tab-activetab = sy-ucomm. WHEN 'TAB_J'. g_dynp_0100-subscr_dynpro = '0102'. tab-activetab = sy-ucomm. WHEN 'EXIT'. SET SCREEN 0. ENDCASE. ENDFORM. " PAI_0100_USER_COMMAND *&---------------------------------------------------------------------* *& Form pai_0101_user_command *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* FORM pai_0101_user_command . CASE sy-ucomm. WHEN 'SEARCH'. PERFORM pbo_0101_load_data_into_grid. ENDCASE. ENDFORM. " PAI_0101_USER_COMMAND *&---------------------------------------------------------------------* *& Form pai_0102_user_command *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* FORM pai_0102_user_command . CASE sy-ucomm. WHEN 'SEARCH'. PERFORM pbo_0102_load_data_into_grid. ENDCASE. ENDFORM. "pai_0102_user_command
[ 9, 10097, 23031, 9, 198, 8162, 1268, 5097, 52, 7206, 1220, 38, 1847, 47835, 27857, 2043, 1581, 62, 37, 3070, 764, 198, 9, 10097, 23031, 9, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 220, 220, 220, 220, 5178, 220, 8147, 40, 62, 39103, 62, 29904, 62, 9858, 44, 6981, 198, 9, 5, 10097, 30934, 9, 198, 9, 220, 220, 220, 220, 220, 220, 2420, 198, 9, 10097, 23031, 9, 198, 9, 220, 14610, 220, 279, 16, 220, 220, 220, 220, 220, 220, 220, 2420, 198, 9, 220, 1279, 438, 220, 279, 17, 220, 220, 220, 220, 220, 220, 220, 2420, 198, 9, 10097, 23031, 9, 198, 21389, 279, 1872, 62, 39103, 62, 7220, 62, 21812, 13, 198, 220, 42001, 827, 12, 84, 9503, 13, 198, 220, 220, 220, 42099, 705, 5603, 33, 62, 49, 4458, 198, 220, 220, 220, 220, 220, 308, 62, 67, 2047, 79, 62, 39103, 12, 7266, 1416, 81, 62, 67, 2047, 1676, 796, 705, 486, 486, 4458, 198, 220, 220, 220, 220, 220, 7400, 12, 5275, 8658, 796, 827, 12, 84, 9503, 13, 198, 220, 220, 220, 42099, 705, 5603, 33, 62, 41, 4458, 198, 220, 220, 220, 220, 220, 308, 62, 67, 2047, 79, 62, 39103, 12, 7266, 1416, 81, 62, 67, 2047, 1676, 796, 705, 486, 2999, 4458, 198, 220, 220, 220, 220, 220, 7400, 12, 5275, 8658, 796, 827, 12, 84, 9503, 13, 198, 220, 220, 220, 42099, 705, 6369, 2043, 4458, 198, 220, 220, 220, 220, 220, 25823, 6374, 2200, 1677, 657, 13, 198, 220, 23578, 34, 11159, 13, 198, 1677, 8068, 1581, 44, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 8147, 40, 62, 39103, 62, 29904, 62, 9858, 44, 6981, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 220, 220, 220, 220, 5178, 220, 279, 1872, 62, 486, 486, 62, 7220, 62, 21812, 198, 9, 5, 10097, 30934, 9, 198, 9, 220, 220, 220, 220, 220, 220, 2420, 198, 9, 10097, 23031, 9, 198, 21389, 279, 1872, 62, 486, 486, 62, 7220, 62, 21812, 764, 198, 220, 42001, 827, 12, 84, 9503, 13, 198, 220, 220, 220, 42099, 705, 5188, 31315, 4458, 198, 220, 220, 220, 220, 220, 19878, 21389, 279, 2127, 62, 486, 486, 62, 2220, 62, 7890, 62, 20424, 62, 25928, 13, 198, 220, 23578, 34, 11159, 13, 198, 1677, 8068, 1581, 44, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 8147, 40, 62, 486, 486, 62, 29904, 62, 9858, 44, 6981, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 220, 220, 220, 220, 5178, 220, 279, 1872, 62, 486, 2999, 62, 7220, 62, 21812, 198, 9, 5, 10097, 30934, 9, 198, 9, 220, 220, 220, 220, 220, 220, 2420, 198, 9, 10097, 23031, 9, 198, 21389, 279, 1872, 62, 486, 2999, 62, 7220, 62, 21812, 764, 198, 220, 42001, 827, 12, 84, 9503, 13, 198, 220, 220, 220, 42099, 705, 5188, 31315, 4458, 198, 220, 220, 220, 220, 220, 19878, 21389, 279, 2127, 62, 486, 2999, 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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 ]
*&---------------------------------------------------------------------* *&---------------------------------------------------------------------* METHOD example_09. TYPES: " Document structure BEGIN OF ts_merge0, a TYPE REF TO data, " Tree 1 In template {C-A} END OF ts_merge0, BEGIN OF ts_merge1, t TYPE REF TO data, " Tree 2 In template {R-T} END OF ts_merge1, BEGIN OF ts_column, mon TYPE numc2, col_name TYPE string, " <-- NAME like {R-T-SUM*} END OF ts_column, tt_column TYPE STANDARD TABLE OF ts_column WITH DEFAULT KEY. DATA lo_file TYPE REF TO zif_xtt_file. DATA ls_merge0 TYPE ts_merge0. DATA ls_merge1 TYPE ts_merge1. DATA lt_column TYPE REF TO tt_column. DATA ls_column TYPE ts_column. DATA ls_no_sum TYPE ts_no_sum. DATA lo_struc TYPE REF TO cl_abap_structdescr. DATA lt_comp TYPE abap_component_tab. DATA ls_comp TYPE abap_componentdescr. DATA lo_table TYPE REF TO cl_abap_tabledescr. DATA lr_table TYPE REF TO data. DATA lv_index TYPE string. FIELD-SYMBOLS <lt_table> TYPE STANDARD TABLE. " Structure without sums lo_struc ?= cl_abap_typedescr=>describe_by_data( ls_no_sum ). lt_comp = lo_struc->get_components( ). ls_comp-type ?= cl_abap_typedescr=>describe_by_name( 'BF_RBETR' ). CREATE DATA lt_column. DO p_c_cnt TIMES. " Index without leading space lv_index = sy-index. CONDENSE lv_index. " Index of month ls_column-mon = sy-index MOD 12. IF ls_column-mon = 0. ls_column-mon = 12. ENDIF. " Add with dynamic column name CONCATENATE `{R-T-SUM` lv_index `;func=SUM}` INTO ls_column-col_name. APPEND ls_column TO lt_column->*. " Add new column CONCATENATE `SUM` lv_index INTO ls_comp-name. INSERT ls_comp INTO TABLE lt_comp. ENDDO. " Create new structure with SUM* fields lo_struc = cl_abap_structdescr=>create( p_components = lt_comp ). " Create standard table based on new structure lo_table = cl_abap_tabledescr=>create( p_line_type = lo_struc ). CREATE DATA lr_table TYPE HANDLE lo_table. ASSIGN lr_table->* TO <lt_table>. " No need to fill for empty template IF p_temp <> abap_true. " Columns ls_merge0-a = zcl_xtt_replace_block=>tree_create( it_table = lt_column iv_fields = '' ). " <-- No fields! Tree with level=0 " {R-T} in a temaplte. @see get_random_table description cl_main=>get_random_table( EXPORTING iv_column_cnt = p_c_cnt IMPORTING et_table = <lt_table> ). " Rows ls_merge1-t = zcl_xtt_replace_block=>tree_create( it_table = lr_table iv_fields = '' ). " <-- No fields! Tree with level=0 ENDIF. " Show data structure only IF p_stru = abap_true. check_break_point_id( ). BREAK-POINT ID zxtt_break_point. " Double click here --> ls_root <-- RETURN. ENDIF. " Info about template & the main class itself CREATE OBJECT: lo_file TYPE zcl_xtt_file_smw0 EXPORTING iv_objid = iv_template, ro_xtt TYPE (iv_class_name) EXPORTING io_file = lo_file. " Paste data IF p_temp <> abap_true. " Columns ro_xtt->merge( is_block = ls_merge0 iv_block_name = 'C' ). " Rows ro_xtt->merge( ls_merge1 ). ENDIF. ENDMETHOD.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 10097, 30934, 9, 198, 198, 49273, 1672, 62, 2931, 13, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 366, 16854, 4645, 198, 220, 220, 220, 347, 43312, 3963, 40379, 62, 647, 469, 15, 11, 198, 220, 220, 220, 220, 220, 257, 41876, 4526, 37, 5390, 1366, 11, 366, 12200, 352, 554, 11055, 1391, 34, 12, 32, 92, 198, 220, 220, 220, 23578, 3963, 40379, 62, 647, 469, 15, 11, 628, 220, 220, 220, 347, 43312, 3963, 40379, 62, 647, 469, 16, 11, 198, 220, 220, 220, 220, 220, 256, 41876, 4526, 37, 5390, 1366, 11, 366, 12200, 362, 554, 11055, 1391, 49, 12, 51, 92, 198, 220, 220, 220, 23578, 3963, 40379, 62, 647, 469, 16, 11, 628, 220, 220, 220, 347, 43312, 3963, 40379, 62, 28665, 11, 198, 220, 220, 220, 220, 220, 937, 220, 220, 220, 220, 220, 41876, 997, 66, 17, 11, 198, 220, 220, 220, 220, 220, 951, 62, 3672, 41876, 4731, 11, 366, 1279, 438, 36751, 588, 1391, 49, 12, 51, 12, 50, 5883, 9, 92, 198, 220, 220, 220, 23578, 3963, 40379, 62, 28665, 11, 198, 220, 220, 220, 256, 83, 62, 28665, 41876, 49053, 9795, 43679, 3963, 40379, 62, 28665, 13315, 5550, 38865, 35374, 13, 628, 220, 42865, 2376, 62, 7753, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 742, 83, 62, 7753, 13, 198, 220, 42865, 43979, 62, 647, 469, 15, 41876, 40379, 62, 647, 469, 15, 13, 198, 220, 42865, 43979, 62, 647, 469, 16, 41876, 40379, 62, 647, 469, 16, 13, 198, 220, 42865, 300, 83, 62, 28665, 41876, 4526, 37, 5390, 256, 83, 62, 28665, 13, 198, 220, 42865, 43979, 62, 28665, 41876, 40379, 62, 28665, 13, 198, 220, 42865, 43979, 62, 3919, 62, 16345, 41876, 40379, 62, 3919, 62, 16345, 13, 198, 220, 42865, 2376, 62, 19554, 66, 220, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 7249, 20147, 81, 13, 198, 220, 42865, 300, 83, 62, 5589, 220, 220, 41876, 450, 499, 62, 42895, 62, 8658, 13, 198, 220, 42865, 43979, 62, 5589, 220, 220, 41876, 450, 499, 62, 42895, 20147, 81, 13, 198, 220, 42865, 2376, 62, 11487, 220, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 83, 4510, 3798, 81, 13, 198, 220, 42865, 300, 81, 62, 11487, 220, 41876, 4526, 37, 5390, 1366, 13, 198, 220, 42865, 300, 85, 62, 9630, 220, 41876, 4731, 13, 198, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 1279, 2528, 62, 11487, 29, 41876, 49053, 9795, 43679, 13, 628, 220, 366, 32522, 1231, 21784, 198, 220, 2376, 62, 19554, 66, 5633, 28, 537, 62, 397, 499, 62, 774, 9124, 3798, 81, 14804, 20147, 4892, 62, 1525, 62, 7890, 7, 43979, 62, 3919, 62, 16345, 6739, 198, 220, 300, 83, 62, 5589, 796, 2376, 62, 19554, 66, 3784, 1136, 62, 5589, 3906, 7, 6739, 198, 220, 43979, 62, 5589, 12, 4906, 5633, 28, 537, 62, 397, 499, 62, 774, 9124, 3798, 81, 14804, 20147, 4892, 62, 1525, 62, 3672, 7, 705, 29499, 62, 27912, 2767, 49, 6, 6739, 628, 220, 29244, 6158, 42865, 300, 83, 62, 28665, 13, 198, 220, 8410, 279, 62, 66, 62, 66, 429, 31742, 1546, 13, 198, 220, 220, 220, 366, 12901, 1231, 3756, 2272, 198, 220, 220, 220, 300, 85, 62, 9630, 796, 827, 12, 9630, 13, 198, 220, 220, 220, 7102, 35, 24290, 300, 85, 62, 9630, 13, 628, 220, 220, 220, 366, 12901, 286, 1227, 198, 220, 220, 220, 43979, 62, 28665, 12, 2144, 796, 827, 12, 9630, 19164, 1105, 13, 198, 220, 220, 220, 16876, 43979, 62, 28665, 12, 2144, 796, 657, 13, 198, 220, 220, 220, 220, 220, 43979, 62, 28665, 12, 2144, 796, 1105, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 366, 3060, 351, 8925, 5721, 1438, 198, 220, 220, 220, 39962, 1404, 1677, 6158, 4600, 90, 49, 12, 51, 12, 50, 5883, 63, 300, 85, 62, 9630, 4600, 26, 20786, 28, 50, 5883, 92, 63, 39319, 43979, 62, 28665, 12, 4033, 62, 3672, 13, 198, 220, 220, 220, 43504, 10619, 43979, 62, 28665, 5390, 300, 83, 62, 28665, 3784, 24620, 628, 220, 220, 220, 366, 3060, 649, 5721, 198, 220, 220, 220, 39962, 1404, 1677, 6158, 4600, 50, 5883, 63, 300, 85, 62, 9630, 39319, 43979, 62, 5589, 12, 3672, 13, 198, 220, 220, 220, 29194, 17395, 43979, 62, 5589, 39319, 43679, 300, 83, 62, 5589, 13, 198, 220, 23578, 18227, 13, 628, 220, 366, 13610, 649, 4645, 351, 35683, 9, 7032, 198, 220, 2376, 62, 19554, 66, 796, 537, 62, 397, 499, 62, 7249, 20147, 81, 14804, 17953, 7, 279, 62, 5589, 3906, 796, 300, 83, 62, 5589, 6739, 628, 220, 366, 13610, 3210, 3084, 1912, 319, 649, 4645, 198, 220, 2376, 62, 11487, 796, 537, 62, 397, 499, 62, 83, 4510, 3798, 81, 14804, 17953, 7, 279, 62, 1370, 62, 4906, 796, 2376, 62, 19554, 66, 6739, 198, 220, 29244, 6158, 42865, 300, 81, 62, 11487, 41876, 367, 6981, 2538, 2376, 62, 11487, 13, 198, 220, 24994, 16284, 300, 81, 62, 11487, 3784, 9, 5390, 1279, 2528, 62, 11487, 28401, 628, 220, 366, 1400, 761, 284, 6070, 329, 6565, 11055, 198, 220, 16876, 279, 62, 29510, 1279, 29, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 366, 29201, 82, 198, 220, 220, 220, 43979, 62, 647, 469, 15, 12, 64, 796, 1976, 565, 62, 742, 83, 62, 33491, 62, 9967, 14804, 21048, 62, 17953, 7, 198, 220, 220, 220, 220, 340, 62, 11487, 220, 220, 220, 220, 220, 796, 300, 83, 62, 28665, 198, 220, 220, 220, 220, 21628, 62, 25747, 220, 220, 220, 220, 796, 10148, 220, 220, 6739, 220, 220, 366, 1279, 438, 1400, 7032, 0, 12200, 351, 1241, 28, 15, 628, 220, 220, 220, 366, 1391, 49, 12, 51, 92, 287, 257, 2169, 64, 489, 660, 13, 2488, 3826, 651, 62, 25120, 62, 11487, 6764, 198, 220, 220, 220, 537, 62, 12417, 14804, 1136, 62, 25120, 62, 11487, 7, 198, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 21628, 62, 28665, 62, 66, 429, 796, 279, 62, 66, 62, 66, 429, 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,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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 ]
CLASS zcl_aoc_check_cloud_94 DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES if_ci_atc_check. CONSTANTS: BEGIN OF finding_codes, like TYPE if_ci_atc_check=>ty_finding_code VALUE 'LIKE', pattern_op TYPE if_ci_atc_check=>ty_finding_code VALUE 'PATTERN_OP', END OF finding_codes. CONSTANTS: BEGIN OF quickfix_codes, like TYPE cl_ci_atc_quickfixes=>ty_quickfix_code VALUE 'LIKE', pattern_op TYPE cl_ci_atc_quickfixes=>ty_quickfix_code VALUE 'PATTERN_OP', END OF quickfix_codes. PROTECTED SECTION. PRIVATE SECTION. DATA assistant_factory TYPE REF TO cl_ci_atc_assistant_factory. METHODS analyze_pattern IMPORTING finding_code TYPE if_ci_atc_check=>ty_finding_code code_provider TYPE REF TO if_ci_atc_source_code_provider procedure TYPE if_ci_atc_source_code_provider=>ty_procedure statement TYPE if_ci_atc_source_code_provider=>ty_statement token_idx TYPE syst-tabix statement_idx TYPE syst-tabix RETURNING VALUE(findings) TYPE if_ci_atc_check=>ty_findings. ENDCLASS. CLASS zcl_aoc_check_cloud_94 IMPLEMENTATION. METHOD if_ci_atc_check~get_meta_data. meta_data = NEW lcl_meta_data( ). ENDMETHOD. METHOD if_ci_atc_check~run. DATA(code_provider) = data_provider->get_code_provider( ). DATA(procedures) = code_provider->get_procedures( code_provider->object_to_comp_unit( object ) ). LOOP AT procedures->* ASSIGNING FIELD-SYMBOL(<procedure>). LOOP AT <procedure>-statements ASSIGNING FIELD-SYMBOL(<statement>). DATA(statement_idx) = sy-tabix. LOOP AT <statement>-tokens ASSIGNING FIELD-SYMBOL(<token>) WHERE references IS INITIAL. DATA(token_idx) = sy-tabix. CASE <token>-lexeme. WHEN 'LIKE'. INSERT LINES OF analyze_pattern( finding_code = finding_codes-like code_provider = code_provider procedure = <procedure> statement_idx = statement_idx statement = <statement> token_idx = token_idx ) INTO TABLE findings. WHEN 'NP' OR 'CP'. INSERT LINES OF analyze_pattern( finding_code = finding_codes-pattern_op code_provider = code_provider procedure = <procedure> statement_idx = statement_idx statement = <statement> token_idx = token_idx ) INTO TABLE findings. ENDCASE. ENDLOOP. ENDLOOP. ENDLOOP. ENDMETHOD. METHOD analyze_pattern. DATA(wrong_wildcard) = COND #( WHEN finding_code = finding_codes-like THEN '*' ELSE '%' ). DATA(correct_wildcard) = COND #( WHEN finding_code = finding_codes-like THEN '%' ELSE '*' ). ASSIGN statement-tokens[ token_idx + 1 ] TO FIELD-SYMBOL(<next_token>). IF <next_token>-lexeme CA wrong_wildcard AND <next_token>-lexeme NA correct_wildcard. DATA(quickfixes) = assistant_factory->create_quickfixes( ). quickfixes->create_quickfix( COND #( WHEN finding_code = finding_codes-like THEN quickfix_codes-like ELSE quickfix_codes-pattern_op ) )->replace( context = assistant_factory->create_quickfix_context( VALUE #( procedure_id = procedure-id statements = VALUE #( from = statement_idx to = statement_idx ) tokens = VALUE #( from = token_idx + 1 to = token_idx + 1 ) ) ) code = VALUE #( ( replace( val = <next_token>-lexeme sub = wrong_wildcard with = correct_wildcard ) ) ) ). DATA(finding_location) = code_provider->get_statement_location( statement ). finding_location-position = <next_token>-position. INSERT VALUE #( code = finding_code location = finding_location checksum = code_provider->get_statement_checksum( statement ) details = assistant_factory->create_finding_details( )->attach_quickfixes( quickfixes ) ) INTO TABLE findings. ENDIF. ENDMETHOD. METHOD if_ci_atc_check~set_assistant_factory. assistant_factory = factory. ENDMETHOD. METHOD if_ci_atc_check~verify_prerequisites ##NEEDED. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 64, 420, 62, 9122, 62, 17721, 62, 5824, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 198, 198, 5105, 32936, 44513, 13, 198, 220, 23255, 37, 2246, 1546, 611, 62, 979, 62, 265, 66, 62, 9122, 13, 628, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 347, 43312, 3963, 4917, 62, 40148, 11, 198, 220, 220, 220, 220, 220, 588, 41876, 611, 62, 979, 62, 265, 66, 62, 9122, 14804, 774, 62, 41070, 62, 8189, 26173, 8924, 705, 31271, 7336, 3256, 198, 220, 220, 220, 220, 220, 3912, 62, 404, 41876, 611, 62, 979, 62, 265, 66, 62, 9122, 14804, 774, 62, 41070, 62, 8189, 26173, 8924, 705, 47, 1404, 31800, 62, 3185, 3256, 198, 220, 220, 220, 23578, 3963, 4917, 62, 40148, 13, 198, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 347, 43312, 3963, 2068, 13049, 62, 40148, 11, 198, 220, 220, 220, 220, 220, 588, 41876, 537, 62, 979, 62, 265, 66, 62, 24209, 42624, 14804, 774, 62, 24209, 13049, 62, 8189, 26173, 8924, 705, 31271, 7336, 3256, 198, 220, 220, 220, 220, 220, 3912, 62, 404, 41876, 537, 62, 979, 62, 265, 66, 62, 24209, 42624, 14804, 774, 62, 24209, 13049, 62, 8189, 26173, 8924, 705, 47, 1404, 31800, 62, 3185, 3256, 198, 220, 220, 220, 23578, 3963, 2068, 13049, 62, 40148, 13, 198, 4805, 2394, 9782, 1961, 44513, 13, 198, 4805, 3824, 6158, 44513, 13, 198, 220, 42865, 8796, 62, 69, 9548, 41876, 4526, 37, 5390, 537, 62, 979, 62, 265, 66, 62, 562, 10167, 62, 69, 9548, 13, 198, 220, 337, 36252, 50, 16602, 62, 33279, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 4917, 62, 8189, 41876, 611, 62, 979, 62, 265, 66, 62, 9122, 14804, 774, 62, 41070, 62, 8189, 198, 220, 220, 220, 220, 220, 2438, 62, 15234, 1304, 41876, 4526, 37, 5390, 611, 62, 979, 62, 265, 66, 62, 10459, 62, 8189, 62, 15234, 1304, 198, 220, 220, 220, 220, 220, 8771, 41876, 611, 62, 979, 62, 265, 66, 62, 10459, 62, 8189, 62, 15234, 1304, 14804, 774, 62, 1676, 771, 495, 198, 220, 220, 220, 220, 220, 2643, 41876, 611, 62, 979, 62, 265, 66, 62, 10459, 62, 8189, 62, 15234, 1304, 14804, 774, 62, 26090, 198, 220, 220, 220, 220, 220, 11241, 62, 312, 87, 41876, 827, 301, 12, 8658, 844, 198, 220, 220, 220, 220, 220, 2643, 62, 312, 87, 41876, 827, 301, 12, 8658, 844, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 19796, 654, 8, 41876, 611, 62, 979, 62, 265, 66, 62, 9122, 14804, 774, 62, 19796, 654, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 64, 420, 62, 9122, 62, 17721, 62, 5824, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 611, 62, 979, 62, 265, 66, 62, 9122, 93, 1136, 62, 28961, 62, 7890, 13, 198, 220, 220, 220, 13634, 62, 7890, 796, 12682, 300, 565, 62, 28961, 62, 7890, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 979, 62, 265, 66, 62, 9122, 93, 5143, 13, 198, 220, 220, 220, 42865, 7, 8189, 62, 15234, 1304, 8, 796, 1366, 62, 15234, 1304, 3784, 1136, 62, 8189, 62, 15234, 1304, 7, 6739, 198, 220, 220, 220, 42865, 7, 1676, 771, 942, 8, 796, 2438, 62, 15234, 1304, 3784, 1136, 62, 1676, 771, 942, 7, 2438, 62, 15234, 1304, 3784, 15252, 62, 1462, 62, 5589, 62, 20850, 7, 2134, 1267, 6739, 198, 220, 220, 220, 17579, 3185, 5161, 9021, 3784, 9, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 1676, 771, 495, 29, 737, 198, 220, 220, 220, 220, 220, 17579, 3185, 5161, 1279, 1676, 771, 495, 29, 12, 14269, 3196, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 26090, 29, 737, 198, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 26090, 62, 312, 87, 8, 796, 827, 12, 8658, 844, 13, 198, 220, 220, 220, 220, 220, 220, 220, 17579, 3185, 5161, 1279, 26090, 29, 12, 83, 482, 641, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 30001, 43734, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33411, 10288, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 30001, 62, 312, 87, 8, 796, 827, 12, 8658, 844, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42001, 1279, 30001, 29, 12, 2588, 34755, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42099, 705, 31271, 7336, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29194, 17395, 43277, 1546, 3963, 16602, 62, 33279, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4917, 62, 8189, 796, 4917, 62, 40148, 12, 2339, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2438, 62, 15234, 1304, 796, 2438, 62, 15234, 1304, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8771, 796, 1279, 1676, 771, 495, 29, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 312, 87, 796, 2643, 62, 312, 87, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 796, 1279, 26090, 29, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11241, 62, 312, 87, 796, 11241, 62, 312, 87, 1267, 39319, 43679, 6373, 13, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42099, 705, 22182, 6, 6375, 705, 8697, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29194, 17395, 43277, 1546, 3963, 16602, 62, 33279, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4917, 62, 8189, 796, 4917, 62, 40148, 12, 33279, 62, 404 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
********************************************************************** * UTIL ********************************************************************** CLASS lcl_nodes_helper DEFINITION FINAL. PUBLIC SECTION. DATA mt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt. METHODS add IMPORTING iv_str TYPE string. METHODS clear. METHODS sorted RETURNING VALUE(rt_nodes) TYPE zif_abapgit_ajson=>ty_nodes_ts. ENDCLASS. CLASS lcl_nodes_helper IMPLEMENTATION. METHOD add. FIELD-SYMBOLS <n> LIKE LINE OF mt_nodes. DATA lv_children TYPE string. DATA lv_index TYPE string. DATA lv_order TYPE string. APPEND INITIAL LINE TO mt_nodes ASSIGNING <n>. SPLIT iv_str AT '|' INTO <n>-path <n>-name <n>-type <n>-value lv_index lv_children lv_order. CONDENSE <n>-path. CONDENSE <n>-name. CONDENSE <n>-type. CONDENSE <n>-value. <n>-index = lv_index. <n>-children = lv_children. <n>-order = lv_order. ENDMETHOD. METHOD sorted. rt_nodes = mt_nodes. ENDMETHOD. METHOD clear. CLEAR mt_nodes. ENDMETHOD. ENDCLASS. ********************************************************************** * PARSER ********************************************************************** CLASS ltcl_parser_test DEFINITION FINAL FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PUBLIC SECTION. CLASS-METHODS sample_json IMPORTING iv_separator TYPE string OPTIONAL RETURNING VALUE(rv_json) TYPE string. PRIVATE SECTION. DATA mo_cut TYPE REF TO lcl_json_parser. DATA mo_nodes TYPE REF TO lcl_nodes_helper. METHODS setup. METHODS parse FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS parse_string FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS parse_number FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS parse_float FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS parse_boolean FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS parse_false FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS parse_null FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS parse_date FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS parse_bare_values FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS parse_error FOR TESTING RAISING zcx_abapgit_ajson_error. ENDCLASS. CLASS ltcl_parser_test IMPLEMENTATION. METHOD setup. CREATE OBJECT mo_cut. CREATE OBJECT mo_nodes. ENDMETHOD. METHOD parse_bare_values. DATA lt_act TYPE zif_abapgit_ajson=>ty_nodes_tt. mo_nodes->add( ' | |str |abc | |0' ). lt_act = mo_cut->parse( '"abc"' ). cl_abap_unit_assert=>assert_equals( act = lt_act exp = mo_nodes->mt_nodes ). mo_nodes->clear( ). mo_nodes->add( ' | |num |-123 | |0' ). lt_act = mo_cut->parse( '-123' ). cl_abap_unit_assert=>assert_equals( act = lt_act exp = mo_nodes->mt_nodes ). mo_nodes->clear( ). mo_nodes->add( ' | |bool |true | |0' ). lt_act = mo_cut->parse( 'true' ). cl_abap_unit_assert=>assert_equals( act = lt_act exp = mo_nodes->mt_nodes ). mo_nodes->clear( ). mo_nodes->add( ' | |bool |false | |0' ). lt_act = mo_cut->parse( 'false' ). cl_abap_unit_assert=>assert_equals( act = lt_act exp = mo_nodes->mt_nodes ). mo_nodes->clear( ). mo_nodes->add( ' | |null | | |0' ). lt_act = mo_cut->parse( 'null' ). cl_abap_unit_assert=>assert_equals( act = lt_act exp = mo_nodes->mt_nodes ). ENDMETHOD. METHOD parse_error. DATA lt_act TYPE zif_abapgit_ajson=>ty_nodes_tt. DATA lx_err TYPE REF TO zcx_abapgit_ajson_error. TRY. lt_act = mo_cut->parse( 'abc' ). cl_abap_unit_assert=>fail( 'Parsing of string w/o quotes must fail (spec)' ). CATCH zcx_abapgit_ajson_error INTO lx_err. cl_abap_unit_assert=>assert_char_cp( act = lx_err->get_text( ) exp = '*parsing error*' ). cl_abap_unit_assert=>assert_char_cp( act = lx_err->location exp = 'Line 1, Offset 1' ). ENDTRY. TRY. lt_act = mo_cut->parse( '{' && cl_abap_char_utilities=>newline && '"ok": "abc",' && cl_abap_char_utilities=>newline && '"error"' && cl_abap_char_utilities=>newline && '}' ). cl_abap_unit_assert=>fail( 'Parsing of invalid JSON must fail (spec)' ). CATCH zcx_abapgit_ajson_error INTO lx_err. cl_abap_unit_assert=>assert_char_cp( act = lx_err->get_text( ) exp = '*parsing error*' ). cl_abap_unit_assert=>assert_char_cp( act = lx_err->location exp = 'Line 3, Offset 8' ). ENDTRY. ENDMETHOD. METHOD parse_string. mo_nodes->add( ' | |object | | |1' ). mo_nodes->add( '/ |string |str |abc | |0' ). DATA lt_act TYPE zif_abapgit_ajson=>ty_nodes_tt. lt_act = mo_cut->parse( '{"string": "abc"}' ). cl_abap_unit_assert=>assert_equals( act = lt_act exp = mo_nodes->mt_nodes ). ENDMETHOD. METHOD parse_number. mo_nodes->add( ' | |object | | |1' ). mo_nodes->add( '/ |number |num |123 | |0' ). DATA lt_act TYPE zif_abapgit_ajson=>ty_nodes_tt. lt_act = mo_cut->parse( '{"number": 123}' ). cl_abap_unit_assert=>assert_equals( act = lt_act exp = mo_nodes->mt_nodes ). ENDMETHOD. METHOD parse_float. mo_nodes->add( ' | |object | | |1' ). mo_nodes->add( '/ |float |num |123.45 | |0' ). DATA lt_act TYPE zif_abapgit_ajson=>ty_nodes_tt. CREATE OBJECT mo_cut. lt_act = mo_cut->parse( '{"float": 123.45}' ). cl_abap_unit_assert=>assert_equals( act = lt_act exp = mo_nodes->mt_nodes ). ENDMETHOD. METHOD parse_boolean. mo_nodes->add( ' | |object | | |1' ). mo_nodes->add( '/ |boolean |bool |true | |0' ). DATA lt_act TYPE zif_abapgit_ajson=>ty_nodes_tt. lt_act = mo_cut->parse( '{"boolean": true}' ). cl_abap_unit_assert=>assert_equals( act = lt_act exp = mo_nodes->mt_nodes ). ENDMETHOD. METHOD parse_false. mo_nodes->add( ' | |object | | |1' ). mo_nodes->add( '/ |false |bool |false | |0' ). DATA lt_act TYPE zif_abapgit_ajson=>ty_nodes_tt. lt_act = mo_cut->parse( '{"false": false}' ). cl_abap_unit_assert=>assert_equals( act = lt_act exp = mo_nodes->mt_nodes ). ENDMETHOD. METHOD parse_null. mo_nodes->add( ' | |object | | |1' ). mo_nodes->add( '/ |null |null | | |0' ). DATA lt_act TYPE zif_abapgit_ajson=>ty_nodes_tt. lt_act = mo_cut->parse( '{"null": null}' ). cl_abap_unit_assert=>assert_equals( act = lt_act exp = mo_nodes->mt_nodes ). ENDMETHOD. METHOD parse_date. mo_nodes->add( ' | |object | | |1' ). mo_nodes->add( '/ |date |str |2020-03-15 | |0' ). DATA lt_act TYPE zif_abapgit_ajson=>ty_nodes_tt. lt_act = mo_cut->parse( '{"date": "2020-03-15"}' ). cl_abap_unit_assert=>assert_equals( act = lt_act exp = mo_nodes->mt_nodes ). ENDMETHOD. METHOD sample_json. rv_json = '{\n' && ' "string": "abc",\n' && ' "number": 123,\n' && ' "float": 123.45,\n' && ' "boolean": true,\n' && ' "false": false,\n' && ' "null": null,\n' && ' "date": "2020-03-15",\n' && ' "issues": [\n' && ' {\n' && ' "message": "Indentation problem ...",\n' && ' "key": "indentation",\n' && ' "start": {\n' && ' "row": 4,\n' && ' "col": 3\n' && ' },\n' && ' "end": {\n' && ' "row": 4,\n' && ' "col": 26\n' && ' },\n' && ' "filename": "./zxxx.prog.abap"\n' && ' },\n' && ' {\n' && ' "message": "Remove space before XXX",\n' && ' "key": "space_before_dot",\n' && ' "start": {\n' && ' "row": 3,\n' && ' "col": 21\n' && ' },\n' && ' "end": {\n' && ' "row": 3,\n' && ' "col": 22\n' && ' },\n' && ' "filename": "./zxxx.prog.abap"\n' && ' }\n' && ' ]\n' && '}'. REPLACE ALL OCCURRENCES OF '\n' IN rv_json WITH iv_separator. ENDMETHOD. METHOD parse. DATA lo_cut TYPE REF TO lcl_json_parser. DATA lt_act TYPE zif_abapgit_ajson=>ty_nodes_tt. DATA lo_nodes TYPE REF TO lcl_nodes_helper. CREATE OBJECT lo_nodes. lo_nodes->add( ' | |object | | |8' ). lo_nodes->add( '/ |string |str |abc | |0' ). lo_nodes->add( '/ |number |num |123 | |0' ). lo_nodes->add( '/ |float |num |123.45 | |0' ). lo_nodes->add( '/ |boolean |bool |true | |0' ). lo_nodes->add( '/ |false |bool |false | |0' ). lo_nodes->add( '/ |null |null | | |0' ). lo_nodes->add( '/ |date |str |2020-03-15 | |0' ). lo_nodes->add( '/ |issues |array | | |2' ). lo_nodes->add( '/issues/ |1 |object | |1 |5' ). lo_nodes->add( '/issues/1/ |message |str |Indentation problem ... | |0' ). lo_nodes->add( '/issues/1/ |key |str |indentation | |0' ). lo_nodes->add( '/issues/1/ |start |object | | |2' ). lo_nodes->add( '/issues/1/start/ |row |num |4 | |0' ). lo_nodes->add( '/issues/1/start/ |col |num |3 | |0' ). lo_nodes->add( '/issues/1/ |end |object | | |2' ). lo_nodes->add( '/issues/1/end/ |row |num |4 | |0' ). lo_nodes->add( '/issues/1/end/ |col |num |26 | |0' ). lo_nodes->add( '/issues/1/ |filename |str |./zxxx.prog.abap | |0' ). lo_nodes->add( '/issues/ |2 |object | |2 |5' ). lo_nodes->add( '/issues/2/ |message |str |Remove space before XXX | |0' ). lo_nodes->add( '/issues/2/ |key |str |space_before_dot | |0' ). lo_nodes->add( '/issues/2/ |start |object | | |2' ). lo_nodes->add( '/issues/2/start/ |row |num |3 | |0' ). lo_nodes->add( '/issues/2/start/ |col |num |21 | |0' ). lo_nodes->add( '/issues/2/ |end |object | | |2' ). lo_nodes->add( '/issues/2/end/ |row |num |3 | |0' ). lo_nodes->add( '/issues/2/end/ |col |num |22 | |0' ). lo_nodes->add( '/issues/2/ |filename |str |./zxxx.prog.abap | |0' ). CREATE OBJECT lo_cut. lt_act = lo_cut->parse( sample_json( ) ). cl_abap_unit_assert=>assert_equals( act = lt_act exp = lo_nodes->mt_nodes ). lt_act = lo_cut->parse( sample_json( |{ cl_abap_char_utilities=>newline }| ) ). cl_abap_unit_assert=>assert_equals( act = lt_act exp = lo_nodes->mt_nodes ). lt_act = lo_cut->parse( sample_json( |{ cl_abap_char_utilities=>cr_lf }| ) ). cl_abap_unit_assert=>assert_equals( act = lt_act exp = lo_nodes->mt_nodes ). ENDMETHOD. ENDCLASS. ********************************************************************** * SERIALIZER ********************************************************************** CLASS ltcl_serializer_test DEFINITION FINAL FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PUBLIC SECTION. CLASS-METHODS sample_json RETURNING VALUE(rv_json) TYPE string. CLASS-METHODS sample_nodes RETURNING VALUE(rt_nodes) TYPE zif_abapgit_ajson=>ty_nodes_ts. PRIVATE SECTION. METHODS stringify_condensed FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS stringify_indented FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS array_index FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS item_order FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS simple_indented FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS empty_set FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS escape FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS empty FOR TESTING RAISING zcx_abapgit_ajson_error. ENDCLASS. CLASS ltcl_serializer_test IMPLEMENTATION. METHOD sample_json. rv_json = '{\n' && ' "boolean": true,\n' && ' "date": "2020-03-15",\n' && ' "false": false,\n' && ' "float": 123.45,\n' && ' "issues": [\n' && ' {\n' && ' "end": {\n' && ' "col": 26,\n' && ' "row": 4\n' && ' },\n' && ' "filename": "./zxxx.prog.abap",\n' && ' "key": "indentation",\n' && ' "message": "Indentation problem ...",\n' && ' "start": {\n' && ' "col": 3,\n' && ' "row": 4\n' && ' }\n' && ' },\n' && ' {\n' && ' "end": {\n' && ' "col": 22,\n' && ' "row": 3\n' && ' },\n' && ' "filename": "./zxxx.prog.abap",\n' && ' "key": "space_before_dot",\n' && ' "message": "Remove space before XXX",\n' && ' "start": {\n' && ' "col": 21,\n' && ' "row": 3\n' && ' }\n' && ' }\n' && ' ],\n' && ' "null": null,\n' && ' "number": 123,\n' && ' "string": "abc"\n' && '}'. rv_json = replace( val = rv_json sub = '\n' with = cl_abap_char_utilities=>newline occ = 0 ). ENDMETHOD. METHOD sample_nodes. DATA lo_nodes TYPE REF TO lcl_nodes_helper. CREATE OBJECT lo_nodes. lo_nodes->add( ' | |object | | |8' ). lo_nodes->add( '/ |string |str |abc | |0' ). lo_nodes->add( '/ |number |num |123 | |0' ). lo_nodes->add( '/ |float |num |123.45 | |0' ). lo_nodes->add( '/ |boolean |bool |true | |0' ). lo_nodes->add( '/ |false |bool |false | |0' ). lo_nodes->add( '/ |null |null | | |0' ). lo_nodes->add( '/ |date |str |2020-03-15 | |0' ). lo_nodes->add( '/ |issues |array | | |2' ). lo_nodes->add( '/issues/ |1 |object | |1 |5' ). lo_nodes->add( '/issues/1/ |message |str |Indentation problem ... | |0' ). lo_nodes->add( '/issues/1/ |key |str |indentation | |0' ). lo_nodes->add( '/issues/1/ |start |object | | |2' ). lo_nodes->add( '/issues/1/start/ |row |num |4 | |0' ). lo_nodes->add( '/issues/1/start/ |col |num |3 | |0' ). lo_nodes->add( '/issues/1/ |end |object | | |2' ). lo_nodes->add( '/issues/1/end/ |row |num |4 | |0' ). lo_nodes->add( '/issues/1/end/ |col |num |26 | |0' ). lo_nodes->add( '/issues/1/ |filename |str |./zxxx.prog.abap | |0' ). lo_nodes->add( '/issues/ |2 |object | |2 |5' ). lo_nodes->add( '/issues/2/ |message |str |Remove space before XXX | |0' ). lo_nodes->add( '/issues/2/ |key |str |space_before_dot | |0' ). lo_nodes->add( '/issues/2/ |start |object | | |2' ). lo_nodes->add( '/issues/2/start/ |row |num |3 | |0' ). lo_nodes->add( '/issues/2/start/ |col |num |21 | |0' ). lo_nodes->add( '/issues/2/ |end |object | | |2' ). lo_nodes->add( '/issues/2/end/ |row |num |3 | |0' ). lo_nodes->add( '/issues/2/end/ |col |num |22 | |0' ). lo_nodes->add( '/issues/2/ |filename |str |./zxxx.prog.abap | |0' ). rt_nodes = lo_nodes->sorted( ). ENDMETHOD. METHOD stringify_condensed. DATA lv_act TYPE string. DATA lv_exp TYPE string. lv_act = lcl_json_serializer=>stringify( sample_nodes( ) ). lv_exp = sample_json( ). lv_exp = replace( val = lv_exp sub = cl_abap_char_utilities=>newline with = '' occ = 0 ). CONDENSE lv_exp. lv_exp = replace( val = lv_exp sub = `: ` with = ':' occ = 0 ). lv_exp = replace( val = lv_exp sub = `{ ` with = '{' occ = 0 ). lv_exp = replace( val = lv_exp sub = `[ ` with = '[' occ = 0 ). lv_exp = replace( val = lv_exp sub = ` }` with = '}' occ = 0 ). lv_exp = replace( val = lv_exp sub = ` ]` with = ']' occ = 0 ). lv_exp = replace( val = lv_exp sub = `, ` with = ',' occ = 0 ). cl_abap_unit_assert=>assert_equals( act = lv_act exp = lv_exp ). ENDMETHOD. METHOD stringify_indented. DATA lv_act TYPE string. DATA lv_exp TYPE string. lv_act = lcl_json_serializer=>stringify( it_json_tree = sample_nodes( ) iv_indent = 2 ). lv_exp = sample_json( ). cl_abap_unit_assert=>assert_equals( act = lv_act exp = lv_exp ). ENDMETHOD. METHOD array_index. DATA lv_act TYPE string. DATA lv_exp TYPE string. DATA lo_nodes TYPE REF TO lcl_nodes_helper. CREATE OBJECT lo_nodes. lo_nodes->add( ' | |array | | |3' ). lo_nodes->add( '/ |1 |str |abc |2 |0' ). lo_nodes->add( '/ |2 |num |123 |1 |0' ). lo_nodes->add( '/ |3 |num |123.45 |3 |0' ). lv_act = lcl_json_serializer=>stringify( lo_nodes->sorted( ) ). lv_exp = '[123,"abc",123.45]'. cl_abap_unit_assert=>assert_equals( act = lv_act exp = lv_exp ). ENDMETHOD. METHOD item_order. DATA lv_act TYPE string. DATA lv_exp TYPE string. DATA lo_nodes TYPE REF TO lcl_nodes_helper. CREATE OBJECT lo_nodes. lo_nodes->add( ' | |object | | |3 |0' ). lo_nodes->add( '/ |beta |str |b | |0 |3' ). lo_nodes->add( '/ |zulu |str |z | |0 |1' ). lo_nodes->add( '/ |alpha |str |a | |0 |2' ). lv_act = lcl_json_serializer=>stringify( lo_nodes->sorted( ) ). lv_exp = '{"alpha":"a","beta":"b","zulu":"z"}'. " NAME order ! (it is also a UT) cl_abap_unit_assert=>assert_equals( act = lv_act exp = lv_exp ). lv_act = lcl_json_serializer=>stringify( it_json_tree = lo_nodes->sorted( ) iv_keep_item_order = abap_true ). lv_exp = '{"zulu":"z","alpha":"a","beta":"b"}'. cl_abap_unit_assert=>assert_equals( act = lv_act exp = lv_exp ). ENDMETHOD. METHOD simple_indented. DATA lv_act TYPE string. DATA lv_exp TYPE string. DATA lo_nodes TYPE REF TO lcl_nodes_helper. CREATE OBJECT lo_nodes. lo_nodes->add( ' | |array | | |3' ). lo_nodes->add( '/ |1 |object | |2 |2' ). lo_nodes->add( '/1/ |a |num |1 | |0' ). lo_nodes->add( '/1/ |b |num |2 | |0' ). lo_nodes->add( '/ |2 |num |123 |1 |0' ). lo_nodes->add( '/ |3 |num |123.45 |3 |0' ). lv_act = lcl_json_serializer=>stringify( it_json_tree = lo_nodes->sorted( ) iv_indent = 2 ). lv_exp = '[\n' && ' 123,\n' && ' {\n' && ' "a": 1,\n' && ' "b": 2\n' && ' },\n' && ' 123.45\n' && ']'. lv_exp = replace( val = lv_exp sub = '\n' with = cl_abap_char_utilities=>newline occ = 0 ). cl_abap_unit_assert=>assert_equals( act = lv_act exp = lv_exp ). ENDMETHOD. METHOD empty_set. DATA lv_act TYPE string. DATA lv_exp TYPE string. DATA lo_nodes TYPE REF TO lcl_nodes_helper. CREATE OBJECT lo_nodes. lo_nodes->add( ' | |array | | |0' ). lv_act = lcl_json_serializer=>stringify( it_json_tree = lo_nodes->sorted( ) iv_indent = 0 ). lv_exp = '[]'. cl_abap_unit_assert=>assert_equals( act = lv_act exp = lv_exp ). lv_act = lcl_json_serializer=>stringify( it_json_tree = lo_nodes->sorted( ) iv_indent = 2 ). lv_exp = '[]'. cl_abap_unit_assert=>assert_equals( act = lv_act exp = lv_exp ). ENDMETHOD. METHOD escape. DATA lv_act TYPE string. DATA lv_exp TYPE string. DATA lv_val TYPE string. DATA lo_nodes TYPE REF TO lcl_nodes_helper. CREATE OBJECT lo_nodes. lv_val = 'a' && '"' && '\' && cl_abap_char_utilities=>horizontal_tab && cl_abap_char_utilities=>cr_lf. lo_nodes->add( | \| \|str \|{ lv_val }\| \|0| ). lv_act = lcl_json_serializer=>stringify( lo_nodes->sorted( ) ). lv_exp = '"a\"\\\t\r\n"'. cl_abap_unit_assert=>assert_equals( act = lv_act exp = lv_exp ). ENDMETHOD. METHOD empty. DATA lv_act TYPE string. DATA lv_exp TYPE string. DATA lo_nodes TYPE REF TO lcl_nodes_helper. CREATE OBJECT lo_nodes. lv_act = lcl_json_serializer=>stringify( lo_nodes->sorted( ) ). lv_exp = ''. cl_abap_unit_assert=>assert_equals( act = lv_act exp = lv_exp ). ENDMETHOD. ENDCLASS. ********************************************************************** * UTILS ********************************************************************** CLASS ltcl_utils_test DEFINITION FINAL FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PRIVATE SECTION. METHODS normalize_path FOR TESTING. METHODS split_path FOR TESTING. METHODS validate_array_index FOR TESTING RAISING zcx_abapgit_ajson_error. ENDCLASS. CLASS zcl_abapgit_ajson DEFINITION LOCAL FRIENDS ltcl_utils_test. CLASS ltcl_utils_test IMPLEMENTATION. METHOD validate_array_index. cl_abap_unit_assert=>assert_equals( act = lcl_utils=>validate_array_index( iv_path = 'x' iv_index = '123' ) exp = 123 ). TRY. lcl_utils=>validate_array_index( iv_path = 'x' iv_index = 'a' ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error. ENDTRY. TRY. lcl_utils=>validate_array_index( iv_path = 'x' iv_index = '0' ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error. ENDTRY. ENDMETHOD. METHOD normalize_path. cl_abap_unit_assert=>assert_equals( act = lcl_utils=>normalize_path( '' ) exp = '/' ). cl_abap_unit_assert=>assert_equals( act = lcl_utils=>normalize_path( '/' ) exp = '/' ). cl_abap_unit_assert=>assert_equals( act = lcl_utils=>normalize_path( 'abc' ) exp = '/abc/' ). cl_abap_unit_assert=>assert_equals( act = lcl_utils=>normalize_path( '/abc' ) exp = '/abc/' ). cl_abap_unit_assert=>assert_equals( act = lcl_utils=>normalize_path( 'abc/' ) exp = '/abc/' ). cl_abap_unit_assert=>assert_equals( act = lcl_utils=>normalize_path( '/abc/' ) exp = '/abc/' ). ENDMETHOD. METHOD split_path. DATA ls_exp TYPE zif_abapgit_ajson=>ty_path_name. DATA lv_path TYPE string. lv_path = ''. " alias to root ls_exp-path = ''. ls_exp-name = ''. cl_abap_unit_assert=>assert_equals( act = lcl_utils=>split_path( lv_path ) exp = ls_exp ). lv_path = '/'. ls_exp-path = ''. ls_exp-name = ''. cl_abap_unit_assert=>assert_equals( act = lcl_utils=>split_path( lv_path ) exp = ls_exp ). lv_path = '/abc/'. ls_exp-path = '/'. ls_exp-name = 'abc'. cl_abap_unit_assert=>assert_equals( act = lcl_utils=>split_path( lv_path ) exp = ls_exp ). lv_path = 'abc'. ls_exp-path = '/'. ls_exp-name = 'abc'. cl_abap_unit_assert=>assert_equals( act = lcl_utils=>split_path( lv_path ) exp = ls_exp ). lv_path = '/abc'. ls_exp-path = '/'. ls_exp-name = 'abc'. cl_abap_unit_assert=>assert_equals( act = lcl_utils=>split_path( lv_path ) exp = ls_exp ). lv_path = 'abc/'. ls_exp-path = '/'. ls_exp-name = 'abc'. cl_abap_unit_assert=>assert_equals( act = lcl_utils=>split_path( lv_path ) exp = ls_exp ). lv_path = '/abc/xyz'. ls_exp-path = '/abc/'. ls_exp-name = 'xyz'. cl_abap_unit_assert=>assert_equals( act = lcl_utils=>split_path( lv_path ) exp = ls_exp ). lv_path = '/abc/xyz/'. ls_exp-path = '/abc/'. ls_exp-name = 'xyz'. cl_abap_unit_assert=>assert_equals( act = lcl_utils=>split_path( lv_path ) exp = ls_exp ). ENDMETHOD. ENDCLASS. ********************************************************************** * READER ********************************************************************** CLASS ltcl_reader_test DEFINITION FINAL FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PRIVATE SECTION. METHODS get_value FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS get_node_type FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS exists FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS value_integer FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS value_number FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS value_boolean FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS value_string FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS members FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS slice FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS array_to_string_table FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS get_date FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS get_timestamp FOR TESTING RAISING zcx_abapgit_ajson_error. ENDCLASS. CLASS zcl_abapgit_ajson DEFINITION LOCAL FRIENDS ltcl_reader_test. CLASS ltcl_reader_test IMPLEMENTATION. METHOD slice. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA lo_nodes TYPE REF TO lcl_nodes_helper. CREATE OBJECT lo_nodes. lo_nodes->add( ' | |array | | |2' ). lo_nodes->add( '/ |1 |object | |1 |5' ). lo_nodes->add( '/1/ |message |str |Indentation problem ... | |0' ). lo_nodes->add( '/1/ |key |str |indentation | |0' ). lo_nodes->add( '/1/ |start |object | | |2' ). lo_nodes->add( '/1/start/ |row |num |4 | |0' ). lo_nodes->add( '/1/start/ |col |num |3 | |0' ). lo_nodes->add( '/1/ |end |object | | |2' ). lo_nodes->add( '/1/end/ |row |num |4 | |0' ). lo_nodes->add( '/1/end/ |col |num |26 | |0' ). lo_nodes->add( '/1/ |filename |str |./zxxx.prog.abap | |0' ). lo_nodes->add( '/ |2 |object | |2 |5' ). lo_nodes->add( '/2/ |message |str |Remove space before XXX | |0' ). lo_nodes->add( '/2/ |key |str |space_before_dot | |0' ). lo_nodes->add( '/2/ |start |object | | |2' ). lo_nodes->add( '/2/start/ |row |num |3 | |0' ). lo_nodes->add( '/2/start/ |col |num |21 | |0' ). lo_nodes->add( '/2/ |end |object | | |2' ). lo_nodes->add( '/2/end/ |row |num |3 | |0' ). lo_nodes->add( '/2/end/ |col |num |22 | |0' ). lo_nodes->add( '/2/ |filename |str |./zxxx.prog.abap | |0' ). lo_cut = zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ). lo_cut ?= lo_cut->zif_abapgit_ajson~slice( '/issues' ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes->sorted( ) ). " ********************************************************************** CREATE OBJECT lo_nodes. lo_nodes->add( ' | |object | | |8' ). lo_nodes->add( '/ |string |str |abc | |0' ). lo_nodes->add( '/ |number |num |123 | |0' ). lo_nodes->add( '/ |float |num |123.45 | |0' ). lo_nodes->add( '/ |boolean |bool |true | |0' ). lo_nodes->add( '/ |false |bool |false | |0' ). lo_nodes->add( '/ |null |null | | |0' ). lo_nodes->add( '/ |date |str |2020-03-15 | |0' ). lo_nodes->add( '/ |issues |array | | |2' ). lo_nodes->add( '/issues/ |1 |object | |1 |5' ). lo_nodes->add( '/issues/1/ |message |str |Indentation problem ... | |0' ). lo_nodes->add( '/issues/1/ |key |str |indentation | |0' ). lo_nodes->add( '/issues/1/ |start |object | | |2' ). lo_nodes->add( '/issues/1/start/ |row |num |4 | |0' ). lo_nodes->add( '/issues/1/start/ |col |num |3 | |0' ). lo_nodes->add( '/issues/1/ |end |object | | |2' ). lo_nodes->add( '/issues/1/end/ |row |num |4 | |0' ). lo_nodes->add( '/issues/1/end/ |col |num |26 | |0' ). lo_nodes->add( '/issues/1/ |filename |str |./zxxx.prog.abap | |0' ). lo_nodes->add( '/issues/ |2 |object | |2 |5' ). lo_nodes->add( '/issues/2/ |message |str |Remove space before XXX | |0' ). lo_nodes->add( '/issues/2/ |key |str |space_before_dot | |0' ). lo_nodes->add( '/issues/2/ |start |object | | |2' ). lo_nodes->add( '/issues/2/start/ |row |num |3 | |0' ). lo_nodes->add( '/issues/2/start/ |col |num |21 | |0' ). lo_nodes->add( '/issues/2/ |end |object | | |2' ). lo_nodes->add( '/issues/2/end/ |row |num |3 | |0' ). lo_nodes->add( '/issues/2/end/ |col |num |22 | |0' ). lo_nodes->add( '/issues/2/ |filename |str |./zxxx.prog.abap | |0' ). lo_cut = zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ). lo_cut ?= lo_cut->zif_abapgit_ajson~slice( '/' ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes->sorted( ) ). " ********************************************************************** CREATE OBJECT lo_nodes. lo_nodes->add( ' | |object | | |2' ). lo_nodes->add( '/ |row |num |3 | |0' ). lo_nodes->add( '/ |col |num |21 | |0' ). lo_cut = zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ). lo_cut ?= lo_cut->zif_abapgit_ajson~slice( '/issues/2/start/' ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes->sorted( ) ). ENDMETHOD. METHOD get_value. DATA lo_cut TYPE REF TO zif_abapgit_ajson. lo_cut ?= zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ). cl_abap_unit_assert=>assert_equals( act = lo_cut->get( '/string' ) exp = 'abc' ). cl_abap_unit_assert=>assert_equals( act = lo_cut->get( '/string/' ) exp = 'abc' ). " Hmmm ? cl_abap_unit_assert=>assert_equals( act = lo_cut->get( '/boolean' ) exp = 'true' ). cl_abap_unit_assert=>assert_equals( act = lo_cut->get( '/issues/2/start/row' ) exp = '3' ). ENDMETHOD. METHOD get_node_type. DATA li_cut TYPE REF TO zif_abapgit_ajson. li_cut = zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ). cl_abap_unit_assert=>assert_equals( act = li_cut->get_node_type( '/' ) exp = 'object' ). cl_abap_unit_assert=>assert_equals( act = li_cut->get_node_type( '/string' ) exp = 'str' ). cl_abap_unit_assert=>assert_equals( act = li_cut->get_node_type( '/number' ) exp = 'num' ). cl_abap_unit_assert=>assert_equals( act = li_cut->get_node_type( '/float' ) exp = 'num' ). cl_abap_unit_assert=>assert_equals( act = li_cut->get_node_type( '/boolean' ) exp = 'bool' ). cl_abap_unit_assert=>assert_equals( act = li_cut->get_node_type( '/false' ) exp = 'bool' ). cl_abap_unit_assert=>assert_equals( act = li_cut->get_node_type( '/null' ) exp = 'null' ). cl_abap_unit_assert=>assert_equals( act = li_cut->get_node_type( '/date' ) exp = 'str' ). cl_abap_unit_assert=>assert_equals( act = li_cut->get_node_type( '/issues' ) exp = 'array' ). ENDMETHOD. METHOD get_date. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA lo_nodes TYPE REF TO lcl_nodes_helper. DATA lv_exp TYPE d. CREATE OBJECT lo_cut. lv_exp = '20200728'. CREATE OBJECT lo_nodes. lo_nodes->add( ' | |object | | |1' ). lo_nodes->add( '/ |date1 |str |2020-07-28 | |0' ). lo_cut->mt_json_tree = lo_nodes->mt_nodes. cl_abap_unit_assert=>assert_equals( act = lo_cut->zif_abapgit_ajson~get_date( '/date1' ) exp = lv_exp ). CREATE OBJECT lo_nodes. lo_nodes->add( ' | |object | | |1' ). lo_nodes->add( '/ |date1 |str |2020-07-28T01:00:00Z | |0' ). lo_cut->mt_json_tree = lo_nodes->mt_nodes. cl_abap_unit_assert=>assert_equals( act = lo_cut->zif_abapgit_ajson~get_date( '/date1' ) exp = lv_exp ). CREATE OBJECT lo_nodes. lo_nodes->add( ' | |object | | |1' ). lo_nodes->add( '/ |date1 |str |20200728 | |0' ). lo_cut->mt_json_tree = lo_nodes->mt_nodes. cl_abap_unit_assert=>assert_equals( act = lo_cut->zif_abapgit_ajson~get_date( '/date1' ) exp = '' ). ENDMETHOD. METHOD get_timestamp. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA lo_nodes TYPE REF TO lcl_nodes_helper. DATA lv_exp TYPE timestamp VALUE `20200728000000`. CREATE OBJECT lo_cut. CREATE OBJECT lo_nodes. lo_nodes->add( ' | |object | | |1' ). lo_nodes->add( '/ |timestamp|str |2020-07-28T00:00:00Z | |0' ). lo_cut->mt_json_tree = lo_nodes->mt_nodes. cl_abap_unit_assert=>assert_equals( act = lo_cut->zif_abapgit_ajson~get_timestamp( '/timestamp' ) exp = lv_exp ). ENDMETHOD. METHOD exists. DATA lo_cut TYPE REF TO zif_abapgit_ajson. lo_cut ?= zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ). cl_abap_unit_assert=>assert_equals( act = lo_cut->exists( '/string' ) exp = abap_true ). cl_abap_unit_assert=>assert_equals( act = lo_cut->exists( '/string/' ) exp = abap_true ). " mmmm ? cl_abap_unit_assert=>assert_equals( act = lo_cut->exists( '/xxx' ) exp = abap_false ). cl_abap_unit_assert=>assert_equals( act = lo_cut->exists( '/issues/2/start/row' ) exp = abap_true ). ENDMETHOD. METHOD value_integer. DATA lo_cut TYPE REF TO zif_abapgit_ajson. lo_cut ?= zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ). cl_abap_unit_assert=>assert_equals( act = lo_cut->get_integer( '/string' ) exp = 0 ). " Hmmmm ???? cl_abap_unit_assert=>assert_equals( act = lo_cut->get_integer( '/number' ) exp = 123 ). cl_abap_unit_assert=>assert_equals( act = lo_cut->get_integer( '/float' ) exp = 123 ). ENDMETHOD. METHOD value_number. DATA lo_cut TYPE REF TO zif_abapgit_ajson. lo_cut ?= zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ). cl_abap_unit_assert=>assert_equals( act = lo_cut->get_number( '/string' ) exp = 0 ). " Hmmmm ???? cl_abap_unit_assert=>assert_equals( act = lo_cut->get_number( '/number' ) exp = +'123.0' ). cl_abap_unit_assert=>assert_equals( act = lo_cut->get_number( '/float' ) exp = +'123.45' ). ENDMETHOD. METHOD value_boolean. DATA lo_cut TYPE REF TO zif_abapgit_ajson. lo_cut ?= zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ). cl_abap_unit_assert=>assert_equals( act = lo_cut->get_boolean( '/string' ) exp = abap_true ). cl_abap_unit_assert=>assert_equals( act = lo_cut->get_boolean( '/number' ) exp = abap_true ). cl_abap_unit_assert=>assert_equals( act = lo_cut->get_boolean( '/xxx' ) exp = abap_false ). cl_abap_unit_assert=>assert_equals( act = lo_cut->get_boolean( '/boolean' ) exp = abap_true ). ENDMETHOD. METHOD value_string. DATA lo_cut TYPE REF TO zif_abapgit_ajson. lo_cut ?= zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ). cl_abap_unit_assert=>assert_equals( act = lo_cut->get_string( '/string' ) exp = 'abc' ). cl_abap_unit_assert=>assert_equals( act = lo_cut->get_string( '/number' ) exp = '123' ). cl_abap_unit_assert=>assert_equals( act = lo_cut->get_string( '/xxx' ) exp = '' ). cl_abap_unit_assert=>assert_equals( act = lo_cut->get_string( '/boolean' ) exp = 'true' ). ENDMETHOD. METHOD members. DATA lt_exp TYPE string_table. DATA lo_cut TYPE REF TO zif_abapgit_ajson. lo_cut ?= zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ). CLEAR lt_exp. APPEND '1' TO lt_exp. APPEND '2' TO lt_exp. cl_abap_unit_assert=>assert_equals( act = lo_cut->members( '/issues' ) exp = lt_exp ). CLEAR lt_exp. APPEND 'col' TO lt_exp. APPEND 'row' TO lt_exp. cl_abap_unit_assert=>assert_equals( act = lo_cut->members( '/issues/1/start/' ) exp = lt_exp ). ENDMETHOD. METHOD array_to_string_table. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA lo_nodes TYPE REF TO lcl_nodes_helper. DATA lt_act TYPE string_table. DATA lt_exp TYPE string_table. CREATE OBJECT lo_nodes. lo_nodes->add( ' | |array | | |6' ). lo_nodes->add( '/ |1 |num |123 |1|0' ). lo_nodes->add( '/ |2 |num |234 |2|0' ). lo_nodes->add( '/ |3 |str |abc |3|0' ). lo_nodes->add( '/ |4 |bool |true |4|0' ). lo_nodes->add( '/ |5 |bool |false |5|0' ). lo_nodes->add( '/ |6 |null |null |6|0' ). APPEND '123' TO lt_exp. APPEND '234' TO lt_exp. APPEND 'abc' TO lt_exp. APPEND 'X' TO lt_exp. APPEND '' TO lt_exp. APPEND '' TO lt_exp. CREATE OBJECT lo_cut. lo_cut->mt_json_tree = lo_nodes->mt_nodes. lt_act = lo_cut->zif_abapgit_ajson~array_to_string_table( '/' ). cl_abap_unit_assert=>assert_equals( act = lt_act exp = lt_exp ). " negative DATA lx TYPE REF TO zcx_abapgit_ajson_error. CREATE OBJECT lo_nodes. lo_nodes->add( ' | |object | | |1' ). lo_nodes->add( '/ |a |str |abc | |0' ). lo_cut->mt_json_tree = lo_nodes->mt_nodes. TRY. lo_cut->zif_abapgit_ajson~array_to_string_table( '/x' ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error INTO lx. cl_abap_unit_assert=>assert_equals( act = lx->message exp = 'Path not found: /x' ). ENDTRY. TRY. lo_cut->zif_abapgit_ajson~array_to_string_table( '/' ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error INTO lx. cl_abap_unit_assert=>assert_equals( act = lx->message exp = 'Array expected at: /' ). ENDTRY. TRY. lo_cut->zif_abapgit_ajson~array_to_string_table( '/a' ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error INTO lx. cl_abap_unit_assert=>assert_equals( act = lx->message exp = 'Array expected at: /a' ). ENDTRY. CREATE OBJECT lo_nodes. lo_nodes->add( ' | |array | | |1' ). lo_nodes->add( '/ |1 |object | |1|0' ). lo_cut->mt_json_tree = lo_nodes->mt_nodes. TRY. lo_cut->zif_abapgit_ajson~array_to_string_table( '/' ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error INTO lx. cl_abap_unit_assert=>assert_equals( act = lx->message exp = 'Cannot convert [object] to string at [/1]' ). ENDTRY. ENDMETHOD. ENDCLASS. ********************************************************************** * JSON TO ABAP ********************************************************************** CLASS ltcl_json_to_abap DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL. PRIVATE SECTION. TYPES: BEGIN OF ty_struc, a TYPE string, b TYPE i, END OF ty_struc, tty_struc TYPE STANDARD TABLE OF ty_struc WITH DEFAULT KEY, BEGIN OF ty_complex, str TYPE string, int TYPE i, float TYPE f, bool TYPE abap_bool, obj TYPE ty_struc, tab TYPE tty_struc, oref TYPE REF TO object, date1 TYPE d, date2 TYPE d, timestamp1 TYPE timestamp, timestamp2 TYPE timestamp, timestamp3 TYPE timestamp, END OF ty_complex. METHODS find_loc FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS find_loc_negative FOR TESTING. METHODS find_loc_append FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS to_abap FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS to_abap_negative FOR TESTING. METHODS prepare_cut EXPORTING eo_cut TYPE REF TO lcl_json_to_abap e_elem TYPE ty_struc e_mock TYPE ty_complex. ENDCLASS. CLASS ltcl_json_to_abap IMPLEMENTATION. METHOD prepare_cut. e_mock-str = 'Hello'. e_mock-int = 10. e_mock-obj-a = 'World'. e_elem-a = 'One'. e_elem-b = 1. APPEND e_elem TO e_mock-tab. e_elem-a = 'two'. e_elem-b = 2. APPEND e_elem TO e_mock-tab. lcl_json_to_abap=>bind( CHANGING c_obj = e_mock co_instance = eo_cut ). ENDMETHOD. METHOD find_loc. DATA last_elem TYPE ty_struc. DATA ls_mock TYPE ty_complex. DATA lo_cut TYPE REF TO lcl_json_to_abap. prepare_cut( IMPORTING eo_cut = lo_cut e_mock = ls_mock e_elem = last_elem ). DATA lr_ref TYPE REF TO data. FIELD-SYMBOLS <val> TYPE any. lr_ref = lo_cut->find_loc( 'str' ). " Relative also works but from root ASSIGN lr_ref->* TO <val>. cl_abap_unit_assert=>assert_equals( act = <val> exp = 'Hello' ). lr_ref = lo_cut->find_loc( '/str' ). ASSIGN lr_ref->* TO <val>. cl_abap_unit_assert=>assert_equals( act = <val> exp = 'Hello' ). lr_ref = lo_cut->find_loc( '/int' ). ASSIGN lr_ref->* TO <val>. cl_abap_unit_assert=>assert_equals( act = <val> exp = 10 ). lr_ref = lo_cut->find_loc( '/obj/a' ). ASSIGN lr_ref->* TO <val>. cl_abap_unit_assert=>assert_equals( act = <val> exp = 'World' ). lr_ref = lo_cut->find_loc( iv_path = '/obj' iv_name = 'a' ). ASSIGN lr_ref->* TO <val>. cl_abap_unit_assert=>assert_equals( act = <val> exp = 'World' ). lr_ref = lo_cut->find_loc( '/obj' ). ASSIGN lr_ref->* TO <val>. cl_abap_unit_assert=>assert_equals( act = <val> exp = ls_mock-obj ). lr_ref = lo_cut->find_loc( '/' ). ASSIGN lr_ref->* TO <val>. cl_abap_unit_assert=>assert_equals( act = <val> exp = ls_mock ). lr_ref = lo_cut->find_loc( '/tab/2' ). ASSIGN lr_ref->* TO <val>. cl_abap_unit_assert=>assert_equals( act = <val> exp = last_elem ). lr_ref = lo_cut->find_loc( '/tab/1/a' ). ASSIGN lr_ref->* TO <val>. cl_abap_unit_assert=>assert_equals( act = <val> exp = 'One' ). ENDMETHOD. METHOD find_loc_append. DATA last_elem TYPE ty_struc. DATA ls_mock TYPE ty_complex. DATA lo_cut TYPE REF TO lcl_json_to_abap. DATA lx TYPE REF TO zcx_abapgit_ajson_error. prepare_cut( IMPORTING eo_cut = lo_cut e_mock = ls_mock e_elem = last_elem ). DATA lr_ref TYPE REF TO data. FIELD-SYMBOLS <val> TYPE any. lr_ref = lo_cut->find_loc( '/tab/1/a' ). ASSIGN lr_ref->* TO <val>. cl_abap_unit_assert=>assert_equals( act = <val> exp = 'One' ). cl_abap_unit_assert=>assert_equals( act = lines( ls_mock-tab ) exp = 2 ). TRY. lo_cut->find_loc( '/tab/3/a' ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error INTO lx. cl_abap_unit_assert=>assert_equals( act = lx->message exp = 'Index not found in table' ). ENDTRY. lr_ref = lo_cut->find_loc( iv_path = '/tab/3/a' iv_append_tables = abap_true ). ASSIGN lr_ref->* TO <val>. cl_abap_unit_assert=>assert_equals( act = <val> exp = '' ). cl_abap_unit_assert=>assert_equals( act = lines( ls_mock-tab ) exp = 3 ). TRY. lo_cut->find_loc( '/tab/5/a' ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error INTO lx. cl_abap_unit_assert=>assert_equals( act = lx->message exp = 'Index not found in table' ). ENDTRY. ENDMETHOD. METHOD find_loc_negative. DATA lo_cut TYPE REF TO lcl_json_to_abap. DATA lx TYPE REF TO zcx_abapgit_ajson_error. DATA ls_mock TYPE ty_complex. prepare_cut( IMPORTING e_mock = ls_mock " Must be here to keep reference alive eo_cut = lo_cut ). TRY. lo_cut->find_loc( '/xyz' ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error INTO lx. cl_abap_unit_assert=>assert_equals( act = lx->message exp = 'Path not found' ). ENDTRY. TRY. lo_cut->find_loc( '/oref/xyz' ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error INTO lx. cl_abap_unit_assert=>assert_equals( act = lx->message exp = 'Cannot assign to ref' ). ENDTRY. TRY. lo_cut->find_loc( '/tab/xyz' ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error INTO lx. cl_abap_unit_assert=>assert_equals( act = lx->message exp = 'Need index to access tables' ). ENDTRY. TRY. lo_cut->find_loc( '/tab/5' ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error INTO lx. cl_abap_unit_assert=>assert_equals( act = lx->message exp = 'Index not found in table' ). ENDTRY. ENDMETHOD. METHOD to_abap. DATA lo_cut TYPE REF TO lcl_json_to_abap. DATA ls_mock TYPE ty_complex. DATA lv_exp_date TYPE d VALUE '20200728'. DATA lv_exp_timestamp TYPE timestamp VALUE '20200728000000'. lcl_json_to_abap=>bind( CHANGING c_obj = ls_mock co_instance = lo_cut ). DATA lo_nodes TYPE REF TO lcl_nodes_helper. CREATE OBJECT lo_nodes. lo_nodes->add( '/ | |object | | ' ). lo_nodes->add( '/ |str |str |hello | ' ). lo_nodes->add( '/ |int |num |5 | ' ). lo_nodes->add( '/ |float |num |5.5 | ' ). lo_nodes->add( '/ |bool |bool |true | ' ). lo_nodes->add( '/ |obj |object | | ' ). lo_nodes->add( '/obj |a |str |world | ' ). lo_nodes->add( '/ |tab |array | | ' ). lo_nodes->add( '/tab |1 |object | |1' ). lo_nodes->add( '/tab/1 |a |str | One | ' ). lo_nodes->add( '/tab |2 |object | |2' ). lo_nodes->add( '/tab/2 |a |str | Two | ' ). lo_nodes->add( '/ |date1 |str |2020-07-28 | ' ). lo_nodes->add( '/ |date2 |str |2020-07-28T00:00:00Z | ' ). lo_nodes->add( '/ |timestamp1 |str |2020-07-28T00:00:00 | ' ). lo_nodes->add( '/ |timestamp2 |str |2020-07-28T00:00:00Z | ' ). lo_nodes->add( '/ |timestamp3 |str |2020-07-28T01:00:00+01:00 | ' ). lo_cut->to_abap( lo_nodes->sorted( ) ). cl_abap_unit_assert=>assert_equals( act = ls_mock-str exp = 'hello' ). cl_abap_unit_assert=>assert_equals( act = ls_mock-int exp = 5 ). cl_abap_unit_assert=>assert_equals( act = ls_mock-float exp = '5.5' ). cl_abap_unit_assert=>assert_equals( act = ls_mock-bool exp = abap_true ). cl_abap_unit_assert=>assert_equals( act = ls_mock-obj-a exp = 'world' ). cl_abap_unit_assert=>assert_equals( act = ls_mock-date1 exp = lv_exp_date ). cl_abap_unit_assert=>assert_equals( act = ls_mock-date2 exp = lv_exp_date ). cl_abap_unit_assert=>assert_equals( act = ls_mock-timestamp1 exp = lv_exp_timestamp ). cl_abap_unit_assert=>assert_equals( act = ls_mock-timestamp2 exp = lv_exp_timestamp ). cl_abap_unit_assert=>assert_equals( act = ls_mock-timestamp3 exp = lv_exp_timestamp ). DATA ls_elem LIKE LINE OF ls_mock-tab. cl_abap_unit_assert=>assert_equals( act = lines( ls_mock-tab ) exp = 2 ). READ TABLE ls_mock-tab INTO ls_elem INDEX 1. cl_abap_unit_assert=>assert_equals( act = ls_elem-a exp = 'One' ). READ TABLE ls_mock-tab INTO ls_elem INDEX 2. cl_abap_unit_assert=>assert_equals( act = ls_elem-a exp = 'Two' ). ENDMETHOD. METHOD to_abap_negative. DATA lo_cut TYPE REF TO lcl_json_to_abap. DATA lx TYPE REF TO zcx_abapgit_ajson_error. DATA ls_mock TYPE ty_complex. lcl_json_to_abap=>bind( CHANGING c_obj = ls_mock co_instance = lo_cut ). DATA lo_nodes TYPE REF TO lcl_nodes_helper. TRY. CREATE OBJECT lo_nodes. lo_nodes->add( '/ | |object | ' ). lo_nodes->add( '/ |str |object | ' ). lo_cut->to_abap( lo_nodes->sorted( ) ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error INTO lx. cl_abap_unit_assert=>assert_equals( act = lx->message exp = 'Expected structure' ). ENDTRY. TRY. CREATE OBJECT lo_nodes. lo_nodes->add( '/ | |object | ' ). lo_nodes->add( '/ |str |array | ' ). lo_cut->to_abap( lo_nodes->sorted( ) ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error INTO lx. cl_abap_unit_assert=>assert_equals( act = lx->message exp = 'Expected table' ). ENDTRY. TRY. CREATE OBJECT lo_nodes. lo_nodes->add( '/ | |object | ' ). lo_nodes->add( '/ |int |str |hello ' ). lo_cut->to_abap( lo_nodes->sorted( ) ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error INTO lx. cl_abap_unit_assert=>assert_equals( act = lx->message exp = 'Source is not a number' ). ENDTRY. TRY. CREATE OBJECT lo_nodes. lo_nodes->add( '/ | |object | ' ). lo_nodes->add( '/ |date1 |str |baddate ' ). lo_cut->to_abap( lo_nodes->sorted( ) ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error INTO lx. cl_abap_unit_assert=>assert_equals( act = lx->message exp = 'Unexpected date format' ). ENDTRY. ENDMETHOD. ENDCLASS. ********************************************************************** * WRITER ********************************************************************** CLASS ltcl_writer_test DEFINITION FINAL FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PRIVATE SECTION. METHODS set_ajson FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_value FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS ignore_empty FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_obj FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_tab FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_tab_hashed FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS prove_path_exists FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS delete_subtree FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS delete FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS arrays FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS arrays_negative FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS root_assignment FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_bool FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_str FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_int FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_date FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_timestamp FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS read_only FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_array_obj FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_with_type FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_with_type_slice IMPORTING io_json_in TYPE REF TO zcl_abapgit_ajson io_json_out TYPE REF TO zif_abapgit_ajson iv_path TYPE string RAISING zcx_abapgit_ajson_error. ENDCLASS. CLASS zcl_abapgit_ajson DEFINITION LOCAL FRIENDS ltcl_writer_test. CLASS ltcl_writer_test IMPLEMENTATION. METHOD prove_path_exists. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. lo_cut = zcl_abapgit_ajson=>create_empty( ). CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | ||1' ). lo_nodes_exp->add( '/ |a |object | ||1' ). lo_nodes_exp->add( '/a/ |b |object | ||1' ). lo_nodes_exp->add( '/a/b/ |c |object | ||1' ). lo_nodes_exp->add( '/a/b/c/ |d |object | ||0' ). lo_cut->prove_path_exists( '/a/b/c/d/' ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | ||1' ). lo_nodes_exp->add( '/ |a |object | ||1' ). lo_nodes_exp->add( '/a/ |b |object | ||1' ). lo_nodes_exp->add( '/a/b/ |c |object | ||1' ). lo_nodes_exp->add( '/a/b/c/ |d |object | ||1' ). lo_nodes_exp->add( '/a/b/c/d |e |object | ||0' ). lo_cut->prove_path_exists( '/a/b/c/d/e/' ). ENDMETHOD. METHOD delete_subtree. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. lo_cut = zcl_abapgit_ajson=>create_empty( ). CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | ||1' ). lo_nodes_exp->add( '/ |a |object | ||1' ). lo_nodes_exp->add( '/a/ |b |object | ||1' ). lo_nodes_exp->add( '/a/b/ |c |object | ||1' ). lo_nodes_exp->add( '/a/b/c/ |d |object | ||0' ). lo_cut->mt_json_tree = lo_nodes_exp->mt_nodes. CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | ||1' ). lo_nodes_exp->add( '/ |a |object | ||0' ). lo_cut->delete_subtree( iv_path = '/a/' iv_name = 'b' ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). ENDMETHOD. METHOD delete. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. lo_cut = zcl_abapgit_ajson=>create_empty( ). CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | ||1' ). lo_nodes_exp->add( '/ |a |object | ||1' ). lo_nodes_exp->add( '/a/ |b |object | ||1' ). lo_nodes_exp->add( '/a/b/ |c |object | ||1' ). lo_nodes_exp->add( '/a/b/c/ |d |object | ||0' ). lo_cut->mt_json_tree = lo_nodes_exp->mt_nodes. CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | ||1' ). lo_nodes_exp->add( '/ |a |object | ||0' ). lo_cut->zif_abapgit_ajson~delete( iv_path = '/a/b' ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | ||1' ). lo_nodes_exp->add( '/ |a |object | ||1' ). lo_nodes_exp->add( '/a/ |b |object | ||1' ). lo_nodes_exp->add( '/a/b/ |c |object | ||1' ). lo_nodes_exp->add( '/a/b/c/ |d |object | ||0' ). lo_cut->mt_json_tree = lo_nodes_exp->mt_nodes. CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | ||1' ). lo_nodes_exp->add( '/ |a |object | ||0' ). lo_cut->zif_abapgit_ajson~delete( iv_path = '/a/b/' ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). ENDMETHOD. METHOD set_ajson. DATA lo_nodes TYPE REF TO lcl_nodes_helper. DATA lo_src TYPE REF TO zcl_abapgit_ajson. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA li_writer TYPE REF TO zif_abapgit_ajson. lo_src = zcl_abapgit_ajson=>create_empty( ). lo_cut = zcl_abapgit_ajson=>create_empty( ). li_writer = lo_cut. " Prepare source CREATE OBJECT lo_nodes. lo_nodes->add( ' | |object | ||1' ). lo_nodes->add( '/ |x |object | ||2' ). lo_nodes->add( '/x/ |b |str |abc ||0' ). lo_nodes->add( '/x/ |c |num |10 ||0' ). lo_src->mt_json_tree = lo_nodes->mt_nodes. " Test 1 - assign root li_writer->set( iv_path = '' iv_val = lo_src ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes->sorted( ) ). li_writer->set( iv_path = '/' iv_val = lo_src ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes->sorted( ) ). " Test 2 - assign deep CREATE OBJECT lo_nodes. lo_nodes->add( ' | |object | ||1' ). lo_nodes->add( '/ |a |object | ||1' ). lo_nodes->add( '/a/ |b |object | ||1' ). lo_nodes->add( '/a/b/ |c |object | ||1' ). lo_nodes->add( '/a/b/c/ |x |object | ||2' ). lo_nodes->add( '/a/b/c/x/ |b |str |abc ||0' ). lo_nodes->add( '/a/b/c/x/ |c |num |10 ||0' ). li_writer->clear( ). li_writer->set( iv_path = '/a/b/c' iv_val = lo_src ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes->sorted( ) ). " Test 3 - assign rewrite CREATE OBJECT lo_nodes. lo_nodes->add( ' | |object | ||1' ). lo_nodes->add( '/ |a |object | ||1' ). lo_nodes->add( '/a/ |b |object | ||1' ). lo_nodes->add( '/a/b/ |x |object | ||2' ). lo_nodes->add( '/a/b/x/ |b |str |abc ||0' ). lo_nodes->add( '/a/b/x/ |c |num |10 ||0' ). li_writer->set( iv_path = '/a/b' iv_val = lo_src ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes->sorted( ) ). ENDMETHOD. METHOD set_value. DATA lo_nodes TYPE REF TO lcl_nodes_helper. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA li_writer TYPE REF TO zif_abapgit_ajson. lo_cut = zcl_abapgit_ajson=>create_empty( ). li_writer = lo_cut. " Prepare source CREATE OBJECT lo_nodes. lo_nodes->add( ' | |object | ||1' ). lo_nodes->add( '/ |x |object | ||2' ). lo_nodes->add( '/x/ |b |str |abc ||0' ). lo_nodes->add( '/x/ |c |num |10 ||0' ). li_writer->set( iv_path = '/x/b' iv_val = 'abc' ). li_writer->set( iv_path = '/x/c' iv_val = 10 ). li_writer->set( " ignore empty iv_path = '/x/d' iv_val = 0 ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes->sorted( ) ). ENDMETHOD. METHOD ignore_empty. DATA lo_nodes TYPE REF TO lcl_nodes_helper. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA li_writer TYPE REF TO zif_abapgit_ajson. lo_cut = zcl_abapgit_ajson=>create_empty( ). li_writer = lo_cut. CREATE OBJECT lo_nodes. lo_nodes->add( ' | |object | ||1' ). lo_nodes->add( '/ |a |num |1 ||0' ). li_writer->set( iv_path = '/a' iv_val = 1 ). li_writer->set( " ignore empty iv_path = '/b' iv_val = 0 ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes->sorted( ) ). CREATE OBJECT lo_nodes. lo_nodes->add( ' | |object | ||2' ). lo_nodes->add( '/ |a |num |1 ||0' ). lo_nodes->add( '/ |b |num |0 ||0' ). li_writer->set( iv_ignore_empty = abap_false iv_path = '/b' iv_val = 0 ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes->sorted( ) ). ENDMETHOD. METHOD set_obj. DATA lo_nodes TYPE REF TO lcl_nodes_helper. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA li_writer TYPE REF TO zif_abapgit_ajson. DATA: BEGIN OF ls_struc, b TYPE string VALUE 'abc', c TYPE i VALUE 10, END OF ls_struc. lo_cut = zcl_abapgit_ajson=>create_empty( ). li_writer = lo_cut. " Prepare source CREATE OBJECT lo_nodes. lo_nodes->add( ' | |object | ||1' ). lo_nodes->add( '/ |x |object | ||2' ). lo_nodes->add( '/x/ |b |str |abc ||0' ). lo_nodes->add( '/x/ |c |num |10 ||0' ). li_writer->set( iv_path = '/x' iv_val = ls_struc ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes->sorted( ) ). ENDMETHOD. METHOD set_tab. DATA lo_nodes TYPE REF TO lcl_nodes_helper. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA li_writer TYPE REF TO zif_abapgit_ajson. DATA lt_tab TYPE string_table. lo_cut = zcl_abapgit_ajson=>create_empty( ). li_writer = lo_cut. APPEND 'hello' TO lt_tab. APPEND 'world' TO lt_tab. " Prepare source CREATE OBJECT lo_nodes. lo_nodes->add( ' | |object | | |1' ). lo_nodes->add( '/ |x |array | | |2' ). lo_nodes->add( '/x/ |1 |str |hello|1|0' ). lo_nodes->add( '/x/ |2 |str |world|2|0' ). li_writer->set( iv_path = '/x' iv_val = lt_tab ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes->sorted( ) ). ENDMETHOD. METHOD set_tab_hashed. DATA lo_nodes TYPE REF TO lcl_nodes_helper. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA li_writer TYPE REF TO zif_abapgit_ajson. DATA lt_tab TYPE HASHED TABLE OF string WITH UNIQUE DEFAULT KEY. lo_cut = zcl_abapgit_ajson=>create_empty( ). li_writer = lo_cut. INSERT `hello` INTO TABLE lt_tab. INSERT `world` INTO TABLE lt_tab. " Prepare source CREATE OBJECT lo_nodes. lo_nodes->add( ' | |object | | |1' ). lo_nodes->add( '/ |x |array | | |2' ). lo_nodes->add( '/x/ |1 |str |hello|1|0' ). lo_nodes->add( '/x/ |2 |str |world|2|0' ). li_writer->set( iv_path = '/x' iv_val = lt_tab ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes->sorted( ) ). ENDMETHOD. METHOD arrays. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. DATA li_writer TYPE REF TO zif_abapgit_ajson. lo_cut = zcl_abapgit_ajson=>create_empty( ). li_writer = lo_cut. " touch CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | | |1' ). lo_nodes_exp->add( '/ |a |array | | |0' ). li_writer->touch_array( iv_path = '/a' ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). " add string CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | | |1' ). lo_nodes_exp->add( '/ |a |array | | |1' ). lo_nodes_exp->add( '/a/ |1 |str |hello|1|0' ). li_writer->push( iv_path = '/a' iv_val = 'hello' ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). " add obj CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | | |1' ). lo_nodes_exp->add( '/ |a |array | | |2' ). lo_nodes_exp->add( '/a/ |1 |str |hello|1|0' ). lo_nodes_exp->add( '/a/ |2 |object | |2|1' ). lo_nodes_exp->add( '/a/2/ |x |str |world| |0' ). DATA: BEGIN OF ls_dummy, x TYPE string VALUE 'world', END OF ls_dummy. li_writer->push( iv_path = '/a' iv_val = ls_dummy ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). " re-touch li_writer->touch_array( iv_path = '/a' ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). " re-touch with clear CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | | |1' ). lo_nodes_exp->add( '/ |a |array | | |0' ). li_writer->touch_array( iv_path = '/a' iv_clear = abap_true ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). " free-add array item (index must be updated) CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | | |1' ). lo_nodes_exp->add( '/ |a |array | | |2' ). lo_nodes_exp->add( '/a/ |1 |object | |1|1' ). lo_nodes_exp->add( '/a/1/ |x |num |123 | |0' ). lo_nodes_exp->add( '/a/ |2 |num |234 |2|0' ). li_writer->set( iv_path = '/a/1/x' iv_val = 123 ). li_writer->set( iv_path = '/a/2' iv_val = 234 ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). ENDMETHOD. METHOD arrays_negative. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA li_writer TYPE REF TO zif_abapgit_ajson. lo_cut = zcl_abapgit_ajson=>create_empty( ). li_writer = lo_cut. li_writer->touch_array( iv_path = '/a' ). li_writer->push( iv_path = '/a' iv_val = 123 ). " touch another node DATA lx TYPE REF TO zcx_abapgit_ajson_error. TRY. li_writer->touch_array( iv_path = '/a/1' ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error INTO lx. cl_abap_unit_assert=>assert_equals( act = lx->message exp = 'Path [/a/1] already used and is not array' ). ENDTRY. " push to not array TRY. li_writer->push( iv_path = '/a/1' iv_val = 123 ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error INTO lx. cl_abap_unit_assert=>assert_equals( act = lx->message exp = 'Path [/a/1] is not array' ). ENDTRY. " push to not array TRY. li_writer->push( iv_path = '/x' iv_val = 123 ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error INTO lx. cl_abap_unit_assert=>assert_equals( act = lx->message exp = 'Path [/x] does not exist' ). ENDTRY. " set array item with non-numeric key TRY. li_writer->set( iv_path = '/a/abc/x' iv_val = 123 ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error INTO lx. cl_abap_unit_assert=>assert_equals( act = lx->message exp = 'Cannot add non-numeric key [abc] to array [/a/]' ). ENDTRY. TRY. li_writer->set( iv_path = '/a/abc' iv_val = 123 ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error INTO lx. cl_abap_unit_assert=>assert_equals( act = lx->message exp = 'Cannot add non-numeric key [abc] to array [/a/]' ). ENDTRY. " set array item with zero key TRY. li_writer->set( iv_path = '/a/0' iv_val = 123 ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error INTO lx. cl_abap_unit_assert=>assert_equals( act = lx->message exp = 'Cannot add zero key to array [/a/]' ). ENDTRY. ENDMETHOD. METHOD root_assignment. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. DATA li_writer TYPE REF TO zif_abapgit_ajson. DATA: BEGIN OF ls_dummy, x TYPE string VALUE 'hello', END OF ls_dummy. lo_cut = zcl_abapgit_ajson=>create_empty( ). li_writer = lo_cut. " object CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | ||1' ). lo_nodes_exp->add( '/ |x |str |hello||0' ). li_writer->set( iv_path = '/' iv_val = ls_dummy ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). " object empty path CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | ||1' ). lo_nodes_exp->add( '/ |x |str |hello||0' ). li_writer->clear( ). li_writer->set( iv_path = '' iv_val = ls_dummy ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). " array CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |array | | |1' ). lo_nodes_exp->add( '/ |1 |str |hello|1|0' ). li_writer->clear( ). li_writer->touch_array( iv_path = '' ). li_writer->push( iv_path = '' iv_val = 'hello' ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). " value CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |str |hello||0' ). li_writer->clear( ). li_writer->set( iv_path = '' iv_val = 'hello' ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). ENDMETHOD. METHOD set_bool. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. DATA li_writer TYPE REF TO zif_abapgit_ajson. DATA lt_tab TYPE string_table. " abap_bool lo_cut = zcl_abapgit_ajson=>create_empty( ). li_writer = lo_cut. CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | ||2' ). lo_nodes_exp->add( '/ |a |bool |true ||0' ). lo_nodes_exp->add( '/ |b |bool |false ||0' ). li_writer->set_boolean( iv_path = '/a' iv_val = abap_true ). li_writer->set_boolean( iv_path = '/b' iv_val = abap_false ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). " int lo_cut = zcl_abapgit_ajson=>create_empty( ). li_writer = lo_cut. CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | ||2' ). lo_nodes_exp->add( '/ |a |bool |true ||0' ). lo_nodes_exp->add( '/ |b |bool |false ||0' ). li_writer->set_boolean( iv_path = '/a' iv_val = 1 ). li_writer->set_boolean( iv_path = '/b' iv_val = 0 ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). " tab lo_cut = zcl_abapgit_ajson=>create_empty( ). li_writer = lo_cut. CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | ||2' ). lo_nodes_exp->add( '/ |a |bool |true ||0' ). lo_nodes_exp->add( '/ |b |bool |false ||0' ). APPEND 'hello' TO lt_tab. li_writer->set_boolean( iv_path = '/a' iv_val = lt_tab ). CLEAR lt_tab. li_writer->set_boolean( iv_path = '/b' iv_val = lt_tab ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). ENDMETHOD. METHOD set_str. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. DATA li_writer TYPE REF TO zif_abapgit_ajson. DATA lv_date TYPE d. lo_cut = zcl_abapgit_ajson=>create_empty( ). li_writer = lo_cut. CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | ||3' ). lo_nodes_exp->add( '/ |a |str |123 ||0' ). lo_nodes_exp->add( '/ |b |str |X ||0' ). lo_nodes_exp->add( '/ |c |str |20200705 ||0' ). li_writer->set_string( iv_path = '/a' iv_val = '123' ). li_writer->set_string( iv_path = '/b' iv_val = abap_true ). lv_date = '20200705'. li_writer->set_string( iv_path = '/c' iv_val = lv_date ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). ENDMETHOD. METHOD set_int. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. DATA li_writer TYPE REF TO zif_abapgit_ajson. lo_cut = zcl_abapgit_ajson=>create_empty( ). li_writer = lo_cut. CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | ||1' ). lo_nodes_exp->add( '/ |a |num |123 ||0' ). li_writer->set_integer( iv_path = '/a' iv_val = 123 ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). ENDMETHOD. METHOD set_date. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. DATA li_writer TYPE REF TO zif_abapgit_ajson. DATA lv_date TYPE d. lo_cut = zcl_abapgit_ajson=>create_empty( ). li_writer = lo_cut. CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | ||1' ). lo_nodes_exp->add( '/ |a |str |2020-07-05 ||0' ). lv_date = '20200705'. li_writer->set_date( iv_path = '/a' iv_val = lv_date ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). ENDMETHOD. METHOD set_timestamp. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. DATA li_writer TYPE REF TO zif_abapgit_ajson. DATA lv_timestamp TYPE timestamp. lo_cut = zcl_abapgit_ajson=>create_empty( ). li_writer = lo_cut. CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | ||1' ). lo_nodes_exp->add( '/ |a |str |2021-05-05T12-00-00Z ||0' ). lv_timestamp = '20210505120000'. li_writer->set_timestamp( iv_path = '/a' iv_val = lv_timestamp ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). ENDMETHOD. METHOD read_only. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA li_writer TYPE REF TO zif_abapgit_ajson. lo_cut = zcl_abapgit_ajson=>create_empty( ). li_writer = lo_cut. " Prepare source li_writer->set( iv_path = '/a' iv_val = 'abc' ). li_writer->touch_array( iv_path = '/b' ). li_writer->push( iv_path = '/b' iv_val = 'abc' ). lo_cut->freeze( ). TRY. li_writer->set( iv_path = '/c' iv_val = 'abc' ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error. ENDTRY. TRY. li_writer->touch_array( iv_path = '/d' ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error. ENDTRY. TRY. li_writer->push( iv_path = '/b' iv_val = 'xyz' ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error. ENDTRY. TRY. li_writer->delete( iv_path = '/a' ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error. ENDTRY. TRY. li_writer->clear( ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_ajson_error. ENDTRY. ENDMETHOD. METHOD set_array_obj. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. DATA li_writer TYPE REF TO zif_abapgit_ajson. CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | | |1' ). lo_nodes_exp->add( '/ |issues |array | | |2' ). lo_nodes_exp->add( '/issues/ |1 |object | |1 |1' ). lo_nodes_exp->add( '/issues/ |2 |object | |2 |1' ). lo_nodes_exp->add( '/issues/1/ |end |object | | |2' ). lo_nodes_exp->add( '/issues/1/end/ |col |num |26 | |0' ). lo_nodes_exp->add( '/issues/1/end/ |row |num |4 | |0' ). lo_nodes_exp->add( '/issues/2/ |end |object | | |2' ). lo_nodes_exp->add( '/issues/2/end/ |col |num |22 | |0' ). lo_nodes_exp->add( '/issues/2/end/ |row |num |3 | |0' ). lo_cut = zcl_abapgit_ajson=>create_empty( ). li_writer = lo_cut. li_writer->touch_array( iv_path = '/issues' ). li_writer->set( iv_path = '/issues/1/end/col' iv_val = 26 ). li_writer->set( iv_path = '/issues/1/end/row' iv_val = 4 ). li_writer->set( iv_path = '/issues/2/end/col' iv_val = 22 ). li_writer->set( iv_path = '/issues/2/end/row' iv_val = 3 ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_nodes_exp->sorted( ) ). ENDMETHOD. METHOD set_with_type. DATA lo_sample TYPE REF TO zcl_abapgit_ajson. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA li_writer TYPE REF TO zif_abapgit_ajson. lo_sample = zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ). lo_cut = zcl_abapgit_ajson=>create_empty( ). li_writer = lo_cut. set_with_type_slice( io_json_in = lo_sample io_json_out = li_writer iv_path = '/' ). cl_abap_unit_assert=>assert_equals( act = lo_cut->mt_json_tree exp = lo_sample->mt_json_tree ). ENDMETHOD. METHOD set_with_type_slice. DATA lv_path TYPE string. FIELD-SYMBOLS <node> TYPE zif_abapgit_ajson=>ty_node. LOOP AT io_json_in->mt_json_tree ASSIGNING <node> WHERE path = iv_path. lv_path = <node>-path && <node>-name && '/'. CASE <node>-type. WHEN 'array'. io_json_out->touch_array( lv_path ). set_with_type_slice( io_json_in = io_json_in io_json_out = io_json_out iv_path = lv_path ). WHEN 'object'. set_with_type_slice( io_json_in = io_json_in io_json_out = io_json_out iv_path = lv_path ). WHEN OTHERS. io_json_out->set( iv_path = lv_path iv_val = <node>-value iv_node_type = <node>-type ). ENDCASE. ENDLOOP. ENDMETHOD. ENDCLASS. ********************************************************************** * INTEGRATED ********************************************************************** CLASS ltcl_integrated DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL. PRIVATE SECTION. TYPES: BEGIN OF ty_loc, row TYPE i, col TYPE i, END OF ty_loc, BEGIN OF ty_issue, message TYPE string, key TYPE string, filename TYPE string, start TYPE ty_loc, end TYPE ty_loc, END OF ty_issue, tt_issues TYPE STANDARD TABLE OF ty_issue WITH DEFAULT KEY, BEGIN OF ty_target, string TYPE string, number TYPE i, float TYPE f, boolean TYPE abap_bool, false TYPE abap_bool, null TYPE string, date TYPE string, " ??? TODO issues TYPE tt_issues, END OF ty_target. METHODS reader FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS array_index FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS array_simple FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS stringify FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS item_order_integrated FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS chaining FOR TESTING RAISING zcx_abapgit_ajson_error. ENDCLASS. CLASS ltcl_integrated IMPLEMENTATION. METHOD array_simple. DATA lt_act TYPE string_table. DATA lt_exp TYPE string_table. DATA lv_exp TYPE string. DATA lv_src TYPE string. lv_src = '['. DO 10 TIMES. IF sy-index <> 1. lv_src = lv_src && `, `. ENDIF. lv_src = lv_src && |"{ sy-index }"|. lv_exp = |{ sy-index }|. APPEND lv_exp TO lt_exp. ENDDO. lv_src = lv_src && ']'. DATA li_reader TYPE REF TO zif_abapgit_ajson. li_reader = zcl_abapgit_ajson=>parse( lv_src ). li_reader->to_abap( IMPORTING ev_container = lt_act ). cl_abap_unit_assert=>assert_equals( act = lt_act exp = lt_exp ). ENDMETHOD. METHOD array_index. DATA lt_act TYPE TABLE OF ty_loc. DATA lt_exp TYPE TABLE OF ty_loc. DATA ls_exp TYPE ty_loc. DATA lv_src TYPE string. lv_src = '['. DO 10 TIMES. IF sy-index <> 1. lv_src = lv_src && `, `. ENDIF. lv_src = lv_src && |\{ "row": { sy-index } \}|. ls_exp-row = sy-index. APPEND ls_exp TO lt_exp. ENDDO. lv_src = lv_src && ']'. DATA li_reader TYPE REF TO zif_abapgit_ajson. li_reader = zcl_abapgit_ajson=>parse( lv_src ). li_reader->to_abap( IMPORTING ev_container = lt_act ). cl_abap_unit_assert=>assert_equals( act = lt_act exp = lt_exp ). ENDMETHOD. METHOD reader. DATA lv_source TYPE string. DATA li_reader TYPE REF TO zif_abapgit_ajson. lv_source = ltcl_parser_test=>sample_json( ). li_reader = zcl_abapgit_ajson=>parse( lv_source ). cl_abap_unit_assert=>assert_equals( act = li_reader->get( '/string' ) exp = 'abc' ). DATA ls_act TYPE ty_target. DATA ls_exp TYPE ty_target. FIELD-SYMBOLS <i> LIKE LINE OF ls_exp-issues. ls_exp-string = 'abc'. ls_exp-number = 123. ls_exp-float = '123.45'. ls_exp-boolean = abap_true. ls_exp-false = abap_false. ls_exp-date = '2020-03-15'. APPEND INITIAL LINE TO ls_exp-issues ASSIGNING <i>. <i>-message = 'Indentation problem ...'. <i>-key = 'indentation'. <i>-filename = './zxxx.prog.abap'. <i>-start-row = 4. <i>-start-col = 3. <i>-end-row = 4. <i>-end-col = 26. APPEND INITIAL LINE TO ls_exp-issues ASSIGNING <i>. <i>-message = 'Remove space before XXX'. <i>-key = 'space_before_dot'. <i>-filename = './zxxx.prog.abap'. <i>-start-row = 3. <i>-start-col = 21. <i>-end-row = 3. <i>-end-col = 22. li_reader->to_abap( IMPORTING ev_container = ls_act ). cl_abap_unit_assert=>assert_equals( act = ls_act exp = ls_exp ). ENDMETHOD. METHOD stringify. DATA lo_cut TYPE REF TO zcl_abapgit_ajson. DATA li_writer TYPE REF TO zif_abapgit_ajson. DATA lv_exp TYPE string. DATA: BEGIN OF ls_dummy, x TYPE i, END OF ls_dummy. ls_dummy-x = 1. lo_cut = zcl_abapgit_ajson=>create_empty( ). li_writer = lo_cut. li_writer->set( iv_path = '/a' iv_val = 1 ). li_writer->set( iv_path = '/b' iv_val = 'B' ). li_writer->set( iv_path = '/c' iv_val = abap_true ). li_writer->set_null( iv_path = '/d' ). " simple test lv_exp = '{"a":1,"b":"B","c":true,"d":null}'. cl_abap_unit_assert=>assert_equals( act = lo_cut->stringify( ) exp = lv_exp ). li_writer->touch_array( iv_path = '/e' ). li_writer->touch_array( iv_path = '/f' ). li_writer->push( iv_path = '/f' iv_val = 5 ). li_writer->push( iv_path = '/f' iv_val = ls_dummy ). li_writer->set( iv_path = '/g' iv_val = ls_dummy ). " complex test lv_exp = '{"a":1,"b":"B","c":true,"d":null,"e":[],"f":[5,{"x":1}],"g":{"x":1}}'. cl_abap_unit_assert=>assert_equals( act = lo_cut->stringify( ) exp = lv_exp ). " complex test indented lv_exp = '{\n' && ' "a": 1,\n' && ' "b": "B",\n' && ' "c": true,\n' && ' "d": null,\n' && ' "e": [],\n' && ' "f": [\n' && ' 5,\n' && ' {\n' && ' "x": 1\n' && ' }\n' && ' ],\n' && ' "g": {\n' && ' "x": 1\n' && ' }\n' && '}'. lv_exp = replace( val = lv_exp sub = '\n' with = cl_abap_char_utilities=>newline occ = 0 ). cl_abap_unit_assert=>assert_equals( act = lo_cut->stringify( iv_indent = 2 ) exp = lv_exp ). ENDMETHOD. METHOD item_order_integrated. DATA: BEGIN OF ls_dummy, zulu TYPE string, alpha TYPE string, beta TYPE string, END OF ls_dummy. DATA lv_act TYPE string. DATA lv_exp TYPE string. DATA li_cut TYPE REF TO zif_abapgit_ajson. ls_dummy-alpha = 'a'. ls_dummy-beta = 'b'. ls_dummy-zulu = 'z'. " NAME order li_cut = zcl_abapgit_ajson=>create_empty( ). li_cut->set( iv_path = '/' iv_val = ls_dummy ). lv_act = li_cut->stringify( ). lv_exp = '{"alpha":"a","beta":"b","zulu":"z"}'. cl_abap_unit_assert=>assert_equals( act = lv_act exp = lv_exp ). " STRUC order (keep) li_cut = zcl_abapgit_ajson=>create_empty( ). li_cut->keep_item_order( ). li_cut->set( iv_path = '/' iv_val = ls_dummy ). lv_act = li_cut->stringify( ). lv_exp = '{"zulu":"z","alpha":"a","beta":"b"}'. cl_abap_unit_assert=>assert_equals( act = lv_act exp = lv_exp ). ENDMETHOD. METHOD chaining. DATA li_cut TYPE REF TO zif_abapgit_ajson. li_cut = zcl_abapgit_ajson=>create_empty( ). cl_abap_unit_assert=>assert_bound( li_cut->set( iv_path = '/a' iv_val = 1 ) ). cl_abap_unit_assert=>assert_bound( li_cut->delete( iv_path = '/a' ) ). cl_abap_unit_assert=>assert_bound( li_cut->touch_array( iv_path = '/array' ) ). cl_abap_unit_assert=>assert_bound( li_cut->push( iv_path = '/array' iv_val = '1' ) ). cl_abap_unit_assert=>assert_bound( li_cut->keep_item_order( ) ). ENDMETHOD. ENDCLASS. ********************************************************************** * ABAP TO JSON ********************************************************************** CLASS ltcl_abap_to_json DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL. PRIVATE SECTION. TYPES: BEGIN OF ty_struc, a TYPE string, b TYPE i, c TYPE abap_bool, d TYPE xsdboolean, END OF ty_struc, tt_struc TYPE STANDARD TABLE OF ty_struc WITH DEFAULT KEY, BEGIN OF ty_struc_complex. INCLUDE TYPE ty_struc. TYPES: el TYPE string, struc TYPE ty_struc, tab TYPE tt_struc, stab TYPE string_table, END OF ty_struc_complex. METHODS set_ajson FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_value_number FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_value_string FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_value_true FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_value_false FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_value_xsdboolean FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_null FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_obj FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_array FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS set_complex_obj FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS prefix FOR TESTING RAISING zcx_abapgit_ajson_error. ENDCLASS. CLASS zcl_abapgit_ajson DEFINITION LOCAL FRIENDS ltcl_abap_to_json. CLASS ltcl_abap_to_json IMPLEMENTATION. METHOD set_ajson. DATA lo_nodes TYPE REF TO lcl_nodes_helper. DATA lo_src TYPE REF TO zcl_abapgit_ajson. lo_src = zcl_abapgit_ajson=>create_empty( ). CREATE OBJECT lo_nodes. lo_nodes->add( ' | |object | ||1' ). lo_nodes->add( '/ |a |object | ||1' ). lo_nodes->add( '/a/ |b |object | ||1' ). lo_nodes->add( '/a/b/ |c |object | ||0' ). lo_src->mt_json_tree = lo_nodes->mt_nodes. DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt. lt_nodes = lcl_abap_to_json=>convert( iv_data = lo_src ). cl_abap_unit_assert=>assert_equals( act = lt_nodes exp = lo_nodes->mt_nodes ). ENDMETHOD. METHOD set_value_number. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt. " number CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |num |1 ||' ). lt_nodes = lcl_abap_to_json=>convert( iv_data = 1 ). cl_abap_unit_assert=>assert_equals( act = lt_nodes exp = lo_nodes_exp->mt_nodes ). ENDMETHOD. METHOD set_value_string. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt. " string CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |str |abc ||' ). lt_nodes = lcl_abap_to_json=>convert( iv_data = 'abc' ). cl_abap_unit_assert=>assert_equals( act = lt_nodes exp = lo_nodes_exp->mt_nodes ). ENDMETHOD. METHOD set_value_true. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt. " true CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |bool |true ||' ). lt_nodes = lcl_abap_to_json=>convert( iv_data = abap_true ). cl_abap_unit_assert=>assert_equals( act = lt_nodes exp = lo_nodes_exp->mt_nodes ). ENDMETHOD. METHOD set_value_false. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt. " false CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |bool |false ||' ). lt_nodes = lcl_abap_to_json=>convert( iv_data = abap_false ). cl_abap_unit_assert=>assert_equals( act = lt_nodes exp = lo_nodes_exp->mt_nodes ). ENDMETHOD. METHOD set_value_xsdboolean. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt. DATA lv_xsdboolean TYPE xsdboolean. CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |bool |true ||' ). lv_xsdboolean = 'X'. lt_nodes = lcl_abap_to_json=>convert( iv_data = lv_xsdboolean ). cl_abap_unit_assert=>assert_equals( act = lt_nodes exp = lo_nodes_exp->mt_nodes ). ENDMETHOD. METHOD set_null. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt. DATA lv_null_ref TYPE REF TO data. " null CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |null |null ||' ). lt_nodes = lcl_abap_to_json=>convert( iv_data = lv_null_ref ). cl_abap_unit_assert=>assert_equals( act = lt_nodes exp = lo_nodes_exp->mt_nodes ). ENDMETHOD. METHOD prefix. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt. DATA ls_prefix TYPE zif_abapgit_ajson=>ty_path_name. ls_prefix-path = '/a/'. ls_prefix-name = 'b'. CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( '/a/ |b |num |1 ||' ). lt_nodes = lcl_abap_to_json=>convert( iv_data = 1 is_prefix = ls_prefix ). cl_abap_unit_assert=>assert_equals( act = lt_nodes exp = lo_nodes_exp->mt_nodes ). ENDMETHOD. METHOD set_obj. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. DATA ls_struc TYPE ty_struc. DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt. ls_struc-a = 'abc'. ls_struc-b = 10. ls_struc-c = abap_true. ls_struc-d = 'X'. CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | ||4' ). lo_nodes_exp->add( '/ |a |str |abc ||0' ). lo_nodes_exp->add( '/ |b |num |10 ||0' ). lo_nodes_exp->add( '/ |c |bool |true ||0' ). lo_nodes_exp->add( '/ |d |bool |true ||0' ). lt_nodes = lcl_abap_to_json=>convert( iv_data = ls_struc ). cl_abap_unit_assert=>assert_equals( act = lt_nodes exp = lo_nodes_exp->mt_nodes ). ENDMETHOD. METHOD set_complex_obj. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. DATA ls_struc TYPE ty_struc_complex. DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt. FIELD-SYMBOLS <i> LIKE LINE OF ls_struc-tab. ls_struc-a = 'abc'. ls_struc-b = 10. ls_struc-c = abap_true. ls_struc-d = 'X'. ls_struc-el = 'elem'. ls_struc-struc-a = 'deep'. ls_struc-struc-b = 123. APPEND 'hello' TO ls_struc-stab. APPEND 'world' TO ls_struc-stab. APPEND INITIAL LINE TO ls_struc-tab ASSIGNING <i>. <i>-a = 'abc'. APPEND INITIAL LINE TO ls_struc-tab ASSIGNING <i>. <i>-a = 'bcd'. CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |object | ||8' ). lo_nodes_exp->add( '/ |a |str |abc ||0' ). lo_nodes_exp->add( '/ |b |num |10 ||0' ). lo_nodes_exp->add( '/ |c |bool |true ||0' ). lo_nodes_exp->add( '/ |d |bool |true ||0' ). lo_nodes_exp->add( '/ |el |str |elem ||0' ). lo_nodes_exp->add( '/ |struc |object | ||4' ). lo_nodes_exp->add( '/struc/|a |str |deep ||0' ). lo_nodes_exp->add( '/struc/|b |num |123 ||0' ). lo_nodes_exp->add( '/struc/|c |bool |false||0' ). lo_nodes_exp->add( '/struc/|d |bool |false||0' ). lo_nodes_exp->add( '/ |tab |array | | |2' ). lo_nodes_exp->add( '/tab/ |1 |object | |1|4' ). lo_nodes_exp->add( '/tab/1/|a |str |abc | |0' ). lo_nodes_exp->add( '/tab/1/|b |num |0 | |0' ). lo_nodes_exp->add( '/tab/1/|c |bool |false| |0' ). lo_nodes_exp->add( '/tab/1/|d |bool |false| |0' ). lo_nodes_exp->add( '/tab/ |2 |object | |2|4' ). lo_nodes_exp->add( '/tab/2/|a |str |bcd | |0' ). lo_nodes_exp->add( '/tab/2/|b |num |0 | |0' ). lo_nodes_exp->add( '/tab/2/|c |bool |false| |0' ). lo_nodes_exp->add( '/tab/2/|d |bool |false| |0' ). lo_nodes_exp->add( '/ |stab |array | | |2' ). lo_nodes_exp->add( '/stab/ |1 |str |hello|1|0' ). lo_nodes_exp->add( '/stab/ |2 |str |world|2|0' ). lt_nodes = lcl_abap_to_json=>convert( iv_data = ls_struc ). cl_abap_unit_assert=>assert_equals( act = lt_nodes exp = lo_nodes_exp->mt_nodes ). ENDMETHOD. METHOD set_array. DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper. DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt. DATA lt_tab TYPE TABLE OF ty_struc. FIELD-SYMBOLS <s> LIKE LINE OF lt_tab. APPEND INITIAL LINE TO lt_tab ASSIGNING <s>. <s>-a = 'abc'. <s>-b = 10. APPEND INITIAL LINE TO lt_tab ASSIGNING <s>. <s>-a = 'bcd'. <s>-b = 20. CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |array | | |2' ). lo_nodes_exp->add( '/ |1 |object | |1|4' ). lo_nodes_exp->add( '/1/ |a |str |abc | |0' ). lo_nodes_exp->add( '/1/ |b |num |10 | |0' ). lo_nodes_exp->add( '/1/ |c |bool |false| |0' ). lo_nodes_exp->add( '/1/ |d |bool |false| |0' ). lo_nodes_exp->add( '/ |2 |object | |2|4' ). lo_nodes_exp->add( '/2/ |a |str |bcd | |0' ). lo_nodes_exp->add( '/2/ |b |num |20 | |0' ). lo_nodes_exp->add( '/2/ |c |bool |false| |0' ). lo_nodes_exp->add( '/2/ |d |bool |false| |0' ). lt_nodes = lcl_abap_to_json=>convert( iv_data = lt_tab ). cl_abap_unit_assert=>assert_equals( act = lt_nodes exp = lo_nodes_exp->mt_nodes ). DATA lt_strtab TYPE string_table. APPEND 'abc' TO lt_strtab. APPEND 'bcd' TO lt_strtab. CREATE OBJECT lo_nodes_exp. lo_nodes_exp->add( ' | |array | | |2' ). lo_nodes_exp->add( '/ |1 |str |abc |1|0' ). lo_nodes_exp->add( '/ |2 |str |bcd |2|0' ). lt_nodes = lcl_abap_to_json=>convert( iv_data = lt_strtab ). cl_abap_unit_assert=>assert_equals( act = lt_nodes exp = lo_nodes_exp->mt_nodes ). ENDMETHOD. ENDCLASS.
[ 17174, 17174, 2466, 1174, 198, 9, 19255, 4146, 198, 17174, 17174, 2466, 1174, 198, 31631, 300, 565, 62, 77, 4147, 62, 2978, 525, 5550, 20032, 17941, 25261, 13, 198, 220, 44731, 44513, 13, 628, 220, 220, 220, 42865, 45079, 62, 77, 4147, 41876, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 14804, 774, 62, 77, 4147, 62, 926, 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, 220, 220, 220, 337, 36252, 50, 1598, 13, 198, 220, 220, 220, 337, 36252, 50, 23243, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 77, 4147, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 14804, 774, 62, 77, 4147, 62, 912, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 77, 4147, 62, 2978, 525, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 751, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 1279, 77, 29, 34178, 48920, 3963, 45079, 62, 77, 4147, 13, 198, 220, 220, 220, 42865, 300, 85, 62, 17197, 41876, 4731, 13, 198, 220, 220, 220, 42865, 300, 85, 62, 9630, 41876, 4731, 13, 198, 220, 220, 220, 42865, 300, 85, 62, 2875, 41876, 4731, 13, 628, 220, 220, 220, 43504, 10619, 3268, 2043, 12576, 48920, 5390, 45079, 62, 77, 4147, 24994, 3528, 15871, 1279, 77, 28401, 628, 220, 220, 220, 46341, 2043, 21628, 62, 2536, 5161, 705, 91, 6, 39319, 198, 220, 220, 220, 220, 220, 1279, 77, 29, 12, 6978, 198, 220, 220, 220, 220, 220, 1279, 77, 29, 12, 3672, 198, 220, 220, 220, 220, 220, 1279, 77, 29, 12, 4906, 198, 220, 220, 220, 220, 220, 1279, 77, 29, 12, 8367, 198, 220, 220, 220, 220, 220, 300, 85, 62, 9630, 198, 220, 220, 220, 220, 220, 300, 85, 62, 17197, 198, 220, 220, 220, 220, 220, 300, 85, 62, 2875, 13, 198, 220, 220, 220, 7102, 35, 24290, 1279, 77, 29, 12, 6978, 13, 198, 220, 220, 220, 7102, 35, 24290, 1279, 77, 29, 12, 3672, 13, 198, 220, 220, 220, 7102, 35, 24290, 1279, 77, 29, 12, 4906, 13, 198, 220, 220, 220, 7102, 35, 24290, 1279, 77, 29, 12, 8367, 13, 198, 220, 220, 220, 1279, 77, 29, 12, 9630, 796, 300, 85, 62, 9630, 13, 198, 220, 220, 220, 1279, 77, 29, 12, 17197, 796, 300, 85, 62, 17197, 13, 198, 220, 220, 220, 1279, 77, 29, 12, 2875, 796, 300, 85, 62, 2875, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 23243, 13, 198, 220, 220, 220, 374, 83, 62, 77, 4147, 796, 45079, 62, 77, 4147, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1598, 13, 198, 220, 220, 220, 30301, 1503, 45079, 62, 77, 4147, 13, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198, 198, 17174, 17174, 2466, 1174, 198, 9, 350, 27415, 1137, 198, 17174, 17174, 2466, 1174, 198, 198, 31631, 300, 83, 565, 62, 48610, 62, 9288, 5550, 20032, 17941, 25261, 198, 220, 7473, 43001, 2751, 198, 220, 45698, 42, 49277, 43638, 5805, 7597, 198, 220, 360, 4261, 6234, 6006, 9863, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 6291, 62, 17752, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 25512, 1352, 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, 81, 85, 62, 17752, 8, 41876, 4731, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 6941, 62, 8968, 41876, 4526, 37, 5390, 300, 565, 62, 17752, 62, 48610, 13, 198, 220, 220, 220, 42865, 6941, 62, 77, 4147, 41876, 4526, 37, 5390, 300, 565, 62, 77, 4147, 62, 2978, 525, 13, 628, 220, 220, 220, 337, 36252, 50, 9058, 13, 198, 220, 220, 220, 337, 36252, 50, 21136, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 198, 220, 220, 220, 337, 36252, 50, 21136, 62, 8841, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 198, 220, 220, 220, 337, 36252, 50, 21136, 62, 17618, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 198, 220, 220, 220, 337, 36252, 50, 21136, 62, 22468, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 198, 220, 220, 220, 337, 36252, 50, 21136, 62, 2127, 21052, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 198, 220, 220, 220, 337, 36252, 50, 21136, 62, 9562, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 198, 220, 220, 220, 337, 36252, 50, 21136, 62, 8423, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 198, 220, 220, 220, 337, 36252, 50, 21136, 62, 4475, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 198, 220, 220, 220, 337, 36252, 50, 21136, 62, 49382, 62, 27160, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 198, 220, 220, 220, 337, 36252, 50, 21136, 62, 18224, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 48610, 62, 9288, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 9058, 13, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 6941, 62, 8968, 13, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 6941, 62, 77, 4147, 13, 198, 220, 23578, 49273 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class zcl_adash_api definition public final create public . public section. interfaces zif_swag_handler. methods run_tests importing !type type trobjtype !component type sobj_name !with_coverage type abap_bool returning value(response) type zsbc_adash_api_test_response. methods add_for_tests importing !type type trobjtype !component type sobj_name. protected section. private section. CONSTANTS TYPE_PACKAGE TYPE string VALUE 'DEVC' ##NO_TEXT. methods getsetup importing i_type type trobjtype i_component type sobj_name i_with_coverage type any optional returning value(r_newsetup) type ztbc_adash_setup. methods filter_parents_n_sub_subnodes importing i_setup type ztbc_adash_setup changing c_response type zsbc_adash_api_test_response. methods list_my_level_only importing i_setup type ztbc_adash_setup changing c_response type zsbc_adash_api_test_response. methods delete_objects_from_subnodes importing setup type ztbc_adash_setup changing response type zsbc_adash_api_test_response. methods list_packages_first changing response type zsbc_adash_api_test_response. methods prepare_package_response importing setup type ztbc_adash_setup changing response type zsbc_adash_api_test_response. methods set_status changing response type zsbc_adash_api_test_response. ENDCLASS. CLASS ZCL_ADASH_API IMPLEMENTATION. method add_for_tests. data(setup) = getsetup( i_type = type i_component = component i_with_coverage = abap_true ). modify ztbc_adash_setup from setup. if setup-type = TYPE_PACKAGE. data(as_package) = conv devclass( setup-name ). call function 'ZDASH_BG_PACKAGE_RUNNER' starting new task 'ADASH_PACKAGE_FG' exporting package = as_package. endif. return. endmethod. method run_tests. data(setup) = getsetup( i_type = type i_component = component i_with_coverage = with_coverage ). data(runner) = new zcl_adash_component_runner( guid_filter = setup-current_execution_guid component = setup-name type = setup-type with_coverage = setup-with_coverage ). data(results) = runner->run_and_return_results( ). response-tests = results->get_adash_test_method_results( ). response-sumaries = results->get_adash_results_summary( ). set_status( changing response = response ). data(persistence_layer) = zcl_adash_db_update_factory=>new_light_update( ). persistence_layer->persist( results ). if setup-type = TYPE_PACKAGE. prepare_package_response( exporting setup = setup changing response = response ). endif. endmethod. method delete_objects_from_subnodes. delete response-sumaries where ( parent_package = setup-name and type <> type_package ). endmethod. method filter_parents_n_sub_subnodes. delete c_response-sumaries "parent packages where ( type = 'DEVC ' and parent_package <> i_setup-name and package_own <> i_setup-name ). endmethod. method getsetup. data(upper_type) = |{ !i_type case = upper }|. data(upper_name) = |{ !i_component case = upper }|. r_newsetup = value ztbc_adash_setup( current_execution_guid = 'LAST' name = upper_name type = upper_type "@TODO: from api param keep_history = '' "experimental with_coverage = i_with_coverage "playing safe max_duration_allowed = if_aunit_attribute_enums=>c_duration-short max_risk_level_allowed = if_aunit_attribute_enums=>c_risk_level-harmless ). endmethod. method list_my_level_only. filter_parents_n_sub_subnodes( exporting i_setup = i_setup changing c_response = c_response ). endmethod. method list_packages_first. data(not_packages) = value zsbc_adash_result_summary_t( for summary in response-sumaries where ( type <> type_package ) ( summary ) ). delete response-sumaries where type <> type_package. sort response-sumaries by name ascending. append lines of not_packages to response-sumaries. endmethod. method prepare_package_response. list_my_level_only( exporting i_setup = setup changing c_response = response ). delete_objects_from_subnodes( exporting setup = setup changing response = response ). list_packages_first( changing response = response ). endmethod. method set_status. response-status = cond #( when response-tests is initial then 0 "neutral when value #( response-tests[ status = -1 ] optional ) is initial then 1 "passed else -1 "failed ). endmethod. method zif_swag_handler~meta. append value #( summary = 'Execute tests on given a given component and return results' url-regex = '/(\w*)/(\w*)/test' url-group_names = value #( ( 'TYPE' ) ( 'COMPONENT' ) ) method = zcl_swag=>c_method-get handler = 'RUN_TESTS' ) to rt_meta. append value #( summary = 'Add a component for monitoring' url-regex = '/(\w*)/(\w*)/add' url-group_names = value #( ( 'TYPE' ) ( 'COMPONENT' ) ) method = zcl_swag=>c_method-get handler = 'ADD_FOR_TESTS' ) to rt_meta. endmethod. ENDCLASS.
[ 4871, 1976, 565, 62, 324, 1077, 62, 15042, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 1171, 764, 628, 220, 1171, 2665, 13, 198, 220, 220, 220, 20314, 1976, 361, 62, 2032, 363, 62, 30281, 13, 628, 220, 220, 220, 5050, 1057, 62, 41989, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 4906, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 4161, 50007, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 42895, 220, 220, 220, 220, 220, 2099, 27355, 73, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 4480, 62, 1073, 1857, 220, 2099, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 8024, 1988, 7, 26209, 8, 2099, 1976, 82, 15630, 62, 324, 1077, 62, 15042, 62, 9288, 62, 26209, 13, 628, 220, 220, 220, 5050, 751, 62, 1640, 62, 41989, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4906, 220, 220, 220, 220, 220, 2099, 4161, 50007, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 42895, 2099, 27355, 73, 62, 3672, 13, 628, 628, 220, 6861, 2665, 13, 198, 220, 2839, 2665, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 41876, 62, 47, 8120, 11879, 41876, 4731, 26173, 8924, 705, 7206, 15922, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 5050, 651, 40406, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 4906, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 4161, 50007, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 42895, 220, 220, 220, 220, 220, 220, 2099, 27355, 73, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 4480, 62, 1073, 1857, 220, 220, 2099, 597, 11902, 198, 220, 220, 220, 220, 220, 8024, 1988, 7, 81, 62, 3605, 40406, 8, 2099, 1976, 83, 15630, 62, 324, 1077, 62, 40406, 13, 198, 220, 220, 220, 5050, 8106, 62, 23743, 62, 77, 62, 7266, 62, 7266, 77, 4147, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 40406, 220, 220, 220, 2099, 1976, 83, 15630, 62, 324, 1077, 62, 40406, 198, 220, 220, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 220, 220, 269, 62, 26209, 2099, 1976, 82, 15630, 62, 324, 1077, 62, 15042, 62, 9288, 62, 26209, 13, 198, 220, 220, 220, 5050, 1351, 62, 1820, 62, 5715, 62, 8807, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 40406, 220, 220, 220, 2099, 1976, 83, 15630, 62, 324, 1077, 62, 40406, 198, 220, 220, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 220, 220, 269, 62, 26209, 2099, 1976, 82, 15630, 62, 324, 1077, 62, 15042, 62, 9288, 62, 26209, 13, 198, 220, 220, 220, 5050, 12233, 62, 48205, 62, 6738, 62, 7266, 77, 4147, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 9058, 220, 220, 220, 2099, 1976, 83, 15630, 62, 324, 1077, 62, 40406, 198, 220, 220, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 2099, 1976, 82, 15630, 62, 324, 1077, 62, 15042, 62, 9288, 62, 26209, 13, 198, 220, 220, 220, 5050, 1351, 62, 43789, 62, 11085, 198, 220, 220, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 2099, 1976, 82, 15630, 62, 324, 1077, 62, 15042, 62, 9288, 62, 26209, 13, 198, 220, 220, 220, 5050, 8335, 62, 26495, 62, 26209, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 9058, 220, 220, 220, 2099, 1976, 83, 15630, 62, 324, 1077, 62, 40406, 198, 220, 220, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 2099, 1976, 82, 15630, 62, 324, 1077, 62, 15042, 62, 9288, 62, 26209, 13, 198, 220, 220, 220, 5050, 900, 62, 13376, 198, 220, 220, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 2099, 1976, 82, 15630, 62, 324, 1077, 62, 15042, 62, 9288, 62, 26209, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 2885, 11211, 62, 17614, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 2446, 751, 62, 1640, 62, 41989, 13, 628, 198, 220, 220, 220, 1366, 7, 40406, 8, 796, 651, 40406, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 4906, 220, 220, 220, 220, 220, 796, 2099, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 42895, 796, 7515, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 4480, 62, 1073, 1857, 796, 450, 499, 62, 7942, 220, 6739, 628, 220, 220, 220, 13096, 1976, 83, 15630, 62, 324, 1077, 62, 40406, 422, 9058, 13, 628, 220, 220, 220, 611, 9058, 12, 4906, 796, 41876, 62, 47, 8120, 11879, 13, 198, 220, 220, 220, 220, 220, 1366, 7, 292, 62, 26495, 8, 796, 3063, 1614, 4871, 7, 9058, 12, 3672, 6739, 198, 220, 220, 220, 220, 220, 869, 2163, 705, 57, 35, 11211, 62, 40469, 62, 47, 8120, 11879, 62, 49, 4944, 21479, 6, 198, 220, 220, 220, 220, 220, 220, 220, 3599, 649, 4876, 705, 2885, 11211, 62, 47, 8120, 11879, 62, 30386, 6, 198, 220, 220, 220, 220, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5301, 796, 355, 62, 26495, 13, 198, 220, 220, 220, 45762, 13, 628, 198, 220, 220, 220, 1441, 13, 628, 220, 886, 24396, 13, 628, 220, 2446, 1057, 62, 41989, 13, 628, 220, 220, 220, 1366, 7, 40406, 8, 796, 651, 40406, 7, 198, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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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 ]
*&---------------------------------------------------------------------* *& Include ZAL30_MAIN_CONF_C02 *&---------------------------------------------------------------------* CLASS lcl_event_toolbar_fields DEFINITION. PUBLIC SECTION. METHODS: on_function_selected FOR EVENT function_selected OF cl_gui_toolbar IMPORTING fcode. METHODS: on_dropdown_clicked FOR EVENT dropdown_clicked OF cl_gui_toolbar IMPORTING fcode posx posy. ENDCLASS. "lcl_event_toolbar_fields DEFINITION *----------------------------------------------------------------------* * CLASS lcl_event_toolbar_fields IMPLEMENTATION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS lcl_event_toolbar_fields IMPLEMENTATION. METHOD on_function_selected. CASE fcode. WHEN cs_toolbar_functions-check_dict. " Check dictionary PERFORM check_dictionary. WHEN cs_toolbar_functions-sync_dict. " Adjust from the dictionary PERFORM sync_dictionary. WHEN cs_toolbar_functions-virtual_field. " Add virtual field PERFORM show_dynp_add_virtual_field. WHEN cs_toolbar_functions-delete_field. " Delete fiel PERFORM delete_fields. WHEN OTHERS. * Si el código de boton contiene el identificador de los menus del idioma * entonces es un cambio de idioma. IF fcode CS cs_toolbar_functions-id_lang_button. PERFORM change_language USING fcode. ENDIF. ENDCASE. ENDMETHOD. "on_function_selected METHOD on_dropdown_clicked. IF fcode CS cs_toolbar_functions-id_lang_button. PERFORM submenu_languages USING posx posy. ENDIF. ENDMETHOD. "on_dropdown_clicked ENDCLASS. "lcl_event_toolbar_fields IMPLEMENTATION
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1168, 1847, 1270, 62, 5673, 1268, 62, 10943, 37, 62, 34, 2999, 198, 9, 5, 10097, 30934, 9, 198, 31631, 300, 565, 62, 15596, 62, 25981, 5657, 62, 25747, 5550, 20032, 17941, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 319, 62, 8818, 62, 34213, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 49261, 2163, 62, 34213, 3963, 537, 62, 48317, 62, 25981, 5657, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 277, 8189, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 319, 62, 14781, 2902, 62, 565, 9484, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 49261, 4268, 2902, 62, 565, 9484, 3963, 537, 62, 48317, 62, 25981, 5657, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 277, 8189, 1426, 87, 1426, 88, 13, 198, 198, 10619, 31631, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 75, 565, 62, 15596, 62, 25981, 5657, 62, 25747, 5550, 20032, 17941, 198, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 565, 62, 15596, 62, 25981, 5657, 62, 25747, 30023, 2538, 10979, 6234, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 31631, 300, 565, 62, 15596, 62, 25981, 5657, 62, 25747, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 319, 62, 8818, 62, 34213, 13, 198, 220, 220, 220, 42001, 277, 8189, 13, 198, 220, 220, 220, 220, 220, 42099, 50115, 62, 25981, 5657, 62, 12543, 2733, 12, 9122, 62, 11600, 13, 366, 6822, 22155, 198, 220, 220, 220, 220, 220, 220, 220, 19878, 21389, 2198, 62, 67, 14188, 13, 198, 220, 220, 220, 220, 220, 42099, 50115, 62, 25981, 5657, 62, 12543, 2733, 12, 27261, 62, 11600, 13, 366, 20292, 422, 262, 22155, 198, 220, 220, 220, 220, 220, 220, 220, 19878, 21389, 17510, 62, 67, 14188, 13, 198, 220, 220, 220, 220, 220, 42099, 50115, 62, 25981, 5657, 62, 12543, 2733, 12, 32844, 62, 3245, 13, 366, 3060, 7166, 2214, 198, 220, 220, 220, 220, 220, 220, 220, 19878, 21389, 905, 62, 67, 2047, 79, 62, 2860, 62, 32844, 62, 3245, 13, 198, 220, 220, 220, 220, 220, 42099, 50115, 62, 25981, 5657, 62, 12543, 2733, 12, 33678, 62, 3245, 13, 366, 23520, 277, 8207, 198, 220, 220, 220, 220, 220, 220, 220, 19878, 21389, 12233, 62, 25747, 13, 198, 220, 220, 220, 220, 220, 42099, 440, 4221, 4877, 13, 198, 9, 15638, 1288, 269, 10205, 12894, 78, 390, 10214, 261, 542, 72, 1734, 1288, 1852, 811, 7079, 390, 22346, 26798, 1619, 46205, 6086, 198, 9, 920, 261, 728, 1658, 555, 269, 4131, 952, 390, 46205, 6086, 13, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 277, 8189, 9429, 50115, 62, 25981, 5657, 62, 12543, 2733, 12, 312, 62, 17204, 62, 16539, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19878, 21389, 1487, 62, 16129, 1294, 2751, 277, 8189, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 34, 11159, 13, 198, 220, 23578, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 261, 62, 8818, 62, 34213, 198, 220, 337, 36252, 319, 62, 14781, 2902, 62, 565, 9484, 13, 198, 220, 220, 220, 16876, 277, 8189, 9429, 50115, 62, 25981, 5657, 62, 12543, 2733, 12, 312, 62, 17204, 62, 16539, 13, 198, 220, 220, 220, 220, 220, 19878, 21389, 850, 26272, 62, 75, 33213, 1294, 2751, 1426, 87, 1426, 88, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 261, 62, 14781, 2902, 62, 565, 9484, 628, 198, 10619, 31631, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 75, 565, 62, 15596, 62, 25981, 5657, 62, 25747, 30023, 2538, 10979, 6234, 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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UBLIC SECTION. CLASS-METHODS get_instance RETURNING VALUE(ro_sender) TYPE REF TO zcl_gtt_mia_ctp_snd_sh_to_dlh RAISING cx_udm_message . METHODS prepare_idoc_data IMPORTING !io_ship_data TYPE REF TO zcl_gtt_mia_ctp_shipment_data RAISING cx_udm_message . PROTECTED SECTION. METHODS get_aotype_restriction_id REDEFINITION. METHODS get_object_type REDEFINITION. PRIVATE SECTION. CONSTANTS: BEGIN OF cs_mapping, vbeln TYPE /saptrx/paramname VALUE 'YN_DLV_NO', shp_count TYPE /saptrx/paramname VALUE 'YN_SHP_LINE_COUNT', shp_tknum TYPE /saptrx/paramname VALUE 'YN_SHP_NO', shp_fstop TYPE /saptrx/paramname VALUE 'YN_SHP_FIRST_STOP', shp_lstop TYPE /saptrx/paramname VALUE 'YN_SHP_LAST_STOP', shp_lstop_rec_loc TYPE /saptrx/paramname VALUE 'YN_SHP_LAST_STOP_REC_LOC', shp_lstop_rec_loc_typ TYPE /saptrx/paramname VALUE 'YN_SHP_LAST_STOP_REC_LOC_TYP', pod_relevant TYPE /saptrx/paramname VALUE 'YN_DL_POD_RELEVANT', END OF cs_mapping . METHODS fill_idoc_appobj_ctabs IMPORTING !is_aotype TYPE zif_gtt_mia_ctp_tor_types=>ts_aotype !iv_vbeln TYPE likp-vbeln CHANGING !cs_idoc_data TYPE zif_gtt_mia_ctp_tor_types=>ts_idoc_data . METHODS fill_idoc_control_data IMPORTING !is_aotype TYPE zif_gtt_mia_ctp_tor_types=>ts_aotype !is_ship TYPE zcl_gtt_mia_ctp_shipment_data=>ts_shipment_merge !is_likp TYPE zcl_gtt_mia_ctp_shipment_data=>ts_likpex !is_stops TYPE zcl_gtt_mia_ctp_shipment_data=>ts_stops CHANGING !cs_idoc_data TYPE zif_gtt_mia_ctp_tor_types=>ts_idoc_data RAISING cx_udm_message . METHODS fill_idoc_exp_event IMPORTING !is_aotype TYPE zif_gtt_mia_ctp_tor_types=>ts_aotype !is_ship TYPE zcl_gtt_mia_ctp_shipment_data=>ts_shipment_merge !is_likp TYPE zcl_gtt_mia_ctp_shipment_data=>ts_likpex !is_stops TYPE zcl_gtt_mia_ctp_shipment_data=>ts_stops CHANGING !cs_idoc_data TYPE zif_gtt_mia_ctp_tor_types=>ts_idoc_data RAISING cx_udm_message . METHODS fill_idoc_tracking_id IMPORTING !is_aotype TYPE zif_gtt_mia_ctp_tor_types=>ts_aotype !is_ship TYPE zcl_gtt_mia_ctp_shipment_data=>ts_shipment_merge !is_likp TYPE zcl_gtt_mia_ctp_shipment_data=>ts_likpex CHANGING !cs_idoc_data TYPE zif_gtt_mia_ctp_tor_types=>ts_idoc_data RAISING cx_udm_message . METHODS get_shipment_stop IMPORTING !is_stops TYPE zcl_gtt_mia_ctp_shipment_data=>ts_stops !is_vbfa TYPE zcl_gtt_mia_ctp_shipment_data=>ts_vbfaex !iv_arrival TYPE abap_bool EXPORTING !es_stop TYPE zif_gtt_mia_app_types=>ts_stops RETURNING VALUE(rv_stopid) TYPE zif_gtt_mia_app_types=>tv_stopid RAISING cx_udm_message . METHODS is_pod_relevant_delivery IMPORTING !is_ship TYPE zcl_gtt_mia_ctp_shipment_data=>ts_shipment_merge !is_likp TYPE zcl_gtt_mia_ctp_shipment_data=>ts_likpex !it_stops TYPE zif_gtt_mia_app_types=>tt_stops RETURNING VALUE(rv_result) TYPE zif_gtt_mia_ef_types=>tv_condition . METHODS is_pod_relevant_stop IMPORTING !is_ship TYPE zcl_gtt_mia_ctp_shipment_data=>ts_shipment_merge !is_likp TYPE zcl_gtt_mia_ctp_shipment_data=>ts_likpex !is_stops TYPE zif_gtt_mia_app_types=>ts_stops RETURNING VALUE(rv_result) TYPE abap_bool . ENDCLASS. CLASS ZCL_GTT_MIA_CTP_SND_SH_TO_DLH IMPLEMENTATION. METHOD fill_idoc_appobj_ctabs. cs_idoc_data-appobj_ctabs = VALUE #( BASE cs_idoc_data-appobj_ctabs ( trxservername = cs_idoc_data-trxserv-trx_server_id appobjtype = is_aotype-aot_type appobjid = |{ iv_vbeln }| ) ). ENDMETHOD. METHOD fill_idoc_control_data. DATA: lt_control TYPE /saptrx/bapi_trk_control_tab, lv_count TYPE i VALUE 0. " DLV Head data (obligatory) lt_control = VALUE #( ( paramname = cs_mapping-vbeln value = is_likp-vbeln ) ( paramname = cs_mapping-pod_relevant value = is_pod_relevant_delivery( is_ship = is_ship is_likp = is_likp it_stops = is_stops-stops ) ) ( paramname = zif_gtt_mia_ef_constants=>cs_system_fields-actual_bisiness_timezone value = zcl_gtt_mia_tools=>get_system_time_zone( ) ) ( paramname = zif_gtt_mia_ef_constants=>cs_system_fields-actual_bisiness_datetime value = |0{ sy-datum }{ sy-uzeit }| ) ( paramname = zif_gtt_mia_ef_constants=>cs_system_fields-actual_technical_timezone value = zcl_gtt_mia_tools=>get_system_time_zone( ) ) ( paramname = zif_gtt_mia_ef_constants=>cs_system_fields-actual_technical_datetime value = |0{ sy-datum }{ sy-uzeit }| ) ). LOOP AT is_ship-likp\vbfa[ is_likp ] ASSIGNING FIELD-SYMBOL(<ls_vbfa>). ADD 1 TO lv_count. get_shipment_stop( EXPORTING is_stops = is_stops is_vbfa = <ls_vbfa> iv_arrival = abap_true IMPORTING es_stop = DATA(ls_lstop) ). lt_control = VALUE #( BASE lt_control ( paramindex = lv_count paramname = cs_mapping-shp_count value = |{ lv_count }| ) ( paramindex = lv_count paramname = cs_mapping-shp_tknum value = <ls_vbfa>-vbeln ) ( paramindex = lv_count paramname = cs_mapping-shp_fstop value = get_shipment_stop( EXPORTING is_stops = is_stops is_vbfa = <ls_vbfa> iv_arrival = abap_false ) ) ( paramindex = lv_count paramname = cs_mapping-shp_lstop value = ls_lstop-stopid ) ( paramindex = lv_count paramname = cs_mapping-shp_lstop_rec_loc value = zcl_gtt_mia_tools=>get_pretty_location_id( iv_locid = ls_lstop-locid iv_loctype = ls_lstop-loctype ) ) ( paramindex = lv_count paramname = cs_mapping-shp_lstop_rec_loc_typ value = ls_lstop-loctype ) ). ENDLOOP. IF sy-subrc <> 0. lt_control = VALUE #( BASE lt_control ( paramindex = '1' paramname = cs_mapping-shp_count value = '' ) ). ENDIF. " fill technical data into all control data records LOOP AT lt_control ASSIGNING FIELD-SYMBOL(<ls_control>). <ls_control>-appsys = mv_appsys. <ls_control>-appobjtype = is_aotype-aot_type. <ls_control>-appobjid = is_likp-vbeln. ENDLOOP. cs_idoc_data-control = VALUE #( BASE cs_idoc_data-control ( LINES OF lt_control ) ). ENDMETHOD. METHOD fill_idoc_exp_event. DATA: lt_exp_event TYPE /saptrx/bapi_trk_ee_tab, lt_exp_event_dlv TYPE /saptrx/bapi_trk_ee_tab, lv_milestonenum TYPE /saptrx/seq_num VALUE 1, lv_tknum TYPE tknum. zcl_gtt_mia_ctp_tools=>get_delivery_head_planned_evt( EXPORTING iv_appsys = mv_appsys is_aotype = is_aotype is_likp = CORRESPONDING #( is_likp ) it_lips = CORRESPONDING #( is_ship-lips ) IMPORTING et_exp_event = lt_exp_event_dlv ). LOOP AT lt_exp_event_dlv TRANSPORTING NO FIELDS WHERE ( milestone = zif_gtt_mia_app_constants=>cs_milestone-sh_arrival OR milestone = zif_gtt_mia_app_constants=>cs_milestone-sh_departure OR milestone = zif_gtt_mia_app_constants=>cs_milestone-sh_pod ). DELETE lt_exp_event_dlv. ENDLOOP. LOOP AT is_stops-watching ASSIGNING FIELD-SYMBOL(<ls_watching>) WHERE vbeln = is_likp-vbeln. IF lv_tknum <> <ls_watching>-stopid(10). lv_tknum = <ls_watching>-stopid(10). lv_milestonenum = 1. ENDIF. READ TABLE is_stops-stops ASSIGNING FIELD-SYMBOL(<ls_stops>) WITH KEY stopid = <ls_watching>-stopid loccat = <ls_watching>-loccat. IF sy-subrc = 0. " Departure / Arrival lt_exp_event = VALUE #( BASE lt_exp_event ( milestone = COND #( WHEN <ls_watching>-loccat = zif_gtt_mia_app_constants=>cs_loccat-departure THEN zif_gtt_mia_app_constants=>cs_milestone-sh_departure ELSE zif_gtt_mia_app_constants=>cs_milestone-sh_arrival ) locid2 = <ls_stops>-stopid loctype = <ls_stops>-loctype locid1 = zcl_gtt_mia_tools=>get_pretty_location_id( iv_locid = <ls_stops>-locid iv_loctype = <ls_stops>-loctype ) evt_exp_datetime = <ls_stops>-pln_evt_datetime evt_exp_tzone = <ls_stops>-pln_evt_timezone milestonenum = lv_milestonenum ) ). ADD 1 TO lv_milestonenum. " POD IF <ls_stops>-loccat = zif_gtt_mia_app_constants=>cs_loccat-arrival AND <ls_stops>-loctype = zif_gtt_mia_ef_constants=>cs_loc_types-plant AND is_pod_relevant_stop( is_ship = is_ship is_likp = is_likp is_stops = <ls_stops> ) = abap_true. lt_exp_event = VALUE #( BASE lt_exp_event ( milestone = zif_gtt_mia_app_constants=>cs_milestone-sh_pod locid2 = <ls_stops>-stopid loctype = <ls_stops>-loctype locid1 = zcl_gtt_mia_tools=>get_pretty_location_id( iv_locid = <ls_stops>-locid iv_loctype = <ls_stops>-loctype ) evt_exp_datetime = <ls_stops>-pln_evt_datetime evt_exp_tzone = <ls_stops>-pln_evt_timezone milestonenum = lv_milestonenum ) ). ADD 1 TO lv_milestonenum. ENDIF. ELSE. MESSAGE e005(zgtt_mia) WITH |{ <ls_watching>-stopid }{ <ls_watching>-loccat }| 'STOPS' INTO DATA(lv_dummy). zcl_gtt_mia_tools=>throw_exception( ). ENDIF. ENDLOOP. " fill sequence number in DLV events lv_milestonenum = zcl_gtt_mia_tools=>get_next_sequence_id( it_expeventdata = lt_exp_event ). LOOP AT lt_exp_event_dlv ASSIGNING FIELD-SYMBOL(<ls_exp_event_dlv>). <ls_exp_event_dlv>-milestonenum = lv_milestonenum. ADD 1 TO lv_milestonenum. ENDLOOP. lt_exp_event = VALUE #( BASE lt_exp_event ( LINES OF lt_exp_event_dlv ) ). IF lt_exp_event[] IS INITIAL. lt_exp_event = VALUE #( ( milestone = '' locid2 = '' loctype = '' locid1 = '' evt_exp_datetime = '000000000000000' evt_exp_tzone = '' ) ). ENDIF. LOOP AT lt_exp_event ASSIGNING FIELD-SYMBOL(<ls_exp_event>). <ls_exp_event>-appsys = mv_appsys. <ls_exp_event>-appobjtype = is_aotype-aot_type. <ls_exp_event>-appobjid = is_likp-vbeln. <ls_exp_event>-language = sy-langu. <ls_exp_event>-evt_exp_tzone = zcl_gtt_mia_tools=>get_system_time_zone( ). ENDLOOP. cs_idoc_data-exp_event = VALUE #( BASE cs_idoc_data-exp_event ( LINES OF lt_exp_event ) ). ENDMETHOD. METHOD fill_idoc_tracking_id. "another tip is that: for tracking ID type 'SHIPMENT_ORDER' of delivery header, "and for tracking ID type 'RESOURCE' of shipment header, "DO NOT enable START DATE and END DATE DATA: lt_tracking_id TYPE /saptrx/bapi_trk_trkid_tab. " Delivery Header lt_tracking_id = VALUE #( ( trxcod = zif_gtt_mia_app_constants=>cs_trxcod-dl_number trxid = is_likp-vbeln timzon = zcl_gtt_mia_tools=>get_system_time_zone( ) ) ). " Shipment LOOP AT is_ship-likp\likp_dlt[ is_likp ] ASSIGNING FIELD-SYMBOL(<ls_likp_dlt>). IF <ls_likp_dlt>-updkz = zif_gtt_mia_ef_constants=>cs_change_mode-insert OR <ls_likp_dlt>-updkz = zif_gtt_mia_ef_constants=>cs_change_mode-delete. lt_tracking_id = VALUE #( BASE lt_tracking_id ( trxcod = zif_gtt_mia_app_constants=>cs_trxcod-sh_number trxid = <ls_likp_dlt>-tknum action = COND #( WHEN <ls_likp_dlt>-updkz = zif_gtt_mia_ef_constants=>cs_change_mode-delete THEN zif_gtt_mia_ef_constants=>cs_change_mode-delete ) ) ). ENDIF. ENDLOOP. " Fill general data LOOP AT lt_tracking_id ASSIGNING FIELD-SYMBOL(<ls_tracking_id>). <ls_tracking_id>-appsys = mv_appsys. <ls_tracking_id>-appobjtype = is_aotype-aot_type. <ls_tracking_id>-appobjid = is_likp-vbeln. ENDLOOP. cs_idoc_data-tracking_id = VALUE #( BASE cs_idoc_data-tracking_id ( LINES OF lt_tracking_id ) ). ENDMETHOD. METHOD get_aotype_restriction_id. rv_rst_id = 'SH_TO_IDLH'. ENDMETHOD. METHOD get_instance. DATA(lt_trk_obj_type) = VALUE zif_gtt_mia_ctp_tor_types=>tt_trk_obj_type( ( zif_gtt_mia_ef_constants=>cs_trk_obj_type-esc_shipmt ) ( zif_gtt_mia_ef_constants=>cs_trk_obj_type-esc_deliv ) ). IF is_gtt_enabled( it_trk_obj_type = lt_trk_obj_type ) = abap_true. ro_sender = NEW #( ). ro_sender->initiate( ). ELSE. MESSAGE e006(zgtt_mia) INTO DATA(lv_dummy). zcl_gtt_mia_tools=>throw_exception( ). ENDIF. ENDMETHOD. METHOD get_object_type. rv_objtype = zif_gtt_mia_ef_constants=>cs_trk_obj_type-esc_deliv. ENDMETHOD. METHOD get_shipment_stop. CLEAR: es_stop. LOOP AT is_stops-watching ASSIGNING FIELD-SYMBOL(<ls_watching>) WHERE vbeln = is_vbfa-vbelv AND stopid(10) = is_vbfa-vbeln. rv_stopid = <ls_watching>-stopid. IF iv_arrival = abap_false. EXIT. ENDIF. ENDLOOP. IF rv_stopid IS NOT INITIAL AND es_stop IS REQUESTED. READ TABLE is_stops-stops INTO es_stop WITH KEY stopid = rv_stopid loccat = COND #( WHEN iv_arrival = abap_true THEN zif_gtt_mia_app_constants=>cs_loccat-arrival ELSE zif_gtt_mia_app_constants=>cs_loccat-departure ). IF sy-subrc <> 0. MESSAGE e011(zgtt_mia) WITH rv_stopid is_stops-tknum INTO DATA(lv_dummy). zcl_gtt_mia_tools=>throw_exception( ). ENDIF. ENDIF. ENDMETHOD. METHOD is_pod_relevant_delivery. DATA: lt_werks TYPE RANGE OF lips-werks. rv_result = zif_gtt_mia_ef_constants=>cs_condition-false. " prepare list of POD relevant plants LOOP AT is_ship-likp\lips[ is_likp ] ASSIGNING FIELD-SYMBOL(<ls_lips>). IF lt_werks IS INITIAL OR <ls_lips>-werks NOT IN lt_werks. READ TABLE is_ship-ee_rel ASSIGNING FIELD-SYMBOL(<ls_ee_rel>) WITH TABLE KEY appobjid = |{ <ls_lips>-vbeln }{ <ls_lips>-posnr }|. IF sy-subrc = 0 AND <ls_ee_rel>-z_pdstk = abap_true. lt_werks = VALUE #( BASE lt_werks ( low = <ls_lips>-werks option = 'EQ' sign = 'I' ) ). ENDIF. ENDIF. ENDLOOP. " check whether shipment has any stops with POD Relevant plant IF lt_werks[] IS NOT INITIAL. LOOP AT it_stops ASSIGNING FIELD-SYMBOL(<ls_stops>) WHERE locid IN lt_werks AND loccat = zif_gtt_mia_app_constants=>cs_loccat-arrival AND loctype = zif_gtt_mia_ef_constants=>cs_loc_types-plant. rv_result = zif_gtt_mia_ef_constants=>cs_condition-true. EXIT. ENDLOOP. ENDIF. ENDMETHOD. METHOD is_pod_relevant_stop. CLEAR: rv_result. LOOP AT is_ship-likp\lips[ is_likp ] ASSIGNING FIELD-SYMBOL(<ls_lips>). IF is_stops-locid = <ls_lips>-werks AND is_stops-loccat = zif_gtt_mia_app_constants=>cs_loccat-arrival AND is_stops-loctype = zif_gtt_mia_ef_constants=>cs_loc_types-plant. READ TABLE is_ship-ee_rel ASSIGNING FIELD-SYMBOL(<ls_ee_rel>) WITH TABLE KEY appobjid = |{ <ls_lips>-vbeln }{ <ls_lips>-posnr }|. IF sy-subrc = 0 AND <ls_ee_rel>-z_pdstk = abap_true. rv_result = abap_true. EXIT. ENDIF. ENDIF. ENDLOOP. ENDMETHOD. METHOD prepare_idoc_data. " prepare DLV Header list (likp or vtrlk_tab) " fill DLV Header " control data " YN_SHP_LINE_COUNT " YN_SHP_NO " YN_SHP_FIRST_STOP " YN_SHP_LAST_STOP " YN_SHP_LINE_COUNT " ACTUAL_BUSINESS_TIMEZONE " ACTUAL_BUSINESS_DATETIME " tracking ID " send DLV Header TID " add/delete Shipment TID " planned events " DEPARTURE " ARRIV_DEST " POD DATA: ls_idoc_data TYPE zif_gtt_mia_ctp_tor_types=>ts_idoc_data. DATA(lr_ship) = io_ship_data->get_data( ). DATA(lr_stops) = io_ship_data->get_stops( ). FIELD-SYMBOLS: <ls_ship> TYPE zcl_gtt_mia_ctp_shipment_data=>ts_shipment_merge, <lt_stops> TYPE zcl_gtt_mia_ctp_shipment_data=>tt_stops_srt. ASSIGN lr_ship->* TO <ls_ship>. ASSIGN lr_stops->* TO <lt_stops>. LOOP AT mt_aotype ASSIGNING FIELD-SYMBOL(<ls_aotype>). CLEAR: ls_idoc_data. ls_idoc_data-appsys = mv_appsys. fill_idoc_trxserv( EXPORTING is_aotype = <ls_aotype> CHANGING cs_idoc_data = ls_idoc_data ). LOOP AT <ls_ship>-likp ASSIGNING FIELD-SYMBOL(<ls_likp>). READ TABLE <lt_stops> ASSIGNING FIELD-SYMBOL(<ls_stops>) WITH TABLE KEY tknum = <ls_likp>-tknum. IF sy-subrc = 0. fill_idoc_appobj_ctabs( EXPORTING is_aotype = <ls_aotype> iv_vbeln = <ls_likp>-vbeln CHANGING cs_idoc_data = ls_idoc_data ). fill_idoc_control_data( EXPORTING is_aotype = <ls_aotype> is_ship = <ls_ship> is_likp = <ls_likp> is_stops = <ls_stops> CHANGING cs_idoc_data = ls_idoc_data ). fill_idoc_exp_event( EXPORTING is_aotype = <ls_aotype> is_ship = <ls_ship> is_likp = <ls_likp> is_stops = <ls_stops> CHANGING cs_idoc_data = ls_idoc_data ). fill_idoc_tracking_id( EXPORTING is_aotype = <ls_aotype> is_ship = <ls_ship> is_likp = <ls_likp> CHANGING cs_idoc_data = ls_idoc_data ). ELSE. MESSAGE e005(zgtt_mia) WITH |{ <ls_likp>-tknum }| 'STOPS' INTO DATA(lv_dummy). zcl_gtt_mia_tools=>throw_exception( ). ENDIF. ENDLOOP. IF ls_idoc_data-appobj_ctabs[] IS NOT INITIAL AND ls_idoc_data-control[] IS NOT INITIAL AND ls_idoc_data-tracking_id[] IS NOT INITIAL. APPEND ls_idoc_data TO mt_idoc_data. ENDIF. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 70, 926, 62, 20730, 62, 310, 79, 62, 82, 358, 62, 1477, 62, 1462, 62, 25404, 71, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 70, 926, 62, 20730, 62, 310, 79, 62, 82, 358, 198, 220, 29244, 6158, 4810, 3824, 6158, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 651, 62, 39098, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 82, 2194, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 70, 926, 62, 20730, 62, 310, 79, 62, 82, 358, 62, 1477, 62, 1462, 62, 25404, 71, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 463, 76, 62, 20500, 764, 628, 220, 220, 220, 337, 36252, 50, 8335, 62, 312, 420, 62, 7890, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 6720, 62, 7890, 41876, 4526, 37, 5390, 1976, 565, 62, 70, 926, 62, 20730, 62, 310, 79, 62, 6720, 434, 62, 7890, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 463, 76, 62, 20500, 764, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 64, 8690, 62, 2118, 46214, 62, 312, 198, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 15252, 62, 4906, 198, 220, 220, 220, 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, 50115, 62, 76, 5912, 11, 198, 220, 220, 220, 220, 220, 220, 220, 410, 6667, 77, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 82, 2373, 40914, 14, 17143, 3672, 26173, 8924, 705, 40760, 62, 19260, 53, 62, 15285, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 427, 79, 62, 9127, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 82, 2373, 40914, 14, 17143, 3672, 26173, 8924, 705, 40760, 62, 9693, 47, 62, 24027, 62, 34, 28270, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 427, 79, 62, 83, 15418, 388, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 82, 2373, 40914, 14, 17143, 3672, 26173, 8924, 705, 40760, 62, 9693, 47, 62, 15285, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 427, 79, 62, 69, 11338, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 82, 2373, 40914, 14, 17143, 3672, 26173, 8924, 705, 40760, 62, 9693, 47, 62, 39776, 2257, 62, 2257, 3185, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 427, 79, 62, 75, 11338, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 82, 2373, 40914, 14, 17143, 3672, 26173, 8924, 705, 40760, 62, 9693, 47, 62, 43, 11262, 62, 2257, 3185, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 427, 79, 62, 75, 11338, 62, 8344, 62, 17946, 220, 220, 220, 220, 41876, 1220, 82, 2373, 40914, 14, 17143, 3672, 26173, 8924, 705, 40760, 62, 9693, 47, 62, 43, 11262, 62, 2257, 3185, 62, 38827, 62, 29701, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 427, 79, 62, 75, 11338, 62, 8344, 62, 17946, 62, 28004, 41876, 1220, 82, 2373, 40914, 14, 17143, 3672, 26173, 8924, 705, 40760, 62, 9693, 47, 62, 43, 11262, 62, 2257, 3185, 62, 38827, 62, 29701, 62, 9936, 47, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 24573, 62, 49659, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 82, 2373, 40914, 14, 17143, 3672, 26173, 8924, 705, 40760, 62, 19260, 62, 47, 3727, 62, 2200, 2538, 53, 8643, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 50115, 62, 76, 5912, 764, 628, 220, 220, 220, 337, 36252, 50, 6070, 62, 312, 420, 62, 1324, 26801, 62, 310, 8937, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 64, 8690, 220, 220, 220, 41876, 1976, 361, 62, 70, 926, 62, 20730, 62, 310, 79, 62, 13165, 62, 19199, 14804, 912, 62, 64, 8690, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 85, 6667, 77, 220, 220, 220, 220, 41876, 4300, 79, 12, 85, 6667, 77, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 6359, 62, 312, 420, 62, 7890, 41876, 1976, 361, 62, 70, 926, 62, 20730, 62, 310, 79, 62, 13165, 62, 19199, 14804, 912, 62, 312, 420, 62, 7890, 764, 198, 220, 220, 220, 337, 36252, 50, 6070, 62, 312, 420, 62, 13716, 62, 7890, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 64, 8690, 220, 220, 220, 41876, 1976, 361, 62, 70, 926, 62, 20730, 62, 310, 79, 62, 13165, 62, 19199, 14804, 912, 62, 64, 8690, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 6720, 220, 220, 220, 220, 220, 41876, 1976, 565, 62, 70, 926, 62, 20730, 62, 310, 79, 62, 6720, 434, 62, 7890, 14804, 912, 62, 6720, 434, 62, 647, 469, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 46965, 79, 220, 220, 220, 220, 220, 41876, 1976, 565, 62, 70, 926, 62, 20730, 62, 310, 79, 62, 6720, 434, 62, 7890, 14804, 912, 62, 46965, 24900, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 301, 2840, 220, 220, 220, 220, 41876, 1976, 565, 62, 70, 926, 62, 20730, 62, 310, 79, 62, 6720, 434, 62, 7890, 14804, 912, 62, 301, 2840, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 6359, 62, 312, 420, 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,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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 ]
CLASS zcl_abapgit_gui_page_commit DEFINITION PUBLIC INHERITING FROM zcl_abapgit_gui_page FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES: zif_abapgit_gui_page_hotkey. CONSTANTS: BEGIN OF c_action, commit_post TYPE string VALUE 'commit_post', commit_cancel TYPE string VALUE 'commit_cancel', END OF c_action . METHODS constructor IMPORTING io_repo TYPE REF TO zcl_abapgit_repo_online io_stage TYPE REF TO zcl_abapgit_stage RAISING zcx_abapgit_exception. METHODS zif_abapgit_gui_event_handler~on_event REDEFINITION . PROTECTED SECTION. CLASS-METHODS parse_commit_request IMPORTING !it_postdata TYPE cnht_post_data_tab EXPORTING !eg_fields TYPE any . METHODS render_content REDEFINITION . METHODS scripts REDEFINITION . PRIVATE SECTION. DATA mo_repo TYPE REF TO zcl_abapgit_repo_online . DATA mo_stage TYPE REF TO zcl_abapgit_stage . DATA ms_commit TYPE zif_abapgit_services_git=>ty_commit_fields . METHODS render_menu RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html . METHODS render_stage RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html RAISING zcx_abapgit_exception . METHODS render_form RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html RAISING zcx_abapgit_exception . METHODS render_text_input IMPORTING !iv_name TYPE string !iv_label TYPE string !iv_value TYPE string OPTIONAL !iv_max_length TYPE string OPTIONAL RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html . ENDCLASS. CLASS ZCL_ABAPGIT_GUI_PAGE_COMMIT IMPLEMENTATION. METHOD constructor. super->constructor( ). mo_repo = io_repo. mo_stage = io_stage. ms_control-page_title = 'COMMIT'. ENDMETHOD. METHOD parse_commit_request. CONSTANTS: lc_replace TYPE string VALUE '<<new>>'. DATA: lv_string TYPE string, lt_fields TYPE tihttpnvp. FIELD-SYMBOLS <lv_body> TYPE string. CLEAR eg_fields. CONCATENATE LINES OF it_postdata INTO lv_string. REPLACE ALL OCCURRENCES OF zif_abapgit_definitions=>c_crlf IN lv_string WITH lc_replace. REPLACE ALL OCCURRENCES OF zif_abapgit_definitions=>c_newline IN lv_string WITH lc_replace. lt_fields = zcl_abapgit_html_action_utils=>parse_fields_upper_case_name( lv_string ). zcl_abapgit_html_action_utils=>get_field( EXPORTING iv_name = 'COMMITTER_NAME' it_field = lt_fields CHANGING cg_field = eg_fields ). zcl_abapgit_html_action_utils=>get_field( EXPORTING iv_name = 'COMMITTER_EMAIL' it_field = lt_fields CHANGING cg_field = eg_fields ). zcl_abapgit_html_action_utils=>get_field( EXPORTING iv_name = 'AUTHOR_NAME' it_field = lt_fields CHANGING cg_field = eg_fields ). zcl_abapgit_html_action_utils=>get_field( EXPORTING iv_name = 'AUTHOR_EMAIL' it_field = lt_fields CHANGING cg_field = eg_fields ). zcl_abapgit_html_action_utils=>get_field( EXPORTING iv_name = 'COMMENT' it_field = lt_fields CHANGING cg_field = eg_fields ). zcl_abapgit_html_action_utils=>get_field( EXPORTING iv_name = 'BODY' it_field = lt_fields CHANGING cg_field = eg_fields ). ASSIGN COMPONENT 'BODY' OF STRUCTURE eg_fields TO <lv_body>. ASSERT <lv_body> IS ASSIGNED. REPLACE ALL OCCURRENCES OF lc_replace IN <lv_body> WITH zif_abapgit_definitions=>c_newline. ENDMETHOD. METHOD render_content. CREATE OBJECT ro_html. ro_html->add( '<div class="repo">' ). ro_html->add( zcl_abapgit_gui_chunk_lib=>render_repo_top( io_repo = mo_repo iv_show_package = abap_false iv_branch = mo_repo->get_branch_name( ) ) ). ro_html->add( render_menu( ) ). ro_html->add( render_form( ) ). ro_html->add( render_stage( ) ). ro_html->add( '</div>' ). ENDMETHOD. METHOD render_form. CONSTANTS: lc_body_col_max TYPE i VALUE 150. DATA: li_user TYPE REF TO zif_abapgit_persist_user. DATA: lv_user TYPE string. DATA: lv_email TYPE string. DATA: lv_s_param TYPE string. DATA: lo_settings TYPE REF TO zcl_abapgit_settings. DATA: lv_body_size TYPE i. DATA: lv_comment TYPE string. DATA: lv_body TYPE string. DATA: lv_author_name TYPE string. DATA: lv_author_email TYPE string. * see https://git-scm.com/book/ch5-2.html * commit messages should be max 50 characters * body should wrap at 72 characters li_user = zcl_abapgit_persistence_user=>get_instance( ). lv_user = li_user->get_repo_git_user_name( mo_repo->get_url( ) ). IF lv_user IS INITIAL. lv_user = li_user->get_default_git_user_name( ). ENDIF. IF lv_user IS INITIAL. " get default from user master record lv_user = zcl_abapgit_user_master_record=>get_instance( sy-uname )->get_name( ). ENDIF. lv_email = li_user->get_repo_git_user_email( mo_repo->get_url( ) ). IF lv_email IS INITIAL. lv_email = li_user->get_default_git_user_email( ). ENDIF. IF lv_email IS INITIAL. " get default from user master record lv_email = zcl_abapgit_user_master_record=>get_instance( sy-uname )->get_email( ). ENDIF. IF ms_commit IS NOT INITIAL. lv_user = ms_commit-committer_name. lv_email = ms_commit-committer_email. lv_comment = ms_commit-comment. lv_body = ms_commit-body. lv_author_name = ms_commit-author_name. lv_author_email = ms_commit-author_email. ENDIF. CREATE OBJECT ro_html. ro_html->add( '<div class="form-container">' ). ro_html->add( '<form id="commit_form" class="aligned-form"' && ' method="post" action="sapevent:commit_post">' ). ro_html->add( render_text_input( iv_name = 'committer_name' iv_label = 'committer name' iv_value = lv_user ) ). ro_html->add( render_text_input( iv_name = 'committer_email' iv_label = 'committer e-mail' iv_value = lv_email ) ). lo_settings = zcl_abapgit_persist_settings=>get_instance( )->read( ). lv_s_param = lo_settings->get_commitmsg_comment_length( ). ro_html->add( render_text_input( iv_name = 'comment' iv_label = 'comment' iv_value = lv_comment iv_max_length = lv_s_param ) ). ro_html->add( '<div class="row">' ). ro_html->add( '<label for="c-body">body</label>' ). lv_body_size = lo_settings->get_commitmsg_body_size( ). IF lv_body_size > lc_body_col_max. lv_body_size = lc_body_col_max. ENDIF. ro_html->add( |<textarea id="c-body" name="body" rows="10" cols="| && |{ lv_body_size }">{ lv_body }</textarea>| ). ro_html->add( '<input type="submit" class="hidden-submit">' ). ro_html->add( '</div>' ). ro_html->add( '<div class="row">' ). ro_html->add( '<span class="cell"></span>' ). ro_html->add( '<span class="cell sub-title">Optionally,' && ' specify author (same as committer by default)</span>' ). ro_html->add( '</div>' ). ro_html->add( render_text_input( iv_name = 'author_name' iv_label = 'author name' iv_value = lv_author_name ) ). ro_html->add( render_text_input( iv_name = 'author_email' iv_label = 'author e-mail' iv_value = lv_author_email ) ). ro_html->add( '</form>' ). ro_html->add( '</div>' ). ENDMETHOD. METHOD render_menu. DATA lo_toolbar TYPE REF TO zcl_abapgit_html_toolbar. CREATE OBJECT ro_html. CREATE OBJECT lo_toolbar. lo_toolbar->add( iv_act = 'submitFormById(''commit_form'');' iv_txt = 'Commit' iv_typ = zif_abapgit_html=>c_action_type-onclick iv_opt = zif_abapgit_html=>c_html_opt-strong ) ##NO_TEXT. lo_toolbar->add( iv_act = c_action-commit_cancel iv_txt = 'Cancel' iv_opt = zif_abapgit_html=>c_html_opt-cancel ) ##NO_TEXT. ro_html->add( '<div class="paddings">' ). ro_html->add( lo_toolbar->render( ) ). ro_html->add( '</div>' ). ENDMETHOD. METHOD render_stage. DATA: lt_stage TYPE zcl_abapgit_stage=>ty_stage_tt. FIELD-SYMBOLS: <ls_stage> LIKE LINE OF lt_stage. CREATE OBJECT ro_html. lt_stage = mo_stage->get_all( ). ro_html->add( '<table class="stage_tab">' ). ro_html->add( '<thead>' ). ro_html->add( '<tr>' ). ro_html->add( '<th colspan="3">Staged files</th>' ). ro_html->add( '</tr>' ). ro_html->add( '</thead>' ). ro_html->add( '<tbody>' ). LOOP AT lt_stage ASSIGNING <ls_stage>. ro_html->add( '<tr>' ). ro_html->add( '<td>' ). ro_html->add( zcl_abapgit_gui_chunk_lib=>render_item_state( iv_lstate = <ls_stage>-status-lstate iv_rstate = <ls_stage>-status-rstate ) ). ro_html->add( '</td>' ). ro_html->add( '<td class="method">' ). ro_html->add( |<b>{ zcl_abapgit_stage=>method_description( <ls_stage>-method ) }</b>| ). ro_html->add( '</td>' ). ro_html->add( '<td>' ). ro_html->add( <ls_stage>-file-path && <ls_stage>-file-filename ). ro_html->add( '</td>' ). ro_html->add( '</tr>' ). ENDLOOP. ro_html->add( '</tbody>' ). ro_html->add( '</table>' ). ENDMETHOD. METHOD render_text_input. DATA lv_attrs TYPE string. CREATE OBJECT ro_html. IF iv_value IS NOT INITIAL AND iv_max_length IS NOT INITIAL. lv_attrs = | value="{ iv_value }" maxlength="{ iv_max_length }"|. ELSEIF iv_value IS NOT INITIAL. lv_attrs = | value="{ iv_value }"|. ELSEIF iv_max_length IS NOT INITIAL. lv_attrs = | maxlength="{ iv_max_length }"|. ENDIF. ro_html->add( '<div class="row">' ). ro_html->add( |<label for="{ iv_name }">{ iv_label }</label>| ). ro_html->add( |<input id="{ iv_name }" name="{ iv_name }" type="text"{ lv_attrs }>| ). ro_html->add( '</div>' ). ENDMETHOD. METHOD scripts. ro_html = super->scripts( ). ro_html->add( 'setInitialFocus("comment");' ). ENDMETHOD. METHOD zif_abapgit_gui_event_handler~on_event. CASE iv_action. WHEN c_action-commit_post. parse_commit_request( EXPORTING it_postdata = it_postdata IMPORTING eg_fields = ms_commit ). ms_commit-repo_key = mo_repo->get_key( ). zcl_abapgit_services_git=>commit( is_commit = ms_commit io_repo = mo_repo io_stage = mo_stage ). MESSAGE 'Commit was successful' TYPE 'S' ##NO_TEXT. ev_state = zcl_abapgit_gui=>c_event_state-go_back_to_bookmark. WHEN c_action-commit_cancel. ev_state = zcl_abapgit_gui=>c_event_state-go_back. WHEN OTHERS. super->zif_abapgit_gui_event_handler~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_hotkey~get_hotkey_actions. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 41509, 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, 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, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 2673, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4589, 62, 7353, 220, 220, 41876, 4731, 26173, 8924, 705, 41509, 62, 7353, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 4589, 62, 66, 21130, 41876, 4731, 26173, 8924, 705, 41509, 62, 66, 21130, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 2673, 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, 33245, 62, 260, 7501, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 198, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 14247, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 14247, 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, 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, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 21136, 62, 41509, 62, 25927, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 7353, 7890, 41876, 269, 77, 4352, 62, 7353, 62, 7890, 62, 8658, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 1533, 62, 25747, 220, 220, 41876, 597, 764, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 11299, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 14750, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 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, 6941, 62, 14247, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 14247, 764, 198, 220, 220, 220, 42865, 13845, 62, 41509, 41876, 1976, 361, 62, 397, 499, 18300, 62, 30416, 62, 18300, 14804, 774, 62, 41509, 62, 25747, 764, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 26272, 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, 764, 198, 220, 220, 220, 337, 36252, 50, 8543, 62, 14247, 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, 764, 198, 220, 220, 220, 337, 36252, 50, 8543, 62, 687, 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, 764, 198, 220, 220, 220, 337, 36252, 50, 8543, 62, 5239, 62, 15414, 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, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 18242, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8367, 220, 220, 220, 220, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 9806, 62, 13664, 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, 305, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 40156, 62, 4537, 8264, 62, 9858, 36393, 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, 6941, 62, 260, 7501, 220, 220, 796, 33245, 62, 260, 7501, 13, 198, 220, 220, 220, 6941, 62, 14247, 220, 796, 33245, 62, 14247, 13, 628, 220, 220, 220, 13845, 62, 13716, 12, 7700, 62, 7839, 796, 705, 9858, 36393, 4458, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 21136, 62, 41509, 62, 25927, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 300, 66, 62, 33491, 41876, 4731, 26173, 8924, 705, 16791, 3605, 4211, 4458, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 8841, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 25747, 41876, 46668, 4023, 77, 36133, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 1279, 6780, 62, 2618, 29, 41876, 4731, 13, 628, 220, 220, 220, 30301, 1503, 29206, 62, 25747, 13, 628, 220, 220, 220, 39962, 1404, 1677, 6158, 43277, 1546, 3963, 340, 62, 7353, 7890, 39319, 300 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*&---------------------------------------------------------------------* *& Include ZLOCK_R_MANAGEMENT_C01 *&---------------------------------------------------------------------* CLASS lcl_alv_handler DEFINITION. PUBLIC SECTION. METHODS: on_user_command FOR EVENT added_function OF cl_salv_events IMPORTING e_salv_function. PROTECTED SECTION. ENDCLASS. CLASS lcl_alv_handler IMPLEMENTATION. METHOD on_user_command. PERFORM user_command USING e_salv_function. ENDMETHOD. ENDCLASS. CLASS lcl_controller DEFINITION. PUBLIC SECTION. METHODS constructor. METHODS search_data IMPORTING !it_r_id TYPE zcl_lock_management=>tt_r_id_lock OPTIONAL !it_r_appl TYPE zcl_lock_management=>tt_r_appl OPTIONAL !it_r_subobject TYPE zcl_lock_management=>tt_r_subobject OPTIONAL !it_r_erdat TYPE zcl_lock_management=>tt_r_erdat OPTIONAL !it_r_ernam TYPE zcl_lock_management=>tt_r_ernam OPTIONAL !it_r_erzet TYPE zcl_lock_management=>tt_r_erzet OPTIONAL. METHODS show_data. METHODS there_locks RETURNING VALUE(rv_there) TYPE sap_bool. METHODS on_user_command IMPORTING !iv_ucomm TYPE any. PROTECTED SECTION. TYPES: BEGIN OF ts_field_values_matrix, field1 TYPE zlock_t_0002-field, value1 TYPE zlock_t_0002-value, field2 TYPE zlock_t_0002-field, value2 TYPE zlock_t_0002-value, field3 TYPE zlock_t_0002-field, value3 TYPE zlock_t_0002-value, field4 TYPE zlock_t_0002-field, value4 TYPE zlock_t_0002-value, field5 TYPE zlock_t_0002-field, value5 TYPE zlock_t_0002-value, field6 TYPE zlock_t_0002-field, value6 TYPE zlock_t_0002-value, field7 TYPE zlock_t_0002-field, value7 TYPE zlock_t_0002-value, field8 TYPE zlock_t_0002-field, value8 TYPE zlock_t_0002-value, field9 TYPE zlock_t_0002-field, value9 TYPE zlock_t_0002-value, field10 TYPE zlock_t_0002-field, value10 TYPE zlock_t_0002-value, END OF ts_field_values_matrix. TYPES: BEGIN OF ts_alv_data. INCLUDE TYPE zcl_lock_management=>ts_query_header. INCLUDE TYPE ts_field_values_matrix. TYPES: END OF ts_alv_data. TYPES: tt_alv_data TYPE STANDARD TABLE OF ts_alv_data. DATA mt_alv_data TYPE tt_alv_data. DATA mo_mngt TYPE REF TO zcl_lock_management. DATA mv_max_field_lock TYPE i. DATA mo_alv TYPE REF TO cl_salv_table. DATA mo_alv_hanlder TYPE REF TO lcl_alv_handler. DATA mt_r_id TYPE zcl_lock_management=>tt_r_id_lock. DATA mt_r_appl TYPE zcl_lock_management=>tt_r_appl. DATA mt_r_subobject TYPE zcl_lock_management=>tt_r_subobject. DATA mt_r_erdat TYPE zcl_lock_management=>tt_r_erdat. DATA mt_r_ernam TYPE zcl_lock_management=>tt_r_ernam. DATA mt_r_erzet TYPE zcl_lock_management=>tt_r_erzet. METHODS consolidate_values IMPORTING it_header_data TYPE zcl_lock_management=>tt_query_header it_values_data TYPE zcl_lock_management=>tt_query_values. METHODS adjust_alv_columns_fieldvalue. METHODS alv_refresh. METHODS delete_locks. ENDCLASS. CLASS lcl_controller IMPLEMENTATION. METHOD constructor. mo_mngt = NEW zcl_lock_management( ). ENDMETHOD. METHOD search_data. CLEAR mt_alv_data. " Se guarda los parámetros para poderlos volver a buscar mt_r_id = COND #( WHEN it_r_id IS SUPPLIED THEN it_r_id ELSE mt_r_id ). mt_r_appl = COND #( WHEN it_r_appl IS SUPPLIED THEN it_r_appl ELSE mt_r_appl ). mt_r_subobject = COND #( WHEN it_r_subobject IS SUPPLIED THEN it_r_subobject ELSE mt_r_subobject ). mt_r_erdat = COND #( WHEN it_r_erdat IS SUPPLIED THEN it_r_erdat ELSE mt_r_erdat ). mt_r_ernam = COND #( WHEN it_r_ernam IS SUPPLIED THEN it_r_ernam ELSE mt_r_ernam ). mt_r_erzet = COND #( WHEN it_r_erzet IS SUPPLIED THEN it_r_erzet ELSE mt_r_erzet ).. " Búsqueda de los bloqueos mo_mngt->query( EXPORTING it_r_id = mt_r_id it_r_appl = mt_r_appl it_r_subobject = mt_r_subobject it_r_erdat = mt_r_erdat it_r_ernam = mt_r_ernam it_r_erzet = mt_r_erzet IMPORTING et_header_data = DATA(lt_header_data) et_values_data = DATA(lt_values_data) ). " Los datos obtenidos se consolidan en la tabla de datos que se mostrará consolidate_values( EXPORTING it_header_data = lt_header_data it_values_data = lt_values_data ). ENDMETHOD. METHOD consolidate_values. LOOP AT it_header_data ASSIGNING FIELD-SYMBOL(<ls_header_data>). DATA(ls_data) = CORRESPONDING ts_alv_data( <ls_header_data> ). " Se pasan los valores del bloqueo a los campos fijos del listado ALV DATA(lv_cont) = 1. LOOP AT it_values_data ASSIGNING FIELD-SYMBOL(<ls_values_data>) WHERE id = <ls_header_data>-id. mv_max_field_lock = COND #( WHEN lv_cont > mv_max_field_lock THEN lv_cont ELSE mv_max_field_lock ). DATA(lv_field) = |FIELD{ lv_cont }|. ASSIGN COMPONENT lv_field OF STRUCTURE ls_data TO FIELD-SYMBOL(<field>). IF sy-subrc = 0. <field> = <ls_values_data>-field. lv_field = |VALUE{ lv_cont }|. ASSIGN COMPONENT lv_field OF STRUCTURE ls_data TO <field>. IF sy-subrc = 0. <field> = <ls_values_data>-value. ENDIF. ELSE. " Si no existe es que hay más valores que campos EXIT. ENDIF. lv_cont = lv_cont + 1. ENDLOOP. INSERT ls_data INTO TABLE mt_alv_data. ENDLOOP. ENDMETHOD. METHOD show_data. TRY. cl_salv_table=>factory( EXPORTING list_display = abap_false IMPORTING r_salv_table = mo_alv CHANGING t_table = mt_alv_data ). " Listado del ALV DATA(lo_settings) = mo_alv->get_display_settings( ). lo_settings->set_list_header( sy-title ). " Layout para poder grabar variantes DATA(lo_layout) = mo_alv->get_layout( ). lo_layout->set_key( value = VALUE #( report = sy-repid ) ). " Funciones estándar DATA(lo_functions) = mo_alv->get_functions( ). " Modo de selección DATA(lo_selections) = mo_alv->get_selections( ). lo_selections->set_selection_mode( if_salv_c_selection_mode=>multiple ). " Status de pantalla mo_alv->set_screen_status( pfstatus = 'STANDARD' report = sy-repid set_functions = mo_alv->c_functions_all ). " Ajuste de las columnas de campo valor del bloqueo adjust_alv_columns_fieldvalue( ). " Columnas optimizadas DATA(lo_columns) = mo_alv->get_columns( ). lo_columns->set_optimize( abap_true ). " Eventos del listado mo_alv_hanlder = NEW lcl_alv_handler( ). DATA(lo_events) = mo_alv->get_event( ). SET HANDLER mo_alv_hanlder->on_user_command FOR lo_events. " Se muestra el listado mo_alv->display( ). CATCH cx_salv_msg. ENDTRY. ENDMETHOD. METHOD adjust_alv_columns_fieldvalue. DATA(lo_columns) = mo_alv->get_columns( ). " Se ajusta las 10 columnas donde se indica el campo clave/valor para ponerles un texto distinto. " Si hay menos campos valor que columnas configuradas se quitarán del listado DO. DATA(lv_index) = sy-index. TRY. " Campo del nombre " Si el numero actual de campo supera al máximo que hay de campos de valores, el campo se marca como técnico para que no se muestre DATA(lo_column) = lo_columns->get_column( CONV #( |FIELD{ lv_index }| ) ). IF lv_index <= mv_max_field_lock. " Se informa el titulo del campos DATA(lv_text) = |{ TEXT-c01 } { lv_index }|. lo_column->set_short_text( CONV #( lv_text ) ). lo_column->set_medium_text( CONV #( lv_text ) ). lo_column->set_long_text( CONV #( lv_text ) ). lo_column->set_optimized( abap_true ). ELSE. lo_column->set_technical( abap_true ). ENDIF. " Campo del valor, se aplica lo mismo que para el nombre lo_column = lo_columns->get_column( CONV #( |VALUE{ lv_index }| ) ). IF lv_index <= mv_max_field_lock. " Se informa el titulo del campos lv_text = |{ TEXT-c02 } { lv_index }|. lo_column->set_short_text( CONV #( lv_text ) ). lo_column->set_medium_text( CONV #( lv_text ) ). lo_column->set_long_text( CONV #( lv_text ) ). lo_column->set_optimized( abap_true ). ELSE. lo_column->set_technical( abap_true ). ENDIF. CATCH cx_salv_not_found . " Si el campo se sale del proceso EXIT. ENDTRY. ENDDO. ENDMETHOD. METHOD there_locks. rv_there = COND #( WHEN mt_alv_data IS NOT INITIAL THEN abap_true ELSE abap_false ). ENDMETHOD. METHOD on_user_command. CASE iv_ucomm. WHEN 'REFRESH'. alv_refresh( ). WHEN 'UNLOCK'. delete_locks( ). ENDCASE. ENDMETHOD. METHOD alv_refresh. " El refresco consiste en volver a buscar los datos y actualizar el listado search_data( ). mo_alv->refresh( ). ENDMETHOD. METHOD delete_locks. " Se leen las filas seccionadas DATA(lt_rows) = mo_alv->get_selections( )->get_selected_rows( ). LOOP AT lt_rows ASSIGNING FIELD-SYMBOL(<ls_rows>). READ TABLE mt_alv_data ASSIGNING FIELD-SYMBOL(<ls_data>) INDEX <ls_rows>. IF sy-subrc = 0. TRY. mo_mngt->dequeue_by_id( iv_commit = abap_true iv_id = <ls_data>-id ). DELETE mt_alv_data INDEX <ls_rows>. CATCH zcx_lock. ENDTRY. ENDIF. ENDLOOP. IF sy-subrc NE 0. MESSAGE s005(zlock). ELSE. mo_alv->refresh( ). ENDIF. ENDMETHOD. ENDCLASS.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1168, 36840, 62, 49, 62, 10725, 4760, 12529, 62, 34, 486, 198, 9, 5, 10097, 30934, 9, 198, 31631, 300, 565, 62, 282, 85, 62, 30281, 5550, 20032, 17941, 13, 198, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 319, 62, 7220, 62, 21812, 7473, 49261, 2087, 62, 8818, 3963, 537, 62, 21680, 85, 62, 31534, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 304, 62, 21680, 85, 62, 8818, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 198, 10619, 31631, 13, 198, 31631, 300, 565, 62, 282, 85, 62, 30281, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 319, 62, 7220, 62, 21812, 13, 198, 220, 220, 220, 19878, 21389, 2836, 62, 21812, 1294, 2751, 304, 62, 21680, 85, 62, 8818, 13, 198, 220, 23578, 49273, 13, 628, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 36500, 5550, 20032, 17941, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 13, 628, 220, 220, 220, 337, 36252, 50, 2989, 62, 7890, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 81, 62, 312, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 565, 62, 5354, 62, 27604, 14804, 926, 62, 81, 62, 312, 62, 5354, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 81, 62, 1324, 75, 220, 220, 220, 220, 220, 41876, 1976, 565, 62, 5354, 62, 27604, 14804, 926, 62, 81, 62, 1324, 75, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 81, 62, 7266, 15252, 41876, 1976, 565, 62, 5354, 62, 27604, 14804, 926, 62, 81, 62, 7266, 15252, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 81, 62, 263, 19608, 220, 220, 220, 220, 41876, 1976, 565, 62, 5354, 62, 27604, 14804, 926, 62, 81, 62, 263, 19608, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 81, 62, 1142, 321, 220, 220, 220, 220, 41876, 1976, 565, 62, 5354, 62, 27604, 14804, 926, 62, 81, 62, 1142, 321, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 81, 62, 263, 89, 316, 220, 220, 220, 220, 41876, 1976, 565, 62, 5354, 62, 27604, 14804, 926, 62, 81, 62, 263, 89, 316, 39852, 2849, 1847, 13, 628, 220, 220, 220, 337, 36252, 50, 905, 62, 7890, 13, 198, 220, 220, 220, 337, 36252, 50, 612, 62, 28860, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 8117, 8, 41876, 31841, 62, 30388, 13, 198, 220, 220, 220, 337, 36252, 50, 319, 62, 7220, 62, 21812, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 84, 9503, 41876, 597, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 40379, 62, 3245, 62, 27160, 62, 6759, 8609, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 16, 220, 41876, 1976, 5354, 62, 83, 62, 34215, 12, 3245, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 16, 220, 41876, 1976, 5354, 62, 83, 62, 34215, 12, 8367, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 17, 220, 41876, 1976, 5354, 62, 83, 62, 34215, 12, 3245, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 17, 220, 41876, 1976, 5354, 62, 83, 62, 34215, 12, 8367, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 18, 220, 41876, 1976, 5354, 62, 83, 62, 34215, 12, 3245, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 18, 220, 41876, 1976, 5354, 62, 83, 62, 34215, 12, 8367, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 19, 220, 41876, 1976, 5354, 62, 83, 62, 34215, 12, 3245, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 19, 220, 41876, 1976, 5354, 62, 83, 62, 34215, 12, 8367, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 20, 220, 41876, 1976, 5354, 62, 83, 62, 34215, 12, 3245, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 20, 220, 41876, 1976, 5354, 62, 83, 62, 34215, 12, 8367, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 21, 220, 41876, 1976, 5354, 62, 83, 62, 34215, 12, 3245, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 21, 220, 41876, 1976, 5354, 62, 83, 62, 34215, 12, 8367, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 22, 220, 41876, 1976, 5354, 62, 83, 62, 34215, 12, 3245, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 22, 220, 41876, 1976, 5354, 62, 83, 62, 34215, 12, 8367, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 23, 220, 41876, 1976, 5354, 62, 83, 62, 34215, 12, 3245, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 23, 220, 41876, 1976, 5354, 62, 83, 62, 34215, 12, 8367, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 24, 220, 41876, 1976, 5354, 62, 83, 62, 34215, 12, 3245, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 24, 220, 41876, 1976, 5354, 62, 83, 62, 34215, 12, 8367, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 940, 41876, 1976 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_abapgit_object_cus0 DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. METHODS constructor IMPORTING is_item TYPE zif_abapgit_definitions=>ty_item iv_language TYPE spras. PROTECTED SECTION. PRIVATE SECTION. TYPES: ty_img_activity_texts TYPE STANDARD TABLE OF cus_imgact WITH NON-UNIQUE DEFAULT KEY, BEGIN OF ty_img_activity, header TYPE cus_imgach, texts TYPE ty_img_activity_texts, END OF ty_img_activity. DATA: mv_img_activity TYPE cus_img_ac. ENDCLASS. CLASS zcl_abapgit_object_cus0 IMPLEMENTATION. METHOD constructor. super->constructor( is_item = is_item iv_language = iv_language ). mv_img_activity = ms_item-obj_name. ENDMETHOD. METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: ls_message TYPE hier_mess. CALL FUNCTION 'S_CUS_IMG_ACTIVITY_DELETE' EXPORTING img_activity = mv_img_activity IMPORTING message = ls_message. IF ls_message-msgty <> 'S'. zcx_abapgit_exception=>raise( |error from delete CUS0 { mv_img_activity } S_CUS_IMG_ACTIVITY_DELETE| ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: ls_img_activity TYPE ty_img_activity, ls_text LIKE LINE OF ls_img_activity-texts. io_xml->read( EXPORTING iv_name = 'CUS0' CHANGING cg_data = ls_img_activity ). READ TABLE ls_img_activity-texts INTO ls_text WITH KEY spras = mv_language. CALL FUNCTION 'S_CUS_IMG_ACTIVITY_SAVE' EXPORTING img_activity = ls_img_activity-header-activity i_docu = ls_img_activity-header-docu_id i_attributes = ls_img_activity-header-attributes i_activity = ls_img_activity-header-c_activity i_description = ls_text i_tcode = ls_img_activity-header-tcode. CALL FUNCTION 'RS_CORR_INSERT' EXPORTING object = ms_item-obj_name object_class = ms_item-obj_type mode = 'I' global_lock = abap_true devclass = iv_package master_language = mv_language suppress_dialog = abap_true EXCEPTIONS cancelled = 1 permission_failure = 2 unknown_objectclass = 3 OTHERS = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from RS_CORR_INSERT, CUS0' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: ls_message TYPE hier_mess. CALL FUNCTION 'S_CUS_IMG_ACTIVITY_EXISTS' EXPORTING img_activity = mv_img_activity IMPORTING message = ls_message. rv_bool = boolc( ls_message IS INITIAL ). 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 = abap_true. ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = abap_false. ENDMETHOD. METHOD zif_abapgit_object~jump. DATA: lv_img_activity TYPE cus_img_ac. lv_img_activity = mv_img_activity. CALL FUNCTION 'S_CUS_IMG_ACTIVITY_MAINTAIN' EXPORTING i_display = abap_true CHANGING img_activity = lv_img_activity. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: ls_img_activity TYPE ty_img_activity. CALL FUNCTION 'S_CUS_IMG_ACTIVITY_READ' EXPORTING img_activity = mv_img_activity IMPORTING img_activity_header = ls_img_activity-header TABLES img_activity_texts = ls_img_activity-texts. CLEAR: ls_img_activity-header-fuser, ls_img_activity-header-fdate, ls_img_activity-header-ftime, ls_img_activity-header-luser, ls_img_activity-header-ldate, ls_img_activity-header-ltime. IF io_xml->i18n_params( )-main_language_only = abap_true. DELETE ls_img_activity-texts WHERE spras <> mv_language. ENDIF. io_xml->add( iv_name = 'CUS0' ig_data = ls_img_activity ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 9042, 15, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 628, 220, 220, 220, 337, 36252, 50, 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, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 1259, 62, 9600, 62, 21797, 62, 5239, 82, 41876, 49053, 9795, 43679, 3963, 269, 385, 62, 9600, 529, 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, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 9600, 62, 21797, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13639, 41876, 269, 385, 62, 9600, 620, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13399, 220, 41876, 1259, 62, 9600, 62, 21797, 62, 5239, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 9600, 62, 21797, 13, 198, 220, 220, 220, 42865, 25, 285, 85, 62, 9600, 62, 21797, 41876, 269, 385, 62, 9600, 62, 330, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 9042, 15, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 318, 62, 9186, 796, 318, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 796, 21628, 62, 16129, 6739, 628, 220, 220, 220, 285, 85, 62, 9600, 62, 21797, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 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, 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, 43979, 62, 20500, 41876, 13550, 62, 37348, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 50, 62, 34, 2937, 62, 3955, 38, 62, 10659, 3824, 9050, 62, 7206, 2538, 9328, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 33705, 62, 21797, 796, 285, 85, 62, 9600, 62, 21797, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 3275, 220, 220, 220, 220, 220, 796, 43979, 62, 20500, 13, 628, 220, 220, 220, 16876, 43979, 62, 20500, 12, 19662, 774, 1279, 29, 705, 50, 4458, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 930, 18224, 422, 12233, 327, 2937, 15, 1391, 285, 85, 62, 9600, 62, 21797, 1782, 311, 62, 34, 2937, 62, 3955, 38, 62, 10659, 3824, 9050, 62, 7206, 2538, 9328, 91, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 8906, 48499, 1096, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 9600, 62, 21797, 41876, 1259, 62, 9600, 62, 21797, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 5239, 220, 220, 220, 220, 220, 220, 220, 220, 34178, 48920, 3963, 43979, 62, 9600, 62, 21797, 12, 5239, 82, 13, 628, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3672, 796, 705, 34, 2937, 15, 6, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 269, 70, 62, 7890, 796, 43979, 62, 9600, 62, 21797, 6739, 628, 220, 220, 220, 20832, 43679, 43979, 62, 9600, 62, 21797, 12, 5239, 82, 39319, 43979, 62, 5239, 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, 13315, 35374, 7500, 292, 796, 285, 85, 62, 16129, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 50, 62, 34, 2937, 62, 3955, 38, 62, 10659, 3824, 9050, 62, 4090, 6089, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 33705, 62, 21797, 220, 796, 43979, 62, 9600, 62, 21797, 12, 25677, 12, 21797, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 15390, 84, 220, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 9600, 62, 21797, 12, 25677, 12, 15390, 84, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 1078, 7657, 220, 796, 43979, 62, 9600, 62, 21797, 12, 25677, 12, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 21797, 220, 220, 220, 796, 43979, 62, 9600, 62, 21797, 12, 25677, 12, 66, 62, 21797, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 11213, 796, 43979, 62, 5239, 198, 220, 220, 220, 220, 220, 220, 220, 1312 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
FUNCTION-POOL ZPOF_GTT. "MESSAGE-ID .. * INCLUDE LZPOF_GTTD01. " Local class definition
[ 42296, 4177, 2849, 12, 16402, 3535, 1168, 16402, 37, 62, 38, 15751, 13, 220, 220, 220, 220, 220, 220, 220, 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, 16402, 37, 62, 38, 15751, 35, 486, 13, 220, 220, 220, 220, 220, 220, 220, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*"* use this source file for the definition and implementation of *"* local helper classes, interface definitions and type *"* declarations class bd implementation. method vname. varname = descr->var_name. endmethod. endclass.
[ 9, 1, 9, 779, 428, 2723, 2393, 329, 262, 6770, 290, 7822, 286, 198, 9, 1, 9, 1957, 31904, 6097, 11, 7071, 17336, 290, 2099, 198, 9, 1, 9, 31713, 628, 198, 4871, 275, 67, 7822, 13, 628, 220, 2446, 410, 3672, 13, 198, 220, 220, 220, 1401, 3672, 796, 1715, 81, 3784, 7785, 62, 3672, 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 ]
class ltcl_mockup_loader_mock definition final for testing. public section. types: begin of ty_data, data type string, end of ty_data. interfaces zif_mockup_loader. data: mv_calls type i, mv_obj type string, mv_strict type abap_bool. endclass. class ltcl_mockup_loader_mock implementation. method zif_mockup_loader~load_blob. endmethod. method zif_mockup_loader~set_params. endmethod. method zif_mockup_loader~is_redirected. endmethod. method zif_mockup_loader~load_data. data ls_data type ty_data. ls_data-data = 'RESPONSE'. if cl_abap_typedescr=>describe_by_data( e_container )->kind = 'T'. field-symbols <tab> type standard table. assign e_container to <tab>. append ls_data to <tab>. else. e_container = ls_data. endif. mv_obj = i_obj. mv_strict = i_strict. mv_calls = mv_calls + 1. endmethod. endclass. class ltcl_deep_provider_test definition final for testing duration short risk level harmless. private section. types: begin of ty_data, id type i, data type c length 10, end of ty_data, tt_data type standard table of ty_data with key id. methods select for testing raising zcx_text2tab_error. endclass. class ltcl_deep_provider_test implementation. method select. data lo_cut type ref to zcl_mockup_loader_deep_providr. data lo_ml_mock type ref to ltcl_mockup_loader_mock. data ls_record_dummy type ty_data. data ls_data type ltcl_mockup_loader_mock=>ty_data. data ls_exp_data type ltcl_mockup_loader_mock=>ty_data. data ls_where type zif_mockup_loader=>ty_filter. create object lo_ml_mock. create object lo_cut exporting ii_ml_instance = lo_ml_mock. ls_record_dummy-id = 123. lo_cut->zif_text2tab_deep_provider~select( exporting i_address = 'anotherfile[key=@id]' i_cursor = ls_record_dummy importing e_container = ls_data ). ls_exp_data-data = 'RESPONSE'. cl_abap_unit_assert=>assert_equals( act = ls_data exp = ls_exp_data ). cl_abap_unit_assert=>assert_equals( act = lo_ml_mock->mv_calls exp = 1 ). cl_abap_unit_assert=>assert_equals( act = lo_ml_mock->mv_obj exp = 'anotherfile' ). cl_abap_unit_assert=>assert_equals( act = lo_ml_mock->mv_strict exp = abap_false ). " ??? endmethod. endclass.
[ 4871, 300, 83, 565, 62, 76, 735, 929, 62, 29356, 62, 76, 735, 6770, 2457, 198, 220, 329, 4856, 13, 628, 220, 1171, 2665, 13, 628, 220, 220, 220, 3858, 25, 198, 220, 220, 220, 220, 220, 2221, 286, 1259, 62, 7890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 2099, 4731, 11, 198, 220, 220, 220, 220, 220, 886, 286, 1259, 62, 7890, 13, 628, 220, 220, 220, 20314, 1976, 361, 62, 76, 735, 929, 62, 29356, 13, 198, 220, 220, 220, 1366, 25, 198, 220, 220, 220, 220, 220, 285, 85, 62, 66, 5691, 220, 2099, 1312, 11, 198, 220, 220, 220, 220, 220, 285, 85, 62, 26801, 220, 220, 220, 2099, 4731, 11, 198, 220, 220, 220, 220, 220, 285, 85, 62, 301, 2012, 2099, 450, 499, 62, 30388, 13, 198, 437, 4871, 13, 198, 198, 4871, 300, 83, 565, 62, 76, 735, 929, 62, 29356, 62, 76, 735, 7822, 13, 628, 220, 2446, 1976, 361, 62, 76, 735, 929, 62, 29356, 93, 2220, 62, 2436, 672, 13, 198, 220, 886, 24396, 13, 198, 220, 2446, 1976, 361, 62, 76, 735, 929, 62, 29356, 93, 2617, 62, 37266, 13, 198, 220, 886, 24396, 13, 198, 220, 2446, 1976, 361, 62, 76, 735, 929, 62, 29356, 93, 271, 62, 445, 1060, 276, 13, 198, 220, 886, 24396, 13, 628, 220, 2446, 1976, 361, 62, 76, 735, 929, 62, 29356, 93, 2220, 62, 7890, 13, 198, 220, 220, 220, 1366, 43979, 62, 7890, 2099, 1259, 62, 7890, 13, 198, 220, 220, 220, 43979, 62, 7890, 12, 7890, 796, 705, 19535, 47, 1340, 5188, 4458, 628, 220, 220, 220, 611, 537, 62, 397, 499, 62, 774, 9124, 3798, 81, 14804, 20147, 4892, 62, 1525, 62, 7890, 7, 304, 62, 34924, 1267, 3784, 11031, 796, 705, 51, 4458, 198, 220, 220, 220, 220, 220, 2214, 12, 1837, 2022, 10220, 1279, 8658, 29, 2099, 3210, 3084, 13, 198, 220, 220, 220, 220, 220, 8333, 304, 62, 34924, 284, 1279, 8658, 28401, 198, 220, 220, 220, 220, 220, 24443, 43979, 62, 7890, 284, 1279, 8658, 28401, 198, 220, 220, 220, 2073, 13, 198, 220, 220, 220, 220, 220, 304, 62, 34924, 220, 796, 43979, 62, 7890, 13, 198, 220, 220, 220, 45762, 13, 628, 220, 220, 220, 285, 85, 62, 26801, 220, 220, 220, 220, 220, 220, 796, 1312, 62, 26801, 13, 198, 220, 220, 220, 285, 85, 62, 301, 2012, 220, 220, 220, 796, 1312, 62, 301, 2012, 13, 198, 220, 220, 220, 285, 85, 62, 66, 5691, 220, 220, 220, 220, 796, 285, 85, 62, 66, 5691, 1343, 352, 13, 198, 220, 886, 24396, 13, 198, 198, 437, 4871, 13, 198, 198, 4871, 300, 83, 565, 62, 22089, 62, 15234, 1304, 62, 9288, 6770, 2457, 198, 220, 329, 4856, 198, 220, 9478, 1790, 198, 220, 2526, 1241, 23585, 13, 628, 220, 2839, 2665, 13, 628, 220, 220, 220, 3858, 25, 198, 220, 220, 220, 220, 220, 2221, 286, 1259, 62, 7890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 220, 220, 2099, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 2099, 269, 4129, 838, 11, 198, 220, 220, 220, 220, 220, 886, 286, 1259, 62, 7890, 11, 198, 220, 220, 220, 220, 220, 256, 83, 62, 7890, 2099, 3210, 3084, 286, 1259, 62, 7890, 351, 1994, 4686, 13, 628, 220, 220, 220, 5050, 2922, 329, 4856, 8620, 1976, 66, 87, 62, 5239, 17, 8658, 62, 18224, 13, 198, 198, 437, 4871, 13, 198, 198, 4871, 300, 83, 565, 62, 22089, 62, 15234, 1304, 62, 9288, 7822, 13, 628, 220, 2446, 2922, 13, 628, 220, 220, 220, 1366, 2376, 62, 8968, 2099, 1006, 284, 1976, 565, 62, 76, 735, 929, 62, 29356, 62, 22089, 62, 15234, 312, 81, 13, 198, 220, 220, 220, 1366, 2376, 62, 4029, 62, 76, 735, 2099, 1006, 284, 300, 83, 565, 62, 76, 735, 929, 62, 29356, 62, 76, 735, 13, 198, 220, 220, 220, 1366, 43979, 62, 22105, 62, 67, 13513, 2099, 1259, 62, 7890, 13, 198, 220, 220, 220, 1366, 43979, 62, 7890, 2099, 300, 83, 565, 62, 76, 735, 929, 62, 29356, 62, 76, 735, 14804, 774, 62, 7890, 13, 198, 220, 220, 220, 1366, 43979, 62, 11201, 62, 7890, 2099, 300, 83, 565, 62, 76, 735, 929, 62, 29356, 62, 76, 735, 14804, 774, 62, 7890, 13, 198, 220, 220, 220, 1366, 43979, 62, 3003, 2099, 1976, 361, 62, 76, 735, 929, 62, 29356, 14804, 774, 62, 24455, 13, 628, 220, 220, 220, 2251, 2134, 2376, 62, 4029, 62, 76, 735, 13, 198, 220, 220, 220, 2251, 2134, 2376, 62, 8968, 39133, 21065, 62, 4029, 62, 39098, 796, 2376, 62, 4029, 62, 76, 735, 13, 628, 220, 220, 220, 43979, 62, 22105, 62, 67, 13513, 12, 312, 796, 17031, 13, 628, 220, 220, 220, 2376, 62, 8968, 3784, 89, 361, 62, 5239, 17, 8658, 62, 22089, 62, 15234, 1304, 93, 19738, 7, 198, 220, 220, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 21975, 796, 705, 29214, 7753, 58, 2539, 28, 31, 312, 49946, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 66, 21471, 220, 796, 43979, 62, 22105, 62, 67, 13513, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 304, 62, 34924, 796, 43979, 62, 7890, 6739, 628, 220, 220, 220, 43979, 62, 11201, 62, 7890, 12, 7890, 796, 705, 19535, 47, 1340, 5188, 4458, 198, 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, 43979, 62, 7890, 198, 220, 220, 220, 220, 220, 1033, 796, 43979, 62, 11201, 62, 7890, 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, 2376, 62, 4029, 62, 76, 735, 3784, 76, 85, 62, 66, 5691, 198, 220, 220, 220, 220, 220, 1033, 796, 352, 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, 2376, 62 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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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 ]
FUNCTION-POOL ZCILIB_EXIT_REMOTE. "MESSAGE-ID .. * INCLUDE LZCILIB_EXIT_REMOTED... " Local class definition
[ 42296, 4177, 2849, 12, 16402, 3535, 1168, 34, 4146, 9865, 62, 6369, 2043, 62, 40726, 23051, 13, 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, 34, 4146, 9865, 62, 6369, 2043, 62, 40726, 2394, 1961, 986, 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 ]
CLASS zcl_abapgit_object_doma 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_dd01_texts, ddlanguage TYPE dd01v-ddlanguage, ddtext TYPE dd01v-ddtext, END OF ty_dd01_texts, BEGIN OF ty_dd07_texts, valpos TYPE dd07v-valpos, ddlanguage TYPE dd07v-ddlanguage, domvalue_l TYPE dd07v-domvalue_l, domvalue_h TYPE dd07v-domvalue_h, ddtext TYPE dd07v-ddtext, domval_ld TYPE dd07v-domval_ld, domval_hd TYPE dd07v-domval_hd, END OF ty_dd07_texts, tt_dd01_texts TYPE STANDARD TABLE OF ty_dd01_texts, tt_dd07_texts TYPE STANDARD TABLE OF ty_dd07_texts. CONSTANTS: c_longtext_id_doma TYPE dokil-id VALUE 'DO'. 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_dd01v TYPE dd01v it_dd07v TYPE dd07v_tab RAISING zcx_abapgit_exception. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_DOMA IMPLEMENTATION. METHOD deserialize_texts. DATA: lv_name TYPE ddobjname, ls_dd01v_tmp TYPE dd01v, lt_dd07v_tmp TYPE TABLE OF dd07v, lt_i18n_langs TYPE TABLE OF langu, lt_dd01_texts TYPE tt_dd01_texts, lt_dd07_texts TYPE tt_dd07_texts. FIELD-SYMBOLS: <lv_lang> LIKE LINE OF lt_i18n_langs, <ls_dd07v> LIKE LINE OF it_dd07v, <ls_dd01_text> LIKE LINE OF lt_dd01_texts, <ls_dd07_text> LIKE LINE OF lt_dd07_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 = 'DD01_TEXTS' CHANGING cg_data = lt_dd01_texts ). io_xml->read( EXPORTING iv_name = 'DD07_TEXTS' CHANGING cg_data = lt_dd07_texts ). SORT lt_i18n_langs. SORT lt_dd07_texts BY ddlanguage. " Optimization LOOP AT lt_i18n_langs ASSIGNING <lv_lang>. " Domain description ls_dd01v_tmp = is_dd01v. READ TABLE lt_dd01_texts ASSIGNING <ls_dd01_text> WITH KEY ddlanguage = <lv_lang>. IF sy-subrc > 0. zcx_abapgit_exception=>raise( |DD01_TEXTS cannot find lang { <lv_lang> } in XML| ). ENDIF. MOVE-CORRESPONDING <ls_dd01_text> TO ls_dd01v_tmp. " Domain values lt_dd07v_tmp = it_dd07v. LOOP AT lt_dd07v_tmp ASSIGNING <ls_dd07v>. READ TABLE lt_dd07_texts ASSIGNING <ls_dd07_text> WITH KEY ddlanguage = <lv_lang> valpos = <ls_dd07v>-valpos. CHECK sy-subrc = 0. " ! no translation -> master translation remain (maybe not OK) MOVE-CORRESPONDING <ls_dd07_text> TO <ls_dd07v>. DELETE lt_dd07_texts INDEX sy-tabix. " Optimization ENDLOOP. CALL FUNCTION 'DDIF_DOMA_PUT' EXPORTING name = lv_name dd01v_wa = ls_dd01v_tmp TABLES dd07v_tab = lt_dd07v_tmp EXCEPTIONS doma_not_found = 1 name_inconsistent = 2 doma_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from DDIF_DOMA_PUT @TEXTS' ). ENDIF. ENDLOOP. ENDMETHOD. METHOD serialize_texts. DATA: lv_name TYPE ddobjname, lv_index TYPE i, ls_dd01v TYPE dd01v, lt_dd07v TYPE TABLE OF dd07v, lt_i18n_langs TYPE TABLE OF langu, lt_dd01_texts TYPE tt_dd01_texts, lt_dd07_texts TYPE tt_dd07_texts. FIELD-SYMBOLS: <lv_lang> LIKE LINE OF lt_i18n_langs, <ls_dd07v> LIKE LINE OF lt_dd07v, <ls_dd01_text> LIKE LINE OF lt_dd01_texts, <ls_dd07_text> LIKE LINE OF lt_dd07_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 dd01v WHERE domname = lv_name AND ddlanguage <> mv_language. "#EC CI_SUBRC LOOP AT lt_i18n_langs ASSIGNING <lv_lang>. lv_index = sy-tabix. CALL FUNCTION 'DDIF_DOMA_GET' EXPORTING name = lv_name langu = <lv_lang> IMPORTING dd01v_wa = ls_dd01v TABLES dd07v_tab = lt_dd07v EXCEPTIONS illegal_input = 1 OTHERS = 2. IF sy-subrc <> 0 OR ls_dd01v-ddlanguage IS INITIAL. DELETE lt_i18n_langs INDEX lv_index. " Don't save this lang CONTINUE. ENDIF. APPEND INITIAL LINE TO lt_dd01_texts ASSIGNING <ls_dd01_text>. MOVE-CORRESPONDING ls_dd01v TO <ls_dd01_text>. LOOP AT lt_dd07v ASSIGNING <ls_dd07v> WHERE NOT ddlanguage IS INITIAL. APPEND INITIAL LINE TO lt_dd07_texts ASSIGNING <ls_dd07_text>. MOVE-CORRESPONDING <ls_dd07v> TO <ls_dd07_text>. ENDLOOP. ENDLOOP. SORT lt_i18n_langs ASCENDING. SORT lt_dd01_texts BY ddlanguage ASCENDING. SORT lt_dd07_texts BY valpos ASCENDING 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 = 'DD01_TEXTS' ig_data = lt_dd01_texts ). io_xml->add( iv_name = 'DD07_TEXTS' ig_data = lt_dd07_texts ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~changed_by. SELECT SINGLE as4user FROM dd01l INTO rv_user WHERE domname = 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~delete. * see class CL_WB_DDIC DATA: lv_objname TYPE rsedd0-ddobjname. lv_objname = ms_item-obj_name. TRY. CALL FUNCTION 'RS_DD_DELETE_OBJ' EXPORTING no_ask = abap_true objname = lv_objname objtype = 'D' no_ask_delete_append = abap_true 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, DOMA' ). ENDIF. CATCH cx_sy_dyn_call_param_not_found. CALL FUNCTION 'RS_DD_DELETE_OBJ' EXPORTING no_ask = abap_true objname = lv_objname objtype = 'D' * no_ask_delete_append = abap_true parameter not available in lower NW versions 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, DOMA' ). ENDIF. ENDTRY. delete_longtexts( c_longtext_id_doma ). ENDMETHOD. METHOD zif_abapgit_object~deserialize. * package SEDD * package SDIC * fm TR_TADIR_INTERFACE * fm RS_CORR_INSERT ? DATA: lv_name TYPE ddobjname, ls_dd01v TYPE dd01v, lt_dd07v TYPE TABLE OF dd07v. io_xml->read( EXPORTING iv_name = 'DD01V' CHANGING cg_data = ls_dd01v ). io_xml->read( EXPORTING iv_name = 'DD07V_TAB' CHANGING cg_data = lt_dd07v ). corr_insert( iv_package = iv_package iv_object_class = 'DICT' ). lv_name = ms_item-obj_name. " type conversion CALL FUNCTION 'DDIF_DOMA_PUT' EXPORTING name = lv_name dd01v_wa = ls_dd01v TABLES dd07v_tab = lt_dd07v EXCEPTIONS doma_not_found = 1 name_inconsistent = 2 doma_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from DDIF_DOMA_PUT' ). ENDIF. deserialize_texts( io_xml = io_xml is_dd01v = ls_dd01v it_dd07v = lt_dd07v ). deserialize_longtexts( io_xml ). zcl_abapgit_objects_activation=>add_item( ms_item ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_domname TYPE dd01l-domname. SELECT SINGLE domname FROM dd01l INTO lv_domname WHERE domname = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. DATA: ls_meta TYPE zif_abapgit_definitions=>ty_metadata. ls_meta = zif_abapgit_object~get_metadata( ). IF ls_meta-late_deser = abap_true. APPEND zif_abapgit_object=>gc_step_id-late TO rt_steps. ELSEIF ls_meta-ddic = abap_true. APPEND zif_abapgit_object=>gc_step_id-ddic TO rt_steps. ELSE. APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). rs_metadata-ddic = abap_true. ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'ESDICT' iv_argument = |{ ms_item-obj_type }{ ms_item-obj_name }| ). ENDMETHOD. METHOD zif_abapgit_object~jump. jump_se11( iv_radio = 'RSRD1-DOMA' iv_field = 'RSRD1-DOMA_VAL' ). ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_name TYPE ddobjname, ls_dd01v TYPE dd01v, lv_masklen TYPE c LENGTH 4, lt_dd07v TYPE TABLE OF dd07v. lv_name = ms_item-obj_name. CALL FUNCTION 'DDIF_DOMA_GET' EXPORTING name = lv_name langu = mv_language IMPORTING dd01v_wa = ls_dd01v TABLES dd07v_tab = lt_dd07v EXCEPTIONS illegal_input = 1 OTHERS = 2. IF sy-subrc <> 0 OR ls_dd01v IS INITIAL. zcx_abapgit_exception=>raise( 'error from DDIF_DOMA_GET' ). ENDIF. CLEAR: ls_dd01v-as4user, ls_dd01v-as4date, ls_dd01v-as4time. * make sure XML serialization does not dump if the field contains invalid data * note that this is a N field, so '' is not valid IF ls_dd01v-authclass = ''. CLEAR ls_dd01v-authclass. ENDIF. lv_masklen = ls_dd01v-masklen. IF lv_masklen = '' OR NOT lv_masklen CO '0123456789'. CLEAR ls_dd01v-masklen. ENDIF. SORT lt_dd07v BY valpos ASCENDING ddlanguage ASCENDING. io_xml->add( iv_name = 'DD01V' ig_data = ls_dd01v ). io_xml->add( iv_name = 'DD07V_TAB' ig_data = lt_dd07v ). serialize_texts( io_xml ). serialize_longtexts( io_xml = io_xml iv_longtext_id = c_longtext_id_doma ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 3438, 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, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 1860, 486, 62, 5239, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49427, 16129, 41876, 49427, 486, 85, 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, 486, 85, 12, 1860, 5239, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 1860, 486, 62, 5239, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 1860, 2998, 62, 5239, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1188, 1930, 220, 220, 220, 220, 41876, 49427, 2998, 85, 12, 2100, 1930, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49427, 16129, 41876, 49427, 2998, 85, 12, 1860, 16129, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2401, 8367, 62, 75, 41876, 49427, 2998, 85, 12, 3438, 8367, 62, 75, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2401, 8367, 62, 71, 41876, 49427, 2998, 85, 12, 3438, 8367, 62, 71, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49427, 5239, 220, 220, 220, 220, 41876, 49427, 2998, 85, 12, 1860, 5239, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2401, 2100, 62, 335, 220, 41876, 49427, 2998, 85, 12, 3438, 2100, 62, 335, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2401, 2100, 62, 31298, 220, 41876, 49427, 2998, 85, 12, 3438, 2100, 62, 31298, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 1860, 2998, 62, 5239, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 83, 62, 1860, 486, 62, 5239, 82, 41876, 49053, 9795, 43679, 3963, 1259, 62, 1860, 486, 62, 5239, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 83, 62, 1860, 2998, 62, 5239, 82, 41876, 49053, 9795, 43679, 3963, 1259, 62, 1860, 2998, 62, 5239, 82, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 269, 62, 6511, 5239, 62, 312, 62, 3438, 64, 41876, 466, 34553, 12, 312, 26173, 8924, 705, 18227, 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, 486, 85, 41876, 49427, 486, 85, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 1860, 2998, 85, 41876, 49427, 2998, 85, 62, 8658, 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, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 39170, 32, 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, 486, 85, 62, 22065, 220, 41876, 49427, 486, 85, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 1860, 2998, 85, 62, 22065, 220, 41876, 43679, 3963, 49427, 2998, 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, 486, 62, 5239, 82, 41876, 256, 83, 62, 1860, 486, 62, 5239, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 1860, 2998, 62, 5239, 82, 41876, 256, 83, 62, 1860, 2998, 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, 2998, 85, 29, 220, 220, 220, 220, 34178, 48920, 3963, 340, 62, 1860, 2998, 85, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 1860, 486, 62, 5239, 29, 34178, 48920, 3963, 300, 83, 62, 1860, 486, 62, 5239, 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, 2998 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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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HOD. METHOD if_apc_wsp_event_handler~on_message. * WRITE / 'on_message'. message = i_message->get_binary( ). ENDMETHOD. METHOD if_apc_wsp_event_handler~on_close. RETURN. ENDMETHOD. METHOD if_apc_wsp_event_handler~on_error. WRITE / 'on_error'. ENDMETHOD. ENDCLASS. CLASS ltcl_tcp DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL. PRIVATE SECTION. METHODS test1 FOR TESTING RAISING cx_static_check. ENDCLASS. CLASS ltcl_tcp IMPLEMENTATION. METHOD test1. DATA lo_handler TYPE REF TO lcl_handler. DATA li_client TYPE REF TO if_apc_wsp_client. DATA ls_frame TYPE if_abap_channel_types=>ty_apc_tcp_frame. DATA li_message_manager TYPE REF TO if_apc_wsp_message_manager. DATA li_message TYPE REF TO if_apc_wsp_message. CREATE OBJECT lo_handler. * todo, set ls_frame details li_client = cl_apc_tcp_client_manager=>create( i_host = 'httpbin.org' i_port = '80' i_frame = ls_frame i_event_handler = lo_handler ). li_client->connect( ). li_message_manager = li_client->get_message_manager( ). li_message = li_message_manager->create_message( ). li_message->set_binary( '112233' ). li_message_manager->send( li_message ). WAIT FOR PUSH CHANNELS UNTIL lo_handler->message IS NOT INITIAL UP TO 10 SECONDS. li_client->close( ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 565, 62, 30281, 5550, 20032, 17941, 25261, 764, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 611, 62, 499, 66, 62, 86, 2777, 62, 15596, 62, 30281, 13, 198, 220, 220, 220, 42865, 3275, 41876, 2124, 8841, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 30281, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 611, 62, 499, 66, 62, 86, 2777, 62, 15596, 62, 30281, 93, 261, 62, 9654, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 499, 66, 62, 86, 2777, 62, 15596, 62, 30281, 93, 261, 62, 20500, 13, 198, 9, 220, 220, 220, 44423, 1220, 705, 261, 62, 20500, 4458, 198, 220, 220, 220, 3275, 796, 1312, 62, 20500, 3784, 1136, 62, 39491, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 499, 66, 62, 86, 2777, 62, 15596, 62, 30281, 93, 261, 62, 19836, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 499, 66, 62, 86, 2777, 62, 15596, 62, 30281, 93, 261, 62, 18224, 13, 198, 220, 220, 220, 44423, 1220, 705, 261, 62, 18224, 4458, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 83, 13155, 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, 1332, 16, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 83, 13155, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 1332, 16, 13, 198, 220, 220, 220, 42865, 2376, 62, 30281, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 300, 565, 62, 30281, 13, 198, 220, 220, 220, 42865, 7649, 62, 16366, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 499, 66, 62, 86, 2777, 62, 16366, 13, 198, 220, 220, 220, 42865, 43979, 62, 14535, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 611, 62, 397, 499, 62, 17620, 62, 19199, 14804, 774, 62, 499, 66, 62, 83, 13155, 62, 14535, 13, 198, 220, 220, 220, 42865, 7649, 62, 20500, 62, 37153, 41876, 4526, 37, 5390, 611, 62, 499, 66, 62, 86, 2777, 62, 20500, 62, 37153, 13, 198, 220, 220, 220, 42865, 7649, 62, 20500, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 499, 66, 62, 86, 2777, 62, 20500, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 2376, 62, 30281, 13, 198, 198, 9, 284, 4598, 11, 900, 43979, 62, 14535, 3307, 628, 220, 220, 220, 7649, 62, 16366, 796, 537, 62, 499, 66, 62, 83, 13155, 62, 16366, 62, 37153, 14804, 17953, 7, 198, 220, 220, 220, 220, 220, 1312, 62, 4774, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 4023, 8800, 13, 2398, 6, 198, 220, 220, 220, 220, 220, 1312, 62, 634, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 1795, 6, 198, 220, 220, 220, 220, 220, 1312, 62, 14535, 220, 220, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 14535, 198, 220, 220, 220, 220, 220, 1312, 62, 15596, 62, 30281, 796, 2376, 62, 30281, 6739, 628, 220, 220, 220, 7649, 62, 16366, 3784, 8443, 7, 6739, 198, 220, 220, 220, 7649, 62, 20500, 62, 37153, 796, 7649, 62, 16366, 3784, 1136, 62, 20500, 62, 37153, 7, 6739, 198, 220, 220, 220, 7649, 62, 20500, 796, 7649, 62, 20500, 62, 37153, 3784, 17953, 62, 20500, 7, 6739, 198, 220, 220, 220, 7649, 62, 20500, 3784, 2617, 62, 39491, 7, 705, 14686, 25429, 6, 6739, 198, 220, 220, 220, 7649, 62, 20500, 62, 37153, 3784, 21280, 7, 7649, 62, 20500, 6739, 628, 220, 220, 220, 16400, 2043, 7473, 350, 27143, 5870, 22846, 37142, 198, 220, 220, 220, 220, 220, 4725, 51, 4146, 2376, 62, 30281, 3784, 20500, 3180, 5626, 3268, 2043, 12576, 198, 220, 220, 220, 220, 220, 15958, 5390, 838, 10729, 1340, 5258, 13, 628, 220, 220, 220, 7649, 62, 16366, 3784, 19836, 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 ]
*&---------------------------------------------------------------------* *& Include LZCA_WIDISPF01 *&---------------------------------------------------------------------* *&---------------------------------------------------------------------* *& Form display_document *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* FORM display_document USING p_row TYPE i p_column TYPE lvc_fname. DATA: ls_swotobjid TYPE swotobjid, lv_call_mode TYPE swf_calmod VALUE '02'. READ TABLE gt_attachments INTO DATA(ls_attach) INDEX p_row. IF sy-subrc EQ 0. ls_swotobjid-objtype = ls_attach-atypeid. ls_swotobjid-objkey = ls_attach-ainstid. CALL FUNCTION 'SWL_TRIGGER_DEFAULT_METHOD' EXPORTING object_por = ls_swotobjid call_mode = lv_call_mode EXCEPTIONS its_no_object = 1 error_while_calling_method = 2 OTHERS = 3. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. ENDIF. ENDFORM. " display_document
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 406, 57, 8141, 62, 54, 2389, 1797, 42668, 486, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 220, 220, 220, 220, 5178, 220, 3359, 62, 22897, 198, 9, 5, 10097, 30934, 9, 198, 9, 220, 220, 220, 220, 220, 220, 2420, 198, 9, 10097, 23031, 9, 198, 21389, 3359, 62, 22897, 1294, 2751, 279, 62, 808, 220, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 28665, 41876, 300, 28435, 62, 69, 3672, 13, 198, 220, 42865, 25, 43979, 62, 2032, 313, 26801, 312, 41876, 1509, 313, 26801, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 13345, 62, 14171, 41876, 1509, 69, 62, 9948, 4666, 26173, 8924, 705, 2999, 4458, 628, 198, 220, 20832, 43679, 308, 83, 62, 47348, 902, 39319, 42865, 7, 7278, 62, 47348, 8, 24413, 6369, 279, 62, 808, 13, 198, 220, 16876, 827, 12, 7266, 6015, 36529, 657, 13, 628, 220, 220, 220, 43979, 62, 2032, 313, 26801, 312, 12, 26801, 4906, 796, 43979, 62, 47348, 12, 265, 2981, 312, 13, 198, 220, 220, 220, 43979, 62, 2032, 313, 26801, 312, 12, 26801, 2539, 796, 43979, 62, 47348, 12, 391, 301, 312, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 17887, 43, 62, 5446, 3528, 30373, 62, 7206, 38865, 62, 49273, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 1819, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 2032, 313, 26801, 312, 198, 220, 220, 220, 220, 220, 220, 220, 869, 62, 14171, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 13345, 62, 14171, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 663, 62, 3919, 62, 15252, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 4049, 62, 4514, 62, 44714, 62, 24396, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 513, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 4522, 827, 12, 19662, 312, 41876, 827, 12, 19662, 774, 36871, 13246, 827, 12, 19662, 3919, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13315, 827, 12, 19662, 85, 16, 827, 12, 19662, 85, 17, 827, 12, 19662, 85, 18, 827, 12, 19662, 85, 19, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 5064, 13, 198, 198, 1677, 8068, 1581, 44, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 3359, 62, 22897, 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,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LASS zcl_capi_abstract_task DEFINITION PUBLIC ABSTRACT CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_capi_callable . INTERFACES if_serializable_object . INTERFACES zif_capi_task . METHODS constructor IMPORTING !iv_name TYPE string OPTIONAL . PROTECTED SECTION. CLASS-DATA gv_task_counter TYPE i . DATA mv_id TYPE guid_32 . DATA mv_name TYPE string . METHODS create_task_name . METHODS create_task_id . PRIVATE SECTION. ENDCLASS. CLASS ZCL_CAPI_ABSTRACT_TASK IMPLEMENTATION. METHOD constructor. create_task_id( ). IF iv_name IS SUPPLIED. mv_name = iv_name. ELSE. create_task_name( ). ENDIF. ENDMETHOD. METHOD create_task_id. CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_32 = mv_id. ENDMETHOD. METHOD create_task_name. DATA: lv_task_counter TYPE string. lv_task_counter = gv_task_counter = gv_task_counter + 1. CONCATENATE 'task_' lv_task_counter INTO mv_name. ENDMETHOD. METHOD zif_capi_callable~call. * This method needs to be overridden ENDMETHOD. METHOD zif_capi_task~get_id. rv_id = mv_id. ENDMETHOD. METHOD zif_capi_task~get_name. rv_name = mv_name. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 11128, 72, 62, 397, 8709, 62, 35943, 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, 23255, 37, 2246, 1546, 1976, 361, 62, 11128, 72, 62, 13345, 540, 764, 198, 220, 220, 220, 23255, 37, 2246, 1546, 611, 62, 46911, 13821, 62, 15252, 764, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 11128, 72, 62, 35943, 764, 628, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3672, 41876, 4731, 39852, 2849, 1847, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 42715, 12, 26947, 308, 85, 62, 35943, 62, 24588, 41876, 1312, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 312, 41876, 10103, 62, 2624, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 3672, 41876, 4731, 764, 628, 220, 220, 220, 337, 36252, 50, 2251, 62, 35943, 62, 3672, 764, 198, 220, 220, 220, 337, 36252, 50, 2251, 62, 35943, 62, 312, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 34, 17614, 62, 6242, 18601, 10659, 62, 51, 1921, 42, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2251, 62, 35943, 62, 312, 7, 6739, 628, 220, 220, 220, 16876, 21628, 62, 3672, 3180, 19549, 49094, 13, 198, 220, 220, 220, 220, 220, 285, 85, 62, 3672, 796, 21628, 62, 3672, 13, 198, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 2251, 62, 35943, 62, 3672, 7, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 2251, 62, 35943, 62, 312, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 38, 27586, 62, 43387, 6158, 6, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 819, 62, 5162, 312, 62, 2624, 796, 285, 85, 62, 312, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 2251, 62, 35943, 62, 3672, 13, 198, 220, 220, 220, 42865, 25, 300, 85, 62, 35943, 62, 24588, 41876, 4731, 13, 628, 220, 220, 220, 300, 85, 62, 35943, 62, 24588, 796, 308, 85, 62, 35943, 62, 24588, 796, 308, 85, 62, 35943, 62, 24588, 1343, 352, 13, 198, 220, 220, 220, 39962, 1404, 1677, 6158, 705, 35943, 62, 6, 300, 85, 62, 35943, 62, 24588, 39319, 285, 85, 62, 3672, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 11128, 72, 62, 13345, 540, 93, 13345, 13, 198, 9, 220, 220, 770, 2446, 2476, 284, 307, 23170, 4651, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 11128, 72, 62, 35943, 93, 1136, 62, 312, 13, 198, 220, 220, 220, 374, 85, 62, 312, 796, 285, 85, 62, 312, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 11128, 72, 62, 35943, 93, 1136, 62, 3672, 13, 198, 220, 220, 220, 374, 85, 62, 3672, 796, 285, 85, 62, 3672, 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, 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, 1, 1, 1 ]
CLASS zcl_hello_world DEFINITION PUBLIC. PUBLIC SECTION. METHODS hello RETURNING VALUE(result) TYPE string. ENDCLASS. CLASS zcl_hello_world IMPLEMENTATION. METHOD hello. result = 'Goodbye, Mars!'. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 31373, 62, 6894, 5550, 20032, 17941, 44731, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23748, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 4731, 13, 198, 10619, 31631, 13, 198, 198, 31631, 1976, 565, 62, 31373, 62, 6894, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 23748, 13, 198, 220, 220, 220, 1255, 796, 705, 10248, 16390, 11, 8706, 0, 4458, 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 ]
*&---------------------------------------------------------------------* *& Include for selection screen events *&---------------------------------------------------------------------* form auth_check. constants: lc_display type char40 value '03'. data: lv_auth_is_ok type abap_bool, lv_bukrs type char40, lt_bukrs type table of bukrs, ls_bukrs like line of lt_bukrs. " User is authorized by default lv_auth_is_ok = abap_true. " Check authorization for all company codes in range select bukrs from t001 into table lt_bukrs where bukrs in gs_selopt-bukrs. loop at lt_bukrs into ls_bukrs. clear: lv_bukrs. lv_bukrs = ls_bukrs. call function 'AUTHORITY_CHECK' exporting user = sy-uname object = 'F_BKPF_BUK' field1 = 'BUKRS' value1 = lv_bukrs field2 = 'ACTVT' value2 = lc_display exceptions user_dont_exist = 1 user_is_authorized = 2 user_not_authorized = 3 user_is_locked = 4 others = 5. if sy-subrc <> 2. lv_auth_is_ok = abap_false. exit. endif. endloop. if lv_auth_is_ok = abap_false. message text-101 type 'I' display like 'E'. leave list-processing. else. " Continue endif. endform. module status_100 output. data: lv_cont_name type scrfname value 'MAINCONTAINER', lv_cust_cont type ref to cl_gui_custom_container. go_controller->set_gui_status( ). if lv_cust_cont is initial. create object lv_cust_cont exporting container_name = lv_cont_name. go_controller->process_before_output( iv_container = lv_cust_cont ). endif. endmodule. module handle_pai input. go_controller->handle_user_action( ok_code ). case ok_code. when 'BACK' or 'EXIT'. leave to screen 0. when 'CANCEL'. leave program . endcase. endmodule.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 40348, 329, 6356, 3159, 2995, 198, 9, 5, 10097, 30934, 9, 198, 687, 6284, 62, 9122, 13, 198, 220, 38491, 25, 300, 66, 62, 13812, 2099, 1149, 1821, 1988, 705, 3070, 4458, 628, 220, 1366, 25, 198, 220, 220, 220, 300, 85, 62, 18439, 62, 271, 62, 482, 2099, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 300, 85, 62, 65, 2724, 3808, 220, 220, 220, 220, 220, 2099, 1149, 1821, 11, 198, 220, 220, 220, 300, 83, 62, 65, 2724, 3808, 220, 220, 220, 220, 220, 2099, 3084, 286, 809, 74, 3808, 11, 198, 220, 220, 220, 43979, 62, 65, 2724, 3808, 220, 220, 220, 220, 220, 588, 1627, 286, 300, 83, 62, 65, 2724, 3808, 13, 628, 220, 366, 11787, 318, 10435, 416, 4277, 198, 220, 300, 85, 62, 18439, 62, 271, 62, 482, 796, 450, 499, 62, 7942, 13, 628, 220, 366, 6822, 19601, 329, 477, 1664, 12416, 287, 2837, 198, 220, 2922, 809, 74, 3808, 198, 220, 220, 220, 422, 256, 8298, 198, 220, 220, 220, 656, 3084, 300, 83, 62, 65, 2724, 3808, 198, 220, 220, 220, 810, 809, 74, 3808, 287, 308, 82, 62, 741, 8738, 12, 65, 2724, 3808, 13, 628, 220, 9052, 379, 300, 83, 62, 65, 2724, 3808, 656, 43979, 62, 65, 2724, 3808, 13, 198, 220, 220, 220, 1598, 25, 300, 85, 62, 65, 2724, 3808, 13, 198, 220, 220, 220, 300, 85, 62, 65, 2724, 3808, 796, 43979, 62, 65, 2724, 3808, 13, 628, 220, 220, 220, 869, 2163, 705, 32, 24318, 1581, 9050, 62, 50084, 6, 198, 220, 220, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 220, 220, 2836, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 827, 12, 403, 480, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 37, 62, 33, 42, 42668, 62, 33, 15039, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2214, 16, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 33, 15039, 6998, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 16, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 65, 2724, 3808, 198, 220, 220, 220, 220, 220, 220, 220, 2214, 17, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 2246, 6849, 51, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 17, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 66, 62, 13812, 198, 220, 220, 220, 220, 220, 13269, 198, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 67, 756, 62, 38476, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 271, 62, 19721, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 1662, 62, 19721, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 271, 62, 24162, 220, 220, 220, 220, 220, 796, 604, 198, 220, 220, 220, 220, 220, 220, 220, 1854, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 642, 13, 628, 220, 220, 220, 611, 827, 12, 7266, 6015, 1279, 29, 362, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 18439, 62, 271, 62, 482, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 8420, 13, 198, 220, 220, 220, 45762, 13, 198, 220, 886, 26268, 13, 628, 220, 611, 300, 85, 62, 18439, 62, 271, 62, 482, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 3275, 2420, 12, 8784, 2099, 705, 40, 6, 3359, 588, 705, 36, 4458, 198, 220, 220, 220, 2666, 1351, 12, 36948, 13, 198, 220, 2073, 13, 198, 220, 220, 220, 366, 10054, 198, 220, 45762, 13, 198, 437, 687, 13, 198, 198, 21412, 3722, 62, 3064, 5072, 13, 198, 220, 1366, 25, 198, 220, 220, 220, 300, 85, 62, 3642, 62, 3672, 2099, 6040, 69, 3672, 1988, 705, 5673, 1268, 10943, 30339, 1137, 3256, 198, 220, 220, 220, 300, 85, 62, 66, 436, 62, 3642, 2099, 1006, 284, 537, 62, 48317, 62, 23144, 62, 34924, 13, 628, 220, 220, 220, 467, 62, 36500, 3784, 2617, 62, 48317, 62, 13376, 7, 6739, 628, 220, 220, 220, 611, 300, 85, 62, 66, 436, 62, 3642, 318, 4238, 13, 198, 220, 220, 220, 220, 220, 2251, 2134, 300, 85, 62, 66, 436, 62, 3642, 39133, 9290, 62, 3672, 796, 300, 85, 62, 3642, 62, 3672, 13, 198, 220, 220, 220, 220, 220, 467, 62, 36500, 3784, 14681, 62, 19052, 62, 22915, 7, 21628, 62, 34924, 796, 300, 85, 62, 66, 436, 62, 3642, 6739, 198, 220, 220, 220, 45762, 13, 198, 437, 21412, 13, 198, 198, 21412, 5412, 62, 49712, 5128, 13, 198, 220, 467, 62, 36500, 3784, 28144, 62, 7220, 62, 2673, 7, 12876, 62, 8189, 6739, 628, 220, 1339, 12876, 62, 8189, 13, 198, 220, 220, 220, 220, 220, 618, 705, 31098, 6, 393, 705, 6369, 2043, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 2666, 284, 3159, 657, 13, 198, 220, 220, 220, 220, 220, 618, 705, 34, 20940, 3698, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 2666, 1430, 764, 198, 220, 220, 220, 886, 7442, 13, 198, 437, 21412, 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, 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Another comment DATA variable TYPE string. variable = 'some text'. " in-line comment variable = |some text|. variable = |some { variable } text|. * eof *
[ 2200, 15490, 1976, 62, 397, 499, 18300, 62, 9288, 62, 1676, 70, 13, 198, 198, 9, 1306, 1627, 373, 2087, 198, 198, 9, 1306, 1627, 373, 3421, 198, 44, 1546, 4090, 8264, 705, 40985, 1627, 6, 41876, 705, 40, 4458, 198, 198, 9, 1306, 1627, 373, 4615, 198, 44, 1546, 4090, 8264, 705, 2787, 2668, 1627, 6, 41876, 705, 40, 4458, 198, 198, 9, 2773, 2912, 198, 1, 6023, 2912, 198, 26947, 7885, 41876, 4731, 13, 198, 198, 45286, 796, 705, 11246, 2420, 4458, 366, 287, 12, 1370, 2912, 198, 45286, 796, 930, 11246, 2420, 91, 13, 198, 45286, 796, 930, 11246, 1391, 7885, 1782, 2420, 91, 13, 198, 198, 9, 304, 1659, 1635, 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 ]
"! <p class="shorttext synchronized" lang="en">Factory for ADT links</p> CLASS zcl_adcoset_adt_obj_factory DEFINITION PUBLIC FINAL CREATE PRIVATE. PUBLIC SECTION. INTERFACES zif_adcoset_adt_obj_factory. CLASS-METHODS get_instance RETURNING VALUE(result) TYPE REF TO zif_adcoset_adt_obj_factory. PROTECTED SECTION. PRIVATE SECTION. CLASS-DATA instance TYPE REF TO zcl_adcoset_adt_obj_factory. DATA: uri_mapper TYPE REF TO if_adt_uri_mapper, mapping_options TYPE REF TO if_adt_mapping_options. METHODS: constructor, map_wb_object_to_objref IMPORTING wb_object TYPE REF TO cl_wb_object RETURNING VALUE(result) TYPE sadt_object_reference RAISING zcx_adcoset_static_error. ENDCLASS. CLASS zcl_adcoset_adt_obj_factory IMPLEMENTATION. METHOD get_instance. IF instance IS INITIAL. instance = NEW #( ). ENDIF. result = instance. ENDMETHOD. METHOD constructor. uri_mapper = cl_adt_tools_core_factory=>get_instance( )->get_uri_mapper( ). mapping_options = cl_adt_tools_core_factory=>get_instance( )->create_mapping_options( ). mapping_options->get_frag_types_accept_header( )->add( accepted_fragment_type = if_adt_frag_types_accept_hdr=>co_fragment_type_plaintext ). ENDMETHOD. METHOD zif_adcoset_adt_obj_factory~add_position_fragment. CHECK: link IS NOT INITIAL, start_line > 0. IF link NS '#'. link = |{ link }#|. ENDIF. link = |{ link }start={ start_line },{ COND #( WHEN start_column < 0 THEN 0 ELSE start_column ) }|. IF end_line <= 0 OR end_line < start_line OR end_column < 0. RETURN. ENDIF. link = |{ link };end={ end_line },{ end_column }|. ENDMETHOD. METHOD zif_adcoset_adt_obj_factory~get_object_ref_for_sub_object. cl_wb_object=>create_from_global_type( EXPORTING p_object_type = wbobjtype p_enclobj_name = CONV #( enclosing_object ) p_object_name = sub_object RECEIVING p_wb_object = DATA(wb_object) EXCEPTIONS OTHERS = 1 ). IF sy-subrc <> 0. RAISE EXCEPTION TYPE zcx_adcoset_static_error. ENDIF. result = map_wb_object_to_objref( wb_object ). ENDMETHOD. METHOD zif_adcoset_adt_obj_factory~get_object_ref_for_trobj. cl_wb_object=>create_from_transport_key( EXPORTING p_object = type p_obj_name = CONV #( name ) RECEIVING p_wb_object = DATA(wb_object) EXCEPTIONS OTHERS = 1 ). IF sy-subrc <> 0. RAISE EXCEPTION TYPE zcx_adcoset_static_error. ENDIF. result = map_wb_object_to_objref( wb_object ). IF result IS NOT INITIAL AND append_source_uri_path = abap_true. result-uri = |{ result-uri }/source/main|. ENDIF. ENDMETHOD. METHOD zif_adcoset_adt_obj_factory~get_object_ref_for_include. TRY. DATA(adt_obj_ref) = uri_mapper->map_include_to_objref( program = main_program include = include line = start_line line_offset = start_line_offset end_line = end_line end_offset = end_line_offset mapping_options = mapping_options ). result = adt_obj_ref->ref_data. CATCH cx_adt_uri_mapping INTO DATA(mapping_error). RAISE EXCEPTION TYPE zcx_adcoset_static_error EXPORTING previous = mapping_error. ENDTRY. ENDMETHOD. METHOD map_wb_object_to_objref. TRY. DATA(adt_obj_ref) = uri_mapper->map_wb_object_to_objref( wb_object = wb_object ). result = adt_obj_ref->ref_data. CATCH cx_adt_uri_mapping INTO DATA(mapping_error). RAISE EXCEPTION TYPE zcx_adcoset_static_error EXPORTING previous = mapping_error. ENDTRY. ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 22810, 329, 5984, 51, 6117, 3556, 79, 29, 198, 31631, 1976, 565, 62, 324, 6966, 316, 62, 324, 83, 62, 26801, 62, 69, 9548, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 324, 6966, 316, 62, 324, 83, 62, 26801, 62, 69, 9548, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 651, 62, 39098, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 324, 6966, 316, 62, 324, 83, 62, 26801, 62, 69, 9548, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42715, 12, 26947, 4554, 41876, 4526, 37, 5390, 1976, 565, 62, 324, 6966, 316, 62, 324, 83, 62, 26801, 62, 69, 9548, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 2956, 72, 62, 76, 11463, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 324, 83, 62, 9900, 62, 76, 11463, 11, 198, 220, 220, 220, 220, 220, 16855, 62, 25811, 41876, 4526, 37, 5390, 611, 62, 324, 83, 62, 76, 5912, 62, 25811, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 11, 198, 220, 220, 220, 220, 220, 3975, 62, 39346, 62, 15252, 62, 1462, 62, 26801, 5420, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 266, 65, 62, 15252, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 39346, 62, 15252, 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, 6507, 83, 62, 15252, 62, 35790, 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, 6966, 316, 62, 12708, 62, 18224, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 324, 6966, 316, 62, 324, 83, 62, 26801, 62, 69, 9548, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 651, 62, 39098, 13, 198, 220, 220, 220, 16876, 4554, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 4554, 796, 12682, 1303, 7, 6739, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 1255, 796, 4554, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 2956, 72, 62, 76, 11463, 796, 537, 62, 324, 83, 62, 31391, 62, 7295, 62, 69, 9548, 14804, 1136, 62, 39098, 7, 1267, 3784, 1136, 62, 9900, 62, 76, 11463, 7, 6739, 198, 220, 220, 220, 16855, 62, 25811, 796, 537, 62, 324, 83, 62, 31391, 62, 7295, 62, 69, 9548, 14804, 1136, 62, 39098, 7, 1267, 3784, 17953, 62, 76, 5912, 62, 25811, 7, 6739, 198, 220, 220, 220, 16855, 62, 25811, 3784, 1136, 62, 8310, 363, 62, 19199, 62, 13635, 62, 25677, 7, 198, 220, 220, 220, 220, 220, 1267, 3784, 2860, 7, 6292, 62, 8310, 363, 434, 62, 4906, 796, 611, 62, 324, 83, 62, 8310, 363, 62, 19199, 62, 13635, 62, 71, 7109, 14804, 1073, 62, 8310, 363, 434, 62, 4906, 62, 25638, 5239, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 324, 6966, 316, 62, 324, 83, 62, 26801, 62, 69, 9548, 93, 2860, 62, 9150, 62, 8310, 363, 434, 13, 198, 220, 220, 220, 5870, 25171, 25, 198, 220, 220, 220, 220, 220, 2792, 3180, 5626, 3268, 2043, 12576, 11, 198, 220, 220, 220, 220, 220, 923, 62, 1370, 1875, 657, 13, 628, 220, 220, 220, 16876, 2792, 10896, 705, 2, 4458, 198, 220, 220, 220, 220, 220, 2792, 796, 930, 90, 2792, 1782, 2, 91, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 2792, 796, 930, 90, 2792, 1782, 9688, 34758, 923, 62, 1370, 8964, 90, 7102, 35, 1303, 7, 42099, 923, 62, 28665, 1279, 657, 42243, 657, 17852, 5188, 923, 62, 28665, 1267, 1782, 91, 13, 628, 220, 220, 220, 16876, 886, 62, 1370, 19841, 657, 6375, 886, 62, 1370, 1279, 923, 62, 1370, 6375, 886, 62, 28665, 1279, 657, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 2792, 796, 930, 90, 2792, 18083, 437, 34758, 886, 62, 1370, 8964, 90, 886, 62, 28665, 1782, 91, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 324, 6966, 316, 62, 324, 83, 62, 26801, 62, 69, 9548, 93, 1136, 62, 15252, 62, 5420, 62, 1640, 62, 7266, 62, 15252, 13, 198, 220, 220, 220, 537, 62, 39346, 62, 15252, 14804, 17953, 62, 6738, 62, 20541, 62, 4906, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 15252, 62, 4906, 220, 796, 266, 65, 26801, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 268, 565, 26801, 62, 3672, 796, 7102, 53, 1303, 7, 13507, 2752, 62, 15252, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 15252, 62, 3672, 220, 796, 850, 62, 15252, 198, 220, 220, 220, 220, 220, 19644, 36, 3824, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 39346, 62, 15252, 220, 220, 220, 796, 42865, 7, 39346, 62, 15252, 8, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 796, 352, 6739, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 17926, 24352, 7788, 42006, 2849, 41876, 1976, 66, 87, 62, 324, 6966, 316, 62, 12708, 62, 18224, 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, 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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 ]
*"* components of interface /OOP/IF_CSV_PARSER_DELEGATE interface /OOP/IF_CSV_PARSER_DELEGATE public . methods VALUES_FOUND importing !VALUES type STRINGTAB . endinterface.
[ 9, 1, 9, 6805, 286, 7071, 1220, 46, 3185, 14, 5064, 62, 7902, 53, 62, 27082, 35009, 62, 7206, 2538, 38, 6158, 201, 198, 39994, 1220, 46, 3185, 14, 5064, 62, 7902, 53, 62, 27082, 35009, 62, 7206, 2538, 38, 6158, 201, 198, 220, 1171, 764, 201, 198, 201, 198, 201, 198, 220, 5050, 26173, 35409, 62, 37, 15919, 201, 198, 220, 220, 220, 33332, 201, 198, 220, 220, 220, 220, 220, 5145, 23428, 35409, 2099, 19269, 2751, 5603, 33, 764, 201, 198, 437, 39994, 13, 201, 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 ]