content
stringlengths
4
1.04M
input_ids
sequencelengths
2
1.02k
attention_mask
sequencelengths
2
1.02k
*----------------------------------------------------------------------* ***INCLUDE LZCALOGD01. *----------------------------------------------------------------------* *&---------------------------------------------------------------------* *& Class lcl_dialog_close_handler *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* CLASS lcl_dialogcont_close_handler DEFINITION. PUBLIC SECTION. METHODS: constructor IMPORTING pi_dialogbox_container_ref TYPE REF TO cl_gui_dialogbox_container, handle_close_event FOR EVENT close OF cl_gui_dialogbox_container. PRIVATE SECTION. DATA: mv_dialogbox_container_ref TYPE REF TO cl_gui_dialogbox_container. ENDCLASS.
[ 9, 10097, 23031, 9, 198, 8162, 1268, 5097, 52, 7206, 406, 57, 34, 1847, 7730, 35, 486, 13, 198, 9, 10097, 23031, 9, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 5016, 300, 565, 62, 38969, 519, 62, 19836, 62, 30281, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 31631, 300, 565, 62, 38969, 519, 3642, 62, 19836, 62, 30281, 5550, 20032, 17941, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 628, 220, 220, 220, 220, 220, 23772, 30023, 9863, 2751, 31028, 62, 38969, 519, 3524, 62, 34924, 62, 5420, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 38969, 519, 3524, 62, 34924, 11, 628, 220, 220, 220, 220, 220, 5412, 62, 19836, 62, 15596, 7473, 49261, 1969, 3963, 537, 62, 48317, 62, 38969, 519, 3524, 62, 34924, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 25, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 85, 62, 38969, 519, 3524, 62, 34924, 62, 5420, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 38969, 519, 3524, 62, 34924, 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 ]
CLASS zcl_abapgit_ecatt_val_obj_down DEFINITION PUBLIC INHERITING FROM cl_apl_ecatt_download CREATE PUBLIC. PUBLIC SECTION. METHODS: download REDEFINITION, get_xml_stream RETURNING VALUE(rv_xml_stream) TYPE xstring, get_xml_stream_size RETURNING VALUE(rv_xml_stream_size) TYPE int4. PROTECTED SECTION. DATA: li_objects_node TYPE REF TO if_ixml_element. METHODS: download_data REDEFINITION. PRIVATE SECTION. " downport missing types TYPES: etvo_bus_msg_tabtype TYPE STANDARD TABLE OF ecvo_bus_msg, etvo_invert_validation TYPE c LENGTH 1, etvo_error_prio TYPE n LENGTH 1, BEGIN OF etvoimpl_det, impl_name TYPE etvo_impl_name, impl_type TYPE etvo_impl_type, impl_subtype TYPE etvo_impl_subtype, impl_package TYPE etvo_package, END OF etvoimpl_det. DATA: mv_xml_stream TYPE xstring, mv_xml_stream_size TYPE int4. METHODS: set_ecatt_impl_detail, set_ecatt_flags, set_business_msgs. ENDCLASS. CLASS ZCL_ABAPGIT_ECATT_VAL_OBJ_DOWN IMPLEMENTATION. METHOD download. " We inherit from CL_APL_ECATT_DOWNLOAD because CL_APL_ECATT_VO_DOWNLOAD " doesn't exist in 702 " Downport DATA: lv_partyp TYPE string. load_help = im_load_help. typ = im_object_type. TRY. cl_apl_ecatt_object=>show_object( EXPORTING im_obj_type = im_object_type im_name = im_object_name im_version = im_object_version IMPORTING re_object = ecatt_object ). CATCH cx_ecatt INTO ex_ecatt. RETURN. ENDTRY. lv_partyp = cl_apl_ecatt_const=>params_type_par. set_attributes_to_template( ). ecatt_vo ?= ecatt_object. set_ecatt_impl_detail( ). set_ecatt_flags( ). set_business_msgs( ). get_general_params_data( im_params = ecatt_vo->params im_ptyp = lv_partyp ). LOOP AT parm INTO wa_parm. set_general_params_data_to_dom( ). IF NOT wa_parm-val_type IS INITIAL. set_deep_stru_to_dom( ecatt_vo->params ). set_deep_data_to_dom( im_params = ecatt_vo->params im_pindex = wa_parm-pindex ). ENDIF. ENDLOOP. set_variants_to_dom( ecatt_vo->params ). download_data( ). ENDMETHOD. METHOD download_data. " Downport zcl_abapgit_ecatt_helper=>download_data( EXPORTING ii_template_over_all = template_over_all IMPORTING ev_xml_stream = mv_xml_stream ev_xml_stream_size = mv_xml_stream_size ). ENDMETHOD. METHOD get_xml_stream. rv_xml_stream = mv_xml_stream. ENDMETHOD. METHOD get_xml_stream_size. rv_xml_stream_size = mv_xml_stream_size. ENDMETHOD. METHOD set_business_msgs. DATA: lt_buss_msg_ref TYPE etvo_bus_msg_tabtype, li_element TYPE REF TO if_ixml_element, li_insert_objects TYPE REF TO if_ixml_element. li_objects_node = template_over_all->create_simple_element( name = 'BUSINESS_MESSAGES' parent = root_node ). ecatt_vo->get_bussiness_msg( IMPORTING ex_buss_msg_ref = lt_buss_msg_ref ). CALL FUNCTION 'SDIXML_DATA_TO_DOM' EXPORTING name = 'ETVO_MSG' dataobject = lt_buss_msg_ref IMPORTING data_as_dom = li_element CHANGING document = template_over_all EXCEPTIONS illegal_name = 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. li_insert_objects = template_over_all->find_from_name( 'BUSINESS_MESSAGES' ). li_insert_objects->append_child( new_child = li_element ). ENDMETHOD. METHOD set_ecatt_flags. DATA: lv_invert_validation TYPE etvo_invert_validation, lv_error_prio TYPE etvo_error_prio, li_element TYPE REF TO if_ixml_element, li_insert_objects TYPE REF TO if_ixml_element. li_objects_node = template_over_all->create_simple_element( name = 'VO_FLAGS' parent = root_node ). lv_invert_validation = ecatt_vo->get_invert_validation_flag( ). CALL FUNCTION 'SDIXML_DATA_TO_DOM' EXPORTING name = 'INVERT_VALIDATION' dataobject = lv_invert_validation IMPORTING data_as_dom = li_element CHANGING document = template_over_all EXCEPTIONS illegal_name = 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. li_insert_objects = template_over_all->find_from_name( 'VO_FLAGS' ). li_insert_objects->append_child( new_child = li_element ). lv_error_prio = ecatt_vo->get_error_priority( ). CALL FUNCTION 'SDIXML_DATA_TO_DOM' EXPORTING name = 'ERROR_PRIORITY' dataobject = lv_error_prio IMPORTING data_as_dom = li_element CHANGING document = template_over_all EXCEPTIONS illegal_name = 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. li_insert_objects = template_over_all->find_from_name( 'VO_FLAGS' ). li_insert_objects->append_child( new_child = li_element ). ENDMETHOD. METHOD set_ecatt_impl_detail. DATA: ls_impl_details TYPE etvoimpl_det, li_element TYPE REF TO if_ixml_element, li_insert_objects TYPE REF TO if_ixml_element. li_objects_node = template_over_all->create_simple_element( name = 'IMPL_DETAILS' parent = root_node ). ls_impl_details = ecatt_vo->get_impl_details( ). CALL FUNCTION 'SDIXML_DATA_TO_DOM' EXPORTING name = 'IMPL_DET' dataobject = ls_impl_details IMPORTING data_as_dom = li_element CHANGING document = template_over_all EXCEPTIONS illegal_name = 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. li_insert_objects = template_over_all->find_from_name( 'IMPL_DETAILS' ). li_insert_objects->append_child( new_child = li_element ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 721, 1078, 62, 2100, 62, 26801, 62, 2902, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 537, 62, 64, 489, 62, 721, 1078, 62, 15002, 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, 4321, 23848, 36, 20032, 17941, 11, 628, 220, 220, 220, 220, 220, 651, 62, 19875, 62, 5532, 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, 19875, 62, 5532, 8, 41876, 2124, 8841, 11, 628, 220, 220, 220, 220, 220, 651, 62, 19875, 62, 5532, 62, 7857, 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, 19875, 62, 5532, 62, 7857, 8, 41876, 493, 19, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 7649, 62, 48205, 62, 17440, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 30854, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 4321, 62, 7890, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 366, 866, 634, 4814, 3858, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 2123, 13038, 62, 10885, 62, 19662, 62, 8658, 4906, 220, 220, 41876, 49053, 9795, 43679, 3963, 9940, 13038, 62, 10885, 62, 19662, 11, 198, 220, 220, 220, 220, 220, 2123, 13038, 62, 259, 1851, 62, 12102, 341, 41876, 269, 406, 49494, 352, 11, 198, 220, 220, 220, 220, 220, 2123, 13038, 62, 18224, 62, 3448, 78, 220, 220, 220, 220, 220, 220, 220, 41876, 299, 406, 49494, 352, 11, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 2123, 13038, 23928, 62, 15255, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4114, 62, 3672, 220, 220, 220, 41876, 2123, 13038, 62, 23928, 62, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4114, 62, 4906, 220, 220, 220, 41876, 2123, 13038, 62, 23928, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4114, 62, 7266, 4906, 41876, 2123, 13038, 62, 23928, 62, 7266, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4114, 62, 26495, 41876, 2123, 13038, 62, 26495, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 2123, 13038, 23928, 62, 15255, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 285, 85, 62, 19875, 62, 5532, 220, 220, 220, 220, 220, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 285, 85, 62, 19875, 62, 5532, 62, 7857, 41876, 493, 19, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 900, 62, 721, 1078, 62, 23928, 62, 49170, 11, 198, 220, 220, 220, 220, 220, 900, 62, 721, 1078, 62, 33152, 11, 198, 220, 220, 220, 220, 220, 900, 62, 22680, 62, 907, 14542, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 2943, 17139, 62, 23428, 62, 9864, 41, 62, 41925, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 4321, 13, 628, 220, 220, 220, 366, 775, 16955, 422, 7852, 62, 2969, 43, 62, 2943, 17139, 62, 41925, 35613, 780, 7852, 62, 2969, 43, 62, 2943, 17139, 62, 29516, 62, 41925, 35613, 198, 220, 220, 220, 366, 1595, 470, 2152, 287, 43379, 628, 220, 220, 220, 366, 5588, 634, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 3911, 4464, 41876, 4731, 13, 628, 220, 220, 220, 3440, 62, 16794, 796, 545, 62, 2220, 62, 16794, 13, 198, 220, 220, 220, 2170, 796, 545, 62, 15252, 62, 4906, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 537, 62, 64, 489, 62, 721, 1078, 62, 15252, 14804, 12860, 62, 15252, 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, 545, 62, 26801, 62, 4906, 796, 545, 62, 15252, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 3672, 220, 220, 220, 220, 796, 545, 62, 15252, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 9641, 220, 796, 545, 62, 15252, 62, 9641, 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, 302, 62, 15252, 220, 220, 796, 9940, 1078, 62, 15252, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 721, 1078, 39319, 409, 62, 721, 1078, 13, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 220, 220, 300, 85, 62, 3911, 4464, 796, 537, 62, 64, 489, 62, 721, 1078, 62, 9979, 14804, 37266, 62, 4906, 62, 1845, 13, 628, 220, 220, 220, 900, 62, 1078, 7657, 62, 1462, 62, 28243, 7, 6739, 198, 220, 220, 220, 9940, 1078, 62, 13038, 5633, 28, 9940, 1078, 62, 15252, 13, 198, 220, 220, 220, 900, 62, 721, 1078, 62, 23928, 62, 49170, 7, 6739, 198, 220, 220, 220, 900, 62, 721, 1078, 62, 33152, 7, 6739, 198, 220, 220, 220, 900, 62, 22680, 62, 907, 14542, 7, 6739, 198, 220, 220, 220, 651, 62, 24622, 62, 37266, 62, 7890, 7, 545, 62, 37266, 796, 9940, 1078, 62, 13038, 3784, 37266, 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, 545, 62, 457, 4464, 220, 220, 796, 300, 85, 62, 3911, 4464, 6739, 198, 220, 220, 220, 17579, 3185, 5161, 1582, 76, 39319, 2082, 62, 79, 1670, 13, 198, 220, 220, 220, 220, 220, 900, 62, 24622, 62, 37266, 62, 7890, 62, 1462, 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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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS ltcl_code_inspector DEFINITION FOR TESTING. PUBLIC SECTION. INTERFACES: zif_abapgit_code_inspector. METHODS: constructor IMPORTING iv_package TYPE devclass. PRIVATE SECTION. DATA mv_package TYPE devclass. ENDCLASS. CLASS ltcl_code_inspector IMPLEMENTATION. METHOD constructor. mv_package = iv_package. ENDMETHOD. METHOD zif_abapgit_code_inspector~run. DATA: ls_list LIKE LINE OF rt_list. IF mv_package = '$DUMMY'. ls_list-kind = 'E'. INSERT ls_list INTO TABLE rt_list. ENDIF. ENDMETHOD. METHOD zif_abapgit_code_inspector~get_inspection. "##needed ENDMETHOD. ENDCLASS. CLASS ltcl_run_code_inspection DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. DATA: mo_repo_online TYPE REF TO zcl_abapgit_repo_online, mv_error_text TYPE string, mt_act_list TYPE scit_alvlist. METHODS: exception_when_no_check_var FOR TESTING RAISING cx_static_check, exception_when_error FOR TESTING RAISING cx_static_check, no_exception_when_no_error FOR TESTING RAISING cx_static_check, push_not_possible_if_ci_req FOR TESTING RAISING cx_static_check, given_online_repo IMPORTING iv_package TYPE devclass RAISING zcx_abapgit_exception, given_check_variant IMPORTING iv_check_variant TYPE string, given_mock_code_inspector IMPORTING iv_package TYPE devclass iv_check_variant TYPE sci_chkv, given_block_commit IMPORTING iv_block_commit TYPE abap_bool, when_push, then_exception_text_is IMPORTING iv_exp_error_text TYPE csequence, when_run_code_inspector, then_ci_detected_an_error, then_no_exception_is_raised. ENDCLASS. CLASS zcl_abapgit_repo_online DEFINITION LOCAL FRIENDS ltcl_run_code_inspection. CLASS ltcl_run_code_inspection IMPLEMENTATION. METHOD exception_when_no_check_var. given_online_repo( iv_package = '$DUMMY' ). given_check_variant( || ). when_run_code_inspector( ). then_exception_text_is( |No check variant maintained in repo settings.| ). ENDMETHOD. METHOD exception_when_error. given_online_repo( '$DUMMY' ). given_check_variant( |variant| ). given_mock_code_inspector( iv_package = '$DUMMY' iv_check_variant = |variant| ). when_run_code_inspector( ). then_ci_detected_an_error( ). ENDMETHOD. METHOD no_exception_when_no_error. given_online_repo( '$PACKAGE' ). given_check_variant( |variant| ). given_mock_code_inspector( iv_package = '$PACKAGE' iv_check_variant = |variant| ). when_run_code_inspector( ). then_no_exception_is_raised( ). ENDMETHOD. METHOD given_online_repo. DATA: ls_data TYPE zif_abapgit_persistence=>ty_repo. ls_data-key = 'dummmy'. ls_data-package = iv_package. CREATE OBJECT mo_repo_online EXPORTING is_data = ls_data. ENDMETHOD. METHOD given_check_variant. mo_repo_online->ms_data-local_settings-code_inspector_check_variant = iv_check_variant. ENDMETHOD. METHOD given_mock_code_inspector. DATA: lo_mock_code_inspector TYPE REF TO ltcl_code_inspector. CREATE OBJECT lo_mock_code_inspector EXPORTING iv_package = iv_package. zcl_abapgit_injector=>set_code_inspector( iv_package = iv_package iv_check_variant_name = iv_check_variant ii_code_inspector = lo_mock_code_inspector ). ENDMETHOD. METHOD push_not_possible_if_ci_req. given_online_repo( '$PACKAGE' ). given_check_variant( |variant| ). given_block_commit( abap_true ). when_push( ). then_exception_text_is( |A successful code inspection is required| ). ENDMETHOD. METHOD given_block_commit. mo_repo_online->ms_data-local_settings-block_commit = abap_true. ENDMETHOD. METHOD when_push. DATA: ls_comment TYPE zif_abapgit_definitions=>ty_comment, lo_stage TYPE REF TO zcl_abapgit_stage, lx_error TYPE REF TO zcx_abapgit_exception. CREATE OBJECT lo_stage. TRY. mo_repo_online->push( is_comment = ls_comment io_stage = lo_stage ). CATCH zcx_abapgit_exception INTO lx_error. mv_error_text = lx_error->get_text( ). ENDTRY. ENDMETHOD. METHOD then_exception_text_is. cl_abap_unit_assert=>assert_equals( exp = iv_exp_error_text act = mv_error_text ). ENDMETHOD. METHOD when_run_code_inspector. DATA: lx_error TYPE REF TO zcx_abapgit_exception. TRY. mt_act_list = mo_repo_online->run_code_inspector( ). CATCH zcx_abapgit_exception INTO lx_error. mv_error_text = lx_error->get_text( ). ENDTRY. ENDMETHOD. METHOD then_ci_detected_an_error. READ TABLE mt_act_list TRANSPORTING NO FIELDS WITH KEY kind = 'E'. cl_abap_unit_assert=>assert_subrc( exp = 0 ). ENDMETHOD. METHOD then_no_exception_is_raised. cl_abap_unit_assert=>assert_initial( mv_error_text ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 83, 565, 62, 8189, 62, 1040, 806, 273, 5550, 20032, 17941, 7473, 43001, 2751, 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, 8189, 62, 1040, 806, 273, 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, 21628, 62, 26495, 41876, 1614, 4871, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 285, 85, 62, 26495, 41876, 1614, 4871, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 8189, 62, 1040, 806, 273, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 285, 85, 62, 26495, 796, 21628, 62, 26495, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 8189, 62, 1040, 806, 273, 93, 5143, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 4868, 34178, 48920, 3963, 374, 83, 62, 4868, 13, 628, 220, 220, 220, 16876, 285, 85, 62, 26495, 796, 705, 3, 35, 5883, 26708, 4458, 628, 220, 220, 220, 220, 220, 43979, 62, 4868, 12, 11031, 796, 705, 36, 4458, 198, 220, 220, 220, 220, 220, 29194, 17395, 43979, 62, 4868, 39319, 43679, 374, 83, 62, 4868, 13, 628, 220, 220, 220, 23578, 5064, 13, 628, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 8189, 62, 1040, 806, 273, 93, 1136, 62, 1040, 14978, 13, 366, 2235, 27938, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 5143, 62, 8189, 62, 1040, 14978, 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, 260, 7501, 62, 25119, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 11, 198, 220, 220, 220, 220, 220, 285, 85, 62, 18224, 62, 5239, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 45079, 62, 529, 62, 4868, 220, 220, 220, 41876, 629, 270, 62, 282, 85, 4868, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 6631, 62, 12518, 62, 3919, 62, 9122, 62, 7785, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 6631, 62, 12518, 62, 18224, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 645, 62, 1069, 4516, 62, 12518, 62, 3919, 62, 18224, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 4574, 62, 1662, 62, 79, 4733, 62, 361, 62, 979, 62, 42180, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 628, 220, 220, 220, 220, 220, 1813, 62, 25119, 62, 260, 7501, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 26495, 41876, 1614, 4871, 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, 1813, 62, 9122, 62, 25641, 415, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 9122, 62, 25641, 415, 41876, 4731, 11, 628, 220, 220, 220, 220, 220, 1813, 62, 76, 735, 62, 8189, 62, 1040, 806, 273, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 26495, 220, 220, 220, 220, 220, 220, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 9122, 62, 25641, 415, 41876, 20681, 62, 354, 74, 85, 11, 628, 220, 220, 220, 220, 220, 1813, 62, 9967, 62, 41509, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 9967, 62, 41509, 41876, 450, 499, 62, 30388, 11, 628, 220, 220, 220, 220, 220, 618, 62, 14689, 11, 628, 220, 220, 220, 220, 220, 788, 62, 1069, 4516, 62, 5239, 62, 271, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 11201, 62, 18224, 62, 5239, 41876, 269, 43167, 11, 628, 220, 220, 220, 220, 220, 618, 62, 5143, 62, 8189, 62, 1040, 806, 273, 11, 628, 220, 220, 220, 220, 220, 788, 62, 979, 62, 15255, 11197, 62, 272, 62, 18224, 11, 628, 220, 220, 220, 220, 220, 788, 62, 3919, 62, 1069, 4516, 62, 271, 62, 49309, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 5550, 20032, 17941, 37347, 1847, 48167, 1677, 5258, 300, 83, 565, 62, 5143, 62, 8189, 62, 1040, 14978, 13, 198, 198, 31631, 300, 83, 565, 62, 5143, 62, 8189, 62, 1040, 14978, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 6631, 62, 12518, 62, 3919, 62, 9122, 62, 7785, 13, 628, 220, 220, 220, 1813, 62, 25119, 62, 260, 7501, 7, 21628, 62, 26495, 796, 705, 3, 35, 5883, 26708, 6, 6739, 198, 220, 220, 220, 1813, 62, 9122, 62, 25641, 415, 7, 8614, 6739, 198, 220, 220, 220, 618, 62, 5143, 62, 8189, 62, 1040, 806, 273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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 ]
FUNCTION zarsh_proposal. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" REFERENCE(IV_TABNAME) TYPE CLIKE *" REFERENCE(IV_FIELDNAME) TYPE CLIKE *" EXPORTING *" VALUE(EV_TABNAME) TYPE TABNAME *" REFERENCE(ET_FIELD) TYPE STRINGTAB *" REFERENCE(EV_DISTINCT) TYPE FLAG *"---------------------------------------------------------------------- DATA: ls_dd04v TYPE dd04v, lo_rtti TYPE REF TO cl_abap_structdescr, lt_field_list TYPE ddfields, lt_field_list_text TYPE ddfields, ls_field_list TYPE dfies, ls_field_list_ref TYPE dfies, lt_field TYPE TABLE OF string, lv_field TYPE string, lv_text_table TYPE tabname, lv_index TYPE i. CLEAR: et_field. ev_tabname = iv_tabname. " get domain value table. ls_dd04v-rollname = cl_abap_typedescr=>describe_by_name( iv_tabname && '-' && iv_fieldname )->get_relative_name( ). IF ls_dd04v-rollname IS NOT INITIAL. CALL FUNCTION 'DDIF_DTEL_GET' EXPORTING name = ls_dd04v-rollname IMPORTING dd04v_wa = ls_dd04v. IF ls_dd04v-entitytab IS NOT INITIAL. ev_tabname = ls_dd04v-entitytab. ENDIF. ENDIF. CHECK: ev_tabname IS NOT INITIAL. lo_rtti ?= cl_abap_structdescr=>describe_by_name( ev_tabname ). IF lo_rtti->get_ddic_header( )-tabform <> 'T'. " T Table/view stored transparently in the database CLEAR: ev_tabname. RETURN. ENDIF. lt_field_list = lo_rtti->get_ddic_field_list( ). SELECT SINGLE tabname INTO lv_text_table FROM dd08l WHERE as4local = 'A' AND checktable = ev_tabname AND frkart = 'TEXT'. IF lv_text_table IS NOT INITIAL. CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = lv_text_table TABLES dfies_tab = lt_field_list_text. ENDIF. IF ls_dd04v-entitytab IS NOT INITIAL. " domain value table LOOP AT lt_field_list INTO ls_field_list TO 10. lv_field = ls_field_list-fieldname. APPEND lv_field TO et_field. ENDLOOP. IF lo_rtti->has_property( cl_abap_structdescr=>typepropkind_hasclient ). READ TABLE lt_field_list INTO ls_field_list WITH KEY datatype = 'CLNT'. DELETE et_field WHERE table_line = ls_field_list-fieldname. ENDIF. READ TABLE lt_field_list INTO ls_field_list WITH KEY domname = ls_dd04v-domname. IF sy-subrc EQ 0. lv_field = ls_field_list-fieldname. DELETE et_field WHERE table_line = lv_field. INSERT lv_field INTO et_field INDEX 1. ENDIF. ELSE. " self table one column READ TABLE lt_field_list INTO ls_field_list WITH KEY fieldname = iv_fieldname. IF sy-subrc <> 0. READ TABLE lt_field_list INTO ls_field_list WITH KEY domname = ls_dd04v-domname. IF sy-subrc <> 0. READ TABLE lt_field_list INTO ls_field_list WITH KEY leng = ls_dd04v-leng. IF sy-subrc <> 0. READ TABLE lt_field_list INTO ls_field_list INDEX 1. ENDIF. ENDIF. ENDIF. lv_index = sy-tabix - 1. lv_field = ls_field_list-fieldname. APPEND lv_field TO et_field. IF ls_field_list-reffield IS NOT INITIAL AND line_exists( lt_field_list[ fieldname = ls_field_list-reffield ] ). lv_field = ls_field_list-reffield. APPEND lv_field TO et_field. ENDIF. IF ls_field_list-keyflag EQ abap_true AND lv_index > 1. LOOP AT lt_field_list INTO ls_field_list TO lv_index WHERE datatype <> 'CLNT'. lv_field = ls_field_list-fieldname. APPEND lv_field TO lt_field. ENDLOOP. INSERT LINES OF lt_field INTO et_field INDEX 1. ENDIF. " DISTINCT on ev_distinct = abap_true. ENDIF. IF lv_text_table IS NOT INITIAL. IF lines( et_field ) > 6. DELETE et_field FROM 7. ENDIF. LOOP AT lt_field_list_text INTO ls_field_list WHERE keyflag = abap_false. lv_field = ls_field_list-fieldname. APPEND lv_field TO et_field. ENDLOOP. ENDIF. ENDFUNCTION.
[ 42296, 4177, 2849, 1976, 5406, 62, 1676, 40007, 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, 3824, 62, 5603, 15766, 10067, 8, 41876, 220, 43749, 7336, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 3824, 62, 44603, 20608, 8, 41876, 220, 43749, 7336, 198, 9, 1, 220, 7788, 15490, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 20114, 62, 5603, 15766, 10067, 8, 41876, 220, 309, 6242, 20608, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 2767, 62, 44603, 8, 41876, 220, 19269, 2751, 5603, 33, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 20114, 62, 35, 8808, 1268, 4177, 8, 41876, 220, 9977, 4760, 198, 9, 1, 10097, 23031, 628, 220, 42865, 25, 43979, 62, 1860, 3023, 85, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49427, 3023, 85, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 81, 35671, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 7249, 20147, 81, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 3245, 62, 4868, 220, 220, 220, 220, 220, 41876, 49427, 25747, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 3245, 62, 4868, 62, 5239, 41876, 49427, 25747, 11, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 3245, 62, 4868, 220, 220, 220, 220, 220, 41876, 47764, 444, 11, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 3245, 62, 4868, 62, 5420, 220, 41876, 47764, 444, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 3245, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 3963, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 3245, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 5239, 62, 11487, 220, 220, 220, 220, 220, 41876, 7400, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 9630, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 13, 628, 220, 30301, 1503, 25, 2123, 62, 3245, 13, 198, 220, 819, 62, 8658, 3672, 796, 21628, 62, 8658, 3672, 13, 628, 220, 366, 651, 7386, 1988, 3084, 13, 198, 220, 43979, 62, 1860, 3023, 85, 12, 2487, 3672, 796, 537, 62, 397, 499, 62, 774, 9124, 3798, 81, 14804, 20147, 4892, 62, 1525, 62, 3672, 7, 21628, 62, 8658, 3672, 11405, 705, 19355, 11405, 21628, 62, 3245, 3672, 1267, 3784, 1136, 62, 43762, 62, 3672, 7, 6739, 198, 220, 16876, 43979, 62, 1860, 3023, 85, 12, 2487, 3672, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 16458, 5064, 62, 24544, 3698, 62, 18851, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 796, 43979, 62, 1860, 3023, 85, 12, 2487, 3672, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 49427, 3023, 85, 62, 10247, 796, 43979, 62, 1860, 3023, 85, 13, 198, 220, 220, 220, 16876, 43979, 62, 1860, 3023, 85, 12, 26858, 8658, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 819, 62, 8658, 3672, 796, 43979, 62, 1860, 3023, 85, 12, 26858, 8658, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 5064, 13, 628, 198, 220, 5870, 25171, 25, 819, 62, 8658, 3672, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 2376, 62, 81, 35671, 5633, 28, 537, 62, 397, 499, 62, 7249, 20147, 81, 14804, 20147, 4892, 62, 1525, 62, 3672, 7, 819, 62, 8658, 3672, 6739, 198, 220, 16876, 2376, 62, 81, 35671, 3784, 1136, 62, 1860, 291, 62, 25677, 7, 1267, 12, 8658, 687, 1279, 29, 705, 51, 4458, 220, 366, 309, 197, 10962, 14, 1177, 8574, 13245, 306, 287, 262, 6831, 198, 220, 220, 220, 30301, 1503, 25, 819, 62, 8658, 3672, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 5064, 13, 198, 220, 300, 83, 62, 3245, 62, 4868, 796, 2376, 62, 81, 35671, 3784, 1136, 62, 1860, 291, 62, 3245, 62, 4868, 7, 6739, 198, 220, 33493, 311, 2751, 2538, 7400, 3672, 198, 220, 220, 220, 39319, 300, 85, 62, 5239, 62, 11487, 198, 220, 220, 220, 16034, 49427, 2919, 75, 198, 220, 220, 220, 33411, 355, 19, 12001, 796, 705, 32, 6, 198, 220, 220, 220, 220, 220, 5357, 2198, 11487, 796, 819, 62, 8658, 3672, 198, 220, 220, 220, 220, 220, 5357, 1216, 74, 433, 796, 705, 32541, 4458, 198, 220, 16876, 300, 85, 62, 5239, 62, 11487, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 16458, 5064, 62, 44603, 10778, 62, 18851, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 7400, 3672, 220, 220, 796, 300, 85, 62, 5239, 62, 11487, 198, 220, 220, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 220, 220, 47764, 444, 62, 8658, 796, 300, 83, 62, 3245, 62, 4868, 62, 5239, 13, 198, 220, 23578, 5064, 13, 628, 220, 16876, 43979, 62, 1860, 3023, 85, 12, 26858, 8658, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 366, 7386, 1988, 3084, 198, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 3245, 62, 4868, 39319, 43979, 62, 3245, 62, 4868, 5390, 838, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 3245, 796, 43979, 62, 3245, 62, 4868, 12, 3245, 3672, 13, 198, 220, 220, 220, 220, 220, 43504, 10619, 300, 85, 62, 3245, 5390, 2123, 62, 3245, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 220, 220, 16876, 2376, 62, 81, 35671, 3784, 10134, 62, 26745, 7, 537, 62, 397, 499, 62, 7249, 20147, 81, 14804, 4906, 22930 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS cl_o2_api_xsltdesc DEFINITION PUBLIC. PUBLIC SECTION. TYPES: BEGIN OF ty_error, text TYPE string, END OF ty_error. TYPES ty_error_tab TYPE STANDARD TABLE OF ty_error WITH EMPTY KEY. CLASS-METHODS check_transformation_source IMPORTING i_name TYPE string i_source TYPE o2pageline_table EXPORTING e_error_list TYPE ty_error_tab. ENDCLASS. CLASS cl_o2_api_xsltdesc IMPLEMENTATION. METHOD check_transformation_source. ASSERT 1 = 'todo'. ENDMETHOD. ENDCLASS.
[ 31631, 537, 62, 78, 17, 62, 15042, 62, 34223, 2528, 20147, 5550, 20032, 17941, 44731, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 18224, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 18224, 13, 198, 220, 220, 220, 24412, 47, 1546, 1259, 62, 18224, 62, 8658, 41876, 49053, 9795, 43679, 3963, 1259, 62, 18224, 13315, 38144, 9936, 35374, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 2198, 62, 7645, 1161, 62, 10459, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 3672, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 10459, 220, 220, 220, 220, 41876, 267, 17, 79, 363, 4470, 62, 11487, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 304, 62, 18224, 62, 4868, 41876, 1259, 62, 18224, 62, 8658, 13, 198, 10619, 31631, 13, 198, 198, 31631, 537, 62, 78, 17, 62, 15042, 62, 34223, 2528, 20147, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 2198, 62, 7645, 1161, 62, 10459, 13, 198, 220, 220, 220, 24994, 17395, 352, 796, 705, 83, 24313, 4458, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_popups DEFINITION PUBLIC FINAL CREATE PRIVATE GLOBAL FRIENDS zcl_abapgit_ui_factory. PUBLIC SECTION. INTERFACES: zif_abapgit_popups. ALIASES: popup_package_export FOR zif_abapgit_popups~popup_package_export, popup_folder_logic FOR zif_abapgit_popups~popup_folder_logic, popup_object FOR zif_abapgit_popups~popup_object, create_branch_popup FOR zif_abapgit_popups~create_branch_popup, run_page_class_popup FOR zif_abapgit_popups~run_page_class_popup, repo_new_offline FOR zif_abapgit_popups~repo_new_offline, branch_list_popup FOR zif_abapgit_popups~branch_list_popup, repo_popup FOR zif_abapgit_popups~repo_popup, popup_to_confirm FOR zif_abapgit_popups~popup_to_confirm, popup_to_inform FOR zif_abapgit_popups~popup_to_inform, popup_to_create_package FOR zif_abapgit_popups~popup_to_create_package, popup_to_create_transp_branch FOR zif_abapgit_popups~popup_to_create_transp_branch, popup_to_select_transports FOR zif_abapgit_popups~popup_to_select_transports, popup_to_select_from_list FOR zif_abapgit_popups~popup_to_select_from_list, branch_popup_callback FOR zif_abapgit_popups~branch_popup_callback, package_popup_callback FOR zif_abapgit_popups~package_popup_callback, popup_transport_request FOR zif_abapgit_popups~popup_transport_request. PROTECTED SECTION. PRIVATE SECTION. TYPES: ty_sval_tt TYPE STANDARD TABLE OF sval WITH DEFAULT KEY. CONSTANTS c_fieldname_selected TYPE lvc_fname VALUE `SELECTED` ##NO_TEXT. CONSTANTS c_answer_cancel TYPE char1 VALUE 'A' ##NO_TEXT. DATA mo_select_list_popup TYPE REF TO cl_salv_table . DATA mr_table TYPE REF TO data . DATA mv_cancel TYPE abap_bool . DATA mo_table_descr TYPE REF TO cl_abap_tabledescr . METHODS add_field IMPORTING !iv_tabname TYPE sval-tabname !iv_fieldname TYPE sval-fieldname !iv_fieldtext TYPE sval-fieldtext !iv_value TYPE clike DEFAULT '' !iv_field_attr TYPE sval-field_attr DEFAULT '' !iv_obligatory TYPE spo_obl OPTIONAL CHANGING !ct_fields TYPE ty_sval_tt . METHODS create_new_table IMPORTING !it_list TYPE STANDARD TABLE . METHODS get_selected_rows EXPORTING !et_list TYPE INDEX TABLE . METHODS on_select_list_link_click FOR EVENT link_click OF cl_salv_events_table IMPORTING !row !column . METHODS on_select_list_function_click FOR EVENT added_function OF cl_salv_events_table IMPORTING !e_salv_function . METHODS extract_field_values IMPORTING it_fields TYPE ty_sval_tt EXPORTING ev_url TYPE abaptxt255-line ev_package TYPE tdevc-devclass ev_branch TYPE textl-line ev_display_name TYPE trm255-text ev_folder_logic TYPE string ev_ign_subpkg TYPE abap_bool. TYPES: ty_lt_fields TYPE STANDARD TABLE OF sval WITH DEFAULT KEY. METHODS _popup_2_get_values IMPORTING iv_popup_title TYPE string iv_no_value_check TYPE abap_bool DEFAULT abap_false EXPORTING ev_value_1 TYPE spo_value ev_value_2 TYPE spo_value CHANGING ct_fields TYPE ty_lt_fields RAISING zcx_abapgit_exception. METHODS validate_folder_logic IMPORTING iv_folder_logic TYPE string RAISING zcx_abapgit_exception. ENDCLASS. CLASS ZCL_ABAPGIT_POPUPS IMPLEMENTATION. METHOD add_field. FIELD-SYMBOLS: <ls_field> LIKE LINE OF ct_fields. APPEND INITIAL LINE TO ct_fields ASSIGNING <ls_field>. <ls_field>-tabname = iv_tabname. <ls_field>-fieldname = iv_fieldname. <ls_field>-fieldtext = iv_fieldtext. <ls_field>-value = iv_value. <ls_field>-field_attr = iv_field_attr. <ls_field>-field_obl = iv_obligatory. ENDMETHOD. METHOD create_new_table. " create and populate a table on the fly derived from " it_data with a select column DATA: lr_struct TYPE REF TO data, lt_components TYPE cl_abap_structdescr=>component_table, lo_struct_descr TYPE REF TO cl_abap_structdescr, lo_struct_descr2 TYPE REF TO cl_abap_structdescr. FIELD-SYMBOLS: <lt_table> TYPE STANDARD TABLE, <ls_component> TYPE abap_componentdescr, <lg_line> TYPE data, <lg_data> TYPE any. mo_table_descr ?= cl_abap_tabledescr=>describe_by_data( it_list ). lo_struct_descr ?= mo_table_descr->get_table_line_type( ). lt_components = lo_struct_descr->get_components( ). INSERT INITIAL LINE INTO lt_components ASSIGNING <ls_component> INDEX 1. ASSERT sy-subrc = 0. <ls_component>-name = c_fieldname_selected. <ls_component>-type ?= cl_abap_datadescr=>describe_by_name( 'FLAG' ). lo_struct_descr2 = cl_abap_structdescr=>create( lt_components ). mo_table_descr = cl_abap_tabledescr=>create( lo_struct_descr2 ). CREATE DATA mr_table TYPE HANDLE mo_table_descr. ASSIGN mr_table->* TO <lt_table>. ASSERT sy-subrc = 0. CREATE DATA lr_struct TYPE HANDLE lo_struct_descr2. ASSIGN lr_struct->* TO <lg_line>. ASSERT sy-subrc = 0. LOOP AT it_list ASSIGNING <lg_data>. CLEAR <lg_line>. MOVE-CORRESPONDING <lg_data> TO <lg_line>. INSERT <lg_line> INTO TABLE <lt_table>. ENDLOOP. ENDMETHOD. METHOD extract_field_values. FIELD-SYMBOLS: <ls_field> LIKE LINE OF it_fields. CLEAR: ev_url, ev_package, ev_branch, ev_display_name, ev_folder_logic, ev_ign_subpkg. READ TABLE it_fields INDEX 1 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_url = <ls_field>-value. READ TABLE it_fields INDEX 2 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_package = <ls_field>-value. TRANSLATE ev_package TO UPPER CASE. READ TABLE it_fields INDEX 3 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_branch = <ls_field>-value. READ TABLE it_fields INDEX 4 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_display_name = <ls_field>-value. READ TABLE it_fields INDEX 5 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_folder_logic = <ls_field>-value. TRANSLATE ev_folder_logic TO UPPER CASE. READ TABLE it_fields INDEX 6 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_ign_subpkg = <ls_field>-value. TRANSLATE ev_ign_subpkg TO UPPER CASE. ENDMETHOD. METHOD get_selected_rows. DATA: lv_condition TYPE string, lr_exporting TYPE REF TO data. FIELD-SYMBOLS: <lg_exporting> TYPE any, <lt_table> TYPE STANDARD TABLE, <lg_line> TYPE any. lv_condition = |{ c_fieldname_selected } = ABAP_TRUE|. ASSIGN mr_table->* TO <lt_table>. ASSERT sy-subrc = 0. CREATE DATA lr_exporting LIKE LINE OF et_list. ASSIGN lr_exporting->* TO <lg_exporting>. LOOP AT <lt_table> ASSIGNING <lg_line> WHERE (lv_condition). CLEAR <lg_exporting>. MOVE-CORRESPONDING <lg_line> TO <lg_exporting>. APPEND <lg_exporting> TO et_list. ENDLOOP. ENDMETHOD. METHOD on_select_list_function_click. FIELD-SYMBOLS: <lt_table> TYPE STANDARD TABLE, <lg_line> TYPE any, <lv_selected> TYPE abap_bool. ASSIGN mr_table->* TO <lt_table>. ASSERT sy-subrc = 0. CASE e_salv_function. WHEN 'O.K.'. mv_cancel = abap_false. mo_select_list_popup->close_screen( ). WHEN 'ABR'. "Canceled: clear list to overwrite nothing CLEAR <lt_table>. mv_cancel = abap_true. mo_select_list_popup->close_screen( ). WHEN 'SALL'. LOOP AT <lt_table> ASSIGNING <lg_line>. ASSIGN COMPONENT c_fieldname_selected OF STRUCTURE <lg_line> TO <lv_selected>. ASSERT sy-subrc = 0. <lv_selected> = abap_true. ENDLOOP. mo_select_list_popup->refresh( ). WHEN 'DSEL'. LOOP AT <lt_table> ASSIGNING <lg_line>. ASSIGN COMPONENT c_fieldname_selected OF STRUCTURE <lg_line> TO <lv_selected>. ASSERT sy-subrc = 0. <lv_selected> = abap_false. ENDLOOP. mo_select_list_popup->refresh( ). WHEN OTHERS. CLEAR <lt_table>. mo_select_list_popup->close_screen( ). ENDCASE. ENDMETHOD. METHOD on_select_list_link_click. DATA: lv_line TYPE sytabix. FIELD-SYMBOLS: <lt_table> TYPE STANDARD TABLE, <lg_line> TYPE any, <lv_selected> TYPE abap_bool. ASSIGN mr_table->* TO <lt_table>. ASSERT sy-subrc = 0. lv_line = row. READ TABLE <lt_table> ASSIGNING <lg_line> INDEX lv_line. IF sy-subrc = 0. ASSIGN COMPONENT c_fieldname_selected OF STRUCTURE <lg_line> TO <lv_selected>. ASSERT sy-subrc = 0. IF <lv_selected> = abap_true. <lv_selected> = abap_false. ELSE. <lv_selected> = abap_true. ENDIF. ENDIF. mo_select_list_popup->refresh( ). ENDMETHOD. METHOD validate_folder_logic. IF iv_folder_logic <> zif_abapgit_dot_abapgit=>c_folder_logic-prefix AND iv_folder_logic <> zif_abapgit_dot_abapgit=>c_folder_logic-full. zcx_abapgit_exception=>raise( |Invalid folder logic { iv_folder_logic }. | && |Choose either { zif_abapgit_dot_abapgit=>c_folder_logic-prefix } | && |or { zif_abapgit_dot_abapgit=>c_folder_logic-full } | ). ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~branch_list_popup. DATA: lo_branches TYPE REF TO zcl_abapgit_git_branch_list, lt_branches TYPE zif_abapgit_definitions=>ty_git_branch_list_tt, lv_answer TYPE c LENGTH 1, lv_default TYPE i, lv_head_suffix TYPE string, lv_head_symref TYPE string, lt_selection TYPE TABLE OF spopli. FIELD-SYMBOLS: <ls_sel> LIKE LINE OF lt_selection, <ls_branch> LIKE LINE OF lt_branches. lo_branches = zcl_abapgit_git_transport=>branches( iv_url ). lt_branches = lo_branches->get_branches_only( ). lv_head_suffix = | ({ zif_abapgit_definitions=>c_head_name })|. lv_head_symref = lo_branches->get_head_symref( ). IF iv_hide_branch IS NOT INITIAL. DELETE lt_branches WHERE name = iv_hide_branch. ENDIF. IF iv_hide_head IS NOT INITIAL. DELETE lt_branches WHERE name = zif_abapgit_definitions=>c_head_name OR is_head = abap_true. ENDIF. IF lt_branches IS INITIAL. zcx_abapgit_exception=>raise( 'No branch to select' ). ENDIF. LOOP AT lt_branches ASSIGNING <ls_branch>. CHECK <ls_branch>-name IS NOT INITIAL. " To ensure some below ifs IF <ls_branch>-is_head = abap_true. IF <ls_branch>-name = zif_abapgit_definitions=>c_head_name. " HEAD IF <ls_branch>-name <> lv_head_symref AND lv_head_symref IS NOT INITIAL. " HEAD but other HEAD symref exists - ignore CONTINUE. ELSE. INSERT INITIAL LINE INTO lt_selection INDEX 1 ASSIGNING <ls_sel>. <ls_sel>-varoption = <ls_branch>-name. ENDIF. ELSE. INSERT INITIAL LINE INTO lt_selection INDEX 1 ASSIGNING <ls_sel>. <ls_sel>-varoption = <ls_branch>-display_name && lv_head_suffix. ENDIF. IF lv_default > 0. " Shift down default if set lv_default = lv_default + 1. ENDIF. ELSE. APPEND INITIAL LINE TO lt_selection ASSIGNING <ls_sel>. <ls_sel>-varoption = <ls_branch>-display_name. ENDIF. IF <ls_branch>-name = iv_default_branch. IF <ls_branch>-is_head = abap_true. lv_default = 1. ELSE. lv_default = sy-tabix. ENDIF. ENDIF. ENDLOOP. IF iv_show_new_option = abap_true. APPEND INITIAL LINE TO lt_selection ASSIGNING <ls_sel>. <ls_sel>-varoption = zif_abapgit_popups=>c_new_branch_label. ENDIF. CALL FUNCTION 'POPUP_TO_DECIDE_LIST' EXPORTING textline1 = 'Select branch' titel = 'Select branch' start_col = 30 start_row = 5 cursorline = lv_default IMPORTING answer = lv_answer TABLES t_spopli = lt_selection EXCEPTIONS OTHERS = 1. "#EC NOTEXT IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from POPUP_TO_DECIDE_LIST' ). ENDIF. IF lv_answer = c_answer_cancel. RETURN. ENDIF. READ TABLE lt_selection ASSIGNING <ls_sel> WITH KEY selflag = abap_true. ASSERT sy-subrc = 0. IF iv_show_new_option = abap_true AND <ls_sel>-varoption = zif_abapgit_popups=>c_new_branch_label. rs_branch-name = zif_abapgit_popups=>c_new_branch_label. ELSE. REPLACE FIRST OCCURRENCE OF lv_head_suffix IN <ls_sel>-varoption WITH ''. READ TABLE lt_branches WITH KEY display_name = <ls_sel>-varoption ASSIGNING <ls_branch>. IF sy-subrc <> 0. * branch name longer than 65 characters LOOP AT lt_branches ASSIGNING <ls_branch> WHERE display_name CS <ls_sel>-varoption. EXIT. " current loop ENDLOOP. ENDIF. ASSERT <ls_branch> IS ASSIGNED. rs_branch = lo_branches->find_by_name( <ls_branch>-name ). ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~branch_popup_callback. DATA: lv_url TYPE string, ls_package_data TYPE scompkdtln, ls_branch TYPE zif_abapgit_definitions=>ty_git_branch, lv_create TYPE abap_bool, lv_text TYPE string. FIELD-SYMBOLS: <ls_furl> LIKE LINE OF ct_fields, <ls_fbranch> LIKE LINE OF ct_fields, <ls_fpackage> LIKE LINE OF ct_fields. CLEAR cs_error. IF iv_code = 'COD1'. cv_show_popup = abap_true. READ TABLE ct_fields ASSIGNING <ls_furl> WITH KEY tabname = 'ABAPTXT255'. IF sy-subrc <> 0 OR <ls_furl>-value IS INITIAL. MESSAGE 'Fill URL' TYPE 'S' DISPLAY LIKE 'E'. "#EC NOTEXT RETURN. ENDIF. lv_url = <ls_furl>-value. ls_branch = branch_list_popup( lv_url ). IF ls_branch IS INITIAL. RETURN. ENDIF. READ TABLE ct_fields ASSIGNING <ls_fbranch> WITH KEY tabname = 'TEXTL'. ASSERT sy-subrc = 0. <ls_fbranch>-value = ls_branch-name. ELSEIF iv_code = 'COD2'. cv_show_popup = abap_true. READ TABLE ct_fields ASSIGNING <ls_fpackage> WITH KEY fieldname = 'DEVCLASS'. ASSERT sy-subrc = 0. ls_package_data-devclass = <ls_fpackage>-value. IF zcl_abapgit_factory=>get_sap_package( ls_package_data-devclass )->exists( ) = abap_true. lv_text = |Package { ls_package_data-devclass } already exists|. MESSAGE lv_text TYPE 'I' DISPLAY LIKE 'E'. RETURN. ENDIF. popup_to_create_package( IMPORTING es_package_data = ls_package_data ev_create = lv_create ). IF lv_create = abap_false. RETURN. ENDIF. zcl_abapgit_factory=>get_sap_package( ls_package_data-devclass )->create( ls_package_data ). COMMIT WORK. <ls_fpackage>-value = ls_package_data-devclass. ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~create_branch_popup. DATA: lt_fields TYPE TABLE OF sval. DATA: lv_name TYPE spo_value. CLEAR: ev_name, ev_cancel. add_field( EXPORTING iv_tabname = 'TEXTL' iv_fieldname = 'LINE' iv_fieldtext = 'Name' iv_value = 'new-branch-name' CHANGING ct_fields = lt_fields ). TRY. _popup_2_get_values( EXPORTING iv_popup_title = 'Create branch' "#EC NOTEXT IMPORTING ev_value_1 = lv_name CHANGING ct_fields = lt_fields ). ev_name = zcl_abapgit_git_branch_list=>complete_heads_branch_name( zcl_abapgit_git_branch_list=>normalize_branch_name( lv_name ) ). CATCH zcx_abapgit_cancel. ev_cancel = abap_true. ENDTRY. ENDMETHOD. METHOD zif_abapgit_popups~package_popup_callback. DATA: ls_package_data TYPE scompkdtln, lv_create TYPE abap_bool. FIELD-SYMBOLS: <ls_fpackage> LIKE LINE OF ct_fields. CLEAR cs_error. IF iv_code = 'COD1'. cv_show_popup = abap_true. READ TABLE ct_fields ASSIGNING <ls_fpackage> WITH KEY fieldname = 'DEVCLASS'. ASSERT sy-subrc = 0. ls_package_data-devclass = <ls_fpackage>-value. popup_to_create_package( IMPORTING es_package_data = ls_package_data ev_create = lv_create ). IF lv_create = abap_false. RETURN. ENDIF. zcl_abapgit_factory=>get_sap_package( ls_package_data-devclass )->create( ls_package_data ). COMMIT WORK. <ls_fpackage>-value = ls_package_data-devclass. ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~popup_folder_logic. DATA: lt_fields TYPE TABLE OF sval. DATA: lv_folder_logic TYPE spo_value. CLEAR: rv_folder_logic. add_field( EXPORTING iv_tabname = 'TDEVC' iv_fieldname = 'INTSYS' iv_fieldtext = 'Folder logic' iv_value = 'PREFIX' CHANGING ct_fields = lt_fields ). TRY. _popup_2_get_values( EXPORTING iv_popup_title = 'Export package' "#EC NOTEXT iv_no_value_check = abap_true IMPORTING ev_value_1 = lv_folder_logic CHANGING ct_fields = lt_fields ). rv_folder_logic = to_upper( lv_folder_logic ). CATCH zcx_abapgit_cancel. ENDTRY. ENDMETHOD. METHOD zif_abapgit_popups~popup_object. DATA: lt_fields TYPE TABLE OF sval. DATA: lv_object_type TYPE spo_value. DATA: lv_object_name TYPE spo_value. CLEAR: rs_tadir-object, rs_tadir-obj_name. add_field( EXPORTING iv_tabname = 'TADIR' iv_fieldname = 'OBJECT' iv_fieldtext = 'Type' CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TADIR' iv_fieldname = 'OBJ_NAME' iv_fieldtext = 'Name' CHANGING ct_fields = lt_fields ). TRY. _popup_2_get_values( EXPORTING iv_popup_title = 'Object' "#EC NOTEXT iv_no_value_check = abap_true IMPORTING ev_value_1 = lv_object_type ev_value_2 = lv_object_name CHANGING ct_fields = lt_fields ). rs_tadir = zcl_abapgit_factory=>get_tadir( )->read_single( iv_object = to_upper( lv_object_type ) iv_obj_name = to_upper( lv_object_name ) ). CATCH zcx_abapgit_cancel. ENDTRY. ENDMETHOD. METHOD zif_abapgit_popups~popup_package_export. DATA: lt_fields TYPE TABLE OF sval. DATA: lv_package TYPE spo_value. DATA: lv_folder_logic TYPE spo_value. add_field( EXPORTING iv_tabname = 'TDEVC' iv_fieldname = 'DEVCLASS' iv_fieldtext = 'Package' CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TDEVC' iv_fieldname = 'INTSYS' iv_fieldtext = 'Folder logic' iv_value = 'PREFIX' CHANGING ct_fields = lt_fields ). TRY. _popup_2_get_values( EXPORTING iv_popup_title = 'Export package' "#EC NOTEXT iv_no_value_check = abap_true IMPORTING ev_value_1 = lv_package ev_value_2 = lv_folder_logic CHANGING ct_fields = lt_fields ). ev_package = to_upper( lv_package ). ev_folder_logic = to_upper( lv_folder_logic ). CATCH zcx_abapgit_cancel. ENDTRY. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_confirm. CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = iv_titlebar text_question = iv_text_question text_button_1 = iv_text_button_1 icon_button_1 = iv_icon_button_1 text_button_2 = iv_text_button_2 icon_button_2 = iv_icon_button_2 default_button = iv_default_button display_cancel_button = iv_display_cancel_button IMPORTING answer = rv_answer EXCEPTIONS text_not_found = 1 OTHERS = 2. "#EC NOTEXT IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from POPUP_TO_CONFIRM' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_create_package. CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'PB_POPUP_PACKAGE_CREATE' EXCEPTIONS function_not_exist = 1 OTHERS = 2. IF sy-subrc = 1. * looks like the function module used does not exist on all * versions since 702, so show an error zcx_abapgit_exception=>raise( 'Your system does not support automatic creation of packages.' && 'Please, create the package manually.' ). ENDIF. CALL FUNCTION 'PB_POPUP_PACKAGE_CREATE' CHANGING p_object_data = es_package_data EXCEPTIONS action_cancelled = 1. IF sy-subrc = 0. ev_create = abap_true. ELSE. ev_create = abap_false. ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_create_transp_branch. DATA: lt_fields TYPE TABLE OF sval, lv_transports_as_text TYPE string, lv_desc_as_text TYPE string, ls_transport_header LIKE LINE OF it_transport_headers. DATA: lv_branch_name TYPE spo_value. DATA: lv_commit_text TYPE spo_value. CLEAR: rs_transport_branch-branch_name, rs_transport_branch-commit_text. " If we only have one transport selected set branch name to Transport " name and commit description to transport description. IF lines( it_transport_headers ) = 1. READ TABLE it_transport_headers INDEX 1 INTO ls_transport_header. lv_transports_as_text = ls_transport_header-trkorr. SELECT SINGLE as4text FROM e07t INTO lv_desc_as_text WHERE trkorr = ls_transport_header-trkorr AND langu = sy-langu. ELSE. " Else set branch name and commit message to 'Transport(s)_TRXXXXXX_TRXXXXX' lv_transports_as_text = 'Transport(s)'. LOOP AT it_transport_headers INTO ls_transport_header. CONCATENATE lv_transports_as_text '_' ls_transport_header-trkorr INTO lv_transports_as_text. ENDLOOP. lv_desc_as_text = lv_transports_as_text. ENDIF. add_field( EXPORTING iv_tabname = 'TEXTL' iv_fieldname = 'LINE' iv_fieldtext = 'Branch name' iv_value = lv_transports_as_text CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'ABAPTXT255' iv_fieldname = 'LINE' iv_fieldtext = 'Commit text' iv_value = lv_desc_as_text CHANGING ct_fields = lt_fields ). _popup_2_get_values( EXPORTING iv_popup_title = 'Transport to new Branch' "#EC NOTEXT IMPORTING ev_value_1 = lv_branch_name ev_value_2 = lv_commit_text CHANGING ct_fields = lt_fields ). rs_transport_branch-branch_name = lv_branch_name. rs_transport_branch-commit_text = lv_commit_text. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_inform. DATA: lv_line1 TYPE char70, lv_line2 TYPE char70. lv_line1 = iv_text_message. IF strlen( iv_text_message ) > 70. lv_line2 = iv_text_message+70. ENDIF. CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = iv_titlebar txt1 = lv_line1 txt2 = lv_line2. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_select_from_list. DATA: lo_events TYPE REF TO cl_salv_events_table, lo_columns TYPE REF TO cl_salv_columns_table, lt_columns TYPE salv_t_column_ref, ls_column TYPE salv_s_column_ref, lo_column TYPE REF TO cl_salv_column_list, lo_table_header TYPE REF TO cl_salv_form_text. FIELD-SYMBOLS: <lt_table> TYPE STANDARD TABLE. CLEAR: et_list. create_new_table( it_list ). ASSIGN mr_table->* TO <lt_table>. ASSERT sy-subrc = 0. TRY. cl_salv_table=>factory( IMPORTING r_salv_table = mo_select_list_popup CHANGING t_table = <lt_table> ). mo_select_list_popup->set_screen_status( pfstatus = '102' report = 'SAPMSVIM' ). mo_select_list_popup->set_screen_popup( start_column = 1 end_column = 65 start_line = 1 end_line = 20 ). lo_events = mo_select_list_popup->get_event( ). SET HANDLER on_select_list_link_click FOR lo_events. SET HANDLER on_select_list_function_click FOR lo_events. CREATE OBJECT lo_table_header EXPORTING text = iv_header_text. mo_select_list_popup->set_top_of_list( lo_table_header ). lo_columns = mo_select_list_popup->get_columns( ). lo_columns->set_optimize( abap_true ). lt_columns = lo_columns->get( ). LOOP AT lt_columns INTO ls_column. IF ls_column-columnname = c_fieldname_selected. lo_column ?= ls_column-r_column. lo_column->set_cell_type( if_salv_c_cell_type=>checkbox_hotspot ). lo_column->set_output_length( 20 ). lo_column->set_short_text( |{ iv_select_column_text }| ). lo_column->set_medium_text( |{ iv_select_column_text }| ). lo_column->set_long_text( |{ iv_select_column_text }| ). CONTINUE. ENDIF. READ TABLE it_columns_to_display TRANSPORTING NO FIELDS WITH KEY table_line = ls_column-columnname. IF sy-subrc <> 0. ls_column-r_column->set_technical( abap_true ). ENDIF. ENDLOOP. mo_select_list_popup->display( ). CATCH cx_salv_msg. zcx_abapgit_exception=>raise( 'Error from POPUP_TO_SELECT_FROM_LIST' ). ENDTRY. IF mv_cancel = abap_true. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ENDIF. get_selected_rows( IMPORTING et_list = et_list ). CLEAR: mo_select_list_popup, mr_table, mo_table_descr. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_select_transports. * todo, method to be renamed, it only returns one transport DATA: lv_trkorr TYPE e070-trkorr, ls_trkorr LIKE LINE OF rt_trkorr. CALL FUNCTION 'TR_F4_REQUESTS' IMPORTING ev_selected_request = lv_trkorr. IF NOT lv_trkorr IS INITIAL. ls_trkorr-trkorr = lv_trkorr. APPEND ls_trkorr TO rt_trkorr. ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~popup_transport_request. DATA: lt_e071 TYPE STANDARD TABLE OF e071, lt_e071k TYPE STANDARD TABLE OF e071k. CALL FUNCTION 'TRINT_ORDER_CHOICE' EXPORTING wi_order_type = is_transport_type-request wi_task_type = is_transport_type-task IMPORTING we_order = rv_transport TABLES wt_e071 = lt_e071 wt_e071k = lt_e071k EXCEPTIONS no_correction_selected = 1 display_mode = 2 object_append_error = 3 recursive_call = 4 wrong_order_type = 5 OTHERS = 6. IF sy-subrc = 1. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ELSEIF sy-subrc > 1. zcx_abapgit_exception=>raise( |Error from TRINT_ORDER_CHOICE { sy-subrc }| ). ENDIF. ENDMETHOD. METHOD zif_abapgit_popups~repo_new_offline. DATA: lv_returncode TYPE c, lt_fields TYPE TABLE OF sval, lv_icon_ok TYPE icon-name, lv_button1 TYPE svalbutton-buttontext, lv_icon1 TYPE icon-name, lv_finished TYPE abap_bool, lx_error TYPE REF TO zcx_abapgit_exception. FIELD-SYMBOLS: <ls_field> LIKE LINE OF lt_fields. add_field( EXPORTING iv_tabname = 'ABAPTXT255' iv_fieldname = 'LINE' iv_fieldtext = 'Name' iv_obligatory = abap_true CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TDEVC' iv_fieldname = 'DEVCLASS' iv_fieldtext = 'Package' iv_obligatory = abap_true CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'ZABAPGIT' iv_fieldname = 'VALUE' iv_fieldtext = 'Folder logic' iv_obligatory = abap_true iv_value = zif_abapgit_dot_abapgit=>c_folder_logic-prefix CHANGING ct_fields = lt_fields ). WHILE lv_finished = abap_false. lv_icon_ok = icon_okay. lv_button1 = 'Create package' ##NO_TEXT. lv_icon1 = icon_folder. CALL FUNCTION 'POPUP_GET_VALUES_USER_BUTTONS' EXPORTING popup_title = 'New Offline Project' programname = sy-cprog formname = 'PACKAGE_POPUP' ok_pushbuttontext = 'OK' icon_ok_push = lv_icon_ok first_pushbutton = lv_button1 icon_button_1 = lv_icon1 second_pushbutton = '' icon_button_2 = '' IMPORTING returncode = lv_returncode TABLES fields = lt_fields EXCEPTIONS error_in_fields = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from POPUP_GET_VALUES' ). ENDIF. IF lv_returncode = c_answer_cancel. rs_popup-cancel = abap_true. RETURN. ENDIF. READ TABLE lt_fields INDEX 1 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. rs_popup-url = <ls_field>-value. READ TABLE lt_fields INDEX 2 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. TRANSLATE <ls_field>-value TO UPPER CASE. rs_popup-package = <ls_field>-value. READ TABLE lt_fields INDEX 3 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. TRANSLATE <ls_field>-value TO UPPER CASE. rs_popup-folder_logic = <ls_field>-value. lv_finished = abap_true. TRY. zcl_abapgit_repo_srv=>get_instance( )->validate_package( rs_popup-package ). validate_folder_logic( rs_popup-folder_logic ). CATCH zcx_abapgit_exception INTO lx_error. " in case of validation errors we display the popup again MESSAGE lx_error TYPE 'S' DISPLAY LIKE 'E'. CLEAR lv_finished. ENDTRY. ENDWHILE. ENDMETHOD. METHOD zif_abapgit_popups~repo_popup. DATA: lv_returncode TYPE c, lv_icon_ok TYPE icon-name, lv_icon_br TYPE icon-name, lt_fields TYPE TABLE OF sval, lv_uattr TYPE spo_fattr, lv_pattr TYPE spo_fattr, lv_button2 TYPE svalbutton-buttontext, lv_icon2 TYPE icon-name, lv_package TYPE tdevc-devclass, lv_url TYPE abaptxt255-line, lv_branch TYPE textl-line, lv_display_name TYPE trm255-text, lv_folder_logic TYPE string, lv_ign_subpkg TYPE abap_bool, lv_finished TYPE abap_bool, lx_error TYPE REF TO zcx_abapgit_exception. IF iv_freeze_url = abap_true. lv_uattr = '05'. ENDIF. IF iv_freeze_package = abap_true. lv_pattr = '05'. ENDIF. IF iv_package IS INITIAL. " Empty package -> can be created lv_button2 = 'Create package' ##NO_TEXT. lv_icon2 = icon_folder. ENDIF. lv_display_name = iv_display_name. lv_package = iv_package. lv_url = iv_url. lv_branch = iv_branch. WHILE lv_finished = abap_false. CLEAR: lt_fields. add_field( EXPORTING iv_tabname = 'ABAPTXT255' iv_fieldname = 'LINE' iv_fieldtext = 'Git clone URL' iv_value = lv_url iv_field_attr = lv_uattr CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TDEVC' iv_fieldname = 'DEVCLASS' iv_fieldtext = 'Package' iv_value = lv_package iv_field_attr = lv_pattr CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TEXTL' iv_fieldname = 'LINE' iv_fieldtext = 'Branch' iv_value = lv_branch iv_field_attr = '05' CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TRM255' iv_fieldname = 'TEXT' iv_fieldtext = 'Display name (opt.)' iv_value = lv_display_name CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'ZABAPGIT' iv_fieldname = 'VALUE' iv_fieldtext = 'Folder logic' iv_obligatory = abap_true iv_value = zif_abapgit_dot_abapgit=>c_folder_logic-prefix CHANGING ct_fields = lt_fields ). add_field( EXPORTING iv_tabname = 'TDEVC' iv_fieldname = 'IS_ENHANCEABLE' iv_fieldtext = 'Ignore subpackages' iv_value = abap_false CHANGING ct_fields = lt_fields ). lv_icon_ok = icon_okay. lv_icon_br = icon_workflow_fork. CALL FUNCTION 'POPUP_GET_VALUES_USER_BUTTONS' EXPORTING popup_title = iv_title programname = sy-cprog formname = 'BRANCH_POPUP' ok_pushbuttontext = 'OK' icon_ok_push = lv_icon_ok first_pushbutton = 'Select branch' icon_button_1 = lv_icon_br second_pushbutton = lv_button2 icon_button_2 = lv_icon2 IMPORTING returncode = lv_returncode TABLES fields = lt_fields EXCEPTIONS error_in_fields = 1 OTHERS = 2. "#EC NOTEXT IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from POPUP_GET_VALUES' ). ENDIF. IF lv_returncode = c_answer_cancel. rs_popup-cancel = abap_true. RETURN. ENDIF. extract_field_values( EXPORTING it_fields = lt_fields IMPORTING ev_url = lv_url ev_package = lv_package ev_branch = lv_branch ev_display_name = lv_display_name ev_folder_logic = lv_folder_logic ev_ign_subpkg = lv_ign_subpkg ). lv_finished = abap_true. TRY. zcl_abapgit_url=>validate( |{ lv_url }| ). IF iv_freeze_package = abap_false. zcl_abapgit_repo_srv=>get_instance( )->validate_package( iv_package = lv_package iv_ign_subpkg = lv_ign_subpkg ). ENDIF. validate_folder_logic( lv_folder_logic ). CATCH zcx_abapgit_exception INTO lx_error. MESSAGE lx_error TYPE 'S' DISPLAY LIKE 'E'. " in case of validation errors we display the popup again CLEAR lv_finished. ENDTRY. ENDWHILE. rs_popup-url = lv_url. rs_popup-package = lv_package. rs_popup-branch_name = lv_branch. rs_popup-display_name = lv_display_name. rs_popup-folder_logic = lv_folder_logic. rs_popup-ign_subpkg = lv_ign_subpkg. ENDMETHOD. METHOD zif_abapgit_popups~run_page_class_popup. DATA: lt_fields TYPE TABLE OF sval. DATA: lv_name TYPE spo_value. CLEAR: ev_name, ev_cancel. add_field( EXPORTING iv_tabname = 'TEXTL' iv_fieldname = 'LINE' iv_fieldtext = 'Name' iv_value = 'lcl_gui_page_' CHANGING ct_fields = lt_fields ). TRY. _popup_2_get_values( EXPORTING iv_popup_title = 'Run page manually' "#EC NOTEXT IMPORTING ev_value_1 = lv_name CHANGING ct_fields = lt_fields ). ev_name = to_upper( lv_name ). CATCH zcx_abapgit_cancel. ev_cancel = abap_true. ENDTRY. ENDMETHOD. METHOD _popup_2_get_values. DATA lv_answer TYPE char1. FIELD-SYMBOLS: <ls_field> TYPE sval. CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING no_value_check = iv_no_value_check popup_title = iv_popup_title IMPORTING returncode = lv_answer TABLES fields = ct_fields EXCEPTIONS OTHERS = 1 ##NO_TEXT. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from POPUP_GET_VALUES' ). ENDIF. IF lv_answer = c_answer_cancel. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ENDIF. IF ev_value_1 IS SUPPLIED. READ TABLE ct_fields INDEX 1 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_value_1 = <ls_field>-value. ENDIF. IF ev_value_2 IS SUPPLIED. READ TABLE ct_fields INDEX 2 ASSIGNING <ls_field>. ASSERT sy-subrc = 0. ev_value_2 = <ls_field>-value. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 12924, 4739, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 198, 220, 10188, 9864, 1847, 48167, 1677, 5258, 1976, 565, 62, 397, 499, 18300, 62, 9019, 62, 69, 9548, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 25, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 13, 198, 220, 220, 220, 8355, 43429, 1546, 25, 198, 220, 220, 220, 220, 220, 46207, 62, 26495, 62, 39344, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 26495, 62, 39344, 11, 198, 220, 220, 220, 220, 220, 46207, 62, 43551, 62, 6404, 291, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 43551, 62, 6404, 291, 11, 198, 220, 220, 220, 220, 220, 46207, 62, 15252, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 15252, 11, 198, 220, 220, 220, 220, 220, 2251, 62, 1671, 3702, 62, 12924, 929, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 17953, 62, 1671, 3702, 62, 12924, 929, 11, 198, 220, 220, 220, 220, 220, 1057, 62, 7700, 62, 4871, 62, 12924, 929, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 5143, 62, 7700, 62, 4871, 62, 12924, 929, 11, 198, 220, 220, 220, 220, 220, 29924, 62, 3605, 62, 2364, 1370, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 260, 7501, 62, 3605, 62, 2364, 1370, 11, 198, 220, 220, 220, 220, 220, 8478, 62, 4868, 62, 12924, 929, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 1671, 3702, 62, 4868, 62, 12924, 929, 11, 198, 220, 220, 220, 220, 220, 29924, 62, 12924, 929, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 260, 7501, 62, 12924, 929, 11, 198, 220, 220, 220, 220, 220, 46207, 62, 1462, 62, 10414, 2533, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 10414, 2533, 11, 198, 220, 220, 220, 220, 220, 46207, 62, 1462, 62, 259, 687, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 259, 687, 11, 198, 220, 220, 220, 220, 220, 46207, 62, 1462, 62, 17953, 62, 26495, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 17953, 62, 26495, 11, 198, 220, 220, 220, 220, 220, 46207, 62, 1462, 62, 17953, 62, 7645, 79, 62, 1671, 3702, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 17953, 62, 7645, 79, 62, 1671, 3702, 11, 198, 220, 220, 220, 220, 220, 46207, 62, 1462, 62, 19738, 62, 7645, 3742, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 19738, 62, 7645, 3742, 11, 198, 220, 220, 220, 220, 220, 46207, 62, 1462, 62, 19738, 62, 6738, 62, 4868, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 19738, 62, 6738, 62, 4868, 11, 198, 220, 220, 220, 220, 220, 8478, 62, 12924, 929, 62, 47423, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 1671, 3702, 62, 12924, 929, 62, 47423, 11, 198, 220, 220, 220, 220, 220, 5301, 62, 12924, 929, 62, 47423, 220, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 26495, 62, 12924, 929, 62, 47423, 11, 198, 220, 220, 220, 220, 220, 46207, 62, 7645, 634, 62, 25927, 220, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 7645, 634, 62, 25927, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 82, 2100, 62, 926, 41876, 49053, 9795, 43679, 3963, 264, 2100, 13315, 5550, 38865, 35374, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 3245, 3672, 62, 34213, 41876, 300, 28435, 62, 69, 3672, 26173, 8924, 4600, 46506, 1961, 63, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 41484, 62, 66, 21130, 220, 220, 220, 220, 220, 41876, 1149, 16, 26173, 8924, 705, 32, 6, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 42865, 6941, 62, 19738, 62, 4868, 62, 12924, 929, 41876, 4526, 37, 5390, 537, 62, 21680, 85, 62, 11487, 764, 198, 220, 220, 220, 42865, 285, 81, 62, 11487, 41876, 4526, 37, 5390, 1366, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 66, 21130, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 42865, 6941, 62, 11487, 62, 20147, 81, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 83, 4510, 3798, 81, 764, 628, 220, 220, 220, 337, 36252, 50, 751, 62, 3245, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8658, 3672, 220, 220, 220, 41876, 264, 2100, 12, 8658, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3245, 3672, 220, 41876 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS /dmo/cl_flight_data_generat_07 DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES: if_oo_adt_classrun. PROTECTED SECTION. PRIVATE SECTION. CLASS-METHODS: "! Calculation of Price <br/> "! <br/> "! Propagation to /dmo/cl_flight_legacy07=>calculate_flight_price.<br/> "! @parameter iv_seats_occupied_percent | occupied seats "! @parameter iv_flight_distance | flight distance in kilometer "! @parameter rv_price | calculated flight price calculate_flight_price IMPORTING iv_seats_occupied_percent TYPE /dmo/plane_seats_occupied07 iv_flight_distance TYPE i RETURNING VALUE(rv_price) TYPE /dmo/flight_price07. ENDCLASS. CLASS /dmo/cl_flight_data_generat_07 IMPLEMENTATION. METHOD if_oo_adt_classrun~main. out->write( 'Starting Data Generation' ). out->write( 'Generate Data: Airport /DMO/AIRPORT07' ). lcl_airport_data_generator=>lif_data_generator~create( out ). out->write( 'Generate Data: Carrier /DMO/CARRIER07' ). lcl_carrier_data_generator=>lif_data_generator~create( out ). out->write( 'Generate Data: Connection /DMO/CONNECTI_07' ). lcl_connection_data_generator=>lif_data_generator~create( out ). out->write( 'Generate Data: Flight /DMO/FLIGHT07' ). lcl_flight_data_generator=>lif_data_generator~create( out ). out->write( 'Generate Data: Agency /DMO/AGENCY07' ). lcl_agency_data_generator=>lif_data_generator~create( out ). out->write( 'Generate Data: Customer /DMO/CUSTOMER07' ). lcl_customer_data_generator=>lif_data_generator~create( out ). out->write( 'Generate Data: Supplement /DMO/SUPPLEME_07' ). lcl_supplement_data_generator=>lif_data_generator~create( out ). out->write( 'Generate Data: Travel /DMO/TRAVEL07' ). out->write( 'Generate Data: Booking /DMO/BOOKING07' ). out->write( 'Generate Data: Booking Supplement /DMO/BOOK_SUP_07' ). lcl_travel_data_generator=>lif_data_generator~create( out ). out->write( 'Finished Data Generation' ). ENDMETHOD. METHOD calculate_flight_price. rv_price = /dmo/cl_flight_legacy07=>calculate_flight_price( iv_seats_occupied_percent = iv_seats_occupied_percent iv_flight_distance = iv_flight_distance ). ENDMETHOD. ENDCLASS.
[ 31631, 1220, 67, 5908, 14, 565, 62, 22560, 62, 7890, 62, 8612, 265, 62, 2998, 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, 611, 62, 2238, 62, 324, 83, 62, 4871, 5143, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 366, 0, 2199, 14902, 286, 7886, 1279, 1671, 15913, 198, 220, 220, 220, 220, 220, 366, 0, 220, 1279, 1671, 15913, 198, 220, 220, 220, 220, 220, 366, 0, 8772, 363, 341, 284, 1220, 67, 5908, 14, 565, 62, 22560, 62, 1455, 1590, 2998, 14804, 9948, 3129, 378, 62, 22560, 62, 20888, 29847, 1671, 15913, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 325, 1381, 62, 28756, 62, 25067, 930, 12030, 8632, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 22560, 62, 30246, 930, 5474, 5253, 287, 11866, 263, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 374, 85, 62, 20888, 930, 10488, 5474, 2756, 198, 220, 220, 220, 220, 220, 15284, 62, 22560, 62, 20888, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 325, 1381, 62, 28756, 62, 25067, 41876, 1220, 67, 5908, 14, 14382, 62, 325, 1381, 62, 28756, 2998, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 22560, 62, 30246, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 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, 20888, 8, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 22560, 62, 20888, 2998, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1220, 67, 5908, 14, 565, 62, 22560, 62, 7890, 62, 8612, 265, 62, 2998, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 611, 62, 2238, 62, 324, 83, 62, 4871, 5143, 93, 12417, 13, 198, 220, 220, 220, 503, 3784, 13564, 7, 705, 22851, 6060, 16588, 6, 6739, 628, 220, 220, 220, 503, 3784, 13564, 7, 705, 8645, 378, 6060, 25, 12690, 220, 220, 220, 220, 220, 1220, 35, 11770, 14, 42149, 15490, 2998, 6, 6739, 198, 220, 220, 220, 300, 565, 62, 958, 634, 62, 7890, 62, 8612, 1352, 14804, 36195, 62, 7890, 62, 8612, 1352, 93, 17953, 7, 503, 6739, 628, 220, 220, 220, 503, 3784, 13564, 7, 705, 8645, 378, 6060, 25, 30252, 220, 220, 220, 220, 220, 1220, 35, 11770, 14, 20034, 7112, 1137, 2998, 6, 6739, 198, 220, 220, 220, 300, 565, 62, 7718, 5277, 62, 7890, 62, 8612, 1352, 14804, 36195, 62, 7890, 62, 8612, 1352, 93, 17953, 7, 503, 6739, 198, 220, 220, 220, 503, 3784, 13564, 7, 705, 8645, 378, 6060, 25, 26923, 220, 220, 1220, 35, 11770, 14, 10943, 48842, 40, 62, 2998, 6, 6739, 198, 220, 220, 220, 300, 565, 62, 38659, 62, 7890, 62, 8612, 1352, 14804, 36195, 62, 7890, 62, 8612, 1352, 93, 17953, 7, 503, 6739, 198, 220, 220, 220, 503, 3784, 13564, 7, 705, 8645, 378, 6060, 25, 13365, 220, 220, 220, 220, 220, 220, 1220, 35, 11770, 14, 3697, 9947, 2998, 6, 6739, 198, 220, 220, 220, 300, 565, 62, 22560, 62, 7890, 62, 8612, 1352, 14804, 36195, 62, 7890, 62, 8612, 1352, 93, 17953, 7, 503, 6739, 628, 198, 220, 220, 220, 503, 3784, 13564, 7, 705, 8645, 378, 6060, 25, 7732, 220, 220, 220, 220, 220, 220, 1220, 35, 11770, 14, 4760, 45155, 2998, 6, 6739, 198, 220, 220, 220, 300, 565, 62, 40955, 62, 7890, 62, 8612, 1352, 14804, 36195, 62, 7890, 62, 8612, 1352, 93, 17953, 7, 503, 6739, 628, 220, 220, 220, 503, 3784, 13564, 7, 705, 8645, 378, 6060, 25, 22092, 220, 220, 220, 220, 220, 1220, 35, 11770, 14, 34, 7759, 2662, 1137, 2998, 6, 6739, 198, 220, 220, 220, 300, 565, 62, 23144, 263, 62, 7890, 62, 8612, 1352, 14804, 36195, 62, 7890, 62, 8612, 1352, 93, 17953, 7, 503, 6739, 628, 220, 220, 220, 503, 3784, 13564, 7, 705, 8645, 378, 6060, 25, 23150, 220, 220, 220, 220, 220, 1220, 35, 11770, 14, 40331, 16437, 11682, 62, 2998, 6, 6739, 198, 220, 220, 220, 300, 565, 62, 18608, 1732, 62, 7890, 62, 8612, 1352, 14804, 36195, 62, 7890, 62, 8612, 1352, 93, 17953, 7, 503, 6739, 628, 220, 220, 220, 503, 3784, 13564, 7, 705, 8645, 378, 6060, 25, 13524, 220, 220, 220, 220, 220, 1220, 35, 11770, 14, 51, 3861, 18697, 2998, 6, 6739, 198, 220, 220, 220, 503, 3784, 13564, 7, 705, 8645, 378, 6060, 25, 4897, 278, 220, 220, 220, 220, 220, 1220, 35, 11770, 14, 39453, 2751, 2998, 6, 6739, 198, 220, 220, 220, 503, 3784, 13564, 7, 705, 8645, 378, 6060, 25, 4897, 278, 23150, 220, 220, 220, 220, 220, 1220, 35, 11770, 14, 39453, 62, 40331, 62, 2998, 6, 6739, 198, 220, 220, 220, 300, 565, 62, 35927, 62, 7890, 62, 8612, 1352, 14804, 36195, 62, 7890, 62, 8612, 1352, 93, 17953, 7, 503, 6739, 628, 220, 220, 220, 503, 3784, 13564, 7, 705, 18467, 1348, 6060, 16588, 6, 6739, 198, 220, 23578, 49273, 13, 198, 220, 337, 36252, 15284, 62, 22560, 62, 20888, 13, 198, 220, 220, 220, 374, 85, 62, 20888, 796, 1220, 67, 5908, 14, 565, 62, 22560, 62, 1455, 1590, 2998, 14804, 9948, 3129, 378, 62, 22560, 62, 20888, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 325, 1381, 62, 28756, 62, 25067, 796, 21628, 62, 325, 1381, 62, 28756, 62, 25067, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 22560, 62, 30246, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 22560, 62, 30246, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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,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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 ]
CLASS zcl_app_html_paragraph DEFINITION PUBLIC INHERITING FROM zca_app_html FINAL CREATE PRIVATE. PUBLIC SECTION. PROTECTED SECTION. METHODS: parse REDEFINITION. PRIVATE SECTION. METHODS: constructor. ENDCLASS. CLASS zcl_app_html_paragraph IMPLEMENTATION. METHOD constructor. super->constructor( zif_app_html=>tags-paragraph ). ENDMETHOD. METHOD parse. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 1324, 62, 6494, 62, 20360, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 6888, 62, 1324, 62, 6494, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 13, 628, 220, 44731, 44513, 13, 628, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 21136, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 1324, 62, 6494, 62, 20360, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 1976, 361, 62, 1324, 62, 6494, 14804, 31499, 12, 20360, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 21136, 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 ]
*"* use this source file for any type of declarations (class *"* definitions, interfaces or type declarations) you need for *"* components in the private section CLASS lcl_helper DEFINITION FINAL. PUBLIC SECTION. DATA: " Owner class mo_eui_alv TYPE REF TO zcl_eui_alv, ms_field_desc TYPE REF TO zcl_eui_type=>ts_field_desc, " Own field catalog mt_sub_field TYPE zcl_eui_type=>tt_field_desc, " F4 & dropdown mt_f4_table TYPE zcl_eui_alv=>tt_f4_table, mv_drdn_hndl TYPE i, " Own table mr_table TYPE REF TO data, " TOP_OF_PAGE mv_top_of_page_height TYPE i, mo_dyndoc TYPE REF TO cl_dd_document. METHODS: constructor IMPORTING io_eui_alv TYPE REF TO zcl_eui_alv, set_field_desc IMPORTING is_field_desc TYPE REF TO zcl_eui_type=>ts_field_desc, prepare_layout CHANGING cs_layout TYPE lvc_s_layo, prepare_variant CHANGING cs_variant TYPE disvariant, get_field_catalog RETURNING VALUE(rt_fieldcat) TYPE lvc_t_fcat, is_editable RETURNING VALUE(rv_editable) TYPE abap_bool, pbo_init IMPORTING io_container TYPE REF TO cl_gui_container, after_close IMPORTING iv_close_cmd TYPE syucomm CHANGING cv_close TYPE abap_bool, on_data_changed FOR EVENT data_changed OF cl_gui_alv_grid IMPORTING sender er_data_changed e_onf4 e_onf4_before e_onf4_after e_ucomm, on_data_changed_finished FOR EVENT data_changed_finished OF cl_gui_alv_grid IMPORTING sender e_modified et_good_cells, on_double_click FOR EVENT double_click OF cl_gui_alv_grid IMPORTING sender e_row e_column es_row_no, on_hotspot_click FOR EVENT hotspot_click OF cl_gui_alv_grid IMPORTING sender e_row_id e_column_id es_row_no, on_toolbar FOR EVENT toolbar OF cl_gui_alv_grid IMPORTING sender e_object e_interactive, on_menu_button FOR EVENT menu_button OF cl_gui_alv_grid IMPORTING sender e_object e_ucomm, on_top_of_page FOR EVENT top_of_page OF cl_gui_alv_grid IMPORTING sender e_dyndoc_id table_index, on_user_command FOR EVENT user_command OF cl_gui_alv_grid IMPORTING sender e_ucomm, on_button_click FOR EVENT button_click OF cl_gui_alv_grid IMPORTING sender es_col_id es_row_no, on_after_refresh FOR EVENT after_refresh OF cl_gui_alv_grid IMPORTING sender, on_context_menu_request FOR EVENT context_menu_request OF cl_gui_alv_grid IMPORTING sender e_object, on_f4 FOR EVENT onf4 OF cl_gui_alv_grid IMPORTING sender e_fieldname e_fieldvalue es_row_no er_event_data et_bad_cells e_display, on_delayed_changed_selection FOR EVENT delayed_changed_sel_callback OF cl_gui_alv_grid IMPORTING sender, _check_f4_table IMPORTING io_grid TYPE REF TO cl_gui_alv_grid CHANGING ct_fieldcat TYPE lvc_t_fcat, _self_f4 IMPORTING io_grid TYPE REF TO cl_gui_alv_grid iv_fieldname TYPE csequence is_row_no TYPE lvc_s_roid RETURNING VALUE(rv_self) TYPE abap_bool, _get_std_table IMPORTING ir_ant_table TYPE REF TO data EXPORTING er_std_table TYPE REF TO data et_std_field TYPE tttext255, _fill_std_corresponding IMPORTING ir_any_f4_table TYPE REF TO data ir_std_f4_table TYPE REF TO data. ENDCLASS. CLASS zcl_eui_alv DEFINITION LOCAL FRIENDS lcl_helper.
[ 9, 1, 9, 779, 428, 2723, 2393, 329, 597, 2099, 286, 31713, 357, 4871, 198, 9, 1, 9, 17336, 11, 20314, 393, 2099, 31713, 8, 345, 761, 329, 198, 9, 1, 9, 6805, 287, 262, 2839, 2665, 198, 198, 31631, 300, 565, 62, 2978, 525, 5550, 20032, 17941, 25261, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 366, 23853, 1398, 198, 220, 220, 220, 220, 220, 6941, 62, 68, 9019, 62, 282, 85, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 68, 9019, 62, 282, 85, 11, 198, 220, 220, 220, 220, 220, 13845, 62, 3245, 62, 20147, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 68, 9019, 62, 4906, 14804, 912, 62, 3245, 62, 20147, 11, 628, 220, 220, 220, 220, 220, 366, 11744, 2214, 18388, 198, 220, 220, 220, 220, 220, 45079, 62, 7266, 62, 3245, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 565, 62, 68, 9019, 62, 4906, 14804, 926, 62, 3245, 62, 20147, 11, 628, 220, 220, 220, 220, 220, 366, 376, 19, 1222, 4268, 2902, 198, 220, 220, 220, 220, 220, 45079, 62, 69, 19, 62, 11487, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 565, 62, 68, 9019, 62, 282, 85, 14804, 926, 62, 69, 19, 62, 11487, 11, 198, 220, 220, 220, 220, 220, 285, 85, 62, 67, 4372, 77, 62, 71, 358, 75, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 628, 220, 220, 220, 220, 220, 366, 11744, 3084, 198, 220, 220, 220, 220, 220, 285, 81, 62, 11487, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1366, 11, 628, 220, 220, 220, 220, 220, 366, 28662, 62, 19238, 62, 4537, 8264, 198, 220, 220, 220, 220, 220, 285, 85, 62, 4852, 62, 1659, 62, 7700, 62, 17015, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 6941, 62, 9892, 358, 420, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 1860, 62, 22897, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 68, 9019, 62, 282, 85, 41876, 4526, 37, 5390, 1976, 565, 62, 68, 9019, 62, 282, 85, 11, 628, 220, 220, 220, 220, 220, 900, 62, 3245, 62, 20147, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 3245, 62, 20147, 41876, 4526, 37, 5390, 1976, 565, 62, 68, 9019, 62, 4906, 14804, 912, 62, 3245, 62, 20147, 11, 628, 220, 220, 220, 220, 220, 8335, 62, 39786, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 39786, 41876, 300, 28435, 62, 82, 62, 10724, 78, 11, 628, 220, 220, 220, 220, 220, 8335, 62, 25641, 415, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 25641, 415, 41876, 595, 25641, 415, 11, 628, 220, 220, 220, 220, 220, 651, 62, 3245, 62, 9246, 11794, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 17034, 62, 3245, 9246, 8, 41876, 300, 28435, 62, 83, 62, 69, 9246, 11, 628, 220, 220, 220, 220, 220, 318, 62, 276, 4674, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 276, 4674, 8, 41876, 450, 499, 62, 30388, 11, 628, 220, 220, 220, 220, 220, 279, 2127, 62, 15003, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 34924, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 34924, 11, 628, 220, 220, 220, 220, 220, 706, 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, 19836, 62, 28758, 41876, 827, 84, 9503, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 85, 62, 19836, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 628, 220, 220, 220, 220, 220, 319, 62, 7890, 62, 40985, 7473, 49261, 1366, 62, 40985, 3963, 537, 62, 48317, 62, 282, 85, 62, 25928, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29788, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1931, 62, 7890, 62, 40985, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 304, 62, 261, 69, 19, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 304, 62, 261, 69, 19, 62, 19052, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 304, 62, 261, 69, 19, 62, 8499, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 304, 62, 84, 9503, 11, 628, 220, 220, 220, 220, 220, 319, 62, 7890, 62, 40985, 62, 43952, 7473, 49261, 1366, 62, 40985, 62, 43952, 3963, 537, 62, 48317, 62, 282, 85, 62, 25928, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29788, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 304, 62, 41771, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2123, 62, 11274, 62, 46342, 11, 628, 220, 220, 220, 220, 220, 319, 62, 23352, 62, 12976, 7473, 49261, 4274, 62, 12976, 3963, 537, 62, 48317, 62, 282, 85, 62, 25928, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29788, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 304, 62, 808 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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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PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_ENSC IMPLEMENTATION. METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. " todo ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_spot_name TYPE enhspotcompositename, lv_message TYPE string, lx_root TYPE REF TO cx_root, li_spot_ref TYPE REF TO if_enh_spot_composite. lv_spot_name = ms_item-obj_name. TRY. li_spot_ref = cl_enh_factory=>get_enhancement_spot_comp( lock = 'X' name = lv_spot_name ). IF li_spot_ref IS BOUND. li_spot_ref->if_enh_object~delete( nevertheless_delete = 'X' run_dark = 'X' ). ENDIF. li_spot_ref->if_enh_object~unlock( ). CATCH cx_enh_root INTO lx_root. lv_message = `Error occured while deleting ENSC: ` && lx_root->get_text( ) ##NO_TEXT. zcx_abapgit_exception=>raise( lv_message ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lv_spot_name TYPE enhspotcompositename, lv_message TYPE string, lv_enh_shtext TYPE string, lv_enh_spot TYPE enhspotname, lt_enh_spots TYPE enhspotname_it, lt_comp_spots TYPE enhspotname_it, lx_root TYPE REF TO cx_root, lv_package LIKE iv_package, li_spot_ref TYPE REF TO if_enh_spot_composite, lo_spot_ref TYPE REF TO cl_enh_spot_composite. lv_spot_name = ms_item-obj_name. io_xml->read( EXPORTING iv_name = 'SHORTTEXT' CHANGING cg_data = lv_enh_shtext ). io_xml->read( EXPORTING iv_name = 'ENH_SPOTS' "Enhancement spots CHANGING cg_data = lt_enh_spots ). io_xml->read( EXPORTING iv_name = 'COMP_ENH_SPOTS' "Composite enhancement spots CHANGING cg_data = lt_comp_spots ). IF zif_abapgit_object~exists( ) = abap_true. zif_abapgit_object~delete( ). ENDIF. lv_package = iv_package. TRY. cl_enh_factory=>create_enhancement_spot_comp( EXPORTING name = lv_spot_name run_dark = abap_true IMPORTING composite = li_spot_ref CHANGING devclass = lv_package ). lo_spot_ref ?= li_spot_ref. lo_spot_ref->if_enh_object_docu~set_shorttext( lv_enh_shtext ). "Add subsequent enhancement spots LOOP AT lt_enh_spots INTO lv_enh_spot. lo_spot_ref->if_enh_spot_composite~add_enh_spot_child( lv_enh_spot ). ENDLOOP. "Add subsequent composite enhancement spots LOOP AT lt_comp_spots INTO lv_enh_spot. lo_spot_ref->if_enh_spot_composite~add_composite_child( lv_enh_spot ). ENDLOOP. lo_spot_ref->if_enh_object~save( ). lo_spot_ref->if_enh_object~activate( ). lo_spot_ref->if_enh_object~unlock( ). CATCH cx_enh_root INTO lx_root. lv_message = `Error occured while deserializing ENSC: ` && lx_root->get_text( ) ##NO_TEXT. zcx_abapgit_exception=>raise( lv_message ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_spot_name TYPE enhspotcompositename. lv_spot_name = ms_item-obj_name. TRY. cl_enh_factory=>get_enhancement_spot_comp( lock = '' name = lv_spot_name ). rv_bool = abap_true. CATCH cx_enh_root. rv_bool = abap_false. ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = abap_false. ENDMETHOD. METHOD zif_abapgit_object~jump. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ms_item-obj_name object_type = 'ENSC' in_new_window = abap_true. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_spot_name TYPE enhspotcompositename, lv_message TYPE string, lv_enh_shtext TYPE string, lt_enh_spots TYPE enhspotname_it, lt_comp_spots TYPE enhspotname_it, lx_root TYPE REF TO cx_root, li_spot_ref TYPE REF TO if_enh_spot_composite, lo_spot_ref TYPE REF TO cl_enh_spot_composite. lv_spot_name = ms_item-obj_name. TRY. li_spot_ref = cl_enh_factory=>get_enhancement_spot_comp( lock = '' name = lv_spot_name ). lo_spot_ref ?= li_spot_ref. lv_enh_shtext = li_spot_ref->if_enh_object_docu~get_shorttext( ). "find subsequent enhancement spots lt_enh_spots = lo_spot_ref->if_enh_spot_composite~get_enh_spot_childs( ). "find subsequent composite enhancement spots lt_comp_spots = lo_spot_ref->if_enh_spot_composite~get_composite_childs( ). io_xml->add( ig_data = lv_enh_shtext iv_name = 'SHORTTEXT' ). io_xml->add( ig_data = lt_enh_spots iv_name = 'ENH_SPOTS' ). "Enhancement spots io_xml->add( ig_data = lt_comp_spots iv_name = 'COMP_ENH_SPOTS' ). "Composite enhancement spots CATCH cx_enh_root INTO lx_root. lv_message = `Error occured while serializing ENSC: ` && lx_root->get_text( ) ##NO_TEXT. zcx_abapgit_exception=>raise( lv_message ). ENDTRY. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 641, 66, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 1677, 6173, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 198, 220, 220, 220, 374, 85, 62, 7220, 796, 269, 62, 7220, 62, 34680, 13, 366, 284, 4598, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 33678, 13, 198, 220, 220, 220, 42865, 25, 300, 85, 62, 20485, 62, 3672, 41876, 5881, 20485, 785, 1930, 270, 12453, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 20500, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 87, 62, 15763, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 43213, 62, 15763, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 20485, 62, 5420, 220, 41876, 4526, 37, 5390, 611, 62, 16550, 62, 20485, 62, 785, 1930, 578, 13, 628, 220, 220, 220, 300, 85, 62, 20485, 62, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 20485, 62, 5420, 796, 537, 62, 16550, 62, 69, 9548, 14804, 1136, 62, 16550, 590, 434, 62, 20485, 62, 5589, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5793, 796, 705, 55, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 796, 300, 85, 62, 20485, 62, 3672, 6739, 628, 220, 220, 220, 220, 220, 220, 220, 16876, 7649, 62, 20485, 62, 5420, 3180, 347, 15919, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 20485, 62, 5420, 3784, 361, 62, 16550, 62, 15252, 93, 33678, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19032, 62, 33678, 796, 705, 55, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1057, 62, 21953, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 55, 6, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 20485, 62, 5420, 3784, 361, 62, 16550, 62, 15252, 93, 403, 5354, 7, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 16550, 62, 15763, 39319, 300, 87, 62, 15763, 13, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 20500, 796, 4600, 12331, 1609, 1522, 981, 34817, 12964, 6173, 25, 4600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11405, 300, 87, 62, 15763, 3784, 1136, 62, 5239, 7, 1267, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 300, 85, 62, 20500, 6739, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 8906, 48499, 1096, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 20485, 62, 3672, 220, 41876, 5881, 20485, 785, 1930, 270, 12453, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 20500, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 16550, 62, 1477, 5239, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 16550, 62, 20485, 220, 220, 41876, 5881, 20485, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 16550, 62, 2777, 1747, 220, 41876, 5881, 20485, 3672, 62, 270, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 5589, 62, 2777, 1747, 41876, 5881, 20485, 3672, 62, 270, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 87, 62, 15763, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 43213, 62, 15763, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 26495, 220, 220, 220, 34178, 21628, 62, 26495, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 20485, 62, 5420, 220, 220, 41876, 4526, 37, 5390, 611, 62, 16550, 62, 20485, 62, 785, 1930, 578, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 20485, 62, 5420, 220, 220, 41876, 4526, 37, 5390, 537, 62, 16550, 62, 20485, 62, 785, 1930, 578, 13, 628, 198, 220, 220, 220, 300, 85, 62, 20485, 62, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 9693, 9863, 32541, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 7890, 796, 300, 85, 62, 16550, 62, 1477, 5239, 6739, 198, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 1677, 39, 62, 4303, 33472, 6, 220, 220, 220, 220, 366, 35476, 590, 434, 10222, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 7890, 796, 300, 83, 62, 16550, 62, 2777, 1747, 6739, 198, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 9858, 47 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS /dmo/tc_flight_travel_api02 DEFINITION PUBLIC ABSTRACT CREATE PUBLIC FOR TESTING DURATION MEDIUM RISK LEVEL HARMLESS . PUBLIC SECTION. PROTECTED SECTION. METHODS cuerd_travel FOR TESTING RAISING cx_static_check. PRIVATE SECTION. CLASS-DATA gv_agency_id_1 TYPE /dmo/agency_id02. CLASS-DATA gv_agency_id_2 TYPE /dmo/agency_id02. CLASS-DATA gv_agency_id_unknown TYPE /dmo/agency_id02. CLASS-DATA gv_customer_id_1 TYPE /dmo/customer_id02. CLASS-DATA gv_customer_id_2 TYPE /dmo/customer_id02. CLASS-DATA gv_customer_id_unknown TYPE /dmo/customer_id02. CLASS-METHODS class_setup. ENDCLASS. CLASS /dmo/tc_flight_travel_api02 IMPLEMENTATION. METHOD class_setup. DATA lt_agency_id TYPE SORTED TABLE OF /dmo/agency_id02 WITH UNIQUE KEY table_line. SELECT DISTINCT agency_id FROM /dmo/agency02 ORDER BY agency_id DESCENDING INTO TABLE @lt_agency_id . DATA lt_customer_id TYPE SORTED TABLE OF /dmo/customer_id02 WITH UNIQUE KEY table_line. SELECT DISTINCT customer_id FROM /dmo/customer02 ORDER BY customer_id DESCENDING INTO TABLE @lt_customer_id . " Select 2 known agency IDs IF lines( lt_agency_id ) < 2. cl_abap_unit_assert=>abort( msg = 'No agency data!' ). ENDIF. gv_agency_id_1 = lt_agency_id[ 1 ]. gv_agency_id_2 = lt_agency_id[ 2 ]. cl_abap_unit_assert=>assert_differs( act = gv_agency_id_1 exp = gv_agency_id_2 )." To be totally sure " Select 2 known customer IDs IF lines( lt_customer_id ) < 2. cl_abap_unit_assert=>abort( msg = 'No customer data!' ). ENDIF. gv_customer_id_1 = lt_customer_id[ 1 ]. gv_customer_id_2 = lt_customer_id[ 2 ]. cl_abap_unit_assert=>assert_differs( act = gv_customer_id_1 exp = gv_customer_id_2 )." To be totally sure " Determine an unknown agency ID gv_agency_id_unknown = lt_agency_id[ 1 ]. DO. gv_agency_id_unknown = gv_agency_id_unknown + 1. READ TABLE lt_agency_id TRANSPORTING NO FIELDS WITH TABLE KEY table_line = gv_agency_id_unknown. IF sy-subrc <> 0. EXIT. ENDIF. ENDDO. " Determine an unknown customer ID gv_customer_id_unknown = lt_customer_id[ 1 ]. DO. gv_customer_id_unknown = gv_customer_id_unknown + 1. READ TABLE lt_customer_id TRANSPORTING NO FIELDS WITH TABLE KEY table_line = gv_customer_id_unknown. IF sy-subrc <> 0. EXIT. ENDIF. ENDDO. ENDMETHOD. METHOD cuerd_travel. DATA ls_travel_in TYPE /dmo/if_flight_legacy02=>ts_travel_in. DATA ls_travel_inx TYPE /dmo/if_flight_legacy02=>ts_travel_inx. DATA ls_travel TYPE /dmo/travel02. DATA lt_messages TYPE /dmo/if_flight_legacy02=>tt_message. " Create Travel and Commit ls_travel_in-agency_id = gv_agency_id_1. ls_travel_in-customer_id = gv_customer_id_1. ls_travel_in-begin_date = '20180101'. ls_travel_in-end_date = '20180201'. ls_travel_in-description = 'My Test'. CALL FUNCTION '/DMO/FLIGHT_TRAVEL_CREATE02' EXPORTING is_travel = ls_travel_in IMPORTING es_travel = ls_travel et_messages = lt_messages. cl_abap_unit_assert=>assert_initial( lt_messages ). DATA(lv_travel_id) = ls_travel-travel_id. cl_abap_unit_assert=>assert_not_initial( lv_travel_id ). CALL FUNCTION '/DMO/FLIGHT_TRAVEL_SAVE02'. " DB Check SELECT SINGLE agency_id, customer_id, description FROM /dmo/travel02 WHERE travel_id = @lv_travel_id INTO ( @DATA(lv_agency_id), @DATA(lv_customer_id), @DATA(lv_description) ). cl_abap_unit_assert=>assert_subrc( ). cl_abap_unit_assert=>assert_equals( act = lv_agency_id exp = gv_agency_id_1 ). cl_abap_unit_assert=>assert_equals( act = lv_customer_id exp = gv_customer_id_1 ). cl_abap_unit_assert=>assert_equals( act = lv_description exp = 'My Test' ). " Update CLEAR ls_travel_in. ls_travel_in-travel_id = lv_travel_id. ls_travel_in-agency_id = gv_agency_id_2. ls_travel_in-customer_id = gv_customer_id_2. ls_travel_in-description = 'My New Test'. ls_travel_inx-travel_id = lv_travel_id. ls_travel_inx-agency_id = abap_true. ls_travel_inx-customer_id = abap_true. ls_travel_inx-description = abap_true. CALL FUNCTION '/DMO/FLIGHT_TRAVEL_UPDATE02' EXPORTING is_travel = ls_travel_in is_travelx = ls_travel_inx IMPORTING et_messages = lt_messages. cl_abap_unit_assert=>assert_initial( lt_messages ). " Action CALL FUNCTION '/DMO/FLIGHT_TRAVEL_SET_BOOK_02' EXPORTING iv_travel_id = lv_travel_id IMPORTING et_messages = lt_messages. cl_abap_unit_assert=>assert_initial( lt_messages ). " Faulty Update - All or Nothing -> Nothing CLEAR ls_travel_in. ls_travel_in-travel_id = lv_travel_id. ls_travel_in-agency_id = gv_agency_id_unknown. ls_travel_in-customer_id = gv_customer_id_1. ls_travel_inx-travel_id = lv_travel_id. ls_travel_inx-agency_id = abap_true. ls_travel_inx-customer_id = abap_true. CALL FUNCTION '/DMO/FLIGHT_TRAVEL_UPDATE02' EXPORTING is_travel = ls_travel_in is_travelx = ls_travel_inx IMPORTING et_messages = lt_messages. cl_abap_unit_assert=>assert_not_initial( lt_messages ). " Faulty Update - All or Nothing -> Nothing CLEAR lt_messages. CLEAR ls_travel_in. ls_travel_in-travel_id = lv_travel_id. ls_travel_in-agency_id = gv_agency_id_1. ls_travel_in-customer_id = gv_customer_id_unknown. ls_travel_inx-travel_id = lv_travel_id. ls_travel_inx-agency_id = abap_true. ls_travel_inx-customer_id = abap_true. CALL FUNCTION '/DMO/FLIGHT_TRAVEL_UPDATE02' EXPORTING is_travel = ls_travel_in is_travelx = ls_travel_inx IMPORTING et_messages = lt_messages. cl_abap_unit_assert=>assert_not_initial( lt_messages ). " Read DB only CLEAR ls_travel. CALL FUNCTION '/DMO/FLIGHT_TRAVEL_READ02' EXPORTING iv_travel_id = lv_travel_id iv_include_buffer = abap_false IMPORTING es_travel = ls_travel et_messages = lt_messages. cl_abap_unit_assert=>assert_initial( lt_messages ). cl_abap_unit_assert=>assert_equals( act = ls_travel-travel_id exp = lv_travel_id ). cl_abap_unit_assert=>assert_equals( act = ls_travel-agency_id exp = gv_agency_id_1 ). cl_abap_unit_assert=>assert_equals( act = ls_travel-customer_id exp = gv_customer_id_1 ). cl_abap_unit_assert=>assert_equals( act = ls_travel-status exp = CONV /dmo/travel_status02( /dmo/if_flight_legacy02=>travel_status-new ) ). cl_abap_unit_assert=>assert_equals( act = ls_travel-description exp = 'My Test' ). " Read with buffer CLEAR ls_travel. CALL FUNCTION '/DMO/FLIGHT_TRAVEL_READ02' EXPORTING iv_travel_id = lv_travel_id iv_include_buffer = abap_true IMPORTING es_travel = ls_travel et_messages = lt_messages. cl_abap_unit_assert=>assert_initial( lt_messages ). cl_abap_unit_assert=>assert_equals( act = ls_travel-travel_id exp = lv_travel_id ). cl_abap_unit_assert=>assert_equals( act = ls_travel-agency_id exp = gv_agency_id_2 ). cl_abap_unit_assert=>assert_equals( act = ls_travel-customer_id exp = gv_customer_id_2 ). cl_abap_unit_assert=>assert_equals( act = ls_travel-status exp = CONV /dmo/travel_status02( /dmo/if_flight_legacy02=>travel_status-booked ) ). cl_abap_unit_assert=>assert_equals( act = ls_travel-description exp = 'My New Test' ). " Delete CALL FUNCTION '/DMO/FLIGHT_TRAVEL_DELETE02' EXPORTING iv_travel_id = lv_travel_id IMPORTING et_messages = lt_messages. cl_abap_unit_assert=>assert_initial( lt_messages ). " Delete again -> Error CALL FUNCTION '/DMO/FLIGHT_TRAVEL_DELETE02' EXPORTING iv_travel_id = lv_travel_id IMPORTING et_messages = lt_messages. cl_abap_unit_assert=>assert_not_initial( lt_messages ). CALL FUNCTION '/DMO/FLIGHT_TRAVEL_SAVE02'. ENDMETHOD. ENDCLASS.
[ 31631, 1220, 67, 5908, 14, 23047, 62, 22560, 62, 35927, 62, 15042, 2999, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 9564, 18601, 10659, 198, 220, 29244, 6158, 44731, 198, 220, 7473, 43001, 2751, 198, 220, 360, 4261, 6234, 26112, 41796, 198, 220, 45698, 42, 49277, 43638, 5805, 7597, 764, 628, 220, 44731, 44513, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 269, 15573, 67, 62, 35927, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42715, 12, 26947, 308, 85, 62, 40955, 62, 312, 62, 16, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 40955, 62, 312, 2999, 13, 198, 220, 220, 220, 42715, 12, 26947, 308, 85, 62, 40955, 62, 312, 62, 17, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 40955, 62, 312, 2999, 13, 198, 220, 220, 220, 42715, 12, 26947, 308, 85, 62, 40955, 62, 312, 62, 34680, 220, 220, 41876, 1220, 67, 5908, 14, 40955, 62, 312, 2999, 13, 628, 220, 220, 220, 42715, 12, 26947, 308, 85, 62, 23144, 263, 62, 312, 62, 16, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 23144, 263, 62, 312, 2999, 13, 198, 220, 220, 220, 42715, 12, 26947, 308, 85, 62, 23144, 263, 62, 312, 62, 17, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 23144, 263, 62, 312, 2999, 13, 198, 220, 220, 220, 42715, 12, 26947, 308, 85, 62, 23144, 263, 62, 312, 62, 34680, 41876, 1220, 67, 5908, 14, 23144, 263, 62, 312, 2999, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 1398, 62, 40406, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1220, 67, 5908, 14, 23047, 62, 22560, 62, 35927, 62, 15042, 2999, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 1398, 62, 40406, 13, 198, 220, 220, 220, 42865, 300, 83, 62, 40955, 62, 312, 41876, 311, 9863, 1961, 43679, 3963, 1220, 67, 5908, 14, 40955, 62, 312, 2999, 220, 220, 220, 220, 13315, 4725, 33866, 8924, 35374, 3084, 62, 1370, 13, 198, 220, 220, 220, 33493, 360, 8808, 1268, 4177, 4086, 62, 312, 16034, 1220, 67, 5908, 14, 40955, 2999, 220, 220, 220, 220, 38678, 11050, 4086, 62, 312, 220, 220, 22196, 34, 10619, 2751, 39319, 43679, 2488, 2528, 62, 40955, 62, 312, 764, 628, 220, 220, 220, 42865, 300, 83, 62, 23144, 263, 62, 312, 41876, 311, 9863, 1961, 43679, 3963, 1220, 67, 5908, 14, 23144, 263, 62, 312, 2999, 13315, 4725, 33866, 8924, 35374, 3084, 62, 1370, 13, 198, 220, 220, 220, 33493, 360, 8808, 1268, 4177, 6491, 62, 312, 16034, 1220, 67, 5908, 14, 23144, 263, 2999, 38678, 11050, 6491, 62, 312, 22196, 34, 10619, 2751, 39319, 43679, 2488, 2528, 62, 23144, 263, 62, 312, 764, 628, 220, 220, 220, 366, 9683, 362, 1900, 4086, 32373, 198, 220, 220, 220, 16876, 3951, 7, 300, 83, 62, 40955, 62, 312, 1267, 1279, 362, 13, 198, 220, 220, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 397, 419, 7, 31456, 796, 705, 2949, 4086, 1366, 13679, 220, 220, 6739, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 308, 85, 62, 40955, 62, 312, 62, 16, 796, 300, 83, 62, 40955, 62, 312, 58, 352, 20740, 198, 220, 220, 220, 308, 85, 62, 40955, 62, 312, 62, 17, 796, 300, 83, 62, 40955, 62, 312, 58, 362, 20740, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 26069, 364, 7, 719, 796, 308, 85, 62, 40955, 62, 312, 62, 16, 220, 1033, 796, 308, 85, 62, 40955, 62, 312, 62, 17, 1267, 526, 1675, 307, 6635, 1654, 628, 220, 220, 220, 366, 9683, 362, 1900, 6491, 32373, 198, 220, 220, 220, 16876, 3951, 7, 300, 83, 62, 23144, 263, 62, 312, 1267, 1279, 362, 13, 198, 220, 220, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 397, 419, 7, 31456, 796, 705, 2949, 6491, 1366, 13679, 6739, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 308, 85, 62, 23144, 263, 62, 312, 62, 16, 796, 300, 83, 62, 23144, 263, 62, 312, 58, 352, 20740, 198, 220, 220, 220, 308, 85, 62, 23144, 263, 62, 312, 62, 17, 796, 300, 83, 62, 23144, 263, 62, 312, 58, 362, 20740, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 26069, 364, 7, 719, 796, 308, 85, 62, 23144, 263, 62, 312, 62, 16, 220, 1033, 796, 308, 85, 62, 23144, 263, 62, 312, 62, 17, 1267, 526, 1675, 307, 6635, 1654, 628, 220, 220, 220, 366, 45559, 3810, 281, 6439, 4086, 4522, 198, 220, 220, 220, 308, 85, 62, 40955, 62, 312, 62, 34680, 796, 300, 83, 62, 40955, 62, 312, 58, 352, 20740, 198, 220, 220, 220, 8410, 13, 198, 220, 220, 220, 220, 220, 308, 85, 62, 40955, 62, 312, 62, 34680, 796, 308, 85, 62, 40955, 62, 312, 62, 34680, 1343, 352, 13, 198, 220, 220, 220, 220, 220, 20832, 43679, 300, 83, 62, 40955, 62, 312, 220, 220, 48213, 4303, 9863, 2751, 8005, 18930, 3698, 5258, 13315, 43679, 35374, 3084, 62, 1370, 796, 308, 85, 62, 40955, 62, 312, 62, 34680, 13, 198, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 2043, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 18227, 13, 628, 220, 220, 220, 366, 45559, 3810, 281, 6439, 6491, 4522, 198, 220, 220, 220, 308, 85, 62, 23144, 263, 62, 312, 62, 34680, 796, 300, 83, 62, 23144, 263, 62, 312, 58, 352, 20740, 198, 220, 220, 220, 8410, 13, 198, 220, 220, 220, 220, 220, 308, 85, 62, 23144, 263, 62, 312, 62, 34680, 796, 308, 85, 62, 23144, 263, 62, 312, 62, 34680, 1343, 352, 13, 198, 220, 220, 220, 220, 220, 20832, 43679, 300, 83, 62, 23144, 263, 62, 312, 48213, 4303, 9863, 2751, 8005, 18930 ]
[ 1, 1, 1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cl_abapgit_gui_page_code_insp DEFINITION PUBLIC FINAL CREATE PUBLIC INHERITING FROM zcl_abapgit_gui_page_codi_base. PUBLIC SECTION. INTERFACES: zif_abapgit_gui_page_hotkey. METHODS: constructor IMPORTING io_repo TYPE REF TO zcl_abapgit_repo io_stage TYPE REF TO zcl_abapgit_stage OPTIONAL RAISING zcx_abapgit_exception, zif_abapgit_gui_page~on_event REDEFINITION, zif_abapgit_gui_page~render REDEFINITION. PROTECTED SECTION. METHODS: render_content REDEFINITION. PRIVATE SECTION. CONSTANTS: BEGIN OF c_actions, stage TYPE string VALUE 'stage' ##NO_TEXT, commit TYPE string VALUE 'commit' ##NO_TEXT, rerun TYPE string VALUE 'rerun' ##NO_TEXT, END OF c_actions. DATA: mo_stage TYPE REF TO zcl_abapgit_stage. METHODS: build_menu RETURNING VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar RAISING zcx_abapgit_exception, run_code_inspector RAISING zcx_abapgit_exception, has_inspection_errors RETURNING VALUE(rv_has_inspection_errors) TYPE abap_bool, is_stage_allowed RETURNING VALUE(rv_is_stage_allowed) TYPE abap_bool. ENDCLASS. CLASS ZCL_ABAPGIT_GUI_PAGE_CODE_INSP IMPLEMENTATION. METHOD build_menu. DATA: lv_opt TYPE c LENGTH 1. CREATE OBJECT ro_menu. ro_menu->add( iv_txt = 'Re-Run' iv_act = c_actions-rerun iv_cur = abap_false ) ##NO_TEXT. IF is_stage_allowed( ) = abap_false. lv_opt = zif_abapgit_definitions=>c_html_opt-crossout. ENDIF. IF mo_repo->is_offline( ) = abap_true. RETURN. ENDIF. IF mo_stage IS BOUND. " Staging info already available, we can directly " offer to commit ro_menu->add( iv_txt = 'Commit' iv_act = c_actions-commit iv_cur = abap_false iv_opt = lv_opt ) ##NO_TEXT. ELSE. ro_menu->add( iv_txt = 'Stage' iv_act = c_actions-stage iv_cur = abap_false iv_opt = lv_opt ) ##NO_TEXT. ENDIF. ENDMETHOD. METHOD constructor. super->constructor( ). mo_repo ?= io_repo. mo_stage = io_stage. ms_control-page_title = 'Code Inspector'. run_code_inspector( ). ENDMETHOD. METHOD has_inspection_errors. READ TABLE mt_result TRANSPORTING NO FIELDS WITH KEY kind = 'E'. rv_has_inspection_errors = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD is_stage_allowed. rv_is_stage_allowed = boolc( NOT ( mo_repo->get_local_settings( )-block_commit = abap_true AND has_inspection_errors( ) = abap_true ) ). ENDMETHOD. METHOD render_content. DATA: lv_check_variant TYPE sci_chkv. FIELD-SYMBOLS: <ls_result> TYPE scir_alvlist. CREATE OBJECT ro_html. lv_check_variant = mo_repo->get_local_settings( )-code_inspector_check_variant. IF lv_check_variant IS INITIAL. ro_html->add( |No check variant maintained in repo settings.| ). RETURN. ENDIF. ro_html->add( '<div class="toc"><br/>' ). ro_html->add( |Code inspector check variant: { mo_repo->get_local_settings( )-code_inspector_check_variant }<br/>| ). IF lines( mt_result ) = 0. ro_html->add( '<br/><div class="success">No code inspector findings</div>' ). ENDIF. ro_html->add( |<br/>| ). LOOP AT mt_result ASSIGNING <ls_result>. render_result( io_html = ro_html iv_result = <ls_result> ). ENDLOOP. ro_html->add( '</div>' ). ENDMETHOD. METHOD run_code_inspector. mt_result = mo_repo->run_code_inspector( ). ENDMETHOD. METHOD zif_abapgit_gui_page_hotkey~get_hotkey_actions. DATA: ls_hotkey_action LIKE LINE OF rt_hotkey_actions. ls_hotkey_action-name = |Code Inspector: Stage|. ls_hotkey_action-action = c_actions-stage. ls_hotkey_action-default_hotkey = |s|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. ls_hotkey_action-name = |Code Inspector: Re-Run|. ls_hotkey_action-action = c_actions-rerun. ls_hotkey_action-default_hotkey = |r|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. ENDMETHOD. METHOD zif_abapgit_gui_page~on_event. DATA: lo_repo_online TYPE REF TO zcl_abapgit_repo_online. CASE iv_action. WHEN c_actions-stage. lo_repo_online ?= mo_repo. IF is_stage_allowed( ) = abap_true. " we need to refresh as the source might have changed lo_repo_online->refresh( ). CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_stage EXPORTING io_repo = lo_repo_online. ev_state = zif_abapgit_definitions=>c_event_state-new_page. ELSE. ei_page = me. ev_state = zif_abapgit_definitions=>c_event_state-no_more_act. ENDIF. WHEN c_actions-commit. lo_repo_online ?= mo_repo. IF is_stage_allowed( ) = abap_true. CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_commit EXPORTING io_repo = lo_repo_online io_stage = mo_stage. ev_state = zif_abapgit_definitions=>c_event_state-new_page. ELSE. ei_page = me. ev_state = zif_abapgit_definitions=>c_event_state-no_more_act. ENDIF. WHEN c_actions-rerun. run_code_inspector( ). ei_page = me. ev_state = zif_abapgit_definitions=>c_event_state-re_render. WHEN OTHERS. super->zif_abapgit_gui_page~on_event( EXPORTING iv_action = iv_action iv_prev_page = iv_prev_page iv_getdata = iv_getdata it_postdata = it_postdata IMPORTING ei_page = ei_page ev_state = ev_state ). ENDCASE. ENDMETHOD. METHOD zif_abapgit_gui_page~render. ms_control-page_menu = build_menu( ). ro_html = super->zif_abapgit_gui_page~render( ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 8189, 62, 1040, 79, 5550, 20032, 17941, 44731, 25261, 29244, 6158, 44731, 198, 220, 220, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 19815, 72, 62, 8692, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 8940, 2539, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 260, 7501, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 14247, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 14247, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 628, 220, 220, 220, 220, 220, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 7700, 93, 261, 62, 15596, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 11, 628, 220, 220, 220, 220, 220, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 7700, 93, 13287, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 8543, 62, 11299, 220, 220, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 4658, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3800, 220, 41876, 4731, 26173, 8924, 705, 14247, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4589, 41876, 4731, 26173, 8924, 705, 41509, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 302, 5143, 220, 41876, 4731, 26173, 8924, 705, 260, 5143, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 4658, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 6941, 62, 14247, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 14247, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 1382, 62, 26272, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 26272, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 25981, 5657, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 628, 220, 220, 220, 220, 220, 1057, 62, 8189, 62, 1040, 806, 273, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 628, 220, 220, 220, 220, 220, 468, 62, 1040, 14978, 62, 48277, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 10134, 62, 1040, 14978, 62, 48277, 8, 41876, 450, 499, 62, 30388, 11, 628, 220, 220, 220, 220, 220, 318, 62, 14247, 62, 40845, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 271, 62, 14247, 62, 40845, 8, 41876, 450, 499, 62, 30388, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 40156, 62, 4537, 8264, 62, 34, 16820, 62, 1268, 4303, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1382, 62, 26272, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 8738, 41876, 269, 406, 49494, 352, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 686, 62, 26272, 13, 628, 220, 220, 220, 686, 62, 26272, 3784, 2860, 7, 21628, 62, 14116, 796, 705, 3041, 12, 10987, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 529, 796, 269, 62, 4658, 12, 260, 5143, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 22019, 796, 450, 499, 62, 9562, 1267, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 16876, 318, 62, 14247, 62, 40845, 7, 1267, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 8738, 796, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 66, 62, 6494, 62, 8738, 12, 19692, 448, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 16876, 6941, 62, 260, 7501, 3784, 271, 62, 2364, 1370, 7, 1267, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 16876, 6941, 62, 14247, 3180, 347, 15919, 13, 628, 220, 220, 220, 220, 220, 366, 520, 3039, 7508, 1541, 1695, 11, 356, 460, 3264, 198, 220, 220, 220, 220, 220, 366, 2897, 284, 4589, 628, 220, 220, 220, 220, 220, 686, 62, 26272, 3784, 2860, 7, 21628, 62, 14116, 796, 705, 6935, 270, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 529, 796, 269, 62, 4658, 12, 41509, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 22019, 796, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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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. METHODS: get_object_type ABSTRACT RETURNING VALUE(rv_object_type) TYPE etobj_type, get_upload ABSTRACT RETURNING VALUE(ro_upload) TYPE REF TO cl_apl_ecatt_upload, get_download ABSTRACT RETURNING VALUE(ro_download) TYPE REF TO cl_apl_ecatt_download, get_lock_object ABSTRACT RETURNING VALUE(rv_lock_object) TYPE eqeobj. PRIVATE SECTION. TYPES: BEGIN OF ty_last_changed, luser TYPE xubname, ldate TYPE d, ltime TYPE t, END OF ty_last_changed. CONSTANTS: BEGIN OF co_name, version TYPE string VALUE 'VERSION' ##NO_TEXT, versions TYPE string VALUE 'VERSIONS' ##NO_TEXT, END OF co_name, co_default_version TYPE etobj_ver VALUE '1' ##NO_TEXT. CLASS-METHODS: is_change_more_recent_than IMPORTING is_currently_changed TYPE ty_last_changed is_last_changed TYPE ty_last_changed RETURNING VALUE(rv_is_change_more_recent) TYPE abap_bool. DATA: mv_object_name TYPE etobj_name. METHODS: get_changed_date IMPORTING ii_document TYPE REF TO if_ixml_document RETURNING VALUE(rv_changed_date) TYPE d, get_changed_time IMPORTING ii_document TYPE REF TO if_ixml_document RETURNING VALUE(rv_changed_time) TYPE t, get_changed_by_user IMPORTING ii_document TYPE REF TO if_ixml_document RETURNING VALUE(rv_changed_by_user) TYPE xubname, get_change_information IMPORTING is_version_info TYPE etversinfo RETURNING VALUE(rs_change_information) TYPE ty_last_changed RAISING cx_ecatt_apl zcx_abapgit_exception, clear_attributes CHANGING ci_document TYPE REF TO if_ixml_document, clear_elements CHANGING ci_document TYPE REF TO if_ixml_document, get_version_from_node IMPORTING ii_node TYPE REF TO if_ixml_node RETURNING VALUE(rv_version) TYPE string, deserialize_version IMPORTING ii_version_node TYPE REF TO if_ixml_node iv_package TYPE devclass RAISING zcx_abapgit_exception, serialize_version IMPORTING iv_version TYPE etversinfo-version CHANGING ci_node TYPE REF TO if_ixml_element RAISING cx_ecatt zcx_abapgit_exception, clear_element IMPORTING iv_name TYPE csequence CHANGING ci_document TYPE REF TO if_ixml_document, serialize_versions IMPORTING it_version_info TYPE etversinfo_tabtype CHANGING ci_document TYPE REF TO if_ixml_document RAISING cx_ecatt zcx_abapgit_exception. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_ECATT_SUPER IMPLEMENTATION. METHOD clear_attributes. DATA: lo_element TYPE REF TO if_ixml_element, lv_object_type TYPE etobj_type. lv_object_type = get_object_type( ). lo_element = ci_document->find_from_name( |{ lv_object_type }| ). lo_element->remove_attribute( |SAPRL| ). lo_element->remove_attribute( |DOWNLOADDATE| ). lo_element->remove_attribute( |DOWNLOADTIME| ). ENDMETHOD. METHOD clear_element. DATA: lo_element TYPE REF TO if_ixml_element. lo_element = ci_document->find_from_name( iv_name ). IF lo_element IS BOUND. lo_element->set_value( || ). ENDIF. ENDMETHOD. METHOD clear_elements. clear_element( EXPORTING iv_name = |FUSER| CHANGING ci_document = ci_document ). clear_element( EXPORTING iv_name = |FDATE| CHANGING ci_document = ci_document ). clear_element( EXPORTING iv_name = |LUSER| CHANGING ci_document = ci_document ). clear_element( EXPORTING iv_name = |LDATE| CHANGING ci_document = ci_document ). clear_element( EXPORTING iv_name = |LTIME| CHANGING ci_document = ci_document ). clear_element( EXPORTING iv_name = |TWB_RESP| CHANGING ci_document = ci_document ). clear_element( EXPORTING iv_name = |DEVCLASS| CHANGING ci_document = ci_document ). clear_element( EXPORTING iv_name = |TADIR_RESP| CHANGING ci_document = ci_document ). clear_element( EXPORTING iv_name = |VAR_EXT_PATH| CHANGING ci_document = ci_document ). ENDMETHOD. METHOD constructor. super->constructor( is_item = is_item iv_language = iv_language ). mv_object_name = ms_item-obj_name. ENDMETHOD. METHOD deserialize_version. DATA: ls_object TYPE etmobjects, lo_upload TYPE REF TO cl_apl_ecatt_upload, li_upload TYPE REF TO zif_abapgit_ecatt_upload, lv_xml TYPE xstring, lv_text TYPE string, li_document TYPE REF TO if_ixml_document, lv_version TYPE string, lx_error TYPE REF TO cx_ecatt. lv_version = get_version_from_node( ii_version_node ). IF lv_version IS INITIAL. RETURN. ENDIF. lo_upload = get_upload( ). li_upload ?= lo_upload. li_document = cl_ixml=>create( )->create_document( ). li_document->append_child( ii_version_node->get_first_child( ) ). lv_xml = cl_ixml_80_20=>render_to_xstring( li_document ). li_upload->set_stream_for_upload( lv_xml ). ls_object-d_obj_name = mv_object_name. ls_object-s_obj_type = get_object_type( ). ls_object-d_devclass = iv_package. ls_object-d_obj_ver = lv_version. ls_object-d_overwrite = abap_true. TRY. lo_upload->upload( CHANGING ch_object = ls_object ). CATCH cx_ecatt INTO lx_error. lv_text = lx_error->get_text( ). zcx_abapgit_exception=>raise( lv_text ). ENDTRY. ENDMETHOD. METHOD get_changed_by_user. rv_changed_by_user = ii_document->find_from_name( 'LUSER' )->get_value( ). ENDMETHOD. METHOD get_changed_date. DATA: lv_changed_date_external TYPE string. lv_changed_date_external = ii_document->find_from_name( 'LDATE' )->get_value( ). CALL FUNCTION 'CONVERSION_EXIT_RSDAT_INPUT' EXPORTING input = lv_changed_date_external IMPORTING output = rv_changed_date EXCEPTIONS invalid_date = 1 OTHERS = 2. IF sy-subrc <> 0. RETURN. ENDIF. ENDMETHOD. METHOD get_changed_time. DATA: lv_changed_time_external TYPE string. lv_changed_time_external = ii_document->find_from_name( 'LTIME' )->get_value( ). CALL FUNCTION 'CONVERSION_EXIT_TIMLO_INPUT' EXPORTING input = lv_changed_time_external IMPORTING output = rv_changed_time EXCEPTIONS wrong_input = 1 OTHERS = 2. IF sy-subrc <> 0. RETURN. ENDIF. ENDMETHOD. METHOD get_change_information. DATA: li_document TYPE REF TO if_ixml_document, lv_xml TYPE xstring, lo_download TYPE REF TO cl_apl_ecatt_download, lv_object_type TYPE etobj_type. lo_download = get_download( ). lv_object_type = get_object_type( ). lv_xml = zcl_abapgit_ecatt_helper=>build_xml_of_object( im_object_name = mv_object_name im_object_version = is_version_info-version im_object_type = lv_object_type io_download = lo_download ). li_document = cl_ixml_80_20=>parse_to_document( stream_xstring = lv_xml ). rs_change_information-ldate = get_changed_date( li_document ). rs_change_information-ltime = get_changed_time( li_document ). rs_change_information-luser = get_changed_by_user( li_document ). ENDMETHOD. METHOD get_version_from_node. TRY. rv_version = ii_node->get_first_child( )->get_first_child( )->get_first_child( )->get_first_child( )->get_value( ). CATCH cx_sy_ref_is_initial. RETURN. ENDTRY. ENDMETHOD. METHOD is_change_more_recent_than. IF ( is_currently_changed-ldate > is_last_changed-ldate ) OR ( is_currently_changed-ldate = is_last_changed-ldate AND is_currently_changed-ltime > is_last_changed-ltime ). rv_is_change_more_recent = abap_true. ENDIF. ENDMETHOD. METHOD serialize_version. DATA: li_document TYPE REF TO if_ixml_document, lv_xml TYPE xstring, lo_node TYPE REF TO if_ixml_element, lo_download TYPE REF TO cl_apl_ecatt_download, lv_object_type TYPE etobj_type. lo_download = get_download( ). lv_object_type = get_object_type( ). lv_xml = zcl_abapgit_ecatt_helper=>build_xml_of_object( im_object_name = mv_object_name im_object_version = iv_version im_object_type = lv_object_type io_download = lo_download ). li_document = cl_ixml_80_20=>parse_to_document( stream_xstring = lv_xml ). clear_attributes( CHANGING ci_document = li_document ). clear_elements( CHANGING ci_document = li_document ). lo_node = li_document->create_element( co_name-version ). lo_node->append_child( li_document->get_root_element( ) ). ci_node->append_child( lo_node ). ENDMETHOD. METHOD serialize_versions. DATA: li_versions_node TYPE REF TO if_ixml_element. FIELD-SYMBOLS: <ls_version_info> LIKE LINE OF it_version_info. li_versions_node = ci_document->create_element( co_name-versions ). IF lines( it_version_info ) > 0. LOOP AT it_version_info ASSIGNING <ls_version_info>. serialize_version( EXPORTING iv_version = <ls_version_info>-version CHANGING ci_node = li_versions_node ). ENDLOOP. ELSE. serialize_version( EXPORTING iv_version = co_default_version CHANGING ci_node = li_versions_node ). ENDIF. ci_document->append_child( li_versions_node ). ENDMETHOD. METHOD zif_abapgit_object~changed_by. DATA: ls_last_changed TYPE ty_last_changed, ls_currently_changed TYPE ty_last_changed, lt_version_info TYPE etversinfo_tabtype, lx_error TYPE REF TO cx_ecatt, lv_text TYPE string, lv_object_type TYPE etobj_type. FIELD-SYMBOLS: <ls_version_info> LIKE LINE OF lt_version_info. TRY. lv_object_type = get_object_type( ). cl_apl_ecatt_object=>get_version_info_object( EXPORTING im_name = mv_object_name im_obj_type = lv_object_type IMPORTING ex_version_info = lt_version_info ). LOOP AT lt_version_info ASSIGNING <ls_version_info>. ls_currently_changed = get_change_information( <ls_version_info> ). IF is_change_more_recent_than( is_currently_changed = ls_currently_changed is_last_changed = ls_last_changed ) = abap_true. ls_last_changed = ls_currently_changed. ENDIF. ENDLOOP. CATCH cx_ecatt INTO lx_error. lv_text = lx_error->get_text( ). MESSAGE lv_text TYPE 'S' DISPLAY LIKE 'E'. ENDTRY. IF ls_last_changed-luser IS NOT INITIAL. rv_user = ls_last_changed-luser. ELSE. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lx_error TYPE REF TO cx_ecatt_apl, lv_text TYPE string, lv_object_type TYPE etobj_type. lv_object_type = get_object_type( ). TRY. cl_apl_ecatt_object=>delete_object( im_obj_type = lv_object_type im_name = mv_object_name " we have to supply a version, so let's use the default version " and delete them all im_version = co_default_version im_delete_all_versions = abap_true ). CATCH cx_ecatt_apl INTO lx_error. lv_text = lx_error->get_text( ). zcx_abapgit_exception=>raise( lv_text ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: li_document TYPE REF TO if_ixml_document, li_versions TYPE REF TO if_ixml_node_collection, li_version_iterator TYPE REF TO if_ixml_node_iterator, lo_version_node TYPE REF TO if_ixml_node. li_document = io_xml->get_raw( ). li_versions = li_document->get_elements_by_tag_name( depth = 0 name = co_name-version ). li_version_iterator = li_versions->create_iterator( ). DO. lo_version_node = li_version_iterator->get_next( ). IF lo_version_node IS NOT BOUND. EXIT. ENDIF. deserialize_version( ii_version_node = lo_version_node iv_package = iv_package ). ENDDO. ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_object_type TYPE etobj_type. lv_object_type = get_object_type( ). TRY. rv_bool = cl_apl_ecatt_object=>existence_check_object( im_name = mv_object_name im_version = co_default_version im_obj_type = lv_object_type im_exists_any_version = abap_true ). CATCH cx_ecatt. RETURN. ENDTRY. 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. DATA: lv_object TYPE seqg3-garg. lv_object = ms_item-obj_name. OVERLAY lv_object WITH ' '. lv_object = lv_object && '*'. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = get_lock_object( ) iv_argument = lv_object ). ENDMETHOD. METHOD zif_abapgit_object~jump. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ms_item-obj_name object_type = ms_item-obj_type in_new_window = abap_true EXCEPTIONS not_executed = 1 invalid_object_type = 2 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error { sy-subrc } from RS_TOOL_ACCESS | ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lt_version_info TYPE etversinfo_tabtype, li_document TYPE REF TO if_ixml_document, lx_error TYPE REF TO cx_ecatt, lv_text TYPE string, lv_object_type TYPE etobj_type. lv_object_type = get_object_type( ). TRY. cl_apl_ecatt_object=>get_version_info_object( EXPORTING im_name = mv_object_name im_obj_type = lv_object_type IMPORTING ex_version_info = lt_version_info ). li_document = cl_ixml=>create( )->create_document( ). serialize_versions( EXPORTING it_version_info = lt_version_info CHANGING ci_document = li_document ). io_xml->set_raw( li_document->get_root_element( ) ). CATCH cx_ecatt INTO lx_error. lv_text = lx_error->get_text( ). MESSAGE lv_text TYPE 'S' DISPLAY LIKE 'E'. ENDTRY. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 721, 1078, 62, 16668, 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, 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, 397, 499, 18300, 62, 15252, 764, 628, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 764, 628, 220, 220, 220, 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, 5145, 271, 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, 5145, 452, 62, 16129, 41876, 7500, 292, 764, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 651, 62, 15252, 62, 4906, 9564, 18601, 10659, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 15252, 62, 4906, 8, 41876, 2123, 26801, 62, 4906, 11, 628, 220, 220, 220, 220, 220, 651, 62, 25850, 9564, 18601, 10659, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 25850, 8, 41876, 4526, 37, 5390, 537, 62, 64, 489, 62, 721, 1078, 62, 25850, 11, 628, 220, 220, 220, 220, 220, 651, 62, 15002, 9564, 18601, 10659, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 15002, 8, 41876, 4526, 37, 5390, 537, 62, 64, 489, 62, 721, 1078, 62, 15002, 11, 628, 220, 220, 220, 220, 220, 651, 62, 5354, 62, 15252, 9564, 18601, 10659, 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, 5354, 62, 15252, 8, 41876, 37430, 68, 26801, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 12957, 62, 40985, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 7220, 41876, 2124, 549, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 4475, 41876, 288, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 2435, 41876, 256, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 12957, 62, 40985, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 763, 62, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2196, 220, 41876, 4731, 26173, 8924, 705, 43717, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 6300, 41876, 4731, 26173, 8924, 705, 28884, 11053, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 763, 62, 3672, 11, 198, 220, 220, 220, 220, 220, 763, 62, 12286, 62, 9641, 41876, 2123, 26801, 62, 332, 26173, 8924, 705, 16, 6, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 318, 62, 3803, 62, 3549, 62, 49921, 62, 14813, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 41745, 62, 40985, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 12957, 62, 40985, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 12957, 62, 40985, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 12957, 62, 40985, 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, 3803, 62, 3549, 62, 49921, 8, 41876, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 285, 85, 62, 15252, 62, 3672, 41876, 2123, 26801, 62, 3672, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 651, 62, 40985, 62, 4475, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 22897, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 22897, 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, 40985, 62, 4475, 8, 41876, 288, 11, 628, 220, 220, 220, 220, 220, 651, 62, 40985, 62, 2435, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 22897, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 22897, 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, 40985, 62, 2435, 8, 41876, 256, 11, 628, 220, 220, 220, 220, 220, 651, 62, 40985, 62, 1525, 62, 7220, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 22897, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 22897, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
INTERFACE zif_adcoset_ty_adt_types PUBLIC. TYPES: BEGIN OF ty_adt_obj_ref, "! URI - mandatory client response, optional for client request uri TYPE string, "! Name of the referenced entity - optional name TYPE string, "! Description of the referenced entity - optional description TYPE string, "! ADT Type of the referenced entity - optional type TYPE string, "! Package name of the referenced entity- optional package_name TYPE string, "! Owner of the referenced entity - optional owner TYPE string, END OF ty_adt_obj_ref, BEGIN OF ty_code_search_match, uri TYPE string, snippet TYPE string, END OF ty_code_search_match, ty_code_search_matches TYPE STANDARD TABLE OF ty_code_search_match WITH EMPTY KEY, BEGIN OF ty_code_search_object, * adt_main_obj_ref TYPE ty_adt_obj_ref, * adt_obj_ref TYPE ty_adt_obj_ref, * adt_main_obj_ref TYPE if_adt_tools_core_types=>ty_object_reference, * adt_obj_ref TYPE if_adt_tools_core_types=>ty_object_reference, uri TYPE string, parent_uri TYPE string, adt_main_object TYPE if_adt_tools_core_types=>ty_main_object, matches TYPE ty_code_search_matches, END OF ty_code_search_object, ty_code_search_objects TYPE STANDARD TABLE OF ty_code_search_object WITH EMPTY KEY, BEGIN OF ty_code_search_result, code_search_objects TYPE ty_code_search_objects, number_of_results TYPE i, number_of_searched_objects TYPE i, query_time_in_ms TYPE i, END OF ty_code_search_result, "! Describes a feature of an ADT plugin BEGIN OF ty_adt_plugin_feature, "! Name of a feature. name TYPE string, "! URI endpoint where feature is used endpoint TYPE string, "! The type of the feature. <br> "! e.g. Boolean, String, List type TYPE string, "! Indicates if the feature is enabled or not enabled TYPE abap_bool, "! Category of the feature. <br> "! e.g. Attribute, Parameter category TYPE string, "! Optional description of the feature description TYPE string, END OF ty_adt_plugin_feature, "! List of ADT plugin features ty_adt_plugin_features TYPE STANDARD TABLE OF ty_adt_plugin_feature WITH EMPTY KEY. "! Settings for Code Search TYPES BEGIN OF ty_code_search_settings. INCLUDE TYPE zadcoset_csset. TYPES END OF ty_code_search_settings. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 324, 6966, 316, 62, 774, 62, 324, 83, 62, 19199, 198, 220, 44731, 13, 628, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 324, 83, 62, 26801, 62, 5420, 11, 198, 220, 220, 220, 220, 220, 366, 0, 43975, 532, 13677, 5456, 2882, 11, 11902, 329, 5456, 2581, 198, 220, 220, 220, 220, 220, 2956, 72, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 366, 0, 6530, 286, 262, 20717, 9312, 532, 11902, 198, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 366, 0, 12489, 286, 262, 20717, 9312, 532, 11902, 198, 220, 220, 220, 220, 220, 6764, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 366, 0, 5984, 51, 5994, 286, 262, 20717, 9312, 532, 11902, 198, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 366, 0, 15717, 1438, 286, 262, 20717, 9312, 12, 11902, 198, 220, 220, 220, 220, 220, 5301, 62, 3672, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 366, 0, 23853, 286, 262, 20717, 9312, 532, 11902, 198, 220, 220, 220, 220, 220, 4870, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 324, 83, 62, 26801, 62, 5420, 11, 628, 220, 220, 220, 347, 43312, 3963, 1259, 62, 8189, 62, 12947, 62, 15699, 11, 198, 220, 220, 220, 220, 220, 2956, 72, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 39442, 41876, 4731, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 8189, 62, 12947, 62, 15699, 11, 628, 220, 220, 220, 1259, 62, 8189, 62, 12947, 62, 6759, 2052, 41876, 49053, 9795, 43679, 3963, 1259, 62, 8189, 62, 12947, 62, 15699, 13315, 38144, 9936, 35374, 11, 628, 220, 220, 220, 347, 43312, 3963, 1259, 62, 8189, 62, 12947, 62, 15252, 11, 198, 9, 220, 220, 220, 220, 220, 512, 83, 62, 12417, 62, 26801, 62, 5420, 41876, 1259, 62, 324, 83, 62, 26801, 62, 5420, 11, 198, 9, 220, 220, 220, 220, 220, 512, 83, 62, 26801, 62, 5420, 220, 220, 220, 220, 220, 41876, 1259, 62, 324, 83, 62, 26801, 62, 5420, 11, 198, 9, 220, 220, 220, 220, 220, 512, 83, 62, 12417, 62, 26801, 62, 5420, 41876, 611, 62, 324, 83, 62, 31391, 62, 7295, 62, 19199, 14804, 774, 62, 15252, 62, 35790, 11, 198, 9, 220, 220, 220, 220, 220, 512, 83, 62, 26801, 62, 5420, 220, 220, 220, 220, 220, 41876, 611, 62, 324, 83, 62, 31391, 62, 7295, 62, 19199, 14804, 774, 62, 15252, 62, 35790, 11, 198, 220, 220, 220, 220, 220, 2956, 72, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2560, 62, 9900, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 512, 83, 62, 12417, 62, 15252, 41876, 611, 62, 324, 83, 62, 31391, 62, 7295, 62, 19199, 14804, 774, 62, 12417, 62, 15252, 11, 198, 220, 220, 220, 220, 220, 7466, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 8189, 62, 12947, 62, 6759, 2052, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 8189, 62, 12947, 62, 15252, 11, 628, 220, 220, 220, 1259, 62, 8189, 62, 12947, 62, 48205, 41876, 49053, 9795, 43679, 3963, 1259, 62, 8189, 62, 12947, 62, 15252, 13315, 38144, 9936, 35374, 11, 628, 220, 220, 220, 347, 43312, 3963, 1259, 62, 8189, 62, 12947, 62, 20274, 11, 198, 220, 220, 220, 220, 220, 2438, 62, 12947, 62, 48205, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 8189, 62, 12947, 62, 48205, 11, 198, 220, 220, 220, 220, 220, 1271, 62, 1659, 62, 43420, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 1271, 62, 1659, 62, 325, 283, 1740, 62, 48205, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 12405, 62, 2435, 62, 259, 62, 907, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 8189, 62, 12947, 62, 20274, 11, 628, 220, 220, 220, 366, 0, 39373, 22090, 257, 3895, 286, 281, 5984, 51, 13877, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 324, 83, 62, 33803, 62, 30053, 11, 198, 220, 220, 220, 220, 220, 366, 0, 6530, 286, 257, 3895, 13, 198, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 366, 0, 43975, 36123, 810, 3895, 318, 973, 198, 220, 220, 220, 220, 220, 36123, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 366, 0, 383, 2099, 286, 262, 3895, 13, 1279, 1671, 29, 198, 220, 220, 220, 220, 220, 366, 0, 304, 13, 70, 13, 41146, 11, 10903, 11, 7343, 198, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 366, 0, 1423, 16856, 611, 262, 3895, 318, 9343, 393, 407, 198, 220, 220, 220, 220, 220, 9343, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 366, 0, 21743, 286, 262, 3895, 13, 1279, 1671, 29, 198, 220, 220, 220, 220, 220, 366, 0, 304, 13, 70, 13, 3460, 4163, 11, 25139, 2357, 198, 220, 220, 220, 220, 220, 6536, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 366, 0, 32233, 6764, 286, 262, 3895, 198, 220, 220, 220, 220, 220, 6764, 41876, 4731, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 324, 83, 62, 33803, 62, 30053, 11, 628, 220, 220, 220, 366, 0, 7343, 286, 5984, 51, 13877, 3033, 198, 220, 220, 220, 1259, 62, 324, 83, 62, 33803, 62, 40890, 41876, 49053, 9795, 43679, 3963, 1259, 62, 324, 83, 62, 33803, 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, 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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 ]
*&---------------------------------------------------------------------* *& Include ZABAPGIT_UNIT_TEST *&---------------------------------------------------------------------* * todo, should the tests be in the same include as the classes * they are testing? *CLASS ltcl_oo_serialize DEFINITION FINAL FOR TESTING * DURATION SHORT * RISK LEVEL HARMLESS. * * PRIVATE SECTION. * METHODS: * setup, * empty_include FOR TESTING RAISING cx_static_check, * one_line_include FOR TESTING RAISING cx_static_check, * one_line_include_2 FOR TESTING RAISING cx_static_check, * one_line_include_3 FOR TESTING RAISING cx_static_check, * two_line_include FOR TESTING RAISING cx_static_check, * two_line_include_2 FOR TESTING RAISING cx_static_check, * two_line_include_3 FOR TESTING RAISING cx_static_check, * more_than_two_lines FOR TESTING RAISING cx_static_check, * * _given_source_is * IMPORTING * i_source TYPE LINE OF zif_abapgit_definitions=>ty_string_tt, * _given_empty_test_include, * _when_skip_is_calculated, * _then_should_be_skipped, * _then_should_not_be_skipped. * * DATA: mo_oo_serializer TYPE REF TO lcl_oo_serializer, * mt_source TYPE zif_abapgit_definitions=>ty_string_tt, * mv_skip_testclass TYPE abap_bool. * *ENDCLASS. * * *CLASS ltcl_oo_serialize IMPLEMENTATION. * * METHOD setup. * * CREATE OBJECT mo_oo_serializer. * * ENDMETHOD. * * METHOD empty_include. * * _given_empty_test_include( ). * * _when_skip_is_calculated( ). * * _then_should_be_skipped( ). * * ENDMETHOD. * * METHOD one_line_include. * * _given_source_is( `*"* use this source file for your ABAP unit test classes` ). * * _when_skip_is_calculated( ). * * _then_should_be_skipped( ). * * ENDMETHOD. * * METHOD one_line_include_2. * * _given_source_is( `*` ). * * _when_skip_is_calculated( ). * * _then_should_be_skipped( ). * * ENDMETHOD. * * METHOD one_line_include_3. * * _given_source_is( `write: 'This is ABAP'.` ). * * _when_skip_is_calculated( ). * * _then_should_not_be_skipped( ). * * ENDMETHOD. * * METHOD two_line_include. * * _given_source_is( `*"* use this source file for your ABAP unit test classes` ). * _given_source_is( `` ). * * _when_skip_is_calculated( ). * * _then_should_be_skipped( ). * * ENDMETHOD. * * METHOD two_line_include_2. * * _given_source_is( `*"* use this source file for your ABAP unit test classes` ). * _given_source_is( `write: 'This is ABAP'.` ). * * _when_skip_is_calculated( ). * * _then_should_not_be_skipped( ). * * ENDMETHOD. * * METHOD two_line_include_3. * * _given_source_is( ` ` ). * _given_source_is( `*"* use this source file for your ABAP unit test classes` ). * * _when_skip_is_calculated( ). * * _then_should_not_be_skipped( ). * * ENDMETHOD. * * METHOD more_than_two_lines. * * _given_source_is( `*"* use this source file for your ABAP unit test classes` ). * _given_source_is( `CLASS ltcl_test DEFINITION FINAL FOR TESTING` ). * _given_source_is( ` DURATION SHORT` ). * _given_source_is( ` RISK LEVEL HARMLESS.` ). * _given_source_is( ` ` ). * _given_source_is( ` PRIVATE SECTION.` ). * _given_source_is( ` METHODS:` ). * _given_source_is( ` first_test FOR TESTING RAISING cx_static_check.` ). * _given_source_is( `ENDCLASS.` ). * _given_source_is( ` ` ). * _given_source_is( `CLASS ltcl_test IMPLEMENTATION.` ). * _given_source_is( ` ` ). * _given_source_is( ` METHOD first_test.` ). * _given_source_is( ` cl_abap_unit_assert=>fail( 'This is a real test' ).` ). * _given_source_is( ` ENDMETHOD.` ). * _given_source_is( ` ` ). * _given_source_is( `ENDCLASS.` ). * * _when_skip_is_calculated( ). * * _then_should_not_be_skipped( ). * * ENDMETHOD. * * METHOD _given_source_is. * * INSERT i_source INTO TABLE mt_source. * * ENDMETHOD. * * METHOD _given_empty_test_include. * * ENDMETHOD. * * METHOD _when_skip_is_calculated. * * mv_skip_testclass = mo_oo_serializer->calculate_skip_testclass( mt_source ). * * ENDMETHOD. * * METHOD _then_should_be_skipped. * * cl_abap_unit_assert=>assert_equals( * act = mv_skip_testclass * exp = abap_true * msg = |Testclass should be skipped| ). * * ENDMETHOD. * * * METHOD _then_should_not_be_skipped. * * cl_abap_unit_assert=>assert_equals( * act = mv_skip_testclass * exp = abap_false * msg = |Testclass should not be skipped| ). * * ENDMETHOD. * *ENDCLASS. INCLUDE zabapgit_unit_test_clas_intf.
[ 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, 4944, 2043, 62, 51, 6465, 198, 9, 5, 10097, 30934, 9, 198, 198, 9, 284, 4598, 11, 815, 262, 5254, 307, 287, 262, 976, 2291, 355, 262, 6097, 198, 9, 484, 389, 4856, 30, 198, 198, 9, 31631, 300, 83, 565, 62, 2238, 62, 46911, 1096, 5550, 20032, 17941, 25261, 7473, 43001, 2751, 198, 9, 220, 360, 4261, 6234, 6006, 9863, 198, 9, 220, 45698, 42, 49277, 43638, 5805, 7597, 13, 198, 9, 198, 9, 220, 4810, 3824, 6158, 44513, 13, 198, 9, 220, 220, 220, 337, 36252, 50, 25, 198, 9, 220, 220, 220, 220, 220, 9058, 11, 198, 9, 220, 220, 220, 220, 220, 6565, 62, 17256, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 9, 220, 220, 220, 220, 220, 530, 62, 1370, 62, 17256, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 9, 220, 220, 220, 220, 220, 530, 62, 1370, 62, 17256, 62, 17, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 9, 220, 220, 220, 220, 220, 530, 62, 1370, 62, 17256, 62, 18, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 9, 220, 220, 220, 220, 220, 734, 62, 1370, 62, 17256, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 9, 220, 220, 220, 220, 220, 734, 62, 1370, 62, 17256, 62, 17, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 9, 220, 220, 220, 220, 220, 734, 62, 1370, 62, 17256, 62, 18, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 9, 220, 220, 220, 220, 220, 517, 62, 14813, 62, 11545, 62, 6615, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 9, 198, 9, 220, 220, 220, 220, 220, 4808, 35569, 62, 10459, 62, 271, 198, 9, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 10459, 41876, 48920, 3963, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8841, 62, 926, 11, 198, 9, 220, 220, 220, 220, 220, 4808, 35569, 62, 28920, 62, 9288, 62, 17256, 11, 198, 9, 220, 220, 220, 220, 220, 4808, 12518, 62, 48267, 62, 271, 62, 9948, 49262, 11, 198, 9, 220, 220, 220, 220, 220, 4808, 8524, 62, 21754, 62, 1350, 62, 8135, 3949, 11, 198, 9, 220, 220, 220, 220, 220, 4808, 8524, 62, 21754, 62, 1662, 62, 1350, 62, 8135, 3949, 13, 198, 9, 198, 9, 220, 220, 220, 42865, 25, 6941, 62, 2238, 62, 46911, 7509, 220, 41876, 4526, 37, 5390, 300, 565, 62, 2238, 62, 46911, 7509, 11, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45079, 62, 10459, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8841, 62, 926, 11, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 85, 62, 48267, 62, 9288, 4871, 41876, 450, 499, 62, 30388, 13, 198, 9, 198, 9, 10619, 31631, 13, 198, 9, 198, 9, 198, 9, 31631, 300, 83, 565, 62, 2238, 62, 46911, 1096, 30023, 2538, 10979, 6234, 13, 198, 9, 198, 9, 220, 337, 36252, 9058, 13, 198, 9, 198, 9, 220, 220, 220, 29244, 6158, 25334, 23680, 6941, 62, 2238, 62, 46911, 7509, 13, 198, 9, 198, 9, 220, 23578, 49273, 13, 198, 9, 198, 9, 220, 337, 36252, 6565, 62, 17256, 13, 198, 9, 198, 9, 220, 220, 220, 4808, 35569, 62, 28920, 62, 9288, 62, 17256, 7, 6739, 198, 9, 198, 9, 220, 220, 220, 4808, 12518, 62, 48267, 62, 271, 62, 9948, 49262, 7, 6739, 198, 9, 198, 9, 220, 220, 220, 4808, 8524, 62, 21754, 62, 1350, 62, 8135, 3949, 7, 6739, 198, 9, 198, 9, 220, 23578, 49273, 13, 198, 9, 198, 9, 220, 337, 36252, 530, 62, 1370, 62, 17256, 13, 198, 9, 198, 9, 220, 220, 220, 4808, 35569, 62, 10459, 62, 271, 7, 4600, 9, 1, 9, 779, 428, 2723, 2393, 329, 534, 9564, 2969, 4326, 1332, 6097, 63, 6739, 198, 9, 198, 9, 220, 220, 220, 4808, 12518, 62, 48267, 62, 271, 62, 9948, 49262, 7, 6739, 198, 9, 198, 9, 220, 220, 220, 4808, 8524, 62, 21754, 62, 1350, 62, 8135, 3949, 7, 6739, 198, 9, 198, 9, 220, 23578, 49273, 13, 198, 9, 198, 9, 220, 337, 36252, 530, 62, 1370, 62, 17256, 62, 17, 13, 198, 9, 198, 9, 220, 220, 220, 4808, 35569, 62, 10459, 62, 271, 7, 4600, 9, 63, 6739, 198, 9, 198, 9, 220, 220, 220, 4808, 12518, 62, 48267, 62, 271, 62, 9948, 49262, 7, 6739, 198, 9, 198, 9, 220, 220, 220, 4808, 8524, 62, 21754, 62, 1350, 62, 8135, 3949, 7, 6739, 198, 9, 198, 9, 220, 23578, 49273, 13, 198, 9, 198, 9, 220, 337, 36252, 530, 62, 1370, 62, 17256, 62, 18, 13, 198, 9, 198, 9, 220, 220, 220, 4808, 35569, 62, 10459, 62, 271, 7, 4600, 13564, 25, 705, 1212, 318, 9564, 2969, 4458, 63, 6739, 198, 9, 198, 9, 220, 220, 220, 4808, 12518, 62, 48267, 62, 271, 62, 9948, 49262, 7, 6739, 198, 9, 198, 9, 220, 220, 220, 4808, 8524, 62, 21754, 62, 1662, 62, 1350, 62, 8135, 3949, 7, 6739, 198, 9, 198, 9, 220, 23578, 49273, 13, 198, 9, 198, 9, 220, 337, 36252, 734, 62, 1370, 62, 17256, 13, 198, 9, 198, 9, 220, 220, 220, 4808, 35569, 62, 10459, 62, 271, 7, 4600, 9, 1, 9, 779, 428, 2723, 2393, 329, 534, 9564, 2969, 4326, 1332, 6097, 63, 6739, 198, 9, 220, 220, 220, 4808, 35569, 62, 10459, 62, 271, 7, 7559, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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by classname "! @parameter iv_classname | Annotation class name "! @parameter rv_present | Annotation is present is_annotation_present_by_name IMPORTING iv_classname TYPE abap_classname RETURNING VALUE(rv_present) TYPE abap_bool, "! Check if an annotation is present by descriptor "! @parameter io_descr | Descriptor instance "! @parameter rv_present | Annotation is present "! @raising zcx_aap_illegal_argument | io_descr cannot be null is_annotation_present_by_descr IMPORTING io_descr TYPE REF TO cl_abap_classdescr RETURNING VALUE(rv_present) TYPE abap_bool RAISING zcx_aap_illegal_argument, "! Check if an annotation is present by data variable "! @parameter ig_data | Variable typed as REF TO annotation class "! @parameter rv_present | Annotation is present "! @raising zcx_aap_illegal_argument | ig_data is not a reference variable to an annotation is_annotation_present_by_data IMPORTING ig_data TYPE any RETURNING VALUE(rv_present) TYPE abap_bool RAISING zcx_aap_illegal_argument, "! Get an annotation instance by its name "! @parameter iv_classname | Annotation class name "! @parameter ro_annotation | Found annotation class instance "! @raising zcx_aap_annotation_not_present | Annotation is not present get_annotation_by_name IMPORTING iv_classname TYPE abap_classname RETURNING VALUE(ro_annotation) TYPE REF TO zcl_aap_annotation_base RAISING zcx_aap_annotation_not_present, "! Get an annotation instance by descriptor "! @parameter io_descr | Descriptor instance "! @parameter ro_annotation | Found annotation class instance "! @raising zcx_aap_illegal_argument | io_descr cannot be null "! @raising zcx_aap_annotation_not_present | Annotation is not present get_annotation_by_descr IMPORTING io_descr TYPE REF TO cl_abap_classdescr RETURNING VALUE(ro_annotation) TYPE REF TO zcl_aap_annotation_base RAISING zcx_aap_illegal_argument zcx_aap_annotation_not_present, "! Get an annotation instance by data variable "! @parameter ig_data | Variable typed as REF TO annotation class "! @parameter ro_annotation | Found annotation class instance "! @raising zcx_aap_illegal_argument | ig_data is not a reference variable to an annotation "! @raising zcx_aap_annotation_not_present | Annotation is not present get_annotation_by_data IMPORTING ig_data TYPE any RETURNING VALUE(ro_annotation) TYPE REF TO zcl_aap_annotation_base RAISING zcx_aap_illegal_argument zcx_aap_annotation_not_present, "! Get all annotations directly associated to this processor "! @parameter rt_annotations | Associated annotations get_annotations ABSTRACT RETURNING VALUE(rt_annotations) TYPE zif_aap_annotation_resolver=>gty_annotation_tab, "! Force populate internal caches recursively (disables loading on demand) load_all ABSTRACT, "! Are annnotations present? "! @parameter rv_has_annotations | Annotations are present has_annotations RETURNING VALUE(rv_has_annotations) TYPE abap_bool, "! How many annotations are present "! @parameter rv_count | Annotation count get_annotation_count RETURNING VALUE(rv_count) TYPE i, "! Can this class / interface / method / parameter / attribute be annotated "! @parameter rv_annotatable | Annotatable is_annotatable ABSTRACT RETURNING VALUE(rv_annotatable) TYPE abap_bool, "! Get the target for this processor "! @parameter ro_target | Target enumeration instance get_target ABSTRACT RETURNING VALUE(ro_target) TYPE REF TO zcl_aap_annotation_target. PROTECTED SECTION. METHODS: constructor, "! Get the annotation resolver "! @parameter ri_resolver | Resolver instance get_resolver FINAL RETURNING VALUE(ri_resolver) TYPE REF TO zif_aap_annotation_resolver. PRIVATE SECTION. DATA: mi_resolver TYPE REF TO zif_aap_annotation_resolver. ENDCLASS. CLASS zcl_aap_proc_base IMPLEMENTATION. METHOD constructor. mi_resolver = zcl_aap_dependency_injector=>get_resolver( ). ENDMETHOD. METHOD get_resolver. ri_resolver = mi_resolver. ENDMETHOD. METHOD get_annotation_by_descr. DATA(lt_annotations) = get_annotations( ). zcx_aap_illegal_argument=>raise_if_nullpointer( iv_name = 'IO_DESCR' io_ref = io_descr ) ##NO_TEXT. TRY. ro_annotation = lt_annotations[ descriptor = io_descr ]-instance. CATCH cx_sy_itab_line_not_found INTO DATA(lx_ex). RAISE EXCEPTION TYPE zcx_aap_annotation_not_present EXPORTING ix_previous = lx_ex iv_name = CONV #( io_descr->get_relative_name( ) ). ENDTRY. ENDMETHOD. METHOD get_annotation_by_name. DATA(lt_annotations) = get_annotations( ). TRY. ro_annotation = lt_annotations[ classname = iv_classname ]-instance. CATCH cx_sy_itab_line_not_found INTO DATA(lx_ex). RAISE EXCEPTION TYPE zcx_aap_annotation_not_present EXPORTING ix_previous = lx_ex iv_name = iv_classname. ENDTRY. ENDMETHOD. METHOD get_annotation_by_data. DATA(lo_descr) = cl_abap_typedescr=>describe_by_data( ig_data ). IF lo_descr->type_kind <> cl_abap_typedescr=>kind_ref. RAISE EXCEPTION TYPE zcx_aap_illegal_argument. " TODO: Add exception message ENDIF. DATA(lo_referenced_descr) = CAST cl_abap_refdescr( lo_descr )->get_referenced_type( ). IF lo_referenced_descr->type_kind <> cl_abap_typedescr=>kind_class. RAISE EXCEPTION TYPE zcx_aap_illegal_argument. " TODO: Add exception message ENDIF. ro_annotation = get_annotation_by_descr( CAST cl_abap_classdescr( lo_referenced_descr ) ). ENDMETHOD. METHOD is_annotation_present_by_descr. DATA(lt_annotations) = get_annotations( ). zcx_aap_illegal_argument=>raise_if_nullpointer( iv_name = 'IO_DESCR' io_ref = io_descr ) ##NO_TEXT. rv_present = boolc( line_exists( lt_annotations[ descriptor = io_descr ] ) ). ENDMETHOD. METHOD is_annotation_present_by_name. DATA(lt_annotations) = get_annotations( ). rv_present = boolc( line_exists( lt_annotations[ classname = iv_classname ] ) ). ENDMETHOD. METHOD is_annotation_present_by_data. DATA(lo_descr) = cl_abap_typedescr=>describe_by_data( ig_data ). IF lo_descr->type_kind <> cl_abap_typedescr=>kind_ref. RAISE EXCEPTION TYPE zcx_aap_illegal_argument. " TODO: Add exception message ENDIF. DATA(lo_referenced_descr) = CAST cl_abap_refdescr( lo_descr )->get_referenced_type( ). IF lo_referenced_descr->type_kind <> cl_abap_typedescr=>kind_class. RAISE EXCEPTION TYPE zcx_aap_illegal_argument. " TODO: Add exception message ENDIF. rv_present = is_annotation_present_by_descr( CAST cl_abap_classdescr( lo_referenced_descr ) ). ENDMETHOD. METHOD get_annotation_count. rv_count = lines( get_annotations( ) ). ENDMETHOD. METHOD has_annotations. rv_has_annotations = boolc( lines( get_annotations( ) ) > 0 ). ENDMETHOD. ENDCLASS.
[ 40484, 32893, 2779, 1398, 198, 31631, 1976, 565, 62, 64, 499, 62, 36942, 62, 8692, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 9564, 18601, 10659, 198, 220, 29244, 6158, 48006, 9782, 1961, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 366, 0, 6822, 611, 281, 23025, 318, 1944, 416, 1398, 3672, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 4871, 3672, 930, 1052, 38983, 1398, 1438, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 374, 85, 62, 25579, 930, 1052, 38983, 318, 1944, 198, 220, 220, 220, 220, 220, 318, 62, 1236, 14221, 62, 25579, 62, 1525, 62, 3672, 30023, 9863, 2751, 21628, 62, 4871, 3672, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 4871, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 25579, 8, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 366, 0, 6822, 611, 281, 23025, 318, 1944, 416, 43087, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 33245, 62, 20147, 81, 930, 2935, 6519, 273, 4554, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 374, 85, 62, 25579, 930, 1052, 38983, 318, 1944, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 32741, 1976, 66, 87, 62, 64, 499, 62, 47749, 62, 49140, 930, 33245, 62, 20147, 81, 2314, 307, 9242, 198, 220, 220, 220, 220, 220, 318, 62, 1236, 14221, 62, 25579, 62, 1525, 62, 20147, 81, 30023, 9863, 2751, 33245, 62, 20147, 81, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 4871, 20147, 81, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 25579, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 64, 499, 62, 47749, 62, 49140, 11, 198, 220, 220, 220, 220, 220, 366, 0, 6822, 611, 281, 23025, 318, 1944, 416, 1366, 7885, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 45329, 62, 7890, 930, 35748, 25683, 355, 4526, 37, 5390, 23025, 1398, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 374, 85, 62, 25579, 930, 1052, 38983, 318, 1944, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 32741, 1976, 66, 87, 62, 64, 499, 62, 47749, 62, 49140, 930, 45329, 62, 7890, 318, 407, 257, 4941, 7885, 284, 281, 23025, 198, 220, 220, 220, 220, 220, 318, 62, 1236, 14221, 62, 25579, 62, 1525, 62, 7890, 30023, 9863, 2751, 45329, 62, 7890, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 597, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 25579, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 64, 499, 62, 47749, 62, 49140, 11, 198, 220, 220, 220, 220, 220, 366, 0, 3497, 281, 23025, 4554, 416, 663, 1438, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 4871, 3672, 930, 1052, 38983, 1398, 1438, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 686, 62, 1236, 14221, 930, 4062, 23025, 1398, 4554, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 32741, 1976, 66, 87, 62, 64, 499, 62, 1236, 14221, 62, 1662, 62, 25579, 930, 1052, 38983, 318, 407, 1944, 198, 220, 220, 220, 220, 220, 651, 62, 1236, 14221, 62, 1525, 62, 3672, 30023, 9863, 2751, 21628, 62, 4871, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 4871, 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, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 1236, 14221, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 64, 499, 62, 1236, 14221, 62, 8692, 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, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 64, 499, 62, 1236, 14221, 62, 1662, 62, 25579, 11, 198, 220, 220, 220, 220, 220, 366, 0, 3497, 281, 23025, 4554, 416, 43087, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 33245, 62, 20147, 81, 930, 2935, 6519, 273, 4554, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 686, 62, 1236, 14221, 930, 4062, 23025, 1398, 4554, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 32741, 1976, 66, 87, 62, 64, 499, 62, 47749, 62, 49140, 930, 33245, 62, 20147, 81, 2314, 307, 9242, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 32741, 1976, 66, 87, 62, 64, 499, 62, 1236, 14221, 62, 1662, 62, 25579, 930, 1052, 38983, 318, 407, 1944, 198, 220, 220, 220, 220, 220, 651, 62, 1236, 14221, 62, 1525, 62, 20147, 81, 30023, 9863, 2751, 33245, 62, 20147, 81, 220, 220, 220, 220, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
******************************************************************* * System-defined Include-files. * ******************************************************************* INCLUDE LZBT_TR_BUG_GROUPTOP. " Global Data INCLUDE LZBT_TR_BUG_GROUPUXX. " Function Modules ******************************************************************* * User-defined Include-files (if necessary). * ******************************************************************* * INCLUDE LZBT_TR_BUG_GROUPF... " Subroutines * INCLUDE LZBT_TR_BUG_GROUPO... " PBO-Modules * INCLUDE LZBT_TR_BUG_GROUPI... " PAI-Modules * INCLUDE LZBT_TR_BUG_GROUPE... " Events * INCLUDE LZBT_TR_BUG_GROUPP... " Local class implement. INCLUDE LZBT_TR_BUG_GROUPO01. INCLUDE LZBT_TR_BUG_GROUPI01. INCLUDE LZBT_TR_BUG_GROUPI02. INCLUDE LZBT_TR_BUG_GROUPF01. INCLUDE LZBT_TR_BUG_GROUPF02.
[ 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, 19313, 62, 5446, 62, 12953, 62, 10761, 2606, 11571, 3185, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 8060, 6060, 198, 220, 3268, 5097, 52, 7206, 406, 57, 19313, 62, 5446, 62, 12953, 62, 10761, 2606, 5105, 8051, 13, 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, 19313, 62, 5446, 62, 12953, 62, 46846, 37, 986, 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, 19313, 62, 5446, 62, 12953, 62, 10761, 2606, 16402, 986, 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, 19313, 62, 5446, 62, 12953, 62, 10761, 2606, 11901, 986, 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, 19313, 62, 5446, 62, 12953, 62, 10761, 2606, 11401, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 18715, 198, 9, 3268, 5097, 52, 7206, 406, 57, 19313, 62, 5446, 62, 12953, 62, 10761, 2606, 10246, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 10714, 1398, 3494, 13, 198, 198, 1268, 5097, 52, 7206, 406, 57, 19313, 62, 5446, 62, 12953, 62, 10761, 2606, 16402, 486, 13, 198, 198, 1268, 5097, 52, 7206, 406, 57, 19313, 62, 5446, 62, 12953, 62, 10761, 2606, 11901, 486, 13, 198, 198, 1268, 5097, 52, 7206, 406, 57, 19313, 62, 5446, 62, 12953, 62, 10761, 2606, 11901, 2999, 13, 198, 198, 1268, 5097, 52, 7206, 406, 57, 19313, 62, 5446, 62, 12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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 ]
/* SELECT SINGLE prompting the user to enter the table name. No Inline-declarations. */ DATA: ls_%table% TYPE %table%. SELECT SINGLE * FROM %table% INTO CORRESPONDING FIELDS OF ls_%table% where | . IF sy-subrc eq 0. ELSE. ENDIF.
[ 15211, 33493, 311, 2751, 2538, 21550, 262, 2836, 284, 3802, 262, 3084, 1438, 13, 1400, 554, 1370, 12, 32446, 24355, 13, 9466, 201, 198, 26947, 25, 43979, 62, 4, 11487, 4, 41876, 4064, 11487, 7225, 201, 198, 46506, 311, 2751, 2538, 1635, 16034, 4064, 11487, 4, 39319, 23929, 19535, 47, 18672, 2751, 18930, 3698, 5258, 3963, 43979, 62, 4, 11487, 4, 201, 198, 220, 220, 220, 810, 930, 764, 201, 198, 5064, 827, 12, 7266, 6015, 37430, 657, 13, 201, 198, 220, 220, 220, 220, 201, 198, 3698, 5188, 13, 201, 198, 220, 220, 220, 220, 201, 198, 10619, 5064, 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 ]
FUNCTION zgtt_sof_ote_de_hdr_rel. *"---------------------------------------------------------------------- *"*"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_APPTYPE_TAB) TYPE TRXAS_APPTYPE_TABS_WA *" REFERENCE(I_APP_OBJECT) TYPE TRXAS_APPOBJ_CTAB_WA *" EXPORTING *" VALUE(E_RESULT) LIKE SY-BINPT *" TABLES *" C_LOGTABLE STRUCTURE BAPIRET2 OPTIONAL *" EXCEPTIONS *" PARAMETER_ERROR *" RELEVANCE_DETERM_ERROR *" STOP_PROCESSING *"---------------------------------------------------------------------- *----------------------------------------------------------------------* * Top Include * TYPE-POOLS:trxas. *----------------------------------------------------------------------* DATA: lv_aot_relevance TYPE boole_d. FIELD-SYMBOLS: <ls_xlikp> TYPE likpvb. * <1> Check if Main table is Delivery Order or not. IF i_app_object-maintabdef <> gc_bpt_delivery_header_new. PERFORM create_logtable_ao_rel TABLES c_logtable USING i_app_object-maintabdef space i_app_obj_types-trrelfunc i_app_object-appobjtype i_appsys. RAISE parameter_error. ELSE. * Read Main Object Table (Delivery Order - LIKP) ASSIGN i_app_object-maintabref->* TO <ls_xlikp>. ENDIF. * <3> Check Relevance of AOT: YN_OTE PERFORM check_aot_relevance_dlv USING <ls_xlikp> CHANGING lv_aot_relevance. CHECK lv_aot_relevance IS NOT INITIAL. * <4> If Subsequent Document is created, Do not update Sales Order * IF <ls_xvbak>-updkz <> gc_insert. * PERFORM check_subseq_doc_available * USING i_all_appl_tables * CHANGING lv_aot_relevance. * ENDIF. * CHECK lv_aot_relevance IS NOT INITIAL. * <5> If Delivery Order is NOT newly created, Check is Critical Changes Made IF <ls_xlikp>-updkz <> gc_insert. PERFORM check_for_header_changes_dlv USING i_all_appl_tables <ls_xlikp> CHANGING lv_aot_relevance. ENDIF. IF lv_aot_relevance = gc_true. e_result = gc_true_condition. ELSE. e_result = gc_false_condition. ENDIF. ENDFUNCTION.
[ 42296, 4177, 2849, 1976, 70, 926, 62, 568, 69, 62, 1258, 62, 2934, 62, 71, 7109, 62, 2411, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 14565, 26491, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 2969, 3705, 16309, 8, 41876, 220, 1220, 50, 2969, 5446, 55, 14, 2969, 6489, 23060, 25361, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 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, 25216, 62, 5603, 33, 8, 41876, 220, 7579, 55, 1921, 62, 24805, 25216, 62, 5603, 4462, 62, 15543, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 24805, 62, 9864, 23680, 8, 41876, 220, 7579, 55, 1921, 62, 24805, 9864, 41, 62, 4177, 6242, 62, 15543, 198, 9, 1, 220, 7788, 15490, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 36, 62, 19535, 16724, 8, 34178, 220, 19704, 12, 33, 1268, 11571, 198, 9, 1, 220, 309, 6242, 28378, 198, 9, 1, 220, 220, 220, 220, 220, 327, 62, 25294, 38148, 19269, 18415, 11335, 220, 347, 17614, 26087, 17, 39852, 2849, 1847, 198, 9, 1, 220, 7788, 42006, 11053, 198, 9, 1, 220, 220, 220, 220, 220, 29463, 2390, 2767, 1137, 62, 24908, 198, 9, 1, 220, 220, 220, 220, 220, 49968, 53, 19240, 62, 35, 2767, 1137, 44, 62, 24908, 198, 9, 1, 220, 220, 220, 220, 220, 44934, 62, 4805, 4503, 7597, 2751, 198, 9, 1, 10097, 23031, 198, 9, 10097, 23031, 9, 198, 9, 5849, 40348, 198, 9, 41876, 12, 16402, 3535, 50, 25, 2213, 87, 292, 13, 198, 9, 10097, 23031, 9, 628, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 300, 85, 62, 64, 313, 62, 260, 2768, 590, 41876, 1489, 2305, 62, 67, 13, 628, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 198, 220, 220, 220, 1279, 7278, 62, 87, 46965, 79, 29, 220, 220, 220, 220, 220, 220, 41876, 4300, 79, 85, 65, 13, 198, 198, 9, 1279, 16, 29, 6822, 611, 8774, 3084, 318, 28682, 8284, 393, 407, 13, 198, 220, 16876, 1312, 62, 1324, 62, 15252, 12, 76, 2913, 397, 4299, 1279, 29, 308, 66, 62, 65, 457, 62, 12381, 6315, 62, 25677, 62, 3605, 13, 198, 220, 220, 220, 19878, 21389, 2251, 62, 6404, 11487, 62, 5488, 62, 2411, 198, 220, 220, 220, 220, 220, 309, 6242, 28378, 269, 62, 6404, 11487, 198, 220, 220, 220, 220, 220, 1294, 2751, 220, 1312, 62, 1324, 62, 15252, 12, 76, 2913, 397, 4299, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2272, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 1324, 62, 26801, 62, 19199, 12, 2213, 260, 1652, 19524, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 1324, 62, 15252, 12, 1324, 26801, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 1324, 17597, 13, 198, 220, 220, 220, 17926, 24352, 11507, 62, 18224, 13, 198, 220, 17852, 5188, 13, 198, 9, 220, 220, 4149, 8774, 9515, 8655, 357, 33129, 8284, 532, 406, 18694, 47, 8, 198, 220, 220, 220, 24994, 16284, 1312, 62, 1324, 62, 15252, 12, 76, 2913, 397, 5420, 3784, 9, 5390, 1279, 7278, 62, 87, 46965, 79, 28401, 198, 220, 23578, 5064, 13, 628, 198, 9, 1279, 18, 29, 6822, 797, 2768, 590, 286, 317, 2394, 25, 575, 45, 62, 23051, 198, 220, 19878, 21389, 2198, 62, 64, 313, 62, 260, 2768, 590, 62, 67, 6780, 198, 220, 220, 220, 220, 1294, 2751, 220, 220, 220, 1279, 7278, 62, 87, 46965, 79, 29, 198, 220, 220, 220, 220, 5870, 15567, 2751, 300, 85, 62, 64, 313, 62, 260, 2768, 590, 13, 198, 220, 5870, 25171, 300, 85, 62, 64, 313, 62, 260, 2768, 590, 3180, 5626, 3268, 2043, 12576, 13, 198, 198, 9, 1279, 19, 29, 1002, 3834, 44399, 16854, 318, 2727, 11, 2141, 407, 4296, 17329, 8284, 198, 9, 220, 16876, 1279, 7278, 62, 87, 85, 65, 461, 29, 12, 929, 34388, 89, 1279, 29, 308, 66, 62, 28463, 13, 198, 9, 220, 220, 220, 19878, 21389, 2198, 62, 7266, 41068, 62, 15390, 62, 15182, 198, 9, 220, 220, 220, 220, 220, 1294, 2751, 220, 220, 220, 1312, 62, 439, 62, 1324, 75, 62, 83, 2977, 198, 9, 220, 220, 220, 220, 220, 5870, 15567, 2751, 300, 85, 62, 64, 313, 62, 260, 2768, 590, 13, 198, 9, 220, 23578, 5064, 13, 198, 9, 220, 5870, 25171, 300, 85, 62, 64, 313, 62, 260, 2768, 590, 3180, 5626, 3268, 2043, 12576, 13, 198, 198, 9, 1279, 20, 29, 1002, 28682, 8284, 318, 5626, 8308, 2727, 11, 6822, 318, 17684, 19179, 14446, 198, 220, 16876, 1279, 7278, 62, 87, 46965, 79, 29, 12, 929, 34388, 89, 1279, 29, 308, 66, 62, 28463, 13, 198, 220, 220, 220, 19878, 21389, 2198, 62, 1640, 62, 25677, 62, 36653, 62, 67, 6780, 198, 220, 220, 220, 220, 220, 1294, 2751, 220, 220, 220, 1312, 62, 439, 62, 1324, 75, 62, 83, 2977, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 87, 46965, 79, 29, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 300, 85, 62, 64, 313, 62, 260, 2768, 590, 13, 198, 220, 23578, 5064, 13, 628, 220, 16876, 300, 85, 62, 64, 313, 62, 260, 2768, 590, 796, 308, 66, 62, 7942, 13, 198, 220, 220, 220, 304, 62, 20274, 796, 308, 66, 62, 7942, 62, 31448, 13, 198, 220, 17852, 5188, 13, 198, 220, 220, 220, 304, 62, 20274, 796, 308, 66, 62, 9562, 62, 31448, 13, 198, 220, 23578, 5064, 13, 198, 198, 1677 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZSAPLINK_MESSAGE_CLASS definition public inheriting from ZSAPLINK create public . public section. methods CHECKEXISTS redefinition . methods CREATEIXMLDOCFROMOBJECT redefinition . methods CREATEOBJECTFROMIXMLDOC redefinition . protected section. methods DELETEOBJECT redefinition . methods GETOBJECTTYPE redefinition . private section. endclass. "ZSAPLINK_MESSAGE_CLASS definition *----------------------------------------------------------------------* * class ZSAPLINK_MESSAGE_CLASS implementation. *----------------------------------------------------------------------* * *----------------------------------------------------------------------* class ZSAPLINK_MESSAGE_CLASS implementation. */---------------------------------------------------------------------\ *| This file is part of SAPlink. | *| | *| SAPlink is free software; you can redistribute it and/or modify | *| it under the terms of the GNU General Public License as published | *| by the Free Software Foundation; either version 2 of the License, | *| or (at your option) any later version. | *| | *| SAPlink is distributed in the hope that it will be useful, | *| but WITHOUT ANY WARRANTY; without even the implied warranty of | *| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | *| GNU General Public License for more details. | *| | *| You should have received a copy of the GNU General Public License | *| along with SAPlink; if not, write to the | *| Free Software Foundation, Inc., | *| 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | *\---------------------------------------------------------------------/ METHOD checkexists . * Plugin created by: * John Patterson * [email protected] DATA: ls_t100a TYPE t100a, lv_msgid TYPE msgid. lv_msgid = objname. SELECT SINGLE * INTO ls_t100a FROM t100a WHERE arbgb = lv_msgid. IF sy-subrc = 0. exists = 'X'. ENDIF. ENDMETHOD. */---------------------------------------------------------------------\ *| This file is part of SAPlink. | *| | *| SAPlink is free software; you can redistribute it and/or modify | *| it under the terms of the GNU General Public License as published | *| by the Free Software Foundation; either version 2 of the License, | *| or (at your option) any later version. | *| | *| SAPlink is distributed in the hope that it will be useful, | *| but WITHOUT ANY WARRANTY; without even the implied warranty of | *| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | *| GNU General Public License for more details. | *| | *| You should have received a copy of the GNU General Public License | *| along with SAPlink; if not, write to the | *| Free Software Foundation, Inc., | *| 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | *\---------------------------------------------------------------------/ METHOD createixmldocfromobject . * Plugin created by: * John Patterson * [email protected] DATA: lt_t100 TYPE STANDARD TABLE OF t100, lt_t100t TYPE STANDARD TABLE OF t100t, ls_t100 LIKE LINE OF lt_t100, ls_t100t LIKE LINE OF lt_t100t, ls_t100a TYPE t100a. DATA: lv_msgid TYPE msgid, lv_rc TYPE sysubrc, lv_objtype TYPE string. *xml nodes DATA: lr_rootnode TYPE REF TO if_ixml_element, lr_t100_node TYPE REF TO if_ixml_element, lr_t100t_node TYPE REF TO if_ixml_element. lv_msgid = objname. SELECT SINGLE * INTO ls_t100a FROM t100a WHERE arbgb = lv_msgid. IF sy-subrc NE 0. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>not_found. ENDIF. CALL FUNCTION 'RS_ACCESS_PERMISSION' EXPORTING authority_check = 'X' global_lock = space mode = 'SHOW' object = lv_msgid object_class = 'T100' EXCEPTIONS canceled_in_corr = 01 enqueued_by_user = 02 enqueue_system_failure = 03 illegal_parameter_values = 04 locked_by_author = 05 no_modify_permission = 06 no_show_permission = 07 permission_failure = 08. CASE sy-subrc. WHEN 0. WHEN 2 OR 5. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>locked. WHEN 6 OR 7 OR 8 OR 9. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>not_authorized. WHEN OTHERS. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>system_error. ENDCASE. *--- get messages for all maintained languages SELECT * INTO TABLE lt_t100 FROM t100 WHERE arbgb = lv_msgid. *--- get text for t100a SELECT * INTO TABLE lt_t100t FROM t100t WHERE arbgb = lv_msgid. *-- Create parent node lv_objtype = getobjecttype( ). lr_rootnode = xmldoc->create_element( lv_objtype ). setattributesfromstructure( node = lr_rootnode structure = ls_t100a ). *--- Create Elements for Messages LOOP AT lt_t100 INTO ls_t100. lr_t100_node = xmldoc->create_element( 't100' ). setattributesfromstructure( node = lr_t100_node structure = ls_t100 ). lv_rc = lr_rootnode->append_child( lr_t100_node ). ENDLOOP. *--- Create Elements for Texts LOOP AT lt_t100t INTO ls_t100t. lr_t100t_node = xmldoc->create_element( 't100t' ). setattributesfromstructure( node = lr_t100t_node structure = ls_t100t ). lv_rc = lr_rootnode->append_child( lr_t100t_node ). ENDLOOP. lv_rc = xmldoc->append_child( lr_rootnode ). ixmldocument = xmldoc. ENDMETHOD. */---------------------------------------------------------------------\ *| This file is part of SAPlink. | *| | *| SAPlink is free software; you can redistribute it and/or modify | *| it under the terms of the GNU General Public License as published | *| by the Free Software Foundation; either version 2 of the License, | *| or (at your option) any later version. | *| | *| SAPlink is distributed in the hope that it will be useful, | *| but WITHOUT ANY WARRANTY; without even the implied warranty of | *| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | *| GNU General Public License for more details. | *| | *| You should have received a copy of the GNU General Public License | *| along with SAPlink; if not, write to the | *| Free Software Foundation, Inc., | *| 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | *\---------------------------------------------------------------------/ METHOD createobjectfromixmldoc . * Plugin created by: * John Patterson * [email protected] DATA: lt_t100 TYPE STANDARD TABLE OF t100, lt_t100t TYPE STANDARD TABLE OF t100t, ls_t100 LIKE LINE OF lt_t100, ls_t100t LIKE LINE OF lt_t100t, ls_t100a TYPE t100a. DATA: lv_msgid TYPE msgid, lv_rc TYPE sysubrc, lv_objtype TYPE string, lv_checkexists TYPE char1, lv_len TYPE i. *--- xml data objects DATA: lr_rootnode TYPE REF TO if_ixml_element, lr_t100_node TYPE REF TO if_ixml_element, lr_t100t_node TYPE REF TO if_ixml_element, lr_filter TYPE REF TO if_ixml_node_filter, lr_iterator TYPE REF TO if_ixml_node_iterator. lv_msgid = objname. lv_objtype = getobjecttype( ). xmldoc = ixmldocument. lr_rootnode = xmldoc->find_from_name( lv_objtype ). CALL METHOD getstructurefromattributes EXPORTING node = lr_rootnode CHANGING structure = ls_t100a. objname = ls_t100a-arbgb. lv_checkexists = checkexists( ). IF lv_checkexists IS NOT INITIAL. IF overwrite IS INITIAL. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>existing. ELSE. deleteobject( ). ENDIF. ENDIF. *--- Read Elements for Messages FREE: lr_filter, lr_iterator, lr_t100_node, lr_t100t_node. lr_filter = xmldoc->create_filter_name( 't100' ). lr_iterator = xmldoc->create_iterator_filtered( lr_filter ). lr_t100_node ?= lr_iterator->get_next( ). WHILE lr_t100_node IS NOT INITIAL. CLEAR ls_t100. CALL METHOD getstructurefromattributes EXPORTING node = lr_t100_node CHANGING structure = ls_t100. APPEND ls_t100 TO lt_t100. lr_t100_node ?= lr_iterator->get_next( ). ENDWHILE. *--- Create Elements for Texts FREE: lr_filter, lr_iterator, lr_t100_node, lr_t100t_node. lr_filter = xmldoc->create_filter_name( 't100t' ). lr_iterator = xmldoc->create_iterator_filtered( lr_filter ). lr_t100t_node ?= lr_iterator->get_next( ). WHILE lr_t100t_node IS NOT INITIAL. CLEAR ls_t100t. CALL METHOD getstructurefromattributes EXPORTING node = lr_t100t_node CHANGING structure = ls_t100t. APPEND ls_t100t TO lt_t100t. lr_t100t_node ?= lr_iterator->get_next( ). ENDWHILE. CALL FUNCTION 'RS_ACCESS_PERMISSION' EXPORTING mode = 'FREE' object = lv_msgid object_class = 'T100'. *--- Check permission CALL FUNCTION 'RS_ACCESS_PERMISSION' EXPORTING authority_check = 'X' global_lock = 'X' mode = 'INSERT' language_upd_exit = 'UPDATE_MASTER' master_language = ls_t100a-masterlang object = lv_msgid object_class = 'T100' suppress_language_check = ' ' EXCEPTIONS canceled_in_corr = 01 enqueued_by_user = 02 enqueue_system_failure = 03 illegal_parameter_values = 04 locked_by_author = 05 no_modify_permission = 06 no_show_permission = 07 permission_failure = 08. CASE sy-subrc. WHEN 0. WHEN 2 OR 5. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>locked. WHEN 6 OR 7 OR 8 OR 9. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>not_authorized. WHEN OTHERS. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>system_error. ENDCASE. CALL FUNCTION 'RS_CORR_INSERT' EXPORTING author = sy-uname global_lock = 'X' object = objname object_class = 'T100' devclass = devclass master_language = sy-langu mode = 'INSERT' * IMPORTING * AUTHOR = UNAME * KORRNUM = CORRNUMBER_LOCAL * DEVCLASS = DEVCLASS_LOCAL EXCEPTIONS cancelled = 1 permission_failure = 2 unknown_objectclass = 3. IF sy-subrc <> 0. CASE sy-subrc. WHEN 2. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>not_authorized. WHEN OTHERS. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>system_error. ENDCASE. ENDIF. *--- update message tables CLEAR: ls_t100a-applclass. ls_t100a-lastuser = sy-uname. ls_t100a-ldate = sy-datum. ls_t100a-ltime = sy-uzeit. MODIFY t100a FROM ls_t100a. MODIFY t100 FROM TABLE lt_t100. MODIFY t100t FROM TABLE lt_t100t. CALL FUNCTION 'RS_TREE_OBJECT_PLACEMENT' EXPORTING object = lv_msgid operation = 'INSERT' type = 'CN'. CALL FUNCTION 'RS_ACCESS_PERMISSION' EXPORTING mode = 'FREE' object = lv_msgid object_class = 'T100'. name = objname. ENDMETHOD. */---------------------------------------------------------------------\ *| This file is part of SAPlink. | *| | *| SAPlink is free software; you can redistribute it and/or modify | *| it under the terms of the GNU General Public License as published | *| by the Free Software Foundation; either version 2 of the License, | *| or (at your option) any later version. | *| | *| SAPlink is distributed in the hope that it will be useful, | *| but WITHOUT ANY WARRANTY; without even the implied warranty of | *| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | *| GNU General Public License for more details. | *| | *| You should have received a copy of the GNU General Public License | *| along with SAPlink; if not, write to the | *| Free Software Foundation, Inc., | *| 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | *\---------------------------------------------------------------------/ method DELETEOBJECT . * Plugin created by: * John Patterson * [email protected] endmethod. */---------------------------------------------------------------------\ *| This file is part of SAPlink. | *| | *| SAPlink is free software; you can redistribute it and/or modify | *| it under the terms of the GNU General Public License as published | *| by the Free Software Foundation; either version 2 of the License, | *| or (at your option) any later version. | *| | *| SAPlink is distributed in the hope that it will be useful, | *| but WITHOUT ANY WARRANTY; without even the implied warranty of | *| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | *| GNU General Public License for more details. | *| | *| You should have received a copy of the GNU General Public License | *| along with SAPlink; if not, write to the | *| Free Software Foundation, Inc., | *| 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | *\---------------------------------------------------------------------/ METHOD getobjecttype . * Plugin created by: * John Patterson * [email protected] objecttype = 'MSAG'. "Message Class ENDMETHOD. endclass. "ZSAPLINK_MESSAGE_CLASS implementation
[ 4871, 1168, 50, 2969, 43, 17248, 62, 44, 1546, 4090, 8264, 62, 31631, 6770, 201, 198, 220, 1171, 201, 198, 220, 10639, 1780, 422, 1168, 50, 2969, 43, 17248, 201, 198, 220, 2251, 1171, 764, 201, 198, 201, 198, 11377, 2665, 13, 201, 198, 201, 198, 220, 5050, 5870, 25171, 6369, 1797, 4694, 201, 198, 220, 220, 220, 34087, 17750, 764, 201, 198, 220, 5050, 29244, 6158, 10426, 5805, 38715, 10913, 2662, 9864, 23680, 201, 198, 220, 220, 220, 34087, 17750, 764, 201, 198, 220, 5050, 29244, 1404, 4720, 33, 23680, 10913, 2662, 10426, 5805, 38715, 201, 198, 220, 220, 220, 34087, 17750, 764, 201, 198, 24326, 2665, 13, 201, 198, 201, 198, 220, 5050, 5550, 28882, 4720, 33, 23680, 201, 198, 220, 220, 220, 34087, 17750, 764, 201, 198, 220, 5050, 17151, 9864, 23680, 25216, 201, 198, 220, 220, 220, 34087, 17750, 764, 201, 198, 19734, 2665, 13, 201, 198, 437, 4871, 13, 366, 57, 50, 2969, 43, 17248, 62, 44, 1546, 4090, 8264, 62, 31631, 6770, 201, 198, 201, 198, 201, 198, 201, 198, 9, 10097, 23031, 9, 201, 198, 9, 220, 220, 220, 220, 220, 220, 1398, 1168, 50, 2969, 43, 17248, 62, 44, 1546, 4090, 8264, 62, 31631, 7822, 13, 201, 198, 9, 10097, 23031, 9, 201, 198, 9, 201, 198, 9, 10097, 23031, 9, 201, 198, 4871, 1168, 50, 2969, 43, 17248, 62, 44, 1546, 4090, 8264, 62, 31631, 7822, 13, 201, 198, 201, 198, 201, 198, 16208, 10097, 30934, 59, 201, 198, 9, 91, 220, 220, 770, 2393, 318, 636, 286, 48323, 8726, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 201, 198, 9, 91, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 201, 198, 9, 91, 220, 220, 48323, 8726, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 220, 220, 930, 201, 198, 9, 91, 220, 220, 340, 739, 262, 2846, 286, 262, 22961, 3611, 5094, 13789, 355, 3199, 930, 201, 198, 9, 91, 220, 220, 416, 262, 3232, 10442, 5693, 26, 2035, 2196, 362, 286, 262, 13789, 11, 930, 201, 198, 9, 91, 220, 220, 393, 357, 265, 534, 3038, 8, 597, 1568, 2196, 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, 930, 201, 198, 9, 91, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 201, 198, 9, 91, 220, 220, 48323, 8726, 318, 9387, 287, 262, 2911, 326, 340, 481, 307, 4465, 11, 220, 220, 220, 220, 220, 220, 220, 930, 201, 198, 9, 91, 220, 220, 475, 42881, 15529, 34764, 56, 26, 1231, 772, 262, 17142, 18215, 286, 220, 220, 220, 930, 201, 198, 9, 91, 220, 220, 34482, 3398, 1565, 5603, 25382, 393, 376, 46144, 7473, 317, 16652, 2149, 37232, 33079, 48933, 13, 220, 4091, 262, 220, 220, 220, 220, 930, 201, 198, 9, 91, 220, 220, 22961, 3611, 5094, 13789, 329, 517, 3307, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 201, 198, 9, 91, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 201, 198, 9, 91, 220, 220, 921, 815, 423, 2722, 257, 4866, 286, 262, 22961, 3611, 5094, 13789, 930, 201, 198, 9, 91, 220, 220, 1863, 351, 48323, 8726, 26, 611, 407, 11, 3551, 284, 262, 220, 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, 201, 198, 9, 91, 220, 220, 3232, 10442, 5693, 11, 3457, 1539, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 201, 198, 9, 91, 220, 220, 6885, 14021, 520, 11, 19383, 22343, 11, 6182, 11, 8779, 220, 657, 2481, 940, 12, 1485, 486, 220, 4916, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 201, 198, 9, 59, 10097, 30934, 14, 201, 198, 49273, 1125, 66, 365, 87, 1023, 764, 201, 198, 201, 198, 9, 220, 220, 220, 220, 220, 42636, 2727, 416, 25, 201, 198, 9, 220, 220, 220, 220, 220, 1757, 27042, 201, 198, 9, 220, 220, 220, 220, 220, 279, 1436, 7639, 31, 14816, 13, 785, 201, 198, 201, 198, 220, 42865, 25, 43979, 62, 83, 3064, 64, 41876, 256, 3064, 64, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 19662, 312, 41876, 31456, 312, 13, 201, 198, 201, 198, 220, 300, 85, 62, 19662, 312, 796, 220, 26181, 3672, 13, 201, 198, 201, 198, 220, 33493, 311, 2751, 2538, 1635, 201, 198, 220, 220, 220, 39319, 43979, 62, 83, 3064, 64, 201, 198, 220, 220, 220, 16034, 256, 3064, 64, 201, 198, 220, 220, 220, 33411, 610 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
class zcx_aps_settings_unknown_app definition public inheriting from cx_static_check final create public. public section. interfaces: if_t100_dyn_msg, if_t100_message. constants: begin of zcx_aps_settings_unknown_app, msgid type symsgid value 'ZAPS_SETTINGS', msgno type symsgno value '001', attr1 type scx_attrname value 'APPID', attr2 type scx_attrname value '', attr3 type scx_attrname value '', attr4 type scx_attrname value '', end of zcx_aps_settings_unknown_app. methods: constructor importing i_textid type scx_t100key default zcx_aps_settings_unknown_app i_previous type ref to cx_root optional i_appId type zaps_appid. protected section. private section. data: appId type zaps_appid. endclass. class zcx_aps_settings_unknown_app implementation. method constructor ##ADT_SUPPRESS_GENERATION. super->constructor( previous = i_previous ). clear textid. if_t100_message~t100key = i_textid. appId = i_appid. endmethod. endclass.
[ 4871, 1976, 66, 87, 62, 1686, 62, 33692, 62, 34680, 62, 1324, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 43213, 62, 12708, 62, 9122, 198, 220, 2457, 198, 220, 2251, 1171, 13, 628, 220, 1171, 2665, 13, 628, 220, 220, 220, 20314, 25, 198, 220, 220, 220, 220, 220, 611, 62, 83, 3064, 62, 67, 2047, 62, 19662, 11, 198, 220, 220, 220, 220, 220, 611, 62, 83, 3064, 62, 20500, 13, 628, 220, 220, 220, 38491, 25, 198, 220, 220, 220, 220, 220, 2221, 286, 1976, 66, 87, 62, 1686, 62, 33692, 62, 34680, 62, 1324, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 2099, 827, 19662, 312, 1988, 705, 57, 44580, 62, 28480, 51, 20754, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 2099, 827, 19662, 3919, 1988, 705, 8298, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 2099, 629, 87, 62, 35226, 3672, 1988, 705, 24805, 2389, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 17, 2099, 629, 87, 62, 35226, 3672, 1988, 705, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 18, 2099, 629, 87, 62, 35226, 3672, 1988, 705, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 19, 2099, 629, 87, 62, 35226, 3672, 1988, 705, 3256, 198, 220, 220, 220, 220, 220, 886, 286, 1976, 66, 87, 62, 1686, 62, 33692, 62, 34680, 62, 1324, 13, 628, 220, 220, 220, 5050, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 5239, 312, 220, 220, 2099, 629, 87, 62, 83, 3064, 2539, 4277, 1976, 66, 87, 62, 1686, 62, 33692, 62, 34680, 62, 1324, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 3866, 1442, 2099, 1006, 284, 43213, 62, 15763, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 1324, 7390, 2099, 1976, 1686, 62, 1324, 312, 13, 198, 220, 6861, 2665, 13, 198, 220, 2839, 2665, 13, 198, 220, 220, 220, 1366, 25, 198, 220, 220, 220, 220, 220, 598, 7390, 2099, 1976, 1686, 62, 1324, 312, 13, 198, 437, 4871, 13, 628, 198, 198, 4871, 1976, 66, 87, 62, 1686, 62, 33692, 62, 34680, 62, 1324, 7822, 13, 628, 198, 220, 2446, 23772, 22492, 2885, 51, 62, 40331, 32761, 62, 35353, 1137, 6234, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 2180, 796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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 ]
*&---------------------------------------------------------------------* *& Include ZHRU_CREATE_BATCH_JOB_S1 *&---------------------------------------------------------------------* PARAMETERS: p_rundt LIKE sy-datum.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1168, 17184, 52, 62, 43387, 6158, 62, 33, 11417, 62, 41, 9864, 62, 50, 16, 198, 9, 5, 10097, 30934, 9, 198, 198, 27082, 2390, 2767, 4877, 25, 279, 62, 622, 358, 83, 34178, 827, 12, 19608, 388, 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 ]
*&---------------------------------------------------------------------* *& Include LZFILE_UTILSD06 *&---------------------------------------------------------------------* *&---------------------------------------------------------------------* *& Class lcl_screen_objects_col_simple *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* CLASS lcl_screen_objects_col_simple DEFINITION INHERITING FROM lcl_screen_objects_col. PUBLIC SECTION. METHODS: build_alv_tree REDEFINITION. PROTECTED SECTION. METHODS: init_container REDEFINITION, init_splitter_left REDEFINITION. ENDCLASS. CLASS lcl_screen_objects_col_simple IMPLEMENTATION. METHOD build_alv_tree. FIELD-SYMBOLS: <node_table> TYPE zcl_dir_cont=>tt_file_alv. IF mv_alv_constructed EQ abap_false. me->init_container( ). me->init_splitter_left( ). *** Kein Drag und Drop!! * me->init_dd_objects( ). *** Kein Text-Edit! * me->init_text_edit( ). ********************************************************************** me->init_alv_tree_col( ). me->init_toolbar( ). mr_node_table = NEW #( ). mv_alv_constructed = abap_true. ENDIF. me->add_root_node_to_tree( ). ENDMETHOD. METHOD init_container. CREATE OBJECT mo_docking_bottom EXPORTING side = cl_gui_docking_container=>dock_at_bottom " Side to which this control is docked to * extension = 250 " Extension of this control ratio = 67 " Prozent des Dynpros: gewinnt gegen EXTENSION EXCEPTIONS cntl_error = 1 " Invalid parent control cntl_system_error = 2 " System Error create_error = 3 " Create Error lifetime_error = 4 " Lifetime Error lifetime_dynpro_dynpro_link = 5 " LIFETIME_DYNPRO_DYNPRO_LINK OTHERS = 6. IF sy-subrc <> 0. RAISE EXCEPTION TYPE zcx_scrn_err MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. ENDMETHOD. METHOD init_splitter_left. CREATE OBJECT mo_splitter_left EXPORTING parent = mo_docking_bottom " Parent Container rows = 2 " Anzahl zu zeigender Zeilen columns = 1 " Anzahl zu zeigender Spalten EXCEPTIONS cntl_error = 1 " siehe Oberklasse cntl_system_error = 2 " siehe Oberklasse OTHERS = 3. IF sy-subrc <> 0. zcx_scrn_err=>raise_from_msg( |Error while creating left splitter (sy-subrc:{ sy-subrc })| ). ENDIF. ********************************************************************** mo_splitter_left->set_row_mode( EXPORTING mode = cl_gui_splitter_container=>mode_relative " Zeilenmodus EXCEPTIONS cntl_error = 1 " siehe CL_GUI_CONTROL cntl_system_error = 2 " siehe CL_GUI_CONTROL OTHERS = 3 ). IF sy-subrc <> 0. zcx_scrn_err=>raise_from_msg( |Error set_row_mode (sy-subrc:{ sy-subrc })| ). ENDIF. ********************************************************************** mo_splitter_left->set_row_sash( EXPORTING id = 1 type = cl_gui_splitter_container=>type_sashvisible value = cl_gui_splitter_container=>false ). ********************************************************************** mo_splitter_left->set_row_height( EXPORTING id = 1 " Id der Zeile height = 5 " Höhe EXCEPTIONS cntl_error = 1 " siehe CL_GUI_CONTROL cntl_system_error = 2 " siehe CL_GUI_CONTROL OTHERS = 3 ). IF sy-subrc <> 0. zcx_scrn_err=>raise_from_msg( |Error set_column_width (sy-subrc:{ sy-subrc })| ). ENDIF. ENDMETHOD. ENDCLASS.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 406, 57, 25664, 62, 3843, 4146, 10305, 3312, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 5016, 300, 565, 62, 9612, 62, 48205, 62, 4033, 62, 36439, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 31631, 300, 565, 62, 9612, 62, 48205, 62, 4033, 62, 36439, 5550, 20032, 17941, 3268, 16879, 2043, 2751, 16034, 300, 565, 62, 9612, 62, 48205, 62, 4033, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 1382, 62, 282, 85, 62, 21048, 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, 2315, 62, 34924, 23848, 36, 20032, 17941, 11, 198, 220, 220, 220, 220, 220, 2315, 62, 22018, 1967, 62, 9464, 23848, 36, 20032, 17941, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 9612, 62, 48205, 62, 4033, 62, 36439, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 1382, 62, 282, 85, 62, 21048, 13, 198, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 17440, 62, 11487, 29, 41876, 1976, 565, 62, 15908, 62, 3642, 14804, 926, 62, 7753, 62, 282, 85, 13, 198, 220, 220, 220, 16876, 285, 85, 62, 282, 85, 62, 1102, 16242, 36529, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 502, 3784, 15003, 62, 34924, 7, 6739, 198, 220, 220, 220, 220, 220, 502, 3784, 15003, 62, 22018, 1967, 62, 9464, 7, 6739, 198, 8162, 3873, 259, 12697, 3318, 14258, 3228, 198, 9, 220, 220, 220, 220, 220, 502, 3784, 15003, 62, 1860, 62, 48205, 7, 6739, 198, 8162, 3873, 259, 8255, 12, 18378, 0, 198, 9, 220, 220, 220, 220, 220, 502, 3784, 15003, 62, 5239, 62, 19312, 7, 6739, 198, 17174, 17174, 2466, 1174, 198, 220, 220, 220, 220, 220, 502, 3784, 15003, 62, 282, 85, 62, 21048, 62, 4033, 7, 6739, 198, 220, 220, 220, 220, 220, 502, 3784, 15003, 62, 25981, 5657, 7, 6739, 198, 220, 220, 220, 220, 220, 285, 81, 62, 17440, 62, 11487, 796, 12682, 1303, 7, 6739, 198, 220, 220, 220, 220, 220, 285, 85, 62, 282, 85, 62, 1102, 16242, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 502, 3784, 2860, 62, 15763, 62, 17440, 62, 1462, 62, 21048, 7, 6739, 198, 220, 23578, 49273, 13, 198, 220, 337, 36252, 2315, 62, 34924, 13, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 6941, 62, 67, 8629, 62, 22487, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1735, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 537, 62, 48317, 62, 67, 8629, 62, 34924, 14804, 67, 735, 62, 265, 62, 22487, 220, 220, 220, 220, 366, 12075, 284, 543, 428, 1630, 318, 288, 3543, 284, 198, 9, 220, 220, 220, 220, 220, 220, 7552, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 8646, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 27995, 286, 428, 220, 1630, 198, 220, 220, 220, 220, 220, 220, 220, 8064, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 8275, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 1041, 89, 298, 748, 39530, 1676, 82, 25, 308, 413, 259, 429, 308, 1533, 268, 27489, 16938, 2849, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 269, 429, 75, 62, 18224, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 352, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 17665, 2560, 1630, 198, 220, 220, 220, 220, 220, 220, 220, 269, 429, 75, 62, 10057, 62, 18224, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 362, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 4482, 13047, 198, 220, 220, 220, 220, 220, 220, 220, 2251, 62, 18224, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 513, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 13610, 13047, 198, 220, 220, 220, 220, 220, 220, 220, 10869, 62, 18224, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 604, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 40870, 13047, 198, 220, 220, 220, 220, 220, 220, 220, 10869, 62, 67, 2047, 1676, 62, 67, 2047, 1676, 62, 8726, 796, 642, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 406, 5064, 2767, 12789, 62, 35, 40760, 31190, 62, 35, 40760, 31190, 62, 43, 17248, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 718, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 17926, 24352, 7788, 42006, 2849, 41876, 1976, 66, 87, 62, 1416, 35906, 62, 8056, 198, 220, 220, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 4522, 827, 12, 19662, 312, 41876, 827, 12, 19662, 774, 36871, 13246, 827, 12, 19662, 3919, 198, 220, 220, 220, 220, 220, 220, 220, 13315, 827, 12, 19662, 85, 16, 827, 12, 19662, 85, 17, 827, 12, 19662, 85, 18, 827, 12, 19662, 85, 19, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 49273, 13, 198, 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,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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 ]
CLASS ycl_abapgit_gui_page_db DEFINITION PUBLIC INHERITING FROM ycl_abapgit_gui_page FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES: yif_abapgit_gui_page_hotkey. METHODS constructor . METHODS yif_abapgit_gui_page~on_event REDEFINITION . PROTECTED SECTION. METHODS render_content REDEFINITION . PRIVATE SECTION. CONSTANTS: BEGIN OF c_action, delete TYPE string VALUE 'delete', END OF c_action . CLASS-METHODS delete IMPORTING !is_key TYPE yif_abapgit_persistence=>ty_content RAISING ycx_abapgit_exception ycx_abapgit_cancel . METHODS explain_content IMPORTING !is_data TYPE yif_abapgit_persistence=>ty_content RETURNING VALUE(rv_text) TYPE string RAISING ycx_abapgit_exception . ENDCLASS. CLASS YCL_ABAPGIT_GUI_PAGE_DB IMPLEMENTATION. METHOD constructor. super->constructor( ). ms_control-page_title = 'DATABASE PERSISTENCY'. ENDMETHOD. " constructor. METHOD delete. DATA: lv_answer TYPE c LENGTH 1. ASSERT is_key-type IS NOT INITIAL. lv_answer = ycl_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 ). "#EC NOTEXT IF lv_answer = '2'. RAISE EXCEPTION TYPE ycx_abapgit_cancel. ENDIF. ycl_abapgit_persistence_db=>get_instance( )->delete( iv_type = is_key-type iv_value = is_key-value ). COMMIT WORK. ENDMETHOD. " delete METHOD explain_content. DATA: ls_result TYPE match_result, ls_match TYPE submatch_result, lv_cnt TYPE i. CASE is_data-type. WHEN '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>{ ycl_abapgit_url=>name( rv_text ) }</strong>|. ELSE. rv_text = |Off-line, Name: <strong>{ rv_text }</strong>|. ENDIF. WHEN '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: { ycl_abapgit_repo_srv=>get_instance( )->get( is_data-value )->get_name( ) }|. WHEN 'USER'. rv_text = '-'. " No additional explanation for user WHEN 'SETTINGS'. rv_text = '-'. 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. "explain_content METHOD render_content. DATA: lt_data TYPE yif_abapgit_persistence=>tt_content, lv_action TYPE string, lv_trclass TYPE string, lo_toolbar TYPE REF TO ycl_abapgit_html_toolbar. FIELD-SYMBOLS: <ls_data> LIKE LINE OF lt_data. lt_data = ycl_abapgit_persistence_db=>get_instance( )->list( ). CREATE OBJECT ro_html. ro_html->add( '<div class="db_list">' ). ro_html->add( '<table class="db_tab">' ). " Header ro_html->add( '<thead>' ). ro_html->add( '<tr>' ). ro_html->add( '<th>Type</th>' ). ro_html->add( '<th>Key</th>' ). ro_html->add( '<th>Data</th>' ). ro_html->add( '<th></th>' ). ro_html->add( '</tr>' ). ro_html->add( '</thead>' ). ro_html->add( '<tbody>' ). " Lines LOOP AT lt_data ASSIGNING <ls_data>. CLEAR lv_trclass. IF sy-tabix = 1. lv_trclass = ' class="firstrow"' ##NO_TEXT. ENDIF. lv_action = ycl_abapgit_html_action_utils=>dbkey_encode( <ls_data> ). CREATE OBJECT lo_toolbar. lo_toolbar->add( iv_txt = 'Display' iv_act = |{ yif_abapgit_definitions=>c_action-db_display }?{ lv_action }| ). lo_toolbar->add( iv_txt = 'Edit' iv_act = |{ yif_abapgit_definitions=>c_action-db_edit }?{ lv_action }| ). lo_toolbar->add( iv_txt = 'Delete' iv_act = |{ c_action-delete }?{ lv_action }| ). ro_html->add( |<tr{ lv_trclass }>| ). ro_html->add( |<td>{ <ls_data>-type }</td>| ). ro_html->add( |<td>{ <ls_data>-value }</td>| ). ro_html->add( |<td class="data">{ explain_content( <ls_data> ) }</td>| ). ro_html->add( '<td>' ). ro_html->add( lo_toolbar->render( ) ). ro_html->add( '</td>' ). ro_html->add( '</tr>' ). ENDLOOP. ro_html->add( '</tbody>' ). ro_html->add( '</table>' ). ro_html->add( '</div>' ). ENDMETHOD. "render_content METHOD yif_abapgit_gui_page_hotkey~get_hotkey_actions. ENDMETHOD. METHOD yif_abapgit_gui_page~on_event. DATA: ls_db TYPE yif_abapgit_persistence=>ty_content. CASE iv_action. WHEN c_action-delete. ls_db = ycl_abapgit_html_action_utils=>dbkey_decode( iv_getdata ). delete( ls_db ). ev_state = yif_abapgit_definitions=>c_event_state-re_render. ENDCASE. ENDMETHOD. ENDCLASS.
[ 31631, 331, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 9945, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 331, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 331, 361, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 8940, 2539, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 764, 628, 220, 220, 220, 337, 36252, 50, 331, 361, 62, 397, 499, 18300, 62, 48317, 62, 7700, 93, 261, 62, 15596, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 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, 41876, 4731, 26173, 8924, 705, 33678, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 2673, 764, 628, 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, 331, 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, 331, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 66, 21130, 764, 198, 220, 220, 220, 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, 331, 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, 331, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 575, 5097, 62, 6242, 2969, 38, 2043, 62, 40156, 62, 4537, 8264, 62, 11012, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 198, 220, 220, 220, 13845, 62, 13716, 12, 7700, 62, 7839, 796, 705, 35, 1404, 6242, 11159, 350, 4877, 8808, 45155, 4458, 198, 220, 23578, 49273, 13, 220, 366, 23772, 13, 628, 198, 220, 337, 36252, 12233, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 41484, 41876, 269, 406, 49494, 352, 13, 628, 220, 220, 220, 24994, 17395, 318, 62, 2539, 12, 4906, 3180, 5626, 3268, 2043, 12576, 13, 628, 220, 220, 220, 300, 85, 62, 41484, 796, 331, 565, 62, 397, 499, 18300, 62, 9019, 62, 69, 9548, 14804, 1136, 62, 12924, 4739, 7, 1267, 3784, 12924, 929, 62, 1462, 62, 10414, 2533, 7, 198, 220, 220, 220, 220, 220, 21628, 62, 7839, 5657, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 20361, 6, 198, 220, 220, 220, 220, 220, 21628, 62, 5239, 62, 25652, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 38727, 8348, 198, 220, 220, 220, 220, 220, 21628, 62, 5239, 62, 16539, 62, 16, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 18690, 6, 198, 220, 220, 220, 220, 220, 21628, 62, 4749, 62, 16539, 62, 16, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 2149, 1340, 62, 7206, 2538, 9328, 6, 198, 220, 220, 220, 220, 220, 21628, 62, 5239, 62, 16539, 62, 17, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 34, 21130, 6, 198, 220, 220, 220, 220, 220, 21628, 62, 4749, 62, 16539, 62, 17, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 2149, 1340, 62, 34, 20940, 3698, 6, 198, 220, 220, 220, 220, 220, 21628, 62, 12286, 62, 16539, 220, 220, 220, 220, 220, 220, 220, 796, 705, 17, 6, 198, 220, 220, 220, 220, 220, 21628, 62, 13812, 62, 66, 21130, 62, 16539, 796, 450, 499, 62, 9562, 6739, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 628, 220, 220, 220, 16876, 300, 85, 62, 41484, 796, 705, 17, 4458, 198, 220, 220, 220, 220, 220, 17926, 24352, 7788, 42006, 2849, 41876, 331, 66, 87, 62, 397, 499, 18300, 62, 66, 21130, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 331, 565, 62, 397, 499, 18300, 62, 19276, 13274, 62, 9945, 14804, 1136, 62, 39098, 7, 1267, 3784, 33678, 7, 198, 220, 220, 220, 220, 220, 21628, 62, 4906, 220, 796, 318, 62, 2539, 12, 4906, 198, 220, 220, 220, 220, 220, 21628, 62, 8367, 796, 318, 62, 2539, 12, 8367, 6739, 628, 220, 220, 220, 22240, 2043, 30936, 13, 628, 220, 23578, 49273, 13, 220, 366, 12233, 628, 198, 220, 337, 36252, 4727, 62, 11299, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 20274, 41876, 2872, 62, 20274, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 15699, 220, 41876, 850, 15699, 62, 20274, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 66, 429, 220, 220, 220, 41876, 1312, 13, 628, 198, 220, 220, 220, 42001, 318, 62, 7890, 12, 4906, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 2200, 16402, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 376, 12115, 31328, 440, 4093, 31302, 18310, 3963, 23337, 6369, 705, 27, 6371, 33994, 15885, 36475, 6371, 29, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3268, 318, 62, 7890, 12, 7890, 62, 2536, 28730, 1581, 2751, 42001 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_anagram DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. METHODS anagram IMPORTING input TYPE string candidates TYPE string_table RETURNING VALUE(result) TYPE string_table. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_anagram IMPLEMENTATION. METHOD anagram. LOOP AT candidates INTO DATA(candidate). IF strlen( candidate ) = strlen( input ) AND to_upper( candidate ) <> to_upper( input ). DATA(str) = candidate. DO strlen( input ) TIMES. str = COND #( WHEN str CS substring( val = input off = sy-index - 1 len = 1 ) THEN replace( val = str off = sy-fdpos len = 1 with = `` ) ELSE `THROW could be used to exit COND gracefully, but its not being accepted` ). ENDDO. IF str IS INITIAL. APPEND candidate TO result. ENDIF. ENDIF. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 272, 6713, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 281, 6713, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5128, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5871, 220, 220, 220, 41876, 4731, 62, 11487, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 4731, 62, 11487, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 198, 198, 31631, 1976, 565, 62, 272, 6713, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 281, 6713, 13, 198, 220, 220, 220, 17579, 3185, 5161, 5871, 39319, 42865, 7, 46188, 20540, 737, 198, 220, 220, 220, 220, 220, 16876, 965, 11925, 7, 4540, 1267, 796, 965, 11925, 7, 5128, 1267, 5357, 284, 62, 45828, 7, 4540, 1267, 1279, 29, 284, 62, 45828, 7, 5128, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 2536, 8, 796, 4540, 13, 198, 220, 220, 220, 220, 220, 220, 220, 8410, 965, 11925, 7, 5128, 1267, 31742, 1546, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 965, 796, 7102, 35, 1303, 7, 42099, 965, 9429, 3293, 1806, 7, 1188, 796, 5128, 572, 796, 827, 12, 9630, 532, 352, 18896, 796, 352, 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, 42243, 220, 220, 220, 220, 220, 220, 220, 6330, 7, 220, 220, 1188, 796, 965, 220, 220, 572, 796, 827, 12, 16344, 1930, 220, 220, 220, 220, 18896, 796, 352, 351, 796, 7559, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17852, 5188, 4600, 4221, 49, 3913, 714, 307, 973, 284, 8420, 7102, 35, 11542, 2759, 11, 475, 663, 407, 852, 6292, 63, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 18227, 13, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 965, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43504, 10619, 4540, 5390, 1255, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 21982, 3185, 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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cl_abapgit_objects_super CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_abapgit_object . PROTECTED SECTION. METHODS get_generic RETURNING VALUE(ro_generic) TYPE REF TO zcl_abapgit_objects_generic RAISING zcx_abapgit_exception . PRIVATE SECTION. ENDCLASS. CLASS zcl_abapgit_object_iwom IMPLEMENTATION. METHOD get_generic. CREATE OBJECT ro_generic EXPORTING is_item = ms_item iv_language = mv_language. ENDMETHOD. METHOD zif_abapgit_object~changed_by. rv_user = zcl_abapgit_objects_super=>c_user_unknown. ENDMETHOD. METHOD zif_abapgit_object~delete. get_generic( )->delete( ). ENDMETHOD. METHOD zif_abapgit_object~deserialize. get_generic( )->deserialize( iv_package = iv_package io_xml = io_xml ). ENDMETHOD. METHOD zif_abapgit_object~exists. rv_bool = get_generic( )->exists( ). ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). rs_metadata-delete_tadir = abap_true. ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = abap_false. ENDMETHOD. METHOD zif_abapgit_object~jump. ENDMETHOD. METHOD zif_abapgit_object~serialize. get_generic( )->serialize( io_xml ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 14246, 296, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 41357, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 41357, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 41357, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 14246, 296, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 651, 62, 41357, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 686, 62, 41357, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 9186, 220, 220, 220, 220, 796, 13845, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 796, 285, 85, 62, 16129, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 198, 220, 220, 220, 374, 85, 62, 7220, 796, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 14804, 66, 62, 7220, 62, 34680, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 33678, 13, 628, 220, 220, 220, 651, 62, 41357, 7, 1267, 3784, 33678, 7, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 8906, 48499, 1096, 13, 628, 220, 220, 220, 651, 62, 41357, 7, 1267, 3784, 8906, 48499, 1096, 7, 198, 220, 220, 220, 220, 220, 21628, 62, 26495, 796, 21628, 62, 26495, 198, 220, 220, 220, 220, 220, 33245, 62, 19875, 220, 220, 220, 220, 796, 33245, 62, 19875, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1069, 1023, 13, 628, 220, 220, 220, 374, 85, 62, 30388, 796, 651, 62, 41357, 7, 1267, 3784, 1069, 1023, 7, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1136, 62, 785, 1845, 1352, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1136, 62, 8906, 48499, 1096, 62, 20214, 13, 198, 220, 220, 220, 43504, 10619, 1976, 361, 62, 397, 499, 18300, 62, 15252, 14804, 36484, 62, 9662, 62, 312, 12, 397, 499, 5390, 374, 83, 62, 20214, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1136, 62, 38993, 13, 628, 220, 220, 220, 44608, 62, 38993, 796, 651, 62, 38993, 7, 6739, 198, 220, 220, 220, 44608, 62, 38993, 12, 33678, 62, 83, 324, 343, 796, 450, 499, 62, 7942, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 271, 62, 5275, 13, 198, 220, 220, 220, 374, 85, 62, 5275, 796, 318, 62, 5275, 7, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 271, 62, 24162, 13, 628, 220, 220, 220, 374, 85, 62, 271, 62, 24162, 796, 450, 499, 62, 9562, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 43327, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 46911, 1096, 13, 628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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS 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, 198, 198, 31631, 1976, 46583, 62, 72, 62, 2416, 62, 2070, 278, 62, 76, 541, 78, 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 ]
CLASS zcl_abapgit_object_ddls DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. METHODS constructor IMPORTING !is_item TYPE zif_abapgit_definitions=>ty_item !iv_language TYPE spras RAISING zcx_abapgit_exception . PROTECTED SECTION. METHODS open_adt_stob IMPORTING iv_ddls_name TYPE tadir-obj_name RAISING zcx_abapgit_exception. PRIVATE SECTION. METHODS is_baseinfo_supported RETURNING VALUE(rv_supported) TYPE abap_bool . METHODS read_baseinfo RETURNING VALUE(rv_baseinfo_string) TYPE string. METHODS format_source_before_serialize CHANGING cv_string TYPE string. ENDCLASS. CLASS zcl_abapgit_object_ddls IMPLEMENTATION. METHOD constructor. DATA lo_ddl TYPE REF TO object. super->constructor( is_item = is_item iv_language = iv_language ). TRY. CALL METHOD ('CL_DD_DDL_HANDLER_FACTORY')=>('CREATE') RECEIVING handler = lo_ddl. CATCH cx_root. zcx_abapgit_exception=>raise( 'Object type DDLS is not supported by this system' ). ENDTRY. ENDMETHOD. METHOD format_source_before_serialize. DATA: lv_len TYPE i, lv_lastchar1 TYPE c, lv_lastchar2 TYPE c. " New line included in 751+ by CL_DD_DDL_HANDLER=>ADD_BASEOBJS_INFO_TO_DDLS " Change for 750- lv_len = strlen( cv_string ) - 1. IF lv_len < 0. RETURN. ENDIF. lv_lastchar1 = cv_string+lv_len(1). lv_len = strlen( cv_string ) - 2. IF lv_len < 0. RETURN. ENDIF. lv_lastchar2 = cv_string+lv_len(1). " only add a line break, if the last character is unequal to cr_lf and newline ! IF lv_lastchar1 <> cl_abap_char_utilities=>cr_lf AND lv_lastchar1 <> cl_abap_char_utilities=>newline AND lv_lastchar1 <> space OR ( lv_lastchar1 = space AND ( lv_lastchar2 <> cl_abap_char_utilities=>cr_lf AND lv_lastchar2 <> cl_abap_char_utilities=>newline ) ). cv_string = |{ cv_string }{ cl_abap_char_utilities=>cr_lf }|. ENDIF. ENDMETHOD. METHOD is_baseinfo_supported. DATA: lr_data_baseinfo TYPE REF TO data, lx_error TYPE REF TO cx_root. TRY. CREATE DATA lr_data_baseinfo TYPE ('IF_DD_DDL_TYPES=>TY_S_BASEINFO_STRING_SAVE'). rv_supported = abap_true. CATCH cx_root INTO lx_error. rv_supported = abap_false. ENDTRY. ENDMETHOD. METHOD open_adt_stob. DATA: lr_data TYPE REF TO data, lo_ddl TYPE REF TO object, lx_error TYPE REF TO cx_root. FIELD-SYMBOLS: <lt_ddnames> TYPE STANDARD TABLE. FIELD-SYMBOLS: <lt_entity_view> TYPE STANDARD TABLE. FIELD-SYMBOLS: <lg_ddnames> TYPE any. FIELD-SYMBOLS: <lg_entity_view> TYPE any. FIELD-SYMBOLS: <lg_ddname> TYPE any. FIELD-SYMBOLS: <lg_ddlname> TYPE any. TRY. CREATE DATA lr_data TYPE ('IF_DD_DDL_TYPES=>TY_T_DDOBJ'). ASSIGN lr_data->* TO <lt_ddnames>. CREATE DATA lr_data LIKE LINE OF <lt_ddnames>. ASSIGN lr_data->* TO <lg_ddnames>. CREATE DATA lr_data TYPE ('IF_DD_DDL_TYPES=>TY_T_ENTITY_OF_VIEW'). ASSIGN lr_data->* TO <lt_entity_view>. CREATE DATA lr_data LIKE LINE OF <lt_entity_view>. ASSIGN lr_data->* TO <lg_entity_view>. CLEAR <lt_ddnames>. ASSIGN COMPONENT 'NAME' OF STRUCTURE <lg_ddnames> TO <lg_ddname>. <lg_ddname> = iv_ddls_name. INSERT <lg_ddnames> INTO TABLE <lt_ddnames>. CALL METHOD ('CL_DD_DDL_HANDLER_FACTORY')=>('CREATE') RECEIVING handler = lo_ddl. CALL METHOD lo_ddl->('IF_DD_DDL_HANDLER~GET_VIEWNAME_FROM_ENTITYNAME') EXPORTING ddnames = <lt_ddnames> IMPORTING view_of_entity = <lt_entity_view>. READ TABLE <lt_entity_view> ASSIGNING <lg_entity_view> INDEX 1. IF sy-subrc = 0. ASSIGN COMPONENT 'DDLNAME' OF STRUCTURE <lg_entity_view> TO <lg_ddlname>. zcl_abapgit_adt_link=>jump( iv_obj_name = <lg_ddlname> iv_obj_type = 'DDLS' ). ENDIF. CATCH cx_root INTO lx_error. zcx_abapgit_exception=>raise_with_text( lx_error ). ENDTRY. ENDMETHOD. METHOD read_baseinfo. TRY. rv_baseinfo_string = mo_files->read_string( 'baseinfo' ). CATCH zcx_abapgit_exception. " File not found. That's ok, as the object could have been created in a " system where baseinfo wasn't supported. RETURN. ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~changed_by. DATA: lo_ddl TYPE REF TO object, lr_data TYPE REF TO data, lx_error TYPE REF TO cx_root. FIELD-SYMBOLS: <lg_data> TYPE any, <lg_field> TYPE any. TRY. CREATE DATA lr_data TYPE ('DDDDLSRCV'). ASSIGN lr_data->* TO <lg_data>. CALL METHOD ('CL_DD_DDL_HANDLER_FACTORY')=>('CREATE') RECEIVING handler = lo_ddl. CALL METHOD lo_ddl->('IF_DD_DDL_HANDLER~READ') EXPORTING name = ms_item-obj_name get_state = 'A' IMPORTING ddddlsrcv_wa = <lg_data>. ASSIGN COMPONENT 'AS4USER' OF STRUCTURE <lg_data> TO <lg_field>. IF sy-subrc = 0. rv_user = <lg_field>. ENDIF. CATCH cx_root INTO lx_error. zcx_abapgit_exception=>raise_with_text( lx_error ). ENDTRY. IF rv_user IS INITIAL. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lt_deltab TYPE TABLE OF dcdeltb, ls_deltab TYPE dcdeltb, lt_gentab TYPE TABLE OF dcgentb, lv_rc TYPE sy-subrc. " CL_DD_DDL_HANDLER->DELETE does not work for CDS views that reference other views " To drop any views regardless of reference, we use delnoref = false ls_deltab-objtyp = 'DDLS'. ls_deltab-objname = ms_item-obj_name. APPEND ls_deltab TO lt_deltab. CALL FUNCTION 'DD_MASS_ACT_C3' EXPORTING ddmode = 'O' inactive = abap_true write_log = abap_false delall = abap_true delnoref = abap_false prid = -1 IMPORTING act_rc = lv_rc TABLES gentab = lt_gentab deltab = lt_deltab EXCEPTIONS access_failure = 1 no_objects = 2 locked = 3 OTHERS = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. corr_insert( iv_package ). ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lo_ddl TYPE REF TO object, lr_data TYPE REF TO data, lr_data_baseinfo TYPE REF TO data, lx_error TYPE REF TO cx_root. FIELD-SYMBOLS: <lg_data> TYPE any, <lg_data_baseinfo> TYPE any, <lg_source> TYPE any, <lg_baseinfo_string> TYPE any, <lg_baseinfo_ddlname> TYPE any. TRY. CREATE DATA lr_data TYPE ('DDDDLSRCV'). ASSIGN lr_data->* TO <lg_data>. io_xml->read( EXPORTING iv_name = 'DDLS' CHANGING cg_data = <lg_data> ). ASSIGN COMPONENT 'SOURCE' OF STRUCTURE <lg_data> TO <lg_source>. ASSERT sy-subrc = 0. <lg_source> = mo_files->read_string( 'asddls' ). CALL METHOD ('CL_DD_DDL_HANDLER_FACTORY')=>('CREATE') RECEIVING handler = lo_ddl. IF is_baseinfo_supported( ) = abap_true. CREATE DATA lr_data_baseinfo TYPE ('IF_DD_DDL_TYPES=>TY_S_BASEINFO_STRING_SAVE'). ASSIGN lr_data_baseinfo->* TO <lg_data_baseinfo>. ASSIGN COMPONENT 'BASEINFO_STRING' OF STRUCTURE <lg_data_baseinfo> TO <lg_baseinfo_string>. ASSERT sy-subrc = 0. <lg_baseinfo_string> = read_baseinfo( ). ASSIGN COMPONENT 'DDLNAME' OF STRUCTURE <lg_data_baseinfo> TO <lg_baseinfo_ddlname>. ASSERT sy-subrc = 0. <lg_baseinfo_ddlname> = ms_item-obj_name. CALL METHOD lo_ddl->('IF_DD_DDL_HANDLER~SAVE') EXPORTING name = ms_item-obj_name put_state = 'N' ddddlsrcv_wa = <lg_data> baseinfo_string = <lg_data_baseinfo>. ELSE. CALL METHOD lo_ddl->('IF_DD_DDL_HANDLER~SAVE') EXPORTING name = ms_item-obj_name put_state = 'N' ddddlsrcv_wa = <lg_data>. ENDIF. CALL METHOD lo_ddl->('IF_DD_DDL_HANDLER~WRITE_TADIR') EXPORTING objectname = ms_item-obj_name devclass = iv_package prid = 0. corr_insert( iv_package ). CATCH cx_root INTO lx_error. IF lo_ddl IS NOT INITIAL. " Attempt clean-up but catch error if it doesn't work TRY. CALL METHOD lo_ddl->('IF_DD_DDL_HANDLER~DELETE') EXPORTING name = ms_item-obj_name prid = 0. CATCH cx_root ##NO_HANDLER. ENDTRY. ENDIF. zcx_abapgit_exception=>raise_with_text( lx_error ). ENDTRY. zcl_abapgit_objects_activation=>add_item( ms_item ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_state TYPE objstate, lo_ddl TYPE REF TO object. TRY. CALL METHOD ('CL_DD_DDL_HANDLER_FACTORY')=>('CREATE') RECEIVING handler = lo_ddl. CALL METHOD lo_ddl->('IF_DD_DDL_HANDLER~READ') EXPORTING name = ms_item-obj_name IMPORTING got_state = lv_state. rv_bool = boolc( NOT lv_state IS INITIAL ). CATCH cx_root. rv_bool = abap_false. ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-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 = 'ESDICT' iv_argument = |{ ms_item-obj_type }{ ms_item-obj_name }| ). ENDMETHOD. METHOD zif_abapgit_object~jump. DATA: lv_typename TYPE typename. DATA: lv_ddtypekind TYPE ddtypekind. lv_typename = ms_item-obj_name. CALL FUNCTION 'DDIF_TYPEINFO_GET' EXPORTING typename = lv_typename IMPORTING typekind = lv_ddtypekind. IF lv_ddtypekind = 'STOB'. open_adt_stob( ms_item-obj_name ). rv_exit = abap_true. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lo_ddl TYPE REF TO object, lr_data TYPE REF TO data, lr_data_baseinfo TYPE REF TO data, lt_clr_comps TYPE STANDARD TABLE OF fieldname WITH DEFAULT KEY, lx_error TYPE REF TO cx_root. FIELD-SYMBOLS: <lg_data> TYPE any, <lg_field> TYPE any, <lv_comp> LIKE LINE OF lt_clr_comps, <lt_data_baseinfo> TYPE ANY TABLE, <lg_data_baseinfo> TYPE any, <lg_ddlname> TYPE any, <lg_as4local> TYPE any. TRY. CREATE DATA lr_data TYPE ('DDDDLSRCV'). ASSIGN lr_data->* TO <lg_data>. CALL METHOD ('CL_DD_DDL_HANDLER_FACTORY')=>('CREATE') RECEIVING handler = lo_ddl. IF is_baseinfo_supported( ) = abap_true. CREATE DATA lr_data_baseinfo TYPE ('IF_DD_DDL_TYPES=>TY_T_BASEINFO_STRING'). ASSIGN lr_data_baseinfo->* TO <lt_data_baseinfo>. ASSIGN lr_data_baseinfo->* TO <lg_data_baseinfo>. CALL METHOD lo_ddl->('IF_DD_DDL_HANDLER~READ') EXPORTING name = ms_item-obj_name get_state = 'A' IMPORTING ddddlsrcv_wa = <lg_data> baseinfo_string = <lt_data_baseinfo>. LOOP AT <lt_data_baseinfo> ASSIGNING <lg_data_baseinfo>. ASSIGN COMPONENT 'DDLNAME' OF STRUCTURE <lg_data_baseinfo> TO <lg_ddlname>. ASSERT sy-subrc = 0. ASSIGN COMPONENT 'AS4LOCAL' OF STRUCTURE <lg_data_baseinfo> TO <lg_as4local>. ASSERT sy-subrc = 0. IF <lg_ddlname> = ms_item-obj_name AND <lg_as4local> = 'A'. ASSIGN COMPONENT 'BASEINFO_STRING' OF STRUCTURE <lg_data_baseinfo> TO <lg_field>. ASSERT sy-subrc = 0. mo_files->add_string( iv_ext = 'baseinfo' iv_string = <lg_field> ). EXIT. ENDIF. ENDLOOP. ELSE. CALL METHOD lo_ddl->('IF_DD_DDL_HANDLER~READ') EXPORTING name = ms_item-obj_name get_state = 'A' IMPORTING ddddlsrcv_wa = <lg_data>. ENDIF. CATCH cx_root INTO lx_error. zcx_abapgit_exception=>raise_with_text( lx_error ). ENDTRY. APPEND 'AS4USER' TO lt_clr_comps. APPEND 'AS4DATE' TO lt_clr_comps. APPEND 'AS4TIME' TO lt_clr_comps. APPEND 'ACTFLAG' TO lt_clr_comps. APPEND 'CHGFLAG' TO lt_clr_comps. APPEND 'ABAP_LANGUAGE_VERSION' TO lt_clr_comps. APPEND 'ABAP_LANGU_VERSION' TO lt_clr_comps. LOOP AT lt_clr_comps ASSIGNING <lv_comp>. ASSIGN COMPONENT <lv_comp> OF STRUCTURE <lg_data> TO <lg_field>. IF sy-subrc = 0. CLEAR <lg_field>. ENDIF. ENDLOOP. ASSIGN COMPONENT 'SOURCE' OF STRUCTURE <lg_data> TO <lg_field>. ASSERT sy-subrc = 0. format_source_before_serialize( CHANGING cv_string = <lg_field> ). mo_files->add_string( iv_ext = 'asddls' iv_string = <lg_field> ). CLEAR <lg_field>. io_xml->add( iv_name = 'DDLS' ig_data = <lg_data> ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 1860, 7278, 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, 5145, 271, 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, 5145, 452, 62, 16129, 41876, 7500, 292, 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, 220, 220, 337, 36252, 50, 1280, 62, 324, 83, 62, 301, 672, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 1860, 7278, 62, 3672, 41876, 36264, 343, 12, 26801, 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, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 318, 62, 8692, 10951, 62, 15999, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 15999, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 1100, 62, 8692, 10951, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 8692, 10951, 62, 8841, 8, 41876, 4731, 13, 198, 220, 220, 220, 337, 36252, 50, 5794, 62, 10459, 62, 19052, 62, 46911, 1096, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 269, 85, 62, 8841, 41876, 4731, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 1860, 7278, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 42865, 2376, 62, 1860, 75, 41876, 4526, 37, 5390, 2134, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 198, 220, 220, 220, 220, 220, 318, 62, 9186, 220, 220, 220, 220, 796, 318, 62, 9186, 198, 220, 220, 220, 220, 220, 21628, 62, 16129, 796, 21628, 62, 16129, 6739, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42815, 337, 36252, 19203, 5097, 62, 16458, 62, 16458, 43, 62, 39, 6981, 39878, 62, 37, 10659, 15513, 11537, 14804, 10786, 43387, 6158, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19644, 36, 3824, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21360, 796, 2376, 62, 1860, 75, 13, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 15763, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 10267, 2099, 20084, 6561, 318, 407, 4855, 416, 428, 1080, 6, 6739, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 5794, 62, 10459, 62, 19052, 62, 46911, 1096, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 300, 85, 62, 11925, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 12957, 10641, 16, 41876, 269, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 12957, 10641, 17, 41876, 269, 13, 628, 220, 220, 220, 366, 968, 1627, 3017, 287, 767, 4349, 10, 416, 7852, 62, 16458, 62, 16458, 43, 62, 39, 6981, 39878, 14804, 29266, 62, 33, 1921, 4720, 33, 20120, 62, 10778, 62, 10468, 62, 16458, 6561, 198, 220, 220, 220, 366, 9794, 329, 19683, 12, 628, 220, 220, 220, 300, 85, 62, 11925, 796, 965, 11925, 7, 269, 85, 62, 8841, 1267, 532, 352, 13, 198, 220, 220, 220, 16876, 300, 85, 62, 11925, 1279, 657, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 300, 85, 62, 12957, 10641, 16, 796, 269, 85, 62, 8841, 10, 6780, 62, 11925, 7, 16, 737, 628, 220, 220, 220, 300, 85, 62, 11925, 796, 965, 11925, 7, 269, 85, 62, 8841, 1267, 532, 362, 13, 198, 220, 220, 220, 16876, 300, 85, 62, 11925, 1279, 657, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 300, 85, 62, 12957, 10641, 17, 796, 269, 85, 62, 8841, 10, 6780, 62, 11925, 7, 16, 737, 628, 220, 220, 220, 366, 691, 751, 257, 1627, 2270, 11, 611, 262, 938, 2095, 318, 37334, 284, 1067, 62, 1652, 290, 649, 1370, 5145, 198, 220, 220, 220, 16876, 300, 85, 62, 12957, 10641, 16, 1279, 29, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 6098, 62, 1652, 5357, 300, 85, 62, 12957, 10641, 16, 1279, 29, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 3605, 1370, 5357, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 12957, 10641, 16, 1279, 29, 2272, 6375, 198, 220, 220, 220, 220, 220, 220, 220, 357, 300, 85, 62, 12957, 10641, 16, 796, 2272, 5357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 300, 85, 62, 12957, 10641, 17, 1279, 29, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 6098, 62, 1652, 5357, 300, 85, 62, 12957, 10641, 17, 1279, 29, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 3605, 1370, 1267, 6739, 198, 220, 220, 220, 220, 220, 269, 85 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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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 ]
CALL FUNCTION 'CONVERT_OTF_2_PDF' IMPORTING bin_filesize = v_bin_filesize TABLES otf = st_job_output_info-otfdata doctab_archive = it_docs lines = it_lines EXCEPTIONS err_conv_not_possible = 1 err_otf_mc_noendmarker = 2 OTHERS = 3. CONCATENATE p_bsid'_' sy-datum '.pdf' INTO v_name. DATA: lc_filename TYPE string, lv_line TYPE string. CLEAR: lc_filename, lv_line, wa_lines. CONCATENATE '\\RUTA\carpeta1\carpeta2' v_name INTO lc_filename. CONDENSE lc_filename NO-GAPS. OPEN DATASET lc_filename FOR OUTPUT IN BINARY MODE. "TEXT MODE ENCODING UTF-8. LOOP AT it_lines INTO wa_lines. TRANSFER wa_lines-tdline TO lc_filename. ENDLOOP. CLOSE DATASET lc_filename.
[ 220, 220, 42815, 29397, 4177, 2849, 705, 10943, 15858, 62, 2394, 37, 62, 17, 62, 20456, 6, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 9874, 62, 16624, 1096, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 410, 62, 8800, 62, 16624, 1096, 198, 220, 220, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 220, 220, 267, 27110, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 336, 62, 21858, 62, 22915, 62, 10951, 12, 313, 69, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 10412, 397, 62, 17474, 220, 220, 220, 220, 220, 220, 220, 220, 796, 340, 62, 31628, 198, 220, 220, 220, 220, 220, 220, 220, 3951, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 340, 62, 6615, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 11454, 62, 42946, 62, 1662, 62, 79, 4733, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 11454, 62, 313, 69, 62, 23209, 62, 3919, 437, 4102, 263, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 513, 13, 628, 39962, 1404, 1677, 6158, 279, 62, 1443, 312, 6, 62, 6, 827, 12, 19608, 388, 45302, 12315, 6, 39319, 410, 62, 3672, 13, 198, 220, 220, 220, 42865, 25, 300, 66, 62, 34345, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 1370, 220, 220, 220, 220, 41876, 4731, 13, 198, 220, 220, 220, 30301, 1503, 25, 300, 66, 62, 34345, 11, 300, 85, 62, 1370, 11, 2082, 62, 6615, 13, 198, 220, 220, 220, 39962, 1404, 1677, 6158, 705, 6852, 49, 3843, 32, 59, 66, 5117, 17167, 16, 59, 66, 5117, 17167, 17, 6, 410, 62, 3672, 198, 220, 220, 220, 39319, 300, 66, 62, 34345, 13, 628, 220, 220, 220, 7102, 35, 24290, 300, 66, 62, 34345, 8005, 12, 38, 44580, 13, 198, 3185, 1677, 360, 1404, 1921, 2767, 300, 66, 62, 34345, 220, 7473, 16289, 30076, 3268, 347, 1268, 13153, 337, 16820, 13, 366, 32541, 337, 16820, 412, 7792, 3727, 2751, 41002, 12, 23, 13, 198, 21982, 3185, 5161, 340, 62, 6615, 39319, 2082, 62, 6615, 13, 198, 220, 44069, 24302, 2082, 62, 6615, 12, 8671, 1370, 5390, 300, 66, 62, 34345, 13, 198, 10619, 21982, 3185, 13, 198, 32737, 360, 1404, 1921, 2767, 300, 66, 62, 34345, 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 ]
CLASS /dmo/cl_travel_auxiliary26 DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. * Type definition for import parameters -------------------------- TYPES tt_travel_create TYPE TABLE FOR CREATE /dmo/i_travel_u26. TYPES tt_travel_update TYPE TABLE FOR UPDATE /dmo/i_travel_u26. TYPES tt_travel_delete TYPE TABLE FOR DELETE /dmo/i_travel_u26. TYPES tt_travel_failed TYPE TABLE FOR FAILED /dmo/i_travel_u26. TYPES tt_travel_mapped TYPE TABLE FOR MAPPED /dmo/i_travel_u26. TYPES tt_travel_reported TYPE TABLE FOR REPORTED /dmo/i_travel_u26. TYPES tt_booking_create TYPE TABLE FOR CREATE /dmo/i_booking_u26. TYPES tt_booking_update TYPE TABLE FOR UPDATE /dmo/i_booking_u26. TYPES tt_booking_delete TYPE TABLE FOR DELETE /dmo/i_booking_u26. TYPES tt_booking_failed TYPE TABLE FOR FAILED /dmo/i_booking_u26. TYPES tt_booking_mapped TYPE TABLE FOR MAPPED /dmo/i_booking_u26. TYPES tt_booking_reported TYPE TABLE FOR REPORTED /dmo/i_booking_u26. TYPES tt_bookingsupplement_failed TYPE TABLE FOR FAILED /dmo/i_bookingsupplement_u26. TYPES tt_bookingsupplement_mapped TYPE TABLE FOR MAPPED /dmo/i_bookingsupplement_u26. TYPES tt_bookingsupplement_reported TYPE TABLE FOR REPORTED /dmo/i_bookingsupplement_u26. CLASS-METHODS map_travel_cds_to_db IMPORTING is_i_travel_u TYPE /dmo/i_travel_u26 RETURNING VALUE(rs_travel) TYPE /dmo/if_flight_legacy26=>ts_travel_in. CLASS-METHODS map_travel_message IMPORTING iv_cid TYPE string OPTIONAL iv_travel_id TYPE /dmo/travel_id26 OPTIONAL is_message TYPE LINE OF /dmo/if_flight_legacy26=>tt_message RETURNING VALUE(rs_report) TYPE LINE OF tt_travel_reported. CLASS-METHODS map_booking_cds_to_db IMPORTING is_i_booking TYPE /dmo/i_booking_u26 RETURNING VALUE(rs_booking) TYPE /dmo/if_flight_legacy26=>ts_booking_in. CLASS-METHODS map_booking_message IMPORTING iv_cid TYPE string OPTIONAL iv_travel_id TYPE /dmo/travel_id26 OPTIONAL iv_booking_id TYPE /dmo/booking_id26 OPTIONAL is_message TYPE LINE OF /dmo/if_flight_legacy26=>tt_message RETURNING VALUE(rs_report) TYPE LINE OF tt_booking_reported. CLASS-METHODS map_bookingsupplemnt_cds_to_db IMPORTING is_i_bookingsupplement TYPE /dmo/i_bookingsupplement_u26 RETURNING VALUE(rs_bookingsupplement) TYPE /dmo/if_flight_legacy26=>ts_booking_supplement_in. CLASS-METHODS map_bookingsupplemnt_message IMPORTING iv_cid TYPE string OPTIONAL iv_travel_id TYPE /dmo/travel_id26 OPTIONAL iv_booking_id TYPE /dmo/booking_id26 OPTIONAL iv_bookingsupplement_id TYPE /dmo/booking_supplement_id26 OPTIONAL is_message TYPE LINE OF /dmo/if_flight_legacy26=>tt_message RETURNING VALUE(rs_report) TYPE LINE OF tt_bookingsupplement_reported. PROTECTED SECTION. PRIVATE SECTION. CLASS-METHODS new_message IMPORTING id TYPE symsgid number TYPE symsgno severity TYPE if_abap_behv_message=>t_severity v1 TYPE simple OPTIONAL v2 TYPE simple OPTIONAL v3 TYPE simple OPTIONAL v4 TYPE simple OPTIONAL RETURNING VALUE(obj) TYPE REF TO if_abap_behv_message . ENDCLASS. CLASS /dmo/cl_travel_auxiliary26 IMPLEMENTATION. METHOD map_travel_cds_to_db. rs_travel = CORRESPONDING #( is_i_travel_u MAPPING travel_id = travelid agency_id = agencyid customer_id = customerid begin_date = begindate end_date = enddate booking_fee = bookingfee total_price = totalprice currency_code = currencycode description = memo status = status ). ENDMETHOD. METHOD map_travel_message. DATA(lo) = new_message( id = is_message-msgid number = is_message-msgno severity = if_abap_behv_message=>severity-error v1 = is_message-msgv1 v2 = is_message-msgv2 v3 = is_message-msgv3 v4 = is_message-msgv4 ). rs_report-%cid = iv_cid. rs_report-travelid = iv_travel_id. rs_report-%msg = lo. ENDMETHOD. METHOD map_booking_cds_to_db. rs_booking = CORRESPONDING #( is_i_booking MAPPING booking_id = bookingid booking_date = bookingdate customer_id = customerid carrier_id = airlineid connection_id = connectionid flight_date = flightdate flight_price = flightprice currency_code = currencycode ). ENDMETHOD. METHOD map_booking_message. DATA(lo) = new_message( id = is_message-msgid number = is_message-msgno severity = if_abap_behv_message=>severity-error v1 = is_message-msgv1 v2 = is_message-msgv2 v3 = is_message-msgv3 v4 = is_message-msgv4 ). rs_report-%cid = iv_cid. rs_report-travelid = iv_travel_id. rs_report-bookingid = iv_booking_id. rs_report-%msg = lo. ENDMETHOD. METHOD map_bookingsupplemnt_cds_to_db. rs_bookingsupplement = CORRESPONDING #( is_i_bookingsupplement MAPPING booking_id = bookingid booking_supplement_id = bookingsupplementid supplement_id = supplementid price = price currency_code = currencycode ). ENDMETHOD. METHOD map_bookingsupplemnt_message. DATA(lo) = new_message( id = is_message-msgid number = is_message-msgno severity = if_abap_behv_message=>severity-error v1 = is_message-msgv1 v2 = is_message-msgv2 v3 = is_message-msgv3 v4 = is_message-msgv4 ). rs_report-%cid = iv_cid. rs_report-travelid = iv_travel_id. rs_report-bookingid = iv_booking_id. rs_report-bookingSupplementid = iv_bookingsupplement_id. rs_report-%msg = lo. ENDMETHOD. METHOD new_message. obj = NEW lcl_abap_behv_msg( textid = VALUE #( msgid = id msgno = number attr1 = COND #( WHEN v1 IS NOT INITIAL THEN 'IF_T100_DYN_MSG~MSGV1' ) attr2 = COND #( WHEN v2 IS NOT INITIAL THEN 'IF_T100_DYN_MSG~MSGV2' ) attr3 = COND #( WHEN v3 IS NOT INITIAL THEN 'IF_T100_DYN_MSG~MSGV3' ) attr4 = COND #( WHEN v4 IS NOT INITIAL THEN 'IF_T100_DYN_MSG~MSGV4' ) ) msgty = SWITCH #( severity WHEN if_abap_behv_message=>severity-error THEN 'E' WHEN if_abap_behv_message=>severity-warning THEN 'W' WHEN if_abap_behv_message=>severity-information THEN 'I' WHEN if_abap_behv_message=>severity-success THEN 'S' ) msgv1 = |{ v1 }| msgv2 = |{ v2 }| msgv3 = |{ v3 }| msgv4 = |{ v4 }| ). obj->m_severity = severity. ENDMETHOD. ENDCLASS.
[ 31631, 1220, 67, 5908, 14, 565, 62, 35927, 62, 14644, 28129, 2075, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 198, 198, 5105, 32936, 44513, 13, 628, 198, 9, 220, 220, 5994, 6770, 329, 1330, 10007, 220, 22369, 438, 198, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 35927, 62, 17953, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 7473, 29244, 6158, 220, 220, 1220, 67, 5908, 14, 72, 62, 35927, 62, 84, 2075, 13, 198, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 35927, 62, 19119, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 7473, 35717, 220, 220, 1220, 67, 5908, 14, 72, 62, 35927, 62, 84, 2075, 13, 198, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 35927, 62, 33678, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 7473, 5550, 2538, 9328, 220, 220, 1220, 67, 5908, 14, 72, 62, 35927, 62, 84, 2075, 13, 628, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 35927, 62, 47904, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 7473, 9677, 4146, 1961, 220, 220, 1220, 67, 5908, 14, 72, 62, 35927, 62, 84, 2075, 13, 198, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 35927, 62, 76, 6320, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 7473, 337, 24805, 1961, 220, 220, 1220, 67, 5908, 14, 72, 62, 35927, 62, 84, 2075, 13, 198, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 35927, 62, 26263, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 7473, 39099, 1961, 1220, 67, 5908, 14, 72, 62, 35927, 62, 84, 2075, 13, 628, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 2070, 278, 62, 17953, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 7473, 29244, 6158, 220, 220, 220, 1220, 67, 5908, 14, 72, 62, 2070, 278, 62, 84, 2075, 13, 198, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 2070, 278, 62, 19119, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 7473, 35717, 220, 220, 220, 1220, 67, 5908, 14, 72, 62, 2070, 278, 62, 84, 2075, 13, 198, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 2070, 278, 62, 33678, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 7473, 5550, 2538, 9328, 220, 220, 220, 1220, 67, 5908, 14, 72, 62, 2070, 278, 62, 84, 2075, 13, 628, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 2070, 278, 62, 47904, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 7473, 9677, 4146, 1961, 220, 220, 220, 1220, 67, 5908, 14, 72, 62, 2070, 278, 62, 84, 2075, 13, 198, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 2070, 278, 62, 76, 6320, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 7473, 337, 24805, 1961, 220, 220, 220, 1220, 67, 5908, 14, 72, 62, 2070, 278, 62, 84, 2075, 13, 198, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 2070, 278, 62, 26263, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 7473, 39099, 1961, 220, 1220, 67, 5908, 14, 72, 62, 2070, 278, 62, 84, 2075, 13, 628, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 2070, 654, 7211, 1732, 62, 47904, 220, 220, 41876, 43679, 7473, 9677, 4146, 1961, 220, 220, 220, 1220, 67, 5908, 14, 72, 62, 2070, 654, 7211, 1732, 62, 84, 2075, 13, 198, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 2070, 654, 7211, 1732, 62, 76, 6320, 220, 220, 41876, 43679, 7473, 337, 24805, 1961, 220, 220, 220, 1220, 67, 5908, 14, 72, 62, 2070, 654, 7211, 1732, 62, 84, 2075, 13, 198, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 2070, 654, 7211, 1732, 62, 26263, 41876, 43679, 7473, 39099, 1961, 220, 1220, 67, 5908, 14, 72, 62, 2070, 654, 7211, 1732, 62, 84, 2075, 13, 628, 198, 220, 220, 220, 42715, 12, 49273, 50, 3975, 62, 35927, 62, 66, 9310, 62, 1462, 62, 9945, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 220, 220, 318, 62, 72, 62, 35927, 62, 84, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 72, 62, 35927, 62, 84, 2075, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 3808, 62, 35927, 8, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 2075, 14804, 912, 62, 35927, 62, 259, 13, 628, 198, 220, 220, 220, 42715, 12, 49273, 50, 3975, 62, 35927, 62, 20500, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 66, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 35927, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 67, 5908, 14, 35927, 62, 312, 2075, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 20500, 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,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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 ]
*&---------------------------------------------------------------------* *& 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 <relationship_address> IS ASSIGNED. " 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, 220, 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, 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, 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, 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, 2420, 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, 2420, 12, 405, 65, 13, 198, 27082, 2390, 2767, 4877, 25, 823, 28004, 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, 440, 4221, 4877, 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, 220, 17852, 5188, 5064, 823, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 366, 4149, 416, 39771, 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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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_gui_page_sett_repo DEFINITION PUBLIC INHERITING FROM zcl_abapgit_gui_component FINAL CREATE PRIVATE . PUBLIC SECTION. INTERFACES zif_abapgit_gui_event_handler . INTERFACES zif_abapgit_gui_renderable . CLASS-METHODS create IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo RETURNING VALUE(ri_page) TYPE REF TO zif_abapgit_gui_renderable RAISING zcx_abapgit_exception . METHODS constructor IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo RAISING zcx_abapgit_exception . PROTECTED SECTION. PRIVATE SECTION. CONSTANTS: BEGIN OF c_id, dot TYPE string VALUE 'dot', main_language TYPE string VALUE 'main_language', i18n_langs TYPE string VALUE 'i18n_langs', starting_folder TYPE string VALUE 'starting_folder', folder_logic TYPE string VALUE 'folder_logic', ignore TYPE string VALUE 'ignore', requirements TYPE string VALUE 'requirements', END OF c_id . CONSTANTS: BEGIN OF c_event, save TYPE string VALUE 'save', END OF c_event . CONSTANTS c_empty_rows TYPE i VALUE 2 ##NO_TEXT. DATA mo_form TYPE REF TO zcl_abapgit_html_form . DATA mo_form_data TYPE REF TO zcl_abapgit_string_map . DATA mo_form_util TYPE REF TO zcl_abapgit_html_form_utils . DATA mo_validation_log TYPE REF TO zcl_abapgit_string_map . DATA mo_repo TYPE REF TO zcl_abapgit_repo . DATA mv_requirements_count TYPE i . METHODS validate_form IMPORTING !io_form_data TYPE REF TO zcl_abapgit_string_map RETURNING VALUE(ro_validation_log) TYPE REF TO zcl_abapgit_string_map RAISING zcx_abapgit_exception . METHODS get_form_schema RETURNING VALUE(ro_form) TYPE REF TO zcl_abapgit_html_form RAISING zcx_abapgit_exception . METHODS read_settings RAISING zcx_abapgit_exception . METHODS save_settings RAISING zcx_abapgit_exception . ENDCLASS. CLASS zcl_abapgit_gui_page_sett_repo IMPLEMENTATION. METHOD constructor. super->constructor( ). CREATE OBJECT mo_validation_log. CREATE OBJECT mo_form_data. mo_repo = io_repo. mo_form = get_form_schema( ). mo_form_util = zcl_abapgit_html_form_utils=>create( mo_form ). read_settings( ). ENDMETHOD. METHOD create. DATA lo_component TYPE REF TO zcl_abapgit_gui_page_sett_repo. CREATE OBJECT lo_component EXPORTING io_repo = io_repo. ri_page = zcl_abapgit_gui_page_hoc=>create( iv_page_title = 'Repository Settings' io_page_menu = zcl_abapgit_gui_chunk_lib=>settings_repo_toolbar( iv_key = io_repo->get_key( ) iv_act = zif_abapgit_definitions=>c_action-repo_settings ) ii_child_component = lo_component ). ENDMETHOD. METHOD get_form_schema. ro_form = zcl_abapgit_html_form=>create( iv_form_id = 'repo-settings-form' iv_help_page = 'https://docs.abapgit.org/settings-dot-abapgit.html' ). ro_form->start_group( iv_name = c_id-dot iv_label = 'Repository Settings (.abapgit.xml)' iv_hint = 'Settings stored in root folder in .abapgit.xml file' )->text( iv_name = c_id-main_language iv_label = 'Main Language' iv_hint = 'Main language of repository (cannot be changed)' iv_readonly = abap_true )->text( iv_name = c_id-i18n_langs iv_label = 'Serialize Translations (experimental LXE approach)' iv_hint = 'Comma-separate 2-letter ISO language codes e.g. "DE,ES,..." - should not include main language' )->radio( iv_name = c_id-folder_logic iv_default_value = zif_abapgit_dot_abapgit=>c_folder_logic-prefix iv_label = 'Folder Logic' iv_hint = 'Define how package folders are named in repository' )->option( iv_label = 'Prefix' iv_value = zif_abapgit_dot_abapgit=>c_folder_logic-prefix )->option( iv_label = 'Full' iv_value = zif_abapgit_dot_abapgit=>c_folder_logic-full )->option( iv_label = 'Mixed' iv_value = zif_abapgit_dot_abapgit=>c_folder_logic-mixed )->text( iv_name = c_id-starting_folder iv_label = 'Starting Folder' iv_hint = 'Root folder that defines where serialization starts' )->textarea( iv_name = c_id-ignore iv_label = 'Ignore Files' iv_hint = 'List of files in starting folder that shall not be serialized' )->table( iv_name = c_id-requirements iv_label = 'Requirements' iv_hint = 'List of software components with minimum release and patch' )->column( iv_label = 'Software Component' iv_width = '40%' )->column( iv_label = 'Minimum Release' iv_width = '30%' )->column( iv_label = 'Minimum Patch' iv_width = '30%' )->command( iv_label = 'Save Settings' iv_cmd_type = zif_abapgit_html_form=>c_cmd_type-input_main iv_action = c_event-save )->command( iv_label = 'Back' iv_action = zif_abapgit_definitions=>c_action-go_back ). ENDMETHOD. METHOD read_settings. DATA: lo_dot TYPE REF TO zcl_abapgit_dot_abapgit, ls_dot TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit, lv_main_lang TYPE spras, lv_language TYPE t002t-sptxt, lv_ignore TYPE string, ls_requirements LIKE LINE OF ls_dot-requirements, lv_row TYPE i, lv_val TYPE string. FIELD-SYMBOLS: <lv_ignore> TYPE string. " Get settings from DB lo_dot = mo_repo->get_dot_abapgit( ). ls_dot = lo_dot->get_data( ). lv_main_lang = lo_dot->get_main_language( ). " Repository Settings SELECT SINGLE sptxt INTO lv_language FROM t002t WHERE spras = sy-langu AND sprsl = lv_main_lang. IF sy-subrc <> 0. lv_language = 'Unknown language; Check your .abapgit.xml file'. ENDIF. mo_form_data->set( iv_key = c_id-main_language iv_val = |{ lv_main_lang } ({ lv_language })| ). mo_form_data->set( iv_key = c_id-i18n_langs iv_val = zcl_abapgit_lxe_texts=>convert_table_to_lang_string( lo_dot->get_i18n_languages( ) ) ). mo_form_data->set( iv_key = c_id-folder_logic iv_val = ls_dot-folder_logic ). mo_form_data->set( iv_key = c_id-starting_folder iv_val = ls_dot-starting_folder ). LOOP AT ls_dot-ignore ASSIGNING <lv_ignore>. lv_ignore = lv_ignore && <lv_ignore> && zif_abapgit_definitions=>c_newline. ENDLOOP. IF sy-subrc <> 0. lv_ignore = zif_abapgit_definitions=>c_newline. ENDIF. mo_form_data->set( iv_key = c_id-ignore iv_val = lv_ignore ). LOOP AT ls_dot-requirements INTO ls_requirements. lv_row = lv_row + 1. DO 3 TIMES. CASE sy-index. WHEN 1. lv_val = ls_requirements-component. WHEN 2. lv_val = ls_requirements-min_release. WHEN 3. lv_val = ls_requirements-min_patch. ENDCASE. mo_form_data->set( iv_key = |{ c_id-requirements }-{ lv_row }-{ sy-index }| iv_val = lv_val ). ENDDO. ENDLOOP. DO c_empty_rows TIMES. lv_row = lv_row + 1. DO 3 TIMES. mo_form_data->set( iv_key = |{ c_id-requirements }-{ lv_row }-{ sy-index }| iv_val = '' ). ENDDO. ENDDO. mv_requirements_count = lv_row. mo_form_data->set( iv_key = |{ c_id-requirements }-{ zif_abapgit_html_form=>c_rows }| iv_val = |{ mv_requirements_count }| ). " Set for is_dirty check mo_form_util->set_data( mo_form_data ). ENDMETHOD. METHOD save_settings. DATA: lo_dot TYPE REF TO zcl_abapgit_dot_abapgit, lv_ignore TYPE string, lt_ignore TYPE STANDARD TABLE OF string WITH DEFAULT KEY, ls_requirements TYPE zif_abapgit_dot_abapgit=>ty_requirement, lt_requirements TYPE zif_abapgit_dot_abapgit=>ty_requirement_tt. lo_dot = mo_repo->get_dot_abapgit( ). lo_dot->set_folder_logic( mo_form_data->get( c_id-folder_logic ) ). lo_dot->set_starting_folder( mo_form_data->get( c_id-starting_folder ) ). lo_dot->set_i18n_languages( zcl_abapgit_lxe_texts=>convert_lang_string_to_table( iv_langs = mo_form_data->get( c_id-i18n_langs ) iv_skip_main_language = lo_dot->get_main_language( ) ) ). " Remove all ignores lt_ignore = lo_dot->get_data( )-ignore. LOOP AT lt_ignore INTO lv_ignore. lo_dot->remove_ignore( iv_path = '' iv_filename = lv_ignore ). ENDLOOP. " Add newly entered ignores lt_ignore = zcl_abapgit_convert=>split_string( mo_form_data->get( c_id-ignore ) ). LOOP AT lt_ignore INTO lv_ignore WHERE table_line IS NOT INITIAL. lo_dot->add_ignore( iv_path = '' iv_filename = lv_ignore ). ENDLOOP. " Requirements DO mv_requirements_count TIMES. ls_requirements-component = to_upper( mo_form_data->get( |{ c_id-requirements }-{ sy-index }-1| ) ). ls_requirements-min_release = mo_form_data->get( |{ c_id-requirements }-{ sy-index }-2| ). ls_requirements-min_patch = mo_form_data->get( |{ c_id-requirements }-{ sy-index }-3| ). APPEND ls_requirements TO lt_requirements. ENDDO. SORT lt_requirements BY component min_release min_patch. DELETE lt_requirements WHERE component IS INITIAL. DELETE ADJACENT DUPLICATES FROM lt_requirements COMPARING ALL FIELDS. lo_dot->set_requirements( lt_requirements ). mo_repo->set_dot_abapgit( lo_dot ). mo_repo->refresh( ). COMMIT WORK AND WAIT. MESSAGE 'Settings succesfully saved' TYPE 'S'. read_settings( ). ENDMETHOD. METHOD validate_form. DATA: lv_folder TYPE string, lv_len TYPE i, lv_component TYPE zif_abapgit_dot_abapgit=>ty_requirement-component, lv_min_release TYPE zif_abapgit_dot_abapgit=>ty_requirement-min_release, lv_min_patch TYPE zif_abapgit_dot_abapgit=>ty_requirement-min_patch. ro_validation_log = mo_form_util->validate( io_form_data ). lv_folder = io_form_data->get( c_id-starting_folder ). lv_len = strlen( lv_folder ) - 1. IF lv_len > 0 AND lv_folder(1) <> '/'. ro_validation_log->set( iv_key = c_id-starting_folder iv_val = |The folder must begin with /| ). ELSEIF lv_len > 0 AND lv_folder+lv_len(1) <> '/'. ro_validation_log->set( iv_key = c_id-starting_folder iv_val = |The folder must end with /| ). ELSEIF lv_folder CA '\'. ro_validation_log->set( iv_key = c_id-starting_folder iv_val = |Use / instead of \\| ). ENDIF. DO mv_requirements_count TIMES. lv_component = mo_form_data->get( |{ c_id-requirements }-{ sy-index }-1| ). lv_min_release = mo_form_data->get( |{ c_id-requirements }-{ sy-index }-2| ). lv_min_patch = mo_form_data->get( |{ c_id-requirements }-{ sy-index }-3| ). IF lv_component IS INITIAL AND ( lv_min_release IS NOT INITIAL OR lv_min_patch IS NOT INITIAL ). ro_validation_log->set( iv_key = c_id-requirements iv_val = |If you enter a release or patch, you must also enter a software component| ). ELSEIF lv_component IS NOT INITIAL AND lv_min_release IS INITIAL. ro_validation_log->set( iv_key = c_id-requirements iv_val = |If you enter a software component, you must also enter a minumum release| ). ENDIF. ENDDO. ENDMETHOD. METHOD zif_abapgit_gui_event_handler~on_event. mo_form_data = mo_form_util->normalize( ii_event->form_data( ) ). CASE ii_event->mv_action. WHEN zif_abapgit_definitions=>c_action-go_back. rs_handled-state = mo_form_util->exit( mo_form_data ). WHEN c_event-save. " Validate all form entries mo_validation_log = validate_form( mo_form_data ). IF mo_validation_log->is_empty( ) = abap_true. save_settings( ). ENDIF. rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render. ENDCASE. ENDMETHOD. METHOD zif_abapgit_gui_renderable~render. gui_services( )->register_event_handler( me ). IF mo_form_util->is_empty( mo_form_data ) = abap_true. read_settings( ). ENDIF. CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( `<div class="repo">` ). ri_html->add( zcl_abapgit_gui_chunk_lib=>render_repo_top( io_repo = mo_repo iv_show_commit = abap_false iv_interactive_branch = abap_true ) ). ri_html->add( mo_form->render( io_values = mo_form_data io_validation_log = mo_validation_log ) ). ri_html->add( `</div>` ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 17744, 62, 260, 7501, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 42895, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 15596, 62, 30281, 764, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 13287, 540, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 2251, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 260, 7501, 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, 380, 62, 7700, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 13287, 540, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 260, 7501, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 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, 628, 220, 48006, 9782, 1961, 44513, 13, 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, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 16605, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 26518, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 1388, 62, 16129, 220, 220, 41876, 4731, 26173, 8924, 705, 12417, 62, 16129, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 1507, 77, 62, 17204, 82, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 72, 1507, 77, 62, 17204, 82, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 3599, 62, 43551, 41876, 4731, 26173, 8924, 705, 38690, 62, 43551, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 9483, 62, 6404, 291, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 43551, 62, 6404, 291, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 8856, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 46430, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 5359, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 8897, 18883, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 312, 764, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 15596, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3613, 41876, 4731, 26173, 8924, 705, 21928, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 15596, 764, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 28920, 62, 8516, 41876, 1312, 26173, 8924, 362, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 42865, 6941, 62, 687, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 687, 764, 198, 220, 220, 220, 42865, 6941, 62, 687, 62, 7890, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 8841, 62, 8899, 764, 198, 220, 220, 220, 42865, 6941, 62, 687, 62, 22602, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 687, 62, 26791, 764, 198, 220, 220, 220, 42865, 6941, 62, 12102, 341, 62, 6404, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 8841, 62, 8899, 764, 628, 220, 220, 220, 42865, 6941, 62, 260, 7501, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 8897, 18883, 62, 9127, 41876, 1312, 764, 628, 220, 220, 220, 337, 36252, 50, 26571, 62, 687, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 687, 62, 7890, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 8841, 62, 8899, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 12102, 341, 62, 6404, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 8841, 62, 8899, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 687, 62, 15952, 2611, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 687, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 687, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 1100, 62, 33692, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 3613, 62, 33692, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 17744, 62, 260, 7501, 30023, 2538, 10979, 6234 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zsimple_report DEFINITION INHERITING FROM ZREPORT PUBLIC CREATE PUBLIC . PUBLIC SECTION. METHODS: get_data REDEFINITION. METHODS: print_data REDEFINITION. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zsimple_report IMPLEMENTATION. METHOD get_data. data(lo_data) = new zdata_from_file( ). lo_data->read_data( ). ENDMETHOD. "get_Data METHOD print_data. data(lo_print) = new zprint_simple( ). lo_print->write_data( ). ENDMETHOD. "print_data ENDCLASS.
[ 31631, 1976, 36439, 62, 13116, 5550, 20032, 17941, 3268, 16879, 2043, 2751, 16034, 1168, 2200, 15490, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 651, 62, 7890, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 3601, 62, 7890, 23848, 36, 20032, 17941, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 36439, 62, 13116, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 651, 62, 7890, 13, 198, 220, 220, 220, 1366, 7, 5439, 62, 7890, 8, 796, 649, 1976, 7890, 62, 6738, 62, 7753, 7, 220, 6739, 198, 220, 220, 220, 2376, 62, 7890, 3784, 961, 62, 7890, 7, 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, 1136, 62, 6601, 198, 220, 337, 36252, 3601, 62, 7890, 13, 198, 220, 220, 220, 1366, 7, 5439, 62, 4798, 8, 796, 649, 1976, 4798, 62, 36439, 7, 220, 6739, 198, 220, 220, 220, 2376, 62, 4798, 3784, 13564, 62, 7890, 7, 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, 4798, 62, 7890, 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 ]
*----------------------------------------------------------------------* ***INCLUDE LZKR_POSTCODEF01. *----------------------------------------------------------------------* *&---------------------------------------------------------------------* *& Form do_init *&---------------------------------------------------------------------* *& text *&---------------------------------------------------------------------* *& --> p1 text *& <-- p2 text *&---------------------------------------------------------------------* FORM do_init . DATA: lo_parent TYPE REF TO cl_gui_container, lt_event TYPE cntl_simple_events, ls_event TYPE cntl_simple_event, lv_url TYPE bxurlg-gen_url. CREATE OBJECT go_event_handler. " full screen CREATE OBJECT go_gui_full_screen EXPORTING side = cl_gui_docking_container=>dock_at_bottom extension = cl_gui_docking_container=>ws_maximizebox caption = 'Address'. lo_parent = go_gui_full_screen. " html viewer CREATE OBJECT go_gui_html_viewer EXPORTING parent = lo_parent query_table_disabled = abap_true. ls_event-eventid = cl_gui_html_viewer=>m_id_sapevent. ls_event-appl_event = abap_true. APPEND ls_event TO lt_event. go_gui_html_viewer->set_registered_events( lt_event ). SET HANDLER go_event_handler->on_sapevent FOR go_gui_html_viewer. " SMW0 Web Repository Object 사용. go_gui_html_viewer->load_html_document( EXPORTING document_id = 'ZKR_POSTCODE' IMPORTING assigned_url = lv_url EXCEPTIONS document_not_found = 1 dp_error_general = 2 dp_invalid_parameter = 3 html_syntax_notcorrect = 4 OTHERS = 5 ). IF sy-subrc EQ 1. zcl_kr_postcode=>readme_smw0_zkr_postcode( ). ENDIF. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. go_gui_html_viewer->show_url( lv_url ). ENDFORM. *&---------------------------------------------------------------------* *& Form do_free_and_back *&---------------------------------------------------------------------* *& text *&---------------------------------------------------------------------* *& --> p1 text *& <-- p2 text *&---------------------------------------------------------------------* FORM do_free_and_back . IF go_gui_html_viewer IS NOT INITIAL. go_gui_html_viewer->free( ). ENDIF. IF go_gui_full_screen IS NOT INITIAL. go_gui_full_screen->free( ). ENDIF. FREE: go_gui_html_viewer, go_gui_full_screen, go_event_handler. LEAVE TO SCREEN 0. ENDFORM. *&---------------------------------------------------------------------* *& Form on_sapevent *&---------------------------------------------------------------------* *& text *&---------------------------------------------------------------------* *& --> ACTION *& --> POSTDATA *&---------------------------------------------------------------------* FORM on_sapevent USING iv_action it_postdata TYPE cnht_post_data_tab. DATA: lv_json TYPE string. CASE iv_action. WHEN 'RETURN'. CONCATENATE LINES OF it_postdata INTO lv_json. REPLACE 'return=' IN lv_json WITH ''. gs_addr = zcl_kr_postcode=>convert_json_to_addr( lv_json ). PERFORM do_free_and_back. WHEN OTHERS. ENDCASE. ENDFORM.
[ 9, 10097, 23031, 9, 198, 8162, 1268, 5097, 52, 7206, 406, 57, 30758, 62, 32782, 34, 16820, 37, 486, 13, 198, 9, 10097, 23031, 9, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 5178, 466, 62, 15003, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 2420, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 14610, 220, 279, 16, 220, 220, 220, 220, 220, 220, 220, 2420, 198, 9, 5, 1279, 438, 220, 279, 17, 220, 220, 220, 220, 220, 220, 220, 2420, 198, 9, 5, 10097, 30934, 9, 198, 21389, 466, 62, 15003, 764, 628, 220, 42865, 25, 2376, 62, 8000, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 34924, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 15596, 220, 41876, 269, 429, 75, 62, 36439, 62, 31534, 11, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 15596, 220, 41876, 269, 429, 75, 62, 36439, 62, 15596, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 6371, 220, 220, 220, 41876, 275, 87, 6371, 70, 12, 5235, 62, 6371, 13, 628, 220, 29244, 6158, 25334, 23680, 467, 62, 15596, 62, 30281, 13, 628, 220, 366, 1336, 3159, 198, 220, 29244, 6158, 25334, 23680, 467, 62, 48317, 62, 12853, 62, 9612, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 1735, 220, 220, 220, 220, 220, 796, 537, 62, 48317, 62, 67, 8629, 62, 34924, 14804, 67, 735, 62, 265, 62, 22487, 198, 220, 220, 220, 220, 220, 7552, 796, 537, 62, 48317, 62, 67, 8629, 62, 34924, 14804, 18504, 62, 9806, 48439, 3524, 198, 220, 220, 220, 220, 220, 8305, 220, 220, 796, 705, 20231, 4458, 198, 220, 2376, 62, 8000, 796, 467, 62, 48317, 62, 12853, 62, 9612, 13, 628, 220, 366, 27711, 19091, 198, 220, 29244, 6158, 25334, 23680, 467, 62, 48317, 62, 6494, 62, 1177, 263, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 2560, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2376, 62, 8000, 198, 220, 220, 220, 220, 220, 12405, 62, 11487, 62, 47730, 796, 450, 499, 62, 7942, 13, 198, 220, 43979, 62, 15596, 12, 15596, 312, 796, 537, 62, 48317, 62, 6494, 62, 1177, 263, 14804, 76, 62, 312, 62, 82, 1758, 1151, 13, 198, 220, 43979, 62, 15596, 12, 1324, 75, 62, 15596, 796, 450, 499, 62, 7942, 13, 198, 220, 43504, 10619, 43979, 62, 15596, 5390, 300, 83, 62, 15596, 13, 198, 220, 467, 62, 48317, 62, 6494, 62, 1177, 263, 3784, 2617, 62, 33736, 62, 31534, 7, 300, 83, 62, 15596, 6739, 198, 220, 25823, 367, 6981, 39878, 467, 62, 15596, 62, 30281, 3784, 261, 62, 82, 1758, 1151, 7473, 467, 62, 48317, 62, 6494, 62, 1177, 263, 13, 628, 198, 220, 366, 9447, 54, 15, 5313, 1432, 13264, 9515, 23821, 8955, 168, 248, 102, 13, 198, 220, 467, 62, 48317, 62, 6494, 62, 1177, 263, 3784, 2220, 62, 6494, 62, 22897, 7, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 3188, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 57, 30758, 62, 32782, 34, 16820, 6, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 8686, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 6371, 198, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 3188, 62, 1662, 62, 9275, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 288, 79, 62, 18224, 62, 24622, 220, 220, 220, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 288, 79, 62, 259, 12102, 62, 17143, 2357, 220, 220, 796, 513, 198, 220, 220, 220, 220, 220, 27711, 62, 1837, 41641, 62, 1662, 30283, 796, 604, 198, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 642, 198, 220, 6739, 198, 220, 16876, 827, 12, 7266, 6015, 36529, 352, 13, 198, 220, 220, 220, 1976, 565, 62, 38584, 62, 7353, 8189, 14804, 961, 1326, 62, 5796, 86, 15, 62, 89, 38584, 62, 7353, 8189, 7, 6739, 198, 220, 23578, 5064, 13, 198, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 337, 1546, 4090, 8264, 4522, 827, 12, 19662, 312, 41876, 827, 12, 19662, 774, 36871, 13246, 827, 12, 19662, 3919, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13315, 827, 12, 19662, 85, 16, 827, 12, 19662, 85, 17, 827, 12, 19662, 85, 18, 827, 12, 19662, 85, 19, 13, 198, 220, 23578, 5064, 13, 198, 220, 467, 62, 48317, 62, 6494, 62, 1177, 263, 3784, 12860, 62, 6371, 7, 300, 85, 62, 6371, 6739, 198, 198, 1677, 8068, 1581, 44, 13, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 5178, 466, 62, 5787, 62, 392, 62, 1891, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 2420, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 14610, 220, 279, 16, 220, 220, 220, 220, 220, 220, 220, 2420, 198, 9, 5, 1279, 438, 220, 279, 17, 220, 220, 220, 220, 220, 220, 220, 2420, 198, 9, 5, 10097, 30934, 9, 198, 21389, 466, 62, 5787, 62, 392, 62, 1891, 764, 198, 220, 16876, 467, 62, 48317, 62, 6494, 62, 1177, 263, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 467, 62, 48317, 62, 6494, 62, 1177, 263, 3784, 5787, 7, 6739, 198, 220, 23578, 5064, 13, 198, 220, 16876, 467, 62, 48317, 62, 12853, 62, 9612, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 467, 62, 48317, 62, 12853, 62, 9612, 3784, 5787, 7, 6739, 198, 220, 23578, 5064, 13, 628, 220, 17189, 25, 467, 62, 48317, 62, 6494, 62, 1177, 263, 11, 467, 62, 48317, 62, 12853, 62, 9612, 11, 467, 62, 15596, 62, 30281, 13, 628, 220, 12509, 32, 6089, 5390, 6374, 2200, 1677, 657, 13, 198, 1677, 8068, 1581, 44, 13, 198, 9, 5, 10097, 30934 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*"* use this source file for your ABAP unit test classes CLASS ltcl_pp_factory_should DEFINITION DEFERRED. CLASS zcl_op_pretty_printer_factory DEFINITION LOCAL FRIENDS ltcl_pp_factory_should. CLASS ltcl_pp_factory_should DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. METHODS: find_standard_pretty_printer FOR TESTING RAISING cx_static_check, create_standard_pretty_printer FOR TESTING RAISING cx_static_check. ENDCLASS. CLASS ltcl_pp_factory_should IMPLEMENTATION. METHOD find_standard_pretty_printer. "GIVEN - ... "WHEN DATA(classes) = zcl_op_pretty_printer_factory=>get_activ_implementing_classes( ). "THEN cl_abap_unit_assert=>assert_table_contains( EXPORTING line = |ZCL_OP_VALUE_PRETTY_PRINTER| table = classes msg = |Main implementation of zif_op_value_pretty_printer was not found| ). ENDMETHOD. METHOD create_standard_pretty_printer. "GIVEN zcl_op_pretty_printer_factory=>user_class_customizing = VALUE #( ( user_name = |AGEPPART| class_name = |ZCL_OP_VALUE_PRETTY_PRINTER| ) ). "WHEN DATA(pretty_printer) = zcl_op_pretty_printer_factory=>create( ). "THEN TRY. DATA(must_be_pretty_printer) = CAST zcl_op_value_pretty_printer( pretty_printer ). CATCH cx_sy_move_cast_error INTO DATA(error). cl_abap_unit_assert=>fail( EXPORTING msg = |Standard class ZCL_OP_VALUE_PRETTY_PRINTER was not used in factory but should have been. Error is { error->get_longtext( ) }| ). ENDTRY. ENDMETHOD. ENDCLASS.
[ 9, 1, 9, 779, 428, 2723, 2393, 329, 534, 9564, 2969, 4326, 1332, 6097, 198, 31631, 300, 83, 565, 62, 381, 62, 69, 9548, 62, 21754, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 31631, 1976, 565, 62, 404, 62, 37784, 62, 1050, 3849, 62, 69, 9548, 5550, 20032, 17941, 37347, 1847, 48167, 1677, 5258, 300, 83, 565, 62, 381, 62, 69, 9548, 62, 21754, 13, 198, 31631, 300, 83, 565, 62, 381, 62, 69, 9548, 62, 21754, 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, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 1064, 62, 20307, 62, 37784, 62, 1050, 3849, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 2251, 62, 20307, 62, 37784, 62, 1050, 3849, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 10619, 31631, 13, 628, 198, 31631, 300, 83, 565, 62, 381, 62, 69, 9548, 62, 21754, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1064, 62, 20307, 62, 37784, 62, 1050, 3849, 13, 198, 220, 220, 220, 366, 38, 3824, 1677, 532, 2644, 628, 220, 220, 220, 366, 12418, 1677, 198, 220, 220, 220, 42865, 7, 37724, 8, 796, 1976, 565, 62, 404, 62, 37784, 62, 1050, 3849, 62, 69, 9548, 14804, 1136, 62, 15791, 62, 320, 26908, 278, 62, 37724, 7, 6739, 628, 220, 220, 220, 366, 4221, 1677, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 11487, 62, 3642, 1299, 7, 7788, 15490, 2751, 1627, 220, 220, 796, 930, 57, 5097, 62, 3185, 62, 39488, 62, 47, 26087, 9936, 62, 4805, 41358, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3084, 220, 796, 6097, 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, 31456, 220, 220, 220, 796, 930, 13383, 7822, 286, 1976, 361, 62, 404, 62, 8367, 62, 37784, 62, 1050, 3849, 373, 407, 1043, 91, 220, 220, 220, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 2251, 62, 20307, 62, 37784, 62, 1050, 3849, 13, 628, 220, 220, 220, 366, 38, 3824, 1677, 198, 220, 220, 220, 1976, 565, 62, 404, 62, 37784, 62, 1050, 3849, 62, 69, 9548, 14804, 7220, 62, 4871, 62, 23144, 2890, 796, 26173, 8924, 1303, 7, 357, 2836, 62, 3672, 796, 930, 4760, 8905, 30709, 91, 220, 1398, 62, 3672, 796, 930, 57, 5097, 62, 3185, 62, 39488, 62, 47, 26087, 9936, 62, 4805, 41358, 91, 1267, 6739, 628, 220, 220, 220, 366, 12418, 1677, 198, 220, 220, 220, 42865, 7, 37784, 62, 1050, 3849, 8, 796, 1976, 565, 62, 404, 62, 37784, 62, 1050, 3849, 62, 69, 9548, 14804, 17953, 7, 6739, 628, 198, 220, 220, 220, 366, 4221, 1677, 198, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 27238, 62, 1350, 62, 37784, 62, 1050, 3849, 8, 796, 327, 11262, 1976, 565, 62, 404, 62, 8367, 62, 37784, 62, 1050, 3849, 7, 2495, 62, 1050, 3849, 6739, 628, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 21084, 62, 2701, 62, 18224, 39319, 42865, 7, 18224, 737, 198, 220, 220, 220, 220, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 32165, 7, 7788, 15490, 2751, 31456, 796, 930, 23615, 1398, 1168, 5097, 62, 3185, 62, 39488, 62, 47, 26087, 9936, 62, 4805, 41358, 373, 407, 973, 287, 8860, 475, 815, 423, 587, 13, 13047, 318, 1391, 4049, 3784, 1136, 62, 6511, 5239, 7, 1267, 1782, 91, 6739, 198, 220, 220, 220, 23578, 40405, 13, 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, 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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 ]
*&---------------------------------------------------------------------* *& Report ZDEMO_EXCEL36 REPORT zdemo_excel36. DATA: lo_excel TYPE REF TO zcl_excel, lo_worksheet TYPE REF TO zcl_excel_worksheet, lo_column TYPE REF TO zcl_excel_column, col TYPE i. DATA: lo_style_arial20 TYPE REF TO zcl_excel_style, lo_style_times11 TYPE REF TO zcl_excel_style, lo_style_cambria8red TYPE REF TO zcl_excel_style. DATA: lv_style_arial20_guid TYPE zexcel_cell_style, lv_style_times11_guid TYPE zexcel_cell_style, lv_style_cambria8red_guid TYPE zexcel_cell_style. CONSTANTS: gc_save_file_name TYPE string VALUE '36_DefaultStyles.xlsx'. INCLUDE zdemo_excel_outputopt_incl. START-OF-SELECTION. " Creates active sheet CREATE OBJECT lo_excel. " Create a bold / italic style lo_style_arial20 = lo_excel->add_new_style( ). lo_style_arial20->font->name = zcl_excel_style_font=>c_name_arial. lo_style_arial20->font->scheme = zcl_excel_style_font=>c_scheme_none. lo_style_arial20->font->size = 20. lv_style_arial20_guid = lo_style_arial20->get_guid( ). lo_style_times11 = lo_excel->add_new_style( ). lo_style_times11->font->name = zcl_excel_style_font=>c_name_roman. lo_style_times11->font->scheme = zcl_excel_style_font=>c_scheme_none. lo_style_times11->font->size = 11. lv_style_times11_guid = lo_style_times11->get_guid( ). lo_style_cambria8red = lo_excel->add_new_style( ). lo_style_cambria8red->font->name = zcl_excel_style_font=>c_name_cambria. lo_style_cambria8red->font->scheme = zcl_excel_style_font=>c_scheme_none. lo_style_cambria8red->font->size = 8. lo_style_cambria8red->font->color-rgb = zcl_excel_style_color=>c_red. lv_style_cambria8red_guid = lo_style_cambria8red->get_guid( ). lo_excel->set_default_style( lv_style_arial20_guid ). " Default for all new worksheets * 1st sheet - do not change anything --> defaultstyle from lo_excel should apply lo_worksheet = lo_excel->get_active_worksheet( ). lo_worksheet->set_title( 'Style for complete document' ). lo_worksheet->set_cell( ip_column = 2 ip_row = 4 ip_value = 'All cells in this sheet are set to font Arial, fontsize 20' ). lo_worksheet->set_cell( ip_column = 2 ip_row = 5 ip_value = 'because no separate style was passed for this sheet' ). lo_worksheet->set_cell( ip_column = 2 ip_row = 6 ip_value = 'but a default style was set for the complete instance of zcl_excel' ). lo_worksheet->set_cell( ip_column = 2 ip_row = 1 ip_value = space ). " Missing feature "set active cell - use this to simulate that * 2nd sheet - defaultstyle for this sheet set explicitly ( set to Times New Roman 11 ) lo_worksheet = lo_excel->add_new_worksheet( ). lo_worksheet->set_title( 'Style for this sheet' ). lo_worksheet->zif_excel_sheet_properties~set_style( lv_style_times11_guid ). lo_worksheet->set_cell( ip_column = 2 ip_row = 4 ip_value = 'All cells in this sheet are set to font Times New Roman, fontsize 11' ). lo_worksheet->set_cell( ip_column = 2 ip_row = 5 ip_value = 'because this style was passed for this sheet' ). lo_worksheet->set_cell( ip_column = 2 ip_row = 6 ip_value = 'thus the default style from zcl_excel does not apply to this sheet' ). lo_worksheet->set_cell( ip_column = 2 ip_row = 1 ip_value = space ). " Missing feature "set active cell - use this to simulate that * 3rd sheet - defaultstyle for columns ( set to Times New Roman 11 ) lo_worksheet = lo_excel->add_new_worksheet( ). lo_worksheet->set_title( 'Style for 3 columns' ). lo_column = lo_worksheet->get_column( 'B' ). lo_column->set_column_style_by_guid( ip_style_guid = lv_style_times11_guid ). lo_column = lo_worksheet->get_column( 'C' ). lo_column->set_column_style_by_guid( ip_style_guid = lv_style_times11_guid ). lo_column = lo_worksheet->get_column( 'F' ). lo_column->set_column_style_by_guid( ip_style_guid = lv_style_times11_guid ). lo_worksheet->set_cell( ip_column = 2 ip_row = 4 ip_value = 'The columns B,C and F are set to Times New Roman' ). lo_worksheet->set_cell( ip_column = 2 ip_row = 10 ip_value = 'All other cells in this sheet are set to font Arial, fontsize 20' ). lo_worksheet->set_cell( ip_column = 2 ip_row = 11 ip_value = 'because no separate style was passed for this sheet' ). lo_worksheet->set_cell( ip_column = 2 ip_row = 12 ip_value = 'but a default style was set for the complete instance of zcl_excel' ). lo_worksheet->set_cell( ip_column = 8 ip_row = 1 ip_value = 'Of course' ip_style = lv_style_cambria8red_guid ). lo_worksheet->set_cell( ip_column = 8 ip_row = 2 ip_value = 'setting a specific style to a cell' ip_style = lv_style_cambria8red_guid ). lo_worksheet->set_cell( ip_column = 8 ip_row = 3 ip_value = 'takes precedence over all defaults' ip_style = lv_style_cambria8red_guid ). lo_worksheet->set_cell( ip_column = 8 ip_row = 4 ip_value = 'Here: Cambria 8 in red' ip_style = lv_style_cambria8red_guid ). * Set entry into each of the first 10 columns DO 20 TIMES. col = sy-index. CASE col. WHEN 2 " B OR 3 " C OR 6." F lo_worksheet->set_cell( ip_column = col ip_row = 6 ip_value = 'Times 11' ). WHEN OTHERS. lo_worksheet->set_cell( ip_column = col ip_row = 6 ip_value = 'Arial 20' ). ENDCASE. ENDDO. lo_worksheet->set_cell( ip_column = 2 ip_row = 1 ip_value = space ). " Missing feature "set active cell - use this to simulate that lo_excel->set_active_sheet_index( 1 ). *** Create output lcl_output=>output( lo_excel ).
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 220, 1168, 39429, 46, 62, 6369, 34, 3698, 2623, 198, 2200, 15490, 1976, 9536, 78, 62, 1069, 5276, 2623, 13, 198, 198, 26947, 25, 2376, 62, 1069, 5276, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 5225, 25473, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 5225, 25473, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 28665, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 28665, 11, 198, 220, 220, 220, 220, 220, 951, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 13, 198, 198, 26947, 25, 2376, 62, 7635, 62, 36098, 1238, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 7635, 62, 22355, 1157, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 7635, 62, 66, 4131, 7496, 23, 445, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7635, 13, 198, 198, 26947, 25, 300, 85, 62, 7635, 62, 36098, 1238, 62, 5162, 312, 220, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 3846, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 7635, 62, 22355, 1157, 62, 5162, 312, 220, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 3846, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 7635, 62, 66, 4131, 7496, 23, 445, 62, 5162, 312, 41876, 1976, 1069, 5276, 62, 3846, 62, 7635, 13, 628, 198, 10943, 2257, 1565, 4694, 25, 308, 66, 62, 21928, 62, 7753, 62, 3672, 41876, 4731, 26173, 8924, 705, 2623, 62, 19463, 18716, 829, 13, 87, 7278, 87, 4458, 198, 1268, 5097, 52, 7206, 1976, 9536, 78, 62, 1069, 5276, 62, 22915, 8738, 62, 259, 565, 13, 198, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 628, 220, 366, 7921, 274, 4075, 9629, 198, 220, 29244, 6158, 25334, 23680, 2376, 62, 1069, 5276, 13, 628, 220, 366, 13610, 257, 10758, 1220, 46127, 291, 3918, 198, 220, 2376, 62, 7635, 62, 36098, 1238, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2376, 62, 1069, 5276, 3784, 2860, 62, 3605, 62, 7635, 7, 6739, 198, 220, 2376, 62, 7635, 62, 36098, 1238, 3784, 10331, 3784, 3672, 220, 220, 220, 220, 220, 796, 1976, 565, 62, 1069, 5276, 62, 7635, 62, 10331, 14804, 66, 62, 3672, 62, 36098, 13, 198, 220, 2376, 62, 7635, 62, 36098, 1238, 3784, 10331, 3784, 15952, 1326, 220, 220, 220, 796, 1976, 565, 62, 1069, 5276, 62, 7635, 62, 10331, 14804, 66, 62, 15952, 1326, 62, 23108, 13, 198, 220, 2376, 62, 7635, 62, 36098, 1238, 3784, 10331, 3784, 7857, 220, 220, 220, 220, 220, 796, 1160, 13, 198, 220, 300, 85, 62, 7635, 62, 36098, 1238, 62, 5162, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2376, 62, 7635, 62, 36098, 1238, 3784, 1136, 62, 5162, 312, 7, 6739, 628, 220, 2376, 62, 7635, 62, 22355, 1157, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2376, 62, 1069, 5276, 3784, 2860, 62, 3605, 62, 7635, 7, 6739, 198, 220, 2376, 62, 7635, 62, 22355, 1157, 3784, 10331, 3784, 3672, 220, 220, 220, 220, 220, 796, 1976, 565, 62, 1069, 5276, 62, 7635, 62, 10331, 14804, 66, 62, 3672, 62, 47119, 13, 198, 220, 2376, 62, 7635, 62, 22355, 1157, 3784, 10331, 3784, 15952, 1326, 220, 220, 220, 796, 1976, 565, 62, 1069, 5276, 62, 7635, 62, 10331, 14804, 66, 62, 15952, 1326, 62, 23108, 13, 198, 220, 2376, 62, 7635, 62, 22355, 1157, 3784, 10331, 3784, 7857, 220, 220, 220, 220, 220, 796, 1367, 13, 198, 220, 300, 85, 62, 7635, 62, 22355, 1157, 62, 5162, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2376, 62, 7635, 62, 22355, 1157, 3784, 1136, 62, 5162, 312, 7, 6739, 628, 220, 2376, 62, 7635, 62, 66, 4131, 7496, 23, 445, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2376, 62, 1069, 5276, 3784, 2860, 62, 3605, 62, 7635, 7, 6739, 198, 220, 2376, 62, 7635, 62, 66, 4131, 7496, 23, 445, 3784, 10331, 3784, 3672, 220, 220, 220, 220, 220, 796, 1976, 565, 62, 1069, 5276, 62, 7635, 62, 10331, 14804, 66, 62, 3672, 62, 66, 4131, 7496, 13, 198, 220, 2376, 62, 7635, 62, 66, 4131, 7496, 23, 445, 3784, 10331, 3784, 15952, 1326, 220, 220, 220, 796, 1976, 565, 62, 1069, 5276, 62, 7635, 62, 10331, 14804, 66, 62, 15952, 1326, 62, 23108, 13, 198, 220, 2376, 62, 7635, 62, 66, 4131, 7496, 23, 445, 3784, 10331, 3784, 7857, 220, 220, 220, 220, 220, 796, 807, 13, 198, 220, 2376, 62, 7635, 62, 66, 4131, 7496, 23, 445, 3784, 10331, 3784, 8043, 12, 81, 22296, 796, 1976, 565, 62, 1069, 5276, 62, 7635, 62, 8043, 14804, 66, 62, 445, 13, 198, 220, 300, 85, 62, 7635, 62, 66, 4131, 7496, 23, 445, 62, 5162, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2376, 62, 7635, 62, 66, 4131, 7496, 23, 445, 3784, 1136, 62, 5162, 312, 7, 6739, 628, 220, 2376, 62, 1069, 5276, 3784, 2617, 62, 12286, 62, 7635, 7, 300, 85, 62, 7635, 62, 36098, 1238, 62, 5162, 312, 6739, 220, 366, 15161, 329, 477, 649, 2499, 258, 1039, 198, 198, 9, 352, 301, 9629, 532, 466, 407, 1487, 1997, 14610, 4277, 7635, 422, 2376, 62, 1069, 5276, 815, 4174, 198, 220, 2376, 62, 5225, 25473, 796, 2376, 62, 1069, 5276, 3784, 1136, 62, 5275, 62, 5225, 25473, 7, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 7839, 7, 705, 21466, 329, 1844, 3188, 6, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 3846, 7, 20966, 62, 28665, 796, 362, 20966, 62, 808 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_reverse_string_example DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. METHODS reverse_string IMPORTING !input TYPE string RETURNING VALUE(result) TYPE string . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_reverse_string_example IMPLEMENTATION. METHOD reverse_string. result = reverse( input ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 50188, 62, 8841, 62, 20688, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 9575, 62, 8841, 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, 20274, 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, 50188, 62, 8841, 62, 20688, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 9575, 62, 8841, 13, 198, 220, 220, 220, 1255, 796, 9575, 7, 5128, 6739, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_progress DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. METHODS show IMPORTING VALUE(iv_current) TYPE i !iv_text TYPE csequence . METHODS constructor IMPORTING !iv_total TYPE i . PROTECTED SECTION. DATA mv_total TYPE i . METHODS calc_pct IMPORTING !iv_current TYPE i RETURNING VALUE(rv_pct) TYPE i . PRIVATE SECTION. DATA mv_cv_time_next TYPE sy-uzeit . DATA mv_cv_datum_next TYPE sy-datum . ENDCLASS. CLASS ZCL_ABAPGIT_PROGRESS IMPLEMENTATION. METHOD calc_pct. DATA: lv_f TYPE f. lv_f = ( iv_current / mv_total ) * 100. rv_pct = lv_f. IF rv_pct = 100. rv_pct = 99. ENDIF. ENDMETHOD. METHOD constructor. mv_total = iv_total. ENDMETHOD. METHOD show. DATA: lv_pct TYPE i. DATA: lv_time TYPE t. CONSTANTS: lc_wait_secs TYPE i VALUE 2. GET TIME. lv_time = sy-uzeit. IF mv_cv_time_next IS INITIAL AND mv_cv_datum_next IS INITIAL. mv_cv_time_next = lv_time. mv_cv_datum_next = sy-datum. ENDIF. "We only do a progress indication if enough time has passed IF lv_time >= mv_cv_time_next AND sy-datum = mv_cv_datum_next OR sy-datum > mv_cv_datum_next. lv_pct = calc_pct( iv_current ). CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = lv_pct text = iv_text. mv_cv_time_next = lv_time + lc_wait_secs. ENDIF. IF sy-datum > mv_cv_datum_next. mv_cv_datum_next = sy-datum. ENDIF. IF mv_cv_time_next < lv_time. mv_cv_datum_next = sy-datum + 1. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 33723, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 905, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 452, 62, 14421, 8, 41876, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 5239, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 43167, 764, 198, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 23350, 41876, 1312, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 42865, 285, 85, 62, 23350, 41876, 1312, 764, 628, 220, 220, 220, 337, 36252, 50, 42302, 62, 79, 310, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 14421, 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, 79, 310, 8, 41876, 1312, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 285, 85, 62, 33967, 62, 2435, 62, 19545, 41876, 827, 12, 84, 2736, 270, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 33967, 62, 19608, 388, 62, 19545, 41876, 827, 12, 19608, 388, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 4805, 49656, 7597, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 42302, 62, 79, 310, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 69, 41876, 277, 13, 628, 220, 220, 220, 300, 85, 62, 69, 796, 357, 21628, 62, 14421, 1220, 285, 85, 62, 23350, 1267, 1635, 1802, 13, 198, 220, 220, 220, 374, 85, 62, 79, 310, 796, 300, 85, 62, 69, 13, 628, 220, 220, 220, 16876, 374, 85, 62, 79, 310, 796, 1802, 13, 198, 220, 220, 220, 220, 220, 374, 85, 62, 79, 310, 796, 7388, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 285, 85, 62, 23350, 796, 21628, 62, 23350, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 905, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 79, 310, 220, 41876, 1312, 13, 198, 220, 220, 220, 42865, 25, 300, 85, 62, 2435, 41876, 256, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 300, 66, 62, 17077, 62, 2363, 82, 41876, 1312, 26173, 8924, 362, 13, 628, 220, 220, 220, 17151, 20460, 13, 198, 220, 220, 220, 300, 85, 62, 2435, 796, 827, 12, 84, 2736, 270, 13, 198, 220, 220, 220, 16876, 285, 85, 62, 33967, 62, 2435, 62, 19545, 3180, 3268, 2043, 12576, 5357, 285, 85, 62, 33967, 62, 19608, 388, 62, 19545, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 285, 85, 62, 33967, 62, 2435, 62, 19545, 220, 796, 300, 85, 62, 2435, 13, 198, 220, 220, 220, 220, 220, 285, 85, 62, 33967, 62, 19608, 388, 62, 19545, 796, 827, 12, 19608, 388, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 366, 1135, 691, 466, 257, 4371, 12955, 611, 1576, 640, 468, 3804, 198, 220, 220, 220, 16876, 300, 85, 62, 2435, 220, 18189, 285, 85, 62, 33967, 62, 2435, 62, 19545, 220, 5357, 827, 12, 19608, 388, 796, 285, 85, 62, 33967, 62, 19608, 388, 62, 19545, 220, 6375, 198, 220, 220, 220, 220, 220, 220, 827, 12, 19608, 388, 1875, 220, 285, 85, 62, 33967, 62, 19608, 388, 62, 19545, 13, 628, 220, 220, 220, 220, 220, 300, 85, 62, 79, 310, 796, 42302, 62, 79, 310, 7, 21628, 62, 14421, 6739, 628, 220, 220, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 50, 2969, 40156, 62, 4805, 49656, 7597, 62, 12115, 2149, 25633, 6, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5873, 796, 300, 85, 62, 79, 310, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 5239, 13, 198, 220, 220, 220, 220, 220, 285, 85, 62, 33967, 62, 2435, 62, 19545, 796, 300, 85, 62, 2435, 1343, 300, 66, 62, 17077, 62, 2363, 82, 13, 628, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 16876, 827, 12, 19608, 388, 1875, 285, 85, 62, 33967, 62, 19608, 388, 62, 19545, 13, 198, 220, 220, 220, 220, 220, 285, 85, 62, 33967, 62, 19608, 388, 62, 19545, 796, 827, 12, 19608, 388, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 16876, 285, 85, 62, 33967, 62, 2435, 62, 19545, 1279, 300, 85, 62, 2435, 13, 198, 220, 220, 220, 220, 220, 285, 85, 62, 33967, 62, 19608, 388, 62, 19545, 796, 827, 12, 19608, 388, 1343, 352, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*"* use this source file for your ABAP unit test classes CLASS ltcl_main DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. METHODS: build_simple_call FOR TESTING RAISING cx_static_check, build_call_exporting FOR TESTING RAISING cx_static_check, build_call_importing FOR TESTING RAISING cx_static_check, build_call_changing FOR TESTING RAISING cx_static_check, build_call_tables FOR TESTING RAISING cx_static_check, build_call_exception FOR TESTING RAISING cx_static_check, build_call_combined FOR TESTING RAISING cx_static_check. ENDCLASS. CLASS ltcl_main IMPLEMENTATION. METHOD build_simple_call. DATA(cut) = NEW zcl_fmwp_fcall( ). cut->set_name( 'function_name' ). CALL METHOD cut->build_source IMPORTING et_source = DATA(l_src). DATA(l_exp_src) = VALUE rswsourcet( ( |call function 'FUNCTION_NAME'| ) ( |exceptions| ) ( |others = 1| ) ( |.| ) ). cl_abap_unit_assert=>assert_equals( msg = 'src' exp = l_exp_src act = l_src ). ENDMETHOD. METHOD build_call_exporting. DATA(cut) = NEW zcl_fmwp_fcall( ). cut->set_name( 'function_name' ). cut->add( i_type = cut->c_exporting i_name = 'param1' i_value = 'value' ). CALL METHOD cut->build_source IMPORTING et_source = DATA(l_src). DATA(l_exp_src) = VALUE rswsourcet( ( |call function 'FUNCTION_NAME'| ) ( |exporting| ) ( |param1 = value| ) ( |exceptions| ) ( |others = 1| ) ( |.| ) ). cl_abap_unit_assert=>assert_equals( msg = 'src' exp = l_exp_src act = l_src ). ENDMETHOD. METHOD build_call_importing. DATA(cut) = NEW zcl_fmwp_fcall( ). cut->set_name( 'function_name' ). cut->add( i_type = cut->c_importing i_name = 'param1' i_value = 'value' ). CALL METHOD cut->build_source IMPORTING et_source = DATA(l_src). DATA(l_exp_src) = VALUE rswsourcet( ( |call function 'FUNCTION_NAME'| ) ( |importing| ) ( |param1 = value| ) ( |exceptions| ) ( |others = 1| ) ( |.| ) ). cl_abap_unit_assert=>assert_equals( msg = 'src' exp = l_exp_src act = l_src ). ENDMETHOD. METHOD build_call_changing. DATA(cut) = NEW zcl_fmwp_fcall( ). cut->set_name( 'function_name' ). cut->add( i_type = cut->c_changing i_name = 'param1' i_value = 'value' ). CALL METHOD cut->build_source IMPORTING et_source = DATA(l_src). DATA(l_exp_src) = VALUE rswsourcet( ( |call function 'FUNCTION_NAME'| ) ( |changing| ) ( |param1 = value| ) ( |exceptions| ) ( |others = 1| ) ( |.| ) ). cl_abap_unit_assert=>assert_equals( msg = 'src' exp = l_exp_src act = l_src ). ENDMETHOD. METHOD build_call_tables. DATA(cut) = NEW zcl_fmwp_fcall( ). cut->set_name( 'function_name' ). cut->add( i_type = cut->c_tables i_name = 'param1' i_value = 'value' ). CALL METHOD cut->build_source IMPORTING et_source = DATA(l_src). DATA(l_exp_src) = VALUE rswsourcet( ( |call function 'FUNCTION_NAME'| ) ( |tables| ) ( |param1 = value| ) ( |exceptions| ) ( |others = 1| ) ( |.| ) ). cl_abap_unit_assert=>assert_equals( msg = 'src' exp = l_exp_src act = l_src ). ENDMETHOD. METHOD build_call_exception. DATA(cut) = NEW zcl_fmwp_fcall( ). cut->set_name( 'function_name' ). cut->add( i_type = cut->c_exception i_name = 'param1' ). CALL METHOD cut->build_source IMPORTING et_source = DATA(l_src). DATA(l_exp_src) = VALUE rswsourcet( ( |call function 'FUNCTION_NAME'| ) ( |exceptions| ) ( |param1 = 1| ) ( |others = 2| ) ( |.| ) ). cl_abap_unit_assert=>assert_equals( msg = 'src' exp = l_exp_src act = l_src ). ENDMETHOD. METHOD build_call_combined. DATA(cut) = NEW zcl_fmwp_fcall( ). cut->set_name( 'function_name' ). cut->add( i_type = cut->c_tables i_name = 'table1' i_value = 'tvalue' ). cut->add( i_type = cut->c_importing i_name = 'imp1' i_value = 'i_value' ). cut->add( i_type = cut->c_exporting i_name = 'exp1' i_value = 'e_value' ). cut->add( i_type = cut->c_changing i_name = 'chg1' i_value = 'c_value' ). cut->add( i_type = cut->c_exception i_name = 'param1' ). CALL METHOD cut->build_source IMPORTING et_source = DATA(l_src). DATA(l_exp_src) = VALUE rswsourcet( ( |call function 'FUNCTION_NAME'| ) ( |exporting| ) ( |exp1 = e_value| ) ( |importing| ) ( |imp1 = i_value| ) ( |tables| ) ( |table1 = tvalue| ) ( |changing| ) ( |chg1 = c_value| ) ( |exceptions| ) ( |param1 = 1| ) ( |others = 2| ) ( |.| ) ). cl_abap_unit_assert=>assert_equals( msg = 'src' exp = l_exp_src act = l_src ). ENDMETHOD. ENDCLASS.
[ 9, 1, 9, 779, 428, 2723, 2393, 329, 534, 9564, 2969, 4326, 1332, 6097, 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, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 1382, 62, 36439, 62, 13345, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 1382, 62, 13345, 62, 1069, 26527, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 1382, 62, 13345, 62, 11748, 278, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 1382, 62, 13345, 62, 22954, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 1382, 62, 13345, 62, 83, 2977, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 1382, 62, 13345, 62, 1069, 4516, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 1382, 62, 13345, 62, 24011, 1389, 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, 1382, 62, 36439, 62, 13345, 13, 198, 220, 220, 220, 42865, 7, 8968, 8, 796, 12682, 1976, 565, 62, 38353, 24142, 62, 69, 13345, 7, 6739, 198, 220, 220, 220, 2005, 3784, 2617, 62, 3672, 7, 705, 8818, 62, 3672, 6, 6739, 198, 220, 220, 220, 42815, 337, 36252, 2005, 3784, 11249, 62, 10459, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2123, 62, 10459, 796, 42865, 7, 75, 62, 10677, 737, 198, 220, 220, 220, 42865, 7, 75, 62, 11201, 62, 10677, 8, 796, 26173, 8924, 374, 2032, 82, 454, 66, 316, 7, 198, 220, 220, 220, 220, 220, 357, 930, 13345, 2163, 705, 42296, 4177, 2849, 62, 20608, 6, 91, 1267, 198, 220, 220, 220, 220, 220, 357, 930, 1069, 11755, 91, 1267, 198, 220, 220, 220, 220, 220, 357, 930, 847, 82, 796, 352, 91, 1267, 198, 220, 220, 220, 220, 220, 357, 930, 13, 91, 1267, 6739, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 31456, 796, 705, 10677, 6, 1033, 796, 300, 62, 11201, 62, 10677, 719, 796, 300, 62, 10677, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1382, 62, 13345, 62, 1069, 26527, 13, 198, 220, 220, 220, 42865, 7, 8968, 8, 796, 12682, 1976, 565, 62, 38353, 24142, 62, 69, 13345, 7, 6739, 198, 220, 220, 220, 2005, 3784, 2617, 62, 3672, 7, 705, 8818, 62, 3672, 6, 6739, 198, 220, 220, 220, 2005, 3784, 2860, 7, 1312, 62, 4906, 796, 2005, 3784, 66, 62, 1069, 26527, 1312, 62, 3672, 796, 705, 17143, 16, 6, 1312, 62, 8367, 796, 705, 8367, 6, 6739, 628, 198, 220, 220, 220, 42815, 337, 36252, 2005, 3784, 11249, 62, 10459, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2123, 62, 10459, 796, 42865, 7, 75, 62, 10677, 737, 198, 220, 220, 220, 42865, 7, 75, 62, 11201, 62, 10677, 8, 796, 26173, 8924, 374, 2032, 82, 454, 66, 316, 7, 198, 220, 220, 220, 220, 220, 357, 930, 13345, 2163, 705, 42296, 4177, 2849, 62, 20608, 6, 91, 1267, 198, 220, 220, 220, 220, 220, 357, 930, 1069, 26527, 91, 1267, 198, 220, 220, 220, 220, 220, 357, 930, 17143, 16, 796, 1988, 91, 1267, 198, 220, 220, 220, 220, 220, 357, 930, 1069, 11755, 91, 1267, 198, 220, 220, 220, 220, 220, 357, 930, 847, 82, 796, 352, 91, 1267, 198, 220, 220, 220, 220, 220, 357, 930, 13, 91, 1267, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 31456, 796, 705, 10677, 6, 1033, 796, 300, 62, 11201, 62, 10677, 719, 796, 300, 62, 10677, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1382, 62, 13345, 62, 11748, 278, 13, 198, 220, 220, 220, 42865, 7, 8968, 8, 796, 12682, 1976, 565, 62, 38353, 24142, 62, 69, 13345, 7, 6739, 198, 220, 220, 220, 2005, 3784, 2617, 62, 3672, 7, 705, 8818, 62, 3672, 6, 6739, 198, 220, 220, 220, 2005, 3784, 2860, 7, 1312, 62, 4906, 796, 2005, 3784, 66, 62, 11748, 278, 1312, 62, 3672, 796, 705, 17143, 16, 6, 1312, 62, 8367, 796, 705, 8367, 6, 6739, 628, 198, 220, 220, 220, 42815, 337, 36252, 2005, 3784, 11249, 62, 10459, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2123, 62, 10459, 796, 42865, 7, 75, 62, 10677, 737, 198, 220, 220, 220, 42865, 7, 75, 62, 11201, 62, 10677, 8, 796, 26173, 8924, 374, 2032, 82, 454, 66, 316, 7, 198, 220, 220, 220, 220, 220, 357, 930, 13345, 2163, 705, 42296, 4177, 2849, 62, 20608, 6, 91, 1267, 198, 220, 220, 220, 220, 220, 357, 930, 11748, 278, 91, 1267, 198, 220, 220, 220, 220, 220, 357, 930, 17143, 16, 796, 1988, 91, 1267, 198, 220, 220, 220, 220, 220, 357, 930, 1069, 11755, 91, 1267, 198, 220, 220, 220, 220, 220, 357, 930, 847, 82, 796, 352, 91, 1267, 198, 220, 220, 220, 220, 220, 357, 930, 13, 91, 1267, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 31456, 796, 705, 10677, 6, 1033, 796, 300, 62, 11201, 62, 10677, 719, 796, 300, 62, 10677, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1382, 62, 13345, 62, 22954, 13, 198, 220, 220, 220, 42865, 7, 8968, 8, 796, 12682, 1976, 565, 62, 38353, 24142, 62, 69, 13345, 7, 6739, 198, 220, 220, 220, 2005, 3784, 2617, 62, 3672, 7, 705, 8818, 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,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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 ]
FUNCTION CONVERSION_EXIT_ZBPER_OUTPUT. *"-------------------------------------------------------------------- *"*"Lokale Schnittstelle: *" IMPORTING *" VALUE(INPUT) TYPE CLIKE *" EXPORTING *" VALUE(OUTPUT) TYPE CLIKE *"-------------------------------------------------------------------- DATA lv_uname TYPE xubname. DATA lv_length TYPE i. DATA ls_address TYPE bapiaddr3. DATA lt_return TYPE STANDARD TABLE OF bapiret2. lv_uname = input. lv_length = STRLEN( lv_uname ). IF lv_length > 12. output = input. ELSE. TRANSLATE lv_uname TO UPPER CASE. CALL FUNCTION 'BAPI_USER_GET_DETAIL' EXPORTING username = lv_uname IMPORTING address = ls_address TABLES return = lt_return. READ TABLE lt_return TRANSPORTING NO FIELDS WITH KEY type = 'E'. IF sy-subrc > 0. CONCATENATE ls_address-firstname ls_address-lastname INTO output SEPARATED BY space. ELSE. output = input. ENDIF. ENDIF. ENDFUNCTION.
[ 42296, 4177, 2849, 7102, 43717, 62, 6369, 2043, 62, 57, 33, 18973, 62, 2606, 7250, 3843, 13, 198, 9, 1, 10097, 650, 198, 9, 1, 9, 1, 43, 482, 1000, 45606, 715, 301, 13485, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 1268, 30076, 8, 41876, 220, 43749, 7336, 198, 9, 1, 220, 7788, 15490, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 2606, 7250, 3843, 8, 41876, 220, 43749, 7336, 198, 9, 1, 10097, 650, 628, 220, 42865, 300, 85, 62, 403, 480, 220, 220, 41876, 2124, 549, 3672, 13, 198, 220, 42865, 300, 85, 62, 13664, 220, 41876, 1312, 13, 198, 220, 42865, 43979, 62, 21975, 41876, 275, 15042, 29851, 18, 13, 198, 220, 42865, 300, 83, 62, 7783, 220, 41876, 49053, 9795, 43679, 3963, 275, 499, 557, 83, 17, 13, 628, 220, 300, 85, 62, 403, 480, 796, 5128, 13, 628, 220, 300, 85, 62, 13664, 796, 3563, 7836, 1677, 7, 300, 85, 62, 403, 480, 6739, 628, 220, 16876, 300, 85, 62, 13664, 1875, 1105, 13, 628, 220, 220, 220, 5072, 796, 5128, 13, 198, 220, 17852, 5188, 13, 628, 220, 220, 220, 48213, 8634, 6158, 300, 85, 62, 403, 480, 5390, 471, 10246, 1137, 42001, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 33, 17614, 62, 29904, 62, 18851, 62, 35, 20892, 4146, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 20579, 796, 300, 85, 62, 403, 480, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2209, 220, 796, 43979, 62, 21975, 198, 220, 220, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 220, 220, 796, 300, 83, 62, 7783, 13, 628, 220, 220, 220, 20832, 43679, 300, 83, 62, 7783, 48213, 4303, 9863, 2751, 8005, 18930, 3698, 5258, 13315, 35374, 2099, 796, 705, 36, 4458, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1875, 657, 13, 198, 220, 220, 220, 220, 220, 39962, 1404, 1677, 6158, 43979, 62, 21975, 12, 11085, 3672, 43979, 62, 21975, 12, 12957, 3672, 39319, 5072, 7946, 27082, 11617, 11050, 2272, 13, 198, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 5072, 796, 5128, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 5064, 13, 628, 198, 1677, 8068, 4944, 4177, 2849, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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. * ================ DATA: mo_check TYPE REF TO zcl_aoc_check_64. METHODS: setup, export_import FOR TESTING. ENDCLASS. "lcl_Test CLASS ltcl_test IMPLEMENTATION. * ============================== METHOD setup. CREATE OBJECT mo_check. ENDMETHOD. "setup METHOD export_import. zcl_aoc_unit_test=>export_import( mo_check ). ENDMETHOD. ENDCLASS.
[ 198, 31631, 300, 83, 565, 62, 9288, 5550, 20032, 17941, 7473, 43001, 2751, 198, 220, 360, 4261, 6234, 6006, 9863, 198, 220, 45698, 42, 49277, 43638, 5805, 7597, 198, 220, 25261, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 9, 796, 25609, 18604, 628, 220, 220, 220, 42865, 25, 6941, 62, 9122, 41876, 4526, 37, 5390, 1976, 565, 62, 64, 420, 62, 9122, 62, 2414, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 9058, 11, 198, 220, 220, 220, 220, 220, 10784, 62, 11748, 7473, 43001, 2751, 13, 198, 198, 10619, 31631, 13, 220, 220, 220, 220, 220, 220, 366, 75, 565, 62, 14402, 198, 198, 31631, 300, 83, 565, 62, 9288, 30023, 2538, 10979, 6234, 13, 198, 9, 36658, 25609, 28, 628, 220, 337, 36252, 9058, 13, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 6941, 62, 9122, 13, 198, 220, 23578, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 40406, 628, 220, 337, 36252, 10784, 62, 11748, 13, 198, 220, 220, 220, 1976, 565, 62, 64, 420, 62, 20850, 62, 9288, 14804, 39344, 62, 11748, 7, 6941, 62, 9122, 6739, 198, 220, 23578, 49273, 13, 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 ]
INTERFACE lif_package_interface_facade. METHODS: get_elements IMPORTING iv_with_deleted_elements TYPE flag DEFAULT 'X' EXPORTING et_elements TYPE tpak_package_interf_elem_list RAISING zcx_abapgit_exception, set_elements_changeable IMPORTING VALUE(iv_changeable) TYPE flag RAISING zcx_abapgit_exception, save_elements IMPORTING iv_transport_request TYPE trkorr OPTIONAL iv_suppress_dialog TYPE flag DEFAULT ' ' RAISING zcx_abapgit_exception, get_all_attributes EXPORTING es_package_interface_data TYPE scompidtln RAISING zcx_abapgit_exception, set_changeable IMPORTING VALUE(iv_changeable) TYPE flag RAISING zcx_abapgit_exception, delete IMPORTING iv_suppress_dialog TYPE flag DEFAULT abap_false RAISING zcx_abapgit_exception, save IMPORTING iv_transport_request TYPE trkorr OPTIONAL iv_suppress_dialog TYPE flag DEFAULT ' ' RAISING zcx_abapgit_exception, remove_elements IMPORTING it_elements TYPE tpak_package_interf_elem_list RAISING zcx_abapgit_exception, add_elements IMPORTING is_elements_data TYPE scomeldata RAISING zcx_abapgit_exception, set_all_attributes IMPORTING is_package_interface_data TYPE scompidtln is_data_sign TYPE scompisign RAISING zcx_abapgit_exception, get_changeable EXPORTING VALUE(ev_changeable) TYPE flag RAISING zcx_abapgit_exception. ENDINTERFACE. CLASS lcl_package_interface_facade DEFINITION. PUBLIC SECTION. INTERFACES: lif_package_interface_facade. METHODS: constructor IMPORTING ii_interface TYPE REF TO if_package_interface. PRIVATE SECTION. DATA: mi_interface TYPE REF TO if_package_interface. ENDCLASS.
[ 41358, 49836, 3868, 62, 26495, 62, 39994, 62, 38942, 671, 13, 628, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 651, 62, 68, 3639, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 4480, 62, 2934, 33342, 62, 68, 3639, 41876, 6056, 5550, 38865, 705, 55, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2123, 62, 68, 3639, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 256, 41091, 62, 26495, 62, 3849, 69, 62, 68, 10671, 62, 4868, 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, 11, 628, 220, 220, 220, 900, 62, 68, 3639, 62, 3803, 540, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 452, 62, 3803, 540, 8, 41876, 6056, 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, 11, 628, 220, 220, 220, 3613, 62, 68, 3639, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 7645, 634, 62, 25927, 41876, 491, 74, 38890, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 18608, 601, 62, 38969, 519, 220, 220, 41876, 6056, 5550, 38865, 705, 705, 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, 11, 628, 220, 220, 220, 651, 62, 439, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1658, 62, 26495, 62, 39994, 62, 7890, 41876, 629, 3361, 312, 83, 18755, 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, 11, 628, 220, 220, 220, 900, 62, 3803, 540, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 452, 62, 3803, 540, 8, 41876, 6056, 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, 11, 628, 220, 220, 220, 12233, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 18608, 601, 62, 38969, 519, 41876, 6056, 5550, 38865, 450, 499, 62, 9562, 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, 11, 628, 220, 220, 220, 3613, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 7645, 634, 62, 25927, 41876, 491, 74, 38890, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 18608, 601, 62, 38969, 519, 220, 220, 41876, 6056, 5550, 38865, 705, 705, 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, 11, 628, 220, 220, 220, 4781, 62, 68, 3639, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 68, 3639, 41876, 256, 41091, 62, 26495, 62, 3849, 69, 62, 68, 10671, 62, 4868, 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, 11, 628, 220, 220, 220, 751, 62, 68, 3639, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 68, 3639, 62, 7890, 41876, 629, 462, 335, 1045, 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, 11, 628, 220, 220, 220, 900, 62, 439, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 26495, 62, 39994, 62, 7890, 41876, 629, 3361, 312, 83, 18755, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 7890, 62, 12683, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 629, 3361, 271, 570, 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, 11, 628, 220, 220, 220, 651, 62, 3803, 540, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 1990, 62, 3803, 540, 8, 41876, 6056, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 198, 10619, 41358, 49836, 13, 198, 198, 31631, 300, 565, 62, 26495, 62, 39994, 62, 38942, 671, 5550, 20032, 17941, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 198, 220, 220, 220, 220, 220, 3868, 62, 26495, 62, 39994, 62, 38942, 671, 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, 21065, 62, 39994, 41876, 4526, 37, 5390, 611, 62, 26495, 62, 39994, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 21504, 62, 39994, 41876, 4526, 37, 5390, 611, 62, 26495, 62, 39994, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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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 ]
REPORT zewf_coa_2019_create_packages. PARAMETERS p_devc TYPE c LENGTH 20 DEFAULT '$ADVENTOFCODE2019'. PARAMETERS p_txt1 TYPE c LENGTH 40 LOWER CASE DEFAULT 'Advent Of Code 2019'. PARAMETERS p_txt2 TYPE c LENGTH 40 LOWER CASE DEFAULT 'Day $'. PARAMETERS p_days TYPE i DEFAULT 24. PARAMETERS p_test AS CHECKBOX DEFAULT 'X'. DATA text TYPE c LENGTH 80. DATA devclass TYPE trdevclass. DATA changed TYPE c LENGTH 1. DATA name TYPE devclass. DATA numc TYPE c LENGTH 2. PERFORM create_devclass USING p_devc p_txt1. DO p_days TIMES. numc = sy-index. name = |{ p_devc }_DAY{ sy-index WIDTH = 2 PAD = '0' ALIGN = RIGHT }|. text = |{ p_txt1 } - { p_txt2 }|. REPLACE '$' WITH numc INTO text. PERFORM create_devclass USING name text. ENDDO. FORM create_devclass USING name text. IF p_test = abap_true. WRITE: / name, text. RETURN. ENDIF. devclass-devclass = name. devclass-ctext = text. devclass-as4user = sy-uname. devclass-pdevclass = ''. devclass-dlvunit = 'LOCAL'. devclass-component = space. devclass-comp_appr = space. devclass-comp_text = space. devclass-korrflag = 'X'. devclass-namespace = space. devclass-parentcl = p_devc. devclass-tpclass = space. devclass-type = 'N'. devclass-target = space. devclass-packtype = space. devclass-restricted = space. devclass-mainpack = space. devclass-created_by = sy-uname. devclass-created_on = sy-datum. CALL FUNCTION 'TRINT_MODIFY_DEVCLASS' EXPORTING iv_action = 'CREA' iv_dialog = space is_devclass = devclass iv_request = space IMPORTING es_devclass = devclass ev_something_changed = changed EXCEPTIONS OTHERS = 1. IF sy-subrc > 0. MESSAGE i000(oo) WITH 'Error creating package' name. STOP. ELSE. WRITE: / 'Pacakge created:', name, text. ENDIF. ENDFORM. "create_devclass
[ 2200, 15490, 1976, 413, 69, 62, 1073, 64, 62, 23344, 62, 17953, 62, 43789, 13, 198, 198, 27082, 2390, 2767, 4877, 279, 62, 7959, 66, 41876, 269, 406, 49494, 1160, 5550, 38865, 705, 3, 2885, 53, 3525, 46, 4851, 16820, 23344, 4458, 198, 27082, 2390, 2767, 4877, 279, 62, 14116, 16, 41876, 269, 406, 49494, 2319, 406, 36048, 42001, 5550, 38865, 705, 2782, 1151, 3226, 6127, 13130, 4458, 198, 27082, 2390, 2767, 4877, 279, 62, 14116, 17, 41876, 269, 406, 49494, 2319, 406, 36048, 42001, 5550, 38865, 705, 12393, 720, 4458, 198, 27082, 2390, 2767, 4877, 279, 62, 12545, 41876, 1312, 5550, 38865, 1987, 13, 198, 27082, 2390, 2767, 4877, 279, 62, 9288, 7054, 5870, 25171, 39758, 5550, 38865, 705, 55, 4458, 198, 198, 26947, 2420, 220, 220, 220, 220, 41876, 269, 406, 49494, 4019, 13, 198, 26947, 1614, 4871, 41876, 491, 7959, 4871, 13, 198, 26947, 3421, 220, 41876, 269, 406, 49494, 352, 13, 198, 26947, 1438, 41876, 1614, 4871, 13, 198, 26947, 997, 66, 41876, 269, 406, 49494, 362, 13, 198, 198, 18973, 21389, 2251, 62, 7959, 4871, 1294, 2751, 279, 62, 7959, 66, 279, 62, 14116, 16, 13, 198, 198, 18227, 279, 62, 12545, 31742, 1546, 13, 628, 220, 997, 66, 796, 827, 12, 9630, 13, 198, 220, 1438, 796, 930, 90, 279, 62, 7959, 66, 1782, 62, 26442, 90, 827, 12, 9630, 370, 2389, 4221, 796, 362, 350, 2885, 796, 705, 15, 6, 8355, 16284, 796, 33621, 1782, 91, 13, 198, 220, 2420, 796, 930, 90, 279, 62, 14116, 16, 1782, 532, 1391, 279, 62, 14116, 17, 1782, 91, 13, 198, 220, 45285, 11598, 705, 3, 6, 13315, 997, 66, 39319, 2420, 13, 628, 220, 19878, 21389, 2251, 62, 7959, 4871, 1294, 2751, 1438, 2420, 13, 198, 10619, 18227, 13, 198, 198, 21389, 2251, 62, 7959, 4871, 1294, 2751, 1438, 2420, 13, 628, 220, 16876, 279, 62, 9288, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 44423, 25, 1220, 1438, 11, 2420, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 5064, 13, 628, 220, 1614, 4871, 12, 7959, 4871, 220, 796, 1438, 13, 198, 220, 1614, 4871, 12, 310, 2302, 220, 220, 220, 220, 796, 2420, 13, 198, 220, 1614, 4871, 12, 292, 19, 7220, 220, 220, 796, 827, 12, 403, 480, 13, 198, 220, 1614, 4871, 12, 79, 7959, 4871, 796, 705, 4458, 198, 220, 1614, 4871, 12, 67, 6780, 20850, 220, 220, 796, 705, 29701, 1847, 4458, 198, 220, 1614, 4871, 12, 42895, 796, 2272, 13, 198, 220, 1614, 4871, 12, 5589, 62, 1324, 81, 796, 2272, 13, 198, 220, 1614, 4871, 12, 5589, 62, 5239, 796, 2272, 13, 198, 220, 1614, 4871, 12, 74, 38890, 32109, 220, 796, 705, 55, 4458, 198, 220, 1614, 4871, 12, 14933, 10223, 796, 2272, 13, 198, 220, 1614, 4871, 12, 8000, 565, 220, 220, 796, 279, 62, 7959, 66, 13, 198, 220, 1614, 4871, 12, 34788, 4871, 220, 220, 220, 796, 2272, 13, 198, 220, 1614, 4871, 12, 4906, 220, 220, 220, 220, 220, 220, 796, 705, 45, 4458, 198, 220, 1614, 4871, 12, 16793, 220, 220, 220, 220, 796, 2272, 13, 198, 220, 1614, 4871, 12, 8002, 4906, 220, 220, 796, 2272, 13, 198, 220, 1614, 4871, 12, 49343, 796, 2272, 13, 198, 220, 1614, 4871, 12, 12417, 8002, 220, 220, 796, 2272, 13, 198, 220, 1614, 4871, 12, 25598, 62, 1525, 796, 827, 12, 403, 480, 13, 198, 220, 1614, 4871, 12, 25598, 62, 261, 796, 827, 12, 19608, 388, 13, 628, 198, 220, 42815, 29397, 4177, 2849, 705, 5446, 12394, 62, 33365, 5064, 56, 62, 39345, 31631, 6, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 21628, 62, 2673, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 43387, 32, 6, 198, 220, 220, 220, 220, 220, 21628, 62, 38969, 519, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2272, 198, 220, 220, 220, 220, 220, 318, 62, 7959, 4871, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1614, 4871, 198, 220, 220, 220, 220, 220, 21628, 62, 25927, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2272, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 1658, 62, 7959, 4871, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1614, 4871, 198, 220, 220, 220, 220, 220, 819, 62, 18927, 62, 40985, 796, 3421, 198, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 352, 13, 198, 220, 16876, 827, 12, 7266, 6015, 1875, 657, 13, 198, 220, 220, 220, 337, 1546, 4090, 8264, 1312, 830, 7, 2238, 8, 13315, 705, 12331, 4441, 5301, 6, 1438, 13, 198, 220, 220, 220, 44934, 13, 198, 220, 17852, 5188, 13, 198, 220, 220, 220, 44423, 25, 1220, 705, 18844, 461, 469, 2727, 25, 3256, 1438, 11, 2420, 13, 198, 220, 23578, 5064, 13, 198, 1677, 8068, 1581, 44, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 17953, 62, 7959, 4871, 198 ]
[ 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 ]
CLASS zcl_abapgit_object_iarp DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. PRIVATE SECTION. METHODS: read EXPORTING es_attr TYPE w3resoattr et_parameters TYPE w3resopara_tabletype RAISING zcx_abapgit_exception, save IMPORTING is_attr TYPE w3resoattr it_parameters TYPE w3resopara_tabletype RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_object_iarp IMPLEMENTATION. METHOD zif_abapgit_object~has_changed_since. rv_changed = abap_true. ENDMETHOD. "zif_abapgit_object~has_changed_since METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. " todo ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. "zif_abapgit_object~get_metadata METHOD read. DATA: li_resource TYPE REF TO if_w3_api_resource, ls_name TYPE w3resokey. ls_name = ms_item-obj_name. cl_w3_api_resource=>if_w3_api_resource~load( EXPORTING p_resource_name = ls_name IMPORTING p_resource = li_resource EXCEPTIONS object_not_existing = 1 permission_failure = 2 error_occured = 3 OTHERS = 4 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from w3api_resource~load' ). ENDIF. li_resource->get_attributes( IMPORTING p_attributes = es_attr ). CLEAR: es_attr-chname, es_attr-tdate, es_attr-ttime, es_attr-devclass. li_resource->get_parameters( IMPORTING p_parameters = et_parameters ). ENDMETHOD. "read METHOD zif_abapgit_object~serialize. DATA: ls_attr TYPE w3resoattr, lt_parameters TYPE w3resopara_tabletype. IF zif_abapgit_object~exists( ) = abap_false. RETURN. ENDIF. read( IMPORTING es_attr = ls_attr et_parameters = lt_parameters ). io_xml->add( iv_name = 'ATTR' ig_data = ls_attr ). io_xml->add( iv_name = 'PARAMETERS' ig_data = lt_parameters ). ENDMETHOD. "zif_abapgit_object~serialize METHOD save. DATA: li_resource TYPE REF TO if_w3_api_resource. cl_w3_api_resource=>if_w3_api_resource~create_new( EXPORTING p_resource_data = is_attr IMPORTING p_resource = li_resource ). li_resource->set_attributes( is_attr ). li_resource->set_parameters( it_parameters ). li_resource->if_w3_api_object~save( ). ENDMETHOD. "save METHOD zif_abapgit_object~deserialize. DATA: ls_attr TYPE w3resoattr, lt_parameters TYPE w3resopara_tabletype. io_xml->read( EXPORTING iv_name = 'ATTR' CHANGING cg_data = ls_attr ). io_xml->read( EXPORTING iv_name = 'PARAMETERS' CHANGING cg_data = lt_parameters ). ls_attr-devclass = iv_package. save( is_attr = ls_attr it_parameters = lt_parameters ). ENDMETHOD. "zif_abapgit_object~deserialize METHOD zif_abapgit_object~delete. DATA: li_resource TYPE REF TO if_w3_api_resource, ls_name TYPE w3resokey. ls_name = ms_item-obj_name. cl_w3_api_resource=>if_w3_api_resource~load( EXPORTING p_resource_name = ls_name IMPORTING p_resource = li_resource EXCEPTIONS object_not_existing = 1 permission_failure = 2 error_occured = 3 OTHERS = 4 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from if_w3_api_resource~load' ). ENDIF. li_resource->if_w3_api_object~set_changeable( abap_true ). li_resource->if_w3_api_object~delete( ). li_resource->if_w3_api_object~save( ). ENDMETHOD. "zif_abapgit_object~delete METHOD zif_abapgit_object~exists. DATA: ls_name TYPE w3resokey. ls_name = ms_item-obj_name. cl_w3_api_resource=>if_w3_api_resource~load( EXPORTING p_resource_name = ls_name EXCEPTIONS object_not_existing = 1 permission_failure = 2 error_occured = 3 OTHERS = 4 ). IF sy-subrc = 1. rv_bool = abap_false. ELSEIF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from w3_api_resource~load' ). ELSE. rv_bool = abap_true. ENDIF. ENDMETHOD. "zif_abapgit_object~exists METHOD zif_abapgit_object~jump. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ms_item-obj_name object_type = ms_item-obj_type. ENDMETHOD. "zif_abapgit_object~jump METHOD zif_abapgit_object~compare_to_remote_version. CREATE OBJECT ro_comparison_result TYPE zcl_abapgit_comparison_null. ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = abap_false. ENDMETHOD. ENDCLASS. "zcl_abapgit_object_iarp IMPLEMENTATION
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 72, 5117, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 1100, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 1658, 62, 35226, 220, 220, 220, 220, 220, 220, 41876, 266, 18, 411, 78, 35226, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2123, 62, 17143, 7307, 41876, 266, 18, 411, 404, 3301, 62, 11487, 4906, 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, 3613, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 318, 62, 35226, 220, 220, 220, 220, 220, 220, 41876, 266, 18, 411, 78, 35226, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 17143, 7307, 41876, 266, 18, 411, 404, 3301, 62, 11487, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 72, 5117, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 10134, 62, 40985, 62, 20777, 13, 198, 220, 220, 220, 374, 85, 62, 40985, 796, 450, 499, 62, 7942, 13, 198, 220, 23578, 49273, 13, 220, 366, 89, 361, 62, 397, 499, 18300, 62, 15252, 93, 10134, 62, 40985, 62, 20777, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 198, 220, 220, 220, 374, 85, 62, 7220, 796, 269, 62, 7220, 62, 34680, 13, 366, 284, 4598, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1136, 62, 38993, 13, 198, 220, 220, 220, 44608, 62, 38993, 796, 651, 62, 38993, 7, 6739, 198, 220, 23578, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 89, 361, 62, 397, 499, 18300, 62, 15252, 93, 1136, 62, 38993, 628, 220, 337, 36252, 1100, 13, 628, 220, 220, 220, 42865, 25, 7649, 62, 31092, 41876, 4526, 37, 5390, 611, 62, 86, 18, 62, 15042, 62, 31092, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 3672, 220, 220, 220, 220, 41876, 266, 18, 411, 2088, 88, 13, 628, 198, 220, 220, 220, 43979, 62, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 537, 62, 86, 18, 62, 15042, 62, 31092, 14804, 361, 62, 86, 18, 62, 15042, 62, 31092, 93, 2220, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 31092, 62, 3672, 220, 220, 220, 220, 796, 43979, 62, 3672, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 31092, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 7649, 62, 31092, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 1662, 62, 25687, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 7170, 62, 32165, 495, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 4049, 62, 13966, 1522, 220, 220, 220, 220, 220, 220, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 604, 6739, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 18224, 422, 266, 18, 15042, 62, 31092, 93, 2220, 6, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 7649, 62, 31092, 3784, 1136, 62, 1078, 7657, 7, 30023, 9863, 2751, 279, 62, 1078, 7657, 796, 1658, 62, 35226, 6739, 628, 220, 220, 220, 30301, 1503, 25, 1658, 62, 35226, 12, 1349, 480, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1658, 62, 35226, 12, 83, 4475, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1658, 62, 35226, 12, 926, 524, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1658, 62, 35226, 12, 7959, 4871, 13, 628, 220, 220, 220, 7649, 62, 31092, 3784, 1136, 62, 17143, 7307, 7, 30023, 9863, 2751, 279, 62, 17143, 7307, 796, 2123, 62, 17143, 7307, 6739, 628, 220, 23578, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 961, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 46911, 1096, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 35226, 220, 220, 220, 220, 220, 220, 41876, 266, 18, 411, 78, 35226, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 17143, 7307, 41876, 266, 18, 411, 404, 3301, 62, 11487, 4906, 13, 628, 198, 220, 220, 220, 16876, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1069, 1023, 7, 1267, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 1100, 7, 30023, 9863, 2751, 1658, 62, 35226, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 35226, 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, 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ODS constructor. PROTECTED SECTION. METHODS inspect_tokens REDEFINITION. PRIVATE SECTION. METHODS is_setter_method IMPORTING statement TYPE sstmnt RETURNING VALUE(result) TYPE abap_bool. METHODS has_boolean_input_param IMPORTING statement TYPE sstmnt RETURNING VALUE(result) TYPE abap_bool. ENDCLASS. CLASS y_check_boolean_input_param IMPLEMENTATION. METHOD constructor. super->constructor( ). settings-pseudo_comment = '"#EC BOOL_PARAM' ##NO_TEXT. settings-disable_threshold_selection = abap_true. settings-threshold = 0. settings-documentation = |{ c_docs_path-checks }boolean-input-parameter.md|. relevant_statement_types = VALUE #( ( scan_struc_stmnt_type-class_definition ) ). relevant_structure_types = VALUE #( ). set_check_message( 'Split method instead of Boolean input parameter!' ). ENDMETHOD. METHOD inspect_tokens. CHECK get_token_abs( statement-from ) = 'METHODS'. CHECK is_setter_method( statement ) = abap_false. CHECK has_boolean_input_param( statement ). DATA(configuration) = detect_check_configuration( statement ). IF configuration IS INITIAL. RETURN. ENDIF. raise_error( statement_level = statement-level statement_index = index statement_from = statement-from error_priority = configuration-prio ). ENDMETHOD. METHOD is_setter_method. DATA(method_name) = get_token_abs( statement-from + 1 ). result = COND #( WHEN method_name CS 'SET_' THEN abap_true ). ENDMETHOD. METHOD has_boolean_input_param. DATA(skip) = abap_true. LOOP AT ref_scan_manager->tokens ASSIGNING FIELD-SYMBOL(<token>) FROM statement-from TO statement-to. IF <token>-str = 'IMPORTING'. skip = abap_false. ELSEIF <token>-str = 'EXPORTING' OR <token>-str = 'RETURNING' OR <token>-str = 'CHANGING'. skip = abap_true. ENDIF. IF skip = abap_true. CONTINUE. ENDIF. IF <token>-str = 'ABAP_BOOL'. result = abap_true. RETURN. ENDIF. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9122, 62, 2127, 21052, 62, 15414, 62, 17143, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 331, 62, 9122, 62, 8692, 29244, 6158, 44731, 764, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 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, 2617, 353, 62, 24396, 30023, 9863, 2751, 2643, 41876, 264, 301, 76, 429, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 337, 36252, 50, 468, 62, 2127, 21052, 62, 15414, 62, 17143, 30023, 9863, 2751, 2643, 41876, 264, 301, 76, 429, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 13, 198, 10619, 31631, 13, 628, 198, 31631, 331, 62, 9122, 62, 2127, 21052, 62, 15414, 62, 17143, 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, 16494, 3535, 62, 27082, 2390, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 6460, 12, 40223, 62, 400, 10126, 62, 49283, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 6460, 12, 400, 10126, 796, 657, 13, 198, 220, 220, 220, 6460, 12, 22897, 341, 796, 930, 90, 269, 62, 31628, 62, 6978, 12, 42116, 1782, 2127, 21052, 12, 15414, 12, 17143, 2357, 13, 9132, 91, 13, 628, 220, 220, 220, 5981, 62, 26090, 62, 19199, 796, 26173, 8924, 1303, 7, 357, 9367, 62, 19554, 66, 62, 301, 76, 429, 62, 4906, 12, 4871, 62, 46758, 1267, 6739, 198, 220, 220, 220, 5981, 62, 301, 5620, 62, 19199, 796, 26173, 8924, 1303, 7, 6739, 628, 220, 220, 220, 900, 62, 9122, 62, 20500, 7, 705, 41205, 2446, 2427, 286, 41146, 5128, 11507, 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, 30001, 62, 8937, 7, 2643, 12, 6738, 1267, 796, 705, 49273, 50, 4458, 198, 220, 220, 220, 5870, 25171, 318, 62, 2617, 353, 62, 24396, 7, 2643, 1267, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 5870, 25171, 468, 62, 2127, 21052, 62, 15414, 62, 17143, 7, 2643, 6739, 628, 220, 220, 220, 42865, 7, 11250, 3924, 8, 796, 4886, 62, 9122, 62, 11250, 3924, 7, 2643, 6739, 628, 220, 220, 220, 16876, 8398, 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, 796, 2643, 12, 5715, 198, 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, 2643, 62, 6738, 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, 796, 8398, 12, 3448, 78, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 318, 62, 2617, 353, 62, 24396, 13, 198, 220, 220, 220, 42865, 7, 24396, 62, 3672, 8, 796, 651, 62, 30001, 62, 8937, 7, 2643, 12, 6738, 1343, 352, 6739, 198, 220, 220, 220, 1255, 796, 7102, 35, 1303, 7, 42099, 2446, 62, 3672, 9429, 705, 28480, 62, 6, 42243, 450, 499, 62, 7942, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 468, 62, 2127, 21052, 62, 15414, 62, 17143, 13, 198, 220, 220, 220, 42865, 7, 48267, 8, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 17579, 3185, 5161, 1006, 62, 35836, 62, 37153, 3784, 83, 482, 641, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 30001, 43734, 198, 220, 220, 220, 16034, 2643, 12, 6738, 5390, 2643, 12, 1462, 13, 628, 220, 220, 220, 220, 220, 16876, 1279, 30001, 29, 12, 2536, 796, 705, 3955, 15490, 2751, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 14267, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 17852, 5188, 5064, 1279, 30001, 29, 12, 2536, 796, 705, 6369, 15490, 2751, 6, 198, 220, 220, 220, 220, 220, 6375, 1279, 30001, 29, 12, 2536, 796, 705, 26087, 4261, 15871, 6, 198, 220, 220, 220, 220, 220, 6375, 1279, 30001, 29, 12, 2536, 796, 705, 3398, 15567, 2751, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 14267, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 16876, 14267, 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, 16876, 1279, 30001, 29, 12, 2536, 796, 705, 6242, 2969, 62, 8202, 3535, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 220, 220, 23578, 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UBLIC SECTION. INTERFACES: zif_abapgit_gui_renderable, zif_abapgit_gui_event_handler, zif_abapgit_gui_error_handler. METHODS: constructor RAISING zcx_abapgit_exception. PROTECTED SECTION. TYPES: BEGIN OF ty_control, page_title TYPE string, page_menu TYPE REF TO zcl_abapgit_html_toolbar, END OF ty_control. DATA: ms_control TYPE ty_control. METHODS render_content ABSTRACT RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html RAISING zcx_abapgit_exception. PRIVATE SECTION. DATA: mo_settings TYPE REF TO zcl_abapgit_settings, mx_error TYPE REF TO zcx_abapgit_exception, mo_exception_viewer TYPE REF TO zcl_abapgit_exception_viewer. METHODS render_deferred_parts IMPORTING ii_html TYPE REF TO zif_abapgit_html iv_part_category TYPE string RAISING zcx_abapgit_exception. METHODS html_head RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html. METHODS title RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html. METHODS footer RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html. METHODS render_link_hints IMPORTING io_html TYPE REF TO zcl_abapgit_html RAISING zcx_abapgit_exception. METHODS render_command_palettes IMPORTING io_html TYPE REF TO zcl_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 call_browser IMPORTING iv_url TYPE csequence RAISING zcx_abapgit_exception. METHODS render_error_message_box RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html RAISING zcx_abapgit_exception. METHODS scripts RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html RAISING zcx_abapgit_exception. ENDCLASS. CLASS ZCL_ABAPGIT_GUI_PAGE IMPLEMENTATION. METHOD call_browser. cl_gui_frontend_services=>execute( EXPORTING document = |{ iv_url }| EXCEPTIONS cntl_error = 1 error_no_gui = 2 bad_parameter = 3 file_not_found = 4 path_not_found = 5 file_extension_unknown = 6 error_execute_failed = 7 synchronous_failed = 8 not_supported_by_gui = 9 OTHERS = 10 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD constructor. super->constructor( ). mo_settings = zcl_abapgit_persist_settings=>get_instance( )->read( ). ENDMETHOD. METHOD footer. CREATE OBJECT ro_html. ro_html->add( '<div id="footer">' ). "#EC NOTEXT ro_html->add( zcl_abapgit_html=>a( iv_txt = '<img src="img/logo" alt="logo">' iv_id = 'abapGitLogo' iv_act = zif_abapgit_definitions=>c_action-abapgit_home ) ). ro_html->add( '<table class="w100"><tr>' ). "#EC NOTEXT ro_html->add( '<td class="w40"></td>' ). "#EC NOTEXT ro_html->add( |<td><span class="version">{ zif_abapgit_version=>gc_abap_version }</span></td>| ). "#EC NOTEXT ro_html->add( '<td id="debug-output" class="w40"></td>' ). "#EC NOTEXT ro_html->add( '</tr></table>' ). "#EC NOTEXT ro_html->add( '</div>' ). "#EC NOTEXT ENDMETHOD. METHOD html_head. CREATE OBJECT ro_html. ro_html->add( '<head>' ). "#EC NOTEXT ro_html->add( '<meta http-equiv="content-type" content="text/html; charset=utf-8">' ). "#EC NOTEXT ro_html->add( '<meta http-equiv="X-UA-Compatible" content="IE=11,10,9,8" />' ). "#EC NOTEXT ro_html->add( '<title>abapGit</title>' ). "#EC NOTEXT ro_html->add( '<link rel="stylesheet" type="text/css" href="css/common.css">' ). ro_html->add( '<link rel="stylesheet" type="text/css" href="css/ag-icons.css">' ). " Themes ro_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. ro_html->add( '<link rel="stylesheet" type="text/css" href="css/theme-dark.css">' ). WHEN zcl_abapgit_settings=>c_ui_theme-belize. ro_html->add( '<link rel="stylesheet" type="text/css" href="css/theme-belize-blue.css">' ). ENDCASE. ro_html->add( '<script type="text/javascript" src="js/common.js"></script>' ). "#EC NOTEXT CASE mo_settings->get_icon_scaling( ). " Enforce icon scaling WHEN mo_settings->c_icon_scaling-large. ro_html->add( '<style>.icon { font-size: 200% }</style>' ). WHEN mo_settings->c_icon_scaling-small. ro_html->add( '<style>.icon.large { font-size: inherit }</style>' ). ENDCASE. ro_html->add( '</head>' ). "#EC NOTEXT ENDMETHOD. METHOD render_command_palettes. io_html->add( 'var gGoRepoPalette = new CommandPalette(enumerateTocAllRepos, {' ). io_html->add( ' toggleKey: "F2",' ). io_html->add( ' hotkeyDescription: "Go to repo ..."' ). io_html->add( '});' ). io_html->add( 'var gCommandPalette = new CommandPalette(enumerateToolbarActions, {' ). io_html->add( ' toggleKey: "F1",' ). io_html->add( ' hotkeyDescription: "Command ..."' ). io_html->add( '});' ). ENDMETHOD. METHOD render_deferred_parts. DATA lt_parts TYPE zif_abapgit_html=>tty_table_of. DATA li_part LIKE LINE OF lt_parts. lt_parts = gui_services( )->get_html_parts( )->get_parts( iv_part_category ). LOOP AT lt_parts INTO li_part. ii_html->add( li_part ). ENDLOOP. ENDMETHOD. METHOD render_error_message_box. " You should remember that the we have to instantiate ro_html even " it's overwritten further down. Because ADD checks whether it's " bound. CREATE OBJECT ro_html. " You should remember that we render the message panel only " if we have an error. IF mx_error IS NOT BOUND. RETURN. ENDIF. ro_html = zcl_abapgit_gui_chunk_lib=>render_error_message_box( mx_error ). " You should remember that the exception viewer dispatches the events of " error message panel CREATE OBJECT mo_exception_viewer EXPORTING ix_error = mx_error. " You should remember that we render the message panel just once " for each exception/error text. CLEAR: mx_error. ENDMETHOD. METHOD render_hotkey_overview. DATA lo_hotkeys_component TYPE REF TO zif_abapgit_gui_renderable. lo_hotkeys_component ?= gui_services( )->get_hotkeys_ctl( ). " Mmmm ... ro_html = lo_hotkeys_component->render( ). ENDMETHOD. METHOD render_link_hints. DATA: lv_link_hint_key TYPE char01. lv_link_hint_key = mo_settings->get_link_hint_key( ). IF mo_settings->get_link_hints_enabled( ) = abap_true AND lv_link_hint_key IS NOT INITIAL. io_html->add( |activateLinkHints("{ lv_link_hint_key }");| ). io_html->add( |setInitialFocusWithQuerySelector('a span', true);| ). io_html->add( |enableArrowListNavigation();| ). ENDIF. ENDMETHOD. METHOD scripts. CREATE OBJECT ro_html. render_deferred_parts( ii_html = ro_html iv_part_category = c_html_parts-scripts ). render_link_hints( ro_html ). render_command_palettes( ro_html ). ENDMETHOD. METHOD title. CREATE OBJECT ro_html. ro_html->add( '<div id="header">' ). "#EC NOTEXT ro_html->add( '<table class="w100"><tr>' ). "#EC NOTEXT ro_html->add( |<td class="logo">{ zcl_abapgit_html=>a( iv_txt = '<img src="img/logo" alt="logo">' iv_id = 'abapGitLogo' iv_act = zif_abapgit_definitions=>c_action-abapgit_home ) }</td>| ). "#EC NOTEXT ro_html->add( |<td><span class="page_title"> &#x25BA; { ms_control-page_title }</span></td>| ). "#EC NOTEXT IF ms_control-page_menu IS BOUND. ro_html->add( '<td class="right">' ). "#EC NOTEXT ro_html->add( ms_control-page_menu->render( iv_right = abap_true ) ). ro_html->add( '</td>' ). "#EC NOTEXT ENDIF. ro_html->add( '</tr></table>' ). "#EC NOTEXT ro_html->add( '</div>' ). "#EC NOTEXT ENDMETHOD. METHOD zif_abapgit_gui_error_handler~handle_error. mx_error = ix_error. rv_handled = abap_true. ENDMETHOD. METHOD zif_abapgit_gui_event_handler~on_event. CASE iv_action. WHEN zif_abapgit_definitions=>c_action-url. call_browser( iv_getdata ). ev_state = zcl_abapgit_gui=>c_event_state-no_more_act. WHEN zif_abapgit_definitions=>c_action-goto_source. IF mo_exception_viewer IS BOUND. mo_exception_viewer->goto_source( ). ENDIF. ev_state = zcl_abapgit_gui=>c_event_state-no_more_act. WHEN zif_abapgit_definitions=>c_action-show_callstack. IF mo_exception_viewer IS BOUND. mo_exception_viewer->show_callstack( ). ENDIF. ev_state = zcl_abapgit_gui=>c_event_state-no_more_act. WHEN zif_abapgit_definitions=>c_action-goto_message. IF mo_exception_viewer IS BOUND. mo_exception_viewer->goto_message( ). ENDIF. ev_state = zcl_abapgit_gui=>c_event_state-no_more_act. ENDCASE. ENDMETHOD. METHOD zif_abapgit_gui_renderable~render. DATA: lo_script TYPE REF TO zcl_abapgit_html. gui_services( )->register_event_handler( me ). " Real page CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( '<!DOCTYPE html>' ). "#EC NOTEXT ri_html->add( '<html>' ). "#EC NOTEXT ri_html->add( html_head( ) ). ri_html->add( '<body>' ). "#EC NOTEXT ri_html->add( title( ) ). ri_html->add( render_content( ) ). " TODO -> render child ri_html->add( render_hotkey_overview( ) ). ri_html->add( render_error_message_box( ) ). render_deferred_parts( ii_html = ri_html iv_part_category = c_html_parts-hidden_forms ). ri_html->add( footer( ) ). ri_html->add( '</body>' ). "#EC NOTEXT lo_script = scripts( ). IF lo_script IS BOUND AND lo_script->is_empty( ) = abap_false. ri_html->add( '<script type="text/javascript">' ). ri_html->add( lo_script ). ri_html->add( 'confirmInitialized();' ). ri_html->add( '</script>' ). ENDIF. ri_html->add( '</html>' ). "#EC NOTEXT ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 5550, 20032, 17941, 44731, 9564, 18601, 10659, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 42895, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 198, 220, 220, 220, 220, 220, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 13287, 540, 11, 198, 220, 220, 220, 220, 220, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 15596, 62, 30281, 11, 198, 220, 220, 220, 220, 220, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 18224, 62, 30281, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 13716, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2443, 62, 7839, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2443, 62, 26272, 220, 220, 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, 13, 628, 220, 220, 220, 42865, 25, 13845, 62, 13716, 41876, 1259, 62, 13716, 13, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 11299, 9564, 18601, 10659, 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, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 6941, 62, 33692, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 33692, 11, 198, 220, 220, 220, 220, 220, 285, 87, 62, 18224, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 6941, 62, 1069, 4516, 62, 1177, 263, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 1069, 4516, 62, 1177, 263, 13, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 4299, 17436, 62, 42632, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 6494, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3911, 62, 22872, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 27711, 62, 2256, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 13, 628, 220, 220, 220, 337, 36252, 50, 3670, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 13, 628, 220, 220, 220, 337, 36252, 50, 2366, 263, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 13, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 8726, 62, 71, 29503, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 6494, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 21812, 62, 18596, 23014, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 6494, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 8940, 2539, 62, 2502, 1177, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 869, 62, 40259, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 6371, 41876, 269, 43167, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 18224, 62, 20500, 62, 3524, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 14750, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 198, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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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17614, 1129, 13, 220, 220, 220, 220, 220, 220, 366, 44, 1546, 4090, 8264, 12, 2389, 11485, 198, 198, 9, 3268, 5097, 52, 7206, 1220, 35, 11770, 14, 43, 3697, 9947, 62, 51, 3861, 18697, 62, 17614, 1129, 35, 986, 220, 220, 220, 220, 220, 220, 220, 366, 10714, 1398, 6770, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Include Z_MONSTER_ADL_IO1 *&---------------------------------------------------------------------* * Local Class Implementations *--------------------------------------------------------------------* CLASS lcl_application IMPLEMENTATION. *--------------------------------------------------------------------* * Listing 10.01: Generic Template for Calling ALV Reports *--------------------------------------------------------------------* * Jeffrey is a PURPLE Monster *--------------------------------------------------------------------* METHOD main."Of Monster Atrocity Due List * Local Variables DATA: ld_repid TYPE sy-repid. "It is bad news to pass system variables as parameters ld_repid = sy-repid. mo_model = NEW #( ). "Hard Coded here - would use configuration or similar in "real life DATA(context_data_list) = VALUE wdr_simple_name_value_list( ( name = 'UI_TECHNOLOGY' value = 'CL_SALV_TABLE' ) ). zcl_ocp_factory=>return_object_given( EXPORTING it_context_data = context_data_list CHANGING co_object = mo_view ). mo_controller = NEW #( io_model = mo_model io_view = mo_view ). mo_model->data_retrieval( ). mo_model->prepare_data_for_ouput( ). IF sy-batch IS INITIAL. *--------------------------------------------------------------------* * Listing 10.35: - Calling a SALV report whilst creating a container * automatically *--------------------------------------------------------------------* * Program flow is as follows:- * ZCL_BC_VIEW_SALV_TABLE->CREATE_CONTAINER_PREPARE_DATA * Function ZSALV_CSQT_CREATE_CONTAINER * ZSALV_CSQT_CREATE_CONTAINER->FILL_CONTAINER_CONTENT * ZCL_BC_VIEW_SALV_TABLE->PREPARE_DISPLAY_DATA * --> INITIALISE (Generic) * --> Application Specific Changes (Generic) * --> Display (Generic) mo_view->create_container_prep_display( EXPORTING id_report_name = ld_repid if_start_in_edit_mode = go_selections->p_edit id_edit_control_field = mo_model->md_edit_control_field it_editable_fields = mo_model->mt_editable_fields it_technicals = mo_model->mt_technicals it_hidden = mo_model->mt_hidden it_hotspots = mo_model->mt_hotspots it_checkboxes = mo_model->mt_checkboxes it_subtotal_fields = mo_model->mt_subtotal_fields it_field_texts = mo_model->mt_field_texts it_sort_criteria = mo_model->mt_sort_criteria it_user_commands = mo_model->mt_user_commands CHANGING ct_data_table = mo_model->mt_output_data ). ELSE. * If this is running in the background there is no way * in the world we want/need a container, as there is no * chance for the user to press any user command buttons or * edit the data, as there is no user, and no screen for the * container to live on for that matter mo_view->prepare_display_data( EXPORTING id_report_name = ld_repid it_technicals = mo_model->mt_technicals it_hidden = mo_model->mt_hidden it_hotspots = mo_model->mt_hotspots it_checkboxes = mo_model->mt_checkboxes it_subtotal_fields = mo_model->mt_subtotal_fields it_field_texts = mo_model->mt_field_texts it_sort_criteria = mo_model->mt_sort_criteria it_user_commands = mo_model->mt_user_commands CHANGING ct_data_table = mo_model->mt_output_data ). ENDIF."Are we running in the background? IF go_selections->p_email IS NOT INITIAL. mo_controller->send_email( ). ENDIF. ENDMETHOD. "main ENDCLASS. "lcl_application IMPLEMENTATION *----------------------------------------------------------------------* * CLASS lcl_selections IMPLEMENTATION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS lcl_selections IMPLEMENTATION. METHOD constructor. s_date = is_date. s_cstl = is_cstl. p_vari = ip_vari. p_edit = ip_edit. p_send = ip_send. p_email = ip_email. ENDMETHOD. "constructor ENDCLASS."Local Selections *----------------------------------------------------------------------* * CLASS lcl_persistency_layer IMPLEMENTATION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS lcl_persistency_layer IMPLEMENTATION. METHOD get_data. *--------------------------------------------------------------------* * EXPORTING et_output_data TYPE g_tt_output_data. *--------------------------------------------------------------------* SELECT * ##too_many_itab_fields "in the world FROM z4c_monster_atrocity_due_list INTO CORRESPONDING FIELDS OF TABLE @rt_output_data. ENDMETHOD. "get_data ENDCLASS. "lcl_persistency_layer IMPLEMENTATION *----------------------------------------------------------------------* * CLASS lcl_model IMPLEMENTATION *----------------------------------------------------------------------* * When creating the model for real we do not fill the import parameter * and thus the data is read for real * When creating the model within a unit test, we pass in a reference to * the fake database access class *----------------------------------------------------------------------* CLASS lcl_model IMPLEMENTATION. METHOD constructor. super->constructor( ). IF io_access_class IS SUPPLIED. mo_persistency_layer = io_access_class. ELSE. mo_persistency_layer = NEW #( ). ENDIF. fill_user_commands( ). fill_technical_fields( ). fill_hidden_fields( ). fill_hotspot_fields( ). fill_subtotal_fields( ). fill_field_texts( ). fill_editable_fields( ). fill_checkbox_fields( ). set_edit_control_field( ). ENDMETHOD. "constructor METHOD data_retrieval. mt_output_data[] = mo_persistency_layer->get_data( ). ENDMETHOD. "data_retrieval *--------------------------------------------------------------------* * METHOD prepare_data_for_output *--------------------------------------------------------------------* * Get text names of objects, mapping, etc etc *--------------------------------------------------------------------* METHOD prepare_data_for_ouput ##NEEDED. ENDMETHOD. "prepare_data_for_ouput METHOD fill_user_commands. *--------------------------------------------------------------------* * Listing 10.27 - Method in the Model Class to Define User Commands *--------------------------------------------------------------------* CLEAR mt_user_commands. INSERT VALUE #( function = 'ZALLOCATE' icon = icon_deceased_patient butn_type = 0 "Normal Button text = 'Allocate Monster'(001) ) INTO TABLE mt_user_commands. ENDMETHOD. "fill_user_commands METHOD fill_editable_fields. APPEND 'TASK_DESCRIPTION' TO mt_editable_fields."Can be edited if job not yet in progress ENDMETHOD. "fill_editable_fields METHOD fill_hidden_fields ##NEEDED. "No Hidden Fields ENDMETHOD. "fill_hidden_fields METHOD fill_technical_fields. APPEND 'MANDT' TO mt_technicals. ENDMETHOD. "fill_technical_fields METHOD fill_hotspot_fields ##NEEDED. "No Hotspots ENDMETHOD. "fill_hotspot_fields METHOD fill_subtotal_fields ##NEEDED. "No Subtotals ENDMETHOD. "fill_subtotal_fields METHOD fill_field_texts ##NEEDED. * No Need to Rename Anything ENDMETHOD. "fill_field_texts METHOD fill_checkbox_fields. APPEND 'CHECK' TO mt_checkboxes. ENDMETHOD. "fill_checkbox_fields METHOD user_command. CASE id_user_command. WHEN '&IC1'. READ TABLE mt_output_data ASSIGNING FIELD-SYMBOL(<ls_output>) INDEX id_row. IF sy-subrc NE 0. RETURN. ENDIF. CASE id_column. WHEN 'CHECK'. IF <ls_output>-check = abap_false. <ls_output>-check = abap_true. ELSE. <ls_output>-check = abap_false. ENDIF. RAISE EVENT data_changed. WHEN OTHERS. RETURN. ENDCASE."What column was selected for drill down? WHEN 'ZALLOCATE'. LOOP AT mt_output_data ASSIGNING <ls_output> WHERE check = abap_true. allocate_monster( <ls_output> ). ENDLOOP. WHEN OTHERS. RETURN. ENDCASE."What user command was chosen? ENDMETHOD."User Command / Model METHOD allocate_monster. *--------------------------------------------------------------------* * IMPORTING is_output_data TYPE g_typ_alv_output_data *--------------------------------------------------------------------* * Local Variables DATA: lt_options TYPE STANDARD TABLE OF spopli, ls_options LIKE LINE OF lt_options, ls_titles TYPE spop5, ld_answer TYPE char01, ld_default_choice TYPE sy-lilli, ld_actual_choice TYPE sy-tabix. "This user command should be in the CONTROLLER which would get the input dara from the model and then "use the view to ask the user the question ls_options-varoption = 'Bolts-Through-Neck'(002). APPEND ls_options TO lt_options. ls_options-varoption = 'Creeping Terror'(003). APPEND ls_options TO lt_options. ls_options-varoption = 'Creature from the Black Lagoon'(004). APPEND ls_options TO lt_options. ls_options-varoption = 'Killer Klown'(005). APPEND ls_options TO lt_options. ls_options-varoption = 'Thing with Two Heads'(006). APPEND ls_options TO lt_options. ld_default_choice = 1. ls_titles-titel = 'Choose Monster'(007). ls_titles-textline1 = 'Which Monster shall do This Deed, This Deed so Vile?'(008). CALL FUNCTION 'POPUP_TO_DECIDE_LIST' EXPORTING cursorline = ld_default_choice textline1 = ls_titles-textline1 titel = ls_titles-titel IMPORTING answer = ld_answer TABLES t_spopli = lt_options[] EXCEPTIONS not_enough_answers = 1 too_much_answers = 2 too_much_marks = 3 OTHERS = 4. IF sy-subrc <> 0. RETURN. ENDIF. CASE ld_answer. WHEN '1' OR '2' OR '3' OR '4' OR '5'. ld_actual_choice = ld_answer. WHEN OTHERS. RETURN. ENDCASE. DATA: ls_monitor TYPE z4t_deliveries. ls_monitor = CORRESPONDING #( is_output_data ). READ TABLE lt_options INTO ls_options INDEX ld_actual_choice. ASSERT sy-subrc EQ 0. ls_monitor-monster_name = ls_options-varoption. ls_monitor-current_status = 'A'."Atrocity Ready to be Committed DATA(lo_uuid_generator) = cl_uuid_factory=>create_system_uuid( ). TRY. ls_monitor-db_key = lo_uuid_generator->create_uuid_x16( ). CATCH cx_uuid_error INTO DATA(uuid_error). DATA(ld_message) = uuid_error->get_text( ). MESSAGE ld_message TYPE 'I'. RETURN. ENDTRY. ls_monitor-delivery_number = sy-datum+2(2) && sy-datum+4(2) && sy-datum+6(2) && sy-uzeit(2) && sy-uzeit+2(2). *-------------------------------------------------------------------------------------------------------------* * TO-DO * Need to create the new delivery using the delivery business object peristency layer - not a direct update *-------------------------------------------------------------------------------------------------------------* MODIFY z4t_deliveries FROM ls_monitor. IF sy-subrc <> 0. ROLLBACK WORK. "#EC CI_ROLLBACK RETURN. ENDIF. *-------------------------------------------------------------------------------------------------------------* * TO-DO * Need to call persitency layer of order business object and set the order status to "C" (using a constant as * opposed to a hard coded value) *-------------------------------------------------------------------------------------------------------------* UPDATE z4t_order_items SET foul_deed_status = 'C' WHERE order_number = is_output_data-ordernumber AND order_item = is_output_data-orderitem. IF sy-subrc <> 0. ROLLBACK WORK. "#EC CI_ROLLBACK RETURN. ELSE. COMMIT WORK. "Horrible, Horrible, Deed has Been Scheduled MESSAGE i014(z4monsters). ENDIF. *-----------------------------------------------------------------------------------------* * Listing 14.02: - Checking ABAP Messaging Channel Application/Channel Combination Exists *-----------------------------------------------------------------------------------------* "This next bit should be in it's own method of a dedicated local class "Now, let us tell the push channel that the monster has been scheduled "to do the atrocity "Determine message type of the AMC channel TRY. DATA(amc_dt_manager) = cl_amc_dt_manager=>create( i_application_id = 'ZAMC_4_MONSTERS' i_channel_id = '/monsters' ). DATA(amc_message_type) = amc_dt_manager->get_message_type( ). CATCH cx_amc_dt_error INTO DATA(amc_dt_error). MESSAGE amc_dt_error TYPE 'E'. ENDTRY. IF amc_message_type NE 'PCP'. RETURN. ENDIF. *-----------------------------------------------------------------------* * Listing 14.01: - Defining Where AMC Message Will Be Published *-----------------------------------------------------------------------* * Listing 14.03: - Preparing and Sending ABAP Messaging Channels Message *-----------------------------------------------------------------------* "Fill Payload TRY. "Create Bottle to Send "Set extension ID to be the Castle Number. Only monster "monitors subscribed to that particular castle will then "be notified of the new atrocity to be performed. Monitors "for other castles do not care DATA(message_bottle) = CAST if_amc_message_producer_pcp( cl_amc_channel_manager=>create_message_producer( i_application_id = 'ZAMC_4_MONSTERS' i_channel_id = '/monsters' i_channel_extension_id = CONV #( ls_monitor-castle_number ) ) ). "Create Message for Bottle DATA(pcp_message) = cl_ac_message_type_pcp=>create( ). pcp_message->set_text( |{ 'A New Atrocity needs to be Committed'(009) }| ). pcp_message->set_field( i_name = |{ 'Delivery Number'(010) }| i_value = CONV #( ls_monitor-delivery_number ) ). "Put message in bottle, and throw bottle into the sea message_bottle->send( pcp_message ). CATCH cx_ac_message_type_pcp_error INTO DATA(pcp_error). MESSAGE pcp_error TYPE 'E'. CATCH cx_amc_error INTO DATA(amc_error). MESSAGE amc_error TYPE 'E'. ENDTRY. ENDMETHOD. "allocate_monster ENDCLASS. "lcl_model IMPLEMENTATION *----------------------------------------------------------------------* * CLASS lcl_view IMPLEMENTATION *----------------------------------------------------------------------* * During the INITIALISATION method this method is called so that * every row in the output table will be * changed such that nominated columns have been made editable. * Now we want to extend this logic to restrict the ability to change * the task description. If a monster has always been assigned to the task, * the nature of the task can no longer be changed. *----------------------------------------------------------------------* CLASS lcl_view IMPLEMENTATION. METHOD make_column_editable. *--------------------------------------------------------------------* * ID_EDIT_CONTROL_FIELD Importing Type LVC_FNAME * IT_EDITABLE_FIELDS Importing Type LVC_T_FNAM * CT_DATA_TABLE Changing Type ANY TABLE *--------------------------------------------------------------------* * Local Variables DATA: ldo_table_line TYPE REF TO data. FIELD-SYMBOLS: <ls_data_table> TYPE any, <lt_celltab> TYPE lvc_t_styl, <ld_status> TYPE z4de_monster_order_fd_status. super->make_column_editable( EXPORTING id_edit_control_field = id_edit_control_field it_editable_fields = it_editable_fields CHANGING ct_data_table = ct_data_table ). *----------------------------------------------------------------------------------------------------------* * When the status is "in progress" gray out the task description fields. This does not work but it SHOULD. * My working theory is developers at SAP have been instructed to stop this working at all costs. *----------------------------------------------------------------------------------------------------------* * Dynamically create work area for looping through the table that was passed in *----------------------------------------------------------------------------------------------------------* CREATE DATA ldo_table_line LIKE LINE OF ct_data_table. ASSIGN ldo_table_line->* TO <ls_data_table>. LOOP AT ct_data_table ASSIGNING <ls_data_table>. "Determine the Order Status ASSIGN COMPONENT 'FOULDEEDSTATUS' OF STRUCTURE <ls_data_table> TO <ld_status>. IF sy-subrc NE 0. CONTINUE. ENDIF. "Based upon this, alter the CELLTAB nested table, to make the "cell read only if need be IF <ld_status> NE 'C'."Foul Deed has been Requested CONTINUE. ENDIF. "Orders in this status cannot have the task description changed ASSIGN COMPONENT 'CELLTAB' OF STRUCTURE <ls_data_table> TO <lt_celltab>. IF sy-subrc NE 0. CONTINUE. ENDIF. READ TABLE <lt_celltab> ASSIGNING FIELD-SYMBOL(<ls_celltab>) WITH KEY fieldname = 'TASKDESCRIPTION'. IF sy-subrc <> 0. INSERT VALUE #( fieldname = 'TASKDESCRIPTION' ) INTO TABLE <lt_celltab>. READ TABLE <lt_celltab> ASSIGNING <ls_celltab> WITH KEY fieldname = 'TASKDESCRIPTION'. ASSERT sy-subrc EQ 0. ENDIF. <ls_celltab>-style = cl_gui_alv_grid=>mc_style_disabled."Read Only ENDLOOP."Data Table ENDMETHOD. "application_specific_changes METHOD ida_demo ##CALLED."It is not this is just an example *--------------------------------------------------------------------* * Listing 10.39: - Coding SALV with IDA with Selection Criteria *--------------------------------------------------------------------* TRY. "Tell the ALV what database table we want DATA(alv_display_object) = cl_salv_gui_table_ida=>create( iv_table_name = 'Z4TMONSTER_HEAD' ). "Prepare the select-options DATA(range_table_collector) = NEW cl_salv_range_tab_collector( ). range_table_collector->add_ranges_for_name( iv_name = 'MONSTER_NUMBER' it_ranges = go_selections->s_numbr[] ). range_table_collector->add_ranges_for_name( iv_name = 'NAME' it_ranges = go_selections->s_name[] ). range_table_collector->get_collected_ranges( IMPORTING et_named_ranges = DATA(selection_option_table) ). "Prepare any parameters from the selection screen DATA(parameter_factory) = alv_display_object->condition_factory( ). IF go_selections->p_model IS NOT INITIAL. DATA(parameter_object) = parameter_factory->equals( name = 'MODEL' value = go_selections->p_model ). ELSE. parameter_object = parameter_factory->covers_pattern( name = 'MODEL' pattern = '*' ). ENDIF. "Tell the ALV about these restrictions alv_display_object->set_select_options( it_ranges = selection_option_table io_condition = parameter_object ). "Off we go! alv_display_object->fullscreen( )->display( ). CATCH cx_salv_db_connection INTO DATA(connection_error). DATA(error_message) = connection_error->get_text( ). MESSAGE error_message TYPE 'E'. CATCH cx_salv_db_table_not_supported INTO DATA(not_supported). error_message = not_supported->get_text( ). MESSAGE error_message TYPE 'E'. CATCH cx_salv_ida_contract_violation INTO DATA(contract_violation). error_message = contract_violation->get_text( ). MESSAGE error_message TYPE 'E'. ENDTRY. *--------------------------------------------------------------------* * Listing 10.40: Coding SALV with IDA without Selection Criteria *--------------------------------------------------------------------* cl_salv_gui_table_ida=>create( 'Z4TMONSTER_HEAD' )->fullscreen( )->display( ). *--------------------------------------------------------------------* * Listing 10.41: Creating IDA SALV for CDS View (Acronym Soup) *--------------------------------------------------------------------* cl_salv_gui_table_ida=>create_for_cds_view( 'Z4CDS_MONSTER_DELIVERIES' )->fullscreen( )->display( ). ENDMETHOD. METHOD ida_demo2 ##CALLED."It is not this is just an example *-------------------------------------------------------------------------------------* * Listing 10.44: Passing an instance of the Field Calculator into the IDA SALV instance * The Monster who has the super-power of shape-shifting was one castle away from the 8 Foot Tall Monster *-------------------------------------------------------------------------------------* TRY. DATA(lo_calc_field_handler) = NEW lcl_ida_calculated_m_fields( ). "Tell the ALV what database table we want PLUS calculated fields DATA(alv_display_object) = cl_salv_gui_table_ida=>create( iv_table_name = 'Z4TMONSTER_HEAD' io_calc_field_handler = lo_calc_field_handler ). "Change a column heading, just for kicks TRY. alv_display_object->field_catalog( )->set_field_header_texts( iv_field_name = 'SANITY_DESCRIPTION' iv_header_text = 'Bonkers-Ness'(011) iv_tooltip_text = 'Tra La La'(012) iv_tooltip_text_long = 'Tra La La La La'(013) ). CATCH cx_salv_ida_unknown_name INTO DATA(unknown_name). DATA(error_message) = unknown_name->get_text( ). MESSAGE error_message TYPE 'E'. CATCH cx_salv_call_after_1st_display INTO DATA(multiple_calls). error_message = multiple_calls->get_text( ). MESSAGE error_message TYPE 'E'. ENDTRY. "Prepare the select-options DATA(range_table_collector) = NEW cl_salv_range_tab_collector( ). range_table_collector->add_ranges_for_name( iv_name = 'MONSTER_NUMBER' it_ranges = go_selections->s_numbr[] ). range_table_collector->add_ranges_for_name( iv_name = 'NAME' it_ranges = go_selections->s_name[] ). range_table_collector->get_collected_ranges( IMPORTING et_named_ranges = DATA(selection_option_table) ). "Prepare any parameters from the selection screen DATA(parameter_factory) = alv_display_object->condition_factory( ). IF go_selections->p_model IS NOT INITIAL. DATA(parameter_object) = parameter_factory->equals( name = 'MODEL' value = go_selections->p_model ). ELSE. parameter_object = parameter_factory->covers_pattern( name = 'MODEL' pattern = '*' ). ENDIF. "Tell the ALV about the SELECTION-SCREEN restrictions alv_display_object->set_select_options( it_ranges = selection_option_table io_condition = parameter_object ). "Off we go! alv_display_object->fullscreen( )->display( ). CATCH cx_salv_db_connection INTO DATA(connection_error). error_message = connection_error->get_text( ). MESSAGE error_message TYPE 'E'. CATCH cx_salv_db_table_not_supported INTO DATA(not_supported). error_message = not_supported->get_text( ). MESSAGE error_message TYPE 'E'. CATCH cx_salv_ida_contract_violation INTO DATA(contract_violation). error_message = contract_violation->get_text( ). MESSAGE error_message TYPE 'E'. ENDTRY. * One Haunted Castle can be found at 14.6 degrees Longtitude ENDMETHOD. ENDCLASS. "lcl_view IMPLEMENTATION *----------------------------------------------------------------------* * CLASS lcl_controller IMPLEMENTATION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS lcl_controller IMPLEMENTATION. METHOD constructor. super->constructor( ). mo_model = io_model. mo_view = io_view. "Make the controller react to the views events SET HANDLER on_user_command FOR mo_view. "If the model changes some data, then it needs to "tell the controller, so it can tell the view "to refresh the data SET HANDLER on_data_changed FOR mo_model. ENDMETHOD. "constructor METHOD send_email. * Local Variables DATA: ld_program_name TYPE sy-repid, ld_short_title TYPE zexcel_sheet_title, ld_long_title TYPE char80, ld_tcode TYPE sy-tcode, lo_excel TYPE REF TO zcl_excel, lo_alv_grid TYPE REF TO cl_salv_table. "Preconditions IF go_selections->p_send NE abap_true. RETURN. ENDIF. ld_short_title = sy-title. ld_long_title = sy-title. ld_program_name = sy-repid. "bad news to pass this directly ld_tcode = 'ZMADL'. lo_alv_grid ?= mo_view->get_main_alv_object( ). "Step 1 - convert internal table into an EXCEL object zcl_excel_emailer=>convert_salv_to_excel( EXPORTING id_title = ld_short_title io_salv = lo_alv_grid it_table = mo_model->mt_output_data[] CHANGING co_excel = lo_excel ). "Step 2 - make any changes to the spreadsheet object that relate to "this report TRY. adjust_spreadsheet( CHANGING co_excel = lo_excel ). CATCH zcx_excel. RETURN. ENDTRY. "Step 3 - send the amended EXCEL object as an email zcl_excel_emailer=>send_excel_object( io_excel = lo_excel id_tcode = ld_tcode id_report_title = ld_long_title id_program_name = ld_program_name id_email = go_selections->p_email ). ENDMETHOD. METHOD adjust_spreadsheet. *--------------------------------------------------------------------* * Listing 11.06: Data Declarations *--------------------------------------------------------------------* DATA: column_number TYPE zexcel_cell_column, row_number TYPE zexcel_cell_row. *--------------------------------------------------------------------* * Listing 11.07: Looping Through All the Cells in a Spreadsheet *--------------------------------------------------------------------* DATA(active_worksheet) = co_excel->get_active_worksheet( ). DATA(number_of_rows) = active_worksheet->get_highest_row( ). DATA(number_of_columns) = active_worksheet->get_highest_column( ). DO number_of_columns TIMES. column_number = column_number + 1. DATA(column_as_letter) = zcl_excel_common=>convert_column2alpha( column_number ). row_number = 0. DO number_of_rows TIMES. "#EC CI_NESTED. row_number = row_number + 1. *--------------------------------------------------------------------* * Listing 11.08: Finding the Style of a Spreadsheet Cell *--------------------------------------------------------------------* active_worksheet->get_cell( EXPORTING ip_column = column_as_letter ip_row = row_number IMPORTING ep_guid = DATA(cell_formatting_guid) ). TRY. DATA(style_information) = active_worksheet->excel->get_style_to_guid( cell_formatting_guid ). CATCH zcx_excel. CLEAR style_information. ENDTRY. *--------------------------------------------------------------------* * Listing 11.09: Setting a Cell to be Formatted Appropriately *--------------------------------------------------------------------* IF style_information-complete_style-number_format-format_code = '#,##0.00'. "This is a currency amount, use the accounting conventions "which are to have negative numbers as red in brackets, and show "zero values as dashes, so as to focus the eye on the real numbers style_information-complete_style-number_format-format_code = '$#,##0.00;[Red]($#,##0.00);-' ##NO_TEXT. active_worksheet->change_cell_style( ip_column = column_as_letter ip_row = row_number ip_number_format_format_code = style_information-complete_style-number_format-format_code ). ENDIF."Currency Amount ENDDO."Rows ENDDO."Columns *--------------------------------------------------------------------* * Listing 11.10: Programmatically Changing the Print Orientation to Landscape *--------------------------------------------------------------------* "Page printing settings "Margins are to be set to the values for "narrow". I just copy "the values in the "narrow" option on the print preview active_worksheet->sheet_setup->set_page_margins( ip_top = '1.91' ip_bottom = '1.91' ip_left = '0.64' ip_right = '0.64' ip_header = '0.76' ip_footer = '0.76' ip_unit = 'cm' ) ##LITERAL. active_worksheet->sheet_setup->black_and_white = abap_true. "Requirement is to fit all columns on one sheet "You should turn "fit to page" on to activate fit_to_height and fit_to_width active_worksheet->sheet_setup->fit_to_page = abap_true. active_worksheet->sheet_setup->fit_to_width = 1. "Used only if fit_to_page = TRUE active_worksheet->sheet_setup->orientation = zcl_excel_sheet_setup=>c_orientation_landscape. active_worksheet->sheet_setup->page_order = zcl_excel_sheet_setup=>c_ord_downthenover. active_worksheet->sheet_setup->paper_size = zcl_excel_sheet_setup=>c_papersize_a4. active_worksheet->sheet_setup->scale = 80. "Used only if fit_to_page = FALSE active_worksheet->sheet_setup->horizontal_centered = abap_true. *--------------------------------------------------------------------* * Listing 11.11: Coding Header and Footer Print Settings *--------------------------------------------------------------------* "Put Tab Name in Header Centre DATA(header_information) = VALUE zexcel_s_worksheet_head_foot( center_value = active_worksheet->get_title( ) center_font-size = 8 center_font-name = zcl_excel_style_font=>c_name_arial ). DATA(footer_information) = VALUE zexcel_s_worksheet_head_foot( "Put last save date on footer left left_value = |{ sy-datum DATE = USER }| left_font = header_information-center_font "Put Spreadsheet path and name in Footer Centre center_value = '&Z&F' "Path / Filename center_font = header_information-center_font "Put page X of Y on Footer Right right_value = 'page &P of &N' "page x of y right_font = header_information-center_font ) ##no_text. active_worksheet->sheet_setup->set_header_footer( ip_odd_header = header_information ip_odd_footer = footer_information ). *--------------------------------------------------------------------* * Listing 11.12: Making the Header Row Repeat on Every Printed Sheet *--------------------------------------------------------------------* * Jonathon is a SKY BLUE PINK Monster *--------------------------------------------------------------------* active_worksheet->zif_excel_sheet_printsettings~set_print_repeat_rows( iv_rows_from = 1 iv_rows_to = 1 ). *--------------------------------------------------------------------* * Listing 11.14: Creating Colors to Use in a Spreadsheet *--------------------------------------------------------------------* DATA(green_style) = co_excel->add_new_style( ). green_style->fill->filltype = zcl_excel_style_fill=>c_fill_solid. green_style->fill->bgcolor-rgb = zcl_excel_style_color=>c_green. DATA(green_guid) = green_style->get_guid( ). DATA(red_style) = co_excel->add_new_style( ). red_style->fill->filltype = zcl_excel_style_fill=>c_fill_solid. red_style->fill->bgcolor-rgb = 'FFFF99FF'."Soft Red (Pink Really) DATA(red_guid) = red_style->get_guid( ). DATA(yellow_style) = co_excel->add_new_style( ). yellow_style->fill->filltype = zcl_excel_style_fill=>c_fill_solid. yellow_style->fill->bgcolor-rgb = 'FFFF9900'. "Orange - see ZDEMO_EXCEL21 DATA(yellow_guid) = yellow_style->get_guid( ). *--------------------------------------------------------------------* * Listing 11.15: Creating Conditional Formatting *--------------------------------------------------------------------* DATA: first_data_row TYPE sy-tabix, last_data_row TYPE sy-tabix. first_data_row = 2."i.e. first row after header last_data_row = lines( mo_model->mt_output_data[] ) + 1. "High Strength Monster - Green for 'Good' DATA(style_conditional) = active_worksheet->add_new_style_cond( ). style_conditional->rule = zcl_excel_style_cond=>c_rule_cellis. style_conditional->mode_cellis = VALUE #( formula = '"REALLY STRONG"' operator = zcl_excel_style_cond=>c_operator_equal cell_style = green_guid ). style_conditional->priority = 1. style_conditional->set_range( ip_start_column = strength_column_constant ip_start_row = first_data_row ip_stop_column = strength_column_constant ip_stop_row = last_data_row ). "Low Strength Monster - Red for 'Bad' style_conditional = active_worksheet->add_new_style_cond( ). style_conditional->rule = zcl_excel_style_cond=>c_rule_cellis. style_conditional->mode_cellis = VALUE #( formula = '"LOW"' operator = zcl_excel_style_cond=>c_operator_equal cell_style = red_guid ). style_conditional->priority = 2. style_conditional->set_range( ip_start_column = strength_column_constant ip_start_row = first_data_row ip_stop_column = strength_column_constant ip_stop_row = last_data_row ). "Medium Strength Monster - Yellow for 'nothing special' style_conditional = active_worksheet->add_new_style_cond( ). style_conditional->rule = zcl_excel_style_cond=>c_rule_cellis. style_conditional->mode_cellis = VALUE #( formula = '"MEDIUM"' operator = zcl_excel_style_cond=>c_operator_equal cell_style = yellow_guid ). style_conditional->priority = 3. style_conditional->set_range( ip_start_column = strength_column_constant ip_start_row = first_data_row ip_stop_column = strength_column_constant ip_stop_row = last_data_row ). *--------------------------------------------------------------------* * Listing 11.16: Conditional Formatting: Testing the Start of a String *--------------------------------------------------------------------* style_conditional = active_worksheet->add_new_style_cond( ). style_conditional->rule = zcl_excel_style_cond=>c_operator_beginswith. style_conditional->mode_cellis = VALUE #( formula = '1' operator = zcl_excel_style_cond=>c_operator_beginswith cell_style = red_guid ). *--------------------------------------------------------------------* * Listing 11.20: Conditional Formatting with Traffic Lights * The 7 Foot Tall Monster reads "Anticipating Change" by Hasso Platnner *--------------------------------------------------------------------* DATA: conditional_icon_settings TYPE zexcel_conditional_iconset, number_as_string TYPE string. "Green if below 7 days conditional_icon_settings-cfvo1_type = zcl_excel_style_cond=>c_cfvo_type_number. conditional_icon_settings-cfvo1_value = '-9999'. "Red if above 14 days conditional_icon_settings-cfvo2_type = zcl_excel_style_cond=>c_cfvo_type_number. number_as_string = 14. number_as_string = '-' && number_as_string. number_as_string = condense( number_as_string ). conditional_icon_settings-cfvo2_value = number_as_string. "Yellow otherwise conditional_icon_settings-cfvo3_type = zcl_excel_style_cond=>c_cfvo_type_number. number_as_string = 7. number_as_string = '-' && number_as_string. number_as_string = condense( number_as_string ). conditional_icon_settings-cfvo3_value = number_as_string. "Show the value as well as the ICON conditional_icon_settings-showvalue = zcl_excel_style_cond=>c_showvalue_true. "We create a "style" to which we will add "to the settings we just defined style_conditional = active_worksheet->add_new_style_cond( ). "We are going to show ICONS style_conditional->rule = zcl_excel_style_cond=>c_rule_iconset. style_conditional->priority = 1. "The ICONS are going to look like Traffic Lights conditional_icon_settings-iconset = zcl_excel_style_cond=>c_iconset_3trafficlights. style_conditional->mode_iconset = conditional_icon_settings. style_conditional->set_range( ip_start_column = age_column_constant ip_start_row = first_data_row ip_stop_column = age_column_constant ip_stop_row = last_data_row ). *--------------------------------------------------------------------* * Listing 11.21: Changing the Formatting to Make Negatives Look Positive *--------------------------------------------------------------------* "We made all the monster ages negative earlier "Now we have to show them as positive on the spreadsheet DATA: current_sheet_row TYPE zexcel_cell_row. current_sheet_row = 1. WHILE current_sheet_row LE last_data_row. current_sheet_row = current_sheet_row + 1. style_information-complete_style-number_format-format_code = '#,##0;#,##0'."i.e. do not show minus sign active_worksheet->change_cell_style( ip_column = age_column_constant ip_row = current_sheet_row ip_number_format_format_code = style_information-complete_style-number_format-format_code ). ENDWHILE. *--------------------------------------------------------------------* * Listing 11.23: Setting Up the Pie Chart Data Worksheet *--------------------------------------------------------------------* active_worksheet = co_excel->add_new_worksheet( ). active_worksheet->set_title( 'Pie Chart Values'(014) ). "In real life you would loop over an internal table to "populate the data values for your monsters "Pie Chart - Monster Types active_worksheet->set_cell( ip_column = 'A' ip_row = 1 ip_value = 'Blue Monsters'(015) ). active_worksheet->set_cell( ip_column = 'A' ip_row = 2 ip_value = 'Red Monsters'(016) ). active_worksheet->set_cell( ip_column = 'A' ip_row = 3 ip_value = 'Green Monsters'(017) ). active_worksheet->set_cell( ip_column = 'A' ip_row = 4 ip_value = 'Sky Blue Pink Monsters'(018) ). "Pie Chart - Number of each Monster Type active_worksheet->set_cell( ip_column = 'B' ip_row = 1 ip_value = 5 ). active_worksheet->set_cell( ip_column = 'B' ip_row = 2 ip_value = 10 ). active_worksheet->set_cell( ip_column = 'B' ip_row = 3 ip_value = 15 ). active_worksheet->set_cell( ip_column = 'B' ip_row = 4 ip_value = 20 ). *--------------------------------------------------------------------* * Listing 11.24: Setting Up the Pie Chart Worksheet *--------------------------------------------------------------------* "Add the worksheet with the actual pie chart on it active_worksheet = co_excel->add_new_worksheet( ). active_worksheet->set_title( 'Monster Pie Chart'(019) ). DATA(monster_pie_chart) = NEW zcl_excel_graph_pie( ). "Tell the Pie Chart where it gets it's data from monster_pie_chart->create_serie( ip_order = 0 "The sheet the data comes from ip_sheet = 'Pie Chart Values'(014) "Range where the labels live ip_lbl_from_col = 'A' ip_lbl_from_row = '1' ip_lbl_to_col = 'A' ip_lbl_to_row = '4' "Range where the data values live ip_ref_from_col = 'B' ip_ref_from_row = '1' ip_ref_to_col = 'B' ip_ref_to_row = '4' ip_sername = |{ 'Monsters by Color'(020) }| ). monster_pie_chart->set_style( zcl_excel_graph=>c_style_15 ). "Let us show the category names next to the pie chart monster_pie_chart->set_show_cat_name( zcl_excel_graph_pie=>c_show_true ). DATA(excel_drawing) = active_worksheet->excel->add_new_drawing( ip_type = zcl_excel_drawing=>type_chart ip_title = 'Monster Pie Chart'(019) ). excel_drawing->graph = monster_pie_chart. excel_drawing->graph_type = zcl_excel_drawing=>c_graph_pie. DATA: drawing_location_from_co_ords TYPE zexcel_drawing_location, drawing_location_to_co_ords TYPE zexcel_drawing_location. drawing_location_to_co_ords-row = 20. drawing_location_to_co_ords-col = 10. excel_drawing->set_position2( ip_from = drawing_location_from_co_ords ip_to = drawing_location_to_co_ords ). excel_drawing->set_media( ip_media_type = zcl_excel_drawing=>c_media_type_xml ). active_worksheet->add_drawing( excel_drawing ). "The value sheet for the pie chart is hidden by default co_excel->set_active_sheet_index( 2 ). active_worksheet = co_excel->get_active_worksheet( ). active_worksheet->zif_excel_sheet_properties~hidden = zif_excel_sheet_properties=>c_hidden. "We want the user to start on the first worksheet co_excel->set_active_sheet_index( 1 ). *--------------------------------------------------------------------* * Listing 11.32: Inserting Hyperlinks in a Spreadsheet *--------------------------------------------------------------------* DATA: hyperlink TYPE REF TO zcl_excel_hyperlink, hyperlink_url TYPE string, input_parameters TYPE string. active_worksheet = co_excel->get_active_worksheet( ). * Now we loop through the spreadsheet, adding hyperlinks so the user can drill * down into the original document in SAP current_sheet_row = first_data_row. LOOP AT mo_model->mt_output_data ASSIGNING FIELD-SYMBOL(<monster_output_table_row>). "Drill down into the Monster Master Record IF <monster_output_table_row>-ordernumber IS NOT INITIAL. input_parameters = 'S_NUMBR-LOW=' && <monster_output_table_row>-ordernumber && ';'. hyperlink_url = zcl_excel_emailer=>build_hyperlink_url( id_transaction = 'ZMO3' id_parameters = input_parameters id_ok_code = '=ONLI' ). hyperlink = zcl_excel_hyperlink=>create_external_link( hyperlink_url ). active_worksheet->set_cell( ip_column = monster_column_constant ip_row = current_sheet_row ip_value = <monster_output_table_row>-ordernumber ip_hyperlink = hyperlink ). active_worksheet->change_cell_style( ip_column = monster_column_constant ip_row = current_sheet_row ip_font_color_rgb = zcl_excel_style_color=>c_blue ip_font_underline = abap_true ). ENDIF."Do we have a Monster Number? current_sheet_row = current_sheet_row + 1. ENDLOOP."Monster Table ENDMETHOD. METHOD change_edit_mode. *--------------------------------------------------------------------* * Listing 10.36: - User Command to Make a SALV Grid Editable *--------------------------------------------------------------------* DATA(underlying_alv_grid) = mo_view->get_alv_grid_object( ). IF underlying_alv_grid IS NOT BOUND. RETURN. ENDIF. underlying_alv_grid->get_frontend_fieldcatalog( IMPORTING et_fieldcatalog = DATA(field_catalog_table) ). make_column_editable( : EXPORTING id_column_name = 'MONSTER_HATS' CHANGING ct_fcat = field_catalog_table ), EXPORTING id_column_name = 'MONSTER_HEADS' CHANGING ct_fcat = field_catalog_table ). underlying_alv_grid->set_frontend_fieldcatalog( field_catalog_table ). underlying_alv_grid->set_frontend_layout( VALUE #( stylefname = 'CELLTAB' ) ). underlying_alv_grid->refresh_table_display( ). cl_gui_cfw=>flush( ). ENDMETHOD. METHOD download_spreadseet. *--------------------------------------------------------------------* * Listing 11.28: - Uploading an Excel Template *--------------------------------------------------------------------* * Local Variables DATA: lo_alv_grid TYPE REF TO cl_salv_table, ls_template TYPE ztexcel_template, lo_excel_reader TYPE REF TO zif_excel_reader. TRY. IF go_selections->p_macro = abap_true. lo_excel_reader = NEW zcl_excel_reader_xlsm( ). "Retrieve template from the database SELECT SINGLE * FROM ztexcel_template INTO CORRESPONDING FIELDS OF ls_template WHERE template_name = 'MONSTER_EXAMPLE'. DATA(lo_excel) = lo_excel_reader->load( ls_template-raw_data ). DATA(lo_worksheet) = lo_excel->get_active_worksheet( ). ENDIF."Do we want to use a macro? *-------------------------------------------------------------------------------------------------------------------* * In one Haunted Castle there is the ghost who loves to join parties. Her ghost has been seen at functions in the * ballroom, clothed in a ballgown of that era *-------------------------------------------------------------------------------------------------------------------* * Listing 11.05: - Transforming a Report Object into an Excel Object * AND * Listing 11.29: - Filling the Macro-Enabled Worksheet with Data *--------------------------------------------------------------------* * Convert SALV object into EXCEL object *--------------------------------------------------------------------* lo_alv_grid ?= mo_view->get_main_alv_object( ). DATA(lo_converter) = NEW zcl_excel_converter( ). lo_converter->convert( EXPORTING io_alv = lo_alv_grid it_table = mo_model->mt_output_data[] i_table = abap_true i_style_table = zcl_excel_table=>builtinstyle_medium2 io_worksheet = lo_worksheet CHANGING co_excel = lo_excel ). "Make any changes to the spreadsheet object that relate to this report adjust_spreadsheet( CHANGING co_excel = lo_excel ). CATCH zcx_excel. RETURN. ENDTRY. *--------------------------------------------------------------------* * Listing 11.04: - Downloading an EXCEL Spreadsheet *--------------------------------------------------------------------* * Choose where to download EXCEL spreadsheet to front end *--------------------------------------------------------------------* DATA: lt_rawdata TYPE solix_tab, ld_bytecount TYPE i, ld_filename TYPE string, ld_path TYPE string, ld_fullpath TYPE string. "From now on this is all bog standard SAP cl_gui_frontend_services=>file_save_dialog( EXPORTING window_title = |{ 'Choose where to save file'(021) }| default_extension = 'XLSX' " Default Extension CHANGING filename = ld_filename " File Name to Save path = ld_path " Path to File fullpath = ld_fullpath " Path + File Name EXCEPTIONS cntl_error = 1 error_no_gui = 2 not_supported_by_gui = 3 OTHERS = 4 ). IF sy-subrc <> 0. RETURN. ENDIF. *--------------------------------------------------------------------* * Listing 11.30: - Making sure the Spreadsheet File is Saved Correctly *--------------------------------------------------------------------* * Convert to XML *--------------------------------------------------------------------* DATA: ld_xml_file TYPE xstring, lo_excel_writer TYPE REF TO zif_excel_writer, lf_macro_enabled TYPE abap_bool. TRY. IF lo_excel->zif_excel_book_vba_project~codename_pr IS NOT INITIAL. lf_macro_enabled = abap_true. ELSE. lf_macro_enabled = abap_false. ENDIF. IF ld_fullpath CS 'XLSM' AND lf_macro_enabled = abap_false. REPLACE 'XLSM' WITH 'XLSX' INTO ld_fullpath. ELSEIF ld_fullpath CS 'XLSX' AND lf_macro_enabled = abap_true. REPLACE 'XLSX' WITH 'XLSM' INTO ld_fullpath. ELSEIF ld_fullpath CS 'XLSX' OR ld_fullpath CS 'XLSM'. "Do nothing - everything is fine ELSEIF ld_fullpath CS 'XLS' AND lf_macro_enabled = abap_false. REPLACE 'XLS' WITH 'XLSX' INTO ld_fullpath. ELSEIF ld_fullpath CS 'XLS' AND lf_macro_enabled = abap_true. REPLACE 'XLS' WITH 'XLSM' INTO ld_fullpath. ENDIF. IF ld_fullpath CS 'XLSM'. lo_excel_writer = NEW zcl_excel_writer_xlsm( ). ELSE. lo_excel_writer = NEW zcl_excel_writer_2007( ). ENDIF. ld_xml_file = lo_excel_writer->write_file( lo_excel ). *--------------------------------------------------------------------* * Download to Front End *--------------------------------------------------------------------* lt_rawdata = cl_bcs_convert=>xstring_to_solix( ld_xml_file ). ld_bytecount = xstrlen( ld_xml_file ). cl_gui_frontend_services=>gui_download( EXPORTING bin_filesize = ld_bytecount filename = ld_fullpath filetype = 'BIN' CHANGING data_tab = lt_rawdata ). CATCH zcx_excel INTO DATA(lo_exception). DATA(ld_error) = lo_exception->get_text( ). MESSAGE ld_error TYPE 'E'. ENDTRY. ENDMETHOD. METHOD on_user_command. *--------------------------------------------------------------------* * FOR EVENT added_function OF cl_salv_events * IMPORTING ed_user_command * ed_row * ed_column. *--------------------------------------------------------------------* CASE ed_user_command. WHEN 'ZEDIT'. "A command to change the edit mode change_edit_mode( ). WHEN 'ZEXCEL'. "Command to download the spreadsheet to the local machine download_spreadseet( ). ENDCASE."User Command mo_model->user_command( id_user_command = ed_user_command id_column = ed_column id_row = ed_row ). mo_view->refresh_display( ). *----------------------------------------------------------------------------------------------------------* * At the time of the murder the Green Monster was in the castle directly to the west of the castle that the * Sky-Blue Pink Monster was in *----------------------------------------------------------------------------------------------------------* ENDMETHOD."User Command / Controller METHOD on_data_changed. mo_view->refresh_display( ). ENDMETHOD. "on_data_changed METHOD make_column_editable. *--------------------------------------------------------------------* * Listng 10.38: - MAKE_COLUMN_EDITABLE Method *--------------------------------------------------------------------* * IMPORTING id_column_name TYPE dd03l-fieldname * CHANGING ct_fcat TYPE lvc_t_fcat. *--------------------------------------------------------------------* LOOP AT mo_model->mt_output_data ASSIGNING FIELD-SYMBOL(<ls_output>). READ TABLE <ls_output>-celltab ASSIGNING FIELD-SYMBOL(<ls_celltab>) WITH KEY fieldname = id_column_name. IF sy-subrc <> 0. INSERT VALUE #( fieldname = id_column_name ) INTO TABLE <ls_output>-celltab. READ TABLE <ls_output>-celltab ASSIGNING <ls_celltab> WITH KEY fieldname = id_column_name. ASSERT sy-subrc EQ 0. ENDIF. IF <ls_celltab>-style EQ cl_gui_alv_grid=>mc_style_enabled. <ls_celltab>-style = cl_gui_alv_grid=>mc_style_disabled. ELSE. <ls_celltab>-style = cl_gui_alv_grid=>mc_style_enabled. ENDIF. ENDLOOP. LOOP AT ct_fcat ASSIGNING FIELD-SYMBOL(<ls_fcat>) WHERE fieldname = id_column_name. <ls_fcat>-edit = abap_true. ENDLOOP. ENDMETHOD."make column editable ENDCLASS. "lcl_controller IMPLEMENTATION *----------------------------------------------------------------------------* * Listing 10.43: - IDA Class to Calculate Extra Field Values – Implementation *----------------------------------------------------------------------------* CLASS lcl_ida_calculated_m_fields IMPLEMENTATION. METHOD constructor. mo_monster_model = NEW #( ). ENDMETHOD. METHOD if_salv_ida_calc_field_handler~get_calc_field_structure. "Define additional fields by returning the structure description DATA transient_fields TYPE z4st_monster_header_dt. ro_calc_field_structure ?= cl_abap_structdescr=>describe_by_data( transient_fields ). ENDMETHOD. METHOD if_salv_ida_calc_field_handler~get_requested_fields. "Define which fields are required for the calculation of the additional fields DATA field_name TYPE fieldname. "To find the sanity description, you need the sanity percentage IF line_exists( its_calc_field_name[ table_line = 'SANITY_DESCRIPTION' ] ). field_name = 'SANITY_PERCENTAGE'. INSERT field_name INTO TABLE rts_db_field_name. ENDIF. ENDMETHOD. METHOD if_salv_ida_calc_field_handler~start_page. CLEAR ev_cancel_calculation. "Buffer which of the calculated fields are displayed "--> later calculate values only for these fields to save performance mt_calc_field_names[] = its_calc_field_name[]. ENDMETHOD. METHOD if_salv_ida_calc_field_handler~calculate_line. DATA: all_fields TYPE z4sc_monster_header_ex, persistent_fields TYPE z4t_monster_head, transient_fields TYPE z4st_monster_header_dt. CLEAR es_calculated_fields. persistent_fields = is_data_base_line. all_fields = CORRESPONDING #( persistent_fields ) ##ENH_OK. IF line_exists( mt_calc_field_names[ table_line = 'SANITY_DESCRIPTION' ] ). TRY. mo_monster_model->derive_header_fields( CHANGING cs_monster_header = all_fields ). transient_fields = CORRESPONDING #( all_fields ). CATCH zcx_4_monster_exceptions. RETURN. ENDTRY. ENDIF. es_calculated_fields = transient_fields. ENDMETHOD. METHOD if_salv_ida_calc_field_handler~end_page ##NEEDED. "Do Nothing. The Monster who collects Rare Coins is 6 Feet Tall ENDMETHOD. ENDCLASS.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1168, 62, 27857, 41809, 62, 2885, 43, 62, 9399, 16, 198, 9, 5, 10097, 30934, 9, 198, 9, 10714, 5016, 48282, 602, 198, 9, 10097, 650, 9, 198, 31631, 300, 565, 62, 31438, 30023, 2538, 10979, 6234, 13, 198, 9, 10097, 650, 9, 198, 9, 7343, 278, 838, 13, 486, 25, 42044, 37350, 329, 32677, 8355, 53, 17905, 198, 9, 10097, 650, 9, 198, 9, 19627, 318, 257, 33079, 16437, 12635, 198, 9, 10097, 650, 9, 198, 220, 337, 36252, 1388, 526, 5189, 12635, 1629, 12204, 414, 14444, 7343, 198, 9, 10714, 15965, 2977, 198, 220, 220, 220, 42865, 25, 300, 67, 62, 7856, 312, 41876, 827, 12, 7856, 312, 13, 628, 220, 220, 220, 366, 1026, 318, 2089, 1705, 284, 1208, 1080, 9633, 355, 10007, 198, 220, 220, 220, 300, 67, 62, 7856, 312, 796, 827, 12, 7856, 312, 13, 628, 220, 220, 220, 6941, 62, 19849, 796, 12682, 1303, 7, 6739, 628, 220, 220, 220, 366, 17309, 327, 9043, 994, 532, 561, 779, 8398, 393, 2092, 287, 198, 220, 220, 220, 366, 5305, 1204, 198, 220, 220, 220, 42865, 7, 22866, 62, 7890, 62, 4868, 8, 796, 26173, 8924, 266, 7109, 62, 36439, 62, 3672, 62, 8367, 62, 4868, 7, 357, 198, 220, 220, 220, 1438, 220, 796, 705, 10080, 62, 51, 25994, 45, 43781, 6, 198, 220, 220, 220, 1988, 796, 705, 5097, 62, 50, 1847, 53, 62, 38148, 6, 1267, 6739, 628, 220, 220, 220, 1976, 565, 62, 420, 79, 62, 69, 9548, 14804, 7783, 62, 15252, 62, 35569, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 340, 62, 22866, 62, 7890, 796, 4732, 62, 7890, 62, 4868, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 763, 62, 15252, 220, 220, 220, 220, 220, 220, 796, 6941, 62, 1177, 6739, 628, 220, 220, 220, 6941, 62, 36500, 796, 12682, 1303, 7, 33245, 62, 19849, 796, 6941, 62, 19849, 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, 33245, 62, 1177, 220, 796, 6941, 62, 1177, 6739, 628, 220, 220, 220, 6941, 62, 19849, 3784, 7890, 62, 1186, 380, 18206, 7, 6739, 198, 220, 220, 220, 6941, 62, 19849, 3784, 46012, 533, 62, 7890, 62, 1640, 62, 280, 1996, 7, 6739, 628, 220, 220, 220, 16876, 827, 12, 43501, 3180, 3268, 2043, 12576, 13, 198, 9, 10097, 650, 9, 198, 9, 7343, 278, 838, 13, 2327, 25, 532, 32677, 257, 42475, 53, 989, 14590, 4441, 257, 9290, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6338, 198, 9, 10097, 650, 9, 198, 9, 6118, 5202, 318, 355, 5679, 21912, 198, 9, 1168, 5097, 62, 2749, 62, 28206, 62, 50, 1847, 53, 62, 38148, 3784, 43387, 6158, 62, 10943, 30339, 1137, 62, 47, 35316, 12203, 62, 26947, 198, 9, 15553, 1168, 50, 1847, 53, 62, 7902, 48, 51, 62, 43387, 6158, 62, 10943, 30339, 1137, 198, 9, 1168, 50, 1847, 53, 62, 7902, 48, 51, 62, 43387, 6158, 62, 10943, 30339, 1137, 3784, 37, 8267, 62, 10943, 30339, 1137, 62, 37815, 3525, 198, 9, 1168, 5097, 62, 2749, 62, 28206, 62, 50, 1847, 53, 62, 38148, 3784, 47, 35316, 12203, 62, 26288, 31519, 62, 26947, 198, 9, 14610, 3268, 2043, 12576, 24352, 357, 46189, 8, 198, 9, 14610, 15678, 17377, 19179, 357, 46189, 8, 198, 9, 14610, 16531, 357, 46189, 8, 198, 220, 220, 220, 220, 220, 6941, 62, 1177, 3784, 17953, 62, 34924, 62, 46012, 62, 13812, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 62, 13116, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 796, 300, 67, 62, 7856, 312, 198, 220, 220, 220, 220, 220, 220, 220, 611, 62, 9688, 62, 259, 62, 19312, 62, 14171, 796, 467, 62, 19738, 507, 3784, 79, 62, 19312, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 62, 19312, 62, 13716, 62, 3245, 796, 6941, 62, 19849, 3784, 9132, 62, 19312, 62, 13716, 62, 3245, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 276, 4674, 62, 25747, 220, 220, 220, 796, 6941, 62, 19849, 3784, 16762, 62, 276, 4674, 62, 25747, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 23873, 20155, 220, 220, 220, 220, 220, 220, 220, 220, 796, 6941, 62, 19849, 3784, 16762, 62, 23873, 20155, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 30342, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 6941, 62, 19849, 3784, 16762, 62, 30342, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 17398, 40793, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 6941, 62, 19849, 3784, 16762, 62, 17398, 40793, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 9122, 29305, 220, 220, 220, 220, 220, 220, 220, 220, 796, 6941, 62, 19849, 3784, 16762, 62, 9122, 29305, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 7266, 23350, 62, 25747, 220, 220, 220, 796, 6941, 62, 19849, 3784, 16762, 62, 7266, 23350, 62, 25747, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 3245, 62, 5239, 82, 220, 220, 220, 220, 220, 220, 220, 796, 6941, 62, 19849, 3784, 16762, 62, 3245, 62, 5239, 82, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 30619, 62, 22213, 5142, 220, 220, 220, 220, 220, 796, 6941, 62, 19849, 3784, 16762, 62, 30619, 62, 22213, 5142, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 7220, 62, 9503, 1746, 220, 220, 220, 220, 220, 796, 6941, 62, 19849, 3784, 16762, 62, 7220, 62, 9503, 1746, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 269, 83, 62, 7890, 62, 11487, 220, 220, 220, 220, 220, 220, 220, 220, 796, 6941, 62, 19849, 3784, 16762, 62, 22915, 62, 7890, 6739, 628, 220, 220, 220, 17852, 5188, 13, 198, 9, 1002, 428, 318 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
FUNCTION-POOL zaoc_wrapper. "MESSAGE-ID .. * INCLUDE LZAOC_WRAPPERD... " Local class definition
[ 42296, 4177, 2849, 12, 16402, 3535, 1976, 64, 420, 62, 48553, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 44, 1546, 4090, 8264, 12, 2389, 11485, 198, 198, 9, 3268, 5097, 52, 7206, 406, 34892, 4503, 62, 18564, 2969, 18973, 35, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 10714, 1398, 6770, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_2fa_github_auth DEFINITION PUBLIC INHERITING FROM zcl_abapgit_2fa_auth_base CREATE PUBLIC . PUBLIC SECTION. METHODS constructor IMPORTING !iv_override TYPE string OPTIONAL . METHODS zif_abapgit_2fa_authenticator~authenticate REDEFINITION . METHODS zif_abapgit_2fa_authenticator~delete_access_tokens REDEFINITION . METHODS zif_abapgit_2fa_authenticator~end REDEFINITION . METHODS zif_abapgit_2fa_authenticator~is_2fa_required REDEFINITION . PROTECTED SECTION. DATA mv_github_api_url TYPE string VALUE `https://api.github.com/` ##NO_TEXT. PRIVATE SECTION. CONSTANTS c_otp_header_name TYPE string VALUE `X-Github-OTP` ##NO_TEXT. CONSTANTS c_restendpoint_authorizations TYPE string VALUE `/authorizations` ##NO_TEXT. DATA mi_authenticated_session TYPE REF TO if_http_client . CLASS-METHODS set_new_token_request IMPORTING !ii_request TYPE REF TO if_http_request . CLASS-METHODS get_token_from_response IMPORTING !ii_response TYPE REF TO if_http_response RETURNING VALUE(rv_token) TYPE string . CLASS-METHODS set_list_token_request IMPORTING !ii_request TYPE REF TO if_http_request . CLASS-METHODS get_tobedel_tokens_from_resp IMPORTING !ii_response TYPE REF TO if_http_response RETURNING VALUE(rt_ids) TYPE string_table . CLASS-METHODS set_del_token_request IMPORTING !ii_request TYPE REF TO if_http_request !iv_token_id TYPE string . METHODS get_authenticated_client IMPORTING !iv_username TYPE string !iv_password TYPE string !iv_2fa_token TYPE string RETURNING VALUE(ri_client) TYPE REF TO if_http_client RAISING zcx_abapgit_2fa_auth_failed zcx_abapgit_2fa_comm_error . ENDCLASS. CLASS ZCL_ABAPGIT_2FA_GITHUB_AUTH IMPLEMENTATION. METHOD constructor. DATA: lv_match TYPE string. IF iv_override IS SUPPLIED. lv_match = iv_override. ELSE. lv_match = '^https?://(www\.)?github.com.*$'. ENDIF. super->constructor( lv_match ). ENDMETHOD. METHOD get_authenticated_client. DATA: lv_http_code TYPE i, lv_http_code_description TYPE string. " If there is a cached client return it instead IF is_session_running( ) = abap_true AND mi_authenticated_session IS BOUND. ri_client = mi_authenticated_session. RETURN. ENDIF. " Try to login to GitHub API with username, password and 2fa token ri_client = get_http_client_for_url( mv_github_api_url ). " https://developer.github.com/v3/auth/#working-with-two-factor-authentication ri_client->propertytype_accept_cookie = if_http_client=>co_enabled. ri_client->request->set_header_field( name = c_otp_header_name value = iv_2fa_token ). ri_client->authenticate( username = iv_username password = iv_password ). ri_client->propertytype_logon_popup = if_http_client=>co_disabled. ri_client->send( EXCEPTIONS OTHERS = 1 ). IF sy-subrc <> 0. raise_comm_error_from_sy( ). ENDIF. ri_client->receive( EXCEPTIONS OTHERS = 1 ). IF sy-subrc <> 0. raise_comm_error_from_sy( ). ENDIF. " Check if authentication has succeeded ri_client->response->get_status( IMPORTING code = lv_http_code reason = lv_http_code_description ). IF lv_http_code <> 200. RAISE EXCEPTION TYPE zcx_abapgit_2fa_auth_failed EXPORTING mv_text = |Authentication failed: { lv_http_code_description }|. ENDIF. " Cache the authenticated http session / client to avoid unnecessary additional authentication IF is_session_running( ) = abap_true. mi_authenticated_session = ri_client. ENDIF. ENDMETHOD. METHOD get_tobedel_tokens_from_resp. CONSTANTS: lc_search_regex TYPE string VALUE `\{"id": ?(\d+)[^\{]*"app":\{[^\{^\}]*\}[^\{]*"fingerprint": ?"abapGit2FA"[^\{]*\}`. DATA: lv_response TYPE string, lo_regex TYPE REF TO cl_abap_regex, lo_matcher TYPE REF TO cl_abap_matcher. lv_response = cl_abap_codepage=>convert_from( ii_response->get_data( ) ). CREATE OBJECT lo_regex EXPORTING pattern = lc_search_regex. lo_matcher = lo_regex->create_matcher( text = lv_response ). WHILE lo_matcher->find_next( ) = abap_true. APPEND lo_matcher->get_submatch( 1 ) TO rt_ids. ENDWHILE. ENDMETHOD. METHOD get_token_from_response. CONSTANTS: lc_search_regex TYPE string VALUE `.*"token":"([^"]*).*$`. DATA: lv_response TYPE string, lo_regex TYPE REF TO cl_abap_regex, lo_matcher TYPE REF TO cl_abap_matcher. lv_response = cl_abap_codepage=>convert_from( ii_response->get_data( ) ). CREATE OBJECT lo_regex EXPORTING pattern = lc_search_regex. lo_matcher = lo_regex->create_matcher( text = lv_response ). IF lo_matcher->match( ) = abap_true. rv_token = lo_matcher->get_submatch( 1 ). ENDIF. ENDMETHOD. METHOD set_del_token_request. DATA: lv_url TYPE string. lv_url = |{ c_restendpoint_authorizations }/{ iv_token_id }|. ii_request->set_header_field( name = if_http_header_fields_sap=>request_uri value = lv_url ). " Other methods than POST and GET do not have constants unfortunately ii_request->set_method( 'DELETE' ). ENDMETHOD. METHOD set_list_token_request. ii_request->set_header_field( name = if_http_header_fields_sap=>request_uri value = c_restendpoint_authorizations ). ii_request->set_method( if_http_request=>co_request_method_get ). ENDMETHOD. METHOD set_new_token_request. DATA: lv_json_string TYPE string. lv_json_string = `{"scopes":["repo"],"note":"Generated by abapGit","fingerprint":"abapGit2FA"}`. ii_request->set_data( cl_abap_codepage=>convert_to( lv_json_string ) ). ii_request->set_header_field( name = if_http_header_fields_sap=>request_uri value = c_restendpoint_authorizations ). ii_request->set_method( if_http_request=>co_request_method_post ). ENDMETHOD. METHOD zif_abapgit_2fa_authenticator~authenticate. DATA: li_http_client TYPE REF TO if_http_client, lv_http_code TYPE i, lv_http_code_description TYPE string. " 1. Try to login to GitHub API li_http_client = get_authenticated_client( iv_username = iv_username iv_password = iv_password iv_2fa_token = iv_2fa_token ). " 2. Create an access token which can be used instead of a password " https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization set_new_token_request( li_http_client->request ). li_http_client->send( EXCEPTIONS OTHERS = 1 ). IF sy-subrc <> 0. raise_comm_error_from_sy( ). ENDIF. li_http_client->receive( EXCEPTIONS OTHERS = 1 ). IF sy-subrc <> 0. raise_comm_error_from_sy( ). ENDIF. li_http_client->response->get_status( IMPORTING code = lv_http_code reason = lv_http_code_description ). IF lv_http_code <> 201. RAISE EXCEPTION TYPE zcx_abapgit_2fa_gen_failed EXPORTING mv_text = |Token generation failed: { lv_http_code } { lv_http_code_description }|. ENDIF. rv_access_token = get_token_from_response( li_http_client->response ). IF rv_access_token IS INITIAL. RAISE EXCEPTION TYPE zcx_abapgit_2fa_gen_failed EXPORTING mv_text = 'Token generation failed: parser error' ##NO_TEXT. ENDIF. " GitHub might need some time until the new token is ready to use, give it a second CALL FUNCTION 'RZL_SLEEP'. ENDMETHOD. METHOD zif_abapgit_2fa_authenticator~delete_access_tokens. DATA: li_http_client TYPE REF TO if_http_client, lv_http_code TYPE i, lv_http_code_description TYPE string, lt_tobedeleted_tokens TYPE string_table. FIELD-SYMBOLS: <lv_id> TYPE string. li_http_client = get_authenticated_client( iv_username = iv_username iv_password = iv_password iv_2fa_token = iv_2fa_token ). set_list_token_request( li_http_client->request ). li_http_client->send( EXCEPTIONS OTHERS = 1 ). IF sy-subrc <> 0. raise_comm_error_from_sy( ). ENDIF. li_http_client->receive( EXCEPTIONS OTHERS = 1 ). IF sy-subrc <> 0. raise_comm_error_from_sy( ). ENDIF. li_http_client->response->get_status( IMPORTING code = lv_http_code reason = lv_http_code_description ). IF lv_http_code <> 200. RAISE EXCEPTION TYPE zcx_abapgit_2fa_del_failed EXPORTING mv_text = |Could not fetch current 2FA authorizations: | && |{ lv_http_code } { lv_http_code_description }|. ENDIF. lt_tobedeleted_tokens = get_tobedel_tokens_from_resp( li_http_client->response ). LOOP AT lt_tobedeleted_tokens ASSIGNING <lv_id> WHERE table_line IS NOT INITIAL. set_del_token_request( ii_request = li_http_client->request iv_token_id = <lv_id> ). li_http_client->send( EXCEPTIONS OTHERS = 1 ). IF sy-subrc <> 0. raise_comm_error_from_sy( ). ENDIF. li_http_client->receive( EXCEPTIONS OTHERS = 1 ). IF sy-subrc <> 0. raise_comm_error_from_sy( ). ENDIF. li_http_client->response->get_status( IMPORTING code = lv_http_code reason = lv_http_code_description ). IF lv_http_code <> 204. RAISE EXCEPTION TYPE zcx_abapgit_2fa_del_failed EXPORTING mv_text = |Could not delete token '{ <lv_id> }': | && |{ lv_http_code } { lv_http_code_description }|. ENDIF. ENDLOOP. ENDMETHOD. METHOD zif_abapgit_2fa_authenticator~end. super->end( ). FREE mi_authenticated_session. ENDMETHOD. METHOD zif_abapgit_2fa_authenticator~is_2fa_required. DATA: li_client TYPE REF TO if_http_client. li_client = get_http_client_for_url( mv_github_api_url ). li_client->propertytype_logon_popup = if_http_client=>co_disabled. " The request needs to use something other than GET and it needs to be send to an endpoint " to trigger a SMS. li_client->request->set_header_field( name = if_http_header_fields_sap=>request_uri value = c_restendpoint_authorizations ). li_client->request->set_method( if_http_request=>co_request_method_post ). " Try to authenticate, if 2FA is required there will be a specific response header li_client->authenticate( username = iv_username password = iv_password ). li_client->send( EXCEPTIONS OTHERS = 1 ). IF sy-subrc <> 0. raise_comm_error_from_sy( ). ENDIF. li_client->receive( EXCEPTIONS OTHERS = 1 ). IF sy-subrc <> 0. * if the code fails here with a SSL error, make sure STRUST is setup to * work with https://api.github.com raise_comm_error_from_sy( ). ENDIF. " The response will either be UNAUTHORIZED or MALFORMED which is both fine. IF li_client->response->get_header_field( c_otp_header_name ) CP 'required*'. rv_required = abap_true. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 17, 13331, 62, 12567, 62, 18439, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 17, 13331, 62, 18439, 62, 8692, 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, 2502, 13154, 41876, 4731, 39852, 2849, 1847, 764, 628, 220, 220, 220, 337, 36252, 50, 1976, 361, 62, 397, 499, 18300, 62, 17, 13331, 62, 41299, 26407, 93, 41299, 5344, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 1976, 361, 62, 397, 499, 18300, 62, 17, 13331, 62, 41299, 26407, 93, 33678, 62, 15526, 62, 83, 482, 641, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 1976, 361, 62, 397, 499, 18300, 62, 17, 13331, 62, 41299, 26407, 93, 437, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 1976, 361, 62, 397, 499, 18300, 62, 17, 13331, 62, 41299, 26407, 93, 271, 62, 17, 13331, 62, 35827, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 42865, 285, 85, 62, 12567, 62, 15042, 62, 6371, 41876, 4731, 26173, 8924, 4600, 5450, 1378, 15042, 13, 12567, 13, 785, 14, 63, 22492, 15285, 62, 32541, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 313, 79, 62, 25677, 62, 3672, 41876, 4731, 26173, 8924, 4600, 55, 12, 38, 10060, 12, 2394, 47, 63, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 2118, 437, 4122, 62, 9800, 4582, 41876, 4731, 26173, 8924, 4600, 14, 9800, 4582, 63, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 42865, 21504, 62, 41299, 3474, 62, 29891, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 16366, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 900, 62, 3605, 62, 30001, 62, 25927, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 25927, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 25927, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 651, 62, 30001, 62, 6738, 62, 26209, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 26209, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 26209, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 30001, 8, 41876, 4731, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 900, 62, 4868, 62, 30001, 62, 25927, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 25927, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 25927, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 651, 62, 83, 672, 276, 417, 62, 83, 482, 641, 62, 6738, 62, 4363, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 26209, 220, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 26209, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 2340, 8, 41876, 4731, 62, 11487, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 900, 62, 12381, 62, 30001, 62, 25927, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 25927, 220, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 25927, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 30001, 62, 312, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 41299, 3474, 62, 16366, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 29460, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 28712, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 17, 13331, 62, 30001, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 16366, 8, 41876, 4526, 37, 5390, 611, 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, 17, 13331, 62, 18439, 62, 47904, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 17, 13331, 62, 9503, 62, 18224, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 17, 7708, 62, 38, 10554, 10526, 62, 32, 24318, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 15699, 41876, 4731, 13, 628, 220, 220, 220, 16876, 21628, 62, 2502, 13154, 3180, 19549, 49094, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 15699, 796, 21628, 62, 2502, 13154, 13, 198, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 15699, 796, 705, 61, 5450, 30, 1378, 7, 2503, 59, 2014, 30, 12567, 13, 785, 15885, 3, 4458, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 300, 85, 62, 15699, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 41299, 3474, 62, 16366, 13, 198, 220, 220, 220, 42865, 25, 300, 85, 62, 4023, 62, 8189, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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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 ]
METHOD obtener_remitos_3. * Obtengo la Fecha de Vencimiento del Acuerdo DATA lv_gueen TYPE vbak-gueen. CLEAR: e_gueen. SELECT SINGLE gueen FROM vbak INTO lv_gueen WHERE vbeln EQ i_remito-ac_negocio. MOVE lv_gueen TO e_gueen. * Obtengo la Poblacion Dest Pe. CLEAR: e_adrnr. SELECT SINGLE adrc~city1 FROM adrc INNER JOIN vbpa ON vbpa~adrnr EQ adrc~addrnumber INTO e_adrnr WHERE vbpa~vbeln EQ i_remito-pl_entrega. * Obtengo las patentes DATA: ls_likp TYPE likp. SELECT SINGLE * " Del camion y/o del remolque FROM likp INTO ls_likp WHERE vbeln EQ i_remito-entrega. IF ls_likp-xabln IS NOT INITIAL. " Si hay remolque concateno CONCATENATE ls_likp-traid ls_likp-xabln INTO e_patente SEPARATED BY '-'. ELSE. e_patente = ls_likp-traid. " Sino devuelvo la patente normal. ENDIF. * Por ultimo obtengo el DNI Po. CLEAR: e_remark. SELECT SINGLE adrct~remark FROM adrct INNER JOIN vbpa ON vbpa~adrnr EQ adrct~addrnumber INTO e_remark WHERE vbpa~vbeln = i_remito-entrega AND vbpa~parvw EQ 'IC'. ENDMETHOD.
[ 49273, 909, 83, 877, 62, 260, 2781, 418, 62, 18, 13, 198, 198, 9, 1835, 1452, 2188, 8591, 376, 3055, 64, 390, 9932, 66, 320, 1153, 78, 1619, 4013, 15573, 4598, 198, 220, 42865, 300, 85, 62, 18701, 268, 41876, 410, 65, 461, 12, 18701, 268, 13, 198, 220, 30301, 1503, 25, 304, 62, 18701, 268, 13, 198, 220, 33493, 311, 2751, 2538, 308, 518, 268, 198, 220, 220, 220, 16034, 410, 65, 461, 198, 220, 220, 220, 39319, 300, 85, 62, 18701, 268, 198, 220, 220, 220, 33411, 410, 6667, 77, 36529, 1312, 62, 260, 2781, 78, 12, 330, 62, 12480, 420, 952, 13, 198, 220, 13070, 6089, 300, 85, 62, 18701, 268, 5390, 304, 62, 18701, 268, 13, 198, 198, 9, 1835, 1452, 2188, 8591, 350, 45292, 49443, 8145, 2631, 13, 198, 220, 30301, 1503, 25, 304, 62, 324, 35906, 81, 13, 198, 220, 33493, 311, 2751, 2538, 512, 6015, 93, 19205, 16, 198, 220, 220, 220, 16034, 512, 6015, 198, 220, 220, 220, 3268, 21479, 32357, 1268, 410, 65, 8957, 6177, 410, 65, 8957, 93, 324, 35906, 81, 36529, 512, 6015, 93, 29851, 17618, 198, 220, 220, 220, 39319, 304, 62, 324, 35906, 81, 198, 220, 220, 220, 33411, 410, 65, 8957, 93, 85, 6667, 77, 36529, 1312, 62, 260, 2781, 78, 12, 489, 62, 298, 2301, 64, 13, 198, 198, 9, 1835, 1452, 2188, 39990, 12701, 274, 198, 220, 42865, 25, 43979, 62, 46965, 79, 41876, 4300, 79, 13, 198, 220, 33493, 311, 2751, 2538, 1635, 366, 4216, 12172, 295, 331, 14, 78, 1619, 816, 349, 4188, 198, 220, 220, 220, 16034, 4300, 79, 198, 220, 220, 220, 39319, 43979, 62, 46965, 79, 198, 220, 220, 220, 33411, 410, 6667, 77, 36529, 1312, 62, 260, 2781, 78, 12, 298, 2301, 64, 13, 198, 220, 16876, 43979, 62, 46965, 79, 12, 87, 397, 18755, 3180, 5626, 3268, 2043, 12576, 13, 366, 15638, 27678, 816, 349, 4188, 1673, 265, 23397, 198, 220, 220, 220, 39962, 1404, 1677, 6158, 43979, 62, 46965, 79, 12, 83, 7086, 43979, 62, 46965, 79, 12, 87, 397, 18755, 39319, 304, 62, 8071, 21872, 198, 220, 220, 220, 7946, 27082, 11617, 11050, 705, 12, 4458, 198, 220, 17852, 5188, 13, 198, 220, 220, 220, 304, 62, 8071, 21872, 796, 43979, 62, 46965, 79, 12, 83, 7086, 13, 366, 311, 2879, 1614, 2731, 13038, 8591, 12701, 68, 3487, 13, 198, 220, 23578, 5064, 13, 198, 198, 9, 20139, 3789, 25147, 909, 1452, 2188, 1288, 360, 22125, 7695, 13, 198, 220, 30301, 1503, 25, 304, 62, 2787, 668, 13, 198, 220, 33493, 311, 2751, 2538, 512, 81, 310, 93, 2787, 668, 198, 220, 220, 220, 16034, 512, 81, 310, 198, 220, 220, 220, 3268, 21479, 32357, 1268, 410, 65, 8957, 6177, 410, 65, 8957, 93, 324, 35906, 81, 36529, 512, 81, 310, 93, 29851, 17618, 198, 220, 220, 220, 39319, 304, 62, 2787, 668, 198, 220, 220, 220, 33411, 410, 65, 8957, 93, 85, 6667, 77, 796, 1312, 62, 260, 2781, 78, 12, 298, 2301, 64, 198, 220, 220, 220, 5357, 410, 65, 8957, 93, 1845, 85, 86, 36529, 705, 2149, 4458, 628, 198, 10619, 49273, 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, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_skip_objects DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. METHODS: skip_sadl_generated_objects IMPORTING it_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt ii_log TYPE REF TO zif_abapgit_log OPTIONAL RETURNING VALUE(rt_tadir) TYPE zif_abapgit_definitions=>ty_tadir_tt. PROTECTED SECTION. PRIVATE SECTION. METHODS: has_sadl_superclass IMPORTING is_class TYPE zif_abapgit_definitions=>ty_tadir RETURNING VALUE(rv_return) TYPE abap_bool. ENDCLASS. CLASS ZCL_ABAPGIT_SKIP_OBJECTS IMPLEMENTATION. METHOD has_sadl_superclass. DATA: li_oo_functions TYPE REF TO zif_abapgit_oo_object_fnc, lv_class_name TYPE seoclsname, lv_superclass TYPE seoclsname. li_oo_functions = zcl_abapgit_oo_factory=>make( is_class-object ). lv_class_name = is_class-obj_name. lv_superclass = li_oo_functions->read_superclass( lv_class_name ). IF lv_superclass = 'CL_SADL_GTK_EXPOSURE_MPC'. rv_return = abap_true. ENDIF. ENDMETHOD. METHOD skip_sadl_generated_objects. DATA: ls_tadir_class LIKE LINE OF rt_tadir, ls_tadir LIKE LINE OF rt_tadir, lt_lines_to_delete TYPE zif_abapgit_definitions=>ty_tadir_tt. rt_tadir = it_tadir. LOOP AT it_tadir INTO ls_tadir WHERE object = 'DDLS'. LOOP AT rt_tadir INTO ls_tadir_class WHERE object = 'CLAS' AND obj_name CS ls_tadir-obj_name. IF has_sadl_superclass( ls_tadir_class ) = abap_true. APPEND ls_tadir_class TO lt_lines_to_delete. ENDIF. ENDLOOP. ENDLOOP. DELETE ADJACENT DUPLICATES FROM lt_lines_to_delete. LOOP AT lt_lines_to_delete INTO ls_tadir_class. DELETE TABLE rt_tadir FROM ls_tadir_class. IF ii_log IS BOUND. ii_log->add( iv_msg = |{ ls_tadir_class-obj_name } skipped: generated by SADL| iv_type = 'W' ). ENDIF. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48267, 62, 48205, 5550, 20032, 17941, 44731, 25261, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 14267, 62, 82, 324, 75, 62, 27568, 62, 48205, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 83, 324, 343, 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, 220, 220, 21065, 62, 6404, 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, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 83, 324, 343, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 62, 926, 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, 468, 62, 82, 324, 75, 62, 16668, 4871, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 4871, 220, 220, 220, 220, 220, 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, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 7783, 8, 41876, 450, 499, 62, 30388, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 18831, 4061, 62, 9864, 41, 2943, 4694, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 468, 62, 82, 324, 75, 62, 16668, 4871, 13, 628, 220, 220, 220, 42865, 25, 7649, 62, 2238, 62, 12543, 2733, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 2238, 62, 15252, 62, 69, 10782, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 4871, 62, 3672, 220, 220, 41876, 384, 420, 7278, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 16668, 4871, 220, 220, 41876, 384, 420, 7278, 3672, 13, 628, 198, 220, 220, 220, 7649, 62, 2238, 62, 12543, 2733, 796, 1976, 565, 62, 397, 499, 18300, 62, 2238, 62, 69, 9548, 14804, 15883, 7, 318, 62, 4871, 12, 15252, 6739, 198, 220, 220, 220, 300, 85, 62, 4871, 62, 3672, 796, 318, 62, 4871, 12, 26801, 62, 3672, 13, 198, 220, 220, 220, 300, 85, 62, 16668, 4871, 796, 7649, 62, 2238, 62, 12543, 2733, 3784, 961, 62, 16668, 4871, 7, 300, 85, 62, 4871, 62, 3672, 6739, 198, 220, 220, 220, 16876, 300, 85, 62, 16668, 4871, 796, 705, 5097, 62, 50, 2885, 43, 62, 19555, 42, 62, 6369, 37997, 11335, 62, 44, 5662, 4458, 198, 220, 220, 220, 220, 220, 374, 85, 62, 7783, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 14267, 62, 82, 324, 75, 62, 27568, 62, 48205, 13, 198, 220, 220, 220, 42865, 25, 43979, 62, 83, 324, 343, 62, 4871, 220, 220, 220, 220, 34178, 48920, 3963, 374, 83, 62, 83, 324, 343, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 83, 324, 343, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 34178, 48920, 3963, 374, 83, 62, 83, 324, 343, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 6615, 62, 1462, 62, 33678, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 62, 926, 13, 628, 220, 220, 220, 374, 83, 62, 83, 324, 343, 796, 340, 62, 83, 324, 343, 13, 198, 220, 220, 220, 17579, 3185, 5161, 340, 62, 83, 324, 343, 39319, 43979, 62, 83, 324, 343, 33411, 2134, 796, 705, 16458, 6561, 4458, 198, 220, 220, 220, 220, 220, 17579, 3185, 5161, 374, 83, 62, 83, 324, 343, 39319, 43979, 62, 83, 324, 343, 62, 4871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33411, 2134, 796, 705, 5097, 1921, 6, 5357, 26181, 62, 3672, 9429, 43979, 62, 83, 324, 343, 12, 26801, 62, 3672, 13, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 468, 62, 82, 324, 75, 62, 16668, 4871, 7, 43979, 62, 83, 324, 343, 62, 4871, 1267, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43504, 10619, 43979, 62, 83, 324, 343, 62, 4871, 5390, 300, 83, 62, 6615, 62, 1462, 62, 33678, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 220, 220, 5550, 2538, 9328, 5984, 41, 2246, 3525, 35480, 31484, 29462, 16034, 300, 83, 62, 6615, 62, 1462, 62, 33678, 13, 198, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 6615, 62, 1462, 62, 33678, 39319, 43979, 62, 83, 324, 343, 62, 4871, 13, 198, 220, 220, 220, 220, 220, 5550, 2538, 9328, 43679, 374, 83, 62, 83, 324, 343, 16034, 43979, 62, 83, 324, 343, 62, 4871, 13, 198, 220, 220, 220, 220, 220, 16876, 21065, 62, 6404, 3180, 347, 15919, 13, 198, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 6404, 3784, 2860, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 19662, 796, 930, 90, 43979, 62, 83, 324, 343, 62, 4871, 12, 26801, 62, 3672, 1782, 26684, 25, 7560, 416, 311, 2885, 43, 91, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 4906, 796, 705, 54, 6, 6739, 198, 220, 220, 220, 220, 220, 23578, 5064 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
INTERFACE zif_abapgit_persist_user PUBLIC . TYPES ty_favorites TYPE zif_abapgit_persistence=>ty_repo_keys . METHODS get_changes_only RETURNING VALUE(rv_changes_only) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS get_default_git_user_email RETURNING VALUE(rv_email) TYPE string RAISING zcx_abapgit_exception . METHODS get_default_git_user_name RETURNING VALUE(rv_username) TYPE string RAISING zcx_abapgit_exception . METHODS get_diff_unified RETURNING VALUE(rv_diff_unified) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS get_favorites RETURNING VALUE(rt_favorites) TYPE ty_favorites RAISING zcx_abapgit_exception . METHODS get_hide_files RETURNING VALUE(rv_hide) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS get_repo_git_user_email IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url RETURNING VALUE(rv_email) TYPE string RAISING zcx_abapgit_exception . METHODS get_repo_git_user_name IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url RETURNING VALUE(rv_username) TYPE string RAISING zcx_abapgit_exception . METHODS get_repo_last_change_seen IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url RETURNING VALUE(rv_version) TYPE string RAISING zcx_abapgit_exception . METHODS get_repo_login IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url RETURNING VALUE(rv_login) TYPE string RAISING zcx_abapgit_exception . METHODS get_repo_show RETURNING VALUE(rv_key) TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception . METHODS is_favorite_repo IMPORTING !iv_repo_key TYPE zif_abapgit_persistence=>ty_repo-key RETURNING VALUE(rv_yes) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS set_default_git_user_email IMPORTING !iv_email TYPE string RAISING zcx_abapgit_exception . METHODS set_default_git_user_name IMPORTING !iv_username TYPE string RAISING zcx_abapgit_exception . METHODS set_repo_git_user_email IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url !iv_email TYPE string RAISING zcx_abapgit_exception . METHODS set_repo_git_user_name IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url !iv_username TYPE string RAISING zcx_abapgit_exception . METHODS set_repo_last_change_seen IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url !iv_version TYPE string RAISING zcx_abapgit_exception . METHODS set_repo_login IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url !iv_login TYPE string RAISING zcx_abapgit_exception . METHODS set_repo_show IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception . METHODS toggle_changes_only RETURNING VALUE(rv_changes_only) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS get_order_by RETURNING VALUE(rv_order_by) TYPE string RAISING zcx_abapgit_exception. METHODS set_order_by IMPORTING iv_order_by TYPE string RETURNING VALUE(rv_order_by) TYPE string RAISING zcx_abapgit_exception. METHODS get_order_descending RETURNING VALUE(rv_order_descending) TYPE abap_bool RAISING zcx_abapgit_exception. METHODS set_order_descending IMPORTING iv_order_descending TYPE abap_bool RETURNING VALUE(rv_order_descending) TYPE abap_bool RAISING zcx_abapgit_exception. METHODS get_diff_first RETURNING VALUE(rv_diff_first) TYPE abap_bool RAISING zcx_abapgit_exception. METHODS set_diff_first IMPORTING iv_diff_first TYPE abap_bool RETURNING VALUE(rv_diff_first) TYPE abap_bool RAISING zcx_abapgit_exception. METHODS toggle_diff_unified RETURNING VALUE(rv_diff_unified) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS toggle_favorite IMPORTING !iv_repo_key TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception . METHODS toggle_hide_files RETURNING VALUE(rv_hide) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS get_settings RETURNING VALUE(rs_user_settings) TYPE zif_abapgit_definitions=>ty_s_user_settings RAISING zcx_abapgit_exception. METHODS set_settings IMPORTING is_user_settings TYPE zif_abapgit_definitions=>ty_s_user_settings RAISING zcx_abapgit_exception. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 397, 499, 18300, 62, 19276, 396, 62, 7220, 198, 220, 44731, 764, 628, 220, 24412, 47, 1546, 1259, 62, 69, 5570, 2737, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 62, 13083, 764, 628, 220, 337, 36252, 50, 651, 62, 36653, 62, 8807, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 36653, 62, 8807, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 12286, 62, 18300, 62, 7220, 62, 12888, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 12888, 8, 41876, 4731, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 12286, 62, 18300, 62, 7220, 62, 3672, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 29460, 8, 41876, 4731, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 26069, 62, 403, 1431, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 26069, 62, 403, 1431, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 69, 5570, 2737, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 69, 5570, 2737, 8, 41876, 1259, 62, 69, 5570, 2737, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 24717, 62, 16624, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 24717, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 260, 7501, 62, 18300, 62, 7220, 62, 12888, 198, 220, 220, 220, 30023, 9863, 2751, 198, 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, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 12888, 8, 41876, 4731, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 260, 7501, 62, 18300, 62, 7220, 62, 3672, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 6371, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 29460, 8, 41876, 4731, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 260, 7501, 62, 12957, 62, 3803, 62, 15898, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 6371, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 9641, 8, 41876, 4731, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 260, 7501, 62, 38235, 198, 220, 220, 220, 30023, 9863, 2751, 198, 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, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 38235, 8, 41876, 4731, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 260, 7501, 62, 12860, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 2539, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 318, 62, 35200, 62, 260, 7501, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 260, 7501, 62, 2539, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 8505, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 900, 62, 12286, 62, 18300, 62, 7220, 62, 12888, 198, 220, 220, 220, 30023, 9863 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcx_turtle_problem DEFINITION PUBLIC FINAL CREATE PRIVATE INHERITING FROM cx_no_check. PUBLIC SECTION. CLASS-METHODS: raise IMPORTING text TYPE string. METHODS constructor IMPORTING text TYPE string previous TYPE REF TO cx_root OPTIONAL. PRIVATE SECTION. DATA: text TYPE string. ENDCLASS. CLASS zcx_turtle_problem IMPLEMENTATION. METHOD constructor ##ADT_SUPPRESS_GENERATION. super->constructor( ). me->text = text. me->previous = previous. ENDMETHOD. METHOD raise. RAISE EXCEPTION NEW zcx_turtle_problem( text = text ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 66, 87, 62, 83, 17964, 62, 45573, 5550, 20032, 17941, 198, 220, 44731, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 198, 220, 3268, 16879, 2043, 2751, 16034, 43213, 62, 3919, 62, 9122, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 5298, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 2420, 41876, 4731, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 2180, 41876, 4526, 37, 5390, 43213, 62, 15763, 39852, 2849, 1847, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 2420, 41876, 4731, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 66, 87, 62, 83, 17964, 62, 45573, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 23772, 22492, 2885, 51, 62, 40331, 32761, 62, 35353, 1137, 6234, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 198, 220, 220, 220, 502, 3784, 5239, 796, 2420, 13, 198, 220, 220, 220, 502, 3784, 3866, 1442, 796, 2180, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 5298, 13, 198, 220, 220, 220, 17926, 24352, 7788, 42006, 2849, 12682, 1976, 66, 87, 62, 83, 17964, 62, 45573, 7, 2420, 796, 2420, 6739, 198, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
FUNCTION CONVERSION_EXIT_YDK29_OUTPUT . *"-------------------------------------------------------------------- *"*"Локальный интерфейс: *" IMPORTING *" REFERENCE(INPUT) *" EXPORTING *" REFERENCE(OUTPUT) *"-------------------------------------------------------------------- * see FM YDK_CONVERSION_EXIT_REGISTER PERFORM output USING '29' input CHANGING output. ENDFUNCTION.
[ 42296, 4177, 2849, 7102, 43717, 62, 6369, 2043, 62, 35755, 42, 1959, 62, 2606, 7250, 3843, 764, 198, 9, 1, 10097, 650, 198, 9, 1, 9, 1, 140, 249, 25443, 118, 16142, 30143, 45367, 22177, 45035, 140, 117, 12466, 116, 22177, 20375, 16843, 21169, 141, 226, 16843, 140, 117, 21727, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 1268, 30076, 8, 198, 9, 1, 220, 7788, 15490, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 2606, 7250, 3843, 8, 198, 9, 1, 10097, 650, 198, 9, 766, 18695, 575, 48510, 62, 10943, 43717, 62, 6369, 2043, 62, 31553, 41517, 198, 220, 19878, 21389, 5072, 1294, 2751, 705, 1959, 6, 5128, 5870, 15567, 2751, 5072, 13, 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 ]
*&----------------------------------------------------------------------* *& Report ZSDN_UPG_AQ_TCODE_CONV *& *&----------------------------------------------------------------------* *----------------------------------------------------------------------* * This report converts report transactions following the guidelines * specified in the SAP Note 393160 - SAP Query: Using queries * The selection part of this report has been generated by * ABAP Report Wizard v. 1.0 *----------------------------------------------------------------------* * Report Name: Step 2 - Convert and transport transactions * * Created by: TECHEDGE (Andrea Olivieri) * * Created on: 12.12.2014 at 10:02:57 CET * *----------------------------------------------------------------------* REPORT zsdn_upg_aq_tcode_conv LINE-SIZE 255. * Tables ( To support selection screen ) TABLES: zsdn_upg_aq. * Types TYPES: BEGIN OF ty_target, tcode TYPE zsdn_upg_aq-tcode, pgmna TYPE zsdn_upg_aq-pgmna, wsid TYPE zsdn_upg_aq-wsid, quname TYPE zsdn_upg_aq-quname, bgname TYPE zsdn_upg_aq-bgname, vari TYPE zsdn_upg_aq-vari, client TYPE zsdn_upg_aq-client, conv_done TYPE xfeld, END OF ty_target. TYPES: BEGIN OF upg_aq_ty, upg_aq TYPE zsdn_upg_aq, status TYPE ZSDN_CONV_STATUS, END OF upg_aq_ty. * Internal tables and work areas DATA: it_data TYPE TABLE OF ty_target, wa_data LIKE LINE OF it_data, gs_tstc TYPE tstc. DATA: returned(1), ld_error TYPE sy-subrc. DATA: lt_alv_cnv TYPE TABLE OF upg_aq_ty, ls_alv_cnv LIKE LINE OF lt_alv_cnv. CONSTANTS hex_rep TYPE x VALUE '80'. " Report transaction R CONSTANTS hex_par TYPE x VALUE '02'. " Parametertrans. P *---------------------------------------------* * S E L E C T I O N S C R E E N * *---------------------------------------------* SELECTION-SCREEN: BEGIN OF BLOCK b01 WITH FRAME TITLE title01. SELECT-OPTIONS: so_bgna1 FOR zsdn_upg_aq-bgname. SELECT-OPTIONS: so_pgmna FOR zsdn_upg_aq-pgmna. SELECT-OPTIONS: so_quna1 FOR zsdn_upg_aq-quname. SELECT-OPTIONS: so_tcode FOR zsdn_upg_aq-tcode. SELECT-OPTIONS: so_wsid FOR zsdn_upg_aq-wsid. SELECTION-SCREEN: END OF BLOCK b01. PARAMETER: p_tcode TYPE tstc-tcode OBLIGATORY DEFAULT 'REISSQMAIN'. PARAMETER: ptest AS CHECKBOX DEFAULT abap_true. INITIALIZATION. SELECT SINGLE MAX( ddtext ) FROM dd02t INTO title01 WHERE tabname = 'ZSDN_UPG_AQ' AND ddlanguage = sy-langu. "#EC * %_ptest_%_app_%-text = '@12@ Simulation'. %_so_bgna1_%_app_%-text = 'User Group'. %_so_pgmna_%_app_%-text = 'Program'. %_so_quna1_%_app_%-text = 'Query name'. %_so_tcode_%_app_%-text = 'Customer Transaction Code'. %_so_wsid_%_app_%-text = 'Work area'. %_p_tcode_%_app_%-text = 'Report transaction'. AT SELECTION-SCREEN ON p_tcode. CHECK NOT p_tcode IS INITIAL. SELECT SINGLE * FROM tstc INTO gs_tstc WHERE tcode = p_tcode. IF sy-subrc = 0 AND gs_tstc-cinfo O hex_rep. IF gs_tstc-pgmna <> 'SAP_QUERY_CALL'. "Transaction not allowed for conversion MESSAGE E333(s1) with 'Transaction specified not allowed for conversion'(E01). ENDIF. ELSE. "Transaction unknown or incorrect type MESSAGE E333(s1) with 'Transaction unknown or incorrect type'(E02). ENDIF. *---------------------------------------------* * D A T A S E L E C T I O N * *---------------------------------------------* START-OF-SELECTION. * Step 1: Get Data SELECT a~tcode a~pgmna a~wsid a~quname a~bgname a~vari a~client FROM zsdn_upg_aq AS a INTO TABLE it_data " <-- Attention ! Field sequence ! WHERE a~tcode IN so_tcode AND a~pgmna IN so_pgmna AND a~wsid IN so_wsid AND a~quname IN so_quna1 AND a~bgname IN so_bgna1 AND a~conv_done = abap_false. IF it_data[] IS INITIAL. MESSAGE i333(s1) WITH 'Nothing to do...Bye!'(e01). RETURN. ENDIF. * Step 2 Ask user if he would like to convert all transactions DATA: l_popuptext TYPE char100, l_count TYPE i, l_answer TYPE c, l_cnt_str(10) TYPE c. l_count = lines( it_data ). IF l_count > 1 AND sy-batch = abap_false. l_cnt_str = l_count. CONDENSE l_cnt_str. CONCATENATE 'You have selected for conversion the following number of transactions:'(004) l_cnt_str '. Start conversion Process?'(005) INTO l_popuptext SEPARATED BY space. CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = 'Confirmation Prompt'(006) text_question = l_popuptext default_button = '2' display_cancel_button = abap_false IMPORTING answer = l_answer. IF l_answer <> '1'. RETURN. ENDIF. ENDIF. * Step 3 - Do the transactions conversion (From report to parameters) PERFORM do_conversion USING ptest. perform alv. *&---------------------------------------------------------------------* *& Form DO_CONVERSION *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* * --> p1 text * <-- p2 text *----------------------------------------------------------------------* FORM do_conversion USING iv_test. DATA report TYPE rsvar-report. DATA field_names TYPE STANDARD TABLE OF rsdynpar. DATA l_field_names LIKE LINE OF field_names. DATA tran_langu TYPE sy-langu. DATA: ls_tstc TYPE tstc, ls_tstca TYPE tstca, ls_tstcc TYPE tstcc, ls_tstcp TYPE tstcp. DATA: lt_data TYPE STANDARD TABLE OF zsdn_upg_aq, ls_data TYPE zsdn_upg_aq, lt_tstc TYPE STANDARD TABLE OF tstc, lt_tstca TYPE STANDARD TABLE OF tstca, lt_tstcc TYPE STANDARD TABLE OF tstcc, lt_tstcp TYPE STANDARD TABLE OF tstcp. DATA: request TYPE e070-trkorr, use_korrnum_immediatedly TYPE abap_bool, suppress_dialog TYPE abap_bool. *---* report = gs_tstc-pgmna. LOOP AT it_data INTO wa_data. DATA: l_ta_params LIKE rsparam OCCURS 0 WITH HEADER LINE. CLEAR: ls_tstc, ls_tstcc, ls_tstca, ls_tstcp, ls_data. SELECT SINGLE * FROM tstc INTO ls_tstc WHERE tcode = wa_data-tcode. IF sy-subrc <> 0. CONTINUE. ENDIF. "Transaction already converted? IF ls_tstc-cinfo = hex_par. wa_data-conv_done = abap_true. MOVE-CORRESPONDING wa_data TO ls_data. APPEND ls_data TO lt_data. CONTINUE. ENDIF. "Get original language SELECT SINGLE masterlang FROM tadir INTO tran_langu WHERE pgmid = 'R3TR' AND object = 'TRAN' AND obj_name = ls_tstc-tcode. SELECT SINGLE * FROM tstcc INTO ls_tstcc WHERE tcode = wa_data-tcode. IF sy-subrc <> 0. ls_tstcc-tcode = wa_data-tcode. ENDIF. SELECT SINGLE * FROM tstcp INTO ls_tstcp WHERE tcode = wa_data-tcode. IF sy-subrc <> 0. ls_tstcp-tcode = wa_data-tcode. ENDIF. " 1: TSTC; Switch transaction Type ls_tstc-cinfo = hex_par. "Parameter transaction CLEAR: ls_tstc-pgmna, ls_tstc-dypno. " 2: TSTCC; Other transaction data ls_tstcc-s_win32 = abap_true. " 3: TSTCP; Transaction's Parameters ls_tstcp-param = '/*&4 P_WSID=&3;P_UGROUP=&1;P_QUERY=&2;P_VARI=&5;'. "Query Area IF wa_data-wsid EQ 'G'. REPLACE ALL OCCURRENCES OF '&3' IN ls_tstcp-param WITH 'X'. ELSE. REPLACE ALL OCCURRENCES OF '&3' IN ls_tstcp-param WITH space. ENDIF. "User Group REPLACE ALL OCCURRENCES OF '&1' IN ls_tstcp-param WITH wa_data-bgname. "Query Name REPLACE ALL OCCURRENCES OF '&2' IN ls_tstcp-param WITH wa_data-quname. "Transaction Code REPLACE ALL OCCURRENCES OF '&4' IN ls_tstcp-param WITH p_tcode. "Query variant REPLACE ALL OCCURRENCES OF '&5' IN ls_tstcp-param WITH wa_data-VARI. IF iv_test IS INITIAL. IF request IS NOT INITIAL. * use_korrnum_immediatedly = abap_true. suppress_dialog = abap_true. CALL FUNCTION 'RS_CORR_INSERT' EXPORTING global_lock = abap_true object = ls_tstc-tcode object_class = 'TRAN' master_language = tran_langu korrnum = request suppress_dialog = suppress_dialog * use_korrnum_immediatedly = use_korrnum_immediatedly IMPORTING korrnum = request EXCEPTIONS cancelled = 01 permission_failure = 02 unknown_objectclass = 03. ELSE. CALL FUNCTION 'RS_CORR_INSERT' EXPORTING global_lock = abap_true object = ls_tstc-tcode object_class = 'TRAN' master_language = tran_langu korrnum = request IMPORTING korrnum = request EXCEPTIONS cancelled = 01 permission_failure = 02 unknown_objectclass = 03. ENDIF. IF sy-subrc NE 0. MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. CONTINUE. ELSE. wa_data-conv_done = abap_true. MOVE-CORRESPONDING wa_data TO ls_data. APPEND ls_data TO lt_data. APPEND: ls_tstc TO lt_tstc, ls_tstcc TO lt_tstcc, ls_tstcp TO lt_tstcp. ENDIF. ELSE. wa_data-conv_done = abap_true. MOVE-CORRESPONDING wa_data TO ls_data. APPEND ls_data TO lt_data. APPEND: ls_tstc TO lt_tstc, ls_tstcc TO lt_tstcc, ls_tstcp TO lt_tstcp. ENDIF. ENDLOOP. IF iv_test IS INITIAL. CLEAR: returned, ld_error. CALL FUNCTION 'ZSDN_UPG_AQ_CONV_TCODE' STARTING NEW TASK 'UPG_AQ_CONV' DESTINATION 'NONE' PERFORMING return_conversion ON END OF TASK TABLES it_upg_aq = lt_data it_tstc = lt_tstc it_tstcc = lt_tstcc it_tstcp = lt_tstcp EXCEPTIONS error_happened = 1 OTHERS = 2. WAIT UNTIL returned = 'X'. LOOP AT lt_data INTO ls_data. ls_alv_cnv-upg_aq = ls_data. IF ld_error IS INITIAL. ls_alv_cnv-status = 'Converted'(008). ELSE. ls_alv_cnv-status = 'ERROR'(009). ENDIF. APPEND ls_alv_cnv TO lt_alv_cnv. CLEAR ls_alv_cnv. ENDLOOP. ELSE. "write............... LOOP AT lt_data INTO ls_data. ls_alv_cnv-upg_aq = ls_data. CLEAR ls_tstcp. READ TABLE lt_tstcp INTO ls_tstcp WITH KEY tcode = ls_data-tcode. IF sy-subrc = 0. ls_alv_cnv-status = 'To be converted'(010). ELSE. ls_alv_cnv-status = 'Already Converted; Update Conversion status'(011). ENDIF. APPEND ls_alv_cnv TO lt_alv_cnv. CLEAR ls_alv_cnv. ENDLOOP. ENDIF. ENDFORM. " DO_CONVERSION *&---------------------------------------------------------------------* *& Form RETURN_CONVERSION *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* *----------------------------------------------------------------------* FORM return_conversion USING taskname. CASE taskname. WHEN 'UPG_AQ_CONV' . RECEIVE RESULTS FROM FUNCTION 'ZSDN_UPG_AQ_CONV_TCODE' EXCEPTIONS syst_except = 1 communication_failure = 2 system_failure = 3 error_happened = 4 error = 6. WHEN OTHERS. ENDCASE. ld_error = sy-subrc. returned = 'X'. ENDFORM. " RETURN_conversion *&---------------------------------------------------------------------* *& Form ALV *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* * --> p1 text * <-- p2 text *----------------------------------------------------------------------* form alv . check not lt_alv_cnv is initial. data: gr_table type ref to cl_salv_table, gr_display type ref to cl_salv_display_settings, gr_functions type ref to cl_salv_functions, gr_sorts type ref to cl_salv_sorts, gr_agg type ref to cl_salv_aggregations, l_title type lvc_title. try. * Create ALV table cl_salv_table=>factory( importing r_salv_table = gr_table changing t_table = lt_alv_cnv ). * Set zebra layout gr_display = gr_table->get_display_settings( ). gr_display->set_striped_pattern( cl_salv_display_settings=>true ). * set title l_title = 'CONVERSION of Customer Transation Codes with AQ* generated report'(003). gr_display->set_list_header( l_title ). * Display all standard function gr_functions = gr_table->get_functions( ). gr_functions->set_all( abap_true ). gr_table->display( ). catch cx_salv_msg. write: / 'Exception CX_SALV_MSG'. catch cx_salv_not_found. write: / 'Exception CX_SALV_NOT_FOUND'. catch cx_salv_data_error. write: / 'Exception CX_SALV_DATA_ERROR'. catch cx_salv_existing. write: / 'Exception CX_SALV_EXISTING'. endtry. endform. " ALV
[ 9, 5, 10097, 23031, 9, 198, 9, 5, 6358, 220, 1168, 10305, 45, 62, 52, 6968, 62, 32, 48, 62, 4825, 16820, 62, 10943, 53, 198, 9, 5, 198, 9, 5, 10097, 23031, 9, 198, 9, 10097, 23031, 9, 198, 9, 770, 989, 26161, 989, 8945, 1708, 262, 9949, 198, 9, 7368, 287, 262, 48323, 5740, 5014, 18, 14198, 532, 48323, 43301, 25, 8554, 20743, 198, 9, 383, 6356, 636, 286, 428, 989, 468, 587, 7560, 416, 198, 9, 9564, 2969, 6358, 16884, 410, 13, 352, 13, 15, 198, 9, 10097, 23031, 9, 198, 9, 6358, 6530, 25, 5012, 362, 532, 38240, 290, 4839, 8945, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 9, 15622, 416, 25, 44999, 1961, 8264, 357, 1870, 21468, 40019, 29864, 8, 220, 220, 220, 220, 220, 220, 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, 15622, 319, 25, 1105, 13, 1065, 13, 4967, 379, 838, 25, 2999, 25, 3553, 46632, 220, 220, 220, 220, 220, 220, 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, 2200, 15490, 1976, 21282, 77, 62, 929, 70, 62, 30188, 62, 83, 8189, 62, 42946, 48920, 12, 33489, 14280, 13, 198, 198, 9, 33220, 357, 1675, 1104, 6356, 3159, 1267, 198, 5603, 9148, 1546, 25, 1976, 21282, 77, 62, 929, 70, 62, 30188, 13, 198, 198, 9, 24897, 198, 9936, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 16793, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 256, 8189, 220, 220, 220, 220, 41876, 1976, 21282, 77, 62, 929, 70, 62, 30188, 12, 83, 8189, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 23241, 76, 2616, 220, 220, 220, 220, 41876, 1976, 21282, 77, 62, 929, 70, 62, 30188, 12, 6024, 76, 2616, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 266, 30255, 220, 220, 220, 220, 220, 41876, 1976, 21282, 77, 62, 929, 70, 62, 30188, 12, 18504, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 10662, 403, 480, 220, 220, 220, 41876, 1976, 21282, 77, 62, 929, 70, 62, 30188, 12, 80, 403, 480, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 275, 70, 3672, 220, 220, 220, 41876, 1976, 21282, 77, 62, 929, 70, 62, 30188, 12, 35904, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 5553, 220, 220, 220, 220, 220, 41876, 1976, 21282, 77, 62, 929, 70, 62, 30188, 12, 25641, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 5456, 220, 220, 220, 41876, 1976, 21282, 77, 62, 929, 70, 62, 30188, 12, 16366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 3063, 62, 28060, 41876, 2124, 16265, 11, 198, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 16793, 13, 198, 9936, 47, 1546, 25, 347, 43312, 3963, 510, 70, 62, 30188, 62, 774, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 510, 70, 62, 30188, 220, 220, 220, 220, 41876, 1976, 21282, 77, 62, 929, 70, 62, 30188, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 3722, 220, 220, 220, 220, 41876, 1168, 10305, 45, 62, 10943, 53, 62, 35744, 2937, 11, 198, 220, 220, 220, 220, 220, 220, 23578, 3963, 510, 70, 62, 30188, 62, 774, 13, 198, 9, 18628, 8893, 290, 670, 3006, 198, 26947, 25, 198, 220, 340, 62, 7890, 41876, 43679, 3963, 1259, 62, 16793, 11, 198, 220, 2082, 62, 7890, 34178, 48920, 3963, 340, 62, 7890, 11, 198, 220, 308, 82, 62, 83, 301, 66, 41876, 256, 301, 66, 13, 198, 26947, 25, 4504, 7, 16, 828, 198, 220, 220, 220, 220, 220, 300, 67, 62, 18224, 41876, 827, 12, 7266, 6015, 13, 198, 26947, 25, 300, 83, 62, 282, 85, 62, 31522, 85, 41876, 43679, 3963, 510, 70, 62, 30188, 62, 774, 11, 198, 220, 220, 220, 220, 220, 43979, 62, 282, 85, 62, 31522, 85, 34178, 48920, 3963, 300, 83, 62, 282, 85, 62, 31522, 85, 13, 198, 10943, 2257, 1565, 4694, 220, 17910, 62, 7856, 41876, 2124, 26173, 8924, 705, 1795, 4458, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 6358, 220, 220, 8611, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 371, 198, 10943, 2257, 1565, 4694, 220, 17910, 62, 1845, 41876, 2124, 26173, 8924, 705, 2999, 4458, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 25139, 316, 861, 26084, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 350, 628, 198, 9, 3880, 32501, 9, 198, 9, 220, 220, 220, 220, 220, 311, 412, 406, 412, 327, 309, 314, 440, 399, 220, 220, 311, 327, 371, 412, 412, 399, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 9, 3880, 32501, 9, 198, 198, 46506, 2849, 12, 6173, 2200, 1677, 25, 347, 43312, 3963, 9878, 11290, 275, 486, 13315, 8782, 10067, 37977, 2538, 3670, 486, 13, 198, 46506, 12, 3185, 51, 11053, 25, 523, 62, 35904, 2616, 16, 220, 220, 220, 220, 220, 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, 1976, 21282, 77, 62, 929, 70, 62, 30188, 12, 35904, 3672, 13, 198, 46506, 12, 3185, 51, 11053, 25, 523, 62, 6024, 76, 2616, 220, 220, 220, 220, 220, 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, 1976, 21282, 77, 62, 929, 70, 62, 30188, 12, 6024, 76, 2616, 13, 198, 46506, 12, 3185, 51, 11053, 25, 523, 62, 80, 9613, 16, 220, 220, 220, 220, 220, 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, 1976, 21282, 77, 62, 929 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_abapgit_repo_srv DEFINITION PUBLIC FINAL CREATE PRIVATE . PUBLIC SECTION. INTERFACES zif_abapgit_repo_srv . INTERFACES zif_abapgit_repo_listener . ALIASES get_repo_from_package FOR zif_abapgit_repo_srv~get_repo_from_package . CLASS-METHODS get_instance RETURNING VALUE(ri_srv) TYPE REF TO zif_abapgit_repo_srv . PROTECTED SECTION. PRIVATE SECTION. ALIASES delete FOR zif_abapgit_repo_srv~delete . ALIASES get FOR zif_abapgit_repo_srv~get . ALIASES list FOR zif_abapgit_repo_srv~list . ALIASES validate_package FOR zif_abapgit_repo_srv~validate_package . CLASS-DATA gi_ref TYPE REF TO zif_abapgit_repo_srv . DATA mv_init TYPE abap_bool VALUE abap_false ##NO_TEXT. DATA mt_list TYPE zif_abapgit_repo_srv=>ty_repo_list . METHODS determine_branch_name IMPORTING !iv_name TYPE string !iv_url TYPE string RETURNING VALUE(rv_name) TYPE string RAISING zcx_abapgit_exception . METHODS refresh RAISING zcx_abapgit_exception . METHODS is_sap_object_allowed RETURNING VALUE(rv_allowed) TYPE abap_bool . METHODS instantiate_and_add IMPORTING !is_repo_meta TYPE zif_abapgit_persistence=>ty_repo RETURNING VALUE(ro_repo) TYPE REF TO zcl_abapgit_repo RAISING zcx_abapgit_exception . METHODS add IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo RAISING zcx_abapgit_exception . METHODS reinstantiate_repo IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !is_meta TYPE zif_abapgit_persistence=>ty_repo_xml RAISING zcx_abapgit_exception . METHODS validate_sub_super_packages IMPORTING !iv_package TYPE devclass !it_repos TYPE zif_abapgit_persistence=>ty_repos !iv_ign_subpkg TYPE abap_bool DEFAULT abap_false EXPORTING VALUE(eo_repo) TYPE REF TO zcl_abapgit_repo !ev_reason TYPE string RAISING zcx_abapgit_exception . ENDCLASS. CLASS ZCL_ABAPGIT_REPO_SRV IMPLEMENTATION. METHOD add. DATA: lo_repo LIKE LINE OF mt_list. LOOP AT mt_list INTO lo_repo. IF lo_repo->get_key( ) = io_repo->get_key( ). IF lo_repo = io_repo. RETURN. ENDIF. zcx_abapgit_exception=>raise( 'identical keys' ). ENDIF. ENDLOOP. io_repo->bind_listener( me ). APPEND io_repo TO mt_list. ENDMETHOD. METHOD determine_branch_name. DATA lo_branch_list TYPE REF TO zcl_abapgit_git_branch_list. rv_name = iv_name. IF rv_name IS INITIAL. ASSERT NOT iv_url IS INITIAL. lo_branch_list = zcl_abapgit_git_transport=>branches( iv_url ). rv_name = lo_branch_list->get_head_symref( ). ELSEIF -1 = find( val = rv_name sub = zif_abapgit_definitions=>c_git_branch-heads_prefix ). " Assume short branch name was received rv_name = zif_abapgit_definitions=>c_git_branch-heads_prefix && rv_name. ENDIF. ENDMETHOD. METHOD get_instance. IF gi_ref IS INITIAL. CREATE OBJECT gi_ref TYPE zcl_abapgit_repo_srv. ENDIF. ri_srv = gi_ref. ENDMETHOD. METHOD instantiate_and_add. IF is_repo_meta-offline = abap_false. CREATE OBJECT ro_repo TYPE zcl_abapgit_repo_online EXPORTING is_data = is_repo_meta. ELSE. CREATE OBJECT ro_repo TYPE zcl_abapgit_repo_offline EXPORTING is_data = is_repo_meta. ENDIF. add( ro_repo ). ENDMETHOD. METHOD is_sap_object_allowed. rv_allowed = cl_enh_badi_def_utility=>is_sap_system( ). IF rv_allowed = abap_true. RETURN. ENDIF. rv_allowed = zcl_abapgit_exit=>get_instance( )->allow_sap_objects( ). ENDMETHOD. METHOD refresh. DATA: lt_list TYPE zif_abapgit_persistence=>ty_repos. FIELD-SYMBOLS: <ls_list> LIKE LINE OF lt_list. CLEAR mt_list. lt_list = zcl_abapgit_persist_factory=>get_repo( )->list( ). LOOP AT lt_list ASSIGNING <ls_list>. instantiate_and_add( <ls_list> ). ENDLOOP. mv_init = abap_true. ENDMETHOD. METHOD reinstantiate_repo. DATA lo_repo TYPE REF TO zcl_abapgit_repo. DATA ls_full_meta TYPE zif_abapgit_persistence=>ty_repo. lo_repo = get( iv_key ). DELETE TABLE mt_list FROM lo_repo. ASSERT sy-subrc IS INITIAL. MOVE-CORRESPONDING is_meta TO ls_full_meta. ls_full_meta-key = iv_key. instantiate_and_add( ls_full_meta ). ENDMETHOD. METHOD validate_sub_super_packages. DATA: ls_repo LIKE LINE OF it_repos, li_package TYPE REF TO zif_abapgit_sap_package, lt_packages TYPE zif_abapgit_sap_package=>ty_devclass_tt, lo_repo TYPE REF TO zcl_abapgit_repo. LOOP AT it_repos INTO ls_repo. lo_repo = get( ls_repo-key ). li_package = zcl_abapgit_factory=>get_sap_package( ls_repo-package ). IF li_package->exists( ) = abap_false. " Skip dangling repository CONTINUE. ENDIF. CLEAR lt_packages. IF lo_repo->get_local_settings( )-ignore_subpackages = abap_false. APPEND LINES OF li_package->list_subpackages( ) TO lt_packages. READ TABLE lt_packages TRANSPORTING NO FIELDS WITH KEY table_line = iv_package. IF sy-subrc = 0. eo_repo = lo_repo. ev_reason = |Repository { lo_repo->get_name( ) } already contains { iv_package } |. RETURN. ENDIF. ENDIF. IF iv_ign_subpkg = abap_false. APPEND LINES OF li_package->list_superpackages( ) TO lt_packages. READ TABLE lt_packages TRANSPORTING NO FIELDS WITH KEY table_line = iv_package. IF sy-subrc = 0. eo_repo = lo_repo. ev_reason = |Repository { lo_repo->get_name( ) } already contains subpackage of { iv_package } |. RETURN. ENDIF. ENDIF. ENDLOOP. ENDMETHOD. METHOD zif_abapgit_repo_listener~on_meta_change. DATA li_persistence TYPE REF TO zif_abapgit_persist_repo. li_persistence = zcl_abapgit_persist_factory=>get_repo( ). li_persistence->update_metadata( iv_key = iv_key is_meta = is_meta is_change_mask = is_change_mask ). " Recreate repo instance if type changed " Instances in mt_list are of *_online and *_offline type " If type is changed object should be recreated from the proper class " TODO refactor, e.g. unify repo logic in one class IF is_change_mask-offline = abap_true. reinstantiate_repo( iv_key = iv_key is_meta = is_meta ). ENDIF. ENDMETHOD. METHOD zif_abapgit_repo_srv~delete. zcl_abapgit_persist_factory=>get_repo( )->delete( io_repo->get_key( ) ). " If favorite, remove it IF zcl_abapgit_persistence_user=>get_instance( )->is_favorite_repo( io_repo->get_key( ) ) = abap_true. zcl_abapgit_persistence_user=>get_instance( )->toggle_favorite( io_repo->get_key( ) ). ENDIF. DELETE TABLE mt_list FROM io_repo. ASSERT sy-subrc = 0. ENDMETHOD. METHOD zif_abapgit_repo_srv~get. FIELD-SYMBOLS: <lo_list> LIKE LINE OF mt_list. IF mv_init = abap_false. refresh( ). ENDIF. DO 2 TIMES. " Repo might have been created in another session. Try again after refresh IF sy-index = 2. refresh( ). ENDIF. LOOP AT mt_list ASSIGNING <lo_list>. IF <lo_list>->get_key( ) = iv_key. ro_repo = <lo_list>. RETURN. ENDIF. ENDLOOP. ENDDO. zcx_abapgit_exception=>raise( 'repo not found, get' ). ENDMETHOD. METHOD zif_abapgit_repo_srv~get_repo_from_package. DATA: lt_repos TYPE zif_abapgit_persistence=>ty_repos, lv_name TYPE zif_abapgit_persistence=>ty_local_settings-display_name, lv_owner TYPE zif_abapgit_persistence=>ty_local_settings-display_name. FIELD-SYMBOLS: <ls_repo> LIKE LINE OF lt_repos. " check if package is already in use for a different repository lt_repos = zcl_abapgit_persist_factory=>get_repo( )->list( ). READ TABLE lt_repos WITH KEY package = iv_package ASSIGNING <ls_repo>. IF sy-subrc = 0. eo_repo = get_instance( )->get( <ls_repo>-key ). lv_name = eo_repo->get_name( ). lv_owner = <ls_repo>-created_by. ev_reason = |Package { iv_package } already versioned as { lv_name } by { lv_owner }|. ELSE. " check if package is include as sub-package in a different repo validate_sub_super_packages( EXPORTING iv_package = iv_package it_repos = lt_repos iv_ign_subpkg = iv_ign_subpkg IMPORTING eo_repo = eo_repo ev_reason = ev_reason ). ENDIF. ENDMETHOD. METHOD zif_abapgit_repo_srv~is_repo_installed. DATA: lt_repo TYPE zif_abapgit_repo_srv=>ty_repo_list, lo_repo TYPE REF TO zcl_abapgit_repo, lv_url TYPE string, lv_package TYPE devclass, lo_repo_online TYPE REF TO zcl_abapgit_repo_online, lv_err TYPE string. lt_repo = list( ). LOOP AT lt_repo INTO lo_repo. CHECK lo_repo->is_offline( ) = abap_false. lo_repo_online ?= lo_repo. lv_url = lo_repo_online->get_url( ). lv_package = lo_repo_online->get_package( ). CHECK to_upper( lv_url ) = to_upper( iv_url ). " Validate bindings "TODO refactor: move this message out of this method IF iv_target_package IS NOT INITIAL AND iv_target_package <> lv_package. lv_err = |Installation to package { lv_package } detected. | && |Cancelling installation|. zcx_abapgit_exception=>raise( lv_err ). ENDIF. rv_installed = abap_true. EXIT. ENDLOOP. ENDMETHOD. METHOD zif_abapgit_repo_srv~list. IF mv_init = abap_false. refresh( ). ENDIF. rt_list = mt_list. ENDMETHOD. METHOD zif_abapgit_repo_srv~new_offline. DATA: ls_repo TYPE zif_abapgit_persistence=>ty_repo, lv_key TYPE zif_abapgit_persistence=>ty_repo-key, lo_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit. IF zcl_abapgit_auth=>is_allowed( zif_abapgit_auth=>gc_authorization-create_repo ) = abap_false. zcx_abapgit_exception=>raise( 'Not authorized' ). ENDIF. validate_package( iv_package ). IF iv_url IS INITIAL. zcx_abapgit_exception=>raise( 'Missing display name for repo' ). ENDIF. lo_dot_abapgit = zcl_abapgit_dot_abapgit=>build_default( ). lo_dot_abapgit->set_folder_logic( iv_folder_logic ). lv_key = zcl_abapgit_persist_factory=>get_repo( )->add( iv_url = iv_url iv_branch_name = '' iv_package = iv_package iv_offline = abap_true is_dot_abapgit = lo_dot_abapgit->get_data( ) ). TRY. ls_repo = zcl_abapgit_persist_factory=>get_repo( )->read( lv_key ). CATCH zcx_abapgit_not_found. zcx_abapgit_exception=>raise( 'new_offline not found' ). ENDTRY. ro_repo ?= instantiate_and_add( ls_repo ). ls_repo-local_settings-serialize_master_lang_only = iv_master_lang_only. ro_repo->set_local_settings( ls_repo-local_settings ). ENDMETHOD. METHOD zif_abapgit_repo_srv~new_online. DATA: ls_repo TYPE zif_abapgit_persistence=>ty_repo, lv_branch_name LIKE iv_branch_name, lv_key TYPE zif_abapgit_persistence=>ty_repo-key, ls_dot_abapgit TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit, lv_url TYPE string. ASSERT NOT iv_url IS INITIAL AND NOT iv_package IS INITIAL. lv_url = condense( iv_url ). IF zcl_abapgit_auth=>is_allowed( zif_abapgit_auth=>gc_authorization-create_repo ) = abap_false. zcx_abapgit_exception=>raise( 'Not authorized' ). ENDIF. validate_package( iv_package = iv_package iv_ign_subpkg = iv_ign_subpkg ). zcl_abapgit_url=>validate( lv_url ). lv_branch_name = determine_branch_name( iv_name = iv_branch_name iv_url = lv_url ). ls_dot_abapgit = zcl_abapgit_dot_abapgit=>build_default( )->get_data( ). ls_dot_abapgit-folder_logic = iv_folder_logic. lv_key = zcl_abapgit_persist_factory=>get_repo( )->add( iv_url = lv_url iv_branch_name = lv_branch_name " local ! iv_display_name = iv_display_name iv_package = iv_package iv_offline = abap_false is_dot_abapgit = ls_dot_abapgit ). TRY. ls_repo = zcl_abapgit_persist_factory=>get_repo( )->read( lv_key ). CATCH zcx_abapgit_not_found. zcx_abapgit_exception=>raise( 'new_online not found' ). ENDTRY. ro_repo ?= instantiate_and_add( ls_repo ). IF ls_repo-local_settings-ignore_subpackages <> iv_ign_subpkg. ls_repo-local_settings-ignore_subpackages = iv_ign_subpkg. ENDIF. ls_repo-local_settings-serialize_master_lang_only = iv_master_lang_only. ro_repo->set_local_settings( ls_repo-local_settings ). ro_repo->refresh( ). ro_repo->find_remote_dot_abapgit( ). ENDMETHOD. METHOD zif_abapgit_repo_srv~purge. * uninstalls all objects, no UI or popups in this class * todo, this should be a method on the repo instead? DATA: lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt. CREATE OBJECT ri_log TYPE zcl_abapgit_log. ri_log->set_title( 'Uninstall Log' ). IF io_repo->get_local_settings( )-write_protected = abap_true. zcx_abapgit_exception=>raise( 'Cannot purge. Local code is write-protected by repo config' ). ELSEIF zcl_abapgit_auth=>is_allowed( zif_abapgit_auth=>gc_authorization-uninstall ) = abap_false. zcx_abapgit_exception=>raise( 'Not authorized' ). ENDIF. lt_tadir = zcl_abapgit_factory=>get_tadir( )->read( io_repo->get_package( ) ). zcl_abapgit_objects=>delete( it_tadir = lt_tadir is_checks = is_checks ii_log = ri_log ). delete( io_repo ). ENDMETHOD. METHOD zif_abapgit_repo_srv~validate_package. DATA: lv_as4user TYPE tdevc-as4user, lo_repo TYPE REF TO zcl_abapgit_repo, lv_reason TYPE string. IF iv_package IS INITIAL. zcx_abapgit_exception=>raise( 'add, package empty' ). ENDIF. IF iv_package = '$TMP'. zcx_abapgit_exception=>raise( 'not possible to use $TMP, create new (local) package' ). ENDIF. SELECT SINGLE as4user FROM tdevc INTO lv_as4user WHERE devclass = iv_package. "#EC CI_GENBUFF IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Package { iv_package } not found| ). ENDIF. IF is_sap_object_allowed( ) = abap_false AND lv_as4user = 'SAP'. zcx_abapgit_exception=>raise( |Package { iv_package } not allowed, responsible user = 'SAP'| ). ENDIF. IF iv_chk_exists = abap_true. get_repo_from_package( EXPORTING iv_package = iv_package iv_ign_subpkg = iv_ign_subpkg IMPORTING eo_repo = lo_repo ev_reason = lv_reason ). IF lo_repo IS BOUND. zcx_abapgit_exception=>raise( lv_reason ). ENDIF. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 27891, 85, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 260, 7501, 62, 27891, 85, 764, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 260, 7501, 62, 4868, 877, 764, 628, 220, 220, 220, 8355, 43429, 1546, 651, 62, 260, 7501, 62, 6738, 62, 26495, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 260, 7501, 62, 27891, 85, 93, 1136, 62, 260, 7501, 62, 6738, 62, 26495, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 651, 62, 39098, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 27891, 85, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 260, 7501, 62, 27891, 85, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 8355, 43429, 1546, 12233, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 260, 7501, 62, 27891, 85, 93, 33678, 764, 198, 220, 220, 220, 8355, 43429, 1546, 651, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 260, 7501, 62, 27891, 85, 93, 1136, 764, 198, 220, 220, 220, 8355, 43429, 1546, 1351, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 260, 7501, 62, 27891, 85, 93, 4868, 764, 198, 220, 220, 220, 8355, 43429, 1546, 26571, 62, 26495, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 260, 7501, 62, 27891, 85, 93, 12102, 378, 62, 26495, 764, 628, 220, 220, 220, 42715, 12, 26947, 308, 72, 62, 5420, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 260, 7501, 62, 27891, 85, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 15003, 41876, 450, 499, 62, 30388, 26173, 8924, 450, 499, 62, 9562, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 42865, 45079, 62, 4868, 41876, 1976, 361, 62, 397, 499, 18300, 62, 260, 7501, 62, 27891, 85, 14804, 774, 62, 260, 7501, 62, 4868, 764, 628, 220, 220, 220, 337, 36252, 50, 5004, 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, 3672, 220, 220, 220, 220, 220, 220, 41876, 4731, 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, 3672, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 14976, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 318, 62, 82, 499, 62, 15252, 62, 40845, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 40845, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 9113, 9386, 62, 392, 62, 2860, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 260, 7501, 62, 28961, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 260, 7501, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 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, 751, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 260, 7501, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 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, 6865, 18797, 9386, 62, 260, 7501, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 28961, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 62, 19875, 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, 26571, 62, 7266, 62, 16668, 62, 43789, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26495, 220, 220, 220, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 260, 1930, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 1930, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 570, 62, 7266, 35339, 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, 26173, 8924, 7, 68, 78, 62, 260, 7501, 8, 41876, 4526, 37, 5390 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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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_uitb_alv_data_descr DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS describe_table IMPORTING io_columns TYPE REF TO zcl_uitb_alv_columns ir_table TYPE REF TO data . CLASS-METHODS read_structdescr IMPORTING io_structdescr TYPE REF TO cl_abap_structdescr iv_language TYPE langu DEFAULT sy-langu RETURNING VALUE(rt_dfies) TYPE ddfields . PROTECTED SECTION. PRIVATE SECTION. CLASS-METHODS fill_column IMPORTING io_columns TYPE REF TO zcl_uitb_alv_columns it_dfies TYPE ddfields . CLASS-METHODS transform CHANGING !ct_dfies TYPE ddfields OPTIONAL !cs_dfies TYPE dfies OPTIONAL . ENDCLASS. CLASS zcl_uitb_alv_data_descr IMPLEMENTATION. METHOD describe_table . DATA: lo_tabdescr TYPE REF TO cl_abap_structdescr, lt_dfies TYPE ddfields, lr_data TYPE REF TO data. FIELD-SYMBOLS: <lt_table> TYPE STANDARD TABLE. io_columns->zif_uitb_list~clear( ). ASSIGN ir_table->* TO <lt_table>. CREATE DATA lr_data LIKE LINE OF <lt_table>. io_columns->mr_table_structure = lr_data. lo_tabdescr ?= cl_abap_structdescr=>describe_by_data_ref( lr_data ). lt_dfies = read_structdescr( io_structdescr = lo_tabdescr iv_language = io_columns->get_description_language( ) ). fill_column( it_dfies = lt_dfies io_columns = io_columns ). ENDMETHOD. METHOD fill_column. DATA: ls_dfies TYPE dfies. LOOP AT it_dfies INTO ls_dfies. DATA(ls_fieldcat) = VALUE lvc_s_fcat( fieldname = ls_dfies-fieldname ref_table = ls_dfies-reftable ref_field = ls_dfies-reffield rollname = ls_dfies-rollname dd_roll = ls_dfies-rollname datatype = ls_dfies-datatype inttype = ls_dfies-inttype intlen = ls_dfies-leng dd_outlen = ls_dfies-outputlen no_sign = COND #( WHEN ls_dfies-sign = abap_false THEN abap_true ) key = ls_dfies-keyflag lowercase = ls_dfies-lowercase reptext = ls_dfies-reptext scrtext_s = ls_dfies-scrtext_s scrtext_m = ls_dfies-scrtext_m scrtext_l = ls_dfies-scrtext_l domname = ls_dfies-domname f4availabl = ls_dfies-f4availabl decimals = ls_dfies-decimals convexit = ls_dfies-convexit ). io_columns->add_column( is_data = ls_fieldcat ). ENDLOOP. ENDMETHOD. METHOD read_structdescr. DATA: ls_component TYPE abap_componentdescr, lo_struct TYPE REF TO cl_abap_structdescr, lo_element TYPE REF TO cl_abap_elemdescr, lt_sub_dfies TYPE ddfields, ls_dfies TYPE dfies. IF io_structdescr->is_ddic_type( ) = abap_true. rt_dfies = io_structdescr->get_ddic_field_list( p_langu = iv_language ). transform( CHANGING ct_dfies = rt_dfies ). ELSE. DATA(lt_components) = io_structdescr->get_components( ). LOOP AT lt_components INTO ls_component. IF ls_component-as_include = abap_true. lo_struct ?= ls_component-type. lt_sub_dfies = read_structdescr( lo_struct ). LOOP AT lt_sub_dfies INTO ls_dfies. ls_dfies-fieldname = |{ ls_dfies-fieldname }{ ls_component-suffix }|. IF NOT ls_dfies-precfield IS INITIAL. ls_dfies-precfield = |{ ls_dfies-precfield }{ ls_component-suffix }|. ENDIF. APPEND ls_dfies TO rt_dfies. ENDLOOP. ELSE. CASE ls_component-type->kind. WHEN 'E'. lo_element ?= ls_component-type. IF lo_element->is_ddic_type( ) = abap_true. ls_dfies = lo_element->get_ddic_field( sy-langu ). transform( CHANGING cs_dfies = ls_dfies ). ls_dfies-fieldname = ls_component-name. APPEND ls_dfies TO rt_dfies. ELSE. CLEAR ls_dfies. ls_dfies-fieldname = ls_component-name. ls_dfies-inttype = lo_element->type_kind. ls_dfies-leng = lo_element->length. ls_dfies-decimals = lo_element->decimals. ls_dfies-convexit = lo_element->edit_mask. ls_dfies-outputlen = lo_element->output_length. ls_dfies-sign = 'X'. APPEND ls_dfies TO rt_dfies. ENDIF. WHEN 'S'. CONTINUE. lo_struct ?= ls_component-type. lt_sub_dfies = read_structdescr( lo_struct ). LOOP AT lt_sub_dfies INTO ls_dfies. ls_dfies-fieldname = |{ ls_component-name }-{ ls_dfies-fieldname }|. ls_dfies-precfield = |{ ls_component-name }-{ ls_dfies-precfield }|. IF NOT ls_dfies-precfield IS INITIAL. ls_dfies-precfield = |{ ls_dfies-precfield }{ ls_component-suffix }|. ENDIF. APPEND ls_dfies TO rt_dfies. ENDLOOP. ENDCASE. ENDIF. ENDLOOP. ENDIF. ENDMETHOD. METHOD transform. IF cs_dfies-tabname EQ cs_dfies-rollname OR cs_dfies-tabname EQ cs_dfies-domname. CLEAR cs_dfies-tabname. ENDIF. cs_dfies-reftable = cs_dfies-tabname. cs_dfies-reffield = cs_dfies-fieldname. CLEAR cs_dfies-precfield. LOOP AT ct_dfies ASSIGNING FIELD-SYMBOL(<ls_dfies>). CLEAR <ls_dfies>-precfield. IF <ls_dfies>-datatype = 'CURR' OR <ls_dfies>-datatype = 'QUAN'. IF line_exists( ct_dfies[ fieldname = <ls_dfies>-reffield ] ). <ls_dfies>-precfield = <ls_dfies>-reffield. ENDIF. ENDIF. <ls_dfies>-reftable = <ls_dfies>-tabname. <ls_dfies>-reffield = <ls_dfies>-fieldname. ENDLOOP. DELETE ct_dfies WHERE datatype = 'NODE'. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 5013, 65, 62, 282, 85, 62, 7890, 62, 20147, 81, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 6901, 62, 11487, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 28665, 82, 41876, 4526, 37, 5390, 1976, 565, 62, 5013, 65, 62, 282, 85, 62, 28665, 82, 198, 220, 220, 220, 220, 220, 220, 220, 4173, 62, 11487, 220, 220, 41876, 4526, 37, 5390, 1366, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 1100, 62, 7249, 20147, 81, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 7249, 20147, 81, 220, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 7249, 20147, 81, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 220, 220, 220, 220, 41876, 2786, 5550, 38865, 827, 12, 75, 2303, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 7568, 444, 8, 41876, 49427, 25747, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 6070, 62, 28665, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 28665, 82, 41876, 4526, 37, 5390, 1976, 565, 62, 5013, 65, 62, 282, 85, 62, 28665, 82, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 7568, 444, 220, 220, 41876, 49427, 25747, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 6121, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 7568, 444, 41876, 49427, 25747, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 6359, 62, 7568, 444, 41876, 47764, 444, 39852, 2849, 1847, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 5013, 65, 62, 282, 85, 62, 7890, 62, 20147, 81, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 6901, 62, 11487, 764, 628, 220, 220, 220, 42865, 25, 2376, 62, 8658, 20147, 81, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 7249, 20147, 81, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 7568, 444, 220, 220, 220, 41876, 49427, 25747, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 81, 62, 7890, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1366, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 2528, 62, 11487, 29, 41876, 49053, 9795, 43679, 13, 628, 220, 220, 220, 33245, 62, 28665, 82, 3784, 89, 361, 62, 5013, 65, 62, 4868, 93, 20063, 7, 6739, 628, 220, 220, 220, 24994, 16284, 4173, 62, 11487, 3784, 9, 5390, 1279, 2528, 62, 11487, 28401, 198, 220, 220, 220, 29244, 6158, 42865, 300, 81, 62, 7890, 34178, 48920, 3963, 1279, 2528, 62, 11487, 28401, 198, 220, 220, 220, 33245, 62, 28665, 82, 3784, 43395, 62, 11487, 62, 301, 5620, 796, 300, 81, 62, 7890, 13, 628, 220, 220, 220, 2376, 62, 8658, 20147, 81, 5633, 28, 537, 62, 397, 499, 62, 7249, 20147, 81, 14804, 20147, 4892, 62, 1525, 62, 7890, 62, 5420, 7, 300, 81, 62, 7890, 6739, 628, 220, 220, 220, 300, 83, 62, 7568, 444, 796, 1100, 62, 7249, 20147, 81, 7, 198, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 7249, 20147, 81, 796, 2376, 62, 8658, 20147, 81, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 220, 220, 220, 796, 33245, 62, 28665, 82, 3784, 1136, 62, 11213, 62, 16129, 7, 1267, 198, 220, 220, 220, 6739, 628, 220, 220, 220, 6070, 62, 28665, 7, 340, 62, 7568, 444, 220, 220, 796, 300, 83, 62, 7568, 444, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 28665, 82, 796, 33245, 62, 28665, 82, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 6070, 62, 28665, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 7568, 444, 220, 220, 220, 220, 220, 220, 41876, 47764, 444, 13, 628, 220, 220, 220, 17579, 3185, 5161, 340, 62, 7568, 444, 39319, 43979, 62, 7568, 444, 13, 198, 220, 220, 220, 220, 220, 42865, 7, 7278, 62, 3245, 9246, 8, 796, 26173, 8924, 300, 28435, 62, 82, 62, 69, 9246, 7, 198, 220, 220, 220, 220, 220, 220, 220, 2214, 3672, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 7568, 444, 12, 3245, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 1006, 62, 11487, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 7568, 444, 12, 260, 701, 540, 198, 220, 220, 220, 220, 220, 220, 220, 1006, 62, 3245, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 7568, 444, 12, 260, 31374, 198, 220, 220, 220, 220, 220, 220, 220, 4836, 3672, 220, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 7568, 444, 12, 2487, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 49427, 62, 2487, 220, 220, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 7568, 444, 12, 2487, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 4818, 265, 2981, 220, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 7568, 444, 12, 19608, 265, 2981, 198, 220, 220, 220, 220, 220, 220, 220, 493, 4906, 220, 220, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 7568, 444, 12, 600, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 493, 11925, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 7568, 444, 12, 75, 1516, 198, 220, 220, 220, 220, 220, 220, 220, 49427, 62, 448, 11925, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 7568, 444, 12, 22915, 11925, 198, 220, 220, 220, 220, 220, 220, 220, 645, 62, 12683, 220, 220, 220, 220, 220, 220, 220, 220, 796, 7102, 35, 1303, 7, 42099, 43979, 62, 7568 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_abapgit_gui_page_sett_bckg DEFINITION PUBLIC INHERITING FROM zcl_abapgit_gui_component FINAL CREATE PRIVATE . PUBLIC SECTION. INTERFACES zif_abapgit_gui_event_handler . INTERFACES zif_abapgit_gui_renderable . CLASS-METHODS create IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo RETURNING VALUE(ri_page) TYPE REF TO zif_abapgit_gui_renderable RAISING zcx_abapgit_exception . METHODS constructor IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo RAISING zcx_abapgit_exception . PROTECTED SECTION. PRIVATE SECTION. CONSTANTS: BEGIN OF c_id, mode_selection TYPE string VALUE 'mode_selection', method TYPE string VALUE 'method', authentication TYPE string VALUE 'authentication', username TYPE string VALUE 'username', password TYPE string VALUE 'password', mode_settings TYPE string VALUE 'mode_settings', settings TYPE string VALUE 'settings', END OF c_id . CONSTANTS: BEGIN OF c_event, run_now TYPE string VALUE 'run_now', save TYPE string VALUE 'save', END OF c_event . DATA mo_form TYPE REF TO zcl_abapgit_html_form . DATA mo_form_data TYPE REF TO zcl_abapgit_string_map . DATA mo_form_util TYPE REF TO zcl_abapgit_html_form_utils . DATA mo_repo TYPE REF TO zcl_abapgit_repo . DATA mv_settings_count TYPE i . METHODS get_form_schema RETURNING VALUE(ro_form) TYPE REF TO zcl_abapgit_html_form RAISING zcx_abapgit_exception . METHODS read_settings RAISING zcx_abapgit_exception . METHODS read_persist RETURNING VALUE(rs_persist) TYPE zcl_abapgit_persist_background=>ty_background RAISING zcx_abapgit_exception . METHODS save_settings RAISING zcx_abapgit_exception . ENDCLASS. CLASS zcl_abapgit_gui_page_sett_bckg IMPLEMENTATION. METHOD constructor. super->constructor( ). mo_form_data = NEW #( ). mo_repo = io_repo. mo_form = get_form_schema( ). mo_form_util = zcl_abapgit_html_form_utils=>create( mo_form ). read_settings( ). ENDMETHOD. METHOD create. DATA lo_component TYPE REF TO zcl_abapgit_gui_page_sett_bckg. lo_component = NEW #( io_repo = io_repo ). ri_page = zcl_abapgit_gui_page_hoc=>create( iv_page_title = 'Background Mode' io_page_menu = zcl_abapgit_gui_chunk_lib=>settings_repo_toolbar( iv_key = io_repo->get_key( ) iv_act = zif_abapgit_definitions=>c_action-repo_background ) ii_child_component = lo_component ). ENDMETHOD. METHOD get_form_schema. DATA: lt_methods TYPE zcl_abapgit_background=>ty_methods, ls_method LIKE LINE OF lt_methods, lv_hint TYPE string. lt_methods = zcl_abapgit_background=>list_methods( ). ro_form = zcl_abapgit_html_form=>create( iv_form_id = 'repo-background-form' iv_help_page = 'https://docs.abapgit.org/settings-background-mode.html' ). ro_form->start_group( iv_name = c_id-mode_selection iv_label = 'Mode' )->radio( iv_name = c_id-method iv_default_value = '' iv_label = 'Selection' iv_hint = 'Define the action that will be executed in background mode' )->option( iv_label = 'Do Nothing' iv_value = '' ). LOOP AT lt_methods INTO ls_method. ro_form->option( iv_label = ls_method-description iv_value = ls_method-class ). ENDLOOP. ro_form->table( iv_name = c_id-settings iv_hint = 'Settings required for selected background action' iv_label = 'Additional Settings' )->column( iv_label = 'Key' iv_width = '50%' iv_readonly = abap_true )->column( iv_label = 'Value' iv_width = '50%' ). lv_hint = 'Password will be saved in clear text!'. ro_form->start_group( iv_name = c_id-authentication iv_label = 'HTTP Authentication (Optional)' iv_hint = lv_hint )->text( iv_name = c_id-username iv_label = 'Username' iv_hint = lv_hint )->text( iv_name = c_id-password iv_label = 'Password' iv_hint = lv_hint iv_placeholder = lv_hint ). ro_form->command( iv_label = 'Save Settings' iv_cmd_type = zif_abapgit_html_form=>c_cmd_type-input_main iv_action = c_event-save )->command( iv_label = 'Run Background Logic' iv_action = zif_abapgit_definitions=>c_action-go_background_run )->command( iv_label = 'Back' iv_action = zif_abapgit_definitions=>c_action-go_back ). ENDMETHOD. METHOD read_persist. DATA lo_per TYPE REF TO zcl_abapgit_persist_background. lo_per = NEW #( ). TRY. rs_persist = lo_per->get_by_key( mo_repo->get_key( ) ). CATCH zcx_abapgit_not_found. CLEAR rs_persist. ENDTRY. ENDMETHOD. METHOD read_settings. DATA: ls_per TYPE zcl_abapgit_persist_background=>ty_background, lv_row TYPE i, lv_val TYPE string, lt_settings LIKE ls_per-settings, ls_settings LIKE LINE OF ls_per-settings. ls_per = read_persist( ). " Mode Selection mo_form_data->set( iv_key = c_id-method iv_val = ls_per-method ). " Mode Settings IF ls_per-method IS NOT INITIAL. lt_settings = ls_per-settings. " skip invalid values, from old background logic IF ls_per-method <> 'push' AND ls_per-method <> 'pull' AND ls_per-method <> 'nothing'. CALL METHOD (ls_per-method)=>zif_abapgit_background~get_settings CHANGING ct_settings = lt_settings. ENDIF. LOOP AT lt_settings INTO ls_settings. lv_row = lv_row + 1. DO 3 TIMES. CASE sy-index. WHEN 1. lv_val = ls_settings-key. WHEN 2. lv_val = ls_settings-value. ENDCASE. mo_form_data->set( iv_key = |{ c_id-settings }-{ lv_row }-{ sy-index }| iv_val = lv_val ). ENDDO. ENDLOOP. ENDIF. mv_settings_count = lv_row. mo_form_data->set( iv_key = |{ c_id-settings }-{ zif_abapgit_html_form=>c_rows }| iv_val = |{ mv_settings_count }| ). " Authentication mo_form_data->set( iv_key = c_id-username iv_val = ls_per-username ). mo_form_data->set( iv_key = c_id-password iv_val = ls_per-password ). " Set for is_dirty check mo_form_util->set_data( mo_form_data ). ENDMETHOD. METHOD save_settings. DATA: lo_persistence TYPE REF TO zcl_abapgit_persist_background, ls_per TYPE zcl_abapgit_persist_background=>ty_background, lt_settings LIKE ls_per-settings. FIELD-SYMBOLS: <ls_settings> LIKE LINE OF ls_per-settings. ls_per-key = mo_repo->get_key( ). " Mode Selection ls_per-method = mo_form_data->get( c_id-method ). " Mode Settings IF ls_per-method IS NOT INITIAL. lt_settings = ls_per-settings. " skip invalid values, from old background logic IF ls_per-method <> 'push' AND ls_per-method <> 'pull' AND ls_per-method <> 'nothing'. CALL METHOD (ls_per-method)=>zif_abapgit_background~get_settings CHANGING ct_settings = lt_settings. ENDIF. LOOP AT lt_settings ASSIGNING <ls_settings>. <ls_settings>-value = mo_form_data->get( |{ c_id-settings }-{ sy-tabix }-2| ). ENDLOOP. ls_per-settings = lt_settings. ENDIF. " Authentication ls_per-username = mo_form_data->get( c_id-username ). ls_per-password = mo_form_data->get( c_id-password ). lo_persistence = NEW #( ). IF ls_per-method IS INITIAL. lo_persistence->delete( ls_per-key ). ELSE. lo_persistence->modify( ls_per ). ENDIF. COMMIT WORK AND WAIT. MESSAGE 'Settings succesfully saved' TYPE 'S'. read_settings( ). ENDMETHOD. METHOD zif_abapgit_gui_event_handler~on_event. mo_form_data = mo_form_util->normalize( ii_event->form_data( ) ). CASE ii_event->mv_action. WHEN zif_abapgit_definitions=>c_action-go_back. rs_handled-state = mo_form_util->exit( mo_form_data ). WHEN c_event-save. save_settings( ). rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render. ENDCASE. ENDMETHOD. METHOD zif_abapgit_gui_renderable~render. gui_services( )->register_event_handler( me ). read_settings( ). ri_html = NEW zcl_abapgit_html( ). ri_html->add( `<div class="repo">` ). ri_html->add( zcl_abapgit_gui_chunk_lib=>render_repo_top( io_repo = mo_repo iv_show_commit = abap_false iv_interactive_branch = abap_true ) ). ri_html->add( mo_form->render( iv_form_class = 'w800px' io_values = mo_form_data ) ). ri_html->add( `</div>` ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 17744, 62, 65, 694, 70, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 42895, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 15596, 62, 30281, 764, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 13287, 540, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 2251, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 260, 7501, 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, 380, 62, 7700, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 13287, 540, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 260, 7501, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 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, 48006, 9782, 1961, 44513, 13, 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, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4235, 62, 49283, 41876, 4731, 26173, 8924, 705, 14171, 62, 49283, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 2446, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 24396, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 18239, 41876, 4731, 26173, 8924, 705, 41299, 3299, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 20579, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 29460, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 9206, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 28712, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 4235, 62, 33692, 220, 41876, 4731, 26173, 8924, 705, 14171, 62, 33692, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 6460, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 33692, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 312, 764, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 15596, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1057, 62, 2197, 41876, 4731, 26173, 8924, 705, 5143, 62, 2197, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 3613, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 21928, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 15596, 764, 198, 220, 220, 220, 42865, 6941, 62, 687, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 687, 764, 198, 220, 220, 220, 42865, 6941, 62, 687, 62, 7890, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 8841, 62, 8899, 764, 198, 220, 220, 220, 42865, 6941, 62, 687, 62, 22602, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 687, 62, 26791, 764, 198, 220, 220, 220, 42865, 6941, 62, 260, 7501, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 33692, 62, 9127, 41876, 1312, 764, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 687, 62, 15952, 2611, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 687, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 687, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 1100, 62, 33692, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 1100, 62, 19276, 396, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 19276, 396, 8, 41876, 1976, 565, 62, 397, 499, 18300, 62, 19276, 396, 62, 25249, 14804, 774, 62, 25249, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 3613, 62, 33692, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 17744, 62, 65, 694, 70, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 198, 220, 220, 220, 6941, 62, 687, 62, 7890, 796, 12682, 1303, 7, 6739, 198, 220, 220, 220, 6941, 62, 260, 7501, 796, 33245, 62, 260, 7501, 13, 198, 220, 220, 220, 6941, 62, 687, 796, 651, 62, 687, 62, 15952, 2611, 7, 6739, 198, 220, 220, 220, 6941, 62, 687, 62, 22602, 796, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 687, 62, 26791, 14804, 17953, 7, 6941, 62, 687, 6739, 628, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
"! <p class="shorttext synchronized" lang="en">Serializable RTTI class</p> CLASS zcl_srtti_classdescr DEFINITION PUBLIC INHERITING FROM zcl_srtti_objectdescr CREATE PUBLIC . PUBLIC SECTION. DATA class_kind LIKE cl_abap_classdescr=>class_kind . DATA create_visibility LIKE cl_abap_classdescr=>create_visibility . METHODS constructor IMPORTING !rtti TYPE REF TO cl_abap_classdescr. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_srtti_classdescr IMPLEMENTATION. METHOD constructor. super->constructor( rtti ). class_kind = rtti->class_kind. create_visibility = rtti->create_visibility. ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 32634, 13821, 11923, 25621, 1398, 3556, 79, 29, 198, 31631, 1976, 565, 62, 27891, 35671, 62, 4871, 20147, 81, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 27891, 35671, 62, 15252, 20147, 81, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 42865, 1398, 62, 11031, 34178, 537, 62, 397, 499, 62, 4871, 20147, 81, 14804, 4871, 62, 11031, 764, 198, 220, 220, 220, 42865, 2251, 62, 4703, 2247, 34178, 537, 62, 397, 499, 62, 4871, 20147, 81, 14804, 17953, 62, 4703, 2247, 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, 81, 35671, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 4871, 20147, 81, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 27891, 35671, 62, 4871, 20147, 81, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 374, 35671, 6739, 198, 220, 220, 220, 1398, 62, 11031, 220, 220, 220, 220, 220, 220, 220, 796, 374, 35671, 3784, 4871, 62, 11031, 13, 198, 220, 220, 220, 2251, 62, 4703, 2247, 796, 374, 35671, 3784, 17953, 62, 4703, 2247, 13, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
INTERFACE zif_abapgit_persist_repo PUBLIC . METHODS add IMPORTING !iv_url TYPE string !iv_branch_name TYPE string !iv_branch TYPE zif_abapgit_definitions=>ty_sha1 OPTIONAL !iv_package TYPE devclass !iv_offline TYPE sap_bool DEFAULT abap_false !is_dot_abapgit TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit RETURNING VALUE(rv_key) TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception . METHODS delete IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception . METHODS list RETURNING VALUE(rt_repos) TYPE zif_abapgit_persistence=>tt_repo RAISING zcx_abapgit_exception . METHODS lock IMPORTING !iv_mode TYPE enqmode !iv_key TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception . METHODS read IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key RETURNING VALUE(rs_repo) TYPE zif_abapgit_persistence=>ty_repo RAISING zcx_abapgit_exception zcx_abapgit_not_found . METHODS update_branch_name IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !iv_branch_name TYPE zif_abapgit_persistence=>ty_repo_xml-branch_name RAISING zcx_abapgit_exception . METHODS update_deserialized IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_value !iv_deserialized_at TYPE timestampl !iv_deserialized_by TYPE xubname RAISING zcx_abapgit_exception . METHODS update_dot_abapgit IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !is_dot_abapgit TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit RAISING zcx_abapgit_exception . METHODS update_head_branch IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !iv_head_branch TYPE zif_abapgit_persistence=>ty_repo_xml-head_branch RAISING zcx_abapgit_exception . METHODS update_local_checksums IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !it_checksums TYPE zif_abapgit_persistence=>ty_repo_xml-local_checksums RAISING zcx_abapgit_exception . METHODS update_local_settings IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !is_settings TYPE zif_abapgit_persistence=>ty_repo_xml-local_settings RAISING zcx_abapgit_exception . METHODS update_offline IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !iv_offline TYPE zif_abapgit_persistence=>ty_repo_xml-offline RAISING zcx_abapgit_exception . METHODS update_url IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !iv_url TYPE zif_abapgit_persistence=>ty_repo_xml-url RAISING zcx_abapgit_exception . ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 397, 499, 18300, 62, 19276, 396, 62, 260, 7501, 198, 220, 44731, 764, 628, 198, 220, 337, 36252, 50, 751, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 1671, 3702, 62, 3672, 41876, 4731, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 1671, 3702, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 26270, 16, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 26495, 220, 220, 220, 220, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 2364, 1370, 220, 220, 220, 220, 41876, 31841, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 5145, 271, 62, 26518, 62, 397, 499, 18300, 41876, 1976, 361, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 14804, 774, 62, 26518, 62, 397, 499, 18300, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 2539, 8, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 12233, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 1351, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 260, 1930, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 926, 62, 260, 7501, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 5793, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 14171, 41876, 551, 80, 14171, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 1100, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 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, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 260, 7501, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1662, 62, 9275, 764, 198, 220, 337, 36252, 50, 4296, 62, 1671, 3702, 62, 3672, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 1671, 3702, 62, 3672, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 62, 19875, 12, 1671, 3702, 62, 3672, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 4296, 62, 8906, 48499, 1143, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 8367, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 8906, 48499, 1143, 62, 265, 41876, 4628, 395, 321, 489, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 8906, 48499, 1143, 62, 1525, 41876, 2124, 549, 3672, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 4296, 62, 26518, 62, 397, 499, 18300, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 5145, 271, 62, 26518, 62, 397, 499, 18300, 41876, 1976, 361, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 14804, 774, 62, 26518, 62, 397, 499, 18300, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 4296, 62, 2256, 62, 1671, 3702, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 2256, 62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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZCL_DBBR_FE_ICON_TT_STB definition public create public . public section. interfaces ZIF_DBBR_STMNT_STRING_BUILDER . protected section. private section. ENDCLASS. CLASS ZCL_DBBR_FE_ICON_TT_STB IMPLEMENTATION. method ZIF_DBBR_STMNT_STRING_BUILDER~BUILD_STRING. cs_statement-stringform = |DATA { cs_statement-tokens[ 2 ]-str } TYPE { zif_dbbr_c_fe_global=>c_icon_tt_type }.|. endmethod. ENDCLASS.
[ 4871, 1168, 5097, 62, 11012, 11473, 62, 15112, 62, 2149, 1340, 62, 15751, 62, 2257, 33, 6770, 198, 220, 1171, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 20314, 1168, 5064, 62, 11012, 11473, 62, 2257, 44, 11251, 62, 18601, 2751, 62, 19499, 4146, 14418, 764, 198, 24326, 2665, 13, 198, 19734, 2665, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 11012, 11473, 62, 15112, 62, 2149, 1340, 62, 15751, 62, 2257, 33, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 2446, 1168, 5064, 62, 11012, 11473, 62, 2257, 44, 11251, 62, 18601, 2751, 62, 19499, 4146, 14418, 93, 19499, 26761, 62, 18601, 2751, 13, 628, 220, 220, 220, 50115, 62, 26090, 12, 8841, 687, 796, 198, 220, 220, 220, 220, 220, 220, 930, 26947, 1391, 50115, 62, 26090, 12, 83, 482, 641, 58, 362, 2361, 12, 2536, 1782, 41876, 1391, 1976, 361, 62, 9945, 1671, 62, 66, 62, 5036, 62, 20541, 14804, 66, 62, 4749, 62, 926, 62, 4906, 1782, 13, 91, 13, 628, 220, 886, 24396, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_iwvb DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_abapgit_object . PROTECTED SECTION. METHODS get_generic RETURNING VALUE(ro_generic) TYPE REF TO zcl_abapgit_objects_generic RAISING zcx_abapgit_exception . PRIVATE SECTION. ENDCLASS. CLASS zcl_abapgit_object_iwvb IMPLEMENTATION. METHOD get_generic. CREATE OBJECT ro_generic EXPORTING is_item = ms_item iv_language = mv_language. ENDMETHOD. METHOD zif_abapgit_object~changed_by. rv_user = zcl_abapgit_objects_super=>c_user_unknown. ENDMETHOD. METHOD zif_abapgit_object~delete. get_generic( )->delete( ). ENDMETHOD. METHOD zif_abapgit_object~deserialize. get_generic( )->deserialize( iv_package = iv_package io_xml = io_xml ). ENDMETHOD. METHOD zif_abapgit_object~exists. rv_bool = get_generic( )->exists( ). ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). rs_metadata-delete_tadir = abap_true. ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = abap_false. ENDMETHOD. METHOD zif_abapgit_object~jump. SUBMIT /iwbep/r_dst_vocan_register WITH ip_aname = ms_item-obj_name WITH ip_avers = ms_item-obj_name+32(4) AND RETURN. rv_exit = abap_true. ENDMETHOD. METHOD zif_abapgit_object~serialize. get_generic( )->serialize( io_xml ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 14246, 85, 65, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 41357, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 41357, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 41357, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 14246, 85, 65, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 651, 62, 41357, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 686, 62, 41357, 7788, 15490, 2751, 318, 62, 9186, 796, 13845, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 796, 285, 85, 62, 16129, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 198, 220, 220, 220, 374, 85, 62, 7220, 796, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 14804, 66, 62, 7220, 62, 34680, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 33678, 13, 628, 220, 220, 220, 651, 62, 41357, 7, 1267, 3784, 33678, 7, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 8906, 48499, 1096, 13, 628, 220, 220, 220, 651, 62, 41357, 7, 1267, 3784, 8906, 48499, 1096, 7, 198, 220, 220, 220, 220, 220, 21628, 62, 26495, 796, 21628, 62, 26495, 198, 220, 220, 220, 220, 220, 33245, 62, 19875, 220, 220, 220, 220, 796, 33245, 62, 19875, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1069, 1023, 13, 628, 220, 220, 220, 374, 85, 62, 30388, 796, 651, 62, 41357, 7, 1267, 3784, 1069, 1023, 7, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1136, 62, 785, 1845, 1352, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1136, 62, 8906, 48499, 1096, 62, 20214, 13, 198, 220, 220, 220, 43504, 10619, 1976, 361, 62, 397, 499, 18300, 62, 15252, 14804, 36484, 62, 9662, 62, 312, 12, 397, 499, 5390, 374, 83, 62, 20214, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1136, 62, 38993, 13, 628, 220, 220, 220, 44608, 62, 38993, 796, 651, 62, 38993, 7, 6739, 198, 220, 220, 220, 44608, 62, 38993, 12, 33678, 62, 83, 324, 343, 796, 450, 499, 62, 7942, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 271, 62, 5275, 13, 198, 220, 220, 220, 374, 85, 62, 5275, 796, 318, 62, 5275, 7, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 271, 62, 24162, 13, 628, 220, 220, 220, 374, 85, 62, 271, 62, 24162, 796, 450, 499, 62, 9562, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 43327, 13, 628, 220, 220, 220, 28932, 36393, 1220, 14246, 65, 538, 14, 81, 62, 67, 301, 62, 18893, 272, 62, 30238, 198, 220, 220, 220, 220, 220, 13315, 20966, 62, 272, 480, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 198, 220, 220, 220, 220, 220, 13315, 20966, 62, 30400, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 10, 2624, 7, 19, 8, 198, 220, 220, 220, 220, 220, 5357, 30826, 27064, 13, 628, 220, 220, 220, 374, 85, 62, 37023, 796, 450, 499, 62, 7942, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 46911, 1096, 13, 628, 220, 220, 220, 651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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 ]
CLASS cl_adt_rest_resource DEFINITION PUBLIC. PUBLIC SECTION. METHODS: delete IMPORTING request TYPE REF TO if_adt_rest_request response TYPE REF TO if_adt_rest_response context TYPE REF TO if_rest_context, get IMPORTING request TYPE REF TO if_adt_rest_request response TYPE REF TO if_adt_rest_response context TYPE REF TO if_rest_context, post IMPORTING request TYPE REF TO if_adt_rest_request response TYPE REF TO if_adt_rest_response context TYPE REF TO if_rest_context. ENDCLASS. CLASS cl_adt_rest_resource IMPLEMENTATION. METHOD delete. RETURN. ENDMETHOD. METHOD get. RETURN. ENDMETHOD. METHOD post. RETURN. ENDMETHOD. ENDCLASS.
[ 31631, 537, 62, 324, 83, 62, 2118, 62, 31092, 5550, 20032, 17941, 44731, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 12233, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 220, 41876, 4526, 37, 5390, 611, 62, 324, 83, 62, 2118, 62, 25927, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2882, 41876, 4526, 37, 5390, 611, 62, 324, 83, 62, 2118, 62, 26209, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4732, 220, 41876, 4526, 37, 5390, 611, 62, 2118, 62, 22866, 11, 198, 220, 220, 220, 220, 220, 651, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 220, 41876, 4526, 37, 5390, 611, 62, 324, 83, 62, 2118, 62, 25927, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2882, 41876, 4526, 37, 5390, 611, 62, 324, 83, 62, 2118, 62, 26209, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4732, 220, 41876, 4526, 37, 5390, 611, 62, 2118, 62, 22866, 11, 198, 220, 220, 220, 220, 220, 1281, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2581, 220, 41876, 4526, 37, 5390, 611, 62, 324, 83, 62, 2118, 62, 25927, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2882, 41876, 4526, 37, 5390, 611, 62, 324, 83, 62, 2118, 62, 26209, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4732, 220, 41876, 4526, 37, 5390, 611, 62, 2118, 62, 22866, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 537, 62, 324, 83, 62, 2118, 62, 31092, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 12233, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1281, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13 ]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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 ]
CLASS zcl_abapgit_object_ddlx 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. DATA mi_persistence TYPE REF TO if_wb_object_persist . METHODS get_persistence RETURNING VALUE(ri_persistence) TYPE REF TO if_wb_object_persist RAISING zcx_abapgit_exception . METHODS clear_fields CHANGING !cg_data TYPE any . METHODS clear_field IMPORTING !iv_fieldname TYPE csequence CHANGING !cg_metadata TYPE any . ENDCLASS. CLASS zcl_abapgit_object_ddlx IMPLEMENTATION. METHOD clear_field. FIELD-SYMBOLS: <lg_field> TYPE data. ASSIGN COMPONENT iv_fieldname OF STRUCTURE cg_metadata TO <lg_field>. ASSERT sy-subrc = 0. CLEAR: <lg_field>. ENDMETHOD. METHOD clear_fields. FIELD-SYMBOLS: <lg_metadata> TYPE any. ASSIGN COMPONENT 'METADATA' OF STRUCTURE cg_data TO <lg_metadata>. ASSERT sy-subrc = 0. clear_field( EXPORTING iv_fieldname = 'CHANGED_AT' CHANGING cg_metadata = <lg_metadata> ). clear_field( EXPORTING iv_fieldname = 'CHANGED_BY' CHANGING cg_metadata = <lg_metadata> ). clear_field( EXPORTING iv_fieldname = 'CREATED_AT' CHANGING cg_metadata = <lg_metadata> ). clear_field( EXPORTING iv_fieldname = 'CREATED_BY' CHANGING cg_metadata = <lg_metadata> ). clear_field( EXPORTING iv_fieldname = 'RESPONSIBLE' CHANGING cg_metadata = <lg_metadata> ). clear_field( EXPORTING iv_fieldname = 'PACKAGE_REF-NAME' CHANGING cg_metadata = <lg_metadata> ). clear_field( EXPORTING iv_fieldname = 'CONTAINER_REF-PACKAGE_NAME' CHANGING cg_metadata = <lg_metadata> ). clear_field( EXPORTING iv_fieldname = 'VERSION' CHANGING cg_metadata = <lg_metadata> ). clear_field( EXPORTING iv_fieldname = 'RESPONSIBLE' CHANGING cg_metadata = <lg_metadata> ). clear_field( EXPORTING iv_fieldname = 'MASTER_SYSTEM' CHANGING cg_metadata = <lg_metadata> ). ENDMETHOD. METHOD get_persistence. DATA: lx_error TYPE REF TO cx_root. TRY. IF mi_persistence IS NOT BOUND. CREATE OBJECT mi_persistence TYPE ('CL_DDLX_ADT_OBJECT_PERSIST'). ENDIF. CATCH cx_root INTO lx_error. zcx_abapgit_exception=>raise_with_text( lx_error ). ENDTRY. ri_persistence = mi_persistence. ENDMETHOD. METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_object_key TYPE seu_objkey, lx_error TYPE REF TO cx_root. lv_object_key = ms_item-obj_name. TRY. get_persistence( )->delete( p_object_key = lv_object_key p_version = swbm_version_active ). CATCH cx_root INTO lx_error. zcx_abapgit_exception=>raise_with_text( lx_error ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: li_data_model TYPE REF TO if_wb_object_data_model, lr_data TYPE REF TO data, lx_error TYPE REF TO cx_root. FIELD-SYMBOLS: <lg_data> TYPE any, <lg_source> TYPE data, <lg_version> TYPE data, <lg_package> TYPE data. TRY. CREATE DATA lr_data TYPE ('CL_DDLX_WB_OBJECT_DATA=>TY_OBJECT_DATA'). ASSIGN lr_data->* TO <lg_data>. io_xml->read( EXPORTING iv_name = 'DDLX' CHANGING cg_data = <lg_data> ). ASSIGN COMPONENT 'CONTENT-SOURCE' OF STRUCTURE <lg_data> TO <lg_source>. ASSERT sy-subrc = 0. TRY. " If the file doesn't exist that's ok, because previously " the source code was stored in the xml. We are downward compatible. <lg_source> = mo_files->read_string( 'asddlxs' ). CATCH zcx_abapgit_exception ##NO_HANDLER. ENDTRY. CREATE OBJECT li_data_model TYPE ('CL_DDLX_WB_OBJECT_DATA'). ASSIGN COMPONENT 'METADATA-VERSION' OF STRUCTURE <lg_data> TO <lg_version>. ASSERT sy-subrc = 0. " We have to always save as inactive. Standard activation below activates then " and also creates transport request entry if necessary <lg_version> = 'inactive'. "package needed to be able to determine ABAP language version ASSIGN COMPONENT 'METADATA-PACKAGE_REF-NAME' OF STRUCTURE <lg_data> TO <lg_package>. IF <lg_package> IS ASSIGNED. <lg_package> = iv_package. ENDIF. li_data_model->set_data( <lg_data> ). get_persistence( )->save( li_data_model ). tadir_insert( iv_package ). CATCH cx_root INTO lx_error. zcx_abapgit_exception=>raise_with_text( lx_error ). ENDTRY. zcl_abapgit_objects_activation=>add_item( ms_item ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_object_key TYPE seu_objkey. lv_object_key = ms_item-obj_name. rv_bool = abap_true. TRY. get_persistence( )->get( p_object_key = lv_object_key p_version = swbm_version_active p_existence_check_only = abap_true ). CATCH cx_swb_exception. rv_bool = abap_false. ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). rs_metadata-delete_tadir = abap_true. ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'ESWB_EO' iv_argument = |{ ms_item-obj_type }{ ms_item-obj_name }| ). ENDMETHOD. METHOD zif_abapgit_object~jump. " Covered by ZCL_ABAPGIT_ADT_LINK=>JUMP ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_object_key TYPE seu_objkey, li_data_model TYPE REF TO if_wb_object_data_model, li_persistence TYPE REF TO if_wb_object_persist, lr_data TYPE REF TO data, lx_error TYPE REF TO cx_root. FIELD-SYMBOLS: <lg_data> TYPE any, <lg_field> TYPE data. lv_object_key = ms_item-obj_name. TRY. CREATE DATA lr_data TYPE ('CL_DDLX_WB_OBJECT_DATA=>TY_OBJECT_DATA'). ASSIGN lr_data->* TO <lg_data>. CREATE OBJECT li_data_model TYPE ('CL_DDLX_WB_OBJECT_DATA'). li_persistence = get_persistence( ). IF zcl_abapgit_factory=>get_environment( )->compare_with_inactive( ) = abap_true. "Retrieve inactive version li_persistence->get( EXPORTING p_object_key = lv_object_key p_version = swbm_version_inactive CHANGING p_object_data = li_data_model ). IF li_data_model->get_object_name( ) IS INITIAL. "Fallback: retrieve active version li_persistence->get( EXPORTING p_object_key = lv_object_key p_version = swbm_version_active CHANGING p_object_data = li_data_model ). ENDIF. ELSE. "Retrieve active version li_persistence->get( EXPORTING p_object_key = lv_object_key p_version = swbm_version_active CHANGING p_object_data = li_data_model ). ENDIF. li_data_model->get_data( IMPORTING p_data = <lg_data> ). clear_fields( CHANGING cg_data = <lg_data> ). ASSIGN COMPONENT 'CONTENT-SOURCE' OF STRUCTURE <lg_data> TO <lg_field>. ASSERT sy-subrc = 0. mo_files->add_string( iv_ext = 'asddlxs' iv_string = <lg_field> ). CLEAR <lg_field>. io_xml->add( iv_name = 'DDLX' ig_data = <lg_data> ). CATCH cx_root INTO lx_error. zcx_abapgit_exception=>raise_with_text( lx_error ). ENDTRY. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 1860, 75, 87, 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, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 21504, 62, 19276, 13274, 41876, 4526, 37, 5390, 611, 62, 39346, 62, 15252, 62, 19276, 396, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 19276, 13274, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 19276, 13274, 8, 41876, 4526, 37, 5390, 611, 62, 39346, 62, 15252, 62, 19276, 396, 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, 1598, 62, 25747, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 66, 70, 62, 7890, 41876, 597, 764, 198, 220, 220, 220, 337, 36252, 50, 1598, 62, 3245, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3245, 3672, 41876, 269, 43167, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 66, 70, 62, 38993, 220, 41876, 597, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 1860, 75, 87, 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, 75, 70, 62, 3245, 29, 41876, 1366, 13, 628, 220, 220, 220, 24994, 16284, 24301, 1340, 3525, 21628, 62, 3245, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3963, 19269, 18415, 11335, 269, 70, 62, 38993, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5390, 1279, 75, 70, 62, 3245, 28401, 198, 220, 220, 220, 24994, 17395, 827, 12, 7266, 6015, 796, 657, 13, 628, 220, 220, 220, 30301, 1503, 25, 1279, 75, 70, 62, 3245, 28401, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1598, 62, 25747, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 75, 70, 62, 38993, 29, 41876, 597, 13, 628, 220, 220, 220, 24994, 16284, 24301, 1340, 3525, 705, 47123, 2885, 13563, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3963, 19269, 18415, 11335, 269, 70, 62, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5390, 1279, 75, 70, 62, 38993, 28401, 198, 220, 220, 220, 24994, 17395, 827, 12, 7266, 6015, 796, 657, 13, 628, 220, 220, 220, 1598, 62, 3245, 7, 7788, 15490, 2751, 21628, 62, 3245, 3672, 796, 705, 3398, 15567, 1961, 62, 1404, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 38993, 220, 796, 1279, 75, 70, 62, 38993, 29, 6739, 628, 220, 220, 220, 1598, 62, 3245, 7, 7788, 15490, 2751, 21628, 62, 3245, 3672, 796, 705, 3398, 15567, 1961, 62, 17513, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 38993, 220, 796, 1279, 75, 70, 62, 38993, 29, 6739, 628, 220, 220, 220, 1598, 62, 3245, 7, 7788, 15490, 2751, 21628, 62, 3245, 3672, 796, 705, 43387, 11617, 62, 1404, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 38993, 220, 796, 1279, 75, 70, 62, 38993, 29, 6739, 628, 220, 220, 220, 1598, 62, 3245, 7, 7788, 15490, 2751, 21628, 62, 3245, 3672, 796, 705, 43387, 11617, 62, 17513, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 38993, 220, 796, 1279, 75, 70, 62, 38993, 29, 6739, 628, 220, 220, 220, 1598, 62, 3245, 7, 7788, 15490, 2751, 21628, 62, 3245, 3672, 796, 705, 19535, 47, 19213, 34563, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 38993, 220, 796, 1279, 75, 70, 62, 38993, 29, 6739, 628, 220, 220, 220, 1598, 62, 3245, 7, 7788, 15490, 2751, 21628, 62, 3245, 3672, 796, 705, 47, 8120, 11879, 62, 31688, 12, 20608, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 38993, 220, 796, 1279, 75, 70, 62, 38993, 29, 6739, 628, 220, 220, 220, 1598, 62, 3245, 7, 7788, 15490, 2751, 21628, 62, 3245, 3672, 796, 705, 10943, 30339, 1137, 62, 31688, 12, 47, 8120, 11879, 62, 20608, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 38993, 220, 796, 1279, 75, 70, 62, 38993, 29, 6739, 628, 220, 220, 220, 1598, 62, 3245, 7, 7788, 15490, 2751, 21628, 62, 3245, 3672, 796, 705, 43717, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 38993, 220, 796, 1279, 75, 70, 62, 38993, 29, 6739, 628, 220, 220, 220, 1598, 62, 3245, 7, 7788, 15490, 2751, 21628, 62, 3245, 3672, 796, 705, 19535, 47, 19213, 34563, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 38993, 220, 796 ]
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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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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 ]
class ZCL_Z_MONSTER_MPC definition public inheriting from /IWBEP/CL_MGW_PUSH_ABS_MODEL create public . public section. types: TS_MONSTER type ZSTR_MONSTER_HEADER . types: TT_MONSTER type standard table of TS_MONSTER . types: begin of ts_text_element, artifact_name type c length 40, " technical name artifact_type type c length 4, parent_artifact_name type c length 40, " technical name parent_artifact_type type c length 4, text_symbol type textpoolky, end of ts_text_element . types: tt_text_elements type standard table of ts_text_element with key text_symbol . types: TS_MONSTER_ITEM type ZSTR_MONSTER_ITEMS . types: TT_MONSTER_ITEM type standard table of TS_MONSTER_ITEM . constants GC_MONSTER type /IWBEP/IF_MGW_MED_ODATA_TYPES=>TY_E_MED_ENTITY_NAME value 'Monster' ##NO_TEXT. constants GC_MONSTER_ITEM type /IWBEP/IF_MGW_MED_ODATA_TYPES=>TY_E_MED_ENTITY_NAME value 'Monster_Item' ##NO_TEXT. methods LOAD_TEXT_ELEMENTS final returning value(RT_TEXT_ELEMENTS) type TT_TEXT_ELEMENTS raising /IWBEP/CX_MGW_MED_EXCEPTION . methods DEFINE redefinition . methods GET_LAST_MODIFIED redefinition . protected section. private section. methods DEFINE_MONSTER raising /IWBEP/CX_MGW_MED_EXCEPTION . methods DEFINE_MONSTER_ITEM raising /IWBEP/CX_MGW_MED_EXCEPTION . methods DEFINE_ASSOCIATIONS raising /IWBEP/CX_MGW_MED_EXCEPTION . ENDCLASS. CLASS ZCL_Z_MONSTER_MPC IMPLEMENTATION. method DEFINE. *&---------------------------------------------------------------------* *& Generated code for the MODEL PROVIDER BASE CLASS &* *& &* *& !!!NEVER MODIFY THIS CLASS. IN CASE YOU WANT TO CHANGE THE MODEL &* *& DO THIS IN THE MODEL PROVIDER SUBCLASS!!! &* *& &* *&---------------------------------------------------------------------* super->define( ). model->set_schema_namespace( 'Z_MONSTER_SRV' ). define_monster( ). define_monster_item( ). define_associations( ). endmethod. method DEFINE_ASSOCIATIONS. *&---------------------------------------------------------------------* *& Generated code for the MODEL PROVIDER BASE CLASS &* *& &* *& !!!NEVER MODIFY THIS CLASS. IN CASE YOU WANT TO CHANGE THE MODEL &* *& DO THIS IN THE MODEL PROVIDER SUBCLASS!!! &* *& &* *&---------------------------------------------------------------------* data: lo_annotation type ref to /iwbep/if_mgw_odata_annotation, "#EC NEEDED lo_entity_type type ref to /iwbep/if_mgw_odata_entity_typ, "#EC NEEDED lo_association type ref to /iwbep/if_mgw_odata_assoc, "#EC NEEDED lo_ref_constraint type ref to /iwbep/if_mgw_odata_ref_constr, "#EC NEEDED lo_assoc_set type ref to /iwbep/if_mgw_odata_assoc_set, "#EC NEEDED lo_nav_property type ref to /iwbep/if_mgw_odata_nav_prop. "#EC NEEDED *********************************************************************************************************************************** * ASSOCIATIONS *********************************************************************************************************************************** lo_association = model->create_association( iv_association_name = 'ItemsOfMonster' "#EC NOTEXT iv_left_type = 'Monster' "#EC NOTEXT iv_right_type = 'Monster_Item' "#EC NOTEXT iv_right_card = 'N' "#EC NOTEXT iv_left_card = '1' "#EC NOTEXT iv_def_assoc_set = abap_false ). "#EC NOTEXT * Referential constraint for association - ItemsOfMonster lo_ref_constraint = lo_association->create_ref_constraint( ). lo_ref_constraint->add_property( iv_principal_property = 'MonsterNumber' iv_dependent_property = 'MonsterNumber' ). "#EC NOTEXT lo_assoc_set = model->create_association_set( iv_association_set_name = 'ItemsOfMonsters' "#EC NOTEXT iv_left_entity_set_name = 'Monsters' "#EC NOTEXT iv_right_entity_set_name = 'MonsterItems' "#EC NOTEXT iv_association_name = 'ItemsOfMonster' ). "#EC NOTEXT *********************************************************************************************************************************** * NAVIGATION PROPERTIES *********************************************************************************************************************************** * Navigation Properties for entity - Monster lo_entity_type = model->get_entity_type( iv_entity_name = 'Monster' ). "#EC NOTEXT lo_nav_property = lo_entity_type->create_navigation_property( iv_property_name = 'MonsterItems' "#EC NOTEXT iv_abap_fieldname = 'MONSTERITEMS' "#EC NOTEXT iv_association_name = 'ItemsOfMonster' ). "#EC NOTEXT endmethod. method DEFINE_MONSTER. *&---------------------------------------------------------------------* *& Generated code for the MODEL PROVIDER BASE CLASS &* *& &* *& !!!NEVER MODIFY THIS CLASS. IN CASE YOU WANT TO CHANGE THE MODEL &* *& DO THIS IN THE MODEL PROVIDER SUBCLASS!!! &* *& &* *&---------------------------------------------------------------------* data: lo_annotation type ref to /iwbep/if_mgw_odata_annotation, "#EC NEEDED lo_entity_type type ref to /iwbep/if_mgw_odata_entity_typ, "#EC NEEDED lo_complex_type type ref to /iwbep/if_mgw_odata_cmplx_type, "#EC NEEDED lo_property type ref to /iwbep/if_mgw_odata_property, "#EC NEEDED lo_entity_set type ref to /iwbep/if_mgw_odata_entity_set. "#EC NEEDED *********************************************************************************************************************************** * ENTITY - Monster *********************************************************************************************************************************** lo_entity_type = model->create_entity_type( iv_entity_type_name = 'Monster' iv_def_entity_set = abap_false ). "#EC NOTEXT lo_entity_type->set_is_thing_type( abap_true ). *********************************************************************************************************************************** *Properties *********************************************************************************************************************************** lo_property = lo_entity_type->create_property( iv_property_name = 'MonsterNumber' iv_abap_fieldname = 'MONSTER_NUMBER' ). "#EC NOTEXT lo_property->set_is_key( ). lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 10 ). "#EC NOTEXT lo_property->set_conversion_exit( 'ALPHA' ). "#EC NOTEXT lo_property->set_creatable( abap_true ). lo_property->set_updatable( abap_true ). lo_property->set_sortable( abap_true ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'Name' iv_abap_fieldname = 'NAME' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 30 ). "#EC NOTEXT lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'Model' iv_abap_fieldname = 'MODEL' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'MonsterUsage' iv_abap_fieldname = 'MONSTER_USAGE' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'SanityPercentage' iv_abap_fieldname = 'SANITY_PERCENTAGE' ). "#EC NOTEXT lo_property->set_type_edm_int32( ). lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'Evilness' iv_abap_fieldname = 'EVILNESS' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'Scariness' iv_abap_fieldname = 'SCARINESS' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'BrainSize' iv_abap_fieldname = 'BRAIN_SIZE' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 10 ). "#EC NOTEXT lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'Color' iv_abap_fieldname = 'COLOR' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'NoOfHeads' iv_abap_fieldname = 'NO_OF_HEADS' ). "#EC NOTEXT lo_property->set_type_edm_int32( ). lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'HatSize' iv_abap_fieldname = 'HAT_SIZE' ). "#EC NOTEXT lo_property->set_type_edm_int32( ). lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'RagesPerDay' iv_abap_fieldname = 'RAGES_PER_DAY' ). "#EC NOTEXT lo_property->set_type_edm_int32( ). lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'Strength' iv_abap_fieldname = 'STRENGTH' ). "#EC NOTEXT lo_property->set_type_edm_int32( ). lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'EarlyAgeStrength' iv_abap_fieldname = 'EARLY_AGE_STRENGTH' ). "#EC NOTEXT lo_property->set_type_edm_int32( ). lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'EasDays' iv_abap_fieldname = 'EAS_DAYS' ). "#EC NOTEXT lo_property->set_type_edm_int32( ). lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'GrowthPercentage' iv_abap_fieldname = 'GROWTH_PERCENTAGE' ). "#EC NOTEXT lo_property->set_type_edm_byte( ). lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'OsoupPercentage' iv_abap_fieldname = 'OSOUP_PERCENTAGE' ). "#EC NOTEXT lo_property->set_type_edm_byte( ). lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'BedHiderFlag' iv_abap_fieldname = 'BED_HIDER_FLAG' ). "#EC NOTEXT lo_property->set_type_edm_boolean( ). lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'CreationDate' iv_abap_fieldname = 'CREATION_DATE' ). "#EC NOTEXT lo_property->set_type_edm_datetimeoffset( ). lo_property->set_precison( iv_precision = 7 ). "#EC NOTEXT lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'SanityDescription' iv_abap_fieldname = 'SANITY_DESCRIPTION' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 30 ). "#EC NOTEXT lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'HatSizeDescription' iv_abap_fieldname = 'HAT_SIZE_DESCRIPTION' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 30 ). "#EC NOTEXT lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'StrengthDescription' iv_abap_fieldname = 'STRENGTH_DESCRIPTION' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 30 ). "#EC NOTEXT lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'IngredientType' iv_abap_fieldname = 'INGREDIENT_TYPE' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 12 ). "#EC NOTEXT lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_entity_type->bind_structure( iv_structure_name = 'ZSTR_MONSTER_HEADER' iv_bind_conversions = 'X' ). "#EC NOTEXT *********************************************************************************************************************************** * ENTITY SETS *********************************************************************************************************************************** lo_entity_set = lo_entity_type->create_entity_set( 'Monsters' ). "#EC NOTEXT lo_entity_set->set_creatable( abap_true ). lo_entity_set->set_updatable( abap_true ). lo_entity_set->set_deletable( abap_true ). lo_entity_set->set_pageable( abap_true ). lo_entity_set->set_addressable( abap_true ). lo_entity_set->set_has_ftxt_search( abap_true ). lo_entity_set->set_subscribable( abap_true ). lo_entity_set->set_filter_required( abap_false ). endmethod. method DEFINE_MONSTER_ITEM. *&---------------------------------------------------------------------* *& Generated code for the MODEL PROVIDER BASE CLASS &* *& &* *& !!!NEVER MODIFY THIS CLASS. IN CASE YOU WANT TO CHANGE THE MODEL &* *& DO THIS IN THE MODEL PROVIDER SUBCLASS!!! &* *& &* *&---------------------------------------------------------------------* data: lo_annotation type ref to /iwbep/if_mgw_odata_annotation, "#EC NEEDED lo_entity_type type ref to /iwbep/if_mgw_odata_entity_typ, "#EC NEEDED lo_complex_type type ref to /iwbep/if_mgw_odata_cmplx_type, "#EC NEEDED lo_property type ref to /iwbep/if_mgw_odata_property, "#EC NEEDED lo_entity_set type ref to /iwbep/if_mgw_odata_entity_set. "#EC NEEDED *********************************************************************************************************************************** * ENTITY - Monster_Item *********************************************************************************************************************************** lo_entity_type = model->create_entity_type( iv_entity_type_name = 'Monster_Item' iv_def_entity_set = abap_false ). "#EC NOTEXT *********************************************************************************************************************************** *Properties *********************************************************************************************************************************** lo_property = lo_entity_type->create_property( iv_property_name = 'MonsterNumber' iv_abap_fieldname = 'MONSTER_NUMBER' ). "#EC NOTEXT lo_property->set_is_key( ). lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 10 ). "#EC NOTEXT lo_property->set_conversion_exit( 'ALPHA' ). "#EC NOTEXT lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'MonsterItem' iv_abap_fieldname = 'MONSTER_ITEM' ). "#EC NOTEXT lo_property->set_is_key( ). lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 6 ). "#EC NOTEXT lo_property->set_creatable( abap_true ). lo_property->set_updatable( abap_true ). lo_property->set_sortable( abap_true ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'PartCategory' iv_abap_fieldname = 'PART_CATEGORY' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 2 ). "#EC NOTEXT lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'PartQuantity' iv_abap_fieldname = 'PART_QUANTITY' ). "#EC NOTEXT lo_property->set_type_edm_int32( ). lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_property = lo_entity_type->create_property( iv_property_name = 'PartDescription' iv_abap_fieldname = 'PART_DESCRIPTION' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 30 ). "#EC NOTEXT lo_property->set_creatable( abap_false ). lo_property->set_updatable( abap_false ). lo_property->set_sortable( abap_false ). lo_property->set_nullable( abap_false ). lo_property->set_filterable( abap_false ). lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( 'sap' )->add( EXPORTING iv_key = 'unicode' iv_value = 'false' ). lo_entity_type->bind_structure( iv_structure_name = 'ZSTR_MONSTER_ITEMS' iv_bind_conversions = 'X' ). "#EC NOTEXT *********************************************************************************************************************************** * ENTITY SETS *********************************************************************************************************************************** lo_entity_set = lo_entity_type->create_entity_set( 'MonsterItems' ). "#EC NOTEXT lo_entity_set->set_creatable( abap_true ). lo_entity_set->set_updatable( abap_true ). lo_entity_set->set_deletable( abap_true ). lo_entity_set->set_pageable( abap_true ). lo_entity_set->set_addressable( abap_true ). lo_entity_set->set_has_ftxt_search( abap_true ). lo_entity_set->set_subscribable( abap_false ). lo_entity_set->set_filter_required( abap_false ). endmethod. method GET_LAST_MODIFIED. *&---------------------------------------------------------------------* *& Generated code for the MODEL PROVIDER BASE CLASS &* *& &* *& !!!NEVER MODIFY THIS CLASS. IN CASE YOU WANT TO CHANGE THE MODEL &* *& DO THIS IN THE MODEL PROVIDER SUBCLASS!!! &* *& &* *&---------------------------------------------------------------------* CONSTANTS: lc_gen_date_time TYPE timestamp VALUE '20180807145352'. "#EC NOTEXT rv_last_modified = super->get_last_modified( ). IF rv_last_modified LT lc_gen_date_time. rv_last_modified = lc_gen_date_time. ENDIF. endmethod. method LOAD_TEXT_ELEMENTS. *&---------------------------------------------------------------------* *& Generated code for the MODEL PROVIDER BASE CLASS &* *& &* *& !!!NEVER MODIFY THIS CLASS. IN CASE YOU WANT TO CHANGE THE MODEL &* *& DO THIS IN THE MODEL PROVIDER SUBCLASS!!! &* *& &* *&---------------------------------------------------------------------* DATA: ls_text_element TYPE ts_text_element. "#EC NEEDED CLEAR ls_text_element. endmethod. ENDCLASS.
[ 4871, 1168, 5097, 62, 57, 62, 27857, 41809, 62, 44, 5662, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1220, 40, 45607, 8905, 14, 5097, 62, 20474, 54, 62, 47, 27143, 62, 32, 4462, 62, 33365, 3698, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 3858, 25, 198, 220, 220, 220, 220, 26136, 62, 27857, 41809, 2099, 1168, 18601, 62, 27857, 41809, 62, 37682, 1137, 764, 198, 220, 3858, 25, 198, 15751, 62, 27857, 41809, 2099, 3210, 3084, 286, 26136, 62, 27857, 41809, 764, 198, 220, 3858, 25, 198, 220, 220, 2221, 286, 40379, 62, 5239, 62, 30854, 11, 198, 220, 220, 220, 220, 220, 24127, 62, 3672, 220, 2099, 269, 4129, 2319, 11, 220, 220, 220, 220, 220, 220, 366, 6276, 1438, 198, 220, 220, 220, 220, 220, 24127, 62, 4906, 220, 2099, 269, 4129, 604, 11, 198, 220, 220, 220, 220, 220, 2560, 62, 433, 29660, 62, 3672, 2099, 269, 4129, 2319, 11, 366, 6276, 1438, 198, 220, 220, 220, 220, 220, 2560, 62, 433, 29660, 62, 4906, 2099, 269, 4129, 604, 11, 198, 220, 220, 220, 220, 220, 2420, 62, 1837, 23650, 220, 220, 220, 2099, 2420, 7742, 2584, 11, 198, 220, 220, 886, 286, 40379, 62, 5239, 62, 30854, 764, 198, 220, 3858, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 256, 83, 62, 5239, 62, 68, 3639, 2099, 3210, 3084, 286, 40379, 62, 5239, 62, 30854, 351, 1994, 2420, 62, 1837, 23650, 764, 198, 220, 3858, 25, 198, 220, 220, 220, 220, 26136, 62, 27857, 41809, 62, 2043, 3620, 2099, 1168, 18601, 62, 27857, 41809, 62, 2043, 39201, 764, 198, 220, 3858, 25, 198, 15751, 62, 27857, 41809, 62, 2043, 3620, 2099, 3210, 3084, 286, 26136, 62, 27857, 41809, 62, 2043, 3620, 764, 628, 220, 38491, 20145, 62, 27857, 41809, 2099, 1220, 40, 45607, 8905, 14, 5064, 62, 20474, 54, 62, 30733, 62, 3727, 13563, 62, 9936, 47, 1546, 14804, 9936, 62, 36, 62, 30733, 62, 3525, 9050, 62, 20608, 1988, 705, 40872, 6, 22492, 15285, 62, 32541, 13, 198, 220, 38491, 20145, 62, 27857, 41809, 62, 2043, 3620, 2099, 1220, 40, 45607, 8905, 14, 5064, 62, 20474, 54, 62, 30733, 62, 3727, 13563, 62, 9936, 47, 1546, 14804, 9936, 62, 36, 62, 30733, 62, 3525, 9050, 62, 20608, 1988, 705, 40872, 62, 7449, 6, 22492, 15285, 62, 32541, 13, 628, 220, 5050, 17579, 2885, 62, 32541, 62, 36, 2538, 28957, 198, 220, 2457, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 14181, 62, 32541, 62, 36, 2538, 28957, 8, 2099, 26653, 62, 32541, 62, 36, 2538, 28957, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1220, 40, 45607, 8905, 14, 34, 55, 62, 20474, 54, 62, 30733, 62, 6369, 42006, 2849, 764, 628, 220, 5050, 23449, 8881, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 17151, 62, 43, 11262, 62, 33365, 28343, 198, 220, 220, 220, 34087, 17750, 764, 198, 24326, 2665, 13, 198, 19734, 2665, 13, 628, 220, 5050, 23449, 8881, 62, 27857, 41809, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1220, 40, 45607, 8905, 14, 34, 55, 62, 20474, 54, 62, 30733, 62, 6369, 42006, 2849, 764, 198, 220, 5050, 23449, 8881, 62, 27857, 41809, 62, 2043, 3620, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1220, 40, 45607, 8905, 14, 34, 55, 62, 20474, 54, 62, 30733, 62, 6369, 42006, 2849, 764, 198, 220, 5050, 23449, 8881, 62, 10705, 4503, 40, 18421, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1220, 40, 45607, 8905, 14, 34, 55, 62, 20474, 54, 62, 30733, 62, 6369, 42006, 2849, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 57, 62, 27857, 41809, 62, 44, 5662, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 2446, 23449, 8881, 13, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2980, 515, 2438, 329, 262, 19164, 3698, 36592, 41237, 49688, 42715, 220, 220, 220, 220, 220, 220, 220, 220, 1222, 9, 198, 9, 5, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1222, 9, 198, 9, 5, 220, 220, 10185, 12161, 5959, 19164, 5064, 56, 12680, 42715, 13, 3268, 42001, 7013, 41300, 5390, 5870, 27746, 3336, 19164, 3698, 220, 1222, 9, 198, 9, 5, 220, 220, 220, 220, 220, 220, 220, 8410, 12680, 3268, 3336, 19164, 3698, 36592, 41237, 13558, 2749, 43, 10705, 10185, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1222, 9, 198, 9, 5, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1222, 9, 198, 9, 5, 10097, 30934, 9, 198, 16668, 3784, 13086, 7, 6739, 198, 198, 19849, 3784, 2617, 62, 15952, 2611, 62, 14933, 10223, 7, 705, 57, 62, 27857, 41809, 62, 12562, 53, 6, 6739, 198, 198, 13086, 62, 39050, 7, 6739, 198, 13086, 62, 39050, 62, 9186, 7, 6739, 198, 13086, 62, 562, 1733, 602, 7, 6739, 198, 220, 886, 24396, 13, 628, 198, 220, 2446, 23449, 8881, 62, 10705, 4503, 40, 18421, 13, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2980, 515, 2438, 329, 262, 19164, 3698, 36592, 41237, 49688, 42715, 220, 220, 220, 220, 220, 220, 220, 220, 1222, 9, 198, 9, 5, 220, 220, 220, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS ltcl_length_utf8 DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. DATA: mo_cut TYPE REF TO zcl_abapgit_git_utils. METHODS: setup, length_utf8_hex FOR TESTING RAISING zcx_abapgit_exception. ENDCLASS. CLASS ltcl_length_utf8 IMPLEMENTATION. METHOD setup. mo_cut = NEW #( ). ENDMETHOD. METHOD length_utf8_hex. DATA lv_result TYPE i. lv_result = mo_cut->length_utf8_hex( '30303334' ). cl_abap_unit_assert=>assert_equals( act = lv_result exp = 52 ). ENDMETHOD. ENDCLASS.
[ 198, 31631, 300, 83, 565, 62, 13664, 62, 40477, 23, 5550, 20032, 17941, 7473, 43001, 2751, 360, 4261, 6234, 6006, 9863, 45698, 42, 49277, 43638, 5805, 7597, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 6941, 62, 8968, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 18300, 62, 26791, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 9058, 11, 198, 220, 220, 220, 220, 220, 4129, 62, 40477, 23, 62, 33095, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 10619, 31631, 13, 628, 198, 31631, 300, 83, 565, 62, 13664, 62, 40477, 23, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 9058, 13, 198, 220, 220, 220, 6941, 62, 8968, 796, 12682, 1303, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 4129, 62, 40477, 23, 62, 33095, 13, 628, 220, 220, 220, 42865, 300, 85, 62, 20274, 41876, 1312, 13, 628, 220, 220, 220, 300, 85, 62, 20274, 796, 6941, 62, 8968, 3784, 13664, 62, 40477, 23, 62, 33095, 7, 705, 1270, 1270, 2091, 2682, 6, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 719, 796, 300, 85, 62, 20274, 198, 220, 220, 220, 220, 220, 1033, 796, 6740, 6739, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS lcl_requirements DEFINITION CREATE PRIVATE. "This assumes grouping, any duplicate field will trigger a new record. "Not perfect, but a little better than assuming a sequence PUBLIC SECTION. CLASS-METHODS new RETURNING VALUE(ro_result) TYPE REF TO lcl_requirements. METHODS set_component IMPORTING iv_component TYPE string. METHODS set_min_release IMPORTING iv_min_release TYPE string. METHODS set_min_patch IMPORTING iv_min_patch TYPE string. METHODS get_as_table RETURNING VALUE(rt_requirements) TYPE zif_abapgit_dot_abapgit=>ty_requirement_tt. PRIVATE SECTION. DATA: ms_requirement TYPE zif_abapgit_dot_abapgit=>ty_requirement, mt_requirements TYPE zif_abapgit_dot_abapgit=>ty_requirement_tt. ENDCLASS. CLASS lcl_requirements IMPLEMENTATION. METHOD new. CREATE OBJECT ro_result. ENDMETHOD. METHOD set_component. IF ms_requirement-component IS NOT INITIAL. APPEND ms_requirement TO mt_requirements. CLEAR ms_requirement. ENDIF. ms_requirement-component = iv_component. ENDMETHOD. METHOD set_min_patch. IF ms_requirement-min_patch IS NOT INITIAL. APPEND ms_requirement TO mt_requirements. CLEAR ms_requirement. ENDIF. ms_requirement-min_patch = iv_min_patch. ENDMETHOD. METHOD set_min_release. IF ms_requirement-min_release IS NOT INITIAL. APPEND ms_requirement TO mt_requirements. CLEAR ms_requirement. ENDIF. ms_requirement-min_release = iv_min_release. ENDMETHOD. METHOD get_as_table. IF ms_requirement IS NOT INITIAL. APPEND ms_requirement TO mt_requirements. ENDIF. SORT mt_requirements BY component min_release min_patch. DELETE mt_requirements WHERE component IS INITIAL. DELETE ADJACENT DUPLICATES FROM mt_requirements COMPARING ALL FIELDS. rt_requirements = mt_requirements. ENDMETHOD. ENDCLASS.
[ 31631, 300, 565, 62, 8897, 18883, 5550, 20032, 17941, 29244, 6158, 4810, 3824, 6158, 13, 628, 220, 366, 1212, 18533, 36115, 11, 597, 23418, 2214, 481, 7616, 257, 649, 1700, 13, 198, 220, 366, 3673, 2818, 11, 475, 257, 1310, 1365, 621, 13148, 257, 8379, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 649, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 20274, 8, 41876, 4526, 37, 5390, 300, 565, 62, 8897, 18883, 13, 628, 220, 220, 220, 337, 36252, 50, 900, 62, 42895, 220, 220, 30023, 9863, 2751, 21628, 62, 42895, 220, 220, 41876, 4731, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 1084, 62, 20979, 30023, 9863, 2751, 21628, 62, 1084, 62, 20979, 41876, 4731, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 1084, 62, 17147, 220, 220, 30023, 9863, 2751, 21628, 62, 1084, 62, 17147, 220, 220, 41876, 4731, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 292, 62, 11487, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 17034, 62, 8897, 18883, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 14804, 774, 62, 8897, 24615, 62, 926, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 13845, 62, 8897, 24615, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 14804, 774, 62, 8897, 24615, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45079, 62, 8897, 18883, 41876, 1976, 361, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 14804, 774, 62, 8897, 24615, 62, 926, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 8897, 18883, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 649, 13, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 686, 62, 20274, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 900, 62, 42895, 13, 628, 220, 220, 220, 16876, 13845, 62, 8897, 24615, 12, 42895, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 43504, 10619, 13845, 62, 8897, 24615, 5390, 45079, 62, 8897, 18883, 13, 198, 220, 220, 220, 220, 220, 30301, 1503, 13845, 62, 8897, 24615, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 13845, 62, 8897, 24615, 12, 42895, 796, 21628, 62, 42895, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 900, 62, 1084, 62, 17147, 13, 628, 220, 220, 220, 16876, 13845, 62, 8897, 24615, 12, 1084, 62, 17147, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 43504, 10619, 13845, 62, 8897, 24615, 5390, 45079, 62, 8897, 18883, 13, 198, 220, 220, 220, 220, 220, 30301, 1503, 13845, 62, 8897, 24615, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 13845, 62, 8897, 24615, 12, 1084, 62, 17147, 796, 21628, 62, 1084, 62, 17147, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 900, 62, 1084, 62, 20979, 13, 628, 220, 220, 220, 16876, 13845, 62, 8897, 24615, 12, 1084, 62, 20979, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 43504, 10619, 13845, 62, 8897, 24615, 5390, 45079, 62, 8897, 18883, 13, 198, 220, 220, 220, 220, 220, 30301, 1503, 13845, 62, 8897, 24615, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 13845, 62, 8897, 24615, 12, 1084, 62, 20979, 796, 21628, 62, 1084, 62, 20979, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 292, 62, 11487, 13, 628, 220, 220, 220, 16876, 13845, 62, 8897, 24615, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 43504, 10619, 13845, 62, 8897, 24615, 5390, 45079, 62, 8897, 18883, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 311, 9863, 45079, 62, 8897, 18883, 11050, 7515, 949, 62, 20979, 949, 62, 17147, 13, 198, 220, 220, 220, 5550, 2538, 9328, 45079, 62, 8897, 18883, 33411, 7515, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 5550, 2538, 9328, 5984, 41, 2246, 3525, 35480, 31484, 29462, 16034, 45079, 62, 8897, 18883, 24301, 1503, 2751, 11096, 18930, 3698, 5258, 13, 628, 220, 220, 220, 374, 83, 62, 8897, 18883, 796, 45079, 62, 8897, 18883, 13, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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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 ]
CLASS zcl_generate_demo_data_#### DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES if_oo_adt_classrun. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_generate_demo_data_#### IMPLEMENTATION. METHOD if_oo_adt_classrun~main. " delete existing entries in the database table DELETE FROM zrap_atrav_####. DELETE FROM zrap_abook_####. " insert travel demo data INSERT zrap_atrav_#### FROM ( SELECT FROM /dmo/travel FIELDS uuid( ) AS travel_uuid , travel_id AS travel_id , agency_id AS agency_id , customer_id AS customer_id , begin_date AS begin_date , end_date AS end_date , booking_fee AS booking_fee , total_price AS total_price , currency_code AS currency_code , description AS description , CASE status WHEN 'B' THEN 'A' " accepted WHEN 'X' THEN 'X' " cancelled ELSE 'O' " open END AS overall_status , createdby AS created_by , createdat AS created_at , lastchangedby AS last_changed_by , lastchangedat AS last_changed_at , lastchangedat AS local_last_changed_at ORDER BY travel_id UP TO 200 ROWS ). COMMIT WORK. " insert booking demo data INSERT zrap_abook_#### FROM ( SELECT FROM /dmo/booking AS booking JOIN zrap_atrav_#### AS z ON booking~travel_id = z~travel_id FIELDS uuid( ) AS booking_uuid , z~travel_uuid AS travel_uuid , booking~booking_id AS booking_id , booking~booking_date AS booking_date , booking~customer_id AS customer_id , booking~carrier_id AS carrier_id , booking~connection_id AS connection_id , booking~flight_date AS flight_date , booking~flight_price AS flight_price , booking~currency_code AS currency_code , z~created_by AS created_by , z~last_changed_by AS last_changed_by , z~last_changed_at AS local_last_changed_by ). COMMIT WORK. out->write( 'Travel and booking demo data inserted.'). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 8612, 378, 62, 9536, 78, 62, 7890, 62, 4242, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 611, 62, 2238, 62, 324, 83, 62, 4871, 5143, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 8612, 378, 62, 9536, 78, 62, 7890, 62, 4242, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 611, 62, 2238, 62, 324, 83, 62, 4871, 5143, 93, 12417, 13, 628, 220, 220, 220, 366, 12233, 4683, 12784, 287, 262, 6831, 3084, 198, 220, 220, 220, 5550, 2538, 9328, 16034, 1976, 2416, 62, 265, 4108, 62, 4242, 13, 198, 220, 220, 220, 5550, 2538, 9328, 16034, 1976, 2416, 62, 397, 566, 62, 4242, 13, 628, 220, 220, 366, 7550, 3067, 13605, 1366, 198, 220, 220, 29194, 17395, 1976, 2416, 62, 265, 4108, 62, 4242, 16034, 357, 198, 220, 220, 220, 220, 220, 220, 33493, 198, 220, 220, 220, 220, 220, 220, 220, 220, 16034, 1220, 67, 5908, 14, 35927, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18930, 3698, 5258, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 334, 27112, 7, 220, 1267, 220, 220, 220, 220, 220, 7054, 3067, 62, 12303, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3067, 62, 312, 220, 220, 220, 220, 7054, 3067, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4086, 62, 312, 220, 220, 220, 220, 7054, 4086, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6491, 62, 312, 220, 220, 7054, 6491, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2221, 62, 4475, 220, 220, 220, 7054, 2221, 62, 4475, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 886, 62, 4475, 220, 220, 220, 220, 220, 7054, 886, 62, 4475, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25452, 62, 39071, 220, 220, 7054, 25452, 62, 39071, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2472, 62, 20888, 220, 220, 7054, 2472, 62, 20888, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7395, 62, 8189, 7054, 7395, 62, 8189, 220, 220, 220, 220, 220, 220, 220, 220, 837, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 220, 220, 7054, 6764, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42001, 3722, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42099, 705, 33, 6, 42243, 705, 32, 6, 366, 6292, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42099, 705, 55, 6, 42243, 705, 55, 6, 366, 16769, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17852, 5188, 705, 46, 6, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 1280, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7054, 4045, 62, 13376, 220, 220, 220, 220, 220, 220, 220, 837, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2727, 1525, 220, 220, 220, 220, 7054, 2727, 62, 1525, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2727, 265, 220, 220, 220, 220, 7054, 2727, 62, 265, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 938, 40985, 1525, 7054, 938, 62, 40985, 62, 1525, 220, 220, 220, 220, 220, 220, 837, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 938, 40985, 265, 7054, 938, 62, 40985, 62, 265, 220, 220, 220, 220, 220, 220, 837, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 938, 40985, 265, 7054, 1957, 62, 12957, 62, 40985, 62, 265, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 38678, 11050, 3067, 62, 312, 15958, 5390, 939, 371, 22845, 198, 220, 220, 220, 220, 220, 220, 6739, 198, 220, 220, 220, 220, 22240, 2043, 30936, 13, 628, 220, 220, 220, 220, 366, 7550, 25452, 13605, 1366, 198, 220, 220, 220, 220, 29194, 17395, 1976, 2416, 62, 397, 566, 62, 4242, 16034, 357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 33493, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16034, 220, 220, 1220, 67, 5908, 14, 2070, 278, 220, 220, 220, 7054, 25452, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 32357, 1268, 1976, 2416, 62, 265, 4108, 62, 4242, 7054, 1976, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6177, 220, 220, 25452, 93, 35927, 62, 312, 796, 1976, 93, 35927, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18930, 3698, 5258, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 334, 27112, 7, 1267, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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IPT_COMMENT> *<SINGLE_RUN>X</SINGLE_RUN> *</SCRIPT:HEADER> *<SCRIPT:PRESETTINGS> *</SCRIPT:PRESETTINGS> *<SCRIPT:SCRIPT_CLASS> *---------------------------------------------------------------------* * CLASS lcl_debugger_script DEFINITION *---------------------------------------------------------------------* * *---------------------------------------------------------------------* CLASS lcl_debugger_script DEFINITION INHERITING FROM cl_tpda_script_class_super . PUBLIC SECTION. METHODS: prologue REDEFINITION, init REDEFINITION, script REDEFINITION, end REDEFINITION. PRIVATE SECTION. METHODS: get_key_testcase RETURNING VALUE(testcase) TYPE zdbgl_key_testcases. ENDCLASS. "lcl_debugger_script DEFINITION *---------------------------------------------------------------------* * CLASS lcl_debugger_script IMPLEMENTATION *---------------------------------------------------------------------* * *---------------------------------------------------------------------* CLASS lcl_debugger_script IMPLEMENTATION. METHOD prologue. *** generate abap_source (source handler for ABAP) super->prologue( ). ENDMETHOD. "prolog METHOD init. *** insert your initialization code here ENDMETHOD. "init METHOD script. DATA: key_testcase TYPE zdbgl_key_testcases, source_info TYPE REF TO data. FIELD-SYMBOLS: <prog> TYPE tpda_curr_source_pos. source_info = cl_tpda_ctrl_handler=>get_srcinfo( ). ASSIGN source_info->* TO <prog>. key_testcase = get_key_testcase( ). IF key_testcase IS INITIAL. RETURN. ENDIF. zdbgl_store_locals=>store( source_position = <prog> key_testcase = key_testcase force = abap_true ). me->break( ). ENDMETHOD. "script METHOD end. *** insert your code which shall be executed at the end of the scripting (before trace is saved) *** here ENDMETHOD. "end METHOD get_key_testcase. DATA: fields TYPE STANDARD TABLE OF sval INITIAL SIZE 1, returncode(1). FIELD-SYMBOLS: <field> TYPE sval. APPEND INITIAL LINE TO fields ASSIGNING <field>. <field>-tabname = 'ZDBGL_LOCALS'. <field>-fieldname = 'KEY_TESTCASE'. <field>-fieldtext = text-tca. <field>-field_obl = abap_true. CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING popup_title = text-tca IMPORTING returncode = returncode TABLES fields = fields. IF returncode = 'A'. RETURN. ENDIF. READ TABLE fields ASSIGNING <field> INDEX 1. testcase = <field>-value. ENDMETHOD. ENDCLASS. "lcl_debugger_script IMPLEMENTATION *</SCRIPT:SCRIPT_CLASS> *</SCRIPT:PERSISTENT>
[ 9, 27, 6173, 46023, 25, 47, 4877, 8808, 3525, 29, 198, 2200, 15490, 220, 374, 301, 79, 6814, 62, 12048, 62, 28243, 13, 198, 198, 9, 27, 6173, 46023, 25, 37682, 1137, 29, 198, 9, 27, 6173, 46023, 20608, 29, 57, 11012, 8763, 62, 6173, 46023, 62, 2257, 6965, 62, 8763, 9864, 23333, 3556, 6173, 46023, 20608, 29, 198, 9, 27, 6173, 46023, 62, 31631, 29, 43, 5097, 62, 30531, 30373, 62, 6173, 46023, 3556, 6173, 46023, 62, 31631, 29, 198, 9, 27, 6173, 46023, 62, 9858, 10979, 29, 27509, 1362, 3661, 1968, 25, 15161, 37350, 3556, 6173, 46023, 62, 9858, 10979, 29, 198, 9, 27, 50, 2751, 2538, 62, 49, 4944, 29, 55, 3556, 50, 2751, 2538, 62, 49, 4944, 29, 198, 198, 9, 3556, 6173, 46023, 25, 37682, 1137, 29, 198, 198, 9, 27, 6173, 46023, 25, 48296, 2767, 51, 20754, 29, 198, 198, 9, 3556, 6173, 46023, 25, 48296, 2767, 51, 20754, 29, 198, 198, 9, 27, 6173, 46023, 25, 6173, 46023, 62, 31631, 29, 198, 9, 10097, 30934, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 565, 62, 24442, 1362, 62, 12048, 5550, 20032, 17941, 198, 9, 10097, 30934, 9, 198, 9, 198, 9, 10097, 30934, 9, 198, 31631, 300, 565, 62, 24442, 1362, 62, 12048, 5550, 20032, 17941, 3268, 16879, 2043, 2751, 16034, 220, 537, 62, 34788, 6814, 62, 12048, 62, 4871, 62, 16668, 220, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 13286, 5119, 220, 23848, 36, 20032, 17941, 11, 198, 220, 220, 220, 220, 220, 2315, 220, 220, 220, 23848, 36, 20032, 17941, 11, 198, 220, 220, 220, 220, 220, 4226, 220, 23848, 36, 20032, 17941, 11, 198, 220, 220, 220, 220, 220, 886, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 651, 62, 2539, 62, 9288, 7442, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 9288, 7442, 8, 41876, 1976, 9945, 4743, 62, 2539, 62, 9288, 33964, 13, 198, 198, 10619, 31631, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 75, 565, 62, 24442, 1362, 62, 12048, 5550, 20032, 17941, 198, 9, 10097, 30934, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 565, 62, 24442, 1362, 62, 12048, 30023, 2538, 10979, 6234, 198, 9, 10097, 30934, 9, 198, 9, 198, 9, 10097, 30934, 9, 198, 31631, 300, 565, 62, 24442, 1362, 62, 12048, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 13286, 5119, 13, 198, 8162, 7716, 450, 499, 62, 10459, 357, 10459, 21360, 329, 9564, 2969, 8, 198, 220, 220, 220, 2208, 3784, 1676, 75, 5119, 7, 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, 1676, 6404, 628, 220, 337, 36252, 2315, 13, 198, 8162, 7550, 534, 37588, 2438, 994, 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, 15003, 628, 220, 337, 36252, 4226, 13, 198, 220, 220, 220, 42865, 25, 1994, 62, 9288, 7442, 41876, 1976, 9945, 4743, 62, 2539, 62, 9288, 33964, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2723, 62, 10951, 220, 41876, 4526, 37, 5390, 1366, 13, 198, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 1676, 70, 29, 41876, 256, 79, 6814, 62, 22019, 81, 62, 10459, 62, 1930, 13, 628, 220, 220, 220, 2723, 62, 10951, 796, 537, 62, 34788, 6814, 62, 44755, 62, 30281, 14804, 1136, 62, 10677, 10951, 7, 6739, 198, 220, 220, 220, 24994, 16284, 2723, 62, 10951, 3784, 9, 5390, 1279, 1676, 70, 28401, 198, 220, 220, 220, 1994, 62, 9288, 7442, 796, 651, 62, 2539, 62, 9288, 7442, 7, 6739, 198, 220, 220, 220, 16876, 1994, 62, 9288, 7442, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 1976, 9945, 4743, 62, 8095, 62, 17946, 874, 14804, 8095, 7, 198, 220, 220, 220, 220, 220, 2723, 62, 9150, 796, 1279, 1676, 70, 29, 198, 220, 220, 220, 220, 220, 1994, 62, 9288, 7442, 796, 1994, 62, 9288, 7442, 198, 220, 220, 220, 220, 220, 2700, 796, 450, 499, 62, 7942, 6739, 198, 220, 220, 220, 502, 3784, 9032, 7, 6739, 628, 220, 23578, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 12048, 628, 220, 337, 36252, 886, 13, 198, 8162, 7550, 534, 2438, 543, 2236, 307, 10945, 379, 262, 886, 286, 262, 36883, 357, 19052, 12854, 318, 7448, 8, 198, 8162, 994, 628, 220, 23578, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 437, 628, 220, 337, 36252, 651, 62, 2539, 62, 9288, 7442, 13, 198, 220, 220, 220, 42865, 25, 7032, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 264, 2100, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3268, 2043, 12576, 311, 35400, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1441, 8189, 7, 16, 737, 198, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 3245, 29, 41876, 264, 2100, 13, 628, 220, 220, 220, 43504, 10619, 3268, 2043, 12576, 48920, 5390, 7032, 24994, 3528, 15871, 1279, 3245, 28401, 198, 220, 220, 220, 1279, 3245, 29, 12, 8658, 3672, 796, 705, 57, 11012, 8763, 62, 29701, 23333, 4458, 198, 220, 220, 220, 1279, 3245, 29, 12, 3245, 3672, 796, 705, 20373, 62, 51, 1546, 4825, 11159, 4458, 198, 220, 220, 220, 1279, 3245, 29, 12, 3245, 5239, 796, 2420, 12, 83, 6888, 13, 198, 220, 220, 220, 1279, 3245, 29, 12, 3245, 62, 45292, 796, 450, 499, 62, 7942, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 47, 3185, 8577, 62, 18851, 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, 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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 ]
CLASS zcl_abapgit_objects_files DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. METHODS: constructor IMPORTING is_item TYPE zif_abapgit_definitions=>ty_item iv_path TYPE string OPTIONAL, add_string IMPORTING iv_extra TYPE clike OPTIONAL iv_ext TYPE string iv_string TYPE string RAISING zcx_abapgit_exception, read_string IMPORTING iv_extra TYPE clike OPTIONAL iv_ext TYPE string RETURNING VALUE(rv_string) TYPE string RAISING zcx_abapgit_exception, add_xml IMPORTING iv_extra TYPE clike OPTIONAL io_xml TYPE REF TO zcl_abapgit_xml_output iv_normalize TYPE sap_bool DEFAULT abap_true is_metadata TYPE zif_abapgit_definitions=>ty_metadata OPTIONAL RAISING zcx_abapgit_exception, * needed since type-check during dynamic call fails even if the object is compatible add_xml_from_plugin IMPORTING iv_extra TYPE clike OPTIONAL io_xml TYPE REF TO object iv_normalize TYPE sap_bool DEFAULT abap_true RAISING zcx_abapgit_exception ##called, read_xml IMPORTING iv_extra TYPE clike OPTIONAL RETURNING VALUE(ro_xml) TYPE REF TO zcl_abapgit_xml_input RAISING zcx_abapgit_exception, read_abap IMPORTING iv_extra TYPE clike OPTIONAL iv_error TYPE sap_bool DEFAULT abap_true RETURNING VALUE(rt_abap) TYPE abaptxt255_tab RAISING zcx_abapgit_exception, add_abap IMPORTING iv_extra TYPE clike OPTIONAL it_abap TYPE STANDARD TABLE RAISING zcx_abapgit_exception, add IMPORTING is_file TYPE zif_abapgit_definitions=>ty_file, add_raw IMPORTING iv_extra TYPE clike OPTIONAL iv_ext TYPE string iv_data TYPE xstring RAISING zcx_abapgit_exception, read_raw IMPORTING iv_extra TYPE clike OPTIONAL iv_ext TYPE string RETURNING VALUE(rv_data) TYPE xstring RAISING zcx_abapgit_exception, get_files RETURNING VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_tt, set_files IMPORTING it_files TYPE zif_abapgit_definitions=>ty_files_tt, get_accessed_files RETURNING VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_file_signatures_tt. PRIVATE SECTION. DATA: ms_item TYPE zif_abapgit_definitions=>ty_item, mt_accessed_files TYPE zif_abapgit_definitions=>ty_file_signatures_tt, mt_files TYPE zif_abapgit_definitions=>ty_files_tt, mv_path TYPE string. METHODS: read_file IMPORTING iv_filename TYPE string iv_error TYPE abap_bool DEFAULT abap_true EXPORTING ev_data TYPE xstring RAISING zcx_abapgit_exception, filename IMPORTING iv_extra TYPE clike OPTIONAL iv_ext TYPE string RETURNING VALUE(rv_filename) TYPE string. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECTS_FILES IMPLEMENTATION. METHOD add. APPEND is_file TO mt_files. ENDMETHOD. METHOD add_abap. DATA: lv_source TYPE string, ls_file TYPE zif_abapgit_definitions=>ty_file. CONCATENATE LINES OF it_abap INTO lv_source SEPARATED BY zif_abapgit_definitions=>c_newline. * when editing files via eg. GitHub web interface it adds a newline at end of file lv_source = lv_source && zif_abapgit_definitions=>c_newline. ls_file-path = '/'. ls_file-filename = filename( iv_extra = iv_extra iv_ext = 'abap' ). "#EC NOTEXT ls_file-data = zcl_abapgit_convert=>string_to_xstring_utf8( lv_source ). APPEND ls_file TO mt_files. ENDMETHOD. METHOD add_raw. DATA: ls_file TYPE zif_abapgit_definitions=>ty_file. ls_file-path = '/'. ls_file-data = iv_data. ls_file-filename = filename( iv_extra = iv_extra iv_ext = iv_ext ). APPEND ls_file TO mt_files. ENDMETHOD. METHOD add_string. DATA: ls_file TYPE zif_abapgit_definitions=>ty_file. ls_file-path = '/'. ls_file-filename = filename( iv_extra = iv_extra iv_ext = iv_ext ). "#EC NOTEXT ls_file-data = zcl_abapgit_convert=>string_to_xstring_utf8( iv_string ). APPEND ls_file TO mt_files. ENDMETHOD. METHOD add_xml. DATA: lv_xml TYPE string, ls_file TYPE zif_abapgit_definitions=>ty_file. lv_xml = io_xml->render( iv_normalize = iv_normalize is_metadata = is_metadata ). ls_file-path = '/'. ls_file-filename = filename( iv_extra = iv_extra iv_ext = 'xml' ). "#EC NOTEXT REPLACE FIRST OCCURRENCE OF REGEX '<\?xml version="1\.0" encoding="[\w-]+"\?>' IN lv_xml WITH '<?xml version="1.0" encoding="utf-8"?>'. ASSERT sy-subrc = 0. ls_file-data = zcl_abapgit_convert=>string_to_xstring_utf8( lv_xml ). APPEND ls_file TO mt_files. ENDMETHOD. METHOD add_xml_from_plugin. * this method wraps add_xml as in the plugin. This is necessary as the wrapped * xml-object in the plugin can only be typed to object. * ABAP does not perform implicit type casts (also if compatible) in signatures, * therefore this method's signature is typed ref to object DATA lo_xml TYPE REF TO zcl_abapgit_xml_output. lo_xml ?= io_xml. me->add_xml( iv_extra = iv_extra io_xml = lo_xml iv_normalize = iv_normalize ). ENDMETHOD. METHOD constructor. ms_item = is_item. mv_path = iv_path. ENDMETHOD. METHOD filename. DATA: lv_obj_name TYPE string. lv_obj_name = ms_item-obj_name. IF ms_item-obj_type = 'DEVC'. " Packages have a fixed filename so that the repository can be installed to a different " package(-hierarchy) on the client and not show up as a different package in the repo. lv_obj_name = 'package'. ENDIF. IF iv_extra IS INITIAL. CONCATENATE lv_obj_name '.' ms_item-obj_type '.' iv_ext INTO rv_filename. "#EC NOTEXT ELSE. CONCATENATE lv_obj_name '.' ms_item-obj_type '.' iv_extra '.' iv_ext INTO rv_filename. "#EC NOTEXT ENDIF. * handle namespaces REPLACE ALL OCCURRENCES OF '/' IN rv_filename WITH '#'. TRANSLATE rv_filename TO LOWER CASE. ENDMETHOD. METHOD get_accessed_files. rt_files = mt_accessed_files. ENDMETHOD. METHOD get_files. rt_files = mt_files. ENDMETHOD. METHOD read_abap. DATA: lv_filename TYPE string, lv_data TYPE xstring, lv_abap TYPE string. lv_filename = filename( iv_extra = iv_extra iv_ext = 'abap' ). "#EC NOTEXT read_file( EXPORTING iv_filename = lv_filename iv_error = iv_error IMPORTING ev_data = lv_data ). IF lv_data IS INITIAL. " Post-handling of iv_error = false RETURN. ENDIF. lv_abap = zcl_abapgit_convert=>xstring_to_string_utf8( lv_data ). SPLIT lv_abap AT zif_abapgit_definitions=>c_newline INTO TABLE rt_abap. ENDMETHOD. METHOD read_file. FIELD-SYMBOLS: <ls_file> LIKE LINE OF mt_files, <ls_accessed> LIKE LINE OF mt_accessed_files. CLEAR ev_data. IF mv_path IS NOT INITIAL. READ TABLE mt_files ASSIGNING <ls_file> WITH KEY path = mv_path filename = iv_filename. ELSE. READ TABLE mt_files ASSIGNING <ls_file> WITH KEY filename = iv_filename. ENDIF. IF sy-subrc <> 0. IF iv_error = abap_true. zcx_abapgit_exception=>raise( |File not found: { iv_filename }| ). ELSE. RETURN. ENDIF. ENDIF. " Update access table READ TABLE mt_accessed_files TRANSPORTING NO FIELDS WITH KEY path = <ls_file>-path filename = <ls_file>-filename. IF sy-subrc > 0. " Not found ? -> Add APPEND INITIAL LINE TO mt_accessed_files ASSIGNING <ls_accessed>. MOVE-CORRESPONDING <ls_file> TO <ls_accessed>. ENDIF. ev_data = <ls_file>-data. ENDMETHOD. METHOD read_raw. DATA: lv_filename TYPE string. lv_filename = filename( iv_extra = iv_extra iv_ext = iv_ext ). read_file( EXPORTING iv_filename = lv_filename IMPORTING ev_data = rv_data ). ENDMETHOD. METHOD read_string. DATA: lv_filename TYPE string, lv_data TYPE xstring. lv_filename = filename( iv_extra = iv_extra iv_ext = iv_ext ). "#EC NOTEXT read_file( EXPORTING iv_filename = lv_filename IMPORTING ev_data = lv_data ). rv_string = zcl_abapgit_convert=>xstring_to_string_utf8( lv_data ). ENDMETHOD. METHOD read_xml. DATA: lv_filename TYPE string, lv_data TYPE xstring, lv_xml TYPE string. lv_filename = filename( iv_extra = iv_extra iv_ext = 'xml' ). "#EC NOTEXT read_file( EXPORTING iv_filename = lv_filename IMPORTING ev_data = lv_data ). lv_xml = zcl_abapgit_convert=>xstring_to_string_utf8( lv_data ). CREATE OBJECT ro_xml EXPORTING iv_xml = lv_xml. ENDMETHOD. METHOD set_files. mt_files = it_files. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16624, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 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, 318, 62, 9186, 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, 220, 220, 21628, 62, 6978, 41876, 4731, 39852, 2849, 1847, 11, 198, 220, 220, 220, 220, 220, 751, 62, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 26086, 220, 41876, 537, 522, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 2302, 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, 8841, 41876, 4731, 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, 1100, 62, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 26086, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 537, 522, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 2302, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 8841, 8, 41876, 4731, 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, 751, 62, 19875, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 26086, 220, 220, 220, 220, 41876, 537, 522, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 19875, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 19875, 62, 22915, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 11265, 1096, 41876, 31841, 62, 30388, 5550, 38865, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 38993, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 38993, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 9, 2622, 1201, 2099, 12, 9122, 1141, 8925, 869, 10143, 772, 611, 262, 2134, 318, 11670, 198, 220, 220, 220, 220, 220, 751, 62, 19875, 62, 6738, 62, 33803, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 26086, 220, 220, 220, 220, 41876, 537, 522, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 19875, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 2134, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 11265, 1096, 41876, 31841, 62, 30388, 5550, 38865, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 22492, 7174, 11, 198, 220, 220, 220, 220, 220, 1100, 62, 19875, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 26086, 220, 220, 220, 220, 220, 41876, 537, 522, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 19875, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 19875, 62, 15414, 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, 1100, 62, 397, 499, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 26086, 220, 220, 220, 220, 220, 220, 41876, 537, 522, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 18224, 220, 220, 220, 220, 220, 220, 41876, 31841, 62, 30388, 5550, 38865, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 17034, 62, 397, 499, 8, 41876, 450, 2373, 742, 13381, 62, 8658, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 751, 62, 397, 499, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 26086, 41876, 537, 522, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 397, 499, 220, 41876, 49053, 9795, 43679, 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, 751, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 318, 62, 7753, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 7753, 11, 198, 220, 220, 220, 220, 220, 751, 62, 1831, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 26086, 41876, 537, 522, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 2302, 220, 220, 41876, 4731, 198, 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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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 ]
CLASS /dmo/cx_flight_legacy22 DEFINITION PUBLIC INHERITING FROM cx_static_check FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES if_t100_message . CONSTANTS: gc_msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', BEGIN OF agency_unkown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '001', attr1 TYPE scx_attrname VALUE 'MV_AGENCY_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF agency_unkown, BEGIN OF customer_unkown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '002', attr1 TYPE scx_attrname VALUE 'MV_CUSTOMER_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF customer_unkown, BEGIN OF connection_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '004', attr1 TYPE scx_attrname VALUE 'MV_CARRIER_ID', attr2 TYPE scx_attrname VALUE 'MV_CONNECTION_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF connection_unknown , BEGIN OF carrier_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '005', attr1 TYPE scx_attrname VALUE 'MV_CARRIER_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF carrier_unknown , BEGIN OF supplement_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '006', attr1 TYPE scx_attrname VALUE 'MV_SUPPLEMENT_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF supplement_unknown, BEGIN OF travel_status_invalid, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '007', attr1 TYPE scx_attrname VALUE 'MV_STATUS', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF travel_status_invalid, BEGIN OF currency_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '008', attr1 TYPE scx_attrname VALUE 'MV_CURRENCY_CODE', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF currency_unknown, BEGIN OF travel_no_key, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '009', attr1 TYPE scx_attrname VALUE '', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF travel_no_key, BEGIN OF no_begin_date, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '013', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF no_begin_date, BEGIN OF no_end_date, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '014', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF no_end_date, BEGIN OF end_date_before_begin_date, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '015', attr1 TYPE scx_attrname VALUE 'MV_BEGIN_DATE', attr2 TYPE scx_attrname VALUE 'MV_END_DATE', attr3 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr4 TYPE scx_attrname VALUE '', END OF end_date_before_begin_date, BEGIN OF travel_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '016', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF travel_unknown, BEGIN OF booking_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '017', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_unknown, BEGIN OF booking_no_key, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '018', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_no_key, BEGIN OF booking_booking_date_invalid, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '019', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE 'MV_BOOKING_DATE', attr4 TYPE scx_attrname VALUE '', END OF booking_booking_date_invalid, BEGIN OF flight_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '020', attr1 TYPE scx_attrname VALUE 'MV_CARRIER_ID', attr2 TYPE scx_attrname VALUE 'MV_CONNECTION_ID', attr3 TYPE scx_attrname VALUE 'MV_FLIGHT_DATE', attr4 TYPE scx_attrname VALUE '', END OF flight_unknown, BEGIN OF booking_supplement_unknown, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '021', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE 'MV_BOOKING_SUPPLEMENT_ID', attr4 TYPE scx_attrname VALUE '', END OF booking_supplement_unknown, BEGIN OF booking_supplement_no_key, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '022', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_supplement_no_key, BEGIN OF booking_exists, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '023', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_exists, BEGIN OF booking_supplement_exists, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '024', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE 'MV_BOOKING_SUPPLEMENT_ID', attr4 TYPE scx_attrname VALUE '', END OF booking_supplement_exists, BEGIN OF travel_no_control, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '025', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF travel_no_control, BEGIN OF booking_no_control, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '026', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_no_control, BEGIN OF booking_supplement_no_control, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '027', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE 'MV_BOOKING_SUPPLEMENT_ID', attr4 TYPE scx_attrname VALUE '', END OF booking_supplement_no_control, BEGIN OF booking_supplement_suppl_id_u, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '028', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE 'MV_BOOKING_SUPPLEMENT_ID', attr4 TYPE scx_attrname VALUE '', END OF booking_supplement_suppl_id_u, BEGIN OF booking_supplement_pri_curr_u, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '029', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE 'MV_BOOKING_SUPPLEMENT_ID', attr4 TYPE scx_attrname VALUE '', END OF booking_supplement_pri_curr_u, BEGIN OF booking_flight_u, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '030', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_flight_u, BEGIN OF booking_price_currency_u, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '031', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF booking_price_currency_u, BEGIN OF travel_lock, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '032', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE 'MV_UNAME', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF travel_lock, BEGIN OF travel_already_exists, msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_22', msgno TYPE symsgno VALUE '033', attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID', attr2 TYPE scx_attrname VALUE '', attr3 TYPE scx_attrname VALUE '', attr4 TYPE scx_attrname VALUE '', END OF travel_already_exists. METHODS constructor IMPORTING textid LIKE if_t100_message=>t100key OPTIONAL previous LIKE previous OPTIONAL travel_id TYPE /dmo/travel_id22 OPTIONAL booking_id TYPE /dmo/booking_id22 OPTIONAL booking_supplement_id TYPE /dmo/booking_supplement_id22 OPTIONAL agency_id TYPE /dmo/agency_id22 OPTIONAL customer_id TYPE /dmo/customer_id22 OPTIONAL carrier_id TYPE /dmo/carrier22-carrier_id OPTIONAL connection_id TYPE /dmo/connecti_22-connection_id OPTIONAL supplement_id TYPE /dmo/suppleme_22-supplement_id OPTIONAL begin_date TYPE /dmo/begin_date22 OPTIONAL end_date TYPE /dmo/end_date22 OPTIONAL booking_date TYPE /dmo/booking_date22 OPTIONAL flight_date TYPE /dmo/flight_date22 OPTIONAL status TYPE /dmo/travel_status22 OPTIONAL currency_code TYPE /dmo/currency_code22 OPTIONAL uname TYPE syuname OPTIONAL. DATA: mv_travel_id TYPE /dmo/travel_id22, mv_booking_id TYPE /dmo/booking_id22, mv_booking_supplement_id TYPE /dmo/booking_supplement_id22, mv_agency_id TYPE /dmo/agency_id22, mv_customer_id TYPE /dmo/customer_id22, mv_carrier_id TYPE /dmo/carrier22-carrier_id, mv_connection_id TYPE /dmo/connecti_22-connection_id, mv_supplement_id TYPE /dmo/suppleme_22-supplement_id, mv_begin_date TYPE /dmo/begin_date22, mv_end_date TYPE /dmo/end_date22, mv_booking_date TYPE /dmo/booking_date22, mv_flight_date TYPE /dmo/flight_date22, mv_status TYPE /dmo/travel_status22, mv_currency_code TYPE /dmo/currency_code22, mv_uname TYPE syuname. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS /dmo/cx_flight_legacy22 IMPLEMENTATION. METHOD constructor ##ADT_SUPPRESS_GENERATION. super->constructor( previous = previous ). me->mv_travel_id = travel_id. me->mv_booking_id = booking_id. me->mv_booking_supplement_id = booking_supplement_id. me->mv_agency_id = agency_id. me->mv_customer_id = customer_id. me->mv_carrier_id = carrier_id. me->mv_connection_id = connection_id. me->mv_supplement_id = supplement_id. me->mv_begin_date = begin_date. me->mv_end_date = end_date. me->mv_booking_date = booking_date. me->mv_flight_date = flight_date. me->mv_status = status. me->mv_currency_code = currency_code. me->mv_uname = uname. CLEAR me->textid. IF textid IS INITIAL. if_t100_message~t100key = if_t100_message=>default_textid. ELSE. if_t100_message~t100key = textid. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1220, 67, 5908, 14, 66, 87, 62, 22560, 62, 1455, 1590, 1828, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 43213, 62, 12708, 62, 9122, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 611, 62, 83, 3064, 62, 20500, 764, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 308, 66, 62, 19662, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 1828, 3256, 628, 220, 220, 220, 220, 220, 347, 43312, 3963, 4086, 62, 2954, 593, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 1828, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 8298, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 44, 53, 62, 4760, 45155, 62, 2389, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 17, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 18, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 19, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 4086, 62, 2954, 593, 11, 628, 220, 220, 220, 220, 220, 347, 43312, 3963, 6491, 62, 2954, 593, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 1828, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 21601, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 44, 53, 62, 34, 7759, 2662, 1137, 62, 2389, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 17, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 18, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 19, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 6491, 62, 2954, 593, 11, 628, 220, 220, 220, 220, 220, 347, 43312, 3963, 4637, 62, 34680, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 1828, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 22914, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 44, 53, 62, 20034, 7112, 1137, 62, 2389, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 17, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 44, 53, 62, 10943, 45, 24565, 62, 2389, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 18, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 19, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 4637, 62, 34680, 220, 220, 220, 220, 220, 837, 628, 220, 220, 220, 220, 220, 347, 43312, 3963, 11920, 62, 34680, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 1828, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 22544, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 44, 53, 62, 20034, 7112, 1137, 62, 2389, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 17, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 18, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 19, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 11920, 62, 34680, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 837, 628, 220, 220, 220, 220, 220, 347, 43312, 3963, 10327, 62, 34680, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 1828, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 28041, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 16, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 44, 53, 62, 40331, 16437, 10979, 62, 2389, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 17, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 18, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 708, 81, 19, 41876, 629, 87, 62, 35226, 3672, 26173, 8924, 705, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 10327, 62, 34680, 11, 628, 220, 220, 220, 220, 220, 347, 43312, 3963, 3067, 62, 13376, 62, 259, 12102, 11, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 312, 41876, 827, 19662, 312, 26173, 8924, 31051, 35, 11770, 14, 24187, 62, 3697, 9947, 62, 2538, 62, 1828, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 3919, 41876, 827, 19662, 3919, 26173, 8924, 705, 25816, 3256, 198, 220, 220, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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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 ]
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: lv_public TYPE string, li_message TYPE REF TO zif_abappgp_message. lv_public = zcl_abappgp_unit_test=>get_public_key( ). zcl_abappgp_unit_test=>message_identity( lv_public ). 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, 300, 85, 62, 11377, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 20500, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 1324, 31197, 62, 20500, 13, 628, 198, 220, 220, 220, 300, 85, 62, 11377, 796, 1976, 565, 62, 397, 1324, 31197, 62, 20850, 62, 9288, 14804, 1136, 62, 11377, 62, 2539, 7, 6739, 628, 220, 220, 220, 1976, 565, 62, 397, 1324, 31197, 62, 20850, 62, 9288, 14804, 20500, 62, 738, 414, 7, 300, 85, 62, 11377, 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 ]
*&---------------------------------------------------------------------* *& Report ZTEST_EXCEPTIONS *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT ztest_exceptions. CLASS lcl_test DEFINITION. PUBLIC SECTION. CLASS-METHODS test. ENDCLASS. CLASS lcl_test IMPLEMENTATION. METHOD test. DATA: lx_static TYPE REF TO cx_static_check. TRY. RAISE EXCEPTION TYPE zcx_test. CATCH cx_static_check INTO lx_static. WRITE: / lx_static->get_text( ). ENDTRY. TRY. RAISE EXCEPTION TYPE zcx_test2. CATCH cx_static_check INTO lx_static. WRITE: / lx_static->get_text( ). ENDTRY. ENDMETHOD. ENDCLASS. START-OF-SELECTION. CALL METHOD lcl_test=>test( ).
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 1168, 51, 6465, 62, 6369, 42006, 11053, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 2200, 15490, 1976, 9288, 62, 1069, 11755, 13, 198, 198, 31631, 300, 565, 62, 9288, 5550, 20032, 17941, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 1332, 13, 198, 198, 10619, 31631, 13, 198, 31631, 300, 565, 62, 9288, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 1332, 13, 198, 220, 220, 220, 42865, 25, 300, 87, 62, 12708, 41876, 4526, 37, 5390, 43213, 62, 12708, 62, 9122, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 24352, 7788, 42006, 2849, 41876, 1976, 66, 87, 62, 9288, 13, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 12708, 62, 9122, 39319, 300, 87, 62, 12708, 13, 198, 220, 220, 220, 220, 220, 220, 220, 44423, 25, 1220, 300, 87, 62, 12708, 3784, 1136, 62, 5239, 7, 6739, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 24352, 7788, 42006, 2849, 41876, 1976, 66, 87, 62, 9288, 17, 13, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 12708, 62, 9122, 39319, 300, 87, 62, 12708, 13, 198, 220, 220, 220, 220, 220, 220, 220, 44423, 25, 1220, 300, 87, 62, 12708, 3784, 1136, 62, 5239, 7, 6739, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 628, 220, 42815, 337, 36252, 300, 565, 62, 9288, 14804, 9288, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_enhs DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. PROTECTED SECTION. PRIVATE SECTION. METHODS: factory IMPORTING iv_tool TYPE enhtooltype RETURNING VALUE(ri_enho) TYPE REF TO zif_abapgit_object_enhs RAISING zcx_abapgit_exception. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_ENHS IMPLEMENTATION. METHOD factory. CASE iv_tool. WHEN cl_enh_tool_badi_def=>tooltype. CREATE OBJECT ri_enho TYPE zcl_abapgit_object_enhs_badi_d. WHEN cl_enh_tool_hook_def=>tool_type. CREATE OBJECT ri_enho TYPE zcl_abapgit_object_enhs_hook_d. WHEN OTHERS. zcx_abapgit_exception=>raise( |ENHS: Unsupported tool { iv_tool }| ). ENDCASE. ENDMETHOD. METHOD zif_abapgit_object~changed_by. DATA: lv_spot_name TYPE enhspotname, li_spot_ref TYPE REF TO if_enh_spot_tool. lv_spot_name = ms_item-obj_name. TRY. li_spot_ref = cl_enh_factory=>get_enhancement_spot( lv_spot_name ). li_spot_ref->get_attributes( IMPORTING changedby = rv_user ). CATCH cx_enh_root. rv_user = c_user_unknown. ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_spot_name TYPE enhspotname, li_enh_object TYPE REF TO if_enh_object. lv_spot_name = ms_item-obj_name. TRY. li_enh_object ?= cl_enh_factory=>get_enhancement_spot( spot_name = lv_spot_name lock = abap_true ). li_enh_object->delete( nevertheless_delete = abap_true run_dark = abap_true ). li_enh_object->unlock( ). CATCH cx_enh_root. zcx_abapgit_exception=>raise( 'Error from CL_ENH_FACTORY' ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lv_parent TYPE enhspotcompositename, lv_spot_name TYPE enhspotname, lv_tool TYPE enhspottooltype, lv_package LIKE iv_package, li_spot_ref TYPE REF TO if_enh_spot_tool, li_enhs TYPE REF TO zif_abapgit_object_enhs. IF zif_abapgit_object~exists( ) = abap_true. zif_abapgit_object~delete( ). ENDIF. io_xml->read( EXPORTING iv_name = 'TOOL' CHANGING cg_data = lv_tool ). lv_spot_name = ms_item-obj_name. lv_package = iv_package. TRY. cl_enh_factory=>create_enhancement_spot( EXPORTING spot_name = lv_spot_name tooltype = lv_tool dark = abap_false compositename = lv_parent IMPORTING spot = li_spot_ref CHANGING devclass = lv_package ). CATCH cx_enh_root. zcx_abapgit_exception=>raise( 'Error from CL_ENH_FACTORY' ). ENDTRY. li_enhs = factory( lv_tool ). li_enhs->deserialize( io_xml = io_xml iv_package = iv_package ii_enh_spot_tool = li_spot_ref ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_spot_name TYPE enhspotname, li_spot_ref TYPE REF TO if_enh_spot_tool. lv_spot_name = ms_item-obj_name. TRY. li_spot_ref = cl_enh_factory=>get_enhancement_spot( lv_spot_name ). rv_bool = abap_true. CATCH cx_enh_root. rv_bool = abap_false. ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = abap_false. ENDMETHOD. METHOD zif_abapgit_object~jump. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ms_item-obj_name object_type = 'ENHS' in_new_window = abap_true. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_spot_name TYPE enhspotname, li_spot_ref TYPE REF TO if_enh_spot_tool, li_enhs TYPE REF TO zif_abapgit_object_enhs, lx_root TYPE REF TO cx_root. lv_spot_name = ms_item-obj_name. TRY. li_spot_ref = cl_enh_factory=>get_enhancement_spot( lv_spot_name ). CATCH cx_enh_root INTO lx_root. zcx_abapgit_exception=>raise( 'Error from CL_ENH_FACTORY' ). ENDTRY. li_enhs = factory( li_spot_ref->get_tool( ) ). li_enhs->serialize( io_xml = io_xml ii_enh_spot_tool = li_spot_ref ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 268, 11994, 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, 8860, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 25981, 220, 220, 220, 220, 220, 220, 220, 41876, 551, 4352, 970, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 268, 8873, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 15252, 62, 268, 11994, 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, 1677, 7998, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 8860, 13, 628, 220, 220, 220, 42001, 21628, 62, 25981, 13, 198, 220, 220, 220, 220, 220, 42099, 537, 62, 16550, 62, 25981, 62, 65, 9189, 62, 4299, 14804, 25981, 4906, 13, 198, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 374, 72, 62, 268, 8873, 41876, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 268, 11994, 62, 65, 9189, 62, 67, 13, 198, 220, 220, 220, 220, 220, 42099, 537, 62, 16550, 62, 25981, 62, 25480, 62, 4299, 14804, 25981, 62, 4906, 13, 198, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 374, 72, 62, 268, 8873, 41876, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 268, 11994, 62, 25480, 62, 67, 13, 198, 220, 220, 220, 220, 220, 42099, 440, 4221, 4877, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 930, 1677, 7998, 25, 791, 15999, 2891, 1391, 21628, 62, 25981, 1782, 91, 6739, 198, 220, 220, 220, 23578, 34, 11159, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 20485, 62, 3672, 41876, 5881, 20485, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 20485, 62, 5420, 220, 41876, 4526, 37, 5390, 611, 62, 16550, 62, 20485, 62, 25981, 13, 628, 220, 220, 220, 300, 85, 62, 20485, 62, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 20485, 62, 5420, 796, 537, 62, 16550, 62, 69, 9548, 14804, 1136, 62, 16550, 590, 434, 62, 20485, 7, 300, 85, 62, 20485, 62, 3672, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 20485, 62, 5420, 3784, 1136, 62, 1078, 7657, 7, 30023, 9863, 2751, 3421, 1525, 796, 374, 85, 62, 7220, 6739, 628, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 16550, 62, 15763, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 85, 62, 7220, 796, 269, 62, 7220, 62, 34680, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 33678, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 20485, 62, 3672, 220, 41876, 5881, 20485, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 16550, 62, 15252, 41876, 4526, 37, 5390, 611, 62, 16550, 62, 15252, 13, 628, 220, 220, 220, 300, 85, 62, 20485, 62, 3672, 220, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 16550, 62, 15252, 5633, 28, 537, 62, 16550, 62, 69, 9548, 14804, 1136, 62, 16550, 590, 434, 62, 20485, 7, 4136, 62, 3672, 796, 300, 85, 62, 20485, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5793, 220, 220, 220, 220, 220, 796, 450, 499, 62, 7942, 6739, 628, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 16550, 62, 15252, 3784, 33678, 7, 19032, 62, 33678, 796, 450, 499, 62, 7942, 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, 1057, 62, 21953, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 450, 499, 62, 7942, 6739, 628, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 16550, 62, 15252, 3784, 403, 5354, 7, 6739, 628, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 16550, 62, 15763, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 12331, 422, 7852, 62, 1677, 39, 62, 37, 10659, 15513, 6, 6739, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 8906, 48499, 1096, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 8000, 220, 220, 220, 41876, 5881, 20485, 785, 1930, 270 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZSAPLINK_CLASS definition public inheriting from ZSAPLINK_OO create public . public section. methods CHECKEXISTS redefinition . methods CREATEIXMLDOCFROMOBJECT redefinition . methods CREATEOBJECTFROMIXMLDOC redefinition . protected section. constants C_XML_KEY_METHOD_DOCUMENTATION type STRING value 'methodDocumentation'. "#EC NOTEXT constants C_XML_KEY_TEXTELEMENT type STRING value 'textElement'. "#EC NOTEXT constants C_XML_KEY_TEXTPOOL type STRING value 'textPool'. "#EC NOTEXT constants C_XML_KEY_CLASS_DOCUMENTATION type STRING value 'classDocumentation'. "#EC NOTEXT constants C_XML_KEY_LANGUAGE type STRING value 'language'. "#EC NOTEXT constants C_XML_KEY_OBJECT type STRING value 'OBJECT'. "#EC NOTEXT constants C_XML_KEY_SPRAS type STRING value 'SPRAS'. "#EC NOTEXT constants C_XML_KEY_TEXTLINE type STRING value 'textLine'. "#EC NOTEXT methods CREATE_DOCUMENTATION . methods CREATE_METHOD_DOCUMENTATION importing !NODE type ref to IF_IXML_ELEMENT . methods CREATE_SECTIONS . methods CREATE_TEXTPOOL . methods FINDIMPLEMENTINGCLASS importing !METHODNAME type STRING !STARTCLASS type STRING optional returning value(CLASSNAME) type STRING . methods GET_DOCUMENTATION changing !ROOTNODE type ref to IF_IXML_ELEMENT . methods GET_METHOD_DOCUMENTATION importing !METHOD_KEY type SEOCPDKEY changing !ROOTNODE type ref to IF_IXML_ELEMENT . methods GET_SECTIONS changing !ROOTNODE type ref to IF_IXML_ELEMENT . methods GET_TEXTPOOL changing !ROOTNODE type ref to IF_IXML_ELEMENT . methods DELETEOBJECT redefinition . methods GETOBJECTTYPE redefinition . private section. endclass. "ZSAPLINK_CLASS definition *----------------------------------------------------------------------* * class ZSAPLINK_CLASS implementation. *----------------------------------------------------------------------* * *----------------------------------------------------------------------* class ZSAPLINK_CLASS implementation. method CHECKEXISTS. */---------------------------------------------------------------------\ *| This file is part of SAPlink. | *| | *| The code of this project is provided to you under the current | *| version of the SAP Code Exchange Terms of Use. You can find the | *| text on the SAP Code Exchange webpage at http://www.sdn.sap.com | *| | *| SAPlink is provided to you AS IS with no guarantee, warranty or | *| support. | *\---------------------------------------------------------------------/ data classkey type SEOCLSKEY. data not_active TYPE SEOX_BOOLEAN. classKey-clsName = objname. call function 'SEO_CLASS_EXISTENCE_CHECK' EXPORTING clskey = classkey IMPORTING not_active = not_active EXCEPTIONS * not_specified = 1 not_existing = 2. * is_interface = 3 * no_text = 4 * inconsistent = 5 * others = 6. if sy-subrc <> 2. exists = 'X'. endif. endmethod. METHOD createixmldocfromobject. */---------------------------------------------------------------------\ *| This file is part of SAPlink. | *| | *| The code of this project is provided to you under the current | *| version of the SAP Code Exchange Terms of Use. You can find the | *| text on the SAP Code Exchange webpage at http://www.sdn.sap.com | *| | *| SAPlink is provided to you AS IS with no guarantee, warranty or | *| support. | *\---------------------------------------------------------------------/ DATA localimplementation TYPE REF TO if_ixml_element. DATA localtypes TYPE REF TO if_ixml_element. DATA localmacros TYPE REF TO if_ixml_element. DATA rootnode TYPE REF TO if_ixml_element. DATA reportlist TYPE STANDARD TABLE OF string. DATA includename TYPE program. DATA _classname TYPE seoclsname. DATA reportstring TYPE string. DATA rc TYPE sysubrc. DATA classdescr TYPE REF TO cl_abap_classdescr. DATA typedescr TYPE REF TO cl_abap_typedescr. DATA methoddescr TYPE abap_methdescr. DATA methodnode TYPE REF TO if_ixml_element. DATA parameternode TYPE REF TO if_ixml_element. DATA sourcenode TYPE REF TO if_ixml_element. DATA exceptionnode TYPE REF TO if_ixml_element. DATA exceptionlist TYPE seos_exceptions_r. DATA anexception TYPE vseoexcep. DATA inheritancenode TYPE REF TO if_ixml_element. DATA redefnode TYPE REF TO if_ixml_element. DATA tempstring TYPE string. DATA methodkey TYPE seocpdkey. DATA clsmethkey TYPE seocmpkey. DATA methodproperties TYPE vseomethod. DATA classkey TYPE seoclskey. DATA classproperties TYPE vseoclass. DATA paramdescr TYPE abap_parmdescr. DATA paramkey TYPE seoscokey. DATA paramproperties TYPE vseoparam. DATA superclass TYPE REF TO cl_abap_typedescr. DATA superclassname TYPE string. DATA superclasskey TYPE seorelkey. DATA attribdescr TYPE abap_attrdescr. DATA attribkey TYPE seocmpkey. DATA attribproperties TYPE vseoattrib. DATA attribnode TYPE REF TO if_ixml_element. DATA inheritanceprops TYPE vseoextend. DATA redefines TYPE STANDARD TABLE OF seoredef WITH KEY clsname refclsname version mtdname. DATA inheritance TYPE seor_inheritance_r. DATA redefinitions TYPE seor_redefinitions_r. DATA redefinition LIKE LINE OF redefinitions. DATA otrnode TYPE REF TO if_ixml_element. DATA _otrguid TYPE sotr_conc. _classname = objname. classkey-clsname = objname. * setObjectType( ). DATA _objtype TYPE string. * _objType = objType. _objtype = getobjecttype( ). rootnode = xmldoc->create_element( _objtype ). CALL FUNCTION 'SEO_CLASS_GET' EXPORTING clskey = classkey version = '1' IMPORTING class = classproperties EXCEPTIONS not_existing = 1 deleted = 2 is_interface = 3 model_only = 4. IF sy-subrc <> 0. CASE sy-subrc. WHEN 1. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>not_found object = objname. WHEN 2. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>error_message msg = 'class deleted'. WHEN 3. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>error_message msg = 'interfaces not supported'. WHEN 4. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>error_message msg = 'class is modeled only'. ENDCASE. ENDIF. setattributesfromstructure( node = rootnode structure = classproperties ). TRY. CALL METHOD cl_abap_classdescr=>describe_by_name EXPORTING p_name = objname RECEIVING p_descr_ref = typedescr EXCEPTIONS type_not_found = 1. IF sy-subrc = 0. classdescr ?= typedescr. ELSE. ENDIF. CATCH cx_root. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>system_error. ENDTRY. CALL METHOD classdescr->get_super_class_type RECEIVING p_descr_ref = superclass EXCEPTIONS super_class_not_found = 1. IF sy-subrc = 0. superclassname = superclass->get_relative_name( ). IF NOT superclassname CS 'OBJECT'. superclasskey-clsname = objname. superclasskey-refclsname = superclassname. CALL FUNCTION 'SEO_INHERITANC_GET' EXPORTING inhkey = superclasskey IMPORTING inheritance = inheritanceprops redefinitions = redefines. setattributesfromstructure( node = rootnode structure = inheritanceprops ). ENDIF. ENDIF. */***TPJ - Added Logic for TYPES -------------------*/ DATA: types TYPE seoo_types_r, wa_type LIKE LINE OF types, types_node TYPE REF TO if_ixml_element. CALL FUNCTION 'SEO_TYPE_READ_ALL' EXPORTING cifkey = classkey version = 1 IMPORTING types = types EXCEPTIONS clif_not_existing = 1 OTHERS = 2. IF sy-subrc <> 0. ENDIF. LOOP AT types INTO wa_type. types_node = xmldoc->create_element( 'types' ). setattributesfromstructure( node = types_node structure = wa_type ). rc = rootnode->append_child( types_node ). ENDLOOP. */***TPJ - End of Added Logic for TYPES -------------------*/ */***TPJ - Added Logic for Friends -------------------*/ DATA: clif_keys TYPE STANDARD TABLE OF seoclskey, friends TYPE STANDARD TABLE OF seofriends, wa_friend LIKE LINE OF friends, friends_node TYPE REF TO if_ixml_element. APPEND classkey TO clif_keys. CALL FUNCTION 'SEO_FRIENDS_SELECT' EXPORTING with_external_ref = 'X' TABLES clif_keys = clif_keys friends_relations = friends. IF sy-subrc <> 0. ENDIF. LOOP AT friends INTO wa_friend. friends_node = xmldoc->create_element( c_xml_key_friends ). setattributesfromstructure( node = friends_node structure = wa_friend ). rc = rootnode->append_child( friends_node ). ENDLOOP. */***TPJ - End of Added Logic for Friends -------------------*/ */***ewH - Added Logic for Interfaces -------------------*/ DATA: it_implementings TYPE seor_implementings_r, wa_implementings LIKE LINE OF it_implementings, implementingnode TYPE REF TO if_ixml_element. CALL FUNCTION 'SEO_IMPLEMENTG_READ_ALL' EXPORTING clskey = classkey IMPORTING implementings = it_implementings EXCEPTIONS class_not_existing = 1 OTHERS = 2. LOOP AT it_implementings INTO wa_implementings. implementingnode = xmldoc->create_element( 'implementing' ). setattributesfromstructure( node = implementingnode structure = wa_implementings ). rc = rootnode->append_child( implementingnode ). ENDLOOP. */***ewH - End of Added Logic for Interfaces -------------------*/ */***rrq - Added Logic for EVENTS -------------------*/ DATA: events TYPE seoo_events_r, wa_event LIKE LINE OF events, event_node TYPE REF TO if_ixml_element, eventkey TYPE seocmpkey, eventparams TYPE seos_parameters_r, wa_params TYPE seos_parameter_r. CALL FUNCTION 'SEO_EVENT_READ_ALL' EXPORTING cifkey = classkey version = 1 IMPORTING events = events EXCEPTIONS clif_not_existing = 1 OTHERS = 2. IF sy-subrc <> 0. ENDIF. LOOP AT events INTO wa_event. eventkey-clsname = wa_event-clsname. eventkey-cmpname = wa_event-cmpname. event_node = xmldoc->create_element( 'events' ). setattributesfromstructure( node = event_node structure = wa_event ). CALL FUNCTION 'SEO_EVENT_SIGNATURE_GET' EXPORTING evtkey = eventkey IMPORTING parameters = eventparams. * parameters LOOP AT eventparams INTO wa_params. parameternode = xmldoc->create_element( 'parameter' ). setattributesfromstructure( node = parameternode structure = wa_params ). rc = event_node->append_child( parameternode ). ENDLOOP. rc = rootnode->append_child( event_node ). ENDLOOP. */***rrq - End of Added Logic for EVENTS -------------------*/ * removed by Rene. get_sections( CHANGING rootnode = rootnode ) . *|--------------------------------------------------------------------| includename = cl_oo_classname_service=>get_ccimp_name( _classname ). READ REPORT includename INTO reportlist. localimplementation = xmldoc->create_element( 'localImplementation' ). reportstring = buildsourcestring( sourcetable = reportlist ). rc = localimplementation->if_ixml_node~set_value( reportstring ). *|--------------------------------------------------------------------| includename = cl_oo_classname_service=>get_ccdef_name( _classname ). READ REPORT includename INTO reportlist. localtypes = xmldoc->create_element( 'localTypes' ). reportstring = buildsourcestring( sourcetable = reportlist ). rc = localtypes->if_ixml_node~set_value( reportstring ). *|--------------------------------------------------------------------| includename = cl_oo_classname_service=>get_ccmac_name( _classname ). READ REPORT includename INTO reportlist. localmacros = xmldoc->create_element( 'localMacros' ). reportstring = buildsourcestring( sourcetable = reportlist ). rc = localmacros->if_ixml_node~set_value( reportstring ). *|--------------------------------------------------------------------| */***EVP - Added Logic for Local Test Classes ----------------------*/ DATA localtestclasses TYPE REF TO if_ixml_element. DATA localtestclassesexist TYPE i. includename = cl_oo_classname_service=>get_local_testclasses_include( _classname ). READ REPORT includename INTO reportlist. " If sy-subrc = 0 the local test classes do exist localtestclassesexist = sy-subrc. IF localtestclassesexist = 0. localtestclasses = xmldoc->create_element( 'localTestClasses' ). reportstring = buildsourcestring( sourcetable = reportlist ). rc = localtestclasses->if_ixml_node~set_value( reportstring ). ENDIF. */***EVP - End of Added Logic for Local Test Classes ---------------*/ *| | *\--------------------------------------------------------------------/ rc = rootnode->append_child( localimplementation ). rc = rootnode->append_child( localtypes ). rc = rootnode->append_child( localmacros ). */***EVP - Added Logic for Local Test Classes -------------------*/ IF localtestclassesexist = 0. rc = rootnode->append_child( localtestclasses ). ENDIF. */***EVP - End of Added Logic for Local Test Classes ------------*/ **// Rich: Start get_textpool( CHANGING rootnode = rootnode ). get_documentation( CHANGING rootnode = rootnode ). **// Rich: End get_typepusage( CHANGING xo_rootnode = rootnode ). get_clsdeferrd( CHANGING xo_rootnode = rootnode ). get_intdeferrd( CHANGING xo_rootnode = rootnode ). * classDescriptor ?= cl_abap_typedescr=>describe_by_name( className ). attribkey-clsname = objname. LOOP AT classdescr->attributes INTO attribdescr WHERE is_inherited = abap_false AND is_interface = abap_false. "rrq:issue 46 attribnode = xmldoc->create_element( 'attribute' ). attribkey-cmpname = attribdescr-name. CALL FUNCTION 'SEO_ATTRIBUTE_GET' EXPORTING attkey = attribkey IMPORTING attribute = attribproperties. * include OTR if necessary (for exception classes) IF attribproperties-type = 'SOTR_CONC' AND attribproperties-attvalue IS NOT INITIAL. _otrguid = attribproperties-attvalue+1(32). otrnode = get_otr( _otrguid ). IF otrnode IS BOUND. rc = attribnode->append_child( otrnode ). " Issue #222 - get_text empty when ZCX_SAPLINK exception is raised " Gregor Wolf, 2012-12-20 " As GUID for OTR Node is created new in every system we import " the Slinkee we should empty it CLEAR: attribproperties-attvalue. ENDIF. ENDIF. * append attribute node to parent node setattributesfromstructure( node = attribnode structure = attribproperties ). rc = rootnode->append_child( attribnode ). ENDLOOP. *// ewH: begin of logic for interface methods & inheritance redesign--> * inheritances & redefinitions: old source removed-recover w/subversion CALL FUNCTION 'SEO_INHERITANC_READ' EXPORTING clskey = classkey IMPORTING inheritance = inheritance redefinitions = redefinitions EXCEPTIONS class_not_existing = 1 OTHERS = 2. IF inheritance IS NOT INITIAL. inheritancenode = xmldoc->create_element( c_xml_key_inheritance ). setattributesfromstructure( node = inheritancenode structure = inheritance ). LOOP AT redefinitions INTO redefinition. redefnode = xmldoc->create_element( 'redefinition' ). setattributesfromstructure( node = redefnode structure = redefinition ). rc = inheritancenode->append_child( redefnode ). ENDLOOP. rc = rootnode->append_child( inheritancenode ). ENDIF. * methods with out alias We handle this later LOOP AT classdescr->methods INTO methoddescr WHERE alias_for IS INITIAL AND NOT ( is_inherited = 'X' AND is_redefined IS INITIAL ). methodkey-clsname = _classname. methodkey-cpdname = methoddescr-name. *//nbus: added logic for exception class IF methoddescr-name EQ 'CONSTRUCTOR' AND classproperties-category = seoc_category_exception. " Constructor() will be generated automatically into the " target system once the class is saved CONTINUE. ENDIF. *//nbus: end of added logic for exception class * interface methods IF methoddescr-is_interface = 'X'. CALL METHOD cl_oo_classname_service=>get_method_include EXPORTING mtdkey = methodkey RECEIVING result = includename EXCEPTIONS method_not_existing = 1. IF sy-subrc = 0. methodnode = xmldoc->create_element( 'interfaceMethod' ). setattributesfromstructure( node = methodnode structure = methodkey ). sourcenode = xmldoc->create_element( 'source' ). * tempString = includeName. * rc = sourceNode->set_attribute( * name = 'includeName' value = tempString ). READ REPORT includename INTO reportlist. reportstring = buildsourcestring( sourcetable = reportlist ). rc = sourcenode->if_ixml_node~set_value( reportstring ). rc = methodnode->append_child( sourcenode ). rc = rootnode->append_child( methodnode ). ENDIF. * other methods ELSE. clsmethkey-clsname = _classname. clsmethkey-cmpname = methoddescr-name. CLEAR methodproperties. IF methoddescr-is_redefined = 'X'. methodnode = xmldoc->create_element( 'method' ). MOVE-CORRESPONDING clsmethkey TO methodproperties. *// ewh: begin of forward compatibility hack, can be removed for next *// major release--> READ TABLE redefinitions INTO redefinition WITH KEY mtdname = methoddescr-name. IF sy-subrc = 0. methodproperties-clsname = redefinition-refclsname. ENDIF. *//<--ewH: end of forward compatibility hack setattributesfromstructure( node = methodnode structure = methodproperties ). ELSE. CALL FUNCTION 'SEO_METHOD_GET' EXPORTING mtdkey = clsmethkey IMPORTING method = methodproperties EXCEPTIONS not_existing = 1. IF sy-subrc = 0. methodnode = xmldoc->create_element( 'method' ). setattributesfromstructure( node = methodnode structure = methodproperties ). * parameters LOOP AT methoddescr-parameters INTO paramdescr. CLEAR paramproperties. parameternode = xmldoc->create_element( 'parameter' ). paramkey-cmpname = clsmethkey-cmpname. paramkey-sconame = paramdescr-name. paramkey-clsname = objname. CALL FUNCTION 'SEO_PARAMETER_GET' EXPORTING parkey = paramkey version = '1' IMPORTING parameter = paramproperties. setattributesfromstructure( node = parameternode structure = paramproperties ). rc = methodnode->append_child( parameternode ). ENDLOOP. * exceptions CALL FUNCTION 'SEO_METHOD_SIGNATURE_GET' EXPORTING mtdkey = clsmethkey version = '1' IMPORTING exceps = exceptionlist. LOOP AT exceptionlist INTO anexception. exceptionnode = xmldoc->create_element( 'exception' ). setattributesfromstructure( node = exceptionnode structure = anexception ). rc = methodnode->append_child( exceptionnode ). ENDLOOP. ENDIF. "method found ENDIF. "is_redefined? * source CALL METHOD cl_oo_classname_service=>get_method_include EXPORTING mtdkey = methodkey RECEIVING result = includename EXCEPTIONS method_not_existing = 1. IF sy-subrc = 0. READ REPORT includename INTO reportlist. reportstring = buildsourcestring( sourcetable = reportlist ). sourcenode = xmldoc->create_element( 'source' ). rc = sourcenode->if_ixml_node~set_value( reportstring ). rc = methodnode->append_child( sourcenode ). ENDIF. ** StartInsert Rich - Handle method documenation get_method_documentation( EXPORTING method_key = methodkey CHANGING rootnode = methodnode ). ** EndInsert Rich - Handle method documenation rc = rootnode->append_child( methodnode ). ENDIF. "is_interface? ENDLOOP. * create alias info for load. get_alias_method( EXPORTING it_methods = classdescr->methods CHANGING xo_rootnode = rootnode ). * append root node to xmldoc rc = xmldoc->append_child( rootnode ). ixmldocument = xmldoc. *// <--ewH: end of logic for interface methods & inheritance redesign ENDMETHOD. method CREATEOBJECTFROMIXMLDOC. */---------------------------------------------------------------------\ *| This file is part of SAPlink. | *| | *| The code of this project is provided to you under the current | *| version of the SAP Code Exchange Terms of Use. You can find the | *| text on the SAP Code Exchange webpage at http://www.sdn.sap.com | *| | *| SAPlink is provided to you AS IS with no guarantee, warranty or | *| support. | *\---------------------------------------------------------------------/ DATA rootnode TYPE REF TO if_ixml_element. DATA classkey TYPE seoclskey. DATA filter TYPE REF TO if_ixml_node_filter. DATA iterator TYPE REF TO if_ixml_node_iterator. DATA node TYPE REF TO if_ixml_element. DATA otrnode TYPE REF TO if_ixml_element. DATA filter2 TYPE REF TO if_ixml_node_filter. DATA iterator2 TYPE REF TO if_ixml_node_iterator. DATA superclass TYPE vseoextend-clsname. DATA superclasskey TYPE vseoextend. DATA methodsourcenode TYPE REF TO if_ixml_node. DATA sourcenode TYPE REF TO if_ixml_node. DATA source TYPE string. DATA sourcetable TYPE TABLE OF string. DATA methodkey TYPE seocpdkey. DATA node2 TYPE REF TO if_ixml_element. DATA _objtype TYPE string. DATA aobjname TYPE e071-obj_name. DATA inheritancenode TYPE REF TO if_ixml_element. DATA redefnode TYPE REF TO if_ixml_element. DATA includename TYPE program. DATA mtdkey TYPE seocpdkey. *data excClass type ref to ZCX_SAPLINK. *// --> begin of new data type rrq DATA: *exporting dataTypes e_corrnr TYPE trkorr, e_devclass TYPE devclass, e_version TYPE seoversion, e_genflag TYPE genflag, e_authority_check TYPE seox_boolean, e_overwrite TYPE seox_boolean, *e_suppress_meth_gen type SEOX_BOOLEAN, *e_suppress_refac_gen type SEOX_BOOLEAN, e_method_sources TYPE seo_method_source_table, e_locals_def TYPE rswsourcet, e_locals_imp TYPE rswsourcet, e_locals_mac TYPE rswsourcet, *e_suppress_ind_update type SEOX_BOOLEAN, *importing dataTypes i_korrnr TYPE trkorr, *changing dataTypes ch_class TYPE vseoclass, ch_inheritance TYPE vseoextend, ch_redefinitions TYPE seor_redefinitions_r, ch_implementings TYPE seor_implementings_r, ch_impl_details TYPE seo_redefinitions, ch_attributes TYPE seoo_attributes_r, ch_methods TYPE seoo_methods_r, ch_events TYPE seoo_events_r, ch_types TYPE seoo_types_r, ch_type_source TYPE seop_source, ch_type_source_temp TYPE seop_source, ch_parameters TYPE seos_parameters_r, ch_exceps TYPE seos_exceptions_r, ch_aliases TYPE seoo_aliases_r, ch_typepusages TYPE seot_typepusages_r, ch_clsdeferrds TYPE seot_clsdeferrds_r, ch_intdeferrds TYPE seot_intdeferrds_r, ch_friendships TYPE seo_friends, **table dataTypes *tb_classDescription type table of seoclasstx, *tb_component_descr type table of seocompotx, *tb_subcomponent_descr type table of seosubcotx, * work areas for the tables wa_attributes TYPE seoo_attribute_r, wa_types TYPE seoo_type_r, wa_friends TYPE seofriends, wa_implementings TYPE seor_implementing_r, wa_redefinitions TYPE seoredef, wa_methods TYPE seoo_method_r, wa_parameters TYPE seos_parameter_r, wa_exceps TYPE seos_exception_r, wa_method_sources TYPE seo_method_source, wa_events TYPE seoo_event_r. DATA: lines TYPE i, l_msg TYPE string. *//<-- end of new data types rrq CALL FUNCTION 'SEO_BUFFER_INIT'. e_devclass = devclass. _objtype = getobjecttype( ). e_overwrite = overwrite. xmldoc = ixmldocument. rootnode = xmldoc->find_from_name( _objtype ). CALL METHOD getstructurefromattributes EXPORTING node = rootnode CHANGING structure = ch_class. objname = classkey-clsname = ch_class-clsname. ch_class-version = '0'. superclass = rootnode->get_attribute( name = 'REFCLSNAME' ). IF superclass IS NOT INITIAL. * set something for inheritence superclasskey-clsname = classkey-clsname. superclasskey-refclsname = superclass. superclasskey-version = '0'. superclasskey-state = '1'. MOVE-CORRESPONDING superclasskey TO ch_inheritance. ch_inheritance-author = 'BCUSER'. ch_inheritance-createdon = sy-datum. ENDIF. *Add attributes to new class DATA otrconcept TYPE sotr_text-concept. filter = xmldoc->create_filter_name( 'attribute' ). iterator = xmldoc->create_iterator_filtered( filter ). node ?= iterator->get_next( ). WHILE node IS NOT INITIAL. * create OTR texts if necessary (for exception classes) CLEAR otrconcept. otrnode = node->find_from_name( c_xml_key_sotr ). IF otrnode IS NOT INITIAL. * ewH:33-->create new concept with new guid * me->createotrfromnode( otrnode ). me->create_otr( EXPORTING node = otrnode IMPORTING concept = otrconcept ). ENDIF. CLEAR wa_attributes. * create attribute CALL METHOD getstructurefromattributes EXPORTING node = node CHANGING structure = wa_attributes. wa_attributes-version = '0'. * ewH:issue33-->6.40 and above, must create new concept IF otrconcept IS NOT INITIAL. CONCATENATE `'` otrconcept `'` INTO wa_attributes-attvalue. ENDIF. APPEND wa_attributes TO ch_attributes. node ?= iterator->get_next( ). ENDWHILE. */***TPJ - Added Logic for TYPES -------------------*/ * DATA: types TYPE seoo_types_r, * type_properties LIKE LINE OF types. filter = xmldoc->create_filter_name( 'types' ). iterator = xmldoc->create_iterator_filtered( filter ). node ?= iterator->get_next( ). WHILE node IS NOT INITIAL. CLEAR wa_types. CALL METHOD getstructurefromattributes EXPORTING node = node CHANGING structure = wa_types. wa_types-version = '0'. APPEND wa_types TO ch_types. node ?= iterator->get_next( ). ENDWHILE. */***TPJ - End of Added Logic for TYPES -------------------*/ */***TPJ - Added Logic for Friends -------------------*/ * DATA: wa_friends type seofriends. filter = xmldoc->create_filter_name( C_XML_KEY_FRIENDS ). iterator = xmldoc->create_iterator_filtered( filter ). node ?= iterator->get_next( ). WHILE node IS NOT INITIAL. CLEAR wa_friends. CALL METHOD getstructurefromattributes EXPORTING node = node CHANGING structure = wa_friends. wa_friends-version = '0'. APPEND wa_friends TO ch_friendships. node ?= iterator->get_next( ). ENDWHILE. */***TPJ - End of Added Logic for Friends -------------------*/ *// ewH: Added Logic for Implementings(interfaces)--> filter = xmldoc->create_filter_name( 'implementing' ). iterator = xmldoc->create_iterator_filtered( filter ). node ?= iterator->get_next( ). WHILE node IS NOT INITIAL. CLEAR wa_implementings. CALL METHOD getstructurefromattributes EXPORTING node = node CHANGING structure = wa_implementings. APPEND wa_implementings TO ch_implementings. node ?= iterator->get_next( ). ENDWHILE. *//<--ewH: End of Added Logic for Implementings(interfaces) *// rrq: Added Logic for events--> filter = xmldoc->create_filter_name( 'events' ). iterator = xmldoc->create_iterator_filtered( filter ). node ?= iterator->get_next( ). WHILE node IS NOT INITIAL. CLEAR wa_events. CALL METHOD getstructurefromattributes EXPORTING node = node CHANGING structure = wa_events. APPEND wa_events TO ch_events. filter2 = node->create_filter_name( 'parameter' ). iterator2 = node->create_iterator_filtered( filter2 ). node2 ?= iterator2->get_next( ). WHILE node2 IS NOT INITIAL. CLEAR wa_parameters. CALL METHOD getstructurefromattributes EXPORTING node = node2 CHANGING structure = wa_parameters. "//-> Mar: Added logic for parameter/interface implementation - 08/20/2008 IF NOT wa_parameters-clsname IS INITIAL. APPEND wa_parameters TO ch_parameters. ENDIF. "//<- Mar: Added logic for parameter/interface implementation - 08/20/2008 node2 ?= iterator2->get_next( ). ENDWHILE. node ?= iterator->get_next( ). ENDWHILE. *//<--rrq: End of Added Logic for events *// ewH: start redesign method/inheritances--> * inheritance inheritancenode = rootnode->find_from_name( c_xml_key_inheritance ). IF inheritancenode IS BOUND. CALL METHOD getstructurefromattributes EXPORTING node = inheritancenode CHANGING structure = ch_inheritance. * redefs filter = inheritancenode->create_filter_name( 'redefinition' ). iterator = inheritancenode->create_iterator_filtered( filter ). redefnode ?= iterator->get_next( ). WHILE redefnode IS NOT INITIAL. CALL METHOD getstructurefromattributes EXPORTING node = redefnode CHANGING structure = wa_redefinitions. APPEND wa_redefinitions TO ch_redefinitions. redefnode ?= iterator->get_next( ). ENDWHILE. ENDIF. *Add Methods to new class filter = xmldoc->create_filter_name( 'method' ). iterator = xmldoc->create_iterator_filtered( filter ). node ?= iterator->get_next( ). WHILE node IS NOT INITIAL. CLEAR wa_methods. CALL METHOD getstructurefromattributes EXPORTING node = node CHANGING structure = wa_methods. * only create metadata if method is not a redefinition READ TABLE ch_redefinitions INTO wa_redefinitions WITH KEY mtdname = wa_methods-cmpname. IF sy-subrc = 0. node ?= iterator->get_next( ). CONTINUE. ENDIF. *// ewh: begin of backward compatibility hack, can be removed for next *// major release--> IF wa_methods-clsname <> ch_class-clsname. MOVE-CORRESPONDING wa_methods TO wa_redefinitions. wa_redefinitions-clsname = ch_class-clsname. wa_redefinitions-refclsname = wa_methods-clsname. wa_redefinitions-version = '0'. wa_redefinitions-mtdabstrct = ''. wa_redefinitions-mtdname = wa_methods-cmpname. APPEND wa_redefinitions TO ch_redefinitions. node ?= iterator->get_next( ). CONTINUE. ENDIF. *// <--ewH: break in backward compatibility hack - 2Bcontinued below filter2 = node->create_filter_name( 'parameter' ). iterator2 = node->create_iterator_filtered( filter2 ). node2 ?= iterator2->get_next( ). WHILE node2 IS NOT INITIAL. CLEAR wa_parameters. CALL METHOD getstructurefromattributes EXPORTING node = node2 CHANGING structure = wa_parameters. "//-> Mar: Added logic for parameter/interface implementation - 08/20/2008 IF NOT wa_parameters-clsname IS INITIAL. APPEND wa_parameters TO ch_parameters. ENDIF. "//<- Mar: Added logic for parameter/interface implementation - 08/20/2008 node2 ?= iterator2->get_next( ). ENDWHILE. filter2 = node->create_filter_name( 'exception' ). iterator2 = node->create_iterator_filtered( filter2 ). node2 ?= iterator2->get_next( ). WHILE node2 IS NOT INITIAL. CALL METHOD getstructurefromattributes EXPORTING node = node2 CHANGING structure = wa_exceps. APPEND wa_exceps TO ch_exceps. node2 ?= iterator2->get_next( ). ENDWHILE. APPEND wa_methods TO ch_methods. ** StartInsert Rich - Handle method documenation create_method_documentation( node = node ). ** EndInsert Rich - Handle method documenation node ?= iterator->get_next( ). ENDWHILE. *// <--ewH: end redesign method/inheritances *// ewh: continuation of backward compatibility hack--> * IF ( ch_redefinitions IS NOT INITIAL OR superclass-clsname * IS NOT INITIAL ) and ch_inheritance is initial. * CALL FUNCTION 'SEO_INHERITANC_CREATE_F_DATA' * EXPORTING * save = ' ' * CHANGING * inheritance = superclasskey * redefinitions = ch_redefinitions. * ENDIF. *// <--ewH: end of backward compatibility hack create_typepusage( CHANGING xt_typepusages = ch_typepusages ). create_clsdeferrd( CHANGING xt_clsdeferrds = ch_clsdeferrds ). create_intdeferrd( CHANGING xt_intdeferrds = ch_intdeferrds ). *Insert source code into the methods filter = xmldoc->create_filter_name( 'method' ). iterator = xmldoc->create_iterator_filtered( filter ). node ?= iterator->get_next( ). WHILE node IS NOT INITIAL. CALL METHOD getstructurefromattributes EXPORTING node = node CHANGING structure = wa_methods. methodkey-clsname = objname. methodkey-cpdname = wa_methods-cmpname. aobjname = methodkey. methodsourcenode = node->find_from_name( 'source' ). IF methodsourcenode IS NOT INITIAL. CLEAR wa_method_sources. source = methodsourcenode->get_value( ). sourcetable = buildtablefromstring( source ). READ TABLE ch_redefinitions INTO wa_redefinitions WITH KEY mtdname = methodkey-cpdname. IF sy-subrc = 0. wa_method_sources-redefine = 'X'. ENDIF. wa_method_sources-cpdname = methodkey-cpdname. wa_method_sources-source = sourcetable. APPEND wa_method_sources TO e_method_sources. ENDIF. node ?= iterator->get_next( ). ENDWHILE. * **// ewH: create interface methods--> filter = xmldoc->create_filter_name( 'interfaceMethod' ). iterator = xmldoc->create_iterator_filtered( filter ). node ?= iterator->get_next( ). WHILE node IS NOT INITIAL. CALL METHOD getstructurefromattributes EXPORTING node = node CHANGING structure = methodkey. aobjname = methodkey. methodsourcenode = node->find_from_name( 'source' ). IF methodsourcenode IS NOT INITIAL. CLEAR wa_method_sources. source = methodsourcenode->get_value( ). sourcetable = buildtablefromstring( source ). wa_method_sources-cpdname = methodkey-cpdname. READ TABLE ch_redefinitions INTO wa_redefinitions WITH KEY mtdname = methodkey-cpdname. IF sy-subrc = 0. wa_method_sources-redefine = 'X'. ENDIF. * wa_method_sources-redefine = wa_methods-redefin. wa_method_sources-source = sourcetable. APPEND wa_method_sources TO e_method_sources. ENDIF. node ?= iterator->get_next( ). ENDWHILE. *// <--ewH: end create interface methods * local implementation DATA _classname TYPE seoclsname. _classname = objname. sourcenode = xmldoc->find_from_name( 'localImplementation' ). IF sourcenode IS NOT INITIAL. source = sourcenode->get_value( ). e_locals_imp = buildtablefromstring( source ). ENDIF. * local types sourcenode = xmldoc->find_from_name( 'localTypes' ). IF sourcenode IS NOT INITIAL. source = sourcenode->get_value( ). e_locals_def = buildtablefromstring( source ). ENDIF. * local macros sourcenode = xmldoc->find_from_name( 'localMacros' ). IF sourcenode IS NOT INITIAL. source = sourcenode->get_value( ). e_locals_mac = buildtablefromstring( source ). ENDIF. * We don't need the sections for now. Code moved by Rene create_sections( ). *Add Alias to new class create_alias_method( CHANGING xt_aliases_method = ch_aliases ). name = objname. CALL FUNCTION 'SEO_CLASS_CREATE_COMPLETE' EXPORTING corrnr = e_corrnr devclass = e_devclass version = e_version genflag = e_genflag authority_check = e_authority_check overwrite = e_overwrite * SUPPRESS_METHOD_GENERATION = e_suppress_meth_gen * SUPPRESS_REFACTORING_SUPPORT = e_suppress_refac_gen * method_sources = e_method_sources locals_def = e_locals_def locals_imp = e_locals_imp locals_mac = e_locals_mac * SUPPRESS_INDEX_UPDATE = e_suppress_ind_update IMPORTING korrnr = i_korrnr * TABLES * CLASS_DESCRIPTIONS = tb_classDescription * COMPONENT_DESCRIPTIONS = tb_component_descr * SUBCOMPONENT_DESCRIPTIONS = tb_subcomponent_descr CHANGING class = ch_class inheritance = ch_inheritance redefinitions = ch_redefinitions implementings = ch_implementings impl_details = ch_impl_details attributes = ch_attributes methods = ch_methods events = ch_events types = ch_types * TYPE_SOURCE = ch_type_source "??? PARAMETERS = ch_parameters exceps = ch_exceps aliases = ch_aliases typepusages = ch_typepusages clsdeferrds = ch_clsdeferrds intdeferrds = ch_intdeferrds friendships = ch_friendships EXCEPTIONS existing = 1 is_interface = 2 db_error = 3 component_error = 4 no_access = 5 other = 6 OTHERS = 7. CASE sy-subrc. WHEN '0'. ** i guess if we made it this far, we will assume success ** successful install WHEN '1'. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>existing. WHEN OTHERS. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>system_error. ENDCASE. * Now let's add the methods LOOP AT e_method_sources INTO wa_method_sources. mtdkey-clsname = objname. mtdkey-cpdname = wa_method_sources-cpdname. CALL FUNCTION 'SEO_METHOD_GENERATE_INCLUDE' EXPORTING mtdkey = mtdkey version = e_version force = e_overwrite redefine = wa_method_sources-redefine * SUPPRESS_CORR = SEOX_FALSE implementation_expanded = wa_method_sources-source * IMPLEMENTATION = suppress_mtdkey_check = seox_true * EDITOR_LOCK = SEOX_FALSE * GENERATED = SEOX_FALSE corrnr = e_corrnr without_method_frame = seox_true * WITH_SUPER_CALL = SEOX_FALSE * SUPPRESS_INDEX_UPDATE = SEOX_FALSE * EXTEND = SEOX_FALSE * ENHANCEMENT = ' ' * SUPPRESS_MODIFICATION_SUPPORT = SEOX_FALSE EXCEPTIONS not_existing = 1 model_only = 2 include_existing = 3 method_imp_not_generated = 4 method_imp_not_initialised = 5 _internal_class_not_existing = 6 _internal_method_overflow = 7 cancelled = 8 method_is_abstract_implemented = 9 method_is_final_implemented = 10 internal_error_insert_report = 11 OTHERS = 12 . CASE sy-subrc. WHEN '0'. ** i guess if we made it this far, we will assume success ** successful install WHEN '3'. l_msg = mtdkey. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>existing msg = l_msg. WHEN OTHERS. l_msg = mtdkey. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>system_error msg = l_msg. ENDCASE. ENDLOOP. *ewH:insert pub, prot, and priv sections manually to keep any direct * attribute/type definitions aobjname = classkey-clsname. **public sourcenode = xmldoc->find_from_name( 'publicSection' ). IF sourcenode IS NOT INITIAL. includename = cl_oo_classname_service=>get_pubsec_name( _classname ). source = sourcenode->get_value( ). sourcetable = buildtablefromstring( source ). INSERT REPORT includename FROM sourcetable EXTENSION TYPE srext_ext_class_public STATE 'I'. ENDIF. **protected sourcenode = xmldoc->find_from_name( 'protectedSection' ). IF sourcenode IS NOT INITIAL. includename = cl_oo_classname_service=>get_prosec_name( _classname ). source = sourcenode->get_value( ). sourcetable = buildtablefromstring( source ). INSERT REPORT includename FROM sourcetable EXTENSION TYPE srext_ext_class_protected STATE 'I'. ENDIF. **private sourcenode = xmldoc->find_from_name( 'privateSection' ). IF sourcenode IS NOT INITIAL. includename = cl_oo_classname_service=>get_prisec_name( _classname ). source = sourcenode->get_value( ). sourcetable = buildtablefromstring( source ). INSERT REPORT includename FROM sourcetable EXTENSION TYPE srext_ext_class_private STATE 'I'. ENDIF. */***EVP - Added Logic for Local Test Classes -------------------*/ **local test classes sourcenode = xmldoc->find_from_name( 'localTestClasses' ). IF sourcenode IS NOT INITIAL. DATA clskey TYPE seoclskey. source = sourcenode->get_value( ). sourcetable = buildtablefromstring( source ). clskey-clsname = _classname. CALL FUNCTION 'SEO_CLASS_GENERATE_LOCALS' EXPORTING clskey = clskey force = overwrite locals_testclasses = sourcetable EXCEPTIONS not_existing = 1 model_only = 2 locals_not_generated = 3 locals_not_initialised = 4 OTHERS = 5. IF sy-subrc <> 0. ENDIF. ENDIF. */***EVP - End Of Added Logic for Local Test Classes -------------------*/ **// Rich: Start * Create class textpool create_textpool( ). create_documentation( ). **// Rich: End * insert inactive sections into worklist CALL FUNCTION 'RS_INSERT_INTO_WORKING_AREA' EXPORTING object = 'CPUB' obj_name = aobjname EXCEPTIONS wrong_object_name = 1. IF sy-subrc <> 0. ENDIF. CALL FUNCTION 'RS_INSERT_INTO_WORKING_AREA' EXPORTING object = 'CPRO' obj_name = aobjname EXCEPTIONS wrong_object_name = 1. IF sy-subrc <> 0. ENDIF. CALL FUNCTION 'RS_INSERT_INTO_WORKING_AREA' EXPORTING object = 'CPRI' obj_name = aobjname EXCEPTIONS wrong_object_name = 1. IF sy-subrc <> 0. ENDIF. endmethod. method CREATE_DOCUMENTATION. */---------------------------------------------------------------------\ *| This file is part of SAPlink. | *| | *| The code of this project is provided to you under the current | *| version of the SAP Code Exchange Terms of Use. You can find the | *| text on the SAP Code Exchange webpage at http://www.sdn.sap.com | *| | *| SAPlink is provided to you AS IS with no guarantee, warranty or | *| support. | *\---------------------------------------------------------------------/ DATA txtline_node TYPE REF TO if_ixml_element. DATA txtline_filter TYPE REF TO if_ixml_node_filter. DATA txtline_iterator TYPE REF TO if_ixml_node_iterator. DATA docnode TYPE REF TO if_ixml_element. DATA lang_node TYPE REF TO if_ixml_element. DATA lang_filter TYPE REF TO if_ixml_node_filter. DATA lang_iterator TYPE REF TO if_ixml_node_iterator. DATA obj_name TYPE dokhl-object. DATA class_name TYPE string. DATA language TYPE string. DATA obj_langu TYPE dokhl-langu. DATA lv_str TYPE string. DATA rc TYPE sy-subrc. DATA lt_lines TYPE TABLE OF tline. FIELD-SYMBOLS: <ls_lines> LIKE LINE OF lt_lines. docnode = xmldoc->find_from_name( c_xml_key_class_documentation ). IF docnode IS NOT BOUND. RETURN. ENDIF. class_name = docnode->get_attribute( name = c_xml_key_object ). obj_name = class_name. * If no class name, then there was no class documenation, just return. IF class_name IS INITIAL. RETURN. ENDIF. * Get languages from XML FREE: lang_filter, lang_iterator, lang_node. lang_filter = docnode->create_filter_name( c_xml_key_language ). lang_iterator = docnode->create_iterator_filtered( lang_filter ). lang_node ?= lang_iterator->get_next( ). WHILE lang_node IS NOT INITIAL. REFRESH lt_lines. language = lang_node->get_attribute( name = c_xml_key_spras ). obj_langu = language. * Get TextLines from XML FREE: txtline_filter, txtline_iterator, txtline_node. txtline_filter = lang_node->create_filter_name( c_xml_key_textline ). txtline_iterator = lang_node->create_iterator_filtered( txtline_filter ). txtline_node ?= txtline_iterator->get_next( ). WHILE txtline_node IS NOT INITIAL. APPEND INITIAL LINE TO lt_lines ASSIGNING <ls_lines>. me->getstructurefromattributes( EXPORTING node = txtline_node CHANGING structure = <ls_lines> ). txtline_node ?= txtline_iterator->get_next( ). ENDWHILE. * Delete any documentation that may currently exist. CALL FUNCTION 'DOCU_DEL' EXPORTING id = 'CL' langu = obj_langu object = obj_name typ = 'E' EXCEPTIONS ret_code = 1 OTHERS = 2. * Now update with new documentation text CALL FUNCTION 'DOCU_UPD' EXPORTING id = 'CL' langu = obj_langu object = obj_name typ = 'E' TABLES line = lt_lines EXCEPTIONS ret_code = 1 OTHERS = 2. IF sy-subrc <> 0. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>error_message msg = `Class Documentation object import failed`. ENDIF. lang_node ?= lang_iterator->get_next( ). ENDWHILE. endmethod. method CREATE_METHOD_DOCUMENTATION. */---------------------------------------------------------------------\ *| This file is part of SAPlink. | *| | *| The code of this project is provided to you under the current | *| version of the SAP Code Exchange Terms of Use. You can find the | *| text on the SAP Code Exchange webpage at http://www.sdn.sap.com | *| | *| SAPlink is provided to you AS IS with no guarantee, warranty or | *| support. | *\---------------------------------------------------------------------/ DATA txtline_node TYPE REF TO if_ixml_element. DATA txtline_filter TYPE REF TO if_ixml_node_filter. DATA txtline_iterator TYPE REF TO if_ixml_node_iterator. data: methdocnode TYPE REF TO if_ixml_element. DATA lang_node TYPE REF TO if_ixml_element. DATA lang_filter TYPE REF TO if_ixml_node_filter. DATA lang_iterator TYPE REF TO if_ixml_node_iterator. data obj_name type DOKHL-OBJECT. data classmeth_name type string. data language type string. data obj_langu type DOKHL-LANGU. data lv_str type string. data rc type sy-subrc. DATA lt_lines TYPE TABLE OF tline. FIELD-SYMBOLS: <ls_lines> LIKE LINE OF lt_lines. methdocnode = node->find_from_name( 'methodDocumentation' ). if methdocnode is not bound. return. endif. classmeth_name = methdocNode->get_attribute( name = 'OBJECT' ). obj_name = classmeth_name. * If no class method name, then there was no class method documenation, just return. if classmeth_name is initial. return. endif. * Get languages from XML FREE: lang_filter, lang_iterator, lang_node. lang_filter = methdocNode->create_filter_name( `language` ). lang_iterator = methdocNode->create_iterator_filtered( lang_filter ). lang_node ?= lang_iterator->get_next( ). WHILE lang_node IS NOT INITIAL. refresh lt_lines. language = lang_node->get_attribute( name = 'SPRAS' ). obj_langu = language. * Get TextLines from XML FREE: txtline_filter, txtline_iterator, txtline_node. txtline_filter = lang_node->create_filter_name( `textLine` ). txtline_iterator = lang_node->create_iterator_filtered( txtline_filter ). txtline_node ?= txtline_iterator->get_next( ). WHILE txtline_node IS NOT INITIAL. APPEND INITIAL LINE TO lt_lines ASSIGNING <ls_lines>. me->getstructurefromattributes( EXPORTING node = txtline_node CHANGING structure = <ls_lines> ). txtline_node ?= txtline_iterator->get_next( ). ENDWHILE. * Delete any documentation that may currently exist. CALL FUNCTION 'DOCU_DEL' EXPORTING id = 'CO' langu = obj_langu object = obj_name typ = 'E' EXCEPTIONS ret_code = 1 OTHERS = 2. * Now update with new documentation text CALL FUNCTION 'DOCU_UPD' EXPORTING id = 'CO' langu = obj_langu object = obj_name typ = 'E' TABLES line = lt_lines EXCEPTIONS ret_code = 1 OTHERS = 2. IF sy-subrc <> 0. RAISE EXCEPTION TYPE zcx_saplink EXPORTING textid = zcx_saplink=>error_message msg = `Class Method Documentation object import failed`. ENDIF. lang_node ?= lang_iterator->get_next( ). ENDWHILE. endmethod. method CREATE_SECTIONS. *ewH-not sure how this type_source param works. type sources can come * from private or protected sections, but there is no way to pass * these separately into the class create FM. After debugging into * FM->clif_save_all->generate_classpool it treats the source table * as one, so I am not sure how to get it to differentiate between * private and protected sections. If only one section has types * defined, the FM call works, otherwise all hell breaks loose. To * solve the problem for now, we will just do an insert report for * the sections after the class creation, since that's all the FM * does in the end anyway. Wow, this is a really long comment, but * I dont want to have to try to remember what the hell was going * on here later...sorry. :) *insert code for publicSection * sourcenode = xmldoc->find_from_name( 'publicSection' ) * IF sourcenode IS NOT INITIAL. * source = sourcenode->get_value( ). * ch_type_source = buildtablefromstring( source ). * ENDIF. **insert code for pivateSection * sourcenode = xmldoc->find_from_name( 'privateSection' ). * IF sourcenode IS NOT INITIAL. * source = sourcenode->get_value( ). * ch_type_source_temp = buildtablefromstring( source ). * append lines of ch_type_source_temp to ch_type_source. * ENDIF. **insert code for ProtectedSection * sourcenode = xmldoc->find_from_name( 'protectedSection' ). * IF sourcenode IS NOT INITIAL. * source = sourcenode->get_value( ). * ch_type_source_temp = buildtablefromstring( source ). * append lines of ch_type_source_temp to ch_type_source. * ENDIF. endmethod. method CREATE_TEXTPOOL. */---------------------------------------------------------------------\ *| This file is part of SAPlink. | *| | *| The code of this project is provided to you under the current | *| version of the SAP Code Exchange Terms of Use. You can find the | *| text on the SAP Code Exchange webpage at http://www.sdn.sap.com | *| | *| SAPlink is provided to you AS IS with no guarantee, warranty or | *| support. | *\---------------------------------------------------------------------/ data textPoolTable type standard table of textPool. data textPoolRow type textPool. data langIterator type ref to if_ixml_node_iterator. data filter type ref to if_ixml_node_filter. data textFilter type ref to if_ixml_node_filter. data textIterator type ref to if_ixml_node_iterator. data textpoolnode type ref to if_ixml_element. data langNode type ref to if_ixml_element. data aTextNode type ref to if_ixml_element. data _objName type TROBJ_NAME. data obj_name type SEOCLSNAME. data lang type spras. data langNodeExists type flag. data logonLanguageExists type flag. data _state(1) type c. data classpoolname type program. textpoolnode = xmldoc->find_from_name( 'textPool' ). if textpoolnode is not bound. return. endif. obj_name = objName. classpoolname = cl_oo_classname_service=>GET_CLASSPOOL_NAME( obj_Name ). _objName = classpoolname. filter = textPoolNode->create_filter_name( 'language' ). langIterator = textPoolNode->create_iterator_filtered( filter ). langNode ?= langIterator->get_next( ). while langNode is not initial. langNodeExists = 'X'. CALL FUNCTION 'RS_INSERT_INTO_WORKING_AREA' EXPORTING OBJECT = 'REPT' OBJ_NAME = _objName EXCEPTIONS OTHERS = 0. refresh textPoolTable. textIterator = langNode->create_iterator( ). aTextNode ?= textIterator->get_next( ). *For some reason the 1st one is blank... not sure why. aTextNode ?= textIterator->get_next( ). while aTextNode is not initial. CALL METHOD GETSTRUCTUREFROMATTRIBUTES EXPORTING node = aTextNode CHANGING structure = textPoolRow. append textPoolRow to textPoolTable. aTextNode ?= textIterator->get_next( ). endwhile. if textPoolTable is not initial. lang = langNode->get_attribute( 'SPRAS' ). if lang = sy-langu. logonLanguageExists = 'X'. _state = 'I'. else. * seems that if a textpool is inserted as inactive for language * other than the logon language, it is lost upon activation * not sure inserting as active is best solution,but seems to work _state = 'A'. endif. insert textpool _objName from textPooltable language lang state _state. endif. langNode ?= langIterator->get_next( ). endwhile. endmethod. method DELETEOBJECT. */---------------------------------------------------------------------\ *| This file is part of SAPlink. | *| | *| The code of this project is provided to you under the current | *| version of the SAP Code Exchange Terms of Use. You can find the | *| text on the SAP Code Exchange webpage at http://www.sdn.sap.com | *| | *| SAPlink is provided to you AS IS with no guarantee, warranty or | *| support. | *\---------------------------------------------------------------------/ data clsKey type SEOCLSKEY. clsKey-clsname = objname. CALL FUNCTION 'SEO_CLASS_DELETE_W_DEPS' EXPORTING clskey = clsKey EXCEPTIONS NOT_EXISTING = 1 IS_INTERFACE = 2 NOT_DELETED = 3 DB_ERROR = 4 OTHERS = 5 . if sy-subrc <> 0. case sy-subrc. when 1. raise exception type zcx_saplink exporting textid = zcx_saplink=>not_found. when 2. raise exception type zcx_saplink exporting textid = zcx_saplink=>error_message msg = 'interfaces not supported'. when 3. raise exception type zcx_saplink exporting textid = zcx_saplink=>error_message msg = 'class not deleted'. when others. raise exception type zcx_saplink exporting textid = zcx_saplink=>system_error. endcase. endif. endmethod. method FINDIMPLEMENTINGCLASS. */---------------------------------------------------------------------\ *| This file is part of SAPlink. | *| | *| The code of this project is provided to you under the current | *| version of the SAP Code Exchange Terms of Use. You can find the | *| text on the SAP Code Exchange webpage at http://www.sdn.sap.com | *| | *| SAPlink is provided to you AS IS with no guarantee, warranty or | *| support. | *\---------------------------------------------------------------------/ data methodKey type SEOCMPKEY. data methodProperties type VSEOMETHOD. data classDescr type ref to cl_abap_classdescr. data superClass type ref to cl_abap_typeDescr. data superClassName type string. if startClass is initial. methodKey-CLSNAME = objName. else. methodKey-clsName = startClass. endif. methodKey-CMPNAME = methodName. call function 'SEO_METHOD_GET' exporting MTDKEY = methodKey importing method = methodProperties exceptions NOT_EXISTING = 1. if sy-subrc = 0. className = methodProperties-clsname. else. classDescr ?= cl_abap_classDescr=>describe_by_name( methodKey-clsName ). call method classDescr->GET_SUPER_CLASS_TYPE receiving P_DESCR_REF = superClass exceptions SUPER_CLASS_NOT_FOUND = 1. superClassName = superClass->GET_RELATIVE_NAME( ). className = FINDIMPLEMENTINGCLASS( methodName = methodName startClass = superCLassName ). endif. endmethod. method GETOBJECTTYPE. */---------------------------------------------------------------------\ *| This file is part of SAPlink. | *| | *| The code of this project is provided to you under the current | *| version of the SAP Code Exchange Terms of Use. You can find the | *| text on the SAP Code Exchange webpage at http://www.sdn.sap.com | *| | *| SAPlink is provided to you AS IS with no guarantee, warranty or | *| support. | *\---------------------------------------------------------------------/ objecttype = 'CLAS'. "Class endmethod. method GET_DOCUMENTATION. */---------------------------------------------------------------------\ *| This file is part of SAPlink. | *| | *| The code of this project is provided to you under the current | *| version of the SAP Code Exchange Terms of Use. You can find the | *| text on the SAP Code Exchange webpage at http://www.sdn.sap.com | *| | *| SAPlink is provided to you AS IS with no guarantee, warranty or | *| support. | *\---------------------------------------------------------------------/ DATA languagenode TYPE REF TO if_ixml_element. DATA docnode TYPE REF TO if_ixml_element. DATA txtlines_node TYPE REF TO if_ixml_element. DATA rc TYPE sysubrc. DATA _objtype TYPE string. TYPES: BEGIN OF t_dokhl, id TYPE dokhl-id, object TYPE dokhl-object, langu TYPE dokhl-langu, typ TYPE dokhl-typ, dokversion TYPE dokhl-dokversion, END OF t_dokhl. DATA lt_dokhl TYPE TABLE OF t_dokhl. DATA ls_dokhl LIKE LINE OF lt_dokhl. DATA lt_lines TYPE TABLE OF tline. DATA ls_lines LIKE LINE OF lt_lines. DATA lv_str TYPE string. DATA _objname TYPE e071-obj_name. _objname = objname. * Check against database SELECT id object langu typ dokversion INTO CORRESPONDING FIELDS OF TABLE lt_dokhl FROM dokhl WHERE id = 'CL' AND object = _objname. * Use only most recent version. SORT lt_dokhl BY id object langu typ ASCENDING dokversion DESCENDING. DELETE ADJACENT DUPLICATES FROM lt_dokhl COMPARING id object typ langu. * Make sure there is at least one record here. CLEAR ls_dokhl. READ TABLE lt_dokhl INTO ls_dokhl INDEX 1. IF sy-subrc <> 0. RETURN. ENDIF. docnode = xmldoc->create_element( c_xml_key_class_documentation ). * Set docNode object attribute lv_str = ls_dokhl-object. rc = docnode->set_attribute( name = c_xml_key_object value = lv_str ). LOOP AT lt_dokhl INTO ls_dokhl. * Create language node, and set attribute languagenode = xmldoc->create_element( c_xml_key_language ). lv_str = ls_dokhl-langu. rc = languagenode->set_attribute( name = c_xml_key_spras value = lv_str ). * Read the documentation text CALL FUNCTION 'DOCU_READ' EXPORTING id = ls_dokhl-id langu = ls_dokhl-langu object = ls_dokhl-object typ = ls_dokhl-typ version = ls_dokhl-dokversion TABLES line = lt_lines. * Write records to XML node LOOP AT lt_lines INTO ls_lines. txtlines_node = xmldoc->create_element( c_xml_key_textline ). me->setattributesfromstructure( node = txtlines_node structure = ls_lines ). rc = languagenode->append_child( txtlines_node ). ENDLOOP. rc = docnode->append_child( languagenode ) . ENDLOOP. rc = rootnode->append_child( docnode ). endmethod. method GET_METHOD_DOCUMENTATION. */---------------------------------------------------------------------\ *| This file is part of SAPlink. | *| | *| The code of this project is provided to you under the current | *| version of the SAP Code Exchange Terms of Use. You can find the | *| text on the SAP Code Exchange webpage at http://www.sdn.sap.com | *| | *| SAPlink is provided to you AS IS with no guarantee, warranty or | *| support. | *\---------------------------------------------------------------------/ DATA languagenode TYPE REF TO if_ixml_element. DATA docnode TYPE REF TO if_ixml_element. DATA txtlines_node TYPE REF TO if_ixml_element. DATA rc TYPE sysubrc. DATA _objtype TYPE string. TYPES: BEGIN OF t_dokhl, id TYPE dokhl-id, object TYPE dokhl-object, langu TYPE dokhl-langu, typ TYPE dokhl-typ, dokversion TYPE dokhl-dokversion, END OF t_dokhl. DATA lt_dokhl TYPE TABLE OF t_dokhl. DATA ls_dokhl LIKE LINE OF lt_dokhl. DATA lt_lines TYPE TABLE OF tline. DATA ls_lines LIKE LINE OF lt_lines. DATA lv_str TYPE string. DATA _objname TYPE e071-obj_name. _objname = method_key. * Check against database SELECT id object langu typ dokversion INTO CORRESPONDING FIELDS OF TABLE lt_dokhl FROM dokhl WHERE id = 'CO' AND object = _objname. * Use only most recent version. SORT lt_dokhl BY id object langu typ ASCENDING dokversion DESCENDING. DELETE ADJACENT DUPLICATES FROM lt_dokhl COMPARING id object typ langu. * Make sure there is at least one record here. CLEAR ls_dokhl. READ TABLE lt_dokhl INTO ls_dokhl INDEX 1. IF sy-subrc <> 0. RETURN. ENDIF. docnode = xmldoc->create_element( c_xml_key_method_documentation ). * Set docNode object attribute lv_str = ls_dokhl-object. rc = docnode->set_attribute( name = c_xml_key_object value = lv_str ). LOOP AT lt_dokhl INTO ls_dokhl. * Create language node, and set attribute languagenode = xmldoc->create_element( c_xml_key_language ). lv_str = ls_dokhl-langu. rc = languagenode->set_attribute( name = c_xml_key_spras value = lv_str ). * Read the documentation text CALL FUNCTION 'DOCU_READ' EXPORTING id = ls_dokhl-id langu = ls_dokhl-langu object = ls_dokhl-object typ = ls_dokhl-typ version = ls_dokhl-dokversion TABLES line = lt_lines. * Write records to XML node LOOP AT lt_lines INTO ls_lines. txtlines_node = xmldoc->create_element( c_xml_key_textline ). me->setattributesfromstructure( node = txtlines_node structure = ls_lines ). rc = languagenode->append_child( txtlines_node ). ENDLOOP. rc = docnode->append_child( languagenode ) . ENDLOOP. rc = rootnode->append_child( docnode ). endmethod. method GET_SECTIONS. DATA publicsection TYPE REF TO if_ixml_element. DATA protectedsection TYPE REF TO if_ixml_element. DATA privatesection TYPE REF TO if_ixml_element. DATA includename TYPE program. DATA reportstring TYPE string. **/--------------------------------------------------------------------\ **| | * includename = cl_oo_classname_service=>get_pubsec_name( _classname ). * READ REPORT includename INTO reportlist. * publicsection = xmldoc->create_element( 'publicSection' ). * * reportstring = buildsourcestring( sourcetable = reportlist ). * rc = publicsection->if_ixml_node~set_value( reportstring ). * CLEAR reportstring. **|--------------------------------------------------------------------| * includename = cl_oo_classname_service=>get_prosec_name( _classname ). * READ REPORT includename INTO reportlist. * protectedsection = xmldoc->create_element( 'protectedSection' ). * reportstring = buildsourcestring( sourcetable = reportlist ). * rc = protectedsection->if_ixml_node~set_value( reportstring ). * CLEAR reportstring. **|--------------------------------------------------------------------| * includename = cl_oo_classname_service=>get_prisec_name( _classname ). * READ REPORT includename INTO reportlist. * privatesection = xmldoc->create_element( 'privateSection' ). * reportstring = buildsourcestring( sourcetable = reportlist ). * rc = privatesection->if_ixml_node~set_value( reportstring ). * rc = rootnode->append_child( publicsection ). * rc = rootnode->append_child( protectedsection ). * rc = rootnode->append_child( privatesection ). endmethod. method GET_TEXTPOOL. */---------------------------------------------------------------------\ *| This file is part of SAPlink. | *| | *| The code of this project is provided to you under the current | *| version of the SAP Code Exchange Terms of Use. You can find the | *| text on the SAP Code Exchange webpage at http://www.sdn.sap.com | *| | *| SAPlink is provided to you AS IS with no guarantee, warranty or | *| support. | *\---------------------------------------------------------------------/ DATA atext TYPE REF TO if_ixml_element. DATA textpooltable TYPE STANDARD TABLE OF textpool. DATA textpoolrow TYPE textpool. DATA languagelist TYPE instlang. DATA alanguage TYPE spras. DATA _objname TYPE seoclsname. DATA rc TYPE i. DATA stemp TYPE string. DATA languagenode TYPE REF TO if_ixml_element. DATA textnode TYPE REF TO if_ixml_element. DATA classpoolname TYPE program. DATA firstloop TYPE flag. _objname = objname. classpoolname = cl_oo_classname_service=>get_classpool_name( _objname ). CALL FUNCTION 'RS_TEXTLOG_GET_PARAMETERS' CHANGING installed_languages = languagelist. firstloop = abap_true. LOOP AT languagelist INTO alanguage. READ TEXTPOOL classpoolname INTO textpooltable LANGUAGE alanguage. IF sy-subrc = 0. IF firstloop = abap_true. textnode = xmldoc->create_element( c_xml_key_textpool ). firstloop = abap_false. ENDIF. languagenode = xmldoc->create_element( c_xml_key_language ). stemp = alanguage. rc = languagenode->set_attribute( name = c_xml_key_spras value = stemp ). LOOP AT textpooltable INTO textpoolrow. atext = xmldoc->create_element( c_xml_key_textelement ). setattributesfromstructure( node = atext structure = textpoolrow ). rc = languagenode->append_child( atext ). ENDLOOP. rc = textnode->append_child( languagenode ). ENDIF. ENDLOOP. rc = rootnode->append_child( textnode ). endmethod. endclass. "ZSAPLINK_CLASS implementation
[ 4871, 1168, 50, 2969, 43, 17248, 62, 31631, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1168, 50, 2969, 43, 17248, 62, 6684, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 5050, 5870, 25171, 6369, 1797, 4694, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 29244, 6158, 10426, 5805, 38715, 10913, 2662, 9864, 23680, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 29244, 1404, 4720, 33, 23680, 10913, 2662, 10426, 5805, 38715, 198, 220, 220, 220, 34087, 17750, 764, 198, 24326, 2665, 13, 628, 220, 38491, 327, 62, 55, 5805, 62, 20373, 62, 49273, 62, 38715, 5883, 3525, 6234, 2099, 19269, 2751, 1988, 705, 24396, 24941, 341, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 55, 5805, 62, 20373, 62, 51, 6369, 9328, 2538, 10979, 2099, 19269, 2751, 1988, 705, 5239, 20180, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 55, 5805, 62, 20373, 62, 51, 6369, 7250, 31559, 2099, 19269, 2751, 1988, 705, 5239, 27201, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 55, 5805, 62, 20373, 62, 31631, 62, 38715, 5883, 3525, 6234, 2099, 19269, 2751, 1988, 705, 4871, 24941, 341, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 55, 5805, 62, 20373, 62, 43, 15567, 52, 11879, 2099, 19269, 2751, 1988, 705, 16129, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 55, 5805, 62, 20373, 62, 9864, 23680, 2099, 19269, 2751, 1988, 705, 9864, 23680, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 55, 5805, 62, 20373, 62, 4303, 49, 1921, 2099, 19269, 2751, 1988, 705, 4303, 49, 1921, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 55, 5805, 62, 20373, 62, 32541, 24027, 2099, 19269, 2751, 1988, 705, 5239, 13949, 4458, 25113, 2943, 5626, 13918, 628, 220, 5050, 29244, 6158, 62, 38715, 5883, 3525, 6234, 764, 198, 220, 5050, 29244, 6158, 62, 49273, 62, 38715, 5883, 3525, 6234, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 45, 16820, 2099, 1006, 284, 16876, 62, 10426, 5805, 62, 36, 2538, 10979, 764, 198, 220, 5050, 29244, 6158, 62, 50, 9782, 11053, 764, 198, 220, 5050, 29244, 6158, 62, 51, 6369, 7250, 31559, 764, 198, 220, 5050, 376, 12115, 3955, 16437, 10979, 2751, 31631, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 49273, 20608, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 5145, 46678, 4825, 43, 10705, 2099, 19269, 2751, 11902, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 31631, 20608, 8, 2099, 19269, 2751, 764, 198, 220, 5050, 17151, 62, 38715, 5883, 3525, 6234, 198, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 5145, 13252, 2394, 45, 16820, 2099, 1006, 284, 16876, 62, 10426, 5805, 62, 36, 2538, 10979, 764, 198, 220, 5050, 17151, 62, 49273, 62, 38715, 5883, 3525, 6234, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 49273, 62, 20373, 2099, 7946, 4503, 5760, 20373, 198, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 5145, 13252, 2394, 45, 16820, 2099, 1006, 284, 16876, 62, 10426, 5805, 62, 36, 2538, 10979, 764, 198, 220, 5050, 17151, 62, 50, 9782, 11053, 198, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 5145, 13252, 2394, 45, 16820, 2099, 1006, 284, 16876, 62, 10426, 5805, 62, 36, 2538, 10979, 764, 198, 220, 5050, 17151, 62, 51, 6369, 7250, 31559, 198, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 5145, 13252, 2394, 45, 16820, 2099, 1006, 284, 16876, 62, 10426, 5805, 62, 36, 2538, 10979, 764, 628, 220, 5050, 5550, 28882, 4720, 33, 23680, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 17151, 9864, 23680, 25216, 198, 220, 220, 220, 34087, 17750, 764, 198, 19734, 2665, 13, 198, 437, 4871, 13, 366, 57, 50, 2969, 43, 17248, 62, 31631, 6770, 628, 198, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 1398, 1168, 50, 2969, 43, 17248, 62, 31631, 7822, 13, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 4871, 1168, 50, 2969, 43, 17248, 62, 31631, 7822, 13, 628, 198, 24396, 5870, 25171, 6369, 1797, 4694, 13, 198, 16208, 10097, 30934, 59, 198, 9, 91, 220, 220, 770, 2393, 318, 636, 286, 48323, 8726, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 198, 9, 91, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 198, 9, 91, 220, 220, 383, 2438, 286, 428, 1628, 318, 2810, 284, 345, 739, 262, 1459, 220, 220, 220, 220, 930, 198, 9, 91, 220, 220, 2196, 286, 262, 48323, 6127, 12516, 17637, 286, 5765, 13, 921, 460, 1064, 262, 220, 220, 930, 198, 9, 91, 220, 220, 2420, 319, 262, 48323, 6127, 12516, 35699, 379, 2638, 1378, 2503, 13, 21282, 77, 13, 82, 499, 13, 785, 220, 220, 930, 198, 9, 91, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 198, 9, 91, 220, 220, 48323, 8726, 318, 2810, 284, 345, 7054, 3180, 351, 645, 9149, 11, 18215, 393, 220, 220, 930, 198, 9, 91, 220, 220, 1104, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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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 ]
FUNCTION z_display_value_stmt_listp. *"---------------------------------------------------------------------- *"*"Lokale Schnittstelle: *" IMPORTING *" REFERENCE(I_ENT) TYPE REF TO ZCL_COMPL_ENTITY *"---------------------------------------------------------------------- go_root_ent = i_ent. CALL SCREEN 8000 STARTING AT 5 5 ENDING AT 150 30. ENDFUNCTION.
[ 42296, 4177, 2849, 1976, 62, 13812, 62, 8367, 62, 301, 16762, 62, 4868, 79, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 43, 482, 1000, 45606, 715, 301, 13485, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 3525, 8, 41876, 4526, 37, 5390, 220, 1168, 5097, 62, 9858, 6489, 62, 3525, 9050, 198, 9, 1, 10097, 23031, 628, 220, 467, 62, 15763, 62, 298, 796, 1312, 62, 298, 13, 628, 220, 42815, 6374, 2200, 1677, 38055, 33303, 2751, 5161, 642, 642, 23578, 2751, 5161, 6640, 1542, 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 ]
class zcl_cds_ret definition public abstract final for behavior of zcds_ret. endclass. class zcl_cds_ret implementation. endclass.
[ 4871, 1976, 565, 62, 66, 9310, 62, 1186, 6770, 1171, 12531, 2457, 329, 4069, 286, 1976, 66, 9310, 62, 1186, 13, 198, 437, 4871, 13, 198, 198, 4871, 1976, 565, 62, 66, 9310, 62, 1186, 7822, 13, 198, 437, 4871, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
"! <p class="shorttext synchronized" lang="en">SAP Interface Monitor Application</p> CLASS zcl_intfmonitor_gui_appl DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. TYPES: "! <p class="shorttext synchronized" lang="en">Filter by</p> BEGIN OF mtyp_s_filter_by, intfid TYPE RANGE OF zintfmonitor010-intfid, procdate TYPE RANGE OF zintfmonitor020-procdate, proctime TYPE RANGE OF zintfmonitor020-proctime, procby TYPE RANGE OF zintfmonitor020-procby, procendtype TYPE RANGE OF zintfmonitor020-procendtype, END OF mtyp_s_filter_by . "! <p class="shorttext synchronized" lang="en">Displays Monitor application on screen</p> "! "! @parameter io_container | <p class="shorttext synchronized" lang="en">Abstract Container for GUI Controls</p> METHODS display IMPORTING !io_container TYPE REF TO cl_gui_container . "! <p class="shorttext synchronized" lang="en">Searches for interface executions</p> "! "! @parameter is_filters | <p class="shorttext synchronized" lang="en">Filter by</p> METHODS search IMPORTING !is_filters TYPE mtyp_s_filter_by RAISING zcx_intfmonitor . PROTECTED SECTION. PRIVATE SECTION. "! <p class="shorttext synchronized" lang="en">Filter by</p> DATA ms_filter_by TYPE mtyp_s_filter_by . "! <p class="shorttext synchronized" lang="en">Shows a list with info about interface executions</p> DATA mo_list TYPE REF TO zcl_intfmonitor_gui_list . "! <p class="shorttext synchronized" lang="en">Splitter Control</p> DATA mo_splitter_vertical TYPE REF TO cl_gui_splitter_container . "! <p class="shorttext synchronized" lang="en">Splitter Control</p> DATA mo_splitter_horizontal TYPE REF TO cl_gui_splitter_container . "! <p class="shorttext synchronized" lang="en">Main control for all application</p> DATA mo_container_root TYPE REF TO cl_gui_container . "! <p class="shorttext synchronized" lang="en">Control for summary data</p> DATA mo_container_summary TYPE REF TO cl_gui_container . "! <p class="shorttext synchronized" lang="en">Control for list data</p> DATA mo_container_list TYPE REF TO cl_gui_container . "! <p class="shorttext synchronized" lang="en">Control for detail data</p> DATA mo_container_detail TYPE REF TO cl_gui_container . "! <p class="shorttext synchronized" lang="en">SAP Monitor Interface App - Show Details</p> DATA mo_detail TYPE REF TO zcl_intfmonitor_gui_detail . "! <p class="shorttext synchronized" lang="en">SAP Monitor Interface App - Show summary</p> DATA mo_summary TYPE REF TO zcl_intfmonitor_gui_summary . TYPE-POOLS abap . "! <p class="shorttext synchronized" lang="en">Detail is shown</p> DATA mf_detail_is_shown TYPE abap_bool VALUE abap_false. "#EC NOTEXT . "! <p class="shorttext synchronized" lang="en">Initializes application data</p> "! "! @parameter it_list | <p class="shorttext synchronized" lang="en">List of interface executions</p> METHODS initialize IMPORTING !it_list TYPE ztt_zintfmonitor030 RAISING zcx_intfmonitor . CLASS zcl_zintfmonitor020_read DEFINITION LOAD . "! <p class="shorttext synchronized" lang="en">Executes search</p> "! "! @parameter is_filter_by | <p class="shorttext synchronized" lang="en">All fields in ranges</p> "! @parameter et_list | <p class="shorttext synchronized" lang="en">List of interface executions</p> METHODS do_search IMPORTING !is_filter_by TYPE zcl_zintfmonitor020_read=>mtyp_all_fields EXPORTING !et_list TYPE ztt_zintfmonitor030 . "! <p class="shorttext synchronized" lang="en">Builds screen</p> METHODS build_screen . "! <p class="shorttext synchronized" lang="en">Handles ListInterfaceSelected() event</p> METHODS on_list_interface_selected FOR EVENT interface_selected OF zcl_intfmonitor_gui_list . ENDCLASS. CLASS zcl_intfmonitor_gui_appl IMPLEMENTATION. METHOD build_screen. DATA: lo_dummy_container TYPE REF TO cl_gui_container. * Split main container into 2 horizontal containers. Upper container * will be also splitted vertically into two additional containers where left one * will be used for displaying summary data while rigth one will be will display a list * Finally, bottom container will display the details. CREATE OBJECT mo_splitter_horizontal EXPORTING parent = mo_container_root rows = 2 columns = 1 EXCEPTIONS OTHERS = 0. mo_splitter_horizontal->set_row_height( id = 1 height = 100 ). mo_splitter_horizontal->set_row_sash( id = 1 type = cl_gui_splitter_container=>type_movable value = cl_gui_splitter_container=>false ). mo_splitter_horizontal->set_row_sash( id = 1 type = cl_gui_splitter_container=>type_sashvisible value = cl_gui_splitter_container=>false ). lo_dummy_container = mo_splitter_horizontal->get_container( row = 1 column = 1 ). mo_container_detail = mo_splitter_horizontal->get_container( row = 2 column = 1 ). CREATE OBJECT mo_splitter_vertical EXPORTING parent = lo_dummy_container rows = 1 columns = 2 EXCEPTIONS OTHERS = 0. mo_container_summary = mo_splitter_vertical->get_container( row = 1 column = 1 ). mo_container_list = mo_splitter_vertical->get_container( row = 1 column = 2 ). mo_splitter_vertical->set_column_width( id = 1 width = 20 ). ENDMETHOD. METHOD display. mo_container_root = io_container. * Build screen sections build_screen( ). * Show data on screen mo_summary->display( mo_container_summary ). mo_list->display( mo_container_list ). mo_detail->display( mo_container_detail ). * Handle events SET HANDLER mo_list->on_summary_interface_selected FOR mo_summary. SET HANDLER mo_detail->on_list_interface_selected FOR mo_list. SET HANDLER me->on_list_interface_selected FOR mo_list. ENDMETHOD. METHOD do_search. DATA: lt_list TYPE ztt_zintfmonitor020. FIELD-SYMBOLS: <ls_list> LIKE LINE OF lt_list, <ls_found_list> LIKE LINE OF et_list. TRY. zcl_zintfmonitor020_read=>get_list_by( EXPORTING is_filter_by = is_filter_by IMPORTING et_list = lt_list ). LOOP AT lt_list ASSIGNING <ls_list>. INSERT INITIAL LINE INTO TABLE et_list ASSIGNING <ls_found_list>. <ls_found_list> = zcf_intfmonitor=>find_by_guid( <ls_list>-guid ). ENDLOOP. CATCH cx_db2_not_found . * Do nothing ENDTRY. ENDMETHOD. METHOD initialize. CLEAR: mo_list, mo_detail, mo_summary. CREATE OBJECT mo_list. CREATE OBJECT mo_summary. CREATE OBJECT mo_detail. mo_list->set_list( it_list ). mo_detail->set_list( it_list ). mo_summary->set_list( it_list ). ENDMETHOD. METHOD on_list_interface_selected. IF mf_detail_is_shown = abap_false. mo_splitter_horizontal->set_row_sash( id = 1 type = cl_gui_splitter_container=>type_movable value = cl_gui_splitter_container=>true ). mo_splitter_horizontal->set_row_sash( id = 1 type = cl_gui_splitter_container=>type_sashvisible value = cl_gui_splitter_container=>true ). mo_splitter_horizontal->set_row_height( id = 1 height = 50 ). mo_splitter_horizontal->set_row_height( id = 2 height = 50 ). mf_detail_is_shown = abap_true. ENDIF. ENDMETHOD. METHOD search. DATA: ls_filter_by TYPE zcl_zintfmonitor020_read=>mtyp_all_fields, lt_list TYPE ztt_zintfmonitor030. ls_filter_by-intfid = is_filters-intfid. ls_filter_by-procdate = is_filters-procdate. ls_filter_by-proctime = is_filters-proctime. ls_filter_by-procby = is_filters-procby. ls_filter_by-procendtype = is_filters-procendtype. do_search( EXPORTING is_filter_by = ls_filter_by IMPORTING et_list = lt_list ). initialize( lt_list ). ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 50, 2969, 26491, 18289, 15678, 3556, 79, 29, 198, 31631, 1976, 565, 62, 600, 69, 41143, 62, 48317, 62, 1324, 75, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 628, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 22417, 416, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 285, 28004, 62, 82, 62, 24455, 62, 1525, 11, 198, 220, 220, 220, 220, 220, 220, 220, 493, 69, 312, 220, 220, 220, 220, 220, 41876, 371, 27746, 3963, 1976, 600, 69, 41143, 20943, 12, 600, 69, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 13834, 4475, 220, 220, 220, 41876, 371, 27746, 3963, 1976, 600, 69, 41143, 33618, 12, 36942, 4475, 11, 198, 220, 220, 220, 220, 220, 220, 220, 386, 310, 524, 220, 220, 220, 41876, 371, 27746, 3963, 1976, 600, 69, 41143, 33618, 12, 1676, 310, 524, 11, 198, 220, 220, 220, 220, 220, 220, 220, 13834, 1525, 220, 220, 220, 220, 220, 41876, 371, 27746, 3963, 1976, 600, 69, 41143, 33618, 12, 36942, 1525, 11, 198, 220, 220, 220, 220, 220, 220, 220, 13834, 437, 4906, 41876, 371, 27746, 3963, 1976, 600, 69, 41143, 33618, 12, 1676, 15695, 4906, 11, 198, 220, 220, 220, 220, 220, 23578, 220, 220, 3963, 285, 28004, 62, 82, 62, 24455, 62, 1525, 764, 628, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 7279, 26024, 18289, 3586, 319, 3159, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 33245, 62, 34924, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 23839, 43101, 329, 25757, 36357, 3556, 79, 29, 198, 220, 220, 220, 337, 36252, 50, 3359, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 34924, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 34924, 764, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 50, 451, 2052, 329, 7071, 30632, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 318, 62, 10379, 1010, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 22417, 416, 3556, 79, 29, 198, 220, 220, 220, 337, 36252, 50, 2989, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 10379, 1010, 41876, 285, 28004, 62, 82, 62, 24455, 62, 1525, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 600, 69, 41143, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 22417, 416, 3556, 79, 29, 198, 220, 220, 220, 42865, 13845, 62, 24455, 62, 1525, 41876, 285, 28004, 62, 82, 62, 24455, 62, 1525, 764, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 2484, 1666, 257, 1351, 351, 7508, 546, 7071, 30632, 3556, 79, 29, 198, 220, 220, 220, 42865, 6941, 62, 4868, 41876, 4526, 37, 5390, 1976, 565, 62, 600, 69, 41143, 62, 48317, 62, 4868, 764, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 26568, 1967, 6779, 3556, 79, 29, 198, 220, 220, 220, 42865, 6941, 62, 22018, 1967, 62, 1851, 605, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 22018, 1967, 62, 34924, 764, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 26568, 1967, 6779, 3556, 79, 29, 198, 220, 220, 220, 42865, 6941, 62, 22018, 1967, 62, 17899, 38342, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 22018, 1967, 62, 34924, 764, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 13383, 1630, 329, 477, 3586, 3556, 79, 29, 198, 220, 220, 220, 42865, 6941, 62, 34924, 62, 15763, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 34924, 764, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 15988, 329, 10638, 1366, 3556, 79, 29, 198, 220, 220, 220, 42865, 6941, 62, 34924, 62, 49736, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 34924, 764, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 15988, 329, 1351, 1366, 3556, 79, 29, 198, 220, 220, 220, 42865, 6941, 62, 34924, 62, 4868, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 34924, 764, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 15988, 329, 3703, 1366, 3556, 79, 29, 198, 220, 220, 220, 42865, 6941, 62, 34924, 62, 49170, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 34924, 764, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 50, 2969, 18289, 26491, 2034, 532, 5438, 14890, 3556, 79, 29, 198, 220, 220, 220, 42865, 6941, 62, 49170, 41876, 4526, 37, 5390, 1976, 565, 62, 600, 69, 41143, 62, 48317, 62, 49170, 764, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 50, 2969, 18289, 26491, 2034, 532, 5438, 10638, 3556, 79, 29, 198, 220, 220, 220, 42865, 6941, 62, 49736, 41876, 4526, 37, 5390, 1976, 565, 62, 600, 69, 41143, 62, 48317, 62, 49736, 764, 198, 220, 220, 220, 41876, 12, 16402, 3535, 50, 450, 499, 764, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 11242, 603, 318, 3402, 3556 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS ltcl_camel_case DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. METHODS: to_abap FOR TESTING RAISING zcx_abapgit_ajson_error, to_json FOR TESTING RAISING zcx_abapgit_ajson_error, to_json_nested_struc FOR TESTING RAISING zcx_abapgit_ajson_error, to_json_first_lower FOR TESTING RAISING zcx_abapgit_ajson_error. ENDCLASS. CLASS ltcl_camel_case IMPLEMENTATION. METHOD to_abap. DATA: lo_ajson TYPE REF TO zcl_abapgit_ajson, li_mapping TYPE REF TO zif_abapgit_ajson_mapping. DATA: BEGIN OF ls_result, field_data TYPE string, END OF ls_result. li_mapping = zcl_abapgit_ajson_mapping=>create_camel_case( ). lo_ajson = zcl_abapgit_ajson=>parse( iv_json = '{"FieldData":"field_value"}' ii_custom_mapping = li_mapping ). lo_ajson->to_abap( IMPORTING ev_container = ls_result ). cl_abap_unit_assert=>assert_equals( act = ls_result-field_data exp = 'field_value' ). ENDMETHOD. METHOD to_json. DATA: lo_ajson TYPE REF TO zcl_abapgit_ajson, li_mapping TYPE REF TO zif_abapgit_ajson_mapping. DATA: BEGIN OF ls_result, field_data TYPE string, END OF ls_result. li_mapping = zcl_abapgit_ajson_mapping=>create_camel_case( iv_first_json_upper = abap_false ). ls_result-field_data = 'field_value'. lo_ajson = zcl_abapgit_ajson=>create_empty( ii_custom_mapping = li_mapping ). lo_ajson->set( iv_path = '/' iv_val = ls_result ). cl_abap_unit_assert=>assert_equals( act = lo_ajson->stringify( ) exp = '{"fieldData":"field_value"}' ). ENDMETHOD. METHOD to_json_nested_struc. DATA: lo_ajson TYPE REF TO zcl_abapgit_ajson, li_mapping TYPE REF TO zif_abapgit_ajson_mapping. DATA: BEGIN OF ls_result, field_data TYPE string, BEGIN OF struc_data, field_more TYPE string, END OF struc_data, END OF ls_result. li_mapping = zcl_abapgit_ajson_mapping=>create_camel_case( iv_first_json_upper = abap_false ). ls_result-field_data = 'field_value'. ls_result-struc_data-field_more = 'field_more'. lo_ajson = zcl_abapgit_ajson=>create_empty( ii_custom_mapping = li_mapping ). lo_ajson->set( iv_path = '/' iv_val = ls_result ). cl_abap_unit_assert=>assert_equals( act = lo_ajson->stringify( ) exp = '{"fieldData":"field_value","strucData":{"fieldMore":"field_more"}}' ). ENDMETHOD. METHOD to_json_first_lower. DATA: lo_ajson TYPE REF TO zcl_abapgit_ajson, li_mapping TYPE REF TO zif_abapgit_ajson_mapping. DATA: BEGIN OF ls_result, field_data TYPE string, END OF ls_result. li_mapping = zcl_abapgit_ajson_mapping=>create_camel_case( ). ls_result-field_data = 'field_value'. lo_ajson = zcl_abapgit_ajson=>create_empty( ii_custom_mapping = li_mapping ). lo_ajson->set( iv_path = '/' iv_val = ls_result ). cl_abap_unit_assert=>assert_equals( act = lo_ajson->stringify( ) exp = '{"FieldData":"field_value"}' ). ENDMETHOD. ENDCLASS. CLASS ltcl_fields DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. METHODS: to_abap FOR TESTING RAISING zcx_abapgit_ajson_error, to_json FOR TESTING RAISING zcx_abapgit_ajson_error. ENDCLASS. CLASS ltcl_fields IMPLEMENTATION. METHOD to_abap. DATA: lo_ajson TYPE REF TO zcl_abapgit_ajson, li_mapping TYPE REF TO zif_abapgit_ajson_mapping, lt_mapping_fields TYPE zif_abapgit_ajson_mapping=>ty_mapping_fields, ls_mapping_field LIKE LINE OF lt_mapping_fields. DATA: BEGIN OF ls_result, abap_field TYPE string, field TYPE string, END OF ls_result. CLEAR ls_mapping_field. ls_mapping_field-abap = 'ABAP_FIELD'. ls_mapping_field-json = 'json.field'. INSERT ls_mapping_field INTO TABLE lt_mapping_fields. li_mapping = zcl_abapgit_ajson_mapping=>create_field_mapping( lt_mapping_fields ). lo_ajson = zcl_abapgit_ajson=>parse( iv_json = '{"field":"value","json.field":"field_value"}' ii_custom_mapping = li_mapping ). lo_ajson->to_abap( IMPORTING ev_container = ls_result ). cl_abap_unit_assert=>assert_equals( act = ls_result-abap_field exp = 'field_value' ). cl_abap_unit_assert=>assert_equals( act = ls_result-field exp = 'value' ). ENDMETHOD. METHOD to_json. DATA: lo_ajson TYPE REF TO zcl_abapgit_ajson, li_mapping TYPE REF TO zif_abapgit_ajson_mapping, lt_mapping_fields TYPE zif_abapgit_ajson_mapping=>ty_mapping_fields, ls_mapping_field LIKE LINE OF lt_mapping_fields. DATA: BEGIN OF ls_result, abap_field TYPE string, field TYPE string, END OF ls_result. CLEAR ls_mapping_field. ls_mapping_field-abap = 'ABAP_FIELD'. ls_mapping_field-json = 'json.field'. INSERT ls_mapping_field INTO TABLE lt_mapping_fields. li_mapping = zcl_abapgit_ajson_mapping=>create_field_mapping( lt_mapping_fields ). ls_result-abap_field = 'field_value'. ls_result-field = 'value'. lo_ajson = zcl_abapgit_ajson=>create_empty( ii_custom_mapping = li_mapping ). lo_ajson->set( iv_path = '/' iv_val = ls_result ). cl_abap_unit_assert=>assert_equals( act = lo_ajson->stringify( ) exp = '{"field":"value","json.field":"field_value"}' ). ENDMETHOD. ENDCLASS. CLASS ltcl_to_lower DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. METHODS: to_json FOR TESTING RAISING zcx_abapgit_ajson_error. ENDCLASS. CLASS ltcl_to_lower IMPLEMENTATION. METHOD to_json. DATA: lo_ajson TYPE REF TO zcl_abapgit_ajson, li_mapping TYPE REF TO zif_abapgit_ajson_mapping. DATA: BEGIN OF ls_result, field_data TYPE string, END OF ls_result. li_mapping = zcl_abapgit_ajson_mapping=>create_lower_case( ). ls_result-field_data = 'field_value'. lo_ajson = zcl_abapgit_ajson=>create_empty( ii_custom_mapping = li_mapping ). lo_ajson->set( iv_path = '/' iv_val = ls_result ). cl_abap_unit_assert=>assert_equals( act = lo_ajson->stringify( ) exp = '{"field_data":"field_value"}' ). ENDMETHOD. ENDCLASS. CLASS ltcl_to_upper DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. METHODS: to_json FOR TESTING RAISING zcx_abapgit_ajson_error. ENDCLASS. CLASS ltcl_to_upper IMPLEMENTATION. METHOD to_json. DATA: lo_ajson TYPE REF TO zcl_abapgit_ajson, li_mapping TYPE REF TO zif_abapgit_ajson_mapping. DATA: BEGIN OF ls_result, field_data TYPE string, END OF ls_result. li_mapping = zcl_abapgit_ajson_mapping=>create_upper_case( ). ls_result-field_data = 'field_value'. lo_ajson = zcl_abapgit_ajson=>create_empty( ii_custom_mapping = li_mapping ). lo_ajson->set( iv_path = '/' iv_val = ls_result ). cl_abap_unit_assert=>assert_equals( act = lo_ajson->stringify( ) exp = '{"FIELD_DATA":"field_value"}' ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 83, 565, 62, 66, 17983, 62, 7442, 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, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 284, 62, 397, 499, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 11, 198, 220, 220, 220, 220, 220, 284, 62, 17752, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 11, 198, 220, 220, 220, 220, 220, 284, 62, 17752, 62, 77, 7287, 62, 19554, 66, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 11, 198, 220, 220, 220, 220, 220, 284, 62, 17752, 62, 11085, 62, 21037, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 198, 198, 10619, 31631, 13, 628, 198, 31631, 300, 83, 565, 62, 66, 17983, 62, 7442, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 284, 62, 397, 499, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 2376, 62, 1228, 1559, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 1228, 1559, 11, 198, 220, 220, 220, 220, 220, 7649, 62, 76, 5912, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 76, 5912, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 43979, 62, 20274, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2214, 62, 7890, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 43979, 62, 20274, 13, 628, 220, 220, 220, 7649, 62, 76, 5912, 796, 1976, 565, 62, 397, 499, 18300, 62, 1228, 1559, 62, 76, 5912, 14804, 17953, 62, 66, 17983, 62, 7442, 7, 6739, 628, 220, 220, 220, 2376, 62, 1228, 1559, 796, 1976, 565, 62, 397, 499, 18300, 62, 1228, 1559, 14804, 29572, 7, 21628, 62, 17752, 796, 705, 4895, 15878, 6601, 2404, 3245, 62, 8367, 20662, 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, 21065, 62, 23144, 62, 76, 5912, 796, 7649, 62, 76, 5912, 6739, 628, 220, 220, 220, 2376, 62, 1228, 1559, 3784, 1462, 62, 397, 499, 7, 30023, 9863, 2751, 819, 62, 34924, 796, 43979, 62, 20274, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 719, 796, 43979, 62, 20274, 12, 3245, 62, 7890, 198, 220, 220, 220, 220, 220, 1033, 796, 705, 3245, 62, 8367, 6, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 284, 62, 17752, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 2376, 62, 1228, 1559, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 1228, 1559, 11, 198, 220, 220, 220, 220, 220, 7649, 62, 76, 5912, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 76, 5912, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 43979, 62, 20274, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2214, 62, 7890, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 43979, 62, 20274, 13, 628, 220, 220, 220, 7649, 62, 76, 5912, 796, 1976, 565, 62, 397, 499, 18300, 62, 1228, 1559, 62, 76, 5912, 14804, 17953, 62, 66, 17983, 62, 7442, 7, 21628, 62, 11085, 62, 17752, 62, 45828, 796, 450, 499, 62, 9562, 6739, 628, 220, 220, 220, 43979, 62, 20274, 12, 3245, 62, 7890, 796, 705, 3245, 62, 8367, 4458, 628, 220, 220, 220, 2376, 62, 1228, 1559, 796, 1976, 565, 62, 397, 499, 18300, 62, 1228, 1559, 14804, 17953, 62, 28920, 7, 21065, 62, 23144, 62, 76, 5912, 796, 7649, 62, 76, 5912, 6739, 628, 220, 220, 220, 2376, 62, 1228, 1559, 3784, 2617, 7, 21628, 62, 6978, 796, 31051, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 2100, 796, 43979, 62, 20274, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 719, 796, 2376, 62, 1228, 1559, 3784, 8841, 1958, 7, 1267, 198, 220, 220, 220, 220, 220, 1033, 796, 705, 4895, 3245, 6601, 2404, 3245, 62, 8367, 20662, 6, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 284, 62, 17752, 62, 77, 7287, 62, 19554, 66, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 2376, 62, 1228, 1559, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 1228, 1559, 11, 198, 220, 220, 220, 220, 220, 7649, 62, 76, 5912, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 76, 5912, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 43979, 62, 20274, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2214, 62, 7890, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 2874, 66, 62, 7890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 62, 3549, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 2874, 66, 62, 7890, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 43979, 62, 20274, 13, 628, 220, 220, 220, 7649, 62, 76, 5912, 796, 1976, 565, 62, 397, 499, 18300, 62, 1228, 1559, 62, 76, 5912, 14804, 17953, 62, 66, 17983,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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 ]
CLASS zcl_aoc_check_67 DEFINITION PUBLIC INHERITING FROM zcl_aoc_super_root CREATE PUBLIC . PUBLIC SECTION. METHODS constructor . METHODS run REDEFINITION . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ZCL_AOC_CHECK_67 IMPLEMENTATION. METHOD constructor. super->constructor( ). version = '001'. position = '067'. has_documentation = abap_true. has_attributes = abap_true. attributes_ok = abap_true. add_obj_type( 'DDLS' ). insert_scimessage( iv_code = '001' iv_text = '&1'(m01) ). ENDMETHOD. METHOD run. * abapOpenChecks * https://github.com/larshp/abapOpenChecks * MIT License DATA: lo_handler TYPE REF TO object, lx_check TYPE REF TO cx_static_check, lr_data TYPE REF TO data, lv_str TYPE string. FIELD-SYMBOLS: <lg_error> TYPE any, <lv_arbgb> TYPE arbgb, <lv_msgnr> TYPE msgnr, <lv_var1> TYPE char50, <lv_var2> TYPE char50, <lv_var3> TYPE char50, <lv_var4> TYPE char50, <lt_errors> TYPE STANDARD TABLE. IF object_type <> 'DDLS'. RETURN. ENDIF. TRY. CALL METHOD ('CL_DD_DDL_HANDLER_FACTORY')=>('CREATE') RECEIVING handler = lo_handler. CALL METHOD lo_handler->('IF_DD_DDL_HANDLER~CHECK') EXPORTING name = object_name. CATCH cx_static_check INTO lx_check. " CX_DD_DDL_CHECK CREATE DATA lr_data TYPE ('DDL2DDICERRORS'). ASSIGN lr_data->* TO <lt_errors>. CALL METHOD lx_check->('GET_ERRORS') RECEIVING errors = <lt_errors>. LOOP AT <lt_errors> ASSIGNING <lg_error>. ASSIGN COMPONENT 'ARBGB' OF STRUCTURE <lg_error> TO <lv_arbgb>. "#EC CI_SUBRC ASSIGN COMPONENT 'MSGNR' OF STRUCTURE <lg_error> TO <lv_msgnr>. "#EC CI_SUBRC ASSIGN COMPONENT 'VAR1' OF STRUCTURE <lg_error> TO <lv_var1>. "#EC CI_SUBRC ASSIGN COMPONENT 'VAR2' OF STRUCTURE <lg_error> TO <lv_var2>. "#EC CI_SUBRC ASSIGN COMPONENT 'VAR3' OF STRUCTURE <lg_error> TO <lv_var3>. "#EC CI_SUBRC ASSIGN COMPONENT 'VAR4' OF STRUCTURE <lg_error> TO <lv_var4>. "#EC CI_SUBRC MESSAGE ID <lv_arbgb> TYPE 'E' NUMBER <lv_msgnr> WITH <lv_var1> <lv_var2> <lv_var3> <lv_var4> INTO lv_str. inform( p_sub_obj_type = object_type p_sub_obj_name = object_name p_test = myname p_kind = mv_errty p_code = '001' p_param_1 = lv_str ). ENDLOOP. ENDTRY. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 64, 420, 62, 9122, 62, 3134, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 64, 420, 62, 16668, 62, 15763, 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, 1057, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 32, 4503, 62, 50084, 62, 3134, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 628, 220, 220, 220, 2196, 220, 220, 220, 220, 796, 705, 8298, 4458, 198, 220, 220, 220, 2292, 220, 220, 220, 796, 705, 15, 3134, 4458, 628, 220, 220, 220, 468, 62, 22897, 341, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 468, 62, 1078, 7657, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 12608, 62, 482, 220, 796, 450, 499, 62, 7942, 13, 628, 220, 220, 220, 751, 62, 26801, 62, 4906, 7, 705, 16458, 6561, 6, 6739, 628, 220, 220, 220, 7550, 62, 1416, 320, 7589, 7, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 8189, 796, 705, 8298, 6, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 5239, 796, 705, 5, 16, 6, 7, 76, 486, 8, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1057, 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, 2376, 62, 30281, 41876, 4526, 37, 5390, 2134, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 87, 62, 9122, 220, 220, 41876, 4526, 37, 5390, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 81, 62, 7890, 220, 220, 220, 41876, 4526, 37, 5390, 1366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 2536, 220, 220, 220, 220, 41876, 4731, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 75, 70, 62, 18224, 29, 220, 41876, 597, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 6780, 62, 38039, 22296, 29, 220, 41876, 610, 65, 22296, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 6780, 62, 907, 4593, 81, 29, 220, 41876, 13845, 4593, 81, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 6780, 62, 7785, 16, 29, 220, 220, 41876, 1149, 1120, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 6780, 62, 7785, 17, 29, 220, 220, 41876, 1149, 1120, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 6780, 62, 7785, 18, 29, 220, 220, 41876, 1149, 1120, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 6780, 62, 7785, 19, 29, 220, 220, 41876, 1149, 1120, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 2528, 62, 48277, 29, 41876, 49053, 9795, 43679, 13, 628, 198, 220, 220, 220, 16876, 2134, 62, 4906, 1279, 29, 705, 16458, 6561, 4458, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42815, 337, 36252, 19203, 5097, 62, 16458, 62, 16458, 43, 62, 39, 6981, 39878, 62, 37, 10659, 15513, 11537, 14804, 10786, 43387, 6158, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19644, 36, 3824, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21360, 796, 2376, 62, 30281, 13, 628, 220, 220, 220, 220, 220, 220, 220, 42815, 337, 36252, 2376, 62, 30281, 3784, 10786, 5064, 62, 16458, 62, 16458, 43, 62, 39, 6981, 39878, 93, 50084, 11537, 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, 1438, 796, 2134, 62, 3672, 13, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 12708, 62, 9122, 39319, 300, 87, 62, 9122, 13, 366, 327, 55, 62, 16458, 62, 16458, 43, 62, 50084, 628, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 42865, 300, 81, 62, 7890, 41876, 19203, 16458, 43, 17, 16458, 2149, 24908, 50, 27691, 198, 220, 220, 220, 220, 220, 220, 220, 24994, 16284, 300, 81, 62, 7890, 3784, 9, 5390, 1279, 2528, 62, 48277, 28401, 628, 220, 220, 220, 220, 220, 220, 220, 42815, 337, 36252, 300, 87, 62, 9122, 3784, 10786, 18851, 62, 24908, 50, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19644, 36, 3824, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8563, 796, 1279, 2528, 62, 48277, 28401, 628, 220, 220, 220, 220, 220, 220, 220, 17579, 3185, 5161, 1279, 2528, 62, 48277, 29, 24994, 3528, 15871, 1279, 75, 70, 62, 18224, 28401, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24994, 16284, 24301, 1340, 3525, 705, 37304, 4579, 6, 3963, 19269, 18415, 11335, 1279, 75, 70, 62, 18224, 29, 5390, 1279, 6780, 62, 38039, 22296, 28401, 25113, 2943, 14514, 62, 50, 10526, 7397, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24994, 16284, 24301, 1340, 3525, 705, 5653, 16630, 49, 6, 3963, 19269, 18415, 11335, 1279, 75, 70, 62, 18224, 29, 5390, 1279, 6780, 62, 907, 4593, 81, 28401, 25113, 2943, 14514, 62, 50, 10526 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
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. zcl_abappgp_unit_test=>subpacket_identity( iv_data = 'A' iv_type = zif_abappgp_constants=>c_sub_type-signature_target ). 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, 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, 1976, 565, 62, 397, 1324, 31197, 62, 20850, 62, 9288, 14804, 7266, 8002, 316, 62, 738, 414, 7, 198, 220, 220, 220, 220, 220, 21628, 62, 7890, 796, 705, 32, 6, 198, 220, 220, 220, 220, 220, 21628, 62, 4906, 796, 1976, 361, 62, 397, 1324, 31197, 62, 9979, 1187, 14804, 66, 62, 7266, 62, 4906, 12, 12683, 1300, 62, 16793, 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 ]
CLASS zcl_excel_style_changer DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_excel_style_changer. CLASS-METHODS create IMPORTING excel TYPE REF TO zcl_excel RETURNING VALUE(result) TYPE REF TO zif_excel_style_changer RAISING zcx_excel. PROTECTED SECTION. PRIVATE SECTION. METHODS clear_initial_colorxfields IMPORTING is_color TYPE zexcel_s_style_color CHANGING cs_xcolor TYPE zexcel_s_cstylex_color. METHODS move_supplied_borders IMPORTING iv_border_supplied TYPE abap_bool is_border TYPE zexcel_s_cstyle_border iv_xborder_supplied TYPE abap_bool is_xborder TYPE zexcel_s_cstylex_border CHANGING cs_complete_style_border TYPE zexcel_s_cstyle_border cs_complete_stylex_border TYPE zexcel_s_cstylex_border. DATA: excel TYPE REF TO zcl_excel, lv_xborder_supplied TYPE abap_bool, single_change_requested TYPE zexcel_s_cstylex_complete, BEGIN OF multiple_change_requested, complete TYPE abap_bool, font TYPE abap_bool, fill TYPE abap_bool, BEGIN OF borders, complete TYPE abap_bool, allborders TYPE abap_bool, diagonal TYPE abap_bool, down TYPE abap_bool, left TYPE abap_bool, right TYPE abap_bool, top TYPE abap_bool, END OF borders, alignment TYPE abap_bool, protection TYPE abap_bool, END OF multiple_change_requested. CONSTANTS: lv_border_supplied TYPE abap_bool VALUE abap_true. ALIASES: complete_style FOR zif_excel_style_changer~complete_style, complete_stylex FOR zif_excel_style_changer~complete_stylex. ENDCLASS. CLASS zcl_excel_style_changer IMPLEMENTATION. METHOD clear_initial_colorxfields. IF is_color-rgb IS INITIAL. CLEAR cs_xcolor-rgb. ENDIF. IF is_color-indexed IS INITIAL. CLEAR cs_xcolor-indexed. ENDIF. IF is_color-theme IS INITIAL. CLEAR cs_xcolor-theme. ENDIF. IF is_color-tint IS INITIAL. CLEAR cs_xcolor-tint. ENDIF. ENDMETHOD. METHOD create. DATA: style TYPE REF TO zcl_excel_style_changer. CREATE OBJECT style. style->excel = excel. result = style. ENDMETHOD. METHOD move_supplied_borders. DATA: cs_borderx TYPE zexcel_s_cstylex_border. IF iv_border_supplied = abap_true. " only act if parameter was supplied IF iv_xborder_supplied = abap_true. " cs_borderx = is_xborder. " use supplied x-parameter ELSE. CLEAR cs_borderx WITH 'X'. " <============================== DDIC structure enh. category to set? " clear in a way that would be expected to work easily IF is_border-border_style IS INITIAL. CLEAR cs_borderx-border_style. ENDIF. clear_initial_colorxfields( EXPORTING is_color = is_border-border_color CHANGING cs_xcolor = cs_borderx-border_color ). ENDIF. cs_complete_style_border = is_border. cs_complete_stylex_border = cs_borderx. ENDIF. ENDMETHOD. METHOD zif_excel_style_changer~apply. DATA: stylemapping TYPE zexcel_s_stylemapping, lo_worksheet TYPE REF TO zcl_excel_worksheet, l_guid TYPE zexcel_cell_style. lo_worksheet = excel->get_worksheet_by_name( ip_sheet_name = ip_worksheet->get_title( ) ). IF lo_worksheet <> ip_worksheet. zcx_excel=>raise_text( 'Worksheet doesn''t correspond to workbook of style changer'(001) ). ENDIF. TRY. ip_worksheet->get_cell( EXPORTING ip_column = ip_column ip_row = ip_row IMPORTING ep_guid = l_guid ). stylemapping = excel->get_style_to_guid( l_guid ). CATCH zcx_excel. * Error --> use submitted style ENDTRY. IF multiple_change_requested-complete = abap_true. stylemapping-complete_style = complete_style. stylemapping-complete_stylex = complete_stylex. ENDIF. IF multiple_change_requested-font = abap_true. stylemapping-complete_style-font = complete_style-font. stylemapping-complete_stylex-font = complete_stylex-font. ENDIF. IF multiple_change_requested-fill = abap_true. stylemapping-complete_style-fill = complete_style-fill. stylemapping-complete_stylex-fill = complete_stylex-fill. ENDIF. IF multiple_change_requested-borders-complete = abap_true. stylemapping-complete_style-borders = complete_style-borders. stylemapping-complete_stylex-borders = complete_stylex-borders. ENDIF. IF multiple_change_requested-borders-allborders = abap_true. stylemapping-complete_style-borders-allborders = complete_style-borders-allborders. stylemapping-complete_stylex-borders-allborders = complete_stylex-borders-allborders. ENDIF. IF multiple_change_requested-borders-diagonal = abap_true. stylemapping-complete_style-borders-diagonal = complete_style-borders-diagonal. stylemapping-complete_stylex-borders-diagonal = complete_stylex-borders-diagonal. ENDIF. IF multiple_change_requested-borders-down = abap_true. stylemapping-complete_style-borders-down = complete_style-borders-down. stylemapping-complete_stylex-borders-down = complete_stylex-borders-down. ENDIF. IF multiple_change_requested-borders-left = abap_true. stylemapping-complete_style-borders-left = complete_style-borders-left. stylemapping-complete_stylex-borders-left = complete_stylex-borders-left. ENDIF. IF multiple_change_requested-borders-right = abap_true. stylemapping-complete_style-borders-right = complete_style-borders-right. stylemapping-complete_stylex-borders-right = complete_stylex-borders-right. ENDIF. IF multiple_change_requested-borders-TOP = abap_true. stylemapping-complete_style-borders-TOP = complete_style-borders-TOP. stylemapping-complete_stylex-borders-TOP = complete_stylex-borders-TOP. ENDIF. IF multiple_change_requested-alignment = abap_true. stylemapping-complete_style-alignment = complete_style-alignment. stylemapping-complete_stylex-alignment = complete_stylex-alignment. ENDIF. IF multiple_change_requested-protection = abap_true. stylemapping-complete_style-protection = complete_style-protection. stylemapping-complete_stylex-protection = complete_stylex-protection. ENDIF. IF complete_stylex-number_format = abap_true. stylemapping-complete_style-number_format-format_code = complete_style-number_format-format_code. stylemapping-complete_stylex-number_format-format_code = abap_true. ENDIF. IF complete_stylex-font-bold = abap_true. stylemapping-complete_style-font-bold = complete_style-font-bold. stylemapping-complete_stylex-font-bold = complete_stylex-font-bold. ENDIF. IF complete_stylex-font-color = abap_true. stylemapping-complete_style-font-color = complete_style-font-color. stylemapping-complete_stylex-font-color = complete_stylex-font-color. ENDIF. IF complete_stylex-font-color-rgb = abap_true. stylemapping-complete_style-font-color-rgb = complete_style-font-color-rgb. stylemapping-complete_stylex-font-color-rgb = complete_stylex-font-color-rgb. ENDIF. IF complete_stylex-font-color-indexed = abap_true. stylemapping-complete_style-font-color-indexed = complete_style-font-color-indexed. stylemapping-complete_stylex-font-color-indexed = complete_stylex-font-color-indexed. ENDIF. IF complete_stylex-font-color-theme = abap_true. stylemapping-complete_style-font-color-theme = complete_style-font-color-theme. stylemapping-complete_stylex-font-color-theme = complete_stylex-font-color-theme. ENDIF. IF complete_stylex-font-color-tint = abap_true. stylemapping-complete_style-font-color-tint = complete_style-font-color-tint. stylemapping-complete_stylex-font-color-tint = complete_stylex-font-color-tint. ENDIF. IF complete_stylex-font-family = abap_true. stylemapping-complete_style-font-family = complete_style-font-family. stylemapping-complete_stylex-font-family = complete_stylex-font-family. ENDIF. IF complete_stylex-font-italic = abap_true. stylemapping-complete_style-font-italic = complete_style-font-italic. stylemapping-complete_stylex-font-italic = complete_stylex-font-italic. ENDIF. IF complete_stylex-font-name = abap_true. stylemapping-complete_style-font-name = complete_style-font-name. stylemapping-complete_stylex-font-name = complete_stylex-font-name. ENDIF. IF complete_stylex-font-scheme = abap_true. stylemapping-complete_style-font-scheme = complete_style-font-scheme. stylemapping-complete_stylex-font-scheme = complete_stylex-font-scheme. ENDIF. IF complete_stylex-font-size = abap_true. stylemapping-complete_style-font-size = complete_style-font-size. stylemapping-complete_stylex-font-size = complete_stylex-font-size. ENDIF. IF complete_stylex-font-strikethrough = abap_true. stylemapping-complete_style-font-strikethrough = complete_style-font-strikethrough. stylemapping-complete_stylex-font-strikethrough = complete_stylex-font-strikethrough. ENDIF. IF complete_stylex-font-underline = abap_true. stylemapping-complete_style-font-underline = complete_style-font-underline. stylemapping-complete_stylex-font-underline = complete_stylex-font-underline. ENDIF. IF complete_stylex-font-underline_mode = abap_true. stylemapping-complete_style-font-underline_mode = complete_style-font-underline_mode. stylemapping-complete_stylex-font-underline_mode = complete_stylex-font-underline_mode. ENDIF. IF complete_stylex-fill-filltype = abap_true. stylemapping-complete_style-fill-filltype = complete_style-fill-filltype. stylemapping-complete_stylex-fill-filltype = complete_stylex-fill-filltype. ENDIF. IF complete_stylex-fill-rotation = abap_true. stylemapping-complete_style-fill-rotation = complete_style-fill-rotation. stylemapping-complete_stylex-fill-rotation = complete_stylex-fill-rotation. ENDIF. IF complete_stylex-fill-fgcolor = abap_true. stylemapping-complete_style-fill-fgcolor = complete_style-fill-fgcolor. stylemapping-complete_stylex-fill-fgcolor = complete_stylex-fill-fgcolor. ENDIF. IF complete_stylex-fill-fgcolor-rgb = abap_true. stylemapping-complete_style-fill-fgcolor-rgb = complete_style-fill-fgcolor-rgb. stylemapping-complete_stylex-fill-fgcolor-rgb = complete_stylex-fill-fgcolor-rgb. ENDIF. IF complete_stylex-fill-fgcolor-indexed = abap_true. stylemapping-complete_style-fill-fgcolor-indexed = complete_style-fill-fgcolor-indexed. stylemapping-complete_stylex-fill-fgcolor-indexed = complete_stylex-fill-fgcolor-indexed. ENDIF. IF complete_stylex-fill-fgcolor-theme = abap_true. stylemapping-complete_style-fill-fgcolor-theme = complete_style-fill-fgcolor-theme. stylemapping-complete_stylex-fill-fgcolor-theme = complete_stylex-fill-fgcolor-theme. ENDIF. IF complete_stylex-fill-fgcolor-tint = abap_true. stylemapping-complete_style-fill-fgcolor-tint = complete_style-fill-fgcolor-tint. stylemapping-complete_stylex-fill-fgcolor-tint = complete_stylex-fill-fgcolor-tint. ENDIF. IF complete_stylex-fill-bgcolor = abap_true. stylemapping-complete_style-fill-bgcolor = complete_style-fill-bgcolor. stylemapping-complete_stylex-fill-bgcolor = complete_stylex-fill-bgcolor. ENDIF. IF complete_stylex-fill-bgcolor-rgb = abap_true. stylemapping-complete_style-fill-bgcolor-rgb = complete_style-fill-bgcolor-rgb. stylemapping-complete_stylex-fill-bgcolor-rgb = complete_stylex-fill-bgcolor-rgb. ENDIF. IF complete_stylex-fill-bgcolor-indexed = abap_true. stylemapping-complete_style-fill-bgcolor-indexed = complete_style-fill-bgcolor-indexed. stylemapping-complete_stylex-fill-bgcolor-indexed = complete_stylex-fill-bgcolor-indexed. ENDIF. IF complete_stylex-fill-bgcolor-theme = abap_true. stylemapping-complete_style-fill-bgcolor-theme = complete_style-fill-bgcolor-theme. stylemapping-complete_stylex-fill-bgcolor-theme = complete_stylex-fill-bgcolor-theme. ENDIF. IF complete_stylex-fill-bgcolor-tint = abap_true. stylemapping-complete_style-fill-bgcolor-tint = complete_style-fill-bgcolor-tint. stylemapping-complete_stylex-fill-bgcolor-tint = complete_stylex-fill-bgcolor-tint. ENDIF. IF complete_stylex-fill-gradtype-type = abap_true. stylemapping-complete_style-fill-gradtype-type = complete_style-fill-gradtype-type. stylemapping-complete_stylex-fill-gradtype-type = complete_stylex-fill-gradtype-type. ENDIF. IF complete_stylex-fill-gradtype-degree = abap_true. stylemapping-complete_style-fill-gradtype-degree = complete_style-fill-gradtype-degree. stylemapping-complete_stylex-fill-gradtype-degree = complete_stylex-fill-gradtype-degree. ENDIF. IF complete_stylex-fill-gradtype-bottom = abap_true. stylemapping-complete_style-fill-gradtype-bottom = complete_style-fill-gradtype-bottom. stylemapping-complete_stylex-fill-gradtype-bottom = complete_stylex-fill-gradtype-bottom. ENDIF. IF complete_stylex-fill-gradtype-left = abap_true. stylemapping-complete_style-fill-gradtype-left = complete_style-fill-gradtype-left. stylemapping-complete_stylex-fill-gradtype-left = complete_stylex-fill-gradtype-left. ENDIF. IF complete_stylex-fill-gradtype-top = abap_true. stylemapping-complete_style-fill-gradtype-top = complete_style-fill-gradtype-top. stylemapping-complete_stylex-fill-gradtype-top = complete_stylex-fill-gradtype-top. ENDIF. IF complete_stylex-fill-gradtype-right = abap_true. stylemapping-complete_style-fill-gradtype-right = complete_style-fill-gradtype-right. stylemapping-complete_stylex-fill-gradtype-right = complete_stylex-fill-gradtype-right. ENDIF. IF complete_stylex-fill-gradtype-position1 = abap_true. stylemapping-complete_style-fill-gradtype-position1 = complete_style-fill-gradtype-position1. stylemapping-complete_stylex-fill-gradtype-position1 = complete_stylex-fill-gradtype-position1. ENDIF. IF complete_stylex-fill-gradtype-position2 = abap_true. stylemapping-complete_style-fill-gradtype-position2 = complete_style-fill-gradtype-position2. stylemapping-complete_stylex-fill-gradtype-position2 = complete_stylex-fill-gradtype-position2. ENDIF. IF complete_stylex-fill-gradtype-position3 = abap_true. stylemapping-complete_style-fill-gradtype-position3 = complete_style-fill-gradtype-position3. stylemapping-complete_stylex-fill-gradtype-position3 = complete_stylex-fill-gradtype-position3. ENDIF. IF complete_stylex-borders-diagonal_mode = abap_true. stylemapping-complete_style-borders-diagonal_mode = complete_style-borders-diagonal_mode. stylemapping-complete_stylex-borders-diagonal_mode = complete_stylex-borders-diagonal_mode. ENDIF. IF complete_stylex-alignment-horizontal = abap_true. stylemapping-complete_style-alignment-horizontal = complete_style-alignment-horizontal. stylemapping-complete_stylex-alignment-horizontal = complete_stylex-alignment-horizontal. ENDIF. IF complete_stylex-alignment-vertical = abap_true. stylemapping-complete_style-alignment-vertical = complete_style-alignment-vertical. stylemapping-complete_stylex-alignment-vertical = complete_stylex-alignment-vertical. ENDIF. IF complete_stylex-alignment-textrotation = abap_true. stylemapping-complete_style-alignment-textrotation = complete_style-alignment-textrotation. stylemapping-complete_stylex-alignment-textrotation = complete_stylex-alignment-textrotation. ENDIF. IF complete_stylex-alignment-wraptext = abap_true. stylemapping-complete_style-alignment-wraptext = complete_style-alignment-wraptext. stylemapping-complete_stylex-alignment-wraptext = complete_stylex-alignment-wraptext. ENDIF. IF complete_stylex-alignment-shrinktofit = abap_true. stylemapping-complete_style-alignment-shrinktofit = complete_style-alignment-shrinktofit. stylemapping-complete_stylex-alignment-shrinktofit = complete_stylex-alignment-shrinktofit. ENDIF. IF complete_stylex-alignment-indent = abap_true. stylemapping-complete_style-alignment-indent = complete_style-alignment-indent. stylemapping-complete_stylex-alignment-indent = complete_stylex-alignment-indent. ENDIF. IF complete_stylex-protection-hidden = abap_true. stylemapping-complete_style-protection-hidden = complete_style-protection-hidden. stylemapping-complete_stylex-protection-hidden = complete_stylex-protection-hidden. ENDIF. IF complete_stylex-protection-locked = abap_true. stylemapping-complete_style-protection-locked = complete_style-protection-locked. stylemapping-complete_stylex-protection-locked = complete_stylex-protection-locked. ENDIF. IF complete_stylex-borders-allborders-border_style = abap_true. stylemapping-complete_style-borders-allborders-border_style = complete_style-borders-allborders-border_style. stylemapping-complete_stylex-borders-allborders-border_style = complete_stylex-borders-allborders-border_style. ENDIF. IF complete_stylex-borders-allborders-border_color-rgb = abap_true. stylemapping-complete_style-borders-allborders-border_color-rgb = complete_style-borders-allborders-border_color-rgb. stylemapping-complete_stylex-borders-allborders-border_color-rgb = complete_stylex-borders-allborders-border_color-rgb. ENDIF. IF complete_stylex-borders-allborders-border_color-indexed = abap_true. stylemapping-complete_style-borders-allborders-border_color-indexed = complete_style-borders-allborders-border_color-indexed. stylemapping-complete_stylex-borders-allborders-border_color-indexed = complete_stylex-borders-allborders-border_color-indexed. ENDIF. IF complete_stylex-borders-allborders-border_color-theme = abap_true. stylemapping-complete_style-borders-allborders-border_color-theme = complete_style-borders-allborders-border_color-theme. stylemapping-complete_stylex-borders-allborders-border_color-theme = complete_stylex-borders-allborders-border_color-theme. ENDIF. IF complete_stylex-borders-allborders-border_color-tint = abap_true. stylemapping-complete_style-borders-allborders-border_color-tint = complete_style-borders-allborders-border_color-tint. stylemapping-complete_stylex-borders-allborders-border_color-tint = complete_stylex-borders-allborders-border_color-tint. ENDIF. IF complete_stylex-borders-diagonal-border_style = abap_true. stylemapping-complete_style-borders-diagonal-border_style = complete_style-borders-diagonal-border_style. stylemapping-complete_stylex-borders-diagonal-border_style = complete_stylex-borders-diagonal-border_style. ENDIF. IF complete_stylex-borders-diagonal-border_color-rgb = abap_true. stylemapping-complete_style-borders-diagonal-border_color-rgb = complete_style-borders-diagonal-border_color-rgb. stylemapping-complete_stylex-borders-diagonal-border_color-rgb = complete_stylex-borders-diagonal-border_color-rgb. ENDIF. IF complete_stylex-borders-diagonal-border_color-indexed = abap_true. stylemapping-complete_style-borders-diagonal-border_color-indexed = complete_style-borders-diagonal-border_color-indexed. stylemapping-complete_stylex-borders-diagonal-border_color-indexed = complete_stylex-borders-diagonal-border_color-indexed. ENDIF. IF complete_stylex-borders-diagonal-border_color-theme = abap_true. stylemapping-complete_style-borders-diagonal-border_color-theme = complete_style-borders-diagonal-border_color-theme. stylemapping-complete_stylex-borders-diagonal-border_color-theme = complete_stylex-borders-diagonal-border_color-theme. ENDIF. IF complete_stylex-borders-diagonal-border_color-tint = abap_true. stylemapping-complete_style-borders-diagonal-border_color-tint = complete_style-borders-diagonal-border_color-tint. stylemapping-complete_stylex-borders-diagonal-border_color-tint = complete_stylex-borders-diagonal-border_color-tint. ENDIF. IF complete_stylex-borders-down-border_style = abap_true. stylemapping-complete_style-borders-down-border_style = complete_style-borders-down-border_style. stylemapping-complete_stylex-borders-down-border_style = complete_stylex-borders-down-border_style. ENDIF. IF complete_stylex-borders-down-border_color-rgb = abap_true. stylemapping-complete_style-borders-down-border_color-rgb = complete_style-borders-down-border_color-rgb. stylemapping-complete_stylex-borders-down-border_color-rgb = complete_stylex-borders-down-border_color-rgb. ENDIF. IF complete_stylex-borders-down-border_color-indexed = abap_true. stylemapping-complete_style-borders-down-border_color-indexed = complete_style-borders-down-border_color-indexed. stylemapping-complete_stylex-borders-down-border_color-indexed = complete_stylex-borders-down-border_color-indexed. ENDIF. IF complete_stylex-borders-down-border_color-theme = abap_true. stylemapping-complete_style-borders-down-border_color-theme = complete_style-borders-down-border_color-theme. stylemapping-complete_stylex-borders-down-border_color-theme = complete_stylex-borders-down-border_color-theme. ENDIF. IF complete_stylex-borders-down-border_color-tint = abap_true. stylemapping-complete_style-borders-down-border_color-tint = complete_style-borders-down-border_color-tint. stylemapping-complete_stylex-borders-down-border_color-tint = complete_stylex-borders-down-border_color-tint. ENDIF. IF complete_stylex-borders-left-border_style = abap_true. stylemapping-complete_style-borders-left-border_style = complete_style-borders-left-border_style. stylemapping-complete_stylex-borders-left-border_style = complete_stylex-borders-left-border_style. ENDIF. IF complete_stylex-borders-left-border_color-rgb = abap_true. stylemapping-complete_style-borders-left-border_color-rgb = complete_style-borders-left-border_color-rgb. stylemapping-complete_stylex-borders-left-border_color-rgb = complete_stylex-borders-left-border_color-rgb. ENDIF. IF complete_stylex-borders-left-border_color-indexed = abap_true. stylemapping-complete_style-borders-left-border_color-indexed = complete_style-borders-left-border_color-indexed. stylemapping-complete_stylex-borders-left-border_color-indexed = complete_stylex-borders-left-border_color-indexed. ENDIF. IF complete_stylex-borders-left-border_color-theme = abap_true. stylemapping-complete_style-borders-left-border_color-theme = complete_style-borders-left-border_color-theme. stylemapping-complete_stylex-borders-left-border_color-theme = complete_stylex-borders-left-border_color-theme. ENDIF. IF complete_stylex-borders-left-border_color-tint = abap_true. stylemapping-complete_style-borders-left-border_color-tint = complete_style-borders-left-border_color-tint. stylemapping-complete_stylex-borders-left-border_color-tint = complete_stylex-borders-left-border_color-tint. ENDIF. IF complete_stylex-borders-right-border_style = abap_true. stylemapping-complete_style-borders-right-border_style = complete_style-borders-right-border_style. stylemapping-complete_stylex-borders-right-border_style = complete_stylex-borders-right-border_style. ENDIF. IF complete_stylex-borders-right-border_color-rgb = abap_true. stylemapping-complete_style-borders-right-border_color-rgb = complete_style-borders-right-border_color-rgb. stylemapping-complete_stylex-borders-right-border_color-rgb = complete_stylex-borders-right-border_color-rgb. ENDIF. IF complete_stylex-borders-right-border_color-indexed = abap_true. stylemapping-complete_style-borders-right-border_color-indexed = complete_style-borders-right-border_color-indexed. stylemapping-complete_stylex-borders-right-border_color-indexed = complete_stylex-borders-right-border_color-indexed. ENDIF. IF complete_stylex-borders-right-border_color-theme = abap_true. stylemapping-complete_style-borders-right-border_color-theme = complete_style-borders-right-border_color-theme. stylemapping-complete_stylex-borders-right-border_color-theme = complete_stylex-borders-right-border_color-theme. ENDIF. IF complete_stylex-borders-right-border_color-tint = abap_true. stylemapping-complete_style-borders-right-border_color-tint = complete_style-borders-right-border_color-tint. stylemapping-complete_stylex-borders-right-border_color-tint = complete_stylex-borders-right-border_color-tint. ENDIF. IF complete_stylex-borders-top-border_style = abap_true. stylemapping-complete_style-borders-top-border_style = complete_style-borders-top-border_style. stylemapping-complete_stylex-borders-top-border_style = complete_stylex-borders-top-border_style. ENDIF. IF complete_stylex-borders-top-border_color-rgb = abap_true. stylemapping-complete_style-borders-top-border_color-rgb = complete_style-borders-top-border_color-rgb. stylemapping-complete_stylex-borders-top-border_color-rgb = complete_stylex-borders-top-border_color-rgb. ENDIF. IF complete_stylex-borders-top-border_color-indexed = abap_true. stylemapping-complete_style-borders-top-border_color-indexed = complete_style-borders-top-border_color-indexed. stylemapping-complete_stylex-borders-top-border_color-indexed = complete_stylex-borders-top-border_color-indexed. ENDIF. IF complete_stylex-borders-top-border_color-theme = abap_true. stylemapping-complete_style-borders-top-border_color-theme = complete_style-borders-top-border_color-theme. stylemapping-complete_stylex-borders-top-border_color-theme = complete_stylex-borders-top-border_color-theme. ENDIF. IF complete_stylex-borders-top-border_color-tint = abap_true. stylemapping-complete_style-borders-top-border_color-tint = complete_style-borders-top-border_color-tint. stylemapping-complete_stylex-borders-top-border_color-tint = complete_stylex-borders-top-border_color-tint. ENDIF. * Now we have a completly filled styles. * This can be used to get the guid * Return guid if requested. Might be used if copy&paste of styles is requested ep_guid = me->excel->get_static_cellstyle_guid( ip_cstyle_complete = stylemapping-complete_style ip_cstylex_complete = stylemapping-complete_stylex ). lo_worksheet->set_cell_style( ip_column = ip_column ip_row = ip_row ip_style = ep_guid ). ENDMETHOD. METHOD zif_excel_style_changer~get_guid. result = excel->get_static_cellstyle_guid( ip_cstyle_complete = complete_style ip_cstylex_complete = complete_stylex ). ENDMETHOD. METHOD zif_excel_style_changer~set_font_size. complete_style-font-size = value. complete_stylex-font-size = abap_true. single_change_requested-font-size = abap_true. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_number_format. complete_style-number_format-format_code = value. complete_stylex-number_format-format_code = abap_true. single_change_requested-number_format-format_code = abap_true. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_complete. complete_style = ip_complete. complete_stylex = ip_xcomplete. multiple_change_requested-complete = abap_true. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_complete_font. DATA: fontx TYPE zexcel_s_cstylex_font. IF ip_xfont IS SUPPLIED. fontx = ip_xfont. ELSE. * Only supplied values should be used - exception: Flags bold and italic strikethrough underline MOVE 'X' TO: fontx-bold, fontx-italic, fontx-strikethrough, fontx-underline_mode. CLEAR fontx-color WITH 'X'. clear_initial_colorxfields( EXPORTING is_color = ip_font-color CHANGING cs_xcolor = fontx-color ). IF ip_font-family IS NOT INITIAL. fontx-family = 'X'. ENDIF. IF ip_font-name IS NOT INITIAL. fontx-name = 'X'. ENDIF. IF ip_font-scheme IS NOT INITIAL. fontx-scheme = 'X'. ENDIF. IF ip_font-size IS NOT INITIAL. fontx-size = 'X'. ENDIF. IF ip_font-underline_mode IS NOT INITIAL. fontx-underline_mode = 'X'. ENDIF. ENDIF. complete_style-font = ip_font. complete_stylex-font = fontx. multiple_change_requested-font = abap_true. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_complete_fill. DATA: fillx LIKE ip_xfill. IF ip_xfill IS SUPPLIED. fillx = ip_xfill. ELSE. CLEAR fillx WITH 'X'. IF ip_fill-filltype IS INITIAL. CLEAR fillx-filltype. ENDIF. clear_initial_colorxfields( EXPORTING is_color = ip_fill-fgcolor CHANGING cs_xcolor = fillx-fgcolor ). clear_initial_colorxfields( EXPORTING is_color = ip_fill-bgcolor CHANGING cs_xcolor = fillx-bgcolor ). ENDIF. complete_style-fill = ip_fill. complete_stylex-fill = fillx. multiple_change_requested-fill = abap_true. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_complete_borders. DATA: bordersx LIKE ip_xborders. IF ip_xborders IS SUPPLIED. bordersx = ip_xborders. ELSE. CLEAR bordersx WITH 'X'. IF ip_borders-allborders-border_style IS INITIAL. CLEAR bordersx-allborders-border_style. ENDIF. IF ip_borders-diagonal-border_style IS INITIAL. CLEAR bordersx-diagonal-border_style. ENDIF. IF ip_borders-down-border_style IS INITIAL. CLEAR bordersx-down-border_style. ENDIF. IF ip_borders-left-border_style IS INITIAL. CLEAR bordersx-left-border_style. ENDIF. IF ip_borders-right-border_style IS INITIAL. CLEAR bordersx-right-border_style. ENDIF. IF ip_borders-top-border_style IS INITIAL. CLEAR bordersx-top-border_style. ENDIF. clear_initial_colorxfields( EXPORTING is_color = ip_borders-allborders-border_color CHANGING cs_xcolor = bordersx-allborders-border_color ). clear_initial_colorxfields( EXPORTING is_color = ip_borders-diagonal-border_color CHANGING cs_xcolor = bordersx-diagonal-border_color ). clear_initial_colorxfields( EXPORTING is_color = ip_borders-down-border_color CHANGING cs_xcolor = bordersx-down-border_color ). clear_initial_colorxfields( EXPORTING is_color = ip_borders-left-border_color CHANGING cs_xcolor = bordersx-left-border_color ). clear_initial_colorxfields( EXPORTING is_color = ip_borders-right-border_color CHANGING cs_xcolor = bordersx-right-border_color ). clear_initial_colorxfields( EXPORTING is_color = ip_borders-top-border_color CHANGING cs_xcolor = bordersx-top-border_color ). ENDIF. complete_style-borders = ip_borders. complete_stylex-borders = bordersx. multiple_change_requested-borders-complete = abap_true. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_complete_alignment. DATA: alignmentx LIKE ip_xalignment. IF ip_xalignment IS SUPPLIED. alignmentx = ip_xalignment. ELSE. CLEAR alignmentx WITH 'X'. IF ip_alignment-horizontal IS INITIAL. CLEAR alignmentx-horizontal. ENDIF. IF ip_alignment-vertical IS INITIAL. CLEAR alignmentx-vertical. ENDIF. ENDIF. complete_style-alignment = ip_alignment . complete_stylex-alignment = alignmentx . multiple_change_requested-alignment = abap_true. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_complete_protection. MOVE-CORRESPONDING ip_protection TO complete_style-protection. IF ip_xprotection IS SUPPLIED. MOVE-CORRESPONDING ip_xprotection TO complete_stylex-protection. ELSE. IF ip_protection-hidden IS NOT INITIAL. complete_stylex-protection-hidden = 'X'. ENDIF. IF ip_protection-locked IS NOT INITIAL. complete_stylex-protection-locked = 'X'. ENDIF. ENDIF. multiple_change_requested-protection = abap_true. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_complete_borders_all. * lv_border_supplied = boolc( ip_borders_allborders IS SUPPLIED ). lv_xborder_supplied = boolc( ip_xborders_allborders IS SUPPLIED ). move_supplied_borders( EXPORTING iv_border_supplied = lv_border_supplied is_border = ip_borders_allborders iv_xborder_supplied = lv_xborder_supplied is_xborder = ip_xborders_allborders CHANGING cs_complete_style_border = complete_style-borders-allborders cs_complete_stylex_border = complete_stylex-borders-allborders ). multiple_change_requested-borders-allborders = abap_true. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_complete_borders_diagonal. lv_xborder_supplied = boolc( ip_xborders_diagonal IS SUPPLIED ). move_supplied_borders( EXPORTING iv_border_supplied = lv_border_supplied is_border = ip_borders_diagonal iv_xborder_supplied = lv_xborder_supplied is_xborder = ip_xborders_diagonal CHANGING cs_complete_style_border = complete_style-borders-diagonal cs_complete_stylex_border = complete_stylex-borders-diagonal ). multiple_change_requested-borders-diagonal = abap_true. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_complete_borders_down. lv_xborder_supplied = boolc( ip_xborders_down IS SUPPLIED ). move_supplied_borders( EXPORTING iv_border_supplied = lv_border_supplied is_border = ip_borders_down iv_xborder_supplied = lv_xborder_supplied is_xborder = ip_xborders_down CHANGING cs_complete_style_border = complete_style-borders-down cs_complete_stylex_border = complete_stylex-borders-down ). multiple_change_requested-borders-down = abap_true. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_complete_borders_left. lv_xborder_supplied = boolc( ip_xborders_left IS SUPPLIED ). move_supplied_borders( EXPORTING iv_border_supplied = lv_border_supplied is_border = ip_borders_left iv_xborder_supplied = lv_xborder_supplied is_xborder = ip_xborders_left CHANGING cs_complete_style_border = complete_style-borders-left cs_complete_stylex_border = complete_stylex-borders-left ). multiple_change_requested-borders-left = abap_true. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_complete_borders_right. lv_xborder_supplied = boolc( ip_xborders_right IS SUPPLIED ). move_supplied_borders( EXPORTING iv_border_supplied = lv_border_supplied is_border = ip_borders_right iv_xborder_supplied = lv_xborder_supplied is_xborder = ip_xborders_right CHANGING cs_complete_style_border = complete_style-borders-right cs_complete_stylex_border = complete_stylex-borders-right ). multiple_change_requested-borders-right = abap_true. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_complete_borders_top. lv_xborder_supplied = boolc( ip_xborders_top IS SUPPLIED ). move_supplied_borders( EXPORTING iv_border_supplied = lv_border_supplied is_border = ip_borders_top iv_xborder_supplied = lv_xborder_supplied is_xborder = ip_xborders_top CHANGING cs_complete_style_border = complete_style-borders-top cs_complete_stylex_border = complete_stylex-borders-top ). multiple_change_requested-borders-top = abap_true. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_font_bold. complete_style-font-bold = value. complete_stylex-font-bold = 'X'. single_change_requested-font-bold = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_font_color. complete_style-font-color = value. complete_stylex-font-color-rgb = 'X'. single_change_requested-font-color-rgb = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_font_color_rgb. complete_style-font-color-rgb = value. complete_stylex-font-color-rgb = 'X'. single_change_requested-font-color-rgb = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_font_color_indexed. complete_style-font-color-indexed = value. complete_stylex-font-color-indexed = 'X'. single_change_requested-font-color-indexed = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_font_color_theme. complete_style-font-color-theme = value. complete_stylex-font-color-theme = 'X'. single_change_requested-font-color-theme = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_font_color_tint. complete_style-font-color-tint = value. complete_stylex-font-color-tint = 'X'. single_change_requested-font-color-tint = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_font_family. complete_style-font-family = value. complete_stylex-font-family = 'X'. single_change_requested-font-family = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_font_italic. complete_style-font-italic = value. complete_stylex-font-italic = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_font_name. complete_style-font-name = value. complete_stylex-font-name = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_font_scheme. complete_style-font-scheme = value. complete_stylex-font-scheme = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_font_strikethrough. complete_style-font-strikethrough = value. complete_stylex-font-strikethrough = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_font_underline. complete_style-font-underline = value. complete_stylex-font-underline = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_font_underline_mode. complete_style-font-underline_mode = value. complete_stylex-font-underline_mode = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_filltype. complete_style-fill-filltype = value. complete_stylex-fill-filltype = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_rotation. complete_style-fill-rotation = value. complete_stylex-fill-rotation = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_fgcolor. complete_style-fill-fgcolor = value. complete_stylex-fill-fgcolor-rgb = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_fgcolor_rgb. complete_style-fill-fgcolor-rgb = value. complete_stylex-fill-fgcolor-rgb = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_fgcolor_indexed. complete_style-fill-fgcolor-indexed = value. complete_stylex-fill-fgcolor-indexed = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_fgcolor_theme. complete_style-fill-fgcolor-theme = value. complete_stylex-fill-fgcolor-theme = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_fgcolor_tint. complete_style-fill-fgcolor-tint = value. complete_stylex-fill-fgcolor-tint = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_bgcolor. complete_style-fill-bgcolor = value. complete_stylex-fill-bgcolor-rgb = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_bgcolor_rgb. complete_style-fill-bgcolor-rgb = value. complete_stylex-fill-bgcolor-rgb = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_bgcolor_indexed. complete_style-fill-bgcolor-indexed = value. complete_stylex-fill-bgcolor-indexed = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_bgcolor_theme. complete_style-fill-bgcolor-theme = value. complete_stylex-fill-bgcolor-theme = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_bgcolor_tint. complete_style-fill-bgcolor-tint = value. complete_stylex-fill-bgcolor-tint = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_gradtype_type. complete_style-fill-gradtype-type = value. complete_stylex-fill-gradtype-type = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_gradtype_degree. complete_style-fill-gradtype-degree = value. complete_stylex-fill-gradtype-degree = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_gradtype_bottom. complete_style-fill-gradtype-bottom = value. complete_stylex-fill-gradtype-bottom = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_gradtype_left. complete_style-fill-gradtype-left = value. complete_stylex-fill-gradtype-left = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_gradtype_top. complete_style-fill-gradtype-top = value. complete_stylex-fill-gradtype-top = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_gradtype_right. complete_style-fill-gradtype-right = value. complete_stylex-fill-gradtype-right = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_gradtype_position1. complete_style-fill-gradtype-position1 = value. complete_stylex-fill-gradtype-position1 = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_gradtype_position2. complete_style-fill-gradtype-position2 = value. complete_stylex-fill-gradtype-position2 = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_fill_gradtype_position3. complete_style-fill-gradtype-position3 = value. complete_stylex-fill-gradtype-position3 = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_diagonal_mode. complete_style-borders-diagonal_mode = value. complete_stylex-borders-diagonal_mode = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_alignment_horizontal. complete_style-alignment-horizontal = value. complete_stylex-alignment-horizontal = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_alignment_vertical. complete_style-alignment-vertical = value. complete_stylex-alignment-vertical = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_alignment_textrotation. complete_style-alignment-textrotation = value. complete_stylex-alignment-textrotation = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_alignment_wraptext. complete_style-alignment-wraptext = value. complete_stylex-alignment-wraptext = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_alignment_shrinktofit. complete_style-alignment-shrinktofit = value. complete_stylex-alignment-shrinktofit = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_alignment_indent. complete_style-alignment-indent = value. complete_stylex-alignment-indent = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_protection_hidden. complete_style-protection-hidden = value. complete_stylex-protection-hidden = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_protection_locked. complete_style-protection-locked = value. complete_stylex-protection-locked = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_allborders_style. complete_style-borders-allborders-border_style = value. complete_stylex-borders-allborders-border_style = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_allborders_color. complete_style-borders-allborders-border_color = value. complete_stylex-borders-allborders-border_color-rgb = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_allbo_color_rgb. complete_style-borders-allborders-border_color-rgb = value. complete_stylex-borders-allborders-border_color-rgb = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_allbo_color_indexe. complete_style-borders-allborders-border_color-indexed = value. complete_stylex-borders-allborders-border_color-indexed = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_allbo_color_theme. complete_style-borders-allborders-border_color-theme = value. complete_stylex-borders-allborders-border_color-theme = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_allbo_color_tint. complete_style-borders-allborders-border_color-tint = value. complete_stylex-borders-allborders-border_color-tint = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_diagonal_style. complete_style-borders-diagonal-border_style = value. complete_stylex-borders-diagonal-border_style = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_diagonal_color. complete_style-borders-diagonal-border_color = value. complete_stylex-borders-diagonal-border_color-rgb = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_diagonal_color_rgb. complete_style-borders-diagonal-border_color-rgb = value. complete_stylex-borders-diagonal-border_color-rgb = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_diagonal_color_ind. complete_style-borders-diagonal-border_color-indexed = value. complete_stylex-borders-diagonal-border_color-indexed = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_diagonal_color_the. complete_style-borders-diagonal-border_color-theme = value. complete_stylex-borders-diagonal-border_color-theme = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_diagonal_color_tin. complete_style-borders-diagonal-border_color-tint = value. complete_stylex-borders-diagonal-border_color-tint = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_down_style. complete_style-borders-down-border_style = value. complete_stylex-borders-down-border_style = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_down_color. complete_style-borders-down-border_color = value. complete_stylex-borders-down-border_color-rgb = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_down_color_rgb. complete_style-borders-down-border_color-rgb = value. complete_stylex-borders-down-border_color-rgb = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_down_color_indexed. complete_style-borders-down-border_color-indexed = value. complete_stylex-borders-down-border_color-indexed = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_down_color_theme. complete_style-borders-down-border_color-theme = value. complete_stylex-borders-down-border_color-theme = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_down_color_tint. complete_style-borders-down-border_color-tint = value. complete_stylex-borders-down-border_color-tint = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_left_style. complete_style-borders-left-border_style = value. complete_stylex-borders-left-border_style = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_left_color. complete_style-borders-left-border_color = value. complete_stylex-borders-left-border_color-rgb = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_left_color_rgb. complete_style-borders-left-border_color-rgb = value. complete_stylex-borders-left-border_color-rgb = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_left_color_indexed. complete_style-borders-left-border_color-indexed = value. complete_stylex-borders-left-border_color-indexed = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_left_color_theme. complete_style-borders-left-border_color-theme = value. complete_stylex-borders-left-border_color-theme = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_left_color_tint. complete_style-borders-left-border_color-tint = value. complete_stylex-borders-left-border_color-tint = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_right_style. complete_style-borders-right-border_style = value. complete_stylex-borders-right-border_style = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_right_color. complete_style-borders-right-border_color = value. complete_stylex-borders-right-border_color-rgb = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_right_color_rgb. complete_style-borders-right-border_color-rgb = value. complete_stylex-borders-right-border_color-rgb = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_right_color_indexe. complete_style-borders-right-border_color-indexed = value. complete_stylex-borders-right-border_color-indexed = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_right_color_theme. complete_style-borders-right-border_color-theme = value. complete_stylex-borders-right-border_color-theme = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_right_color_tint. complete_style-borders-right-border_color-tint = value. complete_stylex-borders-right-border_color-tint = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_top_style. complete_style-borders-top-border_style = value. complete_stylex-borders-top-border_style = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_top_color. complete_style-borders-top-border_color = value. complete_stylex-borders-top-border_color-rgb = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_top_color_rgb. complete_style-borders-top-border_color-rgb = value. complete_stylex-borders-top-border_color-rgb = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_top_color_indexed. complete_style-borders-top-border_color-indexed = value. complete_stylex-borders-top-border_color-indexed = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_top_color_theme. complete_style-borders-top-border_color-theme = value. complete_stylex-borders-top-border_color-theme = 'X'. result = me. ENDMETHOD. METHOD zif_excel_style_changer~set_borders_top_color_tint. complete_style-borders-top-border_color-tint = value. complete_stylex-borders-top-border_color-tint = 'X'. result = me. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 1069, 5276, 62, 7635, 62, 354, 2564, 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, 1069, 5276, 62, 7635, 62, 354, 2564, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 2251, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 27336, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 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, 1069, 5276, 62, 7635, 62, 354, 2564, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 1069, 5276, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 1598, 62, 36733, 62, 8043, 87, 25747, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 8043, 220, 41876, 1976, 1069, 5276, 62, 82, 62, 7635, 62, 8043, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 87, 8043, 41876, 1976, 1069, 5276, 62, 82, 62, 66, 7635, 87, 62, 8043, 13, 628, 220, 220, 220, 337, 36252, 50, 1445, 62, 18608, 18511, 62, 65, 6361, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 20192, 62, 18608, 18511, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 20192, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 82, 62, 66, 7635, 62, 20192, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 87, 20192, 62, 18608, 18511, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 87, 20192, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 82, 62, 66, 7635, 87, 62, 20192, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 20751, 62, 7635, 62, 20192, 220, 41876, 1976, 1069, 5276, 62, 82, 62, 66, 7635, 62, 20192, 198, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 20751, 62, 7635, 87, 62, 20192, 41876, 1976, 1069, 5276, 62, 82, 62, 66, 7635, 87, 62, 20192, 13, 628, 220, 220, 220, 42865, 25, 27336, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 87, 20192, 62, 18608, 18511, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2060, 62, 3803, 62, 25927, 276, 41876, 1976, 1069, 5276, 62, 82, 62, 66, 7635, 87, 62, 20751, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 3294, 62, 3803, 62, 25927, 276, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1844, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10369, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6070, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 11637, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1844, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 477, 65, 6361, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 40039, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 866, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1364, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 826, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1353, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 11637, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19114, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4800, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 3294, 62, 3803, 62, 25927, 276, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 20192, 62, 18608, 18511, 220, 41876, 450, 499, 62, 30388, 26173, 8924, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 8355, 43429, 1546, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1844, 62, 7635, 220, 220, 7473, 1976, 361, 62, 1069, 5276, 62, 7635, 62, 354, 2564, 93, 20751, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1844, 62, 7635, 87, 220, 7473, 1976, 361, 62, 1069, 5276, 62, 7635, 62, 354, 2564, 93, 20751, 62, 7635, 87 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
FUNCTION CONVERSION_EXIT_YDK31_OUTPUT . *"-------------------------------------------------------------------- *"*"Локальный интерфейс: *" IMPORTING *" REFERENCE(INPUT) *" EXPORTING *" REFERENCE(OUTPUT) *"-------------------------------------------------------------------- * see FM YDK_CONVERSION_EXIT_REGISTER PERFORM output USING '31' input CHANGING output. ENDFUNCTION.
[ 42296, 4177, 2849, 7102, 43717, 62, 6369, 2043, 62, 35755, 42, 3132, 62, 2606, 7250, 3843, 764, 198, 9, 1, 10097, 650, 198, 9, 1, 9, 1, 140, 249, 25443, 118, 16142, 30143, 45367, 22177, 45035, 140, 117, 12466, 116, 22177, 20375, 16843, 21169, 141, 226, 16843, 140, 117, 21727, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 1268, 30076, 8, 198, 9, 1, 220, 7788, 15490, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 2606, 7250, 3843, 8, 198, 9, 1, 10097, 650, 198, 9, 766, 18695, 575, 48510, 62, 10943, 43717, 62, 6369, 2043, 62, 31553, 41517, 198, 220, 19878, 21389, 5072, 1294, 2751, 705, 3132, 6, 5128, 5870, 15567, 2751, 5072, 13, 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 ]
CLASS zcl_abapgit_migrations DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS run RAISING zcx_abapgit_exception. PROTECTED SECTION. PRIVATE SECTION. CLASS-METHODS local_dot_abapgit RAISING zcx_abapgit_exception . ENDCLASS. CLASS zcl_abapgit_migrations IMPLEMENTATION. METHOD local_dot_abapgit. DATA: lt_repos TYPE zif_abapgit_repo_srv=>ty_repo_list, lo_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit. FIELD-SYMBOLS: <lo_repo> LIKE LINE OF lt_repos. lt_repos = zcl_abapgit_repo_srv=>get_instance( )->list( ). LOOP AT lt_repos ASSIGNING <lo_repo>. lo_dot_abapgit = <lo_repo>->get_dot_abapgit( ). IF lo_dot_abapgit->get_data( ) IS INITIAL. CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = 'Migration' txt1 = 'Automatic migration of .abapgit.xml removed' txt2 = 'Remove all repos and install latest abapGit version'. ENDIF. ENDLOOP. ENDMETHOD. METHOD run. " Migrate STDTEXT to TABLE zcl_abapgit_persist_migrate=>run( ). " Create ZIF_APACK_MANIFEST interface zcl_abapgit_apack_migration=>run( ). " local .abapgit.xml state, issue #630 local_dot_abapgit( ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 76, 3692, 602, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 1057, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 1957, 62, 26518, 62, 397, 499, 18300, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 76, 3692, 602, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1957, 62, 26518, 62, 397, 499, 18300, 13, 628, 220, 220, 220, 42865, 25, 300, 83, 62, 260, 1930, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 260, 7501, 62, 27891, 85, 14804, 774, 62, 260, 7501, 62, 4868, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 26518, 62, 397, 499, 18300, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 5439, 62, 260, 7501, 29, 34178, 48920, 3963, 300, 83, 62, 260, 1930, 13, 628, 198, 220, 220, 220, 300, 83, 62, 260, 1930, 796, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 27891, 85, 14804, 1136, 62, 39098, 7, 1267, 3784, 4868, 7, 6739, 628, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 260, 1930, 24994, 3528, 15871, 1279, 5439, 62, 260, 7501, 28401, 198, 220, 220, 220, 220, 220, 2376, 62, 26518, 62, 397, 499, 18300, 796, 1279, 5439, 62, 260, 7501, 29, 3784, 1136, 62, 26518, 62, 397, 499, 18300, 7, 6739, 198, 220, 220, 220, 220, 220, 16876, 2376, 62, 26518, 62, 397, 499, 18300, 3784, 1136, 62, 7890, 7, 1267, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 47, 3185, 8577, 62, 10468, 62, 1268, 21389, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5259, 417, 796, 705, 44, 4254, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 742, 16, 220, 796, 705, 16541, 13730, 13472, 286, 764, 397, 499, 18300, 13, 19875, 4615, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 742, 17, 220, 796, 705, 27914, 477, 1128, 418, 290, 2721, 3452, 450, 499, 38, 270, 2196, 4458, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1057, 13, 628, 220, 220, 220, 366, 337, 42175, 3563, 24544, 13918, 284, 43679, 198, 220, 220, 220, 1976, 565, 62, 397, 499, 18300, 62, 19276, 396, 62, 76, 42175, 14804, 5143, 7, 6739, 628, 220, 220, 220, 366, 13610, 1168, 5064, 62, 2969, 8120, 62, 10725, 5064, 6465, 7071, 198, 220, 220, 220, 1976, 565, 62, 397, 499, 18300, 62, 499, 441, 62, 76, 4254, 14804, 5143, 7, 6739, 628, 220, 220, 220, 366, 1957, 764, 397, 499, 18300, 13, 19875, 1181, 11, 2071, 1303, 30005, 198, 220, 220, 220, 1957, 62, 26518, 62, 397, 499, 18300, 7, 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, 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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 ZCL_EXCEL_WRITER_2007 definition public create public . public section. *"* public components of class ZCL_EXCEL_WRITER_2007 *"* do not include other source files here!!! interfaces ZIF_EXCEL_WRITER . protected section. data MV_SHEET_DATA_XSTRING type XSTRING . data MV_SHEET_DATA_XSTRING_DUMMY type XSTRING . *"* protected components of class ZCL_EXCEL_WRITER_2007 *"* do not include other source files here!!! constants C_CONTENT_TYPES type STRING value '[Content_Types].xml'. "#EC NOTEXT constants C_DOCPROPS_APP type STRING value 'docProps/app.xml'. "#EC NOTEXT constants C_DOCPROPS_CORE type STRING value 'docProps/core.xml'. "#EC NOTEXT constants C_RELATIONSHIPS type STRING value '_rels/.rels'. "#EC NOTEXT constants C_XL_CALCCHAIN type STRING value 'xl/calcChain.xml'. "#EC NOTEXT constants C_XL_DRAWINGS type STRING value 'xl/drawings/drawing#.xml'. "#EC NOTEXT constants C_XL_DRAWINGS_RELS type STRING value 'xl/drawings/_rels/drawing#.xml.rels'. "#EC NOTEXT constants C_XL_RELATIONSHIPS type STRING value 'xl/_rels/workbook.xml.rels'. "#EC NOTEXT constants C_XL_SHAREDSTRINGS type STRING value 'xl/sharedStrings.xml'. "#EC NOTEXT constants C_XL_SHEET type STRING value 'xl/worksheets/sheet#.xml'. "#EC NOTEXT constants C_XL_SHEET_RELS type STRING value 'xl/worksheets/_rels/sheet#.xml.rels'. "#EC NOTEXT constants C_XL_STYLES type STRING value 'xl/styles.xml'. "#EC NOTEXT constants C_XL_THEME type STRING value 'xl/theme/theme1.xml'. "#EC NOTEXT constants C_XL_WORKBOOK type STRING value 'xl/workbook.xml'. "#EC NOTEXT data EXCEL type ref to ZCL_EXCEL . data SHARED_STRINGS type ZEXCEL_T_SHARED_STRING . data STYLES_COND_MAPPING type ZEXCEL_T_STYLES_COND_MAPPING . data STYLES_MAPPING type ZEXCEL_T_STYLES_MAPPING . methods CREATE_XL_SHEET_SHEET_DATA importing !IO_DOCUMENT type ref to IF_IXML_DOCUMENT !IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET returning value(RV_IXML_SHEET_DATA_ROOT) type ref to IF_IXML_ELEMENT . methods ADD_FURTHER_DATA_TO_ZIP importing !IO_ZIP type ref to CL_ABAP_ZIP . methods CREATE returning value(EP_EXCEL) type XSTRING . methods CREATE_CONTENT_TYPES returning value(EP_CONTENT) type XSTRING . methods CREATE_DOCPROPS_APP returning value(EP_CONTENT) type XSTRING . methods CREATE_DOCPROPS_CORE returning value(EP_CONTENT) type XSTRING . methods CREATE_DXF_STYLE importing !IV_CELL_STYLE type ZEXCEL_CELL_STYLE !IO_DXF_ELEMENT type ref to IF_IXML_ELEMENT !IO_IXML_DOCUMENT type ref to IF_IXML_DOCUMENT !IT_CELLXFS type ZEXCEL_T_CELLXFS !IT_FONTS type ZEXCEL_T_STYLE_FONT !IT_FILLS type ZEXCEL_T_STYLE_FILL changing !CV_DFX_COUNT type I . methods CREATE_RELATIONSHIPS returning value(EP_CONTENT) type XSTRING . methods CREATE_XL_CHARTS importing !IO_DRAWING type ref to ZCL_EXCEL_DRAWING returning value(EP_CONTENT) type XSTRING . methods CREATE_XL_DRAWINGS importing !IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET returning value(EP_CONTENT) type XSTRING . methods CREATE_XL_DRAWINGS_RELS importing !IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET returning value(EP_CONTENT) type XSTRING . methods CREATE_XL_DRAWING_ANCHOR importing !IO_DRAWING type ref to ZCL_EXCEL_DRAWING !IO_DOCUMENT type ref to IF_IXML_DOCUMENT !IP_INDEX type I returning value(EP_ANCHOR) type ref to IF_IXML_ELEMENT . methods CREATE_XL_RELATIONSHIPS returning value(EP_CONTENT) type XSTRING . methods CREATE_XL_SHAREDSTRINGS returning value(EP_CONTENT) type XSTRING . methods CREATE_XL_SHEET importing !IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET !IV_ACTIVE type FLAG default '' returning value(EP_CONTENT) type XSTRING raising ZCX_EXCEL . methods CREATE_XL_SHEET_PAGEBREAKS importing !IO_DOCUMENT type ref to IF_IXML_DOCUMENT !IO_PARENT type ref to IF_IXML_ELEMENT !IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET raising ZCX_EXCEL . methods CREATE_XL_SHEET_RELS importing !IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET !IV_DRAWING_INDEX type I returning value(EP_CONTENT) type XSTRING . methods CREATE_XL_STYLES returning value(EP_CONTENT) type XSTRING . methods CREATE_XL_STYLES_COLOR_NODE importing !IO_DOCUMENT type ref to IF_IXML_DOCUMENT !IO_PARENT type ref to IF_IXML_ELEMENT !IV_COLOR_ELEM_NAME type STRING default 'color' !IS_COLOR type ZEXCEL_S_STYLE_COLOR . methods CREATE_XL_TABLE importing !IO_TABLE type ref to ZCL_EXCEL_TABLE returning value(EP_CONTENT) type XSTRING . methods CREATE_XL_THEME returning value(EP_CONTENT) type XSTRING . methods CREATE_XL_WORKBOOK returning value(EP_CONTENT) type XSTRING . methods GET_SHARED_STRING_INDEX importing !IP_CELL_VALUE type ZEXCEL_CELL_VALUE returning value(EP_INDEX) type INT4 . methods RENDER_IXML_ELEMENT_NO_HEADER importing !IV_IXML_ELEMENT type ref to IF_IXML_ELEMENT returning value(RV_XSTRING) type XSTRING . private section. *"* private components of class ZCL_EXCEL_WRITER_2007 *"* do not include other source files here!!! constants C_OFF type STRING value '0'. "#EC NOTEXT constants C_ON type STRING value '1'. "#EC NOTEXT constants C_XL_PRINTERSETTINGS type STRING value 'xl/printerSettings/printerSettings#.bin'. "#EC NOTEXT methods FLAG2BOOL importing !IP_FLAG type FLAG returning value(EP_BOOLEAN) type CHAR5 . ENDCLASS. CLASS ZCL_EXCEL_WRITER_2007 IMPLEMENTATION. METHOD add_further_data_to_zip. * Can be used by child classes like xlsm-writer to write additional data to zip archive ENDMETHOD. method CREATE. * Office 2007 file format is a cab of several xml files with extension .xlsx DATA: lo_zip TYPE REF TO cl_abap_zip, lo_worksheet TYPE REF TO zcl_excel_worksheet, lo_active_worksheet TYPE REF TO zcl_excel_worksheet, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_nested_iterator TYPE REF TO cl_object_collection_iterator, lo_table TYPE REF TO zcl_excel_table, lo_drawing TYPE REF TO zcl_excel_drawing, lo_drawings TYPE REF TO zcl_excel_drawings. DATA: lv_content TYPE xstring, lv_active TYPE flag, lv_xl_sheet TYPE string, lv_xl_sheet_rels TYPE string, lv_xl_drawing TYPE string, lv_xl_drawing_rels TYPE string, lv_syindex TYPE string, lv_value TYPE string, lv_drawing_index TYPE i. ********************************************************************** * Start of insertion # issue 139 - Dateretention of cellstyles me->excel->add_static_styles( ). * End of insertion # issue 139 - Dateretention of cellstyles ********************************************************************** * STEP 1: Create archive object file (ZIP) CREATE OBJECT lo_zip. ********************************************************************** * STEP 2: Add [Content_Types].xml to zip lv_content = me->create_content_types( ). lo_zip->add( name = me->c_content_types content = lv_content ). ********************************************************************** * STEP 3: Add _rels/.rels to zip lv_content = me->create_relationships( ). lo_zip->add( name = me->c_relationships content = lv_content ). ********************************************************************** * STEP 4: Add docProps/app.xml to zip lv_content = me->create_docprops_app( ). lo_zip->add( name = me->c_docprops_app content = lv_content ). ********************************************************************** * STEP 5: Add docProps/core.xml to zip lv_content = me->create_docprops_core( ). lo_zip->add( name = me->c_docprops_core content = lv_content ). ********************************************************************** * STEP 6: Add xl/_rels/workbook.xml.rels to zip lv_content = me->create_xl_relationships( ). lo_zip->add( name = me->c_xl_relationships content = lv_content ). ********************************************************************** * STEP 6: Add xl/_rels/workbook.xml.rels to zip lv_content = me->create_xl_theme( ). lo_zip->add( name = me->c_xl_theme content = lv_content ). ********************************************************************** * STEP 7: Add xl/workbook.xml to zip lv_content = me->create_xl_workbook( ). lo_zip->add( name = me->c_xl_workbook content = lv_content ). ********************************************************************** * STEP 8: Add xl/workbook.xml to zip * lv_content = me->create_xl_styles_static( ). lv_content = me->create_xl_styles( ). lo_zip->add( name = me->c_xl_styles content = lv_content ). ********************************************************************** * STEP 9: Add sharedStrings.xml to zip lv_content = me->create_xl_sharedstrings( ). lo_zip->add( name = me->c_xl_sharedstrings content = lv_content ). ********************************************************************** * STEP 10: Add sheet#.xml and drawing#.xml to zip lo_iterator = me->excel->get_worksheets_iterator( ). lo_active_worksheet = me->excel->get_active_worksheet( ). lv_drawing_index = 1. WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_worksheet ?= lo_iterator->if_object_collection_iterator~get_next( ). IF lo_active_worksheet->get_guid( ) EQ lo_worksheet->get_guid( ). lv_active = abap_true. ELSE. lv_active = abap_false. ENDIF. lv_content = me->create_xl_sheet( io_worksheet = lo_worksheet iv_active = lv_active ). lv_xl_sheet = me->c_xl_sheet. MOVE sy-index TO lv_syindex. SHIFT lv_syindex RIGHT DELETING TRAILING space. SHIFT lv_syindex LEFT DELETING LEADING space. REPLACE ALL OCCURRENCES OF '#' IN lv_xl_sheet WITH lv_syindex. lo_zip->add( name = lv_xl_sheet content = lv_content ). lv_xl_sheet_rels = me->c_xl_sheet_rels. lv_content = me->create_xl_sheet_rels( io_worksheet = lo_worksheet iv_drawing_index = lv_drawing_index ). REPLACE ALL OCCURRENCES OF '#' IN lv_xl_sheet_rels WITH lv_syindex. lo_zip->add( name = lv_xl_sheet_rels content = lv_content ). lo_nested_iterator = lo_worksheet->get_tables_iterator( ). WHILE lo_nested_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_table ?= lo_nested_iterator->if_object_collection_iterator~get_next( ). lv_content = me->create_xl_table( lo_table ). lv_value = lo_table->get_name( ). CONCATENATE 'xl/tables/' lv_value '.xml' INTO lv_value. lo_zip->add( name = lv_value content = lv_content ). ENDWHILE. * Add drawings ********************************** lo_drawings = lo_worksheet->get_drawings( ). IF lo_drawings->is_empty( ) = abap_false. MOVE lv_drawing_index TO lv_syindex. SHIFT lv_syindex RIGHT DELETING TRAILING space. SHIFT lv_syindex LEFT DELETING LEADING space. lv_content = me->create_xl_drawings( lo_worksheet ). lv_xl_drawing = me->c_xl_drawings. REPLACE ALL OCCURRENCES OF '#' IN lv_xl_drawing WITH lv_syindex. lo_zip->add( name = lv_xl_drawing content = lv_content ). lv_content = me->create_xl_drawings_rels( lo_worksheet ). lv_xl_drawing_rels = me->c_xl_drawings_rels. REPLACE ALL OCCURRENCES OF '#' IN lv_xl_drawing_rels WITH lv_syindex. lo_zip->add( name = lv_xl_drawing_rels content = lv_content ). ADD 1 TO lv_drawing_index. ENDIF. ENDWHILE. ********************************************************************** * STEP 11: Add media lo_iterator = me->excel->get_drawings_iterator( zcl_excel_drawing=>type_image ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_drawing ?= lo_iterator->if_object_collection_iterator~get_next( ). lv_content = lo_drawing->get_media( ). lv_value = lo_drawing->get_media_name( ). CONCATENATE 'xl/media/' lv_value INTO lv_value. lo_zip->add( name = lv_value content = lv_content ). ENDWHILE. ********************************************************************** * STEP 12: Add charts lo_iterator = me->excel->get_drawings_iterator( zcl_excel_drawing=>type_chart ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_drawing ?= lo_iterator->if_object_collection_iterator~get_next( ). lv_content = lo_drawing->get_media( ). "-------------Added by Alessandro Iannacci - Only if template exist IF lv_content IS NOT INITIAL AND me->excel->use_template EQ abap_true. lv_value = lo_drawing->get_media_name( ). CONCATENATE 'xl/charts/' lv_value INTO lv_value. lo_zip->add( name = lv_value content = lv_content ). ELSE. "ADD CUSTOM CHART!!!! lv_content = me->create_xl_charts( lo_drawing ). lv_value = lo_drawing->get_media_name( ). CONCATENATE 'xl/charts/' lv_value INTO lv_value. lo_zip->add( name = lv_value content = lv_content ). ENDIF. "------------------------------------------------- ENDWHILE. * Second to last step: Allow further information put into the zip archive by child classes me->add_further_data_to_zip( lo_zip ). ********************************************************************** * Last step: Create the final zip ep_excel = lo_zip->save( ). endmethod. method CREATE_CONTENT_TYPES. ** Constant node name DATA: lc_xml_node_types TYPE string VALUE 'Types', lc_xml_node_override TYPE string VALUE 'Override', lc_xml_node_default TYPE string VALUE 'Default', " Node attributes lc_xml_attr_partname TYPE string VALUE 'PartName', lc_xml_attr_extension TYPE string VALUE 'Extension', lc_xml_attr_contenttype TYPE string VALUE 'ContentType', " Node namespace lc_xml_node_types_ns TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/content-types', " Node extension lc_xml_node_rels_ext TYPE string VALUE 'rels', lc_xml_node_xml_ext TYPE string VALUE 'xml', " Node partnumber lc_xml_node_theme_pn TYPE string VALUE '/xl/theme/theme1.xml', lc_xml_node_styles_pn TYPE string VALUE '/xl/styles.xml', lc_xml_node_workb_pn TYPE string VALUE '/xl/workbook.xml', lc_xml_node_props_pn TYPE string VALUE '/docProps/app.xml', lc_xml_node_worksheet_pn TYPE string VALUE '/xl/worksheets/sheet#.xml', lc_xml_node_strings_pn TYPE string VALUE '/xl/sharedStrings.xml', lc_xml_node_core_pn TYPE string VALUE '/docProps/core.xml', lc_xml_node_chart_pn TYPE string VALUE '/xl/charts/chart#.xml', " Node contentType lc_xml_node_theme_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.theme+xml', lc_xml_node_styles_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml', lc_xml_node_workb_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml', lc_xml_node_rels_ct TYPE string VALUE 'application/vnd.openxmlformats-package.relationships+xml', lc_xml_node_xml_ct TYPE string VALUE 'application/xml', lc_xml_node_props_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.extended-properties+xml', lc_xml_node_worksheet_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml', lc_xml_node_strings_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml', lc_xml_node_core_ct TYPE string VALUE 'application/vnd.openxmlformats-package.core-properties+xml', lc_xml_node_table_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml', lc_xml_node_drawings_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.drawing+xml', lc_xml_node_chart_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.drawingml.chart+xml'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer, lo_worksheet TYPE REF TO zcl_excel_worksheet, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_nested_iterator TYPE REF TO cl_object_collection_iterator, lo_table TYPE REF TO zcl_excel_table. DATA: lv_worksheets_num TYPE i, lv_worksheets_numc TYPE numc3, lv_xml_node_worksheet_pn TYPE string, lv_value TYPE string, lv_drawing_index TYPE i VALUE 1, lv_index_str TYPE string. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'UTF-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). ********************************************************************** * STEP 3: Create main node types lo_element_root = lo_document->create_simple_element( name = lc_xml_node_types parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_types_ns ). ********************************************************************** * STEP 4: Create subnodes " rels node lo_element = lo_document->create_simple_element( name = lc_xml_node_default parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_extension value = lc_xml_node_rels_ext ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_rels_ct ). lo_element_root->append_child( new_child = lo_element ). " extension node lo_element = lo_document->create_simple_element( name = lc_xml_node_default parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_extension value = lc_xml_node_xml_ext ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_xml_ct ). lo_element_root->append_child( new_child = lo_element ). " Theme node lo_element = lo_document->create_simple_element( name = lc_xml_node_override parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_partname value = lc_xml_node_theme_pn ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_theme_ct ). lo_element_root->append_child( new_child = lo_element ). " Styles node lo_element = lo_document->create_simple_element( name = lc_xml_node_override parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_partname value = lc_xml_node_styles_pn ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_styles_ct ). lo_element_root->append_child( new_child = lo_element ). " Workbook node lo_element = lo_document->create_simple_element( name = lc_xml_node_override parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_partname value = lc_xml_node_workb_pn ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_workb_ct ). lo_element_root->append_child( new_child = lo_element ). " Properties node lo_element = lo_document->create_simple_element( name = lc_xml_node_override parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_partname value = lc_xml_node_props_pn ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_props_ct ). lo_element_root->append_child( new_child = lo_element ). " Worksheet node lv_worksheets_num = excel->get_worksheets_size( ). DO lv_worksheets_num TIMES. lo_element = lo_document->create_simple_element( name = lc_xml_node_override parent = lo_document ). MOVE sy-index TO lv_worksheets_numc. SHIFT lv_worksheets_numc LEFT DELETING LEADING '0'. lv_xml_node_worksheet_pn = lc_xml_node_worksheet_pn. REPLACE ALL OCCURRENCES OF '#' IN lv_xml_node_worksheet_pn WITH lv_worksheets_numc. lo_element->set_attribute_ns( name = lc_xml_attr_partname value = lv_xml_node_worksheet_pn ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_worksheet_ct ). lo_element_root->append_child( new_child = lo_element ). ENDDO. lo_iterator = me->excel->get_worksheets_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_worksheet ?= lo_iterator->if_object_collection_iterator~get_next( ). lo_nested_iterator = lo_worksheet->get_tables_iterator( ). WHILE lo_nested_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_table ?= lo_nested_iterator->if_object_collection_iterator~get_next( ). lv_value = lo_table->get_name( ). CONCATENATE '/xl/tables/' lv_value '.xml' INTO lv_value. lo_element = lo_document->create_simple_element( name = lc_xml_node_override parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_partname value = lv_value ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_table_ct ). lo_element_root->append_child( new_child = lo_element ). ENDWHILE. " Drawings DATA: lo_drawings TYPE REF TO zcl_excel_drawings. lo_drawings = lo_worksheet->get_drawings( ). IF lo_drawings->is_empty( ) = abap_false. lv_index_str = lv_drawing_index. CONDENSE lv_index_str NO-GAPS. CONCATENATE '/' me->c_xl_drawings INTO lv_value. REPLACE '#' WITH lv_index_str INTO lv_value. lo_element = lo_document->create_simple_element( name = lc_xml_node_override parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_partname value = lv_value ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_drawings_ct ). lo_element_root->append_child( new_child = lo_element ). ADD 1 TO lv_drawing_index. ENDIF. ENDWHILE. " media mimes DATA: lo_drawing TYPE REF TO zcl_excel_drawing, lt_media_type TYPE TABLE OF mimetypes-extension, lv_media_type TYPE mimetypes-extension, lv_mime_type TYPE mimetypes-type. lo_iterator = me->excel->get_drawings_iterator( zcl_excel_drawing=>type_image ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) = abap_true. lo_drawing ?= lo_iterator->if_object_collection_iterator~get_next( ). lv_media_type = lo_drawing->get_media_type( ). COLLECT lv_media_type INTO lt_media_type. ENDWHILE. LOOP AT lt_media_type INTO lv_media_type. CALL FUNCTION 'SDOK_MIMETYPE_GET' EXPORTING extension = lv_media_type IMPORTING mimetype = lv_mime_type. lo_element = lo_document->create_simple_element( name = lc_xml_node_default parent = lo_document ). lv_value = lv_media_type. lo_element->set_attribute_ns( name = lc_xml_attr_extension value = lv_value ). lv_value = lv_mime_type. lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ENDLOOP. " Charts lo_iterator = me->excel->get_drawings_iterator( zcl_excel_drawing=>type_chart ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) = abap_true. lo_drawing ?= lo_iterator->if_object_collection_iterator~get_next( ). lo_element = lo_document->create_simple_element( name = lc_xml_node_override parent = lo_document ). lv_index_str = lo_drawing->get_index( ). CONDENSE lv_index_str. lv_value = lc_xml_node_chart_pn. REPLACE ALL OCCURRENCES OF '#' IN lv_value WITH lv_index_str. lo_element->set_attribute_ns( name = lc_xml_attr_partname value = lv_value ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_chart_ct ). lo_element_root->append_child( new_child = lo_element ). ENDWHILE. " Strings node lo_element = lo_document->create_simple_element( name = lc_xml_node_override parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_partname value = lc_xml_node_strings_pn ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_strings_ct ). lo_element_root->append_child( new_child = lo_element ). " Strings node lo_element = lo_document->create_simple_element( name = lc_xml_node_override parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_partname value = lc_xml_node_core_pn ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_core_ct ). lo_element_root->append_child( new_child = lo_element ). ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). endmethod. method CREATE_DOCPROPS_APP. ** Constant node name DATA: lc_xml_node_properties TYPE string VALUE 'Properties', lc_xml_node_application TYPE string VALUE 'Application', lc_xml_node_docsecurity TYPE string VALUE 'DocSecurity', lc_xml_node_scalecrop TYPE string VALUE 'ScaleCrop', lc_xml_node_headingpairs TYPE string VALUE 'HeadingPairs', lc_xml_node_vector TYPE string VALUE 'vector', lc_xml_node_variant TYPE string VALUE 'variant', lc_xml_node_lpstr TYPE string VALUE 'lpstr', lc_xml_node_i4 TYPE string VALUE 'i4', lc_xml_node_titlesofparts TYPE string VALUE 'TitlesOfParts', lc_xml_node_company TYPE string VALUE 'Company', lc_xml_node_linksuptodate TYPE string VALUE 'LinksUpToDate', lc_xml_node_shareddoc TYPE string VALUE 'SharedDoc', lc_xml_node_hyperlinkschanged TYPE string VALUE 'HyperlinksChanged', lc_xml_node_appversion TYPE string VALUE 'AppVersion', " Namespace prefix lc_vt_ns TYPE string VALUE 'vt', lc_xml_node_props_ns TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/extended-properties', lc_xml_node_props_vt_ns TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes', " Node attributes lc_xml_attr_size TYPE string VALUE 'size', lc_xml_attr_basetype TYPE string VALUE 'baseType'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_sub_element_vector TYPE REF TO if_ixml_element, lo_sub_element_variant TYPE REF TO if_ixml_element, lo_sub_element_lpstr TYPE REF TO if_ixml_element, lo_sub_element_i4 TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_worksheet TYPE REF TO zcl_excel_worksheet. DATA: lv_value TYPE string. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). ********************************************************************** * STEP 3: Create main node properties lo_element_root = lo_document->create_simple_element( name = lc_xml_node_properties parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_props_ns ). lo_element_root->set_attribute_ns( name = 'xmlns:vt' value = lc_xml_node_props_vt_ns ). ********************************************************************** * STEP 4: Create subnodes " Application lo_element = lo_document->create_simple_element( name = lc_xml_node_application parent = lo_document ). lv_value = excel->zif_excel_book_properties~application. lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " DocSecurity lo_element = lo_document->create_simple_element( name = lc_xml_node_docsecurity parent = lo_document ). lv_value = excel->zif_excel_book_properties~docsecurity. lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " ScaleCrop lo_element = lo_document->create_simple_element( name = lc_xml_node_scalecrop parent = lo_document ). lv_value = me->flag2bool( excel->zif_excel_book_properties~scalecrop ). lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " HeadingPairs lo_element = lo_document->create_simple_element( name = lc_xml_node_headingpairs parent = lo_document ). " * vector node lo_sub_element_vector = lo_document->create_simple_element_ns( name = lc_xml_node_vector prefix = lc_vt_ns parent = lo_document ). lo_sub_element_vector->set_attribute_ns( name = lc_xml_attr_size value = '2' ). lo_sub_element_vector->set_attribute_ns( name = lc_xml_attr_basetype value = lc_xml_node_variant ). " ** variant node lo_sub_element_variant = lo_document->create_simple_element_ns( name = lc_xml_node_variant prefix = lc_vt_ns parent = lo_document ). " *** lpstr node lo_sub_element_lpstr = lo_document->create_simple_element_ns( name = lc_xml_node_lpstr prefix = lc_vt_ns parent = lo_document ). lv_value = excel->get_worksheets_name( ). lo_sub_element_lpstr->set_value( value = lv_value ). lo_sub_element_variant->append_child( new_child = lo_sub_element_lpstr ). " lpstr node lo_sub_element_vector->append_child( new_child = lo_sub_element_variant ). " variant node " ** variant node lo_sub_element_variant = lo_document->create_simple_element_ns( name = lc_xml_node_variant prefix = lc_vt_ns parent = lo_document ). " *** i4 node lo_sub_element_i4 = lo_document->create_simple_element_ns( name = lc_xml_node_i4 prefix = lc_vt_ns parent = lo_document ). lv_value = excel->get_worksheets_size( ). SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_sub_element_i4->set_value( value = lv_value ). lo_sub_element_variant->append_child( new_child = lo_sub_element_i4 ). " lpstr node lo_sub_element_vector->append_child( new_child = lo_sub_element_variant ). " variant node lo_element->append_child( new_child = lo_sub_element_vector ). " vector node lo_element_root->append_child( new_child = lo_element ). " HeadingPairs " TitlesOfParts lo_element = lo_document->create_simple_element( name = lc_xml_node_titlesofparts parent = lo_document ). " * vector node lo_sub_element_vector = lo_document->create_simple_element_ns( name = lc_xml_node_vector prefix = lc_vt_ns parent = lo_document ). lv_value = excel->get_worksheets_size( ). SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_sub_element_vector->set_attribute_ns( name = lc_xml_attr_size value = lv_value ). lo_sub_element_vector->set_attribute_ns( name = lc_xml_attr_basetype value = lc_xml_node_lpstr ). lo_iterator = excel->get_worksheets_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. " ** lpstr node lo_sub_element_lpstr = lo_document->create_simple_element_ns( name = lc_xml_node_lpstr prefix = lc_vt_ns parent = lo_document ). lo_worksheet ?= lo_iterator->if_object_collection_iterator~get_next( ). lv_value = lo_worksheet->get_title( ). lo_sub_element_lpstr->set_value( value = lv_value ). lo_sub_element_vector->append_child( new_child = lo_sub_element_lpstr ). " lpstr node ENDWHILE. lo_element->append_child( new_child = lo_sub_element_vector ). " vector node lo_element_root->append_child( new_child = lo_element ). " TitlesOfParts " Company IF excel->zif_excel_book_properties~company IS NOT INITIAL. lo_element = lo_document->create_simple_element( name = lc_xml_node_company parent = lo_document ). lv_value = excel->zif_excel_book_properties~company. lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ENDIF. " LinksUpToDate lo_element = lo_document->create_simple_element( name = lc_xml_node_linksuptodate parent = lo_document ). lv_value = me->flag2bool( excel->zif_excel_book_properties~linksuptodate ). lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " SharedDoc lo_element = lo_document->create_simple_element( name = lc_xml_node_shareddoc parent = lo_document ). lv_value = me->flag2bool( excel->zif_excel_book_properties~shareddoc ). lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " HyperlinksChanged lo_element = lo_document->create_simple_element( name = lc_xml_node_hyperlinkschanged parent = lo_document ). lv_value = me->flag2bool( excel->zif_excel_book_properties~hyperlinkschanged ). lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " AppVersion lo_element = lo_document->create_simple_element( name = lc_xml_node_appversion parent = lo_document ). lv_value = excel->zif_excel_book_properties~appversion. lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). endmethod. method CREATE_DOCPROPS_CORE. ** Constant node name DATA: lc_xml_node_coreproperties TYPE string VALUE 'coreProperties', lc_xml_node_creator TYPE string VALUE 'creator', lc_xml_node_description TYPE string VALUE 'description', lc_xml_node_lastmodifiedby TYPE string VALUE 'lastModifiedBy', lc_xml_node_created TYPE string VALUE 'created', lc_xml_node_modified TYPE string VALUE 'modified', " Node attributes lc_xml_attr_type TYPE string VALUE 'type', lc_xml_attr_target TYPE string VALUE 'dcterms:W3CDTF', " Node namespace lc_cp_ns TYPE string VALUE 'cp', lc_dc_ns TYPE string VALUE 'dc', lc_dcterms_ns TYPE string VALUE 'dcterms', * lc_dcmitype_ns TYPE string VALUE 'dcmitype', lc_xsi_ns TYPE string VALUE 'xsi', lc_xml_node_cp_ns TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/metadata/core-properties', lc_xml_node_dc_ns TYPE string VALUE 'http://purl.org/dc/elements/1.1/', lc_xml_node_dcterms_ns TYPE string VALUE 'http://purl.org/dc/terms/', lc_xml_node_dcmitype_ns TYPE string VALUE 'http://purl.org/dc/dcmitype/', lc_xml_node_xsi_ns TYPE string VALUE 'http://www.w3.org/2001/XMLSchema-instance'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer. DATA: lv_value TYPE string, lv_date TYPE sydatum, lv_time TYPE syuzeit. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). ********************************************************************** * STEP 3: Create main node coreProperties lo_element_root = lo_document->create_simple_element_ns( name = lc_xml_node_coreproperties prefix = lc_cp_ns parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns:cp' value = lc_xml_node_cp_ns ). lo_element_root->set_attribute_ns( name = 'xmlns:dc' value = lc_xml_node_dc_ns ). lo_element_root->set_attribute_ns( name = 'xmlns:dcterms' value = lc_xml_node_dcterms_ns ). lo_element_root->set_attribute_ns( name = 'xmlns:dcmitype' value = lc_xml_node_dcmitype_ns ). lo_element_root->set_attribute_ns( name = 'xmlns:xsi' value = lc_xml_node_xsi_ns ). ********************************************************************** * STEP 4: Create subnodes " Creator node lo_element = lo_document->create_simple_element_ns( name = lc_xml_node_creator prefix = lc_dc_ns parent = lo_document ). lv_value = excel->zif_excel_book_properties~creator. lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " Description node lo_element = lo_document->create_simple_element_ns( name = lc_xml_node_description prefix = lc_dc_ns parent = lo_document ). lv_value = excel->zif_excel_book_properties~description. lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " lastModifiedBy node lo_element = lo_document->create_simple_element_ns( name = lc_xml_node_lastmodifiedby prefix = lc_cp_ns parent = lo_document ). lv_value = excel->zif_excel_book_properties~lastmodifiedby. lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " Created node lo_element = lo_document->create_simple_element_ns( name = lc_xml_node_created prefix = lc_dcterms_ns parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_type prefix = lc_xsi_ns value = lc_xml_attr_target ). CONVERT TIME STAMP excel->zif_excel_book_properties~created TIME ZONE sy-zonlo INTO DATE lv_date TIME lv_time. CONCATENATE lv_date lv_time INTO lv_value RESPECTING BLANKS. REPLACE ALL OCCURRENCES OF REGEX '([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})' IN lv_value WITH '$1-$2-$3T$4:$5:$6Z'. * lv_value = excel->zif_excel_book_properties~created. * lv_value = '2010-07-04T14:58:53Z'. lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " Modified node lo_element = lo_document->create_simple_element_ns( name = lc_xml_node_modified prefix = lc_dcterms_ns parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_type prefix = lc_xsi_ns value = lc_xml_attr_target ). CONVERT TIME STAMP excel->zif_excel_book_properties~modified TIME ZONE sy-zonlo INTO DATE lv_date TIME lv_time. CONCATENATE lv_date lv_time INTO lv_value RESPECTING BLANKS. REPLACE ALL OCCURRENCES OF REGEX '([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})' IN lv_value WITH '$1-$2-$3T$4:$5:$6Z'. * lv_value = excel->zif_excel_book_properties~modified. * lv_value = '2010-07-04T14:58:53Z'. lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). endmethod. METHOD create_dxf_style. CONSTANTS: lc_xml_node_dxf TYPE string VALUE 'dxf', lc_xml_node_font TYPE string VALUE 'font', lc_xml_node_b TYPE string VALUE 'b', "bold lc_xml_node_i TYPE string VALUE 'i', "italic lc_xml_node_u TYPE string VALUE 'u', "underline lc_xml_node_strike TYPE string VALUE 'strike', "strikethrough lc_xml_attr_val TYPE string VALUE 'val', lc_xml_node_fill TYPE string VALUE 'fill', lc_xml_node_patternfill TYPE string VALUE 'patternFill', lc_xml_attr_patterntype TYPE string VALUE 'patternType', lc_xml_node_fgcolor TYPE string VALUE 'fgColor', lc_xml_node_bgcolor TYPE string VALUE 'bgColor'. DATA: ls_styles_mapping TYPE zexcel_s_styles_mapping, ls_cellxfs TYPE zexcel_s_cellxfs, ls_style_cond_mapping TYPE zexcel_s_styles_cond_mapping, lo_sub_element TYPE REF TO if_ixml_element, lo_sub_element_2 TYPE REF TO if_ixml_element, lv_index TYPE i, ls_font TYPE zexcel_s_style_font, lo_element_font TYPE REF TO if_ixml_element, lv_value TYPE string, ls_fill TYPE zexcel_s_style_fill, lo_element_fill TYPE REF TO if_ixml_element. CHECK iv_cell_style IS NOT INITIAL. READ TABLE me->styles_mapping INTO ls_styles_mapping WITH KEY guid = iv_cell_style. ADD 1 TO ls_styles_mapping-style. " the numbering starts from 0 READ TABLE it_cellxfs INTO ls_cellxfs INDEX ls_styles_mapping-style. ADD 1 TO ls_cellxfs-fillid. " the numbering starts from 0 READ TABLE me->styles_cond_mapping INTO ls_style_cond_mapping WITH KEY style = ls_styles_mapping-style. IF sy-subrc EQ 0. ls_style_cond_mapping-guid = iv_cell_style. APPEND ls_style_cond_mapping TO me->styles_cond_mapping. ELSE. ls_style_cond_mapping-guid = iv_cell_style. ls_style_cond_mapping-style = ls_styles_mapping-style. ls_style_cond_mapping-dxf = cv_dfx_count. APPEND ls_style_cond_mapping TO me->styles_cond_mapping. ADD 1 TO cv_dfx_count. " dxf node lo_sub_element = io_ixml_document->create_simple_element( name = lc_xml_node_dxf parent = io_ixml_document ). "Conditional formatting font style correction by Alessandro Iannacci START lv_index = ls_cellxfs-fontid + 1. READ TABLE it_fonts INTO ls_font INDEX lv_index. IF ls_font IS NOT INITIAL. lo_element_font = io_ixml_document->create_simple_element( name = lc_xml_node_font parent = io_ixml_document ). IF ls_font-bold EQ abap_true. lo_sub_element_2 = io_ixml_document->create_simple_element( name = lc_xml_node_b parent = io_ixml_document ). lo_element_font->append_child( new_child = lo_sub_element_2 ). ENDIF. IF ls_font-italic EQ abap_true. lo_sub_element_2 = io_ixml_document->create_simple_element( name = lc_xml_node_i parent = io_ixml_document ). lo_element_font->append_child( new_child = lo_sub_element_2 ). ENDIF. IF ls_font-underline EQ abap_true. lo_sub_element_2 = io_ixml_document->create_simple_element( name = lc_xml_node_u parent = io_ixml_document ). lv_value = ls_font-underline_mode. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_val value = lv_value ). lo_element_font->append_child( new_child = lo_sub_element_2 ). ENDIF. IF ls_font-strikethrough EQ abap_true. lo_sub_element_2 = io_ixml_document->create_simple_element( name = lc_xml_node_strike parent = io_ixml_document ). lo_element_font->append_child( new_child = lo_sub_element_2 ). ENDIF. "color create_xl_styles_color_node( io_document = io_ixml_document io_parent = lo_element_font is_color = ls_font-color ). lo_sub_element->append_child( new_child = lo_element_font ). ENDIF. "---Conditional formatting font style correction by Alessandro Iannacci END READ TABLE it_fills INTO ls_fill INDEX ls_cellxfs-fillid. IF ls_fill IS NOT INITIAL. " fill properties lo_element_fill = io_ixml_document->create_simple_element( name = lc_xml_node_fill parent = io_ixml_document ). "pattern lo_sub_element_2 = io_ixml_document->create_simple_element( name = lc_xml_node_patternfill parent = io_ixml_document ). lv_value = ls_fill-filltype. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_patterntype value = lv_value ). " fgcolor create_xl_styles_color_node( io_document = io_ixml_document io_parent = lo_sub_element_2 is_color = ls_fill-fgcolor iv_color_elem_name = lc_xml_node_fgcolor ). IF ls_fill-fgcolor-rgb IS INITIAL AND ls_fill-fgcolor-indexed EQ zcl_excel_style_color=>c_indexed_not_set AND ls_fill-fgcolor-theme EQ zcl_excel_style_color=>c_theme_not_set AND ls_fill-fgcolor-tint IS INITIAL AND ls_fill-bgcolor-indexed EQ zcl_excel_style_color=>c_indexed_sys_foreground. " bgcolor create_xl_styles_color_node( io_document = io_ixml_document io_parent = lo_sub_element_2 is_color = ls_fill-bgcolor iv_color_elem_name = lc_xml_node_bgcolor ). ENDIF. lo_element_fill->append_child( new_child = lo_sub_element_2 ). "pattern lo_sub_element->append_child( new_child = lo_element_fill ). ENDIF. ENDIF. io_dxf_element->append_child( new_child = lo_sub_element ). ENDMETHOD. method CREATE_RELATIONSHIPS. ** Constant node name DATA: lc_xml_node_relationships TYPE string VALUE 'Relationships', lc_xml_node_relationship TYPE string VALUE 'Relationship', " Node attributes lc_xml_attr_id TYPE string VALUE 'Id', lc_xml_attr_type TYPE string VALUE 'Type', lc_xml_attr_target TYPE string VALUE 'Target', " Node namespace lc_xml_node_rels_ns TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships', " Node id lc_xml_node_rId1_id TYPE string VALUE 'rId1', lc_xml_node_rId2_id TYPE string VALUE 'rId2', lc_xml_node_rId3_id TYPE string VALUE 'rId3', " Node type lc_xml_node_rId1_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument', lc_xml_node_rId2_tp TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties', lc_xml_node_rId3_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties', " Node target lc_xml_node_rId1_tg TYPE string VALUE 'xl/workbook.xml', lc_xml_node_rId2_tg TYPE string VALUE 'docProps/core.xml', lc_xml_node_rId3_tg TYPE string VALUE 'docProps/app.xml'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). ********************************************************************** * STEP 3: Create main node relationships lo_element_root = lo_document->create_simple_element( name = lc_xml_node_relationships parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_rels_ns ). ********************************************************************** * STEP 4: Create subnodes " Theme node lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_id value = lc_xml_node_rId3_id ). lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rId3_tp ). lo_element->set_attribute_ns( name = lc_xml_attr_target value = lc_xml_node_rId3_tg ). lo_element_root->append_child( new_child = lo_element ). " Styles node lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_id value = lc_xml_node_rId2_id ). lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rId2_tp ). lo_element->set_attribute_ns( name = lc_xml_attr_target value = lc_xml_node_rId2_tg ). lo_element_root->append_child( new_child = lo_element ). " rels node lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_id value = lc_xml_node_rId1_id ). lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rId1_tp ). lo_element->set_attribute_ns( name = lc_xml_attr_target value = lc_xml_node_rId1_tg ). lo_element_root->append_child( new_child = lo_element ). ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). endmethod. METHOD create_xl_charts. ** Constant node name CONSTANTS: lc_xml_node_chartspace TYPE string VALUE 'c:chartSpace', lc_xml_node_ns_c TYPE string VALUE 'http://schemas.openxmlformats.org/drawingml/2006/chart', lc_xml_node_ns_a TYPE string VALUE 'http://schemas.openxmlformats.org/drawingml/2006/main', lc_xml_node_ns_r TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships', lc_xml_node_date1904 TYPE string VALUE 'c:date1904', lc_xml_node_lang TYPE string VALUE 'c:lang', lc_xml_node_roundedcorners TYPE string VALUE 'c:roundedCorners', lc_xml_node_altcont TYPE string VALUE 'mc:AlternateContent', lc_xml_node_altcont_ns_mc TYPE string VALUE 'http://schemas.openxmlformats.org/markup-compatibility/2006', lc_xml_node_choice TYPE string VALUE 'mc:Choice', lc_xml_node_choice_ns_requires TYPE string VALUE 'c14', lc_xml_node_choice_ns_c14 TYPE string VALUE 'http://schemas.microsoft.com/office/drawing/2007/8/2/chart', lc_xml_node_style TYPE string VALUE 'c14:style', lc_xml_node_fallback TYPE string VALUE 'mc:Fallback', lc_xml_node_style2 TYPE string VALUE 'c:style', "---------------------------CHART lc_xml_node_chart TYPE string VALUE 'c:chart', lc_xml_node_autotitledeleted TYPE string VALUE 'c:autoTitleDeleted', "plotArea lc_xml_node_plotarea TYPE string VALUE 'c:plotArea', lc_xml_node_layout TYPE string VALUE 'c:layout', lc_xml_node_varycolors TYPE string VALUE 'c:varyColors', lc_xml_node_ser TYPE string VALUE 'c:ser', lc_xml_node_idx TYPE string VALUE 'c:idx', lc_xml_node_order TYPE string VALUE 'c:order', lc_xml_node_tx TYPE string VALUE 'c:tx', lc_xml_node_v TYPE string VALUE 'c:v', lc_xml_node_val TYPE string VALUE 'c:val', lc_xml_node_cat TYPE string VALUE 'c:cat', lc_xml_node_numref TYPE string VALUE 'c:numRef', lc_xml_node_strref TYPE string VALUE 'c:strRef', lc_xml_node_f TYPE string VALUE 'c:f', "this is the range lc_xml_node_overlap TYPE string VALUE 'c:overlap', "note: numcache avoided lc_xml_node_dlbls TYPE string VALUE 'c:dLbls', lc_xml_node_showlegendkey TYPE string VALUE 'c:showLegendKey', lc_xml_node_showval TYPE string VALUE 'c:showVal', lc_xml_node_showcatname TYPE string VALUE 'c:showCatName', lc_xml_node_showsername TYPE string VALUE 'c:showSerName', lc_xml_node_showpercent TYPE string VALUE 'c:showPercent', lc_xml_node_showbubblesize TYPE string VALUE 'c:showBubbleSize', "plotArea->pie lc_xml_node_piechart TYPE string VALUE 'c:pieChart', lc_xml_node_showleaderlines TYPE string VALUE 'c:showLeaderLines', lc_xml_node_firstsliceang TYPE string VALUE 'c:firstSliceAng', "plotArea->line lc_xml_node_linechart TYPE string VALUE 'c:lineChart', lc_xml_node_symbol TYPE string VALUE 'c:symbol', lc_xml_node_marker TYPE string VALUE 'c:marker', lc_xml_node_smooth TYPE string VALUE 'c:smooth', "plotArea->bar lc_xml_node_invertifnegative TYPE string VALUE 'c:invertIfNegative', lc_xml_node_barchart TYPE string VALUE 'c:barChart', lc_xml_node_bardir TYPE string VALUE 'c:barDir', lc_xml_node_gapwidth TYPE string VALUE 'c:gapWidth', "plotArea->line + plotArea->bar lc_xml_node_grouping TYPE string VALUE 'c:grouping', lc_xml_node_axid TYPE string VALUE 'c:axId', lc_xml_node_catax TYPE string VALUE 'c:catAx', lc_xml_node_valax TYPE string VALUE 'c:valAx', lc_xml_node_scaling TYPE string VALUE 'c:scaling', lc_xml_node_orientation TYPE string VALUE 'c:orientation', lc_xml_node_delete TYPE string VALUE 'c:delete', lc_xml_node_axpos TYPE string VALUE 'c:axPos', lc_xml_node_numfmt TYPE string VALUE 'c:numFmt', lc_xml_node_majorgridlines TYPE string VALUE 'c:majorGridlines', lc_xml_node_majortickmark TYPE string VALUE 'c:majorTickMark', lc_xml_node_minortickmark TYPE string VALUE 'c:minorTickMark', lc_xml_node_ticklblpos TYPE string VALUE 'c:tickLblPos', lc_xml_node_crossax TYPE string VALUE 'c:crossAx', lc_xml_node_crosses TYPE string VALUE 'c:crosses', lc_xml_node_auto TYPE string VALUE 'c:auto', lc_xml_node_lblalgn TYPE string VALUE 'c:lblAlgn', lc_xml_node_lbloffset TYPE string VALUE 'c:lblOffset', lc_xml_node_nomultilvllbl TYPE string VALUE 'c:noMultiLvlLbl', lc_xml_node_crossbetween TYPE string VALUE 'c:crossBetween', "legend lc_xml_node_legend TYPE string VALUE 'c:legend', "legend->pie lc_xml_node_legendpos TYPE string VALUE 'c:legendPos', * lc_xml_node_layout TYPE string VALUE 'c:layout', "already exist lc_xml_node_overlay TYPE string VALUE 'c:overlay', lc_xml_node_txpr TYPE string VALUE 'c:txPr', lc_xml_node_bodypr TYPE string VALUE 'a:bodyPr', lc_xml_node_lststyle TYPE string VALUE 'a:lstStyle', lc_xml_node_p TYPE string VALUE 'a:p', lc_xml_node_ppr TYPE string VALUE 'a:pPr', lc_xml_node_defrpr TYPE string VALUE 'a:defRPr', lc_xml_node_endpararpr TYPE string VALUE 'a:endParaRPr', "legend->bar + legend->line lc_xml_node_plotvisonly TYPE string VALUE 'c:plotVisOnly', lc_xml_node_dispblanksas TYPE string VALUE 'c:dispBlanksAs', lc_xml_node_showdlblsovermax TYPE string VALUE 'c:showDLblsOverMax', "---------------------------END OF CHART lc_xml_node_printsettings TYPE string VALUE 'c:printSettings', lc_xml_node_headerfooter TYPE string VALUE 'c:headerFooter', lc_xml_node_pagemargins TYPE string VALUE 'c:pageMargins', lc_xml_node_pagesetup TYPE string VALUE 'c:pageSetup'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer. DATA lo_element TYPE REF TO if_ixml_element. DATA lo_element2 TYPE REF TO if_ixml_element. DATA lo_element3 TYPE REF TO if_ixml_element. DATA lo_el_rootchart TYPE REF TO if_ixml_element. DATA lo_element4 TYPE REF TO if_ixml_element. DATA lo_element5 TYPE REF TO if_ixml_element. DATA lo_element6 TYPE REF TO if_ixml_element. DATA lo_element7 TYPE REF TO if_ixml_element. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). *********************************************************************** * STEP 3: Create main node relationships lo_element_root = lo_document->create_simple_element( name = lc_xml_node_chartspace parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns:c' value = lc_xml_node_ns_c ). lo_element_root->set_attribute_ns( name = 'xmlns:a' value = lc_xml_node_ns_a ). lo_element_root->set_attribute_ns( name = 'xmlns:r' value = lc_xml_node_ns_r ). ********************************************************************** * STEP 4: Create chart DATA lo_chartb TYPE REF TO zcl_excel_graph_bars. DATA lo_chartp TYPE REF TO zcl_excel_graph_pie. DATA lo_chartl TYPE REF TO zcl_excel_graph_line. DATA lo_chart TYPE REF TO zcl_excel_graph. DATA ls_serie TYPE zcl_excel_graph=>s_series. DATA ls_ax TYPE zcl_excel_graph_bars=>s_ax. DATA lv_str TYPE string. "Identify chart type CASE io_drawing->graph_type. WHEN zcl_excel_drawing=>c_graph_bars. lo_chartb ?= io_drawing->graph. WHEN zcl_excel_drawing=>c_graph_pie. lo_chartp ?= io_drawing->graph. WHEN zcl_excel_drawing=>c_graph_line. lo_chartl ?= io_drawing->graph. WHEN OTHERS. ENDCASE. lo_chart = io_drawing->graph. lo_element = lo_document->create_simple_element( name = lc_xml_node_date1904 parent = lo_element_root ). lo_element->set_attribute_ns( name = 'val' value = lo_chart->ns_1904val ). lo_element = lo_document->create_simple_element( name = lc_xml_node_lang parent = lo_element_root ). lo_element->set_attribute_ns( name = 'val' value = lo_chart->ns_langval ). lo_element = lo_document->create_simple_element( name = lc_xml_node_roundedcorners parent = lo_element_root ). lo_element->set_attribute_ns( name = 'val' value = lo_chart->ns_roundedcornersval ). lo_element = lo_document->create_simple_element( name = lc_xml_node_altcont parent = lo_element_root ). lo_element->set_attribute_ns( name = 'xmlns:mc' value = lc_xml_node_altcont_ns_mc ). "Choice lo_element2 = lo_document->create_simple_element( name = lc_xml_node_choice parent = lo_element ). lo_element2->set_attribute_ns( name = 'Requires' value = lc_xml_node_choice_ns_requires ). lo_element2->set_attribute_ns( name = 'xmlns:c14' value = lc_xml_node_choice_ns_c14 ). "C14:style lo_element3 = lo_document->create_simple_element( name = lc_xml_node_style parent = lo_element2 ). lo_element3->set_attribute_ns( name = 'val' value = lo_chart->ns_c14styleval ). "Fallback lo_element2 = lo_document->create_simple_element( name = lc_xml_node_fallback parent = lo_element ). "C:style lo_element3 = lo_document->create_simple_element( name = lc_xml_node_style2 parent = lo_element2 ). lo_element3->set_attribute_ns( name = 'val' value = lo_chart->ns_styleval ). "---------------------------CHART lo_element = lo_document->create_simple_element( name = lc_xml_node_chart parent = lo_element_root ). "Added IF lo_chart->title IS NOT INITIAL. lo_element2 = lo_document->create_simple_element( name = 'c:title' parent = lo_element ). lo_element3 = lo_document->create_simple_element( name = 'c:tx' parent = lo_element2 ). lo_element4 = lo_document->create_simple_element( name = 'c:rich' parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = 'a:bodyPr' parent = lo_element4 ). lo_element5 = lo_document->create_simple_element( name = 'a:lstStyle' parent = lo_element4 ). lo_element5 = lo_document->create_simple_element( name = 'a:p' parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = 'a:pPr' parent = lo_element5 ). lo_element7 = lo_document->create_simple_element( name = 'a:defRPr' parent = lo_element6 ). lo_element6 = lo_document->create_simple_element( name = 'a:r' parent = lo_element5 ). lo_element7 = lo_document->create_simple_element( name = 'a:rPr' parent = lo_element6 ). lo_element7->set_attribute_ns( name = 'lang' value = 'en-US' ). lo_element7 = lo_document->create_simple_element( name = 'a:t' parent = lo_element6 ). lo_element7->set_value( value = lo_chart->title ). ENDIF. "End lo_element2 = lo_document->create_simple_element( name = lc_xml_node_autotitledeleted parent = lo_element ). lo_element2->set_attribute_ns( name = 'val' value = lo_chart->ns_autotitledeletedval ). "plotArea lo_element2 = lo_document->create_simple_element( name = lc_xml_node_plotarea parent = lo_element ). lo_element3 = lo_document->create_simple_element( name = lc_xml_node_layout parent = lo_element2 ). CASE io_drawing->graph_type. WHEN zcl_excel_drawing=>c_graph_bars. "----bar lo_element3 = lo_document->create_simple_element( name = lc_xml_node_barchart parent = lo_element2 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_bardir parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = lo_chartb->ns_bardirval ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_grouping parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = lo_chartb->ns_groupingval ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_varycolors parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = lo_chartb->ns_varycolorsval ). "series LOOP AT lo_chartb->series INTO ls_serie. lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ser parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_idx parent = lo_element4 ). IF ls_serie-idx IS NOT INITIAL. lv_str = ls_serie-idx. ELSE. lv_str = sy-tabix - 1. ENDIF. CONDENSE lv_str. lo_element5->set_attribute_ns( name = 'val' value = lv_str ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_order parent = lo_element4 ). lv_str = ls_serie-order. CONDENSE lv_str. lo_element5->set_attribute_ns( name = 'val' value = lv_str ). IF ls_serie-sername IS NOT INITIAL. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_tx parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_v parent = lo_element5 ). lo_element6->set_value( value = ls_serie-sername ). ENDIF. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_invertifnegative parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = ls_serie-invertifnegative ). IF ls_serie-lbl IS NOT INITIAL. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_cat parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_strref parent = lo_element5 ). lo_element7 = lo_document->create_simple_element( name = lc_xml_node_f parent = lo_element6 ). lo_element7->set_value( value = ls_serie-lbl ). ENDIF. IF ls_serie-ref IS NOT INITIAL. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_val parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_numref parent = lo_element5 ). lo_element7 = lo_document->create_simple_element( name = lc_xml_node_f parent = lo_element6 ). lo_element7->set_value( value = ls_serie-ref ). ENDIF. ENDLOOP. "endseries IF lo_chartb->ns_groupingval = zcl_excel_graph_bars=>c_groupingval_stacked. lo_element4 = lo_document->create_simple_element( name = lc_xml_node_overlap parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = '100' ). ENDIF. lo_element4 = lo_document->create_simple_element( name = lc_xml_node_dlbls parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showlegendkey parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartb->ns_showlegendkeyval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showval parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartb->ns_showvalval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showcatname parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartb->ns_showcatnameval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showsername parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartb->ns_showsernameval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showpercent parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartb->ns_showpercentval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showbubblesize parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartb->ns_showbubblesizeval ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_gapwidth parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = lo_chartb->ns_gapwidthval ). "axes lo_el_rootchart = lo_element3. LOOP AT lo_chartb->axes INTO ls_ax. lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axid parent = lo_el_rootchart ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-axid ). CASE ls_ax-type. WHEN zcl_excel_graph_bars=>c_catax. lo_element3 = lo_document->create_simple_element( name = lc_xml_node_catax parent = lo_element2 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axid parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-axid ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_scaling parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_orientation parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = ls_ax-orientation ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_delete parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-delete ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axpos parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-axpos ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_numfmt parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'formatCode' value = ls_ax-formatcode ). lo_element4->set_attribute_ns( name = 'sourceLinked' value = ls_ax-sourcelinked ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_majortickmark parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-majortickmark ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_minortickmark parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-minortickmark ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ticklblpos parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-ticklblpos ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crossax parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-crossax ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crosses parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-crosses ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_auto parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-auto ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_lblalgn parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-lblalgn ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_lbloffset parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-lbloffset ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_nomultilvllbl parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-nomultilvllbl ). WHEN zcl_excel_graph_bars=>c_valax. lo_element3 = lo_document->create_simple_element( name = lc_xml_node_valax parent = lo_element2 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axid parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-axid ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_scaling parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_orientation parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = ls_ax-orientation ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_delete parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-delete ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axpos parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-axpos ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_majorgridlines parent = lo_element3 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_numfmt parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'formatCode' value = ls_ax-formatcode ). lo_element4->set_attribute_ns( name = 'sourceLinked' value = ls_ax-sourcelinked ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_majortickmark parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-majortickmark ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_minortickmark parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-minortickmark ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ticklblpos parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-ticklblpos ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crossax parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-crossax ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crosses parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-crosses ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crossbetween parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-crossbetween ). WHEN OTHERS. ENDCASE. ENDLOOP. "endaxes WHEN zcl_excel_drawing=>c_graph_pie. "----pie lo_element3 = lo_document->create_simple_element( name = lc_xml_node_piechart parent = lo_element2 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_varycolors parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = lo_chartp->ns_varycolorsval ). "series LOOP AT lo_chartp->series INTO ls_serie. lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ser parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_idx parent = lo_element4 ). IF ls_serie-idx IS NOT INITIAL. lv_str = ls_serie-idx. ELSE. lv_str = sy-tabix - 1. ENDIF. CONDENSE lv_str. lo_element5->set_attribute_ns( name = 'val' value = lv_str ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_order parent = lo_element4 ). lv_str = ls_serie-order. CONDENSE lv_str. lo_element5->set_attribute_ns( name = 'val' value = lv_str ). IF ls_serie-sername IS NOT INITIAL. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_tx parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_v parent = lo_element5 ). lo_element6->set_value( value = ls_serie-sername ). ENDIF. IF ls_serie-lbl IS NOT INITIAL. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_cat parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_strref parent = lo_element5 ). lo_element7 = lo_document->create_simple_element( name = lc_xml_node_f parent = lo_element6 ). lo_element7->set_value( value = ls_serie-lbl ). ENDIF. IF ls_serie-ref IS NOT INITIAL. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_val parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_numref parent = lo_element5 ). lo_element7 = lo_document->create_simple_element( name = lc_xml_node_f parent = lo_element6 ). lo_element7->set_value( value = ls_serie-ref ). ENDIF. ENDLOOP. "endseries lo_element4 = lo_document->create_simple_element( name = lc_xml_node_dlbls parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showlegendkey parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartp->ns_showlegendkeyval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showval parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartp->ns_showvalval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showcatname parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartp->ns_showcatnameval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showsername parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartp->ns_showsernameval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showpercent parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartp->ns_showpercentval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showbubblesize parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartp->ns_showbubblesizeval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showleaderlines parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartp->ns_showleaderlinesval ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_firstsliceang parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = lo_chartp->ns_firstsliceangval ). WHEN zcl_excel_drawing=>c_graph_line. "----line lo_element3 = lo_document->create_simple_element( name = lc_xml_node_linechart parent = lo_element2 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_grouping parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = lo_chartl->ns_groupingval ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_varycolors parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = lo_chartl->ns_varycolorsval ). "series LOOP AT lo_chartl->series INTO ls_serie. lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ser parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_idx parent = lo_element4 ). IF ls_serie-idx IS NOT INITIAL. lv_str = ls_serie-idx. ELSE. lv_str = sy-tabix - 1. ENDIF. CONDENSE lv_str. lo_element5->set_attribute_ns( name = 'val' value = lv_str ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_order parent = lo_element4 ). lv_str = ls_serie-order. CONDENSE lv_str. lo_element5->set_attribute_ns( name = 'val' value = lv_str ). IF ls_serie-sername IS NOT INITIAL. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_tx parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_v parent = lo_element5 ). lo_element6->set_value( value = ls_serie-sername ). ENDIF. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_marker parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_symbol parent = lo_element5 ). lo_element6->set_attribute_ns( name = 'val' value = ls_serie-symbol ). IF ls_serie-lbl IS NOT INITIAL. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_cat parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_strref parent = lo_element5 ). lo_element7 = lo_document->create_simple_element( name = lc_xml_node_f parent = lo_element6 ). lo_element7->set_value( value = ls_serie-lbl ). ENDIF. IF ls_serie-ref IS NOT INITIAL. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_val parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_numref parent = lo_element5 ). lo_element7 = lo_document->create_simple_element( name = lc_xml_node_f parent = lo_element6 ). lo_element7->set_value( value = ls_serie-ref ). ENDIF. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_smooth parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = ls_serie-smooth ). ENDLOOP. "endseries lo_element4 = lo_document->create_simple_element( name = lc_xml_node_dlbls parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showlegendkey parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartl->ns_showlegendkeyval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showval parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartl->ns_showvalval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showcatname parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartl->ns_showcatnameval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showsername parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartl->ns_showsernameval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showpercent parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartl->ns_showpercentval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showbubblesize parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartl->ns_showbubblesizeval ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_marker parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = lo_chartl->ns_markerval ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_smooth parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = lo_chartl->ns_smoothval ). "axes lo_el_rootchart = lo_element3. LOOP AT lo_chartl->axes INTO ls_ax. lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axid parent = lo_el_rootchart ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-axid ). CASE ls_ax-type. WHEN zcl_excel_graph_line=>c_catax. lo_element3 = lo_document->create_simple_element( name = lc_xml_node_catax parent = lo_element2 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axid parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-axid ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_scaling parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_orientation parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = ls_ax-orientation ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_delete parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-delete ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axpos parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-axpos ). * lo_element4 = lo_document->create_simple_element( name = lc_xml_node_numfmt * parent = lo_element3 ). * lo_element4->set_attribute_ns( name = 'formatCode' * value = ls_ax-formatcode ). * lo_element4->set_attribute_ns( name = 'sourceLinked' * value = ls_ax-sourcelinked ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_majortickmark parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-majortickmark ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_minortickmark parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-minortickmark ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ticklblpos parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-ticklblpos ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crossax parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-crossax ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crosses parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-crosses ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_auto parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-auto ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_lblalgn parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-lblalgn ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_lbloffset parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-lbloffset ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_nomultilvllbl parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-nomultilvllbl ). WHEN zcl_excel_graph_line=>c_valax. lo_element3 = lo_document->create_simple_element( name = lc_xml_node_valax parent = lo_element2 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axid parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-axid ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_scaling parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_orientation parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = ls_ax-orientation ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_delete parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-delete ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axpos parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-axpos ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_majorgridlines parent = lo_element3 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_numfmt parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'formatCode' value = ls_ax-formatcode ). lo_element4->set_attribute_ns( name = 'sourceLinked' value = ls_ax-sourcelinked ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_majortickmark parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-majortickmark ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_minortickmark parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-minortickmark ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ticklblpos parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-ticklblpos ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crossax parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-crossax ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crosses parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-crosses ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crossbetween parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-crossbetween ). WHEN OTHERS. ENDCASE. ENDLOOP. "endaxes WHEN OTHERS. ENDCASE. "legend IF lo_chart->print_label EQ abap_true. lo_element2 = lo_document->create_simple_element( name = lc_xml_node_legend parent = lo_element ). CASE io_drawing->graph_type. WHEN zcl_excel_drawing=>c_graph_bars. "----bar lo_element3 = lo_document->create_simple_element( name = lc_xml_node_legendpos parent = lo_element2 ). lo_element3->set_attribute_ns( name = 'val' value = lo_chartb->ns_legendposval ). lo_element3 = lo_document->create_simple_element( name = lc_xml_node_layout parent = lo_element2 ). lo_element3 = lo_document->create_simple_element( name = lc_xml_node_overlay parent = lo_element2 ). lo_element3->set_attribute_ns( name = 'val' value = lo_chartb->ns_overlayval ). WHEN zcl_excel_drawing=>c_graph_line. "----line lo_element3 = lo_document->create_simple_element( name = lc_xml_node_legendpos parent = lo_element2 ). lo_element3->set_attribute_ns( name = 'val' value = lo_chartl->ns_legendposval ). lo_element3 = lo_document->create_simple_element( name = lc_xml_node_layout parent = lo_element2 ). lo_element3 = lo_document->create_simple_element( name = lc_xml_node_overlay parent = lo_element2 ). lo_element3->set_attribute_ns( name = 'val' value = lo_chartl->ns_overlayval ). WHEN zcl_excel_drawing=>c_graph_pie. "----pie lo_element3 = lo_document->create_simple_element( name = lc_xml_node_legendpos parent = lo_element2 ). lo_element3->set_attribute_ns( name = 'val' value = lo_chartp->ns_legendposval ). lo_element3 = lo_document->create_simple_element( name = lc_xml_node_layout parent = lo_element2 ). lo_element3 = lo_document->create_simple_element( name = lc_xml_node_overlay parent = lo_element2 ). lo_element3->set_attribute_ns( name = 'val' value = lo_chartp->ns_overlayval ). lo_element3 = lo_document->create_simple_element( name = lc_xml_node_txpr parent = lo_element2 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_bodypr parent = lo_element3 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_lststyle parent = lo_element3 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_p parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_ppr parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'rtl' value = lo_chartp->ns_pprrtl ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_defrpr parent = lo_element5 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_endpararpr parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'lang' value = lo_chartp->ns_endpararprlang ). WHEN OTHERS. ENDCASE. ENDIF. lo_element2 = lo_document->create_simple_element( name = lc_xml_node_plotvisonly parent = lo_element ). lo_element2->set_attribute_ns( name = 'val' value = lo_chart->ns_plotvisonlyval ). lo_element2 = lo_document->create_simple_element( name = lc_xml_node_dispblanksas parent = lo_element ). lo_element2->set_attribute_ns( name = 'val' value = lo_chart->ns_dispblanksasval ). lo_element2 = lo_document->create_simple_element( name = lc_xml_node_showdlblsovermax parent = lo_element ). lo_element2->set_attribute_ns( name = 'val' value = lo_chart->ns_showdlblsovermaxval ). "---------------------------END OF CHART "printSettings lo_element = lo_document->create_simple_element( name = lc_xml_node_printsettings parent = lo_element_root ). "headerFooter lo_element2 = lo_document->create_simple_element( name = lc_xml_node_headerfooter parent = lo_element ). "pageMargins lo_element2 = lo_document->create_simple_element( name = lc_xml_node_pagemargins parent = lo_element ). lo_element2->set_attribute_ns( name = 'b' value = lo_chart->pagemargins-b ). lo_element2->set_attribute_ns( name = 'l' value = lo_chart->pagemargins-l ). lo_element2->set_attribute_ns( name = 'r' value = lo_chart->pagemargins-r ). lo_element2->set_attribute_ns( name = 't' value = lo_chart->pagemargins-t ). lo_element2->set_attribute_ns( name = 'header' value = lo_chart->pagemargins-header ). lo_element2->set_attribute_ns( name = 'footer' value = lo_chart->pagemargins-footer ). "pageSetup lo_element2 = lo_document->create_simple_element( name = lc_xml_node_pagesetup parent = lo_element ). ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). ENDMETHOD. method CREATE_XL_DRAWINGS. ** Constant node name CONSTANTS: lc_xml_node_wsdr TYPE string VALUE 'xdr:wsDr', lc_xml_node_ns_xdr TYPE string VALUE 'http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing', lc_xml_node_ns_a TYPE string VALUE 'http://schemas.openxmlformats.org/drawingml/2006/main'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element_cellanchor TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_drawings TYPE REF TO zcl_excel_drawings, lo_drawing TYPE REF TO zcl_excel_drawing. DATA: lv_rel_id TYPE i. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). *********************************************************************** * STEP 3: Create main node relationships lo_element_root = lo_document->create_simple_element( name = lc_xml_node_wsdr parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns:xdr' value = lc_xml_node_ns_xdr ). lo_element_root->set_attribute_ns( name = 'xmlns:a' value = lc_xml_node_ns_a ). ********************************************************************** * STEP 4: Create drawings CLEAR: lv_rel_id. lo_drawings = io_worksheet->get_drawings( ). lo_iterator = lo_drawings->get_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_drawing ?= lo_iterator->if_object_collection_iterator~get_next( ). ADD 1 TO lv_rel_id. lo_element_cellanchor = me->create_xl_drawing_anchor( io_drawing = lo_drawing io_document = lo_document ip_index = lv_rel_id ). lo_element_root->append_child( new_child = lo_element_cellanchor ). ENDWHILE. ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). endmethod. method CREATE_XL_DRAWINGS_RELS. ** Constant node name DATA: lc_xml_node_relationships TYPE string VALUE 'Relationships', lc_xml_node_relationship TYPE string VALUE 'Relationship', " Node attributes lc_xml_attr_id TYPE string VALUE 'Id', lc_xml_attr_type TYPE string VALUE 'Type', lc_xml_attr_target TYPE string VALUE 'Target', " Node namespace lc_xml_node_rels_ns TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships', lc_xml_node_rid_image_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image', lc_xml_node_rid_chart_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_drawings TYPE REF TO zcl_excel_drawings, lo_drawing TYPE REF TO zcl_excel_drawing. DATA: lv_value TYPE string, lv_counter TYPE i. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). ********************************************************************** * STEP 3: Create main node relationships lo_element_root = lo_document->create_simple_element( name = lc_xml_node_relationships parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_rels_ns ). ********************************************************************** * STEP 4: Create subnodes " Add sheet Relationship nodes here lv_counter = 0. lo_drawings = io_worksheet->get_drawings( ). lo_iterator = lo_drawings->get_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_drawing ?= lo_iterator->if_object_collection_iterator~get_next( ). ADD 1 TO lv_counter. lv_value = lv_counter. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO lv_value. lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_id value = lv_value ). lv_value = lo_drawing->get_media_name( ). CASE lo_drawing->get_type( ). WHEN zcl_excel_drawing=>type_image. CONCATENATE '../media/' lv_value INTO lv_value. lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rid_image_tp ). WHEN zcl_excel_drawing=>type_chart. CONCATENATE '../charts/' lv_value INTO lv_value. lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rid_chart_tp ). ENDCASE. lo_element->set_attribute_ns( name = lc_xml_attr_target value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ENDWHILE. ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). endmethod. method CREATE_XL_DRAWING_ANCHOR. ** Constant node name CONSTANTS: lc_xml_node_onecellanchor TYPE string VALUE 'xdr:oneCellAnchor', lc_xml_node_twocellanchor TYPE string VALUE 'xdr:twoCellAnchor', lc_xml_node_from TYPE string VALUE 'xdr:from', lc_xml_node_to TYPE string VALUE 'xdr:to', lc_xml_node_pic TYPE string VALUE 'xdr:pic', lc_xml_node_ext TYPE string VALUE 'xdr:ext', lc_xml_node_clientdata TYPE string VALUE 'xdr:clientData', lc_xml_node_col TYPE string VALUE 'xdr:col', lc_xml_node_coloff TYPE string VALUE 'xdr:colOff', lc_xml_node_row TYPE string VALUE 'xdr:row', lc_xml_node_rowoff TYPE string VALUE 'xdr:rowOff', lc_xml_node_nvpicpr TYPE string VALUE 'xdr:nvPicPr', lc_xml_node_cnvpr TYPE string VALUE 'xdr:cNvPr', lc_xml_node_cnvpicpr TYPE string VALUE 'xdr:cNvPicPr', lc_xml_node_piclocks TYPE string VALUE 'a:picLocks', lc_xml_node_sppr TYPE string VALUE 'xdr:spPr', lc_xml_node_apgeom TYPE string VALUE 'a:prstGeom', lc_xml_node_aavlst TYPE string VALUE 'a:avLst', lc_xml_node_graphicframe TYPE string VALUE 'xdr:graphicFrame', lc_xml_node_nvgraphicframepr TYPE string VALUE 'xdr:nvGraphicFramePr', lc_xml_node_cnvgraphicframepr TYPE string VALUE 'xdr:cNvGraphicFramePr', lc_xml_node_graphicframelocks TYPE string VALUE 'a:graphicFrameLocks', lc_xml_node_xfrm TYPE string VALUE 'xdr:xfrm', lc_xml_node_aoff TYPE string VALUE 'a:off', lc_xml_node_aext TYPE string VALUE 'a:ext', lc_xml_node_agraphic TYPE string VALUE 'a:graphic', lc_xml_node_agraphicdata TYPE string VALUE 'a:graphicData', lc_xml_node_ns_c TYPE string VALUE 'http://schemas.openxmlformats.org/drawingml/2006/chart', lc_xml_node_cchart TYPE string VALUE 'c:chart', lc_xml_node_blipfill TYPE string VALUE 'xdr:blipFill', lc_xml_node_ablip TYPE string VALUE 'a:blip', lc_xml_node_astretch TYPE string VALUE 'a:stretch', lc_xml_node_ns_r TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships'. DATA: lo_element_graphicframe TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_element2 TYPE REF TO if_ixml_element, lo_element3 TYPE REF TO if_ixml_element, lo_element_from TYPE REF TO if_ixml_element, lo_element_to TYPE REF TO if_ixml_element, lo_element_ext TYPE REF TO if_ixml_element, lo_element_pic TYPE REF TO if_ixml_element, lo_element_clientdata TYPE REF TO if_ixml_element, ls_position TYPE zexcel_drawing_position, lv_col TYPE string, " zexcel_cell_column, lv_row TYPE string, " zexcel_cell_row. lv_col_offset TYPE string, lv_row_offset TYPE string, lv_value TYPE string. ls_position = io_drawing->get_position( ). IF ls_position-anchor = 'ONE'. ep_anchor = io_document->create_simple_element( name = lc_xml_node_onecellanchor parent = io_document ). ELSE. ep_anchor = io_document->create_simple_element( name = lc_xml_node_twocellanchor parent = io_document ). ENDIF. * from cell ****************************** lo_element_from = io_document->create_simple_element( name = lc_xml_node_from parent = io_document ). lv_col = ls_position-from-col. lv_row = ls_position-from-row. lv_col_offset = ls_position-from-col_offset. lv_row_offset = ls_position-from-row_offset. CONDENSE lv_col NO-GAPS. CONDENSE lv_row NO-GAPS. CONDENSE lv_col_offset NO-GAPS. CONDENSE lv_row_offset NO-GAPS. lo_element = io_document->create_simple_element( name = lc_xml_node_col parent = io_document ). lo_element->set_value( value = lv_col ). lo_element_from->append_child( new_child = lo_element ). lo_element = io_document->create_simple_element( name = lc_xml_node_coloff parent = io_document ). lo_element->set_value( value = lv_col_offset ). lo_element_from->append_child( new_child = lo_element ). lo_element = io_document->create_simple_element( name = lc_xml_node_row parent = io_document ). lo_element->set_value( value = lv_row ). lo_element_from->append_child( new_child = lo_element ). lo_element = io_document->create_simple_element( name = lc_xml_node_rowoff parent = io_document ). lo_element->set_value( value = lv_row_offset ). lo_element_from->append_child( new_child = lo_element ). ep_anchor->append_child( new_child = lo_element_from ). IF ls_position-anchor = 'ONE'. * ext ****************************** lo_element_ext = io_document->create_simple_element( name = lc_xml_node_ext parent = io_document ). lv_value = io_drawing->get_width_emu_str( ). lo_element_ext->set_attribute_ns( name = 'cx' value = lv_value ). lv_value = io_drawing->get_height_emu_str( ). lo_element_ext->set_attribute_ns( name = 'cy' value = lv_value ). ep_anchor->append_child( new_child = lo_element_ext ). ELSEIF ls_position-anchor = 'TWO'. * to cell ****************************** lo_element_to = io_document->create_simple_element( name = lc_xml_node_to parent = io_document ). lv_col = ls_position-to-col. lv_row = ls_position-to-row. lv_col_offset = ls_position-to-col_offset. lv_row_offset = ls_position-to-row_offset. CONDENSE lv_col NO-GAPS. CONDENSE lv_row NO-GAPS. CONDENSE lv_col_offset NO-GAPS. CONDENSE lv_row_offset NO-GAPS. lo_element = io_document->create_simple_element( name = lc_xml_node_col parent = io_document ). lo_element->set_value( value = lv_col ). lo_element_to->append_child( new_child = lo_element ). lo_element = io_document->create_simple_element( name = lc_xml_node_coloff parent = io_document ). lo_element->set_value( value = lv_col_offset ). lo_element_to->append_child( new_child = lo_element ). lo_element = io_document->create_simple_element( name = lc_xml_node_row parent = io_document ). lo_element->set_value( value = lv_row ). lo_element_to->append_child( new_child = lo_element ). lo_element = io_document->create_simple_element( name = lc_xml_node_rowoff parent = io_document ). lo_element->set_value( value = lv_row_offset ). lo_element_to->append_child( new_child = lo_element ). ep_anchor->append_child( new_child = lo_element_to ). ENDIF. CASE io_drawing->get_type( ). WHEN zcl_excel_drawing=>type_image. * pic ********************************** lo_element_pic = io_document->create_simple_element( name = lc_xml_node_pic parent = io_document ). * nvPicPr lo_element = io_document->create_simple_element( name = lc_xml_node_nvpicpr parent = io_document ). * cNvPr lo_element2 = io_document->create_simple_element( name = lc_xml_node_cnvpr parent = io_document ). lv_value = sy-index. CONDENSE lv_value. lo_element2->set_attribute_ns( name = 'id' value = lv_value ). lo_element2->set_attribute_ns( name = 'name' value = io_drawing->title ). lo_element->append_child( new_child = lo_element2 ). * cNvPicPr lo_element2 = io_document->create_simple_element( name = lc_xml_node_cnvpicpr parent = io_document ). * picLocks lo_element3 = io_document->create_simple_element( name = lc_xml_node_piclocks parent = io_document ). lo_element3->set_attribute_ns( name = 'noChangeAspect' value = '1' ). lo_element2->append_child( new_child = lo_element3 ). lo_element->append_child( new_child = lo_element2 ). lo_element_pic->append_child( new_child = lo_element ). * blipFill lv_value = ip_index. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO lv_value. lo_element = io_document->create_simple_element( name = lc_xml_node_blipfill parent = io_document ). lo_element2 = io_document->create_simple_element( name = lc_xml_node_ablip parent = io_document ). lo_element2->set_attribute_ns( name = 'xmlns:r' value = lc_xml_node_ns_r ). lo_element2->set_attribute_ns( name = 'r:embed' value = lv_value ). lo_element->append_child( new_child = lo_element2 ). lo_element2 = io_document->create_simple_element( name = lc_xml_node_astretch parent = io_document ). lo_element->append_child( new_child = lo_element2 ). lo_element_pic->append_child( new_child = lo_element ). * spPr lo_element = io_document->create_simple_element( name = lc_xml_node_sppr parent = io_document ). lo_element2 = io_document->create_simple_element( name = lc_xml_node_apgeom parent = io_document ). lo_element2->set_attribute_ns( name = 'prst' value = 'rect' ). lo_element3 = io_document->create_simple_element( name = lc_xml_node_aavlst parent = io_document ). lo_element2->append_child( new_child = lo_element3 ). lo_element->append_child( new_child = lo_element2 ). lo_element_pic->append_child( new_child = lo_element ). ep_anchor->append_child( new_child = lo_element_pic ). WHEN zcl_excel_drawing=>type_chart. * graphicFrame ********************************** lo_element_graphicframe = io_document->create_simple_element( name = lc_xml_node_graphicframe parent = io_document ). * nvGraphicFramePr lo_element = io_document->create_simple_element( name = lc_xml_node_nvgraphicframepr parent = io_document ). * cNvPr lo_element2 = io_document->create_simple_element( name = lc_xml_node_cnvpr parent = io_document ). lv_value = sy-index. CONDENSE lv_value. lo_element2->set_attribute_ns( name = 'id' value = lv_value ). lo_element2->set_attribute_ns( name = 'name' value = io_drawing->title ). lo_element->append_child( new_child = lo_element2 ). * cNvGraphicFramePr lo_element2 = io_document->create_simple_element( name = lc_xml_node_cnvgraphicframepr parent = io_document ). lo_element3 = io_document->create_simple_element( name = lc_xml_node_graphicframelocks parent = io_document ). lo_element2->append_child( new_child = lo_element3 ). lo_element->append_child( new_child = lo_element2 ). lo_element_graphicframe->append_child( new_child = lo_element ). * xfrm lo_element = io_document->create_simple_element( name = lc_xml_node_xfrm parent = io_document ). * off lo_element2 = io_document->create_simple_element( name = lc_xml_node_aoff parent = io_document ). lo_element2->set_attribute_ns( name = 'y' value = '0' ). lo_element2->set_attribute_ns( name = 'x' value = '0' ). lo_element->append_child( new_child = lo_element2 ). * ext lo_element2 = io_document->create_simple_element( name = lc_xml_node_aext parent = io_document ). lo_element2->set_attribute_ns( name = 'cy' value = '0' ). lo_element2->set_attribute_ns( name = 'cx' value = '0' ). lo_element->append_child( new_child = lo_element2 ). lo_element_graphicframe->append_child( new_child = lo_element ). * graphic lo_element = io_document->create_simple_element( name = lc_xml_node_agraphic parent = io_document ). * graphicData lo_element2 = io_document->create_simple_element( name = lc_xml_node_agraphicdata parent = io_document ). lo_element2->set_attribute_ns( name = 'uri' value = lc_xml_node_ns_c ). * chart lo_element3 = io_document->create_simple_element( name = lc_xml_node_cchart parent = io_document ). lo_element3->set_attribute_ns( name = 'xmlns:r' value = lc_xml_node_ns_r ). lo_element3->set_attribute_ns( name = 'xmlns:c' value = lc_xml_node_ns_c ). lv_value = ip_index. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO lv_value. lo_element3->set_attribute_ns( name = 'r:id' value = lv_value ). lo_element2->append_child( new_child = lo_element3 ). lo_element->append_child( new_child = lo_element2 ). lo_element_graphicframe->append_child( new_child = lo_element ). ep_anchor->append_child( new_child = lo_element_graphicframe ). ENDCASE. * client data *************************** lo_element_clientdata = io_document->create_simple_element( name = lc_xml_node_clientdata parent = io_document ). ep_anchor->append_child( new_child = lo_element_clientdata ). endmethod. method CREATE_XL_RELATIONSHIPS. ** Constant node name DATA: lc_xml_node_relationships TYPE string VALUE 'Relationships', lc_xml_node_relationship TYPE string VALUE 'Relationship', " Node attributes lc_xml_attr_id TYPE string VALUE 'Id', lc_xml_attr_type TYPE string VALUE 'Type', lc_xml_attr_target TYPE string VALUE 'Target', " Node namespace lc_xml_node_rels_ns TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships', " Node id lc_xml_node_ridx_id TYPE string VALUE 'rId#', " Node type lc_xml_node_rid_sheet_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet', lc_xml_node_rid_theme_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme', lc_xml_node_rid_styles_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles', lc_xml_node_rid_shared_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings', " Node target lc_xml_node_ridx_tg TYPE string VALUE 'worksheets/sheet#.xml', lc_xml_node_rid_shared_tg TYPE string VALUE 'sharedStrings.xml', lc_xml_node_rid_styles_tg TYPE string VALUE 'styles.xml', lc_xml_node_rid_theme_tg TYPE string VALUE 'theme/theme1.xml'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer. DATA: lv_xml_node_ridx_tg TYPE string, lv_xml_node_ridx_id TYPE string, lv_size TYPE i, lv_syindex TYPE string. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). ********************************************************************** * STEP 3: Create main node relationships lo_element_root = lo_document->create_simple_element( name = lc_xml_node_relationships parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_rels_ns ). ********************************************************************** * STEP 4: Create subnodes lv_size = excel->get_worksheets_size( ). " Relationship node lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). lv_size = lv_size + 1. lv_syindex = lv_size. shift lv_syindex RIGHT DELETING TRAILING space. shift lv_syindex left DELETING leading space. lv_xml_node_ridx_id = lc_xml_node_ridx_id. replace all occurrences of '#' in lv_xml_node_ridx_id with lv_syindex. lo_element->set_attribute_ns( name = lc_xml_attr_id value = lv_xml_node_ridx_id ). lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rid_theme_tp ). lo_element->set_attribute_ns( name = lc_xml_attr_target value = lc_xml_node_rid_theme_tg ). lo_element_root->append_child( new_child = lo_element ). " Relationship node lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). lv_size = lv_size + 1. lv_syindex = lv_size. SHIFT lv_syindex RIGHT DELETING TRAILING space. SHIFT lv_syindex LEFT DELETING LEADING space. lv_xml_node_ridx_id = lc_xml_node_ridx_id. REPLACE ALL OCCURRENCES OF '#' IN lv_xml_node_ridx_id WITH lv_syindex. lo_element->set_attribute_ns( name = lc_xml_attr_id value = lv_xml_node_ridx_id ). lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rid_styles_tp ). lo_element->set_attribute_ns( name = lc_xml_attr_target value = lc_xml_node_rid_styles_tg ). lo_element_root->append_child( new_child = lo_element ). lv_size = excel->get_worksheets_size( ). DO lv_size TIMES. " Relationship node lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). lv_xml_node_ridx_id = lc_xml_node_ridx_id. lv_xml_node_ridx_tg = lc_xml_node_ridx_tg. lv_syindex = sy-index. SHIFT lv_syindex RIGHT DELETING TRAILING space. SHIFT lv_syindex LEFT DELETING LEADING space. REPLACE ALL OCCURRENCES OF '#' IN lv_xml_node_ridx_id WITH lv_syindex. REPLACE ALL OCCURRENCES OF '#' IN lv_xml_node_ridx_tg WITH lv_syindex. lo_element->set_attribute_ns( name = lc_xml_attr_id value = lv_xml_node_ridx_id ). lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rid_sheet_tp ). lo_element->set_attribute_ns( name = lc_xml_attr_target value = lv_xml_node_ridx_tg ). lo_element_root->append_child( new_child = lo_element ). ENDDO. " Relationship node lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). ADD 3 TO lv_size. lv_syindex = lv_size. SHIFT lv_syindex RIGHT DELETING TRAILING space. SHIFT lv_syindex LEFT DELETING LEADING space. lv_xml_node_ridx_id = lc_xml_node_ridx_id. REPLACE ALL OCCURRENCES OF '#' IN lv_xml_node_ridx_id WITH lv_syindex. lo_element->set_attribute_ns( name = lc_xml_attr_id value = lv_xml_node_ridx_id ). lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rid_shared_tp ). lo_element->set_attribute_ns( name = lc_xml_attr_target value = lc_xml_node_rid_shared_tg ). lo_element_root->append_child( new_child = lo_element ). ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). endmethod. METHOD create_xl_sharedstrings. ** Constant node name DATA: lc_xml_node_sst TYPE string VALUE 'sst', lc_xml_node_si TYPE string VALUE 'si', lc_xml_node_t TYPE string VALUE 't', " Node attributes lc_xml_attr_count TYPE string VALUE 'count', lc_xml_attr_uniquecount TYPE string VALUE 'uniqueCount', " Node namespace lc_xml_node_ns TYPE string VALUE 'http://schemas.openxmlformats.org/spreadsheetml/2006/main'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_sub_element TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_worksheet TYPE REF TO zcl_excel_worksheet. DATA: lt_cell_data TYPE zexcel_t_cell_data_unsorted, ls_shared_string TYPE zexcel_s_shared_string, lv_count_str TYPE string, lv_uniquecount_str TYPE string, lv_sytabix TYPE sytabix, lv_count TYPE i, lv_uniquecount TYPE i. FIELD-SYMBOLS: <fs_sheet_content> TYPE zexcel_s_cell_data, <fs_sheet_string> TYPE zexcel_s_shared_string. ********************************************************************** * STEP 1: Collect strings from each worksheet lo_iterator = excel->get_worksheets_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_worksheet ?= lo_iterator->if_object_collection_iterator~get_next( ). APPEND LINES OF lo_worksheet->sheet_content TO lt_cell_data. ENDWHILE. DELETE lt_cell_data WHERE cell_formula IS NOT INITIAL. " delete formula content DESCRIBE TABLE lt_cell_data LINES lv_count. MOVE lv_count TO lv_count_str. SHIFT lv_count_str RIGHT DELETING TRAILING space. SHIFT lv_count_str LEFT DELETING LEADING space. SORT lt_cell_data BY cell_value data_type. DELETE ADJACENT DUPLICATES FROM lt_cell_data COMPARING cell_value data_type. DESCRIBE TABLE lt_cell_data LINES lv_uniquecount. MOVE lv_uniquecount TO lv_uniquecount_str. SHIFT lv_uniquecount_str RIGHT DELETING TRAILING space. SHIFT lv_uniquecount_str LEFT DELETING LEADING space. clear lv_count. LOOP AT lt_cell_data ASSIGNING <fs_sheet_content> where data_type = 's'. * lv_sytabix = sy-tabix - 1. lv_sytabix = lv_count. MOVE lv_sytabix TO ls_shared_string-string_no. MOVE <fs_sheet_content>-cell_value TO ls_shared_string-string_value. MOVE <fs_sheet_content>-data_type TO ls_shared_string-string_type. APPEND ls_shared_string TO shared_strings. add 1 to lv_count. ENDLOOP. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). ********************************************************************** * STEP 3: Create main node lo_element_root = lo_document->create_simple_element( name = lc_xml_node_sst parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_ns ). lo_element_root->set_attribute_ns( name = lc_xml_attr_count value = lv_count_str ). lo_element_root->set_attribute_ns( name = lc_xml_attr_uniquecount value = lv_uniquecount_str ). ********************************************************************** * STEP 4: Create subnode LOOP AT shared_strings ASSIGNING <fs_sheet_string>. lo_element = lo_document->create_simple_element( name = lc_xml_node_si parent = lo_document ). lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_t parent = lo_document ). * if <fs_sheet_string>-string_type EQ 's_leading_blanks'. IF <fs_sheet_string>-string_value IS NOT INITIAL AND <fs_sheet_string>-string_value(1) EQ ` `. lo_sub_element->set_attribute( name = 'space' namespace = 'xml' value = 'preserve' ). ENDIF. lo_sub_element->set_value( value = <fs_sheet_string>-string_value ). lo_element->append_child( new_child = lo_sub_element ). lo_element_root->append_child( new_child = lo_element ). ENDLOOP. ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). ENDMETHOD. METHOD create_xl_sheet. *--------------------------------------------------------------------* * issue #330 - Adding ColorScale conditional formatting * - Ivan Femia, 2014-08-25 *--------------------------------------------------------------------* TYPES: BEGIN OF colors, colorrgb TYPE zexcel_color, END OF colors. *--------------------------------------------------------------------* * issue #237 - Error writing column-style * - Stefan Schmoecker, 2012-11-01 *--------------------------------------------------------------------* TYPES: BEGIN OF cfvo, value TYPE zexcel_conditional_value, type TYPE zexcel_conditional_type, END OF cfvo. *--------------------------------------------------------------------* * issue #220 - If cell in tables-area don't use default from row or column or sheet - Declarations 1 - start *--------------------------------------------------------------------* TYPES: BEGIN OF lty_table_area, left TYPE i, right TYPE i, top TYPE i, bottom TYPE i, END OF lty_table_area. *--------------------------------------------------------------------* * issue #220 - If cell in tables-area don't use default from row or column or sheet - Declarations 1 - end *--------------------------------------------------------------------* ** Constant node name DATA: lc_xml_node_worksheet TYPE string VALUE 'worksheet', lc_xml_node_sheetpr TYPE string VALUE 'sheetPr', lc_xml_node_tabcolor TYPE string VALUE 'tabColor', lc_xml_node_outlinepr TYPE string VALUE 'outlinePr', lc_xml_node_dimension TYPE string VALUE 'dimension', lc_xml_node_sheetviews TYPE string VALUE 'sheetViews', lc_xml_node_sheetview TYPE string VALUE 'sheetView', lc_xml_node_selection TYPE string VALUE 'selection', lc_xml_node_pane TYPE string VALUE 'pane', lc_xml_node_sheetformatpr TYPE string VALUE 'sheetFormatPr', lc_xml_node_cols TYPE string VALUE 'cols', lc_xml_node_col TYPE string VALUE 'col', lc_xml_node_sheetprotection TYPE string VALUE 'sheetProtection', lc_xml_node_pagemargins TYPE string VALUE 'pageMargins', lc_xml_node_pagesetup TYPE string VALUE 'pageSetup', lc_xml_node_pagesetuppr TYPE string VALUE 'pageSetUpPr', lc_xml_node_condformatting TYPE string VALUE 'conditionalFormatting', lc_xml_node_cfrule TYPE string VALUE 'cfRule', lc_xml_node_color TYPE string VALUE 'color', " Databar by Albert Lladanosa lc_xml_node_databar TYPE string VALUE 'dataBar', " Databar by Albert Lladanosa lc_xml_node_colorscale TYPE string VALUE 'colorScale', lc_xml_node_iconset TYPE string VALUE 'iconSet', lc_xml_node_cfvo TYPE string VALUE 'cfvo', lc_xml_node_formula TYPE string VALUE 'formula', lc_xml_node_datavalidations TYPE string VALUE 'dataValidations', lc_xml_node_datavalidation TYPE string VALUE 'dataValidation', lc_xml_node_formula1 TYPE string VALUE 'formula1', lc_xml_node_formula2 TYPE string VALUE 'formula2', lc_xml_node_mergecell TYPE string VALUE 'mergeCell', lc_xml_node_mergecells TYPE string VALUE 'mergeCells', lc_xml_node_drawing TYPE string VALUE 'drawing', lc_xml_node_headerfooter TYPE string VALUE 'headerFooter', lc_xml_node_oddheader TYPE string VALUE 'oddHeader', lc_xml_node_oddfooter TYPE string VALUE 'oddFooter', lc_xml_node_evenheader TYPE string VALUE 'evenHeader', lc_xml_node_evenfooter TYPE string VALUE 'evenFooter', lc_xml_node_autofilter TYPE string VALUE 'autoFilter', lc_xml_node_filtercolumn TYPE string VALUE 'filterColumn', lc_xml_node_filters TYPE string VALUE 'filters', lc_xml_node_filter TYPE string VALUE 'filter', " Node attributes lc_xml_attr_ref TYPE string VALUE 'ref', lc_xml_attr_summarybelow TYPE string VALUE 'summaryBelow', lc_xml_attr_summaryright TYPE string VALUE 'summaryRight', lc_xml_attr_tabselected TYPE string VALUE 'tabSelected', lc_xml_attr_showzeros TYPE string VALUE 'showZeros', lc_xml_attr_zoomscale TYPE string VALUE 'zoomScale', lc_xml_attr_zoomscalenormal TYPE string VALUE 'zoomScaleNormal', lc_xml_attr_zoomscalepageview TYPE string VALUE 'zoomScalePageLayoutView', lc_xml_attr_zoomscalesheetview TYPE string VALUE 'zoomScaleSheetLayoutView', lc_xml_attr_workbookviewid TYPE string VALUE 'workbookViewId', lc_xml_attr_showgridlines TYPE string VALUE 'showGridLines', lc_xml_attr_gridlines TYPE string VALUE 'gridLines', lc_xml_attr_showrowcolheaders TYPE string VALUE 'showRowColHeaders', lc_xml_attr_activecell TYPE string VALUE 'activeCell', lc_xml_attr_sqref TYPE string VALUE 'sqref', lc_xml_attr_min TYPE string VALUE 'min', lc_xml_attr_max TYPE string VALUE 'max', lc_xml_attr_hidden TYPE string VALUE 'hidden', lc_xml_attr_width TYPE string VALUE 'width', lc_xml_attr_defaultwidth TYPE string VALUE '9.10', lc_xml_attr_style TYPE string VALUE 'style', lc_xml_attr_true TYPE string VALUE 'true', lc_xml_attr_bestfit TYPE string VALUE 'bestFit', lc_xml_attr_customheight TYPE string VALUE 'customHeight', lc_xml_attr_customwidth TYPE string VALUE 'customWidth', lc_xml_attr_collapsed TYPE string VALUE 'collapsed', lc_xml_attr_defaultrowheight TYPE string VALUE 'defaultRowHeight', lc_xml_attr_defaultcolwidth TYPE string VALUE 'defaultColWidth', lc_xml_attr_outlinelevelrow TYPE string VALUE 'x14ac:outlineLevelRow', lc_xml_attr_outlinelevelcol TYPE string VALUE 'x14ac:outlineLevelCol', lc_xml_attr_outlinelevel TYPE string VALUE 'outlineLevel', lc_xml_attr_password TYPE string VALUE 'password', lc_xml_attr_sheet TYPE string VALUE 'sheet', lc_xml_attr_objects TYPE string VALUE 'objects', lc_xml_attr_scenarios TYPE string VALUE 'scenarios', lc_xml_attr_autofilter TYPE string VALUE 'autoFilter', lc_xml_attr_deletecolumns TYPE string VALUE 'deleteColumns', lc_xml_attr_deleterows TYPE string VALUE 'deleteRows', lc_xml_attr_formatcells TYPE string VALUE 'formatCells', lc_xml_attr_formatcolumns TYPE string VALUE 'formatColumns', lc_xml_attr_formatrows TYPE string VALUE 'formatRows', lc_xml_attr_insertcolumns TYPE string VALUE 'insertColumns', lc_xml_attr_inserthyperlinks TYPE string VALUE 'insertHyperlinks', lc_xml_attr_insertrows TYPE string VALUE 'insertRows', lc_xml_attr_pivottables TYPE string VALUE 'pivotTables', lc_xml_attr_selectlockedcells TYPE string VALUE 'selectLockedCells', lc_xml_attr_selectunlockedcell TYPE string VALUE 'selectUnlockedCells', lc_xml_attr_sort TYPE string VALUE 'sort', lc_xml_attr_left TYPE string VALUE 'left', lc_xml_attr_right TYPE string VALUE 'right', lc_xml_attr_top TYPE string VALUE 'top', lc_xml_attr_bottom TYPE string VALUE 'bottom', lc_xml_attr_header TYPE string VALUE 'header', lc_xml_attr_footer TYPE string VALUE 'footer', lc_xml_attr_type TYPE string VALUE 'type', lc_xml_attr_iconset TYPE string VALUE 'iconSet', lc_xml_attr_showvalue TYPE string VALUE 'showValue', lc_xml_attr_val TYPE string VALUE 'val', lc_xml_attr_dxfid TYPE string VALUE 'dxfId', lc_xml_attr_priority TYPE string VALUE 'priority', lc_xml_attr_operator TYPE string VALUE 'operator', lc_xml_attr_allowblank TYPE string VALUE 'allowBlank', lc_xml_attr_showinputmessage TYPE string VALUE 'showInputMessage', lc_xml_attr_showerrormessage TYPE string VALUE 'showErrorMessage', lc_xml_attr_showdropdown TYPE string VALUE 'showDropDown', lc_xml_attr_errortitle TYPE string VALUE 'errorTitle', lc_xml_attr_error TYPE string VALUE 'error', lc_xml_attr_prompttitle TYPE string VALUE 'promptTitle', lc_xml_attr_prompt TYPE string VALUE 'prompt', lc_xml_attr_count TYPE string VALUE 'count', lc_xml_attr_blackandwhite TYPE string VALUE 'blackAndWhite', lc_xml_attr_cellcomments TYPE string VALUE 'cellComments', lc_xml_attr_copies TYPE string VALUE 'copies', lc_xml_attr_draft TYPE string VALUE 'draft', lc_xml_attr_errors TYPE string VALUE 'errors', lc_xml_attr_firstpagenumber TYPE string VALUE 'firstPageNumber', lc_xml_attr_fittopage TYPE string VALUE 'fitToPage', lc_xml_attr_fittoheight TYPE string VALUE 'fitToHeight', lc_xml_attr_fittowidth TYPE string VALUE 'fitToWidth', lc_xml_attr_horizontaldpi TYPE string VALUE 'horizontalDpi', lc_xml_attr_orientation TYPE string VALUE 'orientation', lc_xml_attr_pageorder TYPE string VALUE 'pageOrder', lc_xml_attr_paperheight TYPE string VALUE 'paperHeight', lc_xml_attr_papersize TYPE string VALUE 'paperSize', lc_xml_attr_paperwidth TYPE string VALUE 'paperWidth', lc_xml_attr_scale TYPE string VALUE 'scale', lc_xml_attr_usefirstpagenumber TYPE string VALUE 'useFirstPageNumber', lc_xml_attr_useprinterdefaults TYPE string VALUE 'usePrinterDefaults', lc_xml_attr_verticaldpi TYPE string VALUE 'verticalDpi', lc_xml_attr_differentoddeven TYPE string VALUE 'differentOddEven', lc_xml_attr_colid TYPE string VALUE 'colId', lc_xml_attr_filtermode TYPE string VALUE 'filterMode', lc_xml_attr_tabcolor_rgb TYPE string VALUE 'rgb', " Node namespace lc_xml_node_ns TYPE string VALUE 'http://schemas.openxmlformats.org/spreadsheetml/2006/main', lc_xml_node_r_ns TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships', lc_xml_node_comp_ns TYPE string VALUE 'http://schemas.openxmlformats.org/markup-compatibility/2006', lc_xml_node_comp_pref TYPE string VALUE 'x14ac', lc_xml_node_ig_ns TYPE string VALUE 'http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_element_2 TYPE REF TO if_ixml_element, lo_element_3 TYPE REF TO if_ixml_element, lo_element_4 TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_style_cond TYPE REF TO zcl_excel_style_cond, lo_data_validation TYPE REF TO zcl_excel_data_validation, lo_table TYPE REF TO zcl_excel_table, lo_column_default TYPE REF TO zcl_excel_column, lo_row_default TYPE REF TO zcl_excel_row. DATA: lv_value TYPE string, lt_range_merge TYPE string_table, lv_column TYPE zexcel_cell_column, lv_style_guid TYPE zexcel_cell_style, ls_databar TYPE zexcel_conditional_databar, " Databar by Albert Lladanosa ls_colorscale TYPE zexcel_conditional_colorscale, ls_iconset TYPE zexcel_conditional_iconset, ls_cellis TYPE zexcel_conditional_cellis, ls_expression TYPE zexcel_conditional_expression, ls_conditional_top10 TYPE zexcel_conditional_top10, ls_conditional_above_avg TYPE zexcel_conditional_above_avg, lt_cfvo TYPE TABLE OF cfvo, ls_cfvo TYPE cfvo, lt_colors TYPE TABLE OF colors, ls_colors TYPE colors, lv_cell_row_s TYPE string, ls_style_mapping TYPE zexcel_s_styles_mapping, lv_freeze_cell_row TYPE zexcel_cell_row, lv_freeze_cell_column TYPE zexcel_cell_column, lv_freeze_cell_column_alpha TYPE zexcel_cell_column_alpha, lo_column_iterator TYPE REF TO cl_object_collection_iterator, lo_column TYPE REF TO zcl_excel_column, lo_row_iterator TYPE REF TO cl_object_collection_iterator, ls_style_cond_mapping TYPE zexcel_s_styles_cond_mapping, lv_relation_id TYPE i VALUE 0, outline_level_col TYPE i VALUE 0, lts_row_outlines TYPE zcl_excel_worksheet=>mty_ts_outlines_row, merge_count TYPE int4, lt_values TYPE zexcel_t_autofilter_values, ls_values TYPE zexcel_s_autofilter_values, lo_autofilters TYPE REF TO zcl_excel_autofilters, lo_autofilter TYPE REF TO zcl_excel_autofilter, lv_ref TYPE string. FIELD-SYMBOLS: <ls_sheet_content> TYPE zexcel_s_cell_data, <fs_range_merge> LIKE LINE OF lt_range_merge, <ls_row_outline> LIKE LINE OF lts_row_outlines. *--------------------------------------------------------------------* * issue #220 - If cell in tables-area don't use default from row or column or sheet - Declarations 2 - start *--------------------------------------------------------------------* DATA: lt_table_areas TYPE SORTED TABLE OF lty_table_area WITH NON-UNIQUE KEY left right top bottom. *--------------------------------------------------------------------* * issue #220 - If cell in tables-area don't use default from row or column or sheet - Declarations 2 - end *--------------------------------------------------------------------* ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). *********************************************************************** * STEP 3: Create main node relationships lo_element_root = lo_document->create_simple_element( name = lc_xml_node_worksheet parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_ns ). lo_element_root->set_attribute_ns( name = 'xmlns:r' value = lc_xml_node_r_ns ). lo_element_root->set_attribute_ns( name = 'xmlns:mc' value = lc_xml_node_comp_ns ). lo_element_root->set_attribute_ns( name = 'mc:Ignorable' value = lc_xml_node_comp_pref ). lo_element_root->set_attribute_ns( name = 'xmlns:x14ac' value = lc_xml_node_ig_ns ). ********************************************************************** * STEP 4: Create subnodes " sheetPr lo_element = lo_document->create_simple_element( name = lc_xml_node_sheetpr parent = lo_document ). " TODO tabColor IF io_worksheet->tabcolor IS NOT INITIAL. lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_tabcolor parent = lo_element ). * Theme not supported yet - start with RGB lv_value = io_worksheet->tabcolor-rgb. lo_element_2->set_attribute_ns( name = lc_xml_attr_tabcolor_rgb value = lv_value ). ENDIF. " outlinePr lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_outlinepr parent = lo_document ). lv_value = io_worksheet->zif_excel_sheet_properties~summarybelow. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_summarybelow value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_properties~summaryright. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_summaryright value = lv_value ). lo_element->append_child( new_child = lo_element_2 ). IF io_worksheet->sheet_setup->fit_to_page IS NOT INITIAL. lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_pagesetuppr parent = lo_document ). lo_element_2->set_attribute_ns( name = lc_xml_attr_fittopage value = `1` ). lo_element->append_child( new_child = lo_element_2 ). " pageSetupPr node ENDIF. lo_element_root->append_child( new_child = lo_element ). " dimension node lo_element = lo_document->create_simple_element( name = lc_xml_node_dimension parent = lo_document ). lv_value = io_worksheet->get_dimension_range( ). lo_element->set_attribute_ns( name = lc_xml_attr_ref value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " sheetViews node lo_element = lo_document->create_simple_element( name = lc_xml_node_sheetviews parent = lo_document ). " sheetView node lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_sheetview parent = lo_document ). IF io_worksheet->zif_excel_sheet_properties~show_zeros EQ abap_false. lo_element_2->set_attribute_ns( name = lc_xml_attr_showzeros value = '0' ). ENDIF. IF iv_active = abap_true OR io_worksheet->zif_excel_sheet_properties~selected EQ abap_true. lo_element_2->set_attribute_ns( name = lc_xml_attr_tabselected value = '1' ). ELSE. lo_element_2->set_attribute_ns( name = lc_xml_attr_tabselected value = '0' ). ENDIF. " Zoom scale IF io_worksheet->zif_excel_sheet_properties~zoomscale GT 400. io_worksheet->zif_excel_sheet_properties~zoomscale = 400. ELSEIF io_worksheet->zif_excel_sheet_properties~zoomscale LT 10. io_worksheet->zif_excel_sheet_properties~zoomscale = 10. ENDIF. lv_value = io_worksheet->zif_excel_sheet_properties~zoomscale. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_zoomscale value = lv_value ). IF io_worksheet->zif_excel_sheet_properties~zoomscale_normal NE 0. IF io_worksheet->zif_excel_sheet_properties~zoomscale_normal GT 400. io_worksheet->zif_excel_sheet_properties~zoomscale_normal = 400. ELSEIF io_worksheet->zif_excel_sheet_properties~zoomscale_normal LT 10. io_worksheet->zif_excel_sheet_properties~zoomscale_normal = 10. ENDIF. lv_value = io_worksheet->zif_excel_sheet_properties~zoomscale_normal. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_zoomscalenormal value = lv_value ). ENDIF. IF io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview NE 0. IF io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview GT 400. io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview = 400. ELSEIF io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview LT 10. io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview = 10. ENDIF. lv_value = io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_zoomscalepageview value = lv_value ). ENDIF. IF io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview NE 0. IF io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview GT 400. io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview = 400. ELSEIF io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview LT 10. io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview = 10. ENDIF. lv_value = io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_zoomscalesheetview value = lv_value ). ENDIF. lo_element_2->set_attribute_ns( name = lc_xml_attr_workbookviewid value = '0' ). " showGridLines attribute IF io_worksheet->show_gridlines = abap_true. lo_element_2->set_attribute_ns( name = lc_xml_attr_showgridlines value = '1' ). ELSE. lo_element_2->set_attribute_ns( name = lc_xml_attr_showgridlines value = '0' ). ENDIF. " showRowColHeaders attribute IF io_worksheet->show_rowcolheaders = abap_true. lo_element_2->set_attribute_ns( name = lc_xml_attr_showrowcolheaders value = '1' ). ELSE. lo_element_2->set_attribute_ns( name = lc_xml_attr_showrowcolheaders value = '0' ). ENDIF. " freeze panes io_worksheet->get_freeze_cell( IMPORTING ep_row = lv_freeze_cell_row ep_column = lv_freeze_cell_column ). IF lv_freeze_cell_row IS NOT INITIAL AND lv_freeze_cell_column IS NOT INITIAL. lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_pane parent = lo_element_2 ). IF lv_freeze_cell_row > 1. lv_value = lv_freeze_cell_row - 1. CONDENSE lv_value. lo_element_3->set_attribute_ns( name = 'ySplit' value = lv_value ). ENDIF. IF lv_freeze_cell_column > 1. lv_value = lv_freeze_cell_column - 1. CONDENSE lv_value. lo_element_3->set_attribute_ns( name = 'xSplit' value = lv_value ). ENDIF. lv_freeze_cell_column_alpha = zcl_excel_common=>convert_column2alpha( ip_column = lv_freeze_cell_column ). lv_value = zcl_excel_common=>number_to_excel_string( ip_value = lv_freeze_cell_row ). CONCATENATE lv_freeze_cell_column_alpha lv_value INTO lv_value. lo_element_3->set_attribute_ns( name = 'topLeftCell' value = lv_value ). lo_element_3->set_attribute_ns( name = 'activePane' value = 'bottomRight' ). lo_element_3->set_attribute_ns( name = 'state' value = 'frozen' ). lo_element_2->append_child( new_child = lo_element_3 ). ENDIF. " selection node lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_selection parent = lo_document ). lv_value = io_worksheet->get_active_cell( ). lo_element_3->set_attribute_ns( name = lc_xml_attr_activecell value = lv_value ). lo_element_3->set_attribute_ns( name = lc_xml_attr_sqref value = lv_value ). lo_element_2->append_child( new_child = lo_element_3 ). " sheetView node lo_element->append_child( new_child = lo_element_2 ). " sheetView node lo_element_root->append_child( new_child = lo_element ). " sheetViews node lo_column_iterator = io_worksheet->get_columns_iterator( ). lo_row_iterator = io_worksheet->get_rows_iterator( ). " Calculate col IF NOT lo_column_iterator IS BOUND. io_worksheet->calculate_column_widths( ). lo_column_iterator = io_worksheet->get_columns_iterator( ). ENDIF. " sheetFormatPr node lo_element = lo_document->create_simple_element( name = lc_xml_node_sheetformatpr parent = lo_document ). " defaultRowHeight lo_row_default = io_worksheet->get_default_row( ). IF lo_row_default IS BOUND. IF lo_row_default->get_row_height( ) >= 0. lo_element->set_attribute_ns( name = lc_xml_attr_customheight value = lc_xml_attr_true ). lv_value = lo_row_default->get_row_height( ). ELSE. lv_value = '12.75'. ENDIF. ELSE. lv_value = '12.75'. ENDIF. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_defaultrowheight value = lv_value ). " defaultColWidth lo_column_default = io_worksheet->get_default_column( ). IF lo_column_default IS BOUND AND lo_column_default->get_width( ) >= 0. lv_value = lo_column_default->get_width( ). SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_defaultcolwidth value = lv_value ). ENDIF. " outlineLevelCol WHILE lo_column_iterator->has_next( ) = abap_true. lo_column ?= lo_column_iterator->get_next( ). IF lo_column->get_outline_level( ) > outline_level_col. outline_level_col = lo_column->get_outline_level( ). ENDIF. ENDWHILE. lv_value = outline_level_col. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_outlinelevelcol value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " sheetFormatPr node * Reset column iterator lo_column_iterator = io_worksheet->get_columns_iterator( ). IF io_worksheet->zif_excel_sheet_properties~get_style( ) IS NOT INITIAL OR lo_column_iterator->has_next( ) = abap_true. " cols node lo_element = lo_document->create_simple_element( name = lc_xml_node_cols parent = lo_document ). " This code have to be enhanced in order to manage also column style properties " Now it is an out/out IF lo_column_iterator->has_next( ) = abap_true. WHILE lo_column_iterator->has_next( ) = abap_true. lo_column ?= lo_column_iterator->get_next( ). " col node lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_col parent = lo_document ). lv_value = lo_column->get_column_index( ). SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_2->set_attribute_ns( name = lc_xml_attr_min value = lv_value ). lo_element_2->set_attribute_ns( name = lc_xml_attr_max value = lv_value ). " Width IF lo_column->get_width( ) < 0. lo_element_2->set_attribute_ns( name = lc_xml_attr_width value = lc_xml_attr_defaultwidth ). ELSE. lv_value = lo_column->get_width( ). lo_element_2->set_attribute_ns( name = lc_xml_attr_width value = lv_value ). ENDIF. " Column visibility IF lo_column->get_visible( ) = abap_false. lo_element_2->set_attribute_ns( name = lc_xml_attr_hidden value = lc_xml_attr_true ). ENDIF. " Auto size? IF lo_column->get_auto_size( ) = abap_true. lo_element_2->set_attribute_ns( name = lc_xml_attr_bestfit value = lc_xml_attr_true ). ENDIF. " Custom width? IF lo_column_default IS BOUND. IF lo_column->get_width( ) <> lo_column_default->get_width( ). lo_element_2->set_attribute_ns( name = lc_xml_attr_customwidth value = lc_xml_attr_true ). ENDIF. ELSE. lo_element_2->set_attribute_ns( name = lc_xml_attr_customwidth value = lc_xml_attr_true ). ENDIF. " Collapsed IF lo_column->get_collapsed( ) = abap_true. lo_element_2->set_attribute_ns( name = lc_xml_attr_collapsed value = lc_xml_attr_true ). ENDIF. " outlineLevel IF lo_column->get_outline_level( ) > 0. lv_value = lo_column->get_outline_level( ). SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_2->set_attribute_ns( name = lc_xml_attr_outlinelevel value = lv_value ). ENDIF. " Style lv_style_guid = lo_column->get_column_style_guid( ). "ins issue #157 - set column style CLEAR ls_style_mapping. READ TABLE styles_mapping INTO ls_style_mapping WITH KEY guid = lv_style_guid. IF sy-subrc = 0. "ins issue #295 lv_value = ls_style_mapping-style. "ins issue #295 SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_2->set_attribute_ns( name = lc_xml_attr_style value = lv_value ). ENDIF. "ins issue #237 lo_element->append_child( new_child = lo_element_2 ). " col node ENDWHILE. * ELSE. "del issue #157 - set sheet style ( add missing columns * IF io_worksheet->zif_excel_sheet_properties~get_style( ) IS NOT INITIAL. "del issue #157 - set sheet style ( add missing columns * Begin of insertion issue #157 - set sheet style ( add missing columns ENDIF. * Always pass through this coding IF io_worksheet->zif_excel_sheet_properties~get_style( ) IS NOT INITIAL. DATA: lts_sorted_columns TYPE SORTED TABLE OF zexcel_cell_column WITH UNIQUE KEY table_line. TYPES: BEGIN OF ty_missing_columns, first_column TYPE zexcel_cell_column, last_column TYPE zexcel_cell_column, END OF ty_missing_columns. DATA: t_missing_columns TYPE STANDARD TABLE OF ty_missing_columns WITH NON-UNIQUE DEFAULT KEY, missing_column LIKE LINE OF t_missing_columns. * First collect columns that were already handled before. The rest has to be inserted now lo_column_iterator = io_worksheet->get_columns_iterator( ). WHILE lo_column_iterator->has_next( ) = abap_true. lo_column ?= lo_column_iterator->get_next( ). lv_column = zcl_excel_common=>convert_column2int( lo_column->get_column_index( ) ). INSERT lv_column INTO TABLE lts_sorted_columns. ENDWHILE. * Now find all columns that were missing so far missing_column-first_column = 1. LOOP AT lts_sorted_columns INTO lv_column. IF lv_column > missing_column-first_column. missing_column-last_column = lv_column - 1. APPEND missing_column TO t_missing_columns. ENDIF. missing_column-first_column = lv_column + 1. ENDLOOP. missing_column-last_column = zcl_excel_common=>c_excel_sheet_max_col. APPEND missing_column TO t_missing_columns. * Now apply stylesetting ( and other defaults - I copy it from above. Whoever programmed that seems to know what to do :o) LOOP AT t_missing_columns INTO missing_column. * End of insertion issue #157 - set column style lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_col parent = lo_document ). * lv_value = zcl_excel_common=>c_excel_sheet_min_col."del issue #157 - set sheet style ( add missing columns lv_value = missing_column-first_column. "ins issue #157 - set sheet style ( add missing columns CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_min value = lv_value ). * lv_value = zcl_excel_common=>c_excel_sheet_max_col."del issue #157 - set sheet style ( add missing columns lv_value = missing_column-last_column. "ins issue #157 - set sheet style ( add missing columns CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_max value = lv_value ). lo_element_2->set_attribute_ns( name = lc_xml_attr_width value = lc_xml_attr_defaultwidth ). lv_style_guid = io_worksheet->zif_excel_sheet_properties~get_style( ). READ TABLE styles_mapping INTO ls_style_mapping WITH KEY guid = lv_style_guid. lv_value = ls_style_mapping-style. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_style value = lv_value ). lo_element->append_child( new_child = lo_element_2 ). " col node ENDLOOP. "ins issue #157 - set sheet style ( add missing columns ENDIF. *--------------------------------------------------------------------* * issue #367 add feature hide columns from *--------------------------------------------------------------------* IF io_worksheet->zif_excel_sheet_properties~hide_columns_from IS NOT INITIAL. lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_col parent = lo_document ). lv_value = zcl_excel_common=>convert_column2int( io_worksheet->zif_excel_sheet_properties~hide_columns_from ). CONDENSE lv_value NO-GAPS. lo_element_2->set_attribute_ns( name = lc_xml_attr_min value = lv_value ). lo_element_2->set_attribute_ns( name = lc_xml_attr_max value = '16384' ). lo_element_2->set_attribute_ns( name = lc_xml_attr_hidden value = '1' ). lo_element->append_child( new_child = lo_element_2 ). " col node ENDIF. lo_element_root->append_child( new_child = lo_element ). " cols node ENDIF. *--------------------------------------------------------------------* * Sheet content - use own method to create this *--------------------------------------------------------------------* lo_element = create_xl_sheet_sheet_data( io_worksheet = io_worksheet io_document = lo_document ) . lo_autofilters = excel->get_autofilters_reference( ). lo_autofilter = lo_autofilters->get( io_worksheet = io_worksheet ) . lo_element_root->append_child( new_child = lo_element ). " sheetData node IF lo_autofilter IS BOUND. * Create node autofilter lo_element = lo_document->create_simple_element( name = lc_xml_node_autofilter parent = lo_document ). lv_ref = lo_autofilter->get_filter_range( ) . CONDENSE lv_ref NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_ref value = lv_ref ). lt_values = lo_autofilter->get_values( ) . IF lt_values IS NOT INITIAL. * If we filter we need to set the filter mode to 1. lo_element_2 = lo_document->find_from_name( name = lc_xml_node_sheetpr ). lo_element_2->set_attribute_ns( name = lc_xml_attr_filtermode value = '1' ). * Create node filtercolumn CLEAR lv_column. LOOP AT lt_values INTO ls_values. IF ls_values-column <> lv_column. IF lv_column IS NOT INITIAL. lo_element_2->append_child( new_child = lo_element_3 ). lo_element->append_child( new_child = lo_element_2 ). ENDIF. lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_filtercolumn parent = lo_element ). lv_column = ls_values-column - lo_autofilter->filter_area-col_start. lv_value = lv_column. CONDENSE lv_value NO-GAPS. lo_element_2->set_attribute_ns( name = lc_xml_attr_colid value = lv_value ). lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_filters parent = lo_element_2 ). lv_column = ls_values-column. ENDIF. lo_element_4 = lo_document->create_simple_element( name = lc_xml_node_filter parent = lo_element_3 ). lo_element_4->set_attribute_ns( name = lc_xml_attr_val value = ls_values-value ). lo_element_3->append_child( new_child = lo_element_4 ). " value node ENDLOOP. lo_element_2->append_child( new_child = lo_element_3 ). lo_element->append_child( new_child = lo_element_2 ). ENDIF. lo_element_root->append_child( new_child = lo_element ). ENDIF. IF io_worksheet->zif_excel_sheet_protection~protected EQ abap_true. " sheetProtection node lo_element = lo_document->create_simple_element( name = lc_xml_node_sheetprotection parent = lo_document ). MOVE io_worksheet->zif_excel_sheet_protection~password TO lv_value. IF lv_value IS NOT INITIAL. lo_element->set_attribute_ns( name = lc_xml_attr_password value = lv_value ). ENDIF. lv_value = io_worksheet->zif_excel_sheet_protection~auto_filter. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_autofilter value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~delete_columns. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_deletecolumns value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~delete_rows. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_deleterows value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~format_cells. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_formatcells value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~format_columns. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_formatcolumns value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~format_rows. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_formatrows value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~insert_columns. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_insertcolumns value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~insert_hyperlinks. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_inserthyperlinks value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~insert_rows. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_insertrows value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~objects. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_objects value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~pivot_tables. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_pivottables value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~scenarios. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_scenarios value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~select_locked_cells. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_selectlockedcells value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~select_unlocked_cells. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_selectunlockedcell value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~sheet. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_sheet value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~sort. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_sort value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ENDIF. " Merged cells lt_range_merge = io_worksheet->get_merge( ). IF lt_range_merge IS NOT INITIAL. lo_element = lo_document->create_simple_element( name = lc_xml_node_mergecells parent = lo_document ). DESCRIBE TABLE lt_range_merge LINES merge_count. lv_value = merge_count. CONDENSE lv_value. lo_element->set_attribute_ns( name = lc_xml_attr_count value = lv_value ). LOOP AT lt_range_merge ASSIGNING <fs_range_merge>. lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_mergecell parent = lo_document ). lo_element_2->set_attribute_ns( name = lc_xml_attr_ref value = <fs_range_merge> ). lo_element->append_child( new_child = lo_element_2 ). lo_element_root->append_child( new_child = lo_element ). io_worksheet->delete_merge( ). ENDLOOP. ENDIF. " Conditional formatting node lo_iterator = io_worksheet->get_style_cond_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_style_cond ?= lo_iterator->if_object_collection_iterator~get_next( ). IF lo_style_cond->rule IS INITIAL. CONTINUE. ENDIF. lo_element = lo_document->create_simple_element( name = lc_xml_node_condformatting parent = lo_document ). lv_value = lo_style_cond->get_dimension_range( ) . lo_element->set_attribute_ns( name = lc_xml_attr_sqref value = lv_value ). " cfRule node lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_cfrule parent = lo_document ). lv_value = lo_style_cond->rule. lo_element_2->set_attribute_ns( name = lc_xml_attr_type value = lv_value ). lv_value = lo_style_cond->priority. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_2->set_attribute_ns( name = lc_xml_attr_priority value = lv_value ). CASE lo_style_cond->rule. " Start >> Databar by Albert Lladanosa WHEN zcl_excel_style_cond=>c_rule_databar. ls_databar = lo_style_cond->mode_databar. CLEAR lt_cfvo. lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_databar parent = lo_document ). MOVE ls_databar-cfvo1_value TO ls_cfvo-value. MOVE ls_databar-cfvo1_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_databar-cfvo2_value TO ls_cfvo-value. MOVE ls_databar-cfvo2_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. LOOP AT lt_cfvo INTO ls_cfvo. " cfvo node lo_element_4 = lo_document->create_simple_element( name = lc_xml_node_cfvo parent = lo_document ). lv_value = ls_cfvo-type. lo_element_4->set_attribute_ns( name = lc_xml_attr_type value = lv_value ). lv_value = ls_cfvo-value. lo_element_4->set_attribute_ns( name = lc_xml_attr_val value = lv_value ). lo_element_3->append_child( new_child = lo_element_4 ). " cfvo node ENDLOOP. lo_element_4 = lo_document->create_simple_element( name = lc_xml_node_color parent = lo_document ). lv_value = ls_databar-colorrgb. lo_element_4->set_attribute_ns( name = lc_xml_attr_tabcolor_rgb value = lv_value ). lo_element_3->append_child( new_child = lo_element_4 ). " color node lo_element_2->append_child( new_child = lo_element_3 ). " databar node " End << Databar by Albert Lladanosa WHEN zcl_excel_style_cond=>c_rule_colorscale. ls_colorscale = lo_style_cond->mode_colorscale. CLEAR: lt_cfvo, lt_colors. lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_colorscale parent = lo_document ). MOVE ls_colorscale-cfvo1_value TO ls_cfvo-value. MOVE ls_colorscale-cfvo1_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_colorscale-cfvo2_value TO ls_cfvo-value. MOVE ls_colorscale-cfvo2_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_colorscale-cfvo3_value TO ls_cfvo-value. MOVE ls_colorscale-cfvo3_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. APPEND ls_colorscale-colorrgb1 TO lt_colors. APPEND ls_colorscale-colorrgb2 TO lt_colors. APPEND ls_colorscale-colorrgb3 TO lt_colors. LOOP AT lt_cfvo INTO ls_cfvo. IF ls_cfvo IS INITIAL. CONTINUE. ENDIF. " cfvo node lo_element_4 = lo_document->create_simple_element( name = lc_xml_node_cfvo parent = lo_document ). lv_value = ls_cfvo-type. lo_element_4->set_attribute_ns( name = lc_xml_attr_type value = lv_value ). lv_value = ls_cfvo-value. lo_element_4->set_attribute_ns( name = lc_xml_attr_val value = lv_value ). lo_element_3->append_child( new_child = lo_element_4 ). " cfvo node ENDLOOP. LOOP AT lt_colors INTO ls_colors. IF ls_colors IS INITIAL. CONTINUE. ENDIF. lo_element_4 = lo_document->create_simple_element( name = lc_xml_node_color parent = lo_document ). lv_value = ls_colors-colorrgb. lo_element_4->set_attribute_ns( name = lc_xml_attr_tabcolor_rgb value = lv_value ). lo_element_3->append_child( new_child = lo_element_4 ). " color node ENDLOOP. lo_element_2->append_child( new_child = lo_element_3 ). " databar node WHEN zcl_excel_style_cond=>c_rule_iconset. ls_iconset = lo_style_cond->mode_iconset. CLEAR lt_cfvo. " iconset node lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_iconset parent = lo_document ). IF ls_iconset-iconset NE zcl_excel_style_cond=>c_iconset_3trafficlights. lv_value = ls_iconset-iconset. lo_element_3->set_attribute_ns( name = lc_xml_attr_iconset value = lv_value ). ENDIF. " Set the showValue attribute lv_value = ls_iconset-showvalue. lo_element_3->set_attribute_ns( name = lc_xml_attr_showvalue value = lv_value ). CASE ls_iconset-iconset. WHEN zcl_excel_style_cond=>c_iconset_3trafficlights2 OR zcl_excel_style_cond=>c_iconset_3arrows OR zcl_excel_style_cond=>c_iconset_3arrowsgray OR zcl_excel_style_cond=>c_iconset_3flags OR zcl_excel_style_cond=>c_iconset_3signs OR zcl_excel_style_cond=>c_iconset_3symbols OR zcl_excel_style_cond=>c_iconset_3symbols2 OR zcl_excel_style_cond=>c_iconset_3trafficlights OR zcl_excel_style_cond=>c_iconset_3trafficlights2. MOVE ls_iconset-cfvo1_value TO ls_cfvo-value. MOVE ls_iconset-cfvo1_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_iconset-cfvo2_value TO ls_cfvo-value. MOVE ls_iconset-cfvo2_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_iconset-cfvo3_value TO ls_cfvo-value. MOVE ls_iconset-cfvo3_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. WHEN zcl_excel_style_cond=>c_iconset_4arrows OR zcl_excel_style_cond=>c_iconset_4arrowsgray OR zcl_excel_style_cond=>c_iconset_4rating OR zcl_excel_style_cond=>c_iconset_4redtoblack OR zcl_excel_style_cond=>c_iconset_4trafficlights. MOVE ls_iconset-cfvo1_value TO ls_cfvo-value. MOVE ls_iconset-cfvo1_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_iconset-cfvo2_value TO ls_cfvo-value. MOVE ls_iconset-cfvo2_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_iconset-cfvo3_value TO ls_cfvo-value. MOVE ls_iconset-cfvo3_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_iconset-cfvo4_value TO ls_cfvo-value. MOVE ls_iconset-cfvo4_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. WHEN zcl_excel_style_cond=>c_iconset_5arrows OR zcl_excel_style_cond=>c_iconset_5arrowsgray OR zcl_excel_style_cond=>c_iconset_5quarters OR zcl_excel_style_cond=>c_iconset_5rating. MOVE ls_iconset-cfvo1_value TO ls_cfvo-value. MOVE ls_iconset-cfvo1_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_iconset-cfvo2_value TO ls_cfvo-value. MOVE ls_iconset-cfvo2_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_iconset-cfvo3_value TO ls_cfvo-value. MOVE ls_iconset-cfvo3_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_iconset-cfvo4_value TO ls_cfvo-value. MOVE ls_iconset-cfvo4_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_iconset-cfvo5_value TO ls_cfvo-value. MOVE ls_iconset-cfvo5_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. WHEN OTHERS. CLEAR lt_cfvo. ENDCASE. LOOP AT lt_cfvo INTO ls_cfvo. " cfvo node lo_element_4 = lo_document->create_simple_element( name = lc_xml_node_cfvo parent = lo_document ). lv_value = ls_cfvo-type. lo_element_4->set_attribute_ns( name = lc_xml_attr_type value = lv_value ). lv_value = ls_cfvo-value. lo_element_4->set_attribute_ns( name = lc_xml_attr_val value = lv_value ). lo_element_3->append_child( new_child = lo_element_4 ). " cfvo node ENDLOOP. lo_element_2->append_child( new_child = lo_element_3 ). " iconset node WHEN zcl_excel_style_cond=>c_rule_cellis. ls_cellis = lo_style_cond->mode_cellis. READ TABLE me->styles_cond_mapping INTO ls_style_cond_mapping WITH KEY guid = ls_cellis-cell_style. lv_value = ls_style_cond_mapping-dxf. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_dxfid value = lv_value ). lv_value = ls_cellis-operator. lo_element_2->set_attribute_ns( name = lc_xml_attr_operator value = lv_value ). " formula node lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_formula parent = lo_document ). lv_value = ls_cellis-formula. lo_element_3->set_value( value = lv_value ). lo_element_2->append_child( new_child = lo_element_3 ). " formula node IF ls_cellis-formula2 IS NOT INITIAL. lv_value = ls_cellis-formula2. lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_formula parent = lo_document ). lo_element_3->set_value( value = lv_value ). lo_element_2->append_child( new_child = lo_element_3 ). " 2nd formula node ENDIF. WHEN zcl_excel_style_cond=>c_rule_expression. ls_expression = lo_style_cond->mode_expression. READ TABLE me->styles_cond_mapping INTO ls_style_cond_mapping WITH KEY guid = ls_expression-cell_style. lv_value = ls_style_cond_mapping-dxf. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_dxfid value = lv_value ). " formula node lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_formula parent = lo_document ). lv_value = ls_expression-formula. lo_element_3->set_value( value = lv_value ). lo_element_2->append_child( new_child = lo_element_3 ). " formula node * begin of ins issue #366 - missing conditional rules: top10 WHEN zcl_excel_style_cond=>c_rule_top10. ls_conditional_top10 = lo_style_cond->mode_top10. READ TABLE me->styles_cond_mapping INTO ls_style_cond_mapping WITH KEY guid = ls_conditional_top10-cell_style. lv_value = ls_style_cond_mapping-dxf. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_dxfid value = lv_value ). lv_value = ls_conditional_top10-topxx_count. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = 'rank' value = lv_value ). IF ls_conditional_top10-bottom = 'X'. lo_element_2->set_attribute_ns( name = 'bottom' value = '1' ). ENDIF. IF ls_conditional_top10-percent = 'X'. lo_element_2->set_attribute_ns( name = 'percent' value ='1' ). ENDIF. WHEN zcl_excel_style_cond=>c_rule_above_average. ls_conditional_above_avg = lo_style_cond->mode_above_average. READ TABLE me->styles_cond_mapping INTO ls_style_cond_mapping WITH KEY guid = ls_conditional_above_avg-cell_style. lv_value = ls_style_cond_mapping-dxf. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_dxfid value = lv_value ). IF ls_conditional_above_avg-above_average IS INITIAL. " = below average lo_element_2->set_attribute_ns( name = 'aboveAverage' value = '0' ). ENDIF. IF ls_conditional_above_avg-equal_average = 'X'. " = equal average also lo_element_2->set_attribute_ns( name = 'equalAverage' value = '1' ). ENDIF. IF ls_conditional_above_avg-standard_deviation <> 0. " standard deviation instead of value lv_value = ls_conditional_above_avg-standard_deviation. lo_element_2->set_attribute_ns( name = 'stdDev' value = lv_value ). ENDIF. * end of ins issue #366 - missing conditional rules: top10 ENDCASE. lo_element->append_child( new_child = lo_element_2 ). " cfRule node lo_element_root->append_child( new_child = lo_element ). " Conditional formatting node ENDWHILE. IF io_worksheet->get_data_validations_size( ) GT 0. " dataValidations node lo_element = lo_document->create_simple_element( name = lc_xml_node_datavalidations parent = lo_document ). " Conditional formatting node lo_iterator = io_worksheet->get_data_validations_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_data_validation ?= lo_iterator->if_object_collection_iterator~get_next( ). " dataValidation node lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_datavalidation parent = lo_document ). lv_value = lo_data_validation->type. lo_element_2->set_attribute_ns( name = lc_xml_attr_type value = lv_value ). IF NOT lo_data_validation->operator IS INITIAL. lv_value = lo_data_validation->operator. lo_element_2->set_attribute_ns( name = lc_xml_attr_operator value = lv_value ). ENDIF. IF lo_data_validation->allowblank EQ abap_true. lv_value = '1'. ELSE. lv_value = '0'. ENDIF. lo_element_2->set_attribute_ns( name = lc_xml_attr_allowblank value = lv_value ). IF lo_data_validation->showinputmessage EQ abap_true. lv_value = '1'. ELSE. lv_value = '0'. ENDIF. lo_element_2->set_attribute_ns( name = lc_xml_attr_showinputmessage value = lv_value ). IF lo_data_validation->showerrormessage EQ abap_true. lv_value = '1'. ELSE. lv_value = '0'. ENDIF. lo_element_2->set_attribute_ns( name = lc_xml_attr_showerrormessage value = lv_value ). IF lo_data_validation->showdropdown EQ abap_true. lv_value = '1'. ELSE. lv_value = '0'. ENDIF. lo_element_2->set_attribute_ns( name = lc_xml_attr_showdropdown value = lv_value ). IF NOT lo_data_validation->errortitle IS INITIAL. lv_value = lo_data_validation->errortitle. lo_element_2->set_attribute_ns( name = lc_xml_attr_errortitle value = lv_value ). ENDIF. IF NOT lo_data_validation->error IS INITIAL. lv_value = lo_data_validation->error. lo_element_2->set_attribute_ns( name = lc_xml_attr_error value = lv_value ). ENDIF. IF NOT lo_data_validation->prompttitle IS INITIAL. lv_value = lo_data_validation->prompttitle. lo_element_2->set_attribute_ns( name = lc_xml_attr_prompttitle value = lv_value ). ENDIF. IF NOT lo_data_validation->prompt IS INITIAL. lv_value = lo_data_validation->prompt. lo_element_2->set_attribute_ns( name = lc_xml_attr_prompt value = lv_value ). ENDIF. lv_cell_row_s = lo_data_validation->cell_row. CONDENSE lv_cell_row_s. CONCATENATE lo_data_validation->cell_column lv_cell_row_s INTO lv_value. IF lo_data_validation->cell_row_to IS NOT INITIAL. lv_cell_row_s = lo_data_validation->cell_row_to. CONDENSE lv_cell_row_s. CONCATENATE lv_value ':' lo_data_validation->cell_column_to lv_cell_row_s INTO lv_value. ENDIF. lo_element_2->set_attribute_ns( name = lc_xml_attr_sqref value = lv_value ). " formula1 node lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_formula1 parent = lo_document ). lv_value = lo_data_validation->formula1. lo_element_3->set_value( value = lv_value ). lo_element_2->append_child( new_child = lo_element_3 ). " formula1 node " formula2 node IF NOT lo_data_validation->formula2 IS INITIAL. lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_formula2 parent = lo_document ). lv_value = lo_data_validation->formula2. lo_element_3->set_value( value = lv_value ). lo_element_2->append_child( new_child = lo_element_3 ). " formula2 node ENDIF. lo_element->append_child( new_child = lo_element_2 ). " dataValidation node ENDWHILE. lo_element_root->append_child( new_child = lo_element ). " dataValidations node ENDIF. " Hyperlinks DATA: lv_hyperlinks_count TYPE i, lo_link TYPE REF TO zcl_excel_hyperlink. lv_hyperlinks_count = io_worksheet->get_hyperlinks_size( ). IF lv_hyperlinks_count > 0. lo_element = lo_document->create_simple_element( name = 'hyperlinks' parent = lo_document ). lo_iterator = io_worksheet->get_hyperlinks_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_link ?= lo_iterator->if_object_collection_iterator~get_next( ). lo_element_2 = lo_document->create_simple_element( name = 'hyperlink' parent = lo_element ). lv_value = lo_link->get_ref( ). lo_element_2->set_attribute_ns( name = 'ref' value = lv_value ). IF lo_link->is_internal( ) = abap_true. lv_value = lo_link->get_url( ). lo_element_2->set_attribute_ns( name = 'location' value = lv_value ). ELSE. ADD 1 TO lv_relation_id. lv_value = lv_relation_id. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO lv_value. lo_element_2->set_attribute_ns( name = 'r:id' value = lv_value ). ENDIF. lo_element->append_child( new_child = lo_element_2 ). ENDWHILE. lo_element_root->append_child( new_child = lo_element ). ENDIF. " PrintOptions IF io_worksheet->print_gridlines = abap_true OR io_worksheet->sheet_setup->vertical_centered = abap_true OR io_worksheet->sheet_setup->horizontal_centered = abap_true. lo_element = lo_document->create_simple_element( name = 'printOptions' parent = lo_document ). IF io_worksheet->print_gridlines = abap_true. lo_element->set_attribute_ns( name = lc_xml_attr_gridlines value = 'true' ). ENDIF. IF io_worksheet->sheet_setup->horizontal_centered = abap_true. lo_element->set_attribute_ns( name = 'horizontalCentered' value = 'true' ). ENDIF. IF io_worksheet->sheet_setup->vertical_centered = abap_true. lo_element->set_attribute_ns( name = 'verticalCentered' value = 'true' ). ENDIF. lo_element_root->append_child( new_child = lo_element ). ENDIF. " pageMargins node lo_element = lo_document->create_simple_element( name = lc_xml_node_pagemargins parent = lo_document ). lv_value = io_worksheet->sheet_setup->margin_left. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_left value = lv_value ). lv_value = io_worksheet->sheet_setup->margin_right. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_right value = lv_value ). lv_value = io_worksheet->sheet_setup->margin_top. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_top value = lv_value ). lv_value = io_worksheet->sheet_setup->margin_bottom. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_bottom value = lv_value ). lv_value = io_worksheet->sheet_setup->margin_header. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_header value = lv_value ). lv_value = io_worksheet->sheet_setup->margin_footer. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_footer value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " pageMargins node * pageSetup node lo_element = lo_document->create_simple_element( name = lc_xml_node_pagesetup parent = lo_document ). IF io_worksheet->sheet_setup->black_and_white IS NOT INITIAL. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_blackandwhite value = `1` ). ENDIF. IF io_worksheet->sheet_setup->cell_comments IS NOT INITIAL. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_cellcomments value = io_worksheet->sheet_setup->cell_comments ). ENDIF. IF io_worksheet->sheet_setup->copies IS NOT INITIAL. lv_value = io_worksheet->sheet_setup->copies. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_copies value = lv_value ). ENDIF. IF io_worksheet->sheet_setup->draft IS NOT INITIAL. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_draft value = `1` ). ENDIF. IF io_worksheet->sheet_setup->errors IS NOT INITIAL. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_errors value = io_worksheet->sheet_setup->errors ). ENDIF. IF io_worksheet->sheet_setup->first_page_number IS NOT INITIAL. lv_value = io_worksheet->sheet_setup->first_page_number. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_firstpagenumber value = lv_value ). ENDIF. IF io_worksheet->sheet_setup->fit_to_page IS NOT INITIAL. lv_value = io_worksheet->sheet_setup->fit_to_height. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_fittoheight value = lv_value ). lv_value = io_worksheet->sheet_setup->fit_to_width. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_fittowidth value = lv_value ). ENDIF. IF io_worksheet->sheet_setup->horizontal_dpi IS NOT INITIAL. lv_value = io_worksheet->sheet_setup->horizontal_dpi. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_horizontaldpi value = lv_value ). ENDIF. IF io_worksheet->sheet_setup->orientation IS NOT INITIAL. lv_value = io_worksheet->sheet_setup->orientation. lo_element->set_attribute_ns( name = lc_xml_attr_orientation value = lv_value ). ENDIF. IF io_worksheet->sheet_setup->page_order IS NOT INITIAL. lo_element->set_attribute_ns( name = lc_xml_attr_pageorder value = io_worksheet->sheet_setup->page_order ). ENDIF. IF io_worksheet->sheet_setup->paper_height IS NOT INITIAL. lv_value = io_worksheet->sheet_setup->paper_height. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_paperheight value = lv_value ). ENDIF. IF io_worksheet->sheet_setup->paper_size IS NOT INITIAL. lv_value = io_worksheet->sheet_setup->paper_size. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_papersize value = lv_value ). ENDIF. IF io_worksheet->sheet_setup->paper_width IS NOT INITIAL. lv_value = io_worksheet->sheet_setup->paper_width. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_paperwidth value = lv_value ). ENDIF. IF io_worksheet->sheet_setup->scale IS NOT INITIAL. lv_value = io_worksheet->sheet_setup->scale. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_scale value = lv_value ). ENDIF. IF io_worksheet->sheet_setup->use_first_page_num IS NOT INITIAL. lo_element->set_attribute_ns( name = lc_xml_attr_usefirstpagenumber value = `1` ). ENDIF. IF io_worksheet->sheet_setup->use_printer_defaults IS NOT INITIAL. lo_element->set_attribute_ns( name = lc_xml_attr_useprinterdefaults value = `1` ). ENDIF. IF io_worksheet->sheet_setup->vertical_dpi IS NOT INITIAL. lv_value = io_worksheet->sheet_setup->vertical_dpi. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_verticaldpi value = lv_value ). ENDIF. lo_element_root->append_child( new_child = lo_element ). " pageSetup node * { headerFooter necessary? > IF io_worksheet->sheet_setup->odd_header IS NOT INITIAL OR io_worksheet->sheet_setup->odd_footer IS NOT INITIAL OR io_worksheet->sheet_setup->diff_oddeven_headerfooter = abap_true. lo_element = lo_document->create_simple_element( name = lc_xml_node_headerfooter parent = lo_document ). " Different header/footer for odd/even pages? IF io_worksheet->sheet_setup->diff_oddeven_headerfooter = abap_true. lo_element->set_attribute_ns( name = lc_xml_attr_differentoddeven value = '1' ). ENDIF. " OddHeader CLEAR: lv_value. io_worksheet->sheet_setup->get_header_footer_string( IMPORTING ep_odd_header = lv_value ) . IF lv_value IS NOT INITIAL. lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_oddheader parent = lo_document ). lo_element_2->set_value( value = lv_value ). lo_element->append_child( new_child = lo_element_2 ). ENDIF. " OddFooter CLEAR: lv_value. io_worksheet->sheet_setup->get_header_footer_string( IMPORTING ep_odd_footer = lv_value ) . IF lv_value IS NOT INITIAL. lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_oddfooter parent = lo_document ). lo_element_2->set_value( value = lv_value ). lo_element->append_child( new_child = lo_element_2 ). ENDIF. " evenHeader CLEAR: lv_value. io_worksheet->sheet_setup->get_header_footer_string( IMPORTING ep_even_header = lv_value ) . IF lv_value IS NOT INITIAL. lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_evenheader parent = lo_document ). lo_element_2->set_value( value = lv_value ). lo_element->append_child( new_child = lo_element_2 ). ENDIF. " evenFooter CLEAR: lv_value. io_worksheet->sheet_setup->get_header_footer_string( IMPORTING ep_even_footer = lv_value ) . IF lv_value IS NOT INITIAL. lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_evenfooter parent = lo_document ). lo_element_2->set_value( value = lv_value ). lo_element->append_child( new_child = lo_element_2 ). ENDIF. lo_element_root->append_child( new_child = lo_element ). " headerFooter ENDIF. * issue #377 pagebreaks TRY. create_xl_sheet_pagebreaks( io_document = lo_document io_parent = lo_element_root io_worksheet = io_worksheet ) . CATCH zcx_excel. " Ignore Hyperlink reading errors - pass everything we were able to identify ENDTRY. * drawing DATA: lo_drawings TYPE REF TO zcl_excel_drawings. lo_drawings = io_worksheet->get_drawings( ). IF lo_drawings->is_empty( ) = abap_false. lo_element = lo_document->create_simple_element( name = lc_xml_node_drawing parent = lo_document ). ADD 1 TO lv_relation_id. lv_value = lv_relation_id. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO lv_value. lo_element->set_attribute( name = 'r:id' value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ENDIF. * tables DATA lv_table_count TYPE i. lv_table_count = io_worksheet->get_tables_size( ). IF lv_table_count > 0. lo_element = lo_document->create_simple_element( name = 'tableParts' parent = lo_document ). lv_value = lv_table_count. CONDENSE lv_value. lo_element->set_attribute_ns( name = 'count' value = lv_value ). lo_iterator = io_worksheet->get_tables_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_table ?= lo_iterator->if_object_collection_iterator~get_next( ). ADD 1 TO lv_relation_id. lv_value = lv_relation_id. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO lv_value. lo_element_2 = lo_document->create_simple_element( name = 'tablePart' parent = lo_element ). lo_element_2->set_attribute_ns( name = 'r:id' value = lv_value ). lo_element->append_child( new_child = lo_element_2 ). ENDWHILE. lo_element_root->append_child( new_child = lo_element ). ENDIF. ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). ENDMETHOD. METHOD create_xl_sheet_pagebreaks. DATA: lo_pagebreaks TYPE REF TO zcl_excel_worksheet_pagebreaks, lt_pagebreaks TYPE zcl_excel_worksheet_pagebreaks=>tt_pagebreak_at, lt_rows TYPE HASHED TABLE OF int4 WITH UNIQUE KEY table_line, lt_columns TYPE HASHED TABLE OF int4 WITH UNIQUE KEY table_line, lo_node_rowbreaks TYPE REF TO if_ixml_element, lo_node_colbreaks TYPE REF TO if_ixml_element, lo_node_break TYPE REF TO if_ixml_element, lv_value TYPE string. FIELD-SYMBOLS: <ls_pagebreak> LIKE LINE OF lt_pagebreaks. lo_pagebreaks = io_worksheet->get_pagebreaks( ). CHECK lo_pagebreaks IS BOUND. lt_pagebreaks = lo_pagebreaks->get_all_pagebreaks( ). CHECK lt_pagebreaks IS NOT INITIAL. " No need to proceed if don't have any pagebreaks. lo_node_rowbreaks = io_document->create_simple_element( name = 'rowBreaks' parent = io_document ). lo_node_colbreaks = io_document->create_simple_element( name = 'colBreaks' parent = io_document ). LOOP AT lt_pagebreaks ASSIGNING <ls_pagebreak>. * Count how many rows and columns need to be broken INSERT <ls_pagebreak>-cell_row INTO TABLE lt_rows. IF sy-subrc = 0. " New lv_value = <ls_pagebreak>-cell_row. CONDENSE lv_value. lo_node_break = io_document->create_simple_element( name = 'brk' parent = io_document ). lo_node_break->set_attribute( name = 'id' value = lv_value ). lo_node_break->set_attribute( name = 'man' value = '1' ). " Manual break lo_node_break->set_attribute( name = 'max' value = '16383' ). " Max columns lo_node_rowbreaks->append_child( new_child = lo_node_break ). ENDIF. INSERT <ls_pagebreak>-cell_column INTO TABLE lt_columns. IF sy-subrc = 0. " New lv_value = <ls_pagebreak>-cell_column. CONDENSE lv_value. lo_node_break = io_document->create_simple_element( name = 'brk' parent = io_document ). lo_node_break->set_attribute( name = 'id' value = lv_value ). lo_node_break->set_attribute( name = 'man' value = '1' ). " Manual break lo_node_break->set_attribute( name = 'max' value = '1048575' ). " Max rows lo_node_colbreaks->append_child( new_child = lo_node_break ). ENDIF. ENDLOOP. lv_value = lines( lt_rows ). CONDENSE lv_value. lo_node_rowbreaks->set_attribute( name = 'count' value = lv_value ). lo_node_rowbreaks->set_attribute( name = 'manualBreakCount' value = lv_value ). lv_value = lines( lt_rows ). CONDENSE lv_value. lo_node_colbreaks->set_attribute( name = 'count' value = lv_value ). lo_node_colbreaks->set_attribute( name = 'manualBreakCount' value = lv_value ). io_parent->append_child( new_child = lo_node_rowbreaks ). io_parent->append_child( new_child = lo_node_colbreaks ). ENDMETHOD. METHOD create_xl_sheet_rels. ** Constant node name DATA: lc_xml_node_relationships TYPE string VALUE 'Relationships', lc_xml_node_relationship TYPE string VALUE 'Relationship', " Node attributes lc_xml_attr_id TYPE string VALUE 'Id', lc_xml_attr_type TYPE string VALUE 'Type', lc_xml_attr_target TYPE string VALUE 'Target', lc_xml_attr_target_mode TYPE string VALUE 'TargetMode', lc_xml_val_external TYPE string VALUE 'External', " Node namespace lc_xml_node_rels_ns TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships', lc_xml_node_rid_table_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/table', lc_xml_node_rid_printer_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/printerSettings', lc_xml_node_rid_drawing_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing', lc_xml_node_rid_link_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_table TYPE REF TO zcl_excel_table, lo_link TYPE REF TO zcl_excel_hyperlink. DATA: lv_value TYPE string, lv_relation_id TYPE i, lv_index_str TYPE string. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). ********************************************************************** * STEP 3: Create main node relationships lo_element_root = lo_document->create_simple_element( name = lc_xml_node_relationships parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_rels_ns ). ********************************************************************** * STEP 4: Create subnodes " Add sheet Relationship nodes here lv_relation_id = 0. lo_iterator = io_worksheet->get_hyperlinks_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_link ?= lo_iterator->if_object_collection_iterator~get_next( ). CHECK lo_link->is_internal( ) = abap_false. " issue #340 - don't put internal links here ADD 1 TO lv_relation_id. lv_value = lv_relation_id. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO lv_value. lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_id value = lv_value ). lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rid_link_tp ). lv_value = lo_link->get_url( ). lo_element->set_attribute_ns( name = lc_xml_attr_target value = lv_value ). lo_element->set_attribute_ns( name = lc_xml_attr_target_mode value = lc_xml_val_external ). lo_element_root->append_child( new_child = lo_element ). ENDWHILE. * drawing DATA: lo_drawings TYPE REF TO zcl_excel_drawings. lo_drawings = io_worksheet->get_drawings( ). IF lo_drawings->is_empty( ) = abap_false. lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). ADD 1 TO lv_relation_id. lv_value = lv_relation_id. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO lv_value. lo_element->set_attribute_ns( name = lc_xml_attr_id value = lv_value ). lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rid_drawing_tp ). lv_index_str = iv_drawing_index. CONDENSE lv_index_str NO-GAPS. MOVE me->c_xl_drawings TO lv_value. REPLACE 'xl' WITH '..' INTO lv_value. REPLACE '#' WITH lv_index_str INTO lv_value. lo_element->set_attribute_ns( name = lc_xml_attr_target value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ENDIF. lo_iterator = io_worksheet->get_tables_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_table ?= lo_iterator->if_object_collection_iterator~get_next( ). ADD 1 TO lv_relation_id. lv_value = lv_relation_id. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO lv_value. lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_id value = lv_value ). lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rid_table_tp ). lv_value = lo_table->get_name( ). CONCATENATE '../tables/' lv_value '.xml' INTO lv_value. lo_element->set_attribute_ns( name = lc_xml_attr_target value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ENDWHILE. * IF io_worksheet->get_print_settings( )->is_empty( ) = abap_false. * ADD 1 TO lv_relation_id. * lv_value = lv_relation_id. * CONDENSE lv_value. * CONCATENATE 'rId' lv_value INTO lv_value. * * lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship * parent = lo_document ). * lo_element->set_attribute_ns( name = lc_xml_attr_id * value = lv_value ). * lo_element->set_attribute_ns( name = lc_xml_attr_type * value = lc_xml_node_rid_printer_tp ). * * lv_index_str = iv_printer_index. * CONDENSE lv_index_str NO-GAPS. * MOVE me->c_xl_printersettings TO lv_value. * REPLACE 'xl' WITH '..' INTO lv_value. * REPLACE '#' WITH lv_index_str INTO lv_value. * lo_element->set_attribute_ns( name = lc_xml_attr_target * value = lv_value ). * * lo_element_root->append_child( new_child = lo_element ). * ENDIF. ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). ENDMETHOD. METHOD create_xl_sheet_sheet_data. TYPES: BEGIN OF lty_table_area, left TYPE i, right TYPE i, top TYPE i, bottom TYPE i, END OF lty_table_area. CONSTANTS: lc_dummy_cell_content TYPE zexcel_s_cell_data-cell_value VALUE '})~~~ This is a dummy value for ABAP2XLSX and you should never find this in a real excelsheet Ihope'. CONSTANTS: lc_xml_node_sheetdata TYPE string VALUE 'sheetData', " SheetData tag lc_xml_node_row TYPE string VALUE 'row', " Row tag lc_xml_attr_r TYPE string VALUE 'r', " Cell: row-attribute lc_xml_attr_spans TYPE string VALUE 'spans', " Cell: spans-attribute lc_xml_node_c TYPE string VALUE 'c', " Cell tag lc_xml_node_v TYPE string VALUE 'v', " Cell: value lc_xml_node_f TYPE string VALUE 'f', " Cell: formula lc_xml_attr_s TYPE string VALUE 's', " Cell: style lc_xml_attr_t TYPE string VALUE 't'. " Cell: type DATA: col_count TYPE int4, lo_autofilters TYPE REF TO zcl_excel_autofilters, lo_autofilter TYPE REF TO zcl_excel_autofilter, l_autofilter_hidden TYPE flag, lt_values TYPE zexcel_t_autofilter_values, ls_values TYPE zexcel_s_autofilter_values, ls_area TYPE zexcel_s_autofilter_area, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_table TYPE REF TO zcl_excel_table, lt_table_areas TYPE SORTED TABLE OF lty_table_area WITH NON-UNIQUE KEY left right top bottom, ls_table_area LIKE LINE OF lt_table_areas, lo_column TYPE REF TO zcl_excel_column, ls_sheet_content LIKE LINE OF io_worksheet->sheet_content, ls_sheet_content_empty LIKE LINE OF io_worksheet->sheet_content, lv_current_row TYPE i, lv_next_row TYPE i, lv_last_row TYPE i, * lts_row_dimensions TYPE zexcel_t_worksheet_rowdimensio, lo_row_iterator TYPE REF TO cl_object_collection_iterator, lo_row TYPE REF TO zcl_excel_row, lo_row_empty TYPE REF TO zcl_excel_row, lts_row_outlines TYPE zcl_excel_worksheet=>mty_ts_outlines_row, ls_last_row TYPE zexcel_s_cell_data, ls_style_mapping TYPE zexcel_s_styles_mapping, lo_element_2 TYPE REF TO if_ixml_element, lo_element_3 TYPE REF TO if_ixml_element, lo_element_4 TYPE REF TO if_ixml_element, lv_value TYPE string, lv_style_guid TYPE zexcel_cell_style. FIELD-SYMBOLS: <ls_sheet_content> TYPE zexcel_s_cell_data, <ls_row_outline> LIKE LINE OF lts_row_outlines. " sheetData node rv_ixml_sheet_data_root = io_document->create_simple_element( name = lc_xml_node_sheetdata parent = io_document ). me->mv_sheet_data_xstring_dummy = render_ixml_element_no_header( rv_ixml_sheet_data_root ). " Get column count col_count = io_worksheet->get_highest_column( ). " Get autofilter *lv_guid = io_worksheet->get_guid( ) . lo_autofilters = excel->get_autofilters_reference( ). lo_autofilter = lo_autofilters->get( io_worksheet = io_worksheet ) . IF lo_autofilter IS BOUND. lt_values = lo_autofilter->get_values( ) . ls_area = lo_autofilter->get_filter_area( ) . l_autofilter_hidden = abap_true. " First defautl is not showing ENDIF. *--------------------------------------------------------------------* *issue #220 - If cell in tables-area don't use default from row or column or sheet - Coding 1 - start *--------------------------------------------------------------------* *Build table to hold all table-areas attached to this sheet lo_iterator = io_worksheet->get_tables_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_table ?= lo_iterator->if_object_collection_iterator~get_next( ). ls_table_area-left = zcl_excel_common=>convert_column2int( lo_table->settings-top_left_column ). ls_table_area-right = lo_table->get_right_column_integer( ). ls_table_area-top = lo_table->settings-top_left_row. ls_table_area-bottom = lo_table->get_bottom_row_integer( ). INSERT ls_table_area INTO TABLE lt_table_areas. ENDWHILE. *--------------------------------------------------------------------* *issue #220 - If cell in tables-area don't use default from row or column or sheet - Coding 1 - end *--------------------------------------------------------------------* *We have problems when the first rows or trailing rows are not set but we have rowinformation *to solve this we add dummycontent into first and last line that will not be set *Set first line if necessary READ TABLE io_worksheet->sheet_content TRANSPORTING NO FIELDS WITH KEY cell_row = 1. IF sy-subrc <> 0. ls_sheet_content_empty-cell_row = 1. ls_sheet_content_empty-cell_column = 1. ls_sheet_content_empty-cell_value = lc_dummy_cell_content. INSERT ls_sheet_content_empty INTO TABLE io_worksheet->sheet_content. ENDIF. *Set last line if necessary *Last row with cell content lv_last_row = io_worksheet->get_highest_row( ). *Last line with row-information set directly ( like line height, hidden-status ... ) lo_row_iterator = io_worksheet->get_rows_iterator( ). WHILE lo_row_iterator->has_next( ) = abap_true. lo_row ?= lo_row_iterator->get_next( ). IF lo_row->get_row_index( ) > lv_last_row. lv_last_row = lo_row->get_row_index( ). ENDIF. ENDWHILE. *Last line with row-information set indirectly by row outline lts_row_outlines = io_worksheet->get_row_outlines( ). LOOP AT lts_row_outlines ASSIGNING <ls_row_outline>. IF <ls_row_outline>-collapsed = 'X'. lv_current_row = <ls_row_outline>-row_to + 1. " collapsed-status may be set on following row ELSE. lv_current_row = <ls_row_outline>-row_to. " collapsed-status may be set on following row ENDIF. IF lv_current_row > lv_last_row. lv_last_row = lv_current_row. ENDIF. ENDLOOP. READ TABLE io_worksheet->sheet_content TRANSPORTING NO FIELDS WITH KEY cell_row = lv_last_row. IF sy-subrc <> 0. ls_sheet_content_empty-cell_row = lv_last_row. ls_sheet_content_empty-cell_column = 1. ls_sheet_content_empty-cell_value = lc_dummy_cell_content. INSERT ls_sheet_content_empty INTO TABLE io_worksheet->sheet_content. ENDIF. CLEAR ls_sheet_content. LOOP AT io_worksheet->sheet_content INTO ls_sheet_content. IF lt_values IS INITIAL. " no values attached to autofilter " issue #368 autofilter filtering too much CLEAR l_autofilter_hidden. ELSE. READ TABLE lt_values INTO ls_values WITH KEY column = ls_last_row-cell_column. IF sy-subrc = 0 AND ls_values-value = ls_last_row-cell_value. CLEAR l_autofilter_hidden. ENDIF. ENDIF. CLEAR ls_style_mapping. *Create row element *issues #346,#154, #195 - problems when we have information in row_dimension but no cell content in that row *Get next line that may have to be added. If we have empty lines this is the next line after previous cell content *Otherwise it is the line of the current cell content lv_current_row = ls_last_row-cell_row + 1. IF lv_current_row > ls_sheet_content-cell_row. lv_current_row = ls_sheet_content-cell_row. ENDIF. *Fill in empty lines if necessary - assign an emtpy sheet content lv_next_row = lv_current_row. WHILE lv_next_row <= ls_sheet_content-cell_row. lv_current_row = lv_next_row. lv_next_row = lv_current_row + 1. IF lv_current_row = ls_sheet_content-cell_row. " cell value found in this row ASSIGN ls_sheet_content TO <ls_sheet_content>. ELSE. *Check if empty row is really necessary - this is basically the case when we have information in row_dimension lo_row_empty = io_worksheet->get_row( lv_current_row ). CHECK lo_row_empty->get_row_height( ) >= 0 OR lo_row_empty->get_collapsed( io_worksheet ) = abap_true OR lo_row_empty->get_outline_level( io_worksheet ) > 0 OR lo_row_empty->get_xf_index( ) <> 0. " Dummyentry A1 ls_sheet_content_empty-cell_row = lv_current_row. ls_sheet_content_empty-cell_column = 1. ASSIGN ls_sheet_content_empty TO <ls_sheet_content>. ENDIF. IF ls_last_row-cell_row NE <ls_sheet_content>-cell_row. IF lo_autofilter IS BOUND. IF ls_area-row_start >= ls_last_row-cell_row OR " One less for header ls_area-row_end < ls_last_row-cell_row . CLEAR l_autofilter_hidden. ENDIF. ELSE. CLEAR l_autofilter_hidden. ENDIF. IF ls_last_row-cell_row IS NOT INITIAL. " Row visibility of previos row. IF lo_row->get_visible( io_worksheet ) = abap_false OR l_autofilter_hidden = abap_true. lo_element_2->set_attribute_ns( name = 'hidden' value = 'true' ). ENDIF. * lv_xstring_partial = render_ixml_element_no_header( lo_element_2 ). * CONCATENATE lv_xstring lv_xstring_partial * INTO lv_xstring IN BYTE MODE. rv_ixml_sheet_data_root->append_child( new_child = lo_element_2 ). " row node ENDIF. " Add new row lo_element_2 = io_document->create_simple_element( name = lc_xml_node_row parent = io_document ). " r lv_value = <ls_sheet_content>-cell_row. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_2->set_attribute_ns( name = lc_xml_attr_r value = lv_value ). " Spans lv_value = col_count. CONCATENATE '1:' lv_value INTO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_2->set_attribute_ns( name = lc_xml_attr_spans value = lv_value ). lo_row = io_worksheet->get_row( <ls_sheet_content>-cell_row ). " Do we need the row dimension attributes? IF lo_row->get_row_height( ) >= 0 OR lo_row->get_collapsed( io_worksheet ) = abap_true OR lo_row->get_outline_level( io_worksheet ) > 0 OR lo_row->get_xf_index( ) <> 0 OR l_autofilter_hidden = abap_true. " Row dimensions IF lo_row->get_row_height( ) >= 0. lo_element_2->set_attribute_ns( name = 'customHeight' value = '1' ). lv_value = lo_row->get_row_height( ). lo_element_2->set_attribute_ns( name = 'ht' value = lv_value ). ENDIF. " Collapsed IF lo_row->get_collapsed( io_worksheet ) = abap_true. lo_element_2->set_attribute_ns( name = 'collapsed' value = 'true' ). ENDIF. " Outline level IF lo_row->get_outline_level( io_worksheet ) > 0. lv_value = lo_row->get_outline_level( io_worksheet ). SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_2->set_attribute_ns( name = 'outlineLevel' value = lv_value ). ENDIF. " Style IF lo_row->get_xf_index( ) <> 0. lv_value = lo_row->get_xf_index( ). lo_element_2->set_attribute_ns( name = 's' value = lv_value ). lo_element_2->set_attribute_ns( name = 'customFormat' value = '1' ). ENDIF. ENDIF. IF lt_values IS INITIAL. " no values attached to autofilter " issue #368 autofilter filtering too much CLEAR l_autofilter_hidden. ELSE. l_autofilter_hidden = abap_true. " First default is not showing ENDIF. ELSE. ENDIF. ENDWHILE. lo_element_3 = io_document->create_simple_element( name = lc_xml_node_c parent = io_document ). lo_element_3->set_attribute_ns( name = lc_xml_attr_r value = <ls_sheet_content>-cell_coords ). *begin of change issue #157 - allow column cellstyle *if no cellstyle is set, look into column, then into sheet IF <ls_sheet_content>-cell_style IS NOT INITIAL. lv_style_guid = <ls_sheet_content>-cell_style. ELSE. *--------------------------------------------------------------------* *issue #220 - If cell in tables-area don't use default from row or column or sheet - Coding 2 - start *--------------------------------------------------------------------* *Check if cell in any of the table areas LOOP AT lt_table_areas TRANSPORTING NO FIELDS WHERE top <= <ls_sheet_content>-cell_row AND bottom >= <ls_sheet_content>-cell_row AND left <= <ls_sheet_content>-cell_column AND right >= <ls_sheet_content>-cell_column. EXIT. ENDLOOP. IF sy-subrc = 0. CLEAR lv_style_guid. " No style --> EXCEL will use built-in-styles as declared in the tables-section ELSE. *--------------------------------------------------------------------* *issue #220 - If cell in tables-area don't use default from row or column or sheet - Coding 2 - end *--------------------------------------------------------------------* lv_style_guid = io_worksheet->zif_excel_sheet_properties~get_style( ). lo_column ?= io_worksheet->get_column( <ls_sheet_content>-cell_column ). IF lo_column->get_column_index( ) = <ls_sheet_content>-cell_column. lv_style_guid = lo_column->get_column_style_guid( ). IF lv_style_guid IS INITIAL. lv_style_guid = io_worksheet->zif_excel_sheet_properties~get_style( ). ENDIF. ENDIF. *--------------------------------------------------------------------* *issue #220 - If cell in tables-area don't use default from row or column or sheet - Coding 3 - start *--------------------------------------------------------------------* ENDIF. *--------------------------------------------------------------------* *issue #220 - If cell in tables-area don't use default from row or column or sheet - Coding 3 - end *--------------------------------------------------------------------* ENDIF. * IF <ls_sheet_content>-cell_style IS NOT INITIAL. * READ TABLE styles_mapping INTO ls_style_mapping WITH KEY guid = <ls_sheet_content>-cell_style. IF lv_style_guid IS NOT INITIAL. READ TABLE styles_mapping INTO ls_style_mapping WITH KEY guid = lv_style_guid. *end of change issue #157 - allow column cellstyles lv_value = ls_style_mapping-style. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_3->set_attribute_ns( name = lc_xml_attr_s value = lv_value ). ENDIF. " For cells with formula ignore the value - Excel will calculate it IF <ls_sheet_content>-cell_formula IS NOT INITIAL. " fomula node lo_element_4 = io_document->create_simple_element( name = lc_xml_node_f parent = io_document ). lv_value = <ls_sheet_content>-cell_formula. CONDENSE lv_value. lo_element_4->set_value( value = lv_value ). lo_element_3->append_child( new_child = lo_element_4 ). " fomula node ELSEIF <ls_sheet_content>-cell_value IS NOT INITIAL "cell can have just style or formula AND <ls_sheet_content>-cell_value <> lc_dummy_cell_content. IF <ls_sheet_content>-data_type IS NOT INITIAL. IF <ls_sheet_content>-data_type EQ 's_leading_blanks'. lo_element_3->set_attribute_ns( name = lc_xml_attr_t value = 's' ). ELSE. lo_element_3->set_attribute_ns( name = lc_xml_attr_t value = <ls_sheet_content>-data_type ). ENDIF. ENDIF. " value node lo_element_4 = io_document->create_simple_element( name = lc_xml_node_v parent = io_document ). IF <ls_sheet_content>-data_type EQ 's' OR <ls_sheet_content>-data_type EQ 's_leading_blanks'. lv_value = me->get_shared_string_index( <ls_sheet_content>-cell_value ). CONDENSE lv_value. lo_element_4->set_value( value = lv_value ). ELSE. lv_value = <ls_sheet_content>-cell_value. CONDENSE lv_value. lo_element_4->set_value( value = lv_value ). ENDIF. lo_element_3->append_child( new_child = lo_element_4 ). " value node ENDIF. lo_element_2->append_child( new_child = lo_element_3 ). " column node ls_last_row = <ls_sheet_content>. ENDLOOP. IF sy-subrc = 0. READ TABLE lt_values INTO ls_values WITH KEY column = ls_last_row-cell_column. IF sy-subrc = 0 AND ls_values-value = ls_last_row-cell_value. CLEAR l_autofilter_hidden. ENDIF. IF lo_autofilter IS BOUND. IF ls_area-row_start >= ls_last_row-cell_row OR " One less for header ls_area-row_end < ls_last_row-cell_row . CLEAR l_autofilter_hidden. ENDIF. ELSE. CLEAR l_autofilter_hidden. ENDIF. " Row visibility of previos row. IF lo_row->get_visible( ) = abap_false OR l_autofilter_hidden = abap_true. lo_element_2->set_attribute_ns( name = 'hidden' value = 'true' ). ENDIF. * lv_xstring_partial = render_ixml_element_no_header( lo_element_2 ). * CONCATENATE lv_xstring lv_xstring_partial * INTO lv_xstring IN BYTE MODE. rv_ixml_sheet_data_root->append_child( new_child = lo_element_2 ). " row node ENDIF. DELETE io_worksheet->sheet_content WHERE cell_value = lc_dummy_cell_content. " Get rid of dummyentries * * * me->mv_sheet_data_xstring = render_ixml_element_no_header( rv_ixml_sheet_data_root ). * * ** Für den Dummystringersatz jetzt alles zurück auf Anfang * rv_ixml_sheet_data_root = io_document->create_simple_element( name = lc_xml_node_sheetdata * parent = io_document ). * me->mv_sheet_data_xstring_dummy = render_ixml_element_no_header( rv_ixml_sheet_data_root ). * * DATA: lv_sheetdata_tag_start TYPE xstring, * lv_sheetdata_tag_end TYPE xstring. * * lv_sheetdata_tag_start = cl_bcs_convert=>string_to_xstring( '<sheetData>' ). * lv_sheetdata_tag_end = cl_bcs_convert=>string_to_xstring( '</sheetData>' ). * CONCATENATE lv_sheetdata_tag_start lv_xstring lv_sheetdata_tag_end * INTO lv_xstring IN BYTE MODE. * me->mv_sheet_data_xstring = lv_xstring. ENDMETHOD. METHOD create_xl_styles. *--------------------------------------------------------------------* * ToDos: * 2do§1 dxfs-cellstyles are used in conditional formats: * CellIs, Expression, top10 ( forthcoming above average as well ) * create own method to write dsfx-cellstyle to be reuseable by all these *--------------------------------------------------------------------* ** Constant node name CONSTANTS: lc_xml_node_stylesheet TYPE string VALUE 'styleSheet', " font lc_xml_node_fonts TYPE string VALUE 'fonts', lc_xml_node_font TYPE string VALUE 'font', lc_xml_node_b TYPE string VALUE 'b', "bold lc_xml_node_i TYPE string VALUE 'i', "italic lc_xml_node_u TYPE string VALUE 'u', "underline lc_xml_node_strike TYPE string VALUE 'strike', "strikethrough lc_xml_node_sz TYPE string VALUE 'sz', lc_xml_node_color TYPE string VALUE 'color', lc_xml_node_name TYPE string VALUE 'name', lc_xml_node_family TYPE string VALUE 'family', lc_xml_node_scheme TYPE string VALUE 'scheme', " fill lc_xml_node_fills TYPE string VALUE 'fills', lc_xml_node_fill TYPE string VALUE 'fill', lc_xml_node_patternfill TYPE string VALUE 'patternFill', lc_xml_node_fgcolor TYPE string VALUE 'fgColor', lc_xml_node_bgcolor TYPE string VALUE 'bgColor', lc_xml_node_gradientfill TYPE string VALUE 'gradientFill', lc_xml_node_stop TYPE string VALUE 'stop', " borders lc_xml_node_borders TYPE string VALUE 'borders', lc_xml_node_border TYPE string VALUE 'border', lc_xml_node_left TYPE string VALUE 'left', lc_xml_node_right TYPE string VALUE 'right', lc_xml_node_top TYPE string VALUE 'top', lc_xml_node_bottom TYPE string VALUE 'bottom', lc_xml_node_diagonal TYPE string VALUE 'diagonal', " numfmt lc_xml_node_numfmts TYPE string VALUE 'numFmts', lc_xml_node_numfmt TYPE string VALUE 'numFmt', " Styles lc_xml_node_cellstylexfs TYPE string VALUE 'cellStyleXfs', lc_xml_node_xf TYPE string VALUE 'xf', lc_xml_node_cellxfs TYPE string VALUE 'cellXfs', lc_xml_node_cellstyles TYPE string VALUE 'cellStyles', lc_xml_node_cellstyle TYPE string VALUE 'cellStyle', lc_xml_node_dxfs TYPE string VALUE 'dxfs', lc_xml_node_tablestyles TYPE string VALUE 'tableStyles', " Colors lc_xml_node_colors TYPE string VALUE 'colors', lc_xml_node_indexedcolors TYPE string VALUE 'indexedColors', lc_xml_node_rgbcolor TYPE string VALUE 'rgbColor', lc_xml_node_mrucolors TYPE string VALUE 'mruColors', " Alignment lc_xml_node_alignment TYPE string VALUE 'alignment', " Protection lc_xml_node_protection TYPE string VALUE 'protection', " Node attributes lc_xml_attr_count TYPE string VALUE 'count', lc_xml_attr_val TYPE string VALUE 'val', lc_xml_attr_theme TYPE string VALUE 'theme', lc_xml_attr_rgb TYPE string VALUE 'rgb', lc_xml_attr_indexed TYPE string VALUE 'indexed', lc_xml_attr_tint TYPE string VALUE 'tint', lc_xml_attr_style TYPE string VALUE 'style', lc_xml_attr_position TYPE string VALUE 'position', lc_xml_attr_degree TYPE string VALUE 'degree', lc_xml_attr_patterntype TYPE string VALUE 'patternType', lc_xml_attr_numfmtid TYPE string VALUE 'numFmtId', lc_xml_attr_fontid TYPE string VALUE 'fontId', lc_xml_attr_fillid TYPE string VALUE 'fillId', lc_xml_attr_borderid TYPE string VALUE 'borderId', lc_xml_attr_xfid TYPE string VALUE 'xfId', lc_xml_attr_applynumberformat TYPE string VALUE 'applyNumberFormat', lc_xml_attr_applyprotection TYPE string VALUE 'applyProtection', lc_xml_attr_applyfont TYPE string VALUE 'applyFont', lc_xml_attr_applyfill TYPE string VALUE 'applyFill', lc_xml_attr_applyborder TYPE string VALUE 'applyBorder', lc_xml_attr_name TYPE string VALUE 'name', lc_xml_attr_builtinid TYPE string VALUE 'builtinId', lc_xml_attr_defaulttablestyle TYPE string VALUE 'defaultTableStyle', lc_xml_attr_defaultpivotstyle TYPE string VALUE 'defaultPivotStyle', lc_xml_attr_applyalignment TYPE string VALUE 'applyAlignment', lc_xml_attr_horizontal TYPE string VALUE 'horizontal', lc_xml_attr_formatcode TYPE string VALUE 'formatCode', lc_xml_attr_vertical TYPE string VALUE 'vertical', lc_xml_attr_wraptext TYPE string VALUE 'wrapText', lc_xml_attr_textrotation TYPE string VALUE 'textRotation', lc_xml_attr_shrinktofit TYPE string VALUE 'shrinkToFit', lc_xml_attr_indent TYPE string VALUE 'indent', lc_xml_attr_locked TYPE string VALUE 'locked', lc_xml_attr_hidden TYPE string VALUE 'hidden', lc_xml_attr_diagonalup TYPE string VALUE 'diagonalUp', lc_xml_attr_diagonaldown TYPE string VALUE 'diagonalDown', " Node namespace lc_xml_node_ns TYPE string VALUE 'http://schemas.openxmlformats.org/spreadsheetml/2006/main', lc_xml_attr_type TYPE string VALUE 'type', lc_xml_attr_bottom TYPE string VALUE 'bottom', lc_xml_attr_top TYPE string VALUE 'top', lc_xml_attr_right TYPE string VALUE 'right', lc_xml_attr_left TYPE string VALUE 'left'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element_fonts TYPE REF TO if_ixml_element, lo_element_font TYPE REF TO if_ixml_element, lo_element_fills TYPE REF TO if_ixml_element, lo_element_fill TYPE REF TO if_ixml_element, lo_element_borders TYPE REF TO if_ixml_element, lo_element_border TYPE REF TO if_ixml_element, lo_element_numfmts TYPE REF TO if_ixml_element, lo_element_numfmt TYPE REF TO if_ixml_element, lo_element_cellxfs TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_sub_element TYPE REF TO if_ixml_element, lo_sub_element_2 TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_iterator2 TYPE REF TO cl_object_collection_iterator, lo_worksheet TYPE REF TO zcl_excel_worksheet, lo_style_cond TYPE REF TO zcl_excel_style_cond, lo_style TYPE REF TO zcl_excel_style. DATA: lt_fonts TYPE zexcel_t_style_font, ls_font TYPE zexcel_s_style_font, lt_fills TYPE zexcel_t_style_fill, ls_fill TYPE zexcel_s_style_fill, lt_borders TYPE zexcel_t_style_border, ls_border TYPE zexcel_s_style_border, lt_numfmts TYPE zexcel_t_style_numfmt, ls_numfmt TYPE zexcel_s_style_numfmt, lt_protections TYPE zexcel_t_style_protection, ls_protection TYPE zexcel_s_style_protection, lt_alignments TYPE zexcel_t_style_alignment, ls_alignment TYPE zexcel_s_style_alignment, lt_cellxfs TYPE zexcel_t_cellxfs, ls_cellxfs TYPE zexcel_s_cellxfs, ls_styles_mapping TYPE zexcel_s_styles_mapping, lt_colors TYPE zexcel_t_style_color_argb, ls_color LIKE LINE OF lt_colors. DATA: lv_value TYPE string, lv_dfx_count TYPE i, lv_fonts_count TYPE i, lv_fills_count TYPE i, lv_borders_count TYPE i, lv_cellxfs_count TYPE i. TYPES: BEGIN OF ts_built_in_format, num_format TYPE zexcel_number_format, id TYPE sytabix, END OF ts_built_in_format. DATA: lt_built_in_num_formats TYPE HASHED TABLE OF ts_built_in_format WITH UNIQUE KEY num_format, ls_built_in_num_format LIKE LINE OF lt_built_in_num_formats. FIELD-SYMBOLS: <ls_built_in_format> LIKE LINE OF lt_built_in_num_formats, <ls_reader_built_in> LIKE LINE OF zcl_excel_style_number_format=>mt_built_in_num_formats. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). *********************************************************************** * STEP 3: Create main node relationships lo_element_root = lo_document->create_simple_element( name = lc_xml_node_stylesheet parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_ns ). ********************************************************************** * STEP 4: Create subnodes lo_element_fonts = lo_document->create_simple_element( name = lc_xml_node_fonts parent = lo_document ). lo_element_fills = lo_document->create_simple_element( name = lc_xml_node_fills parent = lo_document ). lo_element_borders = lo_document->create_simple_element( name = lc_xml_node_borders parent = lo_document ). lo_element_cellxfs = lo_document->create_simple_element( name = lc_xml_node_cellxfs parent = lo_document ). lo_element_numfmts = lo_document->create_simple_element( name = lc_xml_node_numfmts parent = lo_document ). * Prepare built-in number formats. LOOP AT zcl_excel_style_number_format=>mt_built_in_num_formats ASSIGNING <ls_reader_built_in>. ls_built_in_num_format-id = <ls_reader_built_in>-id. ls_built_in_num_format-num_format = <ls_reader_built_in>-format->format_code. INSERT ls_built_in_num_format INTO TABLE lt_built_in_num_formats. ENDLOOP. * Compress styles lo_iterator = excel->get_styles_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_style ?= lo_iterator->if_object_collection_iterator~get_next( ). ls_font = lo_style->font->get_structure( ). ls_fill = lo_style->fill->get_structure( ). ls_border = lo_style->borders->get_structure( ). ls_alignment = lo_style->alignment->get_structure( ). ls_protection = lo_style->protection->get_structure( ). ls_numfmt = lo_style->number_format->get_structure( ). CLEAR ls_cellxfs. * Compress fonts READ TABLE lt_fonts FROM ls_font TRANSPORTING NO FIELDS. IF sy-subrc EQ 0. ls_cellxfs-fontid = sy-tabix. ELSE. APPEND ls_font TO lt_fonts. DESCRIBE TABLE lt_fonts LINES ls_cellxfs-fontid. ENDIF. SUBTRACT 1 FROM ls_cellxfs-fontid. * Compress alignment READ TABLE lt_alignments FROM ls_alignment TRANSPORTING NO FIELDS. IF sy-subrc EQ 0. ls_cellxfs-alignmentid = sy-tabix. ELSE. APPEND ls_alignment TO lt_alignments. DESCRIBE TABLE lt_alignments LINES ls_cellxfs-alignmentid. ENDIF. SUBTRACT 1 FROM ls_cellxfs-alignmentid. * Compress fills READ TABLE lt_fills FROM ls_fill TRANSPORTING NO FIELDS. IF sy-subrc EQ 0. ls_cellxfs-fillid = sy-tabix. ELSE. APPEND ls_fill TO lt_fills. DESCRIBE TABLE lt_fills LINES ls_cellxfs-fillid. ENDIF. SUBTRACT 1 FROM ls_cellxfs-fillid. * Compress borders READ TABLE lt_borders FROM ls_border TRANSPORTING NO FIELDS. IF sy-subrc EQ 0. ls_cellxfs-borderid = sy-tabix. ELSE. APPEND ls_border TO lt_borders. DESCRIBE TABLE lt_borders LINES ls_cellxfs-borderid. ENDIF. SUBTRACT 1 FROM ls_cellxfs-borderid. * Compress protection IF ls_protection-locked EQ c_on AND ls_protection-hidden EQ c_off. ls_cellxfs-applyprotection = 0. ELSE. READ TABLE lt_protections FROM ls_protection TRANSPORTING NO FIELDS. IF sy-subrc EQ 0. ls_cellxfs-protectionid = sy-tabix. ELSE. APPEND ls_protection TO lt_protections. DESCRIBE TABLE lt_protections LINES ls_cellxfs-protectionid. ENDIF. ls_cellxfs-applyprotection = 1. ENDIF. SUBTRACT 1 FROM ls_cellxfs-protectionid. * Compress number formats "----------- IF ls_numfmt-numfmt NE zcl_excel_style_number_format=>c_format_date_std." and ls_numfmt-NUMFMT ne 'STD_NDEC'. " ALE Changes on going "--- IF ls_numfmt IS NOT INITIAL. * issue #389 - Problem with built-in format ( those are not being taken account of ) * There are some internal number formats built-in into EXCEL * Use these instead of duplicating the entries here, since they seem to be language-dependant and adjust to user settings in excel READ TABLE lt_built_in_num_formats ASSIGNING <ls_built_in_format> WITH TABLE KEY num_format = ls_numfmt-numfmt. IF sy-subrc = 0. ls_cellxfs-numfmtid = <ls_built_in_format>-id. ELSE. READ TABLE lt_numfmts FROM ls_numfmt TRANSPORTING NO FIELDS. IF sy-subrc EQ 0. ls_cellxfs-numfmtid = sy-tabix. ELSE. APPEND ls_numfmt TO lt_numfmts. DESCRIBE TABLE lt_numfmts LINES ls_cellxfs-numfmtid. ENDIF. ADD zcl_excel_common=>c_excel_numfmt_offset TO ls_cellxfs-numfmtid. " Add OXML offset for custom styles ENDIF. ls_cellxfs-applynumberformat = 1. ELSE. ls_cellxfs-applynumberformat = 0. ENDIF. "----------- " ALE changes on going ELSE. ls_cellxfs-applynumberformat = 1. IF ls_numfmt-numfmt EQ zcl_excel_style_number_format=>c_format_date_std. ls_cellxfs-numfmtid = 14. * elseif ls_numfmt-NUMFMT eq 'STD_NDEC'. * ls_cellxfs-numfmtid = 2. ENDIF. ENDIF. "--- IF ls_cellxfs-fontid NE 0. ls_cellxfs-applyfont = 1. ELSE. ls_cellxfs-applyfont = 0. ENDIF. IF ls_cellxfs-alignmentid NE 0. ls_cellxfs-applyalignment = 1. ELSE. ls_cellxfs-applyalignment = 0. ENDIF. IF ls_cellxfs-fillid NE 0. ls_cellxfs-applyfill = 1. ELSE. ls_cellxfs-applyfill = 0. ENDIF. IF ls_cellxfs-borderid NE 0. ls_cellxfs-applyborder = 1. ELSE. ls_cellxfs-applyborder = 0. ENDIF. * Remap styles READ TABLE lt_cellxfs FROM ls_cellxfs TRANSPORTING NO FIELDS. IF sy-subrc EQ 0. ls_styles_mapping-style = sy-tabix. ELSE. APPEND ls_cellxfs TO lt_cellxfs. DESCRIBE TABLE lt_cellxfs LINES ls_styles_mapping-style. ENDIF. SUBTRACT 1 FROM ls_styles_mapping-style. ls_styles_mapping-guid = lo_style->get_guid( ). APPEND ls_styles_mapping TO me->styles_mapping. ENDWHILE. " create numfmt elements LOOP AT lt_numfmts INTO ls_numfmt. lo_element_numfmt = lo_document->create_simple_element( name = lc_xml_node_numfmt parent = lo_document ). lv_value = sy-tabix + zcl_excel_common=>c_excel_numfmt_offset. CONDENSE lv_value. lo_element_numfmt->set_attribute_ns( name = lc_xml_attr_numfmtid value = lv_value ). lv_value = ls_numfmt-numfmt. * REPLACE ALL OCCURRENCES OF '.' IN lv_value WITH '\.'. lo_element_numfmt->set_attribute_ns( name = lc_xml_attr_formatcode value = lv_value ). lo_element_numfmts->append_child( new_child = lo_element_numfmt ). ENDLOOP. " create font elements LOOP AT lt_fonts INTO ls_font. lo_element_font = lo_document->create_simple_element( name = lc_xml_node_font parent = lo_document ). IF ls_font-bold EQ abap_true. lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_b parent = lo_document ). lo_element_font->append_child( new_child = lo_sub_element ). ENDIF. IF ls_font-italic EQ abap_true. lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_i parent = lo_document ). lo_element_font->append_child( new_child = lo_sub_element ). ENDIF. IF ls_font-underline EQ abap_true. lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_u parent = lo_document ). lv_value = ls_font-underline_mode. lo_sub_element->set_attribute_ns( name = lc_xml_attr_val value = lv_value ). lo_element_font->append_child( new_child = lo_sub_element ). ENDIF. IF ls_font-strikethrough EQ abap_true. lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_strike parent = lo_document ). lo_element_font->append_child( new_child = lo_sub_element ). ENDIF. "size lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_sz parent = lo_document ). lv_value = ls_font-size. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_sub_element->set_attribute_ns( name = lc_xml_attr_val value = lv_value ). lo_element_font->append_child( new_child = lo_sub_element ). "color create_xl_styles_color_node( io_document = lo_document io_parent = lo_element_font is_color = ls_font-color ). "name lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_name parent = lo_document ). lv_value = ls_font-name. lo_sub_element->set_attribute_ns( name = lc_xml_attr_val value = lv_value ). lo_element_font->append_child( new_child = lo_sub_element ). "family lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_family parent = lo_document ). lv_value = ls_font-family. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_sub_element->set_attribute_ns( name = lc_xml_attr_val value = lv_value ). lo_element_font->append_child( new_child = lo_sub_element ). "scheme IF ls_font-scheme IS NOT INITIAL. lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_scheme parent = lo_document ). lv_value = ls_font-scheme. lo_sub_element->set_attribute_ns( name = lc_xml_attr_val value = lv_value ). lo_element_font->append_child( new_child = lo_sub_element ). ENDIF. lo_element_fonts->append_child( new_child = lo_element_font ). ENDLOOP. " create fill elements LOOP AT lt_fills INTO ls_fill. lo_element_fill = lo_document->create_simple_element( name = lc_xml_node_fill parent = lo_document ). IF ls_fill-gradtype IS NOT INITIAL. "gradient lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_gradientfill parent = lo_document ). IF ls_fill-gradtype-degree IS NOT INITIAL. lv_value = ls_fill-gradtype-degree. lo_sub_element->set_attribute_ns( name = lc_xml_attr_degree value = lv_value ). ENDIF. IF ls_fill-gradtype-type IS NOT INITIAL. lv_value = ls_fill-gradtype-type. lo_sub_element->set_attribute_ns( name = lc_xml_attr_type value = lv_value ). ENDIF. IF ls_fill-gradtype-bottom IS NOT INITIAL. lv_value = ls_fill-gradtype-bottom. lo_sub_element->set_attribute_ns( name = lc_xml_attr_bottom value = lv_value ). ENDIF. IF ls_fill-gradtype-top IS NOT INITIAL. lv_value = ls_fill-gradtype-top. lo_sub_element->set_attribute_ns( name = lc_xml_attr_top value = lv_value ). ENDIF. IF ls_fill-gradtype-right IS NOT INITIAL. lv_value = ls_fill-gradtype-right. lo_sub_element->set_attribute_ns( name = lc_xml_attr_right value = lv_value ). ENDIF. IF ls_fill-gradtype-left IS NOT INITIAL. lv_value = ls_fill-gradtype-left. lo_sub_element->set_attribute_ns( name = lc_xml_attr_left value = lv_value ). ENDIF. IF ls_fill-gradtype-position3 IS NOT INITIAL. "create <stop> elements for gradients, we can have 2 or 3 stops in each gradient lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_stop parent = lo_sub_element ). lv_value = ls_fill-gradtype-position1. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_position value = lv_value ). create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element_2 is_color = ls_fill-bgcolor iv_color_elem_name = lc_xml_node_color ). lo_sub_element->append_child( new_child = lo_sub_element_2 ). lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_stop parent = lo_sub_element ). lv_value = ls_fill-gradtype-position2. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_position value = lv_value ). create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element_2 is_color = ls_fill-fgcolor iv_color_elem_name = lc_xml_node_color ). lo_sub_element->append_child( new_child = lo_sub_element_2 ). lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_stop parent = lo_sub_element ). lv_value = ls_fill-gradtype-position3. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_position value = lv_value ). create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element_2 is_color = ls_fill-bgcolor iv_color_elem_name = lc_xml_node_color ). lo_sub_element->append_child( new_child = lo_sub_element_2 ). ELSE. "create <stop> elements for gradients, we can have 2 or 3 stops in each gradient lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_stop parent = lo_sub_element ). lv_value = ls_fill-gradtype-position1. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_position value = lv_value ). create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element_2 is_color = ls_fill-bgcolor iv_color_elem_name = lc_xml_node_color ). lo_sub_element->append_child( new_child = lo_sub_element_2 ). lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_stop parent = lo_sub_element ). lv_value = ls_fill-gradtype-position2. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_position value = lv_value ). create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element_2 is_color = ls_fill-fgcolor iv_color_elem_name = lc_xml_node_color ). lo_sub_element->append_child( new_child = lo_sub_element_2 ). ENDIF. ELSE. "pattern lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_patternfill parent = lo_document ). lv_value = ls_fill-filltype. lo_sub_element->set_attribute_ns( name = lc_xml_attr_patterntype value = lv_value ). " fgcolor create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element is_color = ls_fill-fgcolor iv_color_elem_name = lc_xml_node_fgcolor ). IF ls_fill-fgcolor-rgb IS INITIAL AND ls_fill-fgcolor-indexed EQ zcl_excel_style_color=>c_indexed_not_set AND ls_fill-fgcolor-theme EQ zcl_excel_style_color=>c_theme_not_set AND ls_fill-fgcolor-tint IS INITIAL AND ls_fill-bgcolor-indexed EQ zcl_excel_style_color=>c_indexed_sys_foreground. " bgcolor create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element is_color = ls_fill-bgcolor iv_color_elem_name = lc_xml_node_bgcolor ). ENDIF. ENDIF. lo_element_fill->append_child( new_child = lo_sub_element )."pattern lo_element_fills->append_child( new_child = lo_element_fill ). ENDLOOP. " create border elements LOOP AT lt_borders INTO ls_border. lo_element_border = lo_document->create_simple_element( name = lc_xml_node_border parent = lo_document ). IF ls_border-diagonalup IS NOT INITIAL. lv_value = ls_border-diagonalup. CONDENSE lv_value. lo_element_border->set_attribute_ns( name = lc_xml_attr_diagonalup value = lv_value ). ENDIF. IF ls_border-diagonaldown IS NOT INITIAL. lv_value = ls_border-diagonaldown. CONDENSE lv_value. lo_element_border->set_attribute_ns( name = lc_xml_attr_diagonaldown value = lv_value ). ENDIF. "left lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_left parent = lo_document ). IF ls_border-left_style IS NOT INITIAL. lv_value = ls_border-left_style. lo_sub_element->set_attribute_ns( name = lc_xml_attr_style value = lv_value ). ENDIF. create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element is_color = ls_border-left_color ). lo_element_border->append_child( new_child = lo_sub_element ). "right lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_right parent = lo_document ). IF ls_border-right_style IS NOT INITIAL. lv_value = ls_border-right_style. lo_sub_element->set_attribute_ns( name = lc_xml_attr_style value = lv_value ). ENDIF. create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element is_color = ls_border-right_color ). lo_element_border->append_child( new_child = lo_sub_element ). "top lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_top parent = lo_document ). IF ls_border-top_style IS NOT INITIAL. lv_value = ls_border-top_style. lo_sub_element->set_attribute_ns( name = lc_xml_attr_style value = lv_value ). ENDIF. create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element is_color = ls_border-top_color ). lo_element_border->append_child( new_child = lo_sub_element ). "bottom lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_bottom parent = lo_document ). IF ls_border-bottom_style IS NOT INITIAL. lv_value = ls_border-bottom_style. lo_sub_element->set_attribute_ns( name = lc_xml_attr_style value = lv_value ). ENDIF. create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element is_color = ls_border-bottom_color ). lo_element_border->append_child( new_child = lo_sub_element ). "diagonal lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_diagonal parent = lo_document ). IF ls_border-diagonal_style IS NOT INITIAL. lv_value = ls_border-diagonal_style. lo_sub_element->set_attribute_ns( name = lc_xml_attr_style value = lv_value ). ENDIF. create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element is_color = ls_border-diagonal_color ). lo_element_border->append_child( new_child = lo_sub_element ). lo_element_borders->append_child( new_child = lo_element_border ). ENDLOOP. " update attribute "count" DESCRIBE TABLE lt_fonts LINES lv_fonts_count. MOVE lv_fonts_count TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_fonts->set_attribute_ns( name = lc_xml_attr_count value = lv_value ). DESCRIBE TABLE lt_fills LINES lv_fills_count. MOVE lv_fills_count TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_fills->set_attribute_ns( name = lc_xml_attr_count value = lv_value ). DESCRIBE TABLE lt_borders LINES lv_borders_count. MOVE lv_borders_count TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_borders->set_attribute_ns( name = lc_xml_attr_count value = lv_value ). DESCRIBE TABLE lt_cellxfs LINES lv_cellxfs_count. MOVE lv_cellxfs_count TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_cellxfs->set_attribute_ns( name = lc_xml_attr_count value = lv_value ). " Append to root node lo_element_root->append_child( new_child = lo_element_numfmts ). lo_element_root->append_child( new_child = lo_element_fonts ). lo_element_root->append_child( new_child = lo_element_fills ). lo_element_root->append_child( new_child = lo_element_borders ). " cellstylexfs node lo_element = lo_document->create_simple_element( name = lc_xml_node_cellstylexfs parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_count value = '1' ). lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_xf parent = lo_document ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_numfmtid value = c_off ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_fontid value = c_off ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_fillid value = c_off ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_borderid value = c_off ). lo_element->append_child( new_child = lo_sub_element ). lo_element_root->append_child( new_child = lo_element ). LOOP AT lt_cellxfs INTO ls_cellxfs. lo_element = lo_document->create_simple_element( name = lc_xml_node_xf parent = lo_document ). MOVE ls_cellxfs-numfmtid TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_numfmtid value = lv_value ). MOVE ls_cellxfs-fontid TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_fontid value = lv_value ). MOVE ls_cellxfs-fillid TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_fillid value = lv_value ). MOVE ls_cellxfs-borderid TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_borderid value = lv_value ). MOVE ls_cellxfs-xfid TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_xfid value = lv_value ). IF ls_cellxfs-applynumberformat EQ 1. MOVE ls_cellxfs-applynumberformat TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_applynumberformat value = lv_value ). ENDIF. IF ls_cellxfs-applyfont EQ 1. MOVE ls_cellxfs-applyfont TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_applyfont value = lv_value ). ENDIF. IF ls_cellxfs-applyfill EQ 1. MOVE ls_cellxfs-applyfill TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_applyfill value = lv_value ). ENDIF. IF ls_cellxfs-applyborder EQ 1. MOVE ls_cellxfs-applyborder TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_applyborder value = lv_value ). ENDIF. IF ls_cellxfs-applyalignment EQ 1. " depends on each style not for all the sheet MOVE ls_cellxfs-applyalignment TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_applyalignment value = lv_value ). lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_alignment parent = lo_document ). ADD 1 TO ls_cellxfs-alignmentid. "Table index starts from 1 READ TABLE lt_alignments INTO ls_alignment INDEX ls_cellxfs-alignmentid. SUBTRACT 1 FROM ls_cellxfs-alignmentid. IF ls_alignment-horizontal IS NOT INITIAL. MOVE ls_alignment-horizontal TO lv_value. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_horizontal value = lv_value ). ENDIF. IF ls_alignment-vertical IS NOT INITIAL. MOVE ls_alignment-vertical TO lv_value. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_vertical value = lv_value ). ENDIF. IF ls_alignment-wraptext EQ abap_true. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_wraptext value = c_on ). ENDIF. IF ls_alignment-textrotation IS NOT INITIAL. MOVE ls_alignment-textrotation TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_textrotation value = lv_value ). ENDIF. IF ls_alignment-shrinktofit EQ abap_true. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_shrinktofit value = c_on ). ENDIF. IF ls_alignment-indent IS NOT INITIAL. MOVE ls_alignment-indent TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_indent value = lv_value ). ENDIF. lo_element->append_child( new_child = lo_sub_element_2 ). ENDIF. IF ls_cellxfs-applyprotection EQ 1. MOVE ls_cellxfs-applyprotection TO lv_value. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_applyprotection value = lv_value ). lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_protection parent = lo_document ). ADD 1 TO ls_cellxfs-protectionid. "Table index starts from 1 READ TABLE lt_protections INTO ls_protection INDEX ls_cellxfs-protectionid. SUBTRACT 1 FROM ls_cellxfs-protectionid. IF ls_protection-locked IS NOT INITIAL. MOVE ls_protection-locked TO lv_value. CONDENSE lv_value. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_locked value = lv_value ). ENDIF. IF ls_protection-hidden IS NOT INITIAL. MOVE ls_protection-hidden TO lv_value. CONDENSE lv_value. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_hidden value = lv_value ). ENDIF. lo_element->append_child( new_child = lo_sub_element_2 ). ENDIF. lo_element_cellxfs->append_child( new_child = lo_element ). ENDLOOP. lo_element_root->append_child( new_child = lo_element_cellxfs ). " cellStyles node lo_element = lo_document->create_simple_element( name = lc_xml_node_cellstyles parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_count value = '1' ). lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_cellstyle parent = lo_document ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_name value = 'Normal' ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_xfid value = c_off ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_builtinid value = c_off ). lo_element->append_child( new_child = lo_sub_element ). lo_element_root->append_child( new_child = lo_element ). " dxfs node lo_element = lo_document->create_simple_element( name = lc_xml_node_dxfs parent = lo_document ). lo_iterator = me->excel->get_worksheets_iterator( ). " get sheets WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_worksheet ?= lo_iterator->if_object_collection_iterator~get_next( ). " Conditional formatting styles into exch sheet lo_iterator2 = lo_worksheet->get_style_cond_iterator( ). WHILE lo_iterator2->if_object_collection_iterator~has_next( ) EQ abap_true. lo_style_cond ?= lo_iterator2->if_object_collection_iterator~get_next( ). CASE lo_style_cond->rule. * begin of change issue #366 - missing conditional rules: top10, move dfx-styles to own method WHEN zcl_excel_style_cond=>c_rule_cellis. me->create_dxf_style( EXPORTING iv_cell_style = lo_style_cond->mode_cellis-cell_style io_dxf_element = lo_element io_ixml_document = lo_document it_cellxfs = lt_cellxfs it_fonts = lt_fonts it_fills = lt_fills CHANGING cv_dfx_count = lv_dfx_count ). WHEN zcl_excel_style_cond=>c_rule_expression. me->create_dxf_style( EXPORTING iv_cell_style = lo_style_cond->mode_expression-cell_style io_dxf_element = lo_element io_ixml_document = lo_document it_cellxfs = lt_cellxfs it_fonts = lt_fonts it_fills = lt_fills CHANGING cv_dfx_count = lv_dfx_count ). WHEN zcl_excel_style_cond=>c_rule_top10. me->create_dxf_style( EXPORTING iv_cell_style = lo_style_cond->mode_top10-cell_style io_dxf_element = lo_element io_ixml_document = lo_document it_cellxfs = lt_cellxfs it_fonts = lt_fonts it_fills = lt_fills CHANGING cv_dfx_count = lv_dfx_count ). WHEN zcl_excel_style_cond=>c_rule_above_average. me->create_dxf_style( EXPORTING iv_cell_style = lo_style_cond->mode_above_average-cell_style io_dxf_element = lo_element io_ixml_document = lo_document it_cellxfs = lt_cellxfs it_fonts = lt_fonts it_fills = lt_fills CHANGING cv_dfx_count = lv_dfx_count ). * begin of change issue #366 - missing conditional rules: top10, move dfx-styles to own method WHEN OTHERS. CONTINUE. ENDCASE. ENDWHILE. ENDWHILE. lv_value = lv_dfx_count. CONDENSE lv_value. lo_element->set_attribute_ns( name = lc_xml_attr_count value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " tableStyles node lo_element = lo_document->create_simple_element( name = lc_xml_node_tablestyles parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_count value = '0' ). lo_element->set_attribute_ns( name = lc_xml_attr_defaulttablestyle value = zcl_excel_table=>builtinstyle_medium9 ). lo_element->set_attribute_ns( name = lc_xml_attr_defaultpivotstyle value = zcl_excel_table=>builtinstyle_pivot_light16 ). lo_element_root->append_child( new_child = lo_element ). "write legacy color palette in case any indexed color was changed IF excel->legacy_palette->is_modified( ) = abap_true. lo_element = lo_document->create_simple_element( name = lc_xml_node_colors parent = lo_document ). lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_indexedcolors parent = lo_document ). lo_element->append_child( new_child = lo_sub_element ). lt_colors = excel->legacy_palette->get_colors( ). LOOP AT lt_colors INTO ls_color. lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_rgbcolor parent = lo_document ). lv_value = ls_color. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_rgb value = lv_value ). lo_sub_element->append_child( new_child = lo_sub_element_2 ). ENDLOOP. lo_element_root->append_child( new_child = lo_element ). ENDIF. ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). ENDMETHOD. METHOD create_xl_styles_color_node. DATA: lo_sub_element TYPE REF TO if_ixml_element, lv_value TYPE string. CONSTANTS: lc_xml_attr_theme TYPE string VALUE 'theme', lc_xml_attr_rgb TYPE string VALUE 'rgb', lc_xml_attr_indexed TYPE string VALUE 'indexed', lc_xml_attr_tint TYPE string VALUE 'tint'. "add node only if at least one attribute is set CHECK is_color-rgb IS NOT INITIAL OR is_color-indexed <> zcl_excel_style_color=>c_indexed_not_set OR is_color-theme <> zcl_excel_style_color=>c_theme_not_set OR is_color-tint IS NOT INITIAL. lo_sub_element = io_document->create_simple_element( name = iv_color_elem_name parent = io_parent ). IF is_color-rgb IS NOT INITIAL. lv_value = is_color-rgb. lo_sub_element->set_attribute_ns( name = lc_xml_attr_rgb value = lv_value ). ENDIF. IF is_color-indexed <> zcl_excel_style_color=>c_indexed_not_set. lv_value = zcl_excel_common=>number_to_excel_string( is_color-indexed ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_indexed value = lv_value ). ENDIF. IF is_color-theme <> zcl_excel_style_color=>c_theme_not_set. lv_value = zcl_excel_common=>number_to_excel_string( is_color-theme ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_theme value = lv_value ). ENDIF. IF is_color-tint IS NOT INITIAL. lv_value = zcl_excel_common=>number_to_excel_string( is_color-tint ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_tint value = lv_value ). ENDIF. io_parent->append_child( new_child = lo_sub_element ). ENDMETHOD. METHOD create_xl_table. DATA: lc_xml_node_table TYPE string VALUE 'table', lc_xml_node_relationship TYPE string VALUE 'Relationship', " Node attributes lc_xml_attr_id TYPE string VALUE 'id', lc_xml_attr_name TYPE string VALUE 'name', lc_xml_attr_display_name TYPE string VALUE 'displayName', lc_xml_attr_ref TYPE string VALUE 'ref', lc_xml_attr_totals TYPE string VALUE 'totalsRowShown', " Node namespace lc_xml_node_table_ns TYPE string VALUE 'http://schemas.openxmlformats.org/spreadsheetml/2006/main', " Node id lc_xml_node_ridx_id TYPE string VALUE 'rId#'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_element2 TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer, lv_table_name TYPE string, lv_id TYPE i, lv_match TYPE i, lv_ref TYPE string, lv_value TYPE string, lv_num_columns TYPE i, ls_fieldcat TYPE zexcel_s_fieldcatalog. ********************************************************************** * STEP 1: Create xml lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). ********************************************************************** * STEP 3: Create main node table lo_element_root = lo_document->create_simple_element( name = lc_xml_node_table parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_table_ns ). lv_id = io_table->get_id( ). lv_value = zcl_excel_common=>number_to_excel_string( ip_value = lv_id ). lo_element_root->set_attribute_ns( name = lc_xml_attr_id value = lv_value ). FIND ALL OCCURRENCES OF REGEX '[^_a-zA-Z0-9]' IN io_table->settings-table_name IGNORING CASE MATCH COUNT lv_match. IF io_table->settings-table_name IS NOT INITIAL AND lv_match EQ 0. lv_table_name = io_table->settings-table_name. ELSE. lv_table_name = io_table->get_name( ). ENDIF. lo_element_root->set_attribute_ns( name = lc_xml_attr_name value = lv_table_name ). lo_element_root->set_attribute_ns( name = lc_xml_attr_display_name value = lv_table_name ). lv_ref = io_table->get_reference( ). lo_element_root->set_attribute_ns( name = lc_xml_attr_ref value = lv_ref ). IF io_table->has_totals( ) = abap_true. lo_element_root->set_attribute_ns( name = 'totalsRowCount' value = '1' ). ELSE. lo_element_root->set_attribute_ns( name = lc_xml_attr_totals value = '0' ). ENDIF. ********************************************************************** * STEP 4: Create subnodes " autoFilter IF io_table->settings-nofilters EQ abap_false. lo_element = lo_document->create_simple_element( name = 'autoFilter' parent = lo_document ). lv_ref = io_table->get_reference( ip_include_totals_row = abap_false ). lo_element->set_attribute_ns( name = 'ref' value = lv_ref ). lo_element_root->append_child( new_child = lo_element ). ENDIF. "columns lo_element = lo_document->create_simple_element( name = 'tableColumns' parent = lo_document ). * lo_columns = io_table->get_columns( ). LOOP AT io_table->fieldcat INTO ls_fieldcat WHERE dynpfld = abap_true. ADD 1 TO lv_num_columns. ENDLOOP. lv_value = lv_num_columns. CONDENSE lv_value. lo_element->set_attribute_ns( name = 'count' value = lv_value ). lo_element_root->append_child( new_child = lo_element ). LOOP AT io_table->fieldcat INTO ls_fieldcat WHERE dynpfld = abap_true. lo_element2 = lo_document->create_simple_element_ns( name = 'tableColumn' parent = lo_element ). lv_value = ls_fieldcat-position. SHIFT lv_value LEFT DELETING LEADING '0'. lo_element2->set_attribute_ns( name = 'id' value = lv_value ). lv_value = ls_fieldcat-scrtext_l. lo_element2->set_attribute_ns( name = 'name' value = lv_value ). IF ls_fieldcat-totals_function IS NOT INITIAL. lo_element2->set_attribute_ns( name = 'totalsRowFunction' value = ls_fieldcat-totals_function ). ENDIF. lo_element->append_child( new_child = lo_element2 ). ENDLOOP. lo_element = lo_document->create_simple_element( name = 'tableStyleInfo' parent = lo_element_root ). lo_element->set_attribute_ns( name = 'name' value = io_table->settings-table_style ). lo_element->set_attribute_ns( name = 'showFirstColumn' value = '0' ). lo_element->set_attribute_ns( name = 'showLastColumn' value = '0' ). IF io_table->settings-show_row_stripes = abap_true. lv_value = '1'. ELSE. lv_value = '0'. ENDIF. lo_element->set_attribute_ns( name = 'showRowStripes' value = lv_value ). IF io_table->settings-show_column_stripes = abap_true. lv_value = '1'. ELSE. lv_value = '0'. ENDIF. lo_element->set_attribute_ns( name = 'showColumnStripes' value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). ENDMETHOD. method create_xl_theme. data: lo_theme type ref to zcl_excel_theme. excel->get_theme( importing eo_theme = lo_theme ). if lo_theme is initial. create object lo_theme. endif. ep_content = lo_theme->write_theme( ). endmethod. METHOD create_xl_workbook. *--------------------------------------------------------------------* * issue #230 - Pimp my Code * - Stefan Schmoecker, (done) 2012-11-07 * - ... * changes: aligning code * adding comments to explain what we are trying to achieve *--------------------------------------------------------------------* * issue#235 - repeat rows/columns * - Stefan Schmoecker, 2012-12-01 * changes: correction of pointer to localSheetId *--------------------------------------------------------------------* ** Constant node name DATA: lc_xml_node_workbook TYPE string VALUE 'workbook', lc_xml_node_fileversion TYPE string VALUE 'fileVersion', lc_xml_node_workbookpr TYPE string VALUE 'workbookPr', lc_xml_node_bookviews TYPE string VALUE 'bookViews', lc_xml_node_workbookview TYPE string VALUE 'workbookView', lc_xml_node_sheets TYPE string VALUE 'sheets', lc_xml_node_sheet TYPE string VALUE 'sheet', lc_xml_node_calcpr TYPE string VALUE 'calcPr', lc_xml_node_workbookprotection TYPE string VALUE 'workbookProtection', lc_xml_node_definednames TYPE string VALUE 'definedNames', lc_xml_node_definedname TYPE string VALUE 'definedName', " Node attributes lc_xml_attr_appname TYPE string VALUE 'appName', lc_xml_attr_lastedited TYPE string VALUE 'lastEdited', lc_xml_attr_lowestedited TYPE string VALUE 'lowestEdited', lc_xml_attr_rupbuild TYPE string VALUE 'rupBuild', lc_xml_attr_xwindow TYPE string VALUE 'xWindow', lc_xml_attr_ywindow TYPE string VALUE 'yWindow', lc_xml_attr_windowwidth TYPE string VALUE 'windowWidth', lc_xml_attr_windowheight TYPE string VALUE 'windowHeight', lc_xml_attr_activetab TYPE string VALUE 'activeTab', lc_xml_attr_name TYPE string VALUE 'name', lc_xml_attr_sheetid TYPE string VALUE 'sheetId', lc_xml_attr_state TYPE string VALUE 'state', lc_xml_attr_id TYPE string VALUE 'id', lc_xml_attr_calcid TYPE string VALUE 'calcId', lc_xml_attr_lockrevision TYPE string VALUE 'lockRevision', lc_xml_attr_lockstructure TYPE string VALUE 'lockStructure', lc_xml_attr_lockwindows TYPE string VALUE 'lockWindows', lc_xml_attr_revisionspassword TYPE string VALUE 'revisionsPassword', lc_xml_attr_workbookpassword TYPE string VALUE 'workbookPassword', lc_xml_attr_hidden TYPE string VALUE 'hidden', lc_xml_attr_localsheetid TYPE string VALUE 'localSheetId', " Node namespace lc_r_ns TYPE string VALUE 'r', lc_xml_node_ns TYPE string VALUE 'http://schemas.openxmlformats.org/spreadsheetml/2006/main', lc_xml_node_r_ns TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships', " Node id lc_xml_node_ridx_id TYPE string VALUE 'rId#'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_element_range TYPE REF TO if_ixml_element, lo_sub_element TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_iterator_range TYPE REF TO cl_object_collection_iterator, lo_worksheet TYPE REF TO zcl_excel_worksheet, lo_range TYPE REF TO zcl_excel_range, lo_autofilters TYPE REF TO zcl_excel_autofilters, lo_autofilter TYPE REF TO zcl_excel_autofilter. DATA: lv_xml_node_ridx_id TYPE string, lv_value TYPE string, lv_syindex TYPE string, l_guid TYPE uuid, lv_active_sheet TYPE zexcel_active_worksheet. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). ********************************************************************** * STEP 3: Create main node lo_element_root = lo_document->create_simple_element( name = lc_xml_node_workbook parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_ns ). lo_element_root->set_attribute_ns( name = 'xmlns:r' value = lc_xml_node_r_ns ). ********************************************************************** * STEP 4: Create subnode " fileVersion node lo_element = lo_document->create_simple_element( name = lc_xml_node_fileversion parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_appname value = 'xl' ). lo_element->set_attribute_ns( name = lc_xml_attr_lastedited value = '4' ). lo_element->set_attribute_ns( name = lc_xml_attr_lowestedited value = '4' ). lo_element->set_attribute_ns( name = lc_xml_attr_rupbuild value = '4506' ). lo_element_root->append_child( new_child = lo_element ). " fileVersion node lo_element = lo_document->create_simple_element( name = lc_xml_node_workbookpr parent = lo_document ). * lo_element->set_attribute_ns( name = lc_xml_attr_themeversion * value = '124226' ). lo_element_root->append_child( new_child = lo_element ). " workbookProtection node IF me->excel->zif_excel_book_protection~protected EQ abap_true. lo_element = lo_document->create_simple_element( name = lc_xml_node_workbookprotection parent = lo_document ). MOVE me->excel->zif_excel_book_protection~workbookpassword TO lv_value. IF lv_value IS NOT INITIAL. lo_element->set_attribute_ns( name = lc_xml_attr_workbookpassword value = lv_value ). ENDIF. MOVE me->excel->zif_excel_book_protection~revisionspassword TO lv_value. IF lv_value IS NOT INITIAL. lo_element->set_attribute_ns( name = lc_xml_attr_revisionspassword value = lv_value ). ENDIF. MOVE me->excel->zif_excel_book_protection~lockrevision TO lv_value. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_lockrevision value = lv_value ). MOVE me->excel->zif_excel_book_protection~lockstructure TO lv_value. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_lockstructure value = lv_value ). MOVE me->excel->zif_excel_book_protection~lockwindows TO lv_value. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_lockwindows value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ENDIF. " bookviews node lo_element = lo_document->create_simple_element( name = lc_xml_node_bookviews parent = lo_document ). " bookview node lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_workbookview parent = lo_document ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_xwindow value = '120' ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_ywindow value = '120' ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_windowwidth value = '19035' ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_windowheight value = '8445' ). " Set Active Sheet lv_active_sheet = excel->get_active_sheet_index( ). * issue #365 - test if sheet exists - otherwise set active worksheet to 1 lo_worksheet = excel->get_worksheet_by_index( lv_active_sheet ). IF lo_worksheet IS NOT BOUND. lv_active_sheet = 1. excel->SET_ACTIVE_SHEET_INDEX( lv_active_sheet ). ENDIF. IF lv_active_sheet > 1. lv_active_sheet = lv_active_sheet - 1. lv_value = lv_active_sheet. CONDENSE lv_value. lo_sub_element->set_attribute_ns( name = lc_xml_attr_activetab value = lv_value ). ENDIF. lo_element->append_child( new_child = lo_sub_element )." bookview node lo_element_root->append_child( new_child = lo_element )." bookviews node " sheets node lo_element = lo_document->create_simple_element( name = lc_xml_node_sheets parent = lo_document ). lo_iterator = excel->get_worksheets_iterator( ). " ranges node lo_element_range = lo_document->create_simple_element( name = lc_xml_node_definednames " issue 163 + parent = lo_document ). " issue 163 + WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. " sheet node lo_sub_element = lo_document->create_simple_element_ns( name = lc_xml_node_sheet parent = lo_document ). lo_worksheet ?= lo_iterator->if_object_collection_iterator~get_next( ). lv_syindex = sy-index. " question by Stefan Schmöcker 2012-12-02: sy-index seems to do the job - but is it proven to work or purely coincedence lv_value = lo_worksheet->get_title( ). SHIFT lv_syindex RIGHT DELETING TRAILING space. SHIFT lv_syindex LEFT DELETING LEADING space. lv_xml_node_ridx_id = lc_xml_node_ridx_id. REPLACE ALL OCCURRENCES OF '#' IN lv_xml_node_ridx_id WITH lv_syindex. lo_sub_element->set_attribute_ns( name = lc_xml_attr_name value = lv_value ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_sheetid value = lv_syindex ). IF lo_worksheet->zif_excel_sheet_properties~hidden EQ zif_excel_sheet_properties=>c_hidden. lo_sub_element->set_attribute_ns( name = lc_xml_attr_state value = 'hidden' ). ELSEIF lo_worksheet->zif_excel_sheet_properties~hidden EQ zif_excel_sheet_properties=>c_veryhidden. lo_sub_element->set_attribute_ns( name = lc_xml_attr_state value = 'veryHidden' ). ENDIF. lo_sub_element->set_attribute_ns( name = lc_xml_attr_id prefix = lc_r_ns value = lv_xml_node_ridx_id ). lo_element->append_child( new_child = lo_sub_element ). " sheet node " issue 163 >>> lo_iterator_range = lo_worksheet->get_ranges_iterator( ). *--------------------------------------------------------------------* * Defined names sheetlocal: Ranges, Repeat rows and columns *--------------------------------------------------------------------* WHILE lo_iterator_range->if_object_collection_iterator~has_next( ) EQ abap_true. " range node lo_sub_element = lo_document->create_simple_element_ns( name = lc_xml_node_definedname parent = lo_document ). lo_range ?= lo_iterator_range->if_object_collection_iterator~get_next( ). lv_value = lo_range->name. lo_sub_element->set_attribute_ns( name = lc_xml_attr_name value = lv_value ). * lo_sub_element->set_attribute_ns( name = lc_xml_attr_localsheetid "del #235 Repeat rows/cols - EXCEL starts couting from zero * value = lv_xml_node_ridx_id ). "del #235 Repeat rows/cols - and needs absolute referencing to localSheetId lv_value = lv_syindex - 1. "ins #235 Repeat rows/cols CONDENSE lv_value NO-GAPS. "ins #235 Repeat rows/cols lo_sub_element->set_attribute_ns( name = lc_xml_attr_localsheetid value = lv_value ). lv_value = lo_range->get_value( ). lo_sub_element->set_value( value = lv_value ). lo_element_range->append_child( new_child = lo_sub_element ). " range node ENDWHILE. " issue 163 <<< ENDWHILE. lo_element_root->append_child( new_child = lo_element )." sheets node *--------------------------------------------------------------------* * Defined names workbookgolbal: Ranges *--------------------------------------------------------------------* * " ranges node * lo_element = lo_document->create_simple_element( name = lc_xml_node_definednames " issue 163 - * parent = lo_document ). " issue 163 - lo_iterator = excel->get_ranges_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. " range node lo_sub_element = lo_document->create_simple_element_ns( name = lc_xml_node_definedname parent = lo_document ). lo_range ?= lo_iterator->if_object_collection_iterator~get_next( ). lv_value = lo_range->name. lo_sub_element->set_attribute_ns( name = lc_xml_attr_name value = lv_value ). lv_value = lo_range->get_value( ). lo_sub_element->set_value( value = lv_value ). lo_element_range->append_child( new_child = lo_sub_element ). " range node ENDWHILE. *--------------------------------------------------------------------* * Defined names - Autofilters ( also sheetlocal ) *--------------------------------------------------------------------* lo_autofilters = excel->get_autofilters_reference( ). IF lo_autofilters->is_empty( ) = abap_false. lo_iterator = excel->get_worksheets_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_worksheet ?= lo_iterator->if_object_collection_iterator~get_next( ). lv_syindex = sy-index - 1 . l_guid = lo_worksheet->get_guid( ). lo_autofilter = lo_autofilters->get( i_sheet_guid = l_guid ) . IF lo_autofilter IS BOUND. lo_sub_element = lo_document->create_simple_element_ns( name = lc_xml_node_definedname parent = lo_document ). lv_value = lo_autofilters->c_autofilter. lo_sub_element->set_attribute_ns( name = lc_xml_attr_name value = lv_value ). lv_value = lv_syindex. CONDENSE lv_value NO-GAPS. lo_sub_element->set_attribute_ns( name = lc_xml_attr_localsheetid value = lv_value ). lv_value = '1'. " Always hidden lo_sub_element->set_attribute_ns( name = lc_xml_attr_hidden value = lv_value ). lv_value = lo_autofilter->get_filter_reference( ). lo_sub_element->set_value( value = lv_value ). lo_element_range->append_child( new_child = lo_sub_element ). " range node ENDIF. ENDWHILE. ENDIF. lo_element_root->append_child( new_child = lo_element_range ). " ranges node " calcPr node lo_element = lo_document->create_simple_element( name = lc_xml_node_calcpr parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_calcid value = '125725' ). lo_element_root->append_child( new_child = lo_element ). ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). ENDMETHOD. method FLAG2BOOL. IF ip_flag EQ abap_true. ep_boolean = 'true'. ELSE. ep_boolean = 'false'. ENDIF. endmethod. METHOD get_shared_string_index. DATA ls_shared_string TYPE zexcel_s_shared_string. * READ TABLE shared_strings INTO ls_shared_string WITH KEY string_value = ip_cell_value BINARY SEARCH. READ TABLE shared_strings INTO ls_shared_string WITH TABLE KEY string_value = ip_cell_value. ep_index = ls_shared_string-string_no. ENDMETHOD. METHOD render_ixml_element_no_header. * DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, * lo_element_root type ref to if_ixml_element, * lo_element type ref to if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer. DATA: lv_content TYPE string. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). lo_document->set_declaration( abap_false ). " NO header!! lo_document->append_child( new_child = iv_ixml_element ). ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). * lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_ostream = lo_streamfactory->create_ostream_cstring( string = lv_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). * write:/ lv_content. lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = rv_xstring ). * lo_ostream = lo_streamfactory->create_ostream_cstring( string = lv_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). * rv_xstring = lv_contentx. ENDMETHOD. method ZIF_EXCEL_WRITER~WRITE_FILE. me->excel = io_excel. ep_file = me->create( ). endmethod. ENDCLASS.
[ 4871, 1168, 5097, 62, 6369, 34, 3698, 62, 18564, 2043, 1137, 62, 12726, 6770, 198, 220, 1171, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 198, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 6369, 34, 3698, 62, 18564, 2043, 1137, 62, 12726, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 20314, 1168, 5064, 62, 6369, 34, 3698, 62, 18564, 2043, 1137, 764, 198, 24326, 2665, 13, 628, 220, 1366, 32947, 62, 9693, 36, 2767, 62, 26947, 62, 55, 18601, 2751, 2099, 1395, 18601, 2751, 764, 198, 220, 1366, 32947, 62, 9693, 36, 2767, 62, 26947, 62, 55, 18601, 2751, 62, 35, 5883, 26708, 2099, 1395, 18601, 2751, 764, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 5097, 62, 6369, 34, 3698, 62, 18564, 2043, 1137, 62, 12726, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 38491, 327, 62, 37815, 3525, 62, 9936, 47, 1546, 2099, 19269, 2751, 1988, 44438, 19746, 62, 31431, 4083, 19875, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 38715, 4805, 30737, 62, 24805, 2099, 19269, 2751, 1988, 705, 15390, 2964, 862, 14, 1324, 13, 19875, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 38715, 4805, 30737, 62, 34, 6965, 2099, 19269, 2751, 1988, 705, 15390, 2964, 862, 14, 7295, 13, 19875, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 16448, 6234, 9693, 47643, 2099, 19269, 2751, 1988, 705, 62, 2411, 82, 11757, 2411, 82, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 32457, 62, 34, 1847, 34, 3398, 29833, 2099, 19269, 2751, 1988, 705, 87, 75, 14, 9948, 66, 35491, 13, 19875, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 32457, 62, 35, 20530, 20754, 2099, 19269, 2751, 1988, 705, 87, 75, 14, 19334, 654, 14, 19334, 278, 2, 13, 19875, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 32457, 62, 35, 20530, 20754, 62, 2200, 6561, 2099, 19269, 2751, 1988, 705, 87, 75, 14, 19334, 654, 47835, 2411, 82, 14, 19334, 278, 2, 13, 19875, 13, 2411, 82, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 32457, 62, 16448, 6234, 9693, 47643, 2099, 19269, 2751, 1988, 705, 87, 75, 47835, 2411, 82, 14, 1818, 2070, 13, 19875, 13, 2411, 82, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 32457, 62, 9693, 1503, 1961, 18601, 20754, 2099, 19269, 2751, 1988, 705, 87, 75, 14, 28710, 13290, 654, 13, 19875, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 32457, 62, 9693, 36, 2767, 2099, 19269, 2751, 1988, 705, 87, 75, 14, 5225, 258, 1039, 14, 21760, 2, 13, 19875, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 32457, 62, 9693, 36, 2767, 62, 2200, 6561, 2099, 19269, 2751, 1988, 705, 87, 75, 14, 5225, 258, 1039, 47835, 2411, 82, 14, 21760, 2, 13, 19875, 13, 2411, 82, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 32457, 62, 2257, 56, 28378, 2099, 19269, 2751, 1988, 705, 87, 75, 14, 47720, 13, 19875, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 32457, 62, 4221, 3620, 36, 2099, 19269, 2751, 1988, 705, 87, 75, 14, 43810, 14, 43810, 16, 13, 19875, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 32457, 62, 33249, 39453, 2099, 19269, 2751, 1988, 705, 87, 75, 14, 1818, 2070, 13, 19875, 4458, 25113, 2943, 5626, 13918, 198, 220, 1366, 7788, 34, 3698, 2099, 1006, 284, 1168, 5097, 62, 6369, 34, 3698, 764, 198, 220, 1366, 39225, 1961, 62, 18601, 20754, 2099, 1168, 6369, 34, 3698, 62, 51, 62, 9693, 1503, 1961, 62, 18601, 2751, 764, 198, 220, 1366, 3563, 56, 28378, 62, 10943, 35, 62, 44, 24805, 2751, 2099, 1168, 6369, 34, 3698, 62, 51, 62, 2257, 56, 28378, 62, 10943, 35, 62, 44, 24805, 2751, 764, 198, 220, 1366, 3563, 56, 28378, 62, 44, 24805, 2751, 2099, 1168, 6369, 34, 3698, 62, 51, 62, 2257, 56, 28378, 62, 44, 24805, 2751, 764, 628, 220, 5050, 29244, 6158, 62, 32457, 62, 9693, 36, 2767, 62, 9693, 36, 2767, 62, 26947, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 9399, 62, 38715, 5883, 3525, 2099, 1006, 284, 16876, 62, 10426, 5805, 62, 38715, 5883, 3525, 198, 220, 220, 220, 220, 220, 5145, 9399, 62, 33249, 9693, 36, 2767, 2099, 1006, 284, 1168, 5097, 62, 6369, 34, 3698, 62, 33249, 9693, 36, 2767, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 49, 53, 62, 10426, 5805, 62, 9693, 36, 2767, 62, 26947, 62, 13252, 2394, 8, 2099, 1006, 284, 16876, 62, 10426, 5805, 62, 36, 2538, 10979, 764, 198, 220, 5050, 27841, 62, 37, 4261, 21250, 62, 26947, 62, 10468, 62, 57, 4061, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 9399, 62, 57, 4061, 2099, 1006, 284, 7852, 62, 6242, 2969, 62, 57, 4061, 764, 198, 220, 5050, 29244, 6158, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 8905, 62, 6369, 34, 3698, 8, 2099, 1395, 18601, 2751, 764, 198, 220, 5050, 29244, 6158, 62, 37815, 3525, 62, 9936, 47, 1546, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 8905, 62, 37815, 3525, 8, 2099, 1395, 18601, 2751, 764, 198, 220, 5050, 29244, 6158, 62, 38715, 4805, 30737, 62, 24805, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 8905, 62, 37815, 3525, 8, 2099, 1395, 18601, 2751, 764, 198, 220, 5050, 29244, 6158, 62, 38715, 4805, 30737, 62, 34, 6965, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 8905, 62, 37815, 3525, 8, 2099, 1395, 18601, 2751, 764, 198, 220, 5050, 29244, 6158, 62, 36227, 37, 62, 2257, 56, 2538, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 3824, 62, 5222, 3069, 62, 2257, 56, 2538, 2099, 1168, 6369, 34, 3698, 62, 5222, 3069, 62, 2257, 56, 2538, 198, 220, 220, 220, 220, 220, 5145, 9399, 62, 36227, 37, 62, 36, 2538, 10979, 2099, 1006, 284, 16876, 62, 10426 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_trs_customizing DEFINITION PUBLIC FINAL CREATE PRIVATE GLOBAL FRIENDS zcl_trs_tr_factory. PUBLIC SECTION. INTERFACES zif_trs_transport_request. ALIASES add_key_to_request FOR zif_trs_transport_request~add_key_to_request. METHODS: constructor. PROTECTED SECTION. PRIVATE SECTION. DATA: trs_fm_access TYPE REF TO zif_trs_fm_access, order TYPE trkorr, task TYPE trkorr. METHODS validate_e071k_input CHANGING l_e071k TYPE e071k RAISING zcx_trs_no_key zcx_trs_no_object_type zcx_trs_wrong_object_type. METHODS add_missing_e071k_input CHANGING l_e071k TYPE e071k. ENDCLASS. CLASS zcl_trs_customizing IMPLEMENTATION. METHOD constructor. " get transport order ( request ) and task trs_fm_access = zcl_trs_factory_facade=>get_trs_fm_access( ). trs_fm_access->get_request( EXPORTING i_order_type = 'W' i_task_type = 'Q' i_category = 'CUST' IMPORTING e_order = order e_task = task ). ENDMETHOD. METHOD zif_trs_transport_request~add_key_to_request. " some data may need to be changed DATA(l_e071k) = i_e071k. ********************************* * checks if everything is fine and the key can be added to the transport request me->validate_e071k_input( CHANGING l_e071k = l_e071k ). ********************************* * Missing stuff can be added me->add_missing_e071k_input( changing l_e071k = l_e071k ). trs_fm_access->check_transport( VALUE ko200( trkorr = space as4pos = 0 pgmid = 'R3TR' object = l_e071k-object objfunc = 'K' obj_name = l_e071k-objname ) ). trs_fm_access->insert_key( l_e071k ). ENDMETHOD. METHOD zif_trs_transport_request~delete_key_from_request. ENDMETHOD. METHOD validate_e071k_input. IF l_e071k IS INITIAL. RAISE RESUMABLE EXCEPTION TYPE zcx_trs_no_key. ENDIF. IF l_e071k-objname IS INITIAL. IF l_e071k-mastername IS NOT INITIAL. l_e071k-objname = l_e071k-mastername. ELSE. RAISE RESUMABLE EXCEPTION TYPE zcx_trs_no_key. ENDIF. ELSEIF l_e071k-mastername IS INITIAL. l_e071k-mastername = l_e071k-objname. ENDIF. IF l_e071k-tabkey IS INITIAL. RAISE RESUMABLE EXCEPTION TYPE zcx_trs_no_key. ENDIF. IF l_e071k-object IS INITIAL. IF l_e071k-mastertype IS NOT INITIAL. l_e071k-object = l_e071k-mastertype. ELSE. RAISE RESUMABLE EXCEPTION TYPE zcx_trs_no_object_type. ENDIF. ELSEIF l_e071k-mastertype IS INITIAL. l_e071k-mastertype = l_e071k-object. ENDIF. IF l_e071k-object NE 'TABU'. RAISE RESUMABLE EXCEPTION TYPE zcx_trs_wrong_object_type. ENDIF. ENDMETHOD. METHOD add_missing_e071k_input. IF l_e071k-pgmid NE 'R3TR'. l_e071k-pgmid = 'R3TR'. ENDIF. IF l_e071k-objfunc IS INITIAL. l_e071k-objfunc = 'K'. ENDIF. IF l_e071k-as4pos IS INITIAL. l_e071k-as4pos = 0. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 2213, 82, 62, 23144, 2890, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 198, 220, 10188, 9864, 1847, 48167, 1677, 5258, 1976, 565, 62, 2213, 82, 62, 2213, 62, 69, 9548, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 2213, 82, 62, 7645, 634, 62, 25927, 13, 628, 220, 220, 220, 8355, 43429, 1546, 751, 62, 2539, 62, 1462, 62, 25927, 7473, 1976, 361, 62, 2213, 82, 62, 7645, 634, 62, 25927, 93, 2860, 62, 2539, 62, 1462, 62, 25927, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 13, 628, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 25, 491, 82, 62, 38353, 62, 15526, 41876, 4526, 37, 5390, 1976, 361, 62, 2213, 82, 62, 38353, 62, 15526, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1502, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 491, 74, 38890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4876, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 491, 74, 38890, 13, 198, 220, 220, 220, 337, 36252, 50, 26571, 62, 68, 2998, 16, 74, 62, 15414, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 300, 62, 68, 2998, 16, 74, 41876, 304, 2998, 16, 74, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 2213, 82, 62, 3919, 62, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 2213, 82, 62, 3919, 62, 15252, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 2213, 82, 62, 36460, 62, 15252, 62, 4906, 13, 198, 220, 220, 220, 337, 36252, 50, 751, 62, 45688, 62, 68, 2998, 16, 74, 62, 15414, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 300, 62, 68, 2998, 16, 74, 41876, 304, 2998, 16, 74, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 2213, 82, 62, 23144, 2890, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 366, 651, 4839, 1502, 357, 2581, 1267, 290, 4876, 198, 220, 220, 220, 491, 82, 62, 38353, 62, 15526, 796, 1976, 565, 62, 2213, 82, 62, 69, 9548, 62, 38942, 671, 14804, 1136, 62, 2213, 82, 62, 38353, 62, 15526, 7, 6739, 628, 220, 220, 220, 491, 82, 62, 38353, 62, 15526, 3784, 1136, 62, 25927, 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, 1312, 62, 2875, 62, 4906, 796, 705, 54, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 35943, 62, 4906, 220, 796, 705, 48, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 22872, 220, 220, 796, 705, 34, 7759, 6, 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, 304, 62, 2875, 796, 1502, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 304, 62, 35943, 220, 796, 4876, 6739, 628, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 2213, 82, 62, 7645, 634, 62, 25927, 93, 2860, 62, 2539, 62, 1462, 62, 25927, 13, 628, 220, 220, 220, 366, 617, 1366, 743, 761, 284, 307, 3421, 198, 220, 220, 220, 42865, 7, 75, 62, 68, 2998, 16, 74, 8, 796, 1312, 62, 68, 2998, 16, 74, 13, 198, 198, 17174, 9, 198, 9, 8794, 611, 2279, 318, 3734, 290, 262, 1994, 460, 307, 2087, 284, 262, 4839, 2581, 628, 220, 220, 220, 502, 3784, 12102, 378, 62, 68, 2998, 16, 74, 62, 15414, 7, 5870, 15567, 2751, 300, 62, 68, 2998, 16, 74, 796, 300, 62, 68, 2998, 16, 74, 6739, 198, 198, 17174, 9, 198, 9, 25639, 3404, 460, 307, 2087, 628, 220, 220, 220, 502, 3784, 2860, 62, 45688, 62, 68, 2998, 16, 74, 62, 15414, 7, 5609, 300, 62, 68, 2998, 16, 74, 796, 300, 62, 68, 2998, 16, 74, 6739, 628, 220, 220, 220, 491, 82, 62, 38353, 62, 15526, 3784, 9122, 62, 7645, 634, 7, 26173, 8924, 41727, 2167, 7, 491, 74, 38890, 220, 220, 220, 220, 796, 2272, 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, 355, 19, 1930, 220, 220, 220, 220, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23241, 13602, 220, 220, 220, 220, 220, 796, 705, 49, 18, 5446, 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, 2134, 220, 220, 220, 220, 796, 300, 62, 68, 2998, 16, 74, 12, 15252, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS y_check_omit_optional_exp DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC . PUBLIC SECTION. METHODS constructor. PROTECTED SECTION. METHODS inspect_tokens REDEFINITION. PRIVATE SECTION. METHODS has_optional_exporting IMPORTING statement TYPE sstmnt RETURNING VALUE(result) TYPE abap_bool. ENDCLASS. CLASS y_check_omit_optional_exp IMPLEMENTATION. METHOD constructor. super->constructor( ). settings-pseudo_comment = '"#EC OPTL_EXP' ##NO_TEXT. settings-disable_threshold_selection = abap_true. settings-threshold = 0. settings-documentation = |{ c_docs_path-checks }omit-optional-exporting.md|. set_check_message( 'Omit the optional keyword EXPORTING!' ). ENDMETHOD. METHOD inspect_tokens. CHECK statement-type = 'A' OR statement-type = 'C'. CHECK has_optional_exporting( statement ). DATA(configuration) = detect_check_configuration( statement ). IF configuration IS INITIAL. RETURN. ENDIF. raise_error( statement_level = statement-level statement_index = index statement_from = statement-from error_priority = configuration-prio ). ENDMETHOD. METHOD has_optional_exporting. LOOP AT ref_scan_manager->get_tokens( ) ASSIGNING FIELD-SYMBOL(<token>) FROM statement-from TO statement-to. IF <token>-str = 'EXPORTING'. result = abap_true. ELSEIF <token>-str = 'IMPORTING' OR <token>-str = 'CHANGING' OR <token>-str = 'RECEIVING' OR <token>-str = 'EXCEPTIONS'. result = abap_false. RETURN. ENDIF. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9122, 62, 296, 270, 62, 25968, 62, 11201, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 331, 62, 9122, 62, 8692, 29244, 6158, 44731, 764, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 10104, 62, 83, 482, 641, 23848, 36, 20032, 17941, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 468, 62, 25968, 62, 1069, 26527, 30023, 9863, 2751, 2643, 41876, 264, 301, 76, 429, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 13, 198, 10619, 31631, 13, 198, 198, 31631, 331, 62, 9122, 62, 296, 270, 62, 25968, 62, 11201, 30023, 2538, 10979, 6234, 13, 628, 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, 39852, 43, 62, 49864, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 6460, 12, 40223, 62, 400, 10126, 62, 49283, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 6460, 12, 400, 10126, 796, 657, 13, 198, 220, 220, 220, 6460, 12, 22897, 341, 796, 930, 90, 269, 62, 31628, 62, 6978, 12, 42116, 1782, 296, 270, 12, 25968, 12, 1069, 26527, 13, 9132, 91, 13, 628, 220, 220, 220, 900, 62, 9122, 62, 20500, 7, 705, 46, 2781, 262, 11902, 21179, 7788, 15490, 2751, 13679, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 10104, 62, 83, 482, 641, 13, 628, 220, 220, 220, 5870, 25171, 2643, 12, 4906, 796, 705, 32, 6, 198, 220, 220, 220, 220, 220, 220, 6375, 2643, 12, 4906, 796, 705, 34, 4458, 628, 220, 220, 220, 5870, 25171, 468, 62, 25968, 62, 1069, 26527, 7, 2643, 6739, 628, 220, 220, 220, 42865, 7, 11250, 3924, 8, 796, 4886, 62, 9122, 62, 11250, 3924, 7, 2643, 6739, 628, 220, 220, 220, 16876, 8398, 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, 796, 2643, 12, 5715, 198, 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, 2643, 62, 6738, 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, 796, 8398, 12, 3448, 78, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 468, 62, 25968, 62, 1069, 26527, 13, 198, 220, 220, 220, 17579, 3185, 5161, 1006, 62, 35836, 62, 37153, 3784, 1136, 62, 83, 482, 641, 7, 1267, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 30001, 43734, 198, 220, 220, 220, 16034, 2643, 12, 6738, 5390, 2643, 12, 1462, 13, 198, 220, 220, 220, 220, 220, 16876, 1279, 30001, 29, 12, 2536, 796, 705, 6369, 15490, 2751, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 17852, 5188, 5064, 1279, 30001, 29, 12, 2536, 796, 705, 3955, 15490, 2751, 6, 198, 220, 220, 220, 220, 220, 6375, 1279, 30001, 29, 12, 2536, 796, 705, 3398, 15567, 2751, 6, 198, 220, 220, 220, 220, 220, 6375, 1279, 30001, 29, 12, 2536, 796, 705, 2200, 5222, 3824, 2751, 6, 198, 220, 220, 220, 220, 220, 6375, 1279, 30001, 29, 12, 2536, 796, 705, 6369, 42006, 11053, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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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 ]
CLASS y_test_code_detector DEFINITION PUBLIC CREATE PUBLIC. PUBLIC SECTION. INTERFACES: y_if_testcode_detector. PROTECTED SECTION. PRIVATE SECTION. DATA: ref_scan_manager TYPE REF TO y_if_scan_manager, statement_wa TYPE sstmnt, test_codes TYPE y_if_testcode_detector=>t_test_codes, test_code TYPE y_if_testcode_detector=>t_test_code. METHODS: process_statements IMPORTING structure TYPE sstruc, process_tokens IMPORTING statement TYPE sstmnt, testclass_added IMPORTING token TYPE stokesx RETURNING VALUE(result) TYPE abap_bool, testmethod_added IMPORTING token TYPE stokesx RETURNING VALUE(result) TYPE abap_bool, keyword RETURNING VALUE(result) TYPE string, get_token_rel IMPORTING p_n TYPE i RETURNING VALUE(result) TYPE string, determine_test_code, is_test_class RETURNING VALUE(result) TYPE abap_bool. ENDCLASS. CLASS Y_TEST_CODE_DETECTOR IMPLEMENTATION. METHOD determine_test_code. IF test_codes IS NOT INITIAL. RETURN. ENDIF. LOOP AT ref_scan_manager->get_structures( ) ASSIGNING FIELD-SYMBOL(<structure>) WHERE stmnt_type EQ scan_struc_stmnt_type-class_definition. process_statements( <structure> ). ENDLOOP. ENDMETHOD. METHOD get_token_rel. DATA(l_index) = statement_wa-from + p_n - 1. IF l_index > statement_wa-to. RETURN. ENDIF. READ TABLE ref_scan_manager->get_tokens( ) INDEX l_index INTO DATA(token_wa). result = token_wa-str. ENDMETHOD. METHOD is_test_class. IF keyword( ) = 'CLASS'. DATA(class) = get_token_rel( 2 ). READ TABLE test_codes TRANSPORTING NO FIELDS WITH KEY class = class. IF sy-subrc EQ 0. result = abap_true. ENDIF. ENDIF. ENDMETHOD. METHOD keyword. IF statement_wa-type = 'C'. result = 'COMPUTE'. RETURN. ENDIF. READ TABLE ref_scan_manager->get_tokens( ) INDEX statement_wa-from INTO DATA(token_wa). result = token_wa-str. ENDMETHOD. METHOD process_statements. CLEAR test_code. LOOP AT ref_scan_manager->get_statements( ) ASSIGNING FIELD-SYMBOL(<statement>) FROM structure-stmnt_from TO structure-stmnt_to. statement_wa = <statement>. process_tokens( <statement> ). ENDLOOP. ENDMETHOD. METHOD process_tokens. LOOP AT ref_scan_manager->get_tokens( ) ASSIGNING FIELD-SYMBOL(<token>) FROM statement-from TO statement-to. IF testclass_added( <token> ). EXIT. ENDIF. IF testmethod_added( <token> ). EXIT. ENDIF. ENDLOOP. ENDMETHOD. METHOD testclass_added. IF token-str EQ 'TESTING' AND keyword( ) = 'CLASS'. test_code-class = get_token_rel( 2 ). result = abap_true. ENDIF. ENDMETHOD. METHOD testmethod_added. IF test_code-class IS NOT INITIAL AND ( keyword( ) = 'METHODS' OR keyword( ) = 'CLASS-METHODS' ). test_code-method = get_token_rel( 2 ). APPEND test_code TO test_codes. result = abap_true. ENDIF. IF test_code-class IS NOT INITIAL AND test_code-method IS INITIAL AND keyword( ) = 'ENDCLASS'. APPEND test_code TO test_codes. result = abap_true. ENDIF. ENDMETHOD. METHOD y_if_testcode_detector~clear. CLEAR ref_scan_manager. CLEAR test_codes. CLEAR test_code. CLEAR statement_wa. ENDMETHOD. METHOD y_if_testcode_detector~is_testcode. determine_test_code( ). IF test_codes IS INITIAL. RETURN. ENDIF. READ TABLE ref_scan_manager->get_statements( ) INTO statement_wa INDEX structure-stmnt_from. IF is_test_class( ). result = abap_true. ELSE. DATA(high_level_structure) = structure. DO. DATA(low_level_structure) = high_level_structure. READ TABLE ref_scan_manager->get_structures( ) INTO high_level_structure INDEX low_level_structure-back. IF sy-subrc NE 0. EXIT. ENDIF. READ TABLE ref_scan_manager->get_statements( ) INTO statement_wa INDEX high_level_structure-stmnt_from. IF is_test_class( ). result = abap_true. EXIT. ENDIF. IF low_level_structure-back EQ 0. EXIT. ENDIF. ENDDO. ENDIF. ENDMETHOD. METHOD y_if_testcode_detector~set_ref_scan_manager. me->ref_scan_manager = ref_scan_manager. ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9288, 62, 8189, 62, 15255, 9250, 5550, 20032, 17941, 44731, 29244, 6158, 44731, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 198, 220, 220, 220, 220, 220, 331, 62, 361, 62, 9288, 8189, 62, 15255, 9250, 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, 1006, 62, 35836, 62, 37153, 41876, 4526, 37, 5390, 331, 62, 361, 62, 35836, 62, 37153, 11, 198, 220, 220, 220, 220, 220, 2643, 62, 10247, 220, 220, 220, 220, 41876, 264, 301, 76, 429, 11, 198, 220, 220, 220, 220, 220, 1332, 62, 40148, 220, 220, 220, 220, 220, 220, 41876, 331, 62, 361, 62, 9288, 8189, 62, 15255, 9250, 14804, 83, 62, 9288, 62, 40148, 11, 198, 220, 220, 220, 220, 220, 1332, 62, 8189, 220, 220, 220, 220, 220, 220, 220, 41876, 331, 62, 361, 62, 9288, 8189, 62, 15255, 9250, 14804, 83, 62, 9288, 62, 8189, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 1429, 62, 14269, 3196, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 4645, 41876, 264, 19554, 66, 11, 198, 220, 220, 220, 220, 220, 1429, 62, 83, 482, 641, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 2643, 41876, 264, 301, 76, 429, 11, 198, 220, 220, 220, 220, 220, 1332, 4871, 62, 29373, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 11241, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 336, 3369, 87, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 1332, 24396, 62, 29373, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 11241, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 336, 3369, 87, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 21179, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 651, 62, 30001, 62, 2411, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 279, 62, 77, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 5004, 62, 9288, 62, 8189, 11, 198, 220, 220, 220, 220, 220, 318, 62, 9288, 62, 4871, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 575, 62, 51, 6465, 62, 34, 16820, 62, 35, 2767, 9782, 1581, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 5004, 62, 9288, 62, 8189, 13, 198, 220, 220, 220, 16876, 1332, 62, 40148, 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, 62, 37153, 3784, 1136, 62, 7249, 942, 7, 1267, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 301, 5620, 43734, 198, 220, 220, 220, 220, 220, 33411, 336, 76, 429, 62, 4906, 36529, 9367, 62, 19554, 66, 62, 301, 76, 429, 62, 4906, 12, 4871, 62, 46758, 13, 628, 220, 220, 220, 220, 220, 1429, 62, 14269, 3196, 7, 1279, 301, 5620, 29, 6739, 198, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 30001, 62, 2411, 13, 198, 220, 220, 220, 42865, 7, 75, 62, 9630, 8, 796, 2643, 62, 10247, 12, 6738, 1343, 279, 62, 77, 532, 352, 13, 198, 220, 220, 220, 16876, 300, 62, 9630, 1875, 2643, 62, 10247, 12, 1462, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 20832, 43679, 1006, 62, 35836, 62, 37153, 3784, 1136, 62, 83, 482, 641, 7, 1267, 24413, 6369, 300, 62, 9630, 39319, 42865, 7, 30001, 62, 10247, 737, 198, 220, 220, 220, 1255, 796, 11241, 62, 10247, 12, 2536, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 318, 62, 9288, 62, 4871, 13, 198, 220, 220, 220, 16876, 21179, 7, 1267, 796, 705, 31631, 4458, 198, 220, 220, 220, 220, 220, 42865, 7, 4871, 8, 796, 651, 62, 30001, 62, 2411, 7, 362, 6739, 198, 220, 220, 220, 220, 220, 20832, 43679, 1332, 62, 40148, 48213, 4303, 9863, 2751, 8005, 18930, 3698, 5258, 13315, 35374, 1398, 796, 1398, 13, 198, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 36529, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 450, 499, 62, 7942, 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, 21179, 13, 198, 220, 220, 220, 16876, 2643, 62, 10247, 12, 4906, 796, 705, 34, 4458, 198, 220, 220, 220, 220, 220, 1255, 796, 705, 9858, 30076, 36, 4458, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 20832, 43679, 1006, 62, 35836, 62, 37153, 3784, 1136, 62, 83, 482, 641, 7, 1267, 24413, 6369, 2643, 62, 10247, 12, 6738, 39319, 42865, 7, 30001, 62, 10247, 737, 198, 220, 220, 220, 1255, 796, 11241, 62, 10247, 12, 2536, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1429, 62, 14269, 3196, 13, 198, 220, 220, 220, 30301, 1503, 1332, 62, 8189, 13, 628, 220, 220, 220, 17579, 3185, 5161, 1006, 62, 35836, 62, 37153, 3784, 1136, 62, 14269, 3196, 7, 1267, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 26090, 43734, 198, 220, 220, 220, 220, 220, 16034, 4645, 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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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 ]
CLASS zcl_abapgit_object_xinx DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. METHODS: constructor IMPORTING is_item TYPE zif_abapgit_definitions=>ty_item iv_language TYPE spras. PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_extension_index, dd12v TYPE dd12v, t_dd17v TYPE STANDARD TABLE OF dd17v WITH NON-UNIQUE DEFAULT KEY, END OF ty_extension_index. CONSTANTS: c_objtype_extension_index TYPE trobjtype VALUE 'XINX'. DATA: mv_name TYPE ddobjname, mv_id TYPE ddobjectid. METHODS: xinx_delete_docu IMPORTING iv_objname TYPE ddobjname iv_id TYPE ddobjectid. ENDCLASS. CLASS zcl_abapgit_object_xinx IMPLEMENTATION. METHOD constructor. super->constructor( is_item = is_item iv_language = iv_language ). cl_wb_object_type=>get_key_components_from_id( EXPORTING p_key = |{ ms_item-obj_name }| p_external_id = swbm_c_type_ddic_db_tabxinx IMPORTING p_key_component1 = mv_name p_key_component2 = mv_id EXCEPTIONS too_many_key_components = 1 objecttype_not_existing = 2 OTHERS = 3 ). ASSERT sy-subrc = 0. ENDMETHOD. METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. " todo ENDMETHOD. METHOD zif_abapgit_object~delete. " Reimplement FM RS_DD_INDX_DELETE as it calls the UI DATA: ls_enqueue TYPE ddenqs, lv_protname TYPE tstrf01-file, lv_del_concname LIKE ls_enqueue-objname, lv_concname TYPE rsdxx-objname, ls_transp_key TYPE trkey, ls_e071 TYPE e071, lv_clm_corrnum TYPE e070-trkorr, lv_message TYPE string. CONCATENATE mv_name '-' mv_id INTO lv_concname. ls_enqueue-objtype = c_objtype_extension_index. CALL FUNCTION 'INT_INDX_DEL_LOCK' EXPORTING i_trobjtype = ls_enqueue-objtype i_tabname = mv_name i_indexname = mv_id EXCEPTIONS not_executed = 1 error_occured = 2 permission_failure = 3 OTHERS = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ls_enqueue-objname = mv_name. ls_enqueue-secname = mv_id. CALL FUNCTION 'RS_CORR_INSERT' EXPORTING object = ls_enqueue object_class = 'DICT' mode = 'DELETE' IMPORTING transport_key = ls_transp_key EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. " & was not deleted (correction entry not possible or canceled) MESSAGE s015(e2) WITH lv_concname INTO lv_message. zcx_abapgit_exception=>raise_t100( ). ENDIF. CALL FUNCTION 'DD_LOGNPROT_NAME_GET' EXPORTING task = 'DEL' obj_type = ls_enqueue-objtype obj_name = ls_enqueue-objname ind_name = ls_enqueue-secname IMPORTING protname = lv_protname EXCEPTIONS input_error = 0. PERFORM logdelete IN PROGRAM rddu0001 USING lv_protname. lv_del_concname = ls_enqueue-objname. lv_del_concname+16 = ls_enqueue-secname. CALL FUNCTION 'DD_OBJ_DEL' EXPORTING object_name = lv_del_concname object_type = ls_enqueue-objtype del_state = 'M' EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. RETURN. ENDIF. CALL FUNCTION 'DD_DD_TO_E071' EXPORTING type = ls_enqueue-objtype name = ls_enqueue-objname id = ls_enqueue-secname IMPORTING obj_name = ls_e071-obj_name EXCEPTIONS illegal_input = 1 OTHERS = 2. IF sy-subrc <> 0. " Internal error & in & (contact person in charge) MESSAGE i008(e2) WITH 'DD_DD_TO_E071' 'RS_DD_INDX_DELETE' INTO lv_message. zcx_abapgit_exception=>raise_t100( ). ENDIF. ls_e071-object = ls_enqueue-objtype. CALL FUNCTION 'RS_DELETE_FROM_WORKING_AREA' EXPORTING object = ls_e071-object obj_name = ls_e071-obj_name immediate = 'X' actualize_working_area = 'X'. xinx_delete_docu( iv_objname = mv_name iv_id = mv_id ). CALL FUNCTION 'RS_TREE_OBJECT_PLACEMENT' EXPORTING object = ls_e071-obj_name operation = 'DELETE' type = c_objtype_extension_index. IF mv_id(1) CA 'YZ'. CALL FUNCTION 'CLM_INDX_MODIFICATION_DELETE' EXPORTING idxobj_name = ls_enqueue-objname idx_type = ls_enqueue-objtype idx_name = mv_id transport_key = ls_transp_key corrnum = lv_clm_corrnum. ENDIF. CALL FUNCTION 'RS_DD_DEQUEUE' EXPORTING objtype = ls_enqueue-objtype objname = ls_enqueue-objname secname = ls_enqueue-secname. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: ls_extension_index TYPE ty_extension_index, lv_rc TYPE sy-subrc. io_xml->read( EXPORTING iv_name = 'XINX' CHANGING cg_data = ls_extension_index ). tadir_insert( iv_package ). CALL FUNCTION 'DDIF_INDX_PUT' EXPORTING name = mv_name id = mv_id dd12v_wa = ls_extension_index-dd12v TABLES dd17v_tab = ls_extension_index-t_dd17v EXCEPTIONS indx_not_found = 1 name_inconsistent = 2 indx_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from DDIF_INDX_PUT { sy-subrc }| ). ENDIF. CALL FUNCTION 'DDIF_INDX_ACTIVATE' EXPORTING name = mv_name id = mv_id IMPORTING rc = lv_rc EXCEPTIONS not_found = 1 put_failure = 2 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from DDIF_INDX_ACTIVATE { sy-subrc }| ). ENDIF. IF lv_rc <> 0. zcx_abapgit_exception=>raise( |Cannot activate extension index { mv_id } of table { mv_name }| ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: ls_dd12v TYPE dd12v. CALL FUNCTION 'DDIF_INDX_GET' EXPORTING name = mv_name id = mv_id IMPORTING dd12v_wa = ls_dd12v EXCEPTIONS illegal_input = 1 OTHERS = 2. rv_bool = boolc( ls_dd12v IS NOT INITIAL ). ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). 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_extension_index TYPE ty_extension_index. CALL FUNCTION 'DDIF_INDX_GET' EXPORTING name = mv_name id = mv_id langu = mv_language IMPORTING dd12v_wa = ls_extension_index-dd12v TABLES dd17v_tab = ls_extension_index-t_dd17v EXCEPTIONS illegal_input = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from DDIF_INDX_GET { sy-subrc }| ). ENDIF. CLEAR: ls_extension_index-dd12v-as4user, ls_extension_index-dd12v-as4date, ls_extension_index-dd12v-as4time. io_xml->add( iv_name = 'XINX' ig_data = ls_extension_index ). ENDMETHOD. METHOD xinx_delete_docu. DATA: lv_docuid TYPE dokhl-id, lv_doctype TYPE dokhl-typ, lv_docname TYPE dokhl-object. lv_docname = iv_objname. lv_docname+30 = iv_id. CALL FUNCTION 'INTERN_DD_DOCU_ID_MATCH' EXPORTING p_trobjtype = c_objtype_extension_index IMPORTING p_docu_id = lv_docuid p_doctype = lv_doctype EXCEPTIONS illegal_type = 1 OTHERS = 2. IF sy-subrc <> 0. RETURN. ENDIF. CALL FUNCTION 'DOKU_DELETE_ALL' EXPORTING doku_id = lv_docuid doku_object = lv_docname doku_typ = lv_doctype suppress_authority = 'X' suppress_enqueue = 'X' suppress_transport = 'X' EXCEPTIONS no_docu_found = 1 OTHERS = 2. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 87, 28413, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 9186, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 41876, 7500, 292, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 2302, 3004, 62, 9630, 11, 198, 220, 220, 220, 220, 220, 220, 220, 49427, 1065, 85, 220, 220, 41876, 49427, 1065, 85, 11, 198, 220, 220, 220, 220, 220, 220, 220, 256, 62, 1860, 1558, 85, 41876, 49053, 9795, 43679, 3963, 49427, 1558, 85, 198, 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, 23578, 3963, 1259, 62, 2302, 3004, 62, 9630, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 269, 62, 26801, 4906, 62, 2302, 3004, 62, 9630, 220, 220, 41876, 4161, 50007, 4906, 26173, 8924, 705, 55, 1268, 55, 4458, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 285, 85, 62, 3672, 41876, 49427, 26801, 3672, 11, 198, 220, 220, 220, 220, 220, 285, 85, 62, 312, 220, 220, 41876, 49427, 15252, 312, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 2124, 28413, 62, 33678, 62, 15390, 84, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 26801, 3672, 41876, 49427, 26801, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 312, 220, 220, 220, 220, 220, 41876, 49427, 15252, 312, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 87, 28413, 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, 537, 62, 39346, 62, 15252, 62, 4906, 14804, 1136, 62, 2539, 62, 5589, 3906, 62, 6738, 62, 312, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 930, 90, 13845, 62, 9186, 12, 26801, 62, 3672, 1782, 91, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 22615, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1509, 20475, 62, 66, 62, 4906, 62, 1860, 291, 62, 9945, 62, 8658, 87, 28413, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 2539, 62, 42895, 16, 220, 220, 220, 220, 220, 220, 220, 796, 285, 85, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 2539, 62, 42895, 17, 220, 220, 220, 220, 220, 220, 220, 796, 285, 85, 62, 312, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 1165, 62, 21834, 62, 2539, 62, 5589, 3906, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 4906, 62, 1662, 62, 25687, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 513, 6739, 628, 220, 220, 220, 24994, 17395, 827, 12, 7266, 6015, 796, 657, 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, 366, 284, 4598, 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, 366, 797, 320, 26908, 18695, 19340, 62, 16458, 62, 12115, 55, 62, 7206, 2538, 9328, 355, 340, 3848, 262, 12454, 628, 220, 220, 220, 42865, 25, 43979, 62, 268, 36560, 220, 220, 220, 220, 220, 41876, 288, 6559, 48382, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 11235, 3672, 220, 220, 220, 220, 41876, 256, 2536, 69, 486, 12, 7753, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 12381, 62, 1102, 66, 3672, 34178, 43979, 62, 268, 36560, 12, 26801, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 1102, 66, 3672, 220, 220, 220, 220, 41876, 374, 21282, 5324, 12, 26801, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 7645, 79, 62, 2539, 220, 220, 41876, 491, 2539, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 68, 2998, 16, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 304, 2998, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 565, 76, 62, 10215, 81, 22510, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Include ZCLAS_REWRITE_UTILS *&---------------------------------------------------------------------* * todo, utils?
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1168, 5097, 1921, 62, 2200, 18564, 12709, 62, 3843, 45484, 198, 9, 5, 10097, 30934, 9, 198, 198, 9, 284, 4598, 11, 3384, 4487, 30, 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 ]
INTERFACE zif_abapgit_persist_user PUBLIC . TYPES ty_favorites TYPE zif_abapgit_persistence=>ty_repo_keys . METHODS get_changes_only RETURNING VALUE(rv_changes_only) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS get_default_git_user_email RETURNING VALUE(rv_email) TYPE string RAISING zcx_abapgit_exception . METHODS get_default_git_user_name RETURNING VALUE(rv_username) TYPE string RAISING zcx_abapgit_exception . METHODS get_diff_unified RETURNING VALUE(rv_diff_unified) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS get_favorites RETURNING VALUE(rt_favorites) TYPE ty_favorites RAISING zcx_abapgit_exception . METHODS get_hide_files RETURNING VALUE(rv_hide) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS get_show_folders RETURNING VALUE(rv_folders) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS get_repo_git_user_email IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url RETURNING VALUE(rv_email) TYPE string RAISING zcx_abapgit_exception . METHODS get_repo_git_user_name IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url RETURNING VALUE(rv_username) TYPE string RAISING zcx_abapgit_exception . METHODS get_repo_last_change_seen IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url RETURNING VALUE(rv_version) TYPE string RAISING zcx_abapgit_exception . METHODS get_repo_login IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url RETURNING VALUE(rv_login) TYPE string RAISING zcx_abapgit_exception . METHODS get_repo_show RETURNING VALUE(rv_key) TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception . METHODS is_favorite_repo IMPORTING !iv_repo_key TYPE zif_abapgit_persistence=>ty_repo-key RETURNING VALUE(rv_yes) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS set_default_git_user_email IMPORTING !iv_email TYPE string RAISING zcx_abapgit_exception . METHODS set_default_git_user_name IMPORTING !iv_username TYPE string RAISING zcx_abapgit_exception . METHODS set_repo_git_user_email IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url !iv_email TYPE string RAISING zcx_abapgit_exception . METHODS set_repo_git_user_name IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url !iv_username TYPE string RAISING zcx_abapgit_exception . METHODS set_repo_last_change_seen IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url !iv_version TYPE string RAISING zcx_abapgit_exception . METHODS set_repo_login IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url !iv_login TYPE string RAISING zcx_abapgit_exception . METHODS set_repo_show IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception . METHODS toggle_changes_only RETURNING VALUE(rv_changes_only) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS get_order_by RETURNING VALUE(rv_order_by) TYPE string RAISING zcx_abapgit_exception. METHODS set_order_by IMPORTING iv_order_by TYPE string RETURNING VALUE(rv_order_by) TYPE string RAISING zcx_abapgit_exception. METHODS get_order_descending RETURNING VALUE(rv_order_descending) TYPE abap_bool RAISING zcx_abapgit_exception. METHODS set_order_descending IMPORTING iv_order_descending TYPE abap_bool RETURNING VALUE(rv_order_descending) TYPE abap_bool RAISING zcx_abapgit_exception. METHODS get_diff_first RETURNING VALUE(rv_diff_first) TYPE abap_bool RAISING zcx_abapgit_exception. METHODS set_diff_first IMPORTING iv_diff_first TYPE abap_bool RETURNING VALUE(rv_diff_first) TYPE abap_bool RAISING zcx_abapgit_exception. METHODS toggle_diff_unified RETURNING VALUE(rv_diff_unified) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS toggle_favorite IMPORTING !iv_repo_key TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception . METHODS toggle_hide_files RETURNING VALUE(rv_hide) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS toggle_show_folders RETURNING VALUE(rv_folders) TYPE abap_bool RAISING zcx_abapgit_exception. METHODS get_settings RETURNING VALUE(rs_user_settings) TYPE zif_abapgit_definitions=>ty_s_user_settings RAISING zcx_abapgit_exception. METHODS set_settings IMPORTING is_user_settings TYPE zif_abapgit_definitions=>ty_s_user_settings RAISING zcx_abapgit_exception. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 397, 499, 18300, 62, 19276, 396, 62, 7220, 198, 220, 44731, 764, 628, 220, 24412, 47, 1546, 1259, 62, 69, 5570, 2737, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 62, 13083, 764, 628, 220, 337, 36252, 50, 651, 62, 36653, 62, 8807, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 36653, 62, 8807, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 12286, 62, 18300, 62, 7220, 62, 12888, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 12888, 8, 41876, 4731, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 12286, 62, 18300, 62, 7220, 62, 3672, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 29460, 8, 41876, 4731, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 26069, 62, 403, 1431, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 26069, 62, 403, 1431, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 69, 5570, 2737, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 69, 5570, 2737, 8, 41876, 1259, 62, 69, 5570, 2737, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 24717, 62, 16624, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 24717, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 12860, 62, 11379, 364, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 11379, 364, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 260, 7501, 62, 18300, 62, 7220, 62, 12888, 198, 220, 220, 220, 30023, 9863, 2751, 198, 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, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 12888, 8, 41876, 4731, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 260, 7501, 62, 18300, 62, 7220, 62, 3672, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 6371, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 29460, 8, 41876, 4731, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 260, 7501, 62, 12957, 62, 3803, 62, 15898, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 6371, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 9641, 8, 41876, 4731, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 260, 7501, 62, 38235, 198, 220, 220, 220, 30023, 9863, 2751, 198, 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, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 38235, 8, 41876, 4731, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 651, 62, 260, 7501, 62, 12860, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 2539, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 337, 36252, 50, 318, 62, 35200, 62, 260, 7501, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 260, 7501, 62, 2539, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 30826, 4261, 15871, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
interface ZIF_DBBR_C_COMPTYPE public . constants BUILT_IN_TYPE type COMPTYPE value '' ##NO_TEXT. constants DATA_ELEMENT type COMPTYPE value 'E' ##NO_TEXT. endinterface.
[ 39994, 1168, 5064, 62, 11012, 11473, 62, 34, 62, 9858, 47, 25216, 198, 220, 1171, 764, 628, 198, 220, 38491, 20571, 4146, 51, 62, 1268, 62, 25216, 2099, 24301, 25216, 1988, 10148, 22492, 15285, 62, 32541, 13, 198, 220, 38491, 42865, 62, 36, 2538, 10979, 2099, 24301, 25216, 1988, 705, 36, 6, 22492, 15285, 62, 32541, 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 ]
CLASS zcl_abapgit_git_transport DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. * remote to local CLASS-METHODS upload_pack_by_branch IMPORTING !iv_url TYPE string !iv_branch_name TYPE string !iv_deepen_level TYPE i DEFAULT 1 !it_branches TYPE zif_abapgit_definitions=>ty_git_branch_list_tt OPTIONAL EXPORTING !et_objects TYPE zif_abapgit_definitions=>ty_objects_tt !ev_branch TYPE zif_abapgit_definitions=>ty_sha1 RAISING zcx_abapgit_exception . CLASS-METHODS upload_pack_by_commit IMPORTING !iv_url TYPE string !iv_hash TYPE zif_abapgit_definitions=>ty_sha1 OPTIONAL !iv_deepen_level TYPE i DEFAULT 0 EXPORTING !et_objects TYPE zif_abapgit_definitions=>ty_objects_tt !ev_commit TYPE zif_abapgit_definitions=>ty_sha1 RAISING zcx_abapgit_exception . * local to remote CLASS-METHODS receive_pack IMPORTING !iv_url TYPE string !iv_old TYPE zif_abapgit_definitions=>ty_sha1 !iv_new TYPE zif_abapgit_definitions=>ty_sha1 !iv_branch_name TYPE string !iv_pack TYPE xstring RAISING zcx_abapgit_exception . CLASS-METHODS branches IMPORTING !iv_url TYPE string RETURNING VALUE(ro_branch_list) TYPE REF TO zcl_abapgit_git_branch_list RAISING zcx_abapgit_exception . PROTECTED SECTION. PRIVATE SECTION. CONSTANTS: BEGIN OF c_service, receive TYPE string VALUE 'receive', "#EC NOTEXT upload TYPE string VALUE 'upload', "#EC NOTEXT END OF c_service . CONSTANTS: BEGIN OF c_smart_response_check, BEGIN OF get_refs, content_regex TYPE string VALUE '^[0-9a-f]{4}#', content_type TYPE string VALUE 'application/x-git-<service>-pack-advertisement', END OF get_refs, END OF c_smart_response_check . CLASS-METHODS branch_list IMPORTING !iv_url TYPE string !iv_service TYPE string EXPORTING !eo_client TYPE REF TO zcl_abapgit_http_client !eo_branch_list TYPE REF TO zcl_abapgit_git_branch_list RAISING zcx_abapgit_exception . CLASS-METHODS find_branch IMPORTING !iv_url TYPE string !iv_service TYPE string !iv_branch_name TYPE string EXPORTING !eo_client TYPE REF TO zcl_abapgit_http_client !ev_branch TYPE zif_abapgit_definitions=>ty_sha1 !eo_branch_list TYPE REF TO zcl_abapgit_git_branch_list RAISING zcx_abapgit_exception . CLASS-METHODS parse EXPORTING !ev_pack TYPE xstring CHANGING !cv_data TYPE xstring RAISING zcx_abapgit_exception . CLASS-METHODS upload_pack IMPORTING !io_client TYPE REF TO zcl_abapgit_http_client !iv_url TYPE string !iv_deepen_level TYPE i DEFAULT 0 !it_hashes TYPE zif_abapgit_definitions=>ty_sha1_tt RETURNING VALUE(rt_objects) TYPE zif_abapgit_definitions=>ty_objects_tt RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_git_transport IMPLEMENTATION. METHOD branches. DATA: lo_client TYPE REF TO zcl_abapgit_http_client. branch_list( EXPORTING iv_url = iv_url iv_service = c_service-upload IMPORTING eo_client = lo_client eo_branch_list = ro_branch_list ). lo_client->close( ). ENDMETHOD. METHOD branch_list. DATA: lv_data TYPE string. DATA: lv_expected_content_type TYPE string. eo_client = zcl_abapgit_http=>create_by_url( iv_url = iv_url iv_service = iv_service ). lv_expected_content_type = c_smart_response_check-get_refs-content_type. REPLACE '<service>' IN lv_expected_content_type WITH iv_service. eo_client->check_smart_response( iv_expected_content_type = lv_expected_content_type iv_content_regex = c_smart_response_check-get_refs-content_regex ). lv_data = eo_client->get_cdata( ). CREATE OBJECT eo_branch_list EXPORTING iv_data = lv_data. ENDMETHOD. METHOD find_branch. branch_list( EXPORTING iv_url = iv_url iv_service = iv_service IMPORTING eo_client = eo_client eo_branch_list = eo_branch_list ). IF ev_branch IS SUPPLIED. ev_branch = eo_branch_list->find_by_name( iv_branch_name )-sha1. ENDIF. ENDMETHOD. METHOD parse. CONSTANTS: lc_band1 TYPE x VALUE '01'. DATA: lv_len TYPE i, lv_contents TYPE xstring, lv_pack TYPE xstring. WHILE xstrlen( cv_data ) >= 4. lv_len = zcl_abapgit_git_utils=>length_utf8_hex( cv_data ). IF lv_len > xstrlen( cv_data ). zcx_abapgit_exception=>raise( 'parse, string length too large' ). ENDIF. lv_contents = cv_data(lv_len). IF lv_len = 0. cv_data = cv_data+4. CONTINUE. ELSE. cv_data = cv_data+lv_len. ENDIF. lv_contents = lv_contents+4. IF xstrlen( lv_contents ) > 1 AND lv_contents(1) = lc_band1. CONCATENATE lv_pack lv_contents+1 INTO lv_pack IN BYTE MODE. ENDIF. ENDWHILE. ev_pack = lv_pack. ENDMETHOD. METHOD receive_pack. DATA: lo_client TYPE REF TO zcl_abapgit_http_client, lv_cmd_pkt TYPE string, lv_line TYPE string, lv_tmp TYPE xstring, lv_xstring TYPE xstring, lv_string TYPE string, lv_cap_list TYPE string, lv_buffer TYPE string. find_branch( EXPORTING iv_url = iv_url iv_service = c_service-receive iv_branch_name = iv_branch_name IMPORTING eo_client = lo_client ). lo_client->set_headers( iv_url = iv_url iv_service = c_service-receive ). lv_cap_list = 'report-status'. lv_line = iv_old && ` ` && iv_new && ` ` && iv_branch_name && zcl_abapgit_git_utils=>get_null( ) && ` ` && lv_cap_list && zif_abapgit_definitions=>c_newline. lv_cmd_pkt = zcl_abapgit_git_utils=>pkt_string( lv_line ). lv_buffer = lv_cmd_pkt && '0000'. lv_tmp = zcl_abapgit_convert=>string_to_xstring_utf8( lv_buffer ). CONCATENATE lv_tmp iv_pack INTO lv_xstring IN BYTE MODE. lv_xstring = lo_client->send_receive_close( lv_xstring ). * todo, this part should be changed, instead of looking at texts * parse the reply and look for the "ng" not good indicator lv_string = zcl_abapgit_convert=>xstring_to_string_utf8( lv_xstring ). IF lv_string = ''. zcx_abapgit_exception=>raise( 'git, unexpected empty reply' ). ELSEIF NOT lv_string CP '*unpack ok*'. zcx_abapgit_exception=>raise( 'unpack not ok' ). ELSEIF lv_string CP '*pre-receive hook declined*'. zcx_abapgit_exception=>raise( 'pre-receive hook declined' ). ELSEIF lv_string CP '*protected branch hook declined*'. zcx_abapgit_exception=>raise( 'protected branch hook declined' ). ELSEIF lv_string CP '*push declined due to email privacy*'. zcx_abapgit_exception=>raise( 'push declined due to email privacy' ). ELSEIF lv_string CP '*funny refname*'. zcx_abapgit_exception=>raise( 'funny refname' ). ELSEIF lv_string CP '*failed to update ref*'. zcx_abapgit_exception=>raise( 'failed to update ref' ). ELSEIF lv_string CP '*missing necessary objects*'. zcx_abapgit_exception=>raise( 'missing necessary objects' ). ELSEIF lv_string CP '*refusing to delete the current branch*'. zcx_abapgit_exception=>raise( 'branch delete not allowed' ). ELSEIF lv_string CP '*cannot lock ref*reference already exists*'. zcx_abapgit_exception=>raise( 'branch already exists' ). ELSEIF lv_string CP '*invalid committer*'. zcx_abapgit_exception=>raise( 'invalid committer' ). ENDIF. ENDMETHOD. METHOD upload_pack. DATA: lv_capa TYPE string, lv_line TYPE string, lv_buffer TYPE string, lv_xstring TYPE xstring, lv_pack TYPE xstring. FIELD-SYMBOLS: <lv_hash> LIKE LINE OF it_hashes. io_client->set_headers( iv_url = iv_url iv_service = c_service-upload ). LOOP AT it_hashes FROM 1 ASSIGNING <lv_hash>. IF sy-tabix = 1. lv_capa = 'side-band-64k no-progress multi_ack'. lv_line = 'want' && ` ` && <lv_hash> && ` ` && lv_capa && zif_abapgit_definitions=>c_newline. ELSE. lv_line = 'want' && ` ` && <lv_hash> && zif_abapgit_definitions=>c_newline. ENDIF. lv_buffer = lv_buffer && zcl_abapgit_git_utils=>pkt_string( lv_line ). ENDLOOP. IF iv_deepen_level > 0. lv_buffer = lv_buffer && zcl_abapgit_git_utils=>pkt_string( |deepen { iv_deepen_level }| && zif_abapgit_definitions=>c_newline ). ENDIF. lv_buffer = lv_buffer && '0000' && '0009done' && zif_abapgit_definitions=>c_newline. lv_xstring = io_client->send_receive_close( zcl_abapgit_convert=>string_to_xstring_utf8( lv_buffer ) ). parse( IMPORTING ev_pack = lv_pack CHANGING cv_data = lv_xstring ). IF lv_pack IS INITIAL. zcx_abapgit_exception=>raise( 'Response could not be parsed - empty pack returned.' ). ENDIF. rt_objects = zcl_abapgit_git_pack=>decode( lv_pack ). ENDMETHOD. METHOD upload_pack_by_branch. DATA: lo_client TYPE REF TO zcl_abapgit_http_client, lt_hashes TYPE zif_abapgit_definitions=>ty_sha1_tt. FIELD-SYMBOLS: <ls_branch> LIKE LINE OF it_branches. CLEAR: et_objects, ev_branch. find_branch( EXPORTING iv_url = iv_url iv_service = c_service-upload iv_branch_name = iv_branch_name IMPORTING eo_client = lo_client ev_branch = ev_branch ). IF it_branches IS INITIAL. APPEND ev_branch TO lt_hashes. ELSE. LOOP AT it_branches ASSIGNING <ls_branch>. APPEND <ls_branch>-sha1 TO lt_hashes. ENDLOOP. ENDIF. et_objects = upload_pack( io_client = lo_client iv_url = iv_url iv_deepen_level = iv_deepen_level it_hashes = lt_hashes ). ENDMETHOD. METHOD upload_pack_by_commit. DATA: lo_client TYPE REF TO zcl_abapgit_http_client, lt_hashes TYPE zif_abapgit_definitions=>ty_sha1_tt. CLEAR: et_objects, ev_commit. APPEND iv_hash TO lt_hashes. ev_commit = iv_hash. lo_client = zcl_abapgit_http=>create_by_url( iv_url = iv_url iv_service = c_service-upload ). et_objects = upload_pack( io_client = lo_client iv_url = iv_url iv_deepen_level = iv_deepen_level it_hashes = lt_hashes ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 18300, 62, 7645, 634, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 198, 9, 6569, 284, 1957, 198, 220, 220, 220, 42715, 12, 49273, 50, 9516, 62, 8002, 62, 1525, 62, 1671, 3702, 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, 1671, 3702, 62, 3672, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 22089, 268, 62, 5715, 41876, 1312, 5550, 38865, 352, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 1671, 12140, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 18300, 62, 1671, 3702, 62, 4868, 62, 926, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 316, 62, 48205, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 48205, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 1990, 62, 1671, 3702, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 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, 42715, 12, 49273, 50, 9516, 62, 8002, 62, 1525, 62, 41509, 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, 17831, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 26270, 16, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 22089, 268, 62, 5715, 41876, 1312, 5550, 38865, 657, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 316, 62, 48205, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 48205, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 1990, 62, 41509, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 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, 9, 1957, 284, 6569, 198, 220, 220, 220, 42715, 12, 49273, 50, 3328, 62, 8002, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 727, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 26270, 16, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3605, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 26270, 16, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1671, 3702, 62, 3672, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8002, 220, 220, 220, 220, 220, 220, 220, 41876, 2124, 8841, 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, 13737, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 1671, 3702, 62, 4868, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 18300, 62, 1671, 3702, 62, 4868, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 15271, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3328, 41876, 4731, 26173, 8924, 705, 260, 15164, 3256, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 220, 220, 220, 220, 9516, 220, 41876, 4731, 26173, 8924, 705, 25850, 3256, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 15271, 764, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 27004, 62, 26209, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 651, 62, 5420, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2695, 62, 260, 25636, 41876, 4731, 26173, 8924, 705, 61, 58, 15, 12, 24, 64, 12, 69, 60, 90, 19, 92, 2, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2695, 62, 4906, 220, 41876, 4731, 26173, 8924, 705, 31438, 14, 87, 12, 18300, 12, 27, 15271, 29, 12, 8002, 12, 45876, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 651, 62, 5420, 82, 11, 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,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TYPES: BEGIN OF ty_wdy_ci_test_conventions ##needed, " used dynamically init_done TYPE abap_bool, db_access TYPE abap_bool, file_access TYPE abap_bool, obsolete_screen TYPE abap_bool, program_flow TYPE abap_bool, system_call TYPE abap_bool, param_check TYPE abap_bool, include_source TYPE abap_bool, call_me TYPE abap_bool, END OF ty_wdy_ci_test_conventions . TYPES: BEGIN OF ty_t_case ##needed, " used dynamically none TYPE sychar01, lower TYPE sychar01, upper TYPE sychar01, key_lower TYPE sychar01, key_upper TYPE sychar01, END OF ty_t_case. CLASS-METHODS build_xml IMPORTING !iv_user TYPE sci_user !iv_name TYPE sci_chkv !it_class TYPE ty_class_range OPTIONAL RETURNING VALUE(rv_xml) TYPE string RAISING cx_static_check . CLASS-METHODS create_from_xml IMPORTING !iv_xml TYPE string !iv_user TYPE sci_user !iv_name TYPE sci_chkv !iv_test TYPE abap_bool RAISING cx_static_check . PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_parameter, name TYPE string, value TYPE string, END OF ty_parameter . TYPES: ty_parameter_tt TYPE STANDARD TABLE OF ty_parameter WITH DEFAULT KEY . TYPES: BEGIN OF ty_type, parameter TYPE string, name TYPE string, type TYPE string, field TYPE string, END OF ty_type . TYPES: ty_type_tt TYPE STANDARD TABLE OF ty_type WITH DEFAULT KEY . CLASS-DATA go_xml TYPE REF TO zcl_updownci_xml . CLASS-METHODS download_attributes IMPORTING !iv_class TYPE seoclsname !iv_attributes TYPE xstring !iv_version TYPE sci_tstval-version RAISING cx_static_check . CLASS-METHODS build_memory IMPORTING !iv_class TYPE seoclsname EXPORTING !er_data TYPE REF TO data !et_memory TYPE ty_parameter_tt RAISING cx_static_check . CLASS-METHODS upload_attributes IMPORTING !iv_testname TYPE sci_tstval-testname !ii_attributes TYPE REF TO if_ixml_node CHANGING !cv_attributes TYPE xstring RAISING cx_static_check . CLASS-METHODS update_variant IMPORTING !iv_testname TYPE sci_tstval-testname !ii_attributes TYPE REF TO if_ixml_node CHANGING !ct_variant TYPE sci_tstvar RAISING cx_static_check . CLASS-METHODS read_source IMPORTING !iv_include TYPE program RETURNING VALUE(rt_source) TYPE abaptxt255_tab . CLASS-METHODS parse IMPORTING !it_source TYPE abaptxt255_tab RETURNING VALUE(rt_parameters) TYPE ty_parameter_tt RAISING zcx_updownci_exception . CLASS-METHODS find_types IMPORTING !iv_class TYPE seoclsname !it_parameters TYPE ty_parameter_tt RETURNING VALUE(rt_types) TYPE ty_type_tt RAISING cx_static_check . CLASS-METHODS show_progress IMPORTING !iv_current TYPE i !iv_total TYPE i !iv_class TYPE seoclsname . CLASS-METHODS create_structure IMPORTING !iv_class TYPE seoclsname !it_types TYPE ty_type_tt RETURNING VALUE(rr_data) TYPE REF TO data RAISING zcx_updownci_exception . ENDCLASS. CLASS ZCL_UPDOWNCI IMPLEMENTATION. METHOD build_memory. DATA: lv_include TYPE program, lt_parameters TYPE ty_parameter_tt, lt_types TYPE ty_type_tt, lt_source TYPE abaptxt255_tab. FIELD-SYMBOLS: <ls_type> LIKE LINE OF lt_types, <ls_memory> LIKE LINE OF et_memory. CLEAR et_memory. lv_include = zcl_updownci_class=>find_include( iv_class ). lt_source = read_source( lv_include ). lt_parameters = parse( lt_source ). lt_types = find_types( iv_class = iv_class it_parameters = lt_parameters ). er_data = create_structure( iv_class = iv_class it_types = lt_types ). LOOP AT lt_types ASSIGNING <ls_type>. APPEND INITIAL LINE TO et_memory ASSIGNING <ls_memory>. <ls_memory>-name = <ls_type>-parameter. IF <ls_type>-field IS INITIAL. CONCATENATE '<LG_DATA>' <ls_type>-name INTO <ls_memory>-value SEPARATED BY '-'. ELSE. CONCATENATE '<LG_DATA>' <ls_type>-name <ls_type>-field INTO <ls_memory>-value SEPARATED BY '-'. ENDIF. ENDLOOP. ENDMETHOD. "build_memory METHOD build_xml. DATA: lv_count TYPE i, lo_variant TYPE REF TO cl_ci_checkvariant. FIELD-SYMBOLS: <ls_variant> LIKE LINE OF lo_variant->variant. lo_variant = zcl_updownci_variant=>read( iv_user = iv_user iv_name = iv_name ). CREATE OBJECT go_xml. LOOP AT lo_variant->variant ASSIGNING <ls_variant> WHERE testname IN it_class. "#EC CI_HASHSEQ lv_count = lv_count + 1. show_progress( iv_current = lv_count iv_total = lines( lo_variant->variant ) iv_class = <ls_variant>-testname ). download_attributes( iv_class = <ls_variant>-testname iv_attributes = <ls_variant>-attributes iv_version = <ls_variant>-version ). ENDLOOP. rv_xml = go_xml->render( ). ENDMETHOD. METHOD create_from_xml. DATA: lt_variant TYPE sci_tstvar, lo_variant TYPE REF TO cl_ci_checkvariant, li_attributes TYPE REF TO if_ixml_node, lv_testname TYPE sci_tstval-testname, lv_version TYPE sci_tstval-version. lo_variant = zcl_updownci_variant=>read( iv_user = iv_user iv_name = iv_name iv_create = abap_true ). lo_variant->enter_change( ). lt_variant = lo_variant->variant. CREATE OBJECT go_xml EXPORTING iv_xml = iv_xml. go_xml->read_variant( IMPORTING ei_attributes = li_attributes ev_testname = lv_testname ev_version = lv_version ). WHILE NOT lv_testname IS INITIAL. show_progress( iv_current = 1 iv_total = 100 iv_class = lv_testname ). WRITE: / lv_testname, lv_version. TRY. IF zcl_updownci_variant=>version( lv_testname ) <> lv_version. WRITE: / 'Version mismatch' COLOR 6. "#EC NOTEXT ELSE. WRITE: / 'Version match'. "#EC NOTEXT update_variant( EXPORTING iv_testname = lv_testname ii_attributes = li_attributes CHANGING ct_variant = lt_variant ). ENDIF. CATCH zcx_updownci_test_not_found. WRITE: / 'Test not found, skip'. "#EC NOTEXT ENDTRY. WRITE: /. go_xml->read_variant( IMPORTING ei_attributes = li_attributes ev_testname = lv_testname ev_version = lv_version ). ENDWHILE. IF iv_test = abap_false. lo_variant->save( lt_variant ). ELSE. lo_variant->leave_change( ). ENDIF. ENDMETHOD. "upload METHOD create_structure. DATA: lt_components TYPE cl_abap_structdescr=>component_table, lo_type TYPE REF TO cl_abap_typedescr, lo_structdescr TYPE REF TO cl_abap_structdescr. FIELD-SYMBOLS: <ls_component> LIKE LINE OF lt_components, <ls_type> LIKE LINE OF it_types. IF it_types IS INITIAL. RETURN. ENDIF. LOOP AT it_types ASSIGNING <ls_type>. APPEND INITIAL LINE TO lt_components ASSIGNING <ls_component>. <ls_component>-name = <ls_type>-name. cl_abap_typedescr=>describe_by_name( EXPORTING p_name = <ls_type>-type RECEIVING p_descr_ref = lo_type EXCEPTIONS type_not_found = 1 OTHERS = 2 ). <ls_component>-type ?= lo_type. IF sy-subrc <> 0. <ls_component>-type ?= cl_abap_typedescr=>describe_by_name( |{ iv_class }=>{ <ls_type>-type }| ). ENDIF. ENDLOOP. SORT lt_components BY name ASCENDING. DELETE ADJACENT DUPLICATES FROM lt_components COMPARING name. TRY. lo_structdescr = cl_abap_structdescr=>create( lt_components ). CREATE DATA rr_data TYPE HANDLE lo_structdescr. CATCH cx_sy_struct_comp_name. RAISE EXCEPTION TYPE zcx_updownci_exception EXPORTING iv_text = 'error creating structure'. ENDTRY. ENDMETHOD. "create_structure METHOD download_attributes. DATA: lt_import TYPE ty_parameter_tt, lr_data TYPE REF TO data. FIELD-SYMBOLS: <lg_data> TYPE data. IF iv_attributes IS INITIAL. go_xml->write_variant( iv_testname = iv_class iv_version = iv_version ). ELSE. build_memory( EXPORTING iv_class = iv_class IMPORTING er_data = lr_data et_memory = lt_import ). ASSIGN lr_data->* TO <lg_data>. IMPORT (lt_import) FROM DATA BUFFER iv_attributes. IF sy-subrc <> 0. RAISE EXCEPTION TYPE zcx_updownci_exception EXPORTING iv_text = 'IMPORT error'. ENDIF. go_xml->write_variant( iv_testname = iv_class iv_version = iv_version ig_data = <lg_data> ). ENDIF. ENDMETHOD. METHOD find_types. DATA: lv_name TYPE seocmpname, lv_field TYPE string, lv_type TYPE string, lt_attr TYPE seo_attributes. FIELD-SYMBOLS: <ls_type> LIKE LINE OF rt_types, <ls_attr> LIKE LINE OF lt_attr, <ls_parameter> LIKE LINE OF it_parameters. lt_attr = zcl_updownci_class=>attributes( iv_class ). LOOP AT it_parameters ASSIGNING <ls_parameter>. IF <ls_parameter>-value CA '-'. SPLIT <ls_parameter>-value AT '-' INTO lv_name lv_field. ELSE. lv_name = <ls_parameter>-value. CLEAR lv_field. ENDIF. READ TABLE lt_attr ASSIGNING <ls_attr> WITH KEY cmpname = lv_name. IF sy-subrc = 0. lv_type = <ls_attr>-type. ENDIF. IF lv_type IS INITIAL. IF iv_class = 'CL_WDY_CI_TEST_CONVENTIONS'. lv_type = 'TY_WDY_CI_TEST_CONVENTIONS'. ELSE. lv_type = 'ABAP_BOOL'. ENDIF. ENDIF. IF lv_name = 'M_OPTION' AND lv_field = 'SCAN_WEB_DYNPRO'. * special handling for CL_CI_TEST_ABAP_NAMING_NEW lv_type = 'ABAP_BOOL'. ENDIF. IF lv_name = 'CASE'. * special handling for CL_CI_TEST_PRETTY_PRINT lv_type = 'TY_T_CASE'. ENDIF. IF iv_class(8) = 'Y_CHECK_'. * Special handling for code pal for ABAP - https://github.com/SAP/code-pal-for-abap lv_type = 'Y_IF_CLEAN_CODE_MANAGER=>CHECK_CONFIGURATION'. ENDIF. APPEND INITIAL LINE TO rt_types ASSIGNING <ls_type>. <ls_type>-parameter = <ls_parameter>-name. <ls_type>-name = lv_name. <ls_type>-type = lv_type. <ls_type>-field = lv_field. ENDLOOP. ENDMETHOD. "find_types METHOD parse. DATA: lv_offset TYPE i, lt_split TYPE TABLE OF string, lv_source TYPE string. FIELD-SYMBOLS: <ls_parameter> LIKE LINE OF rt_parameters. CONCATENATE LINES OF it_source INTO lv_source. FIND FIRST OCCURRENCE OF 'import' IN lv_source IGNORING CASE MATCH OFFSET lv_offset. "#EC NOTEXT IF sy-subrc <> 0. RAISE EXCEPTION TYPE zcx_updownci_exception EXPORTING iv_text = '"import" not found'. ENDIF. lv_offset = lv_offset + 6. lv_source = lv_source+lv_offset. FIND FIRST OCCURRENCE OF 'from data buffer p_attributes' IN lv_source IGNORING CASE MATCH OFFSET lv_offset. "#EC NOTEXT IF sy-subrc <> 0. FIND FIRST OCCURRENCE OF 'from data buffer p_attributes' IN lv_source IGNORING CASE MATCH OFFSET lv_offset. "#EC NOTEXT ENDIF. IF sy-subrc <> 0. RAISE EXCEPTION TYPE zcx_updownci_exception EXPORTING iv_text = '"from data buffer" not found'. ENDIF. lv_source = lv_source(lv_offset). SPLIT lv_source AT space INTO TABLE lt_split. LOOP AT lt_split INTO lv_source. IF lv_source IS INITIAL OR lv_source = '='. CONTINUE. ENDIF. * special handling for CL_SAUNIT_LEGACY_CI_CHECK REPLACE FIRST OCCURRENCE OF 'me->' IN lv_source WITH ''. IF NOT <ls_parameter> IS ASSIGNED. APPEND INITIAL LINE TO rt_parameters ASSIGNING <ls_parameter>. ENDIF. IF <ls_parameter>-name IS INITIAL. <ls_parameter>-name = lv_source. TRANSLATE <ls_parameter>-name TO UPPER CASE. ELSE. <ls_parameter>-value = lv_source. TRANSLATE <ls_parameter>-value TO UPPER CASE. UNASSIGN <ls_parameter>. ENDIF. ENDLOOP. ENDMETHOD. "parse METHOD read_source. DATA: lv_source LIKE LINE OF rt_source. CALL FUNCTION 'RPY_PROGRAM_READ' EXPORTING program_name = iv_include with_lowercase = abap_true TABLES source_extended = rt_source EXCEPTIONS cancelled = 1 not_found = 2 permission_error = 3 OTHERS = 4. "#EC CI_SUBRC ASSERT sy-subrc = 0. LOOP AT rt_source INTO lv_source. IF lv_source(1) = '*'. DELETE rt_source INDEX sy-tabix. ENDIF. ENDLOOP. ENDMETHOD. "read_source METHOD show_progress. DATA: lv_f TYPE f, lv_pct TYPE i. lv_f = ( iv_current / iv_total ) * 100. lv_pct = lv_f. CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = lv_pct text = iv_class. ENDMETHOD. "show_progress METHOD update_variant. DATA: ls_variant LIKE LINE OF ct_variant. FIELD-SYMBOLS: <ls_variant> LIKE LINE OF ct_variant. READ TABLE ct_variant ASSIGNING <ls_variant> WITH KEY testname = iv_testname. IF sy-subrc = 0. WRITE: / 'Found'. "#EC NOTEXT ELSE. WRITE: / 'Not found, creating' COLOR 6. "#EC NOTEXT CLEAR ls_variant. ls_variant-testname = iv_testname. ls_variant-version = zcl_updownci_variant=>version( iv_testname ). INSERT ls_variant INTO TABLE ct_variant. READ TABLE ct_variant ASSIGNING <ls_variant> WITH KEY testname = iv_testname. ASSERT sy-subrc = 0. ENDIF. IF zcl_updownci_variant=>has_attributes( iv_testname ) = abap_true. upload_attributes( EXPORTING iv_testname = iv_testname ii_attributes = ii_attributes CHANGING cv_attributes = <ls_variant>-attributes ). ELSE. WRITE: / 'No attributes'. "#EC NOTEXT ENDIF. ENDMETHOD. "update_variant METHOD upload_attributes. DATA: lt_export TYPE ty_parameter_tt, lv_attributes TYPE xstring, lr_data TYPE REF TO data. FIELD-SYMBOLS: <lg_data> TYPE data, <lg_data_old> TYPE data. build_memory( EXPORTING iv_class = iv_testname IMPORTING er_data = lr_data et_memory = lt_export ). ASSIGN lr_data->* TO <lg_data>. ASSERT sy-subrc = 0. build_memory( EXPORTING iv_class = iv_testname IMPORTING er_data = lr_data ). ASSIGN lr_data->* TO <lg_data_old>. ASSERT sy-subrc = 0. IF NOT cv_attributes IS INITIAL. IMPORT (lt_export) FROM DATA BUFFER cv_attributes. IF sy-subrc <> 0. RAISE EXCEPTION TYPE zcx_updownci_exception EXPORTING iv_text = 'IMPORT error'. ENDIF. <lg_data_old> = <lg_data>. ENDIF. CLEAR <lg_data>. go_xml->read_attributes( EXPORTING ii_attributes = ii_attributes CHANGING cg_data = <lg_data> ). EXPORT (lt_export) TO DATA BUFFER lv_attributes. IF <lg_data> <> <lg_data_old>. WRITE: / 'Attributes mismatch' COLOR 6. "#EC NOTEXT cv_attributes = lv_attributes. ELSE. WRITE: / 'Attributes match'. "#EC NOTEXT ENDIF. ENDMETHOD. "upload_attributes ENDCLASS.
[ 31631, 1976, 565, 62, 929, 2902, 979, 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, 4871, 62, 9521, 41876, 371, 27746, 3963, 384, 420, 7278, 3672, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 86, 9892, 62, 979, 62, 9288, 62, 1102, 16593, 22492, 27938, 11, 366, 973, 32366, 198, 220, 220, 220, 220, 220, 220, 220, 2315, 62, 28060, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 20613, 62, 15526, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2393, 62, 15526, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26533, 62, 9612, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1430, 62, 11125, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1080, 62, 13345, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 5772, 62, 9122, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2291, 62, 10459, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 869, 62, 1326, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 86, 9892, 62, 979, 62, 9288, 62, 1102, 16593, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 83, 62, 7442, 22492, 27938, 11, 366, 973, 32366, 198, 220, 220, 220, 220, 220, 220, 220, 4844, 220, 220, 220, 220, 220, 41876, 827, 10641, 486, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2793, 220, 220, 220, 220, 41876, 827, 10641, 486, 11, 198, 220, 220, 220, 220, 220, 220, 220, 6727, 220, 220, 220, 220, 41876, 827, 10641, 486, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1994, 62, 21037, 41876, 827, 10641, 486, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1994, 62, 45828, 41876, 827, 10641, 486, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 83, 62, 7442, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 1382, 62, 19875, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 7220, 220, 220, 220, 220, 220, 41876, 20681, 62, 7220, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3672, 220, 220, 220, 220, 220, 41876, 20681, 62, 354, 74, 85, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 4871, 220, 220, 220, 220, 41876, 1259, 62, 4871, 62, 9521, 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, 19875, 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, 2251, 62, 6738, 62, 19875, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 19875, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 7220, 41876, 20681, 62, 7220, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3672, 41876, 20681, 62, 354, 74, 85, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 9288, 41876, 450, 499, 62, 30388, 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, 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, 17143, 2357, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 17143, 2357, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 17143, 2357, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 17143, 2357, 13315, 5550, 38865, 35374, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 11507, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2214, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 4906, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 4906, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 4906, 13315, 5550, 38865, 35374, 764, 628, 220, 220, 220, 42715, 12, 26947, 467, 62, 19875, 41876, 4526, 37, 5390, 1976, 565, 62, 929, 2902, 979, 62, 19875, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 4321, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 4871, 220, 220, 220, 220, 220, 41876, 384, 420, 7278, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1078, 7657, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 9641, 220, 220, 220, 41876, 20681, 62, 83, 301, 2100, 12, 9641, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 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,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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 ]
method ZMONITOR_VALUESE_DELETE_ENTITY. RAISE EXCEPTION TYPE /iwbep/cx_mgw_not_impl_exc EXPORTING textid = /iwbep/cx_mgw_not_impl_exc=>method_not_implemented method = 'ZMONITOR_VALUESE_DELETE_ENTITY'. endmethod.
[ 220, 2446, 1168, 27857, 2043, 1581, 62, 23428, 52, 33635, 62, 7206, 2538, 9328, 62, 3525, 9050, 13, 198, 220, 17926, 24352, 7788, 42006, 2849, 41876, 1220, 14246, 65, 538, 14, 66, 87, 62, 11296, 86, 62, 1662, 62, 23928, 62, 41194, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 2420, 312, 796, 1220, 14246, 65, 538, 14, 66, 87, 62, 11296, 86, 62, 1662, 62, 23928, 62, 41194, 14804, 24396, 62, 1662, 62, 320, 1154, 12061, 198, 220, 220, 220, 220, 220, 2446, 796, 705, 57, 27857, 2043, 1581, 62, 23428, 52, 33635, 62, 7206, 2538, 9328, 62, 3525, 9050, 4458, 198, 220, 886, 24396, 13 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS ltcl_test DEFINITION DEFERRED. CLASS zcl_code_dojo_new_features DEFINITION LOCAL FRIENDS ltcl_test . CLASS ltcl_test DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. DATA f_cut TYPE REF TO zcl_code_dojo_new_features. METHODS: setup, nine_numbers FOR TESTING, cities FOR TESTING, cities_count_loop FOR TESTING, cities_count_for FOR TESTING, material_prices FOR TESTING, range_name FOR TESTING, range_city FOR TESTING, range_header FOR TESTING. ENDCLASS. CLASS ltcl_test IMPLEMENTATION. METHOD nine_numbers. cl_abap_unit_assert=>assert_equals( act = f_cut->fill_demo_data_numbers( ) exp = VALUE zcl_code_dojo_new_features=>_numbers( ( i = 1 ) ( i = 2 ) ( i = 3 ) ( i = 4 ) ( i = 5 ) ( i = 6 ) ( i = 7 ) ( i = 8 ) ( i = 9 ) ) ). ENDMETHOD. METHOD setup. f_cut = NEW #( ). f_cut->fill_demo_data( ). ENDMETHOD. METHOD cities. cl_abap_unit_assert=>assert_equals( act = f_cut->get_cities( ) exp = VALUE string_table( ( `Berlin` ) ( `Hannover` ) ( `Hamburg` ) ) ). ENDMETHOD. METHOD cities_count_loop. cl_abap_unit_assert=>assert_equals( act = f_cut->get_cities_count_loop( ) exp = VALUE zcl_code_dojo_new_features=>_cities_count( ( city = `Berlin` count = 3 ) ( city = `Hannover` count = 1 ) ( city = `Hamburg` count = 1 ) ) ). ENDMETHOD. METHOD cities_count_for. cl_abap_unit_assert=>assert_equals( act = f_cut->get_cities_count_for( ) exp = VALUE zcl_code_dojo_new_features=>_cities_count( ( city = `Berlin` count = 3 ) ( city = `Hannover` count = 1 ) ( city = `Hamburg` count = 1 ) ) ). ENDMETHOD. METHOD material_prices. DATA(result) = f_cut->get_material_prices( ). cl_abap_unit_assert=>assert_equals( act = result exp = VALUE zcl_code_dojo_new_features=>_material_prices_sum( ( mtart = `HOLZ` count = 3 price = `6.66` ) ( mtart = `METALL` count = 2 price = `9.99` ) ) ). ENDMETHOD. METHOD range_name. cl_abap_unit_assert=>assert_equals( act = f_cut->fill_ranges_table_name( ) exp = VALUE zcl_code_dojo_new_features=>_generic_range_tab( ( sign = 'I' option = 'EQ' low = 'Kattafelt' ) ( sign = 'I' option = 'EQ' low = 'Odertal' ) ( sign = 'I' option = 'EQ' low = 'Dschäksn' ) ( sign = 'I' option = 'EQ' low = 'Johnson' ) ( sign = 'I' option = 'EQ' low = 'Bungee' ) ) ). ENDMETHOD. METHOD range_city. cl_abap_unit_assert=>assert_equals( act = f_cut->fill_ranges_table_city( ) exp = VALUE zcl_code_dojo_new_features=>_generic_range_tab( ( sign = 'I' option = 'EQ' low = `Berlin` ) ( sign = 'I' option = 'EQ' low = `Hannover` ) ( sign = 'I' option = 'EQ' low = `Hamburg` ) ) ). ENDMETHOD. METHOD range_header. cl_abap_unit_assert=>assert_equals( act = f_cut->fill_ranges_table_header( ) exp = VALUE zcl_code_dojo_new_features=>_generic_range_tab( ( sign = 'I' option = 'EQ' low = `ONE` ) ( sign = 'I' option = 'EQ' low = `TWO` ) ( sign = 'I' option = 'EQ' low = `THREE` ) ) ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 83, 565, 62, 9288, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 31631, 1976, 565, 62, 8189, 62, 4598, 7639, 62, 3605, 62, 40890, 5550, 20032, 17941, 37347, 1847, 48167, 1677, 5258, 300, 83, 565, 62, 9288, 764, 198, 31631, 300, 83, 565, 62, 9288, 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, 277, 62, 8968, 41876, 4526, 37, 5390, 1976, 565, 62, 8189, 62, 4598, 7639, 62, 3605, 62, 40890, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 9058, 11, 198, 220, 220, 220, 220, 220, 5193, 62, 77, 17024, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 4736, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 4736, 62, 9127, 62, 26268, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 4736, 62, 9127, 62, 1640, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 2587, 62, 1050, 1063, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 2837, 62, 3672, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 2837, 62, 19205, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 2837, 62, 25677, 7473, 43001, 2751, 13, 198, 198, 10619, 31631, 13, 628, 198, 31631, 300, 83, 565, 62, 9288, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 5193, 62, 77, 17024, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 220, 220, 719, 796, 277, 62, 8968, 3784, 20797, 62, 9536, 78, 62, 7890, 62, 77, 17024, 7, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1033, 796, 26173, 8924, 1976, 565, 62, 8189, 62, 4598, 7639, 62, 3605, 62, 40890, 14804, 62, 77, 17024, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 1312, 796, 352, 1267, 357, 1312, 796, 362, 1267, 357, 1312, 796, 513, 1267, 357, 1312, 796, 604, 1267, 357, 1312, 796, 642, 1267, 357, 1312, 796, 718, 1267, 357, 1312, 796, 767, 1267, 357, 1312, 796, 807, 1267, 357, 1312, 796, 860, 1267, 1267, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 9058, 13, 198, 220, 220, 220, 277, 62, 8968, 796, 12682, 1303, 7, 6739, 198, 220, 220, 220, 277, 62, 8968, 3784, 20797, 62, 9536, 78, 62, 7890, 7, 6739, 198, 220, 23578, 49273, 13, 198, 220, 337, 36252, 4736, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 719, 796, 277, 62, 8968, 3784, 1136, 62, 66, 871, 7, 1267, 198, 220, 220, 220, 1033, 796, 26173, 8924, 4731, 62, 11487, 7, 220, 357, 4600, 24814, 2815, 63, 1267, 357, 4600, 39, 1236, 2502, 63, 1267, 357, 4600, 39, 4131, 3686, 63, 1267, 1267, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 4736, 62, 9127, 62, 26268, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 719, 796, 277, 62, 8968, 3784, 1136, 62, 66, 871, 62, 9127, 62, 26268, 7, 1267, 198, 220, 220, 220, 1033, 796, 26173, 8924, 1976, 565, 62, 8189, 62, 4598, 7639, 62, 3605, 62, 40890, 14804, 62, 66, 871, 62, 9127, 7, 198, 220, 220, 220, 220, 220, 357, 1748, 796, 4600, 24814, 2815, 63, 220, 220, 954, 796, 513, 1267, 198, 220, 220, 220, 220, 220, 357, 1748, 796, 4600, 39, 1236, 2502, 63, 954, 796, 352, 1267, 198, 220, 220, 220, 220, 220, 357, 1748, 796, 4600, 39, 4131, 3686, 63, 220, 954, 796, 352, 1267, 1267, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 4736, 62, 9127, 62, 1640, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 719, 796, 277, 62, 8968, 3784, 1136, 62, 66, 871, 62, 9127, 62, 1640, 7, 1267, 198, 220, 220, 220, 1033, 796, 26173, 8924, 1976, 565, 62, 8189, 62, 4598, 7639, 62, 3605, 62, 40890, 14804, 62, 66, 871, 62, 9127, 7, 198, 220, 220, 220, 220, 220, 357, 1748, 796, 4600, 24814, 2815, 63, 220, 220, 954, 796, 513, 1267, 198, 220, 220, 220, 220, 220, 357, 1748, 796, 4600, 39, 1236, 2502, 63, 954, 796, 352, 1267, 198, 220, 220, 220, 220, 220, 357, 1748, 796, 4600, 39, 4131, 3686, 63, 220, 954, 796, 352, 1267, 1267, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 2587, 62, 1050, 1063, 13, 198, 220, 220, 220, 42865, 7, 20274, 8, 796, 277, 62, 8968, 3784, 1136, 62, 33665, 62, 1050, 1063, 7, 6739, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 719, 796, 1255, 198, 220, 220, 220, 1033, 796, 26173, 8924, 1976, 565, 62, 8189, 62, 4598, 7639, 62, 3605, 62, 40890, 14804, 62, 33665, 62, 1050, 1063, 62, 16345, 7, 198, 220, 220, 220, 220, 220, 220, 357, 45079, 433, 796, 4600, 39, 3535, 57, 63, 220, 220, 954, 796, 513, 2756, 796, 4600, 21, 13, 2791, 63, 1267, 198, 220, 220, 220, 220, 220, 220, 357, 45079, 433, 796, 4600, 47123, 7036, 63, 954, 796, 362, 2756, 796, 4600, 24, 13, 2079, 63, 1267, 1267, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 2837, 62, 3672, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 719, 796, 277, 62, 8968, 3784, 20797, 62, 81, 6231, 62, 11487, 62, 3672, 7, 1267, 198, 220, 220, 220, 1033, 796, 26173, 8924, 1976, 565, 62, 8189, 62, 4598, 7639, 62, 3605, 62, 40890, 14804, 62, 41357, 62, 9521, 62, 8658, 7, 198, 220, 220, 220, 220, 220, 357, 1051, 796, 705, 40, 6, 3038, 796, 705, 36, 48, 6, 1877, 796, 705, 42, 1078, 1878, 2120 ]
[ 1, 1, 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------------------------------------------------------------* *& Include ZMIME_EDITOR_SMIM *&---------------------------------------------------------------------* CLASS lcl_smim DEFINITION FINAL. PUBLIC SECTION. CLASS-METHODS: get_content IMPORTING is_smim TYPE ty_smim RETURNING VALUE(rv_content) TYPE string, get_url IMPORTING is_smim TYPE ty_smim RETURNING VALUE(rv_url) TYPE string, save IMPORTING is_smim TYPE ty_smim iv_string TYPE string. ENDCLASS. CLASS lcl_tree_content DEFINITION FINAL. PUBLIC SECTION. CLASS-METHODS: init, get_by_key IMPORTING iv_key TYPE tv_nodekey RETURNING VALUE(rs_smim) TYPE ty_smim. PRIVATE SECTION. TYPES: BEGIN OF ty_smim, key TYPE tv_nodekey, text TYPE string, lo_class TYPE smimloio-lo_class, loio_id TYPE smimloio-loio_id, END OF ty_smim. CLASS-DATA: mt_smim TYPE STANDARD TABLE OF ty_smim WITH DEFAULT KEY. CLASS-METHODS: build RETURNING VALUE(rt_nodes) TYPE ty_nodes, find_smim. ENDCLASS. CLASS lcl_tree_content IMPLEMENTATION. METHOD get_by_key. DATA: ls_smim LIKE LINE OF mt_smim. READ TABLE mt_smim INTO ls_smim WITH KEY key = iv_key. ASSERT sy-subrc = 0. MOVE-CORRESPONDING ls_smim TO rs_smim. ENDMETHOD. METHOD init. DATA: lt_events TYPE cntl_simple_events, lt_nodes TYPE ty_nodes, ls_event LIKE LINE OF lt_events. ls_event-eventid = cl_gui_simple_tree=>eventid_node_double_click. ls_event-appl_event = abap_true. APPEND ls_event TO lt_events. go_tree->set_registered_events( EXPORTING events = lt_events EXCEPTIONS cntl_error = 1 cntl_system_error = 2 illegal_event_combination = 3 ). ASSERT sy-subrc = 0. lt_nodes = build( ). go_tree->add_nodes( EXPORTING table_structure_name = 'MTREESNODE' node_table = lt_nodes EXCEPTIONS failed = 1 error_in_node_table = 2 dp_error = 3 table_structure_name_not_found = 4 OTHERS = 5 ). ASSERT sy-subrc = 0. ENDMETHOD. METHOD build. DATA: ls_node LIKE LINE OF rt_nodes. find_smim( ). LOOP AT mt_smim INTO DATA(ls_smim). ls_node-node_key = ls_smim-key. ls_node-text = ls_smim-text. APPEND ls_node TO rt_nodes. ENDLOOP. ENDMETHOD. METHOD find_smim. TYPES: BEGIN OF ty_tadir, obj_name TYPE tadir-obj_name, END OF ty_tadir. DATA: lv_index TYPE i, lt_tadir TYPE STANDARD TABLE OF ty_tadir WITH DEFAULT KEY, ls_smim LIKE gs_smim. SELECT obj_name FROM tadir INTO TABLE @lt_tadir WHERE devclass = @p_devc AND object = 'SMIM'. "#EC CI_GENBUFF IF sy-subrc <> 0. RETURN. ENDIF. LOOP AT lt_tadir INTO DATA(ls_tadir). lv_index = sy-tabix. SELECT SINGLE * FROM smimloio INTO CORRESPONDING FIELDS OF @ls_smim WHERE loio_id = @ls_tadir-obj_name. "#EC CI_GENBUFF IF sy-subrc <> 0 OR ls_smim-lo_class = wbmr_c_skwf_folder_class. * ignore folders CONTINUE. ENDIF. DATA(lv_url) = lcl_smim=>get_url( ls_smim ). IF lv_url CP '*.png'. CONTINUE. ENDIF. APPEND VALUE #( key = |KEY{ lv_index }| text = lv_url lo_class = ls_smim-lo_class loio_id = ls_smim-loio_id ) TO mt_smim. ENDLOOP. ENDMETHOD. ENDCLASS. CLASS lcl_smim IMPLEMENTATION. METHOD get_content. DATA: li_api TYPE REF TO if_mr_api, lv_content TYPE xstring, lv_url TYPE string, lv_len TYPE i, lo_obj TYPE REF TO cl_abap_conv_in_ce. lv_url = get_url( is_smim ). li_api = cl_mime_repository_api=>if_mr_api~get_api( ). li_api->get( EXPORTING i_url = lv_url IMPORTING e_content = lv_content EXCEPTIONS parameter_missing = 1 error_occured = 2 not_found = 3 permission_failure = 4 OTHERS = 5 ). IF sy-subrc <> 0. BREAK-POINT. ENDIF. TRY. lo_obj = cl_abap_conv_in_ce=>create( input = lv_content encoding = 'UTF-8' ). lv_len = xstrlen( lv_content ). lo_obj->read( EXPORTING n = lv_len IMPORTING data = rv_content ). CATCH cx_parameter_invalid_range cx_sy_codepage_converter_init cx_sy_conversion_codepage cx_parameter_invalid_type. BREAK-POINT. ENDTRY. ENDMETHOD. METHOD get_url. DATA: lv_url TYPE skwf_url, ls_io TYPE skwf_io. ls_io-objtype = skwfc_obtype_loio. ls_io-class = is_smim-lo_class. ls_io-objid = is_smim-loio_id. CALL FUNCTION 'SKWF_NMSPC_IO_ADDRESS_GET' EXPORTING io = ls_io IMPORTING url = lv_url. rv_url = lv_url. ENDMETHOD. METHOD save. DATA: lv_content TYPE xstring, lv_lines TYPE i, lv_filename TYPE skwf_filnm, li_api TYPE REF TO if_mr_api, lv_url TYPE string, ls_skwf_io TYPE skwf_io, lt_strings TYPE TABLE OF string, lo_obj TYPE REF TO cl_abap_conv_out_ce. TRY. lo_obj = cl_abap_conv_out_ce=>create( encoding = 'UTF-8' ). lo_obj->convert( EXPORTING data = iv_string IMPORTING buffer = lv_content ). CATCH cx_parameter_invalid_range cx_sy_codepage_converter_init cx_sy_conversion_codepage cx_parameter_invalid_type. BREAK-POINT. ENDTRY. lv_url = get_url( is_smim ). SPLIT lv_url AT '/' INTO TABLE lt_strings. lv_lines = lines( lt_strings ). ASSERT lv_lines > 0. READ TABLE lt_strings INDEX lv_lines INTO lv_filename. ASSERT sy-subrc = 0. ls_skwf_io-objid = gs_smim-loio_id. cl_wb_mime_repository=>determine_io_class( EXPORTING filename = lv_filename IMPORTING io_class = ls_skwf_io-class ). CONCATENATE ls_skwf_io-class '_L' INTO ls_skwf_io-class. li_api = cl_mime_repository_api=>if_mr_api~get_api( ). li_api->put( EXPORTING i_url = lv_url i_content = lv_content i_new_loio = ls_skwf_io EXCEPTIONS parameter_missing = 1 error_occured = 2 cancelled = 3 permission_failure = 4 data_inconsistency = 5 new_loio_already_exists = 6 is_folder = 7 OTHERS = 8 ). IF sy-subrc <> 0. BREAK-POINT. ENDIF. ENDMETHOD. ENDCLASS. CLASS lcl_editor DEFINITION FINAL. PUBLIC SECTION. CLASS-METHODS: save, is_dirty RETURNING VALUE(rv_dirty) TYPE abap_bool, switch IMPORTING is_smim TYPE ty_smim. PRIVATE SECTION. CLASS-DATA: ms_smim TYPE ty_smim. ENDCLASS. CLASS lcl_editor IMPLEMENTATION. METHOD is_dirty. DATA: lv_status TYPE i. IF ms_smim IS INITIAL. rv_dirty = abap_false. RETURN. ENDIF. go_editor->get_textmodified_status( IMPORTING status = lv_status ). cl_gui_cfw=>flush( ). rv_dirty = xsdbool( NOT lv_status = 0 ). ENDMETHOD. METHOD save. DATA: lv_string TYPE string. IF is_dirty( ) = abap_false. MESSAGE 'Nothing changed'(005) TYPE 'S'. RETURN. ENDIF. go_editor->get_textstream( IMPORTING text = lv_string ). cl_gui_cfw=>flush( ). lcl_smim=>save( is_smim = ms_smim iv_string = lv_string ). MESSAGE 'Saved'(003) TYPE 'S'. go_editor->set_textmodified_status( 0 ). ENDMETHOD. METHOD switch. DATA: lv_content TYPE string. IF is_dirty( ) = abap_true. MESSAGE 'Not saved'(004) TYPE 'W'. RETURN. ENDIF. ms_smim = is_smim. go_editor->set_enable( abap_true ). go_editor->set_readonly_mode( 0 ). lv_content = lcl_smim=>get_content( ms_smim ). go_editor->set_textstream( lv_content ). go_editor->set_focus( go_editor ). ENDMETHOD. ENDCLASS. CLASS lcl_handler DEFINITION FINAL. PUBLIC SECTION. CLASS-METHODS: double_click FOR EVENT node_double_click OF cl_gui_simple_tree IMPORTING node_key. ENDCLASS. CLASS lcl_handler IMPLEMENTATION. METHOD double_click. DATA: ls_smim LIKE gs_smim. ls_smim = lcl_tree_content=>get_by_key( node_key ). lcl_editor=>switch( ls_smim ). ENDMETHOD. ENDCLASS.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1168, 44, 12789, 62, 24706, 1581, 62, 12310, 3955, 198, 9, 5, 10097, 30934, 9, 198, 198, 31631, 300, 565, 62, 5796, 320, 5550, 20032, 17941, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 651, 62, 11299, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 318, 62, 5796, 320, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 5796, 320, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 11299, 8, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 651, 62, 6371, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 318, 62, 5796, 320, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 5796, 320, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 6371, 8, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 3613, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 318, 62, 5796, 320, 220, 220, 41876, 1259, 62, 5796, 320, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 8841, 41876, 4731, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 21048, 62, 11299, 5550, 20032, 17941, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 2315, 11, 198, 220, 220, 220, 220, 220, 651, 62, 1525, 62, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 31557, 62, 17440, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 3808, 62, 5796, 320, 8, 41876, 1259, 62, 5796, 320, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 5796, 320, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1994, 220, 220, 220, 220, 220, 41876, 31557, 62, 17440, 2539, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 4871, 41876, 895, 320, 5439, 952, 12, 5439, 62, 4871, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 952, 62, 312, 220, 41876, 895, 320, 5439, 952, 12, 5439, 952, 62, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 5796, 320, 13, 628, 220, 220, 220, 42715, 12, 26947, 25, 45079, 62, 5796, 320, 41876, 49053, 9795, 43679, 3963, 1259, 62, 5796, 320, 13315, 5550, 38865, 35374, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 1382, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 17034, 62, 77, 4147, 8, 41876, 1259, 62, 77, 4147, 11, 198, 220, 220, 220, 220, 220, 1064, 62, 5796, 320, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 21048, 62, 11299, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 651, 62, 1525, 62, 2539, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 5796, 320, 34178, 48920, 3963, 45079, 62, 5796, 320, 13, 628, 220, 220, 220, 20832, 43679, 45079, 62, 5796, 320, 39319, 43979, 62, 5796, 320, 13315, 35374, 1994, 796, 21628, 62, 2539, 13, 198, 220, 220, 220, 24994, 17395, 827, 12, 7266, 6015, 796, 657, 13, 628, 220, 220, 220, 13070, 6089, 12, 44879, 19535, 47, 18672, 2751, 43979, 62, 5796, 320, 5390, 44608, 62, 5796, 320, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 2315, 13, 628, 220, 220, 220, 42865, 25, 300, 83, 62, 31534, 41876, 269, 429, 75, 62, 36439, 62, 31534, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 77, 4147, 220, 41876, 1259, 62, 77, 4147, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 15596, 220, 34178, 48920, 3963, 300, 83, 62, 31534, 13, 628, 198, 220, 220, 220, 43979, 62, 15596, 12, 15596, 312, 796, 537, 62, 48317, 62, 36439, 62, 21048, 14804, 15596, 312, 62, 17440, 62, 23352, 62, 12976, 13, 198, 220, 220, 220, 43979, 62, 15596, 12, 1324, 75, 62, 15596, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 43504, 10619, 43979, 62, 15596, 5390, 300, 83, 62, 31534, 13, 628, 220, 220, 220, 467, 62, 21048, 3784, 2617, 62, 33736, 62, 31534, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2995, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 83, 62, 31534, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 269, 429, 75, 62, 18224, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 269, 429, 75, 62, 10057, 62, 18224, 220, 220, 220, 220, 220, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 5293, 62, 15596, 62, 24011, 1883, 796, 513, 6739, 198, 220, 220, 220, 24994, 17395, 827, 12, 7266, 6015, 796, 657, 13, 628, 220, 220, 220, 300, 83, 62, 77, 4147, 796, 1382, 7, 6739, 628, 220, 220, 220, 467, 62, 21048, 3784, 2860, 62, 77, 4147, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 3084, 62, 301, 5620,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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 ]
"! <p class="shorttext synchronized" lang="en">Brainfuck Compiler</p> CLASS zcl_brainfuck_compiler DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_brainfuck_compiler. PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF t_added_instruction, instruction TYPE REF TO zif_brainfuck_instruction, insert_index TYPE i, END OF t_added_instruction. METHODS char_to_instruction IMPORTING i_char TYPE string RETURNING VALUE(r_token) TYPE zif_brainfuck_instruction=>t_instruction_type. METHODS add_or_fold_instruction IMPORTING i_token TYPE zif_brainfuck_instruction=>t_instruction_type i_location TYPE i i_optimised TYPE abap_bool CHANGING ct_instructions TYPE zif_brainfuck_instruction=>tt_instructions RETURNING VALUE(r_result) TYPE t_added_instruction RAISING zcx_brainfuck_error. METHODS can_token_fold IMPORTING i_token TYPE zif_brainfuck_instruction=>t_instruction_type RETURNING VALUE(r_result) TYPE abap_bool. ENDCLASS. CLASS zcl_brainfuck_compiler IMPLEMENTATION. METHOD zif_brainfuck_compiler~compile. DATA: loop_stack TYPE STANDARD TABLE OF i, last_token LIKE LINE OF et_instructions. CLEAR: et_instructions[]. DATA(code_len) = strlen( i_code ). IF code_len < 1. RAISE EXCEPTION TYPE zcx_brainfuck_syntax_error EXPORTING location = 0 source_code = i_code message = 'Empty source code'. ENDIF. DATA(location) = 0. DO code_len TIMES. DATA(offset) = sy-index - 1. " 0-index location = offset + 1. " 1-index DATA(char) = i_code+offset(1). DATA(token) = char_to_instruction( char ). " There could be multiple optimisation levels, but for us its an ON/OFF switch DATA(is_optimised) = xsdbool( i_optimisation_level <> zif_brainfuck_compiler=>optimisation_levels-none ). " Allow debugger calls? IF token = zif_brainfuck_instruction=>instruction_type-debugger AND i_allow_debugger <> abap_true. CONTINUE. ENDIF. " Skip comments if optimisation is on IF token = zif_brainfuck_instruction=>instruction_type-comment AND is_optimised = abap_true. CONTINUE. ENDIF. " If same as last token, then bump the REPEAT value... DATA(insertion) = add_or_fold_instruction( EXPORTING i_token = token i_location = location i_optimised = is_optimised CHANGING ct_instructions = et_instructions ). " Handle loops to set the open/close index CASE token. WHEN zif_brainfuck_instruction=>instruction_type-jmp_if_zero. " Push the 'stack' APPEND insertion-insert_index TO loop_stack. WHEN zif_brainfuck_instruction=>instruction_type-jmp_if_not_zero. TRY. " Pop the 'stack' for the opening of loop location DATA(open_loop) = loop_stack[ lines( loop_stack ) ]. DELETE loop_stack INDEX lines( loop_stack ). " Set the opening loop instruction index as the end loop argument insertion-instruction->argument = open_loop. " Set the closing loop instruction index as the opening loop argument et_instructions[ open_loop ]->argument = insertion-insert_index. CATCH cx_sy_itab_line_not_found. " Syntax error -> closing loop without corresponding opening RAISE EXCEPTION TYPE zcx_brainfuck_syntax_error EXPORTING location = location source_code = i_code message = |No opening '[' for loop|. ENDTRY. ENDCASE. ENDDO. " If loop stack is not empty, then a loop was not closed... IF loop_stack[] IS NOT INITIAL. RAISE EXCEPTION TYPE zcx_brainfuck_syntax_error EXPORTING location = location source_code = i_code message = |No closing ']' for loop|. ENDIF. ENDMETHOD. METHOD char_to_instruction. CASE i_char. WHEN '['. r_token = zif_brainfuck_instruction=>instruction_type-jmp_if_zero. WHEN ']'. r_token = zif_brainfuck_instruction=>instruction_type-jmp_if_not_zero. WHEN '+'. r_token = zif_brainfuck_instruction=>instruction_type-plus. WHEN '-'. r_token = zif_brainfuck_instruction=>instruction_type-minus. WHEN '>'. r_token = zif_brainfuck_instruction=>instruction_type-right. WHEN '<'. r_token = zif_brainfuck_instruction=>instruction_type-left. WHEN '.'. r_token = zif_brainfuck_instruction=>instruction_type-put_char. WHEN ','. r_token = zif_brainfuck_instruction=>instruction_type-read_char. WHEN '#'. r_token = zif_brainfuck_instruction=>instruction_type-debugger. WHEN OTHERS. " Anything else is a comment r_token = zif_brainfuck_instruction=>instruction_type-comment. ENDCASE. ENDMETHOD. METHOD add_or_fold_instruction. DATA last_instruction TYPE REF TO zif_brainfuck_instruction. " If the last instruction is the same, just bump the REPEAT if optmisations are on " and the token can be folded DATA(count) = lines( ct_instructions ). IF count > 0. last_instruction = ct_instructions[ count ]. ENDIF. IF i_optimised = abap_true AND can_token_fold( i_token ) AND last_instruction IS BOUND AND last_instruction->type = i_token. " Nothing to add, just bump the REPEAT last_instruction->repeated = last_instruction->repeated + 1. r_result = VALUE #( instruction = last_instruction insert_index = count ). RETURN. ENDIF. " New instruction: " @TODO decouple... DATA(instruction) = zcl_brainfuck_instruction=>zif_brainfuck_instruction~create( i_instruction = i_token i_location = i_location i_repeated = 1 ). APPEND instruction TO ct_instructions. r_result = VALUE #( instruction = instruction insert_index = sy-tabix ). ENDMETHOD. METHOD can_token_fold. r_result = SWITCH #( i_token " The open and close loop instructions can never be optimised as this will " change the semantics of the program WHEN zif_brainfuck_instruction=>instruction_type-jmp_if_zero THEN abap_false WHEN zif_brainfuck_instruction=>instruction_type-jmp_if_not_zero THEN abap_false ELSE abap_true ). ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 44687, 31699, 3082, 5329, 3556, 79, 29, 198, 31631, 1976, 565, 62, 27825, 31699, 62, 5589, 5329, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 27825, 31699, 62, 5589, 5329, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 256, 62, 29373, 62, 8625, 2762, 11, 198, 220, 220, 220, 220, 220, 220, 220, 12064, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 27825, 31699, 62, 8625, 2762, 11, 198, 220, 220, 220, 220, 220, 220, 220, 7550, 62, 9630, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 256, 62, 29373, 62, 8625, 2762, 13, 628, 220, 220, 220, 337, 36252, 50, 1149, 62, 1462, 62, 8625, 2762, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 10641, 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, 62, 30001, 8, 41876, 1976, 361, 62, 27825, 31699, 62, 8625, 2762, 14804, 83, 62, 8625, 2762, 62, 4906, 13, 628, 220, 220, 220, 337, 36252, 50, 751, 62, 273, 62, 11379, 62, 8625, 2762, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 30001, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 27825, 31699, 62, 8625, 2762, 14804, 83, 62, 8625, 2762, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 24886, 220, 220, 220, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 40085, 1417, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 269, 83, 62, 259, 7249, 507, 41876, 1976, 361, 62, 27825, 31699, 62, 8625, 2762, 14804, 926, 62, 259, 7249, 507, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 20274, 8, 41876, 256, 62, 29373, 62, 8625, 2762, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 27825, 31699, 62, 18224, 13, 198, 220, 220, 220, 337, 36252, 50, 460, 62, 30001, 62, 11379, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 30001, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 27825, 31699, 62, 8625, 2762, 14804, 83, 62, 8625, 2762, 62, 4906, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 20274, 8, 41876, 450, 499, 62, 30388, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 1976, 565, 62, 27825, 31699, 62, 5589, 5329, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 1976, 361, 62, 27825, 31699, 62, 5589, 5329, 93, 5589, 576, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 9052, 62, 25558, 41876, 49053, 9795, 43679, 3963, 1312, 11, 198, 220, 220, 220, 220, 220, 938, 62, 30001, 34178, 48920, 3963, 2123, 62, 259, 7249, 507, 13, 628, 220, 220, 220, 30301, 1503, 25, 2123, 62, 259, 7249, 507, 58, 4083, 628, 220, 220, 220, 42865, 7, 8189, 62, 11925, 8, 796, 965, 11925, 7, 1312, 62, 8189, 6739, 628, 220, 220, 220, 16876, 2438, 62, 11925, 1279, 352, 13, 198, 220, 220, 220, 220, 220, 17926, 24352, 7788, 42006, 2849, 41876, 1976, 66, 87, 62, 27825, 31699, 62, 1837, 41641, 62, 18224, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4067, 220, 220, 220, 796, 657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2723, 62, 8189, 796, 1312, 62, 8189, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3275, 220, 220, 220, 220, 796, 705, 40613, 2723, 2438, 4458, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 42865, 7, 24886, 8, 796, 657, 13, 198, 220, 220, 220, 8410, 2438, 62, 11925, 31742, 1546, 13, 198, 220, 220, 220, 220, 220, 42865, 7, 28968, 8, 796, 827, 12, 9630, 532, 352, 13, 366, 657, 12, 9630, 198, 220, 220, 220, 220, 220, 4067, 220, 220, 220, 220, 796, 11677, 1343, 352, 13, 220, 220, 366, 352, 12, 9630, 628, 220, 220, 220, 220, 220, 42865, 7, 10641, 8, 796, 1312, 62, 8189, 10, 28968, 7, 16, 737, 628, 220, 220, 220, 220, 220, 42865, 7, 30001, 8, 796, 1149, 62, 1462, 62, 8625, 2762, 7, 1149, 6739, 628, 220, 220, 220, 220, 220, 366, 1318, 714, 307, 3294, 6436, 5612, 2974, 11, 475, 329, 514, 663, 281, 6177, 14, 27977, 5078, 198, 220, 220, 220, 220, 220, 42865, 7, 271, 62, 40085, 1417, 8, 796, 2124, 82, 9945, 970, 7, 1312, 62, 40085, 5612, 62, 5715, 1279, 29, 1976, 361, 62, 27825, 31699, 62, 5589, 5329, 14804, 40085, 5612, 62, 46170, 12, 23108, 6739, 628, 220, 220, 220, 220, 220, 366, 22507, 49518, 3848, 30, 198, 220, 220, 220, 220, 220, 16876, 11241, 796, 1976, 361, 62, 27825, 31699, 62, 8625, 2762, 14804, 8625, 2762, 62, 4906, 12, 24442, 1362, 5357, 1312, 62, 12154, 62, 24442, 1362, 1279, 29, 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, 366, 32214, 3651, 611, 6436, 5612, 318, 319, 198, 220, 220, 220, 220, 220, 16876, 11241, 796, 1976, 361, 62, 27825, 31699, 62, 8625, 2762, 14804, 8625, 2762, 62, 4906, 12, 23893, 5357, 318, 62, 40085, 1417, 796, 450, 499, 62, 7942 ]
[ 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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