content
stringlengths
4
1.04M
input_ids
sequencelengths
2
1.02k
attention_mask
sequencelengths
2
1.02k
CLASS zcl_abapgit_objects_program DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super CREATE PUBLIC . PUBLIC SECTION. TYPES: BEGIN OF ty_progdir, name TYPE progdir-name, state TYPE progdir-state, sqlx TYPE progdir-sqlx, edtx TYPE progdir-edtx, varcl TYPE progdir-varcl, dbapl TYPE progdir-dbapl, dbna TYPE progdir-dbna, clas TYPE progdir-clas, type TYPE progdir-type, occurs TYPE progdir-occurs, subc TYPE progdir-subc, appl TYPE progdir-appl, secu TYPE progdir-secu, cnam TYPE progdir-cnam, cdat TYPE progdir-cdat, unam TYPE progdir-unam, udat TYPE progdir-udat, vern TYPE progdir-vern, levl TYPE progdir-levl, rstat TYPE progdir-rstat, rmand TYPE progdir-rmand, rload TYPE progdir-rload, fixpt TYPE progdir-fixpt, sset TYPE progdir-sset, sdate TYPE progdir-sdate, stime TYPE progdir-stime, idate TYPE progdir-idate, itime TYPE progdir-itime, ldbname TYPE progdir-ldbname, uccheck TYPE progdir-uccheck, END OF ty_progdir. METHODS serialize_program IMPORTING !io_xml TYPE REF TO zif_abapgit_xml_output OPTIONAL !is_item TYPE zif_abapgit_definitions=>ty_item !io_files TYPE REF TO zcl_abapgit_objects_files !iv_program TYPE programm OPTIONAL !iv_extra TYPE clike OPTIONAL RAISING zcx_abapgit_exception. METHODS read_progdir IMPORTING !iv_program TYPE programm RETURNING VALUE(rs_progdir) TYPE ty_progdir. METHODS deserialize_program IMPORTING !is_progdir TYPE ty_progdir !it_source TYPE abaptxt255_tab !it_tpool TYPE textpool_table !iv_package TYPE devclass RAISING zcx_abapgit_exception. PROTECTED SECTION. TYPES: ty_spaces_tt TYPE STANDARD TABLE OF i WITH DEFAULT KEY . TYPES: BEGIN OF ty_dynpro, header TYPE rpy_dyhead, containers TYPE dycatt_tab, fields TYPE dyfatc_tab, flow_logic TYPE swydyflow, spaces TYPE ty_spaces_tt, END OF ty_dynpro . TYPES: ty_dynpro_tt TYPE STANDARD TABLE OF ty_dynpro WITH DEFAULT KEY . TYPES: BEGIN OF ty_cua, adm TYPE rsmpe_adm, sta TYPE STANDARD TABLE OF rsmpe_stat WITH DEFAULT KEY, fun TYPE STANDARD TABLE OF rsmpe_funt WITH DEFAULT KEY, men TYPE STANDARD TABLE OF rsmpe_men WITH DEFAULT KEY, mtx TYPE STANDARD TABLE OF rsmpe_mnlt WITH DEFAULT KEY, act TYPE STANDARD TABLE OF rsmpe_act WITH DEFAULT KEY, but TYPE STANDARD TABLE OF rsmpe_but WITH DEFAULT KEY, pfk TYPE STANDARD TABLE OF rsmpe_pfk WITH DEFAULT KEY, set TYPE STANDARD TABLE OF rsmpe_staf WITH DEFAULT KEY, doc TYPE STANDARD TABLE OF rsmpe_atrt WITH DEFAULT KEY, tit TYPE STANDARD TABLE OF rsmpe_titt WITH DEFAULT KEY, biv TYPE STANDARD TABLE OF rsmpe_buts WITH DEFAULT KEY, END OF ty_cua . METHODS strip_generation_comments CHANGING ct_source TYPE STANDARD TABLE. " tab of string or charX METHODS serialize_dynpros IMPORTING !iv_program_name TYPE programm RETURNING VALUE(rt_dynpro) TYPE ty_dynpro_tt RAISING zcx_abapgit_exception . METHODS serialize_cua IMPORTING !iv_program_name TYPE programm RETURNING VALUE(rs_cua) TYPE ty_cua RAISING zcx_abapgit_exception . METHODS deserialize_dynpros IMPORTING !it_dynpros TYPE ty_dynpro_tt RAISING zcx_abapgit_exception . METHODS deserialize_textpool IMPORTING !iv_program TYPE programm !it_tpool TYPE textpool_table !iv_language TYPE sy-langu OPTIONAL !iv_is_include TYPE abap_bool DEFAULT abap_false RAISING zcx_abapgit_exception . METHODS deserialize_cua IMPORTING !iv_program_name TYPE programm !is_cua TYPE ty_cua RAISING zcx_abapgit_exception . METHODS is_any_dynpro_locked IMPORTING !iv_program TYPE programm RETURNING VALUE(rv_is_any_dynpro_locked) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS is_cua_locked IMPORTING !iv_program TYPE programm RETURNING VALUE(rv_is_cua_locked) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS is_text_locked IMPORTING !iv_program TYPE programm RETURNING VALUE(rv_is_text_locked) TYPE abap_bool RAISING zcx_abapgit_exception . CLASS-METHODS add_tpool IMPORTING !it_tpool TYPE textpool_table RETURNING VALUE(rt_tpool) TYPE zif_abapgit_definitions=>ty_tpool_tt . CLASS-METHODS read_tpool IMPORTING !it_tpool TYPE zif_abapgit_definitions=>ty_tpool_tt RETURNING VALUE(rt_tpool) TYPE zif_abapgit_definitions=>ty_tpool_tt . PRIVATE SECTION. METHODS: uncondense_flow IMPORTING it_flow TYPE swydyflow it_spaces TYPE ty_spaces_tt RETURNING VALUE(rt_flow) TYPE swydyflow. CLASS-METHODS auto_correct_cua_adm IMPORTING is_cua TYPE ty_cua CHANGING cs_adm TYPE rsmpe_adm. METHODS get_program_title IMPORTING !it_tpool TYPE textpool_table RETURNING VALUE(rv_title) TYPE repti . METHODS insert_program IMPORTING !is_progdir TYPE ty_progdir !it_source TYPE abaptxt255_tab !iv_title TYPE repti !iv_package TYPE devclass RAISING zcx_abapgit_exception . METHODS update_program IMPORTING !is_progdir TYPE ty_progdir !it_source TYPE abaptxt255_tab !iv_title TYPE repti RAISING zcx_abapgit_exception . METHODS update_progdir IMPORTING !is_progdir TYPE ty_progdir RAISING zcx_abapgit_exception . ENDCLASS. CLASS ZCL_ABAPGIT_OBJECTS_PROGRAM IMPLEMENTATION. METHOD add_tpool. FIELD-SYMBOLS: <ls_tpool_in> LIKE LINE OF it_tpool, <ls_tpool_out> LIKE LINE OF rt_tpool. LOOP AT it_tpool ASSIGNING <ls_tpool_in>. APPEND INITIAL LINE TO rt_tpool ASSIGNING <ls_tpool_out>. MOVE-CORRESPONDING <ls_tpool_in> TO <ls_tpool_out>. IF <ls_tpool_out>-id = 'S'. <ls_tpool_out>-split = <ls_tpool_out>-entry. <ls_tpool_out>-entry = <ls_tpool_out>-entry+8. ENDIF. ENDLOOP. ENDMETHOD. METHOD auto_correct_cua_adm. " issue #1807 automatic correction of CUA interfaces saved incorrectly in the past (ADM was not saved in the XML) CONSTANTS: lc_num_n_space TYPE string VALUE ' 0123456789', lc_num_only TYPE string VALUE '0123456789'. FIELD-SYMBOLS: <ls_pfk> TYPE rsmpe_pfk, <ls_act> TYPE rsmpe_act, <ls_men> TYPE rsmpe_men. IF cs_adm IS NOT INITIAL AND cs_adm-actcode CO lc_num_n_space AND cs_adm-mencode CO lc_num_n_space AND cs_adm-pfkcode CO lc_num_n_space. "Check performed in form check_adm of include LSMPIF03 RETURN. ENDIF. LOOP AT is_cua-act ASSIGNING <ls_act>. IF <ls_act>-code+6(14) IS INITIAL AND <ls_act>-code(6) CO lc_num_only. cs_adm-actcode = <ls_act>-code. ENDIF. ENDLOOP. LOOP AT is_cua-men ASSIGNING <ls_men>. IF <ls_men>-code+6(14) IS INITIAL AND <ls_men>-code(6) CO lc_num_only. cs_adm-mencode = <ls_men>-code. ENDIF. ENDLOOP. LOOP AT is_cua-pfk ASSIGNING <ls_pfk>. IF <ls_pfk>-code+6(14) IS INITIAL AND <ls_pfk>-code(6) CO lc_num_only. cs_adm-pfkcode = <ls_pfk>-code. ENDIF. ENDLOOP. ENDMETHOD. METHOD deserialize_cua. DATA: ls_tr_key TYPE trkey, ls_adm TYPE rsmpe_adm. IF lines( is_cua-sta ) = 0 AND lines( is_cua-fun ) = 0 AND lines( is_cua-men ) = 0 AND lines( is_cua-mtx ) = 0 AND lines( is_cua-act ) = 0 AND lines( is_cua-but ) = 0 AND lines( is_cua-pfk ) = 0 AND lines( is_cua-set ) = 0 AND lines( is_cua-doc ) = 0 AND lines( is_cua-tit ) = 0 AND lines( is_cua-biv ) = 0. RETURN. ENDIF. SELECT SINGLE devclass INTO ls_tr_key-devclass FROM tadir WHERE pgmid = 'R3TR' AND object = ms_item-obj_type AND obj_name = ms_item-obj_name. "#EC CI_GENBUFF IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'not found in tadir' ). ENDIF. ls_tr_key-obj_type = ms_item-obj_type. ls_tr_key-obj_name = ms_item-obj_name. ls_tr_key-sub_type = 'CUAD'. ls_tr_key-sub_name = iv_program_name. ls_adm = is_cua-adm. auto_correct_cua_adm( EXPORTING is_cua = is_cua CHANGING cs_adm = ls_adm ). sy-tcode = 'SE41' ##WRITE_OK. " evil hack, workaround to handle fixes in note 2159455 CALL FUNCTION 'RS_CUA_INTERNAL_WRITE' EXPORTING program = iv_program_name language = mv_language tr_key = ls_tr_key adm = ls_adm state = 'I' TABLES sta = is_cua-sta fun = is_cua-fun men = is_cua-men mtx = is_cua-mtx act = is_cua-act but = is_cua-but pfk = is_cua-pfk set = is_cua-set doc = is_cua-doc tit = is_cua-tit biv = is_cua-biv EXCEPTIONS not_found = 1 OTHERS = 2. IF sy-subrc <> 0. * if moving code from SAPlink, see https://github.com/abapGit/abapGit/issues/562 zcx_abapgit_exception=>raise_t100( ). ENDIF. zcl_abapgit_objects_activation=>add( iv_type = 'CUAD' iv_name = iv_program_name ). ENDMETHOD. METHOD deserialize_dynpros. CONSTANTS lc_rpyty_force_off TYPE c LENGTH 1 VALUE '/'. DATA: lv_name TYPE dwinactiv-obj_name, lt_d020s_to_delete TYPE TABLE OF d020s, ls_d020s LIKE LINE OF lt_d020s_to_delete, ls_dynpro LIKE LINE OF it_dynpros. FIELD-SYMBOLS: <ls_field> TYPE rpy_dyfatc. " Delete DYNPROs which are not in the list CALL FUNCTION 'RS_SCREEN_LIST' EXPORTING dynnr = '' progname = ms_item-obj_name TABLES dynpros = lt_d020s_to_delete EXCEPTIONS not_found = 1 OTHERS = 2. IF sy-subrc = 2. zcx_abapgit_exception=>raise_t100( ). ENDIF. SORT lt_d020s_to_delete BY dnum ASCENDING. * ls_dynpro is changed by the function module, a field-symbol will cause * the program to dump since it_dynpros cannot be changed LOOP AT it_dynpros INTO ls_dynpro. READ TABLE lt_d020s_to_delete WITH KEY dnum = ls_dynpro-header-screen TRANSPORTING NO FIELDS BINARY SEARCH. IF sy-subrc = 0. DELETE lt_d020s_to_delete INDEX sy-tabix. ENDIF. " todo: kept for compatibility, remove after grace period #3680 ls_dynpro-flow_logic = uncondense_flow( it_flow = ls_dynpro-flow_logic it_spaces = ls_dynpro-spaces ). LOOP AT ls_dynpro-fields ASSIGNING <ls_field>. * if the DDIC element has a PARAMETER_ID and the flag "from_dict" is active * the import will enable the SET-/GET_PARAM flag. In this case: "force off" IF <ls_field>-param_id IS NOT INITIAL AND <ls_field>-from_dict = abap_true. IF <ls_field>-set_param IS INITIAL. <ls_field>-set_param = lc_rpyty_force_off. ENDIF. IF <ls_field>-get_param IS INITIAL. <ls_field>-get_param = lc_rpyty_force_off. ENDIF. ENDIF. * If the previous conditions are met the value 'F' will be taken over * during de-serialization potentially overlapping other fields in the screen, * we set the tag to the correct value 'X' IF <ls_field>-type = 'CHECK' AND <ls_field>-from_dict = abap_true AND <ls_field>-text IS INITIAL AND <ls_field>-modific IS INITIAL. <ls_field>-modific = 'X'. ENDIF. "fix for issue #2747: IF <ls_field>-foreignkey IS INITIAL. <ls_field>-foreignkey = lc_rpyty_force_off. ENDIF. ENDLOOP. CALL FUNCTION 'RPY_DYNPRO_INSERT' EXPORTING header = ls_dynpro-header suppress_exist_checks = abap_true TABLES containers = ls_dynpro-containers fields_to_containers = ls_dynpro-fields flow_logic = ls_dynpro-flow_logic EXCEPTIONS cancelled = 1 already_exists = 2 program_not_exists = 3 not_executed = 4 missing_required_field = 5 illegal_field_value = 6 field_not_allowed = 7 not_generated = 8 illegal_field_position = 9 OTHERS = 10. IF sy-subrc <> 2 AND sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. * todo, RPY_DYNPRO_UPDATE? CONCATENATE ls_dynpro-header-program ls_dynpro-header-screen INTO lv_name RESPECTING BLANKS. ASSERT NOT lv_name IS INITIAL. zcl_abapgit_objects_activation=>add( iv_type = 'DYNP' iv_name = lv_name ). ENDLOOP. " Delete obsolete screens LOOP AT lt_d020s_to_delete INTO ls_d020s. CALL FUNCTION 'RS_SCRP_DELETE' EXPORTING dynnr = ls_d020s-dnum progname = ms_item-obj_name with_popup = abap_false EXCEPTIONS enqueued_by_user = 1 enqueue_system_failure = 2 not_executed = 3 not_exists = 4 no_modify_permission = 5 popup_canceled = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDLOOP. ENDMETHOD. METHOD deserialize_program. DATA: lv_progname TYPE reposrc-progname, lv_title TYPE rglif-title. CALL FUNCTION 'RS_CORR_INSERT' EXPORTING object = is_progdir-name object_class = 'ABAP' devclass = iv_package master_language = mv_language mode = 'I' suppress_dialog = abap_true EXCEPTIONS cancelled = 1 permission_failure = 2 unknown_objectclass = 3 OTHERS = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. lv_title = get_program_title( it_tpool ). " Check if program already exists SELECT SINGLE progname FROM reposrc INTO lv_progname WHERE progname = is_progdir-name AND r3state = 'A'. IF sy-subrc = 0. update_program( is_progdir = is_progdir it_source = it_source iv_title = lv_title ). ELSE. insert_program( is_progdir = is_progdir it_source = it_source iv_title = lv_title iv_package = iv_package ). ENDIF. update_progdir( is_progdir ). zcl_abapgit_objects_activation=>add( iv_type = 'REPS' iv_name = is_progdir-name ). ENDMETHOD. METHOD deserialize_textpool. DATA lv_language TYPE sy-langu. DATA lv_state TYPE c. DATA lv_delete TYPE abap_bool. IF iv_language IS INITIAL. lv_language = mv_language. ELSE. lv_language = iv_language. ENDIF. IF lv_language = mv_language. lv_state = 'I'. "Textpool in main language needs to be activated ELSE. lv_state = 'A'. "Translations are always active ENDIF. IF it_tpool IS INITIAL. IF iv_is_include = abap_false OR lv_state = 'A'. DELETE TEXTPOOL iv_program "Remove initial description from textpool if LANGUAGE lv_language "original program does not have a textpool STATE lv_state. lv_delete = abap_true. ELSE. INSERT TEXTPOOL iv_program "In case of includes: Deletion of textpool in FROM it_tpool "main language cannot be activated because LANGUAGE lv_language "this woul activate the deletion of the textpool STATE lv_state. "of the mail program -> insert empty textpool ENDIF. ELSE. INSERT TEXTPOOL iv_program FROM it_tpool LANGUAGE lv_language STATE lv_state. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from INSERT TEXTPOOL' ). ENDIF. ENDIF. IF lv_state = 'I'. "Textpool in main language needs to be activated zcl_abapgit_objects_activation=>add( iv_type = 'REPT' iv_name = iv_program iv_delete = lv_delete ). ENDIF. ENDMETHOD. METHOD get_program_title. DATA ls_tpool LIKE LINE OF it_tpool. FIELD-SYMBOLS <lg_any> TYPE any. READ TABLE it_tpool INTO ls_tpool WITH KEY id = 'R'. IF sy-subrc = 0. " there is a bug in RPY_PROGRAM_UPDATE, the header line of TTAB is not " cleared, so the title length might be inherited from a different program. ASSIGN ('(SAPLSIFP)TTAB') TO <lg_any>. IF sy-subrc = 0. CLEAR <lg_any>. ENDIF. rv_title = ls_tpool-entry. ENDIF. ENDMETHOD. METHOD insert_program. CALL FUNCTION 'RPY_PROGRAM_INSERT' EXPORTING development_class = iv_package program_name = is_progdir-name program_type = is_progdir-subc title_string = iv_title save_inactive = 'I' suppress_dialog = abap_true TABLES source_extended = it_source EXCEPTIONS already_exists = 1 cancelled = 2 name_not_allowed = 3 permission_error = 4 OTHERS = 5. IF sy-subrc = 3. " For cases that standard function does not handle (like FUGR), " we save active and inactive version of source with the given PROGRAM TYPE. " Without the active version, the code will not be visible in case of activation errors. INSERT REPORT is_progdir-name FROM it_source STATE 'A' PROGRAM TYPE is_progdir-subc. INSERT REPORT is_progdir-name FROM it_source STATE 'I' PROGRAM TYPE is_progdir-subc. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from INSERT REPORT .. PROGRAM TYPE' ). ENDIF. ELSEIF sy-subrc > 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD is_any_dynpro_locked. DATA: lt_dynpros TYPE ty_dynpro_tt, lv_object TYPE seqg3-garg. FIELD-SYMBOLS: <ls_dynpro> TYPE ty_dynpro. lt_dynpros = serialize_dynpros( iv_program ). LOOP AT lt_dynpros ASSIGNING <ls_dynpro>. lv_object = |{ <ls_dynpro>-header-screen }{ <ls_dynpro>-header-program }|. IF exists_a_lock_entry_for( iv_lock_object = 'ESCRP' iv_argument = lv_object ) = abap_true. rv_is_any_dynpro_locked = abap_true. EXIT. ENDIF. ENDLOOP. ENDMETHOD. METHOD is_cua_locked. DATA: lv_object TYPE eqegraarg. lv_object = |CU{ iv_program }|. OVERLAY lv_object WITH ' '. lv_object = lv_object && '*'. rv_is_cua_locked = exists_a_lock_entry_for( iv_lock_object = 'ESCUAPAINT' iv_argument = lv_object ). ENDMETHOD. METHOD is_text_locked. DATA: lv_object TYPE eqegraarg. lv_object = |*{ iv_program }|. rv_is_text_locked = exists_a_lock_entry_for( iv_lock_object = 'EABAPTEXTE' iv_argument = lv_object ). ENDMETHOD. METHOD read_progdir. DATA: ls_sapdir TYPE progdir. CALL FUNCTION 'READ_PROGDIR' EXPORTING i_progname = iv_program i_state = 'A' IMPORTING e_progdir = ls_sapdir. MOVE-CORRESPONDING ls_sapdir TO rs_progdir. CLEAR: rs_progdir-edtx, rs_progdir-cnam, rs_progdir-cdat, rs_progdir-unam, rs_progdir-udat, rs_progdir-levl, rs_progdir-vern, rs_progdir-rmand, rs_progdir-sdate, rs_progdir-stime, rs_progdir-idate, rs_progdir-itime, rs_progdir-varcl, rs_progdir-state. ENDMETHOD. METHOD read_tpool. FIELD-SYMBOLS: <ls_tpool_in> LIKE LINE OF it_tpool, <ls_tpool_out> LIKE LINE OF rt_tpool. LOOP AT it_tpool ASSIGNING <ls_tpool_in>. APPEND INITIAL LINE TO rt_tpool ASSIGNING <ls_tpool_out>. MOVE-CORRESPONDING <ls_tpool_in> TO <ls_tpool_out>. IF <ls_tpool_out>-id = 'S'. CONCATENATE <ls_tpool_in>-split <ls_tpool_in>-entry INTO <ls_tpool_out>-entry RESPECTING BLANKS. ENDIF. ENDLOOP. ENDMETHOD. METHOD serialize_cua. CALL FUNCTION 'RS_CUA_INTERNAL_FETCH' EXPORTING program = iv_program_name language = mv_language state = 'A' IMPORTING adm = rs_cua-adm TABLES sta = rs_cua-sta fun = rs_cua-fun men = rs_cua-men mtx = rs_cua-mtx act = rs_cua-act but = rs_cua-but pfk = rs_cua-pfk set = rs_cua-set doc = rs_cua-doc tit = rs_cua-tit biv = rs_cua-biv EXCEPTIONS not_found = 1 unknown_version = 2 OTHERS = 3. IF sy-subrc > 1. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD serialize_dynpros. DATA: ls_header TYPE rpy_dyhead, lt_containers TYPE dycatt_tab, lt_fields_to_containers TYPE dyfatc_tab, lt_flow_logic TYPE swydyflow, lt_d020s TYPE TABLE OF d020s, lt_fieldlist_int TYPE TABLE OF d021s. "internal format FIELD-SYMBOLS: <ls_d020s> LIKE LINE OF lt_d020s, <lv_outputstyle> TYPE scrpostyle, <ls_container> LIKE LINE OF lt_containers, <ls_field> LIKE LINE OF lt_fields_to_containers, <ls_dynpro> LIKE LINE OF rt_dynpro, <ls_field_int> LIKE LINE OF lt_fieldlist_int. "#2746: relevant flag values (taken from include MSEUSBIT) CONSTANTS: lc_flg1ddf TYPE x VALUE '20', lc_flg3fku TYPE x VALUE '08', lc_flg3for TYPE x VALUE '04', lc_flg3fdu TYPE x VALUE '02'. CALL FUNCTION 'RS_SCREEN_LIST' EXPORTING dynnr = '' progname = iv_program_name TABLES dynpros = lt_d020s EXCEPTIONS not_found = 1 OTHERS = 2. IF sy-subrc = 2. zcx_abapgit_exception=>raise_t100( ). ENDIF. SORT lt_d020s BY dnum ASCENDING. * loop dynpros and skip generated selection screens LOOP AT lt_d020s ASSIGNING <ls_d020s> WHERE type <> 'S' AND type <> 'W' AND type <> 'J' AND NOT dnum IS INITIAL. CALL FUNCTION 'RPY_DYNPRO_READ' EXPORTING progname = iv_program_name dynnr = <ls_d020s>-dnum IMPORTING header = ls_header TABLES containers = lt_containers fields_to_containers = lt_fields_to_containers flow_logic = lt_flow_logic EXCEPTIONS cancelled = 1 not_found = 2 permission_error = 3 OTHERS = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. "#2746: we need the dynpro fields in internal format: FREE lt_fieldlist_int. CALL FUNCTION 'RPY_DYNPRO_READ_NATIVE' EXPORTING progname = iv_program_name dynnr = <ls_d020s>-dnum TABLES fieldlist = lt_fieldlist_int. LOOP AT lt_fields_to_containers ASSIGNING <ls_field>. * output style is a NUMC field, the XML conversion will fail if it contains invalid value * field does not exist in all versions ASSIGN COMPONENT 'OUTPUTSTYLE' OF STRUCTURE <ls_field> TO <lv_outputstyle>. IF sy-subrc = 0 AND <lv_outputstyle> = ' '. CLEAR <lv_outputstyle>. ENDIF. "2746: we apply the same logic as in SAPLWBSCREEN "for setting or unsetting the foreignkey field: UNASSIGN <ls_field_int>. READ TABLE lt_fieldlist_int ASSIGNING <ls_field_int> WITH KEY fnam = <ls_field>-name. IF <ls_field_int> IS ASSIGNED. IF <ls_field_int>-flg1 O lc_flg1ddf AND <ls_field_int>-flg3 O lc_flg3for AND <ls_field_int>-flg3 Z lc_flg3fdu AND <ls_field_int>-flg3 Z lc_flg3fku. <ls_field>-foreignkey = 'X'. ELSE. CLEAR <ls_field>-foreignkey. ENDIF. ENDIF. IF <ls_field>-from_dict = abap_true AND <ls_field>-modific <> 'F' AND <ls_field>-modific <> 'X'. CLEAR <ls_field>-text. ENDIF. ENDLOOP. LOOP AT lt_containers ASSIGNING <ls_container>. IF <ls_container>-c_resize_v = abap_false. CLEAR <ls_container>-c_line_min. ENDIF. IF <ls_container>-c_resize_h = abap_false. CLEAR <ls_container>-c_coln_min. ENDIF. ENDLOOP. APPEND INITIAL LINE TO rt_dynpro ASSIGNING <ls_dynpro>. <ls_dynpro>-header = ls_header. <ls_dynpro>-containers = lt_containers. <ls_dynpro>-fields = lt_fields_to_containers. <ls_dynpro>-flow_logic = lt_flow_logic. ENDLOOP. ENDMETHOD. METHOD serialize_program. DATA: ls_progdir TYPE ty_progdir, lv_program_name TYPE programm, lt_dynpros TYPE ty_dynpro_tt, ls_cua TYPE ty_cua, lt_source TYPE TABLE OF abaptxt255, lt_tpool TYPE textpool_table, ls_tpool LIKE LINE OF lt_tpool, li_xml TYPE REF TO zif_abapgit_xml_output. IF iv_program IS INITIAL. lv_program_name = is_item-obj_name. ELSE. lv_program_name = iv_program. ENDIF. zcl_abapgit_language=>set_current_language( mv_language ). CALL FUNCTION 'RPY_PROGRAM_READ' EXPORTING program_name = lv_program_name with_includelist = abap_false with_lowercase = abap_true TABLES source_extended = lt_source textelements = lt_tpool EXCEPTIONS cancelled = 1 not_found = 2 permission_error = 3 OTHERS = 4. IF sy-subrc = 2. zcl_abapgit_language=>restore_login_language( ). RETURN. ELSEIF sy-subrc <> 0. zcl_abapgit_language=>restore_login_language( ). zcx_abapgit_exception=>raise_t100( ). ENDIF. zcl_abapgit_language=>restore_login_language( ). ls_progdir = read_progdir( lv_program_name ). IF io_xml IS BOUND. li_xml = io_xml. ELSE. CREATE OBJECT li_xml TYPE zcl_abapgit_xml_output. ENDIF. li_xml->add( iv_name = 'PROGDIR' ig_data = ls_progdir ). IF ls_progdir-subc = '1' OR ls_progdir-subc = 'M'. lt_dynpros = serialize_dynpros( lv_program_name ). li_xml->add( iv_name = 'DYNPROS' ig_data = lt_dynpros ). ls_cua = serialize_cua( lv_program_name ). IF NOT ls_cua IS INITIAL. li_xml->add( iv_name = 'CUA' ig_data = ls_cua ). ENDIF. ENDIF. READ TABLE lt_tpool WITH KEY id = 'R' INTO ls_tpool. IF sy-subrc = 0 AND ls_tpool-key = '' AND ls_tpool-length = 0. DELETE lt_tpool INDEX sy-tabix. ENDIF. li_xml->add( iv_name = 'TPOOL' ig_data = add_tpool( lt_tpool ) ). IF NOT io_xml IS BOUND. io_files->add_xml( iv_extra = iv_extra ii_xml = li_xml ). ENDIF. strip_generation_comments( CHANGING ct_source = lt_source ). io_files->add_abap( iv_extra = iv_extra it_abap = lt_source ). ENDMETHOD. METHOD strip_generation_comments. FIELD-SYMBOLS <lv_line> TYPE any. " Assuming CHAR (e.g. abaptxt255_tab) or string (FUGR) IF ms_item-obj_type <> 'FUGR'. RETURN. ENDIF. " Case 1: MV FM main prog and TOPs READ TABLE ct_source INDEX 1 ASSIGNING <lv_line>. IF sy-subrc = 0 AND <lv_line> CP '#**regenerated at *'. DELETE ct_source INDEX 1. RETURN. ENDIF. " Case 2: MV FM includes IF lines( ct_source ) < 5. " Generation header length RETURN. ENDIF. READ TABLE ct_source INDEX 1 ASSIGNING <lv_line>. ASSERT sy-subrc = 0. IF NOT <lv_line> CP '#*---*'. RETURN. ENDIF. READ TABLE ct_source INDEX 2 ASSIGNING <lv_line>. ASSERT sy-subrc = 0. IF NOT <lv_line> CP '#**'. RETURN. ENDIF. READ TABLE ct_source INDEX 3 ASSIGNING <lv_line>. ASSERT sy-subrc = 0. IF NOT <lv_line> CP '#**generation date:*'. RETURN. ENDIF. READ TABLE ct_source INDEX 4 ASSIGNING <lv_line>. ASSERT sy-subrc = 0. IF NOT <lv_line> CP '#**generator version:*'. RETURN. ENDIF. READ TABLE ct_source INDEX 5 ASSIGNING <lv_line>. ASSERT sy-subrc = 0. IF NOT <lv_line> CP '#*---*'. RETURN. ENDIF. DELETE ct_source INDEX 4. DELETE ct_source INDEX 3. ENDMETHOD. METHOD uncondense_flow. DATA: lv_spaces LIKE LINE OF it_spaces. FIELD-SYMBOLS: <ls_flow> LIKE LINE OF it_flow, <ls_output> LIKE LINE OF rt_flow. LOOP AT it_flow ASSIGNING <ls_flow>. APPEND INITIAL LINE TO rt_flow ASSIGNING <ls_output>. <ls_output>-line = <ls_flow>-line. READ TABLE it_spaces INDEX sy-tabix INTO lv_spaces. IF sy-subrc = 0. SHIFT <ls_output>-line RIGHT BY lv_spaces PLACES IN CHARACTER MODE. ENDIF. ENDLOOP. ENDMETHOD. METHOD update_progdir. DATA ls_progdir_new TYPE progdir. CALL FUNCTION 'READ_PROGDIR' EXPORTING i_progname = is_progdir-name i_state = 'I' IMPORTING e_progdir = ls_progdir_new EXCEPTIONS not_exists = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error reading program directory' ). ENDIF. ls_progdir_new-ldbname = is_progdir-ldbname. ls_progdir_new-dbna = is_progdir-dbna. ls_progdir_new-dbapl = is_progdir-dbapl. ls_progdir_new-rload = is_progdir-rload. ls_progdir_new-fixpt = is_progdir-fixpt. ls_progdir_new-varcl = is_progdir-varcl. ls_progdir_new-appl = is_progdir-appl. ls_progdir_new-rstat = is_progdir-rstat. ls_progdir_new-sqlx = is_progdir-sqlx. ls_progdir_new-uccheck = is_progdir-uccheck. ls_progdir_new-clas = is_progdir-clas. CALL FUNCTION 'UPDATE_PROGDIR' EXPORTING i_progdir = ls_progdir_new i_progname = ls_progdir_new-name i_state = ls_progdir_new-state EXCEPTIONS not_executed = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error updating program directory' ). ENDIF. " function UPDATE_PROGDIR does not update VARCL, so we do it here SELECT SINGLE * FROM progdir INTO ls_progdir_new WHERE name = ls_progdir_new-name AND state = ls_progdir_new-state. IF sy-subrc = 0 AND is_progdir-varcl <> ls_progdir_new-varcl. UPDATE progdir SET varcl = is_progdir-varcl WHERE name = ls_progdir_new-name AND state = ls_progdir_new-state. "#EC CI_SUBRC ENDIF. ENDMETHOD. METHOD update_program. zcl_abapgit_language=>set_current_language( mv_language ). CALL FUNCTION 'RPY_PROGRAM_UPDATE' EXPORTING program_name = is_progdir-name title_string = iv_title save_inactive = 'I' TABLES source_extended = it_source EXCEPTIONS cancelled = 1 permission_error = 2 not_found = 3 OTHERS = 4. IF sy-subrc <> 0. zcl_abapgit_language=>restore_login_language( ). IF sy-msgid = 'EU' AND sy-msgno = '510'. zcx_abapgit_exception=>raise( 'User is currently editing program' ). ELSEIF sy-msgid = 'EU' AND sy-msgno = '522'. " for generated table maintenance function groups, the author is set to SAP* instead of the user which " generates the function group. This hits some standard checks, pulling new code again sets the author " to the current user which avoids the check zcx_abapgit_exception=>raise( |Delete function group and pull again, { is_progdir-name } (EU522)| ). ELSE. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDIF. zcl_abapgit_language=>restore_login_language( ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 23065, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 1676, 70, 15908, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 41876, 1172, 15908, 12, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1181, 220, 220, 41876, 1172, 15908, 12, 5219, 11, 198, 220, 220, 220, 220, 220, 220, 220, 44161, 87, 220, 220, 220, 41876, 1172, 15908, 12, 25410, 87, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1225, 17602, 220, 220, 220, 41876, 1172, 15908, 12, 276, 17602, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1401, 565, 220, 220, 41876, 1172, 15908, 12, 7785, 565, 11, 198, 220, 220, 220, 220, 220, 220, 220, 288, 7012, 489, 220, 220, 41876, 1172, 15908, 12, 67, 7012, 489, 11, 198, 220, 220, 220, 220, 220, 220, 220, 20613, 2616, 220, 220, 220, 41876, 1172, 15908, 12, 9945, 2616, 11, 198, 220, 220, 220, 220, 220, 220, 220, 537, 292, 220, 220, 220, 41876, 1172, 15908, 12, 565, 292, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 41876, 1172, 15908, 12, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 8833, 220, 41876, 1172, 15908, 12, 13966, 1834, 11, 198, 220, 220, 220, 220, 220, 220, 220, 850, 66, 220, 220, 220, 41876, 1172, 15908, 12, 7266, 66, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3680, 220, 220, 220, 41876, 1172, 15908, 12, 1324, 75, 11, 198, 220, 220, 220, 220, 220, 220, 220, 792, 84, 220, 220, 220, 41876, 1172, 15908, 12, 2363, 84, 11, 198, 220, 220, 220, 220, 220, 220, 220, 269, 7402, 220, 220, 220, 41876, 1172, 15908, 12, 66, 7402, 11, 198, 220, 220, 220, 220, 220, 220, 220, 269, 19608, 220, 220, 220, 41876, 1172, 15908, 12, 10210, 265, 11, 198, 220, 220, 220, 220, 220, 220, 220, 555, 321, 220, 220, 220, 41876, 1172, 15908, 12, 403, 321, 11, 198, 220, 220, 220, 220, 220, 220, 220, 334, 19608, 220, 220, 220, 41876, 1172, 15908, 12, 463, 265, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 933, 220, 220, 220, 41876, 1172, 15908, 12, 933, 11, 198, 220, 220, 220, 220, 220, 220, 220, 443, 19279, 220, 220, 220, 41876, 1172, 15908, 12, 2768, 75, 11, 198, 220, 220, 220, 220, 220, 220, 220, 374, 14269, 220, 220, 41876, 1172, 15908, 12, 81, 14269, 11, 198, 220, 220, 220, 220, 220, 220, 220, 374, 22249, 220, 220, 41876, 1172, 15908, 12, 81, 22249, 11, 198, 220, 220, 220, 220, 220, 220, 220, 374, 2220, 220, 220, 41876, 1172, 15908, 12, 81, 2220, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4259, 457, 220, 220, 41876, 1172, 15908, 12, 13049, 457, 11, 198, 220, 220, 220, 220, 220, 220, 220, 264, 2617, 220, 220, 220, 41876, 1172, 15908, 12, 824, 316, 11, 198, 220, 220, 220, 220, 220, 220, 220, 264, 4475, 220, 220, 41876, 1172, 15908, 12, 82, 4475, 11, 198, 220, 220, 220, 220, 220, 220, 220, 336, 524, 220, 220, 41876, 1172, 15908, 12, 301, 524, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 378, 220, 220, 41876, 1172, 15908, 12, 20540, 11, 198, 220, 220, 220, 220, 220, 220, 220, 340, 524, 220, 220, 41876, 1172, 15908, 12, 22552, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 9945, 3672, 41876, 1172, 15908, 12, 335, 65, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 334, 535, 258, 694, 41876, 1172, 15908, 12, 18863, 258, 694, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 1676, 70, 15908, 13, 628, 220, 220, 220, 337, 36252, 50, 11389, 1096, 62, 23065, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 19875, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 19875, 62, 22915, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 9186, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 16624, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16624, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 23065, 41876, 1430, 76, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26086, 41876, 537, 522, 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, 13, 198, 220, 220, 220, 337, 36252, 50, 1100, 62, 1676, 70, 15908, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 23065, 41876, 1430, 76, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 1676, 70, 15908, 8, 41876, 1259, 62, 1676, 70, 15908, 13, 198, 220, 220, 220, 337, 36252, 50, 748, 48499, 1096, 62, 23065, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 1676, 70, 15908, 41876, 1259, 62, 1676, 70, 15908, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 10459, 41876, 450, 2373, 742, 13381, 62, 8658, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 83, 7742, 41876, 2420, 7742, 62, 11487, 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, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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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 ]
"! <p class="shorttext synchronized" lang="en">Map for custom value help</p> CLASS zcl_dbbr_custom_f4_map DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. "! <p class="shorttext synchronized" lang="en">Reads custom F4 definitions for the given table-field</p> METHODS read_custom_f4_definition IMPORTING iv_tablename TYPE tabname iv_fieldname TYPE fieldname iv_rollname TYPE rollname OPTIONAL is_built_in_type TYPE zdbbr_built_in_data_type OPTIONAL EXPORTING et_custom_f4_definitions TYPE zdbbr_f4_data_itab. "! <p class="shorttext synchronized" lang="en">Reads custom f4 definitions for the given table</p> METHODS read_custom_f4_definitions IMPORTING iv_tablename TYPE tabname. "! <p class="shorttext synchronized" lang="en">Read and cache custom f4 w/o necessary field assignment</p> "! METHODS read_same_type_custom_f4_defs. "! <p class="shorttext synchronized" lang="en">Clears all buffered custom f4 definitions</p> METHODS clear. "! <p class="shorttext synchronized" lang="en">Clears all buffered F4 def. for the given table field</p> METHODS clear_f4_for_field IMPORTING iv_tabname TYPE tabname iv_fieldname TYPE fieldname. "! <p class="shorttext synchronized" lang="en">Determine F4 for given table field</p> METHODS determine_f4_for_field IMPORTING iv_tabname TYPE tabname iv_fieldname TYPE fieldname. "! <p class="shorttext synchronized" lang="en">Checks if there is a custom F4 for the given table field</p> METHODS entry_exists IMPORTING iv_tabname TYPE tabname iv_fieldname TYPE fieldname iv_rollname TYPE rollname OPTIONAL is_built_in_type TYPE zdbbr_built_in_data_type OPTIONAL RETURNING VALUE(rf_exists) TYPE boolean. PROTECTED SECTION. PRIVATE SECTION. DATA: mt_custom_f4_by_dt_map TYPE HASHED TABLE OF zdbbr_custom_f4_map WITH UNIQUE KEY rollname datatype length. DATA: mt_custom_f4_map TYPE zdbbr_custom_f4_map_itab. ENDCLASS. CLASS zcl_dbbr_custom_f4_map IMPLEMENTATION. METHOD clear. CLEAR mt_custom_f4_map. ENDMETHOD. METHOD clear_f4_for_field. DELETE mt_custom_f4_map WHERE tabname = iv_tabname AND fieldname = iv_fieldname. ENDMETHOD. METHOD read_custom_f4_definition. IF iv_tablename = zif_dbbr_c_global=>c_parameter_dummy_table. ASSIGN mt_custom_f4_map[ fieldname = iv_fieldname ] TO FIELD-SYMBOL(<ls_custom_f4_map>). ELSE. ASSIGN mt_custom_f4_map[ tabname = iv_tablename fieldname = iv_fieldname ] TO <ls_custom_f4_map>. ENDIF. IF sy-subrc = 0. et_custom_f4_definitions = <ls_custom_f4_map>-f4_definitions. ELSE. IF iv_rollname IS NOT INITIAL. ASSIGN mt_custom_f4_by_dt_map[ rollname = iv_rollname ] TO <ls_custom_f4_map>. ELSE. ASSIGN mt_custom_f4_by_dt_map[ datatype = is_built_in_type-datatype length = is_built_in_type-leng ] TO <ls_custom_f4_map>. ENDIF. IF sy-subrc = 0. et_custom_f4_definitions = <ls_custom_f4_map>-f4_definitions. ENDIF. ENDIF. ENDMETHOD. METHOD determine_f4_for_field. zcl_dbbr_custom_f4_factory=>find_f4_for_table( EXPORTING iv_tabname = iv_tabname IMPORTING et_f4 = DATA(lt_f4) ). DELETE lt_f4 WHERE fieldname <> iv_fieldname. CHECK lt_f4 IS NOT INITIAL. INSERT VALUE #( tabname = iv_tabname fieldname = iv_fieldname f4_definitions = lt_f4 ) INTO TABLE mt_custom_f4_map. ENDMETHOD. METHOD entry_exists. rf_exists = xsdbool( line_exists( mt_custom_f4_map[ tabname = iv_tabname fieldname = iv_fieldname ] ) ). CHECK rf_exists = abap_false. IF iv_rollname IS INITIAL AND is_built_in_type IS INITIAL. RETURN. ENDIF. *.. Check cache for already read F4 that match the passed data type IF iv_rollname IS NOT INITIAL. rf_exists = xsdbool( line_exists( mt_custom_f4_by_dt_map[ rollname = iv_rollname ] ) ). *.... If the requesting field has a data element no further checks against *.... the buffered value helps will be performed RETURN. ENDIF. rf_exists = xsdbool( line_exists( mt_custom_f4_by_dt_map[ datatype = is_built_in_type-datatype length = is_built_in_type-leng ] ) ). ENDMETHOD. METHOD read_custom_f4_definitions. IF NOT line_exists( mt_custom_f4_map[ tabname = iv_tablename ] ). zcl_dbbr_custom_f4_factory=>find_f4_for_table( EXPORTING iv_tabname = iv_tablename IMPORTING et_f4 = DATA(lt_f4) ). LOOP AT lt_f4 ASSIGNING FIELD-SYMBOL(<ls_f4>) GROUP BY ( tabname = <ls_f4>-tabname fieldname = <ls_f4>-fieldname ) ASSIGNING FIELD-SYMBOL(<ls_f4_group>). INSERT VALUE #( tabname = <ls_f4_group>-tabname fieldname = <ls_f4_group>-fieldname f4_definitions = VALUE zdbbr_f4_data_itab( FOR f4 IN GROUP <ls_f4_group> ( f4 ) ) ) INTO TABLE mt_custom_f4_map. ENDLOOP. ENDIF. ENDMETHOD. METHOD read_same_type_custom_f4_defs. zcl_dbbr_custom_f4_factory=>find_f4_for_datatype( EXPORTING if_apply_to_same_data = abap_true IMPORTING et_f4 = DATA(lt_f4) ). LOOP AT lt_f4 ASSIGNING FIELD-SYMBOL(<ls_f4>) GROUP BY ( rollname = <ls_f4>-rollname datatype = <ls_f4>-datatype length = <ls_f4>-length ) ASSIGNING FIELD-SYMBOL(<ls_f4_group>). INSERT VALUE #( rollname = <ls_f4_group>-rollname datatype = <ls_f4_group>-datatype length = <ls_f4_group>-length f4_definitions = VALUE #( FOR f4 IN GROUP <ls_f4_group> ( f4 ) ) ) INTO TABLE mt_custom_f4_by_dt_map. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 13912, 329, 2183, 1988, 1037, 3556, 79, 29, 198, 31631, 1976, 565, 62, 9945, 1671, 62, 23144, 62, 69, 19, 62, 8899, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 5569, 82, 2183, 376, 19, 17336, 329, 262, 1813, 3084, 12, 3245, 3556, 79, 29, 198, 220, 220, 220, 337, 36252, 50, 1100, 62, 23144, 62, 69, 19, 62, 46758, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 8658, 11925, 480, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 7400, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3245, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2214, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 2487, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4836, 3672, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 18780, 62, 259, 62, 4906, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 9945, 1671, 62, 18780, 62, 259, 62, 7890, 62, 4906, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2123, 62, 23144, 62, 69, 19, 62, 4299, 50101, 41876, 1976, 9945, 1671, 62, 69, 19, 62, 7890, 62, 270, 397, 13, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 5569, 82, 2183, 277, 19, 17336, 329, 262, 1813, 3084, 3556, 79, 29, 198, 220, 220, 220, 337, 36252, 50, 1100, 62, 23144, 62, 69, 19, 62, 4299, 50101, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 8658, 11925, 480, 41876, 7400, 3672, 13, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 5569, 290, 12940, 2183, 277, 19, 266, 14, 78, 3306, 2214, 16237, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 198, 220, 220, 220, 337, 36252, 50, 1100, 62, 31642, 62, 4906, 62, 23144, 62, 69, 19, 62, 4299, 82, 13, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 34349, 945, 477, 6940, 1068, 2183, 277, 19, 17336, 3556, 79, 29, 198, 220, 220, 220, 337, 36252, 50, 1598, 13, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 34349, 945, 477, 6940, 1068, 376, 19, 825, 13, 329, 262, 1813, 3084, 2214, 3556, 79, 29, 198, 220, 220, 220, 337, 36252, 50, 1598, 62, 69, 19, 62, 1640, 62, 3245, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 8658, 3672, 220, 220, 41876, 7400, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3245, 3672, 41876, 2214, 3672, 13, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 35, 2357, 3810, 376, 19, 329, 1813, 3084, 2214, 3556, 79, 29, 198, 220, 220, 220, 337, 36252, 50, 5004, 62, 69, 19, 62, 1640, 62, 3245, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 8658, 3672, 220, 220, 41876, 7400, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3245, 3672, 41876, 2214, 3672, 13, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 7376, 4657, 611, 612, 318, 257, 2183, 376, 19, 329, 262, 1813, 3084, 2214, 3556, 79, 29, 198, 220, 220, 220, 337, 36252, 50, 5726, 62, 1069, 1023, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 8658, 3672, 220, 220, 220, 220, 220, 220, 41876, 7400, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3245, 3672, 220, 220, 220, 220, 41876, 2214, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 2487, 3672, 220, 220, 220, 220, 220, 41876, 4836, 3672, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 18780, 62, 259, 62, 4906, 41876, 1976, 9945, 1671, 62, 18780, 62, 259, 62, 7890, 62, 4906, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 41871, 62, 1069, 1023, 8, 41876, 25131, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 45079, 62, 23144, 62, 69, 19, 62, 1525, 62, 28664, 62, 8899, 41876, 367, 11211, 1961, 43679, 3963, 1976, 9945, 1671, 62, 23144, 62, 69, 19, 62, 8899, 13315, 4725, 33866, 8924, 35374, 4836, 3672, 4818, 265, 2981, 4129, 13, 198, 220, 220, 220, 42865, 25, 45079, 62, 23144, 62, 69, 19, 62, 8899, 41876, 1976, 9945, 1671, 62, 23144, 62, 69, 19, 62, 8899, 62, 270, 397, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 9945, 1671, 62, 23144, 62, 69, 19, 62, 8899, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 1598, 13, 198, 220, 220, 220, 30301, 1503, 45079, 62, 23144, 62, 69, 19, 62, 8899, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1598, 62, 69, 19, 62, 1640, 62, 3245, 13, 198, 220, 220, 220, 5550, 2538, 9328, 45079, 62, 23144, 62, 69, 19, 62, 8899, 33411, 7400, 3672, 796, 21628, 62, 8658, 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, 5357, 2214, 3672, 796, 21628, 62, 3245, 3672, 13, 198, 220, 23578, 49273, 13, 628, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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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 ]
interface ZIF_UITB_ALV_CONTROLLER public . endinterface.
[ 39994, 1168, 5064, 62, 52, 2043, 33, 62, 1847, 53, 62, 10943, 5446, 46, 3069, 1137, 198, 220, 1171, 764, 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 ]
CLASS zcl_abapgit_objects DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. TYPES: ty_types_tt TYPE SORTED TABLE OF tadir-object WITH UNIQUE KEY table_line . TYPES: BEGIN OF ty_serialization, files TYPE zif_abapgit_definitions=>ty_files_tt, item TYPE zif_abapgit_definitions=>ty_item, END OF ty_serialization . CLASS-METHODS serialize IMPORTING !is_item TYPE zif_abapgit_definitions=>ty_item !iv_language TYPE spras !iv_main_language_only TYPE abap_bool DEFAULT abap_false !it_translation_langs TYPE zif_abapgit_definitions=>ty_languages OPTIONAL RETURNING VALUE(rs_files_and_item) TYPE 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 !ii_log TYPE REF TO zif_abapgit_log 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 . 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 is_type_supported IMPORTING !iv_obj_type TYPE zif_abapgit_definitions=>ty_item-obj_type 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_supported_types, obj_type TYPE tadir-object, supported TYPE abap_bool, END OF ty_supported_types. TYPES: ty_supported_types_tt TYPE SORTED TABLE OF ty_supported_types WITH UNIQUE KEY obj_type. TYPES: BEGIN OF ty_obj_serializer_item, item TYPE zif_abapgit_definitions=>ty_item, metadata TYPE zif_abapgit_definitions=>ty_metadata, END OF ty_obj_serializer_item . TYPES: ty_obj_serializer_map TYPE SORTED TABLE OF ty_obj_serializer_item WITH UNIQUE KEY item . CLASS-DATA gt_obj_serializer_map TYPE ty_obj_serializer_map . CLASS-DATA gt_supported_obj_types TYPE ty_supported_types_tt . CLASS-DATA gv_supported_obj_types_loaded TYPE abap_bool . CLASS-METHODS check_duplicates IMPORTING !it_files TYPE zif_abapgit_definitions=>ty_files_tt RAISING zcx_abapgit_exception . CLASS-METHODS class_name IMPORTING !is_item TYPE zif_abapgit_definitions=>ty_item RETURNING VALUE(rv_class_name) TYPE string . CLASS-METHODS update_package_tree IMPORTING !iv_package TYPE devclass . CLASS-METHODS delete_object IMPORTING !iv_package TYPE devclass !is_item TYPE zif_abapgit_definitions=>ty_item !iv_transport TYPE trkorr 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 zif_abapgit_objects=>ty_step_data !ii_log TYPE REF TO zif_abapgit_log !iv_transport TYPE trkorr 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 get_deserialize_steps RETURNING VALUE(rt_steps) TYPE zif_abapgit_objects=>ty_step_data_tt . CLASS-METHODS check_main_package IMPORTING !iv_package TYPE devclass !iv_obj_type TYPE tadir-object RAISING zcx_abapgit_exception . CLASS-METHODS change_package_assignments IMPORTING !is_item TYPE zif_abapgit_definitions=>ty_item !ii_log TYPE REF TO zif_abapgit_log . ENDCLASS. CLASS zcl_abapgit_objects IMPLEMENTATION. METHOD changed_by. DATA: li_obj TYPE REF TO zif_abapgit_object. " For unsupported objects, return empty string IF is_type_supported( is_item-obj_type ) = abap_false. RETURN. ENDIF. TRY. li_obj = create_object( is_item = is_item iv_language = zif_abapgit_definitions=>c_english ). rv_user = li_obj->changed_by( ). CATCH zcx_abapgit_exception ##NO_HANDLER. " Ignore errors ENDTRY. IF rv_user IS INITIAL. " Eg. ".abapgit.xml" file rv_user = zcl_abapgit_objects_super=>c_user_unknown. ENDIF. ENDMETHOD. METHOD change_package_assignments. CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING wi_tadir_pgmid = 'R3TR' wi_tadir_object = is_item-obj_type wi_tadir_obj_name = is_item-obj_name wi_tadir_devclass = is_item-devclass wi_test_modus = abap_false EXCEPTIONS OTHERS = 1. IF sy-subrc = 0. ii_log->add_success( iv_msg = |Object { is_item-obj_name } assigned to package { is_item-devclass }| is_item = is_item ). ELSE. ii_log->add_error( iv_msg = |Package change of object { is_item-obj_name } failed| is_item = is_item ). ENDIF. 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 STANDARD TABLE OF string WITH DEFAULT KEY, lv_duplicates LIKE LINE OF lt_duplicates, lv_all_duplicates TYPE string. FIELD-SYMBOLS: <ls_file> LIKE LINE OF it_files. lt_files = it_files. SORT lt_files BY path ASCENDING filename ASCENDING. LOOP AT lt_files ASSIGNING <ls_file>. IF lv_path = <ls_file>-path AND lv_filename = <ls_file>-filename. CONCATENATE <ls_file>-path <ls_file>-filename INTO lv_duplicates. APPEND lv_duplicates TO lt_duplicates. ENDIF. lv_path = <ls_file>-path. lv_filename = <ls_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_main_package. " check package restrictions, closed package, descriptive or " functional package cl_pak_object_types=>check_object_type( EXPORTING i_working_mode = 'I' i_package_name = iv_package i_pgmid = 'R3TR' i_object_type = iv_obj_type EXCEPTIONS wrong_object_type = 1 package_not_extensible = 2 package_not_loaded = 3 OTHERS = 4 ). CASE sy-subrc. WHEN 0. RETURN. WHEN 2. zcx_abapgit_exception=>raise( |Object type { iv_obj_type } not allowed for package { iv_package }| ). WHEN OTHERS. zcx_abapgit_exception=>raise_t100( ). ENDCASE. 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>. " You should remember that we ignore not supported objects here, " because otherwise the process aborts which is not desired IF is_type_supported( <ls_item>-obj_type ) = abap_false. CONTINUE. ENDIF. 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. 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, li_remote_version TYPE REF TO zif_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, 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 file COMPONENTS 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 li_remote_version TYPE zcl_abapgit_xml_input 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( ii_remote = li_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? IF zcl_abapgit_ui_factory=>get_frontend_services( )->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. 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 deserialization * Once this has been triggered, the same deserializer 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 } is not supported by this system|. 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_deleted LIKE it_tadir, lt_items TYPE zif_abapgit_definitions=>ty_items_tt, lx_error TYPE REF TO zcx_abapgit_exception, lv_count TYPE i. 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 ). CATCH zcx_abapgit_exception INTO lx_error. zcl_abapgit_default_transport=>get_instance( )->reset( ). RAISE EXCEPTION lx_error. ENDTRY. lv_count = 1. DO. CLEAR lt_deleted. LOOP AT lt_tadir ASSIGNING <ls_tadir>. li_progress->show( iv_current = lv_count iv_text = |Delete { <ls_tadir>-obj_name }| ). CLEAR ls_item. ls_item-obj_type = <ls_tadir>-object. ls_item-obj_name = <ls_tadir>-obj_name. TRY. delete_object( iv_package = <ls_tadir>-devclass is_item = ls_item iv_transport = is_checks-transport-transport ). INSERT <ls_tadir> INTO TABLE lt_deleted. DELETE lt_tadir. lv_count = lv_count + 1. " make sure to save object deletions COMMIT WORK. CATCH zcx_abapgit_exception INTO lx_error. IF ii_log IS BOUND. ii_log->add_exception( ix_exc = lx_error is_item = ls_item ). ii_log->add_error( iv_msg = |Deletion of object { ls_item-obj_name } failed| is_item = ls_item ). ENDIF. ENDTRY. ENDLOOP. " Exit if done or nothing else was deleted IF lines( lt_tadir ) = 0 OR lines( lt_deleted ) = 0. EXIT. ENDIF. ENDDO. zcl_abapgit_default_transport=>get_instance( )->reset( ). IF lx_error IS BOUND AND lines( lt_tadir ) > 0. zcx_abapgit_exception=>raise( 'Error during uninstall. Check the log.' ). ENDIF. li_progress->off( ). ENDMETHOD. METHOD delete_object. DATA: li_obj TYPE REF TO zif_abapgit_object. " Nothing to do for unsupported objects IF is_type_supported( is_item-obj_type ) = abap_false. RETURN. ENDIF. li_obj = create_object( is_item = is_item iv_language = zif_abapgit_definitions=>c_english ). li_obj->delete( iv_package = iv_package iv_transport = iv_transport ). 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. 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 zif_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_definitions=>ty_deserialization_step_tt, lt_steps TYPE zif_abapgit_objects=>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_definitions=>ty_deserialization_step_tt, <ls_step> TYPE LINE OF zif_abapgit_objects=>ty_step_data_tt, <ls_deser> TYPE LINE OF zif_abapgit_objects=>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 = zcl_abapgit_file_deserialize=>get_results( io_repo = io_repo ii_log = ii_log ). zcl_abapgit_objects_check=>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_main_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 }| ). CLEAR ls_item. ls_item-obj_type = <ls_result>-obj_type. ls_item-obj_name = <ls_result>-obj_name. "error handling & logging added TRY. " If package does not exist yet, it will be created with this call 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 ). check_main_package( iv_package = lv_package iv_obj_type = ls_item-obj_type ). 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. IF <ls_result>-packmove = abap_true. " Move object to new package ls_item-devclass = lv_package. change_package_assignments( is_item = ls_item ii_log = ii_log ). " No other changes required CONTINUE. ENDIF. " Create or update object 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_main_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 iv_transport = is_checks-transport-transport 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( ). li_progress->off( ). ENDMETHOD. METHOD deserialize_checks. rs_checks = zcl_abapgit_objects_check=>deserialize_checks( io_repo ). ENDMETHOD. METHOD deserialize_objects. DATA: li_progress TYPE REF TO zif_abapgit_progress, li_exit TYPE REF TO zif_abapgit_exit, 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 }| ). 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 iv_transport = iv_transport ). 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. CASE is_step-step_id. WHEN zif_abapgit_object=>gc_step_id-ddic. zcl_abapgit_objects_activation=>activate( is_step-is_ddic ). WHEN zif_abapgit_object=>gc_step_id-abap. zcl_abapgit_objects_activation=>activate( is_step-is_ddic ). WHEN zif_abapgit_object=>gc_step_id-late. " late can have both DDIC (like TABL with REF TO) and non-DDIC objects zcl_abapgit_objects_activation=>activate( abap_true ). zcl_abapgit_objects_activation=>activate( abap_false ). ENDCASE. * Call postprocessing li_exit = zcl_abapgit_exit=>get_instance( ). li_exit->deserialize_postprocess( is_step = is_step ii_log = ii_log ). ENDMETHOD. METHOD exists. DATA: li_obj TYPE REF TO zif_abapgit_object. " Might be called for objects without tadir entry IF is_item IS INITIAL. RETURN. ENDIF. " For unsupported objects, assume object exists IF is_type_supported( is_item-obj_type ) = abap_false. rv_bool = abap_true. RETURN. ENDIF. 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 errors and assume the object exists rv_bool = abap_true. ENDTRY. ENDMETHOD. METHOD get_deserialize_steps. FIELD-SYMBOLS: <ls_step> TYPE LINE OF zif_abapgit_objects=>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_obj TYPE REF TO zif_abapgit_object. " For unsupported objects, assume active state IF is_type_supported( is_item-obj_type ) = abap_false. rv_active = abap_true. RETURN. ENDIF. TRY. li_obj = create_object( is_item = is_item iv_language = zif_abapgit_definitions=>c_english ). rv_active = li_obj->is_active( ). CATCH cx_sy_dyn_call_illegal_method cx_sy_ref_is_initial zcx_abapgit_exception. " Ignore errors and assume active state 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 is_type_supported. DATA: ls_item TYPE zif_abapgit_definitions=>ty_item, ls_supported_obj_type TYPE ty_supported_types. FIELD-SYMBOLS <ls_supported_obj_type> TYPE ty_supported_types. IF iv_obj_type IS INITIAL. " empty object type should never exist RETURN. ENDIF. READ TABLE gt_supported_obj_types ASSIGNING <ls_supported_obj_type> WITH KEY obj_type = iv_obj_type. IF sy-subrc <> 0. ls_item-obj_type = iv_obj_type. ls_supported_obj_type-obj_type = iv_obj_type. ls_supported_obj_type-supported = is_supported( ls_item ). INSERT ls_supported_obj_type INTO TABLE gt_supported_obj_types. rv_bool = ls_supported_obj_type-supported. RETURN. ENDIF. rv_bool = <ls_supported_obj_type>-supported. ENDMETHOD. METHOD jump. DATA: li_obj TYPE REF TO zif_abapgit_object, lv_exit TYPE abap_bool. " Nothing to do for unsupported objects IF is_type_supported( is_item-obj_type ) = abap_false. zcx_abapgit_exception=>raise( |Object type { is_item-obj_type } is not supported by this system| ). ENDIF. " Nothing to do if object does not exist 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. " Open object in new window lv_exit = zcl_abapgit_ui_factory=>get_gui_jumper( )->jump( is_item = is_item iv_sub_obj_name = iv_sub_obj_name iv_sub_obj_type = iv_sub_obj_type iv_line_number = iv_line_number ). " If all fails, try object-specific handler IF lv_exit IS INITIAL. 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 serialize. DATA: li_obj TYPE REF TO zif_abapgit_object, li_xml TYPE REF TO zif_abapgit_xml_output, lo_files TYPE REF TO zcl_abapgit_objects_files, ls_i18n_params TYPE zif_abapgit_definitions=>ty_i18n_params. FIELD-SYMBOLS: <ls_file> LIKE LINE OF rs_files_and_item-files. rs_files_and_item-item = is_item. IF is_type_supported( rs_files_and_item-item-obj_type ) = 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 li_xml TYPE zcl_abapgit_xml_output. ls_i18n_params-main_language = iv_language. ls_i18n_params-main_language_only = iv_main_language_only. ls_i18n_params-translation_languages = it_translation_langs. li_xml->i18n_params( ls_i18n_params ). li_obj->serialize( li_xml ). lo_files->add_xml( ii_xml = li_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_blob( <ls_file>-data ). ENDLOOP. ENDMETHOD. METHOD supported_list. DATA: lt_objects TYPE STANDARD TABLE OF ko100, ls_item TYPE zif_abapgit_definitions=>ty_item, ls_supported_obj_type TYPE ty_supported_types. FIELD-SYMBOLS <ls_object> LIKE LINE OF lt_objects. FIELD-SYMBOLS <ls_supported_obj_type> TYPE ty_supported_types. IF gv_supported_obj_types_loaded = abap_true. LOOP AT gt_supported_obj_types ASSIGNING <ls_supported_obj_type> WHERE supported = abap_true. INSERT <ls_supported_obj_type>-obj_type INTO TABLE rt_types. ENDLOOP. RETURN. ENDIF. " delete content because it might be filled already by method IS_TYPE_SUPPORTED CLEAR gt_supported_obj_types. 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. ls_supported_obj_type-obj_type = <ls_object>-object. ls_supported_obj_type-supported = is_supported( ls_item ). INSERT ls_supported_obj_type INTO TABLE gt_supported_obj_types. IF ls_supported_obj_type-supported = abap_true. INSERT ls_supported_obj_type-obj_type INTO TABLE rt_types. ENDIF. ENDLOOP. gv_supported_obj_types_loaded = abap_true. 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. 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, 311, 9863, 1961, 43679, 3963, 36264, 343, 12, 15252, 13315, 4725, 33866, 8924, 35374, 3084, 62, 1370, 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, 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, 12417, 62, 16129, 62, 8807, 220, 220, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 41519, 62, 17204, 82, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 75, 33213, 39852, 2849, 1847, 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, 1259, 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, 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, 12233, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 83, 324, 343, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 42116, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 33678, 62, 42116, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 6404, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 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, 42715, 12, 49273, 50, 4391, 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, 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, 1370, 62, 17618, 220, 41876, 1312, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 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, 5145, 452, 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, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS lcl_report DEFINITION. PUBLIC SECTION. DATA: it_output TYPE STANDARD TABLE OF zbct_intmsg_log. CONSTANTS: c_out TYPE zbcde_direction VALUE 'OUT', c_inb TYPE zbcde_direction VALUE 'INB'. METHODS select_data. METHODS show_report. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS lcl_report IMPLEMENTATION. METHOD select_data. SELECT * FROM zbct_intmsg_log INTO TABLE it_output WHERE extsystem IN s_extsys AND action IN s_msg AND sysdat IN s_date. IF sy-subrc IS INITIAL. IF p_out IS INITIAL. DELETE it_output WHERE direction EQ c_out. ENDIF. IF p_inb IS INITIAL. DELETE it_output WHERE direction EQ c_inb. ENDIF. ENDIF. ENDMETHOD. METHOD show_report. IF it_output[] IS INITIAL. RETURN. ENDIF cl_salv_table=>factory( IMPORTING r_salv_table = go_salv CHANGING t_table = it_output ). go_func = go_salv->get_functions( ). go_func->set_all( abap_true ). go_colm = go_salv->get_columns( ). go_colm->set_optimize( abap_true ). go_salv->display( ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 565, 62, 13116, 5550, 20032, 17941, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 42865, 25, 340, 62, 22915, 41876, 49053, 9795, 43679, 3963, 1976, 65, 310, 62, 600, 19662, 62, 6404, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 269, 62, 448, 41876, 1976, 15630, 2934, 62, 37295, 26173, 8924, 705, 12425, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 62, 259, 65, 41876, 1976, 15630, 2934, 62, 37295, 26173, 8924, 705, 1268, 33, 4458, 628, 220, 220, 220, 337, 36252, 50, 2922, 62, 7890, 13, 198, 220, 220, 220, 337, 36252, 50, 905, 62, 13116, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 13116, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 2922, 62, 7890, 13, 198, 220, 220, 220, 33493, 1635, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16034, 1976, 65, 310, 62, 600, 19662, 62, 6404, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 39319, 43679, 340, 62, 22915, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33411, 409, 912, 6781, 3268, 264, 62, 2302, 17597, 5357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2223, 220, 220, 220, 3268, 264, 62, 19662, 220, 220, 220, 5357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25064, 19608, 220, 220, 220, 3268, 264, 62, 4475, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 16876, 279, 62, 448, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 220, 220, 5550, 2538, 9328, 340, 62, 22915, 33411, 4571, 36529, 269, 62, 448, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 16876, 279, 62, 259, 65, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 220, 220, 5550, 2538, 9328, 340, 62, 22915, 33411, 4571, 36529, 269, 62, 259, 65, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 905, 62, 13116, 13, 198, 220, 220, 220, 16876, 340, 62, 22915, 21737, 3180, 3268, 2043, 12576, 13, 30826, 27064, 13, 23578, 5064, 198, 220, 220, 220, 537, 62, 21680, 85, 62, 11487, 14804, 69, 9548, 7, 30023, 9863, 2751, 374, 62, 21680, 85, 62, 11487, 796, 467, 62, 21680, 85, 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, 5870, 15567, 2751, 220, 256, 62, 11487, 220, 220, 220, 220, 220, 796, 340, 62, 22915, 6739, 628, 220, 220, 220, 467, 62, 20786, 796, 467, 62, 21680, 85, 3784, 1136, 62, 12543, 2733, 7, 6739, 198, 220, 220, 220, 467, 62, 20786, 3784, 2617, 62, 439, 7, 450, 499, 62, 7942, 6739, 628, 220, 220, 220, 467, 62, 18414, 796, 467, 62, 21680, 85, 3784, 1136, 62, 28665, 82, 7, 6739, 198, 220, 220, 220, 467, 62, 18414, 3784, 2617, 62, 40085, 1096, 7, 450, 499, 62, 7942, 6739, 628, 220, 220, 220, 467,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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 ]
class ZCL_BUGTRACKERWDA_CTRL definition public inheriting from CL_WD_COMPONENT_ASSISTANCE final create public . public section. *"* public components of class ZCL_BUGTRACKERWDA_CTRL *"* do not include other source files here!!! data BUG_HEADER type ZBT_WDA_BUG_HEADER read-only . methods CONSTRUCTOR importing !BUG type ZBT_ID_BUG !PRODUCTO type ZBT_ID_PRODUCTO . methods SET_BUG_HEADER importing !BUG_HEADER type ZBT_WDA_BUG_HEADER . methods SAVE raising ZCX_BUGTRACKER_SYSTEM . methods DELETE . protected section. *"* protected components of class ZCL_BUGTRACKERWDA_CTRL *"* do not include other source files here!!! private section. *"* private components of class ZCL_BUGTRACKERWDA_CTRL *"* do not include other source files here!!! data O_BUG type ref to ZCL_BUG . methods ENTITY_TO_WDA_STRUCTURE . methods SEARCH_BUG returning value(BUG) type ref to ZCL_BUG . class-methods WDA_STRUCTURE_TO_ENTITY . ENDCLASS. CLASS ZCL_BUGTRACKERWDA_CTRL IMPLEMENTATION. METHOD constructor. super->constructor( ). me->bug_header-bug = bug. me->bug_header-producto = producto. o_bug = search_bug( ). entity_to_wda_structure( ). ENDMETHOD. method DELETE. endmethod. METHOD entity_to_wda_structure. DATA: l_str TYPE zbt_bug, lo_user TYPE REF TO zcl_usuario, lo_component TYPE REF TO zcl_componente, lo_estado TYPE REF TO zcl_estado, lo_btype TYPE REF TO zcl_bugtype, lo_bstype TYPE REF TO zcl_bugstype, lo_producto TYPE REF TO zcl_producto. lo_producto = o_bug->get_producto( ). l_str = zcl_bug_controller=>entity_to_structure( o_bug ). MOVE-CORRESPONDING l_str TO me->bug_header. me->bug_header-product_txt = lo_producto->get_descripcion( ). lo_user = o_bug->get_reporter( ). IF lo_user IS BOUND. me->bug_header-reporter_txt = lo_user->get_name( ). ENDIF. lo_user = o_bug->get_developer( ). IF lo_user IS BOUND. me->bug_header-developer_txt = lo_user->get_name( ). ENDIF. lo_user = o_bug->get_tester( ). IF lo_user IS BOUND. me->bug_header-tester_txt = lo_user->get_name( ). ENDIF. lo_estado = o_bug->get_estado( ). IF lo_estado IS BOUND. me->bug_header-estado_txt = lo_estado->get_descripcion( ). me->bug_header-estado_icon = lo_estado->get_wdaicon( ). ENDIF. lo_component = o_bug->get_componente( ). IF lo_component IS BOUND. me->bug_header-componente_text = lo_component->get_descripcion( ). ENDIF. lo_btype = o_bug->get_bug_type( ) . IF lo_btype IS BOUND. me->bug_header-bugtype_txt = lo_btype->get_descripcion( ). ENDIF. lo_bstype = o_bug->get_bug_subtype( ). IF lo_bstype IS BOUND. me->bug_header-bugstype_txt = lo_bstype->get_descripcion( ). ENDIF. lo_user = o_bug->get_aenam( ). IF lo_user IS BOUND. me->bug_header-aenam_txt = lo_user->get_name( ). ENDIF. ENDMETHOD. METHOD save. DATA: lo_exception TYPE REF TO zcx_bugtracker_system. IF zcl_bug_controller=>exist( o_bug ) = abap_true. zcl_bug_controller=>update( o_bug ). ELSE. zcl_bug_controller=>create( o_bug ). ENDIF. * COMMIT WORK AND WAIT. ENDMETHOD. METHOD SEARCH_BUG. DATA: lt_bugs TYPE zbt_bugs, l_bugs TYPE LINE OF zbt_bugs, r_bug TYPE zbt_bug_range, lr_bug TYPE LINE OF zbt_bug_range, r_product TYPE zbt_producto_range, lr_product TYPE LINE OF zbt_producto_range. lr_product-sign = lr_bug-sign = 'I'. lr_product-option = lr_bug-option = 'EQ'. lr_bug-low = bug_header-bug. lr_product-low = bug_header-producto. lt_bugs = zcl_bug_controller=>search( bug = r_bug[] producto = r_product[] ). READ TABLE lt_bugs INDEX 1 INTO l_bugs. bug = l_bugs-oref. ENDMETHOD. METHOD set_bug_header. me->bug_header = bug_header. wda_structure_to_entity( ). ENDMETHOD. METHOD wda_structure_to_entity. * * DATA: l_str TYPE zbt_bug, * lo_user TYPE REF TO zcl_usuario, * lo_component TYPE REF TO zcl_componente, * lo_estado TYPE REF TO zcl_estado, * lo_btype TYPE REF TO zcl_bugtype, * lo_bstype TYPE REF TO zcl_bugstype, * lo_producto TYPE REF TO zcl_producto. * * lo_producto = o_bug->get_producto( ). * * l_str = zcl_bug_controller=>entity_to_structure( o_bug ). * MOVE-CORRESPONDING l_str TO me->bug_header. * me->bug_header-product_txt = lo_producto->get_descripcion( ). * * lo_user = o_bug->get_reporter( ). * IF lo_user IS BOUND. * me->bug_header-reporter_txt = lo_user->get_name( ). * ENDIF. * lo_user = o_bug->get_developer( ). * IF lo_user IS BOUND. * me->bug_header-developer_txt = lo_user->get_name( ). * ENDIF. * lo_user = o_bug->get_tester( ). * IF lo_user IS BOUND. * me->bug_header-tester_txt = lo_user->get_name( ). * ENDIF. * * lo_estado = o_bug->get_estado( ). * IF lo_estado IS BOUND. * me->bug_header-estado_txt = lo_estado->get_descripcion( ). * me->bug_header-estado_icon = lo_estado->get_wdaicon( ). * ENDIF. * * lo_component = o_bug->get_componente( ). * IF lo_component IS BOUND. * me->bug_header-componente_text = lo_component->get_descripcion( ). * ENDIF. * * lo_btype = o_bug->get_bug_type( ) . * IF lo_btype IS BOUND. * me->bug_header-bugtype_txt = lo_btype->get_descripcion( ). * ENDIF. * * lo_bstype = o_bug->get_bug_subtype( ). * IF lo_bstype IS BOUND. * me->bug_header-bugstype_txt = lo_bstype->get_descripcion( ). * ENDIF. * * lo_user = o_bug->get_aenam( ). * IF lo_user IS BOUND. * me->bug_header-aenam_txt = lo_user->get_name( ). * ENDIF. ENDMETHOD. ENDCLASS.
[ 4871, 1168, 5097, 62, 12953, 5446, 8120, 1137, 54, 5631, 62, 4177, 7836, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 7852, 62, 22332, 62, 9858, 47, 1340, 3525, 62, 10705, 8808, 19240, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 12953, 5446, 8120, 1137, 54, 5631, 62, 4177, 7836, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 628, 220, 1366, 347, 7340, 62, 37682, 1137, 2099, 1168, 19313, 62, 54, 5631, 62, 12953, 62, 37682, 1137, 1100, 12, 8807, 764, 628, 220, 5050, 7102, 46126, 1581, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 12953, 2099, 1168, 19313, 62, 2389, 62, 12953, 198, 220, 220, 220, 220, 220, 5145, 4805, 28644, 46, 2099, 1168, 19313, 62, 2389, 62, 4805, 28644, 46, 764, 198, 220, 5050, 25823, 62, 12953, 62, 37682, 1137, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 12953, 62, 37682, 1137, 2099, 1168, 19313, 62, 54, 5631, 62, 12953, 62, 37682, 1137, 764, 198, 220, 5050, 14719, 6089, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 34, 55, 62, 12953, 5446, 8120, 1137, 62, 23060, 25361, 764, 198, 220, 5050, 5550, 2538, 9328, 764, 198, 24326, 2665, 13, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 5097, 62, 12953, 5446, 8120, 1137, 54, 5631, 62, 4177, 7836, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 19734, 2665, 13, 198, 9, 1, 9, 2839, 6805, 286, 1398, 1168, 5097, 62, 12953, 5446, 8120, 1137, 54, 5631, 62, 4177, 7836, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 628, 220, 1366, 440, 62, 12953, 2099, 1006, 284, 1168, 5097, 62, 12953, 764, 628, 220, 5050, 47353, 9050, 62, 10468, 62, 54, 5631, 62, 46126, 11335, 764, 198, 220, 5050, 7946, 31315, 62, 12953, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 12953, 8, 2099, 1006, 284, 1168, 5097, 62, 12953, 764, 198, 220, 1398, 12, 24396, 82, 370, 5631, 62, 46126, 11335, 62, 10468, 62, 3525, 9050, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 12953, 5446, 8120, 1137, 54, 5631, 62, 4177, 7836, 30023, 2538, 10979, 6234, 13, 628, 198, 49273, 23772, 13, 628, 220, 2208, 3784, 41571, 273, 7, 6739, 628, 220, 502, 3784, 25456, 62, 25677, 12, 25456, 220, 220, 220, 220, 220, 796, 5434, 13, 198, 220, 502, 3784, 25456, 62, 25677, 12, 11167, 78, 796, 1720, 78, 13, 628, 220, 267, 62, 25456, 796, 2989, 62, 25456, 7, 6739, 628, 220, 9312, 62, 1462, 62, 86, 6814, 62, 301, 5620, 7, 6739, 198, 198, 10619, 49273, 13, 628, 198, 24396, 5550, 2538, 9328, 13, 198, 437, 24396, 13, 628, 198, 49273, 9312, 62, 1462, 62, 86, 6814, 62, 301, 5620, 13, 198, 220, 42865, 25, 300, 62, 2536, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 18347, 62, 25456, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 7220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 385, 84, 4982, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 42895, 41876, 4526, 37, 5390, 1976, 565, 62, 42895, 68, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 395, 4533, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 395, 4533, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 65, 4906, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 25456, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 65, 301, 2981, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 25456, 301, 2981, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 11167, 78, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 11167, 78, 13, 628, 220, 2376, 62, 11167, 78, 796, 267, 62, 25456, 3784, 1136, 62, 11167, 78, 7, 6739, 628, 220, 300, 62, 2536, 796, 1976, 565, 62, 25456, 62, 36500, 14804, 26858, 62, 1462, 62, 301, 5620, 7, 267, 62, 25456, 6739, 198, 220, 13070, 6089, 12, 44879, 19535, 47, 18672, 2751, 300, 62, 2536, 5390, 502, 3784, 25456, 62, 25677, 13, 198, 220, 502, 3784, 25456, 62, 25677, 12, 11167, 62, 14116, 220, 220, 220, 220, 796, 2376, 62, 11167, 78, 3784, 1136, 62, 20147, 5528, 66, 295, 7, 6739, 628, 220, 2376, 62, 7220, 796, 267, 62, 25456, 3784, 1136, 62, 260, 26634, 7, 6739, 198, 220, 16876, 2376, 62, 7220, 3180, 347, 15919, 13, 198, 220, 220, 220, 502, 3784, 25456, 62, 25677, 12, 260, 26634, 62, 14116, 220, 220, 220, 796, 2376, 62, 7220, 3784, 1136, 62, 3672, 7, 6739, 198, 220, 23578, 5064, 13, 198, 220, 2376, 62, 7220, 796, 267, 62, 25456, 3784, 1136, 62, 16244, 263, 7, 6739, 198, 220, 16876, 2376, 62, 7220, 3180, 347, 15919, 13, 198, 220, 220, 220, 502, 3784, 25456, 62, 25677, 12, 16244, 263, 62, 14116, 220, 220, 796, 2376, 62, 7220, 3784, 1136, 62, 3672, 7, 6739, 198, 220, 23578, 5064, 13, 198, 220, 2376, 62, 7220, 796, 267, 62, 25456, 3784, 1136, 62, 4879, 353, 7, 6739, 198, 220, 16876, 2376, 62, 7220, 3180, 347, 15919, 13, 198, 220, 220, 220, 502, 3784, 25456, 62, 25677, 12, 4879, 353, 62, 14116, 220, 220, 220, 220, 220, 796, 2376, 62, 7220, 3784, 1136, 62, 3672, 7, 6739, 198, 220, 23578, 5064, 13, 628, 220, 2376, 62, 395, 4533, 796, 267, 62, 25456, 3784, 1136, 62, 395, 4533, 7, 6739, 198, 220, 16876, 2376, 62, 395, 4533, 3180, 347, 15919, 13, 198, 220, 220, 220, 502, 3784, 25456, 62, 25677, 12, 395, 4533, 62, 14116, 220, 220, 220, 220, 220, 796, 2376, 62, 395, 4533, 3784, 1136, 62, 20147, 5528, 66, 295, 7, 6739, 198, 220, 220, 220, 502, 3784, 25456, 62, 25677, 12, 395, 4533, 62, 4749, 220, 220, 220, 220, 796, 2376, 62, 395, 4533, 3784, 1136, 62, 86, 6814, 4749, 7, 6739, 198, 220, 23578, 5064, 13, 628, 220, 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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decl. INCLUDE LYTADDICT_CLASST00 . "view rel. data dcl.
[ 9, 16935, 515, 379, 9130, 13, 1065, 13, 42334, 1105, 25, 1731, 25, 1238, 198, 42296, 4177, 2849, 12, 16402, 3535, 575, 51, 29266, 18379, 62, 31631, 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, 56, 51, 29266, 18379, 62, 5097, 1921, 10305, 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, 56, 51, 29266, 18379, 62, 5097, 1921, 2257, 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 ]
CLASS ltcl_pkcs1_emse DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS FINAL. PRIVATE SECTION. METHODS: pkcs1_emse FOR TESTING. ENDCLASS. "ltcl_Pkcs1_Emse CLASS ltcl_pkcs1_emse IMPLEMENTATION. METHOD pkcs1_emse. DATA: lv_em TYPE xstring, lv_m TYPE xstring VALUE '001122334455667788'. lv_em = zcl_abappgp_encode=>pkcs1_emse( lv_m ). cl_abap_unit_assert=>assert_not_initial( lv_em ). ENDMETHOD. ENDCLASS.
[ 198, 31631, 300, 83, 565, 62, 79, 74, 6359, 16, 62, 368, 325, 5550, 20032, 17941, 7473, 43001, 2751, 360, 4261, 6234, 6006, 9863, 45698, 42, 49277, 43638, 5805, 7597, 25261, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 279, 74, 6359, 16, 62, 368, 325, 7473, 43001, 2751, 13, 198, 198, 10619, 31631, 13, 220, 220, 220, 220, 220, 220, 366, 2528, 565, 62, 47, 74, 6359, 16, 62, 10161, 325, 198, 198, 31631, 300, 83, 565, 62, 79, 74, 6359, 16, 62, 368, 325, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 279, 74, 6359, 16, 62, 368, 325, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 368, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 76, 220, 41876, 2124, 8841, 26173, 8924, 705, 8298, 1065, 1954, 2682, 30505, 2791, 3324, 3459, 4458, 628, 198, 220, 220, 220, 300, 85, 62, 368, 796, 1976, 565, 62, 397, 1324, 31197, 62, 268, 8189, 14804, 79, 74, 6359, 16, 62, 368, 325, 7, 300, 85, 62, 76, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 1662, 62, 36733, 7, 300, 85, 62, 368, 6739, 628, 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 ]
*&---------------------------------------------------------------------* *& Report ZDEMO_EXCEL11 *& Export Organisation and Contact Persons using ABAP2XLSX *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT zdemo_excel11. TYPE-POOLS: abap. DATA: central_search TYPE bapibus1006_central_search, addressdata_search TYPE bapibus1006_addr_search, others_search TYPE bapibus1006_other_data. DATA: searchresult TYPE TABLE OF bapibus1006_bp_addr, return TYPE TABLE OF bapiret2. DATA: lines TYPE i. FIELD-SYMBOLS: <searchresult_line> LIKE LINE OF searchresult. DATA: centraldata TYPE bapibus1006_central, centraldataperson TYPE bapibus1006_central_person, centraldataorganization TYPE bapibus1006_central_organ. DATA: addressdata TYPE bapibus1006_address. DATA: relationships TYPE TABLE OF bapibus1006_relations. FIELD-SYMBOLS: <relationship> LIKE LINE OF relationships. DATA: relationship_centraldata TYPE bapibus1006002_central. DATA: relationship_addresses TYPE TABLE OF bapibus1006002_addresses. FIELD-SYMBOLS: <relationship_address> LIKE LINE OF relationship_addresses. DATA: lt_download TYPE TABLE OF zexcel_s_org_rel. FIELD-SYMBOLS: <download> LIKE LINE OF lt_download. CONSTANTS: gc_save_file_name TYPE string VALUE '11_Export_Org_and_Contact.xlsx'. INCLUDE zdemo_excel_outputopt_incl. PARAMETERS: md TYPE flag RADIOBUTTON GROUP act. SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE TEXT-00a. PARAMETERS: partnerc TYPE bu_type DEFAULT 2, " Organizations postlcod TYPE ad_pstcd1 DEFAULT '8334*', country TYPE land1 DEFAULT 'DE', maxsel TYPE bu_maxsel DEFAULT 100. SELECTION-SCREEN END OF BLOCK a. PARAMETERS: rel TYPE flag RADIOBUTTON GROUP act DEFAULT 'X'. SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE TEXT-00b. PARAMETERS: reltyp TYPE bu_reltyp DEFAULT 'BUR011', partner TYPE bu_partner DEFAULT '191'. SELECTION-SCREEN END OF BLOCK b. START-OF-SELECTION. IF md = abap_true. " Read all Companies by Master Data central_search-partnercategory = partnerc. addressdata_search-postl_cod1 = postlcod. addressdata_search-country = country. others_search-maxsel = maxsel. others_search-no_search_for_contactperson = 'X'. CALL FUNCTION 'BAPI_BUPA_SEARCH_2' EXPORTING centraldata = central_search addressdata = addressdata_search others = others_search TABLES searchresult = searchresult return = return. SORT searchresult BY partner. DELETE ADJACENT DUPLICATES FROM searchresult COMPARING partner. ELSEIF rel = abap_true. " Read by Relationship SELECT but050~partner1 AS partner FROM but050 INNER JOIN but000 ON but000~partner = but050~partner1 AND but000~type = '2' INTO CORRESPONDING FIELDS OF TABLE searchresult WHERE but050~partner2 = partner AND but050~reltyp = reltyp. ENDIF. DESCRIBE TABLE searchresult LINES lines. WRITE: / 'Number of search results: ', lines. LOOP AT searchresult ASSIGNING <searchresult_line>. " Read Details of Organization CALL FUNCTION 'BAPI_BUPA_CENTRAL_GETDETAIL' EXPORTING businesspartner = <searchresult_line>-partner IMPORTING centraldataorganization = centraldataorganization. " Read Standard Address of Organization CALL FUNCTION 'BAPI_BUPA_ADDRESS_GETDETAIL' EXPORTING businesspartner = <searchresult_line>-partner IMPORTING addressdata = addressdata. " Add Organization to Download APPEND INITIAL LINE TO lt_download ASSIGNING <download>. " Fill Organization Partner Numbers CALL FUNCTION 'BAPI_BUPA_GET_NUMBERS' EXPORTING businesspartner = <searchresult_line>-partner IMPORTING businesspartnerout = <download>-org_number businesspartnerguidout = <download>-org_guid. MOVE-CORRESPONDING centraldataorganization TO <download>. MOVE-CORRESPONDING addressdata TO <download>. CLEAR: addressdata. " Read all Relationships CLEAR: relationships. CALL FUNCTION 'BAPI_BUPA_RELATIONSHIPS_GET' EXPORTING businesspartner = <searchresult_line>-partner TABLES relationships = relationships. DELETE relationships WHERE relationshipcategory <> 'BUR001'. LOOP AT relationships ASSIGNING <relationship>. " Read details of Contact person CALL FUNCTION 'BAPI_BUPA_CENTRAL_GETDETAIL' EXPORTING businesspartner = <relationship>-partner2 IMPORTING centraldata = centraldata centraldataperson = centraldataperson. " Read details of the Relationship CALL FUNCTION 'BAPI_BUPR_CONTP_GETDETAIL' EXPORTING businesspartner = <relationship>-partner1 contactperson = <relationship>-partner2 IMPORTING centraldata = relationship_centraldata. " Read relationship address CLEAR: relationship_addresses. CALL FUNCTION 'BAPI_BUPR_CONTP_ADDRESSES_GET' EXPORTING businesspartner = <relationship>-partner1 contactperson = <relationship>-partner2 TABLES addresses = relationship_addresses. READ TABLE relationship_addresses ASSIGNING <relationship_address> WITH KEY standardaddress = 'X'. IF sy-subrc = 0. " Read Relationship Address CLEAR addressdata. CALL FUNCTION 'BAPI_BUPA_ADDRESS_GETDETAIL' EXPORTING businesspartner = <searchresult_line>-partner addressguid = <relationship_address>-addressguid IMPORTING addressdata = addressdata. APPEND INITIAL LINE TO lt_download ASSIGNING <download>. CALL FUNCTION 'BAPI_BUPA_GET_NUMBERS' EXPORTING businesspartner = <relationship>-partner1 IMPORTING businesspartnerout = <download>-org_number businesspartnerguidout = <download>-org_guid. CALL FUNCTION 'BAPI_BUPA_GET_NUMBERS' EXPORTING businesspartner = <relationship>-partner2 IMPORTING businesspartnerout = <download>-contpers_number businesspartnerguidout = <download>-contpers_guid. MOVE-CORRESPONDING centraldataorganization TO <download>. MOVE-CORRESPONDING addressdata TO <download>. MOVE-CORRESPONDING centraldataperson TO <download>. MOVE-CORRESPONDING relationship_centraldata TO <download>. WRITE: / <relationship>-partner1, <relationship>-partner2. WRITE: centraldataorganization-name1(20), centraldataorganization-name2(10). WRITE: centraldataperson-firstname(15), centraldataperson-lastname(15). WRITE: addressdata-street(25), addressdata-house_no, addressdata-postl_cod1, addressdata-city(25). ENDIF. ENDLOOP. ENDLOOP. DATA: lo_excel TYPE REF TO zcl_excel, lo_worksheet TYPE REF TO zcl_excel_worksheet, lo_style_body TYPE REF TO zcl_excel_style, lo_border_dark TYPE REF TO zcl_excel_style_border, lo_column TYPE REF TO zcl_excel_column, lo_row TYPE REF TO zcl_excel_row. DATA: lv_style_body_even_guid TYPE zexcel_cell_style, lv_style_body_green TYPE zexcel_cell_style. DATA: row TYPE zexcel_cell_row. DATA: lt_field_catalog TYPE zexcel_t_fieldcatalog, ls_table_settings TYPE zexcel_s_table_settings. DATA: column TYPE zexcel_cell_column, column_alpha TYPE zexcel_cell_column_alpha, value TYPE zexcel_cell_value. FIELD-SYMBOLS: <fs_field_catalog> TYPE zexcel_s_fieldcatalog. " Creates active sheet CREATE OBJECT lo_excel. " Create border object CREATE OBJECT lo_border_dark. lo_border_dark->border_color-rgb = zcl_excel_style_color=>c_black. lo_border_dark->border_style = zcl_excel_style_border=>c_border_thin. "Create style with border even lo_style_body = lo_excel->add_new_style( ). lo_style_body->fill->fgcolor-rgb = zcl_excel_style_color=>c_yellow. lo_style_body->borders->allborders = lo_border_dark. lv_style_body_even_guid = lo_style_body->get_guid( ). "Create style with border and green fill lo_style_body = lo_excel->add_new_style( ). lo_style_body->fill->fgcolor-rgb = zcl_excel_style_color=>c_green. lo_style_body->borders->allborders = lo_border_dark. lv_style_body_green = lo_style_body->get_guid( ). " Get active sheet lo_worksheet = lo_excel->get_active_worksheet( ). lo_worksheet->set_title( 'Internal table' ). lt_field_catalog = zcl_excel_common=>get_fieldcatalog( ip_table = lt_download ). LOOP AT lt_field_catalog ASSIGNING <fs_field_catalog>. CASE <fs_field_catalog>-fieldname. WHEN 'ORG_NUMBER'. <fs_field_catalog>-position = 1. <fs_field_catalog>-dynpfld = abap_true. WHEN 'CONTPERS_NUMBER'. <fs_field_catalog>-position = 2. <fs_field_catalog>-dynpfld = abap_true. WHEN 'NAME1'. <fs_field_catalog>-position = 3. <fs_field_catalog>-dynpfld = abap_true. WHEN 'NAME2'. <fs_field_catalog>-position = 4. <fs_field_catalog>-dynpfld = abap_true. WHEN 'STREET'. <fs_field_catalog>-position = 5. <fs_field_catalog>-dynpfld = abap_true. WHEN 'HOUSE_NO'. <fs_field_catalog>-position = 6. <fs_field_catalog>-dynpfld = abap_true. WHEN 'POSTL_COD1'. <fs_field_catalog>-position = 7. <fs_field_catalog>-dynpfld = abap_true. WHEN 'CITY'. <fs_field_catalog>-position = 8. <fs_field_catalog>-dynpfld = abap_true. WHEN 'COUNTRYISO'. <fs_field_catalog>-position = 9. <fs_field_catalog>-dynpfld = abap_true. WHEN 'FIRSTNAME'. <fs_field_catalog>-position = 10. <fs_field_catalog>-dynpfld = abap_true. WHEN 'LASTNAME'. <fs_field_catalog>-position = 11. <fs_field_catalog>-dynpfld = abap_true. WHEN 'FUNCTIONNAME'. <fs_field_catalog>-position = 12. <fs_field_catalog>-dynpfld = abap_true. WHEN 'DEPARTMENTNAME'. <fs_field_catalog>-position = 13. <fs_field_catalog>-dynpfld = abap_true. WHEN 'TEL1_NUMBR'. <fs_field_catalog>-position = 14. <fs_field_catalog>-dynpfld = abap_true. WHEN 'TEL1_EXT'. <fs_field_catalog>-position = 15. <fs_field_catalog>-dynpfld = abap_true. WHEN 'FAX_NUMBER'. <fs_field_catalog>-position = 16. <fs_field_catalog>-dynpfld = abap_true. WHEN 'FAX_EXTENS'. <fs_field_catalog>-position = 17. <fs_field_catalog>-dynpfld = abap_true. WHEN 'E_MAIL'. <fs_field_catalog>-position = 18. <fs_field_catalog>-dynpfld = abap_true. WHEN OTHERS. <fs_field_catalog>-dynpfld = abap_false. ENDCASE. ENDLOOP. ls_table_settings-top_left_column = 'A'. ls_table_settings-top_left_row = '2'. ls_table_settings-table_style = zcl_excel_table=>builtinstyle_medium5. lo_worksheet->bind_table( ip_table = lt_download is_table_settings = ls_table_settings it_field_catalog = lt_field_catalog ). LOOP AT lt_download ASSIGNING <download>. row = sy-tabix + 2. IF NOT <download>-org_number IS INITIAL AND <download>-contpers_number IS INITIAL. " Mark fields of Organization which can be changed green lo_worksheet->set_cell_style( ip_column = 'C' ip_row = row ip_style = lv_style_body_green ). lo_worksheet->set_cell_style( ip_column = 'D' ip_row = row ip_style = lv_style_body_green ). * CATCH zcx_excel. " Exceptions for ABAP2XLSX ELSEIF NOT <download>-org_number IS INITIAL AND NOT <download>-contpers_number IS INITIAL. " Mark fields of Relationship which can be changed green lo_worksheet->set_cell_style( ip_column = 'L' ip_row = row ip_style = lv_style_body_green ). lo_worksheet->set_cell_style( ip_column = 'M' ip_row = row ip_style = lv_style_body_green ). lo_worksheet->set_cell_style( ip_column = 'N' ip_row = row ip_style = lv_style_body_green ). lo_worksheet->set_cell_style( ip_column = 'O' ip_row = row ip_style = lv_style_body_green ). lo_worksheet->set_cell_style( ip_column = 'P' ip_row = row ip_style = lv_style_body_green ). lo_worksheet->set_cell_style( ip_column = 'Q' ip_row = row ip_style = lv_style_body_green ). lo_worksheet->set_cell_style( ip_column = 'R' ip_row = row ip_style = lv_style_body_green ). ENDIF. ENDLOOP. " Add Fieldnames in first row and hide the row LOOP AT lt_field_catalog ASSIGNING <fs_field_catalog> WHERE position <> '' AND dynpfld = abap_true. column = <fs_field_catalog>-position. column_alpha = zcl_excel_common=>convert_column2alpha( column ). value = <fs_field_catalog>-fieldname. lo_worksheet->set_cell( ip_column = column_alpha ip_row = 1 ip_value = value ip_style = lv_style_body_even_guid ). ENDLOOP. " Hide first row lo_row = lo_worksheet->get_row( 1 ). lo_row->set_visible( abap_false ). DATA: highest_column TYPE zexcel_cell_column, count TYPE int4, col_alpha TYPE zexcel_cell_column_alpha. highest_column = lo_worksheet->get_highest_column( ). count = 1. WHILE count <= highest_column. col_alpha = zcl_excel_common=>convert_column2alpha( ip_column = count ). lo_column = lo_worksheet->get_column( ip_column = col_alpha ). lo_column->set_auto_size( ip_auto_size = abap_true ). count = count + 1. ENDWHILE. *** Create output lcl_output=>output( lo_excel ).
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 220, 1168, 39429, 46, 62, 6369, 34, 3698, 1157, 198, 9, 5, 36472, 30801, 290, 14039, 32884, 1262, 9564, 2969, 17, 55, 6561, 55, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 198, 2200, 15490, 1976, 9536, 78, 62, 1069, 5276, 1157, 13, 198, 198, 25216, 12, 16402, 3535, 50, 25, 450, 499, 13, 198, 198, 26947, 25, 4318, 62, 12947, 220, 220, 220, 220, 41876, 275, 499, 26333, 3064, 21, 62, 31463, 62, 12947, 11, 198, 220, 220, 220, 220, 220, 2209, 7890, 62, 12947, 41876, 275, 499, 26333, 3064, 21, 62, 29851, 62, 12947, 11, 198, 220, 220, 220, 220, 220, 1854, 62, 12947, 220, 220, 220, 220, 220, 41876, 275, 499, 26333, 3064, 21, 62, 847, 62, 7890, 13, 198, 26947, 25, 2989, 20274, 41876, 43679, 3963, 275, 499, 26333, 3064, 21, 62, 46583, 62, 29851, 11, 198, 220, 220, 220, 220, 220, 1441, 220, 220, 220, 220, 220, 220, 41876, 43679, 3963, 275, 499, 557, 83, 17, 13, 198, 26947, 25, 3951, 41876, 1312, 13, 198, 44603, 12, 23060, 10744, 3535, 50, 25, 1279, 12947, 20274, 62, 1370, 29, 34178, 48920, 3963, 2989, 20274, 13, 198, 26947, 25, 4318, 7890, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 275, 499, 26333, 3064, 21, 62, 31463, 11, 198, 220, 220, 220, 220, 220, 4318, 19608, 499, 882, 220, 220, 220, 220, 220, 220, 41876, 275, 499, 26333, 3064, 21, 62, 31463, 62, 6259, 11, 198, 220, 220, 220, 220, 220, 4318, 7890, 9971, 1634, 41876, 275, 499, 26333, 3064, 21, 62, 31463, 62, 9971, 13, 198, 26947, 25, 2209, 7890, 41876, 275, 499, 26333, 3064, 21, 62, 21975, 13, 198, 26947, 25, 6958, 41876, 43679, 3963, 275, 499, 26333, 3064, 21, 62, 39468, 13, 198, 44603, 12, 23060, 10744, 3535, 50, 25, 1279, 39468, 1056, 29, 34178, 48920, 3963, 6958, 13, 198, 26947, 25, 2776, 62, 31463, 7890, 41876, 275, 499, 26333, 3064, 8054, 17, 62, 31463, 13, 198, 26947, 25, 2776, 62, 2860, 16746, 41876, 43679, 3963, 275, 499, 26333, 3064, 8054, 17, 62, 2860, 16746, 13, 198, 44603, 12, 23060, 10744, 3535, 50, 25, 1279, 39468, 1056, 62, 21975, 29, 34178, 48920, 3963, 2776, 62, 2860, 16746, 13, 198, 198, 26947, 25, 300, 83, 62, 15002, 41876, 43679, 3963, 1976, 1069, 5276, 62, 82, 62, 2398, 62, 2411, 13, 198, 44603, 12, 23060, 10744, 3535, 50, 25, 1279, 15002, 29, 34178, 48920, 3963, 300, 83, 62, 15002, 13, 198, 198, 10943, 2257, 1565, 4694, 25, 308, 66, 62, 21928, 62, 7753, 62, 3672, 41876, 4731, 26173, 8924, 705, 1157, 62, 43834, 62, 46808, 62, 392, 62, 17829, 13, 87, 7278, 87, 4458, 198, 1268, 5097, 52, 7206, 1976, 9536, 78, 62, 1069, 5276, 62, 22915, 8738, 62, 259, 565, 13, 628, 198, 27082, 2390, 2767, 4877, 25, 45243, 41876, 6056, 33540, 9399, 47526, 11357, 44441, 719, 13, 198, 198, 46506, 2849, 12, 6173, 2200, 1677, 347, 43312, 3963, 9878, 11290, 257, 13315, 8782, 10067, 37977, 2538, 40383, 12, 405, 64, 13, 198, 27082, 2390, 2767, 4877, 25, 5212, 66, 41876, 809, 62, 4906, 220, 220, 5550, 38865, 362, 11, 366, 41846, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1281, 75, 19815, 41876, 512, 62, 79, 301, 10210, 16, 5550, 38865, 705, 23, 31380, 9, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1499, 220, 41876, 1956, 16, 220, 220, 220, 220, 5550, 38865, 705, 7206, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3509, 741, 220, 220, 41876, 809, 62, 9806, 741, 5550, 38865, 1802, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 23578, 3963, 9878, 11290, 257, 13, 198, 198, 27082, 2390, 2767, 4877, 25, 823, 41876, 6056, 33540, 9399, 47526, 11357, 44441, 719, 5550, 38865, 705, 55, 4458, 198, 198, 46506, 2849, 12, 6173, 2200, 1677, 347, 43312, 3963, 9878, 11290, 275, 13315, 8782, 10067, 37977, 2538, 40383, 12, 405, 65, 13, 198, 27082, 2390, 2767, 4877, 25, 823, 28004, 220, 41876, 809, 62, 2411, 28004, 5550, 38865, 705, 38926, 28555, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5212, 41876, 809, 62, 3911, 1008, 5550, 38865, 705, 26492, 4458, 198, 46506, 2849, 12, 6173, 2200, 1677, 23578, 3963, 9878, 11290, 275, 13, 198, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 198, 220, 16876, 45243, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 366, 4149, 477, 24382, 416, 5599, 6060, 198, 220, 220, 220, 4318, 62, 12947, 12, 3911, 1008, 22872, 796, 5212, 66, 13, 198, 220, 220, 220, 2209, 7890, 62, 12947, 12, 7353, 75, 62, 19815, 16, 220, 796, 1281, 75, 19815, 13, 198, 220, 220, 220, 2209, 7890, 62, 12947, 12, 19315, 220, 220, 220, 220, 796, 1499, 13, 198, 220, 220, 220, 1854, 62, 12947, 12, 9806, 741, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 3509, 741, 13, 198, 220, 220, 220, 1854, 62, 12947, 12, 3919, 62, 12947, 62, 1640, 62, 32057, 6259, 796, 705, 55, 4458, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 33, 17614, 62, 19499, 4537, 62, 5188, 31315, 62, 17, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 4318, 7890, 220, 796, 4318, 62, 12947, 198, 220, 220, 220, 220, 220, 220, 220, 2209, 7890, 220, 796, 2209, 7890, 62, 12947, 198, 220, 220, 220, 220, 220, 220, 220, 1854, 220, 220, 220, 220, 220, 220, 796, 1854, 62, 12947, 198, 220, 220, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 220, 220, 2989, 20274, 796, 2989, 20274, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 220, 220, 220, 220, 220, 220, 796, 1441, 13, 628, 220, 220, 220, 311, 9863, 2989, 20274, 11050, 5212, 13, 198, 220, 220, 220, 5550, 2538, 9328, 5984, 41, 2246, 3525, 35480, 31484, 29462, 16034, 2989, 20274, 24301, 1503, 2751, 5212, 13, 198, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
"! API for Saving the Transactional Buffer of the Travel API "! FUNCTION Z_TP_FLIGHT_TRAVEL_SAVE. *"---------------------------------------------------------------------- *"*"Local Interface: *"---------------------------------------------------------------------- ZTP_cl_flight_legacy=>get_instance( )->save( ). ENDFUNCTION.
[ 40484, 7824, 329, 34689, 262, 3602, 529, 1538, 47017, 286, 262, 13524, 7824, 198, 40484, 198, 42296, 4177, 2849, 1168, 62, 7250, 62, 3697, 9947, 62, 51, 3861, 18697, 62, 4090, 6089, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 14565, 26491, 25, 198, 9, 1, 10097, 23031, 198, 220, 1168, 7250, 62, 565, 62, 22560, 62, 1455, 1590, 14804, 1136, 62, 39098, 7, 1267, 3784, 21928, 7, 6739, 198, 1677, 8068, 4944, 4177, 2849, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_oapi_schema DEFINITION PUBLIC. PUBLIC SECTION. INTERFACES zif_oapi_schema. PROTECTED SECTION. METHODS lookup_ref IMPORTING iv_name TYPE string it_refs TYPE zif_oapi_specification_v3=>ty_schemas RETURNING VALUE(rs_ref) TYPE zif_oapi_specification_v3=>ty_component_schema. ENDCLASS. CLASS zcl_oapi_schema IMPLEMENTATION. METHOD zif_oapi_schema~is_simple_type. DATA lv_type TYPE string. lv_type = zif_oapi_schema~get_simple_type( ). rv_simple = boolc( lv_type <> '' ). ENDMETHOD. METHOD lookup_ref. DATA lv_name TYPE string. ASSERT iv_name IS NOT INITIAL. lv_name = iv_name. REPLACE FIRST OCCURRENCE OF '#/components/schemas/' IN lv_name WITH ''. READ TABLE it_refs INTO rs_ref WITH KEY name = lv_name. ASSERT sy-subrc = 0. ENDMETHOD. METHOD zif_oapi_schema~build_type_definition. DATA ls_property TYPE zif_oapi_schema=>ty_property. DATA ls_ref TYPE zif_oapi_specification_v3=>ty_component_schema. DATA lv_count TYPE i. DATA lv_name TYPE string. IF zif_oapi_schema~type = 'object'. rv_abap = rv_abap && | TYPES: BEGIN OF { iv_name },\n|. lv_count = 0. LOOP AT zif_oapi_schema~properties INTO ls_property. rv_abap = rv_abap && | | && ls_property-abap_name && | TYPE |. IF ls_property-schema IS INITIAL. ls_ref = lookup_ref( iv_name = ls_property-ref it_refs = it_refs ). rv_abap = rv_abap && ls_ref-abap_name && |,\n|. ELSEIF ls_property-schema->is_simple_type( ) = abap_true. rv_abap = rv_abap && ls_property-schema->get_simple_type( ) && |,\n|. ELSEIF ls_property-schema->type = 'array'. rv_abap = rv_abap && |STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array\n|. ELSE. lv_name = io_names->to_abap_name( 'sub' && iv_name && '_' && ls_property-abap_name ). rv_abap = ls_property-schema->build_type_definition( iv_name = lv_name io_names = io_names it_refs = it_refs ) && rv_abap && lv_name && |,\n|. ENDIF. lv_count = lv_count + 1. ENDLOOP. IF lv_count = 0. " temporary workaround rv_abap = rv_abap && | dummy_workaround TYPE i,\n|. ENDIF. rv_abap = rv_abap && | END OF { iv_name }.\n|. ELSEIF zif_oapi_schema~type = 'array' AND zif_oapi_schema~items_ref IS NOT INITIAL. ls_ref = lookup_ref( iv_name = zif_oapi_schema~items_ref it_refs = it_refs ). rv_abap = rv_abap && | TYPES { iv_name } TYPE STANDARD TABLE OF { ls_ref-abap_name } WITH DEFAULT KEY.\n|. ELSEIF zif_oapi_schema~is_simple_type( ) = abap_true. rv_abap = rv_abap && | TYPES { iv_name } TYPE { zif_oapi_schema~get_simple_type( ) }.\n|. ELSE. rv_abap = rv_abap && | TYPES { iv_name } TYPE string. " { zif_oapi_schema~type } { zif_oapi_schema~items_ref } todo\n|. ENDIF. ENDMETHOD. METHOD zif_oapi_schema~get_simple_type. CASE zif_oapi_schema~type. WHEN 'integer'. rv_simple = 'i'. WHEN 'number'. rv_simple = 'f'. WHEN 'string'. rv_simple = 'string'. WHEN 'boolean'. rv_simple = 'abap_bool'. ENDCASE. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 78, 15042, 62, 15952, 2611, 5550, 20032, 17941, 44731, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 78, 15042, 62, 15952, 2611, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 35847, 62, 5420, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3672, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 5420, 82, 41876, 1976, 361, 62, 78, 15042, 62, 16684, 2649, 62, 85, 18, 14804, 774, 62, 1416, 4411, 292, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 5420, 8, 41876, 1976, 361, 62, 78, 15042, 62, 16684, 2649, 62, 85, 18, 14804, 774, 62, 42895, 62, 15952, 2611, 13, 198, 10619, 31631, 13, 198, 198, 31631, 1976, 565, 62, 78, 15042, 62, 15952, 2611, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 1976, 361, 62, 78, 15042, 62, 15952, 2611, 93, 271, 62, 36439, 62, 4906, 13, 628, 220, 220, 220, 42865, 300, 85, 62, 4906, 41876, 4731, 13, 628, 220, 220, 220, 300, 85, 62, 4906, 796, 1976, 361, 62, 78, 15042, 62, 15952, 2611, 93, 1136, 62, 36439, 62, 4906, 7, 6739, 628, 220, 220, 220, 374, 85, 62, 36439, 796, 20512, 66, 7, 300, 85, 62, 4906, 1279, 29, 10148, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 35847, 62, 5420, 13, 198, 220, 220, 220, 42865, 300, 85, 62, 3672, 41876, 4731, 13, 198, 220, 220, 220, 24994, 17395, 21628, 62, 3672, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 300, 85, 62, 3672, 796, 21628, 62, 3672, 13, 198, 220, 220, 220, 45285, 11598, 31328, 440, 4093, 31302, 18310, 3963, 705, 2, 14, 5589, 3906, 14, 1416, 4411, 292, 14, 6, 3268, 300, 85, 62, 3672, 13315, 705, 4458, 198, 220, 220, 220, 20832, 43679, 340, 62, 5420, 82, 39319, 44608, 62, 5420, 13315, 35374, 1438, 796, 300, 85, 62, 3672, 13, 198, 220, 220, 220, 24994, 17395, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 78, 15042, 62, 15952, 2611, 93, 11249, 62, 4906, 62, 46758, 13, 628, 220, 220, 220, 42865, 43979, 62, 26745, 41876, 1976, 361, 62, 78, 15042, 62, 15952, 2611, 14804, 774, 62, 26745, 13, 198, 220, 220, 220, 42865, 43979, 62, 5420, 41876, 1976, 361, 62, 78, 15042, 62, 16684, 2649, 62, 85, 18, 14804, 774, 62, 42895, 62, 15952, 2611, 13, 198, 220, 220, 220, 42865, 300, 85, 62, 9127, 41876, 1312, 13, 198, 220, 220, 220, 42865, 300, 85, 62, 3672, 41876, 4731, 13, 628, 220, 220, 220, 16876, 1976, 361, 62, 78, 15042, 62, 15952, 2611, 93, 4906, 796, 705, 15252, 4458, 198, 220, 220, 220, 220, 220, 374, 85, 62, 397, 499, 796, 374, 85, 62, 397, 499, 11405, 930, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1391, 21628, 62, 3672, 8964, 59, 77, 91, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 9127, 796, 657, 13, 198, 220, 220, 220, 220, 220, 17579, 3185, 5161, 1976, 361, 62, 78, 15042, 62, 15952, 2611, 93, 48310, 39319, 43979, 62, 26745, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 85, 62, 397, 499, 796, 374, 85, 62, 397, 499, 11405, 930, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 11405, 43979, 62, 26745, 12, 397, 499, 62, 3672, 11405, 930, 41876, 930, 13, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 43979, 62, 26745, 12, 15952, 2611, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 5420, 796, 35847, 62, 5420, 7, 21628, 62, 3672, 796, 43979, 62, 26745, 12, 5420, 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, 340, 62, 5420, 82, 796, 340, 62, 5420, 82, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 85, 62, 397, 499, 796, 374, 85, 62, 397, 499, 11405, 43979, 62, 5420, 12, 397, 499, 62, 3672, 11405, 930, 11, 59, 77, 91, 13, 198, 220, 220, 220, 220, 220, 220, 220, 17852, 5188, 5064, 43979, 62, 26745, 12, 15952, 2611, 3784, 271, 62, 36439, 62, 4906, 7, 1267, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 85, 62, 397, 499, 796, 374, 85, 62, 397, 499, 11405, 43979, 62, 26745, 12, 15952, 2611, 3784, 1136, 62, 36439, 62, 4906, 7, 1267, 11405, 930, 11, 59, 77, 91, 13, 198, 220, 220, 220, 220, 220, 220, 220, 17852, 5188, 5064, 43979, 62, 26745, 12, 15952, 2611, 3784, 4906, 796, 705, 18747, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 85, 62, 397, 499, 796, 374, 85, 62, 397, 499, 11405, 930, 2257, 6981, 9795, 43679, 3963, 4731, 13315, 5550, 38865, 35374, 11, 366, 284, 4598, 11, 5412, 7177, 59, 77, 91, 13, 198, 220, 220, 220, 220, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 3672, 796, 33245, 62, 14933, 3784, 1462, 62, 397, 499, 62, 3672, 7, 705, 7266, 6, 11405, 21628, 62, 3672, 11405, 705, 62, 6, 11405, 43979, 62, 26745, 12, 397, 499, 62, 3672, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 85, 62, 397, 499, 796, 43979, 62, 26745, 12, 15952, 2611, 3784, 11249, 62, 4906, 62, 46758, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3672, 220, 796, 300, 85, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 14933, 796, 33245, 62, 14933, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 5420, 82, 220, 796, 340, 62, 5420, 82, 1267, 11405, 374, 85, 62, 397, 499, 11405 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_ssst DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. CONSTANTS: c_style_active TYPE tdactivate VALUE 'A'. PRIVATE SECTION. METHODS validate_font IMPORTING iv_tdfamily TYPE tdfamily RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_object_ssst IMPLEMENTATION. METHOD validate_font. DATA: lv_tdfamily TYPE tfo01-tdfamily. SELECT SINGLE tdfamily FROM tfo01 INTO lv_tdfamily WHERE tdfamily = iv_tdfamily. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Font family not found' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~changed_by. SELECT SINGLE lastuser FROM stxsadm INTO rv_user WHERE stylename = ms_item-obj_name. IF sy-subrc <> 0. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~compare_to_remote_version. CREATE OBJECT ro_comparison_result TYPE zcl_abapgit_comparison_null. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_stylename TYPE tdssname. lv_stylename = ms_item-obj_name. CALL FUNCTION 'SSF_DELETE_STYLE' EXPORTING i_stylename = lv_stylename i_with_dialog = abap_false i_with_confirm_dialog = abap_false EXCEPTIONS no_name = 1 no_style = 2 style_locked = 3 cancelled = 4 no_access_permission = 5 illegal_language = 6 OTHERS = 7. IF sy-subrc <> 0 AND sy-subrc <> 2. zcx_abapgit_exception=>raise( 'error from SSF_DELETE_STYLE' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~deserialize. * see fm SSF_UPLOAD_STYLE DATA: ls_header TYPE ssfcats, ls_new_header TYPE ssfcats, lt_paragraphs TYPE TABLE OF ssfparas, lt_strings TYPE TABLE OF ssfstrings, lt_tabstops TYPE TABLE OF stxstab. FIELD-SYMBOLS: <lv_spras> TYPE spras. io_xml->read( EXPORTING iv_name = 'HEADER' CHANGING cg_data = ls_header ). io_xml->read( EXPORTING iv_name = 'SSFPARAS' CHANGING cg_data = lt_paragraphs ). io_xml->read( EXPORTING iv_name = 'SSFSTRINGS' CHANGING cg_data = lt_strings ). io_xml->read( EXPORTING iv_name = 'STXSTAB' CHANGING cg_data = lt_tabstops ). validate_font( ls_header-tdfamily ). CALL FUNCTION 'SSF_READ_STYLE' "Just load FG EXPORTING i_style_name = ls_header-stylename i_style_active_flag = 'A' EXCEPTIONS OTHERS = 0. set_default_package( iv_package ). ASSIGN ('(SAPLSTXBS)MASTER_LANGUAGE') TO <lv_spras>. IF sy-subrc = 0. <lv_spras> = ls_header-masterlang. ENDIF. tadir_insert( iv_package ). CALL FUNCTION 'SSF_SAVE_STYLE' EXPORTING i_header = ls_header IMPORTING e_header = ls_new_header TABLES i_paragraphs = lt_paragraphs i_strings = lt_strings i_tabstops = lt_tabstops. IF ls_new_header IS NOT INITIAL. CALL FUNCTION 'SSF_ACTIVATE_STYLE' EXPORTING i_stylename = ls_header-stylename EXCEPTIONS no_name = 1 no_style = 2 cancelled = 3 no_access_permission = 4 illegal_language = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from SSF_ACTIVATE_STYLE' ). ENDIF. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_stylename TYPE stxsadm-stylename. SELECT SINGLE stylename FROM stxshead INTO lv_stylename WHERE active = c_style_active AND stylename = ms_item-obj_name AND vari = ''. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). rs_metadata-delete_tadir = abap_true. ENDMETHOD. METHOD zif_abapgit_object~has_changed_since. rv_changed = abap_true. ENDMETHOD. METHOD zif_abapgit_object~jump. DATA: ls_bcdata TYPE bdcdata, lt_bcdata TYPE STANDARD TABLE OF bdcdata. ls_bcdata-program = 'SAPMSSFS'. ls_bcdata-dynpro = '0100'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO lt_bcdata. CLEAR ls_bcdata. ls_bcdata-fnam = 'SSFSCREENS-SNAME'. ls_bcdata-fval = ms_item-obj_name. APPEND ls_bcdata TO lt_bcdata. CLEAR ls_bcdata. ls_bcdata-fnam = 'BDC_OKCODE'. ls_bcdata-fval = '=DISPLAY'. APPEND ls_bcdata TO lt_bcdata. CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'GIT' EXPORTING tcode = 'SMARTSTYLES' mode_val = 'E' TABLES using_tab = lt_bcdata EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, SSST' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~serialize. * see fm SSF_DOWNLOAD_STYLE DATA: lv_style_name TYPE tdssname, ls_header TYPE ssfcats, lt_paragraphs TYPE TABLE OF ssfparas, lt_strings TYPE TABLE OF ssfstrings, lt_tabstops TYPE TABLE OF stxstab. lv_style_name = ms_item-obj_name. CALL FUNCTION 'SSF_READ_STYLE' EXPORTING i_style_name = lv_style_name i_style_active_flag = c_style_active i_style_variant = '%MAIN' i_style_language = mv_language IMPORTING e_header = ls_header TABLES e_paragraphs = lt_paragraphs e_strings = lt_strings e_tabstops = lt_tabstops EXCEPTIONS no_name = 1 no_style = 2 active_style_not_found = 3 inactive_style_not_found = 4 no_variant = 5 no_main_variant = 6 cancelled = 7 no_access_permission = 8 OTHERS = 9. IF sy-subrc = 2. RETURN. ELSEIF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from SSF_READ_STYLE' ). ENDIF. CLEAR ls_header-version. CLEAR ls_header-firstuser. CLEAR ls_header-firstdate. CLEAR ls_header-firsttime. CLEAR ls_header-lastuser. CLEAR ls_header-lastdate. CLEAR ls_header-lasttime. io_xml->add( iv_name = 'HEADER' ig_data = ls_header ). io_xml->add( ig_data = lt_paragraphs iv_name = 'SSFPARAS' ). io_xml->add( ig_data = lt_strings iv_name = 'SSFSTRINGS' ). io_xml->add( ig_data = lt_tabstops iv_name = 'STXSTAB' ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'E_SMSTYLE' iv_argument = |{ ms_item-obj_name }| ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 824, 301, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 269, 62, 7635, 62, 5275, 41876, 41560, 39022, 26173, 8924, 705, 32, 4458, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 26571, 62, 10331, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 83, 7568, 5993, 41876, 256, 7568, 5993, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 824, 301, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 26571, 62, 10331, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 83, 7568, 5993, 41876, 256, 6513, 486, 12, 83, 7568, 5993, 13, 628, 198, 220, 220, 220, 33493, 311, 2751, 2538, 256, 7568, 5993, 16034, 256, 6513, 486, 39319, 300, 85, 62, 83, 7568, 5993, 198, 220, 220, 220, 220, 220, 33411, 256, 7568, 5993, 796, 21628, 62, 83, 7568, 5993, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 23252, 1641, 407, 1043, 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, 40985, 62, 1525, 13, 628, 220, 220, 220, 33493, 311, 2751, 2538, 938, 7220, 16034, 336, 34223, 324, 76, 39319, 374, 85, 62, 7220, 198, 220, 220, 220, 220, 220, 33411, 22152, 12453, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 374, 85, 62, 7220, 796, 269, 62, 7220, 62, 34680, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 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, 301, 2645, 12453, 41876, 41560, 824, 3672, 13, 628, 198, 220, 220, 220, 300, 85, 62, 301, 2645, 12453, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 5432, 37, 62, 7206, 2538, 9328, 62, 2257, 56, 2538, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 301, 2645, 12453, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 301, 2645, 12453, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 4480, 62, 38969, 519, 220, 220, 220, 220, 220, 220, 220, 220, 796, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 4480, 62, 10414, 2533, 62, 38969, 519, 796, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 645, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 645, 62, 7635, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 3918, 62, 24162, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 16769, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 604, 198, 220, 220, 220, 220, 220, 220, 220, 645, 62, 15526, 62, 525, 3411, 220, 796, 642, 198, 220, 220, 220, 220, 220, 220, 220, 5293, 62, 16129, 220, 220, 220, 220, 220, 796, 718, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 767, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 5357, 827, 12, 7266, 6015, 1279, 29, 362, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 18224, 422, 6723, 37, 62, 7206, 2538, 9328, 62, 2257, 56, 2538, 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, 198, 9, 766, 277, 76, 6723, 37, 62, 52, 6489, 41048, 62, 2257, 56, 2538, 628, 220, 220, 220, 42865, 25, 43979, 62, 25677, 220, 220, 220, 220, 41876, 37786, 16072, 1381, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 3605, 62, 25677, 41876, 37786, 16072, 1381, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 20360, 82, 41876, 43679, 3963, 264, 28202, 1845, 292, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 37336, 220, 220, 220, 41876, 43679, 3963, 264, 28202, 37336, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 8658, 301, 2840, 220, 220, 41876, 43679, 3963, 336, 87, 39029, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 6780, 62, 34975, 292, 29, 41876, 7500, 292, 13, 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, 1, 1 ]
CLASS zcl_aoc_check_69 DEFINITION PUBLIC INHERITING FROM zcl_aoc_super CREATE PUBLIC . PUBLIC SECTION. METHODS constructor . METHODS check REDEFINITION . METHODS get_attributes REDEFINITION . METHODS if_ci_test~query_attributes REDEFINITION . METHODS put_attributes REDEFINITION . PROTECTED SECTION. METHODS is_parallel_method IMPORTING !it_tokens TYPE stokesx_tab RETURNING VALUE(rv_bool) TYPE abap_bool . METHODS field_symbol IMPORTING !iv_name TYPE string . METHODS data IMPORTING !iv_name TYPE string !iv_scope TYPE string OPTIONAL . METHODS is_global_exception_class RETURNING VALUE(rv_bool) TYPE abap_bool . METHODS analyze_statements IMPORTING !it_statements TYPE sstmnt_tab . METHODS check_at . METHODS check_class . METHODS check_constant . METHODS check_data . METHODS check_field_symbol . METHODS check_fm_parameters IMPORTING !it_parameters TYPE rsfb_para !iv_prefix TYPE string . METHODS check_form . METHODS check_function . METHODS check_function_pool . METHODS check_inline_defs . METHODS check_interface . METHODS check_method_definition . METHODS check_method_implementation . METHODS check_parameter . METHODS check_report . METHODS check_select_option . METHODS check_type . METHODS compare IMPORTING !iv_name TYPE string !iv_regex TYPE string !iv_relative TYPE i . METHODS compiler_resolve IMPORTING !iv_name TYPE string RETURNING VALUE(ro_generic) TYPE REF TO cl_abap_comp_data_generic . METHODS compiler_resolve_class RETURNING VALUE(ro_class) TYPE REF TO cl_abap_comp_class . METHODS determine_scope_prefix RETURNING VALUE(rv_prefix) TYPE string . METHODS determine_type_prefix IMPORTING !io_generic TYPE REF TO cl_abap_comp_data_generic RETURNING VALUE(rv_prefix) TYPE string . METHODS get_statement RETURNING VALUE(rv_string) TYPE string . METHODS qualify_tokens RETURNING VALUE(rt_tokens) TYPE stokesx_tab . METHODS remove_value IMPORTING !iv_input TYPE string RETURNING VALUE(rv_output) TYPE string . METHODS set_defaults . METHODS skip_fm_parameters IMPORTING !iv_name TYPE eu_lname !is_parameters TYPE rsfbintfv RETURNING VALUE(rv_skip) TYPE abap_bool . METHODS skip_fm_parameters_check IMPORTING !is_parameters TYPE rsfbintfv !is_check TYPE rsfbintfv RETURNING VALUE(rv_skip) TYPE abap_bool . METHODS is_unresolved_exception_class IMPORTING !iv_class_fullname TYPE string RETURNING VALUE(rv_is_an_excpcls) TYPE xfeld . PRIVATE SECTION. DATA mo_scan TYPE REF TO zcl_aoc_scan . DATA ms_naming TYPE zaoc_naming . DATA mo_compiler TYPE REF TO cl_abap_compiler . DATA mo_stack TYPE REF TO lcl_stack . DATA mv_begin TYPE i . DATA mv_at TYPE string . DATA mv_position TYPE i . ENDCLASS. CLASS zcl_aoc_check_69 IMPLEMENTATION. METHOD analyze_statements. DATA: lv_define TYPE abap_bool, lv_keyword TYPE string, ls_object_ns TYPE zcl_aoc_util_reg_atc_namespace=>ty_ns_object. LOOP AT it_statements INTO statement_wa. mv_position = sy-tabix. CHECK statement_wa-from <= statement_wa-to. lv_keyword = keyword( ). IF lv_define = abap_true. IF lv_keyword = 'END-OF-DEFINITION'. lv_define = abap_false. ENDIF. CONTINUE. ENDIF. CASE lv_keyword. WHEN 'DEFINE'. lv_define = abap_true. WHEN 'REPORT' OR 'PROGRAM'. check_report( ). WHEN 'FUNCTION-POOL'. check_function_pool( ). WHEN 'AT'. check_at( ). WHEN 'TYPES'. check_type( ). WHEN 'DATA' OR 'RANGES' OR 'STATICS' OR 'CLASS-DATA'. check_data( ). WHEN 'CONSTANTS'. check_constant( ). WHEN 'FIELD-SYMBOLS'. check_field_symbol( ). WHEN 'SELECT-OPTIONS'. check_select_option( ). WHEN 'PARAMETERS' OR 'PARAMETER'. check_parameter( ). WHEN 'CLASS'. check_class( ). WHEN 'INTERFACE'. check_interface( ). WHEN 'FORM'. check_form( ). WHEN 'FUNCTION'. check_function( ). WHEN 'METHODS' OR 'CLASS-METHODS'. check_method_definition( ). WHEN 'METHOD'. check_method_implementation( ). WHEN 'ENDCLASS' OR 'ENDMETHOD' OR 'ENDFORM' OR 'ENDINTERFACE'. mo_stack->pop( ). WHEN 'ENDFUNCTION'. IF object_type = 'FUGR' OR object_type = 'FUGS' OR object_type = 'FUGX'. IF zcl_aoc_util_reg_atc_namespace=>is_in_namespace( iv_pgmid = 'R3TR' iv_object = 'FUGR' iv_obj_name = object_name ) = abap_true. ls_object_ns = zcl_aoc_util_reg_atc_namespace=>split_ns_object( iv_pgmid = 'R3TR' iv_object = 'FUGR' iv_obj_name = object_name ). mo_stack->set( '\PR:' && ls_object_ns-namespace && 'SAPL' && ls_object_ns-object ). ELSE. mo_stack->set( '\PR:SAPL' && object_name ). ENDIF. ELSE. mo_stack->set( '\PR:' && object_name ). ENDIF. WHEN OTHERS. check_inline_defs( ). ENDCASE. ENDLOOP. ENDMETHOD. METHOD check. * abapOpenChecks * https://github.com/larshp/abapOpenChecks * MIT License DATA: lv_subrc LIKE sy-subrc, lv_subc TYPE reposrc-subc. mo_scan = io_scan. IF object_type = 'WDYN'. RETURN. " todo, WDYN ELSEIF object_type = 'PROG'. SELECT SINGLE subc FROM reposrc INTO lv_subc WHERE progname = object_name AND r3state = 'A'. IF sy-subrc <> 0 OR lv_subc = 'I' OR lv_subc = 'S'. RETURN. ENDIF. ENDIF. CREATE OBJECT mo_stack. mo_compiler = cl_abap_compiler=>create( program_name ). mo_compiler->get_check_infos( IMPORTING p_subrc = lv_subrc ). IF lv_subrc <> 0 AND ms_naming-set_syntax = abap_true. inform( p_kind = mv_errty p_test = myname p_code = '005' ). RETURN. ENDIF. analyze_statements( io_scan->statements ). ENDMETHOD. METHOD check_at. IF get_token_rel( 2 ) <> 'SELECTION-SCREEN'. RETURN. ENDIF. CASE get_token_rel( 3 ). WHEN 'OUTPUT'. mv_at = cl_abap_compiler=>tag_at_selection_screen_output. WHEN 'ON'. CASE get_token_rel( 4 ). WHEN 'END'. mv_at = |{ cl_abap_compiler=>tag_at_selection_screen_on_end }:{ get_token_rel( 6 ) }|. WHEN 'BLOCK'. mv_at = |{ cl_abap_compiler=>tag_at_selection_screen_block }:{ get_token_rel( 5 ) }|. WHEN 'RADIOBUTTON'. mv_at = |{ cl_abap_compiler=>tag_at_selection_screen_radio }:{ get_token_rel( 6 ) }|. WHEN 'HELP-REQUEST'. mv_at = |{ cl_abap_compiler=>tag_at_selection_screen_help }:{ get_token_rel( 6 ) }|. WHEN 'VALUE-REQUEST'. mv_at = |{ cl_abap_compiler=>tag_at_selection_screen_value }:{ get_token_rel( 6 ) }|. WHEN 'EXIT-COMMAND'. mv_at = cl_abap_compiler=>tag_at_selection_screen_exit. WHEN OTHERS. mv_at = |{ cl_abap_compiler=>tag_at_selection_screen_on }:{ get_token_rel( 4 ) }|. ENDCASE. WHEN OTHERS. mv_at = cl_abap_compiler=>tag_at_selection_screen. ENDCASE. mv_at = '\' && mv_at. ENDMETHOD. METHOD check_class. DATA: lv_name TYPE string, lv_statement TYPE string, lo_super TYPE REF TO cl_abap_comp_class, lv_abstract TYPE abap_bool, lv_regex TYPE string. CASE get_token_rel( 4 ). WHEN 'LOAD' OR 'DEFERRED'. RETURN. ENDCASE. lv_name = get_token_rel( 2 ). IF object_type = 'CLAS' AND lv_name = object_name. mo_stack->set( '\TY:' && lv_name ). ELSEIF object_type = 'CLAS'. mo_stack->set( '\PR:' && program_name && '\TY:' && lv_name ). ELSE. mo_stack->push( '\TY:' && lv_name ). ENDIF. IF get_token_rel( 3 ) = 'IMPLEMENTATION'. RETURN. ENDIF. lo_super = compiler_resolve_class( ). IF lo_super IS INITIAL. RETURN. ENDIF. lv_abstract = lo_super->is_abstract. WHILE NOT lo_super->super_class IS INITIAL. lo_super = lo_super->super_class. ENDWHILE. IF object_name = lv_name AND object_type = 'CLAS'. IF lo_super->full_name = '\TY:CX_ROOT'. lv_regex = ms_naming-globals_clasx. ELSEIF lv_abstract = abap_true. lv_regex = ms_naming-globals_clasa. ELSE. lv_regex = ms_naming-globals_clas. ENDIF. REPLACE FIRST OCCURRENCE OF '[:nspace:]' IN lv_regex WITH ms_naming-globals_nspace. ELSE. lv_regex = ms_naming-oo_oolcla. lv_statement = get_statement( ). IF lv_statement CS 'FOR TESTING'. lv_regex = ms_naming-oo_ooltcl. ELSEIF lo_super->full_name = '\TY:CX_ROOT'. lv_regex = ms_naming-oo_oolxcl. ENDIF. ENDIF. compare( iv_name = lv_name iv_regex = lv_regex iv_relative = 2 ). ENDMETHOD. METHOD check_constant. DATA: lv_regex TYPE string, lv_name TYPE string, lv_offset TYPE i, lo_generic TYPE REF TO cl_abap_comp_data_generic. lv_name = get_token_rel( 2 ). * remove old style length definitions FIND '(' IN lv_name MATCH OFFSET lv_offset. IF sy-subrc = 0. lv_name = lv_name(lv_offset). ENDIF. IF lv_name = 'BEGIN' AND get_token_rel( 3 ) = 'OF' AND mv_begin = abap_false. lv_name = get_token_rel( 4 ). mv_begin = 1. ELSEIF lv_name = 'BEGIN' AND get_token_rel( 3 ) = 'OF'. mv_begin = mv_begin + 1. RETURN. ELSEIF lv_name = 'END' AND get_token_rel( 3 ) = 'OF'. mv_begin = mv_begin - 1. RETURN. ELSEIF mv_begin > 0. RETURN. ENDIF. IF mo_stack->concatenate( ) CS '\ME:' OR mo_stack->concatenate( ) CS '\FO:' OR mo_stack->concatenate( ) CS '\FU:'. lv_regex = ms_naming-locals_lconst. ELSEIF mo_stack->concatenate( ) CS '\TY:'. lv_regex = ms_naming-oo_oocons. IF ms_naming-set_exccon = abap_true AND is_global_exception_class( ) = abap_true. RETURN. ENDIF. ELSE. lv_regex = ms_naming-proc_pgcons. ENDIF. lo_generic = compiler_resolve( '\DA:' && lv_name ). IF lo_generic IS INITIAL. RETURN. ENDIF. REPLACE ALL OCCURRENCES OF '[:type:]' IN lv_regex WITH determine_type_prefix( lo_generic ). compare( iv_name = lv_name iv_regex = lv_regex iv_relative = 2 ). ENDMETHOD. METHOD check_data. DATA: lv_offset TYPE string, lv_name TYPE string. lv_name = get_token_rel( 2 ). IF lv_name = 'BEGIN' AND get_token_rel( 3 ) = 'OF' AND mv_begin = 0. lv_name = get_token_rel( 4 ). mv_begin = 1. IF get_token_rel( 4 ) = 'COMMON' AND get_token_rel( 5 ) = 'PART'. RETURN. ENDIF. ELSEIF lv_name = 'BEGIN' AND get_token_rel( 3 ) = 'OF'. mv_begin = mv_begin + 1. RETURN. ELSEIF lv_name = 'END' AND get_token_rel( 3 ) = 'OF'. mv_begin = mv_begin - 1. RETURN. ELSEIF mv_begin > 0. RETURN. ENDIF. * remove old style length definitions FIND '(' IN lv_name MATCH OFFSET lv_offset. IF sy-subrc = 0. lv_name = lv_name(lv_offset). ENDIF. IF ms_naming-set_excatt = abap_true AND mo_stack->concatenate( ) = |\\TY:{ object_name }| AND is_global_exception_class( ) = abap_true. RETURN. ENDIF. data( lv_name ). ENDMETHOD. METHOD check_field_symbol. DATA: lo_generic TYPE REF TO cl_abap_comp_data_generic, lv_regex TYPE string, lv_name TYPE string. lv_name = get_token_rel( 2 ). lo_generic = compiler_resolve( '\DA:' && lv_name ). IF lo_generic IS INITIAL. RETURN. ENDIF. IF mo_stack->concatenate( ) CS '\ME:' OR mo_stack->concatenate( ) CS '\FO:' OR mo_stack->concatenate( ) CS '\FU:'. lv_regex = ms_naming-locals_fsymbo. ELSE. lv_regex = ms_naming-proc_pgfisy. ENDIF. REPLACE ALL OCCURRENCES OF '[:type:]' IN lv_regex WITH determine_type_prefix( lo_generic ). compare( iv_name = lv_name iv_regex = lv_regex iv_relative = 2 ). ENDMETHOD. METHOD check_fm_parameters. DATA: lv_name TYPE string, lv_regex TYPE string, lo_generic TYPE REF TO cl_abap_comp_data_generic, ls_parameter LIKE LINE OF it_parameters. LOOP AT it_parameters INTO ls_parameter. lv_regex = iv_prefix. lv_name = ls_parameter-parameter. lo_generic = compiler_resolve( '\DA:' && lv_name ). IF lo_generic IS INITIAL. CONTINUE. ENDIF. REPLACE ALL OCCURRENCES OF '[:type:]' IN lv_regex WITH determine_type_prefix( lo_generic ). compare( iv_name = lv_name iv_regex = lv_regex iv_relative = 2 ). ENDLOOP. ENDMETHOD. METHOD check_form. DATA: lt_tokens TYPE stokesx_tab, lv_scope TYPE string, lv_name TYPE string, ls_token LIKE LINE OF lt_tokens. CLEAR mv_at. lv_name = get_token_rel( 2 ). mo_stack->push( '\FO:' && lv_name ). lt_tokens = qualify_tokens( ). LOOP AT lt_tokens INTO ls_token. CASE ls_token-type. WHEN sana_tok_field_def. lv_name = remove_value( ls_token-str ). data( iv_name = lv_name iv_scope = lv_scope ). WHEN sana_tok_word. CASE ls_token-str. WHEN 'USING'. lv_scope = ms_naming-proc_fousin. WHEN 'CHANGING'. lv_scope = ms_naming-proc_fochan. WHEN 'TABLES'. lv_scope = ms_naming-proc_fotabl. ENDCASE. ENDCASE. ENDLOOP. ENDMETHOD. METHOD check_function. DATA: lv_name TYPE eu_lname, ls_interface TYPE rsfbintfv. lv_name = get_token_rel( 2 ). mo_stack->set( '\FU:' && lv_name ). cl_fb_function_utility=>meth_get_interface( EXPORTING im_name = lv_name IMPORTING ex_interface = ls_interface EXCEPTIONS error_occured = 1 object_not_existing = 2 OTHERS = 3 ). IF sy-subrc <> 0. inform( p_kind = mv_errty p_test = myname p_code = '006' ). RETURN. ENDIF. IF skip_fm_parameters( iv_name = lv_name is_parameters = ls_interface ) = abap_true. RETURN. ENDIF. check_fm_parameters( it_parameters = ls_interface-import iv_prefix = ms_naming-proc_fimpor ). check_fm_parameters( it_parameters = ls_interface-export iv_prefix = ms_naming-proc_fexpor ). check_fm_parameters( it_parameters = ls_interface-change iv_prefix = ms_naming-proc_fchang ). check_fm_parameters( it_parameters = ls_interface-tables iv_prefix = ms_naming-proc_ftable ). ENDMETHOD. METHOD check_function_pool. DATA: lv_name TYPE string, lv_regex TYPE string, ls_object_ns TYPE zcl_aoc_util_reg_atc_namespace=>ty_ns_object. lv_name = get_token_rel( 2 ). lv_regex = ms_naming-globals_fugr. REPLACE FIRST OCCURRENCE OF '[:nspace:]' IN lv_regex WITH ms_naming-globals_nspace. compare( iv_name = lv_name iv_regex = lv_regex iv_relative = 2 ). IF zcl_aoc_util_reg_atc_namespace=>is_in_namespace( iv_pgmid = 'R3TR' iv_object = 'FUGR' iv_obj_name = lv_name ) = abap_true. ls_object_ns = zcl_aoc_util_reg_atc_namespace=>split_ns_object( iv_pgmid = 'R3TR' iv_object = 'FUGR' iv_obj_name = lv_name ). mo_stack->push( '\PR:' && ls_object_ns-namespace && 'SAPL' && ls_object_ns-object ). ELSE. mo_stack->push( '\PR:' && 'SAPL' && lv_name ). ENDIF. ENDMETHOD. METHOD check_inline_defs. DATA: ls_token LIKE LINE OF ref_scan->tokens, lv_name TYPE string. LOOP AT ref_scan->tokens FROM statement_wa-from TO statement_wa-to INTO ls_token. FIND REGEX '^DATA\((\w+)\)$' IN ls_token-str SUBMATCHES lv_name. IF sy-subrc = 0. data( lv_name ). ENDIF. FIND REGEX '^FIELD-SYMBOL\((<\w+>)\)$' IN ls_token-str SUBMATCHES lv_name ##NO_TEXT. IF sy-subrc = 0. field_symbol( lv_name ). ENDIF. ENDLOOP. ENDMETHOD. METHOD check_interface. DATA: lv_name TYPE string, lv_regex TYPE string. CASE get_token_rel( 3 ). WHEN 'LOAD' OR 'DEFERRED'. RETURN. ENDCASE. lv_name = get_token_rel( 2 ). IF object_type = 'INTF' AND lv_name = object_name. mo_stack->set( '\TY:' && lv_name ). ELSEIF object_type = 'INTF' OR object_type = 'CLAS'. mo_stack->set( '\PR:' && program_name && '\TY:' && lv_name ). ELSE. mo_stack->push( '\TY:' && lv_name ). ENDIF. IF object_type = 'INTF'. lv_regex = ms_naming-globals_intf. ELSE. lv_regex = ms_naming-oo_oolint. ENDIF. REPLACE FIRST OCCURRENCE OF '[:nspace:]' IN lv_regex WITH ms_naming-globals_nspace. compare( iv_name = lv_name iv_regex = lv_regex iv_relative = 2 ). ENDMETHOD. METHOD check_method_definition. DATA: lt_tokens TYPE stokesx_tab, lv_scope TYPE string, lv_name TYPE string, ls_token LIKE LINE OF lt_tokens. IF is_global_exception_class( ) = abap_true AND ms_naming-set_excpar = abap_true AND get_token_rel( 2 ) = 'CONSTRUCTOR'. RETURN. ENDIF. mo_stack->push( '\ME:' && get_token_rel( 2 ) ). lt_tokens = qualify_tokens( ). LOOP AT lt_tokens INTO ls_token. CASE ls_token-type. WHEN sana_tok_field_def. lv_name = remove_value( ls_token-str ). IF ms_naming-set_pmeth = abap_true AND is_parallel_method( lt_tokens ) = abap_true. CONTINUE. ENDIF. data( iv_name = lv_name iv_scope = lv_scope ). WHEN sana_tok_word. CASE ls_token-str. WHEN 'IMPORTING'. lv_scope = ms_naming-oo_ooimpo. WHEN 'EXPORTING'. lv_scope = ms_naming-oo_ooexpo. WHEN 'CHANGING'. lv_scope = ms_naming-oo_oochan. WHEN 'RETURNING'. lv_scope = ms_naming-oo_ooretu. ENDCASE. ENDCASE. ENDLOOP. mo_stack->pop( ). ENDMETHOD. METHOD check_method_implementation. DATA: lv_method TYPE string, lv_interface TYPE string. lv_method = get_token_rel( 2 ). IF lv_method CS '~'. SPLIT lv_method AT '~' INTO lv_interface lv_method. mo_stack->push( '\IN:' && lv_interface && '\ME:' && lv_method ). ELSE. mo_stack->push( '\ME:' && lv_method ). ENDIF. ENDMETHOD. METHOD check_parameter. DATA: lv_name TYPE string, lv_regex TYPE string. lv_name = get_token_rel( 2 ). lv_regex = ms_naming-proc_pgpara. compare( iv_name = lv_name iv_regex = lv_regex iv_relative = 2 ). ENDMETHOD. METHOD check_report. DATA: lv_name TYPE string, lv_regex TYPE string. mo_stack->push( '\PR:' && program_name ). lv_name = get_token_rel( 2 ). lv_regex = ms_naming-globals_prog. REPLACE FIRST OCCURRENCE OF '[:nspace:]' IN lv_regex WITH ms_naming-globals_nspace. compare( iv_name = lv_name iv_regex = lv_regex iv_relative = 2 ). ENDMETHOD. METHOD check_select_option. DATA: lv_name TYPE string, lv_regex TYPE string. lv_name = get_token_rel( 2 ). lv_regex = ms_naming-proc_pgselo. compare( iv_name = lv_name iv_regex = lv_regex iv_relative = 2 ). ENDMETHOD. METHOD check_type. DATA: lv_regex TYPE string, lv_name TYPE string. lv_name = get_token_rel( 2 ). IF lv_name = 'BEGIN' AND get_token_rel( 3 ) = 'OF' AND mv_begin = 0. lv_name = get_token_rel( 4 ). mv_begin = 1. ELSEIF lv_name = 'BEGIN' AND get_token_rel( 3 ) = 'OF'. mv_begin = mv_begin + 1. RETURN. ELSEIF lv_name = 'END' AND get_token_rel( 3 ) = 'OF'. mv_begin = mv_begin - 1. RETURN. ELSEIF mv_begin > 0. RETURN. ENDIF. IF mo_stack->concatenate( ) CS '\ME:' OR mo_stack->concatenate( ) CS '\FO:' OR mo_stack->concatenate( ) CS '\FU:'. lv_regex = ms_naming-locals_ltypes. ELSEIF mo_stack->concatenate( ) CS '\TY:'. lv_regex = ms_naming-oo_ootype. ELSE. lv_regex = ms_naming-proc_pgtype. ENDIF. compare( iv_name = lv_name iv_regex = lv_regex iv_relative = 2 ). ENDMETHOD. METHOD compare. DATA: lv_regex TYPE string, lv_include TYPE sobj_name. lv_regex = |^{ iv_regex }|. FIND REGEX lv_regex IN iv_name IGNORING CASE. IF sy-subrc <> 0. lv_include = mo_scan->get_include( statement_wa-level ). inform( p_sub_obj_name = lv_include p_line = get_line_rel( iv_relative ) p_column = get_column_rel( iv_relative ) p_position = mv_position p_kind = mv_errty p_test = myname p_code = '001' p_param_1 = iv_regex p_param_2 = iv_name ). ENDIF. ENDMETHOD. METHOD compiler_resolve. DATA: lv_full TYPE string. lv_full = mo_stack->concatenate( iv_name ). ro_generic ?= mo_compiler->get_symbol_entry( lv_full ). IF ro_generic IS INITIAL AND NOT mv_at IS INITIAL. lv_full = mo_stack->concatenate( mv_at && iv_name ). ro_generic ?= mo_compiler->get_symbol_entry( lv_full ). ENDIF. IF ro_generic IS INITIAL. inform( p_sub_obj_name = mo_scan->get_include( statement_wa-level ) p_line = get_line_rel( 2 ) p_column = get_column_rel( 2 ) p_kind = mv_errty p_test = myname p_code = '002' p_param_1 = lv_full ). ENDIF. ENDMETHOD. METHOD compiler_resolve_class. DATA: lv_full TYPE string, lv_include TYPE sobj_name. lv_full = mo_stack->concatenate( ). IF lv_full IS INITIAL. RETURN. ENDIF. TRY. ro_class ?= mo_compiler->get_symbol_entry( lv_full ). CATCH cx_sy_move_cast_error ##NO_HANDLER. ENDTRY. IF ro_class IS INITIAL. lv_include = mo_scan->get_include( statement_wa-level ). inform( p_sub_obj_name = lv_include p_line = get_line_rel( 2 ) p_column = get_column_rel( 2 ) p_kind = mv_errty p_test = myname p_code = '004' p_param_1 = lv_full ). ENDIF. ENDMETHOD. METHOD constructor. super->constructor( ). version = '002'. position = '069'. has_attributes = abap_true. attributes_ok = abap_true. set_defaults( ). insert_scimessage( iv_code = '001' iv_text = 'Bad naming, expected &1, got &2'(m01) iv_pcom = '"#EC CI_NAMING' ). insert_scimessage( iv_code = '002' iv_text = 'Unable to resolve &1'(m05) ). insert_scimessage( iv_code = '003' iv_text = 'Error qualifying tokens'(m02) ). insert_scimessage( iv_code = '004' iv_text = 'Unable to resolve &1'(m05) ). insert_scimessage( iv_code = '005' iv_text = 'Syntax error'(m03) ). insert_scimessage( iv_code = '006' iv_text = 'Error reading FM parameters'(m04) ). ENDMETHOD. METHOD data. DATA: lo_generic TYPE REF TO cl_abap_comp_data_generic, lv_regex TYPE string. lo_generic = compiler_resolve( '\DA:' && iv_name ). IF lo_generic IS INITIAL. RETURN. ENDIF. IF iv_scope IS INITIAL. lv_regex = determine_scope_prefix( ). ELSE. lv_regex = iv_scope. ENDIF. REPLACE ALL OCCURRENCES OF '[:type:]' IN lv_regex WITH determine_type_prefix( lo_generic ). compare( iv_name = iv_name iv_regex = lv_regex iv_relative = 2 ). ENDMETHOD. METHOD determine_scope_prefix. DATA: lv_keyword TYPE string. lv_keyword = keyword( ). IF lv_keyword = 'STATICS'. rv_prefix = ms_naming-locals_static. ELSEIF mo_stack->concatenate( ) CS '\ME:' OR mo_stack->concatenate( ) CS '\FO:' OR mo_stack->concatenate( ) CS '\FU:'. rv_prefix = ms_naming-locals_data. ELSEIF mo_stack->concatenate( ) CS '\TY:' AND lv_keyword = 'DATA'. rv_prefix = ms_naming-oo_oodata. ELSEIF mo_stack->concatenate( ) CS '\TY:' AND lv_keyword = 'CLASS-DATA'. rv_prefix = ms_naming-oo_oocdat. ELSE. rv_prefix = ms_naming-proc_pgdata. ENDIF. ENDMETHOD. METHOD determine_type_prefix. CONSTANTS: "! cl_abap_comp_type=>type_kind_ddic_dbtab does not exists in 731 lc_type_kind_ddic_dbtab TYPE scr_typekind VALUE `7`. DATA: lo_table_symbol TYPE REF TO cl_abap_comp_table_type, lo_symbol_simple TYPE REF TO cl_abap_comp_data, lo_type_symbol TYPE REF TO cl_abap_comp_type, lo_type_symbol_class TYPE REF TO cl_abap_comp_class, lo_symbol_tab TYPE REF TO cl_abap_comp_table_with_head, lo_type_symbol_ref TYPE REF TO cl_abap_comp_ref_type, lo_type_alias_symbol TYPE REF TO cl_abap_comp_alias_type. IF io_generic->node_kind = cl_abap_comp_data_generic=>data_node_kind_table_with_head. lo_symbol_tab ?= io_generic. lo_symbol_simple = lo_symbol_tab->table. ELSE. lo_symbol_simple ?= io_generic. ENDIF. lo_type_symbol = lo_symbol_simple->type. WHILE lo_type_symbol->type_kind = cl_abap_comp_type=>type_kind_alias. lo_type_alias_symbol ?= lo_type_symbol. lo_type_symbol = lo_type_alias_symbol->alias_type. ENDWHILE. CASE lo_type_symbol->type_kind. WHEN cl_abap_comp_type=>type_kind_elementary. CASE lo_type_symbol->full_name. WHEN '\PT:ANY' OR '\PT:DATA'. rv_prefix = ms_naming-prefix_generi. WHEN OTHERS. rv_prefix = ms_naming-prefix_elemen. ENDCASE. WHEN cl_abap_comp_type=>type_kind_structure OR lc_type_kind_ddic_dbtab. rv_prefix = ms_naming-prefix_struct. WHEN cl_abap_comp_type=>type_kind_table. lo_table_symbol ?= lo_type_symbol. CASE lo_table_symbol->index_kind. WHEN cl_abap_comp_table_type=>index_kind_hashed. rv_prefix = ms_naming-prefix_thash. WHEN cl_abap_comp_table_type=>index_kind_sorted. rv_prefix = ms_naming-prefix_tsort. WHEN cl_abap_comp_table_type=>index_kind_index. rv_prefix = ms_naming-prefix_tindex. WHEN cl_abap_comp_table_type=>index_kind_standard. rv_prefix = ms_naming-prefix_tstand. WHEN cl_abap_comp_table_type=>index_kind_any. rv_prefix = ms_naming-prefix_tany. WHEN OTHERS. ASSERT 0 = 1. ENDCASE. WHEN cl_abap_comp_type=>type_kind_reference. lo_type_symbol_ref ?= lo_type_symbol. CASE lo_type_symbol_ref->ref_type->type_kind. WHEN cl_abap_comp_table_type=>type_kind_interface. rv_prefix = ms_naming-prefix_rinter. WHEN cl_abap_comp_table_type=>type_kind_class. lo_type_symbol_class ?= lo_type_symbol_ref->ref_type. WHILE lo_type_symbol_class->super_class IS BOUND. lo_type_symbol_class = lo_type_symbol_class->super_class. ENDWHILE. CASE lo_type_symbol_class->full_name. WHEN '\TY:CX_ROOT'. rv_prefix = ms_naming-prefix_rexcep. WHEN '\TY:CL_BADI_BASE'. rv_prefix = ms_naming-prefix_rbadi. WHEN OTHERS. rv_prefix = ms_naming-prefix_rclass. "further check, if class is an unresolved exception class IF is_unresolved_exception_class( lo_type_symbol_class->full_name ) = abap_true. rv_prefix = ms_naming-prefix_rexcep. ENDIF. ENDCASE. WHEN OTHERS. rv_prefix = ms_naming-prefix_rdata. ENDCASE. WHEN OTHERS. ASSERT 0 = 1. ENDCASE. ENDMETHOD. METHOD field_symbol. DATA: lo_generic TYPE REF TO cl_abap_comp_data_generic, lv_regex TYPE string. lo_generic = compiler_resolve( '\DA:' && iv_name ). IF lo_generic IS INITIAL. RETURN. ENDIF. IF mo_stack->concatenate( ) CS '\ME:' OR mo_stack->concatenate( ) CS '\FO:' OR mo_stack->concatenate( ) CS '\FU:'. lv_regex = ms_naming-locals_fsymbo. ELSE. lv_regex = ms_naming-proc_pgfisy. ENDIF. REPLACE ALL OCCURRENCES OF '[:type:]' IN lv_regex WITH determine_type_prefix( lo_generic ). compare( iv_name = iv_name iv_regex = lv_regex iv_relative = 2 ). ENDMETHOD. METHOD get_attributes. EXPORT mv_errty = mv_errty ms_naming = ms_naming TO DATA BUFFER p_attributes. ENDMETHOD. METHOD get_statement. DATA: ls_token LIKE LINE OF ref_scan->tokens. LOOP AT ref_scan->tokens INTO ls_token FROM statement_wa-from TO statement_wa-to. rv_string = |{ rv_string }{ ls_token-str } |. ENDLOOP. ENDMETHOD. METHOD if_ci_test~query_attributes. ms_naming-set_errty = mv_errty. CALL FUNCTION 'Z_AOC_NAMING' EXPORTING iv_read_only = p_display CHANGING cs_data = ms_naming. mv_errty = ms_naming-set_errty. attributes_ok = abap_true. ENDMETHOD. METHOD is_global_exception_class. DATA: lo_super TYPE REF TO cl_abap_comp_class, lv_name TYPE seoclsname. IF object_type <> 'CLAS'. RETURN. ENDIF. lv_name = object_name. IF cl_oo_classname_service=>get_ccdef_name( lv_name ) = mo_scan->get_include( statement_wa-level ) OR cl_oo_classname_service=>get_ccimp_name( lv_name ) = mo_scan->get_include( statement_wa-level ). RETURN. ENDIF. lo_super = compiler_resolve_class( ). IF lo_super IS INITIAL. RETURN. ENDIF. WHILE NOT lo_super->super_class IS INITIAL. lo_super = lo_super->super_class. ENDWHILE. rv_bool = boolc( lo_super->full_name = '\TY:CX_ROOT' ). ENDMETHOD. METHOD is_parallel_method. DATA: ls_token LIKE LINE OF it_tokens. IF lines( it_tokens ) <> 6. RETURN. ENDIF. READ TABLE it_tokens INDEX 3 INTO ls_token. IF sy-subrc <> 0 OR ls_token-str <> 'IMPORTING'. RETURN. ENDIF. READ TABLE it_tokens INDEX 4 INTO ls_token. IF sy-subrc <> 0 OR ls_token-str <> 'P_TASK'. RETURN. ENDIF. READ TABLE it_tokens INDEX 5 INTO ls_token. IF sy-subrc <> 0 OR ls_token-str <> 'TYPE'. RETURN. ENDIF. READ TABLE it_tokens INDEX 6 INTO ls_token. IF sy-subrc <> 0 OR ls_token-str <> 'CLIKE'. RETURN. ENDIF. rv_bool = abap_true. ENDMETHOD. METHOD is_unresolved_exception_class. DATA lv_name TYPE program. DATA lv_prefix TYPE string. DATA lo_compiler TYPE REF TO cl_abap_compiler. DATA lo_class TYPE REF TO cl_abap_comp_class. TRY. rv_is_an_excpcls = abap_false. SPLIT iv_class_fullname AT '\TY:' INTO lv_prefix lv_name. OVERLAY lv_name WITH '==============================CP'. lo_compiler = cl_abap_compiler=>create( lv_name ). IF lo_compiler IS NOT BOUND. RETURN. ENDIF. lo_class ?= lo_compiler->get_symbol_entry( iv_class_fullname ). IF lo_class IS BOUND. WHILE lo_class->super_class IS BOUND. lo_class = lo_class->super_class. ENDWHILE. IF lo_class->full_name = '\TY:CX_ROOT'. rv_is_an_excpcls = abap_true. ENDIF. ENDIF. CATCH cx_sy_move_cast_error ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD put_attributes. IMPORT mv_errty = mv_errty ms_naming = ms_naming FROM DATA BUFFER p_attributes. "#EC CI_USE_WANTED ASSERT sy-subrc = 0. ENDMETHOD. METHOD qualify_tokens. DATA: lv_lines TYPE i. INSERT LINES OF ref_scan->tokens FROM statement_wa-from TO statement_wa-to INTO TABLE rt_tokens. lv_lines = lines( rt_tokens ). CALL FUNCTION 'RS_QUALIFY_ABAP_TOKENS_STR' EXPORTING statement_type = statement_wa-type index_from = 1 index_to = lv_lines CHANGING stokesx_tab = rt_tokens EXCEPTIONS error_load_pattern = 1 unknown_keyword = 2 no_matching_statement = 3 meaningless_statement = 4 OTHERS = 5. IF sy-subrc <> 0. inform( p_sub_obj_name = mo_scan->get_include( statement_wa-level ) p_line = get_line_rel( 2 ) p_column = get_column_rel( 2 ) p_kind = mv_errty p_test = myname p_code = '003' ). ENDIF. ENDMETHOD. METHOD remove_value. rv_output = iv_input. IF rv_output CP 'VALUE(*)'. rv_output = rv_output+6. TRANSLATE rv_output USING ') '. rv_output = condense( rv_output ). ENDIF. ENDMETHOD. METHOD set_defaults. ms_naming-prefix_elemen = 'V'. ms_naming-prefix_generi = 'G'. ms_naming-prefix_struct = 'S'. ms_naming-prefix_tany = 'T'. ms_naming-prefix_thash = 'T'. ms_naming-prefix_tindex = 'T'. ms_naming-prefix_tstand = 'T'. ms_naming-prefix_tsort = 'T'. ms_naming-prefix_rdata = 'R'. ms_naming-prefix_rclass = 'O'. ms_naming-prefix_rbadi = 'B'. ms_naming-prefix_rexcep = 'X'. ms_naming-prefix_rinter = 'I'. ms_naming-globals_nspace = 'Z'. ms_naming-globals_fugr = '[:nspace:]'. ms_naming-globals_prog = '[:nspace:]'. ms_naming-globals_clas = '[:nspace:]CL_'. ms_naming-globals_clasx = '[:nspace:]CX_'. ms_naming-globals_clast = '[:nspace:]CL_'. ms_naming-globals_clasa = '[:nspace:]CL_'. ms_naming-globals_intf = '[:nspace:]IF_'. ms_naming-locals_data = 'L[:type:]_' ##NO_TEXT. ms_naming-locals_static = 'S[:type:]_' ##NO_TEXT. ms_naming-locals_fsymbo = '<L[:type:]_'. ms_naming-locals_lconst = 'LC_'. ms_naming-locals_ltypes = ''. ms_naming-proc_fimpor = 'I[:type:]_' ##NO_TEXT. ms_naming-proc_fexpor = 'E[:type:]_' ##NO_TEXT. ms_naming-proc_fchang = 'C[:type:]_' ##NO_TEXT. ms_naming-proc_ftable = 'T[:type:]_' ##NO_TEXT. ms_naming-proc_fousin = 'P[:type:]_' ##NO_TEXT. ms_naming-proc_fochan = 'C[:type:]_' ##NO_TEXT. ms_naming-proc_fotabl = 'T[:type:]_' ##NO_TEXT. ms_naming-proc_pgdata = 'G[:type:]_' ##NO_TEXT. ms_naming-proc_pgfisy = '<G[:type:]_'. ms_naming-proc_pgcons = 'GC_'. ms_naming-proc_pgtype = ''. ms_naming-proc_pgselo = 'S_'. ms_naming-proc_pgpara = 'P_'. ms_naming-oo_oodata = 'M[:type:]_' ##NO_TEXT. ms_naming-oo_oocdat = 'G[:type:]_' ##NO_TEXT. ms_naming-oo_oocons = 'C_'. ms_naming-oo_ootype = ''. ms_naming-oo_ooimpo = 'I[:type:]_' ##NO_TEXT. ms_naming-oo_ooexpo = 'E[:type:]_' ##NO_TEXT. ms_naming-oo_oochan = 'C[:type:]_' ##NO_TEXT. ms_naming-oo_ooretu = 'R[:type:]_' ##NO_TEXT. ms_naming-oo_oolcla = 'LCL_'. ms_naming-oo_ooltcl = 'LTCL_'. ms_naming-oo_oolxcl = 'LCX_'. ms_naming-oo_oolint = 'LIF_'. ms_naming-set_excpar = abap_true. ms_naming-set_excatt = abap_true. ms_naming-set_exccon = abap_true. ms_naming-set_cfunc = abap_true. ms_naming-set_idocfm = abap_true. ms_naming-set_bwext = abap_true. ms_naming-set_syntax = abap_true. ms_naming-set_pmeth = abap_true. ms_naming-set_shlp = abap_true. ENDMETHOD. METHOD skip_fm_parameters. DATA: ls_check TYPE rsfbintfv, ls_parameter TYPE rsfbpara. DEFINE _append. ls_parameter-parameter = &2. APPEND ls_parameter TO ls_check-&1. END-OF-DEFINITION. * idoc processing function module IF ms_naming-set_idocfm = abap_true AND rv_skip = abap_false. _append import 'INPUT_METHOD'. _append import 'MASS_PROCESSING'. _append export 'WORKFLOW_RESULT'. _append export 'APPLICATION_VARIABLE'. _append export 'IN_UPDATE_TASK'. _append export 'CALL_TRANSACTION_DONE'. _append tables 'IDOC_CONTRL'. _append tables 'IDOC_DATA'. _append tables 'IDOC_STATUS'. _append tables 'RETURN_VARIABLES'. _append tables 'SERIALIZATION_INFO'. rv_skip = skip_fm_parameters_check( is_parameters = is_parameters is_check = ls_check ). ENDIF. * conversion exits IF ms_naming-set_cfunc = abap_true AND rv_skip = abap_false AND ( iv_name CP 'CONVERSION_EXIT_*_INPUT' OR iv_name CP 'CONVERSION_EXIT_*_OUTPUT' ). CLEAR ls_check. _append import 'INPUT'. _append export 'OUTPUT'. rv_skip = skip_fm_parameters_check( is_parameters = is_parameters is_check = ls_check ). ENDIF. * BW extractors IF ms_naming-set_bwext = abap_true AND rv_skip = abap_false. CLEAR ls_check. _append import 'I_REQUNR'. _append import 'I_DSOURCE'. _append import 'I_ISOURCE'. _append import 'I_MAXSIZE'. _append import 'I_INITFLAG'. _append import 'I_UPDMODE'. _append import 'I_DATAPAKID'. _append import 'I_PRIVATE_MODE'. _append import 'I_CALLMODE'. _append import 'I_REMOTE_CALL'. _append tables 'I_T_SELECT'. _append tables 'I_T_FIELDS'. _append tables 'E_T_DATA'. rv_skip = skip_fm_parameters_check( is_parameters = is_parameters is_check = ls_check ). IF rv_skip = abap_false. CLEAR ls_check. _append import 'I_REQUNR'. _append import 'I_DSOURCE'. _append import 'I_CHABASNM'. _append import 'I_MAXSIZE'. _append import 'I_INITFLAG'. _append import 'I_UPDMODE'. _append import 'I_DATAPAKID'. _append import 'I_S_TIMEINT'. _append import 'I_PRIVATE_MODE'. _append tables 'I_T_SELECT'. _append tables 'I_T_FIELDS'. _append tables 'E_T_DATA'. rv_skip = skip_fm_parameters_check( is_parameters = is_parameters is_check = ls_check ). ENDIF. IF rv_skip = abap_false. CLEAR ls_check. _append import 'I_REQUNR'. _append import 'I_ISOURCE'. _append import 'I_MAXSIZE'. _append import 'I_INITFLAG'. _append import 'I_UPDMODE'. _append import 'I_DATAPAKID'. _append import 'I_PRIVATE_MODE'. _append import 'I_CALLMODE'. _append import 'I_REMOTE_CALL'. _append tables 'I_T_SELECT'. _append tables 'I_T_FIELDS'. _append tables 'E_T_DATA'. _append tables 'E_T_SOURCE_STRUCTURE_NAME'. rv_skip = skip_fm_parameters_check( is_parameters = is_parameters is_check = ls_check ). ENDIF. IF rv_skip = abap_false. CLEAR ls_check. _append import 'I_REQUNR'. _append import 'I_DSOURCE'. _append import 'I_MAXSIZE'. _append import 'I_INITFLAG'. _append import 'I_READ_ONLY'. _append import 'I_REMOTE_CALL'. _append import 'I_PRIVATE_MODE'. _append tables 'I_T_SELECT'. _append tables 'I_T_FIELDS'. _append tables 'E_T_DATA'. rv_skip = skip_fm_parameters_check( is_parameters = is_parameters is_check = ls_check ). ENDIF. IF rv_skip = abap_false. CLEAR ls_check. _append import 'I_REQUNR'. _append import 'I_ISOURCE'. _append import 'I_MAXSIZE'. _append import 'I_INITFLAG'. _append import 'I_UPDMODE'. _append import 'I_DATAPAKID'. _append import 'I_PRIVATE_MODE'. _append import 'I_CALLMODE'. _append import 'I_REMOTE_CALL'. _append tables 'I_T_SELECT'. _append tables 'I_T_FIELDS'. _append tables 'E_T_DATA'. _append tables 'E_T_SELECT'. rv_skip = skip_fm_parameters_check( is_parameters = is_parameters is_check = ls_check ). ENDIF. IF rv_skip = abap_false. CLEAR ls_check. _append import 'I_REQUNR'. _append import 'I_CHABASNM'. _append import 'I_MAXSIZE'. _append import 'I_INITFLAG'. _append import 'I_UPDMODE'. _append import 'I_DATAPAKID'. _append import 'I_S_TIMEINT'. _append import 'I_REMOTE_CALL'. _append tables 'I_T_SELECT'. _append tables 'I_T_FIELDS'. _append tables 'E_T_SOURCE_STRUCTURE_NAME'. rv_skip = skip_fm_parameters_check( is_parameters = is_parameters is_check = ls_check ). ENDIF. IF rv_skip = abap_false. CLEAR ls_check. _append import 'I_REQUNR'. _append import 'I_RLOGSYS'. _append import 'I_UPDMODE'. _append import 'I_ISOURCE'. _append import 'I_S_PARAMS'. _append import 'I_INITFLAG'. _append import 'I_DATAPAKID'. _append import 'I_READ_ONLY'. _append import 'I_REMOTE_CALL'. _append tables 'I_T_SELECT'. _append tables 'I_T_FIELDS'. _append tables 'E_T_DATA'. rv_skip = skip_fm_parameters_check( is_parameters = is_parameters is_check = ls_check ). ENDIF. IF rv_skip = abap_false. CLEAR ls_check. _append import 'I_REQUNR'. _append import 'I_CHABASNM'. _append import 'I_MAXSIZE'. _append import 'I_INITFLAG'. _append import 'I_UPDMODE'. _append import 'I_DATAPAKID'. _append import 'I_S_TIMEINT'. _append import 'I_REMOTE_CALL'. _append tables 'I_T_LANGU'. _append tables 'I_T_SELECT'. _append tables 'E_T_TEXTS'. rv_skip = skip_fm_parameters_check( is_parameters = is_parameters is_check = ls_check ). ENDIF. ENDIF. * search help exits IF ms_naming-set_shlp = abap_true AND rv_skip = abap_false. CLEAR ls_check. _append tables 'SHLP_TAB'. _append tables 'RECORD_TAB'. _append change 'SHLP'. _append change 'CALLCONTROL'. rv_skip = skip_fm_parameters_check( is_parameters = is_parameters is_check = ls_check ). ENDIF. * idoc port function module, txn WE21 -> ABAP-PI IF ms_naming-set_port = abap_true AND rv_skip = abap_false. CLEAR ls_check. _append import 'I_WAIT'. _append tables 'I_EDIDC'. rv_skip = skip_fm_parameters_check( is_parameters = is_parameters is_check = ls_check ). ENDIF. * idoc master idoc distribution, TBDME-IDOCFBNAME IF ms_naming-set_port = abap_true AND rv_skip = abap_false. CLEAR ls_check. _append import 'MESSAGE_TYPE'. rv_skip = skip_fm_parameters_check( is_parameters = is_parameters is_check = ls_check ). ENDIF. ENDMETHOD. METHOD skip_fm_parameters_check. DATA ls_parameter LIKE LINE OF is_check-import. IF lines( is_parameters-import ) <> lines( is_check-import ) OR lines( is_parameters-export ) <> lines( is_check-export ) OR lines( is_parameters-change ) <> lines( is_check-change ) OR lines( is_parameters-tables ) <> lines( is_check-tables ). RETURN. ENDIF. LOOP AT is_check-import INTO ls_parameter. READ TABLE is_parameters-import WITH KEY parameter = ls_parameter-parameter TRANSPORTING NO FIELDS. IF sy-subrc <> 0. RETURN. ENDIF. ENDLOOP. LOOP AT is_check-export INTO ls_parameter. READ TABLE is_parameters-export WITH KEY parameter = ls_parameter-parameter TRANSPORTING NO FIELDS. IF sy-subrc <> 0. RETURN. ENDIF. ENDLOOP. LOOP AT is_check-change INTO ls_parameter. READ TABLE is_parameters-change WITH KEY parameter = ls_parameter-parameter TRANSPORTING NO FIELDS. IF sy-subrc <> 0. RETURN. ENDIF. ENDLOOP. LOOP AT is_check-tables INTO ls_parameter. READ TABLE is_parameters-tables WITH KEY parameter = ls_parameter-parameter TRANSPORTING NO FIELDS. IF sy-subrc <> 0. RETURN. ENDIF. ENDLOOP. rv_skip = abap_true. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 64, 420, 62, 9122, 62, 3388, 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, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 764, 628, 220, 220, 220, 337, 36252, 50, 2198, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 611, 62, 979, 62, 9288, 93, 22766, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 1234, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 318, 62, 1845, 29363, 62, 24396, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 83, 482, 641, 220, 220, 220, 220, 41876, 336, 3369, 87, 62, 8658, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 30388, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 2214, 62, 1837, 23650, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3672, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252, 50, 1366, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3672, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 29982, 41876, 4731, 39852, 2849, 1847, 764, 198, 220, 220, 220, 337, 36252, 50, 318, 62, 20541, 62, 1069, 4516, 62, 4871, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 30388, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 16602, 62, 14269, 3196, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 14269, 3196, 41876, 264, 301, 76, 429, 62, 8658, 764, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 265, 764, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 4871, 764, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 9979, 415, 764, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 7890, 764, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 3245, 62, 1837, 23650, 764, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 38353, 62, 17143, 7307, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 17143, 7307, 41876, 44608, 21855, 62, 1845, 64, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 40290, 220, 220, 220, 220, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 687, 764, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 8818, 764, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 8818, 62, 7742, 764, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 45145, 62, 4299, 82, 764, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 39994, 764, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 24396, 62, 46758, 764, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 24396, 62, 320, 32851, 764, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 17143, 2357, 764, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 13116, 764, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 19738, 62, 18076, 764, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 4906, 764, 198, 220, 220, 220, 337, 36252, 50, 8996, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3672, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 260, 25636, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 43762, 41876, 1312, 764, 198, 220, 220, 220, 337, 36252, 50, 17050, 62, 411, 6442, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 41357, 8, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 5589, 62, 7890, 62, 41357, 764, 198, 220, 220, 220, 337, 36252, 50, 17050, 62, 411, 6442, 62, 4871, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 4871, 8, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 5589, 62, 4871, 764, 198, 220, 220, 220, 337, 36252, 50, 5004, 62, 29982, 62, 40290, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 40290, 8, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252, 50, 5004, 62, 4906, 62, 40290, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 41357, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 5589, 62, 7890, 62, 41357, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 40290, 8, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 26090, 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, 12780 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS /mbtools/cl_ajson_utilities DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. METHODS diff IMPORTING !iv_json_a TYPE string OPTIONAL !iv_json_b TYPE string OPTIONAL !io_json_a TYPE REF TO /mbtools/if_ajson OPTIONAL !io_json_b TYPE REF TO /mbtools/if_ajson OPTIONAL !iv_keep_empty_arrays TYPE abap_bool DEFAULT abap_false EXPORTING !eo_insert TYPE REF TO /mbtools/if_ajson !eo_delete TYPE REF TO /mbtools/if_ajson !eo_change TYPE REF TO /mbtools/if_ajson RAISING /mbtools/cx_ajson_error . METHODS sort IMPORTING !iv_json TYPE string OPTIONAL !io_json TYPE REF TO /mbtools/if_ajson OPTIONAL RETURNING VALUE(rv_sorted) TYPE string RAISING /mbtools/cx_ajson_error . PROTECTED SECTION. PRIVATE SECTION. DATA mo_json_a TYPE REF TO /mbtools/if_ajson . DATA mo_json_b TYPE REF TO /mbtools/if_ajson . DATA mo_insert TYPE REF TO /mbtools/if_ajson . DATA mo_delete TYPE REF TO /mbtools/if_ajson . DATA mo_change TYPE REF TO /mbtools/if_ajson . METHODS diff_a_b IMPORTING !iv_path TYPE string RAISING /mbtools/cx_ajson_error . METHODS diff_b_a IMPORTING !iv_path TYPE string RAISING /mbtools/cx_ajson_error . METHODS delete_empty_nodes IMPORTING !io_json TYPE REF TO /mbtools/if_ajson !iv_keep_empty_arrays TYPE abap_bool RAISING /mbtools/cx_ajson_error . ENDCLASS. CLASS /mbtools/cl_ajson_utilities IMPLEMENTATION. METHOD delete_empty_nodes. DATA ls_json_tree LIKE LINE OF io_json->mt_json_tree. DATA lv_done TYPE abap_bool. DO. lv_done = abap_true. IF iv_keep_empty_arrays = abap_false. LOOP AT io_json->mt_json_tree INTO ls_json_tree WHERE type = 'array' AND children = 0. io_json->delete( ls_json_tree-path && ls_json_tree-name ). ENDLOOP. IF sy-subrc = 0. lv_done = abap_false. ENDIF. ENDIF. LOOP AT io_json->mt_json_tree INTO ls_json_tree WHERE type = 'object' AND children = 0. io_json->delete( ls_json_tree-path && ls_json_tree-name ). ENDLOOP. IF sy-subrc = 0. lv_done = abap_false. ENDIF. IF lv_done = abap_true. EXIT. " nothing else to delete ENDIF. ENDDO. ENDMETHOD. METHOD diff. IF boolc( iv_json_a IS SUPPLIED ) = boolc( io_json_a IS SUPPLIED ). /mbtools/cx_ajson_error=>raise( 'Either supply JSON string or instance, but not both' ). ENDIF. IF boolc( iv_json_b IS SUPPLIED ) = boolc( io_json_b IS SUPPLIED ). /mbtools/cx_ajson_error=>raise( 'Either supply JSON string or instance, but not both' ). ENDIF. IF iv_json_a IS SUPPLIED. mo_json_a = /mbtools/cl_ajson=>parse( iv_json_a ). ELSEIF io_json_a IS BOUND. mo_json_a = io_json_a. ELSE. /mbtools/cx_ajson_error=>raise( 'Supply either JSON string or instance' ). ENDIF. IF iv_json_b IS SUPPLIED. mo_json_b = /mbtools/cl_ajson=>parse( iv_json_b ). ELSEIF io_json_b IS BOUND. mo_json_b = io_json_b. ELSE. /mbtools/cx_ajson_error=>raise( 'Supply either JSON string or instance' ). ENDIF. mo_insert = /mbtools/cl_ajson=>create_empty( ). mo_delete = /mbtools/cl_ajson=>create_empty( ). mo_change = /mbtools/cl_ajson=>create_empty( ). diff_a_b( '/' ). diff_b_a( '/' ). eo_insert ?= mo_insert. eo_delete ?= mo_delete. eo_change ?= mo_change. delete_empty_nodes( io_json = eo_insert iv_keep_empty_arrays = iv_keep_empty_arrays ). delete_empty_nodes( io_json = eo_delete iv_keep_empty_arrays = iv_keep_empty_arrays ). delete_empty_nodes( io_json = eo_change iv_keep_empty_arrays = iv_keep_empty_arrays ). ENDMETHOD. METHOD diff_a_b. DATA: lv_path_a TYPE string, lv_path_b TYPE string. FIELD-SYMBOLS: <node_a> LIKE LINE OF mo_json_a->mt_json_tree, <node_b> LIKE LINE OF mo_json_a->mt_json_tree. LOOP AT mo_json_a->mt_json_tree ASSIGNING <node_a> WHERE path = iv_path. lv_path_a = <node_a>-path && <node_a>-name && '/'. READ TABLE mo_json_b->mt_json_tree ASSIGNING <node_b> WITH TABLE KEY path = <node_a>-path name = <node_a>-name. IF sy-subrc = 0. lv_path_b = <node_b>-path && <node_b>-name && '/'. IF <node_a>-type = <node_b>-type. CASE <node_a>-type. WHEN 'array'. mo_insert->touch_array( lv_path_a ). mo_change->touch_array( lv_path_a ). mo_delete->touch_array( lv_path_a ). diff_a_b( lv_path_a ). WHEN 'object'. diff_a_b( lv_path_a ). WHEN OTHERS. IF <node_a>-value <> <node_b>-value. " save as changed value mo_change->set( iv_path = lv_path_b iv_val = <node_b>-value iv_node_type = <node_b>-type ). ENDIF. ENDCASE. ELSE. " save changed type as delete + insert CASE <node_a>-type. WHEN 'array'. mo_delete->touch_array( lv_path_a ). diff_a_b( lv_path_a ). WHEN 'object'. diff_a_b( lv_path_a ). WHEN OTHERS. mo_delete->set( iv_path = lv_path_a iv_val = <node_a>-value iv_node_type = <node_a>-type ). ENDCASE. CASE <node_b>-type. WHEN 'array'. mo_insert->touch_array( lv_path_b ). diff_b_a( lv_path_b ). WHEN 'object'. diff_b_a( lv_path_b ). WHEN OTHERS. mo_insert->set( iv_path = lv_path_b iv_val = <node_b>-value iv_node_type = <node_b>-type ). ENDCASE. ENDIF. ELSE. " save as delete CASE <node_a>-type. WHEN 'array'. mo_delete->touch_array( lv_path_a ). diff_a_b( lv_path_a ). WHEN 'object'. diff_a_b( lv_path_a ). WHEN OTHERS. mo_delete->set( iv_path = lv_path_a iv_val = <node_a>-value iv_node_type = <node_a>-type ). ENDCASE. ENDIF. ENDLOOP. ENDMETHOD. METHOD diff_b_a. DATA lv_path TYPE string. FIELD-SYMBOLS: <node_a> LIKE LINE OF mo_json_b->mt_json_tree, <node_b> LIKE LINE OF mo_json_b->mt_json_tree. LOOP AT mo_json_b->mt_json_tree ASSIGNING <node_b> WHERE path = iv_path. lv_path = <node_b>-path && <node_b>-name && '/'. CASE <node_b>-type. WHEN 'array'. mo_insert->touch_array( lv_path ). diff_b_a( lv_path ). WHEN 'object'. diff_b_a( lv_path ). WHEN OTHERS. READ TABLE mo_json_a->mt_json_tree ASSIGNING <node_a> WITH TABLE KEY path = <node_b>-path name = <node_b>-name. IF sy-subrc <> 0. " save as insert mo_insert->set( iv_path = lv_path iv_val = <node_b>-value iv_node_type = <node_b>-type ). ENDIF. ENDCASE. ENDLOOP. ENDMETHOD. METHOD sort. DATA lo_json TYPE REF TO /mbtools/if_ajson. IF boolc( iv_json IS SUPPLIED ) = boolc( io_json IS SUPPLIED ). /mbtools/cx_ajson_error=>raise( 'Either supply JSON string or instance, but not both' ). ENDIF. IF iv_json IS SUPPLIED. lo_json = /mbtools/cl_ajson=>parse( iv_json ). ELSEIF io_json IS BOUND. lo_json = io_json. ELSE. /mbtools/cx_ajson_error=>raise( 'Supply either JSON string or instance' ). ENDIF. " Nodes are parsed into a sorted table, so no explicit sorting required rv_sorted = lo_json->stringify( 2 ). ENDMETHOD. ENDCLASS.
[ 31631, 1220, 2022, 31391, 14, 565, 62, 1228, 1559, 62, 315, 2410, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 814, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 17752, 62, 64, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 17752, 62, 65, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 17752, 62, 64, 41876, 4526, 37, 5390, 1220, 2022, 31391, 14, 361, 62, 1228, 1559, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 17752, 62, 65, 41876, 4526, 37, 5390, 1220, 2022, 31391, 14, 361, 62, 1228, 1559, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 14894, 62, 28920, 62, 3258, 592, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 68, 78, 62, 28463, 41876, 4526, 37, 5390, 1220, 2022, 31391, 14, 361, 62, 1228, 1559, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 68, 78, 62, 33678, 41876, 4526, 37, 5390, 1220, 2022, 31391, 14, 361, 62, 1228, 1559, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 68, 78, 62, 3803, 41876, 4526, 37, 5390, 1220, 2022, 31391, 14, 361, 62, 1228, 1559, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1220, 2022, 31391, 14, 66, 87, 62, 1228, 1559, 62, 18224, 764, 198, 220, 220, 220, 337, 36252, 50, 3297, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 17752, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 17752, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1220, 2022, 31391, 14, 361, 62, 1228, 1559, 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, 82, 9741, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1220, 2022, 31391, 14, 66, 87, 62, 1228, 1559, 62, 18224, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 6941, 62, 17752, 62, 64, 41876, 4526, 37, 5390, 1220, 2022, 31391, 14, 361, 62, 1228, 1559, 764, 198, 220, 220, 220, 42865, 6941, 62, 17752, 62, 65, 41876, 4526, 37, 5390, 1220, 2022, 31391, 14, 361, 62, 1228, 1559, 764, 198, 220, 220, 220, 42865, 6941, 62, 28463, 41876, 4526, 37, 5390, 1220, 2022, 31391, 14, 361, 62, 1228, 1559, 764, 198, 220, 220, 220, 42865, 6941, 62, 33678, 41876, 4526, 37, 5390, 1220, 2022, 31391, 14, 361, 62, 1228, 1559, 764, 198, 220, 220, 220, 42865, 6941, 62, 3803, 41876, 4526, 37, 5390, 1220, 2022, 31391, 14, 361, 62, 1228, 1559, 764, 628, 220, 220, 220, 337, 36252, 50, 814, 62, 64, 62, 65, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6978, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1220, 2022, 31391, 14, 66, 87, 62, 1228, 1559, 62, 18224, 764, 198, 220, 220, 220, 337, 36252, 50, 814, 62, 65, 62, 64, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6978, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1220, 2022, 31391, 14, 66, 87, 62, 1228, 1559, 62, 18224, 764, 198, 220, 220, 220, 337, 36252, 50, 12233, 62, 28920, 62, 77, 4147, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 17752, 41876, 4526, 37, 5390, 1220, 2022, 31391, 14, 361, 62, 1228, 1559, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 14894, 62, 28920, 62, 3258, 592, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1220, 2022, 31391, 14, 66, 87, 62, 1228, 1559, 62, 18224, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1220, 2022, 31391, 14, 565, 62, 1228, 1559, 62, 315, 2410, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 12233, 62, 28920, 62, 77, 4147, 13, 628, 220, 220, 220, 42865, 43979, 62, 17752, 62, 21048, 34178, 48920, 3963, 33245, 62, 17752, 3784, 16762, 62, 17752, 62, 21048, 13, 198, 220, 220, 220, 42865, 300, 85, 62, 28060, 41876, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 8410, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 28060, 796, 450, 499, 62, 7942, 13, 628, 220, 220, 220, 220, 220, 16876, 21628, 62, 14894, 62, 28920, 62, 3258, 592, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 220, 220, 17579, 3185, 5161, 33245, 62, 17752, 3784, 16762, 62, 17752, 62, 21048, 39319, 43979, 62, 17752, 62, 21048, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33411, 2099, 796, 705, 18747, 6, 5357, 1751, 796, 657, 13, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 17752, 3784, 33678, 7, 43979, 62, 17752, 62, 21048, 12, 6978, 11405, 43979, 62, 17752, 62, 21048, 12, 3672, 6739, 628, 220, 220, 220, 220, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 28060, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_zgw_openapi_test_mpc_ext DEFINITION PUBLIC INHERITING FROM zcl_zgw_openapi_test_mpc CREATE PUBLIC . PUBLIC SECTION. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ZCL_ZGW_OPENAPI_TEST_MPC_EXT IMPLEMENTATION. ENDCLASS.
[ 31631, 1976, 565, 62, 89, 70, 86, 62, 9654, 15042, 62, 9288, 62, 3149, 66, 62, 2302, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 89, 70, 86, 62, 9654, 15042, 62, 9288, 62, 3149, 66, 198, 220, 29244, 6158, 44731, 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, 1168, 5097, 62, 57, 33191, 62, 3185, 1677, 17614, 62, 51, 6465, 62, 44, 5662, 62, 13918, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_suso DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. METHODS: constructor IMPORTING is_item TYPE zif_abapgit_definitions=>ty_item iv_language TYPE spras. PROTECTED SECTION. PRIVATE SECTION. DATA: mv_objectname TYPE tobj-objct. METHODS: delete_documentation RAISING zcx_abapgit_exception, pre_check RAISING zcx_abapgit_exception. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_SUSO IMPLEMENTATION. METHOD constructor. super->constructor( is_item = is_item iv_language = iv_language ). mv_objectname = ms_item-obj_name. ENDMETHOD. METHOD delete_documentation. DATA: lv_docu_obj TYPE dokhl-object, lv_dummy TYPE sy-langu. lv_docu_obj = mv_objectname. SELECT SINGLE langu FROM dokil INTO lv_dummy WHERE id = 'UO' "#EC CI_GENBUFF AND object = lv_docu_obj. IF sy-subrc = 0. CALL FUNCTION 'DOKU_DELETE_ALL' EXPORTING doku_id = 'UO' doku_object = lv_docu_obj suppress_transport = space EXCEPTIONS header_without_text = 1 index_without_header = 2 no_authority_for_devclass_xxxx = 3 no_docu_found = 4 object_is_already_enqueued = 5 object_is_enqueued_by_corr = 6 techn_enqueue_problem = 7 user_break = 8 OTHERS = 9. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDIF. ENDMETHOD. METHOD pre_check. CONSTANTS: lc_act_delete TYPE activ_auth VALUE '06'. DATA: lv_act_head TYPE activ_auth, lv_dummy TYPE string, lo_suso TYPE REF TO object, lv_failed TYPE abap_bool, lv_suso_collect_in_cts TYPE i, lv_clskey TYPE seoclskey. " Downport: CL_SUSO_GEN doesn't exist in 702 lv_clskey-clsname = |CL_SUSO_GEN|. CALL FUNCTION 'SEO_CLASS_EXISTENCE_CHECK' EXPORTING clskey = lv_clskey EXCEPTIONS not_specified = 1 not_existing = 2 is_interface = 3 no_text = 4 inconsistent = 5 OTHERS = 6. IF sy-subrc = 0. " so these check are not executed in 702 CREATE OBJECT lo_suso TYPE ('CL_SUSO_GEN'). CALL METHOD lo_suso->('SUSO_LOAD_FROM_DB') EXPORTING id_object = mv_objectname RECEIVING ed_failed = lv_failed. IF lv_failed = abap_true. " Object & does not exist; choose an existing object MESSAGE s111(01) WITH mv_objectname INTO lv_dummy. zcx_abapgit_exception=>raise_t100( ). ENDIF. CALL METHOD lo_suso->('GET_SUSO_EDIT_MODE') EXPORTING id_object = mv_objectname id_planed_act = lc_act_delete IMPORTING ed_mode_head = lv_act_head. IF lv_act_head <> lc_act_delete. zcx_abapgit_exception=>raise( |SUSO { mv_objectname }: Delete not allowed| ). ENDIF. CALL METHOD lo_suso->('SUSO_COLLECT_IN_CTS') EXPORTING id_object = mv_objectname RECEIVING ed_result = lv_suso_collect_in_cts. IF lv_suso_collect_in_cts IS NOT INITIAL. zcx_abapgit_exception=>raise( |SUSO { mv_objectname }: Cannot delete| ). ENDIF. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. " todo ENDMETHOD. METHOD zif_abapgit_object~delete. " FM SUSR_DELETE_OBJECT calls the UI. Therefore we reimplement it here. " As the class CL_SUSO_GEN isn't present in 702, we call dynamically and " skip the pre checks on 702 system. That seems ok. pre_check( ). delete_documentation( ). DELETE FROM tobj WHERE objct = mv_objectname. DELETE FROM tobjt WHERE object = mv_objectname. DELETE FROM tactz WHERE brobj = mv_objectname. CALL FUNCTION 'SUPV_DELETE_OBJECT_ASSIGNMENTS' EXPORTING object_name = mv_objectname all_releases = abap_true. CALL FUNCTION 'RS_TREE_OBJECT_PLACEMENT' EXPORTING object = mv_objectname type = 'SUSO' operation = 'DELETE'. ENDMETHOD. METHOD zif_abapgit_object~deserialize. * see function group SUSA DATA: lv_objectname TYPE trobj_name, ls_tobj TYPE tobj, ls_tobjt TYPE tobjt, ls_tobjvorflg TYPE tobjvorflg, lt_tactz TYPE TABLE OF tactz, lt_tobjvordat TYPE TABLE OF tobjvordat, lt_tobjvor TYPE TABLE OF tobjvor. ASSERT NOT ms_item-obj_name IS INITIAL. io_xml->read( EXPORTING iv_name = 'TOBJ' CHANGING cg_data = ls_tobj ). ls_tobj-bname = sy-uname. io_xml->read( EXPORTING iv_name = 'TOBJT' CHANGING cg_data = ls_tobjt ). io_xml->read( EXPORTING iv_name = 'TOBJVORFLG' CHANGING cg_data = ls_tobjvorflg ). io_xml->read( EXPORTING iv_name = 'TACTZ' CHANGING cg_data = lt_tactz ). io_xml->read( EXPORTING iv_name = 'TOBJVORDAT' CHANGING cg_data = lt_tobjvordat ). io_xml->read( EXPORTING iv_name = 'TOBJVOR' CHANGING cg_data = lt_tobjvor ). tadir_insert( iv_package ). lv_objectname = mv_objectname. CALL FUNCTION 'SUSR_COMMEDITCHECK' EXPORTING objectname = lv_objectname transobjecttype = 'O'. MODIFY tobj FROM ls_tobj. "#EC CI_SUBRC MODIFY tobjt FROM ls_tobjt. "#EC CI_SUBRC MODIFY tobjvorflg FROM ls_tobjvorflg. "#EC CI_SUBRC DELETE FROM tactz WHERE brobj = ms_item-obj_name. "#EC CI_SUBRC INSERT tactz FROM TABLE lt_tactz. "#EC CI_SUBRC DELETE FROM tobjvordat WHERE objct = ms_item-obj_name. "#EC CI_SUBRC INSERT tobjvordat FROM TABLE lt_tobjvordat. "#EC CI_SUBRC DELETE FROM tobjvor WHERE objct = ms_item-obj_name. "#EC CI_SUBRC INSERT tobjvor FROM TABLE lt_tobjvor. "#EC CI_SUBRC ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_objct TYPE tobj-objct. SELECT SINGLE objct FROM tobj INTO lv_objct WHERE objct = ms_item-obj_name. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = abap_false. ENDMETHOD. METHOD zif_abapgit_object~jump. CALL FUNCTION 'SUSR_SHOW_OBJECT' EXPORTING object = mv_objectname. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: ls_tobj TYPE tobj, ls_tobjt TYPE tobjt, ls_tobjvorflg TYPE tobjvorflg, lt_tactz TYPE TABLE OF tactz, lt_tobjvordat TYPE TABLE OF tobjvordat, lt_tobjvor TYPE TABLE OF tobjvor. SELECT SINGLE * FROM tobj INTO ls_tobj WHERE objct = ms_item-obj_name. IF sy-subrc <> 0. RETURN. ENDIF. CLEAR ls_tobj-bname. SELECT SINGLE * FROM tobjt INTO ls_tobjt WHERE object = ms_item-obj_name AND langu = mv_language. "#EC CI_GENBUFF IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'TOBJT no english description' && ' for object (' && ms_item-obj_name && ')' ). ENDIF. SELECT SINGLE * FROM tobjvorflg INTO ls_tobjvorflg WHERE objct = ms_item-obj_name. "#EC CI_SUBRC SELECT * FROM tactz INTO TABLE lt_tactz WHERE brobj = ms_item-obj_name ORDER BY PRIMARY KEY. "#EC CI_SUBRC "#EC CI_GENBUFF SELECT * FROM tobjvordat INTO TABLE lt_tobjvordat WHERE objct = ms_item-obj_name ORDER BY PRIMARY KEY. "#EC CI_SUBRC "#EC CI_GENBUFF SELECT * FROM tobjvor INTO TABLE lt_tobjvor WHERE objct = ms_item-obj_name ORDER BY PRIMARY KEY. "#EC CI_SUBRC io_xml->add( iv_name = 'TOBJ' ig_data = ls_tobj ). io_xml->add( iv_name = 'TOBJT' ig_data = ls_tobjt ). io_xml->add( iv_name = 'TOBJVORFLG' ig_data = ls_tobjvorflg ). io_xml->add( ig_data = lt_tactz iv_name = 'TACTZ' ). io_xml->add( ig_data = lt_tobjvordat iv_name = 'TOBJVORDAT' ). io_xml->add( ig_data = lt_tobjvor iv_name = 'TOBJVOR' ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 82, 385, 78, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 9186, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 41876, 7500, 292, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 285, 85, 62, 15252, 3672, 41876, 10773, 73, 12, 26801, 310, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 12233, 62, 22897, 341, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 628, 220, 220, 220, 220, 220, 662, 62, 9122, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 50, 2937, 46, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 318, 62, 9186, 220, 220, 220, 220, 796, 318, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 796, 21628, 62, 16129, 6739, 628, 220, 220, 220, 285, 85, 62, 15252, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 12233, 62, 22897, 341, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 300, 85, 62, 15390, 84, 62, 26801, 41876, 466, 14636, 75, 12, 15252, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 67, 13513, 220, 220, 220, 41876, 827, 12, 75, 2303, 13, 628, 220, 220, 220, 300, 85, 62, 15390, 84, 62, 26801, 220, 796, 285, 85, 62, 15252, 3672, 13, 628, 220, 220, 220, 33493, 311, 2751, 2538, 2786, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16034, 466, 34553, 39319, 300, 85, 62, 67, 13513, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33411, 4686, 220, 220, 796, 705, 52, 46, 6, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 14514, 62, 35353, 19499, 5777, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 2134, 796, 300, 85, 62, 15390, 84, 62, 26801, 13, 628, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 657, 13, 628, 220, 220, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 35, 11380, 52, 62, 7206, 2538, 9328, 62, 7036, 6, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 466, 23063, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 52, 46, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 466, 23063, 62, 15252, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 15390, 84, 62, 26801, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18175, 62, 7645, 634, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2272, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13639, 62, 19419, 62, 5239, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6376, 62, 19419, 62, 25677, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 645, 62, 9800, 414, 62, 1640, 62, 7959, 4871, 62, 12343, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 645, 62, 15390, 84, 62, 9275, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 604, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 271, 62, 282, 1493, 62, 268, 4188, 1739, 220, 220, 220, 220, 796, 642, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 271, 62, 268, 4188, 1739, 62, 1525, 62, 10215, 81, 220, 220, 220, 220, 796, 718, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1579, 62, 268, 36560, 62, 45573, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 767, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 9032, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 807, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 860, 13, 628, 220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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Report ZARSH_TEST *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT zarsh_test. PARAMETERS: p_connid TYPE zarsh_s_spfli-connid. PARAMETERS: p_dist TYPE zarsh_s_spfli-distance. PARAMETERS: p_dist2 TYPE spfli-distance MATCHCODE OBJECT zh_all_round. PARAMETERS: p_af TYPE spfli-airpfrom MATCHCODE OBJECT zh_all_round.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 1168, 1503, 9693, 62, 51, 6465, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 2200, 15490, 1976, 5406, 62, 9288, 13, 198, 198, 27082, 2390, 2767, 4877, 25, 279, 62, 37043, 312, 41876, 1976, 5406, 62, 82, 62, 2777, 2704, 72, 12, 37043, 312, 13, 198, 27082, 2390, 2767, 4877, 25, 279, 62, 17080, 41876, 1976, 5406, 62, 82, 62, 2777, 2704, 72, 12, 30246, 13, 198, 27082, 2390, 2767, 4877, 25, 279, 62, 17080, 17, 41876, 599, 2704, 72, 12, 30246, 337, 11417, 34, 16820, 25334, 23680, 1976, 71, 62, 439, 62, 744, 13, 198, 27082, 2390, 2767, 4877, 25, 279, 62, 1878, 41876, 599, 2704, 72, 12, 958, 79, 6738, 337, 11417, 34, 16820, 25334, 23680, 1976, 71, 62, 439, 62, 744, 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 ]
CLASS zcl_atbash_cipher DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. METHODS decode IMPORTING cipher_text TYPE string RETURNING VALUE(plain_text) TYPE string . METHODS encode IMPORTING plain_text TYPE string RETURNING VALUE(cipher_text) TYPE string . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_atbash_cipher IMPLEMENTATION. METHOD decode. plain_text = translate( val = |{ condense( val = to_lower( cipher_text ) from = ` ,.:;` to = `` ) }| from = |{ reverse( to_lower( sy-abcde ) ) && `0123456789` }| to = |{ to_lower( sy-abcde ) && `0123456789` }| ). ENDMETHOD. METHOD encode. cipher_text = translate( val = |{ condense( val = to_lower( plain_text ) from = ` ,.:;` to = `` ) }| from = |{ to_lower( sy-abcde ) && `0123456789` }| to = |{ reverse( to_lower( sy-abcde ) ) && `0123456789` }| ). cipher_text = REDUCE string( LET txt_len = strlen( cipher_text ) IN INIT text = `` offset = 0 sep = `` FOR i = 1 UNTIL i > round( val = ( txt_len / 5 ) dec = 0 mode = cl_abap_math=>round_up ) NEXT text = text && sep && substring( val = cipher_text off = offset len = nmin( val1 = 5 val2 = txt_len - offset ) ) sep = ` ` offset = i * 5 ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 265, 41757, 62, 66, 10803, 5550, 20032, 17941, 44731, 25261, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 36899, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 38012, 62, 5239, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 25638, 62, 5239, 8, 220, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252, 50, 37773, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 8631, 62, 5239, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 66, 10803, 62, 5239, 8, 41876, 4731, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 265, 41757, 62, 66, 10803, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 36899, 13, 198, 220, 220, 220, 8631, 62, 5239, 796, 220, 15772, 7, 1188, 796, 930, 90, 1779, 1072, 7, 1188, 796, 284, 62, 21037, 7, 38012, 62, 5239, 1267, 422, 796, 4600, 837, 11207, 26, 63, 284, 796, 7559, 1267, 220, 1782, 91, 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, 422, 796, 930, 90, 9575, 7, 284, 62, 21037, 7, 827, 12, 39305, 2934, 1267, 1267, 11405, 4600, 486, 1954, 2231, 3134, 4531, 63, 1782, 91, 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, 284, 796, 930, 90, 284, 62, 21037, 7, 827, 12, 39305, 2934, 1267, 11405, 4600, 486, 1954, 2231, 3134, 4531, 63, 1782, 91, 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, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 37773, 13, 198, 220, 220, 220, 38012, 62, 5239, 796, 220, 15772, 7, 1188, 796, 930, 90, 1779, 1072, 7, 1188, 796, 284, 62, 21037, 7, 8631, 62, 5239, 1267, 422, 796, 4600, 837, 11207, 26, 63, 284, 796, 7559, 1267, 220, 1782, 91, 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, 422, 796, 930, 90, 284, 62, 21037, 7, 827, 12, 39305, 2934, 1267, 11405, 4600, 486, 1954, 2231, 3134, 4531, 63, 1782, 91, 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, 284, 796, 930, 90, 9575, 7, 284, 62, 21037, 7, 827, 12, 39305, 2934, 1267, 1267, 11405, 4600, 486, 1954, 2231, 3134, 4531, 63, 1782, 91, 6739, 198, 220, 220, 220, 38012, 62, 5239, 796, 23848, 52, 5222, 4731, 7, 37994, 256, 742, 62, 11925, 796, 965, 11925, 7, 38012, 62, 5239, 1267, 3268, 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, 3268, 2043, 2420, 796, 7559, 11677, 796, 657, 41767, 796, 7559, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1312, 796, 352, 4725, 51, 4146, 1312, 1875, 2835, 7, 1188, 796, 357, 256, 742, 62, 11925, 1220, 642, 1267, 875, 796, 657, 4235, 796, 537, 62, 397, 499, 62, 11018, 14804, 744, 62, 929, 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, 39726, 2420, 796, 2420, 11405, 41767, 11405, 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, 3293, 1806, 7, 1188, 796, 38012, 62, 5239, 572, 796, 11677, 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, 18896, 796, 299, 1084, 7, 1188, 16, 796, 642, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1188, 17, 796, 256, 742, 62, 11925, 532, 11677, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 41767, 796, 4600, 4600, 11677, 796, 1312, 1635, 642, 6739, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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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 ]
*recommended way of displaying an ALV grid: TYPES : BEGIN OF line_type, example TYPE example_type, END OF line_type. DATA line TYPE line_type. DATA table TYPE STANDARD TABLE OF line_type. DATA alv_object TYPE REF TO cl_salv_table. DATA alv_functions TYPE REF TO cl_salv_functions_list. DATA alv_columns TYPE REF TO cl_salv_columns_table. START-OF-SELECTION. SELECT * FROM db_table INTO CORRESPONDING FIELDS OF TABLE table UP TO 15 ROWS. TRY. CALL METHOD cl_salv_table=>factory IMPORTING r_salv_table = alv_object "instantiate object with the table CHANGING t_table = table. CATCH cx_salv_msg. ENDTRY. alv_columns = alv_object->get_columns( ). alv_columns->set_optimize( ). "optimize column width alv_functions = alv_object->get_functions( ). "provide access to LAV functions alv_functions->set_all( ). "sets all the functions CALL METHOD alv_object->display.
[ 9, 47335, 1631, 835, 286, 19407, 281, 8355, 53, 10706, 25, 201, 198, 9936, 47, 1546, 1058, 347, 43312, 3963, 1627, 62, 4906, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1672, 41876, 1672, 62, 4906, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1627, 62, 4906, 13, 201, 198, 26947, 1627, 41876, 1627, 62, 4906, 13, 201, 198, 26947, 3084, 41876, 49053, 9795, 43679, 3963, 1627, 62, 4906, 13, 201, 198, 26947, 435, 85, 62, 15252, 41876, 4526, 37, 5390, 537, 62, 21680, 85, 62, 11487, 13, 201, 198, 26947, 435, 85, 62, 12543, 2733, 41876, 4526, 37, 5390, 537, 62, 21680, 85, 62, 12543, 2733, 62, 4868, 13, 201, 198, 26947, 435, 85, 62, 28665, 82, 41876, 4526, 37, 5390, 537, 62, 21680, 85, 62, 28665, 82, 62, 11487, 13, 201, 198, 201, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 201, 198, 220, 33493, 1635, 201, 198, 220, 220, 220, 16034, 20613, 62, 11487, 201, 198, 220, 220, 220, 39319, 23929, 19535, 47, 18672, 2751, 18930, 3698, 5258, 3963, 43679, 3084, 201, 198, 220, 220, 220, 15958, 5390, 1315, 371, 22845, 13, 201, 198, 220, 7579, 56, 13, 201, 198, 220, 220, 220, 42815, 337, 36252, 537, 62, 21680, 85, 62, 11487, 14804, 69, 9548, 30023, 9863, 2751, 374, 62, 21680, 85, 62, 11487, 796, 435, 85, 62, 15252, 366, 8625, 415, 9386, 2134, 351, 262, 3084, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 256, 62, 11487, 220, 796, 3084, 13, 201, 198, 220, 220, 220, 327, 11417, 43213, 62, 21680, 85, 62, 19662, 13, 201, 198, 220, 23578, 40405, 13, 201, 198, 220, 435, 85, 62, 28665, 82, 796, 435, 85, 62, 15252, 3784, 1136, 62, 28665, 82, 7, 6739, 201, 198, 220, 435, 85, 62, 28665, 82, 3784, 2617, 62, 40085, 1096, 7, 6739, 366, 40085, 1096, 5721, 9647, 201, 198, 220, 435, 85, 62, 12543, 2733, 796, 435, 85, 62, 15252, 3784, 1136, 62, 12543, 2733, 7, 6739, 366, 15234, 485, 1895, 284, 9131, 53, 5499, 201, 198, 220, 435, 85, 62, 12543, 2733, 3784, 2617, 62, 439, 7, 6739, 366, 28709, 477, 262, 5499, 201, 198, 220, 42815, 337, 36252, 435, 85, 62, 15252, 3784, 13812, 13 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_shi8 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. DATA: mv_assignment_id TYPE hier_sfw_id. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_SHI8 IMPLEMENTATION. METHOD constructor. super->constructor( is_item = is_item iv_language = iv_language ). mv_assignment_id = ms_item-obj_name. ENDMETHOD. METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_deleted TYPE abap_bool, ls_message TYPE hier_mess. CALL FUNCTION 'STREE_SFW_ASSIGNMENT_DELETE' EXPORTING assignment_id = mv_assignment_id IMPORTING id_deleted = lv_deleted message = ls_message. IF lv_deleted = abap_false. zcx_abapgit_exception=>raise( |{ ls_message-msgtxt }| ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: ls_assignment_data TYPE ttree_sfw_nodes, ls_node_data TYPE hier_iface, lv_saved TYPE abap_bool, ls_message TYPE hier_mess. io_xml->read( EXPORTING iv_name = 'SHI8' CHANGING cg_data = ls_assignment_data ). ls_node_data-tree_id = ls_assignment_data-tree_id. ls_node_data-node_id = ls_assignment_data-node_id. CALL FUNCTION 'STREE_SFW_ASSIGNMENT_SAVE' EXPORTING assignment_id = ls_assignment_data-sfw_ass_id switch_id = ls_assignment_data-switch_id reaction = ls_assignment_data-reaction node_data = ls_node_data IMPORTING data_saved = lv_saved message = ls_message. IF lv_saved = abap_false. zcx_abapgit_exception=>raise( |{ ls_message-msgtxt }| ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~exists. CALL FUNCTION 'STREE_SFW_ASSIGNMENT_ID_EXISTS' EXPORTING assignment_id = mv_assignment_id IMPORTING exists = rv_bool. 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( ). ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = abap_false. ENDMETHOD. METHOD zif_abapgit_object~jump. zcx_abapgit_exception=>raise( |TODO: Jump SHI8| ). ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lt_assignments TYPE STANDARD TABLE OF hier_sfw_assignment_id, ls_assignment LIKE LINE OF lt_assignments, lt_assignment_data TYPE STANDARD TABLE OF ttree_sfw_nodes, ls_assignment_data LIKE LINE OF lt_assignment_data. ls_assignment-sfw_ass_id = mv_assignment_id. INSERT ls_assignment INTO TABLE lt_assignments. CALL FUNCTION 'STREE_SFW_ASSIGNMENT_READ' TABLES it_assignments = lt_assignments et_assignment_data = lt_assignment_data. READ TABLE lt_assignment_data INTO ls_assignment_data INDEX 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error serializing { ms_item-obj_type } { ms_item-obj_name }| ). ENDIF. io_xml->add( iv_name = 'SHI8' ig_data = ls_assignment_data ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 44019, 23, 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, 42865, 25, 285, 85, 62, 562, 16747, 62, 312, 220, 41876, 13550, 62, 28202, 86, 62, 312, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 9693, 40, 23, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 318, 62, 9186, 220, 220, 220, 220, 796, 318, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 796, 21628, 62, 16129, 6739, 628, 220, 220, 220, 285, 85, 62, 562, 16747, 62, 312, 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, 300, 85, 62, 2934, 33342, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 20500, 41876, 13550, 62, 37348, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 2257, 11587, 62, 20802, 54, 62, 10705, 16284, 10979, 62, 7206, 2538, 9328, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 16237, 62, 312, 796, 285, 85, 62, 562, 16747, 62, 312, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 62, 2934, 33342, 220, 220, 220, 796, 300, 85, 62, 2934, 33342, 198, 220, 220, 220, 220, 220, 220, 220, 3275, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 20500, 13, 628, 220, 220, 220, 16876, 300, 85, 62, 2934, 33342, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 930, 90, 43979, 62, 20500, 12, 907, 13655, 742, 1782, 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, 562, 16747, 62, 7890, 41876, 256, 21048, 62, 28202, 86, 62, 77, 4147, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 17440, 62, 7890, 220, 220, 220, 220, 220, 220, 41876, 13550, 62, 361, 558, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 82, 9586, 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, 43979, 62, 20500, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 13550, 62, 37348, 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, 9693, 40, 23, 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, 562, 16747, 62, 7890, 6739, 628, 220, 220, 220, 43979, 62, 17440, 62, 7890, 12, 21048, 62, 312, 796, 43979, 62, 562, 16747, 62, 7890, 12, 21048, 62, 312, 13, 198, 220, 220, 220, 43979, 62, 17440, 62, 7890, 12, 17440, 62, 312, 796, 43979, 62, 562, 16747, 62, 7890, 12, 17440, 62, 312, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 2257, 11587, 62, 20802, 54, 62, 10705, 16284, 10979, 62, 4090, 6089, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 16237, 62, 312, 796, 43979, 62, 562, 16747, 62, 7890, 12, 28202, 86, 62, 562, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 5078, 62, 312, 220, 220, 220, 220, 796, 43979, 62, 562, 16747, 62, 7890, 12, 31943, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 6317, 220, 220, 220, 220, 220, 796, 43979, 62, 562, 16747, 62, 7890, 12, 260, 2673, 198, 220, 220, 220, 220, 220, 220, 220, 10139, 62, 7890, 220, 220, 220, 220, 796, 43979, 62, 17440, 62, 7890, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 62, 82, 9586, 220, 220, 220, 796, 300, 85, 62, 82, 9586, 198, 220, 220, 220, 220, 220, 220, 220, 3275, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 20500, 13, 628, 220, 220, 220, 16876, 300, 85, 62, 82, 9586, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 930, 90, 43979, 62, 20500, 12, 907, 13655, 742, 1782, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_abapgit_object_nrob DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. PROTECTED SECTION. PRIVATE SECTION. METHODS: delete_intervals IMPORTING iv_object TYPE inri-object RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_object_nrob IMPLEMENTATION. METHOD delete_intervals. DATA: lv_error TYPE c LENGTH 1, ls_error TYPE inrer, lt_list TYPE STANDARD TABLE OF inriv WITH DEFAULT KEY, lt_error_iv TYPE STANDARD TABLE OF inriv WITH DEFAULT KEY. FIELD-SYMBOLS: <ls_list> LIKE LINE OF lt_list. CALL FUNCTION 'NUMBER_RANGE_INTERVAL_LIST' EXPORTING object = iv_object TABLES interval = lt_list EXCEPTIONS nr_range_nr1_not_found = 1 nr_range_nr1_not_intern = 2 nr_range_nr2_must_be_space = 3 nr_range_nr2_not_extern = 4 nr_range_nr2_not_found = 5 object_not_found = 6 subobject_must_be_space = 7 subobject_not_found = 8 OTHERS = 9. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. IF lines( lt_list ) = 0. RETURN. ENDIF. LOOP AT lt_list ASSIGNING <ls_list>. CLEAR <ls_list>-nrlevel. <ls_list>-procind = 'D'. ENDLOOP. CALL FUNCTION 'NUMBER_RANGE_INTERVAL_UPDATE' EXPORTING object = iv_object IMPORTING error = ls_error error_occured = lv_error TABLES error_iv = lt_error_iv interval = lt_list EXCEPTIONS object_not_found = 1 OTHERS = 2. IF sy-subrc <> 0 OR lv_error = abap_true. zcx_abapgit_exception=>raise_t100( ). ENDIF. CALL FUNCTION 'NUMBER_RANGE_UPDATE_CLOSE' EXPORTING object = iv_object EXCEPTIONS no_changes_made = 1 object_not_initialized = 2 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~changed_by. DATA: lv_objectid TYPE cdhdr-objectid, lt_cdhdr TYPE cdhdr_tab. FIELD-SYMBOLS: <ls_cdhdr> LIKE LINE OF lt_cdhdr. lv_objectid = ms_item-obj_name. CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS' EXPORTING objectclass = 'NRKROBJ' objectid = lv_objectid TABLES i_cdhdr = lt_cdhdr EXCEPTIONS no_position_found = 1 wrong_access_to_archive = 2 time_zone_conversion_error = 3 OTHERS = 4. IF sy-subrc <> 0. rv_user = c_user_unknown. RETURN. ENDIF. SORT lt_cdhdr BY udate DESCENDING utime DESCENDING. READ TABLE lt_cdhdr INDEX 1 ASSIGNING <ls_cdhdr>. ASSERT sy-subrc = 0. rv_user = <ls_cdhdr>-username. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_object TYPE tnro-object. lv_object = ms_item-obj_name. delete_intervals( lv_object ). CALL FUNCTION 'NUMBER_RANGE_OBJECT_DELETE' EXPORTING language = mv_language object = lv_object EXCEPTIONS delete_not_allowed = 1 object_not_found = 2 wrong_indicator = 3 OTHERS = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lt_errors TYPE TABLE OF inoer, ls_attributes TYPE tnro, ls_text TYPE tnrot. io_xml->read( EXPORTING iv_name = 'ATTRIBUTES' CHANGING cg_data = ls_attributes ). io_xml->read( EXPORTING iv_name = 'TEXT' CHANGING cg_data = ls_text ). CALL FUNCTION 'NUMBER_RANGE_OBJECT_UPDATE' EXPORTING indicator = 'I' object_attributes = ls_attributes object_text = ls_text TABLES errors = lt_errors EXCEPTIONS object_already_exists = 1 object_attributes_missing = 2 object_not_found = 3 object_text_missing = 4 wrong_indicator = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. tadir_insert( iv_package ). corr_insert( iv_package ). CALL FUNCTION 'NUMBER_RANGE_OBJECT_CLOSE' EXPORTING object = ls_attributes-object EXCEPTIONS object_not_initialized = 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_object TYPE tnro-object. SELECT SINGLE object FROM tnro INTO lv_object WHERE object = ms_item-obj_name. rv_bool = xsdbool( 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-late TO rt_steps. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = abap_false. ENDMETHOD. METHOD zif_abapgit_object~jump. DATA: ls_bcdata TYPE bdcdata, lt_bcdata TYPE STANDARD TABLE OF bdcdata. ls_bcdata-program = 'SAPMSNRO'. ls_bcdata-dynpro = '0150'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO lt_bcdata. CLEAR ls_bcdata. ls_bcdata-fnam = 'NRIV-OBJECT'. ls_bcdata-fval = ms_item-obj_name. APPEND ls_bcdata TO lt_bcdata. CLEAR ls_bcdata. ls_bcdata-fnam = 'BDC_OKCODE'. ls_bcdata-fval = '=DISP'. APPEND ls_bcdata TO lt_bcdata. CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'GIT' EXPORTING tcode = 'SNRO' mode_val = 'E' TABLES using_tab = lt_bcdata EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, NROB' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_object TYPE tnro-object, ls_attributes TYPE tnro, ls_text TYPE tnrot. lv_object = ms_item-obj_name. CALL FUNCTION 'NUMBER_RANGE_OBJECT_READ' EXPORTING language = mv_language object = lv_object IMPORTING object_attributes = ls_attributes object_text = ls_text EXCEPTIONS object_not_found = 1 OTHERS = 2. IF sy-subrc = 1. RETURN. ELSEIF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. io_xml->add( iv_name = 'ATTRIBUTES' ig_data = ls_attributes ). io_xml->add( iv_name = 'TEXT' ig_data = ls_text ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 77, 22609, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 12233, 62, 3849, 12786, 30023, 9863, 2751, 21628, 62, 15252, 41876, 287, 380, 12, 15252, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 77, 22609, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 12233, 62, 3849, 12786, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 18224, 220, 220, 220, 41876, 269, 406, 49494, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 18224, 220, 220, 220, 41876, 287, 11751, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 4868, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 287, 15104, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 18224, 62, 452, 41876, 49053, 9795, 43679, 3963, 287, 15104, 13315, 5550, 38865, 35374, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 4868, 29, 34178, 48920, 3963, 300, 83, 62, 4868, 13, 628, 198, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 41359, 13246, 62, 49, 27746, 62, 41358, 23428, 62, 45849, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 15252, 198, 220, 220, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 220, 220, 16654, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 83, 62, 4868, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 299, 81, 62, 9521, 62, 48624, 16, 62, 1662, 62, 9275, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 299, 81, 62, 9521, 62, 48624, 16, 62, 1662, 62, 23124, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 299, 81, 62, 9521, 62, 48624, 17, 62, 27238, 62, 1350, 62, 13200, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 299, 81, 62, 9521, 62, 48624, 17, 62, 1662, 62, 1069, 759, 220, 220, 220, 796, 604, 198, 220, 220, 220, 220, 220, 220, 220, 299, 81, 62, 9521, 62, 48624, 17, 62, 1662, 62, 9275, 220, 220, 220, 220, 796, 642, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 1662, 62, 9275, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 718, 198, 220, 220, 220, 220, 220, 220, 220, 850, 15252, 62, 27238, 62, 1350, 62, 13200, 220, 220, 220, 796, 767, 198, 220, 220, 220, 220, 220, 220, 220, 850, 15252, 62, 1662, 62, 9275, 220, 220, 220, 220, 220, 220, 220, 796, 807, 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, 860, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 62, 83, 3064, 7, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 16876, 3951, 7, 300, 83, 62, 4868, 1267, 796, 657, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 4868, 24994, 3528, 15871, 1279, 7278, 62, 4868, 28401, 198, 220, 220, 220, 220, 220, 30301, 1503, 1279, 7278, 62, 4868, 29, 12, 48624, 5715, 13, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 4868, 29, 12, 36942, 521, 796, 705, 35, 4458, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 41359, 13246, 62, 49, 27746, 62, 41358, 23428, 62, 16977, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 15252, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 4049, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 18224, 198, 220, 220, 220, 220, 220, 220, 220, 4049, 62, 13966, 1522, 220, 220, 220, 796, 300, 85, 62, 18224, 198, 220, 220, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 220, 220, 4049, 62, 452, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 83, 62, 18224, 62, 452, 198, 220, 220, 220, 220, 220, 220, 220, 16654, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 83, 62, 4868, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 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 ]
FUNCTION zadu_transport_update_crossref. *"---------------------------------------------------------------------- *"*"Update Function Module: *" *"*"Local Interface: *" IMPORTING *" VALUE(CROSS_REFERENCE_UPDATES) TYPE ZADU_T_CHKTR_CRREF_UPDATE *"---------------------------------------------------------------------- DATA: database_data TYPE zadu_chktr_crref. LOOP AT cross_reference_updates REFERENCE INTO DATA(cross_reference_update). database_data = cross_reference_update->*. CASE cross_reference_update->crud_ind. WHEN zif_adu_constants=>crud-create. INSERT zadu_chktr_crref FROM @database_data. IF sy-subrc <> 0. MESSAGE ID zcx_adu_check_transport=>error_insert_table-msgid TYPE 'X' NUMBER zcx_adu_check_transport=>error_insert_table-msgno WITH |{ database_data-run_code }{ database_data-sequence }| 'ZADU_CHKTR_CRREF'. ENDIF. WHEN zif_adu_constants=>crud-update. UPDATE zadu_chktr_crref FROM @database_data. IF sy-subrc <> 0. MESSAGE ID zcx_adu_check_transport=>error_update_table-msgid TYPE 'X' NUMBER zcx_adu_check_transport=>error_update_table-msgno WITH |{ database_data-run_code }{ database_data-sequence }| 'ZADU_CHKTR_CRREF'. ENDIF. WHEN zif_adu_constants=>crud-delete. DELETE zadu_chktr_crref FROM @database_data. IF sy-subrc <> 0. MESSAGE ID zcx_adu_check_transport=>error_delete_table-msgid TYPE 'X' NUMBER zcx_adu_check_transport=>error_delete_table-msgno WITH |{ database_data-run_code }{ database_data-sequence }| 'ZADU_CHKTR_CRREF'. ENDIF. ENDCASE. ENDLOOP. ENDFUNCTION.
[ 42296, 4177, 2849, 1976, 324, 84, 62, 7645, 634, 62, 19119, 62, 19692, 5420, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 10260, 15553, 19937, 25, 198, 9, 1, 198, 9, 1, 9, 1, 14565, 26491, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 9419, 18420, 62, 2200, 24302, 18310, 62, 52, 5760, 29462, 8, 41876, 220, 1168, 2885, 52, 62, 51, 62, 3398, 42, 5446, 62, 9419, 31688, 62, 16977, 198, 9, 1, 10097, 23031, 628, 220, 42865, 25, 6831, 62, 7890, 41876, 1976, 324, 84, 62, 354, 74, 2213, 62, 6098, 5420, 13, 628, 220, 17579, 3185, 5161, 3272, 62, 35790, 62, 929, 19581, 4526, 24302, 18310, 39319, 42865, 7, 19692, 62, 35790, 62, 19119, 737, 628, 220, 220, 220, 6831, 62, 7890, 796, 3272, 62, 35790, 62, 19119, 3784, 24620, 628, 220, 220, 220, 42001, 3272, 62, 35790, 62, 19119, 3784, 6098, 463, 62, 521, 13, 198, 220, 220, 220, 220, 220, 42099, 1976, 361, 62, 324, 84, 62, 9979, 1187, 14804, 6098, 463, 12, 17953, 13, 198, 220, 220, 220, 220, 220, 220, 220, 29194, 17395, 1976, 324, 84, 62, 354, 74, 2213, 62, 6098, 5420, 16034, 2488, 48806, 62, 7890, 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, 337, 1546, 4090, 8264, 4522, 1976, 66, 87, 62, 324, 84, 62, 9122, 62, 7645, 634, 14804, 18224, 62, 28463, 62, 11487, 12, 19662, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 705, 55, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 36871, 13246, 1976, 66, 87, 62, 324, 84, 62, 9122, 62, 7645, 634, 14804, 18224, 62, 28463, 62, 11487, 12, 19662, 3919, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13315, 930, 90, 6831, 62, 7890, 12, 5143, 62, 8189, 1782, 90, 6831, 62, 7890, 12, 43167, 1782, 91, 705, 57, 2885, 52, 62, 3398, 42, 5446, 62, 9419, 31688, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 42099, 1976, 361, 62, 324, 84, 62, 9979, 1187, 14804, 6098, 463, 12, 19119, 13, 198, 220, 220, 220, 220, 220, 220, 220, 35717, 1976, 324, 84, 62, 354, 74, 2213, 62, 6098, 5420, 16034, 2488, 48806, 62, 7890, 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, 337, 1546, 4090, 8264, 4522, 1976, 66, 87, 62, 324, 84, 62, 9122, 62, 7645, 634, 14804, 18224, 62, 19119, 62, 11487, 12, 19662, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 705, 55, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 36871, 13246, 1976, 66, 87, 62, 324, 84, 62, 9122, 62, 7645, 634, 14804, 18224, 62, 19119, 62, 11487, 12, 19662, 3919, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13315, 930, 90, 6831, 62, 7890, 12, 5143, 62, 8189, 1782, 90, 6831, 62, 7890, 12, 43167, 1782, 91, 705, 57, 2885, 52, 62, 3398, 42, 5446, 62, 9419, 31688, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 42099, 1976, 361, 62, 324, 84, 62, 9979, 1187, 14804, 6098, 463, 12, 33678, 13, 198, 220, 220, 220, 220, 220, 220, 220, 5550, 2538, 9328, 1976, 324, 84, 62, 354, 74, 2213, 62, 6098, 5420, 16034, 2488, 48806, 62, 7890, 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, 337, 1546, 4090, 8264, 4522, 1976, 66, 87, 62, 324, 84, 62, 9122, 62, 7645, 634, 14804, 18224, 62, 33678, 62, 11487, 12, 19662, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 705, 55, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 36871, 13246, 1976, 66, 87, 62, 324, 84, 62, 9122, 62, 7645, 634, 14804, 18224, 62, 33678, 62, 11487, 12, 19662, 3919, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13315, 930, 90, 6831, 62, 7890, 12, 5143, 62, 8189, 1782, 90, 6831, 62, 7890, 12, 43167, 1782, 91, 705, 57, 2885, 52, 62, 3398, 42, 5446, 62, 9419, 31688, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 23578, 34, 11159, 13, 628, 220, 23578, 21982, 3185, 13, 198, 198, 1677, 8068, 4944, 4177, 2849, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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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 ]
"! <p class="shorttext synchronized" lang="en">Access to Packages (DEVC)</p> INTERFACE zif_dutils_devc_reader PUBLIC . METHODS: "! <p class="shorttext synchronized" lang="en">Resolves full package names from Range Table</p> resolve_packages IMPORTING package_range TYPE zif_dutils_ty_global=>ty_package_name_range RETURNING VALUE(result) TYPE zif_dutils_ty_global=>ty_package_name_range, "! <p class="shorttext synchronized" lang="en">Retrieves sub packages by range</p> get_subpackages_by_range IMPORTING package_range TYPE zif_dutils_ty_global=>ty_package_name_range RETURNING VALUE(result) TYPE zif_dutils_ty_global=>ty_package_name_range, "! <p class="shorttext synchronized" lang="en">Retrieves sub packages by tab</p> get_subpackages_by_tab IMPORTING package_names TYPE zif_dutils_ty_global=>ty_package_names RETURNING VALUE(result) TYPE zif_dutils_ty_global=>ty_package_name_range, "! <p class="shorttext synchronized" lang="en">Retrieves sub packages for top package</p> get_subpackages IMPORTING package_name TYPE devclass RETURNING VALUE(result) TYPE zif_dutils_ty_global=>ty_package_name_range. ENDINTERFACE.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 15457, 284, 6400, 1095, 357, 7206, 15922, 36475, 79, 29, 198, 41358, 49836, 1976, 361, 62, 67, 26791, 62, 7959, 66, 62, 46862, 198, 220, 44731, 764, 198, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 4965, 9010, 1336, 5301, 3891, 422, 13667, 8655, 3556, 79, 29, 198, 220, 220, 220, 10568, 62, 43789, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5301, 62, 9521, 41876, 1976, 361, 62, 67, 26791, 62, 774, 62, 20541, 14804, 774, 62, 26495, 62, 3672, 62, 9521, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 1976, 361, 62, 67, 26791, 62, 774, 62, 20541, 14804, 774, 62, 26495, 62, 3672, 62, 9521, 11, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 9781, 5034, 1158, 850, 10392, 416, 2837, 3556, 79, 29, 198, 220, 220, 220, 651, 62, 7266, 43789, 62, 1525, 62, 9521, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5301, 62, 9521, 41876, 1976, 361, 62, 67, 26791, 62, 774, 62, 20541, 14804, 774, 62, 26495, 62, 3672, 62, 9521, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 1976, 361, 62, 67, 26791, 62, 774, 62, 20541, 14804, 774, 62, 26495, 62, 3672, 62, 9521, 11, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 9781, 5034, 1158, 850, 10392, 416, 7400, 3556, 79, 29, 198, 220, 220, 220, 651, 62, 7266, 43789, 62, 1525, 62, 8658, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5301, 62, 14933, 41876, 1976, 361, 62, 67, 26791, 62, 774, 62, 20541, 14804, 774, 62, 26495, 62, 14933, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 1976, 361, 62, 67, 26791, 62, 774, 62, 20541, 14804, 774, 62, 26495, 62, 3672, 62, 9521, 11, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 9781, 5034, 1158, 850, 10392, 329, 1353, 5301, 3556, 79, 29, 198, 220, 220, 220, 651, 62, 7266, 43789, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5301, 62, 3672, 220, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 1976, 361, 62, 67, 26791, 62, 774, 62, 20541, 14804, 774, 62, 26495, 62, 3672, 62, 9521, 13, 198, 10619, 41358, 49836, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ZSNS_CO_01_01_O01 *&---------------------------------------------------------------------* *&---------------------------------------------------------------------* *& Module STATUS_0100 OUTPUT *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* MODULE status_0100 OUTPUT. SET PF-STATUS '0100'. SET TITLEBAR '0100'. PERFORM SHOW_ALV. ENDMODULE.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1168, 50, 8035, 62, 8220, 62, 486, 62, 486, 62, 46, 486, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 19937, 15486, 2937, 62, 39103, 16289, 30076, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 33365, 24212, 3722, 62, 39103, 16289, 30076, 13, 198, 25823, 28223, 12, 35744, 2937, 705, 39103, 4458, 198, 25823, 37977, 2538, 33, 1503, 705, 39103, 4458, 198, 19878, 21389, 37041, 62, 1847, 53, 13, 198, 10619, 33365, 24212, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
"! <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_25. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" REFERENCE(IT_FLIGHT) TYPE /DMO/IF_FLIGHT_LEGACY25=>TT_FLIGHT *" OPTIONAL *"---------------------------------------------------------------------- TYPES BEGIN OF ty_seats_occupied. INCLUDE TYPE /dmo/flight25. TYPES distance TYPE /dmo/connecti_25-distance. TYPES distance_unit TYPE /dmo/connecti_25-distance_unit. TYPES END OF ty_seats_occupied. TYPES: tt_flight TYPE STANDARD TABLE OF /dmo/flight25 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/booking25 AS booking JOIN /dmo/connecti_25 AS connection ON booking~carrier_id = connection~carrier_id AND booking~connection_id = connection~connection_id JOIN /dmo/flight25 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/booking25 AS booking JOIN /dmo/connecti_25 AS connection ON booking~carrier_id = connection~carrier_id AND booking~connection_id = connection~connection_id JOIN /dmo/flight25 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/flight25 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, 1495, 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, 1495, 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, 1495, 13, 198, 220, 24412, 47, 1546, 220, 220, 5253, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 8443, 72, 62, 1495, 12, 30246, 13, 198, 220, 24412, 47, 1546, 220, 220, 5253, 62, 20850, 220, 41876, 1220, 67, 5908, 14, 8443, 72, 62, 1495, 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, 1495, 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, 1495, 7054, 25452, 198, 220, 220, 220, 220, 220, 32357, 1268, 220, 220, 220, 220, 1220, 67, 5908, 14, 8443, 72, 62, 1495, 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, 1495, 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, 1495, 7054, 25452, 198, 220, 220, 220, 220, 220, 32357, 1268, 220, 220, 220, 220, 1220, 67, 5908, 14, 8443, 72, 62, 1495, 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, 1495, 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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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 ]
CLASS zcl_abapgit_serialize DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. METHODS constructor. METHODS on_end_of_task IMPORTING !p_task TYPE clike . METHODS serialize IMPORTING !it_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt !iv_language TYPE langu DEFAULT sy-langu !io_log TYPE REF TO zcl_abapgit_log OPTIONAL !iv_force_sequential TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . PROTECTED SECTION. CLASS-DATA gv_max_threads TYPE i . DATA mt_files TYPE zif_abapgit_definitions=>ty_files_item_tt . DATA mv_free TYPE i . DATA mo_log TYPE REF TO zcl_abapgit_log . METHODS add_to_return IMPORTING !iv_path TYPE string !is_fils_item TYPE zcl_abapgit_objects=>ty_serialization . METHODS run_parallel IMPORTING !iv_group TYPE rzlli_apcl !is_tadir TYPE zif_abapgit_definitions=>ty_tadir !iv_language TYPE langu !iv_task TYPE sychar32 RAISING zcx_abapgit_exception . METHODS run_sequential IMPORTING !is_tadir TYPE zif_abapgit_definitions=>ty_tadir !iv_language TYPE langu RAISING zcx_abapgit_exception . METHODS determine_max_threads IMPORTING !iv_force_sequential TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rv_threads) TYPE i RAISING zcx_abapgit_exception . PRIVATE SECTION. METHODS is_merged RETURNING VALUE(rv_result) TYPE abap_bool . ENDCLASS. CLASS zcl_abapgit_serialize IMPLEMENTATION. METHOD add_to_return. FIELD-SYMBOLS: <ls_file> LIKE LINE OF is_fils_item-files, <ls_return> LIKE LINE OF mt_files. LOOP AT is_fils_item-files ASSIGNING <ls_file>. APPEND INITIAL LINE TO mt_files ASSIGNING <ls_return>. <ls_return>-file = <ls_file>. <ls_return>-file-path = iv_path. <ls_return>-item = is_fils_item-item. ENDLOOP. ENDMETHOD. METHOD constructor. DATA lo_settings TYPE REF TO zcl_abapgit_settings. lo_settings = zcl_abapgit_persist_settings=>get_instance( )->read( ). IF is_merged( ) = abap_true OR lo_settings->get_parallel_proc_disabled( ) = abap_true. gv_max_threads = 1. ENDIF. ENDMETHOD. METHOD determine_max_threads. IF iv_force_sequential = abap_true. rv_threads = 1. RETURN. ENDIF. IF gv_max_threads >= 1. * SPBT_INITIALIZE gives error PBT_ENV_ALREADY_INITIALIZED if called * multiple times in same session rv_threads = gv_max_threads. RETURN. ENDIF. CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'Z_ABAPGIT_SERIALIZE_PARALLEL' EXCEPTIONS function_not_exist = 1 OTHERS = 2. IF sy-subrc <> 0. gv_max_threads = 1. ELSE. * todo, add possibility to set group name in user exit CALL FUNCTION 'SPBT_INITIALIZE' EXPORTING group_name = 'parallel_generators' IMPORTING free_pbt_wps = gv_max_threads EXCEPTIONS invalid_group_name = 1 internal_error = 2 pbt_env_already_initialized = 3 currently_no_resources_avail = 4 no_pbt_resources_found = 5 cant_init_different_pbt_groups = 6 OTHERS = 7. IF sy-subrc <> 0. * fallback to running sequentially. If SPBT_INITIALIZE fails, check transactions * RZ12, SM50, SM21, SARFC gv_max_threads = 1. ENDIF. ENDIF. IF gv_max_threads > 1. gv_max_threads = gv_max_threads - 1. ENDIF. ASSERT gv_max_threads >= 1. IF gv_max_threads > 32. * https://en.wikipedia.org/wiki/Amdahl%27s_law gv_max_threads = 32. ENDIF. rv_threads = gv_max_threads. ENDMETHOD. METHOD is_merged. DATA lo_marker TYPE REF TO data. TRY. CREATE DATA lo_marker TYPE REF TO ('LIF_ABAPMERGE_MARKER') ##no_text. "No exception --> marker found rv_result = abap_true. CATCH cx_sy_create_data_error ##no_handler. ENDTRY. ENDMETHOD. METHOD on_end_of_task. DATA: lv_result TYPE xstring, lv_path TYPE string, ls_fils_item TYPE zcl_abapgit_objects=>ty_serialization. RECEIVE RESULTS FROM FUNCTION 'Z_ABAPGIT_SERIALIZE_PARALLEL' IMPORTING ev_result = lv_result ev_path = lv_path EXCEPTIONS error = 1 OTHERS = 2. IF sy-subrc <> 0. IF NOT mo_log IS INITIAL. mo_log->add_error( |{ sy-msgv1 }{ sy-msgv2 }{ sy-msgv3 }{ sy-msgv3 }| ). ENDIF. ELSE. IMPORT data = ls_fils_item FROM DATA BUFFER lv_result. "#EC CI_SUBRC ASSERT sy-subrc = 0. add_to_return( is_fils_item = ls_fils_item iv_path = lv_path ). ENDIF. mv_free = mv_free + 1. ENDMETHOD. METHOD run_parallel. DATA: lv_msg TYPE c LENGTH 100, lv_free LIKE mv_free. ASSERT mv_free > 0. DO. CALL FUNCTION 'Z_ABAPGIT_SERIALIZE_PARALLEL' STARTING NEW TASK iv_task DESTINATION IN GROUP iv_group CALLING on_end_of_task ON END OF TASK EXPORTING iv_obj_type = is_tadir-object iv_obj_name = is_tadir-obj_name iv_devclass = is_tadir-devclass iv_language = iv_language iv_path = is_tadir-path EXCEPTIONS system_failure = 1 MESSAGE lv_msg communication_failure = 2 MESSAGE lv_msg resource_failure = 3 OTHERS = 4. IF sy-subrc = 3. lv_free = mv_free. WAIT UNTIL mv_free <> lv_free UP TO 1 SECONDS. CONTINUE. ELSEIF sy-subrc <> 0. ASSERT lv_msg = '' AND 0 = 1. ENDIF. EXIT. ENDDO. mv_free = mv_free - 1. ENDMETHOD. METHOD run_sequential. DATA: lx_error TYPE REF TO zcx_abapgit_exception, ls_fils_item TYPE zcl_abapgit_objects=>ty_serialization. ls_fils_item-item-obj_type = is_tadir-object. ls_fils_item-item-obj_name = is_tadir-obj_name. ls_fils_item-item-devclass = is_tadir-devclass. TRY. ls_fils_item = zcl_abapgit_objects=>serialize( is_item = ls_fils_item-item iv_language = iv_language ). add_to_return( is_fils_item = ls_fils_item iv_path = is_tadir-path ). CATCH zcx_abapgit_exception INTO lx_error. IF NOT mo_log IS INITIAL. mo_log->add_error( lx_error->get_text( ) ). ENDIF. ENDTRY. ENDMETHOD. METHOD serialize. DATA: lv_max TYPE i, li_progress TYPE REF TO zif_abapgit_progress. FIELD-SYMBOLS: <ls_tadir> LIKE LINE OF it_tadir. CLEAR mt_files. lv_max = determine_max_threads( iv_force_sequential ). mv_free = lv_max. mo_log = io_log. li_progress = zcl_abapgit_progress=>get_instance( lines( it_tadir ) ). LOOP AT it_tadir ASSIGNING <ls_tadir>. li_progress->show( iv_current = sy-tabix iv_text = |Serialize { <ls_tadir>-obj_name }, { lv_max } threads| ) ##NO_TEXT. IF lv_max = 1. run_sequential( is_tadir = <ls_tadir> iv_language = iv_language ). ELSE. run_parallel( iv_group = 'parallel_generators' " todo is_tadir = <ls_tadir> iv_task = |{ sy-tabix }| iv_language = iv_language ). WAIT UNTIL mv_free > 0 UP TO 10 SECONDS. ENDIF. ENDLOOP. WAIT UNTIL mv_free = lv_max UP TO 10 SECONDS. rt_files = mt_files. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 46911, 1096, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 13, 198, 220, 220, 220, 337, 36252, 50, 319, 62, 437, 62, 1659, 62, 35943, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 79, 62, 35943, 41876, 537, 522, 764, 198, 220, 220, 220, 337, 36252, 50, 11389, 1096, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 83, 324, 343, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 16129, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2786, 5550, 38865, 827, 12, 75, 2303, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 6404, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6404, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3174, 62, 3107, 1843, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 16624, 8, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 628, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 42715, 12, 26947, 308, 85, 62, 9806, 62, 16663, 82, 41876, 1312, 764, 198, 220, 220, 220, 42865, 45079, 62, 16624, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 62, 926, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 5787, 41876, 1312, 764, 198, 220, 220, 220, 42865, 6941, 62, 6404, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6404, 764, 628, 220, 220, 220, 337, 36252, 50, 751, 62, 1462, 62, 7783, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6978, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 69, 4487, 62, 9186, 41876, 1976, 565, 62, 397, 499, 18300, 62, 48205, 14804, 774, 62, 46911, 1634, 764, 198, 220, 220, 220, 337, 36252, 50, 1057, 62, 1845, 29363, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8094, 220, 220, 220, 41876, 374, 89, 15516, 62, 499, 565, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 83, 324, 343, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 16129, 41876, 2786, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 35943, 220, 220, 220, 220, 41876, 827, 10641, 2624, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 1057, 62, 3107, 1843, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 83, 324, 343, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 16129, 41876, 2786, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 5004, 62, 9806, 62, 16663, 82, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3174, 62, 3107, 1843, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 16663, 82, 8, 220, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 318, 62, 647, 2004, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 20274, 8, 41876, 450, 499, 62, 30388, 764, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 46911, 1096, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 751, 62, 1462, 62, 7783, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 7753, 29, 220, 220, 34178, 48920, 3963, 318, 62, 69, 4487, 62, 9186, 12, 16624, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 7783, 29, 34178, 48920, 3963, 45079, 62, 16624, 13, 628, 198, 220, 220, 220, 17579, 3185, 5161, 318, 62, 69, 4487, 62, 9186, 12, 16624, 24994, 3528, 15871, 1279, 7278, 62, 7753, 28401, 198, 220, 220, 220, 220, 220, 43504, 10619, 3268, 2043, 12576, 48920, 5390, 45079, 62, 16624, 24994, 3528, 15871, 1279, 7278, 62, 7783, 28401, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 7783, 29, 12, 7753, 796, 1279, 7278, 62, 7753, 28401, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 7783, 29, 12, 7753, 12, 6978, 796, 21628, 62, 6978, 13, 198, 220, 220, 220, 220, 220, 1279, 7278 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
"! API for Initializing the Transactional Buffer of the Travel API "! FUNCTION /DMO/FLIGHT_TRAVEL_INITIALI_24. *"---------------------------------------------------------------------- *"*"Local Interface: *"---------------------------------------------------------------------- /dmo/cl_flight_legacy24=>get_instance( )->initialize( ). ENDFUNCTION.
[ 40484, 7824, 329, 20768, 2890, 262, 3602, 529, 1538, 47017, 286, 262, 13524, 7824, 198, 40484, 198, 42296, 4177, 2849, 1220, 35, 11770, 14, 3697, 9947, 62, 51, 3861, 18697, 62, 1268, 2043, 12576, 40, 62, 1731, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 14565, 26491, 25, 198, 9, 1, 10097, 23031, 198, 220, 1220, 67, 5908, 14, 565, 62, 22560, 62, 1455, 1590, 1731, 14804, 1136, 62, 39098, 7, 1267, 3784, 36733, 1096, 7, 6739, 198, 1677, 8068, 4944, 4177, 2849, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZCX_EUI_NO_CHECK definition public inheriting from CX_NO_CHECK final create public . public section. *"* public components of class ZCX_EUI_NO_CHECK *"* do not include other source files here!!! type-pools ABAP . interfaces IF_T100_MESSAGE . constants: begin of ZCX_EUI_NO_CHECK, msgid type symsgid value 'ZEUI_MESSAGE', msgno type symsgno value '000', attr1 type scx_attrname value 'MSGV1', attr2 type scx_attrname value 'MSGV2', attr3 type scx_attrname value 'MSGV3', attr4 type scx_attrname value 'MSGV4', end of ZCX_EUI_NO_CHECK . data MSGV1 type MSGV1 . data MSGV2 type MSGV2 . data MSGV3 type MSGV3 . data MSGV4 type MSGV4 . data MS_MSG type ZCL_EUI_LOGGER=>TS_MSG read-only . methods CONSTRUCTOR importing !TEXTID like IF_T100_MESSAGE=>T100KEY optional !PREVIOUS like PREVIOUS optional !MSGV1 type MSGV1 optional !MSGV2 type MSGV2 optional !MSGV3 type MSGV3 optional !MSGV4 type MSGV4 optional !MS_MSG type ZCL_EUI_LOGGER=>TS_MSG optional . class-methods RAISE_SYS_ERROR importing !IV_MESSAGE type CSEQUENCE optional value(IO_ERROR) type ref to CX_ROOT optional . protected section. private section. ENDCLASS. CLASS ZCX_EUI_NO_CHECK IMPLEMENTATION. method CONSTRUCTOR. CALL METHOD SUPER->CONSTRUCTOR EXPORTING PREVIOUS = PREVIOUS . me->MSGV1 = MSGV1 . me->MSGV2 = MSGV2 . me->MSGV3 = MSGV3 . me->MSGV4 = MSGV4 . me->MS_MSG = MS_MSG . clear me->textid. if textid is initial. IF_T100_MESSAGE~T100KEY = ZCX_EUI_NO_CHECK . else. IF_T100_MESSAGE~T100KEY = TEXTID. endif. endmethod. METHOD raise_sys_error. DATA: BEGIN OF ls_string, part1 TYPE symsgv, part2 TYPE symsgv, part3 TYPE symsgv, part4 TYPE symsgv, END OF ls_string. DATA lv_incl TYPE syrepid. DATA lv_line TYPE i. DATA lv_text TYPE string. " From string IF iv_message IS NOT INITIAL. ls_string = iv_message. ENDIF. WHILE ls_string IS INITIAL AND io_error IS NOT INITIAL. ls_string = io_error->get_text( ). " For debug io_error->get_source_position( IMPORTING include_name = lv_incl source_line = lv_line ). " put break-point here ---> { lv_incl } - { lv_line } io_error = io_error->previous. ENDWHILE. " Any error based on system message IF ls_string IS INITIAL. MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO ls_string. DATA ls_msg TYPE zcl_eui_logger=>ts_msg. ls_msg-msgid = sy-msgid. ls_msg-msgno = sy-msgno. ls_msg-msgty = sy-msgty. " Always error 'E' ls_msg-msgv1 = sy-msgv1. ls_msg-msgv2 = sy-msgv2. ls_msg-msgv3 = sy-msgv3. ls_msg-msgv4 = sy-msgv4. ENDIF. " Devided to blocks RAISE EXCEPTION TYPE zcx_eui_no_check EXPORTING textid = zcx_eui_exception=>zcx_eui_exception msgv1 = ls_string-part1 msgv2 = ls_string-part2 msgv3 = ls_string-part3 msgv4 = ls_string-part4 ms_msg = ls_msg. ENDMETHOD. ENDCLASS.
[ 4871, 1168, 34, 55, 62, 36, 10080, 62, 15285, 62, 50084, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 327, 55, 62, 15285, 62, 50084, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 34, 55, 62, 36, 10080, 62, 15285, 62, 50084, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 2099, 12, 7742, 82, 9564, 2969, 764, 628, 220, 20314, 16876, 62, 51, 3064, 62, 44, 1546, 4090, 8264, 764, 628, 220, 38491, 25, 198, 220, 220, 220, 2221, 286, 1168, 34, 55, 62, 36, 10080, 62, 15285, 62, 50084, 11, 198, 220, 220, 220, 220, 220, 31456, 312, 2099, 827, 19662, 312, 1988, 705, 21211, 10080, 62, 44, 1546, 4090, 8264, 3256, 198, 220, 220, 220, 220, 220, 31456, 3919, 2099, 827, 19662, 3919, 1988, 705, 830, 3256, 198, 220, 220, 220, 220, 220, 708, 81, 16, 2099, 629, 87, 62, 35226, 3672, 1988, 705, 5653, 37094, 16, 3256, 198, 220, 220, 220, 220, 220, 708, 81, 17, 2099, 629, 87, 62, 35226, 3672, 1988, 705, 5653, 37094, 17, 3256, 198, 220, 220, 220, 220, 220, 708, 81, 18, 2099, 629, 87, 62, 35226, 3672, 1988, 705, 5653, 37094, 18, 3256, 198, 220, 220, 220, 220, 220, 708, 81, 19, 2099, 629, 87, 62, 35226, 3672, 1988, 705, 5653, 37094, 19, 3256, 198, 220, 220, 220, 886, 286, 1168, 34, 55, 62, 36, 10080, 62, 15285, 62, 50084, 764, 198, 220, 1366, 6579, 37094, 16, 2099, 6579, 37094, 16, 764, 198, 220, 1366, 6579, 37094, 17, 2099, 6579, 37094, 17, 764, 198, 220, 1366, 6579, 37094, 18, 2099, 6579, 37094, 18, 764, 198, 220, 1366, 6579, 37094, 19, 2099, 6579, 37094, 19, 764, 198, 220, 1366, 6579, 62, 5653, 38, 2099, 1168, 5097, 62, 36, 10080, 62, 25294, 30373, 14804, 4694, 62, 5653, 38, 1100, 12, 8807, 764, 628, 220, 5050, 7102, 46126, 1581, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 32541, 2389, 588, 16876, 62, 51, 3064, 62, 44, 1546, 4090, 8264, 14804, 51, 3064, 20373, 11902, 198, 220, 220, 220, 220, 220, 5145, 46437, 12861, 20958, 588, 22814, 12861, 20958, 11902, 198, 220, 220, 220, 220, 220, 5145, 5653, 37094, 16, 2099, 6579, 37094, 16, 11902, 198, 220, 220, 220, 220, 220, 5145, 5653, 37094, 17, 2099, 6579, 37094, 17, 11902, 198, 220, 220, 220, 220, 220, 5145, 5653, 37094, 18, 2099, 6579, 37094, 18, 11902, 198, 220, 220, 220, 220, 220, 5145, 5653, 37094, 19, 2099, 6579, 37094, 19, 11902, 198, 220, 220, 220, 220, 220, 5145, 5653, 62, 5653, 38, 2099, 1168, 5097, 62, 36, 10080, 62, 25294, 30373, 14804, 4694, 62, 5653, 38, 11902, 764, 198, 220, 1398, 12, 24396, 82, 17926, 24352, 62, 50, 16309, 62, 24908, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 3824, 62, 44, 1546, 4090, 8264, 2099, 327, 5188, 10917, 18310, 11902, 198, 220, 220, 220, 220, 220, 1988, 7, 9399, 62, 24908, 8, 2099, 1006, 284, 327, 55, 62, 13252, 2394, 11902, 764, 198, 24326, 2665, 13, 198, 19734, 2665, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 34, 55, 62, 36, 10080, 62, 15285, 62, 50084, 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, 46437, 12861, 20958, 796, 22814, 12861, 20958, 198, 13, 198, 1326, 3784, 5653, 37094, 16, 796, 6579, 37094, 16, 764, 198, 1326, 3784, 5653, 37094, 17, 796, 6579, 37094, 17, 764, 198, 1326, 3784, 5653, 37094, 18, 796, 6579, 37094, 18, 764, 198, 1326, 3784, 5653, 37094, 19, 796, 6579, 37094, 19, 764, 198, 1326, 3784, 5653, 62, 5653, 38, 796, 6579, 62, 5653, 38, 764, 198, 20063, 502, 3784, 5239, 312, 13, 198, 361, 2420, 312, 318, 4238, 13, 198, 220, 16876, 62, 51, 3064, 62, 44, 1546, 4090, 8264, 93, 51, 3064, 20373, 796, 1168, 34, 55, 62, 36, 10080, 62, 15285, 62, 50084, 764, 198, 17772, 13, 198, 220, 16876, 62, 51, 3064, 62, 44, 1546, 4090, 8264, 93, 51, 3064, 20373, 796, 40383, 2389, 13, 198, 32088, 13, 198, 220, 886, 24396, 13, 628, 198, 49273, 5298, 62, 17597, 62, 18224, 13, 198, 220, 42865, 25, 198, 220, 220, 220, 347, 43312, 3963, 43979, 62, 8841, 11, 198, 220, 220, 220, 220, 220, 636, 16, 41876, 827, 19662, 85, 11, 198, 220, 220, 220, 220, 220, 636, 17, 41876, 827, 19662, 85, 11, 198, 220, 220, 220, 220, 220, 636, 18, 41876, 827, 19662, 85, 11, 198, 220, 220, 220, 220, 220, 636, 19, 41876, 827, 19662, 85, 11, 198, 220, 220, 220, 23578, 3963, 43979, 62, 8841, 13, 198, 220, 42865, 300, 85, 62, 259, 565, 41876, 827, 7856, 312, 13, 198, 220, 42865, 300, 85, 62, 1370, 41876, 1312, 13, 198, 220, 42865, 300, 85, 62, 5239, 41876, 4731, 13, 628, 220, 366, 3574, 4731, 198, 220, 16876, 21628, 62, 20500, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 43979, 62, 8841, 796, 21628, 62, 20500, 13, 198, 220, 23578, 5064, 13, 628, 220, 7655, 41119, 43979, 62, 8841, 3180, 3268, 2043, 12576, 5357, 33245, 62, 18224, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 43979, 62, 8841, 796, 33245, 62, 18224, 3784, 1136, 62, 5239, 7, 6739, 628, 220, 220, 220, 366, 1114, 14257, 198, 220, 220, 220, 33245, 62, 18224, 3784, 1136, 62, 10459, 62, 9150, 7, 198, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 2291, 62, 3672, 796, 300, 85, 62, 259, 565, 198, 220, 220, 220, 220, 220, 220, 2723, 62, 1370, 220, 796, 300, 85, 62, 1370, 6739, 198, 220, 220, 220, 366, 1234, 2270, 12, 4122, 994, 1377, 3784, 1391, 300, 85, 62, 259, 565, 1782, 532, 1391, 300, 85, 62, 1370, 1782, 628, 220, 220, 220, 33245, 62, 18224, 796, 33245, 62, 18224, 3784, 3866, 1442, 13, 198, 220, 23578, 12418, 41119, 13, 628, 220, 366, 4377, 4049, 1912, 319, 1080, 3275, 198, 220, 16876, 43979, 62, 8841, 3180, 3268 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*&---------------------------------------------------------------------* *& Report ZOO_BCS_EMAIL *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT zoo_bcs_email. ****Mail Objects DATA: send_request TYPE REF TO cl_bcs, document TYPE REF TO cl_document_bcs, sender TYPE REF TO cl_sapuser_bcs, recipient TYPE REF TO if_recipient_bcs. DATA: l_mailtext TYPE soli_tab, l_mailhex TYPE solix_tab, l_subject TYPE so_obj_des. FIELD-SYMBOLS: <wa_mail> LIKE LINE OF l_mailtext, <wa_mailx> LIKE LINE OF l_mailhex. ****Create the Subject Line l_subject = 'Hello World from Email'(sb1). **** Create Persistent Send Request send_request = cl_bcs=>create_persistent( ). ****Create the document Body DATA body TYPE string. DATA label TYPE string. ***Beginning of Table CONCATENATE body `<table cellspacing="1" cellpadding="1" width="400" border="0">` INTO body. CONCATENATE body `<tbody>` INTO body. CONCATENATE body `<tr><td valign="top"><strong>` `Hello World!` `</strong></td><td>` `From my HTML Email Program` `</td></tr>` INTO body. ***End of Table CONCATENATE body `</tbody></table><br><br>` INTO body. l_mailtext = cl_document_bcs=>string_to_soli( body ). document = cl_document_bcs=>create_document( i_type = 'HTM' i_text = l_mailtext i_subject = l_subject ). ****Add Document to Send Request send_request->set_document( document ). ****Get the Sender Object from the Current Logged on User sender = cl_sapuser_bcs=>create( sy-uname ). ****Add Sender to the Send Request send_request->set_sender( sender ). ****Create recipient(s) recipient = cl_cam_address_bcs=>create_internet_address( `[email protected]` ). send_request->add_recipient( recipient ). ****Set the Send Immediately Flag send_request->set_send_immediately( abap_true ). ****Send Document send_request->send( ). COMMIT WORK.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 220, 1168, 6684, 62, 2749, 50, 62, 27630, 4146, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 198, 2200, 15490, 220, 26626, 62, 65, 6359, 62, 12888, 13, 628, 198, 198, 2466, 25804, 35832, 198, 26947, 25, 3758, 62, 25927, 41876, 4526, 37, 5390, 537, 62, 65, 6359, 11, 198, 220, 220, 220, 220, 220, 3188, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 22897, 62, 65, 6359, 11, 198, 220, 220, 220, 220, 220, 29788, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 82, 499, 7220, 62, 65, 6359, 11, 198, 220, 220, 220, 220, 220, 17800, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 8344, 48137, 62, 65, 6359, 13, 198, 198, 26947, 25, 300, 62, 4529, 5239, 41876, 1540, 72, 62, 8658, 11, 198, 220, 220, 220, 220, 220, 300, 62, 4529, 33095, 220, 41876, 1540, 844, 62, 8658, 11, 198, 220, 220, 220, 220, 220, 300, 62, 32796, 220, 41876, 523, 62, 26801, 62, 8906, 13, 198, 44603, 12, 23060, 10744, 3535, 50, 25, 1279, 10247, 62, 4529, 29, 220, 34178, 48920, 3963, 300, 62, 4529, 5239, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 10247, 62, 4529, 87, 29, 34178, 48920, 3963, 300, 62, 4529, 33095, 13, 198, 198, 2466, 16447, 262, 15540, 6910, 198, 75, 62, 32796, 796, 220, 705, 15496, 2159, 422, 9570, 6, 7, 36299, 16, 737, 198, 198, 2466, 13610, 9467, 7609, 16290, 19390, 198, 21280, 62, 25927, 796, 537, 62, 65, 6359, 14804, 17953, 62, 19276, 7609, 7, 6739, 198, 198, 2466, 16447, 262, 3188, 12290, 198, 26947, 1767, 41876, 4731, 13, 198, 26947, 6167, 41876, 4731, 13, 198, 8162, 45198, 286, 8655, 198, 10943, 34, 1404, 1677, 6158, 1767, 4600, 27, 11487, 2685, 2777, 4092, 2625, 16, 1, 2685, 39231, 2625, 16, 1, 9647, 2625, 7029, 1, 4865, 2625, 15, 5320, 63, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 39319, 1767, 13, 198, 10943, 34, 1404, 1677, 6158, 1767, 4600, 27, 83, 2618, 29, 63, 39319, 1767, 13, 198, 198, 10943, 34, 1404, 1677, 6158, 1767, 4600, 27, 2213, 6927, 8671, 1188, 570, 2625, 4852, 22039, 11576, 29, 63, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4600, 15496, 2159, 0, 63, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4600, 3556, 11576, 12240, 8671, 6927, 8671, 29, 63, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4600, 4863, 616, 11532, 9570, 6118, 63, 4600, 3556, 8671, 12240, 2213, 29, 63, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 39319, 1767, 13, 198, 8162, 12915, 286, 8655, 198, 10943, 34, 1404, 1677, 6158, 1767, 4600, 3556, 83, 2618, 12240, 11487, 6927, 1671, 6927, 1671, 29, 63, 39319, 1767, 13, 198, 198, 75, 62, 4529, 5239, 796, 537, 62, 22897, 62, 65, 6359, 14804, 8841, 62, 1462, 62, 82, 11106, 7, 1767, 6739, 198, 198, 22897, 796, 537, 62, 22897, 62, 65, 6359, 14804, 17953, 62, 22897, 7, 198, 220, 220, 220, 1312, 62, 4906, 796, 705, 6535, 44, 6, 198, 220, 220, 220, 1312, 62, 5239, 796, 300, 62, 4529, 5239, 198, 220, 220, 220, 1312, 62, 32796, 796, 300, 62, 32796, 6739, 198, 198, 2466, 4550, 16854, 284, 16290, 19390, 198, 21280, 62, 25927, 3784, 2617, 62, 22897, 7, 3188, 6739, 198, 198, 2466, 3855, 262, 311, 2194, 9515, 422, 262, 9236, 50098, 319, 11787, 198, 82, 2194, 796, 537, 62, 82, 499, 7220, 62, 65, 6359, 14804, 17953, 7, 827, 12, 403, 480, 6739, 198, 198, 2466, 4550, 311, 2194, 284, 262, 16290, 19390, 198, 21280, 62, 25927, 3784, 2617, 62, 82, 2194, 7, 29788, 6739, 198, 198, 2466, 16447, 17800, 7, 82, 8, 198, 8344, 48137, 796, 537, 62, 20991, 62, 21975, 62, 65, 6359, 14804, 17953, 62, 37675, 62, 21975, 7, 198, 220, 4600, 400, 16911, 13, 73, 2150, 31, 82, 499, 13, 785, 63, 6739, 198, 21280, 62, 25927, 3784, 2860, 62, 8344, 48137, 7, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*"* use this source file for the definition and implementation of *"* local helper classes, interface definitions and type *"* declarations CLASS lcl_abap_behv_msg IMPLEMENTATION. METHOD constructor. CALL METHOD super->constructor EXPORTING previous = previous. me->msgty = msgty . me->msgv1 = msgv1 . me->msgv2 = msgv2 . me->msgv3 = msgv3 . me->msgv4 = msgv4 . 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.
[ 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, 198, 31631, 300, 565, 62, 397, 499, 62, 20709, 85, 62, 19662, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 42815, 337, 36252, 2208, 3784, 41571, 273, 7788, 15490, 2751, 2180, 796, 2180, 13, 198, 220, 220, 220, 502, 3784, 19662, 774, 796, 31456, 774, 764, 198, 220, 220, 220, 502, 3784, 19662, 85, 16, 796, 31456, 85, 16, 764, 198, 220, 220, 220, 502, 3784, 19662, 85, 17, 796, 31456, 85, 17, 764, 198, 220, 220, 220, 502, 3784, 19662, 85, 18, 796, 31456, 85, 18, 764, 198, 220, 220, 220, 502, 3784, 19662, 85, 19, 796, 31456, 85, 19, 764, 198, 220, 220, 220, 30301, 1503, 502, 3784, 5239, 312, 13, 198, 220, 220, 220, 16876, 2420, 312, 3180, 3268, 2043, 12576, 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, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 611, 62, 83, 3064, 62, 20500, 93, 83, 3064, 2539, 796, 2420, 312, 13, 198, 220, 220, 220, 23578, 5064, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_LOGGER_COLLECTION public . METHODS add_logger IMPORTING logger TYPE REF TO zif_logger. METHODS display_logs IMPORTING display_profile_head_size TYPE i DEFAULT 125 display_profile_tree_size TYPE i DEFAULT 25. METHODS display_logs_using_profile IMPORTING display_profile TYPE bal_s_prof. endinterface.
[ 39994, 1168, 5064, 62, 25294, 30373, 62, 25154, 16779, 2849, 198, 220, 1171, 764, 628, 220, 220, 220, 337, 36252, 50, 751, 62, 6404, 1362, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 49706, 41876, 4526, 37, 5390, 1976, 361, 62, 6404, 1362, 13, 198, 220, 220, 220, 337, 36252, 50, 3359, 62, 6404, 82, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 3359, 62, 13317, 62, 2256, 62, 7857, 41876, 1312, 5550, 38865, 13151, 198, 220, 220, 220, 220, 220, 220, 220, 3359, 62, 13317, 62, 21048, 62, 7857, 41876, 1312, 5550, 38865, 1679, 13, 198, 220, 220, 220, 337, 36252, 50, 3359, 62, 6404, 82, 62, 3500, 62, 13317, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 3359, 62, 13317, 41876, 3652, 62, 82, 62, 5577, 13, 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 ]
"! <p class="shorttext synchronized" lang="en">Abstract file character writer</p> CLASS zcl_io_file_c_writer DEFINITION PUBLIC INHERITING FROM zcl_io_c_writer ABSTRACT CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_io_file_writer . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ZCL_IO_FILE_C_WRITER IMPLEMENTATION. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 23839, 2393, 2095, 6260, 3556, 79, 29, 198, 31631, 1976, 565, 62, 952, 62, 7753, 62, 66, 62, 16002, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 952, 62, 66, 62, 16002, 198, 220, 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, 952, 62, 7753, 62, 16002, 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, 9399, 62, 25664, 62, 34, 62, 18564, 2043, 1137, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_webi DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_webi, veptext TYPE veptext, pvepheader TYPE STANDARD TABLE OF vepheader WITH DEFAULT KEY, pvepfunction TYPE STANDARD TABLE OF vepfunction WITH DEFAULT KEY, pvepfault TYPE STANDARD TABLE OF vepfault WITH DEFAULT KEY, pvepparameter TYPE STANDARD TABLE OF vepparameter WITH DEFAULT KEY, pveptype TYPE STANDARD TABLE OF veptype WITH DEFAULT KEY, pvepelemtype TYPE STANDARD TABLE OF vepelemtype WITH DEFAULT KEY, pveptabletype TYPE STANDARD TABLE OF veptabletype WITH DEFAULT KEY, pvepstrutype TYPE STANDARD TABLE OF vepstrutype WITH DEFAULT KEY, pveptypesoapext TYPE STANDARD TABLE OF veptypesoapext WITH DEFAULT KEY, pvepeletypsoap TYPE STANDARD TABLE OF vepeletypsoap WITH DEFAULT KEY, pveptabtypsoap TYPE STANDARD TABLE OF veptabtypsoap WITH DEFAULT KEY, pvepfuncsoapext TYPE STANDARD TABLE OF vepfuncsoapext WITH DEFAULT KEY, pvepfieldref TYPE STANDARD TABLE OF vepfieldref WITH DEFAULT KEY, pvependpoint TYPE STANDARD TABLE OF vependpoint WITH DEFAULT KEY, pvepvisoapext TYPE STANDARD TABLE OF vepvisoapext WITH DEFAULT KEY, pvepparasoapext TYPE STANDARD TABLE OF vepparasoapext WITH DEFAULT KEY, pwsheader TYPE STANDARD TABLE OF wsheader WITH DEFAULT KEY, pwssoapprop TYPE STANDARD TABLE OF wssoapprop WITH DEFAULT KEY, END OF ty_webi. DATA: mi_vi TYPE REF TO if_ws_md_vif. METHODS: handle_endpoint IMPORTING is_webi TYPE ty_webi RAISING zcx_abapgit_exception cx_ws_md_exception, handle_types IMPORTING is_webi TYPE ty_webi RAISING zcx_abapgit_exception cx_ws_md_exception, handle_soap IMPORTING is_webi TYPE ty_webi RAISING zcx_abapgit_exception cx_ws_md_exception, handle_function IMPORTING is_webi TYPE ty_webi RAISING zcx_abapgit_exception cx_ws_md_exception. METHODS handle_single_parameter IMPORTING iv_parameter_type TYPE vepparamtype iv_name TYPE vepparameter-vepparam ii_function TYPE REF TO if_ws_md_vif_func RETURNING VALUE(ri_parameter) TYPE REF TO if_ws_md_vif_param RAISING zcx_abapgit_exception cx_ws_md_exception. METHODS sort CHANGING cs_webi TYPE ty_webi. ENDCLASS. CLASS zcl_abapgit_object_webi IMPLEMENTATION. METHOD handle_endpoint. DATA: ls_endpoint LIKE LINE OF is_webi-pvependpoint, li_endpoint TYPE REF TO if_ws_md_vif_endpoint_ref. FIELD-SYMBOLS: <ls_function> LIKE LINE OF is_webi-pvepfunction. READ TABLE is_webi-pvependpoint INDEX 1 INTO ls_endpoint. ASSERT sy-subrc = 0. IF mi_vi->has_endpoint_reference( sews_c_vif_version-all ) = abap_true. RETURN. ENDIF. li_endpoint = mi_vi->create_endpoint_reference( endpoint_type = ls_endpoint-endpointtype service_def_startpoint = ls_endpoint-def_start_pt auto_generated = ls_endpoint-auto_generated i_is_srvv = ls_endpoint-is_srvv ). IF ls_endpoint-endpointtype = 'BAPI'. * it looks like some special handling is needed when calling * set_data, and looking at the cluster data LS_ENDPOINT-CLUSTD zcx_abapgit_exception=>raise( 'todo, WEBI BAPI' ). ENDIF. * field ls_endpoint-endpointname does not exist in 702 READ TABLE is_webi-pvepfunction INDEX 1 ASSIGNING <ls_function>. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |WEBI { ms_item-obj_name }: couldn't detect endpoint name| ). ENDIF. li_endpoint->set_data( data_version = '1' data = <ls_function>-function ). ENDMETHOD. METHOD handle_function. DATA: li_parameter TYPE REF TO if_ws_md_vif_param, li_soap TYPE REF TO if_ws_md_soap_ext_func, li_fault TYPE REF TO if_ws_md_vif_fault, li_function TYPE REF TO if_ws_md_vif_func. FIELD-SYMBOLS: <ls_function> LIKE LINE OF is_webi-pvepfunction, <ls_soap> LIKE LINE OF is_webi-pvepfuncsoapext, <ls_fault> LIKE LINE OF is_webi-pvepfault, <ls_parameter> LIKE LINE OF is_webi-pvepparameter. LOOP AT is_webi-pvepfunction ASSIGNING <ls_function>. IF mi_vi->has_function( funcname = <ls_function>-function version = sews_c_vif_version-active ) = abap_true. CONTINUE. ENDIF. IF mi_vi->has_function( funcname = <ls_function>-function version = sews_c_vif_version-inactive ) = abap_true. li_function = mi_vi->get_function( funcname = <ls_function>-function version = sews_c_vif_version-inactive ). ELSE. li_function = mi_vi->create_function( funcname = <ls_function>-function mapped_name = <ls_function>-mappedname ). ENDIF. li_function->set_is_exposed( <ls_function>-is_exposed ). LOOP AT is_webi-pvepparameter ASSIGNING <ls_parameter> WHERE function = <ls_function>-function. li_parameter = handle_single_parameter( iv_name = <ls_parameter>-vepparam ii_function = li_function iv_parameter_type = <ls_parameter>-vepparamtype ). li_parameter->set_name_mapped_to( <ls_parameter>-mappedname ). li_parameter->set_is_exposed( <ls_parameter>-is_exposed ). li_parameter->set_is_optional( <ls_parameter>-is_optional ). li_parameter->set_default_value( <ls_parameter>-default_value ). li_parameter->set_initial( <ls_parameter>-is_initial ). li_parameter->set_type( <ls_parameter>-typename ). ENDLOOP. LOOP AT is_webi-pvepfuncsoapext ASSIGNING <ls_soap> WHERE function = <ls_function>-function. IF li_function->has_soap_extension_function( 'I' ) = abap_true. li_function->delete_soap_extension_function( ). ENDIF. li_soap = li_function->create_soap_extension_function( ). li_soap->set_soap_request_name( <ls_soap>-requestname ). li_soap->set_soap_response_name( <ls_soap>-responsename ). li_soap->set_namespace( <ls_soap>-namespace ). ENDLOOP. LOOP AT is_webi-pvepfault ASSIGNING <ls_fault> WHERE function = <ls_function>-function. li_fault = li_function->create_fault( <ls_fault>-fault ). li_fault->set_name_mapped_to( <ls_fault>-mappedname ). li_fault->set_detail( <ls_fault>-detail ). ENDLOOP. ENDLOOP. ENDMETHOD. METHOD handle_single_parameter. CONSTANTS: BEGIN OF lc_parameter_type, import TYPE vepparamtype VALUE 'I', export TYPE vepparamtype VALUE 'O', END OF lc_parameter_type. CASE iv_parameter_type. WHEN lc_parameter_type-import. ri_parameter = ii_function->get_incoming_parameter( parameter_name = iv_name version = 'I' ). IF ri_parameter IS BOUND. ii_function->delete_incoming_parameter( ri_parameter ). ENDIF. ri_parameter = ii_function->create_incoming_parameter( iv_name ). WHEN lc_parameter_type-export. ri_parameter = ii_function->get_outgoing_parameter( parameter_name = iv_name version = 'I' ). IF ri_parameter IS BOUND. ii_function->delete_outgoing_parameter( parameter = ri_parameter ). ENDIF. ri_parameter = ii_function->create_outgoing_parameter( iv_name ). WHEN OTHERS. ASSERT 0 = 1. ENDCASE. ENDMETHOD. METHOD handle_soap. DATA: li_soap TYPE REF TO if_ws_md_soap_ext_virtinfc, ls_soap LIKE LINE OF is_webi-pvepvisoapext. READ TABLE is_webi-pvepvisoapext INDEX 1 INTO ls_soap. ASSERT sy-subrc = 0. IF mi_vi->has_soap_extension_virtinfc( sews_c_vif_version-active ) = abap_true. RETURN. ENDIF. IF mi_vi->has_soap_extension_virtinfc( sews_c_vif_version-inactive ) = abap_true. li_soap = mi_vi->get_soap_extension_virtinfc( sews_c_vif_version-inactive ). ELSE. li_soap = mi_vi->create_soap_extension_virtinfc( ls_soap-soap_appl_uri ). ENDIF. li_soap->set_namespace( ls_soap-namespace ). ENDMETHOD. METHOD handle_types. DATA: lv_index TYPE i, li_soap TYPE REF TO if_ws_md_soap_extension_type, li_struc TYPE REF TO if_ws_md_vif_struc_type, li_field TYPE REF TO if_ws_md_vif_field, li_table TYPE REF TO if_ws_md_vif_table_type, li_elem TYPE REF TO if_ws_md_vif_elem_type. FIELD-SYMBOLS: <ls_elem> LIKE LINE OF is_webi-pvepelemtype, <ls_table> LIKE LINE OF is_webi-pveptabletype, <ls_soap> LIKE LINE OF is_webi-pveptypesoapext, <ls_struc> LIKE LINE OF is_webi-pvepstrutype. LOOP AT is_webi-pvepelemtype ASSIGNING <ls_elem>. li_elem = mi_vi->create_type_as_elementary( <ls_elem>-typename ). li_elem->set_built_in_type( <ls_elem>-build_in_type ). li_elem->set_decimals( <ls_elem>-decimals ). li_elem->set_kind( <ls_elem>-kind ). li_elem->set_length( <ls_elem>-length ). li_elem->set_signed( <ls_elem>-signed ). li_elem->set_abaptype( <ls_elem>-abaptype ). IF li_elem->if_ws_md_vif_type~has_soap_extension_type( sews_c_vif_version-all ) = abap_false. READ TABLE is_webi-pveptypesoapext ASSIGNING <ls_soap> WITH KEY typename = <ls_elem>-typename. IF sy-subrc = 0. li_soap = li_elem->if_ws_md_vif_type~create_soap_extension_type( ). li_soap->set_namespace( <ls_soap>-namespace ). ENDIF. ENDIF. ENDLOOP. LOOP AT is_webi-pvepstrutype ASSIGNING <ls_struc>. lv_index = sy-tabix. li_struc = mi_vi->create_type_as_structure( <ls_struc>-typename ). IF li_struc->has_field( field_pos = <ls_struc>-fieldpos version = sews_c_vif_version-active ) = abap_true. CONTINUE. ENDIF. li_field = li_struc->create_field( field_name = <ls_struc>-fieldname fieldpos = <ls_struc>-fieldpos ). li_field->set_type( mi_vi->get_type( typename = <ls_struc>-typeref version = sews_c_vif_version-inactive ) ). IF lv_index = 1 AND li_struc->if_ws_md_vif_type~has_soap_extension_type( sews_c_vif_version-all ) = abap_false. READ TABLE is_webi-pveptypesoapext ASSIGNING <ls_soap> WITH KEY typename = <ls_struc>-typename. IF sy-subrc = 0. li_soap = li_struc->if_ws_md_vif_type~create_soap_extension_type( ). li_soap->set_namespace( <ls_soap>-namespace ). ENDIF. ENDIF. ENDLOOP. LOOP AT is_webi-pveptabletype ASSIGNING <ls_table>. li_table = mi_vi->create_type_as_table( <ls_table>-typename ). li_table->set_line_type( mi_vi->get_type( typename = <ls_table>-typeref version = sews_c_vif_version-inactive ) ). IF li_table->if_ws_md_vif_type~has_soap_extension_type( sews_c_vif_version-all ) = abap_false. READ TABLE is_webi-pveptypesoapext ASSIGNING <ls_soap> WITH KEY typename = <ls_table>-typename. IF sy-subrc = 0. li_soap = li_table->if_ws_md_vif_type~create_soap_extension_type( ). li_soap->set_namespace( <ls_soap>-namespace ). ENDIF. ENDIF. ENDLOOP. ENDMETHOD. METHOD zif_abapgit_object~changed_by. SELECT SINGLE changedby FROM vepheader INTO rv_user WHERE vepname = ms_item-obj_name AND version = 'A'. IF sy-subrc <> 0. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_name TYPE vepname, lo_vif TYPE REF TO cl_ws_md_vif_root. lv_name = ms_item-obj_name. CREATE OBJECT lo_vif. TRY. lo_vif->if_ws_md_vif_root~delete_virtual_interface( lv_name ). CATCH cx_ws_md_exception. zcx_abapgit_exception=>raise( 'error deleting WEBI' ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: ls_webi TYPE ty_webi, lv_name TYPE vepname, ls_header LIKE LINE OF ls_webi-pvepheader, lx_root TYPE REF TO cx_root, lv_exists TYPE abap_bool, li_root TYPE REF TO if_ws_md_vif_root, ls_endpoint LIKE LINE OF ls_webi-pvependpoint. io_xml->read( EXPORTING iv_name = 'WEBI' CHANGING cg_data = ls_webi ). lv_name = ms_item-obj_name. READ TABLE ls_webi-pvependpoint INDEX 1 INTO ls_endpoint. ASSERT sy-subrc = 0. IF ls_endpoint-auto_generated = abap_true. " handled by SPRX. RETURN. ENDIF. READ TABLE ls_webi-pvepheader INDEX 1 INTO ls_header. ASSERT sy-subrc = 0. lv_exists = cl_ws_md_vif_root=>check_existence_by_vif_name( name = lv_name i_version = sews_c_vif_version-all ). li_root = cl_ws_md_factory=>get_vif_root( ). TRY. IF lv_exists = abap_false. mi_vi = li_root->create_virtual_interface( name = lv_name nameext = ls_header-vepnameext ). ELSE. mi_vi = li_root->get_virtual_interface( lv_name ). mi_vi->if_ws_md_lockable_object~lock( ). ENDIF. mi_vi->set_short_text( ls_webi-veptext ). handle_endpoint( ls_webi ). handle_types( ls_webi ). handle_function( ls_webi ). handle_soap( ls_webi ). tadir_insert( iv_package ). mi_vi->if_ws_md_lockable_object~save( ). mi_vi->if_ws_md_lockable_object~unlock( ). CATCH cx_ws_md_exception INTO lx_root. TRY. mi_vi->if_ws_md_lockable_object~unlock( ). CATCH cx_ws_md_exception ##NO_HANDLER. ENDTRY. zcx_abapgit_exception=>raise_with_text( lx_root ). ENDTRY. zcl_abapgit_objects_activation=>add_item( ms_item ). zcl_abapgit_sotr_handler=>create_sotr( iv_package = iv_package io_xml = io_xml ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_name TYPE vepname. lv_name = ms_item-obj_name. rv_bool = cl_ws_md_vif_root=>check_existence_by_vif_name( name = lv_name i_version = sews_c_vif_version-all ). ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = abap_false. ENDMETHOD. METHOD zif_abapgit_object~jump. " Covered by ZCL_ABAPGIT_OBJECTS=>JUMP ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: ls_webi TYPE ty_webi, lx_error TYPE REF TO cx_ws_md_exception, lt_modilog TYPE STANDARD TABLE OF smodilog WITH DEFAULT KEY, li_vi TYPE REF TO if_ws_md_vif, lv_name TYPE vepname. FIELD-SYMBOLS: <ls_vepheader> LIKE LINE OF ls_webi-pvepheader, <ls_vependpoint> LIKE LINE OF ls_webi-pvependpoint, <ls_wsheader> TYPE wsheader. CALL FUNCTION 'WEBI_GET_OBJECT' EXPORTING webiname = ms_item-obj_name TABLES psmodilog = lt_modilog pvepheader = ls_webi-pvepheader pvepfunction = ls_webi-pvepfunction pvepfault = ls_webi-pvepfault pvepparameter = ls_webi-pvepparameter pveptype = ls_webi-pveptype pvepelemtype = ls_webi-pvepelemtype pveptabletype = ls_webi-pveptabletype pvepstrutype = ls_webi-pvepstrutype pveptypesoapext = ls_webi-pveptypesoapext pvepeletypsoap = ls_webi-pvepeletypsoap pveptabtypsoap = ls_webi-pveptabtypsoap pvepfuncsoapext = ls_webi-pvepfuncsoapext pvepfieldref = ls_webi-pvepfieldref pvependpoint = ls_webi-pvependpoint pvepvisoapext = ls_webi-pvepvisoapext pvepparasoapext = ls_webi-pvepparasoapext pwsheader = ls_webi-pwsheader pwssoapprop = ls_webi-pwssoapprop EXCEPTIONS version_not_found = 1 webi_not_exist = 2 OTHERS = 3. IF sy-subrc = 1. " no active version RETURN. ELSEIF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. sort( CHANGING cs_webi = ls_webi ). lv_name = ms_item-obj_name. TRY. li_vi = cl_ws_md_factory=>get_vif_root( )->get_virtual_interface( lv_name ). ls_webi-veptext = li_vi->get_short_text( sews_c_vif_version-active ). CATCH cx_ws_md_exception INTO lx_error. zcx_abapgit_exception=>raise_with_text( lx_error ). ENDTRY. LOOP AT ls_webi-pvepheader ASSIGNING <ls_vepheader>. CLEAR <ls_vepheader>-author. CLEAR <ls_vepheader>-createdon. CLEAR <ls_vepheader>-changedby. CLEAR <ls_vepheader>-changedon. CLEAR <ls_vepheader>-ctime. CLEAR <ls_vepheader>-text_id. CLEAR <ls_vepheader>-utime. CLEAR <ls_vepheader>-wsint_version. ENDLOOP. LOOP AT ls_webi-pvependpoint ASSIGNING <ls_vependpoint>. CLEAR <ls_vependpoint>-clustd. ENDLOOP. LOOP AT ls_webi-pwsheader ASSIGNING <ls_wsheader>. CLEAR: <ls_wsheader>-author, <ls_wsheader>-createdon, <ls_wsheader>-changedby, <ls_wsheader>-changedon, <ls_wsheader>-ctime, <ls_wsheader>-utime. ENDLOOP. io_xml->add( iv_name = 'WEBI' ig_data = ls_webi ). zcl_abapgit_sotr_handler=>read_sotr( iv_pgmid = 'R3TR' iv_object = ms_item-obj_type iv_obj_name = ms_item-obj_name io_xml = io_xml ). ENDMETHOD. METHOD sort. SORT cs_webi-pvepheader BY vepname version. SORT cs_webi-pvepfunction BY vepname version function. SORT cs_webi-pvepfault BY vepname version function fault. SORT cs_webi-pvepparameter BY vepname version function vepparam vepparamtype. SORT cs_webi-pveptype BY vepname version typename. SORT cs_webi-pvepelemtype BY vepname version typename. SORT cs_webi-pveptabletype BY vepname version typename. SORT cs_webi-pvepstrutype BY vepname version typename fieldpos. SORT cs_webi-pveptypesoapext BY vepname version typename. SORT cs_webi-pvepeletypsoap BY vepname version typename assign_type assign_data1 assign_data2. SORT cs_webi-pveptabtypsoap BY vepname version typename. SORT cs_webi-pvepfuncsoapext BY vepname version function. SORT cs_webi-pvepfieldref BY vepname version function vepparam vepparamtype strucid fieldname. SORT cs_webi-pvependpoint BY relid vepname version sortfield. SORT cs_webi-pvepvisoapext BY vepname version. SORT cs_webi-pvepparasoapext BY vepname version function vepparam vepparamtype. SORT cs_webi-pwsheader BY wsname version. SORT cs_webi-pwssoapprop BY wsname version feature soapapp funcref propnum. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 732, 8482, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 732, 8482, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1569, 457, 2302, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1569, 457, 2302, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 303, 79, 25677, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 1569, 79, 25677, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 303, 79, 8818, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 1569, 79, 8818, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 303, 79, 69, 1721, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 1569, 79, 69, 1721, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 303, 381, 41158, 2357, 220, 220, 41876, 49053, 9795, 43679, 3963, 1569, 381, 41158, 2357, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 303, 457, 2981, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 1569, 457, 2981, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 303, 431, 10671, 4906, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 1569, 431, 10671, 4906, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 303, 457, 540, 4906, 220, 220, 41876, 49053, 9795, 43679, 3963, 1569, 457, 540, 4906, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 303, 79, 2536, 315, 2981, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 1569, 79, 2536, 315, 2981, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 303, 457, 9497, 78, 1758, 742, 41876, 49053, 9795, 43679, 3963, 1569, 457, 9497, 78, 1758, 742, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 303, 431, 293, 28004, 568, 499, 220, 41876, 49053, 9795, 43679, 3963, 1569, 431, 293, 28004, 568, 499, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 303, 457, 397, 28004, 568, 499, 220, 41876, 49053, 9795, 43679, 3963, 1569, 457, 397, 28004, 568, 499, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 303, 79, 20786, 568, 1758, 742, 41876, 49053, 9795, 43679, 3963, 1569, 79, 20786, 568, 1758, 742, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 303, 79, 3245, 5420, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 1569, 79, 3245, 5420, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 303, 37038, 4122, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 1569, 37038, 4122, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 303, 79, 4703, 78, 1758, 742, 220, 220, 41876, 49053, 9795, 43679, 3963, 1569, 79, 4703, 78, 1758, 742, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 303, 381, 283, 292, 78, 1758, 742, 41876, 49053, 9795, 43679, 3963, 1569, 381, 283, 292, 78, 1758, 742, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 18504, 25677, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 266, 82, 25677, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 18504, 568, 1324, 1773, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 266, 82, 568, 1324, 1773, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 732, 8482, 13, 628, 220, 220, 220, 42865, 25, 21504, 62, 8903, 41876, 4526, 37, 5390, 611, 62, 18504, 62, 9132, 62, 85, 361, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 5412, 62, 437, 4122, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 318, 62, 732, 8482, 41876, 1259, 62, 732, 8482, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 18504, 62, 9132, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 5412, 62, 19199, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 318, 62, 732, 8482, 41876, 1259, 62, 732, 8482, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 18504, 62, 9132, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 5412, 62, 568, 499, 198,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_ci_latest_build DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_abapgit_ci_test . METHODS constructor RAISING zcx_abapgit_exception . PROTECTED SECTION. PRIVATE SECTION. CONSTANTS: co_report_name TYPE char30 VALUE 'Z___ABAPGIT_LATEST_BUILD', co_package TYPE devclass VALUE '$___ABAPGIT_LATEST_BUILD'. DATA: mv_latest_build TYPE string, mt_latest_build TYPE string_table, mi_package TYPE REF TO zif_abapgit_sap_package. METHODS: fetch_latest_build RAISING zcx_abapgit_exception, install RAISING zcx_abapgit_exception, check RAISING zcx_abapgit_exception, delete RAISING zcx_abapgit_exception, delete_tadir_entry RAISING zcx_abapgit_exception, post_check RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_ci_latest_build IMPLEMENTATION. METHOD check. DATA(lt_list) = zcl_abapgit_factory=>get_code_inspector( co_package )->run( 'SYNTAX_CHECK' ). ASSIGN lt_list[ kind = 'E' ] TO FIELD-SYMBOL(<ls_error>). IF sy-subrc = 0. zcx_abapgit_exception=>raise( |Latest build - Syntax Error: { <ls_error>-text }, line { <ls_error>-line } | ). ENDIF. ENDMETHOD. METHOD constructor. mi_package = zcl_abapgit_factory=>get_sap_package( co_package ). ENDMETHOD. METHOD delete. DELETE REPORT co_report_name. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Latest build: Deletion failed. Subrc = { sy-subrc }| ). ENDIF. delete_tadir_entry( ). DATA(lo_package) = NEW zcl_abapgit_object_devc( is_item = VALUE #( obj_type = 'DEVC' obj_name = co_package devclass = co_package ) iv_language = sy-langu ). lo_package->zif_abapgit_object~delete( co_package ). ENDMETHOD. METHOD delete_tadir_entry. CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING wi_delete_tadir_entry = 'X' wi_test_modus = ' ' wi_tadir_pgmid = 'R3TR' wi_tadir_object = 'PROG' wi_tadir_obj_name = CONV sobj_name( co_report_name ) EXCEPTIONS tadir_entry_not_existing = 1 tadir_entry_ill_type = 2 no_systemname = 3 no_systemtype = 4 original_system_conflict = 5 object_reserved_for_devclass = 6 object_exists_global = 7 object_exists_local = 8 object_is_distributed = 9 obj_specification_not_unique = 10 no_authorization_to_delete = 11 devclass_not_existing = 12 simultanious_set_remove_repair = 13 order_missing = 14 no_modification_of_head_syst = 15 pgmid_object_not_allowed = 16 masterlanguage_not_specified = 17 devclass_not_specified = 18 specify_owner_unique = 19 loc_priv_objs_no_repair = 20 gtadir_not_reached = 21 object_locked_for_order = 22 change_of_class_not_allowed = 23 no_change_from_sap_to_tmp = 24 OTHERS = 25. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Latest build: Deletion failed. TR_TADIR_INTERFACE Subrc = { sy-subrc }| ). ENDIF. ENDMETHOD. METHOD fetch_latest_build. DATA: li_http_client TYPE REF TO if_http_client. cl_http_client=>create_by_url( EXPORTING url = 'https://raw.githubusercontent.com' ssl_id = 'ANONYM' IMPORTING client = li_http_client EXCEPTIONS argument_not_found = 1 plugin_not_active = 2 internal_error = 3 OTHERS = 4 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. DATA(lo_rest_client) = NEW cl_rest_http_client( li_http_client ). lo_rest_client->if_rest_client~create_request_entity( )->set_header_field( iv_name = '~request_uri' iv_value = |/abapGit/build/main/zabapgit.abap| ). lo_rest_client->if_rest_client~get( ). DATA(lo_response) = lo_rest_client->if_rest_client~get_response_entity( ). DATA(lv_status) = lo_rest_client->if_rest_client~get_status( ). IF lv_status <> cl_rest_status_code=>gc_success_ok. zcx_abapgit_exception=>raise( |HTTP status code { lv_status } | && |from https://raw.githubusercontent.com/abapGit/build/main/zabapgit.abap | ). ENDIF. SPLIT lo_response->get_string_data( ) AT zif_abapgit_definitions=>c_newline INTO TABLE mt_latest_build. ENDMETHOD. METHOD install. IF mi_package->exists( ) = abap_false. mi_package->create( VALUE #( as4user = sy-uname devclass = co_package ctext = |abapGit latest build| ) ). ENDIF. INSERT REPORT co_report_name FROM mt_latest_build STATE 'A' PROGRAM TYPE '1'. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Latest build: Installation failed. Subrc = { sy-subrc }| ). ENDIF. CALL FUNCTION 'RS_CORR_INSERT' EXPORTING object = co_report_name object_class = 'ABAP' devclass = co_package master_language = sy-langu mode = 'INSERT' EXCEPTIONS cancelled = 1 permission_failure = 2 unknown_objectclass = 3 OTHERS = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Latest build: Installation failed. RS_CORR_INSERT Subrc = { sy-subrc }| ). ENDIF. ENDMETHOD. METHOD post_check. SELECT SINGLE FROM tadir FIELDS object, obj_name WHERE devclass = @co_package INTO @DATA(ls_object). IF sy-subrc = 0. zcx_abapgit_exception=>raise( |Latest build: Post check failed. | && |Left over object { ls_object-object } { ls_object-obj_name }| ). ENDIF. ENDMETHOD. METHOD zif_abapgit_ci_test~execute. fetch_latest_build( ). install( ). check( ). delete( ). post_check( ). ENDMETHOD. METHOD zif_abapgit_ci_test~get_description. rv_description = |Check latest abapGit build|. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 979, 62, 42861, 62, 11249, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 979, 62, 9288, 764, 628, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 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, 763, 62, 13116, 62, 3672, 41876, 1149, 1270, 26173, 8924, 705, 57, 17569, 6242, 2969, 38, 2043, 62, 43, 1404, 6465, 62, 19499, 26761, 3256, 198, 220, 220, 220, 220, 220, 763, 62, 26495, 220, 220, 220, 220, 41876, 1614, 4871, 26173, 8924, 705, 3, 17569, 6242, 2969, 38, 2043, 62, 43, 1404, 6465, 62, 19499, 26761, 4458, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 285, 85, 62, 42861, 62, 11249, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 45079, 62, 42861, 62, 11249, 41876, 4731, 62, 11487, 11, 198, 220, 220, 220, 220, 220, 21504, 62, 26495, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 82, 499, 62, 26495, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 21207, 62, 42861, 62, 11249, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 628, 220, 220, 220, 220, 220, 2721, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 628, 220, 220, 220, 220, 220, 2198, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 628, 220, 220, 220, 220, 220, 12233, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 628, 220, 220, 220, 220, 220, 12233, 62, 83, 324, 343, 62, 13000, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 628, 220, 220, 220, 220, 220, 1281, 62, 9122, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 979, 62, 42861, 62, 11249, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 2198, 13, 628, 220, 220, 220, 42865, 7, 2528, 62, 4868, 8, 796, 1976, 565, 62, 397, 499, 18300, 62, 69, 9548, 14804, 1136, 62, 8189, 62, 1040, 806, 273, 7, 763, 62, 26495, 1267, 3784, 5143, 7, 705, 23060, 45, 5603, 55, 62, 50084, 6, 6739, 628, 220, 220, 220, 24994, 16284, 300, 83, 62, 4868, 58, 1611, 796, 705, 36, 6, 2361, 5390, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 7278, 62, 18224, 29, 737, 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, 930, 39478, 1382, 532, 26375, 897, 13047, 25, 1391, 1279, 7278, 62, 18224, 29, 12, 5239, 8964, 1627, 1391, 1279, 7278, 62, 18224, 29, 12, 1370, 1782, 930, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 21504, 62, 26495, 796, 1976, 565, 62, 397, 499, 18300, 62, 69, 9548, 14804, 1136, 62, 82, 499, 62, 26495, 7, 763, 62, 26495, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 12233, 13, 628, 220, 220, 220, 5550, 2538, 9328, 39099, 763, 62, 13116, 62, 3672, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 930, 39478, 1382, 25, 1024, 1616, 295, 4054, 13, 3834, 6015, 796, 1391, 827, 12, 7266, 6015, 1782, 91, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 12233, 62, 83, 324, 343, 62, 13000, 7, 6739, 628, 220, 220, 220, 42865, 7, 5439, 62, 26495, 8, 796, 12682, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 7959, 66, 7, 318, 62, 9186, 796, 26173, 8924, 1303, 7, 26181, 62, 4906, 796, 705, 7206, 15922, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26181, 62, 3672, 796, 763, 62, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1614, 4871, 796, 763, 62, 26495, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1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2cc_where_used_abstract DEFINITION PUBLIC ABSTRACT CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS class_constructor. INTERFACES zif_i_a2cc_where_used. METHODS constructor IMPORTING objecttype TYPE zif_i_a2cc_where_used_provider=>objecttype. PROTECTED SECTION. DATA objecttype TYPE zif_i_a2cc_where_used_provider=>objecttype. METHODS get_where_used_list_from_cross IMPORTING object TYPE string RETURNING VALUE(result) TYPE REF TO zif_i_a2cc_where_used~object_list. PRIVATE SECTION. TYPES: BEGIN OF internal_object, type TYPE euobj-type, id TYPE euobj-id, END OF internal_object. CLASS-DATA internal_objects TYPE SORTED TABLE OF internal_object WITH NON-UNIQUE KEY type. METHODS get_enclosing_object IMPORTING found_object TYPE REF TO rsfindlst EXPORTING enclosing_object TYPE rsobject enclosing_type TYPE trobjtype . METHODS get_parent_object_type IMPORTING found_object TYPE REF TO rsfindlst RETURNING VALUE(result) TYPE seu_obj. ENDCLASS. CLASS zcl_i_a2cc_where_used_abstract IMPLEMENTATION. METHOD class_constructor. SELECT * FROM euobj INTO CORRESPONDING FIELDS OF TABLE internal_objects WHERE internal = abap_false. ENDMETHOD. METHOD constructor. me->objecttype = objecttype. ENDMETHOD. METHOD get_enclosing_object. DATA group TYPE rs38l_area. DATA include TYPE progname. include = found_object->object. CALL FUNCTION 'FUNCTION_INCLUDE_SPLIT' IMPORTING group = group CHANGING include = include EXCEPTIONS OTHERS = 6. IF sy-subrc = 0 AND group IS NOT INITIAL. enclosing_object = |SAPL{ group }|. enclosing_type = 'FUGR'. ELSE. enclosing_type = 'PROG'. SELECT SINGLE master FROM d010inc INTO enclosing_object WHERE include = include. IF sy-subrc <> 0. enclosing_object = include. ENDIF. ENDIF. ENDMETHOD. METHOD get_where_used_list_from_cross. DATA: findstrings TYPE TABLE OF rsfind, found_objects TYPE STANDARD TABLE OF rsfindlst, scope TYPE STANDARD TABLE OF seu_obj, find_obj_class TYPE euobj-id. DATA enclosing_type TYPE trobjtype. DATA enclosing_object TYPE rsobject. findstrings = VALUE #( ( CONV #( object ) ) ). find_obj_class = me->objecttype. CALL FUNCTION 'RS_EU_CROSSREF' EXPORTING i_find_obj_cls = find_obj_class no_dialog = abap_true TABLES i_findstrings = findstrings o_founds = found_objects i_scope_object_cls = scope EXCEPTIONS not_executed = 1 not_found = 2 illegal_object = 3 no_cross_for_this_object = 4 batch = 5 batchjob_error = 6 wrong_type = 7 object_not_exist = 8 OTHERS = 9. IF sy-subrc IS INITIAL. result = NEW #( ). LOOP AT found_objects REFERENCE INTO DATA(found_object). IF found_object->encl_objec IS NOT INITIAL. enclosing_object = found_object->encl_objec. enclosing_type = get_parent_object_type( found_object ). ELSE. get_enclosing_object( EXPORTING found_object = found_object IMPORTING enclosing_object = enclosing_object enclosing_type = enclosing_type ). ENDIF. IF line_exists( result->*[ depending_object = enclosing_object depending_type = enclosing_type(4) ] ). ASSIGN result->*[ depending_object = enclosing_object ] TO FIELD-SYMBOL(<reference>). <reference>-number_of_usages = <reference>-number_of_usages + 1. ELSE. INSERT VALUE #( depending_object = enclosing_object depending_type = enclosing_type(4) number_of_usages = 1 ) INTO TABLE result->*. ENDIF. . ENDLOOP. ENDIF. ENDMETHOD. METHOD get_parent_object_type. result = VALUE seu_obj( internal_objects[ type = found_object->object_cls ]-id OPTIONAL ). result = COND #( WHEN result(4) = 'PROG' AND found_object->*(4) = 'SAPL' THEN 'FUGR' WHEN result = 'METH' THEN 'CLAS' ELSE result(4) ). ENDMETHOD. METHOD zif_i_a2cc_where_used~get_cross_references. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 72, 62, 64, 17, 535, 62, 3003, 62, 1484, 62, 397, 8709, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 9564, 18601, 10659, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 1398, 62, 41571, 273, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 72, 62, 64, 17, 535, 62, 3003, 62, 1484, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 2134, 4906, 41876, 1976, 361, 62, 72, 62, 64, 17, 535, 62, 3003, 62, 1484, 62, 15234, 1304, 14804, 15252, 4906, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 42865, 2134, 4906, 41876, 1976, 361, 62, 72, 62, 64, 17, 535, 62, 3003, 62, 1484, 62, 15234, 1304, 14804, 15252, 4906, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 3003, 62, 1484, 62, 4868, 62, 6738, 62, 19692, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 72, 62, 64, 17, 535, 62, 3003, 62, 1484, 93, 15252, 62, 4868, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 5387, 62, 15252, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 41876, 304, 84, 26801, 12, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 220, 220, 41876, 304, 84, 26801, 12, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 5387, 62, 15252, 13, 628, 220, 220, 220, 42715, 12, 26947, 5387, 62, 48205, 41876, 311, 9863, 1961, 43679, 3963, 5387, 62, 15252, 13315, 44521, 12, 4944, 33866, 8924, 35374, 2099, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 268, 565, 2752, 62, 15252, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1043, 62, 15252, 220, 220, 220, 220, 41876, 4526, 37, 5390, 44608, 19796, 75, 301, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 13507, 2752, 62, 15252, 41876, 374, 568, 65, 752, 198, 220, 220, 220, 220, 220, 220, 220, 13507, 2752, 62, 4906, 220, 220, 41876, 4161, 50007, 4906, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 8000, 62, 15252, 62, 4906, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1043, 62, 15252, 220, 41876, 4526, 37, 5390, 44608, 19796, 75, 301, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 384, 84, 62, 26801, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 72, 62, 64, 17, 535, 62, 3003, 62, 1484, 62, 397, 8709, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 1398, 62, 41571, 273, 13, 198, 220, 220, 220, 33493, 1635, 16034, 304, 84, 26801, 39319, 23929, 19535, 47, 18672, 2751, 18930, 3698, 5258, 3963, 43679, 5387, 62, 48205, 33411, 5387, 796, 450, 499, 62, 9562, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 502, 3784, 15252, 4906, 796, 2134, 4906, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 268, 565, 2752, 62, 15252, 13, 198, 220, 220, 220, 42865, 1448, 220, 41876, 44608, 2548, 75, 62, 20337, 13, 198, 220, 220, 220, 42865, 2291, 220, 41876, 1172, 3672, 13, 628, 220, 220, 220, 2291, 796, 1043, 62, 15252, 3784, 15252, 13, 198, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 42296, 4177, 2849, 62, 1268, 5097, 52, 7206, 62, 4303, 43, 2043, 6, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1448, 220, 220, 796, 1448, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2291, 796, 2291, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 796, 718, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 657, 5357, 1448, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 13507, 2752, 62, 15252, 796, 930, 50, 2969, 43, 90, 1448, 1782, 91, 13, 198, 220, 220, 220, 220, 220, 13507, 2752, 62, 4906, 796, 705, 37, 7340, 49, 4458, 198, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 13507, 2752, 62, 4906, 796, 705, 4805, 7730, 4458, 198, 220, 220, 220, 220, 220, 33493, 311, 2751, 2538, 4958, 16034, 288, 20943, 1939, 39319, 13507, 2752, 62, 15252, 33411, 2291, 796, 2291, 13, 198, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 13507, 2752, 62, 15252, 796, 2291, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 3003, 62, 1484, 62, 4868, 62, 6738, 62, 19692, 13, 198, 220, 220, 220, 42865, 25, 1064, 37336, 220, 220, 220, 41876, 43679, 3963, 44608, 19796, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1043, 62, 48205, 220, 41876, 49053, 9795, 43679, 3963, 44608, 19796, 75, 301, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8354, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 384, 84, 62, 26801, 11, 198, 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 ]
class ZCL_ABAPGIT_GUI_PAGE_DIFF definition public final create public INHERITING FROM zcl_abapgit_gui_page. PUBLIC SECTION. CONSTANTS: BEGIN OF c_fstate, local TYPE char1 VALUE 'L', remote TYPE char1 VALUE 'R', both TYPE char1 VALUE 'B', END OF c_fstate. TYPES: BEGIN OF ty_file_diff, path TYPE string, filename TYPE string, lstate TYPE char1, rstate TYPE char1, fstate TYPE char1, " FILE state - Abstraction for shorter ifs o_diff TYPE REF TO zcl_abapgit_diff, changed_by TYPE xubname, type TYPE string, END OF ty_file_diff, tt_file_diff TYPE STANDARD TABLE OF ty_file_diff. METHODS: constructor IMPORTING iv_key TYPE zif_abapgit_persistence=>ty_repo-key is_file TYPE zif_abapgit_definitions=>ty_file OPTIONAL is_object TYPE zif_abapgit_definitions=>ty_item OPTIONAL iv_supress_stage TYPE abap_bool DEFAULT abap_false RAISING zcx_abapgit_exception, zif_abapgit_gui_page~on_event REDEFINITION. PROTECTED SECTION. METHODS: render_content REDEFINITION, scripts REDEFINITION. PRIVATE SECTION. CONSTANTS: BEGIN OF c_actions, toggle_unified TYPE string VALUE 'toggle_unified', END OF c_actions. DATA: mt_diff_files TYPE tt_file_diff, mt_delayed_lines TYPE zif_abapgit_definitions=>ty_diffs_tt, mv_unified TYPE abap_bool VALUE abap_true, mv_repo_key TYPE zif_abapgit_persistence=>ty_repo-key, mv_seed TYPE string. " Unique page id to bind JS sessionStorage METHODS render_diff IMPORTING is_diff TYPE ty_file_diff RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html. METHODS render_diff_head IMPORTING is_diff TYPE ty_file_diff RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html. METHODS render_table_head RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html. METHODS render_lines IMPORTING is_diff TYPE ty_file_diff RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html. METHODS render_beacon IMPORTING is_diff_line TYPE zif_abapgit_definitions=>ty_diff is_diff TYPE ty_file_diff RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html. METHODS render_line_split IMPORTING is_diff_line TYPE zif_abapgit_definitions=>ty_diff iv_fstate TYPE char1 RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html. METHODS render_line_unified IMPORTING is_diff_line TYPE zif_abapgit_definitions=>ty_diff OPTIONAL RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html. METHODS append_diff IMPORTING it_remote TYPE zif_abapgit_definitions=>ty_files_tt it_local TYPE zif_abapgit_definitions=>ty_files_item_tt is_status TYPE zif_abapgit_definitions=>ty_result RAISING zcx_abapgit_exception. METHODS build_menu IMPORTING iv_supress_stage TYPE abap_bool RETURNING VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar. METHODS is_binary IMPORTING iv_d1 TYPE xstring iv_d2 TYPE xstring RETURNING VALUE(rv_yes) TYPE abap_bool. ENDCLASS. CLASS ZCL_ABAPGIT_GUI_PAGE_DIFF IMPLEMENTATION. METHOD append_diff. DATA: lv_offs TYPE i, ls_r_dummy LIKE LINE OF it_remote ##NEEDED, ls_l_dummy LIKE LINE OF it_local ##NEEDED. FIELD-SYMBOLS: <ls_remote> LIKE LINE OF it_remote, <ls_local> LIKE LINE OF it_local, <ls_diff> LIKE LINE OF mt_diff_files. READ TABLE it_remote ASSIGNING <ls_remote> WITH KEY filename = is_status-filename path = is_status-path. IF sy-subrc <> 0. ASSIGN ls_r_dummy TO <ls_remote>. ENDIF. READ TABLE it_local ASSIGNING <ls_local> WITH KEY file-filename = is_status-filename file-path = is_status-path. IF sy-subrc <> 0. ASSIGN ls_l_dummy TO <ls_local>. ENDIF. IF <ls_local> IS INITIAL AND <ls_remote> IS INITIAL. zcx_abapgit_exception=>raise( |DIFF: file not found { is_status-filename }| ). ENDIF. APPEND INITIAL LINE TO mt_diff_files ASSIGNING <ls_diff>. <ls_diff>-path = is_status-path. <ls_diff>-filename = is_status-filename. <ls_diff>-lstate = is_status-lstate. <ls_diff>-rstate = is_status-rstate. IF <ls_diff>-lstate IS NOT INITIAL AND <ls_diff>-rstate IS NOT INITIAL. <ls_diff>-fstate = c_fstate-both. ELSEIF <ls_diff>-lstate IS NOT INITIAL. <ls_diff>-fstate = c_fstate-local. ELSE. "rstate IS NOT INITIAL, lstate = empty. <ls_diff>-fstate = c_fstate-remote. ENDIF. " Changed by IF <ls_local>-item-obj_type IS NOT INITIAL. <ls_diff>-changed_by = to_lower( zcl_abapgit_objects=>changed_by( <ls_local>-item ) ). ENDIF. " Extension IF <ls_local>-file-filename IS NOT INITIAL. <ls_diff>-type = reverse( <ls_local>-file-filename ). ELSE. <ls_diff>-type = reverse( <ls_remote>-filename ). ENDIF. FIND FIRST OCCURRENCE OF '.' IN <ls_diff>-type MATCH OFFSET lv_offs. <ls_diff>-type = reverse( substring( val = <ls_diff>-type len = lv_offs ) ). IF <ls_diff>-type <> 'xml' AND <ls_diff>-type <> 'abap'. <ls_diff>-type = 'other'. ENDIF. IF <ls_diff>-type = 'other' AND is_binary( iv_d1 = <ls_remote>-data iv_d2 = <ls_local>-file-data ) = abap_true. <ls_diff>-type = 'binary'. ENDIF. " Diff data IF <ls_diff>-type <> 'binary'. IF <ls_diff>-fstate = c_fstate-remote. " Remote file leading changes CREATE OBJECT <ls_diff>-o_diff EXPORTING iv_new = <ls_remote>-data iv_old = <ls_local>-file-data. ELSE. " Local leading changes or both were modified CREATE OBJECT <ls_diff>-o_diff EXPORTING iv_new = <ls_local>-file-data iv_old = <ls_remote>-data. ENDIF. ENDIF. ENDMETHOD. "append_diff METHOD build_menu. DATA: lo_sub TYPE REF TO zcl_abapgit_html_toolbar, lt_types TYPE string_table, lt_users TYPE string_table. FIELD-SYMBOLS: <ls_diff> LIKE LINE OF mt_diff_files, <lv_i> TYPE string. " Get unique LOOP AT mt_diff_files ASSIGNING <ls_diff>. APPEND <ls_diff>-type TO lt_types. APPEND <ls_diff>-changed_by TO lt_users. ENDLOOP. SORT: lt_types, lt_users. DELETE ADJACENT DUPLICATES FROM: lt_types, lt_users. CREATE OBJECT ro_menu. IF iv_supress_stage = abap_false. ro_menu->add( iv_txt = 'Stage' iv_act = |{ zif_abapgit_definitions=>gc_action-go_stage }?{ mv_repo_key }| iv_id = 'stage-button' iv_opt = zif_abapgit_definitions=>gc_html_opt-strong ). ENDIF. IF lines( lt_types ) > 1 OR lines( lt_users ) > 1. CREATE OBJECT lo_sub EXPORTING iv_id = 'diff-filter'. " File types IF lines( lt_types ) > 1. lo_sub->add( iv_txt = 'TYPE' iv_typ = zif_abapgit_definitions=>gc_action_type-separator ). LOOP AT lt_types ASSIGNING <lv_i>. lo_sub->add( iv_txt = <lv_i> iv_typ = zif_abapgit_definitions=>gc_action_type-onclick iv_aux = 'type' iv_chk = abap_true ). ENDLOOP. ENDIF. " Changed by IF lines( lt_users ) > 1. lo_sub->add( iv_txt = 'CHANGED BY' iv_typ = zif_abapgit_definitions=>gc_action_type-separator ). LOOP AT lt_users ASSIGNING <lv_i>. lo_sub->add( iv_txt = <lv_i> iv_typ = zif_abapgit_definitions=>gc_action_type-onclick iv_aux = 'changed-by' iv_chk = abap_true ). ENDLOOP. ENDIF. ro_menu->add( iv_txt = 'Filter' io_sub = lo_sub ) ##NO_TEXT. ENDIF. ro_menu->add( iv_txt = 'Split/Unified view' iv_act = c_actions-toggle_unified ) ##NO_TEXT. ENDMETHOD. " build_menu. METHOD constructor. DATA: lt_remote TYPE zif_abapgit_definitions=>ty_files_tt, lt_local TYPE zif_abapgit_definitions=>ty_files_item_tt, lt_status TYPE zif_abapgit_definitions=>ty_results_tt, lo_repo TYPE REF TO zcl_abapgit_repo_online, lv_ts TYPE timestamp. FIELD-SYMBOLS: <ls_status> LIKE LINE OF lt_status. super->constructor( ). ms_control-page_title = 'DIFF'. mv_unified = zcl_abapgit_persistence_user=>get_instance( )->get_diff_unified( ). mv_repo_key = iv_key. GET TIME STAMP FIELD lv_ts. mv_seed = |diff{ lv_ts }|. " Generate based on time ASSERT is_file IS INITIAL OR is_object IS INITIAL. " just one passed lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ). lt_remote = lo_repo->get_files_remote( ). lt_local = lo_repo->get_files_local( ). lt_status = lo_repo->status( ). IF is_file IS NOT INITIAL. " Diff for one file READ TABLE lt_status ASSIGNING <ls_status> WITH KEY path = is_file-path filename = is_file-filename. append_diff( it_remote = lt_remote it_local = lt_local is_status = <ls_status> ). ELSEIF is_object IS NOT INITIAL. " Diff for whole object LOOP AT lt_status ASSIGNING <ls_status> WHERE obj_type = is_object-obj_type AND obj_name = is_object-obj_name AND match IS INITIAL. append_diff( it_remote = lt_remote it_local = lt_local is_status = <ls_status> ). ENDLOOP. ELSE. " Diff for the whole repo LOOP AT lt_status ASSIGNING <ls_status> WHERE match IS INITIAL. append_diff( it_remote = lt_remote it_local = lt_local is_status = <ls_status> ). ENDLOOP. ENDIF. IF lines( mt_diff_files ) = 0. zcx_abapgit_exception=>raise( 'PAGE_DIFF ERROR: No diff files found' ). ENDIF. ms_control-page_menu = build_menu( iv_supress_stage ). ENDMETHOD. METHOD is_binary. DATA: lv_len TYPE i, lv_idx TYPE i, lv_x TYPE x. FIELD-SYMBOLS <lv_data> LIKE iv_d1. IF iv_d1 IS NOT INITIAL. " One of them might be new and so empty ASSIGN iv_d1 TO <lv_data>. ELSE. ASSIGN iv_d2 TO <lv_data>. ENDIF. lv_len = xstrlen( <lv_data> ). IF lv_len = 0. RETURN. ENDIF. IF lv_len > 100. lv_len = 100. ENDIF. " Simple char range test " stackoverflow.com/questions/277521/how-to-identify-the-file-content-as-ascii-or-binary DO lv_len TIMES. " I'm sure there is more efficient way ... lv_idx = sy-index - 1. lv_x = <lv_data>+lv_idx(1). IF NOT ( lv_x BETWEEN 9 AND 13 OR lv_x BETWEEN 32 AND 126 ). rv_yes = abap_true. EXIT. ENDIF. ENDDO. ENDMETHOD. " is_binary. METHOD render_beacon. DATA: lv_beacon TYPE string. CREATE OBJECT ro_html. IF is_diff_line-beacon > 0. READ TABLE is_diff-o_diff->mt_beacons INTO lv_beacon INDEX is_diff_line-beacon. ELSE. lv_beacon = '---'. ENDIF. ro_html->add( '<thead class="nav_line">' ). ro_html->add( '<tr>' ). IF mv_unified = abap_true. ro_html->add( '<th class="num"></th>' ). ro_html->add( '<th class="num"></th>' ). ro_html->add( |<th>@@ { is_diff_line-new_num } @@ { lv_beacon }</th>| ). ELSE. ro_html->add( '<th class="num"></th>' ). ro_html->add( |<th colspan="3">@@ { is_diff_line-new_num } @@ { lv_beacon }</th>| ). ENDIF. ro_html->add( '</tr>' ). ro_html->add( '</thead>' ). ENDMETHOD. " render_beacon. METHOD render_content. DATA: ls_diff_file LIKE LINE OF mt_diff_files, lo_progress TYPE REF TO zcl_abapgit_progress. CREATE OBJECT ro_html. CREATE OBJECT lo_progress EXPORTING iv_total = lines( mt_diff_files ). ro_html->add( |<div id="diff-list" data-repo-key="{ mv_repo_key }">| ). ro_html->add( zcl_abapgit_gui_chunk_lib=>render_js_error_banner( ) ). LOOP AT mt_diff_files INTO ls_diff_file. lo_progress->show( iv_current = sy-tabix iv_text = |Render Diff - { ls_diff_file-filename }| ). ro_html->add( render_diff( ls_diff_file ) ). ENDLOOP. ro_html->add( '</div>' ). ENDMETHOD. "render_content METHOD render_diff. CREATE OBJECT ro_html. ro_html->add( |<div class="diff" data-type="{ is_diff-type }" data-changed-by="{ is_diff-changed_by }" data-file="{ is_diff-path && is_diff-filename }">| ). "#EC NOTEXT ro_html->add( render_diff_head( is_diff ) ). " Content IF is_diff-type <> 'binary'. ro_html->add( '<div class="diff_content">' ). "#EC NOTEXT ro_html->add( '<table class="diff_tab syntax-hl">' ). "#EC NOTEXT ro_html->add( render_table_head( ) ). ro_html->add( render_lines( is_diff ) ). ro_html->add( '</table>' ). "#EC NOTEXT ro_html->add( '</div>' ). "#EC NOTEXT ELSE. ro_html->add( '<div class="diff_content paddings center grey">' ). "#EC NOTEXT ro_html->add( 'The content seems to be binary.' ). "#EC NOTEXT ro_html->add( 'Cannot display as diff.' ). "#EC NOTEXT ro_html->add( '</div>' ). "#EC NOTEXT ENDIF. ro_html->add( '</div>' ). "#EC NOTEXT ENDMETHOD. " render_diff METHOD render_diff_head. DATA: ls_stats TYPE zif_abapgit_definitions=>ty_count. CREATE OBJECT ro_html. ro_html->add( '<div class="diff_head">' ). "#EC NOTEXT IF is_diff-type <> 'binary'. ls_stats = is_diff-o_diff->stats( ). IF is_diff-fstate = c_fstate-both. " Merge stats into 'update' if both were changed ls_stats-update = ls_stats-update + ls_stats-insert + ls_stats-delete. CLEAR: ls_stats-insert, ls_stats-delete. ENDIF. ro_html->add( |<span class="diff_banner diff_ins">+ { ls_stats-insert }</span>| ). ro_html->add( |<span class="diff_banner diff_del">- { ls_stats-delete }</span>| ). ro_html->add( |<span class="diff_banner diff_upd">~ { ls_stats-update }</span>| ). ENDIF. ro_html->add( |<span class="diff_name">{ is_diff-filename }</span>| ). "#EC NOTEXT ro_html->add( zcl_abapgit_gui_chunk_lib=>render_item_state( iv1 = is_diff-lstate iv2 = is_diff-rstate ) ). IF is_diff-fstate = c_fstate-both AND mv_unified = abap_true. ro_html->add( '<span class="attention pad-sides">Attention: Unified mode' && ' highlighting for MM assumes local file is newer ! </span>' ). "#EC NOTEXT ENDIF. ro_html->add( |<span class="diff_changed_by">last change by: <span class="user">{ is_diff-changed_by }</span></span>| ). ro_html->add( '</div>' ). "#EC NOTEXT ENDMETHOD. METHOD render_lines. DATA: lo_highlighter TYPE REF TO zcl_abapgit_syntax_highlighter, lt_diffs TYPE zif_abapgit_definitions=>ty_diffs_tt, lv_insert_nav TYPE abap_bool. FIELD-SYMBOLS <ls_diff> LIKE LINE OF lt_diffs. lo_highlighter = zcl_abapgit_syntax_highlighter=>create( is_diff-filename ). CREATE OBJECT ro_html. lt_diffs = is_diff-o_diff->get( ). LOOP AT lt_diffs ASSIGNING <ls_diff>. IF <ls_diff>-short = abap_false. lv_insert_nav = abap_true. CONTINUE. ENDIF. IF lv_insert_nav = abap_true. " Insert separator line with navigation ro_html->add( render_beacon( is_diff_line = <ls_diff> is_diff = is_diff ) ). lv_insert_nav = abap_false. ENDIF. IF lo_highlighter IS BOUND. <ls_diff>-new = lo_highlighter->process_line( <ls_diff>-new ). <ls_diff>-old = lo_highlighter->process_line( <ls_diff>-old ). ELSE. <ls_diff>-new = escape( val = <ls_diff>-new format = cl_abap_format=>e_html_attr ). <ls_diff>-old = escape( val = <ls_diff>-old format = cl_abap_format=>e_html_attr ). ENDIF. CONDENSE <ls_diff>-new_num. "get rid of leading spaces CONDENSE <ls_diff>-old_num. IF mv_unified = abap_true. ro_html->add( render_line_unified( is_diff_line = <ls_diff> ) ). ELSE. ro_html->add( render_line_split( is_diff_line = <ls_diff> iv_fstate = is_diff-fstate ) ). ENDIF. ENDLOOP. IF mv_unified = abap_true. ro_html->add( render_line_unified( ) ). " Release delayed lines ENDIF. ENDMETHOD. "render_lines METHOD render_line_split. DATA: lv_new TYPE string, lv_old TYPE string, lv_mark TYPE string, lv_bg TYPE string. CREATE OBJECT ro_html. " New line lv_mark = ` `. IF iv_fstate = c_fstate-both OR is_diff_line-result = zif_abapgit_definitions=>c_diff-update. lv_bg = ' diff_upd'. lv_mark = `~`. ELSEIF is_diff_line-result = zif_abapgit_definitions=>c_diff-insert. lv_bg = ' diff_ins'. lv_mark = `+`. ENDIF. lv_new = |<td class="num" line-num="{ is_diff_line-new_num }"></td>| && |<td class="code{ lv_bg }">{ lv_mark }{ is_diff_line-new }</td>|. " Old line CLEAR lv_bg. lv_mark = ` `. IF iv_fstate = c_fstate-both OR is_diff_line-result = zif_abapgit_definitions=>c_diff-update. lv_bg = ' diff_upd'. lv_mark = `~`. ELSEIF is_diff_line-result = zif_abapgit_definitions=>c_diff-delete. lv_bg = ' diff_del'. lv_mark = `-`. ENDIF. lv_old = |<td class="num" line-num="{ is_diff_line-old_num }"></td>| && |<td class="code{ lv_bg }">{ lv_mark }{ is_diff_line-old }</td>|. " render line, inverse sides if remote is newer ro_html->add( '<tr>' ). "#EC NOTEXT IF iv_fstate = c_fstate-remote. " Remote file leading changes ro_html->add( lv_old ). " local ro_html->add( lv_new ). " remote ELSE. " Local leading changes or both were modified ro_html->add( lv_new ). " local ro_html->add( lv_old ). " remote ENDIF. ro_html->add( '</tr>' ). "#EC NOTEXT ENDMETHOD. "render_line_split METHOD render_line_unified. FIELD-SYMBOLS <ls_diff_line> LIKE LINE OF mt_delayed_lines. CREATE OBJECT ro_html. " Release delayed subsequent update lines IF is_diff_line-result <> zif_abapgit_definitions=>c_diff-update. LOOP AT mt_delayed_lines ASSIGNING <ls_diff_line>. ro_html->add( '<tr>' ). "#EC NOTEXT ro_html->add( |<td class="num" line-num="{ <ls_diff_line>-old_num }"></td>| && |<td class="num" line-num=""></td>| && |<td class="code diff_del">-{ <ls_diff_line>-old }</td>| ). ro_html->add( '</tr>' ). "#EC NOTEXT ENDLOOP. LOOP AT mt_delayed_lines ASSIGNING <ls_diff_line>. ro_html->add( '<tr>' ). "#EC NOTEXT ro_html->add( |<td class="num" line-num=""></td>| && |<td class="num" line-num="{ <ls_diff_line>-new_num }"></td>| && |<td class="code diff_ins">+{ <ls_diff_line>-new }</td>| ). ro_html->add( '</tr>' ). "#EC NOTEXT ENDLOOP. CLEAR mt_delayed_lines. ENDIF. ro_html->add( '<tr>' ). "#EC NOTEXT CASE is_diff_line-result. WHEN zif_abapgit_definitions=>c_diff-update. APPEND is_diff_line TO mt_delayed_lines. " Delay output of subsequent updates WHEN zif_abapgit_definitions=>c_diff-insert. ro_html->add( |<td class="num" line-num=""></td>| && |<td class="num" line-num="{ is_diff_line-new_num }"></td>| && |<td class="code diff_ins">+{ is_diff_line-new }</td>| ). WHEN zif_abapgit_definitions=>c_diff-delete. ro_html->add( |<td class="num" line-num="{ is_diff_line-old_num }"></td>| && |<td class="num" line-num=""></td>| && |<td class="code diff_del">-{ is_diff_line-old }</td>| ). WHEN OTHERS. "none ro_html->add( |<td class="num" line-num="{ is_diff_line-old_num }"></td>| && |<td class="num" line-num="{ is_diff_line-new_num }"></td>| && |<td class="code"> { is_diff_line-old }</td>| ). ENDCASE. ro_html->add( '</tr>' ). "#EC NOTEXT ENDMETHOD. "render_line_unified METHOD render_table_head. CREATE OBJECT ro_html. IF mv_unified = abap_true. ro_html->add( '<thead class="header">' ). "#EC NOTEXT ro_html->add( '<tr>' ). "#EC NOTEXT ro_html->add( '<th class="num">old</th>' ). "#EC NOTEXT ro_html->add( '<th class="num">new</th>' ). "#EC NOTEXT ro_html->add( '<th>code</th>' ). "#EC NOTEXT ro_html->add( '</tr>' ). "#EC NOTEXT ro_html->add( '</thead>' ). "#EC NOTEXT ELSE. ro_html->add( '<thead class="header">' ). "#EC NOTEXT ro_html->add( '<tr>' ). "#EC NOTEXT ro_html->add( '<th class="num"></th>' ). "#EC NOTEXT ro_html->add( '<th>LOCAL</th>' ). "#EC NOTEXT ro_html->add( '<th class="num"></th>' ). "#EC NOTEXT ro_html->add( '<th>REMOTE</th>' ). "#EC NOTEXT ro_html->add( '</tr>' ). "#EC NOTEXT ro_html->add( '</thead>' ). "#EC NOTEXT ENDIF. ENDMETHOD. " render_table_head. METHOD scripts. CREATE OBJECT ro_html. ro_html->add( 'var gHelper = new DiffHelper({' ). ro_html->add( | seed: "{ mv_seed }",| ). ro_html->add( | stageAction: "{ zif_abapgit_definitions=>gc_action-go_stage }",| ). ro_html->add( ' ids: {' ). ro_html->add( ' diffList: "diff-list",' ). ro_html->add( ' filterMenu: "diff-filter",' ). ro_html->add( ' stageButton: "stage-button"' ). ro_html->add( ' }' ). ro_html->add( '});' ). ENDMETHOD. "scripts METHOD zif_abapgit_gui_page~on_event. CASE iv_action. WHEN c_actions-toggle_unified. " Toggle file diplay mv_unified = zcl_abapgit_persistence_user=>get_instance( )->toggle_diff_unified( ). ev_state = zif_abapgit_definitions=>gc_event_state-re_render. ENDCASE. ENDMETHOD. "lif_gui_page~on_event ENDCLASS.
[ 4871, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 40156, 62, 4537, 8264, 62, 35, 29267, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 1171, 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, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 69, 5219, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1957, 220, 41876, 1149, 16, 26173, 8924, 705, 43, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 6569, 41876, 1149, 16, 26173, 8924, 705, 49, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 1111, 220, 220, 41876, 1149, 16, 26173, 8924, 705, 33, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 69, 5219, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 7753, 62, 26069, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3108, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29472, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 5219, 220, 220, 220, 220, 41876, 1149, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 5219, 220, 220, 220, 220, 41876, 1149, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 5219, 220, 220, 220, 220, 41876, 1149, 16, 11, 366, 45811, 1181, 532, 2275, 301, 7861, 329, 12238, 611, 82, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 267, 62, 26069, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 26069, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3421, 62, 1525, 41876, 2124, 549, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 7753, 62, 26069, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 83, 62, 7753, 62, 26069, 41876, 49053, 9795, 43679, 3963, 1259, 62, 7753, 62, 26069, 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, 21628, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 7753, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 7753, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 15252, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 37330, 601, 62, 14247, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 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, 7700, 93, 261, 62, 15596, 23848, 36, 20032, 17941, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 8543, 62, 11299, 23848, 36, 20032, 17941, 11, 198, 220, 220, 220, 220, 220, 14750, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 347, 43312, 3963, 269, 62, 4658, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19846, 62, 403, 1431, 41876, 4731, 26173, 8924, 705, 44256, 62, 403, 1431, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 4658, 13, 628, 220, 220, 220, 42865, 25, 45079, 62, 26069, 62, 16624, 220, 220, 220, 41876, 256, 83, 62, 7753, 62, 26069, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45079, 62, 12381, 16548, 62, 6615, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 67, 10203, 62, 926, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 85, 62, 403, 1431, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 26173, 8924, 450, 499, 62, 7942, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 85, 62, 260, 7501, 62, 2539, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 85, 62, 28826, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 13, 366, 30015, 2443, 4686, 284, 11007, 26755, 6246, 31425, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 26069, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 318, 62, 26069, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 7753, 62, 26069, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 13, 198, 220, 220, 220, 337, 36252, 50, 8543, 62, 26069, 62, 2256, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 318, 62, 26069, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 7753, 62, 26069, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*---------------------------------------------------------------------* * program for: VIEWFRAME_ZVABAPGIT_IGNORE * generation date: 15.09.2019 at 20:59:08 * view maintenance generator version: #001407# *---------------------------------------------------------------------* FUNCTION VIEWFRAME_ZVABAPGIT_IGNORE . DATA: ENQUEUE_PROCESSED TYPE C. "flag: view enqueued by VIEWFRAME_... *-<<<-------------------------------------------------------------->>>>* * Entrypoint after changing maintenance mode (show <--> update) * *-<<<-------------------------------------------------------------->>>>* DO. *----------------------------------------------------------------------* * Select data from database * *----------------------------------------------------------------------* CALL FUNCTION 'VIEWPROC_ZVABAPGIT_IGNORE' EXPORTING FCODE = READ VIEW_ACTION = VIEW_ACTION VIEW_NAME = VIEW_NAME TABLES EXCL_CUA_FUNCT = EXCL_CUA_FUNCT EXTRACT = ZVABAPGIT_IGNORE_EXTRACT TOTAL = ZVABAPGIT_IGNORE_TOTAL X_HEADER = X_HEADER X_NAMTAB = X_NAMTAB DBA_SELLIST = DBA_SELLIST DPL_SELLIST = DPL_SELLIST CORR_KEYTAB = E071K_TAB EXCEPTIONS MISSING_CORR_NUMBER = 1 NO_VALUE_FOR_SUBSET_IDENT = 2. CASE SY-SUBRC. WHEN 1. RAISE MISSING_CORR_NUMBER. WHEN 2. RAISE NO_VALUE_FOR_SUBSET_IDENT. ENDCASE. *-<<<-------------------------------------------------------------->>>>* * Entrypoint after saving data into database * * Entrypoint after refreshing selected entries from database * *-<<<-------------------------------------------------------------->>>>* DO. *----------------------------------------------------------------------* * Edit data * *----------------------------------------------------------------------* DO. CALL FUNCTION 'VIEWPROC_ZVABAPGIT_IGNORE' EXPORTING FCODE = EDIT VIEW_ACTION = MAINT_MODE VIEW_NAME = VIEW_NAME CORR_NUMBER = CORR_NUMBER IMPORTING UCOMM = FUNCTION UPDATE_REQUIRED = STATUS_ZVABAPGIT_IGNORE-UPD_FLAG TABLES EXCL_CUA_FUNCT = EXCL_CUA_FUNCT EXTRACT = ZVABAPGIT_IGNORE_EXTRACT TOTAL = ZVABAPGIT_IGNORE_TOTAL X_HEADER = X_HEADER X_NAMTAB = X_NAMTAB DBA_SELLIST = DBA_SELLIST DPL_SELLIST = DPL_SELLIST CORR_KEYTAB = E071K_TAB EXCEPTIONS MISSING_CORR_NUMBER = 1 NO_VALUE_FOR_SUBSET_IDENT = 2. CASE SY-SUBRC. WHEN 1. IF MAINT_MODE EQ TRANSPORTIEREN AND VIEW_ACTION EQ AENDERN. MOVE VIEW_ACTION TO MAINT_MODE. ELSE. PERFORM BEFORE_LEAVING_FRAME_FUNCTION USING X_HEADER-FRM_BF_END. RAISE MISSING_CORR_NUMBER. ENDIF. WHEN 2. RAISE NO_VALUE_FOR_SUBSET_IDENT. WHEN OTHERS. EXIT. ENDCASE. ENDDO. *----------------------------------------------------------------------* * Handle usercommands... * * ...at first handle commands which could cause loss of data * *----------------------------------------------------------------------* IF FUNCTION EQ BACK. FUNCTION = END. ENDIF. IF ( FUNCTION EQ SWITCH_TO_SHOW_MODE OR FUNCTION EQ GET_ANOTHER_VIEW OR FUNCTION EQ SWITCH_TRANSP_TO_UPD_MODE OR FUNCTION EQ END ) AND STATUS_ZVABAPGIT_IGNORE-UPD_FLAG NE SPACE. PERFORM BEENDEN. CASE SY-SUBRC. WHEN 0. CALL FUNCTION 'VIEWPROC_ZVABAPGIT_IGNORE' EXPORTING FCODE = SAVE VIEW_ACTION = MAINT_MODE VIEW_NAME = VIEW_NAME CORR_NUMBER = CORR_NUMBER IMPORTING UPDATE_REQUIRED = STATUS_ZVABAPGIT_IGNORE-UPD_FLAG TABLES EXCL_CUA_FUNCT = EXCL_CUA_FUNCT EXTRACT = ZVABAPGIT_IGNORE_EXTRACT TOTAL = ZVABAPGIT_IGNORE_TOTAL X_HEADER = X_HEADER X_NAMTAB = X_NAMTAB DBA_SELLIST = DBA_SELLIST DPL_SELLIST = DPL_SELLIST CORR_KEYTAB = E071K_TAB EXCEPTIONS MISSING_CORR_NUMBER = 1 NO_VALUE_FOR_SUBSET_IDENT = 2 SAVING_CORRECTION_FAILED = 3. CASE SY-SUBRC. WHEN 0. IF STATUS_ZVABAPGIT_IGNORE-UPD_FLAG EQ SPACE. EXIT. ENDIF. WHEN 1. RAISE MISSING_CORR_NUMBER. WHEN 2. RAISE NO_VALUE_FOR_SUBSET_IDENT. WHEN 3. ENDCASE. WHEN 8. EXIT. WHEN 12. ENDCASE. *----------------------------------------------------------------------* * ...2nd: transport request * *----------------------------------------------------------------------* ELSEIF FUNCTION EQ TRANSPORT. IF STATUS_ZVABAPGIT_IGNORE-UPD_FLAG NE SPACE. PERFORM TRANSPORTIEREN. CASE SY-SUBRC. WHEN 0. CALL FUNCTION 'VIEWPROC_ZVABAPGIT_IGNORE' EXPORTING FCODE = SAVE VIEW_ACTION = MAINT_MODE VIEW_NAME = VIEW_NAME CORR_NUMBER = CORR_NUMBER IMPORTING UPDATE_REQUIRED = STATUS_ZVABAPGIT_IGNORE-UPD_FLAG TABLES EXCL_CUA_FUNCT = EXCL_CUA_FUNCT EXTRACT = ZVABAPGIT_IGNORE_EXTRACT TOTAL = ZVABAPGIT_IGNORE_TOTAL X_HEADER = X_HEADER X_NAMTAB = X_NAMTAB DBA_SELLIST = DBA_SELLIST DPL_SELLIST = DPL_SELLIST CORR_KEYTAB = E071K_TAB EXCEPTIONS MISSING_CORR_NUMBER = 1 NO_VALUE_FOR_SUBSET_IDENT = 2 SAVING_CORRECTION_FAILED = 3. CASE SY-SUBRC. WHEN 0. MAINT_MODE = TRANSPORTIEREN. WHEN 1. RAISE MISSING_CORR_NUMBER. WHEN 2. RAISE NO_VALUE_FOR_SUBSET_IDENT. WHEN 3. ENDCASE. WHEN 8. EXIT. WHEN 12. ENDCASE. ELSE. MAINT_MODE = TRANSPORTIEREN. ENDIF. *----------------------------------------------------------------------* * ...now reset or save requests * *----------------------------------------------------------------------* ELSEIF FUNCTION EQ RESET_LIST OR FUNCTION EQ RESET_ENTRY OR FUNCTION EQ SAVE. *----------------------------------------------------------------------* * Refresh selected entries from database or save data into database * *----------------------------------------------------------------------* CALL FUNCTION 'VIEWPROC_ZVABAPGIT_IGNORE' EXPORTING FCODE = FUNCTION VIEW_ACTION = MAINT_MODE VIEW_NAME = VIEW_NAME CORR_NUMBER = CORR_NUMBER IMPORTING UPDATE_REQUIRED = STATUS_ZVABAPGIT_IGNORE-UPD_FLAG TABLES EXCL_CUA_FUNCT = EXCL_CUA_FUNCT EXTRACT = ZVABAPGIT_IGNORE_EXTRACT TOTAL = ZVABAPGIT_IGNORE_TOTAL X_HEADER = X_HEADER X_NAMTAB = X_NAMTAB DBA_SELLIST = DBA_SELLIST DPL_SELLIST = DPL_SELLIST CORR_KEYTAB = E071K_TAB EXCEPTIONS MISSING_CORR_NUMBER = 1 NO_VALUE_FOR_SUBSET_IDENT = 2 SAVING_CORRECTION_FAILED = 3. CASE SY-SUBRC. WHEN 1. RAISE MISSING_CORR_NUMBER. WHEN 2. RAISE NO_VALUE_FOR_SUBSET_IDENT. WHEN 3. ENDCASE. ELSE. EXIT. ENDIF. ENDDO. *----------------------------------------------------------------------* * ...now other commands... * *----------------------------------------------------------------------* CASE FUNCTION. WHEN SWITCH_TO_SHOW_MODE. * change maintenance mode from update to show PERFORM ENQUEUE USING 'D' X_HEADER-FRM_AF_ENQ. "dequeue view CLEAR ENQUEUE_PROCESSED. VIEW_ACTION = ANZEIGEN. WHEN SWITCH_TO_UPDATE_MODE. * change maintenance mode from show to update PERFORM ENQUEUE USING 'E' X_HEADER-FRM_AF_ENQ. "enqueue view IF SY-SUBRC EQ 0. MOVE 'X' TO ENQUEUE_PROCESSED. VIEW_ACTION = AENDERN. ENDIF. WHEN SWITCH_TRANSP_TO_UPD_MODE. * change maintenance mode from transport to update VIEW_ACTION = AENDERN. WHEN TRANSPORT. * change maintenance mode from update to transport VIEW_ACTION = TRANSPORTIEREN. WHEN OTHERS. IF ENQUEUE_PROCESSED NE SPACE. PERFORM ENQUEUE USING 'D' X_HEADER-FRM_AF_ENQ. "dequeue view ENDIF. PERFORM BEFORE_LEAVING_FRAME_FUNCTION USING X_HEADER-FRM_BF_END. EXIT. ENDCASE. ENDDO. ENDFUNCTION.
[ 9, 10097, 30934, 9, 198, 9, 220, 220, 220, 1430, 329, 25, 220, 220, 49880, 10913, 10067, 62, 57, 53, 6242, 2969, 38, 2043, 62, 16284, 6965, 198, 9, 220, 220, 5270, 3128, 25, 1315, 13, 2931, 13, 23344, 379, 1160, 25, 3270, 25, 2919, 198, 9, 220, 220, 1570, 9262, 17301, 2196, 25, 1303, 405, 1415, 2998, 2, 198, 9, 10097, 30934, 9, 198, 42296, 4177, 2849, 49880, 10913, 10067, 62, 57, 53, 6242, 2969, 38, 2043, 62, 16284, 6965, 220, 220, 220, 764, 628, 220, 42865, 25, 12964, 48, 8924, 8924, 62, 4805, 4503, 7597, 1961, 41876, 327, 13, 366, 32109, 25, 1570, 551, 4188, 1739, 416, 49880, 10913, 10067, 62, 986, 198, 198, 9, 12, 16791, 27, 47232, 26171, 16471, 9, 198, 9, 21617, 4122, 706, 5609, 9262, 4235, 357, 12860, 1279, 46904, 4296, 8, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 9, 12, 16791, 27, 47232, 26171, 16471, 9, 198, 220, 8410, 13, 198, 9, 10097, 23031, 9, 198, 9, 9683, 1366, 422, 6831, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 9, 10097, 23031, 9, 198, 34, 7036, 29397, 4177, 2849, 705, 28206, 4805, 4503, 62, 57, 53, 6242, 2969, 38, 2043, 62, 16284, 6965, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10029, 16820, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 20832, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49880, 62, 44710, 220, 220, 220, 796, 49880, 62, 44710, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49880, 62, 20608, 220, 220, 220, 220, 220, 796, 49880, 62, 20608, 198, 220, 220, 220, 220, 220, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 5097, 62, 34, 34970, 62, 42296, 4177, 796, 7788, 5097, 62, 34, 34970, 62, 42296, 4177, 198, 6369, 5446, 10659, 796, 1168, 53, 6242, 2969, 38, 2043, 62, 16284, 6965, 62, 6369, 5446, 10659, 198, 51, 27510, 796, 1168, 53, 6242, 2969, 38, 2043, 62, 16284, 6965, 62, 51, 27510, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1395, 62, 37682, 1137, 220, 220, 220, 220, 220, 220, 796, 1395, 62, 37682, 1137, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1395, 62, 45, 2390, 5603, 33, 220, 220, 220, 220, 220, 220, 796, 1395, 62, 45, 2390, 5603, 33, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 360, 4339, 62, 5188, 3069, 8808, 220, 220, 220, 796, 360, 4339, 62, 5188, 3069, 8808, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 360, 6489, 62, 5188, 3069, 8808, 220, 220, 220, 796, 360, 6489, 62, 5188, 3069, 8808, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23929, 49, 62, 20373, 5603, 33, 220, 220, 220, 796, 412, 2998, 16, 42, 62, 5603, 33, 198, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49684, 2751, 62, 44879, 49, 62, 41359, 13246, 220, 220, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8005, 62, 39488, 62, 13775, 62, 12564, 4462, 2767, 62, 25256, 796, 362, 13, 198, 220, 220, 220, 42001, 19704, 12, 50, 10526, 7397, 13, 198, 220, 220, 220, 220, 220, 42099, 352, 13, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 24352, 49684, 2751, 62, 44879, 49, 62, 41359, 13246, 13, 198, 220, 220, 220, 220, 220, 42099, 362, 13, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 24352, 8005, 62, 39488, 62, 13775, 62, 12564, 4462, 2767, 62, 25256, 13, 198, 220, 220, 220, 23578, 34, 11159, 13, 198, 9, 12, 16791, 27, 47232, 26171, 16471, 9, 198, 9, 21617, 4122, 706, 8914, 1366, 656, 6831, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 9, 21617, 4122, 706, 23056, 6163, 12784, 422, 6831, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 9, 12, 16791, 27, 47232, 26171, 16471, 9, 198, 220, 220, 220, 8410, 13, 198, 9, 10097, 23031, 9, 198, 9, 5312, 1366, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 9, 10097, 23031, 9, 198, 220, 220, 220, 220, 220, 8410, 13, 198, 34, 7036, 29397, 4177, 2849, 705, 28206, 4805, 4503, 62, 57, 53, 6242, 2969, 38, 2043, 62, 16284, 6965, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10029, 16820, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 48483, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49880, 62, 44710, 220, 220, 220, 220, 796, 8779, 12394, 62, 49058, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49880, 62, 20608, 220, 220, 220, 220, 220, 220, 796, 49880, 62, 20608, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23929, 49, 62, 41359, 13246, 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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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 ]
CLASS zcl_abapgit_objects_program DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super. PUBLIC SECTION. TYPES: BEGIN OF ty_progdir, name TYPE progdir-name, state TYPE progdir-state, sqlx TYPE progdir-sqlx, edtx TYPE progdir-edtx, varcl TYPE progdir-varcl, dbapl TYPE progdir-dbapl, dbna TYPE progdir-dbna, clas TYPE progdir-clas, type TYPE progdir-type, occurs TYPE progdir-occurs, subc TYPE progdir-subc, appl TYPE progdir-appl, secu TYPE progdir-secu, cnam TYPE progdir-cnam, cdat TYPE progdir-cdat, unam TYPE progdir-unam, udat TYPE progdir-udat, vern TYPE progdir-vern, levl TYPE progdir-levl, rstat TYPE progdir-rstat, rmand TYPE progdir-rmand, rload TYPE progdir-rload, fixpt TYPE progdir-fixpt, sset TYPE progdir-sset, sdate TYPE progdir-sdate, stime TYPE progdir-stime, idate TYPE progdir-idate, itime TYPE progdir-itime, ldbname TYPE progdir-ldbname, uccheck TYPE progdir-uccheck, END OF ty_progdir. METHODS serialize_program IMPORTING io_xml TYPE REF TO zcl_abapgit_xml_output OPTIONAL is_item TYPE zif_abapgit_definitions=>ty_item io_files TYPE REF TO zcl_abapgit_objects_files iv_program TYPE programm OPTIONAL iv_extra TYPE clike OPTIONAL RAISING zcx_abapgit_exception. METHODS read_progdir IMPORTING iv_program TYPE programm RETURNING VALUE(rs_progdir) TYPE ty_progdir. METHODS deserialize_program IMPORTING is_progdir TYPE ty_progdir it_source TYPE abaptxt255_tab it_tpool TYPE textpool_table iv_package TYPE devclass RAISING zcx_abapgit_exception. PROTECTED SECTION. TYPES: ty_spaces_tt TYPE STANDARD TABLE OF i WITH DEFAULT KEY . TYPES: BEGIN OF ty_dynpro, header TYPE rpy_dyhead, containers TYPE dycatt_tab, fields TYPE dyfatc_tab, flow_logic TYPE swydyflow, spaces TYPE ty_spaces_tt, END OF ty_dynpro . TYPES: ty_dynpro_tt TYPE STANDARD TABLE OF ty_dynpro WITH DEFAULT KEY . TYPES: BEGIN OF ty_cua, adm TYPE rsmpe_adm, sta TYPE STANDARD TABLE OF rsmpe_stat WITH DEFAULT KEY, fun TYPE STANDARD TABLE OF rsmpe_funt WITH DEFAULT KEY, men TYPE STANDARD TABLE OF rsmpe_men WITH DEFAULT KEY, mtx TYPE STANDARD TABLE OF rsmpe_mnlt WITH DEFAULT KEY, act TYPE STANDARD TABLE OF rsmpe_act WITH DEFAULT KEY, but TYPE STANDARD TABLE OF rsmpe_but WITH DEFAULT KEY, pfk TYPE STANDARD TABLE OF rsmpe_pfk WITH DEFAULT KEY, set TYPE STANDARD TABLE OF rsmpe_staf WITH DEFAULT KEY, doc TYPE STANDARD TABLE OF rsmpe_atrt WITH DEFAULT KEY, tit TYPE STANDARD TABLE OF rsmpe_titt WITH DEFAULT KEY, biv TYPE STANDARD TABLE OF rsmpe_buts WITH DEFAULT KEY, END OF ty_cua . METHODS serialize_dynpros IMPORTING !iv_program_name TYPE programm RETURNING VALUE(rt_dynpro) TYPE ty_dynpro_tt RAISING zcx_abapgit_exception . METHODS serialize_cua IMPORTING !iv_program_name TYPE programm RETURNING VALUE(rs_cua) TYPE ty_cua RAISING zcx_abapgit_exception . METHODS deserialize_dynpros IMPORTING !it_dynpros TYPE ty_dynpro_tt RAISING zcx_abapgit_exception . METHODS deserialize_textpool IMPORTING !iv_program TYPE programm !it_tpool TYPE textpool_table !iv_language TYPE langu OPTIONAL !iv_is_include TYPE abap_bool DEFAULT abap_false RAISING zcx_abapgit_exception . METHODS deserialize_cua IMPORTING !iv_program_name TYPE programm !is_cua TYPE ty_cua RAISING zcx_abapgit_exception . METHODS is_any_dynpro_locked IMPORTING !iv_program TYPE programm RETURNING VALUE(rv_is_any_dynpro_locked) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS is_cua_locked IMPORTING !iv_program TYPE programm RETURNING VALUE(rv_is_cua_locked) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS is_text_locked IMPORTING !iv_program TYPE programm RETURNING VALUE(rv_is_text_locked) TYPE abap_bool RAISING zcx_abapgit_exception . CLASS-METHODS add_tpool IMPORTING !it_tpool TYPE textpool_table RETURNING VALUE(rt_tpool) TYPE zif_abapgit_definitions=>ty_tpool_tt . CLASS-METHODS read_tpool IMPORTING !it_tpool TYPE zif_abapgit_definitions=>ty_tpool_tt RETURNING VALUE(rt_tpool) TYPE zif_abapgit_definitions=>ty_tpool_tt . PRIVATE SECTION. METHODS: condense_flow EXPORTING et_spaces TYPE ty_spaces_tt CHANGING ct_flow TYPE swydyflow, uncondense_flow IMPORTING it_flow TYPE swydyflow it_spaces TYPE ty_spaces_tt RETURNING VALUE(rt_flow) TYPE swydyflow. CLASS-METHODS auto_correct_cua_adm IMPORTING is_cua TYPE zcl_abapgit_objects_program=>ty_cua CHANGING cs_adm TYPE rsmpe_adm. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECTS_PROGRAM IMPLEMENTATION. METHOD add_tpool. FIELD-SYMBOLS: <ls_tpool_in> LIKE LINE OF it_tpool, <ls_tpool_out> LIKE LINE OF rt_tpool. LOOP AT it_tpool ASSIGNING <ls_tpool_in>. APPEND INITIAL LINE TO rt_tpool ASSIGNING <ls_tpool_out>. MOVE-CORRESPONDING <ls_tpool_in> TO <ls_tpool_out>. IF <ls_tpool_out>-id = 'S'. <ls_tpool_out>-split = <ls_tpool_out>-entry. <ls_tpool_out>-entry = <ls_tpool_out>-entry+8. ENDIF. ENDLOOP. ENDMETHOD. METHOD auto_correct_cua_adm. " issue #1807 automatic correction of CUA interfaces saved incorrectly in the past (ADM was not saved in the XML) FIELD-SYMBOLS: <ls_pfk> TYPE rsmpe_pfk, <ls_act> TYPE rsmpe_act, <ls_men> TYPE rsmpe_men. IF cs_adm IS NOT INITIAL. RETURN. ENDIF. LOOP AT is_cua-act ASSIGNING <ls_act>. IF <ls_act>-code+6(14) IS INITIAL AND <ls_act>-code(6) CO '0123456789'. cs_adm-actcode = <ls_act>-code. ENDIF. ENDLOOP. LOOP AT is_cua-men ASSIGNING <ls_men>. IF <ls_men>-code+6(14) IS INITIAL AND <ls_men>-code(6) CO '0123456789'. cs_adm-mencode = <ls_men>-code. ENDIF. ENDLOOP. LOOP AT is_cua-pfk ASSIGNING <ls_pfk>. IF <ls_pfk>-code+6(14) IS INITIAL AND <ls_pfk>-code(6) CO '0123456789'. cs_adm-pfkcode = <ls_pfk>-code. ENDIF. ENDLOOP. ENDMETHOD. METHOD condense_flow. DATA: lv_spaces LIKE LINE OF et_spaces. FIELD-SYMBOLS: <ls_flow> LIKE LINE OF ct_flow. CLEAR et_spaces. LOOP AT ct_flow ASSIGNING <ls_flow>. lv_spaces = 0. WHILE NOT <ls_flow>-line IS INITIAL AND <ls_flow>-line(1) = space. lv_spaces = lv_spaces + 1. <ls_flow>-line = <ls_flow>-line+1. ENDWHILE. APPEND lv_spaces TO et_spaces. ENDLOOP. ENDMETHOD. METHOD deserialize_cua. DATA: ls_tr_key TYPE trkey, ls_adm TYPE rsmpe_adm. IF lines( is_cua-sta ) = 0 AND lines( is_cua-fun ) = 0 AND lines( is_cua-men ) = 0 AND lines( is_cua-mtx ) = 0 AND lines( is_cua-act ) = 0 AND lines( is_cua-but ) = 0 AND lines( is_cua-pfk ) = 0 AND lines( is_cua-set ) = 0 AND lines( is_cua-doc ) = 0 AND lines( is_cua-tit ) = 0 AND lines( is_cua-biv ) = 0. RETURN. ENDIF. SELECT SINGLE devclass INTO ls_tr_key-devclass FROM tadir WHERE pgmid = 'R3TR' AND object = ms_item-obj_type AND obj_name = ms_item-obj_name. "#EC CI_GENBUFF IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'not found in tadir' ). ENDIF. ls_tr_key-obj_type = ms_item-obj_type. ls_tr_key-obj_name = ms_item-obj_name. ls_tr_key-sub_type = 'CUAD'. ls_tr_key-sub_name = iv_program_name. ls_adm = is_cua-adm. auto_correct_cua_adm( EXPORTING is_cua = is_cua CHANGING cs_adm = ls_adm ). sy-tcode = 'SE41' ##write_ok. " evil hack, workaround to handle fixes in note 2159455 CALL FUNCTION 'RS_CUA_INTERNAL_WRITE' EXPORTING program = iv_program_name language = mv_language tr_key = ls_tr_key adm = ls_adm state = 'I' TABLES sta = is_cua-sta fun = is_cua-fun men = is_cua-men mtx = is_cua-mtx act = is_cua-act but = is_cua-but pfk = is_cua-pfk set = is_cua-set doc = is_cua-doc tit = is_cua-tit biv = is_cua-biv EXCEPTIONS not_found = 1 OTHERS = 2. IF sy-subrc <> 0. * if moving code from SAPlink, see https://github.com/larshp/abapGit/issues/562 zcx_abapgit_exception=>raise( |Error from RS_CUA_INTERNAL_WRITE. Subrc = { sy-subrc }| ). ENDIF. zcl_abapgit_objects_activation=>add( iv_type = 'CUAD' iv_name = iv_program_name ). ENDMETHOD. METHOD deserialize_dynpros. CONSTANTS lc_rpyty_force_off TYPE char01 VALUE '/' ##NO_TEXT. DATA: lv_name TYPE dwinactiv-obj_name, ls_dynpro LIKE LINE OF it_dynpros. FIELD-SYMBOLS: <ls_field> TYPE rpy_dyfatc. * ls_dynpro is changed by the function module, a field-symbol will cause * the program to dump since it_dynpros cannot be changed LOOP AT it_dynpros INTO ls_dynpro. ls_dynpro-flow_logic = uncondense_flow( it_flow = ls_dynpro-flow_logic it_spaces = ls_dynpro-spaces ). LOOP AT ls_dynpro-fields ASSIGNING <ls_field>. * if the DDIC element has a PARAMETER_ID and the flag "from_dict" is active * the import will enable the SET-/GET_PARAM flag. In this case: "force off" IF <ls_field>-param_id IS NOT INITIAL AND <ls_field>-from_dict = abap_true. IF <ls_field>-set_param IS INITIAL. <ls_field>-set_param = lc_rpyty_force_off. ENDIF. IF <ls_field>-get_param IS INITIAL. <ls_field>-get_param = lc_rpyty_force_off. ENDIF. ENDIF. ENDLOOP. CALL FUNCTION 'RPY_DYNPRO_INSERT' EXPORTING header = ls_dynpro-header suppress_exist_checks = abap_true TABLES containers = ls_dynpro-containers fields_to_containers = ls_dynpro-fields flow_logic = ls_dynpro-flow_logic EXCEPTIONS cancelled = 1 already_exists = 2 program_not_exists = 3 not_executed = 4 missing_required_field = 5 illegal_field_value = 6 field_not_allowed = 7 not_generated = 8 illegal_field_position = 9 OTHERS = 10. IF sy-subrc <> 2 AND sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from RPY_DYNPRO_INSERT: { sy-subrc }| ). ENDIF. * todo, RPY_DYNPRO_UPDATE? CONCATENATE ls_dynpro-header-program ls_dynpro-header-screen INTO lv_name RESPECTING BLANKS. ASSERT NOT lv_name IS INITIAL. zcl_abapgit_objects_activation=>add( iv_type = 'DYNP' iv_name = lv_name ). ENDLOOP. ENDMETHOD. METHOD deserialize_program. DATA: lv_exists TYPE abap_bool, lv_progname TYPE reposrc-progname, ls_tpool LIKE LINE OF it_tpool, lv_title TYPE rglif-title, ls_progdir_new TYPE progdir. FIELD-SYMBOLS: <lg_any> TYPE any. CALL FUNCTION 'RS_CORR_INSERT' EXPORTING object = is_progdir-name object_class = 'ABAP' devclass = iv_package master_language = mv_language mode = 'I' suppress_dialog = abap_true EXCEPTIONS cancelled = 1 permission_failure = 2 unknown_objectclass = 3 OTHERS = 4. IF sy-subrc = 1. zcx_abapgit_exception=>raise( |Error from RS_CORR_INSERT, Cancelled, { sy-msgid }, { sy-msgno }| ). ELSEIF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from RS_CORR_INSERT, { sy-msgid }, { sy-msgno }| ). ENDIF. READ TABLE it_tpool INTO ls_tpool WITH KEY id = 'R'. IF sy-subrc = 0. * there is a bug in RPY_PROGRAM_UPDATE, the header line of TTAB is not * cleared, so the title length might be inherited from a different program. ASSIGN ('(SAPLSIFP)TTAB') TO <lg_any>. IF sy-subrc = 0. CLEAR <lg_any>. ENDIF. lv_title = ls_tpool-entry. ENDIF. SELECT SINGLE progname FROM reposrc INTO lv_progname WHERE progname = is_progdir-name AND r3state = 'A'. IF sy-subrc = 0. lv_exists = abap_true. ELSE. lv_exists = abap_false. ENDIF. IF lv_exists = abap_true. zcl_abapgit_language=>set_current_language( mv_language ). CALL FUNCTION 'RPY_PROGRAM_UPDATE' EXPORTING program_name = is_progdir-name title_string = lv_title save_inactive = 'I' TABLES source_extended = it_source EXCEPTIONS cancelled = 1 permission_error = 2 not_found = 3 OTHERS = 4. IF sy-subrc <> 0. zcl_abapgit_language=>restore_login_language( ). IF sy-msgid = 'EU' AND sy-msgno = '510'. zcx_abapgit_exception=>raise( 'User is currently editing program' ). ELSE. zcx_abapgit_exception=>raise( |PROG { is_progdir-name }, updating error: { sy-msgid } { sy-msgno }| ). ENDIF. ENDIF. zcl_abapgit_language=>restore_login_language( ). ELSEIF strlen( is_progdir-name ) > 30. * function module RPY_PROGRAM_INSERT cannot handle function group includes " special treatment for extensions " if the program name exceeds 30 characters it is not a usual " ABAP program but might be some extension, which requires the internal " addition EXTENSION TYPE, see " http://help.sap.com/abapdocu_751/en/abapinsert_report_internal.htm#!ABAP_ADDITION_1@1@ " This e.g. occurs in case of transportable Code Inspector variants (ending with ===VC) INSERT REPORT is_progdir-name FROM it_source STATE 'I' EXTENSION TYPE is_progdir-name+30. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from INSERT REPORT .. EXTENSION TYPE' ). ENDIF. ELSE. INSERT REPORT is_progdir-name FROM it_source STATE 'I' PROGRAM TYPE is_progdir-subc. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from INSERT REPORT' ). ENDIF. ENDIF. IF NOT it_tpool[] IS INITIAL. INSERT TEXTPOOL is_progdir-name FROM it_tpool LANGUAGE mv_language STATE 'I'. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from INSERT TEXTPOOL' ). ENDIF. ENDIF. CALL FUNCTION 'READ_PROGDIR' EXPORTING i_progname = is_progdir-name i_state = 'I' IMPORTING e_progdir = ls_progdir_new EXCEPTIONS not_exists = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |not found in PROGDIR. Subrc = { sy-subrc }| ). ENDIF. * todo, package? ls_progdir_new-ldbname = is_progdir-ldbname. ls_progdir_new-dbna = is_progdir-dbna. ls_progdir_new-dbapl = is_progdir-dbapl. ls_progdir_new-rload = is_progdir-rload. ls_progdir_new-fixpt = is_progdir-fixpt. ls_progdir_new-varcl = is_progdir-varcl. ls_progdir_new-appl = is_progdir-appl. ls_progdir_new-rstat = is_progdir-rstat. CALL FUNCTION 'UPDATE_PROGDIR' EXPORTING i_progdir = ls_progdir_new i_progname = ls_progdir_new-name i_state = ls_progdir_new-state EXCEPTIONS not_executed = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |PROG, error inserting. Subrc = { sy-subrc }| ). ENDIF. SELECT SINGLE * FROM progdir INTO ls_progdir_new WHERE name = ls_progdir_new-name AND state = ls_progdir_new-state. IF sy-subrc = 0 AND is_progdir-varcl = space AND ls_progdir_new-varcl = abap_true. * function module UPDATE_PROGDIR does not update VARCL UPDATE progdir SET varcl = is_progdir-varcl WHERE name = ls_progdir_new-name AND state = ls_progdir_new-state. "#EC CI_SUBRC ENDIF. zcl_abapgit_objects_activation=>add( iv_type = 'REPS' iv_name = is_progdir-name ). ENDMETHOD. METHOD deserialize_textpool. DATA lv_language TYPE langu. DATA lv_state TYPE c. DATA lv_delete TYPE abap_bool. IF iv_language IS INITIAL. lv_language = mv_language. ELSE. lv_language = iv_language. ENDIF. IF lv_language = mv_language. lv_state = 'I'. "Textpool in master language needs to be activated ELSE. lv_state = 'A'. "Translations are always active ENDIF. IF it_tpool IS INITIAL. IF iv_is_include = abap_false OR lv_state = 'A'. DELETE TEXTPOOL iv_program "Remove initial description from textpool if LANGUAGE iv_program "original program does not have a textpool STATE lv_state. lv_delete = abap_true. ELSE. INSERT TEXTPOOL iv_program "In case of includes: Deletion of textpool in FROM it_tpool "master language cannot be activated because LANGUAGE lv_language "this woul activate the deletion of the textpool STATE lv_state. "of the mail program -> insert empty textpool ENDIF. ELSE. IF lines( it_tpool ) = 1 AND lv_language = mv_language. READ TABLE it_tpool WITH KEY id = 'R' TRANSPORTING NO FIELDS. IF sy-subrc = 0. RETURN. "No action because description in master language is already there ENDIF. ENDIF. INSERT TEXTPOOL iv_program FROM it_tpool LANGUAGE lv_language STATE lv_state. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from INSERT TEXTPOOL' ). ENDIF. ENDIF. IF lv_state = 'I'. "Textpool in master language needs to be activated zcl_abapgit_objects_activation=>add( iv_type = 'REPT' iv_name = iv_program iv_delete = lv_delete ). ENDIF. ENDMETHOD. METHOD is_any_dynpro_locked. DATA: lt_dynpros TYPE zcl_abapgit_objects_program=>ty_dynpro_tt, lv_object TYPE seqg3-garg. FIELD-SYMBOLS: <ls_dynpro> TYPE zcl_abapgit_objects_program=>ty_dynpro. lt_dynpros = serialize_dynpros( iv_program ). LOOP AT lt_dynpros ASSIGNING <ls_dynpro>. lv_object = |{ <ls_dynpro>-header-screen }{ <ls_dynpro>-header-program }|. IF exists_a_lock_entry_for( iv_lock_object = 'ESCRP' iv_argument = lv_object ) = abap_true. rv_is_any_dynpro_locked = abap_true. EXIT. ENDIF. ENDLOOP. ENDMETHOD. METHOD is_cua_locked. DATA: lv_object TYPE eqegraarg. lv_object = |CU{ iv_program }|. OVERLAY lv_object WITH ' '. lv_object = lv_object && '*'. rv_is_cua_locked = exists_a_lock_entry_for( iv_lock_object = 'ESCUAPAINT' iv_argument = lv_object ). ENDMETHOD. METHOD is_text_locked. DATA: lv_object TYPE eqegraarg. lv_object = |*{ iv_program }|. rv_is_text_locked = exists_a_lock_entry_for( iv_lock_object = 'EABAPTEXTE' iv_argument = lv_object ). ENDMETHOD. METHOD read_progdir. DATA: ls_sapdir TYPE progdir. CALL FUNCTION 'READ_PROGDIR' EXPORTING i_progname = iv_program i_state = 'A' IMPORTING e_progdir = ls_sapdir. MOVE-CORRESPONDING ls_sapdir TO rs_progdir. CLEAR: rs_progdir-edtx, rs_progdir-cnam, rs_progdir-cdat, rs_progdir-unam, rs_progdir-udat, rs_progdir-levl, rs_progdir-vern, rs_progdir-rmand, rs_progdir-sdate, rs_progdir-stime, rs_progdir-idate, rs_progdir-itime, rs_progdir-varcl, rs_progdir-state. ENDMETHOD. METHOD read_tpool. FIELD-SYMBOLS: <ls_tpool_in> LIKE LINE OF it_tpool, <ls_tpool_out> LIKE LINE OF rt_tpool. LOOP AT it_tpool ASSIGNING <ls_tpool_in>. APPEND INITIAL LINE TO rt_tpool ASSIGNING <ls_tpool_out>. MOVE-CORRESPONDING <ls_tpool_in> TO <ls_tpool_out>. IF <ls_tpool_out>-id = 'S'. CONCATENATE <ls_tpool_in>-split <ls_tpool_in>-entry INTO <ls_tpool_out>-entry RESPECTING BLANKS. ENDIF. ENDLOOP. ENDMETHOD. METHOD serialize_cua. CALL FUNCTION 'RS_CUA_INTERNAL_FETCH' EXPORTING program = iv_program_name language = mv_language state = 'A' IMPORTING adm = rs_cua-adm TABLES sta = rs_cua-sta fun = rs_cua-fun men = rs_cua-men mtx = rs_cua-mtx act = rs_cua-act but = rs_cua-but pfk = rs_cua-pfk set = rs_cua-set doc = rs_cua-doc tit = rs_cua-tit biv = rs_cua-biv EXCEPTIONS not_found = 1 unknown_version = 2 OTHERS = 3. IF sy-subrc > 1. zcx_abapgit_exception=>raise( |Error from RS_CUA_INTERNAL_FETCH, { sy-subrc }| ). ENDIF. ENDMETHOD. METHOD serialize_dynpros. DATA: ls_header TYPE rpy_dyhead, lt_containers TYPE dycatt_tab, lt_fields_to_containers TYPE dyfatc_tab, lt_flow_logic TYPE swydyflow, lt_d020s TYPE TABLE OF d020s. FIELD-SYMBOLS: <ls_d020s> LIKE LINE OF lt_d020s, <lv_outputstyle> TYPE scrpostyle, <ls_container> LIKE LINE OF lt_containers, <ls_field> LIKE LINE OF lt_fields_to_containers, <ls_dynpro> LIKE LINE OF rt_dynpro. CALL FUNCTION 'RS_SCREEN_LIST' EXPORTING dynnr = '' progname = iv_program_name TABLES dynpros = lt_d020s EXCEPTIONS not_found = 1 OTHERS = 2. IF sy-subrc = 2. zcx_abapgit_exception=>raise( |Error from RS_SCREEN_LIST. Subrc = { sy-subrc }| ). ENDIF. SORT lt_d020s BY dnum ASCENDING. * loop dynpros and skip generated selection screens LOOP AT lt_d020s ASSIGNING <ls_d020s> WHERE type <> 'S' AND type <> 'W' AND type <> 'J' AND NOT dnum IS INITIAL. CALL FUNCTION 'RPY_DYNPRO_READ' EXPORTING progname = iv_program_name dynnr = <ls_d020s>-dnum IMPORTING header = ls_header TABLES containers = lt_containers fields_to_containers = lt_fields_to_containers flow_logic = lt_flow_logic EXCEPTIONS cancelled = 1 not_found = 2 permission_error = 3 OTHERS = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error while reading dynpro: { sy-subrc }| ). ENDIF. LOOP AT lt_fields_to_containers ASSIGNING <ls_field>. * output style is a NUMC field, the XML conversion will fail if it contains invalid value * field does not exist in all versions ASSIGN COMPONENT 'OUTPUTSTYLE' OF STRUCTURE <ls_field> TO <lv_outputstyle>. IF sy-subrc = 0 AND <lv_outputstyle> = ' '. CLEAR <lv_outputstyle>. ENDIF. ENDLOOP. LOOP AT lt_containers ASSIGNING <ls_container>. IF <ls_container>-c_resize_v = abap_false. CLEAR <ls_container>-c_line_min. ENDIF. IF <ls_container>-c_resize_h = abap_false. CLEAR <ls_container>-c_coln_min. ENDIF. ENDLOOP. APPEND INITIAL LINE TO rt_dynpro ASSIGNING <ls_dynpro>. <ls_dynpro>-header = ls_header. <ls_dynpro>-containers = lt_containers. <ls_dynpro>-fields = lt_fields_to_containers. condense_flow( IMPORTING et_spaces = <ls_dynpro>-spaces CHANGING ct_flow = lt_flow_logic ). <ls_dynpro>-flow_logic = lt_flow_logic. ENDLOOP. ENDMETHOD. METHOD serialize_program. DATA: ls_progdir TYPE ty_progdir, lv_program_name TYPE programm, lt_dynpros TYPE ty_dynpro_tt, ls_cua TYPE ty_cua, lt_source TYPE TABLE OF abaptxt255, lt_tpool TYPE textpool_table, ls_tpool LIKE LINE OF lt_tpool, lo_xml TYPE REF TO zcl_abapgit_xml_output. IF iv_program IS INITIAL. lv_program_name = is_item-obj_name. ELSE. lv_program_name = iv_program. ENDIF. zcl_abapgit_language=>set_current_language( mv_language ). CALL FUNCTION 'RPY_PROGRAM_READ' EXPORTING program_name = lv_program_name with_lowercase = abap_true TABLES source_extended = lt_source textelements = lt_tpool EXCEPTIONS cancelled = 1 not_found = 2 permission_error = 3 OTHERS = 4. IF sy-subrc = 2. zcl_abapgit_language=>restore_login_language( ). RETURN. ELSEIF sy-subrc <> 0. zcl_abapgit_language=>restore_login_language( ). zcx_abapgit_exception=>raise( |Error reading program with RPY_PROGRAM_READ. Subrc = { sy-subrc }| ). ENDIF. zcl_abapgit_language=>restore_login_language( ). ls_progdir = read_progdir( lv_program_name ). IF io_xml IS BOUND. lo_xml = io_xml. ELSE. CREATE OBJECT lo_xml. ENDIF. lo_xml->add( iv_name = 'PROGDIR' ig_data = ls_progdir ). IF ls_progdir-subc = '1' OR ls_progdir-subc = 'M'. lt_dynpros = serialize_dynpros( lv_program_name ). lo_xml->add( iv_name = 'DYNPROS' ig_data = lt_dynpros ). ls_cua = serialize_cua( lv_program_name ). IF NOT ls_cua IS INITIAL. lo_xml->add( iv_name = 'CUA' ig_data = ls_cua ). ENDIF. ENDIF. READ TABLE lt_tpool WITH KEY id = 'R' INTO ls_tpool. IF sy-subrc = 0 AND ls_tpool-key = '' AND ls_tpool-length = 0. DELETE lt_tpool INDEX sy-tabix. ENDIF. lo_xml->add( iv_name = 'TPOOL' ig_data = add_tpool( lt_tpool ) ). IF NOT io_xml IS BOUND. io_files->add_xml( iv_extra = iv_extra io_xml = lo_xml ). ENDIF. io_files->add_abap( iv_extra = iv_extra it_abap = lt_source ). ENDMETHOD. METHOD uncondense_flow. DATA: lv_spaces LIKE LINE OF it_spaces. FIELD-SYMBOLS: <ls_flow> LIKE LINE OF it_flow, <ls_output> LIKE LINE OF rt_flow. LOOP AT it_flow ASSIGNING <ls_flow>. APPEND INITIAL LINE TO rt_flow ASSIGNING <ls_output>. <ls_output>-line = <ls_flow>-line. READ TABLE it_spaces INDEX sy-tabix INTO lv_spaces. IF sy-subrc = 0. SHIFT <ls_output>-line RIGHT BY lv_spaces PLACES IN CHARACTER MODE. ENDIF. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 23065, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 1676, 70, 15908, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 41876, 1172, 15908, 12, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1181, 220, 220, 41876, 1172, 15908, 12, 5219, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 44161, 87, 220, 220, 220, 41876, 1172, 15908, 12, 25410, 87, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1225, 17602, 220, 220, 220, 41876, 1172, 15908, 12, 276, 17602, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1401, 565, 220, 220, 41876, 1172, 15908, 12, 7785, 565, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 7012, 489, 220, 220, 41876, 1172, 15908, 12, 67, 7012, 489, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20613, 2616, 220, 220, 220, 41876, 1172, 15908, 12, 9945, 2616, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 537, 292, 220, 220, 220, 41876, 1172, 15908, 12, 565, 292, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 41876, 1172, 15908, 12, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8833, 220, 41876, 1172, 15908, 12, 13966, 1834, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 850, 66, 220, 220, 220, 41876, 1172, 15908, 12, 7266, 66, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3680, 220, 220, 220, 41876, 1172, 15908, 12, 1324, 75, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 792, 84, 220, 220, 220, 41876, 1172, 15908, 12, 2363, 84, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 7402, 220, 220, 220, 41876, 1172, 15908, 12, 66, 7402, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 19608, 220, 220, 220, 41876, 1172, 15908, 12, 10210, 265, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 555, 321, 220, 220, 220, 41876, 1172, 15908, 12, 403, 321, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 334, 19608, 220, 220, 220, 41876, 1172, 15908, 12, 463, 265, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 933, 220, 220, 220, 41876, 1172, 15908, 12, 933, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 443, 19279, 220, 220, 220, 41876, 1172, 15908, 12, 2768, 75, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 14269, 220, 220, 41876, 1172, 15908, 12, 81, 14269, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 22249, 220, 220, 41876, 1172, 15908, 12, 81, 22249, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 2220, 220, 220, 41876, 1172, 15908, 12, 81, 2220, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4259, 457, 220, 220, 41876, 1172, 15908, 12, 13049, 457, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 2617, 220, 220, 220, 41876, 1172, 15908, 12, 824, 316, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 4475, 220, 220, 41876, 1172, 15908, 12, 82, 4475, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 336, 524, 220, 220, 41876, 1172, 15908, 12, 301, 524, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 378, 220, 220, 41876, 1172, 15908, 12, 20540, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 524, 220, 220, 41876, 1172, 15908, 12, 22552, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 9945, 3672, 41876, 1172, 15908, 12, 335, 65, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 334, 535, 258, 694, 41876, 1172, 15908, 12, 18863, 258, 694, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 1676, 70, 15908, 13, 628, 220, 220, 220, 337, 36252, 50, 11389, 1096, 62, 23065, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 33245, 62, 19875, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 19875, 62, 22915, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 9186, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 16624, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16624, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 23065, 41876, 1430, 76, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 26086, 220, 220, 41876, 537, 522, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 1100, 62, 1676, 70, 15908, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 23065, 220, 220, 220, 220, 220, 220, 220, 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 1, 1, 1, 1, 1, 1, 1 ]
interface ZIF_I_CLIMO_ERROR_C public . interfaces /BOBF/IF_LIB_CONSTANTS . constants: BEGIN OF SC_ACTION, BEGIN OF Z_I_CLIMO_ERROR, CREATE_Z_I_CLIMO_ERROR TYPE /BOBF/ACT_KEY VALUE '080027A940B51EE899E785B259FE8432', DELETE_Z_I_CLIMO_ERROR TYPE /BOBF/ACT_KEY VALUE '080027A940B51EE899E785B259FF0432', LOCK_Z_I_CLIMO_ERROR TYPE /BOBF/ACT_KEY VALUE '080027A940B51EE899E785B259FDC432', SAVE_Z_I_CLIMO_ERROR TYPE /BOBF/ACT_KEY VALUE '080027A940B51EE899E785B259FF8432', UNLOCK_Z_I_CLIMO_ERROR TYPE /BOBF/ACT_KEY VALUE '080027A940B51EE899E785B259FE0432', UPDATE_Z_I_CLIMO_ERROR TYPE /BOBF/ACT_KEY VALUE '080027A940B51EE899E785B259FEC432', VALIDATE_Z_I_CLIMO_ERROR TYPE /BOBF/ACT_KEY VALUE '080027A940B51EE899E785B259FF4432', END OF Z_I_CLIMO_ERROR, END OF SC_ACTION . constants: BEGIN OF SC_ACTION_ATTRIBUTE, BEGIN OF Z_I_CLIMO_ERROR, BEGIN OF LOCK_Z_I_CLIMO_ERROR, GENERIC TYPE STRING VALUE 'GENERIC', EDIT_MODE TYPE STRING VALUE 'EDIT_MODE', ALL_NONE TYPE STRING VALUE 'ALL_NONE', SCOPE TYPE STRING VALUE 'SCOPE', FORCE_INVALIDATION TYPE STRING VALUE 'FORCE_INVALIDATION', LOCK_PARAMETER_BUFFER TYPE STRING VALUE 'LOCK_PARAMETER_BUFFER', END OF LOCK_Z_I_CLIMO_ERROR, BEGIN OF UNLOCK_Z_I_CLIMO_ERROR, GENERIC TYPE STRING VALUE 'GENERIC', EDIT_MODE TYPE STRING VALUE 'EDIT_MODE', ALL_NONE TYPE STRING VALUE 'ALL_NONE', SCOPE TYPE STRING VALUE 'SCOPE', FORCE_INVALIDATION TYPE STRING VALUE 'FORCE_INVALIDATION', LOCK_PARAMETER_BUFFER TYPE STRING VALUE 'LOCK_PARAMETER_BUFFER', END OF UNLOCK_Z_I_CLIMO_ERROR, END OF Z_I_CLIMO_ERROR, END OF SC_ACTION_ATTRIBUTE . constants: BEGIN OF SC_ALTERNATIVE_KEY, BEGIN OF Z_I_CLIMO_ERROR, DB_KEY TYPE /BOBF/OBM_ALTKEY_KEY VALUE '080027A940B51EE899E785D727418432', END OF Z_I_CLIMO_ERROR, END OF SC_ALTERNATIVE_KEY . constants: BEGIN OF SC_ASSOCIATION, BEGIN OF Z_I_CLIMO_ERROR, LOCK TYPE /BOBF/OBM_ASSOC_KEY VALUE '080027A940B51EE899E785B259FDA432', MESSAGE TYPE /BOBF/OBM_ASSOC_KEY VALUE '080027A940B51EE899E785B259FD6432', PROPERTY TYPE /BOBF/OBM_ASSOC_KEY VALUE '080027A940B51EE899E785B259FE6432', END OF Z_I_CLIMO_ERROR, BEGIN OF Z_I_CLIMO_ERROR_LOCK, TO_PARENT TYPE /BOBF/OBM_ASSOC_KEY VALUE '080027A940B51EE899E785B259FFE432', END OF Z_I_CLIMO_ERROR_LOCK, BEGIN OF Z_I_CLIMO_ERROR_MESSAGE, TO_PARENT TYPE /BOBF/OBM_ASSOC_KEY VALUE '080027A940B51EE899E785B259FFC432', END OF Z_I_CLIMO_ERROR_MESSAGE, BEGIN OF Z_I_CLIMO_ERROR_PROPERTY, TO_PARENT TYPE /BOBF/OBM_ASSOC_KEY VALUE '080027A940B51EE899E785B25A000432', END OF Z_I_CLIMO_ERROR_PROPERTY, END OF SC_ASSOCIATION . constants: BEGIN OF SC_ASSOCIATION_ATTRIBUTE, BEGIN OF Z_I_CLIMO_ERROR, BEGIN OF PROPERTY, ALL_NODE_PROPERTY TYPE STRING VALUE 'ALL_NODE_PROPERTY', ALL_NODE_ATTRIBUTE_PROPERTY TYPE STRING VALUE 'ALL_NODE_ATTRIBUTE_PROPERTY', ALL_ASSOCIATION_PROPERTY TYPE STRING VALUE 'ALL_ASSOCIATION_PROPERTY', ALL_ASSOCIATION_ATTRIBUTE_PROP TYPE STRING VALUE 'ALL_ASSOCIATION_ATTRIBUTE_PROP', ALL_ACTION_PROPERTY TYPE STRING VALUE 'ALL_ACTION_PROPERTY', ALL_ACTION_ATTRIBUTE_PROPERTY TYPE STRING VALUE 'ALL_ACTION_ATTRIBUTE_PROPERTY', ALL_QUERY_PROPERTY TYPE STRING VALUE 'ALL_QUERY_PROPERTY', ALL_QUERY_ATTRIBUTE_PROPERTY TYPE STRING VALUE 'ALL_QUERY_ATTRIBUTE_PROPERTY', ALL_SUBTREE_PROPERTY TYPE STRING VALUE 'ALL_SUBTREE_PROPERTY', END OF PROPERTY, END OF Z_I_CLIMO_ERROR, END OF SC_ASSOCIATION_ATTRIBUTE . constants: SC_BO_KEY TYPE /BOBF/OBM_BO_KEY VALUE '080027A940B51EE899E785B259FCC432' . constants: SC_BO_NAME TYPE /BOBF/OBM_NAME VALUE 'Z_I_CLIMO_ERROR' . constants: SC_MODEL_VERSION TYPE /BOBF/CONF_VERSION VALUE '00000' . constants: BEGIN OF SC_NODE, Z_I_CLIMO_ERROR TYPE /BOBF/OBM_NODE_KEY VALUE '080027A940B51EE899E785B259FD0432', Z_I_CLIMO_ERROR_LOCK TYPE /BOBF/OBM_NODE_KEY VALUE '080027A940B51EE899E785B259FD8432', Z_I_CLIMO_ERROR_MESSAGE TYPE /BOBF/OBM_NODE_KEY VALUE '080027A940B51EE899E785B259FD4432', Z_I_CLIMO_ERROR_PROPERTY TYPE /BOBF/OBM_NODE_KEY VALUE '080027A940B51EE899E785B259FE4432', END OF SC_NODE . constants: BEGIN OF SC_NODE_ATTRIBUTE, BEGIN OF Z_I_CLIMO_ERROR, NODE_DATA TYPE STRING VALUE 'NODE_DATA', TYPE TYPE STRING VALUE 'TYPE', MESSAGE TYPE STRING VALUE 'MESSAGE', HOST_NAME TYPE STRING VALUE 'HOST_NAME', PORT TYPE STRING VALUE 'PORT', PATH_NAME TYPE STRING VALUE 'PATH_NAME', SEARCH TYPE STRING VALUE 'SEARCH', TIMESTAMP TYPE STRING VALUE 'TIMESTAMP', SOURCE TYPE STRING VALUE 'SOURCE', LINE_NO TYPE STRING VALUE 'LINE_NO', COL_NO TYPE STRING VALUE 'COL_NO', CLIENT_USER TYPE STRING VALUE 'CLIENT_USER', END OF Z_I_CLIMO_ERROR, END OF SC_NODE_ATTRIBUTE . constants: BEGIN OF SC_NODE_CATEGORY, BEGIN OF Z_I_CLIMO_ERROR, ROOT TYPE /BOBF/OBM_NODE_CAT_KEY VALUE '080027A940B51EE899E785B259FD2432', END OF Z_I_CLIMO_ERROR, END OF SC_NODE_CATEGORY . endinterface.
[ 39994, 1168, 5064, 62, 40, 62, 5097, 3955, 46, 62, 24908, 62, 34, 198, 220, 1171, 764, 628, 198, 220, 20314, 1220, 8202, 29499, 14, 5064, 62, 40347, 62, 10943, 2257, 1565, 4694, 764, 628, 220, 38491, 25, 198, 220, 220, 220, 347, 43312, 3963, 6374, 62, 44710, 11, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1168, 62, 40, 62, 5097, 3955, 46, 62, 24908, 11, 198, 29244, 6158, 62, 57, 62, 40, 62, 5097, 3955, 46, 62, 24908, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 8202, 29499, 14, 10659, 62, 20373, 26173, 8924, 705, 2919, 405, 1983, 32, 46899, 33, 4349, 6500, 44093, 36, 41172, 33, 25191, 15112, 5705, 2624, 3256, 198, 5550, 2538, 9328, 62, 57, 62, 40, 62, 5097, 3955, 46, 62, 24908, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 8202, 29499, 14, 10659, 62, 20373, 26173, 8924, 705, 2919, 405, 1983, 32, 46899, 33, 4349, 6500, 44093, 36, 41172, 33, 25191, 5777, 3023, 2624, 3256, 198, 406, 11290, 62, 57, 62, 40, 62, 5097, 3955, 46, 62, 24908, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 8202, 29499, 14, 10659, 62, 20373, 26173, 8924, 705, 2919, 405, 1983, 32, 46899, 33, 4349, 6500, 44093, 36, 41172, 33, 25191, 37, 9697, 45331, 3256, 198, 14719, 6089, 62, 57, 62, 40, 62, 5097, 3955, 46, 62, 24908, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 8202, 29499, 14, 10659, 62, 20373, 26173, 8924, 705, 2919, 405, 1983, 32, 46899, 33, 4349, 6500, 44093, 36, 41172, 33, 25191, 5777, 5705, 2624, 3256, 198, 4725, 36840, 62, 57, 62, 40, 62, 5097, 3955, 46, 62, 24908, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 8202, 29499, 14, 10659, 62, 20373, 26173, 8924, 705, 2919, 405, 1983, 32, 46899, 33, 4349, 6500, 44093, 36, 41172, 33, 25191, 15112, 3023, 2624, 3256, 198, 35717, 62, 57, 62, 40, 62, 5097, 3955, 46, 62, 24908, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 8202, 29499, 14, 10659, 62, 20373, 26173, 8924, 705, 2919, 405, 1983, 32, 46899, 33, 4349, 6500, 44093, 36, 41172, 33, 25191, 37, 2943, 45331, 3256, 198, 26173, 2389, 6158, 62, 57, 62, 40, 62, 5097, 3955, 46, 62, 24908, 220, 220, 220, 220, 220, 220, 41876, 1220, 8202, 29499, 14, 10659, 62, 20373, 26173, 8924, 705, 2919, 405, 1983, 32, 46899, 33, 4349, 6500, 44093, 36, 41172, 33, 25191, 5777, 2598, 2624, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 1168, 62, 40, 62, 5097, 3955, 46, 62, 24908, 11, 198, 220, 220, 220, 23578, 3963, 6374, 62, 44710, 764, 198, 220, 38491, 25, 198, 220, 220, 220, 347, 43312, 3963, 6374, 62, 44710, 62, 1404, 5446, 9865, 37780, 11, 198, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 1168, 62, 40, 62, 5097, 3955, 46, 62, 24908, 11, 198, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 406, 11290, 62, 57, 62, 40, 62, 5097, 3955, 46, 62, 24908, 11, 198, 24700, 1137, 2149, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 19269, 2751, 26173, 8924, 705, 35353, 1137, 2149, 3256, 198, 48483, 62, 49058, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 19269, 2751, 26173, 8924, 705, 24706, 62, 49058, 3256, 198, 11096, 62, 45, 11651, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 19269, 2751, 26173, 8924, 705, 7036, 62, 45, 11651, 3256, 198, 6374, 32135, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 19269, 2751, 26173, 8924, 705, 6173, 32135, 3256, 198, 7473, 5222, 62, 1268, 23428, 2389, 6234, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 19269, 2751, 26173, 8924, 705, 13775, 5222, 62, 1268, 23428, 2389, 6234, 3256, 198, 406, 11290, 62, 27082, 2390, 2767, 1137, 62, 19499, 45746, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 19269, 2751, 26173, 8924, 705, 36840, 62, 27082, 2390, 2767, 1137, 62, 19499, 45746, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 406, 11290, 62, 57, 62, 40, 62, 5097, 3955, 46, 62, 24908, 11, 198, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 4725, 36840, 62, 57, 62, 40, 62, 5097, 3955, 46, 62, 24908, 11, 198, 24700, 1137, 2149, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 19269, 2751, 26173, 8924, 705, 35353, 1137, 2149, 3256, 198, 48483, 62, 49058, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 19269, 2751, 26173, 8924, 705, 24706, 62, 49058, 3256, 198, 11096, 62, 45, 11651, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 19269, 2751, 26173, 8924, 705, 7036, 62, 45, 11651, 3256, 198, 6374, 32135, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 19269, 2751, 26173, 8924, 705, 6173, 32135, 3256, 198, 7473, 5222, 62, 1268, 23428, 2389, 6234, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 19269, 2751, 26173, 8924, 705, 13775, 5222, 62, 1268, 23428, 2389, 6234, 3256, 198, 406, 11290, 62, 27082, 2390, 2767, 1137, 62, 19499, 45746, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 19269, 2751, 26173, 8924, 705, 36840, 62, 27082, 2390, 2767, 1137, 62, 19499, 45746, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 4725, 36840, 62, 57, 62, 40, 62, 5097, 3955, 46, 62, 24908, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1168, 62, 40, 62, 5097 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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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 ]
CLASS zcl_ntlm_arc4 DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. *"* public components of class ZCL_NTLM_ARC4 *"* do not include other source files here!!! CLASS-METHODS decrypt IMPORTING !iv_key TYPE string !iv_ciphertext TYPE xstring RETURNING VALUE(rv_plaintext) TYPE string RAISING cx_static_check . CLASS-METHODS decrypt_hex IMPORTING !iv_key TYPE xstring !iv_ciphertext TYPE xstring RETURNING VALUE(rv_plaintext) TYPE xstring RAISING cx_static_check . CLASS-METHODS encrypt IMPORTING !iv_key TYPE string !iv_plaintext TYPE string RETURNING VALUE(rv_ciphertext) TYPE xstring RAISING cx_static_check . CLASS-METHODS encrypt_hex IMPORTING !iv_key TYPE xstring !iv_plaintext TYPE xstring RETURNING VALUE(rv_ciphertext) TYPE xstring RAISING cx_static_check . PROTECTED SECTION. *"* protected components of class ZCL_NTLM_ARC4 *"* do not include other source files here!!! TYPES: ty_s TYPE x LENGTH 256 . CLASS-METHODS keystream IMPORTING !iv_key TYPE xstring !iv_length TYPE i RETURNING VALUE(rv_keystream) TYPE xstring RAISING cx_static_check . CLASS-METHODS ksa IMPORTING !iv_xkey TYPE xstring RETURNING VALUE(rv_s) TYPE ty_s . CLASS-METHODS prga IMPORTING !iv_s TYPE ty_s !iv_length TYPE i RETURNING VALUE(rv_k) TYPE xstring . CLASS-METHODS to_string IMPORTING !iv_xstring TYPE xstring RETURNING VALUE(rv_string) TYPE string RAISING cx_static_check . CLASS-METHODS to_xstring IMPORTING !iv_string TYPE string RETURNING VALUE(rv_xstring) TYPE xstring RAISING cx_static_check . CLASS-METHODS xor IMPORTING !iv_val1 TYPE xstring !iv_val2 TYPE xstring RETURNING VALUE(rv_res) TYPE xstring . PRIVATE SECTION. *"* private components of class ZCL_NTLM_ARC4 *"* do not include other source files here!!! ENDCLASS. CLASS ZCL_NTLM_ARC4 IMPLEMENTATION. METHOD decrypt. DATA: lv_xstr TYPE xstring. lv_xstr = decrypt_hex( iv_key = to_xstring( iv_key ) iv_ciphertext = iv_ciphertext ). rv_plaintext = to_string( lv_xstr ). ENDMETHOD. METHOD decrypt_hex. rv_plaintext = encrypt_hex( iv_key = iv_key iv_plaintext = iv_ciphertext ). ENDMETHOD. METHOD encrypt. * The MIT License (MIT) * * Copyright (c) 2015 Lars Hvam * * 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. rv_ciphertext = encrypt_hex( iv_key = to_xstring( iv_key ) iv_plaintext = to_xstring( iv_plaintext ) ). ENDMETHOD. METHOD encrypt_hex. DATA: lv_k TYPE xstring. lv_k = keystream( iv_key = iv_key iv_length = xstrlen( iv_plaintext ) ). rv_ciphertext = xor( iv_val1 = lv_k iv_val2 = iv_plaintext ). ENDMETHOD. METHOD keystream. DATA: lv_s TYPE ty_s. lv_s = ksa( iv_key ). rv_keystream = prga( iv_s = lv_s iv_length = iv_length ). ENDMETHOD. METHOD ksa. DATA: lv_offset TYPE i, lv_j TYPE i, lv_i TYPE i, lv_x TYPE x. DO 256 TIMES. lv_offset = sy-index - 1. rv_s+lv_offset(1) = lv_offset. ENDDO. WHILE lv_i < 256. lv_offset = lv_i MOD xstrlen( iv_xkey ). lv_j = ( lv_j + rv_s+lv_i(1) + iv_xkey+lv_offset(1) ) MOD 256. lv_x = rv_s+lv_i(1). rv_s+lv_i(1) = rv_s+lv_j(1). rv_s+lv_j(1) = lv_x. lv_i = lv_i + 1. ENDWHILE. ENDMETHOD. METHOD prga. DATA: lv_x TYPE x, lv_j TYPE i, lv_i TYPE i, lv_s LIKE iv_s, lv_offset TYPE i. lv_s = iv_s. DO iv_length TIMES. lv_i = ( lv_i + 1 ) MOD 256. lv_j = ( lv_j + lv_s+lv_i(1) ) MOD 256. lv_x = lv_s+lv_i(1). lv_s+lv_i(1) = lv_s+lv_j(1). lv_s+lv_j(1) = lv_x. lv_offset = ( lv_s+lv_i(1) + lv_s+lv_j(1) ) MOD 256. lv_x = lv_s+lv_offset(1). CONCATENATE rv_k lv_x INTO rv_k IN BYTE MODE. ENDDO. ENDMETHOD. METHOD to_string. DATA: lv_len TYPE i, lo_obj TYPE REF TO cl_abap_conv_in_ce. lo_obj = cl_abap_conv_in_ce=>create( input = iv_xstring encoding = 'UTF-8' ). lv_len = xstrlen( iv_xstring ). lo_obj->read( EXPORTING n = lv_len IMPORTING data = rv_string ). ENDMETHOD. METHOD to_xstring. DATA: lo_obj TYPE REF TO cl_abap_conv_out_ce. lo_obj = cl_abap_conv_out_ce=>create( encoding = 'UTF-8' ). lo_obj->convert( EXPORTING data = iv_string IMPORTING buffer = rv_xstring ). ENDMETHOD. METHOD xor. DATA: lv_x TYPE x, lv_offset TYPE i. ASSERT xstrlen( iv_val1 ) = xstrlen( iv_val2 ). DO xstrlen( iv_val1 ) TIMES. lv_offset = sy-index - 1. lv_x = iv_val1+lv_offset(1) BIT-XOR iv_val2+lv_offset(1). CONCATENATE rv_res lv_x INTO rv_res IN BYTE MODE. ENDDO. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 429, 75, 76, 62, 5605, 19, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 11251, 31288, 62, 25793, 19, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 220, 220, 42715, 12, 49273, 50, 42797, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 66, 10803, 5239, 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, 81, 85, 62, 25638, 5239, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 12708, 62, 9122, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 42797, 62, 33095, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 66, 10803, 5239, 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, 81, 85, 62, 25638, 5239, 8, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 12708, 62, 9122, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 34117, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 25638, 5239, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 66, 10803, 5239, 8, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 12708, 62, 9122, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 34117, 62, 33095, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 25638, 5239, 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, 81, 85, 62, 66, 10803, 5239, 8, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 12708, 62, 9122, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 5097, 62, 11251, 31288, 62, 25793, 19, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 82, 41876, 2124, 406, 49494, 17759, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 1994, 5532, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 13664, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 2539, 5532, 8, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 12708, 62, 9122, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 479, 11400, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 87, 2539, 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, 81, 85, 62, 82, 8, 41876, 1259, 62, 82, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 778, 4908, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 82, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 82, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 13664, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 74, 8, 41876, 2124, 8841, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 284, 62, 8841, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 87, 8841, 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, 81, 85, 62, 8841, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 12708, 62, 9122, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 284, 62, 87, 8841, 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, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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_EXT definition public inheriting from ZCL_ZCA_GW_ATTACHMENT_DPC create public . public section. methods /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_STREAM redefinition . methods /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_STREAM redefinition . protected section. data GO_ATTACH type ref to ZIF_CA_ATTACHMENT_SERVICE . methods ATTACHKEYSET_GET_ENTITY redefinition . methods ATTACHMENTSET_DELETE_ENTITY redefinition . methods ATTACHMENTSET_GET_ENTITY redefinition . methods ATTACHMENTSET_GET_ENTITYSET redefinition . methods COMMENTSET_CREATE_ENTITY redefinition . methods COMMENTSET_DELETE_ENTITY redefinition . methods COMMENTSET_GET_ENTITY redefinition . methods COMMENTSET_GET_ENTITYSET redefinition . methods ATTACHMENTSET_UPDATE_ENTITY redefinition . PRIVATE SECTION. ENDCLASS. CLASS ZCL_ZCA_GW_ATTACHMENT_DPC_EXT IMPLEMENTATION. METHOD /iwbep/if_mgw_appl_srv_runtime~create_stream. CASE iv_entity_set_name. WHEN 'AttachmentSet'. IF NOT go_attach IS BOUND. go_attach = NEW zcl_ca_attachment_service( ). ENDIF. " Get Message Container CALL METHOD me->/iwbep/if_mgw_conv_srv_runtime~get_message_container RECEIVING ro_message_container = DATA(lo_mesg_cont). go_attach->create_attachment_stream( EXPORTING iv_entity_name = iv_entity_name iv_entity_set_name = iv_entity_set_name iv_source_name = iv_source_name is_media_resource = is_media_resource it_key_tab = it_key_tab " table for name value pairs it_navigation_path = it_navigation_path " table of navigation paths iv_slug = iv_slug io_tech_request_context = io_tech_request_context " Request Details for Entity Create Operation io_message = lo_mesg_cont IMPORTING er_entity = DATA(ls_entity) ). copy_data_to_ref( EXPORTING is_data = ls_entity CHANGING cr_data = er_entity ). WHEN OTHERS. ENDCASE. ENDMETHOD. METHOD /iwbep/if_mgw_appl_srv_runtime~get_stream. DATA: ls_header TYPE ihttpnvp, lv_name_utf8 TYPE string. CASE iv_entity_set_name. WHEN 'AttachmentSet'. IF NOT go_attach IS BOUND. go_attach = NEW zcl_ca_attachment_service( ). ENDIF. go_attach->get_attachment_stream( EXPORTING iv_entity_name = iv_entity_name iv_entity_set_name = iv_entity_set_name iv_source_name = iv_source_name it_key_tab = it_key_tab " table for name value pairs it_navigation_path = it_navigation_path " table of navigation paths io_tech_request_context = io_tech_request_context " Request Details for Entity Read Operation IMPORTING ev_file_name = DATA(lv_filename) es_media_resource = DATA(ls_media) ). " Passs File Name for Downloadable Content as Header Data CLEAR ls_header. ls_header-name = 'Content-Disposition'. " ABAP Esacping Character Support lv_name_utf8 = cl_abap_dyn_prg=>escape_xss_url( val = lv_filename ). REPLACE ALL OCCURRENCES OF '%2e' IN lv_name_utf8 WITH '.'. CONCATENATE 'attachment; filename*=UTF-8''''' lv_name_utf8 INTO ls_header-value. set_header( is_header = ls_header ). " Media Resource copy_data_to_ref( EXPORTING is_data = ls_media CHANGING cr_data = er_stream ). WHEN OTHERS. ENDCASE. ENDMETHOD. METHOD attachkeyset_get_entity. IF NOT go_attach IS BOUND. go_attach = NEW zcl_ca_attachment_service( ). ENDIF. go_attach->extrack_key( EXPORTING it_key_tab = it_key_tab IMPORTING es_key = DATA(ls_key) ). er_entity = CORRESPONDING #( ls_key ). ENDMETHOD. METHOD attachmentset_delete_entity. IF NOT go_attach IS BOUND. go_attach = NEW zcl_ca_attachment_service( ). ENDIF. go_attach->attachmentset_delete_entity( EXPORTING iv_entity_name = iv_entity_name iv_entity_set_name = iv_entity_set_name iv_source_name = iv_source_name it_key_tab = it_key_tab io_tech_request_context = io_tech_request_context it_navigation_path = it_navigation_path ). ENDMETHOD. METHOD attachmentset_get_entity. IF NOT go_attach IS BOUND. go_attach = NEW zcl_ca_attachment_service( ). ENDIF. go_attach->attachmentset_get_entity( EXPORTING iv_entity_name = iv_entity_name iv_entity_set_name = iv_entity_set_name iv_source_name = iv_source_name it_key_tab = it_key_tab io_request_object = io_request_object io_tech_request_context = io_tech_request_context it_navigation_path = it_navigation_path IMPORTING er_entity = DATA(ls_entity) es_response_context = es_response_context ). er_entity = CORRESPONDING #( ls_entity ). ENDMETHOD. METHOD attachmentset_get_entityset. IF NOT go_attach IS BOUND. go_attach = NEW zcl_ca_attachment_service( ). ENDIF. go_attach->attachmentset_get_entityset( EXPORTING iv_entity_name = iv_entity_name iv_entity_set_name = iv_entity_set_name iv_source_name = iv_source_name it_filter_select_options = it_filter_select_options is_paging = is_paging it_key_tab = it_key_tab it_navigation_path = it_navigation_path it_order = it_order iv_filter_string = iv_filter_string iv_search_string = iv_search_string io_tech_request_context = io_tech_request_context IMPORTING et_entityset = DATA(lt_entityset) es_response_context = es_response_context ). et_entityset = CORRESPONDING #( lt_entityset ). ENDMETHOD. METHOD attachmentset_update_entity. IF NOT go_attach IS BOUND. go_attach = NEW zcl_ca_attachment_service( ). ENDIF. go_attach->attachmentset_update_entity( EXPORTING iv_entity_name = iv_entity_name iv_entity_set_name = iv_entity_set_name iv_source_name = iv_source_name it_key_tab = it_key_tab io_tech_request_context = io_tech_request_context it_navigation_path = it_navigation_path io_data_provider = io_data_provider IMPORTING er_entity = DATA(ls_entity) ). er_entity = CORRESPONDING #( ls_entity ). ENDMETHOD. METHOD commentset_create_entity. IF NOT go_attach IS BOUND. go_attach = NEW zcl_ca_attachment_service( ). ENDIF. " Get Message Container CALL METHOD me->/iwbep/if_mgw_conv_srv_runtime~get_message_container RECEIVING ro_message_container = DATA(lo_mesg_cont). go_attach->commentset_create_entity( EXPORTING iv_entity_name = iv_entity_name iv_entity_set_name = iv_entity_set_name iv_source_name = iv_source_name it_key_tab = it_key_tab io_tech_request_context = io_tech_request_context it_navigation_path = it_navigation_path io_data_provider = io_data_provider io_message = lo_mesg_cont IMPORTING er_entity = DATA(ls_entity) ). er_entity = CORRESPONDING #( ls_entity ). ENDMETHOD. METHOD commentset_delete_entity. IF NOT go_attach IS BOUND. go_attach = NEW zcl_ca_attachment_service( ). ENDIF. go_attach->commentset_delete_entity( EXPORTING iv_entity_name = iv_entity_name iv_entity_set_name = iv_entity_set_name iv_source_name = iv_source_name it_key_tab = it_key_tab io_tech_request_context = io_tech_request_context it_navigation_path = it_navigation_path ). ENDMETHOD. METHOD commentset_get_entity. IF NOT go_attach IS BOUND. go_attach = NEW zcl_ca_attachment_service( ). ENDIF. go_attach->commentset_get_entity( EXPORTING iv_entity_name = iv_entity_name iv_entity_set_name = iv_entity_set_name iv_source_name = iv_source_name it_key_tab = it_key_tab io_request_object = io_request_object io_tech_request_context = io_tech_request_context it_navigation_path = it_navigation_path IMPORTING er_entity = DATA(ls_entity) es_response_context = es_response_context ). er_entity = CORRESPONDING #( ls_entity ). ENDMETHOD. METHOD commentset_get_entityset. IF NOT go_attach IS BOUND. go_attach = NEW zcl_ca_attachment_service( ). ENDIF. go_attach->commentset_get_entityset( EXPORTING iv_entity_name = iv_entity_name iv_entity_set_name = iv_entity_set_name iv_source_name = iv_source_name it_filter_select_options = it_filter_select_options is_paging = is_paging it_key_tab = it_key_tab it_navigation_path = it_navigation_path it_order = it_order iv_filter_string = iv_filter_string iv_search_string = iv_search_string io_tech_request_context = io_tech_request_context IMPORTING et_entityset = DATA(lt_entityset) es_response_context = es_response_context ). et_entityset = CORRESPONDING #( lt_entityset ). ENDMETHOD. ENDCLASS.
[ 4871, 1168, 5097, 62, 57, 8141, 62, 33191, 62, 17139, 16219, 10979, 62, 35, 5662, 62, 13918, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1168, 5097, 62, 57, 8141, 62, 33191, 62, 17139, 16219, 10979, 62, 35, 5662, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 5050, 1220, 40, 45607, 8905, 14, 5064, 62, 20474, 54, 62, 2969, 6489, 62, 12562, 53, 62, 49, 4944, 34694, 93, 43387, 6158, 62, 2257, 32235, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 1220, 40, 45607, 8905, 14, 5064, 62, 20474, 54, 62, 2969, 6489, 62, 12562, 53, 62, 49, 4944, 34694, 93, 18851, 62, 2257, 32235, 198, 220, 220, 220, 34087, 17750, 764, 198, 24326, 2665, 13, 628, 220, 1366, 10351, 62, 17139, 16219, 2099, 1006, 284, 1168, 5064, 62, 8141, 62, 17139, 16219, 10979, 62, 35009, 27389, 764, 628, 220, 5050, 26195, 16219, 7336, 16309, 2767, 62, 18851, 62, 3525, 9050, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 26195, 16219, 10979, 28480, 62, 7206, 2538, 9328, 62, 3525, 9050, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 26195, 16219, 10979, 28480, 62, 18851, 62, 3525, 9050, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 26195, 16219, 10979, 28480, 62, 18851, 62, 3525, 9050, 28480, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 9440, 10979, 28480, 62, 43387, 6158, 62, 3525, 9050, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 9440, 10979, 28480, 62, 7206, 2538, 9328, 62, 3525, 9050, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 9440, 10979, 28480, 62, 18851, 62, 3525, 9050, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 9440, 10979, 28480, 62, 18851, 62, 3525, 9050, 28480, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 26195, 16219, 10979, 28480, 62, 16977, 62, 3525, 9050, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 57, 8141, 62, 33191, 62, 17139, 16219, 10979, 62, 35, 5662, 62, 13918, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1220, 14246, 65, 538, 14, 361, 62, 11296, 86, 62, 1324, 75, 62, 27891, 85, 62, 43282, 93, 17953, 62, 5532, 13, 198, 220, 220, 220, 42001, 21628, 62, 26858, 62, 2617, 62, 3672, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 8086, 15520, 7248, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 5626, 467, 62, 47348, 3180, 347, 15919, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 467, 62, 47348, 796, 12682, 1976, 565, 62, 6888, 62, 1078, 15520, 62, 15271, 7, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 220, 220, 366, 3497, 16000, 43101, 198, 220, 220, 220, 220, 220, 220, 220, 42815, 337, 36252, 502, 3784, 14, 14246, 65, 538, 14, 361, 62, 11296, 86, 62, 42946, 62, 27891, 85, 62, 43282, 93, 1136, 62, 20500, 62, 34924, 198, 220, 220, 220, 220, 220, 220, 220, 19644, 36, 3824, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 686, 62, 20500, 62, 34924, 796, 42865, 7, 5439, 62, 6880, 70, 62, 3642, 737, 628, 220, 220, 220, 220, 220, 220, 220, 467, 62, 47348, 3784, 17953, 62, 1078, 15520, 62, 5532, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 26858, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 26858, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 26858, 62, 2617, 62, 3672, 220, 220, 220, 220, 220, 796, 21628, 62, 26858, 62, 2617, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 10459, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 10459, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 11431, 62, 31092, 220, 220, 220, 220, 220, 220, 796, 318, 62, 11431, 62, 31092, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 2539, 62, 8658, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 340, 62, 2539, 62, 8658, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 3084, 329, 1438, 1988, 14729, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 28341, 7065, 62, 6978, 220, 220, 220, 220, 220, 796, 340, 62, 28341, 7065, 62, 6978, 220, 220, 220, 220, 220, 220, 220, 220, 366, 3084, 286, 16408, 13532, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 6649, 1018, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 6649, 1018, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 13670, 62, 25927, 62, 22866, 796, 33245, 62, 13670, 62, 25927, 62, 22866, 220, 220, 220, 366, 19390, 14890, 329, 20885, 13610, 14680, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 20500, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2376, 62, 6880, 70, 62, 3642, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1931, 62, 26858, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 42865, 7, 7278, 62, 26858, 8, 198, 220, 220, 220, 220, 220, 220, 220, 6739, 628, 220, 220, 220, 220, 220, 220, 220, 4866, 62, 7890, 62, 1462, 62, 5420, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 7890, 796, 43979, 62, 26858, 198, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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constructor IMPORTING !iv_main_language_only TYPE abap_bool DEFAULT abap_false !it_translation_langs TYPE zif_abapgit_definitions=>ty_languages OPTIONAL. METHODS on_end_of_task IMPORTING !p_task TYPE clike . METHODS serialize IMPORTING !it_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt !iv_language TYPE langu DEFAULT sy-langu !ii_log TYPE REF TO zif_abapgit_log OPTIONAL !iv_force_sequential TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . METHODS files_local IMPORTING !iv_package TYPE devclass !io_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit !is_local_settings TYPE zif_abapgit_persistence=>ty_repo-local_settings !ii_log TYPE REF TO zif_abapgit_log !it_filter TYPE zif_abapgit_definitions=>ty_tadir_tt OPTIONAL !ii_data_config TYPE REF TO zif_abapgit_data_config OPTIONAL RETURNING VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . PROTECTED SECTION. TYPES: BEGIN OF ty_unsupported_count, obj_type TYPE tadir-object, obj_name TYPE tadir-obj_name, count TYPE i, END OF ty_unsupported_count . TYPES: ty_unsupported_count_tt TYPE HASHED TABLE OF ty_unsupported_count WITH UNIQUE KEY obj_type . TYPES: ty_char32 TYPE c LENGTH 32 . CLASS-DATA gv_max_threads TYPE i . DATA mt_files TYPE zif_abapgit_definitions=>ty_files_item_tt . DATA mv_free TYPE i . DATA mi_log TYPE REF TO zif_abapgit_log . DATA mv_group TYPE rzlli_apcl . DATA mv_main_language_only TYPE abap_bool . DATA mt_translation_langs TYPE zif_abapgit_definitions=>ty_languages . METHODS add_apack IMPORTING !iv_package TYPE devclass CHANGING !ct_files TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . METHODS add_data IMPORTING !ii_data_config TYPE REF TO zif_abapgit_data_config !io_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit CHANGING !ct_files TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . METHODS add_dot_abapgit IMPORTING !io_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit CHANGING !ct_files TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . METHODS add_to_return IMPORTING !iv_path TYPE string !is_file_item TYPE zif_abapgit_objects=>ty_serialization . METHODS run_parallel IMPORTING !is_tadir TYPE zif_abapgit_definitions=>ty_tadir !iv_language TYPE langu !iv_task TYPE ty_char32 RAISING zcx_abapgit_exception . METHODS run_sequential IMPORTING !is_tadir TYPE zif_abapgit_definitions=>ty_tadir !iv_language TYPE langu RAISING zcx_abapgit_exception . METHODS add_objects IMPORTING !iv_package TYPE devclass !io_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit !is_local_settings TYPE zif_abapgit_persistence=>ty_repo-local_settings !ii_log TYPE REF TO zif_abapgit_log !it_filter TYPE zif_abapgit_definitions=>ty_tadir_tt OPTIONAL CHANGING VALUE(ct_files) TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . METHODS determine_max_threads IMPORTING !iv_force_sequential TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rv_threads) TYPE i RAISING zcx_abapgit_exception . METHODS filter_unsupported_objects CHANGING !ct_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt . PRIVATE SECTION. ENDCLASS. CLASS zcl_abapgit_serialize IMPLEMENTATION. METHOD add_apack. DATA ls_apack_file TYPE zif_abapgit_definitions=>ty_file. FIELD-SYMBOLS <ls_file> LIKE LINE OF ct_files. ls_apack_file = zcl_abapgit_apack_helper=>to_file( iv_package ). IF ls_apack_file IS NOT INITIAL. APPEND INITIAL LINE TO ct_files ASSIGNING <ls_file>. <ls_file>-file = ls_apack_file. ENDIF. ENDMETHOD. METHOD add_data. DATA lt_files TYPE zif_abapgit_definitions=>ty_files_tt. DATA ls_file LIKE LINE OF lt_files. FIELD-SYMBOLS <ls_return> LIKE LINE OF ct_files. IF ii_data_config IS INITIAL. RETURN. ENDIF. lt_files = ii_data_config->to_json( ). LOOP AT lt_files INTO ls_file. APPEND INITIAL LINE TO ct_files ASSIGNING <ls_return>. <ls_return>-file = ls_file. " Derive object from config filename (namespace + escaping) zcl_abapgit_filename_logic=>file_to_object( EXPORTING iv_filename = <ls_return>-file-filename iv_path = <ls_return>-file-path io_dot = io_dot_abapgit IMPORTING es_item = <ls_return>-item ). <ls_return>-item-obj_type = 'TABU'. ENDLOOP. lt_files = zcl_abapgit_data_factory=>get_serializer( )->serialize( ii_data_config ). LOOP AT lt_files INTO ls_file. APPEND INITIAL LINE TO ct_files ASSIGNING <ls_return>. <ls_return>-file = ls_file. " Derive object from data filename (namespace + escaping) zcl_abapgit_filename_logic=>file_to_object( EXPORTING iv_filename = <ls_return>-file-filename iv_path = <ls_return>-file-path io_dot = io_dot_abapgit IMPORTING es_item = <ls_return>-item ). ENDLOOP. ENDMETHOD. METHOD add_dot_abapgit. FIELD-SYMBOLS: <ls_file> LIKE LINE OF ct_files. APPEND INITIAL LINE TO ct_files ASSIGNING <ls_file>. <ls_file>-file = io_dot_abapgit->to_file( ). ENDMETHOD. METHOD add_objects. DATA: lo_filter TYPE REF TO zcl_abapgit_repo_filter, lv_force TYPE abap_bool, lt_found LIKE ct_files, lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt. lt_tadir = zcl_abapgit_factory=>get_tadir( )->read( iv_package = iv_package iv_ignore_subpackages = is_local_settings-ignore_subpackages iv_only_local_objects = is_local_settings-only_local_objects io_dot = io_dot_abapgit ii_log = ii_log ). CREATE OBJECT lo_filter. lo_filter->apply( EXPORTING it_filter = it_filter CHANGING ct_tadir = lt_tadir ). * if there are less than 10 objects run in single thread * this helps a lot when debugging, plus performance gain * with low number of objects does not matter much lv_force = boolc( lines( lt_tadir ) < 10 ). lt_found = serialize( it_tadir = lt_tadir iv_language = io_dot_abapgit->get_main_language( ) ii_log = ii_log iv_force_sequential = lv_force ). APPEND LINES OF lt_found TO ct_files. ENDMETHOD. METHOD add_to_return. FIELD-SYMBOLS: <ls_file> LIKE LINE OF is_file_item-files, <ls_return> LIKE LINE OF mt_files. LOOP AT is_file_item-files ASSIGNING <ls_file>. APPEND INITIAL LINE TO mt_files ASSIGNING <ls_return>. <ls_return>-file = <ls_file>. <ls_return>-file-path = iv_path. <ls_return>-item = is_file_item-item. ENDLOOP. ENDMETHOD. METHOD constructor. DATA lo_settings TYPE REF TO zcl_abapgit_settings. lo_settings = zcl_abapgit_persist_settings=>get_instance( )->read( ). IF zcl_abapgit_factory=>get_environment( )->is_merged( ) = abap_true OR lo_settings->get_parallel_proc_disabled( ) = abap_true. gv_max_threads = 1. ENDIF. mv_group = 'parallel_generators'. mv_main_language_only = iv_main_language_only. mt_translation_langs = it_translation_langs. ENDMETHOD. METHOD determine_max_threads. IF iv_force_sequential = abap_true. rv_threads = 1. RETURN. ENDIF. IF gv_max_threads >= 1. * SPBT_INITIALIZE gives error PBT_ENV_ALREADY_INITIALIZED if called * multiple times in same session rv_threads = gv_max_threads. RETURN. ENDIF. CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'Z_ABAPGIT_SERIALIZE_PARALLEL' EXCEPTIONS function_not_exist = 1 OTHERS = 2. IF sy-subrc <> 0. gv_max_threads = 1. ELSE. * todo, add possibility to set group name in user exit CALL FUNCTION 'SPBT_INITIALIZE' EXPORTING group_name = mv_group IMPORTING free_pbt_wps = gv_max_threads EXCEPTIONS invalid_group_name = 1 internal_error = 2 pbt_env_already_initialized = 3 currently_no_resources_avail = 4 no_pbt_resources_found = 5 cant_init_different_pbt_groups = 6 OTHERS = 7. IF sy-subrc <> 0. * fallback to running sequentially. If SPBT_INITIALIZE fails, check transactions * RZ12, SM50, SM21, SARFC gv_max_threads = 1. ENDIF. ENDIF. IF gv_max_threads > 1. gv_max_threads = gv_max_threads - 1. ENDIF. ASSERT gv_max_threads >= 1. IF gv_max_threads > 32. * https://en.wikipedia.org/wiki/Amdahl%27s_law gv_max_threads = 32. ENDIF. rv_threads = gv_max_threads. ENDMETHOD. METHOD files_local. * serializes objects, including .abapgit.xml, apack, and takes into account local settings add_dot_abapgit( EXPORTING io_dot_abapgit = io_dot_abapgit CHANGING ct_files = rt_files ). add_apack( EXPORTING iv_package = iv_package CHANGING ct_files = rt_files ). add_data( EXPORTING ii_data_config = ii_data_config io_dot_abapgit = io_dot_abapgit CHANGING ct_files = rt_files ). add_objects( EXPORTING iv_package = iv_package io_dot_abapgit = io_dot_abapgit is_local_settings = is_local_settings ii_log = ii_log it_filter = it_filter CHANGING ct_files = rt_files ). ENDMETHOD. METHOD filter_unsupported_objects. DATA: ls_unsupported_count TYPE ty_unsupported_count, lt_supported_types TYPE zcl_abapgit_objects=>ty_types_tt, lt_unsupported_count TYPE ty_unsupported_count_tt. FIELD-SYMBOLS: <ls_tadir> LIKE LINE OF ct_tadir, <ls_unsupported_count> TYPE ty_unsupported_count. lt_supported_types = zcl_abapgit_objects=>supported_list( ). LOOP AT ct_tadir ASSIGNING <ls_tadir>. CLEAR: ls_unsupported_count. READ TABLE lt_supported_types WITH KEY table_line = <ls_tadir>-object TRANSPORTING NO FIELDS. IF sy-subrc = 0. CONTINUE. ENDIF. READ TABLE lt_unsupported_count ASSIGNING <ls_unsupported_count> WITH TABLE KEY obj_type = <ls_tadir>-object. IF sy-subrc <> 0. ls_unsupported_count-obj_type = <ls_tadir>-object. ls_unsupported_count-count = 1. ls_unsupported_count-obj_name = <ls_tadir>-obj_name. INSERT ls_unsupported_count INTO TABLE lt_unsupported_count ASSIGNING <ls_unsupported_count>. ELSE. CLEAR: <ls_unsupported_count>-obj_name. <ls_unsupported_count>-count = <ls_unsupported_count>-count + 1. ENDIF. CLEAR: <ls_tadir>-object. ENDLOOP. IF lt_unsupported_count IS INITIAL. RETURN. ENDIF. DELETE ct_tadir WHERE object IS INITIAL. IF mi_log IS BOUND. LOOP AT lt_unsupported_count ASSIGNING <ls_unsupported_count>. IF <ls_unsupported_count>-count = 1. mi_log->add_error( iv_msg = |Object type { <ls_unsupported_count>-obj_type } not supported, { <ls_unsupported_count>-obj_name } ignored| ). ELSE. mi_log->add_error( iv_msg = |Object type { <ls_unsupported_count>-obj_type } not supported, { <ls_unsupported_count>-count } objects ignored| ). ENDIF. ENDLOOP. ENDIF. ENDMETHOD. METHOD on_end_of_task. * this method will be called from the parallel processing, thus it must be public DATA: lv_result TYPE xstring, lv_path TYPE string, lv_mess TYPE c LENGTH 200, ls_file_item TYPE zif_abapgit_objects=>ty_serialization. RECEIVE RESULTS FROM FUNCTION 'Z_ABAPGIT_SERIALIZE_PARALLEL' IMPORTING ev_result = lv_result ev_path = lv_path EXCEPTIONS error = 1 system_failure = 2 MESSAGE lv_mess communication_failure = 3 MESSAGE lv_mess OTHERS = 4. IF sy-subrc <> 0. IF NOT mi_log IS INITIAL. IF NOT lv_mess IS INITIAL. mi_log->add_error( lv_mess ). ELSE. mi_log->add_error( |{ sy-msgv1 }{ sy-msgv2 }{ sy-msgv3 }{ sy-msgv3 }| ). ENDIF. ENDIF. ELSE. IMPORT data = ls_file_item FROM DATA BUFFER lv_result. "#EC CI_SUBRC ASSERT sy-subrc = 0. add_to_return( is_file_item = ls_file_item iv_path = lv_path ). ENDIF. mv_free = mv_free + 1. ENDMETHOD. METHOD run_parallel. DATA: lv_msg TYPE c LENGTH 100, lv_free LIKE mv_free. ASSERT mv_free > 0. DO. CALL FUNCTION 'Z_ABAPGIT_SERIALIZE_PARALLEL' STARTING NEW TASK iv_task DESTINATION IN GROUP mv_group CALLING on_end_of_task ON END OF TASK EXPORTING iv_obj_type = is_tadir-object iv_obj_name = is_tadir-obj_name iv_devclass = is_tadir-devclass iv_language = iv_language iv_path = is_tadir-path iv_main_language_only = mv_main_language_only EXCEPTIONS system_failure = 1 MESSAGE lv_msg communication_failure = 2 MESSAGE lv_msg resource_failure = 3 OTHERS = 4. IF sy-subrc = 3. lv_free = mv_free. WAIT UNTIL mv_free <> lv_free UP TO 1 SECONDS. CONTINUE. ELSEIF sy-subrc <> 0. ASSERT lv_msg = '' AND 0 = 1. ENDIF. EXIT. ENDDO. mv_free = mv_free - 1. ENDMETHOD. METHOD run_sequential. DATA: lx_error TYPE REF TO zcx_abapgit_exception, ls_file_item TYPE zif_abapgit_objects=>ty_serialization. ls_file_item-item-obj_type = is_tadir-object. ls_file_item-item-obj_name = is_tadir-obj_name. ls_file_item-item-devclass = is_tadir-devclass. TRY. ls_file_item = zcl_abapgit_objects=>serialize( is_item = ls_file_item-item iv_main_language_only = mv_main_language_only it_translation_langs = mt_translation_langs iv_language = iv_language ). add_to_return( is_file_item = ls_file_item iv_path = is_tadir-path ). CATCH zcx_abapgit_exception INTO lx_error. IF NOT mi_log IS INITIAL. mi_log->add_exception( ix_exc = lx_error is_item = ls_file_item-item ). ENDIF. ENDTRY. ENDMETHOD. METHOD serialize. * serializes only objects DATA: lv_max TYPE i, li_progress TYPE REF TO zif_abapgit_progress, lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt. FIELD-SYMBOLS: <ls_tadir> LIKE LINE OF it_tadir. CLEAR mt_files. lv_max = determine_max_threads( iv_force_sequential ). mv_free = lv_max. mi_log = ii_log. lt_tadir = it_tadir. filter_unsupported_objects( CHANGING ct_tadir = lt_tadir ). li_progress = zcl_abapgit_progress=>get_instance( lines( lt_tadir ) ). LOOP AT lt_tadir ASSIGNING <ls_tadir>. li_progress->show( iv_current = sy-tabix iv_text = |Serialize { <ls_tadir>-obj_name }, { lv_max } threads| ). IF lv_max = 1. run_sequential( is_tadir = <ls_tadir> iv_language = iv_language ). ELSE. run_parallel( is_tadir = <ls_tadir> iv_task = |{ sy-tabix }| iv_language = iv_language ). WAIT UNTIL mv_free > 0 UP TO 120 SECONDS. ENDIF. ENDLOOP. WAIT UNTIL mv_free = lv_max UP TO 120 SECONDS. rt_files = mt_files. FREE mt_files. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 46911, 1096, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 12417, 62, 16129, 62, 8807, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 41519, 62, 17204, 82, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 75, 33213, 39852, 2849, 1847, 13, 198, 220, 220, 220, 337, 36252, 50, 319, 62, 437, 62, 1659, 62, 35943, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 79, 62, 35943, 41876, 537, 522, 764, 198, 220, 220, 220, 337, 36252, 50, 11389, 1096, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 83, 324, 343, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 16129, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2786, 5550, 38865, 827, 12, 75, 2303, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 6404, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3174, 62, 3107, 1843, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 16624, 8, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 3696, 62, 12001, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26495, 220, 220, 220, 220, 220, 220, 220, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 26518, 62, 397, 499, 18300, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 12001, 62, 33692, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 12001, 62, 33692, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 6404, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 24455, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 62, 926, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 7890, 62, 11250, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 7890, 62, 11250, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 16624, 8, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 403, 15999, 62, 9127, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26181, 62, 4906, 41876, 36264, 343, 12, 15252, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26181, 62, 3672, 41876, 36264, 343, 12, 26801, 62, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 954, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 403, 15999, 62, 9127, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 403, 15999, 62, 9127, 62, 926, 41876, 367, 11211, 1961, 43679, 3963, 1259, 62, 403, 15999, 62, 9127, 13315, 4725, 33866, 8924, 35374, 26181, 62, 4906, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 10641, 2624, 41876, 269, 406, 49494, 3933, 764, 628, 220, 220, 220, 42715, 12, 26947, 308, 85, 62, 9806, 62, 16663, 82, 41876, 1312, 764, 198, 220, 220, 220, 42865, 45079, 62, 16624, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 62, 926, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 5787, 41876, 1312, 764, 198, 220, 220, 220, 42865, 21504, 62, 6404, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 8094, 41876, 374, 89, 15516, 62, 499, 565, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 12417, 62, 16129, 62, 8807, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 42865, 45079, 62, 41519, 62, 17204, 82, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 75, 33213, 764, 628, 220, 220, 220, 337, 36252, 50, 751, 62, 499, 441, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26495, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS /iwbep/cl_mgw_push_abs_data DEFINITION PUBLIC ABSTRACT CREATE PUBLIC. PUBLIC SECTION. INTERFACES: /iwbep/if_mgw_core_srv_runtime. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS /iwbep/cl_mgw_push_abs_data IMPLEMENTATION. METHOD /iwbep/if_mgw_core_srv_runtime~init. RETURN. ENDMETHOD. ENDCLASS.
[ 31631, 1220, 14246, 65, 538, 14, 565, 62, 11296, 86, 62, 14689, 62, 8937, 62, 7890, 5550, 20032, 17941, 44731, 9564, 18601, 10659, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 1220, 14246, 65, 538, 14, 361, 62, 11296, 86, 62, 7295, 62, 27891, 85, 62, 43282, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 1220, 14246, 65, 538, 14, 565, 62, 11296, 86, 62, 14689, 62, 8937, 62, 7890, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 1220, 14246, 65, 538, 14, 361, 62, 11296, 86, 62, 7295, 62, 27891, 85, 62, 43282, 93, 15003, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
FUNCTION CONVERSION_EXIT_TZSTL_INPUT. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" VALUE(INPUT) *" EXPORTING *" VALUE(OUTPUT) *"---------------------------------------------------------------------- STATICS: sv_init_date(10) TYPE c, sv_init_time(8) TYPE c. DATA: lv_data LIKE sy-datum, l_time LIKE sy-uzeit, lv_data_c(15) TYPE c, lv_time_c(15) TYPE c, lv_init_date TYPE d, lv_init_time TYPE t, lv_time_zone TYPE sy-zonlo, lv_tstamp TYPE tzntstmpl. IF input IS INITIAL. CLEAR output. EXIT. ENDIF. IF sv_init_date IS INITIAL. WRITE lv_init_date TO sv_init_date. WRITE lv_init_time TO sv_init_time. ENDIF. SPLIT input AT space INTO lv_data_c lv_time_c. CONDENSE lv_data_c. CONDENSE lv_time_c. IF lv_data_c = sv_init_date. CLEAR output. EXIT. ENDIF. CALL FUNCTION 'CONVERT_DATE_INPUT' EXPORTING input = lv_data_c IMPORTING output = lv_data EXCEPTIONS plausibility_check_failed = 1 wrong_format_in_input = 2. IF sy-subrc <> 0. IF sy-subrc = 1. MESSAGE s070(rsdd) DISPLAY LIKE 'E' WITH lv_data_c. ELSEIF sy-subrc = 2. MESSAGE s071(rsdd) DISPLAY LIKE 'E' WITH lv_data_c. ENDIF. lv_data = sy-datum. ENDIF. IF lv_time_c IS INITIAL. l_time = sy-uzeit. ELSE. CALL FUNCTION 'CONVERT_TIME_INPUT' EXPORTING input = lv_time_c IMPORTING output = l_time EXCEPTIONS plausibility_check_failed = 1 wrong_format_in_input = 2. IF sy-subrc <> 0. IF sy-subrc = 1. MESSAGE s072(rsdd) DISPLAY LIKE 'E' WITH lv_time_c. ELSEIF sy-subrc = 2. MESSAGE s073(rsdd) DISPLAY LIKE 'E' WITH lv_time_c. ENDIF. CLEAR l_time. ENDIF. ENDIF. CONVERT DATE lv_data TIME l_time INTO TIME STAMP lv_tstamp TIME ZONE lv_time_zone. output = lv_tstamp. ENDFUNCTION.
[ 42296, 4177, 2849, 7102, 43717, 62, 6369, 2043, 62, 51, 57, 2257, 43, 62, 1268, 30076, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 14565, 26491, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 1268, 30076, 8, 198, 9, 1, 220, 7788, 15490, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 2606, 7250, 3843, 8, 198, 9, 1, 10097, 23031, 198, 220, 15486, 19505, 25, 38487, 62, 15003, 62, 4475, 7, 940, 8, 41876, 269, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 38487, 62, 15003, 62, 2435, 7, 23, 8, 220, 41876, 269, 13, 628, 220, 42865, 25, 300, 85, 62, 7890, 220, 220, 220, 220, 220, 220, 34178, 827, 12, 19608, 388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 62, 2435, 220, 220, 220, 220, 220, 220, 220, 34178, 827, 12, 84, 2736, 270, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 7890, 62, 66, 7, 1314, 8, 41876, 269, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 2435, 62, 66, 7, 1314, 8, 41876, 269, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 15003, 62, 4475, 220, 41876, 288, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 15003, 62, 2435, 220, 41876, 256, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 2435, 62, 11340, 220, 41876, 827, 12, 26361, 5439, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 83, 301, 696, 220, 220, 220, 220, 41876, 256, 89, 429, 301, 76, 489, 13, 628, 220, 16876, 5128, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 30301, 1503, 5072, 13, 198, 220, 220, 220, 7788, 2043, 13, 198, 220, 23578, 5064, 13, 628, 220, 16876, 38487, 62, 15003, 62, 4475, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 44423, 300, 85, 62, 15003, 62, 4475, 5390, 38487, 62, 15003, 62, 4475, 13, 198, 220, 220, 220, 44423, 300, 85, 62, 15003, 62, 2435, 5390, 38487, 62, 15003, 62, 2435, 13, 198, 220, 23578, 5064, 13, 628, 220, 46341, 2043, 5128, 5161, 2272, 39319, 300, 85, 62, 7890, 62, 66, 300, 85, 62, 2435, 62, 66, 13, 198, 220, 7102, 35, 24290, 300, 85, 62, 7890, 62, 66, 13, 198, 220, 7102, 35, 24290, 300, 85, 62, 2435, 62, 66, 13, 628, 220, 16876, 300, 85, 62, 7890, 62, 66, 796, 38487, 62, 15003, 62, 4475, 13, 198, 220, 220, 220, 30301, 1503, 5072, 13, 198, 220, 220, 220, 7788, 2043, 13, 198, 220, 23578, 5064, 13, 628, 220, 42815, 29397, 4177, 2849, 705, 10943, 15858, 62, 35, 6158, 62, 1268, 30076, 6, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 5128, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 7890, 62, 66, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5072, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 7890, 198, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 48923, 2247, 62, 9122, 62, 47904, 796, 352, 198, 220, 220, 220, 220, 220, 2642, 62, 18982, 62, 259, 62, 15414, 220, 220, 220, 220, 796, 362, 13, 198, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 352, 13, 198, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 264, 43509, 7, 3808, 1860, 8, 13954, 31519, 34178, 705, 36, 6, 13315, 300, 85, 62, 7890, 62, 66, 13, 198, 220, 220, 220, 17852, 5188, 5064, 827, 12, 7266, 6015, 796, 362, 13, 198, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 264, 2998, 16, 7, 3808, 1860, 8, 13954, 31519, 34178, 705, 36, 6, 13315, 300, 85, 62, 7890, 62, 66, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 300, 85, 62, 7890, 796, 827, 12, 19608, 388, 13, 198, 220, 23578, 5064, 13, 198, 220, 16876, 300, 85, 62, 2435, 62, 66, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 300, 62, 2435, 796, 827, 12, 84, 2736, 270, 13, 198, 220, 17852, 5188, 13, 198, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 10943, 15858, 62, 34694, 62, 1268, 30076, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5128, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 2435, 62, 66, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5072, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 62, 2435, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 48923, 2247, 62, 9122, 62, 47904, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2642, 62, 18982, 62, 259, 62, 15414, 220, 220, 220, 220, 796, 362, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 352, 13, 198, 220, 220, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 264, 2998, 17, 7, 3808, 1860, 8, 13954, 31519, 34178, 705, 36, 6, 13315, 300, 85, 62, 2435, 62, 66, 13, 198, 220, 220, 220, 220, 220, 17852, 5188, 5064, 827, 12, 7266, 6015, 796, 362, 13, 198, 220, 220, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 264, 2998, 18, 7, 3808, 1860, 8, 13954, 31519, 34178, 705, 36, 6, 13315, 300, 85, 62, 2435, 62, 66, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 30301, 1503, 300, 62, 2435, 13, 198, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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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 ]
CLASS ltcl_syntax_cases DEFINITION DEFERRED. CLASS zcl_abapgit_syntax_highlighter DEFINITION LOCAL FRIENDS ltcl_syntax_cases. *----------------------------------------------------------------------* * CLASS ltcl_syntax_cases definition *----------------------------------------------------------------------* CLASS ltcl_syntax_cases DEFINITION FINAL FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PRIVATE SECTION. DATA: mt_after_parse TYPE zcl_abapgit_syntax_highlighter=>ty_match_tt, mt_after_order TYPE zcl_abapgit_syntax_highlighter=>ty_match_tt, mt_after_extend TYPE zcl_abapgit_syntax_highlighter=>ty_match_tt, ms_match TYPE zcl_abapgit_syntax_highlighter=>ty_match. METHODS: do_test IMPORTING iv_line TYPE string iv_filename TYPE string, test_abap_01 FOR TESTING, test_abap_02 FOR TESTING, test_abap_03 FOR TESTING, test_abap_04 FOR TESTING, test_abap_05 FOR TESTING, test_abap_06 FOR TESTING, test_abap_07 FOR TESTING, test_abap_08 FOR TESTING, test_xml_01 FOR TESTING, test_xml_02 FOR TESTING, test_xml_03 FOR TESTING, test_xml_04 FOR TESTING, test_xml_05 FOR TESTING. ENDCLASS. *----------------------------------------------------------------------* * CLASS ltcl_syntax_cases IMPLEMENTATION *----------------------------------------------------------------------* CLASS ltcl_syntax_cases IMPLEMENTATION. DEFINE _generate_parse. ms_match-token = &1. ms_match-offset = &2. ms_match-length = &3. APPEND ms_match TO mt_after_parse. END-OF-DEFINITION. DEFINE _generate_order. ms_match-token = &1. ms_match-offset = &2. ms_match-length = &3. ms_match-text_tag = &4. APPEND ms_match TO mt_after_order. END-OF-DEFINITION. DEFINE _generate_extend. ms_match-token = &1. ms_match-offset = &2. ms_match-length = &3. ms_match-text_tag = &4. APPEND ms_match TO mt_after_extend. END-OF-DEFINITION. METHOD do_test. DATA: lt_matches_act TYPE zcl_abapgit_syntax_highlighter=>ty_match_tt, lo_syntax TYPE REF TO zcl_abapgit_syntax_highlighter. lo_syntax = zcl_abapgit_syntax_highlighter=>create( iv_filename ). lo_syntax->parse_line( EXPORTING iv_line = iv_line IMPORTING et_matches = lt_matches_act ). SORT lt_matches_act BY offset. cl_abap_unit_assert=>assert_equals( exp = mt_after_parse act = lt_matches_act msg = | Error during parsing: { iv_line }| ). lo_syntax->order_matches( EXPORTING iv_line = iv_line CHANGING ct_matches = lt_matches_act ). cl_abap_unit_assert=>assert_equals( exp = mt_after_order act = lt_matches_act msg = | Error during ordering: { iv_line }| ). lo_syntax->extend_matches( EXPORTING iv_line = iv_line CHANGING ct_matches = lt_matches_act ). cl_abap_unit_assert=>assert_equals( exp = mt_after_extend act = lt_matches_act msg = | Error during extending: { iv_line }| ). ENDMETHOD. ****************************************************** * Test parsing and ordering of comments * ****************************************************** METHOD test_abap_01. DATA lv_line TYPE string. lv_line = '* commented out line with key word data'. "#EC NOTEXT " Generate table with expected values after parsing _generate_parse 'C' 0 1. _generate_parse 'K' 12 3. _generate_parse 'K' 16 4. _generate_parse 'K' 21 4. _generate_parse 'K' 26 3. _generate_parse 'K' 30 4. _generate_parse 'K' 35 4. " Generate table with expected values after ordering _generate_order 'C' 0 39 ''. " Generate table with expected values after ordering _generate_extend 'C' 0 39 ''. do_test( iv_line = lv_line iv_filename = '*.abap' ). ENDMETHOD. ****************************************************** * Test parsing and ordering of remainder of string * ****************************************************** METHOD test_abap_02. DATA lv_line TYPE string. lv_line = 'data: lv_var_name type string.'. "#EC NOTEXT " Generate table with expected values after parsing _generate_parse 'K' 0 4. _generate_parse 'K' 18 4. " Generate table with expected values after ordering _generate_order 'K' 0 4 ''. _generate_order 'K' 18 4 ''. " Generate table with expected values after extending _generate_extend 'K' 0 4 ''. _generate_extend '.' 4 14 ''. _generate_extend 'K' 18 4 ''. _generate_extend '.' 22 8 ''. do_test( iv_line = lv_line iv_filename = '*.abap' ). ENDMETHOD. ****************************************************** * Test parsing and ordering of key words & texts * ****************************************************** METHOD test_abap_03. DATA lv_line TYPE string. lv_line = 'call function ''FM_NAME''. " Commented'. "#EC NOTEXT " Generate table with expected values after parsing _generate_parse 'K' 0 4. _generate_parse 'K' 5 8. _generate_parse 'T' 14 1. _generate_parse 'T' 22 1. _generate_parse 'C' 25 1. " Generate table with expected values after ordering _generate_order 'K' 0 4 ''. _generate_order 'K' 5 8 ''. _generate_order 'T' 14 9 ''''. _generate_order 'C' 25 11 ''. " Generate table with expected values after extending _generate_extend 'K' 0 4 ''. _generate_extend '.' 4 1 ''. _generate_extend 'K' 5 8 ''. _generate_extend '.' 13 1 ''. _generate_extend 'T' 14 9 ''''. _generate_extend '.' 23 2 ''. _generate_extend 'C' 25 11 ''. do_test( iv_line = lv_line iv_filename = '*.abap' ). ENDMETHOD. ****************************************************** * Test parsing and ordering of key words in texts * ****************************************************** METHOD test_abap_04. DATA lv_line TYPE string. lv_line = 'constants: lc_var type string value ''simpletext data simpletext''.'. "#EC NOTEXT " Generate table with expected values after parsing _generate_parse 'K' 0 9. _generate_parse 'K' 18 4. _generate_parse 'K' 30 5. _generate_parse 'T' 36 1. _generate_parse 'K' 48 4. _generate_parse 'T' 63 1. " Generate table with expected values after ordering _generate_order 'K' 0 9 ''. _generate_order 'K' 18 4 ''. _generate_order 'K' 30 5 ''. _generate_order 'T' 36 28 ''''. " Generate table with expected values after ordering _generate_extend 'K' 0 9 ''. _generate_extend '.' 9 9 ''. _generate_extend 'K' 18 4 ''. _generate_extend '.' 22 8 ''. _generate_extend 'K' 30 5 ''. _generate_extend '.' 35 1 ''. _generate_extend 'T' 36 28 ''''. _generate_extend '.' 64 1 ''. do_test( iv_line = lv_line iv_filename = '*.abap' ). ENDMETHOD. ****************************************************** * Test parsing and ordering texts in curly brackets * ****************************************************** METHOD test_abap_05. DATA lv_line TYPE string. lv_line = 'a = |{ b }={ c }|.'. "#EC NOTEXT " Generate table with expected values after parsing _generate_parse 'T' 4 1. _generate_parse 'T' 5 1. _generate_parse 'T' 9 1. _generate_parse 'T' 11 1. _generate_parse 'K' 13 1. _generate_parse 'T' 15 1. _generate_parse 'T' 16 1. " Generate table with expected values after ordering _generate_order 'T' 4 1 '|'. _generate_order 'T' 10 1 '}'. _generate_order 'K' 13 1 ''. _generate_order 'T' 16 1 '}'. " Generate table with expected values after extending _generate_extend '.' 0 4 ''. _generate_extend 'T' 4 1 '|'. _generate_extend '.' 5 5 ''. _generate_extend 'T' 10 1 '}'. _generate_extend '.' 11 2 ''. _generate_extend 'K' 13 1 ''. _generate_extend '.' 14 2 ''. _generate_extend 'T' 16 1 '}'. _generate_extend '.' 17 1 ''. do_test( iv_line = lv_line iv_filename = '*.abap' ). ENDMETHOD. ****************************************************** * Test parsing and ordering of texts * ****************************************************** METHOD test_abap_06. DATA lv_line TYPE string. lv_line = 'lv_line = lc_constant && |XYZ { ''ab'' && |ac{ ''UU'' }| }|'. "#EC NOTEXT " Generate table with expected values after parsing _generate_parse 'K' 22 2. _generate_parse 'T' 25 1. _generate_parse 'T' 30 1. _generate_parse 'T' 32 1. _generate_parse 'T' 35 1. _generate_parse 'K' 37 2. _generate_parse 'T' 40 1. _generate_parse 'T' 43 1. _generate_parse 'T' 45 1. _generate_parse 'T' 48 1. _generate_parse 'T' 50 1. _generate_parse 'T' 51 1. _generate_parse 'T' 53 1. _generate_parse 'T' 54 1. " Generate table with expected values after ordering _generate_order 'K' 22 2 ''. _generate_order 'T' 25 5 '|'. _generate_order 'T' 32 4 ''''. _generate_order 'K' 37 2 ''. _generate_order 'T' 40 3 '|'. _generate_order 'T' 45 4 ''''. _generate_order 'T' 51 1 '}'. _generate_order 'T' 54 1 '}'. " Generate table with expected values after extending _generate_extend '.' 00 22 ''. _generate_extend 'K' 22 2 ''. _generate_extend '.' 24 1 ''. _generate_extend 'T' 25 5 '|'. _generate_extend '.' 30 2 ''. _generate_extend 'T' 32 4 ''''. _generate_extend '.' 36 1 ''. _generate_extend 'K' 37 2 ''. _generate_extend '.' 39 1 ''. _generate_extend 'T' 40 3 '|'. _generate_extend '.' 43 2 ''. _generate_extend 'T' 45 4 ''''. _generate_extend '.' 49 2 ''. _generate_extend 'T' 51 1 '}'. _generate_extend '.' 52 2 ''. _generate_extend 'T' 54 1 '}'. do_test( iv_line = lv_line iv_filename = '*.abap' ). ENDMETHOD. ******************************************************** * Check that '*' in select statement is not a match * ******************************************************** METHOD test_abap_07. DATA lv_line TYPE string. lv_line = 'SELECT * FROM foo'. "#EC NOTEXT " Generate table with expected values after parsing _generate_parse 'K' 0 6. _generate_parse 'K' 9 4. " Generate table with expected values after ordering _generate_order 'K' 0 6 ''. _generate_order 'K' 9 4 ''. " Generate table with expected values after extending _generate_extend 'K' 0 6 ''. _generate_extend '.' 6 3 ''. _generate_extend 'K' 9 4 ''. _generate_extend '.' 13 4 ''. do_test( iv_line = lv_line iv_filename = '*.abap' ). ENDMETHOD. ******************************************************** * Test parsing and ordering of key words in structures * ******************************************************** METHOD test_abap_08. DATA lv_line TYPE string. lv_line = 'lv_length = <match>-length.'. "#EC NOTEXT " Generate table with expected values after parsing _generate_parse 'K' 13 5. _generate_parse 'K' 20 6. " Generate table with expected values after extending _generate_extend '.' 0 27 ''. do_test( iv_line = lv_line iv_filename = '*.abap' ). ENDMETHOD. ******************************************************** * Test parsing and ordering of tags in xml * ******************************************************** METHOD test_xml_01. DATA lv_line TYPE string. lv_line = '<tag>Text</tag>'. "#EC NOTEXT " Generate table with expected values after parsing _generate_parse 'X' 0 1. _generate_parse 'X' 4 1. _generate_parse 'X' 9 1. _generate_parse 'X' 14 1. " Generate table with expected values after ordering _generate_order 'X' 0 5 '<'. _generate_order 'X' 9 6 '<'. " Generate table with expected values after extending _generate_extend 'X' 0 5 '<'. _generate_extend '.' 5 4 ''. _generate_extend 'X' 9 6 '<'. do_test( iv_line = lv_line iv_filename = '*.xml' ). ENDMETHOD. METHOD test_xml_02. DATA lv_line TYPE string. lv_line = '<tag/>'. "#EC NOTEXT " Generate table with expected values after parsing _generate_parse 'X' 0 1. _generate_parse 'X' 5 1. " Generate table with expected values after ordering _generate_order 'X' 0 6 '<'. " Generate table with expected values after extending _generate_extend 'X' 0 6 '<'. do_test( iv_line = lv_line iv_filename = '*.xml' ). ENDMETHOD. METHOD test_xml_03. DATA lv_line TYPE string. lv_line = '<tag attribute="value"/>'. "#EC NOTEXT " Generate table with expected values after parsing _generate_parse 'X' 0 1. _generate_parse 'A' 4 10. _generate_parse 'V' 15 7. _generate_parse 'X' 23 1. " Generate table with expected values after ordering _generate_order 'X' 0 4 '<'. _generate_order 'A' 4 10 ''. _generate_order 'V' 15 7 ''. _generate_order 'X' 22 2 '>'. " Generate table with expected values after extending _generate_extend 'X' 0 4 '<'. _generate_extend 'A' 4 10 ''. _generate_extend '.' 14 1 ''. _generate_extend 'V' 15 7 ''. _generate_extend 'X' 22 2 '>'. do_test( iv_line = lv_line iv_filename = '*.xml' ). ENDMETHOD. METHOD test_xml_04. DATA lv_line TYPE string. lv_line = '<?xml version="1.0"?>'. "#EC NOTEXT " Generate table with expected values after parsing _generate_parse 'X' 0 1. _generate_parse 'A' 5 8. _generate_parse 'V' 14 5. _generate_parse 'X' 20 1. " Generate table with expected values after ordering _generate_order 'X' 0 5 '<'. _generate_order 'A' 5 8 ''. _generate_order 'V' 14 5 ''. _generate_order 'X' 19 2 '>'. " Generate table with expected values after extending _generate_extend 'X' 0 5 '<'. _generate_extend 'A' 5 8 ''. _generate_extend '.' 13 1 ''. _generate_extend 'V' 14 5 ''. _generate_extend 'X' 19 2 '>'. do_test( iv_line = lv_line iv_filename = '*.xml' ). ENDMETHOD. METHOD test_xml_05. DATA lv_line TYPE string. lv_line = '<ns:tag ns:a1="v1" ns:a2=''v2''>"text"</ns:tag>'. "#EC NOTEXT " Generate table with expected values after parsing _generate_parse 'X' 0 1. _generate_parse 'A' 7 6. _generate_parse 'V' 14 4. _generate_parse 'A' 18 6. _generate_parse 'V' 25 4. _generate_parse 'X' 29 1. _generate_parse 'V' 30 6. _generate_parse 'X' 36 1. _generate_parse 'X' 44 1. " Generate table with expected values after ordering _generate_order 'X' 0 7 '<'. _generate_order 'A' 7 6 ''. _generate_order 'V' 14 4 ''. _generate_order 'A' 18 6 ''. _generate_order 'V' 25 4 ''. _generate_order 'X' 29 1 '>'. _generate_order 'X' 36 9 '<'. " Generate table with expected values after extending _generate_extend 'X' 0 7 '<'. _generate_extend 'A' 7 6 ''. _generate_extend '.' 13 1 ''. _generate_extend 'V' 14 4 ''. _generate_extend 'A' 18 6 ''. _generate_extend '.' 24 1 ''. _generate_extend 'V' 25 4 ''. _generate_extend 'X' 29 1 '>'. _generate_extend '.' 30 6 ''. _generate_extend 'X' 36 9 '<'. do_test( iv_line = lv_line iv_filename = '*.xml' ). ENDMETHOD. ENDCLASS. CLASS ltcl_syntax_basic_logic DEFINITION DEFERRED. CLASS zcl_abapgit_syntax_highlighter DEFINITION LOCAL FRIENDS ltcl_syntax_basic_logic. *----------------------------------------------------------------------* * CLASS ltcl_syntax_basic_logic DEFINITION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS ltcl_syntax_basic_logic DEFINITION FINAL FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PRIVATE SECTION. DATA mo_syntax_highlighter TYPE REF TO zcl_abapgit_syntax_highlighter. METHODS: setup, process_line FOR TESTING, format_line FOR TESTING, apply_style FOR TESTING. ENDCLASS. *----------------------------------------------------------------------* * CLASS ltcl_syntax_highlighter IMPLEMENTATION *----------------------------------------------------------------------* CLASS ltcl_syntax_basic_logic IMPLEMENTATION. METHOD setup. mo_syntax_highlighter = zcl_abapgit_syntax_highlighter=>create( '*.abap' ). ENDMETHOD. METHOD format_line. DATA: lv_line TYPE string, lv_line_act TYPE string, lv_line_exp TYPE string. lv_line = 'call function ''FM_NAME''. " Commented'. "#EC NOTEXT lv_line_exp = '<span class="keyword">call</span>' && "#EC NOTEXT ' <span class="keyword">function</span>' && "#EC NOTEXT ' <span class="text">&#39;FM_NAME&#39;</span>.' && "#EC NOTEXT ' <span class="comment">&quot; Commented</span>'. "#EC NOTEXT lv_line_act = mo_syntax_highlighter->process_line( lv_line ). cl_abap_unit_assert=>assert_equals( exp = lv_line_exp act = lv_line_act msg = | Error during formating: { lv_line }| ). ENDMETHOD. METHOD apply_style. DATA lv_line_act TYPE string. " Call the method and compare results lv_line_act = mo_syntax_highlighter->apply_style( iv_line = 'CALL FUNCTION' "#EC NOTEXT iv_class = zcl_abapgit_syntax_abap=>c_css-keyword ). cl_abap_unit_assert=>assert_equals( act = lv_line_act exp = '<span class="keyword">CALL FUNCTION</span>' "#EC NOTEXT msg = 'Failure during applying of style.' ). "#EC NOTEXT ENDMETHOD. METHOD process_line. DATA lv_line_act TYPE string. " Call the method with empty parameter and compare results lv_line_act = mo_syntax_highlighter->process_line( '' ). cl_abap_unit_assert=>assert_equals( act = lv_line_act exp = '' msg = 'Failure in method process_line.' ). "#EC NOTEXT " Call the method with non-empty line and compare results lv_line_act = mo_syntax_highlighter->process_line( '* CALL FUNCTION' ). "#EC NOTEXT cl_abap_unit_assert=>assert_equals( act = lv_line_act exp = '<span class="comment">* CALL FUNCTION</span>' "#EC NOTEXT msg = 'Failure in method process_line.' ). "#EC NOTEXT ENDMETHOD. ENDCLASS.
[ 31631, 300, 83, 565, 62, 1837, 41641, 62, 33964, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 1837, 41641, 62, 8929, 75, 4799, 5550, 20032, 17941, 37347, 1847, 48167, 1677, 5258, 300, 83, 565, 62, 1837, 41641, 62, 33964, 13, 198, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 83, 565, 62, 1837, 41641, 62, 33964, 6770, 198, 9, 10097, 23031, 9, 198, 31631, 300, 83, 565, 62, 1837, 41641, 62, 33964, 5550, 20032, 17941, 25261, 7473, 43001, 2751, 45698, 42, 49277, 43638, 5805, 7597, 198, 220, 220, 220, 360, 4261, 6234, 6006, 9863, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 45079, 62, 8499, 62, 29572, 220, 41876, 1976, 565, 62, 397, 499, 18300, 62, 1837, 41641, 62, 8929, 75, 4799, 14804, 774, 62, 15699, 62, 926, 11, 198, 220, 220, 220, 220, 220, 45079, 62, 8499, 62, 2875, 220, 41876, 1976, 565, 62, 397, 499, 18300, 62, 1837, 41641, 62, 8929, 75, 4799, 14804, 774, 62, 15699, 62, 926, 11, 198, 220, 220, 220, 220, 220, 45079, 62, 8499, 62, 2302, 437, 41876, 1976, 565, 62, 397, 499, 18300, 62, 1837, 41641, 62, 8929, 75, 4799, 14804, 774, 62, 15699, 62, 926, 11, 198, 220, 220, 220, 220, 220, 13845, 62, 15699, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 565, 62, 397, 499, 18300, 62, 1837, 41641, 62, 8929, 75, 4799, 14804, 774, 62, 15699, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 466, 62, 9288, 30023, 9863, 2751, 21628, 62, 1370, 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, 21628, 62, 34345, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 1332, 62, 397, 499, 62, 486, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 1332, 62, 397, 499, 62, 2999, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 1332, 62, 397, 499, 62, 3070, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 1332, 62, 397, 499, 62, 3023, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 1332, 62, 397, 499, 62, 2713, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 1332, 62, 397, 499, 62, 3312, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 1332, 62, 397, 499, 62, 2998, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 1332, 62, 397, 499, 62, 2919, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 1332, 62, 19875, 62, 486, 220, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 1332, 62, 19875, 62, 2999, 220, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 1332, 62, 19875, 62, 3070, 220, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 1332, 62, 19875, 62, 3023, 220, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 1332, 62, 19875, 62, 2713, 220, 7473, 43001, 2751, 13, 198, 198, 10619, 31631, 13, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 83, 565, 62, 1837, 41641, 62, 33964, 30023, 2538, 10979, 6234, 198, 9, 10097, 23031, 9, 198, 31631, 300, 83, 565, 62, 1837, 41641, 62, 33964, 30023, 2538, 10979, 6234, 13, 628, 220, 23449, 8881, 4808, 8612, 378, 62, 29572, 13, 198, 220, 220, 220, 13845, 62, 15699, 12, 30001, 220, 220, 220, 796, 1222, 16, 13, 198, 220, 220, 220, 13845, 62, 15699, 12, 28968, 220, 220, 796, 1222, 17, 13, 198, 220, 220, 220, 13845, 62, 15699, 12, 13664, 220, 220, 796, 1222, 18, 13, 198, 220, 220, 220, 43504, 10619, 13845, 62, 15699, 5390, 45079, 62, 8499, 62, 29572, 13, 198, 220, 23578, 12, 19238, 12, 7206, 20032, 17941, 13, 628, 220, 23449, 8881, 4808, 8612, 378, 62, 2875, 13, 198, 220, 220, 220, 13845, 62, 15699, 12, 30001, 220, 220, 220, 796, 1222, 16, 13, 198, 220, 220, 220, 13845, 62, 15699, 12, 28968, 220, 220, 796, 1222, 17, 13, 198, 220, 220, 220, 13845, 62, 15699, 12, 13664, 220, 220, 796, 1222, 18, 13, 198, 220, 220, 220, 13845, 62, 15699, 12, 5239, 62, 12985, 796, 1222, 19, 13, 198, 220, 220, 220, 43504, 10619, 13845, 62, 15699, 5390, 45079, 62, 8499, 62, 2875, 13, 198, 220, 23578, 12, 19238, 12, 7206, 20032, 17941, 13, 628, 220, 23449, 8881, 4808, 8612, 378, 62, 2302, 437, 13, 198, 220, 220, 220, 13845, 62, 15699, 12, 30001, 220, 220, 220, 796, 1222, 16, 13, 198, 220, 220, 220, 13845, 62, 15699, 12, 28968, 220, 220, 796, 1222, 17, 13, 198, 220, 220, 220, 13845, 62, 15699, 12, 13664, 220, 220, 796, 1222, 18, 13, 198, 220, 220, 220, 13845, 62, 15699, 12, 5239, 62, 12985, 796, 1222, 19, 13, 198, 220, 220, 220, 43504, 10619, 13845, 62, 15699, 5390, 45079, 62, 8499, 62, 2302, 437, 13, 198, 220, 23578, 12, 19238, 12, 7206, 20032, 17941, 13, 628, 220, 337, 36252, 466, 62, 9288, 13, 628, 220, 220, 220, 42865, 25, 300, 83, 62, 6759, 2052, 62, 529, 41876, 1976, 565, 62, 397, 499, 18300, 62, 1837, 41641, 62, 8929, 75, 4799, 14804, 774, 62, 15699, 62, 926, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 1837, 41641, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 1837, 41641, 62, 8929, 75, 4799, 13, 628, 198, 220, 220, 220, 2376, 62, 1837, 41641, 796, 1976, 565, 62, 397, 499, 18300, 62, 1837, 41641, 62, 8929, 75, 4799, 14804, 17953, 7, 21628, 62, 34345, 6739, 198, 220, 220, 220, 2376, 62, 1837, 41641, 3784, 29572, 62, 1370, 7, 7788, 15490, 2751, 21628, 62, 1370, 220, 220, 220, 796, 21628, 62, 1370, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 2123, 62, 6759, 2052, 796, 300, 83, 62, 6759, 2052, 62, 529, 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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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 ]
*&---------------------------------------------------------------------* *& Include ZDOP_SUBSCREEN_TOP *&---------------------------------------------------------------------* data : gs_sflight type sflight. PARAMETERS : p_carrid TYPE s_carr_id, p_connid TYPE s_conn_id, p_fldate TYPE s_date.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1168, 35, 3185, 62, 12564, 4462, 43387, 1677, 62, 35222, 198, 9, 5, 10097, 30934, 9, 198, 198, 7890, 1058, 308, 82, 62, 82, 22560, 2099, 264, 22560, 13, 198, 198, 27082, 2390, 2767, 4877, 1058, 279, 62, 66, 3258, 312, 41876, 264, 62, 66, 3258, 62, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 37043, 312, 41876, 264, 62, 37043, 62, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 69, 335, 378, 41876, 264, 62, 4475, 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 ]
* regenerated at 13.07.2018 07:57:54 FUNCTION-POOL ZABAPGIT_UNIT_TE MESSAGE-ID SV. * INCLUDE LZABAPGIT_UNIT_TED... " Local class definition INCLUDE LSVIMDAT . "general data decl. INCLUDE LZABAPGIT_UNIT_TET00 . "view rel. data dcl.
[ 9, 16935, 515, 379, 1511, 13, 2998, 13, 7908, 8753, 25, 3553, 25, 4051, 198, 42296, 4177, 2849, 12, 16402, 3535, 1168, 6242, 2969, 38, 2043, 62, 4944, 2043, 62, 9328, 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, 6242, 2969, 38, 2043, 62, 4944, 2043, 62, 36493, 986, 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, 6242, 2969, 38, 2043, 62, 4944, 2043, 62, 51, 2767, 405, 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 ]
*"* components of interface ZIF_HNDL_TREE_MODEL interface ZIF_HNDL_TREE_MODEL public . methods HANDLE_DEF_CONTEXT_MENU_REQ for event DEFAULT_CONTEXT_MENU_REQUEST of CL_TREE_MODEL importing !MENU !SENDER . methods HANDLE_DEF_CONTEXT_MENU_SEL for event DEFAULT_CONTEXT_MENU_SELECT of CL_TREE_MODEL importing !FCODE !SENDER . methods HANDLE_DROP for event DROP of CL_TREE_MODEL importing !NODE_KEY !DRAG_DROP_OBJECT !SENDER . methods HANDLE_DROP_GET_FLAVOR for event DROP_GET_FLAVOR of CL_TREE_MODEL importing !NODE_KEY !FLAVORS !DRAG_DROP_OBJECT !SENDER . methods HANDLE_EXPAND_NO_CHILDREN for event EXPAND_NO_CHILDREN of CL_TREE_MODEL importing !NODE_KEY !SENDER . methods HANDLE_NODE_CONTEXT_MENU_REQ for event NODE_CONTEXT_MENU_REQUEST of CL_TREE_MODEL importing !NODE_KEY !MENU !SENDER . methods HANDLE_NODE_CONTEXT_MENU_SEL for event NODE_CONTEXT_MENU_SELECT of CL_TREE_MODEL importing !NODE_KEY !FCODE !SENDER . methods HANDLE_NODE_DOUBLE_CLICK for event NODE_DOUBLE_CLICK of CL_TREE_MODEL importing !NODE_KEY !SENDER . methods HANDLE_NODE_KEYPRESS for event NODE_KEYPRESS of CL_TREE_MODEL importing !NODE_KEY !KEY !SENDER . methods HANDLE_SELECTION_CHANGED for event SELECTION_CHANGED of CL_TREE_MODEL importing !NODE_KEY !SENDER . endinterface.
[ 9, 1, 9, 6805, 286, 7071, 1168, 5064, 62, 39, 8575, 43, 62, 51, 11587, 62, 33365, 3698, 198, 39994, 1168, 5064, 62, 39, 8575, 43, 62, 51, 11587, 62, 33365, 3698, 198, 220, 1171, 764, 628, 198, 220, 5050, 367, 6981, 2538, 62, 32988, 62, 10943, 32541, 62, 49275, 52, 62, 2200, 48, 198, 220, 220, 220, 329, 1785, 5550, 38865, 62, 10943, 32541, 62, 49275, 52, 62, 2200, 35780, 286, 7852, 62, 51, 11587, 62, 33365, 3698, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 49275, 52, 198, 220, 220, 220, 220, 220, 5145, 50, 10619, 1137, 764, 198, 220, 5050, 367, 6981, 2538, 62, 32988, 62, 10943, 32541, 62, 49275, 52, 62, 50, 3698, 198, 220, 220, 220, 329, 1785, 5550, 38865, 62, 10943, 32541, 62, 49275, 52, 62, 46506, 286, 7852, 62, 51, 11587, 62, 33365, 3698, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 4851, 16820, 198, 220, 220, 220, 220, 220, 5145, 50, 10619, 1137, 764, 198, 220, 5050, 367, 6981, 2538, 62, 7707, 3185, 198, 220, 220, 220, 329, 1785, 10560, 3185, 286, 7852, 62, 51, 11587, 62, 33365, 3698, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 45, 16820, 62, 20373, 198, 220, 220, 220, 220, 220, 5145, 35, 33202, 62, 7707, 3185, 62, 9864, 23680, 198, 220, 220, 220, 220, 220, 5145, 50, 10619, 1137, 764, 198, 220, 5050, 367, 6981, 2538, 62, 7707, 3185, 62, 18851, 62, 3697, 10116, 1581, 198, 220, 220, 220, 329, 1785, 10560, 3185, 62, 18851, 62, 3697, 10116, 1581, 286, 7852, 62, 51, 11587, 62, 33365, 3698, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 45, 16820, 62, 20373, 198, 220, 220, 220, 220, 220, 5145, 3697, 10116, 20673, 198, 220, 220, 220, 220, 220, 5145, 35, 33202, 62, 7707, 3185, 62, 9864, 23680, 198, 220, 220, 220, 220, 220, 5145, 50, 10619, 1137, 764, 198, 220, 5050, 367, 6981, 2538, 62, 49864, 6981, 62, 15285, 62, 3398, 4146, 7707, 1677, 198, 220, 220, 220, 329, 1785, 25703, 6981, 62, 15285, 62, 3398, 4146, 7707, 1677, 286, 7852, 62, 51, 11587, 62, 33365, 3698, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 45, 16820, 62, 20373, 198, 220, 220, 220, 220, 220, 5145, 50, 10619, 1137, 764, 198, 220, 5050, 367, 6981, 2538, 62, 45, 16820, 62, 10943, 32541, 62, 49275, 52, 62, 2200, 48, 198, 220, 220, 220, 329, 1785, 399, 16820, 62, 10943, 32541, 62, 49275, 52, 62, 2200, 35780, 286, 7852, 62, 51, 11587, 62, 33365, 3698, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 45, 16820, 62, 20373, 198, 220, 220, 220, 220, 220, 5145, 49275, 52, 198, 220, 220, 220, 220, 220, 5145, 50, 10619, 1137, 764, 198, 220, 5050, 367, 6981, 2538, 62, 45, 16820, 62, 10943, 32541, 62, 49275, 52, 62, 50, 3698, 198, 220, 220, 220, 329, 1785, 399, 16820, 62, 10943, 32541, 62, 49275, 52, 62, 46506, 286, 7852, 62, 51, 11587, 62, 33365, 3698, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 45, 16820, 62, 20373, 198, 220, 220, 220, 220, 220, 5145, 4851, 16820, 198, 220, 220, 220, 220, 220, 5145, 50, 10619, 1137, 764, 198, 220, 5050, 367, 6981, 2538, 62, 45, 16820, 62, 35, 2606, 19146, 62, 5097, 11860, 198, 220, 220, 220, 329, 1785, 399, 16820, 62, 35, 2606, 19146, 62, 5097, 11860, 286, 7852, 62, 51, 11587, 62, 33365, 3698, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 45, 16820, 62, 20373, 198, 220, 220, 220, 220, 220, 5145, 50, 10619, 1137, 764, 198, 220, 5050, 367, 6981, 2538, 62, 45, 16820, 62, 20373, 32761, 198, 220, 220, 220, 329, 1785, 399, 16820, 62, 20373, 32761, 286, 7852, 62, 51, 11587, 62, 33365, 3698, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 45, 16820, 62, 20373, 198, 220, 220, 220, 220, 220, 5145, 20373, 198, 220, 220, 220, 220, 220, 5145, 50, 10619, 1137, 764, 198, 220, 5050, 367, 6981, 2538, 62, 46506, 2849, 62, 3398, 15567, 1961, 198, 220, 220, 220, 329, 1785, 33493, 2849, 62, 3398, 15567, 1961, 286, 7852, 62, 51, 11587, 62, 33365, 3698, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 45, 16820, 62, 20373, 198, 220, 220, 220, 220, 220, 5145, 50, 10619, 1137, 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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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
************************************************************************ ************************************************************************ * ██████╗ ██████╗ ███████╗ * * ██╔══██╗ ██╔════╝ ██╔════╝ * * ██████╔╝ ██║ ███████╗ * * ██╔══██╗ ██║ ╚════██║ * * ██║ ██║██╗╚██████╗██╗███████║ * * ╚═╝ ╚═╝╚═╝ ╚═════╝╚═╝╚══════╝ * ************************************************************************ ************************************************************************ * Request Control System * This tool enabble to: * Standardize requests * Copy request transport tool * Log Transport ************************************************************************ * Gui Version(2008 - 2016) * Bruno Rodrigues(BSR) - [email protected] * Web Version(2016 - 2017) * Bruno Rodrigues(BSR) - [email protected] * Wanderson Oliveira - [email protected] * Paulo Cabral - [email protected] * Rafael Viana - ************************************************************************ * All rights Reserved©® ************************************************************************ class zcl_ca_ctrlreq_banco_dados definition public create public . public section. interfaces zif_ca_ctrlreq_banco_dados . class-methods get_instance returning value(r_return) type ref to zif_ca_ctrlreq_banco_dados . class-methods set_instance importing !i_instance type ref to zif_ca_ctrlreq_banco_dados . protected section. private section. class-data go_instance type ref to zif_ca_ctrlreq_banco_dados . ENDCLASS. CLASS ZCL_CA_CTRLREQ_BANCO_DADOS IMPLEMENTATION. method get_instance. if go_instance is not bound. go_instance = new zcl_ca_ctrlreq_banco_dados( ). endif. r_return = go_instance. endmethod. method set_instance. go_instance = cast #( i_instance ). endmethod. method zif_ca_ctrlreq_banco_dados~commit_work. commit work. endmethod. method zif_ca_ctrlreq_banco_dados~deletar_request. delete from ztca_requests where trkorr eq i_id_request. if sy-subrc ne 0. raise exception type zcx_ca_ctrlreq_excecoes exporting textid = zcx_ca_ctrlreq_excecoes=>erro_deletar_request. endif. endmethod. method zif_ca_ctrlreq_banco_dados~deletar_request_copia. if i_id_request_origem is initial. return. endif. delete from ztca_requests where request_origem = i_id_request_origem and trfunction = zif_ca_ctrlreq_request=>cc_tipo-transporte_copia. endmethod. method zif_ca_ctrlreq_banco_dados~get_descricao_request. if i_request is initial. return. endif. select single as4text from e07t into r_descricao where trkorr = i_request and langu = 'P'. endmethod. method zif_ca_ctrlreq_banco_dados~get_e070. select single * from e070 into r_e070 where trkorr = i_request. if sy-subrc ne 0. raise exception type zcx_ca_ctrlreq_excecoes exporting textid = zcx_ca_ctrlreq_excecoes=>request_invalida. endif. endmethod. method zif_ca_ctrlreq_banco_dados~get_request. select single * from ztca_requests into r_request where trkorr = i_request. if sy-subrc <> 0. raise exception type zcx_ca_ctrlreq_excecoes exporting textid = zcx_ca_ctrlreq_excecoes=>request_invalida. endif. endmethod. method zif_ca_ctrlreq_banco_dados~get_requests. ** SELECT * FROM ztca_requests * SELECT * * FROM ztrequests inner join e070 on ztrequests~trkorr = e070~trkorr * INTO corresponding fields of table rt_request * WHERE ztrequests~trkorr IN iw_range-request AND * ztrequests~ricef IN iw_range-cr AND * ztrequests~projeto IN iw_range-projeto AND * ztrequests~modulo IN iw_range-modulo AND * ztrequests~consultor IN iw_range-consultor AND * ztrequests~funcional IN iw_range-funcional AND * ztrequests~data IN iw_range-data AND * ztrequests~as4text IN iw_range-descricao_sem_prefixo AND ** ztrequests~ trfunction IN iw_range-trfunction AND * ztrequests~hora IN iw_range-hora * . select * from ztca_requests into table rt_request where ztca_requests~trkorr in iw_range-request and ztca_requests~demanda in iw_range-demanda and ztca_requests~tipo_demanda in iw_range-tipo_demanda and ztca_requests~modulo in iw_range-modulo and ztca_requests~consultor in iw_range-consultor and ztca_requests~funcional in iw_range-funcional and ztca_requests~data in iw_range-data and ztca_requests~as4text in iw_range-descricao_sem_prefixo and ztca_requests~trfunction in iw_range-trfunction and ztca_requests~process_area in iw_range-process_area and ztca_requests~hora in iw_range-hora . endmethod. method zif_ca_ctrlreq_banco_dados~get_request_hora. constants: c_customizing type c value 'K', c_workbench type c value 'W'. select single trkorr into r_request from e070 where trfunction in (c_customizing, c_workbench) and as4user = sy-uname and as4date = sy-datum and as4time >= i_hora_inicio and as4time <= i_hora_fim. endmethod. method zif_ca_ctrlreq_banco_dados~get_status_request. select single trstatus from e070 into r_status where trkorr eq i_cod_request. if sy-subrc ne 0. raise exception type zcx_ca_ctrlreq_excecoes exporting textid = zcx_ca_ctrlreq_excecoes=>request_invalida. endif. endmethod. method zif_ca_ctrlreq_banco_dados~get_task_request. select trkorr from e070 into table rt_task where strkorr = i_request and trstatus in ('D','L'). endmethod. method zif_ca_ctrlreq_banco_dados~rollback. rollback work. endmethod. method zif_ca_ctrlreq_banco_dados~salvar_request. modify ztca_requests from i_request. if sy-subrc ne 0. raise exception type zcx_ca_ctrlreq_excecoes exporting textid = zcx_ca_ctrlreq_excecoes=>erro_salvar_request. endif. endmethod. ENDCLASS.
[ 17174, 17174, 4557, 198, 17174, 17174, 4557, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23287, 20503, 8115, 22880, 245, 220, 220, 220, 220, 23287, 20503, 8115, 22880, 245, 220, 220, 23287, 20503, 9968, 22880, 245, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23287, 8115, 22880, 242, 31732, 9968, 22880, 245, 220, 220, 23287, 8115, 22880, 242, 31732, 31732, 22880, 251, 220, 220, 23287, 8115, 22880, 242, 31732, 31732, 22880, 251, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23287, 20503, 8115, 22880, 242, 22880, 251, 220, 220, 23287, 8115, 22880, 239, 220, 220, 220, 220, 220, 220, 220, 23287, 20503, 9968, 22880, 245, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23287, 8115, 22880, 242, 31732, 9968, 22880, 245, 220, 220, 23287, 8115, 22880, 239, 220, 220, 220, 220, 220, 220, 220, 2343, 243, 248, 31732, 31732, 9968, 22880, 239, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23287, 8115, 22880, 239, 220, 23287, 8115, 22880, 239, 9968, 22880, 245, 22880, 248, 20503, 9968, 22880, 245, 9968, 22880, 245, 20503, 9968, 8115, 22880, 239, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2343, 243, 248, 28670, 22880, 251, 220, 2343, 243, 248, 28670, 22880, 251, 22880, 248, 28670, 22880, 251, 2343, 243, 248, 31732, 31732, 28670, 22880, 251, 22880, 248, 28670, 22880, 251, 22880, 248, 31732, 31732, 31732, 22880, 251, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 17174, 17174, 4557, 198, 17174, 17174, 4557, 198, 9, 19390, 6779, 4482, 198, 9, 770, 2891, 551, 397, 903, 284, 25, 198, 9, 8997, 1096, 7007, 198, 9, 17393, 2581, 4839, 2891, 198, 9, 5972, 19940, 198, 17174, 17174, 4557, 198, 9, 1962, 72, 10628, 7, 11528, 532, 1584, 8, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31045, 16114, 947, 7, 4462, 49, 8, 532, 45033, 418, 346, 6862, 13, 81, 31, 14816, 13, 785, 198, 9, 5313, 10628, 7, 5304, 532, 2177, 8, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31045, 16114, 947, 7, 4462, 49, 8, 532, 45033, 418, 346, 6862, 13, 81, 31, 14816, 13, 785, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22420, 882, 30012, 8704, 220, 220, 532, 11569, 882, 13, 86, 418, 31, 14816, 13, 785, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 34410, 15976, 1373, 220, 220, 220, 220, 220, 220, 220, 220, 532, 279, 2518, 1219, 1416, 397, 1373, 31, 14816, 13, 785, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31918, 569, 7484, 220, 220, 220, 220, 220, 220, 220, 220, 532, 198, 17174, 17174, 4557, 198, 9, 1439, 2489, 33876, 16224, 7461, 198, 17174, 17174, 4557, 198, 198, 4871, 1976, 565, 62, 6888, 62, 44755, 42180, 62, 3820, 1073, 62, 67, 22484, 6770, 198, 220, 1171, 198, 220, 2251, 1171, 764, 628, 220, 1171, 2665, 13, 628, 220, 220, 220, 20314, 1976, 361, 62, 6888, 62, 44755, 42180, 62, 3820, 1073, 62, 67, 22484, 764, 628, 220, 220, 220, 1398, 12, 24396, 82, 651, 62, 39098, 198, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 81, 62, 7783, 8, 2099, 1006, 284, 1976, 361, 62, 6888, 62, 44755, 42180, 62, 3820, 1073, 62, 67, 22484, 764, 198, 220, 220, 220, 1398, 12, 24396, 82, 900, 62, 39098, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 39098, 2099, 1006, 284, 1976, 361, 62, 6888, 62, 44755, 42180, 62, 3820, 1073, 62, 67, 22484, 764, 198, 220, 6861, 2665, 13, 198, 220, 2839, 2665, 13, 628, 220, 220, 220, 1398, 12, 7890, 467, 62, 39098, 2099, 1006, 284, 1976, 361, 62, 6888, 62, 44755, 42180, 62, 3820, 1073, 62, 67, 22484, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 8141, 62, 4177, 7836, 2200, 48, 62, 33, 1565, 8220, 62, 35, 2885, 2640, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 2446, 651, 62, 39098, 13, 628, 220, 220, 220, 611, 467, 62, 39098, 318, 407, 5421, 13, 198, 220, 220, 220, 220, 220, 467, 62, 39098, 220, 796, 649, 1976, 565, 62, 6888, 62, 44755, 42180, 62, 3820, 1073, 62, 67, 22484, 7, 6739, 198, 220, 220, 220, 45762, 13, 628, 220, 220, 220, 374, 62, 7783, 796, 467, 62, 39098, 13, 628, 220, 886, 24396, 13, 628, 198, 220, 2446, 900, 62, 39098, 13, 198, 220, 220, 220, 467, 62, 39098, 796, 3350, 1303, 7, 1312, 62, 39098, 6739, 198, 220, 886, 24396, 13, 628, 198, 220, 2446, 1976, 361, 62, 6888, 62, 44755, 42180, 62, 3820 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS ltcl_filter_files_to_deser DEFINITION DEFERRED. CLASS ltcl_prio_deserialization DEFINITION DEFERRED. CLASS zcl_abapgit_file_deserialize DEFINITION LOCAL FRIENDS ltcl_filter_files_to_deser. CLASS zcl_abapgit_file_deserialize DEFINITION LOCAL FRIENDS ltcl_prio_deserialization. CLASS ltcl_filter_files_to_deser DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. DATA: mo_objects TYPE REF TO zcl_abapgit_file_deserialize, mt_result TYPE zif_abapgit_definitions=>ty_results_tt. METHODS: setup, filter_duplicates FOR TESTING RAISING cx_static_check, filter_duplicates_rstate FOR TESTING RAISING cx_static_check, filter_duplicates_lstate FOR TESTING RAISING cx_static_check, filter_duplicates_match FOR TESTING RAISING cx_static_check, filter_duplicates_init_objtype FOR TESTING RAISING cx_static_check, filter_duplicates_changes_01 FOR TESTING RAISING cx_static_check, filter_duplicates_changes_02 FOR TESTING RAISING cx_static_check, filter_duplicates_deleted FOR TESTING RAISING cx_static_check, given_result IMPORTING iv_result_line TYPE string, when_filter_is_applied. ENDCLASS. CLASS ltcl_filter_files_to_deser IMPLEMENTATION. METHOD setup. CREATE OBJECT mo_objects. ENDMETHOD. METHOD filter_duplicates. given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.abap;;;;| ). given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.xml;;;;| ). when_filter_is_applied( ). cl_abap_unit_assert=>assert_equals( exp = 1 act = lines( mt_result ) ). ENDMETHOD. METHOD filter_duplicates_rstate. DATA: ls_exp LIKE LINE OF mt_result, ls_act LIKE LINE OF mt_result. given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.abap;;;;| ). given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.xml;;;;A| ). READ TABLE mt_result INDEX 2 INTO ls_exp. when_filter_is_applied( ). cl_abap_unit_assert=>assert_equals( exp = 1 act = lines( mt_result ) ). READ TABLE mt_result INDEX 1 INTO ls_act. cl_abap_unit_assert=>assert_equals( exp = ls_exp act = ls_act ). ENDMETHOD. METHOD filter_duplicates_lstate. given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.abap;;;A;| ). given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.xml;;;A;| ). when_filter_is_applied( ). cl_abap_unit_assert=>assert_equals( exp = 0 act = lines( mt_result ) ). ENDMETHOD. METHOD filter_duplicates_match. given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.abap;;X;;| ). given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.xml;;X;;| ). when_filter_is_applied( ). cl_abap_unit_assert=>assert_equals( exp = 0 act = lines( mt_result ) ). ENDMETHOD. METHOD filter_duplicates_init_objtype. given_result( |;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.abap;;;;| ). given_result( |;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.xml;;;;| ). when_filter_is_applied( ). cl_abap_unit_assert=>assert_equals( exp = 0 act = lines( mt_result ) ). ENDMETHOD. METHOD filter_duplicates_changes_01. DATA: ls_exp LIKE LINE OF mt_result, ls_act LIKE LINE OF mt_result. " test different order since SORT object,obj_name is non-deterministic given_result( |CLAS;ZAG_UNIT_TEST;;/src/;zag_unit_test.clas.abap;;;M;M| ). given_result( |CLAS;ZAG_UNIT_TEST;;/src/;zag_unit_test.clas.testclasses.abap;;;;M| ). READ TABLE mt_result INDEX 1 INTO ls_exp. when_filter_is_applied( ). cl_abap_unit_assert=>assert_equals( exp = 1 act = lines( mt_result ) ). READ TABLE mt_result INDEX 1 INTO ls_act. " expect M,M cl_abap_unit_assert=>assert_equals( exp = ls_exp act = ls_act ). ENDMETHOD. METHOD filter_duplicates_changes_02. DATA: ls_exp LIKE LINE OF mt_result, ls_act LIKE LINE OF mt_result. " test different order since SORT object,obj_name is non-deterministic given_result( |CLAS;ZAG_UNIT_TEST;;/src/;zag_unit_test.clas.abap;;;;M| ). given_result( |CLAS;ZAG_UNIT_TEST;;/src/;zag_unit_test.clas.testclasses.abap;;;M;M| ). READ TABLE mt_result INDEX 2 INTO ls_exp. when_filter_is_applied( ). cl_abap_unit_assert=>assert_equals( exp = 1 act = lines( mt_result ) ). READ TABLE mt_result INDEX 1 INTO ls_act. " expect M,M cl_abap_unit_assert=>assert_equals( exp = ls_exp act = ls_act ). ENDMETHOD. METHOD filter_duplicates_deleted. given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.xml;;;;D| ). when_filter_is_applied( ). cl_abap_unit_assert=>assert_equals( exp = 0 act = lines( mt_result ) ). ENDMETHOD. METHOD given_result. DATA: ls_result LIKE LINE OF mt_result. SPLIT iv_result_line AT ';' INTO ls_result-obj_type ls_result-obj_name ls_result-inactive ls_result-path ls_result-filename ls_result-package ls_result-match ls_result-lstate ls_result-rstate. INSERT ls_result INTO TABLE mt_result. ENDMETHOD. METHOD when_filter_is_applied. mt_result = mo_objects->filter_files_to_deserialize( mt_result ). ENDMETHOD. ENDCLASS. CLASS ltcl_prio_deserialization DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. METHODS: setup, ddls_before_dcls FOR TESTING RAISING cx_static_check, given IMPORTING iv_object_type TYPE trobjtype, when_deser_is_priorized, then IMPORTING iv_exp_object_type TYPE trobjtype. DATA: mo_objects TYPE REF TO zcl_abapgit_file_deserialize, mt_input TYPE zif_abapgit_definitions=>ty_results_tt, mt_output TYPE zif_abapgit_definitions=>ty_results_tt, mv_exp_output_tabix TYPE i. ENDCLASS. CLASS ltcl_prio_deserialization IMPLEMENTATION. METHOD setup. CREATE OBJECT mo_objects. mv_exp_output_tabix = 0. ENDMETHOD. METHOD ddls_before_dcls. given( 'DCLS' ). given( 'DDLS' ). given( 'DCLS' ). given( 'DDLS' ). when_deser_is_priorized( ). then( 'DDLS' ). then( 'DDLS' ). then( 'DCLS' ). then( 'DCLS' ). ENDMETHOD. METHOD given. DATA: ls_input LIKE LINE OF mt_input. ls_input-obj_type = iv_object_type. INSERT ls_input INTO TABLE mt_input. ENDMETHOD. METHOD when_deser_is_priorized. mt_output = mo_objects->prioritize_deser( mt_input ). ENDMETHOD. METHOD then. DATA: ls_output LIKE LINE OF mt_output. mv_exp_output_tabix = mv_exp_output_tabix + 1. READ TABLE mt_output INTO ls_output INDEX mv_exp_output_tabix. cl_abap_unit_assert=>assert_equals( exp = iv_exp_object_type act = ls_output-obj_type ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 83, 565, 62, 24455, 62, 16624, 62, 1462, 62, 8906, 263, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 31631, 300, 83, 565, 62, 3448, 78, 62, 8906, 48499, 1634, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 7753, 62, 8906, 48499, 1096, 5550, 20032, 17941, 37347, 1847, 48167, 1677, 5258, 300, 83, 565, 62, 24455, 62, 16624, 62, 1462, 62, 8906, 263, 13, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 7753, 62, 8906, 48499, 1096, 5550, 20032, 17941, 37347, 1847, 48167, 1677, 5258, 300, 83, 565, 62, 3448, 78, 62, 8906, 48499, 1634, 13, 198, 198, 31631, 300, 83, 565, 62, 24455, 62, 16624, 62, 1462, 62, 8906, 263, 5550, 20032, 17941, 25261, 7473, 43001, 2751, 198, 220, 360, 4261, 6234, 6006, 9863, 198, 220, 45698, 42, 49277, 43638, 5805, 7597, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 6941, 62, 48205, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 7753, 62, 8906, 48499, 1096, 11, 198, 220, 220, 220, 220, 220, 45079, 62, 20274, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 43420, 62, 926, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 9058, 11, 198, 220, 220, 220, 220, 220, 8106, 62, 646, 489, 16856, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 8106, 62, 646, 489, 16856, 62, 81, 5219, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 8106, 62, 646, 489, 16856, 62, 75, 5219, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 8106, 62, 646, 489, 16856, 62, 15699, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 8106, 62, 646, 489, 16856, 62, 15003, 62, 26801, 4906, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 8106, 62, 646, 489, 16856, 62, 36653, 62, 486, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 8106, 62, 646, 489, 16856, 62, 36653, 62, 2999, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 8106, 62, 646, 489, 16856, 62, 2934, 33342, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 628, 220, 220, 220, 220, 220, 1813, 62, 20274, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 20274, 62, 1370, 41876, 4731, 11, 628, 220, 220, 220, 220, 220, 618, 62, 24455, 62, 271, 62, 1324, 18511, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 24455, 62, 16624, 62, 1462, 62, 8906, 263, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 9058, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 6941, 62, 48205, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 8106, 62, 646, 489, 16856, 13, 628, 220, 220, 220, 1813, 62, 20274, 7, 930, 4805, 7730, 26, 57, 4760, 62, 4944, 2043, 62, 51, 6465, 7665, 14, 10677, 14, 26, 50183, 62, 20850, 62, 9288, 13, 1676, 70, 13, 397, 499, 14223, 91, 6739, 198, 220, 220, 220, 1813, 62, 20274, 7, 930, 4805, 7730, 26, 57, 4760, 62, 4944, 2043, 62, 51, 6465, 7665, 14, 10677, 14, 26, 50183, 62, 20850, 62, 9288, 13, 1676, 70, 13, 19875, 14223, 91, 6739, 628, 220, 220, 220, 618, 62, 24455, 62, 271, 62, 1324, 18511, 7, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 1033, 796, 352, 198, 220, 220, 220, 220, 220, 719, 796, 3951, 7, 45079, 62, 20274, 1267, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 8106, 62, 646, 489, 16856, 62, 81, 5219, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 11201, 34178, 48920, 3963, 45079, 62, 20274, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 529, 34178, 48920, 3963, 45079, 62, 20274, 13, 628, 220, 220, 220, 1813, 62, 20274, 7, 930, 4805, 7730, 26, 57, 4760, 62, 4944, 2043, 62, 51, 6465, 7665, 14, 10677, 14, 26, 50183, 62, 20850, 62, 9288, 13, 1676, 70, 13, 397, 499, 14223, 91, 6739, 198, 220, 220, 220, 1813, 62, 20274, 7, 930, 4805, 7730, 26, 57, 4760, 62, 4944, 2043, 62, 51, 6465, 7665, 14, 10677, 14, 26, 50183, 62, 20850, 62, 9288, 13, 1676, 70, 13, 19875, 14223, 32, 91, 6739, 628, 220, 220, 220, 20832, 43679, 45079, 62, 20274, 24413, 6369, 362, 39319, 43979, 62, 11201, 13, 628, 220, 220, 220, 618, 62, 24455, 62, 271, 62, 1324, 18511, 7, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 1033, 796, 352, 198, 220, 220, 220, 220, 220, 719, 796, 3951, 7, 45079, 62, 20274, 1267, 6739, 628, 220, 220, 220, 20832, 43679, 45079, 62, 20274, 24413, 6369, 352, 39319, 43979, 62, 529, 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, 1033, 796, 43979, 62, 11201, 198, 220, 220, 220, 220, 220, 719, 796, 43979, 62, 529, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 8106, 62, 646, 489, 16856, 62, 75, 5219, 13, 628, 220, 220, 220, 1813, 62, 20274, 7, 930, 4805, 7730, 26, 57, 4760, 62, 4944, 2043, 62, 51, 6465, 7665, 14, 10677, 14, 26, 50183, 62, 20850, 62, 9288, 13, 1676, 70, 13, 397, 499, 7665, 26, 32, 26, 91, 6739, 198, 220, 220, 220, 1813, 62, 20274, 7, 930, 4805, 7730, 26, 57, 4760, 62, 4944, 2043, 62, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS cl_system_uuid DEFINITION PUBLIC. PUBLIC SECTION. INTERFACES if_system_uuid_rfc4122_static. ENDCLASS. CLASS cl_system_uuid IMPLEMENTATION. METHOD if_system_uuid_rfc4122_static~create_uuid_c36_by_version. ASSERT version = 4. WRITE '@KERNEL const crypto = await import("crypto");'. WRITE '@KERNEL uuid.set(crypto.randomUUID());'. ENDMETHOD. ENDCLASS.
[ 31631, 537, 62, 10057, 62, 12303, 312, 5550, 20032, 17941, 44731, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 611, 62, 10057, 62, 12303, 312, 62, 81, 16072, 19, 18376, 62, 12708, 13, 198, 10619, 31631, 13, 198, 198, 31631, 537, 62, 10057, 62, 12303, 312, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 611, 62, 10057, 62, 12303, 312, 62, 81, 16072, 19, 18376, 62, 12708, 93, 17953, 62, 12303, 312, 62, 66, 2623, 62, 1525, 62, 9641, 13, 198, 220, 220, 220, 24994, 17395, 2196, 796, 604, 13, 198, 220, 220, 220, 44423, 705, 31, 42, 28778, 3698, 1500, 21473, 796, 25507, 1330, 7203, 29609, 78, 15341, 4458, 198, 220, 220, 220, 44423, 705, 31, 42, 28778, 3698, 334, 27112, 13, 2617, 7, 29609, 78, 13, 25120, 52, 27586, 35430, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 02.03.2021 21:36:32 ******************************************************************* * System-defined Include-files. * ******************************************************************* INCLUDE LZAMP_CONFIG_MPTOP. " Global Declarations INCLUDE LZAMP_CONFIG_MPUXX. " Function Modules ******************************************************************* * User-defined Include-files (if necessary). * ******************************************************************* * INCLUDE LZAMP_CONFIG_MPF... " Subroutines * INCLUDE LZAMP_CONFIG_MPO... " PBO-Modules * INCLUDE LZAMP_CONFIG_MPI... " PAI-Modules * INCLUDE LZAMP_CONFIG_MPE... " Events * INCLUDE LZAMP_CONFIG_MPP... " Local class implement. * INCLUDE LZAMP_CONFIG_MPT99. " ABAP Unit tests INCLUDE LZAMP_CONFIG_MPF00 . " subprograms INCLUDE LZAMP_CONFIG_MPI00 . " PAI modules INCLUDE LSVIMFXX . " subprograms INCLUDE LSVIMOXX . " PBO modules INCLUDE LSVIMIXX . " PAI modules
[ 9, 16935, 515, 379, 7816, 13, 3070, 13, 1238, 2481, 2310, 25, 2623, 25, 2624, 198, 17174, 17174, 8162, 198, 9, 220, 220, 4482, 12, 23211, 40348, 12, 16624, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 17174, 17174, 8162, 198, 220, 3268, 5097, 52, 7206, 406, 57, 23518, 62, 10943, 16254, 62, 7378, 35222, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 8060, 16691, 24355, 198, 220, 3268, 5097, 52, 7206, 406, 57, 23518, 62, 10943, 16254, 62, 44, 5105, 8051, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 15553, 3401, 5028, 198, 198, 17174, 17174, 8162, 198, 9, 220, 220, 11787, 12, 23211, 40348, 12, 16624, 357, 361, 3306, 737, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 17174, 17174, 8162, 198, 9, 3268, 5097, 52, 7206, 406, 57, 23518, 62, 10943, 16254, 62, 7378, 37, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 3834, 81, 448, 1127, 198, 9, 3268, 5097, 52, 7206, 406, 57, 23518, 62, 10943, 16254, 62, 7378, 46, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 350, 8202, 12, 5841, 5028, 198, 9, 3268, 5097, 52, 7206, 406, 57, 23518, 62, 10943, 16254, 62, 7378, 40, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 8147, 40, 12, 5841, 5028, 198, 9, 3268, 5097, 52, 7206, 406, 57, 23518, 62, 10943, 16254, 62, 7378, 36, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 18715, 198, 9, 3268, 5097, 52, 7206, 406, 57, 23518, 62, 10943, 16254, 62, 7378, 47, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 10714, 1398, 3494, 13, 198, 9, 3268, 5097, 52, 7206, 406, 57, 23518, 62, 10943, 16254, 62, 7378, 51, 2079, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 9564, 2969, 11801, 5254, 198, 220, 3268, 5097, 52, 7206, 406, 57, 23518, 62, 10943, 16254, 62, 7378, 37, 405, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 366, 850, 23065, 82, 198, 220, 3268, 5097, 52, 7206, 406, 57, 23518, 62, 10943, 16254, 62, 7378, 40, 405, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 366, 8147, 40, 13103, 198, 220, 3268, 5097, 52, 7206, 30948, 53, 3955, 37, 8051, 220, 220, 220, 220, 220, 220, 220, 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, 850, 23065, 82, 198, 220, 3268, 5097, 52, 7206, 30948, 53, 3955, 46, 8051, 220, 220, 220, 220, 220, 220, 220, 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, 350, 8202, 13103, 198, 220, 3268, 5097, 52, 7206, 30948, 53, 3955, 40, 8051, 220, 220, 220, 220, 220, 220, 220, 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, 8147, 40, 13103, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_gui_page DEFINITION PUBLIC ABSTRACT INHERITING FROM zcl_abapgit_gui_component CREATE PUBLIC. PUBLIC SECTION. INTERFACES: zif_abapgit_gui_renderable, zif_abapgit_gui_event_handler, zif_abapgit_gui_error_handler. METHODS: constructor RAISING zcx_abapgit_exception. PROTECTED SECTION. CONSTANTS: BEGIN OF c_page_layout, centered TYPE string VALUE `centered`, full_width TYPE string VALUE `full_width`, END OF c_page_layout. TYPES: BEGIN OF ty_control, page_layout TYPE string, page_title TYPE string, page_menu TYPE REF TO zcl_abapgit_html_toolbar, END OF ty_control . DATA ms_control TYPE ty_control . METHODS render_content ABSTRACT RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . PRIVATE SECTION. TYPES: ty_time TYPE p LENGTH 10 DECIMALS 2. DATA mo_settings TYPE REF TO zcl_abapgit_settings . DATA mx_error TYPE REF TO zcx_abapgit_exception . DATA mo_exception_viewer TYPE REF TO zcl_abapgit_exception_viewer . METHODS render_deferred_parts IMPORTING !ii_html TYPE REF TO zif_abapgit_html !iv_part_category TYPE string RAISING zcx_abapgit_exception . METHODS html_head RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html . METHODS title RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html . METHODS footer IMPORTING !iv_time TYPE ty_time RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html . METHODS render_link_hints IMPORTING !ii_html TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . METHODS render_command_palettes IMPORTING !ii_html TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . METHODS render_hotkey_overview RETURNING VALUE(ro_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . METHODS render_error_message_box RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . METHODS scripts RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . ENDCLASS. CLASS zcl_abapgit_gui_page IMPLEMENTATION. METHOD constructor. super->constructor( ). mo_settings = zcl_abapgit_persist_factory=>get_settings( )->read( ). ms_control-page_layout = c_page_layout-centered. ENDMETHOD. METHOD footer. CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( '<div id="footer">' ). ri_html->add( '<table class="w100"><tr>' ). ri_html->add( '<td class="w40"></td>' ). " spacer ri_html->add( '<td class="center">' ). ri_html->add( '<div class="logo">' ). ri_html->add( ri_html->icon( 'git-alt' ) ). ri_html->add( ri_html->icon( iv_name = 'abapgit' iv_hint = |{ iv_time } sec| ) ). ri_html->add( '</div>' ). ri_html->add( |<div class="version">{ zif_abapgit_version=>c_abap_version }</div>| ). ri_html->add( '</td>' ). ri_html->add( '<td id="debug-output" class="w40"></td>' ). ri_html->add( '</tr></table>' ). ri_html->add( '</div>' ). ENDMETHOD. METHOD html_head. CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( '<head>' ). ri_html->add( '<meta http-equiv="content-type" content="text/html; charset=utf-8">' ). ri_html->add( '<meta http-equiv="X-UA-Compatible" content="IE=11,10,9,8" />' ). ri_html->add( '<title>abapGit</title>' ). ri_html->add( '<link rel="stylesheet" type="text/css" href="css/common.css">' ). ri_html->add( '<link rel="stylesheet" type="text/css" href="css/ag-icons.css">' ). " Themes ri_html->add( '<link rel="stylesheet" type="text/css" href="css/theme-default.css">' ). " Theme basis CASE mo_settings->get_ui_theme( ). WHEN zcl_abapgit_settings=>c_ui_theme-dark. ri_html->add( '<link rel="stylesheet" type="text/css" href="css/theme-dark.css">' ). WHEN zcl_abapgit_settings=>c_ui_theme-belize. ri_html->add( '<link rel="stylesheet" type="text/css" href="css/theme-belize-blue.css">' ). ENDCASE. ri_html->add( '<script src="js/common.js"></script>' ). CASE mo_settings->get_icon_scaling( ). " Enforce icon scaling WHEN mo_settings->c_icon_scaling-large. ri_html->add( '<style>.icon { font-size: 200% }</style>' ). WHEN mo_settings->c_icon_scaling-small. ri_html->add( '<style>.icon.large { font-size: inherit }</style>' ). ENDCASE. ri_html->add( '</head>' ). ENDMETHOD. METHOD render_command_palettes. ii_html->add( 'var gCommandPalette = new CommandPalette(enumerateUiActions, {' ). ii_html->add( ' toggleKey: "F1",' ). ii_html->add( ' hotkeyDescription: "Command ..."' ). ii_html->add( '});' ). ENDMETHOD. METHOD render_deferred_parts. DATA lt_parts TYPE zif_abapgit_html=>ty_table_of. DATA li_part LIKE LINE OF lt_parts. lt_parts = gui_services( )->get_html_parts( )->get_parts( iv_part_category ). LOOP AT lt_parts INTO li_part. ii_html->add( li_part ). ENDLOOP. ENDMETHOD. METHOD render_error_message_box. " You should remember that the we have to instantiate ro_html even " it's overwritten further down. Because ADD checks whether it's " bound. CREATE OBJECT ri_html TYPE zcl_abapgit_html. " You should remember that we render the message panel only " if we have an error. IF mx_error IS NOT BOUND. RETURN. ENDIF. ri_html = zcl_abapgit_gui_chunk_lib=>render_error_message_box( mx_error ). " You should remember that the exception viewer dispatches the events of " error message panel CREATE OBJECT mo_exception_viewer EXPORTING ix_error = mx_error. " You should remember that we render the message panel just once " for each exception/error text. CLEAR: mx_error. ENDMETHOD. METHOD render_hotkey_overview. DATA lo_hotkeys_component TYPE REF TO zif_abapgit_gui_renderable. lo_hotkeys_component ?= gui_services( )->get_hotkeys_ctl( ). " Mmmm ... ro_html = lo_hotkeys_component->render( ). ENDMETHOD. METHOD render_link_hints. DATA: lv_link_hint_key TYPE c LENGTH 1. lv_link_hint_key = mo_settings->get_link_hint_key( ). IF mo_settings->get_link_hints_enabled( ) = abap_true AND lv_link_hint_key IS NOT INITIAL. ii_html->add( |activateLinkHints("{ lv_link_hint_key }");| ). ii_html->add( |setInitialFocusWithQuerySelector('a span', true);| ). ii_html->add( |enableArrowListNavigation();| ). ENDIF. ENDMETHOD. METHOD scripts. CREATE OBJECT ri_html TYPE zcl_abapgit_html. render_deferred_parts( ii_html = ri_html iv_part_category = c_html_parts-scripts ). render_link_hints( ri_html ). render_command_palettes( ri_html ). ENDMETHOD. METHOD title. CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( '<div id="header">' ). ri_html->add( '<div class="logo">' ). ri_html->add( ri_html->icon( 'git-alt' ) ). ri_html->add( ri_html->icon( 'abapgit' ) ). ri_html->add( '</div>' ). ri_html->add( |<div class="page-title"><span class="spacer">&#x25BA;</span>{ ms_control-page_title }</div>| ). IF ms_control-page_menu IS BOUND. ri_html->add( '<div class="float-right">' ). ri_html->add( ms_control-page_menu->render( iv_right = abap_true ) ). ri_html->add( '</div>' ). ENDIF. ri_html->add( '</div>' ). ENDMETHOD. METHOD zif_abapgit_gui_error_handler~handle_error. mx_error = ix_error. rv_handled = abap_true. ENDMETHOD. METHOD zif_abapgit_gui_event_handler~on_event. CASE ii_event->mv_action. WHEN zif_abapgit_definitions=>c_action-goto_source. IF mo_exception_viewer IS BOUND. mo_exception_viewer->goto_source( ). ENDIF. rs_handled-state = zcl_abapgit_gui=>c_event_state-no_more_act. WHEN zif_abapgit_definitions=>c_action-show_callstack. IF mo_exception_viewer IS BOUND. mo_exception_viewer->show_callstack( ). ENDIF. rs_handled-state = zcl_abapgit_gui=>c_event_state-no_more_act. WHEN zif_abapgit_definitions=>c_action-goto_message. IF mo_exception_viewer IS BOUND. mo_exception_viewer->goto_message( ). ENDIF. rs_handled-state = zcl_abapgit_gui=>c_event_state-no_more_act. ENDCASE. ENDMETHOD. METHOD zif_abapgit_gui_renderable~render. DATA: li_script TYPE REF TO zif_abapgit_html, lv_start TYPE i, lv_end TYPE i, lv_total TYPE ty_time. gui_services( )->register_event_handler( me ). GET RUN TIME FIELD lv_start. " Real page CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( '<!DOCTYPE html>' ). ri_html->add( '<html lang="en">' ). ri_html->add( html_head( ) ). ri_html->add( |<body class="{ ms_control-page_layout }">| ). ri_html->add( title( ) ). ri_html->add( '<div class="not_sticky">' ). ri_html->add( render_content( ) ). " TODO -> render child ri_html->add( render_hotkey_overview( ) ). ri_html->add( render_error_message_box( ) ). render_deferred_parts( ii_html = ri_html iv_part_category = c_html_parts-hidden_forms ). GET RUN TIME FIELD lv_end. lv_total = ( lv_end - lv_start ) / 1000 / 1000. ri_html->add( footer( lv_total ) ). ri_html->add( '</div>' ). li_script = scripts( ). IF li_script IS BOUND AND li_script->is_empty( ) = abap_false. ri_html->add( '<script>' ). ri_html->add( li_script ). ri_html->add( 'confirmInitialized();' ). ri_html->add( '</script>' ). ENDIF. ri_html->add( '</body>' ). ri_html->add( '</html>' ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 5550, 20032, 17941, 44731, 9564, 18601, 10659, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 42895, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 198, 220, 220, 220, 220, 220, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 13287, 540, 11, 198, 220, 220, 220, 220, 220, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 15596, 62, 30281, 11, 198, 220, 220, 220, 220, 220, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 18224, 62, 30281, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 7700, 62, 39786, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19254, 220, 220, 41876, 4731, 26173, 8924, 4600, 38050, 47671, 198, 220, 220, 220, 220, 220, 220, 220, 1336, 62, 10394, 41876, 4731, 26173, 8924, 4600, 12853, 62, 10394, 47671, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 7700, 62, 39786, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 13716, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2443, 62, 39786, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2443, 62, 7839, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2443, 62, 26272, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 25981, 5657, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 220, 1259, 62, 13716, 764, 628, 220, 220, 220, 42865, 13845, 62, 13716, 41876, 1259, 62, 13716, 764, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 11299, 198, 220, 220, 220, 220, 220, 9564, 18601, 10659, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 1259, 62, 2435, 41876, 279, 406, 49494, 838, 27196, 3955, 23333, 362, 13, 628, 220, 220, 220, 42865, 6941, 62, 33692, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 33692, 764, 198, 220, 220, 220, 42865, 285, 87, 62, 18224, 41876, 4526, 37, 5390, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 42865, 6941, 62, 1069, 4516, 62, 1177, 263, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 1069, 4516, 62, 1177, 263, 764, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 4299, 17436, 62, 42632, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 6494, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3911, 62, 22872, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 27711, 62, 2256, 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, 3670, 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, 2366, 263, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2435, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 2435, 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, 8726, 62, 71, 29503, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 6494, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 8543, 62, 21812, 62, 18596, 23014, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 6494, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 8543, 62, 8940, 2539, 62, 2502, 1177, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 8543, 62, 18224, 62, 20500, 62, 3524, 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, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_vcls DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. PROTECTED SECTION. PRIVATE SECTION. * See include MTOBJCON: CONSTANTS c_cluster_type TYPE c VALUE 'C' ##NO_TEXT. CONSTANTS c_mode_insert TYPE obj_para-maint_mode VALUE 'I' ##NO_TEXT. METHODS check_lock IMPORTING !iv_tabname TYPE tabname !iv_argument TYPE seqg3-garg RETURNING VALUE(rv_is_locked) TYPE abap_bool RAISING zcx_abapgit_exception . ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_VCLS IMPLEMENTATION. METHOD check_lock. DATA: ls_rstable_key TYPE rstable, " Lock argument for table RSTABLE lv_argument TYPE eqegraarg. " Set Values for generic table lock ls_rstable_key-tabname = iv_tabname. ls_rstable_key-varkey = iv_argument. " include all sub keys lv_argument = ls_rstable_key. lv_argument = lv_argument && '*'. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'E_TABLEE' iv_argument = lv_argument ). ENDMETHOD. METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. " todo ENDMETHOD. METHOD zif_abapgit_object~delete. * Do the same as in VIEWCLUSTER_SAVE_DEFINITION DATA: lv_vclname TYPE vcl_name. lv_vclname = ms_item-obj_name. DELETE FROM vcldir WHERE vclname = lv_vclname. "#EC CI_SUBRC DELETE FROM vcldirt WHERE vclname = lv_vclname. "#EC CI_NOFIRST "#EC CI_SUBRC DELETE FROM vclstruc WHERE vclname = lv_vclname. "#EC CI_SUBRC DELETE FROM vclstruct WHERE vclname = lv_vclname. "#EC CI_NOFIRST "#EC CI_SUBRC DELETE FROM vclstrudep WHERE vclname = lv_vclname. "#EC CI_SUBRC DELETE FROM vclmf WHERE vclname = lv_vclname. "#EC CI_SUBRC ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: ls_vcldir_entry TYPE v_vcldir, lt_vclstruc TYPE TABLE OF v_vclstruc, lt_vclstrudep TYPE TABLE OF v_vclstdep, lt_vclmf TYPE TABLE OF v_vclmf, lv_objectname TYPE ob_object. io_xml->read( EXPORTING iv_name = 'VCLDIR' CHANGING cg_data = ls_vcldir_entry ). io_xml->read( EXPORTING iv_name = 'VLCSTRUC_TAB' CHANGING cg_data = lt_vclstruc ). io_xml->read( EXPORTING iv_name = 'VCLSTRUDEP_TAB' CHANGING cg_data = lt_vclstrudep ). io_xml->read( EXPORTING iv_name = 'lt_vclstrudep' CHANGING cg_data = lt_vclmf ). ls_vcldir_entry-author = sy-uname. ls_vcldir_entry-changedate = sy-datum. CALL FUNCTION 'VIEWCLUSTER_SAVE_DEFINITION' EXPORTING vcldir_entry = ls_vcldir_entry TABLES vclstruc_tab = lt_vclstruc vclstrudep_tab = lt_vclstrudep vclmf_tab = lt_vclmf. CALL FUNCTION 'RS_CORR_INSERT' EXPORTING object = ms_item-obj_name object_class = ms_item-obj_type devclass = iv_package master_language = mv_language mode = 'INSERT' global_lock = abap_true suppress_dialog = abap_true EXCEPTIONS cancelled = 1 permission_failure = 2 unknown_objectclass = 3 OTHERS = 4. IF sy-subrc = 1. zcx_abapgit_exception=>raise( 'Cancelled' ). ELSEIF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from RS_CORR_INSERT' ). ENDIF. lv_objectname = ls_vcldir_entry-vclname. CALL FUNCTION 'OBJ_GENERATE' EXPORTING iv_objectname = lv_objectname iv_objecttype = c_cluster_type iv_maint_mode = c_mode_insert iv_devclass = iv_package EXCEPTIONS illegal_call = 1 object_not_found = 2 generate_error = 3 transport_error = 4 object_enqueue_failed = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error in OBJ_GENERATE for VCLS' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~exists. DATA lv_changedate TYPE vcldir-changedate. SELECT SINGLE changedate INTO lv_changedate FROM vcldir WHERE vclname = ms_item-obj_name. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). rs_metadata-delete_tadir = abap_true. ENDMETHOD. METHOD zif_abapgit_object~is_active. DATA lv_changedate TYPE vcldir-changedate. SELECT SINGLE changedate INTO lv_changedate FROM vcldir WHERE vclname = ms_item-obj_name. IF lv_changedate IS NOT INITIAL. * see logic in function module VIEWCLUSTER_GET_DEFINITION rv_active = abap_true. ELSE. rv_active = abap_false. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~is_locked. DATA: lv_argument TYPE seqg3-garg, lv_argument_langu TYPE seqg3-garg. lv_argument = me->ms_item-obj_name. lv_argument_langu = |@{ me->ms_item-obj_name }|. "Check all relevant maintein tabeles for view clusters IF check_lock( iv_tabname = 'VCLDIR' iv_argument = lv_argument ) = abap_true OR check_lock( iv_tabname = 'VCLDIRT' iv_argument = lv_argument_langu ) = abap_true OR check_lock( iv_tabname = 'VCLSTRUC' iv_argument = lv_argument ) = abap_true OR check_lock( iv_tabname = 'VCLSTRUCT' iv_argument = lv_argument_langu ) = abap_true OR check_lock( iv_tabname = 'VCLSTRUC' iv_argument = lv_argument ) = abap_true OR check_lock( iv_tabname = 'VCLMF' iv_argument = lv_argument ) = abap_true. rv_is_locked = abap_true. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~jump. DATA: ls_bcdata TYPE bdcdata, lt_bcdata TYPE STANDARD TABLE OF bdcdata. ls_bcdata-program = 'SAPMSVIM'. ls_bcdata-dynpro = '0050'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO lt_bcdata. CLEAR ls_bcdata. ls_bcdata-fnam = 'VIMDYNFLDS-VIEWNAME'. ls_bcdata-fval = ms_item-obj_name. APPEND ls_bcdata TO lt_bcdata. CLEAR ls_bcdata. ls_bcdata-fnam = 'VIMDYNFLDS-STRUCT_MNT'. ls_bcdata-fval = 'X'. APPEND ls_bcdata TO lt_bcdata. CLEAR ls_bcdata. ls_bcdata-fnam = 'BDC_OKCODE'. ls_bcdata-fval = '=CLUS'. APPEND ls_bcdata TO lt_bcdata. CLEAR ls_bcdata. ls_bcdata-program = 'SAPMSVIM'. ls_bcdata-dynpro = '0052 '. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO lt_bcdata. CLEAR ls_bcdata. ls_bcdata-fnam = 'VIMDYNFLDS-VCLNAME'. ls_bcdata-fval = ms_item-obj_name. APPEND ls_bcdata TO lt_bcdata. CLEAR ls_bcdata. ls_bcdata-fnam = 'BDC_OKCODE'. ls_bcdata-fval = '=CLSH'. APPEND ls_bcdata TO lt_bcdata. CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'GIT' EXPORTING tcode = 'SE54' mode_val = 'E' TABLES using_tab = lt_bcdata EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, SE35' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_vclname TYPE vcl_name, ls_vcldir_entry TYPE v_vcldir, lt_vclstruc TYPE TABLE OF v_vclstruc, lt_vclstrudep TYPE TABLE OF v_vclstdep, lt_vclmf TYPE TABLE OF v_vclmf. IF zif_abapgit_object~exists( ) = abap_false. RETURN. ENDIF. lv_vclname = ms_item-obj_name. CALL FUNCTION 'VIEWCLUSTER_GET_DEFINITION' EXPORTING vclname = lv_vclname IMPORTING vcldir_entry = ls_vcldir_entry TABLES vclstruc_tab = lt_vclstruc vclstrudep_tab = lt_vclstrudep vclmf_tab = lt_vclmf EXCEPTIONS viewcluster_not_found = 1 incomplete_viewcluster = 2 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error in VIEWCLUSTER_GET_DEFINITION' ). ENDIF. SORT lt_vclstrudep BY vclname object objfield. CLEAR ls_vcldir_entry-author. CLEAR ls_vcldir_entry-changedate. io_xml->add( iv_name = 'VCLDIR' ig_data = ls_vcldir_entry ). io_xml->add( iv_name = 'VLCSTRUC_TAB' ig_data = lt_vclstruc ). io_xml->add( iv_name = 'VCLSTRUDEP_TAB' ig_data = lt_vclstrudep ). io_xml->add( iv_name = 'VCLMF_TAB' ig_data = lt_vclmf ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 85, 565, 82, 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, 198, 9, 4091, 2291, 19308, 9864, 41, 10943, 25, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 565, 5819, 62, 4906, 41876, 269, 26173, 8924, 705, 34, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 14171, 62, 28463, 41876, 26181, 62, 1845, 64, 12, 76, 2913, 62, 14171, 26173, 8924, 705, 40, 6, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 337, 36252, 50, 2198, 62, 5354, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8658, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 7400, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 49140, 220, 220, 220, 220, 220, 220, 220, 41876, 33756, 70, 18, 12, 70, 853, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 271, 62, 24162, 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, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 53, 5097, 50, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 2198, 62, 5354, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 43979, 62, 81, 31284, 62, 2539, 41876, 374, 31284, 11, 366, 13656, 4578, 329, 3084, 371, 2257, 17534, 198, 220, 220, 220, 220, 220, 300, 85, 62, 49140, 220, 220, 220, 41876, 37430, 1533, 430, 853, 13, 628, 220, 220, 220, 366, 5345, 27068, 329, 14276, 3084, 5793, 198, 220, 220, 220, 43979, 62, 81, 31284, 62, 2539, 12, 8658, 3672, 796, 21628, 62, 8658, 3672, 13, 198, 220, 220, 220, 43979, 62, 81, 31284, 62, 2539, 12, 7785, 2539, 220, 796, 21628, 62, 49140, 13, 628, 220, 220, 220, 366, 2291, 477, 850, 8251, 198, 220, 220, 220, 300, 85, 62, 49140, 796, 43979, 62, 81, 31284, 62, 2539, 13, 198, 220, 220, 220, 300, 85, 62, 49140, 796, 300, 85, 62, 49140, 11405, 705, 9, 4458, 628, 220, 220, 220, 374, 85, 62, 271, 62, 24162, 796, 7160, 62, 64, 62, 5354, 62, 13000, 62, 1640, 7, 21628, 62, 5354, 62, 15252, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 36, 62, 38148, 36, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 49140, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 49140, 6739, 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, 366, 284, 4598, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 33678, 13, 198, 9, 2141, 262, 976, 355, 287, 49880, 5097, 7759, 1137, 62, 4090, 6089, 62, 7206, 20032, 17941, 198, 220, 220, 220, 42865, 25, 300, 85, 62, 85, 565, 3672, 41876, 410, 565, 62, 3672, 13, 628, 198, 220, 220, 220, 300, 85, 62, 85, 565, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 5550, 2538, 9328, 16034, 410, 66, 335, 343, 33411, 410, 565, 3672, 796, 300, 85, 62, 85, 565, 3672, 13, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 14514, 62, 50, 10526, 7397, 198, 220, 220, 220, 5550, 2538, 9328, 16034, 410, 66, 335, 2265, 33411, 410, 565, 3672, 796, 300, 85, 62, 85, 565, 3672, 13, 25113, 2943, 14514, 62, 15285, 39776, 2257, 25113, 2943, 14514, 62, 50, 10526, 7397, 198, 220, 220, 220, 5550, 2538, 9328, 16034, 410, 565, 19554, 66, 33411, 410, 565, 3672, 796, 300, 85, 62, 85, 565, 3672, 13, 220, 220, 220, 220, 220, 25113, 2943, 14514, 62, 50, 10526, 7397, 198, 220, 220, 220, 5550, 2538, 9328, 16034, 410, 565, 7249, 33411, 410, 565, 3672, 796, 300, 85, 62, 85, 565, 3672, 13, 25113, 2943, 14514, 62, 15285, 39776, 2257, 25113, 2943, 14514, 62, 50, 10526, 7397, 198, 220, 220, 220, 5550, 2538, 9328, 16034, 410, 565, 2536, 463, 538, 33411, 410, 565, 3672, 796, 300, 85, 62, 85, 565, 3672, 13, 220, 220, 220, 25113, 2943, 14514, 62, 50, 10526, 7397, 198, 220, 220, 220, 5550, 2538, 9328, 16034, 410, 565, 76, 69, 33411, 410, 565, 3672, 796, 300, 85, 62, 85, 565, 3672, 13, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 14514, 62, 50, 10526, 7397, 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, 28435, 335, 343, 62, 13000, 41876, 410, 62, 28435, 335, 343, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 85, 565, 19554, 66, 220, 220, 220, 220, 41876, 43679, 3963, 410, 62, 85, 565, 19554, 66, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 85, 565, 2536, 463, 538, 220, 220, 41876, 43679, 3963, 410, 62, 85, 565, 301, 10378, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 85, 565, 76, 69, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 3963, 410, 62, 85 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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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 ]
"! Bot configuration CLASS zcl_cilib_bot_config DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. METHODS: constructor IMPORTING iv_bot_name TYPE zcilib_bot_name is_data TYPE zcilib_bot_cfg_data, is_cts_status_comment_enabled RETURNING VALUE(rv_enabled) TYPE abap_bool, are_cts_upd_comments_enabled RETURNING VALUE(rv_enabled) TYPE abap_bool, is_cts_wiki_status_enabled RETURNING VALUE(rv_enabled) TYPE abap_bool, are_cts_pr_labels_enabled RETURNING VALUE(rv_enabled) TYPE abap_bool, get_cts_status_impl_classname RETURNING VALUE(rv_classname) TYPE abap_classname, get_cts_upd_impl_classname RETURNING VALUE(rv_classname) TYPE abap_classname, get_cts_wiki_st_impl_classname RETURNING VALUE(rv_classname) TYPE abap_classname, get_system_group RETURNING VALUE(rv_system_group) TYPE zcilib_cust_sysgrp. PROTECTED SECTION. PRIVATE SECTION. DATA: mv_name TYPE zcilib_bot_name, ms_data TYPE zcilib_bot_cfg_data. ENDCLASS. CLASS zcl_cilib_bot_config IMPLEMENTATION. METHOD constructor. mv_name = iv_bot_name. ms_data = is_data. ENDMETHOD. METHOD are_cts_upd_comments_enabled. rv_enabled = ms_data-enable_cts_updates. ENDMETHOD. METHOD is_cts_status_comment_enabled. rv_enabled = ms_data-enable_cts_status. ENDMETHOD. METHOD get_cts_status_impl_classname. rv_classname = ms_data-cts_status_template_impl. ENDMETHOD. METHOD get_cts_upd_impl_classname. rv_classname = ms_data-cts_update_template_impl. ENDMETHOD. METHOD get_cts_wiki_st_impl_classname. rv_classname = ms_data-cts_status_wiki_template_impl. ENDMETHOD. METHOD get_system_group. rv_system_group = ms_data-system_group. ENDMETHOD. METHOD is_cts_wiki_status_enabled. rv_enabled = ms_data-enable_cts_status_wiki. ENDMETHOD. METHOD are_cts_pr_labels_enabled. rv_enabled = ms_data-enable_cts_pr_labels. ENDMETHOD. ENDCLASS.
[ 40484, 18579, 8398, 198, 31631, 1976, 565, 62, 2856, 571, 62, 13645, 62, 11250, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 30023, 9863, 2751, 21628, 62, 13645, 62, 3672, 41876, 1976, 2856, 571, 62, 13645, 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, 318, 62, 7890, 220, 220, 220, 220, 41876, 1976, 2856, 571, 62, 13645, 62, 37581, 62, 7890, 11, 198, 220, 220, 220, 220, 220, 318, 62, 310, 82, 62, 13376, 62, 23893, 62, 25616, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 25616, 8, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 389, 62, 310, 82, 62, 929, 67, 62, 15944, 62, 25616, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 25616, 8, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 318, 62, 310, 82, 62, 15466, 62, 13376, 62, 25616, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 25616, 8, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 389, 62, 310, 82, 62, 1050, 62, 23912, 1424, 62, 25616, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 25616, 8, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 651, 62, 310, 82, 62, 13376, 62, 23928, 62, 4871, 3672, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 4871, 3672, 8, 41876, 450, 499, 62, 4871, 3672, 11, 198, 220, 220, 220, 220, 220, 651, 62, 310, 82, 62, 929, 67, 62, 23928, 62, 4871, 3672, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 4871, 3672, 8, 41876, 450, 499, 62, 4871, 3672, 11, 198, 220, 220, 220, 220, 220, 651, 62, 310, 82, 62, 15466, 62, 301, 62, 23928, 62, 4871, 3672, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 4871, 3672, 8, 41876, 450, 499, 62, 4871, 3672, 11, 198, 220, 220, 220, 220, 220, 651, 62, 10057, 62, 8094, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 10057, 62, 8094, 8, 41876, 1976, 2856, 571, 62, 66, 436, 62, 17597, 2164, 79, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 285, 85, 62, 3672, 41876, 1976, 2856, 571, 62, 13645, 62, 3672, 11, 198, 220, 220, 220, 220, 220, 13845, 62, 7890, 41876, 1976, 2856, 571, 62, 13645, 62, 37581, 62, 7890, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 2856, 571, 62, 13645, 62, 11250, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 285, 85, 62, 3672, 796, 21628, 62, 13645, 62, 3672, 13, 198, 220, 220, 220, 13845, 62, 7890, 796, 318, 62, 7890, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 389, 62, 310, 82, 62, 929, 67, 62, 15944, 62, 25616, 13, 198, 220, 220, 220, 374, 85, 62, 25616, 796, 13845, 62, 7890, 12, 21633, 62, 310, 82, 62, 929, 19581, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 318, 62, 310, 82, 62, 13376, 62, 23893, 62, 25616, 13, 198, 220, 220, 220, 374, 85, 62, 25616, 796, 13845, 62, 7890, 12, 21633, 62, 310, 82, 62, 13376, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 310, 82, 62, 13376, 62, 23928, 62, 4871, 3672, 13, 198, 220, 220, 220, 374, 85, 62, 4871, 3672, 796, 13845, 62, 7890, 12, 310, 82, 62, 13376, 62, 28243, 62, 23928, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 310, 82, 62, 929, 67, 62, 23928, 62, 4871, 3672, 13, 198, 220, 220, 220, 374, 85, 62, 4871, 3672, 796, 13845, 62, 7890, 12, 310, 82, 62, 19119, 62, 28243, 62, 23928, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 310, 82, 62, 15466, 62, 301, 62, 23928, 62, 4871, 3672, 13, 198, 220, 220, 220, 374, 85, 62, 4871, 3672, 796, 13845, 62, 7890, 12, 310, 82, 62, 13376, 62, 15466, 62, 28243, 62, 23928, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 10057, 62, 8094, 13, 198, 220, 220, 220, 374, 85, 62, 10057, 62, 8094, 796, 13845, 62, 7890, 12, 10057, 62, 8094, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 318, 62, 310, 82, 62, 15466, 62, 13376, 62, 25616, 13, 198, 220, 220, 220, 374, 85, 62, 25616, 796, 13845, 62, 7890, 12, 21633, 62, 310, 82, 62, 13376, 62, 15466, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 389, 62, 310, 82, 62, 1050, 62, 23912, 1424, 62, 25616, 13, 198, 220, 220, 220, 374, 85, 62, 25616, 796, 13845, 62, 7890, 12, 21633, 62, 310, 82, 62, 1050, 62, 23912, 1424, 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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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 ]
*&---------------------------------------------------------------------* *& Include ZABAPGIT_HTTP *&---------------------------------------------------------------------* CLASS lcl_http_digest DEFINITION FINAL. PUBLIC SECTION. METHODS: constructor IMPORTING ii_client TYPE REF TO if_http_client iv_username TYPE string iv_password TYPE string RAISING lcx_exception, run IMPORTING ii_client TYPE REF TO if_http_client RAISING lcx_exception. PRIVATE SECTION. DATA: mv_ha1 TYPE string, mv_username TYPE string, mv_realm TYPE string, mv_qop TYPE string, mv_nonce TYPE string. CLASS-DATA: gv_nc TYPE n LENGTH 8. CLASS-METHODS: md5 IMPORTING iv_data TYPE string RETURNING VALUE(rv_hash) TYPE string RAISING lcx_exception. METHODS: hash IMPORTING iv_qop TYPE string iv_nonce TYPE string iv_uri TYPE string iv_method TYPE string iv_cnonse TYPE string RETURNING VALUE(rv_response) TYPE string RAISING lcx_exception, parse IMPORTING ii_client TYPE REF TO if_http_client. ENDCLASS. CLASS lcl_http_client DEFINITION FINAL. PUBLIC SECTION. METHODS: constructor IMPORTING ii_client TYPE REF TO if_http_client, close, set_digest IMPORTING io_digest TYPE REF TO lcl_http_digest, send_receive_close IMPORTING iv_data TYPE xstring RETURNING VALUE(rv_data) TYPE xstring RAISING lcx_exception, get_cdata RETURNING VALUE(rv_value) TYPE string, check_http_200 RAISING lcx_exception, send_receive RAISING lcx_exception, set_headers IMPORTING iv_url TYPE string iv_service TYPE string RAISING lcx_exception. PRIVATE SECTION. DATA: mi_client TYPE REF TO if_http_client, mo_digest TYPE REF TO lcl_http_digest. ENDCLASS. CLASS lcl_http_client IMPLEMENTATION. METHOD constructor. mi_client = ii_client. ENDMETHOD. METHOD set_digest. mo_digest = io_digest. ENDMETHOD. METHOD send_receive_close. * do not use set_cdata as it modifies the Content-Type header field mi_client->request->set_data( iv_data ). send_receive( ). check_http_200( ). rv_data = mi_client->response->get_data( ). mi_client->close( ). ENDMETHOD. METHOD get_cdata. rv_value = mi_client->response->get_cdata( ). ENDMETHOD. METHOD close. mi_client->close( ). ENDMETHOD. METHOD set_headers. DATA: lv_value TYPE string. mi_client->request->set_header_field( name = '~request_method' value = 'POST' ). lv_value = lcl_url=>path_name( iv_url ) && '/git-' && iv_service && '-pack'. mi_client->request->set_header_field( name = '~request_uri' value = lv_value ). lv_value = 'application/x-git-' && iv_service && '-pack-request'. "#EC NOTEXT mi_client->request->set_header_field( name = 'Content-Type' value = lv_value ). "#EC NOTEXT lv_value = 'application/x-git-' && iv_service && '-pack-result'. "#EC NOTEXT mi_client->request->set_header_field( name = 'Accept' value = lv_value ). "#EC NOTEXT IF mo_digest IS BOUND. mo_digest->run( mi_client ). ENDIF. ENDMETHOD. "set_headers METHOD send_receive. DATA lv_text TYPE string. mi_client->send( ). mi_client->receive( EXCEPTIONS http_communication_failure = 1 http_invalid_state = 2 http_processing_failed = 3 OTHERS = 4 ). IF sy-subrc <> 0. CASE sy-subrc. WHEN 1. " make sure: " a) SSL is setup properly in STRUST " b) no firewalls " check trace file in transaction SMICM lv_text = 'HTTP Communication Failure'. "#EC NOTEXT WHEN 2. lv_text = 'HTTP Invalid State'. "#EC NOTEXT WHEN 3. lv_text = 'HTTP Processing failed'. "#EC NOTEXT WHEN OTHERS. lv_text = 'Another error occured'. "#EC NOTEXT ENDCASE. lcx_exception=>raise( lv_text ). ENDIF. ENDMETHOD. "send_receive METHOD check_http_200. DATA: lv_code TYPE i, lv_text TYPE string. mi_client->response->get_status( IMPORTING code = lv_code ). CASE lv_code. WHEN 200. RETURN. WHEN 302. lcx_exception=>raise( 'HTTP redirect, check URL' ). WHEN 401. lcx_exception=>raise( 'HTTP 401, unauthorized' ). WHEN 403. lcx_exception=>raise( 'HTTP 403, forbidden' ). WHEN 404. lcx_exception=>raise( 'HTTP 404, not found' ). WHEN 415. lcx_exception=>raise( 'HTTP 415, unsupported media type' ). WHEN OTHERS. lv_text = mi_client->response->get_cdata( ). lcx_exception=>raise( |HTTP error code: { lv_code }, { lv_text }| ). ENDCASE. ENDMETHOD. "http_200 ENDCLASS. CLASS lcl_http_digest IMPLEMENTATION. METHOD constructor. parse( ii_client ). mv_ha1 = md5( |{ iv_username }:{ mv_realm }:{ iv_password }| ). mv_username = iv_username. ENDMETHOD. METHOD hash. DATA: lv_ha2 TYPE string. lv_ha2 = md5( |{ iv_method }:{ iv_uri }| ). ASSERT NOT iv_cnonse IS INITIAL. rv_response = md5( |{ mv_ha1 }:{ iv_nonce }:{ gv_nc }:{ iv_cnonse }:{ iv_qop }:{ lv_ha2 }| ). ENDMETHOD. METHOD run. DATA: lv_response TYPE string, lv_method TYPE string, lv_cnonce TYPE string, lv_uri TYPE string, lv_auth TYPE string. ASSERT NOT mv_nonce IS INITIAL. lv_method = ii_client->request->get_header_field( '~request_method' ). lv_uri = ii_client->request->get_header_field( '~request_uri' ). CALL FUNCTION 'GENERAL_GET_RANDOM_STRING' EXPORTING number_chars = 24 IMPORTING random_string = lv_cnonce. lv_response = hash( iv_qop = mv_qop iv_nonce = mv_nonce iv_uri = lv_uri iv_method = lv_method iv_cnonse = lv_cnonce ). * client response lv_auth = |Digest username="{ mv_username }", realm="{ mv_realm }", nonce="{ mv_nonce }", uri="{ lv_uri }", qop={ mv_qop }, nc={ gv_nc }, cnonce="{ lv_cnonce }", response="{ lv_response }"|. ii_client->request->set_header_field( name = 'Authorization' value = lv_auth ). ENDMETHOD. METHOD parse. DATA: lv_value TYPE string. lv_value = ii_client->response->get_header_field( 'www-authenticate' ). FIND REGEX 'realm="([\w ]+)"' IN lv_value SUBMATCHES mv_realm. FIND REGEX 'qop="(\w+)"' IN lv_value SUBMATCHES mv_qop. FIND REGEX 'nonce="([\w=/+\$]+)"' IN lv_value SUBMATCHES mv_nonce. ENDMETHOD. METHOD md5. DATA: lv_xstr TYPE xstring, lv_hash TYPE xstring. lv_xstr = lcl_convert=>string_to_xstring_utf8( iv_data ). CALL FUNCTION 'CALCULATE_HASH_FOR_RAW' EXPORTING alg = 'MD5' data = lv_xstr IMPORTING hashxstring = lv_hash EXCEPTIONS unknown_alg = 1 param_error = 2 internal_error = 3 OTHERS = 4. IF sy-subrc <> 0. lcx_exception=>raise( 'error from CALCULATE_HASH_FOR_RAW' ). ENDIF. rv_hash = lv_hash. TRANSLATE rv_hash TO LOWER CASE. ENDMETHOD. ENDCLASS. CLASS lcl_http DEFINITION FINAL. PUBLIC SECTION. CONSTANTS: BEGIN OF gc_scheme, digest TYPE string VALUE 'Digest', END OF gc_scheme. CLASS-METHODS: get_agent RETURNING VALUE(rv_agent) TYPE string, create_by_url IMPORTING iv_url TYPE string iv_service TYPE string RETURNING VALUE(ro_client) TYPE REF TO lcl_http_client RAISING lcx_exception. PRIVATE SECTION. CLASS-METHODS: check_auth_requested IMPORTING ii_client TYPE REF TO if_http_client RETURNING VALUE(rv_auth_requested) TYPE abap_bool RAISING lcx_exception, is_local_system IMPORTING iv_url TYPE string RETURNING VALUE(rv_bool) TYPE abap_bool, acquire_login_details IMPORTING ii_client TYPE REF TO if_http_client io_client TYPE REF TO lcl_http_client iv_url TYPE string RETURNING VALUE(rv_scheme) TYPE string RAISING lcx_exception. ENDCLASS. CLASS lcl_http IMPLEMENTATION. METHOD get_agent. * bitbucket require agent prefix = "git/" rv_agent = 'git/abapGit-' && gc_abap_version. ENDMETHOD. METHOD create_by_url. DATA: lv_uri TYPE string, lv_scheme TYPE string, li_client TYPE REF TO if_http_client, lo_settings TYPE REF TO lcl_settings. lo_settings = lcl_app=>settings( )->read( ). cl_http_client=>create_by_url( EXPORTING url = lcl_url=>host( iv_url ) ssl_id = 'ANONYM' proxy_host = lo_settings->get_proxy_url( ) proxy_service = lo_settings->get_proxy_port( ) IMPORTING client = li_client ). CREATE OBJECT ro_client EXPORTING ii_client = li_client. IF is_local_system( iv_url ) = abap_true. li_client->send_sap_logon_ticket( ). ENDIF. li_client->request->set_cdata( '' ). li_client->request->set_header_field( name = '~request_method' value = 'GET' ). li_client->request->set_header_field( name = 'user-agent' value = get_agent( ) ). "#EC NOTEXT lv_uri = lcl_url=>path_name( iv_url ) && '/info/refs?service=git-' && iv_service && '-pack'. li_client->request->set_header_field( name = '~request_uri' value = lv_uri ). " Disable internal auth dialog (due to its unclarity) li_client->propertytype_logon_popup = if_http_client=>co_disabled. lcl_login_manager=>load( iv_uri = iv_url ii_client = li_client ). ro_client->send_receive( ). IF check_auth_requested( li_client ) = abap_true. lv_scheme = acquire_login_details( ii_client = li_client io_client = ro_client iv_url = iv_url ). ro_client->send_receive( ). ENDIF. ro_client->check_http_200( ). IF lv_scheme <> gc_scheme-digest. lcl_login_manager=>save( iv_uri = iv_url ii_client = li_client ). ENDIF. ENDMETHOD. METHOD is_local_system. DATA: lv_host TYPE string, lt_list TYPE STANDARD TABLE OF icm_sinfo2 WITH DEFAULT KEY. CALL FUNCTION 'ICM_GET_INFO2' TABLES servlist = lt_list EXCEPTIONS icm_error = 1 icm_timeout = 2 icm_not_authorized = 3 OTHERS = 4. IF sy-subrc <> 0. RETURN. ENDIF. FIND REGEX 'https?://([^/^:]*)' IN iv_url SUBMATCHES lv_host. READ TABLE lt_list WITH KEY hostname = lv_host TRANSPORTING NO FIELDS. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD check_auth_requested. DATA: lv_code TYPE i. ii_client->response->get_status( IMPORTING code = lv_code ). IF lv_code = 401. rv_auth_requested = abap_true. ENDIF. ENDMETHOD. "check_auth_requested METHOD acquire_login_details. DATA: lv_default_user TYPE string, lv_user TYPE string, lv_pass TYPE string, lo_digest TYPE REF TO lcl_http_digest. lv_default_user = lcl_app=>user( )->get_repo_username( iv_url ). lv_user = lv_default_user. lcl_password_dialog=>popup( EXPORTING iv_repo_url = iv_url CHANGING cv_user = lv_user cv_pass = lv_pass ). IF lv_user IS INITIAL. lcx_exception=>raise( 'HTTP 401, unauthorized' ). ENDIF. IF lv_user <> lv_default_user. lcl_app=>user( )->set_repo_username( iv_url = iv_url iv_username = lv_user ). ENDIF. rv_scheme = ii_client->response->get_header_field( 'www-authenticate' ). FIND REGEX '^(\w+)' IN rv_scheme SUBMATCHES rv_scheme. CASE rv_scheme. WHEN gc_scheme-digest. * https://en.wikipedia.org/wiki/Digest_access_authentication * e.g. used by https://www.gerritcodereview.com/ CREATE OBJECT lo_digest EXPORTING ii_client = ii_client iv_username = lv_user iv_password = lv_pass. lo_digest->run( ii_client ). io_client->set_digest( lo_digest ). WHEN OTHERS. * https://en.wikipedia.org/wiki/Basic_access_authentication ii_client->authenticate( username = lv_user password = lv_pass ). ENDCASE. ENDMETHOD. "acquire_login_details ENDCLASS.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1168, 6242, 2969, 38, 2043, 62, 40717, 198, 9, 5, 10097, 30934, 9, 198, 198, 31631, 300, 565, 62, 4023, 62, 12894, 395, 5550, 20032, 17941, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 16366, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 16366, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 29460, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 28712, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 300, 66, 87, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 1057, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 16366, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 16366, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 300, 66, 87, 62, 1069, 4516, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 285, 85, 62, 3099, 16, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 85, 62, 29460, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 85, 62, 5305, 76, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 85, 62, 80, 404, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 85, 62, 13159, 344, 220, 220, 220, 41876, 4731, 13, 628, 220, 220, 220, 42715, 12, 26947, 25, 308, 85, 62, 10782, 41876, 299, 406, 49494, 807, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 45243, 20, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 7890, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 17831, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 300, 66, 87, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 12234, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 80, 404, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 13159, 344, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 9900, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 24396, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 31522, 2591, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 26209, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 300, 66, 87, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 21136, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 16366, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 16366, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 4023, 62, 16366, 5550, 20032, 17941, 25261, 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, 21065, 62, 16366, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 16366, 11, 198, 220, 220, 220, 220, 220, 1969, 11, 198, 220, 220, 220, 220, 220, 900, 62, 12894, 395, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 33245, 62, 12894, 395, 41876, 4526, 37, 5390, 300, 565, 62, 4023, 62, 12894, 395, 11, 198, 220, 220, 220, 220, 220, 3758, 62, 260, 15164, 62, 19836, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 7890, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 7890, 8, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 300, 66, 87, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 651, 62, 66, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 8367, 8, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2198, 62, 4023, 62, 2167, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 300, 66, 87, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 3758, 62, 260, 15164, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 300, 66, 87, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 900, 62, 50145, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 6371, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 15271, 41876, 4731, 198, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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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 ]
*&---------------------------------------------------------------------* *& Report z_expimp_table_view *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT z_expimp_table_demo_search LINE-SIZE 1023. CLASS lcl_app DEFINITION. PUBLIC SECTION. TYPES: ty_range_tabnames TYPE RANGE OF tabname, ty_id TYPE x LENGTH 1, ty_version TYPE x LENGTH 1, ty_int_fmt TYPE x LENGTH 1, ty_flt_fmt TYPE x LENGTH 1, ty_compress TYPE x LENGTH 1, ty_dd TYPE x LENGTH 1, ty_range_ids TYPE RANGE OF ty_id, ty_range_versions TYPE RANGE OF ty_version, ty_range_int_fmts TYPE RANGE OF ty_int_fmt, ty_range_flt_fmts TYPE RANGE OF ty_flt_fmt, ty_range_compress TYPE RANGE OF ty_compress, ty_range_dds TYPE RANGE OF ty_dd. METHODS main IMPORTING client TYPE mandt DEFAULT sy-mandt tabnames TYPE ty_range_tabnames area TYPE relid id TYPE clike OPTIONAL invalid TYPE abap_bool ids TYPE ty_range_ids versions TYPE ty_range_versions int_fmts TYPE ty_range_int_fmts flt_fmts TYPE ty_range_flt_fmts compress TYPE ty_range_compress dds TYPE ty_range_dds max_rows TYPE i RETURNING VALUE(xml) TYPE string RAISING zcx_expimp_table. ENDCLASS. CLASS lcl_app IMPLEMENTATION. METHOD main. DATA: ref_to_table TYPE REF TO data, count_rows TYPE i. FIELD-SYMBOLS: <table> TYPE STANDARD TABLE, <line> TYPE any, <clustd> TYPE xstring, <id> TYPE c. SELECT DISTINCT tabname FROM dd03l WHERE tabname IN @tabnames AND as4local = 'A' AND fieldname = 'CLUSTD' INTO TABLE @DATA(dd03l_s). LOOP AT dd03l_s INTO DATA(dd03l). TRY. DATA(info) = zcl_expimp_table=>get_info( dd03l-tabname ). CATCH zcx_expimp_table ##NO_HANDLER. CONTINUE. ENDTRY. CREATE DATA ref_to_table TYPE TABLE OF (dd03l-tabname). ASSIGN ref_to_table->* TO <table>. DATA(where_tab) = VALUE string_table( ( COND #( WHEN info-client_fieldname <> '' THEN |{ info-client_fieldname } LIKE '{ CONV symandt( client && '%' ) }'| ) ) ( COND #( WHEN info-is_structure_one_row = abap_false THEN |SRTF2 = 0| ) ) ). DELETE where_tab WHERE table_line IS INITIAL. DATA(where) = concat_lines_of( table = where_tab sep = | AND | ). SELECT * FROM (dd03l-tabname) CLIENT SPECIFIED INTO TABLE @<table> WHERE (where). * ID ** FF * Version ** 01 ** 02 ** 03 ** 04 ** 05 ** 06 (UNICODE 6.10+ ?) * IntFormat ** 01 : big ENDIAN ** 02 : little ENDIAN * FloatFormat ** 01 : big ENDIAN ** 02 : little ENDIAN * Compress * unused1 (2 bytes) : ??? (for example 8000) * CODEPAGE (4 bytes, US-ASCII 128) : (:include8 sap_code_page:) (for example 34313033 = 4103) * unused2 (4 bytes) : ??? (for example 00000000) IF info-is_structure_one_row = abap_false. IF invalid = abap_true. where = |CLUSTR >= 16|. ELSE. " CLUSTD is of type X where = 'NOT ( clustd+0(1) IN ids' & ' AND clustd+1(1) IN versions' & ' AND clustd+2(1) IN int_fmts' & ' AND clustd+3(1) IN flt_fmts' & ' AND clustd+4(1) IN compress' & ' AND clustd+5(1) IN dds )'. ENDIF. DELETE <table> WHERE (where). ELSE. " CLUSTD is of type XSTRING IF invalid = abap_true. LOOP AT <table> ASSIGNING <line>. ASSIGN COMPONENT 'CLUSTD' OF STRUCTURE <line> TO <clustd>. IF xstrlen( <clustd> ) >= 16. DELETE <table> USING KEY loop_key. ENDIF. ENDLOOP. ELSE. LOOP AT <table> ASSIGNING <line>. ASSIGN COMPONENT 'CLUSTD' OF STRUCTURE <line> TO <clustd>. IF NOT ( <clustd>+0(1) IN ids AND <clustd>+1(1) IN versions AND <clustd>+2(1) IN int_fmts AND <clustd>+3(1) IN flt_fmts AND <clustd>+4(1) IN compress AND <clustd>+5(1) IN dds ). DELETE <table> USING KEY loop_key. ENDIF. ENDLOOP. ENDIF. ENDIF. IF <table> IS NOT INITIAL. IF info-is_structure_one_row = abap_true. DATA(ref_to_keytab) = zcl_expimp_table=>create_keytab_for_get_keys( tabname = dd03l-tabname ). FIELD-SYMBOLS: <keytab> TYPE STANDARD TABLE. ASSIGN ref_to_keytab->* TO <keytab>. DATA ref_to_key TYPE REF TO data. CREATE DATA ref_to_key LIKE LINE OF <keytab>. ASSIGN ref_to_key->* TO FIELD-SYMBOL(<key>). ENDIF. LOOP AT <table> ASSIGNING <line>. IF info-client_fieldname <> ''. ASSIGN COMPONENT info-client_fieldname OF STRUCTURE <line> TO FIELD-SYMBOL(<client>). DATA(l_client) = CONV mandt( <client> ). ENDIF. ASSIGN COMPONENT 'RELID' OF STRUCTURE <line> TO FIELD-SYMBOL(<relid>). DATA(l_relid) = CONV indx_relid( <relid> ). zcl_expimp_table=>import_as_xstring( EXPORTING client = l_client tabname = dd03l-tabname area = l_relid id_new = <line> IMPORTING xstring = DATA(xstring) ). IF info-is_structure_one_row = abap_false. ASSIGN <line>+info-id_offset(info-id_length) TO <id> CASTING. ELSE. " that's a export/Import table with one-row format, which means " that CLUSTD is a RAWSTRING/XSTRING column, subfield offset cannot " be used on such structure, so transfer fields to a structure " which doesn't have the XSTRING field, and then subfield offset " can be used. <key> = CORRESPONDING #( <line> ). ASSIGN <key>+info-id_offset(info-id_length) TO <id> CASTING. ENDIF. WRITE : / dd03l-tabname, l_client, l_relid, <id>, xstring. ADD 1 TO count_rows. IF count_rows = max_rows. RETURN. ENDIF. ENDLOOP. ENDIF. ENDLOOP. ENDMETHOD. ENDCLASS. TABLES sscrfields. SELECTION-SCREEN BEGIN OF BLOCK b01 WITH FRAME TITLE titl_b01. DATA gv_tabname TYPE tabname. SELECT-OPTIONS tabnames FOR gv_tabname. PARAMETERS client TYPE symandt DEFAULT sy-mandt MODIF ID cli. PARAMETERS area TYPE relid. PARAMETERS id TYPE string LOWER CASE. PARAMETERS max_rows TYPE i DEFAULT 100. SELECTION-SCREEN END OF BLOCK b01. SELECTION-SCREEN BEGIN OF BLOCK b02 WITH FRAME TITLE titl_b02. PARAMETERS invalid AS CHECKBOX. DATA g_id TYPE x LENGTH 1. SELECT-OPTIONS ids FOR g_id. DATA g_version TYPE x LENGTH 1. SELECT-OPTIONS versions FOR g_version. " between 01 and 06 DATA g_int_fmt TYPE x LENGTH 1. SELECT-OPTIONS int_fmts FOR g_int_fmt. DATA g_flt_fmt TYPE x LENGTH 1. SELECT-OPTIONS flt_fmts FOR g_flt_fmt. DATA g_compress TYPE x LENGTH 1. SELECT-OPTIONS compress FOR g_compress. DATA g_dd TYPE x LENGTH 1. SELECT-OPTIONS dds FOR g_dd. SELECTION-SCREEN END OF BLOCK b02. INITIALIZATION. titl_b01 = ''(b01). titl_b02 = ''(b02). AT SELECTION-SCREEN OUTPUT. AT SELECTION-SCREEN. START-OF-SELECTION. DATA(xml) = NEW lcl_app( )->main( client = client tabnames = tabnames[] area = area id = id invalid = invalid ids = ids[] versions = versions[] int_fmts = int_fmts[] flt_fmts = flt_fmts[] compress = compress[] dds = dds[] max_rows = max_rows ). cl_demo_output=>display_xml( xml ).
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 1976, 62, 11201, 11011, 62, 11487, 62, 1177, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 2200, 15490, 1976, 62, 11201, 11011, 62, 11487, 62, 9536, 78, 62, 12947, 48920, 12, 33489, 838, 1954, 13, 198, 198, 31631, 300, 565, 62, 1324, 5550, 20032, 17941, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 1259, 62, 9521, 62, 8658, 14933, 41876, 371, 27746, 3963, 7400, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2124, 406, 49494, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 9641, 220, 220, 220, 220, 220, 220, 220, 41876, 2124, 406, 49494, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 600, 62, 69, 16762, 220, 220, 220, 220, 220, 220, 220, 41876, 2124, 406, 49494, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 69, 2528, 62, 69, 16762, 220, 220, 220, 220, 220, 220, 220, 41876, 2124, 406, 49494, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 5589, 601, 220, 220, 220, 220, 220, 220, 41876, 2124, 406, 49494, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 1860, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2124, 406, 49494, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 9521, 62, 2340, 220, 220, 220, 220, 220, 41876, 371, 27746, 3963, 1259, 62, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 9521, 62, 47178, 41876, 371, 27746, 3963, 1259, 62, 9641, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 9521, 62, 600, 62, 38353, 912, 41876, 371, 27746, 3963, 1259, 62, 600, 62, 69, 16762, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 9521, 62, 69, 2528, 62, 38353, 912, 41876, 371, 27746, 3963, 1259, 62, 69, 2528, 62, 69, 16762, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 9521, 62, 5589, 601, 41876, 371, 27746, 3963, 1259, 62, 5589, 601, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 9521, 62, 33714, 220, 220, 220, 220, 220, 41876, 371, 27746, 3963, 1259, 62, 1860, 13, 628, 220, 220, 220, 337, 36252, 50, 1388, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5456, 220, 220, 220, 220, 41876, 6855, 83, 5550, 38865, 827, 12, 22249, 83, 198, 220, 220, 220, 220, 220, 220, 220, 7400, 14933, 220, 220, 41876, 1259, 62, 9521, 62, 8658, 14933, 198, 220, 220, 220, 220, 220, 220, 220, 1989, 220, 220, 220, 220, 220, 220, 41876, 823, 312, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 537, 522, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 12515, 220, 220, 220, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 220, 220, 220, 2340, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 9521, 62, 2340, 198, 220, 220, 220, 220, 220, 220, 220, 6300, 220, 220, 41876, 1259, 62, 9521, 62, 47178, 198, 220, 220, 220, 220, 220, 220, 220, 493, 62, 38353, 912, 220, 220, 41876, 1259, 62, 9521, 62, 600, 62, 38353, 912, 198, 220, 220, 220, 220, 220, 220, 220, 781, 83, 62, 38353, 912, 220, 220, 41876, 1259, 62, 9521, 62, 69, 2528, 62, 38353, 912, 198, 220, 220, 220, 220, 220, 220, 220, 27413, 220, 220, 41876, 1259, 62, 9521, 62, 5589, 601, 198, 220, 220, 220, 220, 220, 220, 220, 288, 9310, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 9521, 62, 33714, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 8516, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 19875, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 11201, 11011, 62, 11487, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 1324, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 1388, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 1006, 62, 1462, 62, 11487, 41876, 4526, 37, 5390, 1366, 11, 198, 220, 220, 220, 220, 220, 954, 62, 8516, 220, 220, 41876, 1312, 13, 198, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 198, 220, 220, 220, 220, 220, 1279, 11487, 29, 220, 41876, 49053, 9795, 43679, 11, 198, 220, 220, 220, 220, 220, 1279, 1370, 29, 220, 220, 41876, 597, 11, 198, 220, 220, 220, 220, 220, 1279, 565, 436, 67, 29, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 1279, 312, 29, 220, 220, 220, 220, 41876, 269, 13, 628, 220, 220, 220, 33493, 360, 8808, 1268, 4177, 7400, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 16034, 49427, 3070, 75, 198, 220, 220, 220, 220, 220, 220, 220, 33411, 7400, 3672, 220, 3268, 2488, 8658, 14933, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 355, 19, 12001, 796, 705, 32, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 2214, 3672, 796, 705, 5097, 7759, 35, 6, 198, 220, 220, 220, 220, 220, 220, 220, 39319, 43679, 2488, 26947, 7, 1860, 3070, 75, 62, 82, 737, 628, 220, 220, 220, 17579, 3185, 5161, 49427, 3070, 75, 62, 82, 39319, 42865, 7, 1860, 3070, 75, 737, 628, 220, 220, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 10951, 8, 796, 1976, 565, 62, 11201, 11011, 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,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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 ]
class ZCL_RT_EXERCISE definition public final create public . public section. *"* public components of class ZCL_RT_EXERCISE *"* do not include other source files here!!! data TITLE1 type STRING . data TITLE2 type STRING . data TITLE3 type STRING . data TASK1 type ref to ZCL_RT_TASK . data TASK2 type ref to ZCL_RT_TASK . data TASK3 type ref to ZCL_RT_TASK . methods CLONE returning value(RETURNING) type ref to ZCL_RT_EXERCISE . protected section. *"* protected components of class ZCL_RT_EXERCISE *"* do not include other source files here!!! private section. *"* private components of class ZCL_RT_EXERCISE *"* do not include other source files here!!! ENDCLASS. CLASS ZCL_RT_EXERCISE IMPLEMENTATION. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_RT_EXERCISE->CLONE * +-------------------------------------------------------------------------------------------------+ * | [<-()] RETURNING TYPE REF TO ZCL_RT_EXERCISE * +--------------------------------------------------------------------------------------</SIGNATURE> method clone. */** * Returns an exact copy of itself */ create object returning. returning->title1 = me->title1. returning->title2 = me->title2. returning->title3 = me->title3. returning->task1 = me->task1->clone( ). returning->task2 = me->task2->clone( ). returning->task3 = me->task3->clone( ). endmethod. ENDCLASS.
[ 4871, 1168, 5097, 62, 14181, 62, 6369, 47691, 24352, 6770, 201, 198, 220, 1171, 201, 198, 220, 2457, 201, 198, 220, 2251, 1171, 764, 201, 198, 201, 198, 11377, 2665, 13, 201, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 14181, 62, 6369, 47691, 24352, 201, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 201, 198, 201, 198, 220, 1366, 37977, 2538, 16, 2099, 19269, 2751, 764, 201, 198, 220, 1366, 37977, 2538, 17, 2099, 19269, 2751, 764, 201, 198, 220, 1366, 37977, 2538, 18, 2099, 19269, 2751, 764, 201, 198, 220, 1366, 309, 1921, 42, 16, 2099, 1006, 284, 1168, 5097, 62, 14181, 62, 51, 1921, 42, 764, 201, 198, 220, 1366, 309, 1921, 42, 17, 2099, 1006, 284, 1168, 5097, 62, 14181, 62, 51, 1921, 42, 764, 201, 198, 220, 1366, 309, 1921, 42, 18, 2099, 1006, 284, 1168, 5097, 62, 14181, 62, 51, 1921, 42, 764, 201, 198, 201, 198, 220, 5050, 7852, 11651, 201, 198, 220, 220, 220, 8024, 201, 198, 220, 220, 220, 220, 220, 1988, 7, 26087, 4261, 15871, 8, 2099, 1006, 284, 1168, 5097, 62, 14181, 62, 6369, 47691, 24352, 764, 201, 198, 24326, 2665, 13, 201, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 5097, 62, 14181, 62, 6369, 47691, 24352, 201, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 201, 198, 19734, 2665, 13, 201, 198, 9, 1, 9, 2839, 6805, 286, 1398, 1168, 5097, 62, 14181, 62, 6369, 47691, 24352, 201, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 201, 198, 10619, 31631, 13, 201, 198, 201, 198, 201, 198, 201, 198, 31631, 1168, 5097, 62, 14181, 62, 6369, 47691, 24352, 30023, 2538, 10979, 6234, 13, 201, 198, 201, 198, 201, 198, 9, 1279, 46224, 40086, 29, 10097, 19351, 6329, 10, 201, 198, 9, 930, 2262, 590, 5094, 11789, 1168, 5097, 62, 14181, 62, 6369, 47691, 24352, 3784, 5097, 11651, 201, 198, 9, 1343, 10097, 3880, 19529, 201, 198, 9, 930, 685, 27, 12, 3419, 60, 30826, 4261, 15871, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1168, 5097, 62, 14181, 62, 6369, 47691, 24352, 201, 198, 9, 1343, 10097, 19351, 438, 3556, 46224, 40086, 29, 201, 198, 24396, 17271, 13, 201, 198, 16208, 1174, 201, 198, 9, 16409, 281, 2748, 4866, 286, 2346, 201, 198, 16208, 201, 198, 220, 2251, 2134, 8024, 13, 201, 198, 220, 8024, 3784, 7839, 16, 796, 502, 3784, 7839, 16, 13, 201, 198, 220, 8024, 3784, 7839, 17, 796, 502, 3784, 7839, 17, 13, 201, 198, 220, 8024, 3784, 7839, 18, 796, 502, 3784, 7839, 18, 13, 201, 198, 220, 8024, 3784, 35943, 16, 796, 502, 3784, 35943, 16, 3784, 21018, 7, 6739, 201, 198, 220, 8024, 3784, 35943, 17, 796, 502, 3784, 35943, 17, 3784, 21018, 7, 6739, 201, 198, 220, 8024, 3784, 35943, 18, 796, 502, 3784, 35943, 18, 3784, 21018, 7, 6739, 201, 198, 437, 24396, 13, 201, 198, 10619, 31631, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_swag DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. TYPES: ty_parameters_tt TYPE STANDARD TABLE OF seosubcodf WITH DEFAULT KEY . TYPES: BEGIN OF ty_url, regex TYPE string, group_names TYPE STANDARD TABLE OF seosconame WITH DEFAULT KEY, END OF ty_url . TYPES: BEGIN OF ty_response, remove_data_object TYPE abap_bool, END OF ty_response . TYPES: BEGIN OF ty_meta, summary TYPE string, url TYPE ty_url, method TYPE string, handler TYPE string, tags TYPE STANDARD TABLE OF string WITH DEFAULT KEY, response_settings TYPE ty_response, END OF ty_meta . TYPES: BEGIN OF ty_meta_internal, meta TYPE ty_meta, obj TYPE REF TO object, parameters TYPE ty_parameters_tt, classname TYPE seoclsname, END OF ty_meta_internal . TYPES: ty_meta_internal_tt TYPE STANDARD TABLE OF ty_meta_internal WITH DEFAULT KEY . TYPES: ty_meta_tt TYPE STANDARD TABLE OF ty_meta WITH DEFAULT KEY . TYPES: BEGIN OF ty_externaldoc, description TYPE string, url TYPE string, END OF ty_externaldoc . TYPES: BEGIN OF ty_tagdescription, tag TYPE string, description TYPE string, externaldoc TYPE ty_externaldoc, END OF ty_tagdescription . TYPES: ty_tagdescription_tt TYPE STANDARD TABLE OF ty_tagdescription WITH DEFAULT KEY . CONSTANTS: BEGIN OF c_parm_kind, importing TYPE seopardecl VALUE '0', exporting TYPE seopardecl VALUE '1', changing TYPE seopardecl VALUE '2', returning TYPE seopardecl VALUE '3', END OF c_parm_kind . CONSTANTS: BEGIN OF c_method, get TYPE string VALUE 'GET', post TYPE string VALUE 'POST', put TYPE string VALUE 'PUT', delete TYPE string VALUE 'DELETE', END OF c_method . METHODS constructor IMPORTING !ii_server TYPE REF TO if_http_server !iv_base TYPE string !iv_swagger_json TYPE string DEFAULT '/swagger.json' !iv_swagger_html TYPE string DEFAULT '/swagger.html' !iv_title TYPE string . METHODS register IMPORTING !ii_handler TYPE REF TO zif_swag_handler . METHODS run RAISING cx_static_check . METHODS set_tagdescription IMPORTING !is_description TYPE ty_tagdescription . PROTECTED SECTION. DATA mv_base TYPE string . DATA mi_server TYPE REF TO if_http_server . DATA mt_meta TYPE ty_meta_internal_tt . DATA mt_tagdescription TYPE ty_tagdescription_tt . DATA mv_swagger_json TYPE string . DATA mv_swagger_html TYPE string . DATA mv_title TYPE string . METHODS build_parameters IMPORTING !is_meta TYPE ty_meta_internal RETURNING VALUE(rt_parameters) TYPE abap_parmbind_tab . METHODS create_data IMPORTING !is_meta TYPE ty_meta_internal RETURNING VALUE(rr_data) TYPE REF TO data . METHODS from_body IMPORTING !is_meta TYPE ty_meta_internal !ir_ref TYPE REF TO data . METHODS from_query IMPORTING !is_meta TYPE ty_meta_internal !ir_ref TYPE REF TO data . METHODS from_path IMPORTING !is_meta TYPE ty_meta_internal !ir_ref TYPE REF TO data . METHODS generate_spec IMPORTING !iv_title TYPE clike !iv_description TYPE clike . METHODS generate_ui IMPORTING !iv_json_url TYPE string !iv_dist TYPE string DEFAULT '' !iv_title TYPE clike DEFAULT '' RETURNING VALUE(rv_ui) TYPE string . METHODS json_reply IMPORTING !is_meta TYPE ty_meta_internal !it_parameters TYPE abap_parmbind_tab . METHODS text_reply IMPORTING !is_meta TYPE ty_meta_internal !it_parameters TYPE abap_parmbind_tab . METHODS validate_parameters IMPORTING !it_parameters TYPE ty_parameters_tt . PRIVATE SECTION. METHODS handle_response IMPORTING is_meta TYPE ty_meta_internal iv_abap_response TYPE any CHANGING cv_data TYPE xstring RAISING cx_parameter_invalid_range cx_parameter_invalid_type cx_sy_codepage_converter_init cx_sy_conversion_codepage . METHODS handle_remove_data_object IMPORTING is_meta TYPE ty_meta_internal CHANGING cv_data_as_string TYPE string RAISING cx_parameter_invalid_range cx_parameter_invalid_type cx_sy_codepage_converter_init cx_sy_conversion_codepage. ENDCLASS. CLASS ZCL_SWAG IMPLEMENTATION. METHOD build_parameters. DATA: ls_parameter LIKE LINE OF rt_parameters, lr_dref TYPE REF TO data. FIELD-SYMBOLS: <ls_parameter> LIKE LINE OF is_meta-parameters, <lg_comp> TYPE any, <lg_struc> TYPE any. lr_dref = create_data( is_meta ). ASSIGN lr_dref->* TO <lg_struc>. LOOP AT is_meta-parameters ASSIGNING <ls_parameter>. ASSIGN COMPONENT <ls_parameter>-sconame OF STRUCTURE <lg_struc> TO <lg_comp>. ASSERT sy-subrc = 0. ls_parameter-name = <ls_parameter>-sconame. GET REFERENCE OF <lg_comp> INTO ls_parameter-value. INSERT ls_parameter INTO TABLE rt_parameters. ENDLOOP. from_path( is_meta = is_meta ir_ref = lr_dref ). IF is_meta-meta-method = c_method-get. from_query( is_meta = is_meta ir_ref = lr_dref ). ELSE. from_body( is_meta = is_meta ir_ref = lr_dref ). ENDIF. ENDMETHOD. METHOD constructor. mi_server = ii_server. mv_base = iv_base. mv_swagger_json = iv_swagger_json. mv_swagger_html = iv_swagger_html. mv_title = iv_title. ENDMETHOD. METHOD create_data. DATA: lo_struct TYPE REF TO cl_abap_structdescr, lt_components TYPE cl_abap_structdescr=>component_table, lo_typedescr TYPE REF TO cl_abap_typedescr. FIELD-SYMBOLS: <ls_component> LIKE LINE OF lt_components, <ls_parameter> LIKE LINE OF is_meta-parameters. LOOP AT is_meta-parameters ASSIGNING <ls_parameter>. APPEND INITIAL LINE TO lt_components ASSIGNING <ls_component>. <ls_component>-name = <ls_parameter>-sconame. lo_typedescr = zcl_swag_map_type=>get_typedescr( <ls_parameter> ). <ls_component>-type ?= lo_typedescr. ENDLOOP. lo_struct = cl_abap_structdescr=>get( lt_components ). CREATE DATA rr_data TYPE HANDLE lo_struct. ENDMETHOD. METHOD from_body. DATA: lv_cdata TYPE string, lo_writer TYPE REF TO cl_sxml_string_writer, lv_json TYPE xstring. FIELD-SYMBOLS: <ls_parameter> LIKE LINE OF is_meta-parameters, <lg_comp> TYPE any, <lg_struc> TYPE any. ASSIGN ir_ref->* TO <lg_struc>. LOOP AT is_meta-parameters ASSIGNING <ls_parameter> WHERE pardecltyp = c_parm_kind-importing. READ TABLE is_meta-meta-url-group_names FROM <ls_parameter>-sconame TRANSPORTING NO FIELDS. IF sy-subrc = 0. * ignore parameters that are part of url CONTINUE. ENDIF. ASSIGN COMPONENT <ls_parameter>-sconame OF STRUCTURE <lg_struc> TO <lg_comp>. ASSERT sy-subrc = 0. IF <ls_parameter>-type = 'STRING'. <lg_comp> = mi_server->request->get_cdata( ). ELSEIF <ls_parameter>-type = 'XSTRING'. <lg_comp> = mi_server->request->get_data( ). ELSE. lv_cdata = mi_server->request->get_cdata( ). lv_cdata = '{"DATA":' && lv_cdata && '}'. lo_writer = cl_sxml_string_writer=>create( type = if_sxml=>co_xt_json ). CALL TRANSFORMATION zdemo_json_xml_to_upper SOURCE XML lv_cdata RESULT XML lo_writer. lv_json = lo_writer->get_output( ). CALL TRANSFORMATION id SOURCE XML lv_json RESULT data = <lg_comp>. ENDIF. * multiple body input parameters not allowed * todo, this should be validated earlier RETURN. ENDLOOP. ENDMETHOD. METHOD from_path. DEFINE _store. READ TABLE is_meta-meta-url-group_names INDEX &1 INTO lv_component. IF sy-subrc = 0. ASSIGN COMPONENT lv_component OF STRUCTURE <lg_struc> TO <lg_comp>. ASSERT sy-subrc = 0. <lg_comp> = lv_match&1. ENDIF. END-OF-DEFINITION. DATA: lv_path TYPE string, lv_component TYPE string, lv_match1 TYPE string, lv_match2 TYPE string, lv_match3 TYPE string, lv_match4 TYPE string, lv_match5 TYPE string. FIELD-SYMBOLS: <lg_comp> TYPE any, <lg_struc> TYPE any. ASSIGN ir_ref->* TO <lg_struc>. lv_path = mi_server->request->get_header_field( '~path' ). lv_path = cl_http_utility=>unescape_url( lv_path ). FIND REGEX is_meta-meta-url-regex IN lv_path SUBMATCHES lv_match1 lv_match2 lv_match3 lv_match4 lv_match5. _store 1. _store 2. _store 3. _store 4. _store 5. ENDMETHOD. METHOD from_query. DATA: lv_field TYPE string. FIELD-SYMBOLS: <ls_parameter> LIKE LINE OF is_meta-parameters, <lg_comp> TYPE any, <lg_struc> TYPE any. ASSIGN ir_ref->* TO <lg_struc>. LOOP AT is_meta-parameters ASSIGNING <ls_parameter> WHERE pardecltyp = c_parm_kind-importing. READ TABLE is_meta-meta-url-group_names FROM <ls_parameter>-sconame TRANSPORTING NO FIELDS. IF sy-subrc = 0. * ignore parameters that are part of url CONTINUE. ENDIF. ASSIGN COMPONENT <ls_parameter>-sconame OF STRUCTURE <lg_struc> TO <lg_comp>. ASSERT sy-subrc = 0. lv_field = to_lower( <ls_parameter>-sconame ). <lg_comp> = mi_server->request->get_form_field( lv_field ). ENDLOOP. ENDMETHOD. METHOD generate_spec. DATA: lv_spec TYPE string, lo_spec TYPE REF TO zcl_swag_spec. CREATE OBJECT lo_spec EXPORTING iv_title = iv_title iv_description = iv_description it_meta = mt_meta iv_base = mv_base it_tagdescription = mt_tagdescription. lv_spec = lo_spec->generate( ). mi_server->response->set_cdata( lv_spec ). mi_server->response->set_content_type( 'application/json' ). mi_server->response->set_status( code = 200 reason = '200' ). ENDMETHOD. METHOD generate_ui. * todo, IV_DIST not supplyed from anywhere? DEFINE _add. CONCATENATE rv_ui &1 cl_abap_char_utilities=>newline INTO rv_ui ##NO_TEXT. END-OF-DEFINITION. _add '<!DOCTYPE html>'. _add '<html>'. _add '<head>'. _add '<meta charset="UTF-8">'. _add '<title>'. IF iv_title IS INITIAL. _add 'Swagger UI'. ELSE. _add iv_title. ENDIF. _add '</title>'. _add '<link href="iv_dist/swagger-ui.css" media="screen" rel="stylesheet" type="text/css"/>'. _add '<style>'. _add ' body {'. _add ' margin:0;'. _add ' background: #fafafa;'. _add ' }'. _add '</style>'. _add '</head>'. _add '<body>'. _add '<div id="swagger-ui"></div>'. _add '<script src="iv_dist/swagger-ui-bundle.js" type="text/javascript"></script>'. _add '<script src="iv_dist/swagger-ui-standalone-preset.js" type="text/javascript"></script>'. _add '<script type="text/javascript">'. _add 'window.onload = function() {'. _add 'const ui = SwaggerUIBundle({'. _add ' url: "swagger.json",'. _add ' validatorUrl: "",'. _add ' dom_id: "#swagger-ui",'. _add ' presets: ['. _add ' SwaggerUIBundle.presets.apis,'. _add ' Array.isArray(SwaggerUIStandalonePreset) ? SwaggerUIStandalonePreset : SwaggerUIStandalonePreset.default'. _add ' ],'. _add ' plugins: ['. _add ' SwaggerUIBundle.plugins.DownloadUrl'. _add ' ],'. _add ' layout: "StandaloneLayout"'. _add '})'. _add 'window.ui = ui'. _add '}'. _add '</script>'. _add '</body>'. _add '</html>'. IF iv_dist IS INITIAL. REPLACE ALL OCCURRENCES OF 'iv_dist' IN rv_ui WITH 'https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.22.2'. ELSE. REPLACE ALL OCCURRENCES OF 'iv_dist' IN rv_ui WITH iv_dist ##NO_TEXT. ENDIF. REPLACE FIRST OCCURRENCE OF 'swagger.json' IN rv_ui WITH iv_json_url ##NO_TEXT. mi_server->response->set_cdata( rv_ui ). mi_server->response->set_status( code = 200 reason = '200' ). ENDMETHOD. METHOD handle_remove_data_object. DATA lv_length TYPE i. DATA lv_minus_data TYPE i. IF is_meta-meta-response_settings-remove_data_object = abap_true. lv_length = strlen( cv_data_as_string ). lv_minus_data = lv_length - 9. "start has |{"DATA":| (8) end has |}| (1) cv_data_as_string = cv_data_as_string+8(lv_minus_data). ENDIF. ENDMETHOD. METHOD handle_response. DATA: lo_xstring_to_string TYPE REF TO cl_abap_conv_in_ce, lo_string_to_xstring TYPE REF TO cl_abap_conv_out_ce, lv_data_as_string TYPE string. lo_xstring_to_string = cl_abap_conv_in_ce=>create( input = cv_data ). lo_xstring_to_string->read( IMPORTING data = lv_data_as_string ). handle_remove_data_object( EXPORTING is_meta = is_meta CHANGING cv_data_as_string = lv_data_as_string ). lo_string_to_xstring = cl_abap_conv_out_ce=>create( ). lo_string_to_xstring->convert( EXPORTING data = lv_data_as_string IMPORTING buffer = cv_data ). ENDMETHOD. METHOD json_reply. DATA: lv_data TYPE xstring, lo_writer TYPE REF TO cl_sxml_string_writer. FIELD-SYMBOLS: <ls_meta> LIKE LINE OF is_meta-parameters, <ls_parameter> LIKE LINE OF it_parameters, <lg_struc> TYPE any. READ TABLE is_meta-parameters ASSIGNING <ls_meta> WITH KEY pardecltyp = c_parm_kind-returning. IF sy-subrc = 0. READ TABLE it_parameters ASSIGNING <ls_parameter> WITH KEY name = <ls_meta>-sconame. ASSERT sy-subrc = 0. lo_writer = cl_sxml_string_writer=>create( if_sxml=>co_xt_json ). ASSIGN <ls_parameter>-value->* TO <lg_struc>. CALL TRANSFORMATION id SOURCE data = <lg_struc> RESULT XML lo_writer. lv_data = lo_writer->get_output( ). ENDIF. IF is_meta-meta-response_settings IS NOT INITIAL. handle_response( EXPORTING is_meta = is_meta iv_abap_response = <lg_struc> CHANGING cv_data = lv_data ). ENDIF. mi_server->response->set_data( lv_data ). ENDMETHOD. METHOD register. DATA: ls_meta LIKE LINE OF mt_meta, lt_meta TYPE ty_meta_tt, lo_obj TYPE REF TO cl_abap_objectdescr. lt_meta = ii_handler->meta( ). LOOP AT lt_meta INTO ls_meta-meta. ls_meta-obj = ii_handler. lo_obj ?= cl_abap_objectdescr=>describe_by_object_ref( ii_handler ). READ TABLE lo_obj->methods WITH KEY name = ls_meta-meta-handler visibility = cl_abap_objectdescr=>public TRANSPORTING NO FIELDS. * method must exist and be public ASSERT sy-subrc = 0. ls_meta-classname = lo_obj->absolute_name+7. SELECT * FROM seosubcodf INTO TABLE ls_meta-parameters WHERE clsname = ls_meta-classname AND cmpname = ls_meta-meta-handler AND sconame NOT LIKE 'ZCX_%' ORDER BY PRIMARY KEY. "#EC CI_SUBRC ASSERT sy-subrc = 0. " the method does not have any parameters validate_parameters( ls_meta-parameters ). APPEND ls_meta TO mt_meta. CLEAR ls_meta. ENDLOOP. ENDMETHOD. METHOD run. DATA: lv_path TYPE string, lv_method TYPE string, lt_parameters TYPE abap_parmbind_tab, lx_swag TYPE REF TO zcx_swag. FIELD-SYMBOLS: <ls_meta> LIKE LINE OF mt_meta. lv_path = mi_server->request->get_header_field( '~path' ). lv_path = cl_http_utility=>unescape_url( lv_path ). lv_method = mi_server->request->get_method( ). IF lv_path = mv_base && mv_swagger_html. generate_ui( iv_json_url = mv_base && mv_swagger_json iv_title = mv_title && ' - Swagger' ). RETURN. ELSEIF lv_path = mv_base && mv_swagger_json. generate_spec( iv_title = mv_title iv_description = mv_title && ' REST functions' ). RETURN. ENDIF. LOOP AT mt_meta ASSIGNING <ls_meta> WHERE meta-method = lv_method. FIND REGEX <ls_meta>-meta-url-regex IN lv_path. IF sy-subrc = 0. lt_parameters = build_parameters( <ls_meta> ). TRY. CALL METHOD <ls_meta>-obj->(<ls_meta>-meta-handler) PARAMETER-TABLE lt_parameters. CATCH zcx_swag INTO lx_swag. mi_server->response->set_cdata( |{ lx_swag->status_code }, { lx_swag->get_text( ) }| ). mi_server->response->set_status( code = lx_swag->status_code reason = lx_swag->get_text( ) ). RETURN. ENDTRY. mi_server->response->set_compression( ). LOOP AT <ls_meta>-parameters TRANSPORTING NO FIELDS WHERE pardecltyp = c_parm_kind-returning AND ( type = 'STRING' OR type = 'XSTRING' ). * assumption: RETURNING only, no EXPORTING at the same time EXIT. ENDLOOP. IF sy-subrc = 0. text_reply( is_meta = <ls_meta> it_parameters = lt_parameters ). ELSE. mi_server->response->set_header_field( name = 'content-type' value = 'application/json' ). json_reply( is_meta = <ls_meta> it_parameters = lt_parameters ). ENDIF. mi_server->response->set_header_field( name = 'cache-control' value = 'no-cache' ). mi_server->response->set_status( code = 200 reason = '200' ). RETURN. ENDIF. ENDLOOP. mi_server->response->set_cdata( '404, swagger' ). mi_server->response->set_status( code = 404 reason = '404' ). ENDMETHOD. METHOD set_tagdescription. APPEND is_description TO mt_tagdescription. ENDMETHOD. METHOD text_reply. FIELD-SYMBOLS: <lg_any> TYPE any, <ls_meta> LIKE LINE OF is_meta-parameters, <ls_parameter> LIKE LINE OF it_parameters. READ TABLE is_meta-parameters ASSIGNING <ls_meta> WITH KEY pardecltyp = c_parm_kind-returning. IF sy-subrc = 0. READ TABLE it_parameters ASSIGNING <ls_parameter> WITH KEY name = <ls_meta>-sconame. ASSERT sy-subrc = 0. ASSIGN <ls_parameter>-value->* TO <lg_any>. CASE <ls_meta>-type. WHEN 'XSTRING'. mi_server->response->set_data( <lg_any> ). WHEN 'STRING'. mi_server->response->set_cdata( <lg_any> ). WHEN OTHERS. ASSERT 0 = 1. ENDCASE. ENDIF. ENDMETHOD. METHOD validate_parameters. * no EXPORTING, no CHANGING LOOP AT it_parameters TRANSPORTING NO FIELDS WHERE pardecltyp = c_parm_kind-exporting OR pardecltyp = c_parm_kind-changing. ASSERT 0 = 1. ENDLOOP. * no reference types * todo * todo, max one importing parameter? apart from path parameters? ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 2032, 363, 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, 17143, 7307, 62, 926, 41876, 49053, 9795, 43679, 3963, 384, 418, 549, 19815, 69, 13315, 5550, 38865, 35374, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 6371, 11, 198, 220, 220, 220, 220, 220, 220, 220, 40364, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1448, 62, 14933, 41876, 49053, 9795, 43679, 3963, 384, 418, 1102, 480, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 6371, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 26209, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 62, 7890, 62, 15252, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 26209, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 28961, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10638, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19016, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 6371, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2446, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 21360, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 15940, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 4731, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2882, 62, 33692, 41876, 1259, 62, 26209, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 28961, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 28961, 62, 32538, 11, 198, 220, 220, 220, 220, 220, 220, 220, 13634, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 28961, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26181, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 2134, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10007, 41876, 1259, 62, 17143, 7307, 62, 926, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1398, 3672, 220, 41876, 384, 420, 7278, 3672, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 28961, 62, 32538, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 28961, 62, 32538, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 28961, 62, 32538, 13315, 5550, 38865, 35374, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 28961, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 28961, 13315, 5550, 38865, 35374, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 1069, 759, 1940, 420, 11, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19016, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 1069, 759, 1940, 420, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 12985, 11213, 11, 198, 220, 220, 220, 220, 220, 220, 220, 7621, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 409, 759, 1940, 420, 41876, 1259, 62, 1069, 759, 1940, 420, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 12985, 11213, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 12985, 11213, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 12985, 11213, 13315, 5550, 38865, 35374, 764, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 79, 1670, 62, 11031, 11, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 41876, 384, 15478, 68, 565, 26173, 8924, 705, 15, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 39133, 41876, 384, 15478, 68, 565, 26173, 8924, 705, 16, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 5609, 220, 41876, 384, 15478, 68, 565, 26173, 8924, 705, 17, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8024, 41876, 384, 15478, 68, 565, 26173, 8924, 705, 18, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 79, 1670, 62, 11031, 764, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 24396, 11, 198, 220, 220, 220, 220, 220, 220, 220, 651, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 18851, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 1281, 220, 220, 41876, 4731, 26173, 8924, 705, 32782, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 1234, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 30076, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 12233, 41876, 4731, 26173, 8924, 705, 7206, 2538, 9328, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 24396, 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, 4178, 62, 15388, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 15388, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8692, 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,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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 ]
CLASS zcl_advent2020_day10_hvam DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_advent2020_hvam . METHODS part1 IMPORTING !input TYPE string RETURNING VALUE(output) TYPE string . METHODS part2 IMPORTING !input TYPE string RETURNING VALUE(output) TYPE string . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ZCL_ADVENT2020_DAY10_HVAM IMPLEMENTATION. METHOD part1. ENDMETHOD. METHOD part2. ENDMETHOD. METHOD zif_advent2020_hvam~solve. output = part1( input ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 324, 1151, 42334, 62, 820, 940, 62, 71, 85, 321, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 324, 1151, 42334, 62, 71, 85, 321, 764, 628, 220, 220, 220, 337, 36252, 50, 636, 16, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 15414, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 22915, 8, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252, 50, 636, 17, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 15414, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 22915, 8, 41876, 4731, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 2885, 53, 3525, 42334, 62, 26442, 940, 62, 39, 53, 2390, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 636, 16, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 636, 17, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 324, 1151, 42334, 62, 71, 85, 321, 93, 82, 6442, 13, 628, 220, 220, 220, 5072, 796, 636, 16, 7, 5128, 6739, 628, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_equals_sign_chaining DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC. PUBLIC SECTION. METHODS constructor . PROTECTED SECTION. METHODS inspect_tokens REDEFINITION. PRIVATE SECTION. METHODS get_second_token IMPORTING statement TYPE sstmnt RETURNING VALUE(result) TYPE string. METHODS get_fourth_token IMPORTING statement TYPE sstmnt RETURNING VALUE(result) TYPE string. ENDCLASS. CLASS y_check_equals_sign_chaining IMPLEMENTATION. METHOD constructor. super->constructor( ). settings-pseudo_comment = '"#EC EQUALS_CHAINING'. settings-documentation = |{ c_docs_path-checks }equals-sign-chaining.md|. settings-disable_threshold_selection = abap_true. settings-threshold = 0. set_check_message( 'Values should not be allocated more than once within one statement!' ). ENDMETHOD. METHOD inspect_tokens. CHECK get_second_token( statement ) EQ '='. CHECK get_fourth_token( statement ) EQ '='. DATA(check_configuration) = detect_check_configuration( statement ). IF check_configuration IS INITIAL. RETURN. ENDIF. raise_error( statement_level = statement-level statement_index = index statement_from = statement-from error_priority = check_configuration-prio ). ENDMETHOD. METHOD get_fourth_token. result = get_token_abs( statement-from + 3 ). ENDMETHOD. METHOD get_second_token. result = get_token_abs( statement-from + 1 ). ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9122, 62, 4853, 874, 62, 12683, 62, 354, 1397, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 331, 62, 9122, 62, 8692, 29244, 6158, 44731, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 10104, 62, 83, 482, 641, 23848, 36, 20032, 17941, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 12227, 62, 30001, 30023, 9863, 2751, 2643, 220, 220, 220, 220, 41876, 264, 301, 76, 429, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 4731, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 49393, 62, 30001, 30023, 9863, 2751, 2643, 220, 220, 220, 220, 41876, 264, 301, 76, 429, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 4731, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 331, 62, 9122, 62, 4853, 874, 62, 12683, 62, 354, 1397, 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, 46886, 23333, 62, 3398, 29833, 2751, 4458, 198, 220, 220, 220, 6460, 12, 22897, 341, 796, 930, 90, 269, 62, 31628, 62, 6978, 12, 42116, 1782, 4853, 874, 12, 12683, 12, 354, 1397, 13, 9132, 91, 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, 628, 220, 220, 220, 900, 62, 9122, 62, 20500, 7, 705, 40161, 815, 407, 307, 19171, 517, 621, 1752, 1626, 530, 2643, 13679, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 10104, 62, 83, 482, 641, 13, 628, 220, 220, 220, 5870, 25171, 651, 62, 12227, 62, 30001, 7, 2643, 1267, 36529, 705, 28, 4458, 198, 220, 220, 220, 5870, 25171, 651, 62, 49393, 62, 30001, 7, 2643, 1267, 36529, 705, 28, 4458, 628, 220, 220, 220, 42865, 7, 9122, 62, 11250, 3924, 8, 796, 4886, 62, 9122, 62, 11250, 3924, 7, 2643, 6739, 628, 220, 220, 220, 16876, 2198, 62, 11250, 3924, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 5298, 62, 18224, 7, 2643, 62, 5715, 220, 220, 220, 220, 796, 2643, 12, 5715, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 9630, 220, 220, 220, 220, 796, 6376, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 6738, 220, 220, 220, 220, 220, 796, 2643, 12, 6738, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4049, 62, 49336, 220, 220, 220, 220, 220, 796, 2198, 62, 11250, 3924, 12, 3448, 78, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 49393, 62, 30001, 13, 198, 220, 220, 220, 1255, 796, 651, 62, 30001, 62, 8937, 7, 2643, 12, 6738, 1343, 513, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 12227, 62, 30001, 13, 198, 220, 220, 220, 1255, 796, 651, 62, 30001, 62, 8937, 7, 2643, 12, 6738, 1343, 352, 6739, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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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 ]
CLASS zbp_i_rap_travel_u_mipo DEFINITION PUBLIC ABSTRACT FINAL FOR BEHAVIOR OF zi_rap_travel_u_mipo. ENDCLASS. CLASS ZBP_I_RAP_TRAVEL_U_MIPO IMPLEMENTATION. ENDCLASS.
[ 31631, 1976, 46583, 62, 72, 62, 2416, 62, 35927, 62, 84, 62, 76, 541, 78, 5550, 20032, 17941, 44731, 9564, 18601, 10659, 25261, 7473, 9348, 7801, 12861, 1581, 3963, 1976, 72, 62, 2416, 62, 35927, 62, 84, 62, 76, 541, 78, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 20866, 62, 40, 62, 49, 2969, 62, 51, 3861, 18697, 62, 52, 62, 44, 4061, 46, 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 ]
INTERFACE ZIF_DBBR_statement_validator PUBLIC . METHODS validate CHANGING cs_statement TYPE ZIF_DBBR_fe_types=>ty_statement RAISING ZCX_DBBR_fe_stmnt_valid_exc. ENDINTERFACE.
[ 41358, 49836, 1168, 5064, 62, 11012, 11473, 62, 26090, 62, 12102, 1352, 198, 220, 44731, 764, 198, 220, 337, 36252, 50, 26571, 198, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 50115, 62, 26090, 41876, 1168, 5064, 62, 11012, 11473, 62, 5036, 62, 19199, 14804, 774, 62, 26090, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1168, 34, 55, 62, 11012, 11473, 62, 5036, 62, 301, 76, 429, 62, 12102, 62, 41194, 13, 198, 10619, 41358, 49836, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS cx_uuid_error DEFINITION PUBLIC INHERITING FROM cx_static_check. ENDCLASS. CLASS cx_uuid_error IMPLEMENTATION. ENDCLASS.
[ 31631, 43213, 62, 12303, 312, 62, 18224, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 43213, 62, 12708, 62, 9122, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 43213, 62, 12303, 312, 62, 18224, 30023, 2538, 10979, 6234, 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 ]
"! <p class="shorttext synchronized" lang="en">Function codes for Selection/Output</p> INTERFACE zif_dbbr_c_selection_functions PUBLIC. CONSTANTS add_text_field TYPE sy-ucomm VALUE 'ADD_TEXT_FIELDS' ##NO_TEXT. CONSTANTS calc_sum_of_chosen_cells TYPE sy-ucomm VALUE 'CALC_SUM_OF_CELLS' ##NO_TEXT. CONSTANTS change_cds_parameters TYPE sy-ucomm VALUE 'CHGPARAMS' ##NO_TEXT. CONSTANTS change_max_row_count TYPE sy-ucomm VALUE 'CHMAXROWS' ##NO_TEXT. CONSTANTS clear_filter TYPE sy-ucomm VALUE '&ILD' ##NO_TEXT. CONSTANTS compare_selected_lines TYPE sy-ucomm VALUE 'COMPLINES' ##NO_TEXT. CONSTANTS control_tech_view TYPE sy-ucomm VALUE 'CTRLTECHVW' ##NO_TEXT. CONSTANTS copy_as_val_stmnts TYPE sy-ucomm VALUE 'CPYVALSTMN' ##NO_TEXT. CONSTANTS copy_as_val_stmnt_compact TYPE sy-ucomm VALUE 'CPYVALSTMNT_COMPACT' ##NO_TEXT. CONSTANTS define_variant TYPE sy-ucomm VALUE '&OL0' ##NO_TEXT. CONSTANTS delete_colors_of_columns TYPE sy-ucomm VALUE 'DEL_EMPCOL' ##NO_TEXT. CONSTANTS delete_colors_of_rows TYPE sy-ucomm VALUE 'DEL_EMPROW' ##NO_TEXT. CONSTANTS delete_data TYPE sy-ucomm VALUE 'DELETEDATA' ##NO_TEXT. CONSTANTS delete_filters_from_cols TYPE sy-ucomm VALUE 'RMVFILTCOL' ##NO_TEXT. CONSTANTS delete_hidden_lines TYPE sy-ucomm VALUE 'DEL_HIDROW' ##NO_TEXT. CONSTANTS determine_line_count TYPE sy-ucomm VALUE 'LINE_COUNT' ##NO_TEXT. CONSTANTS disable_checkbox_col_style TYPE sy-ucomm VALUE 'DISCHKBOX_STYLE' ##NO_TEXT. CONSTANTS disable_chkbox_col_style_all TYPE sy-ucomm VALUE 'DISCHKBOX_STYLE_ALL' ##NO_TEXT. CONSTANTS display_db_browser_version TYPE sy-ucomm VALUE 'SHOWVERSIO' ##NO_TEXT. CONSTANTS edit_data TYPE sy-ucomm VALUE 'EDITDATA' ##NO_TEXT. CONSTANTS emphasize_lines TYPE sy-ucomm VALUE 'EMPH_LINES' ##NO_TEXT. CONSTANTS emphasize_negative_values TYPE sy-ucomm VALUE 'EMPH_NEGAT' ##NO_TEXT. CONSTANTS emph_blue TYPE sy-ucomm VALUE 'EMPH_BLUE' ##NO_TEXT. CONSTANTS emph_green TYPE sy-ucomm VALUE 'EMPH_GREEN' ##NO_TEXT. CONSTANTS emph_green_inverted TYPE sy-ucomm VALUE 'EMPH_GREEN_INVERTED' ##NO_TEXT. CONSTANTS emph_grey_blue TYPE sy-ucomm VALUE 'EMPH_GREY_BLUE' ##NO_TEXT. CONSTANTS emph_light_blue TYPE sy-ucomm VALUE 'EMPH_LIGHT_BLUE' ##NO_TEXT. CONSTANTS emph_light_green TYPE sy-ucomm VALUE 'EMPH_LIGHT_GREEN' ##NO_TEXT. CONSTANTS emph_light_grey_blue TYPE sy-ucomm VALUE 'EMPH_LIGHT_GREY_BLUE' ##NO_TEXT. CONSTANTS emph_light_orange TYPE sy-ucomm VALUE 'EMPH_LIGHT_ORANGE' ##NO_TEXT. CONSTANTS emph_light_red TYPE sy-ucomm VALUE 'EMPH_LIGHT_RED' ##NO_TEXT. CONSTANTS emph_light_yellow TYPE sy-ucomm VALUE 'EMPH_LIGHT_YELLOW' ##NO_TEXT. CONSTANTS emph_orange TYPE sy-ucomm VALUE 'EMPH_ORANGE' ##NO_TEXT. CONSTANTS emph_red TYPE sy-ucomm VALUE 'EMPH_RED' ##NO_TEXT. CONSTANTS emph_red_inverted TYPE sy-ucomm VALUE 'EMPH_RED_INVERTED' ##NO_TEXT. CONSTANTS emph_yellow TYPE sy-ucomm VALUE 'EMPH_YELLOW' ##NO_TEXT. CONSTANTS filter_lines TYPE sy-ucomm VALUE '&ILT' ##NO_TEXT. CONSTANTS freeze_rows_cols TYPE sy-ucomm VALUE 'FIX_ROWS_COLS' ##NO_TEXT. CONSTANTS go_to_column TYPE sy-ucomm VALUE 'GO_TO_COL' ##NO_TEXT. CONSTANTS group_by_selected_columns TYPE sy-ucomm VALUE 'GROUP_ONLI' ##NO_TEXT. CONSTANTS hide_cols_without_values TYPE sy-ucomm VALUE 'HIDECOLNVL' ##NO_TEXT. CONSTANTS hide_columns TYPE sy-ucomm VALUE '&COL_INV' ##NO_TEXT. CONSTANTS hide_lines TYPE sy-ucomm VALUE 'HIDE_SELECTED' ##NO_TEXT. "! <p class="shorttext synchronized" lang="en">ABAP System Field: PAI-Triggering Function Code</p> CONSTANTS hide_other_columns TYPE sy-ucomm VALUE 'HIDE_OTHERS' ##NO_TEXT. CONSTANTS keep_lines TYPE sy-ucomm VALUE 'KEEP_SELECTED' ##NO_TEXT. CONSTANTS leave_screen_with_layout TYPE sy-ucomm VALUE 'BACKWLAYOT' ##NO_TEXT. CONSTANTS load_variant TYPE sy-ucomm VALUE '&OAD' ##NO_TEXT. CONSTANTS manage_text_fields TYPE sy-ucomm VALUE 'MANAGE_TEXT_FIELDS' ##NO_TEXT. CONSTANTS navigate_association TYPE sy-ucomm VALUE 'NAVASSOC' ##NO_TEXT. CONSTANTS no_emphasize_cells TYPE sy-ucomm VALUE 'NO_EMPH_CELLS' ##NO_TEXT. CONSTANTS no_emphasize_lines TYPE sy-ucomm VALUE 'NO_EMPH_LINES' ##NO_TEXT. CONSTANTS open_in_sql_console TYPE sy-ucomm VALUE 'SQLCONSOLE' ##NO_TEXT. CONSTANTS quick_filter TYPE sy-ucomm VALUE 'QUICK_FILT' ##NO_TEXT. CONSTANTS quick_filter_exclusion TYPE sy-ucomm VALUE 'QUICK_FEXC' ##NO_TEXT. CONSTANTS refresh TYPE sy-ucomm VALUE 'REFRESH' ##NO_TEXT. CONSTANTS remove_column_grouping TYPE sy-ucomm VALUE 'RMVGROUPNG' ##NO_TEXT. CONSTANTS remove_fixed_rows TYPE sy-ucomm VALUE 'REMOVE_FIXED_ROWS' ##NO_TEXT. CONSTANTS reset_alv_layout TYPE sy-ucomm VALUE 'RESET_LYT' ##NO_TEXT. CONSTANTS save_as_variant TYPE sy-ucomm VALUE 'SAVEVAR' ##NO_TEXT. CONSTANTS save_selection_as_f4 TYPE sy-ucomm VALUE 'SAVE_AS_F4' ##NO_TEXT. CONSTANTS set_fixed_rows TYPE sy-ucomm VALUE 'SET_FIXED_ROWS' ##NO_TEXT. CONSTANTS set_focus_to_assoc_list TYPE sy-ucomm VALUE 'FOCUSASSOC' ##NO_TEXT. CONSTANTS set_focus_to_list TYPE sy-ucomm VALUE 'FOCUSALV' ##NO_TEXT. CONSTANTS show_active_formula TYPE sy-ucomm VALUE 'SHOWFORM' ##NO_TEXT. CONSTANTS show_all_columns TYPE sy-ucomm VALUE 'SHOW_ALL_COLS' ##NO_TEXT. CONSTANTS show_cds_source TYPE sy-ucomm VALUE 'SHOWCDSSRC' ##NO_TEXT. "! <p class="shorttext synchronized" lang="en">ABAP System Field: PAI-Triggering Function Code</p> CONSTANTS show_details TYPE sy-ucomm VALUE 'DETAILS' ##NO_TEXT. CONSTANTS show_hidden_lines TYPE sy-ucomm VALUE 'DISP_HIDRO' ##NO_TEXT. CONSTANTS show_shortcuts TYPE sy-ucomm VALUE 'SHORTCUTS' ##NO_TEXT. CONSTANTS show_sql_of_select TYPE sy-ucomm VALUE 'SHOWSQL' ##NO_TEXT. CONSTANTS show_string_cell_content TYPE sy-ucomm VALUE 'SHOW_STRING_CELL_CONTENT' ##NO_TEXT. CONSTANTS show_users_settings TYPE sy-ucomm VALUE 'SETTINGS' ##NO_TEXT. CONSTANTS sum_column TYPE sy-ucomm VALUE '&SUM' ##NO_TEXT. CONSTANTS toggle_entity_info_header TYPE sy-ucomm VALUE 'HDR_VSBLTY' ##NO_TEXT. CONSTANTS transfer_filter_values TYPE sy-ucomm VALUE 'TRNSFFILT' ##NO_TEXT. ENDINTERFACE.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 22203, 12416, 329, 29538, 14, 26410, 3556, 79, 29, 198, 41358, 49836, 1976, 361, 62, 9945, 1671, 62, 66, 62, 49283, 62, 12543, 2733, 198, 220, 44731, 13, 628, 220, 7102, 2257, 1565, 4694, 751, 62, 5239, 62, 3245, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 29266, 62, 32541, 62, 11674, 3698, 5258, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 42302, 62, 16345, 62, 1659, 62, 354, 5233, 62, 46342, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 34, 1847, 34, 62, 50, 5883, 62, 19238, 62, 5222, 3069, 50, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 1487, 62, 66, 9310, 62, 17143, 7307, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 3398, 16960, 1503, 40834, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 1487, 62, 9806, 62, 808, 62, 9127, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 3398, 22921, 49, 22845, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 1598, 62, 24455, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 5, 26761, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 8996, 62, 34213, 62, 6615, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 9858, 6489, 1268, 1546, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 1630, 62, 13670, 62, 1177, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 4177, 7836, 51, 25994, 30133, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 4866, 62, 292, 62, 2100, 62, 301, 76, 429, 82, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 8697, 56, 23428, 2257, 39764, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 4866, 62, 292, 62, 2100, 62, 301, 76, 429, 62, 5589, 529, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 8697, 56, 23428, 2257, 44, 11251, 62, 9858, 47, 10659, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 8160, 62, 25641, 415, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 5, 3535, 15, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 12233, 62, 4033, 669, 62, 1659, 62, 28665, 82, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 35, 3698, 62, 3620, 5662, 3535, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 12233, 62, 4033, 669, 62, 1659, 62, 8516, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 35, 3698, 62, 3620, 4805, 3913, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 12233, 62, 7890, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 7206, 28882, 1961, 13563, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 12233, 62, 10379, 1010, 62, 6738, 62, 4033, 82, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 29138, 53, 46700, 4825, 3535, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 12233, 62, 30342, 62, 6615, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 35, 3698, 62, 39, 2389, 49, 3913, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 5004, 62, 1370, 62, 9127, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 24027, 62, 34, 28270, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 15560, 62, 9122, 3524, 62, 4033, 62, 7635, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 26288, 3398, 42, 39758, 62, 2257, 56, 2538, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 15560, 62, 354, 74, 3524, 62, 4033, 62, 7635, 62, 439, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 26288, 3398, 42, 39758, 62, 2257, 56, 2538, 62, 7036, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 3359, 62, 9945, 62, 40259, 62, 9641, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 9693, 3913, 28884, 9399, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 4370, 62, 7890, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 24706, 26947, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 21322, 62, 6615, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 3620, 11909, 62, 34509, 1546, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 21322, 62, 31591, 62, 27160, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 3620, 11909, 62, 45, 7156, 1404, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 33595, 62, 17585, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 3620, 11909, 62, 9148, 8924, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 33595, 62, 14809, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 3620, 11909, 62, 43016, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 33595, 62, 14809, 62, 259, 13658, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 3620, 11909, 62, 43016, 62, 1268, 15858, 1961, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 33595, 62, 49502, 62, 17585, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 3620, 11909, 62, 28934, 56, 62, 9148, 8924, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 33595, 62, 2971, 62, 17585, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 3620, 11909, 62, 43, 9947, 62, 9148, 8924, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 33595, 62, 2971, 62, 14809, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 3620, 11909, 62, 43, 9947, 62, 43016, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 33595, 62, 2971, 62, 49502, 62, 17585, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 3620, 11909, 62, 43, 9947, 62, 28934, 56, 62, 9148, 8924, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 33595, 62, 2971, 62, 43745, 41876, 827, 12, 84, 9503, 26173, 8924, 705, 3620, 11909, 62, 43, 9947, 62, 1581, 27746, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 33595, 62, 2971, 62, 445, 41876, 827, 12, 84, 9503, 26173, 8924 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
INTERFACE lif_data_generator. CLASS-METHODS: create IMPORTING out TYPE REF TO if_oo_adt_classrun_out OPTIONAL. ENDINTERFACE. CLASS lcl_agency_data_generator DEFINITION CREATE PRIVATE. PUBLIC SECTION. INTERFACES: lif_data_generator. TYPES: tt_agency TYPE STANDARD TABLE OF /dmo/agency16 WITH KEY agency_id. CLASS-METHODS: get_data RETURNING VALUE(rt_data) TYPE tt_agency. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS lcl_agency_data_generator IMPLEMENTATION. METHOD lif_data_generator~create. IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF. DELETE FROM /dmo/agency16. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF. DATA(lt_data) = get_data( ). IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF. INSERT /dmo/agency16 FROM TABLE @lt_data. IF out IS BOUND. out->write( '--> Done.' ). ENDIF. ENDMETHOD. METHOD get_data. rt_data = VALUE tt_agency( ( agency_id = '070001' name = 'Sunshine Travel' street = '134 West Street ' postal_code = '54323 ' city = 'Rochester ' country_code = 'US ' phone_number = '+1 901-632-5620 ' web_address = 'http://www.sunshine-travel.sap ' email_address = '[email protected] ' ) ( agency_id = '070002' name = 'Fly High' street = 'Berliner Allee 11 ' postal_code = '40880 ' city = 'Duesseldorf ' country_code = 'DE ' phone_number = '+49 2102 69555 ' web_address = 'http://www.flyhigh.sap ' email_address = '[email protected] ' ) ( agency_id = '070003' name = 'Happy Hopping' street = 'Calvinstr. 36 ' postal_code = '13467 ' city = 'Berlin ' country_code = 'DE ' phone_number = '+49 30-8853-0 ' web_address = 'http://www.haphop.sap ' email_address = '[email protected] ' ) ( agency_id = '070004' name = 'Pink Panther' street = 'Auf der Schanz 54 ' postal_code = '65936 ' city = 'Frankfurt ' country_code = 'DE ' phone_number = '+49 69-467653-0 ' web_address = 'http://www.pinkpanther.sap' email_address = '[email protected] ' ) ( agency_id = '070005' name = 'Your Choice' street = 'Gustav-Jung-Str. 425 ' postal_code = '90455' city = 'Nuernberg' country_code = 'DE' phone_number = '+49 9256-4548-0' web_address = 'http://www.yc.sap' email_address = '[email protected]' ) ( agency_id = '070006' name = 'Bella Italia' street = 'Via Marconi 123' postal_code = '00139' city = 'Roma' country_code = 'IT' phone_number = '+39 6 893546721' web_address = 'http://www.tours.it/Adventure/' email_address = '[email protected]/Adventure/' ) ( agency_id = '070007' name = 'Hot Socks Travel' street = '224 Balnagask Rd ' postal_code = '8053 ' city = 'Sydney' country_code = 'AU ' phone_number = '+61 2 2004 5000 ' web_address = 'http://www.hst.co.au' email_address = '[email protected]' ) ( agency_id = '070008' name = 'Burns Nuclear' street = '14 Science Park Drive' postal_code = '118228' city = 'Singapore' country_code = 'SG' phone_number = '+65 777-5566' web_address = 'http://www.burns-burns-burns.sg' email_address = '[email protected]' ) ( agency_id = '070009' name = 'Honauer Reisen GmbH' street = 'Baumgarten 8' postal_code = '4212' city = 'Neumarkt' country_code = 'AT' phone_number = '+43 7941 8903' web_address = 'http://www.honauer.at' email_address = '[email protected]' ) ( agency_id = '070010' name = 'Travel from Walldorf' street = 'Altonaer Str. 24 ' postal_code = '10557 ' city = 'Berlin ' country_code = 'DE ' phone_number = '+49 30-622860 ' web_address = 'http://www.travel-from-walldorf' email_address = 'info@travel-from-walldorf' ) ( agency_id = '070011' name = 'Voyager Enterprises' street = 'Gustavslundsvaegen 151' postal_code = '70563 ' city = 'Stockholm ' country_code = 'SE ' phone_number = '+46 8/ 587 70000' web_address = 'http://www.starfleet.ufp' email_address = '[email protected]' ) ( agency_id = '070012' name = 'Ben McCloskey Ltd.' street = '74 Court Oak Rd' postal_code = 'B17 9TN' city = 'Birmingham' country_code = 'GB' phone_number = '+44 121 365-2251 ' web_address = 'http://www.ben-mcCloskey.co.uk' email_address = '[email protected]' ) ( agency_id = '070013' name = 'Pillepalle Trips' street = 'Gorki Park 4 ' postal_code = '8008 ' city = 'Zuerich ' country_code = 'CH ' phone_number = '+41 1 345-5321 ' web_address = 'http://www.pi-pa-tri.sap' email_address = '[email protected]' ) ( agency_id = '070014' name = 'Kangeroos' street = 'Lancaster drive 435 ' postal_code = '20001 ' city = 'London ' country_code = 'GB ' phone_number = '+44 171-2937638 ' web_address = 'http://www.hopp.sap ' email_address = '[email protected] ' ) ( agency_id = '070015' name = 'Bavarian Castle' street = 'Pilnizerstr. 241 ' postal_code = '01069 ' city = 'Dresden ' country_code = 'DE ' phone_number = '+49 98-32832732 ' web_address = 'http://www.neu.schwanstein.sap ' email_address = '[email protected] ' ) ( agency_id = '070016' name = 'Ali''s Bazar' street = '45, Mac Arthur Boulevard ' postal_code = '19113 ' city = 'Boston ' country_code = 'US ' phone_number = '+1 508-692-5200 ' web_address = 'http://www.ali.sap ' email_address = '[email protected] ' ) ( agency_id = '070017' name = 'Super Agency' street = '50 Cranworth St' postal_code = 'G12 8AG' city = 'Glasgow' country_code = 'GB' phone_number = '+44 141 711-5643' web_address = 'http://www.super.sap' email_address = '[email protected]' ) ( agency_id = '070018' name = 'Wang Chong' street = 'Gagarine Park ' postal_code = '150021 ' city = 'Moscow ' country_code = 'RU ' phone_number = '+7 3287-213321 ' web_address = 'http://www.wang.chong.sap' email_address = '[email protected]' ) ( agency_id = '070019' name = 'Around the World' street = 'An der Breiten Wiese 122 ' postal_code = '30625 ' city = 'Hannover ' country_code = 'DE ' phone_number = '+49 511-347589-0 ' web_address = 'http://www.atw.sap' email_address = '[email protected]' ) ( agency_id = '070020' name = 'No Return' street = 'Wahnheider Str. 57 ' postal_code = '51105 ' city = 'Koeln ' country_code = 'DE ' phone_number = '+49 221-5689-100 ' web_address = 'http://www.bye-bye.sap ' email_address = '[email protected] ' ) ( agency_id = '070021' name = 'Special Agency Peru' street = 'Triberger Str. 42 ' postal_code = '70569 ' city = 'Stuttgart ' country_code = 'DE ' phone_number = '+49 711-7100 ' web_address = 'http://www.sap.com ' email_address = '[email protected] ' ) ( agency_id = '070022' name = 'Caribian Dreams' street = 'Deichstrasse 45 ' postal_code = '26721 ' city = 'Emden ' country_code = 'DE ' phone_number = '+49 2670-8560-0 ' web_address = 'http://www.cuba-libre.sap ' email_address = '[email protected] ' ) ( agency_id = '070023' name = 'Asia By Plane' street = '6-9 Iidabashi 7-chome' postal_code = '102-0072' city = 'Tokyo ' country_code = 'JP' phone_number = '+81 3-3239-3501 ' web_address = 'http://www.asia-by-plane.co.jp' email_address = '[email protected]' ) ( agency_id = '070024' name = 'Everywhere' street = 'Regensburger Platz 23 ' postal_code = '81679 ' city = 'Muenchen ' country_code = 'DE ' phone_number = '+49 89-2499239 ' web_address = 'http://www.everywhere.sap' email_address = '[email protected]' ) ( agency_id = '070025' name = 'Happy Holiday' street = 'Rastenburger Str. 12' postal_code = '28779 ' city = 'Bremen ' country_code = 'DE ' phone_number = '+49 3266-288817 ' web_address = 'http://www.haphol.sap' email_address = '[email protected]' ) ( agency_id = '070026' name = 'No Name' street = 'Schwalbenweg 43 ' postal_code = '52078 ' city = 'Aachen ' country_code = 'DE ' phone_number = '+49 241-77729 ' web_address = 'http://www.nn.sap' email_address = '[email protected]' ) ( agency_id = '070027' name = 'Fly Low' street = 'Chemnitzer Str. 42 ' postal_code = '01187 ' city = 'Dresden ' country_code = 'DE ' phone_number = '+49 351-5423-00 ' web_address = 'http://www.fly-low.sap' email_address = '[email protected]' ) ( agency_id = '070028' name = 'Aussie Travel' street = 'Queens Road ' postal_code = 'M8 7RYP ' city = 'Manchester ' country_code = 'GB ' phone_number = '+44 161 2052000 ' web_address = 'http://www.down-under.sap' email_address = '[email protected]' ) ( agency_id = '070029' name = 'Up ''n'' Away' street = 'Nackenbergerstr. 92 ' postal_code = '30625 ' city = 'Hannover ' country_code = 'DE ' phone_number = '+49 511 403266-0 ' web_address = 'http://www.una.sap ' email_address = '[email protected] ' ) ( agency_id = '070030' name = 'Trans World Travel' street = '100 Industrial Drive ' postal_code = '60804 ' city = 'Chicago ' country_code = 'US ' phone_number = '+1 708-454-8723 ' web_address = 'http://www.twt.sap ' email_address = '[email protected] ' ) ( agency_id = '070031' name = 'Bright Side of Life' street = '340 State Street ' postal_code = '30432 ' city = 'San Francisco ' country_code = 'US ' phone_number = '+1 415-454-9877 ' web_address = 'http://www.ruebennase.sap ' email_address = '[email protected] ' ) ( agency_id = '070032' name = 'Sunny, Sunny, Sunny' street = '1300 State Street ' postal_code = '19003 ' city = 'Philadelphia ' country_code = 'US ' phone_number = '+1 215-090-7659 ' web_address = 'http://www.s3.sap ' email_address = '[email protected] ' ) ( agency_id = '070033' name = 'Fly & Smile' street = 'Zeppelinstr. 17 ' postal_code = '60318 ' city = 'Frankfurt ' country_code = 'DE ' phone_number = '+49 69-99-0 ' web_address = 'http://www.fly-and-smile.sap ' email_address = '[email protected] ' ) ( agency_id = '070034' name = 'Supercheap' street = '1400, Washington Circle ' postal_code = '30439 ' city = 'Los Angeles ' country_code = 'US ' phone_number = '+1 251-369-2510 ' web_address = 'http://www.supercheap.sap ' email_address = '[email protected] ' ) ( agency_id = '070035' name = 'Hitchhiker' street = '21 Rue de Moselle ' postal_code = '92132 ' city = 'Issy-les-Moulineaux ' country_code = 'FR ' phone_number = '+33 1-405-555-888 ' web_address = 'http://www.42.sap ' email_address = '[email protected] ' ) ( agency_id = '070036' name = 'Fly Now, Pay Later' street = '100 Madison ' postal_code = '11012 ' city = 'New York ' country_code = 'US ' phone_number = '+1 512 343-8543 ' web_address = 'http://www.fn-pl.sap ' email_address = '[email protected] ' ) ( agency_id = '070037' name = 'Real Weird Vacation' street = '949 5th Street ' postal_code = 'V6T 1Z4' city = 'Vancouver' country_code = 'CA ' phone_number = '+1 604 827-8024' web_address = 'http://www.reweva.sap ' email_address = '[email protected] ' ) ( agency_id = '070038' name = 'Cap Travels Ltd.' street = '10 Mandela St' postal_code = '2128' city = 'Johannesburg' country_code = 'ZA' phone_number = '+27 11 886-8981' web_address = 'http://www.cap-travels.co.za' email_address = '[email protected]' ) ( agency_id = '070039' name = 'Rainy, Stormy, Cloudy' street = 'Lindenstr. 462 ' postal_code = '70563 ' city = 'Stuttgart ' country_code = 'DE ' phone_number = '+49 711-7992-00 ' web_address = 'http://www.windy.sap/rsc/ ' email_address = '[email protected]/rsc/ ' ) ( agency_id = '070040' name = 'Women only' street = 'Kirchstr. 53 ' postal_code = '55124 ' city = 'Mainz ' country_code = 'DE ' phone_number = '+49 6131-543-00 ' web_address = 'http://www.women-only.sap ' email_address = '[email protected] ' ) ( agency_id = '070041' name = 'Maxitrip' street = 'Flugfeld 17' postal_code = '65128' city = 'Wiesbaden' country_code = 'DE' phone_number = '+49 611-55 66 77' web_address = 'http://www.maxitrip.sap' email_address = '[email protected]' ) ( agency_id = '070042' name = 'The Ultimate Answer' street = 'Manchester Rd 20 ' postal_code = 'AB1 1SA ' city = 'Avon ' country_code = 'GB ' phone_number = '+44 934-66799 ' web_address = 'http://www.thulan.sap ' email_address = '[email protected] ' ) ( agency_id = '070043' name = 'Intertravel' street = 'Michigan Ave ' postal_code = '60154 ' city = 'Chicago ' country_code = 'US ' phone_number = '+1 788 798-6555 ' web_address = 'http://www.intertravel.sap ' email_address = '[email protected] ' ) ( agency_id = '070044' name = 'Ultimate Goal' street = '300 Peach tree street Sou' postal_code = '01069 ' city = 'Atlanta ' country_code = 'US ' phone_number = '+1 874-654-6686' web_address = 'http://www.ultimate-goal.sap ' email_address = '[email protected] ' ) ( agency_id = '070045' name = 'Submit and Return' street = '20890 East Central Ave ' postal_code = '30987 ' city = 'Palo Alto ' country_code = 'US ' phone_number = '+1 652 645-5236 ' web_address = 'http://www.sar.sap ' email_address = '[email protected] ' ) ( agency_id = '070046' name = 'Hendrik''s' street = '1200 Industrial Drive ' postal_code = '60153 ' city = 'Chicago ' country_code = 'US ' phone_number = '+1 08-924-9884 ' web_address = 'http://www.essen.sap/150596 ' email_address = '[email protected]/150596 ' ) ( agency_id = '070047' name = 'All British Air Planes' street = '224 Tomato Lane ' postal_code = '08965 ' city = 'Vineland ' country_code = 'US ' phone_number = '+44 609-896-Moore ' web_address = 'http://www.abap.sap ' email_address = '[email protected] ' ) ( agency_id = '070048' name = 'Rocky Horror Tours' street = '789 Santa Monica Blvd. ' postal_code = '08934 ' city = 'Santa Monica ' country_code = 'US ' phone_number = '+1 64351-6455-654 ' web_address = 'http://www.frank.furter.sap ' email_address = '[email protected] ' ) ( agency_id = '070049' name = 'Miles and More' street = '777 Arlington Blvd. ' postal_code = '46515 ' city = 'Elkhart ' country_code = 'US ' phone_number = '+1 646 867-6888 ' web_address = 'http://www.mam.sap' email_address = '[email protected]' ) ( agency_id = '070050' name = 'Not Only By Bike' street = 'Saalburgstr. 765 ' postal_code = '60385 ' city = 'Frankfurt ' country_code = 'DE ' phone_number = '+49 69 465789-0' web_address = 'http://www.nobb.sap' email_address = '[email protected]' ) ). ENDMETHOD. ENDCLASS. CLASS lcl_airport_data_generator DEFINITION CREATE PRIVATE. PUBLIC SECTION. INTERFACES: lif_data_generator. TYPES: tt_airport TYPE STANDARD TABLE OF /dmo/airport16 WITH KEY airport_id. CLASS-METHODS: get_data RETURNING VALUE(rt_data) TYPE lcl_airport_data_generator=>tt_airport. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS lcl_airport_data_generator IMPLEMENTATION. METHOD lif_data_generator~create. IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF. DELETE FROM /dmo/airport16. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF. DATA(lt_data) = get_data( ). IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF. INSERT /dmo/airport16 FROM TABLE @lt_data. IF out IS BOUND. out->write( '--> Done.' ). ENDIF. ENDMETHOD. METHOD get_data. rt_data = VALUE tt_airport( " Europe ( airport_id = 'FRA' name = 'Frankfurt Airport' city = 'Frankfurt/Main' country = 'DE' ) ( airport_id = 'HAM' name = 'Hamburg Airport' city = 'Hamburg' country = 'DE' ) ( airport_id = 'MUC' name = 'Munich Airport' city = 'Munich' country = 'DE' ) ( airport_id = 'SXF' name = 'Berlin Schönefeld Airport' city = 'Berlin' country = 'DE' ) ( airport_id = 'THF' name = 'Berlin Tempelhof Airport' city = 'Berlin' country = 'DE' ) ( airport_id = 'TXL' name = 'Berlin Tegel Airport' city = 'Berlin' country = 'DE' ) ( airport_id = 'CDG' name = 'Charles de Gaulle Airport' city = 'Paris' country = 'FR' ) ( airport_id = 'ORY' name = 'Orly Airport' city = 'Paris' country = 'FR' ) ( airport_id = 'VIE' name = 'Vienna International Airport' city = 'Vienna' country = 'AT' ) ( airport_id = 'ZRH' name = 'Zürich Airport' city = 'Zurich' country = 'CH' ) ( airport_id = 'RTM' name = 'Rotterdam The Hague Airport' city = 'Rotterdam' country = 'NL' ) ( airport_id = 'FCO' name = 'Leonardo da Vinci–Fiumicino Airport' city = 'Rome' country = 'IT' ) ( airport_id = 'VCE' name = 'Venice Marco Polo Airport' city = 'Venice' country = 'IT' ) ( airport_id = 'LCY' name = 'London City Airport' city = 'London' country = 'UK' ) ( airport_id = 'LGW' name = 'Gatwick Airport' city = 'London' country = 'UK' ) ( airport_id = 'LHR' name = 'Heathrow Airport' city = 'London' country = 'UK' ) ( airport_id = 'MAD' name = 'Adolfo Suárez Madrid–Barajas Airport' city = 'Madrid' country = 'ES' ) ( airport_id = 'VKO' name = 'Vnukovo International Airport' city = 'Moscow' country = 'RU' ) ( airport_id = 'SVO' name = 'Sheremetyevo International Airport' city = 'Moscow' country = 'RU' ) " America ( airport_id = 'JFK' name = 'John F. Kennedy International Airport' city = 'New York City, New York' country = 'US' ) ( airport_id = 'BNA' name = 'Nashville International Airport' city = 'Nashville, Tennessee' country = 'US' ) ( airport_id = 'BOS' name = 'Logan International Airport' city = 'Boston, Massachusetts' country = 'US' ) ( airport_id = 'ELP' name = 'El Paso International Airport' city = 'El Paso, Texas' country = 'US' ) ( airport_id = 'DEN' name = 'Denver International Airport' city = 'Denver, Colorado' country = 'US' ) ( airport_id = 'HOU' name = 'William P. Hobby Airport' city = 'Houston, Texas' country = 'US' ) ( airport_id = 'LAS' name = 'McCarran International Airport' city = 'Las Vegas, Nevada' country = 'US' ) ( airport_id = 'LAX' name = 'Los Angeles International Airport' city = 'Los Angeles, California' country = 'US' ) ( airport_id = 'MCI' name = 'Kansas City International Airport' city = 'Kansas City, Missouri' country = 'US' ) ( airport_id = 'MIA' name = 'Miami International Airport' city = 'Miami, Florida' country = 'US' ) ( airport_id = 'SFO' name = 'San Francisco International Airport' city = 'San Francisco, California' country = 'US' ) ( airport_id = 'EWR' name = 'Newark Liberty International Airport' city = 'Newark, New Jersey' country = 'US' ) ( airport_id = 'YOW' name = 'Ottawa Macdonald–Cartier Int. Airport' city = 'Ottawa, Ontario' country = 'CA' ) ( airport_id = 'ACA' name = 'General Juan N. Álvarez Int. Airport' city = 'Acapulco, Guerrero' country = 'MX' ) ( airport_id = 'GIG' name = 'Rio de Janeiro–Galeão Int. Airport' city = 'Rio de Janeiro' country = 'BR' ) ( airport_id = 'HAV' name = 'José Martí International Airport' city = 'Havana' country = 'CU' ) " Australia ( airport_id = 'ASP' name = 'Alice Springs Airport' city = 'Alice Springs, Northern Territory' country = 'AU' ) " Africa ( airport_id = 'ACE' name = 'Lanzarote Airport' city = 'Lanzarote, Canary Islands' country = 'ES' ) ( airport_id = 'HRE' name = 'Harare International Airport' city = 'Harare' country = 'ZW' ) ( airport_id = 'GCJ' name = 'Grand Central Airport' city = 'Johannesburg' country = 'SA' ) " Asia ( airport_id = 'NRT' name = 'Narita International Airport' city = 'Tokyo, Honshu' country = 'JP' ) ( airport_id = 'ITM' name = 'Osaka International Airport' city = 'Osaka, Honshu' country = 'JP' ) ( airport_id = 'KIX' name = 'Kansai International Airport' city = 'Osaka, Honshu' country = 'JP' ) ( airport_id = 'HIJ' name = 'Hiroshima Airport' city = 'Hiroshima, Honshu' country = 'JP' ) ( airport_id = 'SIN' name = 'Singapore Changi Airport' city = 'Singapore' country = 'SG' ) ( airport_id = 'KUL' name = 'Kuala Lumpur International Airport' city = 'Kuala Lumpur' country = 'MY' ) ( airport_id = 'HKG' name = 'Hong Kong International Airport' city = 'Hongkong' country = 'CN' ) ( airport_id = 'BKK' name = 'Suvarnabhumi Airport' city = 'Bangkok' country = 'TH' ) ). ENDMETHOD. ENDCLASS. CLASS lcl_carrier_data_generator DEFINITION CREATE PRIVATE. PUBLIC SECTION. INTERFACES: lif_data_generator. TYPES: tt_carrier TYPE STANDARD TABLE OF /dmo/carrier16 WITH KEY carrier_id. CLASS-METHODS: get_data RETURNING VALUE(rt_data) TYPE tt_carrier. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS lcl_carrier_data_generator IMPLEMENTATION. METHOD lif_data_generator~create. IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF. DELETE FROM /dmo/carrier16. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF. DATA(lt_data) = get_data( ). IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF. INSERT /dmo/carrier16 FROM TABLE @lt_data. IF out IS BOUND. out->write( '--> Done.' ). ENDIF. ENDMETHOD. METHOD get_data. rt_data = VALUE tt_carrier( ( carrier_id = 'AA' name = 'American Airlines Inc.' currency_code = 'USD' ) ( carrier_id = 'AC' name = 'Air Canada' currency_code = 'CAD' ) ( carrier_id = 'AF' name = 'Air France' currency_code = 'EUR' ) ( carrier_id = 'AZ' name = 'Alitalia Societa Aerea Italiana S.p.A.' currency_code = 'EUR' ) ( carrier_id = 'BA' name = 'British Airways p.l.c.' currency_code = 'GBP' ) ( carrier_id = 'FJ' name = 'Air Pacific Limited t/a Fiji Airway' currency_code = 'USD' ) ( carrier_id = 'CO' name = 'Cobaltair Ltd. dba Cobalt' currency_code = 'USD' ) ( carrier_id = 'DL' name = 'Delta Air Lines, Inc.' currency_code = 'USD' ) ( carrier_id = 'LH' name = 'Deutsche Lufthansa AG' currency_code = 'EUR' ) ( carrier_id = 'NG' name = 'AL-Naser Wings' currency_code = 'EUR' ) ( carrier_id = 'JL' name = 'Japan Airlines Co., Ltd.' currency_code = 'JPY' ) ( carrier_id = 'QF' name = 'Qantas Airways Ltd.' currency_code = 'AUD' ) ( carrier_id = 'SA' name = 'South African Airways' currency_code = 'ZAR' ) ( carrier_id = 'SQ' name = 'Singapore Airlines Limited' currency_code = 'SGD' ) ( carrier_id = 'SR' name = 'Sundair GmbH' currency_code = 'CHF' ) ( carrier_id = 'UA' name = 'United Airlines, Inc.' currency_code = 'USD' ) ). ENDMETHOD. ENDCLASS. CLASS lcl_connection_data_generator DEFINITION CREATE PRIVATE. PUBLIC SECTION. INTERFACES: lif_data_generator. TYPES: tt_connection TYPE STANDARD TABLE OF /dmo/connecti_16 WITH KEY carrier_id connection_id. TYPES: "! Structure for additional information for generation. <br/> "! <em>weekday</em> '1' means Monday, '7' is Sunday BEGIN OF ty_connection_additional_info. INCLUDE TYPE /dmo/connecti_16. TYPES: weekday TYPE i, END OF ty_connection_additional_info. TYPES: tt_connection_additional_info TYPE STANDARD TABLE OF ty_connection_additional_info WITH KEY connection_id. CLASS-METHODS: get_data "provide data public RETURNING VALUE(rt_data) TYPE tt_connection_additional_info. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS lcl_connection_data_generator IMPLEMENTATION. METHOD lif_data_generator~create. IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF. DELETE FROM /dmo/connecti_16. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF. DATA(lt_data) = get_data( ). DATA(lt_data_db) = CORRESPONDING tt_connection( lt_data ). IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF. INSERT /dmo/connecti_16 FROM TABLE @lt_data. IF out IS BOUND. out->write( '--> Done.' ). ENDIF. ENDMETHOD. METHOD get_data. rt_data = VALUE tt_connection_additional_info( ( carrier_id = 'SQ' connection_id = '0001' airport_from_id = 'SFO' airport_to_id = 'SIN' departure_time = '011500' arrival_time = '115000' distance = 13523 distance_unit = 'KM' weekday = 3 ) "1-7 ( carrier_id = 'SQ' connection_id = '0002' airport_from_id = 'SIN' airport_to_id = 'SFO' departure_time = '063000' arrival_time = '091500' distance = 13523 distance_unit = 'KM' weekday = 4 ) "1-7 ( carrier_id = 'SQ' connection_id = '0011' airport_from_id = 'NRT' airport_to_id = 'SIN' departure_time = '145500' arrival_time = '205000' distance = 5363 distance_unit = 'KM' weekday = 4 ) "1-7 ( carrier_id = 'SQ' connection_id = '0012' airport_from_id = 'SIN' airport_to_id = 'NRT' departure_time = '095300' arrival_time = '175400' distance = 5363 distance_unit = 'KM' weekday = 6 ) "1-7 ( carrier_id = 'UA' connection_id = '0058' airport_from_id = 'SFO' airport_to_id = 'FRA' departure_time = '134500' arrival_time = '095500' distance = 9608 distance_unit = 'KM' weekday = 1 ) "1-7 ( carrier_id = 'UA' connection_id = '0059' airport_from_id = 'FRA' airport_to_id = 'SFO' departure_time = '135500' arrival_time = '163000' distance = 9608 distance_unit = 'KM' weekday = 2 ) "1-7 ( carrier_id = 'UA' connection_id = '1537' airport_from_id = 'EWR' airport_to_id = 'MIA' departure_time = '215600' arrival_time = '004700' distance = 1752 distance_unit = 'KM' weekday = 5 ) "1-7 ( carrier_id = 'AA' connection_id = '0322' airport_from_id = 'MIA' airport_to_id = 'EWR' departure_time = '201700' arrival_time = '231900' distance = 1752 distance_unit = 'KM' weekday = 7 ) "1-7 ( carrier_id = 'AA' connection_id = '0017' airport_from_id = 'MIA' airport_to_id = 'HAV' departure_time = '071900' arrival_time = '080300' distance = 520 distance_unit = 'KM' weekday = 3 ) "1-7 ( carrier_id = 'AA' connection_id = '2678' airport_from_id = 'HAV' airport_to_id = 'MIA' departure_time = '061500' arrival_time = '103000' distance = 520 distance_unit = 'KM' weekday = 6 ) "1-7 ( carrier_id = 'AA' connection_id = '0015' airport_from_id = 'JFK' airport_to_id = 'SFO' departure_time = '071300' arrival_time = '100400' distance = 4156 distance_unit = 'KM' weekday = 5 ) "1-7 ( carrier_id = 'AA' connection_id = '0018' airport_from_id = 'SFO' airport_to_id = 'JFK' departure_time = '064000' arrival_time = '150600' distance = 4156 distance_unit = 'KM' weekday = 4 ) "1-7 ( carrier_id = 'LH' connection_id = '0400' airport_from_id = 'FRA' airport_to_id = 'JFK' departure_time = '101000' arrival_time = '113400' distance = 6162 distance_unit = 'KM' weekday = 6 ) "1-7 ( carrier_id = 'LH' connection_id = '0401' airport_from_id = 'JFK' airport_to_id = 'FRA' departure_time = '183000' arrival_time = '074500' distance = 6162 distance_unit = 'KM' weekday = 5 ) "1-7 ( carrier_id = 'LH' connection_id = '0402' airport_from_id = 'FRA' airport_to_id = 'EWR' departure_time = '133000' arrival_time = '153500' distance = 6217 distance_unit = 'KM' weekday = 1 ) "1-7 ( carrier_id = 'LH' connection_id = '0403' airport_from_id = 'EWR' airport_to_id = 'FRA' departure_time = '180900' arrival_time = '073000' distance = 6217 distance_unit = 'KM' weekday = 1 ) "1-7 ( carrier_id = 'JL' connection_id = '0407' airport_from_id = 'NRT' airport_to_id = 'FRA' departure_time = '132300' arrival_time = '155600' distance = 9379 distance_unit = 'KM' weekday = 5 ) "1-7 ( carrier_id = 'JL' connection_id = '0408' airport_from_id = 'FRA' airport_to_id = 'NRT' departure_time = '202500' arrival_time = '154000' distance = 9379 distance_unit = 'KM' weekday = 6 ) "1-7 ( carrier_id = 'AZ' connection_id = '0788' airport_from_id = 'VCE' airport_to_id = 'NRT' departure_time = '132500' arrival_time = '101300' distance = 9595 distance_unit = 'KM' weekday = 6 ) ( carrier_id = 'AZ' connection_id = '0789' airport_from_id = 'NRT' airport_to_id = 'VCE' departure_time = '142600' arrival_time = '213100' distance = 9595 distance_unit = 'KM' weekday = 5 ) ). ENDMETHOD. ENDCLASS. CLASS lcl_flight_data_generator DEFINITION DEFERRED. CLASS /dmo/cl_flight_data_generat_16 DEFINITION LOCAL FRIENDS lcl_flight_data_generator. CLASS lcl_flight_data_generator DEFINITION CREATE PRIVATE. PUBLIC SECTION. INTERFACES: lif_data_generator. TYPES: tt_flights TYPE STANDARD TABLE OF /dmo/flight16 WITH KEY carrier_id connection_id flight_date WITH NON-UNIQUE SORTED KEY key_sorted_seats COMPONENTS seats_occupied WITH NON-UNIQUE SORTED KEY key_sorted_date COMPONENTS connection_id flight_date. CLASS-METHODS: get_data RETURNING VALUE(rt_data) TYPE tt_flights. PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_plane_type, id TYPE /dmo/plane_type_id16, seats_max TYPE /dmo/plane_seats_max16, long_distance TYPE abap_bool, index TYPE int1, END OF ty_plane_type, BEGIN OF ty_flight_info, id TYPE /dmo/plane_type_id16, long_distance TYPE abap_bool, seats_max TYPE /dmo/plane_seats_max16, seats_occupied TYPE /dmo/plane_seats_occupied16, price TYPE /dmo/flight_price16, END OF ty_flight_info, BEGIN OF ty_connection_recurrency, id TYPE /dmo/connection_id16, recurrency TYPE STANDARD TABLE OF /dmo/flight_date16 WITH EMPTY KEY, END OF ty_connection_recurrency. TYPES: tt_plane_type TYPE STANDARD TABLE OF ty_plane_type WITH KEY id, tt_connection_recurrency TYPE STANDARD TABLE OF ty_connection_recurrency WITH KEY id. CONSTANTS: cv_random_offset TYPE i VALUE 25, cv_random_percent TYPE i VALUE 70. CLASS-DATA: gt_connections TYPE lcl_connection_data_generator=>tt_connection, gt_carrier TYPE lcl_carrier_data_generator=>tt_carrier, gt_plane_types TYPE tt_plane_type, go_random_int_distance_long TYPE REF TO cl_abap_random_int, go_random_int_distance_short TYPE REF TO cl_abap_random_int, gv_plane_distance_long TYPE i, gv_plane_distance_short TYPE i, gt_connection_recurrency TYPE lcl_flight_data_generator=>tt_connection_recurrency, gt_flights TYPE lcl_flight_data_generator=>tt_flights, go_random_seats TYPE REF TO cl_abap_random_int. CLASS-METHODS: build_dependent_content, get_flight_info IMPORTING iv_connection_id TYPE /dmo/connection_id16 RETURNING VALUE(rs_plane_info) TYPE ty_flight_info, build_plane_types RETURNING VALUE(rt_data) TYPE lcl_flight_data_generator=>tt_plane_type, build_connection_recurrency RETURNING VALUE(rt_data) TYPE lcl_flight_data_generator=>tt_connection_recurrency, calc_next_monday IMPORTING iv_date TYPE d RETURNING VALUE(rv_date) TYPE d. ENDCLASS. CLASS lcl_flight_data_generator IMPLEMENTATION. METHOD lif_data_generator~create. IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF. DELETE FROM /dmo/flight16. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Build Dependent Content.' ). ENDIF. build_dependent_content( ). IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF. get_data( ). IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF. INSERT /dmo/flight16 FROM TABLE @gt_flights. IF out IS BOUND. out->write( '--> Done.' ). ENDIF. ENDMETHOD. METHOD get_data. DATA: lt_flights TYPE tt_flights, ls_flight TYPE lcl_flight_data_generator=>ty_flight_info. IF gt_flights IS NOT INITIAL. rt_data = gt_flights. EXIT. ENDIF. LOOP AT gt_connections INTO DATA(ls_connection). LOOP AT gt_connection_recurrency[ id = ls_connection-connection_id ]-recurrency INTO DATA(lv_flight_date). ls_flight = get_flight_info( ls_connection-connection_id ). APPEND VALUE /dmo/flight16( carrier_id = ls_connection-carrier_id connection_id = ls_connection-connection_id flight_date = lv_flight_date price = ls_flight-price currency_code = VALUE /dmo/flight16-currency_code( gt_carrier[ carrier_id = ls_connection-carrier_id ]-currency_code DEFAULT 'EUR' ) plane_type_id = ls_flight-id seats_max = ls_flight-seats_max seats_occupied = ls_flight-seats_occupied ) TO gt_flights. ENDLOOP. rt_data = gt_flights. ENDLOOP. ENDMETHOD. METHOD build_dependent_content. gt_connections = CORRESPONDING #( lcl_connection_data_generator=>get_data( ) ). gt_carrier = lcl_carrier_data_generator=>get_data( ). gt_plane_types = build_plane_types( ). go_random_seats = cl_abap_random_int=>create( min = cv_random_percent - cv_random_offset max = cv_random_percent + cv_random_offset ). gt_connection_recurrency = build_connection_recurrency( ). ENDMETHOD. METHOD get_flight_info. DATA: lv_count TYPE i, lo_random TYPE REF TO cl_abap_random_int. DATA(lt_connections) = lcl_connection_data_generator=>get_data( ). DATA(lv_is_long_distance) = COND abap_bool( WHEN lt_connections[ connection_id = iv_connection_id ]-distance > 3000 THEN abap_true ELSE abap_false ). IF lv_is_long_distance = abap_true. IF gv_plane_distance_long IS INITIAL. SELECT COUNT(*) FROM @gt_plane_types AS planes WHERE long_distance = @lv_is_long_distance INTO @gv_plane_distance_long. ENDIF. lv_count = gv_plane_distance_long. IF go_random_int_distance_long IS NOT BOUND. go_random_int_distance_long = cl_abap_random_int=>create( seed = 1337 min = 1 max = gv_plane_distance_long ). ENDIF. lo_random = go_random_int_distance_long. ELSE. IF gv_plane_distance_short IS INITIAL. SELECT COUNT(*) FROM @gt_plane_types AS planes WHERE long_distance = @lv_is_long_distance INTO @gv_plane_distance_short. ENDIF. lv_count = gv_plane_distance_short. IF go_random_int_distance_short IS NOT BOUND. go_random_int_distance_short = cl_abap_random_int=>create( seed = 1337 min = 1 max = gv_plane_distance_short ). ENDIF. lo_random = go_random_int_distance_short. ENDIF. DATA(ls_plane_type) = gt_plane_types[ long_distance = lv_is_long_distance index = lo_random->get_next( ) ]. DATA(lv_seats_occupied_percent) = go_random_seats->get_next( ). rs_plane_info = VALUE ty_flight_info( id = ls_plane_type-id long_distance = ls_plane_type-long_distance seats_max = ls_plane_type-seats_max seats_occupied = ls_plane_type-seats_max * lv_seats_occupied_percent DIV 100 price = /dmo/cl_flight_data_generat_16=>calculate_flight_price( iv_seats_occupied_percent = lv_seats_occupied_percent iv_flight_distance = lt_connections[ connection_id = iv_connection_id ]-distance ) ). ENDMETHOD. METHOD build_plane_types. rt_data = VALUE tt_plane_type( ( id = 'A320-200' seats_max = 130 long_distance = ' ' index = 1 ) ( id = 'A321-200' seats_max = 150 long_distance = ' ' index = 2 ) ( id = '737-800' seats_max = 140 long_distance = ' ' index = 3 ) ( id = 'A319-100' seats_max = 120 long_distance = ' ' index = 4 ) ( id = '747-400' seats_max = 385 long_distance = 'X' index = 1 ) ( id = '767-200' seats_max = 260 long_distance = 'X' index = 2 ) ( id = 'A340-600' seats_max = 330 long_distance = 'X' index = 3 ) ( id = 'A380-800' seats_max = 475 long_distance = 'X' index = 4 ) ). ENDMETHOD. METHOD build_connection_recurrency. CONSTANTS: cv_days_between_test TYPE i VALUE 300, cv_days_between_8weeks TYPE i VALUE 56, cv_days_between_4weeks TYPE i VALUE 28, cv_days_between_2weeks TYPE i VALUE 14, cv_days_between_1weeks TYPE i VALUE 7. DATA: flight_date_max TYPE d, flight_date_min TYPE d. DATA(lv_days_between) = cv_days_between_test. GET TIME STAMP FIELD DATA(current_timestamp). DATA(tmp) = CONV string( current_timestamp ). DATA lv_datum TYPE d. lv_datum = tmp(8). " flight_date_max is a Monday 8 months in the future flight_date_max = calc_next_monday( CONV /dmo/flight_date16( lv_datum + 217 ) ). " flight_date_min is a Monday 5 months in the past flight_date_min = calc_next_monday( CONV /dmo/flight_date16( lv_datum - 148 ) ). LOOP AT lcl_connection_data_generator=>get_data( ) INTO DATA(ls_connection). APPEND VALUE ty_connection_recurrency( id = ls_connection-connection_id recurrency = VALUE ty_connection_recurrency-recurrency( FOR flightdate = flight_date_max + ls_connection-weekday - 1 THEN flightdate - lv_days_between UNTIL flightdate < flight_date_min + ls_connection-weekday - 1 ( CONV /dmo/flight_date16( flightdate ) ) ) ) TO rt_data. ENDLOOP. ENDMETHOD. METHOD calc_next_monday. * 01.01.1900 was a Saturday. DATA(lv_weekday) = iv_date MOD 7. * Therefore 0 is a Saturday, 1 for Sunday, etc.. and will be mapped to 1 for Monday, 2 for Tuesday, etc.. IF lv_weekday > 1. lv_weekday = lv_weekday - 1. ELSE. lv_weekday = lv_weekday + 6. ENDIF. rv_date = iv_date - lv_weekday + 8. ENDMETHOD. ENDCLASS. CLASS lcl_customer_data_generator DEFINITION CREATE PRIVATE. PUBLIC SECTION. INTERFACES: lif_data_generator. TYPES: BEGIN OF ty_last_name, last_name TYPE /dmo/last_name16, END OF ty_last_name. TYPES: tt_customer TYPE STANDARD TABLE OF /dmo/customer16 WITH KEY customer_id, tt_last_name TYPE STANDARD TABLE OF ty_last_name WITH KEY last_name. CLASS-METHODS: get_data RETURNING VALUE(rt_data) TYPE tt_customer, build_last_names RETURNING VALUE(rt_data) TYPE tt_last_name. PROTECTED SECTION. PRIVATE SECTION. TYPES: " Names BEGIN OF ty_first_name, first_name TYPE /dmo/first_name16, gender TYPE c LENGTH 1, END OF ty_first_name, BEGIN OF ty_name, first_name TYPE /dmo/first_name16, last_name TYPE /dmo/last_name16, title TYPE /dmo/title16, END OF ty_name, " Addresses BEGIN OF ty_city, country TYPE land1, postal_code TYPE /dmo/postal_code16, city TYPE /dmo/city16, END OF ty_city, tt_street_per_country TYPE STANDARD TABLE OF /dmo/street16 WITH EMPTY KEY, BEGIN OF ty_street, country TYPE land1, streets TYPE tt_street_per_country, END OF ty_street, BEGIN OF ty_address, country TYPE land1, postal_code TYPE /dmo/postal_code16, city TYPE /dmo/city16, street TYPE /dmo/street16, phone_number TYPE /dmo/phone_number16, email_address TYPE /dmo/email_address16, END OF ty_address. TYPES: " Names tt_first_name TYPE STANDARD TABLE OF ty_first_name WITH KEY first_name, tt_name TYPE STANDARD TABLE OF ty_name WITH KEY first_name last_name, " Addresses tt_city TYPE STANDARD TABLE OF ty_city WITH KEY country city, tt_street TYPE STANDARD TABLE OF ty_street WITH KEY country, tt_address TYPE STANDARD TABLE OF ty_address WITH KEY country city street. CONSTANTS cv_email_host TYPE string VALUE `flight.example` ##NO_TEXT. CONSTANTS cv_phone_number_seperator TYPE string VALUE `-` ##NO_TEXT. CONSTANTS cv_phone_number_min TYPE int8 VALUE 1234567890. CONSTANTS cv_phone_number_max TYPE int8 VALUE 9999999999. CLASS-DATA gt_data TYPE lcl_customer_data_generator=>tt_customer. CLASS-METHODS: " Names generate_names RETURNING VALUE(rt_data) TYPE tt_name, build_first_names RETURNING VALUE(rt_data) TYPE tt_first_name, " Adresses generate_addresses RETURNING VALUE(rt_data) TYPE tt_address, build_city RETURNING VALUE(rt_data) TYPE tt_city, build_street RETURNING VALUE(rt_data) TYPE tt_street. ENDCLASS. CLASS lcl_customer_data_generator IMPLEMENTATION. METHOD lif_data_generator~create. IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF. DELETE FROM /dmo/customer16. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF. DATA(lt_data) = get_data( ). IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF. INSERT /dmo/customer16 FROM TABLE @lt_data. IF out IS BOUND. out->write( '--> Done.' ). ENDIF. ENDMETHOD. METHOD build_first_names. rt_data = VALUE tt_first_name( ( first_name = 'Simon' gender = 'M') ( first_name = 'Harish' gender = 'M') ( first_name = 'Volker' gender = 'M') ( first_name = 'Jasmin' gender = 'F') ( first_name = 'Felix' gender = 'M') ( first_name = 'Kristina' gender = 'F') ( first_name = 'Thilo' gender = 'M') ( first_name = 'Andrej' gender = 'M') ( first_name = 'Anna' gender = 'F') ( first_name = 'Johannes' gender = 'M') ( first_name = 'Johann' gender = 'M') ( first_name = 'Christoph' gender = 'M') ( first_name = 'Andreas' gender = 'M') ( first_name = 'Stephen' gender = 'M') ( first_name = 'Mathilde' gender = 'F') ( first_name = 'August' gender = 'M') ( first_name = 'Illya' gender = 'M') ( first_name = 'Georg' gender = 'M') ( first_name = 'Gisela' gender = 'F') ( first_name = 'Christa' gender = 'F') ( first_name = 'Holm' gender = 'M') ( first_name = 'Irmtraut' gender = 'F') ( first_name = 'Ludwig' gender = 'M') ( first_name = 'Laura' gender = 'F') ( first_name = 'Kurt' gender = 'M') ( first_name = 'Guenther' gender = 'M') ( first_name = 'Horst' gender = 'M') ( first_name = 'Matthias' gender = 'M') ( first_name = 'Amelie' gender = 'F') ( first_name = 'Walter' gender = 'M') ( first_name = 'Sophie' gender = 'F') ( first_name = 'Claire' gender = 'F') ( first_name = 'Chantal' gender = 'F') ( first_name = 'Jean' gender = 'M') ( first_name = 'Cindy' gender = 'F') ( first_name = 'Pierre' gender = 'M') ( first_name = 'Irene' gender = 'F') ( first_name = 'Adam' gender = 'M') ( first_name = 'Fabio' gender = 'M') ( first_name = 'Lothar' gender = 'M') ( first_name = 'Annemarie' gender = 'F') ( first_name = 'Ida' gender = 'F') ( first_name = 'Roland' gender = 'M') ( first_name = 'Achim' gender = 'M') ( first_name = 'Allen' gender = 'M') ( first_name = 'Lee' gender = 'M') ( first_name = 'Guillermo' gender = 'M') ( first_name = 'Florian' gender = 'M') ( first_name = 'Ulla' gender = 'F') ( first_name = 'Juan' gender = 'M') ( first_name = 'Marta' gender = 'F') ( first_name = 'Salvador' gender = 'M') ( first_name = 'Christine' gender = 'F') ( first_name = 'Dominik' gender = 'M') ( first_name = 'Astrid' gender = 'F') ( first_name = 'Ruth' gender = 'F') ( first_name = 'Theresia' gender = 'F') ( first_name = 'Thomas' gender = 'M') ( first_name = 'Friedrich' gender = 'M') ( first_name = 'Anneliese' gender = 'F') ( first_name = 'Peter' gender = 'M') ( first_name = 'Anne-Marie' gender = 'F') ( first_name = 'James' gender = 'M') ( first_name = 'Jean-Luc' gender = 'M') ( first_name = 'Benjamin' gender = 'M') ( first_name = 'Hendrik' gender = 'M') ( first_name = 'Uli' gender = 'F') ( first_name = 'Siegfried' gender = 'M') ( first_name = 'Max' gender = 'M') ). ENDMETHOD. METHOD build_last_names. rt_data = VALUE tt_last_name( ( last_name = 'Buchholm') ( last_name = 'Vrsic') ( last_name = 'Jeremias') ( last_name = 'Gutenberg') ( last_name = 'Fischmann') ( last_name = 'Columbo') ( last_name = 'Neubasler') ( last_name = 'Martin') ( last_name = 'Detemple') ( last_name = 'Barth') ( last_name = 'Benz') ( last_name = 'Hansmann') ( last_name = 'Koslowski') ( last_name = 'Wohl') ( last_name = 'Koller') ( last_name = 'Hoffen') ( last_name = 'Dumbach') ( last_name = 'Goelke') ( last_name = 'Waldmann') ( last_name = 'Mechler') ( last_name = 'Buehler') ( last_name = 'Heller') ( last_name = 'Simonen') ( last_name = 'Henry') ( last_name = 'Marshall') ( last_name = 'Legrand') ( last_name = 'Jacqmain') ( last_name = 'D´Oultrement') ( last_name = 'Hunter') ( last_name = 'Delon') ( last_name = 'Kreiss') ( last_name = 'Trensch') ( last_name = 'Cesari') ( last_name = 'Matthaeus') ( last_name = 'Babilon') ( last_name = 'Zimmermann') ( last_name = 'Kramer') ( last_name = 'Illner') ( last_name = 'Pratt') ( last_name = 'Gahl') ( last_name = 'Benjamin') ( last_name = 'Miguel') ( last_name = 'Weiss') ( last_name = 'Sessler') ( last_name = 'Montero') ( last_name = 'Domenech') ( last_name = 'Moyano') ( last_name = 'Sommer') ( last_name = 'Schneider') ( last_name = 'Eichbaum') ( last_name = 'Gueldenpfennig') ( last_name = 'Sudhoff') ( last_name = 'Lautenbach') ( last_name = 'Ryan') ( last_name = 'Prinz') ( last_name = 'Deichgraeber') ( last_name = 'Pan') ( last_name = 'Lindwurm') ( last_name = 'Kirk') ( last_name = 'Picard') ( last_name = 'Sisko') ( last_name = 'Madeira') ( last_name = 'Meier') ( last_name = 'Rahn') ( last_name = 'Leisert') ( last_name = 'Müller') ( last_name = 'Mustermann') ( last_name = 'Becker') ( last_name = 'Fischer') ). ENDMETHOD. METHOD get_data. IF gt_data IS NOT INITIAL. rt_data = gt_data. EXIT. ENDIF. DATA(lt_names) = generate_names( ). DATA(lt_addresses) = generate_addresses( ). DATA(lo_random_phone_number) = cl_abap_random_int8=>create( min = cv_phone_number_min max = cv_phone_number_max ). DATA(lo_random_city) = cl_abap_random_int=>create( min = 1 max = lines( lt_addresses ) ). DATA(lo_random_street_number) = cl_abap_random_int=>create( min = 1 max = 100 ). gt_data = VALUE tt_customer( FOR i = 1 THEN i + 1 WHILE i <= lines( lt_names ) LET j = lo_random_city->get_next( ) IN ( customer_id = i first_name = lt_names[ i ]-first_name last_name = lt_names[ i ]-last_name title = lt_names[ i ]-title street = lt_addresses[ j ]-street && ` ` && lo_random_street_number->get_next( ) postal_code = lt_addresses[ j ]-postal_code city = lt_addresses[ j ]-city country_code = lt_addresses[ j ]-country phone_number = '+' && COND string( WHEN lt_addresses[ j ]-country = 'AT' THEN '43' WHEN lt_addresses[ j ]-country = 'BE' THEN '32' WHEN lt_addresses[ j ]-country = 'CH' THEN '41' WHEN lt_addresses[ j ]-country = 'DE' THEN '49' WHEN lt_addresses[ j ]-country = 'ES' THEN '34' WHEN lt_addresses[ j ]-country = 'FR' THEN '33' WHEN lt_addresses[ j ]-country = 'IT' THEN '39' WHEN lt_addresses[ j ]-country = 'SI' THEN '386' WHEN lt_addresses[ j ]-country = 'US' THEN '1' ELSE '89' ) && cv_phone_number_seperator && |{ replace( val = lo_random_phone_number->get_next( ) off = 3 len = 1 with = cv_phone_number_seperator ) }| email_address = to_lower( lt_names[ i ]-first_name && `.` && lt_names[ i ]-last_name && `@` && cv_email_host && `.` && lt_addresses[ j ]-country ) ) ). rt_data = gt_data. ENDMETHOD. METHOD generate_names. DATA: lo_random_counter TYPE REF TO cl_abap_random_int, lo_random_first_name TYPE REF TO cl_abap_random_int, lo_random_title TYPE REF TO cl_abap_random_int, ls_first_name TYPE lcl_customer_data_generator=>ty_first_name. DATA(lt_first_names) = build_first_names( ). lo_random_counter = cl_abap_random_int=>create( min = 5 max = 15 ). lo_random_first_name = cl_abap_random_int=>create( min = 1 max = lines( lt_first_names ) ). LOOP AT build_last_names( ) INTO DATA(ls_last_name). DO lo_random_counter->get_next( ) TIMES. ls_first_name = lt_first_names[ lo_random_first_name->get_next( ) ]. APPEND VALUE ty_name( first_name = ls_first_name-first_name last_name = ls_last_name-last_name title = COND /dmo/title16( WHEN ls_first_name-gender = 'M' THEN 'Mr.' WHEN ls_first_name-gender = 'F' THEN 'Mrs.' ELSE 'Martian' ) ) TO rt_data. ENDDO. ENDLOOP. ENDMETHOD. METHOD build_city. rt_data = VALUE tt_city( ( country = 'DE' postal_code = '23496' city = 'Dielheim') ( country = 'SI' postal_code = '1000' city = 'Ljubljana') ( country = 'DE' postal_code = '86343' city = 'Koenigsbrunn') ( country = 'DE' postal_code = '55128' city = 'Mainz') ( country = 'DE' postal_code = '11111' city = 'Berlin') ( country = 'US' postal_code = '17844' city = 'Washington') ( country = 'AT' postal_code = '4020' city = 'Linz') ( country = 'DE' postal_code = '68723' city = 'Schwetzingen') ( country = 'DE' postal_code = '68789' city = 'St. Leon-Rot') ( country = 'DE' postal_code = '66464' city = 'Homburg') ( country = 'DE' postal_code = '69231' city = 'Rauenberg') ( country = 'DE' postal_code = '69190' city = 'Walldorf') ( country = 'DE' postal_code = '58332' city = 'Schwelm') ( country = 'DE' postal_code = '64342' city = 'Seeheim-Jugenheim') ( country = 'DE' postal_code = '69121' city = 'Heidelberg') ( country = 'DE' postal_code = '63150' city = 'Heusenstamm') ( country = 'DE' postal_code = '64283' city = 'Darmstadt') ( country = 'DE' postal_code = '69207' city = 'Kurt') ( country = 'DE' postal_code = '79104' city = 'Freiburg') ( country = 'DE' postal_code = '79312' city = 'Emmendingen') ( country = 'DE' postal_code = '68753' city = 'Amelie') ( country = 'DE' postal_code = '68163' city = 'Mannheim') ( country = 'DE' postal_code = '67105' city = 'Schifferstadt') ( country = 'DE' postal_code = '68163' city = 'Mannheim-Lindenhof') ( country = 'FR' postal_code = '78140' city = 'Vélizy') ( country = 'CH' postal_code = '1211' city = 'Genève') ( country = 'BE' postal_code = 'B - 1030' city = 'Bruxelles') ( country = 'US' postal_code = '76018' city = 'Arlington') ( country = 'FR' postal_code = '06130' city = 'Grasse') ( country = 'DE' postal_code = '27299' city = 'Langwedel') ( country = 'DE' postal_code = '69483' city = 'Wald-Michelbach') ( country = 'IT' postal_code = '00195' city = 'Roma') ( country = 'DE' postal_code = '81375' city = 'Muenchen') ( country = 'DE' postal_code = '67663' city = 'Kaiserslautern') ( country = 'DE' postal_code = '66386' city = 'St. Ingbert') ( country = 'DE' postal_code = '79761' city = 'Waldshut') ( country = 'DE' postal_code = '76137' city = 'Karlsruhe') ( country = 'US' postal_code = '07666' city = 'Teaneck') ( country = 'US' postal_code = '17758' city = 'N. Massapequa') ( country = 'US' postal_code = '09765' city = 'Boulder') ( country = 'ES' postal_code = '28020' city = 'Madrid') ( country = 'DE' postal_code = '69180' city = 'Wiesloch') ( country = 'ES' postal_code = '08014' city = 'Barcelona') ( country = 'ES' postal_code = '41006' city = 'Sevilla') ( country = 'DE' postal_code = '75305' city = 'Neuenburg') ( country = 'DE' postal_code = '41466' city = 'Neuss') ( country = 'DE' postal_code = '71116' city = 'Gaertringen') ( country = 'US' postal_code = '60657' city = 'Chicago') ( country = 'DE' postal_code = '63263' city = 'Neu-Isenburg') ( country = 'DE' postal_code = '23056' city = 'Buxtehude') ( country = 'DE' postal_code = '16233' city = 'Potsdam') ( country = 'DE' postal_code = '90419' city = 'Nuernberg') ( country = 'US' postal_code = '22334' city = 'San Francisco') ( country = 'FR' postal_code = '75839' city = 'Paris') ( country = 'US' postal_code = '63728' city = 'New Orleans') ( country = 'DE' postal_code = '75757' city = 'Elsenz') ( country = 'DE' postal_code = '70111' city = 'Reutlingen') ( country = 'DE' postal_code = '15344' city = 'Strausberg') ). ENDMETHOD. METHOD generate_addresses. TYPES: BEGIN OF ty_random_street, country TYPE land1, random TYPE REF TO cl_abap_random_int, END OF ty_random_street, tt_random_street TYPE STANDARD TABLE OF ty_random_street WITH KEY country. DATA: lo_random_counter TYPE REF TO cl_abap_random_int, lo_random_city TYPE REF TO cl_abap_random_int, lt_random_street TYPE tt_random_street, lo_phone_number TYPE REF TO cl_abap_random_int. DATA(lt_street) = build_street( ). lo_random_counter = cl_abap_random_int=>create( min = 5 max = 15 ). lo_phone_number = cl_abap_random_int=>create( min = 1 max = 100 ). LOOP AT lt_street INTO DATA(ls_street). APPEND VALUE ty_random_street( country = ls_street-country random = cl_abap_random_int=>create( min = 1 max = lines( ls_street-streets ) ) ) TO lt_random_street. ENDLOOP. LOOP AT build_city( ) INTO DATA(ls_city). DO lo_random_counter->get_next( ) TIMES. APPEND VALUE ty_address( country = ls_city-country postal_code = ls_city-postal_code city = ls_city-city street = |{ lt_street[ country = ls_city-country ]-streets[ lt_random_street[ country = ls_city-country ]-random->get_next( ) ] }| ) TO rt_data. ENDDO. ENDLOOP. ENDMETHOD. METHOD build_street. rt_data = VALUE tt_street( ( country = 'AT' streets = VALUE tt_street_per_country( ( 'Hasnerstrasse' ) ) ) ( country = 'BE' streets = VALUE tt_street_per_country( ( 'rue Voltaire' ) ) ) ( country = 'CH' streets = VALUE tt_street_per_country( ( 'rue de Moillebeau' ) ) ) ( country = 'DE' streets = VALUE tt_street_per_country( ( 'Akazienweg' ) ( 'Albert-Schweitzer-Str.' ) ( 'Alte Reichsstr.' ) ( 'Am Deich' ) ( 'Arionweg' ) ( 'Arndtstrasse' ) ( 'Auf dem Huegel' ) ( 'Ausfallstr.' ) ( 'Ausserhalb' ) ( 'Carl-Metz Strasse' ) ( 'Caspar-David-Friedrich-Str.' ) ( 'Dudweilerstr.' ) ( 'Elzstrasse' ) ( 'Emil-Heckel-Str.' ) ( 'Erlengrund' ) ( 'Franz-Marc-Str.' ) ( 'Friedensallee' ) ( 'Froschstr.' ) ( 'Gartenstr.' ) ( 'Gemeindestr.' ) ( 'Goeckinghofstr.' ) ( 'Gruenlingweg' ) ( 'Hauptstr.' ) ( 'Heidelberger Str.' ) ( 'Im Warmet' ) ( 'Jacobistrasse' ) ( 'Karl-Marx-Allee' ) ( 'Karl-Schwaner-Str.' ) ( 'Leichhof' ) ( 'Lerchenstr.' ) ( 'Marktplatz' ) ( 'Max-Planck-Str.' ) ( 'Meerfeldstr.' ) ( 'Melissenstr.' ) ( 'Muehltalstr.' ) ( 'Mutterstadter Str.' ) ( 'N7,' ) ( 'Rankestr.' ) ( 'Raupelsweg' ) ( 'Schillerstr.' ) ( 'Stauboernchenstrasse' ) ( 'Stiftsbogen' ) ( 'Waldmann' ) ( 'Wilhelminentr.' ) ( 'Zwischergasse' ) ) ) ( country = 'ES' streets = VALUE tt_street_per_country( ( 'Camelias' ) ( 'Fuenlabrada' ) ( 'Piedad' ) ( 'Pza. Pablo Ruiz Picasso' ) ) ) ( country = 'FR' streets = VALUE tt_street_per_country( ( 'Rue Balzac' ) ( 'route de Pégomas' ) ( 'rue Nieuport' ) ) ) ( country = 'IT' streets = VALUE tt_street_per_country( ( 'Via Giulio Cesare' ) ) ) ( country = 'SI' streets = VALUE tt_street_per_country( ( 'Poklukarjeva' ) ) ) ( country = 'US' streets = VALUE tt_street_per_country( ( '17th St.' ) ( 'Federal Avenue' ) ( 'Golden Gate Drive' ) ( 'Lake Shore Drive' ) ( 'Oak Street' ) ( 'Sagamore St.' ) ( 'Voodoo Avenue' ) ( 'Windstone Drive' ) ) ) ). ENDMETHOD. ENDCLASS. CLASS lcl_supplement_data_generator DEFINITION CREATE PRIVATE. PUBLIC SECTION. INTERFACES: lif_data_generator. TYPES: tt_supplement TYPE STANDARD TABLE OF /dmo/suppleme_16 WITH KEY supplement_id, tt_supplement_text TYPE STANDARD TABLE OF /dmo/suppl_te_16 WITH KEY supplement_id. " Merged types TYPES BEGIN OF ty_supplement_complete. INCLUDE TYPE /dmo/suppleme_16. TYPES language_code TYPE spras. TYPES description TYPE /dmo/description16. TYPES END OF ty_supplement_complete. TYPES tt_supplement_complete TYPE STANDARD TABLE OF ty_supplement_complete WITH KEY supplement_id. CLASS-METHODS: get_data RETURNING VALUE(rt_data) TYPE tt_supplement_complete. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS lcl_supplement_data_generator IMPLEMENTATION. METHOD lif_data_generator~create. IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF. DELETE FROM /dmo/suppleme_16. "#EC CI_NOWHERE DELETE FROM /dmo/suppl_te_16. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF. DATA(lt_data) = get_data( ). IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF. INSERT /dmo/suppleme_16 FROM TABLE @( CORRESPONDING tt_supplement( lt_data ) ). INSERT /dmo/suppl_te_16 FROM TABLE @( CORRESPONDING tt_supplement_text( lt_data ) ). IF out IS BOUND. out->write( '--> Done.' ). ENDIF. ENDMETHOD. METHOD get_data. " BV = beverage " ML = meal " LU = luggage " EX = extra rt_data = VALUE tt_supplement_complete( ( supplement_id = 'BV-0001' price = '2.30' currency_code = 'EUR' language_code = 'E' description = 'Hot Chocolate' ) ( supplement_id = 'BV-0002' price = '7.50' currency_code = 'EUR' language_code = 'E' description = 'Alcohol free Champagne' ) ( supplement_id = 'BV-0003' price = '3.50' currency_code = 'EUR' language_code = 'E' description = 'Cola' ) ( supplement_id = 'BV-0004' price = '3.50' currency_code = 'EUR' language_code = 'E' description = 'Orange Limonade' ) ( supplement_id = 'BV-0005' price = '3.50' currency_code = 'EUR' language_code = 'E' description = 'Apple Juice' ) ( supplement_id = 'BV-0006' price = '3.50' currency_code = 'EUR' language_code = 'E' description = 'Pear Juice' ) ( supplement_id = 'BV-0007' price = '3.50' currency_code = 'EUR' language_code = 'E' description = 'Mango Juice' ) ( supplement_id = 'BV-0008' price = '3.50' currency_code = 'EUR' language_code = 'E' description = 'Lemon Limonade' ) ( supplement_id = 'BV-0009' price = '4.50' currency_code = 'EUR' language_code = 'E' description = 'Tomato Juice' ) ( supplement_id = 'ML-0001' price = '3.00' currency_code = 'EUR' language_code = 'E' description = 'Black Forest Cake' ) ( supplement_id = 'ML-0002' price = '2.00' currency_code = 'EUR' language_code = 'E' description = 'Chocolate Cake' ) ( supplement_id = 'ML-0003' price = '1.50' currency_code = 'EUR' language_code = 'E' description = 'Apple Pie' ) ( supplement_id = 'ML-0004' price = '1.50' currency_code = 'EUR' language_code = 'E' description = 'Pear Pie' ) ( supplement_id = 'ML-0005' price = '8.00' currency_code = 'EUR' language_code = 'E' description = 'Nice Salad') ( supplement_id = 'ML-0006' price = '9.00' currency_code = 'EUR' language_code = 'E' description = 'Paris Salad') ( supplement_id = 'ML-0007' price = '12.00' currency_code = 'EUR' language_code = 'E' description = 'Hamburg Salad with Eggs' ) ( supplement_id = 'ML-0008' price = '25.00' currency_code = 'EUR' language_code = 'E' description = 'Quail with French Salad and Black Forest Cake') ( supplement_id = 'ML-0009' price = '13.00' currency_code = 'EUR' language_code = 'E' description = 'Duck on Lettuce' ) ( supplement_id = 'ML-0010' price = '5.00' currency_code = 'EUR' language_code = 'E' description = 'Carpaccio') ( supplement_id = 'ML-0011' price = '7.00' currency_code = 'EUR' language_code = 'E' description = 'Seasonal Salad') ( supplement_id = 'ML-0012' price = '16.00' currency_code = 'EUR' language_code = 'E' description = 'Hamburg Salad with Fresh Shrimps') ( supplement_id = 'ML-0013' price = '17.00' currency_code = 'EUR' language_code = 'E' description = 'Quail') ( supplement_id = 'ML-0014' price = '14.00' currency_code = 'EUR' language_code = 'E' description = 'Wiener Schnitzel') ( supplement_id = 'ML-0015' price = '13.00' currency_code = 'EUR' language_code = 'E' description = 'Pork Schnitzel') ( supplement_id = 'ML-0016' price = '14.00' currency_code = 'EUR' language_code = 'E' description = 'Schnitzel with Pepper Sauce') ( supplement_id = 'ML-0017' price = '11.00' currency_code = 'EUR' language_code = 'E' description = 'Chicken and French Fries') ( supplement_id = 'ML-0018' price = '12.00' currency_code = 'EUR' language_code = 'E' description = 'Turkey Steak') ( supplement_id = 'ML-0019' price = '15.00' currency_code = 'EUR' language_code = 'E' description = 'Bavarian Duck') ( supplement_id = 'ML-0020' price = '14.00' currency_code = 'EUR' language_code = 'E' description = 'Knuckle of Pork') ( supplement_id = 'ML-0021' price = '22.00' currency_code = 'EUR' language_code = 'E' description = 'Fillet of Beef') ( supplement_id = 'ML-0022' price = '21.00' currency_code = 'EUR' language_code = 'E' description = 'Trout Au Bleu') ( supplement_id = 'ML-0023' price = '20.00' currency_code = 'EUR' language_code = 'E' description = 'Trout Meuniere') ( supplement_id = 'ML-0024' price = '17.00' currency_code = 'EUR' language_code = 'E' description = 'Monkfish') ( supplement_id = 'ML-0025' price = '12.00' currency_code = 'EUR' language_code = 'E' description = 'Sole') ( supplement_id = 'ML-0026' price = '6.00' currency_code = 'EUR' language_code = 'E' description = 'Mini Fried Sole') ( supplement_id = 'ML-0027' price = '14.00' currency_code = 'EUR' language_code = 'E' description = 'Salmon in a Bearnaise Sauce') ( supplement_id = 'ML-0028' price = '15.00' currency_code = 'EUR' language_code = 'E' description = 'Salmon Lasagne') ( supplement_id = 'ML-0029' price = '3.00' currency_code = 'EUR' language_code = 'E' description = 'Chocolate Ice Cream') ( supplement_id = 'ML-0030' price = '2.50' currency_code = 'EUR' language_code = 'E' description = 'Vanilla Ice Cream') ( supplement_id = 'ML-0031' price = '4.50' currency_code = 'EUR' language_code = 'E' description = 'Vanilla Ice Cream with Hot Cherries') ( supplement_id = 'ML-0032' price = '4.50' currency_code = 'EUR' language_code = 'E' description = 'Vanilla Ice Cream with Hot Raspberries') ( supplement_id = 'ML-0033' price = '4.00' currency_code = 'EUR' language_code = 'E' description = 'Apple Strudel') ( supplement_id = 'ML-0034' price = '4.00' currency_code = 'EUR' language_code = 'E' description = 'Raspberry Sorbet') ( supplement_id = 'ML-0035' price = '4.00' currency_code = 'EUR' language_code = 'E' description = 'Strawberry Sorbet') ( supplement_id = 'LU-0001' price = '40.00' currency_code = 'EUR' language_code = 'E' description = 'Extra baggage 5 kgs') ( supplement_id = 'LU-0002' price = '15.00' currency_code = 'EUR' language_code = 'E' description = 'Luggage transfer from airport to hotel') ( supplement_id = 'LU-0003' price = '75.00' currency_code = 'EUR' language_code = 'E' description = 'Luggage pickup from home and return ' ) ( supplement_id = 'LU-0004' price = '80.00' currency_code = 'EUR' language_code = 'E' description = 'Bulky goods like sports equipment' ) ) . ENDMETHOD. ENDCLASS. CLASS lcl_travel_data_generator DEFINITION DEFERRED. CLASS /dmo/cl_flight_data_generat_16 DEFINITION LOCAL FRIENDS lcl_travel_data_generator. CLASS lcl_travel_data_generator DEFINITION CREATE PRIVATE. PUBLIC SECTION. INTERFACES: lif_data_generator. TYPES: tt_travel TYPE STANDARD TABLE OF /dmo/travel16 WITH KEY travel_id, tt_bookings TYPE STANDARD TABLE OF /dmo/booking16 WITH KEY travel_id booking_id, tt_booking_supplements TYPE STANDARD TABLE OF /dmo/book_sup_16 WITH KEY travel_id booking_id booking_supplement_id. " Build nested tables TYPES BEGIN OF ty_booking_complete. INCLUDE TYPE /dmo/booking16. TYPES booking_supplements TYPE tt_booking_supplements. TYPES END OF ty_booking_complete. TYPES tt_booking_complete TYPE STANDARD TABLE OF ty_booking_complete WITH KEY travel_id booking_id. TYPES BEGIN OF ty_travel_complete. INCLUDE TYPE /dmo/travel16. TYPES bookings TYPE tt_booking_complete. TYPES END OF ty_travel_complete. "! <em>Travel</em> structure <br/> "! <em>Bookings</em> table <br/> "! --> <em>Booking</em> structure <br/> "! --> <em>Booking Supplement</em> table <br/> "! -----> <em>Booking Supplement</em> structure TYPES tt_travel_complete TYPE STANDARD TABLE OF ty_travel_complete WITH KEY travel_id. PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_countryname, country TYPE i_countrytext-country, countryname TYPE i_countrytext-countryname, END OF ty_countryname. CONSTANTS: cv_travel_group_amount_max TYPE i VALUE 3, cv_trip_length_center TYPE i VALUE 3, cv_trip_length_offset TYPE i VALUE 2, cv_booking_date_min TYPE i VALUE 0, cv_booking_date_max TYPE i VALUE 20, cv_travel_create_dat_befor_min TYPE i VALUE 0, cv_travel_create_dat_befor_max TYPE i VALUE 40, cv_travel_change_date_min TYPE i VALUE 0, cv_travel_change_date_max TYPE i VALUE 10, cv_booking_supplement_amount TYPE i VALUE 5, cv_booking_days_before TYPE i VALUE 15. CLASS-DATA: go_random_seats TYPE REF TO cl_abap_random_int, gt_flights_seats_decrease TYPE lcl_flight_data_generator=>tt_flights, go_ran_travel_group_amount TYPE REF TO cl_abap_random_int, go_ran_trip_length TYPE REF TO cl_abap_random_int, go_ran_customer TYPE REF TO cl_abap_random_int, gt_agency TYPE lcl_agency_data_generator=>tt_agency, gt_customer TYPE lcl_customer_data_generator=>tt_customer, gt_flights_final TYPE lcl_flight_data_generator=>tt_flights, go_ran_booking_date TYPE REF TO cl_abap_random_int, go_ran_agency TYPE REF TO cl_abap_random_int, gt_connections TYPE lcl_connection_data_generator=>tt_connection_additional_info, go_ran_booking_supplement_id TYPE REF TO cl_abap_random_int, go_ran_booking_supplement_amnt TYPE REF TO cl_abap_random_int, gt_supplements TYPE lcl_supplement_data_generator=>tt_supplement_complete, go_ran_travel_description TYPE REF TO cl_abap_random_int, go_ran_travel_create_dat_befor TYPE REF TO cl_abap_random_int, go_ran_travel_change_date TYPE REF TO cl_abap_random_int, go_ran_hour TYPE REF TO cl_abap_random_int, go_ran_min_sec TYPE REF TO cl_abap_random_int, gt_airports TYPE lcl_airport_data_generator=>tt_airport, gt_countryname TYPE STANDARD TABLE OF ty_countryname WITH KEY country, go_ran_status_description TYPE REF TO cl_abap_random_int, gt_last_names TYPE lcl_customer_data_generator=>tt_last_name, go_ran_last_name TYPE REF TO cl_abap_random_int, go_ran_customer_travel TYPE REF TO cl_abap_random_int, mv_datum TYPE d. CLASS-METHODS: get_data RETURNING VALUE(rt_data) TYPE tt_travel_complete, build_booking IMPORTING iv_travel_id TYPE /dmo/booking16-travel_id RETURNING VALUE(rt_bookings) TYPE tt_booking_complete, build_dependend_content, find_next_fitting_flight IMPORTING iv_seats_required TYPE i is_flight_previous TYPE /dmo/flight16 OPTIONAL RETURNING VALUE(rs_flight) TYPE /dmo/flight16, generate_booking_supplements IMPORTING iv_travel_id TYPE /dmo/booking16-travel_id iv_booking_id TYPE /dmo/booking16-booking_id RETURNING VALUE(rt_data) TYPE tt_booking_supplements, generate_description IMPORTING it_bookings TYPE lcl_travel_data_generator=>tt_booking_complete RETURNING VALUE(rv_description) TYPE /dmo/travel16-description, generate_random_time RETURNING VALUE(r_result) TYPE i, calculate_booking_fee IMPORTING it_bookings TYPE lcl_travel_data_generator=>tt_booking_complete RETURNING VALUE(rv_booking_fee) TYPE /dmo/travel16-booking_fee, generate_travel_customer_id IMPORTING it_bookings TYPE lcl_travel_data_generator=>tt_booking_complete RETURNING VALUE(rv_customer_id) TYPE /dmo/travel16-customer_id, set_today, calc_days_before_book_or_today IMPORTING iv_booking_date TYPE lcl_travel_data_generator=>ty_booking_complete-booking_date RETURNING VALUE(rv_travel_create_date_dats) TYPE d RAISING cx_parameter_invalid_range cx_parameter_invalid_type . ENDCLASS. CLASS lcl_travel_data_generator IMPLEMENTATION. METHOD lif_data_generator~create. DATA: lt_travels TYPE tt_travel, lt_bookings TYPE tt_bookings, lt_booking_supplements TYPE tt_booking_supplements. IF out IS BOUND. out->write( '--> Delete Travel Content.' ). ENDIF. DELETE FROM /dmo/travel16. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Delete Booking Content.' ). ENDIF. DELETE FROM /dmo/booking16. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Delete Booking Supplement Content.' ). ENDIF. DELETE FROM /dmo/book_sup_16. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF. DATA(lt_data) = get_data( ). IF out IS BOUND. out->write( '--> Convert Content to Table Format' ). ENDIF. LOOP AT lt_data INTO DATA(ls_travel). APPEND CORRESPONDING /dmo/travel16( ls_travel ) TO lt_travels. LOOP AT ls_travel-bookings INTO DATA(ls_booking). APPEND CORRESPONDING /dmo/booking16( ls_booking ) TO lt_bookings. APPEND LINES OF ls_booking-booking_supplements TO lt_booking_supplements. ENDLOOP. ENDLOOP. IF out IS BOUND. out->write( '--> Insert Travel Content' ). ENDIF. INSERT /dmo/travel16 FROM TABLE @lt_travels. IF out IS BOUND. out->write( '--> Insert Booking Content' ). ENDIF. INSERT /dmo/booking16 FROM TABLE @lt_bookings. IF out IS BOUND. out->write( '--> Insert Booking Supplement Content' ). ENDIF. INSERT /dmo/book_sup_16 FROM TABLE @lt_booking_supplements. IF out IS BOUND. out->write( '--> Done.' ). ENDIF. ENDMETHOD. METHOD get_data. DATA: lv_travel_id TYPE /dmo/booking16-travel_id. build_dependend_content( ). set_today( ). lv_travel_id = 1. DATA(lt_bookings) = build_booking( lv_travel_id ). WHILE lt_bookings IS NOT INITIAL. DATA(lv_travel_create_date_dats) = calc_days_before_book_or_today( lt_bookings[ 1 ]-booking_date ). DATA(lv_booking_fee) = calculate_booking_fee( lt_bookings ). DATA(lastchanged_date) = lv_travel_create_date_dats. lastchanged_date = lastchanged_date + go_ran_travel_change_date->get_next( ). DATA(lastchangedat_stamp) = CONV timestampl( ( CONV string( lastchanged_date ) * 1000000 ) ). lastchangedat_stamp = lastchangedat_stamp + generate_random_time( ). APPEND VALUE ty_travel_complete( travel_id = lv_travel_id agency_id = gt_agency[ go_ran_agency->get_next( ) ]-agency_id customer_id = generate_travel_customer_id( lt_bookings ) begin_date = lt_bookings[ 1 ]-flight_date end_date = lt_bookings[ lines( lt_bookings ) ]-flight_date booking_fee = lv_booking_fee total_price = lv_booking_fee + REDUCE /dmo/travel16-total_price( INIT sum = 0 FOR booking IN lt_bookings NEXT sum = sum + booking-flight_price + REDUCE /dmo/flight_price16( INIT sum_supplement = 0 FOR booking_supplement IN booking-booking_supplements NEXT sum_supplement = sum_supplement + booking_supplement-price ) ) currency_code = lt_bookings[ 1 ]-currency_code description = generate_description( lt_bookings ) status = SWITCH /dmo/travel16-status( go_ran_status_description->get_next( ) WHEN 1 OR 2 THEN /dmo/if_flight_legacy16=>travel_status-new WHEN 3 THEN /dmo/if_flight_legacy16=>travel_status-booked WHEN 4 THEN /dmo/if_flight_legacy16=>travel_status-planned ) createdby = gt_last_names[ go_ran_last_name->get_next( ) ]-last_name createdat = CONV timestampl( CONV string( lv_travel_create_date_dats ) * 1000000 + generate_random_time( ) ) lastchangedby = gt_last_names[ go_ran_last_name->get_next( ) ]-last_name lastchangedat = lastchangedat_stamp bookings = lt_bookings ) TO rt_data. lv_travel_id = lv_travel_id + 1. lt_bookings = build_booking( lv_travel_id ). ENDWHILE. ENDMETHOD. METHOD calc_days_before_book_or_today. cl_abap_tstmp=>td_add( EXPORTING date = COND d( WHEN mv_datum > iv_booking_date THEN iv_booking_date ELSE mv_datum ) time = CONV t( 0 ) secs = -86400 * cv_booking_days_before IMPORTING res_date = rv_travel_create_date_dats ). ENDMETHOD. METHOD set_today. GET TIME STAMP FIELD DATA(current_timestamp). DATA(tmp) = CONV string( current_timestamp ). mv_datum = tmp(8). mv_datum = mv_datum - 1. ENDMETHOD. METHOD generate_random_time. r_result = go_ran_hour->get_next( ) * 10000 + go_ran_min_sec->get_next( ) * 100 + go_ran_min_sec->get_next( ). ENDMETHOD. METHOD build_dependend_content. go_ran_hour = cl_abap_random_int=>create( min = 0 max = 23 ). go_ran_min_sec = cl_abap_random_int=>create( min = 0 max = 59 ). gt_agency = lcl_agency_data_generator=>get_data( ). go_ran_agency = cl_abap_random_int=>create( min = 1 max = lines( gt_agency ) ). gt_customer = lcl_customer_data_generator=>get_data( ). go_ran_customer = cl_abap_random_int=>create( min = 1 max = lines( gt_customer ) ). gt_last_names = lcl_customer_data_generator=>build_last_names( ). go_ran_last_name = cl_abap_random_int=>create( min = 1 max = lines( gt_last_names ) ). go_ran_customer_travel = cl_abap_random_int=>create( min = 1 max = 4 ). gt_connections = lcl_connection_data_generator=>get_data( ). gt_airports = lcl_airport_data_generator=>get_data( ). SELECT FROM i_countrytext FIELDS country, countryname WHERE language = 'E' INTO TABLE @gt_countryname. gt_flights_final = lcl_flight_data_generator=>get_data( ). SORT gt_flights_final BY flight_date ASCENDING. gt_flights_seats_decrease = lcl_flight_data_generator=>get_data( ). SORT gt_flights_seats_decrease BY flight_date ASCENDING. go_ran_travel_group_amount = cl_abap_random_int=>create( min = 1 max = cv_travel_group_amount_max ). go_ran_trip_length = cl_abap_random_int=>create( min = cv_trip_length_center - cv_trip_length_offset max = cv_trip_length_center + cv_trip_length_offset ). go_ran_booking_date = cl_abap_random_int=>create( min = cv_booking_date_min max = cv_booking_date_max ). go_ran_travel_create_dat_befor = cl_abap_random_int=>create( min = cv_booking_date_min max = cv_booking_date_max ). go_ran_travel_change_date = cl_abap_random_int=>create( min = cv_booking_date_min max = cv_booking_date_max ). gt_supplements = lcl_supplement_data_generator=>get_data( ). go_ran_booking_supplement_id = cl_abap_random_int=>create( min = 1 max = lines( lcl_supplement_data_generator=>get_data( ) ) ). go_ran_booking_supplement_amnt = cl_abap_random_int=>create( min = 0 max = cv_booking_supplement_amount ). go_ran_status_description = cl_abap_random_int=>create( min = 1 max = 4 ). go_ran_travel_description = cl_abap_random_int=>create( min = 0 max = 9 ). ENDMETHOD. METHOD build_booking. TYPES: tt_customer_id TYPE TABLE OF /dmo/customer16-customer_id WITH EMPTY KEY. DATA: lv_booking_id TYPE /dmo/booking16-booking_id, lt_customer_id TYPE tt_customer_id, lv_customer_amount TYPE i. DATA(lv_trip_length) = go_ran_trip_length->get_next( ). lt_customer_id = VALUE tt_customer_id( FOR i = 1 THEN i + 1 WHILE i <= go_ran_travel_group_amount->get_next( ) LET j = go_ran_customer->get_next( ) IN ( gt_customer[ j ]-customer_id ) ). lt_customer_id = CORRESPONDING tt_customer_id( lt_customer_id DISCARDING DUPLICATES ). lv_customer_amount = lines( lt_customer_id ). lv_booking_id = 0. DATA(ls_flight) = find_next_fitting_flight( iv_seats_required = lv_customer_amount ). CHECK ls_flight IS NOT INITIAL. DO lv_trip_length TIMES. READ TABLE gt_flights_seats_decrease WITH KEY key_sorted_date COMPONENTS carrier_id = ls_flight-carrier_id connection_id = ls_flight-connection_id flight_date = ls_flight-flight_date ASSIGNING FIELD-SYMBOL(<flight>). DATA(lv_booking_date) = CONV /dmo/booking16-booking_date( <flight>-flight_date - go_ran_booking_date->get_next( ) ). DATA(lv_price) = /dmo/cl_flight_data_generat_16=>calculate_flight_price( iv_flight_distance = gt_connections[ carrier_id = <flight>-carrier_id connection_id = <flight>-connection_id ]-distance iv_seats_occupied_percent = ( gt_flights_final[ KEY primary_key ##PRIMKEY[KEY_SORTED_DATE] carrier_id = <flight>-carrier_id connection_id = <flight>-connection_id flight_date = <flight>-flight_date ]-seats_occupied - <flight>-seats_occupied ) * 100 DIV <flight>-seats_max ). <flight>-seats_occupied = <flight>-seats_occupied - lv_customer_amount. APPEND LINES OF VALUE tt_booking_complete( FOR i = 1 THEN i + 1 WHILE i <= lines( lt_customer_id ) ( travel_id = iv_travel_id booking_id = lv_booking_id + i booking_date = lv_booking_date customer_id = lt_customer_id[ i ] carrier_id = <flight>-carrier_id connection_id = <flight>-connection_id flight_date = <flight>-flight_date flight_price = lv_price currency_code = <flight>-currency_code booking_supplements = generate_booking_supplements( iv_travel_id = iv_travel_id iv_booking_id = CONV /dmo/booking16-booking_id( lv_booking_id + i ) ) ) ) TO rt_bookings. lv_booking_id = lv_booking_id + lines( lt_customer_id ). ls_flight = find_next_fitting_flight( iv_seats_required = lv_customer_amount is_flight_previous = <flight> ). IF ls_flight IS INITIAL. EXIT. ENDIF. ENDDO. ENDMETHOD. METHOD find_next_fitting_flight. DATA(lt_flights_filtered) = FILTER lcl_flight_data_generator=>tt_flights( gt_flights_seats_decrease USING KEY key_sorted_seats WHERE seats_occupied >= iv_seats_required ). CHECK lt_flights_filtered IS NOT INITIAL. IF is_flight_previous IS SUPPLIED. DATA(lv_connection_id_new) = VALUE /dmo/connecti_16-connection_id( gt_connections[ airport_from_id = gt_connections[ connection_id = is_flight_previous-connection_id ]-airport_to_id ]-connection_id OPTIONAL ). CHECK lv_connection_id_new IS NOT INITIAL. DATA(lt_flights_filtered2) = FILTER lcl_flight_data_generator=>tt_flights( lt_flights_filtered USING KEY key_sorted_date WHERE connection_id = lv_connection_id_new AND flight_date >= is_flight_previous-flight_date ). CHECK lt_flights_filtered2 IS NOT INITIAL. rs_flight = lt_flights_filtered2[ 1 ]. ELSE. rs_flight = lt_flights_filtered[ 1 ]. ENDIF. ENDMETHOD. METHOD generate_booking_supplements. rt_data = VALUE tt_booking_supplements( FOR i = 1 THEN i + 1 WHILE i <= go_ran_booking_supplement_amnt->get_next( ) LET j = go_ran_booking_supplement_id->get_next( ) IN ( travel_id = iv_travel_id booking_id = iv_booking_id booking_supplement_id = i supplement_id = gt_supplements[ j ]-supplement_id price = gt_supplements[ j ]-price currency_code = gt_supplements[ j ]-currency_code ) ). ENDMETHOD. METHOD generate_description. TYPES: tt_customers TYPE SORTED TABLE OF /dmo/customer16 WITH UNIQUE KEY customer_id. rv_description = SWITCH /dmo/travel16-description( go_ran_travel_description->get_next( ) WHEN 1 THEN `Business Trip for ` && REDUCE /dmo/travel16-description( LET travelers = CORRESPONDING tt_customers( it_bookings DISCARDING DUPLICATES MAPPING customer_id = customer_id ) IN INIT s = `` i = 1 FOR traveler IN travelers NEXT s = s && gt_customer[ customer_id = traveler-customer_id ]-first_name && COND /dmo/travel16-description( WHEN i < lines( it_bookings ) THEN `, ` ) i = i + 1 ) WHEN 2 THEN `Vacation for ` && REDUCE /dmo/travel16-description( LET travelers2 = CORRESPONDING tt_customers( it_bookings DISCARDING DUPLICATES MAPPING customer_id = customer_id ) IN INIT s = `` i = 1 FOR traveler IN travelers2 NEXT s = s && gt_customer[ customer_id = traveler-customer_id ]-first_name && COND /dmo/travel16-description( WHEN i < lines( it_bookings ) THEN `, ` ) i = i + 1 ) WHEN 3 THEN `Business Trip to ` && gt_countryname[ country = gt_airports[ airport_id = gt_connections[ carrier_id = it_bookings[ 1 ]-carrier_id connection_id = it_bookings[ 1 ]-connection_id ]-airport_to_id ]-country ]-countryname WHEN 4 THEN `Vacation to ` && gt_countryname[ country = gt_airports[ airport_id = gt_connections[ carrier_id = it_bookings[ 1 ]-carrier_id connection_id = it_bookings[ 1 ]-connection_id ]-airport_to_id ]-country ]-countryname WHEN 5 THEN `Sightseeing in ` && gt_airports[ airport_id = gt_connections[ carrier_id = it_bookings[ 1 ]-carrier_id connection_id = it_bookings[ 1 ]-connection_id ]-airport_to_id ]-city WHEN 6 THEN `Visiting ` && gt_customer[ go_ran_customer->get_next( ) ]-first_name WHEN 7 THEN `Business Trip` ELSE `Vacation` ). ENDMETHOD. METHOD calculate_booking_fee. rv_booking_fee = 10 * lines( it_bookings ). ENDMETHOD. METHOD generate_travel_customer_id. rv_customer_id = COND /dmo/travel16-customer_id( WHEN go_ran_customer_travel->get_next( ) = 1 THEN gt_customer[ go_ran_customer->get_next( ) ]-customer_id ELSE it_bookings[ 1 ]-customer_id ). ENDMETHOD. ENDCLASS.
[ 41358, 49836, 3868, 62, 7890, 62, 8612, 1352, 13, 198, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 2251, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 503, 41876, 4526, 37, 5390, 611, 62, 2238, 62, 324, 83, 62, 4871, 5143, 62, 448, 39852, 2849, 1847, 13, 198, 10619, 41358, 49836, 13, 198, 198, 31631, 300, 565, 62, 40955, 62, 7890, 62, 8612, 1352, 5550, 20032, 17941, 29244, 6158, 4810, 3824, 6158, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 3868, 62, 7890, 62, 8612, 1352, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 256, 83, 62, 40955, 41876, 49053, 9795, 43679, 3963, 1220, 67, 5908, 14, 40955, 1433, 13315, 35374, 4086, 62, 312, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 651, 62, 7890, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 17034, 62, 7890, 8, 41876, 256, 83, 62, 40955, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 40955, 62, 7890, 62, 8612, 1352, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 3868, 62, 7890, 62, 8612, 1352, 93, 17953, 13, 198, 220, 220, 220, 16876, 503, 3180, 347, 15919, 13, 220, 503, 3784, 13564, 7, 705, 46904, 23520, 14041, 2637, 6739, 220, 23578, 5064, 13, 198, 220, 220, 220, 5550, 2538, 9328, 16034, 1220, 67, 5908, 14, 40955, 1433, 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, 25113, 2943, 14514, 62, 45669, 39, 9338, 628, 220, 220, 220, 16876, 503, 3180, 347, 15919, 13, 220, 503, 3784, 13564, 7, 705, 46904, 10934, 14041, 2637, 6739, 23578, 5064, 13, 198, 220, 220, 220, 42865, 7, 2528, 62, 7890, 8, 796, 651, 62, 7890, 7, 6739, 628, 220, 220, 220, 16876, 503, 3180, 347, 15919, 13, 220, 503, 3784, 13564, 7, 705, 46904, 35835, 14041, 2637, 6739, 23578, 5064, 13, 198, 220, 220, 220, 29194, 17395, 1220, 67, 5908, 14, 40955, 1433, 16034, 43679, 2488, 2528, 62, 7890, 13, 628, 220, 220, 220, 16876, 503, 3180, 347, 15919, 13, 220, 503, 3784, 13564, 7, 705, 46904, 24429, 2637, 6739, 23578, 5064, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 7890, 13, 198, 220, 220, 220, 374, 83, 62, 7890, 796, 26173, 8924, 256, 83, 62, 40955, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 4086, 62, 312, 796, 705, 2998, 18005, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 796, 705, 16012, 19489, 13524, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4675, 220, 220, 220, 796, 705, 19880, 2688, 3530, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30793, 62, 8189, 220, 796, 705, 20, 3559, 1954, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1748, 220, 220, 220, 220, 220, 796, 705, 49, 420, 19593, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1499, 62, 8189, 220, 220, 796, 705, 2937, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3072, 62, 17618, 796, 705, 10, 16, 860, 486, 12, 21, 2624, 12, 3980, 1238, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3992, 62, 21975, 220, 220, 220, 220, 220, 220, 796, 705, 4023, 1378, 2503, 13, 19155, 19489, 12, 35927, 13, 82, 499, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3053, 62, 21975, 796, 705, 10951, 31, 19155, 19489, 12, 35927, 13, 82, 499, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 4086, 62, 312, 796, 705, 2998, 34215, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 796, 705, 33771, 3334, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4675, 220, 220, 220, 796, 705, 24814, 24683, 978, 7197, 1367, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30793, 62, 8189, 220, 796, 705, 26200, 1795, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1748, 220, 220, 220, 220, 220, 796, 705, 35, 947, 325, 335, 24263, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1499, 62, 8189, 220, 220, 796, 705, 7206, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3072, 62, 17618, 796, 705, 10, 2920, 362, 15377, 8644, 31046, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3992, 62, 21975, 220, 220, 220, 220, 220, 220, 796, 705, 4023, 1378, 2503, 13, 12254, 8929, 13, 82, 499, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3053, 62, 21975, 796, 705, 10951, 31, 12254, 8929, 13, 82 ]
[ 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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TERFACES zif_abapgit_object. METHODS: constructor IMPORTING is_item TYPE zif_abapgit_definitions=>ty_item iv_language TYPE spras RAISING zcx_abapgit_exception. PROTECTED SECTION. PRIVATE SECTION. METHODS: clear_fields CHANGING cs_dependency_rule TYPE any, clear_field IMPORTING iv_fieldname TYPE csequence CHANGING cs_dependency_rule TYPE any, fill_metadata_from_db CHANGING cs_dependency_rule TYPE any RAISING zcx_abapgit_exception, get_wb_object_operator RETURNING VALUE(ri_wb_object_operator) TYPE REF TO object RAISING zcx_abapgit_exception. DATA: mr_dependency_rule TYPE REF TO data, mv_dependency_rule_key TYPE seu_objkey, mi_persistence TYPE REF TO if_wb_object_persist, mi_wb_object_operator TYPE REF TO object. ENDCLASS. CLASS zcl_abapgit_object_drul IMPLEMENTATION. METHOD clear_field. FIELD-SYMBOLS: <lv_value> TYPE data. ASSIGN COMPONENT iv_fieldname OF STRUCTURE cs_dependency_rule TO <lv_value>. ASSERT sy-subrc = 0. CLEAR: <lv_value>. ENDMETHOD. METHOD clear_fields. clear_field( EXPORTING iv_fieldname = 'METADATA-CREATED_AT' CHANGING cs_dependency_rule = cs_dependency_rule ). clear_field( EXPORTING iv_fieldname = 'METADATA-CREATED_BY' CHANGING cs_dependency_rule = cs_dependency_rule ). clear_field( EXPORTING iv_fieldname = 'METADATA-CHANGED_AT' CHANGING cs_dependency_rule = cs_dependency_rule ). clear_field( EXPORTING iv_fieldname = 'METADATA-CHANGED_BY' CHANGING cs_dependency_rule = cs_dependency_rule ). clear_field( EXPORTING iv_fieldname = 'METADATA-MASTER_LANGUAGE' CHANGING cs_dependency_rule = cs_dependency_rule ). clear_field( EXPORTING iv_fieldname = 'METADATA-RESPONSIBLE' CHANGING cs_dependency_rule = cs_dependency_rule ). clear_field( EXPORTING iv_fieldname = 'METADATA-PACKAGE_REF' CHANGING cs_dependency_rule = cs_dependency_rule ). clear_field( EXPORTING iv_fieldname = 'CONTENT-SOURCE' CHANGING cs_dependency_rule = cs_dependency_rule ). ENDMETHOD. METHOD constructor. super->constructor( is_item = is_item iv_language = iv_language ). mv_dependency_rule_key = ms_item-obj_name. TRY. CREATE DATA mr_dependency_rule TYPE ('CL_DRUL_WB_OBJECT_DATA=>TY_OBJECT_DATA'). CREATE OBJECT mi_persistence TYPE ('CL_DRUL_WB_OBJECT_PERSIST'). CATCH cx_sy_create_error. zcx_abapgit_exception=>raise( |DRUL not supported by your NW release| ). ENDTRY. ENDMETHOD. METHOD fill_metadata_from_db. DATA: li_wb_object_operator TYPE REF TO object, lr_dependency_rule_old TYPE REF TO data. FIELD-SYMBOLS: <ls_dependency_rule_old> TYPE any, <lv_created_at> TYPE xsddatetime_z, <lv_created_by> TYPE syuname, <lv_created_at_old> TYPE xsddatetime_z, <lv_created_by_old> TYPE syuname. li_wb_object_operator = get_wb_object_operator( ). CREATE DATA lr_dependency_rule_old TYPE ('CL_DRUL_WB_OBJECT_DATA=>TY_OBJECT_DATA'). ASSIGN lr_dependency_rule_old->* TO <ls_dependency_rule_old>. ASSERT sy-subrc = 0. CALL METHOD li_wb_object_operator->('IF_WB_OBJECT_OPERATOR~READ') IMPORTING data = <ls_dependency_rule_old>. ASSIGN COMPONENT 'METADATA-CREATED_BY' OF STRUCTURE cs_dependency_rule TO <lv_created_by>. ASSERT sy-subrc = 0. ASSIGN COMPONENT 'METADATA-CREATED_AT' OF STRUCTURE cs_dependency_rule TO <lv_created_at>. ASSERT sy-subrc = 0. ASSIGN COMPONENT 'METADATA-CREATED_BY' OF STRUCTURE <ls_dependency_rule_old> TO <lv_created_by_old>. ASSERT sy-subrc = 0. ASSIGN COMPONENT 'METADATA-CREATED_AT' OF STRUCTURE <ls_dependency_rule_old> TO <lv_created_at_old>. ASSERT sy-subrc = 0. <lv_created_at> = <lv_created_at_old>. <lv_created_by> = <lv_created_by_old>. ENDMETHOD. METHOD get_wb_object_operator. DATA: ls_object_type TYPE wbobjtype, lx_error TYPE REF TO cx_root. IF mi_wb_object_operator IS BOUND. ri_wb_object_operator = mi_wb_object_operator. ENDIF. ls_object_type-objtype_tr = 'DRUL'. ls_object_type-subtype_wb = 'DRL'. TRY. CALL METHOD ('CL_WB_OBJECT_OPERATOR')=>('CREATE_INSTANCE') EXPORTING object_type = ls_object_type object_key = mv_dependency_rule_key RECEIVING result = mi_wb_object_operator. CATCH cx_root INTO lx_error. zcx_abapgit_exception=>raise_with_text( lx_error ). ENDTRY. ri_wb_object_operator = mi_wb_object_operator. ENDMETHOD. METHOD zif_abapgit_object~changed_by. DATA: li_wb_object_operator TYPE REF TO object, li_object_data_model TYPE REF TO if_wb_object_data_model, lx_error TYPE REF TO cx_root. TRY. li_wb_object_operator = get_wb_object_operator( ). CALL METHOD li_object_data_model->('IF_WB_OBJECT_OPERATOR~READ') IMPORTING eo_object_data = li_object_data_model. rv_user = li_object_data_model->get_changed_by( ). CATCH cx_root INTO lx_error. zcx_abapgit_exception=>raise_with_text( lx_error ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lx_error TYPE REF TO cx_root, li_wb_object_operator TYPE REF TO object. li_wb_object_operator = get_wb_object_operator( ). TRY. CALL METHOD li_wb_object_operator->('IF_WB_OBJECT_OPERATOR~DELETE') EXPORTING transport_request = iv_transport. CATCH cx_root INTO lx_error. zcx_abapgit_exception=>raise_with_text( lx_error ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: li_object_data_model TYPE REF TO if_wb_object_data_model, li_wb_object_operator TYPE REF TO object, lx_error TYPE REF TO cx_root. FIELD-SYMBOLS: <ls_dependency_rule> TYPE any, <lv_source> TYPE data. ASSIGN mr_dependency_rule->* TO <ls_dependency_rule>. ASSERT sy-subrc = 0. io_xml->read( EXPORTING iv_name = 'DRUL' CHANGING cg_data = <ls_dependency_rule> ). li_wb_object_operator = get_wb_object_operator( ). TRY. CREATE OBJECT li_object_data_model TYPE ('CL_DRUL_WB_OBJECT_DATA'). ASSIGN COMPONENT 'CONTENT-SOURCE' OF STRUCTURE <ls_dependency_rule> TO <lv_source>. ASSERT sy-subrc = 0. <lv_source> = zif_abapgit_object~mo_files->read_string( 'asdrul' ). tadir_insert( iv_package ). IF zif_abapgit_object~exists( ) = abap_true. " We need to populate created_at, created_by, because otherwise update is not possible fill_metadata_from_db( CHANGING cs_dependency_rule = <ls_dependency_rule> ). li_object_data_model->set_data( <ls_dependency_rule> ). CALL METHOD li_wb_object_operator->('IF_WB_OBJECT_OPERATOR~UPDATE') EXPORTING io_object_data = li_object_data_model transport_request = iv_transport. ELSE. li_object_data_model->set_data( <ls_dependency_rule> ). CALL METHOD li_wb_object_operator->('IF_WB_OBJECT_OPERATOR~CREATE') EXPORTING io_object_data = li_object_data_model data_selection = 'P' " if_wb_object_data_selection_co=>c_properties package = iv_package transport_request = iv_transport. CALL METHOD li_wb_object_operator->('IF_WB_OBJECT_OPERATOR~UPDATE') EXPORTING io_object_data = li_object_data_model data_selection = 'D' " if_wb_object_data_selection_co=>c_data_content transport_request = iv_transport. ENDIF. CALL METHOD li_wb_object_operator->('IF_WB_OBJECT_OPERATOR~ACTIVATE'). corr_insert( iv_package ). CATCH cx_root INTO lx_error. zcx_abapgit_exception=>raise_with_text( lx_error ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~exists. TRY. mi_persistence->get( p_object_key = mv_dependency_rule_key p_version = 'A' p_existence_check_only = abap_true ). rv_bool = abap_true. CATCH cx_swb_exception. rv_bool = abap_false. ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-ddic TO rt_steps. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). rs_metadata-delete_tadir = abap_true. ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'ESWB_EO' iv_argument = |{ ms_item-obj_type }{ ms_item-obj_name }| ). ENDMETHOD. METHOD zif_abapgit_object~jump. " Covered by ZCL_ABAPGIT_OBJECTS=>JUMP ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: li_wb_object_operator TYPE REF TO object, li_object_data_model TYPE REF TO if_wb_object_data_model, lx_error TYPE REF TO cx_root, lv_source TYPE string. FIELD-SYMBOLS: <ls_dependency_rule> TYPE any, <lv_source> TYPE string. ASSIGN mr_dependency_rule->* TO <ls_dependency_rule>. ASSERT sy-subrc = 0. li_wb_object_operator = get_wb_object_operator( ). TRY. CALL METHOD li_wb_object_operator->('IF_WB_OBJECT_OPERATOR~READ') EXPORTING version = 'A' IMPORTING data = <ls_dependency_rule> eo_object_data = li_object_data_model. ASSIGN COMPONENT 'CONTENT-SOURCE' OF STRUCTURE <ls_dependency_rule> TO <lv_source>. ASSERT sy-subrc = 0. lv_source = <lv_source>. clear_fields( CHANGING cs_dependency_rule = <ls_dependency_rule> ). CATCH cx_root INTO lx_error. zcx_abapgit_exception=>raise_with_text( lx_error ). ENDTRY. io_xml->add( iv_name = 'DRUL' ig_data = <ls_dependency_rule> ). zif_abapgit_object~mo_files->add_string( iv_ext = 'asdrul' iv_string = lv_source ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 7109, 377, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 9186, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 41876, 7500, 292, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 1598, 62, 25747, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 45841, 1387, 62, 25135, 41876, 597, 11, 628, 220, 220, 220, 220, 220, 1598, 62, 3245, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3245, 3672, 220, 220, 220, 220, 220, 220, 41876, 269, 43167, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 45841, 1387, 62, 25135, 41876, 597, 11, 628, 220, 220, 220, 220, 220, 6070, 62, 38993, 62, 6738, 62, 9945, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 45841, 1387, 62, 25135, 41876, 597, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 628, 220, 220, 220, 220, 220, 651, 62, 39346, 62, 15252, 62, 46616, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 39346, 62, 15252, 62, 46616, 8, 41876, 4526, 37, 5390, 2134, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 285, 81, 62, 45841, 1387, 62, 25135, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1366, 11, 198, 220, 220, 220, 220, 220, 285, 85, 62, 45841, 1387, 62, 25135, 62, 2539, 41876, 384, 84, 62, 26801, 2539, 11, 198, 220, 220, 220, 220, 220, 21504, 62, 19276, 13274, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 39346, 62, 15252, 62, 19276, 396, 11, 198, 220, 220, 220, 220, 220, 21504, 62, 39346, 62, 15252, 62, 46616, 220, 41876, 4526, 37, 5390, 2134, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 7109, 377, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1598, 62, 3245, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 6780, 62, 8367, 29, 41876, 1366, 13, 628, 220, 220, 220, 24994, 16284, 24301, 1340, 3525, 21628, 62, 3245, 3672, 3963, 19269, 18415, 11335, 50115, 62, 45841, 1387, 62, 25135, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5390, 1279, 6780, 62, 8367, 28401, 198, 220, 220, 220, 24994, 17395, 827, 12, 7266, 6015, 796, 657, 13, 628, 220, 220, 220, 30301, 1503, 25, 1279, 6780, 62, 8367, 28401, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1598, 62, 25747, 13, 628, 220, 220, 220, 1598, 62, 3245, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3245, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 47123, 2885, 13563, 12, 43387, 11617, 62, 1404, 6, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 45841, 1387, 62, 25135, 796, 50115, 62, 45841, 1387, 62, 25135, 6739, 628, 220, 220, 220, 1598, 62, 3245, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3245, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 47123, 2885, 13563, 12, 43387, 11617, 62, 17513, 6, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 45841, 1387, 62, 25135, 796, 50115, 62, 45841, 1387, 62, 25135, 6739, 628, 220, 220, 220, 1598, 62, 3245, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3245, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 47123, 2885, 13563, 12, 3398, 15567, 1961, 62, 1404, 6, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 45841, 1387, 62, 25135, 796, 50115, 62, 45841, 1387, 62, 25135, 6739, 628, 220, 220, 220, 1598, 62, 3245, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3245, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 47123, 2885, 13563, 12, 3398, 15567, 1961, 62, 17513, 6, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 45841, 1387, 62, 25135, 796, 50115, 62, 45841, 1387, 62, 25135, 6739, 628, 220, 220, 220, 1598, 62, 3245, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
******************************************************************* * System-defined Include-files. * ******************************************************************* INCLUDE /DMO/LFLIGHT_TRAVEL_API24TOP. " Global Declarations INCLUDE /DMO/LFLIGHT_TRAVEL_API24UXX. " Function Modules ******************************************************************* * User-defined Include-files (if necessary). * ******************************************************************* * INCLUDE /DMO/LFLIGHT_TRAVEL_API24F... " Subroutines * INCLUDE /DMO/LFLIGHT_TRAVEL_API24O... " PBO-Modules * INCLUDE /DMO/LFLIGHT_TRAVEL_API24I... " PAI-Modules * INCLUDE /DMO/LFLIGHT_TRAVEL_API24E... " Events * INCLUDE /DMO/LFLIGHT_TRAVEL_API24P... " Local class implement.
[ 17174, 17174, 8162, 198, 9, 220, 220, 4482, 12, 23211, 40348, 12, 16624, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 17174, 17174, 8162, 198, 220, 3268, 5097, 52, 7206, 1220, 35, 11770, 14, 43, 3697, 9947, 62, 51, 3861, 18697, 62, 17614, 1731, 35222, 13, 220, 220, 220, 220, 220, 220, 220, 366, 8060, 16691, 24355, 198, 220, 3268, 5097, 52, 7206, 1220, 35, 11770, 14, 43, 3697, 9947, 62, 51, 3861, 18697, 62, 17614, 1731, 52, 8051, 13, 220, 220, 220, 220, 220, 220, 220, 366, 15553, 3401, 5028, 198, 198, 17174, 17174, 8162, 198, 9, 220, 220, 11787, 12, 23211, 40348, 12, 16624, 357, 361, 3306, 737, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 17174, 17174, 8162, 198, 9, 3268, 5097, 52, 7206, 1220, 35, 11770, 14, 43, 3697, 9947, 62, 51, 3861, 18697, 62, 17614, 1731, 37, 986, 220, 220, 220, 220, 220, 220, 220, 366, 3834, 81, 448, 1127, 198, 9, 3268, 5097, 52, 7206, 1220, 35, 11770, 14, 43, 3697, 9947, 62, 51, 3861, 18697, 62, 17614, 1731, 46, 986, 220, 220, 220, 220, 220, 220, 220, 366, 350, 8202, 12, 5841, 5028, 198, 9, 3268, 5097, 52, 7206, 1220, 35, 11770, 14, 43, 3697, 9947, 62, 51, 3861, 18697, 62, 17614, 1731, 40, 986, 220, 220, 220, 220, 220, 220, 220, 366, 8147, 40, 12, 5841, 5028, 198, 9, 3268, 5097, 52, 7206, 1220, 35, 11770, 14, 43, 3697, 9947, 62, 51, 3861, 18697, 62, 17614, 1731, 36, 986, 220, 220, 220, 220, 220, 220, 220, 366, 18715, 198, 9, 3268, 5097, 52, 7206, 1220, 35, 11770, 14, 43, 3697, 9947, 62, 51, 3861, 18697, 62, 17614, 1731, 47, 986, 220, 220, 220, 220, 220, 220, 220, 366, 10714, 1398, 3494, 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 ]
interface ZIF_ALV_TOOL_TRANSFORM_DATA public . interfaces IF_BADI_INTERFACE . methods GET_STRUCT_NAME changing !CH_NAME type STRING . methods TRANSFORM_DATA_ALV importing !IM_DATA type ANY !IM_OBJECT type ref to OBJECT changing !CH_DATA type ANY . endinterface.
[ 39994, 1168, 5064, 62, 1847, 53, 62, 10468, 3535, 62, 5446, 15037, 21389, 62, 26947, 198, 220, 1171, 764, 628, 198, 220, 20314, 16876, 62, 33, 2885, 40, 62, 41358, 49836, 764, 628, 220, 5050, 17151, 62, 46126, 62, 20608, 198, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 5145, 3398, 62, 20608, 2099, 19269, 2751, 764, 198, 220, 5050, 44069, 21389, 62, 26947, 62, 1847, 53, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 3955, 62, 26947, 2099, 15529, 198, 220, 220, 220, 220, 220, 5145, 3955, 62, 9864, 23680, 2099, 1006, 284, 25334, 23680, 198, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 5145, 3398, 62, 26947, 2099, 15529, 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 ]
CLASS lcl_buffer IMPLEMENTATION. METHOD get_switch. DATA: ls_switch LIKE LINE OF mt_switches. READ TABLE mt_switches INTO ls_switch WITH KEY code = iv_code. IF sy-subrc = 0. result = ls_switch-object. RETURN. ENDIF. result = initialize_switch( iv_code ). ENDMETHOD. METHOD initialize_switch. DATA: lv_text1 TYPE string, ls_switch LIKE LINE OF mt_switches, ls_switch_data TYPE zswi_switch, lo_switch TYPE REF TO zcl_swi_switch. SELECT SINGLE * INTO ls_switch_data FROM zswi_switch WHERE code = iv_code. IF sy-subrc <> 0. lv_text1 = iv_code. RAISE EXCEPTION TYPE zcx_swi_switch EXPORTING textid = zcx_swi_switch=>switch_not_exists text1 = lv_text1. ENDIF. CREATE OBJECT lo_switch. lo_switch->ms_switch_data = ls_switch_data. lo_switch->initialize_custom_det_class( ). result = lo_switch. ENDMETHOD. ENDCLASS.
[ 31631, 300, 565, 62, 22252, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 651, 62, 31943, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 43979, 62, 31943, 34178, 48920, 3963, 45079, 62, 2032, 9249, 13, 628, 220, 220, 220, 20832, 43679, 45079, 62, 2032, 9249, 39319, 43979, 62, 31943, 13315, 35374, 2438, 796, 21628, 62, 8189, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 220, 220, 1255, 796, 43979, 62, 31943, 12, 15252, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 1255, 796, 41216, 62, 31943, 7, 21628, 62, 8189, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 41216, 62, 31943, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 300, 85, 62, 5239, 16, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 43979, 62, 31943, 220, 220, 220, 220, 220, 34178, 48920, 3963, 45079, 62, 2032, 9249, 11, 198, 220, 220, 220, 220, 220, 43979, 62, 31943, 62, 7890, 41876, 1976, 2032, 72, 62, 31943, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 31943, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 2032, 72, 62, 31943, 13, 628, 220, 220, 220, 33493, 311, 2751, 2538, 1635, 198, 220, 220, 220, 220, 220, 39319, 43979, 62, 31943, 62, 7890, 198, 220, 220, 220, 220, 220, 16034, 1976, 2032, 72, 62, 31943, 198, 220, 220, 220, 220, 220, 33411, 2438, 796, 21628, 62, 8189, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 5239, 16, 796, 21628, 62, 8189, 13, 198, 220, 220, 220, 220, 220, 17926, 24352, 7788, 42006, 2849, 41876, 1976, 66, 87, 62, 2032, 72, 62, 31943, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 312, 796, 1976, 66, 87, 62, 2032, 72, 62, 31943, 14804, 31943, 62, 1662, 62, 1069, 1023, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 16, 220, 796, 300, 85, 62, 5239, 16, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 2376, 62, 31943, 13, 628, 220, 220, 220, 2376, 62, 31943, 3784, 907, 62, 31943, 62, 7890, 796, 43979, 62, 31943, 62, 7890, 13, 628, 220, 220, 220, 2376, 62, 31943, 3784, 36733, 1096, 62, 23144, 62, 15255, 62, 4871, 7, 6739, 628, 220, 220, 220, 1255, 796, 2376, 62, 31943, 13, 628, 220, 23578, 49273, 13, 628, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 zbp_i_rap_booking_mipo DEFINITION PUBLIC ABSTRACT FINAL FOR BEHAVIOR OF zi_rap_travel_mipo. ENDCLASS. CLASS ZBP_I_RAP_BOOKING_MIPO IMPLEMENTATION. ENDCLASS.
[ 31631, 1976, 46583, 62, 72, 62, 2416, 62, 2070, 278, 62, 76, 541, 78, 5550, 20032, 17941, 44731, 9564, 18601, 10659, 25261, 7473, 9348, 7801, 12861, 1581, 3963, 1976, 72, 62, 2416, 62, 35927, 62, 76, 541, 78, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 20866, 62, 40, 62, 49, 2969, 62, 39453, 2751, 62, 44, 4061, 46, 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 ]
CLASS y_check_magic_number DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC. PUBLIC SECTION. METHODS constructor. PROTECTED SECTION. METHODS inspect_tokens REDEFINITION. PRIVATE SECTION. METHODS is_magic_number RETURNING VALUE(result) TYPE abap_bool. METHODS is_index RETURNING VALUE(result) TYPE abap_bool. METHODS is_lines RETURNING VALUE(result) TYPE abap_bool. METHODS is_sy_in_case RETURNING VALUE(result) TYPE abap_bool. ENDCLASS. CLASS y_check_magic_number IMPLEMENTATION. METHOD constructor. super->constructor( ). settings-pseudo_comment = '"#EC CI_MAGIC' ##NO_TEXT. settings-disable_threshold_selection = abap_true. settings-threshold = 0. settings-apply_on_test_code = abap_false. settings-documentation = |{ c_docs_path-checks }magic-number.md|. set_check_message( 'Magic Number Violation - &1 is a Magic Number!' ). ENDMETHOD. METHOD inspect_tokens. DATA(keyword) = keyword( ). IF keyword <> if_kaizen_keywords_c=>gc_do AND keyword <> if_kaizen_keywords_c=>gc_if AND keyword <> if_kaizen_keywords_c=>gc_elseif AND keyword <> if_kaizen_keywords_c=>gc_when AND keyword <> if_kaizen_keywords_c=>gc_check. RETURN. ENDIF. IF keyword = if_kaizen_keywords_c=>gc_when AND is_sy_in_case( ) = abap_true. RETURN. ELSEIF next1( 'SY-SUBRC' ) IS NOT INITIAL OR next1( 'SY-TABIX' ) IS NOT INITIAL. RETURN. ENDIF. LOOP AT ref_scan->tokens INTO token_wa FROM statement-from TO statement-to. IF is_magic_number( ) = abap_false OR is_lines( ) = abap_true OR is_index( ) = abap_true. CONTINUE. ENDIF. DATA(check_configuration) = detect_check_configuration( statement ). raise_error( statement_level = statement-level statement_index = index statement_from = statement-from check_configuration = check_configuration parameter_01 = |{ token_wa-str }| ). ENDLOOP. ENDMETHOD. METHOD is_magic_number. DATA(string) = token_wa-str. REPLACE ALL OCCURRENCES OF |'| IN string WITH ||. result = xsdbool( string IS NOT INITIAL AND string CO '0123456789' AND string CN '0' AND string <> '1' AND string <> '0123456789' ). ENDMETHOD. METHOD is_index. DATA(current) = line_index( ref_scan->tokens[ table_line = token_wa ] ). DATA(last) = VALUE #( ref_scan->tokens[ current - 1 ] OPTIONAL ). DATA(next) = VALUE #( ref_scan->tokens[ current + 1 ] OPTIONAL ). result = xsdbool( last-str CA '[(' OR next-str CA '])' ). ENDMETHOD. METHOD is_lines. result = xsdbool( next1( 'LINES(' ) ). ENDMETHOD. METHOD is_sy_in_case. DATA(when_statement) = statement_wa. DATA(when_structure) = ref_scan->structures[ when_statement-struc ]. DATA(case_structure) = ref_scan->structures[ when_structure-back ]. DATA(case_statement) = ref_scan->statements[ case_structure-stmnt_from ]. DATA(case_target) = ref_scan->tokens[ case_statement-to ]. result = xsdbool( case_target-str = 'SY-SUBRC' OR case_target-str = 'SY-TABIX' ). ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9122, 62, 32707, 62, 17618, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 331, 62, 9122, 62, 8692, 29244, 6158, 44731, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 10104, 62, 83, 482, 641, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 318, 62, 32707, 62, 17618, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 13, 198, 220, 220, 220, 337, 36252, 50, 318, 62, 9630, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 13, 198, 220, 220, 220, 337, 36252, 50, 318, 62, 6615, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 13, 198, 220, 220, 220, 337, 36252, 50, 318, 62, 1837, 62, 259, 62, 7442, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 331, 62, 9122, 62, 32707, 62, 17618, 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, 14514, 62, 45820, 2149, 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, 39014, 62, 261, 62, 9288, 62, 8189, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 6460, 12, 22897, 341, 796, 930, 90, 269, 62, 31628, 62, 6978, 12, 42116, 1782, 32707, 12, 17618, 13, 9132, 91, 13, 628, 220, 220, 220, 900, 62, 9122, 62, 20500, 7, 705, 22975, 7913, 13085, 341, 532, 1222, 16, 318, 257, 6139, 7913, 13679, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 10104, 62, 83, 482, 641, 13, 198, 220, 220, 220, 42865, 7, 2539, 4775, 8, 796, 21179, 7, 6739, 628, 220, 220, 220, 16876, 21179, 1279, 29, 611, 62, 4914, 33977, 62, 2539, 10879, 62, 66, 14804, 36484, 62, 4598, 198, 220, 220, 220, 5357, 21179, 1279, 29, 611, 62, 4914, 33977, 62, 2539, 10879, 62, 66, 14804, 36484, 62, 361, 198, 220, 220, 220, 5357, 21179, 1279, 29, 611, 62, 4914, 33977, 62, 2539, 10879, 62, 66, 14804, 36484, 62, 17772, 361, 198, 220, 220, 220, 5357, 21179, 1279, 29, 611, 62, 4914, 33977, 62, 2539, 10879, 62, 66, 14804, 36484, 62, 12518, 198, 220, 220, 220, 5357, 21179, 1279, 29, 611, 62, 4914, 33977, 62, 2539, 10879, 62, 66, 14804, 36484, 62, 9122, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 16876, 21179, 796, 611, 62, 4914, 33977, 62, 2539, 10879, 62, 66, 14804, 36484, 62, 12518, 198, 220, 220, 220, 5357, 318, 62, 1837, 62, 259, 62, 7442, 7, 1267, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 17852, 5188, 5064, 1306, 16, 7, 705, 23060, 12, 50, 10526, 7397, 6, 1267, 3180, 5626, 3268, 2043, 12576, 198, 220, 220, 220, 6375, 1306, 16, 7, 705, 23060, 12, 5603, 3483, 55, 6, 1267, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 17579, 3185, 5161, 1006, 62, 35836, 3784, 83, 482, 641, 39319, 11241, 62, 10247, 198, 220, 220, 220, 16034, 2643, 12, 6738, 5390, 2643, 12, 1462, 13, 198, 220, 220, 220, 220, 220, 16876, 318, 62, 32707, 62, 17618, 7, 1267, 796, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 6375, 318, 62, 6615, 7, 1267, 796, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 6375, 318, 62, 9630, 7, 1267, 796, 450, 499, 62, 7942, 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, 42865, 7, 9122, 62, 11250, 3924, 8, 796, 4886, 62, 9122, 62, 11250, 3924, 7, 2643, 6739, 628, 220, 220, 220, 220, 220, 5298, 62, 18224, 7, 2643, 62, 5715, 796, 2643, 12, 5715, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 9630, 796, 6376, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 6738, 796, 2643, 12, 6738, 198, 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, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11507, 62, 486, 796, 930, 90, 11241, 62, 10247, 12, 2536, 1782, 91, 6739, 198, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 318, 62, 32707, 62, 17618, 13, 198, 220, 220, 220, 42865, 7, 8841, 8, 796, 11241, 62, 10247, 12, 2536, 13, 198, 220, 220, 220, 45285, 11598, 11096, 440, 4093, 31302, 24181, 1546, 3963, 930, 6, 91, 3268, 4731, 13315, 8614, 13, 628, 220, 220, 220, 1255, 796, 2124, 82, 9945, 970, 7, 4731, 3180, 5626, 3268, 2043, 12576, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 4731, 7375, 705, 486, 1954, 2231, 3134, 4531, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 4731, 31171, 705, 15, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 4731, 1279, 29, 705, 16, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_page_w_bookmark VALUE 5, go_back_to_bookmark VALUE 6, new_page_replacing VALUE 7, END OF c_event_state . CONSTANTS: BEGIN OF c_action, go_home TYPE string VALUE 'go_home', END OF c_action. INTERFACES zif_abapgit_gui_services. ALIASES: cache_asset FOR zif_abapgit_gui_services~cache_asset. METHODS go_home RAISING zcx_abapgit_exception. METHODS go_page IMPORTING io_page TYPE REF TO zif_abapgit_gui_renderable iv_clear_stack TYPE abap_bool DEFAULT abap_true RAISING zcx_abapgit_exception. METHODS back IMPORTING iv_to_bookmark TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rv_exit) TYPE abap_bool RAISING zcx_abapgit_exception. METHODS on_event FOR EVENT sapevent OF cl_gui_html_viewer IMPORTING action frame getdata postdata query_table. METHODS constructor IMPORTING io_component TYPE REF TO object OPTIONAL ii_asset_man TYPE REF TO zif_abapgit_gui_asset_manager OPTIONAL ii_html_processor TYPE REF TO zif_abapgit_gui_html_processor OPTIONAL RAISING zcx_abapgit_exception. METHODS free. PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_page_stack, page TYPE REF TO zif_abapgit_gui_renderable, bookmark TYPE abap_bool, END OF ty_page_stack. DATA: mi_cur_page TYPE REF TO zif_abapgit_gui_renderable, mt_stack TYPE STANDARD TABLE OF ty_page_stack, mi_router TYPE REF TO zif_abapgit_gui_event_handler, mi_asset_man TYPE REF TO zif_abapgit_gui_asset_manager, mi_html_processor TYPE REF TO zif_abapgit_gui_html_processor, mo_html_viewer TYPE REF TO cl_gui_html_viewer. METHODS startup RAISING zcx_abapgit_exception. METHODS cache_html IMPORTING iv_text TYPE string RETURNING VALUE(rv_url) TYPE w3url. METHODS render RAISING zcx_abapgit_exception. METHODS get_current_page_name RETURNING VALUE(rv_page_name) TYPE string. METHODS call_page IMPORTING ii_page TYPE REF TO zif_abapgit_gui_renderable iv_with_bookmark TYPE abap_bool DEFAULT abap_false iv_replacing TYPE abap_bool DEFAULT abap_false RAISING zcx_abapgit_exception. METHODS handle_action IMPORTING iv_action TYPE c iv_frame TYPE c OPTIONAL iv_getdata TYPE c OPTIONAL it_postdata TYPE cnht_post_data_tab OPTIONAL it_query_table TYPE cnht_query_table OPTIONAL. METHODS handle_error IMPORTING ix_exception TYPE REF TO zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_gui IMPLEMENTATION. METHOD back. DATA: lv_index TYPE i, ls_stack LIKE LINE OF mt_stack. lv_index = lines( mt_stack ). IF lv_index = 0. rv_exit = abap_true. RETURN. ENDIF. DO lv_index TIMES. READ TABLE mt_stack INDEX lv_index INTO ls_stack. ASSERT sy-subrc = 0. DELETE mt_stack INDEX lv_index. ASSERT sy-subrc = 0. lv_index = lv_index - 1. IF iv_to_bookmark = abap_false OR ls_stack-bookmark = abap_true. EXIT. ENDIF. ENDDO. mi_cur_page = ls_stack-page. " last page always stays render( ). ENDMETHOD. METHOD cache_html. rv_url = cache_asset( iv_text = iv_text iv_type = 'text' iv_subtype = 'html' ). ENDMETHOD. METHOD call_page. DATA: ls_stack TYPE ty_page_stack. IF iv_replacing = abap_false AND NOT mi_cur_page IS INITIAL. ls_stack-page = mi_cur_page. ls_stack-bookmark = iv_with_bookmark. APPEND ls_stack TO mt_stack. ENDIF. mi_cur_page = ii_page. render( ). ENDMETHOD. METHOD constructor. IF io_component IS BOUND. IF zcl_abapgit_gui_utils=>is_renderable( io_component ) = abap_true. mi_cur_page ?= io_component. " direct page ELSE. IF zcl_abapgit_gui_utils=>is_event_handler( io_component ) = abap_false. zcx_abapgit_exception=>raise( 'Component must be renderable or be an event handler' ). ENDIF. mi_router ?= io_component. ENDIF. ENDIF. mi_asset_man = ii_asset_man. mi_html_processor = ii_html_processor. " Maybe improve to middlewares stack ?? startup( ). ENDMETHOD. METHOD free. SET HANDLER me->on_event FOR mo_html_viewer ACTIVATION space. mo_html_viewer->close_document( ). mo_html_viewer->free( ). FREE mo_html_viewer. ENDMETHOD. METHOD get_current_page_name. IF mi_cur_page IS BOUND. rv_page_name = cl_abap_classdescr=>describe_by_object_ref( mi_cur_page )->get_relative_name( ). ENDIF." ELSE - return is empty => initial page ENDMETHOD. METHOD go_home. DATA ls_stack LIKE LINE OF mt_stack. IF mi_router IS BOUND. CLEAR mt_stack. on_event( action = |{ c_action-go_home }| ). " doesn't accept strings directly ELSE. IF lines( mt_stack ) > 0. READ TABLE mt_stack INTO ls_stack INDEX 1. mi_cur_page = ls_stack-page. ENDIF. render( ). ENDIF. ENDMETHOD. METHOD go_page. IF iv_clear_stack = abap_true. CLEAR mt_stack. ENDIF. mi_cur_page = io_page. render( ). ENDMETHOD. METHOD handle_action. DATA: lx_exception TYPE REF TO zcx_abapgit_exception, li_page_eh TYPE REF TO zif_abapgit_gui_event_handler, li_page TYPE REF TO zif_abapgit_gui_renderable, lv_state TYPE i. TRY. " Home must be processed by router if it presents IF ( iv_action <> c_action-go_home OR mi_router IS NOT BOUND ) AND mi_cur_page IS BOUND AND zcl_abapgit_gui_utils=>is_event_handler( mi_cur_page ) = abap_true. li_page_eh ?= mi_cur_page. li_page_eh->on_event( EXPORTING iv_action = iv_action iv_prev_page = get_current_page_name( ) iv_getdata = iv_getdata it_postdata = it_postdata IMPORTING ei_page = li_page ev_state = lv_state ). ENDIF. IF lv_state IS INITIAL AND mi_router IS BOUND. mi_router->on_event( EXPORTING iv_action = iv_action iv_prev_page = get_current_page_name( ) iv_getdata = iv_getdata it_postdata = it_postdata IMPORTING ei_page = li_page ev_state = lv_state ). ENDIF. CASE lv_state. WHEN c_event_state-re_render. render( ). WHEN c_event_state-new_page. call_page( li_page ). WHEN c_event_state-new_page_w_bookmark. call_page( ii_page = li_page iv_with_bookmark = abap_true ). WHEN c_event_state-new_page_replacing. call_page( ii_page = li_page iv_replacing = abap_true ). WHEN c_event_state-go_back. back( ). WHEN c_event_state-go_back_to_bookmark. back( abap_true ). WHEN c_event_state-no_more_act. " Do nothing, handling completed WHEN OTHERS. zcx_abapgit_exception=>raise( |Unknown action: { iv_action }| ). ENDCASE. CATCH zcx_abapgit_cancel ##NO_HANDLER. " Do nothing = gc_event_state-no_more_act CATCH zcx_abapgit_exception INTO lx_exception. ROLLBACK WORK. handle_error( lx_exception ). ENDTRY. ENDMETHOD. METHOD on_event. handle_action( iv_action = action iv_frame = frame iv_getdata = getdata it_postdata = postdata it_query_table = query_table ). ENDMETHOD. METHOD render. DATA: lv_url TYPE w3url, lv_html TYPE string, li_html TYPE REF TO zif_abapgit_html, lo_css_processor TYPE REF TO zcl_abapgit_gui_css_processor. IF mi_cur_page IS NOT BOUND. zcx_abapgit_exception=>raise( 'GUI error: no current page' ). ENDIF. li_html = mi_cur_page->render( ). lv_html = li_html->render( iv_no_indent_jscss = abap_true ). IF mi_html_processor IS BOUND. lv_html = mi_html_processor->process( iv_html = lv_html ii_gui_services = me ). ENDIF. lv_url = cache_html( lv_html ). mo_html_viewer->show_url( lv_url ). ENDMETHOD. METHOD startup. DATA: lt_events TYPE cntl_simple_events, ls_event LIKE LINE OF lt_events, lt_assets TYPE zif_abapgit_gui_asset_manager=>tt_web_assets. FIELD-SYMBOLS <ls_asset> LIKE LINE OF lt_assets. CREATE OBJECT mo_html_viewer EXPORTING query_table_disabled = abap_true parent = cl_gui_container=>screen0. IF mi_asset_man IS BOUND. lt_assets = mi_asset_man->get_all_assets( ). LOOP AT lt_assets ASSIGNING <ls_asset> WHERE is_cacheable = abap_true. cache_asset( iv_xdata = <ls_asset>-content iv_url = <ls_asset>-url iv_type = <ls_asset>-type iv_subtype = <ls_asset>-subtype ). ENDLOOP. ENDIF. ls_event-eventid = mo_html_viewer->m_id_sapevent. ls_event-appl_event = abap_true. APPEND ls_event TO lt_events. mo_html_viewer->set_registered_events( lt_events ). SET HANDLER me->on_event FOR mo_html_viewer. ENDMETHOD. METHOD cache_asset. DATA: lv_xstr TYPE xstring, lt_xdata TYPE lvc_t_mime, lv_size TYPE int4. ASSERT iv_text IS SUPPLIED OR iv_xdata IS SUPPLIED. IF iv_text IS SUPPLIED. " String input lv_xstr = zcl_abapgit_convert=>string_to_xstring( iv_text ). ELSE. " Raw input lv_xstr = iv_xdata. ENDIF. zcl_abapgit_convert=>xstring_to_bintab( EXPORTING iv_xstr = lv_xstr IMPORTING ev_size = lv_size et_bintab = lt_xdata ). mo_html_viewer->load_data( EXPORTING type = iv_type subtype = iv_subtype size = lv_size url = iv_url IMPORTING assigned_url = rv_url CHANGING data_table = lt_xdata EXCEPTIONS OTHERS = 1 ) ##NO_TEXT. ASSERT sy-subrc = 0. " Image data error ENDMETHOD. METHOD handle_error. DATA: li_gui_error_handler TYPE REF TO zif_abapgit_gui_error_handler, lx_exception TYPE REF TO cx_root. TRY. li_gui_error_handler ?= mi_cur_page. IF li_gui_error_handler->handle_error( ix_exception ) = abap_true. " We rerender the current page to display the error box render( ). ELSE. MESSAGE ix_exception TYPE 'S' DISPLAY LIKE 'E'. ENDIF. CATCH zcx_abapgit_exception cx_sy_move_cast_error INTO lx_exception. " In case of fire we just fallback to plain old message MESSAGE lx_exception TYPE 'S' DISPLAY LIKE 'E'. ENDTRY. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 15596, 62, 5219, 11, 198, 220, 220, 220, 220, 220, 220, 220, 407, 62, 38788, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 657, 11, 198, 220, 220, 220, 220, 220, 220, 220, 302, 62, 13287, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 649, 62, 7700, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 362, 11, 198, 220, 220, 220, 220, 220, 220, 220, 467, 62, 1891, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 513, 11, 198, 220, 220, 220, 220, 220, 220, 220, 645, 62, 3549, 62, 529, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 604, 11, 198, 220, 220, 220, 220, 220, 220, 220, 649, 62, 7700, 62, 86, 62, 2070, 4102, 26173, 8924, 642, 11, 198, 220, 220, 220, 220, 220, 220, 220, 467, 62, 1891, 62, 1462, 62, 2070, 4102, 26173, 8924, 718, 11, 198, 220, 220, 220, 220, 220, 220, 220, 649, 62, 7700, 62, 35666, 4092, 220, 26173, 8924, 767, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 15596, 62, 5219, 764, 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, 467, 62, 11195, 41876, 4731, 26173, 8924, 705, 2188, 62, 11195, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 2673, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 30416, 13, 198, 220, 220, 220, 8355, 43429, 1546, 25, 198, 220, 220, 220, 220, 220, 12940, 62, 562, 316, 7473, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 30416, 93, 23870, 62, 562, 316, 13, 628, 220, 220, 220, 337, 36252, 50, 467, 62, 11195, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 467, 62, 7700, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 7700, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 13287, 540, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 20063, 62, 25558, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 736, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 1462, 62, 2070, 4102, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 37023, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 319, 62, 15596, 7473, 49261, 473, 431, 1151, 3963, 537, 62, 48317, 62, 6494, 62, 1177, 263, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2223, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5739, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 651, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1281, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12405, 62, 11487, 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, 42895, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 2134, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 562, 316, 62, 805, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 562, 316, 62, 37153, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 6494, 62, 41341, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 6494, 62, 41341, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 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, 1479, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 7700, 62, 25558, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2443, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 13287, 540, 11, 198, 220, 220, 220, 220, 220, 220, 220, 44007, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 7700, 62, 25558, 13, 628, 220, 220, 220, 42865, 25, 21504, 62, 22019, 62, 7700, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 13287, 540, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45079, 62, 25558, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 1259, 62, 7700, 62, 25558, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21504, 62, 472, 353, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_abapgit_gui_page_db DEFINITION PUBLIC INHERITING FROM zcl_abapgit_gui_page FINAL CREATE PUBLIC . PUBLIC SECTION. METHODS constructor RAISING zcx_abapgit_exception. METHODS zif_abapgit_gui_event_handler~on_event REDEFINITION . PROTECTED SECTION. METHODS render_content REDEFINITION . PRIVATE SECTION. CONSTANTS: BEGIN OF c_action, delete TYPE string VALUE 'delete', backup TYPE string VALUE 'backup', restore TYPE string VALUE 'restore', END OF c_action . CLASS-METHODS backup RAISING zcx_abapgit_exception . CLASS-METHODS delete IMPORTING !is_key TYPE zif_abapgit_persistence=>ty_content RAISING zcx_abapgit_exception . CLASS-METHODS restore RAISING zcx_abapgit_exception . METHODS explain_content IMPORTING !is_data TYPE zif_abapgit_persistence=>ty_content RETURNING VALUE(rv_text) TYPE string RAISING zcx_abapgit_exception . METHODS build_menu RETURNING VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar . ENDCLASS. CLASS zcl_abapgit_gui_page_db IMPLEMENTATION. METHOD backup. DATA: lt_data TYPE zif_abapgit_persistence=>ty_contents, lo_zip TYPE REF TO cl_abap_zip, lv_zip TYPE xstring, lv_path TYPE string, lv_filename TYPE string, li_fe_serv TYPE REF TO zif_abapgit_frontend_services. FIELD-SYMBOLS: <ls_data> LIKE LINE OF lt_data. lt_data = zcl_abapgit_persistence_db=>get_instance( )->list( ). lo_zip = NEW #( ). LOOP AT lt_data ASSIGNING <ls_data>. CONCATENATE <ls_data>-type '_' <ls_data>-value '.xml' INTO lv_filename. lo_zip->add( name = lv_filename content = zcl_abapgit_convert=>string_to_xstring_utf8( <ls_data>-data_str ) ). ENDLOOP. lv_zip = lo_zip->save( ). CONCATENATE 'abapGit_Backup_' sy-datlo '_' sy-timlo INTO lv_filename. li_fe_serv = zcl_abapgit_ui_factory=>get_frontend_services( ). lv_path = li_fe_serv->show_file_save_dialog( iv_title = 'abapGit Backup' iv_extension = 'zip' iv_default_filename = lv_filename ). li_fe_serv->file_download( iv_path = lv_path iv_xstr = lv_zip ). MESSAGE 'abapGit Backup successfully saved' TYPE 'S'. ENDMETHOD. METHOD build_menu. ro_menu = NEW #( ). ro_menu->add( iv_txt = 'Backup' iv_act = c_action-backup ). ro_menu->add( iv_txt = 'Restore' iv_act = c_action-restore ). ENDMETHOD. METHOD constructor. super->constructor( ). ms_control-page_title = 'Database Utility'. ms_control-page_menu = build_menu( ). ENDMETHOD. METHOD delete. DATA: lv_answer TYPE c LENGTH 1. ASSERT is_key-type IS NOT INITIAL. lv_answer = zcl_abapgit_ui_factory=>get_popups( )->popup_to_confirm( iv_titlebar = 'Warning' iv_text_question = 'Delete?' iv_text_button_1 = 'Ok' iv_icon_button_1 = 'ICON_DELETE' iv_text_button_2 = 'Cancel' iv_icon_button_2 = 'ICON_CANCEL' iv_default_button = '2' iv_display_cancel_button = abap_false ). IF lv_answer = '2'. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ENDIF. zcl_abapgit_persistence_db=>get_instance( )->delete( iv_type = is_key-type iv_value = is_key-value ). COMMIT WORK. ENDMETHOD. METHOD explain_content. DATA: ls_result TYPE match_result, ls_match TYPE submatch_result, lv_cnt TYPE i. CASE is_data-type. WHEN zcl_abapgit_persistence_db=>c_type_repo. FIND FIRST OCCURRENCE OF REGEX '<url>(.*)</url>' IN is_data-data_str IGNORING CASE RESULTS ls_result. READ TABLE ls_result-submatches INTO ls_match INDEX 1. IF sy-subrc IS INITIAL. rv_text = is_data-data_str+ls_match-offset(ls_match-length). ENDIF. FIND FIRST OCCURRENCE OF REGEX '<OFFLINE/>' IN is_data-data_str IGNORING CASE MATCH COUNT lv_cnt. IF lv_cnt > 0. rv_text = |<strong>On-line</strong>, Name: <strong>{ zcl_abapgit_url=>name( rv_text ) }</strong>|. ELSE. rv_text = |Off-line, Name: <strong>{ rv_text }</strong>|. ENDIF. WHEN zcl_abapgit_persistence_db=>c_type_background. FIND FIRST OCCURRENCE OF REGEX '<method>(.*)</method>' IN is_data-data_str IGNORING CASE RESULTS ls_result. READ TABLE ls_result-submatches INTO ls_match INDEX 1. IF sy-subrc IS NOT INITIAL. RETURN. ENDIF. rv_text = |Method: { is_data-data_str+ls_match-offset(ls_match-length) }, | && |Repository: { zcl_abapgit_repo_srv=>get_instance( )->get( is_data-value )->get_name( ) }|. WHEN zcl_abapgit_persistence_db=>c_type_user. rv_text = |Personal Settings: <strong>{ zcl_abapgit_user_record=>get_instance( is_data-value )->get_name( ) }</strong>|. WHEN zcl_abapgit_persistence_db=>c_type_settings. rv_text = 'Global Settings'. WHEN zcl_abapgit_persistence_db=>c_type_packages. rv_text = 'Local Package Details'. WHEN OTHERS. IF strlen( is_data-data_str ) >= 250. rv_text = is_data-data_str(250). ELSE. rv_text = is_data-data_str. ENDIF. rv_text = escape( val = rv_text format = cl_abap_format=>e_html_attr ). rv_text = |<pre>{ rv_text }</pre>|. ENDCASE. ENDMETHOD. METHOD render_content. DATA: lt_data TYPE zif_abapgit_persistence=>ty_contents, lv_action TYPE string, lv_trclass TYPE string, lo_toolbar TYPE REF TO zcl_abapgit_html_toolbar. FIELD-SYMBOLS: <ls_data> LIKE LINE OF lt_data. lt_data = zcl_abapgit_persistence_db=>get_instance( )->list( ). ri_html = NEW zcl_abapgit_html( ). ri_html->add( '<div class="db_list">' ). ri_html->add( '<table class="db_tab">' ). " Header ri_html->add( '<thead>' ). ri_html->add( '<tr>' ). ri_html->add( '<th>Type</th>' ). ri_html->add( '<th>Key</th>' ). ri_html->add( '<th>Data</th>' ). ri_html->add( '<th></th>' ). ri_html->add( '</tr>' ). ri_html->add( '</thead>' ). ri_html->add( '<tbody>' ). " Lines LOOP AT lt_data ASSIGNING <ls_data>. CLEAR lv_trclass. IF sy-tabix = 1. lv_trclass = ' class="firstrow"'. ENDIF. lv_action = zcl_abapgit_html_action_utils=>dbkey_encode( <ls_data> ). lo_toolbar = NEW #( ). lo_toolbar->add( iv_txt = 'Display' iv_act = |{ zif_abapgit_definitions=>c_action-db_display }?{ lv_action }| ). lo_toolbar->add( iv_txt = 'Edit' iv_act = |{ zif_abapgit_definitions=>c_action-db_edit }?{ lv_action }| ). lo_toolbar->add( iv_txt = 'Delete' iv_act = |{ c_action-delete }?{ lv_action }| ). ri_html->add( |<tr{ lv_trclass }>| ). ri_html->add( |<td>{ <ls_data>-type }</td>| ). ri_html->add( |<td>{ <ls_data>-value }</td>| ). ri_html->add( |<td class="data">{ explain_content( <ls_data> ) }</td>| ). ri_html->add( '<td>' ). ri_html->add( lo_toolbar->render( ) ). ri_html->add( '</td>' ). ri_html->add( '</tr>' ). ENDLOOP. ri_html->add( '</tbody>' ). ri_html->add( '</table>' ). ri_html->add( '</div>' ). ENDMETHOD. METHOD restore. DATA: lv_answer TYPE c LENGTH 1, lo_zip TYPE REF TO cl_abap_zip, lv_zip TYPE xstring, lv_path TYPE string, lv_filename TYPE string, lv_data TYPE xstring, ls_data TYPE zif_abapgit_persistence=>ty_content, lt_data TYPE zif_abapgit_persistence=>ty_contents, lt_data_old TYPE zif_abapgit_persistence=>ty_contents, li_fe_serv TYPE REF TO zif_abapgit_frontend_services. FIELD-SYMBOLS: <ls_zipfile> LIKE LINE OF lo_zip->files. li_fe_serv = zcl_abapgit_ui_factory=>get_frontend_services( ). lv_path = li_fe_serv->show_file_open_dialog( iv_title = 'Restore abapGit Backup' iv_extension = 'zip' iv_default_filename = 'abapGit_Backup_*.zip' ). lv_zip = li_fe_serv->file_upload( lv_path ). lo_zip = NEW #( ). lo_zip->load( EXPORTING zip = lv_zip EXCEPTIONS zip_parse_error = 1 OTHERS = 2 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error loading ZIP file' ). ENDIF. LOOP AT lo_zip->files ASSIGNING <ls_zipfile>. CLEAR ls_data. lv_filename = <ls_zipfile>-name. REPLACE '.xml' IN lv_filename WITH ''. SPLIT lv_filename AT '_' INTO ls_data-type ls_data-value. " Validate DB key IF ls_data-type <> zcl_abapgit_persistence_db=>c_type_repo AND ls_data-type <> zcl_abapgit_persistence_db=>c_type_user AND ls_data-type <> zcl_abapgit_persistence_db=>c_type_settings AND ls_data-type <> zcl_abapgit_persistence_db=>c_type_background AND ls_data-type <> zcl_abapgit_persistence_db=>c_type_packages. zcx_abapgit_exception=>raise( |Invalid DB key. This is not an abapGit Backup| ). ENDIF. lo_zip->get( EXPORTING name = <ls_zipfile>-name IMPORTING content = lv_data EXCEPTIONS zip_index_error = 1 zip_decompression_error = 2 OTHERS = 3 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error getting file { <ls_zipfile>-name } from ZIP| ). ENDIF. ls_data-data_str = zcl_abapgit_convert=>xstring_to_string_utf8( lv_data ). INSERT ls_data INTO TABLE lt_data. ENDLOOP. lv_answer = zcl_abapgit_ui_factory=>get_popups( )->popup_to_confirm( iv_titlebar = 'Warning' iv_text_question = 'All existing repositories and settings will be deleted and overwritten! Continue?' iv_text_button_1 = 'Restore' iv_icon_button_1 = 'ICON_IMPORT' iv_text_button_2 = 'Cancel' iv_icon_button_2 = 'ICON_CANCEL' iv_default_button = '2' iv_display_cancel_button = abap_false ). IF lv_answer <> '1'. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ENDIF. lt_data_old = zcl_abapgit_persistence_db=>get_instance( )->list( ). LOOP AT lt_data_old INTO ls_data. zcl_abapgit_persistence_db=>get_instance( )->delete( iv_type = ls_data-type iv_value = ls_data-value ). ENDLOOP. COMMIT WORK AND WAIT. LOOP AT lt_data INTO ls_data. zcl_abapgit_persistence_db=>get_instance( )->add( iv_type = ls_data-type iv_value = ls_data-value iv_data = ls_data-data_str ). ENDLOOP. COMMIT WORK AND WAIT. MESSAGE 'abapGit Backup successfully restored' TYPE 'S'. ENDMETHOD. METHOD zif_abapgit_gui_event_handler~on_event. DATA ls_db TYPE zif_abapgit_persistence=>ty_content. DATA lo_query TYPE REF TO zcl_abapgit_string_map. lo_query = ii_event->query( ). CASE ii_event->mv_action. WHEN c_action-delete. lo_query->to_abap( CHANGING cs_container = ls_db ). delete( ls_db ). rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render. WHEN c_action-backup. backup( ). rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render. WHEN c_action-restore. restore( ). rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render. WHEN OTHERS. rs_handled = super->zif_abapgit_gui_event_handler~on_event( ii_event ). ENDCASE. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 9945, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 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, 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, 12233, 220, 41876, 4731, 26173, 8924, 705, 33678, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 11559, 220, 41876, 4731, 26173, 8924, 705, 1891, 929, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 11169, 41876, 4731, 26173, 8924, 705, 2118, 382, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 2673, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 11559, 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, 12233, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 2539, 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, 220, 220, 220, 42715, 12, 49273, 50, 11169, 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, 4727, 62, 11299, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 7890, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 11299, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 5239, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 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, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 9945, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 11559, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 300, 83, 62, 7890, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 3642, 658, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 13344, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 13344, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 13344, 220, 220, 220, 220, 220, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 6978, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 34345, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 7649, 62, 5036, 62, 3168, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 8534, 437, 62, 30416, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 7890, 29, 34178, 48920, 3963, 300, 83, 62, 7890, 13, 628, 220, 220, 220, 300, 83, 62, 7890, 796, 1976, 565, 62, 397, 499, 18300, 62, 19276, 13274, 62, 9945, 14804, 1136, 62, 39098, 7, 1267, 3784, 4868, 7, 6739, 628, 220, 220, 220, 2376, 62, 13344, 796, 12682, 1303, 7, 6739, 628, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 7890, 24994, 3528, 15871, 1279, 7278, 62, 7890, 28401, 198, 220, 220, 220, 220, 220, 39962, 1404, 1677, 6158, 1279, 7278, 62, 7890, 29, 12, 4906, 705, 62, 6, 1279, 7278, 62, 7890, 29, 12, 8367, 45302, 19875, 6, 39319, 300, 85, 62, 34345, 13, 198, 220, 220, 220, 220, 220, 2376, 62, 13344, 3784, 2860, 7, 1438, 220, 220, 220, 796, 300, 85, 62, 34345, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2695, 796, 1976, 565, 62, 397, 499, 18300, 62, 1102, 1851, 14804, 8841, 62, 1462, 62, 87, 8841, 62, 40477, 23, 7, 1279, 7278, 62, 7890, 29, 12, 7890, 62, 2536, 1267, 6739, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 220, 220, 300, 85, 62, 13344, 796, 2376, 62, 13344, 3784, 21928, 7, 6739, 628, 220, 220, 220, 39962, 1404, 1677, 6158, 705, 397, 499, 38, 270, 62, 7282, 929, 62, 6, 827, 12, 19608, 5439, 705, 62, 6, 827, 12, 16514, 5439, 39319, 300, 85, 62, 34345, 13, 628, 220, 220, 220, 7649, 62, 5036, 62, 3168, 796, 1976, 565, 62, 397, 499, 18300, 62, 9019, 62, 69, 9548, 14804, 1136, 62, 8534, 437, 62, 30416, 7, 6739, 628, 220, 220, 220, 300, 85, 62, 6978, 796, 7649, 62, 5036, 62, 3168, 3784, 12860, 62, 7753, 62, 21928, 62, 38969, 519, 7, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 zpof_gtt_ote_dl_item_tid. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" REFERENCE(I_APPSYS) TYPE /SAPTRX/APPLSYSTEM *" REFERENCE(I_APP_OBJ_TYPES) TYPE /SAPTRX/AOTYPES *" REFERENCE(I_ALL_APPL_TABLES) TYPE TRXAS_TABCONTAINER *" REFERENCE(I_APP_TYPE_CNTL_TABS) TYPE TRXAS_APPTYPE_TABS *" REFERENCE(I_APP_OBJECTS) TYPE TRXAS_APPOBJ_CTABS *" TABLES *" E_TRACKIDDATA STRUCTURE /SAPTRX/TRACK_ID_DATA *" E_LOGTABLE STRUCTURE BAPIRET2 OPTIONAL *" EXCEPTIONS *" PARAMETER_ERROR *" TID_DETERMINATION_ERROR *" TABLE_DETERMINATION_ERROR *" STOP_PROCESSING *"---------------------------------------------------------------------- DATA: lo_udm_message TYPE REF TO cx_udm_message, ls_bapiret TYPE bapiret2. TRY. lcl_ef_performer=>get_track_id_data( EXPORTING is_definition = VALUE #( maintab = lif_pof_constants=>cs_tabledef-dl_item_new mastertab = lif_pof_constants=>cs_tabledef-dl_header_new ) io_bo_factory = NEW lcl_factory_dl_item( ) iv_appsys = i_appsys is_app_obj_types = i_app_obj_types it_all_appl_tables = i_all_appl_tables it_app_type_cntl_tabs = i_app_type_cntl_tabs it_app_objects = i_app_objects IMPORTING et_track_id_data = e_trackiddata[] ). CATCH cx_udm_message INTO lo_udm_message. lcl_tools=>get_errors_log( EXPORTING io_umd_message = lo_udm_message iv_appsys = i_appsys IMPORTING es_bapiret = ls_bapiret ). " add error message APPEND ls_bapiret TO e_logtable. " throw corresponding exception CASE lo_udm_message->textid. WHEN lif_ef_constants=>cs_errors-stop_processing. RAISE stop_processing. WHEN lif_ef_constants=>cs_errors-table_determination. RAISE table_determination_error. ENDCASE. ENDTRY. ENDFUNCTION.
[ 42296, 4177, 2849, 1976, 79, 1659, 62, 70, 926, 62, 1258, 62, 25404, 62, 9186, 62, 83, 312, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 14565, 26491, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 2969, 3705, 16309, 8, 41876, 220, 1220, 50, 2969, 5446, 55, 14, 2969, 6489, 23060, 25361, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 24805, 62, 9864, 41, 62, 9936, 47, 1546, 8, 41876, 220, 1220, 50, 2969, 5446, 55, 14, 32, 2394, 48232, 1546, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 7036, 62, 2969, 6489, 62, 5603, 9148, 1546, 8, 41876, 220, 7579, 55, 1921, 62, 5603, 2749, 1340, 30339, 1137, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 24805, 62, 25216, 62, 34, 11251, 43, 62, 5603, 4462, 8, 41876, 220, 7579, 55, 1921, 62, 24805, 25216, 62, 5603, 4462, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 24805, 62, 9864, 41, 2943, 4694, 8, 41876, 220, 7579, 55, 1921, 62, 24805, 9864, 41, 62, 4177, 32, 4462, 198, 9, 1, 220, 309, 6242, 28378, 198, 9, 1, 220, 220, 220, 220, 220, 412, 62, 5446, 8120, 2389, 26947, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 5446, 8120, 62, 2389, 62, 26947, 198, 9, 1, 220, 220, 220, 220, 220, 412, 62, 25294, 38148, 19269, 18415, 11335, 220, 347, 17614, 26087, 17, 39852, 2849, 1847, 198, 9, 1, 220, 7788, 42006, 11053, 198, 9, 1, 220, 220, 220, 220, 220, 29463, 2390, 2767, 1137, 62, 24908, 198, 9, 1, 220, 220, 220, 220, 220, 309, 2389, 62, 35, 2767, 1137, 23678, 6234, 62, 24908, 198, 9, 1, 220, 220, 220, 220, 220, 43679, 62, 35, 2767, 1137, 23678, 6234, 62, 24908, 198, 9, 1, 220, 220, 220, 220, 220, 44934, 62, 4805, 4503, 7597, 2751, 198, 9, 1, 10097, 23031, 198, 220, 42865, 25, 2376, 62, 463, 76, 62, 20500, 220, 220, 220, 41876, 4526, 37, 5390, 43213, 62, 463, 76, 62, 20500, 11, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 65, 499, 557, 83, 220, 220, 220, 220, 220, 220, 220, 41876, 275, 499, 557, 83, 17, 13, 628, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 300, 565, 62, 891, 62, 525, 16354, 14804, 1136, 62, 11659, 62, 312, 62, 7890, 7, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 46758, 220, 220, 220, 220, 220, 220, 220, 220, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1388, 8658, 220, 220, 796, 3868, 62, 79, 1659, 62, 9979, 1187, 14804, 6359, 62, 83, 4510, 891, 12, 25404, 62, 9186, 62, 3605, 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, 4958, 8658, 796, 3868, 62, 79, 1659, 62, 9979, 1187, 14804, 6359, 62, 83, 4510, 891, 12, 25404, 62, 25677, 62, 3605, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 2127, 62, 69, 9548, 220, 220, 220, 220, 220, 220, 220, 220, 796, 12682, 300, 565, 62, 69, 9548, 62, 25404, 62, 9186, 7, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 1324, 17597, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1312, 62, 1324, 17597, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 1324, 62, 26801, 62, 19199, 220, 220, 220, 220, 220, 796, 1312, 62, 1324, 62, 26801, 62, 19199, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 439, 62, 1324, 75, 62, 83, 2977, 220, 220, 220, 796, 1312, 62, 439, 62, 1324, 75, 62, 83, 2977, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 1324, 62, 4906, 62, 66, 429, 75, 62, 8658, 82, 796, 1312, 62, 1324, 62, 4906, 62, 66, 429, 75, 62, 8658, 82, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 1324, 62, 48205, 220, 220, 220, 220, 220, 220, 220, 796, 1312, 62, 1324, 62, 48205, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2123, 62, 11659, 62, 312, 62, 7890, 220, 220, 220, 220, 220, 796, 304, 62, 11659, 1638, 1045, 21737, 198, 220, 220, 220, 220, 220, 6739, 628, 220, 220, 220, 327, 11417, 43213, 62, 463, 76, 62, 20500, 39319, 2376, 62, 463, 76, 62, 20500, 13, 198, 220, 220, 220, 220, 220, 300, 565, 62, 31391, 14804, 1136, 62, 48277, 62, 6404, 7, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 388, 67, 62, 20500, 796, 2376, 62, 463, 76, 62, 20500, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 1324, 17597, 220, 220, 220, 220, 220, 796, 1312, 62, 1324, 17597, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1658, 62, 65, 499, 557, 83, 220, 220, 220, 220, 796, 43979, 62, 65, 499, 557, 83, 6739, 628, 220, 220, 220, 220, 220, 366, 751, 4049, 3275, 198, 220, 220, 220, 220, 220, 43504, 10619, 43979, 62, 65, 499, 557, 83, 5390, 304, 62, 6404, 11487, 13, 628, 220, 220, 220, 220, 220, 366, 3714, 11188, 6631, 198, 220, 220, 220, 220, 220, 42001, 2376, 62, 463, 76, 62, 20500, 3784, 5239, 312, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42099, 3868, 62, 891, 62, 9979, 1187, 14804, 6359, 62, 48277, 12 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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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 ]
"! Log entry type enumeration CLASS zcl_alog_entry_type DEFINITION PUBLIC FINAL CREATE PRIVATE. PUBLIC SECTION. CLASS-METHODS: class_constructor, "! Get an entry type instance from message type "! @parameter iv_msgty | Message type "! @parameter ro_entry_type | Entry type instance "! @raising zcx_alog_unsupported_msgty | Unsupported message type from_msgty IMPORTING iv_msgty TYPE syst_msgty RETURNING VALUE(ro_entry_type) TYPE REF TO zcl_alog_entry_type RAISING zcx_alog_unsupported_msgty, "! Compare two log entry type priorities "! @parameter io_type_a | Entry type A "! @parameter io_type_b | Entry type B "! @parameter rv_result | <ul> "! <li>Less than 0 = priority A is lower than priority B</li> "! <li>Greater than 0 = priority A is higher than priority B</li> "! <li>Equal to 0 = priorities are identical</li> "! </ul> "! @raising zcx_alog_argument_null | io_type_a and io_type_b cannot be null compare_priority IMPORTING io_type_a TYPE REF TO zcl_alog_entry_type io_type_b TYPE REF TO zcl_alog_entry_type RETURNING VALUE(rv_result) TYPE i RAISING zcx_alog_argument_null. CLASS-DATA: go_info TYPE REF TO zcl_alog_entry_type READ-ONLY, go_warning TYPE REF TO zcl_alog_entry_type READ-ONLY, go_error TYPE REF TO zcl_alog_entry_type READ-ONLY, go_debug TYPE REF TO zcl_alog_entry_type READ-ONLY. METHODS: "! Compare priority of this instance to another one "! @parameter io_comparison | The entry type to compare this instance to "! @parameter rv_result | See <em>compare_priority</em> "! @raising zcx_alog_argument_null | io_comparison cannot be null compare_priority_to IMPORTING io_comparison TYPE REF TO zcl_alog_entry_type RETURNING VALUE(rv_result) TYPE i RAISING zcx_alog_argument_null. DATA: mv_message_type TYPE syst_msgty READ-ONLY, mv_description TYPE string READ-ONLY, mv_icon TYPE icon_d READ-ONLY, mv_bal_probclass TYPE balprobcl READ-ONLY, mv_priority TYPE i READ-ONLY. PROTECTED SECTION. PRIVATE SECTION. METHODS: constructor IMPORTING iv_message_type TYPE syst_msgty iv_description TYPE csequence iv_icon TYPE icon_d iv_bal_probclass TYPE balprobcl iv_priority TYPE i. ENDCLASS. CLASS zcl_alog_entry_type IMPLEMENTATION. METHOD class_constructor. DEFINE init. &1 = NEW #( iv_message_type = &2 iv_description = &3 iv_icon = &4 iv_bal_probclass = &5 iv_priority = &6 ). END-OF-DEFINITION. init: go_info 'I' 'INFO' icon_green_light '3' 1, go_warning 'W' 'WARNING' icon_yellow_light '2' 2, go_error 'E' 'ERROR' icon_red_light '1' 3, go_debug 'I' 'DEBUG' icon_information '4' 0. ENDMETHOD. METHOD constructor. mv_message_type = iv_message_type. mv_description = iv_description. mv_icon = iv_icon. mv_bal_probclass = iv_bal_probclass. mv_priority = iv_priority. ENDMETHOD. METHOD compare_priority_to. rv_result = compare_priority( io_type_a = me io_type_b = io_comparison ). ENDMETHOD. METHOD from_msgty. CASE iv_msgty. WHEN 'S' OR 'I'. ro_entry_type = go_info. WHEN 'E' OR 'X' OR 'A'. ro_entry_type = go_error. WHEN 'W'. ro_entry_type = go_warning. WHEN OTHERS. " Unsupported message type RAISE EXCEPTION TYPE zcx_alog_unsupported_msgty EXPORTING iv_msgty = iv_msgty. ENDCASE. ENDMETHOD. METHOD compare_priority. rv_result = io_type_a->mv_priority - io_type_b->mv_priority. ENDMETHOD. ENDCLASS.
[ 40484, 5972, 5726, 2099, 27056, 341, 198, 31631, 1976, 565, 62, 11794, 62, 13000, 62, 4906, 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, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 1398, 62, 41571, 273, 11, 198, 220, 220, 220, 220, 220, 366, 0, 3497, 281, 5726, 2099, 4554, 422, 3275, 2099, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 19662, 774, 930, 16000, 2099, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 686, 62, 13000, 62, 4906, 930, 21617, 2099, 4554, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 32741, 1976, 66, 87, 62, 11794, 62, 403, 15999, 62, 19662, 774, 930, 791, 15999, 3275, 2099, 198, 220, 220, 220, 220, 220, 422, 62, 19662, 774, 30023, 9863, 2751, 21628, 62, 19662, 774, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 827, 301, 62, 19662, 774, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 13000, 62, 4906, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 11794, 62, 13000, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 11794, 62, 403, 15999, 62, 19662, 774, 11, 198, 220, 220, 220, 220, 220, 366, 0, 27814, 734, 2604, 5726, 2099, 15369, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 33245, 62, 4906, 62, 64, 930, 21617, 2099, 317, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 33245, 62, 4906, 62, 65, 930, 21617, 2099, 347, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 374, 85, 62, 20274, 930, 1279, 377, 29, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 4528, 29, 22058, 621, 657, 796, 8475, 317, 318, 2793, 621, 8475, 347, 3556, 4528, 29, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 4528, 29, 13681, 263, 621, 657, 796, 8475, 317, 318, 2440, 621, 8475, 347, 3556, 4528, 29, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 4528, 29, 36, 13255, 284, 657, 796, 15369, 389, 10411, 3556, 4528, 29, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7359, 377, 29, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 32741, 1976, 66, 87, 62, 11794, 62, 49140, 62, 8423, 930, 33245, 62, 4906, 62, 64, 290, 33245, 62, 4906, 62, 65, 2314, 307, 9242, 198, 220, 220, 220, 220, 220, 8996, 62, 49336, 30023, 9863, 2751, 33245, 62, 4906, 62, 64, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 11794, 62, 13000, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 4906, 62, 65, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 11794, 62, 13000, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 20274, 8, 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, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 11794, 62, 49140, 62, 8423, 13, 198, 220, 220, 220, 42715, 12, 26947, 25, 198, 220, 220, 220, 220, 220, 467, 62, 10951, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 11794, 62, 13000, 62, 4906, 20832, 12, 1340, 11319, 11, 198, 220, 220, 220, 220, 220, 467, 62, 43917, 41876, 4526, 37, 5390, 1976, 565, 62, 11794, 62, 13000, 62, 4906, 20832, 12, 1340, 11319, 11, 198, 220, 220, 220, 220, 220, 467, 62, 18224, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 11794, 62, 13000, 62, 4906, 20832, 12, 1340, 11319, 11, 198, 220, 220, 220, 220, 220, 467, 62, 24442, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 11794, 62, 13000, 62, 4906, 20832, 12, 1340, 11319, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 366, 0, 27814, 8475, 286, 428, 4554, 284, 1194, 530, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 33245, 62, 785, 1845, 1653, 930, 383, 5726, 2099, 284, 8996, 428, 4554, 284, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 374, 85, 62, 20274, 930, 4091, 1279, 368, 29, 5589, 533, 62, 49336, 3556, 368, 29, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 32741, 1976, 66, 87, 62, 11794, 62, 49140, 62, 8423, 930, 33245, 62, 785, 1845, 1653, 2314, 307, 9242, 198, 220, 220, 220, 220, 220, 8996, 62, 49336, 62, 1462, 30023, 9863, 2751, 33245, 62, 785, 1845, 1653, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 11794, 62, 13000, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 20274, 8, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*&---------------------------------------------------------------------* *& Include ZDEMO_CALENDAR_CLASSES *&---------------------------------------------------------------------* *&---------------------------------------------------------------------* *& Class ZCL_DATE_CALCULATION *&---------------------------------------------------------------------* * Text *----------------------------------------------------------------------* CLASS zcl_date_calculation DEFINITION. PUBLIC SECTION. CLASS-METHODS: months_between_two_dates IMPORTING i_date_from TYPE datum i_date_to TYPE datum i_incl_to TYPE flag EXPORTING e_month TYPE i. ENDCLASS. "ZCL_DATE_CALCULATION *----------------------------------------------------------------------* * CLASS ZCL_DATE_CALCULATION IMPLEMENTATION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS zcl_date_calculation IMPLEMENTATION. METHOD months_between_two_dates. DATA: date_to TYPE datum. DATA: BEGIN OF datum_von, jjjj(4) TYPE n, mm(2) TYPE n, tt(2) TYPE n, END OF datum_von. DATA: BEGIN OF datum_bis, jjjj(4) TYPE n, mm(2) TYPE n, tt(2) TYPE n, END OF datum_bis. e_month = 0. CHECK i_date_from IS NOT INITIAL AND i_date_to IS NOT INITIAL. date_to = i_date_to. IF i_incl_to = abap_true. date_to = date_to + 1. ENDIF. datum_von = i_date_from. datum_bis = date_to. e_month = ( datum_bis-jjjj - datum_von-jjjj ) * 12 + ( datum_bis-mm - datum_von-mm ). ENDMETHOD. "MONTHS_BETWEEN_TWO_DATES ENDCLASS. "ZCL_DATE_CALCULATION IMPLEMENTATION *----------------------------------------------------------------------* * CLASS zcl_date_calculation_test DEFINITION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS zcl_date_calculation_test DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS . PRIVATE SECTION. METHODS: months_between_two_dates FOR TESTING. ENDCLASS. "zcl_date_calculation_test DEFINITION *----------------------------------------------------------------------* * CLASS zcl_date_calculation_test IMPLEMENTATION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS zcl_date_calculation_test IMPLEMENTATION. METHOD months_between_two_dates. DATA: date_from TYPE datum VALUE '20120101', date_to TYPE datum VALUE '20121231'. DATA: month TYPE i. zcl_date_calculation=>months_between_two_dates( EXPORTING i_date_from = date_from i_date_to = date_to i_incl_to = abap_true IMPORTING e_month = month ). cl_aunit_assert=>assert_equals( exp = 12 " Data Object with Expected Type act = month " Data Object with Current Value msg = 'Calculated date is wrong' " Message in Case of Error ). ENDMETHOD. "months_between_two_dates ENDCLASS. "zcl_date_calculation_test IMPLEMENTATION *----------------------------------------------------------------------* * CLASS zcl_helper DEFINITION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS zcl_helper DEFINITION. PUBLIC SECTION. CLASS-METHODS: load_image IMPORTING filename TYPE string RETURNING VALUE(r_image) TYPE xstring, add_calendar IMPORTING i_date_from TYPE datum i_date_to TYPE datum i_from_row TYPE zexcel_cell_row i_from_col TYPE zexcel_cell_column_alpha i_day_style TYPE zexcel_cell_style i_cw_style TYPE zexcel_cell_style CHANGING c_worksheet TYPE REF TO zcl_excel_worksheet RAISING zcx_excel, add_calendar_landscape IMPORTING i_date_from TYPE datum i_date_to TYPE datum i_from_row TYPE zexcel_cell_row i_from_col TYPE zexcel_cell_column_alpha i_day_style TYPE zexcel_cell_style i_cw_style TYPE zexcel_cell_style CHANGING c_worksheet TYPE REF TO zcl_excel_worksheet RAISING zcx_excel, add_a2x_footer IMPORTING i_from_row TYPE zexcel_cell_row i_from_col TYPE zexcel_cell_column_alpha CHANGING c_worksheet TYPE REF TO zcl_excel_worksheet RAISING zcx_excel, add_calender_week IMPORTING i_date TYPE datum i_row TYPE zexcel_cell_row i_col TYPE zexcel_cell_column_alpha i_style TYPE zexcel_cell_style CHANGING c_worksheet TYPE REF TO zcl_excel_worksheet RAISING zcx_excel. ENDCLASS. "zcl_helper DEFINITION *----------------------------------------------------------------------* * CLASS zcl_helper IMPLEMENTATION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS zcl_helper IMPLEMENTATION. METHOD load_image. "Load samle image DATA: lt_bin TYPE solix_tab, lv_len TYPE i. CALL METHOD cl_gui_frontend_services=>gui_upload EXPORTING filename = filename filetype = 'BIN' IMPORTING filelength = lv_len CHANGING data_tab = lt_bin EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 gui_refuse_filetransfer = 4 invalid_type = 5 no_authority = 6 unknown_error = 7 bad_data_format = 8 header_not_allowed = 9 separator_not_allowed = 10 header_too_long = 11 unknown_dp_error = 12 access_denied = 13 dp_out_of_memory = 14 disk_full = 15 dp_timeout = 16 not_supported_by_gui = 17 error_no_gui = 18 OTHERS = 19. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. CALL FUNCTION 'SCMS_BINARY_TO_XSTRING' EXPORTING input_length = lv_len IMPORTING buffer = r_image TABLES binary_tab = lt_bin EXCEPTIONS failed = 1 OTHERS = 2. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. ENDMETHOD. "load_image METHOD add_calendar. DATA: day_names TYPE TABLE OF t246. DATA: row TYPE zexcel_cell_row, row_max TYPE i, col_int TYPE zexcel_cell_column, col_max TYPE i, from_col_int TYPE zexcel_cell_column, col TYPE zexcel_cell_column_alpha, lo_column TYPE REF TO zcl_excel_column, lo_row TYPE REF TO zcl_excel_row. DATA: lv_date TYPE datum, value TYPE string, weekday TYPE wotnr, weekrow TYPE wotnr VALUE 1, day TYPE i, width TYPE f, height TYPE f. DATA: hyperlink TYPE REF TO zcl_excel_hyperlink. FIELD-SYMBOLS: <day_name> LIKE LINE OF day_names. lv_date = i_date_from. from_col_int = zcl_excel_common=>convert_column2int( i_from_col ). " Add description for Calendar Week c_worksheet->set_cell( EXPORTING ip_column = i_from_col " Cell Column ip_row = i_from_row " Cell Row ip_value = 'CW'(001) " Cell Value ip_style = i_cw_style ). " Add Days CALL FUNCTION 'DAY_NAMES_GET' TABLES day_names = day_names. LOOP AT day_names ASSIGNING <day_name>. row = i_from_row. col_int = from_col_int + <day_name>-wotnr. col = zcl_excel_common=>convert_column2alpha( col_int ). value = <day_name>-langt. c_worksheet->set_cell( EXPORTING ip_column = col " Cell Column ip_row = row " Cell Row ip_value = value " Cell Value ip_style = i_cw_style ). ENDLOOP. WHILE lv_date <= i_date_to. day = lv_date+6(2). CALL FUNCTION 'FIMA_X_DAY_IN_MONTH_COMPUTE' EXPORTING i_datum = lv_date IMPORTING e_wochentag_nr = weekday. row = i_from_row + weekrow. col_int = from_col_int + weekday. col = zcl_excel_common=>convert_column2alpha( col_int ). value = day. CONDENSE value. c_worksheet->set_cell( EXPORTING ip_column = col " Cell Column ip_row = row " Cell Row ip_value = value " Cell Value ip_style = i_day_style " Single-Character Indicator ). IF weekday = 7. " Add Calender Week zcl_helper=>add_calender_week( EXPORTING i_date = lv_date i_row = row i_col = i_from_col i_style = i_cw_style CHANGING c_worksheet = c_worksheet ). weekrow = weekrow + 1. ENDIF. lv_date = lv_date + 1. ENDWHILE. " Add Calender Week zcl_helper=>add_calender_week( EXPORTING i_date = lv_date i_row = row i_col = i_from_col i_style = i_cw_style CHANGING c_worksheet = c_worksheet ). " Add Created with abap2xlsx row = row + 2. zcl_helper=>add_a2x_footer( EXPORTING i_from_row = row i_from_col = i_from_col CHANGING c_worksheet = c_worksheet ). col_int = from_col_int. col_max = from_col_int + 7. WHILE col_int <= col_max. col = zcl_excel_common=>convert_column2alpha( col_int ). IF sy-index = 1. width = '5.0'. ELSE. width = '11.4'. ENDIF. lo_column = c_worksheet->get_column( col ). lo_column->set_width( width ). col_int = col_int + 1. ENDWHILE. row = i_from_row + 1. row_max = i_from_row + 6. WHILE row <= row_max. height = 50. lo_row = c_worksheet->get_row( row ). lo_row->set_row_height( height ). row = row + 1. ENDWHILE. ENDMETHOD. "add_calendar METHOD add_a2x_footer. DATA: value TYPE string, hyperlink TYPE REF TO zcl_excel_hyperlink. value = 'Created with abap2xlsx. Find more information at https://github.com/sapmentors/abap2xlsx.'(002). hyperlink = zcl_excel_hyperlink=>create_external_link( 'https://github.com/sapmentors/abap2xlsx' ). "#EC NOTEXT c_worksheet->set_cell( EXPORTING ip_column = i_from_col " Cell Column ip_row = i_from_row " Cell Row ip_value = value " Cell Value ip_hyperlink = hyperlink ). ENDMETHOD. "add_a2x_footer METHOD add_calendar_landscape. DATA: day_names TYPE TABLE OF t246. DATA: lv_date TYPE datum, day TYPE i, value TYPE string, weekday TYPE wotnr. DATA: row TYPE zexcel_cell_row, from_col_int TYPE zexcel_cell_column, col_int TYPE zexcel_cell_column, col TYPE zexcel_cell_column_alpha. DATA: lo_column TYPE REF TO zcl_excel_column, lo_row TYPE REF TO zcl_excel_row. FIELD-SYMBOLS: <day_name> LIKE LINE OF day_names. lv_date = i_date_from. " Add Days CALL FUNCTION 'DAY_NAMES_GET' TABLES day_names = day_names. WHILE lv_date <= i_date_to. day = lv_date+6(2). CALL FUNCTION 'FIMA_X_DAY_IN_MONTH_COMPUTE' EXPORTING i_datum = lv_date IMPORTING e_wochentag_nr = weekday. " Day name row row = i_from_row. col_int = from_col_int + day + 2. col = zcl_excel_common=>convert_column2alpha( col_int ). READ TABLE day_names ASSIGNING <day_name> WITH KEY wotnr = weekday. value = <day_name>-kurzt. c_worksheet->set_cell( EXPORTING ip_column = col " Cell Column ip_row = row " Cell Row ip_value = value " Cell Value ip_style = i_cw_style ). " Day row row = i_from_row + 1. value = day. CONDENSE value. c_worksheet->set_cell( EXPORTING ip_column = col " Cell Column ip_row = row " Cell Row ip_value = value " Cell Value ip_style = i_day_style " Single-Character Indicator ). " width lo_column = c_worksheet->get_column( col ). lo_column->set_width( '3.6' ). lv_date = lv_date + 1. ENDWHILE. " Add ABAP2XLSX Footer row = i_from_row + 2. c_worksheet->set_cell( EXPORTING ip_column = col " Cell Column ip_row = row " Cell Row ip_value = ' ' " Cell Value ). lo_row = c_worksheet->get_row( row ). lo_row->set_row_height( '5.0' ). row = i_from_row + 3. zcl_helper=>add_a2x_footer( EXPORTING i_from_row = row i_from_col = i_from_col CHANGING c_worksheet = c_worksheet ). " Set with for all 31 coulumns WHILE day < 32. day = day + 1. col_int = from_col_int + day + 2. col = zcl_excel_common=>convert_column2alpha( col_int ). " width lo_column = c_worksheet->get_column( col ). lo_column->set_width( '3.6' ). ENDWHILE. ENDMETHOD. "ADD_CALENDAR_LANDSCAPE METHOD add_calender_week. DATA: week TYPE kweek, week_int TYPE i, value TYPE string. " Add Calender Week CALL FUNCTION 'DATE_GET_WEEK' EXPORTING date = i_date " Date for which the week should be calculated IMPORTING week = week. " Week for date (format:YYYYWW) value = week+4(2). week_int = value. value = week_int. CONDENSE value. c_worksheet->set_cell( EXPORTING ip_column = i_col " Cell Column ip_row = i_row " Cell Row ip_value = value " Cell Value ip_style = i_style ). ENDMETHOD. "add_calender_week ENDCLASS. "zcl_helper IMPLEMENTATION
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1168, 39429, 46, 62, 34, 1847, 10619, 1503, 62, 31631, 1546, 198, 9, 5, 10097, 30934, 9, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 220, 220, 220, 220, 220, 5016, 1168, 5097, 62, 35, 6158, 62, 34, 1847, 34, 6239, 6234, 198, 9, 5, 10097, 30934, 9, 198, 9, 220, 220, 220, 220, 220, 220, 220, 8255, 198, 9, 10097, 23031, 9, 198, 31631, 1976, 565, 62, 4475, 62, 9948, 14902, 5550, 20032, 17941, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 1933, 62, 23395, 62, 11545, 62, 19581, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 4475, 62, 6738, 41876, 4818, 388, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 4475, 62, 1462, 220, 220, 41876, 4818, 388, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 259, 565, 62, 1462, 220, 220, 41876, 6056, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 304, 62, 8424, 220, 220, 220, 220, 41876, 1312, 13, 198, 10619, 31631, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 57, 5097, 62, 35, 6158, 62, 34, 1847, 34, 6239, 6234, 628, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 1168, 5097, 62, 35, 6158, 62, 34, 1847, 34, 6239, 6234, 30023, 2538, 10979, 6234, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 31631, 1976, 565, 62, 4475, 62, 9948, 14902, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 1933, 62, 23395, 62, 11545, 62, 19581, 13, 198, 220, 220, 220, 42865, 25, 3128, 62, 1462, 41876, 4818, 388, 13, 198, 220, 220, 220, 42865, 25, 347, 43312, 3963, 4818, 388, 62, 26982, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 41098, 73, 7, 19, 8, 41876, 299, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8085, 7, 17, 8, 220, 220, 41876, 299, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 83, 7, 17, 8, 220, 220, 41876, 299, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 4818, 388, 62, 26982, 13, 628, 220, 220, 220, 42865, 25, 347, 43312, 3963, 4818, 388, 62, 41907, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 474, 41098, 73, 7, 19, 8, 41876, 299, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8085, 7, 17, 8, 220, 220, 41876, 299, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 83, 7, 17, 8, 220, 220, 41876, 299, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 4818, 388, 62, 41907, 13, 628, 220, 220, 220, 304, 62, 8424, 796, 657, 13, 628, 220, 220, 220, 5870, 25171, 1312, 62, 4475, 62, 6738, 3180, 5626, 3268, 2043, 12576, 5357, 1312, 62, 4475, 62, 1462, 3180, 5626, 3268, 2043, 12576, 13, 628, 220, 220, 220, 3128, 62, 1462, 796, 1312, 62, 4475, 62, 1462, 13, 198, 220, 220, 220, 16876, 1312, 62, 259, 565, 62, 1462, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 3128, 62, 1462, 796, 3128, 62, 1462, 1343, 352, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 4818, 388, 62, 26982, 796, 1312, 62, 4475, 62, 6738, 13, 198, 220, 220, 220, 4818, 388, 62, 41907, 796, 3128, 62, 1462, 13, 628, 220, 220, 220, 304, 62, 8424, 220, 220, 796, 220, 220, 357, 4818, 388, 62, 41907, 12, 41098, 41098, 532, 4818, 388, 62, 26982, 12, 41098, 41098, 1267, 1635, 1105, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1343, 357, 4818, 388, 62, 41907, 12, 3020, 220, 220, 532, 4818, 388, 62, 26982, 12, 3020, 220, 220, 6739, 198, 220, 23578, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 27857, 4221, 50, 62, 33, 2767, 8845, 1677, 62, 34551, 46, 62, 35, 29462, 198, 10619, 31631, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 57, 5097, 62, 35, 6158, 62, 34, 1847, 34, 6239, 6234, 30023, 2538, 10979, 6234, 198, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 1976, 565, 62, 4475, 62, 9948, 14902, 62, 9288, 5550, 20032, 17941, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 31631, 1976, 565, 62, 4475, 62, 9948, 14902, 62, 9288, 5550, 20032, 17941, 7473, 43001, 2751, 198, 220, 220, 220, 360, 4261, 6234, 6006, 9863, 198, 220, 220, 220, 45698, 42, 49277, 43638, 5805, 7597, 198, 220, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 1933, 62, 23395, 62, 11545, 62, 19581, 7473, 43001, 2751, 13, 198, 10619, 31631, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 89, 565, 62, 4475, 62, 9948, 14902, 62, 9288, 5550, 20032, 17941, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 1976, 565, 62, 4475, 62, 9948, 14902, 62, 9288, 30023, 2538, 10979, 6234, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 31631, 1976, 565, 62, 4475, 62, 9948, 14902, 62, 9288, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 1933, 62, 23395, 62, 11545, 62, 19581, 13, 628, 220, 220, 220, 42865, 25, 3128, 62, 6738, 41876, 4818, 388, 26173, 8924, 705, 1264, 1264, 486, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3128, 62, 1462, 220, 220, 41876, 4818, 388 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
INTERFACE zif_app_constants PUBLIC. CONSTANTS: mc_function_group TYPE syrepid VALUE 'SAPLZAPP_GUI'. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 1324, 62, 9979, 1187, 198, 220, 44731, 13, 628, 220, 7102, 2257, 1565, 4694, 25, 36650, 62, 8818, 62, 8094, 41876, 827, 7856, 312, 26173, 8924, 705, 50, 2969, 43, 57, 24805, 62, 40156, 4458, 198, 198, 10619, 41358, 49836, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_advent2020_day16_gw DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_advent2020_gw . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_advent2020_day16_gw IMPLEMENTATION. METHOD zif_advent2020_gw~solve. output = 'todo'. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 324, 1151, 42334, 62, 820, 1433, 62, 70, 86, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 324, 1151, 42334, 62, 70, 86, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 324, 1151, 42334, 62, 820, 1433, 62, 70, 86, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 324, 1151, 42334, 62, 70, 86, 93, 82, 6442, 13, 628, 220, 220, 220, 5072, 796, 705, 83, 24313, 4458, 628, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_aoc_parser DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. TYPE-POOLS abap . CLASS zcl_aoc_parser DEFINITION LOAD . TYPES: BEGIN OF ty_token, statement TYPE i, id TYPE i, parent TYPE i, type TYPE c LENGTH 1, value TYPE string, code TYPE string, rulename TYPE string, END OF ty_token . TYPES: ty_tokens_tt TYPE STANDARD TABLE OF ty_token WITH NON-UNIQUE DEFAULT KEY . TYPES: BEGIN OF ty_result, match TYPE abap_bool, tokens TYPE ty_tokens_tt, END OF ty_result . CONSTANTS: BEGIN OF c_type, role TYPE c VALUE 'R' ##NO_TEXT, terminal TYPE c VALUE 'T' ##NO_TEXT, nonterminal TYPE c VALUE 'N' ##NO_TEXT, END OF c_type . CONSTANTS: BEGIN OF c_role, fielddefid TYPE string VALUE 'FieldDefId' ##NO_TEXT, fieldid TYPE string VALUE 'FieldId' ##NO_TEXT, formid TYPE string VALUE 'FormId' ##NO_TEXT, formdefid TYPE string VALUE 'FormDefId' ##NO_TEXT, classexctypeid TYPE string VALUE 'ClassexcTypeId' ##NO_TEXT, typeid TYPE string VALUE 'TypeId' ##NO_TEXT, END OF c_role . CLASS-METHODS run IMPORTING !it_code TYPE string_table !iv_debug TYPE abap_bool DEFAULT abap_false !iv_rule TYPE string DEFAULT 'START' !iv_allow_obsolete TYPE abap_bool DEFAULT abap_true RETURNING VALUE(rs_result) TYPE ty_result. PROTECTED SECTION. TYPES: ty_syntax_tt TYPE STANDARD TABLE OF ssyntaxstructure. CONSTANTS: gc_dummy TYPE zcl_aoc_parser_node=>ty_node_type VALUE 'D', gc_start TYPE zcl_aoc_parser_node=>ty_node_type VALUE 'S', gc_end TYPE zcl_aoc_parser_node=>ty_node_type VALUE 'E', gc_role TYPE zcl_aoc_parser_node=>ty_node_type VALUE 'R', gc_terminal TYPE zcl_aoc_parser_node=>ty_node_type VALUE 'T', gc_nonterminal TYPE zcl_aoc_parser_node=>ty_node_type VALUE 'N'. CLASS-METHODS download IMPORTING !iv_filename TYPE string !iv_data TYPE string. CLASS-METHODS parents CHANGING !ct_tokens TYPE ty_tokens_tt. CLASS-METHODS xml_fix CHANGING !cv_xml TYPE string. CLASS-METHODS build_permutation IMPORTING !ii_rule TYPE REF TO if_ixml_node !iv_rulename TYPE string !io_before TYPE REF TO zcl_aoc_parser_node !io_after TYPE REF TO zcl_aoc_parser_node. CLASS-METHODS build_optionlist IMPORTING !ii_rule TYPE REF TO if_ixml_node !iv_rulename TYPE string !io_before TYPE REF TO zcl_aoc_parser_node !io_after TYPE REF TO zcl_aoc_parser_node. CLASS-METHODS build_option IMPORTING !ii_rule TYPE REF TO if_ixml_node !iv_rulename TYPE string !io_before TYPE REF TO zcl_aoc_parser_node !io_after TYPE REF TO zcl_aoc_parser_node. CLASS-METHODS build_nonterminal IMPORTING !ii_rule TYPE REF TO if_ixml_node !iv_rulename TYPE string !io_before TYPE REF TO zcl_aoc_parser_node !io_after TYPE REF TO zcl_aoc_parser_node. CLASS-METHODS build_iteration IMPORTING !ii_rule TYPE REF TO if_ixml_node !iv_rulename TYPE string !io_before TYPE REF TO zcl_aoc_parser_node !io_after TYPE REF TO zcl_aoc_parser_node. CLASS-METHODS build_alternative IMPORTING !ii_rule TYPE REF TO if_ixml_node !iv_rulename TYPE string !io_before TYPE REF TO zcl_aoc_parser_node !io_after TYPE REF TO zcl_aoc_parser_node. CLASS-METHODS build IMPORTING !ii_rule TYPE REF TO if_ixml_node !iv_rulename TYPE string !io_before TYPE REF TO zcl_aoc_parser_node !io_after TYPE REF TO zcl_aoc_parser_node. CLASS-METHODS graph_build IMPORTING !iv_rulename TYPE string EXPORTING !eo_start TYPE REF TO zcl_aoc_parser_node !eo_end TYPE REF TO zcl_aoc_parser_node. CLASS-METHODS graph_download IMPORTING !iv_rulename TYPE string !io_start TYPE REF TO zcl_aoc_parser_node. CLASS-METHODS graph_to_text IMPORTING !io_node TYPE REF TO zcl_aoc_parser_node RETURNING VALUE(rv_text) TYPE string . CLASS-METHODS walk IMPORTING !io_node TYPE REF TO zcl_aoc_parser_node !iv_index TYPE i RETURNING VALUE(rs_result) TYPE ty_result. CLASS-METHODS xml_download IMPORTING !iv_rulename TYPE string !ii_xml TYPE REF TO if_ixml !ii_xml_doc TYPE REF TO if_ixml_document. CLASS-METHODS build_role IMPORTING !ii_rule TYPE REF TO if_ixml_node !iv_rulename TYPE string !io_before TYPE REF TO zcl_aoc_parser_node !io_after TYPE REF TO zcl_aoc_parser_node. CLASS-METHODS build_sequence IMPORTING !ii_rule TYPE REF TO if_ixml_node !iv_rulename TYPE string !io_before TYPE REF TO zcl_aoc_parser_node !io_after TYPE REF TO zcl_aoc_parser_node. CLASS-METHODS build_terminal IMPORTING !ii_rule TYPE REF TO if_ixml_node !iv_rulename TYPE string !io_before TYPE REF TO zcl_aoc_parser_node !io_after TYPE REF TO zcl_aoc_parser_node. CLASS-METHODS walk_terminal IMPORTING !io_node TYPE REF TO zcl_aoc_parser_node !iv_index TYPE i RETURNING VALUE(rs_result) TYPE ty_result. CLASS-METHODS walk_role IMPORTING !io_node TYPE REF TO zcl_aoc_parser_node !iv_index TYPE i RETURNING VALUE(rs_result) TYPE ty_result. CLASS-METHODS walk_nonterminal IMPORTING !io_node TYPE REF TO zcl_aoc_parser_node !iv_index TYPE i RETURNING VALUE(rs_result) TYPE ty_result. CLASS-METHODS walk_node IMPORTING !io_node TYPE REF TO zcl_aoc_parser_node !iv_index TYPE i RETURNING VALUE(rs_result) TYPE ty_result. CLASS-METHODS walk_end IMPORTING !io_node TYPE REF TO zcl_aoc_parser_node !iv_index TYPE i RETURNING VALUE(rs_result) TYPE ty_result. CLASS-METHODS xml_get IMPORTING !iv_rulename TYPE string RETURNING VALUE(ri_rule) TYPE REF TO if_ixml_node. CLASS-METHODS xml_parse IMPORTING !iv_rulename TYPE string !iv_xml TYPE string RETURNING VALUE(ri_rule) TYPE REF TO if_ixml_node. CLASS-METHODS parse IMPORTING !it_tokens TYPE stokesx_tab !it_statements TYPE sstmnt_tab RETURNING VALUE(rs_result) TYPE ty_result. PRIVATE SECTION. TYPES: BEGIN OF ty_cache, rulename TYPE string, node TYPE REF TO if_ixml_node, END OF ty_cache. CLASS-DATA gt_cache TYPE SORTED TABLE OF ty_cache WITH UNIQUE KEY rulename. CLASS-DATA gt_syntax TYPE ty_syntax_tt. CLASS-DATA gt_tokens TYPE string_table. CLASS-DATA gv_end_rule TYPE string. CLASS-DATA gv_debug TYPE abap_bool. CLASS-DATA gv_allow_obsolete TYPE abap_bool. ENDCLASS. CLASS zcl_aoc_parser IMPLEMENTATION. METHOD build. DATA: lv_name TYPE string. IF NOT ii_rule IS BOUND. io_before->edge( io_after ). RETURN. ENDIF. lv_name = ii_rule->get_name( ). * todo, change input to structure instead? CASE lv_name. WHEN 'Sequence'. build_sequence( ii_rule = ii_rule iv_rulename = iv_rulename io_before = io_before io_after = io_after ). WHEN 'Alternative'. build_alternative( ii_rule = ii_rule iv_rulename = iv_rulename io_before = io_before io_after = io_after ). WHEN 'Nonterminal'. build_nonterminal( ii_rule = ii_rule iv_rulename = iv_rulename io_before = io_before io_after = io_after ). WHEN 'Terminal'. build_terminal( ii_rule = ii_rule iv_rulename = iv_rulename io_before = io_before io_after = io_after ). WHEN 'Role'. build_role( ii_rule = ii_rule iv_rulename = iv_rulename io_before = io_before io_after = io_after ). WHEN 'Option'. build_option( ii_rule = ii_rule iv_rulename = iv_rulename io_before = io_before io_after = io_after ). WHEN 'Permutation'. build_permutation( ii_rule = ii_rule iv_rulename = iv_rulename io_before = io_before io_after = io_after ). WHEN 'Iteration'. build_iteration( ii_rule = ii_rule iv_rulename = iv_rulename io_before = io_before io_after = io_after ). WHEN 'Optionlist'. build_optionlist( ii_rule = ii_rule iv_rulename = iv_rulename io_before = io_before io_after = io_after ). ENDCASE. ENDMETHOD. METHOD build_alternative. DATA: li_children TYPE REF TO if_ixml_node_list, lo_dummy TYPE REF TO zcl_aoc_parser_node, li_child TYPE REF TO if_ixml_node. CREATE OBJECT lo_dummy EXPORTING iv_type = gc_dummy iv_value = 'Alternative' iv_rulename = iv_rulename. "#EC NOTEXT li_children = ii_rule->get_children( ). io_before->edge( lo_dummy ). DO li_children->get_length( ) TIMES. li_child = li_children->get_item( sy-index - 1 ). li_child = li_child->get_first_child( ). " get rid of <Alt> tag build( ii_rule = li_child iv_rulename = iv_rulename io_before = lo_dummy io_after = io_after ). ENDDO. ENDMETHOD. METHOD build_iteration. DATA: li_child TYPE REF TO if_ixml_node, lo_dummy1 TYPE REF TO zcl_aoc_parser_node, lo_dummy2 TYPE REF TO zcl_aoc_parser_node. li_child = ii_rule->get_first_child( ). CREATE OBJECT lo_dummy1 EXPORTING iv_type = gc_dummy iv_value = 'IterationStart' iv_rulename = iv_rulename. "#EC NOTEXT CREATE OBJECT lo_dummy2 EXPORTING iv_type = gc_dummy iv_value = 'IterationEnd' iv_rulename = iv_rulename. "#EC NOTEXT io_before->edge( lo_dummy1 ). lo_dummy2->edge( io_after ). lo_dummy2->edge( lo_dummy1 ). build( ii_rule = li_child iv_rulename = iv_rulename io_before = lo_dummy1 io_after = lo_dummy2 ). ENDMETHOD. METHOD build_nonterminal. DATA: lv_rulename TYPE string, lo_node TYPE REF TO zcl_aoc_parser_node. lv_rulename = ii_rule->get_value( ). CREATE OBJECT lo_node EXPORTING iv_type = gc_nonterminal iv_value = lv_rulename iv_rulename = iv_rulename. io_before->edge( lo_node ). lo_node->edge( io_after ). ENDMETHOD. METHOD build_option. DATA: li_child TYPE REF TO if_ixml_node, lo_dummy TYPE REF TO zcl_aoc_parser_node. CREATE OBJECT lo_dummy EXPORTING iv_type = gc_dummy iv_value = 'Option' iv_rulename = iv_rulename. "#EC NOTEXT li_child = ii_rule->get_first_child( ). io_before->edge( lo_dummy ). build( ii_rule = li_child iv_rulename = iv_rulename io_before = lo_dummy io_after = io_after ). * easy way should be the last option/edge lo_dummy->edge( io_after ). ENDMETHOD. METHOD build_optionlist. DATA: li_children TYPE REF TO if_ixml_node_list, li_append TYPE REF TO if_ixml_node_list, li_child TYPE REF TO if_ixml_node, lv_last TYPE abap_bool, lo_before TYPE REF TO zcl_aoc_parser_node, lo_after TYPE REF TO zcl_aoc_parser_node, lo_seq_before TYPE REF TO zcl_aoc_parser_node, lo_seq_after TYPE REF TO zcl_aoc_parser_node, lt_opt TYPE TABLE OF REF TO if_ixml_node_list, li_opt LIKE LINE OF lt_opt. li_children = ii_rule->get_children( ). DO li_children->get_length( ) TIMES. li_child = li_children->get_item( sy-index - 1 ). li_append = li_child->get_children( ). " get rid of <Opt> tag APPEND li_append TO lt_opt. ENDDO. lo_before = io_before. LOOP AT lt_opt INTO li_opt. IF sy-tabix = lines( lt_opt ). lo_after = io_after. ELSE. CREATE OBJECT lo_after EXPORTING iv_type = gc_dummy iv_value = 'Optionlist' iv_rulename = iv_rulename. "#EC NOTEXT ENDIF. lo_before->edge( lo_after ). lv_last = abap_false. lo_seq_before = lo_before. DO li_opt->get_length( ) TIMES. IF li_opt->get_length( ) = sy-index. lv_last = abap_true. ENDIF. CREATE OBJECT lo_seq_after EXPORTING iv_type = gc_dummy iv_value = 'Optionlist Seq' iv_rulename = iv_rulename. "#EC NOTEXT li_child = li_opt->get_item( sy-index - 1 ). build( ii_rule = li_child iv_rulename = iv_rulename io_before = lo_seq_before io_after = lo_seq_after ). IF lv_last = abap_true. lo_seq_after->edge( lo_after ). ELSE. lo_seq_before = lo_seq_after. ENDIF. ENDDO. lo_before = lo_after. ENDLOOP. ENDMETHOD. METHOD build_permutation. TYPES: BEGIN OF ty_pair, before TYPE REF TO zcl_aoc_parser_node, after TYPE REF TO zcl_aoc_parser_node, END OF ty_pair. DATA: li_append TYPE REF TO if_ixml_node_list, li_child TYPE REF TO if_ixml_node, lv_index TYPE i, lo_before TYPE REF TO zcl_aoc_parser_node, lv_name TYPE string, lo_after TYPE REF TO zcl_aoc_parser_node, lo_seq_before TYPE REF TO zcl_aoc_parser_node, lo_seq_after TYPE REF TO zcl_aoc_parser_node, lt_pair TYPE TABLE OF ty_pair, lt_per TYPE TABLE OF REF TO if_ixml_node_list, li_children LIKE LINE OF lt_per. FIELD-SYMBOLS: <ls_pair> LIKE LINE OF lt_pair, <ls_to> LIKE LINE OF lt_pair. * good enough, but allows statements like ASCENDING ASCENDING li_children = ii_rule->get_children( ). DO li_children->get_length( ) TIMES. li_child = li_children->get_item( sy-index - 1 ). li_append = li_child->get_children( ). " get rid of <Per> tag APPEND li_append TO lt_per. ENDDO. LOOP AT lt_per INTO li_children. CREATE OBJECT lo_before EXPORTING iv_type = gc_dummy iv_value = 'PerBefore' iv_rulename = iv_rulename. io_before->edge( lo_before ). CREATE OBJECT lo_after EXPORTING iv_type = gc_dummy iv_value = 'PerAfter' iv_rulename = iv_rulename. lo_after->edge( io_after ). APPEND INITIAL LINE TO lt_pair ASSIGNING <ls_pair>. <ls_pair>-before = lo_before. <ls_pair>-after = lo_after. DO li_children->get_length( ) TIMES. lv_index = sy-index. li_child = li_children->get_item( sy-index - 1 ). * permutations are always treated as optional, so make sure its not possible * to cycle in the graph without meeting terminals IF li_children->get_length( ) = 1. lv_name = li_child->get_name( ). IF lv_name = 'Option'. li_child = li_child->get_first_child( ). ENDIF. ENDIF. * handle un<Sequence>d permutations IF lv_index = 1. lo_seq_before = lo_before. ELSE. lo_seq_before = lo_seq_after. ENDIF. CREATE OBJECT lo_seq_after EXPORTING iv_type = gc_dummy iv_value = 'PerSeq' iv_rulename = iv_rulename. build( ii_rule = li_child iv_rulename = iv_rulename io_before = lo_seq_before io_after = lo_seq_after ). IF lv_index = li_children->get_length( ). lo_seq_after->edge( lo_after ). ENDIF. ENDDO. ENDLOOP. LOOP AT lt_pair ASSIGNING <ls_pair>. LOOP AT lt_pair ASSIGNING <ls_to> WHERE before <> <ls_pair>-before. <ls_pair>-after->edge( <ls_to>-before ). ENDLOOP. ENDLOOP. * easy way as last option io_before->edge( io_after ). ENDMETHOD. METHOD build_role. DATA: lo_node TYPE REF TO zcl_aoc_parser_node, lv_value TYPE string. lv_value = ii_rule->get_value( ). CREATE OBJECT lo_node EXPORTING iv_type = gc_role iv_value = lv_value iv_rulename = iv_rulename. io_before->edge( lo_node ). lo_node->edge( io_after ). ENDMETHOD. METHOD build_sequence. DATA: lo_before TYPE REF TO zcl_aoc_parser_node, lo_after TYPE REF TO zcl_aoc_parser_node, li_children TYPE REF TO if_ixml_node_list, li_child TYPE REF TO if_ixml_node. li_children = ii_rule->get_children( ). CREATE OBJECT lo_before EXPORTING iv_type = gc_dummy iv_value = 'Sequence' iv_rulename = iv_rulename. "#EC NOTEXT io_before->edge( lo_before ). DO li_children->get_length( ) TIMES. IF sy-index = li_children->get_length( ). lo_after = io_after. ELSE. CREATE OBJECT lo_after EXPORTING iv_type = gc_dummy iv_value = 'Sequence' iv_rulename = iv_rulename. "#EC NOTEXT ENDIF. li_child = li_children->get_item( sy-index - 1 ). build( ii_rule = li_child iv_rulename = iv_rulename io_before = lo_before io_after = lo_after ). lo_before = lo_after. ENDDO. ENDMETHOD. METHOD build_terminal. DATA: lo_node TYPE REF TO zcl_aoc_parser_node, lv_value TYPE string. lv_value = ii_rule->get_value( ). CREATE OBJECT lo_node EXPORTING iv_type = gc_terminal iv_value = lv_value iv_rulename = iv_rulename. io_before->edge( lo_node ). lo_node->edge( io_after ). ENDMETHOD. METHOD download. DATA: lv_desktop TYPE string, lv_filename TYPE string, lt_data TYPE TABLE OF string. cl_gui_frontend_services=>get_desktop_directory( CHANGING desktop_directory = lv_desktop EXCEPTIONS cntl_error = 1 error_no_gui = 2 not_supported_by_gui = 3 OTHERS = 4 ). IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. cl_gui_cfw=>flush( ). APPEND iv_data TO lt_data. lv_filename = lv_desktop && '\graphviz\' && iv_filename. "#EC NOTEXT cl_gui_frontend_services=>gui_download( EXPORTING filename = lv_filename CHANGING data_tab = lt_data EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 not_supported_by_gui = 22 error_no_gui = 23 OTHERS = 24 ). IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. ENDMETHOD. METHOD graph_build. DATA: li_rule TYPE REF TO if_ixml_node. li_rule = xml_get( iv_rulename ). CREATE OBJECT eo_start EXPORTING iv_type = gc_start iv_value = iv_rulename iv_rulename = iv_rulename. CREATE OBJECT eo_end EXPORTING iv_type = gc_end iv_value = iv_rulename iv_rulename = iv_rulename. build( ii_rule = li_rule iv_rulename = iv_rulename io_before = eo_start io_after = eo_end ). IF gv_debug = abap_true. graph_download( iv_rulename = iv_rulename io_start = eo_start ). ENDIF. ENDMETHOD. METHOD graph_download. DATA: lv_text TYPE string. lv_text = graph_to_text( io_start ). download( iv_filename = iv_rulename && '.txt' iv_data = lv_text ) ##NO_TEXT. ENDMETHOD. METHOD graph_to_text. * see http://www.graphviz.org/ DATA: lt_nodes TYPE TABLE OF REF TO zcl_aoc_parser_node, lv_label TYPE string, lo_node LIKE LINE OF lt_nodes, lv_node TYPE string, lo_edge LIKE LINE OF lo_node->mt_edges, lv_edge TYPE string, lv_value TYPE string. DEFINE _out. rv_text = rv_text && &1 && cl_abap_char_utilities=>cr_lf. END-OF-DEFINITION. APPEND io_node TO lt_nodes. _out 'digraph {'. "#EC NOTEXT LOOP AT lt_nodes INTO lo_node. lv_value = lo_node->mv_value. * escape some characters REPLACE ALL OCCURRENCES OF '>' IN lv_value WITH '\>'. REPLACE ALL OCCURRENCES OF '<' IN lv_value WITH '\<'. lv_label = 'Type\n' && lo_node->mv_type && '|' && 'Key\n' && lo_node->mv_key && '|' && 'Value\n' && lv_value. "#EC NOTEXT lv_node = 'node' && lo_node->mv_key && ' [label = "' && lv_label && '" shape = "record"];'. "#EC NOTEXT _out lv_node. LOOP AT lo_node->mt_edges INTO lo_edge. lv_edge = 'node' && lo_node->mv_key && ' -> node' && lo_edge->mv_key && ';'. "#EC NOTEXT _out lv_edge. READ TABLE lt_nodes FROM lo_edge TRANSPORTING NO FIELDS. IF sy-subrc <> 0. APPEND lo_edge TO lt_nodes. ENDIF. ENDLOOP. ENDLOOP. _out '}'. ENDMETHOD. METHOD parents. DATA: lv_index TYPE i. FIELD-SYMBOLS: <ls_token> LIKE LINE OF ct_tokens, <ls_child> LIKE LINE OF ct_tokens. LOOP AT ct_tokens ASSIGNING <ls_token>. <ls_token>-id = sy-tabix. ENDLOOP. DO lines( ct_tokens ) TIMES. lv_index = sy-index. READ TABLE ct_tokens INDEX lv_index ASSIGNING <ls_child>. ASSERT sy-subrc = 0. IF <ls_child>-rulename = gv_end_rule. CONTINUE. " current loop. ENDIF. LOOP AT ct_tokens ASSIGNING <ls_token> TO lv_index - 1 WHERE type = c_type-nonterminal AND statement = <ls_child>-statement AND value = <ls_child>-rulename. <ls_child>-parent = <ls_token>-id. ENDLOOP. ASSERT sy-subrc = 0. ENDDO. ENDMETHOD. METHOD parse. DATA: lo_start TYPE REF TO zcl_aoc_parser_node, lt_rt TYPE ty_tokens_tt, lv_statement TYPE i, lt_res_tok LIKE rs_result-tokens, lv_index TYPE i. FIELD-SYMBOLS: <ls_statement> LIKE LINE OF it_statements, <ls_token> LIKE LINE OF it_tokens, <ls_res_tok> LIKE LINE OF lt_res_tok. READ TABLE it_statements WITH KEY terminator = space TRANSPORTING NO FIELDS. IF sy-subrc = 0 AND gv_end_rule = 'START'. rs_result-match = abap_false. RETURN. ENDIF. LOOP AT it_statements ASSIGNING <ls_statement>. lv_statement = sy-tabix. CLEAR gt_tokens. LOOP AT it_tokens ASSIGNING <ls_token> FROM <ls_statement>-from TO <ls_statement>-to. APPEND <ls_token>-str TO gt_tokens. ENDLOOP. IF gv_end_rule = 'START'. APPEND '.' TO gt_tokens. ENDIF. graph_build( EXPORTING iv_rulename = gv_end_rule IMPORTING eo_start = lo_start ). rs_result = walk( io_node = lo_start iv_index = 1 ). IF rs_result-match = abap_false. RETURN. ENDIF. * reverse token order lt_res_tok = rs_result-tokens. lv_index = lines( lt_res_tok ). DO lines( lt_res_tok ) TIMES. READ TABLE lt_res_tok INDEX lv_index ASSIGNING <ls_res_tok>. ASSERT sy-subrc = 0. <ls_res_tok>-statement = lv_statement. APPEND <ls_res_tok> TO lt_rt. lv_index = lv_index - 1. ENDDO. ENDLOOP. parents( CHANGING ct_tokens = lt_rt ). IF sy-subrc = 0. rs_result-match = abap_true. ELSE. rs_result-match = abap_false. ENDIF. rs_result-tokens = lt_rt. ENDMETHOD. METHOD run. * abapOpenChecks * https://github.com/larshp/abapOpenChecks * MIT License DATA: lt_tokens TYPE stokesx_tab, lt_statements TYPE sstmnt_tab. SCAN ABAP-SOURCE it_code TOKENS INTO lt_tokens STATEMENTS INTO lt_statements WITH ANALYSIS. IF sy-subrc <> 0. rs_result-match = abap_false. RETURN. ENDIF. gv_debug = iv_debug. gv_end_rule = iv_rule. gv_allow_obsolete = iv_allow_obsolete. rs_result = parse( it_tokens = lt_tokens it_statements = lt_statements ). ENDMETHOD. METHOD walk. CASE io_node->mv_type. WHEN gc_dummy OR gc_start. rs_result = walk_node( io_node = io_node iv_index = iv_index ). WHEN gc_end. rs_result = walk_end( io_node = io_node iv_index = iv_index ). WHEN gc_role. rs_result = walk_role( io_node = io_node iv_index = iv_index ). WHEN gc_terminal. rs_result = walk_terminal( io_node = io_node iv_index = iv_index ). WHEN gc_nonterminal. rs_result = walk_nonterminal( io_node = io_node iv_index = iv_index ). ENDCASE. ENDMETHOD. METHOD walk_end. IF iv_index = lines( gt_tokens ) + 1 AND io_node->mv_value = gv_end_rule. rs_result-match = abap_true. RETURN. ENDIF. rs_result = walk_node( io_node = io_node iv_index = iv_index ). ENDMETHOD. METHOD walk_node. DATA: lo_node LIKE LINE OF io_node->mt_edges. LOOP AT io_node->mt_edges INTO lo_node. rs_result = walk( io_node = lo_node iv_index = iv_index ). IF rs_result-match = abap_true. RETURN. ENDIF. ENDLOOP. ENDMETHOD. METHOD walk_nonterminal. DATA: lv_rulename TYPE string, lo_start TYPE REF TO zcl_aoc_parser_node, lo_end TYPE REF TO zcl_aoc_parser_node, lo_node LIKE LINE OF io_node->mt_edges. FIELD-SYMBOLS: <ls_token> LIKE LINE OF rs_result-tokens. lv_rulename = io_node->mv_value. IF lv_rulename = 'MACRO'. * macro call makes everything valid ABAP code rs_result-match = abap_false. RETURN. ENDIF. graph_build( EXPORTING iv_rulename = lv_rulename IMPORTING eo_start = lo_start eo_end = lo_end ). ASSERT lo_start IS BOUND. ASSERT lo_end IS BOUND. * add edges from io_node to end of nonterminal graph LOOP AT io_node->mt_edges INTO lo_node. lo_end->edge( lo_node ). ENDLOOP. rs_result = walk_node( io_node = lo_start iv_index = iv_index ). IF rs_result-match = abap_true. APPEND INITIAL LINE TO rs_result-tokens ASSIGNING <ls_token>. <ls_token>-type = c_type-nonterminal. <ls_token>-value = io_node->mv_value. <ls_token>-rulename = io_node->mv_rulename. ENDIF. ENDMETHOD. METHOD walk_role. DATA: lv_token LIKE LINE OF gt_tokens. FIELD-SYMBOLS: <ls_token> LIKE LINE OF rs_result-tokens. READ TABLE gt_tokens INDEX iv_index INTO lv_token. IF sy-subrc <> 0. rs_result-match = abap_false. RETURN. ENDIF. CASE io_node->mv_value. WHEN 'FieldId' OR 'FieldIdW'. FIND REGEX '^[a-zA-Z0-9_\-=<>~+]+["\[\]"]*["("0-9")"]*$' IN lv_token. "#EC NOTEXT IF sy-subrc <> 0. FIND REGEX '^''.*''["("0-9")"]*$' IN lv_token. ENDIF. WHEN 'FieldDefId'. FIND REGEX '^[a-zA-Z0-9_\-]+["("0-9")"]*$' IN lv_token. "#EC NOTEXT WHEN 'TypeId' OR 'ScreenId' OR 'ItabFieldId'. FIND REGEX '^[a-zA-Z0-9_\-=>~]+$' IN lv_token. "#EC NOTEXT WHEN 'FieldListId' OR 'LdbNodeId' OR 'MacroId' OR 'MethodDefId' OR 'FormParamId' OR 'FormId' OR 'FormDefId' OR 'ClasstypeDefId' OR 'SwitchId' OR 'BlockDefId' OR 'ClassexcTypeId' OR 'FieldGroupId' OR 'ProgramId' OR 'ProgramDefId' OR 'MacroDefId' OR 'ClassrefFieldId' OR 'ClassexcrefFieldId'. FIND REGEX '^[a-zA-Z0-9_]+$' IN lv_token. "#EC NOTEXT WHEN 'FieldCompId'. FIND REGEX '^\(?[a-zA-Z0-9_]+\)?$' IN lv_token. "#EC NOTEXT WHEN 'FunctionId'. FIND REGEX '^''.*''$' IN lv_token. WHEN 'MethodId('. FIND REGEX '^[a-zA-Z0-9_\=\-<>~]+\($' IN lv_token. "#EC NOTEXT WHEN 'MethodId'. FIND REGEX '^[a-zA-Z0-9_\=\-<>~]+\(?$' IN lv_token. "#EC NOTEXT WHEN 'LocationId'. FIND REGEX '^/?[0-9]*["("0-9")"]*$' IN lv_token. WHEN 'SelOptId'. rs_result-match = abap_false. RETURN. WHEN 'FieldSymbolDefId'. FIND REGEX '^<[a-zA-Z0-9_\-]+>$' IN lv_token. "#EC NOTEXT WHEN 'ComponentId'. FIND REGEX '^[a-zA-Z0-9_\*]+$' IN lv_token. "#EC NOTEXT WHEN 'MessageNumber'. FIND REGEX '^.[0-9][0-9][0-9](\(.+\))?$' IN lv_token. ENDCASE. IF sy-subrc = 0. rs_result = walk_node( io_node = io_node iv_index = iv_index + 1 ). IF rs_result-match = abap_true. APPEND INITIAL LINE TO rs_result-tokens ASSIGNING <ls_token>. <ls_token>-type = c_type-role. <ls_token>-value = io_node->mv_value. <ls_token>-code = lv_token. <ls_token>-rulename = io_node->mv_rulename. ENDIF. ELSE. rs_result-match = abap_false. ENDIF. ENDMETHOD. METHOD walk_terminal. DATA: lv_nws TYPE abap_bool, lv_len TYPE i, lv_token LIKE LINE OF gt_tokens. * too many variables with similar names FIELD-SYMBOLS: <lv_token> LIKE LINE OF gt_tokens, <ls_token> LIKE LINE OF rs_result-tokens. rs_result-match = abap_true. READ TABLE gt_tokens INDEX iv_index INTO lv_token. IF sy-subrc <> 0. rs_result-match = abap_false. ENDIF. CASE io_node->mv_value. WHEN '#ILITERAL#'. FIND REGEX '^[0-9]+$' IN lv_token. IF sy-subrc <> 0. rs_result-match = abap_false. ENDIF. WHEN '#ASTERISK_NWS#'. IF lv_token CP '#*+*'. lv_token = '*'. lv_nws = abap_true. ELSE. rs_result-match = abap_false. ENDIF. WHEN '#RPAREN_NWS#'. IF lv_token CP ')+*'. lv_token = ')'. lv_nws = abap_true. ELSE. rs_result-match = abap_false. ENDIF. WHEN '#PLUS_NWS#'. IF lv_token CP '#++*'. lv_token = '+'. lv_nws = abap_true. ELSE. rs_result-match = abap_false. ENDIF. WHEN '#NWS_ARROW_NWS#'. IF lv_token CP '->+*' OR lv_token CP '=>+*'. lv_token = lv_token(2). lv_nws = abap_true. ELSE. rs_result-match = abap_false. ENDIF. WHEN '#NWS_MINUS_NWS#'. IF lv_token CP '-+*'. lv_token = '-'. lv_nws = abap_true. ELSE. rs_result-match = abap_false. ENDIF. WHEN OTHERS. IF lv_token <> io_node->mv_value. rs_result-match = abap_false. ENDIF. ENDCASE. IF rs_result-match = abap_false. RETURN. ENDIF. IF lv_nws = abap_true. READ TABLE gt_tokens INDEX iv_index ASSIGNING <lv_token>. ASSERT sy-subrc = 0. lv_len = strlen( lv_token ). <lv_token> = <lv_token>+lv_len. rs_result = walk_node( io_node = io_node iv_index = iv_index ). IF rs_result-match = abap_false. CONCATENATE lv_token <lv_token> INTO <lv_token>. ENDIF. ELSE. rs_result = walk_node( io_node = io_node iv_index = iv_index + 1 ). ENDIF. IF rs_result-match = abap_true. APPEND INITIAL LINE TO rs_result-tokens ASSIGNING <ls_token>. <ls_token>-type = c_type-terminal. <ls_token>-value = io_node->mv_value. <ls_token>-code = lv_token. <ls_token>-rulename = io_node->mv_rulename. ENDIF. ENDMETHOD. METHOD xml_download. DATA: lv_xml TYPE string, li_ostream TYPE REF TO if_ixml_ostream, li_renderer TYPE REF TO if_ixml_renderer, li_streamfactory TYPE REF TO if_ixml_stream_factory. li_streamfactory = ii_xml->create_stream_factory( ). li_ostream = li_streamfactory->create_ostream_cstring( lv_xml ). li_renderer = ii_xml->create_renderer( ostream = li_ostream document = ii_xml_doc ). li_renderer->set_normalizing( ). li_renderer->render( ). * make sure newlines work in notepad REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>newline IN lv_xml WITH cl_abap_char_utilities=>cr_lf. download( iv_filename = iv_rulename && '.xml' iv_data = lv_xml ) ##NO_TEXT. ENDMETHOD. METHOD xml_fix. WHILE sy-subrc = 0. REPLACE ALL OCCURRENCES OF REGEX '<Terminal>([A-Z-]*)</Terminal>' && '<Terminal>#NWS_MINUS_NWS#</Terminal>' && '<Terminal>([A-Z-]*)</Terminal>' IN cv_xml WITH '<Terminal>$1-$2</Terminal>' IGNORING CASE. ENDWHILE. REPLACE ALL OCCURRENCES OF REGEX '<Role>MethodId</Role><Terminal>#NWS_LPAREN#</Terminal>' IN cv_xml WITH '<Role>MethodId(</Role>' IGNORING CASE. * todo #RPAREN_NWS# ? REPLACE ALL OCCURRENCES OF REGEX '<Terminal>#LPAREN#</Terminal>' IN cv_xml WITH '<Terminal>(</Terminal>' IGNORING CASE. REPLACE ALL OCCURRENCES OF REGEX '<Terminal>#RPAREN#</Terminal>' IN cv_xml WITH '<Terminal>)</Terminal>' IGNORING CASE. REPLACE ALL OCCURRENCES OF REGEX '<Terminal>#PLUS#</Terminal>' IN cv_xml WITH '<Terminal>+</Terminal>' IGNORING CASE. REPLACE ALL OCCURRENCES OF REGEX '<Terminal>#MINUS#</Terminal>' IN cv_xml WITH '<Terminal>-</Terminal>' IGNORING CASE. REPLACE ALL OCCURRENCES OF REGEX '<Terminal>#ASTERISK#</Terminal>' IN cv_xml WITH '<Terminal>*</Terminal>' IGNORING CASE. REPLACE ALL OCCURRENCES OF REGEX '<Terminal>#SLASH#</Terminal>' IN cv_xml WITH '<Terminal>/</Terminal>' IGNORING CASE. * #ASTERISK_NWS# ? REPLACE ALL OCCURRENCES OF REGEX '<Terminal>%_SORTMODE</Terminal>' IN cv_xml WITH '' IGNORING CASE. * comparison operators REPLACE ALL OCCURRENCES OF REGEX '<Terminal>#LT_NWS#</Terminal><Terminal>#NWS_GT#</Terminal>' IN cv_xml WITH '<Terminal>&lt;&gt;</Terminal>' IGNORING CASE. REPLACE ALL OCCURRENCES OF REGEX '<Terminal>#GT_NWS#</Terminal><Terminal>#NWS_LT#</Terminal>' IN cv_xml WITH '<Terminal>&gt;&lt;</Terminal>' IGNORING CASE. REPLACE ALL OCCURRENCES OF REGEX '<Terminal>#LT#</Terminal>' IN cv_xml WITH '<Terminal>&lt;</Terminal>' IGNORING CASE. REPLACE ALL OCCURRENCES OF REGEX '<Terminal>#LT_NWS#</Terminal><Terminal>=</Terminal>' IN cv_xml WITH '<Terminal>&lt;=</Terminal>' IGNORING CASE. REPLACE ALL OCCURRENCES OF REGEX '<Terminal>=</Terminal><Terminal>#NWS_LT#</Terminal>' IN cv_xml WITH '<Terminal>=&lt;</Terminal>' IGNORING CASE. REPLACE ALL OCCURRENCES OF REGEX '<Terminal>#GT#</Terminal>' IN cv_xml WITH '<Terminal>&gt;</Terminal>' IGNORING CASE. REPLACE ALL OCCURRENCES OF REGEX '<Terminal>#GT_NWS#</Terminal><Terminal>=</Terminal>' IN cv_xml WITH '<Terminal>&gt;=</Terminal>' IGNORING CASE. ENDMETHOD. METHOD xml_get. DATA: lv_rulename TYPE ssyntaxstructure-rulename, ls_cache LIKE LINE OF gt_cache. FIELD-SYMBOLS: <ls_syntax> LIKE LINE OF gt_syntax. READ TABLE gt_cache INTO ls_cache WITH KEY rulename = iv_rulename. IF sy-subrc = 0. ri_rule = ls_cache-node. RETURN. ENDIF. IF lines( gt_syntax ) = 0. SELECT * FROM ssyntaxstructure INTO TABLE gt_syntax. "#EC CI_NOWHERE "#EC CI_SUBRC SORT gt_syntax BY rulename ASCENDING. ENDIF. lv_rulename = iv_rulename. " type conversion READ TABLE gt_syntax ASSIGNING <ls_syntax> WITH KEY rulename = lv_rulename BINARY SEARCH. ASSERT sy-subrc = 0. xml_fix( CHANGING cv_xml = <ls_syntax>-description ). ri_rule = xml_parse( iv_rulename = iv_rulename iv_xml = <ls_syntax>-description ). CLEAR ls_cache. ls_cache-rulename = iv_rulename. ls_cache-node = ri_rule. INSERT ls_cache INTO TABLE gt_cache. ENDMETHOD. METHOD xml_parse. DATA: li_ixml TYPE REF TO if_ixml, li_xml_doc TYPE REF TO if_ixml_document, li_type TYPE REF TO if_ixml_node, li_attr TYPE REF TO if_ixml_named_node_map, lv_type TYPE string, li_collection TYPE REF TO if_ixml_node_collection, li_iterator TYPE REF TO if_ixml_node_iterator, li_node TYPE REF TO if_ixml_node, li_normal TYPE REF TO if_ixml_node, li_obsolete TYPE REF TO if_ixml_node, li_private TYPE REF TO if_ixml_node, 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_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 ). ASSERT li_parser->parse( ) = 0. li_istream->close( ). IF gv_debug = abap_true. xml_download( iv_rulename = iv_rulename ii_xml = li_ixml ii_xml_doc = li_xml_doc ). ENDIF. li_collection = li_xml_doc->get_elements_by_tag_name( depth = 0 name = 'View' ). "#EC NOTEXT li_iterator = li_collection->create_iterator( ). li_node = li_iterator->get_next( ). WHILE li_node IS BOUND. li_attr = li_node->get_attributes( ). li_type = li_attr->get_named_item( 'type' ). "#EC NOTEXT lv_type = li_type->get_value( ). CASE lv_type. WHEN 'Normal'. "#EC NOTEXT li_normal = li_node. WHEN 'Obsolete'. "#EC NOTEXT li_obsolete = li_node. WHEN 'Private'. "#EC NOTEXT li_private = li_node. ENDCASE. li_node = li_iterator->get_next( ). ENDWHILE. IF li_obsolete IS BOUND AND gv_allow_obsolete = abap_true. ri_rule = li_obsolete->get_first_child( ). ELSEIF li_normal IS BOUND. ri_rule = li_normal->get_first_child( ). ELSEIF li_private IS BOUND. ri_rule = li_private->get_first_child( ). ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 64, 420, 62, 48610, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 41876, 12, 16402, 3535, 50, 450, 499, 764, 198, 220, 220, 220, 42715, 1976, 565, 62, 64, 420, 62, 48610, 5550, 20032, 17941, 17579, 2885, 764, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 30001, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2643, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2560, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 41876, 269, 406, 49494, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2438, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2155, 12453, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 30001, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 83, 482, 641, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 30001, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 20274, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2872, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 16326, 41876, 1259, 62, 83, 482, 641, 62, 926, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 20274, 764, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2597, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 26173, 8924, 705, 49, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 12094, 220, 220, 220, 41876, 269, 26173, 8924, 705, 51, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1729, 23705, 282, 41876, 269, 26173, 8924, 705, 45, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 4906, 764, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 18090, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2214, 4299, 312, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 15878, 7469, 7390, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2214, 312, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 15878, 7390, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1296, 312, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 8479, 7390, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1296, 4299, 312, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 8479, 7469, 7390, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 537, 292, 8044, 310, 2981, 312, 41876, 4731, 26173, 8924, 705, 2601, 292, 8044, 66, 6030, 7390, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2099, 312, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 6030, 7390, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 18090, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 1057, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 8189, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 62, 11487, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 24442, 220, 220, 220, 220, 220, 220, 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, 25135, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 5550, 38865, 705, 2257, 7227, 6, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 12154, 62, 672, 23869, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 20274, 8, 220, 220, 41876, 1259, 62, 20274, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 1259, 62, 1837, 41641, 62, 926, 41876, 49053, 9795, 43679, 3963, 264, 1837, 41641, 301, 5620, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 308, 66, 62, 67, 13513, 220, 220, 220, 220, 220, 220, 41876, 1976, 565, 62, 64, 420, 62, 48610, 62, 17440, 14804, 774, 62, 17440, 62, 4906, 26173, 8924, 705, 35, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 66, 62, 9688, 220, 220, 220, 220, 220, 220, 41876, 1976, 565, 62, 64, 420, 62, 48610, 62, 17440, 14804, 774, 62, 17440, 62, 4906, 26173, 8924, 705, 50, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 66, 62, 437, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 565, 62, 64, 420, 62, 48610, 62, 17440, 14804, 774, 62, 17440, 62, 4906, 26173, 8924, 705, 36, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 66, 62, 18090, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 565, 62, 64, 420, 62, 48610, 62, 17440, 14804, 774, 62, 17440, 62, 4906, 26173, 8924, 705, 49, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS ltcl_main DEFINITION DEFERRED. CLASS z2mse_extr3_programs DEFINITION LOCAL FRIENDS ltcl_main. CLASS ltcl_main DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. DATA: model_builder TYPE REF TO z2mse_extr3_model_builder, element_manager TYPE REF TO z2mse_extr3_element_manager, f_cut TYPE REF TO z2mse_extr3_programs. METHODS: setup, simple FOR TESTING RAISING cx_static_check, _extract_function_name FOR TESTING RAISING cx_static_check. ENDCLASS. CLASS ltcl_main IMPLEMENTATION. METHOD setup. TEST-INJECTION tfdir. cl_abap_unit_assert=>fail( EXPORTING msg = |Redefine me| ). END-TEST-INJECTION. model_builder = NEW #( ). model_builder->initial_selection_started( ). element_manager = NEW #( i_model_builder = model_builder i_exclude_found_sap_intf = abap_true ). model_builder->initialize( i_element_manager = element_manager ). f_cut = z2mse_extr3_programs=>get_instance( i_element_manager = element_manager ). ENDMETHOD. METHOD simple. DATA r_result TYPE REF TO z2mse_extr3_elements. DATA: program_name_act TYPE progname, program_name_exp TYPE progname, subc_act TYPE subc, subc_exp TYPE subc, is_found TYPE abap_bool, new_element_id TYPE i. TEST-INJECTION progdir. found_program = 'PROGRAM_A'. found_subc = 1. END-TEST-INJECTION. f_cut->add( EXPORTING program = 'PROGRAM_A' IMPORTING is_added = is_found new_element_id = new_element_id ). cl_abap_unit_assert=>assert_equals( msg = 'Program has to be found' exp = abap_true act = is_found ). cl_abap_unit_assert=>assert_equals( msg = 'ID has to be 1' exp = 1 act = new_element_id ). " Add an existing id f_cut->add( EXPORTING program = 'PROGRAM_A' IMPORTING is_added = is_found new_element_id = new_element_id ). cl_abap_unit_assert=>assert_equals( msg = 'Program has to be marked as found if entered a second time' exp = abap_true act = is_found ). cl_abap_unit_assert=>assert_equals( msg = 'ID has to be 1 if added a second time' exp = 1 act = new_element_id ). f_cut->program_name( EXPORTING i_element_id = 1 IMPORTING program = program_name_act subc = subc_act ). program_name_exp = |PROGRAM_A|. subc_exp = |1|. cl_abap_unit_assert=>assert_equals( msg = 'Program has to be stored internally' exp = program_name_exp act = program_name_act ). cl_abap_unit_assert=>assert_equals( msg = 'Subc has to be stored internally' exp = subc_exp act = subc_act ). r_result = element_manager->get_element( i_element_id = 1 ). cl_abap_unit_assert=>assert_equals( msg = 'Expect a reference to an element of type Program' exp = z2mse_extr3_elements=>program_type act = r_result->type ). " Now add parent package to check correct building of FAMIX element DATA package TYPE REF TO z2mse_extr3_packages_mock. DATA parent_package TYPE REF TO z2mse_extr3_parent_package. package = z2mse_extr3_packages_mock=>get_mock_instance( i_element_manager = element_manager ). package->add( EXPORTING package = |PACKAGE1| IMPORTING new_element_id = new_element_id ). parent_package = z2mse_extr3_parent_package=>get_instance( i_element_manager = element_manager ). parent_package->add( EXPORTING element_id = 1 parent_element_id = new_element_id ). " Test model DATA: mse_model_act TYPE z2mse_model=>lines_type. mse_model_act = element_manager->make_model( ). DATA: equalized_harmonized_mse_act TYPE z2mse_mse_harmonize=>harmonized_mse, equalized_harmonized_mse_exp TYPE z2mse_mse_harmonize=>harmonized_mse. equalized_harmonized_mse_act = z2mse_mse_harmonize=>mse_2_harmonized( mse = mse_model_act ). equalized_harmonized_mse_exp = VALUE #( ( |FAMIX.CustomSourceLanguage SAP| ) ( |FAMIX.Method PROGRAM_A>>PROGRAM_A signature PROGRAM_A| ) ( |FAMIX.Class PROGRAM_A modifiers ABAPProgram| ) ( |FAMIX.Class PROGRAM_A parentPackage PACKAGE1| ) ( |FAMIX.Package PACKAGE1| ) ). z2mse_mse_harmonize=>equalize_harmonized( CHANGING harmonized_mse = equalized_harmonized_mse_exp ). cl_abap_unit_assert=>assert_equals( EXPORTING act = equalized_harmonized_mse_act exp = equalized_harmonized_mse_exp msg = 'Expect mse with correct package' ). ENDMETHOD. METHOD _extract_function_name. DATA: function_group_act TYPE rs38l_area, function_act TYPE rs38l_fnam, function_include_act TYPE string, function_name TYPE string. function_group_act = |DUMMY|. function_act = |DUMMY|. function_include_act = |DUMMY|. f_cut->_extract_function_name( EXPORTING i_element_program = |ABC| IMPORTING function_group = function_group_act function = function_act function_include = function_include_act r_result = function_name ). cl_abap_unit_assert=>assert_equals( msg = 'Return name unchanged if it very short' exp = |ABC| act = function_name ). cl_abap_unit_assert=>assert_equals( msg = 'Initial Function Group if name is very short' exp = || act = function_group_act ). cl_abap_unit_assert=>assert_equals( msg = 'Initial function if name is very short' exp = || act = function_act ). cl_abap_unit_assert=>assert_equals( msg = 'Initial function include if name is very short' exp = || act = function_include_act ). f_cut->_extract_function_name( EXPORTING i_element_program = |LAF01| IMPORTING function_group = function_group_act function = function_act function_include = function_include_act r_result = function_name ). cl_abap_unit_assert=>assert_equals( msg = 'Return name unchanged thirdlast character is not U' exp = |LAF01| act = function_name ). cl_abap_unit_assert=>assert_equals( msg = 'Return Function Group' exp = |A| act = function_group_act ). cl_abap_unit_assert=>assert_equals( msg = 'Initial function if thirdlast character is not U' exp = || act = function_act ). cl_abap_unit_assert=>assert_equals( msg = 'Correct function include if thirdlast character is F' exp = |LAF01| act = function_include_act ). TEST-INJECTION tfdir. IF pname EQ |SAPLA| AND include = |01|. funcname = |MY_FUNCTION|. sy-subrc = 0. ELSE. sy-subrc = 4. ENDIF. END-TEST-INJECTION. f_cut->_extract_function_name( EXPORTING i_element_program = |LAU01| IMPORTING function_group = function_group_act function = function_act function_include = function_include_act r_result = function_name ). cl_abap_unit_assert=>assert_equals( msg = 'Read Function if thirdlast character is U' exp = |F-MY_FUNCTION| act = function_name ). cl_abap_unit_assert=>assert_equals( msg = 'Return Function Group if thirdlast character is U' exp = |A| act = function_group_act ). cl_abap_unit_assert=>assert_equals( msg = 'Return function if thirdlast character is U' exp = |MY_FUNCTION| act = function_act ). cl_abap_unit_assert=>assert_equals( msg = 'Initial function include if thirdlast character is U' exp = || act = function_include_act ). f_cut->_extract_function_name( EXPORTING i_element_program = |BU01| IMPORTING function_group = function_group_act function = function_act function_include = function_include_act r_result = function_name ). cl_abap_unit_assert=>assert_equals( msg = 'Return the include name if nothing is found in table TFDIR' exp = |BU01| act = function_name ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 83, 565, 62, 12417, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 31631, 1976, 17, 76, 325, 62, 2302, 81, 18, 62, 23065, 82, 5550, 20032, 17941, 37347, 1847, 48167, 1677, 5258, 300, 83, 565, 62, 12417, 13, 198, 31631, 300, 83, 565, 62, 12417, 5550, 20032, 17941, 25261, 7473, 43001, 2751, 198, 220, 360, 4261, 6234, 6006, 9863, 198, 220, 45698, 42, 49277, 43638, 5805, 7597, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 2746, 62, 38272, 220, 220, 41876, 4526, 37, 5390, 1976, 17, 76, 325, 62, 2302, 81, 18, 62, 19849, 62, 38272, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5002, 62, 37153, 41876, 4526, 37, 5390, 1976, 17, 76, 325, 62, 2302, 81, 18, 62, 30854, 62, 37153, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 277, 62, 8968, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 17, 76, 325, 62, 2302, 81, 18, 62, 23065, 82, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 9058, 11, 198, 220, 220, 220, 220, 220, 2829, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 4808, 2302, 974, 62, 8818, 62, 3672, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 10619, 31631, 13, 628, 198, 31631, 300, 83, 565, 62, 12417, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 9058, 13, 628, 220, 220, 220, 43001, 12, 1268, 23680, 2849, 48700, 15908, 13, 198, 220, 220, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 32165, 7, 7788, 15490, 2751, 31456, 796, 930, 7738, 891, 500, 502, 91, 6739, 198, 220, 220, 220, 23578, 12, 51, 6465, 12, 1268, 23680, 2849, 13, 628, 220, 220, 220, 2746, 62, 38272, 796, 12682, 1303, 7, 6739, 198, 220, 220, 220, 2746, 62, 38272, 3784, 36733, 62, 49283, 62, 46981, 7, 6739, 198, 220, 220, 220, 5002, 62, 37153, 796, 12682, 1303, 7, 1312, 62, 19849, 62, 38272, 796, 2746, 62, 38272, 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, 1312, 62, 1069, 9152, 62, 9275, 62, 82, 499, 62, 600, 69, 796, 450, 499, 62, 7942, 6739, 198, 220, 220, 220, 2746, 62, 38272, 3784, 36733, 1096, 7, 1312, 62, 30854, 62, 37153, 796, 5002, 62, 37153, 6739, 198, 220, 220, 220, 277, 62, 8968, 796, 1976, 17, 76, 325, 62, 2302, 81, 18, 62, 23065, 82, 14804, 1136, 62, 39098, 7, 1312, 62, 30854, 62, 37153, 796, 5002, 62, 37153, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 2829, 13, 628, 220, 220, 220, 42865, 374, 62, 20274, 41876, 4526, 37, 5390, 1976, 17, 76, 325, 62, 2302, 81, 18, 62, 68, 3639, 13, 628, 220, 220, 220, 42865, 25, 1430, 62, 3672, 62, 529, 41876, 1172, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1430, 62, 3672, 62, 11201, 41876, 1172, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 850, 66, 62, 529, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 850, 66, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 850, 66, 62, 11201, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 850, 66, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 9275, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 649, 62, 30854, 62, 312, 220, 220, 41876, 1312, 13, 628, 220, 220, 220, 43001, 12, 1268, 23680, 2849, 1172, 15908, 13, 198, 220, 220, 220, 220, 220, 1043, 62, 23065, 796, 705, 4805, 7730, 24115, 62, 32, 4458, 198, 220, 220, 220, 220, 220, 1043, 62, 7266, 66, 796, 352, 13, 198, 220, 220, 220, 23578, 12, 51, 6465, 12, 1268, 23680, 2849, 13, 628, 220, 220, 220, 277, 62, 8968, 3784, 2860, 7, 7788, 15490, 2751, 1430, 796, 705, 4805, 7730, 24115, 62, 32, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 318, 62, 29373, 796, 318, 62, 9275, 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, 649, 62, 30854, 62, 312, 796, 649, 62, 30854, 62, 312, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 31456, 796, 705, 15167, 468, 284, 307, 1043, 6, 1033, 796, 450, 499, 62, 7942, 719, 796, 318, 62, 9275, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 31456, 796, 705, 2389, 468, 284, 307, 352, 6, 1033, 796, 352, 719, 796, 649, 62, 30854, 62, 312, 6739, 628, 220, 220, 220, 366, 3060, 281, 4683, 4686, 628, 220, 220, 220, 277, 62, 8968, 3784, 2860, 7, 7788, 15490, 2751, 1430, 796, 705, 4805, 7730, 24115, 62, 32, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 318, 62, 29373, 796, 318, 62, 9275, 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, 649, 62, 30854, 62, 312, 796, 649, 62, 30854, 62, 312, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 31456, 796, 705, 15167, 468, 284, 307, 7498, 355, 1043, 611, 5982, 257, 1218, 640, 6, 1033, 796, 450, 499, 62, 7942, 719, 796, 318, 62, 9275, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 31456, 796, 705, 2389, 468, 284, 307, 352, 611, 2087, 257, 1218, 640, 6, 1033, 796, 352, 719, 796 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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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 ]
CLASS zcl_abapgit_object_fugr DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_program FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. PRIVATE SECTION. TYPES: ty_rs38l_incl_tt TYPE STANDARD TABLE OF rs38l_incl WITH DEFAULT KEY . TYPES: BEGIN OF ty_function, funcname TYPE rs38l_fnam, global_flag TYPE rs38l-global, remote_call TYPE rs38l-remote, update_task TYPE rs38l-utask, short_text TYPE tftit-stext, remote_basxml TYPE rs38l-basxml_enabled, import TYPE STANDARD TABLE OF rsimp WITH DEFAULT KEY, changing TYPE STANDARD TABLE OF rscha WITH DEFAULT KEY, export TYPE STANDARD TABLE OF rsexp WITH DEFAULT KEY, tables TYPE STANDARD TABLE OF rstbl WITH DEFAULT KEY, exception TYPE STANDARD TABLE OF rsexc WITH DEFAULT KEY, documentation TYPE STANDARD TABLE OF rsfdo WITH DEFAULT KEY, exception_classes TYPE abap_bool, END OF ty_function . TYPES: ty_function_tt TYPE STANDARD TABLE OF ty_function WITH DEFAULT KEY . METHODS update_where_used IMPORTING !it_includes TYPE rso_t_objnm . METHODS main_name RETURNING VALUE(rv_program) TYPE program RAISING zcx_abapgit_exception . METHODS functions RETURNING VALUE(rt_functab) TYPE ty_rs38l_incl_tt RAISING zcx_abapgit_exception . METHODS includes RETURNING VALUE(rt_includes) TYPE rso_t_objnm RAISING zcx_abapgit_exception . METHODS serialize_functions RETURNING VALUE(rt_functions) TYPE ty_function_tt RAISING zcx_abapgit_exception . METHODS deserialize_functions IMPORTING !it_functions TYPE ty_function_tt RAISING zcx_abapgit_exception . METHODS serialize_xml IMPORTING !io_xml TYPE REF TO zcl_abapgit_xml_output RAISING zcx_abapgit_exception . METHODS deserialize_xml IMPORTING !io_xml TYPE REF TO zcl_abapgit_xml_input !iv_package TYPE devclass RAISING zcx_abapgit_exception . METHODS serialize_includes RAISING zcx_abapgit_exception . METHODS deserialize_includes IMPORTING !io_xml TYPE REF TO zcl_abapgit_xml_input !iv_package TYPE devclass RAISING zcx_abapgit_exception . METHODS are_exceptions_class_based IMPORTING !iv_function_name TYPE rs38l_fnam RETURNING VALUE(rv_return) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS is_function_group_locked RETURNING VALUE(rv_is_functions_group_locked) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS is_any_include_locked RETURNING VALUE(rv_is_any_include_locked) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS is_any_function_module_locked RETURNING VALUE(rv_any_function_module_locked) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS get_abap_version IMPORTING !io_xml TYPE REF TO zcl_abapgit_xml_input RETURNING VALUE(rv_abap_version) TYPE progdir-uccheck RAISING zcx_abapgit_exception . ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_FUGR IMPLEMENTATION. METHOD are_exceptions_class_based. DATA: lt_dokumentation TYPE TABLE OF funct, lt_exception_list TYPE TABLE OF rsexc, lt_export_parameter TYPE TABLE OF rsexp, lt_import_parameter TYPE TABLE OF rsimp, lt_tables_parameter TYPE TABLE OF rstbl. CALL FUNCTION 'FUNCTION_IMPORT_DOKU' EXPORTING funcname = iv_function_name IMPORTING exception_class = rv_return TABLES dokumentation = lt_dokumentation exception_list = lt_exception_list export_parameter = lt_export_parameter import_parameter = lt_import_parameter tables_parameter = lt_tables_parameter EXCEPTIONS error_message = 1 function_not_found = 2 invalid_name = 3 OTHERS = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from FUNCTION_IMPORT_DOKU' ). ENDIF. ENDMETHOD. METHOD deserialize_functions. DATA: lv_include TYPE rs38l-include, lv_area TYPE rs38l-area, lv_group TYPE rs38l-area, lv_namespace TYPE rs38l-namespace, lt_source TYPE TABLE OF abaptxt255. FIELD-SYMBOLS: <ls_func> LIKE LINE OF it_functions. LOOP AT it_functions ASSIGNING <ls_func>. lt_source = mo_files->read_abap( iv_extra = <ls_func>-funcname ). lv_area = ms_item-obj_name. CALL FUNCTION 'FUNCTION_INCLUDE_SPLIT' EXPORTING complete_area = lv_area IMPORTING namespace = lv_namespace group = lv_group EXCEPTIONS OTHERS = 12. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from FUNCTION_INCLUDE_SPLIT' ). ENDIF. CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = <ls_func>-funcname IMPORTING include = lv_include EXCEPTIONS function_not_exist = 1. IF sy-subrc = 0. * delete the function module to make sure the parameters are updated * havent found a nice way to update the paramters CALL FUNCTION 'FUNCTION_DELETE' EXPORTING funcname = <ls_func>-funcname suppress_success_message = abap_true EXCEPTIONS error_message = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from FUNCTION_DELETE' ). ENDIF. ENDIF. CALL FUNCTION 'RS_FUNCTIONMODULE_INSERT' EXPORTING funcname = <ls_func>-funcname function_pool = lv_group interface_global = <ls_func>-global_flag remote_call = <ls_func>-remote_call short_text = <ls_func>-short_text update_task = <ls_func>-update_task exception_class = <ls_func>-exception_classes namespace = lv_namespace remote_basxml_supported = <ls_func>-remote_basxml IMPORTING function_include = lv_include TABLES import_parameter = <ls_func>-import export_parameter = <ls_func>-export tables_parameter = <ls_func>-tables changing_parameter = <ls_func>-changing exception_list = <ls_func>-exception parameter_docu = <ls_func>-documentation EXCEPTIONS double_task = 1 error_message = 2 function_already_exists = 3 invalid_function_pool = 4 invalid_name = 5 too_many_functions = 6 no_modify_permission = 7 no_show_permission = 8 enqueue_system_failure = 9 canceled_in_corr = 10 OTHERS = 11. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |error from RS_FUNCTIONMODULE_INSERT: { sy-subrc } { sy-msgid }{ sy-msgno }| ). ENDIF. INSERT REPORT lv_include FROM lt_source. ENDLOOP. ENDMETHOD. "deserialize_functions METHOD deserialize_includes. DATA: lo_xml TYPE REF TO zcl_abapgit_xml_input, ls_progdir TYPE ty_progdir, lt_includes TYPE rso_t_objnm, lt_tpool TYPE textpool_table, lt_tpool_ext TYPE zif_abapgit_definitions=>ty_tpool_tt, lt_source TYPE TABLE OF abaptxt255. FIELD-SYMBOLS: <lv_include> LIKE LINE OF lt_includes. tadir_insert( iv_package ). io_xml->read( EXPORTING iv_name = 'INCLUDES' CHANGING cg_data = lt_includes ). LOOP AT lt_includes ASSIGNING <lv_include>. lt_source = mo_files->read_abap( iv_extra = <lv_include> ). lo_xml = mo_files->read_xml( <lv_include> ). lo_xml->read( EXPORTING iv_name = 'PROGDIR' CHANGING cg_data = ls_progdir ). lo_xml->read( EXPORTING iv_name = 'TPOOL' CHANGING cg_data = lt_tpool_ext ). lt_tpool = read_tpool( lt_tpool_ext ). deserialize_program( is_progdir = ls_progdir it_source = lt_source it_tpool = lt_tpool iv_package = iv_package ). deserialize_textpool( iv_program = <lv_include> it_tpool = lt_tpool iv_is_include = abap_true ). ENDLOOP. ENDMETHOD. "deserialize_includes METHOD deserialize_xml. DATA: lv_complete TYPE rs38l-area, lv_namespace TYPE rs38l-namespace, lv_areat TYPE tlibt-areat, lv_stext TYPE tftit-stext, lv_group TYPE rs38l-area, lv_abap_version TYPE trdir-uccheck. lv_abap_version = get_abap_version( io_xml ). lv_complete = ms_item-obj_name. CALL FUNCTION 'FUNCTION_INCLUDE_SPLIT' EXPORTING complete_area = lv_complete IMPORTING namespace = lv_namespace group = lv_group EXCEPTIONS include_not_exists = 1 group_not_exists = 2 no_selections = 3 no_function_include = 4 no_function_pool = 5 delimiter_wrong_position = 6 no_customer_function_group = 7 no_customer_function_include = 8 reserved_name_customer = 9 namespace_too_long = 10 area_length_error = 11 OTHERS = 12. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from FUNCTION_INCLUDE_SPLIT' ). ENDIF. io_xml->read( EXPORTING iv_name = 'AREAT' CHANGING cg_data = lv_areat ). lv_stext = lv_areat. CALL FUNCTION 'RS_FUNCTION_POOL_INSERT' EXPORTING function_pool = lv_group short_text = lv_stext namespace = lv_namespace devclass = iv_package unicode_checks = lv_abap_version EXCEPTIONS name_already_exists = 1 name_not_correct = 2 function_already_exists = 3 invalid_function_pool = 4 invalid_name = 5 too_many_functions = 6 no_modify_permission = 7 no_show_permission = 8 enqueue_system_failure = 9 canceled_in_corr = 10 undefined_error = 11 OTHERS = 12. IF sy-subrc <> 0 AND sy-subrc <> 1 AND sy-subrc <> 3. * todo, change description zcx_abapgit_exception=>raise( 'error from RS_FUNCTION_POOL_INSERT' ). ENDIF. ENDMETHOD. "deserialize_xml METHOD functions. DATA: lv_area TYPE rs38l-area. lv_area = ms_item-obj_name. CALL FUNCTION 'RS_FUNCTION_POOL_CONTENTS' EXPORTING function_pool = lv_area TABLES functab = rt_functab EXCEPTIONS function_pool_not_found = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from RS_FUNCTION_POOL_CONTENTS' ). ENDIF. SORT rt_functab BY funcname ASCENDING. DELETE ADJACENT DUPLICATES FROM rt_functab COMPARING funcname. ENDMETHOD. "functions METHOD get_abap_version. DATA: lt_includes TYPE rso_t_objnm, ls_progdir TYPE ty_progdir, lo_xml TYPE REF TO zcl_abapgit_xml_input. FIELD-SYMBOLS: <lv_include> LIKE LINE OF lt_includes. io_xml->read( EXPORTING iv_name = 'INCLUDES' CHANGING cg_data = lt_includes ). LOOP AT lt_includes ASSIGNING <lv_include>. lo_xml = mo_files->read_xml( <lv_include> ). lo_xml->read( EXPORTING iv_name = 'PROGDIR' CHANGING cg_data = ls_progdir ). IF rv_abap_version IS INITIAL. rv_abap_version = ls_progdir-uccheck. ELSEIF rv_abap_version NE ls_progdir-uccheck. *** All includes need to have the same ABAP language version zcx_abapgit_exception=>raise( 'different ABAP Language Versions' ). ENDIF. ENDLOOP. IF rv_abap_version IS INITIAL. rv_abap_version = 'X'. ENDIF. ENDMETHOD. METHOD includes. TYPES: BEGIN OF ty_reposrc, progname TYPE reposrc-progname, cnam TYPE reposrc-cnam, END OF ty_reposrc. DATA: lt_reposrc TYPE STANDARD TABLE OF ty_reposrc WITH DEFAULT KEY, ls_reposrc LIKE LINE OF lt_reposrc, lv_program TYPE program, lv_offset_ns TYPE i, lv_tabix LIKE sy-tabix, lt_functab TYPE ty_rs38l_incl_tt. FIELD-SYMBOLS: <lv_include> LIKE LINE OF rt_includes, <ls_func> LIKE LINE OF lt_functab. lv_program = main_name( ). lt_functab = functions( ). CALL FUNCTION 'RS_GET_ALL_INCLUDES' EXPORTING program = lv_program * WITH_RESERVED_INCLUDES = * WITH_CLASS_INCLUDES = ' ' hmm, todo TABLES includetab = rt_includes EXCEPTIONS not_existent = 1 no_program = 2 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from RS_GET_ALL_INCLUDES' ). ENDIF. LOOP AT lt_functab ASSIGNING <ls_func>. DELETE TABLE rt_includes FROM <ls_func>-include. ENDLOOP. * handle generated maintenance views APPEND INITIAL LINE TO rt_includes ASSIGNING <lv_include>. IF ms_item-obj_name(1) <> '/'. "FGroup name does not contain a namespace <lv_include> = |L{ ms_item-obj_name }T00|. ELSE. "FGroup name contains a namespace lv_offset_ns = find( val = ms_item-obj_name+1 sub = '/' ). lv_offset_ns = lv_offset_ns + 2. <lv_include> = |{ ms_item-obj_name(lv_offset_ns) }L{ ms_item-obj_name+lv_offset_ns }T00|. ENDIF. IF lines( rt_includes ) > 0. SELECT progname cnam FROM reposrc INTO TABLE lt_reposrc FOR ALL ENTRIES IN rt_includes WHERE progname = rt_includes-table_line AND r3state = 'A'. SORT lt_reposrc BY progname ASCENDING. ENDIF. LOOP AT rt_includes ASSIGNING <lv_include>. lv_tabix = sy-tabix. * skip SAP standard includes and also make sure the include exists READ TABLE lt_reposrc INTO ls_reposrc WITH KEY progname = <lv_include> BINARY SEARCH. IF sy-subrc <> 0 OR ls_reposrc-cnam = 'SAP'. DELETE rt_includes INDEX lv_tabix. ENDIF. ENDLOOP. APPEND lv_program TO rt_includes. ENDMETHOD. "includes METHOD is_any_function_module_locked. DATA: lt_functions TYPE zcl_abapgit_object_fugr=>ty_rs38l_incl_tt. FIELD-SYMBOLS: <ls_function> TYPE rs38l_incl. TRY. lt_functions = functions( ). CATCH zcx_abapgit_exception. RETURN. ENDTRY. LOOP AT lt_functions ASSIGNING <ls_function>. IF exists_a_lock_entry_for( iv_lock_object = 'ESFUNCTION' iv_argument = |{ <ls_function>-funcname }| ) = abap_true. rv_any_function_module_locked = abap_true. EXIT. ENDIF. ENDLOOP. ENDMETHOD. METHOD is_any_include_locked. DATA: lt_includes TYPE rso_t_objnm. FIELD-SYMBOLS: <lv_include> TYPE sobj_name. TRY. lt_includes = includes( ). CATCH zcx_abapgit_exception. RETURN. ENDTRY. LOOP AT lt_includes ASSIGNING <lv_include>. IF exists_a_lock_entry_for( iv_lock_object = 'ESRDIRE' iv_argument = |{ <lv_include> }| ) = abap_true. rv_is_any_include_locked = abap_true. EXIT. ENDIF. ENDLOOP. ENDMETHOD. METHOD is_function_group_locked. DATA: lv_object TYPE eqegraarg . lv_object = |FG{ ms_item-obj_name }|. OVERLAY lv_object WITH ' '. lv_object = lv_object && '*'. rv_is_functions_group_locked = exists_a_lock_entry_for( iv_lock_object = 'EEUDB' iv_argument = lv_object ). ENDMETHOD. METHOD main_name. DATA: lv_area TYPE rs38l-area, lv_namespace TYPE rs38l-namespace, lv_group TYPE rs38l-area. lv_area = ms_item-obj_name. CALL FUNCTION 'FUNCTION_INCLUDE_SPLIT' EXPORTING complete_area = lv_area IMPORTING namespace = lv_namespace group = lv_group EXCEPTIONS include_not_exists = 1 group_not_exists = 2 no_selections = 3 no_function_include = 4 no_function_pool = 5 delimiter_wrong_position = 6 no_customer_function_group = 7 no_customer_function_include = 8 reserved_name_customer = 9 namespace_too_long = 10 area_length_error = 11 OTHERS = 12. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from FUNCTION_INCLUDE_SPLIT' ). ENDIF. CONCATENATE lv_namespace 'SAPL' lv_group INTO rv_program. ENDMETHOD. "main_name METHOD serialize_functions. DATA: lt_source TYPE TABLE OF rssource, lt_functab TYPE ty_rs38l_incl_tt, lt_new_source TYPE rsfb_source, ls_function LIKE LINE OF rt_functions. FIELD-SYMBOLS: <ls_func> LIKE LINE OF lt_functab. lt_functab = functions( ). LOOP AT lt_functab ASSIGNING <ls_func>. * fm RPY_FUNCTIONMODULE_READ does not support source code * lines longer than 72 characters CLEAR ls_function. MOVE-CORRESPONDING <ls_func> TO ls_function. CLEAR lt_new_source. CLEAR lt_source. CALL FUNCTION 'RPY_FUNCTIONMODULE_READ_NEW' EXPORTING functionname = <ls_func>-funcname IMPORTING global_flag = ls_function-global_flag remote_call = ls_function-remote_call update_task = ls_function-update_task short_text = ls_function-short_text remote_basxml_supported = ls_function-remote_basxml TABLES import_parameter = ls_function-import changing_parameter = ls_function-changing export_parameter = ls_function-export tables_parameter = ls_function-tables exception_list = ls_function-exception documentation = ls_function-documentation source = lt_source CHANGING new_source = lt_new_source EXCEPTIONS error_message = 1 function_not_found = 2 invalid_name = 3 OTHERS = 4. IF sy-subrc = 2. CONTINUE. ELSEIF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from RPY_FUNCTIONMODULE_READ_NEW' ). ENDIF. ls_function-exception_classes = are_exceptions_class_based( <ls_func>-funcname ). APPEND ls_function TO rt_functions. IF NOT lt_new_source IS INITIAL. mo_files->add_abap( iv_extra = <ls_func>-funcname it_abap = lt_new_source ). ELSE. mo_files->add_abap( iv_extra = <ls_func>-funcname it_abap = lt_source ). ENDIF. ENDLOOP. ENDMETHOD. "serialize_functions METHOD serialize_includes. DATA: lt_includes TYPE rso_t_objnm. FIELD-SYMBOLS: <lv_include> LIKE LINE OF lt_includes. lt_includes = includes( ). LOOP AT lt_includes ASSIGNING <lv_include>. * todo, filename is not correct, a include can be used in several programs serialize_program( is_item = ms_item io_files = mo_files iv_program = <lv_include> iv_extra = <lv_include> ). ENDLOOP. ENDMETHOD. "serialize_includes METHOD serialize_xml. DATA: lt_includes TYPE rso_t_objnm, lv_areat TYPE tlibt-areat. SELECT SINGLE areat INTO lv_areat FROM tlibt WHERE spras = mv_language AND area = ms_item-obj_name. "#EC CI_GENBUFF "#EC CI_SUBRC lt_includes = includes( ). io_xml->add( iv_name = 'AREAT' ig_data = lv_areat ). io_xml->add( iv_name = 'INCLUDES' ig_data = lt_includes ). ENDMETHOD. "serialize_xml METHOD update_where_used. * make extra sure the where-used list is updated after deletion * Experienced some problems with the T00 include * this method just tries to update everything DATA: lv_include LIKE LINE OF it_includes, lo_cross TYPE REF TO cl_wb_crossreference. LOOP AT it_includes INTO lv_include. CREATE OBJECT lo_cross EXPORTING p_name = lv_include p_include = lv_include. lo_cross->index_actualize( ). ENDLOOP. ENDMETHOD. METHOD zif_abapgit_object~changed_by. TYPES: BEGIN OF ty_stamps, user TYPE xubname, date TYPE d, time TYPE t, END OF ty_stamps. DATA: lt_stamps TYPE STANDARD TABLE OF ty_stamps WITH DEFAULT KEY, lv_program TYPE program, lt_includes TYPE rso_t_objnm. FIELD-SYMBOLS: <ls_stamp> LIKE LINE OF lt_stamps, <lv_include> LIKE LINE OF lt_includes. lv_program = main_name( ). CALL FUNCTION 'RS_GET_ALL_INCLUDES' EXPORTING program = lv_program TABLES includetab = lt_includes EXCEPTIONS not_existent = 1 no_program = 2 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from RS_GET_ALL_INCLUDES' ). ENDIF. SELECT unam AS user udat AS date utime AS time FROM reposrc APPENDING CORRESPONDING FIELDS OF TABLE lt_stamps WHERE progname = lv_program AND r3state = 'A'. "#EC CI_SUBRC LOOP AT lt_includes ASSIGNING <lv_include>. SELECT unam AS user udat AS date utime AS time FROM reposrc APPENDING CORRESPONDING FIELDS OF TABLE lt_stamps WHERE progname = <lv_include> AND r3state = 'A'. "#EC CI_SUBRC ENDLOOP. SELECT unam AS user udat AS date utime AS time FROM repotext " Program text pool APPENDING CORRESPONDING FIELDS OF TABLE lt_stamps WHERE progname = lv_program AND r3state = 'A'. "#EC CI_SUBRC SELECT vautor AS user vdatum AS date vzeit AS time FROM eudb " GUI APPENDING CORRESPONDING FIELDS OF TABLE lt_stamps WHERE relid = 'CU' AND name = lv_program AND srtf2 = 0 ##TOO_MANY_ITAB_FIELDS. * Screens: username not stored in D020S database table SORT lt_stamps BY date DESCENDING time DESCENDING. READ TABLE lt_stamps INDEX 1 ASSIGNING <ls_stamp>. IF sy-subrc = 0. rv_user = <ls_stamp>-user. ELSE. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~compare_to_remote_version. CREATE OBJECT ro_comparison_result TYPE zcl_abapgit_comparison_null. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_area TYPE rs38l-area, lt_includes TYPE rso_t_objnm. lt_includes = includes( ). lv_area = ms_item-obj_name. CALL FUNCTION 'RS_FUNCTION_POOL_DELETE' EXPORTING area = lv_area suppress_popups = abap_true skip_progress_ind = abap_true EXCEPTIONS canceled_in_corr = 1 enqueue_system_failure = 2 function_exist = 3 not_executed = 4 no_modify_permission = 5 no_show_permission = 6 permission_failure = 7 pool_not_exist = 8 cancelled = 9 OTHERS = 10. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from RS_FUNCTION_POOL_DELETE' ). ENDIF. update_where_used( lt_includes ). ENDMETHOD. "delete METHOD zif_abapgit_object~deserialize. DATA: lv_program_name TYPE programm, lt_functions TYPE ty_function_tt, lt_dynpros TYPE ty_dynpro_tt, ls_cua TYPE ty_cua. deserialize_xml( io_xml = io_xml iv_package = iv_package ). io_xml->read( EXPORTING iv_name = 'FUNCTIONS' CHANGING cg_data = lt_functions ). deserialize_functions( lt_functions ). deserialize_includes( io_xml = io_xml iv_package = iv_package ). lv_program_name = main_name( ). io_xml->read( EXPORTING iv_name = 'DYNPROS' CHANGING cg_data = lt_dynpros ). deserialize_dynpros( it_dynpros = lt_dynpros ). io_xml->read( EXPORTING iv_name = 'CUA' CHANGING cg_data = ls_cua ). deserialize_cua( iv_program_name = lv_program_name is_cua = ls_cua ). ENDMETHOD. "deserialize METHOD zif_abapgit_object~exists. DATA: lv_pool TYPE tlibg-area. lv_pool = ms_item-obj_name. CALL FUNCTION 'RS_FUNCTION_POOL_EXISTS' EXPORTING function_pool = lv_pool EXCEPTIONS pool_not_exists = 1. rv_bool = boolc( sy-subrc <> 1 ). ENDMETHOD. "zif_abapgit_object~exists METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. "zif_abapgit_object~get_metadata METHOD zif_abapgit_object~has_changed_since. DATA: lt_functab TYPE ty_rs38l_incl_tt, lt_includes TYPE rso_t_objnm. FIELD-SYMBOLS: <ls_func> LIKE LINE OF lt_functab, <lv_include_name> LIKE LINE OF lt_includes. lt_includes = includes( ). " Main prog also included here LOOP AT lt_includes ASSIGNING <lv_include_name>. rv_changed = check_prog_changed_since( iv_program = <lv_include_name> iv_timestamp = iv_timestamp ). IF rv_changed = abap_true. RETURN. ENDIF. ENDLOOP. lt_functab = functions( ). LOOP AT lt_functab ASSIGNING <ls_func>. rv_changed = check_prog_changed_since( iv_program = <ls_func>-include iv_timestamp = iv_timestamp ). IF rv_changed = abap_true. RETURN. ENDIF. ENDLOOP. ENDMETHOD. "zif_abapgit_object~has_changed_since METHOD zif_abapgit_object~is_locked. DATA: lv_program TYPE program. lv_program = main_name( ). IF is_function_group_locked( ) = abap_true OR is_any_include_locked( ) = abap_true OR is_any_function_module_locked( ) = abap_true OR is_any_dynpro_locked( lv_program ) = abap_true OR is_cua_locked( lv_program ) = abap_true OR is_text_locked( lv_program ) = abap_true. rv_is_locked = abap_true. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~jump. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ms_item-obj_name object_type = 'FUGR' in_new_window = abap_true. ENDMETHOD. "jump METHOD zif_abapgit_object~serialize. * function group SEUF * function group SIFP * function group SUNI DATA: lt_functions TYPE ty_function_tt, ls_progdir TYPE ty_progdir, lv_program_name TYPE programm, lt_dynpros TYPE ty_dynpro_tt, ls_cua TYPE ty_cua. IF zif_abapgit_object~exists( ) = abap_false. RETURN. ENDIF. serialize_xml( io_xml ). lt_functions = serialize_functions( ). io_xml->add( iv_name = 'FUNCTIONS' ig_data = lt_functions ). serialize_includes( ). lv_program_name = main_name( ). ls_progdir = read_progdir( lv_program_name ). IF ls_progdir-subc = 'F'. lt_dynpros = serialize_dynpros( lv_program_name ). io_xml->add( iv_name = 'DYNPROS' ig_data = lt_dynpros ). ls_cua = serialize_cua( lv_program_name ). io_xml->add( iv_name = 'CUA' ig_data = ls_cua ). ENDIF. ENDMETHOD. "serialize ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 69, 1018, 81, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 23065, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 3808, 2548, 75, 62, 259, 565, 62, 926, 41876, 49053, 9795, 43679, 3963, 44608, 2548, 75, 62, 259, 565, 13315, 5550, 38865, 35374, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 8818, 11, 198, 220, 220, 220, 220, 220, 220, 220, 25439, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 44608, 2548, 75, 62, 69, 7402, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3298, 62, 32109, 220, 220, 220, 220, 220, 220, 41876, 44608, 2548, 75, 12, 20541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 6569, 62, 13345, 220, 220, 220, 220, 220, 220, 41876, 44608, 2548, 75, 12, 47960, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4296, 62, 35943, 220, 220, 220, 220, 220, 220, 41876, 44608, 2548, 75, 12, 315, 2093, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1790, 62, 5239, 220, 220, 220, 220, 220, 220, 220, 41876, 256, 701, 270, 12, 301, 2302, 11, 198, 220, 220, 220, 220, 220, 220, 220, 6569, 62, 12093, 19875, 220, 220, 220, 220, 41876, 44608, 2548, 75, 12, 12093, 19875, 62, 25616, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1330, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 44608, 11011, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 5609, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 44608, 11693, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10784, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 374, 8044, 79, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 8893, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 374, 301, 2436, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 6631, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 374, 8044, 66, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10314, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 374, 28202, 4598, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 6631, 62, 37724, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 8818, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 8818, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 8818, 13315, 5550, 38865, 35374, 764, 628, 220, 220, 220, 337, 36252, 50, 4296, 62, 3003, 62, 1484, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 42813, 41876, 374, 568, 62, 83, 62, 26801, 21533, 764, 198, 220, 220, 220, 337, 36252, 50, 1388, 62, 3672, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 23065, 8, 41876, 1430, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 5499, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 12543, 310, 397, 8, 41876, 1259, 62, 3808, 2548, 75, 62, 259, 565, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 3407, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 42813, 8, 41876, 374, 568, 62, 83, 62, 26801, 21533, 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, 12543, 2733, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 12543, 2733, 8, 41876, 1259, 62, 8818, 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, 748, 48499, 1096, 62, 12543, 2733, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 12543, 2733, 41876, 1259, 62, 8818, 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, 19875, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 19875, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 19875, 62, 22915, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 748, 48499, 1096, 62, 19875, 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, 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 ]
CLASS ycl_abapgit_object_tabl_valid DEFINITION PUBLIC FINAL. PUBLIC SECTION. METHODS validate IMPORTING io_remote_version TYPE REF TO ycl_abapgit_xml_input io_local_version TYPE REF TO ycl_abapgit_xml_input RETURNING VALUE(rv_message) TYPE string RAISING ycx_abapgit_exception. PRIVATE SECTION. TYPES: tty_founds TYPE STANDARD TABLE OF rsfindlst WITH NON-UNIQUE DEFAULT KEY, tty_seu_obj TYPE STANDARD TABLE OF seu_obj WITH NON-UNIQUE DEFAULT KEY. METHODS: get_where_used_recursive IMPORTING iv_object_name TYPE csequence iv_depth TYPE i iv_object_type TYPE euobj-id it_scope TYPE tty_seu_obj RETURNING VALUE(rt_founds_all) TYPE tty_founds RAISING ycx_abapgit_exception, is_structure_used_in_db_table IMPORTING iv_object_name TYPE dd02v-tabname RETURNING VALUE(rv_is_structure_used_in_db_tab) TYPE abap_bool RAISING ycx_abapgit_exception. ENDCLASS. CLASS ycl_abapgit_object_tabl_valid IMPLEMENTATION. METHOD get_where_used_recursive. DATA: lt_findstrings TYPE stringtab, lt_founds TYPE STANDARD TABLE OF rsfindlst, lt_scope TYPE tty_seu_obj, lv_findstring LIKE LINE OF lt_findstrings. FIELD-SYMBOLS: <ls_found> TYPE rsfindlst. lt_scope = it_scope. lv_findstring = iv_object_name. INSERT lv_findstring INTO TABLE lt_findstrings. DO iv_depth TIMES. CLEAR: lt_founds. CALL FUNCTION 'RS_EU_CROSSREF' EXPORTING i_find_obj_cls = iv_object_type no_dialog = 'X' TABLES i_findstrings = lt_findstrings o_founds = lt_founds i_scope_object_cls = lt_scope EXCEPTIONS not_executed = 1 not_found = 2 illegal_object = 3 no_cross_for_this_object = 4 batch = 5 batchjob_error = 6 wrong_type = 7 object_not_exist = 8 OTHERS = 9. IF sy-subrc = 1 OR sy-subrc = 2 OR lines( lt_founds ) = 0. EXIT. ELSEIF sy-subrc > 2. ycx_abapgit_exception=>raise_t100( ). ENDIF. INSERT LINES OF lt_founds INTO TABLE rt_founds_all. CLEAR: lt_findstrings. LOOP AT lt_founds ASSIGNING <ls_found>. lv_findstring = <ls_found>-object. INSERT lv_findstring INTO TABLE lt_findstrings. ENDLOOP. ENDDO. ENDMETHOD. METHOD validate. DATA: lt_previous_table_fields TYPE TABLE OF dd03p, ls_previous_table_field LIKE LINE OF lt_previous_table_fields, lt_current_table_fields TYPE TABLE OF dd03p, ls_current_table_field LIKE LINE OF lt_current_table_fields, ls_dd02v TYPE dd02v. io_remote_version->read( EXPORTING iv_name = 'DD02V' CHANGING cg_data = ls_dd02v ). " We only want to compare transparent tables, or structures used in transparent tables IF ls_dd02v-tabclass <> 'TRANSP' AND is_structure_used_in_db_table( ls_dd02v-tabname ) = abap_false. RETURN. ENDIF. io_remote_version->read( EXPORTING iv_name = 'DD03P_TABLE' CHANGING cg_data = lt_previous_table_fields ). io_local_version->read( EXPORTING iv_name = 'DD03P_TABLE' CHANGING cg_data = lt_current_table_fields ). LOOP AT lt_previous_table_fields INTO ls_previous_table_field. READ TABLE lt_current_table_fields WITH KEY fieldname = ls_previous_table_field-fieldname INTO ls_current_table_field. IF sy-subrc = 0. IF ls_current_table_field-rollname <> ls_previous_table_field-rollname. rv_message = 'Fields were changed. This may lead to inconsistencies.'. ENDIF. ELSE. rv_message = 'Fields were changed. This may lead to inconsistencies.'. ENDIF. ENDLOOP. ENDMETHOD. METHOD is_structure_used_in_db_table. DATA: lt_scope TYPE tty_seu_obj, lt_founds TYPE tty_founds. APPEND 'TABL' TO lt_scope. APPEND 'STRU' TO lt_scope. lt_founds = get_where_used_recursive( iv_object_name = iv_object_name iv_object_type = 'STRU' it_scope = lt_scope iv_depth = 5 ). DELETE lt_founds WHERE object_cls <> 'DT'. rv_is_structure_used_in_db_tab = boolc( lines( lt_founds ) > 0 ). ENDMETHOD. ENDCLASS.
[ 31631, 331, 565, 62, 397, 499, 18300, 62, 15252, 62, 8658, 75, 62, 12102, 5550, 20032, 17941, 44731, 25261, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 26571, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 47960, 62, 9641, 41876, 4526, 37, 5390, 331, 565, 62, 397, 499, 18300, 62, 19875, 62, 15414, 198, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 12001, 62, 9641, 220, 41876, 4526, 37, 5390, 331, 565, 62, 397, 499, 18300, 62, 19875, 62, 15414, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 20500, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 256, 774, 62, 69, 3733, 220, 41876, 49053, 9795, 43679, 3963, 44608, 19796, 75, 301, 198, 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, 256, 774, 62, 325, 84, 62, 26801, 41876, 49053, 9795, 43679, 3963, 384, 84, 62, 26801, 198, 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, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 651, 62, 3003, 62, 1484, 62, 8344, 30753, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 15252, 62, 3672, 220, 220, 220, 220, 220, 220, 41876, 269, 43167, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 18053, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 15252, 62, 4906, 220, 220, 220, 220, 220, 220, 41876, 304, 84, 26801, 12, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 29982, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 256, 774, 62, 325, 84, 62, 26801, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 69, 3733, 62, 439, 8, 41876, 256, 774, 62, 69, 3733, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 628, 220, 220, 220, 220, 220, 318, 62, 301, 5620, 62, 1484, 62, 259, 62, 9945, 62, 11487, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 15252, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49427, 2999, 85, 12, 8658, 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, 81, 85, 62, 271, 62, 301, 5620, 62, 1484, 62, 259, 62, 9945, 62, 8658, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 331, 565, 62, 397, 499, 18300, 62, 15252, 62, 8658, 75, 62, 12102, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 651, 62, 3003, 62, 1484, 62, 8344, 30753, 13, 628, 220, 220, 220, 42865, 25, 300, 83, 62, 19796, 37336, 41876, 4731, 8658, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 69, 3733, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 44608, 19796, 75, 301, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 29982, 220, 220, 220, 220, 220, 220, 41876, 256, 774, 62, 325, 84, 62, 26801, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 19796, 8841, 220, 34178, 48920, 3963, 300, 83, 62, 19796, 37336, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 9275, 29, 41876, 44608, 19796, 75, 301, 13, 628, 220, 220, 220, 300, 83, 62, 29982, 796, 340, 62, 29982, 13, 628, 220, 220, 220, 300, 85, 62, 19796, 8841, 796, 21628, 62, 15252, 62, 3672, 13, 198, 220, 220, 220, 29194, 17395, 300, 85, 62, 19796, 8841, 39319, 43679, 300, 83, 62, 19796, 37336, 13, 628, 220, 220, 220, 8410, 21628, 62, 18053, 31742, 1546, 13, 628, 220, 220, 220, 220, 220, 30301, 1503, 25, 300, 83, 62, 69, 3733, 13, 628, 220, 220, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 6998, 62, 19684, 62, 9419, 18420, 31688, 6, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 19796, 62, 26801, 62, 565, 82, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 15252, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 645, 62, 38969, 519, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 55, 6, 198, 220, 220, 220, 220, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 19796, 37336, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 83, 62, 19796, 37336, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_abapgit_repo_online DEFINITION PUBLIC INHERITING FROM zcl_abapgit_repo FINAL CREATE PUBLIC . PUBLIC SECTION. METHODS constructor IMPORTING !is_data TYPE zif_abapgit_persistence=>ty_repo RAISING zcx_abapgit_exception . METHODS get_url RETURNING VALUE(rv_url) TYPE zif_abapgit_persistence=>ty_repo-url . METHODS get_branch_name RETURNING VALUE(rv_name) TYPE zif_abapgit_persistence=>ty_repo-branch_name . METHODS get_head_branch_name RETURNING VALUE(rv_name) TYPE zif_abapgit_persistence=>ty_repo-head_branch . METHODS set_url IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url RAISING zcx_abapgit_exception . METHODS set_branch_name IMPORTING !iv_branch_name TYPE zif_abapgit_persistence=>ty_repo-branch_name RAISING zcx_abapgit_exception . METHODS set_new_remote IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url !iv_branch_name TYPE zif_abapgit_persistence=>ty_repo-branch_name RAISING zcx_abapgit_exception . METHODS get_sha1_local RETURNING VALUE(rv_sha1) TYPE zif_abapgit_persistence=>ty_repo-sha1 . METHODS get_sha1_remote RETURNING VALUE(rv_sha1) TYPE zif_abapgit_persistence=>ty_repo-sha1 RAISING zcx_abapgit_exception . METHODS get_objects RETURNING VALUE(rt_objects) TYPE zif_abapgit_definitions=>ty_objects_tt RAISING zcx_abapgit_exception . METHODS status IMPORTING !io_log TYPE REF TO zcl_abapgit_log OPTIONAL RETURNING VALUE(rt_results) TYPE zif_abapgit_definitions=>ty_results_tt RAISING zcx_abapgit_exception . METHODS reset_status . METHODS set_objects IMPORTING !it_objects TYPE zif_abapgit_definitions=>ty_objects_tt RAISING zcx_abapgit_exception . METHODS initialize RAISING zcx_abapgit_exception . METHODS push IMPORTING !is_comment TYPE zif_abapgit_definitions=>ty_comment !io_stage TYPE REF TO zcl_abapgit_stage RAISING zcx_abapgit_exception . METHODS get_unnecessary_local_objs RETURNING VALUE(rt_unnecessary_local_objects) TYPE zif_abapgit_definitions=>ty_tadir_tt RAISING zcx_abapgit_exception . METHODS deserialize REDEFINITION . METHODS get_files_remote REDEFINITION . METHODS rebuild_local_checksums REDEFINITION . METHODS refresh REDEFINITION . PRIVATE SECTION. DATA: mt_objects TYPE zif_abapgit_definitions=>ty_objects_tt, mv_branch TYPE zif_abapgit_definitions=>ty_sha1, mv_initialized TYPE abap_bool, mo_branches TYPE REF TO zcl_abapgit_git_branch_list, mt_status TYPE zif_abapgit_definitions=>ty_results_tt. METHODS: handle_stage_ignore IMPORTING io_stage TYPE REF TO zcl_abapgit_stage RAISING zcx_abapgit_exception, actualize_head_branch RAISING zcx_abapgit_exception, delete_initial_online_repo IMPORTING iv_commit TYPE flag RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_repo_online IMPLEMENTATION. METHOD actualize_head_branch. DATA lv_branch_name TYPE string. lv_branch_name = mo_branches->get_head( )-name. IF lv_branch_name <> ms_data-head_branch. set( iv_head_branch = lv_branch_name ). ENDIF. ENDMETHOD. "actualize_head_branch METHOD constructor. super->constructor( is_data ). mv_initialized = abap_false. ENDMETHOD. "constructor METHOD delete_initial_online_repo. IF me->is_offline( ) = abap_false AND me->get_sha1_local( ) IS INITIAL. zcl_abapgit_repo_srv=>get_instance( )->delete( me ). IF iv_commit = abap_true. COMMIT WORK. ENDIF. ENDIF. ENDMETHOD. " delete_initial_online_repo METHOD deserialize. initialize( ). super->deserialize( is_checks ). set( iv_sha1 = mv_branch ). reset_status( ). COMMIT WORK AND WAIT. ENDMETHOD. "deserialize METHOD get_branch_name. rv_name = ms_data-branch_name. ENDMETHOD. "get_branch_name METHOD get_files_remote. initialize( ). rt_files = mt_remote. ENDMETHOD. "get_files METHOD get_head_branch_name. rv_name = ms_data-head_branch. ENDMETHOD. "get_head_branch_name METHOD get_objects. initialize( ). rt_objects = mt_objects. ENDMETHOD. "get_objects METHOD get_sha1_local. rv_sha1 = ms_data-sha1. ENDMETHOD. "get_sha1_local METHOD get_sha1_remote. initialize( ). rv_sha1 = mv_branch. ENDMETHOD. "get_sha1_remote METHOD get_unnecessary_local_objs. DATA: lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt, lt_tadir_unique TYPE HASHED TABLE OF zif_abapgit_definitions=>ty_tadir WITH UNIQUE KEY pgmid object obj_name, lt_local TYPE zif_abapgit_definitions=>ty_files_item_tt, lt_remote TYPE zif_abapgit_definitions=>ty_files_tt, lt_status TYPE zif_abapgit_definitions=>ty_results_tt, lv_package TYPE zif_abapgit_persistence=>ty_repo-package. FIELD-SYMBOLS: <ls_status> TYPE zif_abapgit_definitions=>ty_result, <ls_tadir> TYPE zif_abapgit_definitions=>ty_tadir. " delete objects which are added locally but are not in remote repo lt_local = get_files_local( ). lt_remote = get_files_remote( ). lt_status = status( ). lv_package = me->get_package( ). lt_tadir = zcl_abapgit_tadir=>read( lv_package ). SORT lt_tadir BY pgmid ASCENDING object ASCENDING obj_name ASCENDING devclass ASCENDING. LOOP AT lt_status ASSIGNING <ls_status> WHERE lstate = zif_abapgit_definitions=>gc_state-added. READ TABLE lt_tadir ASSIGNING <ls_tadir> WITH KEY pgmid = 'R3TR' object = <ls_status>-obj_type obj_name = <ls_status>-obj_name devclass = <ls_status>-package BINARY SEARCH. IF sy-subrc <> 0. * skip objects that does not exist locally CONTINUE. ENDIF. INSERT <ls_tadir> INTO TABLE lt_tadir_unique. ENDLOOP. rt_unnecessary_local_objects = lt_tadir_unique. ENDMETHOD. METHOD get_url. rv_url = ms_data-url. ENDMETHOD. "get_url METHOD handle_stage_ignore. DATA: lv_add TYPE abap_bool, lo_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit, lt_stage TYPE zcl_abapgit_stage=>ty_stage_tt. FIELD-SYMBOLS: <ls_stage> LIKE LINE OF lt_stage. lo_dot_abapgit = get_dot_abapgit( ). lt_stage = io_stage->get_all( ). LOOP AT lt_stage ASSIGNING <ls_stage> WHERE method = zcl_abapgit_stage=>c_method-ignore. lo_dot_abapgit->add_ignore( iv_path = <ls_stage>-file-path iv_filename = <ls_stage>-file-filename ). " remove it from the staging object, as the action is handled here io_stage->reset( iv_path = <ls_stage>-file-path iv_filename = <ls_stage>-file-filename ). lv_add = abap_true. ENDLOOP. IF lv_add = abap_true. io_stage->add( iv_path = zif_abapgit_definitions=>gc_root_dir iv_filename = zif_abapgit_definitions=>gc_dot_abapgit iv_data = lo_dot_abapgit->serialize( ) ). set_dot_abapgit( lo_dot_abapgit ). ENDIF. ENDMETHOD. METHOD initialize. IF mv_initialized = abap_false. refresh( ). ENDIF. ENDMETHOD. METHOD push. DATA: lv_branch TYPE zif_abapgit_definitions=>ty_sha1, lt_updated_files TYPE zif_abapgit_definitions=>ty_file_signatures_tt, lv_text TYPE string. IF ms_data-branch_name CP 'refs/tags*'. lv_text = |You're working on a tag. Currently it's not | && |possible to push on tags. Consider creating a branch instead|. zcx_abapgit_exception=>raise( lv_text ). ENDIF. handle_stage_ignore( io_stage ). zcl_abapgit_git_porcelain=>push( EXPORTING is_comment = is_comment io_repo = me io_stage = io_stage IMPORTING ev_branch = lv_branch et_updated_files = lt_updated_files ). IF io_stage->get_branch_sha1( ) = get_sha1_local( ). * pushing to the branch currently represented by this repository object mv_branch = lv_branch. set( iv_sha1 = lv_branch ). ELSE. refresh( ). ENDIF. update_local_checksums( lt_updated_files ). IF zcl_abapgit_stage_logic=>count( me ) = 0. set( iv_sha1 = lv_branch ). ENDIF. ENDMETHOD. "push METHOD rebuild_local_checksums. "REMOTE DATA: lt_remote TYPE zif_abapgit_definitions=>ty_files_tt, lt_local TYPE zif_abapgit_definitions=>ty_files_item_tt, ls_last_item TYPE zif_abapgit_definitions=>ty_item, lv_branch_equal TYPE abap_bool, lt_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt. FIELD-SYMBOLS: <ls_checksum> LIKE LINE OF lt_checksums, <ls_file_sig> LIKE LINE OF <ls_checksum>-files, <ls_remote> LIKE LINE OF lt_remote, <ls_local> LIKE LINE OF lt_local. lt_remote = get_files_remote( ). lt_local = get_files_local( ). lv_branch_equal = boolc( get_sha1_remote( ) = get_sha1_local( ) ). DELETE lt_local " Remove non-code related files except .abapgit WHERE item IS INITIAL AND NOT ( file-path = zif_abapgit_definitions=>gc_root_dir AND file-filename = zif_abapgit_definitions=>gc_dot_abapgit ). SORT lt_local BY item. SORT lt_remote BY path filename. LOOP AT lt_local ASSIGNING <ls_local>. IF ls_last_item <> <ls_local>-item OR sy-tabix = 1. " First or New item reached ? APPEND INITIAL LINE TO lt_checksums ASSIGNING <ls_checksum>. <ls_checksum>-item = <ls_local>-item. ls_last_item = <ls_local>-item. ENDIF. READ TABLE lt_remote ASSIGNING <ls_remote> WITH KEY path = <ls_local>-file-path filename = <ls_local>-file-filename BINARY SEARCH. CHECK sy-subrc = 0. " Ignore new ones APPEND INITIAL LINE TO <ls_checksum>-files ASSIGNING <ls_file_sig>. MOVE-CORRESPONDING <ls_local>-file TO <ls_file_sig>. " If hashes are equal -> local sha1 is OK " Else if R-branch is ahead -> assume changes were remote, state - local sha1 " Else (branches equal) -> assume changes were local, state - remote sha1 IF <ls_local>-file-sha1 <> <ls_remote>-sha1 AND lv_branch_equal = abap_true. <ls_file_sig>-sha1 = <ls_remote>-sha1. ENDIF. ENDLOOP. set( it_checksums = lt_checksums ). reset_status( ). ENDMETHOD. " rebuild_local_checksums. METHOD refresh. DATA: lo_progress TYPE REF TO zcl_abapgit_progress, lx_exception TYPE REF TO zcx_abapgit_exception. super->refresh( iv_drop_cache ). reset_status( ). CREATE OBJECT lo_progress EXPORTING iv_total = 1. lo_progress->show( iv_current = 1 iv_text = 'Fetch remote files' ) ##NO_TEXT. TRY. zcl_abapgit_git_porcelain=>pull( EXPORTING io_repo = me IMPORTING et_files = mt_remote et_objects = mt_objects ev_branch = mv_branch ). CATCH zcx_abapgit_exception INTO lx_exception. delete_initial_online_repo( abap_true ). RAISE EXCEPTION lx_exception. ENDTRY. mo_branches = zcl_abapgit_git_transport=>branches( get_url( ) ). actualize_head_branch( ). mv_initialized = abap_true. ENDMETHOD. "refresh METHOD reset_status. CLEAR mt_status. ENDMETHOD. " reset_status. METHOD set_branch_name. IF ms_data-local_settings-write_protected = abap_true. zcx_abapgit_exception=>raise( 'Cannot switch branch. Local code is write-protected by repo config' ). ENDIF. mv_initialized = abap_false. set( iv_branch_name = iv_branch_name ). ENDMETHOD. METHOD set_new_remote. IF ms_data-local_settings-write_protected = abap_true. zcx_abapgit_exception=>raise( 'Cannot change remote. Local code is write-protected by repo config' ). ENDIF. mv_initialized = abap_false. set( iv_url = iv_url iv_branch_name = iv_branch_name iv_head_branch = '' iv_sha1 = '' ). ENDMETHOD. "set_new_remote METHOD set_objects. mt_objects = it_objects. ENDMETHOD. METHOD set_url. IF ms_data-local_settings-write_protected = abap_true. zcx_abapgit_exception=>raise( 'Cannot change URL. Local code is write-protected by repo config' ). ENDIF. mv_initialized = abap_false. set( iv_url = iv_url ). ENDMETHOD. METHOD status. initialize( ). IF lines( mt_status ) = 0. mt_status = zcl_abapgit_file_status=>status( io_repo = me io_log = io_log ). ENDIF. rt_results = mt_status. ENDMETHOD. "status ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 7890, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 6371, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 6371, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 6371, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 1671, 3702, 62, 3672, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 3672, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 1671, 3702, 62, 3672, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 2256, 62, 1671, 3702, 62, 3672, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 3672, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2256, 62, 1671, 3702, 764, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 6371, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 6371, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 1671, 3702, 62, 3672, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1671, 3702, 62, 3672, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 1671, 3702, 62, 3672, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 3605, 62, 47960, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 6371, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1671, 3702, 62, 3672, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 1671, 3702, 62, 3672, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 26270, 16, 62, 12001, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 26270, 16, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 26270, 16, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 26270, 16, 62, 47960, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 26270, 16, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 26270, 16, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 48205, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 48205, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 48205, 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, 3722, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 6404, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 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, 220, 220, 337, 36252, 50, 13259, 62, 13376, 764, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 48205, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 48205, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 48205, 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, 41216, 198, 220, 220, 220, 220, 220, 17926, 1797, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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">Client for Rest HTTP web services</p> CLASS /gal/rest_client DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. TYPE-POOLS: abap. DATA: "! <p class="shorttext synchronized" lang="en">Base URI</p> base_uri TYPE string READ-ONLY, "! <p class="shorttext synchronized" lang="en">Host</p> host TYPE string READ-ONLY, "! <p class="shorttext synchronized" lang="en">Compatibility mode for old SAP releases</p> legacy_mode TYPE abap_bool READ-ONLY, "! <p class="shorttext synchronized" lang="en">Protocol (HTTP/HTTPS)</p> scheme TYPE i READ-ONLY, "! <p class="shorttext synchronized" lang="en">Service</p> service TYPE string READ-ONLY, "! <p class="shorttext synchronized" lang="en">SSL client identity</p> ssl_id TYPE ssfapplssl READ-ONLY. CLASS-METHODS: "! <p class="shorttext synchronized" lang="en">Create from web service name</p> "! "! @parameter path | <p class="shorttext synchronized" lang="en">Path in Configuration Store</p> "! @parameter name | <p class="shorttext synchronized" lang="en">Web Service Name</p> "! @parameter client | <p class="shorttext synchronized" lang="en">Web Service Client</p> "! @raising /gal/cx_rest_client_exception | <p class="shorttext synchronized" lang="en">Exception in connection with the HTTP REST Client</p> create_by_name IMPORTING path TYPE string DEFAULT `/Galileo Group AG/Open Source Components/Web Infrastructure/Web Services` "#EC NOTEXT name TYPE string RETURNING VALUE(client) TYPE REF TO /gal/rest_client RAISING /gal/cx_rest_client_exception, "! <p class="shorttext synchronized" lang="en">Create from URI</p> "! "! @parameter uri | <p class="shorttext synchronized" lang="en">URI</p> "! @parameter ssl_id | <p class="shorttext synchronized" lang="en">SSL client identity</p> "! @parameter client | <p class="shorttext synchronized" lang="en">Web Service Client</p> "! @parameter force_legacy_mode | <p class="shorttext synchronized" lang="en">Force compatibility mode (for test purposes only)</p> create_from_uri IMPORTING uri TYPE csequence ssl_id TYPE ssfapplssl DEFAULT 'ANONYM' force_legacy_mode TYPE abap_bool DEFAULT abap_false RETURNING VALUE(client) TYPE REF TO /gal/rest_client. METHODS: "! <p class="shorttext synchronized" lang="en">Constructor</p> "! "! @parameter host | <p class="shorttext synchronized" lang="en">Host</p> "! @parameter service | <p class="shorttext synchronized" lang="en">Service</p> "! @parameter scheme | <p class="shorttext synchronized" lang="en">Protocol (HTTP/HTTPS)</p> "! @parameter base_uri | <p class="shorttext synchronized" lang="en">Base URI</p> "! @parameter ssl_id | <p class="shorttext synchronized" lang="en">SSL client identity</p> "! @parameter force_legacy_mode | <p class="shorttext synchronized" lang="en">Force compatibility mode (for test purposes only)</p> constructor IMPORTING host TYPE string service TYPE string OPTIONAL scheme TYPE i DEFAULT cl_http_client=>schemetype_http base_uri TYPE string OPTIONAL ssl_id TYPE ssfapplssl DEFAULT 'ANONYM' force_legacy_mode TYPE abap_bool DEFAULT abap_false, "! <p class="shorttext synchronized" lang="en">Process DELETE requests</p> "! "! @parameter uri | <p class="shorttext synchronized" lang="en">URI</p> "! @parameter response | <p class="shorttext synchronized" lang="en">Response</p> "! @raising /gal/cx_rest_client_exception | <p class="shorttext synchronized" lang="en">Exception in connection with the HTTP REST Client</p> delete IMPORTING !uri TYPE string OPTIONAL RETURNING VALUE(response) TYPE REF TO /gal/rest_response RAISING /gal/cx_rest_client_exception, "! <p class="shorttext synchronized" lang="en">Process GET request</p> "! "! @parameter uri | <p class="shorttext synchronized" lang="en">URI</p> "! @parameter parameters | <p class="shorttext synchronized" lang="en">Parameters</p> "! @parameter response | <p class="shorttext synchronized" lang="en">Response</p> "! @raising /gal/cx_rest_client_exception | <p class="shorttext synchronized" lang="en">Exception in connection with the HTTP REST Client</p> get IMPORTING !uri TYPE string OPTIONAL !parameters TYPE /gal/uri_parameters OPTIONAL RETURNING VALUE(response) TYPE REF TO /gal/rest_response RAISING /gal/cx_rest_client_exception, "! <p class="shorttext synchronized" lang="en">Process POST request</p> "! "! @parameter uri | <p class="shorttext synchronized" lang="en">URI</p> "! @parameter request | <p class="shorttext synchronized" lang="en">Request</p> "! @parameter response | <p class="shorttext synchronized" lang="en">Response</p> "! @raising /gal/cx_rest_client_exception | <p class="shorttext synchronized" lang="en">Exception in connection with the HTTP REST Client</p> post IMPORTING !uri TYPE string OPTIONAL !request TYPE REF TO /gal/rest_request RETURNING VALUE(response) TYPE REF TO /gal/rest_response RAISING /gal/cx_rest_client_exception, "! <p class="shorttext synchronized" lang="en">Process PUT request</p> "! "! @parameter uri | <p class="shorttext synchronized" lang="en">URI</p> "! @parameter request | <p class="shorttext synchronized" lang="en">Request</p> "! @parameter response | <p class="shorttext synchronized" lang="en">Response</p> "! @raising /gal/cx_rest_client_exception | <p class="shorttext synchronized" lang="en">Exception in connection with the HTTP REST Client</p> put IMPORTING !uri TYPE string OPTIONAL !request TYPE REF TO /gal/rest_request RETURNING VALUE(response) TYPE REF TO /gal/rest_response RAISING /gal/cx_rest_client_exception. PROTECTED SECTION. PRIVATE SECTION. DATA: "! <p class="shorttext synchronized" lang="en">Cache for HTTP client</p> http_client_cache TYPE REF TO if_http_client, "! <p class="shorttext synchronized" lang="en">Cache for REST Client</p> rest_client_cache TYPE REF TO object. "#EC NEEDED METHODS: "! <p class="shorttext synchronized" lang="en">Build query string for URI</p> "! "! @parameter parameters | <p class="shorttext synchronized" lang="en">Parameters</p> "! @parameter query_string | <p class="shorttext synchronized" lang="en">Query string</p> build_query_string IMPORTING !parameters TYPE /gal/uri_parameters RETURNING VALUE(query_string) TYPE string, "! <p class="shorttext synchronized" lang="en">Build full URI</p> "! "! @parameter uri | <p class="shorttext synchronized" lang="en">URI</p> "! @parameter parameters | <p class="shorttext synchronized" lang="en">Parameters</p> "! @parameter output | <p class="shorttext synchronized" lang="en">Full URI</p> build_uri IMPORTING !uri TYPE string OPTIONAL !parameters TYPE /gal/uri_parameters OPTIONAL RETURNING VALUE(output) TYPE string, "! <p class="shorttext synchronized" lang="en">Create HTTP Client</p> "! "! @parameter http_client | <p class="shorttext synchronized" lang="en">HTTP Client</p> "! @raising /gal/cx_rest_client_exception | <p class="shorttext synchronized" lang="en">Exception in connection with the HTTP REST Client</p> get_http_client RETURNING VALUE(http_client) TYPE REF TO if_http_client RAISING /gal/cx_rest_client_exception, "! <p class="shorttext synchronized" lang="en">Create HTTP REST Client</p> "! "! @parameter rest_client | <p class="shorttext synchronized" lang="en">REST Client</p> "! @raising /gal/cx_rest_client_exception | <p class="shorttext synchronized" lang="en">Exception in connection with the HTTP REST Client</p> get_rest_client RETURNING VALUE(rest_client) TYPE REF TO object RAISING /gal/cx_rest_client_exception, "! <p class="shorttext synchronized" lang="en">Process HTTP Request (Compatibility Mode)</p> "! "! @parameter client | <p class="shorttext synchronized" lang="en">HTTP Client</p> "! @parameter method | <p class="shorttext synchronized" lang="en">HTTP Method</p> "! @parameter uri | <p class="shorttext synchronized" lang="en">URI</p> "! @parameter parameters | <p class="shorttext synchronized" lang="en">Parameters</p> "! @parameter request | <p class="shorttext synchronized" lang="en">Request</p> "! @parameter response | <p class="shorttext synchronized" lang="en">Response</p> "! @raising /gal/cx_rest_client_exception | <p class="shorttext synchronized" lang="en">Exception in connection with the HTTP REST Client</p> process_http_request IMPORTING !client TYPE REF TO object !method TYPE string !uri TYPE string OPTIONAL !parameters TYPE /gal/uri_parameters OPTIONAL !request TYPE REF TO /gal/rest_request OPTIONAL RETURNING VALUE(response) TYPE REF TO /gal/rest_response RAISING /gal/cx_rest_client_exception, "#EC CALLED "! <p class="shorttext synchronized" lang="en">Prepare REST Request</p> "! "! @parameter client | <p class="shorttext synchronized" lang="en">REST Client</p> "! @parameter method | <p class="shorttext synchronized" lang="en">HTTP Method</p> "! @parameter uri | <p class="shorttext synchronized" lang="en">URI</p> "! @parameter parameters | <p class="shorttext synchronized" lang="en">Parameters</p> "! @parameter request | <p class="shorttext synchronized" lang="en">Request</p> "! @parameter response | <p class="shorttext synchronized" lang="en">Response</p> "! @raising /gal/cx_rest_client_exception | <p class="shorttext synchronized" lang="en">Exception in connection with the HTTP REST Client</p> process_rest_request IMPORTING !client TYPE REF TO object !method TYPE string !uri TYPE string OPTIONAL !parameters TYPE /gal/uri_parameters OPTIONAL !request TYPE REF TO /gal/rest_request OPTIONAL RETURNING VALUE(response) TYPE REF TO /gal/rest_response RAISING /gal/cx_rest_client_exception, "#EC CALLED "! <p class="shorttext synchronized" lang="en">Validate HTTP Response</p> "! "! @parameter response | <p class="shorttext synchronized" lang="en">Response from a Rest HTTP web service</p> "! @raising /gal/cx_rest_client_exception | <p class="shorttext synchronized" lang="en">Exception in connection with the HTTP REST Client</p> validate_response IMPORTING !response TYPE REF TO /gal/rest_response RAISING /gal/cx_rest_client_exception. ENDCLASS. CLASS /gal/rest_client IMPLEMENTATION. METHOD build_query_string. DATA l_escaped_value TYPE string. DATA l_is_first TYPE abap_bool. FIELD-SYMBOLS <l_parameter> LIKE LINE OF parameters. l_is_first = abap_true. LOOP AT parameters ASSIGNING <l_parameter>. l_escaped_value = cl_http_utility=>escape_url( <l_parameter>-value ). IF l_is_first = abap_true. CONCATENATE <l_parameter>-name `=` l_escaped_value INTO query_string. l_is_first = abap_false. ELSE. CONCATENATE query_string `&` <l_parameter>-name `=` l_escaped_value INTO query_string. ENDIF. ENDLOOP. ENDMETHOD. METHOD build_uri. DATA l_query_string TYPE string. DATA l_length TYPE i. IF base_uri IS INITIAL. output = uri. ELSEIF uri IS INITIAL. output = base_uri. ELSEIF uri CP '/*'. CONCATENATE base_uri uri INTO output. ELSE. CONCATENATE base_uri uri INTO output SEPARATED BY '/'. ENDIF. IF parameters IS NOT INITIAL. l_query_string = build_query_string( parameters ). IF output CP '*/'. l_length = strlen( output ) - 1. output = output(l_length). ENDIF. CONCATENATE output `?` l_query_string INTO output. ELSEIF output NP '*/'. CONCATENATE output '/' INTO output. ENDIF. ENDMETHOD. METHOD constructor. DATA l_offset TYPE i. DATA l_length TYPE i. * Initialize connection details me->host = host. me->scheme = scheme. me->ssl_id = ssl_id. * Determine service to be used IF service IS INITIAL. IF scheme = cl_http_client=>schemetype_http. me->service = `80`. ELSEIF scheme = cl_http_client=>schemetype_https. me->service = `443`. ENDIF. ELSE. me->service = service. ENDIF. * Copy base URI l_offset = 0. l_length = strlen( base_uri ). IF base_uri(1) = '/'. l_offset = 1. l_length = l_length - 1. ENDIF. IF base_uri CP '*/'. l_length = l_length - 1. ENDIF. IF l_length > 0. CONCATENATE '/' base_uri+l_offset(l_length) INTO me->base_uri. ELSE. CLEAR me->base_uri. ENDIF. * Check if legacy mode is required IF force_legacy_mode = abap_false. legacy_mode = abap_false. cl_abap_typedescr=>describe_by_name( EXPORTING p_name = 'IF_REST_CLIENT' EXCEPTIONS OTHERS = 1 ). IF sy-subrc <> 0. legacy_mode = abap_true. ENDIF. ELSE. legacy_mode = abap_true. ENDIF. ENDMETHOD. METHOD create_by_name. DATA: l_config_store TYPE REF TO /gal/config_store_local, l_config_base_folder TYPE REF TO /gal/config_node, l_config_service_folder TYPE REF TO /gal/config_node, l_config_node TYPE REF TO /gal/config_node, l_host TYPE string, l_port TYPE string VALUE `80`, l_protocol TYPE string VALUE `HTTP`, l_base_uri TYPE string VALUE ``, l_force_legacy_mode TYPE abap_bool VALUE abap_false, l_scheme TYPE i, l_ssl_id TYPE ssfapplssl, l_exception TYPE REF TO cx_root, l_message TYPE string. TRY. * Create instance of configuration store CREATE OBJECT l_config_store. * Get instance of folder containing configuration values l_config_base_folder = l_config_store->get_node( path = path ). l_config_service_folder = l_config_base_folder->get_child_node( name ). * Get web service configuration values l_config_node = l_config_service_folder->get_child_node( `Host` ). "#EC NOTEXT l_config_node->get_value( IMPORTING value = l_host ). TRY. l_config_node = l_config_service_folder->get_child_node( `Port` ). "#EC NOTEXT l_config_node->get_value( EXPORTING default_value = l_port IMPORTING value = l_port ). CATCH /gal/cx_config_exception. "#EC NO_HANDLER ENDTRY. TRY. l_config_node = l_config_service_folder->get_child_node( `Protocol` ). "#EC NOTEXT l_config_node->get_value( EXPORTING default_value = l_protocol IMPORTING value = l_protocol ). CATCH /gal/cx_config_exception. "#EC NO_HANDLER ENDTRY. TRY. l_config_node = l_config_service_folder->get_child_node( `Base URI` ). "#EC NOTEXT l_config_node->get_value( EXPORTING default_value = l_base_uri IMPORTING value = l_base_uri ). CATCH /gal/cx_config_exception. "#EC NO_HANDLER ENDTRY. TRY. l_config_node = l_config_service_folder->get_child_node( `SSL Identity` ). "#EC NOTEXT l_config_node->get_value( EXPORTING default_value = l_ssl_id IMPORTING value = l_ssl_id ). CATCH /gal/cx_config_exception. "#EC NO_HANDLER ENDTRY. TRY. l_config_node = l_config_service_folder->get_child_node( `Force Legacy Mode` ). "#EC NOTEXT l_config_node->get_value( EXPORTING default_value = l_force_legacy_mode IMPORTING value = l_force_legacy_mode ). CATCH /gal/cx_config_exception. "#EC NO_HANDLER ENDTRY. * Convert protocol IF l_protocol CP `HTTP`. l_scheme = cl_http_client=>schemetype_http. ELSEIF l_protocol CP `HTTPS`. l_scheme = cl_http_client=>schemetype_https. ELSE. RAISE EXCEPTION TYPE /gal/cx_rest_client_exception EXPORTING textid = /gal/cx_rest_client_exception=>unknown_protocol var1 = l_protocol. ENDIF. * Create web service client CREATE OBJECT client EXPORTING host = l_host service = l_port scheme = l_scheme base_uri = l_base_uri ssl_id = l_ssl_id force_legacy_mode = l_force_legacy_mode. CATCH /gal/cx_config_exception INTO l_exception. l_message = l_exception->get_text( ). RAISE EXCEPTION TYPE /gal/cx_rest_client_exception EXPORTING textid = /gal/cx_rest_client_exception=>custom_exception var1 = l_message. ENDTRY. ENDMETHOD. METHOD create_from_uri. DATA: l_host TYPE string, l_service TYPE i, l_service_str TYPE string, l_scheme TYPE i, l_path TYPE string. * Parse URI /gal/uri_utilities=>parse_uri( EXPORTING uri = uri IMPORTING host = l_host service = l_service scheme = l_scheme path = l_path ). * Create web service client l_service_str = l_service. l_service_str = /gal/string=>trim( l_service_str ). CREATE OBJECT client EXPORTING host = l_host service = l_service_str scheme = l_scheme base_uri = l_path ssl_id = ssl_id force_legacy_mode = force_legacy_mode. ENDMETHOD. METHOD delete. DATA l_client TYPE REF TO object. DATA l_method TYPE string. * Select implementation depending on SAP release IF legacy_mode = abap_true. l_client = get_http_client( ). l_method = `PROCESS_HTTP_REQUEST`. "#EC NOTEXT ELSE. l_client = get_rest_client( ). l_method = `PROCESS_REST_REQUEST`. "#EC NOTEXT ENDIF. * Process request CALL METHOD (l_method) EXPORTING client = l_client method = /gal/http_constants=>method_delete uri = uri RECEIVING response = response. ENDMETHOD. METHOD get. DATA l_client TYPE REF TO object. DATA l_method TYPE string. * Select implementation depending on SAP release IF legacy_mode = abap_true. l_client = get_http_client( ). l_method = `PROCESS_HTTP_REQUEST`. "#EC NOTEXT ELSE. l_client = get_rest_client( ). l_method = `PROCESS_REST_REQUEST`. "#EC NOTEXT ENDIF. * Process request CALL METHOD (l_method) EXPORTING client = l_client method = /gal/http_constants=>method_get uri = uri parameters = parameters RECEIVING response = response. ENDMETHOD. METHOD get_http_client. DATA: l_exception TYPE REF TO /gal/cx_rest_client_exception. * Re-use existing HTTP client instance IF http_client_cache IS NOT INITIAL. http_client = http_client_cache. ELSE. * Create new HTTP client cl_http_client=>create( EXPORTING host = host service = service scheme = scheme ssl_id = ssl_id IMPORTING client = http_client EXCEPTIONS OTHERS = 1 ). IF sy-subrc <> 0. l_exception ?= /gal/cx_exception=>create_from_classic_exception( exception_class = `/GAL/CX_REST_CLIENT_EXCEPTION` ). RAISE EXCEPTION l_exception. ENDIF. http_client_cache = http_client. ENDIF. ENDMETHOD. METHOD get_rest_client. DATA l_http_client TYPE REF TO if_http_client. *-------------------------------------------------------------------- * Caching has been disabled because of an error in the SAP coding of * method CL_REST_HTTP_CLIENT=>SEND_RECEIVE: * * Sending a request of type PUT or POST sets the private attribute * MO_REQUEST_ENTITY to the request instance. All subsequent GET or * DELETE calls will then run into an error because these methods * do not send a request an therefore the current request is always * different from the private attribute MO_REQUEST_ENTITY. *-------------------------------------------------------------------- ** Re-use existing REST client instance * IF rest_client_cache IS NOT INITIAL. * rest_client = rest_client_cache. * ELSE. * Get HTTP client l_http_client = get_http_client( ). * Create new REST client CREATE OBJECT rest_client TYPE ('CL_REST_HTTP_CLIENT') EXPORTING io_http_client = l_http_client. * rest_client_cache = rest_client. * ENDIF. ENDMETHOD. METHOD post. DATA l_client TYPE REF TO object. DATA l_method TYPE string. * Select implementation depending on SAP release IF legacy_mode = abap_true. l_client = get_http_client( ). l_method = `PROCESS_HTTP_REQUEST`. "#EC NOTEXT ELSE. l_client = get_rest_client( ). l_method = `PROCESS_REST_REQUEST`. "#EC NOTEXT ENDIF. * Process request CALL METHOD (l_method) EXPORTING client = l_client method = /gal/http_constants=>method_post uri = uri request = request RECEIVING response = response. ENDMETHOD. METHOD process_http_request. DATA l_client TYPE REF TO if_http_client. DATA l_uri TYPE string. DATA l_header_fields TYPE tihttpnvp. DATA l_message TYPE string. * Build full URI l_uri = build_uri( uri = uri parameters = parameters ). * Prepare request l_client ?= client. IF request IS NOT INITIAL. request->get_http_request( l_client ). ENDIF. l_client->request->set_method( method ). cl_http_utility=>set_request_uri( request = l_client->request uri = l_uri ). * Send request l_client->send( EXCEPTIONS http_communication_failure = 1 http_invalid_state = 2 http_processing_failed = 3 http_invalid_timeout = 4 OTHERS = 5 ). IF sy-subrc <> 0. CASE sy-subrc. WHEN 1. l_message = TEXT-e01. WHEN 2. l_message = TEXT-e02. WHEN 3. l_message = TEXT-e03. WHEN 4. l_message = TEXT-e04. WHEN OTHERS. l_message = TEXT-e05. ENDCASE. RAISE EXCEPTION TYPE /gal/cx_rest_client_exception EXPORTING textid = /gal/cx_rest_client_exception=>error_sending_http_request var1 = l_message. ENDIF. * Receive response l_client->receive( EXCEPTIONS http_communication_failure = 1 http_invalid_state = 2 http_processing_failed = 3 OTHERS = 4 ). IF sy-subrc <> 0. CASE sy-subrc. WHEN 1. l_message = TEXT-e01. WHEN 2. l_message = TEXT-e02. WHEN 3. l_message = TEXT-e03. WHEN OTHERS. l_message = TEXT-e05. ENDCASE. RAISE EXCEPTION TYPE /gal/cx_rest_client_exception EXPORTING textid = /gal/cx_rest_client_exception=>error_receiving_http_response var1 = l_message. ENDIF. * Get header fields l_client->response->get_header_fields( CHANGING fields = l_header_fields ). * Create response object CREATE OBJECT response EXPORTING http_response = l_client->response header_fields = l_header_fields. * Validate response validate_response( response ). ENDMETHOD. METHOD process_rest_request. DATA l_uri TYPE string. DATA l_request TYPE REF TO object. DATA l_response TYPE REF TO object. DATA l_request_interface TYPE REF TO data. DATA l_method TYPE string. DATA l_header_fields TYPE tihttpnvp. DATA l_message TYPE string. DATA l_exception TYPE REF TO cx_root. FIELD-SYMBOLS <l_request> TYPE any. * Build full URI l_uri = build_uri( uri = uri parameters = parameters ). * Prepare request header CALL METHOD client->('IF_REST_CLIENT~SET_REQUEST_HEADER') EXPORTING iv_name = if_http_header_fields_sap=>request_uri iv_value = l_uri. * Send request TRY. CONCATENATE `IF_REST_RESOURCE` method INTO l_method SEPARATED BY '~'. IF request IS INITIAL. CALL METHOD client->(l_method). ELSE. l_request = request->get_rest_request( client ). CREATE DATA l_request_interface TYPE REF TO ('IF_REST_ENTITY'). ASSIGN l_request_interface->* TO <l_request>. <l_request> ?= l_request. CALL METHOD client->(l_method) EXPORTING io_entity = <l_request>. ENDIF. CATCH cx_root INTO l_exception. "#EC CATCH_ALL l_message = l_exception->get_text( ). RAISE EXCEPTION TYPE /gal/cx_rest_client_exception EXPORTING textid = /gal/cx_rest_client_exception=>custom_exception var1 = l_message. ENDTRY. * Receive response CALL METHOD client->('IF_REST_CLIENT~GET_RESPONSE_ENTITY') RECEIVING ro_response_entity = l_response. * Get header fields CALL METHOD client->('IF_REST_CLIENT~GET_RESPONSE_HEADERS') RECEIVING rt_header_fields = l_header_fields. * Create response object CREATE OBJECT response EXPORTING rest_response = l_response header_fields = l_header_fields. * Validate response validate_response( response ). ENDMETHOD. METHOD put. DATA l_client TYPE REF TO object. DATA l_method TYPE string. * Select implementation depending on SAP release IF legacy_mode = abap_true. l_client = get_http_client( ). l_method = `PROCESS_HTTP_REQUEST`. "#EC NOTEXT ELSE. l_client = get_rest_client( ). l_method = `PROCESS_REST_REQUEST`. "#EC NOTEXT ENDIF. * Process request CALL METHOD (l_method) EXPORTING client = l_client method = /gal/http_constants=>method_put uri = uri request = request RECEIVING response = response. ENDMETHOD. METHOD validate_response. DATA l_status_code TYPE string. DATA l_status_reason TYPE string. * Process status information response->get_status_information( IMPORTING status_code = l_status_code status_reason = l_status_reason ). * Statuscodes >= 300 means that something went wrong IF l_status_code >= '3'. RAISE EXCEPTION TYPE /gal/cx_rest_client_exception EXPORTING textid = /gal/cx_rest_client_exception=>http_error var1 = l_status_code var2 = l_status_reason. ENDIF. ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 11792, 329, 8324, 14626, 3992, 2594, 3556, 79, 29, 198, 31631, 1220, 13528, 14, 2118, 62, 16366, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 41876, 12, 16402, 3535, 50, 25, 198, 220, 220, 220, 220, 220, 450, 499, 13, 628, 198, 220, 220, 220, 42865, 25, 628, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 14881, 43975, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 2779, 62, 9900, 220, 220, 220, 41876, 4731, 20832, 12, 1340, 11319, 11, 628, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 17932, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 2583, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 20832, 12, 1340, 11319, 11, 628, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 7293, 25901, 4235, 329, 1468, 48323, 10050, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 10655, 62, 14171, 41876, 450, 499, 62, 30388, 20832, 12, 1340, 11319, 11, 628, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 19703, 4668, 357, 40717, 14, 6535, 28820, 36475, 79, 29, 198, 220, 220, 220, 220, 220, 7791, 220, 220, 220, 220, 220, 41876, 1312, 20832, 12, 1340, 11319, 11, 628, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 16177, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 2139, 220, 220, 220, 220, 41876, 4731, 20832, 12, 1340, 11319, 11, 628, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 31127, 5456, 5369, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 264, 6649, 62, 312, 220, 220, 220, 220, 220, 41876, 264, 28202, 1324, 75, 45163, 20832, 12, 1340, 11319, 13, 628, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 628, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 16447, 422, 3992, 2139, 1438, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 366, 0, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 3108, 220, 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, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 15235, 287, 28373, 9363, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 1438, 220, 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, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 13908, 4809, 6530, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 5456, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 13908, 4809, 20985, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 32741, 220, 220, 1220, 13528, 14, 66, 87, 62, 2118, 62, 16366, 62, 1069, 4516, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 16922, 287, 4637, 351, 262, 14626, 30617, 20985, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 2251, 62, 1525, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3108, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 5550, 38865, 4600, 14, 26552, 576, 78, 4912, 13077, 14, 11505, 8090, 36109, 14, 13908, 33709, 14, 13908, 6168, 63, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 16366, 8, 41876, 4526, 37, 5390, 1220, 13528, 14, 2118, 62, 16366, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1220, 13528, 14, 66, 87, 62, 2118, 62, 16366, 62, 1069, 4516, 11, 628, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 16447, 422, 43975, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 366, 0, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 2956, 72, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 47269, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 264, 6649, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 31127, 5456, 5369, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 5456, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 13908, 4809, 20985, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 2700, 62, 1455, 1590, 62, 14171, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 10292, 17764, 4235, 357, 1640, 1332, 4959, 691, 36475, 79, 29, 198, 220, 220, 220, 220, 220, 2251, 62, 6738, 62, 9900, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2956, 72, 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, 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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 ]
INTERFACE zif_trs_fm_access PUBLIC . METHODS: get_request IMPORTING i_order_type TYPE trfunction i_task_type TYPE trfunction i_category TYPE trcateg EXPORTING e_order TYPE e071-trkorr e_task TYPE e071-trkorr, "! this method adds a key to the transport request <br> "! The method "check_transport" needs to get called before this method gets called insert_key IMPORTING i_e071k TYPE e071k, "! this method needs to get called before the insert_key method check_transport IMPORTING ko200 TYPE ko200. " delete_key importing e071 type e071 " task type trkorr optional. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 2213, 82, 62, 38353, 62, 15526, 198, 220, 44731, 764, 628, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 651, 62, 25927, 30023, 9863, 2751, 1312, 62, 2875, 62, 4906, 41876, 491, 8818, 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, 1312, 62, 35943, 62, 4906, 220, 41876, 491, 8818, 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, 1312, 62, 22872, 220, 220, 41876, 491, 66, 2397, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 304, 62, 2875, 220, 220, 220, 220, 220, 41876, 304, 2998, 16, 12, 2213, 74, 38890, 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, 304, 62, 35943, 220, 220, 220, 220, 220, 220, 41876, 304, 2998, 16, 12, 2213, 74, 38890, 11, 628, 220, 220, 220, 366, 0, 428, 2446, 6673, 257, 1994, 284, 262, 4839, 2581, 1279, 1671, 29, 198, 220, 220, 220, 366, 0, 383, 2446, 366, 9122, 62, 7645, 634, 1, 2476, 284, 651, 1444, 878, 428, 2446, 3011, 1444, 198, 220, 220, 220, 7550, 62, 2539, 30023, 9863, 2751, 1312, 62, 68, 2998, 16, 74, 41876, 304, 2998, 16, 74, 11, 628, 220, 220, 220, 366, 0, 428, 2446, 2476, 284, 651, 1444, 878, 262, 7550, 62, 2539, 2446, 198, 220, 220, 220, 2198, 62, 7645, 634, 30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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 ]
*---------------------------------------------------------------------* * program for: TABLEFRAME_ZREST_CUST * generation date: 27.11.2021 at 16:08:59 * view maintenance generator version: #001407# *---------------------------------------------------------------------* FUNCTION TABLEFRAME_ZREST_CUST . PERFORM TABLEFRAME TABLES X_HEADER X_NAMTAB DBA_SELLIST DPL_SELLIST EXCL_CUA_FUNCT USING CORR_NUMBER VIEW_ACTION VIEW_NAME. ENDFUNCTION.
[ 9, 10097, 30934, 9, 198, 9, 220, 220, 220, 1430, 329, 25, 220, 220, 43679, 10913, 10067, 62, 57, 49, 6465, 62, 34, 7759, 198, 9, 220, 220, 5270, 3128, 25, 2681, 13, 1157, 13, 1238, 2481, 379, 1467, 25, 2919, 25, 3270, 198, 9, 220, 220, 1570, 9262, 17301, 2196, 25, 1303, 405, 1415, 2998, 2, 198, 9, 10097, 30934, 9, 198, 42296, 4177, 2849, 43679, 10913, 10067, 62, 57, 49, 6465, 62, 34, 7759, 220, 220, 220, 220, 220, 220, 220, 220, 764, 628, 220, 19878, 21389, 43679, 10913, 10067, 309, 6242, 28378, 1395, 62, 37682, 1137, 1395, 62, 45, 2390, 5603, 33, 360, 4339, 62, 5188, 3069, 8808, 360, 6489, 62, 5188, 3069, 8808, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 5097, 62, 34, 34970, 62, 42296, 4177, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1294, 2751, 220, 23929, 49, 62, 41359, 13246, 49880, 62, 44710, 49880, 62, 20608, 13, 198, 198, 1677, 8068, 4944, 4177, 2849, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZCL_D_TODO_ACTION_AND_FIELD_CO definition public inheriting from /BOBF/CL_LIB_D_SUPERCL_SIMPLE final create public . public section. methods /BOBF/IF_FRW_DETERMINATION~EXECUTE redefinition . protected section. private section. ENDCLASS. CLASS ZCL_D_TODO_ACTION_AND_FIELD_CO IMPLEMENTATION. method /BOBF/IF_FRW_DETERMINATION~EXECUTE. endmethod. ENDCLASS.
[ 4871, 1168, 5097, 62, 35, 62, 51, 3727, 46, 62, 44710, 62, 6981, 62, 44603, 62, 8220, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1220, 8202, 29499, 14, 5097, 62, 40347, 62, 35, 62, 40331, 1137, 5097, 62, 48913, 16437, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 5050, 1220, 8202, 29499, 14, 5064, 62, 10913, 54, 62, 35, 2767, 1137, 23678, 6234, 93, 6369, 2943, 37780, 198, 220, 220, 220, 34087, 17750, 764, 198, 24326, 2665, 13, 198, 19734, 2665, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 35, 62, 51, 3727, 46, 62, 44710, 62, 6981, 62, 44603, 62, 8220, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 2446, 1220, 8202, 29499, 14, 5064, 62, 10913, 54, 62, 35, 2767, 1137, 23678, 6234, 93, 6369, 2943, 37780, 13, 198, 220, 886, 24396, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_http DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. CONSTANTS: BEGIN OF c_scheme, digest TYPE string VALUE 'Digest', END OF c_scheme . CLASS-METHODS get_agent RETURNING VALUE(rv_agent) TYPE string . CLASS-METHODS create_by_url IMPORTING !iv_url TYPE string !iv_service TYPE string RETURNING VALUE(ro_client) TYPE REF TO zcl_abapgit_http_client RAISING zcx_abapgit_exception . PROTECTED SECTION. CLASS-METHODS check_auth_requested IMPORTING !ii_client TYPE REF TO if_http_client RETURNING VALUE(rv_auth_requested) TYPE abap_bool RAISING zcx_abapgit_exception . CLASS-METHODS is_local_system IMPORTING !iv_url TYPE string RETURNING VALUE(rv_bool) TYPE abap_bool . CLASS-METHODS acquire_login_details IMPORTING !ii_client TYPE REF TO if_http_client !io_client TYPE REF TO zcl_abapgit_http_client !iv_url TYPE string RETURNING VALUE(rv_scheme) TYPE string RAISING zcx_abapgit_exception . PRIVATE SECTION. ENDCLASS. CLASS ZCL_ABAPGIT_HTTP IMPLEMENTATION. METHOD acquire_login_details. DATA: lv_default_user TYPE string, lv_user TYPE string, lv_pass TYPE string, lo_digest TYPE REF TO zcl_abapgit_http_digest. lv_default_user = zcl_abapgit_persistence_user=>get_instance( )->get_repo_login( iv_url ). lv_user = lv_default_user. zcl_abapgit_password_dialog=>popup( EXPORTING iv_repo_url = iv_url CHANGING cv_user = lv_user cv_pass = lv_pass ). IF lv_user IS INITIAL. zcx_abapgit_exception=>raise( 'HTTP 401, unauthorized' ). ENDIF. IF lv_user <> lv_default_user. zcl_abapgit_persistence_user=>get_instance( )->set_repo_login( iv_url = iv_url iv_login = lv_user ). ENDIF. " Offer two factor authentication if it is available and required zcl_abapgit_2fa_auth_registry=>use_2fa_if_required( EXPORTING iv_url = iv_url CHANGING cv_username = lv_user cv_password = lv_pass ). rv_scheme = ii_client->response->get_header_field( 'www-authenticate' ). FIND REGEX '^(\w+)' IN rv_scheme SUBMATCHES rv_scheme. CASE rv_scheme. WHEN c_scheme-digest. * https://en.wikipedia.org/wiki/Digest_access_authentication * e.g. used by https://www.gerritcodereview.com/ CREATE OBJECT lo_digest EXPORTING ii_client = ii_client iv_username = lv_user iv_password = lv_pass. lo_digest->run( ii_client ). io_client->set_digest( lo_digest ). WHEN OTHERS. * https://en.wikipedia.org/wiki/Basic_access_authentication ii_client->authenticate( username = lv_user password = lv_pass ). ENDCASE. ENDMETHOD. METHOD check_auth_requested. DATA: lv_code TYPE i. ii_client->response->get_status( IMPORTING code = lv_code ). IF lv_code = 401. rv_auth_requested = abap_true. ENDIF. ENDMETHOD. METHOD create_by_url. DATA: lv_uri TYPE string, lv_scheme TYPE string, li_client TYPE REF TO if_http_client, lo_proxy_configuration TYPE REF TO zcl_abapgit_proxy_config, lv_text TYPE string. CREATE OBJECT lo_proxy_configuration. li_client = zcl_abapgit_exit=>get_instance( )->create_http_client( iv_url ). IF li_client IS NOT BOUND. cl_http_client=>create_by_url( EXPORTING url = zcl_abapgit_url=>host( iv_url ) ssl_id = zcl_abapgit_exit=>get_instance( )->get_ssl_id( ) proxy_host = lo_proxy_configuration->get_proxy_url( iv_url ) proxy_service = lo_proxy_configuration->get_proxy_port( iv_url ) IMPORTING client = li_client EXCEPTIONS argument_not_found = 1 plugin_not_active = 2 internal_error = 3 OTHERS = 4 ). IF sy-subrc <> 0. CASE sy-subrc. WHEN 1. " make sure: " a) SSL is setup properly in STRUST lv_text = 'HTTPS ARGUMENT_NOT_FOUND | STRUST/SSL Setup correct?'. WHEN OTHERS. lv_text = 'While creating HTTP Client'. "#EC NOTEXT ENDCASE. zcx_abapgit_exception=>raise( lv_text ). ENDIF. ENDIF. IF lo_proxy_configuration->get_proxy_authentication( iv_url ) = abap_true. zcl_abapgit_proxy_auth=>run( li_client ). ENDIF. CREATE OBJECT ro_client EXPORTING ii_client = li_client. IF is_local_system( iv_url ) = abap_true. li_client->send_sap_logon_ticket( ). ENDIF. li_client->request->set_cdata( '' ). li_client->request->set_header_field( name = '~request_method' value = 'GET' ). li_client->request->set_header_field( name = 'user-agent' value = get_agent( ) ). "#EC NOTEXT lv_uri = zcl_abapgit_url=>path_name( iv_url ) && '/info/refs?service=git-' && iv_service && '-pack'. li_client->request->set_header_field( name = '~request_uri' value = lv_uri ). " Disable internal auth dialog (due to its unclarity) li_client->propertytype_logon_popup = if_http_client=>co_disabled. zcl_abapgit_login_manager=>load( iv_uri = iv_url ii_client = li_client ). zcl_abapgit_exit=>get_instance( )->http_client( iv_url = iv_url ii_client = li_client ). ro_client->send_receive( ). IF check_auth_requested( li_client ) = abap_true. lv_scheme = acquire_login_details( ii_client = li_client io_client = ro_client iv_url = iv_url ). ro_client->send_receive( ). ENDIF. ro_client->check_http_200( ). IF lv_scheme <> c_scheme-digest. zcl_abapgit_login_manager=>save( iv_uri = iv_url ii_client = li_client ). ENDIF. ENDMETHOD. METHOD get_agent. * bitbucket require agent prefix = "git/" * also see https://github.com/larshp/abapGit/issues/1432 rv_agent = |git/2.0 (abapGit { zif_abapgit_version=>gc_abap_version })|. ENDMETHOD. METHOD is_local_system. DATA: lv_host TYPE string, lt_list TYPE zif_abapgit_exit=>ty_icm_sinfo2_tt, li_exit TYPE REF TO zif_abapgit_exit. FIELD-SYMBOLS: <ls_list> LIKE LINE OF lt_list. CALL FUNCTION 'ICM_GET_INFO2' TABLES servlist = lt_list EXCEPTIONS icm_error = 1 icm_timeout = 2 OTHERS = 3. IF sy-subrc <> 0. RETURN. ENDIF. APPEND INITIAL LINE TO lt_list ASSIGNING <ls_list>. <ls_list>-hostname = 'localhost'. li_exit = zcl_abapgit_exit=>get_instance( ). li_exit->change_local_host( CHANGING ct_hosts = lt_list ). FIND REGEX 'https?://([^/^:]*)' IN iv_url SUBMATCHES lv_host. READ TABLE lt_list WITH KEY hostname = lv_host TRANSPORTING NO FIELDS. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 4023, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 15952, 1326, 11, 198, 220, 220, 220, 220, 220, 220, 220, 16274, 41876, 4731, 26173, 8924, 705, 19511, 395, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 15952, 1326, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 651, 62, 25781, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 25781, 8, 41876, 4731, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 2251, 62, 1525, 62, 6371, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 15271, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 16366, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 4023, 62, 16366, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 2198, 62, 18439, 62, 25927, 276, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 16366, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 16366, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 18439, 62, 25927, 276, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 318, 62, 12001, 62, 10057, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 30388, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 12831, 62, 38235, 62, 36604, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 16366, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 16366, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 16366, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 4023, 62, 16366, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 15952, 1326, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 40717, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 12831, 62, 38235, 62, 36604, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 12286, 62, 7220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 7220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 6603, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 12894, 395, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 4023, 62, 12894, 395, 13, 628, 198, 220, 220, 220, 300, 85, 62, 12286, 62, 7220, 796, 1976, 565, 62, 397, 499, 18300, 62, 19276, 13274, 62, 7220, 14804, 1136, 62, 39098, 7, 1267, 3784, 1136, 62, 260, 7501, 62, 38235, 7, 21628, 62, 6371, 6739, 198, 220, 220, 220, 300, 85, 62, 7220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 12286, 62, 7220, 13, 628, 220, 220, 220, 1976, 565, 62, 397, 499, 18300, 62, 28712, 62, 38969, 519, 14804, 12924, 929, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 260, 7501, 62, 6371, 220, 220, 220, 220, 796, 21628, 62, 6371, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 269, 85, 62, 7220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 7220, 198, 220, 220, 220, 220, 220, 220, 220, 269, 85, 62, 6603, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 6603, 6739, 628, 220, 220, 220, 16876, 300, 85, 62, 7220, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 40717, 22219, 11, 22959, 6, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 16876, 300, 85, 62, 7220, 1279, 29, 300, 85, 62, 12286, 62, 7220, 13, 198, 220, 220, 220, 220, 220, 1976, 565, 62, 397, 499, 18300, 62, 19276, 13274, 62, 7220, 14804, 1136, 62, 39098, 7, 1267, 3784, 2617, 62, 260, 7501, 62, 38235, 7, 198, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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L_ABSTRACTCOLLECTION *"* do not include other source files here!!! interfaces ZIF_COLLECTION abstract methods ITERATOR SIZE . aliases ADD for ZIF_COLLECTION~ADD . aliases ADDALL for ZIF_COLLECTION~ADDALL . aliases CLEAR for ZIF_COLLECTION~CLEAR . aliases CONTAINS for ZIF_COLLECTION~CONTAINS . aliases CONTAINSALL for ZIF_COLLECTION~CONTAINSALL . aliases ISEMPTY for ZIF_COLLECTION~ISEMPTY . aliases ITERATOR for ZIF_COLLECTION~ITERATOR . aliases REMOVE for ZIF_COLLECTION~REMOVE . aliases REMOVEALL for ZIF_COLLECTION~REMOVEALL . aliases RETAINALL for ZIF_COLLECTION~RETAINALL . aliases SIZE for ZIF_COLLECTION~SIZE . aliases TOARRAY for ZIF_COLLECTION~TOARRAY . protected section. *"* protected components of class zCL_ABSTRACTCOLLECTION *"* do not include other source files here!!! private section. *"* private components of class zCL_ABSTRACTCOLLECTION *"* do not include other source files here!!! ENDCLASS. CLASS ZCL_ABSTRACTCOLLECTION IMPLEMENTATION. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_ABSTRACTCOLLECTION->ZIF_COLLECTION~ADD * +-------------------------------------------------------------------------------------------------+ * | [--->] ELEMENT TYPE REF TO ZCL_OBJECT * | [<-()] RETURNING TYPE ABAP_BOOL * +--------------------------------------------------------------------------------------</SIGNATURE> method zif_collection~add. raise exception type zcx_unsupportedoperation. endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_ABSTRACTCOLLECTION->ZIF_COLLECTION~ADDALL * +-------------------------------------------------------------------------------------------------+ * | [--->] COLLECTION TYPE REF TO ZIF_COLLECTION * | [<-()] RETURNING TYPE ABAP_BOOL * +--------------------------------------------------------------------------------------</SIGNATURE> method zif_collection~addall. data modified type abap_bool. modified = abap_false. data iterator type ref to zif_iterator. iterator = collection->iterator( ). while iterator->hasnext( ) = abap_true. data next type ref to zcl_object. next = iterator->next( ). if me->add( next ) = abap_true. modified = abap_true. endif. endwhile. returning = modified. endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_ABSTRACTCOLLECTION->ZIF_COLLECTION~CLEAR * +-------------------------------------------------------------------------------------------------+ * +--------------------------------------------------------------------------------------</SIGNATURE> method zif_collection~clear. data iterator type ref to zif_iterator. iterator = me->iterator( ). while iterator->hasnext( ) = abap_true. iterator->next( ). iterator->remove( ). endwhile. endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_ABSTRACTCOLLECTION->ZIF_COLLECTION~CONTAINS * +-------------------------------------------------------------------------------------------------+ * | [--->] OBJECT TYPE REF TO ZCL_OBJECT * | [<-()] RETURNING TYPE ABAP_BOOL * +--------------------------------------------------------------------------------------</SIGNATURE> method zif_collection~contains. data iterator type ref to zif_iterator. iterator = me->iterator( ). if object is not bound. while iterator->hasnext( ) = abap_true. if object = iterator->next( ). returning = abap_true. return. endif. endwhile. else. while iterator->hasnext( ) = abap_true. data obj type ref to zcl_object. obj = iterator->next( ). if obj->equals( object ) = abap_true. returning = abap_true. return. endif. endwhile. endif. " Return false if the object is not found returning = abap_false. return. endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_ABSTRACTCOLLECTION->ZIF_COLLECTION~CONTAINSALL * +-------------------------------------------------------------------------------------------------+ * | [--->] COLLECTION TYPE REF TO ZIF_COLLECTION * | [<-()] RETURNING TYPE ABAP_BOOL * +--------------------------------------------------------------------------------------</SIGNATURE> method zif_collection~containsall. data iterator type ref to zif_iterator. iterator = collection->iterator( ). while iterator->hasnext( ) = abap_true. data next type ref to zcl_object. next = iterator->next( ). if me->contains( next ) = abap_false. returning = abap_false. return. endif. endwhile. returning = abap_true. endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_ABSTRACTCOLLECTION->ZIF_COLLECTION~ISEMPTY * +-------------------------------------------------------------------------------------------------+ * | [<-()] RETURNING TYPE ABAP_BOOL * +--------------------------------------------------------------------------------------</SIGNATURE> method zif_collection~isempty. if me->size( ) = 0. returning = abap_true. return. endif. returning = abap_false. endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_ABSTRACTCOLLECTION->ZIF_COLLECTION~REMOVE * +-------------------------------------------------------------------------------------------------+ * | [--->] OBJECT TYPE REF TO ZCL_OBJECT * | [<-()] RETURNING TYPE ABAP_BOOL * +--------------------------------------------------------------------------------------</SIGNATURE> method zif_collection~remove. data iterator type ref to zif_iterator. iterator = me->iterator( ). if object is not bound. while iterator->hasnext( ) = abap_true. if object = iterator->next( ). iterator->remove( ). returning = abap_true. return. endif. endwhile. else. while iterator->hasnext( ) = abap_true. data obj type ref to zcl_object. obj = iterator->next( ). if obj->equals( object ) = abap_true. iterator->remove( ). returning = abap_true. return. endif. endwhile. endif. " Return false if the object is not found returning = abap_false. return. endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_ABSTRACTCOLLECTION->ZIF_COLLECTION~REMOVEALL * +-------------------------------------------------------------------------------------------------+ * | [--->] COLLECTION TYPE REF TO ZIF_COLLECTION * | [<-()] RETURNING TYPE ABAP_BOOL * +--------------------------------------------------------------------------------------</SIGNATURE> method zif_collection~removeall. data modified type abap_bool. modified = abap_false. data iterator type ref to zif_iterator. iterator = me->iterator( ). while iterator->hasnext( ) = abap_true. data next type ref to zcl_object. next = iterator->next( ). if collection->contains( next ) = abap_true. iterator->remove( ). modified = abap_true. endif. endwhile. returning = modified. endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_ABSTRACTCOLLECTION->ZIF_COLLECTION~RETAINALL * +-------------------------------------------------------------------------------------------------+ * | [--->] COLLECTION TYPE REF TO ZIF_COLLECTION * | [<-()] RETURNING TYPE ABAP_BOOL * +--------------------------------------------------------------------------------------</SIGNATURE> method zif_collection~retainall. data modified type abap_bool. modified = abap_false. data iterator type ref to zif_iterator. iterator = me->iterator( ). while iterator->hasnext( ) = abap_true. data next type ref to zcl_object. next = iterator->next( ). if collection->contains( next ) = abap_false. iterator->remove( ). modified = abap_true. endif. endwhile. returning = modified. endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_ABSTRACTCOLLECTION->ZIF_COLLECTION~TOARRAY * +-------------------------------------------------------------------------------------------------+ * | [<-()] RETURNING TYPE ZARRAY * +--------------------------------------------------------------------------------------</SIGNATURE> method zif_collection~toarray. data array type zarray. data iterator type ref to zif_iterator. iterator = me->iterator( ). while iterator->hasnext( ) = abap_true. data next type ref to zcl_object. next = iterator->next( ). append next to array. endwhile. returning = array. endmethod. ENDCLASS.
[ 4871, 1168, 5097, 62, 6242, 18601, 2246, 4825, 3535, 16779, 2849, 6770, 201, 198, 220, 1171, 201, 198, 220, 10639, 1780, 422, 1168, 5097, 62, 9864, 23680, 201, 198, 220, 12531, 201, 198, 220, 2251, 1171, 764, 201, 198, 201, 198, 11377, 2665, 13, 201, 198, 201, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1976, 5097, 62, 6242, 18601, 2246, 4825, 3535, 16779, 2849, 201, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 201, 198, 220, 20314, 1168, 5064, 62, 25154, 16779, 2849, 201, 198, 220, 220, 220, 220, 220, 12531, 5050, 314, 5781, 25633, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 311, 35400, 764, 201, 198, 201, 198, 220, 47217, 27841, 201, 198, 220, 220, 220, 329, 1168, 5064, 62, 25154, 16779, 2849, 93, 29266, 764, 201, 198, 220, 47217, 27841, 7036, 201, 198, 220, 220, 220, 329, 1168, 5064, 62, 25154, 16779, 2849, 93, 29266, 7036, 764, 201, 198, 220, 47217, 30301, 1503, 201, 198, 220, 220, 220, 329, 1168, 5064, 62, 25154, 16779, 2849, 93, 29931, 1503, 764, 201, 198, 220, 47217, 7102, 5603, 20913, 201, 198, 220, 220, 220, 329, 1168, 5064, 62, 25154, 16779, 2849, 93, 10943, 5603, 20913, 764, 201, 198, 220, 47217, 7102, 5603, 20913, 7036, 201, 198, 220, 220, 220, 329, 1168, 5064, 62, 25154, 16779, 2849, 93, 10943, 5603, 20913, 7036, 764, 201, 198, 220, 47217, 3180, 39494, 9936, 201, 198, 220, 220, 220, 329, 1168, 5064, 62, 25154, 16779, 2849, 93, 1797, 39494, 9936, 764, 201, 198, 220, 47217, 314, 5781, 25633, 201, 198, 220, 220, 220, 329, 1168, 5064, 62, 25154, 16779, 2849, 93, 2043, 1137, 25633, 764, 201, 198, 220, 47217, 22657, 46, 6089, 201, 198, 220, 220, 220, 329, 1168, 5064, 62, 25154, 16779, 2849, 93, 2200, 11770, 6089, 764, 201, 198, 220, 47217, 22657, 46, 6089, 7036, 201, 198, 220, 220, 220, 329, 1168, 5064, 62, 25154, 16779, 2849, 93, 2200, 11770, 6089, 7036, 764, 201, 198, 220, 47217, 371, 20892, 1268, 7036, 201, 198, 220, 220, 220, 329, 1168, 5064, 62, 25154, 16779, 2849, 93, 2200, 30339, 7036, 764, 201, 198, 220, 47217, 311, 35400, 201, 198, 220, 220, 220, 329, 1168, 5064, 62, 25154, 16779, 2849, 93, 33489, 764, 201, 198, 220, 47217, 5390, 1503, 30631, 201, 198, 220, 220, 220, 329, 1168, 5064, 62, 25154, 16779, 2849, 93, 10468, 1503, 30631, 764, 201, 198, 24326, 2665, 13, 201, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1976, 5097, 62, 6242, 18601, 2246, 4825, 3535, 16779, 2849, 201, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 201, 198, 19734, 2665, 13, 201, 198, 9, 1, 9, 2839, 6805, 286, 1398, 1976, 5097, 62, 6242, 18601, 2246, 4825, 3535, 16779, 2849, 201, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 201, 198, 10619, 31631, 13, 201, 198, 201, 198, 201, 198, 201, 198, 31631, 1168, 5097, 62, 6242, 18601, 2246, 4825, 3535, 16779, 2849, 30023, 2538, 10979, 6234, 13, 201, 198, 201, 198, 201, 198, 9, 1279, 46224, 40086, 29, 10097, 19351, 6329, 10, 201, 198, 9, 930, 2262, 590, 5094, 11789, 1168, 5097, 62, 6242, 18601, 2246, 4825, 3535, 16779, 2849, 3784, 57, 5064, 62, 25154, 16779, 2849, 93, 29266, 201, 198, 9, 1343, 10097, 3880, 19529, 201, 198, 9, 930, 685, 438, 3784, 60, 40342, 10979, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1168, 5097, 62, 9864, 23680, 201, 198, 9, 930, 685, 27, 12, 3419, 60, 30826, 4261, 15871, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 220, 220, 220, 220, 220, 220, 220, 9564, 2969, 62, 8202, 3535, 201, 198, 9, 1343, 10097, 19351, 438, 3556, 46224, 40086, 29, 201, 198, 24396, 1976, 361, 62, 43681, 93, 2860, 13, 201, 198, 220, 5298, 6631, 2099, 1976, 66, 87, 62, 403, 15999, 27184, 13, 201, 198, 437, 24396, 13, 201, 198, 201, 198, 201, 198, 9, 1279, 46224, 40086, 29, 10097, 19351, 6329, 10, 201, 198, 9, 930, 2262, 590, 5094, 11789, 1168, 5097, 62, 6242, 18601, 2246, 4825, 3535, 16779, 2849, 3784, 57, 5064, 62, 25154, 16779, 2849, 93, 29266, 7036, 201, 198, 9, 1343, 10097, 3880, 19529, 201, 198, 9, 930, 685, 438, 3784, 60, 20444, 16779, 2849, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1168, 5064, 62, 25154, 16779, 2849, 201, 198, 9, 930, 685, 27, 12, 3419, 60, 30826, 4261, 15871, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 220, 220, 220, 220, 220, 220, 220, 9564, 2969, 62, 8202, 3535, 201, 198, 9, 1343, 10097, 19351, 438, 3556, 46224, 40086, 29, 201, 198, 24396, 1976, 361, 62, 43681, 93, 2860, 439, 13, 201, 198, 220, 1366, 9518, 2099, 450, 499, 62, 30388, 13, 201, 198, 220, 9518, 796, 450, 499, 62, 9562, 13, 201, 198, 220, 1366, 41313, 2099, 1006, 284, 1976, 361, 62, 48727, 13, 201, 198, 220, 41313, 796, 4947, 3784, 48727, 7, 6739, 201, 198, 220, 981, 41313, 3784, 10134, 19545, 7, 1267, 796, 450, 499, 62, 7942, 13, 201, 198, 220, 220, 220, 1366, 1306, 2099, 1006, 284, 1976, 565, 62, 15252, 13, 201, 198, 220, 220, 220, 1306, 796, 41313, 3784, 19545, 7, 6739, 201, 198, 220, 220, 220, 611, 502, 3784, 2860, 7, 1306, 1267, 796, 450, 499, 62, 7942, 13, 201, 198, 220, 220, 220, 220, 220, 9518, 796, 450, 499, 62, 7942, 13, 201, 198, 220, 220, 220, 45762, 13, 201, 198, 220, 886, 4514, 13, 201, 198, 220, 8024, 796, 9518, 13, 201, 198, 437, 24396, 13, 201, 198, 201, 198, 201, 198, 9, 1279, 46224, 40086, 29, 10097, 19351, 6329, 10, 201, 198, 9, 930, 2262, 590, 5094, 11789, 1168, 5097, 62, 6242, 18601, 2246, 4825 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
************************************************************************ ************************************************************************ * ██████╗ ██████╗ ███████╗ * * ██╔══██╗ ██╔════╝ ██╔════╝ * * ██████╔╝ ██║ ███████╗ * * ██╔══██╗ ██║ ╚════██║ * * ██║ ██║██╗╚██████╗██╗███████║ * * ╚═╝ ╚═╝╚═╝ ╚═════╝╚═╝╚══════╝ * ************************************************************************ ************************************************************************ * Request Control System * This tool enabble to: * Standardize requests * Copy request transport tool * Log Transport ************************************************************************ * Gui Version(2008 - 2016) * Bruno Rodrigues(BSR) - [email protected] * Web Version(2016 - 2017) * Bruno Rodrigues(BSR) - [email protected] * Wanderson Oliveira - [email protected] * Paulo Cabral - [email protected] * Rafael Viana - ************************************************************************ * All rights Reserved©® ************************************************************************ class zcl_ca_ctrlreq_wd_assist definition public inheriting from cl_wd_component_assistance create public . public section. aliases get_text for if_wd_component_assistance~get_text . constants: begin of c_id_botao, transporte_copia type string value 'TRANSPORTE_COPIA', "#EC NOTEXT libera_request type string value 'LIBERA_REQUEST', "#EC NOTEXT atualizar type string value 'ATUALIZAR', "#EC NOTEXT visualizar_log type string value 'VISUALIZAR_LOG', "#EC NOTEXT editar_request type string value 'EDITAR_REQUEST', "#EC NOTEXT exibir_objetos type string value 'EXIBIR_OBJETOS', "#EC NO TEXT cria_por_referencia type string value 'CRIA_POR_REFERENCIA', "#EC NO TEXT importar_req_qa type string value 'IMPORTAR_REQ_QA', "#EC NO TEXT end of c_id_botao, c_nome_node type string value 'LISTA_REQUESTS'. "#EC NOTEXT methods: busca_request importing !i_ranges type wdr_so_t_range_ref, is_request_liberada importing i_cod_request type e070-trkorr returning value(r_resposta) type wdy_boolean raising zcx_ca_ctrlreq_excecoes, get_process_area_ddtext changing ct_process_area_domain type dd07v_tab. protected section. private section. ENDCLASS. CLASS ZCL_CA_CTRLREQ_WD_ASSIST IMPLEMENTATION. method busca_request. data(lt_requests) = zcl_ca_ctrlreq_banco_dados=>get_instance( )->get_requests( iw_range = value #( ) ). endmethod. method get_process_area_ddtext. call function 'DDIF_DOMA_GET' exporting name = '/ACNADMS/DO_MODUL' * STATE = 'A' langu = 'E' * IMPORTING * GOTSTATE = * DD01V_WA = tables dd07v_tab = ct_process_area_domain exceptions illegal_input = 1 others = 2. endmethod. method is_request_liberada. r_resposta = zcl_ca_ctrlreq_request_reposit=>get_instance( )->get_request( i_cod_request )->is_liberada( ). endmethod. ENDCLASS.
[ 17174, 17174, 4557, 198, 17174, 17174, 4557, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23287, 20503, 8115, 22880, 245, 220, 220, 220, 220, 23287, 20503, 8115, 22880, 245, 220, 220, 23287, 20503, 9968, 22880, 245, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23287, 8115, 22880, 242, 31732, 9968, 22880, 245, 220, 220, 23287, 8115, 22880, 242, 31732, 31732, 22880, 251, 220, 220, 23287, 8115, 22880, 242, 31732, 31732, 22880, 251, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23287, 20503, 8115, 22880, 242, 22880, 251, 220, 220, 23287, 8115, 22880, 239, 220, 220, 220, 220, 220, 220, 220, 23287, 20503, 9968, 22880, 245, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23287, 8115, 22880, 242, 31732, 9968, 22880, 245, 220, 220, 23287, 8115, 22880, 239, 220, 220, 220, 220, 220, 220, 220, 2343, 243, 248, 31732, 31732, 9968, 22880, 239, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23287, 8115, 22880, 239, 220, 23287, 8115, 22880, 239, 9968, 22880, 245, 22880, 248, 20503, 9968, 22880, 245, 9968, 22880, 245, 20503, 9968, 8115, 22880, 239, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2343, 243, 248, 28670, 22880, 251, 220, 2343, 243, 248, 28670, 22880, 251, 22880, 248, 28670, 22880, 251, 2343, 243, 248, 31732, 31732, 28670, 22880, 251, 22880, 248, 28670, 22880, 251, 22880, 248, 31732, 31732, 31732, 22880, 251, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 17174, 17174, 4557, 198, 17174, 17174, 4557, 198, 9, 19390, 6779, 4482, 198, 9, 770, 2891, 551, 397, 903, 284, 25, 198, 9, 8997, 1096, 7007, 198, 9, 17393, 2581, 4839, 2891, 198, 9, 5972, 19940, 198, 17174, 17174, 4557, 198, 9, 1962, 72, 10628, 7, 11528, 532, 1584, 8, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31045, 16114, 947, 7, 4462, 49, 8, 532, 45033, 418, 346, 6862, 13, 81, 31, 14816, 13, 785, 198, 9, 5313, 10628, 7, 5304, 532, 2177, 8, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31045, 16114, 947, 7, 4462, 49, 8, 532, 45033, 418, 346, 6862, 13, 81, 31, 14816, 13, 785, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22420, 882, 30012, 8704, 220, 220, 532, 11569, 882, 13, 86, 418, 31, 14816, 13, 785, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 34410, 15976, 1373, 220, 220, 220, 220, 220, 220, 220, 220, 532, 279, 2518, 1219, 1416, 397, 1373, 31, 14816, 13, 785, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31918, 569, 7484, 220, 220, 220, 220, 220, 220, 220, 220, 532, 198, 17174, 17174, 4557, 198, 9, 1439, 2489, 33876, 16224, 7461, 198, 17174, 17174, 4557, 198, 198, 4871, 1976, 565, 62, 6888, 62, 44755, 42180, 62, 16993, 62, 562, 396, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 537, 62, 16993, 62, 42895, 62, 562, 9311, 198, 220, 2251, 1171, 764, 628, 220, 1171, 2665, 13, 628, 220, 220, 220, 47217, 651, 62, 5239, 198, 220, 220, 220, 220, 220, 329, 611, 62, 16993, 62, 42895, 62, 562, 9311, 93, 1136, 62, 5239, 764, 628, 220, 220, 220, 38491, 25, 198, 220, 220, 220, 220, 220, 2221, 286, 269, 62, 312, 62, 65, 4265, 78, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4839, 68, 62, 22163, 544, 220, 220, 220, 2099, 4731, 1988, 705, 5446, 1565, 4303, 1581, 9328, 62, 34, 3185, 3539, 3256, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 220, 220, 220, 220, 3655, 64, 62, 25927, 220, 220, 220, 220, 220, 2099, 4731, 1988, 705, 40347, 46461, 62, 2200, 35780, 3256, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 220, 220, 220, 220, 379, 723, 528, 283, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 4731, 1988, 705, 1404, 25620, 14887, 1503, 3256, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 220, 220, 220, 220, 5874, 528, 283, 62, 6404, 220, 220, 220, 220, 220, 2099, 4731, 1988, 705, 29817, 25620, 14887, 1503, 62, 25294, 3256, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 220, 220, 220, 220, 4370, 283, 62, 25927, 220, 220, 220, 220, 220, 2099, 4731, 1988, 705, 24706, 1503, 62, 2200, 35780, 3256, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 220, 220, 220, 220, 409, 571, 343, 62, 26801, 316, 418, 220, 220, 220, 220, 220, 2099, 4731, 1988, 705, 6369, 40, 3483, 49, 62, 9864, 41, 2767, 2640, 3256, 25113, 2943, 8005, 40383, 198, 220, 220, 220, 220, 220, 220, 220, 269, 7496, 62, 1819, 62, 5420, 567, 10782, 544, 2099, 4731, 1988, 705, 9419, 3539, 62, 44680, 62, 2200, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*&---------------------------------------------------------------------* *& Include /ENSX/INCL_XSLT_MACROS *&---------------------------------------------------------------------* *"* use this source file for any macro definitions you need *"* in the implementation part of the class * Macros for class generation - type definition DEFINE add_cl_srcline_1. lv_src = &1. lv_par = &2. replace '%1' in lv_src with lv_par. CONCATENATE xslt lv_src cl_abap_char_utilities=>cr_lf into xslt SEPARATED BY space. END-OF-DEFINITION. DEFINE add_cl_srcline_2. lv_src = &1. lv_par = &2. replace '%1' in lv_src with lv_par. lv_par = &3. replace '%2' in lv_src with lv_par. CONCATENATE xslt lv_src cl_abap_char_utilities=>cr_lf into xslt SEPARATED BY space. END-OF-DEFINITION. ********************************************************************** * Macros for simple transformation generation DEFINE add_st_srcline. lv_lin = &1. concatenate xslt lv_lin cl_abap_char_utilities=>cr_lf into xslt. END-OF-DEFINITION. DEFINE add_st_srcline_1. lv_lin = &1. lv_par = &2. replace all occurrences of '%1' in lv_lin with lv_par. concatenate xslt lv_lin cl_abap_char_utilities=>cr_lf into xslt. END-OF-DEFINITION. DEFINE add_st_srcline_2. lv_lin = &1. lv_par = &2. replace all occurrences of '%1' in lv_lin with lv_par. lv_par = &3. replace all occurrences of '%2' in lv_lin with lv_par. concatenate xslt lv_lin cl_abap_char_utilities=>cr_lf into xslt. END-OF-DEFINITION. * st header & footer DEFINE add_st_header. add_st_srcline '<?sap.transform simple?>'. "#EC NOTEXT add_st_srcline '<tt:transform xmlns:tt="http://www.sap.com/transformation-templates"'. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_namespace. add_st_srcline_2 'xmlns:%1="%2"' &1 &2. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_header2. add_st_srcline '>'. add_st_srcline ''. END-OF-DEFINITION. DEFINE add_st_footer. add_st_srcline '</tt:transform>'. "#EC NOTEXT END-OF-DEFINITION. * comments DEFINE add_st_comment_start. add_st_srcline '<!-- ******************************************************************'. "#EC NOTEXT add_st_srcline ''. END-OF-DEFINITION. DEFINE add_st_comment. lv_lin = &1. replace all occurrences of '--' in lv_lin with '__'. concatenate xslt lv_lin cl_abap_char_utilities=>cr_lf into xslt. END-OF-DEFINITION. DEFINE add_st_comment_end. add_st_srcline '******************************************************************* -->'. "#EC NOTEXT add_st_srcline ''. END-OF-DEFINITION. * templates DEFINE add_st_base_root. add_st_srcline ' <tt:root name="ROOT" type="?"/>'. END-OF-DEFINITION. DEFINE add_st_json_roots. add_st_srcline_2 '<tt:root name="%1" type="ddic:%2"/>' &1 &2. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_json_roots_notype. add_st_srcline_1 '<tt:root name="%1"/>' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_json_template_start. add_st_srcline ''. add_st_srcline '<tt:template>'. "#EC NOTEXT * add_st_srcline '<object>'. "#EC NOTEXT if lv_initial is not initial. add_st_srcline '<initialValue>'. "#EC NOTEXT else. " add_st_srcline '<context>'. "#EC NOTEXT endif. END-OF-DEFINITION. DEFINE add_st_json_template_end. if lv_initial is not initial. add_st_srcline '</initialValue>'. "#EC NOTEXT else. * add_st_srcline '</context>'. "#EC NOTEXT endif. * add_st_srcline '</object>'. "#EC NOTEXT add_st_srcline '</tt:template>'. "#EC NOTEXT add_st_srcline ''. END-OF-DEFINITION. DEFINE add_st_main_template_start. add_st_srcline ''. add_st_srcline '<tt:template>'. "#EC NOTEXT * add_st_srcline_1 '<tt:ref name="%1">' &1. "#EC NOTEXT if lv_initial is not initial. add_st_srcline '<initialValue>'. "#EC NOTEXT else. " add_st_srcline '<context>'. "#EC NOTEXT endif. END-OF-DEFINITION. DEFINE add_st_main_template_end. if lv_initial is not initial. add_st_srcline '</initialValue>'. "#EC NOTEXT else. * add_st_srcline '</context>'. "#EC NOTEXT endif. * add_st_srcline '</tt:ref>'. "#EC NOTEXT add_st_srcline '</tt:template>'. "#EC NOTEXT add_st_srcline ''. END-OF-DEFINITION. DEFINE add_st_template_start. add_st_srcline_1 '<tt:template name="%1">' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_template_end. add_st_srcline '</tt:template>'. "#EC NOTEXT add_st_srcline ''. END-OF-DEFINITION. * optional DEFINE add_st_serialize_start. add_st_srcline_1 '<tt:serialize> <!-- %1 -->' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_serialize_end. add_st_srcline_1 '</tt:serialize ><!-- %1 -->' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_cond_start. add_st_srcline '<tt:cond>'. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_cond_check_start. add_st_srcline_1 '<tt:cond check="not-initial(%1)">' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_scond_check_start. add_st_srcline_1 '<tt:cond s-check="not-initial(%1)">' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_cond_exists_start. add_st_srcline_1 '<tt:cond check="exist(%1)">' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_scond_exists_start. add_st_srcline_1 '<tt:cond s-check="exist(%1)">' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_cond_end. add_st_srcline_1 '</tt:cond> <!-- %1 -->' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_scond_end. add_st_srcline_1 '</tt:s-cond> <!-- %1 -->' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_skip_start. add_st_srcline_1 '<tt:skip name="%1" count="*">' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_skip_end. add_st_srcline_1 '</tt:skip> <!-- %1 -->' &1. "#EC NOTEXT END-OF-DEFINITION. * fields DEFINE add_st_component_start_ref. add_st_srcline_2 '<%1 tt:ref="%2">' &1 &2. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_component_start. add_st_srcline_1 '<%1>' &1 . "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_component_simple. add_st_srcline '<tt:value/>'. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_component_end. add_st_srcline_1 '</%1>' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_complex. add_st_srcline_1 '<tt:apply name="%1"/>' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_table_start. add_st_srcline_2 '<tt:loop ref="%1" name="%2">' &1 &2. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_table_end. add_st_srcline '</tt:loop>'. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_component_simple_start. add_st_srcline_2 '<%1 name="%2">' &1 &2 . "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_component_simple_end. add_st_srcline_1 '</%1>' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_component_simple_value. add_st_srcline_1 '<tt:value ref="%1"/>' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_component_value_ref. add_st_srcline_2 '<%1 tt:value-ref="%2"/>' &1 &2. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_component_value. add_st_srcline_1 '<%1 tt:value/>' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_component_datetime. add_st_srcline '<tt:value ref="DATE"/>'. "#EC NOTEXT add_st_srcline '<tt:text>T</tt:text>'. "#EC NOTEXT add_st_srcline '<tt:value ref="TIME"/>'. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_component_simple_boole. add_st_srcline_1 '<tt:value option="format(boolean)" ref="%1" />' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_component_boole. add_st_srcline_2 '<%1 tt:value-ref="%2" option="format(boolean)" />' &1 &2. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_object_start. if &1 ne space. add_st_srcline_1 '<object name="%1">' &1. "#EC NOTEXT else. add_st_srcline '<object>'. "#EC NOTEXT endif. END-OF-DEFINITION. DEFINE add_st_object_end. add_st_srcline_1 '</object> <!-- %1 -->' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_array_start. add_st_srcline_1 '<array name="%1">' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_array_end. add_st_srcline_1 '</array> <!-- %1 -->' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_member_start. add_st_srcline_1 '<member name="%1">' &1. "#EC NOTEXT END-OF-DEFINITION. DEFINE add_st_member_end. add_st_srcline '</member>'. "#EC NOTEXT END-OF-DEFINITION. **********************************************************************
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1220, 16938, 55, 14, 1268, 5097, 62, 55, 8634, 51, 62, 44721, 49, 2640, 198, 9, 5, 10097, 30934, 9, 198, 9, 1, 9, 779, 428, 2723, 2393, 329, 597, 15021, 17336, 345, 761, 198, 9, 1, 9, 287, 262, 7822, 636, 286, 262, 1398, 198, 198, 9, 4100, 4951, 329, 1398, 5270, 532, 2099, 6770, 628, 220, 23449, 8881, 751, 62, 565, 62, 27891, 565, 500, 62, 16, 13, 198, 220, 220, 220, 300, 85, 62, 10677, 796, 1222, 16, 13, 198, 220, 220, 220, 300, 85, 62, 1845, 796, 1222, 17, 13, 6330, 705, 4, 16, 6, 287, 300, 85, 62, 10677, 351, 300, 85, 62, 1845, 13, 198, 220, 220, 220, 39962, 1404, 1677, 6158, 2124, 82, 2528, 300, 85, 62, 10677, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 6098, 62, 1652, 656, 2124, 82, 2528, 7946, 27082, 11617, 11050, 2272, 13, 198, 220, 23578, 12, 19238, 12, 7206, 20032, 17941, 13, 628, 220, 23449, 8881, 751, 62, 565, 62, 27891, 565, 500, 62, 17, 13, 198, 220, 220, 220, 300, 85, 62, 10677, 796, 1222, 16, 13, 198, 220, 220, 220, 300, 85, 62, 1845, 796, 1222, 17, 13, 6330, 705, 4, 16, 6, 287, 300, 85, 62, 10677, 351, 300, 85, 62, 1845, 13, 198, 220, 220, 220, 300, 85, 62, 1845, 796, 1222, 18, 13, 6330, 705, 4, 17, 6, 287, 300, 85, 62, 10677, 351, 300, 85, 62, 1845, 13, 198, 220, 220, 220, 39962, 1404, 1677, 6158, 2124, 82, 2528, 300, 85, 62, 10677, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 6098, 62, 1652, 656, 2124, 82, 2528, 7946, 27082, 11617, 11050, 2272, 13, 198, 220, 23578, 12, 19238, 12, 7206, 20032, 17941, 13, 628, 198, 17174, 17174, 2466, 1174, 198, 198, 9, 4100, 4951, 329, 2829, 13389, 5270, 628, 220, 23449, 8881, 751, 62, 301, 62, 27891, 565, 500, 13, 198, 220, 220, 220, 300, 85, 62, 2815, 796, 1222, 16, 13, 198, 220, 220, 220, 1673, 36686, 378, 2124, 82, 2528, 300, 85, 62, 2815, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 6098, 62, 1652, 656, 2124, 82, 2528, 13, 198, 220, 23578, 12, 19238, 12, 7206, 20032, 17941, 13, 628, 220, 23449, 8881, 751, 62, 301, 62, 27891, 565, 500, 62, 16, 13, 198, 220, 220, 220, 300, 85, 62, 2815, 796, 1222, 16, 13, 198, 220, 220, 220, 300, 85, 62, 1845, 796, 1222, 17, 13, 6330, 477, 40279, 286, 705, 4, 16, 6, 220, 287, 300, 85, 62, 2815, 351, 300, 85, 62, 1845, 13, 198, 220, 220, 220, 1673, 36686, 378, 2124, 82, 2528, 300, 85, 62, 2815, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 6098, 62, 1652, 656, 2124, 82, 2528, 13, 198, 220, 23578, 12, 19238, 12, 7206, 20032, 17941, 13, 628, 220, 23449, 8881, 751, 62, 301, 62, 27891, 565, 500, 62, 17, 13, 198, 220, 220, 220, 300, 85, 62, 2815, 796, 1222, 16, 13, 198, 220, 220, 220, 300, 85, 62, 1845, 796, 1222, 17, 13, 6330, 477, 40279, 286, 705, 4, 16, 6, 220, 287, 300, 85, 62, 2815, 351, 300, 85, 62, 1845, 13, 198, 220, 220, 220, 300, 85, 62, 1845, 796, 1222, 18, 13, 6330, 477, 40279, 286, 705, 4, 17, 6, 220, 287, 300, 85, 62, 2815, 351, 300, 85, 62, 1845, 13, 198, 220, 220, 220, 1673, 36686, 378, 2124, 82, 2528, 300, 85, 62, 2815, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 6098, 62, 1652, 656, 2124, 82, 2528, 13, 198, 220, 23578, 12, 19238, 12, 7206, 20032, 17941, 13, 198, 198, 9, 336, 13639, 1222, 2366, 263, 628, 220, 23449, 8881, 751, 62, 301, 62, 25677, 13, 198, 220, 220, 220, 751, 62, 301, 62, 27891, 565, 500, 220, 220, 705, 47934, 82, 499, 13, 35636, 2829, 30, 29, 4458, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 751, 62, 301, 62, 27891, 565, 500, 220, 220, 705, 27, 926, 25, 35636, 35555, 5907, 25, 926, 2625, 4023, 1378, 2503, 13, 82, 499, 13, 785, 14, 7645, 1161, 12, 11498, 17041, 1, 4458, 25113, 2943, 5626, 13918, 198, 220, 23578, 12, 19238, 12, 7206, 20032, 17941, 13, 628, 220, 23449, 8881, 751, 62, 301, 62, 14933, 10223, 13, 198, 220, 220, 220, 751, 62, 301, 62, 27891, 565, 500, 62, 17, 220, 220, 705, 19875, 5907, 25, 4, 16, 2625, 4, 17, 30543, 1222, 16, 1222, 17, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 23578, 12, 19238, 12, 7206, 20032, 17941, 13, 628, 220, 23449, 8881, 751, 62, 301, 62, 25677, 17, 13, 198, 220, 220, 220, 751, 62, 301, 62, 27891, 565, 500, 220, 220, 705, 29, 4458, 198, 220, 220, 220, 751, 62, 301, 62, 27891, 565, 500, 220, 220, 705, 4458, 198, 220, 23578, 12, 19238, 12, 7206, 20032, 17941, 13, 628, 220, 23449, 8881, 751, 62, 301, 62, 5898, 263, 13, 198, 220, 220, 220, 751, 62, 301, 62, 27891, 565, 500, 220, 220, 705, 3556, 926, 25, 35636, 29, 4458, 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, 23578, 12, 19238, 12, 7206, 20032, 17941, 13, 198, 198, 9, 3651, 628, 220, 23449, 8881, 751, 62, 301, 62, 23893, 62, 9688, 13, 198, 220, 220, 220, 751, 62, 301, 62, 27891, 565, 500, 220, 220, 705, 27, 28112, 41906, 17174, 1174, 4458, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 751, 62, 301, 62, 27891, 565, 500, 220, 220, 705, 4458, 198, 220, 23578, 12, 19238, 12, 7206, 20032, 17941, 13, 628, 220, 23449, 8881, 751, 62, 301, 62, 23893, 13, 198, 220, 220, 220, 300, 85, 62, 2815, 796, 1222, 16, 13, 6330, 477, 40279, 286, 705, 438, 6, 287, 300, 85, 62, 2815, 351, 705, 834, 4458, 198, 220, 220, 220, 1673 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_aoc_check_21 DEFINITION PUBLIC INHERITING FROM zcl_aoc_super CREATE PUBLIC. PUBLIC SECTION. METHODS constructor. METHODS check REDEFINITION. METHODS get_message_text REDEFINITION. PROTECTED SECTION. METHODS build_statement IMPORTING !is_statement TYPE sstmnt !it_tokens TYPE stokesx_tab RETURNING VALUE(rv_statement) TYPE string. METHODS find_parameters IMPORTING !iv_statement TYPE string RETURNING VALUE(rt_parameters) TYPE string_table. PRIVATE SECTION. ENDCLASS. CLASS ZCL_AOC_CHECK_21 IMPLEMENTATION. METHOD build_statement. FIELD-SYMBOLS: <ls_token> LIKE LINE OF it_tokens. LOOP AT it_tokens ASSIGNING <ls_token> FROM is_statement-from TO is_statement-to. IF rv_statement IS INITIAL. rv_statement = <ls_token>-str. ELSE. CONCATENATE rv_statement <ls_token>-str INTO rv_statement SEPARATED BY space. ENDIF. ENDLOOP. CONCATENATE rv_statement '.' INTO rv_statement. ENDMETHOD. METHOD check. * abapOpenChecks * https://github.com/larshp/abapOpenChecks * MIT License DATA: lt_parameters TYPE string_table, lv_parameter LIKE LINE OF lt_parameters, lv_statement TYPE string, ls_form_stmnt LIKE LINE OF io_scan->statements, lv_form TYPE abap_bool. FIELD-SYMBOLS: <ls_structure> LIKE LINE OF io_scan->structures, <ls_token> LIKE LINE OF io_scan->tokens, <ls_statement> LIKE LINE OF io_scan->statements. LOOP AT io_scan->structures ASSIGNING <ls_structure> WHERE type = io_scan->gc_structure-routine AND stmnt_type = zcl_aoc_scan=>gc_structure_statement-form. lv_form = abap_true. LOOP AT io_scan->statements ASSIGNING <ls_statement> FROM <ls_structure>-stmnt_from TO <ls_structure>-stmnt_to WHERE type <> io_scan->gc_statement-empty AND type <> io_scan->gc_statement-comment AND type <> io_scan->gc_statement-comment_in_stmnt. lv_statement = build_statement( is_statement = <ls_statement> it_tokens = io_scan->tokens ). IF lv_form = abap_true. ls_form_stmnt = <ls_statement>. lt_parameters = find_parameters( lv_statement ). lv_form = abap_false. CONTINUE. ENDIF. LOOP AT lt_parameters INTO lv_parameter. IF lv_statement CS lv_parameter. DELETE lt_parameters INDEX sy-tabix. ENDIF. ENDLOOP. ENDLOOP. LOOP AT lt_parameters INTO lv_parameter. READ TABLE io_scan->tokens INDEX ls_form_stmnt-from ASSIGNING <ls_token>. ASSERT sy-subrc = 0. inform( p_sub_obj_name = io_scan->get_include( ls_form_stmnt-level ) p_position = <ls_structure>-stmnt_from p_line = <ls_token>-row p_kind = mv_errty p_test = myname p_code = '001' p_param_1 = lv_parameter ). ENDLOOP. ENDLOOP. ENDMETHOD. METHOD constructor. super->constructor( ). version = '001'. position = '021'. has_attributes = abap_true. attributes_ok = abap_true. enable_rfc( ). set_uses_checksum( ). ENDMETHOD. METHOD find_parameters. DATA: lt_code TYPE TABLE OF string, ls_result TYPE zcl_aoc_parser=>ty_result. FIELD-SYMBOLS: <ls_res_tok> LIKE LINE OF ls_result-tokens. APPEND iv_statement TO lt_code. ls_result = zcl_aoc_parser=>run( it_code = lt_code iv_rule = 'FORM' ). LOOP AT ls_result-tokens ASSIGNING <ls_res_tok> WHERE value = zcl_aoc_parser=>c_role-fielddefid AND type = zcl_aoc_parser=>c_type-role. APPEND <ls_res_tok>-code TO rt_parameters. ENDLOOP. ENDMETHOD. METHOD get_message_text. CLEAR p_text. CASE p_code. WHEN '001'. p_text = 'Unused FORM parameter &1'. "#EC NOTEXT WHEN OTHERS. super->get_message_text( EXPORTING p_test = p_test p_code = p_code IMPORTING p_text = p_text ). ENDCASE. ENDMETHOD. "GET_MESSAGE_TEXT ENDCLASS.
[ 31631, 1976, 565, 62, 64, 420, 62, 9122, 62, 2481, 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, 198, 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, 628, 220, 220, 220, 337, 36252, 50, 1382, 62, 26090, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 26090, 220, 220, 220, 220, 220, 220, 41876, 264, 301, 76, 429, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 83, 482, 641, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 336, 3369, 87, 62, 8658, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 26090, 8, 41876, 4731, 13, 198, 220, 220, 220, 337, 36252, 50, 1064, 62, 17143, 7307, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26090, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 17143, 7307, 8, 41876, 4731, 62, 11487, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 32, 4503, 62, 50084, 62, 2481, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1382, 62, 26090, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 30001, 29, 34178, 48920, 3963, 340, 62, 83, 482, 641, 13, 628, 198, 220, 220, 220, 17579, 3185, 5161, 340, 62, 83, 482, 641, 24994, 3528, 15871, 1279, 7278, 62, 30001, 29, 16034, 318, 62, 26090, 12, 6738, 5390, 318, 62, 26090, 12, 1462, 13, 198, 220, 220, 220, 220, 220, 16876, 374, 85, 62, 26090, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 85, 62, 26090, 796, 1279, 7278, 62, 30001, 29, 12, 2536, 13, 198, 220, 220, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 220, 220, 39962, 1404, 1677, 6158, 374, 85, 62, 26090, 1279, 7278, 62, 30001, 29, 12, 2536, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 39319, 374, 85, 62, 26090, 7946, 27082, 11617, 11050, 2272, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 220, 220, 39962, 1404, 1677, 6158, 374, 85, 62, 26090, 705, 2637, 39319, 374, 85, 62, 26090, 13, 628, 220, 23578, 49273, 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, 17143, 7307, 41876, 4731, 62, 11487, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 17143, 2357, 220, 34178, 48920, 3963, 300, 83, 62, 17143, 7307, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 26090, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 687, 62, 301, 76, 429, 34178, 48920, 3963, 33245, 62, 35836, 3784, 14269, 3196, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 687, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 301, 5620, 29, 34178, 48920, 3963, 33245, 62, 35836, 3784, 7249, 942, 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, 33245, 62, 35836, 3784, 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, 26090, 29, 34178, 48920, 3963, 33245, 62, 35836, 3784, 14269, 3196, 13, 628, 198, 220, 220, 220, 17579, 3185, 5161, 33245, 62, 35836, 3784, 7249, 942, 24994, 3528, 15871, 1279, 7278, 62, 301, 5620, 29, 198, 220, 220, 220, 220, 220, 220, 220, 33411, 2099, 796, 33245, 62, 35836, 3784, 36484, 62, 301, 5620, 12, 81, 28399, 198, 220, 220, 220, 220, 220, 220, 220, 5357, 336, 76, 429, 62, 4906, 796, 1976, 565, 62, 64, 420, 62, 35836, 14804, 36484, 62, 301, 5620, 62, 26090, 12, 687, 13, 628, 220, 220, 220, 220, 220, 300, 85, 62, 687, 796, 450, 499, 62, 7942, 13, 628, 220, 220, 220, 220, 220, 17579, 3185, 5161, 33245, 62, 35836, 3784, 14269, 3196, 24994, 3528, 15871, 1279, 7278, 62, 26090, 29, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16034, 1279, 7278, 62, 301, 5620, 29, 12, 301, 76, 429, 62, 6738, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5390, 1279, 7278, 62, 301, 5620, 29, 12, 301, 76, 429, 62, 1462, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33411, 2099, 1279, 29, 33245, 62, 35836, 3784, 36484, 62, 26090, 12, 28920, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 2099, 1279, 29, 33245, 62, 35836, 3784, 36484, 62, 26090, 12, 23893, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 2099, 1279, 29, 33245, 62, 35836, 3784, 36484, 62, 26090, 12, 23893, 62, 259, 62, 301, 76, 429, 13, 628, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 26090, 796, 1382, 62, 26090, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 26090, 796, 1279 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS ltcl_test DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS FINAL. PRIVATE SECTION. METHODS: test FOR TESTING. ENDCLASS. "ltcl_Test CLASS ltcl_test IMPLEMENTATION. METHOD test. DATA: lo_stream TYPE REF TO zcl_abappgp_stream. CREATE OBJECT lo_stream. lo_stream->write_octets( 'AA' ). zcl_abappgp_unit_test=>packet_identity( io_data = lo_stream iv_tag = zif_abappgp_constants=>c_tag-marker ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 83, 565, 62, 9288, 5550, 20032, 17941, 7473, 43001, 2751, 360, 4261, 6234, 6006, 9863, 45698, 42, 49277, 43638, 5805, 7597, 25261, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 1332, 7473, 43001, 2751, 13, 198, 198, 10619, 31631, 13, 220, 220, 220, 220, 220, 220, 366, 2528, 565, 62, 14402, 198, 198, 31631, 300, 83, 565, 62, 9288, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 1332, 13, 628, 220, 220, 220, 42865, 25, 2376, 62, 5532, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 1324, 31197, 62, 5532, 13, 628, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 2376, 62, 5532, 13, 198, 220, 220, 220, 2376, 62, 5532, 3784, 13564, 62, 38441, 1039, 7, 705, 3838, 6, 6739, 628, 220, 220, 220, 1976, 565, 62, 397, 1324, 31197, 62, 20850, 62, 9288, 14804, 8002, 316, 62, 738, 414, 7, 33245, 62, 7890, 796, 2376, 62, 5532, 198, 220, 220, 220, 220, 220, 21628, 62, 12985, 796, 1976, 361, 62, 397, 1324, 31197, 62, 9979, 1187, 14804, 66, 62, 12985, 12, 4102, 263, 6739, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS ltcl_rest DEFINITION DEFERRED. CLASS zcl_ags_service_rest DEFINITION LOCAL FRIENDS ltcl_rest. CLASS ltcl_rest DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS FINAL. PRIVATE SECTION. CONSTANTS: c_name TYPE zags_repos-name VALUE 'UNIT_TEST', c_description TYPE zags_repos-description VALUE 'DESCRIPTION, FOOBAR'. DATA: mo_rest TYPE REF TO zcl_ags_service_rest, mo_repo TYPE REF TO zcl_ags_repo. METHODS: setup RAISING zcx_ags_error, list_files FOR TESTING RAISING zcx_ags_error, list_branches FOR TESTING RAISING zcx_ags_error. ENDCLASS. "ltcl_List_Files CLASS ltcl_rest IMPLEMENTATION. METHOD setup. zcl_ags_db=>set_fake( ). CREATE OBJECT mo_rest. mo_repo = zcl_ags_repo=>create( iv_name = c_name iv_description = c_description ). ENDMETHOD. METHOD list_files. DATA: lt_files TYPE zcl_ags_cache=>ty_files_tt. lt_files = mo_rest->list_files( iv_repo = c_name iv_branch = mo_repo->get_data( )-head iv_path = '' ). cl_abap_unit_assert=>assert_not_initial( lt_files ). ENDMETHOD. METHOD list_branches. DATA: lt_branches TYPE zcl_ags_service_rest=>ty_branches_tt. lt_branches = mo_rest->list_branches( c_name ). cl_abap_unit_assert=>assert_not_initial( lt_branches ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 83, 565, 62, 2118, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 31631, 1976, 565, 62, 3775, 62, 15271, 62, 2118, 5550, 20032, 17941, 37347, 1847, 48167, 1677, 5258, 300, 83, 565, 62, 2118, 13, 198, 198, 31631, 300, 83, 565, 62, 2118, 5550, 20032, 17941, 7473, 43001, 2751, 360, 4261, 6234, 6006, 9863, 45698, 42, 49277, 43638, 5805, 7597, 25261, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 269, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 3775, 62, 260, 1930, 12, 3672, 26173, 8924, 705, 4944, 2043, 62, 51, 6465, 3256, 198, 220, 220, 220, 220, 220, 269, 62, 11213, 41876, 1976, 3775, 62, 260, 1930, 12, 11213, 26173, 8924, 705, 30910, 40165, 11, 376, 6684, 33, 1503, 4458, 628, 220, 220, 220, 42865, 25, 6941, 62, 2118, 41876, 4526, 37, 5390, 1976, 565, 62, 3775, 62, 15271, 62, 2118, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6941, 62, 260, 7501, 41876, 4526, 37, 5390, 1976, 565, 62, 3775, 62, 260, 7501, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 9058, 17926, 1797, 2751, 1976, 66, 87, 62, 3775, 62, 18224, 11, 198, 220, 220, 220, 220, 220, 1351, 62, 16624, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 3775, 62, 18224, 11, 198, 220, 220, 220, 220, 220, 1351, 62, 1671, 12140, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 3775, 62, 18224, 13, 198, 198, 10619, 31631, 13, 220, 220, 220, 220, 220, 220, 366, 2528, 565, 62, 8053, 62, 25876, 198, 198, 31631, 300, 83, 565, 62, 2118, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 9058, 13, 628, 220, 220, 220, 1976, 565, 62, 3775, 62, 9945, 14804, 2617, 62, 30706, 7, 6739, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 6941, 62, 2118, 13, 628, 220, 220, 220, 6941, 62, 260, 7501, 796, 1976, 565, 62, 3775, 62, 260, 7501, 14804, 17953, 7, 198, 220, 220, 220, 220, 220, 21628, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 796, 269, 62, 3672, 198, 220, 220, 220, 220, 220, 21628, 62, 11213, 796, 269, 62, 11213, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1351, 62, 16624, 13, 628, 220, 220, 220, 42865, 25, 300, 83, 62, 16624, 41876, 1976, 565, 62, 3775, 62, 23870, 14804, 774, 62, 16624, 62, 926, 13, 628, 198, 220, 220, 220, 300, 83, 62, 16624, 796, 6941, 62, 2118, 3784, 4868, 62, 16624, 7, 198, 220, 220, 220, 220, 220, 21628, 62, 260, 7501, 220, 220, 796, 269, 62, 3672, 198, 220, 220, 220, 220, 220, 21628, 62, 1671, 3702, 796, 6941, 62, 260, 7501, 3784, 1136, 62, 7890, 7, 1267, 12, 2256, 198, 220, 220, 220, 220, 220, 21628, 62, 6978, 220, 220, 796, 10148, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 1662, 62, 36733, 7, 300, 83, 62, 16624, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1351, 62, 1671, 12140, 13, 628, 220, 220, 220, 42865, 25, 300, 83, 62, 1671, 12140, 41876, 1976, 565, 62, 3775, 62, 15271, 62, 2118, 14804, 774, 62, 1671, 12140, 62, 926, 13, 628, 198, 220, 220, 220, 300, 83, 62, 1671, 12140, 796, 6941, 62, 2118, 3784, 4868, 62, 1671, 12140, 7, 269, 62, 3672, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493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. CLASS ZCL_ADV_TIME_CHECK IMPLEMENTATION. METHOD zif_adv_check~is_valid. DATA(string_time) = CONV string( data ). IF NOT contains( val = string_time regex = '^\d{6}$' ). RETURN. ENDIF. DATA(time) = CONV uzeit( string_time ). CALL FUNCTION 'TIME_CHECK_PLAUSIBILITY' EXPORTING time = time EXCEPTIONS plausibility_check_failed = 1 OTHERS = 2. IF sy-subrc <> 0. RETURN. ENDIF. valid = abap_true. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 32225, 62, 2435, 62, 9122, 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, 361, 62, 32225, 62, 9122, 13, 198, 220, 220, 220, 8355, 43429, 1546, 25, 318, 62, 12102, 7473, 1976, 361, 62, 32225, 62, 9122, 93, 271, 62, 12102, 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, 2885, 53, 62, 34694, 62, 50084, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 32225, 62, 9122, 93, 271, 62, 12102, 13, 628, 220, 220, 220, 42865, 7, 8841, 62, 2435, 8, 796, 7102, 53, 4731, 7, 1366, 6739, 628, 220, 220, 220, 16876, 5626, 4909, 7, 1188, 796, 4731, 62, 2435, 40364, 796, 705, 61, 59, 67, 90, 21, 92, 3, 6, 6739, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 42865, 7, 2435, 8, 796, 7102, 53, 334, 2736, 270, 7, 4731, 62, 2435, 6739, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 34694, 62, 50084, 62, 45710, 2937, 40, 25382, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 640, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 640, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 48923, 2247, 62, 9122, 62, 47904, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 362, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 4938, 796, 450, 499, 62, 7942, 13, 628, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS y_check_num_exec_statements DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC . PUBLIC SECTION. METHODS constructor . PROTECTED SECTION. METHODS inspect_tokens REDEFINITION . PRIVATE SECTION. DATA no_exec_statements TYPE i . DATA statement_for_message TYPE sstmnt. METHODS count_statements CHANGING !no_exec_statements TYPE i . METHODS determine_position IMPORTING !type TYPE flag !index TYPE i RETURNING VALUE(result) TYPE int4 . METHODS skip_keyword RETURNING VALUE(result) TYPE abap_bool . METHODS skip_statement IMPORTING !type TYPE stmnt_type RETURNING VALUE(result) TYPE abap_bool . ENDCLASS. CLASS Y_CHECK_NUM_EXEC_STATEMENTS IMPLEMENTATION. METHOD constructor. super->constructor( ). settings-pseudo_comment = '"#EC CI_NOES' ##NO_TEXT. settings-threshold = 40. settings-documentation = |{ c_docs_path-checks }number-executable-statements.md|. add_obj_type( c_type_program ). set_check_message( '&1 executable statements in method, exceeds threshold &2' ). ENDMETHOD. METHOD count_statements. IF skip_statement( statement_wa-type ). RETURN. ENDIF. IF skip_keyword( ). RETURN. ENDIF. IF token_wa-type <> scan_token_type-comment AND token_wa-type <> scan_token_type-pragma. ADD 1 TO no_exec_statements. ENDIF. ENDMETHOD. METHOD determine_position. result = index. IF type = scan_struc_type-event. result = result - 1. ENDIF. ENDMETHOD. METHOD inspect_tokens. statement_wa = statement. IF index = structure-stmnt_from. statement_for_message = statement. no_exec_statements = 0. ENDIF. count_statements( CHANGING no_exec_statements = no_exec_statements ). IF index = structure-stmnt_to. DATA(check_configuration) = detect_check_configuration( error_count = no_exec_statements statement = statement_for_message ). IF check_configuration IS INITIAL. RETURN. ENDIF. raise_error( statement_level = statement_for_message-level statement_index = determine_position( type = structure-type index = index ) statement_from = statement_for_message-from error_priority = check_configuration-prio parameter_01 = |{ no_exec_statements }| parameter_02 = |{ check_configuration-threshold }| ). ENDIF. ENDMETHOD. METHOD skip_keyword. CASE keyword( ). WHEN if_kaizen_keywords_c=>gc_program OR if_kaizen_keywords_c=>gc_endclass OR if_kaizen_keywords_c=>gc_endif OR if_kaizen_keywords_c=>gc_endwhile OR if_kaizen_keywords_c=>gc_endloop OR if_kaizen_keywords_c=>gc_enddo OR if_kaizen_keywords_c=>gc_endtry OR if_kaizen_keywords_c=>gc_endselect OR if_kaizen_keywords_c=>gc_endcase OR if_kaizen_keywords_c=>gc_endat OR if_kaizen_keywords_c=>gc_endprovide OR if_kaizen_keywords_c=>gc_report OR if_kaizen_keywords_c=>gc_function_pool OR if_kaizen_keywords_c=>gc_class_pool OR if_kaizen_keywords_c=>gc_interface_pool OR if_kaizen_keywords_c=>gc_type_pool OR if_kaizen_keywords_c=>gc_data OR if_kaizen_keywords_c=>gc_field_symbols OR if_kaizen_keywords_c=>gc_types OR if_kaizen_keywords_c=>gc_class_data OR if_kaizen_keywords_c=>gc_constants OR if_kaizen_keywords_c=>gc_statics OR if_kaizen_keywords_c=>gc_tables OR if_kaizen_keywords_c=>gc_nodes OR if_kaizen_keywords_c=>gc_field_groups OR if_kaizen_keywords_c=>gc_define OR if_kaizen_keywords_c=>gc_end_of_definition OR if_kaizen_keywords_c=>gc_include OR if_kaizen_keywords_c=>gc_parameters OR if_kaizen_keywords_c=>gc_parameter OR if_kaizen_keywords_c=>gc_select_options OR if_kaizen_keywords_c=>gc_function OR if_kaizen_keywords_c=>gc_endfunction OR if_kaizen_keywords_c=>gc_method OR if_kaizen_keywords_c=>gc_endmethod OR if_kaizen_keywords_c=>gc_form OR if_kaizen_keywords_c=>gc_endform OR if_kaizen_keywords_c=>gc_module OR if_kaizen_keywords_c=>gc_endmodule OR if_kaizen_keywords_c=>gc_methods OR if_kaizen_keywords_c=>gc_class_methods OR if_kaizen_keywords_c=>gc_events OR if_kaizen_keywords_c=>gc_class_events OR if_kaizen_keywords_c=>gc_interfaces OR if_kaizen_keywords_c=>gc_aliases OR if_kaizen_keywords_c=>gc_syntax_trace OR if_kaizen_keywords_c=>gc_enhancement_point OR if_kaizen_keywords_c=>gc_load_of_program OR if_kaizen_keywords_c=>gc_initialization OR if_kaizen_keywords_c=>gc_start_of_selection OR if_kaizen_keywords_c=>gc_end_of_selection OR if_kaizen_keywords_c=>gc_top_of_page OR if_kaizen_keywords_c=>gc_end_of_page OR if_kaizen_keywords_c=>gc_user_command OR if_kaizen_keywords_c=>gc_line_selection OR if_kaizen_keywords_c=>gc_selection_screen. result = abap_true. ENDCASE. ENDMETHOD. METHOD skip_statement. CONSTANTS: include_program TYPE stmnt_type VALUE 'I', include_program_not_exist TYPE stmnt_type VALUE 'J', macro_definition TYPE stmnt_type VALUE 'M', type_pools TYPE stmnt_type VALUE 'T', type_pool_not_exist TYPE stmnt_type VALUE 'V', comment_between_statement TYPE stmnt_type VALUE 'P', comment_in_statement TYPE stmnt_type VALUE 'S', blank_statement TYPE stmnt_type VALUE 'N'. IF type = include_program OR type = include_program_not_exist OR type = macro_definition OR type = type_pools OR type = type_pool_not_exist OR type = comment_between_statement OR type = comment_in_statement OR type = blank_statement. result = abap_true. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9122, 62, 22510, 62, 18558, 62, 14269, 3196, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 331, 62, 9122, 62, 8692, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 10104, 62, 83, 482, 641, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 645, 62, 18558, 62, 14269, 3196, 41876, 1312, 764, 198, 220, 220, 220, 42865, 2643, 62, 1640, 62, 20500, 41876, 264, 301, 76, 429, 13, 628, 220, 220, 220, 337, 36252, 50, 954, 62, 14269, 3196, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 3919, 62, 18558, 62, 14269, 3196, 41876, 1312, 764, 628, 220, 220, 220, 337, 36252, 50, 5004, 62, 9150, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4906, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 6056, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 9630, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 493, 19, 764, 628, 220, 220, 220, 337, 36252, 50, 14267, 62, 2539, 4775, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 764, 628, 220, 220, 220, 337, 36252, 50, 14267, 62, 26090, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4906, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 336, 76, 429, 62, 4906, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 575, 62, 50084, 62, 41359, 62, 6369, 2943, 62, 35744, 12529, 50, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 628, 220, 220, 220, 6460, 12, 7752, 12003, 62, 23893, 796, 705, 1, 2, 2943, 14514, 62, 15285, 1546, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 6460, 12, 400, 10126, 796, 2319, 13, 198, 220, 220, 220, 6460, 12, 22897, 341, 796, 930, 90, 269, 62, 31628, 62, 6978, 12, 42116, 1782, 17618, 12, 18558, 18187, 12, 14269, 3196, 13, 9132, 91, 13, 628, 220, 220, 220, 751, 62, 26801, 62, 4906, 7, 269, 62, 4906, 62, 23065, 6739, 628, 220, 220, 220, 900, 62, 9122, 62, 20500, 7, 705, 5, 16, 28883, 6299, 287, 2446, 11, 21695, 11387, 1222, 17, 6, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 954, 62, 14269, 3196, 13, 198, 220, 220, 220, 16876, 14267, 62, 26090, 7, 2643, 62, 10247, 12, 4906, 6739, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 16876, 14267, 62, 2539, 4775, 7, 6739, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 16876, 11241, 62, 10247, 12, 4906, 1279, 29, 9367, 62, 30001, 62, 4906, 12, 23893, 5357, 11241, 62, 10247, 12, 4906, 1279, 29, 9367, 62, 30001, 62, 4906, 12, 1050, 363, 2611, 13, 198, 220, 220, 220, 220, 220, 27841, 352, 5390, 645, 62, 18558, 62, 14269, 3196, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 5004, 62, 9150, 13, 198, 220, 220, 220, 1255, 796, 6376, 13, 198, 220, 220, 220, 16876, 2099, 796, 9367, 62, 19554, 66, 62, 4906, 12, 15596, 13, 198, 220, 220, 220, 220, 220, 1255, 796, 1255, 532, 352, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 10104, 62, 83, 482, 641, 13, 198, 220, 220, 220, 2643, 62, 10247, 796, 2643, 13, 628, 220, 220, 220, 16876, 6376, 796, 4645, 12, 301, 76, 429, 62, 6738, 13, 198, 220, 220, 220, 220, 220, 2643, 62, 1640, 62, 20500, 796, 2643, 13, 198, 220, 220, 220, 220, 220, 645, 62, 18558, 62, 14269, 3196, 796, 657, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 954, 62, 14269, 3196, 7, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 645, 62, 18558, 62, 14269, 3196, 796, 645, 62, 18558, 62, 14269, 3196, 6739, 628, 220, 220, 220, 16876, 6376, 796, 4645, 12, 301, 76, 429, 62, 1462, 13, 198, 220, 220, 220, 220, 220, 42865, 7, 9122, 62, 11250, 3924, 8, 796, 4886, 62, 9122, 62, 11250, 3924, 7, 4049, 62, 9127, 796, 645, 62, 18558, 62, 14269, 3196, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 796, 2643, 62, 1640, 62, 20500, 6739, 198, 220, 220, 220, 220, 220, 16876, 2198, 62, 11250, 3924, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 5298, 62, 18224, 7, 2643, 62, 5715, 220, 220, 220, 220, 796, 2643, 62, 1640, 62, 20500, 12, 5715, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 9630, 220, 220, 220, 220, 796, 5004, 62, 9150, 7, 2099, 796, 4645, 12, 4906, 6376, 796, 6376, 1267, 198, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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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 ]
*&---------------------------------------------------------------------* *& Report zabapgit_ci_update_abapgit_ci *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT zabapgit_ci_update_abapgit_ci. PARAMETERS: slack TYPE abap_bool AS CHECKBOX, token TYPE string LOWER CASE. CLASS lcl_abapgit_ci_update DEFINITION. PUBLIC SECTION. METHODS: run. PRIVATE SECTION. METHODS: send_to_slack IMPORTING ix_error TYPE REF TO zcx_abapgit_exception. ENDCLASS. CLASS lcl_abapgit_ci_update IMPLEMENTATION. METHOD run. TRY. zcl_abapgit_ci_repos=>update_abapgit_ci_repo( ). MESSAGE |abapGit CI updated successfully| TYPE 'S'. CATCH zcx_abapgit_exception INTO DATA(lx_error). IF slack = abap_true. send_to_slack( lx_error ). ENDIF. MESSAGE lx_error TYPE 'S' DISPLAY LIKE 'E'. ENDTRY. ENDMETHOD. METHOD send_to_slack. TRY. NEW zcl_abapgit_ci_slack( token )->post( |abapGit CI error: abapGit CI update failed with | && |"{ ix_error->get_text( ) }"| ). CATCH zcx_abapgit_exception INTO DATA(lx_error). MESSAGE lx_error TYPE 'S' DISPLAY LIKE 'E'. ENDTRY. ENDMETHOD. ENDCLASS. START-OF-SELECTION. NEW lcl_abapgit_ci_update( )->run( ).
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 1976, 397, 499, 18300, 62, 979, 62, 19119, 62, 397, 499, 18300, 62, 979, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 2200, 15490, 1976, 397, 499, 18300, 62, 979, 62, 19119, 62, 397, 499, 18300, 62, 979, 13, 198, 198, 27082, 2390, 2767, 4877, 25, 198, 220, 30740, 41876, 450, 499, 62, 30388, 7054, 5870, 25171, 39758, 11, 198, 220, 11241, 41876, 4731, 406, 36048, 42001, 13, 198, 198, 31631, 300, 565, 62, 397, 499, 18300, 62, 979, 62, 19119, 5550, 20032, 17941, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 1057, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 3758, 62, 1462, 62, 6649, 441, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 844, 62, 18224, 41876, 4526, 37, 5390, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 397, 499, 18300, 62, 979, 62, 19119, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 1057, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 565, 62, 397, 499, 18300, 62, 979, 62, 260, 1930, 14804, 19119, 62, 397, 499, 18300, 62, 979, 62, 260, 7501, 7, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 930, 397, 499, 38, 270, 14514, 6153, 7675, 91, 41876, 705, 50, 4458, 628, 220, 220, 220, 220, 220, 327, 11417, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 39319, 42865, 7, 75, 87, 62, 18224, 737, 628, 220, 220, 220, 220, 220, 220, 220, 16876, 30740, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3758, 62, 1462, 62, 6649, 441, 7, 300, 87, 62, 18224, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 300, 87, 62, 18224, 41876, 705, 50, 6, 13954, 31519, 34178, 705, 36, 4458, 628, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 3758, 62, 1462, 62, 6649, 441, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 12682, 1976, 565, 62, 397, 499, 18300, 62, 979, 62, 6649, 441, 7, 11241, 1267, 3784, 7353, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 397, 499, 38, 270, 14514, 4049, 25, 450, 499, 38, 270, 14514, 4296, 4054, 351, 930, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11405, 930, 1, 90, 220, 844, 62, 18224, 3784, 1136, 62, 5239, 7, 1267, 1782, 1, 91, 6739, 628, 220, 220, 220, 220, 220, 327, 11417, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 39319, 42865, 7, 75, 87, 62, 18224, 737, 198, 220, 220, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 300, 87, 62, 18224, 41876, 705, 50, 6, 13954, 31519, 34178, 705, 36, 4458, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 198, 220, 12682, 300, 565, 62, 397, 499, 18300, 62, 979, 62, 19119, 7, 1267, 3784, 5143, 7, 6739, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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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 ]
*&---------------------------------------------------------------------* *& Report Z_TEST_DOCX_2 *&---------------------------------------------------------------------* *--------------------------------------------------------------------* * Autor: [email protected] *--------------------------------------------------------------------* REPORT z_test_docx_2. START-OF-SELECTION. TYPES " structure to hold our data : BEGIN OF t_data , carrid TYPE s_carr_id , class TYPE s_class , forcuram TYPE s_f_cur_pr , forcurkey TYPE s_curr , loccuram TYPE s_l_cur_pr , loccurkey TYPE s_currcode , order_date TYPE s_bdate , END OF t_data . DATA : lt_carrid TYPE TABLE OF s_carr_id , lt_total TYPE TABLE OF t_data , lt_sub_total TYPE TABLE OF t_data , lt_sub_total_tmp TYPE TABLE OF t_data , lt_data TYPE TABLE OF t_data , lt_tmp TYPE TABLE OF t_data , lt_adrp TYPE TABLE OF adrp . " select data for "sign" placeholder SELECT * INTO TABLE lt_adrp FROM adrp UP TO 5 ROWS. * REFRESH lt_adrp. * * * APPEND INITIAL LINE TO lt_adrp ASSIGNING FIELD-SYMBOL(<fs_adrp>). * <fs_adrp>-name_first = 'Renee'. * <fs_adrp>-name_last = 'Villegas'. * APPEND INITIAL LINE TO lt_adrp ASSIGNING <fs_adrp>. * * <fs_adrp>-name_first = 'Meerab'. * <fs_adrp>-name_last = 'Finnegan'. * APPEND INITIAL LINE TO lt_adrp ASSIGNING <fs_adrp>. * * <fs_adrp>-name_first = 'Jozef'. * <fs_adrp>-name_last = 'Beil'. * APPEND INITIAL LINE TO lt_adrp ASSIGNING <fs_adrp>. * * <fs_adrp>-name_first = 'Leonard'. * <fs_adrp>-name_last = 'Yates'. * APPEND INITIAL LINE TO lt_adrp ASSIGNING <fs_adrp>. * * <fs_adrp>-name_first = 'Kyron'. * <fs_adrp>-name_last = 'Stevens'. " select data to display in main table, " may be it may create easy and in proper way, " but now it just data for proof of concept SELECT * INTO CORRESPONDING FIELDS OF TABLE lt_tmp FROM sbook . lt_data = lt_tmp. "make backup, because our data corrupted, while calculate total and subtotal LOOP AT lt_tmp ASSIGNING FIELD-SYMBOL(<fs_tmp>). COLLECT <fs_tmp>-carrid INTO lt_carrid. " every document1 or document2 hold data by single carrid CLEAR : <fs_tmp>-class , <fs_tmp>-forcurkey , <fs_tmp>-loccurkey , <fs_tmp>-order_date . COLLECT <fs_tmp> INTO lt_sub_total . "calculate subtotal CLEAR : <fs_tmp>-carrid . COLLECT <fs_tmp> INTO lt_total. " calculate total. ENDLOOP. lt_tmp = lt_data. REFRESH lt_data. LOOP AT lt_sub_total ASSIGNING FIELD-SYMBOL(<fs_sub_total>). DATA : lv_i TYPE i . CLEAR lv_i. LOOP AT lt_tmp ASSIGNING <fs_tmp> WHERE carrid = <fs_sub_total>-carrid. ADD 1 TO lv_i. IF lv_i > 4 . " four row for proof of concept is enought EXIT. ENDIF. APPEND <fs_tmp> TO lt_data. ENDLOOP. ENDLOOP. " craete main wariable to hold our data DATA(lr_data) = zcl_docx2=>create_data( ). " fill place holder for simple variable, iv_key case insensitive lr_data->append_key_value( iv_key = 'name' iv_value = sy-uname ). lr_data->append_key_value( iv_key = 'date' iv_value = |{ sy-datum DATE = ENVIRONMENT }| ). lr_data->append_key_value( iv_key = 'time' iv_value = |{ sy-uzeit TIME = ENVIRONMENT }| ). " fill place holder for total ( table of 1 row) lr_data->append_key_table( iv_key = 'total' iv_table = lt_total ). "fill placeholder for sign, iv_key always case insensitive lr_data->append_key_table( iv_key = 'sign' iv_table = lt_adrp ). " fill our main table LOOP AT lt_sub_total ASSIGNING <fs_sub_total>. REFRESH : lt_tmp , lt_sub_total_tmp . APPEND <fs_sub_total> TO lt_sub_total_tmp. " subtotal table of 1 row LOOP AT lt_data ASSIGNING FIELD-SYMBOL(<fs_data>) WHERE carrid = <fs_sub_total>-carrid. APPEND <fs_data> TO lt_tmp. " table for placeholder "data_row" ENDLOOP. " create variable to hold data as subchild of our main variable DATA(lr_document1) = lr_data->create_document( 'document1' ). " fill placeholder "data_row" in document "document1" lr_document1->append_key_table( iv_key = 'data_row' iv_table = lt_tmp ). " fill placeholder "subtotal" in document "document1" lr_document1->append_key_table( iv_key = 'subtotal' iv_table = lt_sub_total_tmp ). " our temlate contain 2 variant of main table: easy and wrong, more complex and true "create variable to hold data for document2 DATA(lr_document2) = lr_data->create_document( 'document2' ). " fill placeholder "data_row" in document "document2" lr_document2->append_key_table( iv_key = 'data_row' iv_table = lt_tmp ). " fill placeholder "subtotal" in document "document2" lr_document2->append_key_table( iv_key = 'subtotal' iv_table = lt_sub_total_tmp ). ENDLOOP. *final moment get document DATA : lv_document TYPE xstring " variable to hold generated document, can be omitted . lv_document = zcl_docx2=>get_document( iv_w3objid = 'Z_TEST_DOCX2' " name of our template, obligatory * iv_on_desktop = 'X' " by default save document on desktop * iv_folder = 'report' " in folder by default 'report' * iv_path = '' " IF iv_path IS INITIAL save on desctop or sap_tmp folder * iv_file_name = 'report.docx' " file name by default * iv_no_execute = '' " if filled -- just get document no run office * iv_protect = '' " if filled protect document from editing, but not protect from sequence " ctrl+a, ctrl+c, ctrl+n, ctrl+v, edit ir_data = lr_data " root of our data, obligatory * iv_no_save = '' " just get binary data not save on disk ).
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 1168, 62, 51, 6465, 62, 38715, 55, 62, 17, 198, 9, 5, 10097, 30934, 9, 198, 9, 10097, 650, 9, 198, 9, 220, 5231, 273, 25, 9261, 13, 50, 1134, 312, 259, 31, 14816, 13, 785, 198, 9, 10097, 650, 9, 198, 198, 2200, 15490, 1976, 62, 9288, 62, 15390, 87, 62, 17, 13, 198, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 628, 198, 220, 24412, 47, 1546, 198, 1, 220, 4645, 284, 1745, 674, 1366, 198, 220, 1058, 347, 43312, 3963, 256, 62, 7890, 198, 220, 837, 220, 220, 1097, 6058, 220, 41876, 264, 62, 66, 3258, 62, 312, 198, 220, 837, 220, 220, 1398, 197, 25216, 264, 62, 4871, 198, 220, 837, 220, 220, 329, 22019, 321, 220, 41876, 264, 62, 69, 62, 22019, 62, 1050, 198, 220, 837, 220, 220, 329, 22019, 2539, 197, 25216, 264, 62, 22019, 81, 198, 220, 837, 220, 220, 1179, 22019, 321, 220, 41876, 264, 62, 75, 62, 22019, 62, 1050, 198, 220, 837, 220, 220, 1179, 22019, 2539, 197, 25216, 264, 62, 22019, 6015, 1098, 198, 220, 837, 220, 220, 1502, 62, 4475, 220, 41876, 264, 62, 65, 4475, 198, 220, 837, 23578, 3963, 256, 62, 7890, 198, 220, 764, 628, 628, 220, 42865, 198, 220, 220, 220, 220, 220, 220, 220, 1058, 300, 83, 62, 66, 3258, 312, 41876, 43679, 3963, 264, 62, 66, 3258, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 837, 300, 83, 62, 23350, 41876, 43679, 3963, 256, 62, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 837, 300, 83, 62, 7266, 62, 23350, 41876, 43679, 3963, 256, 62, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 837, 300, 83, 62, 7266, 62, 23350, 62, 22065, 41876, 43679, 3963, 256, 62, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 837, 300, 83, 62, 7890, 41876, 43679, 3963, 256, 62, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 837, 300, 83, 62, 22065, 41876, 43679, 3963, 256, 62, 7890, 628, 220, 220, 220, 220, 220, 220, 220, 837, 300, 83, 62, 41909, 79, 41876, 43679, 3963, 512, 81, 79, 628, 220, 220, 220, 220, 220, 220, 220, 764, 628, 220, 366, 2922, 1366, 329, 366, 12683, 1, 46076, 198, 220, 33493, 1635, 39319, 43679, 300, 83, 62, 41909, 79, 16034, 512, 81, 79, 15958, 5390, 642, 371, 22845, 13, 198, 198, 9, 220, 4526, 10913, 44011, 300, 83, 62, 41909, 79, 13, 198, 9, 198, 9, 198, 9, 220, 43504, 10619, 3268, 2043, 12576, 48920, 5390, 300, 83, 62, 41909, 79, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 9501, 62, 41909, 79, 29, 737, 198, 9, 220, 1279, 9501, 62, 41909, 79, 29, 12, 3672, 62, 11085, 796, 705, 26764, 1453, 4458, 198, 9, 220, 1279, 9501, 62, 41909, 79, 29, 12, 3672, 62, 12957, 796, 705, 53, 346, 1455, 292, 4458, 198, 9, 220, 43504, 10619, 3268, 2043, 12576, 48920, 5390, 300, 83, 62, 41909, 79, 24994, 3528, 15871, 1279, 9501, 62, 41909, 79, 28401, 198, 9, 198, 9, 220, 1279, 9501, 62, 41909, 79, 29, 12, 3672, 62, 11085, 796, 705, 5308, 263, 397, 4458, 198, 9, 220, 1279, 9501, 62, 41909, 79, 29, 12, 3672, 62, 12957, 796, 705, 18467, 710, 1030, 4458, 198, 9, 220, 43504, 10619, 3268, 2043, 12576, 48920, 5390, 300, 83, 62, 41909, 79, 24994, 3528, 15871, 1279, 9501, 62, 41909, 79, 28401, 198, 9, 198, 9, 220, 1279, 9501, 62, 41909, 79, 29, 12, 3672, 62, 11085, 796, 705, 41, 8590, 891, 4458, 198, 9, 220, 1279, 9501, 62, 41909, 79, 29, 12, 3672, 62, 12957, 796, 705, 3856, 346, 4458, 198, 9, 220, 43504, 10619, 3268, 2043, 12576, 48920, 5390, 300, 83, 62, 41909, 79, 24994, 3528, 15871, 1279, 9501, 62, 41909, 79, 28401, 198, 9, 198, 9, 220, 1279, 9501, 62, 41909, 79, 29, 12, 3672, 62, 11085, 796, 705, 36185, 446, 4458, 198, 9, 220, 1279, 9501, 62, 41909, 79, 29, 12, 3672, 62, 12957, 796, 705, 56, 689, 4458, 198, 9, 220, 43504, 10619, 3268, 2043, 12576, 48920, 5390, 300, 83, 62, 41909, 79, 24994, 3528, 15871, 1279, 9501, 62, 41909, 79, 28401, 198, 9, 198, 9, 220, 1279, 9501, 62, 41909, 79, 29, 12, 3672, 62, 11085, 796, 705, 30630, 1313, 4458, 198, 9, 220, 1279, 9501, 62, 41909, 79, 29, 12, 3672, 62, 12957, 796, 705, 28292, 82, 4458, 628, 628, 628, 220, 366, 2922, 1366, 284, 3359, 287, 1388, 3084, 11, 198, 220, 366, 743, 307, 340, 743, 2251, 2562, 290, 287, 1774, 835, 11, 198, 220, 366, 475, 783, 340, 655, 1366, 329, 6617, 286, 3721, 628, 220, 33493, 1635, 198, 220, 220, 220, 39319, 23929, 19535, 47, 18672, 2751, 18930, 3698, 5258, 3963, 43679, 300, 83, 62, 22065, 198, 220, 220, 220, 16034, 264, 2070, 198, 220, 220, 220, 764, 628, 220, 300, 83, 62, 7890, 796, 300, 83, 62, 22065, 13, 366, 15883, 11559, 11, 780, 674, 1366, 26940, 11, 981, 15284, 2472, 290, 13284, 4997, 628, 220, 17579, 3185, 5161, 300, 83, 62, 22065, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 9501, 62, 22065, 29, 737, 198, 220, 220, 220, 20444, 16779, 1279, 9501, 62, 22065, 29, 12, 66, 3258, 312, 39319, 300, 83, 62, 66, 3258, 312, 13, 220, 366, 790, 3188, 16, 393, 3188, 17, 1745, 1366, 416, 2060, 1097, 6058, 628, 220, 220, 220, 30301, 1503, 198, 220, 220, 220, 1058, 1279, 9501, 62, 22065, 29, 12, 4871, 198, 220, 220, 220, 837, 1279, 9501, 62, 22065, 29, 12, 1640, 22019, 2539, 198, 220, 220, 220, 837, 1279, 9501, 62, 22065, 29, 12, 75, 13966, 333, 2539, 198, 220, 220, 220, 837, 1279, 9501, 62, 22065, 29, 12, 2875, 62, 4475, 198, 220, 220, 220, 764, 628, 220, 220, 220, 20444, 16779, 1279, 9501, 62, 22065, 29, 39319, 300, 83, 62, 7266, 62, 23350, 764, 366, 9948, 3129, 378, 220, 13284, 4997, 628, 220, 220, 220, 30301, 1503, 198, 220, 220, 220, 1058, 1279, 9501, 62, 22065, 29, 12, 66, 3258, 312, 198, 220, 220, 220, 764, 628, 220, 220, 220, 20444, 16779, 1279 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class zcl_abap_behv_test_trans_bufr2 definition public final create private. public section. interfaces zif_abap_behv_test_trans_bufr. class-methods: "! <p class="shorttext synchronized" lang="en">Get the transactional buffer instance</p> get_instance returning value(double_transactional_buffer) type ref to zif_abap_behv_test_trans_bufr. protected section. private section. "Structure to hold bdef load attributes types: begin of t_bdef_load, head type cl_abap_behv_load=>t_head, entities type cl_abap_behv_load=>tt_entity, features type cl_abap_behv_load=>tt_feature, actions type cl_abap_behv_load=>tt_action, relations type cl_abap_behv_load=>tt_relat, associations type cl_abap_behv_load=>tt_assoc, end of t_bdef_load . types: begin of ty_double_transactional_buffer, entity_root type abp_root_entity_name, entity_name type abp_entity_name, entity_alias type abp_entity_name, entity_instances type ref to data, reported type ref to data, failed type ref to data, end of ty_double_transactional_buffer. class-data: "! <p class="shorttext synchronized" lang="en">Transactional buffer double singleton instance</p> double_transactional_buffer type ref to zif_abap_behv_test_trans_bufr. data: "! <p class="shorttext synchronized" lang="en">Transactional buffer double</p> dbl_transactional_buffer_table type standard table of ty_double_transactional_buffer with key entity_name. " TODO : should we have a sorted table on entity name for binary search, or provide hashing to improve the search constants: c_message_class type symsgid value 'ZBO_MOCKING_MESSAGE'. methods: check_instance_equal importing instance_1 type any instance_2 type any entity_fields type ddfields returning value(equal) type abap_bool, check_instance_exists importing instance_to_check type any entity_instances type any table entity_fields type ddfields returning value(exists) type abap_bool, get_entity_fields importing entity_name type abp_entity_name returning value(entity_fields) type ddfields, deep_clone importing data_to_be_cloned type any exporting reference_to_cloned_data type ref to data, format_res_as_per_cntrl_flds importing control_fields type any entity_fields type ddfields changing entity_instance type any, fill_read_reported_and_failed importing i_entity_fields type ddfields alias_name type abp_entity_name message_number type symsgno retrieval type abp_behv_retrievals changing c_failed type data c_reported type data cs_retrieval_instance type any, fill_modify_reported_n_failed importing i_entity_fields type ddfields alias_name type abp_entity_name message_number type symsgno change type abp_behv_changes changing c_failed type data c_reported type data cs_change_instance type any, fill_modify_mapped importing i_entity_fields type ddfields alias_name type abp_entity_name message_number type symsgno change type abp_behv_changes changing c_mapped type data cs_change_instance type any, _create importing change type abp_behv_changes bdef_load type t_bdef_load changing failed type data mapped type data reported type data, _delete importing change type abp_behv_changes bdef_load type t_bdef_load changing failed type data mapped type data reported type data, cascade_delete importing instance type any associations type cl_abap_behv_load=>tt_assoc entity type abp_entity_name, _update importing change type abp_behv_changes bdef_load type t_bdef_load changing failed type data mapped type data reported type data, _create_by_assoc importing change type abp_behv_changes bdef_load type t_bdef_load changing failed type data mapped type data reported type data, _read importing retrieval type abp_behv_retrievals bdef_load type t_bdef_load changing failed type data reported type data, _read_by_assoc importing retrieval type abp_behv_retrievals bdef_load type t_bdef_load changing failed type data reported type data, find_reported_if_configured importing entities type cl_abap_behv_load=>tt_entity instance_to_check type any changing buffer_4_entity type ty_double_transactional_buffer c_reported type data. endclass. class zcl_abap_behv_test_trans_bufr2 implementation. method get_instance. if zcl_abap_behv_test_trans_bufr2=>double_transactional_buffer is initial. zcl_abap_behv_test_trans_bufr2=>double_transactional_buffer = new zcl_abap_behv_test_trans_bufr2( ). endif. double_transactional_buffer = zcl_abap_behv_test_trans_bufr2=>double_transactional_buffer. endmethod. method zif_abap_behv_test_trans_bufr~read. data bdef_load type t_bdef_load. field-symbols <fs_retrieval> type abp_behv_retrievals. cl_abap_behv_load=>get_load( exporting entity = root_name all = abap_true importing head = bdef_load-head entities = bdef_load-entities features = bdef_load-features actions = bdef_load-actions relations = bdef_load-relations associations = bdef_load-associations ). loop at retrievals assigning <fs_retrieval>. case <fs_retrieval>-op. when if_abap_behv=>op-r-read. _read( exporting retrieval = <fs_retrieval> bdef_load = bdef_load changing failed = failed reported = reported ). when if_abap_behv=>op-r-read_ba. _read_by_assoc( exporting retrieval = <fs_retrieval> bdef_load = bdef_load changing failed = failed reported = reported ). endcase. endloop. endmethod. method zif_abap_behv_test_trans_bufr~modify. " steps " loop through each entity in the changes " check whether a buffer entry is present in the transactional buffer or not for the entity " if buffer entry is not present, first create a new buffer entry for the entity " If operation is CREATE " loop through instances of entity to be created from the change " for each instance to create, check whether the buffer entry for the entity already has an entry with same keys " if entry is already present fill the failed and reported structure " if instance is not present add the instance to the buffer entry and fill the mapped structure " if operation is UPDATE " check whether the buffer contains an entry with the same primary keys, if present update the instance and fill mapped " if not available, fill failed and reported " if operation is DELETE " check whether the buffer contains an entry with the same primary keys, if present delete the instance " if not available, fill failed and reported data bdef_load type t_bdef_load. cl_abap_behv_load=>get_load( exporting entity = root_name all = abap_true importing head = bdef_load-head entities = bdef_load-entities features = bdef_load-features actions = bdef_load-actions relations = bdef_load-relations associations = bdef_load-associations ). loop at changes assigning field-symbol(<fs_change>). case <fs_change>-op. when if_abap_behv=>op-m-create. _create( exporting change = <fs_change> bdef_load = bdef_load changing failed = failed mapped = mapped reported = reported ). when if_abap_behv=>op-m-update. _update( exporting change = <fs_change> bdef_load = bdef_load changing failed = failed mapped = mapped reported = reported ). when if_abap_behv=>op-m-delete. _delete( exporting change = <fs_change> bdef_load = bdef_load changing failed = failed mapped = mapped reported = reported ). when if_abap_behv=>op-m-create_ba. _create_by_assoc( exporting change = <fs_change> bdef_load = bdef_load changing failed = failed mapped = mapped reported = reported ). endcase. endloop. endmethod. method check_instance_equal. data entity_field type dfies. field-symbols <instance_1_field> type any. field-symbols <instance_2_field> type any. loop at entity_fields into entity_field where keyflag = abap_true. assign component entity_field-fieldname of structure instance_1 to <instance_1_field>. assign component entity_field-fieldname of structure instance_2 to <instance_2_field>. if <instance_1_field> <> <instance_2_field>. " entity does not match equal = abap_false. return. endif. endloop. equal = abap_true. return. endmethod. method check_instance_exists. field-symbols <entity_instance> type any. loop at entity_instances assigning <entity_instance>. data(equal) = check_instance_equal( instance_1 = instance_to_check instance_2 = <entity_instance> entity_fields = entity_fields ). if equal = abap_true. exists = abap_true. return. endif. endloop. exists = abap_false. endmethod. method get_entity_fields. data struct_descr type ref to cl_abap_structdescr. struct_descr ?= cl_abap_typedescr=>describe_by_name( entity_name ). entity_fields = struct_descr->get_ddic_field_list( ). endmethod. method deep_clone. field-symbols <fs_clone> type any. create data reference_to_cloned_data like data_to_be_cloned. assign reference_to_cloned_data->* to <fs_clone>. <fs_clone> = data_to_be_cloned. endmethod. method format_res_as_per_cntrl_flds. data entity_field type dfies. field-symbols <fs_control_field_value> type any. field-symbols <fs_data_to_be_removed> type any. loop at entity_fields into entity_field where fieldname <> '.NODE1' and keyflag = abap_false. assign component entity_field-fieldname of structure control_fields to <fs_control_field_value>. if <fs_control_field_value> = if_abap_behv=>mk-off. " clear data assign component entity_field-fieldname of structure entity_instance to <fs_data_to_be_removed>. clear <fs_data_to_be_removed>. endif. endloop. endmethod. method fill_read_reported_and_failed. field-symbols <fs_entry_failed_table> type standard table. field-symbols <fs_entry_reported_table> type standard table. assign component alias_name of structure c_failed to <fs_entry_failed_table>. data entry_failed type ref to data. create data entry_failed like line of <fs_entry_failed_table>. assign entry_failed->* to field-symbol(<fs_entry_failed>). "Assign key fields loop at i_entity_fields into data(entity_field) where keyflag = abap_true. assign component entity_field-fieldname of structure cs_retrieval_instance to field-symbol(<fs_val_1>). assign component entity_field-fieldname of structure <fs_entry_failed> to field-symbol(<fs_val_2>). <fs_val_2> = <fs_val_1>. endloop. "Assign fail reason assign component cl_abap_behv=>co_techfield_name-fail of structure <fs_entry_failed> to field-symbol(<fail>). assign component 'CAUSE' of structure <fail> to field-symbol(<fail_reason>). <fail_reason> = if_abap_behv=>cause-not_found. "Assign Association if read by association operation. if retrieval-op eq if_abap_behv=>op-r-read_ba. assign component cl_abap_behv=>co_techfield_name-assoc of structure <fs_entry_failed> to field-symbol(<assoc>). assign component retrieval-sub_name of structure <assoc> to field-symbol(<assoc_subname>). <assoc_subname> = '01'. endif. append <fs_entry_failed> to <fs_entry_failed_table>. "Fill reported assign component alias_name of structure c_reported to <fs_entry_reported_table>. data entry_reported type ref to data. create data entry_reported like line of <fs_entry_reported_table>. assign entry_reported->* to field-symbol(<fs_entry_reported>). "Assign key fields loop at i_entity_fields into entity_field where keyflag = abap_true. assign component entity_field-fieldname of structure cs_retrieval_instance to <fs_val_1>. assign component entity_field-fieldname of structure <fs_entry_reported> to <fs_val_2>. <fs_val_2> = <fs_val_1>. endloop. "Assign exception message instance data(lo_message) = new lcl_exception_handler( )->new_message( id = c_message_class number = message_number severity = if_abap_behv_message=>severity-error ). field-symbols:<fs_message_obj> type ref to if_abap_behv_message. field-symbols:<fs_message_obj2> type ref to if_abap_behv_message. assign component cl_abap_behv=>co_techfield_name-msg of structure <fs_entry_reported> to <fs_message_obj2>. assign lo_message to <fs_message_obj>. <fs_message_obj2> = <fs_message_obj>. append <fs_entry_reported> to <fs_entry_reported_table>. endmethod. method fill_modify_reported_n_failed. field-symbols <fs_entry_failed_table> type standard table. field-symbols <fs_entry_reported_table> type standard table. assign component alias_name of structure c_failed to <fs_entry_failed_table>. data entry_failed type ref to data. create data entry_failed like line of <fs_entry_failed_table>. assign entry_failed->* to field-symbol(<fs_entry_failed>). "Assign key fields loop at i_entity_fields into data(entity_field) where keyflag = abap_true. assign component entity_field-fieldname of structure cs_change_instance to field-symbol(<fs_val_1>). assign component entity_field-fieldname of structure <fs_entry_failed> to field-symbol(<fs_val_2>). <fs_val_2> = <fs_val_1>. endloop. "Assign fail reason assign component cl_abap_behv=>co_techfield_name-fail of structure <fs_entry_failed> to field-symbol(<fail>). assign component 'CAUSE' of structure <fail> to field-symbol(<fail_reason>). " Make operation specific additions to failed case change-op. when if_abap_behv=>op-m-create. <fail_reason> = if_abap_behv=>cause-unspecific. assign component cl_abap_behv=>co_techfield_name-create of structure <fs_entry_failed> to field-symbol(<create>). <create> = '01'. when if_abap_behv=>op-m-create_ba. <fail_reason> = if_abap_behv=>cause-unspecific. assign component cl_abap_behv=>co_techfield_name-create of structure <fs_entry_failed> to <create>. <create> = '01'. when if_abap_behv=>op-m-update. <fail_reason> = if_abap_behv=>cause-not_found. assign component cl_abap_behv=>co_techfield_name-update of structure <fs_entry_failed> to field-symbol(<update>). <update> = '01'. when if_abap_behv=>op-m-delete. <fail_reason> = if_abap_behv=>cause-not_found. assign component cl_abap_behv=>co_techfield_name-delete of structure <fs_entry_failed> to field-symbol(<delete>). <delete> = '01'. endcase. append <fs_entry_failed> to <fs_entry_failed_table>. "Fill reported assign component alias_name of structure c_reported to <fs_entry_reported_table>. data entry_reported type ref to data. create data entry_reported like line of <fs_entry_reported_table>. assign entry_reported->* to field-symbol(<fs_entry_reported>). "Assign key fields loop at i_entity_fields into entity_field where keyflag = abap_true. assign component entity_field-fieldname of structure cs_change_instance to <fs_val_1>. assign component entity_field-fieldname of structure <fs_entry_reported> to <fs_val_2>. <fs_val_2> = <fs_val_1>. endloop. "Assign exception message instance data(lo_message) = new lcl_exception_handler( )->new_message( id = c_message_class number = message_number severity = if_abap_behv_message=>severity-error ). field-symbols:<fs_message_obj> type ref to if_abap_behv_message. field-symbols:<fs_message_obj2> type ref to if_abap_behv_message. assign component cl_abap_behv=>co_techfield_name-msg of structure <fs_entry_reported> to <fs_message_obj2>. assign lo_message to <fs_message_obj>. <fs_message_obj2> = <fs_message_obj>. append <fs_entry_reported> to <fs_entry_reported_table>. endmethod. method fill_modify_mapped. field-symbols <fs_entry_mapped_table> type standard table. assign component alias_name of structure c_mapped to <fs_entry_mapped_table>. data entry_mapped type ref to data. create data entry_mapped like line of <fs_entry_mapped_table>. assign entry_mapped->* to field-symbol(<fs_entry_mapped>). "Assign key fields loop at i_entity_fields into data(entity_field) where keyflag = abap_true. assign component entity_field-fieldname of structure cs_change_instance to field-symbol(<fs_val_1>). assign component entity_field-fieldname of structure <fs_entry_mapped> to field-symbol(<fs_val_2>). <fs_val_2> = <fs_val_1>. endloop. append <fs_entry_mapped> to <fs_entry_mapped_table>. endmethod. method cascade_delete. data buffer_4_assoc_entity type ty_double_transactional_buffer. data buffer_4_entity type ty_double_transactional_buffer. data entity_buffer_instance type ref to data. data(entity_fields) = get_entity_fields( entity ). read table associations into data(association) with key source_entity = entity. if sy-subrc eq 0. data(associated_entity) = association-target_entity. endif. if associated_entity is not initial. if line_exists( dbl_transactional_buffer_table[ entity_name = associated_entity ] ). buffer_4_assoc_entity = dbl_transactional_buffer_table[ entity_name = associated_entity ]. endif. if buffer_4_assoc_entity is not initial. field-symbols <assoc_entity_buff_instances> type standard table. assign buffer_4_assoc_entity-entity_instances->* to <assoc_entity_buff_instances>. if <assoc_entity_buff_instances> is assigned. loop at <assoc_entity_buff_instances> assigning field-symbol(<assoc_entity_buffer_instance>). "check if the instance is associated with the input entity instance data(equal) = check_instance_equal( exporting instance_1 = <assoc_entity_buffer_instance> instance_2 = instance entity_fields = entity_fields " here we are passing the entity fields of parent entity and not associated entity because " the read happens only based on the key value of parent and not associated entity ). if equal eq abap_true. cascade_delete( associations = associations entity = associated_entity instance = <assoc_entity_buffer_instance> ). endif. endloop. endif. endif. endif. "delete the instance if line_exists( dbl_transactional_buffer_table[ entity_name = entity ] ). buffer_4_entity = dbl_transactional_buffer_table[ entity_name = entity ]. if buffer_4_entity is not initial. field-symbols <instances_4_entity_in_buffer> type standard table. assign buffer_4_entity-entity_instances->* to <instances_4_entity_in_buffer>. " TODO: Check if an assignment check is required. loop at <instances_4_entity_in_buffer> assigning field-symbol(<instance>). "look for a matching instance to be deleted equal = check_instance_equal( exporting instance_1 = <instance> instance_2 = instance entity_fields = entity_fields ). if equal eq abap_true. delete <instances_4_entity_in_buffer>. exit. endif. endloop. endif. endif. endmethod. method _create_by_assoc. data buffer_4_entity type ty_double_transactional_buffer. data entity_buffer_instance type ref to data. data struct_descr_4_entity type ref to cl_abap_structdescr. data entity_fields type ddfields. field-symbols <instances_4_entity_in_buffer> type standard table. field-symbols <input_entity_instances> type standard table. field-symbols <input_entity_instance> type any. field-symbols <entity_buffer_instance> type any. if line_exists( dbl_transactional_buffer_table[ entity_name = change-entity_name ] ). buffer_4_entity = dbl_transactional_buffer_table[ entity_name = change-entity_name ]. endif. if buffer_4_entity is initial. " no buffer entry present for the entity buffer_4_entity-entity_name = change-entity_name. buffer_4_entity-entity_instances = cl_abap_behvdescr=>create_data( p_name = change-entity_name p_op = if_abap_behv=>op-r-read "TODO : Should it be modify/read? p_kind = if_abap_behv=>typekind-result ). append buffer_4_entity to dbl_transactional_buffer_table. endif. struct_descr_4_entity ?= cl_abap_typedescr=>describe_by_name( change-entity_name ). entity_fields = struct_descr_4_entity->get_ddic_field_list( ). data(entity_details) = bdef_load-entities[ name = change-entity_name ]. data(alias) = entity_details-alias. alias = to_upper( alias ). if alias is not initial. buffer_4_entity-entity_alias = alias. else. buffer_4_entity-entity_alias = change-entity_name. endif. "Won't be filled in all the use cases. assign buffer_4_entity-entity_instances->* to <instances_4_entity_in_buffer>. assign change-instances->* to <input_entity_instances>. loop at <input_entity_instances> assigning <input_entity_instance>. "check whether the entity instance is already present in the buffer data(instance_exists_in_buffer) = check_instance_exists( exporting instance_to_check = <input_entity_instance> entity_instances = <instances_4_entity_in_buffer> entity_fields = entity_fields ). data buffer_4_assoc_entity type ty_double_transactional_buffer. data struct_descr_assoc_entity type ref to cl_abap_structdescr. data entity_fields_of_assoc_entity type ddfields. field-symbols <input_assoc_entity_instances> type standard table. field-symbols <input_assoc_entity_instance> type any. data(association) = bdef_load-associations[ source_entity = change-entity_name ]. data(associated_entity) = association-target_entity. struct_descr_assoc_entity ?= cl_abap_typedescr=>describe_by_name( associated_entity ). entity_fields_of_assoc_entity = struct_descr_assoc_entity->get_ddic_field_list( ). assign component cl_abap_behv=>co_techfield_name-target of structure <input_entity_instance> to <input_assoc_entity_instances>. loop at <input_assoc_entity_instances> assigning <input_assoc_entity_instance>. " make sure the foreign key values are filled in the associated entity instance loop at bdef_load-relations[ source_entity = associated_entity ]-foreignkeys into data(key). assign component key-local_name of structure <input_entity_instance> to field-symbol(<fs_val_1>). assign component key-local_name of structure <input_assoc_entity_instance> to field-symbol(<fs_val_2>). <fs_val_2> = <fs_val_1>. endloop. " Check if buffer entry exists for the associated entity if line_exists( dbl_transactional_buffer_table[ entity_name = associated_entity ] ). buffer_4_assoc_entity = dbl_transactional_buffer_table[ entity_name = associated_entity ]. endif. if buffer_4_assoc_entity is initial. " no buffer entry present for the associated entity buffer_4_assoc_entity-entity_name = associated_entity. buffer_4_assoc_entity-entity_instances = cl_abap_behvdescr=>create_data( p_name = associated_entity p_op = if_abap_behv=>op-r-read p_kind = if_abap_behv=>typekind-result ). append buffer_4_assoc_entity to dbl_transactional_buffer_table. endif. " evaluate the alias name for associated entity data(assoc_entity_details) = bdef_load-entities[ name = associated_entity ]. data(assoc_entity_alias) = assoc_entity_details-alias. assoc_entity_alias = to_upper( assoc_entity_alias ). if assoc_entity_alias is not initial. buffer_4_assoc_entity-entity_alias = assoc_entity_alias. else. assoc_entity_alias = associated_entity. buffer_4_assoc_entity-entity_alias = associated_entity. endif. "Won't be filled in all the use cases. " if the parent entity instance itself doesn't exist " fill mapped and reported. No further processing required if instance_exists_in_buffer = abap_false. " fill failed and reported fill_modify_reported_n_failed( exporting i_entity_fields = entity_fields_of_assoc_entity alias_name = assoc_entity_alias message_number = 001 change = change changing c_failed = failed c_reported = reported cs_change_instance = <input_assoc_entity_instance> ). continue. endif. field-symbols <assoc_entity_buff_instances> type standard table. assign buffer_4_assoc_entity-entity_instances->* to <assoc_entity_buff_instances>. "check whether the associated entity instance is already present in the buffer data(assoc_instance_exists_in_buff) = check_instance_exists( exporting instance_to_check = <input_assoc_entity_instance> entity_instances = <assoc_entity_buff_instances> entity_fields = entity_fields_of_assoc_entity ). if assoc_instance_exists_in_buff = abap_true. " fill failed and reported fill_modify_reported_n_failed( exporting i_entity_fields = entity_fields_of_assoc_entity alias_name = assoc_entity_alias message_number = 001 change = change changing c_failed = failed c_reported = reported cs_change_instance = <input_assoc_entity_instance> ). else. data assoc_entity_buffer_instance type ref to data. field-symbols <assoc_entity_buffer_instance> type any. create data assoc_entity_buffer_instance like line of <assoc_entity_buff_instances>. assign assoc_entity_buffer_instance->* to <assoc_entity_buffer_instance>. <assoc_entity_buffer_instance> = corresponding #( <input_assoc_entity_instance> ). append <assoc_entity_buffer_instance> to <assoc_entity_buff_instances>. " Fill mapped table fill_modify_mapped( exporting alias_name = assoc_entity_alias i_entity_fields = entity_fields_of_assoc_entity message_number = '001' change = change changing c_mapped = mapped cs_change_instance = <assoc_entity_buffer_instance> ). endif. endloop. endloop. endmethod. method _create. data buffer_4_entity type ty_double_transactional_buffer. data entity_buffer_instance type ref to data. data struct_descr_4_entity type ref to cl_abap_structdescr. data entity_fields type ddfields. field-symbols <instances_4_entity_in_buffer> type standard table. field-symbols <input_entity_instances> type standard table. field-symbols <input_entity_instance> type any. field-symbols <entity_buffer_instance> type any. if line_exists( dbl_transactional_buffer_table[ entity_name = change-entity_name ] ). buffer_4_entity = dbl_transactional_buffer_table[ entity_name = change-entity_name ]. endif. if buffer_4_entity is initial. " no buffer entry present for the entity buffer_4_entity-entity_name = change-entity_name. buffer_4_entity-entity_instances = cl_abap_behvdescr=>create_data( p_name = change-entity_name p_op = if_abap_behv=>op-r-read "TODO : Should it be modify/read? p_kind = if_abap_behv=>typekind-result ). append buffer_4_entity to dbl_transactional_buffer_table. endif. struct_descr_4_entity ?= cl_abap_typedescr=>describe_by_name( change-entity_name ). entity_fields = struct_descr_4_entity->get_ddic_field_list( ). data(entity_details) = bdef_load-entities[ name = change-entity_name ]. data(alias) = entity_details-alias. alias = to_upper( alias ). if alias is not initial. buffer_4_entity-entity_alias = alias. else. buffer_4_entity-entity_alias = change-entity_name. endif. "Won't be filled in all the use cases. assign buffer_4_entity-entity_instances->* to <instances_4_entity_in_buffer>. assign change-instances->* to <input_entity_instances>. loop at <input_entity_instances> assigning <input_entity_instance>. "check whether the entity instance is already present in the buffer data(instance_exists_in_buffer) = check_instance_exists( exporting instance_to_check = <input_entity_instance> entity_instances = <instances_4_entity_in_buffer> entity_fields = entity_fields ). if instance_exists_in_buffer = abap_true. " fill failed and reported fill_modify_reported_n_failed( exporting i_entity_fields = entity_fields alias_name = alias message_number = 001 change = change changing c_failed = failed c_reported = reported cs_change_instance = <input_entity_instance> ). data: found_reported_inst type ref to data. field-symbols: <buffer_4_entity> type any. assign buffer_4_entity to <buffer_4_entity>. find_reported_if_configured( exporting entities = bdef_load-entities instance_to_check = <input_entity_instance> changing buffer_4_entity = <buffer_4_entity> c_reported = reported ). else. " Create instance create data entity_buffer_instance like line of <instances_4_entity_in_buffer>. assign entity_buffer_instance->* to <entity_buffer_instance>. <entity_buffer_instance> = corresponding #( <input_entity_instance> ). append <entity_buffer_instance> to <instances_4_entity_in_buffer>. " Fill mapped table fill_modify_mapped( exporting alias_name = alias i_entity_fields = entity_fields message_number = '001' change = change changing c_mapped = mapped cs_change_instance = <input_entity_instance> ). endif. endloop. endmethod. method _delete. data buffer_4_entity type ty_double_transactional_buffer. data entity_buffer_instance type ref to data. data struct_descr_4_entity type ref to cl_abap_structdescr. data entity_fields type ddfields. field-symbols <instances_4_entity_in_buffer> type standard table. field-symbols <input_entity_instances> type standard table. field-symbols <input_entity_instance> type any. field-symbols <entity_buffer_instance> type any. if line_exists( dbl_transactional_buffer_table[ entity_name = change-entity_name ] ). buffer_4_entity = dbl_transactional_buffer_table[ entity_name = change-entity_name ]. endif. if buffer_4_entity is initial. " no buffer entry present for the entity buffer_4_entity-entity_name = change-entity_name. buffer_4_entity-entity_instances = cl_abap_behvdescr=>create_data( p_name = change-entity_name p_op = if_abap_behv=>op-r-read "TODO : Should it be modify/read? p_kind = if_abap_behv=>typekind-result ). append buffer_4_entity to dbl_transactional_buffer_table. endif. struct_descr_4_entity ?= cl_abap_typedescr=>describe_by_name( change-entity_name ). entity_fields = struct_descr_4_entity->get_ddic_field_list( ). data(entity_details) = bdef_load-entities[ name = change-entity_name ]. data(alias) = entity_details-alias. alias = to_upper( alias ). if alias is not initial. buffer_4_entity-entity_alias = alias. else. buffer_4_entity-entity_alias = change-entity_name. endif. "Won't be filled in all the use cases. assign buffer_4_entity-entity_instances->* to <instances_4_entity_in_buffer>. assign change-instances->* to <input_entity_instances>. loop at <input_entity_instances> assigning <input_entity_instance>. "check whether the entity instance is already present in the buffer data(instance_exists_in_buffer) = check_instance_exists( exporting instance_to_check = <input_entity_instance> entity_instances = <instances_4_entity_in_buffer> entity_fields = entity_fields ). if instance_exists_in_buffer = abap_false. " fill failed and reported fill_modify_reported_n_failed( exporting i_entity_fields = entity_fields alias_name = alias message_number = 001 change = change changing c_failed = failed c_reported = reported cs_change_instance = <input_entity_instance> ). else. "delete the instance, along with all the associated instances cascade_delete( associations = bdef_load-associations entity = change-entity_name instance = <input_entity_instance> ). "no mapped in this case. endif. endloop. endmethod. method _update. data buffer_4_entity type ty_double_transactional_buffer. data entity_buffer_instance type ref to data. data struct_descr_4_entity type ref to cl_abap_structdescr. data entity_fields type ddfields. field-symbols <instances_4_entity_in_buffer> type standard table. field-symbols <input_entity_instances> type standard table. field-symbols <input_entity_instance> type any. field-symbols <entity_buffer_instance> type any. if line_exists( dbl_transactional_buffer_table[ entity_name = change-entity_name ] ). buffer_4_entity = dbl_transactional_buffer_table[ entity_name = change-entity_name ]. endif. if buffer_4_entity is initial. " no buffer entry present for the entity buffer_4_entity-entity_name = change-entity_name. buffer_4_entity-entity_instances = cl_abap_behvdescr=>create_data( p_name = change-entity_name p_op = if_abap_behv=>op-r-read "TODO : Should it be modify/read? p_kind = if_abap_behv=>typekind-result ). append buffer_4_entity to dbl_transactional_buffer_table. endif. struct_descr_4_entity ?= cl_abap_typedescr=>describe_by_name( change-entity_name ). entity_fields = struct_descr_4_entity->get_ddic_field_list( ). data(entity_details) = bdef_load-entities[ name = change-entity_name ]. data(alias) = entity_details-alias. alias = to_upper( alias ). if alias is not initial. buffer_4_entity-entity_alias = alias. else. buffer_4_entity-entity_alias = change-entity_name. endif. "Won't be filled in all the use cases. assign buffer_4_entity-entity_instances->* to <instances_4_entity_in_buffer>. assign change-instances->* to <input_entity_instances>. loop at <input_entity_instances> assigning <input_entity_instance>. "check whether the entity instance is already present in the buffer data(instance_exists_in_buffer) = check_instance_exists( exporting instance_to_check = <input_entity_instance> entity_instances = <instances_4_entity_in_buffer> entity_fields = entity_fields ). if instance_exists_in_buffer = abap_false. " fill failed and reported fill_modify_reported_n_failed( exporting i_entity_fields = entity_fields alias_name = alias message_number = 001 change = change changing c_failed = failed c_reported = reported cs_change_instance = <input_entity_instance> ). else. " update the instance create data entity_buffer_instance like line of <instances_4_entity_in_buffer>. assign entity_buffer_instance->* to <entity_buffer_instance>. <entity_buffer_instance> = corresponding #( <input_entity_instance> ). modify table <instances_4_entity_in_buffer> from <entity_buffer_instance> . " fill mapped fill_modify_mapped( exporting alias_name = alias i_entity_fields = entity_fields message_number = '001' change = change changing c_mapped = mapped cs_change_instance = <input_entity_instance> ). endif. endloop. endmethod. method _read. data entity_fields type ddfields. data buffer_entry_for_entity type ty_double_transactional_buffer. data entity_buffer_instance_copy type ref to data. field-symbols <fs_retrieval_instances> type standard table. field-symbols <fs_retrieval_instance> type any. field-symbols <fs_control_fields> type any. field-symbols <entity_buffer_instances> type standard table. field-symbols <entity_buffer_instance> type any. field-symbols <entity_buffer_instance_copy> type any. field-symbols <fs_result> type standard table. " retrieve the buffer entry for the entity if line_exists( dbl_transactional_buffer_table[ entity_name = retrieval-entity_name ] ). buffer_entry_for_entity = dbl_transactional_buffer_table[ entity_name = retrieval-entity_name ]. loop at bdef_load-entities into data(entity) where name = retrieval-entity_name. buffer_entry_for_entity-entity_alias = entity-alias. exit. endloop. endif. " retrieve fields of the entity entity_fields = get_entity_fields( retrieval-entity_name ). " get the reference to the entity instances requested assign retrieval-instances->* to <fs_retrieval_instances>. " get the reference to the output result assign retrieval-results->* to <fs_result>. " get the reference to the entity instances in buffer assign buffer_entry_for_entity-entity_instances->* to <entity_buffer_instances>. " TODO: Fill failed structure when the entry does not exist in the transactional buffer if buffer_entry_for_entity is initial. "TODO: Throw exception that entity doesn't exist. data(entity_details) = retrieval-entity_name. loop at bdef_load-entities into entity where name = retrieval-entity_name. buffer_entry_for_entity-entity_alias = entity-alias. exit. endloop. data(alias) = buffer_entry_for_entity-entity_alias. alias = to_upper( alias ). loop at <fs_retrieval_instances> assigning <fs_retrieval_instance>. fill_read_reported_and_failed( exporting i_entity_fields = entity_fields alias_name = alias message_number = 001 retrieval = retrieval changing c_failed = failed c_reported = reported cs_retrieval_instance = <fs_retrieval_instance> ). endloop. exit. endif. " TODO: Probably we can get rid of key fields calculation from the structure. Because the retrieval instance entry already " has all the key fields. So probably loop through the components and filter out the key fields. *---- read the buffer entries corresponding to the entries in the retrieval table loop at <fs_retrieval_instances> assigning <fs_retrieval_instance>. " check whether the retrieval entry is present in the buffer loop at <entity_buffer_instances> assigning <entity_buffer_instance>. data(equal) = check_instance_equal( exporting instance_1 = <entity_buffer_instance> instance_2 = <fs_retrieval_instance> entity_fields = entity_fields ). if equal = abap_true. " create a copy of buffer instance entry deep_clone( exporting data_to_be_cloned = <entity_buffer_instance> importing reference_to_cloned_data = entity_buffer_instance_copy ). assign entity_buffer_instance_copy->* to <entity_buffer_instance_copy>. " format data as per the control structures provided assign component '%control' of structure <fs_retrieval_instance> to <fs_control_fields>. format_res_as_per_cntrl_flds( exporting control_fields = <fs_control_fields> entity_fields = entity_fields changing entity_instance = <entity_buffer_instance_copy> ). append <entity_buffer_instance_copy> to <fs_result>. exit. endif. endloop. "Instance doesn't exist in buffer if equal eq abap_false. entity_details = retrieval-entity_name. alias = buffer_entry_for_entity-entity_alias. alias = to_upper( alias ). fill_read_reported_and_failed( exporting i_entity_fields = entity_fields alias_name = alias message_number = 001 retrieval = retrieval changing c_failed = failed c_reported = reported cs_retrieval_instance = <fs_retrieval_instance> ). endif. assign buffer_entry_for_entity to field-symbol(<buffer_4_entity>). find_reported_if_configured( exporting entities = bdef_load-entities instance_to_check = <fs_retrieval_instance> changing buffer_4_entity = <buffer_4_entity> c_reported = reported ). endloop. endmethod. method _read_by_assoc. data entity_fields type ddfields. data buffer_entry_for_entity type ty_double_transactional_buffer. data entity_buffer_instance_copy type ref to data. field-symbols <fs_retrieval_instances> type standard table. field-symbols <fs_retrieval_instance> type any. field-symbols <fs_control_fields> type any. field-symbols <entity_buffer_instances> type standard table. field-symbols <entity_buffer_instance> type any. field-symbols <entity_buffer_instance_copy> type any. field-symbols <fs_result> type standard table. " retrieve the buffer entry for the entity if line_exists( dbl_transactional_buffer_table[ entity_name = retrieval-entity_name ] ). buffer_entry_for_entity = dbl_transactional_buffer_table[ entity_name = retrieval-entity_name ]. loop at bdef_load-entities into data(entity) where name = retrieval-entity_name. buffer_entry_for_entity-entity_alias = entity-alias. exit. endloop. endif. " retrieve fields of the entity entity_fields = get_entity_fields( retrieval-entity_name ). " get the reference to the entity instances requested assign retrieval-instances->* to <fs_retrieval_instances>. " get the reference to the output result assign retrieval-results->* to <fs_result>. " get the reference to the entity instances in buffer assign buffer_entry_for_entity-entity_instances->* to <entity_buffer_instances>. " TODO: Fill failed structure when the entry does not exist in the transactional buffer if buffer_entry_for_entity is initial. "TODO: Throw exception that entity doesn't exist. data(entity_details) = retrieval-entity_name. loop at bdef_load-entities into entity where name = retrieval-entity_name. buffer_entry_for_entity-entity_alias = entity-alias. exit. endloop. data(alias) = buffer_entry_for_entity-entity_alias. alias = to_upper( alias ). loop at <fs_retrieval_instances> assigning <fs_retrieval_instance>. fill_read_reported_and_failed( exporting i_entity_fields = entity_fields alias_name = alias message_number = 001 retrieval = retrieval changing c_failed = failed c_reported = reported cs_retrieval_instance = <fs_retrieval_instance> ). endloop. exit. endif. " TODO: Probably we can get rid of key fields calculation from the structure. Because the retrieval instance entry already " has all the key fields. So probably loop through the components and filter out the key fields. *---- read the associated entity buffer entries corresponding to the entries in the retrieval table data(association) = bdef_load-associations[ name = retrieval-sub_name ]. data(associated_entity) = association-target_entity. data buffer_entry_for_assoc_entity type ty_double_transactional_buffer. " retrieve fields of the associated entity data(assoc_entity_fields) = get_entity_fields( associated_entity ). loop at <fs_retrieval_instances> assigning <fs_retrieval_instance>. " check whether the retrieval entry is present in the buffer loop at <entity_buffer_instances> assigning <entity_buffer_instance>. data(parent_equal) = check_instance_equal( exporting instance_1 = <entity_buffer_instance> instance_2 = <fs_retrieval_instance> entity_fields = entity_fields ). if parent_equal = abap_true. " retrieve the buffer entry for the associated entity if line_exists( dbl_transactional_buffer_table[ entity_name = associated_entity ] ). buffer_entry_for_assoc_entity = dbl_transactional_buffer_table[ entity_name = associated_entity ]. loop at bdef_load-entities into entity where name = associated_entity. buffer_entry_for_assoc_entity-entity_alias = entity-alias. exit. endloop. endif. field-symbols <assoc_entity_buff_instances> type standard table. assign buffer_entry_for_assoc_entity-entity_instances->* to <assoc_entity_buff_instances>. " check whether the retrieval entry is present in the buffer if <assoc_entity_buff_instances> is assigned. loop at <assoc_entity_buff_instances> assigning field-symbol(<assoc_entity_buffer_instance>). data(equal) = check_instance_equal( exporting instance_1 = <assoc_entity_buffer_instance> instance_2 = <fs_retrieval_instance> entity_fields = entity_fields " here we are passing the entity fields of parent entity and not associated entity because " the read happens only based on the key value of parent and not associated entity ). if equal = abap_true. " create a copy of buffer instance entry deep_clone( exporting data_to_be_cloned = <assoc_entity_buffer_instance> importing reference_to_cloned_data = entity_buffer_instance_copy ). assign entity_buffer_instance_copy->* to <entity_buffer_instance_copy>. " format data as per the control structures provided assign component '%control' of structure <fs_retrieval_instance> to <fs_control_fields>. format_res_as_per_cntrl_flds( exporting control_fields = <fs_control_fields> entity_fields = assoc_entity_fields changing entity_instance = <entity_buffer_instance_copy> ). append <entity_buffer_instance_copy> to <fs_result>. " exit. endif. endloop. endif. continue. endif. endloop. " If the parent entity itself does not exist if parent_equal eq abap_false. " fill failed and reported alias = buffer_entry_for_entity-entity_alias. alias = to_upper( alias ). fill_read_reported_and_failed( exporting i_entity_fields = entity_fields alias_name = alias message_number = 001 retrieval = retrieval changing c_failed = failed c_reported = reported cs_retrieval_instance = <fs_retrieval_instance> ). endif. endloop. endmethod. method zif_abap_behv_test_trans_bufr~config_error_response_4_modify. data bdef_load type t_bdef_load. field-symbols: <buffer_4_entity> type ty_double_transactional_buffer, <entity_buffer_instances> type standard table, <entity_buffer_instance> type any, <entity_reported> type standard table. cl_abap_behv_load=>get_load( exporting entity = root_name all = abap_true importing head = bdef_load-head entities = bdef_load-entities features = bdef_load-features actions = bdef_load-actions relations = bdef_load-relations associations = bdef_load-associations ). "Fill reported. if reported is not initial. loop at bdef_load-entities into data(entity). if entity-alias is initial. assign component to_upper( entity-name ) of structure reported to <entity_reported>. if <entity_reported> is assigned. break-point. endif. else. assign component to_upper( entity-alias ) of structure reported to <entity_reported>. if <entity_reported> is assigned and <entity_reported> is not initial. "Check if double transactional buffer contains the entity and entity instance. loop at <entity_reported> assigning field-symbol(<entity_reported_instance>). if line_exists( dbl_transactional_buffer_table[ entity_name = entity-name ] ). " <buffer_4_entity> = dbl_transactional_buffer_table[ entity_name = entity-name ]. assign dbl_transactional_buffer_table[ entity_name = entity-name ] to <buffer_4_entity>. assign <buffer_4_entity>-entity_instances->* to <entity_buffer_instances>. data(entity_fields) = get_entity_fields( entity-name ). loop at <entity_buffer_instances> assigning <entity_buffer_instance>. data(equal) = check_instance_equal( exporting instance_1 = <entity_buffer_instance> instance_2 = <entity_reported_instance> entity_fields = entity_fields ). if equal = abap_true. if <buffer_4_entity>-reported is initial. create data <buffer_4_entity>-reported like reported. endif. field-symbols: <to_be_filled_buff_reported> type any, <to_be_filled_buff_entity> type standard table. assign <buffer_4_entity>-reported->* to <to_be_filled_buff_reported>. assign component to_upper( entity-alias ) of structure <to_be_filled_buff_reported> to <to_be_filled_buff_entity>. append <entity_reported_instance> to <to_be_filled_buff_entity>. endif. endloop. else. "TODO: Throw exception with a reason that "no buffer exists for the entity" endif. endloop. else. "TODO: Throw exception with a reason that "reported can't be empty" endif. endif. endloop. else. "TODO: Throw exception with a reason that "reported can't be empty" endif. endmethod. method zif_abap_behv_test_trans_bufr~config_error_response_4_read. data bdef_load type t_bdef_load. field-symbols: <buffer_4_entity> type ty_double_transactional_buffer, <entity_buffer_instances> type standard table, <entity_buffer_instance> type any, <entity_reported> type standard table. cl_abap_behv_load=>get_load( exporting entity = root_name all = abap_true importing head = bdef_load-head entities = bdef_load-entities features = bdef_load-features actions = bdef_load-actions relations = bdef_load-relations associations = bdef_load-associations ). "Fill reported. if reported is not initial. loop at bdef_load-entities into data(entity). if entity-alias is initial. assign component to_upper( entity-name ) of structure reported to <entity_reported>. if <entity_reported> is assigned. break-point. endif. else. assign component to_upper( entity-alias ) of structure reported to <entity_reported>. if <entity_reported> is assigned and <entity_reported> is not initial. "Check if double transactional buffer contains the entity and entity instance. loop at <entity_reported> assigning field-symbol(<entity_reported_instance>). if line_exists( dbl_transactional_buffer_table[ entity_name = entity-name ] ). " <buffer_4_entity> = dbl_transactional_buffer_table[ entity_name = entity-name ]. assign dbl_transactional_buffer_table[ entity_name = entity-name ] to <buffer_4_entity>. assign <buffer_4_entity>-entity_instances->* to <entity_buffer_instances>. data(entity_fields) = get_entity_fields( entity-name ). loop at <entity_buffer_instances> assigning <entity_buffer_instance>. data(equal) = check_instance_equal( exporting instance_1 = <entity_buffer_instance> instance_2 = <entity_reported_instance> entity_fields = entity_fields ). if equal = abap_true. if <buffer_4_entity>-reported is initial. create data <buffer_4_entity>-reported like reported. endif. field-symbols: <to_be_filled_buff_reported> type any, <to_be_filled_buff_entity> type standard table. assign <buffer_4_entity>-reported->* to <to_be_filled_buff_reported>. assign component to_upper( entity-alias ) of structure <to_be_filled_buff_reported> to <to_be_filled_buff_entity>. append <entity_reported_instance> to <to_be_filled_buff_entity>. endif. endloop. else. "TODO: Throw exception with a reason that "no buffer exists for the entity" endif. endloop. else. "TODO: Throw exception with a reason that "reported can't be empty" endif. endif. endloop. else. "TODO: Throw exception with a reason that "reported can't be empty" endif. endmethod. method find_reported_if_configured. field-symbols: <configured_entity_reported> type standard table. field-symbols: <existing_buff_reported> type any. assign buffer_4_entity-reported->* to <existing_buff_reported>. if buffer_4_entity-reported is not initial. loop at entities into data(entity). data(entity_fields) = get_entity_fields( entity-name ). if entity-alias is initial. assign component to_upper( entity-name ) of structure buffer_4_entity-reported to <configured_entity_reported>. if <configured_entity_reported> is assigned. break-point. endif. else. assign component to_upper( entity-alias ) of structure <existing_buff_reported> to <configured_entity_reported>. if <configured_entity_reported> is assigned and <configured_entity_reported> is not initial. "Check if double transactional buffer contains the entity and entity instance. loop at <configured_entity_reported> assigning field-symbol(<existing_reported_ent_inst>). data(equal) = check_instance_equal( exporting instance_1 = instance_to_check instance_2 = <existing_reported_ent_inst> entity_fields = entity_fields ). if equal = abap_true. field-symbols <fs_entry_reported_table> type standard table. assign component to_upper( entity-alias ) of structure c_reported to <fs_entry_reported_table>. append <existing_reported_ent_inst> to <fs_entry_reported_table>. endif. endloop. endif. endif. endloop. endif. endmethod. endclass.
[ 4871, 1976, 565, 62, 397, 499, 62, 20709, 85, 62, 9288, 62, 7645, 62, 29325, 81, 17, 6770, 1171, 2457, 2251, 2839, 13, 628, 220, 1171, 2665, 13, 198, 220, 220, 220, 20314, 1976, 361, 62, 397, 499, 62, 20709, 85, 62, 9288, 62, 7645, 62, 29325, 81, 13, 628, 220, 220, 220, 1398, 12, 24396, 82, 25, 198, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 3855, 262, 48878, 1538, 11876, 4554, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 651, 62, 39098, 8024, 1988, 7, 23352, 62, 7645, 529, 1538, 62, 22252, 8, 2099, 1006, 284, 1976, 361, 62, 397, 499, 62, 20709, 85, 62, 9288, 62, 7645, 62, 29325, 81, 13, 198, 220, 6861, 2665, 13, 198, 220, 2839, 2665, 13, 628, 220, 220, 220, 366, 1273, 5620, 284, 1745, 275, 4299, 3440, 12608, 198, 220, 220, 220, 3858, 25, 198, 220, 220, 220, 220, 220, 2221, 286, 256, 62, 65, 4299, 62, 2220, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1182, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 537, 62, 397, 499, 62, 20709, 85, 62, 2220, 14804, 83, 62, 2256, 11, 198, 220, 220, 220, 220, 220, 220, 220, 12066, 220, 220, 220, 220, 2099, 537, 62, 397, 499, 62, 20709, 85, 62, 2220, 14804, 926, 62, 26858, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3033, 220, 220, 220, 220, 2099, 537, 62, 397, 499, 62, 20709, 85, 62, 2220, 14804, 926, 62, 30053, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4028, 220, 220, 220, 220, 220, 2099, 537, 62, 397, 499, 62, 20709, 85, 62, 2220, 14804, 926, 62, 2673, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2316, 220, 220, 220, 2099, 537, 62, 397, 499, 62, 20709, 85, 62, 2220, 14804, 926, 62, 2411, 265, 11, 198, 220, 220, 220, 220, 220, 220, 220, 15814, 2099, 537, 62, 397, 499, 62, 20709, 85, 62, 2220, 14804, 926, 62, 562, 420, 11, 198, 220, 220, 220, 220, 220, 886, 286, 256, 62, 65, 4299, 62, 2220, 764, 628, 220, 220, 220, 3858, 25, 2221, 286, 1259, 62, 23352, 62, 7645, 529, 1538, 62, 22252, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9312, 62, 15763, 220, 220, 220, 220, 220, 2099, 450, 79, 62, 15763, 62, 26858, 62, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9312, 62, 3672, 220, 220, 220, 220, 220, 2099, 450, 79, 62, 26858, 62, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9312, 62, 26011, 220, 220, 220, 220, 2099, 450, 79, 62, 26858, 62, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9312, 62, 8625, 1817, 2099, 1006, 284, 1366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2098, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 1006, 284, 1366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4054, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 1006, 284, 1366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 286, 1259, 62, 23352, 62, 7645, 529, 1538, 62, 22252, 13, 628, 220, 220, 220, 1398, 12, 7890, 25, 198, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 8291, 529, 1538, 11876, 4274, 2060, 1122, 4554, 3556, 79, 29, 198, 220, 220, 220, 220, 4274, 62, 7645, 529, 1538, 62, 22252, 2099, 1006, 284, 1976, 361, 62, 397, 499, 62, 20709, 85, 62, 9288, 62, 7645, 62, 29325, 81, 13, 628, 220, 220, 220, 1366, 25, 198, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 8291, 529, 1538, 11876, 4274, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 288, 2436, 62, 7645, 529, 1538, 62, 22252, 62, 11487, 2099, 3210, 3084, 286, 1259, 62, 23352, 62, 7645, 529, 1538, 62, 22252, 351, 1994, 9312, 62, 3672, 13, 220, 220, 220, 366, 16926, 46, 1058, 815, 356, 423, 257, 23243, 3084, 319, 9312, 1438, 329, 13934, 2989, 11, 393, 2148, 49544, 284, 2987, 262, 2989, 628, 220, 220, 220, 38491, 25, 269, 62, 20500, 62, 4871, 2099, 827, 19662, 312, 1988, 705, 57, 8202, 62, 44, 11290, 2751, 62, 44, 1546, 4090, 8264, 4458, 628, 220, 220, 220, 5050, 25, 198, 220, 220, 220, 220, 220, 2198, 62, 39098, 62, 40496, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4554, 62, 16, 220, 220, 220, 2099, 597, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4554, 62, 17, 220, 220, 220, 2099, 597, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9312, 62, 25747, 2099, 49427, 25747, 198, 220, 220, 220, 220, 220, 220, 220, 8024, 1988, 7, 40496, 8, 220, 2099, 450, 499, 62, 30388, 11, 628, 220, 220, 220, 220, 220, 2198, 62, 39098, 62, 1069, 1023, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4554, 62, 1462, 62, 9122, 2099, 597, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9312, 62, 8625, 1817, 220, 2099, 597, 3084, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9312, 62, 25747, 220,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