content
stringlengths
4
1.04M
input_ids
sequencelengths
2
1.02k
attention_mask
sequencelengths
2
1.02k
class-pool . *"* class pool for class ZCL_ZAS_EMP_DPC_EXT *"* local type definitions include ZCL_ZAS_EMP_DPC_EXT===========ccdef. *"* class ZCL_ZAS_EMP_DPC_EXT definition *"* public declarations include ZCL_ZAS_EMP_DPC_EXT===========cu. *"* protected declarations include ZCL_ZAS_EMP_DPC_EXT===========co. *"* private declarations include ZCL_ZAS_EMP_DPC_EXT===========ci. endclass. "ZCL_ZAS_EMP_DPC_EXT definition *"* macro definitions include ZCL_ZAS_EMP_DPC_EXT===========ccmac. *"* local class implementation include ZCL_ZAS_EMP_DPC_EXT===========ccimp. class ZCL_ZAS_EMP_DPC_EXT implementation. *"* method's implementations include methods. endclass. "ZCL_ZAS_EMP_DPC_EXT implementation
[ 4871, 12, 7742, 764, 198, 9, 1, 9, 1398, 5933, 329, 1398, 1168, 5097, 62, 57, 1921, 62, 39494, 62, 35, 5662, 62, 13918, 198, 198, 9, 1, 9, 1957, 2099, 17336, 198, 17256, 1168, 5097, 62, 57, 1921, 62, 39494, 62, 35, 5662, 62, 13918, 2559, 18604, 535, 4299, 13, 198, 198, 9, 1, 9, 1398, 1168, 5097, 62, 57, 1921, 62, 39494, 62, 35, 5662, 62, 13918, 6770, 198, 9, 1, 9, 1171, 31713, 198, 220, 2291, 1168, 5097, 62, 57, 1921, 62, 39494, 62, 35, 5662, 62, 13918, 2559, 18604, 27399, 13, 198, 9, 1, 9, 6861, 31713, 198, 220, 2291, 1168, 5097, 62, 57, 1921, 62, 39494, 62, 35, 5662, 62, 13918, 2559, 18604, 1073, 13, 198, 9, 1, 9, 2839, 31713, 198, 220, 2291, 1168, 5097, 62, 57, 1921, 62, 39494, 62, 35, 5662, 62, 13918, 2559, 18604, 979, 13, 198, 437, 4871, 13, 366, 57, 5097, 62, 57, 1921, 62, 39494, 62, 35, 5662, 62, 13918, 6770, 198, 198, 9, 1, 9, 15021, 17336, 198, 17256, 1168, 5097, 62, 57, 1921, 62, 39494, 62, 35, 5662, 62, 13918, 2559, 18604, 535, 20285, 13, 198, 9, 1, 9, 1957, 1398, 7822, 198, 17256, 1168, 5097, 62, 57, 1921, 62, 39494, 62, 35, 5662, 62, 13918, 2559, 18604, 535, 11011, 13, 198, 198, 4871, 1168, 5097, 62, 57, 1921, 62, 39494, 62, 35, 5662, 62, 13918, 7822, 13, 198, 9, 1, 9, 2446, 338, 25504, 198, 220, 2291, 5050, 13, 198, 437, 4871, 13, 366, 57, 5097, 62, 57, 1921, 62, 39494, 62, 35, 5662, 62, 13918, 7822, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
"! <p>Runnable interface<br> "! A class implementing this interface can be used by a thread to execute the work defined in <em>run</em>. "! </p> interface ZIF_RUNNABLE public . interfaces if_serializable_object. "! <p>Run<br> "! This method is called by a thread asynchronously to execute work. <br> "! The returned result must implement the specified interface, this result can be returned by the Thread once its finished. <br> "! The thread also passes this result to the callback function, if defined in its creation. "! </p> "! @parameter ro_result | <p>result of runnable</p> methods run returning value(ro_result) type ref to zif_runnable_result. endinterface.
[ 40484, 1279, 79, 29, 10987, 77, 540, 7071, 27, 1671, 29, 198, 40484, 317, 1398, 15427, 428, 7071, 460, 307, 973, 416, 257, 4704, 284, 12260, 262, 670, 5447, 287, 1279, 368, 29, 5143, 3556, 368, 28401, 198, 40484, 7359, 79, 29, 198, 39994, 1168, 5064, 62, 49, 4944, 4535, 19146, 198, 220, 1171, 764, 628, 220, 220, 220, 20314, 611, 62, 46911, 13821, 62, 15252, 13, 198, 220, 220, 220, 366, 0, 1279, 79, 29, 10987, 27, 1671, 29, 198, 220, 220, 220, 366, 0, 770, 2446, 318, 1444, 416, 257, 4704, 355, 24871, 3481, 284, 12260, 670, 13, 1279, 1671, 29, 198, 220, 220, 220, 366, 0, 383, 4504, 1255, 1276, 3494, 262, 7368, 7071, 11, 428, 1255, 460, 307, 4504, 416, 262, 14122, 1752, 663, 5201, 13, 1279, 1671, 29, 198, 220, 220, 220, 366, 0, 383, 4704, 635, 8318, 428, 1255, 284, 262, 23838, 2163, 11, 611, 5447, 287, 663, 6282, 13, 198, 220, 220, 220, 366, 0, 7359, 79, 29, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 686, 62, 20274, 930, 1279, 79, 29, 20274, 286, 1057, 77, 540, 3556, 79, 29, 198, 220, 220, 220, 5050, 1057, 198, 220, 220, 220, 8024, 1988, 7, 305, 62, 20274, 8, 2099, 1006, 284, 1976, 361, 62, 5143, 77, 540, 62, 20274, 13, 198, 198, 437, 39994, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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">WB Object Service for FUNC type</p> CLASS zcl_advoat_wb_obj_func_srv DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES: zif_advoat_wb_obj_service. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_advoat_wb_obj_func_srv IMPLEMENTATION. METHOD zif_advoat_wb_obj_service~get_wb_object. result = VALUE #( display_name = display_name name = zcl_advoat_func_util=>get_function_module_info( CONV #( display_name ) )-group type = zif_advoat_c_tadir_type=>function_group sub_type = swbm_c_type_function ). ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 45607, 9515, 4809, 329, 29397, 34, 2099, 3556, 79, 29, 198, 31631, 1976, 565, 62, 324, 13038, 265, 62, 39346, 62, 26801, 62, 20786, 62, 27891, 85, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 198, 220, 220, 220, 220, 220, 1976, 361, 62, 324, 13038, 265, 62, 39346, 62, 26801, 62, 15271, 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, 324, 13038, 265, 62, 39346, 62, 26801, 62, 20786, 62, 27891, 85, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 1976, 361, 62, 324, 13038, 265, 62, 39346, 62, 26801, 62, 15271, 93, 1136, 62, 39346, 62, 15252, 13, 198, 220, 220, 220, 1255, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 3359, 62, 3672, 796, 3359, 62, 3672, 198, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1976, 565, 62, 324, 13038, 265, 62, 20786, 62, 22602, 14804, 1136, 62, 8818, 62, 21412, 62, 10951, 7, 7102, 53, 1303, 7, 3359, 62, 3672, 1267, 1267, 12, 8094, 198, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1976, 361, 62, 324, 13038, 265, 62, 66, 62, 83, 324, 343, 62, 4906, 14804, 8818, 62, 8094, 198, 220, 220, 220, 220, 220, 850, 62, 4906, 220, 220, 220, 220, 796, 1509, 20475, 62, 66, 62, 4906, 62, 8818, 6739, 198, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_fmwp_clsadptr DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. METHODS: constructor IMPORTING ir_seoq TYPE REF TO zif_flseoq OPTIONAL, load IMPORTING i_name TYPE string RETURNING VALUE(r_cls) TYPE REF TO zcl_fmwp_clsinfo, class_create IMPORTING l_cls TYPE REF TO zcl_fmwp_clsinfo. PROTECTED SECTION. PRIVATE SECTION. CONSTANTS c_tmpdevclass TYPE devclass VALUE '$TMP' ##NO_TEXT. DATA: mr_seoq TYPE REF TO zif_flseoq, m_tadir TYPE tadir. METHODS method_read_source IMPORTING i_clsname TYPE vseomethod-clsname i_mthname TYPE seocpdname RETURNING VALUE(r_result) TYPE rswsourcet. ENDCLASS. CLASS zcl_fmwp_clsadptr IMPLEMENTATION. METHOD class_create. m_tadir-devclass = l_cls->m_devclass. IF m_tadir IS INITIAL. m_tadir-devclass = c_tmpdevclass. ENDIF. DATA(l_class) = l_cls->class_get_def( ). DATA(lt_methods) = l_cls->method_get_all_methods( ). DATA(lt_params) = l_cls->method_get_all_params( ). DATA(lt_types) = l_cls->type_get_all( ). DATA(lt_impl_details) = VALUE seo_redefinitions( ). LOOP AT l_cls->mt_implementings INTO DATA(ls_impl). DATA(ls_impl_det) = l_cls->mt_explore_impl[ interface-clsname = ls_impl-refclsname ]. LOOP AT ls_impl_det-methods INTO DATA(ls_impl_meth). APPEND VALUE seoredef( clsname = l_class-clsname refclsname = ls_impl-refclsname version = VALUE #( ) mtdname = ls_impl_meth-cmpname mtdabstrct = VALUE #( ) mtdfinal = VALUE #( ) attvalue = VALUE #( ) exposure = VALUE #( ) ) TO lt_impl_details. ENDLOOP. ENDLOOP. CALL METHOD mr_seoq->seo_class_create_complete EXPORTING devclass = m_tadir-devclass method_sources = l_cls->method_get_all_sources( ) CHANGING class = l_class attributes = l_cls->mt_attributes methods = lt_methods parameters = lt_params types = lt_types implementings = l_cls->mt_implementings impl_details = lt_impl_details EXCEPTIONS existing = 1 is_interface = 2 db_error = 3 component_error = 4 no_access = 5 other = 6 OTHERS = 7. ENDMETHOD. METHOD constructor. mr_seoq = ir_seoq. ENDMETHOD. METHOD load. DATA: * lt_info TYPE zcl_flseoy_wrap=>tt_vseoclif, aliases TYPE seoo_aliases_r, attributes TYPE seoo_attributes_r, class TYPE vseoclass, clsdeferrds TYPE seot_clsdeferrds_r, enhancement_attributes TYPE enhclasstabattrib, enhancement_events TYPE enhclasstabevent, enhancement_implementings TYPE enhclasstabimplementing, enhancement_methods TYPE enhmeth_tabheader, enhancement_types TYPE enhtype_tab, events TYPE seoo_events_r, exceps TYPE seos_exceptions_r, explore_implementings TYPE seok_int_typeinfos, explore_inheritance TYPE seok_cls_typeinfos, friendships TYPE seof_friendships_r, implementings TYPE seor_implementings_r, impl_details TYPE seor_redefinitions_r, inheritance TYPE vseoextend, intdeferrds TYPE seot_intdeferrds_r, methods TYPE seoo_methods_r, parameters TYPE seos_parameters_r, redefinitions TYPE seor_redefinitions_r, typepusages TYPE seot_typepusages_r, types TYPE seoo_types_r, lt_source TYPE seop_source_string. DATA(seoy) = NEW zcl_flseoy_wrap( ). DATA(seop) = NEW zcl_flseop_wrap( ). DATA(seok) = NEW zcl_flseok_wrap( ). CALL METHOD seok->seo_class_typeinfo_get EXPORTING clskey = VALUE #( clsname = i_name ) * version = SEOC_VERSION_INACTIVE * state = '1' * with_descriptions = * resolve_eventhandler_typeinfo = * with_master_language = * with_enhancements = * read_active_enha = * enha_action = * ignore_switches = 'X' IMPORTING aliases = aliases attributes = attributes class = class clsdeferrds = clsdeferrds enhancement_attributes = enhancement_attributes enhancement_events = enhancement_events enhancement_implementings = enhancement_implementings enhancement_methods = enhancement_methods enhancement_types = enhancement_types events = events exceps = exceps explore_implementings = explore_implementings explore_inheritance = explore_inheritance friendships = friendships implementings = implementings impl_details = impl_details inheritance = inheritance intdeferrds = intdeferrds methods = methods parameters = parameters redefinitions = redefinitions typepusages = typepusages types = types. IF class IS NOT INITIAL. SELECT SINGLE * FROM tadir INTO m_tadir WHERE pgmid = 'R3TR' AND object = 'CLAS' AND obj_name = class-clsname. r_cls = NEW zcl_fmwp_clsinfo( ). r_cls->ms_class = class. r_cls->mt_methods = methods. r_cls->mt_attributes = attributes. r_cls->mt_parameters = parameters. r_cls->mt_types = types. r_cls->mt_implementings = implementings. r_cls->mt_explore_impl = explore_implementings. r_cls->m_devclass = m_tadir-devclass. " types ? " sources LOOP AT methods INTO DATA(ls_meth). lt_source = method_read_source( i_clsname = ls_meth-clsname i_mthname = CONV #( ls_meth-cmpname ) ). r_cls->method_set_imp( i_method = VALUE #( cpdname = ls_meth-cmpname source = lt_source ) ). ENDLOOP. LOOP AT explore_implementings INTO DATA(ls_impl). LOOP AT ls_impl-methods INTO DATA(ls_impl_meth). DATA(cpdname) = |{ ls_impl_meth-clsname }~{ ls_impl_meth-cmpname }|. lt_source = method_read_source( i_clsname = class-clsname i_mthname = CONV #( cpdname ) ). r_cls->method_set_imp( i_method = VALUE #( cpdname = cpdname source = lt_source ) ). ENDLOOP. ENDLOOP. ENDIF. ENDMETHOD. METHOD method_read_source. CALL FUNCTION 'SEO_METHOD_GET_SOURCE' EXPORTING mtdkey = VALUE seocpdkey( clsname = i_clsname cpdname = i_mthname ) state = 'A' * with_enhancements = " X = liest auch die Sourcecode Plug-ins IMPORTING source_expanded = r_result EXCEPTIONS OTHERS = 6. IF lines( r_result ) > 1. " remove endmethod: DELETE r_result INDEX lines( r_result ). " remove method: DELETE r_result INDEX 1. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 38353, 24142, 62, 565, 82, 324, 20692, 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, 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, 4173, 62, 325, 78, 80, 41876, 4526, 37, 5390, 1976, 361, 62, 2704, 325, 78, 80, 39852, 2849, 1847, 11, 198, 220, 220, 220, 220, 220, 3440, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 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, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 565, 82, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 38353, 24142, 62, 565, 82, 10951, 11, 198, 220, 220, 220, 220, 220, 1398, 62, 17953, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 62, 565, 82, 41876, 4526, 37, 5390, 1976, 565, 62, 38353, 24142, 62, 565, 82, 10951, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 22065, 7959, 4871, 41876, 1614, 4871, 26173, 8924, 705, 3, 51, 7378, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 285, 81, 62, 325, 78, 80, 41876, 4526, 37, 5390, 1976, 361, 62, 2704, 325, 78, 80, 11, 198, 220, 220, 220, 220, 220, 285, 62, 83, 324, 343, 41876, 36264, 343, 13, 198, 220, 220, 220, 337, 36252, 50, 2446, 62, 961, 62, 10459, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 565, 82, 3672, 220, 220, 220, 220, 220, 220, 41876, 410, 325, 908, 2065, 12, 565, 82, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 76, 400, 3672, 220, 220, 220, 220, 220, 220, 41876, 384, 420, 30094, 3672, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 20274, 8, 41876, 374, 2032, 82, 454, 66, 316, 13, 628, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 38353, 24142, 62, 565, 82, 324, 20692, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1398, 62, 17953, 13, 628, 220, 220, 220, 285, 62, 83, 324, 343, 12, 7959, 4871, 796, 300, 62, 565, 82, 3784, 76, 62, 7959, 4871, 13, 628, 220, 220, 220, 16876, 285, 62, 83, 324, 343, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 285, 62, 83, 324, 343, 12, 7959, 4871, 796, 269, 62, 22065, 7959, 4871, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 42865, 7, 75, 62, 4871, 8, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 62, 565, 82, 3784, 4871, 62, 1136, 62, 4299, 7, 6739, 198, 220, 220, 220, 42865, 7, 2528, 62, 24396, 82, 8, 220, 220, 220, 220, 220, 220, 220, 796, 300, 62, 565, 82, 3784, 24396, 62, 1136, 62, 439, 62, 24396, 82, 7, 6739, 198, 220, 220, 220, 42865, 7, 2528, 62, 37266, 8, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 62, 565, 82, 3784, 24396, 62, 1136, 62, 439, 62, 37266, 7, 6739, 198, 220, 220, 220, 42865, 7, 2528, 62, 19199, 8, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 62, 565, 82, 3784, 4906, 62, 1136, 62, 439, 7, 6739, 198, 220, 220, 220, 42865, 7, 2528, 62, 23928, 62, 36604, 8, 796, 26173, 8924, 384, 78, 62, 445, 891, 50101, 7, 6739, 198, 220, 220, 220, 17579, 3185, 5161, 300, 62, 565, 82, 3784, 16762, 62, 320, 26908, 654, 39319, 42865, 7, 7278, 62, 23928, 737, 198, 220, 220, 220, 220, 220, 42865, 7, 7278, 62, 23928, 62, 15255, 8, 796, 300, 62, 565, 82, 3784, 16762, 62, 20676, 382, 62, 23928, 58, 7071, 12, 565, 82, 3672, 796, 43979, 62, 23928, 12, 5420, 565, 82, 3672, 20740, 198, 220, 220, 220, 220, 220, 17579, 3185, 5161, 43979, 62, 23928, 62, 15255, 12, 24396, 82, 39319, 42865, 7, 7278, 62, 23928, 62, 76, 2788, 737, 198, 220, 220, 220, 220, 220, 220, 220, 43504, 10619, 26173, 8924, 384, 1850, 891, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 537, 82, 3672, 220, 220, 220, 796, 300, 62, 4871, 12, 565, 82, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1006, 565, 82, 3672, 796, 43979, 62, 23928, 12, 5420, 565, 82, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2196, 220, 220, 220, 796, 26173, 8924, 1303, 7, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 8671, 3672, 220, 220, 220, 796, 43979, 62, 23928, 62, 76, 2788, 12, 48991, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 8671, 397, 2536, 310, 796, 26173, 8924, 1303, 7, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45079, 7568, 1292, 220, 220, 796, 26173, 8924, 1303, 7, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 708, 8367, 220, 220, 796, 26173, 8924, 1303, 7, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7111, 220, 220, 796, 26173, 8924, 1303, 7, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1267, 5390, 300, 83, 62, 23928, 62, 36604, 13, 198, 220, 220, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 220, 220, 42815, 337, 36252, 285, 81, 62, 325, 78, 80, 3784, 325, 78, 62, 4871, 62, 17953, 62, 20751, 198, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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ate_new IMPORTING !json TYPE json !pretty_name TYPE pretty_name_mode DEFAULT pretty_mode-none !name_mappings TYPE name_mappings OPTIONAL RETURNING VALUE(rr_data) TYPE REF TO data. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ZCL_AFL_JSON IMPLEMENTATION. METHOD generate_int_new. TYPES: BEGIN OF ts_field, name TYPE string, value TYPE json, END OF ts_field. DATA: length TYPE i, offset TYPE i. DATA: lt_json TYPE STANDARD TABLE OF json WITH DEFAULT KEY, lv_json LIKE LINE OF lt_json, lv_comp_name TYPE abap_compname, lt_fields TYPE SORTED TABLE OF ts_field WITH UNIQUE KEY name, lo_type TYPE REF TO cl_abap_datadescr, lt_comp TYPE abap_component_tab, lt_names TYPE HASHED TABLE OF string WITH UNIQUE KEY table_line, cache LIKE LINE OF mt_name_mappings_ex, ls_comp LIKE LINE OF lt_comp. FIELD-SYMBOLS: <data> TYPE any, <struct> TYPE any, <field> LIKE LINE OF lt_fields, <table> TYPE STANDARD TABLE, <cache> LIKE LINE OF mt_name_mappings_ex. length = numofchar( json ). eat_white. CASE json+offset(1). WHEN `{`."result must be a structure restore_type( EXPORTING json = json length = length CHANGING data = lt_fields ). IF lt_fields IS NOT INITIAL. ls_comp-type = cl_abap_refdescr=>get_ref_to_data( ). LOOP AT lt_fields ASSIGNING <field>. READ TABLE mt_name_mappings_ex WITH TABLE KEY json = <field>-name ASSIGNING <cache>. IF sy-subrc IS INITIAL. ls_comp-name = <cache>-abap. ELSE. cache-json = ls_comp-name = <field>-name. TRANSLATE ls_comp-name USING `/_:_~_._-_`. " remove characters not allowed in component names IF mv_pretty_name EQ pretty_mode-camel_case OR mv_pretty_name EQ pretty_mode-extended. REPLACE ALL OCCURRENCES OF REGEX `([a-z])([A-Z])` IN ls_comp-name WITH `$1_$2`. "#EC NOTEXT ENDIF. TRANSLATE ls_comp-name TO UPPER CASE. cache-abap = ls_comp-name = lv_comp_name = ls_comp-name. " truncate by allowed field name length INSERT cache INTO TABLE mt_name_mappings_ex. ENDIF. INSERT ls_comp-name INTO TABLE lt_names. IF sy-subrc IS INITIAL. APPEND ls_comp TO lt_comp. ELSE. DELETE lt_fields. ENDIF. ENDLOOP. TRY. lo_type = cl_abap_structdescr=>create( p_components = lt_comp p_strict = c_bool-false ). CREATE DATA rr_data TYPE HANDLE lo_type. ASSIGN rr_data->* TO <struct>. LOOP AT lt_fields ASSIGNING <field>. ASSIGN COMPONENT sy-tabix OF STRUCTURE <struct> TO <data>. <data> = generate_int_new( <field>-value ). ENDLOOP. CATCH cx_sy_create_data_error cx_sy_struct_creation. ENDTRY. ENDIF. WHEN `[`."result must be a table of ref restore_type( EXPORTING json = json length = length CHANGING data = lt_json ). CREATE DATA rr_data TYPE TABLE OF REF TO data. ASSIGN rr_data->* TO <table>. LOOP AT lt_json INTO lv_json. APPEND INITIAL LINE TO <table> ASSIGNING <data>. <data> = generate_int_new( lv_json ). ENDLOOP. WHEN OTHERS. IF json+offset(1) EQ `"`. CREATE DATA rr_data TYPE string. ELSEIF json+offset(1) CA `-0123456789.`. IF json+offset CS '.'. CREATE DATA rr_data TYPE decfloat34. ELSEIF length GT 9. CREATE DATA rr_data TYPE p. ELSE. CREATE DATA rr_data TYPE i. ENDIF. ELSEIF json+offset EQ `true` OR json+offset EQ `false`. CREATE DATA rr_data TYPE abap_bool. ENDIF. IF rr_data IS BOUND. ASSIGN rr_data->* TO <data>. restore_type( EXPORTING json = json length = length CHANGING data = <data> ). ENDIF. ENDCASE. ENDMETHOD. METHOD generate_new. DATA: lo_json TYPE REF TO zcl_afl_json, lv_json LIKE json. lv_json = json. REPLACE ALL OCCURRENCES OF `\r\n` IN lv_json WITH cl_abap_char_utilities=>cr_lf. REPLACE ALL OCCURRENCES OF `\n` IN lv_json WITH cl_abap_char_utilities=>newline. REPLACE ALL OCCURRENCES OF `\t` IN lv_json WITH cl_abap_char_utilities=>horizontal_tab. CREATE OBJECT lo_json EXPORTING pretty_name = pretty_name name_mappings = name_mappings assoc_arrays = c_bool-true assoc_arrays_opt = c_bool-true. TRY . rr_data = lo_json->generate_int_new( lv_json ). CATCH cx_sy_move_cast_error. ENDTRY. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 1878, 75, 62, 17752, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1220, 9019, 17, 14, 565, 62, 17752, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 7716, 62, 600, 62, 3605, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 17752, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 33918, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 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, 26173, 8924, 7, 21062, 62, 7890, 8, 41876, 4526, 37, 5390, 1366, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 7716, 62, 3605, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 17752, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 33918, 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, 5145, 37784, 62, 3672, 220, 220, 41876, 2495, 62, 3672, 62, 14171, 5550, 38865, 2495, 62, 14171, 12, 23108, 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, 5145, 3672, 62, 76, 39242, 41876, 1438, 62, 76, 39242, 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, 30826, 4261, 15871, 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, 26173, 8924, 7, 21062, 62, 7890, 8, 41876, 4526, 37, 5390, 1366, 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, 32, 3697, 62, 40386, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 7716, 62, 600, 62, 3605, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 40379, 62, 3245, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 41876, 33918, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 40379, 62, 3245, 13, 628, 220, 220, 220, 42865, 25, 4129, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11677, 41876, 1312, 13, 628, 220, 220, 220, 42865, 25, 300, 83, 62, 17752, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 33918, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 17752, 220, 220, 220, 220, 220, 34178, 48920, 3963, 300, 83, 62, 17752, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 5589, 62, 3672, 41876, 450, 499, 62, 5589, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 25747, 220, 220, 220, 41876, 311, 9863, 1961, 43679, 3963, 40379, 62, 3245, 13315, 4725, 33866, 8924, 35374, 1438, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 4906, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 19608, 2367, 6098, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 5589, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 42895, 62, 8658, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 14933, 220, 220, 220, 220, 41876, 367, 11211, 1961, 43679, 3963, 4731, 13315, 4725, 33866, 8924, 35374, 3084, 62, 1370, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12940, 220, 220, 220, 220, 220, 220, 220, 34178, 48920, 3963, 45079, 62, 3672, 62, 76, 39242, 62, 1069, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 5589, 220, 220, 220, 220, 220, 34178, 48920, 3963, 300, 83, 62, 5589, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7890, 29, 220, 220, 41876, 597, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7249, 29, 41876, 597, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 3245, 29, 220, 34178, 48920, 3963, 300, 83, 62, 25747, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 11487, 29, 220, 41876, 49053, 9795, 43679, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 23870, 29, 220, 34178, 48920, 3963, 45079, 62, 3672, 62, 76, 39242, 62, 1069, 13, 628, 220, 220, 220, 4129, 796, 997, 1659, 10641, 7, 33918, 6739, 628, 220, 220, 220, 4483, 62, 11186, 13, 628, 220, 220, 220, 42001, 33918, 10, 28968, 7, 16, 737, 198, 220, 220, 220, 220, 220, 42099, 4600, 90, 63, 526, 20274, 1276, 307, 257, 4645, 198, 220, 220, 220, 220, 220, 220, 220, 11169, 62, 4906, 7, 7788, 15490, 2751, 33918, 796, 33918, 4129, 796, 4129, 5870 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZCL_DDIC_STATIC definition public final create public . *"* public components of class ZCL_DDIC_STATIC *"* do not include other source files here!!! public section. class-methods GET_DOMA_VALUES importing !I_NAME type SIMPLE returning value(ET_VALUES) type ZIVALUES . class-methods GET_DOMA_VALUE_TEXT importing !I_NAME type SIMPLE !I_VALUE type SIMPLE returning value(E_TEXT) type STRING . protected section. *"* protected components of class ZCL_DDIC_STATIC *"* do not include other source files here!!! private section. ENDCLASS. CLASS ZCL_DDIC_STATIC IMPLEMENTATION. method get_doma_values. select domvalue_l as id ddtext as text from dd07t into table et_values where domname eq i_name and ddlanguage eq sy-langu and as4local eq 'A'. endmethod. method get_doma_value_text. data l_id type string. concatenate i_name '/' i_value into l_id. try. zcl_cache_static=>get_data( exporting i_name = 'ZCL_DDIC_STATIC=>GET_DOMA_VALUE_TEXT' i_id = l_id importing e_data = e_text ). return. catch cx_root. endtry. select single ddtext from dd07t into e_text where domname eq i_name and ddlanguage eq sy-langu and as4local eq 'A' and domvalue_l eq i_value. if sy-subrc is initial. e_text = i_value. endif. zcl_cache_static=>set_data( i_name = 'ZCL_DDIC_STATIC=>GET_DOMA_VALUE_TEXT' i_id = l_id i_data = e_text ). endmethod. ENDCLASS.
[ 4871, 1168, 5097, 62, 16458, 2149, 62, 35744, 2149, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 16458, 2149, 62, 35744, 2149, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 11377, 2665, 13, 628, 220, 1398, 12, 24396, 82, 17151, 62, 39170, 32, 62, 23428, 35409, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 20608, 2099, 23749, 16437, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 2767, 62, 23428, 35409, 8, 2099, 1168, 3824, 1847, 35409, 764, 198, 220, 1398, 12, 24396, 82, 17151, 62, 39170, 32, 62, 39488, 62, 32541, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 20608, 2099, 23749, 16437, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 39488, 2099, 23749, 16437, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 36, 62, 32541, 8, 2099, 19269, 2751, 764, 198, 220, 6861, 2665, 13, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 5097, 62, 16458, 2149, 62, 35744, 2149, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 19734, 2665, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 16458, 2149, 62, 35744, 2149, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 2446, 651, 62, 3438, 64, 62, 27160, 13, 628, 220, 220, 220, 2922, 2401, 8367, 62, 75, 355, 4686, 49427, 5239, 355, 2420, 198, 220, 220, 220, 220, 220, 422, 49427, 2998, 83, 198, 220, 220, 220, 220, 220, 656, 3084, 2123, 62, 27160, 198, 220, 220, 220, 220, 220, 810, 198, 220, 220, 220, 220, 220, 220, 220, 2401, 3672, 220, 220, 220, 37430, 1312, 62, 3672, 290, 198, 220, 220, 220, 220, 220, 220, 220, 49427, 16129, 37430, 827, 12, 75, 2303, 290, 198, 220, 220, 220, 220, 220, 220, 220, 355, 19, 12001, 220, 220, 37430, 705, 32, 4458, 628, 220, 886, 24396, 13, 628, 198, 220, 2446, 651, 62, 3438, 64, 62, 8367, 62, 5239, 13, 628, 220, 220, 220, 1366, 300, 62, 312, 2099, 4731, 13, 198, 220, 220, 220, 1673, 36686, 378, 1312, 62, 3672, 31051, 6, 1312, 62, 8367, 656, 300, 62, 312, 13, 628, 220, 220, 220, 1949, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 565, 62, 23870, 62, 12708, 14804, 1136, 62, 7890, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 3672, 796, 705, 57, 5097, 62, 16458, 2149, 62, 35744, 2149, 14804, 18851, 62, 39170, 32, 62, 39488, 62, 32541, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 312, 220, 220, 796, 300, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 304, 62, 7890, 796, 304, 62, 5239, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 1441, 13, 198, 220, 220, 220, 220, 220, 4929, 43213, 62, 15763, 13, 198, 220, 220, 220, 886, 28311, 13, 628, 220, 220, 220, 2922, 2060, 49427, 5239, 198, 220, 220, 220, 220, 220, 422, 49427, 2998, 83, 198, 220, 220, 220, 220, 220, 656, 304, 62, 5239, 198, 220, 220, 220, 220, 220, 810, 198, 220, 220, 220, 220, 220, 220, 220, 2401, 3672, 220, 220, 220, 37430, 1312, 62, 3672, 290, 198, 220, 220, 220, 220, 220, 220, 220, 49427, 16129, 37430, 827, 12, 75, 2303, 290, 198, 220, 220, 220, 220, 220, 220, 220, 355, 19, 12001, 220, 220, 37430, 705, 32, 6, 290, 198, 220, 220, 220, 220, 220, 220, 220, 2401, 8367, 62, 75, 37430, 1312, 62, 8367, 13, 198, 220, 220, 220, 611, 827, 12, 7266, 6015, 318, 4238, 13, 198, 220, 220, 220, 220, 220, 304, 62, 5239, 796, 1312, 62, 8367, 13, 198, 220, 220, 220, 45762, 13, 628, 220, 220, 220, 1976, 565, 62, 23870, 62, 12708, 14804, 2617, 62, 7890, 7, 198, 220, 220, 220, 220, 220, 1312, 62, 3672, 796, 705, 57, 5097, 62, 16458, 2149, 62, 35744, 2149, 14804, 18851, 62, 39170, 32, 62, 39488, 62, 32541, 6, 198, 220, 220, 220, 220, 220, 1312, 62, 312, 220, 220, 796, 300, 62, 312, 198, 220, 220, 220, 220, 220, 1312, 62, 7890, 796, 304, 62, 5239, 6739, 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, 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 ]
CLASS zcl_oassh_stream DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. METHODS constructor IMPORTING !iv_hex TYPE xstring OPTIONAL . METHODS get RETURNING VALUE(rv_hex) TYPE xstring . METHODS take IMPORTING !iv_length TYPE i RETURNING VALUE(rv_hex) TYPE xstring . METHODS append IMPORTING !iv_hex TYPE xsequence . METHODS name_list_encode IMPORTING !it_list TYPE string_table . METHODS boolean_encode IMPORTING !iv_boolean TYPE abap_bool . METHODS boolean_decode RETURNING VALUE(rv_boolean) TYPE abap_bool . METHODS name_list_decode RETURNING VALUE(rt_list) TYPE string_table . METHODS uint32_encode IMPORTING !iv_int TYPE i . METHODS uint32_decode RETURNING VALUE(rv_int) TYPE i . METHODS uint32_decode_peek RETURNING VALUE(rv_int) TYPE i . METHODS get_length RETURNING VALUE(rv_length) TYPE i . METHODS clear . METHODS string_encode IMPORTING !iv_string TYPE xstring . METHODS string_decode RETURNING VALUE(rv_string) TYPE xstring . PROTECTED SECTION. PRIVATE SECTION. DATA mv_hex TYPE xstring . ENDCLASS. CLASS ZCL_OASSH_STREAM IMPLEMENTATION. METHOD append. mv_hex = mv_hex && iv_hex. ENDMETHOD. METHOD boolean_decode. rv_boolean = boolc( take( 1 ) = '00' ). ENDMETHOD. METHOD boolean_encode. CASE iv_boolean. WHEN abap_true. append( '01' ). WHEN abap_false. append( '00' ). WHEN OTHERS. ASSERT 1 = 2. ENDCASE. ENDMETHOD. METHOD clear. CLEAR mv_hex. ENDMETHOD. METHOD constructor. mv_hex = iv_hex. ENDMETHOD. METHOD get. rv_hex = mv_hex. ENDMETHOD. METHOD get_length. rv_length = xstrlen( mv_hex ). ENDMETHOD. METHOD name_list_decode. * https://datatracker.ietf.org/doc/html/rfc4251#section-5 DATA lv_length TYPE i. DATA lv_hex TYPE xstring. DATA lv_text TYPE string. lv_length = uint32_decode( ). lv_hex = mv_hex(lv_length). lv_text = cl_abap_codepage=>convert_from( lv_hex ). SPLIT lv_text AT ',' INTO TABLE rt_list. take( lv_length ). ENDMETHOD. METHOD name_list_encode. * https://datatracker.ietf.org/doc/html/rfc4251#section-5 DATA lv_text TYPE string. CONCATENATE LINES OF it_list INTO lv_text SEPARATED BY ','. uint32_encode( strlen( lv_text ) ). append( cl_abap_codepage=>convert_to( lv_text ) ). ENDMETHOD. METHOD string_decode. * https://datatracker.ietf.org/doc/html/rfc4251#section-5 DATA lv_len TYPE i. lv_len = uint32_decode( ). rv_string = take( lv_len ). ENDMETHOD. METHOD string_encode. * https://datatracker.ietf.org/doc/html/rfc4251#section-5 uint32_encode( xstrlen( iv_string ) ). append( iv_string ). ENDMETHOD. METHOD take. rv_hex = mv_hex(iv_length). mv_hex = mv_hex+iv_length. ENDMETHOD. METHOD uint32_decode. rv_int = take( 4 ). ENDMETHOD. METHOD uint32_decode_peek. rv_int = mv_hex(4). ENDMETHOD. METHOD uint32_encode. DATA lv_hex TYPE x LENGTH 4. lv_hex = iv_int. append( lv_hex ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 78, 562, 71, 62, 5532, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 33095, 41876, 2124, 8841, 39852, 2849, 1847, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 33095, 8, 41876, 2124, 8841, 764, 198, 220, 220, 220, 337, 36252, 50, 1011, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 13664, 220, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 33095, 8, 41876, 2124, 8841, 764, 198, 220, 220, 220, 337, 36252, 50, 24443, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 33095, 41876, 2124, 43167, 764, 198, 220, 220, 220, 337, 36252, 50, 1438, 62, 4868, 62, 268, 8189, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 4868, 41876, 4731, 62, 11487, 764, 198, 220, 220, 220, 337, 36252, 50, 25131, 62, 268, 8189, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2127, 21052, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 25131, 62, 12501, 1098, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 2127, 21052, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 1438, 62, 4868, 62, 12501, 1098, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 4868, 8, 41876, 4731, 62, 11487, 764, 198, 220, 220, 220, 337, 36252, 50, 20398, 2624, 62, 268, 8189, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 600, 41876, 1312, 764, 198, 220, 220, 220, 337, 36252, 50, 20398, 2624, 62, 12501, 1098, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 600, 8, 41876, 1312, 764, 198, 220, 220, 220, 337, 36252, 50, 20398, 2624, 62, 12501, 1098, 62, 431, 988, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 600, 8, 41876, 1312, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 13664, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 13664, 8, 41876, 1312, 764, 198, 220, 220, 220, 337, 36252, 50, 1598, 764, 198, 220, 220, 220, 337, 36252, 50, 4731, 62, 268, 8189, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8841, 41876, 2124, 8841, 764, 198, 220, 220, 220, 337, 36252, 50, 4731, 62, 12501, 1098, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 8841, 8, 41876, 2124, 8841, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 285, 85, 62, 33095, 41876, 2124, 8841, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 46, 1921, 9693, 62, 2257, 32235, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 24443, 13, 198, 220, 220, 220, 285, 85, 62, 33095, 796, 285, 85, 62, 33095, 11405, 21628, 62, 33095, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 25131, 62, 12501, 1098, 13, 198, 220, 220, 220, 374, 85, 62, 2127, 21052, 796, 20512, 66, 7, 1011, 7, 352, 1267, 796, 705, 405, 6, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 25131, 62, 268, 8189, 13, 198, 220, 220, 220, 42001, 21628, 62, 2127, 21052, 13, 198, 220, 220, 220, 220, 220, 42099, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 220, 220, 24443, 7, 705, 486, 6, 6739, 198, 220, 220, 220, 220, 220, 42099, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 220, 220, 24443, 7, 705, 405, 6, 6739, 198, 220, 220, 220, 220, 220, 42099, 440, 4221, 4877, 13, 198, 220, 220, 220, 220, 220, 220, 220, 24994, 17395, 352, 796, 362, 13, 198, 220, 220, 220, 23578, 34, 11159, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1598, 13, 198, 220, 220, 220, 30301, 1503, 285, 85, 62, 33095, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 285, 85, 62, 33095, 796, 21628, 62, 33095, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 13, 198, 220, 220, 220, 374, 85, 62, 33095, 796, 285, 85, 62, 33095, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 13664, 13, 198, 220, 220, 220, 374, 85, 62, 13664, 796, 2124, 2536, 11925, 7, 285, 85, 62, 33095, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1438, 62, 4868, 62, 12501, 1098, 13, 198, 9, 3740, 1378, 19608, 265, 81, 10735, 13, 1155, 69, 13, 2398, 14, 15390, 14, 6494, 14, 81, 16072, 19, 28072, 2, 5458, 12, 20, 628, 220, 220, 220, 42865, 300, 85, 62, 13664, 41876, 1312, 13, 198, 220, 220, 220, 42865, 300, 85, 62, 33095, 41876, 2124, 8841, 13, 198, 220, 220, 220, 42865, 300, 85, 62, 5239, 41876, 4731, 13, 628, 220, 220, 220, 300, 85, 62, 13664, 796, 20398, 2624, 62, 12501, 1098 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
* Copyright 2019, 2020 IBM Corp. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. "! <p class="shorttext synchronized" lang="en">Natural Language Classifier</p> "! IBM Watson&trade; Natural Language Classifier uses machine learning algorithms "! to return the top matching predefined classes for short text input. You create "! and train a classifier to connect predefined classes to example texts so that "! the service can apply those classes to new inputs. <br/> class ZCL_IBMC_NAT_LANG_CLASS_V1 DEFINITION public inheriting from ZCL_IBMC_SERVICE_EXT create public . public section. types: "! <p class="shorttext synchronized" lang="en"> "! Response payload for HTTP errors.</p> begin of T_ERROR_RESPONSE, "! HTTP status code. CODE type INTEGER, "! Error name. ERROR type STRING, "! Error description. DESCRIPTION type STRING, end of T_ERROR_RESPONSE. types: "! <p class="shorttext synchronized" lang="en"> "! Request payload to classify.</p> begin of T_CLASSIFY_INPUT, "! The submitted phrase. The maximum length is 2048 characters. TEXT type STRING, end of T_CLASSIFY_INPUT. types: "! No documentation available. begin of T_INLINE_OBJECT, "! Metadata in JSON format. The metadata identifies the language of the data, and "! an optional name to identify the classifier. Specify the language with the "! 2-letter primary language code as assigned in ISO standard 639.<br/> "! <br/> "! Supported languages are English (`en`), Arabic (`ar`), French (`fr`), German, "! (`de`), Italian (`it`), Japanese (`ja`), Korean (`ko`), Brazilian Portuguese "! (`pt`), and Spanish (`es`). TRAINING_METADATA type FILE, "! Training data in CSV format. Each text value must have at least one class. The "! data can include up to 3,000 classes and 20,000 records. For details, see [Data "! preparation](https://cloud.ibm.com/docs/natural-language-classifier?topic=natur "! al-language-classifier-using-your-data). TRAINING_DATA type FILE, end of T_INLINE_OBJECT. types: "! <p class="shorttext synchronized" lang="en"> "! Class and confidence.</p> begin of T_CLASSIFIED_CLASS, "! A decimal percentage that represents the confidence that Watson has in this "! class. Higher values represent higher confidences. CONFIDENCE type DOUBLE, "! Class label. CLASS_NAME type STRING, end of T_CLASSIFIED_CLASS. types: "! <p class="shorttext synchronized" lang="en"> "! Response from the classifier for a phrase in a collection.</p> begin of T_COLLECTION_ITEM, "! The submitted phrase. The maximum length is 2048 characters. TEXT type STRING, "! The class with the highest confidence. TOP_CLASS type STRING, "! An array of up to ten class-confidence pairs sorted in descending order of "! confidence. CLASSES type STANDARD TABLE OF T_CLASSIFIED_CLASS WITH NON-UNIQUE DEFAULT KEY, end of T_COLLECTION_ITEM. types: "! <p class="shorttext synchronized" lang="en"> "! A classifier for natural language phrases.</p> begin of T_CLASSIFIER, "! User-supplied name for the classifier. NAME type STRING, "! Link to the classifier. URL type STRING, "! The state of the classifier. STATUS type STRING, "! Unique identifier for this classifier. CLASSIFIER_ID type STRING, "! Date and time (UTC) the classifier was created. CREATED type DATETIME, "! Additional detail about the status. STATUS_DESCRIPTION type STRING, "! The language used for the classifier. LANGUAGE type STRING, end of T_CLASSIFIER. types: "! <p class="shorttext synchronized" lang="en"> "! List of available classifiers.</p> begin of T_CLASSIFIER_LIST, "! The classifiers available to the user. Returns an empty array if no classifiers "! are available. CLASSIFIERS type STANDARD TABLE OF T_CLASSIFIER WITH NON-UNIQUE DEFAULT KEY, end of T_CLASSIFIER_LIST. types: "! <p class="shorttext synchronized" lang="en"> "! Response from the classifier for a phrase.</p> begin of T_CLASSIFICATION, "! Unique identifier for this classifier. CLASSIFIER_ID type STRING, "! Link to the classifier. URL type STRING, "! The submitted phrase. TEXT type STRING, "! The class with the highest confidence. TOP_CLASS type STRING, "! An array of up to ten class-confidence pairs sorted in descending order of "! confidence. CLASSES type STANDARD TABLE OF T_CLASSIFIED_CLASS WITH NON-UNIQUE DEFAULT KEY, end of T_CLASSIFICATION. types: "! <p class="shorttext synchronized" lang="en"> "! Request payload to classify.</p> begin of T_CLASSIFY_COLLECTION_INPUT, "! The submitted phrases. COLLECTION type STANDARD TABLE OF T_CLASSIFY_INPUT WITH NON-UNIQUE DEFAULT KEY, end of T_CLASSIFY_COLLECTION_INPUT. types: "! <p class="shorttext synchronized" lang="en"> "! Response payload for Cloud errors.</p> begin of T_ERROR_CLOUD, "! HTTP status code. CODE type INTEGER, "! Error name. ERROR type STRING, end of T_ERROR_CLOUD. types: "! No documentation available. T_EMPTY type JSONOBJECT. types: "! <p class="shorttext synchronized" lang="en"> "! Response from the classifier for multiple phrases.</p> begin of T_CLASSIFICATION_COLLECTION, "! Unique identifier for this classifier. CLASSIFIER_ID type STRING, "! Link to the classifier. URL type STRING, "! An array of classifier responses for each submitted phrase. COLLECTION type STANDARD TABLE OF T_COLLECTION_ITEM WITH NON-UNIQUE DEFAULT KEY, end of T_CLASSIFICATION_COLLECTION. constants: "! <p class="shorttext synchronized" lang="en">List of required fields per type.</p> begin of C_REQUIRED_FIELDS, T_ERROR_RESPONSE type string value '|', T_CLASSIFY_INPUT type string value '|TEXT|', T_INLINE_OBJECT type string value '|TRAINING_METADATA|TRAINING_DATA|', T_CLASSIFIED_CLASS type string value '|', T_COLLECTION_ITEM type string value '|', T_CLASSIFIER type string value '|URL|CLASSIFIER_ID|', T_CLASSIFIER_LIST type string value '|CLASSIFIERS|', T_CLASSIFICATION type string value '|', T_CLASSIFY_COLLECTION_INPUT type string value '|COLLECTION|', T_ERROR_CLOUD type string value '|', T_CLASSIFICATION_COLLECTION type string value '|', __DUMMY type string value SPACE, end of C_REQUIRED_FIELDS . constants: "! <p class="shorttext synchronized" lang="en">Map ABAP identifiers to service identifiers.</p> begin of C_ABAPNAME_DICTIONARY, CODE type string value 'code', ERROR type string value 'error', DESCRIPTION type string value 'description', CLASSIFIERS type string value 'classifiers', NAME type string value 'name', URL type string value 'url', STATUS type string value 'status', CLASSIFIER_ID type string value 'classifier_id', CREATED type string value 'created', STATUS_DESCRIPTION type string value 'status_description', LANGUAGE type string value 'language', COLLECTION type string value 'collection', TEXT type string value 'text', TOP_CLASS type string value 'top_class', CLASSES type string value 'classes', CONFIDENCE type string value 'confidence', CLASS_NAME type string value 'class_name', CLASSIFY_INPUT type string value 'classify_input', TRAINING_METADATA type string value 'training_metadata', TRAINING_DATA type string value 'training_data', end of C_ABAPNAME_DICTIONARY . methods GET_APPNAME redefinition . methods GET_REQUEST_PROP redefinition . methods GET_SDK_VERSION_DATE redefinition . "! <p class="shorttext synchronized" lang="en">Classify a phrase</p> "! Returns label information for the input. The status must be `Available` before "! you can use the classifier to classify text. "! "! @parameter I_CLASSIFIER_ID | "! Classifier ID to use. "! @parameter I_BODY | "! Phrase to classify. "! @parameter E_RESPONSE | "! Service return value of type T_CLASSIFICATION "! @raising ZCX_IBMC_SERVICE_EXCEPTION | Exception being raised in case of an error. "! methods CLASSIFY importing !I_CLASSIFIER_ID type STRING !I_BODY type T_CLASSIFY_INPUT !I_contenttype type string default 'application/json' !I_accept type string default 'application/json' exporting !E_RESPONSE type T_CLASSIFICATION raising ZCX_IBMC_SERVICE_EXCEPTION . "! <p class="shorttext synchronized" lang="en">Classify multiple phrases</p> "! Returns label information for multiple phrases. The status must be `Available` "! before you can use the classifier to classify text.<br/> "! <br/> "! Note that classifying Japanese texts is a beta feature. "! "! @parameter I_CLASSIFIER_ID | "! Classifier ID to use. "! @parameter I_BODY | "! Phrase to classify. You can submit up to 30 text phrases in a request. "! @parameter E_RESPONSE | "! Service return value of type T_CLASSIFICATION_COLLECTION "! @raising ZCX_IBMC_SERVICE_EXCEPTION | Exception being raised in case of an error. "! methods CLASSIFY_COLLECTION importing !I_CLASSIFIER_ID type STRING !I_BODY type T_CLASSIFY_COLLECTION_INPUT !I_contenttype type string default 'application/json' !I_accept type string default 'application/json' exporting !E_RESPONSE type T_CLASSIFICATION_COLLECTION raising ZCX_IBMC_SERVICE_EXCEPTION . "! <p class="shorttext synchronized" lang="en">Create classifier</p> "! Sends data to create and train a classifier and returns information about the "! new classifier. "! "! @parameter I_TRAINING_METADATA | "! Metadata in JSON format. The metadata identifies the language of the data, and "! an optional name to identify the classifier. Specify the language with the "! 2-letter primary language code as assigned in ISO standard 639.<br/> "! <br/> "! Supported languages are English (`en`), Arabic (`ar`), French (`fr`), German, "! (`de`), Italian (`it`), Japanese (`ja`), Korean (`ko`), Brazilian Portuguese "! (`pt`), and Spanish (`es`). "! @parameter I_TRAINING_DATA | "! Training data in CSV format. Each text value must have at least one class. The "! data can include up to 3,000 classes and 20,000 records. For details, see [Data "! preparation](https://cloud.ibm.com/docs/natural-language-classifier?topic=natur "! al-language-classifier-using-your-data). "! @parameter E_RESPONSE | "! Service return value of type T_CLASSIFIER "! @raising ZCX_IBMC_SERVICE_EXCEPTION | Exception being raised in case of an error. "! methods CREATE_CLASSIFIER importing !I_TRAINING_METADATA type FILE !I_TRAINING_DATA type FILE !I_TRAINING_METADATA_CT type STRING default ZIF_IBMC_SERVICE_ARCH~C_MEDIATYPE-ALL !I_TRAINING_DATA_CT type STRING default ZIF_IBMC_SERVICE_ARCH~C_MEDIATYPE-ALL !I_contenttype type string default 'multipart/form-data' !I_accept type string default 'application/json' exporting !E_RESPONSE type T_CLASSIFIER raising ZCX_IBMC_SERVICE_EXCEPTION . "! <p class="shorttext synchronized" lang="en">List classifiers</p> "! Returns an empty array if no classifiers are available. "! "! @parameter E_RESPONSE | "! Service return value of type T_CLASSIFIER_LIST "! @raising ZCX_IBMC_SERVICE_EXCEPTION | Exception being raised in case of an error. "! methods LIST_CLASSIFIERS importing !I_accept type string default 'application/json' exporting !E_RESPONSE type T_CLASSIFIER_LIST raising ZCX_IBMC_SERVICE_EXCEPTION . "! <p class="shorttext synchronized" lang="en">Get information about a classifier</p> "! Returns status and other information about a classifier. "! "! @parameter I_CLASSIFIER_ID | "! Classifier ID to query. "! @parameter E_RESPONSE | "! Service return value of type T_CLASSIFIER "! @raising ZCX_IBMC_SERVICE_EXCEPTION | Exception being raised in case of an error. "! methods GET_CLASSIFIER importing !I_CLASSIFIER_ID type STRING !I_accept type string default 'application/json' exporting !E_RESPONSE type T_CLASSIFIER raising ZCX_IBMC_SERVICE_EXCEPTION . "! <p class="shorttext synchronized" lang="en">Delete classifier</p> "! "! @parameter I_CLASSIFIER_ID | "! Classifier ID to delete. "! @raising ZCX_IBMC_SERVICE_EXCEPTION | Exception being raised in case of an error. "! methods DELETE_CLASSIFIER importing !I_CLASSIFIER_ID type STRING !I_accept type string default 'application/json' raising ZCX_IBMC_SERVICE_EXCEPTION . protected section. private section. ENDCLASS. class ZCL_IBMC_NAT_LANG_CLASS_V1 IMPLEMENTATION. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_IBMC_NAT_LANG_CLASS_V1->GET_APPNAME * +-------------------------------------------------------------------------------------------------+ * | [<-()] E_APPNAME TYPE STRING * +--------------------------------------------------------------------------------------</SIGNATURE> method GET_APPNAME. e_appname = 'Natural Language Classifier'. endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Protected Method ZCL_IBMC_NAT_LANG_CLASS_V1->GET_REQUEST_PROP * +-------------------------------------------------------------------------------------------------+ * | [--->] I_AUTH_METHOD TYPE STRING (default =C_DEFAULT) * | [<-()] E_REQUEST_PROP TYPE TS_REQUEST_PROP * +--------------------------------------------------------------------------------------</SIGNATURE> method GET_REQUEST_PROP. data: lv_auth_method type string ##NEEDED. e_request_prop = super->get_request_prop( i_auth_method = i_auth_method ). lv_auth_method = i_auth_method. if lv_auth_method eq c_default. lv_auth_method = 'IAM'. endif. if lv_auth_method is initial. e_request_prop-auth_basic = c_boolean_false. e_request_prop-auth_oauth = c_boolean_false. e_request_prop-auth_apikey = c_boolean_false. elseif lv_auth_method eq 'IAM'. e_request_prop-auth_name = 'IAM'. e_request_prop-auth_type = 'apiKey'. e_request_prop-auth_headername = 'Authorization'. e_request_prop-auth_query = c_boolean_false. e_request_prop-auth_header = c_boolean_true. else. endif. e_request_prop-url-protocol = 'https'. e_request_prop-url-host = 'api.us-south.natural-language-classifier.watson.cloud.ibm.com'. e_request_prop-url-path_base = ''. endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_IBMC_NAT_LANG_CLASS_V1->GET_SDK_VERSION_DATE * +-------------------------------------------------------------------------------------------------+ * | [<-()] E_SDK_VERSION_DATE TYPE STRING * +--------------------------------------------------------------------------------------</SIGNATURE> method get_sdk_version_date. e_sdk_version_date = '20210312144435'. endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_IBMC_NAT_LANG_CLASS_V1->CLASSIFY * +-------------------------------------------------------------------------------------------------+ * | [--->] I_CLASSIFIER_ID TYPE STRING * | [--->] I_BODY TYPE T_CLASSIFY_INPUT * | [--->] I_contenttype TYPE string (default ='application/json') * | [--->] I_accept TYPE string (default ='application/json') * | [<---] E_RESPONSE TYPE T_CLASSIFICATION * | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION * +--------------------------------------------------------------------------------------</SIGNATURE> method CLASSIFY. data: ls_request_prop type ts_request_prop, lv_separator(1) type c ##NEEDED, lv_sep(1) type c ##NEEDED, lo_response type to_rest_response, lv_json type string ##NEEDED. ls_request_prop-url-path = '/v1/classifiers/{classifier_id}/classify'. replace all occurrences of `{classifier_id}` in ls_request_prop-url-path with i_CLASSIFIER_ID ignoring case. " standard headers ls_request_prop-header_content_type = I_contenttype. ls_request_prop-header_accept = I_accept. set_default_query_parameters( changing c_url = ls_request_prop-url ). " process body parameters data: lv_body type string, lv_bodyparam type string, lv_datatype type char. field-symbols: <lv_text> type any. lv_separator = ''. lv_datatype = get_datatype( i_BODY ). if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or ls_request_prop-header_content_type cp '*json*'. if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep. lv_bodyparam = abap_to_json( i_value = i_BODY i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ). else. lv_bodyparam = abap_to_json( i_name = 'body' i_value = i_BODY ). endif. lv_body = lv_body && lv_separator && lv_bodyparam. else. assign i_BODY to <lv_text>. lv_bodyparam = <lv_text>. concatenate lv_body lv_bodyparam into lv_body. endif. if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'. lv_body = `{` && lv_body && `}`. endif. if ls_request_prop-header_content_type cp '*charset=utf-8*'. ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ). replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case. else. ls_request_prop-body = lv_body. endif. " execute HTTP POST request lo_response = HTTP_POST( i_request_prop = ls_request_prop ). " retrieve JSON data lv_json = get_response_string( lo_response ). parse_json( exporting i_json = lv_json i_dictionary = c_abapname_dictionary changing c_abap = e_response ). endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_IBMC_NAT_LANG_CLASS_V1->CLASSIFY_COLLECTION * +-------------------------------------------------------------------------------------------------+ * | [--->] I_CLASSIFIER_ID TYPE STRING * | [--->] I_BODY TYPE T_CLASSIFY_COLLECTION_INPUT * | [--->] I_contenttype TYPE string (default ='application/json') * | [--->] I_accept TYPE string (default ='application/json') * | [<---] E_RESPONSE TYPE T_CLASSIFICATION_COLLECTION * | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION * +--------------------------------------------------------------------------------------</SIGNATURE> method CLASSIFY_COLLECTION. data: ls_request_prop type ts_request_prop, lv_separator(1) type c ##NEEDED, lv_sep(1) type c ##NEEDED, lo_response type to_rest_response, lv_json type string ##NEEDED. ls_request_prop-url-path = '/v1/classifiers/{classifier_id}/classify_collection'. replace all occurrences of `{classifier_id}` in ls_request_prop-url-path with i_CLASSIFIER_ID ignoring case. " standard headers ls_request_prop-header_content_type = I_contenttype. ls_request_prop-header_accept = I_accept. set_default_query_parameters( changing c_url = ls_request_prop-url ). " process body parameters data: lv_body type string, lv_bodyparam type string, lv_datatype type char. field-symbols: <lv_text> type any. lv_separator = ''. lv_datatype = get_datatype( i_BODY ). if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or ls_request_prop-header_content_type cp '*json*'. if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep. lv_bodyparam = abap_to_json( i_value = i_BODY i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ). else. lv_bodyparam = abap_to_json( i_name = 'body' i_value = i_BODY ). endif. lv_body = lv_body && lv_separator && lv_bodyparam. else. assign i_BODY to <lv_text>. lv_bodyparam = <lv_text>. concatenate lv_body lv_bodyparam into lv_body. endif. if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'. lv_body = `{` && lv_body && `}`. endif. if ls_request_prop-header_content_type cp '*charset=utf-8*'. ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ). replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case. else. ls_request_prop-body = lv_body. endif. " execute HTTP POST request lo_response = HTTP_POST( i_request_prop = ls_request_prop ). " retrieve JSON data lv_json = get_response_string( lo_response ). parse_json( exporting i_json = lv_json i_dictionary = c_abapname_dictionary changing c_abap = e_response ). endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_IBMC_NAT_LANG_CLASS_V1->CREATE_CLASSIFIER * +-------------------------------------------------------------------------------------------------+ * | [--->] I_TRAINING_METADATA TYPE FILE * | [--->] I_TRAINING_DATA TYPE FILE * | [--->] I_TRAINING_METADATA_CT TYPE STRING (default = ZIF_IBMC_SERVICE_ARCH~C_MEDIATYPE-all) * | [--->] I_TRAINING_DATA_CT TYPE STRING (default = ZIF_IBMC_SERVICE_ARCH~C_MEDIATYPE-all) * | [--->] I_contenttype TYPE string (default ='multipart/form-data') * | [--->] I_accept TYPE string (default ='application/json') * | [<---] E_RESPONSE TYPE T_CLASSIFIER * | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION * +--------------------------------------------------------------------------------------</SIGNATURE> method CREATE_CLASSIFIER. data: ls_request_prop type ts_request_prop, lv_separator(1) type c ##NEEDED, lv_sep(1) type c ##NEEDED, lo_response type to_rest_response, lv_json type string ##NEEDED. ls_request_prop-url-path = '/v1/classifiers'. " standard headers ls_request_prop-header_content_type = I_contenttype. ls_request_prop-header_accept = I_accept. set_default_query_parameters( changing c_url = ls_request_prop-url ). " process form parameters data: ls_form_part type ts_form_part, lt_form_part type tt_form_part, lv_formdata type string value is initial ##NEEDED, lv_value type string ##NEEDED, lv_index(3) type n value '000' ##NEEDED, lv_keypattern type string ##NEEDED, lv_base_name type string ##NEEDED, lv_extension type string ##NEEDED. if not i_TRAINING_METADATA is initial. lv_extension = get_file_extension( I_TRAINING_METADATA_CT ). lv_value = `form-data; name="training_metadata"; filename="file` && lv_index && `.` && lv_extension && `"` ##NO_TEXT. lv_index = lv_index + 1. clear ls_form_part. ls_form_part-content_type = I_TRAINING_METADATA_CT. ls_form_part-content_disposition = lv_value. ls_form_part-xdata = i_TRAINING_METADATA. append ls_form_part to lt_form_part. endif. if not i_TRAINING_DATA is initial. lv_extension = get_file_extension( I_TRAINING_DATA_CT ). lv_value = `form-data; name="training_data"; filename="file` && lv_index && `.` && lv_extension && `"` ##NO_TEXT. lv_index = lv_index + 1. clear ls_form_part. ls_form_part-content_type = I_TRAINING_DATA_CT. ls_form_part-content_disposition = lv_value. ls_form_part-xdata = i_TRAINING_DATA. append ls_form_part to lt_form_part. endif. " execute HTTP POST request lo_response = HTTP_POST_MULTIPART( i_request_prop = ls_request_prop it_form_part = lt_form_part ). " retrieve JSON data lv_json = get_response_string( lo_response ). parse_json( exporting i_json = lv_json i_dictionary = c_abapname_dictionary changing c_abap = e_response ). endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_IBMC_NAT_LANG_CLASS_V1->LIST_CLASSIFIERS * +-------------------------------------------------------------------------------------------------+ * | [--->] I_accept TYPE string (default ='application/json') * | [<---] E_RESPONSE TYPE T_CLASSIFIER_LIST * | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION * +--------------------------------------------------------------------------------------</SIGNATURE> method LIST_CLASSIFIERS. data: ls_request_prop type ts_request_prop, lv_separator(1) type c ##NEEDED, lv_sep(1) type c ##NEEDED, lo_response type to_rest_response, lv_json type string ##NEEDED. ls_request_prop-url-path = '/v1/classifiers'. " standard headers ls_request_prop-header_accept = I_accept. set_default_query_parameters( changing c_url = ls_request_prop-url ). " execute HTTP GET request lo_response = HTTP_GET( i_request_prop = ls_request_prop ). " retrieve JSON data lv_json = get_response_string( lo_response ). parse_json( exporting i_json = lv_json i_dictionary = c_abapname_dictionary changing c_abap = e_response ). endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_IBMC_NAT_LANG_CLASS_V1->GET_CLASSIFIER * +-------------------------------------------------------------------------------------------------+ * | [--->] I_CLASSIFIER_ID TYPE STRING * | [--->] I_accept TYPE string (default ='application/json') * | [<---] E_RESPONSE TYPE T_CLASSIFIER * | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION * +--------------------------------------------------------------------------------------</SIGNATURE> method GET_CLASSIFIER. data: ls_request_prop type ts_request_prop, lv_separator(1) type c ##NEEDED, lv_sep(1) type c ##NEEDED, lo_response type to_rest_response, lv_json type string ##NEEDED. ls_request_prop-url-path = '/v1/classifiers/{classifier_id}'. replace all occurrences of `{classifier_id}` in ls_request_prop-url-path with i_CLASSIFIER_ID ignoring case. " standard headers ls_request_prop-header_accept = I_accept. set_default_query_parameters( changing c_url = ls_request_prop-url ). " execute HTTP GET request lo_response = HTTP_GET( i_request_prop = ls_request_prop ). " retrieve JSON data lv_json = get_response_string( lo_response ). parse_json( exporting i_json = lv_json i_dictionary = c_abapname_dictionary changing c_abap = e_response ). endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_IBMC_NAT_LANG_CLASS_V1->DELETE_CLASSIFIER * +-------------------------------------------------------------------------------------------------+ * | [--->] I_CLASSIFIER_ID TYPE STRING * | [--->] I_accept TYPE string (default ='application/json') * | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION * +--------------------------------------------------------------------------------------</SIGNATURE> method DELETE_CLASSIFIER. data: ls_request_prop type ts_request_prop, lv_separator(1) type c ##NEEDED, lv_sep(1) type c ##NEEDED, lo_response type to_rest_response, lv_json type string ##NEEDED. ls_request_prop-url-path = '/v1/classifiers/{classifier_id}'. replace all occurrences of `{classifier_id}` in ls_request_prop-url-path with i_CLASSIFIER_ID ignoring case. " standard headers ls_request_prop-header_accept = I_accept. set_default_query_parameters( changing c_url = ls_request_prop-url ). " execute HTTP DELETE request lo_response = HTTP_DELETE( i_request_prop = ls_request_prop ). endmethod. ENDCLASS.
[ 9, 15069, 13130, 11, 12131, 19764, 11421, 13, 1439, 6923, 33876, 13, 198, 9, 198, 9, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 9, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 9, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 198, 9, 198, 9, 220, 220, 220, 220, 2638, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 198, 9, 198, 9, 17486, 2672, 416, 9723, 1099, 393, 4987, 284, 287, 3597, 11, 3788, 198, 9, 9387, 739, 262, 13789, 318, 9387, 319, 281, 366, 1921, 3180, 1, 29809, 1797, 11, 198, 9, 42881, 34764, 11015, 6375, 7102, 49828, 11053, 3963, 15529, 509, 12115, 11, 2035, 4911, 393, 17142, 13, 198, 9, 4091, 262, 13789, 329, 262, 2176, 3303, 15030, 21627, 290, 198, 9, 11247, 739, 262, 13789, 13, 198, 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 35364, 15417, 5016, 7483, 3556, 79, 29, 198, 40484, 19764, 14959, 5, 25351, 26, 12068, 15417, 5016, 7483, 3544, 4572, 4673, 16113, 198, 40484, 220, 284, 1441, 262, 1353, 12336, 2747, 18156, 6097, 329, 1790, 2420, 5128, 13, 921, 2251, 198, 40484, 220, 290, 4512, 257, 1398, 7483, 284, 2018, 2747, 18156, 6097, 284, 1672, 13399, 523, 326, 198, 40484, 220, 262, 2139, 460, 4174, 883, 6097, 284, 649, 17311, 13, 1279, 1671, 15913, 198, 4871, 1168, 5097, 62, 9865, 9655, 62, 34259, 62, 43, 15567, 62, 31631, 62, 53, 16, 5550, 20032, 17941, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1168, 5097, 62, 9865, 9655, 62, 35009, 27389, 62, 13918, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 198, 220, 3858, 25, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 198, 220, 220, 220, 366, 0, 220, 220, 220, 18261, 21437, 329, 14626, 8563, 25970, 79, 29, 198, 220, 220, 220, 2221, 286, 309, 62, 24908, 62, 19535, 47, 1340, 5188, 11, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 14626, 3722, 2438, 13, 198, 220, 220, 220, 220, 220, 42714, 2099, 17828, 7156, 1137, 11, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 13047, 1438, 13, 198, 220, 220, 220, 220, 220, 33854, 2099, 19269, 2751, 11, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 13047, 6764, 13, 198, 220, 220, 220, 220, 220, 22196, 40165, 2099, 19269, 2751, 11, 198, 220, 220, 220, 886, 286, 309, 62, 24908, 62, 19535, 47, 1340, 5188, 13, 198, 220, 3858, 25, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 198, 220, 220, 220, 366, 0, 220, 220, 220, 19390, 21437, 284, 36509, 25970, 79, 29, 198, 220, 220, 220, 2221, 286, 309, 62, 31631, 5064, 56, 62, 1268, 30076, 11, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 383, 8948, 9546, 13, 383, 5415, 4129, 318, 36117, 3435, 13, 198, 220, 220, 220, 220, 220, 40383, 2099, 19269, 2751, 11, 198, 220, 220, 220, 886, 286, 309, 62, 31631, 5064, 56, 62, 1268, 30076, 13, 198, 220, 3858, 25, 198, 220, 220, 220, 366, 0, 1400, 10314, 1695, 13, 198, 220, 220, 220, 2221, 286, 309, 62, 1268, 24027, 62, 9864, 23680, 11, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 3395, 14706, 287, 19449, 5794, 13, 383, 20150, 21079, 262, 3303, 286, 262, 1366, 11, 290, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 220, 281, 11902, 1438, 284, 5911, 262, 1398, 7483, 13, 18291, 1958, 262, 3303, 351, 262, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 220, 362, 12, 9291, 4165, 3303, 2438, 355, 8686, 287, 19694, 3210, 718, 2670, 29847, 1671, 15913, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 1279, 1671, 15913, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 36848, 8950, 389, 3594, 357, 63, 268, 63, 828, 17526, 357, 63, 283, 63, 828, 4141, 357, 63, 8310, 63, 828, 2679, 11, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 220, 357, 63, 2934, 63, 828, 8200, 357, 63, 270, 63, 828, 4960, 357, 63, 6592, 63, 828, 6983, 357, 63, 7204, 63, 828, 17036, 21813, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 220, 357, 63, 457, 63, 828, 290, 7897, 357, 63, 274, 63, 737, 198, 220, 220, 220, 220, 220, 29125, 1268, 2751, 62, 47123, 2885, 13563, 2099, 45811, 11, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 13614, 1366, 287, 44189, 5794, 13, 5501, 2420, 1988, 1276, 423, 379, 1551, 530, 1398, 13, 383, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 220, 1366, 460, 2291, 510, 284, 513, 11, 830, 6097, 290, 1160, 11, 830, 4406, 13, 1114, 3307, 11, 766, 685, 6601, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 220, 11824, 16151, 5450, 1378, 17721, 13, 571, 76, 13, 785, 14, 31628, 14, 11802, 12, 16129, 12, 4871, 7483, 30, 26652, 28, 77, 2541, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 435, 12, 16129, 12, 4871, 7483, 12, 3500, 12, 14108, 12, 7890, 737, 198, 220, 220, 220, 220, 220, 29125, 1268, 2751, 62, 26947, 2099, 45811, 11, 198, 220, 220, 220, 886, 286, 309, 62, 1268, 24027, 62, 9864, 23680, 13, 198, 220, 3858, 25, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 198, 220, 220, 220, 366, 0, 220, 220, 220, 5016, 290, 6628, 25970, 79, 29, 198, 220, 220, 220, 2221, 286, 309, 62, 45449, 62, 31631, 11, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 317, 32465, 5873, 326, 6870, 262, 6628, 326, 14959, 468, 287, 428, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 220, 1398, 13, 16038, 3815, 2380, 2440, 1013, 44845, 13, 198, 220, 220, 220, 220, 220, 7102, 37, 2389, 18310, 2099, 360, 2606, 19146, 11, 198, 220, 220, 220, 220, 220, 366, 0, 220, 220, 5016 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_serialize DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. METHODS constructor IMPORTING iv_serialize_master_lang_only TYPE abap_bool DEFAULT abap_false. METHODS on_end_of_task IMPORTING !p_task TYPE clike . METHODS serialize IMPORTING it_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt iv_language TYPE langu DEFAULT sy-langu ii_log TYPE REF TO zif_abapgit_log OPTIONAL iv_force_sequential TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . PROTECTED SECTION. TYPES: ty_char32 TYPE c LENGTH 32. CLASS-DATA gv_max_threads TYPE i . DATA mt_files TYPE zif_abapgit_definitions=>ty_files_item_tt . DATA mv_free TYPE i . DATA mi_log TYPE REF TO zif_abapgit_log . DATA mv_group TYPE rzlli_apcl . DATA mv_serialize_master_lang_only TYPE abap_bool. METHODS add_to_return IMPORTING !iv_path TYPE string !is_fils_item TYPE zcl_abapgit_objects=>ty_serialization . METHODS run_parallel IMPORTING !is_tadir TYPE zif_abapgit_definitions=>ty_tadir !iv_language TYPE langu !iv_task TYPE ty_char32 RAISING zcx_abapgit_exception . METHODS run_sequential IMPORTING !is_tadir TYPE zif_abapgit_definitions=>ty_tadir !iv_language TYPE langu RAISING zcx_abapgit_exception . METHODS determine_max_threads IMPORTING !iv_force_sequential TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rv_threads) TYPE i RAISING zcx_abapgit_exception . PRIVATE SECTION. ENDCLASS. CLASS ZCL_ABAPGIT_SERIALIZE IMPLEMENTATION. METHOD add_to_return. FIELD-SYMBOLS: <ls_file> LIKE LINE OF is_fils_item-files, <ls_return> LIKE LINE OF mt_files. LOOP AT is_fils_item-files ASSIGNING <ls_file>. APPEND INITIAL LINE TO mt_files ASSIGNING <ls_return>. <ls_return>-file = <ls_file>. <ls_return>-file-path = iv_path. <ls_return>-item = is_fils_item-item. ENDLOOP. ENDMETHOD. METHOD constructor. DATA lo_settings TYPE REF TO zcl_abapgit_settings. lo_settings = zcl_abapgit_persist_settings=>get_instance( )->read( ). IF zcl_abapgit_factory=>get_environment( )->is_merged( ) = abap_true OR lo_settings->get_parallel_proc_disabled( ) = abap_true. gv_max_threads = 1. ENDIF. mv_group = 'parallel_generators' ##NO_TEXT. mv_serialize_master_lang_only = iv_serialize_master_lang_only. ENDMETHOD. METHOD determine_max_threads. IF iv_force_sequential = abap_true. rv_threads = 1. RETURN. ENDIF. IF gv_max_threads >= 1. * SPBT_INITIALIZE gives error PBT_ENV_ALREADY_INITIALIZED if called * multiple times in same session rv_threads = gv_max_threads. RETURN. ENDIF. CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'Z_ABAPGIT_SERIALIZE_PARALLEL' EXCEPTIONS function_not_exist = 1 OTHERS = 2. IF sy-subrc <> 0. gv_max_threads = 1. ELSE. * todo, add possibility to set group name in user exit CALL FUNCTION 'SPBT_INITIALIZE' EXPORTING group_name = mv_group IMPORTING free_pbt_wps = gv_max_threads EXCEPTIONS invalid_group_name = 1 internal_error = 2 pbt_env_already_initialized = 3 currently_no_resources_avail = 4 no_pbt_resources_found = 5 cant_init_different_pbt_groups = 6 OTHERS = 7. IF sy-subrc <> 0. * fallback to running sequentially. If SPBT_INITIALIZE fails, check transactions * RZ12, SM50, SM21, SARFC gv_max_threads = 1. ENDIF. ENDIF. IF gv_max_threads > 1. gv_max_threads = gv_max_threads - 1. ENDIF. ASSERT gv_max_threads >= 1. IF gv_max_threads > 32. * https://en.wikipedia.org/wiki/Amdahl%27s_law gv_max_threads = 32. ENDIF. rv_threads = gv_max_threads. ENDMETHOD. METHOD on_end_of_task. DATA: lv_result TYPE xstring, lv_path TYPE string, lv_mess TYPE c LENGTH 200, ls_fils_item TYPE zcl_abapgit_objects=>ty_serialization. RECEIVE RESULTS FROM FUNCTION 'Z_ABAPGIT_SERIALIZE_PARALLEL' IMPORTING ev_result = lv_result ev_path = lv_path EXCEPTIONS error = 1 system_failure = 2 MESSAGE lv_mess communication_failure = 3 MESSAGE lv_mess OTHERS = 4. IF sy-subrc <> 0. IF NOT mi_log IS INITIAL. IF NOT lv_mess IS INITIAL. mi_log->add_error( lv_mess ). ELSE. mi_log->add_error( |{ sy-msgv1 }{ sy-msgv2 }{ sy-msgv3 }{ sy-msgv3 }, { sy-subrc }| ). ENDIF. ENDIF. ELSE. IMPORT data = ls_fils_item FROM DATA BUFFER lv_result. "#EC CI_SUBRC ASSERT sy-subrc = 0. add_to_return( is_fils_item = ls_fils_item iv_path = lv_path ). ENDIF. mv_free = mv_free + 1. ENDMETHOD. METHOD run_parallel. DATA: lv_msg TYPE c LENGTH 100, lv_free LIKE mv_free. ASSERT mv_free > 0. DO. CALL FUNCTION 'Z_ABAPGIT_SERIALIZE_PARALLEL' STARTING NEW TASK iv_task DESTINATION IN GROUP mv_group CALLING on_end_of_task ON END OF TASK EXPORTING iv_obj_type = is_tadir-object iv_obj_name = is_tadir-obj_name iv_devclass = is_tadir-devclass iv_language = iv_language iv_path = is_tadir-path iv_serialize_master_lang_only = mv_serialize_master_lang_only EXCEPTIONS system_failure = 1 MESSAGE lv_msg communication_failure = 2 MESSAGE lv_msg resource_failure = 3 OTHERS = 4. IF sy-subrc = 3. lv_free = mv_free. WAIT UNTIL mv_free <> lv_free UP TO 1 SECONDS. CONTINUE. ELSEIF sy-subrc <> 0. ASSERT lv_msg = '' AND 0 = 1. ENDIF. EXIT. ENDDO. mv_free = mv_free - 1. ENDMETHOD. METHOD run_sequential. DATA: lx_error TYPE REF TO zcx_abapgit_exception, ls_fils_item TYPE zcl_abapgit_objects=>ty_serialization. ls_fils_item-item-obj_type = is_tadir-object. ls_fils_item-item-obj_name = is_tadir-obj_name. ls_fils_item-item-devclass = is_tadir-devclass. TRY. ls_fils_item = zcl_abapgit_objects=>serialize( is_item = ls_fils_item-item iv_serialize_master_lang_only = mv_serialize_master_lang_only iv_language = iv_language ). add_to_return( is_fils_item = ls_fils_item iv_path = is_tadir-path ). CATCH zcx_abapgit_exception INTO lx_error. IF NOT mi_log IS INITIAL. mi_log->add_exception( ix_exc = lx_error is_item = ls_fils_item-item ). ENDIF. ENDTRY. ENDMETHOD. METHOD serialize. DATA: lv_max TYPE i, li_progress TYPE REF TO zif_abapgit_progress. FIELD-SYMBOLS: <ls_tadir> LIKE LINE OF it_tadir. CLEAR mt_files. lv_max = determine_max_threads( iv_force_sequential ). mv_free = lv_max. mi_log = ii_log. li_progress = zcl_abapgit_progress=>get_instance( lines( it_tadir ) ). LOOP AT it_tadir ASSIGNING <ls_tadir>. li_progress->show( iv_current = sy-tabix iv_text = |Serialize { <ls_tadir>-obj_name }, { lv_max } threads| ) ##NO_TEXT. IF lv_max = 1. run_sequential( is_tadir = <ls_tadir> iv_language = iv_language ). ELSE. run_parallel( is_tadir = <ls_tadir> iv_task = |{ sy-tabix }| iv_language = iv_language ). WAIT UNTIL mv_free > 0 UP TO 120 SECONDS. ENDIF. ENDLOOP. WAIT UNTIL mv_free = lv_max UP TO 120 SECONDS. rt_files = mt_files. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 46911, 1096, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 46911, 1096, 62, 9866, 62, 17204, 62, 8807, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 337, 36252, 50, 319, 62, 437, 62, 1659, 62, 35943, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 79, 62, 35943, 41876, 537, 522, 764, 198, 220, 220, 220, 337, 36252, 50, 11389, 1096, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 83, 324, 343, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2786, 5550, 38865, 827, 12, 75, 2303, 198, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 6404, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3174, 62, 3107, 1843, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 16624, 8, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 1259, 62, 10641, 2624, 41876, 269, 406, 49494, 3933, 13, 628, 220, 220, 220, 42715, 12, 26947, 308, 85, 62, 9806, 62, 16663, 82, 41876, 1312, 764, 198, 220, 220, 220, 42865, 45079, 62, 16624, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 62, 926, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 5787, 41876, 1312, 764, 198, 220, 220, 220, 42865, 21504, 62, 6404, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 8094, 41876, 374, 89, 15516, 62, 499, 565, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 46911, 1096, 62, 9866, 62, 17204, 62, 8807, 41876, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 337, 36252, 50, 751, 62, 1462, 62, 7783, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6978, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 69, 4487, 62, 9186, 41876, 1976, 565, 62, 397, 499, 18300, 62, 48205, 14804, 774, 62, 46911, 1634, 764, 198, 220, 220, 220, 337, 36252, 50, 1057, 62, 1845, 29363, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 83, 324, 343, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 16129, 41876, 2786, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 35943, 220, 220, 220, 220, 41876, 1259, 62, 10641, 2624, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 1057, 62, 3107, 1843, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 83, 324, 343, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 16129, 41876, 2786, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 5004, 62, 9806, 62, 16663, 82, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3174, 62, 3107, 1843, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 16663, 82, 8, 220, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 35009, 12576, 35400, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 751, 62, 1462, 62, 7783, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 7753, 29, 220, 220, 34178, 48920, 3963, 318, 62, 69, 4487, 62, 9186, 12, 16624, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 7783, 29, 34178, 48920, 3963, 45079, 62, 16624, 13, 628, 198, 220, 220, 220, 17579, 3185, 5161, 318, 62, 69, 4487, 62, 9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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_4_A_HOWL_AT_THE_MOON definition public inheriting from /BOBF/CL_LIB_A_SUPERCLASS final create public . public section. methods /BOBF/IF_FRW_ACTION~EXECUTE redefinition . protected section. private section. ENDCLASS. CLASS ZCL_4_A_HOWL_AT_THE_MOON IMPLEMENTATION. METHOD /bobf/if_frw_action~execute. *--------------------------------------------------------------------* * Listing 07.16: - Executing Action *--------------------------------------------------------------------* "Local variables DATA: monster_header_records TYPE z4tt_monster_header. "Clear exporting parameters CLEAR: eo_message, et_failed_key, ev_static_action_failed, et_data. "Get the current header values io_read->retrieve( EXPORTING iv_node = zif_4_monster_c=>sc_node-monster_header it_key = it_key IMPORTING et_data = monster_header_records ). DATA(monster_header_record) = monster_header_records[ 1 ]. IF monster_header_record-monster_number IS INITIAL. RETURN. ENDIF. TRY. DATA(monster_model) = zcl_4_monster_model=>get_instance( monster_header_record-monster_number ). CATCH zcx_4_monster_exceptions. RETURN. ENDTRY. "Transform generic import structure into concrete structure DATA: howl_request_record TYPE z4sa_howl_at_the_moon. FIELD-SYMBOLS: <howl_request_record> TYPE any. ASSIGN is_parameters->* TO <howl_request_record>. howl_request_record = <howl_request_record>. "Off we go! TRY. monster_model->action_howl_at_the_moon( howl_request_record ). "Error handling time. The Monster class sends a framework- "agnostic error in the form of an exception class. We will "adapt this to a BOPF-specific exception CATCH zcx_4_monster_exceptions_mc INTO DATA(monster_exception). DATA(monster_key) = it_key[ 1 ]."Only one line "This key (node) failed at the job of performing the action "Shame upon it INSERT monster_key INTO TABLE et_failed_key. "Send the error message in the format BOPF desires DATA(origin_location_information) = VALUE /bobf/s_frw_location( node_key = is_ctx-node_key key = monster_key-key )."I heard you the first time DATA(message_in_a_bottle) = NEW /bobf/cm_frw_core( textid = monster_exception->if_t100_message~t100key severity = /bobf/cm_frw=>co_severity_error symptom = /bobf/if_frw_message_symptoms=>co_bo_inconsistency lifetime = /bobf/if_frw_c=>sc_lifetime_set_by_bopf ms_origin_location = origin_location_information ). zcl_4_bc_bopf_pl_helper=>put_message_in_bottle( EXPORTING i_hope_that_someone_gets_my = message_in_a_bottle CHANGING co_bottle = eo_message ). ENDTRY. ENDMETHOD."Execute action of ZCL_4_A_HOWL_AT_THE_MOON ENDCLASS.
[ 4871, 1168, 5097, 62, 19, 62, 32, 62, 37181, 43, 62, 1404, 62, 10970, 62, 11770, 1340, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1220, 8202, 29499, 14, 5097, 62, 40347, 62, 32, 62, 40331, 1137, 31631, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 5050, 1220, 8202, 29499, 14, 5064, 62, 10913, 54, 62, 44710, 93, 6369, 2943, 37780, 198, 220, 220, 220, 34087, 17750, 764, 198, 24326, 2665, 13, 198, 19734, 2665, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 19, 62, 32, 62, 37181, 43, 62, 1404, 62, 10970, 62, 11770, 1340, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1220, 65, 672, 69, 14, 361, 62, 8310, 86, 62, 2673, 93, 41049, 13, 198, 9, 10097, 650, 9, 198, 9, 7343, 278, 8753, 13, 1433, 25, 532, 8393, 15129, 7561, 198, 9, 10097, 650, 9, 198, 220, 220, 220, 366, 14565, 9633, 198, 220, 220, 220, 42865, 25, 9234, 62, 25677, 62, 8344, 3669, 41876, 1976, 19, 926, 62, 39050, 62, 25677, 13, 628, 220, 220, 220, 366, 19856, 39133, 10007, 198, 220, 220, 220, 30301, 1503, 25, 304, 78, 62, 20500, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2123, 62, 47904, 62, 2539, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 819, 62, 12708, 62, 2673, 62, 47904, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2123, 62, 7890, 13, 628, 220, 220, 220, 366, 3855, 262, 1459, 13639, 3815, 198, 220, 220, 220, 33245, 62, 961, 3784, 1186, 30227, 7, 198, 220, 220, 220, 7788, 15490, 2751, 21628, 62, 17440, 796, 1976, 361, 62, 19, 62, 39050, 62, 66, 14804, 1416, 62, 17440, 12, 39050, 62, 25677, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 2539, 220, 796, 340, 62, 2539, 198, 220, 220, 220, 30023, 9863, 2751, 2123, 62, 7890, 796, 9234, 62, 25677, 62, 8344, 3669, 6739, 628, 220, 220, 220, 42865, 7, 39050, 62, 25677, 62, 22105, 8, 796, 9234, 62, 25677, 62, 8344, 3669, 58, 352, 20740, 628, 220, 220, 220, 16876, 9234, 62, 25677, 62, 22105, 12, 39050, 62, 17618, 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, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 39050, 62, 19849, 8, 796, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 565, 62, 19, 62, 39050, 62, 19849, 14804, 1136, 62, 39098, 7, 9234, 62, 25677, 62, 22105, 12, 39050, 62, 17618, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 1976, 66, 87, 62, 19, 62, 39050, 62, 1069, 11755, 13, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 220, 220, 366, 41762, 14276, 1330, 4645, 656, 10017, 4645, 198, 220, 220, 220, 42865, 25, 703, 75, 62, 25927, 62, 22105, 41876, 1976, 19, 11400, 62, 71, 4883, 62, 265, 62, 1169, 62, 22977, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 71, 4883, 62, 25927, 62, 22105, 29, 41876, 597, 13, 628, 220, 220, 220, 24994, 16284, 318, 62, 17143, 7307, 3784, 9, 5390, 1279, 71, 4883, 62, 25927, 62, 22105, 28401, 198, 220, 220, 220, 703, 75, 62, 25927, 62, 22105, 796, 1279, 71, 4883, 62, 25927, 62, 22105, 28401, 628, 220, 220, 220, 366, 9362, 356, 467, 0, 198, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 9234, 62, 19849, 3784, 2673, 62, 71, 4883, 62, 265, 62, 1169, 62, 22977, 7, 703, 75, 62, 25927, 62, 22105, 6739, 628, 220, 220, 220, 220, 220, 220, 220, 366, 12331, 9041, 640, 13, 383, 12635, 1398, 12800, 257, 9355, 12, 198, 220, 220, 220, 220, 220, 220, 220, 366, 4660, 15132, 4049, 287, 262, 1296, 286, 281, 6631, 1398, 13, 775, 481, 198, 220, 220, 220, 220, 220, 220, 220, 366, 42552, 428, 284, 257, 347, 3185, 37, 12, 11423, 6631, 198, 220, 220, 220, 220, 220, 327, 11417, 1976, 66, 87, 62, 19, 62, 39050, 62, 1069, 11755, 62, 23209, 39319, 42865, 7, 39050, 62, 1069, 4516, 737, 628, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 39050, 62, 2539, 8, 796, 340, 62, 2539, 58, 352, 2361, 526, 10049, 530, 1627, 628, 220, 220, 220, 220, 220, 220, 220, 366, 1212, 1994, 357, 17440, 8, 4054, 379, 262, 1693, 286, 9489, 262, 2223, 198, 220, 220, 220, 220, 220, 220, 220, 366, 2484, 480, 2402, 340, 198, 220, 220, 220, 220, 220, 220, 220, 29194, 17395, 9234, 62, 2539, 39319, 43679, 2123, 62, 47904, 62, 2539, 13, 628, 220, 220, 220, 220, 220, 220, 220, 366, 25206, 262, 4049, 3275, 287, 262, 5794, 347, 3185, 37, 15997, 198, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 47103, 62, 24886, 62, 17018, 8, 796, 26173, 8924, 1220, 65, 672, 69, 14, 82, 62, 8310, 86, 62, 24886, 7, 198, 220, 220, 220, 220, 220, 220, 220, 10139, 62, 2539, 796, 318, 62, 49464, 12, 17440, 62, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 1994, 220, 220, 220, 220, 220, 796, 9234, 62, 2539, 12, 2539, 1267, 526, 40, 2982, 345, 262, 717, 640, 628, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 20500, 62, 259, 62, 64, 62, 10985, 293, 8, 796, 12682, 1220, 65, 672, 69, 14, 11215, 62, 8310, 86, 62, 7295, 7, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 9234, 62, 1069, 4516, 3784, 361, 62, 83, 3064, 62, 20500, 93, 83, 3064, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 19440, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1220, 65, 672, 69, 14, 11215, 62, 8310, 86, 14804, 1073, 62, 28116, 414, 62, 18224, 198, 220, 220, 220, 220, 220, 220, 220, 25993, 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,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_79 DEFINITION PUBLIC INHERITING FROM zcl_aoc_super CREATE PUBLIC . PUBLIC SECTION. METHODS constructor . METHODS check REDEFINITION . METHODS get_message_text REDEFINITION . PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_method, clsname TYPE seoclsname, cpdname TYPE seocpdname, include TYPE programm, END OF ty_method . TYPES: ty_methods_tt TYPE STANDARD TABLE OF ty_method WITH DEFAULT KEY . DATA mt_compiler TYPE scr_refs . DATA mt_statements TYPE ty_statements . METHODS check_local IMPORTING !is_method TYPE ty_method !is_local TYPE scr_ref RETURNING VALUE(rv_error) TYPE abap_bool . METHODS find_writes IMPORTING !is_method TYPE ty_method !is_local TYPE scr_ref RETURNING VALUE(rt_writes) TYPE scr_refs . METHODS initialize IMPORTING !it_tokens TYPE stokesx_tab !it_statements TYPE sstmnt_tab . METHODS find_locals IMPORTING !is_method TYPE ty_method RETURNING VALUE(rt_locals) TYPE scr_refs . METHODS find_methods IMPORTING !it_levels TYPE slevel_tab RETURNING VALUE(rt_methods) TYPE ty_methods_tt . ENDCLASS. CLASS ZCL_AOC_CHECK_79 IMPLEMENTATION. METHOD check. * abapOpenChecks * https://github.com/larshp/abapOpenChecks * MIT License DATA: lt_methods TYPE ty_methods_tt, lt_locals TYPE scr_refs, lv_error TYPE abap_bool, ls_local LIKE LINE OF lt_locals, ls_method LIKE LINE OF lt_methods. * Only consider local variables in global methods IF object_type <> 'CLAS'. RETURN. ENDIF. initialize( it_tokens = it_tokens it_statements = it_statements ). lt_methods = find_methods( it_levels ). LOOP AT lt_methods INTO ls_method. lt_locals = find_locals( ls_method ). LOOP AT lt_locals INTO ls_local. lv_error = check_local( is_method = ls_method is_local = ls_local ). IF lv_error = abap_true. inform( p_sub_obj_type = c_type_include p_sub_obj_name = ls_method-include p_line = ls_local-line p_kind = mv_errty p_test = myname p_param_1 = ls_local-name p_code = '001' ). ENDIF. ENDLOOP. ENDLOOP. ENDMETHOD. METHOD check_local. DATA: lt_writes TYPE scr_refs, ls_statement LIKE LINE OF mt_statements, ls_first LIKE LINE OF lt_writes. lt_writes = find_writes( is_method = is_method is_local = is_local ). READ TABLE lt_writes INDEX 1 INTO ls_first. IF sy-subrc <> 0. RETURN. ENDIF. * assumption: max one statement per line READ TABLE mt_statements INTO ls_statement WITH KEY include = is_method-include start-row = ls_first-statement->start_line. * note that for changed statements it might not find the correct STR, but this is okay IF sy-subrc <> 0 OR ( ls_statement-str NP 'CLEAR *' AND ls_statement-str NP 'REFRESH *' AND ls_statement-str NP 'FREE *' ). RETURN. ENDIF. LOOP AT mt_statements INTO ls_statement WHERE include = is_method-include AND start-row < ls_first-line. IF ls_statement-str CP 'SELECT SINGLE *' OR ls_statement-str CP 'SELECT * INTO TABLE *' OR ls_statement-str CP 'SELECT * INTO CORRESPONDING FIELDS OF TABLE *' OR ls_statement-str CP 'SELECT * APPENDING TABLE *' OR ls_statement-str CP 'SELECT * APPENDING CORRESPONDING FIELDS OF TABLE *'. CONTINUE. ENDIF. IF ls_statement-str CP 'LOOP AT *' OR ls_statement-str CP 'WHILE *' OR ls_statement-str CP 'SELECT *' OR ls_statement-str CP 'DO *'. RETURN. ENDIF. ENDLOOP. rv_error = abap_true. ENDMETHOD. METHOD constructor. super->constructor( ). category = 'ZCL_AOC_CATEGORY'. version = '001'. position = '079'. has_attributes = abap_true. attributes_ok = abap_true. mv_errty = c_error. ENDMETHOD. METHOD find_locals. rt_locals = mt_compiler. DELETE rt_locals WHERE grade <> cl_abap_compiler=>grade_definition OR mode2 <> '2' OR statement->source_info->name <> is_method-include. ENDMETHOD. METHOD find_methods. DATA: ls_mtdkey TYPE seocpdkey, ls_method LIKE LINE OF rt_methods, ls_level LIKE LINE OF it_levels. LOOP AT it_levels INTO ls_level. cl_oo_classname_service=>get_method_by_include( EXPORTING incname = ls_level-name RECEIVING mtdkey = ls_mtdkey EXCEPTIONS class_not_existing = 1 method_not_existing = 2 OTHERS = 3 ). IF sy-subrc <> 0. CONTINUE. ENDIF. CLEAR ls_method. MOVE-CORRESPONDING ls_mtdkey TO ls_method. ls_method-include = ls_level-name. APPEND ls_method TO rt_methods. ENDLOOP. ENDMETHOD. METHOD find_writes. rt_writes = mt_compiler. DELETE rt_writes WHERE statement->source_info->name <> is_method-include. DELETE rt_writes WHERE full_name <> is_local-full_name. DELETE rt_writes WHERE mode2 <> '6' AND mode2 <> '9' AND mode2 <> 'D'. ENDMETHOD. METHOD get_message_text. CLEAR p_text. CASE p_code. WHEN '001'. p_text = 'CLEAR as first of variable, &1'. "#EC NOTEXT WHEN OTHERS. super->get_message_text( EXPORTING p_test = p_test p_code = p_code IMPORTING p_text = p_text ). ENDCASE. ENDMETHOD. METHOD initialize. mt_compiler = zcl_aoc_compiler=>get_instance( iv_object_type = object_type iv_object_name = object_name )->get_result( ). mt_statements = build_statements( it_tokens = it_tokens it_statements = it_statements ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 64, 420, 62, 9122, 62, 3720, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 64, 420, 62, 16668, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 764, 628, 220, 220, 220, 337, 36252, 50, 2198, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 20500, 62, 5239, 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, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 24396, 11, 198, 220, 220, 220, 220, 220, 220, 220, 537, 82, 3672, 41876, 384, 420, 7278, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 269, 30094, 3672, 41876, 384, 420, 30094, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2291, 41876, 1430, 76, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 24396, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 24396, 82, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 24396, 13315, 5550, 38865, 35374, 764, 628, 220, 220, 220, 42865, 45079, 62, 5589, 5329, 41876, 6040, 62, 5420, 82, 764, 198, 220, 220, 220, 42865, 45079, 62, 14269, 3196, 41876, 1259, 62, 14269, 3196, 764, 628, 220, 220, 220, 337, 36252, 50, 2198, 62, 12001, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 24396, 220, 220, 220, 220, 220, 41876, 1259, 62, 24396, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 12001, 220, 220, 220, 220, 220, 220, 41876, 6040, 62, 5420, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 18224, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 1064, 62, 8933, 274, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 24396, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 24396, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 12001, 220, 220, 220, 220, 220, 220, 220, 41876, 6040, 62, 5420, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 8933, 274, 8, 41876, 6040, 62, 5420, 82, 764, 198, 220, 220, 220, 337, 36252, 50, 41216, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 83, 482, 641, 220, 220, 220, 220, 41876, 336, 3369, 87, 62, 8658, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 14269, 3196, 41876, 264, 301, 76, 429, 62, 8658, 764, 198, 220, 220, 220, 337, 36252, 50, 1064, 62, 17946, 874, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 24396, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 24396, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 17946, 874, 8, 41876, 6040, 62, 5420, 82, 764, 198, 220, 220, 220, 337, 36252, 50, 1064, 62, 24396, 82, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 46170, 220, 220, 220, 220, 220, 220, 220, 41876, 3133, 626, 62, 8658, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 24396, 82, 8, 41876, 1259, 62, 24396, 82, 62, 926, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 32, 4503, 62, 50084, 62, 3720, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 2198, 13, 198, 198, 9, 450, 499, 11505, 7376, 4657, 198, 9, 3740, 1378, 12567, 13, 785, 14, 75, 5406, 79, 14, 397, 499, 11505, 7376, 4657, 198, 9, 17168, 13789, 628, 220, 220, 220, 42865, 25, 300, 83, 62, 24396, 82, 41876, 1259, 62, 24396, 82, 62, 926, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 17946, 874, 220, 41876, 6040, 62, 5420, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 18224, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 12001, 220, 220, 34178, 48920, 3963, 300, 83, 62, 17946, 874, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 24396, 220, 34178, 48920, 3963, 300, 83, 62, 24396, 82, 13, 628, 198, 9, 5514, 2074, 1957, 9633, 287, 3298, 5050, 198, 220, 220, 220, 16876, 2134, 62, 4906, 1279, 29, 705, 5097, 1921, 4458, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 41216, 7, 198, 220, 220, 220, 220, 220, 340, 62, 83, 482, 641, 220, 220, 220, 220, 796, 340, 62, 83, 482, 641, 198, 220, 220, 220, 220, 220, 340, 62, 14269, 3196, 796, 340, 62, 14269, 3196, 6739, 628, 220, 220, 220, 300, 83, 62, 24396, 82, 796, 1064, 62, 24396, 82, 7, 340, 62, 46170, 6739, 628, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 24396, 82, 39319, 43979, 62, 24396, 13, 198, 220, 220, 220, 220, 220, 300, 83, 62, 17946, 874, 796, 1064, 62, 17946, 874, 7, 43979, 62, 24396, 6739, 628, 220, 220, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 17946, 874, 39319, 43979, 62, 12001, 13, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 18224, 796, 2198, 62, 12001, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 24396, 796, 43979, 62, 24396, 198, 220, 220, 220, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZCL_ZEWM_ROBCO_MPC definition public inheriting from /IWBEP/CL_MGW_PUSH_ABS_MODEL create public . public section. types: NEWWAREHOUSEORDER type /SCWM/WHO . 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: WAREHOUSETASKCONFIRMATION type /SCWM/LTAP . types: begin of TS_GETNEWROBOTWAREHOUSEORDER, LGNUM type C length 4, RSRC type C length 18, end of TS_GETNEWROBOTWAREHOUSEORDER . types: begin of TS_SETROBOTSTATUS, LGNUM type C length 4, RSRC type C length 18, EXCCODE type C length 4, end of TS_SETROBOTSTATUS . types: begin of TS_GETROBOTWAREHOUSEORDERS, LGNUM type C length 4, RSRC type C length 18, end of TS_GETROBOTWAREHOUSEORDERS . types: begin of TS_CONFIRMWAREHOUSETASKFIRSTST, TANUM type C length 12, LGNUM type C length 4, RSRC type C length 18, end of TS_CONFIRMWAREHOUSETASKFIRSTST . types: begin of TS_GETNEWROBOTTYPEWAREHOUSEORD, RSRC_TYPE type C length 4, RSRC_GRP type C length 4, LGNUM type C length 4, NO_WHO type /IWBEP/SB_ODATA_TY_INT2, end of TS_GETNEWROBOTTYPEWAREHOUSEORD . types: begin of TS_UNASSIGNROBOTFROMWAREHOUSEO, LGNUM type C length 4, RSRC type C length 18, WHO type C length 10, end of TS_UNASSIGNROBOTFROMWAREHOUSEO . types: begin of TS_SENDFIRSTCONFIRMATIONERROR, LGNUM type C length 4, RSRC type C length 18, WHO type C length 10, TANUM type C length 12, end of TS_SENDFIRSTCONFIRMATIONERROR . types: begin of TS_CONFIRMWAREHOUSETASK, LGNUM type C length 4, TANUM type C length 12, NISTA type P length 16 decimals 14, ALTME type C length 3, NLENR type C length 20, PARTI type FLAG, NLPLA type C length 18, CONF_EXC type C length 4, RSRC type C length 18, end of TS_CONFIRMWAREHOUSETASK . types: begin of TS_ASSIGNROBOTTOWAREHOUSEORDER, LGNUM type C length 4, RSRC type C length 18, WHO type C length 10, end of TS_ASSIGNROBOTTOWAREHOUSEORDER . types: begin of TS_SENDSECONDCONFIRMATIONERROR, LGNUM type C length 4, RSRC type C length 18, WHO type C length 10, TANUM type C length 12, end of TS_SENDSECONDCONFIRMATIONERROR . types: begin of TS_UNSETWAREHOUSEORDERINPROCES, LGNUM type C length 4, WHO type C length 10, end of TS_UNSETWAREHOUSEORDERINPROCES . types: begin of TS_GETINPROCESSWAREHOUSEORDERS, LGNUM type C length 4, RSRC_GRP type C length 4, RSRC_TYPE type C length 4, end of TS_GETINPROCESSWAREHOUSEORDERS . types: TS_WAREHOUSEORDER type /SCWM/WHO . types: TT_WAREHOUSEORDER type standard table of TS_WAREHOUSEORDER . types: TS_WAREHOUSENUMBER type /SCWM/T300 . types: TT_WAREHOUSENUMBER type standard table of TS_WAREHOUSENUMBER . types: TS_WAREHOUSEDESCRIPTION type /SCWM/T300T . types: TT_WAREHOUSEDESCRIPTION type standard table of TS_WAREHOUSEDESCRIPTION . types: TS_STORAGEBIN type /SCWM/LAGP . types: TT_STORAGEBIN type standard table of TS_STORAGEBIN . types: TS_ROBOT type /SCWM/RSRC . types: TT_ROBOT type standard table of TS_ROBOT . types: TS_OPENWAREHOUSETASK type /SCWM/ORDIM_O . types: TT_OPENWAREHOUSETASK type standard table of TS_OPENWAREHOUSETASK . types: TS_ROBOTRESOURCETYPE type ZEWM_TRSRC_TYP . types: TT_ROBOTRESOURCETYPE type standard table of TS_ROBOTRESOURCETYPE . types: TS_RESOURCETYPEDESCRIPTION type /SCWM/TRSRC_TYPT . types: TT_RESOURCETYPEDESCRIPTION type standard table of TS_RESOURCETYPEDESCRIPTION . types: TS_RESOURCEGROUP type /SCWM/TRSRC_GRP . types: TT_RESOURCEGROUP type standard table of TS_RESOURCEGROUP . types: TS_RESOURCEGROUPDESCRIPTION type /SCWM/TRSRC_GRPT . types: TT_RESOURCEGROUPDESCRIPTION type standard table of TS_RESOURCEGROUPDESCRIPTION . constants GC_NEWWAREHOUSEORDER type /IWBEP/IF_MGW_MED_ODATA_TYPES=>TY_E_MED_ENTITY_NAME value 'NewWarehouseOrder' ##NO_TEXT. constants GC_OPENWAREHOUSETASK type /IWBEP/IF_MGW_MED_ODATA_TYPES=>TY_E_MED_ENTITY_NAME value 'OpenWarehouseTask' ##NO_TEXT. constants GC_RESOURCEGROUP type /IWBEP/IF_MGW_MED_ODATA_TYPES=>TY_E_MED_ENTITY_NAME value 'ResourceGroup' ##NO_TEXT. constants GC_RESOURCEGROUPDESCRIPTION type /IWBEP/IF_MGW_MED_ODATA_TYPES=>TY_E_MED_ENTITY_NAME value 'ResourceGroupDescription' ##NO_TEXT. constants GC_RESOURCETYPEDESCRIPTION type /IWBEP/IF_MGW_MED_ODATA_TYPES=>TY_E_MED_ENTITY_NAME value 'ResourceTypeDescription' ##NO_TEXT. constants GC_ROBOT type /IWBEP/IF_MGW_MED_ODATA_TYPES=>TY_E_MED_ENTITY_NAME value 'Robot' ##NO_TEXT. constants GC_ROBOTRESOURCETYPE type /IWBEP/IF_MGW_MED_ODATA_TYPES=>TY_E_MED_ENTITY_NAME value 'RobotResourceType' ##NO_TEXT. constants GC_STORAGEBIN type /IWBEP/IF_MGW_MED_ODATA_TYPES=>TY_E_MED_ENTITY_NAME value 'StorageBin' ##NO_TEXT. constants GC_WAREHOUSEDESCRIPTION type /IWBEP/IF_MGW_MED_ODATA_TYPES=>TY_E_MED_ENTITY_NAME value 'WarehouseDescription' ##NO_TEXT. constants GC_WAREHOUSENUMBER type /IWBEP/IF_MGW_MED_ODATA_TYPES=>TY_E_MED_ENTITY_NAME value 'WarehouseNumber' ##NO_TEXT. constants GC_WAREHOUSEORDER type /IWBEP/IF_MGW_MED_ODATA_TYPES=>TY_E_MED_ENTITY_NAME value 'WarehouseOrder' ##NO_TEXT. constants GC_WAREHOUSETASKCONFIRMATION type /IWBEP/IF_MGW_MED_ODATA_TYPES=>TY_E_MED_ENTITY_NAME value 'WarehouseTaskConfirmation' ##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. constants GC_INCL_NAME type STRING value 'ZCL_ZEWM_ROBCO_MPC============CP' ##NO_TEXT. methods DEFINE_COMPLEXTYPES raising /IWBEP/CX_MGW_MED_EXCEPTION . methods DEFINE_WAREHOUSEORDER raising /IWBEP/CX_MGW_MED_EXCEPTION . methods DEFINE_WAREHOUSENUMBER raising /IWBEP/CX_MGW_MED_EXCEPTION . methods DEFINE_WAREHOUSEDESCRIPTION raising /IWBEP/CX_MGW_MED_EXCEPTION . methods DEFINE_STORAGEBIN raising /IWBEP/CX_MGW_MED_EXCEPTION . methods DEFINE_ROBOT raising /IWBEP/CX_MGW_MED_EXCEPTION . methods DEFINE_OPENWAREHOUSETASK raising /IWBEP/CX_MGW_MED_EXCEPTION . methods DEFINE_ROBOTRESOURCETYPE raising /IWBEP/CX_MGW_MED_EXCEPTION . methods DEFINE_RESOURCETYPEDESCRIPTION raising /IWBEP/CX_MGW_MED_EXCEPTION . methods DEFINE_RESOURCEGROUP raising /IWBEP/CX_MGW_MED_EXCEPTION . methods DEFINE_RESOURCEGROUPDESCRIPTIO raising /IWBEP/CX_MGW_MED_EXCEPTION . methods DEFINE_ASSOCIATIONS raising /IWBEP/CX_MGW_MED_EXCEPTION . methods DEFINE_ACTIONS raising /IWBEP/CX_MGW_MED_EXCEPTION . ENDCLASS. CLASS ZCL_ZEWM_ROBCO_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!!! &* *& &* *&---------------------------------------------------------------------* model->set_schema_namespace( 'ZEWM_ROBCO_SRV' ). define_complextypes( ). define_warehouseorder( ). define_warehousenumber( ). define_warehousedescription( ). define_storagebin( ). define_robot( ). define_openwarehousetask( ). define_robotresourcetype( ). define_resourcetypedescription( ). define_resourcegroup( ). define_resourcegroupdescriptio( ). define_associations( ). define_actions( ). endmethod. method DEFINE_ACTIONS. *&---------------------------------------------------------------------* *& 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_action type ref to /iwbep/if_mgw_odata_action, "#EC NEEDED lo_parameter type ref to /iwbep/if_mgw_odata_parameter. "#EC NEEDED *********************************************************************************************************************************** * ACTION - GetNewRobotWarehouseOrder *********************************************************************************************************************************** lo_action = model->create_action( 'GetNewRobotWarehouseOrder' ). "#EC NOTEXT *Set return complex type lo_action->set_return_complex_type( 'NewWarehouseOrder' ). "#EC NOTEXT *Set HTTP method GET or POST lo_action->set_http_method( 'POST' ). "#EC NOTEXT *Set the action for entity lo_action->set_action_for( 'WarehouseOrder' ). "#EC NOTEXT * Set return type multiplicity lo_action->set_return_multiplicity( '1' ). "#EC NOTEXT *********************************************************************************************************************************** * Parameters *********************************************************************************************************************************** lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '020' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Rsrc' iv_abap_fieldname = 'RSRC' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '021' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 18 ). "#EC NOTEXT lo_action->bind_input_structure( iv_structure_name = 'ZCL_ZEWM_ROBCO_MPC=>TS_GETNEWROBOTWAREHOUSEORDER' ). "#EC NOTEXT *********************************************************************************************************************************** * ACTION - SetRobotStatus *********************************************************************************************************************************** lo_action = model->create_action( 'SetRobotStatus' ). "#EC NOTEXT *Set return entity type lo_action->set_return_entity_type( 'Robot' ). "#EC NOTEXT *Set HTTP method GET or POST lo_action->set_http_method( 'POST' ). "#EC NOTEXT *Set the action for entity lo_action->set_action_for( 'Robot' ). "#EC NOTEXT * Set return type multiplicity lo_action->set_return_multiplicity( '1' ). "#EC NOTEXT *********************************************************************************************************************************** * Parameters *********************************************************************************************************************************** lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '010' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Rsrc' iv_abap_fieldname = 'RSRC' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '009' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 18 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Exccode' iv_abap_fieldname = 'EXCCODE' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '008' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_action->bind_input_structure( iv_structure_name = 'ZCL_ZEWM_ROBCO_MPC=>TS_SETROBOTSTATUS' ). "#EC NOTEXT *********************************************************************************************************************************** * ACTION - GetRobotWarehouseOrders *********************************************************************************************************************************** lo_action = model->create_action( 'GetRobotWarehouseOrders' ). "#EC NOTEXT *Set return entity type lo_action->set_return_entity_type( 'WarehouseOrder' ). "#EC NOTEXT *Set HTTP method GET or POST lo_action->set_http_method( 'GET' ). "#EC NOTEXT *Set the action for entity lo_action->set_action_for( 'WarehouseOrder' ). "#EC NOTEXT * Set return type multiplicity lo_action->set_return_multiplicity( 'N' ). "#EC NOTEXT *********************************************************************************************************************************** * Parameters *********************************************************************************************************************************** lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '026' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Rsrc' iv_abap_fieldname = 'RSRC' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '027' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 18 ). "#EC NOTEXT lo_action->bind_input_structure( iv_structure_name = 'ZCL_ZEWM_ROBCO_MPC=>TS_GETROBOTWAREHOUSEORDERS' ). "#EC NOTEXT *********************************************************************************************************************************** * ACTION - ConfirmWarehouseTaskFirstStep *********************************************************************************************************************************** lo_action = model->create_action( 'ConfirmWarehouseTaskFirstStep' ). "#EC NOTEXT *Set return complex type lo_action->set_return_complex_type( 'WarehouseTaskConfirmation' ). "#EC NOTEXT *Set HTTP method GET or POST lo_action->set_http_method( 'POST' ). "#EC NOTEXT *Set the action for entity lo_action->set_action_for( 'OpenWarehouseTask' ). "#EC NOTEXT * Set return type multiplicity lo_action->set_return_multiplicity( 'N' ). "#EC NOTEXT *********************************************************************************************************************************** * Parameters *********************************************************************************************************************************** lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Tanum' iv_abap_fieldname = 'TANUM' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '028' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 12 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '029' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Rsrc' iv_abap_fieldname = 'RSRC' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '030' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 18 ). "#EC NOTEXT lo_action->bind_input_structure( iv_structure_name = 'ZCL_ZEWM_ROBCO_MPC=>TS_CONFIRMWAREHOUSETASKFIRSTST' ). "#EC NOTEXT *********************************************************************************************************************************** * ACTION - GetNewRobotTypeWarehouseOrders *********************************************************************************************************************************** lo_action = model->create_action( 'GetNewRobotTypeWarehouseOrders' ). "#EC NOTEXT *Set return complex type lo_action->set_return_complex_type( 'NewWarehouseOrder' ). "#EC NOTEXT *Set HTTP method GET or POST lo_action->set_http_method( 'POST' ). "#EC NOTEXT *Set the action for entity lo_action->set_action_for( 'WarehouseOrder' ). "#EC NOTEXT * Set return type multiplicity lo_action->set_return_multiplicity( 'N' ). "#EC NOTEXT *********************************************************************************************************************************** * Parameters *********************************************************************************************************************************** lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'RsrcType' iv_abap_fieldname = 'RSRC_TYPE' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '025' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'RsrcGrp' iv_abap_fieldname = 'RSRC_GRP' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '031' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '022' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'NoWho' iv_abap_fieldname = 'NO_WHO' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '024' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_int16( ). lo_action->bind_input_structure( iv_structure_name = 'ZCL_ZEWM_ROBCO_MPC=>TS_GETNEWROBOTTYPEWAREHOUSEORD' ). "#EC NOTEXT *********************************************************************************************************************************** * ACTION - UnassignRobotFromWarehouseOrder *********************************************************************************************************************************** lo_action = model->create_action( 'UnassignRobotFromWarehouseOrder' ). "#EC NOTEXT *Set return entity type lo_action->set_return_entity_type( 'WarehouseOrder' ). "#EC NOTEXT *Set HTTP method GET or POST lo_action->set_http_method( 'POST' ). "#EC NOTEXT *Set the action for entity lo_action->set_action_for( 'WarehouseOrder' ). "#EC NOTEXT * Set return type multiplicity lo_action->set_return_multiplicity( '1' ). "#EC NOTEXT *********************************************************************************************************************************** * Parameters *********************************************************************************************************************************** lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '054' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Rsrc' iv_abap_fieldname = 'RSRC' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '055' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 18 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Who' iv_abap_fieldname = 'WHO' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '056' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 10 ). "#EC NOTEXT lo_action->bind_input_structure( iv_structure_name = 'ZCL_ZEWM_ROBCO_MPC=>TS_UNASSIGNROBOTFROMWAREHOUSEO' ). "#EC NOTEXT *********************************************************************************************************************************** * ACTION - SendFirstConfirmationError *********************************************************************************************************************************** lo_action = model->create_action( 'SendFirstConfirmationError' ). "#EC NOTEXT *Set return entity type lo_action->set_return_entity_type( 'WarehouseOrder' ). "#EC NOTEXT *Set HTTP method GET or POST lo_action->set_http_method( 'POST' ). "#EC NOTEXT *Set the action for entity lo_action->set_action_for( 'WarehouseOrder' ). "#EC NOTEXT * Set return type multiplicity lo_action->set_return_multiplicity( '1' ). "#EC NOTEXT *********************************************************************************************************************************** * Parameters *********************************************************************************************************************************** lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '040' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Rsrc' iv_abap_fieldname = 'RSRC' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '041' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 18 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Who' iv_abap_fieldname = 'WHO' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '042' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 10 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Tanum' iv_abap_fieldname = 'TANUM' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '046' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 12 ). "#EC NOTEXT lo_action->bind_input_structure( iv_structure_name = 'ZCL_ZEWM_ROBCO_MPC=>TS_SENDFIRSTCONFIRMATIONERROR' ). "#EC NOTEXT *********************************************************************************************************************************** * ACTION - ConfirmWarehouseTask *********************************************************************************************************************************** lo_action = model->create_action( 'ConfirmWarehouseTask' ). "#EC NOTEXT *Set return complex type lo_action->set_return_complex_type( 'WarehouseTaskConfirmation' ). "#EC NOTEXT *Set HTTP method GET or POST lo_action->set_http_method( 'POST' ). "#EC NOTEXT *Set the action for entity lo_action->set_action_for( 'OpenWarehouseTask' ). "#EC NOTEXT * Set return type multiplicity lo_action->set_return_multiplicity( 'N' ). "#EC NOTEXT *********************************************************************************************************************************** * Parameters *********************************************************************************************************************************** lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '013' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Tanum' iv_abap_fieldname = 'TANUM' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '012' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 12 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Nista' iv_abap_fieldname = 'NISTA' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '011' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_decimal( ). lo_parameter->set_precison( iv_precision = 14 ). "#EC NOTEXT lo_parameter->set_maxlength( iv_max_length = 14 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Altme' iv_abap_fieldname = 'ALTME' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '016' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 3 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Nlenr' iv_abap_fieldname = 'NLENR' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '015' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 20 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Parti' iv_abap_fieldname = 'PARTI' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '014' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_boolean( ). lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Nlpla' iv_abap_fieldname = 'NLPLA' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '032' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 18 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'ConfExc' iv_abap_fieldname = 'CONF_EXC' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '033' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Rsrc' iv_abap_fieldname = 'RSRC' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '048' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 18 ). "#EC NOTEXT lo_action->bind_input_structure( iv_structure_name = 'ZCL_ZEWM_ROBCO_MPC=>TS_CONFIRMWAREHOUSETASK' ). "#EC NOTEXT *********************************************************************************************************************************** * ACTION - AssignRobotToWarehouseOrder *********************************************************************************************************************************** lo_action = model->create_action( 'AssignRobotToWarehouseOrder' ). "#EC NOTEXT *Set return entity type lo_action->set_return_entity_type( 'WarehouseOrder' ). "#EC NOTEXT *Set HTTP method GET or POST lo_action->set_http_method( 'POST' ). "#EC NOTEXT *Set the action for entity lo_action->set_action_for( 'WarehouseOrder' ). "#EC NOTEXT * Set return type multiplicity lo_action->set_return_multiplicity( '1' ). "#EC NOTEXT *********************************************************************************************************************************** * Parameters *********************************************************************************************************************************** lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '019' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Rsrc' iv_abap_fieldname = 'RSRC' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '018' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 18 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Who' iv_abap_fieldname = 'WHO' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '017' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 10 ). "#EC NOTEXT lo_action->bind_input_structure( iv_structure_name = 'ZCL_ZEWM_ROBCO_MPC=>TS_ASSIGNROBOTTOWAREHOUSEORDER' ). "#EC NOTEXT *********************************************************************************************************************************** * ACTION - SendSecondConfirmationError *********************************************************************************************************************************** lo_action = model->create_action( 'SendSecondConfirmationError' ). "#EC NOTEXT *Set return entity type lo_action->set_return_entity_type( 'WarehouseOrder' ). "#EC NOTEXT *Set HTTP method GET or POST lo_action->set_http_method( 'POST' ). "#EC NOTEXT *Set the action for entity lo_action->set_action_for( 'WarehouseOrder' ). "#EC NOTEXT * Set return type multiplicity lo_action->set_return_multiplicity( '1' ). "#EC NOTEXT *********************************************************************************************************************************** * Parameters *********************************************************************************************************************************** lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '043' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Rsrc' iv_abap_fieldname = 'RSRC' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '044' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 18 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Who' iv_abap_fieldname = 'WHO' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '045' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 10 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Tanum' iv_abap_fieldname = 'TANUM' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '047' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 12 ). "#EC NOTEXT lo_action->bind_input_structure( iv_structure_name = 'ZCL_ZEWM_ROBCO_MPC=>TS_SENDSECONDCONFIRMATIONERROR' ). "#EC NOTEXT *********************************************************************************************************************************** * ACTION - UnsetWarehouseorderInProcessStatus *********************************************************************************************************************************** lo_action = model->create_action( 'UnsetWarehouseorderInProcessStatus' ). "#EC NOTEXT *Set return entity type lo_action->set_return_entity_type( 'WarehouseOrder' ). "#EC NOTEXT *Set HTTP method GET or POST lo_action->set_http_method( 'POST' ). "#EC NOTEXT *Set the action for entity lo_action->set_action_for( 'WarehouseOrder' ). "#EC NOTEXT * Set return type multiplicity lo_action->set_return_multiplicity( '1' ). "#EC NOTEXT *********************************************************************************************************************************** * Parameters *********************************************************************************************************************************** lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '058' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Who' iv_abap_fieldname = 'WHO' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '057' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 10 ). "#EC NOTEXT lo_action->bind_input_structure( iv_structure_name = 'ZCL_ZEWM_ROBCO_MPC=>TS_UNSETWAREHOUSEORDERINPROCES' ). "#EC NOTEXT *********************************************************************************************************************************** * ACTION - GetInProcessWarehouseOrders *********************************************************************************************************************************** lo_action = model->create_action( 'GetInProcessWarehouseOrders' ). "#EC NOTEXT *Set return entity type lo_action->set_return_entity_type( 'WarehouseOrder' ). "#EC NOTEXT *Set HTTP method GET or POST lo_action->set_http_method( 'GET' ). "#EC NOTEXT *Set the action for entity lo_action->set_action_for( 'WarehouseOrder' ). "#EC NOTEXT * Set return type multiplicity lo_action->set_return_multiplicity( 'N' ). "#EC NOTEXT *********************************************************************************************************************************** * Parameters *********************************************************************************************************************************** lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '061' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'RsrcGrp' iv_abap_fieldname = 'RSRC_GRP' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '060' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'RsrcType' iv_abap_fieldname = 'RSRC_TYPE' ). "#EC NOTEXT lo_parameter->set_label_from_text_element( iv_text_element_symbol = '059' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_parameter->/iwbep/if_mgw_odata_property~set_type_edm_string( ). lo_parameter->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_action->bind_input_structure( iv_structure_name = 'ZCL_ZEWM_ROBCO_MPC=>TS_GETINPROCESSWAREHOUSEORDERS' ). "#EC NOTEXT 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 = 'WarehouseNumberToDescription' "#EC NOTEXT iv_left_type = 'WarehouseNumber' "#EC NOTEXT iv_right_type = 'WarehouseDescription' "#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 - WarehouseNumberToDescription lo_ref_constraint = lo_association->create_ref_constraint( ). lo_ref_constraint->add_property( iv_principal_property = 'Lgnum' iv_dependent_property = 'Lgnum' ). "#EC NOTEXT lo_assoc_set = model->create_association_set( iv_association_set_name = 'WarehouseNumberToDescriptionSet' "#EC NOTEXT iv_left_entity_set_name = 'WarehouseNumberSet' "#EC NOTEXT iv_right_entity_set_name = 'WarehouseDescriptionSet' "#EC NOTEXT iv_association_name = 'WarehouseNumberToDescription' ). "#EC NOTEXT lo_association = model->create_association( iv_association_name = 'WarehouseNumberToWarehouseOrder' "#EC NOTEXT iv_left_type = 'WarehouseNumber' "#EC NOTEXT iv_right_type = 'WarehouseOrder' "#EC NOTEXT iv_right_card = 'M' "#EC NOTEXT iv_left_card = '1' "#EC NOTEXT iv_def_assoc_set = abap_false ). "#EC NOTEXT * Referential constraint for association - WarehouseNumberToWarehouseOrder lo_ref_constraint = lo_association->create_ref_constraint( ). lo_ref_constraint->add_property( iv_principal_property = 'Lgnum' iv_dependent_property = 'Lgnum' ). "#EC NOTEXT lo_assoc_set = model->create_association_set( iv_association_set_name = 'WarehouseNumberToWarehouseOrderSet' "#EC NOTEXT iv_left_entity_set_name = 'WarehouseNumberSet' "#EC NOTEXT iv_right_entity_set_name = 'WarehouseOrderSet' "#EC NOTEXT iv_association_name = 'WarehouseNumberToWarehouseOrder' ). "#EC NOTEXT lo_association = model->create_association( iv_association_name = 'WarehouseNumberToStorageBin' "#EC NOTEXT iv_left_type = 'WarehouseNumber' "#EC NOTEXT iv_right_type = 'StorageBin' "#EC NOTEXT iv_right_card = 'M' "#EC NOTEXT iv_left_card = '1' "#EC NOTEXT iv_def_assoc_set = abap_false ). "#EC NOTEXT * Referential constraint for association - WarehouseNumberToStorageBin lo_ref_constraint = lo_association->create_ref_constraint( ). lo_ref_constraint->add_property( iv_principal_property = 'Lgnum' iv_dependent_property = 'Lgnum' ). "#EC NOTEXT lo_assoc_set = model->create_association_set( iv_association_set_name = 'WarehouseNumberToStorageBinSet' "#EC NOTEXT iv_left_entity_set_name = 'WarehouseNumberSet' "#EC NOTEXT iv_right_entity_set_name = 'StorageBinSet' "#EC NOTEXT iv_association_name = 'WarehouseNumberToStorageBin' ). "#EC NOTEXT lo_association = model->create_association( iv_association_name = 'WarehouseNumberToRobot' "#EC NOTEXT iv_left_type = 'WarehouseNumber' "#EC NOTEXT iv_right_type = 'Robot' "#EC NOTEXT iv_right_card = 'M' "#EC NOTEXT iv_left_card = '1' "#EC NOTEXT iv_def_assoc_set = abap_false ). "#EC NOTEXT * Referential constraint for association - WarehouseNumberToRobot lo_ref_constraint = lo_association->create_ref_constraint( ). lo_ref_constraint->add_property( iv_principal_property = 'Lgnum' iv_dependent_property = 'Lgnum' ). "#EC NOTEXT lo_assoc_set = model->create_association_set( iv_association_set_name = 'WarehouseNumberToRobotSet' "#EC NOTEXT iv_left_entity_set_name = 'WarehouseNumberSet' "#EC NOTEXT iv_right_entity_set_name = 'RobotSet' "#EC NOTEXT iv_association_name = 'WarehouseNumberToRobot' ). "#EC NOTEXT lo_association = model->create_association( iv_association_name = 'WarehouseOrderToOpenWarehouseTask' "#EC NOTEXT iv_left_type = 'WarehouseOrder' "#EC NOTEXT iv_right_type = 'OpenWarehouseTask' "#EC NOTEXT iv_right_card = 'M' "#EC NOTEXT iv_left_card = '1' "#EC NOTEXT iv_def_assoc_set = abap_false ). "#EC NOTEXT * Referential constraint for association - WarehouseOrderToOpenWarehouseTask lo_ref_constraint = lo_association->create_ref_constraint( ). lo_ref_constraint->add_property( iv_principal_property = 'Who' iv_dependent_property = 'Who' ). "#EC NOTEXT lo_ref_constraint->add_property( iv_principal_property = 'Lgnum' iv_dependent_property = 'Lgnum' ). "#EC NOTEXT lo_assoc_set = model->create_association_set( iv_association_set_name = 'WarehouseOrderToOpenWarehouseTaskSet' "#EC NOTEXT iv_left_entity_set_name = 'WarehouseOrderSet' "#EC NOTEXT iv_right_entity_set_name = 'OpenWarehouseTaskSet' "#EC NOTEXT iv_association_name = 'WarehouseOrderToOpenWarehouseTask' ). "#EC NOTEXT lo_association = model->create_association( iv_association_name = 'RobotResourceTypeToRobot' "#EC NOTEXT iv_left_type = 'RobotResourceType' "#EC NOTEXT iv_right_type = 'Robot' "#EC NOTEXT iv_right_card = 'M' "#EC NOTEXT iv_left_card = '1' "#EC NOTEXT iv_def_assoc_set = abap_false ). "#EC NOTEXT * Referential constraint for association - RobotResourceTypeToRobot lo_ref_constraint = lo_association->create_ref_constraint( ). lo_ref_constraint->add_property( iv_principal_property = 'RsrcType' iv_dependent_property = 'RsrcType' ). "#EC NOTEXT lo_ref_constraint->add_property( iv_principal_property = 'Lgnum' iv_dependent_property = 'Lgnum' ). "#EC NOTEXT lo_assoc_set = model->create_association_set( iv_association_set_name = 'RobotResourceTypeToRobotSet' "#EC NOTEXT iv_left_entity_set_name = 'RobotResourceTypeSet' "#EC NOTEXT iv_right_entity_set_name = 'RobotSet' "#EC NOTEXT iv_association_name = 'RobotResourceTypeToRobot' ). "#EC NOTEXT lo_association = model->create_association( iv_association_name = 'RobotResourceTypeToDescription' "#EC NOTEXT iv_left_type = 'RobotResourceType' "#EC NOTEXT iv_right_type = 'ResourceTypeDescription' "#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 - RobotResourceTypeToDescription lo_ref_constraint = lo_association->create_ref_constraint( ). lo_ref_constraint->add_property( iv_principal_property = 'RsrcType' iv_dependent_property = 'RsrcType' ). "#EC NOTEXT lo_ref_constraint->add_property( iv_principal_property = 'Lgnum' iv_dependent_property = 'Lgnum' ). "#EC NOTEXT lo_assoc_set = model->create_association_set( iv_association_set_name = 'RobotResourceTypeToDescriptionSet' "#EC NOTEXT iv_left_entity_set_name = 'RobotResourceTypeSet' "#EC NOTEXT iv_right_entity_set_name = 'ResourceTypeDescriptionSet' "#EC NOTEXT iv_association_name = 'RobotResourceTypeToDescription' ). "#EC NOTEXT lo_association = model->create_association( iv_association_name = 'ResourceGroupToRobot' "#EC NOTEXT iv_left_type = 'ResourceGroup' "#EC NOTEXT iv_right_type = 'Robot' "#EC NOTEXT iv_right_card = 'M' "#EC NOTEXT iv_left_card = '1' "#EC NOTEXT iv_def_assoc_set = abap_false ). "#EC NOTEXT * Referential constraint for association - ResourceGroupToRobot lo_ref_constraint = lo_association->create_ref_constraint( ). lo_ref_constraint->add_property( iv_principal_property = 'RsrcGrp' iv_dependent_property = 'RsrcGrp' ). "#EC NOTEXT lo_ref_constraint->add_property( iv_principal_property = 'Lgnum' iv_dependent_property = 'Lgnum' ). "#EC NOTEXT lo_assoc_set = model->create_association_set( iv_association_set_name = 'ResourceGroupToRobotSet' "#EC NOTEXT iv_left_entity_set_name = 'ResourceGroupSet' "#EC NOTEXT iv_right_entity_set_name = 'RobotSet' "#EC NOTEXT iv_association_name = 'ResourceGroupToRobot' ). "#EC NOTEXT lo_association = model->create_association( iv_association_name = 'ResourceGroupToDescription' "#EC NOTEXT iv_left_type = 'ResourceGroup' "#EC NOTEXT iv_right_type = 'ResourceGroupDescription' "#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 - ResourceGroupToDescription lo_ref_constraint = lo_association->create_ref_constraint( ). lo_ref_constraint->add_property( iv_principal_property = 'RsrcGrp' iv_dependent_property = 'RsrcGrp' ). "#EC NOTEXT lo_ref_constraint->add_property( iv_principal_property = 'Lgnum' iv_dependent_property = 'Lgnum' ). "#EC NOTEXT lo_assoc_set = model->create_association_set( iv_association_set_name = 'ResourceGroupToDescriptionSet' "#EC NOTEXT iv_left_entity_set_name = 'ResourceGroupSet' "#EC NOTEXT iv_right_entity_set_name = 'ResourceGroupDescriptionSet' "#EC NOTEXT iv_association_name = 'ResourceGroupToDescription' ). "#EC NOTEXT lo_association = model->create_association( iv_association_name = 'WarehouseNumberToRobotResourceType' "#EC NOTEXT iv_left_type = 'WarehouseNumber' "#EC NOTEXT iv_right_type = 'RobotResourceType' "#EC NOTEXT iv_right_card = 'M' "#EC NOTEXT iv_left_card = '1' "#EC NOTEXT iv_def_assoc_set = abap_false ). "#EC NOTEXT * Referential constraint for association - WarehouseNumberToRobotResourceType lo_ref_constraint = lo_association->create_ref_constraint( ). lo_ref_constraint->add_property( iv_principal_property = 'Lgnum' iv_dependent_property = 'Lgnum' ). "#EC NOTEXT lo_assoc_set = model->create_association_set( iv_association_set_name = 'WarehouseNumberToRobotResourceTypeSet' "#EC NOTEXT iv_left_entity_set_name = 'WarehouseNumberSet' "#EC NOTEXT iv_right_entity_set_name = 'RobotResourceTypeSet' "#EC NOTEXT iv_association_name = 'WarehouseNumberToRobotResourceType' ). "#EC NOTEXT lo_association = model->create_association( iv_association_name = 'WarehouseNumberToResourceGroup' "#EC NOTEXT iv_left_type = 'WarehouseNumber' "#EC NOTEXT iv_right_type = 'ResourceGroup' "#EC NOTEXT iv_right_card = 'M' "#EC NOTEXT iv_left_card = '1' "#EC NOTEXT iv_def_assoc_set = abap_false ). "#EC NOTEXT * Referential constraint for association - WarehouseNumberToResourceGroup lo_ref_constraint = lo_association->create_ref_constraint( ). lo_ref_constraint->add_property( iv_principal_property = 'Lgnum' iv_dependent_property = 'Lgnum' ). "#EC NOTEXT lo_assoc_set = model->create_association_set( iv_association_set_name = 'WarehouseNumberToResourceGroupSet' "#EC NOTEXT iv_left_entity_set_name = 'WarehouseNumberSet' "#EC NOTEXT iv_right_entity_set_name = 'ResourceGroupSet' "#EC NOTEXT iv_association_name = 'WarehouseNumberToResourceGroup' ). "#EC NOTEXT *********************************************************************************************************************************** * NAVIGATION PROPERTIES *********************************************************************************************************************************** * Navigation Properties for entity - WarehouseOrder lo_entity_type = model->get_entity_type( iv_entity_name = 'WarehouseOrder' ). "#EC NOTEXT lo_nav_property = lo_entity_type->create_navigation_property( iv_property_name = 'OpenWarehouseTasks' "#EC NOTEXT iv_abap_fieldname = 'OPENWAREHOUSEORDER' "#EC NOTEXT iv_association_name = 'WarehouseOrderToOpenWarehouseTask' ). "#EC NOTEXT * Navigation Properties for entity - WarehouseNumber lo_entity_type = model->get_entity_type( iv_entity_name = 'WarehouseNumber' ). "#EC NOTEXT lo_nav_property = lo_entity_type->create_navigation_property( iv_property_name = 'WarehouseDescriptions' "#EC NOTEXT iv_abap_fieldname = 'DESCRIPTION' "#EC NOTEXT iv_association_name = 'WarehouseNumberToDescription' ). "#EC NOTEXT lo_nav_property = lo_entity_type->create_navigation_property( iv_property_name = 'WarehouseOrders' "#EC NOTEXT iv_abap_fieldname = 'ORDER' "#EC NOTEXT iv_association_name = 'WarehouseNumberToWarehouseOrder' ). "#EC NOTEXT lo_nav_property = lo_entity_type->create_navigation_property( iv_property_name = 'StorageBins' "#EC NOTEXT iv_abap_fieldname = 'STORAGEBIN' "#EC NOTEXT iv_association_name = 'WarehouseNumberToStorageBin' ). "#EC NOTEXT lo_nav_property = lo_entity_type->create_navigation_property( iv_property_name = 'Robots' "#EC NOTEXT iv_abap_fieldname = 'ROBOT' "#EC NOTEXT iv_association_name = 'WarehouseNumberToRobot' ). "#EC NOTEXT lo_nav_property = lo_entity_type->create_navigation_property( iv_property_name = 'RobotResourceTypes' "#EC NOTEXT iv_abap_fieldname = 'ROBOTRESOURCETYPE' "#EC NOTEXT iv_association_name = 'WarehouseNumberToRobotResourceType' ). "#EC NOTEXT lo_nav_property = lo_entity_type->create_navigation_property( iv_property_name = 'ResourceGroups' "#EC NOTEXT iv_abap_fieldname = 'RESOURCEGROUP' "#EC NOTEXT iv_association_name = 'WarehouseNumberToResourceGroup' ). "#EC NOTEXT * Navigation Properties for entity - RobotResourceType lo_entity_type = model->get_entity_type( iv_entity_name = 'RobotResourceType' ). "#EC NOTEXT lo_nav_property = lo_entity_type->create_navigation_property( iv_property_name = 'Robots' "#EC NOTEXT iv_abap_fieldname = 'ROBOT' "#EC NOTEXT iv_association_name = 'RobotResourceTypeToRobot' ). "#EC NOTEXT lo_nav_property = lo_entity_type->create_navigation_property( iv_property_name = 'ResourceTypeDescriptions' "#EC NOTEXT iv_abap_fieldname = 'RESOURCETYPEDESCRIPTION' "#EC NOTEXT iv_association_name = 'RobotResourceTypeToDescription' ). "#EC NOTEXT * Navigation Properties for entity - ResourceGroup lo_entity_type = model->get_entity_type( iv_entity_name = 'ResourceGroup' ). "#EC NOTEXT lo_nav_property = lo_entity_type->create_navigation_property( iv_property_name = 'Robots' "#EC NOTEXT iv_abap_fieldname = 'ROBOT' "#EC NOTEXT iv_association_name = 'ResourceGroupToRobot' ). "#EC NOTEXT lo_nav_property = lo_entity_type->create_navigation_property( iv_property_name = 'ResourceGroupDescriptions' "#EC NOTEXT iv_abap_fieldname = 'RESOURCEGROUPDESCRIPTION' "#EC NOTEXT iv_association_name = 'ResourceGroupToDescription' ). "#EC NOTEXT endmethod. method DEFINE_COMPLEXTYPES. *&---------------------------------------------------------------------* *& 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_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 *********************************************************************************************************************************** * COMPLEX TYPE - NewWarehouseOrder *********************************************************************************************************************************** lo_complex_type = model->create_complex_type( 'NewWarehouseOrder' ). "#EC NOTEXT *********************************************************************************************************************************** *Properties *********************************************************************************************************************************** lo_property = lo_complex_type->create_property( iv_property_name = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 4 ). 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 = lo_complex_type->create_property( iv_property_name = 'Who' iv_abap_fieldname = 'WHO' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 10 ). lo_property->set_conversion_exit( 'ALPH0' ). "#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 = lo_complex_type->create_property( iv_property_name = 'Status' iv_abap_fieldname = 'STATUS' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 1 ). 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 = lo_complex_type->create_property( iv_property_name = 'Areawho' iv_abap_fieldname = 'AREAWHO' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 4 ). 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 = lo_complex_type->create_property( iv_property_name = 'Lgtyp' iv_abap_fieldname = 'LGTYP' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 4 ). 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 = lo_complex_type->create_property( iv_property_name = 'Lgpla' iv_abap_fieldname = 'LGPLA' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 18 ). 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 = lo_complex_type->create_property( iv_property_name = 'Queue' iv_abap_fieldname = 'QUEUE' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 10 ). 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 = lo_complex_type->create_property( iv_property_name = 'Rsrc' iv_abap_fieldname = 'RSRC' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 18 ). 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 = lo_complex_type->create_property( iv_property_name = 'Lsd' iv_abap_fieldname = 'LSD' ). "#EC NOTEXT lo_property->set_type_edm_decimal( ). lo_property->set_maxlength( iv_max_length = 15 ). lo_property->set_conversion_exit( 'TSTWH' ). "#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 = lo_complex_type->create_property( iv_property_name = 'Topwhoid' iv_abap_fieldname = 'TOPWHOID' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 10 ). lo_property->set_conversion_exit( 'ALPH0' ). "#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 = lo_complex_type->create_property( iv_property_name = 'Refwhoid' iv_abap_fieldname = 'REFWHOID' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 10 ). lo_property->set_conversion_exit( 'ALPH0' ). "#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 = lo_complex_type->create_property( iv_property_name = 'Flgwho' iv_abap_fieldname = 'FLGWHO' ). "#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 = lo_complex_type->create_property( iv_property_name = 'Flgto' iv_abap_fieldname = 'FLGTO' ). "#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_complex_type->bind_structure( iv_structure_name = '/SCWM/WHO' iv_bind_conversions = 'X' ). "#EC NOTEXT *********************************************************************************************************************************** * COMPLEX TYPE - WarehouseTaskConfirmation *********************************************************************************************************************************** lo_complex_type = model->create_complex_type( 'WarehouseTaskConfirmation' ). "#EC NOTEXT *********************************************************************************************************************************** *Properties *********************************************************************************************************************************** lo_property = lo_complex_type->create_property( iv_property_name = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 4 ). 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 = lo_complex_type->create_property( iv_property_name = 'Tanum' iv_abap_fieldname = 'TANUM' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 12 ). lo_property->set_conversion_exit( 'ALPH0' ). "#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 = lo_complex_type->create_property( iv_property_name = 'Tostat' iv_abap_fieldname = 'TOSTAT' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 1 ). 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_complex_type->bind_structure( iv_structure_name = '/SCWM/LTAP' iv_bind_conversions = 'X' ). "#EC NOTEXT endmethod. method DEFINE_OPENWAREHOUSETASK. *&---------------------------------------------------------------------* *& 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 - OpenWarehouseTask *********************************************************************************************************************************** lo_entity_type = model->create_entity_type( iv_entity_type_name = 'OpenWarehouseTask' iv_def_entity_set = abap_false ). "#EC NOTEXT *********************************************************************************************************************************** *Properties *********************************************************************************************************************************** lo_property = lo_entity_type->create_property( iv_property_name = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_property->set_is_key( ). 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 = 'Tanum' iv_abap_fieldname = 'TANUM' ). "#EC NOTEXT lo_property->set_is_key( ). lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 12 ). "#EC NOTEXT lo_property->set_conversion_exit( 'ALPH0' ). "#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 = 'Procty' iv_abap_fieldname = 'PROCTY' ). "#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 = 'Flghuto' iv_abap_fieldname = 'FLGHUTO' ). "#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 = 'Tostat' iv_abap_fieldname = 'TOSTAT' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 1 ). "#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 = 'Priority' iv_abap_fieldname = 'PRIORITY' ). "#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 = 'Weight' iv_abap_fieldname = 'WEIGHT' ). "#EC NOTEXT lo_property->set_type_edm_decimal( ). lo_property->set_precison( iv_precision = 3 ). "#EC NOTEXT lo_property->set_maxlength( iv_max_length = 15 ). "#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 = 'UnitW' iv_abap_fieldname = 'UNIT_W' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 3 ). "#EC NOTEXT lo_property->set_conversion_exit( 'CUNIT' ). "#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 = 'Volum' iv_abap_fieldname = 'VOLUM' ). "#EC NOTEXT lo_property->set_type_edm_decimal( ). lo_property->set_precison( iv_precision = 3 ). "#EC NOTEXT lo_property->set_maxlength( iv_max_length = 15 ). "#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 = 'UnitV' iv_abap_fieldname = 'UNIT_V' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 3 ). "#EC NOTEXT lo_property->set_conversion_exit( 'CUNIT' ). "#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 = 'Vltyp' iv_abap_fieldname = 'VLTYP' ). "#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 = 'Vlber' iv_abap_fieldname = 'VLBER' ). "#EC NOTEXT lo_property->set_label_from_text_element( iv_text_element_symbol = '052' iv_text_element_container = gc_incl_name ). "#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 = 'Vlpla' iv_abap_fieldname = 'VLPLA' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 18 ). "#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 = 'Vlenr' iv_abap_fieldname = 'VLENR' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 20 ). "#EC NOTEXT lo_property->set_conversion_exit( 'HUID' ). "#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 = 'Nltyp' iv_abap_fieldname = 'NLTYP' ). "#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 = 'Nlber' iv_abap_fieldname = 'NLBER' ). "#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 = 'Nlpla' iv_abap_fieldname = 'NLPLA' ). "#EC NOTEXT lo_property->set_label_from_text_element( iv_text_element_symbol = '053' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 18 ). "#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 = 'Nlenr' iv_abap_fieldname = 'NLENR' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 20 ). "#EC NOTEXT lo_property->set_conversion_exit( 'HUID' ). "#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 = 'Who' iv_abap_fieldname = 'WHO' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 10 ). "#EC NOTEXT lo_property->set_conversion_exit( 'ALPH0' ). "#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 = '/SCWM/ORDIM_O' iv_bind_conversions = 'X' ). "#EC NOTEXT *********************************************************************************************************************************** * ENTITY SETS *********************************************************************************************************************************** lo_entity_set = lo_entity_type->create_entity_set( 'OpenWarehouseTaskSet' ). "#EC NOTEXT lo_entity_set->set_creatable( abap_false ). lo_entity_set->set_updatable( abap_false ). lo_entity_set->set_deletable( abap_false ). lo_entity_set->set_pageable( abap_false ). lo_entity_set->set_addressable( abap_true ). lo_entity_set->set_has_ftxt_search( abap_false ). lo_entity_set->set_subscribable( abap_false ). lo_entity_set->set_filter_required( abap_false ). endmethod. method DEFINE_RESOURCEGROUP. *&---------------------------------------------------------------------* *& 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 - ResourceGroup *********************************************************************************************************************************** lo_entity_type = model->create_entity_type( iv_entity_type_name = 'ResourceGroup' iv_def_entity_set = abap_false ). "#EC NOTEXT *********************************************************************************************************************************** *Properties *********************************************************************************************************************************** lo_property = lo_entity_type->create_property( iv_property_name = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_property->set_is_key( ). 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 = 'RsrcGrp' iv_abap_fieldname = 'RSRC_GRP' ). "#EC NOTEXT lo_property->set_is_key( ). 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 = 'ZewmErrorQueue' iv_abap_fieldname = 'ZEWM_ERROR_QUEUE' ). "#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_entity_type->bind_structure( iv_structure_name = '/SCWM/TRSRC_GRP' iv_bind_conversions = 'X' ). "#EC NOTEXT *********************************************************************************************************************************** * ENTITY SETS *********************************************************************************************************************************** lo_entity_set = lo_entity_type->create_entity_set( 'ResourceGroupSet' ). "#EC NOTEXT lo_entity_set->set_creatable( abap_false ). lo_entity_set->set_updatable( abap_false ). lo_entity_set->set_deletable( abap_false ). lo_entity_set->set_pageable( abap_false ). lo_entity_set->set_addressable( abap_true ). lo_entity_set->set_has_ftxt_search( abap_false ). lo_entity_set->set_subscribable( abap_false ). lo_entity_set->set_filter_required( abap_false ). endmethod. method DEFINE_RESOURCEGROUPDESCRIPTIO. *&---------------------------------------------------------------------* *& 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 - ResourceGroupDescription *********************************************************************************************************************************** lo_entity_type = model->create_entity_type( iv_entity_type_name = 'ResourceGroupDescription' iv_def_entity_set = abap_false ). "#EC NOTEXT *********************************************************************************************************************************** *Properties *********************************************************************************************************************************** lo_property = lo_entity_type->create_property( iv_property_name = 'Langu' iv_abap_fieldname = 'LANGU' ). "#EC NOTEXT lo_property->set_is_key( ). lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 2 ). "#EC NOTEXT lo_property->set_conversion_exit( 'ISOLA' ). "#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 = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_property->set_is_key( ). 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 = 'RsrcGrp' iv_abap_fieldname = 'RSRC_GRP' ). "#EC NOTEXT lo_property->set_is_key( ). 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 = 'Text' iv_abap_fieldname = 'TEXT' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 40 ). "#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 = '/SCWM/TRSRC_GRPT' iv_bind_conversions = 'X' ). "#EC NOTEXT *********************************************************************************************************************************** * ENTITY SETS *********************************************************************************************************************************** lo_entity_set = lo_entity_type->create_entity_set( 'ResourceGroupDescriptionSet' ). "#EC NOTEXT lo_entity_set->set_creatable( abap_false ). lo_entity_set->set_updatable( abap_false ). lo_entity_set->set_deletable( abap_false ). lo_entity_set->set_pageable( abap_false ). lo_entity_set->set_addressable( abap_true ). lo_entity_set->set_has_ftxt_search( abap_false ). lo_entity_set->set_subscribable( abap_false ). lo_entity_set->set_filter_required( abap_false ). endmethod. method DEFINE_RESOURCETYPEDESCRIPTION. *&---------------------------------------------------------------------* *& 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 - ResourceTypeDescription *********************************************************************************************************************************** lo_entity_type = model->create_entity_type( iv_entity_type_name = 'ResourceTypeDescription' iv_def_entity_set = abap_false ). "#EC NOTEXT *********************************************************************************************************************************** *Properties *********************************************************************************************************************************** lo_property = lo_entity_type->create_property( iv_property_name = 'Langu' iv_abap_fieldname = 'LANGU' ). "#EC NOTEXT lo_property->set_is_key( ). lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 2 ). "#EC NOTEXT lo_property->set_conversion_exit( 'ISOLA' ). "#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 = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_property->set_is_key( ). 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 = 'RsrcType' iv_abap_fieldname = 'RSRC_TYPE' ). "#EC NOTEXT lo_property->set_is_key( ). 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 = 'Text' iv_abap_fieldname = 'TEXT' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 40 ). "#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 = '/SCWM/TRSRC_TYPT' iv_bind_conversions = 'X' ). "#EC NOTEXT *********************************************************************************************************************************** * ENTITY SETS *********************************************************************************************************************************** lo_entity_set = lo_entity_type->create_entity_set( 'ResourceTypeDescriptionSet' ). "#EC NOTEXT lo_entity_set->set_creatable( abap_false ). lo_entity_set->set_updatable( abap_false ). lo_entity_set->set_deletable( abap_false ). lo_entity_set->set_pageable( abap_false ). lo_entity_set->set_addressable( abap_true ). lo_entity_set->set_has_ftxt_search( abap_false ). lo_entity_set->set_subscribable( abap_false ). lo_entity_set->set_filter_required( abap_false ). endmethod. method DEFINE_ROBOT. *&---------------------------------------------------------------------* *& 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 - Robot *********************************************************************************************************************************** lo_entity_type = model->create_entity_type( iv_entity_type_name = 'Robot' iv_def_entity_set = abap_false ). "#EC NOTEXT *********************************************************************************************************************************** *Properties *********************************************************************************************************************************** lo_property = lo_entity_type->create_property( iv_property_name = 'ActQueue' iv_abap_fieldname = 'ACT_QUEUE' ). "#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 = 'ActualBin' iv_abap_fieldname = 'ACTUAL_BIN' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 18 ). "#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 = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_property->set_is_key( ). lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_property->set_creatable( abap_true ). 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 = 'Rsrc' iv_abap_fieldname = 'RSRC' ). "#EC NOTEXT lo_property->set_is_key( ). lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 18 ). "#EC NOTEXT lo_property->set_creatable( abap_true ). 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 = 'RsrcType' iv_abap_fieldname = 'RSRC_TYPE' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_property->set_creatable( abap_true ). lo_property->set_updatable( abap_true ). 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 = 'RsrcGrp' iv_abap_fieldname = 'RSRC_GRP' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 4 ). "#EC NOTEXT lo_property->set_creatable( abap_true ). lo_property->set_updatable( abap_true ). 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 = 'ExccodeOverall' iv_abap_fieldname = 'EXCCODE_OVERALL' ). "#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_entity_type->bind_structure( iv_structure_name = '/SCWM/RSRC' iv_bind_conversions = 'X' ). "#EC NOTEXT *********************************************************************************************************************************** * ENTITY SETS *********************************************************************************************************************************** lo_entity_set = lo_entity_type->create_entity_set( 'RobotSet' ). "#EC NOTEXT lo_entity_set->set_creatable( abap_true ). lo_entity_set->set_updatable( abap_true ). lo_entity_set->set_deletable( abap_false ). lo_entity_set->set_pageable( abap_false ). lo_entity_set->set_addressable( abap_true ). lo_entity_set->set_has_ftxt_search( abap_false ). lo_entity_set->set_subscribable( abap_false ). lo_entity_set->set_filter_required( abap_false ). endmethod. method DEFINE_ROBOTRESOURCETYPE. *&---------------------------------------------------------------------* *& 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 - RobotResourceType *********************************************************************************************************************************** lo_entity_type = model->create_entity_type( iv_entity_type_name = 'RobotResourceType' iv_def_entity_set = abap_false ). "#EC NOTEXT *********************************************************************************************************************************** *Properties *********************************************************************************************************************************** lo_property = lo_entity_type->create_property( iv_property_name = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_property->set_is_key( ). 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 = 'RsrcType' iv_abap_fieldname = 'RSRC_TYPE' ). "#EC NOTEXT lo_property->set_is_key( ). 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 = 'RobotType' iv_abap_fieldname = 'ROBOT_TYPE' ). "#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 = 'ErrorQueue' iv_abap_fieldname = 'ERROR_QUEUE' ). "#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_entity_type->bind_structure( iv_structure_name = 'ZEWM_TRSRC_TYP' iv_bind_conversions = 'X' ). "#EC NOTEXT *********************************************************************************************************************************** * ENTITY SETS *********************************************************************************************************************************** lo_entity_set = lo_entity_type->create_entity_set( 'RobotResourceTypeSet' ). "#EC NOTEXT lo_entity_set->set_creatable( abap_false ). lo_entity_set->set_updatable( abap_false ). lo_entity_set->set_deletable( abap_false ). lo_entity_set->set_pageable( abap_false ). lo_entity_set->set_addressable( abap_true ). lo_entity_set->set_has_ftxt_search( abap_false ). lo_entity_set->set_subscribable( abap_false ). lo_entity_set->set_filter_required( abap_false ). endmethod. method DEFINE_STORAGEBIN. *&---------------------------------------------------------------------* *& 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 - StorageBin *********************************************************************************************************************************** lo_entity_type = model->create_entity_type( iv_entity_type_name = 'StorageBin' iv_def_entity_set = abap_false ). "#EC NOTEXT *********************************************************************************************************************************** *Properties *********************************************************************************************************************************** lo_property = lo_entity_type->create_property( iv_property_name = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_property->set_is_key( ). 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 = 'Lgpla' iv_abap_fieldname = 'LGPLA' ). "#EC NOTEXT lo_property->set_is_key( ). lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 18 ). "#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 = 'Lgtyp' iv_abap_fieldname = 'LGTYP' ). "#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 = 'Lgber' iv_abap_fieldname = 'LGBER' ). "#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 = 'Lptyp' iv_abap_fieldname = 'LPTYP' ). "#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 = 'Aisle' iv_abap_fieldname = 'AISLE' ). "#EC NOTEXT lo_property->set_label_from_text_element( iv_text_element_symbol = '049' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 18 ). "#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 = 'Stack' iv_abap_fieldname = 'STACK' ). "#EC NOTEXT lo_property->set_label_from_text_element( iv_text_element_symbol = '050' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 18 ). "#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 = 'LvlV' iv_abap_fieldname = 'LVL_V' ). "#EC NOTEXT lo_property->set_label_from_text_element( iv_text_element_symbol = '051' iv_text_element_container = gc_incl_name ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 18 ). "#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 = 'XCord' iv_abap_fieldname = 'X_CORD' ). "#EC NOTEXT lo_property->set_type_edm_decimal( ). lo_property->set_precison( iv_precision = 3 ). "#EC NOTEXT 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 = 'YCord' iv_abap_fieldname = 'Y_CORD' ). "#EC NOTEXT lo_property->set_type_edm_decimal( ). lo_property->set_precison( iv_precision = 3 ). "#EC NOTEXT 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 = 'ZCord' iv_abap_fieldname = 'Z_CORD' ). "#EC NOTEXT lo_property->set_type_edm_decimal( ). lo_property->set_precison( iv_precision = 3 ). "#EC NOTEXT 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_entity_type->bind_structure( iv_structure_name = '/SCWM/LAGP' iv_bind_conversions = 'X' ). "#EC NOTEXT *********************************************************************************************************************************** * ENTITY SETS *********************************************************************************************************************************** lo_entity_set = lo_entity_type->create_entity_set( 'StorageBinSet' ). "#EC NOTEXT lo_entity_set->set_creatable( abap_false ). lo_entity_set->set_updatable( abap_false ). lo_entity_set->set_deletable( abap_false ). lo_entity_set->set_pageable( abap_false ). lo_entity_set->set_addressable( abap_true ). lo_entity_set->set_has_ftxt_search( abap_false ). lo_entity_set->set_subscribable( abap_false ). lo_entity_set->set_filter_required( abap_false ). endmethod. method DEFINE_WAREHOUSEDESCRIPTION. *&---------------------------------------------------------------------* *& 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 - WarehouseDescription *********************************************************************************************************************************** lo_entity_type = model->create_entity_type( iv_entity_type_name = 'WarehouseDescription' iv_def_entity_set = abap_false ). "#EC NOTEXT *********************************************************************************************************************************** *Properties *********************************************************************************************************************************** lo_property = lo_entity_type->create_property( iv_property_name = 'Spras' iv_abap_fieldname = 'SPRAS' ). "#EC NOTEXT lo_property->set_is_key( ). lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 2 ). "#EC NOTEXT lo_property->set_conversion_exit( 'ISOLA' ). "#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 = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_property->set_is_key( ). 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 = 'Lnumt' iv_abap_fieldname = 'LNUMT' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 40 ). "#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 = '/SCWM/T300T' iv_bind_conversions = 'X' ). "#EC NOTEXT *********************************************************************************************************************************** * ENTITY SETS *********************************************************************************************************************************** lo_entity_set = lo_entity_type->create_entity_set( 'WarehouseDescriptionSet' ). "#EC NOTEXT lo_entity_set->set_creatable( abap_false ). lo_entity_set->set_updatable( abap_false ). lo_entity_set->set_deletable( abap_false ). lo_entity_set->set_pageable( abap_false ). lo_entity_set->set_addressable( abap_true ). lo_entity_set->set_has_ftxt_search( abap_false ). lo_entity_set->set_subscribable( abap_false ). lo_entity_set->set_filter_required( abap_false ). endmethod. method DEFINE_WAREHOUSENUMBER. *&---------------------------------------------------------------------* *& 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 - WarehouseNumber *********************************************************************************************************************************** lo_entity_type = model->create_entity_type( iv_entity_type_name = 'WarehouseNumber' iv_def_entity_set = abap_false ). "#EC NOTEXT *********************************************************************************************************************************** *Properties *********************************************************************************************************************************** lo_property = lo_entity_type->create_property( iv_property_name = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_property->set_is_key( ). 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_entity_type->bind_structure( iv_structure_name = '/SCWM/T300' iv_bind_conversions = 'X' ). "#EC NOTEXT *********************************************************************************************************************************** * ENTITY SETS *********************************************************************************************************************************** lo_entity_set = lo_entity_type->create_entity_set( 'WarehouseNumberSet' ). "#EC NOTEXT lo_entity_set->set_creatable( abap_false ). lo_entity_set->set_updatable( abap_false ). lo_entity_set->set_deletable( abap_false ). lo_entity_set->set_pageable( abap_false ). lo_entity_set->set_addressable( abap_true ). lo_entity_set->set_has_ftxt_search( abap_false ). lo_entity_set->set_subscribable( abap_false ). lo_entity_set->set_filter_required( abap_false ). endmethod. method DEFINE_WAREHOUSEORDER. *&---------------------------------------------------------------------* *& 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 - WarehouseOrder *********************************************************************************************************************************** lo_entity_type = model->create_entity_type( iv_entity_type_name = 'WarehouseOrder' iv_def_entity_set = abap_false ). "#EC NOTEXT *********************************************************************************************************************************** *Properties *********************************************************************************************************************************** lo_property = lo_entity_type->create_property( iv_property_name = 'Lgnum' iv_abap_fieldname = 'LGNUM' ). "#EC NOTEXT lo_property->set_is_key( ). 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_true ). 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 = 'Who' iv_abap_fieldname = 'WHO' ). "#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( 'ALPH0' ). "#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 = 'Status' iv_abap_fieldname = 'STATUS' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 1 ). "#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 = 'Areawho' iv_abap_fieldname = 'AREAWHO' ). "#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 = 'Lgtyp' iv_abap_fieldname = 'LGTYP' ). "#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 = 'Lgpla' iv_abap_fieldname = 'LGPLA' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 18 ). "#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 = 'Queue' iv_abap_fieldname = 'QUEUE' ). "#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 = 'Rsrc' iv_abap_fieldname = 'RSRC' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 18 ). "#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 = 'Lsd' iv_abap_fieldname = 'LSD' ). "#EC NOTEXT lo_property->set_type_edm_decimal( ). lo_property->set_maxlength( iv_max_length = 15 ). "#EC NOTEXT lo_property->set_conversion_exit( 'TSTWH' ). "#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 = 'Topwhoid' iv_abap_fieldname = 'TOPWHOID' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 10 ). "#EC NOTEXT lo_property->set_conversion_exit( 'ALPH0' ). "#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_true ). 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 = 'Refwhoid' iv_abap_fieldname = 'REFWHOID' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 10 ). "#EC NOTEXT lo_property->set_conversion_exit( 'ALPH0' ). "#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 = 'Flgwho' iv_abap_fieldname = 'FLGWHO' ). "#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 = 'Flgto' iv_abap_fieldname = 'FLGTO' ). "#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_entity_type->bind_structure( iv_structure_name = '/SCWM/WHO' iv_bind_conversions = 'X' ). "#EC NOTEXT *********************************************************************************************************************************** * ENTITY SETS *********************************************************************************************************************************** lo_entity_set = lo_entity_type->create_entity_set( 'WarehouseOrderSet' ). "#EC NOTEXT lo_entity_set->set_creatable( abap_false ). lo_entity_set->set_updatable( abap_false ). lo_entity_set->set_deletable( abap_false ). lo_entity_set->set_pageable( abap_false ). lo_entity_set->set_addressable( abap_true ). lo_entity_set->set_has_ftxt_search( abap_false ). 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 '20200409081049'. "#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. clear ls_text_element. ls_text_element-artifact_name = 'Aisle'. "#EC NOTEXT ls_text_element-artifact_type = 'PROP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'StorageBin'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'ETYP'. "#EC NOTEXT ls_text_element-text_symbol = '049'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Stack'. "#EC NOTEXT ls_text_element-artifact_type = 'PROP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'StorageBin'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'ETYP'. "#EC NOTEXT ls_text_element-text_symbol = '050'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'LvlV'. "#EC NOTEXT ls_text_element-artifact_type = 'PROP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'StorageBin'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'ETYP'. "#EC NOTEXT ls_text_element-text_symbol = '051'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Vlber'. "#EC NOTEXT ls_text_element-artifact_type = 'PROP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'OpenWarehouseTask'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'ETYP'. "#EC NOTEXT ls_text_element-text_symbol = '052'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Nlpla'. "#EC NOTEXT ls_text_element-artifact_type = 'PROP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'OpenWarehouseTask'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'ETYP'. "#EC NOTEXT ls_text_element-text_symbol = '053'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Lgnum'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'GetNewRobotWarehouseOrder'. "#EC NOTEXT ls_text_element-text_symbol = '020'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Rsrc'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'GetNewRobotWarehouseOrder'. "#EC NOTEXT ls_text_element-text_symbol = '021'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Lgnum'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'SetRobotStatus'. "#EC NOTEXT ls_text_element-text_symbol = '010'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Rsrc'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'SetRobotStatus'. "#EC NOTEXT ls_text_element-text_symbol = '009'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Exccode'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'SetRobotStatus'. "#EC NOTEXT ls_text_element-text_symbol = '008'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Lgnum'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'GetRobotWarehouseOrders'. "#EC NOTEXT ls_text_element-text_symbol = '026'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Rsrc'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'GetRobotWarehouseOrders'. "#EC NOTEXT ls_text_element-text_symbol = '027'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Tanum'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'ConfirmWarehouseTaskFirstStep'. "#EC NOTEXT ls_text_element-text_symbol = '028'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Lgnum'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'ConfirmWarehouseTaskFirstStep'. "#EC NOTEXT ls_text_element-text_symbol = '029'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Rsrc'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'ConfirmWarehouseTaskFirstStep'. "#EC NOTEXT ls_text_element-text_symbol = '030'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'RsrcType'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'GetNewRobotTypeWarehouseOrders'. "#EC NOTEXT ls_text_element-text_symbol = '025'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'RsrcGrp'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'GetNewRobotTypeWarehouseOrders'. "#EC NOTEXT ls_text_element-text_symbol = '031'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Lgnum'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'GetNewRobotTypeWarehouseOrders'. "#EC NOTEXT ls_text_element-text_symbol = '022'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'NoWho'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'GetNewRobotTypeWarehouseOrders'. "#EC NOTEXT ls_text_element-text_symbol = '024'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Lgnum'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'UnassignRobotFromWarehouseOrder'. "#EC NOTEXT ls_text_element-text_symbol = '054'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Rsrc'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'UnassignRobotFromWarehouseOrder'. "#EC NOTEXT ls_text_element-text_symbol = '055'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Who'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'UnassignRobotFromWarehouseOrder'. "#EC NOTEXT ls_text_element-text_symbol = '056'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Lgnum'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'SendFirstConfirmationError'. "#EC NOTEXT ls_text_element-text_symbol = '040'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Rsrc'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'SendFirstConfirmationError'. "#EC NOTEXT ls_text_element-text_symbol = '041'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Who'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'SendFirstConfirmationError'. "#EC NOTEXT ls_text_element-text_symbol = '042'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Tanum'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'SendFirstConfirmationError'. "#EC NOTEXT ls_text_element-text_symbol = '046'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Lgnum'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'ConfirmWarehouseTask'. "#EC NOTEXT ls_text_element-text_symbol = '013'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Tanum'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'ConfirmWarehouseTask'. "#EC NOTEXT ls_text_element-text_symbol = '012'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Nista'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'ConfirmWarehouseTask'. "#EC NOTEXT ls_text_element-text_symbol = '011'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Altme'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'ConfirmWarehouseTask'. "#EC NOTEXT ls_text_element-text_symbol = '016'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Nlenr'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'ConfirmWarehouseTask'. "#EC NOTEXT ls_text_element-text_symbol = '015'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Parti'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'ConfirmWarehouseTask'. "#EC NOTEXT ls_text_element-text_symbol = '014'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Nlpla'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'ConfirmWarehouseTask'. "#EC NOTEXT ls_text_element-text_symbol = '032'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'ConfExc'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'ConfirmWarehouseTask'. "#EC NOTEXT ls_text_element-text_symbol = '033'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Rsrc'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'ConfirmWarehouseTask'. "#EC NOTEXT ls_text_element-text_symbol = '048'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Lgnum'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'AssignRobotToWarehouseOrder'. "#EC NOTEXT ls_text_element-text_symbol = '019'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Rsrc'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'AssignRobotToWarehouseOrder'. "#EC NOTEXT ls_text_element-text_symbol = '018'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Who'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'AssignRobotToWarehouseOrder'. "#EC NOTEXT ls_text_element-text_symbol = '017'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Lgnum'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'SendSecondConfirmationError'. "#EC NOTEXT ls_text_element-text_symbol = '043'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Rsrc'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'SendSecondConfirmationError'. "#EC NOTEXT ls_text_element-text_symbol = '044'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Who'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'SendSecondConfirmationError'. "#EC NOTEXT ls_text_element-text_symbol = '045'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Tanum'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'SendSecondConfirmationError'. "#EC NOTEXT ls_text_element-text_symbol = '047'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Lgnum'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'UnsetWarehouseorderInProcessStatus'. "#EC NOTEXT ls_text_element-text_symbol = '058'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Who'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'UnsetWarehouseorderInProcessStatus'. "#EC NOTEXT ls_text_element-text_symbol = '057'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'Lgnum'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'GetInProcessWarehouseOrders'. "#EC NOTEXT ls_text_element-text_symbol = '061'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'RsrcGrp'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'GetInProcessWarehouseOrders'. "#EC NOTEXT ls_text_element-text_symbol = '060'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. clear ls_text_element. ls_text_element-artifact_name = 'RsrcType'. "#EC NOTEXT ls_text_element-artifact_type = 'FIPA'. "#EC NOTEXT ls_text_element-parent_artifact_type = 'FIMP'. "#EC NOTEXT ls_text_element-parent_artifact_name = 'GetInProcessWarehouseOrders'. "#EC NOTEXT ls_text_element-text_symbol = '059'. "#EC NOTEXT APPEND ls_text_element TO rt_text_elements. endmethod. ENDCLASS.
[ 4871, 1168, 5097, 62, 57, 6217, 44, 62, 13252, 2749, 46, 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, 220, 12682, 33746, 46685, 5188, 12532, 1137, 2099, 1220, 6173, 22117, 14, 41856, 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, 220, 11837, 42413, 20958, 2767, 1921, 42, 10943, 39776, 44, 6234, 2099, 1220, 6173, 22117, 14, 27734, 2969, 764, 198, 220, 3858, 25, 198, 220, 220, 220, 2221, 286, 26136, 62, 18851, 13965, 49, 9864, 2394, 33746, 46685, 5188, 12532, 1137, 11, 198, 220, 220, 220, 220, 220, 220, 220, 406, 16630, 5883, 2099, 327, 4129, 604, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19340, 7397, 2099, 327, 4129, 1248, 11, 198, 220, 220, 220, 886, 286, 26136, 62, 18851, 13965, 49, 9864, 2394, 33746, 46685, 5188, 12532, 1137, 764, 198, 220, 3858, 25, 198, 220, 220, 220, 2221, 286, 26136, 62, 28480, 49, 9864, 2394, 35744, 2937, 11, 198, 220, 220, 220, 220, 220, 220, 220, 406, 16630, 5883, 2099, 327, 4129, 604, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19340, 7397, 2099, 327, 4129, 1248, 11, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 4093, 16820, 2099, 327, 4129, 604, 11, 198, 220, 220, 220, 886, 286, 26136, 62, 28480, 49, 9864, 2394, 35744, 2937, 764, 198, 220, 3858, 25, 198, 220, 220, 220, 2221, 286, 26136, 62, 18851, 49, 9864, 2394, 33746, 46685, 5188, 12532, 4877, 11, 198, 220, 220, 220, 220, 220, 220, 220, 406, 16630, 5883, 2099, 327, 4129, 604, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19340, 7397, 2099, 327, 4129, 1248, 11, 198, 220, 220, 220, 886, 286, 26136, 62, 18851, 49, 9864, 2394, 33746, 46685, 5188, 12532, 4877, 764, 198, 220, 3858, 25, 198, 220, 220, 220, 2221, 286, 26136, 62, 10943, 39776, 14326, 12203, 39, 20958, 2767, 1921, 42, 39776, 2257, 2257, 11, 198, 220, 220, 220, 220, 220, 220, 220, 309, 1565, 5883, 2099, 327, 4129, 1105, 11, 198, 220, 220, 220, 220, 220, 220, 220, 406, 16630, 5883, 2099, 327, 4129, 604, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19340, 7397, 2099, 327, 4129, 1248, 11, 198, 220, 220, 220, 886, 286, 26136, 62, 10943, 39776, 14326, 12203, 39, 20958, 2767, 1921, 42, 39776, 2257, 2257, 764, 198, 220, 3858, 25, 198, 220, 220, 220, 2221, 286, 26136, 62, 18851, 13965, 49, 9864, 2394, 9936, 47, 6217, 12203, 46685, 5188, 12532, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19340, 7397, 62, 25216, 2099, 327, 4129, 604, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19340, 7397, 62, 10761, 47, 2099, 327, 4129, 604, 11, 198, 220, 220, 220, 220, 220, 220, 220, 406, 16630, 5883, 2099, 327, 4129, 604, 11, 198, 220, 220, 220, 220, 220, 220, 220, 8005, 62, 41856, 2099, 1220, 40, 45607, 8905, 14, 16811, 62, 3727, 13563, 62, 9936, 62, 12394, 17, 11, 198, 220, 220, 220, 886, 286, 26136, 62, 18851, 13965, 49, 9864, 2394, 9936, 47, 6217, 12203, 46685, 5188, 12532, 764, 198, 220, 3858, 25, 198, 220, 220, 220, 2221, 286, 26136, 62, 4944, 10705, 16284, 49, 9864, 2394, 10913, 2662, 33746, 39, 20958, 4720, 11, 198, 220, 220, 220, 220, 220, 220, 220, 406, 16630, 5883, 2099, 327, 4129, 604, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19340, 7397, 2099, 327, 4129, 1248, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19494, 2099, 327, 4129, 838, 11, 198, 220, 220, 220, 886, 286, 26136, 62, 4944, 10705, 16284, 49, 9864, 2394, 10913, 2662, 33746, 39, 20958, 4720, 764, 198, 220, 3858, 25, 198, 220, 220, 220, 2221, 286, 26136, 62, 50, 1677, 8068, 4663, 2257, 10943, 39776, 44, 6234, 24908, 11, 198, 220, 220, 220, 220, 220, 220, 220, 406, 16630, 5883, 2099, 327, 4129, 604, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19340, 7397, 2099, 327, 4129, 1248, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19494, 2099, 327, 4129, 838, 11, 198, 220, 220, 220, 220, 220, 220, 220, 309, 1565, 5883, 2099, 327, 4129, 1105, 11, 198, 220, 220, 220, 886, 286, 26136, 62, 50, 1677, 8068, 4663, 2257, 10943, 39776, 44, 6234, 24908, 764, 198, 220, 3858, 25, 198, 220, 220, 220, 2221, 286, 26136, 62, 10943, 39776, 14326, 12203, 39, 20958, 2767, 1921, 42, 11, 198, 220, 220, 220, 220, 220, 220, 220, 406, 16630, 5883, 2099, 327, 4129, 604, 11, 198, 220, 220, 220, 220, 220, 220, 220, 309, 1565, 5883, 2099, 327, 4129, 1105, 11, 198, 220, 220, 220, 220, 220, 220, 220, 399, 1797, 5603, 2099, 350, 4129, 1467, 875, 320, 874, 1478, 11, 198, 220, 220, 220, 220, 220, 220, 220, 8355, 51, 11682, 2099, 327, 4129, 513, 11, 198, 220, 220, 220, 220, 220, 220, 220, 22879, 1677, 49, 2099, 327, 4129, 1160, 11, 198, 220, 220, 220, 220, 220, 220, 220, 16652, 40, 2099, 9977, 4760, 11, 198, 220, 220, 220, 220, 220, 220, 220, 22879, 45710 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
INTERFACE zif_abappgp_message PUBLIC. CLASS-METHODS from_armor IMPORTING !io_armor TYPE REF TO zcl_abappgp_armor RETURNING VALUE(ri_message) TYPE REF TO zif_abappgp_message . METHODS dump RETURNING VALUE(rv_dump) TYPE string . METHODS to_armor RETURNING VALUE(ro_armor) TYPE REF TO zcl_abappgp_armor . ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 397, 1324, 31197, 62, 20500, 44731, 13, 628, 198, 220, 42715, 12, 49273, 50, 422, 62, 40456, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5145, 952, 62, 40456, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 1324, 31197, 62, 40456, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 20500, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 1324, 31197, 62, 20500, 764, 198, 220, 337, 36252, 50, 10285, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 39455, 8, 41876, 4731, 764, 198, 220, 337, 36252, 50, 284, 62, 40456, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 40456, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 1324, 31197, 62, 40456, 764, 198, 10619, 41358, 49836, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class lcx_t100 definition inheriting from cx_static_check. public section. interfaces if_t100_message. methods constructor importing previous like previous optional id type symsgid no type symsgno msgv1 type symsgv optional msgv2 type symsgv optional msgv3 type symsgv optional msgv4 type symsgv optional. data msgv1 type symsgv. data msgv2 type symsgv. data msgv3 type symsgv. data msgv4 type symsgv. endclass. class lcx_t100 implementation. method constructor. super->constructor( previous = previous ). me->msgv1 = msgv1. me->msgv2 = msgv2. me->msgv3 = msgv3. me->msgv4 = msgv4. if_t100_message~t100key-msgid = id. if_t100_message~t100key-msgno = no. if_t100_message~t100key-attr1 = 'MSGV1'. if_t100_message~t100key-attr2 = 'MSGV2'. if_t100_message~t100key-attr3 = 'MSGV3'. if_t100_message~t100key-attr4 = 'MSGV4'. endmethod. endclass.
[ 4871, 300, 66, 87, 62, 83, 3064, 6770, 10639, 1780, 422, 43213, 62, 12708, 62, 9122, 13, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 20314, 611, 62, 83, 3064, 62, 20500, 13, 198, 220, 220, 220, 5050, 23772, 33332, 2180, 588, 2180, 11902, 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, 4686, 220, 220, 220, 220, 220, 220, 2099, 827, 19662, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 645, 220, 220, 220, 220, 220, 220, 2099, 827, 19662, 3919, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31456, 85, 16, 220, 220, 220, 2099, 827, 19662, 85, 11902, 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, 31456, 85, 17, 220, 220, 220, 2099, 827, 19662, 85, 11902, 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, 31456, 85, 18, 220, 220, 220, 2099, 827, 19662, 85, 11902, 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, 31456, 85, 19, 220, 220, 220, 2099, 827, 19662, 85, 11902, 13, 198, 220, 220, 220, 1366, 31456, 85, 16, 2099, 827, 19662, 85, 13, 198, 220, 220, 220, 1366, 31456, 85, 17, 2099, 827, 19662, 85, 13, 198, 220, 220, 220, 1366, 31456, 85, 18, 2099, 827, 19662, 85, 13, 198, 220, 220, 220, 1366, 31456, 85, 19, 2099, 827, 19662, 85, 13, 198, 437, 4871, 13, 198, 198, 4871, 300, 66, 87, 62, 83, 3064, 7822, 13, 198, 220, 2446, 23772, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 2180, 796, 2180, 6739, 198, 220, 220, 220, 502, 3784, 19662, 85, 16, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 31456, 85, 16, 13, 198, 220, 220, 220, 502, 3784, 19662, 85, 17, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 31456, 85, 17, 13, 198, 220, 220, 220, 502, 3784, 19662, 85, 18, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 31456, 85, 18, 13, 198, 220, 220, 220, 502, 3784, 19662, 85, 19, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 31456, 85, 19, 13, 198, 220, 220, 220, 611, 62, 83, 3064, 62, 20500, 93, 83, 3064, 2539, 12, 19662, 312, 796, 4686, 13, 198, 220, 220, 220, 611, 62, 83, 3064, 62, 20500, 93, 83, 3064, 2539, 12, 19662, 3919, 796, 645, 13, 198, 220, 220, 220, 611, 62, 83, 3064, 62, 20500, 93, 83, 3064, 2539, 12, 35226, 16, 796, 705, 5653, 37094, 16, 4458, 198, 220, 220, 220, 611, 62, 83, 3064, 62, 20500, 93, 83, 3064, 2539, 12, 35226, 17, 796, 705, 5653, 37094, 17, 4458, 198, 220, 220, 220, 611, 62, 83, 3064, 62, 20500, 93, 83, 3064, 2539, 12, 35226, 18, 796, 705, 5653, 37094, 18, 4458, 198, 220, 220, 220, 611, 62, 83, 3064, 62, 20500, 93, 83, 3064, 2539, 12, 35226, 19, 796, 705, 5653, 37094, 19, 4458, 198, 220, 886, 24396, 13, 198, 437, 4871, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_abak_data DEFINITION PUBLIC ABSTRACT CREATE PUBLIC GLOBAL FRIENDS zcl_abak_factory . PUBLIC SECTION. INTERFACES zif_abak_data . PROTECTED SECTION. METHODS load_data_aux ABSTRACT EXPORTING !et_k TYPE zabak_k_t !e_name TYPE string RAISING zcx_abak . METHODS invalidate_aux ABSTRACT RAISING zcx_abak . PRIVATE SECTION. CONSTANTS: BEGIN OF gc_option, equal TYPE bapioption VALUE 'EQ', not_equal TYPE bapioption VALUE 'NE', between TYPE bapioption VALUE 'BT', not_between TYPE bapioption VALUE 'NB', contains_pattern TYPE bapioption VALUE 'CP', does_not_contain_pattern TYPE bapioption VALUE 'NP', less_than TYPE bapioption VALUE 'LT', less_or_equal TYPE bapioption VALUE 'LE', greater_than TYPE bapioption VALUE 'GT', greater_or_equal TYPE bapioption VALUE 'GE', END OF gc_option . DATA gt_k TYPE zabak_k_t . DATA g_name TYPE string . METHODS check_data IMPORTING !it_k TYPE zabak_k_t RAISING zcx_abak . METHODS check_line IMPORTING !is_k TYPE zabak_k RAISING zcx_abak . METHODS load_data EXPORTING !et_k TYPE zabak_k_t !e_name TYPE string RAISING zcx_abak . ENDCLASS. CLASS ZCL_ABAK_DATA IMPLEMENTATION. METHOD check_data. FIELD-SYMBOLS: <s_k> LIKE LINE OF it_k. LOOP AT it_k ASSIGNING <s_k>. check_line( <s_k> ). ENDLOOP. ENDMETHOD. METHOD check_line. FIELD-SYMBOLS: <s_kv> LIKE LINE OF is_k-t_kv. IF is_k-fieldname IS INITIAL OR is_k-scope IS INITIAL. RAISE EXCEPTION TYPE zcx_abak EXPORTING textid = zcx_abak=>invalid_parameters. ENDIF. LOOP AT is_k-t_kv ASSIGNING <s_kv>. * Validate sign IF <s_kv>-sign CN 'IE'. RAISE EXCEPTION TYPE zcx_abak_data EXPORTING textid = zcx_abak_data=>invalid_sign sign = <s_kv>-sign. ENDIF. CASE <s_kv>-option. WHEN gc_option-equal OR gc_option-not_equal OR gc_option-contains_pattern OR gc_option-does_not_contain_pattern OR gc_option-greater_or_equal OR gc_option-greater_than OR gc_option-less_or_equal OR gc_option-less_than. * For single value operators HIGH must be empty IF <s_kv>-high IS NOT INITIAL. RAISE EXCEPTION TYPE zcx_abak_data EXPORTING textid = zcx_abak_data=>high_must_be_empty option = <s_kv>-option. ENDIF. WHEN gc_option-between OR gc_option-not_between. * Two value operator must have high defined IF <s_kv>-low IS INITIAL OR <s_kv>-high IS INITIAL. RAISE EXCEPTION TYPE zcx_abak_data EXPORTING textid = zcx_abak_data=>low_high_must_be_filled option = <s_kv>-option. ENDIF. IF <s_kv>-high < <s_kv>-low. RAISE EXCEPTION TYPE zcx_abak_data EXPORTING textid = zcx_abak_data=>high_must_be_gt_low option = <s_kv>-option low = <s_kv>-low high = <s_kv>-high. ENDIF. WHEN OTHERS. RAISE EXCEPTION TYPE zcx_abak_data EXPORTING textid = zcx_abak_data=>invalid_option option = <s_kv>-option. ENDCASE. ENDLOOP. ENDMETHOD. METHOD load_data. CLEAR: et_k, e_name. IF gt_k[] IS NOT INITIAL OR g_name IS NOT INITIAL. RETURN. ENDIF. load_data_aux( IMPORTING et_k = gt_k e_name = g_name ). check_data( gt_k ). ENDMETHOD. METHOD zif_abak_data~get_data. load_data( ). rt_k = gt_k. ENDMETHOD. METHOD zif_abak_data~get_name. load_data( ). r_name = g_name. ENDMETHOD. METHOD zif_abak_data~invalidate. CLEAR gt_k[]. CLEAR g_name. invalidate_aux( ). ENDMETHOD. METHOD zif_abak_data~read. FIELD-SYMBOLS: <s_k> LIKE LINE OF gt_k. LOG-POINT ID zabak SUBKEY 'data.read' FIELDS i_scope i_fieldname i_context. load_data( ). READ TABLE gt_k ASSIGNING <s_k> WITH KEY scope = i_scope fieldname = i_fieldname context = i_context. IF sy-subrc = 0. rt_kv = <s_k>-t_kv. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 461, 62, 7890, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 9564, 18601, 10659, 198, 220, 29244, 6158, 44731, 628, 220, 10188, 9864, 1847, 48167, 1677, 5258, 1976, 565, 62, 397, 461, 62, 69, 9548, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 461, 62, 7890, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 3440, 62, 7890, 62, 14644, 198, 220, 220, 220, 9564, 18601, 10659, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 316, 62, 74, 41876, 1976, 397, 461, 62, 74, 62, 83, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 68, 62, 3672, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 461, 764, 198, 220, 220, 220, 337, 36252, 50, 12515, 378, 62, 14644, 198, 220, 220, 220, 9564, 18601, 10659, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 461, 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, 308, 66, 62, 18076, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4961, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 275, 499, 14922, 5378, 26173, 8924, 705, 36, 48, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 407, 62, 40496, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 275, 499, 14922, 5378, 26173, 8924, 705, 12161, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1022, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 275, 499, 14922, 5378, 26173, 8924, 705, 19313, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 407, 62, 23395, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 275, 499, 14922, 5378, 26173, 8924, 705, 32819, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4909, 62, 33279, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 275, 499, 14922, 5378, 26173, 8924, 705, 8697, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 857, 62, 1662, 62, 3642, 391, 62, 33279, 41876, 275, 499, 14922, 5378, 26173, 8924, 705, 22182, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1342, 62, 14813, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 275, 499, 14922, 5378, 26173, 8924, 705, 27734, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1342, 62, 273, 62, 40496, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 275, 499, 14922, 5378, 26173, 8924, 705, 2538, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3744, 62, 14813, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 275, 499, 14922, 5378, 26173, 8924, 705, 19555, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3744, 62, 273, 62, 40496, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 275, 499, 14922, 5378, 26173, 8924, 705, 8264, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 308, 66, 62, 18076, 764, 198, 220, 220, 220, 42865, 308, 83, 62, 74, 41876, 1976, 397, 461, 62, 74, 62, 83, 764, 198, 220, 220, 220, 42865, 308, 62, 3672, 41876, 4731, 764, 628, 220, 220, 220, 337, 36252, 50, 2198, 62, 7890, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 74, 41876, 1976, 397, 461, 62, 74, 62, 83, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 461, 764, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 1370, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 74, 41876, 1976, 397, 461, 62, 74, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 461, 764, 198, 220, 220, 220, 337, 36252, 50, 3440, 62, 7890, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 316, 62, 74, 41876, 1976, 397, 461, 62, 74, 62, 83, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 68, 62, 3672, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 461, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 32, 4339, 42, 62, 26947, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 2198, 62, 7890, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 82, 62, 74, 29, 34178, 48920, 3963, 340, 62, 74, 13, 628, 220, 220, 220, 17579, 3185, 5161, 340, 62, 74, 24994, 3528, 15871, 1279, 82, 62, 74, 28401, 198, 220, 220, 220, 220, 220, 2198, 62, 1370, 7, 1279, 82, 62, 74, 29, 6739, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 2198, 62, 1370, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 82, 62, 74, 85, 29, 34178, 48920, 3963, 318, 62, 74, 12, 83, 62, 74, 85, 13, 628, 220, 220, 220, 16876, 318, 62, 74, 12, 3245, 3672, 3180, 3268, 2043, 12576, 6375, 318, 62, 74, 12, 29982, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 17926, 24352, 7788, 42006, 2849, 41876, 1976, 66, 87, 62, 397, 461, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*----------------------------------------------------------------------* * CLASS ltcl_convert DEFINITION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS ltcl_convert DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL. PRIVATE SECTION. METHODS convert_int FOR TESTING RAISING zcx_abapgit_exception. METHODS split_string FOR TESTING. METHODS convert_bitbyte FOR TESTING RAISING zcx_abapgit_exception. METHODS alpha_output FOR TESTING. ENDCLASS. *----------------------------------------------------------------------* * CLASS ltcl_convert IMPLEMENTATION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS ltcl_convert IMPLEMENTATION. METHOD alpha_output. DATA lv_alpha TYPE c LENGTH 10 VALUE '0000001234'. DATA lv_numc TYPE n LENGTH 6 VALUE '001234'. cl_abap_unit_assert=>assert_equals( act = zcl_abapgit_convert=>alpha_output( lv_alpha ) exp = '1234' ). cl_abap_unit_assert=>assert_equals( act = zcl_abapgit_convert=>alpha_output( lv_numc ) exp = '1234' ). ENDMETHOD. METHOD convert_bitbyte. DATA: lv_xstring TYPE xstring, lv_byte TYPE x, lv_input TYPE i, lv_bitbyte TYPE zif_abapgit_definitions=>ty_bitbyte, lv_byteint TYPE i, lv_xbyteint TYPE xstring, lv_xresult TYPE xstring, lv_result TYPE i, lv_offset TYPE i. DO 1000 TIMES. lv_result = 0. CLEAR: lv_byteint, lv_xbyteint, lv_xresult. lv_input = sy-index * 64. lv_xstring = zcl_abapgit_convert=>int_to_xstring4( lv_input ). DO 4 TIMES. lv_offset = sy-index - 1. lv_byte = lv_xstring+lv_offset(1). lv_bitbyte = zcl_abapgit_convert=>x_to_bitbyte( lv_byte ). lv_byteint = zcl_abapgit_convert=>bitbyte_to_int( lv_bitbyte ). lv_xbyteint = lv_byteint. CONCATENATE lv_xresult lv_xbyteint INTO lv_xresult IN BYTE MODE. ENDDO. lv_result = zcl_abapgit_convert=>xstring_to_int( lv_xresult ). cl_abap_unit_assert=>assert_equals( exp = lv_input act = lv_result ). ENDDO. ENDMETHOD. METHOD convert_int. DATA: lv_xstring TYPE xstring, lv_input TYPE i, lv_result TYPE i. DO 1000 TIMES. lv_input = sy-index. lv_xstring = zcl_abapgit_convert=>int_to_xstring4( lv_input ). lv_result = zcl_abapgit_convert=>xstring_to_int( lv_xstring ). cl_abap_unit_assert=>assert_equals( exp = lv_input act = lv_result ). ENDDO. ENDMETHOD. METHOD split_string. DATA: lt_act TYPE string_table, lt_exp TYPE string_table. APPEND 'ABC' TO lt_exp. APPEND '123' TO lt_exp. " Case 1: String separated by CRLF lt_act = zcl_abapgit_convert=>split_string( 'ABC' && cl_abap_char_utilities=>cr_lf && '123' ). cl_abap_unit_assert=>assert_equals( exp = lt_exp act = lt_act msg = ' Error during string split: CRLF' ). CLEAR: lt_act. " Case 2: String separated by LF lt_act = zcl_abapgit_convert=>split_string( 'ABC' && cl_abap_char_utilities=>newline && '123' ). cl_abap_unit_assert=>assert_equals( exp = lt_exp act = lt_act msg = ' Error during string split: LF' ). ENDMETHOD. ENDCLASS.
[ 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 83, 565, 62, 1102, 1851, 5550, 20032, 17941, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 31631, 300, 83, 565, 62, 1102, 1851, 5550, 20032, 17941, 7473, 43001, 2751, 45698, 42, 49277, 43638, 5805, 7597, 360, 4261, 6234, 6006, 9863, 25261, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 10385, 62, 600, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 337, 36252, 50, 6626, 62, 8841, 7473, 43001, 2751, 13, 198, 220, 220, 220, 337, 36252, 50, 10385, 62, 2545, 26327, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 337, 36252, 50, 17130, 62, 22915, 7473, 43001, 2751, 13, 198, 198, 10619, 31631, 13, 198, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 83, 565, 62, 1102, 1851, 30023, 2538, 10979, 6234, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 31631, 300, 83, 565, 62, 1102, 1851, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 17130, 62, 22915, 13, 628, 220, 220, 220, 42865, 300, 85, 62, 26591, 41876, 269, 406, 49494, 838, 26173, 8924, 705, 10535, 1065, 2682, 4458, 198, 220, 220, 220, 42865, 300, 85, 62, 22510, 66, 41876, 299, 406, 49494, 718, 26173, 8924, 705, 405, 1065, 2682, 4458, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 220, 220, 719, 796, 1976, 565, 62, 397, 499, 18300, 62, 1102, 1851, 14804, 26591, 62, 22915, 7, 300, 85, 62, 26591, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1033, 796, 705, 1065, 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, 220, 220, 719, 796, 1976, 565, 62, 397, 499, 18300, 62, 1102, 1851, 14804, 26591, 62, 22915, 7, 300, 85, 62, 22510, 66, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 1033, 796, 705, 1065, 2682, 6, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 10385, 62, 2545, 26327, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 87, 8841, 220, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 26327, 220, 220, 220, 220, 41876, 2124, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 15414, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 2545, 26327, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 2545, 26327, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 26327, 600, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 87, 26327, 600, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 87, 20274, 220, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 20274, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 28968, 220, 220, 41876, 1312, 13, 628, 220, 220, 220, 8410, 8576, 31742, 1546, 13, 628, 220, 220, 220, 220, 220, 300, 85, 62, 20274, 796, 657, 13, 198, 220, 220, 220, 220, 220, 30301, 1503, 25, 300, 85, 62, 26327, 600, 11, 300, 85, 62, 87, 26327, 600, 11, 300, 85, 62, 87, 20274, 13, 628, 220, 220, 220, 220, 220, 300, 85, 62, 15414, 220, 796, 827, 12, 9630, 1635, 5598, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 87, 8841, 796, 1976, 565, 62, 397, 499, 18300, 62, 1102, 1851, 14804, 600, 62, 1462, 62, 87, 8841, 19, 7, 300, 85, 62, 15414, 6739, 198, 220, 220, 220, 220, 220, 8410, 604, 31742, 1546, 13, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 28968, 796, 827, 12, 9630, 532, 352, 13, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 26327, 796, 300, 85, 62, 87, 8841, 10, 6780, 62, 28968, 7, 16, 737, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 2545, 26327, 796, 1976, 565, 62, 397, 499, 18300, 62, 1102, 1851, 14804, 87, 62, 1462, 62, 2545, 26327, 7, 300, 85, 62, 26327, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 26327, 600, 796, 1976, 565, 62, 397, 499, 18300, 62, 1102, 1851, 14804, 2545, 26327, 62, 1462, 62, 600, 7, 300, 85, 62, 2545, 26327, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 87, 26327, 600, 796, 300, 85, 62, 26327, 600, 13, 198, 220, 220, 220, 220, 220, 220, 220, 39962, 1404, 1677, 6158, 300, 85, 62, 87, 20274, 300, 85, 62, 87, 26327, 600, 39319, 300, 85, 62, 87, 20274, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3268, 11050, 9328, 337, 16820, 13, 198, 220, 220, 220, 220, 220, 23578, 18227, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 20274, 796, 1976, 565, 62, 397, 499, 18300, 62, 1102, 1851, 14804, 87, 8841, 62, 1462, 62, 600, 7, 300, 85, 62, 87, 20274, 6739, 628, 220, 220, 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, 220, 220, 1033, 796, 300, 85, 62, 15414, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 719, 796, 300, 85, 62, 20274, 6739, 628, 220, 220, 220, 23578, 18227, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 10385, 62, 600, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 87, 8841, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 15414 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
FUNCTION zpof_gtt_ee_sh_hdr_dep. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" REFERENCE(I_APPSYS) TYPE /SAPTRX/APPLSYSTEM *" REFERENCE(I_EVENT_TYPE) TYPE /SAPTRX/EVTYPES *" REFERENCE(I_ALL_APPL_TABLES) TYPE TRXAS_TABCONTAINER *" REFERENCE(I_EVENT_TYPE_CNTL_TABS) TYPE TRXAS_EVENTTYPE_TABS *" REFERENCE(I_EVENTS) TYPE TRXAS_EVT_CTABS *" TABLES *" CT_TRACKINGHEADER STRUCTURE /SAPTRX/BAPI_EVM_HEADER *" CT_TRACKLOCATION STRUCTURE /SAPTRX/BAPI_EVM_LOCATIONID *" OPTIONAL *" CT_TRACKADDRESS STRUCTURE /SAPTRX/BAPI_EVM_ADDRESS OPTIONAL *" CT_TRACKLOCATIONDESCR STRUCTURE /SAPTRX/BAPI_EVM_LOCDESCR *" OPTIONAL *" CT_TRACKLOCADDITIONALID STRUCTURE /SAPTRX/BAPI_EVM_LOCADDID *" OPTIONAL *" CT_TRACKPARTNERID STRUCTURE /SAPTRX/BAPI_EVM_PARTNERID *" OPTIONAL *" CT_TRACKPARTNERADDID STRUCTURE /SAPTRX/BAPI_EVM_PARTNERADDID *" OPTIONAL *" CT_TRACKESTIMDEADLINE STRUCTURE /SAPTRX/BAPI_EVM_ESTIMDEADL *" OPTIONAL *" CT_TRACKCONFIRMSTATUS STRUCTURE /SAPTRX/BAPI_EVM_CONFSTAT *" OPTIONAL *" CT_TRACKNEXTEVENT STRUCTURE /SAPTRX/BAPI_EVM_NEXTEVENT *" OPTIONAL *" CT_TRACKNEXTEVDEADLINES STRUCTURE /SAPTRX/BAPI_EVM_NEXTEVDEADL *" OPTIONAL *" CT_TRACKREFERENCES STRUCTURE /SAPTRX/BAPI_EVM_REFERENCE *" OPTIONAL *" CT_TRACKMEASURESULTS STRUCTURE /SAPTRX/BAPI_EVM_MEASRESULT *" OPTIONAL *" CT_TRACKSTATUSATTRIB STRUCTURE /SAPTRX/BAPI_EVM_STATUSATTR *" OPTIONAL *" CT_TRACKPARAMETERS STRUCTURE /SAPTRX/BAPI_EVM_PARAMETERS *" OPTIONAL *" CT_TRACKFILEHEADER STRUCTURE /SAPTRX/BAPI_EVM_FILEHEADER *" OPTIONAL *" CT_TRACKFILEREF STRUCTURE /SAPTRX/BAPI_EVM_FILEREF OPTIONAL *" CT_TRACKFILEBIN STRUCTURE /SAPTRX/BAPI_EVM_FILEBIN OPTIONAL *" CT_TRACKFILECHAR STRUCTURE /SAPTRX/BAPI_EVM_FILECHAR OPTIONAL *" CT_TRACKTEXTHEADER STRUCTURE /SAPTRX/BAPI_EVM_TEXTHEADER *" OPTIONAL *" CT_TRACKTEXTLINES STRUCTURE /SAPTRX/BAPI_EVM_TEXTLINES *" OPTIONAL *" CT_TRACKEEMODIFY STRUCTURE /SAPTRX/BAPI_EVM_EE_MODIFY OPTIONAL *" CT_EXTENSIONIN STRUCTURE BAPIPAREX OPTIONAL *" CT_EXTENSIONOUT STRUCTURE BAPIPAREX OPTIONAL *" CT_LOGTABLE STRUCTURE BAPIRET2 OPTIONAL *" CHANGING *" REFERENCE(C_EVENTID_MAP) TYPE TRXAS_EVTID_EVTCNT_MAP *" EXCEPTIONS *" PARAMETER_ERROR *" EVENT_DATA_ERROR *" STOP_PROCESSING *"---------------------------------------------------------------------- DATA: lo_udm_message TYPE REF TO cx_udm_message, ls_bapiret TYPE bapiret2. TRY. lcl_ae_performer=>get_event_data( EXPORTING is_definition = VALUE #( maintab = lif_pof_constants=>cs_tabledef-sh_header_new ) io_ae_factory = NEW lcl_ae_factory_sh_header_dep( ) iv_appsys = i_appsys is_event_type = i_event_type it_all_appl_tables = i_all_appl_tables it_event_type_cntl_tabs = i_event_type_cntl_tabs it_events = i_events CHANGING ct_eventid_map = c_eventid_map[] ct_trackingheader = ct_trackingheader[] ct_tracklocation = ct_tracklocation[] ct_trackreferences = ct_trackreferences[] ct_trackparameters = ct_trackparameters[] ). CATCH cx_udm_message INTO lo_udm_message. lcl_tools=>get_errors_log( EXPORTING io_umd_message = lo_udm_message iv_appsys = i_appsys IMPORTING es_bapiret = ls_bapiret ). " add error message APPEND ls_bapiret TO ct_logtable. " throw corresponding exception CASE lo_udm_message->textid. WHEN lif_ef_constants=>cs_errors-stop_processing. RAISE stop_processing. WHEN lif_ef_constants=>cs_errors-table_determination. RAISE event_data_error. ENDCASE. ENDTRY. ENDFUNCTION.
[ 42296, 4177, 2849, 1976, 79, 1659, 62, 70, 926, 62, 1453, 62, 1477, 62, 71, 7109, 62, 10378, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 14565, 26491, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 2969, 3705, 16309, 8, 41876, 220, 1220, 50, 2969, 5446, 55, 14, 2969, 6489, 23060, 25361, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 20114, 3525, 62, 25216, 8, 41876, 220, 1220, 50, 2969, 5446, 55, 14, 20114, 9936, 47, 1546, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 7036, 62, 2969, 6489, 62, 5603, 9148, 1546, 8, 41876, 220, 7579, 55, 1921, 62, 5603, 2749, 1340, 30339, 1137, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 20114, 3525, 62, 25216, 62, 34, 11251, 43, 62, 5603, 4462, 8, 41876, 220, 7579, 55, 1921, 62, 20114, 3525, 25216, 62, 5603, 4462, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 20114, 15365, 8, 41876, 220, 7579, 55, 1921, 62, 20114, 51, 62, 4177, 32, 4462, 198, 9, 1, 220, 309, 6242, 28378, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 2751, 37682, 1137, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 37682, 1137, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 29701, 6234, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 29701, 6234, 2389, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 2885, 7707, 7597, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 2885, 7707, 7597, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 29701, 6234, 30910, 9419, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 29701, 30910, 9419, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 29701, 29266, 17941, 1847, 2389, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 29701, 29266, 2389, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 30709, 21479, 2389, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 30709, 21479, 2389, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 30709, 21479, 29266, 2389, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 30709, 21479, 29266, 2389, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 6465, 3955, 7206, 2885, 24027, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 6465, 3955, 7206, 2885, 43, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 10943, 39776, 44, 35744, 2937, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 10943, 37, 35744, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 45, 6369, 9328, 53, 3525, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 45, 6369, 9328, 53, 3525, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 45, 6369, 9328, 53, 7206, 2885, 34509, 1546, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 45, 6369, 9328, 53, 7206, 2885, 43, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 2200, 24302, 24181, 1546, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 2200, 24302, 18310, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 11682, 1921, 29514, 35342, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 11682, 1921, 19535, 16724, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 35744, 2937, 1404, 5446, 9865, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 35744, 2937, 1404, 5446, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 27082, 2390, 2767, 4877, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 27082, 2390, 2767, 4877, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 25664, 37682, 1137, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 25664, 37682, 1137, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 46700, 9338, 37, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 46700, 9338, 37, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 25664, 33, 1268, 19269, 18415, 11335, 220, 1220, 50, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_enho_class DEFINITION PUBLIC. PUBLIC SECTION. METHODS: constructor IMPORTING is_item TYPE zif_abapgit_definitions=>ty_item io_files TYPE REF TO zcl_abapgit_objects_files. INTERFACES: zif_abapgit_object_enho. PRIVATE SECTION. DATA: ms_item TYPE zif_abapgit_definitions=>ty_item. DATA: mo_files TYPE REF TO zcl_abapgit_objects_files. ENDCLASS. CLASS zcl_abapgit_object_enho_class IMPLEMENTATION. METHOD constructor. ms_item = is_item. mo_files = io_files. ENDMETHOD. METHOD zif_abapgit_object_enho~serialize. DATA: lo_enh_class TYPE REF TO cl_enh_tool_class, lt_owr TYPE enhmeth_tabkeys, lt_pre TYPE enhmeth_tabkeys, lt_post TYPE enhmeth_tabkeys, lt_source TYPE rswsourcet, lv_class TYPE seoclsname, lv_shorttext TYPE string. lo_enh_class ?= ii_enh_tool. lv_shorttext = lo_enh_class->if_enh_object_docu~get_shorttext( ). lt_owr = lo_enh_class->get_owr_methods( ). lt_pre = lo_enh_class->get_pre_methods( ). lt_post = lo_enh_class->get_post_methods( ). lt_source = lo_enh_class->get_eimp_include( ). lo_enh_class->get_class( IMPORTING class_name = lv_class ). io_xml->add( iv_name = 'TOOL' ig_data = ii_enh_tool->get_tool( ) ). io_xml->add( ig_data = lv_shorttext iv_name = 'SHORTTEXT' ). io_xml->add( iv_name = 'CLASS' ig_data = lv_class ). io_xml->add( iv_name = 'OWR_METHODS' ig_data = lt_owr ). io_xml->add( iv_name = 'PRE_METHODS' ig_data = lt_pre ). io_xml->add( iv_name = 'POST_METHODS' ig_data = lt_post ). mo_files->add_abap( lt_source ). zcl_abapgit_object_enho_clif=>serialize( io_xml = io_xml io_files = mo_files io_clif = lo_enh_class ). ENDMETHOD. METHOD zif_abapgit_object_enho~deserialize. DATA: lo_enh_class TYPE REF TO cl_enh_tool_class, lt_owr TYPE enhmeth_tabkeys, lt_pre TYPE enhmeth_tabkeys, lt_post TYPE enhmeth_tabkeys, lt_source TYPE rswsourcet, li_tool TYPE REF TO if_enh_tool, lv_shorttext TYPE string, lv_class TYPE seoclsname, lv_enhname TYPE enhname, lv_package TYPE devclass. io_xml->read( EXPORTING iv_name = 'SHORTTEXT' CHANGING cg_data = lv_shorttext ). io_xml->read( EXPORTING iv_name = 'OWR_METHODS' CHANGING cg_data = lt_owr ). io_xml->read( EXPORTING iv_name = 'PRE_METHODS' CHANGING cg_data = lt_pre ). io_xml->read( EXPORTING iv_name = 'POST_METHODS' CHANGING cg_data = lt_post ). io_xml->read( EXPORTING iv_name = 'CLASS' CHANGING cg_data = lv_class ). lt_source = mo_files->read_abap( ). lv_enhname = ms_item-obj_name. lv_package = iv_package. TRY. cl_enh_factory=>create_enhancement( EXPORTING enhname = lv_enhname enhtype = '' enhtooltype = cl_enh_tool_class=>tooltype IMPORTING enhancement = li_tool CHANGING devclass = lv_package ). lo_enh_class ?= li_tool. lo_enh_class->if_enh_object_docu~set_shorttext( lv_shorttext ). lo_enh_class->set_class( lv_class ). lo_enh_class->set_owr_methods( version = 'I' owr_methods = lt_owr ). lo_enh_class->set_pre_methods( version = 'I' pre_methods = lt_pre ). lo_enh_class->set_post_methods( version = 'I' post_methods = lt_post ). lo_enh_class->set_eimp_include( version = 'I' eimp_source = lt_source ). zcl_abapgit_object_enho_clif=>deserialize( io_xml = io_xml io_clif = lo_enh_class ). lo_enh_class->if_enh_object~save( ). lo_enh_class->if_enh_object~unlock( ). CATCH cx_enh_root. zcx_abapgit_exception=>raise( 'error deserializing ENHO class' ). ENDTRY. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 268, 8873, 62, 4871, 5550, 20032, 17941, 44731, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 9186, 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, 33245, 62, 16624, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16624, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 1976, 361, 62, 397, 499, 18300, 62, 15252, 62, 268, 8873, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 13845, 62, 9186, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 13, 198, 220, 220, 220, 42865, 25, 6941, 62, 16624, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16624, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 268, 8873, 62, 4871, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 13845, 62, 9186, 796, 318, 62, 9186, 13, 198, 220, 220, 220, 6941, 62, 16624, 796, 33245, 62, 16624, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 62, 268, 8873, 93, 46911, 1096, 13, 628, 220, 220, 220, 42865, 25, 2376, 62, 16550, 62, 4871, 41876, 4526, 37, 5390, 537, 62, 16550, 62, 25981, 62, 4871, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 322, 81, 220, 220, 220, 220, 220, 220, 41876, 5881, 76, 2788, 62, 8658, 13083, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 3866, 220, 220, 220, 220, 220, 220, 41876, 5881, 76, 2788, 62, 8658, 13083, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 7353, 220, 220, 220, 220, 220, 41876, 5881, 76, 2788, 62, 8658, 13083, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 10459, 220, 220, 220, 41876, 374, 2032, 82, 454, 66, 316, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 4871, 220, 220, 220, 220, 41876, 384, 420, 7278, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 19509, 5239, 41876, 4731, 13, 628, 198, 220, 220, 220, 2376, 62, 16550, 62, 4871, 5633, 28, 21065, 62, 16550, 62, 25981, 13, 628, 220, 220, 220, 300, 85, 62, 19509, 5239, 796, 2376, 62, 16550, 62, 4871, 3784, 361, 62, 16550, 62, 15252, 62, 15390, 84, 93, 1136, 62, 19509, 5239, 7, 6739, 198, 220, 220, 220, 300, 83, 62, 322, 81, 796, 2376, 62, 16550, 62, 4871, 3784, 1136, 62, 322, 81, 62, 24396, 82, 7, 6739, 198, 220, 220, 220, 300, 83, 62, 3866, 796, 2376, 62, 16550, 62, 4871, 3784, 1136, 62, 3866, 62, 24396, 82, 7, 6739, 198, 220, 220, 220, 300, 83, 62, 7353, 796, 2376, 62, 16550, 62, 4871, 3784, 1136, 62, 7353, 62, 24396, 82, 7, 6739, 198, 220, 220, 220, 300, 83, 62, 10459, 796, 2376, 62, 16550, 62, 4871, 3784, 1136, 62, 68, 11011, 62, 17256, 7, 6739, 198, 220, 220, 220, 2376, 62, 16550, 62, 4871, 3784, 1136, 62, 4871, 7, 30023, 9863, 2751, 1398, 62, 3672, 796, 300, 85, 62, 4871, 6739, 628, 220, 220, 220, 33245, 62, 19875, 3784, 2860, 7, 21628, 62, 3672, 796, 705, 10468, 3535, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45329, 62, 7890, 796, 21065, 62, 16550, 62, 25981, 3784, 1136, 62, 25981, 7, 1267, 6739, 198, 220, 220, 220, 33245, 62, 19875, 3784, 2860, 7, 45329, 62, 7890, 796, 300, 85, 62, 19509, 5239, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3672, 796, 705, 9693, 9863, 32541, 6, 6739, 198, 220, 220, 220, 33245, 62, 19875, 3784, 2860, 7, 21628, 62, 3672, 796, 705, 31631, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45329, 62, 7890, 796, 300, 85, 62, 4871, 6739, 198, 220, 220, 220, 33245, 62, 19875, 3784, 2860, 7, 21628, 62, 3672, 796, 705, 3913, 49, 62, 49273, 50, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45329, 62, 7890, 796, 300, 83, 62, 322, 81, 6739, 198, 220, 220, 220, 33245, 62, 19875, 3784, 2860, 7, 21628, 62, 3672, 796, 705, 46437, 62, 49273, 50, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45329, 62, 7890, 796, 300, 83, 62, 3866, 6739, 198, 220, 220, 220, 33245, 62, 19875, 3784, 2860, 7, 21628, 62, 3672, 796, 705, 32782, 62, 49273, 50, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45329, 62, 7890, 796, 300, 83, 62, 7353, 6739, 628, 220, 220, 220, 6941, 62, 16624, 3784, 2860, 62, 397, 499, 7, 300, 83, 62, 10459, 6739, 628, 220, 220, 220, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 268, 8873, 62, 565, 361, 14804, 46911, 1096, 7, 198, 220, 220, 220, 220, 220, 33245, 62, 19875, 220, 220, 796, 33245, 62, 19875, 198, 220, 220, 220, 220, 220, 33245, 62, 16624, 796, 6941, 62, 16624, 198, 220, 220, 220, 220, 220, 33245, 62, 565, 361, 220, 796, 2376, 62, 16550, 62, 4871, 6739, 628, 220, 23578, 49273, 13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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
interface zif_tools_comp_itabs public . types: begin of ty_changed_data, table_name type string, field_name type string, tabix type sy-tabix, value_old type string, value_new type string, chngind type cdchngind, end of ty_changed_data. types tt_changed_data type standard table of ty_changed_data with key table_name field_name tabix. endinterface.
[ 39994, 1976, 361, 62, 31391, 62, 5589, 62, 270, 8937, 198, 220, 1171, 764, 198, 220, 3858, 25, 2221, 286, 1259, 62, 40985, 62, 7890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3084, 62, 3672, 2099, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 62, 3672, 2099, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7400, 844, 220, 220, 220, 220, 220, 2099, 827, 12, 8658, 844, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 62, 727, 220, 2099, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 62, 3605, 220, 2099, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 442, 782, 521, 220, 220, 220, 2099, 22927, 354, 782, 521, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 886, 286, 1259, 62, 40985, 62, 7890, 13, 628, 220, 3858, 256, 83, 62, 40985, 62, 7890, 2099, 3210, 3084, 286, 1259, 62, 40985, 62, 7890, 351, 1994, 3084, 62, 3672, 2214, 62, 3672, 7400, 844, 13, 198, 437, 39994, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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">Utility for message handling</p> CLASS zcl_adcoset_message_util DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS: "! <p class="shorttext synchronized" lang="en">Splits text into sy-msg variables</p> split_string_to_symsg IMPORTING text TYPE string. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_adcoset_message_util IMPLEMENTATION. METHOD split_string_to_symsg. DATA: offset TYPE i. DATA(rest_text) = text. DATA(msgv1) = rest_text. SHIFT rest_text LEFT BY 50 PLACES. DATA(msgv2) = rest_text. SHIFT rest_text LEFT BY 50 PLACES. DATA(msgv3) = rest_text. SHIFT rest_text LEFT BY 50 PLACES. DATA(msgv4) = rest_text. IF strlen( rest_text ) > 50. FIND ALL OCCURRENCES OF REGEX '.\s.' IN SECTION LENGTH 47 OF msgv4 MATCH OFFSET offset. IF sy-subrc = 0. offset = offset + 1. msgv4 = msgv4(offset). msgv4 = |{ msgv4 }...|. ENDIF. ENDIF. MESSAGE e001(00) WITH msgv1 msgv2 msgv3 msgv4 INTO DATA(msg). ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 18274, 879, 329, 3275, 9041, 3556, 79, 29, 198, 31631, 1976, 565, 62, 324, 6966, 316, 62, 20500, 62, 22602, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 26568, 896, 2420, 656, 827, 12, 19662, 9633, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 6626, 62, 8841, 62, 1462, 62, 1837, 19662, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 41876, 4731, 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, 324, 6966, 316, 62, 20500, 62, 22602, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 6626, 62, 8841, 62, 1462, 62, 1837, 19662, 13, 628, 220, 220, 220, 42865, 25, 11677, 41876, 1312, 13, 628, 220, 220, 220, 42865, 7, 2118, 62, 5239, 8, 796, 2420, 13, 628, 220, 220, 220, 42865, 7, 19662, 85, 16, 8, 796, 1334, 62, 5239, 13, 198, 220, 220, 220, 6006, 32297, 1334, 62, 5239, 12509, 9792, 11050, 2026, 9297, 2246, 1546, 13, 198, 220, 220, 220, 42865, 7, 19662, 85, 17, 8, 796, 1334, 62, 5239, 13, 198, 220, 220, 220, 6006, 32297, 1334, 62, 5239, 12509, 9792, 11050, 2026, 9297, 2246, 1546, 13, 198, 220, 220, 220, 42865, 7, 19662, 85, 18, 8, 796, 1334, 62, 5239, 13, 198, 220, 220, 220, 6006, 32297, 1334, 62, 5239, 12509, 9792, 11050, 2026, 9297, 2246, 1546, 13, 198, 220, 220, 220, 42865, 7, 19662, 85, 19, 8, 796, 1334, 62, 5239, 13, 628, 220, 220, 220, 16876, 965, 11925, 7, 1334, 62, 5239, 1267, 1875, 2026, 13, 198, 220, 220, 220, 220, 220, 376, 12115, 11096, 440, 4093, 31302, 24181, 1546, 3963, 23337, 6369, 45302, 59, 82, 2637, 3268, 44513, 406, 49494, 6298, 3963, 31456, 85, 19, 337, 11417, 3963, 10652, 2767, 11677, 13, 198, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 11677, 796, 11677, 1343, 352, 13, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 85, 19, 796, 31456, 85, 19, 7, 28968, 737, 628, 220, 220, 220, 220, 220, 220, 220, 31456, 85, 19, 796, 930, 90, 31456, 85, 19, 1782, 986, 91, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 337, 1546, 4090, 8264, 304, 8298, 7, 405, 8, 13315, 31456, 85, 16, 31456, 85, 17, 31456, 85, 18, 31456, 85, 19, 39319, 42865, 7, 19662, 737, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 system_callstack. *"---------------------------------------------------------------------- *"*"Local Interface: *" EXPORTING *" REFERENCE(CALLSTACK) TYPE ABAP_CALLSTACK *"---------------------------------------------------------------------- FIELD-SYMBOLS <fs> LIKE LINE OF callstack. APPEND INITIAL LINE TO callstack ASSIGNING <fs>. <fs>-mainprogram = 'ZTODO'. <fs>-include = 'ZTODO'. <fs>-line = '123'. ENDFUNCTION.
[ 42296, 4177, 2849, 1080, 62, 13345, 25558, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 14565, 26491, 25, 198, 9, 1, 220, 7788, 15490, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 34, 7036, 2257, 8120, 8, 41876, 220, 9564, 2969, 62, 34, 7036, 2257, 8120, 198, 9, 1, 10097, 23031, 628, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 1279, 9501, 29, 34178, 48920, 3963, 869, 25558, 13, 628, 220, 43504, 10619, 3268, 2043, 12576, 48920, 5390, 869, 25558, 24994, 3528, 15871, 1279, 9501, 28401, 198, 220, 1279, 9501, 29, 12, 12417, 23065, 796, 705, 57, 51, 3727, 46, 4458, 198, 220, 1279, 9501, 29, 12, 17256, 796, 705, 57, 51, 3727, 46, 4458, 198, 220, 1279, 9501, 29, 12, 1370, 796, 705, 10163, 4458, 198, 198, 1677, 8068, 4944, 4177, 2849, 13 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
INTERFACE zif_abapgit_ajson PUBLIC . CONSTANTS version TYPE string VALUE 'v1.0.4'. CONSTANTS origin TYPE string VALUE 'https://github.com/sbcgua/ajson'. INTERFACES zif_abapgit_ajson_reader. INTERFACES zif_abapgit_ajson_writer. CONSTANTS: BEGIN OF node_type, boolean TYPE string VALUE 'bool', string TYPE string VALUE 'str', number TYPE string VALUE 'num', null TYPE string VALUE 'null', array TYPE string VALUE 'array', object TYPE string VALUE 'object', END OF node_type. TYPES: BEGIN OF ty_node, path TYPE string, name TYPE string, type TYPE string, value TYPE string, index TYPE i, order TYPE i, children TYPE i, END OF ty_node . TYPES: ty_nodes_tt TYPE STANDARD TABLE OF ty_node WITH KEY path name . TYPES: ty_nodes_ts TYPE SORTED TABLE OF ty_node WITH UNIQUE KEY path name WITH NON-UNIQUE SORTED KEY array_index COMPONENTS path index WITH NON-UNIQUE SORTED KEY item_order COMPONENTS path order . TYPES: BEGIN OF ty_path_name, path TYPE string, name TYPE string, END OF ty_path_name. " DATA DATA mt_json_tree TYPE ty_nodes_ts READ-ONLY. " METHODS METHODS freeze. METHODS keep_item_order. " METHODS (merged from reader/writer), maybe will completely move to this IF in future ! ALIASES: exists FOR zif_abapgit_ajson_reader~exists, members FOR zif_abapgit_ajson_reader~members, get FOR zif_abapgit_ajson_reader~get, get_boolean FOR zif_abapgit_ajson_reader~get_boolean, get_integer FOR zif_abapgit_ajson_reader~get_integer, get_number FOR zif_abapgit_ajson_reader~get_number, get_date FOR zif_abapgit_ajson_reader~get_date, get_string FOR zif_abapgit_ajson_reader~get_string, slice FOR zif_abapgit_ajson_reader~slice, to_abap FOR zif_abapgit_ajson_reader~to_abap, array_to_string_table FOR zif_abapgit_ajson_reader~array_to_string_table. ALIASES: clear FOR zif_abapgit_ajson_writer~clear, set FOR zif_abapgit_ajson_writer~set, set_boolean FOR zif_abapgit_ajson_writer~set_boolean, set_string FOR zif_abapgit_ajson_writer~set_string, set_integer FOR zif_abapgit_ajson_writer~set_integer, set_date FOR zif_abapgit_ajson_writer~set_date, set_null FOR zif_abapgit_ajson_writer~set_null, delete FOR zif_abapgit_ajson_writer~delete, touch_array FOR zif_abapgit_ajson_writer~touch_array, push FOR zif_abapgit_ajson_writer~push, stringify FOR zif_abapgit_ajson_writer~stringify. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 198, 220, 44731, 764, 628, 220, 7102, 2257, 1565, 4694, 2196, 41876, 4731, 26173, 8924, 705, 85, 16, 13, 15, 13, 19, 4458, 198, 220, 7102, 2257, 1565, 4694, 8159, 41876, 4731, 26173, 8924, 705, 5450, 1378, 12567, 13, 785, 14, 82, 15630, 5162, 64, 14, 1228, 1559, 4458, 628, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 46862, 13, 198, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 16002, 13, 628, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 347, 43312, 3963, 10139, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 25131, 41876, 4731, 26173, 8924, 705, 30388, 3256, 198, 220, 220, 220, 220, 220, 4731, 220, 41876, 4731, 26173, 8924, 705, 2536, 3256, 198, 220, 220, 220, 220, 220, 1271, 220, 41876, 4731, 26173, 8924, 705, 22510, 3256, 198, 220, 220, 220, 220, 220, 9242, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 8423, 3256, 198, 220, 220, 220, 220, 220, 7177, 220, 220, 41876, 4731, 26173, 8924, 705, 18747, 3256, 198, 220, 220, 220, 220, 220, 2134, 220, 41876, 4731, 26173, 8924, 705, 15252, 3256, 198, 220, 220, 220, 23578, 3963, 10139, 62, 4906, 13, 628, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 17440, 11, 198, 220, 220, 220, 220, 220, 3108, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 1438, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2099, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 1988, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 6376, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 1502, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 1751, 41876, 1312, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 17440, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 77, 4147, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 17440, 13315, 35374, 3108, 1438, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 77, 4147, 62, 912, 41876, 311, 9863, 1961, 43679, 3963, 1259, 62, 17440, 198, 220, 220, 220, 220, 220, 13315, 4725, 33866, 8924, 35374, 3108, 1438, 198, 220, 220, 220, 220, 220, 13315, 44521, 12, 4944, 33866, 8924, 311, 9863, 1961, 35374, 7177, 62, 9630, 24301, 1340, 15365, 3108, 6376, 198, 220, 220, 220, 220, 220, 13315, 44521, 12, 4944, 33866, 8924, 311, 9863, 1961, 35374, 2378, 62, 2875, 24301, 1340, 15365, 3108, 1502, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 6978, 62, 3672, 11, 198, 220, 220, 220, 220, 220, 3108, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 1438, 41876, 4731, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 6978, 62, 3672, 13, 628, 220, 366, 42865, 628, 220, 42865, 45079, 62, 17752, 62, 21048, 41876, 1259, 62, 77, 4147, 62, 912, 20832, 12, 1340, 11319, 13, 628, 220, 366, 337, 36252, 50, 628, 220, 337, 36252, 50, 16611, 13, 198, 220, 337, 36252, 50, 1394, 62, 9186, 62, 2875, 13, 628, 220, 366, 337, 36252, 50, 357, 647, 2004, 422, 9173, 14, 16002, 828, 3863, 481, 3190, 1445, 284, 428, 16876, 287, 2003, 5145, 628, 220, 8355, 43429, 1546, 25, 198, 220, 220, 220, 7160, 7473, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 46862, 93, 1069, 1023, 11, 198, 220, 220, 220, 1866, 7473, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 46862, 93, 30814, 11, 198, 220, 220, 220, 651, 7473, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 46862, 93, 1136, 11, 198, 220, 220, 220, 651, 62, 2127, 21052, 7473, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 46862, 93, 1136, 62, 2127, 21052, 11, 198, 220, 220, 220, 651, 62, 41433, 7473, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 46862, 93, 1136, 62, 41433, 11, 198, 220, 220, 220, 651, 62, 17618, 7473, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 46862, 93, 1136, 62, 17618, 11, 198, 220, 220, 220, 651, 62, 4475, 7473, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 46862, 93, 1136, 62, 4475, 11, 198, 220, 220, 220, 651, 62, 8841, 7473, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 46862, 93, 1136, 62, 8841, 11, 198, 220, 220, 220, 16416, 7473, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 46862, 93, 48369, 11, 198, 220, 220, 220, 284, 62, 397, 499, 7473, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 46862, 93, 1462, 62, 397, 499, 11, 198, 220, 220, 220, 7177, 62, 1462, 62, 8841, 62, 11487, 7473, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 46862, 93, 18747, 62, 1462, 62, 8841, 62, 11487, 13, 628, 220, 8355, 43429, 1546, 25, 198, 220, 220, 220, 1598, 7473, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 16002, 93, 20063, 11, 198, 220, 220, 220, 900, 7473, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 16002, 93, 2617, 11, 198, 220, 220, 220, 900, 62, 2127, 21052, 7473, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 16002, 93, 2617, 62, 2127, 21052, 11, 198, 220, 220, 220, 900, 62, 8841, 7473, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 16002, 93, 2617, 62, 8841, 11, 198, 220, 220, 220, 900, 62, 41433, 7473, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 16002, 93, 2617, 62, 41433, 11, 198, 220, 220, 220, 900, 62, 4475, 7473, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 16002, 93, 2617, 62, 4475, 11, 198, 220, 220, 220, 900, 62, 8423, 7473, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 16002, 93, 2617, 62, 8423, 11, 198, 220, 220, 220, 12233, 7473, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 16002, 93, 33678, 11, 198, 220, 220, 220, 3638, 62, 18747, 7473, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
INTERFACE zif_abapgit_persist_settings PUBLIC. METHODS modify IMPORTING !io_settings TYPE REF TO zcl_abapgit_settings RAISING zcx_abapgit_exception . METHODS read RETURNING VALUE(ro_settings) TYPE REF TO zcl_abapgit_settings . ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 397, 499, 18300, 62, 19276, 396, 62, 33692, 44731, 13, 628, 220, 337, 36252, 50, 13096, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5145, 952, 62, 33692, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 33692, 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, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 33692, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 33692, 764, 198, 198, 10619, 41358, 49836, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_tag DEFINITION PUBLIC FINAL CREATE PUBLIC INHERITING FROM zcl_abapgit_gui_page. PUBLIC SECTION. CONSTANTS: BEGIN OF c_action, commit_post TYPE string VALUE 'commit_post', commit_cancel TYPE string VALUE 'commit_cancel', change_tag_type TYPE string VALUE 'change_tag_type', END OF c_action. METHODS: constructor IMPORTING io_repo TYPE REF TO zcl_abapgit_repo RAISING zcx_abapgit_exception, zif_abapgit_gui_page~on_event REDEFINITION. PROTECTED SECTION. METHODS: render_content REDEFINITION, scripts REDEFINITION. PRIVATE SECTION. CONSTANTS: BEGIN OF co_tag_type, lightweight TYPE string VALUE 'lightweight', annotated TYPE string VALUE 'annotated', END OF co_tag_type. DATA: mo_repo_online TYPE REF TO zcl_abapgit_repo_online, mv_selected_type TYPE string. METHODS: render_menu RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html, render_form RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html RAISING zcx_abapgit_exception, render_text_input IMPORTING iv_name TYPE string iv_label TYPE string iv_value TYPE string OPTIONAL iv_max_length TYPE string OPTIONAL RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html, create_tag IMPORTING it_postdata TYPE cnht_post_data_tab RAISING zcx_abapgit_exception, parse_tag_request IMPORTING it_postdata TYPE cnht_post_data_tab EXPORTING es_fields TYPE any, parse_change_tag_type_request IMPORTING it_postdata TYPE cnht_post_data_tab. ENDCLASS. CLASS zcl_abapgit_gui_page_tag IMPLEMENTATION. METHOD constructor. super->constructor( ). mo_repo_online ?= io_repo. ms_control-page_title = 'TAG'. mv_selected_type = co_tag_type-lightweight. ENDMETHOD. METHOD render_content. CREATE OBJECT ro_html. ro_html->add( '<div class="repo">' ). ro_html->add( render_menu( ) ). ro_html->add( render_form( ) ). ro_html->add( '</div>' ). ENDMETHOD. "render_content METHOD render_form. CONSTANTS: lc_body_col_max TYPE i VALUE 150. DATA: lo_user TYPE REF TO zcl_abapgit_persistence_user, lv_user TYPE string, lv_email TYPE string, lv_s_param TYPE string, lo_settings TYPE REF TO zcl_abapgit_settings, lv_body_size TYPE i, lt_type TYPE stringtab, lv_selected TYPE string. FIELD-SYMBOLS: <type> LIKE LINE OF lt_type. lo_user = zcl_abapgit_persistence_user=>get_instance( ). lv_user = lo_user->get_repo_git_user_name( mo_repo_online->get_url( ) ). IF lv_user IS INITIAL. lv_user = lo_user->get_default_git_user_name( ). ENDIF. IF lv_user IS INITIAL. " get default from user master record lv_user = zcl_abapgit_user_master_record=>get_instance( sy-uname )->get_name( ). ENDIF. lv_email = lo_user->get_repo_git_user_email( mo_repo_online->get_url( ) ). IF lv_email IS INITIAL. lv_email = lo_user->get_default_git_user_email( ). ENDIF. IF lv_email IS INITIAL. " get default from user master record lv_email = zcl_abapgit_user_master_record=>get_instance( sy-uname )->get_email( ). ENDIF. CREATE OBJECT ro_html. ro_html->add( '<div class="form-container">' ). ro_html->add( '<form id="commit_form" class="aligned-form grey70"' && ' method="post" action="sapevent:commit_post">' ). INSERT co_tag_type-lightweight INTO TABLE lt_type. INSERT co_tag_type-annotated INTO TABLE lt_type. ro_html->add( '<div class="row">' ). ro_html->add( 'Tag type <select name="folder_logic" onchange="onTagTypeChange(this)">' ). LOOP AT lt_type ASSIGNING <type>. IF mv_selected_type = <type>. lv_selected = 'selected'. ELSE. CLEAR: lv_selected. ENDIF. ro_html->add( |<option value="{ <type> }" | && |{ lv_selected }>| && |{ <type> }</option>| ). ENDLOOP. ro_html->add( '</div>' ). ro_html->add( '</select>' ). ro_html->add( '<br>' ). ro_html->add( '<br>' ). ro_html->add( render_text_input( iv_name = 'sha1' iv_label = 'SHA1' iv_value = mo_repo_online->get_sha1_local( ) ) ). ro_html->add( render_text_input( iv_name = 'name' iv_label = 'tag name' ) ). IF mv_selected_type = co_tag_type-annotated. ro_html->add( render_text_input( iv_name = 'tagger_name' iv_label = 'tagger name' iv_value = lv_user ) ). ro_html->add( render_text_input( iv_name = 'tagger_email' iv_label = 'tagger e-mail' iv_value = lv_email ) ). lo_settings = zcl_abapgit_persist_settings=>get_instance( )->read( ). lv_s_param = lo_settings->get_commitmsg_comment_length( ). ro_html->add( render_text_input( iv_name = 'message' iv_label = 'message' iv_max_length = lv_s_param ) ). ro_html->add( '<div class="row">' ). ro_html->add( '<label for="c-body">body</label>' ). lv_body_size = lo_settings->get_commitmsg_body_size( ). IF lv_body_size > lc_body_col_max. lv_body_size = lc_body_col_max. ENDIF. ro_html->add( |<textarea id="c-body" name="body" rows="10" cols="| && |{ lv_body_size }"></textarea>| ). ENDIF. ro_html->add( '<input type="submit" class="hidden-submit">' ). ro_html->add( '</div>' ). ro_html->add( '</form>' ). ro_html->add( '</div>' ). ENDMETHOD. "render_form METHOD render_menu. DATA lo_toolbar TYPE REF TO zcl_abapgit_html_toolbar. CREATE OBJECT ro_html. CREATE OBJECT lo_toolbar. lo_toolbar->add( iv_act = 'submitFormById(''commit_form'');' iv_txt = 'Create' iv_typ = zif_abapgit_definitions=>gc_action_type-onclick iv_opt = zif_abapgit_definitions=>gc_html_opt-strong ) ##NO_TEXT. lo_toolbar->add( iv_act = c_action-commit_cancel iv_txt = 'Cancel' iv_opt = zif_abapgit_definitions=>gc_html_opt-cancel ) ##NO_TEXT. ro_html->add( '<div class="paddings">' ). ro_html->add( lo_toolbar->render( ) ). ro_html->add( '</div>' ). ENDMETHOD. "render_menu METHOD render_text_input. DATA lv_attrs TYPE string. CREATE OBJECT ro_html. IF iv_value IS NOT INITIAL. lv_attrs = | value="{ iv_value }"|. ENDIF. IF iv_max_length IS NOT INITIAL. lv_attrs = | maxlength="{ iv_max_length }"|. ENDIF. ro_html->add( '<div class="row">' ). ro_html->add( |<label for="{ iv_name }">{ iv_label }</label>| ). ro_html->add( |<input id="{ iv_name }" name="{ iv_name }" type="text"{ lv_attrs }>| ). ro_html->add( '</div>' ). ENDMETHOD. " render_text_input METHOD scripts. CREATE OBJECT ro_html. ro_html->add( 'setInitialFocus("tag_name");' ). ENDMETHOD. "scripts METHOD zif_abapgit_gui_page~on_event. CASE iv_action. WHEN c_action-commit_post. create_tag( it_postdata ). ev_state = zif_abapgit_definitions=>gc_event_state-go_back. WHEN c_action-change_tag_type. parse_change_tag_type_request( it_postdata ). ev_state = zif_abapgit_definitions=>gc_event_state-re_render. WHEN c_action-commit_cancel. ev_state = zif_abapgit_definitions=>gc_event_state-go_back. ENDCASE. ENDMETHOD. METHOD create_tag. DATA: ls_tag TYPE zif_abapgit_definitions=>ty_git_tag, lx_error TYPE REF TO zcx_abapgit_exception, lv_text TYPE string. parse_tag_request( EXPORTING it_postdata = it_postdata IMPORTING es_fields = ls_tag ). IF ls_tag-name IS INITIAL. zcx_abapgit_exception=>raise( |Please supply a tag name| ). ENDIF. ls_tag-name = zcl_abapgit_tag=>add_tag_prefix( ls_tag-name ). ASSERT ls_tag-name CP 'refs/tags/+*'. CASE mv_selected_type. WHEN co_tag_type-lightweight. ls_tag-type = zif_abapgit_definitions=>c_git_branch_type-lightweight_tag. WHEN co_tag_type-annotated. ls_tag-type = zif_abapgit_definitions=>c_git_branch_type-annotated_tag. WHEN OTHERS. zcx_abapgit_exception=>raise( |Invalid tag type: { mv_selected_type }| ). ENDCASE. TRY. zcl_abapgit_git_porcelain=>create_tag( io_repo = mo_repo_online is_tag = ls_tag ). CATCH zcx_abapgit_exception INTO lx_error. zcx_abapgit_exception=>raise( |Cannot create tag { ls_tag-name }. Error: '{ lx_error->get_text( ) }'| ). ENDTRY. IF ls_tag-type = zif_abapgit_definitions=>c_git_branch_type-lightweight_tag. lv_text = |Lightweight tag { zcl_abapgit_tag=>remove_tag_prefix( ls_tag-name ) } created| ##NO_TEXT. ELSEIF ls_tag-type = zif_abapgit_definitions=>c_git_branch_type-annotated_tag. lv_text = |Annotated tag { zcl_abapgit_tag=>remove_tag_prefix( ls_tag-name ) } created| ##NO_TEXT. ENDIF. MESSAGE lv_text TYPE 'S'. ENDMETHOD. METHOD parse_tag_request. CONSTANTS: lc_replace TYPE string VALUE '<<new>>'. DATA: lv_string TYPE string, lt_fields TYPE tihttpnvp. FIELD-SYMBOLS <lv_body> TYPE string. CLEAR es_fields. CONCATENATE LINES OF it_postdata INTO lv_string. REPLACE ALL OCCURRENCES OF zif_abapgit_definitions=>gc_crlf IN lv_string WITH lc_replace. REPLACE ALL OCCURRENCES OF zif_abapgit_definitions=>gc_newline IN lv_string WITH lc_replace. lt_fields = zcl_abapgit_html_action_utils=>parse_fields_upper_case_name( lv_string ). zcl_abapgit_html_action_utils=>get_field( EXPORTING name = 'SHA1' it = lt_fields CHANGING cv = es_fields ). zcl_abapgit_html_action_utils=>get_field( EXPORTING name = 'NAME' it = lt_fields CHANGING cv = es_fields ). zcl_abapgit_html_action_utils=>get_field( EXPORTING name = 'TAGGER_NAME' it = lt_fields CHANGING cv = es_fields ). zcl_abapgit_html_action_utils=>get_field( EXPORTING name = 'TAGGER_EMAIL' it = lt_fields CHANGING cv = es_fields ). zcl_abapgit_html_action_utils=>get_field( EXPORTING name = 'MESSAGE' it = lt_fields CHANGING cv = es_fields ). zcl_abapgit_html_action_utils=>get_field( EXPORTING name = 'BODY' it = lt_fields CHANGING cv = es_fields ). ASSIGN COMPONENT 'BODY' OF STRUCTURE es_fields TO <lv_body>. ASSERT <lv_body> IS ASSIGNED. REPLACE ALL OCCURRENCES OF lc_replace IN <lv_body> WITH zif_abapgit_definitions=>gc_newline. ENDMETHOD. METHOD parse_change_tag_type_request. FIELD-SYMBOLS: <ls_postdata> TYPE cnht_post_data_line. READ TABLE it_postdata ASSIGNING <ls_postdata> INDEX 1. IF sy-subrc = 0. FIND FIRST OCCURRENCE OF REGEX `type=(.*)` IN <ls_postdata> SUBMATCHES mv_selected_type. ENDIF. mv_selected_type = condense( mv_selected_type ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 12985, 5550, 20032, 17941, 44731, 25261, 198, 220, 220, 220, 29244, 6158, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 347, 43312, 3963, 269, 62, 2673, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4589, 62, 7353, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 41509, 62, 7353, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4589, 62, 66, 21130, 220, 220, 41876, 4731, 26173, 8924, 705, 41509, 62, 66, 21130, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1487, 62, 12985, 62, 4906, 41876, 4731, 26173, 8924, 705, 3803, 62, 12985, 62, 4906, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 2673, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 33245, 62, 260, 7501, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 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, 23848, 36, 20032, 17941, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 8543, 62, 11299, 23848, 36, 20032, 17941, 11, 198, 220, 220, 220, 220, 220, 14750, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 347, 43312, 3963, 763, 62, 12985, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18700, 41876, 4731, 26173, 8924, 705, 2971, 6551, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24708, 515, 220, 220, 41876, 4731, 26173, 8924, 705, 34574, 515, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 763, 62, 12985, 62, 4906, 13, 628, 220, 220, 220, 42865, 25, 6941, 62, 260, 7501, 62, 25119, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 85, 62, 34213, 62, 4906, 41876, 4731, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 8543, 62, 26272, 198, 220, 220, 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, 11, 628, 220, 220, 220, 220, 220, 8543, 62, 687, 198, 220, 220, 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, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 628, 220, 220, 220, 220, 220, 8543, 62, 5239, 62, 15414, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 18242, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 8367, 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, 21628, 62, 9806, 62, 13664, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 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, 11, 628, 220, 220, 220, 220, 220, 2251, 62, 12985, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 340, 62, 7353, 7890, 41876, 269, 77, 4352, 62, 7353, 62, 7890, 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, 628, 220, 220, 220, 220, 220, 21136, 62, 12985, 62, 25927, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 340, 62, 7353, 7890, 41876, 269, 77, 4352, 62, 7353, 62, 7890, 62, 8658, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 1658, 62, 25747, 220, 220, 41876, 597, 11, 198, 220, 220, 220, 220, 220, 21136, 62, 3803, 62, 12985, 62, 4906, 62, 25927, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 7353, 7890, 41876, 269, 77, 4352, 62, 7353, 62, 7890, 62, 8658, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 12985, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 628, 220, 220, 220, 6941, 62, 260, 7501, 62, 25119, 5633, 28, 33245, 62, 260, 7501, 13, 628, 220, 220, 220, 13845, 62, 13716, 12, 7700, 62, 7839, 796, 705, 42197, 4458, 198, 220, 220, 220, 285, 85, 62, 34213, 62, 4906, 796, 763, 62, 12985, 62, 4906, 12, 2971, 6551, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 8543, 62, 11299, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 686, 62, 6494 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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_code_with_issue REDEFINITION. METHODS get_code_without_issue REDEFINITION. METHODS get_code_with_exemption REDEFINITION. ENDCLASS. CLASS ltc_class IMPLEMENTATION. METHOD get_cut. result ?= NEW y_check_call_method_usage( ). ENDMETHOD. METHOD get_code_with_issue. result = VALUE #( ( 'REPORT y_example. ' ) ( 'CLASS lcl_classname DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS class_method. ' ) ( ' CLASS-METHODS execute. ' ) ( ' PROTECTED SECTION. ' ) ( 'ENDCLASS. ' ) ( 'CLASS lcl_classname IMPLEMENTATION. ' ) ( ' METHOD class_method. ' ) ( ' CALL METHOD lcl_classname=>execute( ). ' ) ( ' ENDMETHOD. ' ) ( ' METHOD execute. ' ) ( ' ENDMETHOD. ' ) ( 'ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_without_issue. result = VALUE #( ( 'REPORT y_example. ' ) ( 'CLASS lcl_classname DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS class_method. ' ) ( ' CLASS-METHODS execute. ' ) ( ' PROTECTED SECTION. ' ) ( 'ENDCLASS. ' ) ( 'CLASS lcl_classname IMPLEMENTATION. ' ) ( ' METHOD class_method. ' ) ( ' lcl_classname=>execute( ). ' ) ( ' ENDMETHOD. ' ) ( ' METHOD execute. ' ) ( ' ENDMETHOD. ' ) ( 'ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_with_exemption. result = VALUE #( ( 'REPORT y_example. ' ) ( 'CLASS lcl_classname DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS class_method. ' ) ( ' CLASS-METHODS execute. ' ) ( ' PROTECTED SECTION. ' ) ( 'ENDCLASS. ' ) ( 'CLASS lcl_classname IMPLEMENTATION. ' ) ( ' METHOD class_method. ' ) ( ' CALL METHOD lcl_classname=>execute( ). "#EC CALL_METH_USAGE ' ) ( ' ENDMETHOD. ' ) ( ' METHOD execute. ' ) ( ' ENDMETHOD. ' ) ( 'ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS. CLASS ltc_report DEFINITION INHERITING FROM y_unit_test_base FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PROTECTED SECTION. METHODS get_cut REDEFINITION. METHODS get_code_with_issue REDEFINITION. METHODS get_code_without_issue REDEFINITION. METHODS get_code_with_exemption REDEFINITION. ENDCLASS. CLASS ltc_report IMPLEMENTATION. METHOD get_cut. result ?= NEW y_check_call_method_usage( ). ENDMETHOD. METHOD get_code_with_issue. result = VALUE #( ( 'REPORT y_example. ' ) ( 'CLASS lcl_classname DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' CLASS-METHODS execute. ' ) ( ' PROTECTED SECTION. ' ) ( 'ENDCLASS. ' ) ( 'CLASS lcl_classname IMPLEMENTATION. ' ) ( ' METHOD execute. ' ) ( ' ENDMETHOD. ' ) ( 'ENDCLASS. ' ) ( ' START-OF-SELECTION. ' ) ( ' DATA cn TYPE REF TO lcl_classname. ' ) ( ' cn = NEW lcl_classname( ). ' ) ( ' CALL METHOD cn->execute. ' ) ). ENDMETHOD. METHOD get_code_without_issue. result = VALUE #( ( 'REPORT y_example. ' ) ( 'CLASS lcl_classname DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' CLASS-METHODS execute. ' ) ( ' PROTECTED SECTION. ' ) ( 'ENDCLASS. ' ) ( 'CLASS lcl_classname IMPLEMENTATION. ' ) ( ' METHOD execute. ' ) ( ' ENDMETHOD. ' ) ( 'ENDCLASS. ' ) ( ' START-OF-SELECTION. ' ) ( ' DATA cn TYPE REF TO lcl_classname. ' ) ( ' cn = NEW lcl_classname( ). ' ) ( | CALL METHOD cn->('execute'). | ) ( | CALL METHOD lcl_classname=>('execute'). | ) ( | CALL METHOD ('lcl_classname')=>('execute'). | ) ( | CALL METHOD ('lcl_classname')=>execute. | ) ). ENDMETHOD. METHOD get_code_with_exemption. result = VALUE #( ( 'REPORT y_example. ' ) ( 'CLASS lcl_classname DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' CLASS-METHODS execute. ' ) ( ' PROTECTED SECTION. ' ) ( 'ENDCLASS. ' ) ( 'CLASS lcl_classname IMPLEMENTATION. ' ) ( ' METHOD execute. ' ) ( ' ENDMETHOD. ' ) ( 'ENDCLASS. ' ) ( ' START-OF-SELECTION. ' ) ( ' DATA cn TYPE REF TO lcl_classname. ' ) ( ' cn = NEW lcl_classname( ). ' ) ( ' CALL METHOD cn->execute. "#EC CALL_METH_USAGE ' ) ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 23047, 62, 4871, 5550, 20032, 17941, 3268, 16879, 2043, 2751, 16034, 331, 62, 20850, 62, 9288, 62, 8692, 7473, 43001, 2751, 45698, 42, 49277, 43638, 5805, 7597, 360, 4261, 6234, 6006, 9863, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 8968, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 8189, 62, 4480, 62, 21949, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 8189, 62, 19419, 62, 21949, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 8189, 62, 4480, 62, 1069, 11221, 23848, 36, 20032, 17941, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 23047, 62, 4871, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 651, 62, 8968, 13, 198, 220, 220, 220, 1255, 5633, 28, 12682, 331, 62, 9122, 62, 13345, 62, 24396, 62, 26060, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 8189, 62, 4480, 62, 21949, 13, 198, 220, 220, 220, 1255, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 357, 705, 2200, 15490, 331, 62, 20688, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 31631, 300, 565, 62, 4871, 3672, 5550, 20032, 17941, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 44731, 44513, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 337, 36252, 50, 1398, 62, 24396, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 42715, 12, 49273, 50, 12260, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 48006, 9782, 1961, 44513, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 10619, 31631, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 31631, 300, 565, 62, 4871, 3672, 30023, 2538, 10979, 6234, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 337, 36252, 1398, 62, 24396, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 42815, 337, 36252, 220, 300, 565, 62, 4871, 3672, 14804, 41049, 7, 6739, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 23578, 49273, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 337, 36252, 12260, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 23578, 49273, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 10619, 31631, 13, 705, 1267, 198, 220, 220, 220, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 8189, 62, 19419, 62, 21949, 13, 198, 220, 220, 220, 1255, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 357, 705, 2200, 15490, 331, 62, 20688, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 31631, 300, 565, 62, 4871, 3672, 5550, 20032, 17941, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 44731, 44513, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 337, 36252, 50, 1398, 62, 24396, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 42715, 12, 49273, 50, 12260, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 48006, 9782, 1961, 44513, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 10619, 31631, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 31631, 300, 565, 62, 4871, 3672, 30023, 2538, 10979, 6234, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 337, 36252, 1398, 62, 24396, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 300, 565, 62, 4871, 3672, 14804, 41049, 7, 6739, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 23578, 49273, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 337, 36252, 12260, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 23578, 49273, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 10619, 31631, 13, 705, 1267, 198, 220, 220, 220, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 8189, 62, 4480, 62, 1069, 11221, 13, 198, 220, 220, 220, 1255, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 357, 705, 2200, 15490, 331, 62, 20688, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 31631, 300, 565, 62, 4871, 3672, 5550, 20032, 17941, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 44731, 44513, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 337, 36252, 50, 1398, 62, 24396, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 42715, 12, 49273, 50, 12260, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 48006, 9782, 1961, 44513, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 10619, 31631, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 31631, 300, 565, 62, 4871, 3672, 30023, 2538, 10979, 6234, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 337, 36252, 1398, 62, 24396, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 42815, 337, 36252, 220, 300, 565, 62, 4871, 3672, 14804, 41049, 7, 6739, 25113, 2943, 42815, 62, 44, 20702, 62, 2937, 11879, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 23578, 49273, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 337, 36252, 12260, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 23578, 49273, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 10619, 31631, 13, 705, 1267, 198, 220, 220, 220, 6739, 198, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 23047, 62, 13116, 5550, 20032, 17941, 3268, 16879, 2043, 2751, 16034, 331, 62, 20850, 62, 9288, 62, 8692, 7473, 43001, 2751, 45698, 42, 49277, 43638, 5805, 7597, 360, 4261, 6234, 6006, 9863, 13, 198, 220, 48006 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
class ZCX_DBGL_TESTCASE definition public inheriting from CX_STATIC_CHECK create public . public section. constants DUPLICATE_TESTCASE type SOTR_CONC value '005056914D751EE99886C50523FD3A6D' ##NO_TEXT. constants VARIABLE_NOT_FOUND type SOTR_CONC value '005056914D751EE99887164588613A6D' ##NO_TEXT. constants TESTCASE_NOT_FOUND type SOTR_CONC value '005056914D751EE99887164588615A6D' ##NO_TEXT. constants TABLE_LINE_TYPE_NOT_SUPPORTED type SOTR_CONC value '005056914D751EE99887164588617A6D' ##NO_TEXT. constants NO_FUNCTION_MODULE type SOTR_CONC value '0050569AC5931EDA90D4F3A3D7E900D9' ##NO_TEXT. data KEY_TESTCASE type ZDBGL_KEY_TESTCASES . data PROGRAM type PROGRAM . data VARIABLE type STRING . data LINETYPE type ABAP_TYPEKIND . methods CONSTRUCTOR importing !TEXTID like TEXTID optional !PREVIOUS like PREVIOUS optional !KEY_TESTCASE type ZDBGL_KEY_TESTCASES optional !PROGRAM type PROGRAM optional !VARIABLE type STRING optional !LINETYPE type ABAP_TYPEKIND optional . protected section. private section. ENDCLASS. CLASS ZCX_DBGL_TESTCASE IMPLEMENTATION. method CONSTRUCTOR. CALL METHOD SUPER->CONSTRUCTOR EXPORTING TEXTID = TEXTID PREVIOUS = PREVIOUS . me->KEY_TESTCASE = KEY_TESTCASE . me->PROGRAM = PROGRAM . me->VARIABLE = VARIABLE . me->LINETYPE = LINETYPE . endmethod. ENDCLASS.
[ 4871, 1168, 34, 55, 62, 11012, 8763, 62, 51, 1546, 4825, 11159, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 327, 55, 62, 35744, 2149, 62, 50084, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 38491, 35480, 31484, 6158, 62, 51, 1546, 4825, 11159, 2099, 311, 2394, 49, 62, 10943, 34, 1988, 705, 405, 31654, 3388, 1415, 35, 48365, 6500, 2079, 44980, 34, 31654, 1954, 26009, 18, 32, 21, 35, 6, 22492, 15285, 62, 32541, 13, 198, 220, 38491, 569, 1503, 3539, 19146, 62, 11929, 62, 37, 15919, 2099, 311, 2394, 49, 62, 10943, 34, 1988, 705, 405, 31654, 3388, 1415, 35, 48365, 6500, 2079, 46660, 1433, 2231, 44980, 1485, 32, 21, 35, 6, 22492, 15285, 62, 32541, 13, 198, 220, 38491, 309, 1546, 4825, 11159, 62, 11929, 62, 37, 15919, 2099, 311, 2394, 49, 62, 10943, 34, 1988, 705, 405, 31654, 3388, 1415, 35, 48365, 6500, 2079, 46660, 1433, 2231, 44980, 1314, 32, 21, 35, 6, 22492, 15285, 62, 32541, 13, 198, 220, 38491, 43679, 62, 24027, 62, 25216, 62, 11929, 62, 40331, 15490, 1961, 2099, 311, 2394, 49, 62, 10943, 34, 1988, 705, 405, 31654, 3388, 1415, 35, 48365, 6500, 2079, 46660, 1433, 2231, 44980, 1558, 32, 21, 35, 6, 22492, 15285, 62, 32541, 13, 198, 220, 38491, 8005, 62, 42296, 4177, 2849, 62, 33365, 24212, 2099, 311, 2394, 49, 62, 10943, 34, 1988, 705, 405, 31654, 3388, 2246, 3270, 3132, 1961, 32, 3829, 35, 19, 37, 18, 32, 18, 35, 22, 36, 12865, 35, 24, 6, 22492, 15285, 62, 32541, 13, 198, 220, 1366, 35374, 62, 51, 1546, 4825, 11159, 2099, 1168, 11012, 8763, 62, 20373, 62, 51, 1546, 4825, 1921, 1546, 764, 198, 220, 1366, 46805, 2099, 46805, 764, 198, 220, 1366, 569, 1503, 3539, 19146, 2099, 19269, 2751, 764, 198, 220, 1366, 43277, 2767, 56, 11401, 2099, 9564, 2969, 62, 25216, 42, 12115, 764, 628, 220, 5050, 7102, 46126, 1581, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 32541, 2389, 588, 40383, 2389, 11902, 198, 220, 220, 220, 220, 220, 5145, 46437, 12861, 20958, 588, 22814, 12861, 20958, 11902, 198, 220, 220, 220, 220, 220, 5145, 20373, 62, 51, 1546, 4825, 11159, 2099, 1168, 11012, 8763, 62, 20373, 62, 51, 1546, 4825, 1921, 1546, 11902, 198, 220, 220, 220, 220, 220, 5145, 4805, 7730, 24115, 2099, 46805, 11902, 198, 220, 220, 220, 220, 220, 5145, 53, 1503, 3539, 19146, 2099, 19269, 2751, 11902, 198, 220, 220, 220, 220, 220, 5145, 34509, 2767, 56, 11401, 2099, 9564, 2969, 62, 25216, 42, 12115, 11902, 764, 198, 24326, 2665, 13, 198, 19734, 2665, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 34, 55, 62, 11012, 8763, 62, 51, 1546, 4825, 11159, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 2446, 7102, 46126, 1581, 13, 198, 34, 7036, 337, 36252, 33088, 3784, 10943, 46126, 1581, 198, 6369, 15490, 2751, 198, 32541, 2389, 796, 40383, 2389, 198, 46437, 12861, 20958, 796, 22814, 12861, 20958, 198, 13, 198, 1326, 3784, 20373, 62, 51, 1546, 4825, 11159, 796, 35374, 62, 51, 1546, 4825, 11159, 764, 198, 1326, 3784, 4805, 7730, 24115, 796, 46805, 764, 198, 1326, 3784, 53, 1503, 3539, 19146, 796, 569, 1503, 3539, 19146, 764, 198, 1326, 3784, 34509, 2767, 56, 11401, 796, 43277, 2767, 56, 11401, 764, 198, 220, 886, 24396, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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l_abapgit_repo_online RAISING zcx_abapgit_exception. CLASS-METHODS refresh IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception . CLASS-METHODS remove IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception. CLASS-METHODS purge IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception. CLASS-METHODS new_offline RAISING zcx_abapgit_exception. CLASS-METHODS remote_attach IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception. CLASS-METHODS remote_detach IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception. CLASS-METHODS remote_change IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception. CLASS-METHODS refresh_local_checksums IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception. CLASS-METHODS toggle_favorite IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception . CLASS-METHODS open_se80 IMPORTING !iv_package TYPE devclass RAISING zcx_abapgit_exception . CLASS-METHODS transport_to_branch IMPORTING !iv_repository_key TYPE zif_abapgit_persistence=>ty_value RAISING zcx_abapgit_exception. CLASS-METHODS gui_deserialize IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo RAISING zcx_abapgit_exception . PROTECTED SECTION. PRIVATE SECTION. CLASS-METHODS popup_overwrite CHANGING !ct_overwrite TYPE zif_abapgit_definitions=>ty_overwrite_tt RAISING zcx_abapgit_exception. CLASS-METHODS popup_package_overwrite CHANGING !ct_overwrite TYPE zif_abapgit_definitions=>ty_overwrite_tt RAISING zcx_abapgit_exception. ENDCLASS. CLASS ZCL_ABAPGIT_SERVICES_REPO IMPLEMENTATION. METHOD gui_deserialize. DATA: ls_checks TYPE zif_abapgit_definitions=>ty_deserialize_checks, lt_requirements TYPE zif_abapgit_dot_abapgit=>ty_requirement_tt. * find troublesome objects ls_checks = io_repo->deserialize_checks( ). * and let the user decide what to do TRY. popup_overwrite( CHANGING ct_overwrite = ls_checks-overwrite ). popup_package_overwrite( CHANGING ct_overwrite = ls_checks-warning_package ). IF ls_checks-requirements-met = 'N'. lt_requirements = io_repo->get_dot_abapgit( )->get_data( )-requirements. zcl_abapgit_requirement_helper=>requirements_popup( lt_requirements ). ls_checks-requirements-decision = 'Y'. ENDIF. IF ls_checks-transport-required = abap_true. ls_checks-transport-transport = zcl_abapgit_ui_factory=>get_popups( )->popup_transport_request( is_transport_type = ls_checks-transport-type ). ENDIF. CATCH zcx_abapgit_cancel. RETURN. ENDTRY. * and pass decisions to deserialize io_repo->deserialize( ls_checks ). ENDMETHOD. METHOD new_offline. DATA: lo_repo TYPE REF TO zcl_abapgit_repo, ls_popup TYPE zif_abapgit_popups=>ty_popup. ls_popup = zcl_abapgit_ui_factory=>get_popups( )->repo_new_offline( ). IF ls_popup-cancel = abap_true. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ENDIF. lo_repo = zcl_abapgit_repo_srv=>get_instance( )->new_offline( iv_url = ls_popup-url iv_package = ls_popup-package iv_folder_logic = ls_popup-folder_logic ). lo_repo->rebuild_local_checksums( ). zcl_abapgit_persistence_user=>get_instance( )->set_repo_show( lo_repo->get_key( ) ). " Set default repo for user toggle_favorite( lo_repo->get_key( ) ). COMMIT WORK AND WAIT. ENDMETHOD. METHOD new_online. DATA: ls_popup TYPE zif_abapgit_popups=>ty_popup. ls_popup = zcl_abapgit_ui_factory=>get_popups( )->repo_popup( iv_url ). IF ls_popup-cancel = abap_true. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ENDIF. ro_repo = zcl_abapgit_repo_srv=>get_instance( )->new_online( iv_url = ls_popup-url iv_branch_name = ls_popup-branch_name iv_package = ls_popup-package iv_display_name = ls_popup-display_name iv_folder_logic = ls_popup-folder_logic iv_ign_subpkg = ls_popup-ign_subpkg ). toggle_favorite( ro_repo->get_key( ) ). * Set default repo for user zcl_abapgit_persistence_user=>get_instance( )->set_repo_show( ro_repo->get_key( ) ). COMMIT WORK. ENDMETHOD. METHOD open_se80. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' in_new_window = abap_true object_name = iv_package object_type = 'DEVC' with_objectlist = abap_true. ENDMETHOD. METHOD popup_overwrite. DATA: lt_columns TYPE stringtab, lt_selected LIKE ct_overwrite, lv_column LIKE LINE OF lt_columns, li_popups TYPE REF TO zif_abapgit_popups. FIELD-SYMBOLS: <ls_overwrite> LIKE LINE OF ct_overwrite. IF lines( ct_overwrite ) = 0. RETURN. ENDIF. lv_column = 'OBJ_TYPE'. INSERT lv_column INTO TABLE lt_columns. lv_column = 'OBJ_NAME'. INSERT lv_column INTO TABLE lt_columns. li_popups = zcl_abapgit_ui_factory=>get_popups( ). li_popups->popup_to_select_from_list( EXPORTING it_list = ct_overwrite iv_header_text = |The following objects have been modified locally.| && | Select the objects which should be overwritten.| iv_select_column_text = 'Overwrite?' it_columns_to_display = lt_columns IMPORTING et_list = lt_selected ). LOOP AT ct_overwrite ASSIGNING <ls_overwrite>. READ TABLE lt_selected WITH TABLE KEY object_type_and_name COMPONENTS obj_type = <ls_overwrite>-obj_type obj_name = <ls_overwrite>-obj_name TRANSPORTING NO FIELDS. IF sy-subrc = 0. <ls_overwrite>-decision = 'Y'. ELSE. <ls_overwrite>-decision = 'N'. ENDIF. ENDLOOP. ENDMETHOD. METHOD popup_package_overwrite. DATA: lt_colums_to_display TYPE stringtab, lv_column LIKE LINE OF lt_colums_to_display, lt_selected LIKE ct_overwrite. FIELD-SYMBOLS: <ls_overwrite> LIKE LINE OF ct_overwrite. IF lines( ct_overwrite ) = 0. RETURN. ENDIF. lv_column = 'OBJ_TYPE'. INSERT lv_column INTO TABLE lt_colums_to_display. lv_column = 'OBJ_NAME'. INSERT lv_column INTO TABLE lt_colums_to_display. lv_column = 'DEVCLASS'. INSERT lv_column INTO TABLE lt_colums_to_display. zcl_abapgit_ui_factory=>get_popups( )->popup_to_select_from_list( EXPORTING it_list = ct_overwrite iv_header_text = |The following objects have been created in other packages.| && | Select the objects which should be overwritten.| iv_select_column_text = |Overwrite?| it_columns_to_display = lt_colums_to_display IMPORTING et_list = lt_selected ). LOOP AT ct_overwrite ASSIGNING <ls_overwrite>. READ TABLE lt_selected WITH TABLE KEY object_type_and_name COMPONENTS obj_type = <ls_overwrite>-obj_type obj_name = <ls_overwrite>-obj_name TRANSPORTING NO FIELDS. IF sy-subrc = 0. <ls_overwrite>-decision = 'Y'. ELSE. <ls_overwrite>-decision = 'N'. ENDIF. ENDLOOP. ENDMETHOD. METHOD purge. DATA: lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt, lv_answer TYPE c LENGTH 1, lo_repo TYPE REF TO zcl_abapgit_repo, lv_package TYPE devclass, lv_question TYPE c LENGTH 100, ls_checks TYPE zif_abapgit_definitions=>ty_delete_checks. lo_repo = zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ). lv_package = lo_repo->get_package( ). lt_tadir = zcl_abapgit_factory=>get_tadir( )->read( lv_package ). IF lines( lt_tadir ) > 0. lv_question = |This will DELETE all objects in package { lv_package } ({ lines( lt_tadir ) } objects) from the system|. "#EC NOTEXT lv_answer = zcl_abapgit_ui_factory=>get_popups( )->popup_to_confirm( iv_titlebar = 'Uninstall' iv_text_question = lv_question iv_text_button_1 = 'Delete' iv_icon_button_1 = 'ICON_DELETE' iv_text_button_2 = 'Cancel' iv_icon_button_2 = 'ICON_CANCEL' iv_default_button = '2' iv_display_cancel_button = abap_false ). "#EC NOTEXT IF lv_answer = '2'. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ENDIF. ENDIF. ls_checks = lo_repo->delete_checks( ). IF ls_checks-transport-required = abap_true. ls_checks-transport-transport = zcl_abapgit_ui_factory=>get_popups( )->popup_transport_request( ls_checks-transport-type ). ENDIF. zcl_abapgit_repo_srv=>get_instance( )->purge( io_repo = lo_repo is_checks = ls_checks ). COMMIT WORK. ENDMETHOD. METHOD refresh. zcl_abapgit_repo_srv=>get_instance( )->get( iv_key )->refresh( ). ENDMETHOD. METHOD refresh_local_checksums. DATA: lv_answer TYPE c, lv_question TYPE string, lo_repo TYPE REF TO zcl_abapgit_repo. IF zcl_abapgit_auth=>is_allowed( zif_abapgit_auth=>gc_authorization-update_local_checksum ) = abap_false. zcx_abapgit_exception=>raise( 'Not authorized' ). ENDIF. lo_repo = zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ). lv_question = 'This will rebuild and overwrite local repo checksums.'. IF lo_repo->is_offline( ) = abap_false. lv_question = lv_question && ' The logic: if local and remote file differs then:' && ' if remote branch is ahead then assume changes are remote,' && ' else (branches are equal) assume changes are local.' && ' This will lead to incorrect state for files changed on both sides.' && ' Please make sure you don''t have ones like that.'. ENDIF. lv_answer = zcl_abapgit_ui_factory=>get_popups( )->popup_to_confirm( iv_titlebar = 'Warning' iv_text_question = lv_question iv_text_button_1 = 'OK' iv_icon_button_1 = 'ICON_DELETE' iv_text_button_2 = 'Cancel' iv_icon_button_2 = 'ICON_CANCEL' iv_default_button = '2' iv_display_cancel_button = abap_false ). "#EC NOTEXT IF lv_answer = '2'. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ENDIF. lo_repo->rebuild_local_checksums( ). COMMIT WORK AND WAIT. ENDMETHOD. METHOD remote_attach. DATA: ls_popup TYPE zif_abapgit_popups=>ty_popup, lo_repo TYPE REF TO zcl_abapgit_repo_online. ls_popup = zcl_abapgit_ui_factory=>get_popups( )->repo_popup( iv_title = 'Attach repo to remote ...' iv_url = '' iv_package = zcl_abapgit_repo_srv=>get_instance( )->get( iv_key )->get_package( ) iv_freeze_package = abap_true ). IF ls_popup-cancel = abap_true. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ENDIF. zcl_abapgit_repo_srv=>get_instance( )->get( iv_key )->switch_repo_type( iv_offline = abap_false ). lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ). lo_repo->set_url( ls_popup-url ). lo_repo->set_branch_name( ls_popup-branch_name ). COMMIT WORK. ENDMETHOD. METHOD remote_change. DATA: ls_popup TYPE zif_abapgit_popups=>ty_popup, lo_repo TYPE REF TO zcl_abapgit_repo_online. lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ). ls_popup = zcl_abapgit_ui_factory=>get_popups( )->repo_popup( iv_title = 'Change repo remote ...' iv_url = lo_repo->get_url( ) iv_package = lo_repo->get_package( ) iv_freeze_package = abap_true ). IF ls_popup-cancel = abap_true. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ENDIF. lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ). lo_repo->set_url( ls_popup-url ). lo_repo->set_branch_name( ls_popup-branch_name ). COMMIT WORK. ENDMETHOD. METHOD remote_detach. DATA: lv_answer TYPE c LENGTH 1. lv_answer = zcl_abapgit_ui_factory=>get_popups( )->popup_to_confirm( iv_titlebar = 'Make repository OFF-line' iv_text_question = 'This will detach the repo from remote and make it OFF-line' iv_text_button_1 = 'Make OFF-line' iv_icon_button_1 = 'ICON_WF_UNLINK' iv_text_button_2 = 'Cancel' iv_icon_button_2 = 'ICON_CANCEL' iv_default_button = '2' iv_display_cancel_button = abap_false ). "#EC NOTEXT IF lv_answer = '2'. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ENDIF. zcl_abapgit_repo_srv=>get_instance( )->get( iv_key )->switch_repo_type( iv_offline = abap_true ). COMMIT WORK. ENDMETHOD. METHOD remove. DATA: lv_answer TYPE c LENGTH 1, lo_repo TYPE REF TO zcl_abapgit_repo, lv_package TYPE devclass, lv_question TYPE c LENGTH 200. lo_repo = zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ). lv_package = lo_repo->get_package( ). lv_question = |This will remove the repository reference to the package { lv_package }. All objects will safely remain in the system.|. lv_answer = zcl_abapgit_ui_factory=>get_popups( )->popup_to_confirm( iv_titlebar = 'Remove' iv_text_question = lv_question iv_text_button_1 = 'Remove' iv_icon_button_1 = 'ICON_WF_UNLINK' iv_text_button_2 = 'Cancel' iv_icon_button_2 = 'ICON_CANCEL' iv_default_button = '2' iv_display_cancel_button = abap_false ). "#EC NOTEXT IF lv_answer = '2'. RAISE EXCEPTION TYPE zcx_abapgit_cancel. ENDIF. zcl_abapgit_repo_srv=>get_instance( )->delete( lo_repo ). COMMIT WORK. ENDMETHOD. METHOD toggle_favorite. zcl_abapgit_persistence_user=>get_instance( )->toggle_favorite( iv_key ). ENDMETHOD. METHOD transport_to_branch. DATA: lo_repository TYPE REF TO zcl_abapgit_repo_online, lo_transport_to_branch TYPE REF TO zcl_abapgit_transport_2_branch, lt_transport_headers TYPE trwbo_request_headers, lt_transport_objects TYPE zif_abapgit_definitions=>ty_tadir_tt, ls_transport_to_branch TYPE zif_abapgit_definitions=>ty_transport_to_branch. IF zcl_abapgit_auth=>is_allowed( zif_abapgit_auth=>gc_authorization-transport_to_branch ) = abap_false. zcx_abapgit_exception=>raise( 'Not authorized' ). ENDIF. lo_repository ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_repository_key ). lt_transport_headers = zcl_abapgit_ui_factory=>get_popups( )->popup_to_select_transports( ). lt_transport_objects = zcl_abapgit_transport=>to_tadir( lt_transport_headers ). IF lt_transport_objects IS INITIAL. zcx_abapgit_exception=>raise( 'Canceled or List of objects is empty ' ). ENDIF. ls_transport_to_branch = zcl_abapgit_ui_factory=>get_popups( )->popup_to_create_transp_branch( lt_transport_headers ). CREATE OBJECT lo_transport_to_branch. lo_transport_to_branch->create( io_repository = lo_repository is_transport_to_branch = ls_transport_to_branch it_transport_objects = lt_transport_objects ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 30416, 62, 260, 7501, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 649, 62, 25119, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 260, 7501, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 14976, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 4781, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 35714, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 649, 62, 2364, 1370, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 6569, 62, 47348, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 6569, 62, 15255, 620, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 6569, 62, 3803, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 14976, 62, 12001, 62, 42116, 5700, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 19846, 62, 35200, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 2539, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 1280, 62, 325, 1795, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26495, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 4839, 62, 1462, 62, 1671, 3702, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 260, 1930, 37765, 62, 2539, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 8367, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 11774, 62, 8906, 48499, 1096, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 260, 7501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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_css_processor DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. METHODS: constructor IMPORTING ii_asset_manager TYPE REF TO zif_abapgit_gui_asset_manager, add_file IMPORTING iv_url TYPE string, process RETURNING VALUE(rv_result) TYPE string RAISING zcx_abapgit_exception. PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_css_var, name TYPE string, value TYPE string, END OF ty_css_var, ty_css_vars TYPE SORTED TABLE OF ty_css_var WITH UNIQUE KEY name. METHODS: get_css_vars_in_string IMPORTING iv_string TYPE string RETURNING VALUE(rt_variables) TYPE ty_css_vars, resolve_var_recursively IMPORTING iv_variable_name TYPE string CHANGING ct_variables TYPE ty_css_vars RAISING zcx_abapgit_exception. DATA: mi_asset_manager TYPE REF TO zif_abapgit_gui_asset_manager, mt_files TYPE string_table. ENDCLASS. CLASS ZCL_ABAPGIT_GUI_CSS_PROCESSOR IMPLEMENTATION. METHOD add_file. APPEND iv_url TO mt_files. ENDMETHOD. METHOD constructor. mi_asset_manager = ii_asset_manager. ENDMETHOD. METHOD get_css_vars_in_string. CONSTANTS: lc_root_pattern TYPE string VALUE `:root\s*\{([^\}]*)\}`, lc_variable_pattern TYPE string VALUE `\-\-([\w\d-]+)\s*:\s*([^\n\r;]*);`. DATA: lv_root TYPE string, lo_matcher TYPE REF TO cl_abap_matcher, lo_regex TYPE REF TO cl_abap_regex, ls_variable LIKE LINE OF rt_variables. " Only the :root element may define variables for now FIND FIRST OCCURRENCE OF REGEX lc_root_pattern IN iv_string SUBMATCHES lv_root. IF sy-subrc = 0 AND lv_root IS NOT INITIAL. lo_regex = NEW #( pattern = lc_variable_pattern ). lo_matcher = lo_regex->create_matcher( text = lv_root ). WHILE lo_matcher->find_next( ) = abap_true. ls_variable-name = lo_matcher->get_submatch( 1 ). ls_variable-value = lo_matcher->get_submatch( 2 ). INSERT ls_variable INTO TABLE rt_variables. IF sy-subrc <> 0. MODIFY TABLE rt_variables FROM ls_variable. ENDIF. ENDWHILE. ENDIF. ENDMETHOD. METHOD process. DATA: lt_contents TYPE STANDARD TABLE OF string, lv_content TYPE string, lt_css_variables TYPE ty_css_vars, lt_css_vars_in_file TYPE ty_css_vars. FIELD-SYMBOLS: <lv_url> TYPE string, <ls_css_variable> LIKE LINE OF lt_css_vars_in_file, <lv_content> LIKE LINE OF lt_contents. " 1. Determine all variables and their values. Later definitions overwrite previous ones. LOOP AT mt_files ASSIGNING <lv_url>. lv_content = mi_asset_manager->get_text_asset( iv_url = <lv_url> iv_assert_subtype = 'css' ). lt_css_vars_in_file = get_css_vars_in_string( lv_content ). LOOP AT lt_css_vars_in_file ASSIGNING <ls_css_variable>. INSERT <ls_css_variable> INTO TABLE lt_css_variables. IF sy-subrc <> 0. MODIFY TABLE lt_css_variables FROM <ls_css_variable>. ENDIF. ENDLOOP. APPEND lv_content TO lt_contents. ENDLOOP. " 2. Replace all variable usages in variables LOOP AT lt_css_variables ASSIGNING <ls_css_variable> WHERE value CS 'var(--'. resolve_var_recursively( EXPORTING iv_variable_name = <ls_css_variable>-name CHANGING ct_variables = lt_css_variables ). ENDLOOP. " 3. Replace all other variable usages by inlining the values. LOOP AT lt_contents ASSIGNING <lv_content>. LOOP AT lt_css_variables ASSIGNING <ls_css_variable>. REPLACE ALL OCCURRENCES OF |var(--{ <ls_css_variable>-name })| IN <lv_content> WITH <ls_css_variable>-value. ENDLOOP. ENDLOOP. rv_result = concat_lines_of( table = lt_contents sep = cl_abap_char_utilities=>newline ). ENDMETHOD. METHOD resolve_var_recursively. CONSTANTS: lc_variable_usage_pattern TYPE string VALUE `var\(\-\-([^\)]*)\)`. DATA: lv_variable_name TYPE string. FIELD-SYMBOLS: <ls_variable> LIKE LINE OF ct_variables, <ls_other_variable> LIKE LINE OF ct_variables. READ TABLE ct_variables WITH TABLE KEY name = iv_variable_name ASSIGNING <ls_variable>. IF sy-subrc = 0. DO. FIND FIRST OCCURRENCE OF REGEX lc_variable_usage_pattern IN <ls_variable>-value SUBMATCHES lv_variable_name. IF sy-subrc = 0. resolve_var_recursively( EXPORTING iv_variable_name = lv_variable_name CHANGING ct_variables = ct_variables ). READ TABLE ct_variables WITH TABLE KEY name = lv_variable_name ASSIGNING <ls_other_variable>. REPLACE FIRST OCCURRENCE OF |var(--{ lv_variable_name })| IN <ls_variable>-value WITH <ls_other_variable>-value. ELSE. EXIT. ENDIF. ENDDO. ELSE. zcx_abapgit_exception=>raise( |CSS variable { iv_variable_name } not resolveable| ). ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 25471, 62, 41341, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 562, 316, 62, 37153, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 562, 316, 62, 37153, 11, 198, 220, 220, 220, 220, 220, 751, 62, 7753, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 6371, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 1429, 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, 20274, 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, 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, 25471, 62, 7785, 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, 25471, 62, 7785, 11, 198, 220, 220, 220, 220, 220, 1259, 62, 25471, 62, 85, 945, 41876, 311, 9863, 1961, 43679, 3963, 1259, 62, 25471, 62, 7785, 13315, 4725, 33866, 8924, 35374, 1438, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 651, 62, 25471, 62, 85, 945, 62, 259, 62, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 8841, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 25641, 2977, 8, 41876, 1259, 62, 25471, 62, 85, 945, 11, 198, 220, 220, 220, 220, 220, 10568, 62, 7785, 62, 8344, 1834, 2280, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 45286, 62, 3672, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 83, 62, 25641, 2977, 220, 220, 220, 220, 41876, 1259, 62, 25471, 62, 85, 945, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 21504, 62, 562, 316, 62, 37153, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 562, 316, 62, 37153, 11, 198, 220, 220, 220, 220, 220, 45079, 62, 16624, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 62, 11487, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 40156, 62, 49155, 62, 4805, 4503, 7597, 1581, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 751, 62, 7753, 13, 198, 220, 220, 220, 43504, 10619, 21628, 62, 6371, 5390, 45079, 62, 16624, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 21504, 62, 562, 316, 62, 37153, 796, 21065, 62, 562, 316, 62, 37153, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 25471, 62, 85, 945, 62, 259, 62, 8841, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 300, 66, 62, 15763, 62, 33279, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 4600, 25, 15763, 59, 82, 9, 59, 90, 26933, 61, 59, 92, 60, 9, 19415, 92, 47671, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 66, 62, 45286, 62, 33279, 41876, 4731, 26173, 8924, 4600, 41441, 41441, 26933, 59, 86, 59, 67, 12, 48688, 19415, 82, 9, 7479, 82, 9, 26933, 61, 59, 77, 59, 81, 26, 60, 9, 1776, 44646, 198, 220, 220, 220, 42865, 25, 300, 85, 62, 15763, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 6759, 2044, 220, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 6759, 2044, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 260, 25636, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 260, 25636, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 45286, 34178, 48920, 3963, 374, 83, 62, 25641, 2977, 13, 628, 220, 220, 220, 366, 5514, 262, 1058, 15763, 5002, 743, 8160, 9633, 329, 783, 628, 220, 220, 220, 376, 12115, 31328, 440, 4093, 31302, 18310, 3963, 23337, 6369, 300, 66, 62, 15763, 62, 33279, 3268, 21628, 62, 8841, 28932, 44, 11417, 1546, 300, 85, 62, 15763, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 657, 5357, 300, 85, 62, 15763, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 2376, 62, 260, 25636, 796, 12682, 1303, 7, 3912, 796, 300, 66, 62, 45286, 62, 33279, 6739, 198, 220, 220, 220, 220, 220, 2376, 62, 6759, 2044, 796, 2376, 62, 260, 25636, 3784, 17953, 62, 6759, 2044, 7, 2420, 796, 300, 85, 62, 15763, 6739, 198, 220, 220, 220, 220, 220, 7655, 41119, 2376, 62, 6759, 2044, 3784, 19796, 62, 19545, 7, 1267, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 45286, 12, 3672, 796, 2376, 62, 6759, 2044, 3784, 1136, 62, 7266, 15699, 7, 352, 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,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
process before output. * MODULE STATUS_0101. module get_data_0101. process after input. * MODULE USER_COMMAND_0101.
[ 14681, 878, 5072, 13, 198, 9, 33893, 15486, 2937, 62, 486, 486, 13, 198, 198, 21412, 651, 62, 7890, 62, 486, 486, 13, 198, 198, 14681, 706, 5128, 13, 198, 9, 33893, 1294, 1137, 62, 9858, 44, 6981, 62, 486, 486, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_diff DEFINITION PUBLIC CREATE PUBLIC. PUBLIC SECTION. CONSTANTS co_starting_beacon TYPE i VALUE 1. * assumes data is UTF8 based with newlines METHODS constructor IMPORTING !iv_new TYPE xstring !iv_old TYPE xstring !iv_ignore_indentation TYPE abap_bool DEFAULT abap_false !iv_ignore_comments TYPE abap_bool DEFAULT abap_false !iv_ignore_case TYPE abap_bool DEFAULT abap_false. METHODS get RETURNING VALUE(rt_diff) TYPE zif_abapgit_definitions=>ty_diffs_tt. METHODS stats RETURNING VALUE(rs_count) TYPE zif_abapgit_definitions=>ty_count. METHODS set_patch_new IMPORTING !iv_line_new TYPE i !iv_patch_flag TYPE abap_bool RAISING zcx_abapgit_exception. METHODS set_patch_old IMPORTING !iv_line_old TYPE i !iv_patch_flag TYPE abap_bool RAISING zcx_abapgit_exception. METHODS get_beacons RETURNING VALUE(rt_beacons) TYPE zif_abapgit_definitions=>ty_string_tt. METHODS is_line_patched IMPORTING iv_index TYPE i RETURNING VALUE(rv_patched) TYPE abap_bool RAISING zcx_abapgit_exception. METHODS set_patch_by_old_diff IMPORTING is_diff_old TYPE zif_abapgit_definitions=>ty_diff iv_patch_flag TYPE abap_bool. PROTECTED SECTION. PRIVATE SECTION. TYPES: ty_regexset_tt TYPE STANDARD TABLE OF REF TO cl_abap_regex WITH KEY table_line. DATA mt_beacons TYPE zif_abapgit_definitions=>ty_string_tt. DATA mt_diff TYPE zif_abapgit_definitions=>ty_diffs_tt. DATA ms_stats TYPE zif_abapgit_definitions=>ty_count. DATA mv_compare_mode TYPE c LENGTH 1. DATA mv_ignore_case TYPE abap_bool. METHODS unpack IMPORTING !iv_new TYPE xstring !iv_old TYPE xstring EXPORTING !et_new TYPE rswsourcet !et_old TYPE rswsourcet. METHODS map_beacons. METHODS shortlist. METHODS create_regex_set RETURNING VALUE(rt_regex_set) TYPE ty_regexset_tt. METHODS compute_and_render IMPORTING !it_new TYPE rswsourcet !it_old TYPE rswsourcet RETURNING VALUE(rt_diff) TYPE zif_abapgit_definitions=>ty_diffs_tt. METHODS calculate_stats. METHODS adjust_diff. ENDCLASS. CLASS zcl_abapgit_diff IMPLEMENTATION. METHOD adjust_diff. " ABAP kernel diff traverses files from bottom up which leads to odd display of diffs " SAP won't adjust this kernel service so we will do it here " https://github.com/abapGit/abapGit/issues/4395 TYPES: BEGIN OF ty_diff_block, start TYPE i, len TYPE i, END OF ty_diff_block. DATA: lv_block_begin TYPE i, lv_block_end TYPE i, ls_diff_block TYPE ty_diff_block, lt_diff_block TYPE STANDARD TABLE OF ty_diff_block WITH DEFAULT KEY. FIELD-SYMBOLS: <ls_diff> LIKE LINE OF mt_diff, <ls_diff_begin> LIKE LINE OF mt_diff, <ls_diff_end> LIKE LINE OF mt_diff. " Determine start and length of diff blocks LOOP AT mt_diff ASSIGNING <ls_diff>. IF <ls_diff>-result = zif_abapgit_definitions=>c_diff-insert OR <ls_diff>-result = zif_abapgit_definitions=>c_diff-delete. IF ls_diff_block IS INITIAL. ls_diff_block-start = sy-tabix. ENDIF. ls_diff_block-len = ls_diff_block-len + 1. ELSEIF ls_diff_block-start IS NOT INITIAL. APPEND ls_diff_block TO lt_diff_block. CLEAR ls_diff_block. ENDIF. ENDLOOP. " For each diff block, check if beginning is same as end of block " If yes, move diff block down LOOP AT lt_diff_block INTO ls_diff_block. DO ls_diff_block-len TIMES. lv_block_begin = ls_diff_block-start + sy-index - 1. READ TABLE mt_diff ASSIGNING <ls_diff_begin> INDEX lv_block_begin. IF sy-subrc <> 0. EXIT. ENDIF. lv_block_end = ls_diff_block-start + ls_diff_block-len + sy-index - 1. READ TABLE mt_diff ASSIGNING <ls_diff_end> INDEX lv_block_end. IF sy-subrc <> 0. EXIT. ENDIF. CASE <ls_diff_begin>-result. WHEN zif_abapgit_definitions=>c_diff-insert. IF <ls_diff_begin>-new = <ls_diff_end>-new. <ls_diff_begin>-old_num = <ls_diff_end>-old_num. <ls_diff_begin>-old = <ls_diff_end>-old. <ls_diff_end>-result = <ls_diff_begin>-result. CLEAR: <ls_diff_begin>-result, <ls_diff_end>-old_num, <ls_diff_end>-old. ELSE. EXIT. ENDIF. WHEN zif_abapgit_definitions=>c_diff-delete. IF <ls_diff_begin>-old = <ls_diff_end>-old. <ls_diff_begin>-new_num = <ls_diff_end>-new_num. <ls_diff_begin>-new = <ls_diff_end>-new. <ls_diff_end>-result = <ls_diff_begin>-result. CLEAR: <ls_diff_begin>-result, <ls_diff_end>-new_num, <ls_diff_end>-new. ELSE. EXIT. ENDIF. WHEN OTHERS. EXIT. ENDCASE. ENDDO. ENDLOOP. ENDMETHOD. METHOD calculate_stats. FIELD-SYMBOLS: <ls_diff> LIKE LINE OF mt_diff. LOOP AT mt_diff ASSIGNING <ls_diff>. CASE <ls_diff>-result. WHEN zif_abapgit_definitions=>c_diff-insert. ms_stats-insert = ms_stats-insert + 1. WHEN zif_abapgit_definitions=>c_diff-delete. ms_stats-delete = ms_stats-delete + 1. WHEN zif_abapgit_definitions=>c_diff-update. ms_stats-update = ms_stats-update + 1. ENDCASE. ENDLOOP. ENDMETHOD. METHOD compute_and_render. DATA: lv_i TYPE i, ls_diff LIKE LINE OF rt_diff, lt_delta TYPE STANDARD TABLE OF rsedcresul WITH DEFAULT KEY. FIELD-SYMBOLS: <ls_old> LIKE LINE OF it_old, <ls_new> LIKE LINE OF it_new, <ls_delta> LIKE LINE OF lt_delta. " Note: Ignore case is for keywords, variables, types etc, but not for literals CALL FUNCTION 'RS_CMP_COMPUTE_DELTA' EXPORTING compare_mode = mv_compare_mode ignore_case_differences = mv_ignore_case TABLES text_tab1 = it_new text_tab2 = it_old text_tab_res = lt_delta EXCEPTIONS parameter_invalid = 1 difference_not_found = 2 OTHERS = 3. IF sy-subrc = 0. " Process delta LOOP AT lt_delta ASSIGNING <ls_delta>. CLEAR ls_diff. IF <ls_delta>-line1 > 0. lv_i = <ls_delta>-line1. ls_diff-old_num = lv_i. ls_diff-old = <ls_delta>-text1. ENDIF. IF <ls_delta>-line2 > 0. lv_i = <ls_delta>-line2. ls_diff-new_num = lv_i. ls_diff-new = <ls_delta>-text2. ENDIF. IF <ls_delta>-flag1 = 'D'. ls_diff-result = zif_abapgit_definitions=>c_diff-delete. ELSEIF <ls_delta>-flag2 = 'I'. ls_diff-result = zif_abapgit_definitions=>c_diff-insert. ELSEIF <ls_delta>-flag1 = 'M' AND <ls_delta>-flag2 = 'M'. ls_diff-result = zif_abapgit_definitions=>c_diff-update. ELSEIF <ls_delta>-flag1 = '' AND <ls_delta>-flag2 = ''. ls_diff-result = zif_abapgit_definitions=>c_diff-unchanged. ELSE. ASSERT 0 = 1. " unknown comparison result ENDIF. APPEND ls_diff TO rt_diff. ENDLOOP. ELSEIF sy-subrc = 2. " Identical input LOOP AT it_old ASSIGNING <ls_old>. CLEAR ls_diff. ls_diff-old_num = sy-tabix. ls_diff-old = <ls_old>. READ TABLE it_new ASSIGNING <ls_new> INDEX sy-tabix. ASSERT sy-subrc = 0. ls_diff-new_num = sy-tabix. ls_diff-new = <ls_new>. APPEND ls_diff TO rt_diff. ENDLOOP. ELSE. ASSERT 0 = 1. " incorrect function call ENDIF. ENDMETHOD. METHOD constructor. DATA: lt_new TYPE rswsourcet, lt_old TYPE rswsourcet. mv_compare_mode = 1. IF iv_ignore_indentation = abap_true. mv_compare_mode = mv_compare_mode + 1. ENDIF. IF iv_ignore_comments = abap_true. mv_compare_mode = mv_compare_mode + 2. ENDIF. mv_ignore_case = iv_ignore_case. unpack( EXPORTING iv_new = iv_new iv_old = iv_old IMPORTING et_new = lt_new et_old = lt_old ). mt_diff = compute_and_render( it_new = lt_new it_old = lt_old ). adjust_diff( ). calculate_stats( ). map_beacons( ). shortlist( ). ENDMETHOD. METHOD create_regex_set. DATA: lo_regex TYPE REF TO cl_abap_regex, lt_regex TYPE zif_abapgit_definitions=>ty_string_tt, lv_regex LIKE LINE OF lt_regex. APPEND '^\s*(CLASS|FORM|MODULE|REPORT|METHOD|INTERFACE|FUNCTION)\s' TO lt_regex. APPEND '^\s*(CLASS|INTERFACE|FUNCTION|TYPE)-POOL\s' TO lt_regex. APPEND '^\s*(START|END)-OF-SELECTION(\s|\.)' TO lt_regex. APPEND '^\s*INITIALIZATION(\s|\.)' TO lt_regex. APPEND '^\s*(TOP-OF-PAGE|END-OF-PAGE)(\s|\.)' TO lt_regex. APPEND '^\s*AT\s*(SELECTION-SCREEN|LINE-SELECTION|USER-COMMAND|PF\d+)(\s|\.)' TO lt_regex. APPEND '^\s*(DEFINE|ENHANCEMENT)\s' TO lt_regex. LOOP AT lt_regex INTO lv_regex. CREATE OBJECT lo_regex EXPORTING pattern = lv_regex ignore_case = abap_true. APPEND lo_regex TO rt_regex_set. ENDLOOP. ENDMETHOD. METHOD get. rt_diff = mt_diff. ENDMETHOD. METHOD get_beacons. rt_beacons = mt_beacons. ENDMETHOD. METHOD is_line_patched. FIELD-SYMBOLS: <ls_diff> TYPE zif_abapgit_definitions=>ty_diff. READ TABLE mt_diff INDEX iv_index ASSIGNING <ls_diff>. IF sy-subrc = 0. rv_patched = <ls_diff>-patch_flag. ELSE. zcx_abapgit_exception=>raise( |Diff line not found { iv_index }| ). ENDIF. ENDMETHOD. METHOD map_beacons. DATA: lv_beacon_idx TYPE i VALUE co_starting_beacon, lv_offs TYPE i, lv_beacon_str TYPE string, lv_beacon_2lev TYPE string, lv_submatch TYPE string, lo_regex TYPE REF TO cl_abap_regex, lt_regex TYPE ty_regexset_tt. FIELD-SYMBOLS: <ls_diff> LIKE LINE OF mt_diff. lt_regex = create_regex_set( ). LOOP AT mt_diff ASSIGNING <ls_diff>. CLEAR lv_offs. <ls_diff>-beacon = lv_beacon_idx. LOOP AT lt_regex INTO lo_regex. FIND FIRST OCCURRENCE OF REGEX lo_regex IN <ls_diff>-new SUBMATCHES lv_submatch. IF sy-subrc = 0. " Match lv_beacon_str = <ls_diff>-new. lv_submatch = to_upper( lv_submatch ). " Get rid of comments and end of line FIND FIRST OCCURRENCE OF '.' IN lv_beacon_str MATCH OFFSET lv_offs. IF sy-subrc <> 0. FIND FIRST OCCURRENCE OF '"' IN lv_beacon_str MATCH OFFSET lv_offs. ENDIF. IF lv_offs > 0. lv_beacon_str = lv_beacon_str(lv_offs). ENDIF. lv_beacon_str = condense( val = lv_beacon_str del = ` ` ). IF lv_submatch = 'CLASS'. lv_beacon_2lev = lv_beacon_str. ELSEIF lv_submatch = 'METHOD'. lv_beacon_str = lv_beacon_2lev && ` => ` && lv_beacon_str. ENDIF. APPEND lv_beacon_str TO mt_beacons. lv_beacon_idx = sy-tabix. <ls_diff>-beacon = lv_beacon_idx. EXIT. "Loop ENDIF. ENDLOOP. ENDLOOP. ENDMETHOD. METHOD set_patch_by_old_diff. FIELD-SYMBOLS: <ls_diff> TYPE zif_abapgit_definitions=>ty_diff. LOOP AT mt_diff ASSIGNING <ls_diff> USING KEY new_num WHERE old = is_diff_old-old AND new = is_diff_old-new AND new_num = is_diff_old-new_num AND old_num = is_diff_old-old_num. <ls_diff>-patch_flag = iv_patch_flag. EXIT. ENDLOOP. ENDMETHOD. METHOD set_patch_new. FIELD-SYMBOLS: <ls_diff> TYPE zif_abapgit_definitions=>ty_diff. READ TABLE mt_diff WITH TABLE KEY new_num COMPONENTS new_num = iv_line_new ASSIGNING <ls_diff>. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Invalid new line number { iv_line_new }| ). ENDIF. <ls_diff>-patch_flag = iv_patch_flag. ENDMETHOD. METHOD set_patch_old. FIELD-SYMBOLS: <ls_diff> TYPE zif_abapgit_definitions=>ty_diff. READ TABLE mt_diff WITH TABLE KEY old_num COMPONENTS old_num = iv_line_old ASSIGNING <ls_diff>. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Invalid old line number { iv_line_old }| ). ENDIF. <ls_diff>-patch_flag = iv_patch_flag. ENDMETHOD. METHOD shortlist. DATA: lv_index TYPE i. FIELD-SYMBOLS: <ls_diff> LIKE LINE OF mt_diff. IF lines( mt_diff ) < 20. LOOP AT mt_diff ASSIGNING <ls_diff>. <ls_diff>-short = abap_true. ENDLOOP. ELSE. LOOP AT mt_diff TRANSPORTING NO FIELDS WHERE NOT result IS INITIAL AND short = abap_false. lv_index = sy-tabix. DO 8 TIMES. " Backward READ TABLE mt_diff INDEX ( lv_index - sy-index ) ASSIGNING <ls_diff>. IF sy-subrc <> 0 OR <ls_diff>-short = abap_true. " tab bound or prev marker EXIT. ENDIF. <ls_diff>-short = abap_true. ENDDO. DO 8 TIMES. " Forward READ TABLE mt_diff INDEX ( lv_index + sy-index - 1 ) ASSIGNING <ls_diff>. IF sy-subrc <> 0. " tab bound reached EXIT. ENDIF. CHECK <ls_diff>-short = abap_false. " skip marked <ls_diff>-short = abap_true. ENDDO. ENDLOOP. ENDIF. ENDMETHOD. METHOD stats. rs_count = ms_stats. ENDMETHOD. METHOD unpack. DATA: lv_new TYPE string, lv_old TYPE string, lv_new_last TYPE c LENGTH 1, lv_old_last TYPE c LENGTH 1. lv_new = zcl_abapgit_convert=>xstring_to_string_utf8( iv_new ). lv_old = zcl_abapgit_convert=>xstring_to_string_utf8( iv_old ). " Check if one value contains a final newline but the other not " If yes, add a special characters that's visible in diff render IF lv_new IS NOT INITIAL. lv_new_last = substring( val = lv_new off = strlen( lv_new ) - 1 ). ENDIF. IF lv_old IS NOT INITIAL. lv_old_last = substring( val = lv_old off = strlen( lv_old ) - 1 ). ENDIF. IF lv_new_last = zif_abapgit_definitions=>c_newline AND lv_old_last <> zif_abapgit_definitions=>c_newline AND lv_old IS NOT INITIAL. lv_old = lv_old && cl_abap_char_utilities=>form_feed. ELSEIF lv_new_last <> zif_abapgit_definitions=>c_newline AND lv_old_last = zif_abapgit_definitions=>c_newline AND lv_new IS NOT INITIAL. lv_new = lv_new && cl_abap_char_utilities=>form_feed. ENDIF. SPLIT lv_new AT zif_abapgit_definitions=>c_newline INTO TABLE et_new. SPLIT lv_old AT zif_abapgit_definitions=>c_newline INTO TABLE et_old. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 26069, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 763, 62, 38690, 62, 1350, 7807, 41876, 1312, 26173, 8924, 352, 13, 198, 198, 9, 18533, 1366, 318, 41002, 23, 1912, 351, 649, 6615, 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, 3605, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 727, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 46430, 62, 521, 298, 341, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 46430, 62, 15944, 220, 220, 220, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 46430, 62, 7442, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 26069, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 67, 10203, 62, 926, 13, 198, 220, 220, 220, 337, 36252, 50, 9756, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 9127, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9127, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 17147, 62, 3605, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1370, 62, 3605, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 17147, 62, 32109, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 17147, 62, 727, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1370, 62, 727, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 17147, 62, 32109, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 1350, 37256, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 1350, 37256, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8841, 62, 926, 13, 198, 220, 220, 220, 337, 36252, 50, 318, 62, 1370, 62, 8071, 1740, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 9630, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 8071, 1740, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 17147, 62, 1525, 62, 727, 62, 26069, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 26069, 62, 727, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 26069, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 17147, 62, 32109, 41876, 450, 499, 62, 30388, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 260, 25636, 2617, 62, 926, 41876, 49053, 9795, 43679, 3963, 4526, 37, 5390, 537, 62, 397, 499, 62, 260, 25636, 13315, 35374, 3084, 62, 1370, 13, 628, 220, 220, 220, 42865, 45079, 62, 1350, 37256, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8841, 62, 926, 13, 198, 220, 220, 220, 42865, 45079, 62, 26069, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 67, 10203, 62, 926, 13, 198, 220, 220, 220, 42865, 13845, 62, 34242, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9127, 13, 198, 220, 220, 220, 42865, 285, 85, 62, 5589, 533, 62, 14171, 41876, 269, 406, 49494, 352, 13, 198, 220, 220, 220, 42865, 285, 85, 62, 46430, 62, 7442, 41876, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 337, 36252, 50, 555, 8002, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3605, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 727, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 316, 62, 3605, 41876, 374, 2032, 82, 454, 66, 316, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 316, 62, 727, 41876, 374, 2032, 82, 454, 66, 316, 13, 198, 220, 220, 220, 337, 36252, 50, 3975, 62, 1350, 37256, 13, 198, 220, 220, 220, 337, 36252, 50, 1790, 4868, 13, 198, 220, 220, 220, 337, 36252, 50, 2251, 62, 260, 25636, 62, 2617, 198, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_html_action_utils DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS parse_post_form_data IMPORTING !it_post_data TYPE cnht_post_data_tab !iv_upper_cased TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rt_fields) TYPE tihttpnvp . CLASS-METHODS parse_fields IMPORTING !iv_string TYPE clike !iv_upper_cased TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rt_fields) TYPE tihttpnvp . CLASS-METHODS parse_fields_upper_case_name IMPORTING !iv_string TYPE clike RETURNING VALUE(rt_fields) TYPE tihttpnvp . CLASS-METHODS translate_postdata IMPORTING !it_postdata TYPE cnht_post_data_tab RETURNING VALUE(rv_string) TYPE string . CLASS-METHODS get_field IMPORTING !iv_name TYPE string !it_field TYPE tihttpnvp !iv_decode TYPE abap_bool DEFAULT abap_false CHANGING !cg_field TYPE any . CLASS-METHODS jump_encode IMPORTING !iv_obj_type TYPE tadir-object !iv_obj_name TYPE tadir-obj_name RETURNING VALUE(rv_string) TYPE string . CLASS-METHODS dir_encode IMPORTING !iv_path TYPE string RETURNING VALUE(rv_string) TYPE string . CLASS-METHODS file_encode IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !ig_file TYPE any RETURNING VALUE(rv_string) TYPE string . CLASS-METHODS obj_encode IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !ig_object TYPE any RETURNING VALUE(rv_string) TYPE string . CLASS-METHODS dbkey_encode IMPORTING !is_key TYPE zif_abapgit_persistence=>ty_content RETURNING VALUE(rv_string) TYPE string . PROTECTED SECTION. PRIVATE SECTION. CLASS-METHODS field_keys_to_upper CHANGING !ct_fields TYPE tihttpnvp . CLASS-METHODS add_field IMPORTING !iv_name TYPE string !ig_field TYPE any CHANGING !ct_field TYPE tihttpnvp . CLASS-METHODS unescape IMPORTING !iv_string TYPE string RETURNING VALUE(rv_string) TYPE string . ENDCLASS. CLASS ZCL_ABAPGIT_HTML_ACTION_UTILS IMPLEMENTATION. METHOD add_field. DATA ls_field LIKE LINE OF ct_field. FIELD-SYMBOLS <lg_src> TYPE any. ls_field-name = iv_name. CASE cl_abap_typedescr=>describe_by_data( ig_field )->kind. WHEN cl_abap_typedescr=>kind_elem. ls_field-value = ig_field. WHEN cl_abap_typedescr=>kind_struct. ASSIGN COMPONENT iv_name OF STRUCTURE ig_field TO <lg_src>. ASSERT <lg_src> IS ASSIGNED. ls_field-value = <lg_src>. WHEN OTHERS. ASSERT 0 = 1. ENDCASE. APPEND ls_field TO ct_field. ENDMETHOD. METHOD dbkey_encode. DATA: lt_fields TYPE tihttpnvp. add_field( EXPORTING iv_name = 'TYPE' ig_field = is_key-type CHANGING ct_field = lt_fields ). add_field( EXPORTING iv_name = 'VALUE' ig_field = is_key-value CHANGING ct_field = lt_fields ). rv_string = cl_http_utility=>if_http_utility~fields_to_string( lt_fields ). ENDMETHOD. METHOD dir_encode. DATA: lt_fields TYPE tihttpnvp. add_field( EXPORTING iv_name = 'PATH' ig_field = iv_path CHANGING ct_field = lt_fields ). rv_string = cl_http_utility=>if_http_utility~fields_to_string( lt_fields ). ENDMETHOD. METHOD field_keys_to_upper. FIELD-SYMBOLS <ls_field> LIKE LINE OF ct_fields. LOOP AT ct_fields ASSIGNING <ls_field>. <ls_field>-name = to_upper( <ls_field>-name ). ENDLOOP. ENDMETHOD. METHOD file_encode. DATA: lt_fields TYPE tihttpnvp. add_field( EXPORTING iv_name = 'KEY' ig_field = iv_key CHANGING ct_field = lt_fields ). add_field( EXPORTING iv_name = 'PATH' ig_field = ig_file CHANGING ct_field = lt_fields ). add_field( EXPORTING iv_name = 'FILENAME' ig_field = ig_file CHANGING ct_field = lt_fields ). rv_string = cl_http_utility=>if_http_utility~fields_to_string( lt_fields ). ENDMETHOD. METHOD get_field. DATA: lv_value TYPE string. FIELD-SYMBOLS: <ls_field> LIKE LINE OF it_field, <lg_dest> TYPE any. READ TABLE it_field ASSIGNING <ls_field> WITH KEY name = iv_name. IF sy-subrc IS NOT INITIAL. RETURN. ENDIF. lv_value = <ls_field>-value. IF iv_decode = abap_true. lv_value = cl_http_utility=>unescape_url( escaped = lv_value ). ENDIF. CASE cl_abap_typedescr=>describe_by_data( cg_field )->kind. WHEN cl_abap_typedescr=>kind_elem. cg_field = lv_value. WHEN cl_abap_typedescr=>kind_struct. ASSIGN COMPONENT iv_name OF STRUCTURE cg_field TO <lg_dest>. ASSERT <lg_dest> IS ASSIGNED. <lg_dest> = lv_value. WHEN OTHERS. ASSERT 0 = 1. ENDCASE. ENDMETHOD. METHOD jump_encode. DATA: lt_fields TYPE tihttpnvp. add_field( EXPORTING iv_name = 'TYPE' ig_field = iv_obj_type CHANGING ct_field = lt_fields ). add_field( EXPORTING iv_name = 'NAME' ig_field = iv_obj_name CHANGING ct_field = lt_fields ). rv_string = cl_http_utility=>if_http_utility~fields_to_string( lt_fields ). ENDMETHOD. METHOD obj_encode. DATA: lt_fields TYPE tihttpnvp. add_field( EXPORTING iv_name = 'KEY' ig_field = iv_key CHANGING ct_field = lt_fields ). add_field( EXPORTING iv_name = 'OBJ_TYPE' ig_field = ig_object CHANGING ct_field = lt_fields ). add_field( EXPORTING iv_name = 'OBJ_NAME' ig_field = ig_object CHANGING ct_field = lt_fields ). rv_string = cl_http_utility=>if_http_utility~fields_to_string( lt_fields ). ENDMETHOD. METHOD parse_fields. DATA: lt_substrings TYPE string_table, ls_field LIKE LINE OF rt_fields. FIELD-SYMBOLS <lv_substring> LIKE LINE OF lt_substrings. SPLIT iv_string AT '&' INTO TABLE lt_substrings. LOOP AT lt_substrings ASSIGNING <lv_substring>. CLEAR ls_field. <lv_substring> = unescape( <lv_substring> ). " On attempt to change unescaping -> run unit tests to check ! ls_field-name = substring_before( val = <lv_substring> sub = '=' ). ls_field-value = substring_after( val = <lv_substring> sub = '=' ). IF ls_field IS INITIAL. " Not a field with proper structure CONTINUE. ENDIF. APPEND ls_field TO rt_fields. ENDLOOP. IF iv_upper_cased = abap_true. field_keys_to_upper( CHANGING ct_fields = rt_fields ). ENDIF. ENDMETHOD. METHOD parse_fields_upper_case_name. rt_fields = parse_fields( iv_string = iv_string iv_upper_cased = abap_true ). ENDMETHOD. METHOD parse_post_form_data. DATA lv_serialized_post_data TYPE string. lv_serialized_post_data = translate_postdata( it_post_data ). IF iv_upper_cased = abap_true. rt_fields = parse_fields_upper_case_name( lv_serialized_post_data ). ELSE. rt_fields = parse_fields( lv_serialized_post_data ). ENDIF. ENDMETHOD. METHOD translate_postdata. DATA: lt_post_data TYPE cnht_post_data_tab, ls_last_line TYPE cnht_post_data_line, lv_last_line_index TYPE i. IF it_postdata IS INITIAL. RETURN. "Nothing to do ENDIF. lt_post_data = it_postdata. "Save the last line for separate merge, because we don't need its trailing spaces WHILE ls_last_line IS INITIAL. lv_last_line_index = lines( lt_post_data ). READ TABLE lt_post_data INTO ls_last_line INDEX lv_last_line_index. DELETE lt_post_data INDEX lv_last_line_index. ENDWHILE. CONCATENATE LINES OF lt_post_data INTO rv_string IN CHARACTER MODE RESPECTING BLANKS. CONCATENATE rv_string ls_last_line INTO rv_string IN CHARACTER MODE. ENDMETHOD. METHOD unescape. * do not use cl_http_utility as it does strange things with the encoding rv_string = iv_string. * todo, more to be added here REPLACE ALL OCCURRENCES OF '%3F' IN rv_string WITH '?'. REPLACE ALL OCCURRENCES OF '%3D' IN rv_string WITH '='. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 2673, 62, 26791, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 21136, 62, 7353, 62, 687, 62, 7890, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 7353, 62, 7890, 41876, 269, 77, 4352, 62, 7353, 62, 7890, 62, 8658, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 45828, 62, 66, 839, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 25747, 8, 41876, 46668, 4023, 77, 36133, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 21136, 62, 25747, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8841, 220, 220, 220, 220, 220, 220, 41876, 537, 522, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 45828, 62, 66, 839, 220, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 25747, 8, 41876, 46668, 4023, 77, 36133, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 21136, 62, 25747, 62, 45828, 62, 7442, 62, 3672, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8841, 220, 220, 220, 220, 220, 220, 41876, 537, 522, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 25747, 8, 41876, 46668, 4023, 77, 36133, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 15772, 62, 7353, 7890, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 7353, 7890, 41876, 269, 77, 4352, 62, 7353, 62, 7890, 62, 8658, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 8841, 8, 41876, 4731, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 651, 62, 3245, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3672, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 3245, 220, 41876, 46668, 4023, 77, 36133, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 12501, 1098, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 66, 70, 62, 3245, 220, 41876, 597, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 4391, 62, 268, 8189, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26801, 62, 4906, 220, 220, 220, 220, 41876, 36264, 343, 12, 15252, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 26801, 62, 3672, 220, 220, 220, 220, 41876, 36264, 343, 12, 26801, 62, 3672, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 8841, 8, 41876, 4731, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 26672, 62, 268, 8189, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6978, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 8841, 8, 41876, 4731, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 2393, 62, 268, 8189, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 328, 62, 7753, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 597, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 8841, 8, 41876, 4731, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 26181, 62, 268, 8189, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 328, 62, 15252, 220, 220, 220, 220, 220, 220, 41876, 597, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 8841, 8, 41876, 4731, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 20613, 2539, 62, 268, 8189, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 11299, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 8841, 8, 41876, 4731, 764, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 2214, 62, 13083, 62, 1462, 62, 45828, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 25747, 41876, 46668, 4023, 77, 36133, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 751, 62, 3245, 198, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS y_check_empty_if_branches DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC . PUBLIC SECTION. METHODS constructor . PROTECTED SECTION. METHODS inspect_tokens REDEFINITION. PRIVATE SECTION. DATA branch_counter TYPE i VALUE 0. DATA found_statement TYPE abap_bool VALUE abap_false. CONSTANTS first_if TYPE i VALUE 1. METHODS set_found_statement_to_true. METHODS set_found_statement_to_false. METHODS begin_of_statement IMPORTING statement TYPE sstmnt. METHODS branch_search_in_next_stmnt IMPORTING index TYPE i statement TYPE sstmnt. METHODS get_first_token_from_index IMPORTING index TYPE i RETURNING VALUE(result) TYPE stokesx. METHODS is_statement_type_excluded IMPORTING statement TYPE sstmnt RETURNING VALUE(result) TYPE abap_bool. ENDCLASS. CLASS y_check_empty_if_branches IMPLEMENTATION. METHOD begin_of_statement. CASE get_first_token_from_index( statement-from )-str. WHEN 'IF'. branch_counter = branch_counter + 1. WHEN 'ENDIF'. branch_counter = branch_counter - 1. WHEN 'ELSEIF' OR 'ELSE'. found_statement = abap_false. WHEN OTHERS. found_statement = abap_true. ENDCASE. ENDMETHOD. METHOD branch_search_in_next_stmnt. CHECK branch_counter = first_if AND found_statement = abap_false. CASE get_first_token_from_index( statement-to + 1 )-str. WHEN 'ELSEIF' OR 'ELSE' OR 'ENDIF'. DATA(check_configuration) = detect_check_configuration( statement_wa ). IF check_configuration IS INITIAL. RETURN. ENDIF. raise_error( statement_level = statement_wa-level statement_index = index statement_from = statement_wa-from error_priority = check_configuration-prio ). ENDCASE. ENDMETHOD. METHOD constructor. super->constructor( ). settings-pseudo_comment = '"#EC EMPTY_IF_BRANCH' ##NO_TEXT. settings-disable_threshold_selection = abap_true. settings-threshold = 0. settings-documentation = |{ c_docs_path-checks }empty-if-branches.md|. relevant_statement_types = VALUE #( ( scan_struc_stmnt_type-if ) ). relevant_structure_types = VALUE #( ( ) ). set_check_message( 'Empty IF-Branch should be removed!' ). ENDMETHOD. METHOD get_first_token_from_index. LOOP AT ref_scan_manager->tokens ASSIGNING FIELD-SYMBOL(<token>) FROM index WHERE type = 'I'. IF result IS INITIAL. result = <token>. EXIT. ENDIF. ENDLOOP. ENDMETHOD. METHOD inspect_tokens. CHECK is_statement_type_excluded( statement ) = abap_false. statement_wa = statement. begin_of_statement( statement ). set_found_statement_to_true( ). branch_search_in_next_stmnt( index = index statement = statement ). set_found_statement_to_false( ). ENDMETHOD. METHOD is_statement_type_excluded. result = xsdbool( statement-type = scan_stmnt_type-empty OR statement-type = scan_stmnt_type-comment OR statement-type = scan_stmnt_type-comment_in_stmnt OR statement-type = scan_stmnt_type-pragma ). ENDMETHOD. METHOD set_found_statement_to_false. IF branch_counter < first_if. found_statement = abap_false. ENDIF. ENDMETHOD. METHOD set_found_statement_to_true. IF branch_counter > first_if. found_statement = abap_true. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9122, 62, 28920, 62, 361, 62, 1671, 12140, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 331, 62, 9122, 62, 8692, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 764, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 10104, 62, 83, 482, 641, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 8478, 62, 24588, 41876, 1312, 26173, 8924, 657, 13, 198, 220, 220, 220, 42865, 1043, 62, 26090, 41876, 450, 499, 62, 30388, 26173, 8924, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 717, 62, 361, 41876, 1312, 26173, 8924, 352, 13, 628, 220, 220, 220, 337, 36252, 50, 900, 62, 9275, 62, 26090, 62, 1462, 62, 7942, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 9275, 62, 26090, 62, 1462, 62, 9562, 13, 628, 220, 220, 220, 337, 36252, 50, 2221, 62, 1659, 62, 26090, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 2643, 41876, 264, 301, 76, 429, 13, 628, 220, 220, 220, 337, 36252, 50, 8478, 62, 12947, 62, 259, 62, 19545, 62, 301, 76, 429, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 6376, 220, 220, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 41876, 264, 301, 76, 429, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 11085, 62, 30001, 62, 6738, 62, 9630, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 6376, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 336, 3369, 87, 13, 628, 220, 220, 220, 337, 36252, 50, 318, 62, 26090, 62, 4906, 62, 1069, 10341, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 2643, 220, 220, 220, 220, 41876, 264, 301, 76, 429, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 331, 62, 9122, 62, 28920, 62, 361, 62, 1671, 12140, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 2221, 62, 1659, 62, 26090, 13, 198, 220, 220, 220, 42001, 651, 62, 11085, 62, 30001, 62, 6738, 62, 9630, 7, 2643, 12, 6738, 1267, 12, 2536, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 5064, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 8478, 62, 24588, 796, 8478, 62, 24588, 1343, 352, 13, 628, 220, 220, 220, 220, 220, 42099, 705, 10619, 5064, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 8478, 62, 24588, 796, 8478, 62, 24588, 532, 352, 13, 628, 220, 220, 220, 220, 220, 42099, 705, 3698, 5188, 5064, 6, 6375, 705, 3698, 5188, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 1043, 62, 26090, 796, 450, 499, 62, 9562, 13, 628, 220, 220, 220, 220, 220, 42099, 440, 4221, 4877, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1043, 62, 26090, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 23578, 34, 11159, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 8478, 62, 12947, 62, 259, 62, 19545, 62, 301, 76, 429, 13, 198, 220, 220, 220, 5870, 25171, 8478, 62, 24588, 796, 717, 62, 361, 5357, 1043, 62, 26090, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 42001, 651, 62, 11085, 62, 30001, 62, 6738, 62, 9630, 7, 2643, 12, 1462, 1343, 352, 1267, 12, 2536, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 3698, 5188, 5064, 6, 198, 220, 220, 220, 220, 220, 220, 220, 6375, 705, 3698, 5188, 6, 198, 220, 220, 220, 220, 220, 220, 220, 6375, 705, 10619, 5064, 4458, 628, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 9122, 62, 11250, 3924, 8, 796, 4886, 62, 9122, 62, 11250, 3924, 7, 2643, 62, 10247, 6739, 628, 220, 220, 220, 220, 220, 220, 220, 16876, 2198, 62, 11250, 3924, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 220, 220, 5298, 62, 18224, 7, 2643, 62, 5715, 220, 220, 220, 220, 796, 2643, 62, 10247, 12, 5715, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 9630, 220, 220, 220, 220, 796, 6376, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 6738, 220, 220, 220, 220, 220, 796, 2643, 62, 10247, 12, 6738, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4049, 62, 49336, 220, 220, 220, 220, 220, 796, 2198, 62, 11250, 3924, 12, 3448, 78, 6739, 198, 220, 220, 220, 23578, 34, 11159, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 628, 220, 220, 220, 6460, 12, 7752, 12003, 62, 23893, 796, 705, 1, 2, 2943, 38144, 9936, 62, 5064, 62, 11473, 1565, 3398, 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, 28920, 12, 361, 12, 1671, 12140, 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, 361, 1267,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
* Inspired and reuses some code of this * https://github.com/larshp/dependencies/blob/master/zdependencies3.prog.abap class lcl_app definition final. public section. types ty_devc_range type range of tadir-devclass. methods run importing i_packages type ty_devc_range i_external_only type abap_bool i_only_deps_from type ty_devc_range optional. private section. types: begin of ty_dependency, package type devclass, obj_type type tadir-object, obj_name type tadir-obj_name, dep_package type devclass, dep_obj_type type tadir-object, dep_obj_name type tadir-obj_name, cnt type i, end of ty_dependency. types: tty_dependency type standard table of ty_dependency with default key. methods select importing i_package type devclass * i_only_deps_from type ty_devc_range returning value(rt_objs) type tty_dependency. methods display importing it_objs type tty_dependency. methods collect_dependencies importing i_tadir_obj type zif_abapgit_definitions=>ty_tadir changing ct_objs type tty_dependency. endclass. class lcl_app implementation. method run. data lt_objs_all type tty_dependency. data lt_objs type tty_dependency. data lt_packages type table of devclass. data lv_package like line of lt_packages. field-symbols <obj> like line of lt_objs_all. if i_packages is initial. message 'Enter a package' type 'E' display like 'S'. return. endif. select devclass into table lt_packages from tdevc where devclass in i_packages. loop at lt_packages into lv_package. lt_objs = select( i_package = lv_package ). append lines of lt_objs to lt_objs_all. endloop. if i_only_deps_from is not initial. delete lt_objs_all where dep_package not in i_only_deps_from. endif. if i_external_only = abap_true. loop at lt_objs_all assigning <obj>. if <obj>-package = <obj>-dep_package. delete lt_objs_all index sy-tabix. endif. endloop. endif. display( lt_objs_all ). endmethod. method display. data lx type ref to cx_root. try . data grid type ref to zcl_dependency_view_base. grid = zcl_dependency_view_base=>create_simple( it_content = it_objs iv_title = 'Cross dependencies' iv_technames = abap_true ). grid->set_aggregations( 'cnt' ). grid->set_sorting( 'obj_type, ^obj_name, dep_package, dep_obj_type, dep_obj_name' ). grid->display( ). catch cx_static_check into lx. data msg type string. msg = lx->get_text( ). message msg type 'E' display like 'S'. endtry. endmethod. method collect_dependencies. data lt_environment type senvi_tab. data obj like line of ct_objs. data lv_obj_type type euobj-id. field-symbols <env> like line of lt_environment. lv_obj_type = i_tadir_obj-object. call function 'REPOSITORY_ENVIRONMENT_SET' exporting obj_type = lv_obj_type object_name = i_tadir_obj-obj_name tables environment = lt_environment exceptions batch = 1 batchjob_error = 2 not_executed = 3 others = 4. if sy-subrc = 3. return. elseif sy-subrc <> 0. break-point. endif. data lt_deps type if_ris_environment_types=>ty_t_senvi_tadir. cl_wb_ris_environment=>convert_senvi_to_tadir( exporting senvi = lt_environment importing senvi_tadir = lt_deps ). sort lt_deps by ref_obj_type ascending ref_obj_name ascending. delete adjacent duplicates from lt_deps comparing ref_obj_type ref_obj_name. field-symbols <dep> like line of lt_deps. obj-cnt = 1. obj-package = i_tadir_obj-devclass. obj-obj_type = i_tadir_obj-object. obj-obj_name = i_tadir_obj-obj_name. loop at lt_deps assigning <dep>. if not <dep>-ref_obj_name+0(1) co 'ZY'. continue. endif. obj-dep_obj_type = <dep>-ref_obj_type. obj-dep_obj_name = <dep>-ref_obj_name. select single devclass from tadir into obj-dep_package where pgmid = 'R3TR' and object = <dep>-ref_obj_type and obj_name = <dep>-ref_obj_name. if sy-subrc <> 0. continue. endif. if not obj-dep_package+0(1) co '$ZY'. continue. endif. append obj to ct_objs. endloop. endmethod. method select. data obj like line of rt_objs. data lt_tadir type zif_abapgit_definitions=>ty_tadir_tt. field-symbols <tadir> like line of lt_tadir. try . lt_tadir = zcl_abapgit_factory=>get_tadir( )->read( i_package ). " Selects subpackages ??? to check catch zcx_abapgit_exception. endtry. loop at lt_tadir assigning <tadir> where object <> 'DEVC'. obj-package = i_package. obj-obj_type = <tadir>-object. obj-obj_name = <tadir>-obj_name. collect_dependencies( exporting i_tadir_obj = <tadir> changing ct_objs = rt_objs ). endloop. endmethod. endclass.
[ 9, 45827, 290, 302, 2664, 617, 2438, 286, 428, 198, 9, 3740, 1378, 12567, 13, 785, 14, 75, 5406, 79, 14, 45841, 3976, 14, 2436, 672, 14, 9866, 14, 89, 45841, 3976, 18, 13, 1676, 70, 13, 397, 499, 198, 198, 4871, 300, 565, 62, 1324, 6770, 2457, 13, 198, 220, 1171, 2665, 13, 628, 220, 220, 220, 3858, 1259, 62, 7959, 66, 62, 9521, 2099, 2837, 286, 36264, 343, 12, 7959, 4871, 13, 628, 220, 220, 220, 5050, 1057, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 43789, 2099, 1259, 62, 7959, 66, 62, 9521, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 22615, 62, 8807, 2099, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 8807, 62, 10378, 82, 62, 6738, 2099, 1259, 62, 7959, 66, 62, 9521, 11902, 13, 628, 220, 2839, 2665, 13, 628, 220, 220, 220, 3858, 25, 198, 220, 220, 220, 220, 220, 2221, 286, 1259, 62, 45841, 1387, 11, 198, 220, 220, 220, 220, 220, 220, 220, 5301, 2099, 1614, 4871, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26181, 62, 4906, 2099, 36264, 343, 12, 15252, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26181, 62, 3672, 2099, 36264, 343, 12, 26801, 62, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1207, 62, 26495, 2099, 1614, 4871, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1207, 62, 26801, 62, 4906, 2099, 36264, 343, 12, 15252, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1207, 62, 26801, 62, 3672, 2099, 36264, 343, 12, 26801, 62, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 269, 429, 2099, 1312, 11, 198, 220, 220, 220, 220, 220, 886, 286, 1259, 62, 45841, 1387, 13, 198, 220, 220, 220, 3858, 25, 198, 220, 220, 220, 220, 220, 256, 774, 62, 45841, 1387, 2099, 3210, 3084, 286, 1259, 62, 45841, 1387, 351, 4277, 1994, 13, 628, 220, 220, 220, 5050, 2922, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 26495, 2099, 1614, 4871, 198, 9, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 8807, 62, 10378, 82, 62, 6738, 2099, 1259, 62, 7959, 66, 62, 9521, 198, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 17034, 62, 672, 8457, 8, 2099, 256, 774, 62, 45841, 1387, 13, 628, 220, 220, 220, 5050, 3359, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 672, 8457, 2099, 256, 774, 62, 45841, 1387, 13, 628, 220, 220, 220, 5050, 2824, 62, 45841, 3976, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 83, 324, 343, 62, 26801, 2099, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 198, 220, 220, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 220, 220, 269, 83, 62, 672, 8457, 2099, 256, 774, 62, 45841, 1387, 13, 198, 198, 437, 4871, 13, 198, 198, 4871, 300, 565, 62, 1324, 7822, 13, 198, 220, 2446, 1057, 13, 628, 220, 220, 220, 1366, 300, 83, 62, 672, 8457, 62, 439, 2099, 256, 774, 62, 45841, 1387, 13, 198, 220, 220, 220, 1366, 300, 83, 62, 672, 8457, 2099, 256, 774, 62, 45841, 1387, 13, 198, 220, 220, 220, 1366, 300, 83, 62, 43789, 2099, 3084, 286, 1614, 4871, 13, 198, 220, 220, 220, 1366, 300, 85, 62, 26495, 588, 1627, 286, 300, 83, 62, 43789, 13, 198, 220, 220, 220, 2214, 12, 1837, 2022, 10220, 1279, 26801, 29, 588, 1627, 286, 300, 83, 62, 672, 8457, 62, 439, 13, 628, 220, 220, 220, 611, 1312, 62, 43789, 318, 4238, 13, 198, 220, 220, 220, 220, 220, 3275, 705, 17469, 257, 5301, 6, 2099, 705, 36, 6, 3359, 588, 705, 50, 4458, 198, 220, 220, 220, 220, 220, 1441, 13, 198, 220, 220, 220, 45762, 13, 628, 220, 220, 220, 2922, 1614, 4871, 656, 3084, 300, 83, 62, 43789, 422, 256, 7959, 66, 810, 1614, 4871, 287, 1312, 62, 43789, 13, 628, 220, 220, 220, 9052, 379, 300, 83, 62, 43789, 656, 300, 85, 62, 26495, 13, 198, 220, 220, 220, 220, 220, 300, 83, 62, 672, 8457, 796, 2922, 7, 1312, 62, 26495, 796, 300, 85, 62, 26495, 6739, 198, 220, 220, 220, 220, 220, 24443, 3951, 286, 300, 83, 62, 672, 8457, 284, 300, 83, 62, 672, 8457, 62, 439, 13, 198, 220, 220, 220, 886, 26268, 13, 628, 220, 220, 220, 611, 1312, 62, 8807, 62, 10378, 82, 62, 6738, 318, 407, 4238, 13, 198, 220, 220, 220, 220, 220, 12233, 300, 83, 62, 672, 8457, 62, 439, 810, 1207, 62, 26495, 407, 287, 1312, 62, 8807, 62, 10378, 82, 62, 6738, 13, 198, 220, 220, 220, 45762, 13, 628, 220, 220, 220, 611, 1312, 62, 22615, 62, 8807, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 9052, 379, 300, 83, 62, 672, 8457, 62, 439, 38875, 1279, 26801, 28401, 198, 220, 220, 220, 220, 220, 220, 220, 611, 1279, 26801, 29, 12, 26495, 796, 1279, 26801, 29, 12, 10378, 62, 26495, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12233, 300, 83, 62, 672, 8457, 62, 439, 6376, 827, 12, 8658, 844, 13, 198, 220, 220, 220, 220, 220, 220, 220, 45762, 13, 198, 220, 220, 220, 220, 220, 886, 26268, 13, 198, 220, 220, 220, 45762, 13, 628, 220, 220, 220, 3359, 7, 300, 83, 62, 672, 8457, 62, 439, 6739, 628, 220, 886, 24396, 13, 628, 198, 220, 2446, 3359, 13, 198, 220, 220, 220, 1366, 300, 87, 2099, 1006, 284, 43213, 62, 15763, 13, 198, 220, 220, 220, 1949, 764, 198, 220, 220, 220, 220, 220, 1366, 10706, 2099, 1006, 284, 1976, 565, 62, 45841, 1387, 62, 1177, 62, 8692, 13, 198, 220, 220, 220, 220, 220, 10706, 796, 1976, 565, 62, 45841, 1387, 62, 1177, 62, 8692, 14804, 17953, 62, 36439, 7, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
FUNCTION ZTHREAD_START. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" VALUE(IV_RUNNABLE) TYPE STRING *" EXPORTING *" VALUE(EV_RESULT) TYPE STRING *" VALUE(EV_ERROR) TYPE STRING *"---------------------------------------------------------------------- data lo_runnable type ref to zif_runnable. call transformation id source xml iv_runnable result runnable = lo_runnable. try. data(lo_result) = lo_runnable->run( ). catch cx_root into data(lo_failure). "all exceptions are serializable by default call transformation id source error = lo_failure result xml ev_error. return. endtry. if lo_result is not bound. lo_result = new zcl_dummy_runnable_result( ). endif. call transformation id source result = lo_result result xml ev_result. endfunction.
[ 42296, 4177, 2849, 1168, 4221, 15675, 62, 2257, 7227, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 14565, 26491, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 3824, 62, 49, 4944, 4535, 19146, 8, 41876, 220, 19269, 2751, 198, 9, 1, 220, 7788, 15490, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 20114, 62, 19535, 16724, 8, 41876, 220, 19269, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 20114, 62, 24908, 8, 41876, 220, 19269, 2751, 198, 9, 1, 10097, 23031, 628, 220, 1366, 2376, 62, 5143, 77, 540, 2099, 1006, 284, 1976, 361, 62, 5143, 77, 540, 13, 628, 220, 869, 13389, 4686, 198, 220, 2723, 35555, 21628, 62, 5143, 77, 540, 198, 220, 1255, 1057, 77, 540, 796, 2376, 62, 5143, 77, 540, 13, 628, 220, 1949, 13, 628, 220, 220, 220, 220, 220, 1366, 7, 5439, 62, 20274, 8, 796, 2376, 62, 5143, 77, 540, 3784, 5143, 7, 220, 6739, 628, 220, 220, 220, 4929, 43213, 62, 15763, 656, 1366, 7, 5439, 62, 32165, 495, 737, 198, 220, 220, 220, 220, 220, 366, 439, 13269, 389, 11389, 13821, 416, 4277, 198, 220, 220, 220, 220, 220, 869, 13389, 4686, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2723, 4049, 796, 2376, 62, 32165, 495, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 35555, 819, 62, 18224, 13, 198, 220, 220, 220, 220, 220, 1441, 13, 628, 220, 886, 28311, 13, 628, 220, 611, 2376, 62, 20274, 318, 407, 5421, 13, 198, 220, 220, 220, 2376, 62, 20274, 796, 649, 1976, 565, 62, 67, 13513, 62, 5143, 77, 540, 62, 20274, 7, 220, 6739, 198, 220, 45762, 13, 628, 220, 869, 13389, 4686, 198, 220, 220, 220, 2723, 1255, 796, 2376, 62, 20274, 198, 220, 220, 220, 1255, 35555, 819, 62, 20274, 13, 628, 198, 437, 8818, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_apack_definitions PUBLIC. TYPES: BEGIN OF ty_dependency, group_id TYPE string, artifact_id TYPE string, version TYPE string, sem_version TYPE zif_abapgit_definitions=>ty_version, git_url TYPE string, target_package TYPE devclass, END OF ty_dependency, tt_dependencies TYPE STANDARD TABLE OF ty_dependency WITH NON-UNIQUE DEFAULT KEY, ty_repository_type TYPE string, BEGIN OF ty_descriptor_wo_dependencies, group_id TYPE string, artifact_id TYPE string, version TYPE string, sem_version TYPE zif_abapgit_definitions=>ty_version, repository_type TYPE ty_repository_type, git_url TYPE string, END OF ty_descriptor_wo_dependencies, BEGIN OF ty_descriptor. INCLUDE TYPE ty_descriptor_wo_dependencies. TYPES: dependencies TYPE tt_dependencies, END OF ty_descriptor, tt_descriptor TYPE STANDARD TABLE OF ty_descriptor WITH NON-UNIQUE DEFAULT KEY. CONSTANTS c_dot_apack_manifest TYPE string VALUE '.apack-manifest.xml' ##NO_TEXT. CONSTANTS c_repository_type_abapgit TYPE ty_repository_type VALUE 'abapGit' ##NO_TEXT. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 397, 499, 18300, 62, 499, 441, 62, 4299, 50101, 44731, 13, 628, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 45841, 1387, 11, 198, 220, 220, 220, 220, 220, 1448, 62, 312, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 24127, 62, 312, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2196, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 5026, 62, 9641, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9641, 11, 198, 220, 220, 220, 220, 220, 17606, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2496, 62, 26495, 41876, 1614, 4871, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 45841, 1387, 11, 628, 220, 220, 220, 256, 83, 62, 45841, 3976, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 1259, 62, 45841, 1387, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374, 11, 628, 220, 220, 220, 1259, 62, 260, 1930, 37765, 62, 4906, 41876, 4731, 11, 628, 220, 220, 220, 347, 43312, 3963, 1259, 62, 20147, 1968, 273, 62, 21638, 62, 45841, 3976, 11, 198, 220, 220, 220, 220, 220, 1448, 62, 312, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 24127, 62, 312, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2196, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 5026, 62, 9641, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9641, 11, 198, 220, 220, 220, 220, 220, 16099, 62, 4906, 41876, 1259, 62, 260, 1930, 37765, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 17606, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 20147, 1968, 273, 62, 21638, 62, 45841, 3976, 11, 628, 220, 220, 220, 347, 43312, 3963, 1259, 62, 20147, 1968, 273, 13, 198, 220, 220, 220, 220, 220, 3268, 5097, 52, 7206, 41876, 1259, 62, 20147, 1968, 273, 62, 21638, 62, 45841, 3976, 13, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 20086, 41876, 256, 83, 62, 45841, 3976, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 20147, 1968, 273, 11, 628, 220, 220, 220, 256, 83, 62, 20147, 1968, 273, 41876, 49053, 9795, 43679, 3963, 1259, 62, 20147, 1968, 273, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374, 13, 628, 220, 7102, 2257, 1565, 4694, 269, 62, 26518, 62, 499, 441, 62, 805, 8409, 41876, 4731, 26173, 8924, 45302, 499, 441, 12, 805, 8409, 13, 19875, 6, 22492, 15285, 62, 32541, 13, 198, 220, 7102, 2257, 1565, 4694, 269, 62, 260, 1930, 37765, 62, 4906, 62, 397, 499, 18300, 41876, 1259, 62, 260, 1930, 37765, 62, 4906, 26173, 8924, 705, 397, 499, 38, 270, 6, 22492, 15285, 62, 32541, 13, 198, 198, 10619, 41358, 49836, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_sfbs DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. PROTECTED SECTION. PRIVATE SECTION. METHODS: get RETURNING VALUE(ro_bfs) TYPE REF TO cl_sfw_bfs RAISING zcx_abapgit_exception. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_SFBS IMPLEMENTATION. METHOD get. DATA: lv_bfset TYPE sfw_bset. lv_bfset = ms_item-obj_name. TRY. ro_bfs = cl_sfw_bfs=>get_bfs( lv_bfset ). ro_bfs->free( ). ro_bfs = cl_sfw_bfs=>get_bfs( lv_bfset ). CATCH cx_pak_invalid_data cx_pak_invalid_state cx_pak_not_authorized. zcx_abapgit_exception=>raise( 'Error from CL_SFW_BFS=>GET_BFS' ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~changed_by. DATA: ls_data TYPE sfw_bs. ls_data = get( )->get_header_data( ). rv_user = ls_data-changedby. IF rv_user IS INITIAL. rv_user = ls_data-author. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_bfset TYPE sfw_bset, lt_delete TYPE sfw_bstab, lt_msgtab TYPE sprot_u_tab. lv_bfset = ms_item-obj_name. APPEND lv_bfset TO lt_delete. cl_sfw_activate=>delete_sfbs( EXPORTING p_bsets = lt_delete IMPORTING p_msgtab = lt_msgtab ). READ TABLE lt_msgtab WITH KEY severity = 'E' TRANSPORTING NO FIELDS. IF sy-subrc = 0. zcx_abapgit_exception=>raise( 'Error deleting SFBS' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lv_bfset TYPE sfw_bset, lo_bfs TYPE REF TO cl_sfw_bfs, ls_header TYPE sfw_bs, lv_name_32 TYPE sfw_name32, lv_name_80 TYPE sfw_name80, lt_assigned_bf TYPE sfw_bfbs_outtab, lt_nested_bfs TYPE sfw_bsbs_outtab, lt_parent_bfs TYPE sfw_bs_bs_parent_outtab. io_xml->read( EXPORTING iv_name = 'HEADER' CHANGING cg_data = ls_header ). io_xml->read( EXPORTING iv_name = 'NAME32' CHANGING cg_data = lv_name_32 ). io_xml->read( EXPORTING iv_name = 'NAME80' CHANGING cg_data = lv_name_80 ). io_xml->read( EXPORTING iv_name = 'ASSIGNED_BF' CHANGING cg_data = lt_assigned_bf ). io_xml->read( EXPORTING iv_name = 'NESTED_BFS' CHANGING cg_data = lt_nested_bfs ). io_xml->read( EXPORTING iv_name = 'PARENT_BFS' CHANGING cg_data = lt_parent_bfs ). lv_bfset = ms_item-obj_name. TRY. lo_bfs = cl_sfw_bfs=>create_bfs( lv_bfset ). CATCH cx_pak_not_authorized cx_pak_invalid_state cx_pak_invalid_data. zcx_abapgit_exception=>raise( 'error in CL_SFW_BFS=>CREATE_BFS' ). ENDTRY. ls_header-author = sy-uname. ls_header-createdon = sy-datum. lo_bfs->set_header_data( ls_header ). lo_bfs->set_texts( p_32 = lv_name_32 p_80 = lv_name_80 ). lo_bfs->set_assigned_bf( lt_assigned_bf ). lo_bfs->set_assigned_bfs( lt_nested_bfs ). lo_bfs->set_nested_parent( lt_parent_bfs ). set_default_package( iv_package ). tadir_insert( iv_package ). lo_bfs->save_all( ). zcl_abapgit_objects_activation=>add_item( ms_item ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: ls_tadir TYPE tadir, lv_bfset TYPE sfw_bset. lv_bfset = ms_item-obj_name. IF cl_sfw_bfs=>check_existence( lv_bfset ) = abap_false. RETURN. ENDIF. SELECT SINGLE * FROM tadir INTO ls_tadir WHERE pgmid = 'R3TR' AND object = ms_item-obj_type AND obj_name = ms_item-obj_name. IF ls_tadir IS INITIAL. RETURN. ENDIF. rv_bool = abap_true. ENDMETHOD. METHOD zif_abapgit_object~get_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-ddic = abap_true. rs_metadata-delete_tadir = abap_true. ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = abap_false. ENDMETHOD. METHOD zif_abapgit_object~jump. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ms_item-obj_name object_type = 'SFBS' in_new_window = abap_true. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lo_bfs TYPE REF TO cl_sfw_bfs, ls_header TYPE sfw_bs, lv_name_32 TYPE sfw_name32, lv_name_80 TYPE sfw_name80, lt_assigned_bf TYPE sfw_bfbs_outtab, lt_nested_bfs TYPE sfw_bsbs_outtab, lt_parent_bfs TYPE sfw_bs_bs_parent_outtab. IF zif_abapgit_object~exists( ) = abap_false. RETURN. ENDIF. lo_bfs = get( ). ls_header = lo_bfs->get_header_data( ). CLEAR: ls_header-author, ls_header-createdon, ls_header-changedby, ls_header-changedon, ls_header-timestamp. lo_bfs->get_texts( IMPORTING p_32 = lv_name_32 p_80 = lv_name_80 ). lt_assigned_bf = lo_bfs->get_assigned_bf( ). lt_nested_bfs = lo_bfs->get_nested_bfs( ). lt_parent_bfs = lo_bfs->get_nested_parent( ). io_xml->add( ig_data = ls_header iv_name = 'HEADER' ). io_xml->add( ig_data = lv_name_32 iv_name = 'NAME32' ). io_xml->add( ig_data = lv_name_80 iv_name = 'NAME80' ). io_xml->add( ig_data = lt_assigned_bf iv_name = 'ASSIGNED_BF' ). io_xml->add( ig_data = lt_nested_bfs iv_name = 'NESTED_BFS' ). io_xml->add( ig_data = lt_parent_bfs iv_name = 'PARENT_BFS' ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 28202, 1443, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 628, 220, 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, 651, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 65, 9501, 8, 41876, 4526, 37, 5390, 537, 62, 28202, 86, 62, 65, 9501, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 20802, 4462, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 651, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 19881, 2617, 41876, 264, 44482, 62, 1443, 316, 13, 628, 198, 220, 220, 220, 300, 85, 62, 19881, 2617, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 686, 62, 65, 9501, 796, 537, 62, 28202, 86, 62, 65, 9501, 14804, 1136, 62, 65, 9501, 7, 300, 85, 62, 19881, 2617, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 686, 62, 65, 9501, 3784, 5787, 7, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 686, 62, 65, 9501, 796, 537, 62, 28202, 86, 62, 65, 9501, 14804, 1136, 62, 65, 9501, 7, 300, 85, 62, 19881, 2617, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 41091, 62, 259, 12102, 62, 7890, 43213, 62, 41091, 62, 259, 12102, 62, 5219, 43213, 62, 41091, 62, 1662, 62, 19721, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 12331, 422, 7852, 62, 20802, 54, 62, 33, 10652, 14804, 18851, 62, 33, 10652, 6, 6739, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 7890, 41876, 264, 44482, 62, 1443, 13, 628, 220, 220, 220, 43979, 62, 7890, 796, 651, 7, 1267, 3784, 1136, 62, 25677, 62, 7890, 7, 6739, 628, 220, 220, 220, 374, 85, 62, 7220, 796, 43979, 62, 7890, 12, 40985, 1525, 13, 628, 220, 220, 220, 16876, 374, 85, 62, 7220, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 374, 85, 62, 7220, 796, 43979, 62, 7890, 12, 9800, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 33678, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 19881, 2617, 220, 41876, 264, 44482, 62, 1443, 316, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 33678, 41876, 264, 44482, 62, 65, 39029, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 19662, 8658, 41876, 599, 10599, 62, 84, 62, 8658, 13, 628, 198, 220, 220, 220, 300, 85, 62, 19881, 2617, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 198, 220, 220, 220, 43504, 10619, 300, 85, 62, 19881, 2617, 5390, 300, 83, 62, 33678, 13, 628, 220, 220, 220, 537, 62, 28202, 86, 62, 39022, 14804, 33678, 62, 28202, 1443, 7, 7788, 15490, 2751, 279, 62, 1443, 1039, 796, 300, 83, 62, 33678, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 279, 62, 19662, 8658, 796, 300, 83, 62, 19662, 8658, 6739, 628, 220, 220, 220, 20832, 43679, 300, 83, 62, 19662, 8658, 13315, 35374, 19440, 796, 705, 36, 6, 48213, 4303, 9863, 2751, 8005, 18930, 3698, 5258, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 12331, 34817, 14362, 4462, 6, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 8906, 48499, 1096, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 19881, 2617, 220, 220, 220, 220, 220, 220, 41876, 264, 44482, 62, 1443, 316, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 65, 9501, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 28202, 86, 62, 65, 9501, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 25677, 220, 220, 220, 220, 220, 41876, 264, 44482, 62, 1443, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 3672, 62, 2624, 220, 220, 220, 220, 41876, 264, 44482, 62, 3672, 2624, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 3672, 62, 1795, 220, 220, 220, 220, 41876, 264, 44482, 62, 3672, 1795, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 562, 3916, 62, 19881, 41876, 264, 44482, 62, 19881, 1443, 62, 448, 8658, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 77, 7287, 62, 65, 9501, 220, 41876, 264, 44482, 62, 1443, 1443, 62, 448, 8658, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 8000, 62, 65, 9501, 220, 41876, 264, 44482, 62, 1443, 62, 1443, 62, 8000, 62, 448, 8658, 13, 628, 198, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 37682, 1137, 6, 198, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_auth DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. CLASS-METHODS: is_allowed IMPORTING iv_authorization TYPE yif_abapgit_auth=>ty_authorization iv_param TYPE string OPTIONAL RETURNING VALUE(rv_allowed) TYPE abap_bool. ENDCLASS. CLASS YCL_ABAPGIT_AUTH IMPLEMENTATION. METHOD is_allowed. DATA: li_auth TYPE REF TO yif_abapgit_auth. TRY. CREATE OBJECT li_auth TYPE ('YCL_ABAPGIT_AUTH_EXIT'). rv_allowed = li_auth->is_allowed( iv_authorization = iv_authorization iv_param = iv_param ). CATCH cx_sy_create_object_error. rv_allowed = abap_true. ENDTRY. ENDMETHOD. ENDCLASS.
[ 31631, 331, 565, 62, 397, 499, 18300, 62, 18439, 5550, 20032, 17941, 44731, 25261, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 318, 62, 40845, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 9800, 1634, 220, 41876, 331, 361, 62, 397, 499, 18300, 62, 18439, 14804, 774, 62, 9800, 1634, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 17143, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 40845, 8, 41876, 450, 499, 62, 30388, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 575, 5097, 62, 6242, 2969, 38, 2043, 62, 32, 24318, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 318, 62, 40845, 13, 628, 220, 220, 220, 42865, 25, 7649, 62, 18439, 41876, 4526, 37, 5390, 331, 361, 62, 397, 499, 18300, 62, 18439, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 7649, 62, 18439, 41876, 19203, 56, 5097, 62, 6242, 2969, 38, 2043, 62, 32, 24318, 62, 6369, 2043, 27691, 198, 220, 220, 220, 220, 220, 220, 220, 374, 85, 62, 40845, 796, 7649, 62, 18439, 3784, 271, 62, 40845, 7, 21628, 62, 9800, 1634, 796, 21628, 62, 9800, 1634, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 17143, 220, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 17143, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 17953, 62, 15252, 62, 18224, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 85, 62, 40845, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS /hec1/cl_config_det_db_server DEFINITION PUBLIC INHERITING FROM /hec1/cl_lib_d_superclass FINAL CREATE PUBLIC . PUBLIC SECTION. PROTECTED SECTION. METHODS execute REDEFINITION . METHODS execute_tree REDEFINITION . PRIVATE SECTION. DATA mr_act_param TYPE REF TO data . DATA mr_act_param1 TYPE REF TO data . DATA mr_act_param_datac TYPE REF TO data . DATA mr_act_param_db_node TYPE REF TO data . DATA mr_act_param_db_storage_amount TYPE REF TO data . DATA mr_act_param_delete TYPE REF TO data . DATA mr_act_param_dlvy TYPE REF TO data . DATA mr_act_param_instance TYPE REF TO data . DATA mr_act_param_phasing TYPE REF TO data . DATA mr_act_param_tier_bck_amount TYPE REF TO data . METHODS determine_db_instance IMPORTING !is_ctx TYPE /bobf/s_frw_ctx_det !it_key TYPE /bobf/t_frw_key !io_read TYPE REF TO /bobf/if_frw_read !io_modify TYPE REF TO /bobf/if_frw_modify EXPORTING !eo_message TYPE REF TO /bobf/if_frw_message !et_failed_key TYPE /bobf/t_frw_key RAISING /bobf/cx_frw . METHODS determine_db_instance_cr IMPORTING !is_ctx TYPE /bobf/s_frw_ctx_det !it_key TYPE /bobf/t_frw_key !io_read TYPE REF TO /bobf/if_frw_read !io_modify TYPE REF TO /bobf/if_frw_modify EXPORTING !eo_message TYPE REF TO /bobf/if_frw_message !et_failed_key TYPE /bobf/t_frw_key RAISING /bobf/cx_frw . METHODS determine_db_node IMPORTING !is_ctx TYPE /bobf/s_frw_ctx_det !it_key TYPE /bobf/t_frw_key !io_read TYPE REF TO /bobf/if_frw_read !io_modify TYPE REF TO /bobf/if_frw_modify EXPORTING !eo_message TYPE REF TO /bobf/if_frw_message !et_failed_key TYPE /bobf/t_frw_key RAISING /bobf/cx_frw . METHODS determine_db_node_cr IMPORTING !is_ctx TYPE /bobf/s_frw_ctx_det !it_key TYPE /bobf/t_frw_key !io_read TYPE REF TO /bobf/if_frw_read !io_modify TYPE REF TO /bobf/if_frw_modify EXPORTING !eo_message TYPE REF TO /bobf/if_frw_message !et_failed_key TYPE /bobf/t_frw_key RAISING /bobf/cx_frw . METHODS determine_db_server IMPORTING !is_ctx TYPE /bobf/s_frw_ctx_det !it_key TYPE /bobf/t_frw_key !io_read TYPE REF TO /bobf/if_frw_read !io_modify TYPE REF TO /bobf/if_frw_modify EXPORTING !eo_message TYPE REF TO /bobf/if_frw_message !et_failed_key TYPE /bobf/t_frw_key RAISING /bobf/cx_frw . METHODS determine_db_server_cr IMPORTING !is_ctx TYPE /bobf/s_frw_ctx_det !it_key TYPE /bobf/t_frw_key !io_read TYPE REF TO /bobf/if_frw_read !io_modify TYPE REF TO /bobf/if_frw_modify EXPORTING !eo_message TYPE REF TO /bobf/if_frw_message !et_failed_key TYPE /bobf/t_frw_key RAISING /bobf/cx_frw . METHODS determine_db_server_instance IMPORTING !is_ctx TYPE /bobf/s_frw_ctx_det !it_key TYPE /bobf/t_frw_key !io_read TYPE REF TO /bobf/if_frw_read !io_modify TYPE REF TO /bobf/if_frw_modify EXPORTING !eo_message TYPE REF TO /bobf/if_frw_message !et_failed_key TYPE /bobf/t_frw_key RAISING /bobf/cx_frw . METHODS determine_db_server_instanc_cr IMPORTING !is_ctx TYPE /bobf/s_frw_ctx_det !it_key TYPE /bobf/t_frw_key !io_read TYPE REF TO /bobf/if_frw_read !io_modify TYPE REF TO /bobf/if_frw_modify EXPORTING !eo_message TYPE REF TO /bobf/if_frw_message !et_failed_key TYPE /bobf/t_frw_key RAISING /bobf/cx_frw . METHODS determine_db_server_pc_cr IMPORTING !is_ctx TYPE /bobf/s_frw_ctx_det !it_key TYPE /bobf/t_frw_key !io_read TYPE REF TO /bobf/if_frw_read !io_modify TYPE REF TO /bobf/if_frw_modify EXPORTING !eo_message TYPE REF TO /bobf/if_frw_message !et_failed_key TYPE /bobf/t_frw_key RAISING /bobf/cx_frw . METHODS determine_db_server_perf_cat IMPORTING !is_ctx TYPE /bobf/s_frw_ctx_det !it_key TYPE /bobf/t_frw_key !io_read TYPE REF TO /bobf/if_frw_read !io_modify TYPE REF TO /bobf/if_frw_modify EXPORTING !eo_message TYPE REF TO /bobf/if_frw_message !et_failed_key TYPE /bobf/t_frw_key RAISING /bobf/cx_frw . METHODS determine_db_storage IMPORTING !is_ctx TYPE /bobf/s_frw_ctx_det !it_key TYPE /bobf/t_frw_key !io_read TYPE REF TO /bobf/if_frw_read !io_modify TYPE REF TO /bobf/if_frw_modify EXPORTING !eo_message TYPE REF TO /bobf/if_frw_message !et_failed_key TYPE /bobf/t_frw_key RAISING /bobf/cx_frw . METHODS determine_db_storage_cr IMPORTING !is_ctx TYPE /bobf/s_frw_ctx_det !it_key TYPE /bobf/t_frw_key !io_read TYPE REF TO /bobf/if_frw_read !io_modify TYPE REF TO /bobf/if_frw_modify EXPORTING !eo_message TYPE REF TO /bobf/if_frw_message !et_failed_key TYPE /bobf/t_frw_key RAISING /bobf/cx_frw . METHODS determine_db_storage_amount IMPORTING !is_ctx TYPE /bobf/s_frw_ctx_det !it_key TYPE /bobf/t_frw_key !io_read TYPE REF TO /bobf/if_frw_read !io_modify TYPE REF TO /bobf/if_frw_modify EXPORTING !eo_message TYPE REF TO /bobf/if_frw_message !et_failed_key TYPE /bobf/t_frw_key RAISING /bobf/cx_frw . METHODS determine_db_storage_amount_cr IMPORTING !is_ctx TYPE /bobf/s_frw_ctx_det !it_key TYPE /bobf/t_frw_key !io_read TYPE REF TO /bobf/if_frw_read !io_modify TYPE REF TO /bobf/if_frw_modify EXPORTING !eo_message TYPE REF TO /bobf/if_frw_message !et_failed_key TYPE /bobf/t_frw_key RAISING /bobf/cx_frw . METHODS determine_db_storage_backup IMPORTING !is_ctx TYPE /bobf/s_frw_ctx_det !it_key TYPE /bobf/t_frw_key !io_read TYPE REF TO /bobf/if_frw_read !io_modify TYPE REF TO /bobf/if_frw_modify EXPORTING !eo_message TYPE REF TO /bobf/if_frw_message !et_failed_key TYPE /bobf/t_frw_key RAISING /bobf/cx_frw . METHODS determine_db_storage_backup_cr IMPORTING !is_ctx TYPE /bobf/s_frw_ctx_det !it_key TYPE /bobf/t_frw_key !io_read TYPE REF TO /bobf/if_frw_read !io_modify TYPE REF TO /bobf/if_frw_modify EXPORTING !eo_message TYPE REF TO /bobf/if_frw_message !et_failed_key TYPE /bobf/t_frw_key RAISING /bobf/cx_frw . ENDCLASS. CLASS /hec1/cl_config_det_db_server IMPLEMENTATION. METHOD determine_db_instance. DATA: lt_db_serv_inst TYPE /hec1/t_data_db_server_inst_ct, lt_db_serv_inst_all TYPE /hec1/t_data_db_server_inst_ct, lt_instance_db TYPE /hec1/t_data_db_inst_ct, lt_instance_db_all TYPE /hec1/t_data_db_inst_ct, lt_inst_db_before TYPE /hec1/t_data_db_inst_ct, lt_tier TYPE /hec1/t_data_tier_ct, lt_tier_all TYPE /hec1/t_data_tier_ct, lt_act_param TYPE /hec1/t_act_create_db_node, lt_act_param_instance TYPE /hec1/t_act_update_instance_db, lt_phase TYPE /hec1/t_data_phase_ct, lt_act_param_phasing TYPE TABLE OF /hec1/s_act_phase_inherit. CLEAR: eo_message, et_failed_key. " Data before update io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_before_image = abap_true IMPORTING et_data = lt_inst_db_before ). " Data after update io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key IMPORTING et_data = lt_instance_db ). " Get DB server instance io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-instance_db-to_parent IMPORTING et_data = lt_db_serv_inst et_target_key = DATA(lt_db_serv_inst_key) ). /hec1/cl_config_helper=>get_general_data( EXPORTING iv_node_key = is_ctx-node_key it_key = it_key io_read = io_read IMPORTING ev_root_key = DATA(lv_root_key) er_landscape = DATA(lr_landscape) er_delivery_unit = DATA(lr_dlvy_unit) et_datacenter = DATA(lt_datacenter) et_failed_key = et_failed_key ). TRY. CASE is_ctx-det_key. " *************************************************************************** " Create mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-instance_db-create. " Get Tier io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_server_instance it_key = lt_db_serv_inst_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server_instance-to_parent IMPORTING et_data = lt_tier et_target_key = DATA(lt_tier_key) ). " Get all tiers for multitenancy io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-root it_key = VALUE #( ( key = lv_root_key ) ) iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-root-solution IMPORTING et_target_key = DATA(lt_solution_all_key) ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-solution it_key = lt_solution_all_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-solution-tier IMPORTING et_data = lt_tier_all et_target_key = DATA(lt_tier_all_key) ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-tier it_key = lt_tier_all_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-tier-db_server_instance IMPORTING et_data = lt_db_serv_inst_all et_target_key = DATA(lt_db_serv_inst_all_key) ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_server_instance it_key = lt_db_serv_inst_all_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server_instance-instance_db IMPORTING et_data = lt_instance_db_all ). LOOP AT lt_instance_db REFERENCE INTO DATA(lr_instance_db). lr_instance_db->hec_delete_visible = abap_false. "----------------------------------- " Set Value List Quantity - Cluster Type "----------------------------------- lr_instance_db->hec_dbst_nodety_clust_ty_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_cluster_type( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_dsi_dbstype_guid = lr_instance_db->hec_sol_tier_dsi_dbstype_guid iv_sol_dbst_alloc_nodety_guid = lr_instance_db->hec_sol_dbst_alloc_nodety_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). "----------------------------------- " Release instance for selection "----------------------------------- ASSIGN lt_db_serv_inst[ key = lr_instance_db->parent_key ] TO FIELD-SYMBOL(<fs_db_serv_inst>). IF <fs_db_serv_inst>-hec_sol_tier_stack_si_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_sol_tier_dsi_dbstype_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_sol_dbst_oper_sys_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_sol_dbst_impltype_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_sol_dbst_impty_instty_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_sol_dbst_imty_inty_al_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_row_selectable = abap_true. DATA(lv_release) = abap_true. ENDIF. IF lv_release <> lr_instance_db->hec_row_selectable. lr_instance_db->hec_row_selectable = lv_release. DATA(lv_data_changed) = abap_true. ENDIF. "----------------------------------- " Check instance status and switch "----------------------------------- DATA(lv_inst_status) = COND /hec1/config_instance_status( WHEN lr_instance_db->hec_dbst_nodety_clust_ty_guid IS NOT INITIAL AND lr_instance_db->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_instance_db->hec_instance_status. lr_instance_db->hec_instance_status = lv_inst_status. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Fill action table for create " instance DB action "----------------------------------- INSERT VALUE #( key = lr_instance_db->key parent_key = lr_instance_db->parent_key hec_cluster_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master hec_def_master_node = abap_true hec_db_node_qty = 1 ) INTO TABLE lt_act_param. "----------------------------------- " Modify instance DB "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_instance_db->key is_data = lr_instance_db ). ENDIF. CLEAR: lv_release, lv_inst_status, lv_data_changed. UNASSIGN <fs_db_serv_inst>. ENDLOOP. "----------------------------------- " Set create DB node action " to general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_create_db_node( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_node ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. "----------------------------------- " Set Update Instance DB action " to general "----------------------------------- IF lt_act_param_instance IS NOT INITIAL. CLEAR me->mr_act_param_instance. me->mr_act_param_instance = NEW /hec1/t_act_update_instance_db( lt_act_param_instance ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_instance_db ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_instance ). ENDIF. " *************************************************************************** " Update mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-instance_db-update. io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-root it_key = VALUE #( ( key = lv_root_key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-root-phase IMPORTING et_data = lt_phase ). LOOP AT lt_instance_db REFERENCE INTO lr_instance_db. ASSIGN lt_inst_db_before[ key = lr_instance_db->key ] TO FIELD-SYMBOL(<fs_inst_db_before>). IF <fs_inst_db_before> IS ASSIGNED. lr_instance_db->hec_delete_visible = abap_false. "----------------------------------- " Value List Quanitty "----------------------------------- " Cluster Type IF lr_instance_db->hec_dbst_nodety_clust_ty_guid <> <fs_inst_db_before>-hec_dbst_nodety_clust_ty_guid. lr_instance_db->hec_dbst_nodety_clust_ty_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_cluster_type( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_dsi_dbstype_guid = lr_instance_db->hec_sol_tier_dsi_dbstype_guid iv_sol_dbst_alloc_nodety_guid = lr_instance_db->hec_sol_dbst_alloc_nodety_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). lv_data_changed = abap_true. ENDIF. "cluster type has changed " HEC_DB_HSR_OP_MODE_VALUE IF lr_instance_db->hec_db_hsr_op_mode_value <> <fs_inst_db_before>-hec_db_hsr_op_mode_value. lr_instance_db->hec_db_hsr_op_mode_vlqt = COND #( WHEN 1 < lines( /rbp/cl_fpm_utilities=>get_characteristic_values( CONV #( 'HEC_DB_HSR_OP_MODE_VALUE' ) ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). ENDIF. "----------------------------------- " Master, standby or " worker node is added "----------------------------------- IF lr_instance_db->hec_dbst_nodety_clust_ty_guid = <fs_inst_db_before>-hec_dbst_nodety_clust_ty_guid AND ( lr_instance_db->hec_db_master_node_qty <> <fs_inst_db_before>-hec_db_master_node_qty OR lr_instance_db->hec_db_standby_node_qty <> <fs_inst_db_before>-hec_db_standby_node_qty OR lr_instance_db->hec_db_worker_node_qty <> <fs_inst_db_before>-hec_db_worker_node_qty ). "----------------------------------- " Non default master node "----------------------------------- IF lr_instance_db->hec_db_master_node_qty > <fs_inst_db_before>-hec_db_master_node_qty. " Add non default master node to action table INSERT VALUE #( key = lr_instance_db->key parent_key = lr_instance_db->parent_key hec_cluster_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master hec_def_master_node = abap_false hec_db_node_qty = lr_instance_db->hec_db_master_node_qty - <fs_inst_db_before>-hec_db_master_node_qty ) INTO TABLE lt_act_param. " Success message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>new_master_node_added iv_severity = /bobf/cm_frw=>co_severity_success iv_attr1 = CONV #( lr_instance_db->hec_db_master_node_qty - <fs_inst_db_before>-hec_db_master_node_qty ) CHANGING co_message = eo_message ). ELSEIF lr_instance_db->hec_db_master_node_qty < <fs_inst_db_before>-hec_db_master_node_qty. DATA(lv_attr_name) = /hec1/if_configuration_c=>sc_node_attribute-instance_db-hec_db_master_node_qty. " Error message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>object_no_not_higher is_origin_location = VALUE #( node_key = is_ctx-node_key key = lr_instance_db->key attributes = VALUE #( ( lv_attr_name ) ) ) CHANGING co_message = eo_message ). " Set node number to value before update lr_instance_db->hec_db_master_node_qty = <fs_inst_db_before>-hec_db_master_node_qty. lv_data_changed = abap_true. ELSEIF lr_instance_db->hec_db_master_node_limit_qty < lr_instance_db->hec_db_master_node_limit_qty. " Error message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>node_limit_is_exceeded is_origin_location = VALUE #( node_key = is_ctx-node_key key = lr_instance_db->key attributes = VALUE #( ( lv_attr_name ) ) ) CHANGING co_message = eo_message ). " Set node number to value before update lr_instance_db->hec_db_master_node_qty = <fs_inst_db_before>-hec_db_master_node_qty. lv_data_changed = abap_true. ENDIF. " IF lr_instance_db->hec_db_master_node_qty > <fs_inst_db_before>-hec_db_master_node_qty. "----------------------------------- " Standby node "----------------------------------- IF lr_instance_db->hec_db_standby_node_qty > <fs_inst_db_before>-hec_db_standby_node_qty. " Add non default master node to action table INSERT VALUE #( key = lr_instance_db->key parent_key = lr_instance_db->parent_key hec_cluster_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-standby hec_def_master_node = abap_false hec_db_node_qty = lr_instance_db->hec_db_standby_node_qty - <fs_inst_db_before>-hec_db_standby_node_qty ) INTO TABLE lt_act_param. " Success message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>new_standby_node_added iv_severity = /bobf/cm_frw=>co_severity_success iv_attr1 = CONV #( lr_instance_db->hec_db_standby_node_qty - <fs_inst_db_before>-hec_db_standby_node_qty ) CHANGING co_message = eo_message ). ELSEIF lr_instance_db->hec_db_standby_node_qty < <fs_inst_db_before>-hec_db_standby_node_qty. lv_attr_name = /hec1/if_configuration_c=>sc_node_attribute-instance_db-hec_db_standby_node_qty. " Error message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>object_no_not_higher is_origin_location = VALUE #( node_key = is_ctx-node_key key = lr_instance_db->key attributes = VALUE #( ( lv_attr_name ) ) ) CHANGING co_message = eo_message ). " Set node number to value before update lr_instance_db->hec_db_standby_node_qty = <fs_inst_db_before>-hec_db_standby_node_qty. lv_data_changed = abap_true. ELSEIF lr_instance_db->hec_db_standby_node_limit_qty < lr_instance_db->hec_db_standby_node_limit_qty. " Error message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>node_limit_is_exceeded is_origin_location = VALUE #( node_key = is_ctx-node_key key = lr_instance_db->key attributes = VALUE #( ( lv_attr_name ) ) ) CHANGING co_message = eo_message ). " Set node number to value before update lr_instance_db->hec_db_standby_node_qty = <fs_inst_db_before>-hec_db_standby_node_qty. lv_data_changed = abap_true. ENDIF. " IF lr_instance_db->hec_db_standby_node_qty > <fs_inst_db_before>-hec_db_standby_node_qty. "----------------------------------- " Worker node "----------------------------------- IF lr_instance_db->hec_db_worker_node_qty > <fs_inst_db_before>-hec_db_worker_node_qty. " Add non default master node to action table INSERT VALUE #( key = lr_instance_db->key parent_key = lr_instance_db->parent_key hec_cluster_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-worker hec_def_master_node = abap_false hec_db_node_qty = lr_instance_db->hec_db_worker_node_qty - <fs_inst_db_before>-hec_db_worker_node_qty ) INTO TABLE lt_act_param. " Success message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>new_worker_node_added iv_severity = /bobf/cm_frw=>co_severity_success iv_attr1 = CONV #( lr_instance_db->hec_db_worker_node_qty - <fs_inst_db_before>-hec_db_worker_node_qty ) CHANGING co_message = eo_message ). ELSEIF lr_instance_db->hec_db_worker_node_qty < <fs_inst_db_before>-hec_db_worker_node_qty. lv_attr_name = /hec1/if_configuration_c=>sc_node_attribute-instance_db-hec_db_worker_node_qty. " Error message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>object_no_not_higher is_origin_location = VALUE #( node_key = is_ctx-node_key key = lr_instance_db->key attributes = VALUE #( ( lv_attr_name ) ) ) CHANGING co_message = eo_message ). " Set node number to value before update lr_instance_db->hec_db_worker_node_qty = <fs_inst_db_before>-hec_db_worker_node_qty. lv_data_changed = abap_true. ELSEIF lr_instance_db->hec_db_worker_node_limit_qty < lr_instance_db->hec_db_worker_node_limit_qty. " Error message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>node_limit_is_exceeded is_origin_location = VALUE #( node_key = is_ctx-node_key key = lr_instance_db->key attributes = VALUE #( ( lv_attr_name ) ) ) CHANGING co_message = eo_message ). " Set node number to value before update lr_instance_db->hec_db_worker_node_qty = <fs_inst_db_before>-hec_db_worker_node_qty. lv_data_changed = abap_true. ENDIF. " IF lr_instance_db->hec_db_worker_node_qty > <fs_inst_db_before>-hec_db_worker_node_qty. CLEAR lv_attr_name. ENDIF. " IF lr_instance_db->hec_db_cluster_type_guid = <fs_inst_db_before>-hec_db_cluster_type_guid AND... "----------------------------------- " Phasing has changed "----------------------------------- IF lr_instance_db->hec_phase_guid NE <fs_inst_db_before>-hec_phase_guid. APPEND VALUE #( hec_node_key = is_ctx-node_key hec_bopf_key = lr_instance_db->key hec_phase_guid_new = lr_instance_db->hec_phase_guid hec_phase_guid_old = <fs_inst_db_before>-hec_phase_guid ) TO lt_act_param_phasing. lr_instance_db->hec_phase_changed = abap_true. lv_data_changed = abap_true. ENDIF. "phasing changed ENDIF. " IF <fs_inst_db_before> IS ASSIGNED. "----------------------------------- " Check instance status and switch "----------------------------------- lv_inst_status = COND /hec1/config_instance_status( WHEN lr_instance_db->hec_dbst_nodety_clust_ty_guid IS NOT INITIAL AND lr_instance_db->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_instance_db->hec_instance_status. lr_instance_db->hec_instance_status = lv_inst_status. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify instance DB "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_instance_db->key is_data = lr_instance_db ). ENDIF. CLEAR: lv_inst_status, lv_data_changed. UNASSIGN <fs_inst_db_before>. ENDLOOP. "----------------------------------- " Set create DB node action to " general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param_db_node. me->mr_act_param_db_node = NEW /hec1/t_act_create_db_node( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act_node IN lt_act_param ( key = wa_act_node-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_node ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_db_node ). ENDIF. "----------------------------------- " Set update Phasing action to " general "----------------------------------- IF lt_act_param_phasing IS NOT INITIAL. me->mr_act_param_phasing = NEW /hec1/t_act_phase_inherit( lt_act_param_phasing ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = it_key iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-inherit_phase_assignment ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_phasing ). ENDIF. " ********************************** " Update mode after DB server " instance update " ********************************** WHEN /hec1/if_configuration_c=>sc_determination-instance_db-update_after_server_instance. LOOP AT lt_instance_db REFERENCE INTO lr_instance_db. ASSIGN lt_db_serv_inst[ key = lr_instance_db->parent_key ] TO <fs_db_serv_inst>. IF <fs_db_serv_inst> IS ASSIGNED. "----------------------------------- " Release instance for selection "----------------------------------- IF <fs_db_serv_inst>-hec_sol_tier_stack_si_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_sol_tier_dsi_dbstype_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_sol_dbst_oper_sys_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_sol_dbst_impltype_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_sol_dbst_impty_instty_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_sol_dbst_imty_inty_al_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_row_selectable = abap_true. lv_release = abap_true. ENDIF. IF lv_release <> lr_instance_db->hec_row_selectable. lr_instance_db->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify instance DB "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_instance_db->key is_data = lr_instance_db ). ENDIF. ENDIF. " IF <fs_db_serv_inst> IS ASSIGNED. UNASSIGN <fs_db_serv_inst>. CLEAR: lv_release, lv_data_changed. ENDLOOP. " LOOP AT lt_instance_db... ENDCASE. CATCH /bobf/cx_frw. " Exception class ENDTRY. ENDMETHOD. METHOD determine_db_node. DATA: lt_instance_db TYPE /hec1/t_data_db_inst_ct, lt_db_node_all TYPE /hec1/t_data_db_node_ct, lt_db_node TYPE /hec1/t_data_db_node_ct, lt_db_node_before TYPE /hec1/t_data_db_node_ct, lt_db_serv_perf_cat TYPE /hec1/t_data_db_serv_pc_ct, lt_db_storage_qty TYPE /hec1/t_data_db_storage_qty_ct, lt_db_serv_pc TYPE /hec1/t_data_db_serv_pc_ct, lt_node_key TYPE /bobf/t_frw_key, lt_act_param TYPE /hec1/t_act_create_db_spc, lt_act_param_node TYPE /hec1/t_act_update_db_node, lt_phase TYPE /hec1/t_data_phase_ct, lt_act_param_phasing TYPE TABLE OF /hec1/s_act_phase_inherit. CLEAR: eo_message, et_failed_key. " Get data after update io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key IMPORTING et_data = lt_db_node ). /hec1/cl_config_helper=>get_general_data( EXPORTING iv_node_key = is_ctx-node_key it_key = it_key io_read = io_read IMPORTING ev_root_key = DATA(lv_root_key) er_landscape = DATA(lr_landscape) er_delivery_unit = DATA(lr_dlvy_unit) et_datacenter = DATA(lt_datacenter) et_failed_key = et_failed_key ). TRY. CASE is_ctx-det_key. " *************************************************************************** " Create mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_node-create. " Get instance DB node (parent) io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_node-to_parent IMPORTING et_data = lt_instance_db ). " DB master node LOOP AT lt_db_node REFERENCE INTO DATA(lr_db_node) WHERE hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master. "TODO this needs a more complex logic lr_db_node->hec_delete_visible = abap_false. "----------------------------------- " Check and switch instance status "----------------------------------- DATA(lv_inst_status) = COND /hec1/config_instance_status( WHEN lr_db_node->hec_db_srv_perf_cat_qty IS NOT INITIAL AND lr_db_node->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_node->hec_instance_status. lr_db_node->hec_instance_status = lv_inst_status. DATA(lv_data_changed) = abap_true. ENDIF. "----------------------------------- " Release instance for selection "----------------------------------- ASSIGN lt_instance_db[ key = lr_db_node->parent_key ] TO FIELD-SYMBOL(<fs_instance_db>). IF <fs_instance_db> IS ASSIGNED. IF <fs_instance_db>-hec_db_cluster_type_guid IS NOT INITIAL AND <fs_instance_db>-hec_row_selectable = abap_true. DATA(lv_release) = abap_true. ENDIF. ENDIF. IF lr_db_node->hec_row_selectable <> lv_release. lr_db_node->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Fill action table for create " DB server performance category "----------------------------------- IF NOT ( lr_db_node->hec_server_required = abap_false AND lr_db_node->hec_db_impl_type_value = '01' ). " Implementation type <> Dedicated INSERT VALUE #( key = lr_db_node->key parent_key = lr_db_node->parent_key hec_db_srv_perf_cat_qty = lr_db_node->hec_db_srv_perf_cat_qty ) INTO TABLE lt_act_param. ENDIF. "----------------------------------- " Modify DB server node "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_node->key is_data = lr_db_node ). ENDIF. UNASSIGN <fs_instance_db>. CLEAR: lv_inst_status, lv_release, lv_data_changed. ENDLOOP. "----------------------------------- " DB standby/worker node "----------------------------------- LOOP AT lt_db_node REFERENCE INTO lr_db_node WHERE ( hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi ) AND ( hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-standby OR hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-worker ). lr_db_node->hec_delete_visible = abap_false. "----------------------------------- " Check and switch instance status "----------------------------------- lv_inst_status = COND /hec1/config_instance_status( WHEN lr_db_node->hec_db_srv_perf_cat_qty IS NOT INITIAL AND lr_db_node->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_node->hec_instance_status. lr_db_node->hec_instance_status = lv_inst_status. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Release selection standby/worker " node "----------------------------------- " Check default master node is complete configered " ( including sub nodes: server performance category and storage amount ) DATA(lv_complete) = /hec1/cl_bopf_config_validat_h=>check_master_node_is_complete( iv_check_rule = /hec1/if_bopf_constants=>gc_check_rule-node is_ctx = is_ctx it_key = VALUE #( ( key = lr_db_node->key ) ) io_read = io_read ). IF ( lv_complete = abap_true AND lr_db_node->hec_row_selectable = abap_false ) OR ( lv_complete = abap_false AND lr_db_node->hec_row_selectable = abap_true ). lr_db_node->hec_row_selectable = COND #( WHEN lv_complete = abap_true THEN abap_true ELSE abap_false ). lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify DB standby/worker node "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_node->key is_data = lr_db_node ). ENDIF. CLEAR: lv_inst_status, lv_complete, lv_data_changed. ENDLOOP. "----------------------------------- " Set create DB server performance " category action to general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_create_app_spc( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_spc ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. " *************************************************************************** " Update mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_node-update. " Get data before update io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_before_image = abap_true IMPORTING et_data = lt_db_node_before ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-root it_key = VALUE #( ( key = lv_root_key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-root-phase IMPORTING et_data = lt_phase ). io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_node-db_server_perform_cat IMPORTING et_data = lt_db_serv_pc ). LOOP AT lt_db_node REFERENCE INTO lr_db_node. ASSIGN lt_db_node_before[ key = lr_db_node->key ] TO FIELD-SYMBOL(<fs_db_node_before>). IF <fs_db_node_before> IS ASSIGNED. "----------------------------------- " Fill action table for create " DB server performance category " for master node "----------------------------------- IF lr_db_node->hec_db_srv_perf_cat_qty > <fs_db_node_before>-hec_db_srv_perf_cat_qty. " Only for master node IF lr_db_node->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master. INSERT VALUE #( key = lr_db_node->key parent_key = lr_db_node->parent_key hec_db_srv_perf_cat_qty = lr_db_node->hec_db_srv_perf_cat_qty - <fs_db_node_before>-hec_db_srv_perf_cat_qty ) INTO TABLE lt_act_param. " Success message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>new_serv_perf_cat_added iv_severity = /bobf/cm_frw=>co_severity_success iv_attr1 = CONV #( lr_db_node->hec_db_srv_perf_cat_qty - <fs_db_node_before>-hec_db_srv_perf_cat_qty ) CHANGING co_message = eo_message ). " Set flag for deleting subnodes of standby/worker node IF ( lr_db_node->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR lr_db_node->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi ) AND lr_db_node->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_node->hec_master_default = abap_true. lv_data_changed = abap_true. DATA(lv_delete_subnode) = abap_true. ENDIF. ENDIF. " IF lr_db_node->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master. ELSEIF lr_db_node->hec_db_srv_perf_cat_qty < <fs_db_node_before>-hec_db_srv_perf_cat_qty AND lr_db_node->hec_db_srv_perf_cat_qty < lines( VALUE /hec1/t_data_db_serv_pc_ct( FOR db_serv_pc IN lt_db_serv_pc WHERE ( parent_key = lr_db_node->key ) ( db_serv_pc ) ) ). DATA(lv_attr_name) = /hec1/if_configuration_c=>sc_node_attribute-db_node-hec_db_srv_perf_cat_qty. " Error message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>object_no_not_higher is_origin_location = VALUE #( node_key = is_ctx-node_key key = lr_db_node->key attributes = VALUE #( ( lv_attr_name ) ) ) CHANGING co_message = eo_message ). " Set node number to value before update lr_db_node->hec_db_srv_perf_cat_qty = <fs_db_node_before>-hec_db_srv_perf_cat_qty. lv_data_changed = abap_true. ENDIF. " IF lr_db_node->hec_dn_srv_perf_cat_qty > <fs_db_node_before>-hec_dn_srv_perf_cat_qty. "----------------------------------- " Fill action table for update " phasing "----------------------------------- IF lr_db_node->hec_phase_guid NE <fs_db_node_before>-hec_phase_guid. " Only for default master node IF lr_db_node->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_node->hec_master_default = abap_true. APPEND VALUE #( hec_node_key = is_ctx-node_key hec_bopf_key = lr_db_node->key hec_phase_guid_new = lr_db_node->hec_phase_guid hec_phase_guid_old = <fs_db_node_before>-hec_phase_guid ) TO lt_act_param_phasing. ENDIF. lr_db_node->hec_phase_changed = abap_true. lv_data_changed = abap_true. " Set flag for deleting subnodes of standby/worker node IF lr_db_node->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR lr_db_node->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi. lv_delete_subnode = abap_true. ENDIF. ENDIF. "phasing changed ENDIF. " IF <fs_db_node_before> IS ASSIGNED. "----------------------------------- " Check instance status and switch "----------------------------------- lv_inst_status = COND /hec1/config_instance_status( WHEN lr_db_node->hec_db_srv_perf_cat_qty IS NOT INITIAL AND lr_db_node->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_node->hec_instance_status. lr_db_node->hec_instance_status = lv_inst_status. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Fill action table for delete " subnodes of DB standby/worker node " or relase standby/worker node "----------------------------------- IF ( lr_db_node->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR lr_db_node->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi ) AND lr_db_node->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_node->hec_master_default = abap_true AND lv_data_changed = abap_true. IF NOT line_exists( lt_act_param_node[ key = lr_db_node->key ] ). INSERT VALUE #( key = lr_db_node->key parent_key = lr_db_node->parent_key do_release_node = COND #( WHEN lr_db_node->hec_instance_status = /hec1/if_config_constants=>gc_instance_status-complete AND <fs_db_node_before>-hec_instance_status = /hec1/if_config_constants=>gc_instance_status-incomplete THEN abap_true ELSE abap_false ) do_delete_subnode = COND #( WHEN lr_db_node->hec_instance_status = /hec1/if_config_constants=>gc_instance_status-incomplete OR lv_delete_subnode = abap_true THEN abap_true ELSE abap_false ) ) INTO TABLE lt_act_param_node. ENDIF. ENDIF. " IF ( lr_db_node->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR... "----------------------------------- " Modify DB node "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_node->key is_data = lr_db_node ). ENDIF. CLEAR: lv_inst_status, lv_data_changed, lv_attr_name, lv_delete_subnode. UNASSIGN <fs_db_node_before>. ENDLOOP. "----------------------------------- " Set create DB server performance " category action to general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_create_db_spc( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_spc ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. "----------------------------------- " Set update phasing action to " general "----------------------------------- IF lt_act_param_phasing IS NOT INITIAL. me->mr_act_param_phasing = NEW /hec1/t_act_phase_inherit( lt_act_param_phasing ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = it_key iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-inherit_phase_assignment ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_phasing ). ENDIF. "----------------------------------- " Set update DB node action to " general "----------------------------------- IF lt_act_param_node IS NOT INITIAL. CLEAR me->mr_act_param_db_node. me->mr_act_param_db_node = NEW /hec1/t_act_update_db_node( lt_act_param_node ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_node ) it_key = VALUE #( FOR wa_act_node IN lt_act_param_node ( key = wa_act_node-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_db_node ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_db_node ). ENDIF. " ********************************** " Update mode after instance DB " update " ********************************** WHEN /hec1/if_configuration_c=>sc_determination-db_node-update_after_instance_db. " Get instance DB io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_node-to_parent IMPORTING et_data = lt_instance_db ). LOOP AT lt_db_node REFERENCE INTO lr_db_node. ASSIGN lt_instance_db[ key = lr_db_node->parent_key ] TO <fs_instance_db>. IF <fs_instance_db> IS ASSIGNED. IF <fs_instance_db>-hec_db_cluster_type_guid IS NOT INITIAL AND <fs_instance_db>-hec_row_selectable = abap_true. lv_release = abap_true. ENDIF. ENDIF. " Release instance for selection IF lr_db_node->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_app_clust_node_type-master AND lv_release <> lr_db_node->hec_row_selectable. lr_db_node->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. " Release instance for selection( standby/worker node) IF ( lr_db_node->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-standby OR lr_db_node->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-worker ) AND /hec1/cl_bopf_config_validat_h=>check_standby_node_is_released( iv_check_rule = /hec1/if_bopf_constants=>gc_check_rule-node is_ctx = is_ctx it_key = it_key io_read = io_read ) = abap_true. IF lr_db_node->hec_row_selectable <> lv_release. lr_db_node->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. ENDIF. " Update DB server cluster type IF lr_db_node->hec_db_cluster_type_value <> <fs_instance_db>-hec_db_cluster_type_value. lr_db_node->hec_db_cluster_type_value = <fs_instance_db>-hec_db_cluster_type_value. lv_data_changed = abap_true. ENDIF. IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_node->key is_data = lr_db_node ). ENDIF. UNASSIGN <fs_instance_db>. CLEAR: lv_data_changed, lv_release. ENDLOOP. ENDCASE. CATCH /bobf/cx_frw. " Exception class ENDTRY. ENDMETHOD. METHOD determine_db_server. DATA: lt_line TYPE TABLE OF string, lv_inf_provider_guid TYPE /hec1/inf_provider_id, lv_datacenter_guid TYPE /hec1/datacenter_fdt_guid, lt_db_server TYPE /hec1/t_data_db_serv_ct, lt_db_server_before TYPE /hec1/t_data_db_serv_ct, lt_db_serv_perf_cat TYPE /hec1/t_data_db_serv_pc_ct, lt_phase TYPE /hec1/t_data_phase_ct, lt_act_param TYPE /hec1/t_act_create_db_storage, * lt_act_param_server TYPE /hec1/t_act_update_db_server, lt_act_param_storage TYPE /bobf/t_frw_key, lt_act_param_dlvy TYPE /hec1/t_act_update_dlvy_unit, lt_act_param_datac TYPE /hec1/t_act_update_datacenter, lt_act_param_node TYPE /hec1/t_act_update_db_node, lt_act_param_phasing TYPE TABLE OF /hec1/s_act_phase_inherit. CLEAR: eo_message, et_failed_key. io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key IMPORTING et_data = lt_db_server ). /hec1/cl_config_helper=>get_general_data( EXPORTING iv_node_key = is_ctx-node_key it_key = it_key io_read = io_read IMPORTING ev_root_key = DATA(lv_root_key) er_landscape = DATA(lr_landscape) er_delivery_unit = DATA(lr_dlvy_unit) et_datacenter = DATA(lt_datacenter) et_failed_key = et_failed_key ). TRY. CASE is_ctx-det_key. " *************************************************************************** " Create mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server-create. " Get DB server performance category node (parent) io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server-to_parent IMPORTING et_data = lt_db_serv_perf_cat ). LOOP AT lt_db_server REFERENCE INTO DATA(lr_db_server) WHERE hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master. "----------------------------------- " Set Value List Quantity - Server "----------------------------------- lr_db_server->hec_ip_server_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_server( iv_apm_guid = lr_landscape->hec_apm_guid iv_infra_provider_guid = lr_dlvy_unit->hec_inf_provider_guid iv_sec_datacenter_guid = lr_db_server->hec_sec_datacenter_guid iv_srv_perf_cat_guid = VALUE #( lt_db_serv_perf_cat[ 1 ]-hec_srv_perf_cat_guid OPTIONAL ) ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). lr_db_server->hec_delete_visible = abap_false. "----------------------------------- " Check instance status and switch "----------------------------------- DATA(lv_inst_status) = COND /hec1/config_instance_status( WHEN lr_db_server->hec_ip_server_guid IS NOT INITIAL AND lr_db_server->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_server->hec_instance_status. lr_db_server->hec_instance_status = lv_inst_status. DATA(lv_data_changed) = abap_true. ENDIF. "----------------------------------- " Release instance for selection "----------------------------------- ASSIGN lt_db_serv_perf_cat[ key = lr_db_server->parent_key ] TO FIELD-SYMBOL(<fs_db_serv_perf_cat>). IF <fs_db_serv_perf_cat> IS ASSIGNED. IF <fs_db_serv_perf_cat>-hec_srv_perf_cat_guid IS NOT INITIAL AND <fs_db_serv_perf_cat>-hec_row_selectable = abap_true. DATA(lv_release) = abap_true. ENDIF. ENDIF. IF lv_release <> lr_db_server->hec_row_selectable. lr_db_server->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Fill action table for create " DB server storage "----------------------------------- INSERT VALUE #( key = lr_db_server->key parent_key = lr_db_server->parent_key hec_pricing_included = abap_false ) INTO TABLE lt_act_param. "----------------------------------- " Modify DB server "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_server->key is_data = lr_db_server ). ENDIF. UNASSIGN <fs_db_serv_perf_cat>. CLEAR: lv_inst_status, lv_release, lv_data_changed. ENDLOOP. "----------------------------------- " Set create DB server storage " action to general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_create_db_storage( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_storage ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. " *************************************************************************** " Update mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server-update. io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_before_image = abap_true IMPORTING et_data = lt_db_server_before ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-root it_key = VALUE #( ( key = lv_root_key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-root-phase IMPORTING et_data = lt_phase ). " Get DB Server PC (parent) io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_server it_key = it_key iv_association = /hec1/if_configuration_c=>sc_association-db_server-to_parent IMPORTING et_target_key = DATA(lt_db_serv_pc_key) et_key_link = DATA(lt_db_serv_pc_key_link) ). " Get DB Node (parent) io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_server_perform_cat it_key = lt_db_serv_pc_key iv_association = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-to_parent IMPORTING et_key_link = DATA(lt_db_node_key_link) ). " Get DB Storage (child) io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_association = /hec1/if_configuration_c=>sc_association-db_server-db_storage IMPORTING et_key_link = DATA(lt_server_to_storage_link) ). LOOP AT lt_db_server REFERENCE INTO lr_db_server. ASSIGN lt_db_server_before[ key = lr_db_server->key ] TO FIELD-SYMBOL(<fs_db_server_before>). IF <fs_db_server_before> IS ASSIGNED. "----------------------------------- " Split DB server infrastructure " provider server GUID "----------------------------------- IF lr_db_server->hec_ip_server_guid CA ';'. SPLIT lr_db_server->hec_ip_server_guid AT ';' INTO TABLE lt_line. LOOP AT lt_line ASSIGNING FIELD-SYMBOL(<fs_line>). CASE sy-tabix. WHEN 1. lr_db_server->hec_ip_server_guid = <fs_line>. WHEN 2. lv_inf_provider_guid = <fs_line>. WHEN 3. lv_datacenter_guid = <fs_line>. ENDCASE. ENDLOOP. "----------------------------------- " Fill action table for update " delivery unit "----------------------------------- IF lr_dlvy_unit->hec_inf_provider_guid IS INITIAL. INSERT VALUE #( key = lr_dlvy_unit->key parent_key = lr_dlvy_unit->parent_key hec_inf_provider_guid = lv_inf_provider_guid ) INTO TABLE lt_act_param_dlvy. ENDIF. "----------------------------------- " Fill action table for update " data center "----------------------------------- TRY. DATA(ls_datacenter) = lt_datacenter[ hec_node_datacenter = lr_db_server->hec_tier_datacenter_guid ]. IF ls_datacenter-hec_datacenter_guid IS INITIAL. INSERT VALUE #( key = ls_datacenter-key parent_key = ls_datacenter-parent_key hec_datacenter_fdt_guid = lv_datacenter_guid ) INTO TABLE lt_act_param_datac. * "----------------------------------- " Fill action table for update " db node pricing "----------------------------------- INSERT VALUE #( key = lt_db_node_key_link[ source_key = lr_db_server->parent_key ]-target_key ) INTO TABLE lt_act_param_node. ENDIF. " IF ls_datacenter-hec_datacenter_guid IS INITIAL. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDIF. " IF ls_db_server-hec_ds_ip_server_guid CA ';'. "----------------------------------- " Infrastructure provider server " has changed "----------------------------------- IF lr_db_server->hec_ip_server_guid IS NOT INITIAL AND lr_db_server->hec_ip_server_guid <> <fs_db_server_before>-hec_ip_server_guid. IF lv_inf_provider_guid IS NOT INITIAL. lr_dlvy_unit->hec_inf_provider_guid = lv_inf_provider_guid. ENDIF. IF lr_db_server->hec_sec_datacenter_guid IS INITIAL AND lv_datacenter_guid IS NOT INITIAL. lr_db_server->hec_sec_datacenter_guid = lv_datacenter_guid. lv_data_changed = abap_true. ENDIF. SELECT SINGLE * FROM /hec1/i_serverbasic WHERE hec_apm_guid = @lr_landscape->hec_apm_guid AND hec_infra_provider_guid = @lr_dlvy_unit->hec_inf_provider_guid AND hec_sec_datacenter_guid = @lr_db_server->hec_sec_datacenter_guid AND hec_ip_server_guid = @lr_db_server->hec_ip_server_guid INTO @DATA(ls_server). IF ls_server IS NOT INITIAL. lr_db_server->hec_ip_server_descr = ls_server-hec_ip_server_descr. lr_db_server->hec_ip_server_guid = ls_server-hec_ip_server_guid. lr_db_server->hec_host_type_descr = ls_server-hec_srv_host_type_descr. lr_db_server->hec_host_type_value = ls_server-hec_srv_host_type_value. lr_db_server->hec_ram_size = ls_server-hec_srv_ram_size. lr_db_server->hec_cpu_size = ls_server-hec_srv_cpu_size. lr_db_server->hec_sec_datacenter_guid = ls_server-hec_sec_datacenter_guid. lr_db_server->hec_srv_main_stor_qty = ls_server-hec_srv_main_storage_qty. lr_db_server->hec_tree_descr = ls_server-hec_ip_server_descr. "#EC CI_FLDEXT_OK[2215424] lr_db_server->hec_srv_flavour = ls_server-hec_srv_flavour. lr_db_server->hec_saps = ls_server-hec_saps. lr_db_server->hec_approval_needed = ls_server-hec_approval_needed. lv_data_changed = abap_true. " Set Value List Quantity - Server lr_db_server->hec_ip_server_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_server( iv_apm_guid = lr_landscape->hec_apm_guid iv_infra_provider_guid = lr_dlvy_unit->hec_inf_provider_guid iv_sec_datacenter_guid = lr_db_server->hec_sec_datacenter_guid iv_srv_perf_cat_guid = VALUE #( lt_db_serv_perf_cat[ 1 ]-hec_srv_perf_cat_guid OPTIONAL ) ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). " ************************ " Get DB server pricing " ************************ SELECT SINGLE hec_cb_pricing_lb_guid FROM /hec1/i_serverlbbasic WHERE hec_apm_guid = @lr_landscape->hec_apm_guid AND hec_sec_datacenter_guid = @lr_db_server->hec_sec_datacenter_guid AND hec_infra_provider_guid = @lr_dlvy_unit->hec_inf_provider_guid AND hec_ip_server_guid = @lr_db_server->hec_ip_server_guid INTO @DATA(lv_lb_guid). SELECT SINGLE * FROM /hec1/c_cbp_lb "#EC CI_ALL_FIELDS_NEEDED INTO @DATA(ls_pricing) WHERE hec_price_lb = @lv_lb_guid. lr_db_server->* = CORRESPONDING #( BASE ( lr_db_server->* ) ls_pricing ). "----------------------------------- " Fill action table for update " DB server storage "----------------------------------- LOOP AT lt_server_to_storage_link REFERENCE INTO DATA(lr_server_to_storage_link) WHERE source_key = lr_db_server->key. INSERT VALUE #( key = lr_server_to_storage_link->target_key ) INTO TABLE lt_act_param_storage. ENDLOOP. ENDIF. " IF ls_server IS NOT INITIAL. ENDIF. " IF lr_db_server->hec_ip_server_guid IS INITIAL "----------------------------------- " Value List Quanitty "----------------------------------- " HEC_DS_BACKUPSLA_VALUE IF lr_db_server->hec_ds_backupsla_value <> <fs_db_server_before>-hec_ds_backupsla_value. lr_db_server->hec_ds_backupsla_vlqt = COND #( WHEN 1 < lines( /rbp/cl_fpm_utilities=>get_characteristic_values( CONV #( 'HEC_DS_BACKUPSLA_VALUE' ) ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). ENDIF. " HEC_DS_BACKUPSLA_FILE_VALUE IF lr_db_server->hec_ds_backupsla_file_value <> <fs_db_server_before>-hec_ds_backupsla_file_value. lr_db_server->hec_ds_backupsla_file_vlqt = COND #( WHEN 1 < lines( /rbp/cl_fpm_utilities=>get_characteristic_values( CONV #( 'HEC_DS_BACKUPSLA_FILE_VALUE' ) ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). ENDIF. "----------------------------------- " Phase has changed "----------------------------------- IF lr_db_server->hec_phase_guid NE <fs_db_server_before>-hec_phase_guid. " Only for default master node IF lr_db_server->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_server->hec_db_node_default = abap_true. APPEND VALUE #( hec_node_key = is_ctx-node_key hec_bopf_key = lr_db_server->key hec_phase_guid_new = lr_db_server->hec_phase_guid hec_phase_guid_old = <fs_db_server_before>-hec_phase_guid ) TO lt_act_param_phasing. ENDIF. lr_db_server->hec_phase_changed = abap_true. lv_data_changed = abap_true. ENDIF. "phasing changed ENDIF. " if <fs_db_server_before> is assigned. "----------------------------------- " Check instance status and switch "----------------------------------- lv_inst_status = COND /hec1/config_instance_status( WHEN lr_db_server->hec_ip_server_guid IS NOT INITIAL AND lr_db_server->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_server->hec_instance_status. lr_db_server->hec_instance_status = lv_inst_status. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify DB server "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_server->key is_data = lr_db_server ). ENDIF. UNASSIGN: <fs_line>, <fs_db_server_before>. CLEAR: lv_inf_provider_guid, lv_datacenter_guid, lv_lb_guid, lv_inst_status, lv_data_changed, ls_datacenter, ls_server, ls_pricing, lt_line. ENDLOOP. "----------------------------------- " Set update delivery unit action to " general "----------------------------------- IF lt_act_param_dlvy IS NOT INITIAL. CLEAR me->mr_act_param_dlvy. me->mr_act_param_dlvy = NEW /hec1/t_act_update_dlvy_unit( lt_act_param_dlvy ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-delivery_unit ) it_key = VALUE #( FOR wa_act_dlvy IN lt_act_param_dlvy ( key = wa_act_dlvy-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_delivery_unit ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_dlvy ). ENDIF. "----------------------------------- " Set update data center action to " general "----------------------------------- IF lt_act_param_datac IS NOT INITIAL. CLEAR me->mr_act_param_datac. me->mr_act_param_datac = NEW /hec1/t_act_update_datacenter( lt_act_param_datac ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-datacenter ) it_key = VALUE #( FOR wa_act_datac IN lt_act_param_datac ( key = wa_act_datac-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_datacenter ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_datac ). ENDIF. "----------------------------------- " Set DB Node action to " general "----------------------------------- IF lt_act_param_node IS NOT INITIAL. /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_node ) it_key = VALUE #( FOR wa_act_node IN lt_act_param_node ( key = wa_act_node-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_db_node ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ). ENDIF. "----------------------------------- " Set update DB Storage action to " general "----------------------------------- IF lt_act_param_storage IS NOT INITIAL. /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_storage ) it_key = lt_act_param_storage iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_db_storage ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ). ENDIF. "----------------------------------- " Set update phase action to general "----------------------------------- IF lt_act_param_phasing IS NOT INITIAL. me->mr_act_param_phasing = NEW /hec1/t_act_phase_inherit( lt_act_param_phasing ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = it_key iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-inherit_phase_assignment ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_phasing ). ENDIF. " *************************************************************************** " Update mode after app server " performance category update " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server-update_after_serv_perf_cat. io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key IMPORTING et_data = lt_db_server ). " Get DB server performance category (parent) io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server-to_parent IMPORTING et_data = lt_db_serv_perf_cat ). LOOP AT lt_db_server REFERENCE INTO lr_db_server. ASSIGN lt_db_serv_perf_cat[ key = lr_db_server->parent_key ] TO <fs_db_serv_perf_cat>. IF <fs_db_serv_perf_cat> IS ASSIGNED. IF <fs_db_serv_perf_cat>-hec_srv_perf_cat_guid IS NOT INITIAL AND <fs_db_serv_perf_cat>-hec_row_selectable = abap_true. lv_release = abap_true. ENDIF. ENDIF. "----------------------------------- " Release instance for selection "----------------------------------- IF lv_release <> lr_db_server->hec_row_selectable. lr_db_server->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Update DB server cluster type "----------------------------------- IF lr_db_server->hec_db_cluster_type_value <> <fs_db_serv_perf_cat>-hec_db_cluster_type_value. lr_db_server->hec_db_cluster_type_value = <fs_db_serv_perf_cat>-hec_db_cluster_type_value. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_server->key is_data = lr_db_server ). ENDIF. UNASSIGN <fs_db_serv_perf_cat>. CLEAR: lv_release, lv_data_changed. ENDLOOP. " LOOP AT lt_db_server REFERENCE INTO lr_db_server. ENDCASE. CATCH /bobf/cx_frw. " Exception class ENDTRY. ENDMETHOD. METHOD determine_db_server_instance. DATA: lt_db_serv_inst TYPE /hec1/t_data_db_server_inst_ct, lt_db_serv_inst_before TYPE /hec1/t_data_db_server_inst_ct, lt_instance_db TYPE /hec1/t_data_db_inst_ct, lt_tier TYPE /hec1/t_data_tier_ct, lt_tier_all TYPE /hec1/t_data_tier_ct, lt_db_serv_inst_all TYPE /hec1/t_data_db_server_inst_ct, lt_instance_db_all TYPE /hec1/t_data_db_inst_ct, lt_solution TYPE /hec1/t_data_solution_ct, ls_landscape TYPE /hec1/s_config_root_cs, lt_act_param TYPE /hec1/t_act_create_instance_db, lt_act_param_delete TYPE /bobf/t_frw_node, lt_act_param_instance TYPE /hec1/t_act_update_instance_db, lt_phase TYPE /hec1/t_data_phase_ct, lt_act_param_phasing TYPE TABLE OF /hec1/s_act_phase_inherit, lt_vals TYPE TABLE OF dd07v. CLEAR: eo_message, et_failed_key. " Data before update io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_before_image = abap_true IMPORTING et_data = lt_db_serv_inst_before ). " Data after update io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key IMPORTING et_data = lt_db_serv_inst ). " Get tier io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server_instance-to_parent IMPORTING et_data = lt_tier et_target_key = DATA(lt_tier_key) ). /hec1/cl_config_helper=>get_general_data( EXPORTING iv_node_key = is_ctx-node_key it_key = it_key io_read = io_read IMPORTING ev_root_key = DATA(lv_root_key) er_landscape = DATA(lr_landscape) er_delivery_unit = DATA(lr_dlvy_unit) et_datacenter = DATA(lt_datacenter) et_failed_key = et_failed_key ). "----------------------------------- " Get APM model GUID and description "----------------------------------- /hec1/cl_config_helper=>get_apm_model( EXPORTING iv_node_key = is_ctx-node_key it_key = it_key io_read = io_read IMPORTING et_failed_key = et_failed_key es_apm_model = ls_landscape ). TRY. CASE is_ctx-det_key. " *************************************************************************** " Create mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server_instance-create. LOOP AT lt_db_serv_inst REFERENCE INTO DATA(lr_db_serv_inst). "----------------------------------- " Set Value List Quantity "----------------------------------- " Server Instance lr_db_serv_inst->hec_sol_tier_stack_si_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_server_instance( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_stack_guid = lr_db_serv_inst->hec_sol_tier_stack_si_guid iv_srv_inst_rel_value = lr_db_serv_inst->hec_srv_inst_rel_value iv_solution_guid = lr_db_serv_inst->hec_solution_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). " DB Type lr_db_serv_inst->hec_sol_tier_dsi_dbstype_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_server_type( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_stack_si_guid = lr_db_serv_inst->hec_sol_tier_stack_si_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). " Implementation Type lr_db_serv_inst->hec_sol_dbst_impltype_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_implementation_type( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). " Instance Type lr_db_serv_inst->hec_sol_dbst_impty_instty_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_instance_type( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid iv_sol_dbst_impltype_guid = lr_db_serv_inst->hec_sol_dbst_impltype_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). " Allocation lr_db_serv_inst->hec_sol_dbst_imty_inty_al_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_allocation( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid iv_sol_dbst_impty_instty_guid = lr_db_serv_inst->hec_sol_dbst_impty_instty_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). " Operating System lr_db_serv_inst->hec_sol_dbst_oper_sys_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_operating_system( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). " HEC_DSI_OPSYS_IMAGE_VAL CALL FUNCTION 'GET_DOMAIN_VALUES' EXPORTING domname = '/HEC1/DOM_OS_VERSION' text = 'X' TABLES values_tab = lt_vals EXCEPTIONS no_values_found = 1 OTHERS = 2. IF sy-subrc = 0. lr_db_serv_inst->hec_dsi_opsys_image_vlqt = COND #( WHEN 1 < lines( lt_vals ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). ENDIF. lr_db_serv_inst->hec_delete_visible = abap_false. "----------------------------------- " Check instance status and switch "----------------------------------- DATA(lv_inst_status) = COND /hec1/config_instance_status( WHEN lr_db_serv_inst->hec_sol_tier_stack_si_guid IS NOT INITIAL AND lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid IS NOT INITIAL AND lr_db_serv_inst->hec_sol_dbst_oper_sys_guid IS NOT INITIAL AND lr_db_serv_inst->hec_sol_dbst_impltype_guid IS NOT INITIAL AND lr_db_serv_inst->hec_sol_dbst_impty_instty_guid IS NOT INITIAL AND lr_db_serv_inst->hec_sol_dbst_imty_inty_al_guid IS NOT INITIAL AND lr_db_serv_inst->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_serv_inst->hec_instance_status. lr_db_serv_inst->hec_instance_status = lv_inst_status. DATA(lv_data_changed) = abap_true. ENDIF. "----------------------------------- " Release instance for selection "----------------------------------- ASSIGN lt_tier[ key = lr_db_serv_inst->parent_key ] TO FIELD-SYMBOL(<fs_tier>). IF <fs_tier> IS ASSIGNED. IF <fs_tier>-hec_tier_descr IS NOT INITIAL AND <fs_tier>-hec_tier_type_value IS NOT INITIAL AND <fs_tier>-hec_tier_impl_type_value IS NOT INITIAL. DATA(lv_release) = abap_true. ENDIF. ENDIF. IF lv_release <> lr_db_serv_inst->hec_row_selectable. lr_db_serv_inst->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Fill action table for create " instance DB action "----------------------------------- IF lr_db_serv_inst->hec_db_quantity IS NOT INITIAL. INSERT VALUE #( key = lr_db_serv_inst->key parent_key = lr_db_serv_inst->parent_key hec_db_quantity = lr_db_serv_inst->hec_db_quantity ) INTO TABLE lt_act_param. ENDIF. "----------------------------------- " Modify DB server instance "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_serv_inst->key is_data = lr_db_serv_inst ). ENDIF. CLEAR: lv_inst_status, lv_data_changed. ENDLOOP. "----------------------------------- " Set create Instance DB action to " action to general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_create_instance_db( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_inst_db ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. " *************************************************************************** " Update mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server_instance-update. " Get instance DB io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server_instance-instance_db IMPORTING et_data = lt_instance_db ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-root it_key = VALUE #( ( key = lv_root_key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-root-phase IMPORTING et_data = lt_phase ). " Get all Instance DBs (for multitenancy id) io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-root it_key = VALUE #( ( key = lv_root_key ) ) iv_association = /hec1/if_configuration_c=>sc_association-root-solution IMPORTING et_target_key = DATA(lt_solution_key_all) ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-solution it_key = lt_solution_key_all iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-solution-tier IMPORTING et_data = lt_tier_all et_target_key = DATA(lt_tier_key_all) ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-tier it_key = lt_tier_key_all iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-tier-db_server_instance IMPORTING et_data = lt_db_serv_inst_all et_target_key = DATA(lt_db_serv_inst_key_all) ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_server_instance it_key = lt_db_serv_inst_key_all iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server_instance-instance_db IMPORTING et_data = lt_instance_db_all et_target_key = DATA(lt_instance_db_key_all) ). "----------------------------------- " Get DB server type "----------------------------------- SELECT * FROM /hec1/i_dbservertypebasic WHERE hec_apm_guid = @ls_landscape-hec_apm_guid INTO TABLE @DATA(lt_db_server_type). "----------------------------------- " Get DB server operating system "----------------------------------- SELECT * FROM /hec1/i_dboperssystembasic WHERE hec_apm_guid = @ls_landscape-hec_apm_guid INTO TABLE @DATA(lt_db_operating_sys). "----------------------------------- " Get DB server implementation type "----------------------------------- SELECT * FROM /hec1/i_dbimplementtypebasic WHERE hec_apm_guid = @ls_landscape-hec_apm_guid INTO TABLE @DATA(lt_db_impl_type). "----------------------------------- " Get DB server instance type "----------------------------------- SELECT * FROM /hec1/i_dbinstancetypebasic WHERE hec_apm_guid = @ls_landscape-hec_apm_guid INTO TABLE @DATA(lt_db_inst_type). "----------------------------------- " Get DB server allocation "----------------------------------- SELECT * FROM /hec1/i_dballocationbasic WHERE hec_apm_guid = @ls_landscape-hec_apm_guid INTO TABLE @DATA(lt_db_allocation). LOOP AT lt_db_serv_inst REFERENCE INTO lr_db_serv_inst. ASSIGN lt_db_serv_inst_before[ key = lr_db_serv_inst->key ] TO FIELD-SYMBOL(<fs_db_serv_inst_before>). IF <fs_db_serv_inst_before> IS ASSIGNED. lr_db_serv_inst->hec_delete_visible = abap_false. "----------------------------------- " DB server type has changed "----------------------------------- IF lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid IS NOT INITIAL AND lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid <> <fs_db_serv_inst_before>-hec_sol_tier_dsi_dbstype_guid. TRY. DATA(ls_db_server_type) = lt_db_server_type[ hec_sol_tier_stack_si_guid = lr_db_serv_inst->hec_sol_tier_stack_si_guid hec_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid ]. lr_db_serv_inst->hec_db_srv_type_guid = ls_db_server_type-hec_db_srv_type_guid. lr_db_serv_inst->hec_db_srv_type_value = ls_db_server_type-hec_db_srv_type_value. lr_db_serv_inst->hec_db_srv_type_descr = ls_db_server_type-hec_db_srv_type_descr. lr_db_serv_inst->hec_calc_setup_dr = ls_db_server_type-hec_calc_setup_dr. lr_db_serv_inst->hec_ty_support_stat_value = ls_db_server_type-hec_ty_support_stat_value. lr_db_serv_inst->hec_ty_support_stat_descr = ls_db_server_type-hec_ty_support_stat_descr. lr_db_serv_inst->hec_tree_descr = ls_db_server_type-hec_db_srv_type_descr. lv_data_changed = abap_true. " Set Value List Quantity " DB Type lr_db_serv_inst->hec_sol_tier_dsi_dbstype_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_server_type( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_stack_si_guid = lr_db_serv_inst->hec_sol_tier_stack_si_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). IF lr_db_serv_inst->hec_init_ty_support_stat_value IS INITIAL. lr_db_serv_inst->hec_init_ty_support_stat_value = lr_db_serv_inst->hec_ty_support_stat_value. lr_db_serv_inst->hec_init_ty_support_stat_descr = lr_db_serv_inst->hec_ty_support_stat_descr. ENDIF. IF lr_db_serv_inst->hec_sol_dbst_oper_sys_guid IS INITIAL. "----------------------------------- " If there is only one operating " system, then it should be " preselected "----------------------------------- DATA(lt_operating_sys) = VALUE /hec1/t_apm_db_operating_sys( FOR wa_os IN lt_db_operating_sys WHERE ( hec_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid ) ( CORRESPONDING #( wa_os ) ) ). IF lines( lt_operating_sys ) = 1. TRY. lr_db_serv_inst->hec_sol_dbst_oper_sys_guid = lt_operating_sys[ 1 ]-hec_sol_dbst_oper_sys_guid. CATCH cx_sy_itab_line_not_found. ENDTRY. "----------------------------------- " If there are multiple operating " systems possible and Linux is " between them - set it preselected "----------------------------------- ELSEIF lines( lt_operating_sys ) > 1 AND line_exists( lt_operating_sys[ hec_operating_sys_value = /hec1/cl_rep_config_data=>c_os_linux ] ). TRY. lr_db_serv_inst->hec_sol_dbst_oper_sys_guid = lt_operating_sys[ hec_operating_sys_value = /hec1/cl_rep_config_data=>c_os_linux ]-hec_sol_dbst_oper_sys_guid. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDIF. " IF lines( lt_operating_sys ) = 1. ENDIF. " IF lr_db_serv_inst->hec_sol_dbst_oper_sys_guid IS INITIAL. CATCH cx_sy_itab_line_not_found. ENDTRY. CLEAR: ls_db_server_type, lt_operating_sys. ENDIF. "----------------------------------- " DB operating system has changed "----------------------------------- IF lr_db_serv_inst->hec_sol_dbst_oper_sys_guid IS NOT INITIAL AND lr_db_serv_inst->hec_sol_dbst_oper_sys_guid <> <fs_db_serv_inst_before>-hec_sol_dbst_oper_sys_guid. TRY. DATA(ls_operating_sys) = lt_db_operating_sys[ hec_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid hec_sol_dbst_oper_sys_guid = lr_db_serv_inst->hec_sol_dbst_oper_sys_guid ]. lr_db_serv_inst->hec_operating_sys_guid = ls_operating_sys-hec_operating_sys_guid. lr_db_serv_inst->hec_operating_sys_value = ls_operating_sys-hec_operating_sys_value. lr_db_serv_inst->hec_operating_sys_descr = ls_operating_sys-hec_operating_sys_descr. lr_db_serv_inst->hec_os_support_stat_value = ls_operating_sys-hec_os_support_stat_value. lr_db_serv_inst->hec_os_support_stat_descr = ls_operating_sys-hec_os_support_stat_descr. lv_data_changed = abap_true. " Set Value List Quantity - Operating System lr_db_serv_inst->hec_sol_dbst_oper_sys_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_operating_system( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). IF lr_db_serv_inst->hec_init_os_support_stat_value IS INITIAL. lr_db_serv_inst->hec_init_os_support_stat_value = lr_db_serv_inst->hec_os_support_stat_value. lr_db_serv_inst->hec_init_os_support_stat_descr = lr_db_serv_inst->hec_os_support_stat_descr. ENDIF. IF lr_db_serv_inst->hec_sol_dbst_impltype_guid IS INITIAL. DATA(lt_impl_type) = VALUE /hec1/t_apm_db_implement_type( FOR wa_imp IN lt_db_impl_type WHERE ( hec_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid ) ( CORRESPONDING #( wa_imp ) ) ). IF lines( lt_impl_type ) = 1. lr_db_serv_inst->hec_sol_dbst_impltype_guid = lt_impl_type[ 1 ]-hec_sol_dbst_impltype_guid. ENDIF. ENDIF. " IF lr_db_serv_inst->hec_sol_dbst_impltype_guid IS INITIAL. CATCH cx_sy_itab_line_not_found. ENDTRY. CLEAR: ls_operating_sys, lt_impl_type. ENDIF. "----------------------------------- " DB implementation type has changed "----------------------------------- IF lr_db_serv_inst->hec_sol_dbst_impltype_guid IS NOT INITIAL AND lr_db_serv_inst->hec_sol_dbst_impltype_guid <> <fs_db_serv_inst_before>-hec_sol_dbst_impltype_guid. TRY. DATA(ls_impl_type) = lt_db_impl_type[ hec_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid hec_sol_dbst_impltype_guid = lr_db_serv_inst->hec_sol_dbst_impltype_guid ]. lr_db_serv_inst->hec_db_impl_type_guid = ls_impl_type-hec_db_impl_type_guid. lr_db_serv_inst->hec_db_impl_type_value = ls_impl_type-hec_db_impl_type_value. lr_db_serv_inst->hec_db_impl_type_descr = ls_impl_type-hec_db_impl_type_descr. lr_db_serv_inst->hec_imp_support_stat_value = ls_impl_type-hec_imp_support_stat_value. lr_db_serv_inst->hec_imp_support_stat_descr = ls_impl_type-hec_imp_support_stat_descr. lv_data_changed = abap_true. " Set Value List Quantity - Implementation Type lr_db_serv_inst->hec_sol_dbst_impltype_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_implementation_type( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). IF lr_db_serv_inst->hec_init_imp_supp_stat_value IS INITIAL. lr_db_serv_inst->hec_init_imp_supp_stat_value = lr_db_serv_inst->hec_imp_support_stat_value. lr_db_serv_inst->hec_init_imp_supp_stat_descr = lr_db_serv_inst->hec_imp_support_stat_descr. ENDIF. " Get DB instance type DATA(lt_inst_type) = VALUE /hec1/t_apm_db_instance_type( FOR wa IN lt_db_inst_type WHERE ( hec_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid AND hec_sol_dbst_impltype_guid = lr_db_serv_inst->hec_sol_dbst_impltype_guid ) ( CORRESPONDING #( wa ) ) ). IF lines( lt_inst_type ) = 1. lr_db_serv_inst->hec_sol_dbst_impty_instty_guid = lt_inst_type[ 1 ]-hec_sol_dbst_impty_instty_guid. ENDIF. CATCH cx_sy_itab_line_not_found. ENDTRY. CLEAR: ls_impl_type, lt_inst_type. ENDIF. " IF lr_db_serv_inst->hec_db_impl_type_guid IS NOT INITIAL... "----------------------------------- " DB instance type has changed "----------------------------------- IF lr_db_serv_inst->hec_sol_dbst_impty_instty_guid IS NOT INITIAL AND lr_db_serv_inst->hec_sol_dbst_impty_instty_guid <> <fs_db_serv_inst_before>-hec_sol_dbst_impty_instty_guid. TRY. DATA(ls_inst_type) = lt_db_inst_type[ hec_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid hec_sol_dbst_impltype_guid = lr_db_serv_inst->hec_sol_dbst_impltype_guid hec_sol_dbst_impty_instty_guid = lr_db_serv_inst->hec_sol_dbst_impty_instty_guid ]. lr_db_serv_inst->hec_db_inst_type_guid = ls_inst_type-hec_db_inst_type_guid. lr_db_serv_inst->hec_db_inst_type_value = ls_inst_type-hec_db_inst_type_value. lr_db_serv_inst->hec_db_inst_type_descr = ls_inst_type-hec_db_inst_type_descr. lr_db_serv_inst->hec_inst_support_stat_value = ls_inst_type-hec_inst_support_stat_value. lr_db_serv_inst->hec_inst_support_stat_descr = ls_inst_type-hec_inst_support_stat_descr. lv_data_changed = abap_true. " Set Value List Quantity - Instance Type lr_db_serv_inst->hec_sol_dbst_impty_instty_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_instance_type( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid iv_sol_dbst_impltype_guid = lr_db_serv_inst->hec_sol_dbst_impltype_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). IF lr_db_serv_inst->hec_init_inst_supp_stat_value IS INITIAL. lr_db_serv_inst->hec_init_inst_supp_stat_value = lr_db_serv_inst->hec_inst_support_stat_value. lr_db_serv_inst->hec_init_inst_supp_stat_descr = lr_db_serv_inst->hec_inst_support_stat_descr. ENDIF. DATA(lt_allocation) = VALUE /hec1/t_apm_db_allocation( FOR wa_allo IN lt_db_allocation WHERE ( hec_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid AND hec_sol_dbst_impty_instty_guid = lr_db_serv_inst->hec_sol_dbst_impty_instty_guid ) ( CORRESPONDING #( wa_allo ) ) ). IF lines( lt_allocation ) = 1. lr_db_serv_inst->hec_sol_dbst_imty_inty_al_guid = lt_allocation[ 1 ]-hec_sol_dbst_imty_inty_al_guid. ENDIF. CATCH cx_sy_itab_line_not_found. ENDTRY. CLEAR: ls_inst_type, lt_allocation. ENDIF. "----------------------------------- " DB allocation has changed "----------------------------------- IF lr_db_serv_inst->hec_sol_dbst_imty_inty_al_guid IS NOT INITIAL AND lr_db_serv_inst->hec_sol_dbst_imty_inty_al_guid <> <fs_db_serv_inst_before>-hec_sol_dbst_imty_inty_al_guid. TRY. DATA(ls_allocation) = lt_db_allocation[ hec_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid hec_sol_dbst_impty_instty_guid = lr_db_serv_inst->hec_sol_dbst_impty_instty_guid hec_sol_dbst_imty_inty_al_guid = lr_db_serv_inst->hec_sol_dbst_imty_inty_al_guid ]. lr_db_serv_inst->hec_db_allocation_guid = ls_allocation-hec_db_allocation_guid. lr_db_serv_inst->hec_db_allocation_value = ls_allocation-hec_db_allocation_value. lr_db_serv_inst->hec_db_allocation_descr = ls_allocation-hec_db_allocation_descr. lr_db_serv_inst->hec_db_quantity = ls_allocation-hec_db_quantity. lr_db_serv_inst->hec_alloc_support_stat_value = ls_allocation-hec_alloc_support_stat_value. lr_db_serv_inst->hec_alloc_support_stat_descr = ls_allocation-hec_alloc_support_stat_descr. lv_data_changed = abap_true. " Set Value List Quantity - Allocation lr_db_serv_inst->hec_sol_dbst_imty_inty_al_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_allocation( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid iv_sol_dbst_impty_instty_guid = lr_db_serv_inst->hec_sol_dbst_impty_instty_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). IF lr_db_serv_inst->hec_init_alloc_supp_stat_value IS INITIAL. lr_db_serv_inst->hec_init_alloc_supp_stat_value = lr_db_serv_inst->hec_alloc_support_stat_value. lr_db_serv_inst->hec_init_alloc_supp_stat_descr = lr_db_serv_inst->hec_alloc_support_stat_descr. ENDIF. " After a reset of the DB allocation the subnodes are not deleted. " In this case, no additional instance DB should be created. IF NOT line_exists( lt_instance_db[ parent_key = lr_db_serv_inst->key ] ). "----------------------------------- " Fill action table for create " instance DB action "----------------------------------- INSERT VALUE #( key = lr_db_serv_inst->key parent_key = lr_db_serv_inst->parent_key hec_db_quantity = lr_db_serv_inst->hec_db_quantity ) INTO TABLE lt_act_param. ENDIF. " Set Tier IF lr_db_serv_inst->hec_db_allocation_value = /hec1/if_config_constants=>gc_db_allocation-internal. DATA(ls_tier) = VALUE #( lt_tier[ key = lr_db_serv_inst->parent_key ] OPTIONAL ). lr_db_serv_inst->hec_db_tier_guid = ls_tier-hec_node_tier. lr_db_serv_inst->hec_db_tier_descr = ls_tier-hec_tree_descr. ENDIF. " If the allocation type is "related tier" the related tier needs to be selected automatically. IF lr_db_serv_inst->hec_db_allocation_value = /hec1/if_config_constants=>gc_db_allocation-related_stack. ls_tier = VALUE #( lt_tier[ key = lr_db_serv_inst->parent_key ] OPTIONAL ). LOOP AT lt_tier_all ASSIGNING FIELD-SYMBOL(<fs_tier_related>) WHERE hec_node_tier NE ls_tier-hec_node_tier AND hec_related_stack_guid = ls_tier-hec_related_stack_guid. DATA(ls_tier_related) = <fs_tier_related>. ENDLOOP. lr_db_serv_inst->hec_db_tier_guid = ls_tier_related-hec_node_tier. lr_db_serv_inst->hec_db_tier_descr = ls_tier_related-hec_tree_descr. ENDIF. CATCH cx_sy_itab_line_not_found. ENDTRY. CLEAR ls_allocation. ENDIF. " IF lr_db_serv_inst->hec_db_allocation_guid IS NOT INITIAL "----------------------------------- " DB Tier has changed " -> Update Multitenancy for Tenants "----------------------------------- IF lr_db_serv_inst->hec_db_tier_guid NE <fs_db_serv_inst_before>-hec_db_tier_guid AND lr_db_serv_inst->hec_db_allocation_guid NE /hec1/if_config_constants=>gc_db_allocation-internal. " get instance db (tenant) TRY. DATA(ls_instance_db_tenant) = lt_instance_db_all[ parent_key = lr_db_serv_inst->key hec_db_node_type_value = /hec1/if_config_constants=>gc_db_node_type-tenant ]. " get tier, that is referenced in db_tier " get db server instance -> instance db (container) underneath ls_tier = lt_tier_all[ hec_node_tier = lr_db_serv_inst->hec_db_tier_guid ]. LOOP AT lt_db_serv_inst_all INTO DATA(ls_db_serv_inst) WHERE hec_db_allocation_value = /hec1/if_config_constants=>gc_db_allocation-internal AND hec_db_impl_type_value = /hec1/if_config_constants=>gc_db_impl_type-multitenancy. LOOP AT lt_instance_db_all INTO DATA(ls_instance_db_container) WHERE hec_db_node_type_value = /hec1/if_config_constants=>gc_db_node_type-container. " Add action to update tenant to general INSERT VALUE #( key = ls_instance_db_tenant-key parent_key = ls_instance_db_tenant-parent_key hec_multi_tenant_rel_guid = ls_instance_db_container-hec_multi_tenant_rel_guid do_update_multi_tenancy_guid = abap_true ) INTO TABLE lt_act_param_instance. ENDLOOP. ENDLOOP. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDIF. "----------------------------------- " Phasing has changed "----------------------------------- IF lr_db_serv_inst->hec_phase_guid NE <fs_db_serv_inst_before>-hec_phase_guid. APPEND VALUE #( hec_node_key = is_ctx-node_key hec_bopf_key = lr_db_serv_inst->key hec_phase_guid_new = lr_db_serv_inst->hec_phase_guid hec_phase_guid_old = <fs_db_serv_inst_before>-hec_phase_guid ) TO lt_act_param_phasing. lr_db_serv_inst->hec_phase_changed = abap_true. lv_data_changed = abap_true. ENDIF. "phasing changed "----------------------------------- " Reset fields " - these are all triggered from " the BOPF-actions "----------------------------------- " The following fields are all dependent on each other. If one field is cleared, the subsequent fields have to be cleared as well. " These fields always come in triples (GUID, Value, Description) IF lr_db_serv_inst->hec_sol_tier_stack_si_guid IS INITIAL AND <fs_db_serv_inst_before>-hec_sol_tier_stack_si_guid IS NOT INITIAL. CLEAR: lr_db_serv_inst->hec_sol_tier_stack_si_guid, lr_db_serv_inst->hec_sol_tier_dsi_descr, " Reset Server Type lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid. ENDIF. IF lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid IS INITIAL AND <fs_db_serv_inst_before>-hec_sol_tier_dsi_dbstype_guid IS NOT INITIAL. CLEAR: lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid, lr_db_serv_inst->hec_db_srv_type_guid, lr_db_serv_inst->hec_db_srv_type_value, lr_db_serv_inst->hec_db_srv_type_descr, " Reset Operating System lr_db_serv_inst->hec_operating_sys_guid. ENDIF. IF lr_db_serv_inst->hec_operating_sys_guid IS INITIAL AND <fs_db_serv_inst_before>-hec_operating_sys_guid IS NOT INITIAL. CLEAR: lr_db_serv_inst->hec_sol_dbst_oper_sys_guid, lr_db_serv_inst->hec_operating_sys_guid, lr_db_serv_inst->hec_operating_sys_value, lr_db_serv_inst->hec_operating_sys_descr, " Reset Implementation Type lr_db_serv_inst->hec_db_impl_type_guid. lv_data_changed = abap_true. ENDIF. IF lr_db_serv_inst->hec_db_impl_type_guid IS INITIAL AND <fs_db_serv_inst_before>-hec_db_impl_type_guid IS NOT INITIAL. CLEAR: lr_db_serv_inst->hec_sol_dbst_impltype_guid, lr_db_serv_inst->hec_db_impl_type_guid, lr_db_serv_inst->hec_db_impl_type_value, lr_db_serv_inst->hec_db_impl_type_descr, " Reset Instance Type lr_db_serv_inst->hec_db_inst_type_guid. lv_data_changed = abap_true. ENDIF. IF lr_db_serv_inst->hec_db_inst_type_guid IS INITIAL AND <fs_db_serv_inst_before>-hec_db_inst_type_guid IS NOT INITIAL. CLEAR: lr_db_serv_inst->hec_sol_dbst_impty_instty_guid, lr_db_serv_inst->hec_db_inst_type_guid, lr_db_serv_inst->hec_db_inst_type_value, lr_db_serv_inst->hec_db_inst_type_descr, " Reset Allocation lr_db_serv_inst->hec_db_allocation_guid. lv_data_changed = abap_true. LOOP AT lt_instance_db ASSIGNING FIELD-SYMBOL(<fs_instance_db>) WHERE parent_key = lr_db_serv_inst->key. " Add instance db to delete table INSERT VALUE #( node = /hec1/if_configuration_c=>sc_node-instance_db key = <fs_instance_db>-key ) INTO TABLE lt_act_param_delete. ENDLOOP. ENDIF. IF lr_db_serv_inst->hec_db_allocation_guid IS INITIAL AND <fs_db_serv_inst_before>-hec_db_allocation_guid IS NOT INITIAL. CLEAR: lr_db_serv_inst->hec_db_allocation_descr, lr_db_serv_inst->hec_db_allocation_value, lr_db_serv_inst->hec_sol_dbst_imty_inty_al_guid, lr_db_serv_inst->hec_db_tier_guid, lr_db_serv_inst->hec_db_tier_descr. lv_data_changed = abap_true. ENDIF. ENDIF. " if <fs_db_server_instance_before> is assigned. "----------------------------------- " Check instance status and switch "----------------------------------- lv_inst_status = COND /hec1/config_instance_status( WHEN lr_db_serv_inst->hec_operating_sys_value IS NOT INITIAL AND lr_db_serv_inst->hec_db_impl_type_guid IS NOT INITIAL AND lr_db_serv_inst->hec_db_inst_type_guid IS NOT INITIAL AND lr_db_serv_inst->hec_db_allocation_guid IS NOT INITIAL AND lr_db_serv_inst->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_serv_inst->hec_instance_status. lr_db_serv_inst->hec_instance_status = lv_inst_status. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify DB server instance "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_serv_inst->key is_data = lr_db_serv_inst ). ENDIF. CLEAR: lv_inst_status, lv_data_changed. UNASSIGN <fs_db_serv_inst_before>. ENDLOOP. "----------------------------------- " Set Update Instance DB action " to general "----------------------------------- IF lt_act_param_instance IS NOT INITIAL. CLEAR me->mr_act_param_instance. me->mr_act_param_instance = NEW /hec1/t_act_update_instance_db( lt_act_param_instance ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act_inst IN lt_act_param_instance ( key = wa_act_inst-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_instance_db ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_instance ). ENDIF. "----------------------------------- " Set create Instance DB action to " action to general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_create_instance_db( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_inst_db ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. "----------------------------------- " Set Delete action DB Instance " to general "----------------------------------- IF lt_act_param_delete IS NOT INITIAL. me->mr_act_param_delete = NEW /bobf/t_frw_node( lt_act_param_delete ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = it_key iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-delete_node ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_delete ). ENDIF. "----------------------------------- " Set update phase action to " general "----------------------------------- IF lt_act_param_phasing IS NOT INITIAL. me->mr_act_param_phasing = NEW /hec1/t_act_phase_inherit( lt_act_param_phasing ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = it_key iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-inherit_phase_assignment ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_phasing ). ENDIF. " *************************************************************************** " Update mode after tier update " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server_instance-update_after_tier. "----------------------------------- " Release instance for selection "----------------------------------- LOOP AT lt_db_serv_inst REFERENCE INTO lr_db_serv_inst. ASSIGN lt_tier[ key = lr_db_serv_inst->parent_key ] TO <fs_tier>. IF <fs_tier> IS ASSIGNED. "----------------------------------- " Release instance for selection "----------------------------------- IF <fs_tier>-hec_tier_descr IS NOT INITIAL AND <fs_tier>-hec_tier_type_value IS NOT INITIAL AND <fs_tier>-hec_tier_impl_type_value IS NOT INITIAL. lv_release = abap_true. ENDIF. IF lv_release <> lr_db_serv_inst->hec_row_selectable. lr_db_serv_inst->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify DB server instance "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_serv_inst->key is_data = lr_db_serv_inst ). ENDIF. ENDIF. " IF <fs_tier> IS ASSIGNED. UNASSIGN <fs_tier>. CLEAR: lv_release, lv_data_changed. ENDLOOP. ENDCASE. CATCH /bobf/cx_frw. " Exception class ENDTRY. ENDMETHOD. METHOD determine_db_server_perf_cat. DATA: lt_db_serv_perf_cat TYPE /hec1/t_data_db_serv_pc_ct, lt_db_serv_perf_cat_pernode TYPE /hec1/t_data_db_serv_pc_ct, lt_db_serv_perf_cat_before TYPE /hec1/t_data_db_serv_pc_ct, lt_db_node TYPE /hec1/t_data_db_node_ct, lt_db_server TYPE /hec1/t_data_db_serv_ct, lt_instance_db TYPE /hec1/t_data_db_inst_ct, lt_db_storage_qty TYPE /hec1/t_data_db_storage_qty_ct, lt_node_key TYPE /bobf/t_frw_key, lt_phase TYPE /hec1/t_data_phase_ct, lt_act_param TYPE /hec1/t_act_create_db_qty, lt_act_param_server TYPE /hec1/t_act_update_db_server, lt_act_param_node TYPE /hec1/t_act_update_db_node, lt_act_param_storage TYPE /bobf/t_frw_key, lt_act_param_succ TYPE /hec1/t_act_set_success_predec, lt_act_param_storage_qty TYPE /hec1/t_act_update_db_strg_qty, lt_act_param_phasing TYPE TABLE OF /hec1/s_act_phase_inherit. CLEAR: eo_message, et_failed_key. "----------------------------------- " Get data "----------------------------------- io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key IMPORTING et_data = lt_db_serv_perf_cat ). " Get DB node (parent) io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-to_parent IMPORTING et_data = lt_db_node ). " Get landscape( APM GUID), delivery unit and data center /hec1/cl_config_helper=>get_general_data( EXPORTING iv_node_key = is_ctx-node_key it_key = it_key io_read = io_read IMPORTING ev_root_key = DATA(lv_root_key) er_landscape = DATA(lr_landscape) er_delivery_unit = DATA(lr_dlvy_unit) et_datacenter = DATA(lt_datacenter) et_failed_key = et_failed_key ). TRY. CASE is_ctx-det_key. " *************************************************************************** " Create mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server_perform_cat-create. " Get for each DB node " the DB server performance category io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_node it_key = VALUE #( FOR wa_node IN lt_db_node ( key = wa_node-key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_node-db_server_perform_cat IMPORTING et_data = lt_db_serv_perf_cat_pernode ). LOOP AT lt_db_serv_perf_cat REFERENCE INTO DATA(lr_db_serv_perf_cat) WHERE hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master. "----------------------------------- " Set Value List Quantity " - Server Performance Category "----------------------------------- lr_db_serv_perf_cat->hec_srv_perf_cat_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_server_perf_cat( iv_apm_guid = lr_landscape->hec_apm_guid iv_inf_provider_guid = lr_dlvy_unit->hec_inf_provider_guid iv_sec_datacenter_guid = VALUE #( lt_datacenter[ hec_node_datacenter = lr_db_serv_perf_cat->hec_tier_datacenter_guid ]-hec_sec_datacenter_guid OPTIONAL ) iv_server_type_guid = lr_db_serv_perf_cat->hec_db_srv_type_guid iv_is_app_server = abap_false ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). " TODO this might need a more complex logic depending on the number of entries lr_db_serv_perf_cat->hec_delete_visible = abap_true. "----------------------------------- " Check instance status and switch "----------------------------------- DATA(lv_inst_status) = COND /hec1/config_instance_status( WHEN lr_db_serv_perf_cat->hec_srv_perf_cat_guid IS NOT INITIAL AND lr_db_serv_perf_cat->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_serv_perf_cat->hec_instance_status. lr_db_serv_perf_cat->hec_instance_status = lv_inst_status. DATA(lv_data_changed) = abap_true. ENDIF. "----------------------------------- " Release instance for selection "----------------------------------- ASSIGN lt_db_node[ key = lr_db_serv_perf_cat->parent_key ] TO FIELD-SYMBOL(<fs_db_node>). IF <fs_db_node> IS ASSIGNED. IF <fs_db_node>-hec_db_srv_perf_cat_qty IS NOT INITIAL AND <fs_db_node>-hec_row_selectable = abap_true. DATA(lv_release) = abap_true. ENDIF. ENDIF. IF lv_release <> lr_db_serv_perf_cat->hec_row_selectable. lr_db_serv_perf_cat->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Fill action table for create " DB server storage amount "----------------------------------- IF NOT lr_db_serv_perf_cat->hec_db_node_type_value = /hec1/if_config_constants=>gc_db_node_type-tenant. INSERT VALUE #( key = lr_db_serv_perf_cat->key parent_key = lr_db_serv_perf_cat->parent_key hec_storage_amount_qty = lr_db_serv_perf_cat->hec_storage_qty ) INTO TABLE lt_act_param. ENDIF. "----------------------------------- " Fill action table for setting " DB server performance category " successor/predecessor "----------------------------------- DATA(lv_node_count) = REDUCE i( INIT x = 0 FOR <l> IN lt_db_serv_perf_cat_pernode WHERE ( parent_key = lr_db_serv_perf_cat->parent_key ) NEXT x = x + 1 ). IF NOT line_exists( lt_act_param_succ[ key = lr_db_serv_perf_cat->parent_key ] ) AND lv_node_count > 1. TRY. INSERT VALUE #( key = lr_db_serv_perf_cat->parent_key parent_key = lt_db_node[ key = lr_db_serv_perf_cat->parent_key ]-parent_key hec_no_children_node = lv_node_count ) INTO TABLE lt_act_param_succ. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDIF. "----------------------------------- " Modify DB server performance " category "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_serv_perf_cat->key is_data = lr_db_serv_perf_cat ). ENDIF. UNASSIGN <fs_db_node>. CLEAR: lv_inst_status, lv_release, lv_data_changed, lv_node_count. ENDLOOP. "----------------------------------- " Set successor/predecessor action " to GENERAL "----------------------------------- IF lt_act_param_succ IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_set_success_predec( lt_act_param_succ ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_node assoc_key = /hec1/if_configuration_c=>sc_association-db_node-db_server_perform_cat ) it_key = VALUE #( FOR wa_act_succ IN lt_act_param_succ ( key = wa_act_succ-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-set_success_predec ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. "----------------------------------- " Set create DB server storage " amount and create DB server " action to general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_create_db_qty( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_qty ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_server ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ). ENDIF. " *************************************************************************** " Update mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server_perform_cat-update. io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_before_image = abap_true IMPORTING et_data = lt_db_serv_perf_cat_before ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-root it_key = VALUE #( ( key = lv_root_key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-root-phase IMPORTING et_data = lt_phase ). " Get DB Node io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_association = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-to_parent IMPORTING et_target_key = DATA(lt_db_node_key) et_data = lt_db_node ). " Get instance DB io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_node it_key = lt_db_node_key iv_association = /hec1/if_configuration_c=>sc_association-db_node-to_parent IMPORTING et_target_key = DATA(lt_instance_db_key) et_data = lt_instance_db ). " Get DB Server io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-db_server IMPORTING et_data = lt_db_server et_target_key = DATA(lt_db_server_key) ). " Get Storage Qty io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-db_storage_amount IMPORTING et_data = lt_db_storage_qty ). "----------------------------------- " Get server performance category "----------------------------------- DATA(lt_range_table) = VALUE /hec1/t_selection_range( FOR wa_spc IN lt_db_serv_perf_cat ( option = /hec1/if_config_constants=>gc_range_option-eq sign = /hec1/if_config_constants=>gc_range_sign-i low = wa_spc-hec_srv_perf_cat_guid ) ). SELECT * FROM /hec1/i_dbservperfcatbasic WHERE hec_apm_guid = @lr_landscape->hec_apm_guid AND hec_srv_perf_cat_guid IN @lt_range_table INTO TABLE @DATA(lt_serv_perf_cat). "----------------------------------- " Get server "----------------------------------- CLEAR lt_range_table. lt_range_table = VALUE /hec1/t_selection_range( FOR wa IN lt_db_serv_perf_cat ( option = /hec1/if_config_constants=>gc_range_option-eq sign = /hec1/if_config_constants=>gc_range_sign-i low = wa-hec_srv_perf_cat_guid ) ). SELECT * "#EC CI_ALL_FIELDS_NEEDED FROM /hec1/i_serverbasic WHERE hec_apm_guid = @lr_landscape->hec_apm_guid AND hec_srv_perf_cat_guid IN @lt_range_table INTO TABLE @DATA(lt_server_data). LOOP AT lt_db_serv_perf_cat REFERENCE INTO lr_db_serv_perf_cat. ASSIGN lt_db_serv_perf_cat_before[ key = lr_db_serv_perf_cat->key ] TO FIELD-SYMBOL(<fs_db_serv_perf_cat_before>). IF <fs_db_serv_perf_cat_before> IS ASSIGNED. TRY. DATA(ls_instance_db) = lt_instance_db[ key = lt_db_node[ key = lr_db_serv_perf_cat->parent_key ]-parent_key ]. CATCH cx_sy_itab_line_not_found. ENDTRY. "----------------------------------- " DB server performance category " has changed "----------------------------------- IF lr_db_serv_perf_cat->hec_srv_perf_cat_guid IS NOT INITIAL AND lr_db_serv_perf_cat->hec_srv_perf_cat_guid <> <fs_db_serv_perf_cat_before>-hec_srv_perf_cat_guid. TRY. DATA(ls_serv_perf_cat) = lt_serv_perf_cat[ hec_srv_perf_cat_guid = lr_db_serv_perf_cat->hec_srv_perf_cat_guid ]. IF ls_instance_db-hec_db_node_type_value = /hec1/if_config_constants=>gc_db_node_type-container. lr_db_serv_perf_cat->hec_srv_perf_cat_descr = ls_serv_perf_cat-hec_srv_perf_cat_descr. lr_db_serv_perf_cat->hec_db_intended_srv_ram_class = ls_serv_perf_cat-hec_srv_ram_class. lr_db_serv_perf_cat->hec_tree_descr = ls_serv_perf_cat-hec_srv_perf_cat_descr. "#EC CI_FLDEXT_OK[2215424] ELSE. lr_db_serv_perf_cat->hec_srv_perf_cat_descr = ls_serv_perf_cat-hec_srv_perf_cat_descr. lr_db_serv_perf_cat->hec_srv_ram_class = ls_serv_perf_cat-hec_srv_ram_class. lr_db_serv_perf_cat->hec_srv_cpu_class = ls_serv_perf_cat-hec_srv_cpu_class. lr_db_serv_perf_cat->hec_tree_descr = ls_serv_perf_cat-hec_srv_perf_cat_descr. "#EC CI_FLDEXT_OK[2215424] ENDIF. lv_data_changed = abap_true. " Set Value List Quantity lr_db_serv_perf_cat->hec_srv_perf_cat_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_server_perf_cat( iv_apm_guid = lr_landscape->hec_apm_guid iv_inf_provider_guid = lr_dlvy_unit->hec_inf_provider_guid iv_sec_datacenter_guid = VALUE #( lt_datacenter[ hec_node_datacenter = lr_db_serv_perf_cat->hec_tier_datacenter_guid ]-hec_sec_datacenter_guid OPTIONAL ) iv_server_type_guid = lr_db_serv_perf_cat->hec_db_srv_type_guid iv_is_app_server = abap_false ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). CATCH cx_sy_itab_line_not_found. ENDTRY. TRY. DATA(lv_datacenter_guid) = lt_datacenter[ hec_node_datacenter = lr_db_serv_perf_cat->hec_tier_datacenter_guid ]-hec_datacenter_guid. DATA(lt_server) = /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_server( iv_apm_guid = lr_landscape->hec_apm_guid iv_infra_provider_guid = lr_dlvy_unit->hec_inf_provider_guid iv_sec_datacenter_guid = lv_datacenter_guid iv_srv_perf_cat_guid = lr_db_serv_perf_cat->hec_srv_perf_cat_guid ). "----------------------------------- " Fill action table for Update " DB server "----------------------------------- IF lines( lt_server ) = 1. INSERT VALUE #( key = lt_db_server[ parent_key = lr_db_serv_perf_cat->key ]-key parent_key = lr_db_serv_perf_cat->key hec_ip_server_guid = lt_server[ 1 ]-value do_update_db_server = abap_true ) INTO TABLE lt_act_param_server. ENDIF. CATCH cx_sy_itab_line_not_found. ENDTRY. CLEAR: lv_datacenter_guid, lt_server. "----------------------------------- " Fill action table for update " DB server storage amount "----------------------------------- INSERT VALUE #( parent_key = lr_db_serv_perf_cat->key ) INTO TABLE lt_act_param_storage_qty. ENDIF. " IF ls_db_server_perf_cat-hec_srv_perf_cat_guid IS NOT INITIAL AND ... "----------------------------------- " DB server storage is added "----------------------------------- IF lr_db_serv_perf_cat->hec_storage_qty > <fs_db_serv_perf_cat_before>-hec_storage_qty. "----------------------------------- " Fill action table for create " DB server storage amount "----------------------------------- INSERT VALUE #( key = lr_db_serv_perf_cat->key parent_key = lr_db_serv_perf_cat->parent_key hec_storage_amount_qty = lr_db_serv_perf_cat->hec_storage_qty - <fs_db_serv_perf_cat_before>-hec_storage_qty ) INTO TABLE lt_act_param. "----------------------------------- " Fill action table for create " DB server storage "----------------------------------- TRY. " DB Storage is added without any parameters necessary INSERT VALUE #( key = lt_db_server[ parent_key = lr_db_serv_perf_cat->key ]-key ) INTO TABLE lt_act_param_storage. CATCH cx_sy_itab_line_not_found. ENDTRY. " Success message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>new_storage_added iv_severity = /bobf/cm_frw=>co_severity_success iv_attr1 = CONV #( lr_db_serv_perf_cat->hec_storage_qty - <fs_db_serv_perf_cat_before>-hec_storage_qty ) CHANGING co_message = eo_message ). " Set flag for deleting subnodes of standby/worker node IF ( lr_db_serv_perf_cat->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR lr_db_serv_perf_cat->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi ) AND lr_db_serv_perf_cat->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_serv_perf_cat->hec_db_node_default = abap_true. lv_data_changed = abap_true. DATA(lv_delete_subnode) = abap_true. ENDIF. ELSEIF lr_db_serv_perf_cat->hec_storage_qty < <fs_db_serv_perf_cat_before>-hec_storage_qty AND lr_db_serv_perf_cat->hec_storage_qty < lines( VALUE /hec1/t_data_db_storage_qty_ct( FOR db_storage_qty IN lt_db_storage_qty WHERE ( parent_key = lr_db_serv_perf_cat->key ) ( db_storage_qty ) ) ). DATA(lv_attr_name) = /hec1/if_configuration_c=>sc_node_attribute-db_server_perform_cat-hec_storage_qty. " Error /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>object_no_not_higher is_origin_location = VALUE #( node_key = is_ctx-node_key key = lr_db_serv_perf_cat->key attributes = VALUE #( ( lv_attr_name ) ) ) CHANGING co_message = eo_message ). " Set node number to value before update lr_db_serv_perf_cat->hec_storage_qty = <fs_db_serv_perf_cat_before>-hec_storage_qty. lv_data_changed = abap_true. ENDIF. " IF ls_db_server_perf_cat-hec_storage_qty > ls_db_server_perf_cat_old-hec_storage_qty. "----------------------------------- " Phase has changed "----------------------------------- IF lr_db_serv_perf_cat->hec_phase_guid <> <fs_db_serv_perf_cat_before>-hec_phase_guid. " Only for default master node IF lr_db_serv_perf_cat->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_serv_perf_cat->hec_db_node_default = abap_true. APPEND VALUE #( hec_node_key = is_ctx-node_key hec_bopf_key = lr_db_serv_perf_cat->key hec_phase_guid_new = lr_db_serv_perf_cat->hec_phase_guid hec_phase_guid_old = <fs_db_serv_perf_cat_before>-hec_phase_guid ) TO lt_act_param_phasing. ENDIF. lr_db_serv_perf_cat->hec_phase_changed = abap_true. lv_data_changed = abap_true. " Set flag for deleting subnodes of standby/worker node IF ( lr_db_serv_perf_cat->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR lr_db_serv_perf_cat->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi ) AND lr_db_serv_perf_cat->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_serv_perf_cat->hec_db_node_default = abap_true. lv_delete_subnode = abap_true. ENDIF. ENDIF. "phasing changed ENDIF. " IF <fs_db_serv_perf_cat_before> IS ASSIGNED. "----------------------------------- " Check instance status and switch "----------------------------------- lv_inst_status = COND /hec1/config_instance_status( WHEN lr_db_serv_perf_cat->hec_srv_perf_cat_guid IS NOT INITIAL AND lr_db_serv_perf_cat->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_serv_perf_cat->hec_instance_status. lr_db_serv_perf_cat->hec_instance_status = lv_inst_status. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Fill action table for delete " subnodes of DB standby/worker node " or relase standby/worker node "----------------------------------- IF ( lr_db_serv_perf_cat->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR lr_db_serv_perf_cat->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi ) AND lr_db_serv_perf_cat->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_serv_perf_cat->hec_db_node_default = abap_true AND lv_data_changed = abap_true. IF NOT line_exists( lt_act_param_node[ key = lr_db_serv_perf_cat->parent_key ] ). TRY. INSERT VALUE #( key = lr_db_serv_perf_cat->parent_key parent_key = lt_db_node[ key = lr_db_serv_perf_cat->parent_key ]-parent_key do_release_node = COND #( WHEN lr_db_serv_perf_cat->hec_instance_status = /hec1/if_config_constants=>gc_instance_status-complete AND <fs_db_serv_perf_cat_before>-hec_instance_status = /hec1/if_config_constants=>gc_instance_status-incomplete THEN abap_true ELSE abap_false ) do_delete_subnode = COND #( WHEN lr_db_serv_perf_cat->hec_instance_status = /hec1/if_config_constants=>gc_instance_status-incomplete OR lv_delete_subnode = abap_true THEN abap_true ELSE abap_false ) ) INTO TABLE lt_act_param_node. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDIF. ENDIF. " IF ( lr_db_serv_perf_cat->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR... "----------------------------------- " Modify DB server performance " category "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_serv_perf_cat->key is_data = lr_db_serv_perf_cat ). ENDIF. CLEAR: lv_inst_status, lv_data_changed, lv_attr_name, lv_delete_subnode. UNASSIGN <fs_db_serv_perf_cat_before>. ENDLOOP. "----------------------------------- " Set update Phasing action to " general "----------------------------------- IF lt_act_param_phasing IS NOT INITIAL. me->mr_act_param_phasing = NEW /hec1/t_act_phase_inherit( lt_act_param_phasing ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = it_key iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-inherit_phase_assignment ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_phasing ). ENDIF. "----------------------------------- " Set create DB server storage " amount and DB server storage " action to general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_create_db_qty( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_qty ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_server ) it_key = VALUE #( FOR wa_act_serv IN lt_act_param_storage ( key = wa_act_serv-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_storage ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ). ENDIF. "----------------------------------- " Set Update DB Storage Amount " to general "----------------------------------- IF lt_act_param_storage_qty IS NOT INITIAL. me->mr_act_param_db_storage_amount = NEW /hec1/t_act_update_db_strg_qty( FOR strg_qty IN lt_act_param_storage_qty ( parent_key = strg_qty-parent_key do_update_storage = abap_true ) ). " Update DB storage amount (in general) /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR strg_qty IN lt_act_param_storage_qty "pass the server performance category key ( key = strg_qty-parent_key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_db_storage_amount ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_db_storage_amount ). ENDIF. "----------------------------------- " Set Update DB server action " to general "----------------------------------- IF lt_act_param_server IS NOT INITIAL. CLEAR me->mr_act_param1. me->mr_act_param1 = NEW /hec1/t_act_update_db_server( lt_act_param_server ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act_server IN lt_act_param_server ( key = wa_act_server-parent_key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_db_server ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param1 ). ENDIF. "----------------------------------- " Set update DB node action to " general "----------------------------------- IF lt_act_param_node IS NOT INITIAL. CLEAR me->mr_act_param_db_node. me->mr_act_param_db_node = NEW /hec1/t_act_update_db_node( lt_act_param_node ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_node ) it_key = VALUE #( FOR wa_act_node IN lt_act_param_node ( key = wa_act_node-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_db_node ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_db_node ). ENDIF. " *************************************************************************** " Update mode after DB node update " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server_perform_cat-update_after_node. LOOP AT lt_db_serv_perf_cat REFERENCE INTO lr_db_serv_perf_cat. ASSIGN lt_db_node[ key = lr_db_serv_perf_cat->parent_key ] TO <fs_db_node>. IF <fs_db_node> IS ASSIGNED. "----------------------------------- " Release instance for selection "----------------------------------- IF <fs_db_node>-hec_db_srv_perf_cat_qty IS NOT INITIAL AND <fs_db_node>-hec_row_selectable = abap_true. lv_release = abap_true. ENDIF. IF lv_release <> lr_db_serv_perf_cat->hec_row_selectable. lr_db_serv_perf_cat->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Update DB server cluster type "----------------------------------- IF lr_db_serv_perf_cat->hec_db_cluster_type_value <> <fs_db_node>-hec_db_cluster_type_value. lr_db_serv_perf_cat->hec_db_cluster_type_value = <fs_db_node>-hec_db_cluster_type_value. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify DB server performance " category "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_serv_perf_cat->key is_data = lr_db_serv_perf_cat ). ENDIF. ENDIF. " IF <fs_db_node> IS ASSIGNED. UNASSIGN <fs_db_node>. CLEAR: lv_data_changed, lv_release. ENDLOOP. " LOOP AT lt_db_serv_perf_cat... ENDCASE. CATCH /bobf/cx_frw. " Exception class ENDTRY. ENDMETHOD. METHOD determine_db_storage. DATA: lt_db_server TYPE /hec1/t_data_db_serv_ct, lt_db_storage TYPE /hec1/t_data_db_storage_ct, lt_db_storage_perserver TYPE /hec1/t_data_db_storage_ct, lt_db_storage_before TYPE /hec1/t_data_db_storage_ct, lt_db_storage_succ TYPE /hec1/t_data_db_storage_ct, lt_db_node TYPE /hec1/t_data_db_node_ct, lt_db_serv_perf_cat TYPE /hec1/t_data_db_serv_pc_ct, lt_db_storage_qty TYPE /hec1/t_data_db_storage_qty_ct, lt_db_backup TYPE /hec1/t_data_db_backup_ct, lt_phase TYPE /hec1/t_data_phase_ct, lt_act_param TYPE /hec1/t_act_create_db_backup, lt_act_param_storage TYPE /bobf/t_frw_key, lt_act_param_phasing TYPE TABLE OF /hec1/s_act_phase_inherit. CLEAR: eo_message, et_failed_key. io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key IMPORTING et_data = lt_db_storage ). " Get DB server (parent) " Get DB server (parent) io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_storage-to_parent IMPORTING et_data = lt_db_server ). /hec1/cl_config_helper=>get_general_data( EXPORTING iv_node_key = is_ctx-node_key it_key = it_key io_read = io_read IMPORTING ev_root_key = DATA(lv_root_key) er_landscape = DATA(lr_landscape) er_delivery_unit = DATA(lr_dlvy_unit) et_datacenter = DATA(lt_datacenter) et_failed_key = et_failed_key ). TRY. CASE is_ctx-det_key. " *************************************************************************** " Create mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage-create. " Get for each DB server the DB storage io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_server it_key = VALUE #( FOR wa_serv IN lt_db_server ( key = wa_serv-key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server-db_storage IMPORTING et_data = lt_db_storage_perserver ). LOOP AT lt_db_storage REFERENCE INTO DATA(lr_db_storage) WHERE hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master. "----------------------------------- " Set Value List Quantity "----------------------------------- lr_db_storage->hec_storage_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_storage( iv_apm_guid = lr_landscape->hec_apm_guid iv_infra_provider_guid = lr_dlvy_unit->hec_inf_provider_guid iv_sec_datacenter_guid = VALUE #( lt_datacenter[ hec_node_datacenter = lr_db_storage->hec_tier_datacenter_guid ]-hec_sec_datacenter_guid OPTIONAL ) ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). lr_db_storage->hec_delete_visible = abap_false. "----------------------------------- " Check instance status and switch "----------------------------------- DATA(lv_inst_status) = COND /hec1/config_instance_status( WHEN lr_db_storage->hec_ip_storage_guid IS NOT INITIAL AND lr_db_storage->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_storage->hec_instance_status. lr_db_storage->hec_instance_status = lv_inst_status. DATA(lv_data_changed) = abap_true. ENDIF. "----------------------------------- " Release instance for selection "----------------------------------- ASSIGN lt_db_server[ key = lr_db_storage->parent_key ] TO FIELD-SYMBOL(<fs_db_server>). IF <fs_db_server> IS ASSIGNED. IF <fs_db_server>-hec_ip_server_guid IS NOT INITIAL AND <fs_db_server>-hec_row_selectable = abap_true. DATA(lv_release) = abap_true. ENDIF. ENDIF. IF lv_release <> lr_db_storage->hec_row_selectable. lr_db_storage->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Fill action table for create " DB server storage backup "----------------------------------- IF lr_db_storage->hec_backup_relev_value = '01'. " mandantory INSERT VALUE #( key = lr_db_storage->key parent_key = lr_db_storage->parent_key hec_backup_qty = lr_db_storage->hec_backup_qty ) INTO TABLE lt_act_param. ENDIF. "----------------------------------- " Fill action table for setting " App server storage " successor/predecessor "----------------------------------- DATA(lv_node_count) = REDUCE i( INIT x = 0 FOR <l> IN lt_db_storage_perserver WHERE ( parent_key = lr_db_storage->parent_key ) NEXT x = x + 1 ). IF NOT line_exists( lt_act_param_storage[ key = lr_db_storage->key ] ) AND lv_node_count > 1. TRY. INSERT VALUE #( key = lr_db_storage->key ) INTO TABLE lt_act_param_storage. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDIF. "----------------------------------- " Modify DB server storage "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_storage->key is_data = lr_db_storage ). ENDIF. UNASSIGN <fs_db_server>. CLEAR: lv_inst_status, lv_data_changed, lv_release, lv_node_count. ENDLOOP. "----------------------------------- " Set create DB server storage " backup action to general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_create_db_backup( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_backup ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. "----------------------------------- " Set update DB storage action " to GENERAL "----------------------------------- IF lt_act_param_storage IS NOT INITIAL. /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_storage ) it_key = lt_act_param_storage iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_db_storage ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ). ENDIF. " *************************************************************************** " Update mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage-update. io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_before_image = abap_true IMPORTING et_data = lt_db_storage_before ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-root it_key = VALUE #( ( key = lv_root_key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-root-phase IMPORTING et_data = lt_phase ). " Get Backup io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_storage-db_storage_backup IMPORTING et_data = lt_db_backup ). LOOP AT lt_db_storage REFERENCE INTO lr_db_storage. ASSIGN lt_db_storage_before[ key = lr_db_storage->key ] TO FIELD-SYMBOL(<fs_db_storage_before>). IF <fs_db_storage_before> IS ASSIGNED. "----------------------------------- " DB storage has changed "----------------------------------- IF lr_db_storage->hec_ip_storage_guid IS INITIAL OR ( lr_db_storage->hec_ip_storage_guid IS NOT INITIAL AND lr_db_storage->hec_ip_storage_guid <> <fs_db_storage_before>-hec_ip_storage_guid ). ASSIGN lt_db_server[ key = lr_db_storage->parent_key ] TO <fs_db_server>. IF <fs_db_server> IS ASSIGNED. SELECT SINGLE * FROM /hec1/i_storagelbbasic WHERE hec_apm_guid = @lr_landscape->hec_apm_guid AND hec_sec_datacenter_guid = @<fs_db_server>-hec_sec_datacenter_guid AND hec_infra_provider_guid = @lr_dlvy_unit->hec_inf_provider_guid AND hec_ip_storage_guid = @lr_db_storage->hec_ip_storage_guid INTO @DATA(ls_storage). SELECT SINGLE * FROM /hec1/c_cbp_lb "#EC CI_ALL_FIELDS_NEEDED INTO @DATA(ls_pricing) WHERE hec_price_lb = @ls_storage-hec_cb_pricing_lb_guid. lr_db_storage->* = CORRESPONDING #( BASE ( lr_db_storage->* ) ls_pricing ). lr_db_storage->hec_ip_storage_guid = ls_storage-hec_ip_storage_guid. lr_db_storage->hec_storage_descr = ls_storage-hec_storage_descr. lr_db_storage->hec_month_price_fee = lr_db_storage->hec_storage_quantity * lr_db_storage->hec_month_price_eur. lr_db_storage->hec_tree_descr = ls_storage-hec_storage_descr. "#EC CI_FLDEXT_OK[2215424] lv_data_changed = abap_true. " Set Value List Quantity - DB Storage lr_db_storage->hec_storage_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_storage( iv_apm_guid = lr_landscape->hec_apm_guid iv_infra_provider_guid = lr_dlvy_unit->hec_inf_provider_guid iv_sec_datacenter_guid = VALUE #( lt_datacenter[ hec_node_datacenter = lr_db_storage->hec_tier_datacenter_guid ]-hec_sec_datacenter_guid OPTIONAL ) ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). ENDIF. " <fs_db_server> is assigned ENDIF. " db storage changed "----------------------------------- " DB storage amount has changed "----------------------------------- IF lr_db_storage->hec_storage_quantity IS NOT INITIAL AND lr_db_storage->hec_storage_quantity <> <fs_db_storage_before>-hec_storage_quantity. lr_db_storage->hec_month_price_fee = lr_db_storage->hec_storage_quantity * lr_db_storage->hec_month_price_eur. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Fill action table for create " DB server storage backup "----------------------------------- IF lr_db_storage->hec_backup_qty > <fs_db_storage_before>-hec_backup_qty. INSERT VALUE #( key = lr_db_storage->key parent_key = lr_db_storage->parent_key hec_backup_qty = lr_db_storage->hec_backup_qty - <fs_db_storage_before>-hec_backup_qty ) INTO TABLE lt_act_param. " Success message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>new_backup_added iv_severity = /bobf/cm_frw=>co_severity_success iv_attr1 = CONV #( lr_db_storage->hec_backup_qty - <fs_db_storage_before>-hec_backup_qty ) CHANGING co_message = eo_message ). ELSEIF lr_db_storage->hec_backup_qty < <fs_db_storage_before>-hec_backup_qty AND lr_db_storage->hec_backup_qty < lines( VALUE /hec1/t_data_db_backup_ct( FOR db_backup IN lt_db_backup WHERE ( parent_key = lr_db_storage->key ) ( db_backup ) ) ). DATA(lv_attr_name) = /hec1/if_configuration_c=>sc_node_attribute-db_storage-hec_backup_qty. " Error message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>object_no_not_higher is_origin_location = VALUE #( node_key = is_ctx-node_key key = lr_db_storage->key attributes = VALUE #( ( lv_attr_name ) ) ) CHANGING co_message = eo_message ). " Set node number to value before update lr_db_storage->hec_backup_qty = <fs_db_storage_before>-hec_backup_qty. lv_data_changed = abap_true. ENDIF. " IF lr_db_storage->hec_dst_backup_qty > <fs_db_storage_before>-hec_dst_backup_qty. "----------------------------------- " Phase has changed - update phase and inherit phase assignment "----------------------------------- IF lr_db_storage->hec_phase_guid NE <fs_db_storage_before>-hec_phase_guid. " Only for default master node IF lr_db_storage->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_storage->hec_db_node_default = abap_true. APPEND VALUE #( hec_node_key = is_ctx-node_key hec_bopf_key = lr_db_storage->key hec_phase_guid_new = lr_db_storage->hec_phase_guid hec_phase_guid_old = <fs_db_storage_before>-hec_phase_guid ) TO lt_act_param_phasing. ENDIF. lr_db_storage->hec_phase_changed = abap_true. lv_data_changed = abap_true. ENDIF. "phasing changed ENDIF. " IF <fs_db_storage_before> IS ASSIGNED. "----------------------------------- " Check instance status and switch "----------------------------------- lv_inst_status = COND /hec1/config_instance_status( WHEN lr_db_storage->hec_ip_storage_guid IS NOT INITIAL AND lr_db_storage->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_storage->hec_instance_status. lr_db_storage->hec_instance_status = lv_inst_status. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify DB server storage "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_storage->key is_data = lr_db_storage ). ENDIF. CLEAR: lv_inst_status, lv_data_changed, lv_attr_name, ls_storage, ls_pricing. UNASSIGN <fs_db_storage_before>. ENDLOOP. "----------------------------------- " Update Phasing "----------------------------------- IF lt_act_param_phasing IS NOT INITIAL. me->mr_act_param_phasing = NEW /hec1/t_act_phase_inherit( lt_act_param_phasing ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = it_key iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-inherit_phase_assignment ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_phasing ). ENDIF. "----------------------------------- " Set create DB server storage " backup action to general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_create_db_backup( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_backup ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. " *************************************************************************** " Update mode after server update " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage-update_after_server. LOOP AT lt_db_storage REFERENCE INTO lr_db_storage. ASSIGN lt_db_server[ key = lr_db_storage->parent_key ] TO <fs_db_server>. IF <fs_db_server> IS ASSIGNED. IF <fs_db_server>-hec_ip_server_guid IS NOT INITIAL AND <fs_db_server>-hec_row_selectable = abap_true. lv_release = abap_true. ENDIF. ENDIF. "----------------------------------- " Release instance for selection "----------------------------------- IF lv_release <> lr_db_storage->hec_row_selectable. lr_db_storage->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Update DB server cluster type "----------------------------------- IF lr_db_storage->hec_db_cluster_type_value <> <fs_db_server>-hec_db_cluster_type_value. lr_db_storage->hec_db_cluster_type_value = <fs_db_server>-hec_db_cluster_type_value. lv_data_changed = abap_true. ENDIF. IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_storage->key is_data = lr_db_storage ). ENDIF. UNASSIGN <fs_db_server>. CLEAR: lv_release, lv_data_changed. ENDLOOP. " LOOP AT lt_db_storage ENDCASE. CATCH /bobf/cx_frw. " Exception class ENDTRY. ENDMETHOD. METHOD determine_db_storage_amount. DATA: lt_db_storage_qty TYPE /hec1/t_data_db_storage_qty_ct, lt_db_storage_qty_perspc TYPE /hec1/t_data_db_storage_qty_ct, lt_db_storage_qty_before TYPE /hec1/t_data_db_storage_qty_ct, lr_db_storage_qty TYPE REF TO /hec1/s_data_db_storage_qty_cs, lt_db_node TYPE /hec1/t_data_db_node_ct, lt_db_serv_perf_cat TYPE /hec1/t_data_db_serv_pc_ct, lt_db_server TYPE /hec1/t_data_db_serv_ct, lt_db_storage TYPE /hec1/t_data_db_storage_ct, lt_phase TYPE /hec1/t_data_phase_ct, lt_act_param_node TYPE /hec1/t_act_update_db_node, lt_act_param_storage TYPE /bobf/t_frw_key, lt_act_param_succ TYPE /hec1/t_act_set_success_predec, lt_act_param_phasing TYPE TABLE OF /hec1/s_act_phase_inherit. CLEAR: eo_message, et_failed_key. "----------------------------------- " Get data "----------------------------------- io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key IMPORTING et_data = lt_db_storage_qty ). " Get DB server performance category (parent) io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_storage_amount-to_parent IMPORTING et_data = lt_db_serv_perf_cat ). " Get landscape( APM GUID), delivery unit and data center /hec1/cl_config_helper=>get_general_data( EXPORTING iv_node_key = is_ctx-node_key it_key = it_key io_read = io_read IMPORTING ev_root_key = DATA(lv_root_key) er_landscape = DATA(lr_landscape) er_delivery_unit = DATA(lr_dlvy_unit) et_datacenter = DATA(lt_datacenter) et_failed_key = et_failed_key ). TRY. CASE is_ctx-det_key. " *************************************************************************** " Create mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage_amount-create. " Get for each DB server performance category " the DB storage amount io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_server_perform_cat it_key = VALUE #( FOR wa_spc IN lt_db_serv_perf_cat ( key = wa_spc-key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-db_storage_amount IMPORTING et_data = lt_db_storage_qty_perspc ). LOOP AT lt_db_storage_qty REFERENCE INTO lr_db_storage_qty. lr_db_storage_qty->hec_delete_visible = abap_true. "----------------------------------- " Check instance status and switch "----------------------------------- DATA(lv_inst_status) = COND /hec1/config_instance_status( WHEN lr_db_storage_qty->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_storage_qty->hec_instance_status. lr_db_storage_qty->hec_instance_status = lv_inst_status. DATA(lv_data_changed) = abap_true. " If standby node exist IF ( lr_db_storage_qty->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR lr_db_storage_qty->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi ) AND lr_db_storage_qty->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_storage_qty->hec_db_node_default = abap_true AND lr_db_storage_qty->hec_instance_status = /hec1/if_config_constants=>gc_instance_status-complete. io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = VALUE #( ( key = lr_db_storage_qty->key ) ) iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_storage_amount-to_def_master_node IMPORTING et_target_key = DATA(lt_key) ). IF NOT line_exists( lt_act_param_node[ key = lt_key[ 1 ]-key ] ). TRY. INSERT VALUE #( key = lt_key[ 1 ]-key do_release_node = abap_true ) INTO TABLE lt_act_param_node. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDIF. ENDIF. ENDIF. " IF lv_inst_status <> lr_db_storage_qty->hec_instance_status. "----------------------------------- " Release instance for selection "----------------------------------- ASSIGN lt_db_serv_perf_cat[ key = lr_db_storage_qty->parent_key ] TO FIELD-SYMBOL(<fs_db_serv_perf_cat>). IF <fs_db_serv_perf_cat> IS ASSIGNED. IF <fs_db_serv_perf_cat>-hec_srv_perf_cat_guid IS NOT INITIAL AND <fs_db_serv_perf_cat>-hec_row_selectable = abap_true. DATA(lv_release) = abap_true. ENDIF. ENDIF. IF lv_release <> lr_db_storage_qty->hec_row_selectable. lr_db_storage_qty->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Fill action table for setting " DB server storage amount " successor/predecessor "----------------------------------- DATA(lv_node_count) = REDUCE i( INIT x = 0 FOR <l> IN lt_db_storage_qty_perspc WHERE ( parent_key = lr_db_storage_qty->parent_key ) NEXT x = x + 1 ). IF NOT line_exists( lt_act_param_succ[ key = lr_db_storage_qty->parent_key ] ) AND lv_node_count > 1. TRY. INSERT VALUE #( key = lr_db_storage_qty->parent_key parent_key = lt_db_serv_perf_cat[ key = lr_db_storage_qty->parent_key ]-parent_key hec_no_children_node = lv_node_count ) INTO TABLE lt_act_param_succ. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDIF. "----------------------------------- " Modify DB storage amount "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_storage_qty->key is_data = lr_db_storage_qty ). ENDIF. UNASSIGN <fs_db_serv_perf_cat>. CLEAR: lv_inst_status, lv_data_changed, lv_release, lv_node_count. ENDLOOP. "----------------------------------- " Set update DB node action to " general "----------------------------------- IF lt_act_param_node IS NOT INITIAL. CLEAR me->mr_act_param_db_node. me->mr_act_param_db_node = NEW /hec1/t_act_update_db_node( lt_act_param_node ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_node ) it_key = VALUE #( FOR wa_act_node IN lt_act_param_node ( key = wa_act_node-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_db_node ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_db_node ). ENDIF. "----------------------------------- " Set successor/predecessor action " to GENERAL "----------------------------------- IF lt_act_param_succ IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_set_success_predec( lt_act_param_succ ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_server_perform_cat assoc_key = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-db_storage_amount ) it_key = VALUE #( FOR wa_act_succ IN lt_act_param_succ ( key = wa_act_succ-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-set_success_predec ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. " *************************************************************************** " Update mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage_amount-update. io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_before_image = abap_true IMPORTING et_data = lt_db_storage_qty_before ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-root it_key = VALUE #( ( key = lv_root_key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-root-phase IMPORTING et_data = lt_phase ). io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_association = /hec1/if_configuration_c=>sc_association-db_storage_amount-to_parent IMPORTING et_target_key = DATA(lt_db_serv_pc_key) ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_server_perform_cat it_key = lt_db_serv_pc_key iv_association = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-db_server IMPORTING et_target_key = DATA(lt_db_serv_key) et_key_link = DATA(lt_perf_cat_to_serv_link) ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_server it_key = lt_db_serv_key iv_association = /hec1/if_configuration_c=>sc_association-db_server-db_storage IMPORTING et_target_key = DATA(lt_db_storage_key) et_key_link = DATA(lt_serv_to_storage_link) ). LOOP AT lt_db_storage_qty REFERENCE INTO lr_db_storage_qty. ASSIGN lt_db_storage_qty_before[ key = lr_db_storage_qty->key ] TO FIELD-SYMBOL(<fs_db_storage_qty_before>). IF <fs_db_storage_qty_before> IS ASSIGNED. "----------------------------------- " Physical, virtual or additional storage " has changed "----------------------------------- IF lr_db_storage_qty->hec_dsq_main_stor_qty_physical <> <fs_db_storage_qty_before>-hec_dsq_main_stor_qty_physical OR lr_db_storage_qty->hec_dsq_main_stor_qty_virtual <> <fs_db_storage_qty_before>-hec_dsq_main_stor_qty_virtual OR lr_db_storage_qty->hec_dsq_additional_stor_qty <> <fs_db_storage_qty_before>-hec_dsq_additional_stor_qty OR lr_db_storage_qty->hec_successor_guid <> <fs_db_storage_qty_before>-hec_successor_guid OR lr_db_storage_qty->hec_predecessor_guid <> <fs_db_storage_qty_before>-hec_predecessor_guid. lr_db_storage_qty->hec_tree_descr = |{ lr_db_storage_qty->hec_dsq_main_stor_qty_virtual } + { lr_db_storage_qty->hec_dsq_additional_stor_qty } [GiB] |. lv_data_changed = abap_true. " Storage needs to be adjusted LOOP AT lt_serv_to_storage_link REFERENCE INTO DATA(lr_serv_to_storage_link) WHERE source_key = lt_perf_cat_to_serv_link[ source_key = lr_db_storage_qty->parent_key ]-target_key. INSERT VALUE #( key = lr_serv_to_storage_link->target_key ) INTO TABLE lt_act_param_storage. ENDLOOP. " Set flag for deleting subnodes of standby/worker node IF ( lr_db_storage_qty->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR lr_db_storage_qty->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi ) AND lr_db_storage_qty->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_storage_qty->hec_db_node_default = abap_true. DATA(lv_delete_subnode) = abap_true. ENDIF. ENDIF. " IF ls_db_storage_qty-hec_dsq_main_stor_qty_physical <> ls_db_storage_qty_old-hec_dsq_main_stor_qty_physical OR "----------------------------------- " Phase has changed - update phase " and inherit phase assignment "----------------------------------- IF lr_db_storage_qty->hec_phase_guid NE <fs_db_storage_qty_before>-hec_phase_guid. " Only for default master node IF lr_db_storage_qty->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_storage_qty->hec_db_node_default = abap_true. APPEND VALUE #( hec_node_key = is_ctx-node_key hec_bopf_key = lr_db_storage_qty->key hec_phase_guid_new = lr_db_storage_qty->hec_phase_guid hec_phase_guid_old = <fs_db_storage_qty_before>-hec_phase_guid ) TO lt_act_param_phasing. ENDIF. lr_db_storage_qty->hec_phase_changed = abap_true. lv_data_changed = abap_true. " Set flag for deleting subnodes of standby/worker node IF ( lr_db_storage_qty->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR lr_db_storage_qty->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi ) AND lr_db_storage_qty->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_storage_qty->hec_db_node_default = abap_true. lv_delete_subnode = abap_true. ENDIF. ENDIF. " IF lr_db_storage_qty->hec_phase_guid NE <fs_db_storage_qty_before>-hec_phase_guid. ENDIF. " IF <fs_db_storage_qty_before> IS ASSIGNED. "----------------------------------- " Check instance status and switch "----------------------------------- lv_inst_status = COND /hec1/config_instance_status( WHEN lr_db_storage_qty->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_storage_qty->hec_instance_status. lr_db_storage_qty->hec_instance_status = lv_inst_status. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Fill action table for delete " subnodes of DB standby/worker node " or relase standby/worker node "----------------------------------- IF ( lr_db_storage_qty->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR lr_db_storage_qty->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi ) AND lr_db_storage_qty->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_storage_qty->hec_db_node_default = abap_true AND lv_data_changed = abap_true. " Only one master node per storage amount can exist io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = VALUE #( ( key = lr_db_storage_qty->key ) ) iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_storage_amount-to_def_master_node IMPORTING et_target_key = lt_key ). IF NOT line_exists( lt_act_param_node[ key = lt_key[ 1 ]-key ] ). TRY. INSERT VALUE #( key = lt_key[ 1 ]-key parent_key = space do_release_node = COND #( WHEN lr_db_storage_qty->hec_instance_status = /hec1/if_config_constants=>gc_instance_status-complete AND <fs_db_storage_qty_before>-hec_instance_status = /hec1/if_config_constants=>gc_instance_status-incomplete THEN abap_true ELSE abap_false ) do_delete_subnode = COND #( WHEN lr_db_storage_qty->hec_instance_status = /hec1/if_config_constants=>gc_instance_status-incomplete OR lv_delete_subnode = abap_true THEN abap_true ELSE abap_false ) ) INTO TABLE lt_act_param_node. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDIF. ENDIF. " IF ( lr_db_serv_perf_cat->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR... "----------------------------------- " Modify DB storage amount "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_storage_qty->key is_data = lr_db_storage_qty ). ENDIF. CLEAR: lv_inst_status, lv_data_changed, lv_delete_subnode, lt_key. UNASSIGN <fs_db_storage_qty_before>. ENDLOOP. "----------------------------------- " Set update DB Storage action to " general "----------------------------------- IF lt_act_param_storage IS NOT INITIAL. /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_storage ) it_key = lt_act_param_storage iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_db_storage ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ). . ENDIF. "----------------------------------- " Update Phasing "----------------------------------- IF lt_act_param_phasing IS NOT INITIAL. me->mr_act_param_phasing = NEW /hec1/t_act_phase_inherit( lt_act_param_phasing ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = it_key iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-inherit_phase_assignment ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_phasing ). ENDIF. "----------------------------------- " Set update DB node action to " general "----------------------------------- IF lt_act_param_node IS NOT INITIAL. CLEAR me->mr_act_param_db_node. me->mr_act_param_db_node = NEW /hec1/t_act_update_db_node( lt_act_param_node ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_node ) it_key = VALUE #( FOR wa_act_node IN lt_act_param_node ( key = wa_act_node-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_db_node ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_db_node ). ENDIF. " *************************************************************************** " Update mode after DB server " performance category update " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage_amount-update_after_serv_perf_cat. LOOP AT lt_db_storage_qty REFERENCE INTO lr_db_storage_qty. ASSIGN lt_db_serv_perf_cat[ key = lr_db_storage_qty->parent_key ] TO <fs_db_serv_perf_cat>. IF <fs_db_serv_perf_cat> IS ASSIGNED. "----------------------------------- " Release instance for selection "----------------------------------- IF <fs_db_serv_perf_cat>-hec_srv_perf_cat_guid IS NOT INITIAL AND <fs_db_serv_perf_cat>-hec_row_selectable = abap_true. lv_release = abap_true. ENDIF. IF lv_release <> lr_db_storage_qty->hec_row_selectable. lr_db_storage_qty->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Update DB server cluster type "----------------------------------- IF lr_db_storage_qty->hec_db_cluster_type_value <> <fs_db_serv_perf_cat>-hec_db_cluster_type_value. lr_db_storage_qty->hec_db_cluster_type_value = <fs_db_serv_perf_cat>-hec_db_cluster_type_value. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify DB storage amount "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_storage_qty->key is_data = lr_db_storage_qty ). ENDIF. ENDIF. " IF <fs_db_serv_perf_cat> IS ASSIGNED. UNASSIGN <fs_db_serv_perf_cat>. CLEAR: lv_release, lv_data_changed. ENDLOOP. " LOOP AT lt_db_storage_qty ENDCASE. CATCH /bobf/cx_frw. " Exception class ENDTRY. ENDMETHOD. METHOD determine_db_storage_backup. DATA: lt_db_backup TYPE /hec1/t_data_db_backup_ct, lt_db_backup_perstorage TYPE /hec1/t_data_db_backup_ct, lt_db_backup_before TYPE /hec1/t_data_db_backup_ct, lt_db_storage TYPE /hec1/t_data_db_storage_ct, lt_phase TYPE /hec1/t_data_phase_ct, lt_act_param_succ TYPE /hec1/t_act_set_success_predec, lt_act_param_phasing TYPE TABLE OF /hec1/s_act_phase_inherit. CLEAR: eo_message, et_failed_key. io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key IMPORTING et_data = lt_db_backup ). /hec1/cl_config_helper=>get_general_data( EXPORTING iv_node_key = is_ctx-node_key it_key = it_key io_read = io_read IMPORTING ev_root_key = DATA(lv_root_key) er_landscape = DATA(lr_landscape) er_delivery_unit = DATA(lr_dlvy_unit) et_datacenter = DATA(lt_datacenter) et_failed_key = et_failed_key ). TRY. CASE is_ctx-det_key. " *************************************************************************** " Create mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage_backup-create. " Get DB server storage (parent) io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_storage_backup-to_parent IMPORTING et_data = lt_db_storage ). " Get for each DB storage the DB backup io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_storage it_key = VALUE #( FOR wa_node IN lt_db_storage ( key = wa_node-key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_storage-db_storage_backup IMPORTING et_data = lt_db_backup_perstorage ). LOOP AT lt_db_backup REFERENCE INTO DATA(lr_db_backup). lr_db_backup->hec_delete_visible = abap_true. "----------------------------------- " Set Value List Quantity "----------------------------------- lr_db_backup->hec_backup_class_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_backup( iv_apm_guid = lr_landscape->hec_apm_guid iv_tier_category_value = lr_db_backup->hec_tier_cat_value iv_srv_type_guid = lr_db_backup->hec_db_srv_type_guid iv_is_app_backup = abap_false ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). "----------------------------------- " Check instance status and switch "----------------------------------- DATA(lv_inst_status) = COND /hec1/config_instance_status( WHEN lr_db_backup->hec_backup_class_guid IS NOT INITIAL AND lr_db_backup->hec_backup_size IS NOT INITIAL AND lr_db_backup->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_backup->hec_instance_status. lr_db_backup->hec_instance_status = lv_inst_status. DATA(lv_data_changed) = abap_true. ENDIF. "----------------------------------- " Release instance for selection "----------------------------------- ASSIGN lt_db_storage[ key = lr_db_backup->parent_key ] TO FIELD-SYMBOL(<fs_db_storage>). IF <fs_db_storage> IS ASSIGNED. IF <fs_db_storage>-hec_ip_storage_guid IS NOT INITIAL AND <fs_db_storage>-hec_row_selectable = abap_true. DATA(lv_release) = abap_true. ENDIF. ENDIF. IF lv_release <> lr_db_backup->hec_row_selectable. lr_db_backup->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Fill action table for setting " DB server storage backup " successor/predecessor "----------------------------------- DATA(lv_node_count) = REDUCE i( INIT x = 0 FOR <l> IN lt_db_backup_perstorage WHERE ( parent_key = lr_db_backup->parent_key ) NEXT x = x + 1 ). IF NOT line_exists( lt_act_param_succ[ key = lr_db_backup->parent_key ] ) AND lv_node_count > 1. TRY. INSERT VALUE #( key = lr_db_backup->parent_key parent_key = lt_db_storage[ key = lr_db_backup->parent_key ]-parent_key hec_no_children_node = lv_node_count ) INTO TABLE lt_act_param_succ. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDIF. "----------------------------------- " Modify DB backup "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_backup->key is_data = lr_db_backup ). ENDIF. UNASSIGN <fs_db_storage>. CLEAR: lv_inst_status, lv_data_changed, lv_release, lv_node_count. ENDLOOP. "----------------------------------- " Set successor/predecessor action " to GENERAL "----------------------------------- IF lt_act_param_succ IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_set_success_predec( lt_act_param_succ ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_storage assoc_key = /hec1/if_configuration_c=>sc_association-db_storage-db_storage_backup ) it_key = VALUE #( FOR wa_act_succ IN lt_act_param_succ ( key = wa_act_succ-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-set_success_predec ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. " *************************************************************************** " Update mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage_backup-update. io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_before_image = abap_true iv_fill_data = abap_true IMPORTING et_data = lt_db_backup_before ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-root it_key = VALUE #( ( key = lv_root_key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-root-phase IMPORTING et_data = lt_phase ). " Get DB storage io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_association = /hec1/if_configuration_c=>sc_association-db_storage_backup-to_parent IMPORTING et_target_key = DATA(lt_db_storage_key) et_data = lt_db_storage ). LOOP AT lt_db_backup REFERENCE INTO lr_db_backup. ASSIGN lt_db_backup_before[ key = lr_db_backup->key ] TO FIELD-SYMBOL(<fs_db_backup_before>). IF <fs_db_backup_before> IS ASSIGNED. "----------------------------------- " Backup GUID has changed "----------------------------------- IF lr_db_backup->hec_backup_class_guid IS NOT INITIAL AND lr_db_backup->hec_backup_class_guid <> <fs_db_backup_before>-hec_backup_class_guid. " Get backup class and backup class pricing /hec1/cl_config_action_helper=>/hec1/if_bopf_action_helper~get_backup_class_and_price( EXPORTING is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( ( key = lr_db_backup->key ) ) iv_tier_category_value = lr_db_backup->hec_tier_cat_value iv_tier_datacenter_guid = lr_db_backup->hec_tier_datacenter_guid iv_backup_class_guid = lr_db_backup->hec_backup_class_guid io_read = io_read IMPORTING es_backup_class = DATA(ls_backup_class) es_backup_pricing = DATA(ls_backup_pricing) ). lr_db_backup->price = CORRESPONDING #( ls_backup_pricing ). lr_db_backup->hec_backup_class_guid = ls_backup_class-hec_backup_class_guid. lr_db_backup->hec_backup_class_descr = ls_backup_class-hec_backup_class_descr. lr_db_backup->hec_tree_descr = ls_backup_class-hec_backup_class_descr. "#EC CI_FLDEXT_OK[2215424] lr_db_backup->hec_backup_month_price_fee = lr_db_backup->hec_backup_size * lr_db_backup->hec_month_price_eur. lv_data_changed = abap_true. "----------------------------------- " Set Value List Quantity "----------------------------------- lr_db_backup->hec_backup_class_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_backup( iv_apm_guid = lr_landscape->hec_apm_guid iv_tier_category_value = lr_db_backup->hec_tier_cat_value iv_srv_type_guid = lr_db_backup->hec_db_srv_type_guid iv_is_app_backup = abap_false ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). ENDIF. " IF ls_db_backup-hec_backup_class_guid IS NOT INITIAL AND "----------------------------------- " Backup size has changed "----------------------------------- IF lr_db_backup->hec_backup_size IS NOT INITIAL AND lr_db_backup->hec_backup_size <> <fs_db_backup_before>-hec_backup_size. lr_db_backup->hec_backup_month_price_fee = lr_db_backup->hec_backup_size * lr_db_backup->hec_month_price_eur. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Phase has changed "----------------------------------- IF lr_db_backup->hec_phase_guid NE <fs_db_backup_before>-hec_phase_guid. " Only for default master node IF lr_db_backup->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_backup->hec_db_node_default = abap_true. APPEND VALUE #( hec_node_key = is_ctx-node_key hec_bopf_key = lr_db_backup->key hec_phase_guid_new = lr_db_backup->hec_phase_guid hec_phase_guid_old = <fs_db_backup_before>-hec_phase_guid ) TO lt_act_param_phasing. ENDIF. lr_db_backup->hec_phase_changed = abap_true. lv_data_changed = abap_true. ENDIF. ENDIF. "IF <fs_db_backup_before> IS ASSIGNED. "----------------------------------- " Check instance status and switch "----------------------------------- lv_inst_status = COND /hec1/config_instance_status( WHEN lr_db_backup->hec_backup_class_guid IS NOT INITIAL AND lr_db_backup->hec_backup_size IS NOT INITIAL AND lr_db_backup->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_backup->hec_instance_status. lr_db_backup->hec_instance_status = lv_inst_status. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify DB backup "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_backup->key is_data = lr_db_backup ). ENDIF. CLEAR: lv_inst_status, lv_data_changed, ls_backup_class, ls_backup_pricing. UNASSIGN <fs_db_backup_before>. ENDLOOP. "----------------------------------- " Update Phasing "----------------------------------- IF lt_act_param_phasing IS NOT INITIAL. me->mr_act_param_phasing = NEW /hec1/t_act_phase_inherit( lt_act_param_phasing ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = it_key iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-inherit_phase_assignment ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_phasing ). ENDIF. " *************************************************************************** " Update mode after storage update " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage_backup-update_after_storage. " Get DB server storage (parent) io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_storage_backup-to_parent IMPORTING et_data = lt_db_storage ). LOOP AT lt_db_backup REFERENCE INTO lr_db_backup. ASSIGN lt_db_storage[ key = lr_db_backup->parent_key ] TO <fs_db_storage>. IF <fs_db_storage> IS ASSIGNED. "----------------------------------- " Release instance for selection "----------------------------------- IF <fs_db_storage>-hec_ip_storage_guid IS NOT INITIAL AND <fs_db_storage>-hec_row_selectable = abap_true. lv_release = abap_true. ENDIF. IF lv_release <> lr_db_backup->hec_row_selectable. lr_db_backup->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Update DB server cluster type "----------------------------------- IF lr_db_backup->hec_db_cluster_type_value <> <fs_db_storage>-hec_db_cluster_type_value. lr_db_backup->hec_db_cluster_type_value = <fs_db_storage>-hec_db_cluster_type_value. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify DB storage backup "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_backup->key is_data = lr_db_backup ). ENDIF. ENDIF. " IF <fs_db_storage> IS ASSIGNED. UNASSIGN <fs_db_storage>. CLEAR: lv_release, lv_data_changed. ENDLOOP. ENDCASE. CATCH /bobf/cx_frw. " Exception class ENDTRY. ENDMETHOD. METHOD execute. CLEAR: eo_message, et_failed_key. DATA(ls_root) = /hec1/cl_config_helper=>get_root_node( iv_node_key = is_ctx-node_key it_key = it_key io_read = io_read io_modify = io_modify ). TRY. CASE is_ctx-det_key. " ********************************** " Determine DB server instance node " ********************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server_instance-create OR /hec1/if_configuration_c=>sc_determination-db_server_instance-update OR /hec1/if_configuration_c=>sc_determination-db_server_instance-update_after_tier. CASE ls_root-hec_contract_status. WHEN /hec1/if_config_constants=>gc_contract_status-initial. " Initial Deal me->determine_db_server_instance( EXPORTING is_ctx = is_ctx " Context Information for Determinations it_key = it_key " Key Table io_read = io_read " Interface to Reading Data io_modify = io_modify " Interface to Change Data IMPORTING eo_message = eo_message " Message Object et_failed_key = et_failed_key ). " Key Table WHEN /hec1/if_config_constants=>gc_contract_status-change_request. " Change Request me->determine_db_server_instanc_cr( EXPORTING is_ctx = is_ctx " Context Information for Determinations it_key = it_key " Key Table io_read = io_read " Interface to Reading Data io_modify = io_modify " Interface to Change Data IMPORTING eo_message = eo_message " Message Object et_failed_key = et_failed_key ). " Key Table ENDCASE. "ls_root-hec_contract_status. " ********************************** " Determine instance DB node " ********************************** WHEN /hec1/if_configuration_c=>sc_determination-instance_db-create OR /hec1/if_configuration_c=>sc_determination-instance_db-update OR /hec1/if_configuration_c=>sc_determination-instance_db-update_after_server_instance. CASE ls_root-hec_contract_status. WHEN /hec1/if_config_constants=>gc_contract_status-initial. " Initial Deal me->determine_db_instance( EXPORTING is_ctx = is_ctx " Context Information for Determinations it_key = it_key " Key Table io_read = io_read " Interface to Reading Data io_modify = io_modify " Interface to Change Data IMPORTING eo_message = eo_message " Message Object et_failed_key = et_failed_key ). " Key Table WHEN /hec1/if_config_constants=>gc_contract_status-change_request. " Change Request me->determine_db_instance_cr( EXPORTING is_ctx = is_ctx " Context Information for Determinations it_key = it_key " Key Table io_read = io_read " Interface to Reading Data io_modify = io_modify " Interface to Change Data IMPORTING eo_message = eo_message " Message Object et_failed_key = et_failed_key ). " Key Table ENDCASE. "ls_root-hec_contract_status. " ********************************** " Determine DB node " ********************************** WHEN /hec1/if_configuration_c=>sc_determination-db_node-create OR /hec1/if_configuration_c=>sc_determination-db_node-update OR /hec1/if_configuration_c=>sc_determination-db_node-update_after_instance_db. CASE ls_root-hec_contract_status. WHEN /hec1/if_config_constants=>gc_contract_status-initial. " Initial Deal me->determine_db_node( EXPORTING is_ctx = is_ctx " Context Information for Determinations it_key = it_key " Key Table io_read = io_read " Interface to Reading Data io_modify = io_modify " Interface to Change Data IMPORTING eo_message = eo_message " Message Object et_failed_key = et_failed_key ). " Key Table WHEN /hec1/if_config_constants=>gc_contract_status-change_request. " Change Request me->determine_db_node_cr( EXPORTING is_ctx = is_ctx " Context Information for Determinations it_key = it_key " Key Table io_read = io_read " Interface to Reading Data io_modify = io_modify " Interface to Change Data IMPORTING eo_message = eo_message " Message Object et_failed_key = et_failed_key ). " Key Table ENDCASE. "ls_root-hec_contract_status. " ********************************** " Determine DB server performance " category node " ********************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server_perform_cat-create OR /hec1/if_configuration_c=>sc_determination-db_server_perform_cat-update OR /hec1/if_configuration_c=>sc_determination-db_server_perform_cat-update_after_node. CASE ls_root-hec_contract_status. WHEN /hec1/if_config_constants=>gc_contract_status-initial. " Initial Deal me->determine_db_server_perf_cat( EXPORTING is_ctx = is_ctx " Context Information for Determinations it_key = it_key " Key Table io_read = io_read " Interface to Reading Data io_modify = io_modify " Interface to Change Data IMPORTING eo_message = eo_message " Message Object et_failed_key = et_failed_key ). " Key Table WHEN /hec1/if_config_constants=>gc_contract_status-change_request. " Change Request me->determine_db_server_pc_cr( EXPORTING is_ctx = is_ctx " Context Information for Determinations it_key = it_key " Key Table io_read = io_read " Interface to Reading Data io_modify = io_modify " Interface to Change Data IMPORTING eo_message = eo_message " Message Object et_failed_key = et_failed_key ). " Key Table ENDCASE. "ls_root-hec_contract_status. " ********************************** " Determine DB storage amount " ********************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage_amount-create OR /hec1/if_configuration_c=>sc_determination-db_storage_amount-update OR /hec1/if_configuration_c=>sc_determination-db_storage_amount-update_after_serv_perf_cat. CASE ls_root-hec_contract_status. WHEN /hec1/if_config_constants=>gc_contract_status-initial. " Initial Deal me->determine_db_storage_amount( EXPORTING is_ctx = is_ctx " Context Information for Determinations it_key = it_key " Key Table io_read = io_read " Interface to Reading Data io_modify = io_modify " Interface to Change Data IMPORTING eo_message = eo_message " Message Object et_failed_key = et_failed_key ). " Key Table WHEN /hec1/if_config_constants=>gc_contract_status-change_request. " Change Request me->determine_db_storage_amount_cr( EXPORTING is_ctx = is_ctx " Context Information for Determinations it_key = it_key " Key Table io_read = io_read " Interface to Reading Data io_modify = io_modify " Interface to Change Data IMPORTING eo_message = eo_message " Message Object et_failed_key = et_failed_key ). " Key Table ENDCASE. "ls_root-hec_contract_status. " ********************************** " Determine DB server " ********************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server-create OR /hec1/if_configuration_c=>sc_determination-db_server-update OR /hec1/if_configuration_c=>sc_determination-db_server-update_after_serv_perf_cat. CASE ls_root-hec_contract_status. WHEN /hec1/if_config_constants=>gc_contract_status-initial. " Initial Deal me->determine_db_server( EXPORTING is_ctx = is_ctx " Context Information for Determinations it_key = it_key " Key Table io_read = io_read " Interface to Reading Data io_modify = io_modify " Interface to Change Data IMPORTING eo_message = eo_message " Message Object et_failed_key = et_failed_key ). " Key Table WHEN /hec1/if_config_constants=>gc_contract_status-change_request. " Change Request me->determine_db_server_cr( EXPORTING is_ctx = is_ctx " Context Information for Determinations it_key = it_key " Key Table io_read = io_read " Interface to Reading Data io_modify = io_modify " Interface to Change Data IMPORTING eo_message = eo_message " Message Object et_failed_key = et_failed_key ). " Key Table ENDCASE. "ls_root-hec_contract_status. " ********************************** " Determine DB storage " ********************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage-create OR /hec1/if_configuration_c=>sc_determination-db_storage-update OR /hec1/if_configuration_c=>sc_determination-db_storage-update_after_server. CASE ls_root-hec_contract_status. WHEN /hec1/if_config_constants=>gc_contract_status-initial. " Initial Deal me->determine_db_storage( EXPORTING is_ctx = is_ctx " Context Information for Determinations it_key = it_key " Key Table io_read = io_read " Interface to Reading Data io_modify = io_modify " Interface to Change Data IMPORTING eo_message = eo_message " Message Object et_failed_key = et_failed_key ). " Key Table WHEN /hec1/if_config_constants=>gc_contract_status-change_request. " Change Request me->determine_db_storage_cr( EXPORTING is_ctx = is_ctx " Context Information for Determinations it_key = it_key " Key Table io_read = io_read " Interface to Reading Data io_modify = io_modify " Interface to Change Data IMPORTING eo_message = eo_message " Message Object et_failed_key = et_failed_key ). " Key Table ENDCASE. "ls_root-hec_contract_status. " ********************************** " Determine DB storage backup " ********************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage_backup-create OR /hec1/if_configuration_c=>sc_determination-db_storage_backup-update OR /hec1/if_configuration_c=>sc_determination-db_storage_backup-update_after_storage. CASE ls_root-hec_contract_status. WHEN /hec1/if_config_constants=>gc_contract_status-initial. " Initial Deal me->determine_db_storage_backup( EXPORTING is_ctx = is_ctx " Context Information for Determinations it_key = it_key " Key Table io_read = io_read " Interface to Reading Data io_modify = io_modify " Interface to Change Data IMPORTING eo_message = eo_message " Message Object et_failed_key = et_failed_key ). " Key Table WHEN /hec1/if_config_constants=>gc_contract_status-change_request. " Change Request me->determine_db_storage_backup_cr( EXPORTING is_ctx = is_ctx " Context Information for Determinations it_key = it_key " Key Table io_read = io_read " Interface to Reading Data io_modify = io_modify " Interface to Change Data IMPORTING eo_message = eo_message " Message Object et_failed_key = et_failed_key ). " Key Table ENDCASE. "ls_root-hec_contract_status. ENDCASE. CATCH /bobf/cx_frw. " Exception class ENDTRY. ENDMETHOD. METHOD execute_tree. " ************************************************************************************************************************************************** " Attention!!!!!! " This is only a temporary solution, because this is " a mix between UI logic and BOPF logic. Normally no " UI logic has to be set into a BOPF object. But at " the moment there is the problem, that the Application " is not running with FBI, therefore we can't control " the tree about the FBI feeder class " ************************************************************************************************************************************************** DATA lr_data TYPE REF TO data. FIELD-SYMBOLS <lt_data> TYPE ANY TABLE. /bobf/cl_frw_factory=>get_configuration( is_ctx-bo_key )->get_node( EXPORTING iv_node_key = is_ctx-node_key IMPORTING es_node = DATA(ls_node) ). DATA(lo_tabledescr) = CAST cl_abap_tabledescr( cl_abap_tabledescr=>describe_by_name( ls_node-data_table_type ) ). CREATE DATA lr_data TYPE HANDLE lo_tabledescr. ASSIGN lr_data->* TO <lt_data>. IF sy-subrc = 0. io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key IMPORTING et_data = <lt_data> ). ENDIF. IF <lt_data> IS NOT ASSIGNED OR <lt_data> IS INITIAL. RETURN. ENDIF. CASE is_ctx-det_key. " ********************************** " Determine DB server instance node " ********************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server_instance-create. /hec1/cl_bopf_config_ui_tree_h=>get_instance( )->/hec1/if_bopf_config_ui_tree_h~insert( VALUE #( FOR wa_db_server_instance IN CORRESPONDING /hec1/t_data_db_server_inst_ct( <lt_data> ) ( VALUE #( parent_node_key = wa_db_server_instance-parent_key node_key = wa_db_server_instance-key hec_instance_status = wa_db_server_instance-hec_instance_status hec_tree_descr = wa_db_server_instance-hec_tree_descr hec_row_selectable = wa_db_server_instance-hec_row_selectable hec_obj_type = /hec1/if_config_constants=>gc_tree_child-db_serv_inst hec_phase_guid = wa_db_server_instance-hec_phase_guid crea_date_time = wa_db_server_instance-crea_date_time hec_delete_visible = wa_db_server_instance-hec_delete_visible change_request = wa_db_server_instance-change_request ) ) ) ). WHEN /hec1/if_configuration_c=>sc_determination-db_server_instance-update OR /hec1/if_configuration_c=>sc_determination-db_server_instance-update_after_tier. /hec1/cl_bopf_config_ui_tree_h=>get_instance( )->/hec1/if_bopf_config_ui_tree_h~update( VALUE #( FOR wa_db_server_instance IN CORRESPONDING /hec1/t_data_db_server_inst_ct( <lt_data> ) ( VALUE #( parent_node_key = wa_db_server_instance-parent_key node_key = wa_db_server_instance-key hec_instance_status = wa_db_server_instance-hec_instance_status hec_tree_descr = wa_db_server_instance-hec_tree_descr hec_row_selectable = wa_db_server_instance-hec_row_selectable hec_obj_type = /hec1/if_config_constants=>gc_tree_child-db_serv_inst hec_phase_guid = wa_db_server_instance-hec_phase_guid crea_date_time = wa_db_server_instance-crea_date_time hec_delete_visible = wa_db_server_instance-hec_delete_visible change_request = wa_db_server_instance-change_request ) ) ) ). WHEN /hec1/if_configuration_c=>sc_determination-instance_db-create. /hec1/cl_bopf_config_ui_tree_h=>get_instance( )->/hec1/if_bopf_config_ui_tree_h~insert( VALUE #( FOR wa_db_inst IN CORRESPONDING /hec1/t_data_db_inst_ct( <lt_data> ) ( VALUE #( parent_node_key = wa_db_inst-parent_key node_key = wa_db_inst-key hec_instance_status = wa_db_inst-hec_instance_status hec_tree_descr = wa_db_inst-hec_tree_descr hec_row_selectable = wa_db_inst-hec_row_selectable hec_obj_type = /hec1/if_config_constants=>gc_tree_child-db_inst hec_phase_guid = wa_db_inst-hec_phase_guid hec_delete_visible = wa_db_inst-hec_delete_visible crea_date_time = wa_db_inst-crea_date_time hec_sort_order = SWITCH #( wa_db_inst-hec_db_node_type_value WHEN /hec1/if_config_constants=>gc_db_node_type-container THEN 1 WHEN /hec1/if_config_constants=>gc_db_node_type-single THEN 2 WHEN /hec1/if_config_constants=>gc_db_node_type-tenant THEN 3 ) change_request = wa_db_inst-change_request ) ) ) ). WHEN /hec1/if_configuration_c=>sc_determination-instance_db-update OR /hec1/if_configuration_c=>sc_determination-instance_db-update_after_server_instance. /hec1/cl_bopf_config_ui_tree_h=>get_instance( )->/hec1/if_bopf_config_ui_tree_h~update( VALUE #( FOR wa_db_inst IN CORRESPONDING /hec1/t_data_db_inst_ct( <lt_data> ) ( VALUE #( parent_node_key = wa_db_inst-parent_key node_key = wa_db_inst-key hec_instance_status = wa_db_inst-hec_instance_status hec_tree_descr = wa_db_inst-hec_tree_descr hec_row_selectable = wa_db_inst-hec_row_selectable hec_obj_type = /hec1/if_config_constants=>gc_tree_child-db_inst hec_phase_guid = wa_db_inst-hec_phase_guid crea_date_time = wa_db_inst-crea_date_time hec_delete_visible = wa_db_inst-hec_delete_visible hec_sort_order = SWITCH #( wa_db_inst-hec_db_node_type_value WHEN /hec1/if_config_constants=>gc_db_node_type-container THEN 1 WHEN /hec1/if_config_constants=>gc_db_node_type-single THEN 2 WHEN /hec1/if_config_constants=>gc_db_node_type-tenant THEN 3 ) change_request = wa_db_inst-change_request ) ) ) ). WHEN /hec1/if_configuration_c=>sc_determination-db_node-create. /hec1/cl_bopf_config_ui_tree_h=>get_instance( )->/hec1/if_bopf_config_ui_tree_h~insert( VALUE #( FOR wa_db_node IN CORRESPONDING /hec1/t_data_db_node_ct( <lt_data> ) ( VALUE #( parent_node_key = wa_db_node-parent_key node_key = wa_db_node-key hec_instance_status = wa_db_node-hec_instance_status hec_tree_descr = wa_db_node-hec_tree_descr hec_row_selectable = wa_db_node-hec_row_selectable hec_obj_type = /hec1/if_config_constants=>gc_tree_child-db_node hec_phase_guid = wa_db_node-hec_phase_guid hec_delete_visible = wa_db_node-hec_delete_visible crea_date_time = wa_db_node-crea_date_time hec_sort_order = SWITCH #( wa_db_node-hec_db_node_type_value WHEN /hec1/if_config_constants=>gc_db_clust_node_type-master THEN 1 WHEN /hec1/if_config_constants=>gc_db_clust_node_type-standby THEN 2 WHEN /hec1/if_config_constants=>gc_db_clust_node_type-worker THEN 3 ) change_request = wa_db_node-change_request ) ) ) ). WHEN /hec1/if_configuration_c=>sc_determination-db_node-update OR /hec1/if_configuration_c=>sc_determination-db_node-update_after_instance_db. /hec1/cl_bopf_config_ui_tree_h=>get_instance( )->/hec1/if_bopf_config_ui_tree_h~update( VALUE #( FOR wa_db_node IN CORRESPONDING /hec1/t_data_db_node_ct( <lt_data> ) ( VALUE #( parent_node_key = wa_db_node-parent_key node_key = wa_db_node-key hec_instance_status = wa_db_node-hec_instance_status hec_tree_descr = wa_db_node-hec_tree_descr hec_row_selectable = wa_db_node-hec_row_selectable hec_obj_type = /hec1/if_config_constants=>gc_tree_child-db_node hec_phase_guid = wa_db_node-hec_phase_guid crea_date_time = wa_db_node-crea_date_time hec_delete_visible = wa_db_node-hec_delete_visible hec_sort_order = SWITCH #( wa_db_node-hec_db_node_type_value WHEN /hec1/if_config_constants=>gc_db_clust_node_type-master THEN 1 WHEN /hec1/if_config_constants=>gc_db_clust_node_type-standby THEN 2 WHEN /hec1/if_config_constants=>gc_db_clust_node_type-worker THEN 3 ) change_request = wa_db_node-change_request ) ) ) ). WHEN /hec1/if_configuration_c=>sc_determination-db_server_perform_cat-create. /hec1/cl_bopf_config_ui_tree_h=>get_instance( )->/hec1/if_bopf_config_ui_tree_h~insert( VALUE #( FOR wa_db_serv_pc IN CORRESPONDING /hec1/t_data_db_serv_pc_ct( <lt_data> ) ( VALUE #( parent_node_key = wa_db_serv_pc-parent_key node_key = wa_db_serv_pc-key hec_instance_status = wa_db_serv_pc-hec_instance_status hec_tree_descr = wa_db_serv_pc-hec_tree_descr hec_row_selectable = wa_db_serv_pc-hec_row_selectable hec_obj_type = /hec1/if_config_constants=>gc_tree_child-db_serv_pc hec_phase_guid = wa_db_serv_pc-hec_phase_guid hec_delete_visible = wa_db_serv_pc-hec_delete_visible crea_date_time = wa_db_serv_pc-crea_date_time hec_successor_guid = wa_db_serv_pc-hec_successor_guid change_request = wa_db_serv_pc-change_request ) ) ) ). WHEN /hec1/if_configuration_c=>sc_determination-db_server_perform_cat-update OR /hec1/if_configuration_c=>sc_determination-db_server_perform_cat-update_after_node. /hec1/cl_bopf_config_ui_tree_h=>get_instance( )->/hec1/if_bopf_config_ui_tree_h~update( VALUE #( FOR wa_db_serv_pc IN CORRESPONDING /hec1/t_data_db_serv_pc_ct( <lt_data> ) ( VALUE #( parent_node_key = wa_db_serv_pc-parent_key node_key = wa_db_serv_pc-key hec_instance_status = wa_db_serv_pc-hec_instance_status hec_tree_descr = wa_db_serv_pc-hec_tree_descr hec_row_selectable = wa_db_serv_pc-hec_row_selectable hec_obj_type = /hec1/if_config_constants=>gc_tree_child-db_serv_pc hec_phase_guid = wa_db_serv_pc-hec_phase_guid crea_date_time = wa_db_serv_pc-crea_date_time hec_delete_visible = wa_db_serv_pc-hec_delete_visible hec_successor_guid = wa_db_serv_pc-hec_successor_guid change_request = wa_db_serv_pc-change_request ) ) ) ). WHEN /hec1/if_configuration_c=>sc_determination-db_storage_amount-create. /hec1/cl_bopf_config_ui_tree_h=>get_instance( )->/hec1/if_bopf_config_ui_tree_h~insert( VALUE #( FOR wa_db_storage_qty IN CORRESPONDING /hec1/t_data_db_storage_qty_ct( <lt_data> ) ( VALUE #( parent_node_key = wa_db_storage_qty-parent_key node_key = wa_db_storage_qty-key hec_instance_status = wa_db_storage_qty-hec_instance_status hec_tree_descr = wa_db_storage_qty-hec_tree_descr hec_row_selectable = wa_db_storage_qty-hec_row_selectable hec_obj_type = /hec1/if_config_constants=>gc_tree_child-db_storage_qty hec_phase_guid = wa_db_storage_qty-hec_phase_guid hec_delete_visible = wa_db_storage_qty-hec_delete_visible crea_date_time = wa_db_storage_qty-crea_date_time hec_successor_guid = wa_db_storage_qty-hec_successor_guid change_request = wa_db_storage_qty-change_request ) ) ) ). WHEN /hec1/if_configuration_c=>sc_determination-db_storage_amount-update OR /hec1/if_configuration_c=>sc_determination-db_storage_amount-update_after_serv_perf_cat. /hec1/cl_bopf_config_ui_tree_h=>get_instance( )->/hec1/if_bopf_config_ui_tree_h~update( VALUE #( FOR wa_db_storage_qty IN CORRESPONDING /hec1/t_data_db_storage_qty_ct( <lt_data> ) ( VALUE #( parent_node_key = wa_db_storage_qty-parent_key node_key = wa_db_storage_qty-key hec_instance_status = wa_db_storage_qty-hec_instance_status hec_tree_descr = wa_db_storage_qty-hec_tree_descr hec_row_selectable = wa_db_storage_qty-hec_row_selectable hec_obj_type = /hec1/if_config_constants=>gc_tree_child-db_storage_qty hec_phase_guid = wa_db_storage_qty-hec_phase_guid crea_date_time = wa_db_storage_qty-crea_date_time hec_delete_visible = wa_db_storage_qty-hec_delete_visible hec_successor_guid = wa_db_storage_qty-hec_successor_guid change_request = wa_db_storage_qty-change_request ) ) ) ). WHEN /hec1/if_configuration_c=>sc_determination-db_server-create. /hec1/cl_bopf_config_ui_tree_h=>get_instance( )->/hec1/if_bopf_config_ui_tree_h~insert( VALUE #( FOR wa_db_server IN CORRESPONDING /hec1/t_data_db_serv_ct( <lt_data> ) ( VALUE #( parent_node_key = wa_db_server-parent_key node_key = wa_db_server-key hec_instance_status = wa_db_server-hec_instance_status hec_tree_descr = wa_db_server-hec_tree_descr hec_row_selectable = wa_db_server-hec_row_selectable hec_obj_type = /hec1/if_config_constants=>gc_tree_child-db_server hec_phase_guid = wa_db_server-hec_phase_guid crea_date_time = wa_db_server-crea_date_time hec_delete_visible = wa_db_server-hec_delete_visible change_request = wa_db_server-change_request ) ) ) ). WHEN /hec1/if_configuration_c=>sc_determination-db_server-update OR /hec1/if_configuration_c=>sc_determination-db_server-update_after_serv_perf_cat. /hec1/cl_bopf_config_ui_tree_h=>get_instance( )->/hec1/if_bopf_config_ui_tree_h~update( VALUE #( FOR wa_db_server IN CORRESPONDING /hec1/t_data_db_serv_ct( <lt_data> ) ( VALUE #( parent_node_key = wa_db_server-parent_key node_key = wa_db_server-key hec_instance_status = wa_db_server-hec_instance_status hec_tree_descr = wa_db_server-hec_tree_descr hec_row_selectable = wa_db_server-hec_row_selectable hec_obj_type = /hec1/if_config_constants=>gc_tree_child-db_server hec_phase_guid = wa_db_server-hec_phase_guid crea_date_time = wa_db_server-crea_date_time hec_delete_visible = wa_db_server-hec_delete_visible change_request = wa_db_server-change_request ) ) ) ). WHEN /hec1/if_configuration_c=>sc_determination-db_storage-create. /hec1/cl_bopf_config_ui_tree_h=>get_instance( )->/hec1/if_bopf_config_ui_tree_h~insert( VALUE #( FOR wa_db_storage IN CORRESPONDING /hec1/t_data_db_storage_ct( <lt_data> ) ( VALUE #( parent_node_key = wa_db_storage-parent_key node_key = wa_db_storage-key hec_instance_status = wa_db_storage-hec_instance_status hec_tree_descr = wa_db_storage-hec_tree_descr hec_row_selectable = wa_db_storage-hec_row_selectable hec_obj_type = /hec1/if_config_constants=>gc_tree_child-db_storage hec_phase_guid = wa_db_storage-hec_phase_guid hec_delete_visible = wa_db_storage-hec_delete_visible crea_date_time = wa_db_storage-crea_date_time hec_successor_guid = wa_db_storage-hec_successor_guid change_request = wa_db_storage-change_request ) ) ) ). WHEN /hec1/if_configuration_c=>sc_determination-db_storage-update OR /hec1/if_configuration_c=>sc_determination-db_storage-update_after_server. /hec1/cl_bopf_config_ui_tree_h=>get_instance( )->/hec1/if_bopf_config_ui_tree_h~update( VALUE #( FOR wa_db_storage IN CORRESPONDING /hec1/t_data_db_storage_ct( <lt_data> ) ( VALUE #( parent_node_key = wa_db_storage-parent_key node_key = wa_db_storage-key hec_instance_status = wa_db_storage-hec_instance_status hec_tree_descr = wa_db_storage-hec_tree_descr hec_row_selectable = wa_db_storage-hec_row_selectable hec_obj_type = /hec1/if_config_constants=>gc_tree_child-db_storage hec_phase_guid = wa_db_storage-hec_phase_guid crea_date_time = wa_db_storage-crea_date_time hec_delete_visible = wa_db_storage-hec_delete_visible hec_successor_guid = wa_db_storage-hec_successor_guid change_request = wa_db_storage-change_request ) ) ) ). WHEN /hec1/if_configuration_c=>sc_determination-db_storage_backup-create. /hec1/cl_bopf_config_ui_tree_h=>get_instance( )->/hec1/if_bopf_config_ui_tree_h~insert( VALUE #( FOR wa_db_backup IN CORRESPONDING /hec1/t_data_db_backup_ct( <lt_data> ) ( VALUE #( parent_node_key = wa_db_backup-parent_key node_key = wa_db_backup-key hec_instance_status = wa_db_backup-hec_instance_status hec_tree_descr = wa_db_backup-hec_tree_descr hec_row_selectable = wa_db_backup-hec_row_selectable hec_obj_type = /hec1/if_config_constants=>gc_tree_child-db_backup hec_phase_guid = wa_db_backup-hec_phase_guid hec_delete_visible = wa_db_backup-hec_delete_visible crea_date_time = wa_db_backup-crea_date_time hec_successor_guid = wa_db_backup-hec_successor_guid change_request = wa_db_backup-change_request ) ) ) ). WHEN /hec1/if_configuration_c=>sc_determination-db_storage_backup-update OR /hec1/if_configuration_c=>sc_determination-db_storage_backup-update_after_storage. /hec1/cl_bopf_config_ui_tree_h=>get_instance( )->/hec1/if_bopf_config_ui_tree_h~update( VALUE #( FOR wa_db_backup IN CORRESPONDING /hec1/t_data_db_backup_ct( <lt_data> ) ( VALUE #( parent_node_key = wa_db_backup-parent_key node_key = wa_db_backup-key hec_instance_status = wa_db_backup-hec_instance_status hec_tree_descr = wa_db_backup-hec_tree_descr hec_row_selectable = wa_db_backup-hec_row_selectable hec_obj_type = /hec1/if_config_constants=>gc_tree_child-db_backup hec_phase_guid = wa_db_backup-hec_phase_guid hec_delete_visible = wa_db_backup-hec_delete_visible hec_successor_guid = wa_db_backup-hec_successor_guid change_request = wa_db_backup-change_request ) ) ) ). ENDCASE. ENDMETHOD. METHOD determine_db_instance_cr. DATA: lt_db_serv_inst TYPE /hec1/t_data_db_server_inst_ct, lt_db_serv_inst_all TYPE /hec1/t_data_db_server_inst_ct, lt_instance_db TYPE /hec1/t_data_db_inst_ct, lt_instance_db_all TYPE /hec1/t_data_db_inst_ct, lt_inst_db_before TYPE /hec1/t_data_db_inst_ct, lt_tier TYPE /hec1/t_data_tier_ct, lt_tier_all TYPE /hec1/t_data_tier_ct, lt_act_param TYPE /hec1/t_act_create_db_node, lt_act_param_instance TYPE /hec1/t_act_update_instance_db, lt_phase TYPE /hec1/t_data_phase_ct, lt_act_param_phasing TYPE TABLE OF /hec1/s_act_phase_inherit. CLEAR: eo_message, et_failed_key. " Data before update io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_before_image = abap_true IMPORTING et_data = lt_inst_db_before ). " Data after update io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key IMPORTING et_data = lt_instance_db ). " Get DB server instance io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-instance_db-to_parent IMPORTING et_data = lt_db_serv_inst et_target_key = DATA(lt_db_serv_inst_key) ). /hec1/cl_config_helper=>get_general_data( EXPORTING iv_node_key = is_ctx-node_key it_key = it_key io_read = io_read IMPORTING ev_root_key = DATA(lv_root_key) er_landscape = DATA(lr_landscape) er_delivery_unit = DATA(lr_dlvy_unit) et_datacenter = DATA(lt_datacenter) et_failed_key = et_failed_key ). TRY. CASE is_ctx-det_key. " *************************************************************************** " Create mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-instance_db-create. " Get Tier io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_server_instance it_key = lt_db_serv_inst_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server_instance-to_parent IMPORTING et_data = lt_tier et_target_key = DATA(lt_tier_key) ). " Get all tiers for multitenancy io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-root it_key = VALUE #( ( key = lv_root_key ) ) iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-root-solution IMPORTING et_target_key = DATA(lt_solution_all_key) ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-solution it_key = lt_solution_all_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-solution-tier IMPORTING et_data = lt_tier_all et_target_key = DATA(lt_tier_all_key) ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-tier it_key = lt_tier_all_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-tier-db_server_instance IMPORTING et_data = lt_db_serv_inst_all et_target_key = DATA(lt_db_serv_inst_all_key) ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_server_instance it_key = lt_db_serv_inst_all_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server_instance-instance_db IMPORTING et_data = lt_instance_db_all ). LOOP AT lt_instance_db REFERENCE INTO DATA(lr_instance_db). lr_instance_db->hec_delete_visible = abap_false. "----------------------------------- " Set Multitenancy Relation ID " to tenant " The corresponding tier is in: " DB_SERVER_INSTANCE-HEC_DB_TIER_GUID "----------------------------------- " if tenant is created: check for existing container IF lr_instance_db->hec_db_node_type_value = /hec1/if_config_constants=>gc_db_node_type-tenant "Tenant OR lr_instance_db->hec_db_node_type_value = /hec1/if_config_constants=>gc_db_node_type-container. "Container DATA(ls_db_serv_inst) = VALUE #( lt_db_serv_inst[ key = lr_instance_db->parent_key ] OPTIONAL ). DATA(ls_tier) = VALUE #( lt_tier[ key = ls_db_serv_inst-parent_key ] OPTIONAL ). CASE lr_instance_db->hec_db_node_type_value. WHEN /hec1/if_config_constants=>gc_db_node_type-tenant. "Tenant IF ls_db_serv_inst-hec_db_tier_guid IS NOT INITIAL. " 1. get related tier " This loop should only run once. We need the loop to exclude the own tier. LOOP AT lt_tier_all ASSIGNING FIELD-SYMBOL(<fs_tier_related>) WHERE hec_node_tier = ls_db_serv_inst-hec_db_tier_guid AND hec_node_tier <> ls_db_serv_inst-hec_node_tier. " 2. get instance db for referenced tier LOOP AT lt_db_serv_inst_all ASSIGNING FIELD-SYMBOL(<fs_db_serv_inst_related>) WHERE parent_key = <fs_tier_related>-key AND hec_db_impl_type_value = /hec1/if_config_constants=>gc_db_impl_type-multitenancy AND hec_db_allocation_value = /hec1/if_config_constants=>gc_db_allocation-internal. DATA(ls_instance_db_related) = VALUE #( lt_instance_db_all[ parent_key = <fs_db_serv_inst_related>-key hec_db_node_type_value = /hec1/if_config_constants=>gc_db_node_type-container ] OPTIONAL ). "Container lr_instance_db->hec_multi_tenant_rel_guid = ls_instance_db_related-hec_multi_tenant_rel_guid. DATA(lv_data_changed) = abap_true. ENDLOOP. "lt_db_serv_inst_all ENDLOOP. " lt_tier_all ENDIF. " IF ls_db_serv_inst-hec_db_tier_guid IS NOT INITIAL. " if container is created and the tenants already exist, set update of tenant to general " each of these tenants will have the DB Tier in the DB Server Instance WHEN /hec1/if_config_constants=>gc_db_node_type-container. "Container IF ls_db_serv_inst-hec_db_impl_type_value = /hec1/if_config_constants=>gc_db_impl_type-multitenancy AND ls_db_serv_inst-hec_db_allocation_value = /hec1/if_config_constants=>gc_db_allocation-internal. " 2. check if tenant instance for related stack exists LOOP AT lt_db_serv_inst_all ASSIGNING FIELD-SYMBOL(<fs_db_serv_inst_all>) WHERE hec_db_tier_guid = ls_db_serv_inst-hec_node_tier. LOOP AT lt_instance_db_all INTO DATA(ls_db_instance_db_all) WHERE parent_key = <fs_db_serv_inst_all>-key AND hec_db_node_type_value = /hec1/if_config_constants=>gc_db_node_type-tenant. "Tenant " 3. Add action to update tenant to general INSERT VALUE #( key = ls_db_instance_db_all-key parent_key = ls_db_instance_db_all-parent_key hec_multi_tenant_rel_guid = lr_instance_db->hec_multi_tenant_rel_guid do_update_multi_tenancy_guid = abap_true ) INTO TABLE lt_act_param_instance. ENDLOOP. "lt_instance_db_all ENDLOOP. "lt_db_serv_inst_all ENDIF. " IF ls_db_serv_inst-hec_db_impl_type_value = /hec1/if_config_constants=>gc_db_impl_type-multitenancy " AND ls_db_serv_inst-hec_db_allocation_value = /hec1/if_config_constants=>gc_db_allocation-internal. ENDCASE. ENDIF. "lr_instance_db->hec_db_node_type = '02' OR '03' "----------------------------------- " Set Value List Quantity - Cluster Type "----------------------------------- lr_instance_db->hec_dbst_nodety_clust_ty_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_cluster_type( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_dsi_dbstype_guid = lr_instance_db->hec_sol_tier_dsi_dbstype_guid iv_sol_dbst_alloc_nodety_guid = lr_instance_db->hec_sol_dbst_alloc_nodety_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). "----------------------------------- " Release instance for selection "----------------------------------- ASSIGN lt_db_serv_inst[ key = lr_instance_db->parent_key ] TO FIELD-SYMBOL(<fs_db_serv_inst>). IF <fs_db_serv_inst>-hec_sol_tier_stack_si_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_sol_tier_dsi_dbstype_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_sol_dbst_oper_sys_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_sol_dbst_impltype_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_sol_dbst_impty_instty_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_sol_dbst_imty_inty_al_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_row_selectable = abap_true. DATA(lv_release) = abap_true. ENDIF. IF lv_release <> lr_instance_db->hec_row_selectable. lr_instance_db->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Check instance status and switch "----------------------------------- DATA(lv_inst_status) = COND /hec1/config_instance_status( WHEN lr_instance_db->hec_dbst_nodety_clust_ty_guid IS NOT INITIAL AND lr_instance_db->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_instance_db->hec_instance_status. lr_instance_db->hec_instance_status = lv_inst_status. lv_data_changed = abap_true. ENDIF. "------------------------------------------ " Set CR related fields from the ROOT node "------------------------------------------ DATA(lv_cr_data_changed) = /hec1/cl_config_helper=>SET_CR_RELATED_FIELDS( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read io_modify = io_modify iv_mod_type = /hec1/if_config_constants=>gc_comp_mod_type-added is_node_data = lr_instance_db iv_set_apm = abap_true iv_clear_phase = abap_true ). IF lv_data_changed = abap_false. lv_data_changed = lv_cr_data_changed. ENDIF. "----------------------------------- " Fill action table for create " instance DB action "----------------------------------- INSERT VALUE #( key = lr_instance_db->key parent_key = lr_instance_db->parent_key hec_cluster_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master hec_def_master_node = abap_true hec_db_node_qty = 1 ) INTO TABLE lt_act_param. "----------------------------------- " Modify instance DB "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_instance_db->key is_data = lr_instance_db ). ENDIF. CLEAR: lv_release, lv_inst_status, lv_data_changed. UNASSIGN <fs_db_serv_inst>. ENDLOOP. "----------------------------------- " Set create DB node action " to general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_create_db_node( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_node ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. "----------------------------------- " Set Update Instance DB action " to general "----------------------------------- IF lt_act_param_instance IS NOT INITIAL. CLEAR me->mr_act_param_instance. me->mr_act_param_instance = NEW /hec1/t_act_update_instance_db( lt_act_param_instance ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_instance_db ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_instance ). ENDIF. " *************************************************************************** " Update mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-instance_db-update. io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-root it_key = VALUE #( ( key = lv_root_key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-root-phase IMPORTING et_data = lt_phase ). LOOP AT lt_instance_db REFERENCE INTO lr_instance_db. ASSIGN lt_inst_db_before[ key = lr_instance_db->key ] TO FIELD-SYMBOL(<fs_inst_db_before>). IF <fs_inst_db_before> IS ASSIGNED. lr_instance_db->hec_delete_visible = abap_false. "----------------------------------- " Set Value List Quantity - Cluster Type "----------------------------------- IF lr_instance_db->hec_dbst_nodety_clust_ty_guid <> <fs_inst_db_before>-hec_dbst_nodety_clust_ty_guid. lr_instance_db->hec_dbst_nodety_clust_ty_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_cluster_type( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_dsi_dbstype_guid = lr_instance_db->hec_sol_tier_dsi_dbstype_guid iv_sol_dbst_alloc_nodety_guid = lr_instance_db->hec_sol_dbst_alloc_nodety_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). lv_data_changed = abap_true. ENDIF. "cluster type has changed "----------------------------------- " Master, standby or " worker node is added "----------------------------------- IF lr_instance_db->hec_dbst_nodety_clust_ty_guid = <fs_inst_db_before>-hec_dbst_nodety_clust_ty_guid AND ( lr_instance_db->hec_db_master_node_qty <> <fs_inst_db_before>-hec_db_master_node_qty OR lr_instance_db->hec_db_standby_node_qty <> <fs_inst_db_before>-hec_db_standby_node_qty OR lr_instance_db->hec_db_worker_node_qty <> <fs_inst_db_before>-hec_db_worker_node_qty ). "----------------------------------- " Non default master node "----------------------------------- IF lr_instance_db->hec_db_master_node_qty > <fs_inst_db_before>-hec_db_master_node_qty. " Add non default master node to action table INSERT VALUE #( key = lr_instance_db->key parent_key = lr_instance_db->parent_key hec_cluster_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master hec_def_master_node = abap_false hec_db_node_qty = lr_instance_db->hec_db_master_node_qty - <fs_inst_db_before>-hec_db_master_node_qty ) INTO TABLE lt_act_param. " Success message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>new_master_node_added iv_severity = /bobf/cm_frw=>co_severity_success iv_attr1 = CONV #( lr_instance_db->hec_db_master_node_qty - <fs_inst_db_before>-hec_db_master_node_qty ) CHANGING co_message = eo_message ). ELSEIF lr_instance_db->hec_db_master_node_qty < <fs_inst_db_before>-hec_db_master_node_qty. DATA(lv_attr_name) = /hec1/if_configuration_c=>sc_node_attribute-instance_db-hec_db_master_node_qty. " Error message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>object_no_not_higher is_origin_location = VALUE #( node_key = is_ctx-node_key key = lr_instance_db->key attributes = VALUE #( ( lv_attr_name ) ) ) CHANGING co_message = eo_message ). " Set node number to value before update lr_instance_db->hec_db_master_node_qty = <fs_inst_db_before>-hec_db_master_node_qty. lv_data_changed = abap_true. ELSEIF lr_instance_db->hec_db_master_node_limit_qty < lr_instance_db->hec_db_master_node_limit_qty. " Error message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>node_limit_is_exceeded is_origin_location = VALUE #( node_key = is_ctx-node_key key = lr_instance_db->key attributes = VALUE #( ( lv_attr_name ) ) ) CHANGING co_message = eo_message ). " Set node number to value before update lr_instance_db->hec_db_master_node_qty = <fs_inst_db_before>-hec_db_master_node_qty. lv_data_changed = abap_true. ENDIF. " IF lr_instance_db->hec_db_master_node_qty > <fs_inst_db_before>-hec_db_master_node_qty. "----------------------------------- " Standby node "----------------------------------- IF lr_instance_db->hec_db_standby_node_qty > <fs_inst_db_before>-hec_db_standby_node_qty. " Add non default master node to action table INSERT VALUE #( key = lr_instance_db->key parent_key = lr_instance_db->parent_key hec_cluster_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-standby hec_def_master_node = abap_false hec_db_node_qty = lr_instance_db->hec_db_standby_node_qty - <fs_inst_db_before>-hec_db_standby_node_qty ) INTO TABLE lt_act_param. " Success message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>new_standby_node_added iv_severity = /bobf/cm_frw=>co_severity_success iv_attr1 = CONV #( lr_instance_db->hec_db_standby_node_qty - <fs_inst_db_before>-hec_db_standby_node_qty ) CHANGING co_message = eo_message ). ELSEIF lr_instance_db->hec_db_standby_node_qty < <fs_inst_db_before>-hec_db_standby_node_qty. lv_attr_name = /hec1/if_configuration_c=>sc_node_attribute-instance_db-hec_db_standby_node_qty. " Error message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>object_no_not_higher is_origin_location = VALUE #( node_key = is_ctx-node_key key = lr_instance_db->key attributes = VALUE #( ( lv_attr_name ) ) ) CHANGING co_message = eo_message ). " Set node number to value before update lr_instance_db->hec_db_standby_node_qty = <fs_inst_db_before>-hec_db_standby_node_qty. lv_data_changed = abap_true. ELSEIF lr_instance_db->hec_db_standby_node_limit_qty < lr_instance_db->hec_db_standby_node_limit_qty. " Error message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>node_limit_is_exceeded is_origin_location = VALUE #( node_key = is_ctx-node_key key = lr_instance_db->key attributes = VALUE #( ( lv_attr_name ) ) ) CHANGING co_message = eo_message ). " Set node number to value before update lr_instance_db->hec_db_standby_node_qty = <fs_inst_db_before>-hec_db_standby_node_qty. lv_data_changed = abap_true. ENDIF. " IF lr_instance_db->hec_db_standby_node_qty > <fs_inst_db_before>-hec_db_standby_node_qty. "----------------------------------- " Worker node "----------------------------------- IF lr_instance_db->hec_db_worker_node_qty > <fs_inst_db_before>-hec_db_worker_node_qty. " Add non default master node to action table INSERT VALUE #( key = lr_instance_db->key parent_key = lr_instance_db->parent_key hec_cluster_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-worker hec_def_master_node = abap_false hec_db_node_qty = lr_instance_db->hec_db_worker_node_qty - <fs_inst_db_before>-hec_db_worker_node_qty ) INTO TABLE lt_act_param. " Success message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>new_worker_node_added iv_severity = /bobf/cm_frw=>co_severity_success iv_attr1 = CONV #( lr_instance_db->hec_db_worker_node_qty - <fs_inst_db_before>-hec_db_worker_node_qty ) CHANGING co_message = eo_message ). ELSEIF lr_instance_db->hec_db_worker_node_qty < <fs_inst_db_before>-hec_db_worker_node_qty. lv_attr_name = /hec1/if_configuration_c=>sc_node_attribute-instance_db-hec_db_worker_node_qty. " Error message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>object_no_not_higher is_origin_location = VALUE #( node_key = is_ctx-node_key key = lr_instance_db->key attributes = VALUE #( ( lv_attr_name ) ) ) CHANGING co_message = eo_message ). " Set node number to value before update lr_instance_db->hec_db_worker_node_qty = <fs_inst_db_before>-hec_db_worker_node_qty. lv_data_changed = abap_true. ELSEIF lr_instance_db->hec_db_worker_node_limit_qty < lr_instance_db->hec_db_worker_node_limit_qty. " Error message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>node_limit_is_exceeded is_origin_location = VALUE #( node_key = is_ctx-node_key key = lr_instance_db->key attributes = VALUE #( ( lv_attr_name ) ) ) CHANGING co_message = eo_message ). " Set node number to value before update lr_instance_db->hec_db_worker_node_qty = <fs_inst_db_before>-hec_db_worker_node_qty. lv_data_changed = abap_true. ENDIF. " IF lr_instance_db->hec_db_worker_node_qty > <fs_inst_db_before>-hec_db_worker_node_qty. CLEAR lv_attr_name. ENDIF. " IF lr_instance_db->hec_db_cluster_type_guid = <fs_inst_db_before>-hec_db_cluster_type_guid AND... "----------------------------------- " Phasing has changed "----------------------------------- IF lr_instance_db->hec_phase_guid NE <fs_inst_db_before>-hec_phase_guid. APPEND VALUE #( hec_node_key = is_ctx-node_key hec_bopf_key = lr_instance_db->key hec_phase_guid_new = lr_instance_db->hec_phase_guid hec_phase_guid_old = <fs_inst_db_before>-hec_phase_guid ) TO lt_act_param_phasing. lr_instance_db->hec_phase_changed = abap_true. lv_data_changed = abap_true. ENDIF. "phasing changed ENDIF. " IF <fs_inst_db_before> IS ASSIGNED. "----------------------------------- " Check instance status and switch "----------------------------------- lv_inst_status = COND /hec1/config_instance_status( WHEN lr_instance_db->hec_dbst_nodety_clust_ty_guid IS NOT INITIAL AND lr_instance_db->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_instance_db->hec_instance_status. lr_instance_db->hec_instance_status = lv_inst_status. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify instance DB "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_instance_db->key is_data = lr_instance_db ). ENDIF. CLEAR: lv_inst_status, lv_data_changed. UNASSIGN <fs_inst_db_before>. ENDLOOP. "----------------------------------- " Set create DB node action to " general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param_db_node. me->mr_act_param_db_node = NEW /hec1/t_act_create_db_node( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act_node IN lt_act_param ( key = wa_act_node-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_node ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_db_node ). ENDIF. "----------------------------------- " Set update Phasing action to " general "----------------------------------- IF lt_act_param_phasing IS NOT INITIAL. me->mr_act_param_phasing = NEW /hec1/t_act_phase_inherit( lt_act_param_phasing ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = it_key iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-inherit_phase_assignment ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_phasing ). ENDIF. " ********************************** " Update mode after DB server " instance update " ********************************** WHEN /hec1/if_configuration_c=>sc_determination-instance_db-update_after_server_instance. LOOP AT lt_instance_db REFERENCE INTO lr_instance_db. ASSIGN lt_db_serv_inst[ key = lr_instance_db->parent_key ] TO <fs_db_serv_inst>. IF <fs_db_serv_inst> IS ASSIGNED. "----------------------------------- " Release instance for selection "----------------------------------- IF <fs_db_serv_inst>-hec_sol_tier_stack_si_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_sol_tier_dsi_dbstype_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_sol_dbst_oper_sys_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_sol_dbst_impltype_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_sol_dbst_impty_instty_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_sol_dbst_imty_inty_al_guid IS NOT INITIAL AND <fs_db_serv_inst>-hec_row_selectable = abap_true. lv_release = abap_true. ENDIF. IF lv_release <> lr_instance_db->hec_row_selectable. lr_instance_db->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify instance DB "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_instance_db->key is_data = lr_instance_db ). ENDIF. ENDIF. " IF <fs_db_serv_inst> IS ASSIGNED. UNASSIGN <fs_db_serv_inst>. CLEAR: lv_release, lv_data_changed. ENDLOOP. " LOOP AT lt_instance_db... ENDCASE. CATCH /bobf/cx_frw. " Exception class ENDTRY. ENDMETHOD. METHOD determine_db_node_cr. DATA: lt_instance_db TYPE /hec1/t_data_db_inst_ct, lt_db_node_all TYPE /hec1/t_data_db_node_ct, lt_db_node TYPE /hec1/t_data_db_node_ct, lt_db_node_before TYPE /hec1/t_data_db_node_ct, lt_db_serv_perf_cat TYPE /hec1/t_data_db_serv_pc_ct, lt_db_storage_qty TYPE /hec1/t_data_db_storage_qty_ct, lt_db_serv_pc TYPE /hec1/t_data_db_serv_pc_ct, lt_node_key TYPE /bobf/t_frw_key, lt_act_param TYPE /hec1/t_act_create_db_spc, lt_act_param_node TYPE /hec1/t_act_update_db_node, lt_phase TYPE /hec1/t_data_phase_ct, lt_act_param_phasing TYPE TABLE OF /hec1/s_act_phase_inherit. CLEAR: eo_message, et_failed_key. " Get data after update io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key IMPORTING et_data = lt_db_node ). /hec1/cl_config_helper=>get_general_data( EXPORTING iv_node_key = is_ctx-node_key it_key = it_key io_read = io_read IMPORTING ev_root_key = DATA(lv_root_key) er_landscape = DATA(lr_landscape) er_delivery_unit = DATA(lr_dlvy_unit) et_datacenter = DATA(lt_datacenter) et_failed_key = et_failed_key ). TRY. CASE is_ctx-det_key. " *************************************************************************** " Create mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_node-create. " Get instance DB node (parent) io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_node-to_parent IMPORTING et_data = lt_instance_db ). " DB master node LOOP AT lt_db_node REFERENCE INTO DATA(lr_db_node) WHERE hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master. "TODO this needs a more complex logic lr_db_node->hec_delete_visible = abap_false. "----------------------------------- " Check and switch instance status "----------------------------------- DATA(lv_inst_status) = COND /hec1/config_instance_status( WHEN lr_db_node->hec_db_srv_perf_cat_qty IS NOT INITIAL AND lr_db_node->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_node->hec_instance_status. lr_db_node->hec_instance_status = lv_inst_status. DATA(lv_data_changed) = abap_true. ENDIF. "----------------------------------- " Release instance for selection "----------------------------------- ASSIGN lt_instance_db[ key = lr_db_node->parent_key ] TO FIELD-SYMBOL(<fs_instance_db>). IF <fs_instance_db> IS ASSIGNED. IF <fs_instance_db>-hec_db_cluster_type_guid IS NOT INITIAL AND <fs_instance_db>-hec_row_selectable = abap_true. DATA(lv_release) = abap_true. ENDIF. ENDIF. IF lr_db_node->hec_row_selectable <> lv_release. lr_db_node->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "------------------------------------------ " Set CR related fields from the ROOT node "------------------------------------------ DATA(lv_cr_data_changed) = /hec1/cl_config_helper=>SET_CR_RELATED_FIELDS( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read io_modify = io_modify iv_mod_type = /hec1/if_config_constants=>gc_comp_mod_type-added is_node_data = lr_db_node iv_set_apm = abap_true iv_clear_phase = abap_true ). IF lv_data_changed = abap_false. lv_data_changed = lv_cr_data_changed. ENDIF. "----------------------------------- " Fill action table for create " DB server performance category "----------------------------------- IF NOT ( lr_db_node->hec_server_required = abap_false AND lr_db_node->hec_db_impl_type_value = '01' ). " Implementation type <> Dedicated INSERT VALUE #( key = lr_db_node->key parent_key = lr_db_node->parent_key hec_db_srv_perf_cat_qty = lr_db_node->hec_db_srv_perf_cat_qty ) INTO TABLE lt_act_param. ENDIF. "----------------------------------- " Modify DB server node "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_node->key is_data = lr_db_node ). ENDIF. UNASSIGN <fs_instance_db>. CLEAR: lv_inst_status, lv_release, lv_data_changed. ENDLOOP. "----------------------------------- " DB standby/worker node "----------------------------------- LOOP AT lt_db_node REFERENCE INTO lr_db_node WHERE ( hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi ) AND ( hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-standby OR hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-worker ). lr_db_node->hec_delete_visible = abap_false. "----------------------------------- " Check and switch instance status "----------------------------------- lv_inst_status = COND /hec1/config_instance_status( WHEN lr_db_node->hec_db_srv_perf_cat_qty IS NOT INITIAL AND lr_db_node->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_node->hec_instance_status. lr_db_node->hec_instance_status = lv_inst_status. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Release selection standby/worker " node "----------------------------------- " Check default master node is complete configered " ( including sub nodes: server performance category and storage amount ) DATA(lv_complete) = /hec1/cl_bopf_config_validat_h=>check_master_node_is_complete( iv_check_rule = /hec1/if_bopf_constants=>gc_check_rule-node is_ctx = is_ctx it_key = VALUE #( ( key = lr_db_node->key ) ) io_read = io_read ). IF ( lv_complete = abap_true AND lr_db_node->hec_row_selectable = abap_false ) OR ( lv_complete = abap_false AND lr_db_node->hec_row_selectable = abap_true ). lr_db_node->hec_row_selectable = COND #( WHEN lv_complete = abap_true THEN abap_true ELSE abap_false ). lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify DB standby/worker node "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_node->key is_data = lr_db_node ). ENDIF. CLEAR: lv_inst_status, lv_complete, lv_data_changed. ENDLOOP. "----------------------------------- " Set create DB server performance " category action to general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_create_app_spc( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_spc ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. " *************************************************************************** " Update mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_node-update. " Get data before update io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_before_image = abap_true IMPORTING et_data = lt_db_node_before ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-root it_key = VALUE #( ( key = lv_root_key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-root-phase IMPORTING et_data = lt_phase ). io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_node-db_server_perform_cat IMPORTING et_data = lt_db_serv_pc ). LOOP AT lt_db_node REFERENCE INTO lr_db_node. ASSIGN lt_db_node_before[ key = lr_db_node->key ] TO FIELD-SYMBOL(<fs_db_node_before>). IF <fs_db_node_before> IS ASSIGNED. "----------------------------------- " Fill action table for create " DB server performance category " for master node "----------------------------------- IF lr_db_node->hec_db_srv_perf_cat_qty > <fs_db_node_before>-hec_db_srv_perf_cat_qty. " Only for master node IF lr_db_node->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master. INSERT VALUE #( key = lr_db_node->key parent_key = lr_db_node->parent_key hec_db_srv_perf_cat_qty = lr_db_node->hec_db_srv_perf_cat_qty - <fs_db_node_before>-hec_db_srv_perf_cat_qty ) INTO TABLE lt_act_param. " Success message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>new_serv_perf_cat_added iv_severity = /bobf/cm_frw=>co_severity_success iv_attr1 = CONV #( lr_db_node->hec_db_srv_perf_cat_qty - <fs_db_node_before>-hec_db_srv_perf_cat_qty ) CHANGING co_message = eo_message ). " Set flag for deleting subnodes of standby/worker node IF ( lr_db_node->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR lr_db_node->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi ) AND lr_db_node->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_node->hec_master_default = abap_true. lv_data_changed = abap_true. DATA(lv_delete_subnode) = abap_true. ENDIF. ENDIF. " IF lr_db_node->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master. ELSEIF lr_db_node->hec_db_srv_perf_cat_qty < <fs_db_node_before>-hec_db_srv_perf_cat_qty AND lr_db_node->hec_db_srv_perf_cat_qty < lines( VALUE /hec1/t_data_db_serv_pc_ct( FOR db_serv_pc IN lt_db_serv_pc WHERE ( parent_key = lr_db_node->key ) ( db_serv_pc ) ) ). DATA(lv_attr_name) = /hec1/if_configuration_c=>sc_node_attribute-db_node-hec_db_srv_perf_cat_qty. " Error message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>object_no_not_higher is_origin_location = VALUE #( node_key = is_ctx-node_key key = lr_db_node->key attributes = VALUE #( ( lv_attr_name ) ) ) CHANGING co_message = eo_message ). " Set node number to value before update lr_db_node->hec_db_srv_perf_cat_qty = <fs_db_node_before>-hec_db_srv_perf_cat_qty. lv_data_changed = abap_true. ENDIF. " IF lr_db_node->hec_dn_srv_perf_cat_qty > <fs_db_node_before>-hec_dn_srv_perf_cat_qty. "----------------------------------- " Fill action table for update " phasing "----------------------------------- IF lr_db_node->hec_phase_guid NE <fs_db_node_before>-hec_phase_guid. " Only for default master node IF lr_db_node->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_node->hec_master_default = abap_true. APPEND VALUE #( hec_node_key = is_ctx-node_key hec_bopf_key = lr_db_node->key hec_phase_guid_new = lr_db_node->hec_phase_guid hec_phase_guid_old = <fs_db_node_before>-hec_phase_guid ) TO lt_act_param_phasing. ENDIF. lr_db_node->hec_phase_changed = abap_true. lv_data_changed = abap_true. " Set flag for deleting subnodes of standby/worker node IF lr_db_node->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR lr_db_node->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi. lv_delete_subnode = abap_true. ENDIF. ENDIF. "phasing changed ENDIF. " IF <fs_db_node_before> IS ASSIGNED. "----------------------------------- " Check instance status and switch "----------------------------------- lv_inst_status = COND /hec1/config_instance_status( WHEN lr_db_node->hec_db_srv_perf_cat_qty IS NOT INITIAL AND lr_db_node->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_node->hec_instance_status. lr_db_node->hec_instance_status = lv_inst_status. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Fill action table for delete " subnodes of DB standby/worker node " or relase standby/worker node "----------------------------------- IF ( lr_db_node->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR lr_db_node->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi ) AND lr_db_node->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_node->hec_master_default = abap_true AND lv_data_changed = abap_true. IF NOT line_exists( lt_act_param_node[ key = lr_db_node->key ] ). INSERT VALUE #( key = lr_db_node->key parent_key = lr_db_node->parent_key do_release_node = COND #( WHEN lr_db_node->hec_instance_status = /hec1/if_config_constants=>gc_instance_status-complete AND <fs_db_node_before>-hec_instance_status = /hec1/if_config_constants=>gc_instance_status-incomplete THEN abap_true ELSE abap_false ) do_delete_subnode = COND #( WHEN lr_db_node->hec_instance_status = /hec1/if_config_constants=>gc_instance_status-incomplete OR lv_delete_subnode = abap_true THEN abap_true ELSE abap_false ) ) INTO TABLE lt_act_param_node. ENDIF. ENDIF. " IF ( lr_db_node->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR... "----------------------------------- " Modify DB node "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_node->key is_data = lr_db_node ). ENDIF. CLEAR: lv_inst_status, lv_data_changed, lv_attr_name, lv_delete_subnode. UNASSIGN <fs_db_node_before>. ENDLOOP. "----------------------------------- " Set create DB server performance " category action to general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_create_db_spc( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_spc ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. "----------------------------------- " Set update phasing action to " general "----------------------------------- IF lt_act_param_phasing IS NOT INITIAL. me->mr_act_param_phasing = NEW /hec1/t_act_phase_inherit( lt_act_param_phasing ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = it_key iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-inherit_phase_assignment ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_phasing ). ENDIF. "----------------------------------- " Set update DB node action to " general "----------------------------------- IF lt_act_param_node IS NOT INITIAL. CLEAR me->mr_act_param_db_node. me->mr_act_param_db_node = NEW /hec1/t_act_update_db_node( lt_act_param_node ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_node ) it_key = VALUE #( FOR wa_act_node IN lt_act_param_node ( key = wa_act_node-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_db_node ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_db_node ). ENDIF. " ********************************** " Update mode after instance DB " update " ********************************** WHEN /hec1/if_configuration_c=>sc_determination-db_node-update_after_instance_db. " Get instance DB io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_node-to_parent IMPORTING et_data = lt_instance_db ). LOOP AT lt_db_node REFERENCE INTO lr_db_node. ASSIGN lt_instance_db[ key = lr_db_node->parent_key ] TO <fs_instance_db>. IF <fs_instance_db> IS ASSIGNED. IF <fs_instance_db>-hec_db_cluster_type_guid IS NOT INITIAL AND <fs_instance_db>-hec_row_selectable = abap_true. lv_release = abap_true. ENDIF. ENDIF. " Release instance for selection IF lr_db_node->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_app_clust_node_type-master AND lv_release <> lr_db_node->hec_row_selectable. lr_db_node->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. " Release instance for selection( standby/worker node) IF ( lr_db_node->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-standby OR lr_db_node->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-worker ) AND /hec1/cl_bopf_config_validat_h=>check_standby_node_is_released( iv_check_rule = /hec1/if_bopf_constants=>gc_check_rule-node is_ctx = is_ctx it_key = it_key io_read = io_read ) = abap_true. IF lr_db_node->hec_row_selectable <> lv_release. lr_db_node->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. ENDIF. " Update DB server cluster type IF lr_db_node->hec_db_cluster_type_value <> <fs_instance_db>-hec_db_cluster_type_value. lr_db_node->hec_db_cluster_type_value = <fs_instance_db>-hec_db_cluster_type_value. lv_data_changed = abap_true. ENDIF. IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_node->key is_data = lr_db_node ). ENDIF. UNASSIGN <fs_instance_db>. CLEAR: lv_data_changed, lv_release. ENDLOOP. ENDCASE. CATCH /bobf/cx_frw. " Exception class ENDTRY. ENDMETHOD. METHOD determine_db_server_cr. DATA: lt_line TYPE TABLE OF string, lv_inf_provider_guid TYPE /hec1/inf_provider_id, lv_datacenter_guid TYPE /hec1/datacenter_fdt_guid, lt_db_server TYPE /hec1/t_data_db_serv_ct, lt_db_server_before TYPE /hec1/t_data_db_serv_ct, lt_db_serv_perf_cat TYPE /hec1/t_data_db_serv_pc_ct, lt_phase TYPE /hec1/t_data_phase_ct, lt_act_param TYPE /hec1/t_act_create_db_storage, * lt_act_param_server TYPE /hec1/t_act_update_db_server, lt_act_param_storage TYPE /bobf/t_frw_key, lt_act_param_dlvy TYPE /hec1/t_act_update_dlvy_unit, lt_act_param_datac TYPE /hec1/t_act_update_datacenter, lt_act_param_node TYPE /hec1/t_act_update_db_node, lt_act_param_phasing TYPE TABLE OF /hec1/s_act_phase_inherit. CLEAR: eo_message, et_failed_key. io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key IMPORTING et_data = lt_db_server ). /hec1/cl_config_helper=>get_general_data( EXPORTING iv_node_key = is_ctx-node_key it_key = it_key io_read = io_read IMPORTING ev_root_key = DATA(lv_root_key) er_landscape = DATA(lr_landscape) er_delivery_unit = DATA(lr_dlvy_unit) et_datacenter = DATA(lt_datacenter) et_failed_key = et_failed_key ). TRY. CASE is_ctx-det_key. " *************************************************************************** " Create mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server-create. " Get DB server performance category node (parent) io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server-to_parent IMPORTING et_data = lt_db_serv_perf_cat ). LOOP AT lt_db_server REFERENCE INTO DATA(lr_db_server) WHERE hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master. "----------------------------------- " Set Value List Quantity - Server "----------------------------------- lr_db_server->hec_ip_server_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_server( iv_apm_guid = lr_landscape->hec_apm_guid iv_infra_provider_guid = lr_dlvy_unit->hec_inf_provider_guid iv_sec_datacenter_guid = lr_db_server->hec_sec_datacenter_guid iv_srv_perf_cat_guid = VALUE #( lt_db_serv_perf_cat[ 1 ]-hec_srv_perf_cat_guid OPTIONAL ) ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). lr_db_server->hec_delete_visible = abap_false. "----------------------------------- " Check instance status and switch "----------------------------------- DATA(lv_inst_status) = COND /hec1/config_instance_status( WHEN lr_db_server->hec_ip_server_guid IS NOT INITIAL AND lr_db_server->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_server->hec_instance_status. lr_db_server->hec_instance_status = lv_inst_status. DATA(lv_data_changed) = abap_true. ENDIF. "----------------------------------- " Release instance for selection "----------------------------------- ASSIGN lt_db_serv_perf_cat[ key = lr_db_server->parent_key ] TO FIELD-SYMBOL(<fs_db_serv_perf_cat>). IF <fs_db_serv_perf_cat> IS ASSIGNED. IF <fs_db_serv_perf_cat>-hec_srv_perf_cat_guid IS NOT INITIAL AND <fs_db_serv_perf_cat>-hec_row_selectable = abap_true. DATA(lv_release) = abap_true. ENDIF. ENDIF. IF lv_release <> lr_db_server->hec_row_selectable. lr_db_server->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "------------------------------------------ " Set CR related fields from the ROOT node "------------------------------------------ DATA(lv_cr_data_changed) = /hec1/cl_config_helper=>SET_CR_RELATED_FIELDS( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read io_modify = io_modify iv_mod_type = /hec1/if_config_constants=>gc_comp_mod_type-added is_node_data = lr_db_server iv_set_apm = abap_true iv_clear_phase = abap_true ). "----------------------------------- " Fill action table for create " DB server storage "----------------------------------- INSERT VALUE #( key = lr_db_server->key parent_key = lr_db_server->parent_key hec_pricing_included = abap_false ) INTO TABLE lt_act_param. "----------------------------------- " Modify DB server "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_server->key is_data = lr_db_server ). ENDIF. UNASSIGN <fs_db_serv_perf_cat>. CLEAR: lv_inst_status, lv_release, lv_data_changed. ENDLOOP. "----------------------------------- " Set create DB server storage " action to general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_create_db_storage( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_storage ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. " *************************************************************************** " Update mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server-update. io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_before_image = abap_true IMPORTING et_data = lt_db_server_before ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-root it_key = VALUE #( ( key = lv_root_key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-root-phase IMPORTING et_data = lt_phase ). " Get DB Server PC (parent) io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_server it_key = it_key iv_association = /hec1/if_configuration_c=>sc_association-db_server-to_parent IMPORTING et_target_key = DATA(lt_db_serv_pc_key) et_key_link = DATA(lt_db_serv_pc_key_link) ). " Get DB Node (parent) io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_server_perform_cat it_key = lt_db_serv_pc_key iv_association = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-to_parent IMPORTING et_key_link = DATA(lt_db_node_key_link) ). " Get DB Storage (child) io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_association = /hec1/if_configuration_c=>sc_association-db_server-db_storage IMPORTING et_key_link = DATA(lt_server_to_storage_link) ). LOOP AT lt_db_server REFERENCE INTO lr_db_server. ASSIGN lt_db_server_before[ key = lr_db_server->key ] TO FIELD-SYMBOL(<fs_db_server_before>). IF <fs_db_server_before> IS ASSIGNED. "----------------------------------- " Split DB server infrastructure " provider server GUID "----------------------------------- IF lr_db_server->hec_ip_server_guid CA ';'. SPLIT lr_db_server->hec_ip_server_guid AT ';' INTO TABLE lt_line. LOOP AT lt_line ASSIGNING FIELD-SYMBOL(<fs_line>). CASE sy-tabix. WHEN 1. lr_db_server->hec_ip_server_guid = <fs_line>. WHEN 2. lv_inf_provider_guid = <fs_line>. WHEN 3. lv_datacenter_guid = <fs_line>. ENDCASE. ENDLOOP. "----------------------------------- " Fill action table for update " delivery unit "----------------------------------- IF lr_dlvy_unit->hec_inf_provider_guid IS INITIAL. INSERT VALUE #( key = lr_dlvy_unit->key parent_key = lr_dlvy_unit->parent_key hec_inf_provider_guid = lv_inf_provider_guid ) INTO TABLE lt_act_param_dlvy. ENDIF. "----------------------------------- " Fill action table for update " data center "----------------------------------- TRY. DATA(ls_datacenter) = lt_datacenter[ hec_node_datacenter = lr_db_server->hec_tier_datacenter_guid ]. IF ls_datacenter-hec_datacenter_guid IS INITIAL. INSERT VALUE #( key = ls_datacenter-key parent_key = ls_datacenter-parent_key hec_datacenter_fdt_guid = lv_datacenter_guid ) INTO TABLE lt_act_param_datac. * "----------------------------------- " Fill action table for update " db node pricing "----------------------------------- INSERT VALUE #( key = lt_db_node_key_link[ source_key = lr_db_server->parent_key ]-target_key ) INTO TABLE lt_act_param_node. ENDIF. " IF ls_datacenter-hec_datacenter_guid IS INITIAL. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDIF. " IF ls_db_server-hec_ds_ip_server_guid CA ';'. "----------------------------------- " Infrastructure provider server " has changed "----------------------------------- IF lr_db_server->hec_ip_server_guid IS NOT INITIAL AND lr_db_server->hec_ip_server_guid <> <fs_db_server_before>-hec_ip_server_guid. IF lv_inf_provider_guid IS NOT INITIAL. lr_dlvy_unit->hec_inf_provider_guid = lv_inf_provider_guid. ENDIF. IF lr_db_server->hec_sec_datacenter_guid IS INITIAL AND lv_datacenter_guid IS NOT INITIAL. lr_db_server->hec_sec_datacenter_guid = lv_datacenter_guid. lv_data_changed = abap_true. ENDIF. SELECT SINGLE * FROM /hec1/i_serverbasic WHERE hec_apm_guid = @lr_landscape->hec_apm_guid AND hec_infra_provider_guid = @lr_dlvy_unit->hec_inf_provider_guid AND hec_sec_datacenter_guid = @lr_db_server->hec_sec_datacenter_guid AND hec_ip_server_guid = @lr_db_server->hec_ip_server_guid INTO @DATA(ls_server). IF ls_server IS NOT INITIAL. lr_db_server->hec_ip_server_descr = ls_server-hec_ip_server_descr. lr_db_server->hec_ip_server_guid = ls_server-hec_ip_server_guid. lr_db_server->hec_host_type_descr = ls_server-hec_srv_host_type_descr. lr_db_server->hec_host_type_value = ls_server-hec_srv_host_type_value. lr_db_server->hec_ram_size = ls_server-hec_srv_ram_size. lr_db_server->hec_cpu_size = ls_server-hec_srv_cpu_size. lr_db_server->hec_sec_datacenter_guid = ls_server-hec_sec_datacenter_guid. lr_db_server->hec_srv_main_stor_qty = ls_server-hec_srv_main_storage_qty. lr_db_server->hec_tree_descr = ls_server-hec_ip_server_descr. "#EC CI_FLDEXT_OK[2215424] lr_db_server->hec_srv_flavour = ls_server-hec_srv_flavour. lr_db_server->hec_saps = ls_server-hec_saps. lr_db_server->hec_approval_needed = ls_server-hec_approval_needed. lv_data_changed = abap_true. " Set Value List Quantity - Server lr_db_server->hec_ip_server_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_server( iv_apm_guid = lr_landscape->hec_apm_guid iv_infra_provider_guid = lr_dlvy_unit->hec_inf_provider_guid iv_sec_datacenter_guid = lr_db_server->hec_sec_datacenter_guid iv_srv_perf_cat_guid = VALUE #( lt_db_serv_perf_cat[ 1 ]-hec_srv_perf_cat_guid OPTIONAL ) ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). " ************************ " Get DB server pricing " ************************ SELECT SINGLE hec_cb_pricing_lb_guid FROM /hec1/i_serverlbbasic WHERE hec_apm_guid = @lr_landscape->hec_apm_guid AND hec_sec_datacenter_guid = @lr_db_server->hec_sec_datacenter_guid AND hec_infra_provider_guid = @lr_dlvy_unit->hec_inf_provider_guid AND hec_ip_server_guid = @lr_db_server->hec_ip_server_guid INTO @DATA(lv_lb_guid). SELECT SINGLE * FROM /hec1/c_cbp_lb "#EC CI_ALL_FIELDS_NEEDED INTO @DATA(ls_pricing) WHERE hec_price_lb = @lv_lb_guid. lr_db_server->* = CORRESPONDING #( BASE ( lr_db_server->* ) ls_pricing ). "----------------------------------- " Fill action table for update " DB server storage "----------------------------------- LOOP AT lt_server_to_storage_link REFERENCE INTO DATA(lr_server_to_storage_link) WHERE source_key = lr_db_server->key. INSERT VALUE #( key = lr_server_to_storage_link->target_key ) INTO TABLE lt_act_param_storage. ENDLOOP. ENDIF. " IF ls_server IS NOT INITIAL. ENDIF. " IF lr_db_server->hec_ip_server_guid IS INITIAL "----------------------------------- " Phase has changed "----------------------------------- IF lr_db_server->hec_phase_guid NE <fs_db_server_before>-hec_phase_guid. " Only for default master node IF lr_db_server->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_server->hec_db_node_default = abap_true. APPEND VALUE #( hec_node_key = is_ctx-node_key hec_bopf_key = lr_db_server->key hec_phase_guid_new = lr_db_server->hec_phase_guid hec_phase_guid_old = <fs_db_server_before>-hec_phase_guid ) TO lt_act_param_phasing. ENDIF. lr_db_server->hec_phase_changed = abap_true. lv_data_changed = abap_true. ENDIF. "phasing changed ENDIF. " if <fs_db_server_before> is assigned. "----------------------------------- " Check instance status and switch "----------------------------------- lv_inst_status = COND /hec1/config_instance_status( WHEN lr_db_server->hec_ip_server_guid IS NOT INITIAL AND lr_db_server->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_server->hec_instance_status. lr_db_server->hec_instance_status = lv_inst_status. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify DB server "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_server->key is_data = lr_db_server ). ENDIF. UNASSIGN: <fs_line>, <fs_db_server_before>. CLEAR: lv_inf_provider_guid, lv_datacenter_guid, lv_lb_guid, lv_inst_status, lv_data_changed, ls_datacenter, ls_server, ls_pricing, lt_line. ENDLOOP. "----------------------------------- " Set update delivery unit action to " general "----------------------------------- IF lt_act_param_dlvy IS NOT INITIAL. CLEAR me->mr_act_param_dlvy. me->mr_act_param_dlvy = NEW /hec1/t_act_update_dlvy_unit( lt_act_param_dlvy ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-delivery_unit ) it_key = VALUE #( FOR wa_act_dlvy IN lt_act_param_dlvy ( key = wa_act_dlvy-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_delivery_unit ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_dlvy ). ENDIF. "----------------------------------- " Set update data center action to " general "----------------------------------- IF lt_act_param_datac IS NOT INITIAL. CLEAR me->mr_act_param_datac. me->mr_act_param_datac = NEW /hec1/t_act_update_datacenter( lt_act_param_datac ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-datacenter ) it_key = VALUE #( FOR wa_act_datac IN lt_act_param_datac ( key = wa_act_datac-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_datacenter ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_datac ). ENDIF. "----------------------------------- " Set DB Node action to " general "----------------------------------- IF lt_act_param_node IS NOT INITIAL. /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_node ) it_key = VALUE #( FOR wa_act_node IN lt_act_param_node ( key = wa_act_node-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_db_node ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ). ENDIF. "----------------------------------- " Set update DB Storage action to " general "----------------------------------- IF lt_act_param_storage IS NOT INITIAL. /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_storage ) it_key = lt_act_param_storage iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_db_storage ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ). ENDIF. "----------------------------------- " Set update phase action to general "----------------------------------- IF lt_act_param_phasing IS NOT INITIAL. me->mr_act_param_phasing = NEW /hec1/t_act_phase_inherit( lt_act_param_phasing ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = it_key iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-inherit_phase_assignment ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_phasing ). ENDIF. " *************************************************************************** " Update mode after app server " performance category update " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server-update_after_serv_perf_cat. io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key IMPORTING et_data = lt_db_server ). " Get DB server performance category (parent) io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server-to_parent IMPORTING et_data = lt_db_serv_perf_cat ). LOOP AT lt_db_server REFERENCE INTO lr_db_server. ASSIGN lt_db_serv_perf_cat[ key = lr_db_server->parent_key ] TO <fs_db_serv_perf_cat>. IF <fs_db_serv_perf_cat> IS ASSIGNED. IF <fs_db_serv_perf_cat>-hec_srv_perf_cat_guid IS NOT INITIAL AND <fs_db_serv_perf_cat>-hec_row_selectable = abap_true. lv_release = abap_true. ENDIF. ENDIF. "----------------------------------- " Release instance for selection "----------------------------------- IF lv_release <> lr_db_server->hec_row_selectable. lr_db_server->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Update DB server cluster type "----------------------------------- IF lr_db_server->hec_db_cluster_type_value <> <fs_db_serv_perf_cat>-hec_db_cluster_type_value. lr_db_server->hec_db_cluster_type_value = <fs_db_serv_perf_cat>-hec_db_cluster_type_value. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_server->key is_data = lr_db_server ). ENDIF. UNASSIGN <fs_db_serv_perf_cat>. CLEAR: lv_release, lv_data_changed. ENDLOOP. " LOOP AT lt_db_server REFERENCE INTO lr_db_server. ENDCASE. CATCH /bobf/cx_frw. " Exception class ENDTRY. ENDMETHOD. METHOD determine_db_server_instanc_cr. DATA: lt_db_serv_inst TYPE /hec1/t_data_db_server_inst_ct, lt_db_serv_inst_before TYPE /hec1/t_data_db_server_inst_ct, lt_instance_db TYPE /hec1/t_data_db_inst_ct, lt_tier TYPE /hec1/t_data_tier_ct, lt_tier_all TYPE /hec1/t_data_tier_ct, lt_solution TYPE /hec1/t_data_solution_ct, ls_landscape TYPE /hec1/s_config_root_cs, lt_act_param TYPE /hec1/t_act_create_instance_db, lt_act_param_delete TYPE /bobf/t_frw_node, lt_phase TYPE /hec1/t_data_phase_ct, lt_act_param_phasing TYPE TABLE OF /hec1/s_act_phase_inherit. CLEAR: eo_message, et_failed_key. " Data before update io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_before_image = abap_true IMPORTING et_data = lt_db_serv_inst_before ). " Data after update io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key IMPORTING et_data = lt_db_serv_inst ). /hec1/cl_config_helper=>get_general_data( EXPORTING iv_node_key = is_ctx-node_key it_key = it_key io_read = io_read IMPORTING ev_root_key = DATA(lv_root_key) er_landscape = DATA(lr_landscape) er_delivery_unit = DATA(lr_dlvy_unit) et_datacenter = DATA(lt_datacenter) et_failed_key = et_failed_key ). "----------------------------------- " Get APM model GUID and description "----------------------------------- /hec1/cl_config_helper=>get_apm_model( EXPORTING iv_node_key = is_ctx-node_key it_key = it_key io_read = io_read IMPORTING et_failed_key = et_failed_key es_apm_model = ls_landscape ). TRY. CASE is_ctx-det_key. " *************************************************************************** " Create mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server_instance-create. LOOP AT lt_db_serv_inst REFERENCE INTO DATA(lr_db_serv_inst). "----------------------------------- " Set Value List Quantity "----------------------------------- " Server Instance lr_db_serv_inst->hec_sol_tier_stack_si_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_server_instance( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_stack_guid = lr_db_serv_inst->hec_sol_tier_stack_si_guid iv_srv_inst_rel_value = lr_db_serv_inst->hec_srv_inst_rel_value iv_solution_guid = lr_db_serv_inst->hec_solution_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). " DB Type lr_db_serv_inst->hec_sol_tier_dsi_dbstype_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_server_type( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_stack_si_guid = lr_db_serv_inst->hec_sol_tier_stack_si_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). " Implementation Type lr_db_serv_inst->hec_sol_dbst_impltype_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_implementation_type( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). " Instance Type lr_db_serv_inst->hec_sol_dbst_impty_instty_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_instance_type( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid iv_sol_dbst_impltype_guid = lr_db_serv_inst->hec_sol_dbst_impltype_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). " Allocation lr_db_serv_inst->hec_sol_dbst_imty_inty_al_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_allocation( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid iv_sol_dbst_impty_instty_guid = lr_db_serv_inst->hec_sol_dbst_impty_instty_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). " Operating System lr_db_serv_inst->hec_sol_dbst_oper_sys_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_operating_system( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). lr_db_serv_inst->hec_delete_visible = abap_false. "----------------------------------- " Check instance status and switch "----------------------------------- DATA(lv_inst_status) = COND /hec1/config_instance_status( WHEN lr_db_serv_inst->hec_sol_tier_stack_si_guid IS NOT INITIAL AND lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid IS NOT INITIAL AND lr_db_serv_inst->hec_sol_dbst_oper_sys_guid IS NOT INITIAL AND lr_db_serv_inst->hec_sol_dbst_impltype_guid IS NOT INITIAL AND lr_db_serv_inst->hec_sol_dbst_impty_instty_guid IS NOT INITIAL AND lr_db_serv_inst->hec_sol_dbst_imty_inty_al_guid IS NOT INITIAL AND lr_db_serv_inst->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_serv_inst->hec_instance_status. lr_db_serv_inst->hec_instance_status = lv_inst_status. DATA(lv_data_changed) = abap_true. ENDIF. "------------------------------------------ " Set CR related fields from the ROOT node "------------------------------------------ DATA(lv_cr_data_changed) = /hec1/cl_config_helper=>SET_CR_RELATED_FIELDS( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read io_modify = io_modify iv_mod_type = /hec1/if_config_constants=>gc_comp_mod_type-added is_node_data = lr_db_serv_inst iv_set_apm = abap_true iv_clear_phase = abap_true ). IF lv_data_changed = abap_false. lv_data_changed = lv_cr_data_changed. ENDIF. "----------------------------------- " Fill action table for create " instance DB action "----------------------------------- IF lr_db_serv_inst->hec_db_quantity IS NOT INITIAL. INSERT VALUE #( key = lr_db_serv_inst->key parent_key = lr_db_serv_inst->parent_key hec_db_quantity = lr_db_serv_inst->hec_db_quantity ) INTO TABLE lt_act_param. ENDIF. "----------------------------------- " Modify DB server instance "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_serv_inst->key is_data = lr_db_serv_inst ). ENDIF. CLEAR: lv_inst_status, lv_data_changed. ENDLOOP. "----------------------------------- " Set create Instance DB action to " action to general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_create_instance_db( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_inst_db ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. " *************************************************************************** " Update mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server_instance-update. " Get instance DB io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server_instance-instance_db IMPORTING et_data = lt_instance_db ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-root it_key = VALUE #( ( key = lv_root_key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-root-phase IMPORTING et_data = lt_phase ). io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server_instance-to_parent IMPORTING et_data = lt_tier et_target_key = DATA(lt_tier_key) ). IF line_exists( lt_tier[ hec_related_stack = abap_true ] ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-tier it_key = lt_tier_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-tier-to_parent IMPORTING et_data = lt_solution et_target_key = DATA(lt_solution_key) ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-solution it_key = lt_solution_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-solution-tier IMPORTING et_data = lt_tier_all ). ENDIF. "----------------------------------- " Get DB server type "----------------------------------- SELECT * FROM /hec1/i_dbservertypebasic WHERE hec_apm_guid = @ls_landscape-hec_apm_guid INTO TABLE @DATA(lt_db_server_type). "----------------------------------- " Get DB server operating system "----------------------------------- SELECT * FROM /hec1/i_dboperssystembasic WHERE hec_apm_guid = @ls_landscape-hec_apm_guid INTO TABLE @DATA(lt_db_operating_sys). "----------------------------------- " Get DB server implementation type "----------------------------------- SELECT * FROM /hec1/i_dbimplementtypebasic WHERE hec_apm_guid = @ls_landscape-hec_apm_guid INTO TABLE @DATA(lt_db_impl_type). "----------------------------------- " Get DB server instance type "----------------------------------- SELECT * FROM /hec1/i_dbinstancetypebasic WHERE hec_apm_guid = @ls_landscape-hec_apm_guid INTO TABLE @DATA(lt_db_inst_type). "----------------------------------- " Get DB server allocation "----------------------------------- SELECT * FROM /hec1/i_dballocationbasic WHERE hec_apm_guid = @ls_landscape-hec_apm_guid INTO TABLE @DATA(lt_db_allocation). LOOP AT lt_db_serv_inst REFERENCE INTO lr_db_serv_inst. ASSIGN lt_db_serv_inst_before[ key = lr_db_serv_inst->key ] TO FIELD-SYMBOL(<fs_db_serv_inst_before>). IF <fs_db_serv_inst_before> IS ASSIGNED. lr_db_serv_inst->hec_delete_visible = abap_false. "----------------------------------- " DB server type has changed "----------------------------------- IF lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid IS NOT INITIAL AND lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid <> <fs_db_serv_inst_before>-hec_sol_tier_dsi_dbstype_guid. TRY. DATA(ls_db_server_type) = lt_db_server_type[ hec_sol_tier_stack_si_guid = lr_db_serv_inst->hec_sol_tier_stack_si_guid hec_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid ]. lr_db_serv_inst->hec_db_srv_type_guid = ls_db_server_type-hec_db_srv_type_guid. lr_db_serv_inst->hec_db_srv_type_value = ls_db_server_type-hec_db_srv_type_value. lr_db_serv_inst->hec_db_srv_type_descr = ls_db_server_type-hec_db_srv_type_descr. lr_db_serv_inst->hec_calc_setup_dr = ls_db_server_type-hec_calc_setup_dr. lr_db_serv_inst->hec_ty_support_stat_value = ls_db_server_type-hec_ty_support_stat_value. lr_db_serv_inst->hec_ty_support_stat_descr = ls_db_server_type-hec_ty_support_stat_descr. lr_db_serv_inst->hec_tree_descr = ls_db_server_type-hec_db_srv_type_descr. lv_data_changed = abap_true. " Set Value List Quantity " DB Type lr_db_serv_inst->hec_sol_tier_dsi_dbstype_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_server_type( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_stack_si_guid = lr_db_serv_inst->hec_sol_tier_stack_si_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). IF lr_db_serv_inst->hec_init_ty_support_stat_value IS INITIAL. lr_db_serv_inst->hec_init_ty_support_stat_value = lr_db_serv_inst->hec_ty_support_stat_value. lr_db_serv_inst->hec_init_ty_support_stat_descr = lr_db_serv_inst->hec_ty_support_stat_descr. ENDIF. IF lr_db_serv_inst->hec_sol_dbst_oper_sys_guid IS INITIAL. "----------------------------------- " If there is only one operating " system, then it should be " preselected "----------------------------------- DATA(lt_operating_sys) = VALUE /hec1/t_apm_db_operating_sys( FOR wa_os IN lt_db_operating_sys WHERE ( hec_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid ) ( CORRESPONDING #( wa_os ) ) ). IF lines( lt_operating_sys ) = 1. TRY. lr_db_serv_inst->hec_sol_dbst_oper_sys_guid = lt_operating_sys[ 1 ]-hec_sol_dbst_oper_sys_guid. CATCH cx_sy_itab_line_not_found. ENDTRY. "----------------------------------- " If there are multiple operating " systems possible and Linux is " between them - set it preselected "----------------------------------- ELSEIF lines( lt_operating_sys ) > 1 AND line_exists( lt_operating_sys[ hec_operating_sys_value = /hec1/cl_rep_config_data=>c_os_linux ] ). TRY. lr_db_serv_inst->hec_sol_dbst_oper_sys_guid = lt_operating_sys[ hec_operating_sys_value = /hec1/cl_rep_config_data=>c_os_linux ]-hec_sol_dbst_oper_sys_guid. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDIF. " IF lines( lt_operating_sys ) = 1. ENDIF. " IF lr_db_serv_inst->hec_sol_dbst_oper_sys_guid IS INITIAL. CATCH cx_sy_itab_line_not_found. ENDTRY. CLEAR: ls_db_server_type, lt_operating_sys. ENDIF. "----------------------------------- " DB operating system has changed "----------------------------------- IF lr_db_serv_inst->hec_sol_dbst_oper_sys_guid IS NOT INITIAL AND lr_db_serv_inst->hec_sol_dbst_oper_sys_guid <> <fs_db_serv_inst_before>-hec_sol_dbst_oper_sys_guid. TRY. DATA(ls_operating_sys) = lt_db_operating_sys[ hec_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid hec_sol_dbst_oper_sys_guid = lr_db_serv_inst->hec_sol_dbst_oper_sys_guid ]. lr_db_serv_inst->hec_operating_sys_guid = ls_operating_sys-hec_operating_sys_guid. lr_db_serv_inst->hec_operating_sys_value = ls_operating_sys-hec_operating_sys_value. lr_db_serv_inst->hec_operating_sys_descr = ls_operating_sys-hec_operating_sys_descr. lr_db_serv_inst->hec_os_support_stat_value = ls_operating_sys-hec_os_support_stat_value. lr_db_serv_inst->hec_os_support_stat_descr = ls_operating_sys-hec_os_support_stat_descr. lv_data_changed = abap_true. " Set Value List Quantity - Operating System lr_db_serv_inst->hec_sol_dbst_oper_sys_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_operating_system( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). IF lr_db_serv_inst->hec_init_os_support_stat_value IS INITIAL. lr_db_serv_inst->hec_init_os_support_stat_value = lr_db_serv_inst->hec_os_support_stat_value. lr_db_serv_inst->hec_init_os_support_stat_descr = lr_db_serv_inst->hec_os_support_stat_descr. ENDIF. IF lr_db_serv_inst->hec_sol_dbst_impltype_guid IS INITIAL. DATA(lt_impl_type) = VALUE /hec1/t_apm_db_implement_type( FOR wa_imp IN lt_db_impl_type WHERE ( hec_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid ) ( CORRESPONDING #( wa_imp ) ) ). IF lines( lt_impl_type ) = 1. lr_db_serv_inst->hec_sol_dbst_impltype_guid = lt_impl_type[ 1 ]-hec_sol_dbst_impltype_guid. ENDIF. ENDIF. " IF lr_db_serv_inst->hec_sol_dbst_impltype_guid IS INITIAL. CATCH cx_sy_itab_line_not_found. ENDTRY. CLEAR: ls_operating_sys, lt_impl_type. ENDIF. "----------------------------------- " DB implementation type has changed "----------------------------------- IF lr_db_serv_inst->hec_sol_dbst_impltype_guid IS NOT INITIAL AND lr_db_serv_inst->hec_sol_dbst_impltype_guid <> <fs_db_serv_inst_before>-hec_sol_dbst_impltype_guid. TRY. DATA(ls_impl_type) = lt_db_impl_type[ hec_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid hec_sol_dbst_impltype_guid = lr_db_serv_inst->hec_sol_dbst_impltype_guid ]. lr_db_serv_inst->hec_db_impl_type_guid = ls_impl_type-hec_db_impl_type_guid. lr_db_serv_inst->hec_db_impl_type_value = ls_impl_type-hec_db_impl_type_value. lr_db_serv_inst->hec_db_impl_type_descr = ls_impl_type-hec_db_impl_type_descr. lr_db_serv_inst->hec_imp_support_stat_value = ls_impl_type-hec_imp_support_stat_value. lr_db_serv_inst->hec_imp_support_stat_descr = ls_impl_type-hec_imp_support_stat_descr. lv_data_changed = abap_true. " Set Value List Quantity - Implementation Type lr_db_serv_inst->hec_sol_dbst_impltype_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_implementation_type( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). IF lr_db_serv_inst->hec_init_imp_supp_stat_value IS INITIAL. lr_db_serv_inst->hec_init_imp_supp_stat_value = lr_db_serv_inst->hec_imp_support_stat_value. lr_db_serv_inst->hec_init_imp_supp_stat_descr = lr_db_serv_inst->hec_imp_support_stat_descr. ENDIF. " Get DB instance type DATA(lt_inst_type) = VALUE /hec1/t_apm_db_instance_type( FOR wa IN lt_db_inst_type WHERE ( hec_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid AND hec_sol_dbst_impltype_guid = lr_db_serv_inst->hec_sol_dbst_impltype_guid ) ( CORRESPONDING #( wa ) ) ). IF lines( lt_inst_type ) = 1. lr_db_serv_inst->hec_sol_dbst_impty_instty_guid = lt_inst_type[ 1 ]-hec_sol_dbst_impty_instty_guid. ENDIF. CATCH cx_sy_itab_line_not_found. ENDTRY. CLEAR: ls_impl_type, lt_inst_type. ENDIF. " IF lr_db_serv_inst->hec_db_impl_type_guid IS NOT INITIAL... "----------------------------------- " DB instance type has changed "----------------------------------- IF lr_db_serv_inst->hec_sol_dbst_impty_instty_guid IS NOT INITIAL AND lr_db_serv_inst->hec_sol_dbst_impty_instty_guid <> <fs_db_serv_inst_before>-hec_sol_dbst_impty_instty_guid. TRY. DATA(ls_inst_type) = lt_db_inst_type[ hec_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid hec_sol_dbst_impltype_guid = lr_db_serv_inst->hec_sol_dbst_impltype_guid hec_sol_dbst_impty_instty_guid = lr_db_serv_inst->hec_sol_dbst_impty_instty_guid ]. lr_db_serv_inst->hec_db_inst_type_guid = ls_inst_type-hec_db_inst_type_guid. lr_db_serv_inst->hec_db_inst_type_value = ls_inst_type-hec_db_inst_type_value. lr_db_serv_inst->hec_db_inst_type_descr = ls_inst_type-hec_db_inst_type_descr. lr_db_serv_inst->hec_inst_support_stat_value = ls_inst_type-hec_inst_support_stat_value. lr_db_serv_inst->hec_inst_support_stat_descr = ls_inst_type-hec_inst_support_stat_descr. lv_data_changed = abap_true. " Set Value List Quantity - Instance Type lr_db_serv_inst->hec_sol_dbst_impty_instty_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_instance_type( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid iv_sol_dbst_impltype_guid = lr_db_serv_inst->hec_sol_dbst_impltype_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). IF lr_db_serv_inst->hec_init_inst_supp_stat_value IS INITIAL. lr_db_serv_inst->hec_init_inst_supp_stat_value = lr_db_serv_inst->hec_inst_support_stat_value. lr_db_serv_inst->hec_init_inst_supp_stat_descr = lr_db_serv_inst->hec_inst_support_stat_descr. ENDIF. DATA(lt_allocation) = VALUE /hec1/t_apm_db_allocation( FOR wa_allo IN lt_db_allocation WHERE ( hec_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid AND hec_sol_dbst_impty_instty_guid = lr_db_serv_inst->hec_sol_dbst_impty_instty_guid ) ( CORRESPONDING #( wa_allo ) ) ). IF lines( lt_allocation ) = 1. lr_db_serv_inst->hec_sol_dbst_imty_inty_al_guid = lt_allocation[ 1 ]-hec_sol_dbst_imty_inty_al_guid. ENDIF. CATCH cx_sy_itab_line_not_found. ENDTRY. CLEAR: ls_inst_type, lt_allocation. ENDIF. "----------------------------------- " DB allocation has changed "----------------------------------- IF lr_db_serv_inst->hec_sol_dbst_imty_inty_al_guid IS NOT INITIAL AND lr_db_serv_inst->hec_sol_dbst_imty_inty_al_guid <> <fs_db_serv_inst_before>-hec_sol_dbst_imty_inty_al_guid. TRY. DATA(ls_allocation) = lt_db_allocation[ hec_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid hec_sol_dbst_impty_instty_guid = lr_db_serv_inst->hec_sol_dbst_impty_instty_guid hec_sol_dbst_imty_inty_al_guid = lr_db_serv_inst->hec_sol_dbst_imty_inty_al_guid ]. lr_db_serv_inst->hec_db_allocation_guid = ls_allocation-hec_db_allocation_guid. lr_db_serv_inst->hec_db_allocation_value = ls_allocation-hec_db_allocation_value. lr_db_serv_inst->hec_db_allocation_descr = ls_allocation-hec_db_allocation_descr. lr_db_serv_inst->hec_db_quantity = ls_allocation-hec_db_quantity. lr_db_serv_inst->hec_alloc_support_stat_value = ls_allocation-hec_alloc_support_stat_value. lr_db_serv_inst->hec_alloc_support_stat_descr = ls_allocation-hec_alloc_support_stat_descr. lv_data_changed = abap_true. " Set Value List Quantity - Allocation lr_db_serv_inst->hec_sol_dbst_imty_inty_al_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_db_allocation( iv_apm_guid = lr_landscape->hec_apm_guid iv_sol_tier_dsi_dbstype_guid = lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid iv_sol_dbst_impty_instty_guid = lr_db_serv_inst->hec_sol_dbst_impty_instty_guid ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). IF lr_db_serv_inst->hec_init_alloc_supp_stat_value IS INITIAL. lr_db_serv_inst->hec_init_alloc_supp_stat_value = lr_db_serv_inst->hec_alloc_support_stat_value. lr_db_serv_inst->hec_init_alloc_supp_stat_descr = lr_db_serv_inst->hec_alloc_support_stat_descr. ENDIF. " After a reset of the DB allocation the subnodes are not deleted. " In this case, no additional instance DB should be created. IF NOT line_exists( lt_instance_db[ parent_key = lr_db_serv_inst->key ] ). "----------------------------------- " Fill action table for create " instance DB action "----------------------------------- INSERT VALUE #( key = lr_db_serv_inst->key parent_key = lr_db_serv_inst->parent_key hec_db_quantity = lr_db_serv_inst->hec_db_quantity ) INTO TABLE lt_act_param. ENDIF. " Set Tier IF lr_db_serv_inst->hec_db_allocation_value = /hec1/if_config_constants=>gc_db_allocation-internal. DATA(ls_tier) = VALUE #( lt_tier[ key = lr_db_serv_inst->parent_key ] OPTIONAL ). lr_db_serv_inst->hec_db_tier_guid = ls_tier-hec_node_tier. lr_db_serv_inst->hec_db_tier_descr = ls_tier-hec_tree_descr. ENDIF. " If the allocation type is "related tier" the related tier needs to be selected automatically. IF lr_db_serv_inst->hec_db_allocation_value = /hec1/if_config_constants=>gc_db_allocation-related_stack. ls_tier = VALUE #( lt_tier[ key = lr_db_serv_inst->parent_key ] OPTIONAL ). LOOP AT lt_tier_all ASSIGNING FIELD-SYMBOL(<fs_tier_related>) WHERE hec_node_tier NE ls_tier-hec_node_tier AND hec_related_stack_guid = ls_tier-hec_related_stack_guid. DATA(ls_tier_related) = <fs_tier_related>. ENDLOOP. lr_db_serv_inst->hec_db_tier_guid = ls_tier_related-hec_node_tier. lr_db_serv_inst->hec_db_tier_descr = ls_tier_related-hec_tree_descr. ENDIF. CATCH cx_sy_itab_line_not_found. ENDTRY. CLEAR ls_allocation. ENDIF. " IF lr_db_serv_inst->hec_db_allocation_guid IS NOT INITIAL "----------------------------------- " Phasing has changed "----------------------------------- IF lr_db_serv_inst->hec_phase_guid NE <fs_db_serv_inst_before>-hec_phase_guid. APPEND VALUE #( hec_node_key = is_ctx-node_key hec_bopf_key = lr_db_serv_inst->key hec_phase_guid_new = lr_db_serv_inst->hec_phase_guid hec_phase_guid_old = <fs_db_serv_inst_before>-hec_phase_guid ) TO lt_act_param_phasing. lr_db_serv_inst->hec_phase_changed = abap_true. lv_data_changed = abap_true. ENDIF. "phasing changed "----------------------------------- " Reset fields " - these are all triggered from " the BOPF-actions "----------------------------------- " The following fields are all dependent on each other. If one field is cleared, the subsequent fields have to be cleared as well. " These fields always come in triples (GUID, Value, Description) IF lr_db_serv_inst->hec_sol_tier_stack_si_guid IS INITIAL AND <fs_db_serv_inst_before>-hec_sol_tier_stack_si_guid IS NOT INITIAL. CLEAR: lr_db_serv_inst->hec_sol_tier_stack_si_guid, lr_db_serv_inst->hec_sol_tier_dsi_descr, " Reset Server Type lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid. ENDIF. IF lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid IS INITIAL AND <fs_db_serv_inst_before>-hec_sol_tier_dsi_dbstype_guid IS NOT INITIAL. CLEAR: lr_db_serv_inst->hec_sol_tier_dsi_dbstype_guid, lr_db_serv_inst->hec_db_srv_type_guid, lr_db_serv_inst->hec_db_srv_type_value, lr_db_serv_inst->hec_db_srv_type_descr, " Reset Operating System lr_db_serv_inst->hec_operating_sys_guid. ENDIF. IF lr_db_serv_inst->hec_operating_sys_guid IS INITIAL AND <fs_db_serv_inst_before>-hec_operating_sys_guid IS NOT INITIAL. CLEAR: lr_db_serv_inst->hec_sol_dbst_oper_sys_guid, lr_db_serv_inst->hec_operating_sys_guid, lr_db_serv_inst->hec_operating_sys_value, lr_db_serv_inst->hec_operating_sys_descr, " Reset Implementation Type lr_db_serv_inst->hec_db_impl_type_guid. lv_data_changed = abap_true. ENDIF. IF lr_db_serv_inst->hec_db_impl_type_guid IS INITIAL AND <fs_db_serv_inst_before>-hec_db_impl_type_guid IS NOT INITIAL. CLEAR: lr_db_serv_inst->hec_sol_dbst_impltype_guid, lr_db_serv_inst->hec_db_impl_type_guid, lr_db_serv_inst->hec_db_impl_type_value, lr_db_serv_inst->hec_db_impl_type_descr, " Reset Instance Type lr_db_serv_inst->hec_db_inst_type_guid. lv_data_changed = abap_true. ENDIF. IF lr_db_serv_inst->hec_db_inst_type_guid IS INITIAL AND <fs_db_serv_inst_before>-hec_db_inst_type_guid IS NOT INITIAL. CLEAR: lr_db_serv_inst->hec_sol_dbst_impty_instty_guid, lr_db_serv_inst->hec_db_inst_type_guid, lr_db_serv_inst->hec_db_inst_type_value, lr_db_serv_inst->hec_db_inst_type_descr, " Reset Allocation lr_db_serv_inst->hec_db_allocation_guid. lv_data_changed = abap_true. LOOP AT lt_instance_db ASSIGNING FIELD-SYMBOL(<fs_instance_db>) WHERE parent_key = lr_db_serv_inst->key. " Add instance db to delete table INSERT VALUE #( node = /hec1/if_configuration_c=>sc_node-instance_db key = <fs_instance_db>-key ) INTO TABLE lt_act_param_delete. ENDLOOP. ENDIF. IF lr_db_serv_inst->hec_db_allocation_guid IS INITIAL AND <fs_db_serv_inst_before>-hec_db_allocation_guid IS NOT INITIAL. CLEAR: lr_db_serv_inst->hec_db_allocation_descr, lr_db_serv_inst->hec_db_allocation_value, lr_db_serv_inst->hec_sol_dbst_imty_inty_al_guid, lr_db_serv_inst->hec_db_tier_guid, lr_db_serv_inst->hec_db_tier_descr. lv_data_changed = abap_true. ENDIF. ENDIF. " if <fs_db_server_instance_before> is assigned. "----------------------------------- " Check instance status and switch "----------------------------------- lv_inst_status = COND /hec1/config_instance_status( WHEN lr_db_serv_inst->hec_operating_sys_value IS NOT INITIAL AND lr_db_serv_inst->hec_db_impl_type_guid IS NOT INITIAL AND lr_db_serv_inst->hec_db_inst_type_guid IS NOT INITIAL AND lr_db_serv_inst->hec_db_allocation_guid IS NOT INITIAL AND lr_db_serv_inst->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_serv_inst->hec_instance_status. lr_db_serv_inst->hec_instance_status = lv_inst_status. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify DB server instance "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_serv_inst->key is_data = lr_db_serv_inst ). ENDIF. CLEAR: lv_inst_status, lv_data_changed. UNASSIGN <fs_db_serv_inst_before>. ENDLOOP. "----------------------------------- " Set create Instance DB action to " action to general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_create_instance_db( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_inst_db ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. "----------------------------------- " Set Delete action DB Instance " to general "----------------------------------- IF lt_act_param_delete IS NOT INITIAL. me->mr_act_param_delete = NEW /bobf/t_frw_node( lt_act_param_delete ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = it_key iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-delete_node ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_delete ). ENDIF. "----------------------------------- " Set update phase action to " general "----------------------------------- IF lt_act_param_phasing IS NOT INITIAL. me->mr_act_param_phasing = NEW /hec1/t_act_phase_inherit( lt_act_param_phasing ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = it_key iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-inherit_phase_assignment ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_phasing ). ENDIF. " *************************************************************************** " Update mode after tier update " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server_instance-update_after_tier. " Get tier io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server_instance-to_parent IMPORTING et_data = lt_tier ). "----------------------------------- " Release instance for selection "----------------------------------- LOOP AT lt_db_serv_inst REFERENCE INTO lr_db_serv_inst. ASSIGN lt_tier[ key = lr_db_serv_inst->parent_key ] TO FIELD-SYMBOL(<fs_tier>). IF <fs_tier> IS ASSIGNED. "----------------------------------- " Release instance for selection "----------------------------------- IF <fs_tier>-hec_tier_descr IS NOT INITIAL AND <fs_tier>-hec_tier_type_value IS NOT INITIAL AND <fs_tier>-hec_tier_impl_type_value IS NOT INITIAL. DATA(lv_release) = abap_true. ENDIF. IF lv_release <> lr_db_serv_inst->hec_row_selectable. lr_db_serv_inst->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify DB server instance "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_serv_inst->key is_data = lr_db_serv_inst ). ENDIF. ENDIF. " IF <fs_tier> IS ASSIGNED. UNASSIGN <fs_tier>. CLEAR: lv_release, lv_data_changed. ENDLOOP. ENDCASE. CATCH /bobf/cx_frw. " Exception class ENDTRY. ENDMETHOD. METHOD determine_db_server_pc_cr. DATA: lt_db_serv_perf_cat TYPE /hec1/t_data_db_serv_pc_ct, lt_db_serv_perf_cat_pernode TYPE /hec1/t_data_db_serv_pc_ct, lt_db_serv_perf_cat_before TYPE /hec1/t_data_db_serv_pc_ct, lt_db_node TYPE /hec1/t_data_db_node_ct, lt_db_server TYPE /hec1/t_data_db_serv_ct, lt_instance_db TYPE /hec1/t_data_db_inst_ct, lt_db_storage_qty TYPE /hec1/t_data_db_storage_qty_ct, lt_node_key TYPE /bobf/t_frw_key, lt_phase TYPE /hec1/t_data_phase_ct, lt_act_param TYPE /hec1/t_act_create_db_qty, lt_act_param_server TYPE /hec1/t_act_update_db_server, lt_act_param_node TYPE /hec1/t_act_update_db_node, lt_act_param_storage TYPE /bobf/t_frw_key, lt_act_param_succ TYPE /hec1/t_act_set_success_predec, lt_act_param_storage_qty TYPE /hec1/t_act_update_db_strg_qty, lt_act_param_phasing TYPE TABLE OF /hec1/s_act_phase_inherit. CLEAR: eo_message, et_failed_key. "----------------------------------- " Get data "----------------------------------- io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key IMPORTING et_data = lt_db_serv_perf_cat ). " Get DB node (parent) io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-to_parent IMPORTING et_data = lt_db_node ). " Get landscape( APM GUID), delivery unit and data center /hec1/cl_config_helper=>get_general_data( EXPORTING iv_node_key = is_ctx-node_key it_key = it_key io_read = io_read IMPORTING ev_root_key = DATA(lv_root_key) er_landscape = DATA(lr_landscape) er_delivery_unit = DATA(lr_dlvy_unit) et_datacenter = DATA(lt_datacenter) et_failed_key = et_failed_key ). TRY. CASE is_ctx-det_key. " *************************************************************************** " Create mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server_perform_cat-create. " Get for each DB node " the DB server performance category io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_node it_key = VALUE #( FOR wa_node IN lt_db_node ( key = wa_node-key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_node-db_server_perform_cat IMPORTING et_data = lt_db_serv_perf_cat_pernode ). LOOP AT lt_db_serv_perf_cat REFERENCE INTO DATA(lr_db_serv_perf_cat) WHERE hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master. "----------------------------------- " Set Value List Quantity " - Server Performance Category "----------------------------------- lr_db_serv_perf_cat->hec_srv_perf_cat_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_server_perf_cat( iv_apm_guid = lr_landscape->hec_apm_guid iv_inf_provider_guid = lr_dlvy_unit->hec_inf_provider_guid iv_sec_datacenter_guid = VALUE #( lt_datacenter[ hec_node_datacenter = lr_db_serv_perf_cat->hec_tier_datacenter_guid ]-hec_sec_datacenter_guid OPTIONAL ) iv_server_type_guid = lr_db_serv_perf_cat->hec_db_srv_type_guid iv_is_app_server = abap_false ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). " TODO this might need a more complex logic depending on the number of entries lr_db_serv_perf_cat->hec_delete_visible = abap_true. "----------------------------------- " Check instance status and switch "----------------------------------- DATA(lv_inst_status) = COND /hec1/config_instance_status( WHEN lr_db_serv_perf_cat->hec_srv_perf_cat_guid IS NOT INITIAL AND lr_db_serv_perf_cat->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_serv_perf_cat->hec_instance_status. lr_db_serv_perf_cat->hec_instance_status = lv_inst_status. DATA(lv_data_changed) = abap_true. ENDIF. "----------------------------------- " Release instance for selection "----------------------------------- ASSIGN lt_db_node[ key = lr_db_serv_perf_cat->parent_key ] TO FIELD-SYMBOL(<fs_db_node>). IF <fs_db_node> IS ASSIGNED. IF <fs_db_node>-hec_db_srv_perf_cat_qty IS NOT INITIAL AND <fs_db_node>-hec_row_selectable = abap_true. DATA(lv_release) = abap_true. ENDIF. ENDIF. IF lv_release <> lr_db_serv_perf_cat->hec_row_selectable. lr_db_serv_perf_cat->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "------------------------------------------ " Set CR related fields from the ROOT node "------------------------------------------ DATA(lv_cr_data_changed) = /hec1/cl_config_helper=>SET_CR_RELATED_FIELDS( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read io_modify = io_modify iv_mod_type = /hec1/if_config_constants=>gc_comp_mod_type-added is_node_data = lr_db_serv_perf_cat iv_set_apm = abap_true iv_clear_phase = abap_true ). "----------------------------------- " Fill action table for create " DB server storage amount "----------------------------------- IF NOT lr_db_serv_perf_cat->hec_db_node_type_value = /hec1/if_config_constants=>gc_db_node_type-tenant. INSERT VALUE #( key = lr_db_serv_perf_cat->key parent_key = lr_db_serv_perf_cat->parent_key hec_storage_amount_qty = lr_db_serv_perf_cat->hec_storage_qty ) INTO TABLE lt_act_param. ENDIF. "----------------------------------- " Fill action table for setting " DB server performance category " successor/predecessor "----------------------------------- DATA(lv_node_count) = REDUCE i( INIT x = 0 FOR <l> IN lt_db_serv_perf_cat_pernode WHERE ( parent_key = lr_db_serv_perf_cat->parent_key ) NEXT x = x + 1 ). IF NOT line_exists( lt_act_param_succ[ key = lr_db_serv_perf_cat->parent_key ] ) AND lv_node_count > 1. TRY. INSERT VALUE #( key = lr_db_serv_perf_cat->parent_key parent_key = lt_db_node[ key = lr_db_serv_perf_cat->parent_key ]-parent_key hec_no_children_node = lv_node_count ) INTO TABLE lt_act_param_succ. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDIF. "----------------------------------- " Modify DB server performance " category "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_serv_perf_cat->key is_data = lr_db_serv_perf_cat ). ENDIF. UNASSIGN <fs_db_node>. CLEAR: lv_inst_status, lv_release, lv_data_changed, lv_node_count. ENDLOOP. "----------------------------------- " Set successor/predecessor action " to GENERAL "----------------------------------- IF lt_act_param_succ IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_set_success_predec( lt_act_param_succ ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_node assoc_key = /hec1/if_configuration_c=>sc_association-db_node-db_server_perform_cat ) it_key = VALUE #( FOR wa_act_succ IN lt_act_param_succ ( key = wa_act_succ-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-set_success_predec ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. "----------------------------------- " Set create DB server storage " amount and create DB server " action to general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_create_db_qty( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_qty ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_server ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ). ENDIF. " *************************************************************************** " Update mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server_perform_cat-update. io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_before_image = abap_true IMPORTING et_data = lt_db_serv_perf_cat_before ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-root it_key = VALUE #( ( key = lv_root_key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-root-phase IMPORTING et_data = lt_phase ). " Get DB Node io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_association = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-to_parent IMPORTING et_target_key = DATA(lt_db_node_key) et_data = lt_db_node ). " Get instance DB io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_node it_key = lt_db_node_key iv_association = /hec1/if_configuration_c=>sc_association-db_node-to_parent IMPORTING et_target_key = DATA(lt_instance_db_key) et_data = lt_instance_db ). " Get DB Server io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-db_server IMPORTING et_data = lt_db_server et_target_key = DATA(lt_db_server_key) ). " Get Storage Qty io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-db_storage_amount IMPORTING et_data = lt_db_storage_qty ). "----------------------------------- " Get server performance category "----------------------------------- DATA(lt_range_table) = VALUE /hec1/t_selection_range( FOR wa_spc IN lt_db_serv_perf_cat ( option = /hec1/if_config_constants=>gc_range_option-eq sign = /hec1/if_config_constants=>gc_range_sign-i low = wa_spc-hec_srv_perf_cat_guid ) ). SELECT * FROM /hec1/i_dbservperfcatbasic WHERE hec_apm_guid = @lr_landscape->hec_apm_guid AND hec_srv_perf_cat_guid IN @lt_range_table INTO TABLE @DATA(lt_serv_perf_cat). "----------------------------------- " Get server "----------------------------------- CLEAR lt_range_table. lt_range_table = VALUE /hec1/t_selection_range( FOR wa IN lt_db_serv_perf_cat ( option = /hec1/if_config_constants=>gc_range_option-eq sign = /hec1/if_config_constants=>gc_range_sign-i low = wa-hec_srv_perf_cat_guid ) ). SELECT * "#EC CI_ALL_FIELDS_NEEDED FROM /hec1/i_serverbasic WHERE hec_apm_guid = @lr_landscape->hec_apm_guid AND hec_srv_perf_cat_guid IN @lt_range_table INTO TABLE @DATA(lt_server_data). LOOP AT lt_db_serv_perf_cat REFERENCE INTO lr_db_serv_perf_cat. ASSIGN lt_db_serv_perf_cat_before[ key = lr_db_serv_perf_cat->key ] TO FIELD-SYMBOL(<fs_db_serv_perf_cat_before>). IF <fs_db_serv_perf_cat_before> IS ASSIGNED. TRY. DATA(ls_instance_db) = lt_instance_db[ key = lt_db_node[ key = lr_db_serv_perf_cat->parent_key ]-parent_key ]. CATCH cx_sy_itab_line_not_found. ENDTRY. "----------------------------------- " DB server performance category " has changed "----------------------------------- IF lr_db_serv_perf_cat->hec_srv_perf_cat_guid IS NOT INITIAL AND lr_db_serv_perf_cat->hec_srv_perf_cat_guid <> <fs_db_serv_perf_cat_before>-hec_srv_perf_cat_guid. TRY. DATA(ls_serv_perf_cat) = lt_serv_perf_cat[ hec_srv_perf_cat_guid = lr_db_serv_perf_cat->hec_srv_perf_cat_guid ]. IF ls_instance_db-hec_db_node_type_value = /hec1/if_config_constants=>gc_db_node_type-container. lr_db_serv_perf_cat->hec_srv_perf_cat_descr = ls_serv_perf_cat-hec_srv_perf_cat_descr. lr_db_serv_perf_cat->hec_db_intended_srv_ram_class = ls_serv_perf_cat-hec_srv_ram_class. lr_db_serv_perf_cat->hec_tree_descr = ls_serv_perf_cat-hec_srv_perf_cat_descr. "#EC CI_FLDEXT_OK[2215424] ELSE. lr_db_serv_perf_cat->hec_srv_perf_cat_descr = ls_serv_perf_cat-hec_srv_perf_cat_descr. lr_db_serv_perf_cat->hec_srv_ram_class = ls_serv_perf_cat-hec_srv_ram_class. lr_db_serv_perf_cat->hec_srv_cpu_class = ls_serv_perf_cat-hec_srv_cpu_class. lr_db_serv_perf_cat->hec_tree_descr = ls_serv_perf_cat-hec_srv_perf_cat_descr. "#EC CI_FLDEXT_OK[2215424] ENDIF. lv_data_changed = abap_true. " Set Value List Quantity lr_db_serv_perf_cat->hec_srv_perf_cat_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_server_perf_cat( iv_apm_guid = lr_landscape->hec_apm_guid iv_inf_provider_guid = lr_dlvy_unit->hec_inf_provider_guid iv_sec_datacenter_guid = VALUE #( lt_datacenter[ hec_node_datacenter = lr_db_serv_perf_cat->hec_tier_datacenter_guid ]-hec_sec_datacenter_guid OPTIONAL ) iv_server_type_guid = lr_db_serv_perf_cat->hec_db_srv_type_guid iv_is_app_server = abap_false ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). CATCH cx_sy_itab_line_not_found. ENDTRY. TRY. DATA(lv_datacenter_guid) = lt_datacenter[ hec_node_datacenter = lr_db_serv_perf_cat->hec_tier_datacenter_guid ]-hec_datacenter_guid. DATA(lt_server) = /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_server( iv_apm_guid = lr_landscape->hec_apm_guid iv_infra_provider_guid = lr_dlvy_unit->hec_inf_provider_guid iv_sec_datacenter_guid = lv_datacenter_guid iv_srv_perf_cat_guid = lr_db_serv_perf_cat->hec_srv_perf_cat_guid ). "----------------------------------- " Fill action table for Update " DB server "----------------------------------- IF lines( lt_server ) = 1. INSERT VALUE #( key = lt_db_server[ parent_key = lr_db_serv_perf_cat->key ]-key parent_key = lr_db_serv_perf_cat->key hec_ip_server_guid = lt_server[ 1 ]-value do_update_db_server = abap_true ) INTO TABLE lt_act_param_server. ENDIF. CATCH cx_sy_itab_line_not_found. ENDTRY. CLEAR: lv_datacenter_guid, lt_server. "----------------------------------- " Fill action table for update " DB server storage amount "----------------------------------- INSERT VALUE #( parent_key = lr_db_serv_perf_cat->key ) INTO TABLE lt_act_param_storage_qty. ENDIF. " IF ls_db_server_perf_cat-hec_srv_perf_cat_guid IS NOT INITIAL AND ... "----------------------------------- " DB server storage is added "----------------------------------- IF lr_db_serv_perf_cat->hec_storage_qty > <fs_db_serv_perf_cat_before>-hec_storage_qty. "----------------------------------- " Fill action table for create " DB server storage amount "----------------------------------- INSERT VALUE #( key = lr_db_serv_perf_cat->key parent_key = lr_db_serv_perf_cat->parent_key hec_storage_amount_qty = lr_db_serv_perf_cat->hec_storage_qty - <fs_db_serv_perf_cat_before>-hec_storage_qty ) INTO TABLE lt_act_param. "----------------------------------- " Fill action table for create " DB server storage "----------------------------------- TRY. " DB Storage is added without any parameters necessary INSERT VALUE #( key = lt_db_server[ parent_key = lr_db_serv_perf_cat->key ]-key ) INTO TABLE lt_act_param_storage. CATCH cx_sy_itab_line_not_found. ENDTRY. " Success message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>new_storage_added iv_severity = /bobf/cm_frw=>co_severity_success iv_attr1 = CONV #( lr_db_serv_perf_cat->hec_storage_qty - <fs_db_serv_perf_cat_before>-hec_storage_qty ) CHANGING co_message = eo_message ). " Set flag for deleting subnodes of standby/worker node IF ( lr_db_serv_perf_cat->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR lr_db_serv_perf_cat->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi ) AND lr_db_serv_perf_cat->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_serv_perf_cat->hec_db_node_default = abap_true. lv_data_changed = abap_true. DATA(lv_delete_subnode) = abap_true. ENDIF. ELSEIF lr_db_serv_perf_cat->hec_storage_qty < <fs_db_serv_perf_cat_before>-hec_storage_qty AND lr_db_serv_perf_cat->hec_storage_qty < lines( VALUE /hec1/t_data_db_storage_qty_ct( FOR db_storage_qty IN lt_db_storage_qty WHERE ( parent_key = lr_db_serv_perf_cat->key ) ( db_storage_qty ) ) ). DATA(lv_attr_name) = /hec1/if_configuration_c=>sc_node_attribute-db_server_perform_cat-hec_storage_qty. " Error /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>object_no_not_higher is_origin_location = VALUE #( node_key = is_ctx-node_key key = lr_db_serv_perf_cat->key attributes = VALUE #( ( lv_attr_name ) ) ) CHANGING co_message = eo_message ). " Set node number to value before update lr_db_serv_perf_cat->hec_storage_qty = <fs_db_serv_perf_cat_before>-hec_storage_qty. lv_data_changed = abap_true. ENDIF. " IF ls_db_server_perf_cat-hec_storage_qty > ls_db_server_perf_cat_old-hec_storage_qty. "----------------------------------- " Phase has changed "----------------------------------- IF lr_db_serv_perf_cat->hec_phase_guid <> <fs_db_serv_perf_cat_before>-hec_phase_guid. " Only for default master node IF lr_db_serv_perf_cat->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_serv_perf_cat->hec_db_node_default = abap_true. APPEND VALUE #( hec_node_key = is_ctx-node_key hec_bopf_key = lr_db_serv_perf_cat->key hec_phase_guid_new = lr_db_serv_perf_cat->hec_phase_guid hec_phase_guid_old = <fs_db_serv_perf_cat_before>-hec_phase_guid ) TO lt_act_param_phasing. ENDIF. lr_db_serv_perf_cat->hec_phase_changed = abap_true. lv_data_changed = abap_true. " Set flag for deleting subnodes of standby/worker node IF ( lr_db_serv_perf_cat->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR lr_db_serv_perf_cat->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi ) AND lr_db_serv_perf_cat->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_serv_perf_cat->hec_db_node_default = abap_true. lv_delete_subnode = abap_true. ENDIF. ENDIF. "phasing changed ENDIF. " IF <fs_db_serv_perf_cat_before> IS ASSIGNED. "----------------------------------- " Check instance status and switch "----------------------------------- lv_inst_status = COND /hec1/config_instance_status( WHEN lr_db_serv_perf_cat->hec_srv_perf_cat_guid IS NOT INITIAL AND lr_db_serv_perf_cat->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_serv_perf_cat->hec_instance_status. lr_db_serv_perf_cat->hec_instance_status = lv_inst_status. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Fill action table for delete " subnodes of DB standby/worker node " or relase standby/worker node "----------------------------------- IF ( lr_db_serv_perf_cat->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR lr_db_serv_perf_cat->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi ) AND lr_db_serv_perf_cat->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_serv_perf_cat->hec_db_node_default = abap_true AND lv_data_changed = abap_true. IF NOT line_exists( lt_act_param_node[ key = lr_db_serv_perf_cat->parent_key ] ). TRY. INSERT VALUE #( key = lr_db_serv_perf_cat->parent_key parent_key = lt_db_node[ key = lr_db_serv_perf_cat->parent_key ]-parent_key do_release_node = COND #( WHEN lr_db_serv_perf_cat->hec_instance_status = /hec1/if_config_constants=>gc_instance_status-complete AND <fs_db_serv_perf_cat_before>-hec_instance_status = /hec1/if_config_constants=>gc_instance_status-incomplete THEN abap_true ELSE abap_false ) do_delete_subnode = COND #( WHEN lr_db_serv_perf_cat->hec_instance_status = /hec1/if_config_constants=>gc_instance_status-incomplete OR lv_delete_subnode = abap_true THEN abap_true ELSE abap_false ) ) INTO TABLE lt_act_param_node. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDIF. ENDIF. " IF ( lr_db_serv_perf_cat->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR... "----------------------------------- " Modify DB server performance " category "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_serv_perf_cat->key is_data = lr_db_serv_perf_cat ). ENDIF. CLEAR: lv_inst_status, lv_data_changed, lv_attr_name, lv_delete_subnode. UNASSIGN <fs_db_serv_perf_cat_before>. ENDLOOP. "----------------------------------- " Set update Phasing action to " general "----------------------------------- IF lt_act_param_phasing IS NOT INITIAL. me->mr_act_param_phasing = NEW /hec1/t_act_phase_inherit( lt_act_param_phasing ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = it_key iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-inherit_phase_assignment ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_phasing ). ENDIF. "----------------------------------- " Set create DB server storage " amount and DB server storage " action to general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_create_db_qty( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_qty ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_server ) it_key = VALUE #( FOR wa_act_serv IN lt_act_param_storage ( key = wa_act_serv-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_storage ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ). ENDIF. "----------------------------------- " Set Update DB Storage Amount " to general "----------------------------------- IF lt_act_param_storage_qty IS NOT INITIAL. me->mr_act_param_db_storage_amount = NEW /hec1/t_act_update_db_strg_qty( FOR strg_qty IN lt_act_param_storage_qty ( parent_key = strg_qty-parent_key do_update_storage = abap_true ) ). " Update DB storage amount (in general) /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR strg_qty IN lt_act_param_storage_qty "pass the server performance category key ( key = strg_qty-parent_key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_db_storage_amount ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_db_storage_amount ). ENDIF. "----------------------------------- " Set Update DB server action " to general "----------------------------------- IF lt_act_param_server IS NOT INITIAL. CLEAR me->mr_act_param1. me->mr_act_param1 = NEW /hec1/t_act_update_db_server( lt_act_param_server ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act_server IN lt_act_param_server ( key = wa_act_server-parent_key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_db_server ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param1 ). ENDIF. "----------------------------------- " Set update DB node action to " general "----------------------------------- IF lt_act_param_node IS NOT INITIAL. CLEAR me->mr_act_param_db_node. me->mr_act_param_db_node = NEW /hec1/t_act_update_db_node( lt_act_param_node ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_node ) it_key = VALUE #( FOR wa_act_node IN lt_act_param_node ( key = wa_act_node-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_db_node ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_db_node ). ENDIF. " *************************************************************************** " Update mode after DB node update " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_server_perform_cat-update_after_node. LOOP AT lt_db_serv_perf_cat REFERENCE INTO lr_db_serv_perf_cat. ASSIGN lt_db_node[ key = lr_db_serv_perf_cat->parent_key ] TO <fs_db_node>. IF <fs_db_node> IS ASSIGNED. "----------------------------------- " Release instance for selection "----------------------------------- IF <fs_db_node>-hec_db_srv_perf_cat_qty IS NOT INITIAL AND <fs_db_node>-hec_row_selectable = abap_true. lv_release = abap_true. ENDIF. IF lv_release <> lr_db_serv_perf_cat->hec_row_selectable. lr_db_serv_perf_cat->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Update DB server cluster type "----------------------------------- IF lr_db_serv_perf_cat->hec_db_cluster_type_value <> <fs_db_node>-hec_db_cluster_type_value. lr_db_serv_perf_cat->hec_db_cluster_type_value = <fs_db_node>-hec_db_cluster_type_value. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify DB server performance " category "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_serv_perf_cat->key is_data = lr_db_serv_perf_cat ). ENDIF. ENDIF. " IF <fs_db_node> IS ASSIGNED. UNASSIGN <fs_db_node>. CLEAR: lv_data_changed, lv_release. ENDLOOP. " LOOP AT lt_db_serv_perf_cat... ENDCASE. CATCH /bobf/cx_frw. " Exception class ENDTRY. ENDMETHOD. METHOD determine_db_storage_amount_cr. DATA: lt_db_storage_qty TYPE /hec1/t_data_db_storage_qty_ct, lt_db_storage_qty_perspc TYPE /hec1/t_data_db_storage_qty_ct, lt_db_storage_qty_before TYPE /hec1/t_data_db_storage_qty_ct, lr_db_storage_qty TYPE REF TO /hec1/s_data_db_storage_qty_cs, lt_db_node TYPE /hec1/t_data_db_node_ct, lt_db_serv_perf_cat TYPE /hec1/t_data_db_serv_pc_ct, lt_db_server TYPE /hec1/t_data_db_serv_ct, lt_db_storage TYPE /hec1/t_data_db_storage_ct, lt_phase TYPE /hec1/t_data_phase_ct, lt_act_param_node TYPE /hec1/t_act_update_db_node, lt_act_param_storage TYPE /bobf/t_frw_key, lt_act_param_succ TYPE /hec1/t_act_set_success_predec, lt_act_param_phasing TYPE TABLE OF /hec1/s_act_phase_inherit. CLEAR: eo_message, et_failed_key. "----------------------------------- " Get data "----------------------------------- io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key IMPORTING et_data = lt_db_storage_qty ). " Get DB server performance category (parent) io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_storage_amount-to_parent IMPORTING et_data = lt_db_serv_perf_cat ). " Get landscape( APM GUID), delivery unit and data center /hec1/cl_config_helper=>get_general_data( EXPORTING iv_node_key = is_ctx-node_key it_key = it_key io_read = io_read IMPORTING ev_root_key = DATA(lv_root_key) er_landscape = DATA(lr_landscape) er_delivery_unit = DATA(lr_dlvy_unit) et_datacenter = DATA(lt_datacenter) et_failed_key = et_failed_key ). TRY. CASE is_ctx-det_key. " *************************************************************************** " Create mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage_amount-create. " Get for each DB server performance category " the DB storage amount io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_server_perform_cat it_key = VALUE #( FOR wa_spc IN lt_db_serv_perf_cat ( key = wa_spc-key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-db_storage_amount IMPORTING et_data = lt_db_storage_qty_perspc ). LOOP AT lt_db_storage_qty REFERENCE INTO lr_db_storage_qty. lr_db_storage_qty->hec_delete_visible = abap_true. "----------------------------------- " Check instance status and switch "----------------------------------- DATA(lv_inst_status) = COND /hec1/config_instance_status( WHEN lr_db_storage_qty->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_storage_qty->hec_instance_status. lr_db_storage_qty->hec_instance_status = lv_inst_status. DATA(lv_data_changed) = abap_true. " If standby node exist IF ( lr_db_storage_qty->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR lr_db_storage_qty->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi ) AND lr_db_storage_qty->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_storage_qty->hec_db_node_default = abap_true AND lr_db_storage_qty->hec_instance_status = /hec1/if_config_constants=>gc_instance_status-complete. io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = VALUE #( ( key = lr_db_storage_qty->key ) ) iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_storage_amount-to_def_master_node IMPORTING et_target_key = DATA(lt_key) ). IF NOT line_exists( lt_act_param_node[ key = lt_key[ 1 ]-key ] ). TRY. INSERT VALUE #( key = lt_key[ 1 ]-key do_release_node = abap_true ) INTO TABLE lt_act_param_node. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDIF. ENDIF. ENDIF. " IF lv_inst_status <> lr_db_storage_qty->hec_instance_status. "----------------------------------- " Release instance for selection "----------------------------------- ASSIGN lt_db_serv_perf_cat[ key = lr_db_storage_qty->parent_key ] TO FIELD-SYMBOL(<fs_db_serv_perf_cat>). IF <fs_db_serv_perf_cat> IS ASSIGNED. IF <fs_db_serv_perf_cat>-hec_srv_perf_cat_guid IS NOT INITIAL AND <fs_db_serv_perf_cat>-hec_row_selectable = abap_true. DATA(lv_release) = abap_true. ENDIF. ENDIF. IF lv_release <> lr_db_storage_qty->hec_row_selectable. lr_db_storage_qty->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "------------------------------------------ " Set CR related fields from the ROOT node "------------------------------------------ DATA(lv_cr_data_changed) = /hec1/cl_config_helper=>SET_CR_RELATED_FIELDS( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read io_modify = io_modify iv_mod_type = /hec1/if_config_constants=>gc_comp_mod_type-added is_node_data = lr_db_storage_qty iv_set_apm = abap_true iv_clear_phase = abap_true ). "----------------------------------- " Fill action table for setting " DB server storage amount " successor/predecessor "----------------------------------- DATA(lv_node_count) = REDUCE i( INIT x = 0 FOR <l> IN lt_db_storage_qty_perspc WHERE ( parent_key = lr_db_storage_qty->parent_key ) NEXT x = x + 1 ). IF NOT line_exists( lt_act_param_succ[ key = lr_db_storage_qty->parent_key ] ) AND lv_node_count > 1. TRY. INSERT VALUE #( key = lr_db_storage_qty->parent_key parent_key = lt_db_serv_perf_cat[ key = lr_db_storage_qty->parent_key ]-parent_key hec_no_children_node = lv_node_count ) INTO TABLE lt_act_param_succ. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDIF. "----------------------------------- " Modify DB storage amount "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_storage_qty->key is_data = lr_db_storage_qty ). ENDIF. UNASSIGN <fs_db_serv_perf_cat>. CLEAR: lv_inst_status, lv_data_changed, lv_release, lv_node_count. ENDLOOP. "----------------------------------- " Set update DB node action to " general "----------------------------------- IF lt_act_param_node IS NOT INITIAL. CLEAR me->mr_act_param_db_node. me->mr_act_param_db_node = NEW /hec1/t_act_update_db_node( lt_act_param_node ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_node ) it_key = VALUE #( FOR wa_act_node IN lt_act_param_node ( key = wa_act_node-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_db_node ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_db_node ). ENDIF. "----------------------------------- " Set successor/predecessor action " to GENERAL "----------------------------------- IF lt_act_param_succ IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_set_success_predec( lt_act_param_succ ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_server_perform_cat assoc_key = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-db_storage_amount ) it_key = VALUE #( FOR wa_act_succ IN lt_act_param_succ ( key = wa_act_succ-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-set_success_predec ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. " *************************************************************************** " Update mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage_amount-update. io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_before_image = abap_true IMPORTING et_data = lt_db_storage_qty_before ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-root it_key = VALUE #( ( key = lv_root_key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-root-phase IMPORTING et_data = lt_phase ). io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_association = /hec1/if_configuration_c=>sc_association-db_storage_amount-to_parent IMPORTING et_target_key = DATA(lt_db_serv_pc_key) ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_server_perform_cat it_key = lt_db_serv_pc_key iv_association = /hec1/if_configuration_c=>sc_association-db_server_perform_cat-db_server IMPORTING et_target_key = DATA(lt_db_serv_key) et_key_link = DATA(lt_perf_cat_to_serv_link) ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_server it_key = lt_db_serv_key iv_association = /hec1/if_configuration_c=>sc_association-db_server-db_storage IMPORTING et_target_key = DATA(lt_db_storage_key) et_key_link = DATA(lt_serv_to_storage_link) ). LOOP AT lt_db_storage_qty REFERENCE INTO lr_db_storage_qty. ASSIGN lt_db_storage_qty_before[ key = lr_db_storage_qty->key ] TO FIELD-SYMBOL(<fs_db_storage_qty_before>). IF <fs_db_storage_qty_before> IS ASSIGNED. "----------------------------------- " Physical, virtual or additional storage " has changed "----------------------------------- IF lr_db_storage_qty->hec_dsq_main_stor_qty_physical <> <fs_db_storage_qty_before>-hec_dsq_main_stor_qty_physical OR lr_db_storage_qty->hec_dsq_main_stor_qty_virtual <> <fs_db_storage_qty_before>-hec_dsq_main_stor_qty_virtual OR lr_db_storage_qty->hec_dsq_additional_stor_qty <> <fs_db_storage_qty_before>-hec_dsq_additional_stor_qty OR lr_db_storage_qty->hec_successor_guid <> <fs_db_storage_qty_before>-hec_successor_guid OR lr_db_storage_qty->hec_predecessor_guid <> <fs_db_storage_qty_before>-hec_predecessor_guid. lr_db_storage_qty->hec_tree_descr = |{ lr_db_storage_qty->hec_dsq_main_stor_qty_virtual } + { lr_db_storage_qty->hec_dsq_additional_stor_qty } [GiB] |. lv_data_changed = abap_true. " Storage needs to be adjusted LOOP AT lt_serv_to_storage_link REFERENCE INTO DATA(lr_serv_to_storage_link) WHERE source_key = lt_perf_cat_to_serv_link[ source_key = lr_db_storage_qty->parent_key ]-target_key. INSERT VALUE #( key = lr_serv_to_storage_link->target_key ) INTO TABLE lt_act_param_storage. ENDLOOP. " Set flag for deleting subnodes of standby/worker node IF ( lr_db_storage_qty->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR lr_db_storage_qty->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi ) AND lr_db_storage_qty->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_storage_qty->hec_db_node_default = abap_true. DATA(lv_delete_subnode) = abap_true. ENDIF. ENDIF. " IF ls_db_storage_qty-hec_dsq_main_stor_qty_physical <> ls_db_storage_qty_old-hec_dsq_main_stor_qty_physical OR "----------------------------------- " Phase has changed - update phase " and inherit phase assignment "----------------------------------- IF lr_db_storage_qty->hec_phase_guid NE <fs_db_storage_qty_before>-hec_phase_guid. " Only for default master node IF lr_db_storage_qty->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_storage_qty->hec_db_node_default = abap_true. APPEND VALUE #( hec_node_key = is_ctx-node_key hec_bopf_key = lr_db_storage_qty->key hec_phase_guid_new = lr_db_storage_qty->hec_phase_guid hec_phase_guid_old = <fs_db_storage_qty_before>-hec_phase_guid ) TO lt_act_param_phasing. ENDIF. lr_db_storage_qty->hec_phase_changed = abap_true. lv_data_changed = abap_true. " Set flag for deleting subnodes of standby/worker node IF ( lr_db_storage_qty->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR lr_db_storage_qty->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi ) AND lr_db_storage_qty->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_storage_qty->hec_db_node_default = abap_true. lv_delete_subnode = abap_true. ENDIF. ENDIF. " IF lr_db_storage_qty->hec_phase_guid NE <fs_db_storage_qty_before>-hec_phase_guid. ENDIF. " IF <fs_db_storage_qty_before> IS ASSIGNED. "----------------------------------- " Check instance status and switch "----------------------------------- lv_inst_status = COND /hec1/config_instance_status( WHEN lr_db_storage_qty->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_storage_qty->hec_instance_status. lr_db_storage_qty->hec_instance_status = lv_inst_status. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Fill action table for delete " subnodes of DB standby/worker node " or relase standby/worker node "----------------------------------- IF ( lr_db_storage_qty->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR lr_db_storage_qty->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-multi ) AND lr_db_storage_qty->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_storage_qty->hec_db_node_default = abap_true AND lv_data_changed = abap_true. " Only one master node per storage amount can exist io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = VALUE #( ( key = lr_db_storage_qty->key ) ) iv_fill_data = abap_false iv_association = /hec1/if_configuration_c=>sc_association-db_storage_amount-to_def_master_node IMPORTING et_target_key = lt_key ). IF NOT line_exists( lt_act_param_node[ key = lt_key[ 1 ]-key ] ). TRY. INSERT VALUE #( key = lt_key[ 1 ]-key parent_key = space do_release_node = COND #( WHEN lr_db_storage_qty->hec_instance_status = /hec1/if_config_constants=>gc_instance_status-complete AND <fs_db_storage_qty_before>-hec_instance_status = /hec1/if_config_constants=>gc_instance_status-incomplete THEN abap_true ELSE abap_false ) do_delete_subnode = COND #( WHEN lr_db_storage_qty->hec_instance_status = /hec1/if_config_constants=>gc_instance_status-incomplete OR lv_delete_subnode = abap_true THEN abap_true ELSE abap_false ) ) INTO TABLE lt_act_param_node. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDIF. ENDIF. " IF ( lr_db_serv_perf_cat->hec_db_cluster_type_value = /hec1/if_config_constants=>gc_db_clust_node-ha OR... "----------------------------------- " Modify DB storage amount "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_storage_qty->key is_data = lr_db_storage_qty ). ENDIF. CLEAR: lv_inst_status, lv_data_changed, lv_delete_subnode, lt_key. UNASSIGN <fs_db_storage_qty_before>. ENDLOOP. "----------------------------------- " Set update DB Storage action to " general "----------------------------------- IF lt_act_param_storage IS NOT INITIAL. /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_storage ) it_key = lt_act_param_storage iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_db_storage ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ). . ENDIF. "----------------------------------- " Update Phasing "----------------------------------- IF lt_act_param_phasing IS NOT INITIAL. me->mr_act_param_phasing = NEW /hec1/t_act_phase_inherit( lt_act_param_phasing ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = it_key iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-inherit_phase_assignment ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_phasing ). ENDIF. "----------------------------------- " Set update DB node action to " general "----------------------------------- IF lt_act_param_node IS NOT INITIAL. CLEAR me->mr_act_param_db_node. me->mr_act_param_db_node = NEW /hec1/t_act_update_db_node( lt_act_param_node ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_node ) it_key = VALUE #( FOR wa_act_node IN lt_act_param_node ( key = wa_act_node-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_db_node ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_db_node ). ENDIF. " *************************************************************************** " Update mode after DB server " performance category update " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage_amount-update_after_serv_perf_cat. LOOP AT lt_db_storage_qty REFERENCE INTO lr_db_storage_qty. ASSIGN lt_db_serv_perf_cat[ key = lr_db_storage_qty->parent_key ] TO <fs_db_serv_perf_cat>. IF <fs_db_serv_perf_cat> IS ASSIGNED. "----------------------------------- " Release instance for selection "----------------------------------- IF <fs_db_serv_perf_cat>-hec_srv_perf_cat_guid IS NOT INITIAL AND <fs_db_serv_perf_cat>-hec_row_selectable = abap_true. lv_release = abap_true. ENDIF. IF lv_release <> lr_db_storage_qty->hec_row_selectable. lr_db_storage_qty->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Update DB server cluster type "----------------------------------- IF lr_db_storage_qty->hec_db_cluster_type_value <> <fs_db_serv_perf_cat>-hec_db_cluster_type_value. lr_db_storage_qty->hec_db_cluster_type_value = <fs_db_serv_perf_cat>-hec_db_cluster_type_value. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify DB storage amount "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_storage_qty->key is_data = lr_db_storage_qty ). ENDIF. ENDIF. " IF <fs_db_serv_perf_cat> IS ASSIGNED. UNASSIGN <fs_db_serv_perf_cat>. CLEAR: lv_release, lv_data_changed. ENDLOOP. " LOOP AT lt_db_storage_qty ENDCASE. CATCH /bobf/cx_frw. " Exception class ENDTRY. ENDMETHOD. METHOD determine_db_storage_backup_cr. DATA: lt_db_backup TYPE /hec1/t_data_db_backup_ct, lt_db_backup_perstorage TYPE /hec1/t_data_db_backup_ct, lt_db_backup_before TYPE /hec1/t_data_db_backup_ct, lt_db_storage TYPE /hec1/t_data_db_storage_ct, lt_phase TYPE /hec1/t_data_phase_ct, lt_act_param_succ TYPE /hec1/t_act_set_success_predec, lt_act_param_phasing TYPE TABLE OF /hec1/s_act_phase_inherit. CLEAR: eo_message, et_failed_key. io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key IMPORTING et_data = lt_db_backup ). /hec1/cl_config_helper=>get_general_data( EXPORTING iv_node_key = is_ctx-node_key it_key = it_key io_read = io_read IMPORTING ev_root_key = DATA(lv_root_key) er_landscape = DATA(lr_landscape) er_delivery_unit = DATA(lr_dlvy_unit) et_datacenter = DATA(lt_datacenter) et_failed_key = et_failed_key ). TRY. CASE is_ctx-det_key. " *************************************************************************** " Create mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage_backup-create. " Get DB server storage (parent) io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_storage_backup-to_parent IMPORTING et_data = lt_db_storage ). " Get for each DB storage the DB backup io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_storage it_key = VALUE #( FOR wa_node IN lt_db_storage ( key = wa_node-key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_storage-db_storage_backup IMPORTING et_data = lt_db_backup_perstorage ). LOOP AT lt_db_backup REFERENCE INTO DATA(lr_db_backup). lr_db_backup->hec_delete_visible = abap_true. "----------------------------------- " Set Value List Quantity "----------------------------------- lr_db_backup->hec_backup_class_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_backup( iv_apm_guid = lr_landscape->hec_apm_guid iv_tier_category_value = lr_db_backup->hec_tier_cat_value iv_srv_type_guid = lr_db_backup->hec_db_srv_type_guid iv_is_app_backup = abap_false ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). "----------------------------------- " Check instance status and switch "----------------------------------- DATA(lv_inst_status) = COND /hec1/config_instance_status( WHEN lr_db_backup->hec_backup_class_guid IS NOT INITIAL AND lr_db_backup->hec_backup_size IS NOT INITIAL AND lr_db_backup->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_backup->hec_instance_status. lr_db_backup->hec_instance_status = lv_inst_status. DATA(lv_data_changed) = abap_true. ENDIF. "----------------------------------- " Release instance for selection "----------------------------------- ASSIGN lt_db_storage[ key = lr_db_backup->parent_key ] TO FIELD-SYMBOL(<fs_db_storage>). IF <fs_db_storage> IS ASSIGNED. IF <fs_db_storage>-hec_ip_storage_guid IS NOT INITIAL AND <fs_db_storage>-hec_row_selectable = abap_true. DATA(lv_release) = abap_true. ENDIF. ENDIF. IF lv_release <> lr_db_backup->hec_row_selectable. lr_db_backup->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "------------------------------------------ " Set CR related fields from the ROOT node "------------------------------------------ DATA(lv_cr_data_changed) = /hec1/cl_config_helper=>SET_CR_RELATED_FIELDS( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read io_modify = io_modify iv_mod_type = /hec1/if_config_constants=>gc_comp_mod_type-added is_node_data = lr_db_backup iv_set_apm = abap_true iv_clear_phase = abap_true ). "----------------------------------- " Fill action table for setting " DB server storage backup " successor/predecessor "----------------------------------- DATA(lv_node_count) = REDUCE i( INIT x = 0 FOR <l> IN lt_db_backup_perstorage WHERE ( parent_key = lr_db_backup->parent_key ) NEXT x = x + 1 ). IF NOT line_exists( lt_act_param_succ[ key = lr_db_backup->parent_key ] ) AND lv_node_count > 1. TRY. INSERT VALUE #( key = lr_db_backup->parent_key parent_key = lt_db_storage[ key = lr_db_backup->parent_key ]-parent_key hec_no_children_node = lv_node_count ) INTO TABLE lt_act_param_succ. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDIF. "----------------------------------- " Modify DB backup "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_backup->key is_data = lr_db_backup ). ENDIF. UNASSIGN <fs_db_storage>. CLEAR: lv_inst_status, lv_data_changed, lv_release, lv_node_count. ENDLOOP. "----------------------------------- " Set successor/predecessor action " to GENERAL "----------------------------------- IF lt_act_param_succ IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_set_success_predec( lt_act_param_succ ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_storage assoc_key = /hec1/if_configuration_c=>sc_association-db_storage-db_storage_backup ) it_key = VALUE #( FOR wa_act_succ IN lt_act_param_succ ( key = wa_act_succ-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-set_success_predec ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. " *************************************************************************** " Update mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage_backup-update. io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_before_image = abap_true iv_fill_data = abap_true IMPORTING et_data = lt_db_backup_before ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-root it_key = VALUE #( ( key = lv_root_key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-root-phase IMPORTING et_data = lt_phase ). " Get DB storage io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_association = /hec1/if_configuration_c=>sc_association-db_storage_backup-to_parent IMPORTING et_target_key = DATA(lt_db_storage_key) et_data = lt_db_storage ). LOOP AT lt_db_backup REFERENCE INTO lr_db_backup. ASSIGN lt_db_backup_before[ key = lr_db_backup->key ] TO FIELD-SYMBOL(<fs_db_backup_before>). IF <fs_db_backup_before> IS ASSIGNED. "----------------------------------- " Backup GUID has changed "----------------------------------- IF lr_db_backup->hec_backup_class_guid IS NOT INITIAL AND lr_db_backup->hec_backup_class_guid <> <fs_db_backup_before>-hec_backup_class_guid. " Get backup class and backup class pricing /hec1/cl_config_action_helper=>/hec1/if_bopf_action_helper~get_backup_class_and_price( EXPORTING is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( ( key = lr_db_backup->key ) ) iv_tier_category_value = lr_db_backup->hec_tier_cat_value iv_tier_datacenter_guid = lr_db_backup->hec_tier_datacenter_guid iv_backup_class_guid = lr_db_backup->hec_backup_class_guid io_read = io_read IMPORTING es_backup_class = DATA(ls_backup_class) es_backup_pricing = DATA(ls_backup_pricing) ). lr_db_backup->price = CORRESPONDING #( ls_backup_pricing ). lr_db_backup->hec_backup_class_guid = ls_backup_class-hec_backup_class_guid. lr_db_backup->hec_backup_class_descr = ls_backup_class-hec_backup_class_descr. lr_db_backup->hec_tree_descr = ls_backup_class-hec_backup_class_descr. "#EC CI_FLDEXT_OK[2215424] lr_db_backup->hec_backup_month_price_fee = lr_db_backup->hec_backup_size * lr_db_backup->hec_month_price_eur. lv_data_changed = abap_true. "----------------------------------- " Set Value List Quantity "----------------------------------- lr_db_backup->hec_backup_class_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_backup( iv_apm_guid = lr_landscape->hec_apm_guid iv_tier_category_value = lr_db_backup->hec_tier_cat_value iv_srv_type_guid = lr_db_backup->hec_db_srv_type_guid iv_is_app_backup = abap_false ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). ENDIF. " IF ls_db_backup-hec_backup_class_guid IS NOT INITIAL AND "----------------------------------- " Backup size has changed "----------------------------------- IF lr_db_backup->hec_backup_size IS NOT INITIAL AND lr_db_backup->hec_backup_size <> <fs_db_backup_before>-hec_backup_size. lr_db_backup->hec_backup_month_price_fee = lr_db_backup->hec_backup_size * lr_db_backup->hec_month_price_eur. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Phase has changed "----------------------------------- IF lr_db_backup->hec_phase_guid NE <fs_db_backup_before>-hec_phase_guid. " Only for default master node IF lr_db_backup->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_backup->hec_db_node_default = abap_true. APPEND VALUE #( hec_node_key = is_ctx-node_key hec_bopf_key = lr_db_backup->key hec_phase_guid_new = lr_db_backup->hec_phase_guid hec_phase_guid_old = <fs_db_backup_before>-hec_phase_guid ) TO lt_act_param_phasing. ENDIF. lr_db_backup->hec_phase_changed = abap_true. lv_data_changed = abap_true. ENDIF. ENDIF. "IF <fs_db_backup_before> IS ASSIGNED. "----------------------------------- " Check instance status and switch "----------------------------------- lv_inst_status = COND /hec1/config_instance_status( WHEN lr_db_backup->hec_backup_class_guid IS NOT INITIAL AND lr_db_backup->hec_backup_size IS NOT INITIAL AND lr_db_backup->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_backup->hec_instance_status. lr_db_backup->hec_instance_status = lv_inst_status. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify DB backup "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_backup->key is_data = lr_db_backup ). ENDIF. CLEAR: lv_inst_status, lv_data_changed, ls_backup_class, ls_backup_pricing. UNASSIGN <fs_db_backup_before>. ENDLOOP. "----------------------------------- " Update Phasing "----------------------------------- IF lt_act_param_phasing IS NOT INITIAL. me->mr_act_param_phasing = NEW /hec1/t_act_phase_inherit( lt_act_param_phasing ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = it_key iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-inherit_phase_assignment ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_phasing ). ENDIF. " *************************************************************************** " Update mode after storage update " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage_backup-update_after_storage. " Get DB server storage (parent) io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_storage_backup-to_parent IMPORTING et_data = lt_db_storage ). LOOP AT lt_db_backup REFERENCE INTO lr_db_backup. ASSIGN lt_db_storage[ key = lr_db_backup->parent_key ] TO <fs_db_storage>. IF <fs_db_storage> IS ASSIGNED. "----------------------------------- " Release instance for selection "----------------------------------- IF <fs_db_storage>-hec_ip_storage_guid IS NOT INITIAL AND <fs_db_storage>-hec_row_selectable = abap_true. lv_release = abap_true. ENDIF. IF lv_release <> lr_db_backup->hec_row_selectable. lr_db_backup->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Update DB server cluster type "----------------------------------- IF lr_db_backup->hec_db_cluster_type_value <> <fs_db_storage>-hec_db_cluster_type_value. lr_db_backup->hec_db_cluster_type_value = <fs_db_storage>-hec_db_cluster_type_value. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify DB storage backup "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_backup->key is_data = lr_db_backup ). ENDIF. ENDIF. " IF <fs_db_storage> IS ASSIGNED. UNASSIGN <fs_db_storage>. CLEAR: lv_release, lv_data_changed. ENDLOOP. ENDCASE. CATCH /bobf/cx_frw. " Exception class ENDTRY. ENDMETHOD. METHOD determine_db_storage_cr. DATA: lt_db_server TYPE /hec1/t_data_db_serv_ct, lt_db_storage TYPE /hec1/t_data_db_storage_ct, lt_db_storage_perserver TYPE /hec1/t_data_db_storage_ct, lt_db_storage_before TYPE /hec1/t_data_db_storage_ct, lt_db_storage_succ TYPE /hec1/t_data_db_storage_ct, lt_db_node TYPE /hec1/t_data_db_node_ct, lt_db_serv_perf_cat TYPE /hec1/t_data_db_serv_pc_ct, lt_db_storage_qty TYPE /hec1/t_data_db_storage_qty_ct, lt_db_backup TYPE /hec1/t_data_db_backup_ct, lt_phase TYPE /hec1/t_data_phase_ct, lt_act_param TYPE /hec1/t_act_create_db_backup, lt_act_param_storage TYPE /bobf/t_frw_key, lt_act_param_phasing TYPE TABLE OF /hec1/s_act_phase_inherit. CLEAR: eo_message, et_failed_key. io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key IMPORTING et_data = lt_db_storage ). " Get DB server (parent) " Get DB server (parent) io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_storage-to_parent IMPORTING et_data = lt_db_server ). /hec1/cl_config_helper=>get_general_data( EXPORTING iv_node_key = is_ctx-node_key it_key = it_key io_read = io_read IMPORTING ev_root_key = DATA(lv_root_key) er_landscape = DATA(lr_landscape) er_delivery_unit = DATA(lr_dlvy_unit) et_datacenter = DATA(lt_datacenter) et_failed_key = et_failed_key ). TRY. CASE is_ctx-det_key. " *************************************************************************** " Create mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage-create. " Get for each DB server the DB storage io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-db_server it_key = VALUE #( FOR wa_serv IN lt_db_server ( key = wa_serv-key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_server-db_storage IMPORTING et_data = lt_db_storage_perserver ). LOOP AT lt_db_storage REFERENCE INTO DATA(lr_db_storage) WHERE hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master. "----------------------------------- " Set Value List Quantity "----------------------------------- lr_db_storage->hec_storage_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_storage( iv_apm_guid = lr_landscape->hec_apm_guid iv_infra_provider_guid = lr_dlvy_unit->hec_inf_provider_guid iv_sec_datacenter_guid = VALUE #( lt_datacenter[ hec_node_datacenter = lr_db_storage->hec_tier_datacenter_guid ]-hec_sec_datacenter_guid OPTIONAL ) ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). lr_db_storage->hec_delete_visible = abap_false. "----------------------------------- " Check instance status and switch "----------------------------------- DATA(lv_inst_status) = COND /hec1/config_instance_status( WHEN lr_db_storage->hec_ip_storage_guid IS NOT INITIAL AND lr_db_storage->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_storage->hec_instance_status. lr_db_storage->hec_instance_status = lv_inst_status. DATA(lv_data_changed) = abap_true. ENDIF. "----------------------------------- " Release instance for selection "----------------------------------- ASSIGN lt_db_server[ key = lr_db_storage->parent_key ] TO FIELD-SYMBOL(<fs_db_server>). IF <fs_db_server> IS ASSIGNED. IF <fs_db_server>-hec_ip_server_guid IS NOT INITIAL AND <fs_db_server>-hec_row_selectable = abap_true. DATA(lv_release) = abap_true. ENDIF. ENDIF. IF lv_release <> lr_db_storage->hec_row_selectable. lr_db_storage->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "------------------------------------------ " Set CR related fields from the ROOT node "------------------------------------------ DATA(lv_cr_data_changed) = /hec1/cl_config_helper=>SET_CR_RELATED_FIELDS( EXPORTING is_ctx = is_ctx it_key = it_key io_read = io_read io_modify = io_modify iv_mod_type = /hec1/if_config_constants=>gc_comp_mod_type-added is_node_data = lr_db_storage iv_set_apm = abap_true iv_clear_phase = abap_true ). "----------------------------------- " Fill action table for create " DB server storage backup "----------------------------------- IF lr_db_storage->hec_backup_relev_value = '01'. " mandantory INSERT VALUE #( key = lr_db_storage->key parent_key = lr_db_storage->parent_key hec_backup_qty = lr_db_storage->hec_backup_qty ) INTO TABLE lt_act_param. ENDIF. "----------------------------------- " Fill action table for setting " App server storage " successor/predecessor "----------------------------------- DATA(lv_node_count) = REDUCE i( INIT x = 0 FOR <l> IN lt_db_storage_perserver WHERE ( parent_key = lr_db_storage->parent_key ) NEXT x = x + 1 ). IF NOT line_exists( lt_act_param_storage[ key = lr_db_storage->key ] ) AND lv_node_count > 1. TRY. INSERT VALUE #( key = lr_db_storage->key ) INTO TABLE lt_act_param_storage. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDIF. "----------------------------------- " Modify DB server storage "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_storage->key is_data = lr_db_storage ). ENDIF. UNASSIGN <fs_db_server>. CLEAR: lv_inst_status, lv_data_changed, lv_release, lv_node_count. ENDLOOP. "----------------------------------- " Set create DB server storage " backup action to general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_create_db_backup( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_backup ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. "----------------------------------- " Set update DB storage action " to GENERAL "----------------------------------- IF lt_act_param_storage IS NOT INITIAL. /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = VALUE #( BASE CORRESPONDING #( is_ctx ) node_key = /hec1/if_configuration_c=>sc_node-db_storage ) it_key = lt_act_param_storage iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-update_db_storage ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ). ENDIF. " *************************************************************************** " Update mode " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage-update. io_read->retrieve( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_before_image = abap_true IMPORTING et_data = lt_db_storage_before ). io_read->retrieve_by_association( EXPORTING iv_node = /hec1/if_configuration_c=>sc_node-root it_key = VALUE #( ( key = lv_root_key ) ) iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-root-phase IMPORTING et_data = lt_phase ). " Get Backup io_read->retrieve_by_association( EXPORTING iv_node = is_ctx-node_key it_key = it_key iv_fill_data = abap_true iv_association = /hec1/if_configuration_c=>sc_association-db_storage-db_storage_backup IMPORTING et_data = lt_db_backup ). LOOP AT lt_db_storage REFERENCE INTO lr_db_storage. ASSIGN lt_db_storage_before[ key = lr_db_storage->key ] TO FIELD-SYMBOL(<fs_db_storage_before>). IF <fs_db_storage_before> IS ASSIGNED. "----------------------------------- " DB storage has changed "----------------------------------- IF lr_db_storage->hec_ip_storage_guid IS INITIAL OR ( lr_db_storage->hec_ip_storage_guid IS NOT INITIAL AND lr_db_storage->hec_ip_storage_guid <> <fs_db_storage_before>-hec_ip_storage_guid ). ASSIGN lt_db_server[ key = lr_db_storage->parent_key ] TO <fs_db_server>. IF <fs_db_server> IS ASSIGNED. SELECT SINGLE * FROM /hec1/i_storagelbbasic WHERE hec_apm_guid = @lr_landscape->hec_apm_guid AND hec_sec_datacenter_guid = @<fs_db_server>-hec_sec_datacenter_guid AND hec_infra_provider_guid = @lr_dlvy_unit->hec_inf_provider_guid AND hec_ip_storage_guid = @lr_db_storage->hec_ip_storage_guid INTO @DATA(ls_storage). SELECT SINGLE * FROM /hec1/c_cbp_lb "#EC CI_ALL_FIELDS_NEEDED INTO @DATA(ls_pricing) WHERE hec_price_lb = @ls_storage-hec_cb_pricing_lb_guid. lr_db_storage->* = CORRESPONDING #( BASE ( lr_db_storage->* ) ls_pricing ). lr_db_storage->hec_ip_storage_guid = ls_storage-hec_ip_storage_guid. lr_db_storage->hec_storage_descr = ls_storage-hec_storage_descr. lr_db_storage->hec_month_price_fee = lr_db_storage->hec_storage_quantity * lr_db_storage->hec_month_price_eur. lr_db_storage->hec_tree_descr = ls_storage-hec_storage_descr. "#EC CI_FLDEXT_OK[2215424] lv_data_changed = abap_true. " Set Value List Quantity - DB Storage lr_db_storage->hec_storage_vlqt = COND #( WHEN 1 < lines( /hec1/cl_apm_data_access_class=>/hec1/if_apm_data_access_class~get_storage( iv_apm_guid = lr_landscape->hec_apm_guid iv_infra_provider_guid = lr_dlvy_unit->hec_inf_provider_guid iv_sec_datacenter_guid = VALUE #( lt_datacenter[ hec_node_datacenter = lr_db_storage->hec_tier_datacenter_guid ]-hec_sec_datacenter_guid OPTIONAL ) ) ) THEN /hec1/if_config_constants=>gc_value_list_quantity-multi ELSE /hec1/if_config_constants=>gc_value_list_quantity-single ). ENDIF. " <fs_db_server> is assigned ENDIF. " db storage changed "----------------------------------- " DB storage amount has changed "----------------------------------- IF lr_db_storage->hec_storage_quantity IS NOT INITIAL AND lr_db_storage->hec_storage_quantity <> <fs_db_storage_before>-hec_storage_quantity. lr_db_storage->hec_month_price_fee = lr_db_storage->hec_storage_quantity * lr_db_storage->hec_month_price_eur. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Fill action table for create " DB server storage backup "----------------------------------- IF lr_db_storage->hec_backup_qty > <fs_db_storage_before>-hec_backup_qty. INSERT VALUE #( key = lr_db_storage->key parent_key = lr_db_storage->parent_key hec_backup_qty = lr_db_storage->hec_backup_qty - <fs_db_storage_before>-hec_backup_qty ) INTO TABLE lt_act_param. " Success message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>new_backup_added iv_severity = /bobf/cm_frw=>co_severity_success iv_attr1 = CONV #( lr_db_storage->hec_backup_qty - <fs_db_storage_before>-hec_backup_qty ) CHANGING co_message = eo_message ). ELSEIF lr_db_storage->hec_backup_qty < <fs_db_storage_before>-hec_backup_qty AND lr_db_storage->hec_backup_qty < lines( VALUE /hec1/t_data_db_backup_ct( FOR db_backup IN lt_db_backup WHERE ( parent_key = lr_db_storage->key ) ( db_backup ) ) ). DATA(lv_attr_name) = /hec1/if_configuration_c=>sc_node_attribute-db_storage-hec_backup_qty. " Error message /hec1/cl_config_helper=>set_message( EXPORTING iv_textid = /hec1/cx_bopf_config=>object_no_not_higher is_origin_location = VALUE #( node_key = is_ctx-node_key key = lr_db_storage->key attributes = VALUE #( ( lv_attr_name ) ) ) CHANGING co_message = eo_message ). " Set node number to value before update lr_db_storage->hec_backup_qty = <fs_db_storage_before>-hec_backup_qty. lv_data_changed = abap_true. ENDIF. " IF lr_db_storage->hec_dst_backup_qty > <fs_db_storage_before>-hec_dst_backup_qty. "----------------------------------- " Phase has changed - update phase and inherit phase assignment "----------------------------------- IF lr_db_storage->hec_phase_guid NE <fs_db_storage_before>-hec_phase_guid. " Only for default master node IF lr_db_storage->hec_db_clust_node_type_value = /hec1/if_config_constants=>gc_db_clust_node_type-master AND lr_db_storage->hec_db_node_default = abap_true. APPEND VALUE #( hec_node_key = is_ctx-node_key hec_bopf_key = lr_db_storage->key hec_phase_guid_new = lr_db_storage->hec_phase_guid hec_phase_guid_old = <fs_db_storage_before>-hec_phase_guid ) TO lt_act_param_phasing. ENDIF. lr_db_storage->hec_phase_changed = abap_true. lv_data_changed = abap_true. ENDIF. "phasing changed ENDIF. " IF <fs_db_storage_before> IS ASSIGNED. "----------------------------------- " Check instance status and switch "----------------------------------- lv_inst_status = COND /hec1/config_instance_status( WHEN lr_db_storage->hec_ip_storage_guid IS NOT INITIAL AND lr_db_storage->hec_phase_guid IS NOT INITIAL THEN /hec1/if_config_constants=>gc_instance_status-complete ELSE /hec1/if_config_constants=>gc_instance_status-incomplete ). IF lv_inst_status <> lr_db_storage->hec_instance_status. lr_db_storage->hec_instance_status = lv_inst_status. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Modify DB server storage "----------------------------------- IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_storage->key is_data = lr_db_storage ). ENDIF. CLEAR: lv_inst_status, lv_data_changed, lv_attr_name, ls_storage, ls_pricing. UNASSIGN <fs_db_storage_before>. ENDLOOP. "----------------------------------- " Update Phasing "----------------------------------- IF lt_act_param_phasing IS NOT INITIAL. me->mr_act_param_phasing = NEW /hec1/t_act_phase_inherit( lt_act_param_phasing ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = it_key iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-inherit_phase_assignment ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param_phasing ). ENDIF. "----------------------------------- " Set create DB server storage " backup action to general "----------------------------------- IF lt_act_param IS NOT INITIAL. CLEAR me->mr_act_param. me->mr_act_param = NEW /hec1/t_act_create_db_backup( lt_act_param ). /hec1/cl_config_det_general=>/hec1/if_config_det_general~set_act_node_keys( is_ctx = CORRESPONDING #( is_ctx ) it_key = VALUE #( FOR wa_act IN lt_act_param ( key = wa_act-key ) ) iv_action = /hec1/cl_config_det_general=>/hec1/if_config_det_general~get_act_key( /hec1/if_config_constant=>gc_act_method-create_db_backup ) iv_act_exectime = /bobf/if_conf_c=>sc_time_after_validation ir_act_param = me->mr_act_param ). ENDIF. " *************************************************************************** " Update mode after server update " *************************************************************************** WHEN /hec1/if_configuration_c=>sc_determination-db_storage-update_after_server. LOOP AT lt_db_storage REFERENCE INTO lr_db_storage. ASSIGN lt_db_server[ key = lr_db_storage->parent_key ] TO <fs_db_server>. IF <fs_db_server> IS ASSIGNED. IF <fs_db_server>-hec_ip_server_guid IS NOT INITIAL AND <fs_db_server>-hec_row_selectable = abap_true. lv_release = abap_true. ENDIF. ENDIF. "----------------------------------- " Release instance for selection "----------------------------------- IF lv_release <> lr_db_storage->hec_row_selectable. lr_db_storage->hec_row_selectable = lv_release. lv_data_changed = abap_true. ENDIF. "----------------------------------- " Update DB server cluster type "----------------------------------- IF lr_db_storage->hec_db_cluster_type_value <> <fs_db_server>-hec_db_cluster_type_value. lr_db_storage->hec_db_cluster_type_value = <fs_db_server>-hec_db_cluster_type_value. lv_data_changed = abap_true. ENDIF. IF lv_data_changed = abap_true. io_modify->update( iv_node = is_ctx-node_key iv_key = lr_db_storage->key is_data = lr_db_storage ). ENDIF. UNASSIGN <fs_db_server>. CLEAR: lv_release, lv_data_changed. ENDLOOP. " LOOP AT lt_db_storage ENDCASE. CATCH /bobf/cx_frw. " Exception class ENDTRY. ENDMETHOD. ENDCLASS.
[ 31631, 1220, 258, 66, 16, 14, 565, 62, 11250, 62, 15255, 62, 9945, 62, 15388, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1220, 258, 66, 16, 14, 565, 62, 8019, 62, 67, 62, 16668, 4871, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 12260, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 12260, 62, 21048, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 285, 81, 62, 529, 62, 17143, 41876, 4526, 37, 5390, 1366, 764, 198, 220, 220, 220, 42865, 285, 81, 62, 529, 62, 17143, 16, 41876, 4526, 37, 5390, 1366, 764, 198, 220, 220, 220, 42865, 285, 81, 62, 529, 62, 17143, 62, 19608, 330, 41876, 4526, 37, 5390, 1366, 764, 198, 220, 220, 220, 42865, 285, 81, 62, 529, 62, 17143, 62, 9945, 62, 17440, 41876, 4526, 37, 5390, 1366, 764, 198, 220, 220, 220, 42865, 285, 81, 62, 529, 62, 17143, 62, 9945, 62, 35350, 62, 17287, 41876, 4526, 37, 5390, 1366, 764, 198, 220, 220, 220, 42865, 285, 81, 62, 529, 62, 17143, 62, 33678, 41876, 4526, 37, 5390, 1366, 764, 198, 220, 220, 220, 42865, 285, 81, 62, 529, 62, 17143, 62, 67, 6780, 88, 41876, 4526, 37, 5390, 1366, 764, 198, 220, 220, 220, 42865, 285, 81, 62, 529, 62, 17143, 62, 39098, 41876, 4526, 37, 5390, 1366, 764, 198, 220, 220, 220, 42865, 285, 81, 62, 529, 62, 17143, 62, 746, 2313, 41876, 4526, 37, 5390, 1366, 764, 198, 220, 220, 220, 42865, 285, 81, 62, 529, 62, 17143, 62, 24948, 62, 65, 694, 62, 17287, 41876, 4526, 37, 5390, 1366, 764, 628, 220, 220, 220, 337, 36252, 50, 5004, 62, 9945, 62, 39098, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 49464, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 65, 672, 69, 14, 82, 62, 8310, 86, 62, 49464, 62, 15255, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 65, 672, 69, 14, 83, 62, 8310, 86, 62, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 961, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1220, 65, 672, 69, 14, 361, 62, 8310, 86, 62, 961, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 4666, 1958, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1220, 65, 672, 69, 14, 361, 62, 8310, 86, 62, 4666, 1958, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 68, 78, 62, 20500, 220, 220, 220, 41876, 4526, 37, 5390, 1220, 65, 672, 69, 14, 361, 62, 8310, 86, 62, 20500, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 316, 62, 47904, 62, 2539, 41876, 1220, 65, 672, 69, 14, 83, 62, 8310, 86, 62, 2539, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1220, 65, 672, 69, 14, 66, 87, 62, 8310, 86, 764, 198, 220, 220, 220, 337, 36252, 50, 5004, 62, 9945, 62, 39098, 62, 6098, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 49464, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 65, 672, 69, 14, 82, 62, 8310, 86, 62, 49464, 62, 15255, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 65, 672, 69, 14, 83, 62, 8310, 86, 62, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 961, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1220, 65, 672, 69, 14, 361, 62, 8310, 86, 62, 961, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 4666, 1958, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1220, 65, 672, 69, 14, 361, 62, 8310, 86, 62, 4666, 1958, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 68, 78, 62, 20500, 220, 220, 220, 41876, 4526, 37, 5390, 1220, 65, 672, 69, 14, 361, 62, 8310, 86, 62, 20500, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 316, 62, 47904, 62, 2539, 41876, 1220, 65, 672, 69, 14, 83, 62, 8310, 86, 62, 2539, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1220, 65, 672, 69, 14, 66, 87, 62, 8310, 86, 764, 198, 220, 220, 220, 337, 36252, 50, 5004, 62, 9945, 62, 17440, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 49464, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 65, 672, 69, 14, 82, 62, 8310, 86, 62, 49464, 62, 15255, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 65, 672, 69, 14, 83, 62, 8310, 86, 62, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 961, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1220, 65, 672, 69, 14, 361, 62, 8310, 86, 62, 961, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 4666, 1958, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1220, 65, 672, 69, 14, 361, 62, 8310, 86, 62, 4666, 1958, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 68, 78, 62, 20500, 220, 220, 220, 41876, 4526, 37, 5390, 1220, 65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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS /dmo/bp_travel_u06 DEFINITION PUBLIC ABSTRACT FINAL FOR BEHAVIOR OF /dmo/i_travel_u06 . PUBLIC SECTION. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS /dmo/bp_travel_u06 IMPLEMENTATION. ENDCLASS.
[ 31631, 1220, 67, 5908, 14, 46583, 62, 35927, 62, 84, 3312, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 9564, 18601, 10659, 198, 220, 25261, 198, 220, 7473, 9348, 7801, 12861, 1581, 3963, 1220, 67, 5908, 14, 72, 62, 35927, 62, 84, 3312, 764, 628, 220, 44731, 44513, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1220, 67, 5908, 14, 46583, 62, 35927, 62, 84, 3312, 30023, 2538, 10979, 6234, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_doma DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. PRIVATE SECTION. TYPES: BEGIN OF ty_dd01_texts, ddlanguage TYPE dd01v-ddlanguage, ddtext TYPE dd01v-ddtext, END OF ty_dd01_texts, BEGIN OF ty_dd07_texts, valpos TYPE dd07v-valpos, ddlanguage TYPE dd07v-ddlanguage, domvalue_l TYPE dd07v-domvalue_l, domvalue_h TYPE dd07v-domvalue_h, ddtext TYPE dd07v-ddtext, domval_ld TYPE dd07v-domval_ld, domval_hd TYPE dd07v-domval_hd, END OF ty_dd07_texts, tt_dd01_texts TYPE STANDARD TABLE OF ty_dd01_texts, tt_dd07_texts TYPE STANDARD TABLE OF ty_dd07_texts. METHODS: serialize_texts IMPORTING io_xml TYPE REF TO zcl_abapgit_xml_output RAISING zcx_abapgit_exception, deserialize_texts IMPORTING io_xml TYPE REF TO zcl_abapgit_xml_input is_dd01v TYPE dd01v it_dd07v TYPE dd07v_tab RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_object_doma IMPLEMENTATION. METHOD deserialize_texts. DATA: lv_name TYPE ddobjname, ls_dd01v_tmp TYPE dd01v, lt_dd07v_tmp TYPE TABLE OF dd07v, lt_i18n_langs TYPE TABLE OF langu, lt_dd01_texts TYPE tt_dd01_texts, lt_dd07_texts TYPE tt_dd07_texts. FIELD-SYMBOLS: <lv_lang> LIKE LINE OF lt_i18n_langs, <ls_dd07v> LIKE LINE OF it_dd07v, <ls_dd01_text> LIKE LINE OF lt_dd01_texts, <ls_dd07_text> LIKE LINE OF lt_dd07_texts. lv_name = ms_item-obj_name. io_xml->read( EXPORTING iv_name = 'I18N_LANGS' CHANGING cg_data = lt_i18n_langs ). io_xml->read( EXPORTING iv_name = 'DD01_TEXTS' CHANGING cg_data = lt_dd01_texts ). io_xml->read( EXPORTING iv_name = 'DD07_TEXTS' CHANGING cg_data = lt_dd07_texts ). SORT lt_i18n_langs. SORT lt_dd07_texts BY ddlanguage. " Optimization LOOP AT lt_i18n_langs ASSIGNING <lv_lang>. " Domain description ls_dd01v_tmp = is_dd01v. READ TABLE lt_dd01_texts ASSIGNING <ls_dd01_text> WITH KEY ddlanguage = <lv_lang>. IF sy-subrc > 0. zcx_abapgit_exception=>raise( |DD01_TEXTS cannot find lang { <lv_lang> } in XML| ). ENDIF. MOVE-CORRESPONDING <ls_dd01_text> TO ls_dd01v_tmp. " Domain values lt_dd07v_tmp = it_dd07v. LOOP AT lt_dd07v_tmp ASSIGNING <ls_dd07v>. READ TABLE lt_dd07_texts ASSIGNING <ls_dd07_text> WITH KEY ddlanguage = <lv_lang> valpos = <ls_dd07v>-valpos. CHECK sy-subrc = 0. " ! no translation -> master translation remain (maybe not OK) MOVE-CORRESPONDING <ls_dd07_text> TO <ls_dd07v>. DELETE lt_dd07_texts INDEX sy-tabix. " Optimization ENDLOOP. CALL FUNCTION 'DDIF_DOMA_PUT' EXPORTING name = lv_name dd01v_wa = ls_dd01v_tmp TABLES dd07v_tab = lt_dd07v_tmp EXCEPTIONS doma_not_found = 1 name_inconsistent = 2 doma_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from DDIF_DOMA_PUT @TEXTS' ). ENDIF. ENDLOOP. ENDMETHOD. METHOD serialize_texts. DATA: lv_name TYPE ddobjname, lv_index TYPE i, ls_dd01v TYPE dd01v, lt_dd07v TYPE TABLE OF dd07v, lt_i18n_langs TYPE TABLE OF langu, lt_dd01_texts TYPE tt_dd01_texts, lt_dd07_texts TYPE tt_dd07_texts. FIELD-SYMBOLS: <lv_lang> LIKE LINE OF lt_i18n_langs, <ls_dd07v> LIKE LINE OF lt_dd07v, <ls_dd01_text> LIKE LINE OF lt_dd01_texts, <ls_dd07_text> LIKE LINE OF lt_dd07_texts. lv_name = ms_item-obj_name. " Collect additional languages, skip master lang - it was serialized already SELECT DISTINCT ddlanguage AS langu INTO TABLE lt_i18n_langs FROM dd01v WHERE domname = lv_name AND ddlanguage <> mv_language. "#EC CI_SUBRC LOOP AT lt_i18n_langs ASSIGNING <lv_lang>. lv_index = sy-tabix. CALL FUNCTION 'DDIF_DOMA_GET' EXPORTING name = lv_name langu = <lv_lang> IMPORTING dd01v_wa = ls_dd01v TABLES dd07v_tab = lt_dd07v EXCEPTIONS illegal_input = 1 OTHERS = 2. IF sy-subrc <> 0 OR ls_dd01v-ddlanguage IS INITIAL. DELETE lt_i18n_langs INDEX lv_index. " Don't save this lang CONTINUE. ENDIF. APPEND INITIAL LINE TO lt_dd01_texts ASSIGNING <ls_dd01_text>. MOVE-CORRESPONDING ls_dd01v TO <ls_dd01_text>. LOOP AT lt_dd07v ASSIGNING <ls_dd07v>. APPEND INITIAL LINE TO lt_dd07_texts ASSIGNING <ls_dd07_text>. MOVE-CORRESPONDING <ls_dd07v> TO <ls_dd07_text>. ENDLOOP. ENDLOOP. SORT lt_i18n_langs ASCENDING. SORT lt_dd01_texts BY ddlanguage ASCENDING. SORT lt_dd07_texts BY valpos ASCENDING ddlanguage ASCENDING. IF lines( lt_i18n_langs ) > 0. io_xml->add( iv_name = 'I18N_LANGS' ig_data = lt_i18n_langs ). io_xml->add( iv_name = 'DD01_TEXTS' ig_data = lt_dd01_texts ). io_xml->add( iv_name = 'DD07_TEXTS' ig_data = lt_dd07_texts ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~changed_by. SELECT SINGLE as4user FROM dd01l INTO rv_user WHERE domname = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. IF sy-subrc <> 0. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~compare_to_remote_version. CREATE OBJECT ro_comparison_result TYPE zcl_abapgit_comparison_null. ENDMETHOD. METHOD zif_abapgit_object~delete. * see class CL_WB_DDIC DATA: lv_objname TYPE rsedd0-ddobjname. lv_objname = ms_item-obj_name. TRY. CALL FUNCTION 'RS_DD_DELETE_OBJ' EXPORTING no_ask = abap_true objname = lv_objname objtype = 'D' no_ask_delete_append = abap_true EXCEPTIONS not_executed = 1 object_not_found = 2 object_not_specified = 3 permission_failure = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from RS_DD_DELETE_OBJ, DOMA' ). ENDIF. CATCH cx_sy_dyn_call_param_not_found. CALL FUNCTION 'RS_DD_DELETE_OBJ' EXPORTING no_ask = abap_true objname = lv_objname objtype = 'D' * no_ask_delete_append = abap_true parameter not available in lower NW versions EXCEPTIONS not_executed = 1 object_not_found = 2 object_not_specified = 3 permission_failure = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from RS_DD_DELETE_OBJ, DOMA' ). ENDIF. ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~deserialize. * package SEDD * package SDIC * fm TR_TADIR_INTERFACE * fm RS_CORR_INSERT ? DATA: lv_name TYPE ddobjname, ls_dd01v TYPE dd01v, lt_dd07v TYPE TABLE OF dd07v. io_xml->read( EXPORTING iv_name = 'DD01V' CHANGING cg_data = ls_dd01v ). io_xml->read( EXPORTING iv_name = 'DD07V_TAB' CHANGING cg_data = lt_dd07v ). corr_insert( iv_package ). lv_name = ms_item-obj_name. " type conversion CALL FUNCTION 'DDIF_DOMA_PUT' EXPORTING name = lv_name dd01v_wa = ls_dd01v TABLES dd07v_tab = lt_dd07v EXCEPTIONS doma_not_found = 1 name_inconsistent = 2 doma_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from DDIF_DOMA_PUT' ). ENDIF. deserialize_texts( io_xml = io_xml is_dd01v = ls_dd01v it_dd07v = lt_dd07v ). zcl_abapgit_objects_activation=>add_item( ms_item ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_domname TYPE dd01l-domname. SELECT SINGLE domname FROM dd01l INTO lv_domname WHERE domname = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). rs_metadata-ddic = abap_true. ENDMETHOD. METHOD zif_abapgit_object~has_changed_since. DATA: lv_date TYPE dats, lv_time TYPE tims. SELECT SINGLE as4date as4time FROM dd01l INTO (lv_date, lv_time) WHERE domname = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. rv_changed = check_timestamp( iv_timestamp = iv_timestamp iv_date = lv_date iv_time = lv_time ). ENDMETHOD. METHOD zif_abapgit_object~jump. jump_se11( iv_radio = 'RSRD1-DOMA' iv_field = 'RSRD1-DOMA_VAL' ). ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_name TYPE ddobjname, ls_dd01v TYPE dd01v, lv_masklen TYPE c LENGTH 4, lt_dd07v TYPE TABLE OF dd07v. lv_name = ms_item-obj_name. CALL FUNCTION 'DDIF_DOMA_GET' EXPORTING name = lv_name langu = mv_language IMPORTING dd01v_wa = ls_dd01v TABLES dd07v_tab = lt_dd07v EXCEPTIONS illegal_input = 1 OTHERS = 2. IF sy-subrc <> 0 OR ls_dd01v IS INITIAL. zcx_abapgit_exception=>raise( 'error from DDIF_DOMA_GET' ). ENDIF. CLEAR: ls_dd01v-as4user, ls_dd01v-as4date, ls_dd01v-as4time. * make sure XML serialization does not dump if the field contains invalid data * note that this is a N field, so '' is not valid IF ls_dd01v-authclass = ''. CLEAR ls_dd01v-authclass. ENDIF. lv_masklen = ls_dd01v-masklen. IF lv_masklen = '' OR NOT lv_masklen CO '0123456789'. CLEAR ls_dd01v-masklen. ENDIF. SORT lt_dd07v BY valpos ASCENDING ddlanguage ASCENDING. io_xml->add( iv_name = 'DD01V' ig_data = ls_dd01v ). io_xml->add( iv_name = 'DD07V_TAB' ig_data = lt_dd07v ). serialize_texts( io_xml ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'ESDICT' iv_argument = |{ ms_item-obj_type }{ ms_item-obj_name }| ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 3438, 64, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 1860, 486, 62, 5239, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49427, 16129, 41876, 49427, 486, 85, 12, 1860, 16129, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49427, 5239, 220, 220, 220, 220, 41876, 49427, 486, 85, 12, 1860, 5239, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 1860, 486, 62, 5239, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 1860, 2998, 62, 5239, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1188, 1930, 220, 220, 220, 220, 41876, 49427, 2998, 85, 12, 2100, 1930, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49427, 16129, 41876, 49427, 2998, 85, 12, 1860, 16129, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2401, 8367, 62, 75, 41876, 49427, 2998, 85, 12, 3438, 8367, 62, 75, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2401, 8367, 62, 71, 41876, 49427, 2998, 85, 12, 3438, 8367, 62, 71, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49427, 5239, 220, 220, 220, 220, 41876, 49427, 2998, 85, 12, 1860, 5239, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2401, 2100, 62, 335, 220, 41876, 49427, 2998, 85, 12, 3438, 2100, 62, 335, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2401, 2100, 62, 31298, 220, 41876, 49427, 2998, 85, 12, 3438, 2100, 62, 31298, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 1860, 2998, 62, 5239, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 83, 62, 1860, 486, 62, 5239, 82, 41876, 49053, 9795, 43679, 3963, 1259, 62, 1860, 486, 62, 5239, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 83, 62, 1860, 2998, 62, 5239, 82, 41876, 49053, 9795, 43679, 3963, 1259, 62, 1860, 2998, 62, 5239, 82, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 11389, 1096, 62, 5239, 82, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 33245, 62, 19875, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 19875, 62, 22915, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 748, 48499, 1096, 62, 5239, 82, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 33245, 62, 19875, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 19875, 62, 15414, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 1860, 486, 85, 41876, 49427, 486, 85, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 1860, 2998, 85, 41876, 49427, 2998, 85, 62, 8658, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 3438, 64, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 748, 48499, 1096, 62, 5239, 82, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 3672, 220, 220, 220, 220, 220, 220, 41876, 49427, 26801, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 1860, 486, 85, 62, 22065, 220, 41876, 49427, 486, 85, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 1860, 2998, 85, 62, 22065, 220, 41876, 43679, 3963, 49427, 2998, 85, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 72, 1507, 77, 62, 17204, 82, 41876, 43679, 3963, 2786, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 1860, 486, 62, 5239, 82, 41876, 256, 83, 62, 1860, 486, 62, 5239, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 1860, 2998, 62, 5239, 82, 41876, 256, 83, 62, 1860, 2998, 62, 5239, 82, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 6780, 62, 17204, 29, 220, 220, 220, 220, 220, 34178, 48920, 3963, 300, 83, 62, 72, 1507, 77, 62, 17204, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 1860, 2998, 85, 29, 220, 220, 220, 220, 34178, 48920, 3963, 340, 62, 1860, 2998, 85, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 1860, 486, 62, 5239, 29, 34178, 48920, 3963, 300, 83, 62, 1860, 486, 62, 5239, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 1860, 2998, 62, 5239, 29, 34178, 48920, 3963, 300, 83, 62, 1860, 2998, 62, 5239, 82, 13, 628, 220, 220, 220, 300, 85, 62, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 33245 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_al30_ui5_transport_order DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. TYPES: BEGIN OF ts_user_orders, order TYPE trkorr, user TYPE uname, description TYPE bsstring, END OF ts_user_orders. TYPES tt_user_orders TYPE STANDARD TABLE OF ts_user_orders. "! <p class="shorttext synchronized">CONSTRUCTOR</p> METHODS constructor IMPORTING !iv_langu TYPE sylangu DEFAULT sy-langu. "! <p class="shorttext synchronized">Get user orders</p> "! @parameter iv_user | <p class="shorttext synchronized">User</p> "! @parameter et_orders | <p class="shorttext synchronized">Orders of user</p> METHODS get_user_orders IMPORTING !iv_user TYPE syuname DEFAULT sy-uname EXPORTING !et_orders TYPE tt_user_orders. PROTECTED SECTION. DATA mv_langu TYPE sy-langu. "! <p class="shorttext synchronized">Fill selection orders</p> "! Some options do not apply to the application, but are left for the future "! @parameter iv_type_workbench | <p class="shorttext synchronized">Workbench type order</p> "! @parameter iv_type_customizing | <p class="shorttext synchronized">Customizingc</p> "! @parameter iv_type_transport | <p class="shorttext synchronized">Transport copies type order</p> "! @parameter iv_status_modif | <p class="shorttext synchronized">Modifiable order</p> "! @parameter iv_status_rele | <p class="shorttext synchronized">Released order</p> "! @parameter rt_selections | <p class="shorttext synchronized">Selections table</p> METHODS fill_selections_orders IMPORTING !iv_type_workbench TYPE sap_bool DEFAULT abap_true !iv_type_customizing TYPE sap_bool DEFAULT abap_false !iv_type_transport TYPE sap_bool DEFAULT abap_false !iv_status_modif TYPE sap_bool DEFAULT abap_true !iv_status_rele TYPE sap_bool DEFAULT abap_false RETURNING VALUE(rt_selections) TYPE trwbo_selection . PRIVATE SECTION. ENDCLASS. CLASS zcl_al30_ui5_transport_order IMPLEMENTATION. METHOD get_user_orders. DATA lt_request TYPE trwbo_request_headers. CLEAR: et_orders. " Carga de los filtros para buscar las ordenes DATA(ls_selection) = fill_selections_orders( ). " Lectura de las ordenes CALL FUNCTION 'TRINT_SELECT_REQUESTS' EXPORTING iv_username_pattern = iv_user is_selection = ls_selection iv_complete_projects = 'X' IMPORTING et_requests = lt_request. " Solo se leen las ordenes padre et_orders = VALUE #( FOR <wa> IN lt_request WHERE ( strkorr IS INITIAL ) ( user = <wa>-as4user order = <wa>-trkorr description = <wa>-as4text ) ). ENDMETHOD. METHOD fill_selections_orders. CLEAR rt_selections. IF iv_type_workbench = abap_true. rt_selections-reqfunctions(1) = sctsc_type_workbench. ENDIF. IF iv_type_customizing = abap_true. rt_selections-reqfunctions+1(1) = sctsc_type_customizing. ENDIF. IF iv_type_transport = abap_true. rt_selections-reqfunctions+2(1) = sctsc_type_transport. ENDIF. * Types of assigned tasks rt_selections-taskfunctions = sctsc_types_tasks. * Status para ordenes modificables IF iv_status_modif = abap_true. rt_selections-taskstatus(1) = sctsc_state_protected. rt_selections-taskstatus+1(1) = sctsc_state_changeable. ENDIF. * Status para ordenes liberadas IF iv_status_rele = abap_true. rt_selections-taskstatus+2(1) = sctsc_state_released. rt_selections-taskstatus+3(1) = sctsc_state_notconfirmed. ENDIF. IF iv_status_modif = abap_true AND iv_status_rele = abap_false. rt_selections-reqstatus(1) = sctsc_state_protected. rt_selections-reqstatus+1(1) = sctsc_state_changeable. * r_selections-reqstatus+2(1) = sctsc_state_export_started. ELSEIF iv_status_modif = abap_false AND iv_status_rele = abap_true. rt_selections-reqstatus(1) = sctsc_state_released. rt_selections-reqstatus+1(1) = sctsc_state_export_started. ELSEIF iv_status_modif = abap_true AND iv_status_rele = abap_true. rt_selections-reqstatus = sctsc_states_all. ENDIF. ENDMETHOD. METHOD constructor. mv_langu = iv_langu. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 282, 1270, 62, 9019, 20, 62, 7645, 634, 62, 2875, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 40379, 62, 7220, 62, 6361, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1502, 220, 220, 220, 220, 220, 220, 41876, 491, 74, 38890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 220, 220, 220, 220, 220, 220, 220, 41876, 555, 480, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6764, 41876, 275, 82, 8841, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 40379, 62, 7220, 62, 6361, 13, 198, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 7220, 62, 6361, 41876, 49053, 9795, 43679, 3963, 40379, 62, 7220, 62, 6361, 13, 628, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 5320, 10943, 46126, 1581, 3556, 79, 29, 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, 75, 2303, 41876, 827, 75, 2303, 5550, 38865, 827, 12, 75, 2303, 13, 628, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 5320, 3855, 2836, 6266, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 7220, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 5320, 12982, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 2123, 62, 6361, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 5320, 35422, 364, 286, 2836, 3556, 79, 29, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 7220, 62, 6361, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 7220, 220, 220, 41876, 827, 403, 480, 5550, 38865, 827, 12, 403, 480, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 316, 62, 6361, 41876, 256, 83, 62, 7220, 62, 6361, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 42865, 285, 85, 62, 75, 2303, 41876, 827, 12, 75, 2303, 13, 628, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 5320, 33762, 6356, 6266, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 2773, 3689, 466, 407, 4174, 284, 262, 3586, 11, 475, 389, 1364, 329, 262, 2003, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 4906, 62, 1818, 26968, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 5320, 12468, 26968, 2099, 1502, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 4906, 62, 23144, 2890, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 5320, 15022, 2890, 66, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 4906, 62, 7645, 634, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 5320, 8291, 634, 9088, 2099, 1502, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 13376, 62, 4666, 361, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 5320, 5841, 16823, 1502, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 13376, 62, 260, 293, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 5320, 45037, 1502, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 374, 83, 62, 19738, 507, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 5320, 17563, 507, 3084, 3556, 79, 29, 198, 220, 220, 220, 337, 36252, 50, 6070, 62, 19738, 507, 62, 6361, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 4906, 62, 1818, 26968, 220, 220, 41876, 31841, 62, 30388, 5550, 38865, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 4906, 62, 23144, 2890, 41876, 31841, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 4906, 62, 7645, 634, 220, 220, 41876, 31841, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 13376, 62, 4666, 361, 220, 220, 220, 220, 41876, 31841, 62, 30388, 5550, 38865, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 13376, 62, 260, 293, 220, 220, 220, 220, 220, 41876, 31841, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 19738, 507, 8, 41876, 491, 86, 2127, 62, 49283, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 282, 1270, 62, 9019, 20, 62, 7645, 634, 62, 2875, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 651, 62, 7220, 62, 6361, 13, 198, 220, 220, 220, 42865, 300, 83, 62, 25927, 41876, 491, 86, 2127, 62, 25927, 62, 50145, 13, 628, 220, 220, 220, 30301, 1503, 25, 2123, 62, 6361, 13, 628, 220, 220, 220, 366, 327, 853, 64, 390, 22346, 1226, 83, 4951, 31215, 1323, 7718, 39990, 2760, 18719, 198, 220, 220, 220, 42865, 7, 7278, 62, 49283, 8, 796, 6070, 62, 19738, 507, 62, 6361, 7, 220, 6739, 628, 220, 220, 220, 366, 31209, 5330, 390, 39990, 2760, 18719, 198, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 5446, 12394, 62, 46506, 62, 2200, 10917, 1546, 4694, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 29460, 62, 33279, 220, 796, 21628, 62, 7220, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 49283, 220, 220, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 49283, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 20751, 62, 42068, 796, 705, 55, 6, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_abapgit_object_sfbs DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. PROTECTED SECTION. PRIVATE SECTION. METHODS: get RETURNING VALUE(ro_bfs) TYPE REF TO cl_sfw_bfs RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_object_sfbs IMPLEMENTATION. METHOD get. DATA: lv_bfset TYPE sfw_bset. lv_bfset = ms_item-obj_name. TRY. ro_bfs = cl_sfw_bfs=>get_bfs( lv_bfset ). ro_bfs->free( ). ro_bfs = cl_sfw_bfs=>get_bfs( lv_bfset ). CATCH cx_pak_invalid_data cx_pak_invalid_state cx_pak_not_authorized. zcx_abapgit_exception=>raise( 'Error from CL_SFW_BFS=>GET_BFS' ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~changed_by. DATA: ls_data TYPE sfw_bs. ls_data = get( )->get_header_data( ). rv_user = ls_data-changedby. IF rv_user IS INITIAL. rv_user = ls_data-author. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_bfset TYPE sfw_bset, lt_delete TYPE sfw_bstab, lt_msgtab TYPE sprot_u_tab. lv_bfset = ms_item-obj_name. APPEND lv_bfset TO lt_delete. cl_sfw_activate=>delete_sfbs( EXPORTING p_bsets = lt_delete IMPORTING p_msgtab = lt_msgtab ). READ TABLE lt_msgtab WITH KEY severity = 'E' TRANSPORTING NO FIELDS. IF sy-subrc = 0. zcx_abapgit_exception=>raise( 'Error deleting SFBS' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lv_bfset TYPE sfw_bset, lo_bfs TYPE REF TO cl_sfw_bfs, ls_header TYPE sfw_bs, lv_name_32 TYPE sfw_name32, lv_name_80 TYPE sfw_name80, lt_assigned_bf TYPE sfw_bfbs_outtab, lt_nested_bfs TYPE sfw_bsbs_outtab, lt_parent_bfs TYPE sfw_bs_bs_parent_outtab. io_xml->read( EXPORTING iv_name = 'HEADER' CHANGING cg_data = ls_header ). io_xml->read( EXPORTING iv_name = 'NAME32' CHANGING cg_data = lv_name_32 ). io_xml->read( EXPORTING iv_name = 'NAME80' CHANGING cg_data = lv_name_80 ). io_xml->read( EXPORTING iv_name = 'ASSIGNED_BF' CHANGING cg_data = lt_assigned_bf ). io_xml->read( EXPORTING iv_name = 'NESTED_BFS' CHANGING cg_data = lt_nested_bfs ). io_xml->read( EXPORTING iv_name = 'PARENT_BFS' CHANGING cg_data = lt_parent_bfs ). lv_bfset = ms_item-obj_name. TRY. lo_bfs = cl_sfw_bfs=>create_bfs( lv_bfset ). CATCH cx_pak_not_authorized cx_pak_invalid_state cx_pak_invalid_data. zcx_abapgit_exception=>raise( 'error in CL_SFW_BFS=>CREATE_BFS' ). ENDTRY. ls_header-author = sy-uname. ls_header-createdon = sy-datum. lo_bfs->set_header_data( ls_header ). lo_bfs->set_texts( p_32 = lv_name_32 p_80 = lv_name_80 ). lo_bfs->set_assigned_bf( lt_assigned_bf ). lo_bfs->set_assigned_bfs( lt_nested_bfs ). lo_bfs->set_nested_parent( lt_parent_bfs ). set_default_package( iv_package ). tadir_insert( iv_package ). lo_bfs->save_all( ). zcl_abapgit_objects_activation=>add_item( ms_item ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: ls_tadir TYPE tadir, lv_bfset TYPE sfw_bset. lv_bfset = ms_item-obj_name. IF cl_sfw_bfs=>check_existence( lv_bfset ) = abap_false. RETURN. ENDIF. SELECT SINGLE * FROM tadir INTO ls_tadir WHERE pgmid = 'R3TR' AND object = ms_item-obj_type AND obj_name = ms_item-obj_name. IF ls_tadir IS INITIAL. RETURN. ENDIF. rv_bool = abap_true. ENDMETHOD. METHOD zif_abapgit_object~get_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-ddic = abap_true. 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. " Covered by ZCL_ABAPGIT_OBJECTS=>JUMP ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lo_bfs TYPE REF TO cl_sfw_bfs, ls_header TYPE sfw_bs, lv_name_32 TYPE sfw_name32, lv_name_80 TYPE sfw_name80, lt_assigned_bf TYPE sfw_bfbs_outtab, lt_nested_bfs TYPE sfw_bsbs_outtab, lt_parent_bfs TYPE sfw_bs_bs_parent_outtab. IF zif_abapgit_object~exists( ) = abap_false. RETURN. ENDIF. lo_bfs = get( ). ls_header = lo_bfs->get_header_data( ). CLEAR: ls_header-author, ls_header-createdon, ls_header-changedby, ls_header-changedon, ls_header-timestamp. lo_bfs->get_texts( IMPORTING p_32 = lv_name_32 p_80 = lv_name_80 ). lt_assigned_bf = lo_bfs->get_assigned_bf( ). lt_nested_bfs = lo_bfs->get_nested_bfs( ). lt_parent_bfs = lo_bfs->get_nested_parent( ). io_xml->add( ig_data = ls_header iv_name = 'HEADER' ). io_xml->add( ig_data = lv_name_32 iv_name = 'NAME32' ). io_xml->add( ig_data = lv_name_80 iv_name = 'NAME80' ). io_xml->add( ig_data = lt_assigned_bf iv_name = 'ASSIGNED_BF' ). io_xml->add( ig_data = lt_nested_bfs iv_name = 'NESTED_BFS' ). io_xml->add( ig_data = lt_parent_bfs iv_name = 'PARENT_BFS' ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 28202, 1443, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 628, 220, 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, 651, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 65, 9501, 8, 41876, 4526, 37, 5390, 537, 62, 28202, 86, 62, 65, 9501, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 28202, 1443, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 651, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 19881, 2617, 41876, 264, 44482, 62, 1443, 316, 13, 628, 198, 220, 220, 220, 300, 85, 62, 19881, 2617, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 686, 62, 65, 9501, 796, 537, 62, 28202, 86, 62, 65, 9501, 14804, 1136, 62, 65, 9501, 7, 300, 85, 62, 19881, 2617, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 686, 62, 65, 9501, 3784, 5787, 7, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 686, 62, 65, 9501, 796, 537, 62, 28202, 86, 62, 65, 9501, 14804, 1136, 62, 65, 9501, 7, 300, 85, 62, 19881, 2617, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 41091, 62, 259, 12102, 62, 7890, 43213, 62, 41091, 62, 259, 12102, 62, 5219, 43213, 62, 41091, 62, 1662, 62, 19721, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 12331, 422, 7852, 62, 20802, 54, 62, 33, 10652, 14804, 18851, 62, 33, 10652, 6, 6739, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 7890, 41876, 264, 44482, 62, 1443, 13, 628, 220, 220, 220, 43979, 62, 7890, 796, 651, 7, 1267, 3784, 1136, 62, 25677, 62, 7890, 7, 6739, 628, 220, 220, 220, 374, 85, 62, 7220, 796, 43979, 62, 7890, 12, 40985, 1525, 13, 628, 220, 220, 220, 16876, 374, 85, 62, 7220, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 374, 85, 62, 7220, 796, 43979, 62, 7890, 12, 9800, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 33678, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 19881, 2617, 220, 41876, 264, 44482, 62, 1443, 316, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 33678, 41876, 264, 44482, 62, 65, 39029, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 19662, 8658, 41876, 599, 10599, 62, 84, 62, 8658, 13, 628, 198, 220, 220, 220, 300, 85, 62, 19881, 2617, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 198, 220, 220, 220, 43504, 10619, 300, 85, 62, 19881, 2617, 5390, 300, 83, 62, 33678, 13, 628, 220, 220, 220, 537, 62, 28202, 86, 62, 39022, 14804, 33678, 62, 28202, 1443, 7, 7788, 15490, 2751, 279, 62, 1443, 1039, 796, 300, 83, 62, 33678, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 279, 62, 19662, 8658, 796, 300, 83, 62, 19662, 8658, 6739, 628, 220, 220, 220, 20832, 43679, 300, 83, 62, 19662, 8658, 13315, 35374, 19440, 796, 705, 36, 6, 48213, 4303, 9863, 2751, 8005, 18930, 3698, 5258, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 12331, 34817, 14362, 4462, 6, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 8906, 48499, 1096, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 19881, 2617, 220, 220, 220, 220, 220, 220, 41876, 264, 44482, 62, 1443, 316, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 65, 9501, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 28202, 86, 62, 65, 9501, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 25677, 220, 220, 220, 220, 220, 41876, 264, 44482, 62, 1443, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 3672, 62, 2624, 220, 220, 220, 220, 41876, 264, 44482, 62, 3672, 2624, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 3672, 62, 1795, 220, 220, 220, 220, 41876, 264, 44482, 62, 3672, 1795, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 562, 3916, 62, 19881, 41876, 264, 44482, 62, 19881, 1443, 62, 448, 8658, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 77, 7287, 62, 65, 9501, 220, 41876, 264, 44482, 62, 1443, 1443, 62, 448, 8658, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 8000, 62, 65, 9501, 220, 41876, 264, 44482, 62, 1443, 62, 1443, 62, 8000, 62, 448, 8658, 13, 628, 198, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 37682, 1137, 6, 198, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_branch_overview DEFINITION PUBLIC FINAL CREATE PRIVATE GLOBAL FRIENDS zcl_abapgit_factory . PUBLIC SECTION. INTERFACES zif_abapgit_branch_overview . CONSTANTS c_deleted_branch_name_prefix TYPE string VALUE '__DELETED_BRANCH_' ##NO_TEXT. METHODS constructor IMPORTING io_repo TYPE REF TO zcl_abapgit_repo_online RAISING zcx_abapgit_exception . PROTECTED SECTION. PRIVATE SECTION. TYPES: ty_commit_sha1_range TYPE RANGE OF zif_abapgit_definitions=>ty_sha1 . DATA mt_branches TYPE zif_abapgit_definitions=>ty_git_branch_list_tt . DATA mt_commits TYPE zif_abapgit_definitions=>ty_commit_tt . DATA mt_tags TYPE zif_abapgit_definitions=>ty_git_tag_list_tt . METHODS compress_internal IMPORTING !iv_name TYPE string CHANGING !ct_temp TYPE zif_abapgit_definitions=>ty_commit_tt !ct_commits TYPE zif_abapgit_definitions=>ty_commit_tt . CLASS-METHODS parse_commits IMPORTING !it_objects TYPE zif_abapgit_definitions=>ty_objects_tt RETURNING VALUE(rt_commits) TYPE zif_abapgit_definitions=>ty_commit_tt RAISING zcx_abapgit_exception . METHODS parse_annotated_tags IMPORTING !it_objects TYPE zif_abapgit_definitions=>ty_objects_tt RAISING zcx_abapgit_exception . METHODS determine_branch RAISING zcx_abapgit_exception . METHODS determine_merges RAISING zcx_abapgit_exception . METHODS fixes RAISING zcx_abapgit_exception . METHODS get_git_objects IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo_online RETURNING VALUE(rt_objects) TYPE zif_abapgit_definitions=>ty_objects_tt RAISING zcx_abapgit_exception . METHODS determine_tags RAISING zcx_abapgit_exception . METHODS _sort_commits CHANGING !ct_commits TYPE zif_abapgit_definitions=>ty_commit_tt . METHODS _get_1st_child_commit IMPORTING !it_commit_sha1s TYPE ty_commit_sha1_range EXPORTING !et_commit_sha1s TYPE ty_commit_sha1_range !es_1st_commit TYPE zif_abapgit_definitions=>ty_commit CHANGING !ct_commits TYPE zif_abapgit_definitions=>ty_commit_tt . METHODS _reverse_sort_order CHANGING !ct_commits TYPE zif_abapgit_definitions=>ty_commit_tt . ENDCLASS. CLASS ZCL_ABAPGIT_BRANCH_OVERVIEW IMPLEMENTATION. METHOD compress_internal. FIELD-SYMBOLS: <ls_temp> LIKE LINE OF ct_temp, <ls_new> LIKE LINE OF ct_commits, <ls_temp_end> LIKE LINE OF ct_temp. IF lines( ct_temp ) >= 10. READ TABLE ct_temp ASSIGNING <ls_temp> INDEX 1. ASSERT sy-subrc = 0. READ TABLE ct_temp ASSIGNING <ls_temp_end> INDEX lines( ct_temp ). ASSERT sy-subrc = 0. APPEND INITIAL LINE TO ct_commits ASSIGNING <ls_new>. <ls_new>-sha1 = <ls_temp_end>-sha1. <ls_new>-parent1 = <ls_temp>-parent1. <ls_new>-time = <ls_temp>-time. <ls_new>-message = |Compressed, { lines( ct_temp ) } commits|. <ls_new>-branch = iv_name. <ls_new>-compressed = abap_true. ELSE. APPEND LINES OF ct_temp TO ct_commits. ENDIF. CLEAR ct_temp. ENDMETHOD. METHOD constructor. DATA: lt_objects TYPE zif_abapgit_definitions=>ty_objects_tt. lt_objects = get_git_objects( io_repo ). mt_commits = parse_commits( lt_objects ). _sort_commits( CHANGING ct_commits = mt_commits ). parse_annotated_tags( lt_objects ). CLEAR lt_objects. determine_branch( ). determine_merges( ). determine_tags( ). fixes( ). ENDMETHOD. METHOD determine_branch. CONSTANTS: lc_head TYPE string VALUE 'HEAD'. TYPES: BEGIN OF ty_branch_with_time, time TYPE string, name TYPE string, sha1 TYPE zif_abapgit_definitions=>ty_sha1, END OF ty_branch_with_time. DATA: lt_branches_sorted_by_time TYPE SORTED TABLE OF ty_branch_with_time WITH NON-UNIQUE KEY time, ls_branches_with_time TYPE ty_branch_with_time. FIELD-SYMBOLS: <ls_branch> LIKE LINE OF mt_branches, <ls_branch_sorted_by_time> LIKE LINE OF lt_branches_sorted_by_time, <ls_head> LIKE LINE OF mt_branches, <ls_commit> LIKE LINE OF mt_commits, <ls_create> LIKE LINE OF <ls_commit>-create. * Exchange HEAD, and make sure the branch determination starts with the HEAD branch READ TABLE mt_branches ASSIGNING <ls_head> WITH KEY name = lc_head. ASSERT sy-subrc = 0. LOOP AT mt_branches ASSIGNING <ls_branch> WHERE sha1 = <ls_head>-sha1 AND name <> lc_head. <ls_head>-name = <ls_branch>-name. DELETE mt_branches INDEX sy-tabix. EXIT. ENDLOOP. * Sort Branches by Commit Time LOOP AT mt_branches ASSIGNING <ls_branch>. READ TABLE mt_commits ASSIGNING <ls_commit> WITH KEY sha1 = <ls_branch>-sha1. IF sy-subrc = 0. ls_branches_with_time-name = <ls_branch>-name+11. ls_branches_with_time-sha1 = <ls_branch>-sha1. IF <ls_branch>-is_head = abap_true. ls_branches_with_time-time = '0000000000'. "Force HEAD to be the first one ELSE. ls_branches_with_time-time = <ls_commit>-time. ENDIF. INSERT ls_branches_with_time INTO TABLE lt_branches_sorted_by_time. CLEAR ls_branches_with_time. ENDIF. ENDLOOP. LOOP AT lt_branches_sorted_by_time ASSIGNING <ls_branch_sorted_by_time>. READ TABLE mt_commits ASSIGNING <ls_commit> WITH KEY sha1 = <ls_branch_sorted_by_time>-sha1. ASSERT sy-subrc = 0. DO. IF <ls_commit>-branch IS INITIAL. <ls_commit>-branch = <ls_branch_sorted_by_time>-name. ELSE. APPEND INITIAL LINE TO <ls_commit>-create ASSIGNING <ls_create>. <ls_create>-name = <ls_branch_sorted_by_time>-name. <ls_create>-parent = <ls_commit>-branch. EXIT. ENDIF. IF <ls_commit>-parent1 IS INITIAL. EXIT. ELSE. READ TABLE mt_commits ASSIGNING <ls_commit> WITH KEY sha1 = <ls_commit>-parent1. ASSERT sy-subrc = 0. ENDIF. ENDDO. ENDLOOP. ENDMETHOD. METHOD determine_merges. DATA: BEGIN OF ls_deleted_branch_info, created TYPE abap_bool, index TYPE string, name TYPE string, END OF ls_deleted_branch_info. FIELD-SYMBOLS: <ls_merged_branch_commit> TYPE zif_abapgit_definitions=>ty_commit, <ls_merged_branch_parent> TYPE zif_abapgit_definitions=>ty_commit, <ls_commit> TYPE zif_abapgit_definitions=>ty_commit, <ls_create> TYPE zif_abapgit_definitions=>ty_create. * we need latest first here: latest -> initial _reverse_sort_order( CHANGING ct_commits = mt_commits ). LOOP AT mt_commits ASSIGNING <ls_commit> WHERE NOT parent2 IS INITIAL. ASSERT NOT <ls_commit>-branch IS INITIAL. READ TABLE mt_commits ASSIGNING <ls_merged_branch_commit> WITH KEY sha1 = <ls_commit>-parent2. IF sy-subrc = 0. <ls_commit>-merge = <ls_merged_branch_commit>-branch. * orphaned, branch has been deleted after merge ls_deleted_branch_info-created = abap_false. WHILE <ls_merged_branch_commit>-branch IS INITIAL. IF ls_deleted_branch_info-created = abap_false. ls_deleted_branch_info-created = abap_true. ls_deleted_branch_info-index = ls_deleted_branch_info-index + 1. ls_deleted_branch_info-name = c_deleted_branch_name_prefix && ls_deleted_branch_info-index && '__'. CONDENSE ls_deleted_branch_info-name NO-GAPS. <ls_commit>-merge = ls_deleted_branch_info-name. ENDIF. <ls_merged_branch_commit>-branch = ls_deleted_branch_info-name. READ TABLE mt_commits ASSIGNING <ls_merged_branch_parent> WITH KEY sha1 = <ls_merged_branch_commit>-parent1. IF sy-subrc <> 0. EXIT. ELSE. ASSIGN <ls_merged_branch_parent> TO <ls_merged_branch_commit>. ENDIF. ENDWHILE. IF <ls_merged_branch_parent> IS ASSIGNED. APPEND INITIAL LINE TO <ls_merged_branch_parent>-create ASSIGNING <ls_create>. <ls_create>-name = ls_deleted_branch_info-name. <ls_create>-parent = <ls_commit>-branch. ENDIF. ENDIF. ENDLOOP. " switch back to initial -> latest _reverse_sort_order( CHANGING ct_commits = mt_commits ). ENDMETHOD. METHOD determine_tags. DATA: lv_tag TYPE LINE OF zif_abapgit_definitions=>ty_commit-tags. FIELD-SYMBOLS: <ls_tag> LIKE LINE OF mt_tags, <ls_commit> LIKE LINE OF mt_commits. LOOP AT mt_tags ASSIGNING <ls_tag>. IF <ls_tag>-type = zif_abapgit_definitions=>c_git_branch_type-lightweight_tag. READ TABLE mt_commits WITH KEY sha1 = <ls_tag>-sha1 ASSIGNING <ls_commit>. "#EC CI_SUBRC ELSEIF <ls_tag>-type = zif_abapgit_definitions=>c_git_branch_type-annotated_tag. READ TABLE mt_commits WITH KEY sha1 = <ls_tag>-object ASSIGNING <ls_commit>. ENDIF. CHECK sy-subrc = 0. lv_tag = zcl_abapgit_git_tag=>remove_tag_prefix( <ls_tag>-name ). INSERT lv_tag INTO TABLE <ls_commit>-tags. ENDLOOP. ENDMETHOD. METHOD fixes. FIELD-SYMBOLS: <ls_commit> LIKE LINE OF mt_commits. LOOP AT mt_commits ASSIGNING <ls_commit> WHERE NOT merge IS INITIAL. * commits from old branches IF <ls_commit>-branch = <ls_commit>-merge. CLEAR <ls_commit>-merge. ENDIF. ENDLOOP. ENDMETHOD. METHOD get_git_objects. DATA: lo_branch_list TYPE REF TO zcl_abapgit_git_branch_list, li_progress TYPE REF TO zif_abapgit_progress, lt_branches_and_tags TYPE zif_abapgit_definitions=>ty_git_branch_list_tt, lt_tags TYPE zif_abapgit_definitions=>ty_git_branch_list_tt, ls_tag LIKE LINE OF mt_tags. FIELD-SYMBOLS: <ls_branch> LIKE LINE OF lt_tags. li_progress = zcl_abapgit_progress=>get_instance( 1 ). li_progress->show( iv_current = 1 iv_text = |Get git objects { io_repo->get_name( ) }| ). * get objects directly from git, mo_repo only contains a shallow clone of only * the selected branch "TODO refactor lo_branch_list = zcl_abapgit_git_transport=>branches( io_repo->get_url( ) ). mt_branches = lo_branch_list->get_branches_only( ). INSERT LINES OF mt_branches INTO TABLE lt_branches_and_tags. lt_tags = lo_branch_list->get_tags_only( ). INSERT LINES OF lt_tags INTO TABLE lt_branches_and_tags. LOOP AT lt_tags ASSIGNING <ls_branch>. IF <ls_branch>-name CP '*^{}'. CONTINUE. ENDIF. MOVE-CORRESPONDING <ls_branch> TO ls_tag. INSERT ls_tag INTO TABLE mt_tags. ENDLOOP. zcl_abapgit_git_transport=>upload_pack_by_branch( EXPORTING iv_url = io_repo->get_url( ) iv_branch_name = io_repo->get_branch_name( ) iv_deepen_level = 0 it_branches = lt_branches_and_tags IMPORTING et_objects = rt_objects ). DELETE rt_objects WHERE type = zif_abapgit_definitions=>c_type-blob. ENDMETHOD. METHOD parse_annotated_tags. DATA: ls_raw TYPE zcl_abapgit_git_pack=>ty_tag. FIELD-SYMBOLS: <ls_object> LIKE LINE OF it_objects, <ls_tag> LIKE LINE OF mt_tags. LOOP AT it_objects ASSIGNING <ls_object> USING KEY type WHERE type = zif_abapgit_definitions=>c_type-tag. ls_raw = zcl_abapgit_git_pack=>decode_tag( <ls_object>-data ). READ TABLE mt_tags ASSIGNING <ls_tag> WITH KEY sha1 = <ls_object>-sha1. ASSERT sy-subrc = 0. <ls_tag>-name = zif_abapgit_definitions=>c_git_branch-tags_prefix && ls_raw-tag. <ls_tag>-sha1 = <ls_object>-sha1. <ls_tag>-object = ls_raw-object. <ls_tag>-type = zif_abapgit_definitions=>c_git_branch_type-annotated_tag. <ls_tag>-display_name = ls_raw-tag. <ls_tag>-tagger_name = ls_raw-tagger_name. <ls_tag>-tagger_email = ls_raw-tagger_email. <ls_tag>-message = ls_raw-message. <ls_tag>-body = ls_raw-body. ENDLOOP. ENDMETHOD. METHOD parse_commits. DATA: ls_commit LIKE LINE OF mt_commits, lt_body TYPE STANDARD TABLE OF string WITH DEFAULT KEY, ls_raw TYPE zcl_abapgit_git_pack=>ty_commit. FIELD-SYMBOLS: <ls_object> LIKE LINE OF it_objects, <lv_body> TYPE string. LOOP AT it_objects ASSIGNING <ls_object> USING KEY type WHERE type = zif_abapgit_definitions=>c_type-commit. ls_raw = zcl_abapgit_git_pack=>decode_commit( <ls_object>-data ). CLEAR ls_commit. ls_commit-sha1 = <ls_object>-sha1. ls_commit-parent1 = ls_raw-parent. ls_commit-parent2 = ls_raw-parent2. SPLIT ls_raw-body AT zif_abapgit_definitions=>c_newline INTO TABLE lt_body. READ TABLE lt_body WITH KEY table_line = ' -----END PGP SIGNATURE-----' TRANSPORTING NO FIELDS. IF sy-subrc = 0. DELETE lt_body TO sy-tabix. DELETE lt_body TO 2. ENDIF. READ TABLE lt_body INDEX 1 INTO ls_commit-message. "#EC CI_SUBRC " The second line is always empty. Therefore we omit it. LOOP AT lt_body ASSIGNING <lv_body> FROM 3. INSERT <lv_body> INTO TABLE ls_commit-body. ENDLOOP. zcl_abapgit_utils=>extract_author_data( EXPORTING iv_author = ls_raw-author IMPORTING ev_author = ls_commit-author ev_email = ls_commit-email ev_time = ls_commit-time ). APPEND ls_commit TO rt_commits. ENDLOOP. ENDMETHOD. METHOD zif_abapgit_branch_overview~compress. DATA: lv_previous TYPE i, lv_index TYPE i, lv_name TYPE string, lt_temp LIKE it_commits. FIELD-SYMBOLS: <ls_branch> LIKE LINE OF mt_branches, <ls_commit> LIKE LINE OF it_commits. LOOP AT mt_branches ASSIGNING <ls_branch>. CLEAR lt_temp. lv_name = <ls_branch>-name+11. LOOP AT it_commits ASSIGNING <ls_commit> WHERE branch = lv_name. lv_index = sy-tabix. IF NOT <ls_commit>-merge IS INITIAL OR NOT <ls_commit>-create IS INITIAL. * always show these vertices lv_previous = -1. ENDIF. IF lv_previous + 1 <> sy-tabix. compress_internal( EXPORTING iv_name = lv_name CHANGING ct_temp = lt_temp ct_commits = rt_commits ). ENDIF. lv_previous = lv_index. APPEND <ls_commit> TO lt_temp. ENDLOOP. compress_internal( EXPORTING iv_name = lv_name CHANGING ct_temp = lt_temp ct_commits = rt_commits ). ENDLOOP. _sort_commits( CHANGING ct_commits = rt_commits ). ENDMETHOD. METHOD zif_abapgit_branch_overview~get_branches. rt_branches = mt_branches. ENDMETHOD. METHOD zif_abapgit_branch_overview~get_commits. rt_commits = mt_commits. ENDMETHOD. METHOD zif_abapgit_branch_overview~get_tags. rt_tags = mt_tags. ENDMETHOD. METHOD _get_1st_child_commit. DATA: lt_1stchild_commits TYPE zif_abapgit_definitions=>ty_commit_tt, ls_parent LIKE LINE OF it_commit_sha1s, lt_commit_sha1s LIKE it_commit_sha1s. FIELD-SYMBOLS: <ls_child_commit> TYPE zif_abapgit_definitions=>ty_commit. CLEAR: es_1st_commit. * get all reachable next commits lt_commit_sha1s = it_commit_sha1s. LOOP AT ct_commits ASSIGNING <ls_child_commit> WHERE parent1 IN lt_commit_sha1s OR parent2 IN lt_commit_sha1s. INSERT <ls_child_commit> INTO TABLE lt_1stchild_commits. ENDLOOP. * return oldest one SORT lt_1stchild_commits BY time ASCENDING. READ TABLE lt_1stchild_commits INTO es_1st_commit INDEX 1. * remove from available commits DELETE ct_commits WHERE sha1 = es_1st_commit-sha1. * set relevant parent commit sha1s IF lines( lt_1stchild_commits ) = 1. CLEAR et_commit_sha1s. ELSE. et_commit_sha1s = it_commit_sha1s. ENDIF. ls_parent-sign = 'I'. ls_parent-option = 'EQ'. ls_parent-low = es_1st_commit-sha1. INSERT ls_parent INTO TABLE et_commit_sha1s. ENDMETHOD. METHOD _reverse_sort_order. DATA: lt_commits TYPE zif_abapgit_definitions=>ty_commit_tt. FIELD-SYMBOLS: <ls_commit> TYPE zif_abapgit_definitions=>ty_commit. LOOP AT ct_commits ASSIGNING <ls_commit>. INSERT <ls_commit> INTO lt_commits INDEX 1. ENDLOOP. ct_commits = lt_commits. FREE lt_commits. ENDMETHOD. METHOD _sort_commits. DATA: lt_sorted_commits TYPE zif_abapgit_definitions=>ty_commit_tt, ls_next_commit TYPE zif_abapgit_definitions=>ty_commit, lt_parents TYPE ty_commit_sha1_range, ls_parent LIKE LINE OF lt_parents. FIELD-SYMBOLS: <ls_initial_commit> TYPE zif_abapgit_definitions=>ty_commit. * find initial commit READ TABLE ct_commits ASSIGNING <ls_initial_commit> WITH KEY parent1 = space. IF sy-subrc = 0. ls_parent-sign = 'I'. ls_parent-option = 'EQ'. ls_parent-low = <ls_initial_commit>-sha1. INSERT ls_parent INTO TABLE lt_parents. * first commit INSERT <ls_initial_commit> INTO TABLE lt_sorted_commits. * remove from available commits DELETE ct_commits WHERE sha1 = <ls_initial_commit>-sha1. DO. _get_1st_child_commit( EXPORTING it_commit_sha1s = lt_parents IMPORTING et_commit_sha1s = lt_parents es_1st_commit = ls_next_commit CHANGING ct_commits = ct_commits ). IF ls_next_commit IS INITIAL. EXIT. "DO ENDIF. INSERT ls_next_commit INTO TABLE lt_sorted_commits. ENDDO. ENDIF. ct_commits = lt_sorted_commits. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 1671, 3702, 62, 2502, 1177, 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, 69, 9548, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 1671, 3702, 62, 2502, 1177, 764, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 2934, 33342, 62, 1671, 3702, 62, 3672, 62, 40290, 41876, 4731, 26173, 8924, 705, 834, 7206, 28882, 1961, 62, 11473, 1565, 3398, 62, 6, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 260, 7501, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 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, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 41509, 62, 26270, 16, 62, 9521, 41876, 371, 27746, 3963, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 26270, 16, 764, 628, 220, 220, 220, 42865, 45079, 62, 1671, 12140, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 18300, 62, 1671, 3702, 62, 4868, 62, 926, 764, 198, 220, 220, 220, 42865, 45079, 62, 9503, 896, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 41509, 62, 926, 764, 198, 220, 220, 220, 42865, 45079, 62, 31499, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 18300, 62, 12985, 62, 4868, 62, 926, 764, 628, 220, 220, 220, 337, 36252, 50, 27413, 62, 32538, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3672, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 29510, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 41509, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 9503, 896, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 41509, 62, 926, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 21136, 62, 9503, 896, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 48205, 220, 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, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 9503, 896, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 41509, 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, 21136, 62, 34574, 515, 62, 31499, 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, 5004, 62, 1671, 3702, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 5004, 62, 647, 3212, 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, 13040, 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, 18300, 62, 48205, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 260, 7501, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 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, 5004, 62, 31499, 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, 4808, 30619, 62, 9503, 896, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 9503, 896, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 41509, 62, 926, 764, 198, 220, 220, 220, 337, 36252, 50, 4808, 1136, 62, 16, 301, 62, 9410, 62, 41509, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 41509, 62, 26270, 16, 82,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, 1, 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_patch DEFINITION PUBLIC INHERITING FROM zcl_abapgit_gui_page_diff CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_abapgit_gui_hotkeys. METHODS: constructor IMPORTING iv_key TYPE zif_abapgit_persistence=>ty_repo-key is_file TYPE zif_abapgit_definitions=>ty_file OPTIONAL is_object TYPE zif_abapgit_definitions=>ty_item OPTIONAL iv_patch_mode TYPE abap_bool OPTIONAL RAISING zcx_abapgit_exception, zif_abapgit_gui_event_handler~on_event REDEFINITION. CLASS-METHODS: get_patch_data IMPORTING iv_patch TYPE string EXPORTING ev_filename TYPE string ev_line_index TYPE string RAISING zcx_abapgit_exception. PROTECTED SECTION. METHODS: render_content REDEFINITION, add_menu_end REDEFINITION, add_menu_begin REDEFINITION, render_table_head_non_unified REDEFINITION, render_beacon_begin_of_row REDEFINITION, render_diff_head_after_state REDEFINITION, insert_nav REDEFINITION, render_line_split_row REDEFINITION. PRIVATE SECTION. TYPES: ty_patch_action TYPE string . CONSTANTS: BEGIN OF c_actions, stage TYPE string VALUE 'patch_stage', refresh TYPE string VALUE 'patch_refresh', refresh_local TYPE string VALUE 'patch_refresh_local', refresh_local_object TYPE string VALUE 'patch_refresh_local_object', END OF c_actions, BEGIN OF c_patch_action, add TYPE ty_patch_action VALUE 'add', remove TYPE ty_patch_action VALUE 'remove', END OF c_patch_action . DATA: mo_stage TYPE REF TO zcl_abapgit_stage, mv_section_count TYPE i, mv_pushed TYPE abap_bool, mo_repo_online TYPE REF TO zcl_abapgit_repo_online. METHODS: render_patch IMPORTING io_html TYPE REF TO zcl_abapgit_html iv_filename TYPE string is_diff_line TYPE zif_abapgit_definitions=>ty_diff iv_fstate TYPE char1 iv_index TYPE sy-tabix RAISING zcx_abapgit_exception, render_patch_head IMPORTING io_html TYPE REF TO zcl_abapgit_html is_diff TYPE ty_file_diff, start_staging IMPORTING it_postdata TYPE cnht_post_data_tab RAISING zcx_abapgit_exception, apply_patch_from_form_fields IMPORTING it_postdata TYPE cnht_post_data_tab RAISING zcx_abapgit_exception, restore_patch_flags IMPORTING it_diff_files_old TYPE tt_file_diff RAISING zcx_abapgit_exception, add_to_stage RAISING zcx_abapgit_exception, refresh IMPORTING iv_action TYPE clike RAISING zcx_abapgit_exception, refresh_full RAISING zcx_abapgit_exception, refresh_local RAISING zcx_abapgit_exception, refresh_local_object IMPORTING iv_action TYPE clike RAISING zcx_abapgit_exception, apply_patch_all IMPORTING iv_patch TYPE string iv_patch_flag TYPE abap_bool RAISING zcx_abapgit_exception, are_all_lines_patched IMPORTING it_diff TYPE zif_abapgit_definitions=>ty_diffs_tt RETURNING VALUE(rv_are_all_lines_patched) TYPE abap_bool, apply_patch_for IMPORTING iv_filename TYPE string iv_line_index TYPE string iv_patch_flag TYPE abap_bool RAISING zcx_abapgit_exception, get_diff_object IMPORTING iv_filename TYPE string RETURNING VALUE(ro_diff) TYPE REF TO zcl_abapgit_diff RAISING zcx_abapgit_exception, get_diff_line IMPORTING io_diff TYPE REF TO zcl_abapgit_diff iv_line_index TYPE string RETURNING VALUE(rs_diff) TYPE zif_abapgit_definitions=>ty_diff RAISING zcx_abapgit_exception, is_every_changed_line_patched RETURNING VALUE(rv_everything_patched) TYPE abap_bool. CLASS-METHODS: is_patch_line_possible IMPORTING is_diff_line TYPE zif_abapgit_definitions=>ty_diff iv_fstate TYPE char1 RETURNING VALUE(rv_is_patch_line_possible) TYPE abap_bool. METHODS render_scripts RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html RAISING zcx_abapgit_exception. ENDCLASS. CLASS ZCL_ABAPGIT_GUI_PAGE_PATCH IMPLEMENTATION. METHOD add_menu_begin. io_menu->add( iv_txt = |Refresh local| iv_typ = zif_abapgit_html=>c_action_type-dummy iv_act = c_actions-refresh_local iv_id = c_actions-refresh_local iv_title = |Refresh all local objects, without refreshing the remote| ). io_menu->add( iv_txt = |Refresh| iv_typ = zif_abapgit_html=>c_action_type-dummy iv_act = c_actions-refresh iv_id = c_actions-refresh iv_title = |Complete refresh of all objects, local and remote| ). ENDMETHOD. METHOD add_menu_end. io_menu->add( iv_txt = 'Stage' iv_act = c_actions-stage iv_id = 'stage' iv_typ = zif_abapgit_html=>c_action_type-dummy ) ##NO_TEXT. ENDMETHOD. METHOD add_to_stage. DATA: lt_diff TYPE zif_abapgit_definitions=>ty_diffs_tt, lv_something_patched TYPE abap_bool, ls_status TYPE zif_abapgit_definitions=>ty_result, lv_patch TYPE xstring, lo_git_add_patch TYPE REF TO zcl_abapgit_git_add_patch. FIELD-SYMBOLS: <ls_diff_file> TYPE ty_file_diff. LOOP AT mt_diff_files ASSIGNING <ls_diff_file>. IF <ls_diff_file>-o_diff IS NOT BOUND. " When we deal with binary files we don't have a diff object. " There's nothing to do because they cannot be patched CONTINUE. ENDIF. lt_diff = <ls_diff_file>-o_diff->get( ). READ TABLE lt_diff TRANSPORTING NO FIELDS WITH KEY patch_flag = abap_true. CHECK sy-subrc = 0. lv_something_patched = abap_true. CREATE OBJECT lo_git_add_patch EXPORTING it_diff = <ls_diff_file>-o_diff->get( ). lv_patch = lo_git_add_patch->get_patch_binary( ). IF <ls_diff_file>-lstate = 'D' AND are_all_lines_patched( lt_diff ) = abap_true. ls_status-lstate = zif_abapgit_definitions=>c_state-deleted. mo_stage->rm( iv_path = <ls_diff_file>-path is_status = ls_status iv_filename = <ls_diff_file>-filename ). ELSE. IF <ls_diff_file>-lstate = 'A' AND are_all_lines_patched( lt_diff ) = abap_true. ls_status-lstate = zif_abapgit_definitions=>c_state-added. ELSE. ls_status-lstate = zif_abapgit_definitions=>c_state-modified. ENDIF. mo_stage->add( iv_path = <ls_diff_file>-path iv_filename = <ls_diff_file>-filename is_status = ls_status iv_data = lv_patch ). ENDIF. ENDLOOP. IF lv_something_patched = abap_false. zcx_abapgit_exception=>raise( |Nothing added| ). ENDIF. ENDMETHOD. METHOD apply_patch_all. DATA: lv_filename TYPE string, lt_patch TYPE string_table, lv_line_index TYPE string. FIELD-SYMBOLS: <lv_patch> TYPE LINE OF string_table. SPLIT iv_patch AT ',' INTO TABLE lt_patch. LOOP AT lt_patch ASSIGNING <lv_patch>. get_patch_data( EXPORTING iv_patch = <lv_patch> IMPORTING ev_filename = lv_filename ev_line_index = lv_line_index ). apply_patch_for( iv_filename = lv_filename iv_line_index = lv_line_index iv_patch_flag = iv_patch_flag ). ENDLOOP. ENDMETHOD. METHOD apply_patch_for. DATA: lo_diff TYPE REF TO zcl_abapgit_diff, ls_diff_line TYPE zif_abapgit_definitions=>ty_diff, lv_line TYPE i. lo_diff = get_diff_object( iv_filename ). ls_diff_line = get_diff_line( io_diff = lo_diff iv_line_index = iv_line_index ). CASE ls_diff_line-result. WHEN zif_abapgit_definitions=>c_diff-update OR zif_abapgit_definitions=>c_diff-insert. lv_line = ls_diff_line-new_num. lo_diff->set_patch_new( iv_line_new = lv_line iv_patch_flag = iv_patch_flag ). WHEN zif_abapgit_definitions=>c_diff-delete. lv_line = ls_diff_line-old_num. lo_diff->set_patch_old( iv_line_old = lv_line iv_patch_flag = iv_patch_flag ). ENDCASE. ENDMETHOD. METHOD apply_patch_from_form_fields. DATA: lv_string TYPE string, lt_fields TYPE tihttpnvp, lv_add TYPE string, lv_remove TYPE string. CONCATENATE LINES OF it_postdata INTO lv_string. lt_fields = zcl_abapgit_html_action_utils=>parse_fields( lv_string ). zcl_abapgit_html_action_utils=>get_field( EXPORTING iv_name = c_patch_action-add it_field = lt_fields CHANGING cg_field = lv_add ). zcl_abapgit_html_action_utils=>get_field( EXPORTING iv_name = c_patch_action-remove it_field = lt_fields CHANGING cg_field = lv_remove ). apply_patch_all( iv_patch = lv_add iv_patch_flag = abap_true ). apply_patch_all( iv_patch = lv_remove iv_patch_flag = abap_false ). ENDMETHOD. METHOD are_all_lines_patched. DATA: lv_patch_count TYPE i. FIELD-SYMBOLS: <ls_diff> TYPE zif_abapgit_definitions=>ty_diff. LOOP AT it_diff ASSIGNING <ls_diff> WHERE patch_flag = abap_true. lv_patch_count = lv_patch_count + 1. ENDLOOP. rv_are_all_lines_patched = boolc( lv_patch_count = lines( it_diff ) ). ENDMETHOD. METHOD constructor. super->constructor( iv_key = iv_key is_file = is_file is_object = is_object ). IF mo_repo->is_offline( ) = abap_true. zcx_abapgit_exception=>raise( |Can't patch offline repos| ). ENDIF. mo_repo_online ?= mo_repo. " While patching we always want to be in split mode CLEAR: mv_unified. CREATE OBJECT mo_stage. ms_control-page_menu = build_menu( ). ENDMETHOD. METHOD get_diff_line. DATA: lt_diff TYPE zif_abapgit_definitions=>ty_diffs_tt, lv_line_index TYPE sy-tabix. lv_line_index = iv_line_index. lt_diff = io_diff->get( ). READ TABLE lt_diff INTO rs_diff INDEX lv_line_index. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Invalid line index { lv_line_index }| ). ENDIF. ENDMETHOD. METHOD get_diff_object. FIELD-SYMBOLS: <ls_diff_file> LIKE LINE OF mt_diff_files. LOOP AT mt_diff_files ASSIGNING <ls_diff_file>. IF get_normalized_fname_with_path( <ls_diff_file> ) = iv_filename. ro_diff = <ls_diff_file>-o_diff. EXIT. ENDIF. ENDLOOP. IF ro_diff IS NOT BOUND. zcx_abapgit_exception=>raise( |Invalid filename { iv_filename }| ). ENDIF. ENDMETHOD. METHOD get_patch_data. DATA: lv_section TYPE string. CLEAR: ev_filename, ev_line_index. FIND FIRST OCCURRENCE OF REGEX `patch_line` && `_(.*)_(\d)+_(\d+)` IN iv_patch SUBMATCHES ev_filename lv_section ev_line_index. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Invalid patch| ). ENDIF. ENDMETHOD. METHOD insert_nav. " add beacon at beginning of file rv_insert_nav = abap_true. ENDMETHOD. METHOD is_every_changed_line_patched. DATA: lt_diff TYPE zif_abapgit_definitions=>ty_diffs_tt. FIELD-SYMBOLS: <ls_diff_file> TYPE zcl_abapgit_gui_page_diff=>ty_file_diff, <ls_diff> TYPE zif_abapgit_definitions=>ty_diff. rv_everything_patched = abap_true. LOOP AT mt_diff_files ASSIGNING <ls_diff_file>. lt_diff = <ls_diff_file>-o_diff->get( ). LOOP AT lt_diff ASSIGNING <ls_diff> WHERE result IS NOT INITIAL AND patch_flag = abap_false. rv_everything_patched = abap_false. EXIT. ENDLOOP. IF sy-subrc = 0. EXIT. ENDIF. ENDLOOP. ENDMETHOD. METHOD is_patch_line_possible. IF is_diff_line-result = zif_abapgit_definitions=>c_diff-update OR is_diff_line-result = zif_abapgit_definitions=>c_diff-insert OR is_diff_line-result = zif_abapgit_definitions=>c_diff-delete. rv_is_patch_line_possible = abap_true. ENDIF. ENDMETHOD. METHOD refresh. DATA: lt_diff_files_old TYPE tt_file_diff. lt_diff_files_old = mt_diff_files. CASE iv_action. WHEN c_actions-refresh. refresh_full( ). WHEN c_actions-refresh_local. refresh_local( ). WHEN OTHERS. refresh_local_object( iv_action ). ENDCASE. calculate_diff( ). restore_patch_flags( lt_diff_files_old ). ENDMETHOD. METHOD refresh_full. mo_repo->refresh( abap_true ). ENDMETHOD. METHOD refresh_local. mo_repo->refresh_local_objects( ). ENDMETHOD. METHOD refresh_local_object. DATA: lv_regex TYPE string, lv_obj_type TYPE tadir-object, lv_obj_name TYPE tadir-obj_name. lv_regex = c_actions-refresh_local_object && `_(\w{4})_(.*)`. FIND FIRST OCCURRENCE OF REGEX lv_regex IN iv_action SUBMATCHES lv_obj_type lv_obj_name. IF sy-subrc = 0. mo_repo->refresh_local_object( iv_obj_type = lv_obj_type iv_obj_name = lv_obj_name ). ELSE. zcx_abapgit_exception=>raise( |Invalid refresh action { iv_action }| ). ENDIF. ENDMETHOD. METHOD render_beacon_begin_of_row. mv_section_count = mv_section_count + 1. io_html->add( |<th class="patch">| ). io_html->add_checkbox( iv_id = |patch_section_{ get_normalized_fname_with_path( is_diff ) }_{ mv_section_count }| ). io_html->add( '</th>' ). ENDMETHOD. METHOD render_content. CLEAR: mv_section_count. IF mv_pushed = abap_true. refresh_full( ). calculate_diff( ). CLEAR: mv_pushed. ENDIF. gui_services( )->get_hotkeys_ctl( )->register_hotkeys( me ). ro_html = super->render_content( ). register_deferred_script( render_scripts( ) ). ENDMETHOD. METHOD render_diff_head_after_state. DATA: lv_act_id TYPE string. IF is_diff-obj_type IS NOT INITIAL AND is_diff-obj_name IS NOT INITIAL. lv_act_id = |{ c_actions-refresh_local_object }_{ is_diff-obj_type }_{ is_diff-obj_name }|. io_html->add_a( iv_txt = |Refresh| iv_typ = zif_abapgit_html=>c_action_type-dummy iv_act = lv_act_id iv_id = lv_act_id iv_title = |Local refresh of this object| ). ENDIF. super->render_diff_head_after_state( io_html = io_html is_diff = is_diff ). ENDMETHOD. METHOD render_line_split_row. render_patch( io_html = io_html iv_filename = iv_filename is_diff_line = is_diff_line iv_fstate = iv_fstate iv_index = iv_index ). super->render_line_split_row( io_html = io_html iv_filename = iv_filename is_diff_line = is_diff_line iv_index = iv_index iv_fstate = iv_fstate iv_new = iv_new iv_old = iv_old ). ENDMETHOD. METHOD render_patch. CONSTANTS: BEGIN OF lc_css_class, patch TYPE string VALUE `patch` ##NO_TEXT, END OF lc_css_class. DATA: lv_id TYPE string, lv_patched TYPE abap_bool, lv_is_patch_possible TYPE abap_bool. lv_patched = get_diff_object( iv_filename )->is_line_patched( iv_index ). lv_is_patch_possible = is_patch_line_possible( is_diff_line = is_diff_line iv_fstate = iv_fstate ). IF lv_is_patch_possible = abap_true. lv_id = |{ iv_filename }_{ mv_section_count }_{ iv_index }|. io_html->add( |<td class="{ lc_css_class-patch }">| ). io_html->add_checkbox( iv_id = |patch_line_{ lv_id }| iv_checked = lv_patched ). io_html->add( |</td>| ). ELSE. io_html->add( |<td class="{ lc_css_class-patch }">| ). io_html->add( |</td>| ). ENDIF. ENDMETHOD. METHOD render_patch_head. io_html->add( |<th class="patch">| ). io_html->add_checkbox( iv_id = |patch_file_{ get_normalized_fname_with_path( is_diff ) }| ). io_html->add( '</th>' ). ENDMETHOD. METHOD render_scripts. CREATE OBJECT ro_html. ro_html->zif_abapgit_html~set_title( cl_abap_typedescr=>describe_by_object_ref( me )->get_relative_name( ) ). ro_html->add( 'preparePatch();' ). ro_html->add( 'registerStagePatch();' ). ENDMETHOD. METHOD render_table_head_non_unified. render_patch_head( io_html = io_html is_diff = is_diff ). super->render_table_head_non_unified( io_html = io_html is_diff = is_diff ). ENDMETHOD. METHOD restore_patch_flags. DATA: lt_diff_old TYPE zif_abapgit_definitions=>ty_diffs_tt. FIELD-SYMBOLS: <ls_diff_file> TYPE ty_file_diff, <ls_diff_file_old> TYPE ty_file_diff, <ls_diff_old> TYPE zif_abapgit_definitions=>ty_diff. LOOP AT mt_diff_files ASSIGNING <ls_diff_file>. READ TABLE it_diff_files_old ASSIGNING <ls_diff_file_old> WITH KEY secondary COMPONENTS path = <ls_diff_file>-path filename = <ls_diff_file>-filename. IF sy-subrc <> 0. CONTINUE. " e.g. new objects ENDIF. lt_diff_old = <ls_diff_file_old>-o_diff->get( ). LOOP AT lt_diff_old ASSIGNING <ls_diff_old> WHERE patch_flag = abap_true. <ls_diff_file>-o_diff->set_patch_by_old_diff( is_diff_old = <ls_diff_old> iv_patch_flag = abap_true ). ENDLOOP. ENDLOOP. ENDMETHOD. METHOD start_staging. apply_patch_from_form_fields( it_postdata ). add_to_stage( ). ENDMETHOD. METHOD zif_abapgit_gui_event_handler~on_event. CASE iv_action. WHEN c_actions-stage. start_staging( it_postdata ). CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_commit EXPORTING io_repo = mo_repo_online io_stage = mo_stage. ev_state = zcl_abapgit_gui=>c_event_state-new_page. WHEN OTHERS. FIND FIRST OCCURRENCE OF REGEX |^{ c_actions-refresh }| IN iv_action. IF sy-subrc = 0. apply_patch_from_form_fields( it_postdata ). refresh( iv_action ). ev_state = zcl_abapgit_gui=>c_event_state-re_render. ELSE. super->zif_abapgit_gui_event_handler~on_event( EXPORTING iv_action = iv_action iv_getdata = iv_getdata it_postdata = it_postdata IMPORTING ei_page = ei_page ev_state = ev_state ). ENDIF. ENDCASE. ENDMETHOD. METHOD zif_abapgit_gui_hotkeys~get_hotkey_actions. DATA: ls_hotkey_action LIKE LINE OF rt_hotkey_actions. ls_hotkey_action-ui_component = 'Patch'. ls_hotkey_action-description = |Stage changes|. ls_hotkey_action-action = |stagePatch|. ls_hotkey_action-hotkey = |s|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. ls_hotkey_action-description = |Refresh local|. ls_hotkey_action-action = |refreshLocal|. ls_hotkey_action-hotkey = |r|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 17147, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 26069, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 8940, 13083, 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, 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, 220, 220, 220, 220, 220, 220, 318, 62, 7753, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 7753, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 15252, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 17147, 62, 14171, 41876, 450, 499, 62, 30388, 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, 15596, 62, 30281, 93, 261, 62, 15596, 23848, 36, 20032, 17941, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 651, 62, 17147, 62, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 17147, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 819, 62, 34345, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 819, 62, 1370, 62, 9630, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 8543, 62, 11299, 23848, 36, 20032, 17941, 11, 198, 220, 220, 220, 220, 220, 751, 62, 26272, 62, 437, 23848, 36, 20032, 17941, 11, 198, 220, 220, 220, 220, 220, 751, 62, 26272, 62, 27471, 23848, 36, 20032, 17941, 11, 198, 220, 220, 220, 220, 220, 8543, 62, 11487, 62, 2256, 62, 13159, 62, 403, 1431, 23848, 36, 20032, 17941, 11, 198, 220, 220, 220, 220, 220, 8543, 62, 1350, 7807, 62, 27471, 62, 1659, 62, 808, 23848, 36, 20032, 17941, 11, 198, 220, 220, 220, 220, 220, 8543, 62, 26069, 62, 2256, 62, 8499, 62, 5219, 23848, 36, 20032, 17941, 11, 198, 220, 220, 220, 220, 220, 7550, 62, 28341, 23848, 36, 20032, 17941, 11, 198, 220, 220, 220, 220, 220, 8543, 62, 1370, 62, 35312, 62, 808, 23848, 36, 20032, 17941, 13, 628, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 17147, 62, 2673, 41876, 4731, 764, 628, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 17147, 62, 14247, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 14976, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 17147, 62, 5420, 3447, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 14976, 62, 12001, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 17147, 62, 5420, 3447, 62, 12001, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 14976, 62, 12001, 62, 15252, 41876, 4731, 26173, 8924, 705, 17147, 62, 5420, 3447, 62, 12001, 62, 15252, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 4658, 11, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 17147, 62, 2673, 11, 198, 220, 220, 220, 220, 220, 220, 220, 751, 220, 220, 220, 41876, 1259, 62, 17147, 62, 2673, 26173, 8924, 705, 2860, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 4781, 41876, 1259, 62, 17147, 62, 2673, 26173, 8924, 705, 28956, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 17147, 62, 2673, 764, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 6941, 62, 14247, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 14247, 11, 198, 220, 220, 220, 220, 220, 285, 85, 62, 5458, 62, 9127, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 285, 85, 62, 79, 7474, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 6941, 62, 260, 7501, 62, 25119, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 8543, 62, 17147, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 6494, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 34345, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 26069, 62, 1370, 41876, 1976, 361, 62, 397 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
class lcl_logger_settings_should definition deferred. class zcl_logger_settings definition local friends lcl_logger_settings_should. class lcl_logger_settings_should definition for testing risk level harmless duration short. private section. data cut type ref to zcl_logger_settings. methods setup. methods have_correct_defaults for testing. methods set_autosave for testing. methods set_expiry_date for testing. methods set_expiry_in_days for testing. methods set_flag_to_keep_until_expiry for testing. methods set_usage_of_2nd_db_connection for testing. methods set_max_drilldown_level for testing. endclass. class lcl_logger_settings_should implementation. method setup. create object cut. endmethod. method have_correct_defaults. cl_aunit_assert=>assert_equals( exporting exp = abap_true act = cut->zif_logger_settings~get_autosave( ) msg = |Auto save should be on by default| ). cl_aunit_assert=>assert_equals( exporting exp = abap_true act = cut->zif_logger_settings~get_usage_of_secondary_db_conn( ) msg = |2nd database connection should be used by default| ). cl_aunit_assert=>assert_equals( exporting exp = abap_false act = cut->zif_logger_settings~get_must_be_kept_until_expiry( ) msg = |Log should be deletable before expiry date is reached by default| ). cl_aunit_assert=>assert_initial( exporting act = cut->zif_logger_settings~get_expiry_date( ) msg = |No expiry date set by default| ). cl_aunit_assert=>assert_equals( exporting exp = 10 act = cut->zif_logger_settings~get_max_exception_drill_down( ) msg = |Max exception drill down should be 10 by default| ). endmethod. method set_autosave. cut->zif_logger_settings~set_autosave( abap_false ). cl_aunit_assert=>assert_equals( exporting exp = abap_false act = cut->zif_logger_settings~get_autosave( ) msg = |Auto save was not deactivated correctly| ). endmethod. method set_expiry_date. cut->zif_logger_settings~set_expiry_date( '20161030' ). cl_aunit_assert=>assert_equals( exporting exp = '20161030' act = cut->zif_logger_settings~get_expiry_date( ) msg = |Expiry date was not set correctly| ). endmethod. method set_expiry_in_days. cut->zif_logger_settings~set_expiry_in_days( -1 ). cl_aunit_assert=>assert_initial( exporting act = cut->zif_logger_settings~get_expiry_date( ) msg = |Expiry in days should remain default when setting incorrect values.| ). cut->zif_logger_settings~set_expiry_in_days( 10 ). data lv_exp type d. lv_exp = sy-datum + 10. cl_aunit_assert=>assert_equals( exporting exp = lv_exp act = cut->zif_logger_settings~get_expiry_date( ) msg = |Expiry in days was not set correctly.| ). endmethod. method set_flag_to_keep_until_expiry. cut->zif_logger_settings~set_must_be_kept_until_expiry( abap_true ). cl_aunit_assert=>assert_equals( exporting exp = abap_true act = cut->zif_logger_settings~get_must_be_kept_until_expiry( ) msg = |Setter for keeping log until expiry is not working correctly.| ). endmethod. method set_usage_of_2nd_db_connection. cut->zif_logger_settings~set_usage_of_secondary_db_conn( abap_false ). cl_aunit_assert=>assert_equals( exporting exp = abap_false act = cut->zif_logger_settings~get_usage_of_secondary_db_conn( ) msg = |Setter for using 2nd db connection is not working correctly.| ). endmethod. method set_max_drilldown_level. cut->zif_logger_settings~set_max_exception_drill_down( 20 ). cl_aunit_assert=>assert_equals( exporting exp = 20 act = cut->zif_logger_settings~get_max_exception_drill_down( ) msg = |Setter for max drilldown level is not working correctly.| ). cut->zif_logger_settings~set_max_exception_drill_down( -1 ). cl_aunit_assert=>assert_equals( exporting exp = 20 act = cut->zif_logger_settings~get_max_exception_drill_down( ) msg = |Max exception drill down level should not change if value is incorrect.| ). cut->zif_logger_settings~set_max_exception_drill_down( 0 ). cl_aunit_assert=>assert_equals( exporting exp = 0 act = cut->zif_logger_settings~get_max_exception_drill_down( ) msg = |Max exception drill down should be deactivatable.| ). endmethod. endclass.
[ 4871, 300, 565, 62, 6404, 1362, 62, 33692, 62, 21754, 6770, 28651, 13, 198, 4871, 1976, 565, 62, 6404, 1362, 62, 33692, 6770, 1957, 2460, 300, 565, 62, 6404, 1362, 62, 33692, 62, 21754, 13, 198, 198, 4871, 300, 565, 62, 6404, 1362, 62, 33692, 62, 21754, 6770, 329, 4856, 198, 220, 2526, 1241, 23585, 198, 220, 9478, 1790, 13, 628, 220, 2839, 2665, 13, 198, 220, 220, 220, 1366, 2005, 2099, 1006, 284, 1976, 565, 62, 6404, 1362, 62, 33692, 13, 198, 220, 220, 220, 5050, 9058, 13, 198, 220, 220, 220, 5050, 423, 62, 30283, 62, 12286, 82, 329, 4856, 13, 198, 220, 220, 220, 5050, 900, 62, 2306, 418, 1015, 329, 4856, 13, 198, 220, 220, 220, 5050, 900, 62, 1069, 4063, 88, 62, 4475, 329, 4856, 13, 198, 220, 220, 220, 5050, 900, 62, 1069, 4063, 88, 62, 259, 62, 12545, 329, 4856, 13, 198, 220, 220, 220, 5050, 900, 62, 32109, 62, 1462, 62, 14894, 62, 28446, 62, 1069, 4063, 88, 329, 4856, 13, 198, 220, 220, 220, 5050, 900, 62, 26060, 62, 1659, 62, 17, 358, 62, 9945, 62, 38659, 329, 4856, 13, 198, 220, 220, 220, 5050, 900, 62, 9806, 62, 7109, 359, 2902, 62, 5715, 329, 4856, 13, 198, 437, 4871, 13, 198, 198, 4871, 300, 565, 62, 6404, 1362, 62, 33692, 62, 21754, 7822, 13, 628, 220, 2446, 9058, 13, 198, 220, 220, 220, 2251, 2134, 2005, 13, 198, 220, 886, 24396, 13, 628, 220, 2446, 423, 62, 30283, 62, 12286, 82, 13, 198, 220, 220, 220, 537, 62, 1942, 270, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 220, 220, 1033, 220, 220, 220, 220, 796, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 220, 220, 719, 220, 220, 220, 220, 796, 2005, 3784, 89, 361, 62, 6404, 1362, 62, 33692, 93, 1136, 62, 2306, 418, 1015, 7, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 220, 220, 220, 220, 796, 930, 27722, 3613, 815, 307, 319, 416, 4277, 91, 198, 220, 220, 220, 6739, 198, 220, 220, 220, 537, 62, 1942, 270, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 220, 220, 1033, 220, 220, 220, 220, 796, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 220, 220, 719, 220, 220, 220, 220, 796, 2005, 3784, 89, 361, 62, 6404, 1362, 62, 33692, 93, 1136, 62, 26060, 62, 1659, 62, 38238, 62, 9945, 62, 37043, 7, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 220, 220, 220, 220, 796, 930, 17, 358, 6831, 4637, 815, 307, 973, 416, 4277, 91, 198, 220, 220, 220, 6739, 198, 220, 220, 220, 537, 62, 1942, 270, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 220, 220, 1033, 220, 220, 220, 220, 796, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 719, 220, 220, 220, 220, 796, 2005, 3784, 89, 361, 62, 6404, 1362, 62, 33692, 93, 1136, 62, 27238, 62, 1350, 62, 45089, 62, 28446, 62, 1069, 4063, 88, 7, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 220, 220, 220, 220, 796, 930, 11187, 815, 307, 28128, 540, 878, 1033, 9045, 3128, 318, 4251, 416, 4277, 91, 198, 220, 220, 220, 6739, 198, 220, 220, 220, 537, 62, 1942, 270, 62, 30493, 14804, 30493, 62, 36733, 7, 198, 220, 220, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 220, 220, 719, 220, 220, 220, 220, 796, 2005, 3784, 89, 361, 62, 6404, 1362, 62, 33692, 93, 1136, 62, 1069, 4063, 88, 62, 4475, 7, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 220, 220, 220, 220, 796, 930, 2949, 1033, 9045, 3128, 900, 416, 4277, 91, 198, 220, 220, 220, 6739, 198, 220, 220, 220, 537, 62, 1942, 270, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 220, 220, 1033, 220, 220, 220, 220, 796, 838, 198, 220, 220, 220, 220, 220, 220, 220, 719, 220, 220, 220, 220, 796, 2005, 3784, 89, 361, 62, 6404, 1362, 62, 33692, 93, 1136, 62, 9806, 62, 1069, 4516, 62, 7109, 359, 62, 2902, 7, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 220, 220, 220, 220, 796, 930, 11518, 6631, 16007, 866, 815, 307, 838, 416, 4277, 91, 198, 220, 220, 220, 6739, 198, 220, 886, 24396, 13, 628, 220, 2446, 900, 62, 2306, 418, 1015, 13, 198, 220, 220, 220, 2005, 3784, 89, 361, 62, 6404, 1362, 62, 33692, 93, 2617, 62, 2306, 418, 1015, 7, 450, 499, 62, 9562, 6739, 198, 220, 220, 220, 537, 62, 1942, 270, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 220, 220, 1033, 220, 220, 220, 220, 796, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 719, 220, 220, 220, 220, 796, 2005, 3784, 89, 361, 62, 6404, 1362, 62, 33692, 93, 1136, 62, 2306, 418, 1015, 7, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 220, 220, 220, 220, 796, 930, 27722, 3613, 373, 407, 390, 33106, 9380, 91, 198, 220, 220, 220, 6739, 198, 220, 886, 24396, 13, 628, 220, 2446, 900, 62, 1069, 4063, 88, 62, 4475, 13, 198, 220, 220, 220, 2005, 3784, 89, 361, 62, 6404, 1362, 62, 33692, 93, 2617, 62, 1069, 4063, 88, 62, 4475, 7, 705, 5304, 940, 1270, 6, 6739, 198, 220, 220, 220, 537, 62, 1942, 270, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 220, 220, 1033, 220, 220, 220, 220, 796, 705, 5304, 940, 1270, 6, 198, 220, 220, 220, 220, 220, 220, 220, 719, 220, 220, 220, 220, 796, 2005, 3784, 89, 361, 62, 6404, 1362, 62, 33692, 93, 1136, 62, 1069, 4063, 88, 62, 4475, 7, 1267, 198, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_xml_pretty DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS: print IMPORTING iv_xml TYPE string iv_ignore_errors TYPE abap_bool DEFAULT abap_true iv_unpretty TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rv_xml) TYPE string RAISING zcx_abapgit_exception. ENDCLASS. CLASS ZCL_ABAPGIT_XML_PRETTY IMPLEMENTATION. METHOD print. DATA: li_ixml TYPE REF TO if_ixml, li_xml_doc TYPE REF TO if_ixml_document, li_stream_factory TYPE REF TO if_ixml_stream_factory, li_istream TYPE REF TO if_ixml_istream, li_parser TYPE REF TO if_ixml_parser, li_ostream TYPE REF TO if_ixml_ostream, li_renderer TYPE REF TO if_ixml_renderer. ASSERT NOT iv_xml IS INITIAL. li_ixml = cl_ixml=>create( ). li_xml_doc = li_ixml->create_document( ). li_stream_factory = li_ixml->create_stream_factory( ). li_istream = li_stream_factory->create_istream_string( iv_xml ). li_parser = li_ixml->create_parser( stream_factory = li_stream_factory istream = li_istream document = li_xml_doc ). li_parser->set_normalizing( abap_true ). IF li_parser->parse( ) <> 0. IF iv_ignore_errors = abap_true. rv_xml = iv_xml. RETURN. ELSE. zcx_abapgit_exception=>raise( 'error parsing xml' ). ENDIF. ENDIF. li_istream->close( ). li_ostream = li_stream_factory->create_ostream_cstring( rv_xml ). li_renderer = li_ixml->create_renderer( ostream = li_ostream document = li_xml_doc ). li_renderer->set_normalizing( boolc( iv_unpretty = abap_false ) ). li_renderer->render( ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 19875, 62, 37784, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 3601, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 19875, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 46430, 62, 48277, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 403, 37784, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 19875, 8, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 55, 5805, 62, 47, 26087, 9936, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 3601, 13, 628, 220, 220, 220, 42865, 25, 7649, 62, 844, 4029, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 19875, 62, 15390, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 22897, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 5532, 62, 69, 9548, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 5532, 62, 69, 9548, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 396, 1476, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 396, 1476, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 48610, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 48610, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 455, 1476, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 455, 1476, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 10920, 11882, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 10920, 11882, 13, 628, 198, 220, 220, 220, 24994, 17395, 5626, 21628, 62, 19875, 3180, 3268, 2043, 12576, 13, 628, 220, 220, 220, 7649, 62, 844, 4029, 220, 220, 220, 796, 537, 62, 844, 4029, 14804, 17953, 7, 6739, 198, 220, 220, 220, 7649, 62, 19875, 62, 15390, 796, 7649, 62, 844, 4029, 3784, 17953, 62, 22897, 7, 6739, 628, 220, 220, 220, 7649, 62, 5532, 62, 69, 9548, 796, 7649, 62, 844, 4029, 3784, 17953, 62, 5532, 62, 69, 9548, 7, 6739, 198, 220, 220, 220, 7649, 62, 396, 1476, 220, 220, 220, 220, 220, 220, 220, 796, 7649, 62, 5532, 62, 69, 9548, 3784, 17953, 62, 396, 1476, 62, 8841, 7, 21628, 62, 19875, 6739, 198, 220, 220, 220, 7649, 62, 48610, 220, 220, 220, 220, 220, 220, 220, 220, 796, 7649, 62, 844, 4029, 3784, 17953, 62, 48610, 7, 4269, 62, 69, 9548, 796, 7649, 62, 5532, 62, 69, 9548, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 83, 1476, 220, 220, 220, 220, 220, 220, 220, 796, 7649, 62, 396, 1476, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3188, 220, 220, 220, 220, 220, 220, 796, 7649, 62, 19875, 62, 15390, 6739, 198, 220, 220, 220, 7649, 62, 48610, 3784, 2617, 62, 11265, 2890, 7, 450, 499, 62, 7942, 6739, 198, 220, 220, 220, 16876, 7649, 62, 48610, 3784, 29572, 7, 1267, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 16876, 21628, 62, 46430, 62, 48277, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 85, 62, 19875, 796, 21628, 62, 19875, 13, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 18224, 32096, 35555, 6, 6739, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 7649, 62, 396, 1476, 3784, 19836, 7, 6739, 628, 198, 220, 220, 220, 7649, 62, 455, 1476, 220, 796, 7649, 62, 5532, 62, 69, 9548, 3784, 17953, 62, 455, 1476, 62, 66, 8841, 7, 374, 85, 62, 19875, 6739, 628, 220, 220, 220, 7649, 62, 10920, 11882, 796, 7649, 62, 844, 4029, 3784, 17953, 62, 10920, 11882, 7, 267, 5532, 220, 796, 7649, 62, 455, 1476, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3188, 796, 7649, 62, 19875, 62, 15390, 6739, 628, 220, 220, 220, 7649, 62, 10920, 11882, 3784, 2617, 62, 11265, 2890, 7, 20512, 66, 7, 21628, 62, 403, 37784, 796, 450, 499, 62, 9562, 1267, 6739, 628, 220, 220, 220, 7649, 62, 10920, 11882, 3784, 13287, 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, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_selscr_nav_events DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. CLASS-EVENTS entity_chosen EXPORTING VALUE(ev_entity_id) TYPE tabname VALUE(ev_entity_type) TYPE zsat_entity_type VALUE(ef_force_loading) TYPE abap_bool. CLASS-EVENTS variant_entry_chosen EXPORTING VALUE(ev_entity_id) TYPE tabname VALUE(ev_entity_type) TYPE zsat_entity_type VALUE(ev_variant_id) TYPE zdbbr_variant_id VALUE(ef_go_to_result) TYPE abap_bool OPTIONAL . CLASS-EVENTS favtree_event EXPORTING VALUE(er_handler) TYPE REF TO zif_dbbr_favmenu_evt_handler . CLASS-EVENTS object_search EXPORTING VALUE(ev_object_type) TYPE zdbbr_obj_browser_mode VALUE(ev_search_query) TYPE string VALUE(ef_close_popup) TYPE abap_bool. CLASS-EVENTS request_object_search EXPORTING VALUE(ev_object_type) TYPE zdbbr_obj_browser_mode VALUE(ev_search_query) TYPE string VALUE(ef_close_popup) TYPE abap_bool. CLASS-EVENTS close_object_search_modal. CLASS-EVENTS display_object_list EXPORTING VALUE(ev_entity_id) TYPE zsat_entity_id VALUE(ev_entity_type) TYPE zsat_entity_type. "! <p class="shorttext synchronized" lang="en">Request next view in object navigator</p> CLASS-EVENTS goto_next_view_in_objnav. "! <p class="shorttext synchronized" lang="en">Raise ENTITY_CHOSEN event</p> CLASS-METHODS raise_entity_chosen IMPORTING iv_entity_id TYPE tabname iv_entity_type TYPE zsat_entity_type if_force_loading TYPE abap_bool OPTIONAL. "! <p class="shorttext synchronized" lang="en">Raise VARIANT_ENTRY_CHOSEN event</p> CLASS-METHODS raise_variant_entry_chosen IMPORTING iv_entity_id TYPE tabname iv_entity_type TYPE zsat_entity_type iv_variant_id TYPE zdbbr_variant_id if_go_to_result TYPE abap_bool OPTIONAL . "! <p class="shorttext synchronized" lang="en">Raise FAVTREE_EVENT event</p> CLASS-METHODS raise_favtree_event IMPORTING ir_handler TYPE REF TO zif_dbbr_favmenu_evt_handler. "! <p class="shorttext synchronized" lang="en">Raise event DISPLAY_OBJECT_LIST</p> "! "! @parameter iv_entity_id | <p class="shorttext synchronized" lang="en"></p> "! @parameter iv_entity_type | <p class="shorttext synchronized" lang="en"></p> CLASS-METHODS raise_display_object_list IMPORTING iv_entity_id TYPE zsat_entity_id iv_entity_type TYPE zsat_entity_type. "! <p class="shorttext synchronized" lang="en">Raise event OBJECT_SEARCH</p> "! "! @parameter iv_object_type | <p class="shorttext synchronized" lang="en"></p> "! @parameter iv_search_query | <p class="shorttext synchronized" lang="en"></p> CLASS-METHODS raise_object_search IMPORTING iv_object_type TYPE zdbbr_obj_browser_mode iv_search_query TYPE string if_close_popup TYPE abap_bool DEFAULT abap_true. "! <p class="shorttext synchronized" lang="en">Raise event REQUEST_OBJECT_SEARCH</p> "! "! @parameter iv_object_type | <p class="shorttext synchronized" lang="en"></p> "! @parameter iv_search_query | <p class="shorttext synchronized" lang="en"></p> "! @parameter if_close_on_success | <p class="shorttext synchronized" lang="en"></p> CLASS-METHODS raise_request_object_search IMPORTING iv_object_type TYPE zdbbr_obj_browser_mode iv_search_query TYPE string if_close_on_success TYPE abap_bool DEFAULT abap_true. "! <p class="shorttext synchronized" lang="en">Raise event GOTO_NEXT_VIEW_IN_OBJNAV</p> "! CLASS-METHODS raise_goto_nxt_view_in_objnav. "! <p class="shorttext synchronized" lang="en">Raise event CLOSE_OBJECT_SEARCH_MODAL</p> "! CLASS-METHODS raise_close_object_srch_dialog. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_dbbr_selscr_nav_events IMPLEMENTATION. METHOD raise_entity_chosen. RAISE EVENT entity_chosen EXPORTING ev_entity_id = iv_entity_id ev_entity_type = iv_entity_type ef_force_loading = if_force_loading. ENDMETHOD. METHOD raise_favtree_event. RAISE EVENT favtree_event EXPORTING er_handler = ir_handler. ENDMETHOD. METHOD raise_variant_entry_chosen. RAISE EVENT variant_entry_chosen EXPORTING ev_entity_id = iv_entity_id ev_entity_type = iv_entity_type ev_variant_id = iv_variant_id ef_go_to_result = if_go_to_result. ENDMETHOD. METHOD raise_display_object_list. RAISE EVENT display_object_list EXPORTING ev_entity_id = iv_entity_id ev_entity_type = iv_entity_type. ENDMETHOD. METHOD raise_goto_nxt_view_in_objnav. RAISE EVENT goto_next_view_in_objnav. ENDMETHOD. METHOD raise_object_search. RAISE EVENT object_search EXPORTING ev_object_type = iv_object_type ev_search_query = iv_search_query ef_close_popup = if_close_popup. ENDMETHOD. METHOD raise_request_object_search. RAISE EVENT request_object_search EXPORTING ev_object_type = iv_object_type ev_search_query = iv_search_query ef_close_popup = if_close_on_success. ENDMETHOD. METHOD raise_close_object_srch_dialog. RAISE EVENT close_object_search_modal. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 9945, 1671, 62, 741, 1416, 81, 62, 28341, 62, 31534, 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, 20114, 15365, 9312, 62, 354, 5233, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 1990, 62, 26858, 62, 312, 8, 41876, 7400, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 1990, 62, 26858, 62, 4906, 8, 41876, 1976, 49720, 62, 26858, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 891, 62, 3174, 62, 25138, 8, 41876, 450, 499, 62, 30388, 13, 198, 220, 220, 220, 42715, 12, 20114, 15365, 15304, 62, 13000, 62, 354, 5233, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 1990, 62, 26858, 62, 312, 8, 41876, 7400, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 1990, 62, 26858, 62, 4906, 8, 41876, 1976, 49720, 62, 26858, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 1990, 62, 25641, 415, 62, 312, 8, 41876, 1976, 9945, 1671, 62, 25641, 415, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 891, 62, 2188, 62, 1462, 62, 20274, 8, 41876, 450, 499, 62, 30388, 39852, 2849, 1847, 764, 198, 220, 220, 220, 42715, 12, 20114, 15365, 2090, 21048, 62, 15596, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 263, 62, 30281, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 9945, 1671, 62, 69, 615, 26272, 62, 1990, 83, 62, 30281, 764, 198, 220, 220, 220, 42715, 12, 20114, 15365, 2134, 62, 12947, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 1990, 62, 15252, 62, 4906, 8, 41876, 1976, 9945, 1671, 62, 26801, 62, 40259, 62, 14171, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 1990, 62, 12947, 62, 22766, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 891, 62, 19836, 62, 12924, 929, 8, 41876, 450, 499, 62, 30388, 13, 198, 220, 220, 220, 42715, 12, 20114, 15365, 2581, 62, 15252, 62, 12947, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 1990, 62, 15252, 62, 4906, 8, 41876, 1976, 9945, 1671, 62, 26801, 62, 40259, 62, 14171, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 1990, 62, 12947, 62, 22766, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 891, 62, 19836, 62, 12924, 929, 8, 41876, 450, 499, 62, 30388, 13, 198, 220, 220, 220, 42715, 12, 20114, 15365, 1969, 62, 15252, 62, 12947, 62, 4666, 282, 13, 198, 220, 220, 220, 42715, 12, 20114, 15365, 3359, 62, 15252, 62, 4868, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 1990, 62, 26858, 62, 312, 8, 41876, 1976, 49720, 62, 26858, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 1990, 62, 26858, 62, 4906, 8, 41876, 1976, 49720, 62, 26858, 62, 4906, 13, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 18453, 1306, 1570, 287, 2134, 20436, 1352, 3556, 79, 29, 198, 220, 220, 220, 42715, 12, 20114, 15365, 43197, 62, 19545, 62, 1177, 62, 259, 62, 26801, 28341, 13, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 21762, 786, 47353, 9050, 62, 3398, 2640, 1677, 1785, 3556, 79, 29, 198, 220, 220, 220, 42715, 12, 49273, 50, 5298, 62, 26858, 62, 354, 5233, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 26858, 62, 312, 220, 220, 220, 220, 41876, 7400, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 26858, 62, 4906, 220, 220, 41876, 1976, 49720, 62, 26858, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 611, 62, 3174, 62, 25138, 41876, 450, 499, 62, 30388, 39852, 2849, 1847, 13, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 21762, 786, 569, 33604, 8643, 62, 3525, 18276, 62, 3398, 2640, 1677, 1785, 3556, 79, 29, 198, 220, 220, 220, 42715, 12, 49273, 50, 5298, 62, 25641, 415, 62, 13000, 62, 354, 5233, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 26858, 62, 312, 220, 220, 220, 41876, 7400, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 26858, 62, 4906, 220, 41876, 1976, 49720, 62, 26858, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 25641, 415, 62, 312, 220, 220, 41876, 1976, 9945, 1671, 62, 25641, 415, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 611, 62, 2188, 62, 1462, 62, 20274, 41876, 450, 499, 62, 30388, 39852, 2849, 1847, 764, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 21762, 786, 9677, 36392, 11587, 62, 20114, 3525, 1785, 3556, 79, 29, 198, 220, 220, 220, 42715, 12, 49273, 50, 5298, 62, 69, 615, 21048, 62, 15596, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 4173, 62, 30281, 41876, 4526, 37, 5390, 1976, 361, 62, 9945, 1671, 62, 69, 615, 26272, 62, 1990, 83, 62, 30281, 13, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 21762, 786, 1785, 13954, 31519, 62, 9864, 23680, 62, 45849, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 26858, 62, 312, 930, 1279, 79, 1398, 2625, 19509, 5239 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS ycl_a2g_json_sheetproperties DEFINITION PUBLIC INHERITING FROM ycl_a2g_jsonbase CREATE PUBLIC . PUBLIC SECTION. "! Build the class "! @parameter if_msg_manager | message managere where soter alla message triggered by the applicaition METHODS constructor IMPORTING if_msg_manager TYPE REF TO yif_a2g_msg_manager. METHODS: yif_a2g_json~set_attribute REDEFINITION. METHODS: yif_a2g_json~get_attribute REDEFINITION. METHODS: yif_a2g_json~new_element REDEFINITION. METHODS: yif_a2g_json~get_element REDEFINITION. TYPES: BEGIN OF ty_s_json_sheetproperties , sheetid TYPE i, title TYPE string, index TYPE i, sheettype TYPE string, gridproperties TYPE ycl_a2g_json_gridproperties=>ty_s_json_gridproperties, hidden TYPE string, tabcolor TYPE ycl_a2g_json_color=>ty_s_json_color, righttoleft TYPE string, END OF ty_s_json_sheetproperties. CONSTANTS: gc_fnam_sheetid TYPE string VALUE 'SHEETID'. CONSTANTS: gc_fnam_title TYPE string VALUE 'TITLE'. CONSTANTS: gc_fnam_index TYPE string VALUE 'INDEX'. CONSTANTS: gc_fnam_sheettype TYPE string VALUE 'SHEETTYPE'. CONSTANTS: gc_fnam_hidden TYPE string VALUE 'HIDDEN'. CONSTANTS: gc_fnam_righttoleft TYPE string VALUE 'RIGHTTOLEFT'. CONSTANTS: gc_fnam_gridproperties TYPE string VALUE 'GRIDPROPERTIES'. CONSTANTS: gc_fnam_tabcolor TYPE string VALUE 'TABCOLOR'. PROTECTED SECTION. METHODS generate_rules REDEFINITION. METHODS rebuild_data REDEFINITION. METHODS push_data REDEFINITION. DATA: gs_sheetproperties TYPE ty_s_json_sheetproperties. METHODS set_sheetid IMPORTING !i_value TYPE REF TO data. METHODS set_title IMPORTING !i_value TYPE REF TO data. METHODS set_index IMPORTING !i_value TYPE REF TO data. METHODS set_sheettype IMPORTING !i_value TYPE REF TO data. METHODS set_hidden IMPORTING !i_value TYPE REF TO data. METHODS set_righttoleft IMPORTING !i_value TYPE REF TO data. METHODS new_gridproperties RETURNING VALUE(return) TYPE REF TO yif_a2g_json. METHODS new_tabcolor RETURNING VALUE(return) TYPE REF TO yif_a2g_json. PRIVATE SECTION. ENDCLASS. CLASS ycl_a2g_json_sheetproperties IMPLEMENTATION. METHOD set_righttoleft . FIELD-SYMBOLS <fs_value> TYPE string. ASSIGN i_value->* TO <fs_value>. IF <fs_value> IS ASSIGNED. CHECK me->gs_sheetproperties-righttoleft <> <fs_value>. me->gs_sheetproperties-righttoleft = <fs_value>. ENDIF. ENDMETHOD. METHOD set_hidden . FIELD-SYMBOLS <fs_value> TYPE string. ASSIGN i_value->* TO <fs_value>. IF <fs_value> IS ASSIGNED. CHECK me->gs_sheetproperties-hidden <> <fs_value>. me->gs_sheetproperties-hidden = <fs_value>. ENDIF. ENDMETHOD. METHOD set_sheettype . FIELD-SYMBOLS <fs_value> TYPE string. ASSIGN i_value->* TO <fs_value>. IF <fs_value> IS ASSIGNED. CHECK me->gs_sheetproperties-sheettype <> <fs_value>. me->gs_sheetproperties-sheettype = <fs_value>. ENDIF. ENDMETHOD. METHOD set_index . FIELD-SYMBOLS <fs_value> TYPE i. ASSIGN i_value->* TO <fs_value>. IF <fs_value> IS ASSIGNED. CHECK me->gs_sheetproperties-index <> <fs_value>. me->gs_sheetproperties-index = <fs_value>. ENDIF. ENDMETHOD. METHOD set_title. FIELD-SYMBOLS <fs_value> TYPE string. ASSIGN i_value->* TO <fs_value>. IF <fs_value> IS ASSIGNED. CHECK me->gs_sheetproperties-title <> <fs_value>. me->gs_sheetproperties-title = <fs_value>. ENDIF. ENDMETHOD. METHOD set_sheetid. FIELD-SYMBOLS <fs_value> TYPE i. ASSIGN i_value->* TO <fs_value>. IF <fs_value> IS ASSIGNED. CHECK me->gs_sheetproperties-sheetid <> <fs_value>. me->gs_sheetproperties-sheetid = <fs_value>. ENDIF. ENDMETHOD. METHOD yif_a2g_json~set_attribute. CASE i_name. WHEN gc_fnam_sheetid . me->set_sheetid( i_value ). WHEN gc_fnam_title . me->set_title( i_value ). WHEN gc_fnam_index . me->set_index( i_value ). WHEN gc_fnam_sheettype . me->set_sheettype( i_value ). WHEN gc_fnam_hidden . me->set_hidden( i_value ). WHEN gc_fnam_righttoleft . me->set_righttoleft( i_value ). ENDCASE. ENDMETHOD. METHOD yif_a2g_json~get_attribute. CASE i_name. WHEN gc_fnam_sheetid . return = REF #( me->gs_sheetproperties-sheetid ). WHEN gc_fnam_title . return = REF #( me->gs_sheetproperties-title ). WHEN gc_fnam_index . return = REF #( me->gs_sheetproperties-index ). WHEN gc_fnam_sheettype . return = REF #( me->gs_sheetproperties-sheettype ). WHEN gc_fnam_hidden . return = REF #( me->gs_sheetproperties-hidden ). WHEN gc_fnam_righttoleft . return = REF #( me->gs_sheetproperties-righttoleft ). ENDCASE. ENDMETHOD. METHOD push_data. DATA(lif_a2g_json_grid) = me->new_gridproperties( ). lif_a2g_json_grid->yif_a2g_context~write_data( REF #( me->gs_sheetproperties-gridproperties ) ). DATA(lif_a2g_json_color) = me->new_tabcolor( ). lif_a2g_json_color->yif_a2g_context~write_data( REF #( me->gs_sheetproperties-tabcolor ) ). ENDMETHOD. METHOD rebuild_data. DATA: lif_a2g_json TYPE REF TO yif_a2g_json. FIELD-SYMBOLS <fs_value_range> TYPE any. lif_a2g_json ?= me->go_json_array->getinstance( me->gc_fnam_gridproperties ). DATA(dref_data) = lif_a2g_json->yif_a2g_context~read_data( ). ASSIGN dref_data->* TO <fs_value_range>. me->gs_sheetproperties-gridproperties = <fs_value_range>. lif_a2g_json ?= me->go_json_array->getinstance( me->gc_fnam_tabcolor ). dref_data = lif_a2g_json->yif_a2g_context~read_data( ). ASSIGN dref_data->* TO <fs_value_range>. me->gs_sheetproperties-tabcolor = <fs_value_range>. ENDMETHOD. METHOD constructor. super->constructor( if_msg_manager ). me->gv_data = REF #( me->gs_sheetproperties ). ENDMETHOD. METHOD generate_rules. ENDMETHOD. METHOD yif_a2g_json~new_element. CASE i_name . WHEN gc_fnam_gridproperties . return = me->new_gridproperties( ). WHEN gc_fnam_tabcolor . return = me->new_tabcolor( ). ENDCASE. ENDMETHOD. METHOD yif_a2g_json~get_element. CASE i_name . WHEN gc_fnam_gridproperties. return ?= me->go_json_array->getinstance( gc_fnam_gridproperties ). WHEN gc_fnam_tabcolor. return ?= me->go_json_array->getinstance( gc_fnam_tabcolor ). ENDCASE. ENDMETHOD. METHOD new_gridproperties. DATA: lo_object TYPE REF TO object. return = me->go_json_factory->build_json_instance( 'YCL_A2G_JSON_GRIDPROPERTIES' ). lo_object ?= return. me->go_json_array->setinstance( im_name = me->gc_fnam_gridproperties im_object = lo_object ). ENDMETHOD. METHOD new_tabcolor. DATA: lo_object TYPE REF TO object. return = me->go_json_factory->build_json_instance( 'YCL_A2G_JSON_COLOR' ). lo_object ?= return. me->go_json_array->setinstance( im_name = me->gc_fnam_tabcolor im_object = lo_object ). ENDMETHOD. ENDCLASS.
[ 31631, 331, 565, 62, 64, 17, 70, 62, 17752, 62, 21760, 48310, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 331, 565, 62, 64, 17, 70, 62, 17752, 8692, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 366, 0, 10934, 262, 1398, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 611, 62, 19662, 62, 37153, 930, 3275, 6687, 260, 810, 264, 19543, 477, 64, 3275, 13973, 416, 262, 2161, 64, 653, 198, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 611, 62, 19662, 62, 37153, 41876, 4526, 37, 5390, 331, 361, 62, 64, 17, 70, 62, 19662, 62, 37153, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 331, 361, 62, 64, 17, 70, 62, 17752, 93, 2617, 62, 42348, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 331, 361, 62, 64, 17, 70, 62, 17752, 93, 1136, 62, 42348, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 331, 361, 62, 64, 17, 70, 62, 17752, 93, 3605, 62, 30854, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 331, 361, 62, 64, 17, 70, 62, 17752, 93, 1136, 62, 30854, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 82, 62, 17752, 62, 21760, 48310, 837, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9629, 312, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3670, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6376, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9629, 4906, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10706, 48310, 41876, 331, 565, 62, 64, 17, 70, 62, 17752, 62, 25928, 48310, 14804, 774, 62, 82, 62, 17752, 62, 25928, 48310, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7104, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7400, 8043, 220, 220, 220, 220, 220, 220, 41876, 331, 565, 62, 64, 17, 70, 62, 17752, 62, 8043, 14804, 774, 62, 82, 62, 17752, 62, 8043, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 826, 1462, 9464, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 82, 62, 17752, 62, 21760, 48310, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 308, 66, 62, 69, 7402, 62, 21760, 312, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 9693, 36, 2767, 2389, 4458, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 308, 66, 62, 69, 7402, 62, 7839, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 49560, 2538, 4458, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 308, 66, 62, 69, 7402, 62, 9630, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 12115, 6369, 4458, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 308, 66, 62, 69, 7402, 62, 21760, 4906, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 9693, 36, 2767, 25216, 4458, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 308, 66, 62, 69, 7402, 62, 30342, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 39, 2389, 41819, 4458, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 308, 66, 62, 69, 7402, 62, 3506, 1462, 9464, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 49, 9947, 10468, 2538, 9792, 4458, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 308, 66, 62, 69, 7402, 62, 25928, 48310, 41876, 4731, 26173, 8924, 705, 10761, 2389, 4805, 3185, 17395, 11015, 4458, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 308, 66, 62, 69, 7402, 62, 8658, 8043, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 5603, 2749, 3535, 1581, 4458, 628, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 7716, 62, 38785, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 17884, 62, 7890, 220, 220, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 4574, 62, 7890, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 628, 220, 220, 220, 42865, 25, 308, 82, 62, 21760, 48310, 41876, 1259, 62, 82, 62, 17752, 62, 21760, 48310, 13, 628, 220, 220, 220, 337, 36252, 50, 900, 62, 21760, 312, 220, 220, 220, 220, 220, 30023, 9863, 2751, 5145, 72, 62, 8367, 41876, 4526, 37, 5390, 1366, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 7839, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 5145, 72, 62, 8367, 41876, 4526, 37, 5390, 1366, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 9630, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 5145, 72, 62, 8367, 41876, 4526, 37, 5390, 1366, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 21760, 4906, 220, 220, 220, 30023, 9863, 2751, 5145, 72, 62, 8367, 41876, 4526, 37, 5390, 1366, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 30342, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 5145, 72,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
* https://github.com/abapGit/CI REPORT zabapgit_ci. DATA: gv_repo_name TYPE c LENGTH 60. SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-b01. SELECTION-SCREEN COMMENT 1(79) descr01. SELECTION-SCREEN COMMENT /1(79) descr02. SELECTION-SCREEN SKIP. SELECTION-SCREEN COMMENT /1(79) descr03. SELECTION-SCREEN COMMENT /1(79) descr04. SELECTION-SCREEN COMMENT /1(79) descr05. SELECTION-SCREEN COMMENT /1(79) descr06. SELECTION-SCREEN COMMENT /1(79) descr07. SELECTION-SCREEN COMMENT /1(79) descr08. SELECTION-SCREEN COMMENT /1(79) descr09. SELECTION-SCREEN END OF BLOCK b1. SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE TEXT-b02. SELECTION-SCREEN COMMENT 1(79) opt01. SELECTION-SCREEN COMMENT /1(79) opt02. SELECTION-SCREEN COMMENT /1(79) opt03. SELECTION-SCREEN SKIP. PARAMETERS: p_url TYPE string LOWER CASE, p_hist TYPE abap_bool AS CHECKBOX. SELECTION-SCREEN END OF BLOCK b2. SELECTION-SCREEN BEGIN OF BLOCK b5 WITH FRAME TITLE TEXT-b05. SELECT-OPTIONS: s_repos FOR gv_repo_name LOWER CASE. SELECTION-SCREEN END OF BLOCK b5. SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE TEXT-b03. PARAMETERS: slack TYPE abap_bool AS CHECKBOX, token TYPE string LOWER CASE. SELECTION-SCREEN END OF BLOCK b3. SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE TEXT-b04. PARAMETERS: generic TYPE abap_bool AS CHECKBOX DEFAULT 'X', repo TYPE abap_bool AS CHECKBOX DEFAULT 'X' USER-COMMAND u1. SELECTION-SCREEN BEGIN OF LINE. SELECTION-SCREEN POSITION 4. PARAMETERS repol TYPE abap_bool AS CHECKBOX DEFAULT abap_true MODIF ID m1. SELECTION-SCREEN COMMENT 9(30) FOR FIELD repol MODIF ID m1. SELECTION-SCREEN END OF LINE. SELECTION-SCREEN BEGIN OF LINE. SELECTION-SCREEN POSITION 4. PARAMETERS repot TYPE abap_bool AS CHECKBOX DEFAULT abap_false MODIF ID m1 USER-COMMAND u2. SELECTION-SCREEN COMMENT 9(30) FOR FIELD repot MODIF ID m1. SELECTION-SCREEN POSITION 40. SELECTION-SCREEN COMMENT 40(20) FOR FIELD layer MODIF ID m1. PARAMETERS layer TYPE devlayer MODIF ID m1. SELECTION-SCREEN END OF LINE. SELECTION-SCREEN BEGIN OF LINE. SELECTION-SCREEN POSITION 4. PARAMETERS no_purge TYPE abap_bool AS CHECKBOX DEFAULT abap_false MODIF ID m1. SELECTION-SCREEN COMMENT 9(30) FOR FIELD no_purge MODIF ID m1. SELECTION-SCREEN END OF LINE. SELECTION-SCREEN END OF BLOCK b4. INITIALIZATION. descr01 = TEXT-d01. descr02 = TEXT-d02. descr03 = TEXT-d03. descr04 = TEXT-d04. descr05 = TEXT-d05. descr06 = TEXT-d06. descr07 = TEXT-d07. descr08 = TEXT-d08. descr09 = TEXT-d09. opt01 = TEXT-o01. opt02 = TEXT-o02. opt03 = TEXT-o03. " Get default transport layer CALL FUNCTION 'TR_GET_TRANSPORT_TARGET' EXPORTING iv_use_default = abap_true iv_get_layer_only = abap_true IMPORTING ev_layer = layer EXCEPTIONS wrong_call = 1 invalid_input = 2 cts_initialization_failure = 3 OTHERS = 4. IF sy-subrc <> 0. CLEAR layer. ENDIF. AT SELECTION-SCREEN OUTPUT. LOOP AT SCREEN. IF screen-group1 = 'M1'. screen-input = COND #( WHEN repo = abap_true THEN '1' ELSE '0' ). MODIFY SCREEN. ENDIF. IF screen-name = 'LAYER'. screen-input = COND #( WHEN repo = abap_true AND repot = abap_true THEN '1' ELSE '0' ). MODIFY SCREEN. ENDIF. IF repo = abap_false. repol = repot = abap_false. ENDIF. ENDLOOP. CLASS lcl_abapgit_ci DEFINITION. PUBLIC SECTION. METHODS: run. PRIVATE SECTION. METHODS: send_to_slack IMPORTING ix_error TYPE REF TO zcx_abapgit_exception. ENDCLASS. CLASS lcl_abapgit_ci IMPLEMENTATION. METHOD run. TRY. NEW zcl_abapgit_ci_controller( ii_repo_provider = NEW zcl_abapgit_ci_test_repos( CORRESPONDING #( s_repos[] ) ) ii_view = NEW zcl_abapgit_ci_alv_view( ) is_options = VALUE #( result_git_repo_url = p_url save_to_history = p_hist post_errors_to_slack = slack slack_oauth_token = token exec_generic_checks = generic exec_repository_checks = repo repo_check_options = VALUE #( check_local = repol check_transportable = repot layer = layer no_purge = no_purge ) ) )->run( ). MESSAGE |abapGit CI run completed| TYPE 'S'. CATCH zcx_abapgit_exception INTO DATA(lx_error). IF slack = abap_true. send_to_slack( lx_error ). ENDIF. MESSAGE lx_error TYPE 'E'. ENDTRY. ENDMETHOD. METHOD send_to_slack. TRY. NEW zcl_abapgit_ci_slack( token )->post( |abapGit CI error: abapGit CI run failed with | && |"{ ix_error->get_text( ) }"| ). CATCH zcx_abapgit_exception INTO DATA(lx_error). MESSAGE lx_error TYPE 'E'. ENDTRY. ENDMETHOD. ENDCLASS. START-OF-SELECTION. NEW lcl_abapgit_ci( )->run( ).
[ 9, 3740, 1378, 12567, 13, 785, 14, 397, 499, 38, 270, 14, 25690, 198, 2200, 15490, 1976, 397, 499, 18300, 62, 979, 13, 198, 198, 26947, 25, 308, 85, 62, 260, 7501, 62, 3672, 41876, 269, 406, 49494, 3126, 13, 198, 198, 46506, 2849, 12, 6173, 2200, 1677, 347, 43312, 3963, 9878, 11290, 275, 16, 220, 13315, 8782, 10067, 37977, 2538, 40383, 12, 65, 486, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 9440, 10979, 352, 7, 3720, 8, 1715, 81, 486, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 9440, 10979, 1220, 16, 7, 3720, 8, 1715, 81, 2999, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 14277, 4061, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 9440, 10979, 1220, 16, 7, 3720, 8, 1715, 81, 3070, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 9440, 10979, 1220, 16, 7, 3720, 8, 1715, 81, 3023, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 9440, 10979, 1220, 16, 7, 3720, 8, 1715, 81, 2713, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 9440, 10979, 1220, 16, 7, 3720, 8, 1715, 81, 3312, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 9440, 10979, 1220, 16, 7, 3720, 8, 1715, 81, 2998, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 9440, 10979, 1220, 16, 7, 3720, 8, 1715, 81, 2919, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 9440, 10979, 1220, 16, 7, 3720, 8, 1715, 81, 2931, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 23578, 3963, 9878, 11290, 275, 16, 13, 198, 198, 46506, 2849, 12, 6173, 2200, 1677, 347, 43312, 3963, 9878, 11290, 275, 17, 220, 13315, 8782, 10067, 37977, 2538, 40383, 12, 65, 2999, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 9440, 10979, 352, 7, 3720, 8, 2172, 486, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 9440, 10979, 1220, 16, 7, 3720, 8, 2172, 2999, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 9440, 10979, 1220, 16, 7, 3720, 8, 2172, 3070, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 14277, 4061, 13, 198, 27082, 2390, 2767, 4877, 25, 198, 220, 279, 62, 6371, 220, 41876, 4731, 406, 36048, 42001, 11, 198, 220, 279, 62, 10034, 41876, 450, 499, 62, 30388, 7054, 5870, 25171, 39758, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 23578, 3963, 9878, 11290, 275, 17, 13, 198, 198, 46506, 2849, 12, 6173, 2200, 1677, 347, 43312, 3963, 9878, 11290, 275, 20, 13315, 8782, 10067, 37977, 2538, 40383, 12, 65, 2713, 13, 198, 46506, 12, 3185, 51, 11053, 25, 264, 62, 260, 1930, 7473, 308, 85, 62, 260, 7501, 62, 3672, 406, 36048, 42001, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 23578, 3963, 9878, 11290, 275, 20, 13, 198, 198, 46506, 2849, 12, 6173, 2200, 1677, 347, 43312, 3963, 9878, 11290, 275, 18, 220, 13315, 8782, 10067, 37977, 2538, 40383, 12, 65, 3070, 13, 198, 27082, 2390, 2767, 4877, 25, 198, 220, 30740, 41876, 450, 499, 62, 30388, 7054, 5870, 25171, 39758, 11, 198, 220, 11241, 41876, 4731, 406, 36048, 42001, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 23578, 3963, 9878, 11290, 275, 18, 13, 198, 198, 46506, 2849, 12, 6173, 2200, 1677, 347, 43312, 3963, 9878, 11290, 275, 19, 220, 13315, 8782, 10067, 37977, 2538, 40383, 12, 65, 3023, 13, 198, 27082, 2390, 2767, 4877, 25, 198, 220, 14276, 41876, 450, 499, 62, 30388, 7054, 5870, 25171, 39758, 5550, 38865, 705, 55, 3256, 198, 220, 29924, 220, 220, 220, 41876, 450, 499, 62, 30388, 7054, 5870, 25171, 39758, 5550, 38865, 705, 55, 6, 1294, 1137, 12, 9858, 44, 6981, 334, 16, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 347, 43312, 3963, 48920, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 28069, 17941, 604, 13, 198, 27082, 2390, 2767, 4877, 1128, 349, 41876, 450, 499, 62, 30388, 7054, 5870, 25171, 39758, 5550, 38865, 450, 499, 62, 7942, 19164, 5064, 4522, 285, 16, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 9440, 10979, 860, 7, 1270, 8, 7473, 18930, 24639, 1128, 349, 19164, 5064, 4522, 285, 16, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 23578, 3963, 48920, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 347, 43312, 3963, 48920, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 28069, 17941, 604, 13, 198, 27082, 2390, 2767, 4877, 1128, 313, 41876, 450, 499, 62, 30388, 7054, 5870, 25171, 39758, 5550, 38865, 450, 499, 62, 9562, 19164, 5064, 4522, 285, 16, 1294, 1137, 12, 9858, 44, 6981, 334, 17, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 9440, 10979, 860, 7, 1270, 8, 7473, 18930, 24639, 1128, 313, 19164, 5064, 4522, 285, 16, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 28069, 17941, 2319, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 9440, 10979, 2319, 7, 1238, 8, 7473, 18930, 24639, 7679, 19164, 5064, 4522, 285, 16, 13, 198, 27082, 2390, 2767, 4877, 7679, 41876, 1614, 29289, 19164, 5064, 4522, 285, 16, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 23578, 3963, 48920, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 347, 43312, 3963, 48920, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 28069, 17941, 604, 13, 198, 27082, 2390, 2767, 4877, 645, 62, 14225, 469, 41876, 450, 499, 62, 30388, 7054, 5870, 25171, 39758, 5550, 38865, 450, 499, 62, 9562, 19164, 5064, 4522, 285, 16, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 9440, 10979, 860, 7, 1270, 8, 7473, 18930, 24639, 645, 62, 14225, 469, 19164, 5064, 4522, 285, 16, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 23578, 3963, 48920, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 23578, 3963, 9878, 11290, 275, 19, 13, 198, 198, 1268, 2043, 12576, 14887, 6234, 13, 198, 220, 1715, 81, 486, 796, 40383, 12, 67, 486, 13, 198, 220, 1715, 81, 2999, 796, 40383, 12, 67, 2999, 13, 198, 220, 1715, 81, 3070, 796, 40383, 12, 67, 3070, 13, 198, 220, 1715, 81, 3023, 796, 40383, 12, 67, 3023, 13, 198, 220, 1715, 81, 2713, 796, 40383, 12, 67, 2713, 13, 198, 220, 1715, 81, 3312, 796, 40383, 12, 67, 3312, 13, 198, 220, 1715, 81, 2998, 796, 40383, 12, 67, 2998, 13, 198, 220, 1715, 81, 2919, 796, 40383, 12, 67, 2919, 13, 198, 220, 1715 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS ycl_addict_datetime_toolkit DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS is_factory_workday IMPORTING !datum TYPE sydatum !calid TYPE scal-fcalid DEFAULT 'TR' RETURNING VALUE(workday) TYPE abap_bool RAISING ycx_addict_function_subrc. PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF factory_workday_cache_dict, datum TYPE sydatum, calid TYPE scal-fcalid, cx TYPE REF TO ycx_addict_function_subrc, workday TYPE abap_bool, END OF factory_workday_cache_dict, factory_workday_cache_set TYPE HASHED TABLE OF factory_workday_cache_dict WITH UNIQUE KEY primary_key COMPONENTS datum calid. CLASS-DATA factory_workday_cache TYPE factory_workday_cache_set. ENDCLASS. CLASS ycl_addict_datetime_toolkit IMPLEMENTATION. METHOD is_factory_workday. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Tells if the date is a workday or not """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" ASSIGN ycl_addict_datetime_toolkit=>factory_workday_cache[ KEY primary_key COMPONENTS datum = datum calid = calid ] TO FIELD-SYMBOL(<fwd>). IF sy-subrc <> 0. DATA(fwd) = VALUE factory_workday_cache_dict( datum = datum calid = calid ). TRY. CALL FUNCTION 'YF_ADDICT_DATE_CHECK_WORKDAY' EXPORTING date = fwd-datum factory_calendar_id = fwd-calid message_type = ycl_simbal=>msgty-status EXCEPTIONS date_after_range = 1 date_before_range = 2 date_invalid = 3 date_no_workingday = 4 factory_calendar_not_found = 5 message_type_invalid = 6 OTHERS = 7. CASE sy-subrc. WHEN 0. fwd-workday = abap_true. WHEN 4. fwd-workday = abap_false. WHEN OTHERS. ycx_addict_function_subrc=>raise_if_sysubrc_not_initial( 'DATE_CHECK_WORKINGDAY' ). ENDCASE. CATCH ycx_addict_function_subrc INTO DATA(function_error). fwd-cx = function_error. ENDTRY. INSERT fwd INTO TABLE ycl_addict_datetime_toolkit=>factory_workday_cache ASSIGNING <fwd>. ENDIF. IF <fwd>-cx IS NOT INITIAL. RAISE EXCEPTION <fwd>-cx. ENDIF. workday = <fwd>-workday. ENDMETHOD. ENDCLASS.
[ 31631, 331, 565, 62, 2860, 713, 62, 19608, 8079, 62, 25981, 15813, 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, 318, 62, 69, 9548, 62, 1818, 820, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 5145, 19608, 388, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 827, 19608, 388, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 9948, 312, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 16578, 12, 69, 9948, 312, 5550, 38865, 705, 5446, 6, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 1818, 820, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 331, 66, 87, 62, 2860, 713, 62, 8818, 62, 7266, 6015, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 8860, 62, 1818, 820, 62, 23870, 62, 11600, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4818, 388, 220, 220, 41876, 827, 19608, 388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2386, 312, 220, 220, 41876, 16578, 12, 69, 9948, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43213, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 331, 66, 87, 62, 2860, 713, 62, 8818, 62, 7266, 6015, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 670, 820, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 8860, 62, 1818, 820, 62, 23870, 62, 11600, 11, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8860, 62, 1818, 820, 62, 23870, 62, 2617, 41876, 367, 11211, 1961, 43679, 3963, 8860, 62, 1818, 820, 62, 23870, 62, 11600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13315, 4725, 33866, 8924, 35374, 4165, 62, 2539, 24301, 1340, 15365, 4818, 388, 2386, 312, 13, 628, 220, 220, 220, 42715, 12, 26947, 8860, 62, 1818, 820, 62, 23870, 41876, 8860, 62, 1818, 820, 62, 23870, 62, 2617, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 331, 565, 62, 2860, 713, 62, 19608, 8079, 62, 25981, 15813, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 318, 62, 69, 9548, 62, 1818, 820, 13, 198, 220, 220, 220, 13538, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 37811, 198, 220, 220, 220, 366, 14026, 82, 611, 262, 3128, 318, 257, 670, 820, 393, 407, 198, 220, 220, 220, 13538, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 15931, 37811, 198, 220, 220, 220, 24994, 16284, 331, 565, 62, 2860, 713, 62, 19608, 8079, 62, 25981, 15813, 14804, 69, 9548, 62, 1818, 820, 62, 23870, 58, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 35374, 4165, 62, 2539, 24301, 1340, 15365, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4818, 388, 796, 4818, 388, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2386, 312, 796, 2386, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2361, 5390, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 69, 16993, 29, 737, 628, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 42865, 7, 69, 16993, 8, 796, 26173, 8924, 8860, 62, 1818, 820, 62, 23870, 62, 11600, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4818, 388, 796, 4818, 388, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2386, 312, 796, 2386, 312, 6739, 628, 220, 220, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 56, 37, 62, 29266, 18379, 62, 35, 6158, 62, 50084, 62, 33249, 26442, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3128, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 277, 16993, 12, 19608, 388, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8860, 62, 9948, 9239, 62, 312, 220, 220, 220, 220, 220, 220, 220, 796, 277, 16993, 12, 9948, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3275, 62, 4906, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 331, 565, 62, 14323, 6893, 14804, 19662, 774, 12, 13376, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3128, 62, 8499, 62, 9521, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3128, 62, 19052, 62, 9521, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3128, 62, 259, 12102, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3128, 62, 3919, 62, 16090, 820, 220, 220, 220, 220, 220, 220, 220, 220, 796, 604 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*&---------------------------------------------------------------------* *& Report ZRDOA_STVARV *& *&---------------------------------------------------------------------* *& *& Leitura de Range da tabela STVARV *&---------------------------------------------------------------------* REPORT ZRDOA_STVARV. * Define a range for directory names DATA: lr_dir_range TYPE range OF char50, ls_dir_name LIKE LINE OF lr_dir_range. * Get the Directory Range from TVARVC SELECT SIGN opti low high INTO TABLE lr_dir_range FROM tvarvc WHERE name = 'Z_RANGE' "Nome da variável cadastrado no STVARV AND TYPE = 'S'. "Select Option IF sy-subrc = 0 AND lr_dir_range IS NOT INITIAL. LOOP AT lr_dir_range INTO ls_dir_name. WRITE: / ls_dir_name-low. ENDLOOP. ENDIF.
[ 9, 5, 10097, 30934, 9, 201, 198, 9, 5, 6358, 220, 1168, 49, 18227, 32, 62, 2257, 53, 1503, 53, 201, 198, 9, 5, 201, 198, 9, 5, 10097, 30934, 9, 201, 198, 9, 5, 201, 198, 9, 5, 1004, 270, 5330, 390, 13667, 12379, 7400, 10304, 3563, 53, 1503, 53, 201, 198, 9, 5, 10097, 30934, 9, 201, 198, 201, 198, 2200, 15490, 220, 1168, 49, 18227, 32, 62, 2257, 53, 1503, 53, 13, 201, 198, 201, 198, 9, 2896, 500, 257, 2837, 329, 8619, 3891, 201, 198, 26947, 25, 300, 81, 62, 15908, 62, 9521, 41876, 2837, 3963, 1149, 1120, 11, 201, 198, 220, 220, 220, 220, 220, 43979, 62, 15908, 62, 3672, 34178, 48920, 3963, 300, 81, 62, 15908, 62, 9521, 13, 201, 198, 201, 198, 9, 3497, 262, 27387, 13667, 422, 3195, 1503, 15922, 201, 198, 46506, 36771, 2172, 72, 1877, 1029, 201, 198, 1268, 10468, 43679, 300, 81, 62, 15908, 62, 9521, 201, 198, 10913, 2662, 256, 7785, 28435, 201, 198, 47357, 1438, 796, 705, 57, 62, 49, 27746, 6, 366, 45, 462, 12379, 5553, 6557, 626, 20603, 459, 81, 4533, 645, 3563, 53, 1503, 53, 201, 198, 6981, 41876, 796, 705, 50, 4458, 366, 17563, 16018, 201, 198, 201, 198, 5064, 827, 12, 7266, 6015, 796, 657, 5357, 300, 81, 62, 15908, 62, 9521, 3180, 5626, 3268, 2043, 12576, 13, 201, 198, 220, 17579, 3185, 5161, 300, 81, 62, 15908, 62, 9521, 39319, 43979, 62, 15908, 62, 3672, 13, 201, 198, 220, 220, 220, 44423, 25, 1220, 43979, 62, 15908, 62, 3672, 12, 9319, 13, 201, 198, 220, 23578, 21982, 3185, 13, 201, 198, 10619, 5064, 13 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS /usi/cl_bal_ce_log_lv_by_user DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES /usi/if_bal_ce_log_lv_by_user . METHODS constructor IMPORTING !i_customizing_dao TYPE REF TO /usi/if_bal_cd_log_lv_by_user. METHODS get_fallback_log_level RETURNING VALUE(r_result) TYPE REF TO /usi/cl_bal_enum_log_level . METHODS get_fallback_auto_save RETURNING VALUE(r_result) TYPE /usi/bal_auto_save_pckg_size . PROTECTED SECTION. PRIVATE SECTION. DATA customizing_dao TYPE REF TO /usi/if_bal_cd_log_lv_by_user . METHODS get_customizing_record IMPORTING i_user_name TYPE xubname i_log_object TYPE balobj_d i_sub_object TYPE balsubobj RETURNING VALUE(r_result) TYPE /usi/if_bal_cd_log_lv_by_user=>ty_record RAISING /usi/cx_bal_root. ENDCLASS. CLASS /usi/cl_bal_ce_log_lv_by_user IMPLEMENTATION. METHOD constructor. customizing_dao = i_customizing_dao. ENDMETHOD. METHOD /usi/if_bal_ce_log_lv_by_user~get_log_level. DATA: customizing_record TYPE /usi/if_bal_cd_log_lv_by_user=>ty_record. TRY. customizing_record = get_customizing_record( i_user_name = i_user_name i_log_object = i_log_object i_sub_object = i_sub_object ). CATCH /usi/cx_bal_root. r_result = get_fallback_log_level( ). RETURN. ENDTRY. TRY. r_result = /usi/cl_bal_enum_log_level=>get_by_value( customizing_record-log_level ). CATCH /usi/cx_bal_root. r_result = get_fallback_log_level( ). ENDTRY. ENDMETHOD. METHOD get_fallback_log_level. r_result = /usi/cl_bal_enum_log_level=>nothing. ENDMETHOD. METHOD /usi/if_bal_ce_log_lv_by_user~get_auto_save_package_size. DATA: customizing_record TYPE /usi/if_bal_cd_log_lv_by_user=>ty_record. TRY. customizing_record = get_customizing_record( i_user_name = i_user_name i_log_object = i_log_object i_sub_object = i_sub_object ). IF customizing_record-auto_save EQ abap_true. r_result = 1. ELSE. r_result = 0. ENDIF. CATCH /usi/cx_bal_root. r_result = get_fallback_auto_save( ). ENDTRY. ENDMETHOD. METHOD get_fallback_auto_save. r_result = 0. ENDMETHOD. METHOD get_customizing_record. DATA: customizing_entries TYPE /usi/if_bal_cd_log_lv_by_user=>ty_records, log_object_range_helper TYPE REF TO /usi/cl_bal_log_object_range, sub_object_range_helper TYPE REF TO /usi/cl_bal_sub_object_range, endda_range TYPE /usi/bal_date_range, endda_range_line TYPE /usi/bal_date_range_line. FIELD-SYMBOLS <customizing_entry> TYPE /usi/if_bal_cd_log_lv_by_user=>ty_record. CREATE OBJECT log_object_range_helper. log_object_range_helper->insert_line( i_log_object ). log_object_range_helper->insert_line( space ). CREATE OBJECT sub_object_range_helper. sub_object_range_helper->insert_line( i_sub_object ). sub_object_range_helper->insert_line( space ). endda_range_line-sign = 'I'. endda_range_line-option = 'GE'. endda_range_line-low = sy-datum. INSERT endda_range_line INTO TABLE endda_range. customizing_entries = customizing_dao->get_records( i_user_name = i_user_name i_endda_range = endda_range i_log_object_range = log_object_range_helper->range i_sub_object_range = sub_object_range_helper->range ). SORT customizing_entries BY log_object DESCENDING sub_object DESCENDING endda DESCENDING. READ TABLE customizing_entries INTO r_result INDEX 1. ENDMETHOD. ENDCLASS.
[ 31631, 1220, 385, 72, 14, 565, 62, 6893, 62, 344, 62, 6404, 62, 6780, 62, 1525, 62, 7220, 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, 1220, 385, 72, 14, 361, 62, 6893, 62, 344, 62, 6404, 62, 6780, 62, 1525, 62, 7220, 764, 628, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 23144, 2890, 62, 67, 5488, 41876, 4526, 37, 5390, 1220, 385, 72, 14, 361, 62, 6893, 62, 10210, 62, 6404, 62, 6780, 62, 1525, 62, 7220, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 7207, 1891, 62, 6404, 62, 5715, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 20274, 8, 41876, 4526, 37, 5390, 1220, 385, 72, 14, 565, 62, 6893, 62, 44709, 62, 6404, 62, 5715, 764, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 7207, 1891, 62, 23736, 62, 21928, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 20274, 8, 41876, 1220, 385, 72, 14, 6893, 62, 23736, 62, 21928, 62, 79, 694, 70, 62, 7857, 764, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 2183, 2890, 62, 67, 5488, 41876, 4526, 37, 5390, 1220, 385, 72, 14, 361, 62, 6893, 62, 10210, 62, 6404, 62, 6780, 62, 1525, 62, 7220, 764, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 23144, 2890, 62, 22105, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 7220, 62, 3672, 220, 220, 220, 220, 41876, 2124, 549, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 6404, 62, 15252, 220, 220, 220, 41876, 3652, 26801, 62, 67, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 7266, 62, 15252, 220, 220, 220, 41876, 275, 874, 549, 26801, 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, 220, 1220, 385, 72, 14, 361, 62, 6893, 62, 10210, 62, 6404, 62, 6780, 62, 1525, 62, 7220, 14804, 774, 62, 22105, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1220, 385, 72, 14, 66, 87, 62, 6893, 62, 15763, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1220, 385, 72, 14, 565, 62, 6893, 62, 344, 62, 6404, 62, 6780, 62, 1525, 62, 7220, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 2183, 2890, 62, 67, 5488, 796, 1312, 62, 23144, 2890, 62, 67, 5488, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1220, 385, 72, 14, 361, 62, 6893, 62, 344, 62, 6404, 62, 6780, 62, 1525, 62, 7220, 93, 1136, 62, 6404, 62, 5715, 13, 198, 220, 220, 220, 42865, 25, 2183, 2890, 62, 22105, 41876, 1220, 385, 72, 14, 361, 62, 6893, 62, 10210, 62, 6404, 62, 6780, 62, 1525, 62, 7220, 14804, 774, 62, 22105, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 2183, 2890, 62, 22105, 796, 651, 62, 23144, 2890, 62, 22105, 7, 1312, 62, 7220, 62, 3672, 220, 796, 1312, 62, 7220, 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, 1312, 62, 6404, 62, 15252, 796, 1312, 62, 6404, 62, 15252, 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, 1312, 62, 7266, 62, 15252, 796, 1312, 62, 7266, 62, 15252, 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, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 1220, 385, 72, 14, 66, 87, 62, 6893, 62, 15763, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 62, 20274, 796, 651, 62, 7207, 1891, 62, 6404, 62, 5715, 7, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 62, 20274, 796, 1220, 385, 72, 14, 565, 62, 6893, 62, 44709, 62, 6404, 62, 5715, 14804, 1136, 62, 1525, 62, 8367, 7, 2183, 2890, 62, 22105, 12, 6404, 62, 5715, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 1220, 385, 72, 14, 66, 87, 62, 6893, 62, 15763, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 62, 20274, 796, 651, 62, 7207, 1891, 62, 6404, 62, 5715, 7, 6739, 198, 220, 220, 220, 23578, 40405, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 7207, 1891, 62, 6404, 62, 5715, 13, 198, 220, 220, 220, 374, 62, 20274, 796, 1220, 385, 72, 14, 565, 62, 6893, 62, 44709, 62, 6404, 62, 5715, 14804, 22366, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1220, 385, 72, 14, 361, 62, 6893, 62, 344, 62, 6404, 62, 6780, 62, 1525, 62, 7220, 93, 1136, 62, 23736, 62, 21928, 62, 26495, 62, 7857, 13, 198, 220, 220, 220, 42865, 25, 2183, 2890, 62, 22105, 41876, 1220, 385, 72, 14, 361, 62, 6893, 62, 10210, 62, 6404, 62, 6780, 62, 1525, 62, 7220, 14804, 774, 62, 22105, 13, 628, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ZTESTCL definition public final create public . public section. interfaces ZIF_CQSE_SOURCE_OBJECT . interfaces ZTEST . protected section. private section. endclass. "ZTESTCL definition *----------------------------------------------------------------------* * class ZTESTCL implementation. *----------------------------------------------------------------------* * *----------------------------------------------------------------------* class ZTESTCL implementation. method ZIF_CQSE_SOURCE_OBJECT~GET_SOURCE. endmethod. endclass. "ZTESTCL implementation
[ 4871, 1168, 51, 1546, 4825, 43, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 20314, 1168, 5064, 62, 34, 48, 5188, 62, 47690, 62, 9864, 23680, 764, 198, 220, 20314, 1168, 51, 6465, 764, 198, 24326, 2665, 13, 198, 19734, 2665, 13, 198, 437, 4871, 13, 366, 57, 51, 1546, 4825, 43, 6770, 628, 198, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 1398, 1168, 51, 1546, 4825, 43, 7822, 13, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 4871, 1168, 51, 1546, 4825, 43, 7822, 13, 628, 198, 24396, 1168, 5064, 62, 34, 48, 5188, 62, 47690, 62, 9864, 23680, 93, 18851, 62, 47690, 13, 198, 437, 24396, 13, 198, 437, 4871, 13, 366, 57, 51, 1546, 4825, 43, 7822 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS z_sy_cl_feature_loader DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. METHODS constructor IMPORTING !i_feature_instance TYPE REF TO z_sy_feature . CLASS-METHODS load IMPORTING !i_feature_instance TYPE REF TO z_sy_feature . CLASS-METHODS createfeaturetogglesinstance IMPORTING !i_featureclass TYPE z_sy_featureclassname RETURNING VALUE(r_instance) TYPE REF TO z_sy_feature . PROTECTED SECTION. METHODS loadtogglestate IMPORTING !i_featuretoggle TYPE abap_attrname RETURNING VALUE(r_state) TYPE abap_bool . METHODS getfeaturelist RETURNING VALUE(r_list) TYPE z_sy_t_featurename . METHODS loadfeaturetoggles . PRIVATE SECTION. DATA feature_instance TYPE REF TO z_sy_feature . DATA classname TYPE z_sy_featureclassname . METHODS getfeatureclassname RETURNING VALUE(r_name) TYPE string . ENDCLASS. CLASS z_sy_cl_feature_loader IMPLEMENTATION. METHOD constructor. feature_instance = i_feature_instance. me->classname = cl_abap_typedescr=>describe_by_object_ref( feature_instance )->get_relative_name( ). ENDMETHOD. METHOD createfeaturetogglesinstance. CREATE OBJECT r_instance TYPE (i_featureclass). ENDMETHOD. METHOD getfeatureclassname. DATA(object_descriptor) = CAST cl_abap_objectdescr( cl_abap_typedescr=>describe_by_object_ref( feature_instance ) ). r_name = object_descriptor->get_relative_name( ). ENDMETHOD. METHOD getfeaturelist. DATA(object_descriptor) = CAST cl_abap_objectdescr( cl_abap_typedescr=>describe_by_object_ref( feature_instance ) ). r_list = VALUE #( FOR <attribute> IN object_descriptor->attributes WHERE ( is_class = abap_true AND visibility = cl_abap_objectdescr=>public AND type_kind = cl_abap_typedescr=>typekind_char AND length <= 2 ) ( <attribute>-name ) ). ENDMETHOD. METHOD load. NEW z_sy_cl_feature_loader( i_feature_instance )->loadfeaturetoggles( ). ENDMETHOD. METHOD loadfeaturetoggles. TRY. DATA(classname) = getfeatureclassname( ). LOOP AT getfeaturelist( ) ASSIGNING FIELD-SYMBOL(<attributename>). FIELD-SYMBOLS <attribute_access> TYPE abap_bool. ASSIGN (classname)=>(<attributename>) TO <attribute_access>. <attribute_access> = loadtogglestate( <attributename> ). ENDLOOP. CATCH cx_root. "all features are disabled. ENDTRY. ENDMETHOD. METHOD loadtogglestate. SELECT SINGLE active INTO @r_state FROM zsy_tfeature WHERE class = @me->classname AND feature = @i_featuretoggle. "table is buffered. IF sy-subrc <> 0. CLEAR r_state. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 62, 1837, 62, 565, 62, 30053, 62, 29356, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 30053, 62, 39098, 41876, 4526, 37, 5390, 1976, 62, 1837, 62, 30053, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 3440, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 30053, 62, 39098, 41876, 4526, 37, 5390, 1976, 62, 1837, 62, 30053, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 2251, 30053, 83, 48549, 39098, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 30053, 4871, 220, 220, 41876, 1976, 62, 1837, 62, 30053, 4871, 3672, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 39098, 8, 41876, 4526, 37, 5390, 1976, 62, 1837, 62, 30053, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 3440, 83, 519, 4743, 44146, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 30053, 44256, 41876, 450, 499, 62, 35226, 3672, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 5219, 8, 220, 220, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 30053, 4868, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 4868, 8, 41876, 1976, 62, 1837, 62, 83, 62, 30053, 3672, 764, 198, 220, 220, 220, 337, 36252, 50, 3440, 30053, 83, 48549, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 3895, 62, 39098, 41876, 4526, 37, 5390, 1976, 62, 1837, 62, 30053, 764, 198, 220, 220, 220, 42865, 1398, 3672, 41876, 1976, 62, 1837, 62, 30053, 4871, 3672, 764, 628, 220, 220, 220, 337, 36252, 50, 651, 30053, 4871, 3672, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 3672, 8, 41876, 4731, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 62, 1837, 62, 565, 62, 30053, 62, 29356, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 3895, 62, 39098, 796, 1312, 62, 30053, 62, 39098, 13, 198, 220, 220, 220, 502, 3784, 4871, 3672, 796, 537, 62, 397, 499, 62, 774, 9124, 3798, 81, 14804, 20147, 4892, 62, 1525, 62, 15252, 62, 5420, 7, 3895, 62, 39098, 1267, 3784, 1136, 62, 43762, 62, 3672, 7, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 2251, 30053, 83, 48549, 39098, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 374, 62, 39098, 41876, 357, 72, 62, 30053, 4871, 737, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 30053, 4871, 3672, 13, 628, 220, 220, 220, 42865, 7, 15252, 62, 20147, 1968, 273, 8, 796, 327, 11262, 537, 62, 397, 499, 62, 15252, 20147, 81, 7, 537, 62, 397, 499, 62, 774, 9124, 3798, 81, 14804, 20147, 4892, 62, 1525, 62, 15252, 62, 5420, 7, 3895, 62, 39098, 1267, 6739, 198, 220, 220, 220, 374, 62, 3672, 796, 2134, 62, 20147, 1968, 273, 3784, 1136, 62, 43762, 62, 3672, 7, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 30053, 4868, 13, 628, 220, 220, 220, 42865, 7, 15252, 62, 20147, 1968, 273, 8, 796, 327, 11262, 537, 62, 397, 499, 62, 15252, 20147, 81, 7, 537, 62, 397, 499, 62, 774, 9124, 3798, 81, 14804, 20147, 4892, 62, 1525, 62, 15252, 62, 5420, 7, 3895, 62, 39098, 1267, 6739, 198, 220, 220, 220, 374, 62, 4868, 796, 26173, 8924, 1303, 7, 7473, 1279, 42348, 29, 3268, 2134, 62, 20147, 1968, 273, 3784, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33411, 357, 318, 62, 4871, 796, 450, 499, 62, 7942, 5357, 20742, 796, 537, 62, 397, 499, 62, 15252, 20147, 81, 14804, 11377, 5357, 2099, 62, 11031, 796, 537, 62, 397, 499, 62, 774, 9124, 3798, 81, 14804, 4906, 11031, 62, 10641, 5357, 4129, 19841, 362, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 1279, 42348, 29, 12, 3672, 1267, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 3440, 13, 628, 220, 220, 220, 12682, 1976, 62, 1837, 62, 565, 62, 30053, 62, 29356, 7, 1312, 62, 30053, 62, 39098, 1267, 3784, 2220, 30053, 83, 48549, 7, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 3440, 30053, 83, 48549, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 4871, 3672, 8, 796, 651, 30053, 4871, 3672, 7, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 17579, 3185, 5161, 651, 30053, 4868, 7, 1267, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 1078, 2455, 12453, 29, 737, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 1279, 42348, 62, 15526, 29, 41876, 450, 499, 62, 30388, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24994, 16284, 357, 4871, 3672, 8, 14804, 7, 27, 1078, 2455, 12453, 43734, 5390, 1279, 42348, 62, 15526, 28401, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 42348, 62, 15526, 29, 796, 3440, 83, 519, 4743, 44146, 7, 1279, 1078, 2455, 12453, 29, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 15763, 13, 198, 220, 220, 220, 220, 220, 220, 220, 366, 439, 3033 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_abapgit_object_iatu 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: read EXPORTING es_attr TYPE w3tempattr ev_source TYPE string RAISING zcx_abapgit_exception, save IMPORTING is_attr TYPE w3tempattr iv_source TYPE string RAISING zcx_abapgit_exception, w3_api_load IMPORTING is_name TYPE iacikeyt RETURNING VALUE(ri_template) TYPE REF TO if_w3_api_template RAISING zcx_abapgit_exception, w3_api_set_changeable IMPORTING iv_changeable TYPE abap_bool ii_template TYPE REF TO if_w3_api_template RAISING zcx_abapgit_exception, w3_api_delete IMPORTING ii_template TYPE REF TO if_w3_api_template RAISING zcx_abapgit_exception, w3_api_save IMPORTING ii_template TYPE REF TO if_w3_api_template RAISING zcx_abapgit_exception, w3_api_get_attributes IMPORTING ii_template TYPE REF TO if_w3_api_template RETURNING VALUE(rs_attributes) TYPE w3tempattr RAISING zcx_abapgit_exception, w3_api_get_source IMPORTING ii_template TYPE REF TO if_w3_api_template RETURNING VALUE(rt_source) TYPE w3htmltabtype RAISING zcx_abapgit_exception, w3_api_create_new IMPORTING is_template_data TYPE w3tempattr RETURNING VALUE(ri_template) TYPE REF TO if_w3_api_template RAISING zcx_abapgit_exception, w3_api_set_attributes IMPORTING ii_template TYPE REF TO if_w3_api_template is_attr TYPE w3tempattr RAISING zcx_abapgit_exception, w3_api_set_source IMPORTING ii_template TYPE REF TO if_w3_api_template it_source TYPE w3htmltabtype RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_object_iatu IMPLEMENTATION. METHOD read. DATA: li_template TYPE REF TO if_w3_api_template, lt_source TYPE w3htmltabtype, ls_name TYPE iacikeyt. ls_name = ms_item-obj_name. li_template = w3_api_load( is_name = ls_name ). es_attr = w3_api_get_attributes( ii_template = li_template ). CLEAR: es_attr-chname, es_attr-tdate, es_attr-ttime, es_attr-devclass. lt_source = w3_api_get_source( ii_template = li_template ). CONCATENATE LINES OF lt_source INTO ev_source RESPECTING BLANKS. ENDMETHOD. METHOD save. DATA: lt_source TYPE w3htmltabtype, lv_source TYPE string, li_template TYPE REF TO if_w3_api_template. li_template = w3_api_create_new( is_template_data = is_attr ). w3_api_set_attributes( ii_template = li_template is_attr = is_attr ). lv_source = iv_source. WHILE strlen( lv_source ) >= 255. APPEND lv_source(255) TO lt_source. lv_source = lv_source+255. ENDWHILE. IF NOT lv_source IS INITIAL. APPEND lv_source TO lt_source. ENDIF. w3_api_set_source( ii_template = li_template it_source = lt_source ). w3_api_save( li_template ). ENDMETHOD. METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. " todo ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: li_template TYPE REF TO if_w3_api_template, ls_name TYPE iacikeyt. ls_name = ms_item-obj_name. li_template = w3_api_load( is_name = ls_name ). w3_api_set_changeable( ii_template = li_template iv_changeable = abap_true ). w3_api_delete( ii_template = li_template ). w3_api_save( ii_template = li_template ). ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: ls_attr TYPE w3tempattr, lv_source TYPE string. io_xml->read( EXPORTING iv_name = 'ATTR' CHANGING cg_data = ls_attr ). lv_source = mo_files->read_string( 'html' ) ##NO_TEXT. ls_attr-devclass = iv_package. save( is_attr = ls_attr iv_source = lv_source ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: ls_name TYPE iacikeyt. ls_name = ms_item-obj_name. cl_w3_api_template=>s_check_exist( EXPORTING p_template_name = ls_name IMPORTING p_exists = rv_bool ). ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = abap_false. ENDMETHOD. METHOD zif_abapgit_object~jump. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ms_item-obj_name object_type = ms_item-obj_type. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: ls_attr TYPE w3tempattr, lv_source TYPE string. IF zif_abapgit_object~exists( ) = abap_false. RETURN. ENDIF. read( IMPORTING es_attr = ls_attr ev_source = lv_source ). io_xml->add( iv_name = 'ATTR' ig_data = ls_attr ). mo_files->add_string( iv_ext = 'html' iv_string = lv_source ) ##NO_TEXT. ENDMETHOD. METHOD w3_api_load. cl_w3_api_template=>if_w3_api_template~load( EXPORTING p_template_name = is_name IMPORTING p_template = ri_template 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_template~load subrc={ sy-subrc }| ). ENDIF. ENDMETHOD. METHOD w3_api_set_changeable. ii_template->if_w3_api_object~set_changeable( EXPORTING p_changeable = iv_changeable EXCEPTIONS action_cancelled = 1 object_locked_by_other_user = 2 permission_failure = 3 object_already_changeable = 4 object_already_unlocked = 5 object_just_created = 6 object_deleted = 7 object_modified = 8 object_not_existing = 9 object_invalid = 10 error_occured = 11 OTHERS = 12 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from w3_api_template~set_changeable subrc={ sy-subrc }| ). ENDIF. ENDMETHOD. METHOD w3_api_delete. ii_template->if_w3_api_object~delete( EXCEPTIONS object_not_empty = 1 object_not_changeable = 2 object_invalid = 3 error_occured = 4 OTHERS = 5 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from w3_api_template~delete subrc={ sy-subrc }| ). ENDIF. ENDMETHOD. METHOD w3_api_save. ii_template->if_w3_api_object~save( EXCEPTIONS object_invalid = 1 object_not_changeable = 2 action_cancelled = 3 permission_failure = 4 not_changed = 5 data_invalid = 6 error_occured = 7 OTHERS = 8 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from w3_api_template~save subrc={ sy-subrc }| ). ENDIF. ENDMETHOD. METHOD w3_api_get_attributes. ii_template->get_attributes( IMPORTING p_attributes = rs_attributes EXCEPTIONS object_invalid = 1 template_deleted = 2 error_occured = 3 OTHERS = 4 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from w3_api_template~get_attributes subrc={ sy-subrc }| ). ENDIF. ENDMETHOD. METHOD w3_api_get_source. ii_template->get_source( IMPORTING p_source = rt_source EXCEPTIONS object_invalid = 1 template_deleted = 2 error_occured = 3 OTHERS = 4 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from w3_api_template~get_source subrc={ sy-subrc }| ). ENDIF. ENDMETHOD. METHOD w3_api_create_new. cl_w3_api_template=>if_w3_api_template~create_new( EXPORTING p_template_data = is_template_data p_program_name = is_template_data-programm IMPORTING p_template = ri_template EXCEPTIONS object_already_existing = 1 object_just_created = 2 not_authorized = 3 undefined_name = 4 author_not_existing = 5 action_cancelled = 6 error_occured = 7 user_error = 8 OTHERS = 9 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from w3_api_template~create_new subrc={ sy-subrc }| ). ENDIF. ENDMETHOD. METHOD w3_api_set_attributes. ii_template->set_attributes( EXPORTING p_attributes = is_attr EXCEPTIONS object_not_changeable = 1 object_deleted = 2 object_invalid = 3 author_not_existing = 4 authorize_failure = 5 error_occured = 6 OTHERS = 7 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from w3_api_template~set_attributes subrc={ sy-subrc }| ). ENDIF. ENDMETHOD. METHOD w3_api_set_source. ii_template->set_source( EXPORTING p_source = it_source EXCEPTIONS object_not_changeable = 1 object_deleted = 2 object_invalid = 3 authorize_failure = 4 invalid_parameter = 5 error_occured = 6 OTHERS = 7 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from w3_api_template~set_source subrc={ sy-subrc }| ). ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 5375, 84, 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, 1100, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 1658, 62, 35226, 220, 220, 41876, 266, 18, 29510, 35226, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 819, 62, 10459, 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, 3613, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 318, 62, 35226, 220, 220, 41876, 266, 18, 29510, 35226, 21628, 62, 10459, 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, 266, 18, 62, 15042, 62, 2220, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 318, 62, 3672, 220, 220, 220, 220, 41876, 1312, 330, 522, 20760, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 380, 62, 28243, 8, 41876, 4526, 37, 5390, 611, 62, 86, 18, 62, 15042, 62, 28243, 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, 266, 18, 62, 15042, 62, 2617, 62, 3803, 540, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 3803, 540, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 28243, 220, 220, 41876, 4526, 37, 5390, 611, 62, 86, 18, 62, 15042, 62, 28243, 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, 266, 18, 62, 15042, 62, 33678, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21065, 62, 28243, 41876, 4526, 37, 5390, 611, 62, 86, 18, 62, 15042, 62, 28243, 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, 266, 18, 62, 15042, 62, 21928, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21065, 62, 28243, 41876, 4526, 37, 5390, 611, 62, 86, 18, 62, 15042, 62, 28243, 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, 266, 18, 62, 15042, 62, 1136, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21065, 62, 28243, 220, 220, 41876, 4526, 37, 5390, 611, 62, 86, 18, 62, 15042, 62, 28243, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 3808, 62, 1078, 7657, 8, 41876, 266, 18, 29510, 35226, 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, 266, 18, 62, 15042, 62, 1136, 62, 10459, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21065, 62, 28243, 41876, 4526, 37, 5390, 611, 62, 86, 18, 62, 15042, 62, 28243, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 17034, 62, 10459, 8, 220, 220, 41876, 266, 18, 19211, 2528, 397, 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, 266, 18, 62, 15042, 62, 17953, 62, 3605, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 318, 62, 28243, 62, 7890, 41876, 266, 18, 29510, 35226, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 380, 62, 28243, 8, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 86, 18, 62, 15042, 62, 28243, 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, 266, 18, 62, 15042, 62, 2617, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21065, 62, 28243, 41876, 4526, 37, 5390, 611, 62, 86, 18, 62, 15042, 62, 28243, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 35226, 220, 220, 220, 220, 41876, 266, 18, 29510, 35226, 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, 266, 18, 62, 15042, 62, 2617, 62, 10459, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21065, 62, 28243, 41876, 4526, 37, 5390, 611, 62, 86, 18, 62, 15042, 62, 28243, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 10459, 220, 220, 41876, 266, 18, 19211, 2528, 397, 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, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 5375 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS lcl_response DEFINITION. PUBLIC SECTION. INTERFACES if_http_response. PRIVATE SECTION. DATA status TYPE i. DATA cdata TYPE string. DATA hexdata TYPE xstring. DATA content_type TYPE string. ENDCLASS. CLASS lcl_response IMPLEMENTATION. METHOD if_http_response~get_header_field. ASSERT 2 = 'todo'. ENDMETHOD. METHOD if_http_response~get_header_fields. ASSERT 2 = 'todo'. ENDMETHOD. METHOD if_http_response~get_status. code = status. ENDMETHOD. METHOD if_http_response~get_cdata. data = cdata. ENDMETHOD. METHOD if_http_response~get_content_type. val = content_type. ENDMETHOD. METHOD if_http_response~get_data. val = hexdata. ENDMETHOD. ENDCLASS. CLASS lcl_request DEFINITION. PUBLIC SECTION. INTERFACES if_http_request. METHODS constructor IMPORTING uri TYPE string. PRIVATE SECTION. DATA mv_method TYPE string. DATA mv_data TYPE xstring. DATA mt_headers TYPE tihttpnvp. DATA mt_form_fields TYPE tihttpnvp. ENDCLASS. CLASS lcl_request IMPLEMENTATION. METHOD constructor. DATA ls_header LIKE LINE OF mt_headers. ls_header-name = '~request_uri'. ls_header-value = uri. APPEND ls_header TO mt_headers. ENDMETHOD. METHOD if_http_request~set_form_fields. mt_form_fields = fields. ENDMETHOD. METHOD if_http_request~get_form_fields. fields = mt_form_fields. ENDMETHOD. METHOD if_http_request~set_header_field. DATA ls_header LIKE LINE OF mt_headers. FIELD-SYMBOLS <ls_header> LIKE LINE OF mt_headers. READ TABLE mt_headers WITH KEY name = to_lower( name ) ASSIGNING <ls_header>. IF sy-subrc = 0. <ls_header>-value = value. ELSE. ls_header-name = to_lower( name ). ls_header-value = value. APPEND ls_header TO mt_headers. ENDIF. IF name = '~request_method'. if_http_request~set_method( value ). ENDIF. ENDMETHOD. METHOD if_http_request~get_header_field. DATA ls_header LIKE LINE OF mt_headers. READ TABLE mt_headers WITH KEY name = to_lower( field ) INTO ls_header. IF sy-subrc = 0. value = ls_header-value. ENDIF. ENDMETHOD. METHOD if_http_request~set_method. mv_method = meth. ENDMETHOD. METHOD if_http_request~get_method. meth = mv_method. ENDMETHOD. METHOD if_http_request~set_version. ASSERT 2 = 'todo'. ENDMETHOD. METHOD if_http_request~set_data. mv_data = data. ENDMETHOD. METHOD if_http_request~get_data. data = mv_data. ENDMETHOD. METHOD if_http_request~set_cdata. cl_abap_conv_out_ce=>create( encoding = 'UTF-8' )->convert( EXPORTING data = data IMPORTING buffer = mv_data ). ENDMETHOD. METHOD if_http_request~get_cdata. cl_abap_conv_in_ce=>create( encoding = 'UTF-8' )->convert( EXPORTING input = mv_data IMPORTING data = data ). ENDMETHOD. METHOD if_http_request~set_form_field. DATA ls_field LIKE LINE OF mt_form_fields. ls_field-name = name. ls_field-value = value. APPEND ls_field TO mt_form_fields. ENDMETHOD. METHOD if_http_request~get_header_fields. fields = mt_headers. ENDMETHOD. ENDCLASS.
[ 31631, 300, 565, 62, 26209, 5550, 20032, 17941, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 611, 62, 4023, 62, 26209, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 3722, 41876, 1312, 13, 198, 220, 220, 220, 42865, 269, 7890, 41876, 4731, 13, 198, 220, 220, 220, 42865, 17910, 7890, 41876, 2124, 8841, 13, 198, 220, 220, 220, 42865, 2695, 62, 4906, 41876, 4731, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 26209, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 611, 62, 4023, 62, 26209, 93, 1136, 62, 25677, 62, 3245, 13, 198, 220, 220, 220, 24994, 17395, 362, 796, 705, 83, 24313, 4458, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 4023, 62, 26209, 93, 1136, 62, 25677, 62, 25747, 13, 198, 220, 220, 220, 24994, 17395, 362, 796, 705, 83, 24313, 4458, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 4023, 62, 26209, 93, 1136, 62, 13376, 13, 198, 220, 220, 220, 2438, 796, 3722, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 4023, 62, 26209, 93, 1136, 62, 66, 7890, 13, 198, 220, 220, 220, 1366, 796, 269, 7890, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 4023, 62, 26209, 93, 1136, 62, 11299, 62, 4906, 13, 198, 220, 220, 220, 1188, 796, 2695, 62, 4906, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 4023, 62, 26209, 93, 1136, 62, 7890, 13, 198, 220, 220, 220, 1188, 796, 17910, 7890, 13, 198, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 25927, 5550, 20032, 17941, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 611, 62, 4023, 62, 25927, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 30023, 9863, 2751, 2956, 72, 41876, 4731, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 285, 85, 62, 24396, 41876, 4731, 13, 198, 220, 220, 220, 42865, 285, 85, 62, 7890, 41876, 2124, 8841, 13, 198, 220, 220, 220, 42865, 45079, 62, 50145, 41876, 46668, 4023, 77, 36133, 13, 198, 220, 220, 220, 42865, 45079, 62, 687, 62, 25747, 41876, 46668, 4023, 77, 36133, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 25927, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 42865, 43979, 62, 25677, 34178, 48920, 3963, 45079, 62, 50145, 13, 198, 220, 220, 220, 43979, 62, 25677, 12, 3672, 796, 705, 93, 25927, 62, 9900, 4458, 198, 220, 220, 220, 43979, 62, 25677, 12, 8367, 796, 2956, 72, 13, 198, 220, 220, 220, 43504, 10619, 43979, 62, 25677, 5390, 45079, 62, 50145, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 4023, 62, 25927, 93, 2617, 62, 687, 62, 25747, 13, 198, 220, 220, 220, 45079, 62, 687, 62, 25747, 796, 7032, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 4023, 62, 25927, 93, 1136, 62, 687, 62, 25747, 13, 198, 220, 220, 220, 7032, 796, 45079, 62, 687, 62, 25747, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 4023, 62, 25927, 93, 2617, 62, 25677, 62, 3245, 13, 198, 220, 220, 220, 42865, 43979, 62, 25677, 34178, 48920, 3963, 45079, 62, 50145, 13, 198, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 1279, 7278, 62, 25677, 29, 34178, 48920, 3963, 45079, 62, 50145, 13, 198, 220, 220, 220, 20832, 43679, 45079, 62, 50145, 13315, 35374, 1438, 796, 284, 62, 21037, 7, 1438, 1267, 24994, 3528, 15871, 1279, 7278, 62, 25677, 28401, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 25677, 29, 12, 8367, 796, 1988, 13, 198, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 43979, 62, 25677, 12, 3672, 796, 284, 62, 21037, 7, 1438, 6739, 198, 220, 220, 220, 220, 220, 43979, 62, 25677, 12, 8367, 796, 1988, 13, 198, 220, 220, 220, 220, 220, 43504, 10619, 43979, 62, 25677, 5390, 45079, 62, 50145, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 16876, 1438, 796, 705, 93, 25927, 62, 24396, 4458, 198, 220, 220, 220, 220, 220, 611, 62, 4023, 62, 25927, 93, 2617, 62, 24396, 7, 1988, 6739, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 4023, 62, 25927, 93, 1136, 62, 25677, 62, 3245, 13, 198, 220, 220, 220, 42865, 43979, 62, 25677, 34178, 48920, 3963, 45079, 62, 50145, 13, 198, 220, 220, 220, 20832, 43679, 45079, 62, 50145, 13315, 35374, 1438, 796, 284, 62, 21037, 7, 2214, 1267, 39319, 43979, 62, 25677, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 220, 220, 1988, 796, 43979, 62, 25677, 12, 8367, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 4023, 62, 25927, 93, 2617, 62, 24396, 13, 198, 220, 220, 220, 285, 85, 62, 24396, 796, 11248, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 4023, 62, 25927, 93, 1136, 62, 24396, 13, 198, 220, 220, 220, 11248, 796, 285, 85, 62, 24396, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 4023, 62, 25927, 93, 2617, 62, 9641, 13, 198, 220, 220, 220, 24994, 17395, 362, 796, 705, 83, 24313, 4458, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 4023, 62, 25927, 93, 2617, 62, 7890, 13, 198, 220, 220, 220, 285, 85, 62, 7890, 796, 1366, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 4023, 62, 25927, 93, 1136, 62, 7890, 13, 198, 220, 220, 220, 1366, 796, 285, 85, 62, 7890, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 611, 62, 4023, 62, 25927, 93, 2617, 62, 66, 7890, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 42946, 62, 448, 62, 344 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS cl_apl_ecatt_upload DEFINITION PUBLIC CREATE PUBLIC ABSTRACT. PUBLIC SECTION. TYPES: BEGIN OF ty_object, d_devclass TYPE string, i_devclass TYPE string, d_obj_name TYPE string, d_obj_ver TYPE string, s_obj_type TYPE string, filename TYPE string, END OF ty_object. METHODS: upload ABSTRACT CHANGING ch_object TYPE ty_object, upload_data_from_stream ABSTRACT IMPORTING name TYPE string RAISING cx_ecatt_apl. PROTECTED SECTION. DATA: template_over_all TYPE REF TO if_ixml_document, exception_to_raise TYPE REF TO cx_root, ecatt_object TYPE REF TO cl_apl_ecatt_object, tadir_preset TYPE string. METHODS: raise_upload_exception IMPORTING previous TYPE REF TO cx_root, get_variants_from_dom IMPORTING params TYPE any. PRIVATE SECTION. ENDCLASS. CLASS cl_apl_ecatt_upload IMPLEMENTATION. METHOD raise_upload_exception. RETURN. ENDMETHOD. METHOD get_variants_from_dom. RETURN. ENDMETHOD. ENDCLASS.
[ 31631, 537, 62, 64, 489, 62, 721, 1078, 62, 25850, 5550, 20032, 17941, 44731, 29244, 6158, 44731, 9564, 18601, 10659, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 15252, 11, 198, 220, 220, 220, 220, 220, 220, 220, 288, 62, 7959, 4871, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 7959, 4871, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 288, 62, 26801, 62, 3672, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 288, 62, 26801, 62, 332, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 264, 62, 26801, 62, 4906, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 29472, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 15252, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 9516, 9564, 18601, 10659, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 442, 62, 15252, 41876, 1259, 62, 15252, 11, 198, 220, 220, 220, 220, 220, 9516, 62, 7890, 62, 6738, 62, 5532, 9564, 18601, 10659, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 1438, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 43213, 62, 721, 1078, 62, 64, 489, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 42865, 25, 11055, 62, 2502, 62, 439, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 22897, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6631, 62, 1462, 62, 40225, 41876, 4526, 37, 5390, 43213, 62, 15763, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9940, 1078, 62, 15252, 41876, 4526, 37, 5390, 537, 62, 64, 489, 62, 721, 1078, 62, 15252, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 36264, 343, 62, 18302, 316, 41876, 4731, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 5298, 62, 25850, 62, 1069, 4516, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2180, 41876, 4526, 37, 5390, 43213, 62, 15763, 11, 198, 220, 220, 220, 220, 220, 651, 62, 25641, 1187, 62, 6738, 62, 3438, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42287, 41876, 597, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 537, 62, 64, 489, 62, 721, 1078, 62, 25850, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 5298, 62, 25850, 62, 1069, 4516, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 25641, 1187, 62, 6738, 62, 3438, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
CLASS ltcl_high_scores DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS FINAL. PRIVATE SECTION. METHODS test_list_of_scores FOR TESTING RAISING cx_static_check. METHODS test_latest_score FOR TESTING RAISING cx_static_check. METHODS test_personal_best FOR TESTING RAISING cx_static_check. METHODS test_personal_top_three FOR TESTING RAISING cx_static_check. METHODS test_personal_highest_to_low FOR TESTING RAISING cx_static_check. METHODS test_personal_top_tie FOR TESTING RAISING cx_static_check. METHODS test_personal_top_less_3 FOR TESTING RAISING cx_static_check. METHODS test_personal_top_only_1 FOR TESTING RAISING cx_static_check. ENDCLASS. CLASS ltcl_high_scores IMPLEMENTATION. "List of scores METHOD test_list_of_scores. DATA(input_values) = VALUE zcl_high_scores=>integertab( ( 30 ) ( 50 ) ( 20 ) ( 70 ) ). DATA(cut) = NEW zcl_high_scores( input_values ). DATA(expected_values) = VALUE zcl_high_scores=>integertab( ( 30 ) ( 50 ) ( 20 ) ( 70 ) ). cl_abap_unit_assert=>assert_equals( act = cut->list_scores( ) exp = expected_values ). ENDMETHOD. "Latest score METHOD test_latest_score. DATA(input_values) = VALUE zcl_high_scores=>integertab( ( 100 ) ( 0 ) ( 90 ) ( 30 ) ). DATA(cut) = NEW zcl_high_scores( input_values ). cl_abap_unit_assert=>assert_equals( act = cut->latest( ) exp = 30 ). ENDMETHOD. "Personal best METHOD test_personal_best. DATA(input_values) = VALUE zcl_high_scores=>integertab( ( 40 ) ( 100 ) ( 70 ) ). DATA(cut) = NEW zcl_high_scores( input_values ). cl_abap_unit_assert=>assert_equals( act = cut->personalbest( ) exp = 100 ). ENDMETHOD. "Personal top three from a list of scores METHOD test_personal_top_three. DATA(input_values) = VALUE zcl_high_scores=>integertab( ( 10 ) ( 30 ) ( 90 ) ( 30 ) ( 100 ) ( 20 ) ( 10 ) ( 0 ) ( 30 ) ( 40 ) ( 40 ) ( 40 ) ( 70 ) ( 70 ) ). DATA(cut) = NEW zcl_high_scores( input_values ). DATA(expected_values) = VALUE zcl_high_scores=>integertab( ( 100 ) ( 90 ) ( 70 ) ). cl_abap_unit_assert=>assert_equals( act = cut->personaltopthree( ) exp = expected_values ). ENDMETHOD. "Personal top highest to lowest METHOD test_personal_highest_to_low. DATA(input_values) = VALUE zcl_high_scores=>integertab( ( 20 ) ( 10 ) ( 30 ) ). DATA(cut) = NEW zcl_high_scores( input_values ). DATA(expected_values) = VALUE zcl_high_scores=>integertab( ( 30 ) ( 20 ) ( 10 ) ). cl_abap_unit_assert=>assert_equals( act = cut->personaltopthree( ) exp = expected_values ). ENDMETHOD. "Personal top when there is a tie" METHOD test_personal_top_tie. DATA(input_values) = VALUE zcl_high_scores=>integertab( ( 40 ) ( 20 ) ( 40 ) ( 30 ) ). DATA(cut) = NEW zcl_high_scores( input_values ). DATA(expected_values) = VALUE zcl_high_scores=>integertab( ( 40 ) ( 40 ) ( 30 ) ). cl_abap_unit_assert=>assert_equals( act = cut->personaltopthree( ) exp = expected_values ). ENDMETHOD. "Personal top when there are less than 3 METHOD test_personal_top_less_3. DATA(input_values) = VALUE zcl_high_scores=>integertab( ( 30 ) ( 70 ) ). DATA(cut) = NEW zcl_high_scores( input_values ). DATA(expected_values) = VALUE zcl_high_scores=>integertab( ( 70 ) ( 30 ) ). cl_abap_unit_assert=>assert_equals( act = cut->personaltopthree( ) exp = expected_values ). ENDMETHOD. "Personal top when there is only one METHOD test_personal_top_only_1. DATA(input_values) = VALUE zcl_high_scores=>integertab( ( 40 ) ). DATA(cut) = NEW zcl_high_scores( input_values ). DATA(expected_values) = VALUE zcl_high_scores=>integertab( ( 40 ) ). cl_abap_unit_assert=>assert_equals( act = cut->personaltopthree( ) exp = expected_values ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 83, 565, 62, 8929, 62, 1416, 2850, 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, 1332, 62, 4868, 62, 1659, 62, 1416, 2850, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 1332, 62, 42861, 62, 26675, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 1332, 62, 22682, 62, 13466, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 1332, 62, 22682, 62, 4852, 62, 15542, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 1332, 62, 22682, 62, 35323, 62, 1462, 62, 9319, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 1332, 62, 22682, 62, 4852, 62, 36224, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 1332, 62, 22682, 62, 4852, 62, 1203, 62, 18, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 1332, 62, 22682, 62, 4852, 62, 8807, 62, 16, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 628, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 8929, 62, 1416, 2850, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 366, 8053, 286, 8198, 198, 220, 337, 36252, 1332, 62, 4868, 62, 1659, 62, 1416, 2850, 13, 198, 220, 220, 220, 42865, 7, 15414, 62, 27160, 8, 796, 26173, 8924, 1976, 565, 62, 8929, 62, 1416, 2850, 14804, 18908, 861, 397, 7, 357, 1542, 1267, 357, 2026, 1267, 357, 1160, 1267, 357, 4317, 1267, 6739, 198, 220, 220, 220, 42865, 7, 8968, 8, 796, 12682, 1976, 565, 62, 8929, 62, 1416, 2850, 7, 5128, 62, 27160, 6739, 198, 220, 220, 220, 42865, 7, 40319, 62, 27160, 8, 796, 26173, 8924, 1976, 565, 62, 8929, 62, 1416, 2850, 14804, 18908, 861, 397, 7, 357, 1542, 1267, 357, 2026, 1267, 357, 1160, 1267, 357, 4317, 1267, 6739, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 719, 796, 2005, 3784, 4868, 62, 1416, 2850, 7, 1267, 198, 220, 220, 220, 220, 220, 1033, 796, 2938, 62, 27160, 6739, 198, 220, 23578, 49273, 13, 628, 220, 366, 39478, 4776, 198, 220, 337, 36252, 1332, 62, 42861, 62, 26675, 13, 198, 220, 220, 220, 42865, 7, 15414, 62, 27160, 8, 796, 26173, 8924, 1976, 565, 62, 8929, 62, 1416, 2850, 14804, 18908, 861, 397, 7, 357, 1802, 1267, 357, 657, 1267, 357, 4101, 1267, 357, 1542, 1267, 6739, 198, 220, 220, 220, 42865, 7, 8968, 8, 796, 12682, 1976, 565, 62, 8929, 62, 1416, 2850, 7, 5128, 62, 27160, 6739, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 719, 796, 2005, 3784, 42861, 7, 1267, 198, 220, 220, 220, 220, 220, 1033, 796, 1542, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 366, 30228, 1266, 198, 220, 337, 36252, 1332, 62, 22682, 62, 13466, 13, 198, 220, 220, 220, 42865, 7, 15414, 62, 27160, 8, 796, 26173, 8924, 1976, 565, 62, 8929, 62, 1416, 2850, 14804, 18908, 861, 397, 7, 357, 2319, 1267, 357, 1802, 1267, 357, 4317, 1267, 6739, 198, 220, 220, 220, 42865, 7, 8968, 8, 796, 12682, 1976, 565, 62, 8929, 62, 1416, 2850, 7, 5128, 62, 27160, 6739, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 719, 796, 2005, 3784, 22682, 13466, 7, 1267, 198, 220, 220, 220, 220, 220, 1033, 796, 1802, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 366, 30228, 1353, 1115, 422, 257, 1351, 286, 8198, 198, 220, 337, 36252, 1332, 62, 22682, 62, 4852, 62, 15542, 13, 198, 220, 220, 220, 42865, 7, 15414, 62, 27160, 8, 796, 26173, 8924, 1976, 565, 62, 8929, 62, 1416, 2850, 14804, 18908, 861, 397, 7, 357, 838, 1267, 357, 1542, 1267, 357, 4101, 1267, 357, 1542, 1267, 357, 1802, 1267, 357, 1160, 1267, 357, 838, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 657, 1267, 357, 1542, 1267, 357, 2319, 1267, 357, 2319, 1267, 357, 2319, 1267, 357, 4317, 1267, 357, 4317, 1267, 6739, 198, 220, 220, 220, 42865, 7, 8968, 8, 796, 12682, 1976, 565, 62, 8929, 62, 1416, 2850, 7, 5128, 62, 27160, 6739, 198, 220, 220, 220, 42865, 7, 40319, 62, 27160, 8, 796, 26173, 8924, 1976, 565, 62, 8929, 62, 1416, 2850, 14804, 18908, 861, 397, 7, 357, 1802, 1267, 357, 4101, 1267, 357, 4317, 1267, 6739, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 719, 796, 2005, 3784, 6259, 2501, 404, 15542, 7, 1267, 198, 220, 220, 220, 220, 220, 1033, 796, 2938, 62, 27160, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 366, 30228, 1353, 4511, 284, 9016, 198, 220, 337, 36252, 1332, 62, 22682, 62, 35323, 62, 1462, 62, 9319, 13, 198, 220, 220, 220, 42865, 7, 15414, 62, 27160, 8, 796, 26173, 8924, 1976, 565, 62, 8929, 62, 1416, 2850, 14804, 18908, 861, 397, 7, 357, 1160, 1267, 357, 838, 1267, 357, 1542, 1267, 6739, 198, 220, 220, 220, 42865, 7, 8968, 8, 796, 12682, 1976, 565, 62, 8929, 62, 1416, 2850, 7, 5128, 62, 27160, 6739, 198, 220, 220, 220, 42865 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_phone_number DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. METHODS clean IMPORTING !number TYPE string RETURNING VALUE(result) TYPE string RAISING cx_parameter_invalid. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_phone_number IMPLEMENTATION. METHOD clean. " add your code here ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 4862, 62, 17618, 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, 3424, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 17618, 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, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 17143, 2357, 62, 259, 12102, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 31631, 1976, 565, 62, 4862, 62, 17618, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 3424, 13, 198, 1, 751, 534, 2438, 994, 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 ]
CLASS ltcl_abapgit_popups_mock DEFINITION FOR TESTING. PUBLIC SECTION. INTERFACES: zif_abapgit_popups. ENDCLASS. CLASS ltcl_no_dependency_injection DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PRIVATE SECTION. METHODS: no_injection FOR TESTING RAISING cx_static_check. ENDCLASS. CLASS ltcl_simple_dependency_inject DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PRIVATE SECTION. METHODS: setup, simple_injection FOR TESTING RAISING cx_static_check. ENDCLASS. CLASS ltcl_abapgit_popups_mock IMPLEMENTATION. METHOD zif_abapgit_popups~branch_list_popup. ENDMETHOD. METHOD zif_abapgit_popups~branch_popup_callback. ENDMETHOD. METHOD zif_abapgit_popups~create_branch_popup. ENDMETHOD. METHOD zif_abapgit_popups~package_popup_callback. ENDMETHOD. METHOD zif_abapgit_popups~popup_folder_logic. ENDMETHOD. METHOD zif_abapgit_popups~popup_object. ENDMETHOD. METHOD zif_abapgit_popups~popup_package_export. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_confirm. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_create_package. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_create_transp_branch. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_inform. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_select_from_list. ENDMETHOD. METHOD zif_abapgit_popups~popup_to_select_transports. ENDMETHOD. METHOD zif_abapgit_popups~popup_transport_request. ENDMETHOD. METHOD zif_abapgit_popups~repo_new_offline. ENDMETHOD. METHOD zif_abapgit_popups~repo_popup. ENDMETHOD. METHOD zif_abapgit_popups~popup_proxy_bypass. ENDMETHOD. METHOD zif_abapgit_popups~popup_search_help. ENDMETHOD. ENDCLASS. CLASS ltcl_no_dependency_injection IMPLEMENTATION. METHOD no_injection. DATA: li_popups TYPE REF TO zif_abapgit_popups, lo_class_descr TYPE REF TO cl_abap_classdescr. li_popups = zcl_abapgit_ui_factory=>get_popups( ). lo_class_descr ?= cl_abap_classdescr=>describe_by_object_ref( li_popups ). cl_abap_unit_assert=>assert_equals( exp = '\CLASS=ZCL_ABAPGIT_POPUPS' act = lo_class_descr->absolute_name ). ENDMETHOD. ENDCLASS. CLASS ltcl_simple_dependency_inject IMPLEMENTATION. METHOD setup. DATA: lo_popups_mock TYPE REF TO ltcl_abapgit_popups_mock. CREATE OBJECT lo_popups_mock. zcl_abapgit_ui_injector=>set_popups( lo_popups_mock ). ENDMETHOD. METHOD simple_injection. DATA: li_popups TYPE REF TO zif_abapgit_popups, lo_class_descr TYPE REF TO cl_abap_classdescr. li_popups = zcl_abapgit_ui_factory=>get_popups( ). lo_class_descr ?= cl_abap_classdescr=>describe_by_object_ref( li_popups ). cl_abap_unit_assert=>assert_equals( exp = '\CLASS-POOL=ZCL_ABAPGIT_UI_INJECTOR\CLASS=LTCL_ABAPGIT_POPUPS_MOCK' act = lo_class_descr->absolute_name ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 83, 565, 62, 397, 499, 18300, 62, 12924, 4739, 62, 76, 735, 5550, 20032, 17941, 7473, 43001, 2751, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 3919, 62, 45841, 1387, 62, 259, 29192, 5550, 20032, 17941, 7473, 43001, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45698, 42, 49277, 43638, 5805, 7597, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 360, 4261, 6234, 6006, 9863, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 645, 62, 259, 29192, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 36439, 62, 45841, 1387, 62, 259, 752, 5550, 20032, 17941, 7473, 43001, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45698, 42, 49277, 43638, 5805, 7597, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 360, 4261, 6234, 6006, 9863, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 9058, 11, 198, 220, 220, 220, 220, 220, 2829, 62, 259, 29192, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 397, 499, 18300, 62, 12924, 4739, 62, 76, 735, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 1671, 3702, 62, 4868, 62, 12924, 929, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 1671, 3702, 62, 12924, 929, 62, 47423, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 17953, 62, 1671, 3702, 62, 12924, 929, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 26495, 62, 12924, 929, 62, 47423, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 43551, 62, 6404, 291, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 15252, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 26495, 62, 39344, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 10414, 2533, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 17953, 62, 26495, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 17953, 62, 7645, 79, 62, 1671, 3702, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 259, 687, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 19738, 62, 6738, 62, 4868, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 1462, 62, 19738, 62, 7645, 3742, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 7645, 634, 62, 25927, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 260, 7501, 62, 3605, 62, 2364, 1370, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 260, 7501, 62, 12924, 929, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 36436, 62, 1525, 6603, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 93, 12924, 929, 62, 12947, 62, 16794, 13, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 3919, 62, 45841, 1387, 62, 259, 29192, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 645, 62, 259, 29192, 13, 628, 220, 220, 220, 42865, 25, 7649, 62, 12924, 4739, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 4871, 62, 20147, 81, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 4871, 20147, 81, 13, 628, 220, 220, 220, 7649, 62, 12924, 4739, 796, 1976, 565, 62, 397, 499, 18300, 62, 9019, 62, 69, 9548, 14804, 1136, 62, 12924, 4739, 7, 6739, 628, 220, 220, 220, 2376, 62, 4871, 62, 20147, 81, 5633, 28, 537, 62, 397, 499, 62, 4871, 20147, 81, 14804, 20147, 4892, 62, 1525, 62, 15252, 62, 5420, 7, 7649, 62, 12924, 4739, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 1033, 796, 705 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
class ZLNKECL_STRING_CONVERSIONS definition public final create private . *"* public components of class ZLNKECL_STRING_CONVERSIONS *"* do not include other source files here!!! public section. class-methods STRING_TO_XSTRING importing !INPUT type STRING exporting !OUTPUT type XSTRING . class-methods XSTRING_TO_STRING importing !INPUT type XSTRING exporting !OUTPUT type STRING . class-methods XSTRING_TO_XSTRING_TAB importing !I_XSTRING type XSTRING !I_LINE_LENGTH type I returning value(E_XSTRING_TABLE) type XSTRING_TABLE . protected section. *"* protected components of class ZLNKECL_STRING_CONVERSIONS *"* do not include other source files here!!! private section. *"* private components of class ZLNKECL_STRING_CONVERSIONS *"* do not include other source files here!!! ENDCLASS. CLASS ZLNKECL_STRING_CONVERSIONS IMPLEMENTATION. METHOD string_to_xstring. *--------------------------------------------------------------------* * Company: RocketSteam * Author: Jordi Escoda, 28th July 2014 * Converts from string to xstring *--------------------------------------------------------------------* DATA: lr_conv_ce TYPE REF TO cl_abap_conv_out_ce. DATA: size TYPE i. "#EC NEEDED lr_conv_ce = cl_abap_conv_out_ce=>create( encoding = 'UTF-8' ). CALL METHOD lr_conv_ce->write EXPORTING data = input IMPORTING len = size. output = lr_conv_ce->get_buffer( ). ENDMETHOD. METHOD xstring_to_string. *--------------------------------------------------------------------* * Company: RocketSteam * Author: Jordi Escoda, 28th July 2014 * Converts from xstring to string *--------------------------------------------------------------------* DATA: size TYPE i. "#EC NEEDED DATA: lr_conv_ci TYPE REF TO cl_abap_conv_in_ce. lr_conv_ci = cl_abap_conv_in_ce=>create( input = input ). CALL METHOD lr_conv_ci->read IMPORTING data = output len = size. ENDMETHOD. METHOD xstring_to_xstring_tab. *--------------------------------------------------------------------* * Company: RocketSteam * Author: Jordi Escoda, 28th Nov 2014 * Converts from xstring to xstring table, with specified line length. *--------------------------------------------------------------------* DATA: l_length TYPE i. DATA: l_index_start TYPE i. DATA: l_xstr_tmp TYPE xstring. DATA: l_parts TYPE i. DATA: l_mod TYPE i. CHECK i_line_length > 0. l_length = XSTRLEN( i_xstring ). l_parts = l_length DIV i_line_length. l_mod = l_length MOD i_line_length. l_index_start = 0. DO l_parts TIMES. l_xstr_tmp = i_xstring+l_index_start(i_line_length). l_index_start = l_index_start + i_line_length. APPEND l_xstr_tmp TO e_xstring_table. ENDDO. IF l_mod > 0. l_xstr_tmp = i_xstring+l_index_start. APPEND l_xstr_tmp TO e_xstring_table. ENDIF. ENDMETHOD. ENDCLASS.
[ 4871, 1168, 43, 46888, 2943, 43, 62, 18601, 2751, 62, 10943, 28884, 11053, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 2839, 764, 198, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 43, 46888, 2943, 43, 62, 18601, 2751, 62, 10943, 28884, 11053, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 11377, 2665, 13, 628, 220, 1398, 12, 24396, 82, 19269, 2751, 62, 10468, 62, 55, 18601, 2751, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 1268, 30076, 2099, 19269, 2751, 198, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 5145, 2606, 7250, 3843, 2099, 1395, 18601, 2751, 764, 198, 220, 1398, 12, 24396, 82, 1395, 18601, 2751, 62, 10468, 62, 18601, 2751, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 1268, 30076, 2099, 1395, 18601, 2751, 198, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 5145, 2606, 7250, 3843, 2099, 19269, 2751, 764, 198, 220, 1398, 12, 24396, 82, 1395, 18601, 2751, 62, 10468, 62, 55, 18601, 2751, 62, 5603, 33, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 55, 18601, 2751, 2099, 1395, 18601, 2751, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 24027, 62, 43, 49494, 2099, 314, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 36, 62, 55, 18601, 2751, 62, 38148, 8, 2099, 1395, 18601, 2751, 62, 38148, 764, 198, 24326, 2665, 13, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 43, 46888, 2943, 43, 62, 18601, 2751, 62, 10943, 28884, 11053, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 19734, 2665, 13, 198, 9, 1, 9, 2839, 6805, 286, 1398, 1168, 43, 46888, 2943, 43, 62, 18601, 2751, 62, 10943, 28884, 11053, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 43, 46888, 2943, 43, 62, 18601, 2751, 62, 10943, 28884, 11053, 30023, 2538, 10979, 6234, 13, 628, 198, 49273, 4731, 62, 1462, 62, 87, 8841, 13, 198, 9, 10097, 650, 9, 198, 9, 5834, 25, 16920, 19109, 198, 9, 6434, 25, 38317, 72, 16319, 11329, 11, 2579, 400, 2901, 1946, 198, 9, 1482, 24040, 422, 4731, 284, 2124, 8841, 198, 9, 10097, 650, 9, 198, 220, 42865, 25, 300, 81, 62, 42946, 62, 344, 41876, 4526, 37, 5390, 220, 537, 62, 397, 499, 62, 42946, 62, 448, 62, 344, 13, 198, 220, 42865, 25, 2546, 41876, 1312, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 36465, 1961, 628, 220, 300, 81, 62, 42946, 62, 344, 796, 537, 62, 397, 499, 62, 42946, 62, 448, 62, 344, 14804, 17953, 7, 21004, 796, 705, 48504, 12, 23, 6, 6739, 628, 220, 42815, 337, 36252, 300, 81, 62, 42946, 62, 344, 3784, 13564, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 1366, 796, 5128, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 18896, 220, 796, 2546, 13, 628, 220, 5072, 796, 300, 81, 62, 42946, 62, 344, 3784, 1136, 62, 22252, 7, 6739, 198, 198, 10619, 49273, 13, 628, 198, 49273, 2124, 8841, 62, 1462, 62, 8841, 13, 198, 9, 10097, 650, 9, 198, 9, 5834, 25, 16920, 19109, 198, 9, 6434, 25, 38317, 72, 16319, 11329, 11, 2579, 400, 2901, 1946, 198, 9, 1482, 24040, 422, 2124, 8841, 284, 4731, 198, 9, 10097, 650, 9, 198, 220, 42865, 25, 2546, 41876, 1312, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 36465, 1961, 198, 220, 42865, 25, 300, 81, 62, 42946, 62, 979, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 42946, 62, 259, 62, 344, 13, 628, 220, 300, 81, 62, 42946, 62, 979, 796, 537, 62, 397, 499, 62, 42946, 62, 259, 62, 344, 14804, 17953, 7, 5128, 796, 5128, 6739, 628, 220, 42815, 337, 36252, 300, 81, 62, 42946, 62, 979, 3784, 961, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 1366, 796, 5072, 198, 220, 220, 220, 220, 220, 18896, 220, 796, 2546, 13, 198, 198, 10619, 49273, 13, 628, 198, 49273, 2124, 8841, 62, 1462, 62, 87, 8841, 62, 8658, 13, 198, 9, 10097, 650, 9, 198, 9, 5834, 25, 16920, 19109, 198, 9, 6434, 25, 38317, 72, 16319, 11329, 11, 2579, 400, 5267, 1946, 198, 9, 1482, 24040, 422, 2124, 8841, 284, 2124, 8841, 3084, 11, 351, 7368, 1627, 4129, 13, 198, 9, 10097, 650, 9, 628, 220, 42865, 25, 300, 62, 13664, 41876, 1312, 13, 198, 220, 42865, 25, 300, 62, 9630, 62, 9688, 41876, 1312, 13, 198, 220, 42865, 25, 300, 62, 87, 2536, 62, 22065, 41876, 2124, 8841, 13, 198, 220, 42865, 25, 300, 62, 42632, 41876, 1312, 13, 198, 220, 42865, 25, 300, 62, 4666, 41876, 1312, 13, 628, 220, 5870, 25171, 1312, 62, 1370, 62, 13664, 1875, 657, 13, 628, 220, 300, 62, 13664, 796, 1395, 2257, 7836, 1677, 7, 1312, 62, 87, 8841, 6739, 198, 220, 300, 62, 42632, 796, 300, 62, 13664, 360, 3824, 1312, 62, 1370, 62, 13664, 13, 198, 220, 300, 62, 4666, 796, 300, 62, 13664, 19164, 1312, 62, 1370, 62, 13664, 13, 628, 220, 300, 62, 9630, 62, 9688, 796, 657, 13, 198, 220, 8410, 300, 62, 42632, 31742, 1546, 13, 198, 220, 220, 220, 300, 62, 87, 2536, 62, 22065, 796, 1312, 62, 87, 8841, 10, 75, 62, 9630, 62, 9688, 7, 72, 62, 1370, 62, 13664, 737, 198, 220, 220, 220, 300, 62, 9630, 62, 9688, 796, 300, 62, 9630, 62, 9688, 1343, 1312, 62, 1370, 62, 13664, 13, 198, 220, 220, 220, 43504, 10619, 300, 62, 87, 2536, 62, 22065, 5390, 304, 62, 87, 8841, 62 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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ORTING *" REFERENCE(I_APPSYS) TYPE /SAPTRX/APPLSYSTEM *" REFERENCE(I_EVENT_TYPE) TYPE /SAPTRX/EVTYPES *" REFERENCE(I_ALL_APPL_TABLES) TYPE TRXAS_TABCONTAINER *" REFERENCE(I_EVENT_TYPE_CNTL_TABS) TYPE TRXAS_EVENTTYPE_TABS *" REFERENCE(I_EVENTS) TYPE TRXAS_EVT_CTABS *" TABLES *" CT_TRACKINGHEADER STRUCTURE /SAPTRX/BAPI_EVM_HEADER *" CT_TRACKLOCATION STRUCTURE /SAPTRX/BAPI_EVM_LOCATIONID *" OPTIONAL *" CT_TRACKADDRESS STRUCTURE /SAPTRX/BAPI_EVM_ADDRESS OPTIONAL *" CT_TRACKLOCATIONDESCR STRUCTURE /SAPTRX/BAPI_EVM_LOCDESCR *" OPTIONAL *" CT_TRACKLOCADDITIONALID STRUCTURE /SAPTRX/BAPI_EVM_LOCADDID *" OPTIONAL *" CT_TRACKPARTNERID STRUCTURE /SAPTRX/BAPI_EVM_PARTNERID *" OPTIONAL *" CT_TRACKPARTNERADDID STRUCTURE /SAPTRX/BAPI_EVM_PARTNERADDID *" OPTIONAL *" CT_TRACKESTIMDEADLINE STRUCTURE /SAPTRX/BAPI_EVM_ESTIMDEADL *" OPTIONAL *" CT_TRACKCONFIRMSTATUS STRUCTURE /SAPTRX/BAPI_EVM_CONFSTAT *" OPTIONAL *" CT_TRACKNEXTEVENT STRUCTURE /SAPTRX/BAPI_EVM_NEXTEVENT *" OPTIONAL *" CT_TRACKNEXTEVDEADLINES STRUCTURE /SAPTRX/BAPI_EVM_NEXTEVDEADL *" OPTIONAL *" CT_TRACKREFERENCES STRUCTURE /SAPTRX/BAPI_EVM_REFERENCE *" OPTIONAL *" CT_TRACKMEASURESULTS STRUCTURE /SAPTRX/BAPI_EVM_MEASRESULT *" OPTIONAL *" CT_TRACKSTATUSATTRIB STRUCTURE /SAPTRX/BAPI_EVM_STATUSATTR *" OPTIONAL *" CT_TRACKPARAMETERS STRUCTURE /SAPTRX/BAPI_EVM_PARAMETERS *" OPTIONAL *" CT_TRACKFILEHEADER STRUCTURE /SAPTRX/BAPI_EVM_FILEHEADER *" OPTIONAL *" CT_TRACKFILEREF STRUCTURE /SAPTRX/BAPI_EVM_FILEREF OPTIONAL *" CT_TRACKFILEBIN STRUCTURE /SAPTRX/BAPI_EVM_FILEBIN OPTIONAL *" CT_TRACKFILECHAR STRUCTURE /SAPTRX/BAPI_EVM_FILECHAR OPTIONAL *" CT_TRACKTEXTHEADER STRUCTURE /SAPTRX/BAPI_EVM_TEXTHEADER *" OPTIONAL *" CT_TRACKTEXTLINES STRUCTURE /SAPTRX/BAPI_EVM_TEXTLINES *" OPTIONAL *" CT_TRACKEEMODIFY STRUCTURE /SAPTRX/BAPI_EVM_EE_MODIFY OPTIONAL *" CT_EXTENSIONIN STRUCTURE BAPIPAREX OPTIONAL *" CT_EXTENSIONOUT STRUCTURE BAPIPAREX OPTIONAL *" CT_LOGTABLE STRUCTURE BAPIRET2 OPTIONAL *" CHANGING *" REFERENCE(C_EVENTID_MAP) TYPE TRXAS_EVTID_EVTCNT_MAP *" EXCEPTIONS *" PARAMETER_ERROR *" EVENT_DATA_ERROR *" STOP_PROCESSING *"---------------------------------------------------------------------- CALL FUNCTION '/SCMTMS/EXTR_EVT_TO_POPU' EXPORTING i_appsys = i_appsys i_event_type = i_event_type i_all_appl_tables = i_all_appl_tables i_event_type_cntl_tabs = i_event_type_cntl_tabs i_events = i_events TABLES ct_trackingheader = ct_trackingheader ct_tracklocation = ct_tracklocation ct_trackaddress = ct_trackaddress CHANGING c_eventid_map = c_eventid_map EXCEPTIONS parameter_error = 1 event_data_error = 2 stop_processing = 3 OTHERS = 4. CASE sy-subrc. WHEN 1. RAISE parameter_error. WHEN 2. RAISE event_data_error. WHEN 3. RAISE stop_processing. ENDCASE. TRY. LOOP AT i_events ASSIGNING FIELD-SYMBOL(<ls_event>). NEW lcl_actual_event( )->get_tor_actual_event_class( <ls_event> )->adjust_ae_location_data( EXPORTING i_all_appl_tables = i_all_appl_tables iv_event_code = /scmtms/if_tor_const=>sc_tor_event-popu i_event = <ls_event> it_eventid_map = c_eventid_map CHANGING ct_trackingheader = ct_trackingheader[] ct_tracklocation = ct_tracklocation[] ct_trackparameters = ct_trackparameters[] ). ENDLOOP. CATCH cx_udm_message INTO DATA(lo_udm_message). lcl_tools=>get_errors_log( EXPORTING io_umd_message = lo_udm_message iv_appsys = i_appsys IMPORTING es_bapiret = DATA(ls_bapiret) ). APPEND ls_bapiret TO ct_logtable. RAISE stop_processing. ENDTRY. ENDFUNCTION.
[ 42296, 4177, 2849, 1976, 82, 301, 62, 70, 926, 62, 1453, 62, 6513, 62, 12924, 84, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 14565, 26491, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 2969, 3705, 16309, 8, 41876, 220, 1220, 50, 2969, 5446, 55, 14, 2969, 6489, 23060, 25361, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 20114, 3525, 62, 25216, 8, 41876, 220, 1220, 50, 2969, 5446, 55, 14, 20114, 9936, 47, 1546, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 7036, 62, 2969, 6489, 62, 5603, 9148, 1546, 8, 41876, 220, 7579, 55, 1921, 62, 5603, 2749, 1340, 30339, 1137, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 20114, 3525, 62, 25216, 62, 34, 11251, 43, 62, 5603, 4462, 8, 41876, 220, 7579, 55, 1921, 62, 20114, 3525, 25216, 62, 5603, 4462, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 20114, 15365, 8, 41876, 220, 7579, 55, 1921, 62, 20114, 51, 62, 4177, 32, 4462, 198, 9, 1, 220, 309, 6242, 28378, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 2751, 37682, 1137, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 37682, 1137, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 29701, 6234, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 29701, 6234, 2389, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 2885, 7707, 7597, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 2885, 7707, 7597, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 29701, 6234, 30910, 9419, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 29701, 30910, 9419, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 29701, 29266, 17941, 1847, 2389, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 29701, 29266, 2389, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 30709, 21479, 2389, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 30709, 21479, 2389, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 30709, 21479, 29266, 2389, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 30709, 21479, 29266, 2389, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 6465, 3955, 7206, 2885, 24027, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 6465, 3955, 7206, 2885, 43, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 10943, 39776, 44, 35744, 2937, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 10943, 37, 35744, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 45, 6369, 9328, 53, 3525, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 45, 6369, 9328, 53, 3525, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 45, 6369, 9328, 53, 7206, 2885, 34509, 1546, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 45, 6369, 9328, 53, 7206, 2885, 43, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 2200, 24302, 24181, 1546, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 2200, 24302, 18310, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 11682, 1921, 29514, 35342, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 11682, 1921, 19535, 16724, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 35744, 2937, 1404, 5446, 9865, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 35744, 2937, 1404, 5446, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 27082, 2390, 2767, 4877, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 27082, 2390, 2767, 4877, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 25664, 37682, 1137, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 25664, 37682, 1137, 198, 9, 1, 220, 220, 220, 220, 220, 220, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 46700, 9338, 37, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 46700, 9338, 37, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 220, 16356, 62, 5446, 8120, 25664, 33, 1268, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 33, 17614, 62, 36, 15996, 62, 25664, 33, 1268, 39852, 2849, 1847, 198, 9, 1, 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,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ALV_TABLE definition public final create public . *"* public components of class ZCL_ALV_TABLE *"* do not include other source files here!!! public section. data R_CONTAINER type ref to CL_GUI_CONTAINER read-only . data R_TABLE type ref to CL_GUI_ALV_GRID read-only . data R_DATA type ref to DATA read-only . events HOTSPOT_CLICK exporting value(I_COLUMN) type STRING value(I_ROW) type I . events DOUBLE_CLICK exporting value(I_COLUMN) type STRING value(I_ROW) type I . events TOOLBAR_DEFINE exporting value(IR_TOOLBAR) type ref to CL_ALV_EVENT_TOOLBAR_SET . events USER_COMMAND exporting value(I_ACTION) type SIMPLE . class-methods CREATE importing !IR_PARENT type ref to CL_GUI_CONTAINER optional !I_PARENT type C default 'C_TABLE' value(I_REPID) type SIMPLE default SY-REPID !I_TCODE type SIMPLE optional !I_ZEBRA type ABAP_BOOL default ABAP_TRUE !IT_DATA type TABLE !I_HIDE_TECH type ABAP_BOOL default ABAP_TRUE !I_HANDLE type SLIS_HANDL optional !IT_FIELDCATALOG type LVC_T_FCAT optional returning value(ER_TABLE) type ref to ZCL_ALV_TABLE raising ZCX_GENERIC . class-methods DISPLAY importing !IT_DATA type TABLE returning value(ER_TABLE) type ref to ZCL_ALV_TABLE raising ZCX_GENERIC . methods CONSTRUCTOR importing !IR_PARENT type ref to CL_GUI_CONTAINER optional !I_PARENT type C optional !I_REPID type SIMPLE optional !I_TCODE type SIMPLE optional !I_ZEBRA type ABAP_BOOL optional !IT_DATA type TABLE !I_HIDE_TECH type ABAP_BOOL default ABAP_TRUE !I_HANDLE type SLIS_HANDL optional !IT_FIELDCATALOG type LVC_T_FCAT optional raising ZCX_GENERIC . methods REFRESH importing !I_STABLE type ABAP_BOOL default ABAP_TRUE !IT_DATA type TABLE optional preferred parameter I_STABLE . methods GET_LAYOUT returning value(ES_LAYOUT) type LVC_S_LAYO . methods SET_LAYOUT importing !IS_LAYOUT type LVC_S_LAYO . methods HIDE_TOOLBAR . methods HIDE_COLUMNS . methods HIDE_COLUMN importing !I_NAME type DATA raising ZCX_GENERIC . methods SHOW_COLUMN importing !I_NAME type DATA raising ZCX_GENERIC . methods SET_COLUMN importing !I_NAME type DATA !I_KEY type ABAP_BOOL default ABAP_FALSE !I_POS type I optional !I_HIDE type ABAP_BOOL default ABAP_FALSE !I_HOTSPOT type ABAP_BOOL default ABAP_FALSE !I_EDIT type ABAP_BOOL default ABAP_FALSE !I_ICON type ABAP_BOOL default ABAP_FALSE !I_JUST type C optional !I_SUM type ABAP_BOOL default ABAP_FALSE !I_TECH type ABAP_BOOL default ABAP_FALSE !I_SILENT type ABAP_BOOL default ABAP_TRUE !I_TEXT type SIMPLE optional raising ZCX_GENERIC . methods SET_EDIT_MODE . methods SET_DISPLAY_MODE . methods SET_ROW_COLOR importing !I_FIELDNAME type SIMPLE default 'ROW_COLOR' . methods SET_CELLS_COLOR importing !I_FIELDNAME type SIMPLE default 'CELLS_COLOR' . methods SET_CELLS_STYLE importing !I_FIELDNAME type SIMPLE default 'CELLS_STYLE' . methods OPTIMIZE_COLUMS . methods GET_DATA exporting !ET_DATA type TABLE . methods GET_SELECTED exporting !ET_DATA type TABLE . methods GET_ROW importing !I_ROW type I exporting value(ES_DATA) type DATA . methods SET_ROW importing !I_ROW type I !IS_DATA type DATA . methods CLOSE . protected section. private section. *"* private components of class ZCL_ALV_TABLE *"* do not include other source files here!!! methods on_hotspot_click for event hotspot_click of cl_gui_alv_grid importing !e_row_id !e_column_id !es_row_no . methods on_double_click for event double_click of cl_gui_alv_grid importing !e_row !e_column !es_row_no . methods on_button_click for event button_click of cl_gui_alv_grid . methods on_toolbar_define for event toolbar of cl_gui_alv_grid importing !e_object !e_interactive . methods on_user_command for event user_command of cl_gui_alv_grid importing !e_ucomm . ENDCLASS. CLASS ZCL_ALV_TABLE IMPLEMENTATION. method close. r_table->free( ). r_container->free( ). endmethod. method constructor. if ir_parent is bound. r_container = ir_parent. else. data lr_container type ref to cl_gui_custom_container. create object lr_container exporting container_name = i_parent. r_container ?= lr_container. endif. create object r_table exporting i_parent = r_container. create data r_data like it_data. field-symbols <lt_data> type any table. assign r_data->* to <lt_data>. <lt_data> = it_data. data lr_struc type ref to data. create data lr_struc like line of <lt_data>. data lr_descr type ref to cl_abap_structdescr. lr_descr ?= cl_abap_structdescr=>describe_by_data_ref( lr_struc ). data lt_fieldcatalog like it_fieldcatalog. lt_fieldcatalog = it_fieldcatalog. data l_struc type tabname. if lt_fieldcatalog is initial. l_struc = lr_descr->absolute_name+6. endif. if i_tcode is initial. data ls_vrnt type disvariant. ls_vrnt-report = i_repid. else. concatenate i_repid '/' i_tcode into ls_vrnt-report. endif. ls_vrnt-handle = i_handle. data ls_layo type lvc_s_layo. ls_layo-zebra = i_zebra. ls_layo-cwidth_opt = abap_true. ls_layo-sel_mode = 'A'. r_table->set_table_for_first_display( exporting i_structure_name = l_struc is_variant = ls_vrnt is_layout = ls_layo i_save = 'A' i_bypassing_buffer = abap_true changing it_outtab = <lt_data> it_fieldcatalog = lt_fieldcatalog exceptions others = 1 ). if sy-subrc ne 0. zcx_generic=>raise( ). endif. data lt_fcat type lvc_t_fcat. r_table->get_frontend_fieldcatalog( importing et_fieldcatalog = lt_fcat ). field-symbols <ls_fcat> like line of lt_fcat. loop at lt_fcat assigning <ls_fcat>. if i_hide_tech eq abap_true. " 04.12.2012 13:51:46 vvpikalov: ×òîáû áûëî if <ls_fcat>-fieldname cs 'GUID' or <ls_fcat>-fieldname cs 'TECH' or <ls_fcat>-fieldname cs 'COLOR'. <ls_fcat>-tech = abap_true. endif. endif. if <ls_fcat>-fieldname cs 'ICON'. <ls_fcat>-icon = abap_true. endif. *** if <ls_fcat>-datatype eq 'CURR' or *** <ls_fcat>-datatype eq 'QUAN'. *** <ls_fcat>-emphasize = 'C300'. *** endif. endloop. r_table->set_frontend_fieldcatalog( exporting it_fieldcatalog = lt_fcat ). set handler on_hotspot_click for r_table. set handler on_double_click for r_table. set handler on_button_click for r_table. set handler on_toolbar_define for r_table. set handler on_user_command for r_table. refresh( ). endmethod. method create. create object er_table exporting ir_parent = ir_parent i_parent = i_parent i_repid = i_repid i_tcode = i_tcode i_zebra = i_zebra i_hide_tech = i_hide_tech i_handle = i_handle " 26.02.2013 17:15:35 vvpikalov: Îäèí ALV äëÿ íåñêîëüêèõ ðàçíûõ ñòðóêòóð â îäíîé ïðîãðàììå it_fieldcatalog = it_fieldcatalog it_data = it_data. endmethod. method display. create object er_table exporting ir_parent = cl_gui_container=>screen0 it_data = it_data. er_table->optimize_colums( ). er_table->refresh( ). write 1. endmethod. method get_data. field-symbols <lt_data> type standard table. assign r_data->* to <lt_data>. field-symbols <ls_data> type any. loop at <lt_data> assigning <ls_data>. field-symbols <es_data> type any. append initial line to et_data assigning <es_data>. move-corresponding <ls_data> to <es_data>. endloop. endmethod. method get_layout. r_table->get_frontend_layout( importing es_layout = es_layout ). endmethod. method get_row. field-symbols <lt_data> type standard table. assign r_data->* to <lt_data>. field-symbols <ls_data> type any. read table <lt_data> assigning <ls_data> index i_row. if sy-subrc eq 0. move-corresponding <ls_data> to es_data. endif. endmethod. method get_selected. data lt_rows type lvc_t_row. r_table->get_selected_rows( importing et_index_rows = lt_rows ). delete lt_rows where rowtype is not initial. if lt_rows is initial. return. endif. field-symbols <lt_data> type standard table. assign r_data->* to <lt_data>. data ls_row like line of lt_rows. loop at lt_rows into ls_row. field-symbols <ls_data> type any. read table <lt_data> assigning <ls_data> index ls_row-index. assert sy-subrc eq 0. field-symbols <es_data> type any. append initial line to et_data assigning <es_data>. move-corresponding <ls_data> to <es_data>. endloop. endmethod. method hide_column. set_column( i_name = i_name i_hide = abap_true ). endmethod. method hide_columns. data lt_fcat type lvc_t_fcat. r_table->get_frontend_fieldcatalog( importing et_fieldcatalog = lt_fcat ). field-symbols <ls_fcat> like line of lt_fcat. loop at lt_fcat assigning <ls_fcat>. <ls_fcat>-no_out = abap_true. endloop. r_table->set_frontend_fieldcatalog( exporting it_fieldcatalog = lt_fcat ). endmethod. method hide_toolbar. *** *** *** data ls_tlbe like line of et_tlbe. *** *** clear et_tlbe. *** **** ls_tlbe = cl_gui_alv_grid=>mc_fc_detail. **** append ls_tlbe to et_tlbe. **** **** ls_tlbe = cl_gui_alv_grid=>mc_fc_refresh. **** append ls_tlbe to et_tlbe. *** *** **** ls_tlbe = cl_gui_alv_grid=>mc_fc_sort. **** append ls_tlbe to et_tlbe. **** **** ls_tlbe = cl_gui_alv_grid=>mc_fc_sort_asc. **** append ls_tlbe to et_tlbe. **** **** ls_tlbe = cl_gui_alv_grid=>mc_fc_sort_dsc. **** append ls_tlbe to et_tlbe. **** **** ls_tlbe = cl_gui_alv_grid=>mc_fc_find. **** append ls_tlbe to et_tlbe. **** **** ls_tlbe = cl_gui_alv_grid=>mc_fc_filter. **** append ls_tlbe to et_tlbe. **** **** ls_tlbe = cl_gui_alv_grid=>mc_mb_sum. **** append ls_tlbe to et_tlbe. **** **** ls_tlbe = cl_gui_alv_grid=>mc_mb_subtot. **** append ls_tlbe to et_tlbe. **** **** ls_tlbe = cl_gui_alv_grid=>mc_mb_variant. **** append ls_tlbe to et_tlbe. **** **** ls_tlbe = cl_gui_alv_grid=>mc_mb_export. **** append ls_tlbe to et_tlbe. **** **** ls_tlbe = cl_gui_alv_grid=>mc_mb_view. **** append ls_tlbe to et_tlbe. **** **** ls_tlbe = cl_gui_alv_grid=>mc_fc_print. **** append ls_tlbe to et_tlbe. *** *** **** ls_tlbe = cl_gui_alv_grid=>mc_fc_graph. **** append ls_tlbe to et_tlbe. **** **** ls_tlbe = cl_gui_alv_grid=>mc_fc_info. **** append ls_tlbe to et_tlbe. *** **** ls_tlbe = cl_gui_alv_grid=>mc_fc_loc_append_row. **** append ls_tlbe to et_tlbe. **** **** ls_tlbe = cl_gui_alv_grid=>mc_fc_loc_delete_row. **** append ls_tlbe to et_tlbe. **** **** ls_tlbe = cl_gui_alv_grid=>mc_fc_loc_insert_row. **** append ls_tlbe to et_tlbe. **** **** ls_tlbe = cl_gui_alv_grid=>mc_fc_loc_cut. **** append ls_tlbe to et_tlbe. **** **** ls_tlbe = cl_gui_alv_grid=>mc_fc_loc_copy. **** append ls_tlbe to et_tlbe. **** **** ls_tlbe = cl_gui_alv_grid=>mc_fc_loc_copy_row. **** append ls_tlbe to et_tlbe. **** **** ls_tlbe = cl_gui_alv_grid=>mc_fc_loc_paste. **** append ls_tlbe to et_tlbe. **** **** ls_tlbe = cl_gui_alv_grid=>mc_fc_loc_paste_new_row. **** append ls_tlbe to et_tlbe. **** **** ls_tlbe = cl_gui_alv_grid=>mc_fc_loc_undo. **** append ls_tlbe to et_tlbe. endmethod. method on_button_click. endmethod. method on_double_click. data l_column type string. l_column = e_column-fieldname. data l_row type i. l_row = e_row-index. raise event double_click exporting i_column = l_column i_row = l_row. endmethod. method on_hotspot_click. data l_column type string. l_column = e_column_id-fieldname. data l_row type i. l_row = e_row_id-index. raise event hotspot_click exporting i_column = l_column i_row = l_row. endmethod. method on_toolbar_define. raise event toolbar_define exporting ir_toolbar = e_object. endmethod. method on_user_command. raise event user_command exporting i_action = e_ucomm. endmethod. method optimize_colums. data ls_layout type lvc_s_layo. ls_layout = get_layout( ). ls_layout-cwidth_opt = abap_true. set_layout( ls_layout ). endmethod. method refresh. if it_data is supplied. field-symbols <lt_data> type any table. assign r_data->* to <lt_data>. <lt_data> = it_data. endif. if i_stable eq abap_true. data ls_stab type lvc_s_stbl. ls_stab = 'XX'. endif. r_table->refresh_table_display( is_stable = ls_stab ). endmethod. method set_cells_color. data ls_layout type lvc_s_layo. ls_layout = get_layout( ). ls_layout-ctab_fname = i_fieldname. set_layout( ls_layout ). endmethod. method set_cells_style. data ls_layout type lvc_s_layo. ls_layout = get_layout( ). ls_layout-stylefname = i_fieldname. set_layout( ls_layout ). endmethod. method set_column. data lt_fcat type lvc_t_fcat. r_table->get_frontend_fieldcatalog( importing et_fieldcatalog = lt_fcat ). field-symbols <ls_fcat> like line of lt_fcat. read table lt_fcat assigning <ls_fcat> with key fieldname = i_name. if sy-subrc ne 0. return. endif. if i_key is supplied. <ls_fcat>-key = i_key. endif. if i_pos is supplied. <ls_fcat>-col_pos = i_pos. endif. if i_hide is supplied. <ls_fcat>-no_out = i_hide. endif. if i_hotspot is supplied. <ls_fcat>-hotspot = i_hotspot. endif. if i_edit is supplied. <ls_fcat>-edit = i_edit. endif. if i_icon is supplied. <ls_fcat>-icon = i_icon. endif. if i_just is supplied. <ls_fcat>-just = i_just. endif. if i_sum is supplied. <ls_fcat>-do_sum = i_sum. endif. if i_tech is supplied. <ls_fcat>-tech = i_tech. endif. if i_text is supplied. <ls_fcat>-coltext = i_text. <ls_fcat>-tooltip = i_text. endif. r_table->set_frontend_fieldcatalog( exporting it_fieldcatalog = lt_fcat ). endmethod. method set_display_mode. r_table->set_ready_for_input( 0 ). endmethod. method set_edit_mode. " Ðåãèñòðàöèÿ ñîáûòèÿ íà èçìåíåíèå äàííûõ r_table->register_edit_event( cl_gui_alv_grid=>mc_evt_modified ). " Ðåãèñòðàöèÿ ñîáûòèÿ íà íàæàòèå ENTER r_table->register_edit_event( cl_gui_alv_grid=>mc_evt_enter ). r_table->set_ready_for_input( 1 ). endmethod. method set_layout. r_table->set_frontend_layout( is_layout ). endmethod. method set_row. field-symbols <lt_data> type standard table. assign r_data->* to <lt_data>. field-symbols <ls_data> type any. read table <lt_data> assigning <ls_data> index i_row. if sy-subrc eq 0. move-corresponding is_data to <ls_data>. endif. endmethod. method set_row_color. data ls_layout type lvc_s_layo. ls_layout = get_layout( ). ls_layout-info_fname = i_fieldname. set_layout( ls_layout ). endmethod. method show_column. set_column( i_name = i_name i_hide = abap_false ). endmethod. ENDCLASS.
[ 4871, 1168, 5097, 62, 1847, 53, 62, 38148, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 1847, 53, 62, 38148, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 11377, 2665, 13, 628, 220, 1366, 371, 62, 10943, 30339, 1137, 2099, 1006, 284, 7852, 62, 40156, 62, 10943, 30339, 1137, 1100, 12, 8807, 764, 198, 220, 1366, 371, 62, 38148, 2099, 1006, 284, 7852, 62, 40156, 62, 1847, 53, 62, 10761, 2389, 1100, 12, 8807, 764, 198, 220, 1366, 371, 62, 26947, 2099, 1006, 284, 42865, 1100, 12, 8807, 764, 628, 220, 2995, 44607, 4303, 2394, 62, 5097, 11860, 198, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 1988, 7, 40, 62, 25154, 5883, 45, 8, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 1988, 7, 40, 62, 49, 3913, 8, 2099, 314, 764, 198, 220, 2995, 360, 2606, 19146, 62, 5097, 11860, 198, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 1988, 7, 40, 62, 25154, 5883, 45, 8, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 1988, 7, 40, 62, 49, 3913, 8, 2099, 314, 764, 198, 220, 2995, 5390, 3535, 33, 1503, 62, 7206, 29940, 198, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 1988, 7, 4663, 62, 10468, 3535, 33, 1503, 8, 2099, 1006, 284, 7852, 62, 1847, 53, 62, 20114, 3525, 62, 10468, 3535, 33, 1503, 62, 28480, 764, 198, 220, 2995, 1294, 1137, 62, 9858, 44, 6981, 198, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 1988, 7, 40, 62, 44710, 8, 2099, 23749, 16437, 764, 628, 220, 1398, 12, 24396, 82, 29244, 6158, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 4663, 62, 27082, 3525, 2099, 1006, 284, 7852, 62, 40156, 62, 10943, 30339, 1137, 11902, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 27082, 3525, 2099, 327, 4277, 705, 34, 62, 38148, 6, 198, 220, 220, 220, 220, 220, 1988, 7, 40, 62, 35316, 2389, 8, 2099, 23749, 16437, 4277, 19704, 12, 35316, 2389, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 4825, 16820, 2099, 23749, 16437, 11902, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 21211, 33, 3861, 2099, 9564, 2969, 62, 8202, 3535, 4277, 9564, 2969, 62, 5446, 8924, 198, 220, 220, 220, 220, 220, 5145, 2043, 62, 26947, 2099, 43679, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 39, 14114, 62, 51, 25994, 2099, 9564, 2969, 62, 8202, 3535, 4277, 9564, 2969, 62, 5446, 8924, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 39, 6981, 2538, 2099, 12419, 1797, 62, 39, 6981, 43, 11902, 198, 220, 220, 220, 220, 220, 5145, 2043, 62, 11674, 3698, 9697, 1404, 1847, 7730, 2099, 406, 15922, 62, 51, 62, 4851, 1404, 11902, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 1137, 62, 38148, 8, 2099, 1006, 284, 1168, 5097, 62, 1847, 53, 62, 38148, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 34, 55, 62, 35353, 1137, 2149, 764, 198, 220, 1398, 12, 24396, 82, 13954, 31519, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 2043, 62, 26947, 2099, 43679, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 1137, 62, 38148, 8, 2099, 1006, 284, 1168, 5097, 62, 1847, 53, 62, 38148, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 34, 55, 62, 35353, 1137, 2149, 764, 198, 220, 5050, 7102, 46126, 1581, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 4663, 62, 27082, 3525, 2099, 1006, 284, 7852, 62, 40156, 62, 10943, 30339, 1137, 11902, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 27082, 3525, 2099, 327, 11902, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 35316, 2389, 2099, 23749, 16437, 11902, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 4825, 16820, 2099, 23749, 16437, 11902, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 21211, 33, 3861, 2099, 9564, 2969, 62, 8202, 3535, 11902, 198, 220, 220, 220, 220, 220, 5145, 2043, 62, 26947, 2099, 43679, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 39, 14114, 62, 51, 25994, 2099, 9564, 2969, 62, 8202, 3535, 4277, 9564, 2969, 62, 5446, 8924, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 39, 6981, 2538, 2099, 12419, 1797, 62, 39, 6981, 43, 11902, 198, 220, 220, 220, 220, 220, 5145, 2043, 62, 11674, 3698, 9697, 1404, 1847, 7730, 2099, 406, 15922, 62, 51, 62, 4851, 1404, 11902, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 34, 55, 62, 35353, 1137, 2149, 764, 198, 220, 5050, 4526, 10913, 44011, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 2257, 17534, 2099, 9564, 2969, 62, 8202, 3535, 4277, 9564, 2969, 62, 5446, 8924, 198, 220, 220, 220, 220, 220, 5145, 2043, 62, 26947, 2099, 43679, 11902, 198, 220, 220, 220, 9871, 11507, 314, 62, 2257, 17534, 764, 198, 220, 5050, 17151, 62, 43, 4792, 12425, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 1546, 62, 43, 4792, 12425, 8, 2099, 406, 15922, 62, 50, 62, 43, 4792, 46, 764, 198, 220, 5050, 25823, 62, 43, 4792, 12425, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 1797, 62, 43, 4792, 12425, 2099, 406, 15922, 62, 50, 62, 43, 4792, 46, 764, 198, 220, 5050, 367, 14114, 62, 10468, 3535, 33, 1503, 764, 198, 220, 5050, 367, 14114, 62, 25154, 5883, 8035, 764, 198, 220, 5050, 367, 14114, 62, 25154, 5883, 45, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 20608, 2099, 42865, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 34, 55, 62, 35353, 1137, 2149, 764, 198, 220, 5050, 37041, 62, 25154, 5883, 45, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 20608, 2099, 42865, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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_logger, named_log type ref to zif_logger, reopened_log type ref to zif_logger. class-methods: class_setup. methods: setup, teardown, get_first_message importing log_handle type balloghndl returning value(msg) type char255, get_messages importing log_handle type balloghndl exporting texts type table_of_strings msg_details type bal_tt_msg, format_message importing id like sy-msgid default sy-msgid lang type langu default '-' no like sy-msgno default sy-msgno v1 like sy-msgv1 default sy-msgv1 v2 like sy-msgv2 default sy-msgv2 v3 like sy-msgv3 default sy-msgv3 v4 like sy-msgv4 default sy-msgv4 returning value(msg) type string, can_create_anon_log for testing, can_create_named_log for testing, can_reopen_log for testing, can_create_expiring_log_days for testing, can_create_expiring_log_date for testing, can_open_or_create for testing, can_add_log_context for testing, can_add_to_log for testing, can_add_to_named_log for testing, auto_saves_named_log for testing, auto_saves_reopened_log for testing, can_log_string for testing, can_log_char for testing, can_log_symsg for testing, can_log_bapiret1 for testing, can_log_bapiret2 for testing, can_log_bapi_coru_return for testing, can_log_bapi_order_return for testing, can_log_rcomp for testing, can_log_prott for testing, can_log_bapirettab for testing, can_log_err for testing, can_log_chained_exceptions for testing, can_log_batch_msgs for testing, can_log_any_simple_structure for testing, can_log_any_deep_structure for testing, can_add_msg_context for testing, can_add_callback_sub for testing, can_add_callback_fm for testing, must_use_factory for testing, can_use_and_chain_aliases for testing, return_proper_status for testing, return_proper_length for testing, can_add_table_msg_context FOR TESTING RAISING cx_static_check. endclass. "lcl_Test class lcl_test implementation. method class_setup. zcl_logger=>new( object = 'ABAPUNIT' subobject = 'LOGGER' desc = 'Log saved in database' )->add( 'This message is in the database' ). endmethod. method setup. anon_log = zcl_logger=>new( ). named_log = zcl_logger=>new( object = 'ABAPUNIT' subobject = 'LOGGER' desc = `Hey it's a log` ). reopened_log = zcl_logger=>open( object = 'ABAPUNIT' subobject = 'LOGGER' desc = 'Log saved in database' ). endmethod. method can_create_anon_log. cl_aunit_assert=>assert_bound( act = anon_log msg = 'Cannot Instantiate Anonymous Log' ). endmethod. method can_create_named_log. cl_aunit_assert=>assert_bound( act = named_log msg = 'Cannot Instantiate Named Log' ). endmethod. method can_create_expiring_log_days. data expiring_log type ref to zif_logger. data act_header type bal_s_log. constants days_until_log_can_be_deleted type i value 365. expiring_log = zcl_logger_factory=>create_log( object = 'ABAPUNIT' subobject = 'LOGGER' desc = 'Log that is not deletable and expiring' settings = zcl_logger_factory=>create_settings( )->set_expiry_in_days( days_until_log_can_be_deleted )->set_must_be_kept_until_expiry( abap_true ) ). cl_aunit_assert=>assert_bound( act = expiring_log msg = 'Cannot Instantiate Expiring Log' ). call function 'BAL_LOG_HDR_READ' exporting i_log_handle = expiring_log->handle importing e_s_log = act_header. data lv_exp type d. lv_exp = sy-datum + days_until_log_can_be_deleted. cl_aunit_assert=>assert_equals( exporting exp = lv_exp act = act_header-aldate_del msg = 'Log is not expiring in correct amount of days' ). cl_aunit_assert=>assert_equals( exporting exp = abap_true act = act_header-del_before msg = 'Log should not be deletable before expiry date' ). endmethod. method can_create_expiring_log_date. data expiring_log type ref to zif_logger. data act_header type bal_s_log. constants days_until_log_can_be_deleted type i value 365. data lv_expire type d. lv_expire = sy-datum + days_until_log_can_be_deleted. expiring_log = zcl_logger_factory=>create_log( object = 'ABAPUNIT' subobject = 'LOGGER' desc = 'Log that is not deletable and expiring' settings = zcl_logger_factory=>create_settings( )->set_expiry_date( lv_expire )->set_must_be_kept_until_expiry( abap_true ) ). cl_aunit_assert=>assert_bound( act = expiring_log msg = 'Cannot Instantiate Expiring Log' ). call function 'BAL_LOG_HDR_READ' exporting i_log_handle = expiring_log->handle importing e_s_log = act_header. cl_aunit_assert=>assert_equals( exporting exp = lv_expire act = act_header-aldate_del msg = 'Log is not expiring on correct date' ). cl_aunit_assert=>assert_equals( exporting exp = abap_true act = act_header-del_before msg = 'Log should not be deletable before expiry date' ). endmethod. method can_reopen_log. cl_aunit_assert=>assert_bound( act = reopened_log msg = 'Cannot Reopen Log from DB' ). endmethod. method can_open_or_create. data: created_log type ref to zif_logger, handles type bal_t_logh. call function 'BAL_GLB_MEMORY_REFRESH'. "Close Logs reopened_log = zcl_logger=>open( object = 'ABAPUNIT' subobject = 'LOGGER' desc = 'Log saved in database' create_if_does_not_exist = abap_true ). created_log = zcl_logger=>open( object = 'ABAPUNIT' subobject = 'LOGGER' desc = 'Log not in database' create_if_does_not_exist = abap_true ). call function 'BAL_GLB_SEARCH_LOG' importing e_t_log_handle = handles. cl_aunit_assert=>assert_equals( exp = 2 act = lines( handles ) msg = 'Did not create nonexistent log from OPEN' ). endmethod. method can_add_log_context. data: log type ref to zif_logger, random_country_data type t005t, act_header type bal_s_log. random_country_data-mandt = sy-mandt. random_country_data-spras = 'D'. random_country_data-land1 = 'DE'. log = zcl_logger=>new( context = random_country_data ). call function 'BAL_LOG_HDR_READ' exporting i_log_handle = log->handle importing e_s_log = act_header. cl_aunit_assert=>assert_equals( exp = 'T005T' act = act_header-context-tabname msg = 'Did not add context to log' ). cl_aunit_assert=>assert_equals( exp = random_country_data act = act_header-context-value msg = 'Did not add context to log' ). endmethod. method can_add_to_log. data: dummy type c. message s001(00) with 'I' 'test' 'the' 'logger.' into dummy. anon_log->add( ). cl_aunit_assert=>assert_equals( exp = 'Itestthelogger.' act = get_first_message( anon_log->handle ) msg = 'Did not log system message properly' ). endmethod. method can_add_to_named_log. data: dummy type c. message s001(00) with 'Testing' 'a' 'named' 'logger.' into dummy. named_log->add( ). cl_aunit_assert=>assert_equals( exp = 'Testinganamedlogger.' act = get_first_message( named_log->handle ) msg = 'Did not write to named log' ). endmethod. method auto_saves_named_log. data: dummy type c, log_numbers type bal_t_logn, msg type string. message s000(sabp_unit) with 'Testing' 'logger' 'that' 'saves.' into dummy. named_log->add( ). msg = format_message( ). call function 'BAL_GLB_MEMORY_REFRESH'. append named_log->db_number to log_numbers. call function 'BAL_DB_LOAD' exporting i_t_lognumber = log_numbers. cl_aunit_assert=>assert_equals( exp = msg act = get_first_message( named_log->handle ) msg = 'Did not write to named log' ). endmethod. method auto_saves_reopened_log. data: log_numbers type bal_t_logn, act_texts type table_of_strings, act_text type string. reopened_log->add( 'This is another message in the database' ). call function 'BAL_GLB_MEMORY_REFRESH'. append reopened_log->db_number to log_numbers. call function 'BAL_DB_LOAD' exporting i_t_lognumber = log_numbers. get_messages( exporting log_handle = reopened_log->handle importing texts = act_texts ). read table act_texts index 1 into act_text. cl_aunit_assert=>assert_equals( exp = 'This message is in the database' act = act_text msg = 'Did not autosave to reopened log' ). read table act_texts index 2 into act_text. cl_aunit_assert=>assert_equals( exp = 'This is another message in the database' act = act_text msg = 'Did not autosave to reopened log' ). endmethod. method can_log_string. data: stringmessage type string value `Logging a string, guys!`. anon_log->add( stringmessage ). cl_aunit_assert=>assert_equals( exp = stringmessage act = get_first_message( anon_log->handle ) msg = 'Did not log system message properly' ). endmethod. method can_log_char. data: charmessage type char70 value 'Logging a char sequence!'. anon_log->add( charmessage ). cl_aunit_assert=>assert_equals( exp = charmessage act = get_first_message( anon_log->handle ) msg = 'Did not log system message properly' ). endmethod. method can_log_symsg. data: symsg type symsg, msg_handle type balmsghndl, expected_details type bal_s_msg, actual_details type bal_s_msg, actual_text type char200. expected_details-msgty = symsg-msgty = 'W'. expected_details-msgid = symsg-msgid = 'BL'. expected_details-msgno = symsg-msgno = '001'. expected_details-msgv1 = symsg-msgv1 = 'This'. expected_details-msgv2 = symsg-msgv2 = 'is'. expected_details-msgv3 = symsg-msgv3 = 'a'. expected_details-msgv4 = symsg-msgv4 = 'test'. anon_log->add( symsg ). msg_handle-log_handle = anon_log->handle. msg_handle-msgnumber = '000001'. call function 'BAL_LOG_MSG_READ' exporting i_s_msg_handle = msg_handle importing e_s_msg = actual_details e_txt_msg = actual_text. cl_aunit_assert=>assert_not_initial( act = actual_details-time_stmp msg = 'Did not log system message properly' ). expected_details-msg_count = 1. clear actual_details-time_stmp. cl_aunit_assert=>assert_equals( exp = expected_details act = actual_details msg = 'Did not log system message properly' ). cl_aunit_assert=>assert_equals( exp = 'This is a test' act = condense( actual_text ) msg = 'Did not log system message properly' ). cl_aunit_assert=>assert_equals( exp = abap_true act = anon_log->has_warnings( ) msg = 'Did not log or fetch system message properly' ). endmethod. method can_log_bapiret1. data: bapi_msg type bapiret1, msg_handle type balmsghndl, expected_details type bal_s_msg, actual_details type bal_s_msg, actual_text type char200. expected_details-msgty = bapi_msg-type = 'W'. expected_details-msgid = bapi_msg-id = 'BL'. expected_details-msgno = bapi_msg-number = '001'. expected_details-msgv1 = bapi_msg-message_v1 = 'This'. expected_details-msgv2 = bapi_msg-message_v2 = 'is'. expected_details-msgv3 = bapi_msg-message_v3 = 'a'. expected_details-msgv4 = bapi_msg-message_v4 = 'test'. anon_log->add( bapi_msg ). msg_handle-log_handle = anon_log->handle. msg_handle-msgnumber = '000001'. call function 'BAL_LOG_MSG_READ' exporting i_s_msg_handle = msg_handle importing e_s_msg = actual_details e_txt_msg = actual_text. cl_aunit_assert=>assert_not_initial( act = actual_details-time_stmp msg = 'Did not log system message properly' ). expected_details-msg_count = 1. clear actual_details-time_stmp. cl_aunit_assert=>assert_equals( exp = expected_details act = actual_details msg = 'Did not log system message properly' ). cl_aunit_assert=>assert_equals( exp = 'This is a test' act = condense( actual_text ) msg = 'Did not log system message properly' ). cl_aunit_assert=>assert_equals( exp = abap_true act = anon_log->has_warnings( ) msg = 'Did not log or fetch system message properly' ). endmethod. method can_log_bapiret2. data: bapi_msg type bapiret2, msg_handle type balmsghndl, expected_details type bal_s_msg, actual_details type bal_s_msg, actual_text type char200. expected_details-msgty = bapi_msg-type = 'W'. expected_details-msgid = bapi_msg-id = 'BL'. expected_details-msgno = bapi_msg-number = '001'. expected_details-msgv1 = bapi_msg-message_v1 = 'This'. expected_details-msgv2 = bapi_msg-message_v2 = 'is'. expected_details-msgv3 = bapi_msg-message_v3 = 'a'. expected_details-msgv4 = bapi_msg-message_v4 = 'test'. anon_log->add( bapi_msg ). msg_handle-log_handle = anon_log->handle. msg_handle-msgnumber = '000001'. call function 'BAL_LOG_MSG_READ' exporting i_s_msg_handle = msg_handle importing e_s_msg = actual_details e_txt_msg = actual_text. cl_aunit_assert=>assert_not_initial( act = actual_details-time_stmp msg = 'Did not log system message properly' ). expected_details-msg_count = 1. clear actual_details-time_stmp. cl_aunit_assert=>assert_equals( exp = expected_details act = actual_details msg = 'Did not log system message properly' ). cl_aunit_assert=>assert_equals( exp = 'This is a test' act = condense( actual_text ) msg = 'Did not log system message properly' ). cl_aunit_assert=>assert_equals( exp = abap_true act = anon_log->has_warnings( ) msg = 'Did not log or fetch system message properly' ). endmethod. method can_log_bapi_coru_return. data: bapi_msg type bapi_coru_return, msg_handle type balmsghndl, expected_details type bal_s_msg, actual_details type bal_s_msg, actual_text type char200. expected_details-msgty = bapi_msg-type = 'W'. expected_details-msgid = bapi_msg-id = 'BL'. expected_details-msgno = bapi_msg-number = '001'. expected_details-msgv1 = bapi_msg-message_v1 = 'This'. expected_details-msgv2 = bapi_msg-message_v2 = 'is'. expected_details-msgv3 = bapi_msg-message_v3 = 'a'. expected_details-msgv4 = bapi_msg-message_v4 = 'test'. anon_log->add( bapi_msg ). msg_handle-log_handle = anon_log->handle. msg_handle-msgnumber = '000001'. call function 'BAL_LOG_MSG_READ' exporting i_s_msg_handle = msg_handle importing e_s_msg = actual_details e_txt_msg = actual_text. cl_aunit_assert=>assert_not_initial( act = actual_details-time_stmp msg = 'Did not log system message properly' ). expected_details-msg_count = 1. clear actual_details-time_stmp. cl_aunit_assert=>assert_equals( exp = expected_details act = actual_details msg = 'Did not log system message properly' ). cl_aunit_assert=>assert_equals( exp = 'This is a test' act = condense( actual_text ) msg = 'Did not log system message properly' ). cl_aunit_assert=>assert_equals( exp = abap_true act = anon_log->has_warnings( ) msg = 'Did not log or fetch system message properly' ). endmethod. method can_log_bapi_order_return. data: msg_handle type balmsghndl, expected_details type bal_s_msg, actual_details type bal_s_msg, actual_text type char200. "Solution manager doens't have BAPI_ORDER_RETURN. Therefore avoid using the concrete type DATA bapi_order_return_data_ref TYPE REF TO DATA. DATA bapi_return_temp TYPE bapiret2."these fields have the same name as BAPI_ORDER_RETURN FIELD-SYMBOLS <bapi_order_return_structure> TYPE ANY. TRY. CREATE DATA bapi_order_return_data_ref TYPE ('BAPI_ORDER_RETURN'). CATCH CX_SY_CREATE_DATA_ERROR. RETURN."Non ECC System such as SolutionManager ENDTRY. ASSIGN bapi_order_return_data_ref->* TO <bapi_order_return_structure>. expected_details-msgty = bapi_return_temp-type = 'E'. expected_details-msgid = bapi_return_temp-id = 'BL'. expected_details-msgno = bapi_return_temp-number = '001'. expected_details-msgv1 = bapi_return_temp-message_v1 = 'This'. expected_details-msgv2 = bapi_return_temp-message_v2 = 'is'. expected_details-msgv3 = bapi_return_temp-message_v3 = 'a'. expected_details-msgv4 = bapi_return_temp-message_v4 = 'test'. MOVE-CORRESPONDING bapi_return_temp TO <bapi_order_return_structure>. anon_log->add( <bapi_order_return_structure> ). msg_handle-log_handle = anon_log->handle. msg_handle-msgnumber = '000001'. call function 'BAL_LOG_MSG_READ' exporting i_s_msg_handle = msg_handle importing e_s_msg = actual_details e_txt_msg = actual_text. cl_aunit_assert=>assert_not_initial( act = actual_details-time_stmp msg = 'Did not log system message properly' ). expected_details-msg_count = 1. clear actual_details-time_stmp. cl_aunit_assert=>assert_equals( exp = expected_details act = actual_details msg = 'Did not log system message properly' ). cl_aunit_assert=>assert_equals( exp = 'This is a test' act = condense( actual_text ) msg = 'Did not log system message properly' ). cl_aunit_assert=>assert_equals( exp = abap_true act = anon_log->has_errors( ) msg = 'Did not log or fetch system message properly' ). endmethod. method can_log_rcomp. data: msg_handle type balmsghndl, expected_details type bal_s_msg, actual_details type bal_s_msg, actual_text type char200. "Solution manager doens't have PROTT. Therefore avoid using the concrete type DATA rcomp_data_ref TYPE REF TO DATA. FIELD-SYMBOLS <rcomp_structure> TYPE ANY. TRY. CREATE DATA rcomp_data_ref TYPE ('RCOMP'). CATCH CX_SY_CREATE_DATA_ERROR. RETURN."Non ECC System such as SolutionManager ENDTRY. ASSIGN rcomp_data_ref->* TO <rcomp_structure>. expected_details-msgty = 'E'. expected_details-msgid = 'BL'. expected_details-msgno = '001'. expected_details-msgv1 = 'This'. expected_details-msgv2 = 'is'. expected_details-msgv3 = 'a'. expected_details-msgv4 = 'test'. MOVE-CORRESPONDING expected_details TO <rcomp_structure>. anon_log->add( <rcomp_structure> ). msg_handle-log_handle = anon_log->handle. msg_handle-msgnumber = '000001'. call function 'BAL_LOG_MSG_READ' exporting i_s_msg_handle = msg_handle importing e_s_msg = actual_details e_txt_msg = actual_text. cl_aunit_assert=>assert_not_initial( act = actual_details-time_stmp msg = 'Did not log system message properly' ). expected_details-msg_count = 1. clear actual_details-time_stmp. cl_aunit_assert=>assert_equals( exp = expected_details act = actual_details msg = 'Did not log system message properly' ). cl_aunit_assert=>assert_equals( exp = 'This is a test' act = condense( actual_text ) msg = 'Did not log system message properly' ). cl_aunit_assert=>assert_equals( exp = abap_true act = anon_log->has_errors( ) msg = 'Did not log or fetch system message properly' ). endmethod. METHOD can_log_prott. data: msg_handle type balmsghndl, expected_details type bal_s_msg, actual_details type bal_s_msg, actual_text type char200. "Solution manager doens't have PROTT. Therefore avoid using the concrete type DATA prott_data_ref TYPE REF TO DATA. FIELD-SYMBOLS <prott_structure> TYPE ANY. TRY. CREATE DATA prott_data_ref TYPE ('PROTT'). CATCH CX_SY_CREATE_DATA_ERROR. RETURN."Non ECC System such as SolutionManager ENDTRY. ASSIGN prott_data_ref->* TO <prott_structure>. expected_details-msgty = 'W'. expected_details-msgid = 'BL'. expected_details-msgno = '001'. expected_details-msgv1 = 'This'. expected_details-msgv2 = 'is'. expected_details-msgv3 = 'a'. expected_details-msgv4 = 'test'. MOVE-CORRESPONDING expected_details TO <prott_structure>. anon_log->add( <prott_structure> ). msg_handle-log_handle = anon_log->handle. msg_handle-msgnumber = '000001'. call function 'BAL_LOG_MSG_READ' exporting i_s_msg_handle = msg_handle importing e_s_msg = actual_details e_txt_msg = actual_text. cl_aunit_assert=>assert_not_initial( act = actual_details-time_stmp msg = 'Did not log system message properly' ). expected_details-msg_count = 1. clear actual_details-time_stmp. cl_aunit_assert=>assert_equals( exp = expected_details act = actual_details msg = 'Did not log system message properly' ). cl_aunit_assert=>assert_equals( exp = 'This is a test' act = condense( actual_text ) msg = 'Did not log system message properly' ). cl_aunit_assert=>assert_equals( exp = abap_true act = anon_log->has_warnings( ) msg = 'Did not log or fetch system message properly' ). ENDMETHOD. method can_log_bapirettab. data: bapi_messages type bapirettab, bapi_msg type bapiret2, exp_texts type table_of_strings, exp_text type string, exp_details type bal_tt_msg, exp_detail type bal_s_msg, act_texts type table_of_strings, act_text type string, act_details type bal_tt_msg, act_detail type bal_s_msg. define bapiret_messages_are. exp_detail-msgty = bapi_msg-type = &1. exp_detail-msgid = bapi_msg-id = &2. exp_detail-msgno = bapi_msg-number = &3. exp_detail-msgv1 = bapi_msg-message_v1 = &4. exp_detail-msgv2 = bapi_msg-message_v2 = &5. exp_detail-msgv3 = bapi_msg-message_v3 = &6. exp_detail-msgv4 = bapi_msg-message_v4 = &7. exp_text = |{ exp_detail-msgv1 } { exp_detail-msgv2 } { exp_detail-msgv3 } { exp_detail-msgv4 }|. APPEND bapi_msg TO bapi_messages. APPEND exp_detail TO exp_details. APPEND exp_text TO exp_texts. end-of-definition. bapiret_messages_are: 'S' 'BL' '001' 'This' 'is' 'happy' 'message', 'W' 'BL' '001' 'This' 'is' 'warning' 'message', 'E' 'BL' '001' 'This' 'is' 'angry' 'message'. anon_log->add( bapi_messages ). get_messages( exporting log_handle = anon_log->handle importing texts = act_texts msg_details = act_details ). do 3 times. read table act_details into act_detail index sy-index. read table exp_details into exp_detail index sy-index. cl_aunit_assert=>assert_not_initial( act = act_detail-time_stmp msg = 'Did not log system message properly' ). exp_detail-msg_count = 1. clear act_detail-time_stmp. cl_aunit_assert=>assert_equals( exp = exp_detail act = act_detail msg = 'Did not log bapirettab properly' ). read table act_texts into act_text index sy-index. read table exp_texts into exp_text index sy-index. cl_aunit_assert=>assert_equals( exp = exp_text act = condense( act_text ) msg = 'Did not log bapirettab properly' ). enddo. endmethod. method can_log_err. data: impossible_int type i, err type ref to cx_sy_zerodivide, act_txt type char255, exp_txt type char255, long_text type string, msg_handle type balmsghndl. try. impossible_int = 1 / 0. "Make an error! catch cx_sy_zerodivide into err. anon_log->add( err ). exp_txt = err->if_message~get_text( ). long_text = err->if_message~get_longtext( ). endtry. msg_handle-log_handle = anon_log->handle. msg_handle-msgnumber = '000001'. call function 'BAL_LOG_EXCEPTION_READ' exporting i_s_msg_handle = msg_handle importing e_txt_msg = act_txt. cl_aunit_assert=>assert_equals( exp = exp_txt "'Division by zero' act = act_txt msg = 'Did not log throwable correctly' ). endmethod. method can_log_chained_exceptions. data: main_exception type ref to lcx_t100, previous_exception type ref to lcx_t100, catched_exception type ref to lcx_t100, msg_handle type balmsghndl, act_texts type table_of_strings, act_text type string. define exceptions_are. create object main_exception exporting previous = previous_exception id = &1 no = &2 msgv1 = &3 msgv2 = &4 msgv3 = &5 msgv4 = &6. previous_exception = main_exception. end-of-definition. "Given exceptions_are: 'SABP_UNIT' '010' '' '' '' '', 'SABP_UNIT' '030' '' '' '' '', 'SABP_UNIT' '000' 'This' 'is' 'test' 'message'. "When try. raise exception main_exception. catch lcx_t100 into catched_exception. anon_log->add( catched_exception ). endtry. "Then get_messages( exporting log_handle = anon_log->handle importing texts = act_texts ). read table act_texts index 1 into act_text. cl_aunit_assert=>assert_equals( exp = format_message( id = 'SABP_UNIT' no = 010 ) " 'Message 1' act = act_text msg = 'Did not log chained exception correctly' ). read table act_texts index 2 into act_text. cl_aunit_assert=>assert_equals( exp = format_message( id = 'SABP_UNIT' no = 030 ) " 'Message 2' act = act_text msg = 'Did not log chained exception correctly' ). read table act_texts index 3 into act_text. cl_aunit_assert=>assert_equals( exp = format_message( id = 'SABP_UNIT' no = 000 v1 = 'This' v2 = 'is' v3 = 'test' v4 = 'message' ) " 'Message: This is test message' act = act_text msg = 'Did not log chained exception correctly' ). endmethod. method can_log_batch_msgs. data: batch_msgs type table of bdcmsgcoll, batch_msg type bdcmsgcoll, act_texts type table_of_strings, act_text type string. define batch_messages_are. batch_msg-msgtyp = &1. batch_msg-msgid = &2. batch_msg-msgnr = &3. batch_msg-msgv1 = &4. batch_msg-msgv2 = &5. batch_msg-msgv3 = &6. batch_msg-msgv4 = &7. APPEND batch_msg TO batch_msgs. end-of-definition. batch_messages_are: 'S' 'SABP_UNIT' '010' '' '' '' '', 'S' 'SABP_UNIT' '030' '' '' '' '', 'S' 'SABP_UNIT' '000' 'This' 'is' 'test' 'message'. anon_log->add( batch_msgs ). get_messages( exporting log_handle = anon_log->handle importing texts = act_texts ). read table act_texts index 1 into act_text. cl_aunit_assert=>assert_equals( exp = format_message( id = 'SABP_UNIT' no = 010 ) " 'Message 1' act = act_text msg = 'Did not log BDC return messages correctly' ). read table act_texts index 2 into act_text. cl_aunit_assert=>assert_equals( exp = format_message( id = 'SABP_UNIT' no = 030 ) " 'Message 2' act = act_text msg = 'Did not log BDC return messages correctly' ). read table act_texts index 3 into act_text. cl_aunit_assert=>assert_equals( exp = format_message( id = 'SABP_UNIT' no = 000 v1 = 'This' v2 = 'is' v3 = 'test' v4 = 'message' ) " 'Message: This is test message' act = act_text msg = 'Did not log BDC return messages correctly' ). endmethod. method can_log_any_simple_structure. types: begin of ty_struct, comp1 type string, comp2 type i, end of ty_struct. data: struct type ty_struct, act_table type table_of_strings, exp_table type table_of_strings, exp_line like line of exp_table, msg_details type bal_tt_msg. struct-comp1 = 'Demo'. struct-comp2 = 5. anon_log->e( struct ). get_messages( exporting log_handle = anon_log->handle importing texts = act_table msg_details = msg_details ). exp_line = '--- Begin of structure ---'. append exp_line to exp_table. exp_line = 'comp1 = Demo'. append exp_line to exp_table. exp_line = 'comp2 = 5'. append exp_line to exp_table. exp_line = '--- End of structure ---'. append exp_line to exp_table. cl_aunit_assert=>assert_equals( exp = exp_table act = act_table msg = 'Simple structure was not logged correctly' ). endmethod. method can_log_any_deep_structure. types: begin of ty_struct, comp1 type string, comp2 type i, end of ty_struct, begin of ty_deep_struct, comp1 type string, deep type ty_struct, end of ty_deep_struct. data: struct type ty_deep_struct, act_table type table_of_strings, exp_table type table_of_strings, exp_line like line of exp_table, msg_details type bal_tt_msg. struct-comp1 = 'Demo'. struct-deep-comp1 = 'Inner component'. struct-deep-comp2 = 10. anon_log->e( struct ). get_messages( exporting log_handle = anon_log->handle importing texts = act_table msg_details = msg_details ). exp_line = '--- Begin of structure ---'. append exp_line to exp_table. exp_line = 'comp1 = Demo'. append exp_line to exp_table. exp_line = '--- Begin of structure ---'. append exp_line to exp_table. exp_line = 'comp1 = Inner component'. append exp_line to exp_table. exp_line = 'comp2 = 10'. append exp_line to exp_table. exp_line = '--- End of structure ---'. append exp_line to exp_table. exp_line = '--- End of structure ---'. append exp_line to exp_table. cl_aunit_assert=>assert_equals( exp = exp_table act = act_table msg = 'Deep structure was not logged correctly' ). endmethod. method can_add_msg_context. data: addl_context type bezei20 value 'Berlin', "data element from dictionary! msg_handle type balmsghndl, act_details type bal_s_msg. anon_log->add( obj_to_log = 'Here is some text' context = addl_context ). msg_handle-log_handle = anon_log->handle. msg_handle-msgnumber = '000001'. call function 'BAL_LOG_MSG_READ' exporting i_s_msg_handle = msg_handle importing e_s_msg = act_details. cl_aunit_assert=>assert_equals( exp = addl_context act = act_details-context-value msg = 'Did not add context correctly' ). cl_aunit_assert=>assert_equals( exp = 'BEZEI20' act = act_details-context-tabname msg = 'Did not add context correctly' ). endmethod. method can_add_table_msg_context. data: addl_context type bezei20 value 'Berlin', "data element from dictionary! msg_handle type balmsghndl, act_details type bal_s_msg. data msg_table type table_of_strings. append `Here is some text` to msg_table. append `Here is some other text` to msg_table. anon_log->add( obj_to_log = msg_table context = addl_context ). msg_handle-log_handle = anon_log->handle. msg_handle-msgnumber = '000001'. call function 'BAL_LOG_MSG_READ' exporting i_s_msg_handle = msg_handle importing e_s_msg = act_details. cl_aunit_assert=>assert_equals( exp = addl_context act = act_details-context-value msg = 'Did not add context correctly' ). cl_aunit_assert=>assert_equals( exp = 'BEZEI20' act = act_details-context-tabname msg = 'Did not add context correctly' ). msg_handle-msgnumber = '000002'. call function 'BAL_LOG_MSG_READ' exporting i_s_msg_handle = msg_handle importing e_s_msg = act_details. cl_aunit_assert=>assert_initial( act = act_details-context-value msg = 'Context should only be added to first line' ). cl_aunit_assert=>assert_initial( act = act_details-context-tabname msg = 'Context should only be added to first line' ). endmethod. method can_add_callback_sub. data: msg_handle type balmsghndl, msg_detail type bal_s_msg, exp_callback type bal_s_clbk. anon_log->add( obj_to_log = 'Message with Callback' callback_form = 'FORM' callback_prog = 'PROGRAM' ). msg_handle-log_handle = anon_log->handle. msg_handle-msgnumber = '000001'. call function 'BAL_LOG_MSG_READ' exporting i_s_msg_handle = msg_handle importing e_s_msg = msg_detail. exp_callback-userexitf = 'FORM'. exp_callback-userexitp = 'PROGRAM'. exp_callback-userexitt = ' '. cl_aunit_assert=>assert_equals( exp = exp_callback act = msg_detail-params-callback msg = 'Did not add callback correctly' ). endmethod. method can_add_callback_fm. data: msg_handle type balmsghndl, msg_detail type bal_s_msg, exp_callback type bal_s_clbk. anon_log->add( obj_to_log = 'Message with Callback' callback_fm = 'FUNCTION' ). msg_handle-log_handle = anon_log->handle. msg_handle-msgnumber = '000001'. call function 'BAL_LOG_MSG_READ' exporting i_s_msg_handle = msg_handle importing e_s_msg = msg_detail. exp_callback-userexitf = 'FUNCTION'. exp_callback-userexitp = ' '. exp_callback-userexitt = 'F'. cl_aunit_assert=>assert_equals( exp = exp_callback act = msg_detail-params-callback msg = 'Did not add callback correctly' ). endmethod. method must_use_factory. data: log type ref to object. try. create object log type ('ZCL_LOGGER'). cl_aunit_assert=>fail( 'Did not force creation via factory' ). catch cx_sy_create_object_error. "PASSED endtry. endmethod. method can_use_and_chain_aliases. data: texts type table_of_strings, text type string, msg_details type bal_tt_msg, msg_detail type bal_s_msg. anon_log->a( 'Severe Abort Error!' )->e( |Here's an error!| ). anon_log->w( 'This is a warning' )->i( `Helpful Information` ). anon_log->s( 'Great' && 'Success' ). get_messages( exporting log_handle = anon_log->handle importing texts = texts msg_details = msg_details ). read table texts index 1 into text. read table msg_details index 1 into msg_detail. cl_aunit_assert=>assert_equals( exp = 'A' act = msg_detail-msgty msg = 'Didn''t log by alias' ). cl_aunit_assert=>assert_equals( exp = 'Severe Abort Error!' act = text msg = 'Didn''t log by alias' ). read table texts index 2 into text. read table msg_details index 2 into msg_detail. cl_aunit_assert=>assert_equals( exp = 'E' act = msg_detail-msgty msg = 'Didn''t log by alias' ). cl_aunit_assert=>assert_equals( exp = 'Here''s an error!' act = text msg = 'Didn''t log by alias' ). read table texts index 3 into text. read table msg_details index 3 into msg_detail. cl_aunit_assert=>assert_equals( exp = 'W' act = msg_detail-msgty msg = 'Didn''t log by alias' ). cl_aunit_assert=>assert_equals( exp = 'This is a warning' act = text msg = 'Didn''t log by alias' ). read table texts index 4 into text. read table msg_details index 4 into msg_detail. cl_aunit_assert=>assert_equals( exp = 'I' act = msg_detail-msgty msg = 'Didn''t log by alias' ). cl_aunit_assert=>assert_equals( exp = 'Helpful Information' act = text msg = 'Didn''t log by alias' ). read table texts index 5 into text. read table msg_details index 5 into msg_detail. cl_aunit_assert=>assert_equals( exp = 'S' act = msg_detail-msgty msg = 'Didn''t log by alias' ). cl_aunit_assert=>assert_equals( exp = 'GreatSuccess' act = text msg = 'Didn''t log by alias' ). endmethod. method get_first_message. data: msg_handle type balmsghndl. msg_handle-log_handle = log_handle. msg_handle-msgnumber = '000001'. call function 'BAL_LOG_MSG_READ' exporting i_s_msg_handle = msg_handle importing e_txt_msg = msg. endmethod. method get_messages. data: handle_as_table type bal_t_logh, message_handles type bal_t_msgh, msg_handle type balmsghndl, msg_detail type bal_s_msg, msg_text type char255. append log_handle to handle_as_table. call function 'BAL_GLB_SEARCH_MSG' exporting i_t_log_handle = handle_as_table importing e_t_msg_handle = message_handles. loop at message_handles into msg_handle. call function 'BAL_LOG_MSG_READ' exporting i_s_msg_handle = msg_handle importing e_s_msg = msg_detail e_txt_msg = msg_text. append msg_detail to msg_details. append msg_text to texts. endloop. endmethod. method format_message. call function 'FORMAT_MESSAGE' exporting id = id lang = sy-langu no = no v1 = v1 v2 = v2 v3 = v3 v4 = v4 importing msg = msg exceptions not_found = 1 others = 2. * TODO: raise abap unit endmethod. method teardown. call function 'BAL_GLB_MEMORY_REFRESH'. endmethod. method return_proper_status. cl_aunit_assert=>assert_not_initial( act = anon_log->is_empty( ) msg = 'Not empty at start' ). anon_log->s( 'success' ). anon_log->i( 'info' ). cl_aunit_assert=>assert_initial( act = anon_log->is_empty( ) msg = 'Empty after add' ). cl_aunit_assert=>assert_initial( act = anon_log->has_errors( ) msg = 'Has errors when there were no errors' ). cl_aunit_assert=>assert_initial( act = anon_log->has_warnings( ) msg = 'Has warnings when there were no warnings' ). anon_log->e( 'error' ). anon_log->w( 'warning' ). cl_aunit_assert=>assert_not_initial( act = anon_log->has_errors( ) msg = 'Has no errors when there were errors' ). cl_aunit_assert=>assert_not_initial( act = anon_log->has_warnings( ) msg = 'Has no warnings when there were warnings' ). endmethod. method return_proper_length. cl_aunit_assert=>assert_equals( exp = 0 act = anon_log->length( ) msg = 'Did not return 0 length at start' ). anon_log->s( 'success' ). anon_log->i( 'info' ). anon_log->w( 'warning' ). cl_aunit_assert=>assert_equals( exp = 3 act = anon_log->length( ) msg = 'Did not return right length after add' ). endmethod. endclass. "lcl_Test
[ 4871, 300, 565, 62, 9288, 6770, 329, 4856, 198, 220, 9478, 1790, 198, 220, 2526, 1241, 23585, 13, 198, 220, 2839, 2665, 13, 628, 220, 220, 220, 1366, 25, 198, 220, 220, 220, 220, 220, 281, 261, 62, 6404, 220, 220, 220, 220, 2099, 1006, 284, 1976, 361, 62, 6404, 1362, 11, 198, 220, 220, 220, 220, 220, 3706, 62, 6404, 220, 220, 220, 2099, 1006, 284, 1976, 361, 62, 6404, 1362, 11, 198, 220, 220, 220, 220, 220, 37415, 62, 6404, 2099, 1006, 284, 1976, 361, 62, 6404, 1362, 13, 628, 220, 220, 220, 1398, 12, 24396, 82, 25, 198, 220, 220, 220, 220, 220, 1398, 62, 40406, 13, 628, 220, 220, 220, 5050, 25, 198, 220, 220, 220, 220, 220, 9058, 11, 198, 220, 220, 220, 220, 220, 573, 446, 593, 11, 198, 220, 220, 220, 220, 220, 651, 62, 11085, 62, 20500, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 2604, 62, 28144, 2099, 2613, 46664, 358, 75, 198, 220, 220, 220, 220, 220, 220, 220, 8024, 1988, 7, 19662, 8, 2099, 1149, 13381, 11, 198, 220, 220, 220, 220, 220, 651, 62, 37348, 1095, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2604, 62, 28144, 220, 2099, 2613, 46664, 358, 75, 198, 220, 220, 220, 220, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13399, 220, 220, 220, 220, 220, 220, 2099, 3084, 62, 1659, 62, 37336, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31456, 62, 36604, 2099, 3652, 62, 926, 62, 19662, 11, 628, 220, 220, 220, 220, 220, 5794, 62, 20500, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 4686, 220, 220, 220, 220, 220, 220, 220, 220, 588, 827, 12, 19662, 312, 4277, 827, 12, 19662, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42392, 220, 220, 220, 220, 220, 220, 2099, 2786, 4277, 705, 19355, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 645, 220, 220, 220, 220, 220, 220, 220, 220, 588, 827, 12, 19662, 3919, 4277, 827, 12, 19662, 3919, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 410, 16, 220, 220, 220, 220, 220, 220, 220, 220, 588, 827, 12, 19662, 85, 16, 4277, 827, 12, 19662, 85, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 410, 17, 220, 220, 220, 220, 220, 220, 220, 220, 588, 827, 12, 19662, 85, 17, 4277, 827, 12, 19662, 85, 17, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 410, 18, 220, 220, 220, 220, 220, 220, 220, 220, 588, 827, 12, 19662, 85, 18, 4277, 827, 12, 19662, 85, 18, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 410, 19, 220, 220, 220, 220, 220, 220, 220, 220, 588, 827, 12, 19662, 85, 19, 4277, 827, 12, 19662, 85, 19, 198, 220, 220, 220, 220, 220, 220, 220, 8024, 1988, 7, 19662, 8, 2099, 4731, 11, 628, 220, 220, 220, 220, 220, 460, 62, 17953, 62, 36902, 62, 6404, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 17953, 62, 13190, 62, 6404, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 260, 9654, 62, 6404, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 17953, 62, 11201, 3428, 62, 6404, 62, 12545, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 17953, 62, 11201, 3428, 62, 6404, 62, 4475, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 9654, 62, 273, 62, 17953, 329, 4856, 11, 628, 220, 220, 220, 220, 220, 460, 62, 2860, 62, 6404, 62, 22866, 329, 4856, 11, 628, 220, 220, 220, 220, 220, 460, 62, 2860, 62, 1462, 62, 6404, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 2860, 62, 1462, 62, 13190, 62, 6404, 329, 4856, 11, 628, 220, 220, 220, 220, 220, 8295, 62, 82, 3080, 62, 13190, 62, 6404, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 8295, 62, 82, 3080, 62, 260, 26350, 62, 6404, 329, 4856, 11, 628, 220, 220, 220, 220, 220, 460, 62, 6404, 62, 8841, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 6404, 62, 10641, 220, 220, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 6404, 62, 1837, 19662, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 6404, 62, 65, 499, 557, 83, 16, 220, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 6404, 62, 65, 499, 557, 83, 17, 220, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 6404, 62, 65, 15042, 62, 10215, 84, 62, 7783, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 6404, 62, 65, 15042, 62, 2875, 62, 7783, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 6404, 62, 81, 5589, 220, 220, 220, 220, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 6404, 62, 1676, 926, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 6404, 62, 65, 499, 557, 926, 397, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 6404, 62, 8056, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 6404, 62, 354, 1328, 62, 1069, 11755, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 6404, 62, 43501, 62, 907, 14542, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 6404, 62, 1092, 62, 36439, 62, 301, 5620, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 6404, 62, 1092, 62, 22089, 62, 301, 5620, 329, 4856, 11, 628, 220, 220, 220, 220, 220, 460, 62, 2860, 62, 19662, 62, 22866, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 460, 62, 2860, 62, 47423, 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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. METHODS script_changed RETURNING VALUE(rv_changed) TYPE string. METHODS read_mime IMPORTING !iv_url TYPE string. ENDCLASS. CLASS ZCL_AGS_SERVICE_STATIC IMPLEMENTATION. METHOD read_mime. DATA: li_api TYPE REF TO if_mr_api, lv_data TYPE xstring, lv_changed TYPE smimphio-chng_time, lv_timestamp TYPE char14, lv_modified TYPE string, lv_mime TYPE string, lv_url TYPE string. CONCATENATE '/SAP/PUBLIC/zgit/' iv_url INTO lv_url. li_api = cl_mime_repository_api=>if_mr_api~get_api( ). li_api->get( EXPORTING i_url = lv_url IMPORTING e_content = lv_data e_mime_type = lv_mime e_content_last_changed = lv_changed EXCEPTIONS not_found = 1 ). IF sy-subrc = 1. mi_server->response->set_cdata( '404' ). mi_server->response->set_status( code = 404 reason = '404' ). RETURN. ENDIF. lv_timestamp = lv_changed. lv_modified = cl_bsp_utility=>date_to_string_http( lv_timestamp ). IF iv_url = 'index.html'. mi_server->response->set_cookie( name = 'jsmodified' value = script_changed( ) ) ##NO_TEXT. ENDIF. IF lv_modified = mi_server->request->get_header_field( 'If-Modified-Since' ) ##NO_TEXT. mi_server->response->set_status( code = 304 reason = '' ). RETURN. ENDIF. mi_server->response->set_header_field( name = 'Cache-Control' value = 'max-age=86400' ) ##NO_TEXT. mi_server->response->set_header_field( name = 'Last-Modified' value = lv_modified ) ##NO_TEXT. mi_server->response->set_compression( ). mi_server->response->set_content_type( lv_mime ). mi_server->response->set_data( lv_data ). ENDMETHOD. METHOD script_changed. DATA: lv_url TYPE string, li_api TYPE REF TO if_mr_api, lv_changed TYPE smimphio-chng_time. CONCATENATE '/SAP/PUBLIC/zgit/' 'script.js' INTO lv_url ##NO_TEXT. li_api = cl_mime_repository_api=>if_mr_api~get_api( ). li_api->get( EXPORTING i_url = lv_url IMPORTING e_content_last_changed = lv_changed EXCEPTIONS not_found = 1 ). "#EC CI_SUBRC ASSERT sy-subrc = 0. rv_changed = lv_changed. ENDMETHOD. METHOD zif_ags_service~run. DATA: lv_name TYPE string, lv_path TYPE string. mi_server = ii_server. lv_path = mi_server->request->get_header_field( '~path' ). FIND REGEX '/sap/zabapgitserver/static/(.*)' IN lv_path SUBMATCHES lv_name ##NO_TEXT. IF lv_name IS INITIAL. lv_name = 'index.html' ##NO_TEXT. ENDIF. read_mime( lv_name ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 3775, 62, 15271, 62, 12708, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 3775, 62, 15271, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 21504, 62, 15388, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 15388, 13, 628, 220, 220, 220, 337, 36252, 50, 4226, 62, 40985, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 40985, 8, 41876, 4731, 13, 198, 220, 220, 220, 337, 36252, 50, 1100, 62, 76, 524, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 41876, 4731, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 4760, 50, 62, 35009, 27389, 62, 35744, 2149, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1100, 62, 76, 524, 13, 628, 220, 220, 220, 42865, 25, 7649, 62, 15042, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 43395, 62, 15042, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 7890, 220, 220, 220, 220, 220, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 40985, 220, 220, 41876, 895, 320, 746, 952, 12, 354, 782, 62, 2435, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 16514, 27823, 41876, 1149, 1415, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 41771, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 76, 524, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 6371, 220, 220, 220, 220, 220, 220, 41876, 4731, 13, 628, 198, 220, 220, 220, 39962, 1404, 1677, 6158, 31051, 50, 2969, 14, 5105, 32936, 14, 89, 18300, 14, 6, 21628, 62, 6371, 39319, 300, 85, 62, 6371, 13, 628, 220, 220, 220, 7649, 62, 15042, 796, 537, 62, 76, 524, 62, 260, 1930, 37765, 62, 15042, 14804, 361, 62, 43395, 62, 15042, 93, 1136, 62, 15042, 7, 6739, 628, 220, 220, 220, 7649, 62, 15042, 3784, 1136, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 6371, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 304, 62, 11299, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 304, 62, 76, 524, 62, 4906, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 76, 524, 198, 220, 220, 220, 220, 220, 220, 220, 304, 62, 11299, 62, 12957, 62, 40985, 796, 300, 85, 62, 40985, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 407, 62, 9275, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 352, 6739, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 352, 13, 198, 220, 220, 220, 220, 220, 21504, 62, 15388, 3784, 26209, 3784, 2617, 62, 66, 7890, 7, 705, 26429, 6, 6739, 198, 220, 220, 220, 220, 220, 21504, 62, 15388, 3784, 26209, 3784, 2617, 62, 13376, 7, 2438, 796, 32320, 1738, 796, 705, 26429, 6, 6739, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 300, 85, 62, 16514, 27823, 796, 300, 85, 62, 40985, 13, 198, 220, 220, 220, 300, 85, 62, 41771, 796, 537, 62, 24145, 62, 315, 879, 14804, 4475, 62, 1462, 62, 8841, 62, 4023, 7, 300, 85, 62, 16514, 27823, 6739, 628, 220, 220, 220, 16876, 21628, 62, 6371, 796, 705, 9630, 13, 6494, 4458, 198, 220, 220, 220, 220, 220, 21504, 62, 15388, 3784, 26209, 3784, 2617, 62, 44453, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 796, 705, 8457, 41771, 6, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 796, 4226, 62, 40985, 7, 1267, 1267, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 16876, 300, 85, 62, 41771, 796, 21504, 62, 15388, 3784, 25927, 3784, 1136, 62, 25677, 62, 3245, 7, 705, 1532, 12, 5841, 1431, 12, 6385, 6, 1267, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 220, 220, 21504, 62, 15388, 3784, 26209, 3784, 2617, 62, 13376, 7, 2438, 796, 31672, 1738, 796, 10148, 6739, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 21504, 62, 15388, 3784, 26209, 3784, 2617, 62, 25677, 62, 3245, 7, 198, 220, 220, 220, 220, 220, 1438, 220, 796, 705, 30562, 12, 15988, 6, 198, 220, 220, 220, 220, 220, 1988, 796, 705, 9806, 12, 496, 28, 39570, 405, 6, 1267, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 21504, 62, 15388, 3784, 26209, 3784, 2617, 62, 25677, 62, 3245, 7, 198, 220, 220, 220, 220, 220, 1438, 220, 796, 705, 5956, 12, 5841, 1431, 6, 198, 220, 220, 220, 220, 220, 1988, 796, 300, 85, 62, 41771, 1267, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 21504, 62, 15388, 3784, 26209, 3784, 2617, 62, 5589, 2234, 7, 6739, 198, 220, 220, 220, 21504, 62, 15388, 3784, 26209, 3784, 2617, 62, 11299, 62, 4906, 7, 300, 85, 62, 76, 524, 6739, 198, 220, 220, 220, 21504, 62, 15388, 3784, 26209, 3784, 2617, 62, 7890, 7, 300, 85, 62, 7890, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 4226, 62, 40985, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 6371, 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, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_EXCEL3 *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT zdemo_excel33. TYPE-POOLS: abap. DATA: lo_excel TYPE REF TO zcl_excel, lo_worksheet TYPE REF TO zcl_excel_worksheet, lo_converter TYPE REF TO zcl_excel_converter, lo_autofilter TYPE REF TO zcl_excel_autofilter. DATA lt_test TYPE TABLE OF t005t. DATA: l_cell_value TYPE zexcel_cell_value, ls_area TYPE zexcel_s_autofilter_area. CONSTANTS: c_airlines TYPE string VALUE 'Airlines'. CONSTANTS: gc_save_file_name TYPE string VALUE '33_autofilter.xlsx'. INCLUDE zdemo_excel_outputopt_incl. START-OF-SELECTION. " Creates active sheet CREATE OBJECT lo_excel. " Get active sheet lo_worksheet = lo_excel->get_active_worksheet( ). lo_worksheet->set_title( ip_title = 'Internal table' ). SELECT * UP TO 2 ROWS FROM t005t INTO TABLE lt_test. "#EC CI_NOWHERE CREATE OBJECT lo_converter. lo_converter->convert( EXPORTING it_table = lt_test i_row_int = 1 i_column_int = 1 io_worksheet = lo_worksheet CHANGING co_excel = lo_excel ) . lo_autofilter = lo_excel->add_new_autofilter( io_sheet = lo_worksheet ) . ls_area-row_start = 1. ls_area-col_start = 1. ls_area-row_end = lo_worksheet->get_highest_row( ). ls_area-col_end = lo_worksheet->get_highest_column( ). lo_autofilter->set_filter_area( is_area = ls_area ). lo_worksheet->get_cell( EXPORTING ip_column = 'C' ip_row = 2 IMPORTING ep_value = l_cell_value ). lo_autofilter->set_value( i_column = 3 i_value = l_cell_value ). *** Create output lcl_output=>output( lo_excel ).
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 220, 1168, 39429, 46, 62, 6369, 34, 3698, 18, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 198, 2200, 15490, 1976, 9536, 78, 62, 1069, 5276, 2091, 13, 198, 198, 25216, 12, 16402, 3535, 50, 25, 450, 499, 13, 198, 198, 26947, 25, 2376, 62, 1069, 5276, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 5225, 25473, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 5225, 25473, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 1102, 332, 353, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 1102, 332, 353, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 2306, 1659, 346, 353, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 2306, 1659, 346, 353, 13, 198, 198, 26947, 300, 83, 62, 9288, 41876, 43679, 3963, 256, 22544, 83, 13, 198, 198, 26947, 25, 300, 62, 3846, 62, 8367, 41876, 1976, 1069, 5276, 62, 3846, 62, 8367, 11, 198, 220, 220, 220, 220, 220, 43979, 62, 20337, 220, 220, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 82, 62, 2306, 1659, 346, 353, 62, 20337, 13, 198, 198, 10943, 2257, 1565, 4694, 25, 269, 62, 958, 6615, 41876, 4731, 26173, 8924, 705, 32, 1901, 1127, 4458, 198, 198, 10943, 2257, 1565, 4694, 25, 308, 66, 62, 21928, 62, 7753, 62, 3672, 41876, 4731, 26173, 8924, 705, 2091, 62, 2306, 1659, 346, 353, 13, 87, 7278, 87, 4458, 198, 1268, 5097, 52, 7206, 1976, 9536, 78, 62, 1069, 5276, 62, 22915, 8738, 62, 259, 565, 13, 628, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 628, 220, 366, 7921, 274, 4075, 9629, 198, 220, 29244, 6158, 25334, 23680, 2376, 62, 1069, 5276, 13, 628, 220, 366, 3497, 4075, 9629, 198, 220, 2376, 62, 5225, 25473, 796, 2376, 62, 1069, 5276, 3784, 1136, 62, 5275, 62, 5225, 25473, 7, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 7839, 7, 20966, 62, 7839, 796, 705, 37693, 3084, 6, 6739, 628, 220, 33493, 1635, 15958, 5390, 362, 371, 22845, 16034, 256, 22544, 83, 39319, 43679, 300, 83, 62, 9288, 13, 220, 25113, 2943, 14514, 62, 45669, 39, 9338, 628, 220, 29244, 6158, 25334, 23680, 2376, 62, 1102, 332, 353, 13, 628, 220, 2376, 62, 1102, 332, 353, 3784, 1102, 1851, 7, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 11487, 220, 220, 220, 220, 796, 300, 83, 62, 9288, 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, 1312, 62, 808, 62, 600, 220, 220, 220, 796, 352, 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, 1312, 62, 28665, 62, 600, 796, 352, 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, 33245, 62, 5225, 25473, 796, 2376, 62, 5225, 25473, 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, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 763, 62, 1069, 5276, 220, 220, 220, 220, 796, 2376, 62, 1069, 5276, 1267, 764, 628, 220, 2376, 62, 2306, 1659, 346, 353, 796, 2376, 62, 1069, 5276, 3784, 2860, 62, 3605, 62, 2306, 1659, 346, 353, 7, 33245, 62, 21760, 796, 2376, 62, 5225, 25473, 1267, 764, 628, 220, 43979, 62, 20337, 12, 808, 62, 9688, 796, 352, 13, 198, 220, 43979, 62, 20337, 12, 4033, 62, 9688, 796, 352, 13, 198, 220, 43979, 62, 20337, 12, 808, 62, 437, 796, 2376, 62, 5225, 25473, 3784, 1136, 62, 35323, 62, 808, 7, 6739, 198, 220, 43979, 62, 20337, 12, 4033, 62, 437, 796, 2376, 62, 5225, 25473, 3784, 1136, 62, 35323, 62, 28665, 7, 6739, 628, 220, 2376, 62, 2306, 1659, 346, 353, 3784, 2617, 62, 24455, 62, 20337, 7, 318, 62, 20337, 796, 43979, 62, 20337, 6739, 628, 220, 2376, 62, 5225, 25473, 3784, 1136, 62, 3846, 7, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20966, 62, 28665, 220, 220, 220, 796, 705, 34, 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, 20966, 62, 808, 220, 220, 220, 220, 220, 220, 796, 362, 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, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2462, 62, 8367, 220, 220, 220, 220, 796, 300, 62, 3846, 62, 8367, 6739, 198, 220, 2376, 62, 2306, 1659, 346, 353, 3784, 2617, 62, 8367, 7, 1312, 62, 28665, 796, 513, 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, 1312, 62, 8367, 220, 796, 300, 62, 3846, 62, 8367, 6739, 628, 198, 8162, 13610, 5072, 198, 220, 300, 565, 62, 22915, 14804, 22915, 7, 2376, 62, 1069, 5276, 6739, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*&---------------------------------------------------------------------* *& Report YOGESH03 *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT yogesh03. PARAMETERS: a TYPE i, b TYPE i. *addition WRITE a. WRITE ' + '. WRITE b. WRITE ' : '. DATA: c TYPE i. c = a + b. WRITE c. SKIP. *subtraction WRITE a. WRITE ' - '. WRITE b. WRITE ' : '. DATA: d TYPE i. d = a - b. WRITE d. SKIP. *multiplication WRITE a. WRITE ' * '. WRITE b. WRITE ' : '. DATA: e TYPE i. e = a * b. WRITE e. SKIP. *division WRITE a. WRITE ' / '. WRITE b. WRITE ' : '. DATA: f TYPE i. f = a / b. WRITE f. SKIP. *modolus WRITE a. WRITE ' + '. WRITE b. WRITE ' : '. DATA: g TYPE i. g = a MOD b. WRITE c. SKIP.
[ 9, 5, 10097, 30934, 9, 201, 198, 9, 5, 6358, 575, 7730, 44011, 3070, 201, 198, 9, 5, 10097, 30934, 9, 201, 198, 9, 5, 201, 198, 9, 5, 10097, 30934, 9, 201, 198, 2200, 15490, 27423, 5069, 3070, 13, 201, 198, 27082, 2390, 2767, 4877, 25, 257, 41876, 1312, 11, 275, 41876, 1312, 13, 201, 198, 9, 2860, 653, 201, 198, 18564, 12709, 257, 13, 201, 198, 18564, 12709, 705, 1343, 45302, 201, 198, 18564, 12709, 275, 13, 201, 198, 18564, 12709, 705, 1058, 45302, 201, 198, 26947, 25, 269, 41876, 1312, 13, 201, 198, 66, 796, 257, 1343, 275, 13, 201, 198, 18564, 12709, 269, 13, 201, 198, 18831, 4061, 13, 201, 198, 201, 198, 9, 7266, 83, 7861, 201, 198, 18564, 12709, 257, 13, 201, 198, 18564, 12709, 705, 532, 45302, 201, 198, 18564, 12709, 275, 13, 201, 198, 18564, 12709, 705, 1058, 45302, 201, 198, 26947, 25, 288, 41876, 1312, 13, 201, 198, 67, 796, 257, 532, 275, 13, 201, 198, 18564, 12709, 288, 13, 201, 198, 18831, 4061, 13, 201, 198, 201, 198, 9, 47945, 3299, 201, 198, 18564, 12709, 257, 13, 201, 198, 18564, 12709, 705, 1635, 45302, 201, 198, 18564, 12709, 275, 13, 201, 198, 18564, 12709, 705, 1058, 45302, 201, 198, 26947, 25, 304, 41876, 1312, 13, 201, 198, 68, 796, 257, 1635, 275, 13, 201, 198, 18564, 12709, 304, 13, 201, 198, 18831, 4061, 13, 201, 198, 201, 198, 201, 198, 9, 21426, 201, 198, 18564, 12709, 257, 13, 201, 198, 18564, 12709, 705, 1220, 45302, 201, 198, 18564, 12709, 275, 13, 201, 198, 18564, 12709, 705, 1058, 45302, 201, 198, 26947, 25, 277, 41876, 1312, 13, 201, 198, 69, 796, 257, 1220, 275, 13, 201, 198, 18564, 12709, 277, 13, 201, 198, 18831, 4061, 13, 201, 198, 201, 198, 9, 4666, 349, 385, 201, 198, 18564, 12709, 257, 13, 201, 198, 18564, 12709, 705, 1343, 45302, 201, 198, 18564, 12709, 275, 13, 201, 198, 18564, 12709, 705, 1058, 45302, 201, 198, 26947, 25, 308, 41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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*Makes use of the stack data structure *Given a palindrome_candidate returns 1 if it is a palindrome *and 0 if it is not FORM is_number_palindrome USING value(palindrome_candidate) TYPE i boolean_palindrome TYPE i. DATA number TYPE i. number = palindrome_candidate. DATA float_digits TYPE f. DATA digits TYPE i. DATA half_digits TYPE i. float_digits = LOG10( palindrome_candidate ). float_digits = FLOOR( float_digits ). digits = float_digits + 1. half_digits = digits DIV 2. DATA digit TYPE i. DATA digit_stack TYPE REF TO stack. CREATE OBJECT digit_stack TYPE stack. DO half_digits TIMES. digit = palindrome_candidate MOD 10. CALL METHOD digit_stack->push EXPORTING im_number = digit. palindrome_candidate = palindrome_candidate DIV 10. ENDDO. DATA boolean_odd TYPE i. boolean_odd = digits MOD 2. IF boolean_odd = 1. palindrome_candidate = palindrome_candidate DIV 10. ENDIF. boolean_palindrome = 1. DATA stack_digit TYPE i. DO half_digits TIMES. CALL METHOD digit_stack->pop RECEIVING ret_number = stack_digit. digit = palindrome_candidate MOD 10. palindrome_candidate = palindrome_candidate DIV 10. IF stack_digit <> digit. WRITE / number. WRITE 'is not a palindrome!'. boolean_palindrome = 0. EXIT. ENDIF. ENDDO. IF boolean_palindrome = 1. WRITE / number. WRITE 'is a palindrome!'. ENDIF. ENDFORM.
[ 9, 44, 1124, 779, 286, 262, 8931, 1366, 4645, 198, 9, 15056, 257, 6340, 521, 5998, 62, 46188, 20540, 5860, 352, 611, 340, 318, 257, 6340, 521, 5998, 198, 9, 392, 657, 611, 340, 318, 407, 198, 21389, 318, 62, 17618, 62, 18596, 521, 5998, 1294, 2751, 1988, 7, 18596, 521, 5998, 62, 46188, 20540, 8, 41876, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25131, 62, 18596, 521, 5998, 41876, 1312, 13, 198, 220, 42865, 1271, 41876, 1312, 13, 198, 220, 1271, 796, 6340, 521, 5998, 62, 46188, 20540, 13, 628, 220, 42865, 12178, 62, 12894, 896, 41876, 277, 13, 198, 220, 42865, 19561, 41876, 1312, 13, 198, 220, 42865, 2063, 62, 12894, 896, 41876, 1312, 13, 198, 220, 220, 198, 220, 12178, 62, 12894, 896, 796, 41605, 940, 7, 6340, 521, 5998, 62, 46188, 20540, 6739, 198, 220, 12178, 62, 12894, 896, 796, 9977, 46, 1581, 7, 12178, 62, 12894, 896, 6739, 198, 220, 19561, 796, 12178, 62, 12894, 896, 1343, 352, 13, 198, 220, 2063, 62, 12894, 896, 796, 19561, 360, 3824, 362, 13, 198, 220, 220, 198, 220, 42865, 16839, 41876, 1312, 13, 198, 220, 42865, 16839, 62, 25558, 41876, 4526, 37, 5390, 8931, 13, 198, 220, 29244, 6158, 25334, 23680, 16839, 62, 25558, 41876, 8931, 13, 198, 220, 8410, 2063, 62, 12894, 896, 31742, 1546, 13, 198, 220, 220, 220, 16839, 796, 6340, 521, 5998, 62, 46188, 20540, 19164, 838, 13, 198, 220, 220, 220, 42815, 337, 36252, 16839, 62, 25558, 3784, 14689, 7788, 15490, 2751, 545, 62, 17618, 796, 16839, 13, 198, 220, 220, 220, 6340, 521, 5998, 62, 46188, 20540, 796, 6340, 521, 5998, 62, 46188, 20540, 360, 3824, 838, 13, 198, 220, 220, 220, 23578, 18227, 13, 628, 220, 42865, 25131, 62, 5088, 41876, 1312, 13, 198, 220, 25131, 62, 5088, 796, 19561, 19164, 362, 13, 198, 220, 16876, 25131, 62, 5088, 796, 352, 13, 198, 220, 220, 220, 6340, 521, 5998, 62, 46188, 20540, 796, 6340, 521, 5998, 62, 46188, 20540, 360, 3824, 838, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 25131, 62, 18596, 521, 5998, 796, 352, 13, 198, 220, 42865, 8931, 62, 27003, 41876, 1312, 13, 198, 220, 8410, 2063, 62, 12894, 896, 31742, 1546, 13, 198, 220, 220, 220, 42815, 337, 36252, 16839, 62, 25558, 3784, 12924, 19644, 36, 3824, 2751, 1005, 62, 17618, 796, 8931, 62, 27003, 13, 198, 220, 220, 220, 16839, 796, 6340, 521, 5998, 62, 46188, 20540, 19164, 838, 13, 198, 220, 220, 220, 6340, 521, 5998, 62, 46188, 20540, 796, 6340, 521, 5998, 62, 46188, 20540, 360, 3824, 838, 13, 198, 220, 220, 220, 16876, 8931, 62, 27003, 1279, 29, 16839, 13, 198, 220, 220, 220, 220, 220, 44423, 1220, 1271, 13, 198, 220, 220, 220, 220, 220, 44423, 705, 271, 407, 257, 6340, 521, 5998, 0, 4458, 198, 220, 220, 220, 220, 220, 25131, 62, 18596, 521, 5998, 796, 657, 13, 198, 220, 220, 220, 220, 220, 7788, 2043, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 18227, 13, 198, 220, 16876, 25131, 62, 18596, 521, 5998, 796, 352, 13, 198, 220, 220, 220, 44423, 1220, 1271, 13, 198, 220, 220, 220, 44423, 705, 271, 257, 6340, 521, 5998, 0, 4458, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 12964, 8068, 1581, 44, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_enhc DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. METHODS: constructor IMPORTING is_item TYPE zif_abapgit_definitions=>ty_item iv_language TYPE spras. PROTECTED SECTION. PRIVATE SECTION. DATA: mv_composite_id TYPE enhcompositename. ENDCLASS. CLASS zcl_abapgit_object_enhc IMPLEMENTATION. METHOD constructor. super->constructor( is_item = is_item iv_language = iv_language ). mv_composite_id = ms_item-obj_name. ENDMETHOD. METHOD zif_abapgit_object~changed_by. SELECT SINGLE changedby INTO rv_user FROM enhcompheader WHERE enhcomposite = ms_item-obj_name AND version = 'A'. IF sy-subrc <> 0. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lx_enh_root TYPE REF TO cx_enh_root, li_enh_object TYPE REF TO if_enh_object. TRY. li_enh_object = cl_enh_factory=>load_enhancement_composite( name = mv_composite_id lock = abap_true ). li_enh_object->delete( nevertheless_delete = abap_true run_dark = abap_true ). li_enh_object->unlock( ). CATCH cx_enh_root INTO lx_enh_root. zcx_abapgit_exception=>raise_with_text( lx_enh_root ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lx_enh_root TYPE REF TO cx_enh_root, li_enh_composite TYPE REF TO if_enh_composite, lv_package TYPE devclass, lt_composite_childs TYPE enhcompositename_it, lt_enh_childs TYPE enhname_it, lv_longtext_id TYPE enhdocuobject, lv_vers TYPE enhcompheader-version, lv_shorttext TYPE string. FIELD-SYMBOLS: <lv_composite_child> TYPE enhcompositename, <lv_enh_child> LIKE LINE OF lt_enh_childs. lv_package = iv_package. io_xml->read( EXPORTING iv_name = 'SHORTTEXT' CHANGING cg_data = lv_shorttext ). io_xml->read( EXPORTING iv_name = 'COMPOSITE_CHILDS' CHANGING cg_data = lt_composite_childs ). io_xml->read( EXPORTING iv_name = 'ENH_CHILDS' CHANGING cg_data = lt_enh_childs ). io_xml->read( EXPORTING iv_name = 'LONGTEXT_ID' CHANGING cg_data = lv_longtext_id ). SELECT SINGLE version FROM enhcompheader INTO lv_vers WHERE enhcomposite = ms_item-obj_name. IF sy-subrc = 0. " If object exists already, then set TADIR entry to deleted " otherwise create_enhancement_composite will fail CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING wi_test_modus = abap_false wi_tadir_pgmid = 'R3TR' wi_tadir_object = ms_item-obj_type wi_tadir_obj_name = ms_item-obj_name iv_delflag = abap_true EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDIF. TRY. cl_enh_factory=>create_enhancement_composite( EXPORTING name = mv_composite_id run_dark = abap_true IMPORTING composite = li_enh_composite CHANGING devclass = lv_package ). li_enh_composite->if_enh_object_docu~set_shorttext( lv_shorttext ). LOOP AT lt_composite_childs ASSIGNING <lv_composite_child>. li_enh_composite->add_composite_child( <lv_composite_child> ). ENDLOOP. LOOP AT lt_enh_childs ASSIGNING <lv_enh_child>. li_enh_composite->add_enh_child( <lv_enh_child> ). ENDLOOP. li_enh_composite->set_longtext_id( lv_longtext_id ). li_enh_composite->if_enh_object~save( ). li_enh_composite->if_enh_object~activate( ). li_enh_composite->if_enh_object~unlock( ). zcl_abapgit_sotr_handler=>create_sotr( iv_package = iv_package io_xml = io_xml ). CATCH cx_enh_root INTO lx_enh_root. zcx_abapgit_exception=>raise_with_text( lx_enh_root ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~exists. TRY. cl_enh_factory=>load_enhancement_composite( name = mv_composite_id lock = abap_false ). rv_bool = abap_true. CATCH cx_enh_root. rv_bool = abap_false. ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. DATA: lv_argument TYPE seqg3-garg. lv_argument = |{ mv_composite_id }|. OVERLAY lv_argument WITH ' '. lv_argument = |{ lv_argument }*|. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = |E_ENHANCE| iv_argument = lv_argument ). ENDMETHOD. METHOD zif_abapgit_object~jump. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ms_item-obj_name object_type = ms_item-obj_type in_new_window = abap_true EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lx_enh_root TYPE REF TO cx_enh_root, li_enh_composite TYPE REF TO if_enh_composite, lt_composite_childs TYPE enhcompositename_it, lt_enh_childs TYPE enhname_it, lv_longtext_id TYPE enhdocuobject, lv_shorttext TYPE string. TRY. li_enh_composite = cl_enh_factory=>load_enhancement_composite( name = mv_composite_id lock = abap_false ). lv_shorttext = li_enh_composite->if_enh_object_docu~get_shorttext( ). lt_composite_childs = li_enh_composite->get_composite_childs( ). lt_enh_childs = li_enh_composite->get_enh_childs( ). lv_longtext_id = li_enh_composite->get_longtext_id( ). io_xml->add( iv_name = 'SHORTTEXT' ig_data = lv_shorttext ). io_xml->add( iv_name = 'COMPOSITE_CHILDS' ig_data = lt_composite_childs ). io_xml->add( iv_name = 'ENH_CHILDS' ig_data = lt_enh_childs ). io_xml->add( iv_name = 'LONGTEXT_ID' ig_data = lv_longtext_id ). zcl_abapgit_sotr_handler=>read_sotr( iv_pgmid = 'R3TR' iv_object = ms_item-obj_type iv_obj_name = ms_item-obj_name io_xml = io_xml ). CATCH cx_enh_root INTO lx_enh_root. zcx_abapgit_exception=>raise_with_text( lx_enh_root ). ENDTRY. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 16550, 66, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 9186, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 41876, 7500, 292, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 285, 85, 62, 785, 1930, 578, 62, 312, 41876, 5881, 785, 1930, 270, 12453, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 16550, 66, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 318, 62, 9186, 220, 220, 220, 220, 796, 318, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 796, 21628, 62, 16129, 6739, 628, 220, 220, 220, 285, 85, 62, 785, 1930, 578, 62, 312, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 628, 220, 220, 220, 33493, 311, 2751, 2538, 3421, 1525, 39319, 374, 85, 62, 7220, 16034, 5881, 5589, 25677, 198, 220, 220, 220, 220, 220, 33411, 5881, 785, 1930, 578, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 5357, 2196, 796, 705, 32, 4458, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 374, 85, 62, 7220, 796, 269, 62, 7220, 62, 34680, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 33678, 13, 628, 220, 220, 220, 42865, 25, 300, 87, 62, 16550, 62, 15763, 220, 220, 41876, 4526, 37, 5390, 43213, 62, 16550, 62, 15763, 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, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 16550, 62, 15252, 796, 537, 62, 16550, 62, 69, 9548, 14804, 2220, 62, 16550, 590, 434, 62, 785, 1930, 578, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 796, 285, 85, 62, 785, 1930, 578, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5793, 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, 198, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 16550, 62, 15252, 3784, 403, 5354, 7, 6739, 628, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 16550, 62, 15763, 39319, 300, 87, 62, 16550, 62, 15763, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 62, 4480, 62, 5239, 7, 300, 87, 62, 16550, 62, 15763, 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, 87, 62, 16550, 62, 15763, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 43213, 62, 16550, 62, 15763, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 16550, 62, 785, 1930, 578, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 16550, 62, 785, 1930, 578, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 26495, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1614, 4871, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 785, 1930, 578, 62, 9410, 82, 41876, 5881, 785, 1930, 270, 12453, 62, 270, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 16550, 62, 9410, 82, 220, 220, 220, 220, 220, 220, 41876, 5881, 3672, 62, 270, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 6511, 5239, 62, 312, 220, 220, 220, 220, 220, 41876, 5881, 15390, 84, 15252, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 690, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 5881, 5589, 25677, 12, 9641, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 19509, 5239, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 6780, 62, 785, 1930, 578, 62, 9410, 29, 41876, 5881, 785, 1930, 270, 12453, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 6780, 62, 16550, 62, 9410, 29, 220, 220, 220, 220, 220, 220, 34178, 48920, 3963, 300, 83 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*---------------------------------------------------------------------* * view related PAI modules * generation date: 13.02.2019 at 15:18:48 * view maintenance generator version: #001407# *---------------------------------------------------------------------* INCLUDE LSVIMITX . "base table related PAI modules
[ 9, 10097, 30934, 9, 198, 9, 220, 220, 220, 1570, 3519, 8147, 40, 13103, 198, 9, 220, 220, 5270, 3128, 25, 1511, 13, 2999, 13, 23344, 379, 1315, 25, 1507, 25, 2780, 198, 9, 220, 220, 1570, 9262, 17301, 2196, 25, 1303, 405, 1415, 2998, 2, 198, 9, 10097, 30934, 9, 198, 198, 1268, 5097, 52, 7206, 30948, 53, 3955, 2043, 55, 764, 366, 8692, 3084, 3519, 8147, 40, 13103, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_intfmonitor PUBLIC. DATA: md_guid TYPE zzeintfprocguid READ-ONLY, ms_detail TYPE zeintfmonitor_detail READ-ONLY, ms_detail_x TYPE zeintfmonitor_detail_x READ-ONLY. "! Initializes the interface monitor "! @parameter id_guid | Communication unique indentifier "! @parameter is_detail | Information regarding the communication process METHODS initialize IMPORTING id_guid TYPE zzeintfprocguid is_detail TYPE zeintfmonitor_detail. "! Adds a new parameter into the interface monitor "! @parameter id_param | Parameter name "! @parameter ix_val | Parameter value METHODS add_parameter IMPORTING id_param TYPE any ix_val TYPE any. "! Retrieves an existing parameter value "! @parameter id_param | Parameter name "! @parameter ex_val | Parameter value "! @parameter ed_type | Name of Dictionary Type "! @parameter er_data | Reference to parameter value METHODS get_parameter IMPORTING id_param TYPE any EXPORTING ex_val TYPE any ed_type TYPE typename er_data TYPE REF TO data RAISING zcx_intfmonitor. "! Returns detail information regarding the type of communication "! @parameter rs_detail | Detail information METHODS get_detail RETURNING VALUE(rs_detail) TYPE zeintfmonitor_detail. "! Returns detail information regarding the type of communication with texts depending on logon language "! @parameter rs_detail_x | Detail information METHODS get_detail_x RETURNING VALUE(rs_detail_x) TYPE zeintfmonitor_detail_x. "! Reads a comunication execution METHODS read RAISING zcx_intfmonitor. "! Stores a communication execution METHODS store RAISING zcx_intfmonitor. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 600, 69, 41143, 198, 220, 44731, 13, 628, 220, 42865, 25, 198, 220, 220, 220, 45243, 62, 5162, 312, 220, 220, 220, 220, 41876, 1976, 2736, 600, 69, 36942, 5162, 312, 20832, 12, 1340, 11319, 11, 198, 220, 220, 220, 13845, 62, 49170, 220, 220, 41876, 41271, 600, 69, 41143, 62, 49170, 20832, 12, 1340, 11319, 11, 198, 220, 220, 220, 13845, 62, 49170, 62, 87, 41876, 41271, 600, 69, 41143, 62, 49170, 62, 87, 20832, 12, 1340, 11319, 13, 628, 220, 366, 0, 20768, 4340, 262, 7071, 5671, 198, 220, 366, 0, 2488, 17143, 2357, 4686, 62, 5162, 312, 220, 220, 930, 26117, 3748, 33793, 7483, 198, 220, 366, 0, 2488, 17143, 2357, 318, 62, 49170, 930, 6188, 5115, 262, 6946, 1429, 198, 220, 337, 36252, 50, 41216, 30023, 9863, 2751, 4686, 62, 5162, 312, 220, 220, 41876, 1976, 2736, 600, 69, 36942, 5162, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 49170, 41876, 41271, 600, 69, 41143, 62, 49170, 13, 628, 220, 366, 0, 34333, 257, 649, 11507, 656, 262, 7071, 5671, 198, 220, 366, 0, 2488, 17143, 2357, 4686, 62, 17143, 930, 25139, 2357, 1438, 198, 220, 366, 0, 2488, 17143, 2357, 220, 844, 62, 2100, 220, 220, 930, 25139, 2357, 1988, 198, 220, 337, 36252, 50, 751, 62, 17143, 2357, 30023, 9863, 2751, 4686, 62, 17143, 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, 844, 62, 2100, 220, 220, 41876, 597, 13, 198, 220, 366, 0, 4990, 5034, 1158, 281, 4683, 11507, 1988, 198, 220, 366, 0, 2488, 17143, 2357, 4686, 62, 17143, 930, 25139, 2357, 1438, 198, 220, 366, 0, 2488, 17143, 2357, 409, 62, 2100, 220, 220, 930, 25139, 2357, 1988, 198, 220, 366, 0, 2488, 17143, 2357, 1225, 62, 4906, 220, 930, 6530, 286, 28261, 5994, 198, 220, 366, 0, 2488, 17143, 2357, 1931, 62, 7890, 220, 930, 20984, 284, 11507, 1988, 198, 220, 337, 36252, 50, 651, 62, 17143, 2357, 30023, 9863, 2751, 4686, 62, 17143, 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, 7788, 15490, 2751, 409, 62, 2100, 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, 1225, 62, 4906, 220, 41876, 2170, 12453, 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, 1931, 62, 7890, 220, 41876, 4526, 37, 5390, 1366, 198, 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, 600, 69, 41143, 13, 628, 220, 366, 0, 16409, 3703, 1321, 5115, 262, 2099, 286, 6946, 198, 220, 366, 0, 2488, 17143, 2357, 44608, 62, 49170, 930, 42585, 1321, 198, 220, 337, 36252, 50, 651, 62, 49170, 30826, 4261, 15871, 26173, 8924, 7, 3808, 62, 49170, 8, 41876, 41271, 600, 69, 41143, 62, 49170, 13, 628, 220, 366, 0, 16409, 3703, 1321, 5115, 262, 2099, 286, 6946, 351, 13399, 6906, 319, 2604, 261, 3303, 198, 220, 366, 0, 2488, 17143, 2357, 44608, 62, 49170, 62, 87, 930, 42585, 1321, 198, 220, 337, 36252, 50, 651, 62, 49170, 62, 87, 30826, 4261, 15871, 26173, 8924, 7, 3808, 62, 49170, 62, 87, 8, 41876, 41271, 600, 69, 41143, 62, 49170, 62, 87, 13, 628, 220, 366, 0, 4149, 82, 257, 401, 403, 3299, 9706, 198, 220, 337, 36252, 50, 1100, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 600, 69, 41143, 13, 198, 220, 366, 0, 41835, 257, 6946, 9706, 198, 220, 337, 36252, 50, 3650, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 600, 69, 41143, 13, 198, 198, 10619, 41358, 49836, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
interface ZIF_BC009_TR_OF_COPIES public . METHODS create_toc_n_move2target IMPORTING !iv_trkorr TYPE trkorr RAISING zcx_bc009_request. endinterface.
[ 39994, 1168, 5064, 62, 2749, 28694, 62, 5446, 62, 19238, 62, 34, 3185, 11015, 198, 220, 1171, 764, 198, 220, 220, 220, 337, 36252, 50, 2251, 62, 40301, 62, 77, 62, 21084, 17, 16793, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 5145, 452, 62, 2213, 74, 38890, 41876, 491, 74, 38890, 198, 220, 220, 220, 17926, 1797, 2751, 1976, 66, 87, 62, 15630, 28694, 62, 25927, 13, 198, 437, 39994, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
"! <p class="shorttext synchronized" lang="en">Abstract file byte reader</p> CLASS zcl_io_file_x_reader DEFINITION PUBLIC INHERITING FROM zcl_io_x_reader ABSTRACT CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_io_file_reader . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_io_file_x_reader IMPLEMENTATION. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 23839, 2393, 18022, 9173, 3556, 79, 29, 198, 31631, 1976, 565, 62, 952, 62, 7753, 62, 87, 62, 46862, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 952, 62, 87, 62, 46862, 198, 220, 9564, 18601, 10659, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 952, 62, 7753, 62, 46862, 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, 952, 62, 7753, 62, 87, 62, 46862, 30023, 2538, 10979, 6234, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZCX_TEXT_CONVERSION_ERROR definition public inheriting from ZCX_RUNTIMEEXCEPTION final create public . public section. constants ZCX_TEXT_CONVERSION_ERROR type SOTR_CONC value '00155D334B0D1EE2B9826501204AA991'. "#EC NOTEXT methods CONSTRUCTOR importing !TEXTID like TEXTID optional !PREVIOUS like PREVIOUS optional !MESSAGE type STRING optional . protected section. private section. ENDCLASS. CLASS ZCX_TEXT_CONVERSION_ERROR IMPLEMENTATION. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCX_TEXT_CONVERSION_ERROR->CONSTRUCTOR * +-------------------------------------------------------------------------------------------------+ * | [--->] TEXTID LIKE TEXTID(optional) * | [--->] PREVIOUS LIKE PREVIOUS(optional) * | [--->] MESSAGE TYPE STRING(optional) * +--------------------------------------------------------------------------------------</SIGNATURE> method CONSTRUCTOR. CALL METHOD SUPER->CONSTRUCTOR EXPORTING TEXTID = TEXTID PREVIOUS = PREVIOUS MESSAGE = MESSAGE . IF textid IS INITIAL. me->textid = ZCX_TEXT_CONVERSION_ERROR . ENDIF. endmethod. ENDCLASS.
[ 4871, 1168, 34, 55, 62, 32541, 62, 10943, 43717, 62, 24908, 6770, 201, 198, 220, 1171, 201, 198, 220, 10639, 1780, 422, 1168, 34, 55, 62, 49, 4944, 34694, 6369, 42006, 2849, 201, 198, 220, 2457, 201, 198, 220, 2251, 1171, 764, 201, 198, 201, 198, 11377, 2665, 13, 201, 198, 201, 198, 220, 38491, 1168, 34, 55, 62, 32541, 62, 10943, 43717, 62, 24908, 2099, 311, 2394, 49, 62, 10943, 34, 1988, 705, 405, 18742, 35, 31380, 33, 15, 35, 16, 6500, 17, 33, 4089, 22980, 486, 18638, 3838, 2079, 16, 4458, 25113, 2943, 5626, 13918, 201, 198, 201, 198, 220, 5050, 7102, 46126, 1581, 201, 198, 220, 220, 220, 33332, 201, 198, 220, 220, 220, 220, 220, 5145, 32541, 2389, 588, 40383, 2389, 11902, 201, 198, 220, 220, 220, 220, 220, 5145, 46437, 12861, 20958, 588, 22814, 12861, 20958, 11902, 201, 198, 220, 220, 220, 220, 220, 5145, 44, 1546, 4090, 8264, 2099, 19269, 2751, 11902, 764, 201, 198, 24326, 2665, 13, 201, 198, 19734, 2665, 13, 201, 198, 10619, 31631, 13, 201, 198, 201, 198, 201, 198, 201, 198, 31631, 1168, 34, 55, 62, 32541, 62, 10943, 43717, 62, 24908, 30023, 2538, 10979, 6234, 13, 201, 198, 201, 198, 201, 198, 9, 1279, 46224, 40086, 29, 10097, 19351, 6329, 10, 201, 198, 9, 930, 2262, 590, 5094, 11789, 1168, 34, 55, 62, 32541, 62, 10943, 43717, 62, 24908, 3784, 10943, 46126, 1581, 201, 198, 9, 1343, 10097, 3880, 19529, 201, 198, 9, 930, 685, 438, 3784, 60, 40383, 2389, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 34178, 220, 220, 220, 220, 220, 220, 220, 40383, 2389, 7, 25968, 8, 201, 198, 9, 930, 685, 438, 3784, 60, 22814, 12861, 20958, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 34178, 220, 220, 220, 220, 220, 220, 220, 22814, 12861, 20958, 7, 25968, 8, 201, 198, 9, 930, 685, 438, 3784, 60, 337, 1546, 4090, 8264, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 220, 220, 220, 220, 220, 220, 220, 19269, 2751, 7, 25968, 8, 201, 198, 9, 1343, 10097, 19351, 438, 3556, 46224, 40086, 29, 201, 198, 24396, 7102, 46126, 1581, 13, 201, 198, 34, 7036, 337, 36252, 33088, 3784, 10943, 46126, 1581, 201, 198, 6369, 15490, 2751, 201, 198, 32541, 2389, 796, 40383, 2389, 201, 198, 46437, 12861, 20958, 796, 22814, 12861, 20958, 201, 198, 44, 1546, 4090, 8264, 796, 337, 1546, 4090, 8264, 201, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
INTERFACE lif_data_generator. CLASS-METHODS: create IMPORTING out TYPE REF TO if_oo_adt_classrun_out OPTIONAL. ENDINTERFACE. CLASS lcl_agency_data_generator DEFINITION CREATE PRIVATE. PUBLIC SECTION. INTERFACES: lif_data_generator. TYPES: tt_agency TYPE STANDARD TABLE OF /dmo/agency05 WITH KEY agency_id. CLASS-METHODS: get_data RETURNING VALUE(rt_data) TYPE tt_agency. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS lcl_agency_data_generator IMPLEMENTATION. METHOD lif_data_generator~create. IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF. DELETE FROM /dmo/agency05. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF. DATA(lt_data) = get_data( ). IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF. INSERT /dmo/agency05 FROM TABLE @lt_data. IF out IS BOUND. out->write( '--> Done.' ). ENDIF. ENDMETHOD. METHOD get_data. rt_data = VALUE tt_agency( ( agency_id = '070001' name = 'Sunshine Travel' street = '134 West Street ' postal_code = '54323 ' city = 'Rochester ' country_code = 'US ' phone_number = '+1 901-632-5620 ' web_address = 'http://www.sunshine-travel.sap ' email_address = '[email protected] ' ) ( agency_id = '070002' name = 'Fly High' street = 'Berliner Allee 11 ' postal_code = '40880 ' city = 'Duesseldorf ' country_code = 'DE ' phone_number = '+49 2102 69555 ' web_address = 'http://www.flyhigh.sap ' email_address = '[email protected] ' ) ( agency_id = '070003' name = 'Happy Hopping' street = 'Calvinstr. 36 ' postal_code = '13467 ' city = 'Berlin ' country_code = 'DE ' phone_number = '+49 30-8853-0 ' web_address = 'http://www.haphop.sap ' email_address = '[email protected] ' ) ( agency_id = '070004' name = 'Pink Panther' street = 'Auf der Schanz 54 ' postal_code = '65936 ' city = 'Frankfurt ' country_code = 'DE ' phone_number = '+49 69-467653-0 ' web_address = 'http://www.pinkpanther.sap' email_address = '[email protected] ' ) ( agency_id = '070005' name = 'Your Choice' street = 'Gustav-Jung-Str. 425 ' postal_code = '90455' city = 'Nuernberg' country_code = 'DE' phone_number = '+49 9256-4548-0' web_address = 'http://www.yc.sap' email_address = '[email protected]' ) ( agency_id = '070006' name = 'Bella Italia' street = 'Via Marconi 123' postal_code = '00139' city = 'Roma' country_code = 'IT' phone_number = '+39 6 893546721' web_address = 'http://www.tours.it/Adventure/' email_address = '[email protected]/Adventure/' ) ( agency_id = '070007' name = 'Hot Socks Travel' street = '224 Balnagask Rd ' postal_code = '8053 ' city = 'Sydney' country_code = 'AU ' phone_number = '+61 2 2004 5000 ' web_address = 'http://www.hst.co.au' email_address = '[email protected]' ) ( agency_id = '070008' name = 'Burns Nuclear' street = '14 Science Park Drive' postal_code = '118228' city = 'Singapore' country_code = 'SG' phone_number = '+65 777-5566' web_address = 'http://www.burns-burns-burns.sg' email_address = '[email protected]' ) ( agency_id = '070009' name = 'Honauer Reisen GmbH' street = 'Baumgarten 8' postal_code = '4212' city = 'Neumarkt' country_code = 'AT' phone_number = '+43 7941 8903' web_address = 'http://www.honauer.at' email_address = '[email protected]' ) ( agency_id = '070010' name = 'Travel from Walldorf' street = 'Altonaer Str. 24 ' postal_code = '10557 ' city = 'Berlin ' country_code = 'DE ' phone_number = '+49 30-622860 ' web_address = 'http://www.travel-from-walldorf' email_address = 'info@travel-from-walldorf' ) ( agency_id = '070011' name = 'Voyager Enterprises' street = 'Gustavslundsvaegen 151' postal_code = '70563 ' city = 'Stockholm ' country_code = 'SE ' phone_number = '+46 8/ 587 70000' web_address = 'http://www.starfleet.ufp' email_address = '[email protected]' ) ( agency_id = '070012' name = 'Ben McCloskey Ltd.' street = '74 Court Oak Rd' postal_code = 'B17 9TN' city = 'Birmingham' country_code = 'GB' phone_number = '+44 121 365-2251 ' web_address = 'http://www.ben-mcCloskey.co.uk' email_address = '[email protected]' ) ( agency_id = '070013' name = 'Pillepalle Trips' street = 'Gorki Park 4 ' postal_code = '8008 ' city = 'Zuerich ' country_code = 'CH ' phone_number = '+41 1 345-5321 ' web_address = 'http://www.pi-pa-tri.sap' email_address = '[email protected]' ) ( agency_id = '070014' name = 'Kangeroos' street = 'Lancaster drive 435 ' postal_code = '20001 ' city = 'London ' country_code = 'GB ' phone_number = '+44 171-2937638 ' web_address = 'http://www.hopp.sap ' email_address = '[email protected] ' ) ( agency_id = '070015' name = 'Bavarian Castle' street = 'Pilnizerstr. 241 ' postal_code = '01069 ' city = 'Dresden ' country_code = 'DE ' phone_number = '+49 98-32832732 ' web_address = 'http://www.neu.schwanstein.sap ' email_address = '[email protected] ' ) ( agency_id = '070016' name = 'Ali''s Bazar' street = '45, Mac Arthur Boulevard ' postal_code = '19113 ' city = 'Boston ' country_code = 'US ' phone_number = '+1 508-692-5200 ' web_address = 'http://www.ali.sap ' email_address = '[email protected] ' ) ( agency_id = '070017' name = 'Super Agency' street = '50 Cranworth St' postal_code = 'G12 8AG' city = 'Glasgow' country_code = 'GB' phone_number = '+44 141 711-5643' web_address = 'http://www.super.sap' email_address = '[email protected]' ) ( agency_id = '070018' name = 'Wang Chong' street = 'Gagarine Park ' postal_code = '150021 ' city = 'Moscow ' country_code = 'RU ' phone_number = '+7 3287-213321 ' web_address = 'http://www.wang.chong.sap' email_address = '[email protected]' ) ( agency_id = '070019' name = 'Around the World' street = 'An der Breiten Wiese 122 ' postal_code = '30625 ' city = 'Hannover ' country_code = 'DE ' phone_number = '+49 511-347589-0 ' web_address = 'http://www.atw.sap' email_address = '[email protected]' ) ( agency_id = '070020' name = 'No Return' street = 'Wahnheider Str. 57 ' postal_code = '51105 ' city = 'Koeln ' country_code = 'DE ' phone_number = '+49 221-5689-100 ' web_address = 'http://www.bye-bye.sap ' email_address = '[email protected] ' ) ( agency_id = '070021' name = 'Special Agency Peru' street = 'Triberger Str. 42 ' postal_code = '70569 ' city = 'Stuttgart ' country_code = 'DE ' phone_number = '+49 711-7100 ' web_address = 'http://www.sap.com ' email_address = '[email protected] ' ) ( agency_id = '070022' name = 'Caribian Dreams' street = 'Deichstrasse 45 ' postal_code = '26721 ' city = 'Emden ' country_code = 'DE ' phone_number = '+49 2670-8560-0 ' web_address = 'http://www.cuba-libre.sap ' email_address = '[email protected] ' ) ( agency_id = '070023' name = 'Asia By Plane' street = '6-9 Iidabashi 7-chome' postal_code = '102-0072' city = 'Tokyo ' country_code = 'JP' phone_number = '+81 3-3239-3501 ' web_address = 'http://www.asia-by-plane.co.jp' email_address = '[email protected]' ) ( agency_id = '070024' name = 'Everywhere' street = 'Regensburger Platz 23 ' postal_code = '81679 ' city = 'Muenchen ' country_code = 'DE ' phone_number = '+49 89-2499239 ' web_address = 'http://www.everywhere.sap' email_address = '[email protected]' ) ( agency_id = '070025' name = 'Happy Holiday' street = 'Rastenburger Str. 12' postal_code = '28779 ' city = 'Bremen ' country_code = 'DE ' phone_number = '+49 3266-288817 ' web_address = 'http://www.haphol.sap' email_address = '[email protected]' ) ( agency_id = '070026' name = 'No Name' street = 'Schwalbenweg 43 ' postal_code = '52078 ' city = 'Aachen ' country_code = 'DE ' phone_number = '+49 241-77729 ' web_address = 'http://www.nn.sap' email_address = '[email protected]' ) ( agency_id = '070027' name = 'Fly Low' street = 'Chemnitzer Str. 42 ' postal_code = '01187 ' city = 'Dresden ' country_code = 'DE ' phone_number = '+49 351-5423-00 ' web_address = 'http://www.fly-low.sap' email_address = '[email protected]' ) ( agency_id = '070028' name = 'Aussie Travel' street = 'Queens Road ' postal_code = 'M8 7RYP ' city = 'Manchester ' country_code = 'GB ' phone_number = '+44 161 2052000 ' web_address = 'http://www.down-under.sap' email_address = '[email protected]' ) ( agency_id = '070029' name = 'Up ''n'' Away' street = 'Nackenbergerstr. 92 ' postal_code = '30625 ' city = 'Hannover ' country_code = 'DE ' phone_number = '+49 511 403266-0 ' web_address = 'http://www.una.sap ' email_address = '[email protected] ' ) ( agency_id = '070030' name = 'Trans World Travel' street = '100 Industrial Drive ' postal_code = '60804 ' city = 'Chicago ' country_code = 'US ' phone_number = '+1 708-454-8723 ' web_address = 'http://www.twt.sap ' email_address = '[email protected] ' ) ( agency_id = '070031' name = 'Bright Side of Life' street = '340 State Street ' postal_code = '30432 ' city = 'San Francisco ' country_code = 'US ' phone_number = '+1 415-454-9877 ' web_address = 'http://www.ruebennase.sap ' email_address = '[email protected] ' ) ( agency_id = '070032' name = 'Sunny, Sunny, Sunny' street = '1300 State Street ' postal_code = '19003 ' city = 'Philadelphia ' country_code = 'US ' phone_number = '+1 215-090-7659 ' web_address = 'http://www.s3.sap ' email_address = '[email protected] ' ) ( agency_id = '070033' name = 'Fly & Smile' street = 'Zeppelinstr. 17 ' postal_code = '60318 ' city = 'Frankfurt ' country_code = 'DE ' phone_number = '+49 69-99-0 ' web_address = 'http://www.fly-and-smile.sap ' email_address = '[email protected] ' ) ( agency_id = '070034' name = 'Supercheap' street = '1400, Washington Circle ' postal_code = '30439 ' city = 'Los Angeles ' country_code = 'US ' phone_number = '+1 251-369-2510 ' web_address = 'http://www.supercheap.sap ' email_address = '[email protected] ' ) ( agency_id = '070035' name = 'Hitchhiker' street = '21 Rue de Moselle ' postal_code = '92132 ' city = 'Issy-les-Moulineaux ' country_code = 'FR ' phone_number = '+33 1-405-555-888 ' web_address = 'http://www.42.sap ' email_address = '[email protected] ' ) ( agency_id = '070036' name = 'Fly Now, Pay Later' street = '100 Madison ' postal_code = '11012 ' city = 'New York ' country_code = 'US ' phone_number = '+1 512 343-8543 ' web_address = 'http://www.fn-pl.sap ' email_address = '[email protected] ' ) ( agency_id = '070037' name = 'Real Weird Vacation' street = '949 5th Street ' postal_code = 'V6T 1Z4' city = 'Vancouver' country_code = 'CA ' phone_number = '+1 604 827-8024' web_address = 'http://www.reweva.sap ' email_address = '[email protected] ' ) ( agency_id = '070038' name = 'Cap Travels Ltd.' street = '10 Mandela St' postal_code = '2128' city = 'Johannesburg' country_code = 'ZA' phone_number = '+27 11 886-8981' web_address = 'http://www.cap-travels.co.za' email_address = '[email protected]' ) ( agency_id = '070039' name = 'Rainy, Stormy, Cloudy' street = 'Lindenstr. 462 ' postal_code = '70563 ' city = 'Stuttgart ' country_code = 'DE ' phone_number = '+49 711-7992-00 ' web_address = 'http://www.windy.sap/rsc/ ' email_address = '[email protected]/rsc/ ' ) ( agency_id = '070040' name = 'Women only' street = 'Kirchstr. 53 ' postal_code = '55124 ' city = 'Mainz ' country_code = 'DE ' phone_number = '+49 6131-543-00 ' web_address = 'http://www.women-only.sap ' email_address = '[email protected] ' ) ( agency_id = '070041' name = 'Maxitrip' street = 'Flugfeld 17' postal_code = '65128' city = 'Wiesbaden' country_code = 'DE' phone_number = '+49 611-55 66 77' web_address = 'http://www.maxitrip.sap' email_address = '[email protected]' ) ( agency_id = '070042' name = 'The Ultimate Answer' street = 'Manchester Rd 20 ' postal_code = 'AB1 1SA ' city = 'Avon ' country_code = 'GB ' phone_number = '+44 934-66799 ' web_address = 'http://www.thulan.sap ' email_address = '[email protected] ' ) ( agency_id = '070043' name = 'Intertravel' street = 'Michigan Ave ' postal_code = '60154 ' city = 'Chicago ' country_code = 'US ' phone_number = '+1 788 798-6555 ' web_address = 'http://www.intertravel.sap ' email_address = '[email protected] ' ) ( agency_id = '070044' name = 'Ultimate Goal' street = '300 Peach tree street Sou' postal_code = '01069 ' city = 'Atlanta ' country_code = 'US ' phone_number = '+1 874-654-6686' web_address = 'http://www.ultimate-goal.sap ' email_address = '[email protected] ' ) ( agency_id = '070045' name = 'Submit and Return' street = '20890 East Central Ave ' postal_code = '30987 ' city = 'Palo Alto ' country_code = 'US ' phone_number = '+1 652 645-5236 ' web_address = 'http://www.sar.sap ' email_address = '[email protected] ' ) ( agency_id = '070046' name = 'Hendrik''s' street = '1200 Industrial Drive ' postal_code = '60153 ' city = 'Chicago ' country_code = 'US ' phone_number = '+1 08-924-9884 ' web_address = 'http://www.essen.sap/150596 ' email_address = '[email protected]/150596 ' ) ( agency_id = '070047' name = 'All British Air Planes' street = '224 Tomato Lane ' postal_code = '08965 ' city = 'Vineland ' country_code = 'US ' phone_number = '+44 609-896-Moore ' web_address = 'http://www.abap.sap ' email_address = '[email protected] ' ) ( agency_id = '070048' name = 'Rocky Horror Tours' street = '789 Santa Monica Blvd. ' postal_code = '08934 ' city = 'Santa Monica ' country_code = 'US ' phone_number = '+1 64351-6455-654 ' web_address = 'http://www.frank.furter.sap ' email_address = '[email protected] ' ) ( agency_id = '070049' name = 'Miles and More' street = '777 Arlington Blvd. ' postal_code = '46515 ' city = 'Elkhart ' country_code = 'US ' phone_number = '+1 646 867-6888 ' web_address = 'http://www.mam.sap' email_address = '[email protected]' ) ( agency_id = '070050' name = 'Not Only By Bike' street = 'Saalburgstr. 765 ' postal_code = '60385 ' city = 'Frankfurt ' country_code = 'DE ' phone_number = '+49 69 465789-0' web_address = 'http://www.nobb.sap' email_address = '[email protected]' ) ). ENDMETHOD. ENDCLASS. CLASS lcl_airport_data_generator DEFINITION CREATE PRIVATE. PUBLIC SECTION. INTERFACES: lif_data_generator. TYPES: tt_airport TYPE STANDARD TABLE OF /dmo/airport05 WITH KEY airport_id. CLASS-METHODS: get_data RETURNING VALUE(rt_data) TYPE lcl_airport_data_generator=>tt_airport. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS lcl_airport_data_generator IMPLEMENTATION. METHOD lif_data_generator~create. IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF. DELETE FROM /dmo/airport05. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF. DATA(lt_data) = get_data( ). IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF. INSERT /dmo/airport05 FROM TABLE @lt_data. IF out IS BOUND. out->write( '--> Done.' ). ENDIF. ENDMETHOD. METHOD get_data. rt_data = VALUE tt_airport( " Europe ( airport_id = 'FRA' name = 'Frankfurt Airport' city = 'Frankfurt/Main' country = 'DE' ) ( airport_id = 'HAM' name = 'Hamburg Airport' city = 'Hamburg' country = 'DE' ) ( airport_id = 'MUC' name = 'Munich Airport' city = 'Munich' country = 'DE' ) ( airport_id = 'SXF' name = 'Berlin Schönefeld Airport' city = 'Berlin' country = 'DE' ) ( airport_id = 'THF' name = 'Berlin Tempelhof Airport' city = 'Berlin' country = 'DE' ) ( airport_id = 'TXL' name = 'Berlin Tegel Airport' city = 'Berlin' country = 'DE' ) ( airport_id = 'CDG' name = 'Charles de Gaulle Airport' city = 'Paris' country = 'FR' ) ( airport_id = 'ORY' name = 'Orly Airport' city = 'Paris' country = 'FR' ) ( airport_id = 'VIE' name = 'Vienna International Airport' city = 'Vienna' country = 'AT' ) ( airport_id = 'ZRH' name = 'Zürich Airport' city = 'Zurich' country = 'CH' ) ( airport_id = 'RTM' name = 'Rotterdam The Hague Airport' city = 'Rotterdam' country = 'NL' ) ( airport_id = 'FCO' name = 'Leonardo da Vinci–Fiumicino Airport' city = 'Rome' country = 'IT' ) ( airport_id = 'VCE' name = 'Venice Marco Polo Airport' city = 'Venice' country = 'IT' ) ( airport_id = 'LCY' name = 'London City Airport' city = 'London' country = 'UK' ) ( airport_id = 'LGW' name = 'Gatwick Airport' city = 'London' country = 'UK' ) ( airport_id = 'LHR' name = 'Heathrow Airport' city = 'London' country = 'UK' ) ( airport_id = 'MAD' name = 'Adolfo Suárez Madrid–Barajas Airport' city = 'Madrid' country = 'ES' ) ( airport_id = 'VKO' name = 'Vnukovo International Airport' city = 'Moscow' country = 'RU' ) ( airport_id = 'SVO' name = 'Sheremetyevo International Airport' city = 'Moscow' country = 'RU' ) " America ( airport_id = 'JFK' name = 'John F. Kennedy International Airport' city = 'New York City, New York' country = 'US' ) ( airport_id = 'BNA' name = 'Nashville International Airport' city = 'Nashville, Tennessee' country = 'US' ) ( airport_id = 'BOS' name = 'Logan International Airport' city = 'Boston, Massachusetts' country = 'US' ) ( airport_id = 'ELP' name = 'El Paso International Airport' city = 'El Paso, Texas' country = 'US' ) ( airport_id = 'DEN' name = 'Denver International Airport' city = 'Denver, Colorado' country = 'US' ) ( airport_id = 'HOU' name = 'William P. Hobby Airport' city = 'Houston, Texas' country = 'US' ) ( airport_id = 'LAS' name = 'McCarran International Airport' city = 'Las Vegas, Nevada' country = 'US' ) ( airport_id = 'LAX' name = 'Los Angeles International Airport' city = 'Los Angeles, California' country = 'US' ) ( airport_id = 'MCI' name = 'Kansas City International Airport' city = 'Kansas City, Missouri' country = 'US' ) ( airport_id = 'MIA' name = 'Miami International Airport' city = 'Miami, Florida' country = 'US' ) ( airport_id = 'SFO' name = 'San Francisco International Airport' city = 'San Francisco, California' country = 'US' ) ( airport_id = 'EWR' name = 'Newark Liberty International Airport' city = 'Newark, New Jersey' country = 'US' ) ( airport_id = 'YOW' name = 'Ottawa Macdonald–Cartier Int. Airport' city = 'Ottawa, Ontario' country = 'CA' ) ( airport_id = 'ACA' name = 'General Juan N. Álvarez Int. Airport' city = 'Acapulco, Guerrero' country = 'MX' ) ( airport_id = 'GIG' name = 'Rio de Janeiro–Galeão Int. Airport' city = 'Rio de Janeiro' country = 'BR' ) ( airport_id = 'HAV' name = 'José Martí International Airport' city = 'Havana' country = 'CU' ) " Australia ( airport_id = 'ASP' name = 'Alice Springs Airport' city = 'Alice Springs, Northern Territory' country = 'AU' ) " Africa ( airport_id = 'ACE' name = 'Lanzarote Airport' city = 'Lanzarote, Canary Islands' country = 'ES' ) ( airport_id = 'HRE' name = 'Harare International Airport' city = 'Harare' country = 'ZW' ) ( airport_id = 'GCJ' name = 'Grand Central Airport' city = 'Johannesburg' country = 'SA' ) " Asia ( airport_id = 'NRT' name = 'Narita International Airport' city = 'Tokyo, Honshu' country = 'JP' ) ( airport_id = 'ITM' name = 'Osaka International Airport' city = 'Osaka, Honshu' country = 'JP' ) ( airport_id = 'KIX' name = 'Kansai International Airport' city = 'Osaka, Honshu' country = 'JP' ) ( airport_id = 'HIJ' name = 'Hiroshima Airport' city = 'Hiroshima, Honshu' country = 'JP' ) ( airport_id = 'SIN' name = 'Singapore Changi Airport' city = 'Singapore' country = 'SG' ) ( airport_id = 'KUL' name = 'Kuala Lumpur International Airport' city = 'Kuala Lumpur' country = 'MY' ) ( airport_id = 'HKG' name = 'Hong Kong International Airport' city = 'Hongkong' country = 'CN' ) ( airport_id = 'BKK' name = 'Suvarnabhumi Airport' city = 'Bangkok' country = 'TH' ) ). ENDMETHOD. ENDCLASS. CLASS lcl_carrier_data_generator DEFINITION CREATE PRIVATE. PUBLIC SECTION. INTERFACES: lif_data_generator. TYPES: tt_carrier TYPE STANDARD TABLE OF /dmo/carrier05 WITH KEY carrier_id. CLASS-METHODS: get_data RETURNING VALUE(rt_data) TYPE tt_carrier. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS lcl_carrier_data_generator IMPLEMENTATION. METHOD lif_data_generator~create. IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF. DELETE FROM /dmo/carrier05. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF. DATA(lt_data) = get_data( ). IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF. INSERT /dmo/carrier05 FROM TABLE @lt_data. IF out IS BOUND. out->write( '--> Done.' ). ENDIF. ENDMETHOD. METHOD get_data. rt_data = VALUE tt_carrier( ( carrier_id = 'AA' name = 'American Airlines Inc.' currency_code = 'USD' ) ( carrier_id = 'AC' name = 'Air Canada' currency_code = 'CAD' ) ( carrier_id = 'AF' name = 'Air France' currency_code = 'EUR' ) ( carrier_id = 'AZ' name = 'Alitalia Societa Aerea Italiana S.p.A.' currency_code = 'EUR' ) ( carrier_id = 'BA' name = 'British Airways p.l.c.' currency_code = 'GBP' ) ( carrier_id = 'FJ' name = 'Air Pacific Limited t/a Fiji Airway' currency_code = 'USD' ) ( carrier_id = 'CO' name = 'Cobaltair Ltd. dba Cobalt' currency_code = 'USD' ) ( carrier_id = 'DL' name = 'Delta Air Lines, Inc.' currency_code = 'USD' ) ( carrier_id = 'LH' name = 'Deutsche Lufthansa AG' currency_code = 'EUR' ) ( carrier_id = 'NG' name = 'AL-Naser Wings' currency_code = 'EUR' ) ( carrier_id = 'JL' name = 'Japan Airlines Co., Ltd.' currency_code = 'JPY' ) ( carrier_id = 'QF' name = 'Qantas Airways Ltd.' currency_code = 'AUD' ) ( carrier_id = 'SA' name = 'South African Airways' currency_code = 'ZAR' ) ( carrier_id = 'SQ' name = 'Singapore Airlines Limited' currency_code = 'SGD' ) ( carrier_id = 'SR' name = 'Sundair GmbH' currency_code = 'CHF' ) ( carrier_id = 'UA' name = 'United Airlines, Inc.' currency_code = 'USD' ) ). ENDMETHOD. ENDCLASS. CLASS lcl_connection_data_generator DEFINITION CREATE PRIVATE. PUBLIC SECTION. INTERFACES: lif_data_generator. TYPES: tt_connection TYPE STANDARD TABLE OF /dmo/connecti_05 WITH KEY carrier_id connection_id. TYPES: "! Structure for additional information for generation. <br/> "! <em>weekday</em> '1' means Monday, '7' is Sunday BEGIN OF ty_connection_additional_info. INCLUDE TYPE /dmo/connecti_05. TYPES: weekday TYPE i, END OF ty_connection_additional_info. TYPES: tt_connection_additional_info TYPE STANDARD TABLE OF ty_connection_additional_info WITH KEY connection_id. CLASS-METHODS: get_data "provide data public RETURNING VALUE(rt_data) TYPE tt_connection_additional_info. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS lcl_connection_data_generator IMPLEMENTATION. METHOD lif_data_generator~create. IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF. DELETE FROM /dmo/connecti_05. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF. DATA(lt_data) = get_data( ). DATA(lt_data_db) = CORRESPONDING tt_connection( lt_data ). IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF. INSERT /dmo/connecti_05 FROM TABLE @lt_data. IF out IS BOUND. out->write( '--> Done.' ). ENDIF. ENDMETHOD. METHOD get_data. rt_data = VALUE tt_connection_additional_info( ( carrier_id = 'SQ' connection_id = '0001' airport_from_id = 'SFO' airport_to_id = 'SIN' departure_time = '011500' arrival_time = '115000' distance = 13523 distance_unit = 'KM' weekday = 3 ) "1-7 ( carrier_id = 'SQ' connection_id = '0002' airport_from_id = 'SIN' airport_to_id = 'SFO' departure_time = '063000' arrival_time = '091500' distance = 13523 distance_unit = 'KM' weekday = 4 ) "1-7 ( carrier_id = 'SQ' connection_id = '0011' airport_from_id = 'NRT' airport_to_id = 'SIN' departure_time = '145500' arrival_time = '205000' distance = 5363 distance_unit = 'KM' weekday = 4 ) "1-7 ( carrier_id = 'SQ' connection_id = '0012' airport_from_id = 'SIN' airport_to_id = 'NRT' departure_time = '095300' arrival_time = '175400' distance = 5363 distance_unit = 'KM' weekday = 6 ) "1-7 ( carrier_id = 'UA' connection_id = '0058' airport_from_id = 'SFO' airport_to_id = 'FRA' departure_time = '134500' arrival_time = '095500' distance = 9608 distance_unit = 'KM' weekday = 1 ) "1-7 ( carrier_id = 'UA' connection_id = '0059' airport_from_id = 'FRA' airport_to_id = 'SFO' departure_time = '135500' arrival_time = '163000' distance = 9608 distance_unit = 'KM' weekday = 2 ) "1-7 ( carrier_id = 'UA' connection_id = '1537' airport_from_id = 'EWR' airport_to_id = 'MIA' departure_time = '215600' arrival_time = '004700' distance = 1752 distance_unit = 'KM' weekday = 5 ) "1-7 ( carrier_id = 'AA' connection_id = '0322' airport_from_id = 'MIA' airport_to_id = 'EWR' departure_time = '201700' arrival_time = '231900' distance = 1752 distance_unit = 'KM' weekday = 7 ) "1-7 ( carrier_id = 'AA' connection_id = '0017' airport_from_id = 'MIA' airport_to_id = 'HAV' departure_time = '071900' arrival_time = '080300' distance = 520 distance_unit = 'KM' weekday = 3 ) "1-7 ( carrier_id = 'AA' connection_id = '2678' airport_from_id = 'HAV' airport_to_id = 'MIA' departure_time = '061500' arrival_time = '103000' distance = 520 distance_unit = 'KM' weekday = 6 ) "1-7 ( carrier_id = 'AA' connection_id = '0015' airport_from_id = 'JFK' airport_to_id = 'SFO' departure_time = '071300' arrival_time = '100400' distance = 4156 distance_unit = 'KM' weekday = 5 ) "1-7 ( carrier_id = 'AA' connection_id = '0018' airport_from_id = 'SFO' airport_to_id = 'JFK' departure_time = '064000' arrival_time = '150600' distance = 4156 distance_unit = 'KM' weekday = 4 ) "1-7 ( carrier_id = 'LH' connection_id = '0400' airport_from_id = 'FRA' airport_to_id = 'JFK' departure_time = '101000' arrival_time = '113400' distance = 6162 distance_unit = 'KM' weekday = 6 ) "1-7 ( carrier_id = 'LH' connection_id = '0401' airport_from_id = 'JFK' airport_to_id = 'FRA' departure_time = '183000' arrival_time = '074500' distance = 6162 distance_unit = 'KM' weekday = 5 ) "1-7 ( carrier_id = 'LH' connection_id = '0402' airport_from_id = 'FRA' airport_to_id = 'EWR' departure_time = '133000' arrival_time = '153500' distance = 6217 distance_unit = 'KM' weekday = 1 ) "1-7 ( carrier_id = 'LH' connection_id = '0403' airport_from_id = 'EWR' airport_to_id = 'FRA' departure_time = '180900' arrival_time = '073000' distance = 6217 distance_unit = 'KM' weekday = 1 ) "1-7 ( carrier_id = 'JL' connection_id = '0407' airport_from_id = 'NRT' airport_to_id = 'FRA' departure_time = '132300' arrival_time = '155600' distance = 9379 distance_unit = 'KM' weekday = 5 ) "1-7 ( carrier_id = 'JL' connection_id = '0408' airport_from_id = 'FRA' airport_to_id = 'NRT' departure_time = '202500' arrival_time = '154000' distance = 9379 distance_unit = 'KM' weekday = 6 ) "1-7 ( carrier_id = 'AZ' connection_id = '0788' airport_from_id = 'VCE' airport_to_id = 'NRT' departure_time = '132500' arrival_time = '101300' distance = 9595 distance_unit = 'KM' weekday = 6 ) ( carrier_id = 'AZ' connection_id = '0789' airport_from_id = 'NRT' airport_to_id = 'VCE' departure_time = '142600' arrival_time = '213100' distance = 9595 distance_unit = 'KM' weekday = 5 ) ). ENDMETHOD. ENDCLASS. CLASS lcl_flight_data_generator DEFINITION DEFERRED. CLASS /dmo/cl_flight_data_generat_05 DEFINITION LOCAL FRIENDS lcl_flight_data_generator. CLASS lcl_flight_data_generator DEFINITION CREATE PRIVATE. PUBLIC SECTION. INTERFACES: lif_data_generator. TYPES: tt_flights TYPE STANDARD TABLE OF /dmo/flight05 WITH KEY carrier_id connection_id flight_date WITH NON-UNIQUE SORTED KEY key_sorted_seats COMPONENTS seats_occupied WITH NON-UNIQUE SORTED KEY key_sorted_date COMPONENTS connection_id flight_date. CLASS-METHODS: get_data RETURNING VALUE(rt_data) TYPE tt_flights. PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_plane_type, id TYPE /dmo/plane_type_id05, seats_max TYPE /dmo/plane_seats_max05, long_distance TYPE abap_bool, index TYPE int1, END OF ty_plane_type, BEGIN OF ty_flight_info, id TYPE /dmo/plane_type_id05, long_distance TYPE abap_bool, seats_max TYPE /dmo/plane_seats_max05, seats_occupied TYPE /dmo/plane_seats_occupied05, price TYPE /dmo/flight_price05, END OF ty_flight_info, BEGIN OF ty_connection_recurrency, id TYPE /dmo/connection_id05, recurrency TYPE STANDARD TABLE OF /dmo/flight_date05 WITH EMPTY KEY, END OF ty_connection_recurrency. TYPES: tt_plane_type TYPE STANDARD TABLE OF ty_plane_type WITH KEY id, tt_connection_recurrency TYPE STANDARD TABLE OF ty_connection_recurrency WITH KEY id. CONSTANTS: cv_random_offset TYPE i VALUE 25, cv_random_percent TYPE i VALUE 70. CLASS-DATA: gt_connections TYPE lcl_connection_data_generator=>tt_connection, gt_carrier TYPE lcl_carrier_data_generator=>tt_carrier, gt_plane_types TYPE tt_plane_type, go_random_int_distance_long TYPE REF TO cl_abap_random_int, go_random_int_distance_short TYPE REF TO cl_abap_random_int, gv_plane_distance_long TYPE i, gv_plane_distance_short TYPE i, gt_connection_recurrency TYPE lcl_flight_data_generator=>tt_connection_recurrency, gt_flights TYPE lcl_flight_data_generator=>tt_flights, go_random_seats TYPE REF TO cl_abap_random_int. CLASS-METHODS: build_dependent_content, get_flight_info IMPORTING iv_connection_id TYPE /dmo/connection_id05 RETURNING VALUE(rs_plane_info) TYPE ty_flight_info, build_plane_types RETURNING VALUE(rt_data) TYPE lcl_flight_data_generator=>tt_plane_type, build_connection_recurrency RETURNING VALUE(rt_data) TYPE lcl_flight_data_generator=>tt_connection_recurrency, calc_next_monday IMPORTING iv_date TYPE d RETURNING VALUE(rv_date) TYPE d. ENDCLASS. CLASS lcl_flight_data_generator IMPLEMENTATION. METHOD lif_data_generator~create. IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF. DELETE FROM /dmo/flight05. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Build Dependent Content.' ). ENDIF. build_dependent_content( ). IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF. get_data( ). IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF. INSERT /dmo/flight05 FROM TABLE @gt_flights. IF out IS BOUND. out->write( '--> Done.' ). ENDIF. ENDMETHOD. METHOD get_data. DATA: lt_flights TYPE tt_flights, ls_flight TYPE lcl_flight_data_generator=>ty_flight_info. IF gt_flights IS NOT INITIAL. rt_data = gt_flights. EXIT. ENDIF. LOOP AT gt_connections INTO DATA(ls_connection). LOOP AT gt_connection_recurrency[ id = ls_connection-connection_id ]-recurrency INTO DATA(lv_flight_date). ls_flight = get_flight_info( ls_connection-connection_id ). APPEND VALUE /dmo/flight05( carrier_id = ls_connection-carrier_id connection_id = ls_connection-connection_id flight_date = lv_flight_date price = ls_flight-price currency_code = VALUE /dmo/flight05-currency_code( gt_carrier[ carrier_id = ls_connection-carrier_id ]-currency_code DEFAULT 'EUR' ) plane_type_id = ls_flight-id seats_max = ls_flight-seats_max seats_occupied = ls_flight-seats_occupied ) TO gt_flights. ENDLOOP. rt_data = gt_flights. ENDLOOP. ENDMETHOD. METHOD build_dependent_content. gt_connections = CORRESPONDING #( lcl_connection_data_generator=>get_data( ) ). gt_carrier = lcl_carrier_data_generator=>get_data( ). gt_plane_types = build_plane_types( ). go_random_seats = cl_abap_random_int=>create( min = cv_random_percent - cv_random_offset max = cv_random_percent + cv_random_offset ). gt_connection_recurrency = build_connection_recurrency( ). ENDMETHOD. METHOD get_flight_info. DATA: lv_count TYPE i, lo_random TYPE REF TO cl_abap_random_int. DATA(lt_connections) = lcl_connection_data_generator=>get_data( ). DATA(lv_is_long_distance) = COND abap_bool( WHEN lt_connections[ connection_id = iv_connection_id ]-distance > 3000 THEN abap_true ELSE abap_false ). IF lv_is_long_distance = abap_true. IF gv_plane_distance_long IS INITIAL. SELECT COUNT(*) FROM @gt_plane_types AS planes WHERE long_distance = @lv_is_long_distance INTO @gv_plane_distance_long. ENDIF. lv_count = gv_plane_distance_long. IF go_random_int_distance_long IS NOT BOUND. go_random_int_distance_long = cl_abap_random_int=>create( seed = 1337 min = 1 max = gv_plane_distance_long ). ENDIF. lo_random = go_random_int_distance_long. ELSE. IF gv_plane_distance_short IS INITIAL. SELECT COUNT(*) FROM @gt_plane_types AS planes WHERE long_distance = @lv_is_long_distance INTO @gv_plane_distance_short. ENDIF. lv_count = gv_plane_distance_short. IF go_random_int_distance_short IS NOT BOUND. go_random_int_distance_short = cl_abap_random_int=>create( seed = 1337 min = 1 max = gv_plane_distance_short ). ENDIF. lo_random = go_random_int_distance_short. ENDIF. DATA(ls_plane_type) = gt_plane_types[ long_distance = lv_is_long_distance index = lo_random->get_next( ) ]. DATA(lv_seats_occupied_percent) = go_random_seats->get_next( ). rs_plane_info = VALUE ty_flight_info( id = ls_plane_type-id long_distance = ls_plane_type-long_distance seats_max = ls_plane_type-seats_max seats_occupied = ls_plane_type-seats_max * lv_seats_occupied_percent DIV 100 price = /dmo/cl_flight_data_generat_05=>calculate_flight_price( iv_seats_occupied_percent = lv_seats_occupied_percent iv_flight_distance = lt_connections[ connection_id = iv_connection_id ]-distance ) ). ENDMETHOD. METHOD build_plane_types. rt_data = VALUE tt_plane_type( ( id = 'A320-200' seats_max = 130 long_distance = ' ' index = 1 ) ( id = 'A321-200' seats_max = 150 long_distance = ' ' index = 2 ) ( id = '737-800' seats_max = 140 long_distance = ' ' index = 3 ) ( id = 'A319-100' seats_max = 120 long_distance = ' ' index = 4 ) ( id = '747-400' seats_max = 385 long_distance = 'X' index = 1 ) ( id = '767-200' seats_max = 260 long_distance = 'X' index = 2 ) ( id = 'A340-600' seats_max = 330 long_distance = 'X' index = 3 ) ( id = 'A380-800' seats_max = 475 long_distance = 'X' index = 4 ) ). ENDMETHOD. METHOD build_connection_recurrency. CONSTANTS: cv_days_between_test TYPE i VALUE 300, cv_days_between_8weeks TYPE i VALUE 56, cv_days_between_4weeks TYPE i VALUE 28, cv_days_between_2weeks TYPE i VALUE 14, cv_days_between_1weeks TYPE i VALUE 7. DATA: flight_date_max TYPE d, flight_date_min TYPE d. DATA(lv_days_between) = cv_days_between_test. GET TIME STAMP FIELD DATA(current_timestamp). DATA(tmp) = CONV string( current_timestamp ). DATA lv_datum TYPE d. lv_datum = tmp(8). " flight_date_max is a Monday 8 months in the future flight_date_max = calc_next_monday( CONV /dmo/flight_date05( lv_datum + 217 ) ). " flight_date_min is a Monday 5 months in the past flight_date_min = calc_next_monday( CONV /dmo/flight_date05( lv_datum - 148 ) ). LOOP AT lcl_connection_data_generator=>get_data( ) INTO DATA(ls_connection). APPEND VALUE ty_connection_recurrency( id = ls_connection-connection_id recurrency = VALUE ty_connection_recurrency-recurrency( FOR flightdate = flight_date_max + ls_connection-weekday - 1 THEN flightdate - lv_days_between UNTIL flightdate < flight_date_min + ls_connection-weekday - 1 ( CONV /dmo/flight_date05( flightdate ) ) ) ) TO rt_data. ENDLOOP. ENDMETHOD. METHOD calc_next_monday. * 01.01.1900 was a Saturday. DATA(lv_weekday) = iv_date MOD 7. * Therefore 0 is a Saturday, 1 for Sunday, etc.. and will be mapped to 1 for Monday, 2 for Tuesday, etc.. IF lv_weekday > 1. lv_weekday = lv_weekday - 1. ELSE. lv_weekday = lv_weekday + 6. ENDIF. rv_date = iv_date - lv_weekday + 8. ENDMETHOD. ENDCLASS. CLASS lcl_customer_data_generator DEFINITION CREATE PRIVATE. PUBLIC SECTION. INTERFACES: lif_data_generator. TYPES: BEGIN OF ty_last_name, last_name TYPE /dmo/last_name05, END OF ty_last_name. TYPES: tt_customer TYPE STANDARD TABLE OF /dmo/customer05 WITH KEY customer_id, tt_last_name TYPE STANDARD TABLE OF ty_last_name WITH KEY last_name. CLASS-METHODS: get_data RETURNING VALUE(rt_data) TYPE tt_customer, build_last_names RETURNING VALUE(rt_data) TYPE tt_last_name. PROTECTED SECTION. PRIVATE SECTION. TYPES: " Names BEGIN OF ty_first_name, first_name TYPE /dmo/first_name05, gender TYPE c LENGTH 1, END OF ty_first_name, BEGIN OF ty_name, first_name TYPE /dmo/first_name05, last_name TYPE /dmo/last_name05, title TYPE /dmo/title05, END OF ty_name, " Addresses BEGIN OF ty_city, country TYPE land1, postal_code TYPE /dmo/postal_code05, city TYPE /dmo/city05, END OF ty_city, tt_street_per_country TYPE STANDARD TABLE OF /dmo/street05 WITH EMPTY KEY, BEGIN OF ty_street, country TYPE land1, streets TYPE tt_street_per_country, END OF ty_street, BEGIN OF ty_address, country TYPE land1, postal_code TYPE /dmo/postal_code05, city TYPE /dmo/city05, street TYPE /dmo/street05, phone_number TYPE /dmo/phone_number05, email_address TYPE /dmo/email_address05, END OF ty_address. TYPES: " Names tt_first_name TYPE STANDARD TABLE OF ty_first_name WITH KEY first_name, tt_name TYPE STANDARD TABLE OF ty_name WITH KEY first_name last_name, " Addresses tt_city TYPE STANDARD TABLE OF ty_city WITH KEY country city, tt_street TYPE STANDARD TABLE OF ty_street WITH KEY country, tt_address TYPE STANDARD TABLE OF ty_address WITH KEY country city street. CONSTANTS cv_email_host TYPE string VALUE `flight.example` ##NO_TEXT. CONSTANTS cv_phone_number_seperator TYPE string VALUE `-` ##NO_TEXT. CONSTANTS cv_phone_number_min TYPE int8 VALUE 1234567890. CONSTANTS cv_phone_number_max TYPE int8 VALUE 9999999999. CLASS-DATA gt_data TYPE lcl_customer_data_generator=>tt_customer. CLASS-METHODS: " Names generate_names RETURNING VALUE(rt_data) TYPE tt_name, build_first_names RETURNING VALUE(rt_data) TYPE tt_first_name, " Adresses generate_addresses RETURNING VALUE(rt_data) TYPE tt_address, build_city RETURNING VALUE(rt_data) TYPE tt_city, build_street RETURNING VALUE(rt_data) TYPE tt_street. ENDCLASS. CLASS lcl_customer_data_generator IMPLEMENTATION. METHOD lif_data_generator~create. IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF. DELETE FROM /dmo/customer05. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF. DATA(lt_data) = get_data( ). IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF. INSERT /dmo/customer05 FROM TABLE @lt_data. IF out IS BOUND. out->write( '--> Done.' ). ENDIF. ENDMETHOD. METHOD build_first_names. rt_data = VALUE tt_first_name( ( first_name = 'Simon' gender = 'M') ( first_name = 'Harish' gender = 'M') ( first_name = 'Volker' gender = 'M') ( first_name = 'Jasmin' gender = 'F') ( first_name = 'Felix' gender = 'M') ( first_name = 'Kristina' gender = 'F') ( first_name = 'Thilo' gender = 'M') ( first_name = 'Andrej' gender = 'M') ( first_name = 'Anna' gender = 'F') ( first_name = 'Johannes' gender = 'M') ( first_name = 'Johann' gender = 'M') ( first_name = 'Christoph' gender = 'M') ( first_name = 'Andreas' gender = 'M') ( first_name = 'Stephen' gender = 'M') ( first_name = 'Mathilde' gender = 'F') ( first_name = 'August' gender = 'M') ( first_name = 'Illya' gender = 'M') ( first_name = 'Georg' gender = 'M') ( first_name = 'Gisela' gender = 'F') ( first_name = 'Christa' gender = 'F') ( first_name = 'Holm' gender = 'M') ( first_name = 'Irmtraut' gender = 'F') ( first_name = 'Ludwig' gender = 'M') ( first_name = 'Laura' gender = 'F') ( first_name = 'Kurt' gender = 'M') ( first_name = 'Guenther' gender = 'M') ( first_name = 'Horst' gender = 'M') ( first_name = 'Matthias' gender = 'M') ( first_name = 'Amelie' gender = 'F') ( first_name = 'Walter' gender = 'M') ( first_name = 'Sophie' gender = 'F') ( first_name = 'Claire' gender = 'F') ( first_name = 'Chantal' gender = 'F') ( first_name = 'Jean' gender = 'M') ( first_name = 'Cindy' gender = 'F') ( first_name = 'Pierre' gender = 'M') ( first_name = 'Irene' gender = 'F') ( first_name = 'Adam' gender = 'M') ( first_name = 'Fabio' gender = 'M') ( first_name = 'Lothar' gender = 'M') ( first_name = 'Annemarie' gender = 'F') ( first_name = 'Ida' gender = 'F') ( first_name = 'Roland' gender = 'M') ( first_name = 'Achim' gender = 'M') ( first_name = 'Allen' gender = 'M') ( first_name = 'Lee' gender = 'M') ( first_name = 'Guillermo' gender = 'M') ( first_name = 'Florian' gender = 'M') ( first_name = 'Ulla' gender = 'F') ( first_name = 'Juan' gender = 'M') ( first_name = 'Marta' gender = 'F') ( first_name = 'Salvador' gender = 'M') ( first_name = 'Christine' gender = 'F') ( first_name = 'Dominik' gender = 'M') ( first_name = 'Astrid' gender = 'F') ( first_name = 'Ruth' gender = 'F') ( first_name = 'Theresia' gender = 'F') ( first_name = 'Thomas' gender = 'M') ( first_name = 'Friedrich' gender = 'M') ( first_name = 'Anneliese' gender = 'F') ( first_name = 'Peter' gender = 'M') ( first_name = 'Anne-Marie' gender = 'F') ( first_name = 'James' gender = 'M') ( first_name = 'Jean-Luc' gender = 'M') ( first_name = 'Benjamin' gender = 'M') ( first_name = 'Hendrik' gender = 'M') ( first_name = 'Uli' gender = 'F') ( first_name = 'Siegfried' gender = 'M') ( first_name = 'Max' gender = 'M') ). ENDMETHOD. METHOD build_last_names. rt_data = VALUE tt_last_name( ( last_name = 'Buchholm') ( last_name = 'Vrsic') ( last_name = 'Jeremias') ( last_name = 'Gutenberg') ( last_name = 'Fischmann') ( last_name = 'Columbo') ( last_name = 'Neubasler') ( last_name = 'Martin') ( last_name = 'Detemple') ( last_name = 'Barth') ( last_name = 'Benz') ( last_name = 'Hansmann') ( last_name = 'Koslowski') ( last_name = 'Wohl') ( last_name = 'Koller') ( last_name = 'Hoffen') ( last_name = 'Dumbach') ( last_name = 'Goelke') ( last_name = 'Waldmann') ( last_name = 'Mechler') ( last_name = 'Buehler') ( last_name = 'Heller') ( last_name = 'Simonen') ( last_name = 'Henry') ( last_name = 'Marshall') ( last_name = 'Legrand') ( last_name = 'Jacqmain') ( last_name = 'D´Oultrement') ( last_name = 'Hunter') ( last_name = 'Delon') ( last_name = 'Kreiss') ( last_name = 'Trensch') ( last_name = 'Cesari') ( last_name = 'Matthaeus') ( last_name = 'Babilon') ( last_name = 'Zimmermann') ( last_name = 'Kramer') ( last_name = 'Illner') ( last_name = 'Pratt') ( last_name = 'Gahl') ( last_name = 'Benjamin') ( last_name = 'Miguel') ( last_name = 'Weiss') ( last_name = 'Sessler') ( last_name = 'Montero') ( last_name = 'Domenech') ( last_name = 'Moyano') ( last_name = 'Sommer') ( last_name = 'Schneider') ( last_name = 'Eichbaum') ( last_name = 'Gueldenpfennig') ( last_name = 'Sudhoff') ( last_name = 'Lautenbach') ( last_name = 'Ryan') ( last_name = 'Prinz') ( last_name = 'Deichgraeber') ( last_name = 'Pan') ( last_name = 'Lindwurm') ( last_name = 'Kirk') ( last_name = 'Picard') ( last_name = 'Sisko') ( last_name = 'Madeira') ( last_name = 'Meier') ( last_name = 'Rahn') ( last_name = 'Leisert') ( last_name = 'Müller') ( last_name = 'Mustermann') ( last_name = 'Becker') ( last_name = 'Fischer') ). ENDMETHOD. METHOD get_data. IF gt_data IS NOT INITIAL. rt_data = gt_data. EXIT. ENDIF. DATA(lt_names) = generate_names( ). DATA(lt_addresses) = generate_addresses( ). DATA(lo_random_phone_number) = cl_abap_random_int8=>create( min = cv_phone_number_min max = cv_phone_number_max ). DATA(lo_random_city) = cl_abap_random_int=>create( min = 1 max = lines( lt_addresses ) ). DATA(lo_random_street_number) = cl_abap_random_int=>create( min = 1 max = 100 ). gt_data = VALUE tt_customer( FOR i = 1 THEN i + 1 WHILE i <= lines( lt_names ) LET j = lo_random_city->get_next( ) IN ( customer_id = i first_name = lt_names[ i ]-first_name last_name = lt_names[ i ]-last_name title = lt_names[ i ]-title street = lt_addresses[ j ]-street && ` ` && lo_random_street_number->get_next( ) postal_code = lt_addresses[ j ]-postal_code city = lt_addresses[ j ]-city country_code = lt_addresses[ j ]-country phone_number = '+' && COND string( WHEN lt_addresses[ j ]-country = 'AT' THEN '43' WHEN lt_addresses[ j ]-country = 'BE' THEN '32' WHEN lt_addresses[ j ]-country = 'CH' THEN '41' WHEN lt_addresses[ j ]-country = 'DE' THEN '49' WHEN lt_addresses[ j ]-country = 'ES' THEN '34' WHEN lt_addresses[ j ]-country = 'FR' THEN '33' WHEN lt_addresses[ j ]-country = 'IT' THEN '39' WHEN lt_addresses[ j ]-country = 'SI' THEN '386' WHEN lt_addresses[ j ]-country = 'US' THEN '1' ELSE '89' ) && cv_phone_number_seperator && |{ replace( val = lo_random_phone_number->get_next( ) off = 3 len = 1 with = cv_phone_number_seperator ) }| email_address = to_lower( lt_names[ i ]-first_name && `.` && lt_names[ i ]-last_name && `@` && cv_email_host && `.` && lt_addresses[ j ]-country ) ) ). rt_data = gt_data. ENDMETHOD. METHOD generate_names. DATA: lo_random_counter TYPE REF TO cl_abap_random_int, lo_random_first_name TYPE REF TO cl_abap_random_int, lo_random_title TYPE REF TO cl_abap_random_int, ls_first_name TYPE lcl_customer_data_generator=>ty_first_name. DATA(lt_first_names) = build_first_names( ). lo_random_counter = cl_abap_random_int=>create( min = 5 max = 15 ). lo_random_first_name = cl_abap_random_int=>create( min = 1 max = lines( lt_first_names ) ). LOOP AT build_last_names( ) INTO DATA(ls_last_name). DO lo_random_counter->get_next( ) TIMES. ls_first_name = lt_first_names[ lo_random_first_name->get_next( ) ]. APPEND VALUE ty_name( first_name = ls_first_name-first_name last_name = ls_last_name-last_name title = COND /dmo/title05( WHEN ls_first_name-gender = 'M' THEN 'Mr.' WHEN ls_first_name-gender = 'F' THEN 'Mrs.' ELSE 'Martian' ) ) TO rt_data. ENDDO. ENDLOOP. ENDMETHOD. METHOD build_city. rt_data = VALUE tt_city( ( country = 'DE' postal_code = '23496' city = 'Dielheim') ( country = 'SI' postal_code = '1000' city = 'Ljubljana') ( country = 'DE' postal_code = '86343' city = 'Koenigsbrunn') ( country = 'DE' postal_code = '55128' city = 'Mainz') ( country = 'DE' postal_code = '11111' city = 'Berlin') ( country = 'US' postal_code = '17844' city = 'Washington') ( country = 'AT' postal_code = '4020' city = 'Linz') ( country = 'DE' postal_code = '68723' city = 'Schwetzingen') ( country = 'DE' postal_code = '68789' city = 'St. Leon-Rot') ( country = 'DE' postal_code = '66464' city = 'Homburg') ( country = 'DE' postal_code = '69231' city = 'Rauenberg') ( country = 'DE' postal_code = '69190' city = 'Walldorf') ( country = 'DE' postal_code = '58332' city = 'Schwelm') ( country = 'DE' postal_code = '64342' city = 'Seeheim-Jugenheim') ( country = 'DE' postal_code = '69121' city = 'Heidelberg') ( country = 'DE' postal_code = '63150' city = 'Heusenstamm') ( country = 'DE' postal_code = '64283' city = 'Darmstadt') ( country = 'DE' postal_code = '69207' city = 'Kurt') ( country = 'DE' postal_code = '79104' city = 'Freiburg') ( country = 'DE' postal_code = '79312' city = 'Emmendingen') ( country = 'DE' postal_code = '68753' city = 'Amelie') ( country = 'DE' postal_code = '68163' city = 'Mannheim') ( country = 'DE' postal_code = '67105' city = 'Schifferstadt') ( country = 'DE' postal_code = '68163' city = 'Mannheim-Lindenhof') ( country = 'FR' postal_code = '78140' city = 'Vélizy') ( country = 'CH' postal_code = '1211' city = 'Genève') ( country = 'BE' postal_code = 'B - 1030' city = 'Bruxelles') ( country = 'US' postal_code = '76018' city = 'Arlington') ( country = 'FR' postal_code = '06130' city = 'Grasse') ( country = 'DE' postal_code = '27299' city = 'Langwedel') ( country = 'DE' postal_code = '69483' city = 'Wald-Michelbach') ( country = 'IT' postal_code = '00195' city = 'Roma') ( country = 'DE' postal_code = '81375' city = 'Muenchen') ( country = 'DE' postal_code = '67663' city = 'Kaiserslautern') ( country = 'DE' postal_code = '66386' city = 'St. Ingbert') ( country = 'DE' postal_code = '79761' city = 'Waldshut') ( country = 'DE' postal_code = '76137' city = 'Karlsruhe') ( country = 'US' postal_code = '07666' city = 'Teaneck') ( country = 'US' postal_code = '17758' city = 'N. Massapequa') ( country = 'US' postal_code = '09765' city = 'Boulder') ( country = 'ES' postal_code = '28020' city = 'Madrid') ( country = 'DE' postal_code = '69180' city = 'Wiesloch') ( country = 'ES' postal_code = '08014' city = 'Barcelona') ( country = 'ES' postal_code = '41006' city = 'Sevilla') ( country = 'DE' postal_code = '75305' city = 'Neuenburg') ( country = 'DE' postal_code = '41466' city = 'Neuss') ( country = 'DE' postal_code = '71116' city = 'Gaertringen') ( country = 'US' postal_code = '60657' city = 'Chicago') ( country = 'DE' postal_code = '63263' city = 'Neu-Isenburg') ( country = 'DE' postal_code = '23056' city = 'Buxtehude') ( country = 'DE' postal_code = '16233' city = 'Potsdam') ( country = 'DE' postal_code = '90419' city = 'Nuernberg') ( country = 'US' postal_code = '22334' city = 'San Francisco') ( country = 'FR' postal_code = '75839' city = 'Paris') ( country = 'US' postal_code = '63728' city = 'New Orleans') ( country = 'DE' postal_code = '75757' city = 'Elsenz') ( country = 'DE' postal_code = '70111' city = 'Reutlingen') ( country = 'DE' postal_code = '15344' city = 'Strausberg') ). ENDMETHOD. METHOD generate_addresses. TYPES: BEGIN OF ty_random_street, country TYPE land1, random TYPE REF TO cl_abap_random_int, END OF ty_random_street, tt_random_street TYPE STANDARD TABLE OF ty_random_street WITH KEY country. DATA: lo_random_counter TYPE REF TO cl_abap_random_int, lo_random_city TYPE REF TO cl_abap_random_int, lt_random_street TYPE tt_random_street, lo_phone_number TYPE REF TO cl_abap_random_int. DATA(lt_street) = build_street( ). lo_random_counter = cl_abap_random_int=>create( min = 5 max = 15 ). lo_phone_number = cl_abap_random_int=>create( min = 1 max = 100 ). LOOP AT lt_street INTO DATA(ls_street). APPEND VALUE ty_random_street( country = ls_street-country random = cl_abap_random_int=>create( min = 1 max = lines( ls_street-streets ) ) ) TO lt_random_street. ENDLOOP. LOOP AT build_city( ) INTO DATA(ls_city). DO lo_random_counter->get_next( ) TIMES. APPEND VALUE ty_address( country = ls_city-country postal_code = ls_city-postal_code city = ls_city-city street = |{ lt_street[ country = ls_city-country ]-streets[ lt_random_street[ country = ls_city-country ]-random->get_next( ) ] }| ) TO rt_data. ENDDO. ENDLOOP. ENDMETHOD. METHOD build_street. rt_data = VALUE tt_street( ( country = 'AT' streets = VALUE tt_street_per_country( ( 'Hasnerstrasse' ) ) ) ( country = 'BE' streets = VALUE tt_street_per_country( ( 'rue Voltaire' ) ) ) ( country = 'CH' streets = VALUE tt_street_per_country( ( 'rue de Moillebeau' ) ) ) ( country = 'DE' streets = VALUE tt_street_per_country( ( 'Akazienweg' ) ( 'Albert-Schweitzer-Str.' ) ( 'Alte Reichsstr.' ) ( 'Am Deich' ) ( 'Arionweg' ) ( 'Arndtstrasse' ) ( 'Auf dem Huegel' ) ( 'Ausfallstr.' ) ( 'Ausserhalb' ) ( 'Carl-Metz Strasse' ) ( 'Caspar-David-Friedrich-Str.' ) ( 'Dudweilerstr.' ) ( 'Elzstrasse' ) ( 'Emil-Heckel-Str.' ) ( 'Erlengrund' ) ( 'Franz-Marc-Str.' ) ( 'Friedensallee' ) ( 'Froschstr.' ) ( 'Gartenstr.' ) ( 'Gemeindestr.' ) ( 'Goeckinghofstr.' ) ( 'Gruenlingweg' ) ( 'Hauptstr.' ) ( 'Heidelberger Str.' ) ( 'Im Warmet' ) ( 'Jacobistrasse' ) ( 'Karl-Marx-Allee' ) ( 'Karl-Schwaner-Str.' ) ( 'Leichhof' ) ( 'Lerchenstr.' ) ( 'Marktplatz' ) ( 'Max-Planck-Str.' ) ( 'Meerfeldstr.' ) ( 'Melissenstr.' ) ( 'Muehltalstr.' ) ( 'Mutterstadter Str.' ) ( 'N7,' ) ( 'Rankestr.' ) ( 'Raupelsweg' ) ( 'Schillerstr.' ) ( 'Stauboernchenstrasse' ) ( 'Stiftsbogen' ) ( 'Waldmann' ) ( 'Wilhelminentr.' ) ( 'Zwischergasse' ) ) ) ( country = 'ES' streets = VALUE tt_street_per_country( ( 'Camelias' ) ( 'Fuenlabrada' ) ( 'Piedad' ) ( 'Pza. Pablo Ruiz Picasso' ) ) ) ( country = 'FR' streets = VALUE tt_street_per_country( ( 'Rue Balzac' ) ( 'route de Pégomas' ) ( 'rue Nieuport' ) ) ) ( country = 'IT' streets = VALUE tt_street_per_country( ( 'Via Giulio Cesare' ) ) ) ( country = 'SI' streets = VALUE tt_street_per_country( ( 'Poklukarjeva' ) ) ) ( country = 'US' streets = VALUE tt_street_per_country( ( '17th St.' ) ( 'Federal Avenue' ) ( 'Golden Gate Drive' ) ( 'Lake Shore Drive' ) ( 'Oak Street' ) ( 'Sagamore St.' ) ( 'Voodoo Avenue' ) ( 'Windstone Drive' ) ) ) ). ENDMETHOD. ENDCLASS. CLASS lcl_supplement_data_generator DEFINITION CREATE PRIVATE. PUBLIC SECTION. INTERFACES: lif_data_generator. TYPES: tt_supplement TYPE STANDARD TABLE OF /dmo/suppleme_05 WITH KEY supplement_id, tt_supplement_text TYPE STANDARD TABLE OF /dmo/suppl_te_05 WITH KEY supplement_id. " Merged types TYPES BEGIN OF ty_supplement_complete. INCLUDE TYPE /dmo/suppleme_05. TYPES language_code TYPE spras. TYPES description TYPE /dmo/description05. TYPES END OF ty_supplement_complete. TYPES tt_supplement_complete TYPE STANDARD TABLE OF ty_supplement_complete WITH KEY supplement_id. CLASS-METHODS: get_data RETURNING VALUE(rt_data) TYPE tt_supplement_complete. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS lcl_supplement_data_generator IMPLEMENTATION. METHOD lif_data_generator~create. IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF. DELETE FROM /dmo/suppleme_05. "#EC CI_NOWHERE DELETE FROM /dmo/suppl_te_05. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF. DATA(lt_data) = get_data( ). IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF. INSERT /dmo/suppleme_05 FROM TABLE @( CORRESPONDING tt_supplement( lt_data ) ). INSERT /dmo/suppl_te_05 FROM TABLE @( CORRESPONDING tt_supplement_text( lt_data ) ). IF out IS BOUND. out->write( '--> Done.' ). ENDIF. ENDMETHOD. METHOD get_data. " BV = beverage " ML = meal " LU = luggage " EX = extra rt_data = VALUE tt_supplement_complete( ( supplement_id = 'BV-0001' price = '2.30' currency_code = 'EUR' language_code = 'E' description = 'Hot Chocolate' ) ( supplement_id = 'BV-0002' price = '7.50' currency_code = 'EUR' language_code = 'E' description = 'Alcohol free Champagne' ) ( supplement_id = 'BV-0003' price = '3.50' currency_code = 'EUR' language_code = 'E' description = 'Cola' ) ( supplement_id = 'BV-0004' price = '3.50' currency_code = 'EUR' language_code = 'E' description = 'Orange Limonade' ) ( supplement_id = 'BV-0005' price = '3.50' currency_code = 'EUR' language_code = 'E' description = 'Apple Juice' ) ( supplement_id = 'BV-0006' price = '3.50' currency_code = 'EUR' language_code = 'E' description = 'Pear Juice' ) ( supplement_id = 'BV-0007' price = '3.50' currency_code = 'EUR' language_code = 'E' description = 'Mango Juice' ) ( supplement_id = 'BV-0008' price = '3.50' currency_code = 'EUR' language_code = 'E' description = 'Lemon Limonade' ) ( supplement_id = 'BV-0009' price = '4.50' currency_code = 'EUR' language_code = 'E' description = 'Tomato Juice' ) ( supplement_id = 'ML-0001' price = '3.00' currency_code = 'EUR' language_code = 'E' description = 'Black Forest Cake' ) ( supplement_id = 'ML-0002' price = '2.00' currency_code = 'EUR' language_code = 'E' description = 'Chocolate Cake' ) ( supplement_id = 'ML-0003' price = '1.50' currency_code = 'EUR' language_code = 'E' description = 'Apple Pie' ) ( supplement_id = 'ML-0004' price = '1.50' currency_code = 'EUR' language_code = 'E' description = 'Pear Pie' ) ( supplement_id = 'ML-0005' price = '8.00' currency_code = 'EUR' language_code = 'E' description = 'Nice Salad') ( supplement_id = 'ML-0006' price = '9.00' currency_code = 'EUR' language_code = 'E' description = 'Paris Salad') ( supplement_id = 'ML-0007' price = '12.00' currency_code = 'EUR' language_code = 'E' description = 'Hamburg Salad with Eggs' ) ( supplement_id = 'ML-0008' price = '25.00' currency_code = 'EUR' language_code = 'E' description = 'Quail with French Salad and Black Forest Cake') ( supplement_id = 'ML-0009' price = '13.00' currency_code = 'EUR' language_code = 'E' description = 'Duck on Lettuce' ) ( supplement_id = 'ML-0010' price = '5.00' currency_code = 'EUR' language_code = 'E' description = 'Carpaccio') ( supplement_id = 'ML-0011' price = '7.00' currency_code = 'EUR' language_code = 'E' description = 'Seasonal Salad') ( supplement_id = 'ML-0012' price = '16.00' currency_code = 'EUR' language_code = 'E' description = 'Hamburg Salad with Fresh Shrimps') ( supplement_id = 'ML-0013' price = '17.00' currency_code = 'EUR' language_code = 'E' description = 'Quail') ( supplement_id = 'ML-0014' price = '14.00' currency_code = 'EUR' language_code = 'E' description = 'Wiener Schnitzel') ( supplement_id = 'ML-0015' price = '13.00' currency_code = 'EUR' language_code = 'E' description = 'Pork Schnitzel') ( supplement_id = 'ML-0016' price = '14.00' currency_code = 'EUR' language_code = 'E' description = 'Schnitzel with Pepper Sauce') ( supplement_id = 'ML-0017' price = '11.00' currency_code = 'EUR' language_code = 'E' description = 'Chicken and French Fries') ( supplement_id = 'ML-0018' price = '12.00' currency_code = 'EUR' language_code = 'E' description = 'Turkey Steak') ( supplement_id = 'ML-0019' price = '15.00' currency_code = 'EUR' language_code = 'E' description = 'Bavarian Duck') ( supplement_id = 'ML-0020' price = '14.00' currency_code = 'EUR' language_code = 'E' description = 'Knuckle of Pork') ( supplement_id = 'ML-0021' price = '22.00' currency_code = 'EUR' language_code = 'E' description = 'Fillet of Beef') ( supplement_id = 'ML-0022' price = '21.00' currency_code = 'EUR' language_code = 'E' description = 'Trout Au Bleu') ( supplement_id = 'ML-0023' price = '20.00' currency_code = 'EUR' language_code = 'E' description = 'Trout Meuniere') ( supplement_id = 'ML-0024' price = '17.00' currency_code = 'EUR' language_code = 'E' description = 'Monkfish') ( supplement_id = 'ML-0025' price = '12.00' currency_code = 'EUR' language_code = 'E' description = 'Sole') ( supplement_id = 'ML-0026' price = '6.00' currency_code = 'EUR' language_code = 'E' description = 'Mini Fried Sole') ( supplement_id = 'ML-0027' price = '14.00' currency_code = 'EUR' language_code = 'E' description = 'Salmon in a Bearnaise Sauce') ( supplement_id = 'ML-0028' price = '15.00' currency_code = 'EUR' language_code = 'E' description = 'Salmon Lasagne') ( supplement_id = 'ML-0029' price = '3.00' currency_code = 'EUR' language_code = 'E' description = 'Chocolate Ice Cream') ( supplement_id = 'ML-0030' price = '2.50' currency_code = 'EUR' language_code = 'E' description = 'Vanilla Ice Cream') ( supplement_id = 'ML-0031' price = '4.50' currency_code = 'EUR' language_code = 'E' description = 'Vanilla Ice Cream with Hot Cherries') ( supplement_id = 'ML-0032' price = '4.50' currency_code = 'EUR' language_code = 'E' description = 'Vanilla Ice Cream with Hot Raspberries') ( supplement_id = 'ML-0033' price = '4.00' currency_code = 'EUR' language_code = 'E' description = 'Apple Strudel') ( supplement_id = 'ML-0034' price = '4.00' currency_code = 'EUR' language_code = 'E' description = 'Raspberry Sorbet') ( supplement_id = 'ML-0035' price = '4.00' currency_code = 'EUR' language_code = 'E' description = 'Strawberry Sorbet') ( supplement_id = 'LU-0001' price = '40.00' currency_code = 'EUR' language_code = 'E' description = 'Extra baggage 5 kgs') ( supplement_id = 'LU-0002' price = '15.00' currency_code = 'EUR' language_code = 'E' description = 'Luggage transfer from airport to hotel') ( supplement_id = 'LU-0003' price = '75.00' currency_code = 'EUR' language_code = 'E' description = 'Luggage pickup from home and return ' ) ( supplement_id = 'LU-0004' price = '80.00' currency_code = 'EUR' language_code = 'E' description = 'Bulky goods like sports equipment' ) ) . ENDMETHOD. ENDCLASS. CLASS lcl_travel_data_generator DEFINITION DEFERRED. CLASS /dmo/cl_flight_data_generat_05 DEFINITION LOCAL FRIENDS lcl_travel_data_generator. CLASS lcl_travel_data_generator DEFINITION CREATE PRIVATE. PUBLIC SECTION. INTERFACES: lif_data_generator. TYPES: tt_travel TYPE STANDARD TABLE OF /dmo/travel05 WITH KEY travel_id, tt_bookings TYPE STANDARD TABLE OF /dmo/booking05 WITH KEY travel_id booking_id, tt_booking_supplements TYPE STANDARD TABLE OF /dmo/book_sup_05 WITH KEY travel_id booking_id booking_supplement_id. " Build nested tables TYPES BEGIN OF ty_booking_complete. INCLUDE TYPE /dmo/booking05. TYPES booking_supplements TYPE tt_booking_supplements. TYPES END OF ty_booking_complete. TYPES tt_booking_complete TYPE STANDARD TABLE OF ty_booking_complete WITH KEY travel_id booking_id. TYPES BEGIN OF ty_travel_complete. INCLUDE TYPE /dmo/travel05. TYPES bookings TYPE tt_booking_complete. TYPES END OF ty_travel_complete. "! <em>Travel</em> structure <br/> "! <em>Bookings</em> table <br/> "! --> <em>Booking</em> structure <br/> "! --> <em>Booking Supplement</em> table <br/> "! -----> <em>Booking Supplement</em> structure TYPES tt_travel_complete TYPE STANDARD TABLE OF ty_travel_complete WITH KEY travel_id. PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_countryname, country TYPE i_countrytext-country, countryname TYPE i_countrytext-countryname, END OF ty_countryname. CONSTANTS: cv_travel_group_amount_max TYPE i VALUE 3, cv_trip_length_center TYPE i VALUE 3, cv_trip_length_offset TYPE i VALUE 2, cv_booking_date_min TYPE i VALUE 0, cv_booking_date_max TYPE i VALUE 20, cv_travel_create_dat_befor_min TYPE i VALUE 0, cv_travel_create_dat_befor_max TYPE i VALUE 40, cv_travel_change_date_min TYPE i VALUE 0, cv_travel_change_date_max TYPE i VALUE 10, cv_booking_supplement_amount TYPE i VALUE 5, cv_booking_days_before TYPE i VALUE 15. CLASS-DATA: go_random_seats TYPE REF TO cl_abap_random_int, gt_flights_seats_decrease TYPE lcl_flight_data_generator=>tt_flights, go_ran_travel_group_amount TYPE REF TO cl_abap_random_int, go_ran_trip_length TYPE REF TO cl_abap_random_int, go_ran_customer TYPE REF TO cl_abap_random_int, gt_agency TYPE lcl_agency_data_generator=>tt_agency, gt_customer TYPE lcl_customer_data_generator=>tt_customer, gt_flights_final TYPE lcl_flight_data_generator=>tt_flights, go_ran_booking_date TYPE REF TO cl_abap_random_int, go_ran_agency TYPE REF TO cl_abap_random_int, gt_connections TYPE lcl_connection_data_generator=>tt_connection_additional_info, go_ran_booking_supplement_id TYPE REF TO cl_abap_random_int, go_ran_booking_supplement_amnt TYPE REF TO cl_abap_random_int, gt_supplements TYPE lcl_supplement_data_generator=>tt_supplement_complete, go_ran_travel_description TYPE REF TO cl_abap_random_int, go_ran_travel_create_dat_befor TYPE REF TO cl_abap_random_int, go_ran_travel_change_date TYPE REF TO cl_abap_random_int, go_ran_hour TYPE REF TO cl_abap_random_int, go_ran_min_sec TYPE REF TO cl_abap_random_int, gt_airports TYPE lcl_airport_data_generator=>tt_airport, gt_countryname TYPE STANDARD TABLE OF ty_countryname WITH KEY country, go_ran_status_description TYPE REF TO cl_abap_random_int, gt_last_names TYPE lcl_customer_data_generator=>tt_last_name, go_ran_last_name TYPE REF TO cl_abap_random_int, go_ran_customer_travel TYPE REF TO cl_abap_random_int, mv_datum TYPE d. CLASS-METHODS: get_data RETURNING VALUE(rt_data) TYPE tt_travel_complete, build_booking IMPORTING iv_travel_id TYPE /dmo/booking05-travel_id RETURNING VALUE(rt_bookings) TYPE tt_booking_complete, build_dependend_content, find_next_fitting_flight IMPORTING iv_seats_required TYPE i is_flight_previous TYPE /dmo/flight05 OPTIONAL RETURNING VALUE(rs_flight) TYPE /dmo/flight05, generate_booking_supplements IMPORTING iv_travel_id TYPE /dmo/booking05-travel_id iv_booking_id TYPE /dmo/booking05-booking_id RETURNING VALUE(rt_data) TYPE tt_booking_supplements, generate_description IMPORTING it_bookings TYPE lcl_travel_data_generator=>tt_booking_complete RETURNING VALUE(rv_description) TYPE /dmo/travel05-description, generate_random_time RETURNING VALUE(r_result) TYPE i, calculate_booking_fee IMPORTING it_bookings TYPE lcl_travel_data_generator=>tt_booking_complete RETURNING VALUE(rv_booking_fee) TYPE /dmo/travel05-booking_fee, generate_travel_customer_id IMPORTING it_bookings TYPE lcl_travel_data_generator=>tt_booking_complete RETURNING VALUE(rv_customer_id) TYPE /dmo/travel05-customer_id, set_today, calc_days_before_book_or_today IMPORTING iv_booking_date TYPE lcl_travel_data_generator=>ty_booking_complete-booking_date RETURNING VALUE(rv_travel_create_date_dats) TYPE d RAISING cx_parameter_invalid_range cx_parameter_invalid_type . ENDCLASS. CLASS lcl_travel_data_generator IMPLEMENTATION. METHOD lif_data_generator~create. DATA: lt_travels TYPE tt_travel, lt_bookings TYPE tt_bookings, lt_booking_supplements TYPE tt_booking_supplements. IF out IS BOUND. out->write( '--> Delete Travel Content.' ). ENDIF. DELETE FROM /dmo/travel05. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Delete Booking Content.' ). ENDIF. DELETE FROM /dmo/booking05. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Delete Booking Supplement Content.' ). ENDIF. DELETE FROM /dmo/book_sup_05. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF. DATA(lt_data) = get_data( ). IF out IS BOUND. out->write( '--> Convert Content to Table Format' ). ENDIF. LOOP AT lt_data INTO DATA(ls_travel). APPEND CORRESPONDING /dmo/travel05( ls_travel ) TO lt_travels. LOOP AT ls_travel-bookings INTO DATA(ls_booking). APPEND CORRESPONDING /dmo/booking05( ls_booking ) TO lt_bookings. APPEND LINES OF ls_booking-booking_supplements TO lt_booking_supplements. ENDLOOP. ENDLOOP. IF out IS BOUND. out->write( '--> Insert Travel Content' ). ENDIF. INSERT /dmo/travel05 FROM TABLE @lt_travels. IF out IS BOUND. out->write( '--> Insert Booking Content' ). ENDIF. INSERT /dmo/booking05 FROM TABLE @lt_bookings. IF out IS BOUND. out->write( '--> Insert Booking Supplement Content' ). ENDIF. INSERT /dmo/book_sup_05 FROM TABLE @lt_booking_supplements. IF out IS BOUND. out->write( '--> Done.' ). ENDIF. ENDMETHOD. METHOD get_data. DATA: lv_travel_id TYPE /dmo/booking05-travel_id. build_dependend_content( ). set_today( ). lv_travel_id = 1. DATA(lt_bookings) = build_booking( lv_travel_id ). WHILE lt_bookings IS NOT INITIAL. DATA(lv_travel_create_date_dats) = calc_days_before_book_or_today( lt_bookings[ 1 ]-booking_date ). DATA(lv_booking_fee) = calculate_booking_fee( lt_bookings ). DATA(lastchanged_date) = lv_travel_create_date_dats. lastchanged_date = lastchanged_date + go_ran_travel_change_date->get_next( ). DATA(lastchangedat_stamp) = CONV timestampl( ( CONV string( lastchanged_date ) * 1000000 ) ). lastchangedat_stamp = lastchangedat_stamp + generate_random_time( ). APPEND VALUE ty_travel_complete( travel_id = lv_travel_id agency_id = gt_agency[ go_ran_agency->get_next( ) ]-agency_id customer_id = generate_travel_customer_id( lt_bookings ) begin_date = lt_bookings[ 1 ]-flight_date end_date = lt_bookings[ lines( lt_bookings ) ]-flight_date booking_fee = lv_booking_fee total_price = lv_booking_fee + REDUCE /dmo/travel05-total_price( INIT sum = 0 FOR booking IN lt_bookings NEXT sum = sum + booking-flight_price + REDUCE /dmo/flight_price05( INIT sum_supplement = 0 FOR booking_supplement IN booking-booking_supplements NEXT sum_supplement = sum_supplement + booking_supplement-price ) ) currency_code = lt_bookings[ 1 ]-currency_code description = generate_description( lt_bookings ) status = SWITCH /dmo/travel05-status( go_ran_status_description->get_next( ) WHEN 1 OR 2 THEN /dmo/if_flight_legacy05=>travel_status-new WHEN 3 THEN /dmo/if_flight_legacy05=>travel_status-booked WHEN 4 THEN /dmo/if_flight_legacy05=>travel_status-planned ) createdby = gt_last_names[ go_ran_last_name->get_next( ) ]-last_name createdat = CONV timestampl( CONV string( lv_travel_create_date_dats ) * 1000000 + generate_random_time( ) ) lastchangedby = gt_last_names[ go_ran_last_name->get_next( ) ]-last_name lastchangedat = lastchangedat_stamp bookings = lt_bookings ) TO rt_data. lv_travel_id = lv_travel_id + 1. lt_bookings = build_booking( lv_travel_id ). ENDWHILE. ENDMETHOD. METHOD calc_days_before_book_or_today. cl_abap_tstmp=>td_add( EXPORTING date = COND d( WHEN mv_datum > iv_booking_date THEN iv_booking_date ELSE mv_datum ) time = CONV t( 0 ) secs = -86400 * cv_booking_days_before IMPORTING res_date = rv_travel_create_date_dats ). ENDMETHOD. METHOD set_today. GET TIME STAMP FIELD DATA(current_timestamp). DATA(tmp) = CONV string( current_timestamp ). mv_datum = tmp(8). mv_datum = mv_datum - 1. ENDMETHOD. METHOD generate_random_time. r_result = go_ran_hour->get_next( ) * 10000 + go_ran_min_sec->get_next( ) * 100 + go_ran_min_sec->get_next( ). ENDMETHOD. METHOD build_dependend_content. go_ran_hour = cl_abap_random_int=>create( min = 0 max = 23 ). go_ran_min_sec = cl_abap_random_int=>create( min = 0 max = 59 ). gt_agency = lcl_agency_data_generator=>get_data( ). go_ran_agency = cl_abap_random_int=>create( min = 1 max = lines( gt_agency ) ). gt_customer = lcl_customer_data_generator=>get_data( ). go_ran_customer = cl_abap_random_int=>create( min = 1 max = lines( gt_customer ) ). gt_last_names = lcl_customer_data_generator=>build_last_names( ). go_ran_last_name = cl_abap_random_int=>create( min = 1 max = lines( gt_last_names ) ). go_ran_customer_travel = cl_abap_random_int=>create( min = 1 max = 4 ). gt_connections = lcl_connection_data_generator=>get_data( ). gt_airports = lcl_airport_data_generator=>get_data( ). SELECT FROM i_countrytext FIELDS country, countryname WHERE language = 'E' INTO TABLE @gt_countryname. gt_flights_final = lcl_flight_data_generator=>get_data( ). SORT gt_flights_final BY flight_date ASCENDING. gt_flights_seats_decrease = lcl_flight_data_generator=>get_data( ). SORT gt_flights_seats_decrease BY flight_date ASCENDING. go_ran_travel_group_amount = cl_abap_random_int=>create( min = 1 max = cv_travel_group_amount_max ). go_ran_trip_length = cl_abap_random_int=>create( min = cv_trip_length_center - cv_trip_length_offset max = cv_trip_length_center + cv_trip_length_offset ). go_ran_booking_date = cl_abap_random_int=>create( min = cv_booking_date_min max = cv_booking_date_max ). go_ran_travel_create_dat_befor = cl_abap_random_int=>create( min = cv_booking_date_min max = cv_booking_date_max ). go_ran_travel_change_date = cl_abap_random_int=>create( min = cv_booking_date_min max = cv_booking_date_max ). gt_supplements = lcl_supplement_data_generator=>get_data( ). go_ran_booking_supplement_id = cl_abap_random_int=>create( min = 1 max = lines( lcl_supplement_data_generator=>get_data( ) ) ). go_ran_booking_supplement_amnt = cl_abap_random_int=>create( min = 0 max = cv_booking_supplement_amount ). go_ran_status_description = cl_abap_random_int=>create( min = 1 max = 4 ). go_ran_travel_description = cl_abap_random_int=>create( min = 0 max = 9 ). ENDMETHOD. METHOD build_booking. TYPES: tt_customer_id TYPE TABLE OF /dmo/customer05-customer_id WITH EMPTY KEY. DATA: lv_booking_id TYPE /dmo/booking05-booking_id, lt_customer_id TYPE tt_customer_id, lv_customer_amount TYPE i. DATA(lv_trip_length) = go_ran_trip_length->get_next( ). lt_customer_id = VALUE tt_customer_id( FOR i = 1 THEN i + 1 WHILE i <= go_ran_travel_group_amount->get_next( ) LET j = go_ran_customer->get_next( ) IN ( gt_customer[ j ]-customer_id ) ). lt_customer_id = CORRESPONDING tt_customer_id( lt_customer_id DISCARDING DUPLICATES ). lv_customer_amount = lines( lt_customer_id ). lv_booking_id = 0. DATA(ls_flight) = find_next_fitting_flight( iv_seats_required = lv_customer_amount ). CHECK ls_flight IS NOT INITIAL. DO lv_trip_length TIMES. READ TABLE gt_flights_seats_decrease WITH KEY key_sorted_date COMPONENTS carrier_id = ls_flight-carrier_id connection_id = ls_flight-connection_id flight_date = ls_flight-flight_date ASSIGNING FIELD-SYMBOL(<flight>). DATA(lv_booking_date) = CONV /dmo/booking05-booking_date( <flight>-flight_date - go_ran_booking_date->get_next( ) ). DATA(lv_price) = /dmo/cl_flight_data_generat_05=>calculate_flight_price( iv_flight_distance = gt_connections[ carrier_id = <flight>-carrier_id connection_id = <flight>-connection_id ]-distance iv_seats_occupied_percent = ( gt_flights_final[ KEY primary_key ##PRIMKEY[KEY_SORTED_DATE] carrier_id = <flight>-carrier_id connection_id = <flight>-connection_id flight_date = <flight>-flight_date ]-seats_occupied - <flight>-seats_occupied ) * 100 DIV <flight>-seats_max ). <flight>-seats_occupied = <flight>-seats_occupied - lv_customer_amount. APPEND LINES OF VALUE tt_booking_complete( FOR i = 1 THEN i + 1 WHILE i <= lines( lt_customer_id ) ( travel_id = iv_travel_id booking_id = lv_booking_id + i booking_date = lv_booking_date customer_id = lt_customer_id[ i ] carrier_id = <flight>-carrier_id connection_id = <flight>-connection_id flight_date = <flight>-flight_date flight_price = lv_price currency_code = <flight>-currency_code booking_supplements = generate_booking_supplements( iv_travel_id = iv_travel_id iv_booking_id = CONV /dmo/booking05-booking_id( lv_booking_id + i ) ) ) ) TO rt_bookings. lv_booking_id = lv_booking_id + lines( lt_customer_id ). ls_flight = find_next_fitting_flight( iv_seats_required = lv_customer_amount is_flight_previous = <flight> ). IF ls_flight IS INITIAL. EXIT. ENDIF. ENDDO. ENDMETHOD. METHOD find_next_fitting_flight. DATA(lt_flights_filtered) = FILTER lcl_flight_data_generator=>tt_flights( gt_flights_seats_decrease USING KEY key_sorted_seats WHERE seats_occupied >= iv_seats_required ). CHECK lt_flights_filtered IS NOT INITIAL. IF is_flight_previous IS SUPPLIED. DATA(lv_connection_id_new) = VALUE /dmo/connecti_05-connection_id( gt_connections[ airport_from_id = gt_connections[ connection_id = is_flight_previous-connection_id ]-airport_to_id ]-connection_id OPTIONAL ). CHECK lv_connection_id_new IS NOT INITIAL. DATA(lt_flights_filtered2) = FILTER lcl_flight_data_generator=>tt_flights( lt_flights_filtered USING KEY key_sorted_date WHERE connection_id = lv_connection_id_new AND flight_date >= is_flight_previous-flight_date ). CHECK lt_flights_filtered2 IS NOT INITIAL. rs_flight = lt_flights_filtered2[ 1 ]. ELSE. rs_flight = lt_flights_filtered[ 1 ]. ENDIF. ENDMETHOD. METHOD generate_booking_supplements. rt_data = VALUE tt_booking_supplements( FOR i = 1 THEN i + 1 WHILE i <= go_ran_booking_supplement_amnt->get_next( ) LET j = go_ran_booking_supplement_id->get_next( ) IN ( travel_id = iv_travel_id booking_id = iv_booking_id booking_supplement_id = i supplement_id = gt_supplements[ j ]-supplement_id price = gt_supplements[ j ]-price currency_code = gt_supplements[ j ]-currency_code ) ). ENDMETHOD. METHOD generate_description. TYPES: tt_customers TYPE SORTED TABLE OF /dmo/customer05 WITH UNIQUE KEY customer_id. rv_description = SWITCH /dmo/travel05-description( go_ran_travel_description->get_next( ) WHEN 1 THEN `Business Trip for ` && REDUCE /dmo/travel05-description( LET travelers = CORRESPONDING tt_customers( it_bookings DISCARDING DUPLICATES MAPPING customer_id = customer_id ) IN INIT s = `` i = 1 FOR traveler IN travelers NEXT s = s && gt_customer[ customer_id = traveler-customer_id ]-first_name && COND /dmo/travel05-description( WHEN i < lines( it_bookings ) THEN `, ` ) i = i + 1 ) WHEN 2 THEN `Vacation for ` && REDUCE /dmo/travel05-description( LET travelers2 = CORRESPONDING tt_customers( it_bookings DISCARDING DUPLICATES MAPPING customer_id = customer_id ) IN INIT s = `` i = 1 FOR traveler IN travelers2 NEXT s = s && gt_customer[ customer_id = traveler-customer_id ]-first_name && COND /dmo/travel05-description( WHEN i < lines( it_bookings ) THEN `, ` ) i = i + 1 ) WHEN 3 THEN `Business Trip to ` && gt_countryname[ country = gt_airports[ airport_id = gt_connections[ carrier_id = it_bookings[ 1 ]-carrier_id connection_id = it_bookings[ 1 ]-connection_id ]-airport_to_id ]-country ]-countryname WHEN 4 THEN `Vacation to ` && gt_countryname[ country = gt_airports[ airport_id = gt_connections[ carrier_id = it_bookings[ 1 ]-carrier_id connection_id = it_bookings[ 1 ]-connection_id ]-airport_to_id ]-country ]-countryname WHEN 5 THEN `Sightseeing in ` && gt_airports[ airport_id = gt_connections[ carrier_id = it_bookings[ 1 ]-carrier_id connection_id = it_bookings[ 1 ]-connection_id ]-airport_to_id ]-city WHEN 6 THEN `Visiting ` && gt_customer[ go_ran_customer->get_next( ) ]-first_name WHEN 7 THEN `Business Trip` ELSE `Vacation` ). ENDMETHOD. METHOD calculate_booking_fee. rv_booking_fee = 10 * lines( it_bookings ). ENDMETHOD. METHOD generate_travel_customer_id. rv_customer_id = COND /dmo/travel05-customer_id( WHEN go_ran_customer_travel->get_next( ) = 1 THEN gt_customer[ go_ran_customer->get_next( ) ]-customer_id ELSE it_bookings[ 1 ]-customer_id ). ENDMETHOD. ENDCLASS.
[ 41358, 49836, 3868, 62, 7890, 62, 8612, 1352, 13, 198, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 2251, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 503, 41876, 4526, 37, 5390, 611, 62, 2238, 62, 324, 83, 62, 4871, 5143, 62, 448, 39852, 2849, 1847, 13, 198, 10619, 41358, 49836, 13, 198, 198, 31631, 300, 565, 62, 40955, 62, 7890, 62, 8612, 1352, 5550, 20032, 17941, 29244, 6158, 4810, 3824, 6158, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 3868, 62, 7890, 62, 8612, 1352, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 256, 83, 62, 40955, 41876, 49053, 9795, 43679, 3963, 1220, 67, 5908, 14, 40955, 2713, 13315, 35374, 4086, 62, 312, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 651, 62, 7890, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 17034, 62, 7890, 8, 41876, 256, 83, 62, 40955, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 40955, 62, 7890, 62, 8612, 1352, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 3868, 62, 7890, 62, 8612, 1352, 93, 17953, 13, 198, 220, 220, 220, 16876, 503, 3180, 347, 15919, 13, 220, 503, 3784, 13564, 7, 705, 46904, 23520, 14041, 2637, 6739, 220, 23578, 5064, 13, 198, 220, 220, 220, 5550, 2538, 9328, 16034, 1220, 67, 5908, 14, 40955, 2713, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 14514, 62, 45669, 39, 9338, 628, 220, 220, 220, 16876, 503, 3180, 347, 15919, 13, 220, 503, 3784, 13564, 7, 705, 46904, 10934, 14041, 2637, 6739, 23578, 5064, 13, 198, 220, 220, 220, 42865, 7, 2528, 62, 7890, 8, 796, 651, 62, 7890, 7, 6739, 628, 220, 220, 220, 16876, 503, 3180, 347, 15919, 13, 220, 503, 3784, 13564, 7, 705, 46904, 35835, 14041, 2637, 6739, 23578, 5064, 13, 198, 220, 220, 220, 29194, 17395, 1220, 67, 5908, 14, 40955, 2713, 16034, 43679, 2488, 2528, 62, 7890, 13, 628, 220, 220, 220, 16876, 503, 3180, 347, 15919, 13, 220, 503, 3784, 13564, 7, 705, 46904, 24429, 2637, 6739, 23578, 5064, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 7890, 13, 198, 220, 220, 220, 374, 83, 62, 7890, 796, 26173, 8924, 256, 83, 62, 40955, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 4086, 62, 312, 796, 705, 2998, 18005, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 796, 705, 16012, 19489, 13524, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4675, 220, 220, 220, 796, 705, 19880, 2688, 3530, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30793, 62, 8189, 220, 796, 705, 20, 3559, 1954, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1748, 220, 220, 220, 220, 220, 796, 705, 49, 420, 19593, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1499, 62, 8189, 220, 220, 796, 705, 2937, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3072, 62, 17618, 796, 705, 10, 16, 860, 486, 12, 21, 2624, 12, 3980, 1238, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3992, 62, 21975, 220, 220, 220, 220, 220, 220, 796, 705, 4023, 1378, 2503, 13, 19155, 19489, 12, 35927, 13, 82, 499, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3053, 62, 21975, 796, 705, 10951, 31, 19155, 19489, 12, 35927, 13, 82, 499, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 4086, 62, 312, 796, 705, 2998, 34215, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 796, 705, 33771, 3334, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4675, 220, 220, 220, 796, 705, 24814, 24683, 978, 7197, 1367, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30793, 62, 8189, 220, 796, 705, 26200, 1795, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1748, 220, 220, 220, 220, 220, 796, 705, 35, 947, 325, 335, 24263, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1499, 62, 8189, 220, 220, 796, 705, 7206, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3072, 62, 17618, 796, 705, 10, 2920, 362, 15377, 8644, 31046, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3992, 62, 21975, 220, 220, 220, 220, 220, 220, 796, 705, 4023, 1378, 2503, 13, 12254, 8929, 13, 82, 499, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3053, 62, 21975, 796, 705, 10951, 31, 12254, 8929, 13, 82 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
METHOD itab_factory. * --- get fields to be retrieved. DATA it_fields TYPE ty_t_parse_parameter. it_fields = me->get_fields_list( ). * --- Get the structure of the table. DATA : ref_table_des TYPE REF TO cl_abap_structdescr. ref_table_des ?= cl_abap_typedescr=>describe_by_name( me->ddic_table ). DATA idetails TYPE abap_compdescr_tab. idetails[] = ref_table_des->components[]. DATA xdetails TYPE abap_compdescr. FIELD-SYMBOLS: <fs_fcat> TYPE lvc_s_fcat. DATA it_fcat TYPE lvc_t_fcat. LOOP AT idetails INTO xdetails. " add only necessary fields READ TABLE it_fields WITH KEY field = xdetails-name TRANSPORTING NO FIELDS. CHECK sy-subrc EQ 0. APPEND INITIAL LINE TO it_fcat ASSIGNING <fs_fcat>. <fs_fcat>-fieldname = xdetails-name . <fs_fcat>-datatype = xdetails-type_kind. <fs_fcat>-inttype = xdetails-type_kind. <fs_fcat>-intlen = xdetails-length. <fs_fcat>-decimals = xdetails-decimals. ENDLOOP. DATA: dy_table TYPE REF TO data. " Create dynamic internal table and assign to FS CALL METHOD cl_alv_table_create=>create_dynamic_table EXPORTING it_fieldcatalog = it_fcat IMPORTING ep_table = re_ref_table. ENDMETHOD.
[ 220, 337, 36252, 340, 397, 62, 69, 9548, 13, 198, 198, 9, 11420, 651, 7032, 284, 307, 29517, 13, 198, 220, 220, 220, 42865, 340, 62, 25747, 41876, 1259, 62, 83, 62, 29572, 62, 17143, 2357, 13, 198, 220, 220, 220, 340, 62, 25747, 796, 502, 3784, 1136, 62, 25747, 62, 4868, 7, 6739, 198, 198, 9, 11420, 3497, 262, 4645, 286, 262, 3084, 13, 198, 220, 220, 220, 42865, 1058, 1006, 62, 11487, 62, 8906, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 7249, 20147, 81, 13, 198, 220, 220, 220, 1006, 62, 11487, 62, 8906, 5633, 28, 537, 62, 397, 499, 62, 774, 9124, 3798, 81, 14804, 20147, 4892, 62, 1525, 62, 3672, 7, 502, 3784, 1860, 291, 62, 11487, 6739, 628, 220, 220, 220, 42865, 4686, 316, 1768, 41876, 450, 499, 62, 5589, 20147, 81, 62, 8658, 13, 198, 220, 220, 220, 4686, 316, 1768, 21737, 796, 1006, 62, 11487, 62, 8906, 3784, 5589, 3906, 58, 4083, 628, 220, 220, 220, 42865, 2124, 36604, 41876, 450, 499, 62, 5589, 20147, 81, 13, 198, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 9501, 62, 69, 9246, 29, 41876, 300, 28435, 62, 82, 62, 69, 9246, 13, 198, 220, 220, 220, 42865, 340, 62, 69, 9246, 41876, 300, 28435, 62, 83, 62, 69, 9246, 13, 628, 220, 220, 220, 17579, 3185, 5161, 4686, 316, 1768, 39319, 2124, 36604, 13, 198, 220, 220, 220, 220, 220, 366, 751, 691, 3306, 7032, 198, 220, 220, 220, 220, 220, 20832, 43679, 340, 62, 25747, 13315, 35374, 2214, 796, 2124, 36604, 12, 3672, 48213, 4303, 9863, 2751, 8005, 18930, 3698, 5258, 13, 198, 220, 220, 220, 220, 220, 5870, 25171, 827, 12, 7266, 6015, 36529, 657, 13, 198, 220, 220, 220, 220, 220, 43504, 10619, 3268, 2043, 12576, 48920, 5390, 340, 62, 69, 9246, 24994, 3528, 15871, 1279, 9501, 62, 69, 9246, 28401, 198, 220, 220, 220, 220, 220, 1279, 9501, 62, 69, 9246, 29, 12, 3245, 3672, 796, 2124, 36604, 12, 3672, 764, 198, 220, 220, 220, 220, 220, 1279, 9501, 62, 69, 9246, 29, 12, 19608, 265, 2981, 796, 2124, 36604, 12, 4906, 62, 11031, 13, 198, 220, 220, 220, 220, 220, 1279, 9501, 62, 69, 9246, 29, 12, 600, 4906, 796, 2124, 36604, 12, 4906, 62, 11031, 13, 198, 220, 220, 220, 220, 220, 1279, 9501, 62, 69, 9246, 29, 12, 600, 11925, 796, 2124, 36604, 12, 13664, 13, 198, 220, 220, 220, 220, 220, 1279, 9501, 62, 69, 9246, 29, 12, 12501, 320, 874, 796, 2124, 36604, 12, 12501, 320, 874, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 198, 220, 220, 220, 42865, 25, 20268, 62, 11487, 41876, 4526, 37, 5390, 1366, 13, 198, 220, 220, 220, 366, 13610, 8925, 5387, 3084, 290, 8333, 284, 23324, 198, 220, 220, 220, 42815, 337, 36252, 537, 62, 282, 85, 62, 11487, 62, 17953, 14804, 17953, 62, 67, 28995, 62, 11487, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 3245, 9246, 11794, 796, 340, 62, 69, 9246, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2462, 62, 11487, 220, 220, 220, 220, 220, 220, 220, 796, 302, 62, 5420, 62, 11487, 13, 628, 220, 23578, 49273, 13 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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Y) TYPE KEY *" EXPORTING *" REFERENCE(E_COUNT) TYPE SY-DBCNT *"---------------------------------------------------------------------- SELECT COUNT(*) FROM some_table INTO e_count WHERE key = i_key AND state >= '000' AND state <= '999'. ENDFUNCTION.
[ 42296, 4177, 2849, 33493, 62, 34, 28270, 13, 201, 198, 9, 1, 10097, 23031, 201, 198, 9, 1, 9, 1, 14565, 26491, 25, 201, 198, 9, 1, 220, 30023, 9863, 2751, 201, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 20373, 8, 41876, 220, 35374, 201, 198, 9, 1, 220, 7788, 15490, 2751, 201, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 36, 62, 34, 28270, 8, 41876, 220, 19704, 12, 35, 2749, 11251, 201, 198, 9, 1, 10097, 23031, 201, 198, 201, 198, 201, 198, 220, 33493, 327, 28270, 7, 28104, 16034, 617, 62, 11487, 39319, 304, 62, 9127, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33411, 1994, 796, 1312, 62, 2539, 5357, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1181, 18189, 705, 830, 6, 5357, 1181, 19841, 705, 17032, 4458, 220, 220, 201, 198, 201, 198, 201, 198, 1677, 8068, 4944, 4177, 2849, 13 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Report ZDEMO_EXCEL26 *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT zdemo_excel29. DATA: lo_excel TYPE REF TO zcl_excel, lo_excel_writer TYPE REF TO zif_excel_writer, lo_excel_reader TYPE REF TO zif_excel_reader. DATA: lv_file TYPE xstring, lv_bytecount TYPE i, lt_file_tab TYPE solix_tab. DATA: lv_full_path TYPE string, lv_filename TYPE string, lv_workdir TYPE string. PARAMETERS: p_path TYPE zexcel_export_dir OBLIGATORY. AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path. DATA: lt_filetable TYPE filetable, lv_rc TYPE i. cl_gui_frontend_services=>get_sapgui_workdir( CHANGING sapworkdir = lv_workdir ). cl_gui_cfw=>flush( ). p_path = lv_workdir. CALL METHOD cl_gui_frontend_services=>file_open_dialog EXPORTING window_title = 'Select Macro-Enabled Workbook template' default_extension = '*.xlsm' file_filter = 'Excel Macro-Enabled Workbook (*.xlsm)|*.xlsm' initial_directory = lv_workdir CHANGING file_table = lt_filetable rc = lv_rc EXCEPTIONS file_open_dialog_failed = 1 cntl_error = 2 error_no_gui = 3 not_supported_by_gui = 4 OTHERS = 5. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. READ TABLE lt_filetable INTO lv_filename INDEX 1. p_path = lv_filename. START-OF-SELECTION. lv_full_path = p_path. CREATE OBJECT lo_excel_reader TYPE zcl_excel_reader_xlsm. CREATE OBJECT lo_excel_writer TYPE zcl_excel_writer_xlsm. lo_excel = lo_excel_reader->load_file( lv_full_path ). lv_file = lo_excel_writer->write_file( lo_excel ). REPLACE '.xlsm' IN lv_full_path WITH 'FromReader.xlsm'. " Convert to binary CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING buffer = lv_file IMPORTING output_length = lv_bytecount TABLES binary_tab = lt_file_tab. " Save the file cl_gui_frontend_services=>gui_download( EXPORTING bin_filesize = lv_bytecount filename = lv_full_path filetype = 'BIN' CHANGING data_tab = lt_file_tab ).
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 220, 1168, 39429, 46, 62, 6369, 34, 3698, 2075, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 198, 2200, 15490, 1976, 9536, 78, 62, 1069, 5276, 1959, 13, 198, 198, 26947, 25, 2376, 62, 1069, 5276, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 1069, 5276, 62, 16002, 41876, 4526, 37, 5390, 1976, 361, 62, 1069, 5276, 62, 16002, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 1069, 5276, 62, 46862, 41876, 4526, 37, 5390, 1976, 361, 62, 1069, 5276, 62, 46862, 13, 198, 198, 26947, 25, 300, 85, 62, 7753, 220, 220, 220, 220, 220, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 26327, 9127, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 300, 83, 62, 7753, 62, 8658, 220, 41876, 1540, 844, 62, 8658, 13, 198, 198, 26947, 25, 300, 85, 62, 12853, 62, 6978, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 34345, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 1818, 15908, 220, 220, 41876, 4731, 13, 198, 198, 27082, 2390, 2767, 4877, 25, 279, 62, 6978, 41876, 1976, 1069, 5276, 62, 39344, 62, 15908, 440, 9148, 3528, 1404, 15513, 13, 198, 198, 1404, 33493, 2849, 12, 6173, 2200, 1677, 6177, 26173, 8924, 12, 2200, 35780, 7473, 279, 62, 6978, 13, 628, 220, 42865, 25, 300, 83, 62, 7753, 11487, 41876, 2393, 11487, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 6015, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 13, 628, 220, 537, 62, 48317, 62, 8534, 437, 62, 30416, 14804, 1136, 62, 82, 499, 48317, 62, 1818, 15908, 7, 5870, 15567, 2751, 31841, 1818, 15908, 796, 300, 85, 62, 1818, 15908, 6739, 198, 220, 537, 62, 48317, 62, 12993, 86, 14804, 25925, 7, 6739, 198, 220, 279, 62, 6978, 796, 300, 85, 62, 1818, 15908, 13, 628, 220, 42815, 337, 36252, 537, 62, 48317, 62, 8534, 437, 62, 30416, 14804, 7753, 62, 9654, 62, 38969, 519, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 4324, 62, 7839, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 17563, 42755, 12, 20491, 5521, 2070, 11055, 6, 198, 220, 220, 220, 220, 220, 4277, 62, 2302, 3004, 220, 220, 220, 220, 220, 220, 796, 705, 24620, 87, 75, 5796, 6, 198, 220, 220, 220, 220, 220, 2393, 62, 24455, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 3109, 5276, 42755, 12, 20491, 5521, 2070, 20789, 13, 87, 75, 5796, 14726, 24620, 87, 75, 5796, 6, 198, 220, 220, 220, 220, 220, 4238, 62, 34945, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 1818, 15908, 198, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 2393, 62, 11487, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 83, 62, 7753, 11487, 198, 220, 220, 220, 220, 220, 48321, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 6015, 198, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 2393, 62, 9654, 62, 38969, 519, 62, 47904, 796, 352, 198, 220, 220, 220, 220, 220, 269, 429, 75, 62, 18224, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 4049, 62, 3919, 62, 48317, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 513, 198, 220, 220, 220, 220, 220, 407, 62, 15999, 62, 1525, 62, 48317, 220, 220, 220, 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, 220, 796, 642, 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, 20832, 43679, 300, 83, 62, 7753, 11487, 39319, 300, 85, 62, 34345, 24413, 6369, 352, 13, 198, 220, 279, 62, 6978, 796, 300, 85, 62, 34345, 13, 198, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 628, 220, 300, 85, 62, 12853, 62, 6978, 796, 279, 62, 6978, 13, 628, 220, 29244, 6158, 25334, 23680, 2376, 62, 1069, 5276, 62, 46862, 41876, 1976, 565, 62, 1069, 5276, 62, 46862, 62, 87, 75, 5796, 13, 198, 220, 29244, 6158, 25334, 23680, 2376, 62, 1069, 5276, 62, 16002, 41876, 1976, 565, 62, 1069, 5276, 62, 16002, 62, 87, 75, 5796, 13, 198, 220, 2376, 62, 1069, 5276, 796, 2376, 62, 1069, 5276, 62, 46862, 3784, 2220, 62, 7753, 7, 300, 85, 62, 12853, 62, 6978, 6739, 198, 220, 300, 85, 62, 7753, 796, 2376, 62, 1069, 5276, 62, 16002, 3784, 13564, 62, 7753, 7, 2376, 62, 1069, 5276, 6739, 198, 220, 45285, 11598, 45302, 87, 75, 5796, 6, 3268, 300, 85, 62, 12853, 62, 6978, 13315, 705, 4863, 33634, 13, 87, 75, 5796, 4458, 628, 220, 366, 38240, 284, 13934, 198, 220, 42815, 29397, 4177, 2849, 705, 6173, 5653, 62, 55, 18601, 2751, 62, 10468, 62, 33, 1268, 13153, 6, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 11876, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 7753, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5072, 62, 13664, 796, 300, 85, 62, 26327, 9127, 198, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 13934, 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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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_abapgitp_plugin PUBLIC . TYPES: BEGIN OF ty_metadata, class TYPE string, version TYPE string, late_deser TYPE abap_bool, delete_tadir TYPE abap_bool, ddic TYPE abap_bool, END OF ty_metadata . METHODS serialize IMPORTING !io_xml TYPE REF TO zif_abapgitp_xml_output RAISING zcx_abapgitp_object . METHODS deserialize IMPORTING !iv_package TYPE devclass !io_xml TYPE REF TO zif_abapgitp_xml_input RAISING zcx_abapgitp_object . METHODS delete RAISING zcx_abapgitp_object . METHODS exists RETURNING VALUE(rv_bool) TYPE abap_bool RAISING zcx_abapgitp_object . METHODS jump . METHODS get_metadata RETURNING VALUE(rs_metadata) TYPE ty_metadata . ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 397, 499, 18300, 79, 62, 33803, 198, 220, 44731, 764, 628, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 38993, 11, 198, 220, 220, 220, 220, 220, 1398, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2196, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2739, 62, 8906, 263, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 12233, 62, 83, 324, 343, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 49427, 291, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 38993, 764, 628, 220, 337, 36252, 50, 11389, 1096, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5145, 952, 62, 19875, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 79, 62, 19875, 62, 22915, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 79, 62, 15252, 764, 198, 220, 337, 36252, 50, 748, 48499, 1096, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 26495, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 5145, 952, 62, 19875, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 79, 62, 19875, 62, 15414, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 79, 62, 15252, 764, 198, 220, 337, 36252, 50, 12233, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 79, 62, 15252, 764, 198, 220, 337, 36252, 50, 7160, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 30388, 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, 79, 62, 15252, 764, 198, 220, 337, 36252, 50, 4391, 764, 198, 220, 337, 36252, 50, 651, 62, 38993, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 38993, 8, 41876, 1259, 62, 38993, 764, 198, 10619, 41358, 49836, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
INTERFACE zif_abapgit_popups PUBLIC . TYPES: BEGIN OF ty_popup, " TODO remove, use zif_abapgit_services_repo=>ty_repo_params instead url TYPE string, package TYPE devclass, branch_name TYPE string, display_name TYPE string, folder_logic TYPE string, ign_subpkg TYPE abap_bool, master_lang_only TYPE abap_bool, cancel TYPE abap_bool, END OF ty_popup . CONSTANTS c_new_branch_label TYPE string VALUE '+ create new ...' ##NO_TEXT. METHODS popup_search_help IMPORTING !iv_tab_field TYPE string RETURNING VALUE(rv_value) TYPE ddshretval-fieldval RAISING zcx_abapgit_exception . METHODS popup_package_export EXPORTING !ev_package TYPE devclass !ev_folder_logic TYPE string !ev_serialize_master_lang_only TYPE abap_bool RAISING zcx_abapgit_exception . METHODS popup_folder_logic RETURNING VALUE(rv_folder_logic) TYPE string RAISING zcx_abapgit_exception . METHODS popup_object RETURNING VALUE(rs_tadir) TYPE zif_abapgit_definitions=>ty_tadir RAISING zcx_abapgit_exception . METHODS create_branch_popup IMPORTING iv_source_branch_name TYPE string EXPORTING !ev_name TYPE string !ev_cancel TYPE abap_bool RAISING zcx_abapgit_exception . METHODS repo_new_offline RETURNING VALUE(rs_popup) TYPE ty_popup RAISING zcx_abapgit_exception . METHODS branch_list_popup IMPORTING !iv_url TYPE string !iv_default_branch TYPE string OPTIONAL !iv_show_new_option TYPE abap_bool OPTIONAL !iv_hide_branch TYPE zif_abapgit_persistence=>ty_repo-branch_name OPTIONAL !iv_hide_head TYPE abap_bool OPTIONAL RETURNING VALUE(rs_branch) TYPE zif_abapgit_definitions=>ty_git_branch RAISING zcx_abapgit_exception . METHODS repo_popup IMPORTING !iv_url TYPE string !iv_package TYPE devclass OPTIONAL !iv_branch TYPE string DEFAULT 'refs/heads/master' !iv_freeze_package TYPE abap_bool OPTIONAL !iv_freeze_url TYPE abap_bool OPTIONAL !iv_title TYPE clike DEFAULT 'New Online Project' !iv_display_name TYPE string OPTIONAL RETURNING VALUE(rs_popup) TYPE ty_popup RAISING zcx_abapgit_exception ##NO_TEXT. METHODS popup_to_confirm IMPORTING !iv_titlebar TYPE clike !iv_text_question TYPE clike !iv_text_button_1 TYPE clike DEFAULT 'Yes' !iv_icon_button_1 TYPE icon-name DEFAULT space !iv_text_button_2 TYPE clike DEFAULT 'No' !iv_icon_button_2 TYPE icon-name DEFAULT space !iv_default_button TYPE char1 DEFAULT '1' !iv_display_cancel_button TYPE char1 DEFAULT abap_true RETURNING VALUE(rv_answer) TYPE char1 RAISING zcx_abapgit_exception . METHODS popup_to_inform IMPORTING !iv_titlebar TYPE clike !iv_text_message TYPE clike RAISING zcx_abapgit_exception . METHODS popup_to_create_package EXPORTING !es_package_data TYPE scompkdtln !ev_create TYPE abap_bool RAISING zcx_abapgit_exception . METHODS popup_to_create_transp_branch IMPORTING !it_transport_headers TYPE trwbo_request_headers RETURNING VALUE(rs_transport_branch) TYPE zif_abapgit_definitions=>ty_transport_to_branch RAISING zcx_abapgit_exception. METHODS popup_to_select_transports RETURNING VALUE(rt_trkorr) TYPE trwbo_request_headers . METHODS popup_to_select_from_list IMPORTING !it_list TYPE STANDARD TABLE !iv_title TYPE lvc_title DEFAULT space !iv_header_text TYPE csequence DEFAULT space !iv_start_column TYPE i DEFAULT 2 !iv_end_column TYPE i DEFAULT 65 !iv_start_line TYPE i DEFAULT 8 !iv_end_line TYPE i DEFAULT 20 !iv_striped_pattern TYPE abap_bool DEFAULT abap_false !iv_optimize_col_width TYPE abap_bool DEFAULT abap_true !iv_selection_mode TYPE salv_de_constant DEFAULT if_salv_c_selection_mode=>multiple !iv_select_column_text TYPE csequence DEFAULT space !it_columns_to_display TYPE zif_abapgit_definitions=>ty_alv_column_tt EXPORTING VALUE(et_list) TYPE STANDARD TABLE RAISING zcx_abapgit_exception . METHODS branch_popup_callback IMPORTING !iv_code TYPE clike CHANGING !ct_fields TYPE zif_abapgit_definitions=>ty_sval_tt !cs_error TYPE svale !cv_show_popup TYPE char01 RAISING zcx_abapgit_exception . METHODS package_popup_callback IMPORTING !iv_code TYPE clike CHANGING !ct_fields TYPE zif_abapgit_definitions=>ty_sval_tt !cs_error TYPE svale !cv_show_popup TYPE char01 RAISING zcx_abapgit_exception . METHODS popup_transport_request IMPORTING !is_transport_type TYPE zif_abapgit_definitions=>ty_transport_type RETURNING VALUE(rv_transport) TYPE trkorr RAISING zcx_abapgit_exception. METHODS popup_proxy_bypass IMPORTING !it_proxy_bypass TYPE zif_abapgit_definitions=>ty_range_proxy_bypass_url RETURNING VALUE(rt_proxy_bypass) TYPE zif_abapgit_definitions=>ty_range_proxy_bypass_url RAISING zcx_abapgit_exception. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 198, 220, 44731, 764, 628, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 12924, 929, 11, 366, 16926, 46, 4781, 11, 779, 1976, 361, 62, 397, 499, 18300, 62, 30416, 62, 260, 7501, 14804, 774, 62, 260, 7501, 62, 37266, 2427, 198, 220, 220, 220, 220, 220, 19016, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 5301, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1614, 4871, 11, 198, 220, 220, 220, 220, 220, 8478, 62, 3672, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 3359, 62, 3672, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 9483, 62, 6404, 291, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 3627, 62, 7266, 35339, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 4958, 62, 17204, 62, 8807, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 14241, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 12924, 929, 764, 628, 220, 7102, 2257, 1565, 4694, 269, 62, 3605, 62, 1671, 3702, 62, 18242, 41876, 4731, 26173, 8924, 705, 10, 2251, 649, 2644, 6, 22492, 15285, 62, 32541, 13, 628, 220, 337, 36252, 50, 46207, 62, 12947, 62, 16794, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 8658, 62, 3245, 41876, 4731, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 8367, 8, 41876, 49427, 1477, 1186, 2100, 12, 3245, 2100, 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, 46207, 62, 26495, 62, 39344, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 5145, 1990, 62, 26495, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 5145, 1990, 62, 43551, 62, 6404, 291, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 5145, 1990, 62, 46911, 1096, 62, 9866, 62, 17204, 62, 8807, 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, 46207, 62, 43551, 62, 6404, 291, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 43551, 62, 6404, 291, 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, 46207, 62, 15252, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 83, 324, 343, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 198, 220, 220, 220, 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, 2251, 62, 1671, 3702, 62, 12924, 929, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 21628, 62, 10459, 62, 1671, 3702, 62, 3672, 41876, 4731, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 5145, 1990, 62, 3672, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 5145, 1990, 62, 66, 21130, 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, 29924, 62, 3605, 62, 2364, 1370, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 12924, 929, 8, 41876, 1259, 62, 12924, 929, 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, 8478, 62, 4868, 62, 12924, 929, 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, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 12286, 62, 1671, 3702, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 12860, 62, 3605, 62, 18076, 41876, 450, 499, 62, 30388, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 24717, 62, 1671, 3702, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 1671, 3702, 62, 3672, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 24717, 62, 2256, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 39852, 2849, 1847, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 1671, 3702, 8, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 18300, 62, 1671, 3702, 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, 29924, 62, 12924, 929, 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, 4731, 198, 220, 220, 220, 220, 220, 5145, 452, 62, 26495, 220, 220, 220, 220, 220, 220, 220, 41876, 1614, 4871, 39852 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS ltcl_test DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. DATA: mo_cut TYPE REF TO zcl_abaplint_deps_serializer. METHODS: setup, cl_ci_tests FOR TESTING RAISING cx_static_check, svrs FOR TESTING RAISING cx_static_check, zabaplint_dependencies FOR TESTING RAISING cx_static_check, cx_iac_helper_check_7bit_acsii FOR TESTING RAISING cx_static_check, zabaplint_ui FOR TESTING RAISING cx_static_check. ENDCLASS. CLASS ltcl_test IMPLEMENTATION. METHOD setup. CREATE OBJECT mo_cut. ENDMETHOD. METHOD zabaplint_ui. DATA: ls_item TYPE zif_abapgit_definitions=>ty_item. ls_item-obj_type = 'FUGR'. ls_item-obj_name = 'ZABAPLINT_UI'. mo_cut->serialize_item( ls_item ). ENDMETHOD. METHOD cl_ci_tests. DATA: ls_item TYPE zif_abapgit_definitions=>ty_item. ls_item-obj_type = 'CLAS'. ls_item-obj_name = 'CL_CI_TESTS'. mo_cut->serialize_item( ls_item ). ENDMETHOD. METHOD svrs. DATA: ls_item TYPE zif_abapgit_definitions=>ty_item. ls_item-obj_type = 'FUGR'. ls_item-obj_name = 'SVRS'. mo_cut->serialize_item( ls_item ). ENDMETHOD. METHOD zabaplint_dependencies. DATA: ls_item TYPE zif_abapgit_definitions=>ty_item. ls_item-obj_type = 'PROG'. ls_item-obj_name = 'ZABAPLINT_DEPENDENCIES'. mo_cut->serialize_item( ls_item ). ENDMETHOD. METHOD cx_iac_helper_check_7bit_acsii. DATA: ls_item TYPE zif_abapgit_definitions=>ty_item. DATA lt_files TYPE zif_abapgit_definitions=>ty_files_tt. DATA ls_file LIKE LINE OF lt_files. ls_item-obj_type = 'CLAS'. ls_item-obj_name = 'CX_IAC_HELPER_CHECK_7BIT_ACSII'. lt_files = mo_cut->serialize_item( ls_item ). LOOP AT lt_files INTO ls_file. cl_abap_unit_assert=>assert_not_initial( ls_file-data ). ENDLOOP. ENDMETHOD. ENDCLASS.
[ 198, 31631, 300, 83, 565, 62, 9288, 5550, 20032, 17941, 7473, 43001, 2751, 360, 4261, 6234, 6006, 9863, 45698, 42, 49277, 43638, 5805, 7597, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 6941, 62, 8968, 41876, 4526, 37, 5390, 1976, 565, 62, 15498, 489, 600, 62, 10378, 82, 62, 46911, 7509, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 9058, 11, 198, 220, 220, 220, 220, 220, 537, 62, 979, 62, 41989, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 38487, 3808, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 1976, 15498, 489, 600, 62, 45841, 3976, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 43213, 62, 9607, 62, 2978, 525, 62, 9122, 62, 22, 2545, 62, 16436, 4178, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 1976, 15498, 489, 600, 62, 9019, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 198, 10619, 31631, 13, 628, 198, 31631, 300, 83, 565, 62, 9288, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 9058, 13, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 6941, 62, 8968, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 15498, 489, 600, 62, 9019, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 9186, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 13, 628, 220, 220, 220, 43979, 62, 9186, 12, 26801, 62, 4906, 796, 705, 37, 7340, 49, 4458, 198, 220, 220, 220, 43979, 62, 9186, 12, 26801, 62, 3672, 796, 705, 57, 6242, 2969, 43, 12394, 62, 10080, 4458, 628, 220, 220, 220, 6941, 62, 8968, 3784, 46911, 1096, 62, 9186, 7, 43979, 62, 9186, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 537, 62, 979, 62, 41989, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 9186, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 13, 628, 220, 220, 220, 43979, 62, 9186, 12, 26801, 62, 4906, 796, 705, 5097, 1921, 4458, 198, 220, 220, 220, 43979, 62, 9186, 12, 26801, 62, 3672, 796, 705, 5097, 62, 25690, 62, 51, 1546, 4694, 4458, 628, 220, 220, 220, 6941, 62, 8968, 3784, 46911, 1096, 62, 9186, 7, 43979, 62, 9186, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 38487, 3808, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 9186, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 13, 628, 220, 220, 220, 43979, 62, 9186, 12, 26801, 62, 4906, 796, 705, 37, 7340, 49, 4458, 198, 220, 220, 220, 43979, 62, 9186, 12, 26801, 62, 3672, 796, 705, 50, 53, 6998, 4458, 628, 220, 220, 220, 6941, 62, 8968, 3784, 46911, 1096, 62, 9186, 7, 43979, 62, 9186, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 15498, 489, 600, 62, 45841, 3976, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 9186, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 13, 628, 220, 220, 220, 43979, 62, 9186, 12, 26801, 62, 4906, 796, 705, 4805, 7730, 4458, 198, 220, 220, 220, 43979, 62, 9186, 12, 26801, 62, 3672, 796, 705, 57, 6242, 2969, 43, 12394, 62, 46162, 10619, 24181, 11015, 4458, 628, 220, 220, 220, 6941, 62, 8968, 3784, 46911, 1096, 62, 9186, 7, 43979, 62, 9186, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 43213, 62, 9607, 62, 2978, 525, 62, 9122, 62, 22, 2545, 62, 16436, 4178, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 9186, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 13, 198, 220, 220, 220, 42865, 300, 83, 62, 16624, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 926, 13, 198, 220, 220, 220, 42865, 43979, 62, 7753, 34178, 48920, 3963, 300, 83, 62, 16624, 13, 628, 198, 220, 220, 220, 43979, 62, 9186, 12, 26801, 62, 4906, 796, 705, 5097, 1921, 4458, 198, 220, 220, 220, 43979, 62, 9186, 12, 26801, 62, 3672, 796, 705, 34, 55, 62, 40, 2246, 62, 39, 3698, 18973, 62, 50084, 62, 22, 26094, 62, 2246, 50, 3978, 4458, 628, 220, 220, 220, 300, 83, 62, 16624, 796, 6941, 62, 8968, 3784, 46911, 1096, 62, 9186, 7, 43979, 62, 9186, 6739, 628, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 16624, 39319, 43979, 62, 7753, 13, 198, 220, 220, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 1662, 62, 36733, 7, 43979, 62, 7753, 12, 7890, 6739, 198, 220, 220, 220, 23578, 21982, 3185, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_constants_interface DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC . PUBLIC SECTION. METHODS constructor . PROTECTED SECTION. METHODS inspect_statements REDEFINITION. METHODS inspect_tokens REDEFINITION. PRIVATE SECTION. DATA has_something_else TYPE abap_bool VALUE abap_false. METHODS is_structure_empty IMPORTING structure TYPE sstruc RETURNING VALUE(result) TYPE abap_bool. METHODS check_result IMPORTING structure TYPE sstruc. ENDCLASS. CLASS Y_CHECK_CONSTANTS_INTERFACE IMPLEMENTATION. METHOD constructor. super->constructor( ). settings-pseudo_comment = '"#EC CONS_INTF' ##NO_TEXT. settings-disable_threshold_selection = abap_true. settings-threshold = 0. settings-documentation = |{ c_docs_path-checks }constants-interface.md|. relevant_statement_types = VALUE #( ( scan_struc_stmnt_type-interface ) ). relevant_structure_types = VALUE #( ). set_check_message( 'There are only constants in this interface!' ). ENDMETHOD. METHOD inspect_statements. CHECK is_structure_empty( structure ) = abap_false. has_something_else = abap_false. super->inspect_statements( structure ). check_result( structure ). ENDMETHOD. METHOD inspect_tokens. CHECK statement-type <> scan_stmnt_type-comment. CHECK statement-type <> scan_stmnt_type-comment_in_stmnt. CHECK statement-type <> scan_stmnt_type-pragma. DATA(token) = get_token_abs( statement-from ). IF token <> 'CONSTANTS' AND token <> 'INTERFACE' AND token <> 'ENDINTERFACE' AND token <> 'BEGIN' AND token <> 'END' AND token <> 'OF'. has_something_else = abap_true. ENDIF. ENDMETHOD. METHOD check_result. CHECK has_something_else = abap_false. DATA(statement_for_message) = ref_scan_manager->statements[ structure-stmnt_from ]. DATA(check_configuration) = detect_check_configuration( statement_for_message ). IF check_configuration IS INITIAL. RETURN. ENDIF. raise_error( statement_level = statement_for_message-level statement_index = structure-stmnt_from statement_from = statement_for_message-from error_priority = check_configuration-prio ). ENDMETHOD. METHOD is_structure_empty. result = xsdbool( structure-stmnt_from = structure-stmnt_to - 1 ). ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9122, 62, 9979, 1187, 62, 39994, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 331, 62, 9122, 62, 8692, 29244, 6158, 44731, 764, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 764, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 10104, 62, 14269, 3196, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 10104, 62, 83, 482, 641, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 468, 62, 18927, 62, 17772, 41876, 450, 499, 62, 30388, 26173, 8924, 450, 499, 62, 9562, 13, 628, 220, 220, 220, 337, 36252, 50, 318, 62, 301, 5620, 62, 28920, 30023, 9863, 2751, 4645, 41876, 264, 19554, 66, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 337, 36252, 50, 2198, 62, 20274, 30023, 9863, 2751, 4645, 41876, 264, 19554, 66, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 575, 62, 50084, 62, 10943, 2257, 1565, 4694, 62, 41358, 49836, 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, 39537, 62, 1268, 10234, 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, 9979, 1187, 12, 39994, 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, 39994, 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, 1858, 389, 691, 38491, 287, 428, 7071, 13679, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 10104, 62, 14269, 3196, 13, 198, 220, 220, 220, 5870, 25171, 318, 62, 301, 5620, 62, 28920, 7, 4645, 1267, 796, 450, 499, 62, 9562, 13, 628, 220, 220, 220, 468, 62, 18927, 62, 17772, 796, 450, 499, 62, 9562, 13, 628, 220, 220, 220, 2208, 3784, 1040, 806, 62, 14269, 3196, 7, 4645, 6739, 628, 220, 220, 220, 2198, 62, 20274, 7, 4645, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 10104, 62, 83, 482, 641, 13, 198, 220, 220, 220, 5870, 25171, 2643, 12, 4906, 1279, 29, 9367, 62, 301, 76, 429, 62, 4906, 12, 23893, 13, 198, 220, 220, 220, 5870, 25171, 2643, 12, 4906, 1279, 29, 9367, 62, 301, 76, 429, 62, 4906, 12, 23893, 62, 259, 62, 301, 76, 429, 13, 198, 220, 220, 220, 5870, 25171, 2643, 12, 4906, 1279, 29, 9367, 62, 301, 76, 429, 62, 4906, 12, 1050, 363, 2611, 13, 628, 220, 220, 220, 42865, 7, 30001, 8, 796, 651, 62, 30001, 62, 8937, 7, 2643, 12, 6738, 6739, 628, 220, 220, 220, 16876, 11241, 1279, 29, 705, 10943, 2257, 1565, 4694, 6, 198, 220, 220, 220, 5357, 11241, 1279, 29, 705, 41358, 49836, 6, 198, 220, 220, 220, 5357, 11241, 1279, 29, 705, 10619, 41358, 49836, 6, 198, 220, 220, 220, 5357, 11241, 1279, 29, 705, 33, 43312, 6, 198, 220, 220, 220, 5357, 11241, 1279, 29, 705, 10619, 6, 198, 220, 220, 220, 5357, 11241, 1279, 29, 705, 19238, 4458, 198, 220, 220, 220, 220, 220, 468, 62, 18927, 62, 17772, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 2198, 62, 20274, 13, 198, 220, 220, 220, 5870, 25171, 468, 62, 18927, 62, 17772, 796, 450, 499, 62, 9562, 13, 628, 220, 220, 220, 42865, 7, 26090, 62, 1640, 62, 20500, 8, 796, 1006, 62, 35836, 62, 37153, 3784, 14269, 3196, 58, 4645, 12, 301, 76, 429, 62, 6738, 20740, 628, 220, 220, 220, 42865, 7, 9122, 62, 11250, 3924, 8, 796, 4886, 62, 9122, 62, 11250, 3924, 7, 2643, 62, 1640, 62, 20500, 6739, 628, 220, 220, 220, 16876, 2198, 62, 11250, 3924, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 5298, 62, 18224, 7, 2643, 62, 5715, 220, 220, 220, 220, 796, 2643, 62, 1640, 62, 20500, 12, 5715, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 9630, 220, 220, 220, 220, 796, 4645, 12, 301, 76, 429, 62, 6738, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 6738, 220, 220, 220, 220, 220, 796, 2643, 62, 1640, 62, 20500, 12, 6738, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4049, 62, 49336, 220, 220, 220, 220, 220, 796, 2198, 62, 11250, 3924, 12, 3448, 78, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 318, 62, 301, 5620, 62, 28920, 13, 198, 220, 220, 220, 1255, 796, 2124, 82, 9945, 970, 7, 4645, 12, 301, 76, 429, 62, 6738, 796, 4645, 12, 301, 76, 429, 62, 1462, 532, 352, 6739, 198, 220, 23578, 49273, 13, 628, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_EXCEL9 *& *&---------------------------------------------------------------------* *& abap2xlsx Demo: Data validations *& *&---------------------------------------------------------------------* REPORT zdemo_excel9. CONSTANTS: c_fruits TYPE string VALUE 'Fruits', c_vegetables TYPE string VALUE 'Vegetables', c_meat TYPE string VALUE 'Meat', c_fish TYPE string VALUE 'Fish'. DATA: lo_excel TYPE REF TO zcl_excel, lo_worksheet TYPE REF TO zcl_excel_worksheet, lo_range TYPE REF TO zcl_excel_range, lo_data_validation TYPE REF TO zcl_excel_data_validation. DATA: row TYPE zexcel_cell_row. DATA: lv_title TYPE zexcel_sheet_title. CONSTANTS: gc_save_file_name TYPE string VALUE '09_DataValidation.xlsx'. INCLUDE zdemo_excel_outputopt_incl. PARAMETERS: p_sbook TYPE flag. START-OF-SELECTION. " Creates active sheet CREATE OBJECT lo_excel. " Get active sheet lo_worksheet = lo_excel->get_active_worksheet( ). lv_title = 'Data Validation'. lo_worksheet->set_title( lv_title ). " Set values for dropdown lo_worksheet->set_cell( ip_row = 2 ip_column = 'A' ip_value = c_fish ). lo_worksheet->set_cell( ip_row = 4 ip_column = 'A' ip_value = 'Anchovy' ). lo_worksheet->set_cell( ip_row = 5 ip_column = 'A' ip_value = 'Carp' ). lo_worksheet->set_cell( ip_row = 6 ip_column = 'A' ip_value = 'Catfish' ). lo_worksheet->set_cell( ip_row = 7 ip_column = 'A' ip_value = 'Cod' ). lo_worksheet->set_cell( ip_row = 8 ip_column = 'A' ip_value = 'Eel' ). lo_worksheet->set_cell( ip_row = 9 ip_column = 'A' ip_value = 'Haddock' ). lo_range = lo_excel->add_new_range( ). lo_range->name = c_fish. lo_range->set_value( ip_sheet_name = lv_title ip_start_column = 'A' ip_start_row = 4 ip_stop_column = 'A' ip_stop_row = 9 ). lo_worksheet->set_cell( ip_row = 2 ip_column = 'B' ip_value = c_meat ). lo_worksheet->set_cell( ip_row = 4 ip_column = 'B' ip_value = 'Pork' ). lo_worksheet->set_cell( ip_row = 5 ip_column = 'B' ip_value = 'Beef' ). lo_worksheet->set_cell( ip_row = 6 ip_column = 'B' ip_value = 'Chicken' ). lo_worksheet->set_cell( ip_row = 7 ip_column = 'B' ip_value = 'Turkey' ). lo_range = lo_excel->add_new_range( ). lo_range->name = c_meat. lo_range->set_value( ip_sheet_name = lv_title ip_start_column = 'B' ip_start_row = 4 ip_stop_column = 'B' ip_stop_row = 7 ). lo_worksheet->set_cell( ip_row = 2 ip_column = 'C' ip_value = c_fruits ). lo_worksheet->set_cell( ip_row = 4 ip_column = 'C' ip_value = 'Apple' ). lo_worksheet->set_cell( ip_row = 5 ip_column = 'C' ip_value = 'Banana' ). lo_worksheet->set_cell( ip_row = 6 ip_column = 'C' ip_value = 'Blueberry' ). lo_worksheet->set_cell( ip_row = 7 ip_column = 'C' ip_value = 'Ananas' ). lo_worksheet->set_cell( ip_row = 8 ip_column = 'C' ip_value = 'Grapes' ). lo_range = lo_excel->add_new_range( ). lo_range->name = c_fruits. lo_range->set_value( ip_sheet_name = lv_title ip_start_column = 'C' ip_start_row = 4 ip_stop_column = 'C' ip_stop_row = 8 ). lo_worksheet->set_cell( ip_row = 2 ip_column = 'D' ip_value = c_vegetables ). lo_worksheet->set_cell( ip_row = 4 ip_column = 'D' ip_value = 'Cucumber' ). lo_worksheet->set_cell( ip_row = 5 ip_column = 'D' ip_value = 'Sweet pepper ' ). lo_worksheet->set_cell( ip_row = 6 ip_column = 'D' ip_value = 'Lettuce' ). lo_range = lo_excel->add_new_range( ). lo_range->name = c_vegetables. lo_range->set_value( ip_sheet_name = lv_title ip_start_column = 'D' ip_start_row = 4 ip_stop_column = 'D' ip_stop_row = 6 ). lo_worksheet = lo_excel->add_new_worksheet( ). lv_title = 'Table with Data Validation'. lo_worksheet->set_title( lv_title ). " Maximum Text length lo_worksheet->set_cell( ip_row = 1 ip_column = 'A' ip_value = 'Validate Maximum Text length of <= 10 in Cell A2:' ). lo_worksheet->set_cell( ip_row = 2 ip_column = 'A' ip_value = 'abcdefghij' ). lo_data_validation = lo_worksheet->add_new_data_validation( ). lo_data_validation->type = zcl_excel_data_validation=>c_type_textlength. lo_data_validation->operator = zcl_excel_data_validation=>c_operator_lessthanorequal. lo_data_validation->formula1 = 10. lo_data_validation->cell_row = 2. lo_data_validation->cell_column = 'A'. " Integer Value between 1 and 10 lo_worksheet->set_cell( ip_row = 4 ip_column = 'A' ip_value = 'Validate Integer Value between 1 and 10 in Cell A5:' ). lo_worksheet->set_cell( ip_row = 5 ip_column = 'A' ip_value = '5' ). lo_data_validation = lo_worksheet->add_new_data_validation( ). lo_data_validation->type = zcl_excel_data_validation=>c_type_whole. lo_data_validation->operator = zcl_excel_data_validation=>c_operator_between. lo_data_validation->formula1 = 1. lo_data_validation->formula2 = 10. lo_data_validation->prompttitle = 'Range'. lo_data_validation->prompt = 'Enter a value between 1 and 10'. lo_data_validation->errortitle = 'Error'. lo_data_validation->error = 'You have entered a wrong value. Please use only numbers between 1 and 10.'. lo_data_validation->cell_row = 5. lo_data_validation->cell_column = 'A'. " Evaluation by Formula from issue #161 lo_worksheet->set_cell( ip_row = 7 ip_column = 'A' ip_value = 'Validate if B8 contains a "-":' ). lo_worksheet->set_cell( ip_row = 8 ip_column = 'A' ip_value = 'Text' ). lo_worksheet->set_cell( ip_row = 8 ip_column = 'B' ip_value = '-' ). lo_data_validation = lo_worksheet->add_new_data_validation( ). lo_data_validation->type = zcl_excel_data_validation=>c_type_custom. lo_data_validation->formula1 = '"IF(B8<>"""";INDIRECT(LEFT(B8;SEARCH(""-"";B8;1)));EMPTY)"'. lo_data_validation->cell_row = 8. lo_data_validation->cell_column = 'A'. " There was an error when data validation was combined with cell merges this should test that: lo_worksheet->set_cell( ip_row = 10 ip_column = 'A' ip_value = 'Demo for data validation with a dropdown list' ). lo_worksheet->set_merge( ip_row = 10 ip_column_start = 'A' ip_column_end = 'F' ). " Headlines lo_worksheet->set_cell( ip_row = 11 ip_column = 'A' ip_value = c_fruits ). lo_worksheet->set_cell( ip_row = 11 ip_column = 'B' ip_value = c_vegetables ). row = 12. WHILE row < 20. " Starting with 14500 the data validation is dropped 14000 are still ok " 1st validation lo_data_validation = lo_worksheet->add_new_data_validation( ). lo_data_validation->type = zcl_excel_data_validation=>c_type_list. lo_data_validation->formula1 = c_fruits. lo_data_validation->cell_row = row. lo_data_validation->cell_column = 'A'. lo_worksheet->set_cell( ip_row = row ip_column = 'A' ip_value = 'Select a value' ). " 2nd lo_data_validation = lo_worksheet->add_new_data_validation( ). lo_data_validation->type = zcl_excel_data_validation=>c_type_list. lo_data_validation->formula1 = c_vegetables. lo_data_validation->cell_row = row. lo_data_validation->cell_column = 'B'. lo_worksheet->set_cell( ip_row = row ip_column = 'B' ip_value = 'Select a value' ). " 3rd lo_data_validation = lo_worksheet->add_new_data_validation( ). lo_data_validation->type = zcl_excel_data_validation=>c_type_list. lo_data_validation->formula1 = c_meat. lo_data_validation->cell_row = row. lo_data_validation->cell_column = 'C'. lo_worksheet->set_cell( ip_row = row ip_column = 'C' ip_value = 'Select a value' ). " 4th lo_data_validation = lo_worksheet->add_new_data_validation( ). lo_data_validation->type = zcl_excel_data_validation=>c_type_list. lo_data_validation->formula1 = c_fish. lo_data_validation->cell_row = row. lo_data_validation->cell_column = 'D'. lo_worksheet->set_cell( ip_row = row ip_column = 'D' ip_value = 'Select a value' ). " Increment row row = row + 1. ENDWHILE. IF p_sbook = abap_true. DATA: bookings TYPE TABLE OF sbook. lo_worksheet = lo_excel->add_new_worksheet( ). lv_title = 'SBOOK'. lo_worksheet->set_title( lv_title ). SELECT * FROM sbook INTO TABLE bookings UP TO 4000 ROWS. lo_worksheet->bind_table( EXPORTING ip_table = bookings * it_field_catalog = " Table binding field catalog * is_table_settings = " Excel table binding settings * IMPORTING * es_table_settings = " Excel table binding settings ). ENDIF. *** Create output lcl_output=>output( lo_excel ).
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 220, 1168, 39429, 46, 62, 6369, 34, 3698, 24, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 450, 499, 17, 87, 7278, 87, 34588, 25, 6060, 4938, 602, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 198, 2200, 15490, 1976, 9536, 78, 62, 1069, 5276, 24, 13, 198, 198, 10943, 2257, 1565, 4694, 25, 269, 62, 69, 50187, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 37, 50187, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 62, 303, 1136, 2977, 41876, 4731, 26173, 8924, 705, 26979, 1136, 2977, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 62, 41495, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 35620, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 62, 11084, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 39428, 4458, 198, 198, 26947, 25, 2376, 62, 1069, 5276, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 5225, 25473, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 5225, 25473, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 9521, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 9521, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 7890, 62, 12102, 341, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7890, 62, 12102, 341, 13, 198, 198, 26947, 25, 5752, 41876, 1976, 1069, 5276, 62, 3846, 62, 808, 13, 628, 198, 26947, 25, 300, 85, 62, 7839, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 1069, 5276, 62, 21760, 62, 7839, 13, 628, 198, 10943, 2257, 1565, 4694, 25, 308, 66, 62, 21928, 62, 7753, 62, 3672, 41876, 4731, 26173, 8924, 705, 2931, 62, 6601, 7762, 24765, 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, 27082, 2390, 2767, 4877, 25, 279, 62, 82, 2070, 41876, 6056, 13, 628, 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, 3497, 4075, 9629, 198, 220, 2376, 62, 5225, 25473, 220, 220, 220, 220, 220, 220, 220, 796, 2376, 62, 1069, 5276, 3784, 1136, 62, 5275, 62, 5225, 25473, 7, 6739, 198, 220, 300, 85, 62, 7839, 796, 705, 6601, 3254, 24765, 4458, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 7839, 7, 300, 85, 62, 7839, 6739, 198, 220, 366, 5345, 3815, 329, 4268, 2902, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 3846, 7, 20966, 62, 808, 796, 362, 20966, 62, 28665, 796, 705, 32, 6, 20966, 62, 8367, 796, 269, 62, 11084, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 3846, 7, 20966, 62, 808, 796, 604, 20966, 62, 28665, 796, 705, 32, 6, 20966, 62, 8367, 796, 705, 2025, 354, 27796, 6, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 3846, 7, 20966, 62, 808, 796, 642, 20966, 62, 28665, 796, 705, 32, 6, 20966, 62, 8367, 796, 705, 34, 5117, 6, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 3846, 7, 20966, 62, 808, 796, 718, 20966, 62, 28665, 796, 705, 32, 6, 20966, 62, 8367, 796, 705, 21979, 11084, 6, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 3846, 7, 20966, 62, 808, 796, 767, 20966, 62, 28665, 796, 705, 32, 6, 20966, 62, 8367, 796, 705, 43806, 6, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 3846, 7, 20966, 62, 808, 796, 807, 20966, 62, 28665, 796, 705, 32, 6, 20966, 62, 8367, 796, 705, 36, 417, 6, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 3846, 7, 20966, 62, 808, 796, 860, 20966, 62, 28665, 796, 705, 32, 6, 20966, 62, 8367, 796, 705, 39, 35509, 6, 6739, 628, 220, 2376, 62, 9521, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2376, 62, 1069, 5276, 3784, 2860, 62, 3605, 62, 9521, 7, 6739, 198, 220, 2376, 62, 9521, 3784, 3672, 220, 220, 220, 220, 220, 796, 269, 62, 11084, 13, 198, 220, 2376, 62, 9521, 3784, 2617, 62, 8367, 7, 20966, 62, 21760, 62, 3672, 220, 220, 220, 796, 300, 85, 62, 7839, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20966, 62, 9688, 62, 28665, 220, 796, 705, 32, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20966, 62, 9688, 62, 808, 220, 220, 220, 220, 796, 604, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20966, 62, 11338, 62, 28665, 220, 220, 796, 705, 32, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20966, 62, 11338, 62, 808, 220, 220, 220, 220, 220, 796, 860, 6739, 628, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 3846, 7, 20966, 62, 808, 796, 362, 20966, 62, 28665, 796, 705, 33, 6, 20966, 62, 8367, 796, 269, 62, 41495, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 3846, 7, 20966, 62, 808, 796, 604, 20966, 62, 28665, 796, 705, 33, 6, 20966, 62, 8367, 796, 705, 47, 967, 6, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 3846, 7, 20966, 62, 808, 796, 642, 20966, 62, 28665, 796, 705, 33, 6, 20966, 62, 8367, 796, 705, 3856, 891, 6, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 3846, 7, 20966, 62, 808, 796, 718, 20966, 62, 28665, 796, 705, 33 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 zcl_abapgit_default_transport DEFINITION PUBLIC CREATE PRIVATE . PUBLIC SECTION. CLASS-METHODS: get_instance RETURNING VALUE(ro_instance) TYPE REF TO zcl_abapgit_default_transport RAISING zcx_abapgit_exception. METHODS: constructor RAISING zcx_abapgit_exception, set IMPORTING iv_transport TYPE trkorr RAISING zcx_abapgit_exception, reset RAISING zcx_abapgit_exception. PRIVATE SECTION. CLASS-DATA: mo_instance TYPE REF TO zcl_abapgit_default_transport . DATA: mv_is_set_by_abapgit TYPE abap_bool, ms_save TYPE e070use. METHODS: store RAISING zcx_abapgit_exception, restore RAISING zcx_abapgit_exception, get RETURNING VALUE(rs_default_task) TYPE e070use RAISING zcx_abapgit_exception, set_internal IMPORTING iv_transport TYPE trkorr RAISING zcx_abapgit_exception, clear IMPORTING is_default_task TYPE e070use RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_default_transport IMPLEMENTATION. METHOD clear. CALL FUNCTION 'TR_TASK_RESET' EXPORTING iv_username = is_default_task-username iv_order = is_default_task-ordernum iv_task = is_default_task-tasknum iv_dialog = abap_false EXCEPTIONS invalid_username = 1 invalid_order = 2 invalid_task = 3 OTHERS = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from TR_TASK_RESET { sy-subrc }| ). ENDIF. ENDMETHOD. METHOD constructor. store( ). ENDMETHOD. METHOD get. DATA: lt_e070use TYPE STANDARD TABLE OF e070use. CALL FUNCTION 'TR_TASK_GET' TABLES tt_e070use = lt_e070use EXCEPTIONS invalid_username = 1 invalid_category = 2 invalid_client = 3 OTHERS = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from TR_TASK_GET { sy-subrc }| ). ENDIF. READ TABLE lt_e070use INTO rs_default_task INDEX 1. ENDMETHOD. METHOD get_instance. IF mo_instance IS NOT BOUND. CREATE OBJECT mo_instance. ENDIF. ro_instance = mo_instance. ENDMETHOD. METHOD reset. DATA: ls_default_task TYPE e070use. IF mv_is_set_by_abapgit = abap_false. " if the default transport request task isn't set " by us there is nothing to do. RETURN. ENDIF. CLEAR mv_is_set_by_abapgit. ls_default_task = get( ). IF ls_default_task IS NOT INITIAL. clear( ls_default_task ). ENDIF. restore( ). ENDMETHOD. METHOD restore. IF ms_save IS INITIAL. " There wasn't a default transport request before " so we needn't restore anything. RETURN. ENDIF. CALL FUNCTION 'TR_TASK_SET' EXPORTING iv_order = ms_save-ordernum iv_task = ms_save-tasknum EXCEPTIONS invalid_username = 1 invalid_category = 2 invalid_client = 3 invalid_validdays = 4 invalid_order = 5 invalid_task = 6 OTHERS = 7. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from TR_TASK_SET { sy-subrc }| ). ENDIF. ENDMETHOD. METHOD set. " checks whether object changes of the package are rerorded in transport " requests. If true then we set the default task, so that no annoying " transport request popups are shown while deserializing. IF mv_is_set_by_abapgit = abap_true. " the default transport request task is already set by us " -> no reason to do it again. RETURN. ENDIF. IF iv_transport IS INITIAL. zcx_abapgit_exception=>raise( |No transport request was supplied| ). ENDIF. set_internal( iv_transport ). mv_is_set_by_abapgit = abap_true. ENDMETHOD. METHOD set_internal. CALL FUNCTION 'TR_TASK_SET' EXPORTING iv_order = iv_transport * iv_task = iv_task EXCEPTIONS invalid_username = 1 invalid_category = 2 invalid_client = 3 invalid_validdays = 4 invalid_order = 5 invalid_task = 6 OTHERS = 7. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from TR_TASK_SET { sy-subrc }| ). ENDIF. ENDMETHOD. METHOD store. ms_save = get( ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 12286, 62, 7645, 634, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 4810, 3824, 6158, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 651, 62, 39098, 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, 39098, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 12286, 62, 7645, 634, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 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, 900, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 7645, 634, 41876, 491, 74, 38890, 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, 13259, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42715, 12, 26947, 25, 198, 220, 220, 220, 220, 220, 6941, 62, 39098, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 12286, 62, 7645, 634, 764, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 285, 85, 62, 271, 62, 2617, 62, 1525, 62, 397, 499, 18300, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 13845, 62, 21928, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 304, 43509, 1904, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 3650, 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, 11169, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 628, 220, 220, 220, 220, 220, 651, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 12286, 62, 35943, 8, 41876, 304, 43509, 1904, 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, 900, 62, 32538, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 7645, 634, 41876, 491, 74, 38890, 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, 1598, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 12286, 62, 35943, 41876, 304, 43509, 1904, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 12286, 62, 7645, 634, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 1598, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 5446, 62, 51, 1921, 42, 62, 19535, 2767, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 29460, 220, 220, 220, 220, 220, 796, 318, 62, 12286, 62, 35943, 12, 29460, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 2875, 220, 220, 220, 220, 220, 220, 220, 220, 796, 318, 62, 12286, 62, 35943, 12, 585, 1142, 388, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 35943, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 318, 62, 12286, 62, 35943, 12, 35943, 22510, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 38969, 519, 220, 220, 220, 220, 220, 220, 220, 796, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 12515, 62, 29460, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 12515, 62, 2875, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 12515, 62, 35943, 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, 796, 604, 13, 628, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 930, 12331, 422, 7579, 62, 51, 1921, 42, 62, 19535, 2767, 1391, 827, 12, 7266, 6015, 1782, 91, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 3650, 7, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 13, 628, 220, 220, 220, 42865, 25, 300, 83, 62, 68, 43509, 1904, 41876, 49053, 9795, 43679, 3963, 304 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*/---------------------------------------------------------------------\ *| This file is part of SAPlink. | *| | *| Copyright 2014 SAPlink project members | *| | *| Licensed under the Apache License, Version 2.0 (the "License"); | *| you may not use this file except in compliance with the License. | *| You may obtain a copy of the License at | *| | *| http://www.apache.org/licenses/LICENSE-2.0 | *| | *| Unless required by applicable law or agreed to in writing, software | *| distributed under the License is distributed on an "AS IS" BASIS, | *| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | *| implied. | *| See the License for the specific language governing permissions and | *| limitations under the License. | *\---------------------------------------------------------------------/ */---------------------------------------------------------------------\ *| / __ \ | | (_) | | | | *| | / \/ ___ _ __ | |_ _ __ _| |__ _ _| |_ ___ _ __ ___ | *| | | / _ \| '_ \| __| '__| | '_ \| | | | __/ _ \| '__/ __| | *| | \__/\ (_) | | | | |_| | | | |_) | |_| | || (_) | | \__ \ | *| \____/\___/|_| |_|\__|_| |_|_.__/ \__,_|\__\___/|_| |___/ | *|---------------------------------------------------------------------| *| Lead Developers : ed herrmann | *| [email protected] | *| dan mcweeney | *| [email protected] | *|---------------------------------------------------------------------| *| For a full list of contributors visit: | *| | *| project homepage: http://saplink.org | *| discussion group: | *| https://cw.sdn.sap.com/cw/groups/saplink?view=discussions| *| project wiki: https://wiki.sdn.sap.com/wiki/display/ABAP/SAPlink| *\---------------------------------------------------------------------/ REPORT zsaplink. CLASS zsaplink DEFINITION LOAD. " Convenience for older SAP-Releases */------------------------DATA----------------------------\ TABLES: sscrfields, e071, e07t. TYPE-POOLS: icon, slis, sabc, stms, trwbo. TYPES: BEGIN OF t_plugin, object TYPE ko100-object, text TYPE ko100-text, END OF t_plugin. TYPES: BEGIN OF t_objecttable, classname TYPE string, object TYPE ko100-object, text TYPE ko100-text, END OF t_objecttable. TYPES: BEGIN OF t_nuggetobject, objtype TYPE string, objname TYPE string, exists TYPE flag, END OF t_nuggetobject. *addition of package data **** Read all objects of the package TYPES: BEGIN OF t_objects_package, select TYPE char1, object TYPE tadir-object, object_txt TYPE string, obj_name TYPE tadir-obj_name, srcsystem TYPE tadir-srcsystem, down_flag TYPE char1, status TYPE char1, msg TYPE string, END OF t_objects_package. TYPES: BEGIN OF t_requestobject, object TYPE e071-object, obj_name TYPE e071-obj_name, END OF t_requestobject. TYPES: tt_requestobject TYPE TABLE OF t_requestobject. TYPES: BEGIN OF gts_versions_delta, classname TYPE classname, version_ixml TYPE zsaplink=>gts_version_info, version_sap TYPE zsaplink=>gts_version_info, END OF gts_versions_delta. DATA: objects_package TYPE TABLE OF t_objects_package, packageline TYPE t_objects_package, tabletypeline TYPE ko105, tabletypesin TYPE TABLE OF ko105, tabletypesout TYPE tr_object_texts, tabletypeoutline TYPE ko100, lt_fieldcat TYPE slis_t_fieldcat_alv, ls_fieldcat LIKE LINE OF lt_fieldcat, ls_layout TYPE slis_layout_alv, lv_count TYPE i, lv_pers TYPE i, *end of addition for packages *addition of Transport it_requestobject TYPE TABLE OF t_requestobject, wa_requestobject TYPE t_requestobject, *end of addition for transport pluginline TYPE t_plugin, pluginlist TYPE TABLE OF t_plugin, hidid(3) TYPE c, currenttab TYPE string, isslinkee(1) TYPE c VALUE ' ', objecttable TYPE TABLE OF t_objecttable, objectline TYPE t_objecttable, _objname TYPE string, _objtype TYPE string, nuggetname TYPE string, targetobject TYPE REF TO zsaplink, xml TYPE string, excclass TYPE REF TO zcx_saplink, errormsg TYPE string, statusmsg TYPE string, _pluginexists TYPE flag, _objectexists TYPE flag, _flag TYPE flag, errorflag TYPE flag, it_nuggetobject TYPE TABLE OF t_nuggetobject, wa_nuggetobject TYPE t_nuggetobject, deffilename TYPE string, retfilename TYPE string, retpath TYPE string, retfullpath TYPE string, retuseract TYPE i, retfiletable TYPE filetable, retrc TYPE sysubrc, retuseraction TYPE i, nugg TYPE REF TO zsaplink_nugget, stemp TYPE string, anxmldoc TYPE REF TO if_ixml_document, ixmldocument TYPE REF TO if_ixml_document, foo TYPE REF TO data, len TYPE i, l_marker TYPE i, l_offset TYPE i, l_total_offset TYPE i, es_selected_request TYPE trwbo_request_header, es_selected_task TYPE trwbo_request_header, iv_organizer_type TYPE trwbo_calling_organizer, is_selection TYPE trwbo_selection, gt_versions_delta TYPE STANDARD TABLE OF gts_versions_delta WITH NON-UNIQUE DEFAULT KEY, gv_version_line TYPE sytabix. FIELD-SYMBOLS: <obj> LIKE LINE OF objects_package. *\--------------------------------------------------------------------/ */------------------------SELECTION SCREEN----------------------------\ SELECTION-SCREEN BEGIN OF TABBED BLOCK tabb FOR 20 LINES. SELECTION-SCREEN TAB (17) TEXT-tb2 USER-COMMAND nugg DEFAULT SCREEN 120. SELECTION-SCREEN TAB (17) TEXT-tb1 USER-COMMAND obj DEFAULT SCREEN 110. SELECTION-SCREEN END OF BLOCK tabb. SELECTION-SCREEN SKIP. SELECTION-SCREEN COMMENT /1(60) cmt_ver MODIF ID ver. SELECTION-SCREEN COMMENT /1(60) cmt_url MODIF ID ver. *Slinkee tab SELECTION-SCREEN BEGIN OF SCREEN 110 AS SUBSCREEN. SELECTION-SCREEN BEGIN OF BLOCK main WITH FRAME. SELECTION-SCREEN BEGIN OF BLOCK splk WITH FRAME TITLE TEXT-slk. PARAMETERS import TYPE c RADIOBUTTON GROUP 2 DEFAULT 'X' USER-COMMAND updown. PARAMETERS export TYPE c RADIOBUTTON GROUP 2. SELECTION-SCREEN END OF BLOCK splk. SELECTION-SCREEN BEGIN OF BLOCK opt WITH FRAME TITLE TEXT-opt. PARAMETERS filename(300) LOWER CASE TYPE c MODIF ID did. PARAMETERS slpkg TYPE tadir-devclass MODIF ID did. PARAMETERS overwr TYPE c AS CHECKBOX MODIF ID did. PARAMETERS plugin TYPE ko100-object MODIF ID uid. PARAMETERS objname(40) TYPE c MODIF ID uid. SELECTION-SCREEN END OF BLOCK opt. SELECTION-SCREEN END OF BLOCK main. SELECTION-SCREEN END OF SCREEN 110. *Nugget tab SELECTION-SCREEN BEGIN OF SCREEN 120 AS SUBSCREEN. SELECTION-SCREEN BEGIN OF BLOCK main2 WITH FRAME. SELECTION-SCREEN BEGIN OF BLOCK splk2 WITH FRAME TITLE TEXT-slk. PARAMETERS nugi TYPE c RADIOBUTTON GROUP 3 DEFAULT 'X' USER-COMMAND updown. PARAMETERS nugd TYPE c RADIOBUTTON GROUP 3. SELECTION-SCREEN ULINE. PARAMETERS nugc TYPE c RADIOBUTTON GROUP 3. PARAMETERS nuga TYPE c RADIOBUTTON GROUP 3. PARAMETERS nugp TYPE c RADIOBUTTON GROUP 3. PARAMETERS nugr TYPE c RADIOBUTTON GROUP 3. SELECTION-SCREEN END OF BLOCK splk2. SELECTION-SCREEN BEGIN OF BLOCK opt2 WITH FRAME TITLE TEXT-opt. PARAMETERS nuggnam(300) TYPE c MODIF ID nnm. PARAMETERS nplugin TYPE ko100-object MODIF ID npg. PARAMETERS nobjnam(40) TYPE c MODIF ID npg. * parameters nPlugIn type KO100-object modif id npg. PARAMETER package TYPE tadir-devclass MODIF ID npc. SELECT-OPTIONS reqnugg FOR e071-trkorr NO INTERVALS NO-EXTENSION MODIF ID rnm. PARAMETER nugfile(300) LOWER CASE TYPE c MODIF ID nfl. PARAMETERS novrwr TYPE c AS CHECKBOX MODIF ID now. SELECTION-SCREEN END OF BLOCK opt2. SELECTION-SCREEN END OF BLOCK main2. SELECTION-SCREEN END OF SCREEN 120. *\--------------------------------------------------------------------/ */----------------------selection screen events-----------------------\ INITIALIZATION. CALL METHOD zsaplink=>getplugins( CHANGING objecttable = objecttable ). IMPORT isslinkee FROM MEMORY ID 'ISSLNK'. IF isslinkee = 'X'. tabb-dynnr = 110. tabb-activetab = 'OBJ'. ELSE. tabb-dynnr = 120. tabb-activetab = 'NUGG'. ENDIF. AT SELECTION-SCREEN. CASE sscrfields-ucomm. WHEN 'OBJ'. isslinkee = 'X'. WHEN 'NUGG'. isslinkee = ' '. ENDCASE. EXPORT isslinkee TO MEMORY ID 'ISSLNK'. AT SELECTION-SCREEN OUTPUT. *** hide/show fields according to current selection IF import = 'X'. hidid = 'UID'. IF slpkg IS INITIAL. slpkg = '$TMP'. ENDIF. ELSEIF export = 'X'. hidid = 'DID'. ENDIF. " Set default devclass for import IF nugi = 'X' AND package IS INITIAL. package = '$TMP'. ENDIF. LOOP AT SCREEN. IF screen-group1 = hidid. screen-active = '0'. screen-invisible = '1'. ENDIF. MODIFY SCREEN. ENDLOOP. LOOP AT SCREEN. IF nugc = 'X'. IF screen-group1 = 'NNM'. screen-active = '1'. screen-invisible = '0'. MODIFY SCREEN. ELSEIF screen-group1 = 'NPG' OR screen-group1 = 'NFL' OR screen-group1 = 'NOW' OR screen-group1 = 'NPC' OR screen-group1 = 'RNM'. screen-active = '0'. screen-invisible = '1'. MODIFY SCREEN. ENDIF. ELSEIF nugi = 'X'. IF screen-group1 = 'NFL' OR screen-group1 = 'NOW'. screen-active = '1'. screen-invisible = '0'. MODIFY SCREEN. ELSEIF screen-group1 = 'NNM' OR screen-group1 ='NPG' OR screen-group1 = 'RNM'. screen-active = '0'. screen-invisible = '1'. MODIFY SCREEN. ENDIF. ELSEIF nuga = 'X'. IF screen-group1 = 'NFL' OR screen-group1 = 'NPG'. screen-active = '1'. screen-invisible = '0'. MODIFY SCREEN. ELSEIF screen-group1 = 'NNM' OR screen-group1 = 'NOW' OR screen-group1 = 'NPC' OR screen-group1 = 'RNM'. screen-active = '0'. screen-invisible = '1'. MODIFY SCREEN. ENDIF. ELSEIF nugp = 'X'. IF screen-group1 = 'NFL' OR screen-group1 = 'NPC'. screen-active = '1'. screen-invisible = '0'. MODIFY SCREEN. ELSEIF screen-group1 = 'NNM' OR screen-group1 = 'NOW' OR screen-group1 = 'NPG' OR screen-group1 = 'RNM'. screen-active = '0'. screen-invisible = '1'. MODIFY SCREEN. ENDIF. ELSEIF nugd = 'X'. IF screen-group1 = 'NFL'. screen-active = '1'. screen-invisible = '0'. MODIFY SCREEN. ELSEIF screen-group1 = 'NNM' OR screen-group1 = 'NPG' OR screen-group1 = 'NOW' OR screen-group1 = 'NPC' OR screen-group1 = 'RNM'. screen-active = '0'. screen-invisible = '1'. MODIFY SCREEN. ENDIF. ELSEIF nugr = 'X'. IF screen-group1 = 'NFL' OR screen-group1 = 'RNM'. screen-active = '1'. screen-invisible = '0'. MODIFY SCREEN. ELSEIF screen-group1 = 'NNM' OR screen-group1 = 'NOW' OR screen-group1 = 'NPG' OR screen-group1 = 'NPC'. screen-active = '0'. screen-invisible = '1'. MODIFY SCREEN. ENDIF. ENDIF. ENDLOOP. *** value request for input fields AT SELECTION-SCREEN ON VALUE-REQUEST FOR plugin. REFRESH pluginlist. LOOP AT objecttable INTO objectline. MOVE-CORRESPONDING objectline TO pluginline. APPEND pluginline TO pluginlist. ENDLOOP. CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'OBJECT' window_title = 'Installed Plugins'(inp) dynpprog = sy-repid dynpnr = '1000' dynprofield = 'PLUGIN' value_org = 'S' TABLES value_tab = pluginlist EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3. AT SELECTION-SCREEN ON VALUE-REQUEST FOR nplugin. REFRESH pluginlist. LOOP AT objecttable INTO objectline. MOVE-CORRESPONDING objectline TO pluginline. APPEND pluginline TO pluginlist. ENDLOOP. CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'OBJECT' window_title = 'Installed Plugins'(inp) dynpprog = sy-repid dynpnr = '1000' dynprofield = 'NPLUGIN' value_org = 'S' TABLES value_tab = pluginlist EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3. AT SELECTION-SCREEN ON VALUE-REQUEST FOR filename. CALL METHOD cl_gui_frontend_services=>file_open_dialog EXPORTING multiselection = abap_false file_filter = '*.slnk' default_extension = 'slnk' CHANGING file_table = retfiletable rc = retrc user_action = retuseraction. READ TABLE retfiletable INTO filename INDEX 1. AT SELECTION-SCREEN ON VALUE-REQUEST FOR nugfile. CALL METHOD cl_gui_frontend_services=>file_open_dialog EXPORTING multiselection = abap_false file_filter = 'Nugget files (*.nugg)|*.nugg|' default_extension = 'nugg' CHANGING file_table = retfiletable rc = retrc user_action = retuseraction. READ TABLE retfiletable INTO nugfile INDEX 1. * begin-->search help on objname according to selected plugin * provided by Michael Diehl AT SELECTION-SCREEN ON VALUE-REQUEST FOR objname. DATA l_object_type LIKE euobj-id. * l_object_type = plugin. "commented ewH *ewH-->get most current value of plugin param PERFORM get_current_screen_value USING 'PLUGIN' '0110' CHANGING l_object_type. IF l_object_type IS NOT INITIAL. * rrq --> START of implementation for object specific value help DATA: temp_object TYPE ko100-object. * move the object type to a field like the ObjectTable expects temp_object = l_object_type. READ TABLE objecttable INTO objectline WITH KEY object = temp_object. IF sy-subrc = 0. * if it is found...intanciate it so you can call the right value help CREATE OBJECT targetobject TYPE (objectline-classname) EXPORTING name = _objname. _objtype = l_object_type. CALL METHOD targetobject->valuehelp EXPORTING i_objtype = _objtype RECEIVING e_objname = _objname. objname = _objname. ENDIF. *commented out...moved logic to instance method of ZSAPLINK. to be overwritten by *objects that don't use the repository Info_system f4 Function * CALL FUNCTION 'REPOSITORY_INFO_SYSTEM_F4' * EXPORTING * object_type = l_object_type * object_name = objname * suppress_selection = 'X' * use_alv_grid = '' * without_personal_list = '' * IMPORTING * object_name_selected = objname * EXCEPTIONS * cancel = 1. *<-- rrq end of implentation for object specific value help ENDIF. AT SELECTION-SCREEN ON VALUE-REQUEST FOR nobjnam. DATA l_object_type LIKE euobj-id. * l_object_type = nplugin. "commented ewH *ewH-->get most current value of plugin param PERFORM get_current_screen_value USING 'NPLUGIN' '0120' CHANGING l_object_type. IF l_object_type IS NOT INITIAL. * rrq --> START of implementation for object specific value help DATA: temp_object TYPE ko100-object. * move the object type to a field like the ObjectTable expects temp_object = l_object_type. READ TABLE objecttable INTO objectline WITH KEY object = temp_object. IF sy-subrc = 0. * if it is found...intanciate it so you can call the right value help CREATE OBJECT targetobject TYPE (objectline-classname) EXPORTING name = _objname. _objtype = l_object_type. CALL METHOD targetobject->valuehelp EXPORTING i_objtype = _objtype RECEIVING e_objname = _objname. nobjnam = _objname. ENDIF. *commented out...moved logic to instance method of ZSAPLINK. to be overwritten by *objects that don't use the repository Info_system f4 Function * CALL FUNCTION 'REPOSITORY_INFO_SYSTEM_F4' * EXPORTING * object_type = l_object_type * object_name = objname * suppress_selection = 'X' * use_alv_grid = '' * without_personal_list = '' * IMPORTING * object_name_selected = objname * EXCEPTIONS * cancel = 1. *<-- rrq end of implentation for object specific value help ENDIF. * <--end of search help on objname according to selected plugin * provided by Michael Diehl AT SELECTION-SCREEN ON VALUE-REQUEST FOR reqnugg-low. iv_organizer_type = 'W'. * is_selection-reqstatus = 'R'. CALL FUNCTION 'TR_PRESENT_REQUESTS_SEL_POPUP' EXPORTING iv_organizer_type = iv_organizer_type is_selection = is_selection IMPORTING es_selected_request = es_selected_request es_selected_task = es_selected_task. reqnugg-low = es_selected_request-trkorr. AT LINE-SELECTION. IF gv_version_line IS NOT INITIAL. PERFORM show_version_info. CLEAR gv_version_line. ENDIF. *\--------------------------------------------------------------------/ */----------------------main------------------------------------------\ START-OF-SELECTION. CLEAR: errormsg, statusmsg. ************* S L I N K E E ************* IF isslinkee IS NOT INITIAL. _objname = objname. IF export = 'X'. * Export slinkee PERFORM slinkee_export. ELSEIF import = 'X'. * Import slinkee PERFORM slinkee_import. ENDIF. ELSE. ************* N U G G E T ************* IF nugc = 'X'. * create empty nugget PERFORM nugget_create. ELSEIF nuga = 'X'. * add object to nugget PERFORM nugget_add_object. ELSEIF nugi = 'X'. * import nugget PERFORM nugget_import. ELSEIF nugd = 'X'. * display objects in a nugget PERFORM nugget_display. ELSEIF nugp = 'X'. * add package to nugget PERFORM nugget_add_package. * rrq: enhancement 42--> ELSEIF nugr = 'X'. * add objects from a transport to a nugget PERFORM nugget_add_from_transport. ENDIF. ENDIF. *\--------------------------------------------------------------------/ */----------------------displayXMLOnScreen----------------------------\ FORM displayxmlonscreen USING xmlstring TYPE string. DATA printxmldoc TYPE REF TO cl_xml_document. DATA rc TYPE sysubrc. CREATE OBJECT printxmldoc. rc = printxmldoc->parse_string( xmlstring ). CALL METHOD printxmldoc->display( ). ENDFORM. "displayXMLOnScreen *\--------------------------------------------------------------------/ */----------------------downloadXMLToLM-------------------------------\ FORM downloadxmltolm USING deffilename TYPE string xmlstring TYPE string CHANGING _errorflag TYPE flag. DATA retfilename TYPE string. DATA retpath TYPE string. DATA retfullpath TYPE string. DATA retuseract TYPE i. DATA deffilename_cleaned TYPE string. CLEAR _errorflag. "*--- get rid of namespace slashes ---* deffilename_cleaned = deffilename. REPLACE ALL OCCURRENCES OF '/' IN deffilename_cleaned WITH '.'. CALL METHOD cl_gui_frontend_services=>file_save_dialog EXPORTING default_file_name = deffilename_cleaned CHANGING filename = retfilename path = retpath fullpath = retfullpath user_action = retuseract. IF retuseract <> 0. _errorflag = 'X'. ELSE. PERFORM putonmachine USING retfullpath xmlstring. ENDIF. ENDFORM. "downloadXMLToLM *\--------------------------------------------------------------------/ */------------------------putOnMachine--------------------------------\ FORM putonmachine USING fullpath TYPE string xmlstring TYPE string. *rrq: issue 43--> replace binary with char table *old code removed, use subversion for recovery *types: begin of t_char, * maxChar(65535) type C, * end of t_char. *data: tempTable_char type table of t_char, * DATA: temptable_char TYPE table_of_strings, * tempstring TYPE string. " Gregor Wolf, 2012-02-19: Switch to binary download as it's done in ZAKE DATA xlm_xstring TYPE xstring. DATA temptable TYPE w3mimetabtype. DATA bin_filesize TYPE i. IF retuseract = 0. " Gregor Wolf, 2012-02-19: " Independent of Server OS the download should always use Windows Linebreaks REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>cr_lf IN xmlstring WITH cl_abap_char_utilities=>newline. REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>newline IN xmlstring WITH cl_abap_char_utilities=>cr_lf. CALL FUNCTION 'SCMS_STRING_TO_XSTRING' EXPORTING text = xmlstring IMPORTING buffer = xlm_xstring. CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING buffer = xlm_xstring IMPORTING output_length = bin_filesize TABLES binary_tab = temptable. cl_gui_frontend_services=>gui_download( EXPORTING bin_filesize = bin_filesize filename = fullpath filetype = 'BIN' CHANGING data_tab = temptable EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 not_supported_by_gui = 22 error_no_gui = 23 OTHERS = 24 ). IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. * SPLIT xmlstring AT cl_abap_char_utilities=>cr_lf * INTO TABLE temptable_char. * CALL METHOD cl_gui_frontend_services=>gui_download * EXPORTING * filename = fullpath * filetype = 'DAT' * CHANGING * data_tab = temptable_char. ENDIF. *<--rrq: issue 43 ENDFORM. "putOnMachine *\--------------------------------------------------------------------/ */----------------------uploadXMLFromLM-------------------------------\ FORM uploadxmlfromlm USING p_filename xmlstring TYPE string . DATA retfiletable TYPE filetable. DATA retrc TYPE sysubrc. DATA retuseraction TYPE i. DATA temptable TYPE table_of_strings. DATA temptable_bin TYPE TABLE OF x255. DATA filelength TYPE i. DATA l_filename TYPE string. l_filename = p_filename. CALL METHOD cl_gui_frontend_services=>gui_upload EXPORTING filename = l_filename filetype = 'BIN' " File Type Binary IMPORTING filelength = filelength CHANGING data_tab = temptable_bin EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 gui_refuse_filetransfer = 4 invalid_type = 5 no_authority = 6 unknown_error = 7 bad_data_format = 8 header_not_allowed = 9 separator_not_allowed = 10 header_too_long = 11 unknown_dp_error = 12 access_denied = 13 dp_out_of_memory = 14 disk_full = 15 dp_timeout = 16 not_supported_by_gui = 17 error_no_gui = 18 OTHERS = 19. IF sy-subrc <> 0. CASE sy-subrc. WHEN '1'. PERFORM writemessage USING 'E' 'File Open Error'. sy-subrc = 4. EXIT. WHEN OTHERS. PERFORM writemessage USING 'E' 'Unknown Error occured'. sy-subrc = 4. EXIT. ENDCASE. ENDIF. CALL FUNCTION 'SCMS_BINARY_TO_STRING' EXPORTING input_length = filelength IMPORTING text_buffer = xmlstring TABLES binary_tab = temptable_bin EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. " Just catch the sy-subrc when there was nothing replaced sy-subrc = 0. ENDIF. * call method CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD * exporting * FILENAME = l_fileName * changing * data_tab = tempTable. * PERFORM createstring USING temptable CHANGING xmlstring. ENDFORM. "uploadXMLFromLM *\--------------------------------------------------------------------/ **/----------------------createString----------------------------------\ *FORM createstring * USING * temptable TYPE table_of_strings * CHANGING * bigstring TYPE string. * DATA stemp TYPE string. * LOOP AT temptable INTO stemp. * CONCATENATE bigstring stemp cl_abap_char_utilities=>cr_lf * INTO bigstring. * ENDLOOP. * *ENDFORM. "createString **\--------------------------------------------------------------------/ */----------------------installObject---------------------------------\ FORM installobject USING l_ixmldocument TYPE REF TO if_ixml_document l_overwriteflag TYPE flag VALUE(l_package) TYPE tadir-devclass CHANGING l_errorflag TYPE flag l_message TYPE string. DATA l_objname TYPE string. DATA l_objtype TYPE string. * DATA l_objtable TYPE TABLE OF t_objecttable. " del Stefan STATICS l_objtable TYPE TABLE OF t_objecttable. " ins Stefan DATA l_objline TYPE t_objecttable. DATA l_targetobject TYPE REF TO zsaplink. DATA l_installobject TYPE string. DATA l_excclass TYPE REF TO zcx_saplink. CLEAR l_errorflag. TRY. CALL METHOD zsaplink=>getobjectinfofromixmldoc EXPORTING ixmldocument = l_ixmldocument IMPORTING objtypename = l_objtype objname = l_objname. CATCH zcx_saplink. l_errorflag = 'X'. l_message = 'Error retrieving object information ixml document'. ENDTRY. IF l_objtable IS INITIAL. " ins Stefan CALL METHOD zsaplink=>getplugins( CHANGING objecttable = l_objtable ). ENDIF. " ins Stefan READ TABLE l_objtable INTO l_objline WITH KEY object = l_objtype. IF sy-subrc <> 0. CONCATENATE 'There is no installed SAPlink plugin for object type' l_objtype l_objline-text INTO l_message SEPARATED BY space. l_errorflag = 'X'. ELSE. CREATE OBJECT l_targetobject TYPE (l_objline-classname) EXPORTING name = l_objname. IF l_package IS INITIAL. l_package = '$TMP'. ENDIF. TRY. l_installobject = l_targetobject->createobjectfromixmldoc( ixmldocument = l_ixmldocument devclass = l_package "Allow overwrite of default devclass. overwrite = l_overwriteflag ). * bad times CATCH zcx_saplink INTO l_excclass. l_message = l_excclass->get_text( ). l_errorflag = 'X'. ENDTRY. * good times IF l_installobject IS NOT INITIAL. CONCATENATE 'Installed: ' l_objtype '-' l_installobject INTO l_message SEPARATED BY space. ENDIF. ENDIF. ENDFORM. "installObject *\--------------------------------------------------------------------/ */----------------------confirmOverwrite------------------------------\ FORM confirmoverwrite USING l_objinfo TYPE string CHANGING l_answer TYPE flag. DATA l_message TYPE string. DATA l_title TYPE string. CLEAR l_answer. l_title = 'Overwrite confirm. Proceed with CAUTION!'. CONCATENATE 'You have selected to overwrite originals.' l_objinfo 'will be overwritten. Are you sure?' INTO l_message SEPARATED BY space. CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = l_title text_question = l_message text_button_1 = 'Yes' text_button_2 = 'Yes to all' default_button = '1' display_cancel_button = 'X' IMPORTING answer = l_answer. ENDFORM. "confirmOverwrite *\--------------------------------------------------------------------/ */----------------------checkObject-----------------------------------\ FORM checkobject USING l_ixmldocument TYPE REF TO if_ixml_document CHANGING l_objtype TYPE string l_objname TYPE string l_pluginexists TYPE flag l_objectexists TYPE flag. zsaplink=>checkobject( EXPORTING i_ixmldocument = l_ixmldocument " IF_IXML_DOCUMENT IMPORTING e_objtype = l_objtype e_objname = l_objname e_pluginexists = l_pluginexists " General Flag e_objectexists = l_objectexists " General Flag ). ENDFORM. "checkObject *\--------------------------------------------------------------------/ */---------------------get_current_screen_value-----------------------\ FORM get_current_screen_value USING l_screen_field l_screen_number CHANGING l_screen_value. DATA it_dynpfields TYPE STANDARD TABLE OF dynpread. DATA wa_dynpfields TYPE dynpread. wa_dynpfields-fieldname = l_screen_field. APPEND wa_dynpfields TO it_dynpfields. CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-cprog dynumb = l_screen_number translate_to_upper = 'X' * REQUEST = ' ' * PERFORM_CONVERSION_EXITS = ' ' * PERFORM_INPUT_CONVERSION = ' ' * DETERMINE_LOOP_INDEX = ' ' TABLES dynpfields = it_dynpfields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 invalid_parameter = 7 undefind_error = 8 double_conversion = 9 stepl_not_found = 10 OTHERS = 11. IF sy-subrc <> 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ELSE. READ TABLE it_dynpfields INTO wa_dynpfields WITH KEY fieldname = l_screen_field. IF sy-subrc = 0. l_screen_value = wa_dynpfields-fieldvalue. ENDIF. ENDIF. ENDFORM. " get_current_screen_value */---------------------writeMessage-----------------------\ FORM writemessage USING VALUE(p_type) TYPE sy-msgty VALUE(p_msg). CASE p_type. WHEN 'E' OR 'A' OR 'X'. WRITE / icon_led_red AS ICON. WHEN 'W'. WRITE / icon_led_yellow AS ICON. WHEN OTHERS. WRITE / icon_led_green AS ICON. ENDCASE. WRITE p_msg. ENDFORM. "WriteMessage */-------------------------pf_status_set-------------------\ FORM pf_status_set USING rt_extab TYPE slis_t_extab. SET PF-STATUS 'SELOBJ' EXCLUDING rt_extab. ENDFORM. "pf_status_set */-------------------------user_command_user-------------------\ FORM user_command_user USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield. CASE r_ucomm. WHEN 'TAKE'. rs_selfield-exit = 'X'. ENDCASE. ENDFORM. "user_command_user *---------------build_fieldCatalog---------------------------------* FORM build_fieldcatalog . *** Display list to select the objects for downloading ls_fieldcat-fieldname = 'OBJECT'. ls_fieldcat-seltext_l = 'Object/Plugin'. APPEND ls_fieldcat TO lt_fieldcat. ls_fieldcat-fieldname = 'OBJECT_TXT'. ls_fieldcat-seltext_l = 'Object/Plugin'. APPEND ls_fieldcat TO lt_fieldcat. ls_fieldcat-fieldname = 'OBJ_NAME'. ls_fieldcat-seltext_l = 'Object name'. APPEND ls_fieldcat TO lt_fieldcat. ls_fieldcat-fieldname = 'DOWN_FLAG'. ls_fieldcat-seltext_s = 'Plugin'. ls_fieldcat-seltext_l = 'Plugin available'. APPEND ls_fieldcat TO lt_fieldcat. ls_fieldcat-fieldname = 'MSG'. ls_fieldcat-seltext_s = 'Message'. ls_fieldcat-seltext_l = 'Status Message'. APPEND ls_fieldcat TO lt_fieldcat. ls_layout-box_fieldname = 'SELECT'. ls_layout-f2code = 'MYPICK' . ls_layout-colwidth_optimize = 'X'. ls_layout-lights_fieldname = 'STATUS'. ENDFORM. " build_fieldCatalog *&--------------------------------------------------------------------* *& Form ShowInitialGrid FORM showinitialgrid TABLES p_objects. CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = 'ZSAPLINK' i_callback_pf_status_set = 'PF_STATUS_SET' i_callback_user_command = 'USER_COMMAND_USER' i_grid_title = 'Select objects' it_fieldcat = lt_fieldcat is_layout = ls_layout TABLES t_outtab = p_objects EXCEPTIONS OTHERS = 0. ENDFORM. " ShowInitialGrid *&---------------------------------------------------------------------* *& Form showResultsGrid FORM showresultsgrid TABLES p_objects. * ** Display results CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = 'ZSAPLINK' i_callback_user_command = 'USER_COMMAND_USER' it_fieldcat = lt_fieldcat i_grid_title = 'Download results' is_layout = ls_layout TABLES t_outtab = p_objects EXCEPTIONS OTHERS = 0. ENDFORM. " showResultsGrid *&---------------------------------------------------------------------* *& Form check_objects *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* * --> p1 text * <-- p2 text *----------------------------------------------------------------------* FORM check_objects . DATA: lo_object TYPE REF TO object, lo_saplink TYPE REF TO zsaplink, l_flag TYPE flag, l_name TYPE string. DATA: ptab TYPE abap_parmbind_tab, ptab_line TYPE abap_parmbind. LOOP AT objects_package ASSIGNING <obj>. * Check what can be downloaded and what can not. READ TABLE objecttable INTO objectline WITH KEY object = <obj>-object. IF sy-subrc = 0. * Validate if object is fully implemented and can be accessed REFRESH ptab. ptab_line-name = 'NAME'. ptab_line-kind = cl_abap_objectdescr=>exporting. l_name = <obj>-obj_name. GET REFERENCE OF l_name INTO ptab_line-value. INSERT ptab_line INTO TABLE ptab. CREATE OBJECT lo_object TYPE (objectline-classname) PARAMETER-TABLE ptab. lo_saplink ?= lo_object. l_flag = lo_saplink->checkexists( ). * Plug-in exists... set flag and make selected by default IF l_flag IS NOT INITIAL. <obj>-down_flag = 'X'. <obj>-select = 'X'. ELSE. DELETE TABLE objects_package FROM <obj>. CONTINUE. ENDIF. ELSE. <obj>-msg = 'No Plugin Available'. <obj>-down_flag = ' '. ENDIF. * get texts REFRESH tabletypesin. tabletypeline-object = <obj>-object. APPEND tabletypeline TO tabletypesin. CALL FUNCTION 'TRINT_OBJECT_TABLE' TABLES tt_types_in = tabletypesin tt_types_out = tabletypesout. LOOP AT tabletypesout INTO tabletypeoutline. <obj>-object = tabletypeoutline-object. <obj>-object_txt = tabletypeoutline-text. ENDLOOP. ENDLOOP. SORT objects_package BY down_flag DESCENDING object ASCENDING. ENDFORM. " check_objects *&---------------------------------------------------------------------* *& Form CreateEmptyNugget *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* * --> p1 text * <-- p2 text *----------------------------------------------------------------------* FORM createemptynugget USING p_nuggname. ixmldocument = zsaplink_nugget=>createemptyxml( nuggetname = p_nuggname ). xml = zsaplink=>convertixmldoctostring( ixmldocument ). CONCATENATE 'NUGG_' p_nuggname '.nugg' INTO stemp. CLEAR errorflag. PERFORM downloadxmltolm USING stemp xml CHANGING errorflag. IF errorflag IS NOT INITIAL. EXIT. ENDIF. ENDFORM. " CreateEmptyNugget *rrq: enhancement 3 & 42--> *&---------------------------------------------------------------------* *& Form addObjectstoNugget *&---------------------------------------------------------------------* FORM addobjectstonugget . PERFORM check_objects. PERFORM build_fieldcatalog. PERFORM showinitialgrid TABLES objects_package. IF sy-ucomm <> 'TAKE'. RETURN. ENDIF . * Downloading CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 1 text = 'Upload file'. PERFORM uploadxmlfromlm USING nugfile xml. ixmldocument = zsaplink=>convertstringtoixmldoc( xml ). TRY. CREATE OBJECT nugg EXPORTING ixmldocument = ixmldocument. CATCH zcx_saplink. MESSAGE 'Internal error createing nugget ' TYPE 'I'. RETURN. ENDTRY. DESCRIBE TABLE objects_package LINES lv_count. LOOP AT objects_package ASSIGNING <obj> WHERE down_flag = 'X' AND select = 'X'. lv_pers = sy-tabix * 100 / lv_count . CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = lv_pers text = <obj>-obj_name. _objname = <obj>-obj_name. "nobjNam. stemp = <obj>-object. "nplugin. TRY. nugg->addobjecttonugget( objname = _objname objtype = stemp ). CATCH zcx_saplink INTO excclass. errormsg = excclass->get_text( ). * perform writeMessage using 'E' errorMsg. <obj>-msg = errormsg. <obj>-status = 1. CONTINUE. ENDTRY. <obj>-msg = 'Added to nugget'. <obj>-status = 3. ENDLOOP. READ TABLE objects_package INTO packageline WITH KEY status = 3. "ewH:do not download if none added IF sy-subrc = 0. ixmldocument = nugg->createixmldocfromnugget( ). xml = zsaplink=>convertixmldoctostring( ixmldocument ). stemp = nugfile. PERFORM putonmachine USING stemp xml. ENDIF. PERFORM showresultsgrid TABLES objects_package. ENDFORM. " addObjectstoNugget * <--rrq: enhancement 3 & 42 *&---------------------------------------------------------------------* *& Form WRITE_PLUGIN_VERSION_INFO *&---------------------------------------------------------------------* * Inform of updated versions of plugins if information found in file *----------------------------------------------------------------------* FORM write_plugin_version_info USING io_ixml_document TYPE REF TO if_ixml_document iv_object_type TYPE clike. DATA: rootnode TYPE REF TO if_ixml_node, rootattr TYPE REF TO if_ixml_named_node_map, attrnode TYPE REF TO if_ixml_node, nodename TYPE string, attributelist TYPE REF TO if_ixml_named_node_map, nodeiterator TYPE REF TO if_ixml_node_iterator, attributenode TYPE REF TO if_ixml_node, value TYPE string, name TYPE string, ls_version_delta LIKE LINE OF gt_versions_delta. FIELD-SYMBOLS:<value> TYPE any, <ls_objecttable> LIKE LINE OF objecttable. *--------------------------------------------------------------------* * Get Version information from class *--------------------------------------------------------------------* READ TABLE objecttable ASSIGNING <ls_objecttable> WITH KEY object = iv_object_type. CHECK sy-subrc = 0. " No corresponding plugin --> we already display a message "missing plugin" ls_version_delta-version_sap = zsaplink=>get_version_info_static( <ls_objecttable>-classname ). *--------------------------------------------------------------------* * Get Version information from ixml *--------------------------------------------------------------------* CHECK io_ixml_document IS BOUND. " no need to continue if this is no valid ixml document rootnode ?= io_ixml_document->get_root_element( ). attributelist = rootnode->get_attributes( ). CHECK attributelist IS BOUND. nodeiterator = attributelist->create_iterator( ). CHECK nodeiterator IS BOUND. attributenode = nodeiterator->get_next( ). WHILE attributenode IS NOT INITIAL. name = attributenode->get_name( ). ASSIGN COMPONENT name OF STRUCTURE ls_version_delta-version_ixml TO <value>. IF sy-subrc = 0. <value> = attributenode->get_value( ). ENDIF. attributenode = nodeiterator->get_next( ). ENDWHILE. *--------------------------------------------------------------------* * Compare versions *--------------------------------------------------------------------* ls_version_delta-classname = <ls_objecttable>-classname. * Major version IF ls_version_delta-version_ixml-zsaplink_plugin_major_version < ls_version_delta-version_sap-zsaplink_plugin_major_version. RETURN. " we have a newer version --> good ELSEIF ls_version_delta-version_ixml-zsaplink_plugin_major_version > ls_version_delta-version_sap-zsaplink_plugin_major_version. WRITE: 'Major update in plugin' COLOR 6, <ls_objecttable>-classname COLOR 3, '. Update of plugin necessary --> see information' COLOR 6, icon_information AS ICON HOTSPOT ON. APPEND ls_version_delta TO gt_versions_delta. gv_version_line = sy-tabix. HIDE gv_version_line. CLEAR gv_version_line. RETURN. ENDIF. * Major version equal - now check minor version IF ls_version_delta-version_ixml-zsaplink_plugin_minor_version < ls_version_delta-version_sap-zsaplink_plugin_minor_version. RETURN. " we have a newer version --> good ELSEIF ls_version_delta-version_ixml-zsaplink_plugin_minor_version > ls_version_delta-version_sap-zsaplink_plugin_minor_version. WRITE: 'Minor update in plugin' COLOR 7, <ls_objecttable>-classname COLOR 3, '. Update of plugin recommended --> see information' COLOR 7, icon_information AS ICON HOTSPOT ON. APPEND ls_version_delta TO gt_versions_delta. gv_version_line = sy-tabix. HIDE gv_version_line. CLEAR gv_version_line. RETURN. ENDIF. * Major and minor version equal - build-numer doesn't matter here ENDFORM. " WRITE_PLUGIN_VERSION_INFO *&---------------------------------------------------------------------* *& Form SHOW_VERSION_INFO *&---------------------------------------------------------------------* FORM show_version_info. FIELD-SYMBOLS: <ls_version_delta> LIKE LINE OF gt_versions_delta. READ TABLE gt_versions_delta ASSIGNING <ls_version_delta> INDEX gv_version_line. CHECK sy-subrc = 0. WRITE:/ 'New version of class', <ls_version_delta>-classname COLOR 6,'found'. SKIP 2. IF <ls_version_delta>-version_ixml-zsaplink_plugin_major_version > <ls_version_delta>-version_sap-zsaplink_plugin_major_version. WRITE:/ 'Major version - Installed in SAP:' COLOR 7, <ls_version_delta>-version_sap-zsaplink_plugin_major_version COLOR 7, / 'Major version - Found in file:' COLOR 7 INTENSIFIED OFF, <ls_version_delta>-version_ixml-zsaplink_plugin_major_version COLOR 7. ELSEIF <ls_version_delta>-version_ixml-zsaplink_plugin_minor_version > <ls_version_delta>-version_sap-zsaplink_plugin_minor_version. WRITE:/ 'Minor version - Installed in SAP:' COLOR 7, <ls_version_delta>-version_sap-zsaplink_plugin_minor_version COLOR 7, / 'Minor version - Found in file:' COLOR 7 INTENSIFIED OFF, <ls_version_delta>-version_ixml-zsaplink_plugin_minor_version COLOR 7. ENDIF. WRITE:/ 'Build - Installed in SAP:' COLOR 5 INTENSIFIED OFF, <ls_version_delta>-version_sap-zsaplink_plugin_build_version, / 'Build - Found in file:' COLOR 5 INTENSIFIED OFF, <ls_version_delta>-version_ixml-zsaplink_plugin_build_version. SKIP. WRITE:/ 'Info - Part1 - Found in file:' COLOR 5 INTENSIFIED OFF, <ls_version_delta>-version_ixml-zsaplink_plugin_info1, / 'Info - Part2 - Found in file:' COLOR 5 INTENSIFIED OFF, <ls_version_delta>-version_ixml-zsaplink_plugin_info2, / 'Info - Part3 - Found in file:' COLOR 5 INTENSIFIED OFF, <ls_version_delta>-version_ixml-zsaplink_plugin_info3, / 'Info - Part4 - Found in file:' COLOR 5 INTENSIFIED OFF, <ls_version_delta>-version_ixml-zsaplink_plugin_info4, / 'Info - Part5 - Found in file:' COLOR 5 INTENSIFIED OFF, <ls_version_delta>-version_ixml-zsaplink_plugin_info5. ENDFORM. " SHOW_VERSION_INFO *&---------------------------------------------------------------------* *& Form SLINKEE_EXPORT *&---------------------------------------------------------------------* FORM slinkee_export. IF plugin IS INITIAL. MESSAGE s208(00) WITH 'object type required'. EXIT. ELSEIF _objname IS INITIAL. MESSAGE s208(00) WITH 'object name required'. EXIT. ENDIF. READ TABLE objecttable INTO objectline WITH KEY object = plugin. IF sy-subrc <> 0. CONCATENATE 'Plugin for object type'(plo) plugin 'is not installed on this system'(noi) INTO errormsg SEPARATED BY space. PERFORM writemessage USING 'E' errormsg. EXIT. ENDIF. CREATE OBJECT targetobject TYPE (objectline-classname) EXPORTING name = _objname. TRY. ixmldocument = targetobject->createixmldocfromobject( ). CATCH zcx_saplink INTO excclass. errormsg = excclass->get_text( ). PERFORM writemessage USING 'E' errormsg. ENDTRY. IF errormsg IS NOT INITIAL. EXIT. ENDIF. xml = zsaplink=>convertixmldoctostring( ixmldocument ). CONCATENATE plugin '_' _objname '.slnk' INTO deffilename. CLEAR errorflag. PERFORM downloadxmltolm USING deffilename xml CHANGING errorflag. IF errorflag IS NOT INITIAL. MESSAGE s208(00) WITH 'Action cancelled'. EXIT. ENDIF. PERFORM displayxmlonscreen USING xml. ENDFORM. " SLINKEE_EXPORT *&---------------------------------------------------------------------* *& Form SLINKEE_IMPORT *&---------------------------------------------------------------------* FORM slinkee_import . IF filename IS INITIAL. MESSAGE s208(00) WITH 'slinkee filename required'. EXIT. ENDIF. PERFORM uploadxmlfromlm USING filename xml. IF sy-subrc <> 0. EXIT. ENDIF. ixmldocument = zsaplink=>convertstringtoixmldoc( xml ). * run some checks before install PERFORM checkobject USING ixmldocument CHANGING _objtype _objname _pluginexists _objectexists. MOVE _objtype TO plugin. READ TABLE objecttable INTO objectline WITH KEY object = plugin. IF _objtype = 'NUGG'. MESSAGE s208(00) WITH 'use nugget tab for nugget import'. EXIT. ELSEIF _pluginexists IS INITIAL. CONCATENATE 'Plugin for object type'(plo) _objtype 'is not installed on this system'(noi) INTO errormsg SEPARATED BY space. PERFORM writemessage USING 'E' errormsg. EXIT. ELSEIF _objectexists = 'X' AND overwr IS INITIAL. CONCATENATE _objtype objectline-text _objname 'already exists. Use overwrite orginals option to replace' INTO errormsg SEPARATED BY space. PERFORM writemessage USING 'E' errormsg. EXIT. ELSEIF _objectexists = 'X' AND overwr = 'X'. CONCATENATE _objtype _objname INTO stemp SEPARATED BY space. PERFORM confirmoverwrite USING stemp CHANGING _flag. IF _flag = 'A'. "cancel PERFORM writemessage USING 'W' 'Import cancelled by user'. EXIT. ENDIF. ENDIF. * install object PERFORM installobject USING ixmldocument overwr slpkg CHANGING errorflag statusmsg. IF errorflag = 'X'. PERFORM writemessage USING 'E' statusmsg. EXIT. ELSE. PERFORM writemessage USING 'S' statusmsg. ENDIF. MESSAGE s208(00) WITH 'Import successful'. ENDFORM. " SLINKEE_IMPORT *&---------------------------------------------------------------------* *& Form NUGGET_CREATE *&---------------------------------------------------------------------* FORM nugget_create . IF nuggnam IS INITIAL. MESSAGE s208(00) WITH 'enter name of new nugget to be created'. EXIT. ENDIF. stemp = nuggnam. PERFORM createemptynugget USING stemp. ENDFORM. " NUGGET_CREATE *&---------------------------------------------------------------------* *& Form NUGGET_ADD_OBJECT *&---------------------------------------------------------------------* FORM nugget_add_object . IF nplugin IS INITIAL. MESSAGE s208(00) WITH 'object type required'. EXIT. ELSEIF nobjnam IS INITIAL. MESSAGE s208(00) WITH 'object name required'. EXIT. ELSEIF nugfile IS INITIAL. MESSAGE s208(00) WITH 'nugget filename required'. EXIT. ENDIF. READ TABLE objecttable INTO objectline WITH KEY object = nplugin. IF sy-subrc <> 0. CONCATENATE 'Plugin for object type'(plo) nplugin 'is not installed on this system'(noi) INTO errormsg SEPARATED BY space. PERFORM writemessage USING 'E' errormsg. EXIT. ENDIF. stemp = nuggnam. PERFORM uploadxmlfromlm USING nugfile xml. IF sy-subrc <> 0. EXIT. ENDIF. ixmldocument = zsaplink=>convertstringtoixmldoc( xml ). CREATE OBJECT nugg EXPORTING ixmldocument = ixmldocument. _objname = nobjnam. stemp = nplugin. TRY. nugg->addobjecttonugget( objname = _objname objtype = stemp ). CATCH zcx_saplink INTO excclass. errormsg = excclass->get_text( ). PERFORM writemessage USING 'E' errormsg. EXIT. ENDTRY. ixmldocument = nugg->createixmldocfromnugget( ). xml = zsaplink=>convertixmldoctostring( ixmldocument ). * concatenate nuggNam '.nugg' into sTemp. stemp = nugfile. PERFORM putonmachine USING stemp xml. ENDFORM. " NUGGET_ADD_OBJECT *&---------------------------------------------------------------------* *& Form NUGGET_IMPORT *&---------------------------------------------------------------------* FORM nugget_import . IF nugfile IS INITIAL. MESSAGE s208(00) WITH 'nugget filename required'. EXIT. ENDIF. PERFORM uploadxmlfromlm USING nugfile xml. IF sy-subrc <> 0. EXIT. ENDIF. ixmldocument = zsaplink=>convertstringtoixmldoc( xml ). nuggetname = zsaplink_nugget=>getnuggetinfo( ixmldocument ). CONCATENATE 'Start import of nugget' nuggetname INTO statusmsg SEPARATED BY space. PERFORM writemessage USING 'S' statusmsg. SKIP. CREATE OBJECT nugg EXPORTING ixmldocument = ixmldocument. * check for installed plugins CLEAR errorflag. REFRESH it_nuggetobject. anxmldoc = nugg->getnextobject( ). WHILE anxmldoc IS NOT INITIAL. CLEAR: _objtype, _objname, _pluginexists, _objectexists, wa_nuggetobject. PERFORM checkobject USING anxmldoc CHANGING _objtype _objname _pluginexists _objectexists. IF _pluginexists IS INITIAL. CONCATENATE 'Plugin for object type'(plo) _objtype 'is not installed on this system'(noi) INTO errormsg SEPARATED BY space. PERFORM writemessage USING 'E' errormsg. errorflag = 'X'. ELSEIF _objectexists = 'X' AND novrwr IS INITIAL. CONCATENATE _objtype _objname 'already exists. Use overwrite' 'orginals option to replace' INTO errormsg SEPARATED BY space. PERFORM writemessage USING 'W' errormsg. PERFORM write_plugin_version_info USING anxmldoc _objtype. errorflag = 'X'. ELSE. CONCATENATE _objtype _objname INTO errormsg SEPARATED BY space. PERFORM writemessage USING 'S' errormsg. PERFORM write_plugin_version_info USING anxmldoc _objtype. ENDIF. wa_nuggetobject-objtype = _objtype. wa_nuggetobject-objname = _objname. wa_nuggetobject-exists = _objectexists. APPEND wa_nuggetobject TO it_nuggetobject. anxmldoc = nugg->getnextobject( ). ENDWHILE. IF errorflag = 'X'. EXIT. ENDIF. * confirm overwrite LOOP AT it_nuggetobject INTO wa_nuggetobject WHERE exists = 'X'. CLEAR _flag. CONCATENATE wa_nuggetobject-objtype wa_nuggetobject-objname INTO stemp SEPARATED BY space. PERFORM confirmoverwrite USING stemp CHANGING _flag. IF _flag = '1'. "yes CONTINUE. ELSEIF _flag = '2'. "yes to all CLEAR errorflag. EXIT. ELSEIF _flag = 'A'. "cancel PERFORM writemessage USING 'W' 'Import cancelled by user'. errorflag = 'X'. EXIT. ENDIF. ENDLOOP. IF errorflag = 'X'. EXIT. ENDIF. * install nugg->reset( ). "reset nugget iterator anxmldoc = nugg->getnextobject( ). WHILE anxmldoc IS NOT INITIAL. CLEAR statusmsg. PERFORM installobject USING anxmldoc novrwr package CHANGING errorflag statusmsg. IF errorflag = 'X'. PERFORM writemessage USING 'E' statusmsg. EXIT. ELSE. PERFORM writemessage USING 'S' statusmsg. anxmldoc = nugg->getnextobject( ). ENDIF. ENDWHILE. IF errorflag = 'X'. EXIT. ENDIF. ENDFORM. " NUGGET_IMPORT *&---------------------------------------------------------------------* *& Form NUGGET_DISPLAY *&---------------------------------------------------------------------* FORM nugget_display . IF nugfile IS INITIAL. MESSAGE s208(00) WITH 'nugget filename required'. EXIT. ENDIF. PERFORM uploadxmlfromlm USING nugfile xml. IF sy-subrc <> 0. EXIT. ENDIF. ixmldocument = zsaplink=>convertstringtoixmldoc( xml ). TRY. nuggetname = zsaplink_nugget=>getnuggetinfo( ixmldocument ). CATCH zcx_saplink. WRITE:/ 'Internal error in nuggethandling - program aborted'. RETURN. ENDTRY. WRITE: / 'Object list for nugget ', nuggetname. SKIP. CREATE OBJECT nugg EXPORTING ixmldocument = ixmldocument. anxmldoc = nugg->getnextobject( ). IF anxmldoc IS INITIAL. errormsg = 'You have an empty Nugget'. PERFORM writemessage USING 'W' errormsg. EXIT. ENDIF. WHILE anxmldoc IS NOT INITIAL. TRY. CALL METHOD zsaplink=>getobjectinfofromixmldoc EXPORTING ixmldocument = anxmldoc IMPORTING objtypename = _objtype objname = _objname. CATCH zcx_saplink. errormsg = 'You have a corrupt Nugget'. PERFORM writemessage USING 'E' errormsg. EXIT. ENDTRY. CONCATENATE _objtype _objname INTO statusmsg SEPARATED BY space. PERFORM writemessage USING 'S' statusmsg. PERFORM write_plugin_version_info USING anxmldoc _objtype. anxmldoc = nugg->getnextobject( ). ENDWHILE. ENDFORM. " NUGGET_DISPLAY *&---------------------------------------------------------------------* *& Form NUGGET_ADD_PACKAGE *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* FORM nugget_add_package . * rrq: enhancement 3--> IF package IS INITIAL. MESSAGE s208(00) WITH 'package required'. EXIT. ENDIF. IF nugfile IS INITIAL. MESSAGE s208(00) WITH 'nugget filename required'. EXIT. ENDIF. "// Mar: Added logic discard deleted objects from Package - 10/05/2009 IF sy-saprl NE '701'. "// Mar: Added logic discard deleted objects from Package - 10/05/2009 SELECT object obj_name srcsystem " ##TOO_MANY_ITAB_FIELDS FROM tadir INTO CORRESPONDING FIELDS OF TABLE objects_package WHERE devclass EQ package AND pgmid EQ 'R3TR'. "// Mar: Added logic discard deleted objects from Package - 10/05/2009 ELSE. SELECT object obj_name srcsystem " ##TOO_MANY_ITAB_FIELDS FROM tadir INTO CORRESPONDING FIELDS OF TABLE objects_package WHERE devclass EQ package AND pgmid EQ 'R3TR' AND delflag NE 'X'. ENDIF. "// Mar: Added logic discard deleted objects from Package - 10/05/2009 IF sy-subrc <> 0. MESSAGE s208(00) WITH 'Package does not exist or empty'. RETURN. ENDIF. PERFORM addobjectstonugget. * <-- rrq: enhancement 3 ENDFORM. " NUGGET_ADD_PACKAGE *&---------------------------------------------------------------------* *& Form NUGGET_ADD_FROM_TRANSPORT *&---------------------------------------------------------------------* FORM nugget_add_from_transport . DATA: reqname TYPE string. DATA: l_trkorr TYPE e07t-trkorr, l_as4text TYPE e07t-as4text. IF nugfile IS INITIAL. MESSAGE s208(00) WITH 'nugget filename required'. EXIT. ENDIF. IF reqnugg[] IS INITIAL. MESSAGE s208(00) WITH 'Request number required'. EXIT. ENDIF. SELECT SINGLE trkorr FROM e070 INTO l_trkorr WHERE trkorr IN reqnugg. IF sy-subrc <> 0. MESSAGE s208(00) WITH 'Transport not found'. EXIT. ENDIF. SELECT SINGLE trkorr as4text FROM e07t INTO (l_trkorr, l_as4text) WHERE trkorr IN reqnugg AND langu EQ sy-langu. * ewH-->retrieve tasks as well as transports RANGES: ra_reqnugg FOR e070-trkorr. DATA: wa_trkorr TYPE e070-trkorr, it_trkorr TYPE TABLE OF e070-trkorr, wa_reqnugg LIKE LINE OF ra_reqnugg. SELECT trkorr FROM e070 INTO TABLE it_trkorr WHERE strkorr IN reqnugg. ra_reqnugg[] = reqnugg[]. LOOP AT it_trkorr INTO wa_trkorr. wa_reqnugg-sign = 'I'. wa_reqnugg-option = 'EQ'. wa_reqnugg-low = wa_trkorr. APPEND wa_reqnugg TO ra_reqnugg. ENDLOOP. * <--ewH SELECT object obj_name FROM e071 INTO TABLE it_requestobject * WHERE TRKORR in ReqNugg. WHERE trkorr IN ra_reqnugg "ewH AND pgmid = 'R3TR'. "ewH: don't need subobjects IF sy-subrc = 0. reqname = l_trkorr. ELSE. MESSAGE s208(00) WITH 'No R3TR objects in request'. EXIT. ENDIF. SORT it_requestobject. DELETE ADJACENT DUPLICATES FROM it_requestobject. LOOP AT it_requestobject INTO wa_requestobject. MOVE-CORRESPONDING wa_requestobject TO packageline. APPEND packageline TO objects_package. ENDLOOP. PERFORM addobjectstonugget. ENDFORM. " NUGGET_ADD_FROM_TRANSPORT
[ 16208, 10097, 30934, 59, 198, 9, 91, 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, 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, 15069, 1946, 48323, 8726, 1628, 1866, 220, 220, 220, 220, 220, 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, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 220, 220, 220, 220, 930, 198, 9, 91, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 220, 220, 220, 930, 198, 9, 91, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 220, 220, 220, 220, 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, 220, 220, 2638, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 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, 17486, 2672, 416, 9723, 1099, 393, 4987, 284, 287, 3597, 11, 3788, 930, 198, 9, 91, 9387, 739, 262, 13789, 318, 9387, 319, 281, 366, 1921, 3180, 1, 29809, 1797, 11, 220, 220, 930, 198, 9, 91, 42881, 34764, 11015, 6375, 7102, 49828, 11053, 3963, 15529, 509, 12115, 11, 2035, 4911, 393, 220, 220, 220, 220, 930, 198, 9, 91, 17142, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 198, 9, 91, 4091, 262, 13789, 329, 262, 2176, 3303, 15030, 21627, 290, 930, 198, 9, 91, 11247, 739, 262, 13789, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 198, 9, 59, 10097, 30934, 14, 198, 16208, 10097, 30934, 59, 198, 9, 91, 1220, 220, 11593, 3467, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 930, 220, 220, 220, 220, 220, 44104, 8, 930, 220, 220, 220, 220, 220, 220, 220, 220, 930, 930, 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, 930, 1220, 220, 3467, 14, 46444, 220, 4808, 11593, 930, 930, 62, 4808, 11593, 4808, 91, 930, 834, 220, 4808, 220, 220, 4808, 91, 930, 62, 46444, 220, 4808, 11593, 46444, 220, 220, 220, 220, 220, 220, 220, 220, 930, 198, 9, 91, 930, 930, 220, 220, 220, 1220, 4808, 3467, 91, 705, 62, 3467, 91, 11593, 91, 705, 834, 91, 930, 705, 62, 3467, 91, 930, 930, 930, 11593, 14, 4808, 3467, 91, 705, 834, 14, 11593, 91, 220, 220, 220, 220, 220, 220, 220, 930, 198, 9, 91, 930, 3467, 834, 14, 59, 44104, 8, 930, 930, 930, 930, 930, 62, 91, 930, 220, 930, 930, 930, 62, 8, 930, 930, 62, 91, 930, 8614, 44104, 8, 930, 930, 220, 3467, 834, 3467, 220, 220, 220, 220, 220, 220, 220, 930, 198, 9, 91, 220, 3467, 1427, 14, 59, 17569, 14, 91, 62, 91, 930, 62, 91, 59, 834, 91, 62, 91, 220, 930, 62, 91, 44807, 834, 14, 3467, 834, 11, 62, 91, 59, 834, 59, 17569, 14, 91, 62, 91, 220, 930, 17569, 14, 220, 220, 220, 220, 220, 220, 220, 930, 198, 9, 91, 10097, 650, 22831, 198, 9, 91, 20116, 34152, 1058, 1225, 607, 81, 9038, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
PROCESS BEFORE OUTPUT. MODULE %_INIT_PBO. MODULE %_PBO_REPORT. MODULE %_PF_STATUS. MODULE %_END_OF_PBO. PROCESS AFTER INPUT. MODULE %_BACK AT EXIT-COMMAND. MODULE %_INIT_PAI. FIELD !I_KNUMV MODULE %_I_KNUMV . FIELD !I_KPOSN MODULE %_I_KPOSN . FIELD !I_STUNR MODULE %_I_STUNR . FIELD !I_ZAEHK MODULE %_I_ZAEHK . CHAIN. FIELD I_KNUMV . FIELD I_KPOSN . FIELD I_STUNR . FIELD I_ZAEHK . MODULE %_END_OF_SCREEN. MODULE %_OK_CODE_1000. ENDCHAIN.
[ 4805, 4503, 7597, 38331, 16289, 30076, 13, 198, 198, 33365, 24212, 4064, 62, 1268, 2043, 62, 47, 8202, 13, 198, 198, 33365, 24212, 4064, 62, 47, 8202, 62, 2200, 15490, 13, 198, 198, 33365, 24212, 4064, 62, 42668, 62, 35744, 2937, 13, 198, 198, 33365, 24212, 4064, 62, 10619, 62, 19238, 62, 47, 8202, 13, 198, 198, 4805, 4503, 7597, 36050, 3268, 30076, 13, 628, 220, 33893, 4064, 62, 31098, 5161, 7788, 2043, 12, 9858, 44, 6981, 13, 628, 220, 33893, 4064, 62, 1268, 2043, 62, 4537, 40, 13, 198, 198, 44603, 5145, 40, 62, 29132, 5883, 53, 33893, 4064, 62, 40, 62, 29132, 5883, 53, 764, 198, 198, 44603, 5145, 40, 62, 42, 37997, 45, 33893, 4064, 62, 40, 62, 42, 37997, 45, 764, 198, 198, 44603, 5145, 40, 62, 2257, 4944, 49, 33893, 4064, 62, 40, 62, 2257, 4944, 49, 764, 198, 198, 44603, 5145, 40, 62, 57, 14242, 38730, 33893, 4064, 62, 40, 62, 57, 14242, 38730, 764, 198, 198, 3398, 29833, 13, 198, 220, 18930, 24639, 314, 62, 29132, 5883, 53, 764, 198, 220, 18930, 24639, 314, 62, 42, 37997, 45, 764, 198, 220, 18930, 24639, 314, 62, 2257, 4944, 49, 764, 198, 220, 18930, 24639, 314, 62, 57, 14242, 38730, 764, 198, 220, 33893, 4064, 62, 10619, 62, 19238, 62, 6173, 2200, 1677, 13, 198, 220, 33893, 4064, 62, 11380, 62, 34, 16820, 62, 12825, 13, 198, 10619, 3398, 29833, 13 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Include ZMIME_EDITOR_W3_C01 *&---------------------------------------------------------------------* CLASS lcl_smim DEFINITION FINAL. PUBLIC SECTION. TYPES: ty_wwwparams_tt TYPE STANDARD TABLE OF wwwparams WITH DEFAULT KEY. CONSTANTS: BEGIN OF gc_param_names, fileext TYPE w3_name VALUE 'fileextension', filesize TYPE w3_name VALUE 'filesize', filename TYPE w3_name VALUE 'filename', END OF gc_param_names. CLASS-METHODS: get_content IMPORTING is_smim TYPE ty_smim RETURNING VALUE(rv_content) TYPE string, save IMPORTING is_smim TYPE ty_smim iv_string TYPE string, find_param IMPORTING it_params TYPE ty_wwwparams_tt iv_name TYPE w3_name RETURNING VALUE(rv_value) TYPE string, update_param IMPORTING it_params TYPE ty_wwwparams_tt iv_name TYPE w3_name iv_value TYPE string RETURNING VALUE(rt_params) TYPE ty_wwwparams_tt. 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, relid TYPE wwwdata-relid, objid TYPE wwwdata-objid, ext TYPE string, 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, lv_file TYPE string, lv_ext TYPE string, lt_w3params TYPE lcl_smim=>ty_wwwparams_tt. SELECT obj_name FROM tadir INTO TABLE lt_tadir WHERE devclass = p_devc AND object = 'W3MI'. "#EC CI_GENBUFF IF sy-subrc <> 0. RETURN. ENDIF. LOOP AT lt_tadir INTO DATA(ls_tadir). lv_index = sy-tabix. ls_smim-relid = 'MI'. ls_smim-objid = ls_tadir-obj_name. SELECT SINGLE * INTO CORRESPONDING FIELDS OF ls_smim FROM wwwdata WHERE relid = ls_smim-relid AND objid = ls_smim-objid AND srtf2 = 0. IF sy-subrc <> 0. " does not exist CONTINUE. ENDIF. CALL FUNCTION 'WWWPARAMS_READ_ALL' EXPORTING type = ls_smim-relid objid = ls_smim-objid TABLES params = lt_w3params EXCEPTIONS entry_not_exists = 1. IF sy-subrc = 0. lv_file = lcl_smim=>find_param( it_params = lt_w3params iv_name = lcl_smim=>gc_param_names-filename ). lv_ext = to_upper( lcl_smim=>find_param( it_params = lt_w3params iv_name = lcl_smim=>gc_param_names-fileext ) ). lv_ext = lv_ext+1. IF sy-subrc <> 0. CONTINUE. ELSEIF 'CSS,JS,TEXT,TXT,HTM,HTML,XML' NS lv_ext. CONTINUE. ENDIF. ENDIF. APPEND VALUE #( key = |KEY{ lv_index }| text = |{ ls_smim-objid } ({ lv_file })| relid = ls_smim-relid objid = ls_smim-objid ext = lv_ext ) TO mt_smim. ENDLOOP. ENDMETHOD. ENDCLASS. CLASS lcl_smim IMPLEMENTATION. METHOD get_content. DATA: ls_key TYPE wwwdatatab, lt_w3mime TYPE STANDARD TABLE OF w3mime, lt_w3html TYPE STANDARD TABLE OF w3html, lt_w3params TYPE STANDARD TABLE OF wwwparams, lv_size TYPE i. MOVE-CORRESPONDING is_smim TO ls_key. CALL FUNCTION 'WWWDATA_IMPORT' EXPORTING key = ls_key TABLES mime = lt_w3mime html = lt_w3html EXCEPTIONS wrong_object_type = 1 import_error = 2 OTHERS = 3. IF sy-subrc <> 0. MESSAGE |Object { ls_key-objid } not found| TYPE 'S' DISPLAY LIKE 'E'. RETURN. ENDIF. CALL FUNCTION 'WWWPARAMS_READ_ALL' EXPORTING type = ls_key-relid objid = ls_key-objid TABLES params = lt_w3params EXCEPTIONS entry_not_exists = 1 OTHERS = 2. IF sy-subrc <> 0. MESSAGE |Object parameters { ls_key-objid } not found| TYPE 'S' DISPLAY LIKE 'E'. RETURN. ENDIF. lv_size = find_param( it_params = lt_w3params iv_name = gc_param_names-filesize ). CALL FUNCTION 'SCMS_BINARY_TO_STRING' EXPORTING input_length = lv_size encoding = '4110' IMPORTING text_buffer = rv_content TABLES binary_tab = lt_w3mime EXCEPTIONS failed = 1 OTHERS = 2. IF sy-subrc <> 0. MESSAGE |Error converting object content { ls_key-objid }| TYPE 'S' DISPLAY LIKE 'E'. RETURN. ENDIF. ENDMETHOD. METHOD save. DATA: lv_string TYPE string, lv_xstring TYPE xstring, lt_w3mime TYPE STANDARD TABLE OF w3mime, lt_w3html TYPE STANDARD TABLE OF w3html, lt_w3params TYPE STANDARD TABLE OF wwwparams, lv_size TYPE i, ls_key TYPE wwwdatatab. MOVE-CORRESPONDING is_smim TO ls_key. lv_string = iv_string. REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>cr_lf IN lv_string WITH cl_abap_char_utilities=>newline. CALL FUNCTION 'SCMS_STRING_TO_XSTRING' EXPORTING text = lv_string encoding = '4110' IMPORTING buffer = lv_xstring EXCEPTIONS failed = 1 OTHERS = 2. IF sy-subrc <> 0. MESSAGE |Error converting object content { ls_key-objid }| TYPE 'S' DISPLAY LIKE 'E'. RETURN. ENDIF. CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING buffer = lv_xstring IMPORTING output_length = lv_size TABLES binary_tab = lt_w3mime EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. MESSAGE |Error converting object content { ls_key-objid }| TYPE 'S' DISPLAY LIKE 'E'. RETURN. ENDIF. CALL FUNCTION 'WWWPARAMS_READ_ALL' EXPORTING type = ls_key-relid objid = ls_key-objid TABLES params = lt_w3params EXCEPTIONS entry_not_exists = 1 OTHERS = 2. IF sy-subrc <> 0. MESSAGE |Object parameters { ls_key-objid } not found| TYPE 'S' DISPLAY LIKE 'E'. RETURN. ENDIF. lt_w3params = update_param( it_params = lt_w3params iv_name = gc_param_names-filesize iv_value = |{ lv_size }| ). CALL FUNCTION 'WWWPARAMS_UPDATE' TABLES params = lt_w3params EXCEPTIONS update_error = 1 OTHERS = 2. IF sy-subrc <> 0. MESSAGE |Error saving object parameters { ls_key-objid }| TYPE 'S' DISPLAY LIKE 'E'. RETURN. ENDIF. ls_key-tdate = sy-datum. ls_key-ttime = sy-uzeit. ls_key-chname = sy-uname. ls_key-devclass = p_devc. CALL FUNCTION 'WWWDATA_EXPORT' EXPORTING key = ls_key TABLES mime = lt_w3mime html = lt_w3html EXCEPTIONS wrong_object_type = 1 export_error = 2 OTHERS = 3. IF sy-subrc <> 0. MESSAGE |Error saving object content { ls_key-objid }| TYPE 'S' DISPLAY LIKE 'E'. RETURN. ENDIF. ENDMETHOD. METHOD find_param. READ TABLE it_params ASSIGNING FIELD-SYMBOL(<ls_param>) WITH KEY name = iv_name. IF sy-subrc = 0. rv_value = <ls_param>-value. ENDIF. ENDMETHOD. METHOD update_param. rt_params = it_params. READ TABLE rt_params ASSIGNING FIELD-SYMBOL(<ls_param>) WITH KEY name = iv_name. IF sy-subrc = 0. <ls_param>-value = iv_value. ENDIF. ENDMETHOD. ENDCLASS. CLASS lcl_editor DEFINITION FINAL. PUBLIC SECTION. CLASS-METHODS: init IMPORTING iv_source_type TYPE string DEFAULT 'TXT', save, is_dirty RETURNING VALUE(rv_dirty) TYPE abap_bool, switch IMPORTING is_smim TYPE ty_smim, string_to_tab IMPORTING iv_string TYPE string RETURNING VALUE(rt_string) TYPE string_table, tab_to_string IMPORTING it_string TYPE string_table RETURNING VALUE(rv_string) TYPE string. PRIVATE SECTION. CLASS-DATA: ms_smim TYPE ty_smim, mv_newline TYPE string. ENDCLASS. CLASS lcl_editor IMPLEMENTATION. METHOD init. CREATE OBJECT go_editor EXPORTING parent = go_splitter->bottom_right_container max_number_chars = 1000. go_editor->set_enable( abap_false ). go_editor->set_readonly_mode( cl_gui_sourceedit=>true ). go_editor->set_toolbar_mode( cl_gui_sourceedit=>true ). go_editor->set_source_type( iv_source_type ). go_editor->create_document( ). ENDMETHOD. 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( ). IF lv_status = 0. rv_dirty = abap_false. ELSE. rv_dirty = abap_true. ENDIF. ENDMETHOD. METHOD save. DATA: lt_string TYPE string_table. DATA: lv_string TYPE string. IF is_dirty( ) = abap_false. MESSAGE 'Nothing changed'(005) TYPE 'S'. RETURN. ENDIF. go_editor->get_text( IMPORTING table = lt_string ). cl_gui_cfw=>flush( ). lcl_smim=>save( is_smim = ms_smim iv_string = tab_to_string( lt_string ) ). MESSAGE 'Saved'(003) TYPE 'S'. go_editor->set_textmodified_status( ). 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. CASE ms_smim-ext. WHEN 'XML'. init( 'XML' ). WHEN OTHERS. init( 'TXT' ). ENDCASE. go_editor->set_enable( abap_true ). go_editor->set_readonly_mode( cl_gui_sourceedit=>false ). lv_content = lcl_smim=>get_content( ms_smim ). go_editor->set_text( string_to_tab( lv_content ) ). go_editor->set_focus( go_editor ). ENDMETHOD. METHOD string_to_tab. FIND cl_abap_char_utilities=>cr_lf IN iv_string. IF sy-subrc = 0. SPLIT iv_string AT cl_abap_char_utilities=>cr_lf INTO TABLE rt_string. mv_newline = cl_abap_char_utilities=>cr_lf. ELSE. SPLIT iv_string AT cl_abap_char_utilities=>newline INTO TABLE rt_string. mv_newline = cl_abap_char_utilities=>newline. ENDIF. ENDMETHOD. METHOD tab_to_string. CONCATENATE LINES OF it_string INTO rv_string IN CHARACTER MODE SEPARATED BY mv_newline. 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, 54, 18, 62, 34, 486, 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, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 2503, 37266, 62, 926, 41876, 49053, 9795, 43679, 3963, 7324, 37266, 13315, 5550, 38865, 35374, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 308, 66, 62, 17143, 62, 14933, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2393, 2302, 220, 41876, 266, 18, 62, 3672, 26173, 8924, 705, 7753, 2302, 3004, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 3696, 1096, 41876, 266, 18, 62, 3672, 26173, 8924, 705, 16624, 1096, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 29472, 41876, 266, 18, 62, 3672, 26173, 8924, 705, 34345, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 308, 66, 62, 17143, 62, 14933, 13, 628, 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, 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, 11, 198, 220, 220, 220, 220, 220, 1064, 62, 17143, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 340, 62, 37266, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 2503, 37266, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 266, 18, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 8367, 8, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 4296, 62, 17143, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 340, 62, 37266, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 2503, 37266, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 266, 18, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 8367, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 17034, 62, 37266, 8, 41876, 1259, 62, 2503, 37266, 62, 926, 13, 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, 41876, 31557, 62, 17440, 2539, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 823, 312, 41876, 7324, 7890, 12, 2411, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26181, 312, 41876, 7324, 7890, 12, 26801, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1070, 220, 220, 41876, 4731, 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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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ui_injector DEFINITION PUBLIC CREATE PRIVATE . PUBLIC SECTION. CLASS-METHODS set_popups IMPORTING !ii_popups TYPE REF TO zif_abapgit_popups . CLASS-METHODS set_tag_popups IMPORTING !ii_tag_popups TYPE REF TO zif_abapgit_tag_popups . CLASS-METHODS set_gui_functions IMPORTING !ii_gui_functions TYPE REF TO zif_abapgit_gui_functions . CLASS-METHODS set_gui_services IMPORTING !ii_gui_services TYPE REF TO zif_abapgit_gui_services . CLASS-METHODS get_dummy_gui_services RETURNING VALUE(ri_gui_services) TYPE REF TO zif_abapgit_gui_services . CLASS-METHODS set_html_viewer IMPORTING !ii_html_viewer TYPE REF TO zif_abapgit_html_viewer . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ZCL_ABAPGIT_UI_INJECTOR IMPLEMENTATION. METHOD get_dummy_gui_services. ri_gui_services = lcl_gui_services_dummy=>create( ). ENDMETHOD. METHOD set_gui_functions. zcl_abapgit_ui_factory=>gi_gui_functions = ii_gui_functions. ENDMETHOD. METHOD set_gui_services. zcl_abapgit_ui_factory=>gi_gui_services = ii_gui_services. ENDMETHOD. METHOD set_html_viewer. zcl_abapgit_ui_factory=>gi_html_viewer = ii_html_viewer. ENDMETHOD. METHOD set_popups. zcl_abapgit_ui_factory=>gi_popups = ii_popups. ENDMETHOD. METHOD set_tag_popups. zcl_abapgit_ui_factory=>gi_tag_popups = ii_tag_popups. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 9019, 62, 259, 752, 273, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 4810, 3824, 6158, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 900, 62, 12924, 4739, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 12924, 4739, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 12924, 4739, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 900, 62, 12985, 62, 12924, 4739, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 12985, 62, 12924, 4739, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 12985, 62, 12924, 4739, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 900, 62, 48317, 62, 12543, 2733, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 48317, 62, 12543, 2733, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 12543, 2733, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 900, 62, 48317, 62, 30416, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 48317, 62, 30416, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 30416, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 651, 62, 67, 13513, 62, 48317, 62, 30416, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 48317, 62, 30416, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 30416, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 900, 62, 6494, 62, 1177, 263, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 6494, 62, 1177, 263, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 62, 1177, 263, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 10080, 62, 1268, 23680, 1581, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 651, 62, 67, 13513, 62, 48317, 62, 30416, 13, 628, 220, 220, 220, 374, 72, 62, 48317, 62, 30416, 796, 300, 565, 62, 48317, 62, 30416, 62, 67, 13513, 14804, 17953, 7, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 900, 62, 48317, 62, 12543, 2733, 13, 628, 220, 220, 220, 1976, 565, 62, 397, 499, 18300, 62, 9019, 62, 69, 9548, 14804, 12397, 62, 48317, 62, 12543, 2733, 796, 21065, 62, 48317, 62, 12543, 2733, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 900, 62, 48317, 62, 30416, 13, 628, 220, 220, 220, 1976, 565, 62, 397, 499, 18300, 62, 9019, 62, 69, 9548, 14804, 12397, 62, 48317, 62, 30416, 796, 21065, 62, 48317, 62, 30416, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 900, 62, 6494, 62, 1177, 263, 13, 628, 220, 220, 220, 1976, 565, 62, 397, 499, 18300, 62, 9019, 62, 69, 9548, 14804, 12397, 62, 6494, 62, 1177, 263, 796, 21065, 62, 6494, 62, 1177, 263, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 900, 62, 12924, 4739, 13, 628, 220, 220, 220, 1976, 565, 62, 397, 499, 18300, 62, 9019, 62, 69, 9548, 14804, 12397, 62, 12924, 4739, 796, 21065, 62, 12924, 4739, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 900, 62, 12985, 62, 12924, 4739, 13, 628, 220, 220, 220, 1976, 565, 62, 397, 499, 18300, 62, 9019, 62, 69, 9548, 14804, 12397, 62, 12985, 62, 12924, 4739, 796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 1, 1, 1 ]
FUNCTION z_mm_read_assets . *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" VALUE(IV_BE_CO_CODE) TYPE MMPUR_D_BE_COCODE *" VALUE(IV_ANLN1) TYPE ANLN1 OPTIONAL *" VALUE(ITR_ANLKL) TYPE RANGE_ANLKL_IN_T OPTIONAL *" VALUE(ITR_AKTIV) TYPE DATE_T_RANGE OPTIONAL *" EXPORTING *" VALUE(ET_ASSET) TYPE ZTMM_ASSET *"---------------------------------------------------------------------- DATA(lv_destination) = zcl_mm_cproc_pr=>retrieve_destination( iv_be_co_code ). DATA lt_options TYPE STANDARD TABLE OF rfc_db_opt. DATA lt_fields TYPE STANDARD TABLE OF rfc_db_fld. DATA lt_data TYPE STANDARD TABLE OF tab512. DATA lt_sel TYPE rsdri_t_range. DATA lv_where_clause TYPE string. IF iv_anln1 IS NOT INITIAL AND iv_anln1 <> 'null'. APPEND VALUE #( chanm = 'ANLN1' sign = 'I' compop = 'EQ' low = iv_anln1 ) TO lt_sel. ENDIF. LOOP AT itr_anlkl ASSIGNING FIELD-SYMBOL(<ls_anlkl>). APPEND VALUE #( chanm = 'ANLKL' sign = <ls_anlkl>-sign compop = <ls_anlkl>-option low = <ls_anlkl>-low high = <ls_anlkl>-high ) TO lt_sel. ENDLOOP. LOOP AT itr_aktiv ASSIGNING FIELD-SYMBOL(<ls_aktiv>). APPEND VALUE #( chanm = 'AKTIV' sign = <ls_aktiv>-sign compop = <ls_aktiv>-option low = <ls_aktiv>-low high = <ls_aktiv>-high ) TO lt_sel. ENDLOOP. CALL FUNCTION 'RSAN_UT_FILTER_BUILD_SQL_WHERE' EXPORTING i_t_sel = lt_sel IMPORTING e_where_clause = lv_where_clause. CALL FUNCTION 'RKD_WORD_WRAP' EXPORTING textline = CONV char30k( lv_where_clause ) outputlen = 72 TABLES out_lines = lt_options EXCEPTIONS outputlen_too_large = 1 OTHERS = 2. lt_fields = VALUE #( ( fieldname = 'ANLN1' ) ( fieldname = 'ANLN2' ) ( fieldname = 'ANLKL' ) ( fieldname = 'TXT50' ) ( fieldname = 'AKTIV' ) ). CALL FUNCTION 'RFC_READ_TABLE' DESTINATION lv_destination EXPORTING query_table = 'MMPUR_V_ASSET' delimiter = '|' TABLES options = lt_options fields = lt_fields data = lt_data EXCEPTIONS table_not_available = 1 table_without_data = 2 option_not_valid = 3 field_not_valid = 4 not_authorized = 5 data_buffer_exceeded = 6 OTHERS = 7. LOOP AT lt_data ASSIGNING FIELD-SYMBOL(<ls_data>). APPEND INITIAL LINE TO et_asset ASSIGNING FIELD-SYMBOL(<ls_asset>). SPLIT <ls_data>-wa AT '|' INTO <ls_asset>-anln1 <ls_asset>-anln2 <ls_asset>-anlkl <ls_asset>-txt50 <ls_asset>-aktiv. ENDLOOP. ENDFUNCTION.
[ 42296, 4177, 2849, 1976, 62, 3020, 62, 961, 62, 19668, 764, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 14565, 26491, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 3824, 62, 12473, 62, 8220, 62, 34, 16820, 8, 41876, 220, 337, 7378, 4261, 62, 35, 62, 12473, 62, 34, 4503, 16820, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 3824, 62, 1565, 43, 45, 16, 8, 41876, 220, 3537, 43, 45, 16, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 2043, 49, 62, 1565, 43, 42, 43, 8, 41876, 220, 371, 27746, 62, 1565, 43, 42, 43, 62, 1268, 62, 51, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 2043, 49, 62, 10206, 51, 3824, 8, 41876, 220, 360, 6158, 62, 51, 62, 49, 27746, 39852, 2849, 1847, 198, 9, 1, 220, 7788, 15490, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 2767, 62, 10705, 2767, 8, 41876, 220, 1168, 51, 12038, 62, 10705, 2767, 198, 9, 1, 10097, 23031, 628, 220, 42865, 7, 6780, 62, 16520, 1883, 8, 796, 1976, 565, 62, 3020, 62, 66, 36942, 62, 1050, 14804, 1186, 30227, 62, 16520, 1883, 7, 21628, 62, 1350, 62, 1073, 62, 8189, 6739, 628, 220, 42865, 300, 83, 62, 25811, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 374, 16072, 62, 9945, 62, 8738, 13, 198, 220, 42865, 300, 83, 62, 25747, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 374, 16072, 62, 9945, 62, 69, 335, 13, 198, 220, 42865, 300, 83, 62, 7890, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 7400, 25836, 13, 628, 220, 42865, 300, 83, 62, 741, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 44608, 7553, 62, 83, 62, 9521, 13, 198, 220, 42865, 300, 85, 62, 3003, 62, 565, 682, 41876, 4731, 13, 628, 220, 16876, 21628, 62, 272, 18755, 16, 3180, 5626, 3268, 2043, 12576, 5357, 21628, 62, 272, 18755, 16, 1279, 29, 705, 8423, 4458, 198, 220, 220, 220, 43504, 10619, 26173, 8924, 1303, 7, 442, 272, 76, 220, 796, 705, 1565, 43, 45, 16, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1051, 220, 220, 796, 705, 40, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 552, 404, 796, 705, 36, 48, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1877, 220, 220, 220, 796, 21628, 62, 272, 18755, 16, 1267, 5390, 300, 83, 62, 741, 13, 198, 220, 23578, 5064, 13, 198, 220, 17579, 3185, 5161, 340, 81, 62, 272, 75, 41582, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 7278, 62, 272, 75, 41582, 29, 737, 198, 220, 220, 220, 43504, 10619, 26173, 8924, 1303, 7, 442, 272, 76, 220, 796, 705, 1565, 43, 42, 43, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1051, 220, 220, 796, 1279, 7278, 62, 272, 75, 41582, 29, 12, 12683, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 552, 404, 796, 1279, 7278, 62, 272, 75, 41582, 29, 12, 18076, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1877, 220, 220, 220, 796, 1279, 7278, 62, 272, 75, 41582, 29, 12, 9319, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1029, 220, 220, 796, 1279, 7278, 62, 272, 75, 41582, 29, 12, 8929, 1267, 5390, 300, 83, 62, 741, 13, 198, 220, 23578, 21982, 3185, 13, 198, 220, 17579, 3185, 5161, 340, 81, 62, 461, 83, 452, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 7278, 62, 461, 83, 452, 29, 737, 198, 220, 220, 220, 43504, 10619, 26173, 8924, 1303, 7, 442, 272, 76, 220, 796, 705, 10206, 51, 3824, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1051, 220, 220, 796, 1279, 7278, 62, 461, 83, 452, 29, 12, 12683, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 552, 404, 796, 1279, 7278, 62, 461, 83, 452, 29, 12, 18076, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1877, 220, 220, 220, 796, 1279, 7278, 62, 461, 83, 452, 29, 12, 9319, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1029, 220, 220, 796, 1279, 7278, 62, 461, 83, 452, 29, 12, 8929, 1267, 5390, 300, 83, 62, 741, 13, 198, 220, 23578, 21982, 3185, 13, 628, 220, 42815, 29397, 4177, 2849, 705, 6998, 1565, 62, 3843, 62, 46700, 5781, 62, 19499, 26761, 62, 17861, 62, 47357, 6, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 1312, 62, 83, 62, 741, 220, 220, 220, 220, 220, 220, 220, 796, 300, 83, 62, 741, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 304, 62, 3003, 62, 565, 682, 796, 300, 85, 62, 3003, 62, 565, 682, 13, 628, 220, 42815, 29397, 4177, 2849, 705, 49, 42, 35, 62, 54, 12532, 62, 18564, 2969, 6, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 2420, 1370, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 7102, 53, 1149, 1270, 74, 7, 300, 85, 62, 3003, 62, 565, 682, 1267, 198, 220, 220, 220, 220, 220, 5072, 11925, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 7724, 198, 220, 220, 220, 309, 6242, 28378, 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,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_book_parallel_demo. *"---------------------------------------------------------------------- *"*"Lokale Schnittstelle: *" IMPORTING *" VALUE(TIKNR) TYPE ZBOOK_TICKET_NR *" VALUE(DATEINAME) TYPE STRING *" VALUE(P_TASK) TYPE TW_TASK_LUW_ID OPTIONAL *" EXCEPTIONS *" FEHLER *"---------------------------------------------------------------------- zcl_book_parallel=>set_pid_info( funktion = 'Kochbuch Parallel Demo' text = |Upload Datei: { dateiname }| ). * MESSAGE e000(oo) WITH 'Fehlertest' RAISING fehler. TRY. zcl_book_gos=>add_server( i_tiknr = tiknr i_datei = dateiname ). CATCH zcx_book_exception. MESSAGE e000(oo) WITH 'Fehler bei Upload Datei' dateiname. ENDTRY. ENDFUNCTION.
[ 42296, 4177, 2849, 1976, 62, 2070, 62, 1845, 29363, 62, 9536, 78, 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, 26173, 8924, 7, 51, 18694, 24723, 8, 41876, 220, 1168, 39453, 62, 51, 11860, 2767, 62, 24723, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 35, 6158, 1268, 10067, 8, 41876, 220, 19269, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 47, 62, 51, 1921, 42, 8, 41876, 220, 17306, 62, 51, 1921, 42, 62, 41596, 54, 62, 2389, 39852, 2849, 1847, 198, 9, 1, 220, 7788, 42006, 11053, 198, 9, 1, 220, 220, 220, 220, 220, 18630, 6581, 1137, 198, 9, 1, 10097, 23031, 628, 220, 1976, 565, 62, 2070, 62, 1845, 29363, 14804, 2617, 62, 35317, 62, 10951, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 46212, 5378, 796, 705, 42, 5374, 65, 794, 42945, 34588, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 220, 220, 220, 220, 796, 930, 41592, 7536, 72, 25, 1391, 3128, 259, 480, 1782, 91, 6739, 628, 198, 9, 220, 337, 1546, 4090, 8264, 304, 830, 7, 2238, 8, 13315, 705, 14304, 18519, 861, 395, 6, 17926, 1797, 2751, 730, 49737, 13, 198, 220, 7579, 56, 13, 198, 220, 1976, 565, 62, 2070, 62, 70, 418, 14804, 2860, 62, 15388, 7, 1312, 62, 83, 1134, 48624, 796, 256, 1134, 48624, 1312, 62, 4475, 72, 796, 3128, 259, 480, 6739, 198, 220, 220, 220, 327, 11417, 1976, 66, 87, 62, 2070, 62, 1069, 4516, 13, 198, 220, 220, 220, 220, 220, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_advent2019_day01_hvam DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_advent2019_hvam . METHODS single IMPORTING !input TYPE i RETURNING VALUE(output) TYPE i . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ZCL_ADVENT2019_DAY01_HVAM IMPLEMENTATION. METHOD single. output = ( input DIV 3 ) - 2. ENDMETHOD. METHOD zif_advent2019_hvam~solve. DATA table TYPE STANDARD TABLE OF string WITH DEFAULT KEY. DATA result TYPE i. DATA conv TYPE i. SPLIT input AT cl_abap_char_utilities=>newline INTO TABLE table. LOOP AT table INTO DATA(row). conv = row. result = result + single( conv ). ENDLOOP. output = result. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 324, 1151, 23344, 62, 820, 486, 62, 71, 85, 321, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 324, 1151, 23344, 62, 71, 85, 321, 764, 628, 220, 220, 220, 337, 36252, 50, 2060, 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, 1312, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 22915, 8, 41876, 1312, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 2885, 53, 3525, 23344, 62, 26442, 486, 62, 39, 53, 2390, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 2060, 13, 628, 220, 220, 220, 5072, 796, 357, 5128, 360, 3824, 513, 1267, 532, 362, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 324, 1151, 23344, 62, 71, 85, 321, 93, 82, 6442, 13, 628, 220, 220, 220, 42865, 3084, 41876, 49053, 9795, 43679, 3963, 4731, 13315, 5550, 38865, 35374, 13, 198, 220, 220, 220, 42865, 1255, 41876, 1312, 13, 198, 220, 220, 220, 42865, 3063, 41876, 1312, 13, 628, 220, 220, 220, 46341, 2043, 5128, 5161, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 3605, 1370, 39319, 43679, 3084, 13, 628, 220, 220, 220, 17579, 3185, 5161, 3084, 39319, 42865, 7, 808, 737, 198, 220, 220, 220, 220, 220, 3063, 796, 5752, 13, 198, 220, 220, 220, 220, 220, 1255, 796, 1255, 1343, 2060, 7, 3063, 6739, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 220, 220, 5072, 796, 1255, 13, 628, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_zlib DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. TYPES: BEGIN OF ty_decompress, raw TYPE xstring, compressed_len TYPE i, END OF ty_decompress . CLASS-METHODS decompress IMPORTING !iv_compressed TYPE xsequence RETURNING VALUE(rs_data) TYPE ty_decompress . PRIVATE SECTION. CONSTANTS: c_maxdcodes TYPE i VALUE 30. CLASS-DATA: gv_out TYPE xstring, go_lencode TYPE REF TO zcl_abapgit_zlib_huffman, go_distcode TYPE REF TO zcl_abapgit_zlib_huffman, go_stream TYPE REF TO zcl_abapgit_zlib_stream. TYPES: BEGIN OF ty_pair, length TYPE i, distance TYPE i, END OF ty_pair. CLASS-METHODS: decode IMPORTING io_huffman TYPE REF TO zcl_abapgit_zlib_huffman RETURNING VALUE(rv_symbol) TYPE i, map_length IMPORTING iv_code TYPE i RETURNING VALUE(rv_length) TYPE i, map_distance IMPORTING iv_code TYPE i RETURNING VALUE(rv_distance) TYPE i, dynamic, fixed, read_pair IMPORTING iv_length TYPE i RETURNING VALUE(rs_pair) TYPE ty_pair, copy_out IMPORTING is_pair TYPE ty_pair. ENDCLASS. CLASS ZCL_ABAPGIT_ZLIB IMPLEMENTATION. METHOD copy_out. * copy one byte at a time, it is not possible to copy using * string offsets, as it might copy data that does not exist * in mv_out yet DATA: lv_distance TYPE i, lv_index TYPE i, lv_x TYPE x LENGTH 1. lv_distance = xstrlen( gv_out ) - is_pair-distance. DO is_pair-length TIMES. lv_index = sy-index - 1 + lv_distance. lv_x = gv_out+lv_index(1). CONCATENATE gv_out lv_x INTO gv_out IN BYTE MODE. ENDDO. ENDMETHOD. "copy_out METHOD decode. DATA: lv_bit TYPE c LENGTH 1, lv_len TYPE i, lv_count TYPE i, lv_code TYPE i, lv_index TYPE i, lv_first TYPE i, lv_bits TYPE string. DO zcl_abapgit_zlib_huffman=>c_maxbits TIMES. lv_len = sy-index. lv_bit = go_stream->take_bits( 1 ). CONCATENATE lv_bits lv_bit INTO lv_bits. lv_code = zcl_abapgit_zlib_convert=>bits_to_int( lv_bits ). lv_count = io_huffman->get_count( lv_len ). IF lv_code - lv_count < lv_first. rv_symbol = io_huffman->get_symbol( lv_index + lv_code - lv_first + 1 ). RETURN. ENDIF. lv_index = lv_index + lv_count. lv_first = lv_first + lv_count. lv_first = lv_first * 2. ENDDO. ENDMETHOD. "decode METHOD decompress. DATA: lv_x TYPE x LENGTH 1, lv_symbol TYPE i, lv_bfinal TYPE c LENGTH 1, lv_btype TYPE c LENGTH 2. IF iv_compressed IS INITIAL. RETURN. ENDIF. CLEAR gv_out. CREATE OBJECT go_stream EXPORTING iv_data = iv_compressed. DO. lv_bfinal = go_stream->take_bits( 1 ). lv_btype = go_stream->take_bits( 2 ). CASE lv_btype. WHEN '01'. fixed( ). WHEN '10'. dynamic( ). WHEN OTHERS. ASSERT 1 = 0. ENDCASE. DO. lv_symbol = decode( go_lencode ). IF lv_symbol < 256. lv_x = zcl_abapgit_zlib_convert=>int_to_hex( lv_symbol ). CONCATENATE gv_out lv_x INTO gv_out IN BYTE MODE. ELSEIF lv_symbol = 256. EXIT. ELSE. copy_out( read_pair( lv_symbol ) ). ENDIF. ENDDO. IF lv_bfinal = '1'. EXIT. ENDIF. ENDDO. rs_data-raw = gv_out. rs_data-compressed_len = xstrlen( iv_compressed ) - go_stream->remaining( ). ENDMETHOD. "decompress METHOD dynamic. DATA: lv_nlen TYPE i, lv_ndist TYPE i, lv_ncode TYPE i, lv_index TYPE i, lv_length TYPE i, lv_symbol TYPE i, lt_order TYPE TABLE OF i, lt_lengths TYPE zcl_abapgit_zlib_huffman=>ty_lengths, lt_dists TYPE zcl_abapgit_zlib_huffman=>ty_lengths. FIELD-SYMBOLS: <lv_length> LIKE LINE OF lt_lengths. APPEND 16 TO lt_order. APPEND 17 TO lt_order. APPEND 18 TO lt_order. APPEND 0 TO lt_order. APPEND 8 TO lt_order. APPEND 7 TO lt_order. APPEND 9 TO lt_order. APPEND 6 TO lt_order. APPEND 10 TO lt_order. APPEND 5 TO lt_order. APPEND 11 TO lt_order. APPEND 4 TO lt_order. APPEND 12 TO lt_order. APPEND 3 TO lt_order. APPEND 13 TO lt_order. APPEND 2 TO lt_order. APPEND 14 TO lt_order. APPEND 1 TO lt_order. APPEND 15 TO lt_order. lv_nlen = go_stream->take_int( 5 ) + 257. lv_ndist = go_stream->take_int( 5 ) + 1. lv_ncode = go_stream->take_int( 4 ) + 4. DO 19 TIMES. APPEND 0 TO lt_lengths. ENDDO. DO lv_ncode TIMES. READ TABLE lt_order INDEX sy-index INTO lv_index. ASSERT sy-subrc = 0. lv_index = lv_index + 1. READ TABLE lt_lengths INDEX lv_index ASSIGNING <lv_length>. ASSERT sy-subrc = 0. <lv_length> = go_stream->take_int( 3 ). ENDDO. CREATE OBJECT go_lencode EXPORTING it_lengths = lt_lengths. CLEAR lt_lengths. WHILE lines( lt_lengths ) < lv_nlen + lv_ndist. lv_symbol = decode( go_lencode ). IF lv_symbol < 16. APPEND lv_symbol TO lt_lengths. ELSE. lv_length = 0. IF lv_symbol = 16. READ TABLE lt_lengths INDEX lines( lt_lengths ) INTO lv_length. ASSERT sy-subrc = 0. lv_symbol = go_stream->take_int( 2 ) + 3. ELSEIF lv_symbol = 17. lv_symbol = go_stream->take_int( 3 ) + 3. ELSE. lv_symbol = go_stream->take_int( 7 ) + 11. ENDIF. DO lv_symbol TIMES. APPEND lv_length TO lt_lengths. ENDDO. ENDIF. ENDWHILE. lt_dists = lt_lengths. DELETE lt_lengths FROM lv_nlen + 1. DELETE lt_dists TO lv_nlen. CREATE OBJECT go_lencode EXPORTING it_lengths = lt_lengths. CREATE OBJECT go_distcode EXPORTING it_lengths = lt_dists. ENDMETHOD. "dynamic METHOD fixed. DATA: lt_lengths TYPE zcl_abapgit_zlib_huffman=>ty_lengths. DO 144 TIMES. APPEND 8 TO lt_lengths. ENDDO. DO 112 TIMES. APPEND 9 TO lt_lengths. ENDDO. DO 24 TIMES. APPEND 7 TO lt_lengths. ENDDO. DO 8 TIMES. APPEND 8 TO lt_lengths. ENDDO. CREATE OBJECT go_lencode EXPORTING it_lengths = lt_lengths. CLEAR lt_lengths. DO c_maxdcodes TIMES. APPEND 5 TO lt_lengths. ENDDO. CREATE OBJECT go_distcode EXPORTING it_lengths = lt_lengths. ENDMETHOD. "fixed METHOD map_distance. DEFINE _distance. rv_distance = go_stream->take_int( &1 ). rv_distance = rv_distance + &2. END-OF-DEFINITION. CASE iv_code. WHEN 0. _distance 0 1. WHEN 1. _distance 0 2. WHEN 2. _distance 0 3. WHEN 3. _distance 0 4. WHEN 4. _distance 1 5. WHEN 5. _distance 1 7. WHEN 6. _distance 2 9. WHEN 7. _distance 2 13. WHEN 8. _distance 3 17. WHEN 9. _distance 3 25. WHEN 10. _distance 4 33. WHEN 11. _distance 4 49. WHEN 12. _distance 5 65. WHEN 13. _distance 5 97. WHEN 14. _distance 6 129. WHEN 15. _distance 6 193. WHEN 16. _distance 7 257. WHEN 17. _distance 7 385. WHEN 18. _distance 8 513. WHEN 19. _distance 8 769. WHEN 20. _distance 9 1025. WHEN 21. _distance 9 1537. WHEN 22. _distance 10 2049. WHEN 23. _distance 10 3073. WHEN 24. _distance 11 4097. WHEN 25. _distance 11 6145. WHEN 26. _distance 12 8193. WHEN 27. _distance 12 12289. WHEN 28. _distance 13 16385. WHEN 29. _distance 13 24577. WHEN OTHERS. ASSERT 1 = 0. ENDCASE. ENDMETHOD. "map_distance METHOD map_length. DEFINE _length. rv_length = go_stream->take_int( &1 ). rv_length = rv_length + &2. END-OF-DEFINITION. CASE iv_code. WHEN 257. _length 0 3. WHEN 258. _length 0 4. WHEN 259. _length 0 5. WHEN 260. _length 0 6. WHEN 261. _length 0 7. WHEN 262. _length 0 8. WHEN 263. _length 0 9. WHEN 264. _length 0 10. WHEN 265. _length 1 11. WHEN 266. _length 1 13. WHEN 267. _length 1 15. WHEN 268. _length 1 17. WHEN 269. _length 2 19. WHEN 270. _length 2 23. WHEN 271. _length 2 27. WHEN 272. _length 2 31. WHEN 273. _length 3 35. WHEN 274. _length 3 43. WHEN 275. _length 3 51. WHEN 276. _length 3 59. WHEN 277. _length 4 67. WHEN 278. _length 4 83. WHEN 279. _length 4 99. WHEN 280. _length 4 115. WHEN 281. _length 5 131. WHEN 282. _length 5 163. WHEN 283. _length 5 195. WHEN 284. _length 5 227. WHEN 285. _length 0 258. WHEN OTHERS. ASSERT 1 = 0. ENDCASE. ENDMETHOD. "map_length METHOD read_pair. DATA: lv_symbol TYPE i. rs_pair-length = map_length( iv_length ). lv_symbol = decode( go_distcode ). rs_pair-distance = map_distance( lv_symbol ). ENDMETHOD. "read_pair ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 89, 8019, 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, 347, 43312, 3963, 1259, 62, 12501, 3361, 601, 11, 198, 220, 220, 220, 220, 220, 220, 220, 8246, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 220, 220, 25388, 62, 11925, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 12501, 3361, 601, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 38237, 601, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 5589, 2790, 41876, 2124, 43167, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 7890, 8, 41876, 1259, 62, 12501, 3361, 601, 764, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 269, 62, 9806, 17896, 4147, 41876, 1312, 26173, 8924, 1542, 13, 628, 220, 220, 220, 42715, 12, 26947, 25, 308, 85, 62, 448, 220, 220, 220, 220, 220, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 467, 62, 11925, 8189, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 89, 8019, 62, 71, 1648, 805, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 467, 62, 17080, 8189, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 89, 8019, 62, 71, 1648, 805, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 467, 62, 5532, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 89, 8019, 62, 5532, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 24874, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4129, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5253, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 24874, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 36899, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 33245, 62, 71, 1648, 805, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 89, 8019, 62, 71, 1648, 805, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 1837, 23650, 8, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 3975, 62, 13664, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 8189, 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, 81, 85, 62, 13664, 8, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 3975, 62, 30246, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 8189, 220, 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, 81, 85, 62, 30246, 8, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 8925, 11, 198, 220, 220, 220, 220, 220, 5969, 11, 198, 220, 220, 220, 220, 220, 1100, 62, 24874, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 13664, 220, 220, 220, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 3808, 62, 24874, 8, 41876, 1259, 62, 24874, 11, 198, 220, 220, 220, 220, 220, 4866, 62, 448, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 318, 62, 24874, 41876, 1259, 62, 24874, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 57, 40347, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 4866, 62, 448, 13, 198, 198, 9, 4866, 530, 18022, 379, 257, 640, 11, 340, 318, 407, 1744, 284, 4866, 1262, 198, 9, 4731, 49005, 11, 355, 340, 1244, 4866, 1366, 326, 857, 407, 2152, 198, 9, 287, 285, 85, 62, 448, 1865, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 30246, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 9630, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 87, 220, 220, 220, 220, 220, 220, 220, 41876, 2124, 406, 49494, 352, 13, 628, 198, 220, 220, 220, 300, 85, 62, 30246, 796, 2124, 2536, 11925, 7, 308, 85, 62, 448, 1267, 532, 318, 62, 24874, 12, 30246, 13, 198, 220, 220, 220, 8410, 318, 62, 24874, 12, 13664, 31742, 1546, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 9630, 796, 827, 12, 9630, 532, 352, 1343, 300, 85, 62, 30246, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 87, 796, 308, 85, 62, 448, 10, 6780, 62, 9630, 7, 16, 737, 198, 220, 220, 220, 220, 220, 39962, 1404, 1677, 6158, 308, 85, 62, 448, 300, 85, 62, 87, 39319, 308, 85, 62, 448, 3268, 11050, 9328, 337, 16820, 13, 198, 220, 220, 220, 23578, 18227, 13, 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, 30073, 62, 448, 628, 198, 220, 337, 36252, 36899, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 2545, 220, 220, 41876, 269, 406, 49494, 352, 11, 198, 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 ]
*&---------------------------------------------------------------------* *& Include ZDEMO_EXCEL_OUTPUTOPT_INCL *&---------------------------------------------------------------------* CLASS lcl_output DEFINITION CREATE PRIVATE. PUBLIC SECTION. CLASS-METHODS: output IMPORTING cl_excel TYPE REF TO zcl_excel iv_writerclass_name TYPE clike OPTIONAL RAISING zcx_excel, f4_path RETURNING VALUE(selected_folder) TYPE string, parametertexts. PRIVATE SECTION. METHODS: download_frontend, download_backend, display_online, send_email. DATA: xdata TYPE xstring, " Will be used for sending as email t_rawdata TYPE solix_tab, " Will be used for downloading or open directly bytecount TYPE i. " Will be used for downloading or open directly ENDCLASS. "lcl_output DEFINITION SELECTION-SCREEN BEGIN OF BLOCK bl1 WITH FRAME TITLE txt_bl1. PARAMETERS: rb_down RADIOBUTTON GROUP rb1 USER-COMMAND space. PARAMETERS: rb_back RADIOBUTTON GROUP rb1. PARAMETERS: rb_show RADIOBUTTON GROUP rb1 DEFAULT 'X' . PARAMETERS: rb_send RADIOBUTTON GROUP rb1. PARAMETERS: p_path TYPE string LOWER CASE MODIF ID pat. PARAMETERS: p_email TYPE string LOWER CASE MODIF ID ema OBLIGATORY DEFAULT 'insert_your_emailadress@here'. PARAMETERS: p_backfn TYPE text40 NO-DISPLAY. SELECTION-SCREEN END OF BLOCK bl1. AT SELECTION-SCREEN OUTPUT. LOOP AT SCREEN. IF rb_down IS INITIAL AND screen-group1 = 'PAT'. screen-input = 0. screen-invisible = 1. ENDIF. IF rb_send IS INITIAL AND screen-group1 = 'EMA'. screen-input = 0. screen-invisible = 1. ENDIF. MODIFY SCREEN. ENDLOOP. INITIALIZATION. IF sy-batch IS INITIAL. cl_gui_frontend_services=>get_sapgui_workdir( CHANGING sapworkdir = p_path ). cl_gui_cfw=>flush( ). ENDIF. lcl_output=>parametertexts( ). " If started in language w/o textelements translated set defaults txt_bl1 = 'Output options'(bl1). p_backfn = gc_save_file_name. " Use as default if nothing else is supplied by submit AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path. p_path = lcl_output=>f4_path( ). *----------------------------------------------------------------------* * CLASS lcl_output IMPLEMENTATION *----------------------------------------------------------------------* CLASS lcl_output IMPLEMENTATION. METHOD output. DATA: cl_output TYPE REF TO lcl_output, cl_writer TYPE REF TO zif_excel_writer. IF iv_writerclass_name IS INITIAL. CREATE OBJECT cl_output. CREATE OBJECT cl_writer TYPE zcl_excel_writer_2007. ELSE. CREATE OBJECT cl_output. CREATE OBJECT cl_writer TYPE (iv_writerclass_name). ENDIF. cl_output->xdata = cl_writer->write_file( cl_excel ). * After 6.40 via cl_bcs_convert cl_output->t_rawdata = cl_bcs_convert=>xstring_to_solix( iv_xstring = cl_output->xdata ). cl_output->bytecount = xstrlen( cl_output->xdata ). * before 6.40 * CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' * EXPORTING * buffer = cl_output->xdata * IMPORTING * output_length = cl_output->bytecount * TABLES * binary_tab = cl_output->t_rawdata. CASE 'X'. WHEN rb_down. IF sy-batch IS INITIAL. cl_output->download_frontend( ). ELSE. MESSAGE e802(zabap2xlsx). ENDIF. WHEN rb_back. cl_output->download_backend( ). WHEN rb_show. IF sy-batch IS INITIAL. cl_output->display_online( ). ELSE. MESSAGE e803(zabap2xlsx). ENDIF. WHEN rb_send. cl_output->send_email( ). ENDCASE. ENDMETHOD. "output METHOD f4_path. DATA: new_path TYPE string, repid TYPE syrepid, dynnr TYPE sydynnr, lt_dynpfields TYPE TABLE OF dynpread, ls_dynpfields LIKE LINE OF lt_dynpfields. * Get current value dynnr = sy-dynnr. repid = sy-repid. ls_dynpfields-fieldname = 'P_PATH'. APPEND ls_dynpfields TO lt_dynpfields. CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = repid dynumb = dynnr TABLES dynpfields = lt_dynpfields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 invalid_parameter = 7 undefind_error = 8 double_conversion = 9 stepl_not_found = 10 OTHERS = 11. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. RETURN. ENDIF. READ TABLE lt_dynpfields INTO ls_dynpfields INDEX 1. new_path = ls_dynpfields-fieldvalue. selected_folder = new_path. cl_gui_frontend_services=>directory_browse( EXPORTING window_title = 'Select path to download EXCEL-file' initial_folder = new_path CHANGING selected_folder = new_path EXCEPTIONS cntl_error = 1 error_no_gui = 2 not_supported_by_gui = 3 OTHERS = 4 ). cl_gui_cfw=>flush( ). CHECK new_path IS NOT INITIAL. selected_folder = new_path. ENDMETHOD. "f4_path METHOD parametertexts. * If started in language w/o textelements translated set defaults * Furthermore I don't have to change the selectiontexts of all demoreports. TYPES: BEGIN OF ty_parameter, name TYPE string, text TYPE string, END OF ty_parameter. DATA: parameters TYPE TABLE OF ty_parameter, parameter TYPE ty_parameter, parameter_text_name TYPE string. FIELD-SYMBOLS: <parameter> TYPE ty_parameter, <parameter_text> TYPE c. parameter-name = 'RB_DOWN'. parameter-text = 'Save to frontend'. APPEND parameter TO parameters. parameter-name = 'RB_BACK'. parameter-text = 'Save to backend'. APPEND parameter TO parameters. parameter-name = 'RB_SHOW'. parameter-text = 'Direct display'. APPEND parameter TO parameters. parameter-name = 'RB_SEND'. parameter-text = 'Send via email'. APPEND parameter TO parameters. parameter-name = 'P_PATH'. parameter-text = 'Frontend-path to download to'. APPEND parameter TO parameters. parameter-name = 'P_EMAIL'. parameter-text = 'Email to send xlsx to'. APPEND parameter TO parameters. LOOP AT parameters ASSIGNING <parameter>. parameter_text_name = |%_{ <parameter>-name }_%_APP_%-TEXT|. ASSIGN (parameter_text_name) TO <parameter_text>. IF sy-subrc = 0. IF <parameter_text> = <parameter>-name OR <parameter_text> IS INITIAL. <parameter_text> = <parameter>-text. ENDIF. ENDIF. ENDLOOP. ENDMETHOD. "parametertexts METHOD: download_frontend. DATA: filename TYPE string. * I don't like p_path here - but for this include it's ok filename = p_path. * Add trailing "\" or "/" IF filename CA '/'. REPLACE REGEX '([^/])\s*$' IN filename WITH '$1/' . ELSE. REPLACE REGEX '([^\\])\s*$' IN filename WITH '$1\\'. ENDIF. CONCATENATE filename gc_save_file_name INTO filename. * Get trailing blank cl_gui_frontend_services=>gui_download( EXPORTING bin_filesize = bytecount filename = filename filetype = 'BIN' CHANGING data_tab = t_rawdata ). ENDMETHOD. "download_frontend METHOD download_backend. DATA: bytes_remain TYPE i. FIELD-SYMBOLS: <rawdata> LIKE LINE OF t_rawdata. OPEN DATASET p_backfn FOR OUTPUT IN BINARY MODE. CHECK sy-subrc = 0. bytes_remain = bytecount. LOOP AT t_rawdata ASSIGNING <rawdata>. AT LAST. CHECK bytes_remain >= 0. TRANSFER <rawdata> TO p_backfn LENGTH bytes_remain. EXIT. ENDAT. TRANSFER <rawdata> TO p_backfn. SUBTRACT 255 FROM bytes_remain. " Solix has length 255 ENDLOOP. CLOSE DATASET p_backfn. IF sy-repid <> sy-cprog AND sy-cprog IS NOT INITIAL. " no need to display anything if download was selected and report was called for demo purposes LEAVE PROGRAM. ELSE. MESSAGE 'Data transferred to default backend directory' TYPE 'S'. ENDIF. ENDMETHOD. "download_backend METHOD display_online. DATA:error TYPE REF TO i_oi_error, t_errors TYPE STANDARD TABLE OF REF TO i_oi_error WITH NON-UNIQUE DEFAULT KEY, cl_control TYPE REF TO i_oi_container_control, "OIContainerCtrl cl_document TYPE REF TO i_oi_document_proxy. "Office Dokument c_oi_container_control_creator=>get_container_control( IMPORTING control = cl_control error = error ). APPEND error TO t_errors. cl_control->init_control( EXPORTING inplace_enabled = 'X' no_flush = 'X' r3_application_name = 'Demo Document Container' parent = cl_gui_container=>screen0 IMPORTING error = error EXCEPTIONS OTHERS = 2 ). APPEND error TO t_errors. cl_control->get_document_proxy( EXPORTING document_type = 'Excel.Sheet' " EXCEL no_flush = ' ' IMPORTING document_proxy = cl_document error = error ). APPEND error TO t_errors. * Errorhandling should be inserted here cl_document->open_document_from_table( EXPORTING document_size = bytecount document_table = t_rawdata open_inplace = 'X' ). WRITE: '.'. " To create an output. That way screen0 will exist ENDMETHOD. "display_online METHOD send_email. * Needed to send emails DATA: bcs_exception TYPE REF TO cx_bcs, errortext TYPE string, cl_send_request TYPE REF TO cl_bcs, cl_document TYPE REF TO cl_document_bcs, cl_recipient TYPE REF TO if_recipient_bcs, cl_sender TYPE REF TO cl_cam_address_bcs, t_attachment_header TYPE soli_tab, wa_attachment_header LIKE LINE OF t_attachment_header, attachment_subject TYPE sood-objdes, sood_bytecount TYPE sood-objlen, mail_title TYPE so_obj_des, t_mailtext TYPE soli_tab, wa_mailtext LIKE LINE OF t_mailtext, send_to TYPE adr6-smtp_addr, sent TYPE abap_bool. mail_title = 'Mail title'. wa_mailtext = 'Mailtext'. APPEND wa_mailtext TO t_mailtext. TRY. * Create send request cl_send_request = cl_bcs=>create_persistent( ). * Create new document with mailtitle and mailtextg cl_document = cl_document_bcs=>create_document( i_type = 'RAW' "#EC NOTEXT i_text = t_mailtext i_subject = mail_title ). * Add attachment to document * since the new excelfiles have an 4-character extension .xlsx but the attachment-type only holds 3 charactes .xls, * we have to specify the real filename via attachment header * Use attachment_type xls to have SAP display attachment with the excel-icon attachment_subject = gc_save_file_name. CONCATENATE '&SO_FILENAME=' attachment_subject INTO wa_attachment_header. APPEND wa_attachment_header TO t_attachment_header. * Attachment sood_bytecount = bytecount. " next method expects sood_bytecount instead of any positive integer *sigh* cl_document->add_attachment( i_attachment_type = 'XLS' "#EC NOTEXT i_attachment_subject = attachment_subject i_attachment_size = sood_bytecount i_att_content_hex = t_rawdata i_attachment_header = t_attachment_header ). * add document to send request cl_send_request->set_document( cl_document ). * set sender in case if no own email is availabe * cl_sender = cl_cam_address_bcs=>create_internet_address( '[email protected]' ). * cl_send_request->set_sender( cl_sender ). * add recipient(s) - here only 1 will be needed send_to = p_email. IF send_to IS INITIAL. send_to = 'no_email@no_email.no_email'. " Place into SOST in any case for demonstration purposes ENDIF. cl_recipient = cl_cam_address_bcs=>create_internet_address( send_to ). cl_send_request->add_recipient( cl_recipient ). * Und abschicken sent = cl_send_request->send( i_with_error_screen = 'X' ). COMMIT WORK. IF sent = abap_true. MESSAGE s805(zabap2xlsx). MESSAGE 'Document ready to be sent - Check SOST or SCOT' TYPE 'I'. ELSE. MESSAGE i804(zabap2xlsx) WITH p_email. ENDIF. CATCH cx_bcs INTO bcs_exception. errortext = bcs_exception->if_message~get_text( ). MESSAGE errortext TYPE 'I'. ENDTRY. ENDMETHOD. "send_email ENDCLASS. "lcl_output IMPLEMENTATION
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1168, 39429, 46, 62, 6369, 34, 3698, 62, 2606, 7250, 3843, 3185, 51, 62, 1268, 5097, 198, 9, 5, 10097, 30934, 9, 198, 31631, 300, 565, 62, 22915, 5550, 20032, 17941, 29244, 6158, 4810, 3824, 6158, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 5072, 220, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 537, 62, 1069, 5276, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 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, 21628, 62, 16002, 4871, 62, 3672, 41876, 537, 522, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 1069, 5276, 11, 198, 220, 220, 220, 220, 220, 277, 19, 62, 6978, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 34213, 62, 43551, 8, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 11507, 5239, 82, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 4321, 62, 8534, 437, 11, 198, 220, 220, 220, 220, 220, 4321, 62, 1891, 437, 11, 198, 220, 220, 220, 220, 220, 3359, 62, 25119, 11, 198, 220, 220, 220, 220, 220, 3758, 62, 12888, 13, 628, 220, 220, 220, 42865, 25, 2124, 7890, 220, 220, 220, 220, 41876, 2124, 8841, 11, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 2561, 307, 973, 329, 7216, 355, 3053, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 62, 1831, 7890, 41876, 1540, 844, 62, 8658, 11, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 2561, 307, 973, 329, 22023, 393, 1280, 3264, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 18022, 9127, 41876, 1312, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 2561, 307, 973, 329, 22023, 393, 1280, 3264, 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, 22915, 5550, 20032, 17941, 628, 198, 46506, 2849, 12, 6173, 2200, 1677, 347, 43312, 3963, 9878, 11290, 698, 16, 13315, 8782, 10067, 37977, 2538, 256, 742, 62, 2436, 16, 13, 198, 27082, 2390, 2767, 4877, 25, 374, 65, 62, 2902, 33540, 9399, 47526, 11357, 44441, 374, 65, 16, 1294, 1137, 12, 9858, 44, 6981, 2272, 13, 198, 198, 27082, 2390, 2767, 4877, 25, 374, 65, 62, 1891, 33540, 9399, 47526, 11357, 44441, 374, 65, 16, 13, 198, 198, 27082, 2390, 2767, 4877, 25, 374, 65, 62, 12860, 33540, 9399, 47526, 11357, 44441, 374, 65, 16, 5550, 38865, 705, 55, 6, 764, 198, 198, 27082, 2390, 2767, 4877, 25, 374, 65, 62, 21280, 33540, 9399, 47526, 11357, 44441, 374, 65, 16, 13, 198, 198, 27082, 2390, 2767, 4877, 25, 279, 62, 6978, 220, 41876, 4731, 406, 36048, 42001, 19164, 5064, 4522, 1458, 13, 198, 27082, 2390, 2767, 4877, 25, 279, 62, 12888, 41876, 4731, 406, 36048, 42001, 19164, 5064, 4522, 795, 64, 440, 9148, 3528, 1404, 15513, 5550, 38865, 705, 28463, 62, 14108, 62, 12888, 324, 601, 31, 1456, 4458, 198, 27082, 2390, 2767, 4877, 25, 279, 62, 1891, 22184, 41876, 2420, 1821, 8005, 12, 26288, 31519, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 23578, 3963, 9878, 11290, 698, 16, 13, 628, 198, 1404, 33493, 2849, 12, 6173, 2200, 1677, 16289, 30076, 13, 198, 220, 17579, 3185, 5161, 6374, 2200, 1677, 13, 628, 220, 220, 220, 16876, 374, 65, 62, 2902, 3180, 3268, 2043, 12576, 5357, 3159, 12, 8094, 16, 796, 705, 47, 1404, 4458, 198, 220, 220, 220, 220, 220, 3159, 12, 15414, 796, 657, 13, 198, 220, 220, 220, 220, 220, 3159, 12, 259, 23504, 796, 352, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 16876, 374, 65, 62, 21280, 3180, 3268, 2043, 12576, 5357, 3159, 12, 8094, 16, 796, 705, 27630, 4458, 198, 220, 220, 220, 220, 220, 3159, 12, 15414, 796, 657, 13, 198, 220, 220, 220, 220, 220, 3159, 12, 259, 23504, 796, 352, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 19164, 5064, 56, 6374, 2200, 1677, 13, 628, 220, 23578, 21982, 3185, 13, 198, 198, 1268, 2043, 12576, 14887, 6234, 13, 198, 220, 16876, 827, 12, 43501, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 537, 62, 48317, 62, 8534, 437, 62, 30416, 14804, 1136, 62, 82, 499, 48317, 62, 1818, 15908, 7, 5870, 15567, 2751, 31841, 1818, 15908, 796, 279, 62, 6978, 6739, 198, 220, 220, 220, 537, 62, 48317, 62, 12993, 86, 14804, 25925, 7, 6739, 198, 220, 23578, 5064, 13, 198, 220, 300, 565, 62, 22915, 14804, 17143, 2357, 5239, 82, 7, 6739, 220, 366, 1002, 2067, 287, 3303, 266, 14, 78, 48659, 660, 3639, 14251, 900, 26235, 198, 220, 256, 742, 62, 2436, 16, 796, 705, 26410, 3689, 6, 7, 2436, 16, 737, 198, 220, 279, 62, 1891, 22184, 796, 308, 66, 62, 21928, 62, 7753, 62, 3672, 13, 220, 366, 5765, 355, 4277, 611, 2147, 2073, 318, 14275, 416, 9199, 198, 198, 1404, 33493, 2849, 12, 6173, 2200, 1677, 6177, 26173, 8924, 12, 2200, 35780, 7473, 279, 62, 6978, 13, 198, 220, 279, 62, 6978, 796, 300, 565, 62, 22915, 14804, 69, 19, 62, 6978, 7, 6739, 628, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 565, 62, 22915, 30023, 2538, 10979, 6234, 198, 9, 10097, 23031, 9, 198, 31631, 300, 565, 62, 22915, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 5072, 13, 628, 220, 220, 220, 42865, 25, 537, 62, 22915, 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,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
"! List of parts of an object. CLASS zcl_timem_parts DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. "! Constructor for an object parts "! @parameter i_object_type | Object type "! @parameter i_object_name | Object name METHODS constructor IMPORTING !object_type TYPE ztimem_object_type !object_name TYPE sobj_name RAISING zcx_timem . "! Returns a deep structure containing all the details for all the parts. METHODS get_data RETURNING VALUE(result) TYPE ztimem_data RAISING zcx_timem . METHODS revert IMPORTING ts TYPE timestamp RAISING zcx_timem. PROTECTED SECTION. PRIVATE SECTION. DATA object_type TYPE ztimem_object_type . DATA object_name TYPE sobj_name . DATA parts TYPE zif_timem_object=>ty_t_part_ref . DATA userexits TYPE REF TO zcl_timem_userexits. DATA options TYPE REF TO zcl_timem_options. "! Load all the data, creating the actual parts "! which will load all the versions "! @parameter io_counter | To keep track of progress METHODS load RAISING zcx_timem . METHODS get_stats IMPORTING !parts TYPE ztimem_part_source_t RETURNING VALUE(result) TYPE ztimem_stats RAISING zcx_timem. METHODS get_timestamps RETURNING VALUE(result) TYPE ztimem_timestamp_t . METHODS get_lines IMPORTING !parts TYPE ztimem_part_source_t RETURNING VALUE(result) TYPE ztimem_line_t. METHODS get_summaries IMPORTING lines TYPE ztimem_line_t RETURNING VALUE(result) TYPE ztimem_summary_t RAISING zcx_timem. ENDCLASS. CLASS ZCL_TIMEM_PARTS IMPLEMENTATION. METHOD constructor. me->object_type = object_type. me->object_name = object_name. CREATE OBJECT me->userexits. me->options = zcl_timem_options=>get_instance( ). load( ). ENDMETHOD. METHOD get_data. DATA temp1 TYPE ztimem_part_source_t. DATA temp2 LIKE LINE OF temp1. DATA part LIKE LINE OF parts. DATA t_part LIKE temp1. DATA temp3 TYPE ztimem_data. LOOP AT parts INTO part. temp2-name = part->name. temp2-type = part->vrsd_type. temp2-object_name = part->vrsd_name. temp2-lines = part->get_source( ). APPEND temp2 TO temp1. ENDLOOP. t_part = temp1. DELETE t_part WHERE lines IS INITIAL. " The custom fields and anything else related to the parts must be edited at this point " because it can affect the aggregated results (timestamps, stats and summaries) userexits->modify_parts( CHANGING parts = t_part ). temp3-name = object_name. temp3-type = object_type. temp3-version = zcl_timem_consts=>version. temp3-parts = t_part. temp3-timestamps = get_timestamps( ). temp3-stats = get_stats( t_part ). temp3-timestamp = options->timestamp. temp3-summaries = get_summaries( get_lines( t_part ) ). temp3-ignore_case = options->ignore_case. temp3-ignore_indentation = options->ignore_indentation. result = temp3. ENDMETHOD. METHOD get_lines. DATA temp4 TYPE ztimem_line_t. DATA part LIKE LINE OF parts. LOOP AT parts INTO part. APPEND line TO temp4. ENDLOOP. result = temp4. ENDMETHOD. METHOD get_stats. DATA temp6 TYPE REF TO zcl_timem_stats. CREATE OBJECT temp6 TYPE zcl_timem_stats EXPORTING lines = get_lines( parts ). result = temp6->stats. ENDMETHOD. METHOD get_summaries. DATA temp7 TYPE ztimem_summary_t. DATA temp1 TYPE REF TO zcl_timem_summary. DATA temp2 TYPE REF TO zcl_timem_summary. DATA temp3 TYPE REF TO zcl_timem_summary. DATA temp4 TYPE REF TO zcl_timem_summary. DATA temp5 TYPE REF TO zcl_timem_summary. CREATE OBJECT temp1 TYPE zcl_timem_summary EXPORTING fieldname = 'AUTHOR'. APPEND temp1->build( lines ) TO temp7. CREATE OBJECT temp2 TYPE zcl_timem_summary EXPORTING fieldname = 'REQUEST'. APPEND temp2->build( lines ) TO temp7. CREATE OBJECT temp3 TYPE zcl_timem_summary EXPORTING fieldname = 'CUSTOM1'. APPEND temp3->build( lines ) TO temp7. CREATE OBJECT temp4 TYPE zcl_timem_summary EXPORTING fieldname = 'CUSTOM2'. APPEND temp4->build( lines ) TO temp7. CREATE OBJECT temp5 TYPE zcl_timem_summary EXPORTING fieldname = 'CUSTOM3'. APPEND temp5->build( lines ) TO temp7. result = temp7. ENDMETHOD. METHOD get_timestamps. " Gather timestamps from all parts DATA part LIKE LINE OF parts. DATA t_timestamp_part TYPE ztimem_timestamp_t. DATA ts LIKE LINE OF t_timestamp_part. LOOP AT parts INTO part. t_timestamp_part = part->get_timestamps( ). LOOP AT t_timestamp_part INTO ts. COLLECT ts INTO result. ENDLOOP. ENDLOOP. SORT result BY table_line DESCENDING. ENDMETHOD. METHOD load. DATA object TYPE REF TO zif_timem_object. DATA temp6 TYPE REF TO zcl_timem_object_factory. DATA part_list TYPE ztimem_part_t. DATA s_part TYPE REF TO ztimem_part. DATA part TYPE REF TO zcl_timem_part. CREATE OBJECT temp6 TYPE zcl_timem_object_factory. object = temp6->get_instance( object_type = object_type object_name = object_name ). part_list = object->get_part_list( ). userexits->modify_part_list( CHANGING part_list = part_list ). LOOP AT part_list REFERENCE INTO s_part. TRY. CREATE OBJECT part TYPE zcl_timem_part EXPORTING name = s_part->name vrsd_name = s_part->object_name vrsd_type = s_part->type. INSERT part INTO TABLE parts. CATCH zcx_timem. " Doesn't exist? Carry on ASSERT 1 = 1. ENDTRY. ENDLOOP. ENDMETHOD. METHOD revert. DATA part LIKE LINE OF parts. LOOP AT parts INTO part. part->revert( ts ). ENDLOOP. ENDMETHOD. ENDCLASS.
[ 40484, 7343, 286, 3354, 286, 281, 2134, 13, 198, 31631, 1976, 565, 62, 16514, 368, 62, 42632, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 366, 0, 28407, 273, 329, 281, 2134, 3354, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 1312, 62, 15252, 62, 4906, 930, 9515, 2099, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 1312, 62, 15252, 62, 3672, 930, 9515, 1438, 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, 15252, 62, 4906, 41876, 1976, 16514, 368, 62, 15252, 62, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 15252, 62, 3672, 41876, 27355, 73, 62, 3672, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 16514, 368, 764, 628, 220, 220, 220, 366, 0, 16409, 257, 2769, 4645, 7268, 477, 262, 3307, 329, 477, 262, 3354, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 7890, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 1976, 16514, 368, 62, 7890, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 16514, 368, 764, 628, 220, 220, 220, 337, 36252, 50, 34052, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 40379, 41876, 41033, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 16514, 368, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 2134, 62, 4906, 41876, 1976, 16514, 368, 62, 15252, 62, 4906, 764, 198, 220, 220, 220, 42865, 2134, 62, 3672, 41876, 27355, 73, 62, 3672, 764, 198, 220, 220, 220, 42865, 3354, 41876, 1976, 361, 62, 16514, 368, 62, 15252, 14804, 774, 62, 83, 62, 3911, 62, 5420, 764, 198, 220, 220, 220, 42865, 779, 21510, 896, 41876, 4526, 37, 5390, 1976, 565, 62, 16514, 368, 62, 1904, 21510, 896, 13, 198, 220, 220, 220, 42865, 3689, 41876, 4526, 37, 5390, 1976, 565, 62, 16514, 368, 62, 25811, 13, 628, 220, 220, 220, 366, 0, 8778, 477, 262, 1366, 11, 4441, 262, 4036, 3354, 198, 220, 220, 220, 366, 0, 543, 481, 3440, 477, 262, 6300, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 33245, 62, 24588, 930, 1675, 1394, 2610, 286, 4371, 198, 220, 220, 220, 337, 36252, 50, 3440, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 16514, 368, 764, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 34242, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 42632, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 16514, 368, 62, 3911, 62, 10459, 62, 83, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 1976, 16514, 368, 62, 34242, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 16514, 368, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 16514, 395, 9430, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 1976, 16514, 368, 62, 16514, 27823, 62, 83, 764, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 6615, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 42632, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 16514, 368, 62, 3911, 62, 10459, 62, 83, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 1976, 16514, 368, 62, 1370, 62, 83, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 82, 13929, 3166, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 3951, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 16514, 368, 62, 1370, 62, 83, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 1976, 16514, 368, 62, 49736, 62, 83, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 16514, 368, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 51, 3955, 3620, 62, 27082, 4694, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 502, 3784, 15252, 62, 4906, 796, 2134, 62, 4906, 13, 198, 220, 220, 220, 502, 3784, 15252, 62, 3672, 796, 2134, 62, 3672, 13, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 502, 3784, 1904, 21510, 896, 13, 198, 220, 220, 220, 502, 3784, 25811, 796, 1976, 565, 62, 16514, 368, 62, 25811, 14804, 1136, 62, 39098, 7, 6739, 198, 220, 220, 220, 3440, 7, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 7890, 13, 198, 220, 220, 220, 42865, 20218, 16, 41876, 1976, 16514, 368, 62, 3911, 62, 10459, 62, 83, 13, 198, 220, 220, 220, 42865, 20218, 17, 34178, 48920, 3963, 20218, 16, 13, 198, 220, 220, 220, 42865, 636, 34178, 48920, 3963, 3354, 13, 198, 220, 220, 220, 42865, 256, 62, 3911, 34178, 20218, 16, 13, 198, 220, 220, 220, 42865, 20218, 18, 41876, 1976, 16514, 368, 62, 7890, 13, 198, 220, 220, 220, 17579, 3185, 5161, 3354, 39319, 636, 13, 628, 220, 220, 220, 220, 220, 20218, 17, 12, 3672, 796, 636, 3784, 3672, 13, 198, 220, 220, 220, 220, 220, 20218, 17, 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,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_THEME definition public create public . public section. *"* public components of class ZCL_EXCEL_THEME *"* do not include other source files here!!! constants C_THEME_ELEMENTS type STRING value 'themeElements'. "#EC NOTEXT constants C_THEME_OBJECT_DEF type STRING value 'objectDefaults'. "#EC NOTEXT constants C_THEME_EXTRA_COLOR type STRING value 'extraClrSchemeLst'. "#EC NOTEXT constants C_THEME_EXTLST type STRING value 'extLst'. "#EC NOTEXT constants C_THEME type STRING value 'theme'. "#EC NOTEXT constants C_THEME_NAME type STRING value 'name'. "#EC NOTEXT constants C_THEME_XMLNS type STRING value 'xmlns:a'. "#EC NOTEXT constants C_THEME_PREFIX type STRING value 'a'. "#EC NOTEXT constants C_THEME_PREFIX_WRITE type STRING value 'a:'. "#EC NOTEXT constants C_THEME_XMLNS_VAL type STRING value 'http://schemas.openxmlformats.org/drawingml/2006/main'. "#EC NOTEXT methods CONSTRUCTOR . methods READ_THEME importing value(IO_THEME_XML) type ref to IF_IXML_DOCUMENT . methods WRITE_THEME importing !LO_OSTREAM type ref to IF_IXML_OSTREAM . methods SET_COLOR importing value(IV_TYPE) type STRING value(IV_SRGB) type ZCL_EXCEL_THEME_COLOR_SCHEME=>T_SRGB optional value(IV_SYSCOLORNAME) type STRING optional value(IV_SYSCOLORLAST) type ZCL_EXCEL_THEME_COLOR_SCHEME=>T_SRGB optional . methods SET_COLOR_SCHEME_NAME importing value(IV_NAME) type STRING . methods SET_FONT importing value(IV_TYPE) type STRING value(IV_SCRIPT) type STRING value(IV_TYPEFACE) type STRING . methods SET_LATIN_FONT importing value(IV_TYPE) type STRING value(IV_TYPEFACE) type STRING value(IV_PANOSE) type STRING optional value(IV_PITCHFAMILY) type STRING optional value(IV_CHARSET) type STRING optional . methods SET_EA_FONT importing value(IV_TYPE) type STRING value(IV_TYPEFACE) type STRING value(IV_PANOSE) type STRING optional value(IV_PITCHFAMILY) type STRING optional value(IV_CHARSET) type STRING optional . methods SET_CS_FONT importing value(IV_TYPE) type STRING value(IV_TYPEFACE) type STRING value(IV_PANOSE) type STRING optional value(IV_PITCHFAMILY) type STRING optional value(IV_CHARSET) type STRING optional . methods SET_FONT_SCHEME_NAME importing value(IV_NAME) type STRING . methods SET_THEME_NAME importing value(IV_NAME) type STRING . methods GET_NAME returning value(RVAL) type STRING . protected section. data ELEMENTS type ref to ZCL_EXCEL_THEME_ELEMENTS . data OBJECTDEFAULTS type ref to ZCL_EXCEL_THEME_OBJECTDEFAULTS . data EXTCLRSCHEMELST type ref to ZCL_EXCEL_THEME_ECLRSCHEMELST . data EXTLST type ref to ZCL_EXCEL_THEME_EXTLST . private section. data THEME_CHANGED type ABAP_BOOL . data THEME_READ type ABAP_BOOL . data NAME type STRING . data XMLS_A type STRING . ENDCLASS. CLASS ZCL_EXCEL_THEME IMPLEMENTATION. method constructor. create object elements. create object objectdefaults. create object extclrschemelst. create object extlst. endmethod. "class_constructor method GET_NAME. rval = me->name. endmethod. method read_theme. data: lo_node_theme type ref to if_ixml_element. data: lo_theme_children type ref to if_ixml_node_list. data: lo_theme_iterator type ref to if_ixml_node_iterator. data: lo_theme_element type ref to if_ixml_element. check io_theme_xml is not initial. lo_node_theme = io_theme_xml->get_root_element( )." find_from_name( name = c_theme ). if lo_node_theme is bound. name = lo_node_theme->get_attribute( name = c_theme_name ). xmls_a = lo_node_theme->get_attribute( name = c_theme_xmlns ). lo_theme_children = lo_node_theme->get_children( ). lo_theme_iterator = lo_theme_children->create_iterator( ). lo_theme_element ?= lo_theme_iterator->get_next( ). while lo_theme_element is bound. case lo_theme_element->get_name( ). when c_theme_elements. elements->load( io_elements = lo_theme_element ). when c_theme_object_def. objectdefaults->load( io_object_def = lo_theme_element ). when c_theme_extra_color. extclrschemelst->load( io_extra_color = lo_theme_element ). when c_theme_extlst. extlst->load( io_extlst = lo_theme_element ). endcase. lo_theme_element ?= lo_theme_iterator->get_next( ). endwhile. endif. endmethod. "read_theme method set_color. elements->color_scheme->set_color( exporting iv_type = iv_type iv_srgb = iv_srgb iv_syscolorname = iv_syscolorname iv_syscolorlast = iv_syscolorlast ). endmethod. "set_color method set_color_scheme_name. elements->color_scheme->set_name( iv_name = iv_name ). endmethod. "set_color_scheme_name method set_cs_font. elements->font_scheme->modify_cs_font( exporting iv_type = iv_type iv_typeface = iv_typeface iv_panose = iv_panose iv_pitchfamily = iv_pitchfamily iv_charset = iv_charset ). endmethod. "set_cs_font method set_ea_font. elements->font_scheme->modify_ea_font( exporting iv_type = iv_type iv_typeface = iv_typeface iv_panose = iv_panose iv_pitchfamily = iv_pitchfamily iv_charset = iv_charset ). endmethod. "set_ea_font method set_font. elements->font_scheme->modify_font( exporting iv_type = iv_type iv_script = iv_script iv_typeface = iv_typeface ). endmethod. "set_font method set_font_scheme_name. elements->font_scheme->set_name( iv_name = iv_name ). endmethod. "set_font_scheme_name method set_latin_font. elements->font_scheme->modify_latin_font( exporting iv_type = iv_type iv_typeface = iv_typeface iv_panose = iv_panose iv_pitchfamily = iv_pitchfamily iv_charset = iv_charset ). endmethod. "set_latin_font method set_theme_name. name = iv_name. endmethod. METHOD write_theme. lo_ostream->write_string( '<?xml version="1.0" encoding="utf-8" standalone="yes"?>' ). lo_ostream->write_string( |<{ c_theme_prefix }:{ c_theme }| ). lo_ostream->write_string( | { c_theme_xmlns }="{ c_theme_xmlns_val }"| ). lo_ostream->write_string( | { c_theme_name }="{ name }">| ). elements->build_xml( lo_ostream ). objectdefaults->build_xml( lo_ostream ). extclrschemelst->build_xml( lo_ostream ). extlst->build_xml( lo_ostream ). lo_ostream->write_string( |</{ c_theme_prefix }:{ c_theme }>| ). ENDMETHOD. "write_theme ENDCLASS.
[ 4871, 1168, 5097, 62, 6369, 34, 3698, 62, 4221, 3620, 36, 6770, 198, 220, 1171, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 6369, 34, 3698, 62, 4221, 3620, 36, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 628, 220, 38491, 327, 62, 4221, 3620, 36, 62, 36, 2538, 28957, 2099, 19269, 2751, 1988, 705, 43810, 36, 3639, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 4221, 3620, 36, 62, 9864, 23680, 62, 32988, 2099, 19269, 2751, 1988, 705, 15252, 7469, 13185, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 4221, 3620, 36, 62, 13918, 3861, 62, 46786, 2099, 19269, 2751, 1988, 705, 26086, 2601, 81, 27054, 1326, 43, 301, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 4221, 3620, 36, 62, 13918, 43, 2257, 2099, 19269, 2751, 1988, 705, 2302, 43, 301, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 4221, 3620, 36, 2099, 19269, 2751, 1988, 705, 43810, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 4221, 3620, 36, 62, 20608, 2099, 19269, 2751, 1988, 705, 3672, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 4221, 3620, 36, 62, 55, 5805, 8035, 2099, 19269, 2751, 1988, 705, 19875, 5907, 25, 64, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 4221, 3620, 36, 62, 47, 31688, 10426, 2099, 19269, 2751, 1988, 705, 64, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 4221, 3620, 36, 62, 47, 31688, 10426, 62, 18564, 12709, 2099, 19269, 2751, 1988, 705, 64, 25, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 4221, 3620, 36, 62, 55, 5805, 8035, 62, 23428, 2099, 19269, 2751, 1988, 705, 4023, 1378, 1416, 4411, 292, 13, 9654, 19875, 687, 1381, 13, 2398, 14, 19334, 278, 4029, 14, 13330, 14, 12417, 4458, 25113, 2943, 5626, 13918, 628, 220, 5050, 7102, 46126, 1581, 764, 198, 220, 5050, 20832, 62, 4221, 3620, 36, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 1988, 7, 9399, 62, 4221, 3620, 36, 62, 55, 5805, 8, 2099, 1006, 284, 16876, 62, 10426, 5805, 62, 38715, 5883, 3525, 764, 198, 220, 5050, 44423, 62, 4221, 3620, 36, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 21982, 62, 10892, 32235, 2099, 1006, 284, 16876, 62, 10426, 5805, 62, 10892, 32235, 764, 198, 220, 5050, 25823, 62, 46786, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 25216, 8, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 12562, 4579, 8, 2099, 1168, 5097, 62, 6369, 34, 3698, 62, 4221, 3620, 36, 62, 46786, 62, 50, 3398, 3620, 36, 14804, 51, 62, 12562, 4579, 11902, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 23060, 6173, 3535, 1581, 20608, 8, 2099, 19269, 2751, 11902, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 23060, 6173, 3535, 1581, 43, 11262, 8, 2099, 1168, 5097, 62, 6369, 34, 3698, 62, 4221, 3620, 36, 62, 46786, 62, 50, 3398, 3620, 36, 14804, 51, 62, 12562, 4579, 11902, 764, 198, 220, 5050, 25823, 62, 46786, 62, 50, 3398, 3620, 36, 62, 20608, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 20608, 8, 2099, 19269, 2751, 764, 198, 220, 5050, 25823, 62, 37, 35830, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 25216, 8, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 6173, 46023, 8, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 25216, 49836, 8, 2099, 19269, 2751, 764, 198, 220, 5050, 25823, 62, 43, 1404, 1268, 62, 37, 35830, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 25216, 8, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 25216, 49836, 8, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 47, 1565, 14058, 8, 2099, 19269, 2751, 11902, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 47, 31949, 37, 2390, 33340, 8, 2099, 19269, 2751, 11902, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 3398, 27415, 2767, 8, 2099, 19269, 2751, 11902, 764, 198, 220, 5050, 25823, 62, 16412, 62, 37, 35830, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 25216, 8, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 25216, 49836, 8, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 47, 1565, 14058, 8, 2099, 19269, 2751, 11902, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 47, 31949, 37, 2390, 33340, 8, 2099, 19269, 2751, 11902, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 3398, 27415, 2767, 8, 2099, 19269, 2751, 11902, 764, 198, 220, 5050, 25823, 62, 7902, 62, 37, 35830, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 25216, 8, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 25216, 49836, 8, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 47, 1565, 14058, 8, 2099, 19269, 2751, 11902, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 47, 31949, 37, 2390, 33340, 8, 2099, 19269, 2751, 11902, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 3398, 27415, 2767, 8, 2099, 19269, 2751, 11902, 764, 198, 220, 5050, 25823, 62, 37, 35830, 62, 50, 3398, 3620, 36, 62, 20608, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 20608, 8, 2099, 19269, 2751, 764, 198, 220, 5050, 25823, 62, 4221, 3620, 36, 62, 20608, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 1988, 7, 3824, 62, 20608, 8, 2099, 19269, 2751, 764, 198, 220, 5050, 17151, 62, 20608, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 49, 23428, 8, 2099, 19269, 2751, 764 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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. 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. DATA: mv_name TYPE ddobjname, mv_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~compare_to_remote_version. CREATE OBJECT ro_comparison_result TYPE zcl_abapgit_comparison_null. ENDMETHOD. METHOD zif_abapgit_object~delete. " RS_DD_INDX_DELETE calls the GUI. Someday we need a better solution CALL FUNCTION 'RS_DD_INDX_DELETE' EXPORTING objname = mv_name indexname = mv_id extension = abap_true EXCEPTIONS object_not_found = 1 object_not_specified = 2 permission_failure = 3 action_cancelled = 4 OTHERS = 5. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from RS_DD_INDX_DELETE { sy-subrc }| ). ENDIF. ENDMETHOD. "delete METHOD zif_abapgit_object~deserialize. DATA: ls_extension_index TYPE ty_extension_index, 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 = 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 rc <> 0. zcx_abapgit_exception=>raise( |Cannot activate extension index { mv_id } of table { mv_name }| ). ENDIF. ENDMETHOD. "deserialize METHOD zif_abapgit_object~exists. DATA: lv_dd12v TYPE dd12v. CALL FUNCTION 'DDIF_INDX_GET' EXPORTING name = mv_name id = mv_id IMPORTING dd12v_wa = lv_dd12v EXCEPTIONS illegal_input = 1 OTHERS = 2. rv_bool = boolc( lv_dd12v IS NOT INITIAL ). ENDMETHOD. "zif_abapgit_object~exists METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. "zif_abapgit_object~get_metadata METHOD zif_abapgit_object~has_changed_since. rv_changed = abap_true. ENDMETHOD. "zif_abapgit_object~has_changed_since METHOD zif_abapgit_object~jump. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ms_item-obj_name object_type = ms_item-obj_type in_new_window = abap_true EXCEPTIONS not_executed = 1 invalid_object_type = 2 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from RS_TOOL_ACCESS { sy-subrc }| ). ENDIF. ENDMETHOD. "jump 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 = sy-langu 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. "serialize 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, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 2302, 3004, 62, 9630, 11, 198, 220, 220, 220, 220, 220, 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, 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, 220, 220, 220, 220, 220, 220, 220, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 2302, 3004, 62, 9630, 13, 198, 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, 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, 5589, 533, 62, 1462, 62, 47960, 62, 9641, 13, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 686, 62, 785, 1845, 1653, 62, 20274, 41876, 1976, 565, 62, 397, 499, 18300, 62, 785, 1845, 1653, 62, 8423, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 33678, 13, 628, 220, 220, 220, 366, 19340, 62, 16458, 62, 12115, 55, 62, 7206, 2538, 9328, 3848, 262, 25757, 13, 9995, 23712, 356, 761, 257, 1365, 4610, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 6998, 62, 16458, 62, 12115, 55, 62, 7206, 2538, 9328, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 26181, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 285, 85, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 6376, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 285, 85, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 7552, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 1662, 62, 9275, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 1662, 62, 23599, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 7170, 62, 32165, 495, 220, 220, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 2223, 62, 66, 590, 3353, 220, 220, 220, 220, 796, 604, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 642, 13 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_graph_line DEFINITION PUBLIC INHERITING FROM zcl_excel_graph FINAL CREATE PUBLIC . PUBLIC SECTION. TYPES: *"* public components of class ZCL_EXCEL_GRAPH_LINE *"* do not include other source files here!!! BEGIN OF s_ax, axid TYPE string, type TYPE char5, orientation TYPE string, delete TYPE string, axpos TYPE string, formatcode TYPE string, sourcelinked TYPE string, majortickmark TYPE string, minortickmark TYPE string, ticklblpos TYPE string, crossax TYPE string, crosses TYPE string, auto TYPE string, lblalgn TYPE string, lbloffset TYPE string, nomultilvllbl TYPE string, crossbetween TYPE string, END OF s_ax . TYPES: t_ax TYPE STANDARD TABLE OF s_ax . DATA ns_groupingval TYPE string VALUE 'standard'. "#EC NOTEXT . . . . . . . . . . " . DATA ns_varycolorsval TYPE string VALUE '0'. "#EC NOTEXT . . . . . . . . . . " . DATA ns_showlegendkeyval TYPE string VALUE '0'. "#EC NOTEXT . . . . . . . . . . " . DATA ns_showvalval TYPE string VALUE '0'. "#EC NOTEXT . . . . . . . . . . " . DATA ns_showcatnameval TYPE string VALUE '0'. "#EC NOTEXT . . . . . . . . . . " . DATA ns_showsernameval TYPE string VALUE '0'. "#EC NOTEXT . . . . . . . . . . " . DATA ns_showpercentval TYPE string VALUE '0'. "#EC NOTEXT . . . . . . . . . . " . DATA ns_showbubblesizeval TYPE string VALUE '0'. "#EC NOTEXT . . . . . . . . . . " . DATA ns_markerval TYPE string VALUE '1'. "#EC NOTEXT . . . . . . . . . . " . DATA ns_smoothval TYPE string VALUE '0'. "#EC NOTEXT . . . . . . . . . . " . DATA axes TYPE t_ax . CONSTANTS: c_valax TYPE c LENGTH 5 VALUE 'VALAX'. "#EC NOTEXT CONSTANTS: c_catax TYPE c LENGTH 5 VALUE 'CATAX'. "#EC NOTEXT DATA ns_legendposval TYPE string VALUE 'r'. "#EC NOTEXT . . . . . . . . . . " . DATA ns_overlayval TYPE string VALUE '0'. "#EC NOTEXT . . . . . . . . . . " . CONSTANTS c_symbol_auto TYPE string VALUE 'auto'. "#EC NOTEXT CONSTANTS c_symbol_none TYPE string VALUE 'none'. "#EC NOTEXT METHODS create_ax IMPORTING !ip_axid TYPE string OPTIONAL !ip_type TYPE char5 !ip_orientation TYPE string OPTIONAL !ip_delete TYPE string OPTIONAL !ip_axpos TYPE string OPTIONAL !ip_formatcode TYPE string OPTIONAL !ip_sourcelinked TYPE string OPTIONAL !ip_majortickmark TYPE string OPTIONAL !ip_minortickmark TYPE string OPTIONAL !ip_ticklblpos TYPE string OPTIONAL !ip_crossax TYPE string OPTIONAL !ip_crosses TYPE string OPTIONAL !ip_auto TYPE string OPTIONAL !ip_lblalgn TYPE string OPTIONAL !ip_lbloffset TYPE string OPTIONAL !ip_nomultilvllbl TYPE string OPTIONAL !ip_crossbetween TYPE string OPTIONAL . METHODS set_show_legend_key IMPORTING !ip_value TYPE c . METHODS set_show_values IMPORTING !ip_value TYPE c . METHODS set_show_cat_name IMPORTING !ip_value TYPE c . METHODS set_show_ser_name IMPORTING !ip_value TYPE c . METHODS set_show_percent IMPORTING !ip_value TYPE c . METHODS set_varycolor IMPORTING !ip_value TYPE c . PROTECTED SECTION. *"* protected components of class ZCL_EXCEL_GRAPH_LINE *"* do not include other source files here!!! PRIVATE SECTION. *"* private components of class ZCL_EXCEL_GRAPH_LINE *"* do not include other source files here!!! ENDCLASS. CLASS zcl_excel_graph_line IMPLEMENTATION. METHOD create_ax. DATA ls_ax TYPE s_ax. ls_ax-type = ip_type. IF ip_type = c_catax. IF ip_axid IS SUPPLIED. ls_ax-axid = ip_axid. ELSE. ls_ax-axid = '1'. ENDIF. IF ip_orientation IS SUPPLIED. ls_ax-orientation = ip_orientation. ELSE. ls_ax-orientation = 'minMax'. ENDIF. IF ip_delete IS SUPPLIED. ls_ax-delete = ip_delete. ELSE. ls_ax-delete = '0'. ENDIF. IF ip_axpos IS SUPPLIED. ls_ax-axpos = ip_axpos. ELSE. ls_ax-axpos = 'b'. ENDIF. IF ip_formatcode IS SUPPLIED. ls_ax-formatcode = ip_formatcode. ELSE. ls_ax-formatcode = 'General'. ENDIF. IF ip_sourcelinked IS SUPPLIED. ls_ax-sourcelinked = ip_sourcelinked. ELSE. ls_ax-sourcelinked = '1'. ENDIF. IF ip_majortickmark IS SUPPLIED. ls_ax-majortickmark = ip_majortickmark. ELSE. ls_ax-majortickmark = 'out'. ENDIF. IF ip_minortickmark IS SUPPLIED. ls_ax-minortickmark = ip_minortickmark. ELSE. ls_ax-minortickmark = 'none'. ENDIF. IF ip_ticklblpos IS SUPPLIED. ls_ax-ticklblpos = ip_ticklblpos. ELSE. ls_ax-ticklblpos = 'nextTo'. ENDIF. IF ip_crossax IS SUPPLIED. ls_ax-crossax = ip_crossax. ELSE. ls_ax-crossax = '2'. ENDIF. IF ip_crosses IS SUPPLIED. ls_ax-crosses = ip_crosses. ELSE. ls_ax-crosses = 'autoZero'. ENDIF. IF ip_auto IS SUPPLIED. ls_ax-auto = ip_auto. ELSE. ls_ax-auto = '1'. ENDIF. IF ip_lblalgn IS SUPPLIED. ls_ax-lblalgn = ip_lblalgn. ELSE. ls_ax-lblalgn = 'ctr'. ENDIF. IF ip_lbloffset IS SUPPLIED. ls_ax-lbloffset = ip_lbloffset. ELSE. ls_ax-lbloffset = '100'. ENDIF. IF ip_nomultilvllbl IS SUPPLIED. ls_ax-nomultilvllbl = ip_nomultilvllbl. ELSE. ls_ax-nomultilvllbl = '0'. ENDIF. ELSEIF ip_type = c_valax. IF ip_axid IS SUPPLIED. ls_ax-axid = ip_axid. ELSE. ls_ax-axid = '2'. ENDIF. IF ip_orientation IS SUPPLIED. ls_ax-orientation = ip_orientation. ELSE. ls_ax-orientation = 'minMax'. ENDIF. IF ip_delete IS SUPPLIED. ls_ax-delete = ip_delete. ELSE. ls_ax-delete = '0'. ENDIF. IF ip_axpos IS SUPPLIED. ls_ax-axpos = ip_axpos. ELSE. ls_ax-axpos = 'l'. ENDIF. IF ip_formatcode IS SUPPLIED. ls_ax-formatcode = ip_formatcode. ELSE. ls_ax-formatcode = 'General'. ENDIF. IF ip_sourcelinked IS SUPPLIED. ls_ax-sourcelinked = ip_sourcelinked. ELSE. ls_ax-sourcelinked = '1'. ENDIF. IF ip_majortickmark IS SUPPLIED. ls_ax-majortickmark = ip_majortickmark. ELSE. ls_ax-majortickmark = 'out'. ENDIF. IF ip_minortickmark IS SUPPLIED. ls_ax-minortickmark = ip_minortickmark. ELSE. ls_ax-minortickmark = 'none'. ENDIF. IF ip_ticklblpos IS SUPPLIED. ls_ax-ticklblpos = ip_ticklblpos. ELSE. ls_ax-ticklblpos = 'nextTo'. ENDIF. IF ip_crossax IS SUPPLIED. ls_ax-crossax = ip_crossax. ELSE. ls_ax-crossax = '1'. ENDIF. IF ip_crosses IS SUPPLIED. ls_ax-crosses = ip_crosses. ELSE. ls_ax-crosses = 'autoZero'. ENDIF. IF ip_crossbetween IS SUPPLIED. ls_ax-crossbetween = ip_crossbetween. ELSE. ls_ax-crossbetween = 'between'. ENDIF. ENDIF. APPEND ls_ax TO me->axes. SORT me->axes BY axid ASCENDING. ENDMETHOD. METHOD set_show_cat_name. ns_showcatnameval = ip_value. ENDMETHOD. METHOD set_show_legend_key. ns_showlegendkeyval = ip_value. ENDMETHOD. METHOD set_show_percent. ns_showpercentval = ip_value. ENDMETHOD. METHOD set_show_ser_name. ns_showsernameval = ip_value. ENDMETHOD. METHOD set_show_values. ns_showvalval = ip_value. ENDMETHOD. METHOD set_varycolor. ns_varycolorsval = ip_value. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 1069, 5276, 62, 34960, 62, 1370, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 1069, 5276, 62, 34960, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 6369, 34, 3698, 62, 10761, 31300, 62, 24027, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 264, 62, 897, 11, 198, 220, 220, 220, 220, 220, 220, 220, 7877, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1149, 20, 11, 198, 220, 220, 220, 220, 220, 220, 220, 12852, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 12233, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 7877, 1930, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 5794, 8189, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2723, 25614, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 16486, 419, 624, 4102, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 949, 419, 624, 4102, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4378, 75, 2436, 1930, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3272, 897, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 24234, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 8295, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 2436, 282, 4593, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 2436, 28968, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4515, 586, 346, 85, 297, 2436, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3272, 23395, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 264, 62, 897, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 256, 62, 897, 41876, 49053, 9795, 43679, 3963, 264, 62, 897, 764, 628, 220, 220, 220, 42865, 36545, 62, 8094, 278, 2100, 41876, 4731, 26173, 8924, 705, 20307, 4458, 25113, 2943, 5626, 13918, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 366, 764, 198, 220, 220, 220, 42865, 36545, 62, 85, 560, 4033, 669, 2100, 41876, 4731, 26173, 8924, 705, 15, 4458, 25113, 2943, 5626, 13918, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 366, 764, 198, 220, 220, 220, 42865, 36545, 62, 12860, 1455, 437, 2539, 2100, 41876, 4731, 26173, 8924, 705, 15, 4458, 25113, 2943, 5626, 13918, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 366, 764, 198, 220, 220, 220, 42865, 36545, 62, 12860, 2100, 2100, 41876, 4731, 26173, 8924, 705, 15, 4458, 25113, 2943, 5626, 13918, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 366, 764, 198, 220, 220, 220, 42865, 36545, 62, 12860, 9246, 3672, 2100, 41876, 4731, 26173, 8924, 705, 15, 4458, 25113, 2943, 5626, 13918, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 366, 764, 198, 220, 220, 220, 42865, 36545, 62, 49596, 13292, 2100, 41876, 4731, 26173, 8924, 705, 15, 4458, 25113, 2943, 5626, 13918, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 366, 764, 198, 220, 220, 220, 42865, 36545, 62, 12860, 25067, 2100, 41876, 4731, 26173, 8924, 705, 15, 4458, 25113, 2943, 5626, 13918, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 366, 764, 198, 220, 220, 220, 42865, 36545, 62, 12860, 46176, 7689, 1096, 2100, 41876, 4731, 26173, 8924, 705, 15, 4458, 25113, 2943, 5626, 13918, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 366, 764, 198, 220, 220, 220, 42865, 36545, 62, 4102, 712, 282, 41876, 4731, 26173, 8924, 705, 16, 4458, 25113, 2943, 5626, 13918, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 366, 764, 198, 220, 220, 220, 42865, 36545, 62, 5796, 5226, 2100, 41876, 4731, 26173, 8924, 705, 15, 4458, 25113, 2943, 5626, 13918, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 366, 764, 198, 220, 220, 220, 42865, 34197, 41876, 256, 62, 897, 764, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 269, 62, 2100, 897, 41876, 269, 406, 49494, 642, 26173, 8924, 705, 23428, 25922, 4458, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 269, 62, 9246, 897, 41876, 269, 406, 49494, 642, 26173, 8924, 705, 34, 13563, 55, 4458, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 42865, 36545, 62, 1455, 437, 1930, 2100, 41876, 4731, 26173, 8924, 705, 81, 4458, 25113, 2943, 5626, 13918, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 366, 764, 198, 220, 220, 220, 42865, 36545 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
method DEFINE_ZAS_EMPNOM. *&---------------------------------------------------------------------* *& 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 - ZAS_EMPnom *********************************************************************************************************************************** lo_entity_type = model->create_entity_type( iv_entity_type_name = 'ZAS_EMPnom' iv_def_entity_set = abap_false ). "#EC NOTEXT *********************************************************************************************************************************** *Properties *********************************************************************************************************************************** lo_property = lo_entity_type->create_property( iv_property_name = 'Id' iv_abap_fieldname = 'ID' ). "#EC NOTEXT lo_property->set_is_key( ). 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 = 'NomId' iv_abap_fieldname = 'NOM_ID' ). "#EC NOTEXT lo_property->set_is_key( ). 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 = 'NomName' iv_abap_fieldname = 'NOM_NAME' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 50 ). "#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 = 'NomAge' iv_abap_fieldname = 'NOM_AGE' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 3 ). "#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 = 'NomRel' iv_abap_fieldname = 'NOM_REL' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 1 ). "#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 = 'NomAddr' iv_abap_fieldname = 'NOM_ADDR' ). "#EC NOTEXT lo_property->set_type_edm_string( ). lo_property->set_maxlength( iv_max_length = 100 ). "#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 = 'NomMob' iv_abap_fieldname = 'NOM_MOB' ). "#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_entity_type->bind_structure( iv_structure_name = 'ZAS_EMPNOM' iv_bind_conversions = 'X' ). "#EC NOTEXT *********************************************************************************************************************************** * ENTITY SETS *********************************************************************************************************************************** lo_entity_set = lo_entity_type->create_entity_set( 'ZAS_EMPnomSet' ). "#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_false ). 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.
[ 220, 2446, 23449, 8881, 62, 57, 1921, 62, 3620, 13137, 2662, 13, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2980, 515, 2438, 329, 262, 19164, 3698, 36592, 41237, 49688, 42715, 220, 220, 220, 220, 220, 220, 220, 220, 1222, 9, 198, 9, 5, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1222, 9, 198, 9, 5, 220, 220, 10185, 12161, 5959, 19164, 5064, 56, 12680, 42715, 13, 3268, 42001, 7013, 41300, 5390, 5870, 27746, 3336, 19164, 3698, 220, 1222, 9, 198, 9, 5, 220, 220, 220, 220, 220, 220, 220, 8410, 12680, 3268, 3336, 19164, 3698, 36592, 41237, 13558, 2749, 43, 10705, 10185, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1222, 9, 198, 9, 5, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1222, 9, 198, 9, 5, 10097, 30934, 9, 628, 198, 220, 1366, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 1236, 14221, 220, 220, 220, 220, 2099, 1006, 284, 1220, 14246, 65, 538, 14, 361, 62, 11296, 86, 62, 375, 1045, 62, 1236, 14221, 11, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 36465, 1961, 198, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 26858, 62, 4906, 220, 220, 220, 2099, 1006, 284, 1220, 14246, 65, 538, 14, 361, 62, 11296, 86, 62, 375, 1045, 62, 26858, 62, 28004, 11, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 36465, 1961, 198, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 41887, 62, 4906, 220, 220, 2099, 1006, 284, 1220, 14246, 65, 538, 14, 361, 62, 11296, 86, 62, 375, 1045, 62, 11215, 489, 87, 62, 4906, 11, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 36465, 1961, 198, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 26745, 220, 220, 220, 220, 220, 220, 2099, 1006, 284, 1220, 14246, 65, 538, 14, 361, 62, 11296, 86, 62, 375, 1045, 62, 26745, 11, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 36465, 1961, 198, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 26858, 62, 2617, 220, 220, 220, 220, 2099, 1006, 284, 1220, 14246, 65, 538, 14, 361, 62, 11296, 86, 62, 375, 1045, 62, 26858, 62, 2617, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 36465, 1961, 198, 198, 17174, 17174, 17174, 17174, 8162, 198, 9, 220, 220, 47353, 9050, 532, 1168, 1921, 62, 39494, 26601, 198, 17174, 17174, 17174, 17174, 8162, 198, 198, 5439, 62, 26858, 62, 4906, 796, 2746, 3784, 17953, 62, 26858, 62, 4906, 7, 21628, 62, 26858, 62, 4906, 62, 3672, 796, 705, 57, 1921, 62, 39494, 26601, 6, 21628, 62, 4299, 62, 26858, 62, 2617, 796, 450, 499, 62, 9562, 6739, 25113, 2943, 5626, 13918, 198, 198, 17174, 17174, 17174, 17174, 8162, 198, 9, 2964, 18200, 198, 17174, 17174, 17174, 17174, 8162, 198, 198, 5439, 62, 26745, 796, 2376, 62, 26858, 62, 4906, 3784, 17953, 62, 26745, 7, 21628, 62, 26745, 62, 3672, 796, 705, 7390, 6, 21628, 62, 397, 499, 62, 3245, 3672, 796, 705, 2389, 6, 6739, 25113, 2943, 5626, 13918, 198, 5439, 62, 26745, 3784, 2617, 62, 271, 62, 2539, 7, 6739, 198, 5439, 62, 26745, 3784, 2617, 62, 4906, 62, 276, 76, 62, 8841, 7, 6739, 198, 5439, 62, 26745, 3784, 2617, 62, 9806, 13664, 7, 21628, 62, 9806, 62, 13664, 796, 604, 6739, 25113, 2943, 5626, 13918, 198, 5439, 62, 26745, 3784, 2617, 62, 20123, 540, 7, 450, 499, 62, 9562, 6739, 198, 5439, 62, 26745, 3784, 2617, 62, 929, 19608, 540, 7, 450, 499, 62, 9562, 6739, 198, 5439, 62, 26745, 3784, 2617, 62, 30619, 540, 7, 450, 499, 62, 9562, 6739, 198, 5439, 62, 26745, 3784, 2617, 62, 8423, 540, 7, 450, 499, 62, 9562, 6739, 198, 5439, 62, 26745, 3784, 2617, 62, 24455, 540, 7, 450, 499, 62, 9562, 6739, 198, 5439, 62, 26745, 3784, 14, 14246, 65, 538, 14, 361, 62, 11296, 86, 62, 375, 1045, 62, 34574, 265, 23117, 93, 17953, 62, 1236, 14221, 7, 705, 82, 499, 6, 1267, 3784, 2860, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 2539, 220, 220, 220, 220, 220, 796, 705, 46903, 1098, 6, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 8367, 220, 220, 220, 796, 705, 9562, 6, 6739, 198, 5439, 62, 26745, 796, 2376, 62, 26858, 62, 4906, 3784, 17953, 62, 26745, 7, 21628, 62, 26745, 62, 3672, 796, 705, 45, 296, 7390, 6, 21628, 62, 397, 499, 62, 3245, 3672, 796, 705, 45, 2662, 62, 2389, 6, 6739, 25113, 2943, 5626, 13918, 198, 5439, 62, 26745, 3784, 2617, 62, 271, 62, 2539, 7, 6739, 198, 5439, 62, 26745, 3784, 2617, 62, 4906, 62, 276, 76, 62, 8841, 7, 6739, 198, 5439, 62, 26745, 3784, 2617, 62, 9806, 13664, 7, 21628, 62, 9806, 62, 13664, 796, 604, 6739, 25113, 2943, 5626, 13918, 198, 5439, 62, 26745, 3784, 2617, 62, 20123, 540, 7, 450, 499, 62, 9562, 6739, 198, 5439, 62, 26745, 3784, 2617, 62, 929, 19608, 540, 7, 450, 499, 62, 9562, 6739, 198, 5439, 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,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_INTERFACE definition public inheriting from ZSAPLINK create public . public section. type-pools ABAP . type-pools SEOR . type-pools SEOS . type-pools SEOT . methods CHECKEXISTS redefinition . methods CREATEIXMLDOCFROMOBJECT redefinition . methods CREATEOBJECTFROMIXMLDOC redefinition . protected section. methods DELETEOBJECT redefinition . methods GETOBJECTTYPE redefinition . private section. constants XML_KEY_METHOD type STRING value 'method'. "#EC NOTEXT constants XML_KEY_PARAMETER type STRING value 'parameter'. "#EC NOTEXT constants XML_KEY_EXCEPTION type STRING value 'exception'. "#EC NOTEXT constants XML_KEY_EVENTS type STRING value 'events'. "#EC NOTEXT constants XML_KEY_ATTRIBUTE type STRING value 'attribute'. "#EC NOTEXT constants XML_KEY_TYPEUSAGE type STRING value 'typeUsage'. "#EC NOTEXT constants XML_KEY_TYPES type STRING value 'types'. "#EC NOTEXT constants XML_KEY_INCLUDE type STRING value 'include'. "#EC NOTEXT methods EXPORT_INTERFACES importing !CLASSKEY type SEOCLSKEY exporting !RC type SYSUBRC changing !ROOTNODE type ref to IF_IXML_ELEMENT . type-pools SEOO . methods IMPORT_METHODS changing !CH_METHODS type SEOO_METHODS_R !CH_PARAMETERS type SEOS_PARAMETERS_R !CH_EXCEPS type SEOS_EXCEPTIONS_R . methods IMPORT_ATTRIBUTES changing !CH_ATTRIBUTES type SEOO_ATTRIBUTES_R raising ZCX_SAPLINK . methods IMPORT_INTERFACES changing !CH_COMPRISINGS type SEOR_COMPRISINGS_R . methods IMPORT_TYPES changing !CH_TYPEUSAGES type SEOT_TYPEPUSAGES_R !CH_TYPES type SEOO_TYPES_R . methods IMPORT_EVENTS changing !CH_EVENTS type SEOO_EVENTS_R !CH_PARAMETERS type SEOS_PARAMETERS_R . methods EXPORT_METHODS importing !INTFDESCR type ref to CL_ABAP_INTFDESCR !CLASSNAME type SEOCLSNAME changing !RC type SYSUBRC !ROOTNODE type ref to IF_IXML_ELEMENT . methods EXPORT_EVENTS importing !CLASSKEY type SEOCLSKEY changing !RC type SYSUBRC !ROOTNODE type ref to IF_IXML_ELEMENT . methods EXPORT_ATTRIBUTES importing !INTFDESCR type ref to CL_ABAP_INTFDESCR changing !RC type SYSUBRC !ROOTNODE type ref to IF_IXML_ELEMENT . methods EXPORT_TYPES importing !CLASSKEY type SEOCLSKEY changing !RC type SYSUBRC !ROOTNODE type ref to IF_IXML_ELEMENT . methods EXPORT_TYPEGROUPS importing !CLASSKEY type SEOCLSKEY changing !RC type SYSUBRC !ROOTNODE type ref to IF_IXML_ELEMENT . endclass. "ZSAPLINK_INTERFACE definition *----------------------------------------------------------------------* * class ZSAPLINK_INTERFACE implementation. *----------------------------------------------------------------------* * *----------------------------------------------------------------------* class ZSAPLINK_INTERFACE 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. | *\---------------------------------------------------------------------/ *Plugin created by Thomas Ritter *Based on work done by: Michael Yakovlev, Edward Herrmann *and other SAPlink contributors data intkey type SEOCLSKEY. data not_active TYPE char1. intkey-clsName = objname. CALL FUNCTION 'SEO_INTERFACE_EXISTENCE_CHECK' EXPORTING intkey = intkey IMPORTING not_active = not_active EXCEPTIONS * NOT_SPECIFIED = 1 NOT_EXISTING = 2 * IS_CLASS = 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. | *\---------------------------------------------------------------------/ *Plugin created by Thomas Ritter *Based on work done by: Michael Yakovlev, Edward Herrmann *and other SAPlink contributors data intfsection type ref to if_ixml_element. data rootnode type ref to if_ixml_element. data _classname type seoclsname. data rc type sysubrc. data intfdescr type ref to cl_abap_intfdescr. data typedescr type ref to cl_abap_typedescr. data classkey type seoclskey. data intproperties type vseointerf. data _objtype type string. _classname = objname. classkey-clsname = objname. _objtype = getobjecttype( ). rootnode = xmldoc->create_element( _objtype ). call function 'SEO_INTERFACE_GET' EXPORTING intkey = classkey version = '1' IMPORTING interface = intproperties EXCEPTIONS not_existing = 1 deleted = 2 is_class = 3 model_only = 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 = 'interface deleted'. when 3. raise exception type zcx_SAPlink exporting textid = zcx_SAPlink=>error_message msg = 'classes not supported'. when 4. raise exception type zcx_SAPlink exporting textid = zcx_SAPlink=>error_message msg = 'interface is modeled only'. endcase. endif. setattributesfromstructure( node = rootnode structure = intproperties ). try. call method cl_abap_intfdescr=>describe_by_name EXPORTING p_name = objname RECEIVING p_descr_ref = typedescr EXCEPTIONS type_not_found = 1. if sy-subrc = 0. intfdescr ?= typedescr. endif. catch cx_root. raise exception type zcx_SAPlink exporting textid = zcx_SAPlink=>system_error. endtry. *Add included interfaces to the xml document CALL METHOD ME->EXPORT_INTERFACES EXPORTING CLASSKEY = classkey IMPORTING RC = rc CHANGING ROOTNODE = rootnode. *Add types to the xml document CALL METHOD me->EXPORT_TYPES EXPORTING CLASSKEY = classkey CHANGING RC = rc ROOTNODE = rootnode. *Add typegroups to the xml document CALL METHOD me->EXPORT_TYPEGROUPS EXPORTING CLASSKEY = classkey CHANGING RC = rc ROOTNODE = rootnode. *Add events to the xml document CALL METHOD me->EXPORT_EVENTS EXPORTING CLASSKEY = classkey CHANGING RC = rc ROOTNODE = rootnode. *Add attributes to the xml document CALL METHOD me->EXPORT_ATTRIBUTES EXPORTING INTFDESCR = intfdescr CHANGING RC = rc ROOTNODE = rootnode. *Add methods to the xml document CALL METHOD me->EXPORT_METHODS EXPORTING INTFDESCR = intfdescr CLASSNAME = _CLASSNAME CHANGING RC = rc ROOTNODE = rootnode. * append root node to xmldoc rc = xmldoc->append_child( rootnode ). ixmldocument = xmldoc. 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. | *\---------------------------------------------------------------------/ *Plugin created by Thomas Ritter *Based on work done by: Michael Yakovlev, Edward Herrmann *and other SAPlink contributors data rootnode type ref to if_ixml_element. data classkey type seoclskey. data not_active type boolean. data _devclass type devclass. data _objtype type string. data checkexists type flag. data: 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. data: i_korrnr type trkorr. data: ch_interface type VSEOINTERF, ch_comprisings type SEOR_COMPRISINGS_R, ch_attributes type SEOO_ATTRIBUTES_R, ch_methods type SEOO_METHODS_R, ch_events type SEOO_EVENTS_R, ch_parameters type SEOS_PARAMETERS_R, ch_exceps type SEOS_EXCEPTIONS_R, ch_typeusages type SEOT_TYPEPUSAGES_R, ch_types type SEOO_TYPES_R. call function 'SEO_BUFFER_INIT'. e_devclass = devclass. _objtype = getobjecttype( ). e_overwrite = overwrite. _devclass = devclass. _objtype = getobjecttype( ). xmldoc = ixmldocument. rootnode = xmldoc->find_from_name( _objtype ). call method getstructurefromattributes EXPORTING node = rootnode CHANGING structure = ch_interface. checkexists = checkexists( ). if checkexists is not initial. if overwrite is initial. raise exception type zcx_SAPlink exporting textid = zcx_SAPlink=>existing. else. * delete object for new install deleteobject( ). endif. endif. if sy-subrc <> 0. case sy-subrc. when 1. 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. *Add attributes to new interface call method import_attributes CHANGING ch_attributes = ch_attributes. *Add includes call method import_interfaces CHANGING ch_comprisings = ch_comprisings. *Add types and type groups call method import_types CHANGING ch_types = ch_types ch_typeusages = ch_typeusages. *Add events and event parameters call method import_events CHANGING ch_events = ch_events ch_parameters = ch_parameters. *Add methods, method parameters and method exceptions call method import_methods CHANGING ch_methods = ch_methods ch_parameters = ch_parameters ch_exceps = ch_exceps. *Create the interface CALL FUNCTION 'SEO_INTERFACE_CREATE_COMPLETE' EXPORTING CORRNR = e_corrnr DEVCLASS = e_devclass VERSION = e_version GENFLAG = e_genflag AUTHORITY_CHECK = e_authority_check OVERWRITE = e_overwrite * SUPPRESS_REFACTORING_SUPPORT = SEOX_TRUE IMPORTING KORRNR = i_korrnr * TABLES * CLASS_DESCRIPTIONS = * COMPONENT_DESCRIPTIONS = * SUBCOMPONENT_DESCRIPTIONS = CHANGING INTERFACE = ch_interface COMPRISINGS = ch_comprisings ATTRIBUTES = ch_attributes METHODS = ch_methods EVENTS = ch_events PARAMETERS = ch_parameters EXCEPS = ch_exceps * ALIASES = TYPEPUSAGES = ch_typeusages * CLSDEFERRDS = * INTDEFERRDS = TYPES = ch_types EXCEPTIONS EXISTING = 1 IS_CLASS = 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 ** successful install name = objname. 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. 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. | *\---------------------------------------------------------------------/ *Plugin created by Thomas Ritter *Based on work done by: Michael Yakovlev, Edward Herrmann *and other SAPlink contributors DATA clskey TYPE seoclskey. clskey-clsname = objname. CALL FUNCTION 'SEO_INTERFACE_GET' EXPORTING INTKEY = clskey VERSION = SEOC_VERSION_INACTIVE STATE = '0' EXCEPTIONS NOT_EXISTING = 1 DELETED = 2 IS_CLASS = 3 MODEL_ONLY = 4 OTHERS = 5. IF SY-SUBRC <> 0. RAISE EXCEPTION TYPE zcx_SAPlink EXPORTING textid = zcx_SAPlink=>error_message msg = 'interface not deleted'. ENDIF. CALL FUNCTION 'SEO_INTERFACE_DELETE_W_DEPS' EXPORTING intkey = clskey save = ' ' EXCEPTIONS not_existing = 1 is_class = 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 = 'class not supported'. WHEN 3. RAISE EXCEPTION TYPE zcx_SAPlink EXPORTING textid = zcx_SAPlink=>error_message msg = 'interface not deleted'. WHEN OTHERS. RAISE EXCEPTION TYPE zcx_SAPlink EXPORTING textid = zcx_SAPlink=>system_error. ENDCASE. ENDIF. CALL FUNCTION 'SEO_CLIF_SAVE_ALL' EXPORTING CIFKEY = clskey * CHANGING * CORRNR = corrnr EXCEPTIONS NOT_EXISTING = 1 NOTHING_TO_DO = 2 ACCESS_ERROR = 3 DB_ERROR = 4 OTHERS = 5. IF SY-SUBRC <> 0. MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. endmethod. method EXPORT_ATTRIBUTES. */---------------------------------------------------------------------\ *| 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. | *\---------------------------------------------------------------------/ *Plugin created by Thomas Ritter *Based on work done by: Michael Yakovlev, Edward Herrmann *and other SAPlink contributors data: attribkey type seocmpkey, attribdescr type abap_attrdescr, attribnode type ref to if_ixml_element, attribproperties type vseoattrib, _otrguid type sotr_conc, otrnode type ref to if_ixml_element. attribkey-clsname = objname. loop at intfdescr->attributes into attribdescr where is_inherited = abap_false. attribnode = xmldoc->create_element( XML_KEY_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 = createnodefromotr( _otrguid ). if otrnode is bound. rc = attribnode->append_child( otrnode ). endif. endif. * append attribute node to parent node setattributesfromstructure( node = attribnode structure = attribproperties ). rc = rootnode->append_child( attribnode ). endloop. endmethod. method EXPORT_EVENTS. */---------------------------------------------------------------------\ *| 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. | *\---------------------------------------------------------------------/ *Plugin created by Thomas Ritter *Based on work done by: Michael Yakovlev, Edward Herrmann *and other SAPlink contributors DATA: events TYPE SEOO_EVENTS_R, wa_event LIKE LINE OF events, eventkey type SEOCMPKEY, eventparams type seos_parameters_r, wa_params type seos_parameter_r, event_node TYPE REF TO if_ixml_element, parameternode type ref to if_ixml_element. 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( XML_KEY_EVENTS ). setattributesfromstructure( node = event_node structure = wa_event ). CALL FUNCTION 'SEO_EVENT_SIGNATURE_GET' EXPORTING EVTKEY = eventkey IMPORTING PARAMETERS = eventparams. * event parameters loop at eventParams into wa_params. parameternode = xmldoc->create_element( XML_KEY_PARAMETER ). setattributesfromstructure( node = parameternode structure = wa_params ). rc = event_node->append_child( parameternode ). ENDLOOP. rc = rootnode->append_child( event_node ). ENDLOOP. endmethod. method EXPORT_INTERFACES. */---------------------------------------------------------------------\ *| 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. | *\---------------------------------------------------------------------/ *Plugin created by Thomas Ritter *Based on work done by: Michael Yakovlev, Edward Herrmann *and other SAPlink contributors DATA: it_vseocompri type table of VSEOCOMPRI, wa_vseocompri like line of it_vseocompri, implementingNode TYPE REF TO if_ixml_element, objname type VRSD-OBJNAME. objname = classkey. CALL FUNCTION 'SVRS_GET_VERSION_INTF_40' EXPORTING * DESTINATION = OBJECT_NAME = objname VERSNO = '00000' * IV_NO_RELEASE_TRANSFORMATION = * IMPORTING * INFO_LINE = TABLES * VSMODISRC = * PSEOALIASES = * PVSEOATTRIB = PVSEOCOMPRI = it_vseocompri * PVSEOEVENT = * PVSEOEXCEP = * PVSEOINTERF = * PSMODILOG = * PVSEOMETHOD = * PVSEOPARAM = * PPOOL_SOURCE = * PSOURCE = * PTRDIR = * TYPE_TAB = * PSEOTYPEPLS = EXCEPTIONS NO_VERSION = 1 SYSTEM_FAILURE = 2 COMMUNICATION_FAILURE = 3 OTHERS = 4 . IF SY-SUBRC <> 0. ENDIF. LOOP AT it_vseocompri INTO wa_vseocompri. implementingNode = xmldoc->create_element( XML_KEY_INCLUDE ). setattributesfromstructure( node = implementingNode structure = wa_vseocompri ). rc = rootnode->append_child( implementingNode ). ENDLOOP. endmethod. method EXPORT_METHODS. */---------------------------------------------------------------------\ *| 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. | *\---------------------------------------------------------------------/ *Plugin created by Thomas Ritter *Based on work done by: Michael Yakovlev, Edward Herrmann *and other SAPlink contributors data: methoddescr type abap_methdescr, methodkey type seocpdkey, clsmethkey type seocmpkey, methodproperties type vseomethod, paramdescr type abap_parmdescr, paramproperties type vseoparam, paramkey type seoscokey, exceptionlist type seos_exceptions_r, anexception type vseoexcep, exceptionnode type ref to if_ixml_element, parameternode type ref to if_ixml_element, methodnode type ref to if_ixml_element. loop at intfdescr->methods into methoddescr where not ( is_inherited = 'X' and is_redefined is initial ). methodkey-clsname = classname. methodkey-cpdname = methoddescr-name. clsmethkey-clsname = classname. clsmethkey-cmpname = methoddescr-name. clear methodproperties. call function 'SEO_METHOD_GET' EXPORTING mtdkey = clsmethkey IMPORTING method = methodproperties EXCEPTIONS not_existing = 1. if sy-subrc = 0. methodnode = xmldoc->create_element( XML_KEY_METHOD ). setattributesfromstructure( node = methodnode structure = methodproperties ). *add method parameters only when not an alias if methoddescr-alias_for eq ''. loop at methoddescr-parameters into paramdescr. clear paramproperties. parameternode = xmldoc->create_element( XML_KEY_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. endif. *add method exceptions call function 'SEO_METHOD_SIGNATURE_GET' EXPORTING mtdkey = clsmethkey version = '1' IMPORTING exceps = exceptionlist. loop at exceptionlist into anexception. exceptionnode = xmldoc->create_element( XML_KEY_EXCEPTION ). setattributesfromstructure( node = exceptionnode structure = anexception ). rc = methodnode->append_child( exceptionnode ). endloop. endif. "method found rc = rootnode->append_child( methodnode ). endloop. endmethod. method EXPORT_TYPEGROUPS. */---------------------------------------------------------------------\ *| 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. | *\---------------------------------------------------------------------/ *Plugin created by Thomas Ritter *Based on work done by: Michael Yakovlev, Edward Herrmann *and other SAPlink contributors data: forwarddeclarationlist type seot_typepusages_r, forwarddeclaration type ref to if_ixml_element, forwarddeclarationrow type seot_typepusage_r. call function 'SEO_TYPEPUSAGE_READ_ALL' EXPORTING cifkey = classkey version = '1' IMPORTING typepusages = forwarddeclarationlist. *comment rrq old way....forwardDeclarations the only attribute *set was the "TypeGroup" *the new way....the entire structure is passed as in node typeUsage LOOP AT forwarddeclarationlist INTO forwarddeclarationrow. forwarddeclaration = xmldoc->create_element( XML_KEY_TYPEUSAGE ). setattributesfromstructure( node = forwarddeclaration structure = forwarddeclarationrow ). rc = rootnode->append_child( forwarddeclaration ). ENDLOOP. endmethod. method EXPORT_TYPES. */---------------------------------------------------------------------\ *| 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. | *\---------------------------------------------------------------------/ *Plugin created by Thomas Ritter *Based on work done by: Michael Yakovlev, Edward Herrmann *and other SAPlink contributors 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( XML_KEY_TYPES ). setattributesfromstructure( node = types_node structure = wa_type ). rc = rootnode->append_child( types_node ). endloop. 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. | *\---------------------------------------------------------------------/ *Plugin created by Thomas Ritter *Based on work done by: Michael Yakovlev, Edward Herrmann *and other SAPlink contributors objecttype = 'INTF'. "Interface endmethod. method IMPORT_ATTRIBUTES. */---------------------------------------------------------------------\ *| 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. | *\---------------------------------------------------------------------/ *Plugin created by Thomas Ritter *Based on work done by: Michael Yakovlev, Edward Herrmann *and other SAPlink contributors data: otrConcept type SOTR_TEXT-CONCEPT, wa_attributes like line of ch_attributes, filter type ref to if_ixml_node_filter, iterator type ref to if_ixml_node_iterator, node type ref to if_ixml_element, otrnode type ref to if_ixml_element. filter = xmldoc->create_filter_name( XML_KEY_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( 'sotr' ). IF otrnode IS NOT INITIAL. me->createotrfromnode( 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. endmethod. method IMPORT_EVENTS. */---------------------------------------------------------------------\ *| 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. | *\---------------------------------------------------------------------/ *Plugin created by Thomas Ritter *Based on work done by: Michael Yakovlev, Edward Herrmann *and other SAPlink contributors data: event_filter type ref to if_ixml_node_filter, parameter_filter type ref to if_ixml_node_filter, event_iterator type ref to if_ixml_node_iterator, parameter_iterator type ref to if_ixml_node_iterator, event_node type ref to if_ixml_element, parameter_node type ref to if_ixml_element, wa_events like line of ch_events, wa_parameters like line of ch_parameters. event_filter = xmldoc->create_filter_name( XML_KEY_EVENTS ). event_iterator = xmldoc->create_iterator_filtered( event_filter ). event_node ?= event_iterator->get_next( ). WHILE event_node IS NOT INITIAL. CLEAR wa_events. CALL METHOD getstructurefromattributes EXPORTING node = event_node CHANGING structure = wa_events. append wa_events to ch_events. parameter_filter = event_node->create_filter_name( XML_KEY_PARAMETER ). parameter_iterator = event_node->create_iterator_filtered( parameter_filter ). parameter_node ?= parameter_iterator->get_next( ). WHILE parameter_node IS NOT INITIAL. CLEAR wa_parameters. CALL METHOD getstructurefromattributes EXPORTING node = parameter_node CHANGING structure = wa_parameters. append wa_parameters to ch_parameters. parameter_node ?= parameter_iterator->get_next( ). endwhile. event_node ?= event_iterator->get_next( ). ENDWHILE. endmethod. method IMPORT_INTERFACES. */---------------------------------------------------------------------\ *| 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. | *\---------------------------------------------------------------------/ *Plugin created by Thomas Ritter *Based on work done by: Michael Yakovlev, Edward Herrmann *and other SAPlink contributors data: filter type ref to if_ixml_node_filter, iterator type ref to if_ixml_node_iterator, node type ref to if_ixml_element, wa_comprisings like line of ch_comprisings. filter = xmldoc->create_filter_name( XML_KEY_INCLUDE ). iterator = xmldoc->create_iterator_filtered( filter ). node ?= iterator->get_next( ). WHILE node IS NOT INITIAL. CLEAR wa_comprisings. CALL METHOD getstructurefromattributes EXPORTING node = node CHANGING structure = wa_comprisings. wa_comprisings-version = '0'. append wa_comprisings to ch_comprisings. node ?= iterator->get_next( ). ENDWHILE. endmethod. method IMPORT_METHODS. */---------------------------------------------------------------------\ *| 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. | *\---------------------------------------------------------------------/ *Plugin created by Thomas Ritter *Based on work done by: Michael Yakovlev, Edward Herrmann *and other SAPlink contributors data: filter type ref to if_ixml_node_filter, filter2 type ref to if_ixml_node_filter, iterator type ref to if_ixml_node_iterator, iterator2 type ref to if_ixml_node_iterator, node type ref to if_ixml_element, node2 type ref to if_ixml_element, wa_parameters like line of ch_parameters, wa_methods like line of ch_methods, wa_exceps like line of ch_exceps. *Add methods to new interface filter = xmldoc->create_filter_name( XML_KEY_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. *Add parameters filter2 = node->create_filter_name( XML_KEY_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. append wa_parameters to ch_parameters. node2 ?= iterator2->get_next( ). ENDWHILE. *Add exceptions filter2 = node->create_filter_name( XML_KEY_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. node ?= iterator->get_next( ). endwhile. endmethod. method IMPORT_TYPES. */---------------------------------------------------------------------\ *| 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. | *\---------------------------------------------------------------------/ *Plugin created by Thomas Ritter *Based on work done by: Michael Yakovlev, Edward Herrmann *and other SAPlink contributors data: filter type ref to if_ixml_node_filter, iterator type ref to if_ixml_node_iterator, node type ref to if_ixml_element, wa_types like line of ch_types, wa_typeusages like line of ch_typeusages. filter = xmldoc->create_filter_name( XML_KEY_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. *ewH: for version 0.1.3, we will continue to generate both nodes * in order for upgradeability of SAPlink itself. For version * 2.0, forwardDeclaration node generations will be deprecated. filter = xmldoc->create_filter_name( XML_KEY_TYPEUSAGE ). iterator = xmldoc->create_iterator_filtered( filter ). node ?= iterator->get_next( ). WHILE node IS NOT INITIAL. CALL METHOD getstructurefromattributes EXPORTING node = node CHANGING structure = wa_typeUsages. APPEND wa_typeusages TO ch_typeusages. node ?= iterator->get_next( ). ENDWHILE. endmethod. endclass. "ZSAPLINK_INTERFACE implementation
[ 4871, 1168, 50, 2969, 43, 17248, 62, 41358, 49836, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1168, 50, 2969, 43, 17248, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 198, 220, 2099, 12, 7742, 82, 9564, 2969, 764, 198, 220, 2099, 12, 7742, 82, 7946, 1581, 764, 198, 220, 2099, 12, 7742, 82, 7946, 2640, 764, 198, 220, 2099, 12, 7742, 82, 7946, 2394, 764, 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, 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, 628, 220, 38491, 23735, 62, 20373, 62, 49273, 2099, 19269, 2751, 1988, 705, 24396, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 23735, 62, 20373, 62, 27082, 2390, 2767, 1137, 2099, 19269, 2751, 1988, 705, 17143, 2357, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 23735, 62, 20373, 62, 6369, 42006, 2849, 2099, 19269, 2751, 1988, 705, 1069, 4516, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 23735, 62, 20373, 62, 20114, 15365, 2099, 19269, 2751, 1988, 705, 31534, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 23735, 62, 20373, 62, 1404, 5446, 9865, 37780, 2099, 19269, 2751, 1988, 705, 42348, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 23735, 62, 20373, 62, 25216, 2937, 11879, 2099, 19269, 2751, 1988, 705, 4906, 28350, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 23735, 62, 20373, 62, 9936, 47, 1546, 2099, 19269, 2751, 1988, 705, 19199, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 23735, 62, 20373, 62, 1268, 5097, 52, 7206, 2099, 19269, 2751, 1988, 705, 17256, 4458, 25113, 2943, 5626, 13918, 628, 220, 5050, 7788, 15490, 62, 41358, 37, 2246, 1546, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 31631, 20373, 2099, 7946, 4503, 6561, 20373, 198, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 5145, 7397, 2099, 311, 16309, 10526, 7397, 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, 2099, 12, 7742, 82, 30850, 46, 764, 198, 220, 5050, 30023, 9863, 62, 49273, 50, 198, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 5145, 3398, 62, 49273, 50, 2099, 30850, 46, 62, 49273, 50, 62, 49, 198, 220, 220, 220, 220, 220, 5145, 3398, 62, 27082, 2390, 2767, 4877, 2099, 7946, 2640, 62, 27082, 2390, 2767, 4877, 62, 49, 198, 220, 220, 220, 220, 220, 5145, 3398, 62, 6369, 5222, 3705, 2099, 7946, 2640, 62, 6369, 42006, 11053, 62, 49, 764, 198, 220, 5050, 30023, 9863, 62, 1404, 5446, 9865, 3843, 1546, 198, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 5145, 3398, 62, 1404, 5446, 9865, 3843, 1546, 2099, 30850, 46, 62, 1404, 5446, 9865, 3843, 1546, 62, 49, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 34, 55, 62, 50, 2969, 43, 17248, 764, 198, 220, 5050, 30023, 9863, 62, 41358, 37, 2246, 1546, 198, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 5145, 3398, 62, 9858, 4805, 1797, 20754, 2099, 7946, 1581, 62, 9858, 4805, 1797, 20754, 62, 49, 764, 198, 220, 5050, 30023, 9863, 62, 9936, 47, 1546, 198, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 5145, 3398, 62, 25216, 2937, 25552, 2099, 7946, 2394, 62, 9936, 47, 8905, 2937, 25552, 62, 49, 198, 220, 220, 220, 220, 220, 5145, 3398, 62, 9936, 47, 1546, 2099, 30850, 46, 62, 9936, 47, 1546, 62, 49, 764, 198, 220, 5050, 30023, 9863, 62, 20114, 15365, 198, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 5145, 3398, 62, 20114, 15365, 2099, 30850, 46, 62, 20114, 15365, 62, 49, 198, 220, 220, 220, 220, 220, 5145, 3398, 62, 27082, 2390, 2767, 4877, 2099, 7946, 2640, 62, 27082, 2390, 2767, 4877, 62, 49, 764, 198, 220, 5050, 7788, 15490, 62, 49273, 50, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 1268, 10234, 30910, 9419, 2099, 1006, 284, 7852, 62, 6242, 2969, 62, 1268, 10234, 30910, 9419, 198, 220, 220, 220, 220, 220, 5145, 31631, 20608, 2099, 7946, 4503, 6561, 20608, 198, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 5145, 7397, 2099, 311, 16309, 10526, 7397, 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, 7788, 15490, 62, 20114, 15365, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 31631, 20373, 2099, 7946, 4503, 6561, 20373, 198, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 5145, 7397, 2099, 311, 16309, 10526, 7397, 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, 7788, 15490, 62, 1404, 5446, 9865, 3843, 1546, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 1268, 10234, 30910, 9419, 2099, 1006, 284, 7852, 62, 6242, 2969, 62, 1268, 10234, 30910, 9419, 198, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 5145, 7397, 2099, 311, 16309, 10526, 7397, 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, 7788, 15490, 62, 9936, 47, 1546, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 31631, 20373, 2099, 7946, 4503, 6561, 20373, 198, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 5145, 7397, 2099, 311, 16309, 10526, 7397, 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, 7788, 15490, 62, 9936, 47, 7156 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
FUNCTION CONVERSION_EXIT_AGGR_INPUT. *"---------------------------------------------------------------------- *"*"Lokale Schnittstelle: *" IMPORTING *" VALUE(INPUT) TYPE CLIKE *" EXPORTING *" VALUE(OUTPUT) TYPE CLIKE *"---------------------------------------------------------------------- DATA: lt_dd07v TYPE TABLE OF dd07v. CALL FUNCTION 'DDIF_DOMA_GET' EXPORTING name = 'ZDBBR_AGGR' langu = sy-langu TABLES dd07v_tab = lt_dd07v. output = value #( lt_dd07v[ ddtext = input ]-domvalue_l optional ). ENDFUNCTION.
[ 42296, 4177, 2849, 7102, 43717, 62, 6369, 2043, 62, 4760, 10761, 62, 1268, 30076, 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, 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, 23031, 198, 220, 42865, 25, 300, 83, 62, 1860, 2998, 85, 41876, 43679, 3963, 49427, 2998, 85, 13, 628, 220, 42815, 29397, 4177, 2849, 705, 16458, 5064, 62, 39170, 32, 62, 18851, 6, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 796, 705, 57, 11012, 11473, 62, 4760, 10761, 6, 198, 220, 220, 220, 220, 220, 2786, 220, 220, 220, 220, 796, 827, 12, 75, 2303, 198, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 49427, 2998, 85, 62, 8658, 796, 300, 83, 62, 1860, 2998, 85, 13, 628, 220, 5072, 796, 1988, 1303, 7, 300, 83, 62, 1860, 2998, 85, 58, 49427, 5239, 796, 5128, 2361, 12, 3438, 8367, 62, 75, 11902, 6739, 198, 198, 1677, 8068, 4944, 4177, 2849, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]